react-intl 5.17.5 → 5.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,16 @@
1
1
  var ReactIntl = (function() {
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
6
  var __getProtoOf = Object.getPrototypeOf;
5
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
8
  var __markAsModule = function(target) {
9
9
  return __defProp(target, "__esModule", {value: true});
10
10
  };
11
11
  var __commonJS = function(cb, mod) {
12
- return function() {
13
- return mod || cb((mod = {exports: {}}).exports, mod), mod.exports;
12
+ return function __require() {
13
+ return mod || (0, cb[Object.keys(cb)[0]])((mod = {exports: {}}).exports, mod), mod.exports;
14
14
  };
15
15
  };
16
16
  var __export = function(target, all) {
@@ -34,1626 +34,1621 @@ var ReactIntl = (function() {
34
34
  }, enumerable: true} : {value: module, enumerable: true})), module);
35
35
  };
36
36
 
37
- // external/npm/node_modules/object-assign/index.js
38
- var require_object_assign = __commonJS(function(exports, module) {
39
- /*
40
- object-assign
41
- (c) Sindre Sorhus
42
- @license MIT
43
- */
44
- "use strict";
45
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
46
- var hasOwnProperty = Object.prototype.hasOwnProperty;
47
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
48
- function toObject(val) {
49
- if (val === null || val === void 0) {
50
- throw new TypeError("Object.assign cannot be called with null or undefined");
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);
51
49
  }
52
- return Object(val);
53
- }
54
- function shouldUseNative() {
55
- try {
56
- if (!Object.assign) {
57
- return false;
58
- }
59
- var test1 = new String("abc");
60
- test1[5] = "de";
61
- if (Object.getOwnPropertyNames(test1)[0] === "5") {
62
- return false;
63
- }
64
- var test2 = {};
65
- for (var i = 0; i < 10; i++) {
66
- test2["_" + String.fromCharCode(i)] = i;
67
- }
68
- var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
69
- return test2[n];
70
- });
71
- if (order2.join("") !== "0123456789") {
72
- return false;
73
- }
74
- var test3 = {};
75
- "abcdefghijklmnopqrst".split("").forEach(function(letter) {
76
- test3[letter] = letter;
77
- });
78
- if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
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
79
  return false;
80
80
  }
81
- return true;
82
- } catch (err) {
83
- return false;
84
81
  }
85
- }
86
- module.exports = shouldUseNative() ? Object.assign : function(target, source) {
87
- var from;
88
- var to = toObject(target);
89
- var symbols;
90
- for (var s = 1; s < arguments.length; s++) {
91
- from = Object(arguments[s]);
92
- for (var key in from) {
93
- if (hasOwnProperty.call(from, key)) {
94
- to[key] = from[key];
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
+ }
95
92
  }
96
- }
97
- if (getOwnPropertySymbols) {
98
- symbols = getOwnPropertySymbols(from);
99
- for (var i = 0; i < symbols.length; i++) {
100
- if (propIsEnumerable.call(from, symbols[i])) {
101
- to[symbols[i]] = from[symbols[i]];
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
+ }
102
99
  }
103
100
  }
104
101
  }
105
- }
106
- return to;
107
- };
102
+ return to;
103
+ };
104
+ }
108
105
  });
109
106
 
110
- // external/npm/node_modules/prop-types/lib/ReactPropTypesSecret.js
111
- var require_ReactPropTypesSecret = __commonJS(function(exports, module) {
112
- "use strict";
113
- var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
114
- module.exports = ReactPropTypesSecret;
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
+ }
115
114
  });
116
115
 
117
- // external/npm/node_modules/prop-types/checkPropTypes.js
118
- var require_checkPropTypes = __commonJS(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
- }
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() {
135
121
  };
136
- }
137
- var ReactPropTypesSecret;
138
- var loggedTypeFailures;
139
- var has;
140
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
141
122
  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;
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 : ""));
150
162
  }
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
  }
163
164
  }
164
165
  }
165
166
  }
167
+ checkPropTypes.resetWarningCache = function() {
168
+ if (true) {
169
+ loggedTypeFailures = {};
170
+ }
171
+ };
172
+ module.exports = checkPropTypes;
166
173
  }
167
- checkPropTypes.resetWarningCache = function() {
168
- if (true) {
169
- loggedTypeFailures = {};
170
- }
171
- };
172
- module.exports = checkPropTypes;
173
174
  });
174
175
 
175
- // external/npm/node_modules/react/cjs/react.development.js
176
- var require_react_development = __commonJS(function(exports) {
177
- /** @license React v16.14.0
178
- * react.development.js
179
- *
180
- * Copyright (c) Facebook, Inc. and its affiliates.
181
- *
182
- * This source code is licensed under the MIT license found in the
183
- * LICENSE file in the root directory of this source tree.
184
- */
185
- "use strict";
186
- if (true) {
187
- (function() {
188
- "use strict";
189
- var _assign = require_object_assign();
190
- var checkPropTypes = require_checkPropTypes();
191
- var ReactVersion = "16.14.0";
192
- var hasSymbol = typeof Symbol === "function" && Symbol.for;
193
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
194
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
195
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
196
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
197
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
198
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
199
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
200
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
201
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
202
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
203
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
204
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
205
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
206
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
207
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
208
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
209
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
210
- var MAYBE_ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
211
- var FAUX_ITERATOR_SYMBOL = "@@iterator";
212
- function getIteratorFn(maybeIterable) {
213
- if (maybeIterable === null || typeof maybeIterable !== "object") {
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
214
  return null;
215
215
  }
216
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
217
- if (typeof maybeIterator === "function") {
218
- return maybeIterator;
219
- }
220
- return null;
221
- }
222
- var ReactCurrentDispatcher = {
223
- current: null
224
- };
225
- var ReactCurrentBatchConfig = {
226
- suspense: null
227
- };
228
- var ReactCurrentOwner = {
229
- current: null
230
- };
231
- var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
232
- function describeComponentFrame(name, source, ownerName) {
233
- var sourceInfo = "";
234
- if (source) {
235
- var path = source.fileName;
236
- var fileName = path.replace(BEFORE_SLASH_RE, "");
237
- {
238
- if (/^index\./.test(fileName)) {
239
- var match = path.match(BEFORE_SLASH_RE);
240
- if (match) {
241
- var pathBeforeSlash = match[1];
242
- if (pathBeforeSlash) {
243
- var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, "");
244
- fileName = folderName + "/" + fileName;
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
+ }
245
240
  }
246
241
  }
247
242
  }
243
+ sourceInfo = " (at " + fileName + ":" + source.lineNumber + ")";
244
+ } else if (ownerName) {
245
+ sourceInfo = " (created by " + ownerName + ")";
248
246
  }
249
- sourceInfo = " (at " + fileName + ":" + source.lineNumber + ")";
250
- } else if (ownerName) {
251
- sourceInfo = " (created by " + ownerName + ")";
247
+ return "\n in " + (name || "Unknown") + sourceInfo;
252
248
  }
253
- return "\n in " + (name || "Unknown") + sourceInfo;
254
- }
255
- var Resolved = 1;
256
- function refineResolvedLazyComponent(lazyComponent) {
257
- return lazyComponent._status === Resolved ? lazyComponent._result : null;
258
- }
259
- function getWrappedName(outerType, innerType, wrapperName) {
260
- var functionName = innerType.displayName || innerType.name || "";
261
- return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName);
262
- }
263
- function getComponentName(type) {
264
- if (type == null) {
265
- return null;
249
+ var Resolved = 1;
250
+ function refineResolvedLazyComponent(lazyComponent) {
251
+ return lazyComponent._status === Resolved ? lazyComponent._result : null;
266
252
  }
267
- {
268
- if (typeof type.tag === "number") {
269
- error("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue.");
270
- }
253
+ function getWrappedName(outerType, innerType, wrapperName) {
254
+ var functionName = innerType.displayName || innerType.name || "";
255
+ return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName);
271
256
  }
272
- if (typeof type === "function") {
273
- return type.displayName || type.name || null;
274
- }
275
- if (typeof type === "string") {
276
- return type;
277
- }
278
- switch (type) {
279
- case REACT_FRAGMENT_TYPE:
280
- return "Fragment";
281
- case REACT_PORTAL_TYPE:
282
- return "Portal";
283
- case REACT_PROFILER_TYPE:
284
- return "Profiler";
285
- case REACT_STRICT_MODE_TYPE:
286
- return "StrictMode";
287
- case REACT_SUSPENSE_TYPE:
288
- return "Suspense";
289
- case REACT_SUSPENSE_LIST_TYPE:
290
- return "SuspenseList";
291
- }
292
- if (typeof type === "object") {
293
- switch (type.$$typeof) {
294
- case REACT_CONTEXT_TYPE:
295
- return "Context.Consumer";
296
- case REACT_PROVIDER_TYPE:
297
- return "Context.Provider";
298
- case REACT_FORWARD_REF_TYPE:
299
- return getWrappedName(type, type.render, "ForwardRef");
300
- case REACT_MEMO_TYPE:
301
- return getComponentName(type.type);
302
- case REACT_BLOCK_TYPE:
303
- return getComponentName(type.render);
304
- case REACT_LAZY_TYPE: {
305
- var thenable = type;
306
- var resolvedThenable = refineResolvedLazyComponent(thenable);
307
- if (resolvedThenable) {
308
- return getComponentName(resolvedThenable);
309
- }
310
- break;
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.");
311
264
  }
312
265
  }
313
- }
314
- return null;
315
- }
316
- var ReactDebugCurrentFrame = {};
317
- var currentlyValidatingElement = null;
318
- function setCurrentlyValidatingElement(element) {
319
- {
320
- currentlyValidatingElement = element;
321
- }
322
- }
323
- {
324
- ReactDebugCurrentFrame.getCurrentStack = null;
325
- ReactDebugCurrentFrame.getStackAddendum = function() {
326
- var stack = "";
327
- if (currentlyValidatingElement) {
328
- var name = getComponentName(currentlyValidatingElement.type);
329
- var owner = currentlyValidatingElement._owner;
330
- stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
266
+ if (typeof type === "function") {
267
+ return type.displayName || type.name || null;
331
268
  }
332
- var impl = ReactDebugCurrentFrame.getCurrentStack;
333
- if (impl) {
334
- stack += impl() || "";
269
+ if (typeof type === "string") {
270
+ return type;
335
271
  }
336
- return stack;
337
- };
338
- }
339
- var IsSomeRendererActing = {
340
- current: false
341
- };
342
- var ReactSharedInternals = {
343
- ReactCurrentDispatcher: ReactCurrentDispatcher,
344
- ReactCurrentBatchConfig: ReactCurrentBatchConfig,
345
- ReactCurrentOwner: ReactCurrentOwner,
346
- IsSomeRendererActing: IsSomeRendererActing,
347
- assign: _assign
348
- };
349
- {
350
- _assign(ReactSharedInternals, {
351
- ReactDebugCurrentFrame: ReactDebugCurrentFrame,
352
- ReactComponentTreeHook: {}
353
- });
354
- }
355
- function warn(format) {
356
- {
357
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
358
- args[_key - 1] = arguments[_key];
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
+ }
359
307
  }
360
- printWarning("warn", format, args);
308
+ return null;
361
309
  }
362
- }
363
- function error(format) {
364
- {
365
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
366
- args[_key2 - 1] = arguments[_key2];
310
+ var ReactDebugCurrentFrame = {};
311
+ var currentlyValidatingElement = null;
312
+ function setCurrentlyValidatingElement(element) {
313
+ {
314
+ currentlyValidatingElement = element;
367
315
  }
368
- printWarning("error", format, args);
369
316
  }
370
- }
371
- function printWarning(level, format, args) {
372
317
  {
373
- var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === "string" && args[args.length - 1].indexOf("\n in") === 0;
374
- if (!hasExistingStack) {
375
- var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
376
- var stack = ReactDebugCurrentFrame2.getStackAddendum();
377
- if (stack !== "") {
378
- format += "%s";
379
- args = args.concat([stack]);
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));
380
325
  }
381
- }
382
- var argsWithFormat = args.map(function(item) {
383
- return "" + item;
384
- });
385
- argsWithFormat.unshift("Warning: " + format);
386
- Function.prototype.apply.call(console[level], console, argsWithFormat);
387
- try {
388
- var argIndex = 0;
389
- var message = "Warning: " + format.replace(/%s/g, function() {
390
- return args[argIndex++];
391
- });
392
- throw new Error(message);
393
- } catch (x) {
394
- }
326
+ var impl = ReactDebugCurrentFrame.getCurrentStack;
327
+ if (impl) {
328
+ stack += impl() || "";
329
+ }
330
+ return stack;
331
+ };
395
332
  }
396
- }
397
- var didWarnStateUpdateForUnmountedComponent = {};
398
- function warnNoop(publicInstance, callerName) {
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
+ };
399
343
  {
400
- var _constructor = publicInstance.constructor;
401
- var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass";
402
- var warningKey = componentName + "." + callerName;
403
- if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
404
- return;
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);
405
355
  }
406
- 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);
407
- didWarnStateUpdateForUnmountedComponent[warningKey] = true;
408
356
  }
409
- }
410
- var ReactNoopUpdateQueue = {
411
- isMounted: function(publicInstance) {
412
- return false;
413
- },
414
- enqueueForceUpdate: function(publicInstance, callback, callerName) {
415
- warnNoop(publicInstance, "forceUpdate");
416
- },
417
- enqueueReplaceState: function(publicInstance, completeState, callback, callerName) {
418
- warnNoop(publicInstance, "replaceState");
419
- },
420
- enqueueSetState: function(publicInstance, partialState, callback, callerName) {
421
- warnNoop(publicInstance, "setState");
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
+ }
422
364
  }
423
- };
424
- var emptyObject = {};
425
- {
426
- Object.freeze(emptyObject);
427
- }
428
- function Component(props, context, updater) {
429
- this.props = props;
430
- this.context = context;
431
- this.refs = emptyObject;
432
- this.updater = updater || ReactNoopUpdateQueue;
433
- }
434
- Component.prototype.isReactComponent = {};
435
- Component.prototype.setState = function(partialState, callback) {
436
- if (!(typeof partialState === "object" || typeof partialState === "function" || partialState == null)) {
365
+ function printWarning(level, format, args) {
437
366
  {
438
- throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
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
+ }
439
389
  }
440
390
  }
441
- this.updater.enqueueSetState(this, partialState, callback, "setState");
442
- };
443
- Component.prototype.forceUpdate = function(callback) {
444
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
445
- };
446
- {
447
- var deprecatedAPIs = {
448
- isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
449
- replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
450
- };
451
- var defineDeprecationWarning = function(methodName, info) {
452
- Object.defineProperty(Component.prototype, methodName, {
453
- get: function() {
454
- warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
455
- return void 0;
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;
456
399
  }
457
- });
458
- };
459
- for (var fnName in deprecatedAPIs) {
460
- if (deprecatedAPIs.hasOwnProperty(fnName)) {
461
- defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
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;
462
402
  }
463
403
  }
464
- }
465
- function ComponentDummy() {
466
- }
467
- ComponentDummy.prototype = Component.prototype;
468
- function PureComponent2(props, context, updater) {
469
- this.props = props;
470
- this.context = context;
471
- this.refs = emptyObject;
472
- this.updater = updater || ReactNoopUpdateQueue;
473
- }
474
- var pureComponentPrototype = PureComponent2.prototype = new ComponentDummy();
475
- pureComponentPrototype.constructor = PureComponent2;
476
- _assign(pureComponentPrototype, Component.prototype);
477
- pureComponentPrototype.isPureReactComponent = true;
478
- function createRef() {
479
- var refObject = {
480
- current: null
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
+ }
481
417
  };
418
+ var emptyObject = {};
482
419
  {
483
- Object.seal(refObject);
420
+ Object.freeze(emptyObject);
484
421
  }
485
- return refObject;
486
- }
487
- var hasOwnProperty = Object.prototype.hasOwnProperty;
488
- var RESERVED_PROPS = {
489
- key: true,
490
- ref: true,
491
- __self: true,
492
- __source: true
493
- };
494
- var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
495
- {
496
- didWarnAboutStringRefs = {};
497
- }
498
- function hasValidRef(config) {
499
- {
500
- if (hasOwnProperty.call(config, "ref")) {
501
- var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
502
- if (getter && getter.isReactWarning) {
503
- return false;
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.");
504
433
  }
505
434
  }
506
- }
507
- return config.ref !== void 0;
508
- }
509
- function hasValidKey(config) {
435
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
436
+ };
437
+ Component.prototype.forceUpdate = function(callback) {
438
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
439
+ };
510
440
  {
511
- if (hasOwnProperty.call(config, "key")) {
512
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
513
- if (getter && getter.isReactWarning) {
514
- return false;
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]);
515
456
  }
516
457
  }
517
458
  }
518
- return config.key !== void 0;
519
- }
520
- function defineKeyPropWarningGetter(props, displayName) {
521
- var warnAboutAccessingKey = function() {
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
+ };
522
476
  {
523
- if (!specialPropKeyWarningShown) {
524
- specialPropKeyWarningShown = true;
525
- 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);
526
- }
477
+ Object.seal(refObject);
527
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
528
487
  };
529
- warnAboutAccessingKey.isReactWarning = true;
530
- Object.defineProperty(props, "key", {
531
- get: warnAboutAccessingKey,
532
- configurable: true
533
- });
534
- }
535
- function defineRefPropWarningGetter(props, displayName) {
536
- var warnAboutAccessingRef = function() {
488
+ var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
489
+ {
490
+ didWarnAboutStringRefs = {};
491
+ }
492
+ function hasValidRef(config) {
537
493
  {
538
- if (!specialPropRefWarningShown) {
539
- specialPropRefWarningShown = true;
540
- 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);
494
+ if (hasOwnProperty.call(config, "ref")) {
495
+ var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
496
+ if (getter && getter.isReactWarning) {
497
+ return false;
498
+ }
541
499
  }
542
500
  }
543
- };
544
- warnAboutAccessingRef.isReactWarning = true;
545
- Object.defineProperty(props, "ref", {
546
- get: warnAboutAccessingRef,
547
- configurable: true
548
- });
549
- }
550
- function warnIfStringRefCannotBeAutoConverted(config) {
551
- {
552
- if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
553
- var componentName = getComponentName(ReactCurrentOwner.current.type);
554
- if (!didWarnAboutStringRefs[componentName]) {
555
- 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);
556
- didWarnAboutStringRefs[componentName] = true;
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
+ }
557
510
  }
558
511
  }
512
+ return config.key !== void 0;
559
513
  }
560
- }
561
- var ReactElement = function(type, key, ref, self, source, owner, props) {
562
- var element = {
563
- $$typeof: REACT_ELEMENT_TYPE,
564
- type: type,
565
- key: key,
566
- ref: ref,
567
- props: props,
568
- _owner: owner
569
- };
570
- {
571
- element._store = {};
572
- Object.defineProperty(element._store, "validated", {
573
- configurable: false,
574
- enumerable: false,
575
- writable: true,
576
- value: false
577
- });
578
- Object.defineProperty(element, "_self", {
579
- configurable: false,
580
- enumerable: false,
581
- writable: false,
582
- value: self
583
- });
584
- Object.defineProperty(element, "_source", {
585
- configurable: false,
586
- enumerable: false,
587
- writable: false,
588
- value: source
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
589
527
  });
590
- if (Object.freeze) {
591
- Object.freeze(element.props);
592
- Object.freeze(element);
593
- }
594
528
  }
595
- return element;
596
- };
597
- function createElement8(type, config, children) {
598
- var propName;
599
- var props = {};
600
- var key = null;
601
- var ref = null;
602
- var self = null;
603
- var source = null;
604
- if (config != null) {
605
- if (hasValidRef(config)) {
606
- ref = config.ref;
529
+ function defineRefPropWarningGetter(props, displayName) {
530
+ var warnAboutAccessingRef = function() {
607
531
  {
608
- warnIfStringRefCannotBeAutoConverted(config);
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
+ }
609
536
  }
610
- }
611
- if (hasValidKey(config)) {
612
- key = "" + config.key;
613
- }
614
- self = config.__self === void 0 ? null : config.__self;
615
- source = config.__source === void 0 ? null : config.__source;
616
- for (propName in config) {
617
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
618
- props[propName] = config[propName];
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
+ }
619
552
  }
620
553
  }
621
554
  }
622
- var childrenLength = arguments.length - 2;
623
- if (childrenLength === 1) {
624
- props.children = children;
625
- } else if (childrenLength > 1) {
626
- var childArray = Array(childrenLength);
627
- for (var i = 0; i < childrenLength; i++) {
628
- childArray[i] = arguments[i + 2];
629
- }
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
+ };
630
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
+ });
631
584
  if (Object.freeze) {
632
- Object.freeze(childArray);
585
+ Object.freeze(element.props);
586
+ Object.freeze(element);
633
587
  }
634
588
  }
635
- props.children = childArray;
636
- }
637
- if (type && type.defaultProps) {
638
- var defaultProps = type.defaultProps;
639
- for (propName in defaultProps) {
640
- if (props[propName] === void 0) {
641
- props[propName] = defaultProps[propName];
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
+ }
642
614
  }
643
615
  }
644
- }
645
- {
646
- if (key || ref) {
647
- var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
648
- if (key) {
649
- defineKeyPropWarningGetter(props, displayName);
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];
650
623
  }
651
- if (ref) {
652
- defineRefPropWarningGetter(props, displayName);
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
+ }
653
637
  }
654
638
  }
655
- }
656
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
657
- }
658
- function cloneAndReplaceKey(oldElement, newKey) {
659
- var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
660
- return newElement;
661
- }
662
- function cloneElement(element, config, children) {
663
- if (!!(element === null || element === void 0)) {
664
639
  {
665
- throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
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
+ }
666
649
  }
650
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
667
651
  }
668
- var propName;
669
- var props = _assign({}, element.props);
670
- var key = element.key;
671
- var ref = element.ref;
672
- var self = element._self;
673
- var source = element._source;
674
- var owner = element._owner;
675
- if (config != null) {
676
- if (hasValidRef(config)) {
677
- ref = config.ref;
678
- owner = ReactCurrentOwner.current;
679
- }
680
- if (hasValidKey(config)) {
681
- key = "" + config.key;
682
- }
683
- var defaultProps;
684
- if (element.type && element.type.defaultProps) {
685
- defaultProps = element.type.defaultProps;
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
+ }
686
661
  }
687
- for (propName in config) {
688
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
689
- if (config[propName] === void 0 && defaultProps !== void 0) {
690
- props[propName] = defaultProps[propName];
691
- } else {
692
- props[propName] = config[propName];
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
+ }
693
688
  }
694
689
  }
695
690
  }
696
- }
697
- var childrenLength = arguments.length - 2;
698
- if (childrenLength === 1) {
699
- props.children = children;
700
- } else if (childrenLength > 1) {
701
- var childArray = Array(childrenLength);
702
- for (var i = 0; i < childrenLength; i++) {
703
- childArray[i] = arguments[i + 2];
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;
704
700
  }
705
- props.children = childArray;
701
+ return ReactElement(element.type, key, ref, self, source, owner, props);
706
702
  }
707
- return ReactElement(element.type, key, ref, self, source, owner, props);
708
- }
709
- function isValidElement(object) {
710
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
711
- }
712
- var SEPARATOR = ".";
713
- var SUBSEPARATOR = ":";
714
- function escape(key) {
715
- var escapeRegex = /[=:]/g;
716
- var escaperLookup = {
717
- "=": "=0",
718
- ":": "=2"
719
- };
720
- var escapedString = ("" + key).replace(escapeRegex, function(match) {
721
- return escaperLookup[match];
722
- });
723
- return "$" + escapedString;
724
- }
725
- var didWarnAboutMaps = false;
726
- var userProvidedKeyEscapeRegex = /\/+/g;
727
- function escapeUserProvidedKey(text) {
728
- return ("" + text).replace(userProvidedKeyEscapeRegex, "$&/");
729
- }
730
- var POOL_SIZE = 10;
731
- var traverseContextPool = [];
732
- function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
733
- if (traverseContextPool.length) {
734
- var traverseContext = traverseContextPool.pop();
735
- traverseContext.result = mapResult;
736
- traverseContext.keyPrefix = keyPrefix;
737
- traverseContext.func = mapFunction;
738
- traverseContext.context = mapContext;
739
- traverseContext.count = 0;
740
- return traverseContext;
741
- } else {
742
- return {
743
- result: mapResult,
744
- keyPrefix: keyPrefix,
745
- func: mapFunction,
746
- context: mapContext,
747
- count: 0
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"
748
713
  };
714
+ var escapedString = ("" + key).replace(escapeRegex, function(match) {
715
+ return escaperLookup[match];
716
+ });
717
+ return "$" + escapedString;
749
718
  }
750
- }
751
- function releaseTraverseContext(traverseContext) {
752
- traverseContext.result = null;
753
- traverseContext.keyPrefix = null;
754
- traverseContext.func = null;
755
- traverseContext.context = null;
756
- traverseContext.count = 0;
757
- if (traverseContextPool.length < POOL_SIZE) {
758
- traverseContextPool.push(traverseContext);
719
+ var didWarnAboutMaps = false;
720
+ var userProvidedKeyEscapeRegex = /\/+/g;
721
+ function escapeUserProvidedKey(text) {
722
+ return ("" + text).replace(userProvidedKeyEscapeRegex, "$&/");
759
723
  }
760
- }
761
- function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
762
- var type = typeof children;
763
- if (type === "undefined" || type === "boolean") {
764
- children = null;
765
- }
766
- var invokeCallback = false;
767
- if (children === null) {
768
- invokeCallback = true;
769
- } else {
770
- switch (type) {
771
- case "string":
772
- case "number":
773
- invokeCallback = true;
774
- break;
775
- case "object":
776
- switch (children.$$typeof) {
777
- case REACT_ELEMENT_TYPE:
778
- case REACT_PORTAL_TYPE:
779
- invokeCallback = true;
780
- }
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
+ };
781
743
  }
782
744
  }
783
- if (invokeCallback) {
784
- callback(traverseContext, children, nameSoFar === "" ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
785
- return 1;
786
- }
787
- var child;
788
- var nextName;
789
- var subtreeCount = 0;
790
- var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR;
791
- if (Array.isArray(children)) {
792
- for (var i = 0; i < children.length; i++) {
793
- child = children[i];
794
- nextName = nextNamePrefix + getComponentKey(child, i);
795
- subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
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);
796
753
  }
797
- } else {
798
- var iteratorFn = getIteratorFn(children);
799
- if (typeof iteratorFn === "function") {
800
- {
801
- if (iteratorFn === children.entries) {
802
- if (!didWarnAboutMaps) {
803
- 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.");
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;
804
774
  }
805
- didWarnAboutMaps = true;
806
- }
807
775
  }
808
- var iterator = iteratorFn.call(children);
809
- var step;
810
- var ii = 0;
811
- while (!(step = iterator.next()).done) {
812
- child = step.value;
813
- nextName = nextNamePrefix + getComponentKey(child, ii++);
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);
814
789
  subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
815
790
  }
816
- } else if (type === "object") {
817
- var addendum = "";
818
- {
819
- addendum = " If you meant to render a collection of children, use an array instead." + ReactDebugCurrentFrame.getStackAddendum();
820
- }
821
- var childrenString = "" + children;
822
- {
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;
823
816
  {
824
- throw Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + ")." + addendum);
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
+ }
825
820
  }
826
821
  }
827
822
  }
823
+ return subtreeCount;
828
824
  }
829
- return subtreeCount;
830
- }
831
- function traverseAllChildren(children, callback, traverseContext) {
832
- if (children == null) {
833
- return 0;
825
+ function traverseAllChildren(children, callback, traverseContext) {
826
+ if (children == null) {
827
+ return 0;
828
+ }
829
+ return traverseAllChildrenImpl(children, "", callback, traverseContext);
834
830
  }
835
- return traverseAllChildrenImpl(children, "", callback, traverseContext);
836
- }
837
- function getComponentKey(component, index) {
838
- if (typeof component === "object" && component !== null && component.key != null) {
839
- return escape(component.key);
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);
840
836
  }
841
- return index.toString(36);
842
- }
843
- function forEachSingleChild(bookKeeping, child, name) {
844
- var func = bookKeeping.func, context = bookKeeping.context;
845
- func.call(context, child, bookKeeping.count++);
846
- }
847
- function forEachChildren(children, forEachFunc, forEachContext) {
848
- if (children == null) {
849
- return children;
837
+ function forEachSingleChild(bookKeeping, child, name) {
838
+ var func = bookKeeping.func, context = bookKeeping.context;
839
+ func.call(context, child, bookKeeping.count++);
850
840
  }
851
- var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
852
- traverseAllChildren(children, forEachSingleChild, traverseContext);
853
- releaseTraverseContext(traverseContext);
854
- }
855
- function mapSingleChildIntoContext(bookKeeping, child, childKey) {
856
- var result = bookKeeping.result, keyPrefix = bookKeeping.keyPrefix, func = bookKeeping.func, context = bookKeeping.context;
857
- var mappedChild = func.call(context, child, bookKeeping.count++);
858
- if (Array.isArray(mappedChild)) {
859
- mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function(c) {
860
- return c;
861
- });
862
- } else if (mappedChild != null) {
863
- if (isValidElement(mappedChild)) {
864
- mappedChild = cloneAndReplaceKey(mappedChild, keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + "/" : "") + childKey);
841
+ function forEachChildren(children, forEachFunc, forEachContext) {
842
+ if (children == null) {
843
+ return children;
865
844
  }
866
- result.push(mappedChild);
845
+ var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
846
+ traverseAllChildren(children, forEachSingleChild, traverseContext);
847
+ releaseTraverseContext(traverseContext);
867
848
  }
868
- }
869
- function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
870
- var escapedPrefix = "";
871
- if (prefix != null) {
872
- escapedPrefix = escapeUserProvidedKey(prefix) + "/";
873
- }
874
- var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
875
- traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
876
- releaseTraverseContext(traverseContext);
877
- }
878
- function mapChildren(children, func, context) {
879
- if (children == null) {
880
- return children;
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
+ }
881
862
  }
882
- var result = [];
883
- mapIntoWithKeyPrefixInternal(children, result, null, func, context);
884
- return result;
885
- }
886
- function countChildren(children) {
887
- return traverseAllChildren(children, function() {
888
- return null;
889
- }, null);
890
- }
891
- function toArray(children) {
892
- var result = [];
893
- mapIntoWithKeyPrefixInternal(children, result, null, function(child) {
894
- return child;
895
- });
896
- return result;
897
- }
898
- function onlyChild(children) {
899
- if (!isValidElement(children)) {
900
- {
901
- throw Error("React.Children.only expected to receive a single React element child.");
863
+ function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
864
+ var escapedPrefix = "";
865
+ if (prefix != null) {
866
+ escapedPrefix = escapeUserProvidedKey(prefix) + "/";
902
867
  }
868
+ var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
869
+ traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
870
+ releaseTraverseContext(traverseContext);
903
871
  }
904
- return children;
905
- }
906
- function createContext2(defaultValue, calculateChangedBits) {
907
- if (calculateChangedBits === void 0) {
908
- calculateChangedBits = null;
909
- } else {
910
- {
911
- if (calculateChangedBits !== null && typeof calculateChangedBits !== "function") {
912
- error("createContext: Expected the optional second argument to be a function. Instead received: %s", calculateChangedBits);
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.");
913
896
  }
914
897
  }
898
+ return children;
915
899
  }
916
- var context = {
917
- $$typeof: REACT_CONTEXT_TYPE,
918
- _calculateChangedBits: calculateChangedBits,
919
- _currentValue: defaultValue,
920
- _currentValue2: defaultValue,
921
- _threadCount: 0,
922
- Provider: null,
923
- Consumer: null
924
- };
925
- context.Provider = {
926
- $$typeof: REACT_PROVIDER_TYPE,
927
- _context: context
928
- };
929
- var hasWarnedAboutUsingNestedContextConsumers = false;
930
- var hasWarnedAboutUsingConsumerProvider = false;
931
- {
932
- var Consumer = {
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 = {
933
911
  $$typeof: REACT_CONTEXT_TYPE,
934
- _context: context,
935
- _calculateChangedBits: context._calculateChangedBits
912
+ _calculateChangedBits: calculateChangedBits,
913
+ _currentValue: defaultValue,
914
+ _currentValue2: defaultValue,
915
+ _threadCount: 0,
916
+ Provider: null,
917
+ Consumer: null
936
918
  };
937
- Object.defineProperties(Consumer, {
938
- Provider: {
939
- get: function() {
940
- if (!hasWarnedAboutUsingConsumerProvider) {
941
- hasWarnedAboutUsingConsumerProvider = true;
942
- 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?");
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;
943
942
  }
944
- return context.Provider;
945
943
  },
946
- set: function(_Provider) {
947
- context.Provider = _Provider;
948
- }
949
- },
950
- _currentValue: {
951
- get: function() {
952
- return context._currentValue;
953
- },
954
- set: function(_currentValue) {
955
- context._currentValue = _currentValue;
956
- }
957
- },
958
- _currentValue2: {
959
- get: function() {
960
- return context._currentValue2;
944
+ _currentValue: {
945
+ get: function() {
946
+ return context._currentValue;
947
+ },
948
+ set: function(_currentValue) {
949
+ context._currentValue = _currentValue;
950
+ }
961
951
  },
962
- set: function(_currentValue2) {
963
- context._currentValue2 = _currentValue2;
964
- }
965
- },
966
- _threadCount: {
967
- get: function() {
968
- return context._threadCount;
952
+ _currentValue2: {
953
+ get: function() {
954
+ return context._currentValue2;
955
+ },
956
+ set: function(_currentValue2) {
957
+ context._currentValue2 = _currentValue2;
958
+ }
969
959
  },
970
- set: function(_threadCount) {
971
- context._threadCount = _threadCount;
972
- }
973
- },
974
- Consumer: {
975
- get: function() {
976
- if (!hasWarnedAboutUsingNestedContextConsumers) {
977
- hasWarnedAboutUsingNestedContextConsumers = true;
978
- 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?");
960
+ _threadCount: {
961
+ get: function() {
962
+ return context._threadCount;
963
+ },
964
+ set: function(_threadCount) {
965
+ context._threadCount = _threadCount;
979
966
  }
980
- return context.Consumer;
981
- }
982
- }
983
- });
984
- context.Consumer = Consumer;
985
- }
986
- {
987
- context._currentRenderer = null;
988
- context._currentRenderer2 = null;
989
- }
990
- return context;
991
- }
992
- function lazy(ctor) {
993
- var lazyType = {
994
- $$typeof: REACT_LAZY_TYPE,
995
- _ctor: ctor,
996
- _status: -1,
997
- _result: null
998
- };
999
- {
1000
- var defaultProps;
1001
- var propTypes;
1002
- Object.defineProperties(lazyType, {
1003
- defaultProps: {
1004
- configurable: true,
1005
- get: function() {
1006
- return defaultProps;
1007
967
  },
1008
- set: function(newDefaultProps) {
1009
- 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.");
1010
- defaultProps = newDefaultProps;
1011
- Object.defineProperty(lazyType, "defaultProps", {
1012
- enumerable: true
1013
- });
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
+ }
1014
976
  }
1015
- },
1016
- propTypes: {
1017
- configurable: true,
1018
- get: function() {
1019
- return propTypes;
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
+ }
1020
1009
  },
1021
- set: function(newPropTypes) {
1022
- 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.");
1023
- propTypes = newPropTypes;
1024
- Object.defineProperty(lazyType, "propTypes", {
1025
- enumerable: true
1026
- });
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
+ }
1027
1022
  }
1028
- }
1029
- });
1023
+ });
1024
+ }
1025
+ return lazyType;
1030
1026
  }
1031
- return lazyType;
1032
- }
1033
- function forwardRef2(render) {
1034
- {
1035
- if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
1036
- error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");
1037
- } else if (typeof render !== "function") {
1038
- error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render);
1039
- } else {
1040
- if (render.length !== 0 && render.length !== 2) {
1041
- 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.");
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
+ }
1042
1037
  }
1043
- }
1044
- if (render != null) {
1045
- if (render.defaultProps != null || render.propTypes != null) {
1046
- error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
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
+ }
1047
1042
  }
1048
1043
  }
1044
+ return {
1045
+ $$typeof: REACT_FORWARD_REF_TYPE,
1046
+ render: render
1047
+ };
1049
1048
  }
1050
- return {
1051
- $$typeof: REACT_FORWARD_REF_TYPE,
1052
- render: render
1053
- };
1054
- }
1055
- function isValidElementType(type) {
1056
- 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);
1057
- }
1058
- function memo2(type, compare) {
1059
- {
1060
- if (!isValidElementType(type)) {
1061
- error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type);
1062
- }
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);
1063
1051
  }
1064
- return {
1065
- $$typeof: REACT_MEMO_TYPE,
1066
- type: type,
1067
- compare: compare === void 0 ? null : compare
1068
- };
1069
- }
1070
- function resolveDispatcher() {
1071
- var dispatcher = ReactCurrentDispatcher.current;
1072
- if (!(dispatcher !== null)) {
1052
+ function memo2(type, compare) {
1073
1053
  {
1074
- 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.");
1054
+ if (!isValidElementType(type)) {
1055
+ error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type);
1056
+ }
1075
1057
  }
1058
+ return {
1059
+ $$typeof: REACT_MEMO_TYPE,
1060
+ type: type,
1061
+ compare: compare === void 0 ? null : compare
1062
+ };
1076
1063
  }
1077
- return dispatcher;
1078
- }
1079
- function useContext2(Context2, unstable_observedBits) {
1080
- var dispatcher = resolveDispatcher();
1081
- {
1082
- if (unstable_observedBits !== void 0) {
1083
- 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" : "");
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
+ }
1084
1070
  }
1085
- if (Context2._context !== void 0) {
1086
- var realContext = Context2._context;
1087
- if (realContext.Consumer === Context2) {
1088
- 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?");
1089
- } else if (realContext.Provider === Context2) {
1090
- error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
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
+ }
1091
1086
  }
1092
1087
  }
1088
+ return dispatcher.useContext(Context2, unstable_observedBits);
1093
1089
  }
1094
- return dispatcher.useContext(Context2, unstable_observedBits);
1095
- }
1096
- function useState2(initialState) {
1097
- var dispatcher = resolveDispatcher();
1098
- return dispatcher.useState(initialState);
1099
- }
1100
- function useReducer(reducer, initialArg, init) {
1101
- var dispatcher = resolveDispatcher();
1102
- return dispatcher.useReducer(reducer, initialArg, init);
1103
- }
1104
- function useRef(initialValue) {
1105
- var dispatcher = resolveDispatcher();
1106
- return dispatcher.useRef(initialValue);
1107
- }
1108
- function useEffect2(create2, deps) {
1109
- var dispatcher = resolveDispatcher();
1110
- return dispatcher.useEffect(create2, deps);
1111
- }
1112
- function useLayoutEffect(create2, deps) {
1113
- var dispatcher = resolveDispatcher();
1114
- return dispatcher.useLayoutEffect(create2, deps);
1115
- }
1116
- function useCallback(callback, deps) {
1117
- var dispatcher = resolveDispatcher();
1118
- return dispatcher.useCallback(callback, deps);
1119
- }
1120
- function useMemo(create2, deps) {
1121
- var dispatcher = resolveDispatcher();
1122
- return dispatcher.useMemo(create2, deps);
1123
- }
1124
- function useImperativeHandle(ref, create2, deps) {
1125
- var dispatcher = resolveDispatcher();
1126
- return dispatcher.useImperativeHandle(ref, create2, deps);
1127
- }
1128
- function useDebugValue(value, formatterFn) {
1129
- {
1090
+ function useState2(initialState) {
1130
1091
  var dispatcher = resolveDispatcher();
1131
- return dispatcher.useDebugValue(value, formatterFn);
1092
+ return dispatcher.useState(initialState);
1132
1093
  }
1133
- }
1134
- var propTypesMisspellWarningShown;
1135
- {
1136
- propTypesMisspellWarningShown = false;
1137
- }
1138
- function getDeclarationErrorAddendum() {
1139
- if (ReactCurrentOwner.current) {
1140
- var name = getComponentName(ReactCurrentOwner.current.type);
1141
- if (name) {
1142
- return "\n\nCheck the render method of `" + name + "`.";
1143
- }
1094
+ function useReducer(reducer, initialArg, init) {
1095
+ var dispatcher = resolveDispatcher();
1096
+ return dispatcher.useReducer(reducer, initialArg, init);
1144
1097
  }
1145
- return "";
1146
- }
1147
- function getSourceInfoErrorAddendum(source) {
1148
- if (source !== void 0) {
1149
- var fileName = source.fileName.replace(/^.*[\\\/]/, "");
1150
- var lineNumber = source.lineNumber;
1151
- return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
1098
+ function useRef(initialValue) {
1099
+ var dispatcher = resolveDispatcher();
1100
+ return dispatcher.useRef(initialValue);
1152
1101
  }
1153
- return "";
1154
- }
1155
- function getSourceInfoErrorAddendumForProps(elementProps) {
1156
- if (elementProps !== null && elementProps !== void 0) {
1157
- return getSourceInfoErrorAddendum(elementProps.__source);
1102
+ function useEffect2(create2, deps) {
1103
+ var dispatcher = resolveDispatcher();
1104
+ return dispatcher.useEffect(create2, deps);
1158
1105
  }
1159
- return "";
1160
- }
1161
- var ownerHasKeyUseWarning = {};
1162
- function getCurrentComponentErrorInfo(parentType) {
1163
- var info = getDeclarationErrorAddendum();
1164
- if (!info) {
1165
- var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
1166
- if (parentName) {
1167
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1168
- }
1106
+ function useLayoutEffect(create2, deps) {
1107
+ var dispatcher = resolveDispatcher();
1108
+ return dispatcher.useLayoutEffect(create2, deps);
1169
1109
  }
1170
- return info;
1171
- }
1172
- function validateExplicitKey(element, parentType) {
1173
- if (!element._store || element._store.validated || element.key != null) {
1174
- return;
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);
1175
1117
  }
1176
- element._store.validated = true;
1177
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1178
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1179
- return;
1118
+ function useImperativeHandle(ref, create2, deps) {
1119
+ var dispatcher = resolveDispatcher();
1120
+ return dispatcher.useImperativeHandle(ref, create2, deps);
1180
1121
  }
1181
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
1182
- var childOwner = "";
1183
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
1184
- childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
1122
+ function useDebugValue(value, formatterFn) {
1123
+ {
1124
+ var dispatcher = resolveDispatcher();
1125
+ return dispatcher.useDebugValue(value, formatterFn);
1126
+ }
1185
1127
  }
1186
- setCurrentlyValidatingElement(element);
1128
+ var propTypesMisspellWarningShown;
1187
1129
  {
1188
- 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);
1130
+ propTypesMisspellWarningShown = false;
1189
1131
  }
1190
- setCurrentlyValidatingElement(null);
1191
- }
1192
- function validateChildKeys(node, parentType) {
1193
- if (typeof node !== "object") {
1194
- return;
1195
- }
1196
- if (Array.isArray(node)) {
1197
- for (var i = 0; i < node.length; i++) {
1198
- var child = node[i];
1199
- if (isValidElement(child)) {
1200
- validateExplicitKey(child, parentType);
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 + "`.";
1201
1137
  }
1202
1138
  }
1203
- } else if (isValidElement(node)) {
1204
- if (node._store) {
1205
- node._store.validated = true;
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 + ".";
1206
1146
  }
1207
- } else if (node) {
1208
- var iteratorFn = getIteratorFn(node);
1209
- if (typeof iteratorFn === "function") {
1210
- if (iteratorFn !== node.entries) {
1211
- var iterator = iteratorFn.call(node);
1212
- var step;
1213
- while (!(step = iterator.next()).done) {
1214
- if (isValidElement(step.value)) {
1215
- validateExplicitKey(step.value, parentType);
1216
- }
1217
- }
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 + ">.";
1218
1162
  }
1219
1163
  }
1164
+ return info;
1220
1165
  }
1221
- }
1222
- function validatePropTypes(element) {
1223
- {
1224
- var type = element.type;
1225
- if (type === null || type === void 0 || typeof type === "string") {
1166
+ function validateExplicitKey(element, parentType) {
1167
+ if (!element._store || element._store.validated || element.key != null) {
1226
1168
  return;
1227
1169
  }
1228
- var name = getComponentName(type);
1229
- var propTypes;
1230
- if (typeof type === "function") {
1231
- propTypes = type.propTypes;
1232
- } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MEMO_TYPE)) {
1233
- propTypes = type.propTypes;
1234
- } else {
1170
+ element._store.validated = true;
1171
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1172
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1235
1173
  return;
1236
1174
  }
1237
- if (propTypes) {
1238
- setCurrentlyValidatingElement(element);
1239
- checkPropTypes(propTypes, element.props, "prop", name, ReactDebugCurrentFrame.getStackAddendum);
1240
- setCurrentlyValidatingElement(null);
1241
- } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
1242
- propTypesMisspellWarningShown = true;
1243
- error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", name || "Unknown");
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) + ".";
1244
1179
  }
1245
- if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
1246
- error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
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);
1247
1183
  }
1184
+ setCurrentlyValidatingElement(null);
1248
1185
  }
1249
- }
1250
- function validateFragmentProps(fragment) {
1251
- {
1252
- setCurrentlyValidatingElement(fragment);
1253
- var keys = Object.keys(fragment.props);
1254
- for (var i = 0; i < keys.length; i++) {
1255
- var key = keys[i];
1256
- if (key !== "children" && key !== "key") {
1257
- error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
1258
- break;
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.");
1259
1241
  }
1260
1242
  }
1261
- if (fragment.ref !== null) {
1262
- error("Invalid attribute `ref` supplied to `React.Fragment`.");
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);
1263
1259
  }
1264
- setCurrentlyValidatingElement(null);
1265
1260
  }
1266
- }
1267
- function createElementWithValidation(type, props, children) {
1268
- var validType = isValidElementType(type);
1269
- if (!validType) {
1270
- var info = "";
1271
- if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
1272
- 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.";
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
+ }
1273
1288
  }
1274
- var sourceInfo = getSourceInfoErrorAddendumForProps(props);
1275
- if (sourceInfo) {
1276
- info += sourceInfo;
1277
- } else {
1278
- info += getDeclarationErrorAddendum();
1289
+ var element = createElement8.apply(this, arguments);
1290
+ if (element == null) {
1291
+ return element;
1279
1292
  }
1280
- var typeString;
1281
- if (type === null) {
1282
- typeString = "null";
1283
- } else if (Array.isArray(type)) {
1284
- typeString = "array";
1285
- } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
1286
- typeString = "<" + (getComponentName(type.type) || "Unknown") + " />";
1287
- info = " Did you accidentally export a JSX literal instead of a component?";
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);
1288
1300
  } else {
1289
- typeString = typeof type;
1301
+ validatePropTypes(element);
1290
1302
  }
1303
+ return element;
1304
+ }
1305
+ var didWarnAboutDeprecatedCreateFactory = false;
1306
+ function createFactoryWithValidation(type) {
1307
+ var validatedFactory = createElementWithValidation.bind(null, type);
1308
+ validatedFactory.type = type;
1291
1309
  {
1292
- 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);
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
+ });
1293
1324
  }
1325
+ return validatedFactory;
1294
1326
  }
1295
- var element = createElement8.apply(this, arguments);
1296
- if (element == null) {
1297
- return element;
1298
- }
1299
- if (validType) {
1327
+ function cloneElementWithValidation(element, props, children) {
1328
+ var newElement = cloneElement.apply(this, arguments);
1300
1329
  for (var i = 2; i < arguments.length; i++) {
1301
- validateChildKeys(arguments[i], type);
1330
+ validateChildKeys(arguments[i], newElement.type);
1302
1331
  }
1332
+ validatePropTypes(newElement);
1333
+ return newElement;
1303
1334
  }
1304
- if (type === REACT_FRAGMENT_TYPE) {
1305
- validateFragmentProps(element);
1306
- } else {
1307
- validatePropTypes(element);
1308
- }
1309
- return element;
1310
- }
1311
- var didWarnAboutDeprecatedCreateFactory = false;
1312
- function createFactoryWithValidation(type) {
1313
- var validatedFactory = createElementWithValidation.bind(null, type);
1314
- validatedFactory.type = type;
1315
1335
  {
1316
- if (!didWarnAboutDeprecatedCreateFactory) {
1317
- didWarnAboutDeprecatedCreateFactory = true;
1318
- warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");
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) {
1319
1343
  }
1320
- Object.defineProperty(validatedFactory, "type", {
1321
- enumerable: false,
1322
- get: function() {
1323
- warn("Factory.type is deprecated. Access the class directly before passing it to createFactory.");
1324
- Object.defineProperty(this, "type", {
1325
- value: type
1326
- });
1327
- return type;
1328
- }
1329
- });
1330
- }
1331
- return validatedFactory;
1332
- }
1333
- function cloneElementWithValidation(element, props, children) {
1334
- var newElement = cloneElement.apply(this, arguments);
1335
- for (var i = 2; i < arguments.length; i++) {
1336
- validateChildKeys(arguments[i], newElement.type);
1337
- }
1338
- validatePropTypes(newElement);
1339
- return newElement;
1340
- }
1341
- {
1342
- try {
1343
- var frozenObject = Object.freeze({});
1344
- var testMap = new Map([[frozenObject, null]]);
1345
- var testSet = new Set([frozenObject]);
1346
- testMap.set(0, 0);
1347
- testSet.add(0);
1348
- } catch (e) {
1349
1344
  }
1350
- }
1351
- var createElement$1 = createElementWithValidation;
1352
- var cloneElement$1 = cloneElementWithValidation;
1353
- var createFactory = createFactoryWithValidation;
1354
- var Children4 = {
1355
- map: mapChildren,
1356
- forEach: forEachChildren,
1357
- count: countChildren,
1358
- toArray: toArray,
1359
- only: onlyChild
1360
- };
1361
- exports.Children = Children4;
1362
- exports.Component = Component;
1363
- exports.Fragment = REACT_FRAGMENT_TYPE;
1364
- exports.Profiler = REACT_PROFILER_TYPE;
1365
- exports.PureComponent = PureComponent2;
1366
- exports.StrictMode = REACT_STRICT_MODE_TYPE;
1367
- exports.Suspense = REACT_SUSPENSE_TYPE;
1368
- exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
1369
- exports.cloneElement = cloneElement$1;
1370
- exports.createContext = createContext2;
1371
- exports.createElement = createElement$1;
1372
- exports.createFactory = createFactory;
1373
- exports.createRef = createRef;
1374
- exports.forwardRef = forwardRef2;
1375
- exports.isValidElement = isValidElement;
1376
- exports.lazy = lazy;
1377
- exports.memo = memo2;
1378
- exports.useCallback = useCallback;
1379
- exports.useContext = useContext2;
1380
- exports.useDebugValue = useDebugValue;
1381
- exports.useEffect = useEffect2;
1382
- exports.useImperativeHandle = useImperativeHandle;
1383
- exports.useLayoutEffect = useLayoutEffect;
1384
- exports.useMemo = useMemo;
1385
- exports.useReducer = useReducer;
1386
- exports.useRef = useRef;
1387
- exports.useState = useState2;
1388
- exports.version = ReactVersion;
1389
- })();
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
+ }
1390
1385
  }
1391
1386
  });
1392
1387
 
1393
- // external/npm/node_modules/react/index.js
1394
- var require_react = __commonJS(function(exports, module) {
1395
- "use strict";
1396
- if (false) {
1397
- module.exports = null;
1398
- } else {
1399
- module.exports = require_react_development();
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
+ }
1400
1397
  }
1401
1398
  });
1402
1399
 
1403
- // external/npm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js
1404
- var require_react_is_development = __commonJS(function(exports) {
1405
- /** @license React v16.13.1
1406
- * react-is.development.js
1407
- *
1408
- * Copyright (c) Facebook, Inc. and its affiliates.
1409
- *
1410
- * This source code is licensed under the MIT license found in the
1411
- * LICENSE file in the root directory of this source tree.
1412
- */
1413
- "use strict";
1414
- if (true) {
1415
- (function() {
1416
- "use strict";
1417
- var hasSymbol = typeof Symbol === "function" && Symbol.for;
1418
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
1419
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
1420
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
1421
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
1422
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
1423
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
1424
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
1425
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
1426
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
1427
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
1428
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
1429
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
1430
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
1431
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
1432
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
1433
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
1434
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
1435
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
1436
- function isValidElementType(type) {
1437
- 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);
1438
- }
1439
- function typeOf(object) {
1440
- if (typeof object === "object" && object !== null) {
1441
- var $$typeof = object.$$typeof;
1442
- switch ($$typeof) {
1443
- case REACT_ELEMENT_TYPE:
1444
- var type = object.type;
1445
- switch (type) {
1446
- case REACT_ASYNC_MODE_TYPE:
1447
- case REACT_CONCURRENT_MODE_TYPE:
1448
- case REACT_FRAGMENT_TYPE:
1449
- case REACT_PROFILER_TYPE:
1450
- case REACT_STRICT_MODE_TYPE:
1451
- case REACT_SUSPENSE_TYPE:
1452
- return type;
1453
- default:
1454
- var $$typeofType = type && type.$$typeof;
1455
- switch ($$typeofType) {
1456
- case REACT_CONTEXT_TYPE:
1457
- case REACT_FORWARD_REF_TYPE:
1458
- case REACT_LAZY_TYPE:
1459
- case REACT_MEMO_TYPE:
1460
- case REACT_PROVIDER_TYPE:
1461
- return $$typeofType;
1462
- default:
1463
- return $$typeof;
1464
- }
1465
- }
1466
- case REACT_PORTAL_TYPE:
1467
- return $$typeof;
1400
+ // node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js
1401
+ var require_react_is_development = __commonJS({
1402
+ "node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js": function(exports) {
1403
+ "use strict";
1404
+ if (true) {
1405
+ (function() {
1406
+ "use strict";
1407
+ var hasSymbol = typeof Symbol === "function" && Symbol.for;
1408
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
1409
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
1410
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
1411
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
1412
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
1413
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
1414
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
1415
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
1416
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
1417
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
1418
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
1419
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
1420
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
1421
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
1422
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
1423
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
1424
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
1425
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
1426
+ function isValidElementType(type) {
1427
+ 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);
1428
+ }
1429
+ function typeOf(object) {
1430
+ if (typeof object === "object" && object !== null) {
1431
+ var $$typeof = object.$$typeof;
1432
+ switch ($$typeof) {
1433
+ case REACT_ELEMENT_TYPE:
1434
+ var type = object.type;
1435
+ switch (type) {
1436
+ case REACT_ASYNC_MODE_TYPE:
1437
+ case REACT_CONCURRENT_MODE_TYPE:
1438
+ case REACT_FRAGMENT_TYPE:
1439
+ case REACT_PROFILER_TYPE:
1440
+ case REACT_STRICT_MODE_TYPE:
1441
+ case REACT_SUSPENSE_TYPE:
1442
+ return type;
1443
+ default:
1444
+ var $$typeofType = type && type.$$typeof;
1445
+ switch ($$typeofType) {
1446
+ case REACT_CONTEXT_TYPE:
1447
+ case REACT_FORWARD_REF_TYPE:
1448
+ case REACT_LAZY_TYPE:
1449
+ case REACT_MEMO_TYPE:
1450
+ case REACT_PROVIDER_TYPE:
1451
+ return $$typeofType;
1452
+ default:
1453
+ return $$typeof;
1454
+ }
1455
+ }
1456
+ case REACT_PORTAL_TYPE:
1457
+ return $$typeof;
1458
+ }
1468
1459
  }
1460
+ return void 0;
1469
1461
  }
1470
- return void 0;
1471
- }
1472
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
1473
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
1474
- var ContextConsumer = REACT_CONTEXT_TYPE;
1475
- var ContextProvider = REACT_PROVIDER_TYPE;
1476
- var Element = REACT_ELEMENT_TYPE;
1477
- var ForwardRef = REACT_FORWARD_REF_TYPE;
1478
- var Fragment6 = REACT_FRAGMENT_TYPE;
1479
- var Lazy = REACT_LAZY_TYPE;
1480
- var Memo = REACT_MEMO_TYPE;
1481
- var Portal = REACT_PORTAL_TYPE;
1482
- var Profiler = REACT_PROFILER_TYPE;
1483
- var StrictMode = REACT_STRICT_MODE_TYPE;
1484
- var Suspense = REACT_SUSPENSE_TYPE;
1485
- var hasWarnedAboutDeprecatedIsAsyncMode = false;
1486
- function isAsyncMode(object) {
1487
- {
1488
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1489
- hasWarnedAboutDeprecatedIsAsyncMode = true;
1490
- 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.");
1462
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
1463
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
1464
+ var ContextConsumer = REACT_CONTEXT_TYPE;
1465
+ var ContextProvider = REACT_PROVIDER_TYPE;
1466
+ var Element = REACT_ELEMENT_TYPE;
1467
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
1468
+ var Fragment6 = REACT_FRAGMENT_TYPE;
1469
+ var Lazy = REACT_LAZY_TYPE;
1470
+ var Memo = REACT_MEMO_TYPE;
1471
+ var Portal = REACT_PORTAL_TYPE;
1472
+ var Profiler = REACT_PROFILER_TYPE;
1473
+ var StrictMode = REACT_STRICT_MODE_TYPE;
1474
+ var Suspense = REACT_SUSPENSE_TYPE;
1475
+ var hasWarnedAboutDeprecatedIsAsyncMode = false;
1476
+ function isAsyncMode(object) {
1477
+ {
1478
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1479
+ hasWarnedAboutDeprecatedIsAsyncMode = true;
1480
+ 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.");
1481
+ }
1491
1482
  }
1483
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
1492
1484
  }
1493
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
1494
- }
1495
- function isConcurrentMode(object) {
1496
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
1497
- }
1498
- function isContextConsumer(object) {
1499
- return typeOf(object) === REACT_CONTEXT_TYPE;
1500
- }
1501
- function isContextProvider(object) {
1502
- return typeOf(object) === REACT_PROVIDER_TYPE;
1503
- }
1504
- function isElement(object) {
1505
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1506
- }
1507
- function isForwardRef(object) {
1508
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
1509
- }
1510
- function isFragment(object) {
1511
- return typeOf(object) === REACT_FRAGMENT_TYPE;
1512
- }
1513
- function isLazy(object) {
1514
- return typeOf(object) === REACT_LAZY_TYPE;
1515
- }
1516
- function isMemo(object) {
1517
- return typeOf(object) === REACT_MEMO_TYPE;
1518
- }
1519
- function isPortal(object) {
1520
- return typeOf(object) === REACT_PORTAL_TYPE;
1521
- }
1522
- function isProfiler(object) {
1523
- return typeOf(object) === REACT_PROFILER_TYPE;
1524
- }
1525
- function isStrictMode(object) {
1526
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
1527
- }
1528
- function isSuspense(object) {
1529
- return typeOf(object) === REACT_SUSPENSE_TYPE;
1530
- }
1531
- exports.AsyncMode = AsyncMode;
1532
- exports.ConcurrentMode = ConcurrentMode;
1533
- exports.ContextConsumer = ContextConsumer;
1534
- exports.ContextProvider = ContextProvider;
1535
- exports.Element = Element;
1536
- exports.ForwardRef = ForwardRef;
1537
- exports.Fragment = Fragment6;
1538
- exports.Lazy = Lazy;
1539
- exports.Memo = Memo;
1540
- exports.Portal = Portal;
1541
- exports.Profiler = Profiler;
1542
- exports.StrictMode = StrictMode;
1543
- exports.Suspense = Suspense;
1544
- exports.isAsyncMode = isAsyncMode;
1545
- exports.isConcurrentMode = isConcurrentMode;
1546
- exports.isContextConsumer = isContextConsumer;
1547
- exports.isContextProvider = isContextProvider;
1548
- exports.isElement = isElement;
1549
- exports.isForwardRef = isForwardRef;
1550
- exports.isFragment = isFragment;
1551
- exports.isLazy = isLazy;
1552
- exports.isMemo = isMemo;
1553
- exports.isPortal = isPortal;
1554
- exports.isProfiler = isProfiler;
1555
- exports.isStrictMode = isStrictMode;
1556
- exports.isSuspense = isSuspense;
1557
- exports.isValidElementType = isValidElementType;
1558
- exports.typeOf = typeOf;
1559
- })();
1485
+ function isConcurrentMode(object) {
1486
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
1487
+ }
1488
+ function isContextConsumer(object) {
1489
+ return typeOf(object) === REACT_CONTEXT_TYPE;
1490
+ }
1491
+ function isContextProvider(object) {
1492
+ return typeOf(object) === REACT_PROVIDER_TYPE;
1493
+ }
1494
+ function isElement(object) {
1495
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1496
+ }
1497
+ function isForwardRef(object) {
1498
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
1499
+ }
1500
+ function isFragment(object) {
1501
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
1502
+ }
1503
+ function isLazy(object) {
1504
+ return typeOf(object) === REACT_LAZY_TYPE;
1505
+ }
1506
+ function isMemo(object) {
1507
+ return typeOf(object) === REACT_MEMO_TYPE;
1508
+ }
1509
+ function isPortal(object) {
1510
+ return typeOf(object) === REACT_PORTAL_TYPE;
1511
+ }
1512
+ function isProfiler(object) {
1513
+ return typeOf(object) === REACT_PROFILER_TYPE;
1514
+ }
1515
+ function isStrictMode(object) {
1516
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
1517
+ }
1518
+ function isSuspense(object) {
1519
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
1520
+ }
1521
+ exports.AsyncMode = AsyncMode;
1522
+ exports.ConcurrentMode = ConcurrentMode;
1523
+ exports.ContextConsumer = ContextConsumer;
1524
+ exports.ContextProvider = ContextProvider;
1525
+ exports.Element = Element;
1526
+ exports.ForwardRef = ForwardRef;
1527
+ exports.Fragment = Fragment6;
1528
+ exports.Lazy = Lazy;
1529
+ exports.Memo = Memo;
1530
+ exports.Portal = Portal;
1531
+ exports.Profiler = Profiler;
1532
+ exports.StrictMode = StrictMode;
1533
+ exports.Suspense = Suspense;
1534
+ exports.isAsyncMode = isAsyncMode;
1535
+ exports.isConcurrentMode = isConcurrentMode;
1536
+ exports.isContextConsumer = isContextConsumer;
1537
+ exports.isContextProvider = isContextProvider;
1538
+ exports.isElement = isElement;
1539
+ exports.isForwardRef = isForwardRef;
1540
+ exports.isFragment = isFragment;
1541
+ exports.isLazy = isLazy;
1542
+ exports.isMemo = isMemo;
1543
+ exports.isPortal = isPortal;
1544
+ exports.isProfiler = isProfiler;
1545
+ exports.isStrictMode = isStrictMode;
1546
+ exports.isSuspense = isSuspense;
1547
+ exports.isValidElementType = isValidElementType;
1548
+ exports.typeOf = typeOf;
1549
+ })();
1550
+ }
1560
1551
  }
1561
1552
  });
1562
1553
 
1563
- // external/npm/node_modules/hoist-non-react-statics/node_modules/react-is/index.js
1564
- var require_react_is = __commonJS(function(exports, module) {
1565
- "use strict";
1566
- if (false) {
1567
- module.exports = null;
1568
- } else {
1569
- module.exports = require_react_is_development();
1554
+ // node_modules/hoist-non-react-statics/node_modules/react-is/index.js
1555
+ var require_react_is = __commonJS({
1556
+ "node_modules/hoist-non-react-statics/node_modules/react-is/index.js": function(exports, module) {
1557
+ "use strict";
1558
+ if (false) {
1559
+ module.exports = null;
1560
+ } else {
1561
+ module.exports = require_react_is_development();
1562
+ }
1570
1563
  }
1571
1564
  });
1572
1565
 
1573
- // external/npm/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
1574
- var require_hoist_non_react_statics_cjs = __commonJS(function(exports, module) {
1575
- "use strict";
1576
- var reactIs = require_react_is();
1577
- var REACT_STATICS = {
1578
- childContextTypes: true,
1579
- contextType: true,
1580
- contextTypes: true,
1581
- defaultProps: true,
1582
- displayName: true,
1583
- getDefaultProps: true,
1584
- getDerivedStateFromError: true,
1585
- getDerivedStateFromProps: true,
1586
- mixins: true,
1587
- propTypes: true,
1588
- type: true
1589
- };
1590
- var KNOWN_STATICS = {
1591
- name: true,
1592
- length: true,
1593
- prototype: true,
1594
- caller: true,
1595
- callee: true,
1596
- arguments: true,
1597
- arity: true
1598
- };
1599
- var FORWARD_REF_STATICS = {
1600
- $$typeof: true,
1601
- render: true,
1602
- defaultProps: true,
1603
- displayName: true,
1604
- propTypes: true
1605
- };
1606
- var MEMO_STATICS = {
1607
- $$typeof: true,
1608
- compare: true,
1609
- defaultProps: true,
1610
- displayName: true,
1611
- propTypes: true,
1612
- type: true
1613
- };
1614
- var TYPE_STATICS = {};
1615
- TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
1616
- TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
1617
- function getStatics(component) {
1618
- if (reactIs.isMemo(component)) {
1619
- return MEMO_STATICS;
1566
+ // node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
1567
+ var require_hoist_non_react_statics_cjs = __commonJS({
1568
+ "node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js": function(exports, module) {
1569
+ "use strict";
1570
+ var reactIs = require_react_is();
1571
+ var REACT_STATICS = {
1572
+ childContextTypes: true,
1573
+ contextType: true,
1574
+ contextTypes: true,
1575
+ defaultProps: true,
1576
+ displayName: true,
1577
+ getDefaultProps: true,
1578
+ getDerivedStateFromError: true,
1579
+ getDerivedStateFromProps: true,
1580
+ mixins: true,
1581
+ propTypes: true,
1582
+ type: true
1583
+ };
1584
+ var KNOWN_STATICS = {
1585
+ name: true,
1586
+ length: true,
1587
+ prototype: true,
1588
+ caller: true,
1589
+ callee: true,
1590
+ arguments: true,
1591
+ arity: true
1592
+ };
1593
+ var FORWARD_REF_STATICS = {
1594
+ "$$typeof": true,
1595
+ render: true,
1596
+ defaultProps: true,
1597
+ displayName: true,
1598
+ propTypes: true
1599
+ };
1600
+ var MEMO_STATICS = {
1601
+ "$$typeof": true,
1602
+ compare: true,
1603
+ defaultProps: true,
1604
+ displayName: true,
1605
+ propTypes: true,
1606
+ type: true
1607
+ };
1608
+ var TYPE_STATICS = {};
1609
+ TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
1610
+ TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
1611
+ function getStatics(component) {
1612
+ if (reactIs.isMemo(component)) {
1613
+ return MEMO_STATICS;
1614
+ }
1615
+ return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS;
1620
1616
  }
1621
- return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS;
1622
- }
1623
- var defineProperty2 = Object.defineProperty;
1624
- var getOwnPropertyNames = Object.getOwnPropertyNames;
1625
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
1626
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1627
- var getPrototypeOf = Object.getPrototypeOf;
1628
- var objectPrototype = Object.prototype;
1629
- function hoistNonReactStatics2(targetComponent, sourceComponent, blacklist) {
1630
- if (typeof sourceComponent !== "string") {
1631
- if (objectPrototype) {
1632
- var inheritedComponent = getPrototypeOf(sourceComponent);
1633
- if (inheritedComponent && inheritedComponent !== objectPrototype) {
1634
- hoistNonReactStatics2(targetComponent, inheritedComponent, blacklist);
1617
+ var defineProperty2 = Object.defineProperty;
1618
+ var getOwnPropertyNames = Object.getOwnPropertyNames;
1619
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
1620
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1621
+ var getPrototypeOf = Object.getPrototypeOf;
1622
+ var objectPrototype = Object.prototype;
1623
+ function hoistNonReactStatics2(targetComponent, sourceComponent, blacklist) {
1624
+ if (typeof sourceComponent !== "string") {
1625
+ if (objectPrototype) {
1626
+ var inheritedComponent = getPrototypeOf(sourceComponent);
1627
+ if (inheritedComponent && inheritedComponent !== objectPrototype) {
1628
+ hoistNonReactStatics2(targetComponent, inheritedComponent, blacklist);
1629
+ }
1635
1630
  }
1636
- }
1637
- var keys = getOwnPropertyNames(sourceComponent);
1638
- if (getOwnPropertySymbols) {
1639
- keys = keys.concat(getOwnPropertySymbols(sourceComponent));
1640
- }
1641
- var targetStatics = getStatics(targetComponent);
1642
- var sourceStatics = getStatics(sourceComponent);
1643
- for (var i = 0; i < keys.length; ++i) {
1644
- var key = keys[i];
1645
- if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
1646
- var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
1647
- try {
1648
- defineProperty2(targetComponent, key, descriptor);
1649
- } catch (e) {
1631
+ var keys = getOwnPropertyNames(sourceComponent);
1632
+ if (getOwnPropertySymbols) {
1633
+ keys = keys.concat(getOwnPropertySymbols(sourceComponent));
1634
+ }
1635
+ var targetStatics = getStatics(targetComponent);
1636
+ var sourceStatics = getStatics(sourceComponent);
1637
+ for (var i = 0; i < keys.length; ++i) {
1638
+ var key = keys[i];
1639
+ if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
1640
+ var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
1641
+ try {
1642
+ defineProperty2(targetComponent, key, descriptor);
1643
+ } catch (e) {
1644
+ }
1650
1645
  }
1651
1646
  }
1652
1647
  }
1648
+ return targetComponent;
1653
1649
  }
1654
- return targetComponent;
1650
+ module.exports = hoistNonReactStatics2;
1655
1651
  }
1656
- module.exports = hoistNonReactStatics2;
1657
1652
  });
1658
1653
 
1659
1654
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/index.js
@@ -1674,6 +1669,9 @@ var ReactIntl = (function() {
1674
1669
  FormattedList: function() {
1675
1670
  return FormattedList;
1676
1671
  },
1672
+ FormattedListParts: function() {
1673
+ return FormattedListParts;
1674
+ },
1677
1675
  FormattedMessage: function() {
1678
1676
  return message_default;
1679
1677
  },
@@ -1745,21 +1743,7 @@ var ReactIntl = (function() {
1745
1743
  }
1746
1744
  });
1747
1745
 
1748
- // external/npm/node_modules/tslib/tslib.es6.js
1749
- /*! *****************************************************************************
1750
- Copyright (c) Microsoft Corporation.
1751
-
1752
- Permission to use, copy, modify, and/or distribute this software for any
1753
- purpose with or without fee is hereby granted.
1754
-
1755
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1756
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1757
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1758
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1759
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1760
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1761
- PERFORMANCE OF THIS SOFTWARE.
1762
- ***************************************************************************** */
1746
+ // node_modules/tslib/tslib.es6.js
1763
1747
  var extendStatics = function(d, b) {
1764
1748
  extendStatics = Object.setPrototypeOf || {__proto__: []} instanceof Array && function(d2, b2) {
1765
1749
  d2.__proto__ = b2;
@@ -1898,8 +1882,10 @@ var ReactIntl = (function() {
1898
1882
  }
1899
1883
  var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
1900
1884
 
1885
+ // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/regex.generated.js
1886
+ var S_UNICODE_REGEX = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/;
1887
+
1901
1888
  // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/NumberFormat/format_to_parts.js
1902
- var S_UNICODE_REGEX = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B98-\u2BFF\u2CE5-\u2CEA\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9B\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD10-\uDD6C\uDD70-\uDDAC\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED5\uDEE0-\uDEEC\uDEF0-\uDEFA\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDD00-\uDD0B\uDD0D-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95]/;
1903
1889
  var CARET_S_UNICODE_REGEX = new RegExp("^" + S_UNICODE_REGEX.source);
1904
1890
  var S_DOLLAR_UNICODE_REGEX = new RegExp(S_UNICODE_REGEX.source + "$");
1905
1891
 
@@ -1998,8 +1984,7 @@ var ReactIntl = (function() {
1998
1984
  }
1999
1985
 
2000
1986
  // bazel-out/darwin-fastbuild/bin/packages/icu-messageformat-parser/lib/regex.generated.js
2001
- var SPACE_SEPARATOR_START_REGEX = /^[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]*/i;
2002
- var SPACE_SEPARATOR_END_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]*$/i;
1987
+ var SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
2003
1988
 
2004
1989
  // bazel-out/darwin-fastbuild/bin/packages/icu-skeleton-parser/lib/date-time.js
2005
1990
  var DATE_TIME_REGEX = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
@@ -2365,6 +2350,8 @@ var ReactIntl = (function() {
2365
2350
 
2366
2351
  // bazel-out/darwin-fastbuild/bin/packages/icu-messageformat-parser/lib/parser.js
2367
2352
  var _a;
2353
+ var SPACE_SEPARATOR_START_REGEX = new RegExp("^" + SPACE_SEPARATOR_REGEX.source + "*");
2354
+ var SPACE_SEPARATOR_END_REGEX = new RegExp(SPACE_SEPARATOR_REGEX.source + "*$");
2368
2355
  function createLocation(start, end) {
2369
2356
  return {start: start, end: end};
2370
2357
  }
@@ -4048,7 +4035,24 @@ var ReactIntl = (function() {
4048
4035
  function generateToken(i) {
4049
4036
  return now + "_" + i + "_" + now;
4050
4037
  }
4051
- function formatList(_a2, getListFormat, values, options) {
4038
+ function formatList(opts, getListFormat, values, options) {
4039
+ if (options === void 0) {
4040
+ options = {};
4041
+ }
4042
+ var results = formatListToParts(opts, getListFormat, values, options).reduce(function(all, el) {
4043
+ var val = el.value;
4044
+ if (typeof val !== "string") {
4045
+ all.push(val);
4046
+ } else if (typeof all[all.length - 1] === "string") {
4047
+ all[all.length - 1] += val;
4048
+ } else {
4049
+ all.push(val);
4050
+ }
4051
+ return all;
4052
+ }, []);
4053
+ return results.length === 1 ? results[0] : results;
4054
+ }
4055
+ function formatListToParts(_a2, getListFormat, values, options) {
4052
4056
  var locale = _a2.locale, onError = _a2.onError;
4053
4057
  if (options === void 0) {
4054
4058
  options = {};
@@ -4068,21 +4072,9 @@ var ReactIntl = (function() {
4068
4072
  }
4069
4073
  return String(v);
4070
4074
  });
4071
- if (!Object.keys(richValues_1).length) {
4072
- return getListFormat(locale, filteredOptions).format(serializedValues);
4073
- }
4074
- var parts = getListFormat(locale, filteredOptions).formatToParts(serializedValues);
4075
- return parts.reduce(function(all, el) {
4076
- var val = el.value;
4077
- if (richValues_1[val]) {
4078
- all.push(richValues_1[val]);
4079
- } else if (typeof all[all.length - 1] === "string") {
4080
- all[all.length - 1] += val;
4081
- } else {
4082
- all.push(val);
4083
- }
4084
- return all;
4085
- }, []);
4075
+ return getListFormat(locale, filteredOptions).formatToParts(serializedValues).map(function(part) {
4076
+ return part.type === "literal" ? part : __assign(__assign({}, part), {value: richValues_1[part.value] || part.value});
4077
+ });
4086
4078
  } catch (e) {
4087
4079
  onError(new IntlError(IntlErrorCode.FORMAT_ERROR, "Error formatting list.", e));
4088
4080
  }
@@ -4222,7 +4214,7 @@ var ReactIntl = (function() {
4222
4214
  onError(new MissingDataError('Missing locale data for locale: "' + locale + '" in Intl.DateTimeFormat. Using default locale: "' + defaultLocale + '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'));
4223
4215
  }
4224
4216
  verifyConfigMessages(resolvedConfig);
4225
- return __assign(__assign({}, resolvedConfig), {formatters: formatters, formatNumber: formatNumber.bind(null, resolvedConfig, formatters.getNumberFormat), formatNumberToParts: formatNumberToParts.bind(null, resolvedConfig, formatters.getNumberFormat), formatRelativeTime: formatRelativeTime.bind(null, resolvedConfig, formatters.getRelativeTimeFormat), formatDate: formatDate.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatDateToParts: formatDateToParts.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatTime: formatTime.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatDateTimeRange: formatDateTimeRange.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatTimeToParts: formatTimeToParts.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatPlural: formatPlural.bind(null, resolvedConfig, formatters.getPluralRules), formatMessage: formatMessage.bind(null, resolvedConfig, formatters), formatList: formatList.bind(null, resolvedConfig, formatters.getListFormat), formatDisplayName: formatDisplayName.bind(null, resolvedConfig, formatters.getDisplayNames)});
4217
+ return __assign(__assign({}, resolvedConfig), {formatters: formatters, formatNumber: formatNumber.bind(null, resolvedConfig, formatters.getNumberFormat), formatNumberToParts: formatNumberToParts.bind(null, resolvedConfig, formatters.getNumberFormat), formatRelativeTime: formatRelativeTime.bind(null, resolvedConfig, formatters.getRelativeTimeFormat), formatDate: formatDate.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatDateToParts: formatDateToParts.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatTime: formatTime.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatDateTimeRange: formatDateTimeRange.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatTimeToParts: formatTimeToParts.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatPlural: formatPlural.bind(null, resolvedConfig, formatters.getPluralRules), formatMessage: formatMessage.bind(null, resolvedConfig, formatters), formatList: formatList.bind(null, resolvedConfig, formatters.getListFormat), formatListToParts: formatListToParts.bind(null, resolvedConfig, formatters.getListFormat), formatDisplayName: formatDisplayName.bind(null, resolvedConfig, formatters.getDisplayNames)});
4226
4218
  }
4227
4219
 
4228
4220
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/utils.js
@@ -4317,6 +4309,12 @@ var ReactIntl = (function() {
4317
4309
  return children(intl.formatNumberToParts(value, formatProps));
4318
4310
  };
4319
4311
  FormattedNumberParts.displayName = "FormattedNumberParts";
4312
+ var FormattedListParts = function(props) {
4313
+ var intl = useIntl();
4314
+ var value = props.value, children = props.children, formatProps = __rest(props, ["value", "children"]);
4315
+ return children(intl.formatListToParts(value, formatProps));
4316
+ };
4317
+ FormattedNumberParts.displayName = "FormattedNumberParts";
4320
4318
  function createFormattedDateTimePartsComponent(name) {
4321
4319
  var ComponentParts = function(props) {
4322
4320
  var intl = useIntl();
@@ -4636,4 +4634,39 @@ var ReactIntl = (function() {
4636
4634
  var FormattedTimeParts = createFormattedDateTimePartsComponent("formatTime");
4637
4635
  return lib_exports;
4638
4636
  })();
4637
+ /*
4638
+ object-assign
4639
+ (c) Sindre Sorhus
4640
+ @license MIT
4641
+ */
4642
+ /*! *****************************************************************************
4643
+ Copyright (c) Microsoft Corporation.
4644
+
4645
+ Permission to use, copy, modify, and/or distribute this software for any
4646
+ purpose with or without fee is hereby granted.
4647
+
4648
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
4649
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
4650
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
4651
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
4652
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
4653
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
4654
+ PERFORMANCE OF THIS SOFTWARE.
4655
+ ***************************************************************************** */
4656
+ /** @license React v16.13.1
4657
+ * react-is.development.js
4658
+ *
4659
+ * Copyright (c) Facebook, Inc. and its affiliates.
4660
+ *
4661
+ * This source code is licensed under the MIT license found in the
4662
+ * LICENSE file in the root directory of this source tree.
4663
+ */
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
+ */
4639
4672
  //# sourceMappingURL=react-intl.iife.js.map