AdSense Plugin WP QUADS - Version 2.0

Version Description

  • New interface added
Download this release

Release Info

Developer wpquads
Plugin Icon 128x128 AdSense Plugin WP QUADS
Version 2.0
Comparing to
See all releases

Code changes from version 1.8.18 to 2.0

admin/assets/img/quads-search.png ADDED
Binary file
admin/assets/img/quads-v2-logo.png ADDED
Binary file
admin/assets/js/.babelrc ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "presets": [
3
+ "@babel/preset-env",
4
+ "@babel/preset-react"
5
+ ],
6
+ "plugins": [
7
+ [
8
+ "@babel/plugin-proposal-class-properties"
9
+ ]
10
+ ]
11
+ }
admin/assets/js/dist/adminscript.js ADDED
@@ -0,0 +1,103898 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 /******/ // The module cache
3
+ /******/ var installedModules = {};
4
+ /******/
5
+ /******/ // The require function
6
+ /******/ function __webpack_require__(moduleId) {
7
+ /******/
8
+ /******/ // Check if module is in cache
9
+ /******/ if(installedModules[moduleId]) {
10
+ /******/ return installedModules[moduleId].exports;
11
+ /******/ }
12
+ /******/ // Create a new module (and put it into the cache)
13
+ /******/ var module = installedModules[moduleId] = {
14
+ /******/ i: moduleId,
15
+ /******/ l: false,
16
+ /******/ exports: {}
17
+ /******/ };
18
+ /******/
19
+ /******/ // Execute the module function
20
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21
+ /******/
22
+ /******/ // Flag the module as loaded
23
+ /******/ module.l = true;
24
+ /******/
25
+ /******/ // Return the exports of the module
26
+ /******/ return module.exports;
27
+ /******/ }
28
+ /******/
29
+ /******/
30
+ /******/ // expose the modules object (__webpack_modules__)
31
+ /******/ __webpack_require__.m = modules;
32
+ /******/
33
+ /******/ // expose the module cache
34
+ /******/ __webpack_require__.c = installedModules;
35
+ /******/
36
+ /******/ // define getter function for harmony exports
37
+ /******/ __webpack_require__.d = function(exports, name, getter) {
38
+ /******/ if(!__webpack_require__.o(exports, name)) {
39
+ /******/ Object.defineProperty(exports, name, {
40
+ /******/ configurable: false,
41
+ /******/ enumerable: true,
42
+ /******/ get: getter
43
+ /******/ });
44
+ /******/ }
45
+ /******/ };
46
+ /******/
47
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
48
+ /******/ __webpack_require__.n = function(module) {
49
+ /******/ var getter = module && module.__esModule ?
50
+ /******/ function getDefault() { return module['default']; } :
51
+ /******/ function getModuleExports() { return module; };
52
+ /******/ __webpack_require__.d(getter, 'a', getter);
53
+ /******/ return getter;
54
+ /******/ };
55
+ /******/
56
+ /******/ // Object.prototype.hasOwnProperty.call
57
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
58
+ /******/
59
+ /******/ // __webpack_public_path__
60
+ /******/ __webpack_require__.p = "";
61
+ /******/
62
+ /******/ // Load entry module and return exports
63
+ /******/ return __webpack_require__(__webpack_require__.s = 298);
64
+ /******/ })
65
+ /************************************************************************/
66
+ /******/ ([
67
+ /* 0 */
68
+ /***/ (function(module, exports, __webpack_require__) {
69
+
70
+ "use strict";
71
+ /* WEBPACK VAR INJECTION */(function(process) {
72
+
73
+ if (process.env.NODE_ENV === 'production') {
74
+ module.exports = __webpack_require__(299);
75
+ } else {
76
+ module.exports = __webpack_require__(300);
77
+ }
78
+
79
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
80
+
81
+ /***/ }),
82
+ /* 1 */
83
+ /***/ (function(module, exports) {
84
+
85
+ // shim for using process in browser
86
+ var process = module.exports = {};
87
+
88
+ // cached from whatever global is present so that test runners that stub it
89
+ // don't break things. But we need to wrap it in a try catch in case it is
90
+ // wrapped in strict mode code which doesn't define any globals. It's inside a
91
+ // function because try/catches deoptimize in certain engines.
92
+
93
+ var cachedSetTimeout;
94
+ var cachedClearTimeout;
95
+
96
+ function defaultSetTimout() {
97
+ throw new Error('setTimeout has not been defined');
98
+ }
99
+ function defaultClearTimeout () {
100
+ throw new Error('clearTimeout has not been defined');
101
+ }
102
+ (function () {
103
+ try {
104
+ if (typeof setTimeout === 'function') {
105
+ cachedSetTimeout = setTimeout;
106
+ } else {
107
+ cachedSetTimeout = defaultSetTimout;
108
+ }
109
+ } catch (e) {
110
+ cachedSetTimeout = defaultSetTimout;
111
+ }
112
+ try {
113
+ if (typeof clearTimeout === 'function') {
114
+ cachedClearTimeout = clearTimeout;
115
+ } else {
116
+ cachedClearTimeout = defaultClearTimeout;
117
+ }
118
+ } catch (e) {
119
+ cachedClearTimeout = defaultClearTimeout;
120
+ }
121
+ } ())
122
+ function runTimeout(fun) {
123
+ if (cachedSetTimeout === setTimeout) {
124
+ //normal enviroments in sane situations
125
+ return setTimeout(fun, 0);
126
+ }
127
+ // if setTimeout wasn't available but was latter defined
128
+ if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
129
+ cachedSetTimeout = setTimeout;
130
+ return setTimeout(fun, 0);
131
+ }
132
+ try {
133
+ // when when somebody has screwed with setTimeout but no I.E. maddness
134
+ return cachedSetTimeout(fun, 0);
135
+ } catch(e){
136
+ try {
137
+ // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
138
+ return cachedSetTimeout.call(null, fun, 0);
139
+ } catch(e){
140
+ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
141
+ return cachedSetTimeout.call(this, fun, 0);
142
+ }
143
+ }
144
+
145
+
146
+ }
147
+ function runClearTimeout(marker) {
148
+ if (cachedClearTimeout === clearTimeout) {
149
+ //normal enviroments in sane situations
150
+ return clearTimeout(marker);
151
+ }
152
+ // if clearTimeout wasn't available but was latter defined
153
+ if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
154
+ cachedClearTimeout = clearTimeout;
155
+ return clearTimeout(marker);
156
+ }
157
+ try {
158
+ // when when somebody has screwed with setTimeout but no I.E. maddness
159
+ return cachedClearTimeout(marker);
160
+ } catch (e){
161
+ try {
162
+ // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
163
+ return cachedClearTimeout.call(null, marker);
164
+ } catch (e){
165
+ // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
166
+ // Some versions of I.E. have different rules for clearTimeout vs setTimeout
167
+ return cachedClearTimeout.call(this, marker);
168
+ }
169
+ }
170
+
171
+
172
+
173
+ }
174
+ var queue = [];
175
+ var draining = false;
176
+ var currentQueue;
177
+ var queueIndex = -1;
178
+
179
+ function cleanUpNextTick() {
180
+ if (!draining || !currentQueue) {
181
+ return;
182
+ }
183
+ draining = false;
184
+ if (currentQueue.length) {
185
+ queue = currentQueue.concat(queue);
186
+ } else {
187
+ queueIndex = -1;
188
+ }
189
+ if (queue.length) {
190
+ drainQueue();
191
+ }
192
+ }
193
+
194
+ function drainQueue() {
195
+ if (draining) {
196
+ return;
197
+ }
198
+ var timeout = runTimeout(cleanUpNextTick);
199
+ draining = true;
200
+
201
+ var len = queue.length;
202
+ while(len) {
203
+ currentQueue = queue;
204
+ queue = [];
205
+ while (++queueIndex < len) {
206
+ if (currentQueue) {
207
+ currentQueue[queueIndex].run();
208
+ }
209
+ }
210
+ queueIndex = -1;
211
+ len = queue.length;
212
+ }
213
+ currentQueue = null;
214
+ draining = false;
215
+ runClearTimeout(timeout);
216
+ }
217
+
218
+ process.nextTick = function (fun) {
219
+ var args = new Array(arguments.length - 1);
220
+ if (arguments.length > 1) {
221
+ for (var i = 1; i < arguments.length; i++) {
222
+ args[i - 1] = arguments[i];
223
+ }
224
+ }
225
+ queue.push(new Item(fun, args));
226
+ if (queue.length === 1 && !draining) {
227
+ runTimeout(drainQueue);
228
+ }
229
+ };
230
+
231
+ // v8 likes predictible objects
232
+ function Item(fun, array) {
233
+ this.fun = fun;
234
+ this.array = array;
235
+ }
236
+ Item.prototype.run = function () {
237
+ this.fun.apply(null, this.array);
238
+ };
239
+ process.title = 'browser';
240
+ process.browser = true;
241
+ process.env = {};
242
+ process.argv = [];
243
+ process.version = ''; // empty string to avoid regexp issues
244
+ process.versions = {};
245
+
246
+ function noop() {}
247
+
248
+ process.on = noop;
249
+ process.addListener = noop;
250
+ process.once = noop;
251
+ process.off = noop;
252
+ process.removeListener = noop;
253
+ process.removeAllListeners = noop;
254
+ process.emit = noop;
255
+ process.prependListener = noop;
256
+ process.prependOnceListener = noop;
257
+
258
+ process.listeners = function (name) { return [] }
259
+
260
+ process.binding = function (name) {
261
+ throw new Error('process.binding is not supported');
262
+ };
263
+
264
+ process.cwd = function () { return '/' };
265
+ process.chdir = function (dir) {
266
+ throw new Error('process.chdir is not supported');
267
+ };
268
+ process.umask = function() { return 0; };
269
+
270
+
271
+ /***/ }),
272
+ /* 2 */
273
+ /***/ (function(module, exports, __webpack_require__) {
274
+
275
+ /* WEBPACK VAR INJECTION */(function(process) {/**
276
+ * Copyright (c) 2013-present, Facebook, Inc.
277
+ *
278
+ * This source code is licensed under the MIT license found in the
279
+ * LICENSE file in the root directory of this source tree.
280
+ */
281
+
282
+ if (process.env.NODE_ENV !== 'production') {
283
+ var ReactIs = __webpack_require__(14);
284
+
285
+ // By explicitly using `prop-types` you are opting into new development behavior.
286
+ // http://fb.me/prop-types-in-prod
287
+ var throwOnDirectAccess = true;
288
+ module.exports = __webpack_require__(311)(ReactIs.isElement, throwOnDirectAccess);
289
+ } else {
290
+ // By explicitly using `prop-types` you are opting into new production behavior.
291
+ // http://fb.me/prop-types-in-prod
292
+ module.exports = __webpack_require__(312)();
293
+ }
294
+
295
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
296
+
297
+ /***/ }),
298
+ /* 3 */
299
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
300
+
301
+ "use strict";
302
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _extends;
303
+ function _extends() {
304
+ _extends = Object.assign || function (target) {
305
+ for (var i = 1; i < arguments.length; i++) {
306
+ var source = arguments[i];
307
+
308
+ for (var key in source) {
309
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
310
+ target[key] = source[key];
311
+ }
312
+ }
313
+ }
314
+
315
+ return target;
316
+ };
317
+
318
+ return _extends.apply(this, arguments);
319
+ }
320
+
321
+ /***/ }),
322
+ /* 4 */
323
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
324
+
325
+ "use strict";
326
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _objectWithoutProperties;
327
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__objectWithoutPropertiesLoose__ = __webpack_require__(24);
328
+
329
+ function _objectWithoutProperties(source, excluded) {
330
+ if (source == null) return {};
331
+ var target = Object(__WEBPACK_IMPORTED_MODULE_0__objectWithoutPropertiesLoose__["a" /* default */])(source, excluded);
332
+ var key, i;
333
+
334
+ if (Object.getOwnPropertySymbols) {
335
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
336
+
337
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
338
+ key = sourceSymbolKeys[i];
339
+ if (excluded.indexOf(key) >= 0) continue;
340
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
341
+ target[key] = source[key];
342
+ }
343
+ }
344
+
345
+ return target;
346
+ }
347
+
348
+ /***/ }),
349
+ /* 5 */
350
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
351
+
352
+ "use strict";
353
+ function toVal(mix) {
354
+ var k, y, str='';
355
+ if (mix) {
356
+ if (typeof mix === 'object') {
357
+ if (Array.isArray(mix)) {
358
+ for (k=0; k < mix.length; k++) {
359
+ if (mix[k] && (y = toVal(mix[k]))) {
360
+ str && (str += ' ');
361
+ str += y;
362
+ }
363
+ }
364
+ } else {
365
+ for (k in mix) {
366
+ if (mix[k] && (y = toVal(k))) {
367
+ str && (str += ' ');
368
+ str += y;
369
+ }
370
+ }
371
+ }
372
+ } else if (typeof mix !== 'boolean' && !mix.call) {
373
+ str && (str += ' ');
374
+ str += mix;
375
+ }
376
+ }
377
+ return str;
378
+ }
379
+
380
+ /* harmony default export */ __webpack_exports__["a"] = (function () {
381
+ var i=0, x, str='';
382
+ while (i < arguments.length) {
383
+ if (x = toVal(arguments[i++])) {
384
+ str && (str += ' ');
385
+ str += x
386
+ }
387
+ }
388
+ return str;
389
+ });
390
+
391
+
392
+ /***/ }),
393
+ /* 6 */
394
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
395
+
396
+ "use strict";
397
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
398
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_ui_styles__ = __webpack_require__(20);
399
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__defaultTheme__ = __webpack_require__(52);
400
+
401
+
402
+
403
+
404
+ function withStyles(stylesOrCreator, options) {
405
+ return Object(__WEBPACK_IMPORTED_MODULE_1__material_ui_styles__["g" /* withStyles */])(stylesOrCreator, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
406
+ defaultTheme: __WEBPACK_IMPORTED_MODULE_2__defaultTheme__["a" /* default */]
407
+ }, options));
408
+ }
409
+
410
+ /* harmony default export */ __webpack_exports__["a"] = (withStyles);
411
+
412
+ /***/ }),
413
+ /* 7 */
414
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
415
+
416
+ "use strict";
417
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__chainPropTypes__ = __webpack_require__(92);
418
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__chainPropTypes__["a"]; });
419
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__deepmerge__ = __webpack_require__(352);
420
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__deepmerge__["a"]; });
421
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__elementAcceptingRef__ = __webpack_require__(353);
422
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_2__elementAcceptingRef__["a"]; });
423
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__elementTypeAcceptingRef__ = __webpack_require__(354);
424
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_3__elementTypeAcceptingRef__["a"]; });
425
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__exactProp__ = __webpack_require__(355);
426
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_4__exactProp__["a"]; });
427
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__getDisplayName__ = __webpack_require__(356);
428
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_5__getDisplayName__["a"]; });
429
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ponyfillGlobal__ = __webpack_require__(357);
430
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_6__ponyfillGlobal__["a"]; });
431
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__refType__ = __webpack_require__(358);
432
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_7__refType__["a"]; });
433
+ /** @license Material-UI v4.9.6
434
+ *
435
+ * This source code is licensed under the MIT license found in the
436
+ * LICENSE file in the root directory of this source tree.
437
+ */
438
+
439
+
440
+
441
+
442
+
443
+
444
+
445
+
446
+
447
+ /***/ }),
448
+ /* 8 */
449
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
450
+
451
+ "use strict";
452
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = capitalize;
453
+ // It should to be noted that this function isn't equivalent to `text-transform: capitalize`.
454
+ //
455
+ // A strict capitalization should uppercase the first letter of each word a the sentence.
456
+ // We only handle the first word.
457
+ function capitalize(string) {
458
+ if (process.env.NODE_ENV !== 'production') {
459
+ if (typeof string !== 'string') {
460
+ throw new Error('Material-UI: capitalize(string) expects a string argument.');
461
+ }
462
+ }
463
+
464
+ return string.charAt(0).toUpperCase() + string.slice(1);
465
+ }
466
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
467
+
468
+ /***/ }),
469
+ /* 9 */
470
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
471
+
472
+ "use strict";
473
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__capitalize__ = __webpack_require__(8);
474
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__capitalize__["a"]; });
475
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__deprecatedPropType__ = __webpack_require__(194);
476
+ /* unused harmony reexport createChainedFunction */
477
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__createSvgIcon__ = __webpack_require__(19);
478
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_2__createSvgIcon__["a"]; });
479
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__debounce__ = __webpack_require__(38);
480
+ /* unused harmony reexport debounce */
481
+ /* unused harmony reexport deprecatedPropType */
482
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__isMuiElement__ = __webpack_require__(55);
483
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_4__isMuiElement__["a"]; });
484
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__ownerDocument__ = __webpack_require__(29);
485
+ /* unused harmony reexport ownerDocument */
486
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ownerWindow__ = __webpack_require__(56);
487
+ /* unused harmony reexport ownerWindow */
488
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__requirePropFactory__ = __webpack_require__(195);
489
+ /* unused harmony reexport requirePropFactory */
490
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__setRef__ = __webpack_require__(39);
491
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_8__setRef__["a"]; });
492
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__unsupportedProp__ = __webpack_require__(73);
493
+ /* unused harmony reexport unsupportedProp */
494
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__useControlled__ = __webpack_require__(40);
495
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_10__useControlled__["a"]; });
496
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__useEventCallback__ = __webpack_require__(32);
497
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_11__useEventCallback__["a"]; });
498
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__useForkRef__ = __webpack_require__(11);
499
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_12__useForkRef__["a"]; });
500
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__unstable_useId__ = __webpack_require__(105);
501
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_13__unstable_useId__["a"]; });
502
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__useIsFocusVisible__ = __webpack_require__(57);
503
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return __WEBPACK_IMPORTED_MODULE_14__useIsFocusVisible__["a"]; });
504
+
505
+
506
+
507
+
508
+
509
+
510
+
511
+
512
+
513
+
514
+
515
+
516
+
517
+ // eslint-disable-next-line camelcase
518
+
519
+
520
+
521
+
522
+ /***/ }),
523
+ /* 10 */
524
+ /***/ (function(module, exports, __webpack_require__) {
525
+
526
+ "use strict";
527
+ /* WEBPACK VAR INJECTION */(function(process) {
528
+
529
+ function checkDCE() {
530
+ /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
531
+ if (
532
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
533
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
534
+ ) {
535
+ return;
536
+ }
537
+ if (process.env.NODE_ENV !== 'production') {
538
+ // This branch is unreachable because this function is only called
539
+ // in production, but the condition is true only in development.
540
+ // Therefore if the branch is still here, dead code elimination wasn't
541
+ // properly applied.
542
+ // Don't change the message. React DevTools relies on it. Also make sure
543
+ // this message doesn't occur elsewhere in this function, or it will cause
544
+ // a false positive.
545
+ throw new Error('^_^');
546
+ }
547
+ try {
548
+ // Verify that the code above has been dead code eliminated (DCE'd).
549
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
550
+ } catch (err) {
551
+ // DevTools shouldn't crash React, no matter what.
552
+ // We should still report in case we break this code.
553
+ console.error(err);
554
+ }
555
+ }
556
+
557
+ if (process.env.NODE_ENV === 'production') {
558
+ // DCE check should happen before ReactDOM bundle executes so that
559
+ // DevTools can report bad minification during injection.
560
+ checkDCE();
561
+ module.exports = __webpack_require__(301);
562
+ } else {
563
+ module.exports = __webpack_require__(304);
564
+ }
565
+
566
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
567
+
568
+ /***/ }),
569
+ /* 11 */
570
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
571
+
572
+ "use strict";
573
+ /* harmony export (immutable) */ __webpack_exports__["a"] = useForkRef;
574
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
575
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
576
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__setRef__ = __webpack_require__(39);
577
+
578
+
579
+ function useForkRef(refA, refB) {
580
+ /**
581
+ * This will create a new function if the ref props change and are defined.
582
+ * This means react will call the old forkRef with `null` and the new forkRef
583
+ * with the ref. Cleanup naturally emerges from this behavior
584
+ */
585
+ return __WEBPACK_IMPORTED_MODULE_0_react__["useMemo"](function () {
586
+ if (refA == null && refB == null) {
587
+ return null;
588
+ }
589
+
590
+ return function (refValue) {
591
+ Object(__WEBPACK_IMPORTED_MODULE_1__setRef__["a" /* default */])(refA, refValue);
592
+ Object(__WEBPACK_IMPORTED_MODULE_1__setRef__["a" /* default */])(refB, refValue);
593
+ };
594
+ }, [refA, refB]);
595
+ }
596
+
597
+ /***/ }),
598
+ /* 12 */
599
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
600
+
601
+ "use strict";
602
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _defineProperty;
603
+ function _defineProperty(obj, key, value) {
604
+ if (key in obj) {
605
+ Object.defineProperty(obj, key, {
606
+ value: value,
607
+ enumerable: true,
608
+ configurable: true,
609
+ writable: true
610
+ });
611
+ } else {
612
+ obj[key] = value;
613
+ }
614
+
615
+ return obj;
616
+ }
617
+
618
+ /***/ }),
619
+ /* 13 */
620
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
621
+
622
+ "use strict";
623
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = useTheme;
624
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_styles__ = __webpack_require__(20);
625
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
626
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
627
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__defaultTheme__ = __webpack_require__(52);
628
+
629
+
630
+
631
+ function useTheme() {
632
+ var theme = Object(__WEBPACK_IMPORTED_MODULE_0__material_ui_styles__["f" /* useTheme */])() || __WEBPACK_IMPORTED_MODULE_2__defaultTheme__["a" /* default */];
633
+
634
+ if (process.env.NODE_ENV !== 'production') {
635
+ // eslint-disable-next-line react-hooks/rules-of-hooks
636
+ __WEBPACK_IMPORTED_MODULE_1_react___default.a.useDebugValue(theme);
637
+ }
638
+
639
+ return theme;
640
+ }
641
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
642
+
643
+ /***/ }),
644
+ /* 14 */
645
+ /***/ (function(module, exports, __webpack_require__) {
646
+
647
+ "use strict";
648
+ /* WEBPACK VAR INJECTION */(function(process) {
649
+
650
+ if (process.env.NODE_ENV === 'production') {
651
+ module.exports = __webpack_require__(309);
652
+ } else {
653
+ module.exports = __webpack_require__(310);
654
+ }
655
+
656
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
657
+
658
+ /***/ }),
659
+ /* 15 */
660
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
661
+
662
+ "use strict";
663
+ /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export hexToRgb */
664
+ /* unused harmony export rgbToHex */
665
+ /* unused harmony export hslToRgb */
666
+ /* unused harmony export decomposeColor */
667
+ /* unused harmony export recomposeColor */
668
+ /* harmony export (immutable) */ __webpack_exports__["d"] = getContrastRatio;
669
+ /* unused harmony export getLuminance */
670
+ /* harmony export (immutable) */ __webpack_exports__["b"] = emphasize;
671
+ /* harmony export (immutable) */ __webpack_exports__["c"] = fade;
672
+ /* harmony export (immutable) */ __webpack_exports__["a"] = darken;
673
+ /* harmony export (immutable) */ __webpack_exports__["e"] = lighten;
674
+ /* eslint-disable no-use-before-define */
675
+
676
+ /**
677
+ * Returns a number whose value is limited to the given range.
678
+ *
679
+ * @param {number} value The value to be clamped
680
+ * @param {number} min The lower boundary of the output range
681
+ * @param {number} max The upper boundary of the output range
682
+ * @returns {number} A number in the range [min, max]
683
+ */
684
+ function clamp(value) {
685
+ var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
686
+ var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
687
+
688
+ if (process.env.NODE_ENV !== 'production') {
689
+ if (value < min || value > max) {
690
+ console.error("Material-UI: the value provided ".concat(value, " is out of range [").concat(min, ", ").concat(max, "]."));
691
+ }
692
+ }
693
+
694
+ return Math.min(Math.max(min, value), max);
695
+ }
696
+ /**
697
+ * Converts a color from CSS hex format to CSS rgb format.
698
+ *
699
+ * @param {string} color - Hex color, i.e. #nnn or #nnnnnn
700
+ * @returns {string} A CSS rgb color string
701
+ */
702
+
703
+
704
+ function hexToRgb(color) {
705
+ color = color.substr(1);
706
+ var re = new RegExp(".{1,".concat(color.length / 3, "}"), 'g');
707
+ var colors = color.match(re);
708
+
709
+ if (colors && colors[0].length === 1) {
710
+ colors = colors.map(function (n) {
711
+ return n + n;
712
+ });
713
+ }
714
+
715
+ return colors ? "rgb(".concat(colors.map(function (n) {
716
+ return parseInt(n, 16);
717
+ }).join(', '), ")") : '';
718
+ }
719
+
720
+ function intToHex(int) {
721
+ var hex = int.toString(16);
722
+ return hex.length === 1 ? "0".concat(hex) : hex;
723
+ }
724
+ /**
725
+ * Converts a color from CSS rgb format to CSS hex format.
726
+ *
727
+ * @param {string} color - RGB color, i.e. rgb(n, n, n)
728
+ * @returns {string} A CSS rgb color string, i.e. #nnnnnn
729
+ */
730
+
731
+
732
+ function rgbToHex(color) {
733
+ // Idempotent
734
+ if (color.indexOf('#') === 0) {
735
+ return color;
736
+ }
737
+
738
+ var _decomposeColor = decomposeColor(color),
739
+ values = _decomposeColor.values;
740
+
741
+ return "#".concat(values.map(function (n) {
742
+ return intToHex(n);
743
+ }).join(''));
744
+ }
745
+ /**
746
+ * Converts a color from hsl format to rgb format.
747
+ *
748
+ * @param {string} color - HSL color values
749
+ * @returns {string} rgb color values
750
+ */
751
+
752
+ function hslToRgb(color) {
753
+ color = decomposeColor(color);
754
+ var _color = color,
755
+ values = _color.values;
756
+ var h = values[0];
757
+ var s = values[1] / 100;
758
+ var l = values[2] / 100;
759
+ var a = s * Math.min(l, 1 - l);
760
+
761
+ var f = function f(n) {
762
+ var k = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (n + h / 30) % 12;
763
+ return l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);
764
+ };
765
+
766
+ var type = 'rgb';
767
+ var rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];
768
+
769
+ if (color.type === 'hsla') {
770
+ type += 'a';
771
+ rgb.push(values[3]);
772
+ }
773
+
774
+ return recomposeColor({
775
+ type: type,
776
+ values: rgb
777
+ });
778
+ }
779
+ /**
780
+ * Returns an object with the type and values of a color.
781
+ *
782
+ * Note: Does not support rgb % values.
783
+ *
784
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
785
+ * @returns {object} - A MUI color object: {type: string, values: number[]}
786
+ */
787
+
788
+ function decomposeColor(color) {
789
+ // Idempotent
790
+ if (color.type) {
791
+ return color;
792
+ }
793
+
794
+ if (color.charAt(0) === '#') {
795
+ return decomposeColor(hexToRgb(color));
796
+ }
797
+
798
+ var marker = color.indexOf('(');
799
+ var type = color.substring(0, marker);
800
+
801
+ if (['rgb', 'rgba', 'hsl', 'hsla'].indexOf(type) === -1) {
802
+ throw new Error(["Material-UI: unsupported `".concat(color, "` color."), 'We support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla().'].join('\n'));
803
+ }
804
+
805
+ var values = color.substring(marker + 1, color.length - 1).split(',');
806
+ values = values.map(function (value) {
807
+ return parseFloat(value);
808
+ });
809
+ return {
810
+ type: type,
811
+ values: values
812
+ };
813
+ }
814
+ /**
815
+ * Converts a color object with type and values to a string.
816
+ *
817
+ * @param {object} color - Decomposed color
818
+ * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla'
819
+ * @param {array} color.values - [n,n,n] or [n,n,n,n]
820
+ * @returns {string} A CSS color string
821
+ */
822
+
823
+ function recomposeColor(color) {
824
+ var type = color.type;
825
+ var values = color.values;
826
+
827
+ if (type.indexOf('rgb') !== -1) {
828
+ // Only convert the first 3 values to int (i.e. not alpha)
829
+ values = values.map(function (n, i) {
830
+ return i < 3 ? parseInt(n, 10) : n;
831
+ });
832
+ } else if (type.indexOf('hsl') !== -1) {
833
+ values[1] = "".concat(values[1], "%");
834
+ values[2] = "".concat(values[2], "%");
835
+ }
836
+
837
+ return "".concat(type, "(").concat(values.join(', '), ")");
838
+ }
839
+ /**
840
+ * Calculates the contrast ratio between two colors.
841
+ *
842
+ * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
843
+ *
844
+ * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
845
+ * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
846
+ * @returns {number} A contrast ratio value in the range 0 - 21.
847
+ */
848
+
849
+ function getContrastRatio(foreground, background) {
850
+ var lumA = getLuminance(foreground);
851
+ var lumB = getLuminance(background);
852
+ return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);
853
+ }
854
+ /**
855
+ * The relative brightness of any point in a color space,
856
+ * normalized to 0 for darkest black and 1 for lightest white.
857
+ *
858
+ * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
859
+ *
860
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
861
+ * @returns {number} The relative brightness of the color in the range 0 - 1
862
+ */
863
+
864
+ function getLuminance(color) {
865
+ color = decomposeColor(color);
866
+ var rgb = color.type === 'hsl' ? decomposeColor(hslToRgb(color)).values : color.values;
867
+ rgb = rgb.map(function (val) {
868
+ val /= 255; // normalized
869
+
870
+ return val <= 0.03928 ? val / 12.92 : Math.pow((val + 0.055) / 1.055, 2.4);
871
+ }); // Truncate at 3 digits
872
+
873
+ return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));
874
+ }
875
+ /**
876
+ * Darken or lighten a color, depending on its luminance.
877
+ * Light colors are darkened, dark colors are lightened.
878
+ *
879
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
880
+ * @param {number} coefficient=0.15 - multiplier in the range 0 - 1
881
+ * @returns {string} A CSS color string. Hex input values are returned as rgb
882
+ */
883
+
884
+ function emphasize(color) {
885
+ var coefficient = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.15;
886
+ return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);
887
+ }
888
+ /**
889
+ * Set the absolute transparency of a color.
890
+ * Any existing alpha values are overwritten.
891
+ *
892
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
893
+ * @param {number} value - value to set the alpha channel to in the range 0 -1
894
+ * @returns {string} A CSS color string. Hex input values are returned as rgb
895
+ */
896
+
897
+ function fade(color, value) {
898
+ color = decomposeColor(color);
899
+ value = clamp(value);
900
+
901
+ if (color.type === 'rgb' || color.type === 'hsl') {
902
+ color.type += 'a';
903
+ }
904
+
905
+ color.values[3] = value;
906
+ return recomposeColor(color);
907
+ }
908
+ /**
909
+ * Darkens a color.
910
+ *
911
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
912
+ * @param {number} coefficient - multiplier in the range 0 - 1
913
+ * @returns {string} A CSS color string. Hex input values are returned as rgb
914
+ */
915
+
916
+ function darken(color, coefficient) {
917
+ color = decomposeColor(color);
918
+ coefficient = clamp(coefficient);
919
+
920
+ if (color.type.indexOf('hsl') !== -1) {
921
+ color.values[2] *= 1 - coefficient;
922
+ } else if (color.type.indexOf('rgb') !== -1) {
923
+ for (var i = 0; i < 3; i += 1) {
924
+ color.values[i] *= 1 - coefficient;
925
+ }
926
+ }
927
+
928
+ return recomposeColor(color);
929
+ }
930
+ /**
931
+ * Lightens a color.
932
+ *
933
+ * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
934
+ * @param {number} coefficient - multiplier in the range 0 - 1
935
+ * @returns {string} A CSS color string. Hex input values are returned as rgb
936
+ */
937
+
938
+ function lighten(color, coefficient) {
939
+ color = decomposeColor(color);
940
+ coefficient = clamp(coefficient);
941
+
942
+ if (color.type.indexOf('hsl') !== -1) {
943
+ color.values[2] += (100 - color.values[2]) * coefficient;
944
+ } else if (color.type.indexOf('rgb') !== -1) {
945
+ for (var i = 0; i < 3; i += 1) {
946
+ color.values[i] += (255 - color.values[i]) * coefficient;
947
+ }
948
+ }
949
+
950
+ return recomposeColor(color);
951
+ }
952
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
953
+
954
+ /***/ }),
955
+ /* 16 */
956
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
957
+
958
+ "use strict";
959
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ButtonBase__ = __webpack_require__(448);
960
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ButtonBase__["a"]; });
961
+
962
+
963
+ /***/ }),
964
+ /* 17 */
965
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
966
+
967
+ "use strict";
968
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__colorManipulator__ = __webpack_require__(15);
969
+ /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__colorManipulator__["a"]; });
970
+ /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_0__colorManipulator__["b"]; });
971
+ /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_0__colorManipulator__["c"]; });
972
+ /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_0__colorManipulator__["e"]; });
973
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createMuiTheme__ = __webpack_require__(98);
974
+ /* unused harmony reexport createMuiTheme */
975
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__createMuiStrictModeTheme__ = __webpack_require__(416);
976
+ /* unused harmony reexport unstable_createMuiStrictModeTheme */
977
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__createStyles__ = __webpack_require__(437);
978
+ /* unused harmony reexport createStyles */
979
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__makeStyles__ = __webpack_require__(438);
980
+ /* unused harmony reexport makeStyles */
981
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__responsiveFontSizes__ = __webpack_require__(439);
982
+ /* unused harmony reexport responsiveFontSizes */
983
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__styled__ = __webpack_require__(200);
984
+ /* unused harmony reexport styled */
985
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__transitions__ = __webpack_require__(28);
986
+ /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_7__transitions__["b"]; });
987
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__useTheme__ = __webpack_require__(13);
988
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_8__useTheme__["a"]; });
989
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__withStyles__ = __webpack_require__(6);
990
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_9__withStyles__["a"]; });
991
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__withTheme__ = __webpack_require__(441);
992
+ /* unused harmony reexport withTheme */
993
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__material_ui_styles__ = __webpack_require__(20);
994
+ /* unused harmony reexport createGenerateClassName */
995
+ /* unused harmony reexport jssPreset */
996
+ /* unused harmony reexport ServerStyleSheets */
997
+ /* unused harmony reexport StylesProvider */
998
+ /* unused harmony reexport MuiThemeProvider */
999
+ /* unused harmony reexport ThemeProvider */
1000
+
1001
+ // eslint-disable-next-line camelcase
1002
+
1003
+
1004
+
1005
+
1006
+
1007
+
1008
+
1009
+
1010
+
1011
+
1012
+
1013
+
1014
+ /***/ }),
1015
+ /* 18 */
1016
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1017
+
1018
+ "use strict";
1019
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _toConsumableArray;
1020
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayWithoutHoles__ = __webpack_require__(371);
1021
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__iterableToArray__ = __webpack_require__(145);
1022
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__nonIterableSpread__ = __webpack_require__(372);
1023
+
1024
+
1025
+
1026
+ function _toConsumableArray(arr) {
1027
+ return Object(__WEBPACK_IMPORTED_MODULE_0__arrayWithoutHoles__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_1__iterableToArray__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_2__nonIterableSpread__["a" /* default */])();
1028
+ }
1029
+
1030
+ /***/ }),
1031
+ /* 19 */
1032
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1033
+
1034
+ "use strict";
1035
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = createSvgIcon;
1036
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
1037
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
1038
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
1039
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__SvgIcon__ = __webpack_require__(72);
1040
+
1041
+
1042
+
1043
+ /**
1044
+ * Private module reserved for @material-ui/x packages.
1045
+ */
1046
+
1047
+ function createSvgIcon(path, displayName) {
1048
+ var Component = __WEBPACK_IMPORTED_MODULE_1_react___default.a.memo(__WEBPACK_IMPORTED_MODULE_1_react___default.a.forwardRef(function (props, ref) {
1049
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__SvgIcon__["a" /* default */], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
1050
+ ref: ref
1051
+ }, props), path);
1052
+ }));
1053
+
1054
+ if (process.env.NODE_ENV !== 'production') {
1055
+ Component.displayName = "".concat(displayName, "Icon");
1056
+ }
1057
+
1058
+ Component.muiName = __WEBPACK_IMPORTED_MODULE_2__SvgIcon__["a" /* default */].muiName;
1059
+ return Component;
1060
+ }
1061
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
1062
+
1063
+ /***/ }),
1064
+ /* 20 */
1065
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1066
+
1067
+ "use strict";
1068
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__ = __webpack_require__(7);
1069
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createGenerateClassName__ = __webpack_require__(65);
1070
+ /* unused harmony reexport createGenerateClassName */
1071
+ /* unused harmony namespace reexport */
1072
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__createStyles__ = __webpack_require__(142);
1073
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_2__createStyles__["a"]; });
1074
+ /* unused harmony namespace reexport */
1075
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__getThemeProps__ = __webpack_require__(93);
1076
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_3__getThemeProps__["a"]; });
1077
+ /* unused harmony namespace reexport */
1078
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__jssPreset__ = __webpack_require__(94);
1079
+ /* unused harmony reexport jssPreset */
1080
+ /* unused harmony namespace reexport */
1081
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__makeStyles__ = __webpack_require__(68);
1082
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_5__makeStyles__["a"]; });
1083
+ /* unused harmony namespace reexport */
1084
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__mergeClasses__ = __webpack_require__(96);
1085
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_6__mergeClasses__["a"]; });
1086
+ /* unused harmony namespace reexport */
1087
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ServerStyleSheets__ = __webpack_require__(149);
1088
+ /* unused harmony reexport ServerStyleSheets */
1089
+ /* unused harmony namespace reexport */
1090
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__styled__ = __webpack_require__(150);
1091
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_8__styled__["a"]; });
1092
+ /* unused harmony namespace reexport */
1093
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__StylesProvider__ = __webpack_require__(69);
1094
+ /* unused harmony reexport StylesProvider */
1095
+ /* unused harmony namespace reexport */
1096
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__ThemeProvider__ = __webpack_require__(151);
1097
+ /* unused harmony reexport ThemeProvider */
1098
+ /* unused harmony namespace reexport */
1099
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__useTheme__ = __webpack_require__(45);
1100
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_11__useTheme__["a"]; });
1101
+ /* unused harmony namespace reexport */
1102
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__withStyles__ = __webpack_require__(152);
1103
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_12__withStyles__["a"]; });
1104
+ /* unused harmony namespace reexport */
1105
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__withTheme__ = __webpack_require__(153);
1106
+ /* unused harmony reexport withTheme */
1107
+ /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_13__withTheme__["a"]; });
1108
+ /** @license Material-UI v4.9.10
1109
+ *
1110
+ * This source code is licensed under the MIT license found in the
1111
+ * LICENSE file in the root directory of this source tree.
1112
+ */
1113
+ /* eslint-disable import/export */
1114
+
1115
+ /* Warning if there are several instances of @material-ui/styles */
1116
+
1117
+ if (process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test' && typeof window !== 'undefined') {
1118
+ __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["g" /* ponyfillGlobal */]['__@material-ui/styles-init__'] = __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["g" /* ponyfillGlobal */]['__@material-ui/styles-init__'] || 0;
1119
+
1120
+ if (__WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["g" /* ponyfillGlobal */]['__@material-ui/styles-init__'] === 1) {
1121
+ console.warn(['It looks like there are several instances of `@material-ui/styles` initialized in this application.', 'This may cause theme propagation issues, broken class names, ' + 'specificity issues, and makes your application bigger without a good reason.', '', 'See https://material-ui.com/r/styles-instance-warning for more info.'].join('\n'));
1122
+ }
1123
+
1124
+ __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["g" /* ponyfillGlobal */]['__@material-ui/styles-init__'] += 1;
1125
+ }
1126
+
1127
+
1128
+
1129
+
1130
+
1131
+
1132
+
1133
+
1134
+
1135
+
1136
+
1137
+
1138
+
1139
+
1140
+
1141
+
1142
+
1143
+
1144
+
1145
+
1146
+
1147
+
1148
+
1149
+
1150
+
1151
+
1152
+
1153
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
1154
+
1155
+ /***/ }),
1156
+ /* 21 */
1157
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1158
+
1159
+ "use strict";
1160
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Paper__ = __webpack_require__(442);
1161
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Paper__["a"]; });
1162
+
1163
+
1164
+ /***/ }),
1165
+ /* 22 */
1166
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1167
+
1168
+ "use strict";
1169
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Typography__ = __webpack_require__(475);
1170
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Typography__["a"]; });
1171
+
1172
+
1173
+ /***/ }),
1174
+ /* 23 */
1175
+ /***/ (function(module, exports, __webpack_require__) {
1176
+
1177
+ "use strict";
1178
+
1179
+ var strictUriEncode = __webpack_require__(334);
1180
+ var objectAssign = __webpack_require__(43);
1181
+
1182
+ function encoderForArrayFormat(opts) {
1183
+ switch (opts.arrayFormat) {
1184
+ case 'index':
1185
+ return function (key, value, index) {
1186
+ return value === null ? [
1187
+ encode(key, opts),
1188
+ '[',
1189
+ index,
1190
+ ']'
1191
+ ].join('') : [
1192
+ encode(key, opts),
1193
+ '[',
1194
+ encode(index, opts),
1195
+ ']=',
1196
+ encode(value, opts)
1197
+ ].join('');
1198
+ };
1199
+
1200
+ case 'bracket':
1201
+ return function (key, value) {
1202
+ return value === null ? encode(key, opts) : [
1203
+ encode(key, opts),
1204
+ '[]=',
1205
+ encode(value, opts)
1206
+ ].join('');
1207
+ };
1208
+
1209
+ default:
1210
+ return function (key, value) {
1211
+ return value === null ? encode(key, opts) : [
1212
+ encode(key, opts),
1213
+ '=',
1214
+ encode(value, opts)
1215
+ ].join('');
1216
+ };
1217
+ }
1218
+ }
1219
+
1220
+ function parserForArrayFormat(opts) {
1221
+ var result;
1222
+
1223
+ switch (opts.arrayFormat) {
1224
+ case 'index':
1225
+ return function (key, value, accumulator) {
1226
+ result = /\[(\d*)\]$/.exec(key);
1227
+
1228
+ key = key.replace(/\[\d*\]$/, '');
1229
+
1230
+ if (!result) {
1231
+ accumulator[key] = value;
1232
+ return;
1233
+ }
1234
+
1235
+ if (accumulator[key] === undefined) {
1236
+ accumulator[key] = {};
1237
+ }
1238
+
1239
+ accumulator[key][result[1]] = value;
1240
+ };
1241
+
1242
+ case 'bracket':
1243
+ return function (key, value, accumulator) {
1244
+ result = /(\[\])$/.exec(key);
1245
+ key = key.replace(/\[\]$/, '');
1246
+
1247
+ if (!result) {
1248
+ accumulator[key] = value;
1249
+ return;
1250
+ } else if (accumulator[key] === undefined) {
1251
+ accumulator[key] = [value];
1252
+ return;
1253
+ }
1254
+
1255
+ accumulator[key] = [].concat(accumulator[key], value);
1256
+ };
1257
+
1258
+ default:
1259
+ return function (key, value, accumulator) {
1260
+ if (accumulator[key] === undefined) {
1261
+ accumulator[key] = value;
1262
+ return;
1263
+ }
1264
+
1265
+ accumulator[key] = [].concat(accumulator[key], value);
1266
+ };
1267
+ }
1268
+ }
1269
+
1270
+ function encode(value, opts) {
1271
+ if (opts.encode) {
1272
+ return opts.strict ? strictUriEncode(value) : encodeURIComponent(value);
1273
+ }
1274
+
1275
+ return value;
1276
+ }
1277
+
1278
+ function keysSorter(input) {
1279
+ if (Array.isArray(input)) {
1280
+ return input.sort();
1281
+ } else if (typeof input === 'object') {
1282
+ return keysSorter(Object.keys(input)).sort(function (a, b) {
1283
+ return Number(a) - Number(b);
1284
+ }).map(function (key) {
1285
+ return input[key];
1286
+ });
1287
+ }
1288
+
1289
+ return input;
1290
+ }
1291
+
1292
+ exports.extract = function (str) {
1293
+ return str.split('?')[1] || '';
1294
+ };
1295
+
1296
+ exports.parse = function (str, opts) {
1297
+ opts = objectAssign({arrayFormat: 'none'}, opts);
1298
+
1299
+ var formatter = parserForArrayFormat(opts);
1300
+
1301
+ // Create an object with no prototype
1302
+ // https://github.com/sindresorhus/query-string/issues/47
1303
+ var ret = Object.create(null);
1304
+
1305
+ if (typeof str !== 'string') {
1306
+ return ret;
1307
+ }
1308
+
1309
+ str = str.trim().replace(/^(\?|#|&)/, '');
1310
+
1311
+ if (!str) {
1312
+ return ret;
1313
+ }
1314
+
1315
+ str.split('&').forEach(function (param) {
1316
+ var parts = param.replace(/\+/g, ' ').split('=');
1317
+ // Firefox (pre 40) decodes `%3D` to `=`
1318
+ // https://github.com/sindresorhus/query-string/pull/37
1319
+ var key = parts.shift();
1320
+ var val = parts.length > 0 ? parts.join('=') : undefined;
1321
+
1322
+ // missing `=` should be `null`:
1323
+ // http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters
1324
+ val = val === undefined ? null : decodeURIComponent(val);
1325
+
1326
+ formatter(decodeURIComponent(key), val, ret);
1327
+ });
1328
+
1329
+ return Object.keys(ret).sort().reduce(function (result, key) {
1330
+ var val = ret[key];
1331
+ if (Boolean(val) && typeof val === 'object' && !Array.isArray(val)) {
1332
+ // Sort object keys, not values
1333
+ result[key] = keysSorter(val);
1334
+ } else {
1335
+ result[key] = val;
1336
+ }
1337
+
1338
+ return result;
1339
+ }, Object.create(null));
1340
+ };
1341
+
1342
+ exports.stringify = function (obj, opts) {
1343
+ var defaults = {
1344
+ encode: true,
1345
+ strict: true,
1346
+ arrayFormat: 'none'
1347
+ };
1348
+
1349
+ opts = objectAssign(defaults, opts);
1350
+
1351
+ var formatter = encoderForArrayFormat(opts);
1352
+
1353
+ return obj ? Object.keys(obj).sort().map(function (key) {
1354
+ var val = obj[key];
1355
+
1356
+ if (val === undefined) {
1357
+ return '';
1358
+ }
1359
+
1360
+ if (val === null) {
1361
+ return encode(key, opts);
1362
+ }
1363
+
1364
+ if (Array.isArray(val)) {
1365
+ var result = [];
1366
+
1367
+ val.slice().forEach(function (val2) {
1368
+ if (val2 === undefined) {
1369
+ return;
1370
+ }
1371
+
1372
+ result.push(formatter(key, val2, result.length));
1373
+ });
1374
+
1375
+ return result.join('&');
1376
+ }
1377
+
1378
+ return encode(key, opts) + '=' + encode(val, opts);
1379
+ }).filter(function (x) {
1380
+ return x.length > 0;
1381
+ }).join('&') : '';
1382
+ };
1383
+
1384
+
1385
+ /***/ }),
1386
+ /* 24 */
1387
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1388
+
1389
+ "use strict";
1390
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _objectWithoutPropertiesLoose;
1391
+ function _objectWithoutPropertiesLoose(source, excluded) {
1392
+ if (source == null) return {};
1393
+ var target = {};
1394
+ var sourceKeys = Object.keys(source);
1395
+ var key, i;
1396
+
1397
+ for (i = 0; i < sourceKeys.length; i++) {
1398
+ key = sourceKeys[i];
1399
+ if (excluded.indexOf(key) >= 0) continue;
1400
+ target[key] = source[key];
1401
+ }
1402
+
1403
+ return target;
1404
+ }
1405
+
1406
+ /***/ }),
1407
+ /* 25 */
1408
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1409
+
1410
+ "use strict";
1411
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _inheritsLoose;
1412
+ function _inheritsLoose(subClass, superClass) {
1413
+ subClass.prototype = Object.create(superClass.prototype);
1414
+ subClass.prototype.constructor = subClass;
1415
+ subClass.__proto__ = superClass;
1416
+ }
1417
+
1418
+ /***/ }),
1419
+ /* 26 */
1420
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1421
+
1422
+ "use strict";
1423
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__ = __webpack_require__(12);
1424
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__responsivePropType__ = __webpack_require__(166);
1425
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__breakpoints__ = __webpack_require__(99);
1426
+
1427
+
1428
+
1429
+
1430
+ function getPath(obj, path) {
1431
+ if (!path || typeof path !== 'string') {
1432
+ return null;
1433
+ }
1434
+
1435
+ return path.split('.').reduce(function (acc, item) {
1436
+ return acc && acc[item] ? acc[item] : null;
1437
+ }, obj);
1438
+ }
1439
+
1440
+ function style(options) {
1441
+ var prop = options.prop,
1442
+ _options$cssProperty = options.cssProperty,
1443
+ cssProperty = _options$cssProperty === void 0 ? options.prop : _options$cssProperty,
1444
+ themeKey = options.themeKey,
1445
+ transform = options.transform;
1446
+
1447
+ var fn = function fn(props) {
1448
+ if (props[prop] == null) {
1449
+ return null;
1450
+ }
1451
+
1452
+ var propValue = props[prop];
1453
+ var theme = props.theme;
1454
+ var themeMapping = getPath(theme, themeKey) || {};
1455
+
1456
+ var styleFromPropValue = function styleFromPropValue(propValueFinal) {
1457
+ var value;
1458
+
1459
+ if (typeof themeMapping === 'function') {
1460
+ value = themeMapping(propValueFinal);
1461
+ } else if (Array.isArray(themeMapping)) {
1462
+ value = themeMapping[propValueFinal] || propValueFinal;
1463
+ } else {
1464
+ value = getPath(themeMapping, propValueFinal) || propValueFinal;
1465
+
1466
+ if (transform) {
1467
+ value = transform(value);
1468
+ }
1469
+ }
1470
+
1471
+ if (cssProperty === false) {
1472
+ return value;
1473
+ }
1474
+
1475
+ return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__["a" /* default */])({}, cssProperty, value);
1476
+ };
1477
+
1478
+ return Object(__WEBPACK_IMPORTED_MODULE_2__breakpoints__["a" /* handleBreakpoints */])(props, propValue, styleFromPropValue);
1479
+ };
1480
+
1481
+ fn.propTypes = process.env.NODE_ENV !== 'production' ? Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__["a" /* default */])({}, prop, __WEBPACK_IMPORTED_MODULE_1__responsivePropType__["a" /* default */]) : {};
1482
+ fn.filterProps = [prop];
1483
+ return fn;
1484
+ }
1485
+
1486
+ /* harmony default export */ __webpack_exports__["a"] = (style);
1487
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
1488
+
1489
+ /***/ }),
1490
+ /* 27 */
1491
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1492
+
1493
+ "use strict";
1494
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _slicedToArray;
1495
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayWithHoles__ = __webpack_require__(173);
1496
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__iterableToArrayLimit__ = __webpack_require__(394);
1497
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__nonIterableRest__ = __webpack_require__(174);
1498
+
1499
+
1500
+
1501
+ function _slicedToArray(arr, i) {
1502
+ return Object(__WEBPACK_IMPORTED_MODULE_0__arrayWithHoles__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_1__iterableToArrayLimit__["a" /* default */])(arr, i) || Object(__WEBPACK_IMPORTED_MODULE_2__nonIterableRest__["a" /* default */])();
1503
+ }
1504
+
1505
+ /***/ }),
1506
+ /* 28 */
1507
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1508
+
1509
+ "use strict";
1510
+ /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export easing */
1511
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return duration; });
1512
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
1513
+
1514
+ // Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
1515
+ // to learn the context in which each easing should be used.
1516
+ var easing = {
1517
+ // This is the most common easing curve.
1518
+ easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',
1519
+ // Objects enter the screen at full velocity from off-screen and
1520
+ // slowly decelerate to a resting point.
1521
+ easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',
1522
+ // Objects leave the screen at full velocity. They do not decelerate when off-screen.
1523
+ easeIn: 'cubic-bezier(0.4, 0, 1, 1)',
1524
+ // The sharp curve is used by objects that may return to the screen at any time.
1525
+ sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'
1526
+ }; // Follow https://material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations
1527
+ // to learn when use what timing
1528
+
1529
+ var duration = {
1530
+ shortest: 150,
1531
+ shorter: 200,
1532
+ short: 250,
1533
+ // most basic recommended timing
1534
+ standard: 300,
1535
+ // this is to be used in complex animations
1536
+ complex: 375,
1537
+ // recommended when something is entering screen
1538
+ enteringScreen: 225,
1539
+ // recommended when something is leaving screen
1540
+ leavingScreen: 195
1541
+ };
1542
+
1543
+ function formatMs(milliseconds) {
1544
+ return "".concat(Math.round(milliseconds), "ms");
1545
+ }
1546
+ /**
1547
+ * @param {string|Array} props
1548
+ * @param {object} param
1549
+ * @param {string} param.prop
1550
+ * @param {number} param.duration
1551
+ * @param {string} param.easing
1552
+ * @param {number} param.delay
1553
+ */
1554
+
1555
+
1556
+ /* harmony default export */ __webpack_exports__["a"] = ({
1557
+ easing: easing,
1558
+ duration: duration,
1559
+ create: function create() {
1560
+ var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['all'];
1561
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1562
+
1563
+ var _options$duration = options.duration,
1564
+ durationOption = _options$duration === void 0 ? duration.standard : _options$duration,
1565
+ _options$easing = options.easing,
1566
+ easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing,
1567
+ _options$delay = options.delay,
1568
+ delay = _options$delay === void 0 ? 0 : _options$delay,
1569
+ other = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(options, ["duration", "easing", "delay"]);
1570
+
1571
+ if (process.env.NODE_ENV !== 'production') {
1572
+ var isString = function isString(value) {
1573
+ return typeof value === 'string';
1574
+ };
1575
+
1576
+ var isNumber = function isNumber(value) {
1577
+ return !isNaN(parseFloat(value));
1578
+ };
1579
+
1580
+ if (!isString(props) && !Array.isArray(props)) {
1581
+ console.error('Material-UI: argument "props" must be a string or Array.');
1582
+ }
1583
+
1584
+ if (!isNumber(durationOption) && !isString(durationOption)) {
1585
+ console.error("Material-UI: argument \"duration\" must be a number or a string but found ".concat(durationOption, "."));
1586
+ }
1587
+
1588
+ if (!isString(easingOption)) {
1589
+ console.error('Material-UI: argument "easing" must be a string.');
1590
+ }
1591
+
1592
+ if (!isNumber(delay) && !isString(delay)) {
1593
+ console.error('Material-UI: argument "delay" must be a number or a string.');
1594
+ }
1595
+
1596
+ if (Object.keys(other).length !== 0) {
1597
+ console.error("Material-UI: unrecognized argument(s) [".concat(Object.keys(other).join(','), "]"));
1598
+ }
1599
+ }
1600
+
1601
+ return (Array.isArray(props) ? props : [props]).map(function (animatedProp) {
1602
+ return "".concat(animatedProp, " ").concat(typeof durationOption === 'string' ? durationOption : formatMs(durationOption), " ").concat(easingOption, " ").concat(typeof delay === 'string' ? delay : formatMs(delay));
1603
+ }).join(',');
1604
+ },
1605
+ getAutoHeightDuration: function getAutoHeightDuration(height) {
1606
+ if (!height) {
1607
+ return 0;
1608
+ }
1609
+
1610
+ var constant = height / 36; // https://www.wolframalpha.com/input/?i=(4+%2B+15+*+(x+%2F+36+)+**+0.25+%2B+(x+%2F+36)+%2F+5)+*+10
1611
+
1612
+ return Math.round((4 + 15 * Math.pow(constant, 0.25) + constant / 5) * 10);
1613
+ }
1614
+ });
1615
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
1616
+
1617
+ /***/ }),
1618
+ /* 29 */
1619
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1620
+
1621
+ "use strict";
1622
+ /* harmony export (immutable) */ __webpack_exports__["a"] = ownerDocument;
1623
+ function ownerDocument(node) {
1624
+ return node && node.ownerDocument || document;
1625
+ }
1626
+
1627
+ /***/ }),
1628
+ /* 30 */
1629
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1630
+
1631
+ "use strict";
1632
+ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
1633
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Icon__ = __webpack_require__(351);
1634
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__Icon__["a"]; });
1635
+
1636
+
1637
+ /***/ }),
1638
+ /* 31 */
1639
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1640
+
1641
+ "use strict";
1642
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
1643
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__merge__ = __webpack_require__(71);
1644
+
1645
+
1646
+
1647
+ function compose() {
1648
+ for (var _len = arguments.length, styles = new Array(_len), _key = 0; _key < _len; _key++) {
1649
+ styles[_key] = arguments[_key];
1650
+ }
1651
+
1652
+ var fn = function fn(props) {
1653
+ return styles.reduce(function (acc, style) {
1654
+ var output = style(props);
1655
+
1656
+ if (output) {
1657
+ return Object(__WEBPACK_IMPORTED_MODULE_1__merge__["a" /* default */])(acc, output);
1658
+ }
1659
+
1660
+ return acc;
1661
+ }, {});
1662
+ }; // Alternative approach that doesn't yield any performance gain.
1663
+ // const handlers = styles.reduce((acc, style) => {
1664
+ // style.filterProps.forEach(prop => {
1665
+ // acc[prop] = style;
1666
+ // });
1667
+ // return acc;
1668
+ // }, {});
1669
+ // const fn = props => {
1670
+ // return Object.keys(props).reduce((acc, prop) => {
1671
+ // if (handlers[prop]) {
1672
+ // return merge(acc, handlers[prop](props));
1673
+ // }
1674
+ // return acc;
1675
+ // }, {});
1676
+ // };
1677
+
1678
+
1679
+ fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce(function (acc, style) {
1680
+ return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])(acc, style.propTypes);
1681
+ }, {}) : {};
1682
+ fn.filterProps = styles.reduce(function (acc, style) {
1683
+ return acc.concat(style.filterProps);
1684
+ }, []);
1685
+ return fn;
1686
+ }
1687
+
1688
+ /* harmony default export */ __webpack_exports__["a"] = (compose);
1689
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
1690
+
1691
+ /***/ }),
1692
+ /* 32 */
1693
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1694
+
1695
+ "use strict";
1696
+ /* harmony export (immutable) */ __webpack_exports__["a"] = useEventCallback;
1697
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
1698
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
1699
+
1700
+ var useEnhancedEffect = typeof window !== 'undefined' ? __WEBPACK_IMPORTED_MODULE_0_react__["useLayoutEffect"] : __WEBPACK_IMPORTED_MODULE_0_react__["useEffect"];
1701
+ /**
1702
+ * https://github.com/facebook/react/issues/14099#issuecomment-440013892
1703
+ *
1704
+ * @param {function} fn
1705
+ */
1706
+
1707
+ function useEventCallback(fn) {
1708
+ var ref = __WEBPACK_IMPORTED_MODULE_0_react__["useRef"](fn);
1709
+ useEnhancedEffect(function () {
1710
+ ref.current = fn;
1711
+ });
1712
+ return __WEBPACK_IMPORTED_MODULE_0_react__["useCallback"](function () {
1713
+ return (0, ref.current).apply(void 0, arguments);
1714
+ }, []);
1715
+ }
1716
+
1717
+ /***/ }),
1718
+ /* 33 */
1719
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1720
+
1721
+ "use strict";
1722
+ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
1723
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__BrowserRouter__ = __webpack_require__(308);
1724
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserRouter", function() { return __WEBPACK_IMPORTED_MODULE_0__BrowserRouter__["a"]; });
1725
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__HashRouter__ = __webpack_require__(316);
1726
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "HashRouter", function() { return __WEBPACK_IMPORTED_MODULE_1__HashRouter__["a"]; });
1727
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Link__ = __webpack_require__(135);
1728
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Link", function() { return __WEBPACK_IMPORTED_MODULE_2__Link__["a"]; });
1729
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__MemoryRouter__ = __webpack_require__(317);
1730
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MemoryRouter", function() { return __WEBPACK_IMPORTED_MODULE_3__MemoryRouter__["a"]; });
1731
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__NavLink__ = __webpack_require__(319);
1732
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "NavLink", function() { return __WEBPACK_IMPORTED_MODULE_4__NavLink__["a"]; });
1733
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Prompt__ = __webpack_require__(321);
1734
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Prompt", function() { return __WEBPACK_IMPORTED_MODULE_5__Prompt__["a"]; });
1735
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Redirect__ = __webpack_require__(323);
1736
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Redirect", function() { return __WEBPACK_IMPORTED_MODULE_6__Redirect__["a"]; });
1737
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Route__ = __webpack_require__(136);
1738
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Route", function() { return __WEBPACK_IMPORTED_MODULE_7__Route__["a"]; });
1739
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Router__ = __webpack_require__(89);
1740
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Router", function() { return __WEBPACK_IMPORTED_MODULE_8__Router__["a"]; });
1741
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__StaticRouter__ = __webpack_require__(325);
1742
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "StaticRouter", function() { return __WEBPACK_IMPORTED_MODULE_9__StaticRouter__["a"]; });
1743
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__Switch__ = __webpack_require__(327);
1744
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Switch", function() { return __WEBPACK_IMPORTED_MODULE_10__Switch__["a"]; });
1745
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__generatePath__ = __webpack_require__(329);
1746
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "generatePath", function() { return __WEBPACK_IMPORTED_MODULE_11__generatePath__["a"]; });
1747
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__matchPath__ = __webpack_require__(330);
1748
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "matchPath", function() { return __WEBPACK_IMPORTED_MODULE_12__matchPath__["a"]; });
1749
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__withRouter__ = __webpack_require__(331);
1750
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "withRouter", function() { return __WEBPACK_IMPORTED_MODULE_13__withRouter__["a"]; });
1751
+
1752
+
1753
+
1754
+
1755
+
1756
+
1757
+
1758
+
1759
+
1760
+
1761
+
1762
+
1763
+
1764
+
1765
+
1766
+
1767
+
1768
+
1769
+
1770
+
1771
+
1772
+
1773
+
1774
+
1775
+
1776
+
1777
+
1778
+
1779
+
1780
+ /***/ }),
1781
+ /* 34 */
1782
+ /***/ (function(module, exports, __webpack_require__) {
1783
+
1784
+ "use strict";
1785
+ /* WEBPACK VAR INJECTION */(function(process) {/**
1786
+ * Copyright (c) 2014-present, Facebook, Inc.
1787
+ *
1788
+ * This source code is licensed under the MIT license found in the
1789
+ * LICENSE file in the root directory of this source tree.
1790
+ */
1791
+
1792
+
1793
+
1794
+ /**
1795
+ * Similar to invariant but only logs a warning if the condition is not met.
1796
+ * This can be used to log issues in development environments in critical
1797
+ * paths. Removing the logging code for production environments will keep the
1798
+ * same logic and follow the same code paths.
1799
+ */
1800
+
1801
+ var __DEV__ = process.env.NODE_ENV !== 'production';
1802
+
1803
+ var warning = function() {};
1804
+
1805
+ if (__DEV__) {
1806
+ var printWarning = function printWarning(format, args) {
1807
+ var len = arguments.length;
1808
+ args = new Array(len > 1 ? len - 1 : 0);
1809
+ for (var key = 1; key < len; key++) {
1810
+ args[key - 1] = arguments[key];
1811
+ }
1812
+ var argIndex = 0;
1813
+ var message = 'Warning: ' +
1814
+ format.replace(/%s/g, function() {
1815
+ return args[argIndex++];
1816
+ });
1817
+ if (typeof console !== 'undefined') {
1818
+ console.error(message);
1819
+ }
1820
+ try {
1821
+ // --- Welcome to debugging React ---
1822
+ // This error was thrown as a convenience so that you can use this stack
1823
+ // to find the callsite that caused this warning to fire.
1824
+ throw new Error(message);
1825
+ } catch (x) {}
1826
+ }
1827
+
1828
+ warning = function(condition, format, args) {
1829
+ var len = arguments.length;
1830
+ args = new Array(len > 2 ? len - 2 : 0);
1831
+ for (var key = 2; key < len; key++) {
1832
+ args[key - 2] = arguments[key];
1833
+ }
1834
+ if (format === undefined) {
1835
+ throw new Error(
1836
+ '`warning(condition, format, ...args)` requires a warning ' +
1837
+ 'message argument'
1838
+ );
1839
+ }
1840
+ if (!condition) {
1841
+ printWarning.apply(null, [format].concat(args));
1842
+ }
1843
+ };
1844
+ }
1845
+
1846
+ module.exports = warning;
1847
+
1848
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
1849
+
1850
+ /***/ }),
1851
+ /* 35 */
1852
+ /***/ (function(module, exports, __webpack_require__) {
1853
+
1854
+ "use strict";
1855
+ /* WEBPACK VAR INJECTION */(function(process) {/**
1856
+ * Copyright (c) 2013-present, Facebook, Inc.
1857
+ *
1858
+ * This source code is licensed under the MIT license found in the
1859
+ * LICENSE file in the root directory of this source tree.
1860
+ */
1861
+
1862
+
1863
+
1864
+ /**
1865
+ * Use invariant() to assert state which your program assumes to be true.
1866
+ *
1867
+ * Provide sprintf-style format (only %s is supported) and arguments
1868
+ * to provide information about what broke and what you were
1869
+ * expecting.
1870
+ *
1871
+ * The invariant message will be stripped in production, but the invariant
1872
+ * will remain to ensure logic does not differ in production.
1873
+ */
1874
+
1875
+ var invariant = function(condition, format, a, b, c, d, e, f) {
1876
+ if (process.env.NODE_ENV !== 'production') {
1877
+ if (format === undefined) {
1878
+ throw new Error('invariant requires an error message argument');
1879
+ }
1880
+ }
1881
+
1882
+ if (!condition) {
1883
+ var error;
1884
+ if (format === undefined) {
1885
+ error = new Error(
1886
+ 'Minified exception occurred; use the non-minified dev environment ' +
1887
+ 'for the full error message and additional helpful warnings.'
1888
+ );
1889
+ } else {
1890
+ var args = [a, b, c, d, e, f];
1891
+ var argIndex = 0;
1892
+ error = new Error(
1893
+ format.replace(/%s/g, function() { return args[argIndex++]; })
1894
+ );
1895
+ error.name = 'Invariant Violation';
1896
+ }
1897
+
1898
+ error.framesToPop = 1; // we don't care about invariant's own frame
1899
+ throw error;
1900
+ }
1901
+ };
1902
+
1903
+ module.exports = invariant;
1904
+
1905
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
1906
+
1907
+ /***/ }),
1908
+ /* 36 */
1909
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1910
+
1911
+ "use strict";
1912
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _typeof;
1913
+ function _typeof(obj) {
1914
+ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
1915
+ _typeof = function _typeof(obj) {
1916
+ return typeof obj;
1917
+ };
1918
+ } else {
1919
+ _typeof = function _typeof(obj) {
1920
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1921
+ };
1922
+ }
1923
+
1924
+ return _typeof(obj);
1925
+ }
1926
+
1927
+ /***/ }),
1928
+ /* 37 */
1929
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1930
+
1931
+ "use strict";
1932
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return hasCSSTOMSupport; });
1933
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return create; });
1934
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getDynamicStyles; });
1935
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return toCssValue; });
1936
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return createRule; });
1937
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return SheetsRegistry; });
1938
+ /* unused harmony export SheetsManager */
1939
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return RuleList; });
1940
+ /* unused harmony export sheets */
1941
+ /* unused harmony export createGenerateId */
1942
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
1943
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_is_in_browser__ = __webpack_require__(143);
1944
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_tiny_warning__ = __webpack_require__(64);
1945
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_createClass__ = __webpack_require__(66);
1946
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(25);
1947
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_assertThisInitialized__ = __webpack_require__(67);
1948
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(24);
1949
+
1950
+
1951
+
1952
+
1953
+
1954
+
1955
+
1956
+
1957
+ var plainObjectConstrurctor = {}.constructor;
1958
+ function cloneStyle(style) {
1959
+ if (style == null || typeof style !== 'object') return style;
1960
+ if (Array.isArray(style)) return style.map(cloneStyle);
1961
+ if (style.constructor !== plainObjectConstrurctor) return style;
1962
+ var newStyle = {};
1963
+
1964
+ for (var name in style) {
1965
+ newStyle[name] = cloneStyle(style[name]);
1966
+ }
1967
+
1968
+ return newStyle;
1969
+ }
1970
+
1971
+ /**
1972
+ * Create a rule instance.
1973
+ */
1974
+
1975
+ function createRule(name, decl, options) {
1976
+ if (name === void 0) {
1977
+ name = 'unnamed';
1978
+ }
1979
+
1980
+ var jss = options.jss;
1981
+ var declCopy = cloneStyle(decl);
1982
+ var rule = jss.plugins.onCreateRule(name, declCopy, options);
1983
+ if (rule) return rule; // It is an at-rule and it has no instance.
1984
+
1985
+ if (name[0] === '@') {
1986
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Unknown rule " + name) : void 0;
1987
+ }
1988
+
1989
+ return null;
1990
+ }
1991
+
1992
+ var join = function join(value, by) {
1993
+ var result = '';
1994
+
1995
+ for (var i = 0; i < value.length; i++) {
1996
+ // Remove !important from the value, it will be readded later.
1997
+ if (value[i] === '!important') break;
1998
+ if (result) result += by;
1999
+ result += value[i];
2000
+ }
2001
+
2002
+ return result;
2003
+ };
2004
+ /**
2005
+ * Converts array values to string.
2006
+ *
2007
+ * `margin: [['5px', '10px']]` > `margin: 5px 10px;`
2008
+ * `border: ['1px', '2px']` > `border: 1px, 2px;`
2009
+ * `margin: [['5px', '10px'], '!important']` > `margin: 5px 10px !important;`
2010
+ * `color: ['red', !important]` > `color: red !important;`
2011
+ */
2012
+
2013
+
2014
+ function toCssValue(value, ignoreImportant) {
2015
+ if (ignoreImportant === void 0) {
2016
+ ignoreImportant = false;
2017
+ }
2018
+
2019
+ if (!Array.isArray(value)) return value;
2020
+ var cssValue = ''; // Support space separated values via `[['5px', '10px']]`.
2021
+
2022
+ if (Array.isArray(value[0])) {
2023
+ for (var i = 0; i < value.length; i++) {
2024
+ if (value[i] === '!important') break;
2025
+ if (cssValue) cssValue += ', ';
2026
+ cssValue += join(value[i], ' ');
2027
+ }
2028
+ } else cssValue = join(value, ', '); // Add !important, because it was ignored.
2029
+
2030
+
2031
+ if (!ignoreImportant && value[value.length - 1] === '!important') {
2032
+ cssValue += ' !important';
2033
+ }
2034
+
2035
+ return cssValue;
2036
+ }
2037
+
2038
+ /**
2039
+ * Indent a string.
2040
+ * http://jsperf.com/array-join-vs-for
2041
+ */
2042
+ function indentStr(str, indent) {
2043
+ var result = '';
2044
+
2045
+ for (var index = 0; index < indent; index++) {
2046
+ result += ' ';
2047
+ }
2048
+
2049
+ return result + str;
2050
+ }
2051
+ /**
2052
+ * Converts a Rule to CSS string.
2053
+ */
2054
+
2055
+
2056
+ function toCss(selector, style, options) {
2057
+ if (options === void 0) {
2058
+ options = {};
2059
+ }
2060
+
2061
+ var result = '';
2062
+ if (!style) return result;
2063
+ var _options = options,
2064
+ _options$indent = _options.indent,
2065
+ indent = _options$indent === void 0 ? 0 : _options$indent;
2066
+ var fallbacks = style.fallbacks;
2067
+ if (selector) indent++; // Apply fallbacks first.
2068
+
2069
+ if (fallbacks) {
2070
+ // Array syntax {fallbacks: [{prop: value}]}
2071
+ if (Array.isArray(fallbacks)) {
2072
+ for (var index = 0; index < fallbacks.length; index++) {
2073
+ var fallback = fallbacks[index];
2074
+
2075
+ for (var prop in fallback) {
2076
+ var value = fallback[prop];
2077
+
2078
+ if (value != null) {
2079
+ if (result) result += '\n';
2080
+ result += "" + indentStr(prop + ": " + toCssValue(value) + ";", indent);
2081
+ }
2082
+ }
2083
+ }
2084
+ } else {
2085
+ // Object syntax {fallbacks: {prop: value}}
2086
+ for (var _prop in fallbacks) {
2087
+ var _value = fallbacks[_prop];
2088
+
2089
+ if (_value != null) {
2090
+ if (result) result += '\n';
2091
+ result += "" + indentStr(_prop + ": " + toCssValue(_value) + ";", indent);
2092
+ }
2093
+ }
2094
+ }
2095
+ }
2096
+
2097
+ for (var _prop2 in style) {
2098
+ var _value2 = style[_prop2];
2099
+
2100
+ if (_value2 != null && _prop2 !== 'fallbacks') {
2101
+ if (result) result += '\n';
2102
+ result += "" + indentStr(_prop2 + ": " + toCssValue(_value2) + ";", indent);
2103
+ }
2104
+ } // Allow empty style in this case, because properties will be added dynamically.
2105
+
2106
+
2107
+ if (!result && !options.allowEmpty) return result; // When rule is being stringified before selector was defined.
2108
+
2109
+ if (!selector) return result;
2110
+ indent--;
2111
+ if (result) result = "\n" + result + "\n";
2112
+ return indentStr(selector + " {" + result, indent) + indentStr('}', indent);
2113
+ }
2114
+
2115
+ var escapeRegex = /([[\].#*$><+~=|^:(),"'`\s])/g;
2116
+ var nativeEscape = typeof CSS !== 'undefined' && CSS.escape;
2117
+ var escape = (function (str) {
2118
+ return nativeEscape ? nativeEscape(str) : str.replace(escapeRegex, '\\$1');
2119
+ });
2120
+
2121
+ var BaseStyleRule =
2122
+ /*#__PURE__*/
2123
+ function () {
2124
+ function BaseStyleRule(key, style, options) {
2125
+ this.type = 'style';
2126
+ this.key = void 0;
2127
+ this.isProcessed = false;
2128
+ this.style = void 0;
2129
+ this.renderer = void 0;
2130
+ this.renderable = void 0;
2131
+ this.options = void 0;
2132
+ var sheet = options.sheet,
2133
+ Renderer = options.Renderer;
2134
+ this.key = key;
2135
+ this.options = options;
2136
+ this.style = style;
2137
+ if (sheet) this.renderer = sheet.renderer;else if (Renderer) this.renderer = new Renderer();
2138
+ }
2139
+ /**
2140
+ * Get or set a style property.
2141
+ */
2142
+
2143
+
2144
+ var _proto = BaseStyleRule.prototype;
2145
+
2146
+ _proto.prop = function prop(name, value, options) {
2147
+ // It's a getter.
2148
+ if (value === undefined) return this.style[name]; // Don't do anything if the value has not changed.
2149
+
2150
+ var force = options ? options.force : false;
2151
+ if (!force && this.style[name] === value) return this;
2152
+ var newValue = value;
2153
+
2154
+ if (!options || options.process !== false) {
2155
+ newValue = this.options.jss.plugins.onChangeValue(value, name, this);
2156
+ }
2157
+
2158
+ var isEmpty = newValue == null || newValue === false;
2159
+ var isDefined = name in this.style; // Value is empty and wasn't defined before.
2160
+
2161
+ if (isEmpty && !isDefined && !force) return this; // We are going to remove this value.
2162
+
2163
+ var remove = isEmpty && isDefined;
2164
+ if (remove) delete this.style[name];else this.style[name] = newValue; // Renderable is defined if StyleSheet option `link` is true.
2165
+
2166
+ if (this.renderable && this.renderer) {
2167
+ if (remove) this.renderer.removeProperty(this.renderable, name);else this.renderer.setProperty(this.renderable, name, newValue);
2168
+ return this;
2169
+ }
2170
+
2171
+ var sheet = this.options.sheet;
2172
+
2173
+ if (sheet && sheet.attached) {
2174
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, '[JSS] Rule is not linked. Missing sheet option "link: true".') : void 0;
2175
+ }
2176
+
2177
+ return this;
2178
+ };
2179
+
2180
+ return BaseStyleRule;
2181
+ }();
2182
+ var StyleRule =
2183
+ /*#__PURE__*/
2184
+ function (_BaseStyleRule) {
2185
+ Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(StyleRule, _BaseStyleRule);
2186
+
2187
+ function StyleRule(key, style, options) {
2188
+ var _this;
2189
+
2190
+ _this = _BaseStyleRule.call(this, key, style, options) || this;
2191
+ _this.selectorText = void 0;
2192
+ _this.id = void 0;
2193
+ _this.renderable = void 0;
2194
+ var selector = options.selector,
2195
+ scoped = options.scoped,
2196
+ sheet = options.sheet,
2197
+ generateId = options.generateId;
2198
+
2199
+ if (selector) {
2200
+ _this.selectorText = selector;
2201
+ } else if (scoped !== false) {
2202
+ _this.id = generateId(Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(_this)), sheet);
2203
+ _this.selectorText = "." + escape(_this.id);
2204
+ }
2205
+
2206
+ return _this;
2207
+ }
2208
+ /**
2209
+ * Set selector string.
2210
+ * Attention: use this with caution. Most browsers didn't implement
2211
+ * selectorText setter, so this may result in rerendering of entire Style Sheet.
2212
+ */
2213
+
2214
+
2215
+ var _proto2 = StyleRule.prototype;
2216
+
2217
+ /**
2218
+ * Apply rule to an element inline.
2219
+ */
2220
+ _proto2.applyTo = function applyTo(renderable) {
2221
+ var renderer = this.renderer;
2222
+
2223
+ if (renderer) {
2224
+ var json = this.toJSON();
2225
+
2226
+ for (var prop in json) {
2227
+ renderer.setProperty(renderable, prop, json[prop]);
2228
+ }
2229
+ }
2230
+
2231
+ return this;
2232
+ }
2233
+ /**
2234
+ * Returns JSON representation of the rule.
2235
+ * Fallbacks are not supported.
2236
+ * Useful for inline styles.
2237
+ */
2238
+ ;
2239
+
2240
+ _proto2.toJSON = function toJSON() {
2241
+ var json = {};
2242
+
2243
+ for (var prop in this.style) {
2244
+ var value = this.style[prop];
2245
+ if (typeof value !== 'object') json[prop] = value;else if (Array.isArray(value)) json[prop] = toCssValue(value);
2246
+ }
2247
+
2248
+ return json;
2249
+ }
2250
+ /**
2251
+ * Generates a CSS string.
2252
+ */
2253
+ ;
2254
+
2255
+ _proto2.toString = function toString(options) {
2256
+ var sheet = this.options.sheet;
2257
+ var link = sheet ? sheet.options.link : false;
2258
+ var opts = link ? Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
2259
+ allowEmpty: true
2260
+ }) : options;
2261
+ return toCss(this.selectorText, this.style, opts);
2262
+ };
2263
+
2264
+ Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_createClass__["a" /* default */])(StyleRule, [{
2265
+ key: "selector",
2266
+ set: function set(selector) {
2267
+ if (selector === this.selectorText) return;
2268
+ this.selectorText = selector;
2269
+ var renderer = this.renderer,
2270
+ renderable = this.renderable;
2271
+ if (!renderable || !renderer) return;
2272
+ var hasChanged = renderer.setSelector(renderable, selector); // If selector setter is not implemented, rerender the rule.
2273
+
2274
+ if (!hasChanged) {
2275
+ renderer.replaceRule(renderable, this);
2276
+ }
2277
+ }
2278
+ /**
2279
+ * Get selector string.
2280
+ */
2281
+ ,
2282
+ get: function get() {
2283
+ return this.selectorText;
2284
+ }
2285
+ }]);
2286
+
2287
+ return StyleRule;
2288
+ }(BaseStyleRule);
2289
+ var pluginStyleRule = {
2290
+ onCreateRule: function onCreateRule(name, style, options) {
2291
+ if (name[0] === '@' || options.parent && options.parent.type === 'keyframes') {
2292
+ return null;
2293
+ }
2294
+
2295
+ return new StyleRule(name, style, options);
2296
+ }
2297
+ };
2298
+
2299
+ var defaultToStringOptions = {
2300
+ indent: 1,
2301
+ children: true
2302
+ };
2303
+ var atRegExp = /@([\w-]+)/;
2304
+ /**
2305
+ * Conditional rule for @media, @supports
2306
+ */
2307
+
2308
+ var ConditionalRule =
2309
+ /*#__PURE__*/
2310
+ function () {
2311
+ function ConditionalRule(key, styles, options) {
2312
+ this.type = 'conditional';
2313
+ this.at = void 0;
2314
+ this.key = void 0;
2315
+ this.query = void 0;
2316
+ this.rules = void 0;
2317
+ this.options = void 0;
2318
+ this.isProcessed = false;
2319
+ this.renderable = void 0;
2320
+ this.key = key; // Key might contain a unique suffix in case the `name` passed by user was duplicate.
2321
+
2322
+ this.query = options.name;
2323
+ var atMatch = key.match(atRegExp);
2324
+ this.at = atMatch ? atMatch[1] : 'unknown';
2325
+ this.options = options;
2326
+ this.rules = new RuleList(Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
2327
+ parent: this
2328
+ }));
2329
+
2330
+ for (var name in styles) {
2331
+ this.rules.add(name, styles[name]);
2332
+ }
2333
+
2334
+ this.rules.process();
2335
+ }
2336
+ /**
2337
+ * Get a rule.
2338
+ */
2339
+
2340
+
2341
+ var _proto = ConditionalRule.prototype;
2342
+
2343
+ _proto.getRule = function getRule(name) {
2344
+ return this.rules.get(name);
2345
+ }
2346
+ /**
2347
+ * Get index of a rule.
2348
+ */
2349
+ ;
2350
+
2351
+ _proto.indexOf = function indexOf(rule) {
2352
+ return this.rules.indexOf(rule);
2353
+ }
2354
+ /**
2355
+ * Create and register rule, run plugins.
2356
+ */
2357
+ ;
2358
+
2359
+ _proto.addRule = function addRule(name, style, options) {
2360
+ var rule = this.rules.add(name, style, options);
2361
+ if (!rule) return null;
2362
+ this.options.jss.plugins.onProcessRule(rule);
2363
+ return rule;
2364
+ }
2365
+ /**
2366
+ * Generates a CSS string.
2367
+ */
2368
+ ;
2369
+
2370
+ _proto.toString = function toString(options) {
2371
+ if (options === void 0) {
2372
+ options = defaultToStringOptions;
2373
+ }
2374
+
2375
+ if (options.indent == null) options.indent = defaultToStringOptions.indent;
2376
+ if (options.children == null) options.children = defaultToStringOptions.children;
2377
+
2378
+ if (options.children === false) {
2379
+ return this.query + " {}";
2380
+ }
2381
+
2382
+ var children = this.rules.toString(options);
2383
+ return children ? this.query + " {\n" + children + "\n}" : '';
2384
+ };
2385
+
2386
+ return ConditionalRule;
2387
+ }();
2388
+ var keyRegExp = /@media|@supports\s+/;
2389
+ var pluginConditionalRule = {
2390
+ onCreateRule: function onCreateRule(key, styles, options) {
2391
+ return keyRegExp.test(key) ? new ConditionalRule(key, styles, options) : null;
2392
+ }
2393
+ };
2394
+
2395
+ var defaultToStringOptions$1 = {
2396
+ indent: 1,
2397
+ children: true
2398
+ };
2399
+ var nameRegExp = /@keyframes\s+([\w-]+)/;
2400
+ /**
2401
+ * Rule for @keyframes
2402
+ */
2403
+
2404
+ var KeyframesRule =
2405
+ /*#__PURE__*/
2406
+ function () {
2407
+ function KeyframesRule(key, frames, options) {
2408
+ this.type = 'keyframes';
2409
+ this.at = '@keyframes';
2410
+ this.key = void 0;
2411
+ this.name = void 0;
2412
+ this.id = void 0;
2413
+ this.rules = void 0;
2414
+ this.options = void 0;
2415
+ this.isProcessed = false;
2416
+ this.renderable = void 0;
2417
+ var nameMatch = key.match(nameRegExp);
2418
+
2419
+ if (nameMatch && nameMatch[1]) {
2420
+ this.name = nameMatch[1];
2421
+ } else {
2422
+ this.name = 'noname';
2423
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Bad keyframes name " + key) : void 0;
2424
+ }
2425
+
2426
+ this.key = this.type + "-" + this.name;
2427
+ this.options = options;
2428
+ var scoped = options.scoped,
2429
+ sheet = options.sheet,
2430
+ generateId = options.generateId;
2431
+ this.id = scoped === false ? this.name : escape(generateId(this, sheet));
2432
+ this.rules = new RuleList(Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
2433
+ parent: this
2434
+ }));
2435
+
2436
+ for (var name in frames) {
2437
+ this.rules.add(name, frames[name], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
2438
+ parent: this
2439
+ }));
2440
+ }
2441
+
2442
+ this.rules.process();
2443
+ }
2444
+ /**
2445
+ * Generates a CSS string.
2446
+ */
2447
+
2448
+
2449
+ var _proto = KeyframesRule.prototype;
2450
+
2451
+ _proto.toString = function toString(options) {
2452
+ if (options === void 0) {
2453
+ options = defaultToStringOptions$1;
2454
+ }
2455
+
2456
+ if (options.indent == null) options.indent = defaultToStringOptions$1.indent;
2457
+ if (options.children == null) options.children = defaultToStringOptions$1.children;
2458
+
2459
+ if (options.children === false) {
2460
+ return this.at + " " + this.id + " {}";
2461
+ }
2462
+
2463
+ var children = this.rules.toString(options);
2464
+ if (children) children = "\n" + children + "\n";
2465
+ return this.at + " " + this.id + " {" + children + "}";
2466
+ };
2467
+
2468
+ return KeyframesRule;
2469
+ }();
2470
+ var keyRegExp$1 = /@keyframes\s+/;
2471
+ var refRegExp = /\$([\w-]+)/g;
2472
+
2473
+ var findReferencedKeyframe = function findReferencedKeyframe(val, keyframes) {
2474
+ if (typeof val === 'string') {
2475
+ return val.replace(refRegExp, function (match, name) {
2476
+ if (name in keyframes) {
2477
+ return keyframes[name];
2478
+ }
2479
+
2480
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Referenced keyframes rule \"" + name + "\" is not defined.") : void 0;
2481
+ return match;
2482
+ });
2483
+ }
2484
+
2485
+ return val;
2486
+ };
2487
+ /**
2488
+ * Replace the reference for a animation name.
2489
+ */
2490
+
2491
+
2492
+ var replaceRef = function replaceRef(style, prop, keyframes) {
2493
+ var value = style[prop];
2494
+ var refKeyframe = findReferencedKeyframe(value, keyframes);
2495
+
2496
+ if (refKeyframe !== value) {
2497
+ style[prop] = refKeyframe;
2498
+ }
2499
+ };
2500
+
2501
+ var plugin = {
2502
+ onCreateRule: function onCreateRule(key, frames, options) {
2503
+ return typeof key === 'string' && keyRegExp$1.test(key) ? new KeyframesRule(key, frames, options) : null;
2504
+ },
2505
+ // Animation name ref replacer.
2506
+ onProcessStyle: function onProcessStyle(style, rule, sheet) {
2507
+ if (rule.type !== 'style' || !sheet) return style;
2508
+ if ('animation-name' in style) replaceRef(style, 'animation-name', sheet.keyframes);
2509
+ if ('animation' in style) replaceRef(style, 'animation', sheet.keyframes);
2510
+ return style;
2511
+ },
2512
+ onChangeValue: function onChangeValue(val, prop, rule) {
2513
+ var sheet = rule.options.sheet;
2514
+
2515
+ if (!sheet) {
2516
+ return val;
2517
+ }
2518
+
2519
+ switch (prop) {
2520
+ case 'animation':
2521
+ return findReferencedKeyframe(val, sheet.keyframes);
2522
+
2523
+ case 'animation-name':
2524
+ return findReferencedKeyframe(val, sheet.keyframes);
2525
+
2526
+ default:
2527
+ return val;
2528
+ }
2529
+ }
2530
+ };
2531
+
2532
+ var KeyframeRule =
2533
+ /*#__PURE__*/
2534
+ function (_BaseStyleRule) {
2535
+ Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(KeyframeRule, _BaseStyleRule);
2536
+
2537
+ function KeyframeRule() {
2538
+ var _this;
2539
+
2540
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2541
+ args[_key] = arguments[_key];
2542
+ }
2543
+
2544
+ _this = _BaseStyleRule.call.apply(_BaseStyleRule, [this].concat(args)) || this;
2545
+ _this.renderable = void 0;
2546
+ return _this;
2547
+ }
2548
+
2549
+ var _proto = KeyframeRule.prototype;
2550
+
2551
+ /**
2552
+ * Generates a CSS string.
2553
+ */
2554
+ _proto.toString = function toString(options) {
2555
+ var sheet = this.options.sheet;
2556
+ var link = sheet ? sheet.options.link : false;
2557
+ var opts = link ? Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
2558
+ allowEmpty: true
2559
+ }) : options;
2560
+ return toCss(this.key, this.style, opts);
2561
+ };
2562
+
2563
+ return KeyframeRule;
2564
+ }(BaseStyleRule);
2565
+ var pluginKeyframeRule = {
2566
+ onCreateRule: function onCreateRule(key, style, options) {
2567
+ if (options.parent && options.parent.type === 'keyframes') {
2568
+ return new KeyframeRule(key, style, options);
2569
+ }
2570
+
2571
+ return null;
2572
+ }
2573
+ };
2574
+
2575
+ var FontFaceRule =
2576
+ /*#__PURE__*/
2577
+ function () {
2578
+ function FontFaceRule(key, style, options) {
2579
+ this.type = 'font-face';
2580
+ this.at = '@font-face';
2581
+ this.key = void 0;
2582
+ this.style = void 0;
2583
+ this.options = void 0;
2584
+ this.isProcessed = false;
2585
+ this.renderable = void 0;
2586
+ this.key = key;
2587
+ this.style = style;
2588
+ this.options = options;
2589
+ }
2590
+ /**
2591
+ * Generates a CSS string.
2592
+ */
2593
+
2594
+
2595
+ var _proto = FontFaceRule.prototype;
2596
+
2597
+ _proto.toString = function toString(options) {
2598
+ if (Array.isArray(this.style)) {
2599
+ var str = '';
2600
+
2601
+ for (var index = 0; index < this.style.length; index++) {
2602
+ str += toCss(this.at, this.style[index]);
2603
+ if (this.style[index + 1]) str += '\n';
2604
+ }
2605
+
2606
+ return str;
2607
+ }
2608
+
2609
+ return toCss(this.at, this.style, options);
2610
+ };
2611
+
2612
+ return FontFaceRule;
2613
+ }();
2614
+ var keyRegExp$2 = /@font-face/;
2615
+ var pluginFontFaceRule = {
2616
+ onCreateRule: function onCreateRule(key, style, options) {
2617
+ return keyRegExp$2.test(key) ? new FontFaceRule(key, style, options) : null;
2618
+ }
2619
+ };
2620
+
2621
+ var ViewportRule =
2622
+ /*#__PURE__*/
2623
+ function () {
2624
+ function ViewportRule(key, style, options) {
2625
+ this.type = 'viewport';
2626
+ this.at = '@viewport';
2627
+ this.key = void 0;
2628
+ this.style = void 0;
2629
+ this.options = void 0;
2630
+ this.isProcessed = false;
2631
+ this.renderable = void 0;
2632
+ this.key = key;
2633
+ this.style = style;
2634
+ this.options = options;
2635
+ }
2636
+ /**
2637
+ * Generates a CSS string.
2638
+ */
2639
+
2640
+
2641
+ var _proto = ViewportRule.prototype;
2642
+
2643
+ _proto.toString = function toString(options) {
2644
+ return toCss(this.key, this.style, options);
2645
+ };
2646
+
2647
+ return ViewportRule;
2648
+ }();
2649
+ var pluginViewportRule = {
2650
+ onCreateRule: function onCreateRule(key, style, options) {
2651
+ return key === '@viewport' || key === '@-ms-viewport' ? new ViewportRule(key, style, options) : null;
2652
+ }
2653
+ };
2654
+
2655
+ var SimpleRule =
2656
+ /*#__PURE__*/
2657
+ function () {
2658
+ function SimpleRule(key, value, options) {
2659
+ this.type = 'simple';
2660
+ this.key = void 0;
2661
+ this.value = void 0;
2662
+ this.options = void 0;
2663
+ this.isProcessed = false;
2664
+ this.renderable = void 0;
2665
+ this.key = key;
2666
+ this.value = value;
2667
+ this.options = options;
2668
+ }
2669
+ /**
2670
+ * Generates a CSS string.
2671
+ */
2672
+ // eslint-disable-next-line no-unused-vars
2673
+
2674
+
2675
+ var _proto = SimpleRule.prototype;
2676
+
2677
+ _proto.toString = function toString(options) {
2678
+ if (Array.isArray(this.value)) {
2679
+ var str = '';
2680
+
2681
+ for (var index = 0; index < this.value.length; index++) {
2682
+ str += this.key + " " + this.value[index] + ";";
2683
+ if (this.value[index + 1]) str += '\n';
2684
+ }
2685
+
2686
+ return str;
2687
+ }
2688
+
2689
+ return this.key + " " + this.value + ";";
2690
+ };
2691
+
2692
+ return SimpleRule;
2693
+ }();
2694
+ var keysMap = {
2695
+ '@charset': true,
2696
+ '@import': true,
2697
+ '@namespace': true
2698
+ };
2699
+ var pluginSimpleRule = {
2700
+ onCreateRule: function onCreateRule(key, value, options) {
2701
+ return key in keysMap ? new SimpleRule(key, value, options) : null;
2702
+ }
2703
+ };
2704
+
2705
+ var plugins = [pluginStyleRule, pluginConditionalRule, plugin, pluginKeyframeRule, pluginFontFaceRule, pluginViewportRule, pluginSimpleRule];
2706
+
2707
+ var defaultUpdateOptions = {
2708
+ process: true
2709
+ };
2710
+ var forceUpdateOptions = {
2711
+ force: true,
2712
+ process: true
2713
+ /**
2714
+ * Contains rules objects and allows adding/removing etc.
2715
+ * Is used for e.g. by `StyleSheet` or `ConditionalRule`.
2716
+ */
2717
+
2718
+ };
2719
+
2720
+ var RuleList =
2721
+ /*#__PURE__*/
2722
+ function () {
2723
+ // Rules registry for access by .get() method.
2724
+ // It contains the same rule registered by name and by selector.
2725
+ // Original styles object.
2726
+ // Used to ensure correct rules order.
2727
+ function RuleList(options) {
2728
+ this.map = {};
2729
+ this.raw = {};
2730
+ this.index = [];
2731
+ this.counter = 0;
2732
+ this.options = void 0;
2733
+ this.classes = void 0;
2734
+ this.keyframes = void 0;
2735
+ this.options = options;
2736
+ this.classes = options.classes;
2737
+ this.keyframes = options.keyframes;
2738
+ }
2739
+ /**
2740
+ * Create and register rule.
2741
+ *
2742
+ * Will not render after Style Sheet was rendered the first time.
2743
+ */
2744
+
2745
+
2746
+ var _proto = RuleList.prototype;
2747
+
2748
+ _proto.add = function add(name, decl, ruleOptions) {
2749
+ var _this$options = this.options,
2750
+ parent = _this$options.parent,
2751
+ sheet = _this$options.sheet,
2752
+ jss = _this$options.jss,
2753
+ Renderer = _this$options.Renderer,
2754
+ generateId = _this$options.generateId,
2755
+ scoped = _this$options.scoped;
2756
+
2757
+ var options = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
2758
+ classes: this.classes,
2759
+ parent: parent,
2760
+ sheet: sheet,
2761
+ jss: jss,
2762
+ Renderer: Renderer,
2763
+ generateId: generateId,
2764
+ scoped: scoped,
2765
+ name: name
2766
+ }, ruleOptions); // When user uses .createStyleSheet(), duplicate names are not possible, but
2767
+ // `sheet.addRule()` opens the door for any duplicate rule name. When this happens
2768
+ // we need to make the key unique within this RuleList instance scope.
2769
+
2770
+
2771
+ var key = name;
2772
+
2773
+ if (name in this.raw) {
2774
+ key = name + "-d" + this.counter++;
2775
+ } // We need to save the original decl before creating the rule
2776
+ // because cache plugin needs to use it as a key to return a cached rule.
2777
+
2778
+
2779
+ this.raw[key] = decl;
2780
+
2781
+ if (key in this.classes) {
2782
+ // E.g. rules inside of @media container
2783
+ options.selector = "." + escape(this.classes[key]);
2784
+ }
2785
+
2786
+ var rule = createRule(key, decl, options);
2787
+ if (!rule) return null;
2788
+ this.register(rule);
2789
+ var index = options.index === undefined ? this.index.length : options.index;
2790
+ this.index.splice(index, 0, rule);
2791
+ return rule;
2792
+ }
2793
+ /**
2794
+ * Get a rule.
2795
+ */
2796
+ ;
2797
+
2798
+ _proto.get = function get(name) {
2799
+ return this.map[name];
2800
+ }
2801
+ /**
2802
+ * Delete a rule.
2803
+ */
2804
+ ;
2805
+
2806
+ _proto.remove = function remove(rule) {
2807
+ this.unregister(rule);
2808
+ delete this.raw[rule.key];
2809
+ this.index.splice(this.index.indexOf(rule), 1);
2810
+ }
2811
+ /**
2812
+ * Get index of a rule.
2813
+ */
2814
+ ;
2815
+
2816
+ _proto.indexOf = function indexOf(rule) {
2817
+ return this.index.indexOf(rule);
2818
+ }
2819
+ /**
2820
+ * Run `onProcessRule()` plugins on every rule.
2821
+ */
2822
+ ;
2823
+
2824
+ _proto.process = function process() {
2825
+ var plugins$$1 = this.options.jss.plugins; // We need to clone array because if we modify the index somewhere else during a loop
2826
+ // we end up with very hard-to-track-down side effects.
2827
+
2828
+ this.index.slice(0).forEach(plugins$$1.onProcessRule, plugins$$1);
2829
+ }
2830
+ /**
2831
+ * Register a rule in `.map`, `.classes` and `.keyframes` maps.
2832
+ */
2833
+ ;
2834
+
2835
+ _proto.register = function register(rule) {
2836
+ this.map[rule.key] = rule;
2837
+
2838
+ if (rule instanceof StyleRule) {
2839
+ this.map[rule.selector] = rule;
2840
+ if (rule.id) this.classes[rule.key] = rule.id;
2841
+ } else if (rule instanceof KeyframesRule && this.keyframes) {
2842
+ this.keyframes[rule.name] = rule.id;
2843
+ }
2844
+ }
2845
+ /**
2846
+ * Unregister a rule.
2847
+ */
2848
+ ;
2849
+
2850
+ _proto.unregister = function unregister(rule) {
2851
+ delete this.map[rule.key];
2852
+
2853
+ if (rule instanceof StyleRule) {
2854
+ delete this.map[rule.selector];
2855
+ delete this.classes[rule.key];
2856
+ } else if (rule instanceof KeyframesRule) {
2857
+ delete this.keyframes[rule.name];
2858
+ }
2859
+ }
2860
+ /**
2861
+ * Update the function values with a new data.
2862
+ */
2863
+ ;
2864
+
2865
+ _proto.update = function update() {
2866
+ var name;
2867
+ var data;
2868
+ var options;
2869
+
2870
+ if (typeof (arguments.length <= 0 ? undefined : arguments[0]) === 'string') {
2871
+ name = arguments.length <= 0 ? undefined : arguments[0]; // $FlowFixMe
2872
+
2873
+ data = arguments.length <= 1 ? undefined : arguments[1]; // $FlowFixMe
2874
+
2875
+ options = arguments.length <= 2 ? undefined : arguments[2];
2876
+ } else {
2877
+ data = arguments.length <= 0 ? undefined : arguments[0]; // $FlowFixMe
2878
+
2879
+ options = arguments.length <= 1 ? undefined : arguments[1];
2880
+ name = null;
2881
+ }
2882
+
2883
+ if (name) {
2884
+ this.updateOne(this.map[name], data, options);
2885
+ } else {
2886
+ for (var index = 0; index < this.index.length; index++) {
2887
+ this.updateOne(this.index[index], data, options);
2888
+ }
2889
+ }
2890
+ }
2891
+ /**
2892
+ * Execute plugins, update rule props.
2893
+ */
2894
+ ;
2895
+
2896
+ _proto.updateOne = function updateOne(rule, data, options) {
2897
+ if (options === void 0) {
2898
+ options = defaultUpdateOptions;
2899
+ }
2900
+
2901
+ var _this$options2 = this.options,
2902
+ plugins$$1 = _this$options2.jss.plugins,
2903
+ sheet = _this$options2.sheet; // It is a rules container like for e.g. ConditionalRule.
2904
+
2905
+ if (rule.rules instanceof RuleList) {
2906
+ rule.rules.update(data, options);
2907
+ return;
2908
+ }
2909
+
2910
+ var styleRule = rule;
2911
+ var style = styleRule.style;
2912
+ plugins$$1.onUpdate(data, rule, sheet, options); // We rely on a new `style` ref in case it was mutated during onUpdate hook.
2913
+
2914
+ if (options.process && style && style !== styleRule.style) {
2915
+ // We need to run the plugins in case new `style` relies on syntax plugins.
2916
+ plugins$$1.onProcessStyle(styleRule.style, styleRule, sheet); // Update and add props.
2917
+
2918
+ for (var prop in styleRule.style) {
2919
+ var nextValue = styleRule.style[prop];
2920
+ var prevValue = style[prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule.
2921
+ // We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.
2922
+
2923
+ if (nextValue !== prevValue) {
2924
+ styleRule.prop(prop, nextValue, forceUpdateOptions);
2925
+ }
2926
+ } // Remove props.
2927
+
2928
+
2929
+ for (var _prop in style) {
2930
+ var _nextValue = styleRule.style[_prop];
2931
+ var _prevValue = style[_prop]; // We need to use `force: true` because `rule.style` has been updated during onUpdate hook, so `rule.prop()` will not update the CSSOM rule.
2932
+ // We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.
2933
+
2934
+ if (_nextValue == null && _nextValue !== _prevValue) {
2935
+ styleRule.prop(_prop, null, forceUpdateOptions);
2936
+ }
2937
+ }
2938
+ }
2939
+ }
2940
+ /**
2941
+ * Convert rules to a CSS string.
2942
+ */
2943
+ ;
2944
+
2945
+ _proto.toString = function toString(options) {
2946
+ var str = '';
2947
+ var sheet = this.options.sheet;
2948
+ var link = sheet ? sheet.options.link : false;
2949
+
2950
+ for (var index = 0; index < this.index.length; index++) {
2951
+ var rule = this.index[index];
2952
+ var css = rule.toString(options); // No need to render an empty rule.
2953
+
2954
+ if (!css && !link) continue;
2955
+ if (str) str += '\n';
2956
+ str += css;
2957
+ }
2958
+
2959
+ return str;
2960
+ };
2961
+
2962
+ return RuleList;
2963
+ }();
2964
+
2965
+ var StyleSheet =
2966
+ /*#__PURE__*/
2967
+ function () {
2968
+ function StyleSheet(styles, options) {
2969
+ this.options = void 0;
2970
+ this.deployed = void 0;
2971
+ this.attached = void 0;
2972
+ this.rules = void 0;
2973
+ this.renderer = void 0;
2974
+ this.classes = void 0;
2975
+ this.keyframes = void 0;
2976
+ this.queue = void 0;
2977
+ this.attached = false;
2978
+ this.deployed = false;
2979
+ this.classes = {};
2980
+ this.keyframes = {};
2981
+ this.options = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
2982
+ sheet: this,
2983
+ parent: this,
2984
+ classes: this.classes,
2985
+ keyframes: this.keyframes
2986
+ });
2987
+
2988
+ if (options.Renderer) {
2989
+ this.renderer = new options.Renderer(this);
2990
+ }
2991
+
2992
+ this.rules = new RuleList(this.options);
2993
+
2994
+ for (var name in styles) {
2995
+ this.rules.add(name, styles[name]);
2996
+ }
2997
+
2998
+ this.rules.process();
2999
+ }
3000
+ /**
3001
+ * Attach renderable to the render tree.
3002
+ */
3003
+
3004
+
3005
+ var _proto = StyleSheet.prototype;
3006
+
3007
+ _proto.attach = function attach() {
3008
+ if (this.attached) return this;
3009
+ if (this.renderer) this.renderer.attach();
3010
+ this.attached = true; // Order is important, because we can't use insertRule API if style element is not attached.
3011
+
3012
+ if (!this.deployed) this.deploy();
3013
+ return this;
3014
+ }
3015
+ /**
3016
+ * Remove renderable from render tree.
3017
+ */
3018
+ ;
3019
+
3020
+ _proto.detach = function detach() {
3021
+ if (!this.attached) return this;
3022
+ if (this.renderer) this.renderer.detach();
3023
+ this.attached = false;
3024
+ return this;
3025
+ }
3026
+ /**
3027
+ * Add a rule to the current stylesheet.
3028
+ * Will insert a rule also after the stylesheet has been rendered first time.
3029
+ */
3030
+ ;
3031
+
3032
+ _proto.addRule = function addRule(name, decl, options) {
3033
+ var queue = this.queue; // Plugins can create rules.
3034
+ // In order to preserve the right order, we need to queue all `.addRule` calls,
3035
+ // which happen after the first `rules.add()` call.
3036
+
3037
+ if (this.attached && !queue) this.queue = [];
3038
+ var rule = this.rules.add(name, decl, options);
3039
+ if (!rule) return null;
3040
+ this.options.jss.plugins.onProcessRule(rule);
3041
+
3042
+ if (this.attached) {
3043
+ if (!this.deployed) return rule; // Don't insert rule directly if there is no stringified version yet.
3044
+ // It will be inserted all together when .attach is called.
3045
+
3046
+ if (queue) queue.push(rule);else {
3047
+ this.insertRule(rule);
3048
+
3049
+ if (this.queue) {
3050
+ this.queue.forEach(this.insertRule, this);
3051
+ this.queue = undefined;
3052
+ }
3053
+ }
3054
+ return rule;
3055
+ } // We can't add rules to a detached style node.
3056
+ // We will redeploy the sheet once user will attach it.
3057
+
3058
+
3059
+ this.deployed = false;
3060
+ return rule;
3061
+ }
3062
+ /**
3063
+ * Insert rule into the StyleSheet
3064
+ */
3065
+ ;
3066
+
3067
+ _proto.insertRule = function insertRule(rule) {
3068
+ if (this.renderer) {
3069
+ this.renderer.insertRule(rule);
3070
+ }
3071
+ }
3072
+ /**
3073
+ * Create and add rules.
3074
+ * Will render also after Style Sheet was rendered the first time.
3075
+ */
3076
+ ;
3077
+
3078
+ _proto.addRules = function addRules(styles, options) {
3079
+ var added = [];
3080
+
3081
+ for (var name in styles) {
3082
+ var rule = this.addRule(name, styles[name], options);
3083
+ if (rule) added.push(rule);
3084
+ }
3085
+
3086
+ return added;
3087
+ }
3088
+ /**
3089
+ * Get a rule by name.
3090
+ */
3091
+ ;
3092
+
3093
+ _proto.getRule = function getRule(name) {
3094
+ return this.rules.get(name);
3095
+ }
3096
+ /**
3097
+ * Delete a rule by name.
3098
+ * Returns `true`: if rule has been deleted from the DOM.
3099
+ */
3100
+ ;
3101
+
3102
+ _proto.deleteRule = function deleteRule(name) {
3103
+ var rule = typeof name === 'object' ? name : this.rules.get(name);
3104
+ if (!rule) return false;
3105
+ this.rules.remove(rule);
3106
+
3107
+ if (this.attached && rule.renderable && this.renderer) {
3108
+ return this.renderer.deleteRule(rule.renderable);
3109
+ }
3110
+
3111
+ return true;
3112
+ }
3113
+ /**
3114
+ * Get index of a rule.
3115
+ */
3116
+ ;
3117
+
3118
+ _proto.indexOf = function indexOf(rule) {
3119
+ return this.rules.indexOf(rule);
3120
+ }
3121
+ /**
3122
+ * Deploy pure CSS string to a renderable.
3123
+ */
3124
+ ;
3125
+
3126
+ _proto.deploy = function deploy() {
3127
+ if (this.renderer) this.renderer.deploy();
3128
+ this.deployed = true;
3129
+ return this;
3130
+ }
3131
+ /**
3132
+ * Update the function values with a new data.
3133
+ */
3134
+ ;
3135
+
3136
+ _proto.update = function update() {
3137
+ var _this$rules;
3138
+
3139
+ (_this$rules = this.rules).update.apply(_this$rules, arguments);
3140
+
3141
+ return this;
3142
+ }
3143
+ /**
3144
+ * Updates a single rule.
3145
+ */
3146
+ ;
3147
+
3148
+ _proto.updateOne = function updateOne(rule, data, options) {
3149
+ this.rules.updateOne(rule, data, options);
3150
+ return this;
3151
+ }
3152
+ /**
3153
+ * Convert rules to a CSS string.
3154
+ */
3155
+ ;
3156
+
3157
+ _proto.toString = function toString(options) {
3158
+ return this.rules.toString(options);
3159
+ };
3160
+
3161
+ return StyleSheet;
3162
+ }();
3163
+
3164
+ var PluginsRegistry =
3165
+ /*#__PURE__*/
3166
+ function () {
3167
+ function PluginsRegistry() {
3168
+ this.plugins = {
3169
+ internal: [],
3170
+ external: []
3171
+ };
3172
+ this.registry = void 0;
3173
+ }
3174
+
3175
+ var _proto = PluginsRegistry.prototype;
3176
+
3177
+ /**
3178
+ * Call `onCreateRule` hooks and return an object if returned by a hook.
3179
+ */
3180
+ _proto.onCreateRule = function onCreateRule(name, decl, options) {
3181
+ for (var i = 0; i < this.registry.onCreateRule.length; i++) {
3182
+ var rule = this.registry.onCreateRule[i](name, decl, options);
3183
+ if (rule) return rule;
3184
+ }
3185
+
3186
+ return null;
3187
+ }
3188
+ /**
3189
+ * Call `onProcessRule` hooks.
3190
+ */
3191
+ ;
3192
+
3193
+ _proto.onProcessRule = function onProcessRule(rule) {
3194
+ if (rule.isProcessed) return;
3195
+ var sheet = rule.options.sheet;
3196
+
3197
+ for (var i = 0; i < this.registry.onProcessRule.length; i++) {
3198
+ this.registry.onProcessRule[i](rule, sheet);
3199
+ }
3200
+
3201
+ if (rule.style) this.onProcessStyle(rule.style, rule, sheet);
3202
+ rule.isProcessed = true;
3203
+ }
3204
+ /**
3205
+ * Call `onProcessStyle` hooks.
3206
+ */
3207
+ ;
3208
+
3209
+ _proto.onProcessStyle = function onProcessStyle(style, rule, sheet) {
3210
+ for (var i = 0; i < this.registry.onProcessStyle.length; i++) {
3211
+ // $FlowFixMe
3212
+ rule.style = this.registry.onProcessStyle[i](rule.style, rule, sheet);
3213
+ }
3214
+ }
3215
+ /**
3216
+ * Call `onProcessSheet` hooks.
3217
+ */
3218
+ ;
3219
+
3220
+ _proto.onProcessSheet = function onProcessSheet(sheet) {
3221
+ for (var i = 0; i < this.registry.onProcessSheet.length; i++) {
3222
+ this.registry.onProcessSheet[i](sheet);
3223
+ }
3224
+ }
3225
+ /**
3226
+ * Call `onUpdate` hooks.
3227
+ */
3228
+ ;
3229
+
3230
+ _proto.onUpdate = function onUpdate(data, rule, sheet, options) {
3231
+ for (var i = 0; i < this.registry.onUpdate.length; i++) {
3232
+ this.registry.onUpdate[i](data, rule, sheet, options);
3233
+ }
3234
+ }
3235
+ /**
3236
+ * Call `onChangeValue` hooks.
3237
+ */
3238
+ ;
3239
+
3240
+ _proto.onChangeValue = function onChangeValue(value, prop, rule) {
3241
+ var processedValue = value;
3242
+
3243
+ for (var i = 0; i < this.registry.onChangeValue.length; i++) {
3244
+ processedValue = this.registry.onChangeValue[i](processedValue, prop, rule);
3245
+ }
3246
+
3247
+ return processedValue;
3248
+ }
3249
+ /**
3250
+ * Register a plugin.
3251
+ */
3252
+ ;
3253
+
3254
+ _proto.use = function use(newPlugin, options) {
3255
+ if (options === void 0) {
3256
+ options = {
3257
+ queue: 'external'
3258
+ };
3259
+ }
3260
+
3261
+ var plugins = this.plugins[options.queue]; // Avoids applying same plugin twice, at least based on ref.
3262
+
3263
+ if (plugins.indexOf(newPlugin) !== -1) {
3264
+ return;
3265
+ }
3266
+
3267
+ plugins.push(newPlugin);
3268
+ this.registry = [].concat(this.plugins.external, this.plugins.internal).reduce(function (registry, plugin) {
3269
+ for (var name in plugin) {
3270
+ if (name in registry) {
3271
+ registry[name].push(plugin[name]);
3272
+ } else {
3273
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Unknown hook \"" + name + "\".") : void 0;
3274
+ }
3275
+ }
3276
+
3277
+ return registry;
3278
+ }, {
3279
+ onCreateRule: [],
3280
+ onProcessRule: [],
3281
+ onProcessStyle: [],
3282
+ onProcessSheet: [],
3283
+ onChangeValue: [],
3284
+ onUpdate: []
3285
+ });
3286
+ };
3287
+
3288
+ return PluginsRegistry;
3289
+ }();
3290
+
3291
+ /**
3292
+ * Sheets registry to access them all at one place.
3293
+ */
3294
+ var SheetsRegistry =
3295
+ /*#__PURE__*/
3296
+ function () {
3297
+ function SheetsRegistry() {
3298
+ this.registry = [];
3299
+ }
3300
+
3301
+ var _proto = SheetsRegistry.prototype;
3302
+
3303
+ /**
3304
+ * Register a Style Sheet.
3305
+ */
3306
+ _proto.add = function add(sheet) {
3307
+ var registry = this.registry;
3308
+ var index = sheet.options.index;
3309
+ if (registry.indexOf(sheet) !== -1) return;
3310
+
3311
+ if (registry.length === 0 || index >= this.index) {
3312
+ registry.push(sheet);
3313
+ return;
3314
+ } // Find a position.
3315
+
3316
+
3317
+ for (var i = 0; i < registry.length; i++) {
3318
+ if (registry[i].options.index > index) {
3319
+ registry.splice(i, 0, sheet);
3320
+ return;
3321
+ }
3322
+ }
3323
+ }
3324
+ /**
3325
+ * Reset the registry.
3326
+ */
3327
+ ;
3328
+
3329
+ _proto.reset = function reset() {
3330
+ this.registry = [];
3331
+ }
3332
+ /**
3333
+ * Remove a Style Sheet.
3334
+ */
3335
+ ;
3336
+
3337
+ _proto.remove = function remove(sheet) {
3338
+ var index = this.registry.indexOf(sheet);
3339
+ this.registry.splice(index, 1);
3340
+ }
3341
+ /**
3342
+ * Convert all attached sheets to a CSS string.
3343
+ */
3344
+ ;
3345
+
3346
+ _proto.toString = function toString(_temp) {
3347
+ var _ref = _temp === void 0 ? {} : _temp,
3348
+ attached = _ref.attached,
3349
+ options = Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_ref, ["attached"]);
3350
+
3351
+ var css = '';
3352
+
3353
+ for (var i = 0; i < this.registry.length; i++) {
3354
+ var sheet = this.registry[i];
3355
+
3356
+ if (attached != null && sheet.attached !== attached) {
3357
+ continue;
3358
+ }
3359
+
3360
+ if (css) css += '\n';
3361
+ css += sheet.toString(options);
3362
+ }
3363
+
3364
+ return css;
3365
+ };
3366
+
3367
+ Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_createClass__["a" /* default */])(SheetsRegistry, [{
3368
+ key: "index",
3369
+
3370
+ /**
3371
+ * Current highest index number.
3372
+ */
3373
+ get: function get() {
3374
+ return this.registry.length === 0 ? 0 : this.registry[this.registry.length - 1].options.index;
3375
+ }
3376
+ }]);
3377
+
3378
+ return SheetsRegistry;
3379
+ }();
3380
+
3381
+ /**
3382
+ * This is a global sheets registry. Only DomRenderer will add sheets to it.
3383
+ * On the server one should use an own SheetsRegistry instance and add the
3384
+ * sheets to it, because you need to make sure to create a new registry for
3385
+ * each request in order to not leak sheets across requests.
3386
+ */
3387
+
3388
+ var sheets = new SheetsRegistry();
3389
+
3390
+ /* eslint-disable */
3391
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
3392
+ var globalThis = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();
3393
+
3394
+ var ns = '2f1acc6c3a606b082e5eef5e54414ffb';
3395
+ if (globalThis[ns] == null) globalThis[ns] = 0; // Bundle may contain multiple JSS versions at the same time. In order to identify
3396
+ // the current version with just one short number and use it for classes generation
3397
+ // we use a counter. Also it is more accurate, because user can manually reevaluate
3398
+ // the module.
3399
+
3400
+ var moduleId = globalThis[ns]++;
3401
+
3402
+ var maxRules = 1e10;
3403
+
3404
+ /**
3405
+ * Returns a function which generates unique class names based on counters.
3406
+ * When new generator function is created, rule counter is reseted.
3407
+ * We need to reset the rule counter for SSR for each request.
3408
+ */
3409
+ var createGenerateId = function createGenerateId(options) {
3410
+ if (options === void 0) {
3411
+ options = {};
3412
+ }
3413
+
3414
+ var ruleCounter = 0;
3415
+ return function (rule, sheet) {
3416
+ ruleCounter += 1;
3417
+
3418
+ if (ruleCounter > maxRules) {
3419
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] You might have a memory leak. Rule counter is at " + ruleCounter + ".") : void 0;
3420
+ }
3421
+
3422
+ var jssId = '';
3423
+ var prefix = '';
3424
+
3425
+ if (sheet) {
3426
+ if (sheet.options.classNamePrefix) {
3427
+ prefix = sheet.options.classNamePrefix;
3428
+ }
3429
+
3430
+ if (sheet.options.jss.id != null) {
3431
+ jssId = String(sheet.options.jss.id);
3432
+ }
3433
+ }
3434
+
3435
+ if (options.minify) {
3436
+ // Using "c" because a number can't be the first char in a class name.
3437
+ return "" + (prefix || 'c') + moduleId + jssId + ruleCounter;
3438
+ }
3439
+
3440
+ return prefix + rule.key + "-" + moduleId + (jssId ? "-" + jssId : '') + "-" + ruleCounter;
3441
+ };
3442
+ };
3443
+
3444
+ /**
3445
+ * Cache the value from the first time a function is called.
3446
+ */
3447
+ var memoize = function memoize(fn) {
3448
+ var value;
3449
+ return function () {
3450
+ if (!value) value = fn();
3451
+ return value;
3452
+ };
3453
+ };
3454
+ /**
3455
+ * Get a style property value.
3456
+ */
3457
+
3458
+
3459
+ function getPropertyValue(cssRule, prop) {
3460
+ try {
3461
+ // Support CSSTOM.
3462
+ if (cssRule.attributeStyleMap) {
3463
+ return cssRule.attributeStyleMap.get(prop);
3464
+ }
3465
+
3466
+ return cssRule.style.getPropertyValue(prop);
3467
+ } catch (err) {
3468
+ // IE may throw if property is unknown.
3469
+ return '';
3470
+ }
3471
+ }
3472
+ /**
3473
+ * Set a style property.
3474
+ */
3475
+
3476
+
3477
+ function setProperty(cssRule, prop, value) {
3478
+ try {
3479
+ var cssValue = value;
3480
+
3481
+ if (Array.isArray(value)) {
3482
+ cssValue = toCssValue(value, true);
3483
+
3484
+ if (value[value.length - 1] === '!important') {
3485
+ cssRule.style.setProperty(prop, cssValue, 'important');
3486
+ return true;
3487
+ }
3488
+ } // Support CSSTOM.
3489
+
3490
+
3491
+ if (cssRule.attributeStyleMap) {
3492
+ cssRule.attributeStyleMap.set(prop, cssValue);
3493
+ } else {
3494
+ cssRule.style.setProperty(prop, cssValue);
3495
+ }
3496
+ } catch (err) {
3497
+ // IE may throw if property is unknown.
3498
+ return false;
3499
+ }
3500
+
3501
+ return true;
3502
+ }
3503
+ /**
3504
+ * Remove a style property.
3505
+ */
3506
+
3507
+
3508
+ function removeProperty(cssRule, prop) {
3509
+ try {
3510
+ // Support CSSTOM.
3511
+ if (cssRule.attributeStyleMap) {
3512
+ cssRule.attributeStyleMap.delete(prop);
3513
+ } else {
3514
+ cssRule.style.removeProperty(prop);
3515
+ }
3516
+ } catch (err) {
3517
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] DOMException \"" + err.message + "\" was thrown. Tried to remove property \"" + prop + "\".") : void 0;
3518
+ }
3519
+ }
3520
+ /**
3521
+ * Set the selector.
3522
+ */
3523
+
3524
+
3525
+ function setSelector(cssRule, selectorText) {
3526
+ cssRule.selectorText = selectorText; // Return false if setter was not successful.
3527
+ // Currently works in chrome only.
3528
+
3529
+ return cssRule.selectorText === selectorText;
3530
+ }
3531
+ /**
3532
+ * Gets the `head` element upon the first call and caches it.
3533
+ * We assume it can't be null.
3534
+ */
3535
+
3536
+
3537
+ var getHead = memoize(function () {
3538
+ return document.querySelector('head');
3539
+ });
3540
+ /**
3541
+ * Find attached sheet with an index higher than the passed one.
3542
+ */
3543
+
3544
+ function findHigherSheet(registry, options) {
3545
+ for (var i = 0; i < registry.length; i++) {
3546
+ var sheet = registry[i];
3547
+
3548
+ if (sheet.attached && sheet.options.index > options.index && sheet.options.insertionPoint === options.insertionPoint) {
3549
+ return sheet;
3550
+ }
3551
+ }
3552
+
3553
+ return null;
3554
+ }
3555
+ /**
3556
+ * Find attached sheet with the highest index.
3557
+ */
3558
+
3559
+
3560
+ function findHighestSheet(registry, options) {
3561
+ for (var i = registry.length - 1; i >= 0; i--) {
3562
+ var sheet = registry[i];
3563
+
3564
+ if (sheet.attached && sheet.options.insertionPoint === options.insertionPoint) {
3565
+ return sheet;
3566
+ }
3567
+ }
3568
+
3569
+ return null;
3570
+ }
3571
+ /**
3572
+ * Find a comment with "jss" inside.
3573
+ */
3574
+
3575
+
3576
+ function findCommentNode(text) {
3577
+ var head = getHead();
3578
+
3579
+ for (var i = 0; i < head.childNodes.length; i++) {
3580
+ var node = head.childNodes[i];
3581
+
3582
+ if (node.nodeType === 8 && node.nodeValue.trim() === text) {
3583
+ return node;
3584
+ }
3585
+ }
3586
+
3587
+ return null;
3588
+ }
3589
+
3590
+ /**
3591
+ * Find a node before which we can insert the sheet.
3592
+ */
3593
+ function findPrevNode(options) {
3594
+ var registry = sheets.registry;
3595
+
3596
+ if (registry.length > 0) {
3597
+ // Try to insert before the next higher sheet.
3598
+ var sheet = findHigherSheet(registry, options);
3599
+
3600
+ if (sheet && sheet.renderer) {
3601
+ return {
3602
+ parent: sheet.renderer.element.parentNode,
3603
+ node: sheet.renderer.element
3604
+ };
3605
+ } // Otherwise insert after the last attached.
3606
+
3607
+
3608
+ sheet = findHighestSheet(registry, options);
3609
+
3610
+ if (sheet && sheet.renderer) {
3611
+ return {
3612
+ parent: sheet.renderer.element.parentNode,
3613
+ node: sheet.renderer.element.nextSibling
3614
+ };
3615
+ }
3616
+ } // Try to find a comment placeholder if registry is empty.
3617
+
3618
+
3619
+ var insertionPoint = options.insertionPoint;
3620
+
3621
+ if (insertionPoint && typeof insertionPoint === 'string') {
3622
+ var comment = findCommentNode(insertionPoint);
3623
+
3624
+ if (comment) {
3625
+ return {
3626
+ parent: comment.parentNode,
3627
+ node: comment.nextSibling
3628
+ };
3629
+ } // If user specifies an insertion point and it can't be found in the document -
3630
+ // bad specificity issues may appear.
3631
+
3632
+
3633
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Insertion point \"" + insertionPoint + "\" not found.") : void 0;
3634
+ }
3635
+
3636
+ return false;
3637
+ }
3638
+ /**
3639
+ * Insert style element into the DOM.
3640
+ */
3641
+
3642
+
3643
+ function insertStyle(style, options) {
3644
+ var insertionPoint = options.insertionPoint;
3645
+ var nextNode = findPrevNode(options);
3646
+
3647
+ if (nextNode !== false && nextNode.parent) {
3648
+ nextNode.parent.insertBefore(style, nextNode.node);
3649
+ return;
3650
+ } // Works with iframes and any node types.
3651
+
3652
+
3653
+ if (insertionPoint && typeof insertionPoint.nodeType === 'number') {
3654
+ // https://stackoverflow.com/questions/41328728/force-casting-in-flow
3655
+ var insertionPointElement = insertionPoint;
3656
+ var parentNode = insertionPointElement.parentNode;
3657
+ if (parentNode) parentNode.insertBefore(style, insertionPointElement.nextSibling);else process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, '[JSS] Insertion point is not in the DOM.') : void 0;
3658
+ return;
3659
+ }
3660
+
3661
+ getHead().appendChild(style);
3662
+ }
3663
+ /**
3664
+ * Read jss nonce setting from the page if the user has set it.
3665
+ */
3666
+
3667
+
3668
+ var getNonce = memoize(function () {
3669
+ var node = document.querySelector('meta[property="csp-nonce"]');
3670
+ return node ? node.getAttribute('content') : null;
3671
+ });
3672
+
3673
+ var _insertRule = function insertRule(container, rule, index) {
3674
+ var maxIndex = container.cssRules.length; // In case previous insertion fails, passed index might be wrong
3675
+
3676
+ if (index === undefined || index > maxIndex) {
3677
+ // eslint-disable-next-line no-param-reassign
3678
+ index = maxIndex;
3679
+ }
3680
+
3681
+ try {
3682
+ if ('insertRule' in container) {
3683
+ var c = container;
3684
+ c.insertRule(rule, index);
3685
+ } // Keyframes rule.
3686
+ else if ('appendRule' in container) {
3687
+ var _c = container;
3688
+
3689
+ _c.appendRule(rule);
3690
+ }
3691
+ } catch (err) {
3692
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] " + err.message) : void 0;
3693
+ return false;
3694
+ }
3695
+
3696
+ return container.cssRules[index];
3697
+ };
3698
+
3699
+ var createStyle = function createStyle() {
3700
+ var el = document.createElement('style'); // Without it, IE will have a broken source order specificity if we
3701
+ // insert rules after we insert the style tag.
3702
+ // It seems to kick-off the source order specificity algorithm.
3703
+
3704
+ el.textContent = '\n';
3705
+ return el;
3706
+ };
3707
+
3708
+ var DomRenderer =
3709
+ /*#__PURE__*/
3710
+ function () {
3711
+ // HTMLStyleElement needs fixing https://github.com/facebook/flow/issues/2696
3712
+ function DomRenderer(sheet) {
3713
+ this.getPropertyValue = getPropertyValue;
3714
+ this.setProperty = setProperty;
3715
+ this.removeProperty = removeProperty;
3716
+ this.setSelector = setSelector;
3717
+ this.element = void 0;
3718
+ this.sheet = void 0;
3719
+ this.hasInsertedRules = false;
3720
+ // There is no sheet when the renderer is used from a standalone StyleRule.
3721
+ if (sheet) sheets.add(sheet);
3722
+ this.sheet = sheet;
3723
+
3724
+ var _ref = this.sheet ? this.sheet.options : {},
3725
+ media = _ref.media,
3726
+ meta = _ref.meta,
3727
+ element = _ref.element;
3728
+
3729
+ this.element = element || createStyle();
3730
+ this.element.setAttribute('data-jss', '');
3731
+ if (media) this.element.setAttribute('media', media);
3732
+ if (meta) this.element.setAttribute('data-meta', meta);
3733
+ var nonce = getNonce();
3734
+ if (nonce) this.element.setAttribute('nonce', nonce);
3735
+ }
3736
+ /**
3737
+ * Insert style element into render tree.
3738
+ */
3739
+
3740
+
3741
+ var _proto = DomRenderer.prototype;
3742
+
3743
+ _proto.attach = function attach() {
3744
+ // In the case the element node is external and it is already in the DOM.
3745
+ if (this.element.parentNode || !this.sheet) return;
3746
+ insertStyle(this.element, this.sheet.options); // When rules are inserted using `insertRule` API, after `sheet.detach().attach()`
3747
+ // most browsers create a new CSSStyleSheet, except of all IEs.
3748
+
3749
+ var deployed = Boolean(this.sheet && this.sheet.deployed);
3750
+
3751
+ if (this.hasInsertedRules && deployed) {
3752
+ this.hasInsertedRules = false;
3753
+ this.deploy();
3754
+ }
3755
+ }
3756
+ /**
3757
+ * Remove style element from render tree.
3758
+ */
3759
+ ;
3760
+
3761
+ _proto.detach = function detach() {
3762
+ var parentNode = this.element.parentNode;
3763
+ if (parentNode) parentNode.removeChild(this.element);
3764
+ }
3765
+ /**
3766
+ * Inject CSS string into element.
3767
+ */
3768
+ ;
3769
+
3770
+ _proto.deploy = function deploy() {
3771
+ var sheet = this.sheet;
3772
+ if (!sheet) return;
3773
+
3774
+ if (sheet.options.link) {
3775
+ this.insertRules(sheet.rules);
3776
+ return;
3777
+ }
3778
+
3779
+ this.element.textContent = "\n" + sheet.toString() + "\n";
3780
+ }
3781
+ /**
3782
+ * Insert RuleList into an element.
3783
+ */
3784
+ ;
3785
+
3786
+ _proto.insertRules = function insertRules(rules, nativeParent) {
3787
+ for (var i = 0; i < rules.index.length; i++) {
3788
+ this.insertRule(rules.index[i], i, nativeParent);
3789
+ }
3790
+ }
3791
+ /**
3792
+ * Insert a rule into element.
3793
+ */
3794
+ ;
3795
+
3796
+ _proto.insertRule = function insertRule(rule, index, nativeParent) {
3797
+ if (nativeParent === void 0) {
3798
+ nativeParent = this.element.sheet;
3799
+ }
3800
+
3801
+ if (rule.rules) {
3802
+ var parent = rule;
3803
+ var latestNativeParent = nativeParent;
3804
+
3805
+ if (rule.type === 'conditional' || rule.type === 'keyframes') {
3806
+ // We need to render the container without children first.
3807
+ latestNativeParent = _insertRule(nativeParent, parent.toString({
3808
+ children: false
3809
+ }), index);
3810
+
3811
+ if (latestNativeParent === false) {
3812
+ return false;
3813
+ }
3814
+ }
3815
+
3816
+ this.insertRules(parent.rules, latestNativeParent);
3817
+ return latestNativeParent;
3818
+ } // IE keeps the CSSStyleSheet after style node has been reattached,
3819
+ // so we need to check if the `renderable` reference the right style sheet and not
3820
+ // rerender those rules.
3821
+
3822
+
3823
+ if (rule.renderable && rule.renderable.parentStyleSheet === this.element.sheet) {
3824
+ return rule.renderable;
3825
+ }
3826
+
3827
+ var ruleStr = rule.toString();
3828
+ if (!ruleStr) return false;
3829
+
3830
+ var nativeRule = _insertRule(nativeParent, ruleStr, index);
3831
+
3832
+ if (nativeRule === false) {
3833
+ return false;
3834
+ }
3835
+
3836
+ this.hasInsertedRules = true;
3837
+ rule.renderable = nativeRule;
3838
+ return nativeRule;
3839
+ }
3840
+ /**
3841
+ * Delete a rule.
3842
+ */
3843
+ ;
3844
+
3845
+ _proto.deleteRule = function deleteRule(cssRule) {
3846
+ var sheet = this.element.sheet;
3847
+ var index = this.indexOf(cssRule);
3848
+ if (index === -1) return false;
3849
+ sheet.deleteRule(index);
3850
+ return true;
3851
+ }
3852
+ /**
3853
+ * Get index of a CSS Rule.
3854
+ */
3855
+ ;
3856
+
3857
+ _proto.indexOf = function indexOf(cssRule) {
3858
+ var cssRules = this.element.sheet.cssRules;
3859
+
3860
+ for (var index = 0; index < cssRules.length; index++) {
3861
+ if (cssRule === cssRules[index]) return index;
3862
+ }
3863
+
3864
+ return -1;
3865
+ }
3866
+ /**
3867
+ * Generate a new CSS rule and replace the existing one.
3868
+ *
3869
+ * Only used for some old browsers because they can't set a selector.
3870
+ */
3871
+ ;
3872
+
3873
+ _proto.replaceRule = function replaceRule(cssRule, rule) {
3874
+ var index = this.indexOf(cssRule);
3875
+ if (index === -1) return false;
3876
+ this.element.sheet.deleteRule(index);
3877
+ return this.insertRule(rule, index);
3878
+ }
3879
+ /**
3880
+ * Get all rules elements.
3881
+ */
3882
+ ;
3883
+
3884
+ _proto.getRules = function getRules() {
3885
+ return this.element.sheet.cssRules;
3886
+ };
3887
+
3888
+ return DomRenderer;
3889
+ }();
3890
+
3891
+ var instanceCounter = 0;
3892
+
3893
+ var Jss =
3894
+ /*#__PURE__*/
3895
+ function () {
3896
+ function Jss(options) {
3897
+ this.id = instanceCounter++;
3898
+ this.version = "10.1.1";
3899
+ this.plugins = new PluginsRegistry();
3900
+ this.options = {
3901
+ id: {
3902
+ minify: false
3903
+ },
3904
+ createGenerateId: createGenerateId,
3905
+ Renderer: __WEBPACK_IMPORTED_MODULE_1_is_in_browser__["a" /* default */] ? DomRenderer : null,
3906
+ plugins: []
3907
+ };
3908
+ this.generateId = createGenerateId({
3909
+ minify: false
3910
+ });
3911
+
3912
+ for (var i = 0; i < plugins.length; i++) {
3913
+ this.plugins.use(plugins[i], {
3914
+ queue: 'internal'
3915
+ });
3916
+ }
3917
+
3918
+ this.setup(options);
3919
+ }
3920
+ /**
3921
+ * Prepares various options, applies plugins.
3922
+ * Should not be used twice on the same instance, because there is no plugins
3923
+ * deduplication logic.
3924
+ */
3925
+
3926
+
3927
+ var _proto = Jss.prototype;
3928
+
3929
+ _proto.setup = function setup(options) {
3930
+ if (options === void 0) {
3931
+ options = {};
3932
+ }
3933
+
3934
+ if (options.createGenerateId) {
3935
+ this.options.createGenerateId = options.createGenerateId;
3936
+ }
3937
+
3938
+ if (options.id) {
3939
+ this.options.id = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, this.options.id, options.id);
3940
+ }
3941
+
3942
+ if (options.createGenerateId || options.id) {
3943
+ this.generateId = this.options.createGenerateId(this.options.id);
3944
+ }
3945
+
3946
+ if (options.insertionPoint != null) this.options.insertionPoint = options.insertionPoint;
3947
+
3948
+ if ('Renderer' in options) {
3949
+ this.options.Renderer = options.Renderer;
3950
+ } // eslint-disable-next-line prefer-spread
3951
+
3952
+
3953
+ if (options.plugins) this.use.apply(this, options.plugins);
3954
+ return this;
3955
+ }
3956
+ /**
3957
+ * Create a Style Sheet.
3958
+ */
3959
+ ;
3960
+
3961
+ _proto.createStyleSheet = function createStyleSheet(styles, options) {
3962
+ if (options === void 0) {
3963
+ options = {};
3964
+ }
3965
+
3966
+ var _options = options,
3967
+ index = _options.index;
3968
+
3969
+ if (typeof index !== 'number') {
3970
+ index = sheets.index === 0 ? 0 : sheets.index + 1;
3971
+ }
3972
+
3973
+ var sheet = new StyleSheet(styles, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
3974
+ jss: this,
3975
+ generateId: options.generateId || this.generateId,
3976
+ insertionPoint: this.options.insertionPoint,
3977
+ Renderer: this.options.Renderer,
3978
+ index: index
3979
+ }));
3980
+ this.plugins.onProcessSheet(sheet);
3981
+ return sheet;
3982
+ }
3983
+ /**
3984
+ * Detach the Style Sheet and remove it from the registry.
3985
+ */
3986
+ ;
3987
+
3988
+ _proto.removeStyleSheet = function removeStyleSheet(sheet) {
3989
+ sheet.detach();
3990
+ sheets.remove(sheet);
3991
+ return this;
3992
+ }
3993
+ /**
3994
+ * Create a rule without a Style Sheet.
3995
+ * [Deprecated] will be removed in the next major version.
3996
+ */
3997
+ ;
3998
+
3999
+ _proto.createRule = function createRule$$1(name, style, options) {
4000
+ if (style === void 0) {
4001
+ style = {};
4002
+ }
4003
+
4004
+ if (options === void 0) {
4005
+ options = {};
4006
+ }
4007
+
4008
+ // Enable rule without name for inline styles.
4009
+ if (typeof name === 'object') {
4010
+ return this.createRule(undefined, name, style);
4011
+ }
4012
+
4013
+ var ruleOptions = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
4014
+ name: name,
4015
+ jss: this,
4016
+ Renderer: this.options.Renderer
4017
+ });
4018
+
4019
+ if (!ruleOptions.generateId) ruleOptions.generateId = this.generateId;
4020
+ if (!ruleOptions.classes) ruleOptions.classes = {};
4021
+ if (!ruleOptions.keyframes) ruleOptions.keyframes = {};
4022
+
4023
+ var rule = createRule(name, style, ruleOptions);
4024
+
4025
+ if (rule) this.plugins.onProcessRule(rule);
4026
+ return rule;
4027
+ }
4028
+ /**
4029
+ * Register plugin. Passed function will be invoked with a rule instance.
4030
+ */
4031
+ ;
4032
+
4033
+ _proto.use = function use() {
4034
+ var _this = this;
4035
+
4036
+ for (var _len = arguments.length, plugins$$1 = new Array(_len), _key = 0; _key < _len; _key++) {
4037
+ plugins$$1[_key] = arguments[_key];
4038
+ }
4039
+
4040
+ plugins$$1.forEach(function (plugin) {
4041
+ _this.plugins.use(plugin);
4042
+ });
4043
+ return this;
4044
+ };
4045
+
4046
+ return Jss;
4047
+ }();
4048
+
4049
+ /**
4050
+ * Extracts a styles object with only props that contain function values.
4051
+ */
4052
+ function getDynamicStyles(styles) {
4053
+ var to = null;
4054
+
4055
+ for (var key in styles) {
4056
+ var value = styles[key];
4057
+ var type = typeof value;
4058
+
4059
+ if (type === 'function') {
4060
+ if (!to) to = {};
4061
+ to[key] = value;
4062
+ } else if (type === 'object' && value !== null && !Array.isArray(value)) {
4063
+ var extracted = getDynamicStyles(value);
4064
+
4065
+ if (extracted) {
4066
+ if (!to) to = {};
4067
+ to[key] = extracted;
4068
+ }
4069
+ }
4070
+ }
4071
+
4072
+ return to;
4073
+ }
4074
+
4075
+ /**
4076
+ * SheetsManager is like a WeakMap which is designed to count StyleSheet
4077
+ * instances and attach/detach automatically.
4078
+ */
4079
+ var SheetsManager =
4080
+ /*#__PURE__*/
4081
+ function () {
4082
+ function SheetsManager() {
4083
+ this.length = 0;
4084
+ this.sheets = new WeakMap();
4085
+ }
4086
+
4087
+ var _proto = SheetsManager.prototype;
4088
+
4089
+ _proto.get = function get(key) {
4090
+ var entry = this.sheets.get(key);
4091
+ return entry && entry.sheet;
4092
+ };
4093
+
4094
+ _proto.add = function add(key, sheet) {
4095
+ if (this.sheets.has(key)) return;
4096
+ this.length++;
4097
+ this.sheets.set(key, {
4098
+ sheet: sheet,
4099
+ refs: 0
4100
+ });
4101
+ };
4102
+
4103
+ _proto.manage = function manage(key) {
4104
+ var entry = this.sheets.get(key);
4105
+
4106
+ if (entry) {
4107
+ if (entry.refs === 0) {
4108
+ entry.sheet.attach();
4109
+ }
4110
+
4111
+ entry.refs++;
4112
+ return entry.sheet;
4113
+ }
4114
+
4115
+ Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] SheetsManager: can't find sheet to manage");
4116
+ return undefined;
4117
+ };
4118
+
4119
+ _proto.unmanage = function unmanage(key) {
4120
+ var entry = this.sheets.get(key);
4121
+
4122
+ if (entry) {
4123
+ if (entry.refs > 0) {
4124
+ entry.refs--;
4125
+ if (entry.refs === 0) entry.sheet.detach();
4126
+ }
4127
+ } else {
4128
+ Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "SheetsManager: can't find sheet to unmanage");
4129
+ }
4130
+ };
4131
+
4132
+ Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_createClass__["a" /* default */])(SheetsManager, [{
4133
+ key: "size",
4134
+ get: function get() {
4135
+ return this.length;
4136
+ }
4137
+ }]);
4138
+
4139
+ return SheetsManager;
4140
+ }();
4141
+
4142
+ /**
4143
+ * A better abstraction over CSS.
4144
+ *
4145
+ * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
4146
+ * @website https://github.com/cssinjs/jss
4147
+ * @license MIT
4148
+ */
4149
+
4150
+ /**
4151
+ * Export a constant indicating if this browser has CSSTOM support.
4152
+ * https://developers.google.com/web/updates/2018/03/cssom
4153
+ */
4154
+ var hasCSSTOMSupport = typeof CSS !== 'undefined' && CSS && 'number' in CSS;
4155
+ /**
4156
+ * Creates a new instance of Jss.
4157
+ */
4158
+
4159
+ var create = function create(options) {
4160
+ return new Jss(options);
4161
+ };
4162
+ /**
4163
+ * A global Jss instance.
4164
+ */
4165
+
4166
+ var index = create();
4167
+
4168
+ /* unused harmony default export */ var _unused_webpack_default_export = (index);
4169
+
4170
+
4171
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
4172
+
4173
+ /***/ }),
4174
+ /* 38 */
4175
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4176
+
4177
+ "use strict";
4178
+ /* harmony export (immutable) */ __webpack_exports__["a"] = debounce;
4179
+ // Corresponds to 10 frames at 60 Hz.
4180
+ // A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B.
4181
+ function debounce(func) {
4182
+ var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 166;
4183
+ var timeout;
4184
+
4185
+ function debounced() {
4186
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
4187
+ args[_key] = arguments[_key];
4188
+ }
4189
+
4190
+ // eslint-disable-next-line consistent-this
4191
+ var that = this;
4192
+
4193
+ var later = function later() {
4194
+ func.apply(that, args);
4195
+ };
4196
+
4197
+ clearTimeout(timeout);
4198
+ timeout = setTimeout(later, wait);
4199
+ }
4200
+
4201
+ debounced.clear = function () {
4202
+ clearTimeout(timeout);
4203
+ };
4204
+
4205
+ return debounced;
4206
+ }
4207
+
4208
+ /***/ }),
4209
+ /* 39 */
4210
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4211
+
4212
+ "use strict";
4213
+ /* harmony export (immutable) */ __webpack_exports__["a"] = setRef;
4214
+ // TODO v5: consider to make it private
4215
+ function setRef(ref, value) {
4216
+ if (typeof ref === 'function') {
4217
+ ref(value);
4218
+ } else if (ref) {
4219
+ ref.current = value;
4220
+ }
4221
+ }
4222
+
4223
+ /***/ }),
4224
+ /* 40 */
4225
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4226
+
4227
+ "use strict";
4228
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = useControlled;
4229
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
4230
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
4231
+ /* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */
4232
+
4233
+ function useControlled(_ref) {
4234
+ var controlled = _ref.controlled,
4235
+ defaultProp = _ref.default,
4236
+ name = _ref.name,
4237
+ _ref$state = _ref.state,
4238
+ state = _ref$state === void 0 ? 'value' : _ref$state;
4239
+
4240
+ var _React$useRef = __WEBPACK_IMPORTED_MODULE_0_react__["useRef"](controlled !== undefined),
4241
+ isControlled = _React$useRef.current;
4242
+
4243
+ var _React$useState = __WEBPACK_IMPORTED_MODULE_0_react__["useState"](defaultProp),
4244
+ valueState = _React$useState[0],
4245
+ setValue = _React$useState[1];
4246
+
4247
+ var value = isControlled ? controlled : valueState;
4248
+
4249
+ if (process.env.NODE_ENV !== 'production') {
4250
+ __WEBPACK_IMPORTED_MODULE_0_react__["useEffect"](function () {
4251
+ if (isControlled !== (controlled !== undefined)) {
4252
+ console.error(["Material-UI: a component is changing the ".concat(isControlled ? '' : 'un', "controlled ").concat(state, " state of ").concat(name, " to be ").concat(isControlled ? 'un' : '', "controlled."), 'Elements should not switch from uncontrolled to controlled (or vice versa).', "Decide between using a controlled or uncontrolled ".concat(name, " ") + 'element for the lifetime of the component.', "The nature of the state is determined during the first render, it's considered controlled if the value is not `undefined`.", 'More info: https://fb.me/react-controlled-components'].join('\n'));
4253
+ }
4254
+ }, [controlled]);
4255
+
4256
+ var _React$useRef2 = __WEBPACK_IMPORTED_MODULE_0_react__["useRef"](defaultProp),
4257
+ defaultValue = _React$useRef2.current;
4258
+
4259
+ __WEBPACK_IMPORTED_MODULE_0_react__["useEffect"](function () {
4260
+ if (defaultValue !== defaultProp) {
4261
+ console.error(["Material-UI: a component is changing the default ".concat(state, " state of an uncontrolled ").concat(name, " after being initialized. ") + "To suppress this warning opt to use a controlled ".concat(name, ".")].join('\n'));
4262
+ }
4263
+ }, [JSON.stringify(defaultProp)]);
4264
+ }
4265
+
4266
+ var setValueIfUncontrolled = __WEBPACK_IMPORTED_MODULE_0_react__["useCallback"](function (newValue) {
4267
+ if (!isControlled) {
4268
+ setValue(newValue);
4269
+ }
4270
+ }, []);
4271
+ return [value, setValueIfUncontrolled];
4272
+ }
4273
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
4274
+
4275
+ /***/ }),
4276
+ /* 41 */
4277
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4278
+
4279
+ "use strict";
4280
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__IconButton__ = __webpack_require__(447);
4281
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__IconButton__["a"]; });
4282
+
4283
+
4284
+ /***/ }),
4285
+ /* 42 */
4286
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4287
+
4288
+ "use strict";
4289
+ /* harmony export (immutable) */ __webpack_exports__["a"] = useFormControl;
4290
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
4291
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
4292
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__FormControlContext__ = __webpack_require__(77);
4293
+
4294
+
4295
+ function useFormControl() {
4296
+ return __WEBPACK_IMPORTED_MODULE_0_react__["useContext"](__WEBPACK_IMPORTED_MODULE_1__FormControlContext__["a" /* default */]);
4297
+ }
4298
+
4299
+ /***/ }),
4300
+ /* 43 */
4301
+ /***/ (function(module, exports, __webpack_require__) {
4302
+
4303
+ "use strict";
4304
+ /*
4305
+ object-assign
4306
+ (c) Sindre Sorhus
4307
+ @license MIT
4308
+ */
4309
+
4310
+
4311
+ /* eslint-disable no-unused-vars */
4312
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
4313
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
4314
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
4315
+
4316
+ function toObject(val) {
4317
+ if (val === null || val === undefined) {
4318
+ throw new TypeError('Object.assign cannot be called with null or undefined');
4319
+ }
4320
+
4321
+ return Object(val);
4322
+ }
4323
+
4324
+ function shouldUseNative() {
4325
+ try {
4326
+ if (!Object.assign) {
4327
+ return false;
4328
+ }
4329
+
4330
+ // Detect buggy property enumeration order in older V8 versions.
4331
+
4332
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
4333
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
4334
+ test1[5] = 'de';
4335
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
4336
+ return false;
4337
+ }
4338
+
4339
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
4340
+ var test2 = {};
4341
+ for (var i = 0; i < 10; i++) {
4342
+ test2['_' + String.fromCharCode(i)] = i;
4343
+ }
4344
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
4345
+ return test2[n];
4346
+ });
4347
+ if (order2.join('') !== '0123456789') {
4348
+ return false;
4349
+ }
4350
+
4351
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
4352
+ var test3 = {};
4353
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
4354
+ test3[letter] = letter;
4355
+ });
4356
+ if (Object.keys(Object.assign({}, test3)).join('') !==
4357
+ 'abcdefghijklmnopqrst') {
4358
+ return false;
4359
+ }
4360
+
4361
+ return true;
4362
+ } catch (err) {
4363
+ // We don't expect any of the above to throw, but better to be safe.
4364
+ return false;
4365
+ }
4366
+ }
4367
+
4368
+ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
4369
+ var from;
4370
+ var to = toObject(target);
4371
+ var symbols;
4372
+
4373
+ for (var s = 1; s < arguments.length; s++) {
4374
+ from = Object(arguments[s]);
4375
+
4376
+ for (var key in from) {
4377
+ if (hasOwnProperty.call(from, key)) {
4378
+ to[key] = from[key];
4379
+ }
4380
+ }
4381
+
4382
+ if (getOwnPropertySymbols) {
4383
+ symbols = getOwnPropertySymbols(from);
4384
+ for (var i = 0; i < symbols.length; i++) {
4385
+ if (propIsEnumerable.call(from, symbols[i])) {
4386
+ to[symbols[i]] = from[symbols[i]];
4387
+ }
4388
+ }
4389
+ }
4390
+ }
4391
+
4392
+ return to;
4393
+ };
4394
+
4395
+
4396
+ /***/ }),
4397
+ /* 44 */
4398
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4399
+
4400
+ "use strict";
4401
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createBrowserHistory; });
4402
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return createHashHistory; });
4403
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return createMemoryHistory; });
4404
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return createLocation; });
4405
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return locationsAreEqual; });
4406
+ /* unused harmony export parsePath */
4407
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return createPath; });
4408
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
4409
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_resolve_pathname__ = __webpack_require__(313);
4410
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_value_equal__ = __webpack_require__(314);
4411
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_tiny_warning__ = __webpack_require__(64);
4412
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_tiny_invariant__ = __webpack_require__(315);
4413
+
4414
+
4415
+
4416
+
4417
+
4418
+
4419
+ function addLeadingSlash(path) {
4420
+ return path.charAt(0) === '/' ? path : '/' + path;
4421
+ }
4422
+ function stripLeadingSlash(path) {
4423
+ return path.charAt(0) === '/' ? path.substr(1) : path;
4424
+ }
4425
+ function hasBasename(path, prefix) {
4426
+ return path.toLowerCase().indexOf(prefix.toLowerCase()) === 0 && '/?#'.indexOf(path.charAt(prefix.length)) !== -1;
4427
+ }
4428
+ function stripBasename(path, prefix) {
4429
+ return hasBasename(path, prefix) ? path.substr(prefix.length) : path;
4430
+ }
4431
+ function stripTrailingSlash(path) {
4432
+ return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path;
4433
+ }
4434
+ function parsePath(path) {
4435
+ var pathname = path || '/';
4436
+ var search = '';
4437
+ var hash = '';
4438
+ var hashIndex = pathname.indexOf('#');
4439
+
4440
+ if (hashIndex !== -1) {
4441
+ hash = pathname.substr(hashIndex);
4442
+ pathname = pathname.substr(0, hashIndex);
4443
+ }
4444
+
4445
+ var searchIndex = pathname.indexOf('?');
4446
+
4447
+ if (searchIndex !== -1) {
4448
+ search = pathname.substr(searchIndex);
4449
+ pathname = pathname.substr(0, searchIndex);
4450
+ }
4451
+
4452
+ return {
4453
+ pathname: pathname,
4454
+ search: search === '?' ? '' : search,
4455
+ hash: hash === '#' ? '' : hash
4456
+ };
4457
+ }
4458
+ function createPath(location) {
4459
+ var pathname = location.pathname,
4460
+ search = location.search,
4461
+ hash = location.hash;
4462
+ var path = pathname || '/';
4463
+ if (search && search !== '?') path += search.charAt(0) === '?' ? search : "?" + search;
4464
+ if (hash && hash !== '#') path += hash.charAt(0) === '#' ? hash : "#" + hash;
4465
+ return path;
4466
+ }
4467
+
4468
+ function createLocation(path, state, key, currentLocation) {
4469
+ var location;
4470
+
4471
+ if (typeof path === 'string') {
4472
+ // Two-arg form: push(path, state)
4473
+ location = parsePath(path);
4474
+ location.state = state;
4475
+ } else {
4476
+ // One-arg form: push(location)
4477
+ location = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, path);
4478
+ if (location.pathname === undefined) location.pathname = '';
4479
+
4480
+ if (location.search) {
4481
+ if (location.search.charAt(0) !== '?') location.search = '?' + location.search;
4482
+ } else {
4483
+ location.search = '';
4484
+ }
4485
+
4486
+ if (location.hash) {
4487
+ if (location.hash.charAt(0) !== '#') location.hash = '#' + location.hash;
4488
+ } else {
4489
+ location.hash = '';
4490
+ }
4491
+
4492
+ if (state !== undefined && location.state === undefined) location.state = state;
4493
+ }
4494
+
4495
+ try {
4496
+ location.pathname = decodeURI(location.pathname);
4497
+ } catch (e) {
4498
+ if (e instanceof URIError) {
4499
+ throw new URIError('Pathname "' + location.pathname + '" could not be decoded. ' + 'This is likely caused by an invalid percent-encoding.');
4500
+ } else {
4501
+ throw e;
4502
+ }
4503
+ }
4504
+
4505
+ if (key) location.key = key;
4506
+
4507
+ if (currentLocation) {
4508
+ // Resolve incomplete/relative pathname relative to current location.
4509
+ if (!location.pathname) {
4510
+ location.pathname = currentLocation.pathname;
4511
+ } else if (location.pathname.charAt(0) !== '/') {
4512
+ location.pathname = Object(__WEBPACK_IMPORTED_MODULE_1_resolve_pathname__["a" /* default */])(location.pathname, currentLocation.pathname);
4513
+ }
4514
+ } else {
4515
+ // When there is no prior location and pathname is empty, set it to /
4516
+ if (!location.pathname) {
4517
+ location.pathname = '/';
4518
+ }
4519
+ }
4520
+
4521
+ return location;
4522
+ }
4523
+ function locationsAreEqual(a, b) {
4524
+ return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash && a.key === b.key && Object(__WEBPACK_IMPORTED_MODULE_2_value_equal__["a" /* default */])(a.state, b.state);
4525
+ }
4526
+
4527
+ function createTransitionManager() {
4528
+ var prompt = null;
4529
+
4530
+ function setPrompt(nextPrompt) {
4531
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(prompt == null, 'A history supports only one prompt at a time') : void 0;
4532
+ prompt = nextPrompt;
4533
+ return function () {
4534
+ if (prompt === nextPrompt) prompt = null;
4535
+ };
4536
+ }
4537
+
4538
+ function confirmTransitionTo(location, action, getUserConfirmation, callback) {
4539
+ // TODO: If another transition starts while we're still confirming
4540
+ // the previous one, we may end up in a weird state. Figure out the
4541
+ // best way to handle this.
4542
+ if (prompt != null) {
4543
+ var result = typeof prompt === 'function' ? prompt(location, action) : prompt;
4544
+
4545
+ if (typeof result === 'string') {
4546
+ if (typeof getUserConfirmation === 'function') {
4547
+ getUserConfirmation(result, callback);
4548
+ } else {
4549
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(false, 'A history needs a getUserConfirmation function in order to use a prompt message') : void 0;
4550
+ callback(true);
4551
+ }
4552
+ } else {
4553
+ // Return false from a transition hook to cancel the transition.
4554
+ callback(result !== false);
4555
+ }
4556
+ } else {
4557
+ callback(true);
4558
+ }
4559
+ }
4560
+
4561
+ var listeners = [];
4562
+
4563
+ function appendListener(fn) {
4564
+ var isActive = true;
4565
+
4566
+ function listener() {
4567
+ if (isActive) fn.apply(void 0, arguments);
4568
+ }
4569
+
4570
+ listeners.push(listener);
4571
+ return function () {
4572
+ isActive = false;
4573
+ listeners = listeners.filter(function (item) {
4574
+ return item !== listener;
4575
+ });
4576
+ };
4577
+ }
4578
+
4579
+ function notifyListeners() {
4580
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
4581
+ args[_key] = arguments[_key];
4582
+ }
4583
+
4584
+ listeners.forEach(function (listener) {
4585
+ return listener.apply(void 0, args);
4586
+ });
4587
+ }
4588
+
4589
+ return {
4590
+ setPrompt: setPrompt,
4591
+ confirmTransitionTo: confirmTransitionTo,
4592
+ appendListener: appendListener,
4593
+ notifyListeners: notifyListeners
4594
+ };
4595
+ }
4596
+
4597
+ var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
4598
+ function getConfirmation(message, callback) {
4599
+ callback(window.confirm(message)); // eslint-disable-line no-alert
4600
+ }
4601
+ /**
4602
+ * Returns true if the HTML5 history API is supported. Taken from Modernizr.
4603
+ *
4604
+ * https://github.com/Modernizr/Modernizr/blob/master/LICENSE
4605
+ * https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js
4606
+ * changed to avoid false negatives for Windows Phones: https://github.com/reactjs/react-router/issues/586
4607
+ */
4608
+
4609
+ function supportsHistory() {
4610
+ var ua = window.navigator.userAgent;
4611
+ if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) && ua.indexOf('Mobile Safari') !== -1 && ua.indexOf('Chrome') === -1 && ua.indexOf('Windows Phone') === -1) return false;
4612
+ return window.history && 'pushState' in window.history;
4613
+ }
4614
+ /**
4615
+ * Returns true if browser fires popstate on hash change.
4616
+ * IE10 and IE11 do not.
4617
+ */
4618
+
4619
+ function supportsPopStateOnHashChange() {
4620
+ return window.navigator.userAgent.indexOf('Trident') === -1;
4621
+ }
4622
+ /**
4623
+ * Returns false if using go(n) with hash history causes a full page reload.
4624
+ */
4625
+
4626
+ function supportsGoWithoutReloadUsingHash() {
4627
+ return window.navigator.userAgent.indexOf('Firefox') === -1;
4628
+ }
4629
+ /**
4630
+ * Returns true if a given popstate event is an extraneous WebKit event.
4631
+ * Accounts for the fact that Chrome on iOS fires real popstate events
4632
+ * containing undefined state when pressing the back button.
4633
+ */
4634
+
4635
+ function isExtraneousPopstateEvent(event) {
4636
+ return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1;
4637
+ }
4638
+
4639
+ var PopStateEvent = 'popstate';
4640
+ var HashChangeEvent = 'hashchange';
4641
+
4642
+ function getHistoryState() {
4643
+ try {
4644
+ return window.history.state || {};
4645
+ } catch (e) {
4646
+ // IE 11 sometimes throws when accessing window.history.state
4647
+ // See https://github.com/ReactTraining/history/pull/289
4648
+ return {};
4649
+ }
4650
+ }
4651
+ /**
4652
+ * Creates a history object that uses the HTML5 history API including
4653
+ * pushState, replaceState, and the popstate event.
4654
+ */
4655
+
4656
+
4657
+ function createBrowserHistory(props) {
4658
+ if (props === void 0) {
4659
+ props = {};
4660
+ }
4661
+
4662
+ !canUseDOM ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_invariant__["a" /* default */])(false, 'Browser history needs a DOM') : Object(__WEBPACK_IMPORTED_MODULE_4_tiny_invariant__["a" /* default */])(false) : void 0;
4663
+ var globalHistory = window.history;
4664
+ var canUseHistory = supportsHistory();
4665
+ var needsHashChangeListener = !supportsPopStateOnHashChange();
4666
+ var _props = props,
4667
+ _props$forceRefresh = _props.forceRefresh,
4668
+ forceRefresh = _props$forceRefresh === void 0 ? false : _props$forceRefresh,
4669
+ _props$getUserConfirm = _props.getUserConfirmation,
4670
+ getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,
4671
+ _props$keyLength = _props.keyLength,
4672
+ keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
4673
+ var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';
4674
+
4675
+ function getDOMLocation(historyState) {
4676
+ var _ref = historyState || {},
4677
+ key = _ref.key,
4678
+ state = _ref.state;
4679
+
4680
+ var _window$location = window.location,
4681
+ pathname = _window$location.pathname,
4682
+ search = _window$location.search,
4683
+ hash = _window$location.hash;
4684
+ var path = pathname + search + hash;
4685
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(!basename || hasBasename(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path "' + path + '" to begin with "' + basename + '".') : void 0;
4686
+ if (basename) path = stripBasename(path, basename);
4687
+ return createLocation(path, state, key);
4688
+ }
4689
+
4690
+ function createKey() {
4691
+ return Math.random().toString(36).substr(2, keyLength);
4692
+ }
4693
+
4694
+ var transitionManager = createTransitionManager();
4695
+
4696
+ function setState(nextState) {
4697
+ Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])(history, nextState);
4698
+
4699
+ history.length = globalHistory.length;
4700
+ transitionManager.notifyListeners(history.location, history.action);
4701
+ }
4702
+
4703
+ function handlePopState(event) {
4704
+ // Ignore extraneous popstate events in WebKit.
4705
+ if (isExtraneousPopstateEvent(event)) return;
4706
+ handlePop(getDOMLocation(event.state));
4707
+ }
4708
+
4709
+ function handleHashChange() {
4710
+ handlePop(getDOMLocation(getHistoryState()));
4711
+ }
4712
+
4713
+ var forceNextPop = false;
4714
+
4715
+ function handlePop(location) {
4716
+ if (forceNextPop) {
4717
+ forceNextPop = false;
4718
+ setState();
4719
+ } else {
4720
+ var action = 'POP';
4721
+ transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
4722
+ if (ok) {
4723
+ setState({
4724
+ action: action,
4725
+ location: location
4726
+ });
4727
+ } else {
4728
+ revertPop(location);
4729
+ }
4730
+ });
4731
+ }
4732
+ }
4733
+
4734
+ function revertPop(fromLocation) {
4735
+ var toLocation = history.location; // TODO: We could probably make this more reliable by
4736
+ // keeping a list of keys we've seen in sessionStorage.
4737
+ // Instead, we just default to 0 for keys we don't know.
4738
+
4739
+ var toIndex = allKeys.indexOf(toLocation.key);
4740
+ if (toIndex === -1) toIndex = 0;
4741
+ var fromIndex = allKeys.indexOf(fromLocation.key);
4742
+ if (fromIndex === -1) fromIndex = 0;
4743
+ var delta = toIndex - fromIndex;
4744
+
4745
+ if (delta) {
4746
+ forceNextPop = true;
4747
+ go(delta);
4748
+ }
4749
+ }
4750
+
4751
+ var initialLocation = getDOMLocation(getHistoryState());
4752
+ var allKeys = [initialLocation.key]; // Public interface
4753
+
4754
+ function createHref(location) {
4755
+ return basename + createPath(location);
4756
+ }
4757
+
4758
+ function push(path, state) {
4759
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;
4760
+ var action = 'PUSH';
4761
+ var location = createLocation(path, state, createKey(), history.location);
4762
+ transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
4763
+ if (!ok) return;
4764
+ var href = createHref(location);
4765
+ var key = location.key,
4766
+ state = location.state;
4767
+
4768
+ if (canUseHistory) {
4769
+ globalHistory.pushState({
4770
+ key: key,
4771
+ state: state
4772
+ }, null, href);
4773
+
4774
+ if (forceRefresh) {
4775
+ window.location.href = href;
4776
+ } else {
4777
+ var prevIndex = allKeys.indexOf(history.location.key);
4778
+ var nextKeys = allKeys.slice(0, prevIndex + 1);
4779
+ nextKeys.push(location.key);
4780
+ allKeys = nextKeys;
4781
+ setState({
4782
+ action: action,
4783
+ location: location
4784
+ });
4785
+ }
4786
+ } else {
4787
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(state === undefined, 'Browser history cannot push state in browsers that do not support HTML5 history') : void 0;
4788
+ window.location.href = href;
4789
+ }
4790
+ });
4791
+ }
4792
+
4793
+ function replace(path, state) {
4794
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;
4795
+ var action = 'REPLACE';
4796
+ var location = createLocation(path, state, createKey(), history.location);
4797
+ transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
4798
+ if (!ok) return;
4799
+ var href = createHref(location);
4800
+ var key = location.key,
4801
+ state = location.state;
4802
+
4803
+ if (canUseHistory) {
4804
+ globalHistory.replaceState({
4805
+ key: key,
4806
+ state: state
4807
+ }, null, href);
4808
+
4809
+ if (forceRefresh) {
4810
+ window.location.replace(href);
4811
+ } else {
4812
+ var prevIndex = allKeys.indexOf(history.location.key);
4813
+ if (prevIndex !== -1) allKeys[prevIndex] = location.key;
4814
+ setState({
4815
+ action: action,
4816
+ location: location
4817
+ });
4818
+ }
4819
+ } else {
4820
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(state === undefined, 'Browser history cannot replace state in browsers that do not support HTML5 history') : void 0;
4821
+ window.location.replace(href);
4822
+ }
4823
+ });
4824
+ }
4825
+
4826
+ function go(n) {
4827
+ globalHistory.go(n);
4828
+ }
4829
+
4830
+ function goBack() {
4831
+ go(-1);
4832
+ }
4833
+
4834
+ function goForward() {
4835
+ go(1);
4836
+ }
4837
+
4838
+ var listenerCount = 0;
4839
+
4840
+ function checkDOMListeners(delta) {
4841
+ listenerCount += delta;
4842
+
4843
+ if (listenerCount === 1 && delta === 1) {
4844
+ window.addEventListener(PopStateEvent, handlePopState);
4845
+ if (needsHashChangeListener) window.addEventListener(HashChangeEvent, handleHashChange);
4846
+ } else if (listenerCount === 0) {
4847
+ window.removeEventListener(PopStateEvent, handlePopState);
4848
+ if (needsHashChangeListener) window.removeEventListener(HashChangeEvent, handleHashChange);
4849
+ }
4850
+ }
4851
+
4852
+ var isBlocked = false;
4853
+
4854
+ function block(prompt) {
4855
+ if (prompt === void 0) {
4856
+ prompt = false;
4857
+ }
4858
+
4859
+ var unblock = transitionManager.setPrompt(prompt);
4860
+
4861
+ if (!isBlocked) {
4862
+ checkDOMListeners(1);
4863
+ isBlocked = true;
4864
+ }
4865
+
4866
+ return function () {
4867
+ if (isBlocked) {
4868
+ isBlocked = false;
4869
+ checkDOMListeners(-1);
4870
+ }
4871
+
4872
+ return unblock();
4873
+ };
4874
+ }
4875
+
4876
+ function listen(listener) {
4877
+ var unlisten = transitionManager.appendListener(listener);
4878
+ checkDOMListeners(1);
4879
+ return function () {
4880
+ checkDOMListeners(-1);
4881
+ unlisten();
4882
+ };
4883
+ }
4884
+
4885
+ var history = {
4886
+ length: globalHistory.length,
4887
+ action: 'POP',
4888
+ location: initialLocation,
4889
+ createHref: createHref,
4890
+ push: push,
4891
+ replace: replace,
4892
+ go: go,
4893
+ goBack: goBack,
4894
+ goForward: goForward,
4895
+ block: block,
4896
+ listen: listen
4897
+ };
4898
+ return history;
4899
+ }
4900
+
4901
+ var HashChangeEvent$1 = 'hashchange';
4902
+ var HashPathCoders = {
4903
+ hashbang: {
4904
+ encodePath: function encodePath(path) {
4905
+ return path.charAt(0) === '!' ? path : '!/' + stripLeadingSlash(path);
4906
+ },
4907
+ decodePath: function decodePath(path) {
4908
+ return path.charAt(0) === '!' ? path.substr(1) : path;
4909
+ }
4910
+ },
4911
+ noslash: {
4912
+ encodePath: stripLeadingSlash,
4913
+ decodePath: addLeadingSlash
4914
+ },
4915
+ slash: {
4916
+ encodePath: addLeadingSlash,
4917
+ decodePath: addLeadingSlash
4918
+ }
4919
+ };
4920
+
4921
+ function stripHash(url) {
4922
+ var hashIndex = url.indexOf('#');
4923
+ return hashIndex === -1 ? url : url.slice(0, hashIndex);
4924
+ }
4925
+
4926
+ function getHashPath() {
4927
+ // We can't use window.location.hash here because it's not
4928
+ // consistent across browsers - Firefox will pre-decode it!
4929
+ var href = window.location.href;
4930
+ var hashIndex = href.indexOf('#');
4931
+ return hashIndex === -1 ? '' : href.substring(hashIndex + 1);
4932
+ }
4933
+
4934
+ function pushHashPath(path) {
4935
+ window.location.hash = path;
4936
+ }
4937
+
4938
+ function replaceHashPath(path) {
4939
+ window.location.replace(stripHash(window.location.href) + '#' + path);
4940
+ }
4941
+
4942
+ function createHashHistory(props) {
4943
+ if (props === void 0) {
4944
+ props = {};
4945
+ }
4946
+
4947
+ !canUseDOM ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_invariant__["a" /* default */])(false, 'Hash history needs a DOM') : Object(__WEBPACK_IMPORTED_MODULE_4_tiny_invariant__["a" /* default */])(false) : void 0;
4948
+ var globalHistory = window.history;
4949
+ var canGoWithoutReload = supportsGoWithoutReloadUsingHash();
4950
+ var _props = props,
4951
+ _props$getUserConfirm = _props.getUserConfirmation,
4952
+ getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,
4953
+ _props$hashType = _props.hashType,
4954
+ hashType = _props$hashType === void 0 ? 'slash' : _props$hashType;
4955
+ var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';
4956
+ var _HashPathCoders$hashT = HashPathCoders[hashType],
4957
+ encodePath = _HashPathCoders$hashT.encodePath,
4958
+ decodePath = _HashPathCoders$hashT.decodePath;
4959
+
4960
+ function getDOMLocation() {
4961
+ var path = decodePath(getHashPath());
4962
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(!basename || hasBasename(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path "' + path + '" to begin with "' + basename + '".') : void 0;
4963
+ if (basename) path = stripBasename(path, basename);
4964
+ return createLocation(path);
4965
+ }
4966
+
4967
+ var transitionManager = createTransitionManager();
4968
+
4969
+ function setState(nextState) {
4970
+ Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])(history, nextState);
4971
+
4972
+ history.length = globalHistory.length;
4973
+ transitionManager.notifyListeners(history.location, history.action);
4974
+ }
4975
+
4976
+ var forceNextPop = false;
4977
+ var ignorePath = null;
4978
+
4979
+ function locationsAreEqual$$1(a, b) {
4980
+ return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash;
4981
+ }
4982
+
4983
+ function handleHashChange() {
4984
+ var path = getHashPath();
4985
+ var encodedPath = encodePath(path);
4986
+
4987
+ if (path !== encodedPath) {
4988
+ // Ensure we always have a properly-encoded hash.
4989
+ replaceHashPath(encodedPath);
4990
+ } else {
4991
+ var location = getDOMLocation();
4992
+ var prevLocation = history.location;
4993
+ if (!forceNextPop && locationsAreEqual$$1(prevLocation, location)) return; // A hashchange doesn't always == location change.
4994
+
4995
+ if (ignorePath === createPath(location)) return; // Ignore this change; we already setState in push/replace.
4996
+
4997
+ ignorePath = null;
4998
+ handlePop(location);
4999
+ }
5000
+ }
5001
+
5002
+ function handlePop(location) {
5003
+ if (forceNextPop) {
5004
+ forceNextPop = false;
5005
+ setState();
5006
+ } else {
5007
+ var action = 'POP';
5008
+ transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
5009
+ if (ok) {
5010
+ setState({
5011
+ action: action,
5012
+ location: location
5013
+ });
5014
+ } else {
5015
+ revertPop(location);
5016
+ }
5017
+ });
5018
+ }
5019
+ }
5020
+
5021
+ function revertPop(fromLocation) {
5022
+ var toLocation = history.location; // TODO: We could probably make this more reliable by
5023
+ // keeping a list of paths we've seen in sessionStorage.
5024
+ // Instead, we just default to 0 for paths we don't know.
5025
+
5026
+ var toIndex = allPaths.lastIndexOf(createPath(toLocation));
5027
+ if (toIndex === -1) toIndex = 0;
5028
+ var fromIndex = allPaths.lastIndexOf(createPath(fromLocation));
5029
+ if (fromIndex === -1) fromIndex = 0;
5030
+ var delta = toIndex - fromIndex;
5031
+
5032
+ if (delta) {
5033
+ forceNextPop = true;
5034
+ go(delta);
5035
+ }
5036
+ } // Ensure the hash is encoded properly before doing anything else.
5037
+
5038
+
5039
+ var path = getHashPath();
5040
+ var encodedPath = encodePath(path);
5041
+ if (path !== encodedPath) replaceHashPath(encodedPath);
5042
+ var initialLocation = getDOMLocation();
5043
+ var allPaths = [createPath(initialLocation)]; // Public interface
5044
+
5045
+ function createHref(location) {
5046
+ var baseTag = document.querySelector('base');
5047
+ var href = '';
5048
+
5049
+ if (baseTag && baseTag.getAttribute('href')) {
5050
+ href = stripHash(window.location.href);
5051
+ }
5052
+
5053
+ return href + '#' + encodePath(basename + createPath(location));
5054
+ }
5055
+
5056
+ function push(path, state) {
5057
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(state === undefined, 'Hash history cannot push state; it is ignored') : void 0;
5058
+ var action = 'PUSH';
5059
+ var location = createLocation(path, undefined, undefined, history.location);
5060
+ transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
5061
+ if (!ok) return;
5062
+ var path = createPath(location);
5063
+ var encodedPath = encodePath(basename + path);
5064
+ var hashChanged = getHashPath() !== encodedPath;
5065
+
5066
+ if (hashChanged) {
5067
+ // We cannot tell if a hashchange was caused by a PUSH, so we'd
5068
+ // rather setState here and ignore the hashchange. The caveat here
5069
+ // is that other hash histories in the page will consider it a POP.
5070
+ ignorePath = path;
5071
+ pushHashPath(encodedPath);
5072
+ var prevIndex = allPaths.lastIndexOf(createPath(history.location));
5073
+ var nextPaths = allPaths.slice(0, prevIndex + 1);
5074
+ nextPaths.push(path);
5075
+ allPaths = nextPaths;
5076
+ setState({
5077
+ action: action,
5078
+ location: location
5079
+ });
5080
+ } else {
5081
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(false, 'Hash history cannot PUSH the same path; a new entry will not be added to the history stack') : void 0;
5082
+ setState();
5083
+ }
5084
+ });
5085
+ }
5086
+
5087
+ function replace(path, state) {
5088
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(state === undefined, 'Hash history cannot replace state; it is ignored') : void 0;
5089
+ var action = 'REPLACE';
5090
+ var location = createLocation(path, undefined, undefined, history.location);
5091
+ transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
5092
+ if (!ok) return;
5093
+ var path = createPath(location);
5094
+ var encodedPath = encodePath(basename + path);
5095
+ var hashChanged = getHashPath() !== encodedPath;
5096
+
5097
+ if (hashChanged) {
5098
+ // We cannot tell if a hashchange was caused by a REPLACE, so we'd
5099
+ // rather setState here and ignore the hashchange. The caveat here
5100
+ // is that other hash histories in the page will consider it a POP.
5101
+ ignorePath = path;
5102
+ replaceHashPath(encodedPath);
5103
+ }
5104
+
5105
+ var prevIndex = allPaths.indexOf(createPath(history.location));
5106
+ if (prevIndex !== -1) allPaths[prevIndex] = path;
5107
+ setState({
5108
+ action: action,
5109
+ location: location
5110
+ });
5111
+ });
5112
+ }
5113
+
5114
+ function go(n) {
5115
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(canGoWithoutReload, 'Hash history go(n) causes a full page reload in this browser') : void 0;
5116
+ globalHistory.go(n);
5117
+ }
5118
+
5119
+ function goBack() {
5120
+ go(-1);
5121
+ }
5122
+
5123
+ function goForward() {
5124
+ go(1);
5125
+ }
5126
+
5127
+ var listenerCount = 0;
5128
+
5129
+ function checkDOMListeners(delta) {
5130
+ listenerCount += delta;
5131
+
5132
+ if (listenerCount === 1 && delta === 1) {
5133
+ window.addEventListener(HashChangeEvent$1, handleHashChange);
5134
+ } else if (listenerCount === 0) {
5135
+ window.removeEventListener(HashChangeEvent$1, handleHashChange);
5136
+ }
5137
+ }
5138
+
5139
+ var isBlocked = false;
5140
+
5141
+ function block(prompt) {
5142
+ if (prompt === void 0) {
5143
+ prompt = false;
5144
+ }
5145
+
5146
+ var unblock = transitionManager.setPrompt(prompt);
5147
+
5148
+ if (!isBlocked) {
5149
+ checkDOMListeners(1);
5150
+ isBlocked = true;
5151
+ }
5152
+
5153
+ return function () {
5154
+ if (isBlocked) {
5155
+ isBlocked = false;
5156
+ checkDOMListeners(-1);
5157
+ }
5158
+
5159
+ return unblock();
5160
+ };
5161
+ }
5162
+
5163
+ function listen(listener) {
5164
+ var unlisten = transitionManager.appendListener(listener);
5165
+ checkDOMListeners(1);
5166
+ return function () {
5167
+ checkDOMListeners(-1);
5168
+ unlisten();
5169
+ };
5170
+ }
5171
+
5172
+ var history = {
5173
+ length: globalHistory.length,
5174
+ action: 'POP',
5175
+ location: initialLocation,
5176
+ createHref: createHref,
5177
+ push: push,
5178
+ replace: replace,
5179
+ go: go,
5180
+ goBack: goBack,
5181
+ goForward: goForward,
5182
+ block: block,
5183
+ listen: listen
5184
+ };
5185
+ return history;
5186
+ }
5187
+
5188
+ function clamp(n, lowerBound, upperBound) {
5189
+ return Math.min(Math.max(n, lowerBound), upperBound);
5190
+ }
5191
+ /**
5192
+ * Creates a history object that stores locations in memory.
5193
+ */
5194
+
5195
+
5196
+ function createMemoryHistory(props) {
5197
+ if (props === void 0) {
5198
+ props = {};
5199
+ }
5200
+
5201
+ var _props = props,
5202
+ getUserConfirmation = _props.getUserConfirmation,
5203
+ _props$initialEntries = _props.initialEntries,
5204
+ initialEntries = _props$initialEntries === void 0 ? ['/'] : _props$initialEntries,
5205
+ _props$initialIndex = _props.initialIndex,
5206
+ initialIndex = _props$initialIndex === void 0 ? 0 : _props$initialIndex,
5207
+ _props$keyLength = _props.keyLength,
5208
+ keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
5209
+ var transitionManager = createTransitionManager();
5210
+
5211
+ function setState(nextState) {
5212
+ Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])(history, nextState);
5213
+
5214
+ history.length = history.entries.length;
5215
+ transitionManager.notifyListeners(history.location, history.action);
5216
+ }
5217
+
5218
+ function createKey() {
5219
+ return Math.random().toString(36).substr(2, keyLength);
5220
+ }
5221
+
5222
+ var index = clamp(initialIndex, 0, initialEntries.length - 1);
5223
+ var entries = initialEntries.map(function (entry) {
5224
+ return typeof entry === 'string' ? createLocation(entry, undefined, createKey()) : createLocation(entry, undefined, entry.key || createKey());
5225
+ }); // Public interface
5226
+
5227
+ var createHref = createPath;
5228
+
5229
+ function push(path, state) {
5230
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to push when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;
5231
+ var action = 'PUSH';
5232
+ var location = createLocation(path, state, createKey(), history.location);
5233
+ transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
5234
+ if (!ok) return;
5235
+ var prevIndex = history.index;
5236
+ var nextIndex = prevIndex + 1;
5237
+ var nextEntries = history.entries.slice(0);
5238
+
5239
+ if (nextEntries.length > nextIndex) {
5240
+ nextEntries.splice(nextIndex, nextEntries.length - nextIndex, location);
5241
+ } else {
5242
+ nextEntries.push(location);
5243
+ }
5244
+
5245
+ setState({
5246
+ action: action,
5247
+ location: location,
5248
+ index: nextIndex,
5249
+ entries: nextEntries
5250
+ });
5251
+ });
5252
+ }
5253
+
5254
+ function replace(path, state) {
5255
+ process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_3_tiny_warning__["a" /* default */])(!(typeof path === 'object' && path.state !== undefined && state !== undefined), 'You should avoid providing a 2nd state argument to replace when the 1st ' + 'argument is a location-like object that already has state; it is ignored') : void 0;
5256
+ var action = 'REPLACE';
5257
+ var location = createLocation(path, state, createKey(), history.location);
5258
+ transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
5259
+ if (!ok) return;
5260
+ history.entries[history.index] = location;
5261
+ setState({
5262
+ action: action,
5263
+ location: location
5264
+ });
5265
+ });
5266
+ }
5267
+
5268
+ function go(n) {
5269
+ var nextIndex = clamp(history.index + n, 0, history.entries.length - 1);
5270
+ var action = 'POP';
5271
+ var location = history.entries[nextIndex];
5272
+ transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
5273
+ if (ok) {
5274
+ setState({
5275
+ action: action,
5276
+ location: location,
5277
+ index: nextIndex
5278
+ });
5279
+ } else {
5280
+ // Mimic the behavior of DOM histories by
5281
+ // causing a render after a cancelled POP.
5282
+ setState();
5283
+ }
5284
+ });
5285
+ }
5286
+
5287
+ function goBack() {
5288
+ go(-1);
5289
+ }
5290
+
5291
+ function goForward() {
5292
+ go(1);
5293
+ }
5294
+
5295
+ function canGo(n) {
5296
+ var nextIndex = history.index + n;
5297
+ return nextIndex >= 0 && nextIndex < history.entries.length;
5298
+ }
5299
+
5300
+ function block(prompt) {
5301
+ if (prompt === void 0) {
5302
+ prompt = false;
5303
+ }
5304
+
5305
+ return transitionManager.setPrompt(prompt);
5306
+ }
5307
+
5308
+ function listen(listener) {
5309
+ return transitionManager.appendListener(listener);
5310
+ }
5311
+
5312
+ var history = {
5313
+ length: entries.length,
5314
+ action: 'POP',
5315
+ location: entries[index],
5316
+ index: index,
5317
+ entries: entries,
5318
+ createHref: createHref,
5319
+ push: push,
5320
+ replace: replace,
5321
+ go: go,
5322
+ goBack: goBack,
5323
+ goForward: goForward,
5324
+ canGo: canGo,
5325
+ block: block,
5326
+ listen: listen
5327
+ };
5328
+ return history;
5329
+ }
5330
+
5331
+
5332
+
5333
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
5334
+
5335
+ /***/ }),
5336
+ /* 45 */
5337
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5338
+
5339
+ "use strict";
5340
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__useTheme__ = __webpack_require__(377);
5341
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__useTheme__["a"]; });
5342
+
5343
+
5344
+ /***/ }),
5345
+ /* 46 */
5346
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5347
+
5348
+ "use strict";
5349
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Collapse__ = __webpack_require__(185);
5350
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Collapse__["a"]; });
5351
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__StrictModeCollapse__ = __webpack_require__(424);
5352
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__StrictModeCollapse__["a"]; });
5353
+ // eslint-disable-next-line camelcase
5354
+
5355
+
5356
+
5357
+ /***/ }),
5358
+ /* 47 */
5359
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5360
+
5361
+ "use strict";
5362
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CSSTransition__ = __webpack_require__(417);
5363
+ /* unused harmony reexport CSSTransition */
5364
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ReplaceTransition__ = __webpack_require__(421);
5365
+ /* unused harmony reexport ReplaceTransition */
5366
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__SwitchTransition__ = __webpack_require__(423);
5367
+ /* unused harmony reexport SwitchTransition */
5368
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__TransitionGroup__ = __webpack_require__(188);
5369
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_3__TransitionGroup__["a"]; });
5370
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Transition__ = __webpack_require__(103);
5371
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_4__Transition__["d"]; });
5372
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__config__ = __webpack_require__(186);
5373
+ /* unused harmony reexport config */
5374
+
5375
+
5376
+
5377
+
5378
+
5379
+
5380
+
5381
+ /***/ }),
5382
+ /* 48 */
5383
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5384
+
5385
+ "use strict";
5386
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return reflow; });
5387
+ /* harmony export (immutable) */ __webpack_exports__["a"] = getTransitionProps;
5388
+ var reflow = function reflow(node) {
5389
+ return node.scrollTop;
5390
+ };
5391
+ function getTransitionProps(props, options) {
5392
+ var timeout = props.timeout,
5393
+ _props$style = props.style,
5394
+ style = _props$style === void 0 ? {} : _props$style;
5395
+ return {
5396
+ duration: style.transitionDuration || typeof timeout === 'number' ? timeout : timeout[options.mode] || 0,
5397
+ delay: style.transitionDelay
5398
+ };
5399
+ }
5400
+
5401
+ /***/ }),
5402
+ /* 49 */
5403
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5404
+
5405
+ "use strict";
5406
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Grow__ = __webpack_require__(197);
5407
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Grow__["a"]; });
5408
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__StrictModeGrow__ = __webpack_require__(434);
5409
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__StrictModeGrow__["a"]; });
5410
+ // eslint-disable-next-line camelcase
5411
+
5412
+
5413
+
5414
+ /***/ }),
5415
+ /* 50 */
5416
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5417
+
5418
+ "use strict";
5419
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__InputBase__ = __webpack_require__(513);
5420
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__InputBase__["a"]; });
5421
+
5422
+
5423
+ /***/ }),
5424
+ /* 51 */
5425
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5426
+
5427
+ "use strict";
5428
+ /* harmony export (immutable) */ __webpack_exports__["a"] = formControlState;
5429
+ function formControlState(_ref) {
5430
+ var props = _ref.props,
5431
+ states = _ref.states,
5432
+ muiFormControl = _ref.muiFormControl;
5433
+ return states.reduce(function (acc, state) {
5434
+ acc[state] = props[state];
5435
+
5436
+ if (muiFormControl) {
5437
+ if (typeof props[state] === 'undefined') {
5438
+ acc[state] = muiFormControl[state];
5439
+ }
5440
+ }
5441
+
5442
+ return acc;
5443
+ }, {});
5444
+ }
5445
+
5446
+ /***/ }),
5447
+ /* 52 */
5448
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5449
+
5450
+ "use strict";
5451
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createMuiTheme__ = __webpack_require__(98);
5452
+
5453
+ var defaultTheme = Object(__WEBPACK_IMPORTED_MODULE_0__createMuiTheme__["a" /* default */])();
5454
+ /* harmony default export */ __webpack_exports__["a"] = (defaultTheme);
5455
+
5456
+ /***/ }),
5457
+ /* 53 */
5458
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5459
+
5460
+ "use strict";
5461
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_serialize__ = __webpack_require__(180);
5462
+
5463
+
5464
+ function css() {
5465
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
5466
+ args[_key] = arguments[_key];
5467
+ }
5468
+
5469
+ return Object(__WEBPACK_IMPORTED_MODULE_0__emotion_serialize__["a" /* serializeStyles */])(args);
5470
+ }
5471
+
5472
+ /* harmony default export */ __webpack_exports__["a"] = (css);
5473
+
5474
+
5475
+ /***/ }),
5476
+ /* 54 */
5477
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5478
+
5479
+ "use strict";
5480
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CSSTransition__ = __webpack_require__(425);
5481
+ /* unused harmony reexport CSSTransition */
5482
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ReplaceTransition__ = __webpack_require__(430);
5483
+ /* unused harmony reexport ReplaceTransition */
5484
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__TransitionGroup__ = __webpack_require__(193);
5485
+ /* unused harmony reexport TransitionGroup */
5486
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Transition__ = __webpack_require__(189);
5487
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_3__Transition__["a"]; });
5488
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__config__ = __webpack_require__(190);
5489
+ /* unused harmony reexport config */
5490
+
5491
+
5492
+
5493
+
5494
+
5495
+
5496
+ /***/ }),
5497
+ /* 55 */
5498
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5499
+
5500
+ "use strict";
5501
+ /* harmony export (immutable) */ __webpack_exports__["a"] = isMuiElement;
5502
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
5503
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
5504
+
5505
+ function isMuiElement(element, muiNames) {
5506
+ return __WEBPACK_IMPORTED_MODULE_0_react__["isValidElement"](element) && muiNames.indexOf(element.type.muiName) !== -1;
5507
+ }
5508
+
5509
+ /***/ }),
5510
+ /* 56 */
5511
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5512
+
5513
+ "use strict";
5514
+ /* harmony export (immutable) */ __webpack_exports__["a"] = ownerWindow;
5515
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ownerDocument__ = __webpack_require__(29);
5516
+
5517
+ function ownerWindow(node) {
5518
+ var doc = Object(__WEBPACK_IMPORTED_MODULE_0__ownerDocument__["a" /* default */])(node);
5519
+ return doc.defaultView || window;
5520
+ }
5521
+
5522
+ /***/ }),
5523
+ /* 57 */
5524
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5525
+
5526
+ "use strict";
5527
+ /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export teardown */
5528
+ /* harmony export (immutable) */ __webpack_exports__["a"] = useIsFocusVisible;
5529
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
5530
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
5531
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom__ = __webpack_require__(10);
5532
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_dom__);
5533
+ // based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js
5534
+
5535
+
5536
+ var hadKeyboardEvent = true;
5537
+ var hadFocusVisibleRecently = false;
5538
+ var hadFocusVisibleRecentlyTimeout = null;
5539
+ var inputTypesWhitelist = {
5540
+ text: true,
5541
+ search: true,
5542
+ url: true,
5543
+ tel: true,
5544
+ email: true,
5545
+ password: true,
5546
+ number: true,
5547
+ date: true,
5548
+ month: true,
5549
+ week: true,
5550
+ time: true,
5551
+ datetime: true,
5552
+ 'datetime-local': true
5553
+ };
5554
+ /**
5555
+ * Computes whether the given element should automatically trigger the
5556
+ * `focus-visible` class being added, i.e. whether it should always match
5557
+ * `:focus-visible` when focused.
5558
+ * @param {Element} node
5559
+ * @return {boolean}
5560
+ */
5561
+
5562
+ function focusTriggersKeyboardModality(node) {
5563
+ var type = node.type,
5564
+ tagName = node.tagName;
5565
+
5566
+ if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) {
5567
+ return true;
5568
+ }
5569
+
5570
+ if (tagName === 'TEXTAREA' && !node.readOnly) {
5571
+ return true;
5572
+ }
5573
+
5574
+ if (node.isContentEditable) {
5575
+ return true;
5576
+ }
5577
+
5578
+ return false;
5579
+ }
5580
+ /**
5581
+ * Keep track of our keyboard modality state with `hadKeyboardEvent`.
5582
+ * If the most recent user interaction was via the keyboard;
5583
+ * and the key press did not include a meta, alt/option, or control key;
5584
+ * then the modality is keyboard. Otherwise, the modality is not keyboard.
5585
+ * @param {KeyboardEvent} event
5586
+ */
5587
+
5588
+
5589
+ function handleKeyDown(event) {
5590
+ if (event.metaKey || event.altKey || event.ctrlKey) {
5591
+ return;
5592
+ }
5593
+
5594
+ hadKeyboardEvent = true;
5595
+ }
5596
+ /**
5597
+ * If at any point a user clicks with a pointing device, ensure that we change
5598
+ * the modality away from keyboard.
5599
+ * This avoids the situation where a user presses a key on an already focused
5600
+ * element, and then clicks on a different element, focusing it with a
5601
+ * pointing device, while we still think we're in keyboard modality.
5602
+ */
5603
+
5604
+
5605
+ function handlePointerDown() {
5606
+ hadKeyboardEvent = false;
5607
+ }
5608
+
5609
+ function handleVisibilityChange() {
5610
+ if (this.visibilityState === 'hidden') {
5611
+ // If the tab becomes active again, the browser will handle calling focus
5612
+ // on the element (Safari actually calls it twice).
5613
+ // If this tab change caused a blur on an element with focus-visible,
5614
+ // re-apply the class when the user switches back to the tab.
5615
+ if (hadFocusVisibleRecently) {
5616
+ hadKeyboardEvent = true;
5617
+ }
5618
+ }
5619
+ }
5620
+
5621
+ function prepare(doc) {
5622
+ doc.addEventListener('keydown', handleKeyDown, true);
5623
+ doc.addEventListener('mousedown', handlePointerDown, true);
5624
+ doc.addEventListener('pointerdown', handlePointerDown, true);
5625
+ doc.addEventListener('touchstart', handlePointerDown, true);
5626
+ doc.addEventListener('visibilitychange', handleVisibilityChange, true);
5627
+ }
5628
+
5629
+ function teardown(doc) {
5630
+ doc.removeEventListener('keydown', handleKeyDown, true);
5631
+ doc.removeEventListener('mousedown', handlePointerDown, true);
5632
+ doc.removeEventListener('pointerdown', handlePointerDown, true);
5633
+ doc.removeEventListener('touchstart', handlePointerDown, true);
5634
+ doc.removeEventListener('visibilitychange', handleVisibilityChange, true);
5635
+ }
5636
+
5637
+ function isFocusVisible(event) {
5638
+ var target = event.target;
5639
+
5640
+ try {
5641
+ return target.matches(':focus-visible');
5642
+ } catch (error) {} // browsers not implementing :focus-visible will throw a SyntaxError
5643
+ // we use our own heuristic for those browsers
5644
+ // rethrow might be better if it's not the expected error but do we really
5645
+ // want to crash if focus-visible malfunctioned?
5646
+ // no need for validFocusTarget check. the user does that by attaching it to
5647
+ // focusable events only
5648
+
5649
+
5650
+ return hadKeyboardEvent || focusTriggersKeyboardModality(target);
5651
+ }
5652
+ /**
5653
+ * Should be called if a blur event is fired on a focus-visible element
5654
+ */
5655
+
5656
+
5657
+ function handleBlurVisible() {
5658
+ // To detect a tab/window switch, we look for a blur event followed
5659
+ // rapidly by a visibility change.
5660
+ // If we don't see a visibility change within 100ms, it's probably a
5661
+ // regular focus change.
5662
+ hadFocusVisibleRecently = true;
5663
+ window.clearTimeout(hadFocusVisibleRecentlyTimeout);
5664
+ hadFocusVisibleRecentlyTimeout = window.setTimeout(function () {
5665
+ hadFocusVisibleRecently = false;
5666
+ }, 100);
5667
+ }
5668
+
5669
+ function useIsFocusVisible() {
5670
+ var ref = __WEBPACK_IMPORTED_MODULE_0_react__["useCallback"](function (instance) {
5671
+ var node = __WEBPACK_IMPORTED_MODULE_1_react_dom__["findDOMNode"](instance);
5672
+
5673
+ if (node != null) {
5674
+ prepare(node.ownerDocument);
5675
+ }
5676
+ }, []);
5677
+
5678
+ if (process.env.NODE_ENV !== 'production') {
5679
+ // eslint-disable-next-line react-hooks/rules-of-hooks
5680
+ __WEBPACK_IMPORTED_MODULE_0_react__["useDebugValue"](isFocusVisible);
5681
+ }
5682
+
5683
+ return {
5684
+ isFocusVisible: isFocusVisible,
5685
+ onBlurVisible: handleBlurVisible,
5686
+ ref: ref
5687
+ };
5688
+ }
5689
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
5690
+
5691
+ /***/ }),
5692
+ /* 58 */
5693
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5694
+
5695
+ "use strict";
5696
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Fade__ = __webpack_require__(196);
5697
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Fade__["a"]; });
5698
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__StrictModeFade__ = __webpack_require__(433);
5699
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__StrictModeFade__["a"]; });
5700
+ // eslint-disable-next-line camelcase
5701
+
5702
+
5703
+
5704
+ /***/ }),
5705
+ /* 59 */
5706
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5707
+
5708
+ "use strict";
5709
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Modal__ = __webpack_require__(497);
5710
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Modal__["a"]; });
5711
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ModalManager__ = __webpack_require__(221);
5712
+ /* unused harmony reexport ModalManager */
5713
+
5714
+
5715
+
5716
+ /***/ }),
5717
+ /* 60 */
5718
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5719
+
5720
+ "use strict";
5721
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = createChainedFunction;
5722
+ /**
5723
+ * Safe chained function
5724
+ *
5725
+ * Will only create a new function if needed,
5726
+ * otherwise will pass back existing functions or null.
5727
+ *
5728
+ * @param {function} functions to chain
5729
+ * @returns {function|null}
5730
+ */
5731
+ function createChainedFunction() {
5732
+ for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
5733
+ funcs[_key] = arguments[_key];
5734
+ }
5735
+
5736
+ return funcs.reduce(function (acc, func) {
5737
+ if (func == null) {
5738
+ return acc;
5739
+ }
5740
+
5741
+ if (process.env.NODE_ENV !== 'production') {
5742
+ if (typeof func !== 'function') {
5743
+ console.error('Material-UI: invalid Argument Type, must only provide functions, undefined, or null.');
5744
+ }
5745
+ }
5746
+
5747
+ return function chainedFunction() {
5748
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
5749
+ args[_key2] = arguments[_key2];
5750
+ }
5751
+
5752
+ acc.apply(this, args);
5753
+ func.apply(this, args);
5754
+ };
5755
+ }, function () {});
5756
+ }
5757
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
5758
+
5759
+ /***/ }),
5760
+ /* 61 */
5761
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5762
+
5763
+ "use strict";
5764
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Input__ = __webpack_require__(528);
5765
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Input__["a"]; });
5766
+
5767
+
5768
+ /***/ }),
5769
+ /* 62 */
5770
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5771
+
5772
+ "use strict";
5773
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
5774
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
5775
+
5776
+ /**
5777
+ * @ignore - internal component.
5778
+ */
5779
+
5780
+ var ListContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]({});
5781
+
5782
+ if (process.env.NODE_ENV !== 'production') {
5783
+ ListContext.displayName = 'ListContext';
5784
+ }
5785
+
5786
+ /* harmony default export */ __webpack_exports__["a"] = (ListContext);
5787
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
5788
+
5789
+ /***/ }),
5790
+ /* 63 */
5791
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5792
+
5793
+ "use strict";
5794
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
5795
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
5796
+
5797
+ /**
5798
+ * @ignore - internal component.
5799
+ */
5800
+
5801
+ var Tablelvl2Context = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]();
5802
+
5803
+ if (process.env.NODE_ENV !== 'production') {
5804
+ Tablelvl2Context.displayName = 'Tablelvl2Context';
5805
+ }
5806
+
5807
+ /* harmony default export */ __webpack_exports__["a"] = (Tablelvl2Context);
5808
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
5809
+
5810
+ /***/ }),
5811
+ /* 64 */
5812
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5813
+
5814
+ "use strict";
5815
+ /* WEBPACK VAR INJECTION */(function(process) {var isProduction = process.env.NODE_ENV === 'production';
5816
+ function warning(condition, message) {
5817
+ if (!isProduction) {
5818
+ if (condition) {
5819
+ return;
5820
+ }
5821
+
5822
+ var text = "Warning: " + message;
5823
+
5824
+ if (typeof console !== 'undefined') {
5825
+ console.warn(text);
5826
+ }
5827
+
5828
+ try {
5829
+ throw Error(text);
5830
+ } catch (x) {}
5831
+ }
5832
+ }
5833
+
5834
+ /* harmony default export */ __webpack_exports__["a"] = (warning);
5835
+
5836
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
5837
+
5838
+ /***/ }),
5839
+ /* 65 */
5840
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5841
+
5842
+ "use strict";
5843
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createGenerateClassName__ = __webpack_require__(359);
5844
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__createGenerateClassName__["a"]; });
5845
+
5846
+
5847
+ /***/ }),
5848
+ /* 66 */
5849
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5850
+
5851
+ "use strict";
5852
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _createClass;
5853
+ function _defineProperties(target, props) {
5854
+ for (var i = 0; i < props.length; i++) {
5855
+ var descriptor = props[i];
5856
+ descriptor.enumerable = descriptor.enumerable || false;
5857
+ descriptor.configurable = true;
5858
+ if ("value" in descriptor) descriptor.writable = true;
5859
+ Object.defineProperty(target, descriptor.key, descriptor);
5860
+ }
5861
+ }
5862
+
5863
+ function _createClass(Constructor, protoProps, staticProps) {
5864
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
5865
+ if (staticProps) _defineProperties(Constructor, staticProps);
5866
+ return Constructor;
5867
+ }
5868
+
5869
+ /***/ }),
5870
+ /* 67 */
5871
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5872
+
5873
+ "use strict";
5874
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _assertThisInitialized;
5875
+ function _assertThisInitialized(self) {
5876
+ if (self === void 0) {
5877
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
5878
+ }
5879
+
5880
+ return self;
5881
+ }
5882
+
5883
+ /***/ }),
5884
+ /* 68 */
5885
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5886
+
5887
+ "use strict";
5888
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__makeStyles__ = __webpack_require__(374);
5889
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__makeStyles__["a"]; });
5890
+
5891
+
5892
+ /***/ }),
5893
+ /* 69 */
5894
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
5895
+
5896
+ "use strict";
5897
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StylesProvider__ = __webpack_require__(147);
5898
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__StylesProvider__["b"]; });
5899
+ /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__StylesProvider__["a"]; });
5900
+
5901
+
5902
+
5903
+ /***/ }),
5904
+ /* 70 */
5905
+ /***/ (function(module, exports, __webpack_require__) {
5906
+
5907
+ "use strict";
5908
+
5909
+
5910
+ var reactIs = __webpack_require__(14);
5911
+
5912
+ /**
5913
+ * Copyright 2015, Yahoo! Inc.
5914
+ * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
5915
+ */
5916
+ var REACT_STATICS = {
5917
+ childContextTypes: true,
5918
+ contextType: true,
5919
+ contextTypes: true,
5920
+ defaultProps: true,
5921
+ displayName: true,
5922
+ getDefaultProps: true,
5923
+ getDerivedStateFromError: true,
5924
+ getDerivedStateFromProps: true,
5925
+ mixins: true,
5926
+ propTypes: true,
5927
+ type: true
5928
+ };
5929
+ var KNOWN_STATICS = {
5930
+ name: true,
5931
+ length: true,
5932
+ prototype: true,
5933
+ caller: true,
5934
+ callee: true,
5935
+ arguments: true,
5936
+ arity: true
5937
+ };
5938
+ var FORWARD_REF_STATICS = {
5939
+ '$$typeof': true,
5940
+ render: true,
5941
+ defaultProps: true,
5942
+ displayName: true,
5943
+ propTypes: true
5944
+ };
5945
+ var MEMO_STATICS = {
5946
+ '$$typeof': true,
5947
+ compare: true,
5948
+ defaultProps: true,
5949
+ displayName: true,
5950
+ propTypes: true,
5951
+ type: true
5952
+ };
5953
+ var TYPE_STATICS = {};
5954
+ TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
5955
+ TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
5956
+
5957
+ function getStatics(component) {
5958
+ // React v16.11 and below
5959
+ if (reactIs.isMemo(component)) {
5960
+ return MEMO_STATICS;
5961
+ } // React v16.12 and above
5962
+
5963
+
5964
+ return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
5965
+ }
5966
+
5967
+ var defineProperty = Object.defineProperty;
5968
+ var getOwnPropertyNames = Object.getOwnPropertyNames;
5969
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
5970
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
5971
+ var getPrototypeOf = Object.getPrototypeOf;
5972
+ var objectPrototype = Object.prototype;
5973
+ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
5974
+ if (typeof sourceComponent !== 'string') {
5975
+ // don't hoist over string (html) components
5976
+ if (objectPrototype) {
5977
+ var inheritedComponent = getPrototypeOf(sourceComponent);
5978
+
5979
+ if (inheritedComponent && inheritedComponent !== objectPrototype) {
5980
+ hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
5981
+ }
5982
+ }
5983
+
5984
+ var keys = getOwnPropertyNames(sourceComponent);
5985
+
5986
+ if (getOwnPropertySymbols) {
5987
+ keys = keys.concat(getOwnPropertySymbols(sourceComponent));
5988
+ }
5989
+
5990
+ var targetStatics = getStatics(targetComponent);
5991
+ var sourceStatics = getStatics(sourceComponent);
5992
+
5993
+ for (var i = 0; i < keys.length; ++i) {
5994
+ var key = keys[i];
5995
+
5996
+ if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
5997
+ var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
5998
+
5999
+ try {
6000
+ // Avoid failures from read-only properties
6001
+ defineProperty(targetComponent, key, descriptor);
6002
+ } catch (e) {}
6003
+ }
6004
+ }
6005
+ }
6006
+
6007
+ return targetComponent;
6008
+ }
6009
+
6010
+ module.exports = hoistNonReactStatics;
6011
+
6012
+
6013
+ /***/ }),
6014
+ /* 71 */
6015
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6016
+
6017
+ "use strict";
6018
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__ = __webpack_require__(7);
6019
+
6020
+
6021
+ function merge(acc, item) {
6022
+ if (!item) {
6023
+ return acc;
6024
+ }
6025
+
6026
+ return Object(__WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["b" /* deepmerge */])(acc, item, {
6027
+ clone: false // No need to clone deep, it's way faster.
6028
+
6029
+ });
6030
+ }
6031
+
6032
+ /* harmony default export */ __webpack_exports__["a"] = (merge);
6033
+
6034
+ /***/ }),
6035
+ /* 72 */
6036
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6037
+
6038
+ "use strict";
6039
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SvgIcon__ = __webpack_require__(432);
6040
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__SvgIcon__["a"]; });
6041
+
6042
+
6043
+ /***/ }),
6044
+ /* 73 */
6045
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6046
+
6047
+ "use strict";
6048
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = unsupportedProp;
6049
+ function unsupportedProp(props, propName, componentName, location, propFullName) {
6050
+ if (process.env.NODE_ENV === 'production') {
6051
+ return null;
6052
+ }
6053
+
6054
+ var propFullNameSafe = propFullName || propName;
6055
+
6056
+ if (typeof props[propName] !== 'undefined') {
6057
+ return new Error("The prop `".concat(propFullNameSafe, "` is not supported. Please remove it."));
6058
+ }
6059
+
6060
+ return null;
6061
+ }
6062
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
6063
+
6064
+ /***/ }),
6065
+ /* 74 */
6066
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6067
+
6068
+ "use strict";
6069
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Slide__ = __webpack_require__(198);
6070
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Slide__["a"]; });
6071
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__StrictModeSlide__ = __webpack_require__(435);
6072
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__StrictModeSlide__["a"]; });
6073
+ // eslint-disable-next-line camelcase
6074
+
6075
+
6076
+
6077
+ /***/ }),
6078
+ /* 75 */
6079
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6080
+
6081
+ "use strict";
6082
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Zoom__ = __webpack_require__(199);
6083
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Zoom__["a"]; });
6084
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__StrictModeZoom__ = __webpack_require__(436);
6085
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__StrictModeZoom__["a"]; });
6086
+ // eslint-disable-next-line camelcase
6087
+
6088
+
6089
+
6090
+ /***/ }),
6091
+ /* 76 */
6092
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6093
+
6094
+ "use strict";
6095
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Backdrop__ = __webpack_require__(469);
6096
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Backdrop__["a"]; });
6097
+
6098
+
6099
+ /***/ }),
6100
+ /* 77 */
6101
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6102
+
6103
+ "use strict";
6104
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["b"] = useFormControl;
6105
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
6106
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
6107
+
6108
+ /**
6109
+ * @ignore - internal component.
6110
+ */
6111
+
6112
+ var FormControlContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]();
6113
+
6114
+ if (process.env.NODE_ENV !== 'production') {
6115
+ FormControlContext.displayName = 'FormControlContext';
6116
+ }
6117
+
6118
+ function useFormControl() {
6119
+ return __WEBPACK_IMPORTED_MODULE_0_react__["useContext"](FormControlContext);
6120
+ }
6121
+ /* harmony default export */ __webpack_exports__["a"] = (FormControlContext);
6122
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
6123
+
6124
+ /***/ }),
6125
+ /* 78 */
6126
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6127
+
6128
+ "use strict";
6129
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Portal__ = __webpack_require__(498);
6130
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Portal__["a"]; });
6131
+
6132
+
6133
+ /***/ }),
6134
+ /* 79 */
6135
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6136
+
6137
+ "use strict";
6138
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Fab__ = __webpack_require__(511);
6139
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Fab__["a"]; });
6140
+
6141
+
6142
+ /***/ }),
6143
+ /* 80 */
6144
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6145
+
6146
+ "use strict";
6147
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FilledInput__ = __webpack_require__(512);
6148
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FilledInput__["a"]; });
6149
+
6150
+
6151
+ /***/ }),
6152
+ /* 81 */
6153
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6154
+
6155
+ "use strict";
6156
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormControl__ = __webpack_require__(515);
6157
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FormControl__["a"]; });
6158
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__useFormControl__ = __webpack_require__(42);
6159
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__useFormControl__["a"]; });
6160
+
6161
+
6162
+
6163
+ /***/ }),
6164
+ /* 82 */
6165
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6166
+
6167
+ "use strict";
6168
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__withWidth__ = __webpack_require__(240);
6169
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__withWidth__["a"]; });
6170
+ /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__withWidth__["b"]; });
6171
+ /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_0__withWidth__["c"]; });
6172
+
6173
+
6174
+
6175
+ /***/ }),
6176
+ /* 83 */
6177
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6178
+
6179
+ "use strict";
6180
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__OutlinedInput__ = __webpack_require__(545);
6181
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__OutlinedInput__["a"]; });
6182
+
6183
+
6184
+ /***/ }),
6185
+ /* 84 */
6186
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6187
+
6188
+ "use strict";
6189
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Popper__ = __webpack_require__(547);
6190
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Popper__["a"]; });
6191
+
6192
+
6193
+ /***/ }),
6194
+ /* 85 */
6195
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6196
+
6197
+ "use strict";
6198
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Select__ = __webpack_require__(560);
6199
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Select__["a"]; });
6200
+
6201
+
6202
+ /***/ }),
6203
+ /* 86 */
6204
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6205
+
6206
+ "use strict";
6207
+ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
6208
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Tooltip__ = __webpack_require__(598);
6209
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__Tooltip__["a"]; });
6210
+
6211
+
6212
+ /***/ }),
6213
+ /* 87 */
6214
+ /***/ (function(module, exports, __webpack_require__) {
6215
+
6216
+ "use strict";
6217
+ /* WEBPACK VAR INJECTION */(function(process) {/**
6218
+ * Copyright (c) 2013-present, Facebook, Inc.
6219
+ *
6220
+ * This source code is licensed under the MIT license found in the
6221
+ * LICENSE file in the root directory of this source tree.
6222
+ */
6223
+
6224
+
6225
+
6226
+ var printWarning = function() {};
6227
+
6228
+ if (process.env.NODE_ENV !== 'production') {
6229
+ var ReactPropTypesSecret = __webpack_require__(88);
6230
+ var loggedTypeFailures = {};
6231
+ var has = Function.call.bind(Object.prototype.hasOwnProperty);
6232
+
6233
+ printWarning = function(text) {
6234
+ var message = 'Warning: ' + text;
6235
+ if (typeof console !== 'undefined') {
6236
+ console.error(message);
6237
+ }
6238
+ try {
6239
+ // --- Welcome to debugging React ---
6240
+ // This error was thrown as a convenience so that you can use this stack
6241
+ // to find the callsite that caused this warning to fire.
6242
+ throw new Error(message);
6243
+ } catch (x) {}
6244
+ };
6245
+ }
6246
+
6247
+ /**
6248
+ * Assert that the values match with the type specs.
6249
+ * Error messages are memorized and will only be shown once.
6250
+ *
6251
+ * @param {object} typeSpecs Map of name to a ReactPropType
6252
+ * @param {object} values Runtime values that need to be type-checked
6253
+ * @param {string} location e.g. "prop", "context", "child context"
6254
+ * @param {string} componentName Name of the component for error messages.
6255
+ * @param {?Function} getStack Returns the component stack.
6256
+ * @private
6257
+ */
6258
+ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
6259
+ if (process.env.NODE_ENV !== 'production') {
6260
+ for (var typeSpecName in typeSpecs) {
6261
+ if (has(typeSpecs, typeSpecName)) {
6262
+ var error;
6263
+ // Prop type validation may throw. In case they do, we don't want to
6264
+ // fail the render phase where it didn't fail before. So we log it.
6265
+ // After these have been cleaned up, we'll let them throw.
6266
+ try {
6267
+ // This is intentionally an invariant that gets caught. It's the same
6268
+ // behavior as without this statement except with a better message.
6269
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
6270
+ var err = Error(
6271
+ (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
6272
+ 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
6273
+ );
6274
+ err.name = 'Invariant Violation';
6275
+ throw err;
6276
+ }
6277
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
6278
+ } catch (ex) {
6279
+ error = ex;
6280
+ }
6281
+ if (error && !(error instanceof Error)) {
6282
+ printWarning(
6283
+ (componentName || 'React class') + ': type specification of ' +
6284
+ location + ' `' + typeSpecName + '` is invalid; the type checker ' +
6285
+ 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
6286
+ 'You may have forgotten to pass an argument to the type checker ' +
6287
+ 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
6288
+ 'shape all require an argument).'
6289
+ );
6290
+ }
6291
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
6292
+ // Only monitor this failure once because there tends to be a lot of the
6293
+ // same error.
6294
+ loggedTypeFailures[error.message] = true;
6295
+
6296
+ var stack = getStack ? getStack() : '';
6297
+
6298
+ printWarning(
6299
+ 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
6300
+ );
6301
+ }
6302
+ }
6303
+ }
6304
+ }
6305
+ }
6306
+
6307
+ /**
6308
+ * Resets warning cache when testing.
6309
+ *
6310
+ * @private
6311
+ */
6312
+ checkPropTypes.resetWarningCache = function() {
6313
+ if (process.env.NODE_ENV !== 'production') {
6314
+ loggedTypeFailures = {};
6315
+ }
6316
+ }
6317
+
6318
+ module.exports = checkPropTypes;
6319
+
6320
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
6321
+
6322
+ /***/ }),
6323
+ /* 88 */
6324
+ /***/ (function(module, exports, __webpack_require__) {
6325
+
6326
+ "use strict";
6327
+ /**
6328
+ * Copyright (c) 2013-present, Facebook, Inc.
6329
+ *
6330
+ * This source code is licensed under the MIT license found in the
6331
+ * LICENSE file in the root directory of this source tree.
6332
+ */
6333
+
6334
+
6335
+
6336
+ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
6337
+
6338
+ module.exports = ReactPropTypesSecret;
6339
+
6340
+
6341
+ /***/ }),
6342
+ /* 89 */
6343
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6344
+
6345
+ "use strict";
6346
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react_router_es_Router__ = __webpack_require__(90);
6347
+ // Written in this round about way for babel-transform-imports
6348
+
6349
+
6350
+ /* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_0_react_router_es_Router__["a" /* default */]);
6351
+
6352
+ /***/ }),
6353
+ /* 90 */
6354
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6355
+
6356
+ "use strict";
6357
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_warning__ = __webpack_require__(34);
6358
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_warning__);
6359
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_invariant__ = __webpack_require__(35);
6360
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_invariant___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_invariant__);
6361
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
6362
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
6363
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
6364
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
6365
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
6366
+
6367
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6368
+
6369
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
6370
+
6371
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
6372
+
6373
+
6374
+
6375
+
6376
+
6377
+
6378
+ /**
6379
+ * The public API for putting history on context.
6380
+ */
6381
+
6382
+ var Router = function (_React$Component) {
6383
+ _inherits(Router, _React$Component);
6384
+
6385
+ function Router() {
6386
+ var _temp, _this, _ret;
6387
+
6388
+ _classCallCheck(this, Router);
6389
+
6390
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
6391
+ args[_key] = arguments[_key];
6392
+ }
6393
+
6394
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = {
6395
+ match: _this.computeMatch(_this.props.history.location.pathname)
6396
+ }, _temp), _possibleConstructorReturn(_this, _ret);
6397
+ }
6398
+
6399
+ Router.prototype.getChildContext = function getChildContext() {
6400
+ return {
6401
+ router: _extends({}, this.context.router, {
6402
+ history: this.props.history,
6403
+ route: {
6404
+ location: this.props.history.location,
6405
+ match: this.state.match
6406
+ }
6407
+ })
6408
+ };
6409
+ };
6410
+
6411
+ Router.prototype.computeMatch = function computeMatch(pathname) {
6412
+ return {
6413
+ path: "/",
6414
+ url: "/",
6415
+ params: {},
6416
+ isExact: pathname === "/"
6417
+ };
6418
+ };
6419
+
6420
+ Router.prototype.componentWillMount = function componentWillMount() {
6421
+ var _this2 = this;
6422
+
6423
+ var _props = this.props,
6424
+ children = _props.children,
6425
+ history = _props.history;
6426
+
6427
+
6428
+ __WEBPACK_IMPORTED_MODULE_1_invariant___default()(children == null || __WEBPACK_IMPORTED_MODULE_2_react___default.a.Children.count(children) === 1, "A <Router> may have only one child element");
6429
+
6430
+ // Do this here so we can setState when a <Redirect> changes the
6431
+ // location in componentWillMount. This happens e.g. when doing
6432
+ // server rendering using a <StaticRouter>.
6433
+ this.unlisten = history.listen(function () {
6434
+ _this2.setState({
6435
+ match: _this2.computeMatch(history.location.pathname)
6436
+ });
6437
+ });
6438
+ };
6439
+
6440
+ Router.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
6441
+ __WEBPACK_IMPORTED_MODULE_0_warning___default()(this.props.history === nextProps.history, "You cannot change <Router history>");
6442
+ };
6443
+
6444
+ Router.prototype.componentWillUnmount = function componentWillUnmount() {
6445
+ this.unlisten();
6446
+ };
6447
+
6448
+ Router.prototype.render = function render() {
6449
+ var children = this.props.children;
6450
+
6451
+ return children ? __WEBPACK_IMPORTED_MODULE_2_react___default.a.Children.only(children) : null;
6452
+ };
6453
+
6454
+ return Router;
6455
+ }(__WEBPACK_IMPORTED_MODULE_2_react___default.a.Component);
6456
+
6457
+ Router.propTypes = {
6458
+ history: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object.isRequired,
6459
+ children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node
6460
+ };
6461
+ Router.contextTypes = {
6462
+ router: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object
6463
+ };
6464
+ Router.childContextTypes = {
6465
+ router: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object.isRequired
6466
+ };
6467
+
6468
+
6469
+ /* harmony default export */ __webpack_exports__["a"] = (Router);
6470
+
6471
+ /***/ }),
6472
+ /* 91 */
6473
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6474
+
6475
+ "use strict";
6476
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_path_to_regexp__ = __webpack_require__(138);
6477
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_path_to_regexp___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_path_to_regexp__);
6478
+
6479
+
6480
+ var patternCache = {};
6481
+ var cacheLimit = 10000;
6482
+ var cacheCount = 0;
6483
+
6484
+ var compilePath = function compilePath(pattern, options) {
6485
+ var cacheKey = "" + options.end + options.strict + options.sensitive;
6486
+ var cache = patternCache[cacheKey] || (patternCache[cacheKey] = {});
6487
+
6488
+ if (cache[pattern]) return cache[pattern];
6489
+
6490
+ var keys = [];
6491
+ var re = __WEBPACK_IMPORTED_MODULE_0_path_to_regexp___default()(pattern, keys, options);
6492
+ var compiledPattern = { re: re, keys: keys };
6493
+
6494
+ if (cacheCount < cacheLimit) {
6495
+ cache[pattern] = compiledPattern;
6496
+ cacheCount++;
6497
+ }
6498
+
6499
+ return compiledPattern;
6500
+ };
6501
+
6502
+ /**
6503
+ * Public API for matching a URL pathname to a path pattern.
6504
+ */
6505
+ var matchPath = function matchPath(pathname) {
6506
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
6507
+ var parent = arguments[2];
6508
+
6509
+ if (typeof options === "string") options = { path: options };
6510
+
6511
+ var _options = options,
6512
+ path = _options.path,
6513
+ _options$exact = _options.exact,
6514
+ exact = _options$exact === undefined ? false : _options$exact,
6515
+ _options$strict = _options.strict,
6516
+ strict = _options$strict === undefined ? false : _options$strict,
6517
+ _options$sensitive = _options.sensitive,
6518
+ sensitive = _options$sensitive === undefined ? false : _options$sensitive;
6519
+
6520
+
6521
+ if (path == null) return parent;
6522
+
6523
+ var _compilePath = compilePath(path, { end: exact, strict: strict, sensitive: sensitive }),
6524
+ re = _compilePath.re,
6525
+ keys = _compilePath.keys;
6526
+
6527
+ var match = re.exec(pathname);
6528
+
6529
+ if (!match) return null;
6530
+
6531
+ var url = match[0],
6532
+ values = match.slice(1);
6533
+
6534
+ var isExact = pathname === url;
6535
+
6536
+ if (exact && !isExact) return null;
6537
+
6538
+ return {
6539
+ path: path, // the path pattern used to match
6540
+ url: path === "/" && url === "" ? "/" : url, // the matched portion of the URL
6541
+ isExact: isExact, // whether or not we matched exactly
6542
+ params: keys.reduce(function (memo, key, index) {
6543
+ memo[key.name] = values[index];
6544
+ return memo;
6545
+ }, {})
6546
+ };
6547
+ };
6548
+
6549
+ /* harmony default export */ __webpack_exports__["a"] = (matchPath);
6550
+
6551
+ /***/ }),
6552
+ /* 92 */
6553
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6554
+
6555
+ "use strict";
6556
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = chainPropTypes;
6557
+ function chainPropTypes(propType1, propType2) {
6558
+ if (process.env.NODE_ENV === 'production') {
6559
+ return function () {
6560
+ return null;
6561
+ };
6562
+ }
6563
+
6564
+ return function validate() {
6565
+ return propType1.apply(void 0, arguments) || propType2.apply(void 0, arguments);
6566
+ };
6567
+ }
6568
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
6569
+
6570
+ /***/ }),
6571
+ /* 93 */
6572
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6573
+
6574
+ "use strict";
6575
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getThemeProps__ = __webpack_require__(361);
6576
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__getThemeProps__["a"]; });
6577
+
6578
+
6579
+ /***/ }),
6580
+ /* 94 */
6581
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6582
+
6583
+ "use strict";
6584
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__jssPreset__ = __webpack_require__(362);
6585
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__jssPreset__["a"]; });
6586
+
6587
+
6588
+ /***/ }),
6589
+ /* 95 */,
6590
+ /* 96 */
6591
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6592
+
6593
+ "use strict";
6594
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mergeClasses__ = __webpack_require__(375);
6595
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__mergeClasses__["a"]; });
6596
+
6597
+
6598
+ /***/ }),
6599
+ /* 97 */
6600
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6601
+
6602
+ "use strict";
6603
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _classCallCheck;
6604
+ function _classCallCheck(instance, Constructor) {
6605
+ if (!(instance instanceof Constructor)) {
6606
+ throw new TypeError("Cannot call a class as a function");
6607
+ }
6608
+ }
6609
+
6610
+ /***/ }),
6611
+ /* 98 */
6612
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6613
+
6614
+ "use strict";
6615
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__ = __webpack_require__(12);
6616
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
6617
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__material_ui_utils__ = __webpack_require__(7);
6618
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__createBreakpoints__ = __webpack_require__(155);
6619
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__createMixins__ = __webpack_require__(385);
6620
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__createPalette__ = __webpack_require__(386);
6621
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__createTypography__ = __webpack_require__(387);
6622
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__shadows__ = __webpack_require__(388);
6623
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__shape__ = __webpack_require__(389);
6624
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__createSpacing__ = __webpack_require__(390);
6625
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__transitions__ = __webpack_require__(28);
6626
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__zIndex__ = __webpack_require__(176);
6627
+
6628
+
6629
+
6630
+
6631
+
6632
+
6633
+
6634
+
6635
+
6636
+
6637
+
6638
+
6639
+
6640
+ function createMuiTheme() {
6641
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
6642
+
6643
+ var _options$breakpoints = options.breakpoints,
6644
+ breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints,
6645
+ _options$mixins = options.mixins,
6646
+ mixinsInput = _options$mixins === void 0 ? {} : _options$mixins,
6647
+ _options$palette = options.palette,
6648
+ paletteInput = _options$palette === void 0 ? {} : _options$palette,
6649
+ spacingInput = options.spacing,
6650
+ _options$typography = options.typography,
6651
+ typographyInput = _options$typography === void 0 ? {} : _options$typography,
6652
+ other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(options, ["breakpoints", "mixins", "palette", "spacing", "typography"]);
6653
+
6654
+ var palette = Object(__WEBPACK_IMPORTED_MODULE_5__createPalette__["a" /* default */])(paletteInput);
6655
+ var breakpoints = Object(__WEBPACK_IMPORTED_MODULE_3__createBreakpoints__["a" /* default */])(breakpointsInput);
6656
+ var spacing = Object(__WEBPACK_IMPORTED_MODULE_9__createSpacing__["a" /* default */])(spacingInput);
6657
+ var muiTheme = Object(__WEBPACK_IMPORTED_MODULE_2__material_ui_utils__["b" /* deepmerge */])({
6658
+ breakpoints: breakpoints,
6659
+ direction: 'ltr',
6660
+ mixins: Object(__WEBPACK_IMPORTED_MODULE_4__createMixins__["a" /* default */])(breakpoints, spacing, mixinsInput),
6661
+ overrides: {},
6662
+ // Inject custom styles
6663
+ palette: palette,
6664
+ props: {},
6665
+ // Provide default props
6666
+ shadows: __WEBPACK_IMPORTED_MODULE_7__shadows__["a" /* default */],
6667
+ typography: Object(__WEBPACK_IMPORTED_MODULE_6__createTypography__["a" /* default */])(palette, typographyInput),
6668
+ spacing: spacing,
6669
+ shape: __WEBPACK_IMPORTED_MODULE_8__shape__["a" /* default */],
6670
+ transitions: __WEBPACK_IMPORTED_MODULE_10__transitions__["a" /* default */],
6671
+ zIndex: __WEBPACK_IMPORTED_MODULE_11__zIndex__["a" /* default */]
6672
+ }, other);
6673
+
6674
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
6675
+ args[_key - 1] = arguments[_key];
6676
+ }
6677
+
6678
+ muiTheme = args.reduce(function (acc, argument) {
6679
+ return Object(__WEBPACK_IMPORTED_MODULE_2__material_ui_utils__["b" /* deepmerge */])(acc, argument);
6680
+ }, muiTheme);
6681
+
6682
+ if (process.env.NODE_ENV !== 'production') {
6683
+ var pseudoClasses = ['checked', 'disabled', 'error', 'focused', 'focusVisible', 'required', 'expanded', 'selected'];
6684
+
6685
+ var traverse = function traverse(node, parentKey) {
6686
+ var depth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
6687
+ var key; // eslint-disable-next-line guard-for-in, no-restricted-syntax
6688
+
6689
+ for (key in node) {
6690
+ var child = node[key];
6691
+
6692
+ if (depth === 1) {
6693
+ if (key.indexOf('Mui') === 0 && child) {
6694
+ traverse(child, key, depth + 1);
6695
+ }
6696
+ } else if (pseudoClasses.indexOf(key) !== -1 && Object.keys(child).length > 0) {
6697
+ if (process.env.NODE_ENV !== 'production') {
6698
+ console.error(["Material-UI: the `".concat(parentKey, "` component increases ") + "the CSS specificity of the `".concat(key, "` internal state."), 'You can not override it like this: ', JSON.stringify(node, null, 2), '', 'Instead, you need to use the $ruleName syntax:', JSON.stringify({
6699
+ root: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__["a" /* default */])({}, "&$".concat(key), child)
6700
+ }, null, 2), '', 'https://material-ui.com/r/pseudo-classes-guide'].join('\n'));
6701
+ } // Remove the style to prevent global conflicts.
6702
+
6703
+
6704
+ node[key] = {};
6705
+ }
6706
+ }
6707
+ };
6708
+
6709
+ traverse(muiTheme.overrides);
6710
+ }
6711
+
6712
+ return muiTheme;
6713
+ }
6714
+
6715
+ /* harmony default export */ __webpack_exports__["a"] = (createMuiTheme);
6716
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
6717
+
6718
+ /***/ }),
6719
+ /* 99 */
6720
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6721
+
6722
+ "use strict";
6723
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = handleBreakpoints;
6724
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_toConsumableArray__ = __webpack_require__(18);
6725
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
6726
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_typeof__ = __webpack_require__(36);
6727
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
6728
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
6729
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__merge__ = __webpack_require__(71);
6730
+
6731
+
6732
+
6733
+
6734
+ // The breakpoint **start** at this value.
6735
+ // For instance with the first breakpoint xs: [xs, sm[.
6736
+
6737
+ var values = {
6738
+ xs: 0,
6739
+ sm: 600,
6740
+ md: 960,
6741
+ lg: 1280,
6742
+ xl: 1920
6743
+ };
6744
+ var defaultBreakpoints = {
6745
+ // Sorted ASC by size. That's important.
6746
+ // It can't be configured as it's used statically for propTypes.
6747
+ keys: ['xs', 'sm', 'md', 'lg', 'xl'],
6748
+ up: function up(key) {
6749
+ return "@media (min-width:".concat(values[key], "px)");
6750
+ }
6751
+ };
6752
+ function handleBreakpoints(props, propValue, styleFromPropValue) {
6753
+ if (process.env.NODE_ENV !== 'production') {
6754
+ if (!props.theme) {
6755
+ console.error('@material-ui/system: you are calling a style function without a theme value.');
6756
+ }
6757
+ }
6758
+
6759
+ if (Array.isArray(propValue)) {
6760
+ var themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;
6761
+ return propValue.reduce(function (acc, item, index) {
6762
+ acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);
6763
+ return acc;
6764
+ }, {});
6765
+ }
6766
+
6767
+ if (Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_typeof__["a" /* default */])(propValue) === 'object') {
6768
+ var _themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;
6769
+
6770
+ return Object.keys(propValue).reduce(function (acc, breakpoint) {
6771
+ acc[_themeBreakpoints.up(breakpoint)] = styleFromPropValue(propValue[breakpoint]);
6772
+ return acc;
6773
+ }, {});
6774
+ }
6775
+
6776
+ var output = styleFromPropValue(propValue);
6777
+ return output;
6778
+ }
6779
+
6780
+ function breakpoints(styleFunction) {
6781
+ var newStyleFunction = function newStyleFunction(props) {
6782
+ var base = styleFunction(props);
6783
+ var themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;
6784
+ var extended = themeBreakpoints.keys.reduce(function (acc, key) {
6785
+ if (props[key]) {
6786
+ acc = acc || {};
6787
+ acc[themeBreakpoints.up(key)] = styleFunction(Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
6788
+ theme: props.theme
6789
+ }, props[key]));
6790
+ }
6791
+
6792
+ return acc;
6793
+ }, null);
6794
+ return Object(__WEBPACK_IMPORTED_MODULE_4__merge__["a" /* default */])(base, extended);
6795
+ };
6796
+
6797
+ newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, styleFunction.propTypes, {
6798
+ xs: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
6799
+ sm: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
6800
+ md: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
6801
+ lg: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
6802
+ xl: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object
6803
+ }) : {};
6804
+ newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl'].concat(Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(styleFunction.filterProps));
6805
+ return newStyleFunction;
6806
+ }
6807
+
6808
+ /* unused harmony default export */ var _unused_webpack_default_export = (breakpoints);
6809
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
6810
+
6811
+ /***/ }),
6812
+ /* 100 */
6813
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6814
+
6815
+ "use strict";
6816
+ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
6817
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NonceProvider", function() { return NonceProvider; });
6818
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
6819
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
6820
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_memoize_one__ = __webpack_require__(177);
6821
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_core__ = __webpack_require__(101);
6822
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_dom__ = __webpack_require__(10);
6823
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react_dom__);
6824
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(2);
6825
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);
6826
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__utils_06b0d5a4_browser_esm_js__ = __webpack_require__(102);
6827
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__index_4322c0ed_browser_esm_js__ = __webpack_require__(181);
6828
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return __WEBPACK_IMPORTED_MODULE_6__index_4322c0ed_browser_esm_js__["z"]; });
6829
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Select_9fdb8cd0_browser_esm_js__ = __webpack_require__(183);
6830
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "createFilter", function() { return __WEBPACK_IMPORTED_MODULE_7__Select_9fdb8cd0_browser_esm_js__["c"]; });
6831
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "defaultTheme", function() { return __WEBPACK_IMPORTED_MODULE_7__Select_9fdb8cd0_browser_esm_js__["b"]; });
6832
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "mergeStyles", function() { return __WEBPACK_IMPORTED_MODULE_7__Select_9fdb8cd0_browser_esm_js__["d"]; });
6833
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__emotion_css__ = __webpack_require__(53);
6834
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react_input_autosize__ = __webpack_require__(182);
6835
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react_input_autosize___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_react_input_autosize__);
6836
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__stateManager_04f734a2_browser_esm_js__ = __webpack_require__(403);
6837
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__emotion_cache__ = __webpack_require__(178);
6838
+
6839
+
6840
+
6841
+
6842
+
6843
+
6844
+
6845
+
6846
+
6847
+
6848
+
6849
+
6850
+
6851
+
6852
+ function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
6853
+
6854
+ var NonceProvider =
6855
+ /*#__PURE__*/
6856
+ function (_Component) {
6857
+ _inheritsLoose(NonceProvider, _Component);
6858
+
6859
+ function NonceProvider(props) {
6860
+ var _this;
6861
+
6862
+ _this = _Component.call(this, props) || this;
6863
+
6864
+ _this.createEmotionCache = function (nonce) {
6865
+ return Object(__WEBPACK_IMPORTED_MODULE_11__emotion_cache__["a" /* default */])({
6866
+ nonce: nonce
6867
+ });
6868
+ };
6869
+
6870
+ _this.createEmotionCache = Object(__WEBPACK_IMPORTED_MODULE_1_memoize_one__["a" /* default */])(_this.createEmotionCache);
6871
+ return _this;
6872
+ }
6873
+
6874
+ var _proto = NonceProvider.prototype;
6875
+
6876
+ _proto.render = function render() {
6877
+ var emotionCache = this.createEmotionCache(this.props.nonce);
6878
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__emotion_core__["a" /* CacheProvider */], {
6879
+ value: emotionCache
6880
+ }, this.props.children);
6881
+ };
6882
+
6883
+ return NonceProvider;
6884
+ }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
6885
+
6886
+ var index = Object(__WEBPACK_IMPORTED_MODULE_10__stateManager_04f734a2_browser_esm_js__["a" /* m */])(__WEBPACK_IMPORTED_MODULE_7__Select_9fdb8cd0_browser_esm_js__["a" /* S */]);
6887
+
6888
+ /* harmony default export */ __webpack_exports__["default"] = (index);
6889
+
6890
+
6891
+
6892
+ /***/ }),
6893
+ /* 101 */
6894
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
6895
+
6896
+ "use strict";
6897
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CacheProvider; });
6898
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ClassNames; });
6899
+ /* unused harmony export Global */
6900
+ /* unused harmony export ThemeContext */
6901
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return jsx; });
6902
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return keyframes; });
6903
+ /* unused harmony export withEmotionCache */
6904
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose__ = __webpack_require__(396);
6905
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose__);
6906
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
6907
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
6908
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_cache__ = __webpack_require__(178);
6909
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__emotion_utils__ = __webpack_require__(399);
6910
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__emotion_serialize__ = __webpack_require__(180);
6911
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__emotion_sheet__ = __webpack_require__(179);
6912
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__emotion_css__ = __webpack_require__(53);
6913
+ /* unused harmony reexport css */
6914
+
6915
+
6916
+
6917
+
6918
+
6919
+
6920
+
6921
+
6922
+
6923
+ var EmotionCacheContext = Object(__WEBPACK_IMPORTED_MODULE_1_react__["createContext"])( // we're doing this to avoid preconstruct's dead code elimination in this one case
6924
+ // because this module is primarily intended for the browser and node
6925
+ // but it's also required in react native and similar environments sometimes
6926
+ // and we could have a special build just for that
6927
+ // but this is much easier and the native packages
6928
+ // might use a different theme context in the future anyway
6929
+ typeof HTMLElement !== 'undefined' ? Object(__WEBPACK_IMPORTED_MODULE_2__emotion_cache__["a" /* default */])() : null);
6930
+ var ThemeContext = Object(__WEBPACK_IMPORTED_MODULE_1_react__["createContext"])({});
6931
+ var CacheProvider = EmotionCacheContext.Provider;
6932
+
6933
+ var withEmotionCache = function withEmotionCache(func) {
6934
+ var render = function render(props, ref) {
6935
+ return Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(EmotionCacheContext.Consumer, null, function (cache) {
6936
+ return func(props, cache, ref);
6937
+ });
6938
+ }; // $FlowFixMe
6939
+
6940
+
6941
+ return Object(__WEBPACK_IMPORTED_MODULE_1_react__["forwardRef"])(render);
6942
+ };
6943
+
6944
+ // thus we only need to replace what is a valid character for JS, but not for CSS
6945
+
6946
+ var sanitizeIdentifier = function sanitizeIdentifier(identifier) {
6947
+ return identifier.replace(/\$/g, '-');
6948
+ };
6949
+
6950
+ var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
6951
+ var labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__';
6952
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
6953
+
6954
+ var render = function render(cache, props, theme, ref) {
6955
+ var cssProp = theme === null ? props.css : props.css(theme); // so that using `css` from `emotion` and passing the result to the css prop works
6956
+ // not passing the registered cache to serializeStyles because it would
6957
+ // make certain babel optimisations not possible
6958
+
6959
+ if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {
6960
+ cssProp = cache.registered[cssProp];
6961
+ }
6962
+
6963
+ var type = props[typePropName];
6964
+ var registeredStyles = [cssProp];
6965
+ var className = '';
6966
+
6967
+ if (typeof props.className === 'string') {
6968
+ className = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_utils__["a" /* getRegisteredStyles */])(cache.registered, registeredStyles, props.className);
6969
+ } else if (props.className != null) {
6970
+ className = props.className + " ";
6971
+ }
6972
+
6973
+ var serialized = Object(__WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */])(registeredStyles);
6974
+
6975
+ if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) {
6976
+ var labelFromStack = props[labelPropName];
6977
+
6978
+ if (labelFromStack) {
6979
+ serialized = Object(__WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */])([serialized, 'label:' + labelFromStack + ';']);
6980
+ }
6981
+ }
6982
+
6983
+ var rules = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_utils__["b" /* insertStyles */])(cache, serialized, typeof type === 'string');
6984
+ className += cache.key + "-" + serialized.name;
6985
+ var newProps = {};
6986
+
6987
+ for (var key in props) {
6988
+ if (hasOwnProperty.call(props, key) && key !== 'css' && key !== typePropName && (process.env.NODE_ENV === 'production' || key !== labelPropName)) {
6989
+ newProps[key] = props[key];
6990
+ }
6991
+ }
6992
+
6993
+ newProps.ref = ref;
6994
+ newProps.className = className;
6995
+ var ele = Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(type, newProps);
6996
+
6997
+ return ele;
6998
+ };
6999
+
7000
+ var Emotion =
7001
+ /* #__PURE__ */
7002
+ withEmotionCache(function (props, cache, ref) {
7003
+ // use Context.read for the theme when it's stable
7004
+ if (typeof props.css === 'function') {
7005
+ return Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(ThemeContext.Consumer, null, function (theme) {
7006
+ return render(cache, props, theme, ref);
7007
+ });
7008
+ }
7009
+
7010
+ return render(cache, props, null, ref);
7011
+ });
7012
+
7013
+ if (process.env.NODE_ENV !== 'production') {
7014
+ Emotion.displayName = 'EmotionCssPropInternal';
7015
+ } // $FlowFixMe
7016
+
7017
+
7018
+ var jsx = function jsx(type, props) {
7019
+ var args = arguments;
7020
+
7021
+ if (props == null || !hasOwnProperty.call(props, 'css')) {
7022
+ // $FlowFixMe
7023
+ return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"].apply(undefined, args);
7024
+ }
7025
+
7026
+ if (process.env.NODE_ENV !== 'production' && typeof props.css === 'string' && // check if there is a css declaration
7027
+ props.css.indexOf(':') !== -1) {
7028
+ throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/css' like this: css`" + props.css + "`");
7029
+ }
7030
+
7031
+ var argsLength = args.length;
7032
+ var createElementArgArray = new Array(argsLength);
7033
+ createElementArgArray[0] = Emotion;
7034
+ var newProps = {};
7035
+
7036
+ for (var key in props) {
7037
+ if (hasOwnProperty.call(props, key)) {
7038
+ newProps[key] = props[key];
7039
+ }
7040
+ }
7041
+
7042
+ newProps[typePropName] = type;
7043
+
7044
+ if (process.env.NODE_ENV !== 'production') {
7045
+ var error = new Error();
7046
+
7047
+ if (error.stack) {
7048
+ // chrome
7049
+ var match = error.stack.match(/at (?:Object\.|)jsx.*\n\s+at ([A-Z][A-Za-z$]+) /);
7050
+
7051
+ if (!match) {
7052
+ // safari and firefox
7053
+ match = error.stack.match(/.*\n([A-Z][A-Za-z$]+)@/);
7054
+ }
7055
+
7056
+ if (match) {
7057
+ newProps[labelPropName] = sanitizeIdentifier(match[1]);
7058
+ }
7059
+ }
7060
+ }
7061
+
7062
+ createElementArgArray[1] = newProps;
7063
+
7064
+ for (var i = 2; i < argsLength; i++) {
7065
+ createElementArgArray[i] = args[i];
7066
+ } // $FlowFixMe
7067
+
7068
+
7069
+ return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"].apply(null, createElementArgArray);
7070
+ };
7071
+
7072
+ var warnedAboutCssPropForGlobal = false;
7073
+ var Global =
7074
+ /* #__PURE__ */
7075
+ withEmotionCache(function (props, cache) {
7076
+ if (process.env.NODE_ENV !== 'production' && !warnedAboutCssPropForGlobal && ( // check for className as well since the user is
7077
+ // probably using the custom createElement which
7078
+ // means it will be turned into a className prop
7079
+ // $FlowFixMe I don't really want to add it to the type since it shouldn't be used
7080
+ props.className || props.css)) {
7081
+ console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?");
7082
+ warnedAboutCssPropForGlobal = true;
7083
+ }
7084
+
7085
+ var styles = props.styles;
7086
+
7087
+ if (typeof styles === 'function') {
7088
+ return Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(ThemeContext.Consumer, null, function (theme) {
7089
+ var serialized = Object(__WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */])([styles(theme)]);
7090
+ return Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(InnerGlobal, {
7091
+ serialized: serialized,
7092
+ cache: cache
7093
+ });
7094
+ });
7095
+ }
7096
+
7097
+ var serialized = Object(__WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */])([styles]);
7098
+ return Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(InnerGlobal, {
7099
+ serialized: serialized,
7100
+ cache: cache
7101
+ });
7102
+ });
7103
+
7104
+ // maintain place over rerenders.
7105
+ // initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild
7106
+ // initial client-side render from SSR, use place of hydrating tag
7107
+ var InnerGlobal =
7108
+ /*#__PURE__*/
7109
+ function (_React$Component) {
7110
+ __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose___default()(InnerGlobal, _React$Component);
7111
+
7112
+ function InnerGlobal(props, context, updater) {
7113
+ return _React$Component.call(this, props, context, updater) || this;
7114
+ }
7115
+
7116
+ var _proto = InnerGlobal.prototype;
7117
+
7118
+ _proto.componentDidMount = function componentDidMount() {
7119
+ this.sheet = new __WEBPACK_IMPORTED_MODULE_5__emotion_sheet__["a" /* StyleSheet */]({
7120
+ key: this.props.cache.key + "-global",
7121
+ nonce: this.props.cache.sheet.nonce,
7122
+ container: this.props.cache.sheet.container
7123
+ }); // $FlowFixMe
7124
+
7125
+ var node = document.querySelector("style[data-emotion-" + this.props.cache.key + "=\"" + this.props.serialized.name + "\"]");
7126
+
7127
+ if (node !== null) {
7128
+ this.sheet.tags.push(node);
7129
+ }
7130
+
7131
+ if (this.props.cache.sheet.tags.length) {
7132
+ this.sheet.before = this.props.cache.sheet.tags[0];
7133
+ }
7134
+
7135
+ this.insertStyles();
7136
+ };
7137
+
7138
+ _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
7139
+ if (prevProps.serialized.name !== this.props.serialized.name) {
7140
+ this.insertStyles();
7141
+ }
7142
+ };
7143
+
7144
+ _proto.insertStyles = function insertStyles$1() {
7145
+ if (this.props.serialized.next !== undefined) {
7146
+ // insert keyframes
7147
+ Object(__WEBPACK_IMPORTED_MODULE_3__emotion_utils__["b" /* insertStyles */])(this.props.cache, this.props.serialized.next, true);
7148
+ }
7149
+
7150
+ if (this.sheet.tags.length) {
7151
+ // if this doesn't exist then it will be null so the style element will be appended
7152
+ var element = this.sheet.tags[this.sheet.tags.length - 1].nextElementSibling;
7153
+ this.sheet.before = element;
7154
+ this.sheet.flush();
7155
+ }
7156
+
7157
+ this.props.cache.insert("", this.props.serialized, this.sheet, false);
7158
+ };
7159
+
7160
+ _proto.componentWillUnmount = function componentWillUnmount() {
7161
+ this.sheet.flush();
7162
+ };
7163
+
7164
+ _proto.render = function render() {
7165
+
7166
+ return null;
7167
+ };
7168
+
7169
+ return InnerGlobal;
7170
+ }(__WEBPACK_IMPORTED_MODULE_1_react__["Component"]);
7171
+
7172
+ var keyframes = function keyframes() {
7173
+ var insertable = __WEBPACK_IMPORTED_MODULE_6__emotion_css__["a" /* default */].apply(void 0, arguments);
7174
+ var name = "animation-" + insertable.name; // $FlowFixMe
7175
+
7176
+ return {
7177
+ name: name,
7178
+ styles: "@keyframes " + name + "{" + insertable.styles + "}",
7179
+ anim: 1,
7180
+ toString: function toString() {
7181
+ return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
7182
+ }
7183
+ };
7184
+ };
7185
+
7186
+ var classnames = function classnames(args) {
7187
+ var len = args.length;
7188
+ var i = 0;
7189
+ var cls = '';
7190
+
7191
+ for (; i < len; i++) {
7192
+ var arg = args[i];
7193
+ if (arg == null) continue;
7194
+ var toAdd = void 0;
7195
+
7196
+ switch (typeof arg) {
7197
+ case 'boolean':
7198
+ break;
7199
+
7200
+ case 'object':
7201
+ {
7202
+ if (Array.isArray(arg)) {
7203
+ toAdd = classnames(arg);
7204
+ } else {
7205
+ toAdd = '';
7206
+
7207
+ for (var k in arg) {
7208
+ if (arg[k] && k) {
7209
+ toAdd && (toAdd += ' ');
7210
+ toAdd += k;
7211
+ }
7212
+ }
7213
+ }
7214
+
7215
+ break;
7216
+ }
7217
+
7218
+ default:
7219
+ {
7220
+ toAdd = arg;
7221
+ }
7222
+ }
7223
+
7224
+ if (toAdd) {
7225
+ cls && (cls += ' ');
7226
+ cls += toAdd;
7227
+ }
7228
+ }
7229
+
7230
+ return cls;
7231
+ };
7232
+
7233
+ function merge(registered, css, className) {
7234
+ var registeredStyles = [];
7235
+ var rawClassName = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_utils__["a" /* getRegisteredStyles */])(registered, registeredStyles, className);
7236
+
7237
+ if (registeredStyles.length < 2) {
7238
+ return className;
7239
+ }
7240
+
7241
+ return rawClassName + css(registeredStyles);
7242
+ }
7243
+
7244
+ var ClassNames = withEmotionCache(function (props, context) {
7245
+ return Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(ThemeContext.Consumer, null, function (theme) {
7246
+ var hasRendered = false;
7247
+
7248
+ var css = function css() {
7249
+ if (hasRendered && process.env.NODE_ENV !== 'production') {
7250
+ throw new Error('css can only be used during render');
7251
+ }
7252
+
7253
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
7254
+ args[_key] = arguments[_key];
7255
+ }
7256
+
7257
+ var serialized = Object(__WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */])(args, context.registered);
7258
+
7259
+ {
7260
+ Object(__WEBPACK_IMPORTED_MODULE_3__emotion_utils__["b" /* insertStyles */])(context, serialized, false);
7261
+ }
7262
+
7263
+ return context.key + "-" + serialized.name;
7264
+ };
7265
+
7266
+ var cx = function cx() {
7267
+ if (hasRendered && process.env.NODE_ENV !== 'production') {
7268
+ throw new Error('cx can only be used during render');
7269
+ }
7270
+
7271
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
7272
+ args[_key2] = arguments[_key2];
7273
+ }
7274
+
7275
+ return merge(context.registered, css, classnames(args));
7276
+ };
7277
+
7278
+ var content = {
7279
+ css: css,
7280
+ cx: cx,
7281
+ theme: theme
7282
+ };
7283
+ var ele = props.children(content);
7284
+ hasRendered = true;
7285
+
7286
+ return ele;
7287
+ });
7288
+ });
7289
+
7290
+
7291
+
7292
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
7293
+
7294
+ /***/ }),
7295
+ /* 102 */
7296
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
7297
+
7298
+ "use strict";
7299
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getScrollParent; });
7300
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getScrollTop; });
7301
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return animatedScrollTo; });
7302
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isMobileDevice; });
7303
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return cleanValue; });
7304
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return scrollIntoView; });
7305
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return getBoundingClientObj; });
7306
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return classNames; });
7307
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return isTouchCapable; });
7308
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return isDocumentElement; });
7309
+ /* unused harmony export k */
7310
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return noop; });
7311
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return scrollTo; });
7312
+ // ==============================
7313
+ // NO OP
7314
+ // ==============================
7315
+ var noop = function noop() {};
7316
+ // Class Name Prefixer
7317
+ // ==============================
7318
+
7319
+ /**
7320
+ String representation of component state for styling with class names.
7321
+
7322
+ Expects an array of strings OR a string/object pair:
7323
+ - className(['comp', 'comp-arg', 'comp-arg-2'])
7324
+ @returns 'react-select__comp react-select__comp-arg react-select__comp-arg-2'
7325
+ - className('comp', { some: true, state: false })
7326
+ @returns 'react-select__comp react-select__comp--some'
7327
+ */
7328
+
7329
+ function applyPrefixToName(prefix, name) {
7330
+ if (!name) {
7331
+ return prefix;
7332
+ } else if (name[0] === '-') {
7333
+ return prefix + name;
7334
+ } else {
7335
+ return prefix + '__' + name;
7336
+ }
7337
+ }
7338
+
7339
+ function classNames(prefix, state, className) {
7340
+ var arr = [className];
7341
+
7342
+ if (state && prefix) {
7343
+ for (var key in state) {
7344
+ if (state.hasOwnProperty(key) && state[key]) {
7345
+ arr.push("" + applyPrefixToName(prefix, key));
7346
+ }
7347
+ }
7348
+ }
7349
+
7350
+ return arr.filter(function (i) {
7351
+ return i;
7352
+ }).map(function (i) {
7353
+ return String(i).trim();
7354
+ }).join(' ');
7355
+ } // ==============================
7356
+ // Clean Value
7357
+ // ==============================
7358
+
7359
+ var cleanValue = function cleanValue(value) {
7360
+ if (Array.isArray(value)) return value.filter(Boolean);
7361
+ if (typeof value === 'object' && value !== null) return [value];
7362
+ return [];
7363
+ }; // ==============================
7364
+ // Handle Input Change
7365
+ // ==============================
7366
+
7367
+ function handleInputChange(inputValue, actionMeta, onInputChange) {
7368
+ if (onInputChange) {
7369
+ var newValue = onInputChange(inputValue, actionMeta);
7370
+ if (typeof newValue === 'string') return newValue;
7371
+ }
7372
+
7373
+ return inputValue;
7374
+ } // ==============================
7375
+ // Scroll Helpers
7376
+ // ==============================
7377
+
7378
+ function isDocumentElement(el) {
7379
+ return [document.documentElement, document.body, window].indexOf(el) > -1;
7380
+ } // Normalized Scroll Top
7381
+ // ------------------------------
7382
+
7383
+ function getScrollTop(el) {
7384
+ if (isDocumentElement(el)) {
7385
+ return window.pageYOffset;
7386
+ }
7387
+
7388
+ return el.scrollTop;
7389
+ }
7390
+ function scrollTo(el, top) {
7391
+ // with a scroll distance, we perform scroll on the element
7392
+ if (isDocumentElement(el)) {
7393
+ window.scrollTo(0, top);
7394
+ return;
7395
+ }
7396
+
7397
+ el.scrollTop = top;
7398
+ } // Get Scroll Parent
7399
+ // ------------------------------
7400
+
7401
+ function getScrollParent(element) {
7402
+ var style = getComputedStyle(element);
7403
+ var excludeStaticParent = style.position === 'absolute';
7404
+ var overflowRx = /(auto|scroll)/;
7405
+ var docEl = document.documentElement; // suck it, flow...
7406
+
7407
+ if (style.position === 'fixed') return docEl;
7408
+
7409
+ for (var parent = element; parent = parent.parentElement;) {
7410
+ style = getComputedStyle(parent);
7411
+
7412
+ if (excludeStaticParent && style.position === 'static') {
7413
+ continue;
7414
+ }
7415
+
7416
+ if (overflowRx.test(style.overflow + style.overflowY + style.overflowX)) {
7417
+ return parent;
7418
+ }
7419
+ }
7420
+
7421
+ return docEl;
7422
+ } // Animated Scroll To
7423
+ // ------------------------------
7424
+
7425
+ /**
7426
+ @param t: time (elapsed)
7427
+ @param b: initial value
7428
+ @param c: amount of change
7429
+ @param d: duration
7430
+ */
7431
+
7432
+ function easeOutCubic(t, b, c, d) {
7433
+ return c * ((t = t / d - 1) * t * t + 1) + b;
7434
+ }
7435
+
7436
+ function animatedScrollTo(element, to, duration, callback) {
7437
+ if (duration === void 0) {
7438
+ duration = 200;
7439
+ }
7440
+
7441
+ if (callback === void 0) {
7442
+ callback = noop;
7443
+ }
7444
+
7445
+ var start = getScrollTop(element);
7446
+ var change = to - start;
7447
+ var increment = 10;
7448
+ var currentTime = 0;
7449
+
7450
+ function animateScroll() {
7451
+ currentTime += increment;
7452
+ var val = easeOutCubic(currentTime, start, change, duration);
7453
+ scrollTo(element, val);
7454
+
7455
+ if (currentTime < duration) {
7456
+ window.requestAnimationFrame(animateScroll);
7457
+ } else {
7458
+ callback(element);
7459
+ }
7460
+ }
7461
+
7462
+ animateScroll();
7463
+ } // Scroll Into View
7464
+ // ------------------------------
7465
+
7466
+ function scrollIntoView(menuEl, focusedEl) {
7467
+ var menuRect = menuEl.getBoundingClientRect();
7468
+ var focusedRect = focusedEl.getBoundingClientRect();
7469
+ var overScroll = focusedEl.offsetHeight / 3;
7470
+
7471
+ if (focusedRect.bottom + overScroll > menuRect.bottom) {
7472
+ scrollTo(menuEl, Math.min(focusedEl.offsetTop + focusedEl.clientHeight - menuEl.offsetHeight + overScroll, menuEl.scrollHeight));
7473
+ } else if (focusedRect.top - overScroll < menuRect.top) {
7474
+ scrollTo(menuEl, Math.max(focusedEl.offsetTop - overScroll, 0));
7475
+ }
7476
+ } // ==============================
7477
+ // Get bounding client object
7478
+ // ==============================
7479
+ // cannot get keys using array notation with DOMRect
7480
+
7481
+ function getBoundingClientObj(element) {
7482
+ var rect = element.getBoundingClientRect();
7483
+ return {
7484
+ bottom: rect.bottom,
7485
+ height: rect.height,
7486
+ left: rect.left,
7487
+ right: rect.right,
7488
+ top: rect.top,
7489
+ width: rect.width
7490
+ };
7491
+ }
7492
+ // Touch Capability Detector
7493
+ // ==============================
7494
+
7495
+ function isTouchCapable() {
7496
+ try {
7497
+ document.createEvent('TouchEvent');
7498
+ return true;
7499
+ } catch (e) {
7500
+ return false;
7501
+ }
7502
+ } // ==============================
7503
+ // Mobile Device Detector
7504
+ // ==============================
7505
+
7506
+ function isMobileDevice() {
7507
+ try {
7508
+ return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
7509
+ } catch (e) {
7510
+ return false;
7511
+ }
7512
+ }
7513
+
7514
+
7515
+
7516
+
7517
+ /***/ }),
7518
+ /* 103 */
7519
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
7520
+
7521
+ "use strict";
7522
+ /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export UNMOUNTED */
7523
+ /* unused harmony export EXITED */
7524
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ENTERING; });
7525
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ENTERED; });
7526
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return EXITING; });
7527
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(24);
7528
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(25);
7529
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(2);
7530
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__);
7531
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
7532
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
7533
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_dom__ = __webpack_require__(10);
7534
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react_dom__);
7535
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__config__ = __webpack_require__(186);
7536
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__utils_PropTypes__ = __webpack_require__(187);
7537
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__TransitionGroupContext__ = __webpack_require__(104);
7538
+
7539
+
7540
+
7541
+
7542
+
7543
+
7544
+
7545
+
7546
+ var UNMOUNTED = 'unmounted';
7547
+ var EXITED = 'exited';
7548
+ var ENTERING = 'entering';
7549
+ var ENTERED = 'entered';
7550
+ var EXITING = 'exiting';
7551
+ /**
7552
+ * The Transition component lets you describe a transition from one component
7553
+ * state to another _over time_ with a simple declarative API. Most commonly
7554
+ * it's used to animate the mounting and unmounting of a component, but can also
7555
+ * be used to describe in-place transition states as well.
7556
+ *
7557
+ * ---
7558
+ *
7559
+ * **Note**: `Transition` is a platform-agnostic base component. If you're using
7560
+ * transitions in CSS, you'll probably want to use
7561
+ * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)
7562
+ * instead. It inherits all the features of `Transition`, but contains
7563
+ * additional features necessary to play nice with CSS transitions (hence the
7564
+ * name of the component).
7565
+ *
7566
+ * ---
7567
+ *
7568
+ * By default the `Transition` component does not alter the behavior of the
7569
+ * component it renders, it only tracks "enter" and "exit" states for the
7570
+ * components. It's up to you to give meaning and effect to those states. For
7571
+ * example we can add styles to a component when it enters or exits:
7572
+ *
7573
+ * ```jsx
7574
+ * import { Transition } from 'react-transition-group';
7575
+ *
7576
+ * const duration = 300;
7577
+ *
7578
+ * const defaultStyle = {
7579
+ * transition: `opacity ${duration}ms ease-in-out`,
7580
+ * opacity: 0,
7581
+ * }
7582
+ *
7583
+ * const transitionStyles = {
7584
+ * entering: { opacity: 1 },
7585
+ * entered: { opacity: 1 },
7586
+ * exiting: { opacity: 0 },
7587
+ * exited: { opacity: 0 },
7588
+ * };
7589
+ *
7590
+ * const Fade = ({ in: inProp }) => (
7591
+ * <Transition in={inProp} timeout={duration}>
7592
+ * {state => (
7593
+ * <div style={{
7594
+ * ...defaultStyle,
7595
+ * ...transitionStyles[state]
7596
+ * }}>
7597
+ * I'm a fade Transition!
7598
+ * </div>
7599
+ * )}
7600
+ * </Transition>
7601
+ * );
7602
+ * ```
7603
+ *
7604
+ * There are 4 main states a Transition can be in:
7605
+ * - `'entering'`
7606
+ * - `'entered'`
7607
+ * - `'exiting'`
7608
+ * - `'exited'`
7609
+ *
7610
+ * Transition state is toggled via the `in` prop. When `true` the component
7611
+ * begins the "Enter" stage. During this stage, the component will shift from
7612
+ * its current transition state, to `'entering'` for the duration of the
7613
+ * transition and then to the `'entered'` stage once it's complete. Let's take
7614
+ * the following example (we'll use the
7615
+ * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):
7616
+ *
7617
+ * ```jsx
7618
+ * function App() {
7619
+ * const [inProp, setInProp] = useState(false);
7620
+ * return (
7621
+ * <div>
7622
+ * <Transition in={inProp} timeout={500}>
7623
+ * {state => (
7624
+ * // ...
7625
+ * )}
7626
+ * </Transition>
7627
+ * <button onClick={() => setInProp(true)}>
7628
+ * Click to Enter
7629
+ * </button>
7630
+ * </div>
7631
+ * );
7632
+ * }
7633
+ * ```
7634
+ *
7635
+ * When the button is clicked the component will shift to the `'entering'` state
7636
+ * and stay there for 500ms (the value of `timeout`) before it finally switches
7637
+ * to `'entered'`.
7638
+ *
7639
+ * When `in` is `false` the same thing happens except the state moves from
7640
+ * `'exiting'` to `'exited'`.
7641
+ */
7642
+
7643
+ var Transition =
7644
+ /*#__PURE__*/
7645
+ function (_React$Component) {
7646
+ Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(Transition, _React$Component);
7647
+
7648
+ function Transition(props, context) {
7649
+ var _this;
7650
+
7651
+ _this = _React$Component.call(this, props, context) || this;
7652
+ var parentGroup = context; // In the context of a TransitionGroup all enters are really appears
7653
+
7654
+ var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;
7655
+ var initialStatus;
7656
+ _this.appearStatus = null;
7657
+
7658
+ if (props.in) {
7659
+ if (appear) {
7660
+ initialStatus = EXITED;
7661
+ _this.appearStatus = ENTERING;
7662
+ } else {
7663
+ initialStatus = ENTERED;
7664
+ }
7665
+ } else {
7666
+ if (props.unmountOnExit || props.mountOnEnter) {
7667
+ initialStatus = UNMOUNTED;
7668
+ } else {
7669
+ initialStatus = EXITED;
7670
+ }
7671
+ }
7672
+
7673
+ _this.state = {
7674
+ status: initialStatus
7675
+ };
7676
+ _this.nextCallback = null;
7677
+ return _this;
7678
+ }
7679
+
7680
+ Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {
7681
+ var nextIn = _ref.in;
7682
+
7683
+ if (nextIn && prevState.status === UNMOUNTED) {
7684
+ return {
7685
+ status: EXITED
7686
+ };
7687
+ }
7688
+
7689
+ return null;
7690
+ }; // getSnapshotBeforeUpdate(prevProps) {
7691
+ // let nextStatus = null
7692
+ // if (prevProps !== this.props) {
7693
+ // const { status } = this.state
7694
+ // if (this.props.in) {
7695
+ // if (status !== ENTERING && status !== ENTERED) {
7696
+ // nextStatus = ENTERING
7697
+ // }
7698
+ // } else {
7699
+ // if (status === ENTERING || status === ENTERED) {
7700
+ // nextStatus = EXITING
7701
+ // }
7702
+ // }
7703
+ // }
7704
+ // return { nextStatus }
7705
+ // }
7706
+
7707
+
7708
+ var _proto = Transition.prototype;
7709
+
7710
+ _proto.componentDidMount = function componentDidMount() {
7711
+ this.updateStatus(true, this.appearStatus);
7712
+ };
7713
+
7714
+ _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
7715
+ var nextStatus = null;
7716
+
7717
+ if (prevProps !== this.props) {
7718
+ var status = this.state.status;
7719
+
7720
+ if (this.props.in) {
7721
+ if (status !== ENTERING && status !== ENTERED) {
7722
+ nextStatus = ENTERING;
7723
+ }
7724
+ } else {
7725
+ if (status === ENTERING || status === ENTERED) {
7726
+ nextStatus = EXITING;
7727
+ }
7728
+ }
7729
+ }
7730
+
7731
+ this.updateStatus(false, nextStatus);
7732
+ };
7733
+
7734
+ _proto.componentWillUnmount = function componentWillUnmount() {
7735
+ this.cancelNextCallback();
7736
+ };
7737
+
7738
+ _proto.getTimeouts = function getTimeouts() {
7739
+ var timeout = this.props.timeout;
7740
+ var exit, enter, appear;
7741
+ exit = enter = appear = timeout;
7742
+
7743
+ if (timeout != null && typeof timeout !== 'number') {
7744
+ exit = timeout.exit;
7745
+ enter = timeout.enter; // TODO: remove fallback for next major
7746
+
7747
+ appear = timeout.appear !== undefined ? timeout.appear : enter;
7748
+ }
7749
+
7750
+ return {
7751
+ exit: exit,
7752
+ enter: enter,
7753
+ appear: appear
7754
+ };
7755
+ };
7756
+
7757
+ _proto.updateStatus = function updateStatus(mounting, nextStatus) {
7758
+ if (mounting === void 0) {
7759
+ mounting = false;
7760
+ }
7761
+
7762
+ if (nextStatus !== null) {
7763
+ // nextStatus will always be ENTERING or EXITING.
7764
+ this.cancelNextCallback();
7765
+ var node = __WEBPACK_IMPORTED_MODULE_4_react_dom___default.a.findDOMNode(this);
7766
+
7767
+ if (nextStatus === ENTERING) {
7768
+ this.performEnter(node, mounting);
7769
+ } else {
7770
+ this.performExit(node);
7771
+ }
7772
+ } else if (this.props.unmountOnExit && this.state.status === EXITED) {
7773
+ this.setState({
7774
+ status: UNMOUNTED
7775
+ });
7776
+ }
7777
+ };
7778
+
7779
+ _proto.performEnter = function performEnter(node, mounting) {
7780
+ var _this2 = this;
7781
+
7782
+ var enter = this.props.enter;
7783
+ var appearing = this.context ? this.context.isMounting : mounting;
7784
+ var timeouts = this.getTimeouts();
7785
+ var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED
7786
+ // if we are mounting and running this it means appear _must_ be set
7787
+
7788
+ if (!mounting && !enter || __WEBPACK_IMPORTED_MODULE_5__config__["a" /* default */].disabled) {
7789
+ this.safeSetState({
7790
+ status: ENTERED
7791
+ }, function () {
7792
+ _this2.props.onEntered(node);
7793
+ });
7794
+ return;
7795
+ }
7796
+
7797
+ this.props.onEnter(node, appearing);
7798
+ this.safeSetState({
7799
+ status: ENTERING
7800
+ }, function () {
7801
+ _this2.props.onEntering(node, appearing);
7802
+
7803
+ _this2.onTransitionEnd(node, enterTimeout, function () {
7804
+ _this2.safeSetState({
7805
+ status: ENTERED
7806
+ }, function () {
7807
+ _this2.props.onEntered(node, appearing);
7808
+ });
7809
+ });
7810
+ });
7811
+ };
7812
+
7813
+ _proto.performExit = function performExit(node) {
7814
+ var _this3 = this;
7815
+
7816
+ var exit = this.props.exit;
7817
+ var timeouts = this.getTimeouts(); // no exit animation skip right to EXITED
7818
+
7819
+ if (!exit || __WEBPACK_IMPORTED_MODULE_5__config__["a" /* default */].disabled) {
7820
+ this.safeSetState({
7821
+ status: EXITED
7822
+ }, function () {
7823
+ _this3.props.onExited(node);
7824
+ });
7825
+ return;
7826
+ }
7827
+
7828
+ this.props.onExit(node);
7829
+ this.safeSetState({
7830
+ status: EXITING
7831
+ }, function () {
7832
+ _this3.props.onExiting(node);
7833
+
7834
+ _this3.onTransitionEnd(node, timeouts.exit, function () {
7835
+ _this3.safeSetState({
7836
+ status: EXITED
7837
+ }, function () {
7838
+ _this3.props.onExited(node);
7839
+ });
7840
+ });
7841
+ });
7842
+ };
7843
+
7844
+ _proto.cancelNextCallback = function cancelNextCallback() {
7845
+ if (this.nextCallback !== null) {
7846
+ this.nextCallback.cancel();
7847
+ this.nextCallback = null;
7848
+ }
7849
+ };
7850
+
7851
+ _proto.safeSetState = function safeSetState(nextState, callback) {
7852
+ // This shouldn't be necessary, but there are weird race conditions with
7853
+ // setState callbacks and unmounting in testing, so always make sure that
7854
+ // we can cancel any pending setState callbacks after we unmount.
7855
+ callback = this.setNextCallback(callback);
7856
+ this.setState(nextState, callback);
7857
+ };
7858
+
7859
+ _proto.setNextCallback = function setNextCallback(callback) {
7860
+ var _this4 = this;
7861
+
7862
+ var active = true;
7863
+
7864
+ this.nextCallback = function (event) {
7865
+ if (active) {
7866
+ active = false;
7867
+ _this4.nextCallback = null;
7868
+ callback(event);
7869
+ }
7870
+ };
7871
+
7872
+ this.nextCallback.cancel = function () {
7873
+ active = false;
7874
+ };
7875
+
7876
+ return this.nextCallback;
7877
+ };
7878
+
7879
+ _proto.onTransitionEnd = function onTransitionEnd(node, timeout, handler) {
7880
+ this.setNextCallback(handler);
7881
+ var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;
7882
+
7883
+ if (!node || doesNotHaveTimeoutOrListener) {
7884
+ setTimeout(this.nextCallback, 0);
7885
+ return;
7886
+ }
7887
+
7888
+ if (this.props.addEndListener) {
7889
+ this.props.addEndListener(node, this.nextCallback);
7890
+ }
7891
+
7892
+ if (timeout != null) {
7893
+ setTimeout(this.nextCallback, timeout);
7894
+ }
7895
+ };
7896
+
7897
+ _proto.render = function render() {
7898
+ var status = this.state.status;
7899
+
7900
+ if (status === UNMOUNTED) {
7901
+ return null;
7902
+ }
7903
+
7904
+ var _this$props = this.props,
7905
+ children = _this$props.children,
7906
+ childProps = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_this$props, ["children"]); // filter props for Transtition
7907
+
7908
+
7909
+ delete childProps.in;
7910
+ delete childProps.mountOnEnter;
7911
+ delete childProps.unmountOnExit;
7912
+ delete childProps.appear;
7913
+ delete childProps.enter;
7914
+ delete childProps.exit;
7915
+ delete childProps.timeout;
7916
+ delete childProps.addEndListener;
7917
+ delete childProps.onEnter;
7918
+ delete childProps.onEntering;
7919
+ delete childProps.onEntered;
7920
+ delete childProps.onExit;
7921
+ delete childProps.onExiting;
7922
+ delete childProps.onExited;
7923
+
7924
+ if (typeof children === 'function') {
7925
+ // allows for nested Transitions
7926
+ return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__TransitionGroupContext__["a" /* default */].Provider, {
7927
+ value: null
7928
+ }, children(status, childProps));
7929
+ }
7930
+
7931
+ var child = __WEBPACK_IMPORTED_MODULE_3_react___default.a.Children.only(children);
7932
+ return (// allows for nested Transitions
7933
+ __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__TransitionGroupContext__["a" /* default */].Provider, {
7934
+ value: null
7935
+ }, __WEBPACK_IMPORTED_MODULE_3_react___default.a.cloneElement(child, childProps))
7936
+ );
7937
+ };
7938
+
7939
+ return Transition;
7940
+ }(__WEBPACK_IMPORTED_MODULE_3_react___default.a.Component);
7941
+
7942
+ Transition.contextType = __WEBPACK_IMPORTED_MODULE_7__TransitionGroupContext__["a" /* default */];
7943
+ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
7944
+ /**
7945
+ * A `function` child can be used instead of a React element. This function is
7946
+ * called with the current transition status (`'entering'`, `'entered'`,
7947
+ * `'exiting'`, `'exited'`), which can be used to apply context
7948
+ * specific props to a component.
7949
+ *
7950
+ * ```jsx
7951
+ * <Transition in={this.state.in} timeout={150}>
7952
+ * {state => (
7953
+ * <MyComponent className={`fade fade-${state}`} />
7954
+ * )}
7955
+ * </Transition>
7956
+ * ```
7957
+ */
7958
+ children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func.isRequired, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.element.isRequired]).isRequired,
7959
+
7960
+ /**
7961
+ * Show the component; triggers the enter or exit states
7962
+ */
7963
+ in: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
7964
+
7965
+ /**
7966
+ * By default the child component is mounted immediately along with
7967
+ * the parent `Transition` component. If you want to "lazy mount" the component on the
7968
+ * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
7969
+ * mounted, even on "exited", unless you also specify `unmountOnExit`.
7970
+ */
7971
+ mountOnEnter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
7972
+
7973
+ /**
7974
+ * By default the child component stays mounted after it reaches the `'exited'` state.
7975
+ * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
7976
+ */
7977
+ unmountOnExit: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
7978
+
7979
+ /**
7980
+ * Normally a component is not transitioned if it is shown when the
7981
+ * `<Transition>` component mounts. If you want to transition on the first
7982
+ * mount set `appear` to `true`, and the component will transition in as soon
7983
+ * as the `<Transition>` mounts.
7984
+ *
7985
+ * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
7986
+ * > only adds an additional enter transition. However, in the
7987
+ * > `<CSSTransition>` component that first enter transition does result in
7988
+ * > additional `.appear-*` classes, that way you can choose to style it
7989
+ * > differently.
7990
+ */
7991
+ appear: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
7992
+
7993
+ /**
7994
+ * Enable or disable enter transitions.
7995
+ */
7996
+ enter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
7997
+
7998
+ /**
7999
+ * Enable or disable exit transitions.
8000
+ */
8001
+ exit: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
8002
+
8003
+ /**
8004
+ * The duration of the transition, in milliseconds.
8005
+ * Required unless `addEndListener` is provided.
8006
+ *
8007
+ * You may specify a single timeout for all transitions:
8008
+ *
8009
+ * ```jsx
8010
+ * timeout={500}
8011
+ * ```
8012
+ *
8013
+ * or individually:
8014
+ *
8015
+ * ```jsx
8016
+ * timeout={{
8017
+ * appear: 500,
8018
+ * enter: 300,
8019
+ * exit: 500,
8020
+ * }}
8021
+ * ```
8022
+ *
8023
+ * - `appear` defaults to the value of `enter`
8024
+ * - `enter` defaults to `0`
8025
+ * - `exit` defaults to `0`
8026
+ *
8027
+ * @type {number | { enter?: number, exit?: number, appear?: number }}
8028
+ */
8029
+ timeout: function timeout(props) {
8030
+ var pt = __WEBPACK_IMPORTED_MODULE_6__utils_PropTypes__["b" /* timeoutsShape */];
8031
+ if (!props.addEndListener) pt = pt.isRequired;
8032
+
8033
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
8034
+ args[_key - 1] = arguments[_key];
8035
+ }
8036
+
8037
+ return pt.apply(void 0, [props].concat(args));
8038
+ },
8039
+
8040
+ /**
8041
+ * Add a custom transition end trigger. Called with the transitioning
8042
+ * DOM node and a `done` callback. Allows for more fine grained transition end
8043
+ * logic. **Note:** Timeouts are still used as a fallback if provided.
8044
+ *
8045
+ * ```jsx
8046
+ * addEndListener={(node, done) => {
8047
+ * // use the css transitionend event to mark the finish of a transition
8048
+ * node.addEventListener('transitionend', done, false);
8049
+ * }}
8050
+ * ```
8051
+ */
8052
+ addEndListener: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
8053
+
8054
+ /**
8055
+ * Callback fired before the "entering" status is applied. An extra parameter
8056
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
8057
+ *
8058
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
8059
+ */
8060
+ onEnter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
8061
+
8062
+ /**
8063
+ * Callback fired after the "entering" status is applied. An extra parameter
8064
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
8065
+ *
8066
+ * @type Function(node: HtmlElement, isAppearing: bool)
8067
+ */
8068
+ onEntering: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
8069
+
8070
+ /**
8071
+ * Callback fired after the "entered" status is applied. An extra parameter
8072
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
8073
+ *
8074
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
8075
+ */
8076
+ onEntered: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
8077
+
8078
+ /**
8079
+ * Callback fired before the "exiting" status is applied.
8080
+ *
8081
+ * @type Function(node: HtmlElement) -> void
8082
+ */
8083
+ onExit: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
8084
+
8085
+ /**
8086
+ * Callback fired after the "exiting" status is applied.
8087
+ *
8088
+ * @type Function(node: HtmlElement) -> void
8089
+ */
8090
+ onExiting: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
8091
+
8092
+ /**
8093
+ * Callback fired after the "exited" status is applied.
8094
+ *
8095
+ * @type Function(node: HtmlElement) -> void
8096
+ */
8097
+ onExited: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func // Name the function so it is clearer in the documentation
8098
+
8099
+ } : {};
8100
+
8101
+ function noop() {}
8102
+
8103
+ Transition.defaultProps = {
8104
+ in: false,
8105
+ mountOnEnter: false,
8106
+ unmountOnExit: false,
8107
+ appear: false,
8108
+ enter: true,
8109
+ exit: true,
8110
+ onEnter: noop,
8111
+ onEntering: noop,
8112
+ onEntered: noop,
8113
+ onExit: noop,
8114
+ onExiting: noop,
8115
+ onExited: noop
8116
+ };
8117
+ Transition.UNMOUNTED = 0;
8118
+ Transition.EXITED = 1;
8119
+ Transition.ENTERING = 2;
8120
+ Transition.ENTERED = 3;
8121
+ Transition.EXITING = 4;
8122
+ /* harmony default export */ __webpack_exports__["d"] = (Transition);
8123
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
8124
+
8125
+ /***/ }),
8126
+ /* 104 */
8127
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8128
+
8129
+ "use strict";
8130
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
8131
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
8132
+
8133
+ /* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_0_react___default.a.createContext(null));
8134
+
8135
+ /***/ }),
8136
+ /* 105 */
8137
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8138
+
8139
+ "use strict";
8140
+ /* harmony export (immutable) */ __webpack_exports__["a"] = useId;
8141
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
8142
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
8143
+
8144
+ /**
8145
+ * Private module reserved for @material-ui/x packages.
8146
+ */
8147
+
8148
+ function useId(idOverride) {
8149
+ var _React$useState = __WEBPACK_IMPORTED_MODULE_0_react__["useState"](idOverride),
8150
+ defaultId = _React$useState[0],
8151
+ setDefaultId = _React$useState[1];
8152
+
8153
+ var id = idOverride || defaultId;
8154
+ __WEBPACK_IMPORTED_MODULE_0_react__["useEffect"](function () {
8155
+ if (defaultId == null) {
8156
+ // Fallback to this default id when possible.
8157
+ // Use the random value for client-side rendering only.
8158
+ // We can't use it server-side.
8159
+ setDefaultId("mui-".concat(Math.round(Math.random() * 1e5)));
8160
+ }
8161
+ }, [defaultId]);
8162
+ return id;
8163
+ }
8164
+
8165
+ /***/ }),
8166
+ /* 106 */
8167
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8168
+
8169
+ "use strict";
8170
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Avatar__ = __webpack_require__(467);
8171
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Avatar__["a"]; });
8172
+
8173
+
8174
+ /***/ }),
8175
+ /* 107 */
8176
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8177
+
8178
+ "use strict";
8179
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Button__ = __webpack_require__(478);
8180
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Button__["a"]; });
8181
+
8182
+
8183
+ /***/ }),
8184
+ /* 108 */
8185
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8186
+
8187
+ "use strict";
8188
+ /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export styles */
8189
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
8190
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_slicedToArray__ = __webpack_require__(27);
8191
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
8192
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
8193
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
8194
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(2);
8195
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);
8196
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_clsx__ = __webpack_require__(5);
8197
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__material_ui_utils__ = __webpack_require__(7);
8198
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__utils_useControlled__ = __webpack_require__(40);
8199
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__FormControl_useFormControl__ = __webpack_require__(42);
8200
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__styles_withStyles__ = __webpack_require__(6);
8201
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__IconButton__ = __webpack_require__(41);
8202
+
8203
+
8204
+
8205
+
8206
+
8207
+
8208
+
8209
+
8210
+
8211
+
8212
+
8213
+ var styles = {
8214
+ root: {
8215
+ padding: 9
8216
+ },
8217
+ checked: {},
8218
+ disabled: {},
8219
+ input: {
8220
+ cursor: 'inherit',
8221
+ position: 'absolute',
8222
+ opacity: 0,
8223
+ width: '100%',
8224
+ height: '100%',
8225
+ top: 0,
8226
+ left: 0,
8227
+ margin: 0,
8228
+ padding: 0,
8229
+ zIndex: 1
8230
+ }
8231
+ };
8232
+ /**
8233
+ * @ignore - internal component.
8234
+ */
8235
+
8236
+ var SwitchBase = __WEBPACK_IMPORTED_MODULE_3_react__["forwardRef"](function SwitchBase(props, ref) {
8237
+ var autoFocus = props.autoFocus,
8238
+ checkedProp = props.checked,
8239
+ checkedIcon = props.checkedIcon,
8240
+ classes = props.classes,
8241
+ className = props.className,
8242
+ defaultChecked = props.defaultChecked,
8243
+ disabledProp = props.disabled,
8244
+ icon = props.icon,
8245
+ id = props.id,
8246
+ inputProps = props.inputProps,
8247
+ inputRef = props.inputRef,
8248
+ name = props.name,
8249
+ onBlur = props.onBlur,
8250
+ onChange = props.onChange,
8251
+ onFocus = props.onFocus,
8252
+ readOnly = props.readOnly,
8253
+ required = props.required,
8254
+ tabIndex = props.tabIndex,
8255
+ type = props.type,
8256
+ value = props.value,
8257
+ other = Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["autoFocus", "checked", "checkedIcon", "classes", "className", "defaultChecked", "disabled", "icon", "id", "inputProps", "inputRef", "name", "onBlur", "onChange", "onFocus", "readOnly", "required", "tabIndex", "type", "value"]);
8258
+
8259
+ var _useControlled = Object(__WEBPACK_IMPORTED_MODULE_7__utils_useControlled__["a" /* default */])({
8260
+ controlled: checkedProp,
8261
+ default: Boolean(defaultChecked),
8262
+ name: 'SwitchBase',
8263
+ state: 'checked'
8264
+ }),
8265
+ _useControlled2 = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_slicedToArray__["a" /* default */])(_useControlled, 2),
8266
+ checked = _useControlled2[0],
8267
+ setCheckedState = _useControlled2[1];
8268
+
8269
+ var muiFormControl = Object(__WEBPACK_IMPORTED_MODULE_8__FormControl_useFormControl__["a" /* default */])();
8270
+
8271
+ var handleFocus = function handleFocus(event) {
8272
+ if (onFocus) {
8273
+ onFocus(event);
8274
+ }
8275
+
8276
+ if (muiFormControl && muiFormControl.onFocus) {
8277
+ muiFormControl.onFocus(event);
8278
+ }
8279
+ };
8280
+
8281
+ var handleBlur = function handleBlur(event) {
8282
+ if (onBlur) {
8283
+ onBlur(event);
8284
+ }
8285
+
8286
+ if (muiFormControl && muiFormControl.onBlur) {
8287
+ muiFormControl.onBlur(event);
8288
+ }
8289
+ };
8290
+
8291
+ var handleInputChange = function handleInputChange(event) {
8292
+ var newChecked = event.target.checked;
8293
+ setCheckedState(newChecked);
8294
+
8295
+ if (onChange) {
8296
+ // TODO v5: remove the second argument.
8297
+ onChange(event, newChecked);
8298
+ }
8299
+ };
8300
+
8301
+ var disabled = disabledProp;
8302
+
8303
+ if (muiFormControl) {
8304
+ if (typeof disabled === 'undefined') {
8305
+ disabled = muiFormControl.disabled;
8306
+ }
8307
+ }
8308
+
8309
+ var hasLabelFor = type === 'checkbox' || type === 'radio';
8310
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_3_react__["createElement"](__WEBPACK_IMPORTED_MODULE_10__IconButton__["a" /* default */], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
8311
+ component: "span",
8312
+ className: Object(__WEBPACK_IMPORTED_MODULE_5_clsx__["a" /* default */])(classes.root, className, checked && classes.checked, disabled && classes.disabled),
8313
+ disabled: disabled,
8314
+ tabIndex: null,
8315
+ role: undefined,
8316
+ onFocus: handleFocus,
8317
+ onBlur: handleBlur,
8318
+ ref: ref
8319
+ }, other), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_3_react__["createElement"]("input", Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
8320
+ autoFocus: autoFocus,
8321
+ checked: checkedProp,
8322
+ defaultChecked: defaultChecked,
8323
+ className: classes.input,
8324
+ disabled: disabled,
8325
+ id: hasLabelFor && id,
8326
+ name: name,
8327
+ onChange: handleInputChange,
8328
+ readOnly: readOnly,
8329
+ ref: inputRef,
8330
+ required: required,
8331
+ tabIndex: tabIndex,
8332
+ type: type,
8333
+ value: value
8334
+ }, inputProps)), checked ? checkedIcon : icon);
8335
+ }); // NB: If changed, please update Checkbox, Switch and Radio
8336
+ // so that the API documentation is updated.
8337
+
8338
+ process.env.NODE_ENV !== "production" ? SwitchBase.propTypes = {
8339
+ /**
8340
+ * If `true`, the `input` element will be focused during the first mount.
8341
+ */
8342
+ autoFocus: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
8343
+
8344
+ /**
8345
+ * If `true`, the component is checked.
8346
+ */
8347
+ checked: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
8348
+
8349
+ /**
8350
+ * The icon to display when the component is checked.
8351
+ */
8352
+ checkedIcon: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node.isRequired,
8353
+
8354
+ /**
8355
+ * Override or extend the styles applied to the component.
8356
+ * See [CSS API](#css) below for more details.
8357
+ */
8358
+ classes: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object.isRequired,
8359
+
8360
+ /**
8361
+ * @ignore
8362
+ */
8363
+ className: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
8364
+
8365
+ /**
8366
+ * @ignore
8367
+ */
8368
+ defaultChecked: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
8369
+
8370
+ /**
8371
+ * If `true`, the switch will be disabled.
8372
+ */
8373
+ disabled: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
8374
+
8375
+ /**
8376
+ * The icon to display when the component is unchecked.
8377
+ */
8378
+ icon: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node.isRequired,
8379
+
8380
+ /**
8381
+ * The id of the `input` element.
8382
+ */
8383
+ id: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
8384
+
8385
+ /**
8386
+ * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
8387
+ */
8388
+ inputProps: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
8389
+
8390
+ /**
8391
+ * Pass a ref to the `input` element.
8392
+ */
8393
+ inputRef: __WEBPACK_IMPORTED_MODULE_6__material_ui_utils__["h" /* refType */],
8394
+
8395
+ /*
8396
+ * @ignore
8397
+ */
8398
+ name: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
8399
+
8400
+ /**
8401
+ * @ignore
8402
+ */
8403
+ onBlur: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
8404
+
8405
+ /**
8406
+ * Callback fired when the state is changed.
8407
+ *
8408
+ * @param {object} event The event source of the callback.
8409
+ * You can pull out the new checked state by accessing `event.target.checked` (boolean).
8410
+ */
8411
+ onChange: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
8412
+
8413
+ /**
8414
+ * @ignore
8415
+ */
8416
+ onFocus: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
8417
+
8418
+ /**
8419
+ * It prevents the user from changing the value of the field
8420
+ * (not from interacting with the field).
8421
+ */
8422
+ readOnly: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
8423
+
8424
+ /**
8425
+ * If `true`, the `input` element will be required.
8426
+ */
8427
+ required: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
8428
+
8429
+ /**
8430
+ * @ignore
8431
+ */
8432
+ tabIndex: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string]),
8433
+
8434
+ /**
8435
+ * The input component prop `type`.
8436
+ */
8437
+ type: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string.isRequired,
8438
+
8439
+ /**
8440
+ * The value of the component.
8441
+ */
8442
+ value: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.any
8443
+ } : void 0;
8444
+ /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__styles_withStyles__["a" /* default */])(styles, {
8445
+ name: 'PrivateSwitchBase'
8446
+ })(SwitchBase));
8447
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
8448
+
8449
+ /***/ }),
8450
+ /* 109 */
8451
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8452
+
8453
+ "use strict";
8454
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Chip__ = __webpack_require__(490);
8455
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Chip__["a"]; });
8456
+
8457
+
8458
+ /***/ }),
8459
+ /* 110 */
8460
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8461
+
8462
+ "use strict";
8463
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ClickAwayListener__ = __webpack_require__(493);
8464
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ClickAwayListener__["a"]; });
8465
+
8466
+
8467
+ /***/ }),
8468
+ /* 111 */
8469
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8470
+
8471
+ "use strict";
8472
+ /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export styles */
8473
+ /* harmony export (immutable) */ __webpack_exports__["c"] = isHorizontal;
8474
+ /* harmony export (immutable) */ __webpack_exports__["b"] = getAnchor;
8475
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
8476
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
8477
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
8478
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
8479
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
8480
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
8481
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_clsx__ = __webpack_require__(5);
8482
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Modal__ = __webpack_require__(59);
8483
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Backdrop__ = __webpack_require__(76);
8484
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__styles_withStyles__ = __webpack_require__(6);
8485
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Slide__ = __webpack_require__(74);
8486
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__Paper__ = __webpack_require__(21);
8487
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_capitalize__ = __webpack_require__(8);
8488
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__styles_transitions__ = __webpack_require__(28);
8489
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__styles_useTheme__ = __webpack_require__(13);
8490
+
8491
+
8492
+
8493
+
8494
+
8495
+
8496
+
8497
+
8498
+
8499
+
8500
+
8501
+
8502
+
8503
+ var styles = function styles(theme) {
8504
+ return {
8505
+ /* Styles applied to the root element. */
8506
+ root: {},
8507
+
8508
+ /* Styles applied to the root element if `variant="permanent or persistent"`. */
8509
+ docked: {
8510
+ flex: '0 0 auto'
8511
+ },
8512
+
8513
+ /* Styles applied to the `Paper` component. */
8514
+ paper: {
8515
+ overflowY: 'auto',
8516
+ display: 'flex',
8517
+ flexDirection: 'column',
8518
+ height: '100%',
8519
+ flex: '1 0 auto',
8520
+ zIndex: theme.zIndex.drawer,
8521
+ WebkitOverflowScrolling: 'touch',
8522
+ // Add iOS momentum scrolling.
8523
+ // temporary style
8524
+ position: 'fixed',
8525
+ top: 0,
8526
+ // We disable the focus ring for mouse, touch and keyboard users.
8527
+ // At some point, it would be better to keep it for keyboard users.
8528
+ // :focus-ring CSS pseudo-class will help.
8529
+ outline: 0
8530
+ },
8531
+
8532
+ /* Styles applied to the `Paper` component if `anchor="left"`. */
8533
+ paperAnchorLeft: {
8534
+ left: 0,
8535
+ right: 'auto'
8536
+ },
8537
+
8538
+ /* Styles applied to the `Paper` component if `anchor="right"`. */
8539
+ paperAnchorRight: {
8540
+ left: 'auto',
8541
+ right: 0
8542
+ },
8543
+
8544
+ /* Styles applied to the `Paper` component if `anchor="top"`. */
8545
+ paperAnchorTop: {
8546
+ top: 0,
8547
+ left: 0,
8548
+ bottom: 'auto',
8549
+ right: 0,
8550
+ height: 'auto',
8551
+ maxHeight: '100%'
8552
+ },
8553
+
8554
+ /* Styles applied to the `Paper` component if `anchor="bottom"`. */
8555
+ paperAnchorBottom: {
8556
+ top: 'auto',
8557
+ left: 0,
8558
+ bottom: 0,
8559
+ right: 0,
8560
+ height: 'auto',
8561
+ maxHeight: '100%'
8562
+ },
8563
+
8564
+ /* Styles applied to the `Paper` component if `anchor="left"` and `variant` is not "temporary". */
8565
+ paperAnchorDockedLeft: {
8566
+ borderRight: "1px solid ".concat(theme.palette.divider)
8567
+ },
8568
+
8569
+ /* Styles applied to the `Paper` component if `anchor="top"` and `variant` is not "temporary". */
8570
+ paperAnchorDockedTop: {
8571
+ borderBottom: "1px solid ".concat(theme.palette.divider)
8572
+ },
8573
+
8574
+ /* Styles applied to the `Paper` component if `anchor="right"` and `variant` is not "temporary". */
8575
+ paperAnchorDockedRight: {
8576
+ borderLeft: "1px solid ".concat(theme.palette.divider)
8577
+ },
8578
+
8579
+ /* Styles applied to the `Paper` component if `anchor="bottom"` and `variant` is not "temporary". */
8580
+ paperAnchorDockedBottom: {
8581
+ borderTop: "1px solid ".concat(theme.palette.divider)
8582
+ },
8583
+
8584
+ /* Styles applied to the `Modal` component. */
8585
+ modal: {}
8586
+ };
8587
+ };
8588
+ var oppositeDirection = {
8589
+ left: 'right',
8590
+ right: 'left',
8591
+ top: 'down',
8592
+ bottom: 'up'
8593
+ };
8594
+ function isHorizontal(anchor) {
8595
+ return ['left', 'right'].indexOf(anchor) !== -1;
8596
+ }
8597
+ function getAnchor(theme, anchor) {
8598
+ return theme.direction === 'rtl' && isHorizontal(anchor) ? oppositeDirection[anchor] : anchor;
8599
+ }
8600
+ var defaultTransitionDuration = {
8601
+ enter: __WEBPACK_IMPORTED_MODULE_11__styles_transitions__["b" /* duration */].enteringScreen,
8602
+ exit: __WEBPACK_IMPORTED_MODULE_11__styles_transitions__["b" /* duration */].leavingScreen
8603
+ };
8604
+ /**
8605
+ * The props of the [Modal](/api/modal/) component are available
8606
+ * when `variant="temporary"` is set.
8607
+ */
8608
+
8609
+ var Drawer = __WEBPACK_IMPORTED_MODULE_2_react__["forwardRef"](function Drawer(props, ref) {
8610
+ var _props$anchor = props.anchor,
8611
+ anchorProp = _props$anchor === void 0 ? 'left' : _props$anchor,
8612
+ BackdropProps = props.BackdropProps,
8613
+ children = props.children,
8614
+ classes = props.classes,
8615
+ className = props.className,
8616
+ _props$elevation = props.elevation,
8617
+ elevation = _props$elevation === void 0 ? 16 : _props$elevation,
8618
+ _props$ModalProps = props.ModalProps;
8619
+ _props$ModalProps = _props$ModalProps === void 0 ? {} : _props$ModalProps;
8620
+
8621
+ var BackdropPropsProp = _props$ModalProps.BackdropProps,
8622
+ ModalProps = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_props$ModalProps, ["BackdropProps"]),
8623
+ onClose = props.onClose,
8624
+ _props$open = props.open,
8625
+ open = _props$open === void 0 ? false : _props$open,
8626
+ _props$PaperProps = props.PaperProps,
8627
+ PaperProps = _props$PaperProps === void 0 ? {} : _props$PaperProps,
8628
+ SlideProps = props.SlideProps,
8629
+ _props$TransitionComp = props.TransitionComponent,
8630
+ TransitionComponent = _props$TransitionComp === void 0 ? __WEBPACK_IMPORTED_MODULE_8__Slide__["a" /* default */] : _props$TransitionComp,
8631
+ _props$transitionDura = props.transitionDuration,
8632
+ transitionDuration = _props$transitionDura === void 0 ? defaultTransitionDuration : _props$transitionDura,
8633
+ _props$variant = props.variant,
8634
+ variant = _props$variant === void 0 ? 'temporary' : _props$variant,
8635
+ other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["anchor", "BackdropProps", "children", "classes", "className", "elevation", "ModalProps", "onClose", "open", "PaperProps", "SlideProps", "TransitionComponent", "transitionDuration", "variant"]);
8636
+
8637
+ var theme = Object(__WEBPACK_IMPORTED_MODULE_12__styles_useTheme__["a" /* default */])(); // Let's assume that the Drawer will always be rendered on user space.
8638
+ // We use this state is order to skip the appear transition during the
8639
+ // initial mount of the component.
8640
+
8641
+ var mounted = __WEBPACK_IMPORTED_MODULE_2_react__["useRef"](false);
8642
+ __WEBPACK_IMPORTED_MODULE_2_react__["useEffect"](function () {
8643
+ mounted.current = true;
8644
+ }, []);
8645
+ var anchor = getAnchor(theme, anchorProp);
8646
+ var drawer = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](__WEBPACK_IMPORTED_MODULE_9__Paper__["a" /* default */], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
8647
+ elevation: variant === 'temporary' ? elevation : 0,
8648
+ square: true
8649
+ }, PaperProps, {
8650
+ className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.paper, classes["paperAnchor".concat(Object(__WEBPACK_IMPORTED_MODULE_10__utils_capitalize__["a" /* default */])(anchor))], PaperProps.className, variant !== 'temporary' && classes["paperAnchorDocked".concat(Object(__WEBPACK_IMPORTED_MODULE_10__utils_capitalize__["a" /* default */])(anchor))])
8651
+ }), children);
8652
+
8653
+ if (variant === 'permanent') {
8654
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"]("div", Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
8655
+ className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.root, classes.docked, className),
8656
+ ref: ref
8657
+ }, other), drawer);
8658
+ }
8659
+
8660
+ var slidingDrawer = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](TransitionComponent, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
8661
+ in: open,
8662
+ direction: oppositeDirection[anchor],
8663
+ timeout: transitionDuration,
8664
+ appear: mounted.current
8665
+ }, SlideProps), drawer);
8666
+
8667
+ if (variant === 'persistent') {
8668
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"]("div", Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
8669
+ className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.root, classes.docked, className),
8670
+ ref: ref
8671
+ }, other), slidingDrawer);
8672
+ } // variant === temporary
8673
+
8674
+
8675
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](__WEBPACK_IMPORTED_MODULE_5__Modal__["a" /* default */], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
8676
+ BackdropProps: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, BackdropProps, {}, BackdropPropsProp, {
8677
+ transitionDuration: transitionDuration
8678
+ }),
8679
+ BackdropComponent: __WEBPACK_IMPORTED_MODULE_6__Backdrop__["a" /* default */],
8680
+ className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.root, classes.modal, className),
8681
+ open: open,
8682
+ onClose: onClose,
8683
+ ref: ref
8684
+ }, other, ModalProps), slidingDrawer);
8685
+ });
8686
+ process.env.NODE_ENV !== "production" ? Drawer.propTypes = {
8687
+ // ----------------------------- Warning --------------------------------
8688
+ // | These PropTypes are generated from the TypeScript type definitions |
8689
+ // | To update them edit the d.ts file and run "yarn proptypes" |
8690
+ // ----------------------------------------------------------------------
8691
+
8692
+ /**
8693
+ * Side from which the drawer will appear.
8694
+ */
8695
+ anchor: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(['bottom', 'left', 'right', 'top']),
8696
+
8697
+ /**
8698
+ * @ignore
8699
+ */
8700
+ BackdropProps: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
8701
+
8702
+ /**
8703
+ * The contents of the drawer.
8704
+ */
8705
+ children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node,
8706
+
8707
+ /**
8708
+ * Override or extend the styles applied to the component.
8709
+ * See [CSS API](#css) below for more details.
8710
+ */
8711
+ classes: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
8712
+
8713
+ /**
8714
+ * @ignore
8715
+ */
8716
+ className: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string,
8717
+
8718
+ /**
8719
+ * The elevation of the drawer.
8720
+ */
8721
+ elevation: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number,
8722
+
8723
+ /**
8724
+ * Props applied to the [`Modal`](/api/modal/) element.
8725
+ */
8726
+ ModalProps: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
8727
+
8728
+ /**
8729
+ * Callback fired when the component requests to be closed.
8730
+ *
8731
+ * @param {object} event The event source of the callback.
8732
+ */
8733
+ onClose: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
8734
+
8735
+ /**
8736
+ * If `true`, the drawer is open.
8737
+ */
8738
+ open: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
8739
+
8740
+ /**
8741
+ * Props applied to the [`Paper`](/api/paper/) element.
8742
+ */
8743
+ PaperProps: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
8744
+
8745
+ /**
8746
+ * Props applied to the [`Slide`](/api/slide/) element.
8747
+ */
8748
+ SlideProps: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
8749
+
8750
+ /**
8751
+ * The duration for the transition, in milliseconds.
8752
+ * You may specify a single timeout for all transitions, or individually with an object.
8753
+ */
8754
+ transitionDuration: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.shape({
8755
+ appear: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number,
8756
+ enter: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number,
8757
+ exit: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number
8758
+ })]),
8759
+
8760
+ /**
8761
+ * The variant to use.
8762
+ */
8763
+ variant: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(['permanent', 'persistent', 'temporary'])
8764
+ } : void 0;
8765
+ /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_7__styles_withStyles__["a" /* default */])(styles, {
8766
+ name: 'MuiDrawer',
8767
+ flip: false
8768
+ })(Drawer));
8769
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
8770
+
8771
+ /***/ }),
8772
+ /* 112 */
8773
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8774
+
8775
+ "use strict";
8776
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TextareaAutosize__ = __webpack_require__(514);
8777
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TextareaAutosize__["a"]; });
8778
+
8779
+
8780
+ /***/ }),
8781
+ /* 113 */
8782
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8783
+
8784
+ "use strict";
8785
+ /* unused harmony export hasValue */
8786
+ /* harmony export (immutable) */ __webpack_exports__["b"] = isFilled;
8787
+ /* harmony export (immutable) */ __webpack_exports__["a"] = isAdornedStart;
8788
+ // Supports determination of isControlled().
8789
+ // Controlled input accepts its current value as a prop.
8790
+ //
8791
+ // @see https://facebook.github.io/react/docs/forms.html#controlled-components
8792
+ // @param value
8793
+ // @returns {boolean} true if string (including '') or number (including zero)
8794
+ function hasValue(value) {
8795
+ return value != null && !(Array.isArray(value) && value.length === 0);
8796
+ } // Determine if field is empty or filled.
8797
+ // Response determines if label is presented above field or as placeholder.
8798
+ //
8799
+ // @param obj
8800
+ // @param SSR
8801
+ // @returns {boolean} False when not present or empty string.
8802
+ // True when any number or string with length.
8803
+
8804
+ function isFilled(obj) {
8805
+ var SSR = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
8806
+ return obj && (hasValue(obj.value) && obj.value !== '' || SSR && hasValue(obj.defaultValue) && obj.defaultValue !== '');
8807
+ } // Determine if an Input is adorned on start.
8808
+ // It's corresponding to the left with LTR.
8809
+ //
8810
+ // @param obj
8811
+ // @returns {boolean} False when no adornments.
8812
+ // True when adorned at the start.
8813
+
8814
+ function isAdornedStart(obj) {
8815
+ return obj.startAdornment;
8816
+ }
8817
+
8818
+ /***/ }),
8819
+ /* 114 */
8820
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8821
+
8822
+ "use strict";
8823
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormGroup__ = __webpack_require__(517);
8824
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FormGroup__["a"]; });
8825
+
8826
+
8827
+ /***/ }),
8828
+ /* 115 */
8829
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8830
+
8831
+ "use strict";
8832
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormHelperText__ = __webpack_require__(518);
8833
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FormHelperText__["a"]; });
8834
+
8835
+
8836
+ /***/ }),
8837
+ /* 116 */
8838
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8839
+
8840
+ "use strict";
8841
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormLabel__ = __webpack_require__(519);
8842
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FormLabel__["a"]; });
8843
+
8844
+
8845
+ /***/ }),
8846
+ /* 117 */
8847
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8848
+
8849
+ "use strict";
8850
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__useMediaQuery__ = __webpack_require__(526);
8851
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__useMediaQuery__["a"]; });
8852
+
8853
+
8854
+ /***/ }),
8855
+ /* 118 */
8856
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8857
+
8858
+ "use strict";
8859
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__InputLabel__ = __webpack_require__(530);
8860
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__InputLabel__["a"]; });
8861
+
8862
+
8863
+ /***/ }),
8864
+ /* 119 */
8865
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8866
+
8867
+ "use strict";
8868
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__LinearProgress__ = __webpack_require__(531);
8869
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__LinearProgress__["a"]; });
8870
+
8871
+
8872
+ /***/ }),
8873
+ /* 120 */
8874
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8875
+
8876
+ "use strict";
8877
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__List__ = __webpack_require__(533);
8878
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__List__["a"]; });
8879
+
8880
+
8881
+ /***/ }),
8882
+ /* 121 */
8883
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8884
+
8885
+ "use strict";
8886
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListItem__ = __webpack_require__(534);
8887
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ListItem__["a"]; });
8888
+
8889
+
8890
+ /***/ }),
8891
+ /* 122 */
8892
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8893
+
8894
+ "use strict";
8895
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListSubheader__ = __webpack_require__(539);
8896
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ListSubheader__["a"]; });
8897
+
8898
+
8899
+ /***/ }),
8900
+ /* 123 */
8901
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8902
+
8903
+ "use strict";
8904
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Popover__ = __webpack_require__(540);
8905
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Popover__["a"]; });
8906
+
8907
+
8908
+ /***/ }),
8909
+ /* 124 */
8910
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8911
+
8912
+ "use strict";
8913
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MenuList__ = __webpack_require__(541);
8914
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__MenuList__["a"]; });
8915
+
8916
+
8917
+ /***/ }),
8918
+ /* 125 */
8919
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8920
+
8921
+ "use strict";
8922
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MenuItem__ = __webpack_require__(542);
8923
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__MenuItem__["a"]; });
8924
+
8925
+
8926
+ /***/ }),
8927
+ /* 126 */
8928
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8929
+
8930
+ "use strict";
8931
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__NoSsr__ = __webpack_require__(544);
8932
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__NoSsr__["a"]; });
8933
+
8934
+
8935
+ /***/ }),
8936
+ /* 127 */
8937
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8938
+
8939
+ "use strict";
8940
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SnackbarContent__ = __webpack_require__(565);
8941
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__SnackbarContent__["a"]; });
8942
+
8943
+
8944
+ /***/ }),
8945
+ /* 128 */
8946
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8947
+
8948
+ "use strict";
8949
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StepLabel__ = __webpack_require__(568);
8950
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__StepLabel__["a"]; });
8951
+
8952
+
8953
+ /***/ }),
8954
+ /* 129 */
8955
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8956
+
8957
+ "use strict";
8958
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StepIcon__ = __webpack_require__(569);
8959
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__StepIcon__["a"]; });
8960
+
8961
+
8962
+ /***/ }),
8963
+ /* 130 */
8964
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8965
+
8966
+ "use strict";
8967
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StepConnector__ = __webpack_require__(572);
8968
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__StepConnector__["a"]; });
8969
+
8970
+
8971
+ /***/ }),
8972
+ /* 131 */
8973
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8974
+
8975
+ "use strict";
8976
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TableCell__ = __webpack_require__(581);
8977
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TableCell__["a"]; });
8978
+
8979
+
8980
+ /***/ }),
8981
+ /* 132 */
8982
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8983
+
8984
+ "use strict";
8985
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Toolbar__ = __webpack_require__(586);
8986
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Toolbar__["a"]; });
8987
+
8988
+
8989
+ /***/ }),
8990
+ /* 133 */
8991
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
8992
+
8993
+ "use strict";
8994
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__PaginationItem__ = __webpack_require__(606);
8995
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__PaginationItem__["a"]; });
8996
+
8997
+
8998
+ /***/ }),
8999
+ /* 134 */
9000
+ /***/ (function(module, exports, __webpack_require__) {
9001
+
9002
+ "use strict";
9003
+ /* WEBPACK VAR INJECTION */(function(process) {
9004
+
9005
+ if (process.env.NODE_ENV === 'production') {
9006
+ module.exports = __webpack_require__(302);
9007
+ } else {
9008
+ module.exports = __webpack_require__(303);
9009
+ }
9010
+
9011
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
9012
+
9013
+ /***/ }),
9014
+ /* 135 */
9015
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
9016
+
9017
+ "use strict";
9018
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
9019
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
9020
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(2);
9021
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
9022
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_invariant__ = __webpack_require__(35);
9023
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_invariant___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_invariant__);
9024
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_history__ = __webpack_require__(44);
9025
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
9026
+
9027
+ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
9028
+
9029
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9030
+
9031
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
9032
+
9033
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
9034
+
9035
+
9036
+
9037
+
9038
+
9039
+
9040
+ var isModifiedEvent = function isModifiedEvent(event) {
9041
+ return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
9042
+ };
9043
+
9044
+ /**
9045
+ * The public API for rendering a history-aware <a>.
9046
+ */
9047
+
9048
+ var Link = function (_React$Component) {
9049
+ _inherits(Link, _React$Component);
9050
+
9051
+ function Link() {
9052
+ var _temp, _this, _ret;
9053
+
9054
+ _classCallCheck(this, Link);
9055
+
9056
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
9057
+ args[_key] = arguments[_key];
9058
+ }
9059
+
9060
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.handleClick = function (event) {
9061
+ if (_this.props.onClick) _this.props.onClick(event);
9062
+
9063
+ if (!event.defaultPrevented && // onClick prevented default
9064
+ event.button === 0 && // ignore everything but left clicks
9065
+ !_this.props.target && // let browser handle "target=_blank" etc.
9066
+ !isModifiedEvent(event) // ignore clicks with modifier keys
9067
+ ) {
9068
+ event.preventDefault();
9069
+
9070
+ var history = _this.context.router.history;
9071
+ var _this$props = _this.props,
9072
+ replace = _this$props.replace,
9073
+ to = _this$props.to;
9074
+
9075
+
9076
+ if (replace) {
9077
+ history.replace(to);
9078
+ } else {
9079
+ history.push(to);
9080
+ }
9081
+ }
9082
+ }, _temp), _possibleConstructorReturn(_this, _ret);
9083
+ }
9084
+
9085
+ Link.prototype.render = function render() {
9086
+ var _props = this.props,
9087
+ replace = _props.replace,
9088
+ to = _props.to,
9089
+ innerRef = _props.innerRef,
9090
+ props = _objectWithoutProperties(_props, ["replace", "to", "innerRef"]); // eslint-disable-line no-unused-vars
9091
+
9092
+ __WEBPACK_IMPORTED_MODULE_2_invariant___default()(this.context.router, "You should not use <Link> outside a <Router>");
9093
+
9094
+ __WEBPACK_IMPORTED_MODULE_2_invariant___default()(to !== undefined, 'You must specify the "to" property');
9095
+
9096
+ var history = this.context.router.history;
9097
+
9098
+ var location = typeof to === "string" ? Object(__WEBPACK_IMPORTED_MODULE_3_history__["c" /* createLocation */])(to, null, null, history.location) : to;
9099
+
9100
+ var href = history.createHref(location);
9101
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("a", _extends({}, props, { onClick: this.handleClick, href: href, ref: innerRef }));
9102
+ };
9103
+
9104
+ return Link;
9105
+ }(__WEBPACK_IMPORTED_MODULE_0_react___default.a.Component);
9106
+
9107
+ Link.propTypes = {
9108
+ onClick: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func,
9109
+ target: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string,
9110
+ replace: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,
9111
+ to: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object]).isRequired,
9112
+ innerRef: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func])
9113
+ };
9114
+ Link.defaultProps = {
9115
+ replace: false
9116
+ };
9117
+ Link.contextTypes = {
9118
+ router: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape({
9119
+ history: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.shape({
9120
+ push: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired,
9121
+ replace: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired,
9122
+ createHref: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired
9123
+ }).isRequired
9124
+ }).isRequired
9125
+ };
9126
+
9127
+
9128
+ /* harmony default export */ __webpack_exports__["a"] = (Link);
9129
+
9130
+ /***/ }),
9131
+ /* 136 */
9132
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
9133
+
9134
+ "use strict";
9135
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react_router_es_Route__ = __webpack_require__(137);
9136
+ // Written in this round about way for babel-transform-imports
9137
+
9138
+
9139
+ /* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_0_react_router_es_Route__["a" /* default */]);
9140
+
9141
+ /***/ }),
9142
+ /* 137 */
9143
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
9144
+
9145
+ "use strict";
9146
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_warning__ = __webpack_require__(34);
9147
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_warning___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_warning__);
9148
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_invariant__ = __webpack_require__(35);
9149
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_invariant___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_invariant__);
9150
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
9151
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
9152
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
9153
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
9154
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__matchPath__ = __webpack_require__(91);
9155
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
9156
+
9157
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9158
+
9159
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
9160
+
9161
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
9162
+
9163
+
9164
+
9165
+
9166
+
9167
+
9168
+
9169
+ var isEmptyChildren = function isEmptyChildren(children) {
9170
+ return __WEBPACK_IMPORTED_MODULE_2_react___default.a.Children.count(children) === 0;
9171
+ };
9172
+
9173
+ /**
9174
+ * The public API for matching a single path and rendering.
9175
+ */
9176
+
9177
+ var Route = function (_React$Component) {
9178
+ _inherits(Route, _React$Component);
9179
+
9180
+ function Route() {
9181
+ var _temp, _this, _ret;
9182
+
9183
+ _classCallCheck(this, Route);
9184
+
9185
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
9186
+ args[_key] = arguments[_key];
9187
+ }
9188
+
9189
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = {
9190
+ match: _this.computeMatch(_this.props, _this.context.router)
9191
+ }, _temp), _possibleConstructorReturn(_this, _ret);
9192
+ }
9193
+
9194
+ Route.prototype.getChildContext = function getChildContext() {
9195
+ return {
9196
+ router: _extends({}, this.context.router, {
9197
+ route: {
9198
+ location: this.props.location || this.context.router.route.location,
9199
+ match: this.state.match
9200
+ }
9201
+ })
9202
+ };
9203
+ };
9204
+
9205
+ Route.prototype.computeMatch = function computeMatch(_ref, router) {
9206
+ var computedMatch = _ref.computedMatch,
9207
+ location = _ref.location,
9208
+ path = _ref.path,
9209
+ strict = _ref.strict,
9210
+ exact = _ref.exact,
9211
+ sensitive = _ref.sensitive;
9212
+
9213
+ if (computedMatch) return computedMatch; // <Switch> already computed the match for us
9214
+
9215
+ __WEBPACK_IMPORTED_MODULE_1_invariant___default()(router, "You should not use <Route> or withRouter() outside a <Router>");
9216
+
9217
+ var route = router.route;
9218
+
9219
+ var pathname = (location || route.location).pathname;
9220
+
9221
+ return Object(__WEBPACK_IMPORTED_MODULE_4__matchPath__["a" /* default */])(pathname, { path: path, strict: strict, exact: exact, sensitive: sensitive }, route.match);
9222
+ };
9223
+
9224
+ Route.prototype.componentWillMount = function componentWillMount() {
9225
+ __WEBPACK_IMPORTED_MODULE_0_warning___default()(!(this.props.component && this.props.render), "You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored");
9226
+
9227
+ __WEBPACK_IMPORTED_MODULE_0_warning___default()(!(this.props.component && this.props.children && !isEmptyChildren(this.props.children)), "You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored");
9228
+
9229
+ __WEBPACK_IMPORTED_MODULE_0_warning___default()(!(this.props.render && this.props.children && !isEmptyChildren(this.props.children)), "You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored");
9230
+ };
9231
+
9232
+ Route.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps, nextContext) {
9233
+ __WEBPACK_IMPORTED_MODULE_0_warning___default()(!(nextProps.location && !this.props.location), '<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.');
9234
+
9235
+ __WEBPACK_IMPORTED_MODULE_0_warning___default()(!(!nextProps.location && this.props.location), '<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.');
9236
+
9237
+ this.setState({
9238
+ match: this.computeMatch(nextProps, nextContext.router)
9239
+ });
9240
+ };
9241
+
9242
+ Route.prototype.render = function render() {
9243
+ var match = this.state.match;
9244
+ var _props = this.props,
9245
+ children = _props.children,
9246
+ component = _props.component,
9247
+ render = _props.render;
9248
+ var _context$router = this.context.router,
9249
+ history = _context$router.history,
9250
+ route = _context$router.route,
9251
+ staticContext = _context$router.staticContext;
9252
+
9253
+ var location = this.props.location || route.location;
9254
+ var props = { match: match, location: location, history: history, staticContext: staticContext };
9255
+
9256
+ if (component) return match ? __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(component, props) : null;
9257
+
9258
+ if (render) return match ? render(props) : null;
9259
+
9260
+ if (typeof children === "function") return children(props);
9261
+
9262
+ if (children && !isEmptyChildren(children)) return __WEBPACK_IMPORTED_MODULE_2_react___default.a.Children.only(children);
9263
+
9264
+ return null;
9265
+ };
9266
+
9267
+ return Route;
9268
+ }(__WEBPACK_IMPORTED_MODULE_2_react___default.a.Component);
9269
+
9270
+ Route.propTypes = {
9271
+ computedMatch: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object, // private, from <Switch>
9272
+ path: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string,
9273
+ exact: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
9274
+ strict: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
9275
+ sensitive: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
9276
+ component: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
9277
+ render: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
9278
+ children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node]),
9279
+ location: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object
9280
+ };
9281
+ Route.contextTypes = {
9282
+ router: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.shape({
9283
+ history: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object.isRequired,
9284
+ route: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object.isRequired,
9285
+ staticContext: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object
9286
+ })
9287
+ };
9288
+ Route.childContextTypes = {
9289
+ router: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object.isRequired
9290
+ };
9291
+
9292
+
9293
+ /* harmony default export */ __webpack_exports__["a"] = (Route);
9294
+
9295
+ /***/ }),
9296
+ /* 138 */
9297
+ /***/ (function(module, exports, __webpack_require__) {
9298
+
9299
+ var isarray = __webpack_require__(320)
9300
+
9301
+ /**
9302
+ * Expose `pathToRegexp`.
9303
+ */
9304
+ module.exports = pathToRegexp
9305
+ module.exports.parse = parse
9306
+ module.exports.compile = compile
9307
+ module.exports.tokensToFunction = tokensToFunction
9308
+ module.exports.tokensToRegExp = tokensToRegExp
9309
+
9310
+ /**
9311
+ * The main path matching regexp utility.
9312
+ *
9313
+ * @type {RegExp}
9314
+ */
9315
+ var PATH_REGEXP = new RegExp([
9316
+ // Match escaped characters that would otherwise appear in future matches.
9317
+ // This allows the user to escape special characters that won't transform.
9318
+ '(\\\\.)',
9319
+ // Match Express-style parameters and un-named parameters with a prefix
9320
+ // and optional suffixes. Matches appear as:
9321
+ //
9322
+ // "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined]
9323
+ // "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined, undefined]
9324
+ // "/*" => ["/", undefined, undefined, undefined, undefined, "*"]
9325
+ '([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))'
9326
+ ].join('|'), 'g')
9327
+
9328
+ /**
9329
+ * Parse a string for the raw tokens.
9330
+ *
9331
+ * @param {string} str
9332
+ * @param {Object=} options
9333
+ * @return {!Array}
9334
+ */
9335
+ function parse (str, options) {
9336
+ var tokens = []
9337
+ var key = 0
9338
+ var index = 0
9339
+ var path = ''
9340
+ var defaultDelimiter = options && options.delimiter || '/'
9341
+ var res
9342
+
9343
+ while ((res = PATH_REGEXP.exec(str)) != null) {
9344
+ var m = res[0]
9345
+ var escaped = res[1]
9346
+ var offset = res.index
9347
+ path += str.slice(index, offset)
9348
+ index = offset + m.length
9349
+
9350
+ // Ignore already escaped sequences.
9351
+ if (escaped) {
9352
+ path += escaped[1]
9353
+ continue
9354
+ }
9355
+
9356
+ var next = str[index]
9357
+ var prefix = res[2]
9358
+ var name = res[3]
9359
+ var capture = res[4]
9360
+ var group = res[5]
9361
+ var modifier = res[6]
9362
+ var asterisk = res[7]
9363
+
9364
+ // Push the current path onto the tokens.
9365
+ if (path) {
9366
+ tokens.push(path)
9367
+ path = ''
9368
+ }
9369
+
9370
+ var partial = prefix != null && next != null && next !== prefix
9371
+ var repeat = modifier === '+' || modifier === '*'
9372
+ var optional = modifier === '?' || modifier === '*'
9373
+ var delimiter = res[2] || defaultDelimiter
9374
+ var pattern = capture || group
9375
+
9376
+ tokens.push({
9377
+ name: name || key++,
9378
+ prefix: prefix || '',
9379
+ delimiter: delimiter,
9380
+ optional: optional,
9381
+ repeat: repeat,
9382
+ partial: partial,
9383
+ asterisk: !!asterisk,
9384
+ pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?')
9385
+ })
9386
+ }
9387
+
9388
+ // Match any characters still remaining.
9389
+ if (index < str.length) {
9390
+ path += str.substr(index)
9391
+ }
9392
+
9393
+ // If the path exists, push it onto the end.
9394
+ if (path) {
9395
+ tokens.push(path)
9396
+ }
9397
+
9398
+ return tokens
9399
+ }
9400
+
9401
+ /**
9402
+ * Compile a string to a template function for the path.
9403
+ *
9404
+ * @param {string} str
9405
+ * @param {Object=} options
9406
+ * @return {!function(Object=, Object=)}
9407
+ */
9408
+ function compile (str, options) {
9409
+ return tokensToFunction(parse(str, options), options)
9410
+ }
9411
+
9412
+ /**
9413
+ * Prettier encoding of URI path segments.
9414
+ *
9415
+ * @param {string}
9416
+ * @return {string}
9417
+ */
9418
+ function encodeURIComponentPretty (str) {
9419
+ return encodeURI(str).replace(/[\/?#]/g, function (c) {
9420
+ return '%' + c.charCodeAt(0).toString(16).toUpperCase()
9421
+ })
9422
+ }
9423
+
9424
+ /**
9425
+ * Encode the asterisk parameter. Similar to `pretty`, but allows slashes.
9426
+ *
9427
+ * @param {string}
9428
+ * @return {string}
9429
+ */
9430
+ function encodeAsterisk (str) {
9431
+ return encodeURI(str).replace(/[?#]/g, function (c) {
9432
+ return '%' + c.charCodeAt(0).toString(16).toUpperCase()
9433
+ })
9434
+ }
9435
+
9436
+ /**
9437
+ * Expose a method for transforming tokens into the path function.
9438
+ */
9439
+ function tokensToFunction (tokens, options) {
9440
+ // Compile all the tokens into regexps.
9441
+ var matches = new Array(tokens.length)
9442
+
9443
+ // Compile all the patterns before compilation.
9444
+ for (var i = 0; i < tokens.length; i++) {
9445
+ if (typeof tokens[i] === 'object') {
9446
+ matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$', flags(options))
9447
+ }
9448
+ }
9449
+
9450
+ return function (obj, opts) {
9451
+ var path = ''
9452
+ var data = obj || {}
9453
+ var options = opts || {}
9454
+ var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent
9455
+
9456
+ for (var i = 0; i < tokens.length; i++) {
9457
+ var token = tokens[i]
9458
+
9459
+ if (typeof token === 'string') {
9460
+ path += token
9461
+
9462
+ continue
9463
+ }
9464
+
9465
+ var value = data[token.name]
9466
+ var segment
9467
+
9468
+ if (value == null) {
9469
+ if (token.optional) {
9470
+ // Prepend partial segment prefixes.
9471
+ if (token.partial) {
9472
+ path += token.prefix
9473
+ }
9474
+
9475
+ continue
9476
+ } else {
9477
+ throw new TypeError('Expected "' + token.name + '" to be defined')
9478
+ }
9479
+ }
9480
+
9481
+ if (isarray(value)) {
9482
+ if (!token.repeat) {
9483
+ throw new TypeError('Expected "' + token.name + '" to not repeat, but received `' + JSON.stringify(value) + '`')
9484
+ }
9485
+
9486
+ if (value.length === 0) {
9487
+ if (token.optional) {
9488
+ continue
9489
+ } else {
9490
+ throw new TypeError('Expected "' + token.name + '" to not be empty')
9491
+ }
9492
+ }
9493
+
9494
+ for (var j = 0; j < value.length; j++) {
9495
+ segment = encode(value[j])
9496
+
9497
+ if (!matches[i].test(segment)) {
9498
+ throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but received `' + JSON.stringify(segment) + '`')
9499
+ }
9500
+
9501
+ path += (j === 0 ? token.prefix : token.delimiter) + segment
9502
+ }
9503
+
9504
+ continue
9505
+ }
9506
+
9507
+ segment = token.asterisk ? encodeAsterisk(value) : encode(value)
9508
+
9509
+ if (!matches[i].test(segment)) {
9510
+ throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but received "' + segment + '"')
9511
+ }
9512
+
9513
+ path += token.prefix + segment
9514
+ }
9515
+
9516
+ return path
9517
+ }
9518
+ }
9519
+
9520
+ /**
9521
+ * Escape a regular expression string.
9522
+ *
9523
+ * @param {string} str
9524
+ * @return {string}
9525
+ */
9526
+ function escapeString (str) {
9527
+ return str.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1')
9528
+ }
9529
+
9530
+ /**
9531
+ * Escape the capturing group by escaping special characters and meaning.
9532
+ *
9533
+ * @param {string} group
9534
+ * @return {string}
9535
+ */
9536
+ function escapeGroup (group) {
9537
+ return group.replace(/([=!:$\/()])/g, '\\$1')
9538
+ }
9539
+
9540
+ /**
9541
+ * Attach the keys as a property of the regexp.
9542
+ *
9543
+ * @param {!RegExp} re
9544
+ * @param {Array} keys
9545
+ * @return {!RegExp}
9546
+ */
9547
+ function attachKeys (re, keys) {
9548
+ re.keys = keys
9549
+ return re
9550
+ }
9551
+
9552
+ /**
9553
+ * Get the flags for a regexp from the options.
9554
+ *
9555
+ * @param {Object} options
9556
+ * @return {string}
9557
+ */
9558
+ function flags (options) {
9559
+ return options && options.sensitive ? '' : 'i'
9560
+ }
9561
+
9562
+ /**
9563
+ * Pull out keys from a regexp.
9564
+ *
9565
+ * @param {!RegExp} path
9566
+ * @param {!Array} keys
9567
+ * @return {!RegExp}
9568
+ */
9569
+ function regexpToRegexp (path, keys) {
9570
+ // Use a negative lookahead to match only capturing groups.
9571
+ var groups = path.source.match(/\((?!\?)/g)
9572
+
9573
+ if (groups) {
9574
+ for (var i = 0; i < groups.length; i++) {
9575
+ keys.push({
9576
+ name: i,
9577
+ prefix: null,
9578
+ delimiter: null,
9579
+ optional: false,
9580
+ repeat: false,
9581
+ partial: false,
9582
+ asterisk: false,
9583
+ pattern: null
9584
+ })
9585
+ }
9586
+ }
9587
+
9588
+ return attachKeys(path, keys)
9589
+ }
9590
+
9591
+ /**
9592
+ * Transform an array into a regexp.
9593
+ *
9594
+ * @param {!Array} path
9595
+ * @param {Array} keys
9596
+ * @param {!Object} options
9597
+ * @return {!RegExp}
9598
+ */
9599
+ function arrayToRegexp (path, keys, options) {
9600
+ var parts = []
9601
+
9602
+ for (var i = 0; i < path.length; i++) {
9603
+ parts.push(pathToRegexp(path[i], keys, options).source)
9604
+ }
9605
+
9606
+ var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options))
9607
+
9608
+ return attachKeys(regexp, keys)
9609
+ }
9610
+
9611
+ /**
9612
+ * Create a path regexp from string input.
9613
+ *
9614
+ * @param {string} path
9615
+ * @param {!Array} keys
9616
+ * @param {!Object} options
9617
+ * @return {!RegExp}
9618
+ */
9619
+ function stringToRegexp (path, keys, options) {
9620
+ return tokensToRegExp(parse(path, options), keys, options)
9621
+ }
9622
+
9623
+ /**
9624
+ * Expose a function for taking tokens and returning a RegExp.
9625
+ *
9626
+ * @param {!Array} tokens
9627
+ * @param {(Array|Object)=} keys
9628
+ * @param {Object=} options
9629
+ * @return {!RegExp}
9630
+ */
9631
+ function tokensToRegExp (tokens, keys, options) {
9632
+ if (!isarray(keys)) {
9633
+ options = /** @type {!Object} */ (keys || options)
9634
+ keys = []
9635
+ }
9636
+
9637
+ options = options || {}
9638
+
9639
+ var strict = options.strict
9640
+ var end = options.end !== false
9641
+ var route = ''
9642
+
9643
+ // Iterate over the tokens and create our regexp string.
9644
+ for (var i = 0; i < tokens.length; i++) {
9645
+ var token = tokens[i]
9646
+
9647
+ if (typeof token === 'string') {
9648
+ route += escapeString(token)
9649
+ } else {
9650
+ var prefix = escapeString(token.prefix)
9651
+ var capture = '(?:' + token.pattern + ')'
9652
+
9653
+ keys.push(token)
9654
+
9655
+ if (token.repeat) {
9656
+ capture += '(?:' + prefix + capture + ')*'
9657
+ }
9658
+
9659
+ if (token.optional) {
9660
+ if (!token.partial) {
9661
+ capture = '(?:' + prefix + '(' + capture + '))?'
9662
+ } else {
9663
+ capture = prefix + '(' + capture + ')?'
9664
+ }
9665
+ } else {
9666
+ capture = prefix + '(' + capture + ')'
9667
+ }
9668
+
9669
+ route += capture
9670
+ }
9671
+ }
9672
+
9673
+ var delimiter = escapeString(options.delimiter || '/')
9674
+ var endsWithDelimiter = route.slice(-delimiter.length) === delimiter
9675
+
9676
+ // In non-strict mode we allow a slash at the end of match. If the path to
9677
+ // match already ends with a slash, we remove it for consistency. The slash
9678
+ // is valid at the end of a path match, not in the middle. This is important
9679
+ // in non-ending mode, where "/test/" shouldn't match "/test//route".
9680
+ if (!strict) {
9681
+ route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?'
9682
+ }
9683
+
9684
+ if (end) {
9685
+ route += '$'
9686
+ } else {
9687
+ // In non-ending mode, we need the capturing groups to match as much as
9688
+ // possible by using a positive lookahead to the end or next path segment.
9689
+ route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)'
9690
+ }
9691
+
9692
+ return attachKeys(new RegExp('^' + route, flags(options)), keys)
9693
+ }
9694
+
9695
+ /**
9696
+ * Normalize the given path string, returning a regular expression.
9697
+ *
9698
+ * An empty array can be passed in for the keys, which will hold the
9699
+ * placeholder key descriptions. For example, using `/user/:id`, `keys` will
9700
+ * contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
9701
+ *
9702
+ * @param {(string|RegExp|Array)} path
9703
+ * @param {(Array|Object)=} keys
9704
+ * @param {Object=} options
9705
+ * @return {!RegExp}
9706
+ */
9707
+ function pathToRegexp (path, keys, options) {
9708
+ if (!isarray(keys)) {
9709
+ options = /** @type {!Object} */ (keys || options)
9710
+ keys = []
9711
+ }
9712
+
9713
+ options = options || {}
9714
+
9715
+ if (path instanceof RegExp) {
9716
+ return regexpToRegexp(path, /** @type {!Array} */ (keys))
9717
+ }
9718
+
9719
+ if (isarray(path)) {
9720
+ return arrayToRegexp(/** @type {!Array} */ (path), /** @type {!Array} */ (keys), options)
9721
+ }
9722
+
9723
+ return stringToRegexp(/** @type {string} */ (path), /** @type {!Array} */ (keys), options)
9724
+ }
9725
+
9726
+
9727
+ /***/ }),
9728
+ /* 139 */
9729
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
9730
+
9731
+ "use strict";
9732
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_path_to_regexp__ = __webpack_require__(138);
9733
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_path_to_regexp___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_path_to_regexp__);
9734
+
9735
+
9736
+ var patternCache = {};
9737
+ var cacheLimit = 10000;
9738
+ var cacheCount = 0;
9739
+
9740
+ var compileGenerator = function compileGenerator(pattern) {
9741
+ var cacheKey = pattern;
9742
+ var cache = patternCache[cacheKey] || (patternCache[cacheKey] = {});
9743
+
9744
+ if (cache[pattern]) return cache[pattern];
9745
+
9746
+ var compiledGenerator = __WEBPACK_IMPORTED_MODULE_0_path_to_regexp___default.a.compile(pattern);
9747
+
9748
+ if (cacheCount < cacheLimit) {
9749
+ cache[pattern] = compiledGenerator;
9750
+ cacheCount++;
9751
+ }
9752
+
9753
+ return compiledGenerator;
9754
+ };
9755
+
9756
+ /**
9757
+ * Public API for generating a URL pathname from a pattern and parameters.
9758
+ */
9759
+ var generatePath = function generatePath() {
9760
+ var pattern = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "/";
9761
+ var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
9762
+
9763
+ if (pattern === "/") {
9764
+ return pattern;
9765
+ }
9766
+ var generator = compileGenerator(pattern);
9767
+ return generator(params, { pretty: true });
9768
+ };
9769
+
9770
+ /* harmony default export */ __webpack_exports__["a"] = (generatePath);
9771
+
9772
+ /***/ }),
9773
+ /* 140 */
9774
+ /***/ (function(module, exports, __webpack_require__) {
9775
+
9776
+ "use strict";
9777
+
9778
+
9779
+ Object.defineProperty(exports, "__esModule", {
9780
+ value: true
9781
+ });
9782
+ exports["default"] = void 0;
9783
+
9784
+ var _react = _interopRequireWildcard(__webpack_require__(0));
9785
+
9786
+ var _reactRouterDom = __webpack_require__(33);
9787
+
9788
+ var _reactDom = _interopRequireDefault(__webpack_require__(10));
9789
+
9790
+ __webpack_require__(335);
9791
+
9792
+ var _QuadsAdConfig = _interopRequireDefault(__webpack_require__(336));
9793
+
9794
+ var _QuadsAdTargeting = _interopRequireDefault(__webpack_require__(348));
9795
+
9796
+ var _QuadsAdPublish = _interopRequireDefault(__webpack_require__(409));
9797
+
9798
+ var _queryString = _interopRequireDefault(__webpack_require__(23));
9799
+
9800
+ var _Icon = _interopRequireDefault(__webpack_require__(30));
9801
+
9802
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9803
+
9804
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
9805
+
9806
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
9807
+
9808
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
9809
+
9810
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
9811
+
9812
+ function _readOnlyError(name) { throw new Error("\"" + name + "\" is read-only"); }
9813
+
9814
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9815
+
9816
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9817
+
9818
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
9819
+
9820
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
9821
+
9822
+ function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
9823
+
9824
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9825
+
9826
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
9827
+
9828
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
9829
+
9830
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9831
+
9832
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
9833
+
9834
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
9835
+
9836
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
9837
+
9838
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9839
+
9840
+ function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9841
+
9842
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
9843
+
9844
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
9845
+
9846
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
9847
+
9848
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
9849
+
9850
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9851
+
9852
+ var QuadsAdCreateRouter = /*#__PURE__*/function (_Component) {
9853
+ _inherits(QuadsAdCreateRouter, _Component);
9854
+
9855
+ var _super = _createSuper(QuadsAdCreateRouter);
9856
+
9857
+ function QuadsAdCreateRouter(props) {
9858
+ var _this;
9859
+
9860
+ _classCallCheck(this, QuadsAdCreateRouter);
9861
+
9862
+ var visibility_include_def_val = [{
9863
+ type: {
9864
+ label: "Post Type",
9865
+ value: "post_type"
9866
+ },
9867
+ value: {
9868
+ label: "post",
9869
+ value: "post"
9870
+ }
9871
+ }];
9872
+ _this = _super.call(this, props);
9873
+
9874
+ _defineProperty(_assertThisInitialized(_this), "updateVisitorTarget", function (include, exclude) {
9875
+ _this.includedVal = include;
9876
+ _this.excludedVal = exclude;
9877
+ });
9878
+
9879
+ _defineProperty(_assertThisInitialized(_this), "updateVisibility", function (include, exclude) {
9880
+ _this.includedVisibilityVal = include;
9881
+ _this.excludedVisibilityVal = exclude;
9882
+ });
9883
+
9884
+ _defineProperty(_assertThisInitialized(_this), "getAdDataById", function (ad_id) {
9885
+ var url = quads_localize_data.rest_url + 'quads-route/get-ad-by-id?ad-id=' + ad_id;
9886
+ fetch(url, {
9887
+ headers: {
9888
+ 'X-WP-Nonce': quads_localize_data.nonce
9889
+ }
9890
+ }).then(function (res) {
9891
+ return res.json();
9892
+ }).then(function (result) {
9893
+ var _this$state = _objectSpread({}, _this.state),
9894
+ quads_post_meta = _this$state.quads_post_meta;
9895
+
9896
+ Object.entries(result).map(function (_ref) {
9897
+ var _ref2 = _slicedToArray(_ref, 2),
9898
+ key = _ref2[0],
9899
+ value = _ref2[1];
9900
+
9901
+ if (key == 'post') {
9902
+ _this.setState({
9903
+ quads_post: result.post
9904
+ });
9905
+ } else {
9906
+ Object.entries(value).map(function (_ref3) {
9907
+ var _ref4 = _slicedToArray(_ref3, 2),
9908
+ meta_key = _ref4[0],
9909
+ meta_val = _ref4[1];
9910
+
9911
+ if (meta_val) {
9912
+ quads_post_meta[meta_key] = meta_val;
9913
+ }
9914
+ });
9915
+
9916
+ _this.setState(quads_post_meta);
9917
+ }
9918
+ });
9919
+ }, function (error) {});
9920
+ });
9921
+
9922
+ _defineProperty(_assertThisInitialized(_this), "removeVisibilityIncludeItem", function (e) {
9923
+ e.preventDefault();
9924
+ var index = e.currentTarget.dataset.index;
9925
+
9926
+ var _this$state2 = _objectSpread({}, _this.state),
9927
+ quads_post_meta = _this$state2.quads_post_meta;
9928
+
9929
+ quads_post_meta.visibility_include.splice(index, 1);
9930
+
9931
+ _this.setState(quads_post_meta);
9932
+ });
9933
+
9934
+ _defineProperty(_assertThisInitialized(_this), "removeVisibilityExcludeItem", function (e) {
9935
+ e.preventDefault();
9936
+ var index = e.currentTarget.dataset.index;
9937
+
9938
+ var _this$state3 = _objectSpread({}, _this.state),
9939
+ quads_post_meta = _this$state3.quads_post_meta;
9940
+
9941
+ quads_post_meta.visibility_exclude.splice(index, 1);
9942
+
9943
+ _this.setState(quads_post_meta);
9944
+ });
9945
+
9946
+ _defineProperty(_assertThisInitialized(_this), "onListSearchHover", function () {});
9947
+
9948
+ _defineProperty(_assertThisInitialized(_this), "addIncludeFromSearch", function (e) {
9949
+ e.preventDefault();
9950
+ var id = e.currentTarget.dataset.id;
9951
+ var text = e.currentTarget.dataset.text;
9952
+
9953
+ _this.setState({
9954
+ quads_include_input_id: id,
9955
+ quads_include_input_text: text
9956
+ });
9957
+
9958
+ var _this$state4 = _objectSpread({}, _this.state),
9959
+ quads_post_meta = _this$state4.quads_post_meta;
9960
+
9961
+ quads_post_meta.include_dropdown = false;
9962
+
9963
+ _this.setState(quads_post_meta);
9964
+ });
9965
+
9966
+ _defineProperty(_assertThisInitialized(_this), "addExcludeFromSearch", function (e) {
9967
+ e.preventDefault();
9968
+ var id = e.currentTarget.dataset.id;
9969
+ var text = e.currentTarget.dataset.text;
9970
+
9971
+ _this.setState({
9972
+ quads_exclude_input_id: id,
9973
+ quads_exclude_input_text: text
9974
+ });
9975
+
9976
+ var _this$state5 = _objectSpread({}, _this.state),
9977
+ quads_post_meta = _this$state5.quads_post_meta;
9978
+
9979
+ quads_post_meta.exclude_dropdown = false;
9980
+
9981
+ _this.setState(quads_post_meta);
9982
+ });
9983
+
9984
+ _defineProperty(_assertThisInitialized(_this), "onIncludeFocus", function () {
9985
+ var _this$state6 = _objectSpread({}, _this.state),
9986
+ quads_post_meta = _this$state6.quads_post_meta;
9987
+
9988
+ quads_post_meta.include_dropdown = true;
9989
+
9990
+ _this.setState(quads_post_meta);
9991
+ });
9992
+
9993
+ _defineProperty(_assertThisInitialized(_this), "onExcludeFocus", function () {
9994
+ var _this$state7 = _objectSpread({}, _this.state),
9995
+ quads_post_meta = _this$state7.quads_post_meta;
9996
+
9997
+ quads_post_meta.exclude_dropdown = true;
9998
+
9999
+ _this.setState(quads_post_meta);
10000
+ });
10001
+
10002
+ _defineProperty(_assertThisInitialized(_this), "excludeFormToggle", function () {
10003
+ _this.setState({
10004
+ quads_exclude_toggle: !_this.state.quads_exclude_toggle
10005
+ });
10006
+ });
10007
+
10008
+ _defineProperty(_assertThisInitialized(_this), "includeFormToggle", function () {
10009
+ _this.setState({
10010
+ quads_include_toggle: !_this.state.quads_include_toggle
10011
+ });
10012
+ });
10013
+
10014
+ _defineProperty(_assertThisInitialized(_this), "openModal", function () {
10015
+ _this.setState({
10016
+ quads_modal_open: true
10017
+ });
10018
+ });
10019
+
10020
+ _defineProperty(_assertThisInitialized(_this), "closeModal", function () {
10021
+ _this.setState({
10022
+ quads_modal_open: false
10023
+ });
10024
+
10025
+ _this.setState({
10026
+ quads_modal_error: ''
10027
+ });
10028
+ });
10029
+
10030
+ _defineProperty(_assertThisInitialized(_this), "modalValue", function (e) {
10031
+ _this.setState({
10032
+ quads_modal_value: e.target.value
10033
+ });
10034
+ });
10035
+
10036
+ _defineProperty(_assertThisInitialized(_this), "getGoogleAdsenseAttr", function (content, regex) {
10037
+ var str = content;
10038
+ var m;
10039
+ var result = {};
10040
+
10041
+ while ((m = regex.exec(str)) !== null) {
10042
+ // This is necessary to avoid infinite loops with zero-width matches
10043
+ if (m.index === regex.lastIndex) {
10044
+ regex.lastIndex++;
10045
+ } // The result can be accessed through the `m`-variable.
10046
+
10047
+
10048
+ m.forEach(function (match, index) {
10049
+ //console.log(`Found match, group ${groupIndex}: ${match}`);
10050
+ result = match;
10051
+ });
10052
+ }
10053
+
10054
+ return result;
10055
+ });
10056
+
10057
+ _defineProperty(_assertThisInitialized(_this), "getAdsenseCode", function () {
10058
+ var content = _this.state.quads_modal_value;
10059
+
10060
+ _this.setState({
10061
+ quads_modal_open: true
10062
+ });
10063
+
10064
+ if (content) {
10065
+ var slot_regex = /google_ad_slot\s*=\s*"(\d*)";/g;
10066
+
10067
+ var ad_slot = _this.getGoogleAdsenseAttr(content, slot_regex);
10068
+
10069
+ var ad_client_regex = /google_ad_client\s*=\s*"ca-pub-(\d*)";/g;
10070
+
10071
+ var ad_client = _this.getGoogleAdsenseAttr(content, ad_client_regex);
10072
+
10073
+ var width_regex = /google_ad_width\s*=\s*(\d*);/g;
10074
+
10075
+ var ad_width = _this.getGoogleAdsenseAttr(content, width_regex);
10076
+
10077
+ var height_regex = /google_ad_height\s*=\s*(\d*);/g;
10078
+
10079
+ var ad_height = _this.getGoogleAdsenseAttr(content, height_regex);
10080
+
10081
+ var ad_format_regex = /data-ad-format\s*=\s*"(\w*)";/g;
10082
+
10083
+ var ad_format = _this.getGoogleAdsenseAttr(content, ad_format_regex);
10084
+
10085
+ var adsense_type = 'normal';
10086
+
10087
+ if ((!ad_slot || 0 === ad_slot.length) && (!ad_client || 0 === ad_client.length) && (!ad_width || 0 === ad_width.length)) {
10088
+ adsense_type = (_readOnlyError("adsense_type"), 'normal');
10089
+ }
10090
+
10091
+ if (ad_format == 'auto') {
10092
+ adsense_type = (_readOnlyError("adsense_type"), 'responsive');
10093
+ }
10094
+
10095
+ if (ad_slot.length >= 0 && ad_client.length >= 0) {
10096
+ var _this$state8 = _objectSpread({}, _this.state),
10097
+ quads_post_meta = _this$state8.quads_post_meta;
10098
+
10099
+ quads_post_meta.g_data_ad_slot = ad_slot;
10100
+ quads_post_meta.g_data_ad_client = 'ca-pub-' + ad_client;
10101
+ quads_post_meta.g_data_ad_width = ad_width;
10102
+ quads_post_meta.g_data_ad_height = ad_height;
10103
+ quads_post_meta.adsense_type = adsense_type;
10104
+
10105
+ _this.setState(quads_post_meta);
10106
+
10107
+ _this.setState({
10108
+ quads_modal_open: false
10109
+ });
10110
+ } else {
10111
+ _this.setState({
10112
+ quads_modal_error: 'Can not parse AdSense Code. Is the code valid?'
10113
+ });
10114
+
10115
+ _this.setState({
10116
+ quads_modal_open: true
10117
+ });
10118
+ }
10119
+ } else {
10120
+ _this.setState({
10121
+ quads_modal_error: 'Please provide adsense code'
10122
+ });
10123
+ }
10124
+ });
10125
+
10126
+ _defineProperty(_assertThisInitialized(_this), "saveAdFormData", function (ad_status) {
10127
+ _this.setState({
10128
+ quads_is_loaded: true
10129
+ });
10130
+
10131
+ var body_json = _this.state;
10132
+ body_json.quads_ad_status = ad_status; //visitor targeting
10133
+
10134
+ body_json.quads_post_meta.targeting_include = _this.includedVal;
10135
+ body_json.quads_post_meta.targeting_exclude = _this.excludedVal;
10136
+ body_json.quads_post_meta.visibility_include = _this.includedVisibilityVal;
10137
+ body_json.quads_post_meta.visibility_exclude = _this.excludedVisibilityVal;
10138
+ var url = quads_localize_data.rest_url + 'quads-route/update-ad';
10139
+ fetch(url, {
10140
+ method: "post",
10141
+ headers: {
10142
+ 'Accept': 'application/json',
10143
+ 'Content-Type': 'application/json',
10144
+ 'X-WP-Nonce': quads_localize_data.nonce
10145
+ },
10146
+ //make sure to serialize your JSON body
10147
+ body: JSON.stringify(body_json)
10148
+ }).then(function (res) {
10149
+ return res.json();
10150
+ }).then(function (result) {
10151
+ _this.setState({
10152
+ quads_is_loaded: false
10153
+ });
10154
+
10155
+ _this.setState(Object.assign(_this.state.quads_post_meta, {
10156
+ ad_id: result.ad_id
10157
+ }));
10158
+
10159
+ var path = _this.props.location.pathname;
10160
+ var search = _this.props.location.search;
10161
+
10162
+ var page = _queryString["default"].parse(window.location.search);
10163
+
10164
+ var new_url = path + search;
10165
+
10166
+ if (page.action != 'edit') {
10167
+ new_url = _this.removePartofQueryString(new_url, 'path=wizard_target');
10168
+ new_url += 'path=wizard_publish&action=edit&post=' + result.ad_id;
10169
+ } else {
10170
+ new_url = _this.removePartofQueryString(new_url, 'path=wizard_target');
10171
+ new_url += 'path=wizard_publish';
10172
+ }
10173
+
10174
+ _this.setState({
10175
+ quads_is_saved: true
10176
+ });
10177
+
10178
+ _this.props.history.push(new_url);
10179
+ }, function (error) {
10180
+ _this.setState({
10181
+ quads_is_error: error,
10182
+ quads_is_loaded: false
10183
+ });
10184
+ });
10185
+ });
10186
+
10187
+ _defineProperty(_assertThisInitialized(_this), "adFormChangeHandler", function (event) {
10188
+ var name = event.target.name;
10189
+ var value = event.target.type === 'checkbox' ? event.target.checked : event.target.value;
10190
+
10191
+ var _this$state9 = _objectSpread({}, _this.state),
10192
+ quads_post_meta = _this$state9.quads_post_meta;
10193
+
10194
+ var currentState = quads_post_meta;
10195
+
10196
+ if (name) {
10197
+ currentState[name] = value;
10198
+
10199
+ _this.setState({
10200
+ quads_post_meta: currentState,
10201
+ quads_state_changed: true
10202
+ });
10203
+ }
10204
+
10205
+ var page = _queryString["default"].parse(window.location.search);
10206
+
10207
+ if (!_this.state.quads_ad_status) {
10208
+ _this.setState({
10209
+ quads_ad_status: 'draft'
10210
+ });
10211
+ }
10212
+ });
10213
+
10214
+ _defineProperty(_assertThisInitialized(_this), "saveAsDraft", function (event) {
10215
+ event.preventDefault();
10216
+
10217
+ _this.saveAdFormData('draft');
10218
+ });
10219
+
10220
+ _defineProperty(_assertThisInitialized(_this), "publish", function (event) {
10221
+ event.preventDefault();
10222
+ var quads_post_meta = _this.state.quads_post_meta;
10223
+
10224
+ switch (quads_post_meta.ad_type) {
10225
+ case 'plain_text':
10226
+ if (quads_post_meta.code && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
10227
+ _this.saveAdFormData('publish');
10228
+ } else {
10229
+ _this.setState({
10230
+ show_form_error: true
10231
+ });
10232
+ }
10233
+
10234
+ break;
10235
+
10236
+ case 'adsense':
10237
+ if (quads_post_meta.g_data_ad_slot && quads_post_meta.g_data_ad_client && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
10238
+ _this.saveAdFormData('publish');
10239
+ } else {
10240
+ _this.setState({
10241
+ show_form_error: true
10242
+ });
10243
+ }
10244
+
10245
+ break;
10246
+
10247
+ default:
10248
+ break;
10249
+ }
10250
+ });
10251
+
10252
+ _defineProperty(_assertThisInitialized(_this), "removePartofQueryString", function (q_string, part) {
10253
+ var split_arr = q_string.split("&");
10254
+ var new_search = '';
10255
+
10256
+ for (var i = 0; i < split_arr.length; i++) {
10257
+ if (!split_arr[i].includes(part)) {
10258
+ new_search += split_arr[i] + '&';
10259
+ }
10260
+ }
10261
+
10262
+ return new_search;
10263
+ });
10264
+
10265
+ _defineProperty(_assertThisInitialized(_this), "quadsGoBack", function (e) {
10266
+ e.preventDefault();
10267
+
10268
+ var page = _queryString["default"].parse(window.location.search);
10269
+
10270
+ var new_url = _this.props.location.pathname + '?page=quads-settings';
10271
+
10272
+ if (_this.state.quads_state_changed && !_this.state.quads_is_saved) {
10273
+ var r = confirm("Do you want to save change?");
10274
+
10275
+ if (r == true) {
10276
+ _this.saveAdFormData(_this.state.quads_ad_status);
10277
+
10278
+ _this.props.history.push(new_url);
10279
+ } else {
10280
+ return false;
10281
+ }
10282
+ } else {
10283
+ _this.props.history.push(new_url);
10284
+ }
10285
+ });
10286
+
10287
+ _defineProperty(_assertThisInitialized(_this), "moveNext", function (e) {
10288
+ var page = _queryString["default"].parse(window.location.search);
10289
+
10290
+ var new_url = _this.props.location.pathname + _this.removePartofQueryString(_this.props.location.search, 'path=wizard');
10291
+
10292
+ var quads_post_meta = _this.state.quads_post_meta;
10293
+
10294
+ if (page.path == 'wizard') {
10295
+ new_url += 'path=wizard_target';
10296
+
10297
+ switch (quads_post_meta.ad_type) {
10298
+ case 'plain_text':
10299
+ if (quads_post_meta.code) {
10300
+ _this.props.history.push(new_url);
10301
+ } else {
10302
+ _this.setState({
10303
+ show_form_error: true
10304
+ });
10305
+ }
10306
+
10307
+ break;
10308
+
10309
+ case 'adsense':
10310
+ if (quads_post_meta.g_data_ad_slot && quads_post_meta.g_data_ad_client) {
10311
+ _this.props.history.push(new_url);
10312
+ } else {
10313
+ _this.setState({
10314
+ show_form_error: true
10315
+ });
10316
+ }
10317
+
10318
+ break;
10319
+
10320
+ default:
10321
+ break;
10322
+ }
10323
+ } else if (page.path == 'wizard_target') {
10324
+ new_url += 'path=wizard_publish';
10325
+
10326
+ if (quads_post_meta.position && visibility_include.length > 0) {
10327
+ _this.props.history.push(new_url);
10328
+ } else {
10329
+ _this.setState({
10330
+ show_form_error: true
10331
+ });
10332
+ }
10333
+ }
10334
+ });
10335
+
10336
+ _defineProperty(_assertThisInitialized(_this), "movePrev", function (e) {
10337
+ var page = _queryString["default"].parse(window.location.search);
10338
+
10339
+ var new_url = _this.props.location.pathname + _this.removePartofQueryString(_this.props.location.search, 'path=wizard');
10340
+
10341
+ if (page.path == 'wizard_publish') {
10342
+ new_url += 'path=wizard_target';
10343
+ } else if (page.path == 'wizard_target') {
10344
+ new_url += 'path=wizard';
10345
+ }
10346
+
10347
+ _this.props.history.push(new_url);
10348
+ });
10349
+
10350
+ _defineProperty(_assertThisInitialized(_this), "closeNotice", function () {
10351
+ _this.setState({
10352
+ quads_is_saved: false
10353
+ });
10354
+ });
10355
+
10356
+ _this.state = {
10357
+ show_form_error: false,
10358
+ quads_include_toggle: false,
10359
+ Quads_confirm_box: false,
10360
+ quads_exclude_toggle: false,
10361
+ quads_include_placeholder: 'Search for post types',
10362
+ quads_exclude_placeholder: 'Search for post types',
10363
+ quads_include_current_type: 'post_type',
10364
+ quads_exclude_current_type: 'post_type',
10365
+ quads_include_input_text: '',
10366
+ quads_exclude_input_text: '',
10367
+ quads_include_input_id: '',
10368
+ quads_exclude_input_id: '',
10369
+ quads_is_reload: true,
10370
+ quads_modal_value: '',
10371
+ quads_modal_error: '',
10372
+ quads_modal_open: false,
10373
+ quads_is_loaded: true,
10374
+ quads_is_visibility: true,
10375
+ quads_state_changed: false,
10376
+ quads_is_saved: false,
10377
+ quads_ad_status: '',
10378
+ quads_is_error: [],
10379
+ quads_post: {},
10380
+ quads_include_meta: {},
10381
+ quads_exclude_meta: {},
10382
+ quads_post_meta: {
10383
+ visibility_include: visibility_include_def_val,
10384
+ visibility_exclude: [],
10385
+ targeting_include: [],
10386
+ targeting_exclude: [],
10387
+ ad_id: '',
10388
+ ad_type: '',
10389
+ label: '',
10390
+ g_data_ad_slot: '',
10391
+ g_data_ad_client: '',
10392
+ adsense_type: '',
10393
+ g_data_ad_width: '',
10394
+ g_data_ad_height: '',
10395
+ code: '',
10396
+ align: 3,
10397
+ adlabel: '',
10398
+ margin: 0,
10399
+ position: 'beginning_of_post',
10400
+ paragraph_number: 1,
10401
+ image_number: 1,
10402
+ enabled_on_amp: false,
10403
+ enable_on_end_of_post: false,
10404
+ image_caption: false,
10405
+ include_dropdown: false,
10406
+ exclude_dropdown: false
10407
+ },
10408
+ quads_form_errors: {
10409
+ g_data_ad_slot: '',
10410
+ g_data_ad_client: '',
10411
+ code: '',
10412
+ label: '',
10413
+ position: '',
10414
+ visibility_include: []
10415
+ }
10416
+ };
10417
+ _this.include_timer = null;
10418
+ _this.exclude_timer = null;
10419
+ _this.includedVal = [];
10420
+ _this.excludedVal = [];
10421
+ _this.includedVisibilityVal = visibility_include_def_val;
10422
+ _this.excludedVisibilityVal = [];
10423
+ return _this;
10424
+ }
10425
+
10426
+ _createClass(QuadsAdCreateRouter, [{
10427
+ key: "componentDidUpdate",
10428
+ value: function componentDidUpdate() {}
10429
+ }, {
10430
+ key: "componentDidMount",
10431
+ value: function componentDidMount() {
10432
+ var page = _queryString["default"].parse(window.location.search);
10433
+
10434
+ if (this.state.quads_is_reload && page.action == 'edit') {
10435
+ document.body.classList.add('quads_editpage');
10436
+ this.getAdDataById(page.post);
10437
+ this.setState({
10438
+ quads_is_reload: false
10439
+ });
10440
+ } else {
10441
+ document.body.classList.add('quads_addpage');
10442
+ }
10443
+
10444
+ this.setState(Object.assign(this.state.quads_post_meta, {
10445
+ ad_type: page.ad_type
10446
+ }));
10447
+ this.setState({
10448
+ quads_is_loaded: false
10449
+ });
10450
+ }
10451
+ }, {
10452
+ key: "render",
10453
+ value: function render() {
10454
+ var _this2 = this;
10455
+
10456
+ var location = this.props.location;
10457
+
10458
+ var page = _queryString["default"].parse(window.location.search);
10459
+
10460
+ var __ = wp.i18n.__;
10461
+ var post_meta = this.state.quads_post_meta;
10462
+ var show_form_error = this.state.show_form_error;
10463
+
10464
+ if (page.path == 'wizard_target' && this.state.quads_post_meta.label == '') {
10465
+ var json_data = {
10466
+ action: 'quads_ajax_add_ads'
10467
+ };
10468
+ var url = quads_localize_data.rest_url + "quads-route/get-add-next-id";
10469
+ fetch(url, {
10470
+ method: "post",
10471
+ headers: {
10472
+ 'Accept': 'application/json',
10473
+ 'Content-Type': 'application/json',
10474
+ 'X-WP-Nonce': quads_localize_data.nonce
10475
+ },
10476
+ body: JSON.stringify(json_data)
10477
+ }).then(function (res) {
10478
+ return res.json();
10479
+ }).then(function (result) {
10480
+ _this2.setState(Object.assign(_this2.state.quads_post_meta, {
10481
+ label: result.name
10482
+ }));
10483
+ }, function (error) {});
10484
+ }
10485
+
10486
+ return /*#__PURE__*/_react["default"].createElement("div", null, this.state.quads_is_loaded ? /*#__PURE__*/_react["default"].createElement("div", {
10487
+ className: "quads-cover-spin"
10488
+ }) : '', /*#__PURE__*/_react["default"].createElement("form", {
10489
+ id: "quads-ad-form"
10490
+ }, /*#__PURE__*/_react["default"].createElement("div", {
10491
+ className: "material-icons quads-close-create-page"
10492
+ }, /*#__PURE__*/_react["default"].createElement("a", {
10493
+ onClick: this.quadsGoBack
10494
+ }, "close")), /*#__PURE__*/_react["default"].createElement("div", {
10495
+ className: "quads-ad-config-header"
10496
+ }, /*#__PURE__*/_react["default"].createElement("div", {
10497
+ className: "quads-ad-input"
10498
+ }, /*#__PURE__*/_react["default"].createElement("input", {
10499
+ value: this.state.quads_post_meta.label,
10500
+ type: "text",
10501
+ onChange: this.adFormChangeHandler,
10502
+ name: "label",
10503
+ placeholder: __('Name your ad unit', 'quick-adsense-reloaded')
10504
+ }), /*#__PURE__*/_react["default"].createElement("input", {
10505
+ type: "hidden",
10506
+ name: "ad_id",
10507
+ value: this.state.quads_post_meta.ad_id
10508
+ }), /*#__PURE__*/_react["default"].createElement("input", {
10509
+ type: "hidden",
10510
+ name: "ad_type",
10511
+ value: this.state.quads_post_meta.ad_type
10512
+ })), /*#__PURE__*/_react["default"].createElement("div", {
10513
+ className: "quads-ad-config-menu"
10514
+ }, /*#__PURE__*/_react["default"].createElement("div", {
10515
+ className: "quads-ad-config-tab"
10516
+ }, /*#__PURE__*/_react["default"].createElement("ul", null, /*#__PURE__*/_react["default"].createElement("li", {
10517
+ className: "".concat(page.path == 'wizard' ? 'quads-selected' : '')
10518
+ }, __('Configuration', 'quick-adsense-reloaded')), /*#__PURE__*/_react["default"].createElement("li", {
10519
+ className: "".concat(page.path == 'wizard_target' ? 'quads-selected' : '')
10520
+ }, __('Targeting', 'quick-adsense-reloaded')), /*#__PURE__*/_react["default"].createElement("li", {
10521
+ className: "".concat(page.path == 'wizard_publish' ? 'quads-selected' : '')
10522
+ }, __('Publish', 'quick-adsense-reloaded')))))), /*#__PURE__*/_react["default"].createElement(_reactRouterDom.Route, {
10523
+ render: function render(props) {
10524
+ switch (page.path) {
10525
+ case "wizard":
10526
+ return /*#__PURE__*/_react["default"].createElement(_QuadsAdConfig["default"], _extends({}, props, {
10527
+ moveNext: _this2.moveNext,
10528
+ parentState: _this2.state,
10529
+ adFormChangeHandler: _this2.adFormChangeHandler,
10530
+ modalValue: _this2.modalValue,
10531
+ getAdsenseCode: _this2.getAdsenseCode,
10532
+ openModal: _this2.openModal,
10533
+ closeModal: _this2.closeModal
10534
+ }));
10535
+
10536
+ case "wizard_target":
10537
+ return /*#__PURE__*/_react["default"].createElement(_QuadsAdTargeting["default"], _extends({}, props, _defineProperty({
10538
+ parentState: _this2.state,
10539
+ updateVisitorTarget: _this2.updateVisitorTarget,
10540
+ updateVisibility: _this2.updateVisibility,
10541
+ adFormChangeHandler: _this2.adFormChangeHandler,
10542
+ movePrev: _this2.movePrev,
10543
+ publish: _this2.publish,
10544
+ onListSearchHover: _this2.onListSearchHover
10545
+ }, "updateVisitorTarget", _this2.updateVisitorTarget)));
10546
+
10547
+ case "wizard_publish":
10548
+ return /*#__PURE__*/_react["default"].createElement(_QuadsAdPublish["default"], _extends({}, props, {
10549
+ parentState: _this2.state,
10550
+ adFormChangeHandler: _this2.adFormChangeHandler,
10551
+ movePrev: _this2.movePrev
10552
+ }));
10553
+
10554
+ default:
10555
+ return null;
10556
+ }
10557
+ }
10558
+ })));
10559
+ }
10560
+ }]);
10561
+
10562
+ return QuadsAdCreateRouter;
10563
+ }(_react.Component);
10564
+
10565
+ var _default = QuadsAdCreateRouter;
10566
+ exports["default"] = _default;
10567
+
10568
+ /***/ }),
10569
+ /* 141 */
10570
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10571
+
10572
+ "use strict";
10573
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
10574
+ /* harmony default export */ __webpack_exports__["a"] = (hasSymbol ? Symbol.for('mui.nested') : '__THEME_NESTED__');
10575
+
10576
+ /***/ }),
10577
+ /* 142 */
10578
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10579
+
10580
+ "use strict";
10581
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createStyles__ = __webpack_require__(360);
10582
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__createStyles__["a"]; });
10583
+
10584
+
10585
+ /***/ }),
10586
+ /* 143 */
10587
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10588
+
10589
+ "use strict";
10590
+ /* unused harmony export isBrowser */
10591
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
10592
+
10593
+ var isBrowser = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof(document)) === 'object' && document.nodeType === 9;
10594
+
10595
+ /* harmony default export */ __webpack_exports__["a"] = (isBrowser);
10596
+
10597
+
10598
+ /***/ }),
10599
+ /* 144 */,
10600
+ /* 145 */
10601
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10602
+
10603
+ "use strict";
10604
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _iterableToArray;
10605
+ function _iterableToArray(iter) {
10606
+ if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
10607
+ }
10608
+
10609
+ /***/ }),
10610
+ /* 146 */
10611
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10612
+
10613
+ "use strict";
10614
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
10615
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
10616
+
10617
+ var ThemeContext = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createContext(null);
10618
+
10619
+ if (process.env.NODE_ENV !== 'production') {
10620
+ ThemeContext.displayName = 'ThemeContext';
10621
+ }
10622
+
10623
+ /* harmony default export */ __webpack_exports__["a"] = (ThemeContext);
10624
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
10625
+
10626
+ /***/ }),
10627
+ /* 147 */
10628
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10629
+
10630
+ "use strict";
10631
+ /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export sheetsManager */
10632
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return StylesContext; });
10633
+ /* harmony export (immutable) */ __webpack_exports__["b"] = StylesProvider;
10634
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
10635
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
10636
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
10637
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
10638
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
10639
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
10640
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__material_ui_utils__ = __webpack_require__(7);
10641
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__createGenerateClassName__ = __webpack_require__(65);
10642
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_jss__ = __webpack_require__(37);
10643
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__jssPreset__ = __webpack_require__(94);
10644
+
10645
+
10646
+
10647
+
10648
+
10649
+
10650
+
10651
+ // Default JSS instance.
10652
+
10653
+ var jss = Object(__WEBPACK_IMPORTED_MODULE_6_jss__["c" /* create */])(Object(__WEBPACK_IMPORTED_MODULE_7__jssPreset__["a" /* default */])()); // Use a singleton or the provided one by the context.
10654
+ //
10655
+ // The counter-based approach doesn't tolerate any mistake.
10656
+ // It's much safer to use the same counter everywhere.
10657
+
10658
+ var generateClassName = Object(__WEBPACK_IMPORTED_MODULE_5__createGenerateClassName__["a" /* default */])(); // Exported for test purposes
10659
+
10660
+ var sheetsManager = new Map();
10661
+ var defaultOptions = {
10662
+ disableGeneration: false,
10663
+ generateClassName: generateClassName,
10664
+ jss: jss,
10665
+ sheetsCache: null,
10666
+ sheetsManager: sheetsManager,
10667
+ sheetsRegistry: null
10668
+ };
10669
+ var StylesContext = __WEBPACK_IMPORTED_MODULE_2_react___default.a.createContext(defaultOptions);
10670
+
10671
+ if (process.env.NODE_ENV !== 'production') {
10672
+ StylesContext.displayName = 'StylesContext';
10673
+ }
10674
+
10675
+ var injectFirstNode;
10676
+ function StylesProvider(props) {
10677
+ var children = props.children,
10678
+ _props$injectFirst = props.injectFirst,
10679
+ injectFirst = _props$injectFirst === void 0 ? false : _props$injectFirst,
10680
+ _props$disableGenerat = props.disableGeneration,
10681
+ disableGeneration = _props$disableGenerat === void 0 ? false : _props$disableGenerat,
10682
+ localOptions = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["children", "injectFirst", "disableGeneration"]);
10683
+
10684
+ var outerOptions = __WEBPACK_IMPORTED_MODULE_2_react___default.a.useContext(StylesContext);
10685
+
10686
+ var context = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, outerOptions, {
10687
+ disableGeneration: disableGeneration
10688
+ }, localOptions);
10689
+
10690
+ if (process.env.NODE_ENV !== 'production') {
10691
+ if (typeof window === 'undefined' && !context.sheetsManager) {
10692
+ console.error('Material-UI: you need to use the ServerStyleSheets API when rendering on the server.');
10693
+ }
10694
+ }
10695
+
10696
+ if (process.env.NODE_ENV !== 'production') {
10697
+ if (context.jss.options.insertionPoint && injectFirst) {
10698
+ console.error('Material-UI: you cannot use a custom insertionPoint and <StylesContext injectFirst> at the same time.');
10699
+ }
10700
+ }
10701
+
10702
+ if (process.env.NODE_ENV !== 'production') {
10703
+ if (injectFirst && localOptions.jss) {
10704
+ console.error('Material-UI: you cannot use the jss and injectFirst props at the same time.');
10705
+ }
10706
+ }
10707
+
10708
+ if (!context.jss.options.insertionPoint && injectFirst && typeof window !== 'undefined') {
10709
+ if (!injectFirstNode) {
10710
+ var head = document.head;
10711
+ injectFirstNode = document.createComment('mui-inject-first');
10712
+ head.insertBefore(injectFirstNode, head.firstChild);
10713
+ }
10714
+
10715
+ context.jss = Object(__WEBPACK_IMPORTED_MODULE_6_jss__["c" /* create */])({
10716
+ plugins: Object(__WEBPACK_IMPORTED_MODULE_7__jssPreset__["a" /* default */])().plugins,
10717
+ insertionPoint: injectFirstNode
10718
+ });
10719
+ }
10720
+
10721
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(StylesContext.Provider, {
10722
+ value: context
10723
+ }, children);
10724
+ }
10725
+ process.env.NODE_ENV !== "production" ? StylesProvider.propTypes = {
10726
+ /**
10727
+ * Your component tree.
10728
+ */
10729
+ children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node.isRequired,
10730
+
10731
+ /**
10732
+ * You can disable the generation of the styles with this option.
10733
+ * It can be useful when traversing the React tree outside of the HTML
10734
+ * rendering step on the server.
10735
+ * Let's say you are using react-apollo to extract all
10736
+ * the queries made by the interface server-side - you can significantly speed up the traversal with this prop.
10737
+ */
10738
+ disableGeneration: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
10739
+
10740
+ /**
10741
+ * JSS's class name generator.
10742
+ */
10743
+ generateClassName: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
10744
+
10745
+ /**
10746
+ * By default, the styles are injected last in the <head> element of the page.
10747
+ * As a result, they gain more specificity than any other style sheet.
10748
+ * If you want to override Material-UI's styles, set this prop.
10749
+ */
10750
+ injectFirst: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
10751
+
10752
+ /**
10753
+ * JSS's instance.
10754
+ */
10755
+ jss: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
10756
+
10757
+ /**
10758
+ * @ignore
10759
+ */
10760
+ serverGenerateClassName: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
10761
+
10762
+ /**
10763
+ * @ignore
10764
+ *
10765
+ * Beta feature.
10766
+ *
10767
+ * Cache for the sheets.
10768
+ */
10769
+ sheetsCache: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
10770
+
10771
+ /**
10772
+ * @ignore
10773
+ *
10774
+ * The sheetsManager is used to deduplicate style sheet injection in the page.
10775
+ * It's deduplicating using the (theme, styles) couple.
10776
+ * On the server, you should provide a new instance for each request.
10777
+ */
10778
+ sheetsManager: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
10779
+
10780
+ /**
10781
+ * @ignore
10782
+ *
10783
+ * Collect the sheets.
10784
+ */
10785
+ sheetsRegistry: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object
10786
+ } : void 0;
10787
+
10788
+ if (process.env.NODE_ENV !== 'production') {
10789
+ process.env.NODE_ENV !== "production" ? StylesProvider.propTypes = Object(__WEBPACK_IMPORTED_MODULE_4__material_ui_utils__["e" /* exactProp */])(StylesProvider.propTypes) : void 0;
10790
+ }
10791
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
10792
+
10793
+ /***/ }),
10794
+ /* 148 */
10795
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10796
+
10797
+ "use strict";
10798
+ // We use the same empty object to ref count the styles that don't need a theme object.
10799
+ var noopTheme = {};
10800
+ /* harmony default export */ __webpack_exports__["a"] = (noopTheme);
10801
+
10802
+ /***/ }),
10803
+ /* 149 */
10804
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10805
+
10806
+ "use strict";
10807
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ServerStyleSheets__ = __webpack_require__(381);
10808
+ /* unused harmony reexport default */
10809
+
10810
+
10811
+ /***/ }),
10812
+ /* 150 */
10813
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10814
+
10815
+ "use strict";
10816
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__styled__ = __webpack_require__(382);
10817
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__styled__["a"]; });
10818
+
10819
+
10820
+ /***/ }),
10821
+ /* 151 */
10822
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10823
+
10824
+ "use strict";
10825
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ThemeProvider__ = __webpack_require__(383);
10826
+ /* unused harmony reexport default */
10827
+
10828
+
10829
+ /***/ }),
10830
+ /* 152 */
10831
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10832
+
10833
+ "use strict";
10834
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__withStyles__ = __webpack_require__(384);
10835
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__withStyles__["a"]; });
10836
+
10837
+
10838
+ /***/ }),
10839
+ /* 153 */
10840
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10841
+
10842
+ "use strict";
10843
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__withTheme__ = __webpack_require__(154);
10844
+ /* unused harmony reexport default */
10845
+ /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__withTheme__["a"]; });
10846
+
10847
+
10848
+
10849
+ /***/ }),
10850
+ /* 154 */
10851
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10852
+
10853
+ "use strict";
10854
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = withThemeCreator;
10855
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
10856
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
10857
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
10858
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
10859
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
10860
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
10861
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics__ = __webpack_require__(70);
10862
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics__);
10863
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__material_ui_utils__ = __webpack_require__(7);
10864
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__useTheme__ = __webpack_require__(45);
10865
+
10866
+
10867
+
10868
+
10869
+
10870
+
10871
+
10872
+ function withThemeCreator() {
10873
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
10874
+ var defaultTheme = options.defaultTheme;
10875
+
10876
+ var withTheme = function withTheme(Component) {
10877
+ if (process.env.NODE_ENV !== 'production') {
10878
+ if (Component === undefined) {
10879
+ throw new Error(['You are calling withTheme(Component) with an undefined component.', 'You may have forgotten to import it.'].join('\n'));
10880
+ }
10881
+ }
10882
+
10883
+ var WithTheme = __WEBPACK_IMPORTED_MODULE_2_react___default.a.forwardRef(function WithTheme(props, ref) {
10884
+ var innerRef = props.innerRef,
10885
+ other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["innerRef"]);
10886
+
10887
+ var theme = Object(__WEBPACK_IMPORTED_MODULE_6__useTheme__["a" /* default */])() || defaultTheme;
10888
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(Component, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
10889
+ theme: theme,
10890
+ ref: innerRef || ref
10891
+ }, other));
10892
+ });
10893
+ process.env.NODE_ENV !== "production" ? WithTheme.propTypes = {
10894
+ /**
10895
+ * Use that prop to pass a ref to the decorated component.
10896
+ * @deprecated
10897
+ */
10898
+ innerRef: Object(__WEBPACK_IMPORTED_MODULE_5__material_ui_utils__["a" /* chainPropTypes */])(__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object]), function (props) {
10899
+ if (props.innerRef == null) {
10900
+ return null;
10901
+ }
10902
+
10903
+ return new Error('Material-UI: the `innerRef` prop is deprecated and will be removed in v5. ' + 'Refs are now automatically forwarded to the inner component.');
10904
+ })
10905
+ } : void 0;
10906
+
10907
+ if (process.env.NODE_ENV !== 'production') {
10908
+ WithTheme.displayName = "WithTheme(".concat(Object(__WEBPACK_IMPORTED_MODULE_5__material_ui_utils__["f" /* getDisplayName */])(Component), ")");
10909
+ }
10910
+
10911
+ __WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics___default()(WithTheme, Component);
10912
+
10913
+ if (process.env.NODE_ENV !== 'production') {
10914
+ // Exposed for test purposes.
10915
+ WithTheme.Naked = Component;
10916
+ }
10917
+
10918
+ return WithTheme;
10919
+ };
10920
+
10921
+ return withTheme;
10922
+ } // Provide the theme object as a prop to the input component.
10923
+ // It's an alternative API to useTheme().
10924
+ // We encourage the usage of useTheme() where possible.
10925
+
10926
+ var withTheme = withThemeCreator();
10927
+ /* unused harmony default export */ var _unused_webpack_default_export = (withTheme);
10928
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
10929
+
10930
+ /***/ }),
10931
+ /* 155 */
10932
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10933
+
10934
+ "use strict";
10935
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return keys; });
10936
+ /* harmony export (immutable) */ __webpack_exports__["a"] = createBreakpoints;
10937
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
10938
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
10939
+
10940
+
10941
+ // Sorted ASC by size. That's important.
10942
+ // It can't be configured as it's used statically for propTypes.
10943
+ var keys = ['xs', 'sm', 'md', 'lg', 'xl']; // Keep in mind that @media is inclusive by the CSS specification.
10944
+
10945
+ function createBreakpoints(breakpoints) {
10946
+ var _breakpoints$values = breakpoints.values,
10947
+ values = _breakpoints$values === void 0 ? {
10948
+ xs: 0,
10949
+ sm: 600,
10950
+ md: 960,
10951
+ lg: 1280,
10952
+ xl: 1920
10953
+ } : _breakpoints$values,
10954
+ _breakpoints$unit = breakpoints.unit,
10955
+ unit = _breakpoints$unit === void 0 ? 'px' : _breakpoints$unit,
10956
+ _breakpoints$step = breakpoints.step,
10957
+ step = _breakpoints$step === void 0 ? 5 : _breakpoints$step,
10958
+ other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(breakpoints, ["values", "unit", "step"]);
10959
+
10960
+ function up(key) {
10961
+ var value = typeof values[key] === 'number' ? values[key] : key;
10962
+ return "@media (min-width:".concat(value).concat(unit, ")");
10963
+ }
10964
+
10965
+ function down(key) {
10966
+ var endIndex = keys.indexOf(key) + 1;
10967
+ var upperbound = values[keys[endIndex]];
10968
+
10969
+ if (endIndex === keys.length) {
10970
+ // xl down applies to all sizes
10971
+ return up('xs');
10972
+ }
10973
+
10974
+ var value = typeof upperbound === 'number' && endIndex > 0 ? upperbound : key;
10975
+ return "@media (max-width:".concat(value - step / 100).concat(unit, ")");
10976
+ }
10977
+
10978
+ function between(start, end) {
10979
+ var endIndex = keys.indexOf(end);
10980
+
10981
+ if (endIndex === keys.length - 1) {
10982
+ return up(start);
10983
+ }
10984
+
10985
+ return "@media (min-width:".concat(typeof values[start] === 'number' ? values[start] : start).concat(unit, ") and ") + "(max-width:".concat((endIndex !== -1 && typeof values[keys[endIndex + 1]] === 'number' ? values[keys[endIndex + 1]] : end) - step / 100).concat(unit, ")");
10986
+ }
10987
+
10988
+ function only(key) {
10989
+ return between(key, key);
10990
+ }
10991
+
10992
+ function width(key) {
10993
+ return values[key];
10994
+ }
10995
+
10996
+ return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
10997
+ keys: keys,
10998
+ values: values,
10999
+ up: up,
11000
+ down: down,
11001
+ between: between,
11002
+ only: only,
11003
+ width: width
11004
+ }, other);
11005
+ }
11006
+
11007
+ /***/ }),
11008
+ /* 156 */
11009
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
11010
+
11011
+ "use strict";
11012
+ var common = {
11013
+ black: '#000',
11014
+ white: '#fff'
11015
+ };
11016
+ /* harmony default export */ __webpack_exports__["a"] = (common);
11017
+
11018
+ /***/ }),
11019
+ /* 157 */
11020
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
11021
+
11022
+ "use strict";
11023
+ var grey = {
11024
+ 50: '#fafafa',
11025
+ 100: '#f5f5f5',
11026
+ 200: '#eeeeee',
11027
+ 300: '#e0e0e0',
11028
+ 400: '#bdbdbd',
11029
+ 500: '#9e9e9e',
11030
+ 600: '#757575',
11031
+ 700: '#616161',
11032
+ 800: '#424242',
11033
+ 900: '#212121',
11034
+ A100: '#d5d5d5',
11035
+ A200: '#aaaaaa',
11036
+ A400: '#303030',
11037
+ A700: '#616161'
11038
+ };
11039
+ /* harmony default export */ __webpack_exports__["a"] = (grey);
11040
+
11041
+ /***/ }),
11042
+ /* 158 */
11043
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
11044
+
11045
+ "use strict";
11046
+ var indigo = {
11047
+ 50: '#e8eaf6',
11048
+ 100: '#c5cae9',
11049
+ 200: '#9fa8da',
11050
+ 300: '#7986cb',
11051
+ 400: '#5c6bc0',
11052
+ 500: '#3f51b5',
11053
+ 600: '#3949ab',
11054
+ 700: '#303f9f',
11055
+ 800: '#283593',
11056
+ 900: '#1a237e',
11057
+ A100: '#8c9eff',
11058
+ A200: '#536dfe',
11059
+ A400: '#3d5afe',
11060
+ A700: '#304ffe'
11061
+ };
11062
+ /* harmony default export */ __webpack_exports__["a"] = (indigo);
11063
+
11064
+ /***/ }),
11065
+ /* 159 */
11066
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
11067
+
11068
+ "use strict";
11069
+ var pink = {
11070
+ 50: '#fce4ec',
11071
+ 100: '#f8bbd0',
11072
+ 200: '#f48fb1',
11073
+ 300: '#f06292',
11074
+ 400: '#ec407a',
11075
+ 500: '#e91e63',
11076
+ 600: '#d81b60',
11077
+ 700: '#c2185b',
11078
+ 800: '#ad1457',
11079
+ 900: '#880e4f',
11080
+ A100: '#ff80ab',
11081
+ A200: '#ff4081',
11082
+ A400: '#f50057',
11083
+ A700: '#c51162'
11084
+ };
11085
+ /* harmony default export */ __webpack_exports__["a"] = (pink);
11086
+
11087
+ /***/ }),
11088
+ /* 160 */
11089
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
11090
+
11091
+ "use strict";
11092
+ var red = {
11093
+ 50: '#ffebee',
11094
+ 100: '#ffcdd2',
11095
+ 200: '#ef9a9a',
11096
+ 300: '#e57373',
11097
+ 400: '#ef5350',
11098
+ 500: '#f44336',
11099
+ 600: '#e53935',
11100
+ 700: '#d32f2f',
11101
+ 800: '#c62828',
11102
+ 900: '#b71c1c',
11103
+ A100: '#ff8a80',
11104
+ A200: '#ff5252',
11105
+ A400: '#ff1744',
11106
+ A700: '#d50000'
11107
+ };
11108
+ /* harmony default export */ __webpack_exports__["a"] = (red);
11109
+
11110
+ /***/ }),
11111
+ /* 161 */
11112
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
11113
+
11114
+ "use strict";
11115
+ var orange = {
11116
+ 50: '#fff3e0',
11117
+ 100: '#ffe0b2',
11118
+ 200: '#ffcc80',
11119
+ 300: '#ffb74d',
11120
+ 400: '#ffa726',
11121
+ 500: '#ff9800',
11122
+ 600: '#fb8c00',
11123
+ 700: '#f57c00',
11124
+ 800: '#ef6c00',
11125
+ 900: '#e65100',
11126
+ A100: '#ffd180',
11127
+ A200: '#ffab40',
11128
+ A400: '#ff9100',
11129
+ A700: '#ff6d00'
11130
+ };
11131
+ /* harmony default export */ __webpack_exports__["a"] = (orange);
11132
+
11133
+ /***/ }),
11134
+ /* 162 */
11135
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
11136
+
11137
+ "use strict";
11138
+ var blue = {
11139
+ 50: '#e3f2fd',
11140
+ 100: '#bbdefb',
11141
+ 200: '#90caf9',
11142
+ 300: '#64b5f6',
11143
+ 400: '#42a5f5',
11144
+ 500: '#2196f3',
11145
+ 600: '#1e88e5',
11146
+ 700: '#1976d2',
11147
+ 800: '#1565c0',
11148
+ 900: '#0d47a1',
11149
+ A100: '#82b1ff',
11150
+ A200: '#448aff',
11151
+ A400: '#2979ff',
11152
+ A700: '#2962ff'
11153
+ };
11154
+ /* harmony default export */ __webpack_exports__["a"] = (blue);
11155
+
11156
+ /***/ }),
11157
+ /* 163 */
11158
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
11159
+
11160
+ "use strict";
11161
+ var green = {
11162
+ 50: '#e8f5e9',
11163
+ 100: '#c8e6c9',
11164
+ 200: '#a5d6a7',
11165
+ 300: '#81c784',
11166
+ 400: '#66bb6a',
11167
+ 500: '#4caf50',
11168
+ 600: '#43a047',
11169
+ 700: '#388e3c',
11170
+ 800: '#2e7d32',
11171
+ 900: '#1b5e20',
11172
+ A100: '#b9f6ca',
11173
+ A200: '#69f0ae',
11174
+ A400: '#00e676',
11175
+ A700: '#00c853'
11176
+ };
11177
+ /* harmony default export */ __webpack_exports__["a"] = (green);
11178
+
11179
+ /***/ }),
11180
+ /* 164 */
11181
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
11182
+
11183
+ "use strict";
11184
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__borders__ = __webpack_require__(165);
11185
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__borders__["a"]; });
11186
+ /* unused harmony namespace reexport */
11187
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__breakpoints__ = __webpack_require__(99);
11188
+ /* unused harmony reexport breakpoints */
11189
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__compose__ = __webpack_require__(31);
11190
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_2__compose__["a"]; });
11191
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__css__ = __webpack_require__(391);
11192
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_3__css__["a"]; });
11193
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__display__ = __webpack_require__(392);
11194
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_4__display__["a"]; });
11195
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__flexbox__ = __webpack_require__(167);
11196
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_5__flexbox__["a"]; });
11197
+ /* unused harmony namespace reexport */
11198
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__grid__ = __webpack_require__(168);
11199
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_6__grid__["a"]; });
11200
+ /* unused harmony namespace reexport */
11201
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__palette__ = __webpack_require__(169);
11202
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_7__palette__["a"]; });
11203
+ /* unused harmony namespace reexport */
11204
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__positions__ = __webpack_require__(170);
11205
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return __WEBPACK_IMPORTED_MODULE_8__positions__["a"]; });
11206
+ /* unused harmony namespace reexport */
11207
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__shadows__ = __webpack_require__(393);
11208
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return __WEBPACK_IMPORTED_MODULE_9__shadows__["a"]; });
11209
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__sizing__ = __webpack_require__(171);
11210
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return __WEBPACK_IMPORTED_MODULE_10__sizing__["a"]; });
11211
+ /* unused harmony namespace reexport */
11212
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__spacing__ = __webpack_require__(172);
11213
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return __WEBPACK_IMPORTED_MODULE_11__spacing__["b"]; });
11214
+ /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_11__spacing__["a"]; });
11215
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__style__ = __webpack_require__(26);
11216
+ /* unused harmony reexport style */
11217
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__typography__ = __webpack_require__(175);
11218
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return __WEBPACK_IMPORTED_MODULE_13__typography__["a"]; });
11219
+ /* unused harmony namespace reexport */
11220
+ /** @license Material-UI v4.9.10
11221
+ *
11222
+ * This source code is licensed under the MIT license found in the
11223
+ * LICENSE file in the root directory of this source tree.
11224
+ */
11225
+
11226
+
11227
+
11228
+
11229
+
11230
+
11231
+
11232
+
11233
+
11234
+
11235
+
11236
+
11237
+
11238
+
11239
+
11240
+
11241
+
11242
+
11243
+
11244
+
11245
+
11246
+
11247
+
11248
+ /***/ }),
11249
+ /* 165 */
11250
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
11251
+
11252
+ "use strict";
11253
+ /* unused harmony export border */
11254
+ /* unused harmony export borderTop */
11255
+ /* unused harmony export borderRight */
11256
+ /* unused harmony export borderBottom */
11257
+ /* unused harmony export borderLeft */
11258
+ /* unused harmony export borderColor */
11259
+ /* unused harmony export borderRadius */
11260
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(26);
11261
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(31);
11262
+
11263
+
11264
+
11265
+ function getBorder(value) {
11266
+ if (typeof value !== 'number') {
11267
+ return value;
11268
+ }
11269
+
11270
+ return "".concat(value, "px solid");
11271
+ }
11272
+
11273
+ var border = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11274
+ prop: 'border',
11275
+ themeKey: 'borders',
11276
+ transform: getBorder
11277
+ });
11278
+ var borderTop = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11279
+ prop: 'borderTop',
11280
+ themeKey: 'borders',
11281
+ transform: getBorder
11282
+ });
11283
+ var borderRight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11284
+ prop: 'borderRight',
11285
+ themeKey: 'borders',
11286
+ transform: getBorder
11287
+ });
11288
+ var borderBottom = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11289
+ prop: 'borderBottom',
11290
+ themeKey: 'borders',
11291
+ transform: getBorder
11292
+ });
11293
+ var borderLeft = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11294
+ prop: 'borderLeft',
11295
+ themeKey: 'borders',
11296
+ transform: getBorder
11297
+ });
11298
+ var borderColor = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11299
+ prop: 'borderColor',
11300
+ themeKey: 'palette'
11301
+ });
11302
+ var borderRadius = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11303
+ prop: 'borderRadius',
11304
+ themeKey: 'shape'
11305
+ });
11306
+ var borders = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderRadius);
11307
+ /* harmony default export */ __webpack_exports__["a"] = (borders);
11308
+
11309
+ /***/ }),
11310
+ /* 166 */
11311
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
11312
+
11313
+ "use strict";
11314
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(2);
11315
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);
11316
+
11317
+ var responsivePropType = process.env.NODE_ENV !== 'production' ? __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.array]) : {};
11318
+ /* harmony default export */ __webpack_exports__["a"] = (responsivePropType);
11319
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
11320
+
11321
+ /***/ }),
11322
+ /* 167 */
11323
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
11324
+
11325
+ "use strict";
11326
+ /* unused harmony export flexBasis */
11327
+ /* unused harmony export flexDirection */
11328
+ /* unused harmony export flexWrap */
11329
+ /* unused harmony export justifyContent */
11330
+ /* unused harmony export alignItems */
11331
+ /* unused harmony export alignContent */
11332
+ /* unused harmony export order */
11333
+ /* unused harmony export flex */
11334
+ /* unused harmony export flexGrow */
11335
+ /* unused harmony export flexShrink */
11336
+ /* unused harmony export alignSelf */
11337
+ /* unused harmony export justifyItems */
11338
+ /* unused harmony export justifySelf */
11339
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(26);
11340
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(31);
11341
+
11342
+
11343
+ var flexBasis = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11344
+ prop: 'flexBasis'
11345
+ });
11346
+ var flexDirection = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11347
+ prop: 'flexDirection'
11348
+ });
11349
+ var flexWrap = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11350
+ prop: 'flexWrap'
11351
+ });
11352
+ var justifyContent = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11353
+ prop: 'justifyContent'
11354
+ });
11355
+ var alignItems = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11356
+ prop: 'alignItems'
11357
+ });
11358
+ var alignContent = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11359
+ prop: 'alignContent'
11360
+ });
11361
+ var order = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11362
+ prop: 'order'
11363
+ });
11364
+ var flex = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11365
+ prop: 'flex'
11366
+ });
11367
+ var flexGrow = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11368
+ prop: 'flexGrow'
11369
+ });
11370
+ var flexShrink = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11371
+ prop: 'flexShrink'
11372
+ });
11373
+ var alignSelf = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11374
+ prop: 'alignSelf'
11375
+ });
11376
+ var justifyItems = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11377
+ prop: 'justifyItems'
11378
+ });
11379
+ var justifySelf = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11380
+ prop: 'justifySelf'
11381
+ });
11382
+ var flexbox = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(flexBasis, flexDirection, flexWrap, justifyContent, alignItems, alignContent, order, flex, flexGrow, flexShrink, alignSelf, justifyItems, justifySelf);
11383
+ /* harmony default export */ __webpack_exports__["a"] = (flexbox);
11384
+
11385
+ /***/ }),
11386
+ /* 168 */
11387
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
11388
+
11389
+ "use strict";
11390
+ /* unused harmony export gridGap */
11391
+ /* unused harmony export gridColumnGap */
11392
+ /* unused harmony export gridRowGap */
11393
+ /* unused harmony export gridColumn */
11394
+ /* unused harmony export gridRow */
11395
+ /* unused harmony export gridAutoFlow */
11396
+ /* unused harmony export gridAutoColumns */
11397
+ /* unused harmony export gridAutoRows */
11398
+ /* unused harmony export gridTemplateColumns */
11399
+ /* unused harmony export gridTemplateRows */
11400
+ /* unused harmony export gridTemplateAreas */
11401
+ /* unused harmony export gridArea */
11402
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(26);
11403
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(31);
11404
+
11405
+
11406
+ var gridGap = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11407
+ prop: 'gridGap'
11408
+ });
11409
+ var gridColumnGap = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11410
+ prop: 'gridColumnGap'
11411
+ });
11412
+ var gridRowGap = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11413
+ prop: 'gridRowGap'
11414
+ });
11415
+ var gridColumn = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11416
+ prop: 'gridColumn'
11417
+ });
11418
+ var gridRow = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11419
+ prop: 'gridRow'
11420
+ });
11421
+ var gridAutoFlow = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11422
+ prop: 'gridAutoFlow'
11423
+ });
11424
+ var gridAutoColumns = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11425
+ prop: 'gridAutoColumns'
11426
+ });
11427
+ var gridAutoRows = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11428
+ prop: 'gridAutoRows'
11429
+ });
11430
+ var gridTemplateColumns = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11431
+ prop: 'gridTemplateColumns'
11432
+ });
11433
+ var gridTemplateRows = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11434
+ prop: 'gridTemplateRows'
11435
+ });
11436
+ var gridTemplateAreas = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11437
+ prop: 'gridTemplateAreas'
11438
+ });
11439
+ var gridArea = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11440
+ prop: 'gridArea'
11441
+ });
11442
+ var grid = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(gridGap, gridColumnGap, gridRowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);
11443
+ /* harmony default export */ __webpack_exports__["a"] = (grid);
11444
+
11445
+ /***/ }),
11446
+ /* 169 */
11447
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
11448
+
11449
+ "use strict";
11450
+ /* unused harmony export color */
11451
+ /* unused harmony export bgcolor */
11452
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(26);
11453
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(31);
11454
+
11455
+
11456
+ var color = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11457
+ prop: 'color',
11458
+ themeKey: 'palette'
11459
+ });
11460
+ var bgcolor = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11461
+ prop: 'bgcolor',
11462
+ cssProperty: 'backgroundColor',
11463
+ themeKey: 'palette'
11464
+ });
11465
+ var palette = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(color, bgcolor);
11466
+ /* harmony default export */ __webpack_exports__["a"] = (palette);
11467
+
11468
+ /***/ }),
11469
+ /* 170 */
11470
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
11471
+
11472
+ "use strict";
11473
+ /* unused harmony export position */
11474
+ /* unused harmony export zIndex */
11475
+ /* unused harmony export top */
11476
+ /* unused harmony export right */
11477
+ /* unused harmony export bottom */
11478
+ /* unused harmony export left */
11479
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(26);
11480
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(31);
11481
+
11482
+
11483
+ var position = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11484
+ prop: 'position'
11485
+ });
11486
+ var zIndex = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11487
+ prop: 'zIndex',
11488
+ themeKey: 'zIndex'
11489
+ });
11490
+ var top = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11491
+ prop: 'top'
11492
+ });
11493
+ var right = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11494
+ prop: 'right'
11495
+ });
11496
+ var bottom = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11497
+ prop: 'bottom'
11498
+ });
11499
+ var left = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11500
+ prop: 'left'
11501
+ });
11502
+ /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(position, zIndex, top, right, bottom, left));
11503
+
11504
+ /***/ }),
11505
+ /* 171 */
11506
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
11507
+
11508
+ "use strict";
11509
+ /* unused harmony export width */
11510
+ /* unused harmony export maxWidth */
11511
+ /* unused harmony export minWidth */
11512
+ /* unused harmony export height */
11513
+ /* unused harmony export maxHeight */
11514
+ /* unused harmony export minHeight */
11515
+ /* unused harmony export sizeWidth */
11516
+ /* unused harmony export sizeHeight */
11517
+ /* unused harmony export boxSizing */
11518
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(26);
11519
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(31);
11520
+
11521
+
11522
+
11523
+ function transform(value) {
11524
+ return value <= 1 ? "".concat(value * 100, "%") : value;
11525
+ }
11526
+
11527
+ var width = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11528
+ prop: 'width',
11529
+ transform: transform
11530
+ });
11531
+ var maxWidth = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11532
+ prop: 'maxWidth',
11533
+ transform: transform
11534
+ });
11535
+ var minWidth = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11536
+ prop: 'minWidth',
11537
+ transform: transform
11538
+ });
11539
+ var height = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11540
+ prop: 'height',
11541
+ transform: transform
11542
+ });
11543
+ var maxHeight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11544
+ prop: 'maxHeight',
11545
+ transform: transform
11546
+ });
11547
+ var minHeight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11548
+ prop: 'minHeight',
11549
+ transform: transform
11550
+ });
11551
+ var sizeWidth = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11552
+ prop: 'size',
11553
+ cssProperty: 'width',
11554
+ transform: transform
11555
+ });
11556
+ var sizeHeight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11557
+ prop: 'size',
11558
+ cssProperty: 'height',
11559
+ transform: transform
11560
+ });
11561
+ var boxSizing = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11562
+ prop: 'boxSizing'
11563
+ });
11564
+ var sizing = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);
11565
+ /* harmony default export */ __webpack_exports__["a"] = (sizing);
11566
+
11567
+ /***/ }),
11568
+ /* 172 */
11569
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
11570
+
11571
+ "use strict";
11572
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = createUnarySpacing;
11573
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_slicedToArray__ = __webpack_require__(27);
11574
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__responsivePropType__ = __webpack_require__(166);
11575
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__breakpoints__ = __webpack_require__(99);
11576
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__merge__ = __webpack_require__(71);
11577
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__memoize__ = __webpack_require__(395);
11578
+
11579
+
11580
+
11581
+
11582
+
11583
+ var properties = {
11584
+ m: 'margin',
11585
+ p: 'padding'
11586
+ };
11587
+ var directions = {
11588
+ t: 'Top',
11589
+ r: 'Right',
11590
+ b: 'Bottom',
11591
+ l: 'Left',
11592
+ x: ['Left', 'Right'],
11593
+ y: ['Top', 'Bottom']
11594
+ };
11595
+ var aliases = {
11596
+ marginX: 'mx',
11597
+ marginY: 'my',
11598
+ paddingX: 'px',
11599
+ paddingY: 'py'
11600
+ }; // memoize() impact:
11601
+ // From 300,000 ops/sec
11602
+ // To 350,000 ops/sec
11603
+
11604
+ var getCssProperties = Object(__WEBPACK_IMPORTED_MODULE_4__memoize__["a" /* default */])(function (prop) {
11605
+ // It's not a shorthand notation.
11606
+ if (prop.length > 2) {
11607
+ if (aliases[prop]) {
11608
+ prop = aliases[prop];
11609
+ } else {
11610
+ return [prop];
11611
+ }
11612
+ }
11613
+
11614
+ var _prop$split = prop.split(''),
11615
+ _prop$split2 = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_slicedToArray__["a" /* default */])(_prop$split, 2),
11616
+ a = _prop$split2[0],
11617
+ b = _prop$split2[1];
11618
+
11619
+ var property = properties[a];
11620
+ var direction = directions[b] || '';
11621
+ return Array.isArray(direction) ? direction.map(function (dir) {
11622
+ return property + dir;
11623
+ }) : [property + direction];
11624
+ });
11625
+ var spacingKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY'];
11626
+ function createUnarySpacing(theme) {
11627
+ var themeSpacing = theme.spacing || 8;
11628
+
11629
+ if (typeof themeSpacing === 'number') {
11630
+ return function (abs) {
11631
+ if (process.env.NODE_ENV !== 'production') {
11632
+ if (typeof abs !== 'number') {
11633
+ console.error("@material-ui/system: expected spacing argument to be a number, got ".concat(abs, "."));
11634
+ }
11635
+ }
11636
+
11637
+ return themeSpacing * abs;
11638
+ };
11639
+ }
11640
+
11641
+ if (Array.isArray(themeSpacing)) {
11642
+ return function (abs) {
11643
+ if (process.env.NODE_ENV !== 'production') {
11644
+ if (abs > themeSpacing.length - 1) {
11645
+ console.error(["@material-ui/system: the value provided (".concat(abs, ") overflows."), "The supported values are: ".concat(JSON.stringify(themeSpacing), "."), "".concat(abs, " > ").concat(themeSpacing.length - 1, ", you need to add the missing values.")].join('\n'));
11646
+ }
11647
+ }
11648
+
11649
+ return themeSpacing[abs];
11650
+ };
11651
+ }
11652
+
11653
+ if (typeof themeSpacing === 'function') {
11654
+ return themeSpacing;
11655
+ }
11656
+
11657
+ if (process.env.NODE_ENV !== 'production') {
11658
+ console.error(["@material-ui/system: the `theme.spacing` value (".concat(themeSpacing, ") is invalid."), 'It should be a number, an array or a function.'].join('\n'));
11659
+ }
11660
+
11661
+ return function () {
11662
+ return undefined;
11663
+ };
11664
+ }
11665
+
11666
+ function getValue(transformer, propValue) {
11667
+ if (typeof propValue === 'string') {
11668
+ return propValue;
11669
+ }
11670
+
11671
+ var abs = Math.abs(propValue);
11672
+ var transformed = transformer(abs);
11673
+
11674
+ if (propValue >= 0) {
11675
+ return transformed;
11676
+ }
11677
+
11678
+ if (typeof transformed === 'number') {
11679
+ return -transformed;
11680
+ }
11681
+
11682
+ return "-".concat(transformed);
11683
+ }
11684
+
11685
+ function getStyleFromPropValue(cssProperties, transformer) {
11686
+ return function (propValue) {
11687
+ return cssProperties.reduce(function (acc, cssProperty) {
11688
+ acc[cssProperty] = getValue(transformer, propValue);
11689
+ return acc;
11690
+ }, {});
11691
+ };
11692
+ }
11693
+
11694
+ function spacing(props) {
11695
+ var theme = props.theme;
11696
+ var transformer = createUnarySpacing(theme);
11697
+ return Object.keys(props).map(function (prop) {
11698
+ // Using a hash computation over an array iteration could be faster, but with only 28 items,
11699
+ // it's doesn't worth the bundle size.
11700
+ if (spacingKeys.indexOf(prop) === -1) {
11701
+ return null;
11702
+ }
11703
+
11704
+ var cssProperties = getCssProperties(prop);
11705
+ var styleFromPropValue = getStyleFromPropValue(cssProperties, transformer);
11706
+ var propValue = props[prop];
11707
+ return Object(__WEBPACK_IMPORTED_MODULE_2__breakpoints__["a" /* handleBreakpoints */])(props, propValue, styleFromPropValue);
11708
+ }).reduce(__WEBPACK_IMPORTED_MODULE_3__merge__["a" /* default */], {});
11709
+ }
11710
+
11711
+ spacing.propTypes = process.env.NODE_ENV !== 'production' ? spacingKeys.reduce(function (obj, key) {
11712
+ obj[key] = __WEBPACK_IMPORTED_MODULE_1__responsivePropType__["a" /* default */];
11713
+ return obj;
11714
+ }, {}) : {};
11715
+ spacing.filterProps = spacingKeys;
11716
+ /* harmony default export */ __webpack_exports__["b"] = (spacing);
11717
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
11718
+
11719
+ /***/ }),
11720
+ /* 173 */
11721
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
11722
+
11723
+ "use strict";
11724
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _arrayWithHoles;
11725
+ function _arrayWithHoles(arr) {
11726
+ if (Array.isArray(arr)) return arr;
11727
+ }
11728
+
11729
+ /***/ }),
11730
+ /* 174 */
11731
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
11732
+
11733
+ "use strict";
11734
+ /* harmony export (immutable) */ __webpack_exports__["a"] = _nonIterableRest;
11735
+ function _nonIterableRest() {
11736
+ throw new TypeError("Invalid attempt to destructure non-iterable instance");
11737
+ }
11738
+
11739
+ /***/ }),
11740
+ /* 175 */
11741
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
11742
+
11743
+ "use strict";
11744
+ /* unused harmony export fontFamily */
11745
+ /* unused harmony export fontSize */
11746
+ /* unused harmony export fontStyle */
11747
+ /* unused harmony export fontWeight */
11748
+ /* unused harmony export letterSpacing */
11749
+ /* unused harmony export lineHeight */
11750
+ /* unused harmony export textAlign */
11751
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(26);
11752
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(31);
11753
+
11754
+
11755
+ var fontFamily = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11756
+ prop: 'fontFamily',
11757
+ themeKey: 'typography'
11758
+ });
11759
+ var fontSize = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11760
+ prop: 'fontSize',
11761
+ themeKey: 'typography'
11762
+ });
11763
+ var fontStyle = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11764
+ prop: 'fontStyle',
11765
+ themeKey: 'typography'
11766
+ });
11767
+ var fontWeight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11768
+ prop: 'fontWeight',
11769
+ themeKey: 'typography'
11770
+ });
11771
+ var letterSpacing = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11772
+ prop: 'letterSpacing'
11773
+ });
11774
+ var lineHeight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11775
+ prop: 'lineHeight'
11776
+ });
11777
+ var textAlign = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
11778
+ prop: 'textAlign'
11779
+ });
11780
+ var typography = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(fontFamily, fontSize, fontStyle, fontWeight, letterSpacing, lineHeight, textAlign);
11781
+ /* harmony default export */ __webpack_exports__["a"] = (typography);
11782
+
11783
+ /***/ }),
11784
+ /* 176 */
11785
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
11786
+
11787
+ "use strict";
11788
+ // We need to centralize the zIndex definitions as they work
11789
+ // like global values in the browser.
11790
+ var zIndex = {
11791
+ mobileStepper: 1000,
11792
+ speedDial: 1050,
11793
+ appBar: 1100,
11794
+ drawer: 1200,
11795
+ modal: 1300,
11796
+ snackbar: 1400,
11797
+ tooltip: 1500
11798
+ };
11799
+ /* harmony default export */ __webpack_exports__["a"] = (zIndex);
11800
+
11801
+ /***/ }),
11802
+ /* 177 */
11803
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
11804
+
11805
+ "use strict";
11806
+ function areInputsEqual(newInputs, lastInputs) {
11807
+ if (newInputs.length !== lastInputs.length) {
11808
+ return false;
11809
+ }
11810
+ for (var i = 0; i < newInputs.length; i++) {
11811
+ if (newInputs[i] !== lastInputs[i]) {
11812
+ return false;
11813
+ }
11814
+ }
11815
+ return true;
11816
+ }
11817
+
11818
+ function memoizeOne(resultFn, isEqual) {
11819
+ if (isEqual === void 0) { isEqual = areInputsEqual; }
11820
+ var lastThis;
11821
+ var lastArgs = [];
11822
+ var lastResult;
11823
+ var calledOnce = false;
11824
+ function memoized() {
11825
+ var newArgs = [];
11826
+ for (var _i = 0; _i < arguments.length; _i++) {
11827
+ newArgs[_i] = arguments[_i];
11828
+ }
11829
+ if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
11830
+ return lastResult;
11831
+ }
11832
+ lastResult = resultFn.apply(this, newArgs);
11833
+ calledOnce = true;
11834
+ lastThis = this;
11835
+ lastArgs = newArgs;
11836
+ return lastResult;
11837
+ }
11838
+ return memoized;
11839
+ }
11840
+
11841
+ /* harmony default export */ __webpack_exports__["a"] = (memoizeOne);
11842
+
11843
+
11844
+ /***/ }),
11845
+ /* 178 */
11846
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
11847
+
11848
+ "use strict";
11849
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__ = __webpack_require__(179);
11850
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__emotion_stylis__ = __webpack_require__(397);
11851
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_weak_memoize__ = __webpack_require__(398);
11852
+
11853
+
11854
+
11855
+
11856
+ // https://github.com/thysultan/stylis.js/tree/master/plugins/rule-sheet
11857
+ // inlined to avoid umd wrapper and peerDep warnings/installing stylis
11858
+ // since we use stylis after closure compiler
11859
+ var delimiter = '/*|*/';
11860
+ var needle = delimiter + '}';
11861
+
11862
+ function toSheet(block) {
11863
+ if (block) {
11864
+ Sheet.current.insert(block + '}');
11865
+ }
11866
+ }
11867
+
11868
+ var Sheet = {
11869
+ current: null
11870
+ };
11871
+ var ruleSheet = function ruleSheet(context, content, selectors, parents, line, column, length, ns, depth, at) {
11872
+ switch (context) {
11873
+ // property
11874
+ case 1:
11875
+ {
11876
+ switch (content.charCodeAt(0)) {
11877
+ case 64:
11878
+ {
11879
+ // @import
11880
+ Sheet.current.insert(content + ';');
11881
+ return '';
11882
+ }
11883
+ // charcode for l
11884
+
11885
+ case 108:
11886
+ {
11887
+ // charcode for b
11888
+ // this ignores label
11889
+ if (content.charCodeAt(2) === 98) {
11890
+ return '';
11891
+ }
11892
+ }
11893
+ }
11894
+
11895
+ break;
11896
+ }
11897
+ // selector
11898
+
11899
+ case 2:
11900
+ {
11901
+ if (ns === 0) return content + delimiter;
11902
+ break;
11903
+ }
11904
+ // at-rule
11905
+
11906
+ case 3:
11907
+ {
11908
+ switch (ns) {
11909
+ // @font-face, @page
11910
+ case 102:
11911
+ case 112:
11912
+ {
11913
+ Sheet.current.insert(selectors[0] + content);
11914
+ return '';
11915
+ }
11916
+
11917
+ default:
11918
+ {
11919
+ return content + (at === 0 ? delimiter : '');
11920
+ }
11921
+ }
11922
+ }
11923
+
11924
+ case -2:
11925
+ {
11926
+ content.split(needle).forEach(toSheet);
11927
+ }
11928
+ }
11929
+ };
11930
+
11931
+ var createCache = function createCache(options) {
11932
+ if (options === undefined) options = {};
11933
+ var key = options.key || 'css';
11934
+ var stylisOptions;
11935
+
11936
+ if (options.prefix !== undefined) {
11937
+ stylisOptions = {
11938
+ prefix: options.prefix
11939
+ };
11940
+ }
11941
+
11942
+ var stylis = new __WEBPACK_IMPORTED_MODULE_1__emotion_stylis__["a" /* default */](stylisOptions);
11943
+
11944
+ if (process.env.NODE_ENV !== 'production') {
11945
+ // $FlowFixMe
11946
+ if (/[^a-z-]/.test(key)) {
11947
+ throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed");
11948
+ }
11949
+ }
11950
+
11951
+ var inserted = {}; // $FlowFixMe
11952
+
11953
+ var container;
11954
+
11955
+ {
11956
+ container = options.container || document.head;
11957
+ var nodes = document.querySelectorAll("style[data-emotion-" + key + "]");
11958
+ Array.prototype.forEach.call(nodes, function (node) {
11959
+ var attrib = node.getAttribute("data-emotion-" + key); // $FlowFixMe
11960
+
11961
+ attrib.split(' ').forEach(function (id) {
11962
+ inserted[id] = true;
11963
+ });
11964
+
11965
+ if (node.parentNode !== container) {
11966
+ container.appendChild(node);
11967
+ }
11968
+ });
11969
+ }
11970
+
11971
+ var _insert;
11972
+
11973
+ {
11974
+ stylis.use(options.stylisPlugins)(ruleSheet);
11975
+
11976
+ _insert = function insert(selector, serialized, sheet, shouldCache) {
11977
+ var name = serialized.name;
11978
+ Sheet.current = sheet;
11979
+
11980
+ if (process.env.NODE_ENV !== 'production' && serialized.map !== undefined) {
11981
+ var map = serialized.map;
11982
+ Sheet.current = {
11983
+ insert: function insert(rule) {
11984
+ sheet.insert(rule + map);
11985
+ }
11986
+ };
11987
+ }
11988
+
11989
+ stylis(selector, serialized.styles);
11990
+
11991
+ if (shouldCache) {
11992
+ cache.inserted[name] = true;
11993
+ }
11994
+ };
11995
+ }
11996
+
11997
+ if (process.env.NODE_ENV !== 'production') {
11998
+ // https://esbench.com/bench/5bf7371a4cd7e6009ef61d0a
11999
+ var commentStart = /\/\*/g;
12000
+ var commentEnd = /\*\//g;
12001
+ stylis.use(function (context, content) {
12002
+ switch (context) {
12003
+ case -1:
12004
+ {
12005
+ while (commentStart.test(content)) {
12006
+ commentEnd.lastIndex = commentStart.lastIndex;
12007
+
12008
+ if (commentEnd.test(content)) {
12009
+ commentStart.lastIndex = commentEnd.lastIndex;
12010
+ continue;
12011
+ }
12012
+
12013
+ throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").');
12014
+ }
12015
+
12016
+ commentStart.lastIndex = 0;
12017
+ break;
12018
+ }
12019
+ }
12020
+ });
12021
+ stylis.use(function (context, content, selectors) {
12022
+ switch (context) {
12023
+ case -1:
12024
+ {
12025
+ var flag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason';
12026
+ var unsafePseudoClasses = content.match(/(:first|:nth|:nth-last)-child/g);
12027
+
12028
+ if (unsafePseudoClasses && cache.compat !== true) {
12029
+ unsafePseudoClasses.forEach(function (unsafePseudoClass) {
12030
+ var ignoreRegExp = new RegExp(unsafePseudoClass + ".*\\/\\* " + flag + " \\*\\/");
12031
+ var ignore = ignoreRegExp.test(content);
12032
+
12033
+ if (unsafePseudoClass && !ignore) {
12034
+ console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\".");
12035
+ }
12036
+ });
12037
+ }
12038
+
12039
+ break;
12040
+ }
12041
+ }
12042
+ });
12043
+ }
12044
+
12045
+ var cache = {
12046
+ key: key,
12047
+ sheet: new __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__["a" /* StyleSheet */]({
12048
+ key: key,
12049
+ container: container,
12050
+ nonce: options.nonce,
12051
+ speedy: options.speedy
12052
+ }),
12053
+ nonce: options.nonce,
12054
+ inserted: inserted,
12055
+ registered: {},
12056
+ insert: _insert
12057
+ };
12058
+ return cache;
12059
+ };
12060
+
12061
+ /* harmony default export */ __webpack_exports__["a"] = (createCache);
12062
+
12063
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
12064
+
12065
+ /***/ }),
12066
+ /* 179 */
12067
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
12068
+
12069
+ "use strict";
12070
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return StyleSheet; });
12071
+ /*
12072
+
12073
+ Based off glamor's StyleSheet, thanks Sunil ❤️
12074
+
12075
+ high performance StyleSheet for css-in-js systems
12076
+
12077
+ - uses multiple style tags behind the scenes for millions of rules
12078
+ - uses `insertRule` for appending in production for *much* faster performance
12079
+
12080
+ // usage
12081
+
12082
+ import { StyleSheet } from '@emotion/sheet'
12083
+
12084
+ let styleSheet = new StyleSheet({ key: '', container: document.head })
12085
+
12086
+ styleSheet.insert('#box { border: 1px solid red; }')
12087
+ - appends a css rule into the stylesheet
12088
+
12089
+ styleSheet.flush()
12090
+ - empties the stylesheet of all its contents
12091
+
12092
+ */
12093
+ // $FlowFixMe
12094
+ function sheetForTag(tag) {
12095
+ if (tag.sheet) {
12096
+ // $FlowFixMe
12097
+ return tag.sheet;
12098
+ } // this weirdness brought to you by firefox
12099
+
12100
+ /* istanbul ignore next */
12101
+
12102
+
12103
+ for (var i = 0; i < document.styleSheets.length; i++) {
12104
+ if (document.styleSheets[i].ownerNode === tag) {
12105
+ // $FlowFixMe
12106
+ return document.styleSheets[i];
12107
+ }
12108
+ }
12109
+ }
12110
+
12111
+ function createStyleElement(options) {
12112
+ var tag = document.createElement('style');
12113
+ tag.setAttribute('data-emotion', options.key);
12114
+
12115
+ if (options.nonce !== undefined) {
12116
+ tag.setAttribute('nonce', options.nonce);
12117
+ }
12118
+
12119
+ tag.appendChild(document.createTextNode(''));
12120
+ return tag;
12121
+ }
12122
+
12123
+ var StyleSheet =
12124
+ /*#__PURE__*/
12125
+ function () {
12126
+ function StyleSheet(options) {
12127
+ this.isSpeedy = options.speedy === undefined ? process.env.NODE_ENV === 'production' : options.speedy;
12128
+ this.tags = [];
12129
+ this.ctr = 0;
12130
+ this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets
12131
+
12132
+ this.key = options.key;
12133
+ this.container = options.container;
12134
+ this.before = null;
12135
+ }
12136
+
12137
+ var _proto = StyleSheet.prototype;
12138
+
12139
+ _proto.insert = function insert(rule) {
12140
+ // the max length is how many rules we have per style tag, it's 65000 in speedy mode
12141
+ // it's 1 in dev because we insert source maps that map a single rule to a location
12142
+ // and you can only have one source map per style tag
12143
+ if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {
12144
+ var _tag = createStyleElement(this);
12145
+
12146
+ var before;
12147
+
12148
+ if (this.tags.length === 0) {
12149
+ before = this.before;
12150
+ } else {
12151
+ before = this.tags[this.tags.length - 1].nextSibling;
12152
+ }
12153
+
12154
+ this.container.insertBefore(_tag, before);
12155
+ this.tags.push(_tag);
12156
+ }
12157
+
12158
+ var tag = this.tags[this.tags.length - 1];
12159
+
12160
+ if (this.isSpeedy) {
12161
+ var sheet = sheetForTag(tag);
12162
+
12163
+ try {
12164
+ // this is a really hot path
12165
+ // we check the second character first because having "i"
12166
+ // as the second character will happen less often than
12167
+ // having "@" as the first character
12168
+ var isImportRule = rule.charCodeAt(1) === 105 && rule.charCodeAt(0) === 64; // this is the ultrafast version, works across browsers
12169
+ // the big drawback is that the css won't be editable in devtools
12170
+
12171
+ sheet.insertRule(rule, // we need to insert @import rules before anything else
12172
+ // otherwise there will be an error
12173
+ // technically this means that the @import rules will
12174
+ // _usually_(not always since there could be multiple style tags)
12175
+ // be the first ones in prod and generally later in dev
12176
+ // this shouldn't really matter in the real world though
12177
+ // @import is generally only used for font faces from google fonts and etc.
12178
+ // so while this could be technically correct then it would be slower and larger
12179
+ // for a tiny bit of correctness that won't matter in the real world
12180
+ isImportRule ? 0 : sheet.cssRules.length);
12181
+ } catch (e) {
12182
+ if (process.env.NODE_ENV !== 'production') {
12183
+ console.warn("There was a problem inserting the following rule: \"" + rule + "\"", e);
12184
+ }
12185
+ }
12186
+ } else {
12187
+ tag.appendChild(document.createTextNode(rule));
12188
+ }
12189
+
12190
+ this.ctr++;
12191
+ };
12192
+
12193
+ _proto.flush = function flush() {
12194
+ // $FlowFixMe
12195
+ this.tags.forEach(function (tag) {
12196
+ return tag.parentNode.removeChild(tag);
12197
+ });
12198
+ this.tags = [];
12199
+ this.ctr = 0;
12200
+ };
12201
+
12202
+ return StyleSheet;
12203
+ }();
12204
+
12205
+
12206
+
12207
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
12208
+
12209
+ /***/ }),
12210
+ /* 180 */
12211
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
12212
+
12213
+ "use strict";
12214
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return serializeStyles; });
12215
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_hash__ = __webpack_require__(400);
12216
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__emotion_unitless__ = __webpack_require__(401);
12217
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_memoize__ = __webpack_require__(402);
12218
+
12219
+
12220
+
12221
+
12222
+ var ILLEGAL_ESCAPE_SEQUENCE_ERROR = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences";
12223
+ var UNDEFINED_AS_OBJECT_KEY_ERROR = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).";
12224
+ var hyphenateRegex = /[A-Z]|^ms/g;
12225
+ var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
12226
+
12227
+ var isCustomProperty = function isCustomProperty(property) {
12228
+ return property.charCodeAt(1) === 45;
12229
+ };
12230
+
12231
+ var isProcessableValue = function isProcessableValue(value) {
12232
+ return value != null && typeof value !== 'boolean';
12233
+ };
12234
+
12235
+ var processStyleName = Object(__WEBPACK_IMPORTED_MODULE_2__emotion_memoize__["a" /* default */])(function (styleName) {
12236
+ return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();
12237
+ });
12238
+
12239
+ var processStyleValue = function processStyleValue(key, value) {
12240
+ switch (key) {
12241
+ case 'animation':
12242
+ case 'animationName':
12243
+ {
12244
+ if (typeof value === 'string') {
12245
+ return value.replace(animationRegex, function (match, p1, p2) {
12246
+ cursor = {
12247
+ name: p1,
12248
+ styles: p2,
12249
+ next: cursor
12250
+ };
12251
+ return p1;
12252
+ });
12253
+ }
12254
+ }
12255
+ }
12256
+
12257
+ if (__WEBPACK_IMPORTED_MODULE_1__emotion_unitless__["a" /* default */][key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {
12258
+ return value + 'px';
12259
+ }
12260
+
12261
+ return value;
12262
+ };
12263
+
12264
+ if (process.env.NODE_ENV !== 'production') {
12265
+ var contentValuePattern = /(attr|calc|counters?|url)\(/;
12266
+ var contentValues = ['normal', 'none', 'counter', 'open-quote', 'close-quote', 'no-open-quote', 'no-close-quote', 'initial', 'inherit', 'unset'];
12267
+ var oldProcessStyleValue = processStyleValue;
12268
+ var msPattern = /^-ms-/;
12269
+ var hyphenPattern = /-(.)/g;
12270
+ var hyphenatedCache = {};
12271
+
12272
+ processStyleValue = function processStyleValue(key, value) {
12273
+ if (key === 'content') {
12274
+ if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
12275
+ console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
12276
+ }
12277
+ }
12278
+
12279
+ var processed = oldProcessStyleValue(key, value);
12280
+
12281
+ if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) {
12282
+ hyphenatedCache[key] = true;
12283
+ console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, 'ms-').replace(hyphenPattern, function (str, _char) {
12284
+ return _char.toUpperCase();
12285
+ }) + "?");
12286
+ }
12287
+
12288
+ return processed;
12289
+ };
12290
+ }
12291
+
12292
+ var shouldWarnAboutInterpolatingClassNameFromCss = true;
12293
+
12294
+ function handleInterpolation(mergedProps, registered, interpolation, couldBeSelectorInterpolation) {
12295
+ if (interpolation == null) {
12296
+ return '';
12297
+ }
12298
+
12299
+ if (interpolation.__emotion_styles !== undefined) {
12300
+ if (process.env.NODE_ENV !== 'production' && interpolation.toString() === 'NO_COMPONENT_SELECTOR') {
12301
+ throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.');
12302
+ }
12303
+
12304
+ return interpolation;
12305
+ }
12306
+
12307
+ switch (typeof interpolation) {
12308
+ case 'boolean':
12309
+ {
12310
+ return '';
12311
+ }
12312
+
12313
+ case 'object':
12314
+ {
12315
+ if (interpolation.anim === 1) {
12316
+ cursor = {
12317
+ name: interpolation.name,
12318
+ styles: interpolation.styles,
12319
+ next: cursor
12320
+ };
12321
+ return interpolation.name;
12322
+ }
12323
+
12324
+ if (interpolation.styles !== undefined) {
12325
+ var next = interpolation.next;
12326
+
12327
+ if (next !== undefined) {
12328
+ // not the most efficient thing ever but this is a pretty rare case
12329
+ // and there will be very few iterations of this generally
12330
+ while (next !== undefined) {
12331
+ cursor = {
12332
+ name: next.name,
12333
+ styles: next.styles,
12334
+ next: cursor
12335
+ };
12336
+ next = next.next;
12337
+ }
12338
+ }
12339
+
12340
+ var styles = interpolation.styles + ";";
12341
+
12342
+ if (process.env.NODE_ENV !== 'production' && interpolation.map !== undefined) {
12343
+ styles += interpolation.map;
12344
+ }
12345
+
12346
+ return styles;
12347
+ }
12348
+
12349
+ return createStringFromObject(mergedProps, registered, interpolation);
12350
+ }
12351
+
12352
+ case 'function':
12353
+ {
12354
+ if (mergedProps !== undefined) {
12355
+ var previousCursor = cursor;
12356
+ var result = interpolation(mergedProps);
12357
+ cursor = previousCursor;
12358
+ return handleInterpolation(mergedProps, registered, result, couldBeSelectorInterpolation);
12359
+ } else if (process.env.NODE_ENV !== 'production') {
12360
+ console.error('Functions that are interpolated in css calls will be stringified.\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\n' + 'It can be called directly with props or interpolated in a styled call like this\n' + "let SomeComponent = styled('div')`${dynamicStyle}`");
12361
+ }
12362
+
12363
+ break;
12364
+ }
12365
+
12366
+ case 'string':
12367
+ if (process.env.NODE_ENV !== 'production') {
12368
+ var matched = [];
12369
+ var replaced = interpolation.replace(animationRegex, function (match, p1, p2) {
12370
+ var fakeVarName = "animation" + matched.length;
12371
+ matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, '') + "`");
12372
+ return "${" + fakeVarName + "}";
12373
+ });
12374
+
12375
+ if (matched.length) {
12376
+ console.error('`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\n' + 'Instead of doing this:\n\n' + [].concat(matched, ["`" + replaced + "`"]).join('\n') + '\n\nYou should wrap it with `css` like this:\n\n' + ("css`" + replaced + "`"));
12377
+ }
12378
+ }
12379
+
12380
+ break;
12381
+ } // finalize string values (regular strings and functions interpolated into css calls)
12382
+
12383
+
12384
+ if (registered == null) {
12385
+ return interpolation;
12386
+ }
12387
+
12388
+ var cached = registered[interpolation];
12389
+
12390
+ if (process.env.NODE_ENV !== 'production' && couldBeSelectorInterpolation && shouldWarnAboutInterpolatingClassNameFromCss && cached !== undefined) {
12391
+ console.error('Interpolating a className from css`` is not recommended and will cause problems with composition.\n' + 'Interpolating a className from css`` will be completely unsupported in a future major version of Emotion');
12392
+ shouldWarnAboutInterpolatingClassNameFromCss = false;
12393
+ }
12394
+
12395
+ return cached !== undefined && !couldBeSelectorInterpolation ? cached : interpolation;
12396
+ }
12397
+
12398
+ function createStringFromObject(mergedProps, registered, obj) {
12399
+ var string = '';
12400
+
12401
+ if (Array.isArray(obj)) {
12402
+ for (var i = 0; i < obj.length; i++) {
12403
+ string += handleInterpolation(mergedProps, registered, obj[i], false);
12404
+ }
12405
+ } else {
12406
+ for (var _key in obj) {
12407
+ var value = obj[_key];
12408
+
12409
+ if (typeof value !== 'object') {
12410
+ if (registered != null && registered[value] !== undefined) {
12411
+ string += _key + "{" + registered[value] + "}";
12412
+ } else if (isProcessableValue(value)) {
12413
+ string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";";
12414
+ }
12415
+ } else {
12416
+ if (_key === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') {
12417
+ throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.');
12418
+ }
12419
+
12420
+ if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
12421
+ for (var _i = 0; _i < value.length; _i++) {
12422
+ if (isProcessableValue(value[_i])) {
12423
+ string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";";
12424
+ }
12425
+ }
12426
+ } else {
12427
+ var interpolated = handleInterpolation(mergedProps, registered, value, false);
12428
+
12429
+ switch (_key) {
12430
+ case 'animation':
12431
+ case 'animationName':
12432
+ {
12433
+ string += processStyleName(_key) + ":" + interpolated + ";";
12434
+ break;
12435
+ }
12436
+
12437
+ default:
12438
+ {
12439
+ if (process.env.NODE_ENV !== 'production' && _key === 'undefined') {
12440
+ console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);
12441
+ }
12442
+
12443
+ string += _key + "{" + interpolated + "}";
12444
+ }
12445
+ }
12446
+ }
12447
+ }
12448
+ }
12449
+ }
12450
+
12451
+ return string;
12452
+ }
12453
+
12454
+ var labelPattern = /label:\s*([^\s;\n{]+)\s*;/g;
12455
+ var sourceMapPattern;
12456
+
12457
+ if (process.env.NODE_ENV !== 'production') {
12458
+ sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//;
12459
+ } // this is the cursor for keyframes
12460
+ // keyframes are stored on the SerializedStyles object as a linked list
12461
+
12462
+
12463
+ var cursor;
12464
+ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
12465
+ if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {
12466
+ return args[0];
12467
+ }
12468
+
12469
+ var stringMode = true;
12470
+ var styles = '';
12471
+ cursor = undefined;
12472
+ var strings = args[0];
12473
+
12474
+ if (strings == null || strings.raw === undefined) {
12475
+ stringMode = false;
12476
+ styles += handleInterpolation(mergedProps, registered, strings, false);
12477
+ } else {
12478
+ if (process.env.NODE_ENV !== 'production' && strings[0] === undefined) {
12479
+ console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
12480
+ }
12481
+
12482
+ styles += strings[0];
12483
+ } // we start at 1 since we've already handled the first arg
12484
+
12485
+
12486
+ for (var i = 1; i < args.length; i++) {
12487
+ styles += handleInterpolation(mergedProps, registered, args[i], styles.charCodeAt(styles.length - 1) === 46);
12488
+
12489
+ if (stringMode) {
12490
+ if (process.env.NODE_ENV !== 'production' && strings[i] === undefined) {
12491
+ console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
12492
+ }
12493
+
12494
+ styles += strings[i];
12495
+ }
12496
+ }
12497
+
12498
+ var sourceMap;
12499
+
12500
+ if (process.env.NODE_ENV !== 'production') {
12501
+ styles = styles.replace(sourceMapPattern, function (match) {
12502
+ sourceMap = match;
12503
+ return '';
12504
+ });
12505
+ } // using a global regex with .exec is stateful so lastIndex has to be reset each time
12506
+
12507
+
12508
+ labelPattern.lastIndex = 0;
12509
+ var identifierName = '';
12510
+ var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5
12511
+
12512
+ while ((match = labelPattern.exec(styles)) !== null) {
12513
+ identifierName += '-' + // $FlowFixMe we know it's not null
12514
+ match[1];
12515
+ }
12516
+
12517
+ var name = Object(__WEBPACK_IMPORTED_MODULE_0__emotion_hash__["a" /* default */])(styles) + identifierName;
12518
+
12519
+ if (process.env.NODE_ENV !== 'production') {
12520
+ // $FlowFixMe SerializedStyles type doesn't have toString property (and we don't want to add it)
12521
+ return {
12522
+ name: name,
12523
+ styles: styles,
12524
+ map: sourceMap,
12525
+ next: cursor,
12526
+ toString: function toString() {
12527
+ return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
12528
+ }
12529
+ };
12530
+ }
12531
+
12532
+ return {
12533
+ name: name,
12534
+ styles: styles,
12535
+ next: cursor
12536
+ };
12537
+ };
12538
+
12539
+
12540
+
12541
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
12542
+
12543
+ /***/ }),
12544
+ /* 181 */
12545
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
12546
+
12547
+ "use strict";
12548
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MenuPlacer; });
12549
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return containerCSS; });
12550
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return css; });
12551
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return clearIndicatorCSS; });
12552
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return dropdownIndicatorCSS; });
12553
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return groupHeadingCSS; });
12554
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return indicatorSeparatorCSS; });
12555
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return groupCSS; });
12556
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return inputCSS; });
12557
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return indicatorsContainerCSS; });
12558
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return loadingMessageCSS; });
12559
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return menuListCSS; });
12560
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return loadingIndicatorCSS; });
12561
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return menuCSS; });
12562
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return menuPortalCSS; });
12563
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return multiValueCSS; });
12564
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return multiValueLabelCSS; });
12565
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return multiValueRemoveCSS; });
12566
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return noOptionsMessageCSS; });
12567
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return optionCSS; });
12568
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return placeholderCSS; });
12569
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return css$1; });
12570
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return valueContainerCSS; });
12571
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return defaultComponents; });
12572
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return exportedEqual; });
12573
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return components; });
12574
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
12575
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
12576
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__emotion_core__ = __webpack_require__(101);
12577
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(10);
12578
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__);
12579
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
12580
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
12581
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__ = __webpack_require__(102);
12582
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__emotion_css__ = __webpack_require__(53);
12583
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_input_autosize__ = __webpack_require__(182);
12584
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_input_autosize___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_input_autosize__);
12585
+
12586
+
12587
+
12588
+
12589
+
12590
+
12591
+
12592
+
12593
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
12594
+
12595
+ function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
12596
+ function getMenuPlacement(_ref) {
12597
+ var maxHeight = _ref.maxHeight,
12598
+ menuEl = _ref.menuEl,
12599
+ minHeight = _ref.minHeight,
12600
+ placement = _ref.placement,
12601
+ shouldScroll = _ref.shouldScroll,
12602
+ isFixedPosition = _ref.isFixedPosition,
12603
+ theme = _ref.theme;
12604
+ var spacing = theme.spacing;
12605
+ var scrollParent = Object(__WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["a"])(menuEl);
12606
+ var defaultState = {
12607
+ placement: 'bottom',
12608
+ maxHeight: maxHeight
12609
+ }; // something went wrong, return default state
12610
+
12611
+ if (!menuEl || !menuEl.offsetParent) return defaultState; // we can't trust `scrollParent.scrollHeight` --> it may increase when
12612
+ // the menu is rendered
12613
+
12614
+ var _scrollParent$getBoun = scrollParent.getBoundingClientRect(),
12615
+ scrollHeight = _scrollParent$getBoun.height;
12616
+
12617
+ var _menuEl$getBoundingCl = menuEl.getBoundingClientRect(),
12618
+ menuBottom = _menuEl$getBoundingCl.bottom,
12619
+ menuHeight = _menuEl$getBoundingCl.height,
12620
+ menuTop = _menuEl$getBoundingCl.top;
12621
+
12622
+ var _menuEl$offsetParent$ = menuEl.offsetParent.getBoundingClientRect(),
12623
+ containerTop = _menuEl$offsetParent$.top;
12624
+
12625
+ var viewHeight = window.innerHeight;
12626
+ var scrollTop = Object(__WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["b"])(scrollParent);
12627
+ var marginBottom = parseInt(getComputedStyle(menuEl).marginBottom, 10);
12628
+ var marginTop = parseInt(getComputedStyle(menuEl).marginTop, 10);
12629
+ var viewSpaceAbove = containerTop - marginTop;
12630
+ var viewSpaceBelow = viewHeight - menuTop;
12631
+ var scrollSpaceAbove = viewSpaceAbove + scrollTop;
12632
+ var scrollSpaceBelow = scrollHeight - scrollTop - menuTop;
12633
+ var scrollDown = menuBottom - viewHeight + scrollTop + marginBottom;
12634
+ var scrollUp = scrollTop + menuTop - marginTop;
12635
+ var scrollDuration = 160;
12636
+
12637
+ switch (placement) {
12638
+ case 'auto':
12639
+ case 'bottom':
12640
+ // 1: the menu will fit, do nothing
12641
+ if (viewSpaceBelow >= menuHeight) {
12642
+ return {
12643
+ placement: 'bottom',
12644
+ maxHeight: maxHeight
12645
+ };
12646
+ } // 2: the menu will fit, if scrolled
12647
+
12648
+
12649
+ if (scrollSpaceBelow >= menuHeight && !isFixedPosition) {
12650
+ if (shouldScroll) {
12651
+ Object(__WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["c"])(scrollParent, scrollDown, scrollDuration);
12652
+ }
12653
+
12654
+ return {
12655
+ placement: 'bottom',
12656
+ maxHeight: maxHeight
12657
+ };
12658
+ } // 3: the menu will fit, if constrained
12659
+
12660
+
12661
+ if (!isFixedPosition && scrollSpaceBelow >= minHeight || isFixedPosition && viewSpaceBelow >= minHeight) {
12662
+ if (shouldScroll) {
12663
+ Object(__WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["c"])(scrollParent, scrollDown, scrollDuration);
12664
+ } // we want to provide as much of the menu as possible to the user,
12665
+ // so give them whatever is available below rather than the minHeight.
12666
+
12667
+
12668
+ var constrainedHeight = isFixedPosition ? viewSpaceBelow - marginBottom : scrollSpaceBelow - marginBottom;
12669
+ return {
12670
+ placement: 'bottom',
12671
+ maxHeight: constrainedHeight
12672
+ };
12673
+ } // 4. Forked beviour when there isn't enough space below
12674
+ // AUTO: flip the menu, render above
12675
+
12676
+
12677
+ if (placement === 'auto' || isFixedPosition) {
12678
+ // may need to be constrained after flipping
12679
+ var _constrainedHeight = maxHeight;
12680
+ var spaceAbove = isFixedPosition ? viewSpaceAbove : scrollSpaceAbove;
12681
+
12682
+ if (spaceAbove >= minHeight) {
12683
+ _constrainedHeight = Math.min(spaceAbove - marginBottom - spacing.controlHeight, maxHeight);
12684
+ }
12685
+
12686
+ return {
12687
+ placement: 'top',
12688
+ maxHeight: _constrainedHeight
12689
+ };
12690
+ } // BOTTOM: allow browser to increase scrollable area and immediately set scroll
12691
+
12692
+
12693
+ if (placement === 'bottom') {
12694
+ Object(__WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["l" /* s */])(scrollParent, scrollDown);
12695
+ return {
12696
+ placement: 'bottom',
12697
+ maxHeight: maxHeight
12698
+ };
12699
+ }
12700
+
12701
+ break;
12702
+
12703
+ case 'top':
12704
+ // 1: the menu will fit, do nothing
12705
+ if (viewSpaceAbove >= menuHeight) {
12706
+ return {
12707
+ placement: 'top',
12708
+ maxHeight: maxHeight
12709
+ };
12710
+ } // 2: the menu will fit, if scrolled
12711
+
12712
+
12713
+ if (scrollSpaceAbove >= menuHeight && !isFixedPosition) {
12714
+ if (shouldScroll) {
12715
+ Object(__WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["c"])(scrollParent, scrollUp, scrollDuration);
12716
+ }
12717
+
12718
+ return {
12719
+ placement: 'top',
12720
+ maxHeight: maxHeight
12721
+ };
12722
+ } // 3: the menu will fit, if constrained
12723
+
12724
+
12725
+ if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) {
12726
+ var _constrainedHeight2 = maxHeight; // we want to provide as much of the menu as possible to the user,
12727
+ // so give them whatever is available below rather than the minHeight.
12728
+
12729
+ if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) {
12730
+ _constrainedHeight2 = isFixedPosition ? viewSpaceAbove - marginTop : scrollSpaceAbove - marginTop;
12731
+ }
12732
+
12733
+ if (shouldScroll) {
12734
+ Object(__WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["c"])(scrollParent, scrollUp, scrollDuration);
12735
+ }
12736
+
12737
+ return {
12738
+ placement: 'top',
12739
+ maxHeight: _constrainedHeight2
12740
+ };
12741
+ } // 4. not enough space, the browser WILL NOT increase scrollable area when
12742
+ // absolutely positioned element rendered above the viewport (only below).
12743
+ // Flip the menu, render below
12744
+
12745
+
12746
+ return {
12747
+ placement: 'bottom',
12748
+ maxHeight: maxHeight
12749
+ };
12750
+
12751
+ default:
12752
+ throw new Error("Invalid placement provided \"" + placement + "\".");
12753
+ } // fulfil contract with flow: implicit return value of undefined
12754
+
12755
+
12756
+ return defaultState;
12757
+ } // Menu Component
12758
+ // ------------------------------
12759
+
12760
+ function alignToControl(placement) {
12761
+ var placementToCSSProp = {
12762
+ bottom: 'top',
12763
+ top: 'bottom'
12764
+ };
12765
+ return placement ? placementToCSSProp[placement] : 'bottom';
12766
+ }
12767
+
12768
+ var coercePlacement = function coercePlacement(p) {
12769
+ return p === 'auto' ? 'bottom' : p;
12770
+ };
12771
+
12772
+ var menuCSS = function menuCSS(_ref2) {
12773
+ var _ref3;
12774
+
12775
+ var placement = _ref2.placement,
12776
+ _ref2$theme = _ref2.theme,
12777
+ borderRadius = _ref2$theme.borderRadius,
12778
+ spacing = _ref2$theme.spacing,
12779
+ colors = _ref2$theme.colors;
12780
+ return _ref3 = {
12781
+ label: 'menu'
12782
+ }, _ref3[alignToControl(placement)] = '100%', _ref3.backgroundColor = colors.neutral0, _ref3.borderRadius = borderRadius, _ref3.boxShadow = '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)', _ref3.marginBottom = spacing.menuGutter, _ref3.marginTop = spacing.menuGutter, _ref3.position = 'absolute', _ref3.width = '100%', _ref3.zIndex = 1, _ref3;
12783
+ }; // NOTE: internal only
12784
+
12785
+ var MenuPlacer =
12786
+ /*#__PURE__*/
12787
+ function (_Component) {
12788
+ _inheritsLoose(MenuPlacer, _Component);
12789
+
12790
+ function MenuPlacer() {
12791
+ var _this;
12792
+
12793
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
12794
+ args[_key] = arguments[_key];
12795
+ }
12796
+
12797
+ _this = _Component.call.apply(_Component, [this].concat(args)) || this;
12798
+ _this.state = {
12799
+ maxHeight: _this.props.maxMenuHeight,
12800
+ placement: null
12801
+ };
12802
+
12803
+ _this.getPlacement = function (ref) {
12804
+ var _this$props = _this.props,
12805
+ minMenuHeight = _this$props.minMenuHeight,
12806
+ maxMenuHeight = _this$props.maxMenuHeight,
12807
+ menuPlacement = _this$props.menuPlacement,
12808
+ menuPosition = _this$props.menuPosition,
12809
+ menuShouldScrollIntoView = _this$props.menuShouldScrollIntoView,
12810
+ theme = _this$props.theme;
12811
+ var getPortalPlacement = _this.context.getPortalPlacement;
12812
+ if (!ref) return; // DO NOT scroll if position is fixed
12813
+
12814
+ var isFixedPosition = menuPosition === 'fixed';
12815
+ var shouldScroll = menuShouldScrollIntoView && !isFixedPosition;
12816
+ var state = getMenuPlacement({
12817
+ maxHeight: maxMenuHeight,
12818
+ menuEl: ref,
12819
+ minHeight: minMenuHeight,
12820
+ placement: menuPlacement,
12821
+ shouldScroll: shouldScroll,
12822
+ isFixedPosition: isFixedPosition,
12823
+ theme: theme
12824
+ });
12825
+ if (getPortalPlacement) getPortalPlacement(state);
12826
+
12827
+ _this.setState(state);
12828
+ };
12829
+
12830
+ _this.getUpdatedProps = function () {
12831
+ var menuPlacement = _this.props.menuPlacement;
12832
+ var placement = _this.state.placement || coercePlacement(menuPlacement);
12833
+ return _extends({}, _this.props, {
12834
+ placement: placement,
12835
+ maxHeight: _this.state.maxHeight
12836
+ });
12837
+ };
12838
+
12839
+ return _this;
12840
+ }
12841
+
12842
+ var _proto = MenuPlacer.prototype;
12843
+
12844
+ _proto.render = function render() {
12845
+ var children = this.props.children;
12846
+ return children({
12847
+ ref: this.getPlacement,
12848
+ placerProps: this.getUpdatedProps()
12849
+ });
12850
+ };
12851
+
12852
+ return MenuPlacer;
12853
+ }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
12854
+ MenuPlacer.contextTypes = {
12855
+ getPortalPlacement: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func
12856
+ };
12857
+
12858
+ var Menu = function Menu(props) {
12859
+ var children = props.children,
12860
+ className = props.className,
12861
+ cx = props.cx,
12862
+ getStyles = props.getStyles,
12863
+ innerRef = props.innerRef,
12864
+ innerProps = props.innerProps;
12865
+ return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", _extends({
12866
+ css: getStyles('menu', props),
12867
+ className: cx({
12868
+ menu: true
12869
+ }, className)
12870
+ }, innerProps, {
12871
+ ref: innerRef
12872
+ }), children);
12873
+ };
12874
+ // Menu List
12875
+ // ==============================
12876
+
12877
+ var menuListCSS = function menuListCSS(_ref4) {
12878
+ var maxHeight = _ref4.maxHeight,
12879
+ baseUnit = _ref4.theme.spacing.baseUnit;
12880
+ return {
12881
+ maxHeight: maxHeight,
12882
+ overflowY: 'auto',
12883
+ paddingBottom: baseUnit,
12884
+ paddingTop: baseUnit,
12885
+ position: 'relative',
12886
+ // required for offset[Height, Top] > keyboard scroll
12887
+ WebkitOverflowScrolling: 'touch'
12888
+ };
12889
+ };
12890
+ var MenuList = function MenuList(props) {
12891
+ var children = props.children,
12892
+ className = props.className,
12893
+ cx = props.cx,
12894
+ getStyles = props.getStyles,
12895
+ isMulti = props.isMulti,
12896
+ innerRef = props.innerRef;
12897
+ return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", {
12898
+ css: getStyles('menuList', props),
12899
+ className: cx({
12900
+ 'menu-list': true,
12901
+ 'menu-list--is-multi': isMulti
12902
+ }, className),
12903
+ ref: innerRef
12904
+ }, children);
12905
+ }; // ==============================
12906
+ // Menu Notices
12907
+ // ==============================
12908
+
12909
+ var noticeCSS = function noticeCSS(_ref5) {
12910
+ var _ref5$theme = _ref5.theme,
12911
+ baseUnit = _ref5$theme.spacing.baseUnit,
12912
+ colors = _ref5$theme.colors;
12913
+ return {
12914
+ color: colors.neutral40,
12915
+ padding: baseUnit * 2 + "px " + baseUnit * 3 + "px",
12916
+ textAlign: 'center'
12917
+ };
12918
+ };
12919
+
12920
+ var noOptionsMessageCSS = noticeCSS;
12921
+ var loadingMessageCSS = noticeCSS;
12922
+ var NoOptionsMessage = function NoOptionsMessage(props) {
12923
+ var children = props.children,
12924
+ className = props.className,
12925
+ cx = props.cx,
12926
+ getStyles = props.getStyles,
12927
+ innerProps = props.innerProps;
12928
+ return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", _extends({
12929
+ css: getStyles('noOptionsMessage', props),
12930
+ className: cx({
12931
+ 'menu-notice': true,
12932
+ 'menu-notice--no-options': true
12933
+ }, className)
12934
+ }, innerProps), children);
12935
+ };
12936
+ NoOptionsMessage.defaultProps = {
12937
+ children: 'No options'
12938
+ };
12939
+ var LoadingMessage = function LoadingMessage(props) {
12940
+ var children = props.children,
12941
+ className = props.className,
12942
+ cx = props.cx,
12943
+ getStyles = props.getStyles,
12944
+ innerProps = props.innerProps;
12945
+ return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", _extends({
12946
+ css: getStyles('loadingMessage', props),
12947
+ className: cx({
12948
+ 'menu-notice': true,
12949
+ 'menu-notice--loading': true
12950
+ }, className)
12951
+ }, innerProps), children);
12952
+ };
12953
+ LoadingMessage.defaultProps = {
12954
+ children: 'Loading...'
12955
+ }; // ==============================
12956
+ // Menu Portal
12957
+ // ==============================
12958
+
12959
+ var menuPortalCSS = function menuPortalCSS(_ref6) {
12960
+ var rect = _ref6.rect,
12961
+ offset = _ref6.offset,
12962
+ position = _ref6.position;
12963
+ return {
12964
+ left: rect.left,
12965
+ position: position,
12966
+ top: offset,
12967
+ width: rect.width,
12968
+ zIndex: 1
12969
+ };
12970
+ };
12971
+ var MenuPortal =
12972
+ /*#__PURE__*/
12973
+ function (_Component2) {
12974
+ _inheritsLoose(MenuPortal, _Component2);
12975
+
12976
+ function MenuPortal() {
12977
+ var _this2;
12978
+
12979
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
12980
+ args[_key2] = arguments[_key2];
12981
+ }
12982
+
12983
+ _this2 = _Component2.call.apply(_Component2, [this].concat(args)) || this;
12984
+ _this2.state = {
12985
+ placement: null
12986
+ };
12987
+
12988
+ _this2.getPortalPlacement = function (_ref7) {
12989
+ var placement = _ref7.placement;
12990
+ var initialPlacement = coercePlacement(_this2.props.menuPlacement); // avoid re-renders if the placement has not changed
12991
+
12992
+ if (placement !== initialPlacement) {
12993
+ _this2.setState({
12994
+ placement: placement
12995
+ });
12996
+ }
12997
+ };
12998
+
12999
+ return _this2;
13000
+ }
13001
+
13002
+ var _proto2 = MenuPortal.prototype;
13003
+
13004
+ _proto2.getChildContext = function getChildContext() {
13005
+ return {
13006
+ getPortalPlacement: this.getPortalPlacement
13007
+ };
13008
+ } // callback for occassions where the menu must "flip"
13009
+ ;
13010
+
13011
+ _proto2.render = function render() {
13012
+ var _this$props2 = this.props,
13013
+ appendTo = _this$props2.appendTo,
13014
+ children = _this$props2.children,
13015
+ controlElement = _this$props2.controlElement,
13016
+ menuPlacement = _this$props2.menuPlacement,
13017
+ position = _this$props2.menuPosition,
13018
+ getStyles = _this$props2.getStyles;
13019
+ var isFixed = position === 'fixed'; // bail early if required elements aren't present
13020
+
13021
+ if (!appendTo && !isFixed || !controlElement) {
13022
+ return null;
13023
+ }
13024
+
13025
+ var placement = this.state.placement || coercePlacement(menuPlacement);
13026
+ var rect = Object(__WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["g"])(controlElement);
13027
+ var scrollDistance = isFixed ? 0 : window.pageYOffset;
13028
+ var offset = rect[placement] + scrollDistance;
13029
+ var state = {
13030
+ offset: offset,
13031
+ position: position,
13032
+ rect: rect
13033
+ }; // same wrapper element whether fixed or portalled
13034
+
13035
+ var menuWrapper = Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", {
13036
+ css: getStyles('menuPortal', state)
13037
+ }, children);
13038
+ return appendTo ? Object(__WEBPACK_IMPORTED_MODULE_2_react_dom__["createPortal"])(menuWrapper, appendTo) : menuWrapper;
13039
+ };
13040
+
13041
+ return MenuPortal;
13042
+ }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
13043
+ MenuPortal.childContextTypes = {
13044
+ getPortalPlacement: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func
13045
+ };
13046
+
13047
+ var isArray = Array.isArray;
13048
+ var keyList = Object.keys;
13049
+ var hasProp = Object.prototype.hasOwnProperty;
13050
+
13051
+ function equal(a, b) {
13052
+ // fast-deep-equal index.js 2.0.1
13053
+ if (a === b) return true;
13054
+
13055
+ if (a && b && typeof a == 'object' && typeof b == 'object') {
13056
+ var arrA = isArray(a),
13057
+ arrB = isArray(b),
13058
+ i,
13059
+ length,
13060
+ key;
13061
+
13062
+ if (arrA && arrB) {
13063
+ length = a.length;
13064
+ if (length != b.length) return false;
13065
+
13066
+ for (i = length; i-- !== 0;) {
13067
+ if (!equal(a[i], b[i])) return false;
13068
+ }
13069
+
13070
+ return true;
13071
+ }
13072
+
13073
+ if (arrA != arrB) return false;
13074
+ var dateA = a instanceof Date,
13075
+ dateB = b instanceof Date;
13076
+ if (dateA != dateB) return false;
13077
+ if (dateA && dateB) return a.getTime() == b.getTime();
13078
+ var regexpA = a instanceof RegExp,
13079
+ regexpB = b instanceof RegExp;
13080
+ if (regexpA != regexpB) return false;
13081
+ if (regexpA && regexpB) return a.toString() == b.toString();
13082
+ var keys = keyList(a);
13083
+ length = keys.length;
13084
+
13085
+ if (length !== keyList(b).length) {
13086
+ return false;
13087
+ }
13088
+
13089
+ for (i = length; i-- !== 0;) {
13090
+ if (!hasProp.call(b, keys[i])) return false;
13091
+ } // end fast-deep-equal
13092
+ // Custom handling for React
13093
+
13094
+
13095
+ for (i = length; i-- !== 0;) {
13096
+ key = keys[i];
13097
+
13098
+ if (key === '_owner' && a.$$typeof) {
13099
+ // React-specific: avoid traversing React elements' _owner.
13100
+ // _owner contains circular references
13101
+ // and is not needed when comparing the actual elements (and not their owners)
13102
+ // .$$typeof and ._store on just reasonable markers of a react element
13103
+ continue;
13104
+ } else {
13105
+ // all other properties should be traversed as usual
13106
+ if (!equal(a[key], b[key])) return false;
13107
+ }
13108
+ } // fast-deep-equal index.js 2.0.1
13109
+
13110
+
13111
+ return true;
13112
+ }
13113
+
13114
+ return a !== a && b !== b;
13115
+ } // end fast-deep-equal
13116
+
13117
+
13118
+ function exportedEqual(a, b) {
13119
+ try {
13120
+ return equal(a, b);
13121
+ } catch (error) {
13122
+ if (error.message && error.message.match(/stack|recursion/i)) {
13123
+ // warn on circular references, don't crash
13124
+ // browsers give this different errors name and messages:
13125
+ // chrome/safari: "RangeError", "Maximum call stack size exceeded"
13126
+ // firefox: "InternalError", too much recursion"
13127
+ // edge: "Error", "Out of stack space"
13128
+ console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);
13129
+ return false;
13130
+ } // some other error. we should definitely know about these
13131
+
13132
+
13133
+ throw error;
13134
+ }
13135
+ }
13136
+
13137
+ function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
13138
+ var containerCSS = function containerCSS(_ref) {
13139
+ var isDisabled = _ref.isDisabled,
13140
+ isRtl = _ref.isRtl;
13141
+ return {
13142
+ label: 'container',
13143
+ direction: isRtl ? 'rtl' : null,
13144
+ pointerEvents: isDisabled ? 'none' : null,
13145
+ // cancel mouse events when disabled
13146
+ position: 'relative'
13147
+ };
13148
+ };
13149
+ var SelectContainer = function SelectContainer(props) {
13150
+ var children = props.children,
13151
+ className = props.className,
13152
+ cx = props.cx,
13153
+ getStyles = props.getStyles,
13154
+ innerProps = props.innerProps,
13155
+ isDisabled = props.isDisabled,
13156
+ isRtl = props.isRtl;
13157
+ return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", _extends$1({
13158
+ css: getStyles('container', props),
13159
+ className: cx({
13160
+ '--is-disabled': isDisabled,
13161
+ '--is-rtl': isRtl
13162
+ }, className)
13163
+ }, innerProps), children);
13164
+ }; // ==============================
13165
+ // Value Container
13166
+ // ==============================
13167
+
13168
+ var valueContainerCSS = function valueContainerCSS(_ref2) {
13169
+ var spacing = _ref2.theme.spacing;
13170
+ return {
13171
+ alignItems: 'center',
13172
+ display: 'flex',
13173
+ flex: 1,
13174
+ flexWrap: 'wrap',
13175
+ padding: spacing.baseUnit / 2 + "px " + spacing.baseUnit * 2 + "px",
13176
+ WebkitOverflowScrolling: 'touch',
13177
+ position: 'relative',
13178
+ overflow: 'hidden'
13179
+ };
13180
+ };
13181
+ var ValueContainer = function ValueContainer(props) {
13182
+ var children = props.children,
13183
+ className = props.className,
13184
+ cx = props.cx,
13185
+ isMulti = props.isMulti,
13186
+ getStyles = props.getStyles,
13187
+ hasValue = props.hasValue;
13188
+ return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", {
13189
+ css: getStyles('valueContainer', props),
13190
+ className: cx({
13191
+ 'value-container': true,
13192
+ 'value-container--is-multi': isMulti,
13193
+ 'value-container--has-value': hasValue
13194
+ }, className)
13195
+ }, children);
13196
+ }; // ==============================
13197
+ // Indicator Container
13198
+ // ==============================
13199
+
13200
+ var indicatorsContainerCSS = function indicatorsContainerCSS() {
13201
+ return {
13202
+ alignItems: 'center',
13203
+ alignSelf: 'stretch',
13204
+ display: 'flex',
13205
+ flexShrink: 0
13206
+ };
13207
+ };
13208
+ var IndicatorsContainer = function IndicatorsContainer(props) {
13209
+ var children = props.children,
13210
+ className = props.className,
13211
+ cx = props.cx,
13212
+ getStyles = props.getStyles;
13213
+ return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", {
13214
+ css: getStyles('indicatorsContainer', props),
13215
+ className: cx({
13216
+ indicators: true
13217
+ }, className)
13218
+ }, children);
13219
+ };
13220
+
13221
+ function _templateObject() {
13222
+ var data = _taggedTemplateLiteralLoose(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]);
13223
+
13224
+ _templateObject = function _templateObject() {
13225
+ return data;
13226
+ };
13227
+
13228
+ return data;
13229
+ }
13230
+
13231
+ function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
13232
+
13233
+ function _extends$2() { _extends$2 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
13234
+
13235
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
13236
+
13237
+ var _ref2 = process.env.NODE_ENV === "production" ? {
13238
+ name: "19bqh2r",
13239
+ styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"
13240
+ } : {
13241
+ name: "19bqh2r",
13242
+ styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;",
13243
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0JJIiwiZmlsZSI6ImluZGljYXRvcnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyB0eXBlIE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5pbXBvcnQgdHlwZSB7IENvbW1vblByb3BzLCBUaGVtZSB9IGZyb20gJy4uL3R5cGVzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHsgc2l6ZSwgLi4ucHJvcHMgfTogeyBzaXplO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0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */"
13244
+ };
13245
+
13246
+ // ==============================
13247
+ // Dropdown & Clear Icons
13248
+ // ==============================
13249
+ var Svg = function Svg(_ref) {
13250
+ var size = _ref.size,
13251
+ props = _objectWithoutPropertiesLoose(_ref, ["size"]);
13252
+
13253
+ return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("svg", _extends$2({
13254
+ height: size,
13255
+ width: size,
13256
+ viewBox: "0 0 20 20",
13257
+ "aria-hidden": "true",
13258
+ focusable: "false",
13259
+ css: _ref2
13260
+ }, props));
13261
+ };
13262
+
13263
+ var CrossIcon = function CrossIcon(props) {
13264
+ return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(Svg, _extends$2({
13265
+ size: 20
13266
+ }, props), Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("path", {
13267
+ d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
13268
+ }));
13269
+ };
13270
+ var DownChevron = function DownChevron(props) {
13271
+ return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(Svg, _extends$2({
13272
+ size: 20
13273
+ }, props), Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("path", {
13274
+ d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
13275
+ }));
13276
+ }; // ==============================
13277
+ // Dropdown & Clear Buttons
13278
+ // ==============================
13279
+
13280
+ var baseCSS = function baseCSS(_ref3) {
13281
+ var isFocused = _ref3.isFocused,
13282
+ _ref3$theme = _ref3.theme,
13283
+ baseUnit = _ref3$theme.spacing.baseUnit,
13284
+ colors = _ref3$theme.colors;
13285
+ return {
13286
+ label: 'indicatorContainer',
13287
+ color: isFocused ? colors.neutral60 : colors.neutral20,
13288
+ display: 'flex',
13289
+ padding: baseUnit * 2,
13290
+ transition: 'color 150ms',
13291
+ ':hover': {
13292
+ color: isFocused ? colors.neutral80 : colors.neutral40
13293
+ }
13294
+ };
13295
+ };
13296
+
13297
+ var dropdownIndicatorCSS = baseCSS;
13298
+ var DropdownIndicator = function DropdownIndicator(props) {
13299
+ var children = props.children,
13300
+ className = props.className,
13301
+ cx = props.cx,
13302
+ getStyles = props.getStyles,
13303
+ innerProps = props.innerProps;
13304
+ return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", _extends$2({}, innerProps, {
13305
+ css: getStyles('dropdownIndicator', props),
13306
+ className: cx({
13307
+ indicator: true,
13308
+ 'dropdown-indicator': true
13309
+ }, className)
13310
+ }), children || Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(DownChevron, null));
13311
+ };
13312
+ var clearIndicatorCSS = baseCSS;
13313
+ var ClearIndicator = function ClearIndicator(props) {
13314
+ var children = props.children,
13315
+ className = props.className,
13316
+ cx = props.cx,
13317
+ getStyles = props.getStyles,
13318
+ innerProps = props.innerProps;
13319
+ return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", _extends$2({}, innerProps, {
13320
+ css: getStyles('clearIndicator', props),
13321
+ className: cx({
13322
+ indicator: true,
13323
+ 'clear-indicator': true
13324
+ }, className)
13325
+ }), children || Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(CrossIcon, null));
13326
+ }; // ==============================
13327
+ // Separator
13328
+ // ==============================
13329
+
13330
+ var indicatorSeparatorCSS = function indicatorSeparatorCSS(_ref4) {
13331
+ var isDisabled = _ref4.isDisabled,
13332
+ _ref4$theme = _ref4.theme,
13333
+ baseUnit = _ref4$theme.spacing.baseUnit,
13334
+ colors = _ref4$theme.colors;
13335
+ return {
13336
+ label: 'indicatorSeparator',
13337
+ alignSelf: 'stretch',
13338
+ backgroundColor: isDisabled ? colors.neutral10 : colors.neutral20,
13339
+ marginBottom: baseUnit * 2,
13340
+ marginTop: baseUnit * 2,
13341
+ width: 1
13342
+ };
13343
+ };
13344
+ var IndicatorSeparator = function IndicatorSeparator(props) {
13345
+ var className = props.className,
13346
+ cx = props.cx,
13347
+ getStyles = props.getStyles,
13348
+ innerProps = props.innerProps;
13349
+ return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("span", _extends$2({}, innerProps, {
13350
+ css: getStyles('indicatorSeparator', props),
13351
+ className: cx({
13352
+ 'indicator-separator': true
13353
+ }, className)
13354
+ }));
13355
+ }; // ==============================
13356
+ // Loading
13357
+ // ==============================
13358
+
13359
+ var loadingDotAnimations = Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["d" /* keyframes */])(_templateObject());
13360
+ var loadingIndicatorCSS = function loadingIndicatorCSS(_ref5) {
13361
+ var isFocused = _ref5.isFocused,
13362
+ size = _ref5.size,
13363
+ _ref5$theme = _ref5.theme,
13364
+ colors = _ref5$theme.colors,
13365
+ baseUnit = _ref5$theme.spacing.baseUnit;
13366
+ return {
13367
+ label: 'loadingIndicator',
13368
+ color: isFocused ? colors.neutral60 : colors.neutral20,
13369
+ display: 'flex',
13370
+ padding: baseUnit * 2,
13371
+ transition: 'color 150ms',
13372
+ alignSelf: 'center',
13373
+ fontSize: size,
13374
+ lineHeight: 1,
13375
+ marginRight: size,
13376
+ textAlign: 'center',
13377
+ verticalAlign: 'middle'
13378
+ };
13379
+ };
13380
+
13381
+ var LoadingDot = function LoadingDot(_ref6) {
13382
+ var delay = _ref6.delay,
13383
+ offset = _ref6.offset;
13384
+ return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("span", {
13385
+ css:
13386
+ /*#__PURE__*/
13387
+ Object(__WEBPACK_IMPORTED_MODULE_5__emotion_css__["a" /* default */])({
13388
+ animation: loadingDotAnimations + " 1s ease-in-out " + delay + "ms infinite;",
13389
+ backgroundColor: 'currentColor',
13390
+ borderRadius: '1em',
13391
+ display: 'inline-block',
13392
+ marginLeft: offset ? '1em' : null,
13393
+ height: '1em',
13394
+ verticalAlign: 'top',
13395
+ width: '1em'
13396
+ }, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0xJIiwiZmlsZSI6ImluZGljYXRvcnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyB0eXBlIE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5pbXBvcnQgdHlwZSB7IENvbW1vblByb3BzLCBUaGVtZSB9IGZyb20gJy4uL3R5cGVzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHsgc2l6ZSwgLi4ucHJvcHMgfTogeyBzaXplOiBudW1iZXIgfSkgPT4gKFxuICA8c3ZnXG4gICAgaGVpZ2h0PXtzaXplfVxuICAgIH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399
+
13400
+ var LoadingIndicator = function LoadingIndicator(props) {
13401
+ var className = props.className,
13402
+ cx = props.cx,
13403
+ getStyles = props.getStyles,
13404
+ innerProps = props.innerProps,
13405
+ isRtl = props.isRtl;
13406
+ return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", _extends$2({}, innerProps, {
13407
+ css: getStyles('loadingIndicator', props),
13408
+ className: cx({
13409
+ indicator: true,
13410
+ 'loading-indicator': true
13411
+ }, className)
13412
+ }), Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(LoadingDot, {
13413
+ delay: 0,
13414
+ offset: isRtl
13415
+ }), Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(LoadingDot, {
13416
+ delay: 160,
13417
+ offset: true
13418
+ }), Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(LoadingDot, {
13419
+ delay: 320,
13420
+ offset: !isRtl
13421
+ }));
13422
+ };
13423
+ LoadingIndicator.defaultProps = {
13424
+ size: 4
13425
+ };
13426
+
13427
+ function _extends$3() { _extends$3 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
13428
+ var css = function css(_ref) {
13429
+ var isDisabled = _ref.isDisabled,
13430
+ isFocused = _ref.isFocused,
13431
+ _ref$theme = _ref.theme,
13432
+ colors = _ref$theme.colors,
13433
+ borderRadius = _ref$theme.borderRadius,
13434
+ spacing = _ref$theme.spacing;
13435
+ return {
13436
+ label: 'control',
13437
+ alignItems: 'center',
13438
+ backgroundColor: isDisabled ? colors.neutral5 : colors.neutral0,
13439
+ borderColor: isDisabled ? colors.neutral10 : isFocused ? colors.primary : colors.neutral20,
13440
+ borderRadius: borderRadius,
13441
+ borderStyle: 'solid',
13442
+ borderWidth: 1,
13443
+ boxShadow: isFocused ? "0 0 0 1px " + colors.primary : null,
13444
+ cursor: 'default',
13445
+ display: 'flex',
13446
+ flexWrap: 'wrap',
13447
+ justifyContent: 'space-between',
13448
+ minHeight: spacing.controlHeight,
13449
+ outline: '0 !important',
13450
+ position: 'relative',
13451
+ transition: 'all 100ms',
13452
+ '&:hover': {
13453
+ borderColor: isFocused ? colors.primary : colors.neutral30
13454
+ }
13455
+ };
13456
+ };
13457
+
13458
+ var Control = function Control(props) {
13459
+ var children = props.children,
13460
+ cx = props.cx,
13461
+ getStyles = props.getStyles,
13462
+ className = props.className,
13463
+ isDisabled = props.isDisabled,
13464
+ isFocused = props.isFocused,
13465
+ innerRef = props.innerRef,
13466
+ innerProps = props.innerProps,
13467
+ menuIsOpen = props.menuIsOpen;
13468
+ return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", _extends$3({
13469
+ ref: innerRef,
13470
+ css: getStyles('control', props),
13471
+ className: cx({
13472
+ control: true,
13473
+ 'control--is-disabled': isDisabled,
13474
+ 'control--is-focused': isFocused,
13475
+ 'control--menu-is-open': menuIsOpen
13476
+ }, className)
13477
+ }, innerProps), children);
13478
+ };
13479
+
13480
+ function _objectWithoutPropertiesLoose$1(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
13481
+
13482
+ function _extends$4() { _extends$4 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
13483
+ var groupCSS = function groupCSS(_ref) {
13484
+ var spacing = _ref.theme.spacing;
13485
+ return {
13486
+ paddingBottom: spacing.baseUnit * 2,
13487
+ paddingTop: spacing.baseUnit * 2
13488
+ };
13489
+ };
13490
+
13491
+ var Group = function Group(props) {
13492
+ var children = props.children,
13493
+ className = props.className,
13494
+ cx = props.cx,
13495
+ getStyles = props.getStyles,
13496
+ Heading = props.Heading,
13497
+ headingProps = props.headingProps,
13498
+ label = props.label,
13499
+ theme = props.theme,
13500
+ selectProps = props.selectProps;
13501
+ return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", {
13502
+ css: getStyles('group', props),
13503
+ className: cx({
13504
+ group: true
13505
+ }, className)
13506
+ }, Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(Heading, _extends$4({}, headingProps, {
13507
+ selectProps: selectProps,
13508
+ theme: theme,
13509
+ getStyles: getStyles,
13510
+ cx: cx
13511
+ }), label), Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", null, children));
13512
+ };
13513
+
13514
+ var groupHeadingCSS = function groupHeadingCSS(_ref2) {
13515
+ var spacing = _ref2.theme.spacing;
13516
+ return {
13517
+ label: 'group',
13518
+ color: '#999',
13519
+ cursor: 'default',
13520
+ display: 'block',
13521
+ fontSize: '75%',
13522
+ fontWeight: '500',
13523
+ marginBottom: '0.25em',
13524
+ paddingLeft: spacing.baseUnit * 3,
13525
+ paddingRight: spacing.baseUnit * 3,
13526
+ textTransform: 'uppercase'
13527
+ };
13528
+ };
13529
+ var GroupHeading = function GroupHeading(props) {
13530
+ var className = props.className,
13531
+ cx = props.cx,
13532
+ getStyles = props.getStyles,
13533
+ theme = props.theme,
13534
+ selectProps = props.selectProps,
13535
+ cleanProps = _objectWithoutPropertiesLoose$1(props, ["className", "cx", "getStyles", "theme", "selectProps"]);
13536
+
13537
+ return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", _extends$4({
13538
+ css: getStyles('groupHeading', _extends$4({
13539
+ theme: theme
13540
+ }, cleanProps)),
13541
+ className: cx({
13542
+ 'group-heading': true
13543
+ }, className)
13544
+ }, cleanProps));
13545
+ };
13546
+
13547
+ function _extends$5() { _extends$5 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
13548
+
13549
+ function _objectWithoutPropertiesLoose$2(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
13550
+ var inputCSS = function inputCSS(_ref) {
13551
+ var isDisabled = _ref.isDisabled,
13552
+ _ref$theme = _ref.theme,
13553
+ spacing = _ref$theme.spacing,
13554
+ colors = _ref$theme.colors;
13555
+ return {
13556
+ margin: spacing.baseUnit / 2,
13557
+ paddingBottom: spacing.baseUnit / 2,
13558
+ paddingTop: spacing.baseUnit / 2,
13559
+ visibility: isDisabled ? 'hidden' : 'visible',
13560
+ color: colors.neutral80
13561
+ };
13562
+ };
13563
+
13564
+ var inputStyle = function inputStyle(isHidden) {
13565
+ return {
13566
+ label: 'input',
13567
+ background: 0,
13568
+ border: 0,
13569
+ fontSize: 'inherit',
13570
+ opacity: isHidden ? 0 : 1,
13571
+ outline: 0,
13572
+ padding: 0,
13573
+ color: 'inherit'
13574
+ };
13575
+ };
13576
+
13577
+ var Input = function Input(_ref2) {
13578
+ var className = _ref2.className,
13579
+ cx = _ref2.cx,
13580
+ getStyles = _ref2.getStyles,
13581
+ innerRef = _ref2.innerRef,
13582
+ isHidden = _ref2.isHidden,
13583
+ isDisabled = _ref2.isDisabled,
13584
+ theme = _ref2.theme,
13585
+ selectProps = _ref2.selectProps,
13586
+ props = _objectWithoutPropertiesLoose$2(_ref2, ["className", "cx", "getStyles", "innerRef", "isHidden", "isDisabled", "theme", "selectProps"]);
13587
+
13588
+ return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", {
13589
+ css: getStyles('input', _extends$5({
13590
+ theme: theme
13591
+ }, props))
13592
+ }, Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(__WEBPACK_IMPORTED_MODULE_6_react_input_autosize___default.a, _extends$5({
13593
+ className: cx({
13594
+ input: true
13595
+ }, className),
13596
+ inputRef: innerRef,
13597
+ inputStyle: inputStyle(isHidden),
13598
+ disabled: isDisabled
13599
+ }, props)));
13600
+ };
13601
+
13602
+ function _extends$6() { _extends$6 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
13603
+ var multiValueCSS = function multiValueCSS(_ref) {
13604
+ var _ref$theme = _ref.theme,
13605
+ spacing = _ref$theme.spacing,
13606
+ borderRadius = _ref$theme.borderRadius,
13607
+ colors = _ref$theme.colors;
13608
+ return {
13609
+ label: 'multiValue',
13610
+ backgroundColor: colors.neutral10,
13611
+ borderRadius: borderRadius / 2,
13612
+ display: 'flex',
13613
+ margin: spacing.baseUnit / 2,
13614
+ minWidth: 0 // resolves flex/text-overflow bug
13615
+
13616
+ };
13617
+ };
13618
+ var multiValueLabelCSS = function multiValueLabelCSS(_ref2) {
13619
+ var _ref2$theme = _ref2.theme,
13620
+ borderRadius = _ref2$theme.borderRadius,
13621
+ colors = _ref2$theme.colors,
13622
+ cropWithEllipsis = _ref2.cropWithEllipsis;
13623
+ return {
13624
+ borderRadius: borderRadius / 2,
13625
+ color: colors.neutral80,
13626
+ fontSize: '85%',
13627
+ overflow: 'hidden',
13628
+ padding: 3,
13629
+ paddingLeft: 6,
13630
+ textOverflow: cropWithEllipsis ? 'ellipsis' : null,
13631
+ whiteSpace: 'nowrap'
13632
+ };
13633
+ };
13634
+ var multiValueRemoveCSS = function multiValueRemoveCSS(_ref3) {
13635
+ var _ref3$theme = _ref3.theme,
13636
+ spacing = _ref3$theme.spacing,
13637
+ borderRadius = _ref3$theme.borderRadius,
13638
+ colors = _ref3$theme.colors,
13639
+ isFocused = _ref3.isFocused;
13640
+ return {
13641
+ alignItems: 'center',
13642
+ borderRadius: borderRadius / 2,
13643
+ backgroundColor: isFocused && colors.dangerLight,
13644
+ display: 'flex',
13645
+ paddingLeft: spacing.baseUnit,
13646
+ paddingRight: spacing.baseUnit,
13647
+ ':hover': {
13648
+ backgroundColor: colors.dangerLight,
13649
+ color: colors.danger
13650
+ }
13651
+ };
13652
+ };
13653
+ var MultiValueGeneric = function MultiValueGeneric(_ref4) {
13654
+ var children = _ref4.children,
13655
+ innerProps = _ref4.innerProps;
13656
+ return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", innerProps, children);
13657
+ };
13658
+ var MultiValueContainer = MultiValueGeneric;
13659
+ var MultiValueLabel = MultiValueGeneric;
13660
+ function MultiValueRemove(_ref5) {
13661
+ var children = _ref5.children,
13662
+ innerProps = _ref5.innerProps;
13663
+ return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", innerProps, children || Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(CrossIcon, {
13664
+ size: 14
13665
+ }));
13666
+ }
13667
+
13668
+ var MultiValue = function MultiValue(props) {
13669
+ var children = props.children,
13670
+ className = props.className,
13671
+ components = props.components,
13672
+ cx = props.cx,
13673
+ data = props.data,
13674
+ getStyles = props.getStyles,
13675
+ innerProps = props.innerProps,
13676
+ isDisabled = props.isDisabled,
13677
+ removeProps = props.removeProps,
13678
+ selectProps = props.selectProps;
13679
+ var Container = components.Container,
13680
+ Label = components.Label,
13681
+ Remove = components.Remove;
13682
+ return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["b" /* ClassNames */], null, function (_ref6) {
13683
+ var css = _ref6.css,
13684
+ emotionCx = _ref6.cx;
13685
+ return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(Container, {
13686
+ data: data,
13687
+ innerProps: _extends$6({}, innerProps, {
13688
+ className: emotionCx(css(getStyles('multiValue', props)), cx({
13689
+ 'multi-value': true,
13690
+ 'multi-value--is-disabled': isDisabled
13691
+ }, className))
13692
+ }),
13693
+ selectProps: selectProps
13694
+ }, Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(Label, {
13695
+ data: data,
13696
+ innerProps: {
13697
+ className: emotionCx(css(getStyles('multiValueLabel', props)), cx({
13698
+ 'multi-value__label': true
13699
+ }, className))
13700
+ },
13701
+ selectProps: selectProps
13702
+ }, children), Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])(Remove, {
13703
+ data: data,
13704
+ innerProps: _extends$6({
13705
+ className: emotionCx(css(getStyles('multiValueRemove', props)), cx({
13706
+ 'multi-value__remove': true
13707
+ }, className))
13708
+ }, removeProps),
13709
+ selectProps: selectProps
13710
+ }));
13711
+ });
13712
+ };
13713
+
13714
+ MultiValue.defaultProps = {
13715
+ cropWithEllipsis: true
13716
+ };
13717
+
13718
+ function _extends$7() { _extends$7 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
13719
+ var optionCSS = function optionCSS(_ref) {
13720
+ var isDisabled = _ref.isDisabled,
13721
+ isFocused = _ref.isFocused,
13722
+ isSelected = _ref.isSelected,
13723
+ _ref$theme = _ref.theme,
13724
+ spacing = _ref$theme.spacing,
13725
+ colors = _ref$theme.colors;
13726
+ return {
13727
+ label: 'option',
13728
+ backgroundColor: isSelected ? colors.primary : isFocused ? colors.primary25 : 'transparent',
13729
+ color: isDisabled ? colors.neutral20 : isSelected ? colors.neutral0 : 'inherit',
13730
+ cursor: 'default',
13731
+ display: 'block',
13732
+ fontSize: 'inherit',
13733
+ padding: spacing.baseUnit * 2 + "px " + spacing.baseUnit * 3 + "px",
13734
+ width: '100%',
13735
+ userSelect: 'none',
13736
+ WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)',
13737
+ // provide some affordance on touch devices
13738
+ ':active': {
13739
+ backgroundColor: !isDisabled && (isSelected ? colors.primary : colors.primary50)
13740
+ }
13741
+ };
13742
+ };
13743
+
13744
+ var Option = function Option(props) {
13745
+ var children = props.children,
13746
+ className = props.className,
13747
+ cx = props.cx,
13748
+ getStyles = props.getStyles,
13749
+ isDisabled = props.isDisabled,
13750
+ isFocused = props.isFocused,
13751
+ isSelected = props.isSelected,
13752
+ innerRef = props.innerRef,
13753
+ innerProps = props.innerProps;
13754
+ return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", _extends$7({
13755
+ css: getStyles('option', props),
13756
+ className: cx({
13757
+ option: true,
13758
+ 'option--is-disabled': isDisabled,
13759
+ 'option--is-focused': isFocused,
13760
+ 'option--is-selected': isSelected
13761
+ }, className),
13762
+ ref: innerRef
13763
+ }, innerProps), children);
13764
+ };
13765
+
13766
+ function _extends$8() { _extends$8 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
13767
+ var placeholderCSS = function placeholderCSS(_ref) {
13768
+ var _ref$theme = _ref.theme,
13769
+ spacing = _ref$theme.spacing,
13770
+ colors = _ref$theme.colors;
13771
+ return {
13772
+ label: 'placeholder',
13773
+ color: colors.neutral50,
13774
+ marginLeft: spacing.baseUnit / 2,
13775
+ marginRight: spacing.baseUnit / 2,
13776
+ position: 'absolute',
13777
+ top: '50%',
13778
+ transform: 'translateY(-50%)'
13779
+ };
13780
+ };
13781
+
13782
+ var Placeholder = function Placeholder(props) {
13783
+ var children = props.children,
13784
+ className = props.className,
13785
+ cx = props.cx,
13786
+ getStyles = props.getStyles,
13787
+ innerProps = props.innerProps;
13788
+ return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", _extends$8({
13789
+ css: getStyles('placeholder', props),
13790
+ className: cx({
13791
+ placeholder: true
13792
+ }, className)
13793
+ }, innerProps), children);
13794
+ };
13795
+
13796
+ function _extends$9() { _extends$9 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
13797
+ var css$1 = function css(_ref) {
13798
+ var isDisabled = _ref.isDisabled,
13799
+ _ref$theme = _ref.theme,
13800
+ spacing = _ref$theme.spacing,
13801
+ colors = _ref$theme.colors;
13802
+ return {
13803
+ label: 'singleValue',
13804
+ color: isDisabled ? colors.neutral40 : colors.neutral80,
13805
+ marginLeft: spacing.baseUnit / 2,
13806
+ marginRight: spacing.baseUnit / 2,
13807
+ maxWidth: "calc(100% - " + spacing.baseUnit * 2 + "px)",
13808
+ overflow: 'hidden',
13809
+ position: 'absolute',
13810
+ textOverflow: 'ellipsis',
13811
+ whiteSpace: 'nowrap',
13812
+ top: '50%',
13813
+ transform: 'translateY(-50%)'
13814
+ };
13815
+ };
13816
+
13817
+ var SingleValue = function SingleValue(props) {
13818
+ var children = props.children,
13819
+ className = props.className,
13820
+ cx = props.cx,
13821
+ getStyles = props.getStyles,
13822
+ isDisabled = props.isDisabled,
13823
+ innerProps = props.innerProps;
13824
+ return Object(__WEBPACK_IMPORTED_MODULE_1__emotion_core__["c" /* jsx */])("div", _extends$9({
13825
+ css: getStyles('singleValue', props),
13826
+ className: cx({
13827
+ 'single-value': true,
13828
+ 'single-value--is-disabled': isDisabled
13829
+ }, className)
13830
+ }, innerProps), children);
13831
+ };
13832
+
13833
+ function _extends$a() { _extends$a = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
13834
+ var components = {
13835
+ ClearIndicator: ClearIndicator,
13836
+ Control: Control,
13837
+ DropdownIndicator: DropdownIndicator,
13838
+ DownChevron: DownChevron,
13839
+ CrossIcon: CrossIcon,
13840
+ Group: Group,
13841
+ GroupHeading: GroupHeading,
13842
+ IndicatorsContainer: IndicatorsContainer,
13843
+ IndicatorSeparator: IndicatorSeparator,
13844
+ Input: Input,
13845
+ LoadingIndicator: LoadingIndicator,
13846
+ Menu: Menu,
13847
+ MenuList: MenuList,
13848
+ MenuPortal: MenuPortal,
13849
+ LoadingMessage: LoadingMessage,
13850
+ NoOptionsMessage: NoOptionsMessage,
13851
+ MultiValue: MultiValue,
13852
+ MultiValueContainer: MultiValueContainer,
13853
+ MultiValueLabel: MultiValueLabel,
13854
+ MultiValueRemove: MultiValueRemove,
13855
+ Option: Option,
13856
+ Placeholder: Placeholder,
13857
+ SelectContainer: SelectContainer,
13858
+ SingleValue: SingleValue,
13859
+ ValueContainer: ValueContainer
13860
+ };
13861
+ var defaultComponents = function defaultComponents(props) {
13862
+ return _extends$a({}, components, props.components);
13863
+ };
13864
+
13865
+
13866
+
13867
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
13868
+
13869
+ /***/ }),
13870
+ /* 182 */
13871
+ /***/ (function(module, exports, __webpack_require__) {
13872
+
13873
+ "use strict";
13874
+
13875
+
13876
+ Object.defineProperty(exports, "__esModule", {
13877
+ value: true
13878
+ });
13879
+
13880
+ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
13881
+
13882
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
13883
+
13884
+ var _react = __webpack_require__(0);
13885
+
13886
+ var _react2 = _interopRequireDefault(_react);
13887
+
13888
+ var _propTypes = __webpack_require__(2);
13889
+
13890
+ var _propTypes2 = _interopRequireDefault(_propTypes);
13891
+
13892
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13893
+
13894
+ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
13895
+
13896
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13897
+
13898
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
13899
+
13900
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
13901
+
13902
+ var sizerStyle = {
13903
+ position: 'absolute',
13904
+ top: 0,
13905
+ left: 0,
13906
+ visibility: 'hidden',
13907
+ height: 0,
13908
+ overflow: 'scroll',
13909
+ whiteSpace: 'pre'
13910
+ };
13911
+
13912
+ var INPUT_PROPS_BLACKLIST = ['extraWidth', 'injectStyles', 'inputClassName', 'inputRef', 'inputStyle', 'minWidth', 'onAutosize', 'placeholderIsMinWidth'];
13913
+
13914
+ var cleanInputProps = function cleanInputProps(inputProps) {
13915
+ INPUT_PROPS_BLACKLIST.forEach(function (field) {
13916
+ return delete inputProps[field];
13917
+ });
13918
+ return inputProps;
13919
+ };
13920
+
13921
+ var copyStyles = function copyStyles(styles, node) {
13922
+ node.style.fontSize = styles.fontSize;
13923
+ node.style.fontFamily = styles.fontFamily;
13924
+ node.style.fontWeight = styles.fontWeight;
13925
+ node.style.fontStyle = styles.fontStyle;
13926
+ node.style.letterSpacing = styles.letterSpacing;
13927
+ node.style.textTransform = styles.textTransform;
13928
+ };
13929
+
13930
+ var isIE = typeof window !== 'undefined' && window.navigator ? /MSIE |Trident\/|Edge\//.test(window.navigator.userAgent) : false;
13931
+
13932
+ var generateId = function generateId() {
13933
+ // we only need an auto-generated ID for stylesheet injection, which is only
13934
+ // used for IE. so if the browser is not IE, this should return undefined.
13935
+ return isIE ? '_' + Math.random().toString(36).substr(2, 12) : undefined;
13936
+ };
13937
+
13938
+ var AutosizeInput = function (_Component) {
13939
+ _inherits(AutosizeInput, _Component);
13940
+
13941
+ function AutosizeInput(props) {
13942
+ _classCallCheck(this, AutosizeInput);
13943
+
13944
+ var _this = _possibleConstructorReturn(this, (AutosizeInput.__proto__ || Object.getPrototypeOf(AutosizeInput)).call(this, props));
13945
+
13946
+ _this.inputRef = function (el) {
13947
+ _this.input = el;
13948
+ if (typeof _this.props.inputRef === 'function') {
13949
+ _this.props.inputRef(el);
13950
+ }
13951
+ };
13952
+
13953
+ _this.placeHolderSizerRef = function (el) {
13954
+ _this.placeHolderSizer = el;
13955
+ };
13956
+
13957
+ _this.sizerRef = function (el) {
13958
+ _this.sizer = el;
13959
+ };
13960
+
13961
+ _this.state = {
13962
+ inputWidth: props.minWidth,
13963
+ inputId: props.id || generateId()
13964
+ };
13965
+ return _this;
13966
+ }
13967
+
13968
+ _createClass(AutosizeInput, [{
13969
+ key: 'componentDidMount',
13970
+ value: function componentDidMount() {
13971
+ this.mounted = true;
13972
+ this.copyInputStyles();
13973
+ this.updateInputWidth();
13974
+ }
13975
+ }, {
13976
+ key: 'UNSAFE_componentWillReceiveProps',
13977
+ value: function UNSAFE_componentWillReceiveProps(nextProps) {
13978
+ var id = nextProps.id;
13979
+
13980
+ if (id !== this.props.id) {
13981
+ this.setState({ inputId: id || generateId() });
13982
+ }
13983
+ }
13984
+ }, {
13985
+ key: 'componentDidUpdate',
13986
+ value: function componentDidUpdate(prevProps, prevState) {
13987
+ if (prevState.inputWidth !== this.state.inputWidth) {
13988
+ if (typeof this.props.onAutosize === 'function') {
13989
+ this.props.onAutosize(this.state.inputWidth);
13990
+ }
13991
+ }
13992
+ this.updateInputWidth();
13993
+ }
13994
+ }, {
13995
+ key: 'componentWillUnmount',
13996
+ value: function componentWillUnmount() {
13997
+ this.mounted = false;
13998
+ }
13999
+ }, {
14000
+ key: 'copyInputStyles',
14001
+ value: function copyInputStyles() {
14002
+ if (!this.mounted || !window.getComputedStyle) {
14003
+ return;
14004
+ }
14005
+ var inputStyles = this.input && window.getComputedStyle(this.input);
14006
+ if (!inputStyles) {
14007
+ return;
14008
+ }
14009
+ copyStyles(inputStyles, this.sizer);
14010
+ if (this.placeHolderSizer) {
14011
+ copyStyles(inputStyles, this.placeHolderSizer);
14012
+ }
14013
+ }
14014
+ }, {
14015
+ key: 'updateInputWidth',
14016
+ value: function updateInputWidth() {
14017
+ if (!this.mounted || !this.sizer || typeof this.sizer.scrollWidth === 'undefined') {
14018
+ return;
14019
+ }
14020
+ var newInputWidth = void 0;
14021
+ if (this.props.placeholder && (!this.props.value || this.props.value && this.props.placeholderIsMinWidth)) {
14022
+ newInputWidth = Math.max(this.sizer.scrollWidth, this.placeHolderSizer.scrollWidth) + 2;
14023
+ } else {
14024
+ newInputWidth = this.sizer.scrollWidth + 2;
14025
+ }
14026
+ // add extraWidth to the detected width. for number types, this defaults to 16 to allow for the stepper UI
14027
+ var extraWidth = this.props.type === 'number' && this.props.extraWidth === undefined ? 16 : parseInt(this.props.extraWidth) || 0;
14028
+ newInputWidth += extraWidth;
14029
+ if (newInputWidth < this.props.minWidth) {
14030
+ newInputWidth = this.props.minWidth;
14031
+ }
14032
+ if (newInputWidth !== this.state.inputWidth) {
14033
+ this.setState({
14034
+ inputWidth: newInputWidth
14035
+ });
14036
+ }
14037
+ }
14038
+ }, {
14039
+ key: 'getInput',
14040
+ value: function getInput() {
14041
+ return this.input;
14042
+ }
14043
+ }, {
14044
+ key: 'focus',
14045
+ value: function focus() {
14046
+ this.input.focus();
14047
+ }
14048
+ }, {
14049
+ key: 'blur',
14050
+ value: function blur() {
14051
+ this.input.blur();
14052
+ }
14053
+ }, {
14054
+ key: 'select',
14055
+ value: function select() {
14056
+ this.input.select();
14057
+ }
14058
+ }, {
14059
+ key: 'renderStyles',
14060
+ value: function renderStyles() {
14061
+ // this method injects styles to hide IE's clear indicator, which messes
14062
+ // with input size detection. the stylesheet is only injected when the
14063
+ // browser is IE, and can also be disabled by the `injectStyles` prop.
14064
+ var injectStyles = this.props.injectStyles;
14065
+
14066
+ return isIE && injectStyles ? _react2.default.createElement('style', { dangerouslySetInnerHTML: {
14067
+ __html: 'input#' + this.state.inputId + '::-ms-clear {display: none;}'
14068
+ } }) : null;
14069
+ }
14070
+ }, {
14071
+ key: 'render',
14072
+ value: function render() {
14073
+ var sizerValue = [this.props.defaultValue, this.props.value, ''].reduce(function (previousValue, currentValue) {
14074
+ if (previousValue !== null && previousValue !== undefined) {
14075
+ return previousValue;
14076
+ }
14077
+ return currentValue;
14078
+ });
14079
+
14080
+ var wrapperStyle = _extends({}, this.props.style);
14081
+ if (!wrapperStyle.display) wrapperStyle.display = 'inline-block';
14082
+
14083
+ var inputStyle = _extends({
14084
+ boxSizing: 'content-box',
14085
+ width: this.state.inputWidth + 'px'
14086
+ }, this.props.inputStyle);
14087
+
14088
+ var inputProps = _objectWithoutProperties(this.props, []);
14089
+
14090
+ cleanInputProps(inputProps);
14091
+ inputProps.className = this.props.inputClassName;
14092
+ inputProps.id = this.state.inputId;
14093
+ inputProps.style = inputStyle;
14094
+
14095
+ return _react2.default.createElement(
14096
+ 'div',
14097
+ { className: this.props.className, style: wrapperStyle },
14098
+ this.renderStyles(),
14099
+ _react2.default.createElement('input', _extends({}, inputProps, { ref: this.inputRef })),
14100
+ _react2.default.createElement(
14101
+ 'div',
14102
+ { ref: this.sizerRef, style: sizerStyle },
14103
+ sizerValue
14104
+ ),
14105
+ this.props.placeholder ? _react2.default.createElement(
14106
+ 'div',
14107
+ { ref: this.placeHolderSizerRef, style: sizerStyle },
14108
+ this.props.placeholder
14109
+ ) : null
14110
+ );
14111
+ }
14112
+ }]);
14113
+
14114
+ return AutosizeInput;
14115
+ }(_react.Component);
14116
+
14117
+ AutosizeInput.propTypes = {
14118
+ className: _propTypes2.default.string, // className for the outer element
14119
+ defaultValue: _propTypes2.default.any, // default field value
14120
+ extraWidth: _propTypes2.default.oneOfType([// additional width for input element
14121
+ _propTypes2.default.number, _propTypes2.default.string]),
14122
+ id: _propTypes2.default.string, // id to use for the input, can be set for consistent snapshots
14123
+ injectStyles: _propTypes2.default.bool, // inject the custom stylesheet to hide clear UI, defaults to true
14124
+ inputClassName: _propTypes2.default.string, // className for the input element
14125
+ inputRef: _propTypes2.default.func, // ref callback for the input element
14126
+ inputStyle: _propTypes2.default.object, // css styles for the input element
14127
+ minWidth: _propTypes2.default.oneOfType([// minimum width for input element
14128
+ _propTypes2.default.number, _propTypes2.default.string]),
14129
+ onAutosize: _propTypes2.default.func, // onAutosize handler: function(newWidth) {}
14130
+ onChange: _propTypes2.default.func, // onChange handler: function(event) {}
14131
+ placeholder: _propTypes2.default.string, // placeholder text
14132
+ placeholderIsMinWidth: _propTypes2.default.bool, // don't collapse size to less than the placeholder
14133
+ style: _propTypes2.default.object, // css styles for the outer element
14134
+ value: _propTypes2.default.any // field value
14135
+ };
14136
+ AutosizeInput.defaultProps = {
14137
+ minWidth: 1,
14138
+ injectStyles: true
14139
+ };
14140
+
14141
+ exports.default = AutosizeInput;
14142
+
14143
+ /***/ }),
14144
+ /* 183 */
14145
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
14146
+
14147
+ "use strict";
14148
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Select; });
14149
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return defaultTheme; });
14150
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return createFilter; });
14151
+ /* unused harmony export d */
14152
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return mergeStyles; });
14153
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
14154
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
14155
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_memoize_one__ = __webpack_require__(177);
14156
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_core__ = __webpack_require__(101);
14157
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_dom__ = __webpack_require__(10);
14158
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react_dom__);
14159
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__ = __webpack_require__(102);
14160
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__ = __webpack_require__(181);
14161
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__emotion_css__ = __webpack_require__(53);
14162
+
14163
+
14164
+
14165
+
14166
+
14167
+
14168
+
14169
+
14170
+ var diacritics = [{
14171
+ base: 'A',
14172
+ letters: /[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g
14173
+ }, {
14174
+ base: 'AA',
14175
+ letters: /[\uA732]/g
14176
+ }, {
14177
+ base: 'AE',
14178
+ letters: /[\u00C6\u01FC\u01E2]/g
14179
+ }, {
14180
+ base: 'AO',
14181
+ letters: /[\uA734]/g
14182
+ }, {
14183
+ base: 'AU',
14184
+ letters: /[\uA736]/g
14185
+ }, {
14186
+ base: 'AV',
14187
+ letters: /[\uA738\uA73A]/g
14188
+ }, {
14189
+ base: 'AY',
14190
+ letters: /[\uA73C]/g
14191
+ }, {
14192
+ base: 'B',
14193
+ letters: /[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g
14194
+ }, {
14195
+ base: 'C',
14196
+ letters: /[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g
14197
+ }, {
14198
+ base: 'D',
14199
+ letters: /[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g
14200
+ }, {
14201
+ base: 'DZ',
14202
+ letters: /[\u01F1\u01C4]/g
14203
+ }, {
14204
+ base: 'Dz',
14205
+ letters: /[\u01F2\u01C5]/g
14206
+ }, {
14207
+ base: 'E',
14208
+ letters: /[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g
14209
+ }, {
14210
+ base: 'F',
14211
+ letters: /[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g
14212
+ }, {
14213
+ base: 'G',
14214
+ letters: /[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g
14215
+ }, {
14216
+ base: 'H',
14217
+ letters: /[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g
14218
+ }, {
14219
+ base: 'I',
14220
+ letters: /[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g
14221
+ }, {
14222
+ base: 'J',
14223
+ letters: /[\u004A\u24BF\uFF2A\u0134\u0248]/g
14224
+ }, {
14225
+ base: 'K',
14226
+ letters: /[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g
14227
+ }, {
14228
+ base: 'L',
14229
+ letters: /[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g
14230
+ }, {
14231
+ base: 'LJ',
14232
+ letters: /[\u01C7]/g
14233
+ }, {
14234
+ base: 'Lj',
14235
+ letters: /[\u01C8]/g
14236
+ }, {
14237
+ base: 'M',
14238
+ letters: /[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g
14239
+ }, {
14240
+ base: 'N',
14241
+ letters: /[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g
14242
+ }, {
14243
+ base: 'NJ',
14244
+ letters: /[\u01CA]/g
14245
+ }, {
14246
+ base: 'Nj',
14247
+ letters: /[\u01CB]/g
14248
+ }, {
14249
+ base: 'O',
14250
+ letters: /[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g
14251
+ }, {
14252
+ base: 'OI',
14253
+ letters: /[\u01A2]/g
14254
+ }, {
14255
+ base: 'OO',
14256
+ letters: /[\uA74E]/g
14257
+ }, {
14258
+ base: 'OU',
14259
+ letters: /[\u0222]/g
14260
+ }, {
14261
+ base: 'P',
14262
+ letters: /[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g
14263
+ }, {
14264
+ base: 'Q',
14265
+ letters: /[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g
14266
+ }, {
14267
+ base: 'R',
14268
+ letters: /[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g
14269
+ }, {
14270
+ base: 'S',
14271
+ letters: /[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g
14272
+ }, {
14273
+ base: 'T',
14274
+ letters: /[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g
14275
+ }, {
14276
+ base: 'TZ',
14277
+ letters: /[\uA728]/g
14278
+ }, {
14279
+ base: 'U',
14280
+ letters: /[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g
14281
+ }, {
14282
+ base: 'V',
14283
+ letters: /[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g
14284
+ }, {
14285
+ base: 'VY',
14286
+ letters: /[\uA760]/g
14287
+ }, {
14288
+ base: 'W',
14289
+ letters: /[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g
14290
+ }, {
14291
+ base: 'X',
14292
+ letters: /[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g
14293
+ }, {
14294
+ base: 'Y',
14295
+ letters: /[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g
14296
+ }, {
14297
+ base: 'Z',
14298
+ letters: /[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g
14299
+ }, {
14300
+ base: 'a',
14301
+ letters: /[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g
14302
+ }, {
14303
+ base: 'aa',
14304
+ letters: /[\uA733]/g
14305
+ }, {
14306
+ base: 'ae',
14307
+ letters: /[\u00E6\u01FD\u01E3]/g
14308
+ }, {
14309
+ base: 'ao',
14310
+ letters: /[\uA735]/g
14311
+ }, {
14312
+ base: 'au',
14313
+ letters: /[\uA737]/g
14314
+ }, {
14315
+ base: 'av',
14316
+ letters: /[\uA739\uA73B]/g
14317
+ }, {
14318
+ base: 'ay',
14319
+ letters: /[\uA73D]/g
14320
+ }, {
14321
+ base: 'b',
14322
+ letters: /[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g
14323
+ }, {
14324
+ base: 'c',
14325
+ letters: /[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g
14326
+ }, {
14327
+ base: 'd',
14328
+ letters: /[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g
14329
+ }, {
14330
+ base: 'dz',
14331
+ letters: /[\u01F3\u01C6]/g
14332
+ }, {
14333
+ base: 'e',
14334
+ letters: /[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g
14335
+ }, {
14336
+ base: 'f',
14337
+ letters: /[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g
14338
+ }, {
14339
+ base: 'g',
14340
+ letters: /[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g
14341
+ }, {
14342
+ base: 'h',
14343
+ letters: /[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g
14344
+ }, {
14345
+ base: 'hv',
14346
+ letters: /[\u0195]/g
14347
+ }, {
14348
+ base: 'i',
14349
+ letters: /[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g
14350
+ }, {
14351
+ base: 'j',
14352
+ letters: /[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g
14353
+ }, {
14354
+ base: 'k',
14355
+ letters: /[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g
14356
+ }, {
14357
+ base: 'l',
14358
+ letters: /[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g
14359
+ }, {
14360
+ base: 'lj',
14361
+ letters: /[\u01C9]/g
14362
+ }, {
14363
+ base: 'm',
14364
+ letters: /[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g
14365
+ }, {
14366
+ base: 'n',
14367
+ letters: /[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g
14368
+ }, {
14369
+ base: 'nj',
14370
+ letters: /[\u01CC]/g
14371
+ }, {
14372
+ base: 'o',
14373
+ letters: /[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g
14374
+ }, {
14375
+ base: 'oi',
14376
+ letters: /[\u01A3]/g
14377
+ }, {
14378
+ base: 'ou',
14379
+ letters: /[\u0223]/g
14380
+ }, {
14381
+ base: 'oo',
14382
+ letters: /[\uA74F]/g
14383
+ }, {
14384
+ base: 'p',
14385
+ letters: /[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g
14386
+ }, {
14387
+ base: 'q',
14388
+ letters: /[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g
14389
+ }, {
14390
+ base: 'r',
14391
+ letters: /[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g
14392
+ }, {
14393
+ base: 's',
14394
+ letters: /[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g
14395
+ }, {
14396
+ base: 't',
14397
+ letters: /[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g
14398
+ }, {
14399
+ base: 'tz',
14400
+ letters: /[\uA729]/g
14401
+ }, {
14402
+ base: 'u',
14403
+ letters: /[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g
14404
+ }, {
14405
+ base: 'v',
14406
+ letters: /[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g
14407
+ }, {
14408
+ base: 'vy',
14409
+ letters: /[\uA761]/g
14410
+ }, {
14411
+ base: 'w',
14412
+ letters: /[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g
14413
+ }, {
14414
+ base: 'x',
14415
+ letters: /[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g
14416
+ }, {
14417
+ base: 'y',
14418
+ letters: /[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g
14419
+ }, {
14420
+ base: 'z',
14421
+ letters: /[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g
14422
+ }];
14423
+ var stripDiacritics = function stripDiacritics(str) {
14424
+ for (var i = 0; i < diacritics.length; i++) {
14425
+ str = str.replace(diacritics[i].letters, diacritics[i].base);
14426
+ }
14427
+
14428
+ return str;
14429
+ };
14430
+
14431
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
14432
+
14433
+ var trimString = function trimString(str) {
14434
+ return str.replace(/^\s+|\s+$/g, '');
14435
+ };
14436
+
14437
+ var defaultStringify = function defaultStringify(option) {
14438
+ return option.label + " " + option.value;
14439
+ };
14440
+
14441
+ var createFilter = function createFilter(config) {
14442
+ return function (option, rawInput) {
14443
+ var _ignoreCase$ignoreAcc = _extends({
14444
+ ignoreCase: true,
14445
+ ignoreAccents: true,
14446
+ stringify: defaultStringify,
14447
+ trim: true,
14448
+ matchFrom: 'any'
14449
+ }, config),
14450
+ ignoreCase = _ignoreCase$ignoreAcc.ignoreCase,
14451
+ ignoreAccents = _ignoreCase$ignoreAcc.ignoreAccents,
14452
+ stringify = _ignoreCase$ignoreAcc.stringify,
14453
+ trim = _ignoreCase$ignoreAcc.trim,
14454
+ matchFrom = _ignoreCase$ignoreAcc.matchFrom;
14455
+
14456
+ var input = trim ? trimString(rawInput) : rawInput;
14457
+ var candidate = trim ? trimString(stringify(option)) : stringify(option);
14458
+
14459
+ if (ignoreCase) {
14460
+ input = input.toLowerCase();
14461
+ candidate = candidate.toLowerCase();
14462
+ }
14463
+
14464
+ if (ignoreAccents) {
14465
+ input = stripDiacritics(input);
14466
+ candidate = stripDiacritics(candidate);
14467
+ }
14468
+
14469
+ return matchFrom === 'start' ? candidate.substr(0, input.length) === input : candidate.indexOf(input) > -1;
14470
+ };
14471
+ };
14472
+
14473
+ function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
14474
+
14475
+ var _ref = process.env.NODE_ENV === "production" ? {
14476
+ name: "1laao21-a11yText",
14477
+ styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;"
14478
+ } : {
14479
+ name: "1laao21-a11yText",
14480
+ styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;",
14481
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVFNIiwiZmlsZSI6IkExMXlUZXh0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8gQGZsb3dcbi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgdHlwZSBFbGVtZW50Q29uZmlnIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vY29yZSc7XG5cbi8vIEFzc2lzdGl2ZSB0ZXh0IHRvIGRlc2NyaWJlIHZpc3VhbCBlbGVtZW50cy4gSGlkZGVuIGZvciBzaWdodGVkIHVzZXJzLlxuY29uc3QgQTExeVRleHQgPSAocHJvcHM6IEVsZW1lbnRDb25maWc8J3NwYW4nPikgPT4gKFxuICAgIDxzcGFuXG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdhMTF5VGV4dCcsXG4gICAgICAgIHpJbmRleDogOTk5OSxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICBjbGlwOiAncmVjdCgxcHgsIDFweCwgMXB4LCAxcHgpJyxcbiAgICAgICAgaGVpZ2h0OiAxLFxuICAgICAgICB3aWR0aDogMSxcbiAgICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICAgIG92ZXJmbG93OiAnaGlkZGVuJyxcbiAgICAgICAgcGFkZGluZzogMCxcbiAgICAgICAgd2hpdGVTcGFjZTogJ25vd3JhcCcsXG4gICAgICB9fVxuICAgICAgey4uLnByb3BzfVxuICAgIC8+XG4pO1xuXG5leHBvcnQgZGVmYXVsdCBBMTF5VGV4dDtcbiJdfQ== */"
14482
+ };
14483
+
14484
+ var A11yText = function A11yText(props) {
14485
+ return Object(__WEBPACK_IMPORTED_MODULE_2__emotion_core__["c" /* jsx */])("span", _extends$1({
14486
+ css: _ref
14487
+ }, props));
14488
+ };
14489
+
14490
+ function _extends$2() { _extends$2 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
14491
+
14492
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
14493
+ function DummyInput(_ref) {
14494
+ var inProp = _ref.in,
14495
+ out = _ref.out,
14496
+ onExited = _ref.onExited,
14497
+ appear = _ref.appear,
14498
+ enter = _ref.enter,
14499
+ exit = _ref.exit,
14500
+ innerRef = _ref.innerRef,
14501
+ emotion = _ref.emotion,
14502
+ props = _objectWithoutPropertiesLoose(_ref, ["in", "out", "onExited", "appear", "enter", "exit", "innerRef", "emotion"]);
14503
+
14504
+ return Object(__WEBPACK_IMPORTED_MODULE_2__emotion_core__["c" /* jsx */])("input", _extends$2({
14505
+ ref: innerRef
14506
+ }, props, {
14507
+ css:
14508
+ /*#__PURE__*/
14509
+ Object(__WEBPACK_IMPORTED_MODULE_6__emotion_css__["a" /* default */])({
14510
+ label: 'dummyInput',
14511
+ // get rid of any default styles
14512
+ background: 0,
14513
+ border: 0,
14514
+ fontSize: 'inherit',
14515
+ outline: 0,
14516
+ padding: 0,
14517
+ // important! without `width` browsers won't allow focus
14518
+ width: 1,
14519
+ // remove cursor on desktop
14520
+ color: 'transparent',
14521
+ // remove cursor on mobile whilst maintaining "scroll into view" behaviour
14522
+ left: -100,
14523
+ opacity: 0,
14524
+ position: 'relative',
14525
+ transform: 'scale(0)'
14526
+ }, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBbUJNIiwiZmlsZSI6IkR1bW15SW5wdXQuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9jb3JlJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGluOiBpblByb3AsXG4gIG91dCxcbiAgb25FeGl0ZWQsXG4gIGFwcGVhcixcbiAgZW50ZXIsXG4gIGV4aXQsXG4gIGlubmVyUmVmLFxuICBlbW90aW9uLFxuICAuLi5wcm9wc1xufTogYW55KSB7XG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLnByb3BzfVxuICAgICAgY3NzPXt7XG4gICAgICAgIGxhYmVsOiAnZHVtbXlJbnB1dCcsXG4gICAgICAgIC8vIGdldCByaWQgb2YgYW55IGRlZmF1bHQgc3R5bGVzXG4gICAgICAgIGJhY2tncm91bmQ6IDAsXG4gICAgICAgIGJvcmRlcjogMCxcbiAgICAgICAgZm9udFNpemU6ICdpbmhlcml0JyxcbiAgICAgICAgb3V0bGluZTogMCxcbiAgICAgICAgcGFkZGluZzogMCxcbiAgICAgICAgLy8gaW1wb3J0YW50ISB3aXRob3V0IGB3aWR0aGAgYnJvd3NlcnMgd29uJ3QgYWxsb3cgZm9jdXNcbiAgICAgICAgd2lkdGg6IDEsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBkZXNrdG9wXG4gICAgICAgIGNvbG9yOiAndHJhbnNwYXJlbnQnLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gbW9iaWxlIHdoaWxzdCBtYWludGFpbmluZyBcInNjcm9sbCBpbnRvIHZpZXdcIiBiZWhhdmlvdXJcbiAgICAgICAgbGVmdDogLTEwMCxcbiAgICAgICAgb3BhY2l0eTogMCxcbiAgICAgICAgcG9zaXRpb246ICdyZWxhdGl2ZScsXG4gICAgICAgIHRyYW5zZm9ybTogJ3NjYWxlKDApJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")
14527
+ }));
14528
+ }
14529
+
14530
+ function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
14531
+
14532
+ var NodeResolver =
14533
+ /*#__PURE__*/
14534
+ function (_Component) {
14535
+ _inheritsLoose(NodeResolver, _Component);
14536
+
14537
+ function NodeResolver() {
14538
+ return _Component.apply(this, arguments) || this;
14539
+ }
14540
+
14541
+ var _proto = NodeResolver.prototype;
14542
+
14543
+ _proto.componentDidMount = function componentDidMount() {
14544
+ this.props.innerRef(Object(__WEBPACK_IMPORTED_MODULE_3_react_dom__["findDOMNode"])(this));
14545
+ };
14546
+
14547
+ _proto.componentWillUnmount = function componentWillUnmount() {
14548
+ this.props.innerRef(null);
14549
+ };
14550
+
14551
+ _proto.render = function render() {
14552
+ return this.props.children;
14553
+ };
14554
+
14555
+ return NodeResolver;
14556
+ }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
14557
+
14558
+ var STYLE_KEYS = ['boxSizing', 'height', 'overflow', 'paddingRight', 'position'];
14559
+ var LOCK_STYLES = {
14560
+ boxSizing: 'border-box',
14561
+ // account for possible declaration `width: 100%;` on body
14562
+ overflow: 'hidden',
14563
+ position: 'relative',
14564
+ height: '100%'
14565
+ };
14566
+
14567
+ function preventTouchMove(e) {
14568
+ e.preventDefault();
14569
+ }
14570
+ function allowTouchMove(e) {
14571
+ e.stopPropagation();
14572
+ }
14573
+ function preventInertiaScroll() {
14574
+ var top = this.scrollTop;
14575
+ var totalScroll = this.scrollHeight;
14576
+ var currentScroll = top + this.offsetHeight;
14577
+
14578
+ if (top === 0) {
14579
+ this.scrollTop = 1;
14580
+ } else if (currentScroll === totalScroll) {
14581
+ this.scrollTop = top - 1;
14582
+ }
14583
+ } // `ontouchstart` check works on most browsers
14584
+ // `maxTouchPoints` works on IE10/11 and Surface
14585
+
14586
+ function isTouchDevice() {
14587
+ return 'ontouchstart' in window || navigator.maxTouchPoints;
14588
+ }
14589
+
14590
+ function _inheritsLoose$1(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
14591
+ var canUseDOM = !!( window.document && window.document.createElement);
14592
+ var activeScrollLocks = 0;
14593
+
14594
+ var ScrollLock =
14595
+ /*#__PURE__*/
14596
+ function (_Component) {
14597
+ _inheritsLoose$1(ScrollLock, _Component);
14598
+
14599
+ function ScrollLock() {
14600
+ var _this;
14601
+
14602
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
14603
+ args[_key] = arguments[_key];
14604
+ }
14605
+
14606
+ _this = _Component.call.apply(_Component, [this].concat(args)) || this;
14607
+ _this.originalStyles = {};
14608
+ _this.listenerOptions = {
14609
+ capture: false,
14610
+ passive: false
14611
+ };
14612
+ return _this;
14613
+ }
14614
+
14615
+ var _proto = ScrollLock.prototype;
14616
+
14617
+ _proto.componentDidMount = function componentDidMount() {
14618
+ var _this2 = this;
14619
+
14620
+ if (!canUseDOM) return;
14621
+ var _this$props = this.props,
14622
+ accountForScrollbars = _this$props.accountForScrollbars,
14623
+ touchScrollTarget = _this$props.touchScrollTarget;
14624
+ var target = document.body;
14625
+ var targetStyle = target && target.style;
14626
+
14627
+ if (accountForScrollbars) {
14628
+ // store any styles already applied to the body
14629
+ STYLE_KEYS.forEach(function (key) {
14630
+ var val = targetStyle && targetStyle[key];
14631
+ _this2.originalStyles[key] = val;
14632
+ });
14633
+ } // apply the lock styles and padding if this is the first scroll lock
14634
+
14635
+
14636
+ if (accountForScrollbars && activeScrollLocks < 1) {
14637
+ var currentPadding = parseInt(this.originalStyles.paddingRight, 10) || 0;
14638
+ var clientWidth = document.body ? document.body.clientWidth : 0;
14639
+ var adjustedPadding = window.innerWidth - clientWidth + currentPadding || 0;
14640
+ Object.keys(LOCK_STYLES).forEach(function (key) {
14641
+ var val = LOCK_STYLES[key];
14642
+
14643
+ if (targetStyle) {
14644
+ targetStyle[key] = val;
14645
+ }
14646
+ });
14647
+
14648
+ if (targetStyle) {
14649
+ targetStyle.paddingRight = adjustedPadding + "px";
14650
+ }
14651
+ } // account for touch devices
14652
+
14653
+
14654
+ if (target && isTouchDevice()) {
14655
+ // Mobile Safari ignores { overflow: hidden } declaration on the body.
14656
+ target.addEventListener('touchmove', preventTouchMove, this.listenerOptions); // Allow scroll on provided target
14657
+
14658
+ if (touchScrollTarget) {
14659
+ touchScrollTarget.addEventListener('touchstart', preventInertiaScroll, this.listenerOptions);
14660
+ touchScrollTarget.addEventListener('touchmove', allowTouchMove, this.listenerOptions);
14661
+ }
14662
+ } // increment active scroll locks
14663
+
14664
+
14665
+ activeScrollLocks += 1;
14666
+ };
14667
+
14668
+ _proto.componentWillUnmount = function componentWillUnmount() {
14669
+ var _this3 = this;
14670
+
14671
+ if (!canUseDOM) return;
14672
+ var _this$props2 = this.props,
14673
+ accountForScrollbars = _this$props2.accountForScrollbars,
14674
+ touchScrollTarget = _this$props2.touchScrollTarget;
14675
+ var target = document.body;
14676
+ var targetStyle = target && target.style; // safely decrement active scroll locks
14677
+
14678
+ activeScrollLocks = Math.max(activeScrollLocks - 1, 0); // reapply original body styles, if any
14679
+
14680
+ if (accountForScrollbars && activeScrollLocks < 1) {
14681
+ STYLE_KEYS.forEach(function (key) {
14682
+ var val = _this3.originalStyles[key];
14683
+
14684
+ if (targetStyle) {
14685
+ targetStyle[key] = val;
14686
+ }
14687
+ });
14688
+ } // remove touch listeners
14689
+
14690
+
14691
+ if (target && isTouchDevice()) {
14692
+ target.removeEventListener('touchmove', preventTouchMove, this.listenerOptions);
14693
+
14694
+ if (touchScrollTarget) {
14695
+ touchScrollTarget.removeEventListener('touchstart', preventInertiaScroll, this.listenerOptions);
14696
+ touchScrollTarget.removeEventListener('touchmove', allowTouchMove, this.listenerOptions);
14697
+ }
14698
+ }
14699
+ };
14700
+
14701
+ _proto.render = function render() {
14702
+ return null;
14703
+ };
14704
+
14705
+ return ScrollLock;
14706
+ }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
14707
+
14708
+ ScrollLock.defaultProps = {
14709
+ accountForScrollbars: true
14710
+ };
14711
+
14712
+ function _inheritsLoose$2(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
14713
+
14714
+ var _ref$1 = process.env.NODE_ENV === "production" ? {
14715
+ name: "1dsbpcp",
14716
+ styles: "position:fixed;left:0;bottom:0;right:0;top:0;"
14717
+ } : {
14718
+ name: "1dsbpcp",
14719
+ styles: "position:fixed;left:0;bottom:0;right:0;top:0;",
14720
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbEJsb2NrLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTZEVSIsImZpbGUiOiJTY3JvbGxCbG9jay5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vIEBmbG93XG4vKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IFB1cmVDb21wb25lbnQsIHR5cGUgRWxlbWVudCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuaW1wb3J0IE5vZGVSZXNvbHZlciBmcm9tICcuL05vZGVSZXNvbHZlcic7XG5pbXBvcnQgU2Nyb2xsTG9jayBmcm9tICcuL1Njcm9sbExvY2svaW5kZXgnO1xuXG50eXBlIFByb3BzID0ge1xuICBjaGlsZHJlbjogRWxlbWVudDwqPixcbiAga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ZVJlc29sdmVyIGlubmVyUmVmPXt0aGlzLmdldFNjcm9sbFRhcmdldH0+e2NoaWxkcmVufTwvTm9kZVJlc29sdmVyPlxuICAgICAgICB7dG91Y2hTY3JvbGxUYXJnZXQgPyAoXG4gICAgICAgICAgPFNjcm9sbExvY2sgdG91Y2hTY3JvbGxUYXJnZXQ9e3RvdWNoU2Nyb2xsVGFyZ2V0fSAvPlxuICAgICAgICApIDogbnVsbH1cbiAgICAgIDwvZGl2PlxuICAgICk7XG4gIH1cbn1cbiJdfQ== */"
14721
+ };
14722
+
14723
+ // NOTE:
14724
+ // We shouldn't need this after updating to React v16.3.0, which introduces:
14725
+ // - createRef() https://reactjs.org/docs/react-api.html#reactcreateref
14726
+ // - forwardRef() https://reactjs.org/docs/react-api.html#reactforwardref
14727
+ var ScrollBlock =
14728
+ /*#__PURE__*/
14729
+ function (_PureComponent) {
14730
+ _inheritsLoose$2(ScrollBlock, _PureComponent);
14731
+
14732
+ function ScrollBlock() {
14733
+ var _this;
14734
+
14735
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
14736
+ args[_key] = arguments[_key];
14737
+ }
14738
+
14739
+ _this = _PureComponent.call.apply(_PureComponent, [this].concat(args)) || this;
14740
+ _this.state = {
14741
+ touchScrollTarget: null
14742
+ };
14743
+
14744
+ _this.getScrollTarget = function (ref) {
14745
+ if (ref === _this.state.touchScrollTarget) return;
14746
+
14747
+ _this.setState({
14748
+ touchScrollTarget: ref
14749
+ });
14750
+ };
14751
+
14752
+ _this.blurSelectInput = function () {
14753
+ if (document.activeElement) {
14754
+ document.activeElement.blur();
14755
+ }
14756
+ };
14757
+
14758
+ return _this;
14759
+ }
14760
+
14761
+ var _proto = ScrollBlock.prototype;
14762
+
14763
+ _proto.render = function render() {
14764
+ var _this$props = this.props,
14765
+ children = _this$props.children,
14766
+ isEnabled = _this$props.isEnabled;
14767
+ var touchScrollTarget = this.state.touchScrollTarget; // bail early if not enabled
14768
+
14769
+ if (!isEnabled) return children;
14770
+ /*
14771
+ * Div
14772
+ * ------------------------------
14773
+ * blocks scrolling on non-body elements behind the menu
14774
+ * NodeResolver
14775
+ * ------------------------------
14776
+ * we need a reference to the scrollable element to "unlock" scroll on
14777
+ * mobile devices
14778
+ * ScrollLock
14779
+ * ------------------------------
14780
+ * actually does the scroll locking
14781
+ */
14782
+
14783
+ return Object(__WEBPACK_IMPORTED_MODULE_2__emotion_core__["c" /* jsx */])("div", null, Object(__WEBPACK_IMPORTED_MODULE_2__emotion_core__["c" /* jsx */])("div", {
14784
+ onClick: this.blurSelectInput,
14785
+ css: _ref$1
14786
+ }), Object(__WEBPACK_IMPORTED_MODULE_2__emotion_core__["c" /* jsx */])(NodeResolver, {
14787
+ innerRef: this.getScrollTarget
14788
+ }, children), touchScrollTarget ? Object(__WEBPACK_IMPORTED_MODULE_2__emotion_core__["c" /* jsx */])(ScrollLock, {
14789
+ touchScrollTarget: touchScrollTarget
14790
+ }) : null);
14791
+ };
14792
+
14793
+ return ScrollBlock;
14794
+ }(__WEBPACK_IMPORTED_MODULE_0_react__["PureComponent"]);
14795
+
14796
+ function _objectWithoutPropertiesLoose$1(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
14797
+
14798
+ function _inheritsLoose$3(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
14799
+
14800
+ var ScrollCaptor =
14801
+ /*#__PURE__*/
14802
+ function (_Component) {
14803
+ _inheritsLoose$3(ScrollCaptor, _Component);
14804
+
14805
+ function ScrollCaptor() {
14806
+ var _this;
14807
+
14808
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
14809
+ args[_key] = arguments[_key];
14810
+ }
14811
+
14812
+ _this = _Component.call.apply(_Component, [this].concat(args)) || this;
14813
+ _this.isBottom = false;
14814
+ _this.isTop = false;
14815
+ _this.scrollTarget = void 0;
14816
+ _this.touchStart = void 0;
14817
+
14818
+ _this.cancelScroll = function (event) {
14819
+ event.preventDefault();
14820
+ event.stopPropagation();
14821
+ };
14822
+
14823
+ _this.handleEventDelta = function (event, delta) {
14824
+ var _this$props = _this.props,
14825
+ onBottomArrive = _this$props.onBottomArrive,
14826
+ onBottomLeave = _this$props.onBottomLeave,
14827
+ onTopArrive = _this$props.onTopArrive,
14828
+ onTopLeave = _this$props.onTopLeave;
14829
+ var _this$scrollTarget = _this.scrollTarget,
14830
+ scrollTop = _this$scrollTarget.scrollTop,
14831
+ scrollHeight = _this$scrollTarget.scrollHeight,
14832
+ clientHeight = _this$scrollTarget.clientHeight;
14833
+ var target = _this.scrollTarget;
14834
+ var isDeltaPositive = delta > 0;
14835
+ var availableScroll = scrollHeight - clientHeight - scrollTop;
14836
+ var shouldCancelScroll = false; // reset bottom/top flags
14837
+
14838
+ if (availableScroll > delta && _this.isBottom) {
14839
+ if (onBottomLeave) onBottomLeave(event);
14840
+ _this.isBottom = false;
14841
+ }
14842
+
14843
+ if (isDeltaPositive && _this.isTop) {
14844
+ if (onTopLeave) onTopLeave(event);
14845
+ _this.isTop = false;
14846
+ } // bottom limit
14847
+
14848
+
14849
+ if (isDeltaPositive && delta > availableScroll) {
14850
+ if (onBottomArrive && !_this.isBottom) {
14851
+ onBottomArrive(event);
14852
+ }
14853
+
14854
+ target.scrollTop = scrollHeight;
14855
+ shouldCancelScroll = true;
14856
+ _this.isBottom = true; // top limit
14857
+ } else if (!isDeltaPositive && -delta > scrollTop) {
14858
+ if (onTopArrive && !_this.isTop) {
14859
+ onTopArrive(event);
14860
+ }
14861
+
14862
+ target.scrollTop = 0;
14863
+ shouldCancelScroll = true;
14864
+ _this.isTop = true;
14865
+ } // cancel scroll
14866
+
14867
+
14868
+ if (shouldCancelScroll) {
14869
+ _this.cancelScroll(event);
14870
+ }
14871
+ };
14872
+
14873
+ _this.onWheel = function (event) {
14874
+ _this.handleEventDelta(event, event.deltaY);
14875
+ };
14876
+
14877
+ _this.onTouchStart = function (event) {
14878
+ // set touch start so we can calculate touchmove delta
14879
+ _this.touchStart = event.changedTouches[0].clientY;
14880
+ };
14881
+
14882
+ _this.onTouchMove = function (event) {
14883
+ var deltaY = _this.touchStart - event.changedTouches[0].clientY;
14884
+
14885
+ _this.handleEventDelta(event, deltaY);
14886
+ };
14887
+
14888
+ _this.getScrollTarget = function (ref) {
14889
+ _this.scrollTarget = ref;
14890
+ };
14891
+
14892
+ return _this;
14893
+ }
14894
+
14895
+ var _proto = ScrollCaptor.prototype;
14896
+
14897
+ _proto.componentDidMount = function componentDidMount() {
14898
+ this.startListening(this.scrollTarget);
14899
+ };
14900
+
14901
+ _proto.componentWillUnmount = function componentWillUnmount() {
14902
+ this.stopListening(this.scrollTarget);
14903
+ };
14904
+
14905
+ _proto.startListening = function startListening(el) {
14906
+ // bail early if no element is available to attach to
14907
+ if (!el) return; // all the if statements are to appease Flow 😢
14908
+
14909
+ if (typeof el.addEventListener === 'function') {
14910
+ el.addEventListener('wheel', this.onWheel, false);
14911
+ }
14912
+
14913
+ if (typeof el.addEventListener === 'function') {
14914
+ el.addEventListener('touchstart', this.onTouchStart, false);
14915
+ }
14916
+
14917
+ if (typeof el.addEventListener === 'function') {
14918
+ el.addEventListener('touchmove', this.onTouchMove, false);
14919
+ }
14920
+ };
14921
+
14922
+ _proto.stopListening = function stopListening(el) {
14923
+ // all the if statements are to appease Flow 😢
14924
+ if (typeof el.removeEventListener === 'function') {
14925
+ el.removeEventListener('wheel', this.onWheel, false);
14926
+ }
14927
+
14928
+ if (typeof el.removeEventListener === 'function') {
14929
+ el.removeEventListener('touchstart', this.onTouchStart, false);
14930
+ }
14931
+
14932
+ if (typeof el.removeEventListener === 'function') {
14933
+ el.removeEventListener('touchmove', this.onTouchMove, false);
14934
+ }
14935
+ };
14936
+
14937
+ _proto.render = function render() {
14938
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(NodeResolver, {
14939
+ innerRef: this.getScrollTarget
14940
+ }, this.props.children);
14941
+ };
14942
+
14943
+ return ScrollCaptor;
14944
+ }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
14945
+
14946
+ function ScrollCaptorSwitch(_ref) {
14947
+ var _ref$isEnabled = _ref.isEnabled,
14948
+ isEnabled = _ref$isEnabled === void 0 ? true : _ref$isEnabled,
14949
+ props = _objectWithoutPropertiesLoose$1(_ref, ["isEnabled"]);
14950
+
14951
+ return isEnabled ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ScrollCaptor, props) : props.children;
14952
+ }
14953
+
14954
+ var instructionsAriaMessage = function instructionsAriaMessage(event, context) {
14955
+ if (context === void 0) {
14956
+ context = {};
14957
+ }
14958
+
14959
+ var _context = context,
14960
+ isSearchable = _context.isSearchable,
14961
+ isMulti = _context.isMulti,
14962
+ label = _context.label,
14963
+ isDisabled = _context.isDisabled;
14964
+
14965
+ switch (event) {
14966
+ case 'menu':
14967
+ return "Use Up and Down to choose options" + (isDisabled ? '' : ', press Enter to select the currently focused option') + ", press Escape to exit the menu, press Tab to select the option and exit the menu.";
14968
+
14969
+ case 'input':
14970
+ return (label ? label : 'Select') + " is focused " + (isSearchable ? ',type to refine list' : '') + ", press Down to open the menu, " + (isMulti ? ' press left to focus selected values' : '');
14971
+
14972
+ case 'value':
14973
+ return 'Use left and right to toggle between focused values, press Backspace to remove the currently focused value';
14974
+ }
14975
+ };
14976
+ var valueEventAriaMessage = function valueEventAriaMessage(event, context) {
14977
+ var value = context.value,
14978
+ isDisabled = context.isDisabled;
14979
+ if (!value) return;
14980
+
14981
+ switch (event) {
14982
+ case 'deselect-option':
14983
+ case 'pop-value':
14984
+ case 'remove-value':
14985
+ return "option " + value + ", deselected.";
14986
+
14987
+ case 'select-option':
14988
+ return isDisabled ? "option " + value + " is disabled. Select another option." : "option " + value + ", selected.";
14989
+ }
14990
+ };
14991
+ var valueFocusAriaMessage = function valueFocusAriaMessage(_ref) {
14992
+ var focusedValue = _ref.focusedValue,
14993
+ getOptionLabel = _ref.getOptionLabel,
14994
+ selectValue = _ref.selectValue;
14995
+ return "value " + getOptionLabel(focusedValue) + " focused, " + (selectValue.indexOf(focusedValue) + 1) + " of " + selectValue.length + ".";
14996
+ };
14997
+ var optionFocusAriaMessage = function optionFocusAriaMessage(_ref2) {
14998
+ var focusedOption = _ref2.focusedOption,
14999
+ getOptionLabel = _ref2.getOptionLabel,
15000
+ options = _ref2.options;
15001
+ return "option " + getOptionLabel(focusedOption) + " focused" + (focusedOption.isDisabled ? ' disabled' : '') + ", " + (options.indexOf(focusedOption) + 1) + " of " + options.length + ".";
15002
+ };
15003
+ var resultsAriaMessage = function resultsAriaMessage(_ref3) {
15004
+ var inputValue = _ref3.inputValue,
15005
+ screenReaderMessage = _ref3.screenReaderMessage;
15006
+ return "" + screenReaderMessage + (inputValue ? ' for search term ' + inputValue : '') + ".";
15007
+ };
15008
+
15009
+ var formatGroupLabel = function formatGroupLabel(group) {
15010
+ return group.label;
15011
+ };
15012
+ var getOptionLabel = function getOptionLabel(option) {
15013
+ return option.label;
15014
+ };
15015
+ var getOptionValue = function getOptionValue(option) {
15016
+ return option.value;
15017
+ };
15018
+ var isOptionDisabled = function isOptionDisabled(option) {
15019
+ return !!option.isDisabled;
15020
+ };
15021
+
15022
+ function _extends$3() { _extends$3 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
15023
+ var defaultStyles = {
15024
+ clearIndicator: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["d" /* c */],
15025
+ container: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["b" /* a */],
15026
+ control: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["c" /* b */],
15027
+ dropdownIndicator: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["e" /* d */],
15028
+ group: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["h" /* g */],
15029
+ groupHeading: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["f" /* e */],
15030
+ indicatorsContainer: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["j" /* i */],
15031
+ indicatorSeparator: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["g" /* f */],
15032
+ input: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["i" /* h */],
15033
+ loadingIndicator: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["m" /* l */],
15034
+ loadingMessage: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["k" /* j */],
15035
+ menu: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["n" /* m */],
15036
+ menuList: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["l" /* k */],
15037
+ menuPortal: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["o" /* n */],
15038
+ multiValue: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["p" /* o */],
15039
+ multiValueLabel: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["q" /* p */],
15040
+ multiValueRemove: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["r" /* q */],
15041
+ noOptionsMessage: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["s" /* r */],
15042
+ option: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["t" /* s */],
15043
+ placeholder: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["u" /* t */],
15044
+ singleValue: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["v" /* u */],
15045
+ valueContainer: __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["w" /* v */]
15046
+ }; // Merge Utility
15047
+ // Allows consumers to extend a base Select with additional styles
15048
+
15049
+ function mergeStyles(source, target) {
15050
+ if (target === void 0) {
15051
+ target = {};
15052
+ }
15053
+
15054
+ // initialize with source styles
15055
+ var styles = _extends$3({}, source); // massage in target styles
15056
+
15057
+
15058
+ Object.keys(target).forEach(function (key) {
15059
+ if (source[key]) {
15060
+ styles[key] = function (rsCss, props) {
15061
+ return target[key](source[key](rsCss, props), props);
15062
+ };
15063
+ } else {
15064
+ styles[key] = target[key];
15065
+ }
15066
+ });
15067
+ return styles;
15068
+ }
15069
+
15070
+ var colors = {
15071
+ primary: '#2684FF',
15072
+ primary75: '#4C9AFF',
15073
+ primary50: '#B2D4FF',
15074
+ primary25: '#DEEBFF',
15075
+ danger: '#DE350B',
15076
+ dangerLight: '#FFBDAD',
15077
+ neutral0: 'hsl(0, 0%, 100%)',
15078
+ neutral5: 'hsl(0, 0%, 95%)',
15079
+ neutral10: 'hsl(0, 0%, 90%)',
15080
+ neutral20: 'hsl(0, 0%, 80%)',
15081
+ neutral30: 'hsl(0, 0%, 70%)',
15082
+ neutral40: 'hsl(0, 0%, 60%)',
15083
+ neutral50: 'hsl(0, 0%, 50%)',
15084
+ neutral60: 'hsl(0, 0%, 40%)',
15085
+ neutral70: 'hsl(0, 0%, 30%)',
15086
+ neutral80: 'hsl(0, 0%, 20%)',
15087
+ neutral90: 'hsl(0, 0%, 10%)'
15088
+ };
15089
+ var borderRadius = 4; // Used to calculate consistent margin/padding on elements
15090
+
15091
+ var baseUnit = 4; // The minimum height of the control
15092
+
15093
+ var controlHeight = 38; // The amount of space between the control and menu */
15094
+
15095
+ var menuGutter = baseUnit * 2;
15096
+ var spacing = {
15097
+ baseUnit: baseUnit,
15098
+ controlHeight: controlHeight,
15099
+ menuGutter: menuGutter
15100
+ };
15101
+ var defaultTheme = {
15102
+ borderRadius: borderRadius,
15103
+ colors: colors,
15104
+ spacing: spacing
15105
+ };
15106
+
15107
+ function _objectWithoutPropertiesLoose$2(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
15108
+
15109
+ function _extends$4() { _extends$4 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
15110
+
15111
+ function _inheritsLoose$4(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
15112
+
15113
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
15114
+ var defaultProps = {
15115
+ backspaceRemovesValue: true,
15116
+ blurInputOnSelect: Object(__WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["i"])(),
15117
+ captureMenuScroll: !Object(__WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["i"])(),
15118
+ closeMenuOnSelect: true,
15119
+ closeMenuOnScroll: false,
15120
+ components: {},
15121
+ controlShouldRenderValue: true,
15122
+ escapeClearsValue: false,
15123
+ filterOption: createFilter(),
15124
+ formatGroupLabel: formatGroupLabel,
15125
+ getOptionLabel: getOptionLabel,
15126
+ getOptionValue: getOptionValue,
15127
+ isDisabled: false,
15128
+ isLoading: false,
15129
+ isMulti: false,
15130
+ isRtl: false,
15131
+ isSearchable: true,
15132
+ isOptionDisabled: isOptionDisabled,
15133
+ loadingMessage: function loadingMessage() {
15134
+ return 'Loading...';
15135
+ },
15136
+ maxMenuHeight: 300,
15137
+ minMenuHeight: 140,
15138
+ menuIsOpen: false,
15139
+ menuPlacement: 'bottom',
15140
+ menuPosition: 'absolute',
15141
+ menuShouldBlockScroll: false,
15142
+ menuShouldScrollIntoView: !Object(__WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["d"])(),
15143
+ noOptionsMessage: function noOptionsMessage() {
15144
+ return 'No options';
15145
+ },
15146
+ openMenuOnFocus: false,
15147
+ openMenuOnClick: true,
15148
+ options: [],
15149
+ pageSize: 5,
15150
+ placeholder: 'Select...',
15151
+ screenReaderStatus: function screenReaderStatus(_ref) {
15152
+ var count = _ref.count;
15153
+ return count + " result" + (count !== 1 ? 's' : '') + " available";
15154
+ },
15155
+ styles: {},
15156
+ tabIndex: '0',
15157
+ tabSelectsValue: true
15158
+ };
15159
+ var instanceId = 1;
15160
+
15161
+ var Select =
15162
+ /*#__PURE__*/
15163
+ function (_Component) {
15164
+ _inheritsLoose$4(Select, _Component);
15165
+
15166
+ // Misc. Instance Properties
15167
+ // ------------------------------
15168
+ // TODO
15169
+ // Refs
15170
+ // ------------------------------
15171
+ // Lifecycle
15172
+ // ------------------------------
15173
+ function Select(_props) {
15174
+ var _this;
15175
+
15176
+ _this = _Component.call(this, _props) || this;
15177
+ _this.state = {
15178
+ ariaLiveSelection: '',
15179
+ ariaLiveContext: '',
15180
+ focusedOption: null,
15181
+ focusedValue: null,
15182
+ inputIsHidden: false,
15183
+ isFocused: false,
15184
+ menuOptions: {
15185
+ render: [],
15186
+ focusable: []
15187
+ },
15188
+ selectValue: []
15189
+ };
15190
+ _this.blockOptionHover = false;
15191
+ _this.isComposing = false;
15192
+ _this.clearFocusValueOnUpdate = false;
15193
+ _this.commonProps = void 0;
15194
+ _this.components = void 0;
15195
+ _this.hasGroups = false;
15196
+ _this.initialTouchX = 0;
15197
+ _this.initialTouchY = 0;
15198
+ _this.inputIsHiddenAfterUpdate = void 0;
15199
+ _this.instancePrefix = '';
15200
+ _this.openAfterFocus = false;
15201
+ _this.scrollToFocusedOptionOnUpdate = false;
15202
+ _this.userIsDragging = void 0;
15203
+ _this.controlRef = null;
15204
+
15205
+ _this.getControlRef = function (ref) {
15206
+ _this.controlRef = ref;
15207
+ };
15208
+
15209
+ _this.focusedOptionRef = null;
15210
+
15211
+ _this.getFocusedOptionRef = function (ref) {
15212
+ _this.focusedOptionRef = ref;
15213
+ };
15214
+
15215
+ _this.menuListRef = null;
15216
+
15217
+ _this.getMenuListRef = function (ref) {
15218
+ _this.menuListRef = ref;
15219
+ };
15220
+
15221
+ _this.inputRef = null;
15222
+
15223
+ _this.getInputRef = function (ref) {
15224
+ _this.inputRef = ref;
15225
+ };
15226
+
15227
+ _this.cacheComponents = function (components) {
15228
+ _this.components = Object(__WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["x" /* w */])({
15229
+ components: components
15230
+ });
15231
+ };
15232
+
15233
+ _this.focus = _this.focusInput;
15234
+ _this.blur = _this.blurInput;
15235
+
15236
+ _this.onChange = function (newValue, actionMeta) {
15237
+ var _this$props = _this.props,
15238
+ onChange = _this$props.onChange,
15239
+ name = _this$props.name;
15240
+ onChange(newValue, _extends$4({}, actionMeta, {
15241
+ name: name
15242
+ }));
15243
+ };
15244
+
15245
+ _this.setValue = function (newValue, action, option) {
15246
+ if (action === void 0) {
15247
+ action = 'set-value';
15248
+ }
15249
+
15250
+ var _this$props2 = _this.props,
15251
+ closeMenuOnSelect = _this$props2.closeMenuOnSelect,
15252
+ isMulti = _this$props2.isMulti;
15253
+
15254
+ _this.onInputChange('', {
15255
+ action: 'set-value'
15256
+ });
15257
+
15258
+ if (closeMenuOnSelect) {
15259
+ _this.inputIsHiddenAfterUpdate = !isMulti;
15260
+
15261
+ _this.onMenuClose();
15262
+ } // when the select value should change, we should reset focusedValue
15263
+
15264
+
15265
+ _this.clearFocusValueOnUpdate = true;
15266
+
15267
+ _this.onChange(newValue, {
15268
+ action: action,
15269
+ option: option
15270
+ });
15271
+ };
15272
+
15273
+ _this.selectOption = function (newValue) {
15274
+ var _this$props3 = _this.props,
15275
+ blurInputOnSelect = _this$props3.blurInputOnSelect,
15276
+ isMulti = _this$props3.isMulti;
15277
+ var selectValue = _this.state.selectValue;
15278
+
15279
+ if (isMulti) {
15280
+ if (_this.isOptionSelected(newValue, selectValue)) {
15281
+ var candidate = _this.getOptionValue(newValue);
15282
+
15283
+ _this.setValue(selectValue.filter(function (i) {
15284
+ return _this.getOptionValue(i) !== candidate;
15285
+ }), 'deselect-option', newValue);
15286
+
15287
+ _this.announceAriaLiveSelection({
15288
+ event: 'deselect-option',
15289
+ context: {
15290
+ value: _this.getOptionLabel(newValue)
15291
+ }
15292
+ });
15293
+ } else {
15294
+ if (!_this.isOptionDisabled(newValue, selectValue)) {
15295
+ _this.setValue([].concat(selectValue, [newValue]), 'select-option', newValue);
15296
+
15297
+ _this.announceAriaLiveSelection({
15298
+ event: 'select-option',
15299
+ context: {
15300
+ value: _this.getOptionLabel(newValue)
15301
+ }
15302
+ });
15303
+ } else {
15304
+ // announce that option is disabled
15305
+ _this.announceAriaLiveSelection({
15306
+ event: 'select-option',
15307
+ context: {
15308
+ value: _this.getOptionLabel(newValue),
15309
+ isDisabled: true
15310
+ }
15311
+ });
15312
+ }
15313
+ }
15314
+ } else {
15315
+ if (!_this.isOptionDisabled(newValue, selectValue)) {
15316
+ _this.setValue(newValue, 'select-option');
15317
+
15318
+ _this.announceAriaLiveSelection({
15319
+ event: 'select-option',
15320
+ context: {
15321
+ value: _this.getOptionLabel(newValue)
15322
+ }
15323
+ });
15324
+ } else {
15325
+ // announce that option is disabled
15326
+ _this.announceAriaLiveSelection({
15327
+ event: 'select-option',
15328
+ context: {
15329
+ value: _this.getOptionLabel(newValue),
15330
+ isDisabled: true
15331
+ }
15332
+ });
15333
+ }
15334
+ }
15335
+
15336
+ if (blurInputOnSelect) {
15337
+ _this.blurInput();
15338
+ }
15339
+ };
15340
+
15341
+ _this.removeValue = function (removedValue) {
15342
+ var selectValue = _this.state.selectValue;
15343
+
15344
+ var candidate = _this.getOptionValue(removedValue);
15345
+
15346
+ var newValue = selectValue.filter(function (i) {
15347
+ return _this.getOptionValue(i) !== candidate;
15348
+ });
15349
+
15350
+ _this.onChange(newValue.length ? newValue : null, {
15351
+ action: 'remove-value',
15352
+ removedValue: removedValue
15353
+ });
15354
+
15355
+ _this.announceAriaLiveSelection({
15356
+ event: 'remove-value',
15357
+ context: {
15358
+ value: removedValue ? _this.getOptionLabel(removedValue) : ''
15359
+ }
15360
+ });
15361
+
15362
+ _this.focusInput();
15363
+ };
15364
+
15365
+ _this.clearValue = function () {
15366
+ var isMulti = _this.props.isMulti;
15367
+
15368
+ _this.onChange(isMulti ? [] : null, {
15369
+ action: 'clear'
15370
+ });
15371
+ };
15372
+
15373
+ _this.popValue = function () {
15374
+ var selectValue = _this.state.selectValue;
15375
+ var lastSelectedValue = selectValue[selectValue.length - 1];
15376
+ var newValue = selectValue.slice(0, selectValue.length - 1);
15377
+
15378
+ _this.announceAriaLiveSelection({
15379
+ event: 'pop-value',
15380
+ context: {
15381
+ value: lastSelectedValue ? _this.getOptionLabel(lastSelectedValue) : ''
15382
+ }
15383
+ });
15384
+
15385
+ _this.onChange(newValue.length ? newValue : null, {
15386
+ action: 'pop-value',
15387
+ removedValue: lastSelectedValue
15388
+ });
15389
+ };
15390
+
15391
+ _this.getOptionLabel = function (data) {
15392
+ return _this.props.getOptionLabel(data);
15393
+ };
15394
+
15395
+ _this.getOptionValue = function (data) {
15396
+ return _this.props.getOptionValue(data);
15397
+ };
15398
+
15399
+ _this.getStyles = function (key, props) {
15400
+ var base = defaultStyles[key](props);
15401
+ base.boxSizing = 'border-box';
15402
+ var custom = _this.props.styles[key];
15403
+ return custom ? custom(base, props) : base;
15404
+ };
15405
+
15406
+ _this.getElementId = function (element) {
15407
+ return _this.instancePrefix + "-" + element;
15408
+ };
15409
+
15410
+ _this.getActiveDescendentId = function () {
15411
+ var menuIsOpen = _this.props.menuIsOpen;
15412
+ var _this$state = _this.state,
15413
+ menuOptions = _this$state.menuOptions,
15414
+ focusedOption = _this$state.focusedOption;
15415
+ if (!focusedOption || !menuIsOpen) return undefined;
15416
+ var index = menuOptions.focusable.indexOf(focusedOption);
15417
+ var option = menuOptions.render[index];
15418
+ return option && option.key;
15419
+ };
15420
+
15421
+ _this.announceAriaLiveSelection = function (_ref2) {
15422
+ var event = _ref2.event,
15423
+ context = _ref2.context;
15424
+
15425
+ _this.setState({
15426
+ ariaLiveSelection: valueEventAriaMessage(event, context)
15427
+ });
15428
+ };
15429
+
15430
+ _this.announceAriaLiveContext = function (_ref3) {
15431
+ var event = _ref3.event,
15432
+ context = _ref3.context;
15433
+
15434
+ _this.setState({
15435
+ ariaLiveContext: instructionsAriaMessage(event, _extends$4({}, context, {
15436
+ label: _this.props['aria-label']
15437
+ }))
15438
+ });
15439
+ };
15440
+
15441
+ _this.onMenuMouseDown = function (event) {
15442
+ if (event.button !== 0) {
15443
+ return;
15444
+ }
15445
+
15446
+ event.stopPropagation();
15447
+ event.preventDefault();
15448
+
15449
+ _this.focusInput();
15450
+ };
15451
+
15452
+ _this.onMenuMouseMove = function (event) {
15453
+ _this.blockOptionHover = false;
15454
+ };
15455
+
15456
+ _this.onControlMouseDown = function (event) {
15457
+ var openMenuOnClick = _this.props.openMenuOnClick;
15458
+
15459
+ if (!_this.state.isFocused) {
15460
+ if (openMenuOnClick) {
15461
+ _this.openAfterFocus = true;
15462
+ }
15463
+
15464
+ _this.focusInput();
15465
+ } else if (!_this.props.menuIsOpen) {
15466
+ if (openMenuOnClick) {
15467
+ _this.openMenu('first');
15468
+ }
15469
+ } else {
15470
+ if ( // $FlowFixMe
15471
+ event.target.tagName !== 'INPUT' && event.target.tagName !== 'TEXTAREA') {
15472
+ _this.onMenuClose();
15473
+ }
15474
+ }
15475
+
15476
+ if ( // $FlowFixMe
15477
+ event.target.tagName !== 'INPUT' && event.target.tagName !== 'TEXTAREA') {
15478
+ event.preventDefault();
15479
+ }
15480
+ };
15481
+
15482
+ _this.onDropdownIndicatorMouseDown = function (event) {
15483
+ // ignore mouse events that weren't triggered by the primary button
15484
+ if (event && event.type === 'mousedown' && event.button !== 0) {
15485
+ return;
15486
+ }
15487
+
15488
+ if (_this.props.isDisabled) return;
15489
+ var _this$props4 = _this.props,
15490
+ isMulti = _this$props4.isMulti,
15491
+ menuIsOpen = _this$props4.menuIsOpen;
15492
+
15493
+ _this.focusInput();
15494
+
15495
+ if (menuIsOpen) {
15496
+ _this.inputIsHiddenAfterUpdate = !isMulti;
15497
+
15498
+ _this.onMenuClose();
15499
+ } else {
15500
+ _this.openMenu('first');
15501
+ }
15502
+
15503
+ event.preventDefault();
15504
+ event.stopPropagation();
15505
+ };
15506
+
15507
+ _this.onClearIndicatorMouseDown = function (event) {
15508
+ // ignore mouse events that weren't triggered by the primary button
15509
+ if (event && event.type === 'mousedown' && event.button !== 0) {
15510
+ return;
15511
+ }
15512
+
15513
+ _this.clearValue();
15514
+
15515
+ event.stopPropagation();
15516
+ _this.openAfterFocus = false;
15517
+
15518
+ if (event.type === 'touchend') {
15519
+ _this.focusInput();
15520
+ } else {
15521
+ setTimeout(function () {
15522
+ return _this.focusInput();
15523
+ });
15524
+ }
15525
+ };
15526
+
15527
+ _this.onScroll = function (event) {
15528
+ if (typeof _this.props.closeMenuOnScroll === 'boolean') {
15529
+ if (event.target instanceof HTMLElement && Object(__WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["j"])(event.target)) {
15530
+ _this.props.onMenuClose();
15531
+ }
15532
+ } else if (typeof _this.props.closeMenuOnScroll === 'function') {
15533
+ if (_this.props.closeMenuOnScroll(event)) {
15534
+ _this.props.onMenuClose();
15535
+ }
15536
+ }
15537
+ };
15538
+
15539
+ _this.onCompositionStart = function () {
15540
+ _this.isComposing = true;
15541
+ };
15542
+
15543
+ _this.onCompositionEnd = function () {
15544
+ _this.isComposing = false;
15545
+ };
15546
+
15547
+ _this.onTouchStart = function (_ref4) {
15548
+ var touches = _ref4.touches;
15549
+ var touch = touches.item(0);
15550
+
15551
+ if (!touch) {
15552
+ return;
15553
+ }
15554
+
15555
+ _this.initialTouchX = touch.clientX;
15556
+ _this.initialTouchY = touch.clientY;
15557
+ _this.userIsDragging = false;
15558
+ };
15559
+
15560
+ _this.onTouchMove = function (_ref5) {
15561
+ var touches = _ref5.touches;
15562
+ var touch = touches.item(0);
15563
+
15564
+ if (!touch) {
15565
+ return;
15566
+ }
15567
+
15568
+ var deltaX = Math.abs(touch.clientX - _this.initialTouchX);
15569
+ var deltaY = Math.abs(touch.clientY - _this.initialTouchY);
15570
+ var moveThreshold = 5;
15571
+ _this.userIsDragging = deltaX > moveThreshold || deltaY > moveThreshold;
15572
+ };
15573
+
15574
+ _this.onTouchEnd = function (event) {
15575
+ if (_this.userIsDragging) return; // close the menu if the user taps outside
15576
+ // we're checking on event.target here instead of event.currentTarget, because we want to assert information
15577
+ // on events on child elements, not the document (which we've attached this handler to).
15578
+
15579
+ if (_this.controlRef && !_this.controlRef.contains(event.target) && _this.menuListRef && !_this.menuListRef.contains(event.target)) {
15580
+ _this.blurInput();
15581
+ } // reset move vars
15582
+
15583
+
15584
+ _this.initialTouchX = 0;
15585
+ _this.initialTouchY = 0;
15586
+ };
15587
+
15588
+ _this.onControlTouchEnd = function (event) {
15589
+ if (_this.userIsDragging) return;
15590
+
15591
+ _this.onControlMouseDown(event);
15592
+ };
15593
+
15594
+ _this.onClearIndicatorTouchEnd = function (event) {
15595
+ if (_this.userIsDragging) return;
15596
+
15597
+ _this.onClearIndicatorMouseDown(event);
15598
+ };
15599
+
15600
+ _this.onDropdownIndicatorTouchEnd = function (event) {
15601
+ if (_this.userIsDragging) return;
15602
+
15603
+ _this.onDropdownIndicatorMouseDown(event);
15604
+ };
15605
+
15606
+ _this.handleInputChange = function (event) {
15607
+ var inputValue = event.currentTarget.value;
15608
+ _this.inputIsHiddenAfterUpdate = false;
15609
+
15610
+ _this.onInputChange(inputValue, {
15611
+ action: 'input-change'
15612
+ });
15613
+
15614
+ _this.onMenuOpen();
15615
+ };
15616
+
15617
+ _this.onInputFocus = function (event) {
15618
+ var _this$props5 = _this.props,
15619
+ isSearchable = _this$props5.isSearchable,
15620
+ isMulti = _this$props5.isMulti;
15621
+
15622
+ if (_this.props.onFocus) {
15623
+ _this.props.onFocus(event);
15624
+ }
15625
+
15626
+ _this.inputIsHiddenAfterUpdate = false;
15627
+
15628
+ _this.announceAriaLiveContext({
15629
+ event: 'input',
15630
+ context: {
15631
+ isSearchable: isSearchable,
15632
+ isMulti: isMulti
15633
+ }
15634
+ });
15635
+
15636
+ _this.setState({
15637
+ isFocused: true
15638
+ });
15639
+
15640
+ if (_this.openAfterFocus || _this.props.openMenuOnFocus) {
15641
+ _this.openMenu('first');
15642
+ }
15643
+
15644
+ _this.openAfterFocus = false;
15645
+ };
15646
+
15647
+ _this.onInputBlur = function (event) {
15648
+ if (_this.menuListRef && _this.menuListRef.contains(document.activeElement)) {
15649
+ _this.inputRef.focus();
15650
+
15651
+ return;
15652
+ }
15653
+
15654
+ if (_this.props.onBlur) {
15655
+ _this.props.onBlur(event);
15656
+ }
15657
+
15658
+ _this.onInputChange('', {
15659
+ action: 'input-blur'
15660
+ });
15661
+
15662
+ _this.onMenuClose();
15663
+
15664
+ _this.setState({
15665
+ focusedValue: null,
15666
+ isFocused: false
15667
+ });
15668
+ };
15669
+
15670
+ _this.onOptionHover = function (focusedOption) {
15671
+ if (_this.blockOptionHover || _this.state.focusedOption === focusedOption) {
15672
+ return;
15673
+ }
15674
+
15675
+ _this.setState({
15676
+ focusedOption: focusedOption
15677
+ });
15678
+ };
15679
+
15680
+ _this.shouldHideSelectedOptions = function () {
15681
+ var _this$props6 = _this.props,
15682
+ hideSelectedOptions = _this$props6.hideSelectedOptions,
15683
+ isMulti = _this$props6.isMulti;
15684
+ if (hideSelectedOptions === undefined) return isMulti;
15685
+ return hideSelectedOptions;
15686
+ };
15687
+
15688
+ _this.onKeyDown = function (event) {
15689
+ var _this$props7 = _this.props,
15690
+ isMulti = _this$props7.isMulti,
15691
+ backspaceRemovesValue = _this$props7.backspaceRemovesValue,
15692
+ escapeClearsValue = _this$props7.escapeClearsValue,
15693
+ inputValue = _this$props7.inputValue,
15694
+ isClearable = _this$props7.isClearable,
15695
+ isDisabled = _this$props7.isDisabled,
15696
+ menuIsOpen = _this$props7.menuIsOpen,
15697
+ onKeyDown = _this$props7.onKeyDown,
15698
+ tabSelectsValue = _this$props7.tabSelectsValue,
15699
+ openMenuOnFocus = _this$props7.openMenuOnFocus;
15700
+ var _this$state2 = _this.state,
15701
+ focusedOption = _this$state2.focusedOption,
15702
+ focusedValue = _this$state2.focusedValue,
15703
+ selectValue = _this$state2.selectValue;
15704
+ if (isDisabled) return;
15705
+
15706
+ if (typeof onKeyDown === 'function') {
15707
+ onKeyDown(event);
15708
+
15709
+ if (event.defaultPrevented) {
15710
+ return;
15711
+ }
15712
+ } // Block option hover events when the user has just pressed a key
15713
+
15714
+
15715
+ _this.blockOptionHover = true;
15716
+
15717
+ switch (event.key) {
15718
+ case 'ArrowLeft':
15719
+ if (!isMulti || inputValue) return;
15720
+
15721
+ _this.focusValue('previous');
15722
+
15723
+ break;
15724
+
15725
+ case 'ArrowRight':
15726
+ if (!isMulti || inputValue) return;
15727
+
15728
+ _this.focusValue('next');
15729
+
15730
+ break;
15731
+
15732
+ case 'Delete':
15733
+ case 'Backspace':
15734
+ if (inputValue) return;
15735
+
15736
+ if (focusedValue) {
15737
+ _this.removeValue(focusedValue);
15738
+ } else {
15739
+ if (!backspaceRemovesValue) return;
15740
+
15741
+ if (isMulti) {
15742
+ _this.popValue();
15743
+ } else if (isClearable) {
15744
+ _this.clearValue();
15745
+ }
15746
+ }
15747
+
15748
+ break;
15749
+
15750
+ case 'Tab':
15751
+ if (_this.isComposing) return;
15752
+
15753
+ if (event.shiftKey || !menuIsOpen || !tabSelectsValue || !focusedOption || // don't capture the event if the menu opens on focus and the focused
15754
+ // option is already selected; it breaks the flow of navigation
15755
+ openMenuOnFocus && _this.isOptionSelected(focusedOption, selectValue)) {
15756
+ return;
15757
+ }
15758
+
15759
+ _this.selectOption(focusedOption);
15760
+
15761
+ break;
15762
+
15763
+ case 'Enter':
15764
+ if (event.keyCode === 229) {
15765
+ // ignore the keydown event from an Input Method Editor(IME)
15766
+ // ref. https://www.w3.org/TR/uievents/#determine-keydown-keyup-keyCode
15767
+ break;
15768
+ }
15769
+
15770
+ if (menuIsOpen) {
15771
+ if (!focusedOption) return;
15772
+ if (_this.isComposing) return;
15773
+
15774
+ _this.selectOption(focusedOption);
15775
+
15776
+ break;
15777
+ }
15778
+
15779
+ return;
15780
+
15781
+ case 'Escape':
15782
+ if (menuIsOpen) {
15783
+ _this.inputIsHiddenAfterUpdate = false;
15784
+
15785
+ _this.onInputChange('', {
15786
+ action: 'menu-close'
15787
+ });
15788
+
15789
+ _this.onMenuClose();
15790
+ } else if (isClearable && escapeClearsValue) {
15791
+ _this.clearValue();
15792
+ }
15793
+
15794
+ break;
15795
+
15796
+ case ' ':
15797
+ // space
15798
+ if (inputValue) {
15799
+ return;
15800
+ }
15801
+
15802
+ if (!menuIsOpen) {
15803
+ _this.openMenu('first');
15804
+
15805
+ break;
15806
+ }
15807
+
15808
+ if (!focusedOption) return;
15809
+
15810
+ _this.selectOption(focusedOption);
15811
+
15812
+ break;
15813
+
15814
+ case 'ArrowUp':
15815
+ if (menuIsOpen) {
15816
+ _this.focusOption('up');
15817
+ } else {
15818
+ _this.openMenu('last');
15819
+ }
15820
+
15821
+ break;
15822
+
15823
+ case 'ArrowDown':
15824
+ if (menuIsOpen) {
15825
+ _this.focusOption('down');
15826
+ } else {
15827
+ _this.openMenu('first');
15828
+ }
15829
+
15830
+ break;
15831
+
15832
+ case 'PageUp':
15833
+ if (!menuIsOpen) return;
15834
+
15835
+ _this.focusOption('pageup');
15836
+
15837
+ break;
15838
+
15839
+ case 'PageDown':
15840
+ if (!menuIsOpen) return;
15841
+
15842
+ _this.focusOption('pagedown');
15843
+
15844
+ break;
15845
+
15846
+ case 'Home':
15847
+ if (!menuIsOpen) return;
15848
+
15849
+ _this.focusOption('first');
15850
+
15851
+ break;
15852
+
15853
+ case 'End':
15854
+ if (!menuIsOpen) return;
15855
+
15856
+ _this.focusOption('last');
15857
+
15858
+ break;
15859
+
15860
+ default:
15861
+ return;
15862
+ }
15863
+
15864
+ event.preventDefault();
15865
+ };
15866
+
15867
+ _this.buildMenuOptions = function (props, selectValue) {
15868
+ var _props$inputValue = props.inputValue,
15869
+ inputValue = _props$inputValue === void 0 ? '' : _props$inputValue,
15870
+ options = props.options;
15871
+
15872
+ var toOption = function toOption(option, id) {
15873
+ var isDisabled = _this.isOptionDisabled(option, selectValue);
15874
+
15875
+ var isSelected = _this.isOptionSelected(option, selectValue);
15876
+
15877
+ var label = _this.getOptionLabel(option);
15878
+
15879
+ var value = _this.getOptionValue(option);
15880
+
15881
+ if (_this.shouldHideSelectedOptions() && isSelected || !_this.filterOption({
15882
+ label: label,
15883
+ value: value,
15884
+ data: option
15885
+ }, inputValue)) {
15886
+ return;
15887
+ }
15888
+
15889
+ var onHover = isDisabled ? undefined : function () {
15890
+ return _this.onOptionHover(option);
15891
+ };
15892
+ var onSelect = isDisabled ? undefined : function () {
15893
+ return _this.selectOption(option);
15894
+ };
15895
+ var optionId = _this.getElementId('option') + "-" + id;
15896
+ return {
15897
+ innerProps: {
15898
+ id: optionId,
15899
+ onClick: onSelect,
15900
+ onMouseMove: onHover,
15901
+ onMouseOver: onHover,
15902
+ tabIndex: -1
15903
+ },
15904
+ data: option,
15905
+ isDisabled: isDisabled,
15906
+ isSelected: isSelected,
15907
+ key: optionId,
15908
+ label: label,
15909
+ type: 'option',
15910
+ value: value
15911
+ };
15912
+ };
15913
+
15914
+ return options.reduce(function (acc, item, itemIndex) {
15915
+ if (item.options) {
15916
+ // TODO needs a tidier implementation
15917
+ if (!_this.hasGroups) _this.hasGroups = true;
15918
+ var items = item.options;
15919
+ var children = items.map(function (child, i) {
15920
+ var option = toOption(child, itemIndex + "-" + i);
15921
+ if (option) acc.focusable.push(child);
15922
+ return option;
15923
+ }).filter(Boolean);
15924
+
15925
+ if (children.length) {
15926
+ var groupId = _this.getElementId('group') + "-" + itemIndex;
15927
+ acc.render.push({
15928
+ type: 'group',
15929
+ key: groupId,
15930
+ data: item,
15931
+ options: children
15932
+ });
15933
+ }
15934
+ } else {
15935
+ var option = toOption(item, "" + itemIndex);
15936
+
15937
+ if (option) {
15938
+ acc.render.push(option);
15939
+ acc.focusable.push(item);
15940
+ }
15941
+ }
15942
+
15943
+ return acc;
15944
+ }, {
15945
+ render: [],
15946
+ focusable: []
15947
+ });
15948
+ };
15949
+
15950
+ var _value = _props.value;
15951
+ _this.cacheComponents = Object(__WEBPACK_IMPORTED_MODULE_1_memoize_one__["a" /* default */])(_this.cacheComponents, __WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["y" /* x */]).bind(_assertThisInitialized(_assertThisInitialized(_this)));
15952
+
15953
+ _this.cacheComponents(_props.components);
15954
+
15955
+ _this.instancePrefix = 'react-select-' + (_this.props.instanceId || ++instanceId);
15956
+
15957
+ var _selectValue = Object(__WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["e"])(_value);
15958
+
15959
+ _this.buildMenuOptions = Object(__WEBPACK_IMPORTED_MODULE_1_memoize_one__["a" /* default */])(_this.buildMenuOptions, function (newArgs, lastArgs) {
15960
+ var _ref6 = newArgs,
15961
+ newProps = _ref6[0],
15962
+ newSelectValue = _ref6[1];
15963
+ var _ref7 = lastArgs,
15964
+ lastProps = _ref7[0],
15965
+ lastSelectValue = _ref7[1];
15966
+ return Object(__WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["y" /* x */])(newSelectValue, lastSelectValue) && Object(__WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["y" /* x */])(newProps.inputValue, lastProps.inputValue) && Object(__WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["y" /* x */])(newProps.options, lastProps.options);
15967
+ }).bind(_assertThisInitialized(_assertThisInitialized(_this)));
15968
+
15969
+ var _menuOptions = _props.menuIsOpen ? _this.buildMenuOptions(_props, _selectValue) : {
15970
+ render: [],
15971
+ focusable: []
15972
+ };
15973
+
15974
+ _this.state.menuOptions = _menuOptions;
15975
+ _this.state.selectValue = _selectValue;
15976
+ return _this;
15977
+ }
15978
+
15979
+ var _proto = Select.prototype;
15980
+
15981
+ _proto.componentDidMount = function componentDidMount() {
15982
+ this.startListeningComposition();
15983
+ this.startListeningToTouch();
15984
+
15985
+ if (this.props.closeMenuOnScroll && document && document.addEventListener) {
15986
+ // Listen to all scroll events, and filter them out inside of 'onScroll'
15987
+ document.addEventListener('scroll', this.onScroll, true);
15988
+ }
15989
+
15990
+ if (this.props.autoFocus) {
15991
+ this.focusInput();
15992
+ }
15993
+ };
15994
+
15995
+ _proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) {
15996
+ var _this$props8 = this.props,
15997
+ options = _this$props8.options,
15998
+ value = _this$props8.value,
15999
+ menuIsOpen = _this$props8.menuIsOpen,
16000
+ inputValue = _this$props8.inputValue; // re-cache custom components
16001
+
16002
+ this.cacheComponents(nextProps.components); // rebuild the menu options
16003
+
16004
+ if (nextProps.value !== value || nextProps.options !== options || nextProps.menuIsOpen !== menuIsOpen || nextProps.inputValue !== inputValue) {
16005
+ var selectValue = Object(__WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["e"])(nextProps.value);
16006
+ var menuOptions = nextProps.menuIsOpen ? this.buildMenuOptions(nextProps, selectValue) : {
16007
+ render: [],
16008
+ focusable: []
16009
+ };
16010
+ var focusedValue = this.getNextFocusedValue(selectValue);
16011
+ var focusedOption = this.getNextFocusedOption(menuOptions.focusable);
16012
+ this.setState({
16013
+ menuOptions: menuOptions,
16014
+ selectValue: selectValue,
16015
+ focusedOption: focusedOption,
16016
+ focusedValue: focusedValue
16017
+ });
16018
+ } // some updates should toggle the state of the input visibility
16019
+
16020
+
16021
+ if (this.inputIsHiddenAfterUpdate != null) {
16022
+ this.setState({
16023
+ inputIsHidden: this.inputIsHiddenAfterUpdate
16024
+ });
16025
+ delete this.inputIsHiddenAfterUpdate;
16026
+ }
16027
+ };
16028
+
16029
+ _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
16030
+ var _this$props9 = this.props,
16031
+ isDisabled = _this$props9.isDisabled,
16032
+ menuIsOpen = _this$props9.menuIsOpen;
16033
+ var isFocused = this.state.isFocused;
16034
+
16035
+ if ( // ensure focus is restored correctly when the control becomes enabled
16036
+ isFocused && !isDisabled && prevProps.isDisabled || // ensure focus is on the Input when the menu opens
16037
+ isFocused && menuIsOpen && !prevProps.menuIsOpen) {
16038
+ this.focusInput();
16039
+ } // scroll the focused option into view if necessary
16040
+
16041
+
16042
+ if (this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate) {
16043
+ Object(__WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["f"])(this.menuListRef, this.focusedOptionRef);
16044
+ this.scrollToFocusedOptionOnUpdate = false;
16045
+ }
16046
+ };
16047
+
16048
+ _proto.componentWillUnmount = function componentWillUnmount() {
16049
+ this.stopListeningComposition();
16050
+ this.stopListeningToTouch();
16051
+ document.removeEventListener('scroll', this.onScroll, true);
16052
+ };
16053
+
16054
+ // ==============================
16055
+ // Consumer Handlers
16056
+ // ==============================
16057
+ _proto.onMenuOpen = function onMenuOpen() {
16058
+ this.props.onMenuOpen();
16059
+ };
16060
+
16061
+ _proto.onMenuClose = function onMenuClose() {
16062
+ var _this$props10 = this.props,
16063
+ isSearchable = _this$props10.isSearchable,
16064
+ isMulti = _this$props10.isMulti;
16065
+ this.announceAriaLiveContext({
16066
+ event: 'input',
16067
+ context: {
16068
+ isSearchable: isSearchable,
16069
+ isMulti: isMulti
16070
+ }
16071
+ });
16072
+ this.onInputChange('', {
16073
+ action: 'menu-close'
16074
+ });
16075
+ this.props.onMenuClose();
16076
+ };
16077
+
16078
+ _proto.onInputChange = function onInputChange(newValue, actionMeta) {
16079
+ this.props.onInputChange(newValue, actionMeta);
16080
+ } // ==============================
16081
+ // Methods
16082
+ // ==============================
16083
+ ;
16084
+
16085
+ _proto.focusInput = function focusInput() {
16086
+ if (!this.inputRef) return;
16087
+ this.inputRef.focus();
16088
+ };
16089
+
16090
+ _proto.blurInput = function blurInput() {
16091
+ if (!this.inputRef) return;
16092
+ this.inputRef.blur();
16093
+ } // aliased for consumers
16094
+ ;
16095
+
16096
+ _proto.openMenu = function openMenu(focusOption) {
16097
+ var _this2 = this;
16098
+
16099
+ var _this$state3 = this.state,
16100
+ selectValue = _this$state3.selectValue,
16101
+ isFocused = _this$state3.isFocused;
16102
+ var menuOptions = this.buildMenuOptions(this.props, selectValue);
16103
+ var isMulti = this.props.isMulti;
16104
+ var openAtIndex = focusOption === 'first' ? 0 : menuOptions.focusable.length - 1;
16105
+
16106
+ if (!isMulti) {
16107
+ var selectedIndex = menuOptions.focusable.indexOf(selectValue[0]);
16108
+
16109
+ if (selectedIndex > -1) {
16110
+ openAtIndex = selectedIndex;
16111
+ }
16112
+ } // only scroll if the menu isn't already open
16113
+
16114
+
16115
+ this.scrollToFocusedOptionOnUpdate = !(isFocused && this.menuListRef);
16116
+ this.inputIsHiddenAfterUpdate = false;
16117
+ this.setState({
16118
+ menuOptions: menuOptions,
16119
+ focusedValue: null,
16120
+ focusedOption: menuOptions.focusable[openAtIndex]
16121
+ }, function () {
16122
+ _this2.onMenuOpen();
16123
+
16124
+ _this2.announceAriaLiveContext({
16125
+ event: 'menu'
16126
+ });
16127
+ });
16128
+ };
16129
+
16130
+ _proto.focusValue = function focusValue(direction) {
16131
+ var _this$props11 = this.props,
16132
+ isMulti = _this$props11.isMulti,
16133
+ isSearchable = _this$props11.isSearchable;
16134
+ var _this$state4 = this.state,
16135
+ selectValue = _this$state4.selectValue,
16136
+ focusedValue = _this$state4.focusedValue; // Only multiselects support value focusing
16137
+
16138
+ if (!isMulti) return;
16139
+ this.setState({
16140
+ focusedOption: null
16141
+ });
16142
+ var focusedIndex = selectValue.indexOf(focusedValue);
16143
+
16144
+ if (!focusedValue) {
16145
+ focusedIndex = -1;
16146
+ this.announceAriaLiveContext({
16147
+ event: 'value'
16148
+ });
16149
+ }
16150
+
16151
+ var lastIndex = selectValue.length - 1;
16152
+ var nextFocus = -1;
16153
+ if (!selectValue.length) return;
16154
+
16155
+ switch (direction) {
16156
+ case 'previous':
16157
+ if (focusedIndex === 0) {
16158
+ // don't cycle from the start to the end
16159
+ nextFocus = 0;
16160
+ } else if (focusedIndex === -1) {
16161
+ // if nothing is focused, focus the last value first
16162
+ nextFocus = lastIndex;
16163
+ } else {
16164
+ nextFocus = focusedIndex - 1;
16165
+ }
16166
+
16167
+ break;
16168
+
16169
+ case 'next':
16170
+ if (focusedIndex > -1 && focusedIndex < lastIndex) {
16171
+ nextFocus = focusedIndex + 1;
16172
+ }
16173
+
16174
+ break;
16175
+ }
16176
+
16177
+ if (nextFocus === -1) {
16178
+ this.announceAriaLiveContext({
16179
+ event: 'input',
16180
+ context: {
16181
+ isSearchable: isSearchable,
16182
+ isMulti: isMulti
16183
+ }
16184
+ });
16185
+ }
16186
+
16187
+ this.setState({
16188
+ inputIsHidden: nextFocus !== -1,
16189
+ focusedValue: selectValue[nextFocus]
16190
+ });
16191
+ };
16192
+
16193
+ _proto.focusOption = function focusOption(direction) {
16194
+ if (direction === void 0) {
16195
+ direction = 'first';
16196
+ }
16197
+
16198
+ var pageSize = this.props.pageSize;
16199
+ var _this$state5 = this.state,
16200
+ focusedOption = _this$state5.focusedOption,
16201
+ menuOptions = _this$state5.menuOptions;
16202
+ var options = menuOptions.focusable;
16203
+ if (!options.length) return;
16204
+ var nextFocus = 0; // handles 'first'
16205
+
16206
+ var focusedIndex = options.indexOf(focusedOption);
16207
+
16208
+ if (!focusedOption) {
16209
+ focusedIndex = -1;
16210
+ this.announceAriaLiveContext({
16211
+ event: 'menu'
16212
+ });
16213
+ }
16214
+
16215
+ if (direction === 'up') {
16216
+ nextFocus = focusedIndex > 0 ? focusedIndex - 1 : options.length - 1;
16217
+ } else if (direction === 'down') {
16218
+ nextFocus = (focusedIndex + 1) % options.length;
16219
+ } else if (direction === 'pageup') {
16220
+ nextFocus = focusedIndex - pageSize;
16221
+ if (nextFocus < 0) nextFocus = 0;
16222
+ } else if (direction === 'pagedown') {
16223
+ nextFocus = focusedIndex + pageSize;
16224
+ if (nextFocus > options.length - 1) nextFocus = options.length - 1;
16225
+ } else if (direction === 'last') {
16226
+ nextFocus = options.length - 1;
16227
+ }
16228
+
16229
+ this.scrollToFocusedOptionOnUpdate = true;
16230
+ this.setState({
16231
+ focusedOption: options[nextFocus],
16232
+ focusedValue: null
16233
+ });
16234
+ this.announceAriaLiveContext({
16235
+ event: 'menu',
16236
+ context: {
16237
+ isDisabled: isOptionDisabled(options[nextFocus])
16238
+ }
16239
+ });
16240
+ };
16241
+
16242
+ // ==============================
16243
+ // Getters
16244
+ // ==============================
16245
+ _proto.getTheme = function getTheme() {
16246
+ // Use the default theme if there are no customizations.
16247
+ if (!this.props.theme) {
16248
+ return defaultTheme;
16249
+ } // If the theme prop is a function, assume the function
16250
+ // knows how to merge the passed-in default theme with
16251
+ // its own modifications.
16252
+
16253
+
16254
+ if (typeof this.props.theme === 'function') {
16255
+ return this.props.theme(defaultTheme);
16256
+ } // Otherwise, if a plain theme object was passed in,
16257
+ // overlay it with the default theme.
16258
+
16259
+
16260
+ return _extends$4({}, defaultTheme, this.props.theme);
16261
+ };
16262
+
16263
+ _proto.getCommonProps = function getCommonProps() {
16264
+ var clearValue = this.clearValue,
16265
+ getStyles = this.getStyles,
16266
+ setValue = this.setValue,
16267
+ selectOption = this.selectOption,
16268
+ props = this.props;
16269
+ var classNamePrefix = props.classNamePrefix,
16270
+ isMulti = props.isMulti,
16271
+ isRtl = props.isRtl,
16272
+ options = props.options;
16273
+ var selectValue = this.state.selectValue;
16274
+ var hasValue = this.hasValue();
16275
+
16276
+ var getValue = function getValue() {
16277
+ return selectValue;
16278
+ };
16279
+
16280
+ var cx = __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["h"].bind(null, classNamePrefix);
16281
+ return {
16282
+ cx: cx,
16283
+ clearValue: clearValue,
16284
+ getStyles: getStyles,
16285
+ getValue: getValue,
16286
+ hasValue: hasValue,
16287
+ isMulti: isMulti,
16288
+ isRtl: isRtl,
16289
+ options: options,
16290
+ selectOption: selectOption,
16291
+ setValue: setValue,
16292
+ selectProps: props,
16293
+ theme: this.getTheme()
16294
+ };
16295
+ };
16296
+
16297
+ _proto.getNextFocusedValue = function getNextFocusedValue(nextSelectValue) {
16298
+ if (this.clearFocusValueOnUpdate) {
16299
+ this.clearFocusValueOnUpdate = false;
16300
+ return null;
16301
+ }
16302
+
16303
+ var _this$state6 = this.state,
16304
+ focusedValue = _this$state6.focusedValue,
16305
+ lastSelectValue = _this$state6.selectValue;
16306
+ var lastFocusedIndex = lastSelectValue.indexOf(focusedValue);
16307
+
16308
+ if (lastFocusedIndex > -1) {
16309
+ var nextFocusedIndex = nextSelectValue.indexOf(focusedValue);
16310
+
16311
+ if (nextFocusedIndex > -1) {
16312
+ // the focused value is still in the selectValue, return it
16313
+ return focusedValue;
16314
+ } else if (lastFocusedIndex < nextSelectValue.length) {
16315
+ // the focusedValue is not present in the next selectValue array by
16316
+ // reference, so return the new value at the same index
16317
+ return nextSelectValue[lastFocusedIndex];
16318
+ }
16319
+ }
16320
+
16321
+ return null;
16322
+ };
16323
+
16324
+ _proto.getNextFocusedOption = function getNextFocusedOption(options) {
16325
+ var lastFocusedOption = this.state.focusedOption;
16326
+ return lastFocusedOption && options.indexOf(lastFocusedOption) > -1 ? lastFocusedOption : options[0];
16327
+ };
16328
+
16329
+ _proto.hasValue = function hasValue() {
16330
+ var selectValue = this.state.selectValue;
16331
+ return selectValue.length > 0;
16332
+ };
16333
+
16334
+ _proto.hasOptions = function hasOptions() {
16335
+ return !!this.state.menuOptions.render.length;
16336
+ };
16337
+
16338
+ _proto.countOptions = function countOptions() {
16339
+ return this.state.menuOptions.focusable.length;
16340
+ };
16341
+
16342
+ _proto.isClearable = function isClearable() {
16343
+ var _this$props12 = this.props,
16344
+ isClearable = _this$props12.isClearable,
16345
+ isMulti = _this$props12.isMulti; // single select, by default, IS NOT clearable
16346
+ // multi select, by default, IS clearable
16347
+
16348
+ if (isClearable === undefined) return isMulti;
16349
+ return isClearable;
16350
+ };
16351
+
16352
+ _proto.isOptionDisabled = function isOptionDisabled(option, selectValue) {
16353
+ return typeof this.props.isOptionDisabled === 'function' ? this.props.isOptionDisabled(option, selectValue) : false;
16354
+ };
16355
+
16356
+ _proto.isOptionSelected = function isOptionSelected(option, selectValue) {
16357
+ var _this3 = this;
16358
+
16359
+ if (selectValue.indexOf(option) > -1) return true;
16360
+
16361
+ if (typeof this.props.isOptionSelected === 'function') {
16362
+ return this.props.isOptionSelected(option, selectValue);
16363
+ }
16364
+
16365
+ var candidate = this.getOptionValue(option);
16366
+ return selectValue.some(function (i) {
16367
+ return _this3.getOptionValue(i) === candidate;
16368
+ });
16369
+ };
16370
+
16371
+ _proto.filterOption = function filterOption(option, inputValue) {
16372
+ return this.props.filterOption ? this.props.filterOption(option, inputValue) : true;
16373
+ };
16374
+
16375
+ _proto.formatOptionLabel = function formatOptionLabel(data, context) {
16376
+ if (typeof this.props.formatOptionLabel === 'function') {
16377
+ var inputValue = this.props.inputValue;
16378
+ var selectValue = this.state.selectValue;
16379
+ return this.props.formatOptionLabel(data, {
16380
+ context: context,
16381
+ inputValue: inputValue,
16382
+ selectValue: selectValue
16383
+ });
16384
+ } else {
16385
+ return this.getOptionLabel(data);
16386
+ }
16387
+ };
16388
+
16389
+ _proto.formatGroupLabel = function formatGroupLabel(data) {
16390
+ return this.props.formatGroupLabel(data);
16391
+ } // ==============================
16392
+ // Mouse Handlers
16393
+ // ==============================
16394
+ ;
16395
+
16396
+ // ==============================
16397
+ // Composition Handlers
16398
+ // ==============================
16399
+ _proto.startListeningComposition = function startListeningComposition() {
16400
+ if (document && document.addEventListener) {
16401
+ document.addEventListener('compositionstart', this.onCompositionStart, false);
16402
+ document.addEventListener('compositionend', this.onCompositionEnd, false);
16403
+ }
16404
+ };
16405
+
16406
+ _proto.stopListeningComposition = function stopListeningComposition() {
16407
+ if (document && document.removeEventListener) {
16408
+ document.removeEventListener('compositionstart', this.onCompositionStart);
16409
+ document.removeEventListener('compositionend', this.onCompositionEnd);
16410
+ }
16411
+ };
16412
+
16413
+ // ==============================
16414
+ // Touch Handlers
16415
+ // ==============================
16416
+ _proto.startListeningToTouch = function startListeningToTouch() {
16417
+ if (document && document.addEventListener) {
16418
+ document.addEventListener('touchstart', this.onTouchStart, false);
16419
+ document.addEventListener('touchmove', this.onTouchMove, false);
16420
+ document.addEventListener('touchend', this.onTouchEnd, false);
16421
+ }
16422
+ };
16423
+
16424
+ _proto.stopListeningToTouch = function stopListeningToTouch() {
16425
+ if (document && document.removeEventListener) {
16426
+ document.removeEventListener('touchstart', this.onTouchStart);
16427
+ document.removeEventListener('touchmove', this.onTouchMove);
16428
+ document.removeEventListener('touchend', this.onTouchEnd);
16429
+ }
16430
+ };
16431
+
16432
+ // ==============================
16433
+ // Renderers
16434
+ // ==============================
16435
+ _proto.constructAriaLiveMessage = function constructAriaLiveMessage() {
16436
+ var _this$state7 = this.state,
16437
+ ariaLiveContext = _this$state7.ariaLiveContext,
16438
+ selectValue = _this$state7.selectValue,
16439
+ focusedValue = _this$state7.focusedValue,
16440
+ focusedOption = _this$state7.focusedOption;
16441
+ var _this$props13 = this.props,
16442
+ options = _this$props13.options,
16443
+ menuIsOpen = _this$props13.menuIsOpen,
16444
+ inputValue = _this$props13.inputValue,
16445
+ screenReaderStatus = _this$props13.screenReaderStatus; // An aria live message representing the currently focused value in the select.
16446
+
16447
+ var focusedValueMsg = focusedValue ? valueFocusAriaMessage({
16448
+ focusedValue: focusedValue,
16449
+ getOptionLabel: this.getOptionLabel,
16450
+ selectValue: selectValue
16451
+ }) : ''; // An aria live message representing the currently focused option in the select.
16452
+
16453
+ var focusedOptionMsg = focusedOption && menuIsOpen ? optionFocusAriaMessage({
16454
+ focusedOption: focusedOption,
16455
+ getOptionLabel: this.getOptionLabel,
16456
+ options: options
16457
+ }) : ''; // An aria live message representing the set of focusable results and current searchterm/inputvalue.
16458
+
16459
+ var resultsMsg = resultsAriaMessage({
16460
+ inputValue: inputValue,
16461
+ screenReaderMessage: screenReaderStatus({
16462
+ count: this.countOptions()
16463
+ })
16464
+ });
16465
+ return focusedValueMsg + " " + focusedOptionMsg + " " + resultsMsg + " " + ariaLiveContext;
16466
+ };
16467
+
16468
+ _proto.renderInput = function renderInput() {
16469
+ var _this$props14 = this.props,
16470
+ isDisabled = _this$props14.isDisabled,
16471
+ isSearchable = _this$props14.isSearchable,
16472
+ inputId = _this$props14.inputId,
16473
+ inputValue = _this$props14.inputValue,
16474
+ tabIndex = _this$props14.tabIndex;
16475
+ var Input = this.components.Input;
16476
+ var inputIsHidden = this.state.inputIsHidden;
16477
+ var id = inputId || this.getElementId('input'); // aria attributes makes the JSX "noisy", separated for clarity
16478
+
16479
+ var ariaAttributes = {
16480
+ 'aria-autocomplete': 'list',
16481
+ 'aria-label': this.props['aria-label'],
16482
+ 'aria-labelledby': this.props['aria-labelledby']
16483
+ };
16484
+
16485
+ if (!isSearchable) {
16486
+ // use a dummy input to maintain focus/blur functionality
16487
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(DummyInput, _extends$4({
16488
+ id: id,
16489
+ innerRef: this.getInputRef,
16490
+ onBlur: this.onInputBlur,
16491
+ onChange: __WEBPACK_IMPORTED_MODULE_4__utils_06b0d5a4_browser_esm_js__["k" /* n */],
16492
+ onFocus: this.onInputFocus,
16493
+ readOnly: true,
16494
+ disabled: isDisabled,
16495
+ tabIndex: tabIndex,
16496
+ value: ""
16497
+ }, ariaAttributes));
16498
+ }
16499
+
16500
+ var _this$commonProps = this.commonProps,
16501
+ cx = _this$commonProps.cx,
16502
+ theme = _this$commonProps.theme,
16503
+ selectProps = _this$commonProps.selectProps;
16504
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Input, _extends$4({
16505
+ autoCapitalize: "none",
16506
+ autoComplete: "off",
16507
+ autoCorrect: "off",
16508
+ cx: cx,
16509
+ getStyles: this.getStyles,
16510
+ id: id,
16511
+ innerRef: this.getInputRef,
16512
+ isDisabled: isDisabled,
16513
+ isHidden: inputIsHidden,
16514
+ onBlur: this.onInputBlur,
16515
+ onChange: this.handleInputChange,
16516
+ onFocus: this.onInputFocus,
16517
+ selectProps: selectProps,
16518
+ spellCheck: "false",
16519
+ tabIndex: tabIndex,
16520
+ theme: theme,
16521
+ type: "text",
16522
+ value: inputValue
16523
+ }, ariaAttributes));
16524
+ };
16525
+
16526
+ _proto.renderPlaceholderOrValue = function renderPlaceholderOrValue() {
16527
+ var _this4 = this;
16528
+
16529
+ var _this$components = this.components,
16530
+ MultiValue = _this$components.MultiValue,
16531
+ MultiValueContainer = _this$components.MultiValueContainer,
16532
+ MultiValueLabel = _this$components.MultiValueLabel,
16533
+ MultiValueRemove = _this$components.MultiValueRemove,
16534
+ SingleValue = _this$components.SingleValue,
16535
+ Placeholder = _this$components.Placeholder;
16536
+ var commonProps = this.commonProps;
16537
+ var _this$props15 = this.props,
16538
+ controlShouldRenderValue = _this$props15.controlShouldRenderValue,
16539
+ isDisabled = _this$props15.isDisabled,
16540
+ isMulti = _this$props15.isMulti,
16541
+ inputValue = _this$props15.inputValue,
16542
+ placeholder = _this$props15.placeholder;
16543
+ var _this$state8 = this.state,
16544
+ selectValue = _this$state8.selectValue,
16545
+ focusedValue = _this$state8.focusedValue,
16546
+ isFocused = _this$state8.isFocused;
16547
+
16548
+ if (!this.hasValue() || !controlShouldRenderValue) {
16549
+ return inputValue ? null : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Placeholder, _extends$4({}, commonProps, {
16550
+ key: "placeholder",
16551
+ isDisabled: isDisabled,
16552
+ isFocused: isFocused
16553
+ }), placeholder);
16554
+ }
16555
+
16556
+ if (isMulti) {
16557
+ var selectValues = selectValue.map(function (opt, index) {
16558
+ var isOptionFocused = opt === focusedValue;
16559
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(MultiValue, _extends$4({}, commonProps, {
16560
+ components: {
16561
+ Container: MultiValueContainer,
16562
+ Label: MultiValueLabel,
16563
+ Remove: MultiValueRemove
16564
+ },
16565
+ isFocused: isOptionFocused,
16566
+ isDisabled: isDisabled,
16567
+ key: _this4.getOptionValue(opt),
16568
+ index: index,
16569
+ removeProps: {
16570
+ onClick: function onClick() {
16571
+ return _this4.removeValue(opt);
16572
+ },
16573
+ onTouchEnd: function onTouchEnd() {
16574
+ return _this4.removeValue(opt);
16575
+ },
16576
+ onMouseDown: function onMouseDown(e) {
16577
+ e.preventDefault();
16578
+ e.stopPropagation();
16579
+ }
16580
+ },
16581
+ data: opt
16582
+ }), _this4.formatOptionLabel(opt, 'value'));
16583
+ });
16584
+ return selectValues;
16585
+ }
16586
+
16587
+ if (inputValue) {
16588
+ return null;
16589
+ }
16590
+
16591
+ var singleValue = selectValue[0];
16592
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(SingleValue, _extends$4({}, commonProps, {
16593
+ data: singleValue,
16594
+ isDisabled: isDisabled
16595
+ }), this.formatOptionLabel(singleValue, 'value'));
16596
+ };
16597
+
16598
+ _proto.renderClearIndicator = function renderClearIndicator() {
16599
+ var ClearIndicator = this.components.ClearIndicator;
16600
+ var commonProps = this.commonProps;
16601
+ var _this$props16 = this.props,
16602
+ isDisabled = _this$props16.isDisabled,
16603
+ isLoading = _this$props16.isLoading;
16604
+ var isFocused = this.state.isFocused;
16605
+
16606
+ if (!this.isClearable() || !ClearIndicator || isDisabled || !this.hasValue() || isLoading) {
16607
+ return null;
16608
+ }
16609
+
16610
+ var innerProps = {
16611
+ onMouseDown: this.onClearIndicatorMouseDown,
16612
+ onTouchEnd: this.onClearIndicatorTouchEnd,
16613
+ 'aria-hidden': 'true'
16614
+ };
16615
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ClearIndicator, _extends$4({}, commonProps, {
16616
+ innerProps: innerProps,
16617
+ isFocused: isFocused
16618
+ }));
16619
+ };
16620
+
16621
+ _proto.renderLoadingIndicator = function renderLoadingIndicator() {
16622
+ var LoadingIndicator = this.components.LoadingIndicator;
16623
+ var commonProps = this.commonProps;
16624
+ var _this$props17 = this.props,
16625
+ isDisabled = _this$props17.isDisabled,
16626
+ isLoading = _this$props17.isLoading;
16627
+ var isFocused = this.state.isFocused;
16628
+ if (!LoadingIndicator || !isLoading) return null;
16629
+ var innerProps = {
16630
+ 'aria-hidden': 'true'
16631
+ };
16632
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(LoadingIndicator, _extends$4({}, commonProps, {
16633
+ innerProps: innerProps,
16634
+ isDisabled: isDisabled,
16635
+ isFocused: isFocused
16636
+ }));
16637
+ };
16638
+
16639
+ _proto.renderIndicatorSeparator = function renderIndicatorSeparator() {
16640
+ var _this$components2 = this.components,
16641
+ DropdownIndicator = _this$components2.DropdownIndicator,
16642
+ IndicatorSeparator = _this$components2.IndicatorSeparator; // separator doesn't make sense without the dropdown indicator
16643
+
16644
+ if (!DropdownIndicator || !IndicatorSeparator) return null;
16645
+ var commonProps = this.commonProps;
16646
+ var isDisabled = this.props.isDisabled;
16647
+ var isFocused = this.state.isFocused;
16648
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(IndicatorSeparator, _extends$4({}, commonProps, {
16649
+ isDisabled: isDisabled,
16650
+ isFocused: isFocused
16651
+ }));
16652
+ };
16653
+
16654
+ _proto.renderDropdownIndicator = function renderDropdownIndicator() {
16655
+ var DropdownIndicator = this.components.DropdownIndicator;
16656
+ if (!DropdownIndicator) return null;
16657
+ var commonProps = this.commonProps;
16658
+ var isDisabled = this.props.isDisabled;
16659
+ var isFocused = this.state.isFocused;
16660
+ var innerProps = {
16661
+ onMouseDown: this.onDropdownIndicatorMouseDown,
16662
+ onTouchEnd: this.onDropdownIndicatorTouchEnd,
16663
+ 'aria-hidden': 'true'
16664
+ };
16665
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(DropdownIndicator, _extends$4({}, commonProps, {
16666
+ innerProps: innerProps,
16667
+ isDisabled: isDisabled,
16668
+ isFocused: isFocused
16669
+ }));
16670
+ };
16671
+
16672
+ _proto.renderMenu = function renderMenu() {
16673
+ var _this5 = this;
16674
+
16675
+ var _this$components3 = this.components,
16676
+ Group = _this$components3.Group,
16677
+ GroupHeading = _this$components3.GroupHeading,
16678
+ Menu = _this$components3.Menu,
16679
+ MenuList = _this$components3.MenuList,
16680
+ MenuPortal = _this$components3.MenuPortal,
16681
+ LoadingMessage = _this$components3.LoadingMessage,
16682
+ NoOptionsMessage = _this$components3.NoOptionsMessage,
16683
+ Option = _this$components3.Option;
16684
+ var commonProps = this.commonProps;
16685
+ var _this$state9 = this.state,
16686
+ focusedOption = _this$state9.focusedOption,
16687
+ menuOptions = _this$state9.menuOptions;
16688
+ var _this$props18 = this.props,
16689
+ captureMenuScroll = _this$props18.captureMenuScroll,
16690
+ inputValue = _this$props18.inputValue,
16691
+ isLoading = _this$props18.isLoading,
16692
+ loadingMessage = _this$props18.loadingMessage,
16693
+ minMenuHeight = _this$props18.minMenuHeight,
16694
+ maxMenuHeight = _this$props18.maxMenuHeight,
16695
+ menuIsOpen = _this$props18.menuIsOpen,
16696
+ menuPlacement = _this$props18.menuPlacement,
16697
+ menuPosition = _this$props18.menuPosition,
16698
+ menuPortalTarget = _this$props18.menuPortalTarget,
16699
+ menuShouldBlockScroll = _this$props18.menuShouldBlockScroll,
16700
+ menuShouldScrollIntoView = _this$props18.menuShouldScrollIntoView,
16701
+ noOptionsMessage = _this$props18.noOptionsMessage,
16702
+ onMenuScrollToTop = _this$props18.onMenuScrollToTop,
16703
+ onMenuScrollToBottom = _this$props18.onMenuScrollToBottom;
16704
+ if (!menuIsOpen) return null; // TODO: Internal Option Type here
16705
+
16706
+ var render = function render(props) {
16707
+ // for performance, the menu options in state aren't changed when the
16708
+ // focused option changes so we calculate additional props based on that
16709
+ var isFocused = focusedOption === props.data;
16710
+ props.innerRef = isFocused ? _this5.getFocusedOptionRef : undefined;
16711
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Option, _extends$4({}, commonProps, props, {
16712
+ isFocused: isFocused
16713
+ }), _this5.formatOptionLabel(props.data, 'menu'));
16714
+ };
16715
+
16716
+ var menuUI;
16717
+
16718
+ if (this.hasOptions()) {
16719
+ menuUI = menuOptions.render.map(function (item) {
16720
+ if (item.type === 'group') {
16721
+ var type = item.type,
16722
+ group = _objectWithoutPropertiesLoose$2(item, ["type"]);
16723
+
16724
+ var headingId = item.key + "-heading";
16725
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Group, _extends$4({}, commonProps, group, {
16726
+ Heading: GroupHeading,
16727
+ headingProps: {
16728
+ id: headingId
16729
+ },
16730
+ label: _this5.formatGroupLabel(item.data)
16731
+ }), item.options.map(function (option) {
16732
+ return render(option);
16733
+ }));
16734
+ } else if (item.type === 'option') {
16735
+ return render(item);
16736
+ }
16737
+ });
16738
+ } else if (isLoading) {
16739
+ var message = loadingMessage({
16740
+ inputValue: inputValue
16741
+ });
16742
+ if (message === null) return null;
16743
+ menuUI = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(LoadingMessage, commonProps, message);
16744
+ } else {
16745
+ var _message = noOptionsMessage({
16746
+ inputValue: inputValue
16747
+ });
16748
+
16749
+ if (_message === null) return null;
16750
+ menuUI = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(NoOptionsMessage, commonProps, _message);
16751
+ }
16752
+
16753
+ var menuPlacementProps = {
16754
+ minMenuHeight: minMenuHeight,
16755
+ maxMenuHeight: maxMenuHeight,
16756
+ menuPlacement: menuPlacement,
16757
+ menuPosition: menuPosition,
16758
+ menuShouldScrollIntoView: menuShouldScrollIntoView
16759
+ };
16760
+ var menuElement = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__index_4322c0ed_browser_esm_js__["a" /* M */], _extends$4({}, commonProps, menuPlacementProps), function (_ref8) {
16761
+ var ref = _ref8.ref,
16762
+ _ref8$placerProps = _ref8.placerProps,
16763
+ placement = _ref8$placerProps.placement,
16764
+ maxHeight = _ref8$placerProps.maxHeight;
16765
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Menu, _extends$4({}, commonProps, menuPlacementProps, {
16766
+ innerRef: ref,
16767
+ innerProps: {
16768
+ onMouseDown: _this5.onMenuMouseDown,
16769
+ onMouseMove: _this5.onMenuMouseMove
16770
+ },
16771
+ isLoading: isLoading,
16772
+ placement: placement
16773
+ }), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ScrollCaptorSwitch, {
16774
+ isEnabled: captureMenuScroll,
16775
+ onTopArrive: onMenuScrollToTop,
16776
+ onBottomArrive: onMenuScrollToBottom
16777
+ }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ScrollBlock, {
16778
+ isEnabled: menuShouldBlockScroll
16779
+ }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(MenuList, _extends$4({}, commonProps, {
16780
+ innerRef: _this5.getMenuListRef,
16781
+ isLoading: isLoading,
16782
+ maxHeight: maxHeight
16783
+ }), menuUI))));
16784
+ }); // positioning behaviour is almost identical for portalled and fixed,
16785
+ // so we use the same component. the actual portalling logic is forked
16786
+ // within the component based on `menuPosition`
16787
+
16788
+ return menuPortalTarget || menuPosition === 'fixed' ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(MenuPortal, _extends$4({}, commonProps, {
16789
+ appendTo: menuPortalTarget,
16790
+ controlElement: this.controlRef,
16791
+ menuPlacement: menuPlacement,
16792
+ menuPosition: menuPosition
16793
+ }), menuElement) : menuElement;
16794
+ };
16795
+
16796
+ _proto.renderFormField = function renderFormField() {
16797
+ var _this6 = this;
16798
+
16799
+ var _this$props19 = this.props,
16800
+ delimiter = _this$props19.delimiter,
16801
+ isDisabled = _this$props19.isDisabled,
16802
+ isMulti = _this$props19.isMulti,
16803
+ name = _this$props19.name;
16804
+ var selectValue = this.state.selectValue;
16805
+ if (!name || isDisabled) return;
16806
+
16807
+ if (isMulti) {
16808
+ if (delimiter) {
16809
+ var value = selectValue.map(function (opt) {
16810
+ return _this6.getOptionValue(opt);
16811
+ }).join(delimiter);
16812
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", {
16813
+ name: name,
16814
+ type: "hidden",
16815
+ value: value
16816
+ });
16817
+ } else {
16818
+ var input = selectValue.length > 0 ? selectValue.map(function (opt, i) {
16819
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", {
16820
+ key: "i-" + i,
16821
+ name: name,
16822
+ type: "hidden",
16823
+ value: _this6.getOptionValue(opt)
16824
+ });
16825
+ }) : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", {
16826
+ name: name,
16827
+ type: "hidden"
16828
+ });
16829
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", null, input);
16830
+ }
16831
+ } else {
16832
+ var _value2 = selectValue[0] ? this.getOptionValue(selectValue[0]) : '';
16833
+
16834
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", {
16835
+ name: name,
16836
+ type: "hidden",
16837
+ value: _value2
16838
+ });
16839
+ }
16840
+ };
16841
+
16842
+ _proto.renderLiveRegion = function renderLiveRegion() {
16843
+ if (!this.state.isFocused) return null;
16844
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(A11yText, {
16845
+ "aria-live": "polite"
16846
+ }, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("p", {
16847
+ id: "aria-selection-event"
16848
+ }, "\xA0", this.state.ariaLiveSelection), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("p", {
16849
+ id: "aria-context"
16850
+ }, "\xA0", this.constructAriaLiveMessage()));
16851
+ };
16852
+
16853
+ _proto.render = function render() {
16854
+ var _this$components4 = this.components,
16855
+ Control = _this$components4.Control,
16856
+ IndicatorsContainer = _this$components4.IndicatorsContainer,
16857
+ SelectContainer = _this$components4.SelectContainer,
16858
+ ValueContainer = _this$components4.ValueContainer;
16859
+ var _this$props20 = this.props,
16860
+ className = _this$props20.className,
16861
+ id = _this$props20.id,
16862
+ isDisabled = _this$props20.isDisabled,
16863
+ menuIsOpen = _this$props20.menuIsOpen;
16864
+ var isFocused = this.state.isFocused;
16865
+ var commonProps = this.commonProps = this.getCommonProps();
16866
+ return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(SelectContainer, _extends$4({}, commonProps, {
16867
+ className: className,
16868
+ innerProps: {
16869
+ id: id,
16870
+ onKeyDown: this.onKeyDown
16871
+ },
16872
+ isDisabled: isDisabled,
16873
+ isFocused: isFocused
16874
+ }), this.renderLiveRegion(), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Control, _extends$4({}, commonProps, {
16875
+ innerRef: this.getControlRef,
16876
+ innerProps: {
16877
+ onMouseDown: this.onControlMouseDown,
16878
+ onTouchEnd: this.onControlTouchEnd
16879
+ },
16880
+ isDisabled: isDisabled,
16881
+ isFocused: isFocused,
16882
+ menuIsOpen: menuIsOpen
16883
+ }), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ValueContainer, _extends$4({}, commonProps, {
16884
+ isDisabled: isDisabled
16885
+ }), this.renderPlaceholderOrValue(), this.renderInput()), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(IndicatorsContainer, _extends$4({}, commonProps, {
16886
+ isDisabled: isDisabled
16887
+ }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
16888
+ };
16889
+
16890
+ return Select;
16891
+ }(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
16892
+
16893
+ Select.defaultProps = defaultProps;
16894
+
16895
+
16896
+
16897
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
16898
+
16899
+ /***/ }),
16900
+ /* 184 */
16901
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
16902
+
16903
+ "use strict";
16904
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Alert__ = __webpack_require__(415);
16905
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Alert__["a"]; });
16906
+
16907
+
16908
+ /***/ }),
16909
+ /* 185 */
16910
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
16911
+
16912
+ "use strict";
16913
+ /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export styles */
16914
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
16915
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
16916
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
16917
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
16918
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_clsx__ = __webpack_require__(5);
16919
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(2);
16920
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);
16921
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_transition_group__ = __webpack_require__(47);
16922
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__styles_withStyles__ = __webpack_require__(6);
16923
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__styles_transitions__ = __webpack_require__(28);
16924
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__transitions_utils__ = __webpack_require__(48);
16925
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__styles_useTheme__ = __webpack_require__(13);
16926
+
16927
+
16928
+
16929
+
16930
+
16931
+
16932
+
16933
+
16934
+
16935
+
16936
+ var styles = function styles(theme) {
16937
+ return {
16938
+ /* Styles applied to the container element. */
16939
+ container: {
16940
+ height: 0,
16941
+ overflow: 'hidden',
16942
+ transition: theme.transitions.create('height')
16943
+ },
16944
+
16945
+ /* Styles applied to the container element when the transition has entered. */
16946
+ entered: {
16947
+ height: 'auto',
16948
+ overflow: 'visible'
16949
+ },
16950
+
16951
+ /* Styles applied to the container element when the transition has exited and `collapsedHeight` != 0px. */
16952
+ hidden: {
16953
+ visibility: 'hidden'
16954
+ },
16955
+
16956
+ /* Styles applied to the outer wrapper element. */
16957
+ wrapper: {
16958
+ // Hack to get children with a negative margin to not falsify the height computation.
16959
+ display: 'flex'
16960
+ },
16961
+
16962
+ /* Styles applied to the inner wrapper element. */
16963
+ wrapperInner: {
16964
+ width: '100%'
16965
+ }
16966
+ };
16967
+ };
16968
+ /**
16969
+ * The Collapse transition is used by the
16970
+ * [Vertical Stepper](/components/steppers/#vertical-stepper) StepContent component.
16971
+ * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
16972
+ */
16973
+
16974
+ var Collapse = __WEBPACK_IMPORTED_MODULE_2_react__["forwardRef"](function Collapse(props, ref) {
16975
+ var children = props.children,
16976
+ classes = props.classes,
16977
+ className = props.className,
16978
+ _props$collapsedHeigh = props.collapsedHeight,
16979
+ collapsedHeightProp = _props$collapsedHeigh === void 0 ? '0px' : _props$collapsedHeigh,
16980
+ _props$component = props.component,
16981
+ Component = _props$component === void 0 ? 'div' : _props$component,
16982
+ inProp = props.in,
16983
+ onEnter = props.onEnter,
16984
+ onEntered = props.onEntered,
16985
+ onEntering = props.onEntering,
16986
+ onExit = props.onExit,
16987
+ onExiting = props.onExiting,
16988
+ style = props.style,
16989
+ _props$timeout = props.timeout,
16990
+ timeout = _props$timeout === void 0 ? __WEBPACK_IMPORTED_MODULE_7__styles_transitions__["b" /* duration */].standard : _props$timeout,
16991
+ _props$TransitionComp = props.TransitionComponent,
16992
+ TransitionComponent = _props$TransitionComp === void 0 ? __WEBPACK_IMPORTED_MODULE_5_react_transition_group__["a" /* Transition */] : _props$TransitionComp,
16993
+ other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["children", "classes", "className", "collapsedHeight", "component", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExiting", "style", "timeout", "TransitionComponent"]);
16994
+
16995
+ var theme = Object(__WEBPACK_IMPORTED_MODULE_9__styles_useTheme__["a" /* default */])();
16996
+ var timer = __WEBPACK_IMPORTED_MODULE_2_react__["useRef"]();
16997
+ var wrapperRef = __WEBPACK_IMPORTED_MODULE_2_react__["useRef"](null);
16998
+ var autoTransitionDuration = __WEBPACK_IMPORTED_MODULE_2_react__["useRef"]();
16999
+ var collapsedHeight = typeof collapsedHeightProp === 'number' ? "".concat(collapsedHeightProp, "px") : collapsedHeightProp;
17000
+ __WEBPACK_IMPORTED_MODULE_2_react__["useEffect"](function () {
17001
+ return function () {
17002
+ clearTimeout(timer.current);
17003
+ };
17004
+ }, []);
17005
+
17006
+ var handleEnter = function handleEnter(node, isAppearing) {
17007
+ node.style.height = collapsedHeight;
17008
+
17009
+ if (onEnter) {
17010
+ onEnter(node, isAppearing);
17011
+ }
17012
+ };
17013
+
17014
+ var handleEntering = function handleEntering(node, isAppearing) {
17015
+ var wrapperHeight = wrapperRef.current ? wrapperRef.current.clientHeight : 0;
17016
+
17017
+ var _getTransitionProps = Object(__WEBPACK_IMPORTED_MODULE_8__transitions_utils__["a" /* getTransitionProps */])({
17018
+ style: style,
17019
+ timeout: timeout
17020
+ }, {
17021
+ mode: 'enter'
17022
+ }),
17023
+ transitionDuration = _getTransitionProps.duration;
17024
+
17025
+ if (timeout === 'auto') {
17026
+ var duration2 = theme.transitions.getAutoHeightDuration(wrapperHeight);
17027
+ node.style.transitionDuration = "".concat(duration2, "ms");
17028
+ autoTransitionDuration.current = duration2;
17029
+ } else {
17030
+ node.style.transitionDuration = typeof transitionDuration === 'string' ? transitionDuration : "".concat(transitionDuration, "ms");
17031
+ }
17032
+
17033
+ node.style.height = "".concat(wrapperHeight, "px");
17034
+
17035
+ if (onEntering) {
17036
+ onEntering(node, isAppearing);
17037
+ }
17038
+ };
17039
+
17040
+ var handleEntered = function handleEntered(node, isAppearing) {
17041
+ node.style.height = 'auto';
17042
+
17043
+ if (onEntered) {
17044
+ onEntered(node, isAppearing);
17045
+ }
17046
+ };
17047
+
17048
+ var handleExit = function handleExit(node) {
17049
+ var wrapperHeight = wrapperRef.current ? wrapperRef.current.clientHeight : 0;
17050
+ node.style.height = "".concat(wrapperHeight, "px");
17051
+
17052
+ if (onExit) {
17053
+ onExit(node);
17054
+ }
17055
+ };
17056
+
17057
+ var handleExiting = function handleExiting(node) {
17058
+ var wrapperHeight = wrapperRef.current ? wrapperRef.current.clientHeight : 0;
17059
+
17060
+ var _getTransitionProps2 = Object(__WEBPACK_IMPORTED_MODULE_8__transitions_utils__["a" /* getTransitionProps */])({
17061
+ style: style,
17062
+ timeout: timeout
17063
+ }, {
17064
+ mode: 'exit'
17065
+ }),
17066
+ transitionDuration = _getTransitionProps2.duration;
17067
+
17068
+ if (timeout === 'auto') {
17069
+ var duration2 = theme.transitions.getAutoHeightDuration(wrapperHeight);
17070
+ node.style.transitionDuration = "".concat(duration2, "ms");
17071
+ autoTransitionDuration.current = duration2;
17072
+ } else {
17073
+ node.style.transitionDuration = typeof transitionDuration === 'string' ? transitionDuration : "".concat(transitionDuration, "ms");
17074
+ }
17075
+
17076
+ node.style.height = collapsedHeight;
17077
+
17078
+ if (onExiting) {
17079
+ onExiting(node);
17080
+ }
17081
+ };
17082
+
17083
+ var addEndListener = function addEndListener(_, next) {
17084
+ if (timeout === 'auto') {
17085
+ timer.current = setTimeout(next, autoTransitionDuration.current || 0);
17086
+ }
17087
+ };
17088
+
17089
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](TransitionComponent, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
17090
+ in: inProp,
17091
+ onEnter: handleEnter,
17092
+ onEntered: handleEntered,
17093
+ onEntering: handleEntering,
17094
+ onExit: handleExit,
17095
+ onExiting: handleExiting,
17096
+ addEndListener: addEndListener,
17097
+ timeout: timeout === 'auto' ? null : timeout
17098
+ }, other), function (state, childProps) {
17099
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](Component, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
17100
+ className: Object(__WEBPACK_IMPORTED_MODULE_3_clsx__["a" /* default */])(classes.container, className, {
17101
+ 'entered': classes.entered,
17102
+ 'exited': !inProp && collapsedHeight === '0px' && classes.hidden
17103
+ }[state]),
17104
+ style: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
17105
+ minHeight: collapsedHeight
17106
+ }, style),
17107
+ ref: ref
17108
+ }, childProps), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"]("div", {
17109
+ className: classes.wrapper,
17110
+ ref: wrapperRef
17111
+ }, /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"]("div", {
17112
+ className: classes.wrapperInner
17113
+ }, children)));
17114
+ });
17115
+ });
17116
+ process.env.NODE_ENV !== "production" ? Collapse.propTypes = {
17117
+ // ----------------------------- Warning --------------------------------
17118
+ // | These PropTypes are generated from the TypeScript type definitions |
17119
+ // | To update them edit the d.ts file and run "yarn proptypes" |
17120
+ // ----------------------------------------------------------------------
17121
+
17122
+ /**
17123
+ * The content node to be collapsed.
17124
+ */
17125
+ children: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node,
17126
+
17127
+ /**
17128
+ * Override or extend the styles applied to the component.
17129
+ * See [CSS API](#css) below for more details.
17130
+ */
17131
+ classes: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
17132
+
17133
+ /**
17134
+ * @ignore
17135
+ */
17136
+ className: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
17137
+
17138
+ /**
17139
+ * The height of the container when collapsed.
17140
+ */
17141
+ collapsedHeight: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string]),
17142
+
17143
+ /**
17144
+ * The component used for the root node.
17145
+ * Either a string to use a DOM element or a component.
17146
+ */
17147
+ component: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.elementType,
17148
+
17149
+ /**
17150
+ * If `true`, the component will transition in.
17151
+ */
17152
+ in: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
17153
+
17154
+ /**
17155
+ * @ignore
17156
+ */
17157
+ onEnter: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
17158
+
17159
+ /**
17160
+ * @ignore
17161
+ */
17162
+ onEntered: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
17163
+
17164
+ /**
17165
+ * @ignore
17166
+ */
17167
+ onEntering: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
17168
+
17169
+ /**
17170
+ * @ignore
17171
+ */
17172
+ onExit: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
17173
+
17174
+ /**
17175
+ * @ignore
17176
+ */
17177
+ onExiting: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
17178
+
17179
+ /**
17180
+ * @ignore
17181
+ */
17182
+ style: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
17183
+
17184
+ /**
17185
+ * The duration for the transition, in milliseconds.
17186
+ * You may specify a single timeout for all transitions, or individually with an object.
17187
+ *
17188
+ * Set to 'auto' to automatically calculate transition time based on height.
17189
+ */
17190
+ timeout: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf(['auto']), __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.shape({
17191
+ appear: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number,
17192
+ enter: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number,
17193
+ exit: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number
17194
+ })])
17195
+ } : void 0;
17196
+ Collapse.muiSupportAuto = true;
17197
+ /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_6__styles_withStyles__["a" /* default */])(styles, {
17198
+ name: 'MuiCollapse'
17199
+ })(Collapse));
17200
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
17201
+
17202
+ /***/ }),
17203
+ /* 186 */
17204
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
17205
+
17206
+ "use strict";
17207
+ /* harmony default export */ __webpack_exports__["a"] = ({
17208
+ disabled: false
17209
+ });
17210
+
17211
+ /***/ }),
17212
+ /* 187 */
17213
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
17214
+
17215
+ "use strict";
17216
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return timeoutsShape; });
17217
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return classNamesShape; });
17218
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(2);
17219
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);
17220
+
17221
+ var timeoutsShape = process.env.NODE_ENV !== 'production' ? __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.shape({
17222
+ enter: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number,
17223
+ exit: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number,
17224
+ appear: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number
17225
+ }).isRequired]) : null;
17226
+ var classNamesShape = process.env.NODE_ENV !== 'production' ? __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.shape({
17227
+ enter: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
17228
+ exit: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
17229
+ active: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string
17230
+ }), __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.shape({
17231
+ enter: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
17232
+ enterDone: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
17233
+ enterActive: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
17234
+ exit: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
17235
+ exitDone: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
17236
+ exitActive: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string
17237
+ })]) : null;
17238
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
17239
+
17240
+ /***/ }),
17241
+ /* 188 */
17242
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
17243
+
17244
+ "use strict";
17245
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(24);
17246
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
17247
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(25);
17248
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_assertThisInitialized__ = __webpack_require__(67);
17249
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(2);
17250
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);
17251
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0);
17252
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
17253
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__TransitionGroupContext__ = __webpack_require__(104);
17254
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__utils_ChildMapping__ = __webpack_require__(422);
17255
+
17256
+
17257
+
17258
+
17259
+
17260
+
17261
+
17262
+
17263
+
17264
+ var values = Object.values || function (obj) {
17265
+ return Object.keys(obj).map(function (k) {
17266
+ return obj[k];
17267
+ });
17268
+ };
17269
+
17270
+ var defaultProps = {
17271
+ component: 'div',
17272
+ childFactory: function childFactory(child) {
17273
+ return child;
17274
+ }
17275
+ /**
17276
+ * The `<TransitionGroup>` component manages a set of transition components
17277
+ * (`<Transition>` and `<CSSTransition>`) in a list. Like with the transition
17278
+ * components, `<TransitionGroup>` is a state machine for managing the mounting
17279
+ * and unmounting of components over time.
17280
+ *
17281
+ * Consider the example below. As items are removed or added to the TodoList the
17282
+ * `in` prop is toggled automatically by the `<TransitionGroup>`.
17283
+ *
17284
+ * Note that `<TransitionGroup>` does not define any animation behavior!
17285
+ * Exactly _how_ a list item animates is up to the individual transition
17286
+ * component. This means you can mix and match animations across different list
17287
+ * items.
17288
+ */
17289
+
17290
+ };
17291
+
17292
+ var TransitionGroup =
17293
+ /*#__PURE__*/
17294
+ function (_React$Component) {
17295
+ Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(TransitionGroup, _React$Component);
17296
+
17297
+ function TransitionGroup(props, context) {
17298
+ var _this;
17299
+
17300
+ _this = _React$Component.call(this, props, context) || this;
17301
+
17302
+ var handleExited = _this.handleExited.bind(Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(_this))); // Initial children should all be entering, dependent on appear
17303
+
17304
+
17305
+ _this.state = {
17306
+ contextValue: {
17307
+ isMounting: true
17308
+ },
17309
+ handleExited: handleExited,
17310
+ firstRender: true
17311
+ };
17312
+ return _this;
17313
+ }
17314
+
17315
+ var _proto = TransitionGroup.prototype;
17316
+
17317
+ _proto.componentDidMount = function componentDidMount() {
17318
+ this.mounted = true;
17319
+ this.setState({
17320
+ contextValue: {
17321
+ isMounting: false
17322
+ }
17323
+ });
17324
+ };
17325
+
17326
+ _proto.componentWillUnmount = function componentWillUnmount() {
17327
+ this.mounted = false;
17328
+ };
17329
+
17330
+ TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {
17331
+ var prevChildMapping = _ref.children,
17332
+ handleExited = _ref.handleExited,
17333
+ firstRender = _ref.firstRender;
17334
+ return {
17335
+ children: firstRender ? Object(__WEBPACK_IMPORTED_MODULE_7__utils_ChildMapping__["b" /* getInitialChildMapping */])(nextProps, handleExited) : Object(__WEBPACK_IMPORTED_MODULE_7__utils_ChildMapping__["c" /* getNextChildMapping */])(nextProps, prevChildMapping, handleExited),
17336
+ firstRender: false
17337
+ };
17338
+ };
17339
+
17340
+ _proto.handleExited = function handleExited(child, node) {
17341
+ var currentChildMapping = Object(__WEBPACK_IMPORTED_MODULE_7__utils_ChildMapping__["a" /* getChildMapping */])(this.props.children);
17342
+ if (child.key in currentChildMapping) return;
17343
+
17344
+ if (child.props.onExited) {
17345
+ child.props.onExited(node);
17346
+ }
17347
+
17348
+ if (this.mounted) {
17349
+ this.setState(function (state) {
17350
+ var children = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, state.children);
17351
+
17352
+ delete children[child.key];
17353
+ return {
17354
+ children: children
17355
+ };
17356
+ });
17357
+ }
17358
+ };
17359
+
17360
+ _proto.render = function render() {
17361
+ var _this$props = this.props,
17362
+ Component = _this$props.component,
17363
+ childFactory = _this$props.childFactory,
17364
+ props = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_this$props, ["component", "childFactory"]);
17365
+
17366
+ var contextValue = this.state.contextValue;
17367
+ var children = values(this.state.children).map(childFactory);
17368
+ delete props.appear;
17369
+ delete props.enter;
17370
+ delete props.exit;
17371
+
17372
+ if (Component === null) {
17373
+ return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__TransitionGroupContext__["a" /* default */].Provider, {
17374
+ value: contextValue
17375
+ }, children);
17376
+ }
17377
+
17378
+ return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__TransitionGroupContext__["a" /* default */].Provider, {
17379
+ value: contextValue
17380
+ }, __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(Component, props, children));
17381
+ };
17382
+
17383
+ return TransitionGroup;
17384
+ }(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component);
17385
+
17386
+ TransitionGroup.propTypes = process.env.NODE_ENV !== "production" ? {
17387
+ /**
17388
+ * `<TransitionGroup>` renders a `<div>` by default. You can change this
17389
+ * behavior by providing a `component` prop.
17390
+ * If you use React v16+ and would like to avoid a wrapping `<div>` element
17391
+ * you can pass in `component={null}`. This is useful if the wrapping div
17392
+ * borks your css styles.
17393
+ */
17394
+ component: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.any,
17395
+
17396
+ /**
17397
+ * A set of `<Transition>` components, that are toggled `in` and out as they
17398
+ * leave. the `<TransitionGroup>` will inject specific transition props, so
17399
+ * remember to spread them through if you are wrapping the `<Transition>` as
17400
+ * with our `<Fade>` example.
17401
+ *
17402
+ * While this component is meant for multiple `Transition` or `CSSTransition`
17403
+ * children, sometimes you may want to have a single transition child with
17404
+ * content that you want to be transitioned out and in when you change it
17405
+ * (e.g. routes, images etc.) In that case you can change the `key` prop of
17406
+ * the transition child as you change its content, this will cause
17407
+ * `TransitionGroup` to transition the child out and back in.
17408
+ */
17409
+ children: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node,
17410
+
17411
+ /**
17412
+ * A convenience prop that enables or disables appear animations
17413
+ * for all children. Note that specifying this will override any defaults set
17414
+ * on individual children Transitions.
17415
+ */
17416
+ appear: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
17417
+
17418
+ /**
17419
+ * A convenience prop that enables or disables enter animations
17420
+ * for all children. Note that specifying this will override any defaults set
17421
+ * on individual children Transitions.
17422
+ */
17423
+ enter: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
17424
+
17425
+ /**
17426
+ * A convenience prop that enables or disables exit animations
17427
+ * for all children. Note that specifying this will override any defaults set
17428
+ * on individual children Transitions.
17429
+ */
17430
+ exit: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
17431
+
17432
+ /**
17433
+ * You may need to apply reactive updates to a child as it is exiting.
17434
+ * This is generally done by using `cloneElement` however in the case of an exiting
17435
+ * child the element has already been removed and not accessible to the consumer.
17436
+ *
17437
+ * If you do need to update a child as it leaves you can provide a `childFactory`
17438
+ * to wrap every child, even the ones that are leaving.
17439
+ *
17440
+ * @type Function(child: ReactElement) -> ReactElement
17441
+ */
17442
+ childFactory: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func
17443
+ } : {};
17444
+ TransitionGroup.defaultProps = defaultProps;
17445
+ /* harmony default export */ __webpack_exports__["a"] = (TransitionGroup);
17446
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
17447
+
17448
+ /***/ }),
17449
+ /* 189 */
17450
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
17451
+
17452
+ "use strict";
17453
+ /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export UNMOUNTED */
17454
+ /* unused harmony export EXITED */
17455
+ /* unused harmony export ENTERING */
17456
+ /* unused harmony export ENTERED */
17457
+ /* unused harmony export EXITING */
17458
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(24);
17459
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(25);
17460
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(2);
17461
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__);
17462
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
17463
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
17464
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_dom__ = __webpack_require__(10);
17465
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react_dom__);
17466
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__config__ = __webpack_require__(190);
17467
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__utils_PropTypes__ = __webpack_require__(191);
17468
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__TransitionGroupContext__ = __webpack_require__(192);
17469
+
17470
+
17471
+
17472
+
17473
+
17474
+
17475
+
17476
+
17477
+ var UNMOUNTED = 'unmounted';
17478
+ var EXITED = 'exited';
17479
+ var ENTERING = 'entering';
17480
+ var ENTERED = 'entered';
17481
+ var EXITING = 'exiting';
17482
+ /**
17483
+ * The Transition component lets you describe a transition from one component
17484
+ * state to another _over time_ with a simple declarative API. Most commonly
17485
+ * it's used to animate the mounting and unmounting of a component, but can also
17486
+ * be used to describe in-place transition states as well.
17487
+ *
17488
+ * ---
17489
+ *
17490
+ * **Note**: `Transition` is a platform-agnostic base component. If you're using
17491
+ * transitions in CSS, you'll probably want to use
17492
+ * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)
17493
+ * instead. It inherits all the features of `Transition`, but contains
17494
+ * additional features necessary to play nice with CSS transitions (hence the
17495
+ * name of the component).
17496
+ *
17497
+ * ---
17498
+ *
17499
+ * By default the `Transition` component does not alter the behavior of the
17500
+ * component it renders, it only tracks "enter" and "exit" states for the
17501
+ * components. It's up to you to give meaning and effect to those states. For
17502
+ * example we can add styles to a component when it enters or exits:
17503
+ *
17504
+ * ```jsx
17505
+ * import { Transition } from 'react-transition-group';
17506
+ *
17507
+ * const duration = 300;
17508
+ *
17509
+ * const defaultStyle = {
17510
+ * transition: `opacity ${duration}ms ease-in-out`,
17511
+ * opacity: 0,
17512
+ * }
17513
+ *
17514
+ * const transitionStyles = {
17515
+ * entering: { opacity: 1 },
17516
+ * entered: { opacity: 1 },
17517
+ * exiting: { opacity: 0 },
17518
+ * exited: { opacity: 0 },
17519
+ * };
17520
+ *
17521
+ * const Fade = ({ in: inProp }) => (
17522
+ * <Transition in={inProp} timeout={duration}>
17523
+ * {state => (
17524
+ * <div style={{
17525
+ * ...defaultStyle,
17526
+ * ...transitionStyles[state]
17527
+ * }}>
17528
+ * I'm a fade Transition!
17529
+ * </div>
17530
+ * )}
17531
+ * </Transition>
17532
+ * );
17533
+ * ```
17534
+ *
17535
+ * There are 4 main states a Transition can be in:
17536
+ * - `'entering'`
17537
+ * - `'entered'`
17538
+ * - `'exiting'`
17539
+ * - `'exited'`
17540
+ *
17541
+ * Transition state is toggled via the `in` prop. When `true` the component
17542
+ * begins the "Enter" stage. During this stage, the component will shift from
17543
+ * its current transition state, to `'entering'` for the duration of the
17544
+ * transition and then to the `'entered'` stage once it's complete. Let's take
17545
+ * the following example (we'll use the
17546
+ * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):
17547
+ *
17548
+ * ```jsx
17549
+ * function App() {
17550
+ * const [inProp, setInProp] = useState(false);
17551
+ * return (
17552
+ * <div>
17553
+ * <Transition in={inProp} timeout={500}>
17554
+ * {state => (
17555
+ * // ...
17556
+ * )}
17557
+ * </Transition>
17558
+ * <button onClick={() => setInProp(true)}>
17559
+ * Click to Enter
17560
+ * </button>
17561
+ * </div>
17562
+ * );
17563
+ * }
17564
+ * ```
17565
+ *
17566
+ * When the button is clicked the component will shift to the `'entering'` state
17567
+ * and stay there for 500ms (the value of `timeout`) before it finally switches
17568
+ * to `'entered'`.
17569
+ *
17570
+ * When `in` is `false` the same thing happens except the state moves from
17571
+ * `'exiting'` to `'exited'`.
17572
+ */
17573
+
17574
+ var Transition =
17575
+ /*#__PURE__*/
17576
+ function (_React$Component) {
17577
+ Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(Transition, _React$Component);
17578
+
17579
+ function Transition(props, context) {
17580
+ var _this;
17581
+
17582
+ _this = _React$Component.call(this, props, context) || this;
17583
+ var parentGroup = context; // In the context of a TransitionGroup all enters are really appears
17584
+
17585
+ var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;
17586
+ var initialStatus;
17587
+ _this.appearStatus = null;
17588
+
17589
+ if (props.in) {
17590
+ if (appear) {
17591
+ initialStatus = EXITED;
17592
+ _this.appearStatus = ENTERING;
17593
+ } else {
17594
+ initialStatus = ENTERED;
17595
+ }
17596
+ } else {
17597
+ if (props.unmountOnExit || props.mountOnEnter) {
17598
+ initialStatus = UNMOUNTED;
17599
+ } else {
17600
+ initialStatus = EXITED;
17601
+ }
17602
+ }
17603
+
17604
+ _this.state = {
17605
+ status: initialStatus
17606
+ };
17607
+ _this.nextCallback = null;
17608
+ return _this;
17609
+ }
17610
+
17611
+ Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {
17612
+ var nextIn = _ref.in;
17613
+
17614
+ if (nextIn && prevState.status === UNMOUNTED) {
17615
+ return {
17616
+ status: EXITED
17617
+ };
17618
+ }
17619
+
17620
+ return null;
17621
+ }; // getSnapshotBeforeUpdate(prevProps) {
17622
+ // let nextStatus = null
17623
+ // if (prevProps !== this.props) {
17624
+ // const { status } = this.state
17625
+ // if (this.props.in) {
17626
+ // if (status !== ENTERING && status !== ENTERED) {
17627
+ // nextStatus = ENTERING
17628
+ // }
17629
+ // } else {
17630
+ // if (status === ENTERING || status === ENTERED) {
17631
+ // nextStatus = EXITING
17632
+ // }
17633
+ // }
17634
+ // }
17635
+ // return { nextStatus }
17636
+ // }
17637
+
17638
+
17639
+ var _proto = Transition.prototype;
17640
+
17641
+ _proto.componentDidMount = function componentDidMount() {
17642
+ this.updateStatus(true, this.appearStatus);
17643
+ };
17644
+
17645
+ _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
17646
+ var nextStatus = null;
17647
+
17648
+ if (prevProps !== this.props) {
17649
+ var status = this.state.status;
17650
+
17651
+ if (this.props.in) {
17652
+ if (status !== ENTERING && status !== ENTERED) {
17653
+ nextStatus = ENTERING;
17654
+ }
17655
+ } else {
17656
+ if (status === ENTERING || status === ENTERED) {
17657
+ nextStatus = EXITING;
17658
+ }
17659
+ }
17660
+ }
17661
+
17662
+ this.updateStatus(false, nextStatus);
17663
+ };
17664
+
17665
+ _proto.componentWillUnmount = function componentWillUnmount() {
17666
+ this.cancelNextCallback();
17667
+ };
17668
+
17669
+ _proto.getTimeouts = function getTimeouts() {
17670
+ var timeout = this.props.timeout;
17671
+ var exit, enter, appear;
17672
+ exit = enter = appear = timeout;
17673
+
17674
+ if (timeout != null && typeof timeout !== 'number') {
17675
+ exit = timeout.exit;
17676
+ enter = timeout.enter; // TODO: remove fallback for next major
17677
+
17678
+ appear = timeout.appear !== undefined ? timeout.appear : enter;
17679
+ }
17680
+
17681
+ return {
17682
+ exit: exit,
17683
+ enter: enter,
17684
+ appear: appear
17685
+ };
17686
+ };
17687
+
17688
+ _proto.updateStatus = function updateStatus(mounting, nextStatus) {
17689
+ if (mounting === void 0) {
17690
+ mounting = false;
17691
+ }
17692
+
17693
+ if (nextStatus !== null) {
17694
+ // nextStatus will always be ENTERING or EXITING.
17695
+ this.cancelNextCallback();
17696
+ var node = this.props.findDOMNode(this);
17697
+
17698
+ if (nextStatus === ENTERING) {
17699
+ this.performEnter(node, mounting);
17700
+ } else {
17701
+ this.performExit(node);
17702
+ }
17703
+ } else if (this.props.unmountOnExit && this.state.status === EXITED) {
17704
+ this.setState({
17705
+ status: UNMOUNTED
17706
+ });
17707
+ }
17708
+ };
17709
+
17710
+ _proto.performEnter = function performEnter(node, mounting) {
17711
+ var _this2 = this;
17712
+
17713
+ var enter = this.props.enter;
17714
+ var appearing = this.context ? this.context.isMounting : mounting;
17715
+ var timeouts = this.getTimeouts();
17716
+ var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED
17717
+ // if we are mounting and running this it means appear _must_ be set
17718
+
17719
+ if (!mounting && !enter || __WEBPACK_IMPORTED_MODULE_5__config__["a" /* default */].disabled) {
17720
+ this.safeSetState({
17721
+ status: ENTERED
17722
+ }, function () {
17723
+ _this2.props.onEntered(node);
17724
+ });
17725
+ return;
17726
+ }
17727
+
17728
+ this.props.onEnter(node, appearing);
17729
+ this.safeSetState({
17730
+ status: ENTERING
17731
+ }, function () {
17732
+ _this2.props.onEntering(node, appearing);
17733
+
17734
+ _this2.onTransitionEnd(node, enterTimeout, function () {
17735
+ _this2.safeSetState({
17736
+ status: ENTERED
17737
+ }, function () {
17738
+ _this2.props.onEntered(node, appearing);
17739
+ });
17740
+ });
17741
+ });
17742
+ };
17743
+
17744
+ _proto.performExit = function performExit(node) {
17745
+ var _this3 = this;
17746
+
17747
+ var exit = this.props.exit;
17748
+ var timeouts = this.getTimeouts(); // no exit animation skip right to EXITED
17749
+
17750
+ if (!exit || __WEBPACK_IMPORTED_MODULE_5__config__["a" /* default */].disabled) {
17751
+ this.safeSetState({
17752
+ status: EXITED
17753
+ }, function () {
17754
+ _this3.props.onExited(node);
17755
+ });
17756
+ return;
17757
+ }
17758
+
17759
+ this.props.onExit(node);
17760
+ this.safeSetState({
17761
+ status: EXITING
17762
+ }, function () {
17763
+ _this3.props.onExiting(node);
17764
+
17765
+ _this3.onTransitionEnd(node, timeouts.exit, function () {
17766
+ _this3.safeSetState({
17767
+ status: EXITED
17768
+ }, function () {
17769
+ _this3.props.onExited(node);
17770
+ });
17771
+ });
17772
+ });
17773
+ };
17774
+
17775
+ _proto.cancelNextCallback = function cancelNextCallback() {
17776
+ if (this.nextCallback !== null) {
17777
+ this.nextCallback.cancel();
17778
+ this.nextCallback = null;
17779
+ }
17780
+ };
17781
+
17782
+ _proto.safeSetState = function safeSetState(nextState, callback) {
17783
+ // This shouldn't be necessary, but there are weird race conditions with
17784
+ // setState callbacks and unmounting in testing, so always make sure that
17785
+ // we can cancel any pending setState callbacks after we unmount.
17786
+ callback = this.setNextCallback(callback);
17787
+ this.setState(nextState, callback);
17788
+ };
17789
+
17790
+ _proto.setNextCallback = function setNextCallback(callback) {
17791
+ var _this4 = this;
17792
+
17793
+ var active = true;
17794
+
17795
+ this.nextCallback = function (event) {
17796
+ if (active) {
17797
+ active = false;
17798
+ _this4.nextCallback = null;
17799
+ callback(event);
17800
+ }
17801
+ };
17802
+
17803
+ this.nextCallback.cancel = function () {
17804
+ active = false;
17805
+ };
17806
+
17807
+ return this.nextCallback;
17808
+ };
17809
+
17810
+ _proto.onTransitionEnd = function onTransitionEnd(node, timeout, handler) {
17811
+ this.setNextCallback(handler);
17812
+ var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;
17813
+
17814
+ if (!node || doesNotHaveTimeoutOrListener) {
17815
+ setTimeout(this.nextCallback, 0);
17816
+ return;
17817
+ }
17818
+
17819
+ if (this.props.addEndListener) {
17820
+ this.props.addEndListener(node, this.nextCallback);
17821
+ }
17822
+
17823
+ if (timeout != null) {
17824
+ setTimeout(this.nextCallback, timeout);
17825
+ }
17826
+ };
17827
+
17828
+ _proto.render = function render() {
17829
+ var status = this.state.status;
17830
+
17831
+ if (status === UNMOUNTED) {
17832
+ return null;
17833
+ }
17834
+
17835
+ var _this$props = this.props,
17836
+ children = _this$props.children,
17837
+ childProps = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_this$props, ["children"]); // filter props for Transtition
17838
+
17839
+
17840
+ delete childProps.in;
17841
+ delete childProps.mountOnEnter;
17842
+ delete childProps.unmountOnExit;
17843
+ delete childProps.appear;
17844
+ delete childProps.enter;
17845
+ delete childProps.exit;
17846
+ delete childProps.findDOMNode;
17847
+ delete childProps.timeout;
17848
+ delete childProps.addEndListener;
17849
+ delete childProps.onEnter;
17850
+ delete childProps.onEntering;
17851
+ delete childProps.onEntered;
17852
+ delete childProps.onExit;
17853
+ delete childProps.onExiting;
17854
+ delete childProps.onExited;
17855
+
17856
+ if (typeof children === 'function') {
17857
+ // allows for nested Transitions
17858
+ return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__TransitionGroupContext__["a" /* default */].Provider, {
17859
+ value: null
17860
+ }, children(status, childProps));
17861
+ }
17862
+
17863
+ var child = __WEBPACK_IMPORTED_MODULE_3_react___default.a.Children.only(children);
17864
+ return (// allows for nested Transitions
17865
+ __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__TransitionGroupContext__["a" /* default */].Provider, {
17866
+ value: null
17867
+ }, __WEBPACK_IMPORTED_MODULE_3_react___default.a.cloneElement(child, childProps))
17868
+ );
17869
+ };
17870
+
17871
+ return Transition;
17872
+ }(__WEBPACK_IMPORTED_MODULE_3_react___default.a.Component);
17873
+
17874
+ Transition.contextType = __WEBPACK_IMPORTED_MODULE_7__TransitionGroupContext__["a" /* default */];
17875
+ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
17876
+ /**
17877
+ * A `function` child can be used instead of a React element. This function is
17878
+ * called with the current transition status (`'entering'`, `'entered'`,
17879
+ * `'exiting'`, `'exited'`), which can be used to apply context
17880
+ * specific props to a component.
17881
+ *
17882
+ * ```jsx
17883
+ * <Transition in={this.state.in} timeout={150}>
17884
+ * {state => (
17885
+ * <MyComponent className={`fade fade-${state}`} />
17886
+ * )}
17887
+ * </Transition>
17888
+ * ```
17889
+ */
17890
+ children: __WEBPACK_IMPORTED_MODULE_2_prop_types__["oneOfType"]([__WEBPACK_IMPORTED_MODULE_2_prop_types__["func"].isRequired, __WEBPACK_IMPORTED_MODULE_2_prop_types__["element"].isRequired]).isRequired,
17891
+
17892
+ /**
17893
+ * Show the component; triggers the enter or exit states
17894
+ */
17895
+ in: __WEBPACK_IMPORTED_MODULE_2_prop_types__["bool"],
17896
+
17897
+ /**
17898
+ * By default the child component is mounted immediately along with
17899
+ * the parent `Transition` component. If you want to "lazy mount" the component on the
17900
+ * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
17901
+ * mounted, even on "exited", unless you also specify `unmountOnExit`.
17902
+ */
17903
+ mountOnEnter: __WEBPACK_IMPORTED_MODULE_2_prop_types__["bool"],
17904
+
17905
+ /**
17906
+ * By default the child component stays mounted after it reaches the `'exited'` state.
17907
+ * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
17908
+ */
17909
+ unmountOnExit: __WEBPACK_IMPORTED_MODULE_2_prop_types__["bool"],
17910
+
17911
+ /**
17912
+ * Normally a component is not transitioned if it is shown when the `<Transition>` component mounts.
17913
+ * If you want to transition on the first mount set `appear` to `true`, and the
17914
+ * component will transition in as soon as the `<Transition>` mounts.
17915
+ *
17916
+ * > Note: there are no specific "appear" states. `appear` only adds an additional `enter` transition.
17917
+ */
17918
+ appear: __WEBPACK_IMPORTED_MODULE_2_prop_types__["bool"],
17919
+
17920
+ /**
17921
+ * Enable or disable enter transitions.
17922
+ */
17923
+ enter: __WEBPACK_IMPORTED_MODULE_2_prop_types__["bool"],
17924
+
17925
+ /**
17926
+ * Enable or disable exit transitions.
17927
+ */
17928
+ exit: __WEBPACK_IMPORTED_MODULE_2_prop_types__["bool"],
17929
+
17930
+ /**
17931
+ * The function to find the rendered DOM node that is passed to the transition callbacks.
17932
+ *
17933
+ * By default ReactDOM.findDOMNode is used. For `React.StrictMode` compatiblity
17934
+ * another function must be provided.
17935
+ */
17936
+ findDOMNode: __WEBPACK_IMPORTED_MODULE_2_prop_types__["func"],
17937
+
17938
+ /**
17939
+ * The duration of the transition, in milliseconds.
17940
+ * Required unless `addEndListener` is provided.
17941
+ *
17942
+ * You may specify a single timeout for all transitions:
17943
+ *
17944
+ * ```jsx
17945
+ * timeout={500}
17946
+ * ```
17947
+ *
17948
+ * or individually:
17949
+ *
17950
+ * ```jsx
17951
+ * timeout={{
17952
+ * appear: 500,
17953
+ * enter: 300,
17954
+ * exit: 500,
17955
+ * }}
17956
+ * ```
17957
+ *
17958
+ * - `appear` defaults to the value of `enter`
17959
+ * - `enter` defaults to `0`
17960
+ * - `exit` defaults to `0`
17961
+ *
17962
+ * @type {number | { enter?: number, exit?: number, appear?: number }}
17963
+ */
17964
+ timeout: function timeout(props) {
17965
+ var pt = __WEBPACK_IMPORTED_MODULE_6__utils_PropTypes__["b" /* timeoutsShape */];
17966
+ if (!props.addEndListener) pt = pt.isRequired;
17967
+
17968
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
17969
+ args[_key - 1] = arguments[_key];
17970
+ }
17971
+
17972
+ return pt.apply(void 0, [props].concat(args));
17973
+ },
17974
+
17975
+ /**
17976
+ * Add a custom transition end trigger. Called with the transitioning
17977
+ * DOM node and a `done` callback. Allows for more fine grained transition end
17978
+ * logic. **Note:** Timeouts are still used as a fallback if provided.
17979
+ *
17980
+ * ```jsx
17981
+ * addEndListener={(node, done) => {
17982
+ * // use the css transitionend event to mark the finish of a transition
17983
+ * node.addEventListener('transitionend', done, false);
17984
+ * }}
17985
+ * ```
17986
+ */
17987
+ addEndListener: __WEBPACK_IMPORTED_MODULE_2_prop_types__["func"],
17988
+
17989
+ /**
17990
+ * Callback fired before the "entering" status is applied. An extra parameter
17991
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
17992
+ *
17993
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
17994
+ */
17995
+ onEnter: __WEBPACK_IMPORTED_MODULE_2_prop_types__["func"],
17996
+
17997
+ /**
17998
+ * Callback fired after the "entering" status is applied. An extra parameter
17999
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
18000
+ *
18001
+ * @type Function(node: HtmlElement, isAppearing: bool)
18002
+ */
18003
+ onEntering: __WEBPACK_IMPORTED_MODULE_2_prop_types__["func"],
18004
+
18005
+ /**
18006
+ * Callback fired after the "entered" status is applied. An extra parameter
18007
+ * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
18008
+ *
18009
+ * @type Function(node: HtmlElement, isAppearing: bool) -> void
18010
+ */
18011
+ onEntered: __WEBPACK_IMPORTED_MODULE_2_prop_types__["func"],
18012
+
18013
+ /**
18014
+ * Callback fired before the "exiting" status is applied.
18015
+ *
18016
+ * @type Function(node: HtmlElement) -> void
18017
+ */
18018
+ onExit: __WEBPACK_IMPORTED_MODULE_2_prop_types__["func"],
18019
+
18020
+ /**
18021
+ * Callback fired after the "exiting" status is applied.
18022
+ *
18023
+ * @type Function(node: HtmlElement) -> void
18024
+ */
18025
+ onExiting: __WEBPACK_IMPORTED_MODULE_2_prop_types__["func"],
18026
+
18027
+ /**
18028
+ * Callback fired after the "exited" status is applied.
18029
+ *
18030
+ * @type Function(node: HtmlElement) -> void
18031
+ */
18032
+ onExited: __WEBPACK_IMPORTED_MODULE_2_prop_types__["func"] // Name the function so it is clearer in the documentation
18033
+
18034
+ } : {};
18035
+
18036
+ function noop() {}
18037
+
18038
+ Transition.defaultProps = {
18039
+ in: false,
18040
+ mountOnEnter: false,
18041
+ unmountOnExit: false,
18042
+ appear: false,
18043
+ enter: true,
18044
+ exit: true,
18045
+ findDOMNode: __WEBPACK_IMPORTED_MODULE_4_react_dom___default.a.findDOMNode,
18046
+ onEnter: noop,
18047
+ onEntering: noop,
18048
+ onEntered: noop,
18049
+ onExit: noop,
18050
+ onExiting: noop,
18051
+ onExited: noop
18052
+ };
18053
+ Transition.UNMOUNTED = 0;
18054
+ Transition.EXITED = 1;
18055
+ Transition.ENTERING = 2;
18056
+ Transition.ENTERED = 3;
18057
+ Transition.EXITING = 4;
18058
+ /* harmony default export */ __webpack_exports__["a"] = (Transition);
18059
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
18060
+
18061
+ /***/ }),
18062
+ /* 190 */
18063
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
18064
+
18065
+ "use strict";
18066
+ /* harmony default export */ __webpack_exports__["a"] = ({
18067
+ disabled: false
18068
+ });
18069
+
18070
+ /***/ }),
18071
+ /* 191 */
18072
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
18073
+
18074
+ "use strict";
18075
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return timeoutsShape; });
18076
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return classNamesShape; });
18077
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(2);
18078
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);
18079
+
18080
+ var timeoutsShape = process.env.NODE_ENV !== 'production' ? __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.shape({
18081
+ enter: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number,
18082
+ exit: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number,
18083
+ appear: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number
18084
+ }).isRequired]) : null;
18085
+ var classNamesShape = process.env.NODE_ENV !== 'production' ? __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.shape({
18086
+ enter: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
18087
+ exit: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
18088
+ active: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string
18089
+ }), __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.shape({
18090
+ enter: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
18091
+ enterDone: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
18092
+ enterActive: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
18093
+ exit: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
18094
+ exitDone: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
18095
+ exitActive: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string
18096
+ })]) : null;
18097
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
18098
+
18099
+ /***/ }),
18100
+ /* 192 */
18101
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
18102
+
18103
+ "use strict";
18104
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
18105
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
18106
+
18107
+ /* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_0_react___default.a.createContext(null));
18108
+
18109
+ /***/ }),
18110
+ /* 193 */
18111
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
18112
+
18113
+ "use strict";
18114
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(24);
18115
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
18116
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(25);
18117
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_assertThisInitialized__ = __webpack_require__(67);
18118
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(2);
18119
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);
18120
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0);
18121
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
18122
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__TransitionGroupContext__ = __webpack_require__(192);
18123
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__utils_ChildMapping__ = __webpack_require__(431);
18124
+
18125
+
18126
+
18127
+
18128
+
18129
+
18130
+
18131
+
18132
+
18133
+ var values = Object.values || function (obj) {
18134
+ return Object.keys(obj).map(function (k) {
18135
+ return obj[k];
18136
+ });
18137
+ };
18138
+
18139
+ var defaultProps = {
18140
+ component: 'div',
18141
+ childFactory: function childFactory(child) {
18142
+ return child;
18143
+ }
18144
+ /**
18145
+ * The `<TransitionGroup>` component manages a set of transition components
18146
+ * (`<Transition>` and `<CSSTransition>`) in a list. Like with the transition
18147
+ * components, `<TransitionGroup>` is a state machine for managing the mounting
18148
+ * and unmounting of components over time.
18149
+ *
18150
+ * Consider the example below. As items are removed or added to the TodoList the
18151
+ * `in` prop is toggled automatically by the `<TransitionGroup>`.
18152
+ *
18153
+ * Note that `<TransitionGroup>` does not define any animation behavior!
18154
+ * Exactly _how_ a list item animates is up to the individual transition
18155
+ * component. This means you can mix and match animations across different list
18156
+ * items.
18157
+ */
18158
+
18159
+ };
18160
+
18161
+ var TransitionGroup =
18162
+ /*#__PURE__*/
18163
+ function (_React$Component) {
18164
+ Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(TransitionGroup, _React$Component);
18165
+
18166
+ function TransitionGroup(props, context) {
18167
+ var _this;
18168
+
18169
+ _this = _React$Component.call(this, props, context) || this;
18170
+
18171
+ var handleExited = _this.handleExited.bind(Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(_this))); // Initial children should all be entering, dependent on appear
18172
+
18173
+
18174
+ _this.state = {
18175
+ contextValue: {
18176
+ isMounting: true
18177
+ },
18178
+ handleExited: handleExited,
18179
+ firstRender: true
18180
+ };
18181
+ return _this;
18182
+ }
18183
+
18184
+ var _proto = TransitionGroup.prototype;
18185
+
18186
+ _proto.componentDidMount = function componentDidMount() {
18187
+ this.mounted = true;
18188
+ this.setState({
18189
+ contextValue: {
18190
+ isMounting: false
18191
+ }
18192
+ });
18193
+ };
18194
+
18195
+ _proto.componentWillUnmount = function componentWillUnmount() {
18196
+ this.mounted = false;
18197
+ };
18198
+
18199
+ TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {
18200
+ var prevChildMapping = _ref.children,
18201
+ handleExited = _ref.handleExited,
18202
+ firstRender = _ref.firstRender;
18203
+ return {
18204
+ children: firstRender ? Object(__WEBPACK_IMPORTED_MODULE_7__utils_ChildMapping__["b" /* getInitialChildMapping */])(nextProps, handleExited) : Object(__WEBPACK_IMPORTED_MODULE_7__utils_ChildMapping__["c" /* getNextChildMapping */])(nextProps, prevChildMapping, handleExited),
18205
+ firstRender: false
18206
+ };
18207
+ };
18208
+
18209
+ _proto.handleExited = function handleExited(child, node) {
18210
+ var currentChildMapping = Object(__WEBPACK_IMPORTED_MODULE_7__utils_ChildMapping__["a" /* getChildMapping */])(this.props.children);
18211
+ if (child.key in currentChildMapping) return;
18212
+
18213
+ if (child.props.onExited) {
18214
+ child.props.onExited(node);
18215
+ }
18216
+
18217
+ if (this.mounted) {
18218
+ this.setState(function (state) {
18219
+ var children = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, state.children);
18220
+
18221
+ delete children[child.key];
18222
+ return {
18223
+ children: children
18224
+ };
18225
+ });
18226
+ }
18227
+ };
18228
+
18229
+ _proto.render = function render() {
18230
+ var _this$props = this.props,
18231
+ Component = _this$props.component,
18232
+ childFactory = _this$props.childFactory,
18233
+ props = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_this$props, ["component", "childFactory"]);
18234
+
18235
+ var contextValue = this.state.contextValue;
18236
+ var children = values(this.state.children).map(childFactory);
18237
+ delete props.appear;
18238
+ delete props.enter;
18239
+ delete props.exit;
18240
+
18241
+ if (Component === null) {
18242
+ return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__TransitionGroupContext__["a" /* default */].Provider, {
18243
+ value: contextValue
18244
+ }, children);
18245
+ }
18246
+
18247
+ return __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__TransitionGroupContext__["a" /* default */].Provider, {
18248
+ value: contextValue
18249
+ }, __WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(Component, props, children));
18250
+ };
18251
+
18252
+ return TransitionGroup;
18253
+ }(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component);
18254
+
18255
+ TransitionGroup.propTypes = process.env.NODE_ENV !== "production" ? {
18256
+ /**
18257
+ * `<TransitionGroup>` renders a `<div>` by default. You can change this
18258
+ * behavior by providing a `component` prop.
18259
+ * If you use React v16+ and would like to avoid a wrapping `<div>` element
18260
+ * you can pass in `component={null}`. This is useful if the wrapping div
18261
+ * borks your css styles.
18262
+ */
18263
+ component: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.any,
18264
+
18265
+ /**
18266
+ * A set of `<Transition>` components, that are toggled `in` and out as they
18267
+ * leave. the `<TransitionGroup>` will inject specific transition props, so
18268
+ * remember to spread them through if you are wrapping the `<Transition>` as
18269
+ * with our `<Fade>` example.
18270
+ *
18271
+ * While this component is meant for multiple `Transition` or `CSSTransition`
18272
+ * children, sometimes you may want to have a single transition child with
18273
+ * content that you want to be transitioned out and in when you change it
18274
+ * (e.g. routes, images etc.) In that case you can change the `key` prop of
18275
+ * the transition child as you change its content, this will cause
18276
+ * `TransitionGroup` to transition the child out and back in.
18277
+ */
18278
+ children: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node,
18279
+
18280
+ /**
18281
+ * A convenience prop that enables or disables appear animations
18282
+ * for all children. Note that specifying this will override any defaults set
18283
+ * on individual children Transitions.
18284
+ */
18285
+ appear: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
18286
+
18287
+ /**
18288
+ * A convenience prop that enables or disables enter animations
18289
+ * for all children. Note that specifying this will override any defaults set
18290
+ * on individual children Transitions.
18291
+ */
18292
+ enter: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
18293
+
18294
+ /**
18295
+ * A convenience prop that enables or disables exit animations
18296
+ * for all children. Note that specifying this will override any defaults set
18297
+ * on individual children Transitions.
18298
+ */
18299
+ exit: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
18300
+
18301
+ /**
18302
+ * You may need to apply reactive updates to a child as it is exiting.
18303
+ * This is generally done by using `cloneElement` however in the case of an exiting
18304
+ * child the element has already been removed and not accessible to the consumer.
18305
+ *
18306
+ * If you do need to update a child as it leaves you can provide a `childFactory`
18307
+ * to wrap every child, even the ones that are leaving.
18308
+ *
18309
+ * @type Function(child: ReactElement) -> ReactElement
18310
+ */
18311
+ childFactory: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func
18312
+ } : {};
18313
+ TransitionGroup.defaultProps = defaultProps;
18314
+ /* harmony default export */ __webpack_exports__["a"] = (TransitionGroup);
18315
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
18316
+
18317
+ /***/ }),
18318
+ /* 194 */
18319
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
18320
+
18321
+ "use strict";
18322
+ /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export default */
18323
+ function deprecatedPropType(validator, reason) {
18324
+ if (process.env.NODE_ENV === 'production') {
18325
+ return function () {
18326
+ return null;
18327
+ };
18328
+ }
18329
+
18330
+ return function (props, propName, componentName, location, propFullName) {
18331
+ var componentNameSafe = componentName || '<<anonymous>>';
18332
+ var propFullNameSafe = propFullName || propName;
18333
+
18334
+ if (typeof props[propName] !== 'undefined') {
18335
+ return new Error("The ".concat(location, " `").concat(propFullNameSafe, "` of ") + "`".concat(componentNameSafe, "` is deprecated. ").concat(reason));
18336
+ }
18337
+
18338
+ return null;
18339
+ };
18340
+ }
18341
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
18342
+
18343
+ /***/ }),
18344
+ /* 195 */
18345
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
18346
+
18347
+ "use strict";
18348
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = requirePropFactory;
18349
+ function requirePropFactory(componentNameInError) {
18350
+ if (process.env.NODE_ENV === 'production') {
18351
+ return function () {
18352
+ return null;
18353
+ };
18354
+ }
18355
+
18356
+ var requireProp = function requireProp(requiredProp) {
18357
+ return function (props, propName, componentName, location, propFullName) {
18358
+ var propFullNameSafe = propFullName || propName;
18359
+
18360
+ if (typeof props[propName] !== 'undefined' && !props[requiredProp]) {
18361
+ return new Error("The prop `".concat(propFullNameSafe, "` of ") + "`".concat(componentNameInError, "` must be used on `").concat(requiredProp, "`."));
18362
+ }
18363
+
18364
+ return null;
18365
+ };
18366
+ };
18367
+
18368
+ return requireProp;
18369
+ }
18370
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
18371
+
18372
+ /***/ }),
18373
+ /* 196 */
18374
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
18375
+
18376
+ "use strict";
18377
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
18378
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
18379
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
18380
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
18381
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
18382
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
18383
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_transition_group__ = __webpack_require__(47);
18384
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__styles_transitions__ = __webpack_require__(28);
18385
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__styles_useTheme__ = __webpack_require__(13);
18386
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__transitions_utils__ = __webpack_require__(48);
18387
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_useForkRef__ = __webpack_require__(11);
18388
+
18389
+
18390
+
18391
+
18392
+
18393
+
18394
+
18395
+
18396
+
18397
+ var styles = {
18398
+ entering: {
18399
+ opacity: 1
18400
+ },
18401
+ entered: {
18402
+ opacity: 1
18403
+ }
18404
+ };
18405
+ var defaultTimeout = {
18406
+ enter: __WEBPACK_IMPORTED_MODULE_5__styles_transitions__["b" /* duration */].enteringScreen,
18407
+ exit: __WEBPACK_IMPORTED_MODULE_5__styles_transitions__["b" /* duration */].leavingScreen
18408
+ };
18409
+ /**
18410
+ * The Fade transition is used by the [Modal](/components/modal/) component.
18411
+ * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
18412
+ */
18413
+
18414
+ var Fade = __WEBPACK_IMPORTED_MODULE_2_react__["forwardRef"](function Fade(props, ref) {
18415
+ var children = props.children,
18416
+ inProp = props.in,
18417
+ onEnter = props.onEnter,
18418
+ onExit = props.onExit,
18419
+ style = props.style,
18420
+ _props$TransitionComp = props.TransitionComponent,
18421
+ TransitionComponent = _props$TransitionComp === void 0 ? __WEBPACK_IMPORTED_MODULE_4_react_transition_group__["a" /* Transition */] : _props$TransitionComp,
18422
+ _props$timeout = props.timeout,
18423
+ timeout = _props$timeout === void 0 ? defaultTimeout : _props$timeout,
18424
+ other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["children", "in", "onEnter", "onExit", "style", "TransitionComponent", "timeout"]);
18425
+
18426
+ var theme = Object(__WEBPACK_IMPORTED_MODULE_6__styles_useTheme__["a" /* default */])();
18427
+ var handleRef = Object(__WEBPACK_IMPORTED_MODULE_8__utils_useForkRef__["a" /* default */])(children.ref, ref);
18428
+
18429
+ var handleEnter = function handleEnter(node, isAppearing) {
18430
+ Object(__WEBPACK_IMPORTED_MODULE_7__transitions_utils__["b" /* reflow */])(node); // So the animation always start from the start.
18431
+
18432
+ var transitionProps = Object(__WEBPACK_IMPORTED_MODULE_7__transitions_utils__["a" /* getTransitionProps */])({
18433
+ style: style,
18434
+ timeout: timeout
18435
+ }, {
18436
+ mode: 'enter'
18437
+ });
18438
+ node.style.webkitTransition = theme.transitions.create('opacity', transitionProps);
18439
+ node.style.transition = theme.transitions.create('opacity', transitionProps);
18440
+
18441
+ if (onEnter) {
18442
+ onEnter(node, isAppearing);
18443
+ }
18444
+ };
18445
+
18446
+ var handleExit = function handleExit(node) {
18447
+ var transitionProps = Object(__WEBPACK_IMPORTED_MODULE_7__transitions_utils__["a" /* getTransitionProps */])({
18448
+ style: style,
18449
+ timeout: timeout
18450
+ }, {
18451
+ mode: 'exit'
18452
+ });
18453
+ node.style.webkitTransition = theme.transitions.create('opacity', transitionProps);
18454
+ node.style.transition = theme.transitions.create('opacity', transitionProps);
18455
+
18456
+ if (onExit) {
18457
+ onExit(node);
18458
+ }
18459
+ };
18460
+
18461
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](TransitionComponent, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
18462
+ appear: true,
18463
+ in: inProp,
18464
+ onEnter: handleEnter,
18465
+ onExit: handleExit,
18466
+ timeout: timeout
18467
+ }, other), function (state, childProps) {
18468
+ return __WEBPACK_IMPORTED_MODULE_2_react__["cloneElement"](children, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
18469
+ style: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
18470
+ opacity: 0,
18471
+ visibility: state === 'exited' && !inProp ? 'hidden' : undefined
18472
+ }, styles[state], {}, style, {}, children.props.style),
18473
+ ref: handleRef
18474
+ }, childProps));
18475
+ });
18476
+ });
18477
+ process.env.NODE_ENV !== "production" ? Fade.propTypes = {
18478
+ // ----------------------------- Warning --------------------------------
18479
+ // | These PropTypes are generated from the TypeScript type definitions |
18480
+ // | To update them edit the d.ts file and run "yarn proptypes" |
18481
+ // ----------------------------------------------------------------------
18482
+
18483
+ /**
18484
+ * A single child content element.
18485
+ */
18486
+ children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.element,
18487
+
18488
+ /**
18489
+ * If `true`, the component will transition in.
18490
+ */
18491
+ in: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
18492
+
18493
+ /**
18494
+ * @ignore
18495
+ */
18496
+ onEnter: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
18497
+
18498
+ /**
18499
+ * @ignore
18500
+ */
18501
+ onExit: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
18502
+
18503
+ /**
18504
+ * @ignore
18505
+ */
18506
+ style: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
18507
+
18508
+ /**
18509
+ * The duration for the transition, in milliseconds.
18510
+ * You may specify a single timeout for all transitions, or individually with an object.
18511
+ */
18512
+ timeout: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.shape({
18513
+ appear: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number,
18514
+ enter: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number,
18515
+ exit: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number
18516
+ })])
18517
+ } : void 0;
18518
+ /* harmony default export */ __webpack_exports__["a"] = (Fade);
18519
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
18520
+
18521
+ /***/ }),
18522
+ /* 197 */
18523
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
18524
+
18525
+ "use strict";
18526
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
18527
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
18528
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
18529
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
18530
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
18531
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
18532
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_transition_group__ = __webpack_require__(47);
18533
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__styles_useTheme__ = __webpack_require__(13);
18534
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__transitions_utils__ = __webpack_require__(48);
18535
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__utils_useForkRef__ = __webpack_require__(11);
18536
+
18537
+
18538
+
18539
+
18540
+
18541
+
18542
+
18543
+
18544
+
18545
+ function getScale(value) {
18546
+ return "scale(".concat(value, ", ").concat(Math.pow(value, 2), ")");
18547
+ }
18548
+
18549
+ var styles = {
18550
+ entering: {
18551
+ opacity: 1,
18552
+ transform: getScale(1)
18553
+ },
18554
+ entered: {
18555
+ opacity: 1,
18556
+ transform: 'none'
18557
+ }
18558
+ };
18559
+ /**
18560
+ * The Grow transition is used by the [Tooltip](/components/tooltips/) and
18561
+ * [Popover](/components/popover/) components.
18562
+ * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
18563
+ */
18564
+
18565
+ var Grow = __WEBPACK_IMPORTED_MODULE_2_react__["forwardRef"](function Grow(props, ref) {
18566
+ var children = props.children,
18567
+ inProp = props.in,
18568
+ onEnter = props.onEnter,
18569
+ onExit = props.onExit,
18570
+ style = props.style,
18571
+ _props$timeout = props.timeout,
18572
+ timeout = _props$timeout === void 0 ? 'auto' : _props$timeout,
18573
+ _props$TransitionComp = props.TransitionComponent,
18574
+ TransitionComponent = _props$TransitionComp === void 0 ? __WEBPACK_IMPORTED_MODULE_4_react_transition_group__["a" /* Transition */] : _props$TransitionComp,
18575
+ other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["children", "in", "onEnter", "onExit", "style", "timeout", "TransitionComponent"]);
18576
+
18577
+ var timer = __WEBPACK_IMPORTED_MODULE_2_react__["useRef"]();
18578
+ var autoTimeout = __WEBPACK_IMPORTED_MODULE_2_react__["useRef"]();
18579
+ var handleRef = Object(__WEBPACK_IMPORTED_MODULE_7__utils_useForkRef__["a" /* default */])(children.ref, ref);
18580
+ var theme = Object(__WEBPACK_IMPORTED_MODULE_5__styles_useTheme__["a" /* default */])();
18581
+
18582
+ var handleEnter = function handleEnter(node, isAppearing) {
18583
+ Object(__WEBPACK_IMPORTED_MODULE_6__transitions_utils__["b" /* reflow */])(node); // So the animation always start from the start.
18584
+
18585
+ var _getTransitionProps = Object(__WEBPACK_IMPORTED_MODULE_6__transitions_utils__["a" /* getTransitionProps */])({
18586
+ style: style,
18587
+ timeout: timeout
18588
+ }, {
18589
+ mode: 'enter'
18590
+ }),
18591
+ transitionDuration = _getTransitionProps.duration,
18592
+ delay = _getTransitionProps.delay;
18593
+
18594
+ var duration;
18595
+
18596
+ if (timeout === 'auto') {
18597
+ duration = theme.transitions.getAutoHeightDuration(node.clientHeight);
18598
+ autoTimeout.current = duration;
18599
+ } else {
18600
+ duration = transitionDuration;
18601
+ }
18602
+
18603
+ node.style.transition = [theme.transitions.create('opacity', {
18604
+ duration: duration,
18605
+ delay: delay
18606
+ }), theme.transitions.create('transform', {
18607
+ duration: duration * 0.666,
18608
+ delay: delay
18609
+ })].join(',');
18610
+
18611
+ if (onEnter) {
18612
+ onEnter(node, isAppearing);
18613
+ }
18614
+ };
18615
+
18616
+ var handleExit = function handleExit(node) {
18617
+ var _getTransitionProps2 = Object(__WEBPACK_IMPORTED_MODULE_6__transitions_utils__["a" /* getTransitionProps */])({
18618
+ style: style,
18619
+ timeout: timeout
18620
+ }, {
18621
+ mode: 'exit'
18622
+ }),
18623
+ transitionDuration = _getTransitionProps2.duration,
18624
+ delay = _getTransitionProps2.delay;
18625
+
18626
+ var duration;
18627
+
18628
+ if (timeout === 'auto') {
18629
+ duration = theme.transitions.getAutoHeightDuration(node.clientHeight);
18630
+ autoTimeout.current = duration;
18631
+ } else {
18632
+ duration = transitionDuration;
18633
+ }
18634
+
18635
+ node.style.transition = [theme.transitions.create('opacity', {
18636
+ duration: duration,
18637
+ delay: delay
18638
+ }), theme.transitions.create('transform', {
18639
+ duration: duration * 0.666,
18640
+ delay: delay || duration * 0.333
18641
+ })].join(',');
18642
+ node.style.opacity = '0';
18643
+ node.style.transform = getScale(0.75);
18644
+
18645
+ if (onExit) {
18646
+ onExit(node);
18647
+ }
18648
+ };
18649
+
18650
+ var addEndListener = function addEndListener(_, next) {
18651
+ if (timeout === 'auto') {
18652
+ timer.current = setTimeout(next, autoTimeout.current || 0);
18653
+ }
18654
+ };
18655
+
18656
+ __WEBPACK_IMPORTED_MODULE_2_react__["useEffect"](function () {
18657
+ return function () {
18658
+ clearTimeout(timer.current);
18659
+ };
18660
+ }, []);
18661
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](TransitionComponent, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
18662
+ appear: true,
18663
+ in: inProp,
18664
+ onEnter: handleEnter,
18665
+ onExit: handleExit,
18666
+ addEndListener: addEndListener,
18667
+ timeout: timeout === 'auto' ? null : timeout
18668
+ }, other), function (state, childProps) {
18669
+ return __WEBPACK_IMPORTED_MODULE_2_react__["cloneElement"](children, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
18670
+ style: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
18671
+ opacity: 0,
18672
+ transform: getScale(0.75),
18673
+ visibility: state === 'exited' && !inProp ? 'hidden' : undefined
18674
+ }, styles[state], {}, style, {}, children.props.style),
18675
+ ref: handleRef
18676
+ }, childProps));
18677
+ });
18678
+ });
18679
+ process.env.NODE_ENV !== "production" ? Grow.propTypes = {
18680
+ // ----------------------------- Warning --------------------------------
18681
+ // | These PropTypes are generated from the TypeScript type definitions |
18682
+ // | To update them edit the d.ts file and run "yarn proptypes" |
18683
+ // ----------------------------------------------------------------------
18684
+
18685
+ /**
18686
+ * A single child content element.
18687
+ */
18688
+ children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.element,
18689
+
18690
+ /**
18691
+ * If `true`, show the component; triggers the enter or exit animation.
18692
+ */
18693
+ in: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
18694
+
18695
+ /**
18696
+ * @ignore
18697
+ */
18698
+ onEnter: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
18699
+
18700
+ /**
18701
+ * @ignore
18702
+ */
18703
+ onExit: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
18704
+
18705
+ /**
18706
+ * @ignore
18707
+ */
18708
+ style: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
18709
+
18710
+ /**
18711
+ * The duration for the transition, in milliseconds.
18712
+ * You may specify a single timeout for all transitions, or individually with an object.
18713
+ *
18714
+ * Set to 'auto' to automatically calculate transition time based on height.
18715
+ */
18716
+ timeout: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(['auto']), __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.shape({
18717
+ appear: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number,
18718
+ enter: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number,
18719
+ exit: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number
18720
+ })])
18721
+ } : void 0;
18722
+ Grow.muiSupportAuto = true;
18723
+ /* harmony default export */ __webpack_exports__["a"] = (Grow);
18724
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
18725
+
18726
+ /***/ }),
18727
+ /* 198 */
18728
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
18729
+
18730
+ "use strict";
18731
+ /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export setTranslateValue */
18732
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
18733
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
18734
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
18735
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
18736
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
18737
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
18738
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_dom__ = __webpack_require__(10);
18739
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react_dom__);
18740
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__utils_debounce__ = __webpack_require__(38);
18741
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_transition_group__ = __webpack_require__(47);
18742
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__material_ui_utils__ = __webpack_require__(7);
18743
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_useForkRef__ = __webpack_require__(11);
18744
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__styles_useTheme__ = __webpack_require__(13);
18745
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__styles_transitions__ = __webpack_require__(28);
18746
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__transitions_utils__ = __webpack_require__(48);
18747
+
18748
+
18749
+
18750
+
18751
+
18752
+
18753
+
18754
+
18755
+
18756
+
18757
+
18758
+ // Translate the node so he can't be seen on the screen.
18759
+ // Later, we gonna translate back the node to his original location
18760
+ // with `none`.`
18761
+
18762
+ function getTranslateValue(direction, node) {
18763
+ var rect = node.getBoundingClientRect();
18764
+ var transform;
18765
+
18766
+ if (node.fakeTransform) {
18767
+ transform = node.fakeTransform;
18768
+ } else {
18769
+ var computedStyle = window.getComputedStyle(node);
18770
+ transform = computedStyle.getPropertyValue('-webkit-transform') || computedStyle.getPropertyValue('transform');
18771
+ }
18772
+
18773
+ var offsetX = 0;
18774
+ var offsetY = 0;
18775
+
18776
+ if (transform && transform !== 'none' && typeof transform === 'string') {
18777
+ var transformValues = transform.split('(')[1].split(')')[0].split(',');
18778
+ offsetX = parseInt(transformValues[4], 10);
18779
+ offsetY = parseInt(transformValues[5], 10);
18780
+ }
18781
+
18782
+ if (direction === 'left') {
18783
+ return "translateX(".concat(window.innerWidth, "px) translateX(-").concat(rect.left - offsetX, "px)");
18784
+ }
18785
+
18786
+ if (direction === 'right') {
18787
+ return "translateX(-".concat(rect.left + rect.width - offsetX, "px)");
18788
+ }
18789
+
18790
+ if (direction === 'up') {
18791
+ return "translateY(".concat(window.innerHeight, "px) translateY(-").concat(rect.top - offsetY, "px)");
18792
+ } // direction === 'down'
18793
+
18794
+
18795
+ return "translateY(-".concat(rect.top + rect.height - offsetY, "px)");
18796
+ }
18797
+
18798
+ function setTranslateValue(direction, node) {
18799
+ var transform = getTranslateValue(direction, node);
18800
+
18801
+ if (transform) {
18802
+ node.style.webkitTransform = transform;
18803
+ node.style.transform = transform;
18804
+ }
18805
+ }
18806
+ var defaultTimeout = {
18807
+ enter: __WEBPACK_IMPORTED_MODULE_10__styles_transitions__["b" /* duration */].enteringScreen,
18808
+ exit: __WEBPACK_IMPORTED_MODULE_10__styles_transitions__["b" /* duration */].leavingScreen
18809
+ };
18810
+ /**
18811
+ * The Slide transition is used by the [Drawer](/components/drawers/) component.
18812
+ * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
18813
+ */
18814
+
18815
+ var Slide = __WEBPACK_IMPORTED_MODULE_2_react__["forwardRef"](function Slide(props, ref) {
18816
+ var children = props.children,
18817
+ _props$direction = props.direction,
18818
+ direction = _props$direction === void 0 ? 'down' : _props$direction,
18819
+ inProp = props.in,
18820
+ onEnter = props.onEnter,
18821
+ onEntering = props.onEntering,
18822
+ onExit = props.onExit,
18823
+ onExited = props.onExited,
18824
+ style = props.style,
18825
+ _props$timeout = props.timeout,
18826
+ timeout = _props$timeout === void 0 ? defaultTimeout : _props$timeout,
18827
+ _props$TransitionComp = props.TransitionComponent,
18828
+ TransitionComponent = _props$TransitionComp === void 0 ? __WEBPACK_IMPORTED_MODULE_6_react_transition_group__["a" /* Transition */] : _props$TransitionComp,
18829
+ other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["children", "direction", "in", "onEnter", "onEntering", "onExit", "onExited", "style", "timeout", "TransitionComponent"]);
18830
+
18831
+ var theme = Object(__WEBPACK_IMPORTED_MODULE_9__styles_useTheme__["a" /* default */])();
18832
+ var childrenRef = __WEBPACK_IMPORTED_MODULE_2_react__["useRef"](null);
18833
+ /**
18834
+ * used in cloneElement(children, { ref: handleRef })
18835
+ */
18836
+
18837
+ var handleOwnRef = __WEBPACK_IMPORTED_MODULE_2_react__["useCallback"](function (instance) {
18838
+ // #StrictMode ready
18839
+ childrenRef.current = __WEBPACK_IMPORTED_MODULE_4_react_dom__["findDOMNode"](instance);
18840
+ }, []);
18841
+ var handleRefIntermediary = Object(__WEBPACK_IMPORTED_MODULE_8__utils_useForkRef__["a" /* default */])(children.ref, handleOwnRef);
18842
+ var handleRef = Object(__WEBPACK_IMPORTED_MODULE_8__utils_useForkRef__["a" /* default */])(handleRefIntermediary, ref);
18843
+
18844
+ var handleEnter = function handleEnter(_, isAppearing) {
18845
+ var node = childrenRef.current;
18846
+ setTranslateValue(direction, node);
18847
+ Object(__WEBPACK_IMPORTED_MODULE_11__transitions_utils__["b" /* reflow */])(node);
18848
+
18849
+ if (onEnter) {
18850
+ onEnter(node, isAppearing);
18851
+ }
18852
+ };
18853
+
18854
+ var handleEntering = function handleEntering(_, isAppearing) {
18855
+ var node = childrenRef.current;
18856
+ var transitionProps = Object(__WEBPACK_IMPORTED_MODULE_11__transitions_utils__["a" /* getTransitionProps */])({
18857
+ timeout: timeout,
18858
+ style: style
18859
+ }, {
18860
+ mode: 'enter'
18861
+ });
18862
+ node.style.webkitTransition = theme.transitions.create('-webkit-transform', Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, transitionProps, {
18863
+ easing: theme.transitions.easing.easeOut
18864
+ }));
18865
+ node.style.transition = theme.transitions.create('transform', Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, transitionProps, {
18866
+ easing: theme.transitions.easing.easeOut
18867
+ }));
18868
+ node.style.webkitTransform = 'none';
18869
+ node.style.transform = 'none';
18870
+
18871
+ if (onEntering) {
18872
+ onEntering(node, isAppearing);
18873
+ }
18874
+ };
18875
+
18876
+ var handleExit = function handleExit() {
18877
+ var node = childrenRef.current;
18878
+ var transitionProps = Object(__WEBPACK_IMPORTED_MODULE_11__transitions_utils__["a" /* getTransitionProps */])({
18879
+ timeout: timeout,
18880
+ style: style
18881
+ }, {
18882
+ mode: 'exit'
18883
+ });
18884
+ node.style.webkitTransition = theme.transitions.create('-webkit-transform', Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, transitionProps, {
18885
+ easing: theme.transitions.easing.sharp
18886
+ }));
18887
+ node.style.transition = theme.transitions.create('transform', Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, transitionProps, {
18888
+ easing: theme.transitions.easing.sharp
18889
+ }));
18890
+ setTranslateValue(direction, node);
18891
+
18892
+ if (onExit) {
18893
+ onExit(node);
18894
+ }
18895
+ };
18896
+
18897
+ var handleExited = function handleExited() {
18898
+ var node = childrenRef.current; // No need for transitions when the component is hidden
18899
+
18900
+ node.style.webkitTransition = '';
18901
+ node.style.transition = '';
18902
+
18903
+ if (onExited) {
18904
+ onExited(node);
18905
+ }
18906
+ };
18907
+
18908
+ var updatePosition = __WEBPACK_IMPORTED_MODULE_2_react__["useCallback"](function () {
18909
+ if (childrenRef.current) {
18910
+ setTranslateValue(direction, childrenRef.current);
18911
+ }
18912
+ }, [direction]);
18913
+ __WEBPACK_IMPORTED_MODULE_2_react__["useEffect"](function () {
18914
+ // Skip configuration where the position is screen size invariant.
18915
+ if (inProp || direction === 'down' || direction === 'right') {
18916
+ return undefined;
18917
+ }
18918
+
18919
+ var handleResize = Object(__WEBPACK_IMPORTED_MODULE_5__utils_debounce__["a" /* default */])(function () {
18920
+ if (childrenRef.current) {
18921
+ setTranslateValue(direction, childrenRef.current);
18922
+ }
18923
+ });
18924
+ window.addEventListener('resize', handleResize);
18925
+ return function () {
18926
+ handleResize.clear();
18927
+ window.removeEventListener('resize', handleResize);
18928
+ };
18929
+ }, [direction, inProp]);
18930
+ __WEBPACK_IMPORTED_MODULE_2_react__["useEffect"](function () {
18931
+ if (!inProp) {
18932
+ // We need to update the position of the drawer when the direction change and
18933
+ // when it's hidden.
18934
+ updatePosition();
18935
+ }
18936
+ }, [inProp, updatePosition]);
18937
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](TransitionComponent, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
18938
+ onEnter: handleEnter,
18939
+ onEntering: handleEntering,
18940
+ onExit: handleExit,
18941
+ onExited: handleExited,
18942
+ appear: true,
18943
+ in: inProp,
18944
+ timeout: timeout
18945
+ }, other), function (state, childProps) {
18946
+ return __WEBPACK_IMPORTED_MODULE_2_react__["cloneElement"](children, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
18947
+ ref: handleRef,
18948
+ style: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
18949
+ visibility: state === 'exited' && !inProp ? 'hidden' : undefined
18950
+ }, style, {}, children.props.style)
18951
+ }, childProps));
18952
+ });
18953
+ });
18954
+ process.env.NODE_ENV !== "production" ? Slide.propTypes = {
18955
+ // ----------------------------- Warning --------------------------------
18956
+ // | These PropTypes are generated from the TypeScript type definitions |
18957
+ // | To update them edit the d.ts file and run "yarn proptypes" |
18958
+ // ----------------------------------------------------------------------
18959
+
18960
+ /**
18961
+ * A single child content element.
18962
+ */
18963
+ children: __WEBPACK_IMPORTED_MODULE_7__material_ui_utils__["c" /* elementAcceptingRef */],
18964
+
18965
+ /**
18966
+ * Direction the child node will enter from.
18967
+ */
18968
+ direction: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(['down', 'left', 'right', 'up']),
18969
+
18970
+ /**
18971
+ * If `true`, show the component; triggers the enter or exit animation.
18972
+ */
18973
+ in: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
18974
+
18975
+ /**
18976
+ * @ignore
18977
+ */
18978
+ onEnter: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
18979
+
18980
+ /**
18981
+ * @ignore
18982
+ */
18983
+ onEntering: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
18984
+
18985
+ /**
18986
+ * @ignore
18987
+ */
18988
+ onExit: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
18989
+
18990
+ /**
18991
+ * @ignore
18992
+ */
18993
+ onExited: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
18994
+
18995
+ /**
18996
+ * @ignore
18997
+ */
18998
+ style: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
18999
+
19000
+ /**
19001
+ * The duration for the transition, in milliseconds.
19002
+ * You may specify a single timeout for all transitions, or individually with an object.
19003
+ */
19004
+ timeout: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.shape({
19005
+ appear: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number,
19006
+ enter: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number,
19007
+ exit: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number
19008
+ })])
19009
+ } : void 0;
19010
+ /* harmony default export */ __webpack_exports__["a"] = (Slide);
19011
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
19012
+
19013
+ /***/ }),
19014
+ /* 199 */
19015
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19016
+
19017
+ "use strict";
19018
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
19019
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
19020
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
19021
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
19022
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
19023
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
19024
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_transition_group__ = __webpack_require__(47);
19025
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__styles_transitions__ = __webpack_require__(28);
19026
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__styles_useTheme__ = __webpack_require__(13);
19027
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__transitions_utils__ = __webpack_require__(48);
19028
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__utils_useForkRef__ = __webpack_require__(11);
19029
+
19030
+
19031
+
19032
+
19033
+
19034
+
19035
+
19036
+
19037
+
19038
+ var styles = {
19039
+ entering: {
19040
+ transform: 'none'
19041
+ },
19042
+ entered: {
19043
+ transform: 'none'
19044
+ }
19045
+ };
19046
+ var defaultTimeout = {
19047
+ enter: __WEBPACK_IMPORTED_MODULE_5__styles_transitions__["b" /* duration */].enteringScreen,
19048
+ exit: __WEBPACK_IMPORTED_MODULE_5__styles_transitions__["b" /* duration */].leavingScreen
19049
+ };
19050
+ /**
19051
+ * The Zoom transition can be used for the floating variant of the
19052
+ * [Button](/components/buttons/#floating-action-buttons) component.
19053
+ * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
19054
+ */
19055
+
19056
+ var Zoom = __WEBPACK_IMPORTED_MODULE_2_react__["forwardRef"](function Zoom(props, ref) {
19057
+ var children = props.children,
19058
+ inProp = props.in,
19059
+ onEnter = props.onEnter,
19060
+ onExit = props.onExit,
19061
+ style = props.style,
19062
+ _props$timeout = props.timeout,
19063
+ timeout = _props$timeout === void 0 ? defaultTimeout : _props$timeout,
19064
+ _props$TransitionComp = props.TransitionComponent,
19065
+ TransitionComponent = _props$TransitionComp === void 0 ? __WEBPACK_IMPORTED_MODULE_4_react_transition_group__["a" /* Transition */] : _props$TransitionComp,
19066
+ other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["children", "in", "onEnter", "onExit", "style", "timeout", "TransitionComponent"]);
19067
+
19068
+ var theme = Object(__WEBPACK_IMPORTED_MODULE_6__styles_useTheme__["a" /* default */])();
19069
+ var handleRef = Object(__WEBPACK_IMPORTED_MODULE_8__utils_useForkRef__["a" /* default */])(children.ref, ref);
19070
+
19071
+ var handleEnter = function handleEnter(node, isAppearing) {
19072
+ Object(__WEBPACK_IMPORTED_MODULE_7__transitions_utils__["b" /* reflow */])(node); // So the animation always start from the start.
19073
+
19074
+ var transitionProps = Object(__WEBPACK_IMPORTED_MODULE_7__transitions_utils__["a" /* getTransitionProps */])({
19075
+ style: style,
19076
+ timeout: timeout
19077
+ }, {
19078
+ mode: 'enter'
19079
+ });
19080
+ node.style.webkitTransition = theme.transitions.create('transform', transitionProps);
19081
+ node.style.transition = theme.transitions.create('transform', transitionProps);
19082
+
19083
+ if (onEnter) {
19084
+ onEnter(node, isAppearing);
19085
+ }
19086
+ };
19087
+
19088
+ var handleExit = function handleExit(node) {
19089
+ var transitionProps = Object(__WEBPACK_IMPORTED_MODULE_7__transitions_utils__["a" /* getTransitionProps */])({
19090
+ style: style,
19091
+ timeout: timeout
19092
+ }, {
19093
+ mode: 'exit'
19094
+ });
19095
+ node.style.webkitTransition = theme.transitions.create('transform', transitionProps);
19096
+ node.style.transition = theme.transitions.create('transform', transitionProps);
19097
+
19098
+ if (onExit) {
19099
+ onExit(node);
19100
+ }
19101
+ };
19102
+
19103
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](TransitionComponent, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
19104
+ appear: true,
19105
+ in: inProp,
19106
+ onEnter: handleEnter,
19107
+ onExit: handleExit,
19108
+ timeout: timeout
19109
+ }, other), function (state, childProps) {
19110
+ return __WEBPACK_IMPORTED_MODULE_2_react__["cloneElement"](children, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
19111
+ style: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
19112
+ transform: 'scale(0)',
19113
+ visibility: state === 'exited' && !inProp ? 'hidden' : undefined
19114
+ }, styles[state], {}, style, {}, children.props.style),
19115
+ ref: handleRef
19116
+ }, childProps));
19117
+ });
19118
+ });
19119
+ process.env.NODE_ENV !== "production" ? Zoom.propTypes = {
19120
+ // ----------------------------- Warning --------------------------------
19121
+ // | These PropTypes are generated from the TypeScript type definitions |
19122
+ // | To update them edit the d.ts file and run "yarn proptypes" |
19123
+ // ----------------------------------------------------------------------
19124
+
19125
+ /**
19126
+ * A single child content element.
19127
+ */
19128
+ children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.element,
19129
+
19130
+ /**
19131
+ * If `true`, the component will transition in.
19132
+ */
19133
+ in: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
19134
+
19135
+ /**
19136
+ * @ignore
19137
+ */
19138
+ onEnter: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
19139
+
19140
+ /**
19141
+ * @ignore
19142
+ */
19143
+ onExit: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
19144
+
19145
+ /**
19146
+ * @ignore
19147
+ */
19148
+ style: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
19149
+
19150
+ /**
19151
+ * The duration for the transition, in milliseconds.
19152
+ * You may specify a single timeout for all transitions, or individually with an object.
19153
+ */
19154
+ timeout: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.shape({
19155
+ appear: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number,
19156
+ enter: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number,
19157
+ exit: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number
19158
+ })])
19159
+ } : void 0;
19160
+ /* harmony default export */ __webpack_exports__["a"] = (Zoom);
19161
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
19162
+
19163
+ /***/ }),
19164
+ /* 200 */
19165
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19166
+
19167
+ "use strict";
19168
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
19169
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_ui_styles__ = __webpack_require__(20);
19170
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__defaultTheme__ = __webpack_require__(52);
19171
+
19172
+
19173
+
19174
+
19175
+ var styled = function styled(Component) {
19176
+ var componentCreator = Object(__WEBPACK_IMPORTED_MODULE_1__material_ui_styles__["e" /* styled */])(Component);
19177
+ return function (style, options) {
19178
+ return componentCreator(style, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
19179
+ defaultTheme: __WEBPACK_IMPORTED_MODULE_2__defaultTheme__["a" /* default */]
19180
+ }, options));
19181
+ };
19182
+ };
19183
+
19184
+ /* harmony default export */ __webpack_exports__["a"] = (styled);
19185
+
19186
+ /***/ }),
19187
+ /* 201 */
19188
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19189
+
19190
+ "use strict";
19191
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
19192
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
19193
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_ui_core_utils__ = __webpack_require__(9);
19194
+
19195
+
19196
+ /**
19197
+ * @ignore - internal component.
19198
+ */
19199
+
19200
+ /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_1__material_ui_core_utils__["b" /* createSvgIcon */])( /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("path", {
19201
+ d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
19202
+ }), 'Close'));
19203
+
19204
+ /***/ }),
19205
+ /* 202 */
19206
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19207
+
19208
+ "use strict";
19209
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__AlertTitle__ = __webpack_require__(451);
19210
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__AlertTitle__["a"]; });
19211
+
19212
+
19213
+ /***/ }),
19214
+ /* 203 */
19215
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19216
+
19217
+ "use strict";
19218
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__AppBar__ = __webpack_require__(466);
19219
+ /* unused harmony reexport default */
19220
+
19221
+
19222
+ /***/ }),
19223
+ /* 204 */
19224
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19225
+
19226
+ "use strict";
19227
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Badge__ = __webpack_require__(470);
19228
+ /* unused harmony reexport default */
19229
+
19230
+
19231
+ /***/ }),
19232
+ /* 205 */
19233
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19234
+
19235
+ "use strict";
19236
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__BottomNavigation__ = __webpack_require__(471);
19237
+ /* unused harmony reexport default */
19238
+
19239
+
19240
+ /***/ }),
19241
+ /* 206 */
19242
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19243
+
19244
+ "use strict";
19245
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__BottomNavigationAction__ = __webpack_require__(472);
19246
+ /* unused harmony reexport default */
19247
+
19248
+
19249
+ /***/ }),
19250
+ /* 207 */
19251
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19252
+
19253
+ "use strict";
19254
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Box__ = __webpack_require__(473);
19255
+ /* unused harmony reexport default */
19256
+ /* unused harmony reexport styleFunction */
19257
+
19258
+
19259
+ /***/ }),
19260
+ /* 208 */
19261
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19262
+
19263
+ "use strict";
19264
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Breadcrumbs__ = __webpack_require__(474);
19265
+ /* unused harmony reexport default */
19266
+
19267
+
19268
+ /***/ }),
19269
+ /* 209 */
19270
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19271
+
19272
+ "use strict";
19273
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ButtonGroup__ = __webpack_require__(479);
19274
+ /* unused harmony reexport default */
19275
+
19276
+
19277
+ /***/ }),
19278
+ /* 210 */
19279
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19280
+
19281
+ "use strict";
19282
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Card__ = __webpack_require__(480);
19283
+ /* unused harmony reexport default */
19284
+
19285
+
19286
+ /***/ }),
19287
+ /* 211 */
19288
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19289
+
19290
+ "use strict";
19291
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CardActionArea__ = __webpack_require__(481);
19292
+ /* unused harmony reexport default */
19293
+
19294
+
19295
+ /***/ }),
19296
+ /* 212 */
19297
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19298
+
19299
+ "use strict";
19300
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CardActions__ = __webpack_require__(482);
19301
+ /* unused harmony reexport default */
19302
+
19303
+
19304
+ /***/ }),
19305
+ /* 213 */
19306
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19307
+
19308
+ "use strict";
19309
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CardContent__ = __webpack_require__(483);
19310
+ /* unused harmony reexport default */
19311
+
19312
+
19313
+ /***/ }),
19314
+ /* 214 */
19315
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19316
+
19317
+ "use strict";
19318
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CardHeader__ = __webpack_require__(484);
19319
+ /* unused harmony reexport default */
19320
+
19321
+
19322
+ /***/ }),
19323
+ /* 215 */
19324
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19325
+
19326
+ "use strict";
19327
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CardMedia__ = __webpack_require__(485);
19328
+ /* unused harmony reexport default */
19329
+
19330
+
19331
+ /***/ }),
19332
+ /* 216 */
19333
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19334
+
19335
+ "use strict";
19336
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Checkbox__ = __webpack_require__(486);
19337
+ /* unused harmony reexport default */
19338
+
19339
+
19340
+ /***/ }),
19341
+ /* 217 */
19342
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19343
+
19344
+ "use strict";
19345
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CircularProgress__ = __webpack_require__(492);
19346
+ /* unused harmony reexport default */
19347
+
19348
+
19349
+ /***/ }),
19350
+ /* 218 */
19351
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19352
+
19353
+ "use strict";
19354
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Container__ = __webpack_require__(494);
19355
+ /* unused harmony reexport default */
19356
+
19357
+
19358
+ /***/ }),
19359
+ /* 219 */
19360
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19361
+
19362
+ "use strict";
19363
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CssBaseline__ = __webpack_require__(495);
19364
+ /* unused harmony reexport default */
19365
+
19366
+
19367
+ /***/ }),
19368
+ /* 220 */
19369
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19370
+
19371
+ "use strict";
19372
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Dialog__ = __webpack_require__(496);
19373
+ /* unused harmony reexport default */
19374
+
19375
+
19376
+ /***/ }),
19377
+ /* 221 */
19378
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19379
+
19380
+ "use strict";
19381
+ /* harmony export (immutable) */ __webpack_exports__["a"] = ariaHidden;
19382
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ModalManager; });
19383
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_classCallCheck__ = __webpack_require__(97);
19384
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_createClass__ = __webpack_require__(66);
19385
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_toConsumableArray__ = __webpack_require__(18);
19386
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_getScrollbarSize__ = __webpack_require__(222);
19387
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__utils_ownerDocument__ = __webpack_require__(29);
19388
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__utils_ownerWindow__ = __webpack_require__(56);
19389
+
19390
+
19391
+
19392
+
19393
+
19394
+ // Is a vertical scrollbar displayed?
19395
+
19396
+ function isOverflowing(container) {
19397
+ var doc = Object(__WEBPACK_IMPORTED_MODULE_4__utils_ownerDocument__["a" /* default */])(container);
19398
+
19399
+ if (doc.body === container) {
19400
+ return Object(__WEBPACK_IMPORTED_MODULE_5__utils_ownerWindow__["a" /* default */])(doc).innerWidth > doc.documentElement.clientWidth;
19401
+ }
19402
+
19403
+ return container.scrollHeight > container.clientHeight;
19404
+ }
19405
+
19406
+ function ariaHidden(node, show) {
19407
+ if (show) {
19408
+ node.setAttribute('aria-hidden', 'true');
19409
+ } else {
19410
+ node.removeAttribute('aria-hidden');
19411
+ }
19412
+ }
19413
+
19414
+ function getPaddingRight(node) {
19415
+ return parseInt(window.getComputedStyle(node)['padding-right'], 10) || 0;
19416
+ }
19417
+
19418
+ function ariaHiddenSiblings(container, mountNode, currentNode) {
19419
+ var nodesToExclude = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
19420
+ var show = arguments.length > 4 ? arguments[4] : undefined;
19421
+ var blacklist = [mountNode, currentNode].concat(Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(nodesToExclude));
19422
+ var blacklistTagNames = ['TEMPLATE', 'SCRIPT', 'STYLE'];
19423
+ [].forEach.call(container.children, function (node) {
19424
+ if (node.nodeType === 1 && blacklist.indexOf(node) === -1 && blacklistTagNames.indexOf(node.tagName) === -1) {
19425
+ ariaHidden(node, show);
19426
+ }
19427
+ });
19428
+ }
19429
+
19430
+ function findIndexOf(containerInfo, callback) {
19431
+ var idx = -1;
19432
+ containerInfo.some(function (item, index) {
19433
+ if (callback(item)) {
19434
+ idx = index;
19435
+ return true;
19436
+ }
19437
+
19438
+ return false;
19439
+ });
19440
+ return idx;
19441
+ }
19442
+
19443
+ function handleContainer(containerInfo, props) {
19444
+ var restoreStyle = [];
19445
+ var restorePaddings = [];
19446
+ var container = containerInfo.container;
19447
+ var fixedNodes;
19448
+
19449
+ if (!props.disableScrollLock) {
19450
+ if (isOverflowing(container)) {
19451
+ // Compute the size before applying overflow hidden to avoid any scroll jumps.
19452
+ var scrollbarSize = Object(__WEBPACK_IMPORTED_MODULE_3__utils_getScrollbarSize__["a" /* default */])();
19453
+ restoreStyle.push({
19454
+ value: container.style.paddingRight,
19455
+ key: 'padding-right',
19456
+ el: container
19457
+ }); // Use computed style, here to get the real padding to add our scrollbar width.
19458
+
19459
+ container.style['padding-right'] = "".concat(getPaddingRight(container) + scrollbarSize, "px"); // .mui-fixed is a global helper.
19460
+
19461
+ fixedNodes = Object(__WEBPACK_IMPORTED_MODULE_4__utils_ownerDocument__["a" /* default */])(container).querySelectorAll('.mui-fixed');
19462
+ [].forEach.call(fixedNodes, function (node) {
19463
+ restorePaddings.push(node.style.paddingRight);
19464
+ node.style.paddingRight = "".concat(getPaddingRight(node) + scrollbarSize, "px");
19465
+ });
19466
+ } // Improve Gatsby support
19467
+ // https://css-tricks.com/snippets/css/force-vertical-scrollbar/
19468
+
19469
+
19470
+ var parent = container.parentElement;
19471
+ var scrollContainer = parent.nodeName === 'HTML' && window.getComputedStyle(parent)['overflow-y'] === 'scroll' ? parent : container; // Block the scroll even if no scrollbar is visible to account for mobile keyboard
19472
+ // screensize shrink.
19473
+
19474
+ restoreStyle.push({
19475
+ value: scrollContainer.style.overflow,
19476
+ key: 'overflow',
19477
+ el: scrollContainer
19478
+ });
19479
+ scrollContainer.style.overflow = 'hidden';
19480
+ }
19481
+
19482
+ var restore = function restore() {
19483
+ if (fixedNodes) {
19484
+ [].forEach.call(fixedNodes, function (node, i) {
19485
+ if (restorePaddings[i]) {
19486
+ node.style.paddingRight = restorePaddings[i];
19487
+ } else {
19488
+ node.style.removeProperty('padding-right');
19489
+ }
19490
+ });
19491
+ }
19492
+
19493
+ restoreStyle.forEach(function (_ref) {
19494
+ var value = _ref.value,
19495
+ el = _ref.el,
19496
+ key = _ref.key;
19497
+
19498
+ if (value) {
19499
+ el.style.setProperty(key, value);
19500
+ } else {
19501
+ el.style.removeProperty(key);
19502
+ }
19503
+ });
19504
+ };
19505
+
19506
+ return restore;
19507
+ }
19508
+
19509
+ function getHiddenSiblings(container) {
19510
+ var hiddenSiblings = [];
19511
+ [].forEach.call(container.children, function (node) {
19512
+ if (node.getAttribute && node.getAttribute('aria-hidden') === 'true') {
19513
+ hiddenSiblings.push(node);
19514
+ }
19515
+ });
19516
+ return hiddenSiblings;
19517
+ }
19518
+ /**
19519
+ * @ignore - do not document.
19520
+ *
19521
+ * Proper state management for containers and the modals in those containers.
19522
+ * Simplified, but inspired by react-overlay's ModalManager class.
19523
+ * Used by the Modal to ensure proper styling of containers.
19524
+ */
19525
+
19526
+
19527
+ var ModalManager = /*#__PURE__*/function () {
19528
+ function ModalManager() {
19529
+ Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, ModalManager);
19530
+
19531
+ // this.modals[modalIndex] = modal
19532
+ this.modals = []; // this.containers[containerIndex] = {
19533
+ // modals: [],
19534
+ // container,
19535
+ // restore: null,
19536
+ // }
19537
+
19538
+ this.containers = [];
19539
+ }
19540
+
19541
+ Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_createClass__["a" /* default */])(ModalManager, [{
19542
+ key: "add",
19543
+ value: function add(modal, container) {
19544
+ var modalIndex = this.modals.indexOf(modal);
19545
+
19546
+ if (modalIndex !== -1) {
19547
+ return modalIndex;
19548
+ }
19549
+
19550
+ modalIndex = this.modals.length;
19551
+ this.modals.push(modal); // If the modal we are adding is already in the DOM.
19552
+
19553
+ if (modal.modalRef) {
19554
+ ariaHidden(modal.modalRef, false);
19555
+ }
19556
+
19557
+ var hiddenSiblingNodes = getHiddenSiblings(container);
19558
+ ariaHiddenSiblings(container, modal.mountNode, modal.modalRef, hiddenSiblingNodes, true);
19559
+ var containerIndex = findIndexOf(this.containers, function (item) {
19560
+ return item.container === container;
19561
+ });
19562
+
19563
+ if (containerIndex !== -1) {
19564
+ this.containers[containerIndex].modals.push(modal);
19565
+ return modalIndex;
19566
+ }
19567
+
19568
+ this.containers.push({
19569
+ modals: [modal],
19570
+ container: container,
19571
+ restore: null,
19572
+ hiddenSiblingNodes: hiddenSiblingNodes
19573
+ });
19574
+ return modalIndex;
19575
+ }
19576
+ }, {
19577
+ key: "mount",
19578
+ value: function mount(modal, props) {
19579
+ var containerIndex = findIndexOf(this.containers, function (item) {
19580
+ return item.modals.indexOf(modal) !== -1;
19581
+ });
19582
+ var containerInfo = this.containers[containerIndex];
19583
+
19584
+ if (!containerInfo.restore) {
19585
+ containerInfo.restore = handleContainer(containerInfo, props);
19586
+ }
19587
+ }
19588
+ }, {
19589
+ key: "remove",
19590
+ value: function remove(modal) {
19591
+ var modalIndex = this.modals.indexOf(modal);
19592
+
19593
+ if (modalIndex === -1) {
19594
+ return modalIndex;
19595
+ }
19596
+
19597
+ var containerIndex = findIndexOf(this.containers, function (item) {
19598
+ return item.modals.indexOf(modal) !== -1;
19599
+ });
19600
+ var containerInfo = this.containers[containerIndex];
19601
+ containerInfo.modals.splice(containerInfo.modals.indexOf(modal), 1);
19602
+ this.modals.splice(modalIndex, 1); // If that was the last modal in a container, clean up the container.
19603
+
19604
+ if (containerInfo.modals.length === 0) {
19605
+ // The modal might be closed before it had the chance to be mounted in the DOM.
19606
+ if (containerInfo.restore) {
19607
+ containerInfo.restore();
19608
+ }
19609
+
19610
+ if (modal.modalRef) {
19611
+ // In case the modal wasn't in the DOM yet.
19612
+ ariaHidden(modal.modalRef, true);
19613
+ }
19614
+
19615
+ ariaHiddenSiblings(containerInfo.container, modal.mountNode, modal.modalRef, containerInfo.hiddenSiblingNodes, false);
19616
+ this.containers.splice(containerIndex, 1);
19617
+ } else {
19618
+ // Otherwise make sure the next top modal is visible to a screen reader.
19619
+ var nextTop = containerInfo.modals[containerInfo.modals.length - 1]; // as soon as a modal is adding its modalRef is undefined. it can't set
19620
+ // aria-hidden because the dom element doesn't exist either
19621
+ // when modal was unmounted before modalRef gets null
19622
+
19623
+ if (nextTop.modalRef) {
19624
+ ariaHidden(nextTop.modalRef, false);
19625
+ }
19626
+ }
19627
+
19628
+ return modalIndex;
19629
+ }
19630
+ }, {
19631
+ key: "isTopModal",
19632
+ value: function isTopModal(modal) {
19633
+ return this.modals.length > 0 && this.modals[this.modals.length - 1] === modal;
19634
+ }
19635
+ }]);
19636
+
19637
+ return ModalManager;
19638
+ }();
19639
+
19640
+
19641
+
19642
+ /***/ }),
19643
+ /* 222 */
19644
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19645
+
19646
+ "use strict";
19647
+ /* harmony export (immutable) */ __webpack_exports__["a"] = getScrollbarSize;
19648
+ // A change of the browser zoom change the scrollbar size.
19649
+ // Credit https://github.com/twbs/bootstrap/blob/3ffe3a5d82f6f561b82ff78d82b32a7d14aed558/js/src/modal.js#L512-L519
19650
+ function getScrollbarSize() {
19651
+ var scrollDiv = document.createElement('div');
19652
+ scrollDiv.style.width = '99px';
19653
+ scrollDiv.style.height = '99px';
19654
+ scrollDiv.style.position = 'absolute';
19655
+ scrollDiv.style.top = '-9999px';
19656
+ scrollDiv.style.overflow = 'scroll';
19657
+ document.body.appendChild(scrollDiv);
19658
+ var scrollbarSize = scrollDiv.offsetWidth - scrollDiv.clientWidth;
19659
+ document.body.removeChild(scrollDiv);
19660
+ return scrollbarSize;
19661
+ }
19662
+
19663
+ /***/ }),
19664
+ /* 223 */
19665
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19666
+
19667
+ "use strict";
19668
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DialogActions__ = __webpack_require__(501);
19669
+ /* unused harmony reexport default */
19670
+
19671
+
19672
+ /***/ }),
19673
+ /* 224 */
19674
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19675
+
19676
+ "use strict";
19677
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DialogContent__ = __webpack_require__(502);
19678
+ /* unused harmony reexport default */
19679
+
19680
+
19681
+ /***/ }),
19682
+ /* 225 */
19683
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19684
+
19685
+ "use strict";
19686
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DialogContentText__ = __webpack_require__(503);
19687
+ /* unused harmony reexport default */
19688
+
19689
+
19690
+ /***/ }),
19691
+ /* 226 */
19692
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19693
+
19694
+ "use strict";
19695
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DialogTitle__ = __webpack_require__(504);
19696
+ /* unused harmony reexport default */
19697
+
19698
+
19699
+ /***/ }),
19700
+ /* 227 */
19701
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19702
+
19703
+ "use strict";
19704
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Divider__ = __webpack_require__(505);
19705
+ /* unused harmony reexport default */
19706
+
19707
+
19708
+ /***/ }),
19709
+ /* 228 */
19710
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19711
+
19712
+ "use strict";
19713
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Drawer__ = __webpack_require__(111);
19714
+ /* unused harmony reexport default */
19715
+
19716
+
19717
+ /***/ }),
19718
+ /* 229 */
19719
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19720
+
19721
+ "use strict";
19722
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ExpansionPanel__ = __webpack_require__(506);
19723
+ /* unused harmony reexport default */
19724
+
19725
+
19726
+ /***/ }),
19727
+ /* 230 */
19728
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19729
+
19730
+ "use strict";
19731
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
19732
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
19733
+
19734
+ /**
19735
+ * @ignore - internal component.
19736
+ * @type {React.Context<{} | {expanded: boolean, disabled: boolean, toggle: () => void}>}
19737
+ */
19738
+
19739
+ var ExpansionPanelContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]({});
19740
+
19741
+ if (process.env.NODE_ENV !== 'production') {
19742
+ ExpansionPanelContext.displayName = 'ExpansionPanelContext';
19743
+ }
19744
+
19745
+ /* harmony default export */ __webpack_exports__["a"] = (ExpansionPanelContext);
19746
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
19747
+
19748
+ /***/ }),
19749
+ /* 231 */
19750
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19751
+
19752
+ "use strict";
19753
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ExpansionPanelActions__ = __webpack_require__(508);
19754
+ /* unused harmony reexport default */
19755
+
19756
+
19757
+ /***/ }),
19758
+ /* 232 */
19759
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19760
+
19761
+ "use strict";
19762
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ExpansionPanelDetails__ = __webpack_require__(509);
19763
+ /* unused harmony reexport default */
19764
+
19765
+
19766
+ /***/ }),
19767
+ /* 233 */
19768
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19769
+
19770
+ "use strict";
19771
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ExpansionPanelSummary__ = __webpack_require__(510);
19772
+ /* unused harmony reexport default */
19773
+
19774
+
19775
+ /***/ }),
19776
+ /* 234 */
19777
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19778
+
19779
+ "use strict";
19780
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormControlLabel__ = __webpack_require__(516);
19781
+ /* unused harmony reexport default */
19782
+
19783
+
19784
+ /***/ }),
19785
+ /* 235 */
19786
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19787
+
19788
+ "use strict";
19789
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Grid__ = __webpack_require__(520);
19790
+ /* unused harmony reexport default */
19791
+
19792
+
19793
+ /***/ }),
19794
+ /* 236 */
19795
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19796
+
19797
+ "use strict";
19798
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__GridList__ = __webpack_require__(521);
19799
+ /* unused harmony reexport default */
19800
+
19801
+
19802
+ /***/ }),
19803
+ /* 237 */
19804
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19805
+
19806
+ "use strict";
19807
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__GridListTile__ = __webpack_require__(522);
19808
+ /* unused harmony reexport default */
19809
+
19810
+
19811
+ /***/ }),
19812
+ /* 238 */
19813
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19814
+
19815
+ "use strict";
19816
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__GridListTileBar__ = __webpack_require__(523);
19817
+ /* unused harmony reexport default */
19818
+
19819
+
19820
+ /***/ }),
19821
+ /* 239 */
19822
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19823
+
19824
+ "use strict";
19825
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Hidden__ = __webpack_require__(524);
19826
+ /* unused harmony reexport default */
19827
+
19828
+
19829
+ /***/ }),
19830
+ /* 240 */
19831
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19832
+
19833
+ "use strict";
19834
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isWidthUp; });
19835
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isWidthDown; });
19836
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_toConsumableArray__ = __webpack_require__(18);
19837
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
19838
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
19839
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
19840
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
19841
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(2);
19842
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);
19843
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__material_ui_utils__ = __webpack_require__(7);
19844
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__material_ui_styles__ = __webpack_require__(20);
19845
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_hoist_non_react_statics__ = __webpack_require__(70);
19846
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_hoist_non_react_statics___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_hoist_non_react_statics__);
19847
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__styles_useTheme__ = __webpack_require__(13);
19848
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__styles_createBreakpoints__ = __webpack_require__(155);
19849
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__useMediaQuery__ = __webpack_require__(117);
19850
+
19851
+
19852
+
19853
+
19854
+
19855
+
19856
+
19857
+
19858
+
19859
+
19860
+ // By default, returns true if screen width is the same or greater than the given breakpoint.
19861
+
19862
+ var isWidthUp = function isWidthUp(breakpoint, width) {
19863
+ var inclusive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
19864
+
19865
+ if (inclusive) {
19866
+ return __WEBPACK_IMPORTED_MODULE_9__styles_createBreakpoints__["b" /* keys */].indexOf(breakpoint) <= __WEBPACK_IMPORTED_MODULE_9__styles_createBreakpoints__["b" /* keys */].indexOf(width);
19867
+ }
19868
+
19869
+ return __WEBPACK_IMPORTED_MODULE_9__styles_createBreakpoints__["b" /* keys */].indexOf(breakpoint) < __WEBPACK_IMPORTED_MODULE_9__styles_createBreakpoints__["b" /* keys */].indexOf(width);
19870
+ }; // By default, returns true if screen width is the same or less than the given breakpoint.
19871
+
19872
+ var isWidthDown = function isWidthDown(breakpoint, width) {
19873
+ var inclusive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
19874
+
19875
+ if (inclusive) {
19876
+ return __WEBPACK_IMPORTED_MODULE_9__styles_createBreakpoints__["b" /* keys */].indexOf(width) <= __WEBPACK_IMPORTED_MODULE_9__styles_createBreakpoints__["b" /* keys */].indexOf(breakpoint);
19877
+ }
19878
+
19879
+ return __WEBPACK_IMPORTED_MODULE_9__styles_createBreakpoints__["b" /* keys */].indexOf(width) < __WEBPACK_IMPORTED_MODULE_9__styles_createBreakpoints__["b" /* keys */].indexOf(breakpoint);
19880
+ };
19881
+ var useEnhancedEffect = typeof window === 'undefined' ? __WEBPACK_IMPORTED_MODULE_3_react__["useEffect"] : __WEBPACK_IMPORTED_MODULE_3_react__["useLayoutEffect"];
19882
+
19883
+ var withWidth = function withWidth() {
19884
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
19885
+ return function (Component) {
19886
+ var _options$withTheme = options.withTheme,
19887
+ withThemeOption = _options$withTheme === void 0 ? false : _options$withTheme,
19888
+ _options$noSSR = options.noSSR,
19889
+ noSSR = _options$noSSR === void 0 ? false : _options$noSSR,
19890
+ initialWidthOption = options.initialWidth;
19891
+
19892
+ function WithWidth(props) {
19893
+ var contextTheme = Object(__WEBPACK_IMPORTED_MODULE_8__styles_useTheme__["a" /* default */])();
19894
+ var theme = props.theme || contextTheme;
19895
+
19896
+ var _getThemeProps = Object(__WEBPACK_IMPORTED_MODULE_6__material_ui_styles__["b" /* getThemeProps */])({
19897
+ theme: theme,
19898
+ name: 'MuiWithWidth',
19899
+ props: Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, props)
19900
+ }),
19901
+ initialWidth = _getThemeProps.initialWidth,
19902
+ width = _getThemeProps.width,
19903
+ other = Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_getThemeProps, ["initialWidth", "width"]);
19904
+
19905
+ var _React$useState = __WEBPACK_IMPORTED_MODULE_3_react__["useState"](false),
19906
+ mountedState = _React$useState[0],
19907
+ setMountedState = _React$useState[1];
19908
+
19909
+ useEnhancedEffect(function () {
19910
+ setMountedState(true);
19911
+ }, []);
19912
+ /**
19913
+ * innerWidth |xs sm md lg xl
19914
+ * |-------|-------|-------|-------|------>
19915
+ * width | xs | sm | md | lg | xl
19916
+ */
19917
+
19918
+ var keys = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(theme.breakpoints.keys).reverse();
19919
+
19920
+ var widthComputed = keys.reduce(function (output, key) {
19921
+ // eslint-disable-next-line react-hooks/rules-of-hooks
19922
+ var matches = Object(__WEBPACK_IMPORTED_MODULE_10__useMediaQuery__["a" /* default */])(theme.breakpoints.up(key));
19923
+ return !output && matches ? key : output;
19924
+ }, null);
19925
+
19926
+ var more = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
19927
+ width: width || (mountedState || noSSR ? widthComputed : undefined) || initialWidth || initialWidthOption
19928
+ }, withThemeOption ? {
19929
+ theme: theme
19930
+ } : {}, {}, other); // When rendering the component on the server,
19931
+ // we have no idea about the client browser screen width.
19932
+ // In order to prevent blinks and help the reconciliation of the React tree
19933
+ // we are not rendering the child component.
19934
+ //
19935
+ // An alternative is to use the `initialWidth` property.
19936
+
19937
+
19938
+ if (more.width === undefined) {
19939
+ return null;
19940
+ }
19941
+
19942
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_3_react__["createElement"](Component, more);
19943
+ }
19944
+
19945
+ process.env.NODE_ENV !== "production" ? WithWidth.propTypes = {
19946
+ /**
19947
+ * As `window.innerWidth` is unavailable on the server,
19948
+ * we default to rendering an empty component during the first mount.
19949
+ * You might want to use an heuristic to approximate
19950
+ * the screen width of the client browser screen width.
19951
+ *
19952
+ * For instance, you could be using the user-agent or the client-hints.
19953
+ * https://caniuse.com/#search=client%20hint
19954
+ */
19955
+ initialWidth: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf(['xs', 'sm', 'md', 'lg', 'xl']),
19956
+
19957
+ /**
19958
+ * @ignore
19959
+ */
19960
+ theme: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
19961
+
19962
+ /**
19963
+ * Bypass the width calculation logic.
19964
+ */
19965
+ width: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf(['xs', 'sm', 'md', 'lg', 'xl'])
19966
+ } : void 0;
19967
+
19968
+ if (process.env.NODE_ENV !== 'production') {
19969
+ WithWidth.displayName = "WithWidth(".concat(Object(__WEBPACK_IMPORTED_MODULE_5__material_ui_utils__["f" /* getDisplayName */])(Component), ")");
19970
+ }
19971
+
19972
+ __WEBPACK_IMPORTED_MODULE_7_hoist_non_react_statics___default()(WithWidth, Component);
19973
+ return WithWidth;
19974
+ };
19975
+ };
19976
+
19977
+ /* harmony default export */ __webpack_exports__["a"] = (withWidth);
19978
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
19979
+
19980
+ /***/ }),
19981
+ /* 241 */
19982
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19983
+
19984
+ "use strict";
19985
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__InputAdornment__ = __webpack_require__(529);
19986
+ /* unused harmony reexport default */
19987
+
19988
+
19989
+ /***/ }),
19990
+ /* 242 */
19991
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
19992
+
19993
+ "use strict";
19994
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Link__ = __webpack_require__(532);
19995
+ /* unused harmony reexport default */
19996
+
19997
+
19998
+ /***/ }),
19999
+ /* 243 */
20000
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20001
+
20002
+ "use strict";
20003
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListItemAvatar__ = __webpack_require__(535);
20004
+ /* unused harmony reexport default */
20005
+
20006
+
20007
+ /***/ }),
20008
+ /* 244 */
20009
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20010
+
20011
+ "use strict";
20012
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListItemIcon__ = __webpack_require__(536);
20013
+ /* unused harmony reexport default */
20014
+
20015
+
20016
+ /***/ }),
20017
+ /* 245 */
20018
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20019
+
20020
+ "use strict";
20021
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListItemSecondaryAction__ = __webpack_require__(537);
20022
+ /* unused harmony reexport default */
20023
+
20024
+
20025
+ /***/ }),
20026
+ /* 246 */
20027
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20028
+
20029
+ "use strict";
20030
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListItemText__ = __webpack_require__(538);
20031
+ /* unused harmony reexport default */
20032
+
20033
+
20034
+ /***/ }),
20035
+ /* 247 */
20036
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20037
+
20038
+ "use strict";
20039
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Menu__ = __webpack_require__(248);
20040
+ /* unused harmony reexport default */
20041
+
20042
+
20043
+ /***/ }),
20044
+ /* 248 */
20045
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20046
+
20047
+ "use strict";
20048
+ /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export styles */
20049
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
20050
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
20051
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
20052
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
20053
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_is__ = __webpack_require__(14);
20054
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_is___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react_is__);
20055
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(2);
20056
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);
20057
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_clsx__ = __webpack_require__(5);
20058
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__styles_withStyles__ = __webpack_require__(6);
20059
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Popover__ = __webpack_require__(123);
20060
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__MenuList__ = __webpack_require__(124);
20061
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react_dom__ = __webpack_require__(10);
20062
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_react_dom__);
20063
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_setRef__ = __webpack_require__(39);
20064
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__styles_useTheme__ = __webpack_require__(13);
20065
+
20066
+
20067
+
20068
+
20069
+
20070
+
20071
+
20072
+
20073
+
20074
+
20075
+
20076
+
20077
+ var RTL_ORIGIN = {
20078
+ vertical: 'top',
20079
+ horizontal: 'right'
20080
+ };
20081
+ var LTR_ORIGIN = {
20082
+ vertical: 'top',
20083
+ horizontal: 'left'
20084
+ };
20085
+ var styles = {
20086
+ /* Styles applied to the `Paper` component. */
20087
+ paper: {
20088
+ // specZ: The maximum height of a simple menu should be one or more rows less than the view
20089
+ // height. This ensures a tapable area outside of the simple menu with which to dismiss
20090
+ // the menu.
20091
+ maxHeight: 'calc(100% - 96px)',
20092
+ // Add iOS momentum scrolling.
20093
+ WebkitOverflowScrolling: 'touch'
20094
+ },
20095
+
20096
+ /* Styles applied to the `List` component via `MenuList`. */
20097
+ list: {
20098
+ // We disable the focus ring for mouse, touch and keyboard users.
20099
+ outline: 0
20100
+ }
20101
+ };
20102
+ var Menu = __WEBPACK_IMPORTED_MODULE_2_react__["forwardRef"](function Menu(props, ref) {
20103
+ var _props$autoFocus = props.autoFocus,
20104
+ autoFocus = _props$autoFocus === void 0 ? true : _props$autoFocus,
20105
+ children = props.children,
20106
+ classes = props.classes,
20107
+ _props$disableAutoFoc = props.disableAutoFocusItem,
20108
+ disableAutoFocusItem = _props$disableAutoFoc === void 0 ? false : _props$disableAutoFoc,
20109
+ _props$MenuListProps = props.MenuListProps,
20110
+ MenuListProps = _props$MenuListProps === void 0 ? {} : _props$MenuListProps,
20111
+ onClose = props.onClose,
20112
+ onEntering = props.onEntering,
20113
+ open = props.open,
20114
+ _props$PaperProps = props.PaperProps,
20115
+ PaperProps = _props$PaperProps === void 0 ? {} : _props$PaperProps,
20116
+ PopoverClasses = props.PopoverClasses,
20117
+ _props$transitionDura = props.transitionDuration,
20118
+ transitionDuration = _props$transitionDura === void 0 ? 'auto' : _props$transitionDura,
20119
+ _props$variant = props.variant,
20120
+ variant = _props$variant === void 0 ? 'selectedMenu' : _props$variant,
20121
+ other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["autoFocus", "children", "classes", "disableAutoFocusItem", "MenuListProps", "onClose", "onEntering", "open", "PaperProps", "PopoverClasses", "transitionDuration", "variant"]);
20122
+
20123
+ var theme = Object(__WEBPACK_IMPORTED_MODULE_11__styles_useTheme__["a" /* default */])();
20124
+ var autoFocusItem = autoFocus && !disableAutoFocusItem && open;
20125
+ var menuListActionsRef = __WEBPACK_IMPORTED_MODULE_2_react__["useRef"](null);
20126
+ var contentAnchorRef = __WEBPACK_IMPORTED_MODULE_2_react__["useRef"](null);
20127
+
20128
+ var getContentAnchorEl = function getContentAnchorEl() {
20129
+ return contentAnchorRef.current;
20130
+ };
20131
+
20132
+ var handleEntering = function handleEntering(element, isAppearing) {
20133
+ if (menuListActionsRef.current) {
20134
+ menuListActionsRef.current.adjustStyleForScrollbar(element, theme);
20135
+ }
20136
+
20137
+ if (onEntering) {
20138
+ onEntering(element, isAppearing);
20139
+ }
20140
+ };
20141
+
20142
+ var handleListKeyDown = function handleListKeyDown(event) {
20143
+ if (event.key === 'Tab') {
20144
+ event.preventDefault();
20145
+
20146
+ if (onClose) {
20147
+ onClose(event, 'tabKeyDown');
20148
+ }
20149
+ }
20150
+ };
20151
+ /**
20152
+ * the index of the item should receive focus
20153
+ * in a `variant="selectedMenu"` it's the first `selected` item
20154
+ * otherwise it's the very first item.
20155
+ */
20156
+
20157
+
20158
+ var activeItemIndex = -1; // since we inject focus related props into children we have to do a lookahead
20159
+ // to check if there is a `selected` item. We're looking for the last `selected`
20160
+ // item and use the first valid item as a fallback
20161
+
20162
+ __WEBPACK_IMPORTED_MODULE_2_react__["Children"].map(children, function (child, index) {
20163
+ if (!__WEBPACK_IMPORTED_MODULE_2_react__["isValidElement"](child)) {
20164
+ return;
20165
+ }
20166
+
20167
+ if (process.env.NODE_ENV !== 'production') {
20168
+ if (Object(__WEBPACK_IMPORTED_MODULE_3_react_is__["isFragment"])(child)) {
20169
+ console.error(["Material-UI: the Menu component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
20170
+ }
20171
+ }
20172
+
20173
+ if (!child.props.disabled) {
20174
+ if (variant !== "menu" && child.props.selected) {
20175
+ activeItemIndex = index;
20176
+ } else if (activeItemIndex === -1) {
20177
+ activeItemIndex = index;
20178
+ }
20179
+ }
20180
+ });
20181
+ var items = __WEBPACK_IMPORTED_MODULE_2_react__["Children"].map(children, function (child, index) {
20182
+ if (index === activeItemIndex) {
20183
+ return __WEBPACK_IMPORTED_MODULE_2_react__["cloneElement"](child, {
20184
+ ref: function ref(instance) {
20185
+ // #StrictMode ready
20186
+ contentAnchorRef.current = __WEBPACK_IMPORTED_MODULE_9_react_dom__["findDOMNode"](instance);
20187
+ Object(__WEBPACK_IMPORTED_MODULE_10__utils_setRef__["a" /* default */])(child.ref, instance);
20188
+ }
20189
+ });
20190
+ }
20191
+
20192
+ return child;
20193
+ });
20194
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](__WEBPACK_IMPORTED_MODULE_7__Popover__["a" /* default */], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
20195
+ getContentAnchorEl: getContentAnchorEl,
20196
+ classes: PopoverClasses,
20197
+ onClose: onClose,
20198
+ onEntering: handleEntering,
20199
+ anchorOrigin: theme.direction === 'rtl' ? RTL_ORIGIN : LTR_ORIGIN,
20200
+ transformOrigin: theme.direction === 'rtl' ? RTL_ORIGIN : LTR_ORIGIN,
20201
+ PaperProps: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, PaperProps, {
20202
+ classes: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, PaperProps.classes, {
20203
+ root: classes.paper
20204
+ })
20205
+ }),
20206
+ open: open,
20207
+ ref: ref,
20208
+ transitionDuration: transitionDuration
20209
+ }, other), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](__WEBPACK_IMPORTED_MODULE_8__MenuList__["a" /* default */], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
20210
+ onKeyDown: handleListKeyDown,
20211
+ actions: menuListActionsRef,
20212
+ autoFocus: autoFocus && (activeItemIndex === -1 || disableAutoFocusItem),
20213
+ autoFocusItem: autoFocusItem,
20214
+ variant: variant
20215
+ }, MenuListProps, {
20216
+ className: Object(__WEBPACK_IMPORTED_MODULE_5_clsx__["a" /* default */])(classes.list, MenuListProps.className)
20217
+ }), items));
20218
+ });
20219
+ process.env.NODE_ENV !== "production" ? Menu.propTypes = {
20220
+ // ----------------------------- Warning --------------------------------
20221
+ // | These PropTypes are generated from the TypeScript type definitions |
20222
+ // | To update them edit the d.ts file and run "yarn proptypes" |
20223
+ // ----------------------------------------------------------------------
20224
+
20225
+ /**
20226
+ * The DOM element used to set the position of the menu.
20227
+ */
20228
+ anchorEl: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a
20229
+ /* @typescript-to-proptypes-ignore */
20230
+ .oneOfType([__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.instanceOf(typeof Element === 'undefined' ? Object : Element)]),
20231
+
20232
+ /**
20233
+ * If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled
20234
+ * children are not focusable. If you set this prop to `false` focus will be placed
20235
+ * on the parent modal container. This has severe accessibility implications
20236
+ * and should only be considered if you manage focus otherwise.
20237
+ */
20238
+ autoFocus: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
20239
+
20240
+ /**
20241
+ * Menu contents, normally `MenuItem`s.
20242
+ */
20243
+ children: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node,
20244
+
20245
+ /**
20246
+ * Override or extend the styles applied to the component.
20247
+ * See [CSS API](#css) below for more details.
20248
+ */
20249
+ classes: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
20250
+
20251
+ /**
20252
+ * When opening the menu will not focus the active item but the `[role="menu"]`
20253
+ * unless `autoFocus` is also set to `false`. Not using the default means not
20254
+ * following WAI-ARIA authoring practices. Please be considerate about possible
20255
+ * accessibility implications.
20256
+ */
20257
+ disableAutoFocusItem: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
20258
+
20259
+ /**
20260
+ * Props applied to the [`MenuList`](/api/menu-list/) element.
20261
+ */
20262
+ MenuListProps: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
20263
+
20264
+ /**
20265
+ * Callback fired when the component requests to be closed.
20266
+ *
20267
+ * @param {object} event The event source of the callback.
20268
+ * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`, `"tabKeyDown"`.
20269
+ */
20270
+ onClose: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
20271
+
20272
+ /**
20273
+ * Callback fired before the Menu enters.
20274
+ */
20275
+ onEnter: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
20276
+
20277
+ /**
20278
+ * Callback fired when the Menu has entered.
20279
+ */
20280
+ onEntered: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
20281
+
20282
+ /**
20283
+ * Callback fired when the Menu is entering.
20284
+ */
20285
+ onEntering: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
20286
+
20287
+ /**
20288
+ * Callback fired before the Menu exits.
20289
+ */
20290
+ onExit: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
20291
+
20292
+ /**
20293
+ * Callback fired when the Menu has exited.
20294
+ */
20295
+ onExited: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
20296
+
20297
+ /**
20298
+ * Callback fired when the Menu is exiting.
20299
+ */
20300
+ onExiting: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
20301
+
20302
+ /**
20303
+ * If `true`, the menu is visible.
20304
+ */
20305
+ open: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool.isRequired,
20306
+
20307
+ /**
20308
+ * @ignore
20309
+ */
20310
+ PaperProps: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
20311
+
20312
+ /**
20313
+ * `classes` prop applied to the [`Popover`](/api/popover/) element.
20314
+ */
20315
+ PopoverClasses: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
20316
+
20317
+ /**
20318
+ * The length of the transition in `ms`, or 'auto'
20319
+ */
20320
+ transitionDuration: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf(['auto']), __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.shape({
20321
+ appear: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number,
20322
+ enter: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number,
20323
+ exit: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number
20324
+ })]),
20325
+
20326
+ /**
20327
+ * The variant to use. Use `menu` to prevent selected items from impacting the initial focus
20328
+ * and the vertical alignment relative to the anchor element.
20329
+ */
20330
+ variant: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf(['menu', 'selectedMenu'])
20331
+ } : void 0;
20332
+ /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_6__styles_withStyles__["a" /* default */])(styles, {
20333
+ name: 'MuiMenu'
20334
+ })(Menu));
20335
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
20336
+
20337
+ /***/ }),
20338
+ /* 249 */
20339
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20340
+
20341
+ "use strict";
20342
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MobileStepper__ = __webpack_require__(543);
20343
+ /* unused harmony reexport default */
20344
+
20345
+
20346
+ /***/ }),
20347
+ /* 250 */
20348
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20349
+
20350
+ "use strict";
20351
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__NativeSelect__ = __webpack_require__(251);
20352
+ /* unused harmony reexport default */
20353
+
20354
+
20355
+ /***/ }),
20356
+ /* 251 */
20357
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20358
+
20359
+ "use strict";
20360
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return styles; });
20361
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
20362
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
20363
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
20364
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
20365
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
20366
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
20367
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__NativeSelectInput__ = __webpack_require__(252);
20368
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__styles_withStyles__ = __webpack_require__(6);
20369
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__FormControl_formControlState__ = __webpack_require__(51);
20370
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__FormControl_useFormControl__ = __webpack_require__(42);
20371
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__internal_svg_icons_ArrowDropDown__ = __webpack_require__(253);
20372
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__Input__ = __webpack_require__(61);
20373
+
20374
+
20375
+
20376
+
20377
+
20378
+
20379
+
20380
+
20381
+
20382
+
20383
+ var styles = function styles(theme) {
20384
+ return {
20385
+ /* Styles applied to the select component `root` class. */
20386
+ root: {},
20387
+
20388
+ /* Styles applied to the select component `select` class. */
20389
+ select: {
20390
+ '-moz-appearance': 'none',
20391
+ // Reset
20392
+ '-webkit-appearance': 'none',
20393
+ // Reset
20394
+ // When interacting quickly, the text can end up selected.
20395
+ // Native select can't be selected either.
20396
+ userSelect: 'none',
20397
+ borderRadius: 0,
20398
+ // Reset
20399
+ minWidth: 16,
20400
+ // So it doesn't collapse.
20401
+ cursor: 'pointer',
20402
+ '&:focus': {
20403
+ // Show that it's not an text input
20404
+ backgroundColor: theme.palette.type === 'light' ? 'rgba(0, 0, 0, 0.05)' : 'rgba(255, 255, 255, 0.05)',
20405
+ borderRadius: 0 // Reset Chrome style
20406
+
20407
+ },
20408
+ // Remove IE 11 arrow
20409
+ '&::-ms-expand': {
20410
+ display: 'none'
20411
+ },
20412
+ '&$disabled': {
20413
+ cursor: 'default'
20414
+ },
20415
+ '&[multiple]': {
20416
+ height: 'auto'
20417
+ },
20418
+ '&:not([multiple]) option, &:not([multiple]) optgroup': {
20419
+ backgroundColor: theme.palette.background.paper
20420
+ },
20421
+ '&&': {
20422
+ paddingRight: 24
20423
+ }
20424
+ },
20425
+
20426
+ /* Styles applied to the select component if `variant="filled"`. */
20427
+ filled: {
20428
+ '&&': {
20429
+ paddingRight: 32
20430
+ }
20431
+ },
20432
+
20433
+ /* Styles applied to the select component if `variant="outlined"`. */
20434
+ outlined: {
20435
+ borderRadius: theme.shape.borderRadius,
20436
+ '&&': {
20437
+ paddingRight: 32
20438
+ }
20439
+ },
20440
+
20441
+ /* Styles applied to the select component `selectMenu` class. */
20442
+ selectMenu: {
20443
+ height: 'auto',
20444
+ // Reset
20445
+ textOverflow: 'ellipsis',
20446
+ whiteSpace: 'nowrap',
20447
+ overflow: 'hidden'
20448
+ },
20449
+
20450
+ /* Pseudo-class applied to the select component `disabled` class. */
20451
+ disabled: {},
20452
+
20453
+ /* Styles applied to the icon component. */
20454
+ icon: {
20455
+ // We use a position absolute over a flexbox in order to forward the pointer events
20456
+ // to the input and to support wrapping tags..
20457
+ position: 'absolute',
20458
+ right: 0,
20459
+ top: 'calc(50% - 12px)',
20460
+ // Center vertically
20461
+ pointerEvents: 'none',
20462
+ // Don't block pointer events on the select under the icon.
20463
+ color: theme.palette.action.active,
20464
+ '&$disabled': {
20465
+ color: theme.palette.action.disabled
20466
+ }
20467
+ },
20468
+
20469
+ /* Styles applied to the icon component if the popup is open. */
20470
+ iconOpen: {
20471
+ transform: 'rotate(180deg)'
20472
+ },
20473
+
20474
+ /* Styles applied to the icon component if `variant="filled"`. */
20475
+ iconFilled: {
20476
+ right: 7
20477
+ },
20478
+
20479
+ /* Styles applied to the icon component if `variant="outlined"`. */
20480
+ iconOutlined: {
20481
+ right: 7
20482
+ }
20483
+ };
20484
+ };
20485
+ var defaultInput = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](__WEBPACK_IMPORTED_MODULE_9__Input__["a" /* default */], null);
20486
+ /**
20487
+ * An alternative to `<Select native />` with a much smaller bundle size footprint.
20488
+ */
20489
+
20490
+ var NativeSelect = __WEBPACK_IMPORTED_MODULE_2_react__["forwardRef"](function NativeSelect(props, ref) {
20491
+ var children = props.children,
20492
+ classes = props.classes,
20493
+ _props$IconComponent = props.IconComponent,
20494
+ IconComponent = _props$IconComponent === void 0 ? __WEBPACK_IMPORTED_MODULE_8__internal_svg_icons_ArrowDropDown__["a" /* default */] : _props$IconComponent,
20495
+ _props$input = props.input,
20496
+ input = _props$input === void 0 ? defaultInput : _props$input,
20497
+ inputProps = props.inputProps,
20498
+ variant = props.variant,
20499
+ other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["children", "classes", "IconComponent", "input", "inputProps", "variant"]);
20500
+
20501
+ var muiFormControl = Object(__WEBPACK_IMPORTED_MODULE_7__FormControl_useFormControl__["a" /* default */])();
20502
+ var fcs = Object(__WEBPACK_IMPORTED_MODULE_6__FormControl_formControlState__["a" /* default */])({
20503
+ props: props,
20504
+ muiFormControl: muiFormControl,
20505
+ states: ['variant']
20506
+ });
20507
+ return __WEBPACK_IMPORTED_MODULE_2_react__["cloneElement"](input, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
20508
+ // Most of the logic is implemented in `NativeSelectInput`.
20509
+ // The `Select` component is a simple API wrapper to expose something better to play with.
20510
+ inputComponent: __WEBPACK_IMPORTED_MODULE_4__NativeSelectInput__["a" /* default */],
20511
+ inputProps: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
20512
+ children: children,
20513
+ classes: classes,
20514
+ IconComponent: IconComponent,
20515
+ variant: fcs.variant,
20516
+ type: undefined
20517
+ }, inputProps, {}, input ? input.props.inputProps : {}),
20518
+ ref: ref
20519
+ }, other));
20520
+ });
20521
+ process.env.NODE_ENV !== "production" ? NativeSelect.propTypes = {
20522
+ // ----------------------------- Warning --------------------------------
20523
+ // | These PropTypes are generated from the TypeScript type definitions |
20524
+ // | To update them edit the d.ts file and run "yarn proptypes" |
20525
+ // ----------------------------------------------------------------------
20526
+
20527
+ /**
20528
+ * The option elements to populate the select with.
20529
+ * Can be some `<option>` elements.
20530
+ */
20531
+ children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node,
20532
+
20533
+ /**
20534
+ * Override or extend the styles applied to the component.
20535
+ * See [CSS API](#css) below for more details.
20536
+ */
20537
+ classes: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
20538
+
20539
+ /**
20540
+ * The icon that displays the arrow.
20541
+ */
20542
+ IconComponent: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.elementType,
20543
+
20544
+ /**
20545
+ * An `Input` element; does not have to be a material-ui specific `Input`.
20546
+ */
20547
+ input: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.element,
20548
+
20549
+ /**
20550
+ * Attributes applied to the `select` element.
20551
+ */
20552
+ inputProps: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
20553
+
20554
+ /**
20555
+ * Callback function fired when a menu item is selected.
20556
+ *
20557
+ * @param {object} event The event source of the callback.
20558
+ * You can pull out the new value by accessing `event.target.value` (string).
20559
+ */
20560
+ onChange: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
20561
+
20562
+ /**
20563
+ * The input value. The DOM API casts this to a string.
20564
+ */
20565
+ value: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.any,
20566
+
20567
+ /**
20568
+ * The variant to use.
20569
+ */
20570
+ variant: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(['filled', 'outlined', 'standard'])
20571
+ } : void 0;
20572
+ NativeSelect.muiName = 'Select';
20573
+ /* unused harmony default export */ var _unused_webpack_default_export = (Object(__WEBPACK_IMPORTED_MODULE_5__styles_withStyles__["a" /* default */])(styles, {
20574
+ name: 'MuiNativeSelect'
20575
+ })(NativeSelect));
20576
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
20577
+
20578
+ /***/ }),
20579
+ /* 252 */
20580
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20581
+
20582
+ "use strict";
20583
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
20584
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
20585
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
20586
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
20587
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
20588
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
20589
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_clsx__ = __webpack_require__(5);
20590
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__material_ui_utils__ = __webpack_require__(7);
20591
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__utils_capitalize__ = __webpack_require__(8);
20592
+
20593
+
20594
+
20595
+
20596
+
20597
+
20598
+
20599
+ /**
20600
+ * @ignore - internal component.
20601
+ */
20602
+
20603
+ var NativeSelectInput = __WEBPACK_IMPORTED_MODULE_2_react__["forwardRef"](function NativeSelectInput(props, ref) {
20604
+ var classes = props.classes,
20605
+ className = props.className,
20606
+ disabled = props.disabled,
20607
+ IconComponent = props.IconComponent,
20608
+ inputRef = props.inputRef,
20609
+ _props$variant = props.variant,
20610
+ variant = _props$variant === void 0 ? 'standard' : _props$variant,
20611
+ other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["classes", "className", "disabled", "IconComponent", "inputRef", "variant"]);
20612
+
20613
+ return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](__WEBPACK_IMPORTED_MODULE_2_react__["Fragment"], null, /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"]("select", Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
20614
+ className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.root, // TODO v5: merge root and select
20615
+ classes.select, classes[variant], className, disabled && classes.disabled),
20616
+ disabled: disabled,
20617
+ ref: inputRef || ref
20618
+ }, other)), props.multiple ? null : /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](IconComponent, {
20619
+ className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.icon, classes["icon".concat(Object(__WEBPACK_IMPORTED_MODULE_6__utils_capitalize__["a" /* default */])(variant))], disabled && classes.disabled)
20620
+ }));
20621
+ });
20622
+ process.env.NODE_ENV !== "production" ? NativeSelectInput.propTypes = {
20623
+ /**
20624
+ * The option elements to populate the select with.
20625
+ * Can be some `<option>` elements.
20626
+ */
20627
+ children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node,
20628
+
20629
+ /**
20630
+ * Override or extend the styles applied to the component.
20631
+ * See [CSS API](#css) below for more details.
20632
+ */
20633
+ classes: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object.isRequired,
20634
+
20635
+ /**
20636
+ * The CSS class name of the select element.
20637
+ */
20638
+ className: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string,
20639
+
20640
+ /**
20641
+ * If `true`, the select will be disabled.
20642
+ */
20643
+ disabled: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
20644
+
20645
+ /**
20646
+ * The icon that displays the arrow.
20647
+ */
20648
+ IconComponent: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.elementType.isRequired,
20649
+
20650
+ /**
20651
+ * Use that prop to pass a ref to the native select element.
20652
+ * @deprecated
20653
+ */
20654
+ inputRef: __WEBPACK_IMPORTED_MODULE_5__material_ui_utils__["h" /* refType */],
20655
+
20656
+ /**
20657
+ * @ignore
20658
+ */
20659
+ multiple: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
20660
+
20661
+ /**
20662
+ * Name attribute of the `select` or hidden `input` element.
20663
+ */
20664
+ name: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string,
20665
+
20666
+ /**
20667
+ * Callback function fired when a menu item is selected.
20668
+ *
20669
+ * @param {object} event The event source of the callback.
20670
+ * You can pull out the new value by accessing `event.target.value` (string).
20671
+ */
20672
+ onChange: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
20673
+
20674
+ /**
20675
+ * The input value.
20676
+ */
20677
+ value: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.any,
20678
+
20679
+ /**
20680
+ * The variant to use.
20681
+ */
20682
+ variant: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(['standard', 'outlined', 'filled'])
20683
+ } : void 0;
20684
+ /* harmony default export */ __webpack_exports__["a"] = (NativeSelectInput);
20685
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
20686
+
20687
+ /***/ }),
20688
+ /* 253 */
20689
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20690
+
20691
+ "use strict";
20692
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
20693
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
20694
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_createSvgIcon__ = __webpack_require__(19);
20695
+
20696
+
20697
+ /**
20698
+ * @ignore - internal component.
20699
+ */
20700
+
20701
+ /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_1__utils_createSvgIcon__["a" /* default */])( /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("path", {
20702
+ d: "M7 10l5 5 5-5z"
20703
+ }), 'ArrowDropDown'));
20704
+
20705
+ /***/ }),
20706
+ /* 254 */
20707
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20708
+
20709
+ "use strict";
20710
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Radio__ = __webpack_require__(550);
20711
+ /* unused harmony reexport default */
20712
+
20713
+
20714
+ /***/ }),
20715
+ /* 255 */
20716
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20717
+
20718
+ "use strict";
20719
+ /* harmony export (immutable) */ __webpack_exports__["a"] = useRadioGroup;
20720
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
20721
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
20722
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__RadioGroupContext__ = __webpack_require__(256);
20723
+
20724
+
20725
+ function useRadioGroup() {
20726
+ return __WEBPACK_IMPORTED_MODULE_0_react__["useContext"](__WEBPACK_IMPORTED_MODULE_1__RadioGroupContext__["a" /* default */]);
20727
+ }
20728
+
20729
+ /***/ }),
20730
+ /* 256 */
20731
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20732
+
20733
+ "use strict";
20734
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
20735
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
20736
+
20737
+ /**
20738
+ * @ignore - internal component.
20739
+ */
20740
+
20741
+ var RadioGroupContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]();
20742
+
20743
+ if (process.env.NODE_ENV !== 'production') {
20744
+ RadioGroupContext.displayName = 'RadioGroupContext';
20745
+ }
20746
+
20747
+ /* harmony default export */ __webpack_exports__["a"] = (RadioGroupContext);
20748
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
20749
+
20750
+ /***/ }),
20751
+ /* 257 */
20752
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20753
+
20754
+ "use strict";
20755
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__RadioGroup__ = __webpack_require__(554);
20756
+ /* unused harmony reexport default */
20757
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__useRadioGroup__ = __webpack_require__(255);
20758
+ /* unused harmony reexport useRadioGroup */
20759
+
20760
+
20761
+
20762
+ /***/ }),
20763
+ /* 258 */
20764
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20765
+
20766
+ "use strict";
20767
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__RootRef__ = __webpack_require__(555);
20768
+ /* unused harmony reexport default */
20769
+
20770
+
20771
+ /***/ }),
20772
+ /* 259 */
20773
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20774
+
20775
+ "use strict";
20776
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Slider__ = __webpack_require__(562);
20777
+ /* unused harmony reexport default */
20778
+
20779
+
20780
+ /***/ }),
20781
+ /* 260 */
20782
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20783
+
20784
+ "use strict";
20785
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Snackbar__ = __webpack_require__(564);
20786
+ /* unused harmony reexport default */
20787
+
20788
+
20789
+ /***/ }),
20790
+ /* 261 */
20791
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20792
+
20793
+ "use strict";
20794
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Step__ = __webpack_require__(566);
20795
+ /* unused harmony reexport default */
20796
+
20797
+
20798
+ /***/ }),
20799
+ /* 262 */
20800
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20801
+
20802
+ "use strict";
20803
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StepButton__ = __webpack_require__(567);
20804
+ /* unused harmony reexport default */
20805
+
20806
+
20807
+ /***/ }),
20808
+ /* 263 */
20809
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20810
+
20811
+ "use strict";
20812
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StepContent__ = __webpack_require__(573);
20813
+ /* unused harmony reexport default */
20814
+
20815
+
20816
+ /***/ }),
20817
+ /* 264 */
20818
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20819
+
20820
+ "use strict";
20821
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Stepper__ = __webpack_require__(574);
20822
+ /* unused harmony reexport default */
20823
+
20824
+
20825
+ /***/ }),
20826
+ /* 265 */
20827
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20828
+
20829
+ "use strict";
20830
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SwipeableDrawer__ = __webpack_require__(575);
20831
+ /* unused harmony reexport default */
20832
+
20833
+
20834
+ /***/ }),
20835
+ /* 266 */
20836
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20837
+
20838
+ "use strict";
20839
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Switch__ = __webpack_require__(577);
20840
+ /* unused harmony reexport default */
20841
+
20842
+
20843
+ /***/ }),
20844
+ /* 267 */
20845
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20846
+
20847
+ "use strict";
20848
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Tab__ = __webpack_require__(578);
20849
+ /* unused harmony reexport default */
20850
+
20851
+
20852
+ /***/ }),
20853
+ /* 268 */
20854
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20855
+
20856
+ "use strict";
20857
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Table__ = __webpack_require__(579);
20858
+ /* unused harmony reexport default */
20859
+
20860
+
20861
+ /***/ }),
20862
+ /* 269 */
20863
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20864
+
20865
+ "use strict";
20866
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
20867
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
20868
+
20869
+ /**
20870
+ * @ignore - internal component.
20871
+ */
20872
+
20873
+ var TableContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]();
20874
+
20875
+ if (process.env.NODE_ENV !== 'production') {
20876
+ TableContext.displayName = 'TableContext';
20877
+ }
20878
+
20879
+ /* harmony default export */ __webpack_exports__["a"] = (TableContext);
20880
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
20881
+
20882
+ /***/ }),
20883
+ /* 270 */
20884
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20885
+
20886
+ "use strict";
20887
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TableBody__ = __webpack_require__(580);
20888
+ /* unused harmony reexport default */
20889
+
20890
+
20891
+ /***/ }),
20892
+ /* 271 */
20893
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20894
+
20895
+ "use strict";
20896
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TableContainer__ = __webpack_require__(582);
20897
+ /* unused harmony reexport default */
20898
+
20899
+
20900
+ /***/ }),
20901
+ /* 272 */
20902
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20903
+
20904
+ "use strict";
20905
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TableFooter__ = __webpack_require__(583);
20906
+ /* unused harmony reexport default */
20907
+
20908
+
20909
+ /***/ }),
20910
+ /* 273 */
20911
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20912
+
20913
+ "use strict";
20914
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TableHead__ = __webpack_require__(584);
20915
+ /* unused harmony reexport default */
20916
+
20917
+
20918
+ /***/ }),
20919
+ /* 274 */
20920
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20921
+
20922
+ "use strict";
20923
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TablePagination__ = __webpack_require__(585);
20924
+ /* unused harmony reexport default */
20925
+
20926
+
20927
+ /***/ }),
20928
+ /* 275 */
20929
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20930
+
20931
+ "use strict";
20932
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
20933
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
20934
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_createSvgIcon__ = __webpack_require__(19);
20935
+
20936
+
20937
+ /**
20938
+ * @ignore - internal component.
20939
+ */
20940
+
20941
+ /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_1__utils_createSvgIcon__["a" /* default */])( /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("path", {
20942
+ d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
20943
+ }), 'KeyboardArrowLeft'));
20944
+
20945
+ /***/ }),
20946
+ /* 276 */
20947
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20948
+
20949
+ "use strict";
20950
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
20951
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
20952
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_createSvgIcon__ = __webpack_require__(19);
20953
+
20954
+
20955
+ /**
20956
+ * @ignore - internal component.
20957
+ */
20958
+
20959
+ /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_1__utils_createSvgIcon__["a" /* default */])( /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("path", {
20960
+ d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
20961
+ }), 'KeyboardArrowRight'));
20962
+
20963
+ /***/ }),
20964
+ /* 277 */
20965
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20966
+
20967
+ "use strict";
20968
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TableRow__ = __webpack_require__(588);
20969
+ /* unused harmony reexport default */
20970
+
20971
+
20972
+ /***/ }),
20973
+ /* 278 */
20974
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20975
+
20976
+ "use strict";
20977
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TableSortLabel__ = __webpack_require__(589);
20978
+ /* unused harmony reexport default */
20979
+
20980
+
20981
+ /***/ }),
20982
+ /* 279 */
20983
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20984
+
20985
+ "use strict";
20986
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Tabs__ = __webpack_require__(591);
20987
+ /* unused harmony reexport default */
20988
+
20989
+
20990
+ /***/ }),
20991
+ /* 280 */
20992
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
20993
+
20994
+ "use strict";
20995
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TextField__ = __webpack_require__(597);
20996
+ /* unused harmony reexport default */
20997
+
20998
+
20999
+ /***/ }),
21000
+ /* 281 */
21001
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
21002
+
21003
+ "use strict";
21004
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__useScrollTrigger__ = __webpack_require__(599);
21005
+ /* unused harmony reexport default */
21006
+
21007
+
21008
+ /***/ }),
21009
+ /* 282 */
21010
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
21011
+
21012
+ "use strict";
21013
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__withMobileDialog__ = __webpack_require__(600);
21014
+ /* unused harmony reexport default */
21015
+
21016
+
21017
+ /***/ }),
21018
+ /* 283 */
21019
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
21020
+
21021
+ "use strict";
21022
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Autocomplete__ = __webpack_require__(601);
21023
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__Autocomplete__["b"]; });
21024
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Autocomplete__["a"]; });
21025
+
21026
+
21027
+ /***/ }),
21028
+ /* 284 */
21029
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
21030
+
21031
+ "use strict";
21032
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__useAutocomplete__ = __webpack_require__(603);
21033
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__useAutocomplete__["b"]; });
21034
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__useAutocomplete__["a"]; });
21035
+
21036
+
21037
+ /***/ }),
21038
+ /* 285 */
21039
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
21040
+
21041
+ "use strict";
21042
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__AvatarGroup__ = __webpack_require__(604);
21043
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__AvatarGroup__["a"]; });
21044
+
21045
+
21046
+ /***/ }),
21047
+ /* 286 */
21048
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
21049
+
21050
+ "use strict";
21051
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Pagination__ = __webpack_require__(605);
21052
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Pagination__["a"]; });
21053
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__usePagination__ = __webpack_require__(287);
21054
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__usePagination__["a"]; });
21055
+
21056
+
21057
+
21058
+ /***/ }),
21059
+ /* 287 */
21060
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
21061
+
21062
+ "use strict";
21063
+ /* harmony export (immutable) */ __webpack_exports__["a"] = usePagination;
21064
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
21065
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_toConsumableArray__ = __webpack_require__(18);
21066
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_slicedToArray__ = __webpack_require__(27);
21067
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
21068
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__material_ui_core_utils__ = __webpack_require__(9);
21069
+
21070
+
21071
+
21072
+
21073
+
21074
+ function usePagination() {
21075
+ var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
21076
+
21077
+ // keep default values in sync with @default tags in Pagination.propTypes
21078
+ var _props$boundaryCount = props.boundaryCount,
21079
+ boundaryCountProp = _props$boundaryCount === void 0 ? 1 : _props$boundaryCount,
21080
+ _props$componentName = props.componentName,
21081
+ componentName = _props$componentName === void 0 ? 'usePagination' : _props$componentName,
21082
+ _props$count = props.count,
21083
+ count = _props$count === void 0 ? 1 : _props$count,
21084
+ _props$defaultPage = props.defaultPage,
21085
+ defaultPage = _props$defaultPage === void 0 ? 1 : _props$defaultPage,
21086
+ _props$disabled = props.disabled,
21087
+ disabled = _props$disabled === void 0 ? false : _props$disabled,
21088
+ _props$hideNextButton = props.hideNextButton,
21089
+ hideNextButton = _props$hideNextButton === void 0 ? false : _props$hideNextButton,
21090
+ _props$hidePrevButton = props.hidePrevButton,
21091
+ hidePrevButton = _props$hidePrevButton === void 0 ? false : _props$hidePrevButton,
21092
+ handleChange = props.onChange,
21093
+ pageProp = props.page,
21094
+ _props$showFirstButto = props.showFirstButton,
21095
+ showFirstButton = _props$showFirstButto === void 0 ? false : _props$showFirstButto,
21096
+ _props$showLastButton = props.showLastButton,
21097
+ showLastButton = _props$showLastButton === void 0 ? false : _props$showLastButton,
21098
+ _props$siblingCount = props.siblingCount,
21099
+ siblingCount = _props$siblingCount === void 0 ? 1 : _props$siblingCount,
21100
+ other = Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["boundaryCount", "componentName", "count", "defaultPage", "disabled", "hideNextButton", "hidePrevButton", "onChange", "page", "showFirstButton", "showLastButton", "siblingCount"]); // TODO: Update all formulae to remove this adjustment
21101
+
21102
+
21103
+ var boundaryCount = boundaryCountProp - 1;
21104
+
21105
+ var _useControlled = Object(__WEBPACK_IMPORTED_MODULE_4__material_ui_core_utils__["f" /* useControlled */])({
21106
+ controlled: pageProp,
21107
+ default: defaultPage,
21108
+ name: componentName,
21109
+ state: 'page'
21110
+ }),
21111
+ _useControlled2 = Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_slicedToArray__["a" /* default */])(_useControlled, 2),
21112
+ page = _useControlled2[0],
21113
+ setPageState = _useControlled2[1];
21114
+
21115
+ var handleClick = function handleClick(event, value) {
21116
+ if (!pageProp) {
21117
+ setPageState(value);
21118
+ }
21119
+
21120
+ if (handleChange) {
21121
+ handleChange(event, value);
21122
+ }
21123
+ }; // https://dev.to/namirsab/comment/2050
21124
+
21125
+
21126
+ var range = function range(start, end) {
21127
+ var length = end - start + 1;
21128
+ return Array.from({
21129
+ length: length
21130
+ }, function (_, i) {
21131
+ return start + i;
21132
+ });
21133
+ };
21134
+
21135
+ var startPages = range(1, Math.min(boundaryCount + 1, count));
21136
+ var endPages = range(Math.max(count - boundaryCount, boundaryCount + 2), count);
21137
+ var siblingsStart = Math.max(Math.min( // Natural start
21138
+ page - siblingCount, // Lower boundary when page is high
21139
+ count - boundaryCount - siblingCount * 2 - 2), // Greater than startPages
21140
+ boundaryCount + 3);
21141
+ var siblingsEnd = Math.min(Math.max( // Natural end
21142
+ page + siblingCount, // Upper boundary when page is low
21143
+ boundaryCount + siblingCount * 2 + 3), // Less than endPages
21144
+ endPages[0] - 2); // Basic list of items to render
21145
+ // e.g. itemList = ['first', 'previous', 1, 'ellipsis', 4, 5, 6, 'ellipsis', 10, 'next', 'last']
21146
+
21147
+ var itemList = [].concat(Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(showFirstButton ? ['first'] : []), Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(hidePrevButton ? [] : ['previous']), Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(startPages), Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(siblingsStart > boundaryCount + 3 ? ['start-ellipsis'] : 2 + boundaryCount < count - boundaryCount - 1 ? [2 + boundaryCount] : []), Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(range(siblingsStart, siblingsEnd)), Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(siblingsEnd < count - boundaryCount - 2 ? ['end-ellipsis'] : count - boundaryCount - 1 > boundaryCount + 1 ? [count - boundaryCount - 1] : []), Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(endPages), Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(hideNextButton ? [] : ['next']), Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(showLastButton ? ['last'] : [])); // Map the button type to its page number
21148
+
21149
+ var buttonPage = function buttonPage(type) {
21150
+ switch (type) {
21151
+ case 'first':
21152
+ return 1;
21153
+
21154
+ case 'previous':
21155
+ return page - 1;
21156
+
21157
+ case 'next':
21158
+ return page + 1;
21159
+
21160
+ case 'last':
21161
+ return count;
21162
+
21163
+ default:
21164
+ return null;
21165
+ }
21166
+ }; // Convert the basic item list to PaginationItem props objects
21167
+
21168
+
21169
+ var items = itemList.map(function (item) {
21170
+ return typeof item === 'number' ? {
21171
+ onClick: function onClick(event) {
21172
+ handleClick(event, item);
21173
+ },
21174
+ type: 'page',
21175
+ page: item,
21176
+ selected: item === page,
21177
+ disabled: disabled,
21178
+ 'aria-current': item === page ? 'true' : undefined
21179
+ } : {
21180
+ onClick: function onClick(event) {
21181
+ handleClick(event, buttonPage(item));
21182
+ },
21183
+ type: item,
21184
+ page: buttonPage(item),
21185
+ selected: false,
21186
+ disabled: disabled || item.indexOf('ellipsis') === -1 && (item === 'next' || item === 'last' ? page >= count : page <= 1)
21187
+ };
21188
+ });
21189
+ return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
21190
+ items: items
21191
+ }, other);
21192
+ }
21193
+
21194
+ /***/ }),
21195
+ /* 288 */
21196
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
21197
+
21198
+ "use strict";
21199
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Rating__ = __webpack_require__(611);
21200
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Rating__["a"]; });
21201
+
21202
+
21203
+ /***/ }),
21204
+ /* 289 */
21205
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
21206
+
21207
+ "use strict";
21208
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Skeleton__ = __webpack_require__(613);
21209
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Skeleton__["a"]; });
21210
+
21211
+
21212
+ /***/ }),
21213
+ /* 290 */
21214
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
21215
+
21216
+ "use strict";
21217
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SpeedDial__ = __webpack_require__(614);
21218
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__SpeedDial__["a"]; });
21219
+
21220
+
21221
+ /***/ }),
21222
+ /* 291 */
21223
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
21224
+
21225
+ "use strict";
21226
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SpeedDialAction__ = __webpack_require__(615);
21227
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__SpeedDialAction__["a"]; });
21228
+
21229
+
21230
+ /***/ }),
21231
+ /* 292 */
21232
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
21233
+
21234
+ "use strict";
21235
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SpeedDialIcon__ = __webpack_require__(616);
21236
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__SpeedDialIcon__["a"]; });
21237
+
21238
+
21239
+ /***/ }),
21240
+ /* 293 */
21241
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
21242
+
21243
+ "use strict";
21244
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ToggleButton__ = __webpack_require__(618);
21245
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ToggleButton__["a"]; });
21246
+
21247
+
21248
+ /***/ }),
21249
+ /* 294 */
21250
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
21251
+
21252
+ "use strict";
21253
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ToggleButtonGroup__ = __webpack_require__(619);
21254
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ToggleButtonGroup__["a"]; });
21255
+
21256
+
21257
+ /***/ }),
21258
+ /* 295 */
21259
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
21260
+
21261
+ "use strict";
21262
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TreeItem__ = __webpack_require__(621);
21263
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TreeItem__["a"]; });
21264
+
21265
+
21266
+ /***/ }),
21267
+ /* 296 */
21268
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
21269
+
21270
+ "use strict";
21271
+ /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
21272
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
21273
+
21274
+ /**
21275
+ * @ignore - internal component.
21276
+ */
21277
+
21278
+ var TreeViewContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]({});
21279
+
21280
+ if (process.env.NODE_ENV !== 'production') {
21281
+ TreeViewContext.displayName = 'TreeViewContext';
21282
+ }
21283
+
21284
+ /* harmony default export */ __webpack_exports__["a"] = (TreeViewContext);
21285
+ /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
21286
+
21287
+ /***/ }),
21288
+ /* 297 */
21289
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
21290
+
21291
+ "use strict";
21292
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TreeView__ = __webpack_require__(622);
21293
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TreeView__["a"]; });
21294
+
21295
+
21296
+ /***/ }),
21297
+ /* 298 */
21298
+ /***/ (function(module, exports, __webpack_require__) {
21299
+
21300
+ "use strict";
21301
+
21302
+
21303
+ var _react = _interopRequireWildcard(__webpack_require__(0));
21304
+
21305
+ var _reactDom = _interopRequireDefault(__webpack_require__(10));
21306
+
21307
+ var _reactRouterDom = __webpack_require__(33);
21308
+
21309
+ var _queryString = _interopRequireDefault(__webpack_require__(23));
21310
+
21311
+ var _QuadsAdCreateRouter = _interopRequireDefault(__webpack_require__(140));
21312
+
21313
+ __webpack_require__(411);
21314
+
21315
+ var _QuadsAdmin = _interopRequireDefault(__webpack_require__(412));
21316
+
21317
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21318
+
21319
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
21320
+
21321
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21322
+
21323
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
21324
+
21325
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
21326
+
21327
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
21328
+
21329
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
21330
+
21331
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
21332
+
21333
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
21334
+
21335
+ function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
21336
+
21337
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
21338
+
21339
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
21340
+
21341
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
21342
+
21343
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
21344
+
21345
+ var QuadsAdRootComponent = /*#__PURE__*/function (_Component) {
21346
+ _inherits(QuadsAdRootComponent, _Component);
21347
+
21348
+ var _super = _createSuper(QuadsAdRootComponent);
21349
+
21350
+ function QuadsAdRootComponent() {
21351
+ _classCallCheck(this, QuadsAdRootComponent);
21352
+
21353
+ return _super.apply(this, arguments);
21354
+ }
21355
+
21356
+ _createClass(QuadsAdRootComponent, [{
21357
+ key: "render",
21358
+ value: function render() {
21359
+ return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement(_reactRouterDom.BrowserRouter, null, /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
21360
+ className: "quads-segment"
21361
+ }, quads_localize_data.demo_test, /*#__PURE__*/_react["default"].createElement(_reactRouterDom.Switch, null, /*#__PURE__*/_react["default"].createElement(_reactRouterDom.Route, {
21362
+ render: function render(props) {
21363
+ var page = _queryString["default"].parse(window.location.search);
21364
+
21365
+ if (typeof page.path != 'undefined') {
21366
+ if (page.path.includes('settings')) {
21367
+ return /*#__PURE__*/_react["default"].createElement(_QuadsAdmin["default"], props);
21368
+ } else if (page.path.includes('wizard')) {
21369
+ return /*#__PURE__*/_react["default"].createElement(_QuadsAdCreateRouter["default"], props);
21370
+ } else {
21371
+ return 'Page not found';
21372
+ }
21373
+ } else {
21374
+ return /*#__PURE__*/_react["default"].createElement(_QuadsAdmin["default"], props);
21375
+ }
21376
+ }
21377
+ }))))));
21378
+ }
21379
+ }]);
21380
+
21381
+ return QuadsAdRootComponent;
21382
+ }(_react.Component);
21383
+
21384
+ _reactDom["default"].render( /*#__PURE__*/_react["default"].createElement(QuadsAdRootComponent, null), document.getElementById('quads-ad-content'));
21385
+
21386
+ /***/ }),
21387
+ /* 299 */
21388
+ /***/ (function(module, exports, __webpack_require__) {
21389
+
21390
+ "use strict";
21391
+ /** @license React v16.12.0
21392
+ * react.production.min.js
21393
+ *
21394
+ * Copyright (c) Facebook, Inc. and its affiliates.
21395
+ *
21396
+ * This source code is licensed under the MIT license found in the
21397
+ * LICENSE file in the root directory of this source tree.
21398
+ */
21399
+
21400
+ var h=__webpack_require__(43),n="function"===typeof Symbol&&Symbol.for,p=n?Symbol.for("react.element"):60103,q=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,t=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,v=n?Symbol.for("react.provider"):60109,w=n?Symbol.for("react.context"):60110,x=n?Symbol.for("react.forward_ref"):60112,y=n?Symbol.for("react.suspense"):60113;n&&Symbol.for("react.suspense_list");
21401
+ var z=n?Symbol.for("react.memo"):60115,aa=n?Symbol.for("react.lazy"):60116;n&&Symbol.for("react.fundamental");n&&Symbol.for("react.responder");n&&Symbol.for("react.scope");var A="function"===typeof Symbol&&Symbol.iterator;
21402
+ function B(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D={};
21403
+ function E(a,b,c){this.props=a;this.context=b;this.refs=D;this.updater=c||C}E.prototype.isReactComponent={};E.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(B(85));this.updater.enqueueSetState(this,a,b,"setState")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function F(){}F.prototype=E.prototype;function G(a,b,c){this.props=a;this.context=b;this.refs=D;this.updater=c||C}var H=G.prototype=new F;
21404
+ H.constructor=G;h(H,E.prototype);H.isPureReactComponent=!0;var I={current:null},J={current:null},K=Object.prototype.hasOwnProperty,L={key:!0,ref:!0,__self:!0,__source:!0};
21405
+ function M(a,b,c){var e,d={},g=null,l=null;if(null!=b)for(e in void 0!==b.ref&&(l=b.ref),void 0!==b.key&&(g=""+b.key),b)K.call(b,e)&&!L.hasOwnProperty(e)&&(d[e]=b[e]);var f=arguments.length-2;if(1===f)d.children=c;else if(1<f){for(var k=Array(f),m=0;m<f;m++)k[m]=arguments[m+2];d.children=k}if(a&&a.defaultProps)for(e in f=a.defaultProps,f)void 0===d[e]&&(d[e]=f[e]);return{$$typeof:p,type:a,key:g,ref:l,props:d,_owner:J.current}}
21406
+ function ba(a,b){return{$$typeof:p,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function N(a){return"object"===typeof a&&null!==a&&a.$$typeof===p}function escape(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}var O=/\/+/g,P=[];function Q(a,b,c,e){if(P.length){var d=P.pop();d.result=a;d.keyPrefix=b;d.func=c;d.context=e;d.count=0;return d}return{result:a,keyPrefix:b,func:c,context:e,count:0}}
21407
+ function R(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>P.length&&P.push(a)}
21408
+ function S(a,b,c,e){var d=typeof a;if("undefined"===d||"boolean"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case p:case q:g=!0}}if(g)return c(e,a,""===b?"."+T(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var l=0;l<a.length;l++){d=a[l];var f=b+T(d,l);g+=S(d,f,c,e)}else if(null===a||"object"!==typeof a?f=null:(f=A&&a[A]||a["@@iterator"],f="function"===typeof f?f:null),"function"===typeof f)for(a=f.call(a),l=
21409
+ 0;!(d=a.next()).done;)d=d.value,f=b+T(d,l++),g+=S(d,f,c,e);else if("object"===d)throw c=""+a,Error(B(31,"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return g}function U(a,b,c){return null==a?0:S(a,"",b,c)}function T(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function ca(a,b){a.func.call(a.context,b,a.count++)}
21410
+ function da(a,b,c){var e=a.result,d=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?V(a,e,c,function(a){return a}):null!=a&&(N(a)&&(a=ba(a,d+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+c)),e.push(a))}function V(a,b,c,e,d){var g="";null!=c&&(g=(""+c).replace(O,"$&/")+"/");b=Q(b,g,e,d);U(a,da,b);R(b)}function W(){var a=I.current;if(null===a)throw Error(B(321));return a}
21411
+ var X={Children:{map:function(a,b,c){if(null==a)return a;var e=[];V(a,e,null,b,c);return e},forEach:function(a,b,c){if(null==a)return a;b=Q(null,null,b,c);U(a,ca,b);R(b)},count:function(a){return U(a,function(){return null},null)},toArray:function(a){var b=[];V(a,b,null,function(a){return a});return b},only:function(a){if(!N(a))throw Error(B(143));return a}},createRef:function(){return{current:null}},Component:E,PureComponent:G,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:w,_calculateChangedBits:b,
21412
+ _currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:v,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:x,render:a}},lazy:function(a){return{$$typeof:aa,_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:z,type:a,compare:void 0===b?null:b}},useCallback:function(a,b){return W().useCallback(a,b)},useContext:function(a,b){return W().useContext(a,b)},useEffect:function(a,b){return W().useEffect(a,b)},useImperativeHandle:function(a,
21413
+ b,c){return W().useImperativeHandle(a,b,c)},useDebugValue:function(){},useLayoutEffect:function(a,b){return W().useLayoutEffect(a,b)},useMemo:function(a,b){return W().useMemo(a,b)},useReducer:function(a,b,c){return W().useReducer(a,b,c)},useRef:function(a){return W().useRef(a)},useState:function(a){return W().useState(a)},Fragment:r,Profiler:u,StrictMode:t,Suspense:y,createElement:M,cloneElement:function(a,b,c){if(null===a||void 0===a)throw Error(B(267,a));var e=h({},a.props),d=a.key,g=a.ref,l=a._owner;
21414
+ if(null!=b){void 0!==b.ref&&(g=b.ref,l=J.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var f=a.type.defaultProps;for(k in b)K.call(b,k)&&!L.hasOwnProperty(k)&&(e[k]=void 0===b[k]&&void 0!==f?f[k]:b[k])}var k=arguments.length-2;if(1===k)e.children=c;else if(1<k){f=Array(k);for(var m=0;m<k;m++)f[m]=arguments[m+2];e.children=f}return{$$typeof:p,type:a.type,key:d,ref:g,props:e,_owner:l}},createFactory:function(a){var b=M.bind(null,a);b.type=a;return b},isValidElement:N,version:"16.12.0",
21415
+ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:I,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:J,IsSomeRendererActing:{current:!1},assign:h}},Y={default:X},Z=Y&&X||Y;module.exports=Z.default||Z;
21416
+
21417
+
21418
+ /***/ }),
21419
+ /* 300 */
21420
+ /***/ (function(module, exports, __webpack_require__) {
21421
+
21422
+ "use strict";
21423
+ /* WEBPACK VAR INJECTION */(function(process) {/** @license React v16.12.0
21424
+ * react.development.js
21425
+ *
21426
+ * Copyright (c) Facebook, Inc. and its affiliates.
21427
+ *
21428
+ * This source code is licensed under the MIT license found in the
21429
+ * LICENSE file in the root directory of this source tree.
21430
+ */
21431
+
21432
+
21433
+
21434
+
21435
+
21436
+ if (process.env.NODE_ENV !== "production") {
21437
+ (function() {
21438
+ 'use strict';
21439
+
21440
+ var _assign = __webpack_require__(43);
21441
+ var checkPropTypes = __webpack_require__(87);
21442
+
21443
+ // TODO: this is special because it gets imported during build.
21444
+
21445
+ var ReactVersion = '16.12.0';
21446
+
21447
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
21448
+ // nor polyfill, then a plain number is used for performance.
21449
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
21450
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
21451
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
21452
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
21453
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
21454
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
21455
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
21456
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
21457
+ // (unstable) APIs that have been removed. Can we remove the symbols?
21458
+
21459
+
21460
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
21461
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
21462
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
21463
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
21464
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
21465
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
21466
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
21467
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
21468
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
21469
+ var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
21470
+ var FAUX_ITERATOR_SYMBOL = '@@iterator';
21471
+ function getIteratorFn(maybeIterable) {
21472
+ if (maybeIterable === null || typeof maybeIterable !== 'object') {
21473
+ return null;
21474
+ }
21475
+
21476
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
21477
+
21478
+ if (typeof maybeIterator === 'function') {
21479
+ return maybeIterator;
21480
+ }
21481
+
21482
+ return null;
21483
+ }
21484
+
21485
+ // Do not require this module directly! Use normal `invariant` calls with
21486
+ // template literal strings. The messages will be replaced with error codes
21487
+ // during build.
21488
+
21489
+ /**
21490
+ * Use invariant() to assert state which your program assumes to be true.
21491
+ *
21492
+ * Provide sprintf-style format (only %s is supported) and arguments
21493
+ * to provide information about what broke and what you were
21494
+ * expecting.
21495
+ *
21496
+ * The invariant message will be stripped in production, but the invariant
21497
+ * will remain to ensure logic does not differ in production.
21498
+ */
21499
+
21500
+ /**
21501
+ * Forked from fbjs/warning:
21502
+ * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
21503
+ *
21504
+ * Only change is we use console.warn instead of console.error,
21505
+ * and do nothing when 'console' is not supported.
21506
+ * This really simplifies the code.
21507
+ * ---
21508
+ * Similar to invariant but only logs a warning if the condition is not met.
21509
+ * This can be used to log issues in development environments in critical
21510
+ * paths. Removing the logging code for production environments will keep the
21511
+ * same logic and follow the same code paths.
21512
+ */
21513
+ var lowPriorityWarningWithoutStack = function () {};
21514
+
21515
+ {
21516
+ var printWarning = function (format) {
21517
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
21518
+ args[_key - 1] = arguments[_key];
21519
+ }
21520
+
21521
+ var argIndex = 0;
21522
+ var message = 'Warning: ' + format.replace(/%s/g, function () {
21523
+ return args[argIndex++];
21524
+ });
21525
+
21526
+ if (typeof console !== 'undefined') {
21527
+ console.warn(message);
21528
+ }
21529
+
21530
+ try {
21531
+ // --- Welcome to debugging React ---
21532
+ // This error was thrown as a convenience so that you can use this stack
21533
+ // to find the callsite that caused this warning to fire.
21534
+ throw new Error(message);
21535
+ } catch (x) {}
21536
+ };
21537
+
21538
+ lowPriorityWarningWithoutStack = function (condition, format) {
21539
+ if (format === undefined) {
21540
+ throw new Error('`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
21541
+ }
21542
+
21543
+ if (!condition) {
21544
+ for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
21545
+ args[_key2 - 2] = arguments[_key2];
21546
+ }
21547
+
21548
+ printWarning.apply(void 0, [format].concat(args));
21549
+ }
21550
+ };
21551
+ }
21552
+
21553
+ var lowPriorityWarningWithoutStack$1 = lowPriorityWarningWithoutStack;
21554
+
21555
+ /**
21556
+ * Similar to invariant but only logs a warning if the condition is not met.
21557
+ * This can be used to log issues in development environments in critical
21558
+ * paths. Removing the logging code for production environments will keep the
21559
+ * same logic and follow the same code paths.
21560
+ */
21561
+ var warningWithoutStack = function () {};
21562
+
21563
+ {
21564
+ warningWithoutStack = function (condition, format) {
21565
+ for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
21566
+ args[_key - 2] = arguments[_key];
21567
+ }
21568
+
21569
+ if (format === undefined) {
21570
+ throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
21571
+ }
21572
+
21573
+ if (args.length > 8) {
21574
+ // Check before the condition to catch violations early.
21575
+ throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
21576
+ }
21577
+
21578
+ if (condition) {
21579
+ return;
21580
+ }
21581
+
21582
+ if (typeof console !== 'undefined') {
21583
+ var argsWithFormat = args.map(function (item) {
21584
+ return '' + item;
21585
+ });
21586
+ argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
21587
+ // breaks IE9: https://github.com/facebook/react/issues/13610
21588
+
21589
+ Function.prototype.apply.call(console.error, console, argsWithFormat);
21590
+ }
21591
+
21592
+ try {
21593
+ // --- Welcome to debugging React ---
21594
+ // This error was thrown as a convenience so that you can use this stack
21595
+ // to find the callsite that caused this warning to fire.
21596
+ var argIndex = 0;
21597
+ var message = 'Warning: ' + format.replace(/%s/g, function () {
21598
+ return args[argIndex++];
21599
+ });
21600
+ throw new Error(message);
21601
+ } catch (x) {}
21602
+ };
21603
+ }
21604
+
21605
+ var warningWithoutStack$1 = warningWithoutStack;
21606
+
21607
+ var didWarnStateUpdateForUnmountedComponent = {};
21608
+
21609
+ function warnNoop(publicInstance, callerName) {
21610
+ {
21611
+ var _constructor = publicInstance.constructor;
21612
+ var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
21613
+ var warningKey = componentName + "." + callerName;
21614
+
21615
+ if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
21616
+ return;
21617
+ }
21618
+
21619
+ warningWithoutStack$1(false, "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);
21620
+ didWarnStateUpdateForUnmountedComponent[warningKey] = true;
21621
+ }
21622
+ }
21623
+ /**
21624
+ * This is the abstract API for an update queue.
21625
+ */
21626
+
21627
+
21628
+ var ReactNoopUpdateQueue = {
21629
+ /**
21630
+ * Checks whether or not this composite component is mounted.
21631
+ * @param {ReactClass} publicInstance The instance we want to test.
21632
+ * @return {boolean} True if mounted, false otherwise.
21633
+ * @protected
21634
+ * @final
21635
+ */
21636
+ isMounted: function (publicInstance) {
21637
+ return false;
21638
+ },
21639
+
21640
+ /**
21641
+ * Forces an update. This should only be invoked when it is known with
21642
+ * certainty that we are **not** in a DOM transaction.
21643
+ *
21644
+ * You may want to call this when you know that some deeper aspect of the
21645
+ * component's state has changed but `setState` was not called.
21646
+ *
21647
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
21648
+ * `componentWillUpdate` and `componentDidUpdate`.
21649
+ *
21650
+ * @param {ReactClass} publicInstance The instance that should rerender.
21651
+ * @param {?function} callback Called after component is updated.
21652
+ * @param {?string} callerName name of the calling function in the public API.
21653
+ * @internal
21654
+ */
21655
+ enqueueForceUpdate: function (publicInstance, callback, callerName) {
21656
+ warnNoop(publicInstance, 'forceUpdate');
21657
+ },
21658
+
21659
+ /**
21660
+ * Replaces all of the state. Always use this or `setState` to mutate state.
21661
+ * You should treat `this.state` as immutable.
21662
+ *
21663
+ * There is no guarantee that `this.state` will be immediately updated, so
21664
+ * accessing `this.state` after calling this method may return the old value.
21665
+ *
21666
+ * @param {ReactClass} publicInstance The instance that should rerender.
21667
+ * @param {object} completeState Next state.
21668
+ * @param {?function} callback Called after component is updated.
21669
+ * @param {?string} callerName name of the calling function in the public API.
21670
+ * @internal
21671
+ */
21672
+ enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
21673
+ warnNoop(publicInstance, 'replaceState');
21674
+ },
21675
+
21676
+ /**
21677
+ * Sets a subset of the state. This only exists because _pendingState is
21678
+ * internal. This provides a merging strategy that is not available to deep
21679
+ * properties which is confusing. TODO: Expose pendingState or don't use it
21680
+ * during the merge.
21681
+ *
21682
+ * @param {ReactClass} publicInstance The instance that should rerender.
21683
+ * @param {object} partialState Next partial state to be merged with state.
21684
+ * @param {?function} callback Called after component is updated.
21685
+ * @param {?string} Name of the calling function in the public API.
21686
+ * @internal
21687
+ */
21688
+ enqueueSetState: function (publicInstance, partialState, callback, callerName) {
21689
+ warnNoop(publicInstance, 'setState');
21690
+ }
21691
+ };
21692
+
21693
+ var emptyObject = {};
21694
+
21695
+ {
21696
+ Object.freeze(emptyObject);
21697
+ }
21698
+ /**
21699
+ * Base class helpers for the updating state of a component.
21700
+ */
21701
+
21702
+
21703
+ function Component(props, context, updater) {
21704
+ this.props = props;
21705
+ this.context = context; // If a component has string refs, we will assign a different object later.
21706
+
21707
+ this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
21708
+ // renderer.
21709
+
21710
+ this.updater = updater || ReactNoopUpdateQueue;
21711
+ }
21712
+
21713
+ Component.prototype.isReactComponent = {};
21714
+ /**
21715
+ * Sets a subset of the state. Always use this to mutate
21716
+ * state. You should treat `this.state` as immutable.
21717
+ *
21718
+ * There is no guarantee that `this.state` will be immediately updated, so
21719
+ * accessing `this.state` after calling this method may return the old value.
21720
+ *
21721
+ * There is no guarantee that calls to `setState` will run synchronously,
21722
+ * as they may eventually be batched together. You can provide an optional
21723
+ * callback that will be executed when the call to setState is actually
21724
+ * completed.
21725
+ *
21726
+ * When a function is provided to setState, it will be called at some point in
21727
+ * the future (not synchronously). It will be called with the up to date
21728
+ * component arguments (state, props, context). These values can be different
21729
+ * from this.* because your function may be called after receiveProps but before
21730
+ * shouldComponentUpdate, and this new state, props, and context will not yet be
21731
+ * assigned to this.
21732
+ *
21733
+ * @param {object|function} partialState Next partial state or function to
21734
+ * produce next partial state to be merged with current state.
21735
+ * @param {?function} callback Called after state is updated.
21736
+ * @final
21737
+ * @protected
21738
+ */
21739
+
21740
+ Component.prototype.setState = function (partialState, callback) {
21741
+ if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
21742
+ {
21743
+ throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
21744
+ }
21745
+ }
21746
+
21747
+ this.updater.enqueueSetState(this, partialState, callback, 'setState');
21748
+ };
21749
+ /**
21750
+ * Forces an update. This should only be invoked when it is known with
21751
+ * certainty that we are **not** in a DOM transaction.
21752
+ *
21753
+ * You may want to call this when you know that some deeper aspect of the
21754
+ * component's state has changed but `setState` was not called.
21755
+ *
21756
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
21757
+ * `componentWillUpdate` and `componentDidUpdate`.
21758
+ *
21759
+ * @param {?function} callback Called after update is complete.
21760
+ * @final
21761
+ * @protected
21762
+ */
21763
+
21764
+
21765
+ Component.prototype.forceUpdate = function (callback) {
21766
+ this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
21767
+ };
21768
+ /**
21769
+ * Deprecated APIs. These APIs used to exist on classic React classes but since
21770
+ * we would like to deprecate them, we're not going to move them over to this
21771
+ * modern base class. Instead, we define a getter that warns if it's accessed.
21772
+ */
21773
+
21774
+
21775
+ {
21776
+ var deprecatedAPIs = {
21777
+ isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
21778
+ replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
21779
+ };
21780
+
21781
+ var defineDeprecationWarning = function (methodName, info) {
21782
+ Object.defineProperty(Component.prototype, methodName, {
21783
+ get: function () {
21784
+ lowPriorityWarningWithoutStack$1(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
21785
+ return undefined;
21786
+ }
21787
+ });
21788
+ };
21789
+
21790
+ for (var fnName in deprecatedAPIs) {
21791
+ if (deprecatedAPIs.hasOwnProperty(fnName)) {
21792
+ defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
21793
+ }
21794
+ }
21795
+ }
21796
+
21797
+ function ComponentDummy() {}
21798
+
21799
+ ComponentDummy.prototype = Component.prototype;
21800
+ /**
21801
+ * Convenience component with default shallow equality check for sCU.
21802
+ */
21803
+
21804
+ function PureComponent(props, context, updater) {
21805
+ this.props = props;
21806
+ this.context = context; // If a component has string refs, we will assign a different object later.
21807
+
21808
+ this.refs = emptyObject;
21809
+ this.updater = updater || ReactNoopUpdateQueue;
21810
+ }
21811
+
21812
+ var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
21813
+ pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.
21814
+
21815
+ _assign(pureComponentPrototype, Component.prototype);
21816
+
21817
+ pureComponentPrototype.isPureReactComponent = true;
21818
+
21819
+ // an immutable object with a single mutable value
21820
+ function createRef() {
21821
+ var refObject = {
21822
+ current: null
21823
+ };
21824
+
21825
+ {
21826
+ Object.seal(refObject);
21827
+ }
21828
+
21829
+ return refObject;
21830
+ }
21831
+
21832
+ /**
21833
+ * Keeps track of the current dispatcher.
21834
+ */
21835
+ var ReactCurrentDispatcher = {
21836
+ /**
21837
+ * @internal
21838
+ * @type {ReactComponent}
21839
+ */
21840
+ current: null
21841
+ };
21842
+
21843
+ /**
21844
+ * Keeps track of the current batch's configuration such as how long an update
21845
+ * should suspend for if it needs to.
21846
+ */
21847
+ var ReactCurrentBatchConfig = {
21848
+ suspense: null
21849
+ };
21850
+
21851
+ /**
21852
+ * Keeps track of the current owner.
21853
+ *
21854
+ * The current owner is the component who should own any components that are
21855
+ * currently being constructed.
21856
+ */
21857
+ var ReactCurrentOwner = {
21858
+ /**
21859
+ * @internal
21860
+ * @type {ReactComponent}
21861
+ */
21862
+ current: null
21863
+ };
21864
+
21865
+ var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
21866
+ var describeComponentFrame = function (name, source, ownerName) {
21867
+ var sourceInfo = '';
21868
+
21869
+ if (source) {
21870
+ var path = source.fileName;
21871
+ var fileName = path.replace(BEFORE_SLASH_RE, '');
21872
+
21873
+ {
21874
+ // In DEV, include code for a common special case:
21875
+ // prefer "folder/index.js" instead of just "index.js".
21876
+ if (/^index\./.test(fileName)) {
21877
+ var match = path.match(BEFORE_SLASH_RE);
21878
+
21879
+ if (match) {
21880
+ var pathBeforeSlash = match[1];
21881
+
21882
+ if (pathBeforeSlash) {
21883
+ var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
21884
+ fileName = folderName + '/' + fileName;
21885
+ }
21886
+ }
21887
+ }
21888
+ }
21889
+
21890
+ sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
21891
+ } else if (ownerName) {
21892
+ sourceInfo = ' (created by ' + ownerName + ')';
21893
+ }
21894
+
21895
+ return '\n in ' + (name || 'Unknown') + sourceInfo;
21896
+ };
21897
+
21898
+ var Resolved = 1;
21899
+
21900
+ function refineResolvedLazyComponent(lazyComponent) {
21901
+ return lazyComponent._status === Resolved ? lazyComponent._result : null;
21902
+ }
21903
+
21904
+ function getWrappedName(outerType, innerType, wrapperName) {
21905
+ var functionName = innerType.displayName || innerType.name || '';
21906
+ return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
21907
+ }
21908
+
21909
+ function getComponentName(type) {
21910
+ if (type == null) {
21911
+ // Host root, text node or just invalid type.
21912
+ return null;
21913
+ }
21914
+
21915
+ {
21916
+ if (typeof type.tag === 'number') {
21917
+ warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
21918
+ }
21919
+ }
21920
+
21921
+ if (typeof type === 'function') {
21922
+ return type.displayName || type.name || null;
21923
+ }
21924
+
21925
+ if (typeof type === 'string') {
21926
+ return type;
21927
+ }
21928
+
21929
+ switch (type) {
21930
+ case REACT_FRAGMENT_TYPE:
21931
+ return 'Fragment';
21932
+
21933
+ case REACT_PORTAL_TYPE:
21934
+ return 'Portal';
21935
+
21936
+ case REACT_PROFILER_TYPE:
21937
+ return "Profiler";
21938
+
21939
+ case REACT_STRICT_MODE_TYPE:
21940
+ return 'StrictMode';
21941
+
21942
+ case REACT_SUSPENSE_TYPE:
21943
+ return 'Suspense';
21944
+
21945
+ case REACT_SUSPENSE_LIST_TYPE:
21946
+ return 'SuspenseList';
21947
+ }
21948
+
21949
+ if (typeof type === 'object') {
21950
+ switch (type.$$typeof) {
21951
+ case REACT_CONTEXT_TYPE:
21952
+ return 'Context.Consumer';
21953
+
21954
+ case REACT_PROVIDER_TYPE:
21955
+ return 'Context.Provider';
21956
+
21957
+ case REACT_FORWARD_REF_TYPE:
21958
+ return getWrappedName(type, type.render, 'ForwardRef');
21959
+
21960
+ case REACT_MEMO_TYPE:
21961
+ return getComponentName(type.type);
21962
+
21963
+ case REACT_LAZY_TYPE:
21964
+ {
21965
+ var thenable = type;
21966
+ var resolvedThenable = refineResolvedLazyComponent(thenable);
21967
+
21968
+ if (resolvedThenable) {
21969
+ return getComponentName(resolvedThenable);
21970
+ }
21971
+
21972
+ break;
21973
+ }
21974
+ }
21975
+ }
21976
+
21977
+ return null;
21978
+ }
21979
+
21980
+ var ReactDebugCurrentFrame = {};
21981
+ var currentlyValidatingElement = null;
21982
+ function setCurrentlyValidatingElement(element) {
21983
+ {
21984
+ currentlyValidatingElement = element;
21985
+ }
21986
+ }
21987
+
21988
+ {
21989
+ // Stack implementation injected by the current renderer.
21990
+ ReactDebugCurrentFrame.getCurrentStack = null;
21991
+
21992
+ ReactDebugCurrentFrame.getStackAddendum = function () {
21993
+ var stack = ''; // Add an extra top frame while an element is being validated
21994
+
21995
+ if (currentlyValidatingElement) {
21996
+ var name = getComponentName(currentlyValidatingElement.type);
21997
+ var owner = currentlyValidatingElement._owner;
21998
+ stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
21999
+ } // Delegate to the injected renderer-specific implementation
22000
+
22001
+
22002
+ var impl = ReactDebugCurrentFrame.getCurrentStack;
22003
+
22004
+ if (impl) {
22005
+ stack += impl() || '';
22006
+ }
22007
+
22008
+ return stack;
22009
+ };
22010
+ }
22011
+
22012
+ /**
22013
+ * Used by act() to track whether you're inside an act() scope.
22014
+ */
22015
+ var IsSomeRendererActing = {
22016
+ current: false
22017
+ };
22018
+
22019
+ var ReactSharedInternals = {
22020
+ ReactCurrentDispatcher: ReactCurrentDispatcher,
22021
+ ReactCurrentBatchConfig: ReactCurrentBatchConfig,
22022
+ ReactCurrentOwner: ReactCurrentOwner,
22023
+ IsSomeRendererActing: IsSomeRendererActing,
22024
+ // Used by renderers to avoid bundling object-assign twice in UMD bundles:
22025
+ assign: _assign
22026
+ };
22027
+
22028
+ {
22029
+ _assign(ReactSharedInternals, {
22030
+ // These should not be included in production.
22031
+ ReactDebugCurrentFrame: ReactDebugCurrentFrame,
22032
+ // Shim for React DOM 16.0.0 which still destructured (but not used) this.
22033
+ // TODO: remove in React 17.0.
22034
+ ReactComponentTreeHook: {}
22035
+ });
22036
+ }
22037
+
22038
+ /**
22039
+ * Similar to invariant but only logs a warning if the condition is not met.
22040
+ * This can be used to log issues in development environments in critical
22041
+ * paths. Removing the logging code for production environments will keep the
22042
+ * same logic and follow the same code paths.
22043
+ */
22044
+
22045
+ var warning = warningWithoutStack$1;
22046
+
22047
+ {
22048
+ warning = function (condition, format) {
22049
+ if (condition) {
22050
+ return;
22051
+ }
22052
+
22053
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
22054
+ var stack = ReactDebugCurrentFrame.getStackAddendum(); // eslint-disable-next-line react-internal/warning-and-invariant-args
22055
+
22056
+ for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
22057
+ args[_key - 2] = arguments[_key];
22058
+ }
22059
+
22060
+ warningWithoutStack$1.apply(void 0, [false, format + '%s'].concat(args, [stack]));
22061
+ };
22062
+ }
22063
+
22064
+ var warning$1 = warning;
22065
+
22066
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
22067
+ var RESERVED_PROPS = {
22068
+ key: true,
22069
+ ref: true,
22070
+ __self: true,
22071
+ __source: true
22072
+ };
22073
+ var specialPropKeyWarningShown;
22074
+ var specialPropRefWarningShown;
22075
+
22076
+ function hasValidRef(config) {
22077
+ {
22078
+ if (hasOwnProperty.call(config, 'ref')) {
22079
+ var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
22080
+
22081
+ if (getter && getter.isReactWarning) {
22082
+ return false;
22083
+ }
22084
+ }
22085
+ }
22086
+
22087
+ return config.ref !== undefined;
22088
+ }
22089
+
22090
+ function hasValidKey(config) {
22091
+ {
22092
+ if (hasOwnProperty.call(config, 'key')) {
22093
+ var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
22094
+
22095
+ if (getter && getter.isReactWarning) {
22096
+ return false;
22097
+ }
22098
+ }
22099
+ }
22100
+
22101
+ return config.key !== undefined;
22102
+ }
22103
+
22104
+ function defineKeyPropWarningGetter(props, displayName) {
22105
+ var warnAboutAccessingKey = function () {
22106
+ if (!specialPropKeyWarningShown) {
22107
+ specialPropKeyWarningShown = true;
22108
+ warningWithoutStack$1(false, '%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);
22109
+ }
22110
+ };
22111
+
22112
+ warnAboutAccessingKey.isReactWarning = true;
22113
+ Object.defineProperty(props, 'key', {
22114
+ get: warnAboutAccessingKey,
22115
+ configurable: true
22116
+ });
22117
+ }
22118
+
22119
+ function defineRefPropWarningGetter(props, displayName) {
22120
+ var warnAboutAccessingRef = function () {
22121
+ if (!specialPropRefWarningShown) {
22122
+ specialPropRefWarningShown = true;
22123
+ warningWithoutStack$1(false, '%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);
22124
+ }
22125
+ };
22126
+
22127
+ warnAboutAccessingRef.isReactWarning = true;
22128
+ Object.defineProperty(props, 'ref', {
22129
+ get: warnAboutAccessingRef,
22130
+ configurable: true
22131
+ });
22132
+ }
22133
+ /**
22134
+ * Factory method to create a new React element. This no longer adheres to
22135
+ * the class pattern, so do not use new to call it. Also, instanceof check
22136
+ * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
22137
+ * if something is a React Element.
22138
+ *
22139
+ * @param {*} type
22140
+ * @param {*} props
22141
+ * @param {*} key
22142
+ * @param {string|object} ref
22143
+ * @param {*} owner
22144
+ * @param {*} self A *temporary* helper to detect places where `this` is
22145
+ * different from the `owner` when React.createElement is called, so that we
22146
+ * can warn. We want to get rid of owner and replace string `ref`s with arrow
22147
+ * functions, and as long as `this` and owner are the same, there will be no
22148
+ * change in behavior.
22149
+ * @param {*} source An annotation object (added by a transpiler or otherwise)
22150
+ * indicating filename, line number, and/or other information.
22151
+ * @internal
22152
+ */
22153
+
22154
+
22155
+ var ReactElement = function (type, key, ref, self, source, owner, props) {
22156
+ var element = {
22157
+ // This tag allows us to uniquely identify this as a React Element
22158
+ $$typeof: REACT_ELEMENT_TYPE,
22159
+ // Built-in properties that belong on the element
22160
+ type: type,
22161
+ key: key,
22162
+ ref: ref,
22163
+ props: props,
22164
+ // Record the component responsible for creating this element.
22165
+ _owner: owner
22166
+ };
22167
+
22168
+ {
22169
+ // The validation flag is currently mutative. We put it on
22170
+ // an external backing store so that we can freeze the whole object.
22171
+ // This can be replaced with a WeakMap once they are implemented in
22172
+ // commonly used development environments.
22173
+ element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
22174
+ // the validation flag non-enumerable (where possible, which should
22175
+ // include every environment we run tests in), so the test framework
22176
+ // ignores it.
22177
+
22178
+ Object.defineProperty(element._store, 'validated', {
22179
+ configurable: false,
22180
+ enumerable: false,
22181
+ writable: true,
22182
+ value: false
22183
+ }); // self and source are DEV only properties.
22184
+
22185
+ Object.defineProperty(element, '_self', {
22186
+ configurable: false,
22187
+ enumerable: false,
22188
+ writable: false,
22189
+ value: self
22190
+ }); // Two elements created in two different places should be considered
22191
+ // equal for testing purposes and therefore we hide it from enumeration.
22192
+
22193
+ Object.defineProperty(element, '_source', {
22194
+ configurable: false,
22195
+ enumerable: false,
22196
+ writable: false,
22197
+ value: source
22198
+ });
22199
+
22200
+ if (Object.freeze) {
22201
+ Object.freeze(element.props);
22202
+ Object.freeze(element);
22203
+ }
22204
+ }
22205
+
22206
+ return element;
22207
+ };
22208
+ /**
22209
+ * https://github.com/reactjs/rfcs/pull/107
22210
+ * @param {*} type
22211
+ * @param {object} props
22212
+ * @param {string} key
22213
+ */
22214
+
22215
+
22216
+
22217
+ /**
22218
+ * https://github.com/reactjs/rfcs/pull/107
22219
+ * @param {*} type
22220
+ * @param {object} props
22221
+ * @param {string} key
22222
+ */
22223
+
22224
+ function jsxDEV(type, config, maybeKey, source, self) {
22225
+ var propName; // Reserved names are extracted
22226
+
22227
+ var props = {};
22228
+ var key = null;
22229
+ var ref = null; // Currently, key can be spread in as a prop. This causes a potential
22230
+ // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
22231
+ // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
22232
+ // but as an intermediary step, we will use jsxDEV for everything except
22233
+ // <div {...props} key="Hi" />, because we aren't currently able to tell if
22234
+ // key is explicitly declared to be undefined or not.
22235
+
22236
+ if (maybeKey !== undefined) {
22237
+ key = '' + maybeKey;
22238
+ }
22239
+
22240
+ if (hasValidKey(config)) {
22241
+ key = '' + config.key;
22242
+ }
22243
+
22244
+ if (hasValidRef(config)) {
22245
+ ref = config.ref;
22246
+ } // Remaining properties are added to a new props object
22247
+
22248
+
22249
+ for (propName in config) {
22250
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
22251
+ props[propName] = config[propName];
22252
+ }
22253
+ } // Resolve default props
22254
+
22255
+
22256
+ if (type && type.defaultProps) {
22257
+ var defaultProps = type.defaultProps;
22258
+
22259
+ for (propName in defaultProps) {
22260
+ if (props[propName] === undefined) {
22261
+ props[propName] = defaultProps[propName];
22262
+ }
22263
+ }
22264
+ }
22265
+
22266
+ if (key || ref) {
22267
+ var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
22268
+
22269
+ if (key) {
22270
+ defineKeyPropWarningGetter(props, displayName);
22271
+ }
22272
+
22273
+ if (ref) {
22274
+ defineRefPropWarningGetter(props, displayName);
22275
+ }
22276
+ }
22277
+
22278
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
22279
+ }
22280
+ /**
22281
+ * Create and return a new ReactElement of the given type.
22282
+ * See https://reactjs.org/docs/react-api.html#createelement
22283
+ */
22284
+
22285
+ function createElement(type, config, children) {
22286
+ var propName; // Reserved names are extracted
22287
+
22288
+ var props = {};
22289
+ var key = null;
22290
+ var ref = null;
22291
+ var self = null;
22292
+ var source = null;
22293
+
22294
+ if (config != null) {
22295
+ if (hasValidRef(config)) {
22296
+ ref = config.ref;
22297
+ }
22298
+
22299
+ if (hasValidKey(config)) {
22300
+ key = '' + config.key;
22301
+ }
22302
+
22303
+ self = config.__self === undefined ? null : config.__self;
22304
+ source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object
22305
+
22306
+ for (propName in config) {
22307
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
22308
+ props[propName] = config[propName];
22309
+ }
22310
+ }
22311
+ } // Children can be more than one argument, and those are transferred onto
22312
+ // the newly allocated props object.
22313
+
22314
+
22315
+ var childrenLength = arguments.length - 2;
22316
+
22317
+ if (childrenLength === 1) {
22318
+ props.children = children;
22319
+ } else if (childrenLength > 1) {
22320
+ var childArray = Array(childrenLength);
22321
+
22322
+ for (var i = 0; i < childrenLength; i++) {
22323
+ childArray[i] = arguments[i + 2];
22324
+ }
22325
+
22326
+ {
22327
+ if (Object.freeze) {
22328
+ Object.freeze(childArray);
22329
+ }
22330
+ }
22331
+
22332
+ props.children = childArray;
22333
+ } // Resolve default props
22334
+
22335
+
22336
+ if (type && type.defaultProps) {
22337
+ var defaultProps = type.defaultProps;
22338
+
22339
+ for (propName in defaultProps) {
22340
+ if (props[propName] === undefined) {
22341
+ props[propName] = defaultProps[propName];
22342
+ }
22343
+ }
22344
+ }
22345
+
22346
+ {
22347
+ if (key || ref) {
22348
+ var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
22349
+
22350
+ if (key) {
22351
+ defineKeyPropWarningGetter(props, displayName);
22352
+ }
22353
+
22354
+ if (ref) {
22355
+ defineRefPropWarningGetter(props, displayName);
22356
+ }
22357
+ }
22358
+ }
22359
+
22360
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
22361
+ }
22362
+ /**
22363
+ * Return a function that produces ReactElements of a given type.
22364
+ * See https://reactjs.org/docs/react-api.html#createfactory
22365
+ */
22366
+
22367
+
22368
+ function cloneAndReplaceKey(oldElement, newKey) {
22369
+ var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
22370
+ return newElement;
22371
+ }
22372
+ /**
22373
+ * Clone and return a new ReactElement using element as the starting point.
22374
+ * See https://reactjs.org/docs/react-api.html#cloneelement
22375
+ */
22376
+
22377
+ function cloneElement(element, config, children) {
22378
+ if (!!(element === null || element === undefined)) {
22379
+ {
22380
+ throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
22381
+ }
22382
+ }
22383
+
22384
+ var propName; // Original props are copied
22385
+
22386
+ var props = _assign({}, element.props); // Reserved names are extracted
22387
+
22388
+
22389
+ var key = element.key;
22390
+ var ref = element.ref; // Self is preserved since the owner is preserved.
22391
+
22392
+ var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a
22393
+ // transpiler, and the original source is probably a better indicator of the
22394
+ // true owner.
22395
+
22396
+ var source = element._source; // Owner will be preserved, unless ref is overridden
22397
+
22398
+ var owner = element._owner;
22399
+
22400
+ if (config != null) {
22401
+ if (hasValidRef(config)) {
22402
+ // Silently steal the ref from the parent.
22403
+ ref = config.ref;
22404
+ owner = ReactCurrentOwner.current;
22405
+ }
22406
+
22407
+ if (hasValidKey(config)) {
22408
+ key = '' + config.key;
22409
+ } // Remaining properties override existing props
22410
+
22411
+
22412
+ var defaultProps;
22413
+
22414
+ if (element.type && element.type.defaultProps) {
22415
+ defaultProps = element.type.defaultProps;
22416
+ }
22417
+
22418
+ for (propName in config) {
22419
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
22420
+ if (config[propName] === undefined && defaultProps !== undefined) {
22421
+ // Resolve default props
22422
+ props[propName] = defaultProps[propName];
22423
+ } else {
22424
+ props[propName] = config[propName];
22425
+ }
22426
+ }
22427
+ }
22428
+ } // Children can be more than one argument, and those are transferred onto
22429
+ // the newly allocated props object.
22430
+
22431
+
22432
+ var childrenLength = arguments.length - 2;
22433
+
22434
+ if (childrenLength === 1) {
22435
+ props.children = children;
22436
+ } else if (childrenLength > 1) {
22437
+ var childArray = Array(childrenLength);
22438
+
22439
+ for (var i = 0; i < childrenLength; i++) {
22440
+ childArray[i] = arguments[i + 2];
22441
+ }
22442
+
22443
+ props.children = childArray;
22444
+ }
22445
+
22446
+ return ReactElement(element.type, key, ref, self, source, owner, props);
22447
+ }
22448
+ /**
22449
+ * Verifies the object is a ReactElement.
22450
+ * See https://reactjs.org/docs/react-api.html#isvalidelement
22451
+ * @param {?object} object
22452
+ * @return {boolean} True if `object` is a ReactElement.
22453
+ * @final
22454
+ */
22455
+
22456
+ function isValidElement(object) {
22457
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
22458
+ }
22459
+
22460
+ var SEPARATOR = '.';
22461
+ var SUBSEPARATOR = ':';
22462
+ /**
22463
+ * Escape and wrap key so it is safe to use as a reactid
22464
+ *
22465
+ * @param {string} key to be escaped.
22466
+ * @return {string} the escaped key.
22467
+ */
22468
+
22469
+ function escape(key) {
22470
+ var escapeRegex = /[=:]/g;
22471
+ var escaperLookup = {
22472
+ '=': '=0',
22473
+ ':': '=2'
22474
+ };
22475
+ var escapedString = ('' + key).replace(escapeRegex, function (match) {
22476
+ return escaperLookup[match];
22477
+ });
22478
+ return '$' + escapedString;
22479
+ }
22480
+ /**
22481
+ * TODO: Test that a single child and an array with one item have the same key
22482
+ * pattern.
22483
+ */
22484
+
22485
+
22486
+ var didWarnAboutMaps = false;
22487
+ var userProvidedKeyEscapeRegex = /\/+/g;
22488
+
22489
+ function escapeUserProvidedKey(text) {
22490
+ return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
22491
+ }
22492
+
22493
+ var POOL_SIZE = 10;
22494
+ var traverseContextPool = [];
22495
+
22496
+ function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
22497
+ if (traverseContextPool.length) {
22498
+ var traverseContext = traverseContextPool.pop();
22499
+ traverseContext.result = mapResult;
22500
+ traverseContext.keyPrefix = keyPrefix;
22501
+ traverseContext.func = mapFunction;
22502
+ traverseContext.context = mapContext;
22503
+ traverseContext.count = 0;
22504
+ return traverseContext;
22505
+ } else {
22506
+ return {
22507
+ result: mapResult,
22508
+ keyPrefix: keyPrefix,
22509
+ func: mapFunction,
22510
+ context: mapContext,
22511
+ count: 0
22512
+ };
22513
+ }
22514
+ }
22515
+
22516
+ function releaseTraverseContext(traverseContext) {
22517
+ traverseContext.result = null;
22518
+ traverseContext.keyPrefix = null;
22519
+ traverseContext.func = null;
22520
+ traverseContext.context = null;
22521
+ traverseContext.count = 0;
22522
+
22523
+ if (traverseContextPool.length < POOL_SIZE) {
22524
+ traverseContextPool.push(traverseContext);
22525
+ }
22526
+ }
22527
+ /**
22528
+ * @param {?*} children Children tree container.
22529
+ * @param {!string} nameSoFar Name of the key path so far.
22530
+ * @param {!function} callback Callback to invoke with each child found.
22531
+ * @param {?*} traverseContext Used to pass information throughout the traversal
22532
+ * process.
22533
+ * @return {!number} The number of children in this subtree.
22534
+ */
22535
+
22536
+
22537
+ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
22538
+ var type = typeof children;
22539
+
22540
+ if (type === 'undefined' || type === 'boolean') {
22541
+ // All of the above are perceived as null.
22542
+ children = null;
22543
+ }
22544
+
22545
+ var invokeCallback = false;
22546
+
22547
+ if (children === null) {
22548
+ invokeCallback = true;
22549
+ } else {
22550
+ switch (type) {
22551
+ case 'string':
22552
+ case 'number':
22553
+ invokeCallback = true;
22554
+ break;
22555
+
22556
+ case 'object':
22557
+ switch (children.$$typeof) {
22558
+ case REACT_ELEMENT_TYPE:
22559
+ case REACT_PORTAL_TYPE:
22560
+ invokeCallback = true;
22561
+ }
22562
+
22563
+ }
22564
+ }
22565
+
22566
+ if (invokeCallback) {
22567
+ callback(traverseContext, children, // If it's the only child, treat the name as if it was wrapped in an array
22568
+ // so that it's consistent if the number of children grows.
22569
+ nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
22570
+ return 1;
22571
+ }
22572
+
22573
+ var child;
22574
+ var nextName;
22575
+ var subtreeCount = 0; // Count of children found in the current subtree.
22576
+
22577
+ var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
22578
+
22579
+ if (Array.isArray(children)) {
22580
+ for (var i = 0; i < children.length; i++) {
22581
+ child = children[i];
22582
+ nextName = nextNamePrefix + getComponentKey(child, i);
22583
+ subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
22584
+ }
22585
+ } else {
22586
+ var iteratorFn = getIteratorFn(children);
22587
+
22588
+ if (typeof iteratorFn === 'function') {
22589
+ {
22590
+ // Warn about using Maps as children
22591
+ if (iteratorFn === children.entries) {
22592
+ !didWarnAboutMaps ? warning$1(false, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.') : void 0;
22593
+ didWarnAboutMaps = true;
22594
+ }
22595
+ }
22596
+
22597
+ var iterator = iteratorFn.call(children);
22598
+ var step;
22599
+ var ii = 0;
22600
+
22601
+ while (!(step = iterator.next()).done) {
22602
+ child = step.value;
22603
+ nextName = nextNamePrefix + getComponentKey(child, ii++);
22604
+ subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
22605
+ }
22606
+ } else if (type === 'object') {
22607
+ var addendum = '';
22608
+
22609
+ {
22610
+ addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();
22611
+ }
22612
+
22613
+ var childrenString = '' + children;
22614
+
22615
+ {
22616
+ {
22617
+ throw Error("Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ")." + addendum);
22618
+ }
22619
+ }
22620
+ }
22621
+ }
22622
+
22623
+ return subtreeCount;
22624
+ }
22625
+ /**
22626
+ * Traverses children that are typically specified as `props.children`, but
22627
+ * might also be specified through attributes:
22628
+ *
22629
+ * - `traverseAllChildren(this.props.children, ...)`
22630
+ * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
22631
+ *
22632
+ * The `traverseContext` is an optional argument that is passed through the
22633
+ * entire traversal. It can be used to store accumulations or anything else that
22634
+ * the callback might find relevant.
22635
+ *
22636
+ * @param {?*} children Children tree object.
22637
+ * @param {!function} callback To invoke upon traversing each child.
22638
+ * @param {?*} traverseContext Context for traversal.
22639
+ * @return {!number} The number of children in this subtree.
22640
+ */
22641
+
22642
+
22643
+ function traverseAllChildren(children, callback, traverseContext) {
22644
+ if (children == null) {
22645
+ return 0;
22646
+ }
22647
+
22648
+ return traverseAllChildrenImpl(children, '', callback, traverseContext);
22649
+ }
22650
+ /**
22651
+ * Generate a key string that identifies a component within a set.
22652
+ *
22653
+ * @param {*} component A component that could contain a manual key.
22654
+ * @param {number} index Index that is used if a manual key is not provided.
22655
+ * @return {string}
22656
+ */
22657
+
22658
+
22659
+ function getComponentKey(component, index) {
22660
+ // Do some typechecking here since we call this blindly. We want to ensure
22661
+ // that we don't block potential future ES APIs.
22662
+ if (typeof component === 'object' && component !== null && component.key != null) {
22663
+ // Explicit key
22664
+ return escape(component.key);
22665
+ } // Implicit key determined by the index in the set
22666
+
22667
+
22668
+ return index.toString(36);
22669
+ }
22670
+
22671
+ function forEachSingleChild(bookKeeping, child, name) {
22672
+ var func = bookKeeping.func,
22673
+ context = bookKeeping.context;
22674
+ func.call(context, child, bookKeeping.count++);
22675
+ }
22676
+ /**
22677
+ * Iterates through children that are typically specified as `props.children`.
22678
+ *
22679
+ * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
22680
+ *
22681
+ * The provided forEachFunc(child, index) will be called for each
22682
+ * leaf child.
22683
+ *
22684
+ * @param {?*} children Children tree container.
22685
+ * @param {function(*, int)} forEachFunc
22686
+ * @param {*} forEachContext Context for forEachContext.
22687
+ */
22688
+
22689
+
22690
+ function forEachChildren(children, forEachFunc, forEachContext) {
22691
+ if (children == null) {
22692
+ return children;
22693
+ }
22694
+
22695
+ var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
22696
+ traverseAllChildren(children, forEachSingleChild, traverseContext);
22697
+ releaseTraverseContext(traverseContext);
22698
+ }
22699
+
22700
+ function mapSingleChildIntoContext(bookKeeping, child, childKey) {
22701
+ var result = bookKeeping.result,
22702
+ keyPrefix = bookKeeping.keyPrefix,
22703
+ func = bookKeeping.func,
22704
+ context = bookKeeping.context;
22705
+ var mappedChild = func.call(context, child, bookKeeping.count++);
22706
+
22707
+ if (Array.isArray(mappedChild)) {
22708
+ mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {
22709
+ return c;
22710
+ });
22711
+ } else if (mappedChild != null) {
22712
+ if (isValidElement(mappedChild)) {
22713
+ mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
22714
+ // traverseAllChildren used to do for objects as children
22715
+ keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
22716
+ }
22717
+
22718
+ result.push(mappedChild);
22719
+ }
22720
+ }
22721
+
22722
+ function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
22723
+ var escapedPrefix = '';
22724
+
22725
+ if (prefix != null) {
22726
+ escapedPrefix = escapeUserProvidedKey(prefix) + '/';
22727
+ }
22728
+
22729
+ var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
22730
+ traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
22731
+ releaseTraverseContext(traverseContext);
22732
+ }
22733
+ /**
22734
+ * Maps children that are typically specified as `props.children`.
22735
+ *
22736
+ * See https://reactjs.org/docs/react-api.html#reactchildrenmap
22737
+ *
22738
+ * The provided mapFunction(child, key, index) will be called for each
22739
+ * leaf child.
22740
+ *
22741
+ * @param {?*} children Children tree container.
22742
+ * @param {function(*, int)} func The map function.
22743
+ * @param {*} context Context for mapFunction.
22744
+ * @return {object} Object containing the ordered map of results.
22745
+ */
22746
+
22747
+
22748
+ function mapChildren(children, func, context) {
22749
+ if (children == null) {
22750
+ return children;
22751
+ }
22752
+
22753
+ var result = [];
22754
+ mapIntoWithKeyPrefixInternal(children, result, null, func, context);
22755
+ return result;
22756
+ }
22757
+ /**
22758
+ * Count the number of children that are typically specified as
22759
+ * `props.children`.
22760
+ *
22761
+ * See https://reactjs.org/docs/react-api.html#reactchildrencount
22762
+ *
22763
+ * @param {?*} children Children tree container.
22764
+ * @return {number} The number of children.
22765
+ */
22766
+
22767
+
22768
+ function countChildren(children) {
22769
+ return traverseAllChildren(children, function () {
22770
+ return null;
22771
+ }, null);
22772
+ }
22773
+ /**
22774
+ * Flatten a children object (typically specified as `props.children`) and
22775
+ * return an array with appropriately re-keyed children.
22776
+ *
22777
+ * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
22778
+ */
22779
+
22780
+
22781
+ function toArray(children) {
22782
+ var result = [];
22783
+ mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
22784
+ return child;
22785
+ });
22786
+ return result;
22787
+ }
22788
+ /**
22789
+ * Returns the first child in a collection of children and verifies that there
22790
+ * is only one child in the collection.
22791
+ *
22792
+ * See https://reactjs.org/docs/react-api.html#reactchildrenonly
22793
+ *
22794
+ * The current implementation of this function assumes that a single child gets
22795
+ * passed without a wrapper, but the purpose of this helper function is to
22796
+ * abstract away the particular structure of children.
22797
+ *
22798
+ * @param {?object} children Child collection structure.
22799
+ * @return {ReactElement} The first and only `ReactElement` contained in the
22800
+ * structure.
22801
+ */
22802
+
22803
+
22804
+ function onlyChild(children) {
22805
+ if (!isValidElement(children)) {
22806
+ {
22807
+ throw Error("React.Children.only expected to receive a single React element child.");
22808
+ }
22809
+ }
22810
+
22811
+ return children;
22812
+ }
22813
+
22814
+ function createContext(defaultValue, calculateChangedBits) {
22815
+ if (calculateChangedBits === undefined) {
22816
+ calculateChangedBits = null;
22817
+ } else {
22818
+ {
22819
+ !(calculateChangedBits === null || typeof calculateChangedBits === 'function') ? warningWithoutStack$1(false, 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits) : void 0;
22820
+ }
22821
+ }
22822
+
22823
+ var context = {
22824
+ $$typeof: REACT_CONTEXT_TYPE,
22825
+ _calculateChangedBits: calculateChangedBits,
22826
+ // As a workaround to support multiple concurrent renderers, we categorize
22827
+ // some renderers as primary and others as secondary. We only expect
22828
+ // there to be two concurrent renderers at most: React Native (primary) and
22829
+ // Fabric (secondary); React DOM (primary) and React ART (secondary).
22830
+ // Secondary renderers store their context values on separate fields.
22831
+ _currentValue: defaultValue,
22832
+ _currentValue2: defaultValue,
22833
+ // Used to track how many concurrent renderers this context currently
22834
+ // supports within in a single renderer. Such as parallel server rendering.
22835
+ _threadCount: 0,
22836
+ // These are circular
22837
+ Provider: null,
22838
+ Consumer: null
22839
+ };
22840
+ context.Provider = {
22841
+ $$typeof: REACT_PROVIDER_TYPE,
22842
+ _context: context
22843
+ };
22844
+ var hasWarnedAboutUsingNestedContextConsumers = false;
22845
+ var hasWarnedAboutUsingConsumerProvider = false;
22846
+
22847
+ {
22848
+ // A separate object, but proxies back to the original context object for
22849
+ // backwards compatibility. It has a different $$typeof, so we can properly
22850
+ // warn for the incorrect usage of Context as a Consumer.
22851
+ var Consumer = {
22852
+ $$typeof: REACT_CONTEXT_TYPE,
22853
+ _context: context,
22854
+ _calculateChangedBits: context._calculateChangedBits
22855
+ }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here
22856
+
22857
+ Object.defineProperties(Consumer, {
22858
+ Provider: {
22859
+ get: function () {
22860
+ if (!hasWarnedAboutUsingConsumerProvider) {
22861
+ hasWarnedAboutUsingConsumerProvider = true;
22862
+ warning$1(false, 'Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
22863
+ }
22864
+
22865
+ return context.Provider;
22866
+ },
22867
+ set: function (_Provider) {
22868
+ context.Provider = _Provider;
22869
+ }
22870
+ },
22871
+ _currentValue: {
22872
+ get: function () {
22873
+ return context._currentValue;
22874
+ },
22875
+ set: function (_currentValue) {
22876
+ context._currentValue = _currentValue;
22877
+ }
22878
+ },
22879
+ _currentValue2: {
22880
+ get: function () {
22881
+ return context._currentValue2;
22882
+ },
22883
+ set: function (_currentValue2) {
22884
+ context._currentValue2 = _currentValue2;
22885
+ }
22886
+ },
22887
+ _threadCount: {
22888
+ get: function () {
22889
+ return context._threadCount;
22890
+ },
22891
+ set: function (_threadCount) {
22892
+ context._threadCount = _threadCount;
22893
+ }
22894
+ },
22895
+ Consumer: {
22896
+ get: function () {
22897
+ if (!hasWarnedAboutUsingNestedContextConsumers) {
22898
+ hasWarnedAboutUsingNestedContextConsumers = true;
22899
+ warning$1(false, 'Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
22900
+ }
22901
+
22902
+ return context.Consumer;
22903
+ }
22904
+ }
22905
+ }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
22906
+
22907
+ context.Consumer = Consumer;
22908
+ }
22909
+
22910
+ {
22911
+ context._currentRenderer = null;
22912
+ context._currentRenderer2 = null;
22913
+ }
22914
+
22915
+ return context;
22916
+ }
22917
+
22918
+ function lazy(ctor) {
22919
+ var lazyType = {
22920
+ $$typeof: REACT_LAZY_TYPE,
22921
+ _ctor: ctor,
22922
+ // React uses these fields to store the result.
22923
+ _status: -1,
22924
+ _result: null
22925
+ };
22926
+
22927
+ {
22928
+ // In production, this would just set it on the object.
22929
+ var defaultProps;
22930
+ var propTypes;
22931
+ Object.defineProperties(lazyType, {
22932
+ defaultProps: {
22933
+ configurable: true,
22934
+ get: function () {
22935
+ return defaultProps;
22936
+ },
22937
+ set: function (newDefaultProps) {
22938
+ warning$1(false, '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.');
22939
+ defaultProps = newDefaultProps; // Match production behavior more closely:
22940
+
22941
+ Object.defineProperty(lazyType, 'defaultProps', {
22942
+ enumerable: true
22943
+ });
22944
+ }
22945
+ },
22946
+ propTypes: {
22947
+ configurable: true,
22948
+ get: function () {
22949
+ return propTypes;
22950
+ },
22951
+ set: function (newPropTypes) {
22952
+ warning$1(false, '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.');
22953
+ propTypes = newPropTypes; // Match production behavior more closely:
22954
+
22955
+ Object.defineProperty(lazyType, 'propTypes', {
22956
+ enumerable: true
22957
+ });
22958
+ }
22959
+ }
22960
+ });
22961
+ }
22962
+
22963
+ return lazyType;
22964
+ }
22965
+
22966
+ function forwardRef(render) {
22967
+ {
22968
+ if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
22969
+ warningWithoutStack$1(false, 'forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
22970
+ } else if (typeof render !== 'function') {
22971
+ warningWithoutStack$1(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
22972
+ } else {
22973
+ !( // Do not warn for 0 arguments because it could be due to usage of the 'arguments' object
22974
+ render.length === 0 || render.length === 2) ? warningWithoutStack$1(false, '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.') : void 0;
22975
+ }
22976
+
22977
+ if (render != null) {
22978
+ !(render.defaultProps == null && render.propTypes == null) ? warningWithoutStack$1(false, 'forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?') : void 0;
22979
+ }
22980
+ }
22981
+
22982
+ return {
22983
+ $$typeof: REACT_FORWARD_REF_TYPE,
22984
+ render: render
22985
+ };
22986
+ }
22987
+
22988
+ function isValidElementType(type) {
22989
+ return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
22990
+ 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);
22991
+ }
22992
+
22993
+ function memo(type, compare) {
22994
+ {
22995
+ if (!isValidElementType(type)) {
22996
+ warningWithoutStack$1(false, 'memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
22997
+ }
22998
+ }
22999
+
23000
+ return {
23001
+ $$typeof: REACT_MEMO_TYPE,
23002
+ type: type,
23003
+ compare: compare === undefined ? null : compare
23004
+ };
23005
+ }
23006
+
23007
+ function resolveDispatcher() {
23008
+ var dispatcher = ReactCurrentDispatcher.current;
23009
+
23010
+ if (!(dispatcher !== null)) {
23011
+ {
23012
+ 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.");
23013
+ }
23014
+ }
23015
+
23016
+ return dispatcher;
23017
+ }
23018
+
23019
+ function useContext(Context, unstable_observedBits) {
23020
+ var dispatcher = resolveDispatcher();
23021
+
23022
+ {
23023
+ !(unstable_observedBits === undefined) ? warning$1(false, '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' : '') : void 0; // TODO: add a more generic warning for invalid values.
23024
+
23025
+ if (Context._context !== undefined) {
23026
+ var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
23027
+ // and nobody should be using this in existing code.
23028
+
23029
+ if (realContext.Consumer === Context) {
23030
+ warning$1(false, '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?');
23031
+ } else if (realContext.Provider === Context) {
23032
+ warning$1(false, 'Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
23033
+ }
23034
+ }
23035
+ }
23036
+
23037
+ return dispatcher.useContext(Context, unstable_observedBits);
23038
+ }
23039
+ function useState(initialState) {
23040
+ var dispatcher = resolveDispatcher();
23041
+ return dispatcher.useState(initialState);
23042
+ }
23043
+ function useReducer(reducer, initialArg, init) {
23044
+ var dispatcher = resolveDispatcher();
23045
+ return dispatcher.useReducer(reducer, initialArg, init);
23046
+ }
23047
+ function useRef(initialValue) {
23048
+ var dispatcher = resolveDispatcher();
23049
+ return dispatcher.useRef(initialValue);
23050
+ }
23051
+ function useEffect(create, inputs) {
23052
+ var dispatcher = resolveDispatcher();
23053
+ return dispatcher.useEffect(create, inputs);
23054
+ }
23055
+ function useLayoutEffect(create, inputs) {
23056
+ var dispatcher = resolveDispatcher();
23057
+ return dispatcher.useLayoutEffect(create, inputs);
23058
+ }
23059
+ function useCallback(callback, inputs) {
23060
+ var dispatcher = resolveDispatcher();
23061
+ return dispatcher.useCallback(callback, inputs);
23062
+ }
23063
+ function useMemo(create, inputs) {
23064
+ var dispatcher = resolveDispatcher();
23065
+ return dispatcher.useMemo(create, inputs);
23066
+ }
23067
+ function useImperativeHandle(ref, create, inputs) {
23068
+ var dispatcher = resolveDispatcher();
23069
+ return dispatcher.useImperativeHandle(ref, create, inputs);
23070
+ }
23071
+ function useDebugValue(value, formatterFn) {
23072
+ {
23073
+ var dispatcher = resolveDispatcher();
23074
+ return dispatcher.useDebugValue(value, formatterFn);
23075
+ }
23076
+ }
23077
+ var emptyObject$1 = {};
23078
+ function useResponder(responder, listenerProps) {
23079
+ var dispatcher = resolveDispatcher();
23080
+
23081
+ {
23082
+ if (responder == null || responder.$$typeof !== REACT_RESPONDER_TYPE) {
23083
+ warning$1(false, 'useResponder: invalid first argument. Expected an event responder, but instead got %s', responder);
23084
+ return;
23085
+ }
23086
+ }
23087
+
23088
+ return dispatcher.useResponder(responder, listenerProps || emptyObject$1);
23089
+ }
23090
+ function useTransition(config) {
23091
+ var dispatcher = resolveDispatcher();
23092
+ return dispatcher.useTransition(config);
23093
+ }
23094
+ function useDeferredValue(value, config) {
23095
+ var dispatcher = resolveDispatcher();
23096
+ return dispatcher.useDeferredValue(value, config);
23097
+ }
23098
+
23099
+ function withSuspenseConfig(scope, config) {
23100
+ var previousConfig = ReactCurrentBatchConfig.suspense;
23101
+ ReactCurrentBatchConfig.suspense = config === undefined ? null : config;
23102
+
23103
+ try {
23104
+ scope();
23105
+ } finally {
23106
+ ReactCurrentBatchConfig.suspense = previousConfig;
23107
+ }
23108
+ }
23109
+
23110
+ /**
23111
+ * ReactElementValidator provides a wrapper around a element factory
23112
+ * which validates the props passed to the element. This is intended to be
23113
+ * used only in DEV and could be replaced by a static type checker for languages
23114
+ * that support it.
23115
+ */
23116
+ var propTypesMisspellWarningShown;
23117
+
23118
+ {
23119
+ propTypesMisspellWarningShown = false;
23120
+ }
23121
+
23122
+ var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
23123
+
23124
+ function getDeclarationErrorAddendum() {
23125
+ if (ReactCurrentOwner.current) {
23126
+ var name = getComponentName(ReactCurrentOwner.current.type);
23127
+
23128
+ if (name) {
23129
+ return '\n\nCheck the render method of `' + name + '`.';
23130
+ }
23131
+ }
23132
+
23133
+ return '';
23134
+ }
23135
+
23136
+ function getSourceInfoErrorAddendum(source) {
23137
+ if (source !== undefined) {
23138
+ var fileName = source.fileName.replace(/^.*[\\\/]/, '');
23139
+ var lineNumber = source.lineNumber;
23140
+ return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
23141
+ }
23142
+
23143
+ return '';
23144
+ }
23145
+
23146
+ function getSourceInfoErrorAddendumForProps(elementProps) {
23147
+ if (elementProps !== null && elementProps !== undefined) {
23148
+ return getSourceInfoErrorAddendum(elementProps.__source);
23149
+ }
23150
+
23151
+ return '';
23152
+ }
23153
+ /**
23154
+ * Warn if there's no key explicitly set on dynamic arrays of children or
23155
+ * object keys are not valid. This allows us to keep track of children between
23156
+ * updates.
23157
+ */
23158
+
23159
+
23160
+ var ownerHasKeyUseWarning = {};
23161
+
23162
+ function getCurrentComponentErrorInfo(parentType) {
23163
+ var info = getDeclarationErrorAddendum();
23164
+
23165
+ if (!info) {
23166
+ var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
23167
+
23168
+ if (parentName) {
23169
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
23170
+ }
23171
+ }
23172
+
23173
+ return info;
23174
+ }
23175
+ /**
23176
+ * Warn if the element doesn't have an explicit key assigned to it.
23177
+ * This element is in an array. The array could grow and shrink or be
23178
+ * reordered. All children that haven't already been validated are required to
23179
+ * have a "key" property assigned to it. Error statuses are cached so a warning
23180
+ * will only be shown once.
23181
+ *
23182
+ * @internal
23183
+ * @param {ReactElement} element Element that requires a key.
23184
+ * @param {*} parentType element's parent's type.
23185
+ */
23186
+
23187
+
23188
+ function validateExplicitKey(element, parentType) {
23189
+ if (!element._store || element._store.validated || element.key != null) {
23190
+ return;
23191
+ }
23192
+
23193
+ element._store.validated = true;
23194
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
23195
+
23196
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
23197
+ return;
23198
+ }
23199
+
23200
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
23201
+ // property, it may be the creator of the child that's responsible for
23202
+ // assigning it a key.
23203
+
23204
+ var childOwner = '';
23205
+
23206
+ if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
23207
+ // Give the component that originally created this child.
23208
+ childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
23209
+ }
23210
+
23211
+ setCurrentlyValidatingElement(element);
23212
+
23213
+ {
23214
+ warning$1(false, '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);
23215
+ }
23216
+
23217
+ setCurrentlyValidatingElement(null);
23218
+ }
23219
+ /**
23220
+ * Ensure that every element either is passed in a static location, in an
23221
+ * array with an explicit keys property defined, or in an object literal
23222
+ * with valid key property.
23223
+ *
23224
+ * @internal
23225
+ * @param {ReactNode} node Statically passed child of any type.
23226
+ * @param {*} parentType node's parent's type.
23227
+ */
23228
+
23229
+
23230
+ function validateChildKeys(node, parentType) {
23231
+ if (typeof node !== 'object') {
23232
+ return;
23233
+ }
23234
+
23235
+ if (Array.isArray(node)) {
23236
+ for (var i = 0; i < node.length; i++) {
23237
+ var child = node[i];
23238
+
23239
+ if (isValidElement(child)) {
23240
+ validateExplicitKey(child, parentType);
23241
+ }
23242
+ }
23243
+ } else if (isValidElement(node)) {
23244
+ // This element was passed in a valid location.
23245
+ if (node._store) {
23246
+ node._store.validated = true;
23247
+ }
23248
+ } else if (node) {
23249
+ var iteratorFn = getIteratorFn(node);
23250
+
23251
+ if (typeof iteratorFn === 'function') {
23252
+ // Entry iterators used to provide implicit keys,
23253
+ // but now we print a separate warning for them later.
23254
+ if (iteratorFn !== node.entries) {
23255
+ var iterator = iteratorFn.call(node);
23256
+ var step;
23257
+
23258
+ while (!(step = iterator.next()).done) {
23259
+ if (isValidElement(step.value)) {
23260
+ validateExplicitKey(step.value, parentType);
23261
+ }
23262
+ }
23263
+ }
23264
+ }
23265
+ }
23266
+ }
23267
+ /**
23268
+ * Given an element, validate that its props follow the propTypes definition,
23269
+ * provided by the type.
23270
+ *
23271
+ * @param {ReactElement} element
23272
+ */
23273
+
23274
+
23275
+ function validatePropTypes(element) {
23276
+ var type = element.type;
23277
+
23278
+ if (type === null || type === undefined || typeof type === 'string') {
23279
+ return;
23280
+ }
23281
+
23282
+ var name = getComponentName(type);
23283
+ var propTypes;
23284
+
23285
+ if (typeof type === 'function') {
23286
+ propTypes = type.propTypes;
23287
+ } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
23288
+ // Inner props are checked in the reconciler.
23289
+ type.$$typeof === REACT_MEMO_TYPE)) {
23290
+ propTypes = type.propTypes;
23291
+ } else {
23292
+ return;
23293
+ }
23294
+
23295
+ if (propTypes) {
23296
+ setCurrentlyValidatingElement(element);
23297
+ checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
23298
+ setCurrentlyValidatingElement(null);
23299
+ } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
23300
+ propTypesMisspellWarningShown = true;
23301
+ warningWithoutStack$1(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
23302
+ }
23303
+
23304
+ if (typeof type.getDefaultProps === 'function') {
23305
+ !type.getDefaultProps.isReactClassApproved ? warningWithoutStack$1(false, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;
23306
+ }
23307
+ }
23308
+ /**
23309
+ * Given a fragment, validate that it can only be provided with fragment props
23310
+ * @param {ReactElement} fragment
23311
+ */
23312
+
23313
+
23314
+ function validateFragmentProps(fragment) {
23315
+ setCurrentlyValidatingElement(fragment);
23316
+ var keys = Object.keys(fragment.props);
23317
+
23318
+ for (var i = 0; i < keys.length; i++) {
23319
+ var key = keys[i];
23320
+
23321
+ if (key !== 'children' && key !== 'key') {
23322
+ warning$1(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
23323
+ break;
23324
+ }
23325
+ }
23326
+
23327
+ if (fragment.ref !== null) {
23328
+ warning$1(false, 'Invalid attribute `ref` supplied to `React.Fragment`.');
23329
+ }
23330
+
23331
+ setCurrentlyValidatingElement(null);
23332
+ }
23333
+
23334
+ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
23335
+ var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
23336
+ // succeed and there will likely be errors in render.
23337
+
23338
+ if (!validType) {
23339
+ var info = '';
23340
+
23341
+ if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
23342
+ 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.";
23343
+ }
23344
+
23345
+ var sourceInfo = getSourceInfoErrorAddendum(source);
23346
+
23347
+ if (sourceInfo) {
23348
+ info += sourceInfo;
23349
+ } else {
23350
+ info += getDeclarationErrorAddendum();
23351
+ }
23352
+
23353
+ var typeString;
23354
+
23355
+ if (type === null) {
23356
+ typeString = 'null';
23357
+ } else if (Array.isArray(type)) {
23358
+ typeString = 'array';
23359
+ } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
23360
+ typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
23361
+ info = ' Did you accidentally export a JSX literal instead of a component?';
23362
+ } else {
23363
+ typeString = typeof type;
23364
+ }
23365
+
23366
+ warning$1(false, 'React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
23367
+ }
23368
+
23369
+ var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
23370
+ // TODO: Drop this when these are no longer allowed as the type argument.
23371
+
23372
+ if (element == null) {
23373
+ return element;
23374
+ } // Skip key warning if the type isn't valid since our key validation logic
23375
+ // doesn't expect a non-string/function type and can throw confusing errors.
23376
+ // We don't want exception behavior to differ between dev and prod.
23377
+ // (Rendering will throw with a helpful message and as soon as the type is
23378
+ // fixed, the key warnings will appear.)
23379
+
23380
+
23381
+ if (validType) {
23382
+ var children = props.children;
23383
+
23384
+ if (children !== undefined) {
23385
+ if (isStaticChildren) {
23386
+ if (Array.isArray(children)) {
23387
+ for (var i = 0; i < children.length; i++) {
23388
+ validateChildKeys(children[i], type);
23389
+ }
23390
+
23391
+ if (Object.freeze) {
23392
+ Object.freeze(children);
23393
+ }
23394
+ } else {
23395
+ warning$1(false, 'React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');
23396
+ }
23397
+ } else {
23398
+ validateChildKeys(children, type);
23399
+ }
23400
+ }
23401
+ }
23402
+
23403
+ if (hasOwnProperty$1.call(props, 'key')) {
23404
+ warning$1(false, 'React.jsx: Spreading a key to JSX is a deprecated pattern. ' + 'Explicitly pass a key after spreading props in your JSX call. ' + 'E.g. <ComponentName {...props} key={key} />');
23405
+ }
23406
+
23407
+ if (type === REACT_FRAGMENT_TYPE) {
23408
+ validateFragmentProps(element);
23409
+ } else {
23410
+ validatePropTypes(element);
23411
+ }
23412
+
23413
+ return element;
23414
+ } // These two functions exist to still get child warnings in dev
23415
+ // even with the prod transform. This means that jsxDEV is purely
23416
+ // opt-in behavior for better messages but that we won't stop
23417
+ // giving you warnings if you use production apis.
23418
+
23419
+ function jsxWithValidationStatic(type, props, key) {
23420
+ return jsxWithValidation(type, props, key, true);
23421
+ }
23422
+ function jsxWithValidationDynamic(type, props, key) {
23423
+ return jsxWithValidation(type, props, key, false);
23424
+ }
23425
+ function createElementWithValidation(type, props, children) {
23426
+ var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
23427
+ // succeed and there will likely be errors in render.
23428
+
23429
+ if (!validType) {
23430
+ var info = '';
23431
+
23432
+ if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
23433
+ 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.";
23434
+ }
23435
+
23436
+ var sourceInfo = getSourceInfoErrorAddendumForProps(props);
23437
+
23438
+ if (sourceInfo) {
23439
+ info += sourceInfo;
23440
+ } else {
23441
+ info += getDeclarationErrorAddendum();
23442
+ }
23443
+
23444
+ var typeString;
23445
+
23446
+ if (type === null) {
23447
+ typeString = 'null';
23448
+ } else if (Array.isArray(type)) {
23449
+ typeString = 'array';
23450
+ } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
23451
+ typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
23452
+ info = ' Did you accidentally export a JSX literal instead of a component?';
23453
+ } else {
23454
+ typeString = typeof type;
23455
+ }
23456
+
23457
+ warning$1(false, '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);
23458
+ }
23459
+
23460
+ var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
23461
+ // TODO: Drop this when these are no longer allowed as the type argument.
23462
+
23463
+ if (element == null) {
23464
+ return element;
23465
+ } // Skip key warning if the type isn't valid since our key validation logic
23466
+ // doesn't expect a non-string/function type and can throw confusing errors.
23467
+ // We don't want exception behavior to differ between dev and prod.
23468
+ // (Rendering will throw with a helpful message and as soon as the type is
23469
+ // fixed, the key warnings will appear.)
23470
+
23471
+
23472
+ if (validType) {
23473
+ for (var i = 2; i < arguments.length; i++) {
23474
+ validateChildKeys(arguments[i], type);
23475
+ }
23476
+ }
23477
+
23478
+ if (type === REACT_FRAGMENT_TYPE) {
23479
+ validateFragmentProps(element);
23480
+ } else {
23481
+ validatePropTypes(element);
23482
+ }
23483
+
23484
+ return element;
23485
+ }
23486
+ function createFactoryWithValidation(type) {
23487
+ var validatedFactory = createElementWithValidation.bind(null, type);
23488
+ validatedFactory.type = type; // Legacy hook: remove it
23489
+
23490
+ {
23491
+ Object.defineProperty(validatedFactory, 'type', {
23492
+ enumerable: false,
23493
+ get: function () {
23494
+ lowPriorityWarningWithoutStack$1(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
23495
+ Object.defineProperty(this, 'type', {
23496
+ value: type
23497
+ });
23498
+ return type;
23499
+ }
23500
+ });
23501
+ }
23502
+
23503
+ return validatedFactory;
23504
+ }
23505
+ function cloneElementWithValidation(element, props, children) {
23506
+ var newElement = cloneElement.apply(this, arguments);
23507
+
23508
+ for (var i = 2; i < arguments.length; i++) {
23509
+ validateChildKeys(arguments[i], newElement.type);
23510
+ }
23511
+
23512
+ validatePropTypes(newElement);
23513
+ return newElement;
23514
+ }
23515
+
23516
+ var hasBadMapPolyfill;
23517
+
23518
+ {
23519
+ hasBadMapPolyfill = false;
23520
+
23521
+ try {
23522
+ var frozenObject = Object.freeze({});
23523
+ var testMap = new Map([[frozenObject, null]]);
23524
+ var testSet = new Set([frozenObject]); // This is necessary for Rollup to not consider these unused.
23525
+ // https://github.com/rollup/rollup/issues/1771
23526
+ // TODO: we can remove these if Rollup fixes the bug.
23527
+
23528
+ testMap.set(0, 0);
23529
+ testSet.add(0);
23530
+ } catch (e) {
23531
+ // TODO: Consider warning about bad polyfills
23532
+ hasBadMapPolyfill = true;
23533
+ }
23534
+ }
23535
+
23536
+ function createFundamentalComponent(impl) {
23537
+ // We use responder as a Map key later on. When we have a bad
23538
+ // polyfill, then we can't use it as a key as the polyfill tries
23539
+ // to add a property to the object.
23540
+ if (true && !hasBadMapPolyfill) {
23541
+ Object.freeze(impl);
23542
+ }
23543
+
23544
+ var fundamantalComponent = {
23545
+ $$typeof: REACT_FUNDAMENTAL_TYPE,
23546
+ impl: impl
23547
+ };
23548
+
23549
+ {
23550
+ Object.freeze(fundamantalComponent);
23551
+ }
23552
+
23553
+ return fundamantalComponent;
23554
+ }
23555
+
23556
+ function createEventResponder(displayName, responderConfig) {
23557
+ var getInitialState = responderConfig.getInitialState,
23558
+ onEvent = responderConfig.onEvent,
23559
+ onMount = responderConfig.onMount,
23560
+ onUnmount = responderConfig.onUnmount,
23561
+ onRootEvent = responderConfig.onRootEvent,
23562
+ rootEventTypes = responderConfig.rootEventTypes,
23563
+ targetEventTypes = responderConfig.targetEventTypes,
23564
+ targetPortalPropagation = responderConfig.targetPortalPropagation;
23565
+ var eventResponder = {
23566
+ $$typeof: REACT_RESPONDER_TYPE,
23567
+ displayName: displayName,
23568
+ getInitialState: getInitialState || null,
23569
+ onEvent: onEvent || null,
23570
+ onMount: onMount || null,
23571
+ onRootEvent: onRootEvent || null,
23572
+ onUnmount: onUnmount || null,
23573
+ rootEventTypes: rootEventTypes || null,
23574
+ targetEventTypes: targetEventTypes || null,
23575
+ targetPortalPropagation: targetPortalPropagation || false
23576
+ }; // We use responder as a Map key later on. When we have a bad
23577
+ // polyfill, then we can't use it as a key as the polyfill tries
23578
+ // to add a property to the object.
23579
+
23580
+ if (true && !hasBadMapPolyfill) {
23581
+ Object.freeze(eventResponder);
23582
+ }
23583
+
23584
+ return eventResponder;
23585
+ }
23586
+
23587
+ function createScope() {
23588
+ var scopeComponent = {
23589
+ $$typeof: REACT_SCOPE_TYPE
23590
+ };
23591
+
23592
+ {
23593
+ Object.freeze(scopeComponent);
23594
+ }
23595
+
23596
+ return scopeComponent;
23597
+ }
23598
+
23599
+ // Helps identify side effects in render-phase lifecycle hooks and setState
23600
+ // reducers by double invoking them in Strict Mode.
23601
+
23602
+ // To preserve the "Pause on caught exceptions" behavior of the debugger, we
23603
+ // replay the begin phase of a failed component inside invokeGuardedCallback.
23604
+
23605
+ // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
23606
+
23607
+ // Gather advanced timing metrics for Profiler subtrees.
23608
+
23609
+ // Trace which interactions trigger each commit.
23610
+
23611
+ // SSR experiments
23612
+
23613
+
23614
+ // Only used in www builds.
23615
+
23616
+ // Only used in www builds.
23617
+
23618
+ // Disable javascript: URL strings in href for XSS protection.
23619
+
23620
+ // React Fire: prevent the value and checked attributes from syncing
23621
+ // with their related DOM properties
23622
+
23623
+ // These APIs will no longer be "unstable" in the upcoming 16.7 release,
23624
+ // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
23625
+
23626
+ var exposeConcurrentModeAPIs = false;
23627
+ // Experimental React Flare event system and event components support.
23628
+
23629
+ var enableFlareAPI = false; // Experimental Host Component support.
23630
+
23631
+ var enableFundamentalAPI = false; // Experimental Scope support.
23632
+
23633
+ var enableScopeAPI = false; // New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107
23634
+
23635
+ var enableJSXTransformAPI = false; // We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?)
23636
+ // Till then, we warn about the missing mock, but still fallback to a legacy mode compatible version
23637
+
23638
+ // For tests, we flush suspense fallbacks in an act scope;
23639
+ // *except* in some of our own tests, where we test incremental loading states.
23640
+
23641
+ // Add a callback property to suspense to notify which promises are currently
23642
+ // in the update queue. This allows reporting and tracing of what is causing
23643
+ // the user to see a loading state.
23644
+ // Also allows hydration callbacks to fire when a dehydrated boundary gets
23645
+ // hydrated or deleted.
23646
+
23647
+ // Part of the simplification of React.createElement so we can eventually move
23648
+ // from React.createElement to React.jsx
23649
+ // https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md
23650
+
23651
+
23652
+
23653
+
23654
+
23655
+ // Flag to turn event.target and event.currentTarget in ReactNative from a reactTag to a component instance
23656
+
23657
+ var React = {
23658
+ Children: {
23659
+ map: mapChildren,
23660
+ forEach: forEachChildren,
23661
+ count: countChildren,
23662
+ toArray: toArray,
23663
+ only: onlyChild
23664
+ },
23665
+ createRef: createRef,
23666
+ Component: Component,
23667
+ PureComponent: PureComponent,
23668
+ createContext: createContext,
23669
+ forwardRef: forwardRef,
23670
+ lazy: lazy,
23671
+ memo: memo,
23672
+ useCallback: useCallback,
23673
+ useContext: useContext,
23674
+ useEffect: useEffect,
23675
+ useImperativeHandle: useImperativeHandle,
23676
+ useDebugValue: useDebugValue,
23677
+ useLayoutEffect: useLayoutEffect,
23678
+ useMemo: useMemo,
23679
+ useReducer: useReducer,
23680
+ useRef: useRef,
23681
+ useState: useState,
23682
+ Fragment: REACT_FRAGMENT_TYPE,
23683
+ Profiler: REACT_PROFILER_TYPE,
23684
+ StrictMode: REACT_STRICT_MODE_TYPE,
23685
+ Suspense: REACT_SUSPENSE_TYPE,
23686
+ createElement: createElementWithValidation,
23687
+ cloneElement: cloneElementWithValidation,
23688
+ createFactory: createFactoryWithValidation,
23689
+ isValidElement: isValidElement,
23690
+ version: ReactVersion,
23691
+ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals
23692
+ };
23693
+
23694
+ if (exposeConcurrentModeAPIs) {
23695
+ React.useTransition = useTransition;
23696
+ React.useDeferredValue = useDeferredValue;
23697
+ React.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
23698
+ React.unstable_withSuspenseConfig = withSuspenseConfig;
23699
+ }
23700
+
23701
+ if (enableFlareAPI) {
23702
+ React.unstable_useResponder = useResponder;
23703
+ React.unstable_createResponder = createEventResponder;
23704
+ }
23705
+
23706
+ if (enableFundamentalAPI) {
23707
+ React.unstable_createFundamental = createFundamentalComponent;
23708
+ }
23709
+
23710
+ if (enableScopeAPI) {
23711
+ React.unstable_createScope = createScope;
23712
+ } // Note: some APIs are added with feature flags.
23713
+ // Make sure that stable builds for open source
23714
+ // don't modify the React object to avoid deopts.
23715
+ // Also let's not expose their names in stable builds.
23716
+
23717
+
23718
+ if (enableJSXTransformAPI) {
23719
+ {
23720
+ React.jsxDEV = jsxWithValidation;
23721
+ React.jsx = jsxWithValidationDynamic;
23722
+ React.jsxs = jsxWithValidationStatic;
23723
+ }
23724
+ }
23725
+
23726
+
23727
+
23728
+ var React$2 = Object.freeze({
23729
+ default: React
23730
+ });
23731
+
23732
+ var React$3 = ( React$2 && React ) || React$2;
23733
+
23734
+ // TODO: decide on the top-level export form.
23735
+ // This is hacky but makes it work with both Rollup and Jest.
23736
+
23737
+
23738
+ var react = React$3.default || React$3;
23739
+
23740
+ module.exports = react;
23741
+ })();
23742
+ }
23743
+
23744
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
23745
+
23746
+ /***/ }),
23747
+ /* 301 */
23748
+ /***/ (function(module, exports, __webpack_require__) {
23749
+
23750
+ "use strict";
23751
+ /** @license React v16.12.0
23752
+ * react-dom.production.min.js
23753
+ *
23754
+ * Copyright (c) Facebook, Inc. and its affiliates.
23755
+ *
23756
+ * This source code is licensed under the MIT license found in the
23757
+ * LICENSE file in the root directory of this source tree.
23758
+ */
23759
+
23760
+ /*
23761
+ Modernizr 3.0.0pre (Custom Build) | MIT
23762
+ */
23763
+ var aa=__webpack_require__(0),n=__webpack_require__(43),q=__webpack_require__(134);function u(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!aa)throw Error(u(227));var ba=null,ca={};
23764
+ function da(){if(ba)for(var a in ca){var b=ca[a],c=ba.indexOf(a);if(!(-1<c))throw Error(u(96,a));if(!ea[c]){if(!b.extractEvents)throw Error(u(97,a));ea[c]=b;c=b.eventTypes;for(var d in c){var e=void 0;var f=c[d],g=b,h=d;if(fa.hasOwnProperty(h))throw Error(u(99,h));fa[h]=f;var k=f.phasedRegistrationNames;if(k){for(e in k)k.hasOwnProperty(e)&&ha(k[e],g,h);e=!0}else f.registrationName?(ha(f.registrationName,g,h),e=!0):e=!1;if(!e)throw Error(u(98,d,a));}}}}
23765
+ function ha(a,b,c){if(ia[a])throw Error(u(100,a));ia[a]=b;ja[a]=b.eventTypes[c].dependencies}var ea=[],fa={},ia={},ja={};function ka(a,b,c,d,e,f,g,h,k){var l=Array.prototype.slice.call(arguments,3);try{b.apply(c,l)}catch(m){this.onError(m)}}var la=!1,ma=null,na=!1,oa=null,pa={onError:function(a){la=!0;ma=a}};function qa(a,b,c,d,e,f,g,h,k){la=!1;ma=null;ka.apply(pa,arguments)}
23766
+ function ra(a,b,c,d,e,f,g,h,k){qa.apply(this,arguments);if(la){if(la){var l=ma;la=!1;ma=null}else throw Error(u(198));na||(na=!0,oa=l)}}var sa=null,ua=null,va=null;function wa(a,b,c){var d=a.type||"unknown-event";a.currentTarget=va(c);ra(d,b,void 0,a);a.currentTarget=null}function xa(a,b){if(null==b)throw Error(u(30));if(null==a)return b;if(Array.isArray(a)){if(Array.isArray(b))return a.push.apply(a,b),a;a.push(b);return a}return Array.isArray(b)?[a].concat(b):[a,b]}
23767
+ function ya(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)}var za=null;function Aa(a){if(a){var b=a._dispatchListeners,c=a._dispatchInstances;if(Array.isArray(b))for(var d=0;d<b.length&&!a.isPropagationStopped();d++)wa(a,b[d],c[d]);else b&&wa(a,b,c);a._dispatchListeners=null;a._dispatchInstances=null;a.isPersistent()||a.constructor.release(a)}}function Ba(a){null!==a&&(za=xa(za,a));a=za;za=null;if(a){ya(a,Aa);if(za)throw Error(u(95));if(na)throw a=oa,na=!1,oa=null,a;}}
23768
+ var Ca={injectEventPluginOrder:function(a){if(ba)throw Error(u(101));ba=Array.prototype.slice.call(a);da()},injectEventPluginsByName:function(a){var b=!1,c;for(c in a)if(a.hasOwnProperty(c)){var d=a[c];if(!ca.hasOwnProperty(c)||ca[c]!==d){if(ca[c])throw Error(u(102,c));ca[c]=d;b=!0}}b&&da()}};
23769
+ function Da(a,b){var c=a.stateNode;if(!c)return null;var d=sa(c);if(!d)return null;c=d[b];a:switch(b){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":(d=!d.disabled)||(a=a.type,d=!("button"===a||"input"===a||"select"===a||"textarea"===a));a=!d;break a;default:a=!1}if(a)return null;if(c&&"function"!==typeof c)throw Error(u(231,b,typeof c));
23770
+ return c}var Ea=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Ea.hasOwnProperty("ReactCurrentDispatcher")||(Ea.ReactCurrentDispatcher={current:null});Ea.hasOwnProperty("ReactCurrentBatchConfig")||(Ea.ReactCurrentBatchConfig={suspense:null});
23771
+ var Fa=/^(.*)[\\\/]/,w="function"===typeof Symbol&&Symbol.for,Ga=w?Symbol.for("react.element"):60103,Ha=w?Symbol.for("react.portal"):60106,Ia=w?Symbol.for("react.fragment"):60107,Ja=w?Symbol.for("react.strict_mode"):60108,Ka=w?Symbol.for("react.profiler"):60114,La=w?Symbol.for("react.provider"):60109,Ma=w?Symbol.for("react.context"):60110,Na=w?Symbol.for("react.concurrent_mode"):60111,Oa=w?Symbol.for("react.forward_ref"):60112,Pa=w?Symbol.for("react.suspense"):60113,Qa=w?Symbol.for("react.suspense_list"):
23772
+ 60120,Ra=w?Symbol.for("react.memo"):60115,Sa=w?Symbol.for("react.lazy"):60116;w&&Symbol.for("react.fundamental");w&&Symbol.for("react.responder");w&&Symbol.for("react.scope");var Ta="function"===typeof Symbol&&Symbol.iterator;function Ua(a){if(null===a||"object"!==typeof a)return null;a=Ta&&a[Ta]||a["@@iterator"];return"function"===typeof a?a:null}
23773
+ function Va(a){if(-1===a._status){a._status=0;var b=a._ctor;b=b();a._result=b;b.then(function(b){0===a._status&&(b=b.default,a._status=1,a._result=b)},function(b){0===a._status&&(a._status=2,a._result=b)})}}
23774
+ function Wa(a){if(null==a)return null;if("function"===typeof a)return a.displayName||a.name||null;if("string"===typeof a)return a;switch(a){case Ia:return"Fragment";case Ha:return"Portal";case Ka:return"Profiler";case Ja:return"StrictMode";case Pa:return"Suspense";case Qa:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case Ma:return"Context.Consumer";case La:return"Context.Provider";case Oa:var b=a.render;b=b.displayName||b.name||"";return a.displayName||(""!==b?"ForwardRef("+b+")":
23775
+ "ForwardRef");case Ra:return Wa(a.type);case Sa:if(a=1===a._status?a._result:null)return Wa(a)}return null}function Xa(a){var b="";do{a:switch(a.tag){case 3:case 4:case 6:case 7:case 10:case 9:var c="";break a;default:var d=a._debugOwner,e=a._debugSource,f=Wa(a.type);c=null;d&&(c=Wa(d.type));d=f;f="";e?f=" (at "+e.fileName.replace(Fa,"")+":"+e.lineNumber+")":c&&(f=" (created by "+c+")");c="\n in "+(d||"Unknown")+f}b+=c;a=a.return}while(a);return b}
23776
+ var Ya=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),Za=null,$a=null,ab=null;function bb(a){if(a=ua(a)){if("function"!==typeof Za)throw Error(u(280));var b=sa(a.stateNode);Za(a.stateNode,a.type,b)}}function cb(a){$a?ab?ab.push(a):ab=[a]:$a=a}function db(){if($a){var a=$a,b=ab;ab=$a=null;bb(a);if(b)for(a=0;a<b.length;a++)bb(b[a])}}function eb(a,b){return a(b)}function fb(a,b,c,d){return a(b,c,d)}function gb(){}
23777
+ var hb=eb,ib=!1,jb=!1;function kb(){if(null!==$a||null!==ab)gb(),db()}new Map;var lb=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,mb=Object.prototype.hasOwnProperty,nb={},ob={};
23778
+ function pb(a){if(mb.call(ob,a))return!0;if(mb.call(nb,a))return!1;if(lb.test(a))return ob[a]=!0;nb[a]=!0;return!1}function qb(a,b,c,d){if(null!==c&&0===c.type)return!1;switch(typeof b){case "function":case "symbol":return!0;case "boolean":if(d)return!1;if(null!==c)return!c.acceptsBooleans;a=a.toLowerCase().slice(0,5);return"data-"!==a&&"aria-"!==a;default:return!1}}
23779
+ function rb(a,b,c,d){if(null===b||"undefined"===typeof b||qb(a,b,c,d))return!0;if(d)return!1;if(null!==c)switch(c.type){case 3:return!b;case 4:return!1===b;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return!1}function B(a,b,c,d,e,f){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f}var D={};
23780
+ "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){D[a]=new B(a,0,!1,a,null,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];D[b]=new B(b,1,!1,a[1],null,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){D[a]=new B(a,2,!1,a.toLowerCase(),null,!1)});
23781
+ ["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){D[a]=new B(a,2,!1,a,null,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){D[a]=new B(a,3,!1,a.toLowerCase(),null,!1)});
23782
+ ["checked","multiple","muted","selected"].forEach(function(a){D[a]=new B(a,3,!0,a,null,!1)});["capture","download"].forEach(function(a){D[a]=new B(a,4,!1,a,null,!1)});["cols","rows","size","span"].forEach(function(a){D[a]=new B(a,6,!1,a,null,!1)});["rowSpan","start"].forEach(function(a){D[a]=new B(a,5,!1,a.toLowerCase(),null,!1)});var sb=/[\-:]([a-z])/g;function tb(a){return a[1].toUpperCase()}
23783
+ "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=a.replace(sb,
23784
+ tb);D[b]=new B(b,1,!1,a,null,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(sb,tb);D[b]=new B(b,1,!1,a,"http://www.w3.org/1999/xlink",!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(sb,tb);D[b]=new B(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1)});["tabIndex","crossOrigin"].forEach(function(a){D[a]=new B(a,1,!1,a.toLowerCase(),null,!1)});
23785
+ D.xlinkHref=new B("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach(function(a){D[a]=new B(a,1,!1,a.toLowerCase(),null,!0)});function ub(a){switch(typeof a){case "boolean":case "number":case "object":case "string":case "undefined":return a;default:return""}}
23786
+ function vb(a,b,c,d){var e=D.hasOwnProperty(b)?D[b]:null;var f=null!==e?0===e.type:d?!1:!(2<b.length)||"o"!==b[0]&&"O"!==b[0]||"n"!==b[1]&&"N"!==b[1]?!1:!0;f||(rb(b,c,e,d)&&(c=null),d||null===e?pb(b)&&(null===c?a.removeAttribute(b):a.setAttribute(b,""+c)):e.mustUseProperty?a[e.propertyName]=null===c?3===e.type?!1:"":c:(b=e.attributeName,d=e.attributeNamespace,null===c?a.removeAttribute(b):(e=e.type,c=3===e||4===e&&!0===c?"":""+c,d?a.setAttributeNS(d,b,c):a.setAttribute(b,c))))}
23787
+ function wb(a){var b=a.type;return(a=a.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===b||"radio"===b)}
23788
+ function xb(a){var b=wb(a)?"checked":"value",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,b),d=""+a[b];if(!a.hasOwnProperty(b)&&"undefined"!==typeof c&&"function"===typeof c.get&&"function"===typeof c.set){var e=c.get,f=c.set;Object.defineProperty(a,b,{configurable:!0,get:function(){return e.call(this)},set:function(a){d=""+a;f.call(this,a)}});Object.defineProperty(a,b,{enumerable:c.enumerable});return{getValue:function(){return d},setValue:function(a){d=""+a},stopTracking:function(){a._valueTracker=
23789
+ null;delete a[b]}}}}function yb(a){a._valueTracker||(a._valueTracker=xb(a))}function zb(a){if(!a)return!1;var b=a._valueTracker;if(!b)return!0;var c=b.getValue();var d="";a&&(d=wb(a)?a.checked?"true":"false":a.value);a=d;return a!==c?(b.setValue(a),!0):!1}function Ab(a,b){var c=b.checked;return n({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=c?c:a._wrapperState.initialChecked})}
23790
+ function Bb(a,b){var c=null==b.defaultValue?"":b.defaultValue,d=null!=b.checked?b.checked:b.defaultChecked;c=ub(null!=b.value?b.value:c);a._wrapperState={initialChecked:d,initialValue:c,controlled:"checkbox"===b.type||"radio"===b.type?null!=b.checked:null!=b.value}}function Cb(a,b){b=b.checked;null!=b&&vb(a,"checked",b,!1)}
23791
+ function Eb(a,b){Cb(a,b);var c=ub(b.value),d=b.type;if(null!=c)if("number"===d){if(0===c&&""===a.value||a.value!=c)a.value=""+c}else a.value!==""+c&&(a.value=""+c);else if("submit"===d||"reset"===d){a.removeAttribute("value");return}b.hasOwnProperty("value")?Fb(a,b.type,c):b.hasOwnProperty("defaultValue")&&Fb(a,b.type,ub(b.defaultValue));null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked)}
23792
+ function Gb(a,b,c){if(b.hasOwnProperty("value")||b.hasOwnProperty("defaultValue")){var d=b.type;if(!("submit"!==d&&"reset"!==d||void 0!==b.value&&null!==b.value))return;b=""+a._wrapperState.initialValue;c||b===a.value||(a.value=b);a.defaultValue=b}c=a.name;""!==c&&(a.name="");a.defaultChecked=!a.defaultChecked;a.defaultChecked=!!a._wrapperState.initialChecked;""!==c&&(a.name=c)}
23793
+ function Fb(a,b,c){if("number"!==b||a.ownerDocument.activeElement!==a)null==c?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+c&&(a.defaultValue=""+c)}function Hb(a){var b="";aa.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}function Ib(a,b){a=n({children:void 0},b);if(b=Hb(b.children))a.children=b;return a}
23794
+ function Jb(a,b,c,d){a=a.options;if(b){b={};for(var e=0;e<c.length;e++)b["$"+c[e]]=!0;for(c=0;c<a.length;c++)e=b.hasOwnProperty("$"+a[c].value),a[c].selected!==e&&(a[c].selected=e),e&&d&&(a[c].defaultSelected=!0)}else{c=""+ub(c);b=null;for(e=0;e<a.length;e++){if(a[e].value===c){a[e].selected=!0;d&&(a[e].defaultSelected=!0);return}null!==b||a[e].disabled||(b=a[e])}null!==b&&(b.selected=!0)}}
23795
+ function Kb(a,b){if(null!=b.dangerouslySetInnerHTML)throw Error(u(91));return n({},b,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function Lb(a,b){var c=b.value;if(null==c){c=b.defaultValue;b=b.children;if(null!=b){if(null!=c)throw Error(u(92));if(Array.isArray(b)){if(!(1>=b.length))throw Error(u(93));b=b[0]}c=b}null==c&&(c="")}a._wrapperState={initialValue:ub(c)}}
23796
+ function Mb(a,b){var c=ub(b.value),d=ub(b.defaultValue);null!=c&&(c=""+c,c!==a.value&&(a.value=c),null==b.defaultValue&&a.defaultValue!==c&&(a.defaultValue=c));null!=d&&(a.defaultValue=""+d)}function Nb(a){var b=a.textContent;b===a._wrapperState.initialValue&&""!==b&&null!==b&&(a.value=b)}var Ob={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};
23797
+ function Pb(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Qb(a,b){return null==a||"http://www.w3.org/1999/xhtml"===a?Pb(b):"http://www.w3.org/2000/svg"===a&&"foreignObject"===b?"http://www.w3.org/1999/xhtml":a}
23798
+ var Rb,Sb=function(a){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(b,c,d,e){MSApp.execUnsafeLocalFunction(function(){return a(b,c,d,e)})}:a}(function(a,b){if(a.namespaceURI!==Ob.svg||"innerHTML"in a)a.innerHTML=b;else{Rb=Rb||document.createElement("div");Rb.innerHTML="<svg>"+b.valueOf().toString()+"</svg>";for(b=Rb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}});
23799
+ function Tb(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}function Ub(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;return c}var Vb={animationend:Ub("Animation","AnimationEnd"),animationiteration:Ub("Animation","AnimationIteration"),animationstart:Ub("Animation","AnimationStart"),transitionend:Ub("Transition","TransitionEnd")},Wb={},Xb={};
23800
+ Ya&&(Xb=document.createElement("div").style,"AnimationEvent"in window||(delete Vb.animationend.animation,delete Vb.animationiteration.animation,delete Vb.animationstart.animation),"TransitionEvent"in window||delete Vb.transitionend.transition);function Yb(a){if(Wb[a])return Wb[a];if(!Vb[a])return a;var b=Vb[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in Xb)return Wb[a]=b[c];return a}var Zb=Yb("animationend"),$b=Yb("animationiteration"),ac=Yb("animationstart"),bc=Yb("transitionend"),cc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" ");
23801
+ function ec(a){var b=a,c=a;if(a.alternate)for(;b.return;)b=b.return;else{a=b;do b=a,0!==(b.effectTag&1026)&&(c=b.return),a=b.return;while(a)}return 3===b.tag?c:null}function fc(a){if(13===a.tag){var b=a.memoizedState;null===b&&(a=a.alternate,null!==a&&(b=a.memoizedState));if(null!==b)return b.dehydrated}return null}function gc(a){if(ec(a)!==a)throw Error(u(188));}
23802
+ function hc(a){var b=a.alternate;if(!b){b=ec(a);if(null===b)throw Error(u(188));return b!==a?null:a}for(var c=a,d=b;;){var e=c.return;if(null===e)break;var f=e.alternate;if(null===f){d=e.return;if(null!==d){c=d;continue}break}if(e.child===f.child){for(f=e.child;f;){if(f===c)return gc(e),a;if(f===d)return gc(e),b;f=f.sibling}throw Error(u(188));}if(c.return!==d.return)c=e,d=f;else{for(var g=!1,h=e.child;h;){if(h===c){g=!0;c=e;d=f;break}if(h===d){g=!0;d=e;c=f;break}h=h.sibling}if(!g){for(h=f.child;h;){if(h===
23803
+ c){g=!0;c=f;d=e;break}if(h===d){g=!0;d=f;c=e;break}h=h.sibling}if(!g)throw Error(u(189));}}if(c.alternate!==d)throw Error(u(190));}if(3!==c.tag)throw Error(u(188));return c.stateNode.current===c?a:b}function ic(a){a=hc(a);if(!a)return null;for(var b=a;;){if(5===b.tag||6===b.tag)return b;if(b.child)b.child.return=b,b=b.child;else{if(b===a)break;for(;!b.sibling;){if(!b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}}return null}
23804
+ var jc,kc,lc,mc=!1,nc=[],oc=null,pc=null,qc=null,rc=new Map,sc=new Map,tc=[],uc="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),vc="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");
23805
+ function wc(a){var b=xc(a);uc.forEach(function(c){yc(c,a,b)});vc.forEach(function(c){yc(c,a,b)})}function zc(a,b,c,d){return{blockedOn:a,topLevelType:b,eventSystemFlags:c|32,nativeEvent:d}}function Ac(a,b){switch(a){case "focus":case "blur":oc=null;break;case "dragenter":case "dragleave":pc=null;break;case "mouseover":case "mouseout":qc=null;break;case "pointerover":case "pointerout":rc.delete(b.pointerId);break;case "gotpointercapture":case "lostpointercapture":sc.delete(b.pointerId)}}
23806
+ function Bc(a,b,c,d,e){if(null===a||a.nativeEvent!==e)return a=zc(b,c,d,e),null!==b&&(b=Cc(b),null!==b&&kc(b)),a;a.eventSystemFlags|=d;return a}function Dc(a,b,c,d){switch(b){case "focus":return oc=Bc(oc,a,b,c,d),!0;case "dragenter":return pc=Bc(pc,a,b,c,d),!0;case "mouseover":return qc=Bc(qc,a,b,c,d),!0;case "pointerover":var e=d.pointerId;rc.set(e,Bc(rc.get(e)||null,a,b,c,d));return!0;case "gotpointercapture":return e=d.pointerId,sc.set(e,Bc(sc.get(e)||null,a,b,c,d)),!0}return!1}
23807
+ function Ec(a){var b=Fc(a.target);if(null!==b){var c=ec(b);if(null!==c)if(b=c.tag,13===b){if(b=fc(c),null!==b){a.blockedOn=b;q.unstable_runWithPriority(a.priority,function(){lc(c)});return}}else if(3===b&&c.stateNode.hydrate){a.blockedOn=3===c.tag?c.stateNode.containerInfo:null;return}}a.blockedOn=null}function Gc(a){if(null!==a.blockedOn)return!1;var b=Hc(a.topLevelType,a.eventSystemFlags,a.nativeEvent);if(null!==b){var c=Cc(b);null!==c&&kc(c);a.blockedOn=b;return!1}return!0}
23808
+ function Ic(a,b,c){Gc(a)&&c.delete(b)}function Jc(){for(mc=!1;0<nc.length;){var a=nc[0];if(null!==a.blockedOn){a=Cc(a.blockedOn);null!==a&&jc(a);break}var b=Hc(a.topLevelType,a.eventSystemFlags,a.nativeEvent);null!==b?a.blockedOn=b:nc.shift()}null!==oc&&Gc(oc)&&(oc=null);null!==pc&&Gc(pc)&&(pc=null);null!==qc&&Gc(qc)&&(qc=null);rc.forEach(Ic);sc.forEach(Ic)}function Kc(a,b){a.blockedOn===b&&(a.blockedOn=null,mc||(mc=!0,q.unstable_scheduleCallback(q.unstable_NormalPriority,Jc)))}
23809
+ function Lc(a){function b(b){return Kc(b,a)}if(0<nc.length){Kc(nc[0],a);for(var c=1;c<nc.length;c++){var d=nc[c];d.blockedOn===a&&(d.blockedOn=null)}}null!==oc&&Kc(oc,a);null!==pc&&Kc(pc,a);null!==qc&&Kc(qc,a);rc.forEach(b);sc.forEach(b);for(c=0;c<tc.length;c++)d=tc[c],d.blockedOn===a&&(d.blockedOn=null);for(;0<tc.length&&(c=tc[0],null===c.blockedOn);)Ec(c),null===c.blockedOn&&tc.shift()}
23810
+ function Mc(a){a=a.target||a.srcElement||window;a.correspondingUseElement&&(a=a.correspondingUseElement);return 3===a.nodeType?a.parentNode:a}function Nc(a){do a=a.return;while(a&&5!==a.tag);return a?a:null}function Oc(a,b,c){if(b=Da(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=xa(c._dispatchListeners,b),c._dispatchInstances=xa(c._dispatchInstances,a)}
23811
+ function Pc(a){if(a&&a.dispatchConfig.phasedRegistrationNames){for(var b=a._targetInst,c=[];b;)c.push(b),b=Nc(b);for(b=c.length;0<b--;)Oc(c[b],"captured",a);for(b=0;b<c.length;b++)Oc(c[b],"bubbled",a)}}function Qc(a,b,c){a&&c&&c.dispatchConfig.registrationName&&(b=Da(a,c.dispatchConfig.registrationName))&&(c._dispatchListeners=xa(c._dispatchListeners,b),c._dispatchInstances=xa(c._dispatchInstances,a))}function Rc(a){a&&a.dispatchConfig.registrationName&&Qc(a._targetInst,null,a)}
23812
+ function Sc(a){ya(a,Pc)}function Tc(){return!0}function Uc(){return!1}function E(a,b,c,d){this.dispatchConfig=a;this._targetInst=b;this.nativeEvent=c;a=this.constructor.Interface;for(var e in a)a.hasOwnProperty(e)&&((b=a[e])?this[e]=b(c):"target"===e?this.target=d:this[e]=c[e]);this.isDefaultPrevented=(null!=c.defaultPrevented?c.defaultPrevented:!1===c.returnValue)?Tc:Uc;this.isPropagationStopped=Uc;return this}
23813
+ n(E.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=Tc)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=Tc)},persist:function(){this.isPersistent=Tc},isPersistent:Uc,destructor:function(){var a=this.constructor.Interface,
23814
+ b;for(b in a)this[b]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null;this.isPropagationStopped=this.isDefaultPrevented=Uc;this._dispatchInstances=this._dispatchListeners=null}});E.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};
23815
+ E.extend=function(a){function b(){}function c(){return d.apply(this,arguments)}var d=this;b.prototype=d.prototype;var e=new b;n(e,c.prototype);c.prototype=e;c.prototype.constructor=c;c.Interface=n({},d.Interface,a);c.extend=d.extend;Vc(c);return c};Vc(E);function Wc(a,b,c,d){if(this.eventPool.length){var e=this.eventPool.pop();this.call(e,a,b,c,d);return e}return new this(a,b,c,d)}
23816
+ function Xc(a){if(!(a instanceof this))throw Error(u(279));a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function Vc(a){a.eventPool=[];a.getPooled=Wc;a.release=Xc}var Yc=E.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Zc=E.extend({clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),$c=E.extend({view:null,detail:null}),ad=$c.extend({relatedTarget:null});
23817
+ function bd(a){var b=a.keyCode;"charCode"in a?(a=a.charCode,0===a&&13===b&&(a=13)):a=b;10===a&&(a=13);return 32<=a||13===a?a:0}
23818
+ var cd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dd={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",
23819
+ 116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ed={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gd(a){var b=this.nativeEvent;return b.getModifierState?b.getModifierState(a):(a=ed[a])?!!b[a]:!1}function hd(){return gd}
23820
+ var id=$c.extend({key:function(a){if(a.key){var b=cd[a.key]||a.key;if("Unidentified"!==b)return b}return"keypress"===a.type?(a=bd(a),13===a?"Enter":String.fromCharCode(a)):"keydown"===a.type||"keyup"===a.type?dd[a.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:hd,charCode:function(a){return"keypress"===a.type?bd(a):0},keyCode:function(a){return"keydown"===a.type||"keyup"===a.type?a.keyCode:0},which:function(a){return"keypress"===
23821
+ a.type?bd(a):"keydown"===a.type||"keyup"===a.type?a.keyCode:0}}),jd=0,kd=0,ld=!1,md=!1,nd=$c.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:hd,button:null,buttons:null,relatedTarget:function(a){return a.relatedTarget||(a.fromElement===a.srcElement?a.toElement:a.fromElement)},movementX:function(a){if("movementX"in a)return a.movementX;var b=jd;jd=a.screenX;return ld?"mousemove"===a.type?a.screenX-
23822
+ b:0:(ld=!0,0)},movementY:function(a){if("movementY"in a)return a.movementY;var b=kd;kd=a.screenY;return md?"mousemove"===a.type?a.screenY-b:0:(md=!0,0)}}),od=nd.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),pd=nd.extend({dataTransfer:null}),qd=$c.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:hd}),rd=E.extend({propertyName:null,
23823
+ elapsedTime:null,pseudoElement:null}),sd=nd.extend({deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:null,deltaMode:null}),td=[["blur","blur",0],["cancel","cancel",0],["click","click",0],["close","close",0],["contextmenu","contextMenu",0],["copy","copy",0],["cut","cut",0],["auxclick","auxClick",0],["dblclick","doubleClick",0],["dragend","dragEnd",
23824
+ 0],["dragstart","dragStart",0],["drop","drop",0],["focus","focus",0],["input","input",0],["invalid","invalid",0],["keydown","keyDown",0],["keypress","keyPress",0],["keyup","keyUp",0],["mousedown","mouseDown",0],["mouseup","mouseUp",0],["paste","paste",0],["pause","pause",0],["play","play",0],["pointercancel","pointerCancel",0],["pointerdown","pointerDown",0],["pointerup","pointerUp",0],["ratechange","rateChange",0],["reset","reset",0],["seeked","seeked",0],["submit","submit",0],["touchcancel","touchCancel",
23825
+ 0],["touchend","touchEnd",0],["touchstart","touchStart",0],["volumechange","volumeChange",0],["drag","drag",1],["dragenter","dragEnter",1],["dragexit","dragExit",1],["dragleave","dragLeave",1],["dragover","dragOver",1],["mousemove","mouseMove",1],["mouseout","mouseOut",1],["mouseover","mouseOver",1],["pointermove","pointerMove",1],["pointerout","pointerOut",1],["pointerover","pointerOver",1],["scroll","scroll",1],["toggle","toggle",1],["touchmove","touchMove",1],["wheel","wheel",1],["abort","abort",
23826
+ 2],[Zb,"animationEnd",2],[$b,"animationIteration",2],[ac,"animationStart",2],["canplay","canPlay",2],["canplaythrough","canPlayThrough",2],["durationchange","durationChange",2],["emptied","emptied",2],["encrypted","encrypted",2],["ended","ended",2],["error","error",2],["gotpointercapture","gotPointerCapture",2],["load","load",2],["loadeddata","loadedData",2],["loadedmetadata","loadedMetadata",2],["loadstart","loadStart",2],["lostpointercapture","lostPointerCapture",2],["playing","playing",2],["progress",
23827
+ "progress",2],["seeking","seeking",2],["stalled","stalled",2],["suspend","suspend",2],["timeupdate","timeUpdate",2],[bc,"transitionEnd",2],["waiting","waiting",2]],ud={},vd={},wd=0;for(;wd<td.length;wd++){var yd=td[wd],zd=yd[0],Ad=yd[1],Bd=yd[2],Cd="on"+(Ad[0].toUpperCase()+Ad.slice(1)),Dd={phasedRegistrationNames:{bubbled:Cd,captured:Cd+"Capture"},dependencies:[zd],eventPriority:Bd};ud[Ad]=Dd;vd[zd]=Dd}
23828
+ var Ed={eventTypes:ud,getEventPriority:function(a){a=vd[a];return void 0!==a?a.eventPriority:2},extractEvents:function(a,b,c,d){var e=vd[a];if(!e)return null;switch(a){case "keypress":if(0===bd(c))return null;case "keydown":case "keyup":a=id;break;case "blur":case "focus":a=ad;break;case "click":if(2===c.button)return null;case "auxclick":case "dblclick":case "mousedown":case "mousemove":case "mouseup":case "mouseout":case "mouseover":case "contextmenu":a=nd;break;case "drag":case "dragend":case "dragenter":case "dragexit":case "dragleave":case "dragover":case "dragstart":case "drop":a=
23829
+ pd;break;case "touchcancel":case "touchend":case "touchmove":case "touchstart":a=qd;break;case Zb:case $b:case ac:a=Yc;break;case bc:a=rd;break;case "scroll":a=$c;break;case "wheel":a=sd;break;case "copy":case "cut":case "paste":a=Zc;break;case "gotpointercapture":case "lostpointercapture":case "pointercancel":case "pointerdown":case "pointermove":case "pointerout":case "pointerover":case "pointerup":a=od;break;default:a=E}b=a.getPooled(e,b,c,d);Sc(b);return b}},Fd=q.unstable_UserBlockingPriority,
23830
+ Gd=q.unstable_runWithPriority,Hd=Ed.getEventPriority,Id=10,Jd=[];
23831
+ function Kd(a){var b=a.targetInst,c=b;do{if(!c){a.ancestors.push(c);break}var d=c;if(3===d.tag)d=d.stateNode.containerInfo;else{for(;d.return;)d=d.return;d=3!==d.tag?null:d.stateNode.containerInfo}if(!d)break;b=c.tag;5!==b&&6!==b||a.ancestors.push(c);c=Fc(d)}while(c);for(c=0;c<a.ancestors.length;c++){b=a.ancestors[c];var e=Mc(a.nativeEvent);d=a.topLevelType;for(var f=a.nativeEvent,g=a.eventSystemFlags,h=null,k=0;k<ea.length;k++){var l=ea[k];l&&(l=l.extractEvents(d,b,f,e,g))&&(h=xa(h,l))}Ba(h)}}
23832
+ var Ld=!0;function F(a,b){Md(b,a,!1)}function Md(a,b,c){switch(Hd(b)){case 0:var d=Nd.bind(null,b,1);break;case 1:d=Od.bind(null,b,1);break;default:d=Pd.bind(null,b,1)}c?a.addEventListener(b,d,!0):a.addEventListener(b,d,!1)}function Nd(a,b,c){ib||gb();var d=Pd,e=ib;ib=!0;try{fb(d,a,b,c)}finally{(ib=e)||kb()}}function Od(a,b,c){Gd(Fd,Pd.bind(null,a,b,c))}
23833
+ function Qd(a,b,c,d){if(Jd.length){var e=Jd.pop();e.topLevelType=a;e.eventSystemFlags=b;e.nativeEvent=c;e.targetInst=d;a=e}else a={topLevelType:a,eventSystemFlags:b,nativeEvent:c,targetInst:d,ancestors:[]};try{if(b=Kd,c=a,jb)b(c,void 0);else{jb=!0;try{hb(b,c,void 0)}finally{jb=!1,kb()}}}finally{a.topLevelType=null,a.nativeEvent=null,a.targetInst=null,a.ancestors.length=0,Jd.length<Id&&Jd.push(a)}}
23834
+ function Pd(a,b,c){if(Ld)if(0<nc.length&&-1<uc.indexOf(a))a=zc(null,a,b,c),nc.push(a);else{var d=Hc(a,b,c);null===d?Ac(a,c):-1<uc.indexOf(a)?(a=zc(d,a,b,c),nc.push(a)):Dc(d,a,b,c)||(Ac(a,c),Qd(a,b,c,null))}}function Hc(a,b,c){var d=Mc(c);d=Fc(d);if(null!==d){var e=ec(d);if(null===e)d=null;else{var f=e.tag;if(13===f){d=fc(e);if(null!==d)return d;d=null}else if(3===f){if(e.stateNode.hydrate)return 3===e.tag?e.stateNode.containerInfo:null;d=null}else e!==d&&(d=null)}}Qd(a,b,c,d);return null}
23835
+ function Rd(a){if(!Ya)return!1;a="on"+a;var b=a in document;b||(b=document.createElement("div"),b.setAttribute(a,"return;"),b="function"===typeof b[a]);return b}var Sd=new ("function"===typeof WeakMap?WeakMap:Map);function xc(a){var b=Sd.get(a);void 0===b&&(b=new Set,Sd.set(a,b));return b}
23836
+ function yc(a,b,c){if(!c.has(a)){switch(a){case "scroll":Md(b,"scroll",!0);break;case "focus":case "blur":Md(b,"focus",!0);Md(b,"blur",!0);c.add("blur");c.add("focus");break;case "cancel":case "close":Rd(a)&&Md(b,a,!0);break;case "invalid":case "submit":case "reset":break;default:-1===cc.indexOf(a)&&F(a,b)}c.add(a)}}
23837
+ var Td={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,
23838
+ floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ud=["Webkit","ms","Moz","O"];Object.keys(Td).forEach(function(a){Ud.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);Td[b]=Td[a]})});function Vd(a,b,c){return null==b||"boolean"===typeof b||""===b?"":c||"number"!==typeof b||0===b||Td.hasOwnProperty(a)&&Td[a]?(""+b).trim():b+"px"}
23839
+ function Wd(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf("--"),e=Vd(c,b[c],d);"float"===c&&(c="cssFloat");d?a.setProperty(c,e):a[c]=e}}var Xd=n({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});
23840
+ function Yd(a,b){if(b){if(Xd[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML))throw Error(u(137,a,""));if(null!=b.dangerouslySetInnerHTML){if(null!=b.children)throw Error(u(60));if(!("object"===typeof b.dangerouslySetInnerHTML&&"__html"in b.dangerouslySetInnerHTML))throw Error(u(61));}if(null!=b.style&&"object"!==typeof b.style)throw Error(u(62,""));}}
23841
+ function Zd(a,b){if(-1===a.indexOf("-"))return"string"===typeof b.is;switch(a){case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":return!1;default:return!0}}function $d(a,b){a=9===a.nodeType||11===a.nodeType?a:a.ownerDocument;var c=xc(a);b=ja[b];for(var d=0;d<b.length;d++)yc(b[d],a,c)}function ae(){}
23842
+ function be(a){a=a||("undefined"!==typeof document?document:void 0);if("undefined"===typeof a)return null;try{return a.activeElement||a.body}catch(b){return a.body}}function ce(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function de(a,b){var c=ce(a);a=0;for(var d;c;){if(3===c.nodeType){d=a+c.textContent.length;if(a<=b&&d>=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=ce(c)}}
23843
+ function ee(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?ee(a,b.parentNode):"contains"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}function fe(){for(var a=window,b=be();b instanceof a.HTMLIFrameElement;){try{var c="string"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=be(a.document)}return b}
23844
+ function ge(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&("input"===b&&("text"===a.type||"search"===a.type||"tel"===a.type||"url"===a.type||"password"===a.type)||"textarea"===b||"true"===a.contentEditable)}var he="$",ie="/$",je="$?",ke="$!",le=null,me=null;function ne(a,b){switch(a){case "button":case "input":case "select":case "textarea":return!!b.autoFocus}return!1}
23845
+ function oe(a,b){return"textarea"===a||"option"===a||"noscript"===a||"string"===typeof b.children||"number"===typeof b.children||"object"===typeof b.dangerouslySetInnerHTML&&null!==b.dangerouslySetInnerHTML&&null!=b.dangerouslySetInnerHTML.__html}var pe="function"===typeof setTimeout?setTimeout:void 0,qe="function"===typeof clearTimeout?clearTimeout:void 0;function re(a){for(;null!=a;a=a.nextSibling){var b=a.nodeType;if(1===b||3===b)break}return a}
23846
+ function se(a){a=a.previousSibling;for(var b=0;a;){if(8===a.nodeType){var c=a.data;if(c===he||c===ke||c===je){if(0===b)return a;b--}else c===ie&&b++}a=a.previousSibling}return null}var te=Math.random().toString(36).slice(2),ue="__reactInternalInstance$"+te,ve="__reactEventHandlers$"+te,we="__reactContainere$"+te;
23847
+ function Fc(a){var b=a[ue];if(b)return b;for(var c=a.parentNode;c;){if(b=c[we]||c[ue]){c=b.alternate;if(null!==b.child||null!==c&&null!==c.child)for(a=se(a);null!==a;){if(c=a[ue])return c;a=se(a)}return b}a=c;c=a.parentNode}return null}function Cc(a){a=a[ue]||a[we];return!a||5!==a.tag&&6!==a.tag&&13!==a.tag&&3!==a.tag?null:a}function xe(a){if(5===a.tag||6===a.tag)return a.stateNode;throw Error(u(33));}function ye(a){return a[ve]||null}var ze=null,Ae=null,Be=null;
23848
+ function Ce(){if(Be)return Be;var a,b=Ae,c=b.length,d,e="value"in ze?ze.value:ze.textContent,f=e.length;for(a=0;a<c&&b[a]===e[a];a++);var g=c-a;for(d=1;d<=g&&b[c-d]===e[f-d];d++);return Be=e.slice(a,1<d?1-d:void 0)}var De=E.extend({data:null}),Ee=E.extend({data:null}),Fe=[9,13,27,32],Ge=Ya&&"CompositionEvent"in window,He=null;Ya&&"documentMode"in document&&(He=document.documentMode);
23849
+ var Ie=Ya&&"TextEvent"in window&&!He,Je=Ya&&(!Ge||He&&8<He&&11>=He),Ke=String.fromCharCode(32),Le={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",
23850
+ captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Me=!1;
23851
+ function Ne(a,b){switch(a){case "keyup":return-1!==Fe.indexOf(b.keyCode);case "keydown":return 229!==b.keyCode;case "keypress":case "mousedown":case "blur":return!0;default:return!1}}function Oe(a){a=a.detail;return"object"===typeof a&&"data"in a?a.data:null}var Pe=!1;function Qe(a,b){switch(a){case "compositionend":return Oe(b);case "keypress":if(32!==b.which)return null;Me=!0;return Ke;case "textInput":return a=b.data,a===Ke&&Me?null:a;default:return null}}
23852
+ function Re(a,b){if(Pe)return"compositionend"===a||!Ge&&Ne(a,b)?(a=Ce(),Be=Ae=ze=null,Pe=!1,a):null;switch(a){case "paste":return null;case "keypress":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1<b.char.length)return b.char;if(b.which)return String.fromCharCode(b.which)}return null;case "compositionend":return Je&&"ko"!==b.locale?null:b.data;default:return null}}
23853
+ var Se={eventTypes:Le,extractEvents:function(a,b,c,d){var e;if(Ge)b:{switch(a){case "compositionstart":var f=Le.compositionStart;break b;case "compositionend":f=Le.compositionEnd;break b;case "compositionupdate":f=Le.compositionUpdate;break b}f=void 0}else Pe?Ne(a,c)&&(f=Le.compositionEnd):"keydown"===a&&229===c.keyCode&&(f=Le.compositionStart);f?(Je&&"ko"!==c.locale&&(Pe||f!==Le.compositionStart?f===Le.compositionEnd&&Pe&&(e=Ce()):(ze=d,Ae="value"in ze?ze.value:ze.textContent,Pe=!0)),f=De.getPooled(f,
23854
+ b,c,d),e?f.data=e:(e=Oe(c),null!==e&&(f.data=e)),Sc(f),e=f):e=null;(a=Ie?Qe(a,c):Re(a,c))?(b=Ee.getPooled(Le.beforeInput,b,c,d),b.data=a,Sc(b)):b=null;return null===e?b:null===b?e:[e,b]}},Te={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ue(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return"input"===b?!!Te[a.type]:"textarea"===b?!0:!1}
23855
+ var Ve={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function We(a,b,c){a=E.getPooled(Ve.change,a,b,c);a.type="change";cb(c);Sc(a);return a}var Xe=null,Ye=null;function Ze(a){Ba(a)}function $e(a){var b=xe(a);if(zb(b))return a}function af(a,b){if("change"===a)return b}var bf=!1;Ya&&(bf=Rd("input")&&(!document.documentMode||9<document.documentMode));
23856
+ function cf(){Xe&&(Xe.detachEvent("onpropertychange",df),Ye=Xe=null)}function df(a){if("value"===a.propertyName&&$e(Ye))if(a=We(Ye,a,Mc(a)),ib)Ba(a);else{ib=!0;try{eb(Ze,a)}finally{ib=!1,kb()}}}function ef(a,b,c){"focus"===a?(cf(),Xe=b,Ye=c,Xe.attachEvent("onpropertychange",df)):"blur"===a&&cf()}function ff(a){if("selectionchange"===a||"keyup"===a||"keydown"===a)return $e(Ye)}function gf(a,b){if("click"===a)return $e(b)}function hf(a,b){if("input"===a||"change"===a)return $e(b)}
23857
+ var jf={eventTypes:Ve,_isInputEventSupported:bf,extractEvents:function(a,b,c,d){var e=b?xe(b):window,f=e.nodeName&&e.nodeName.toLowerCase();if("select"===f||"input"===f&&"file"===e.type)var g=af;else if(Ue(e))if(bf)g=hf;else{g=ff;var h=ef}else(f=e.nodeName)&&"input"===f.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)&&(g=gf);if(g&&(g=g(a,b)))return We(g,c,d);h&&h(a,e,b);"blur"===a&&(a=e._wrapperState)&&a.controlled&&"number"===e.type&&Fb(e,"number",e.value)}},kf={mouseEnter:{registrationName:"onMouseEnter",
23858
+ dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},lf,mf={eventTypes:kf,extractEvents:function(a,b,c,d,e){var f="mouseover"===a||"pointerover"===a,g="mouseout"===a||"pointerout"===a;if(f&&0===(e&32)&&(c.relatedTarget||c.fromElement)||!g&&!f)return null;
23859
+ e=d.window===d?d:(e=d.ownerDocument)?e.defaultView||e.parentWindow:window;if(g){if(g=b,b=(b=c.relatedTarget||c.toElement)?Fc(b):null,null!==b&&(f=ec(b),b!==f||5!==b.tag&&6!==b.tag))b=null}else g=null;if(g===b)return null;if("mouseout"===a||"mouseover"===a){var h=nd;var k=kf.mouseLeave;var l=kf.mouseEnter;var m="mouse"}else if("pointerout"===a||"pointerover"===a)h=od,k=kf.pointerLeave,l=kf.pointerEnter,m="pointer";a=null==g?e:xe(g);e=null==b?e:xe(b);k=h.getPooled(k,g,c,d);k.type=m+"leave";k.target=
23860
+ a;k.relatedTarget=e;d=h.getPooled(l,b,c,d);d.type=m+"enter";d.target=e;d.relatedTarget=a;h=g;m=b;if(h&&m)a:{l=h;a=m;g=0;for(b=l;b;b=Nc(b))g++;b=0;for(e=a;e;e=Nc(e))b++;for(;0<g-b;)l=Nc(l),g--;for(;0<b-g;)a=Nc(a),b--;for(;g--;){if(l===a||l===a.alternate)break a;l=Nc(l);a=Nc(a)}l=null}else l=null;a=l;for(l=[];h&&h!==a;){g=h.alternate;if(null!==g&&g===a)break;l.push(h);h=Nc(h)}for(h=[];m&&m!==a;){g=m.alternate;if(null!==g&&g===a)break;h.push(m);m=Nc(m)}for(m=0;m<l.length;m++)Qc(l[m],"bubbled",k);for(m=
23861
+ h.length;0<m--;)Qc(h[m],"captured",d);if(c===lf)return lf=null,[k];lf=c;return[k,d]}};function nf(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var of="function"===typeof Object.is?Object.is:nf,pf=Object.prototype.hasOwnProperty;function qf(a,b){if(of(a,b))return!0;if("object"!==typeof a||null===a||"object"!==typeof b||null===b)return!1;var c=Object.keys(a),d=Object.keys(b);if(c.length!==d.length)return!1;for(d=0;d<c.length;d++)if(!pf.call(b,c[d])||!of(a[c[d]],b[c[d]]))return!1;return!0}
23862
+ var rf=Ya&&"documentMode"in document&&11>=document.documentMode,sf={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},tf=null,uf=null,vf=null,wf=!1;
23863
+ function xf(a,b){var c=b.window===b?b.document:9===b.nodeType?b:b.ownerDocument;if(wf||null==tf||tf!==be(c))return null;c=tf;"selectionStart"in c&&ge(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset});return vf&&qf(vf,c)?null:(vf=c,a=E.getPooled(sf.select,uf,a,b),a.type="select",a.target=tf,Sc(a),a)}
23864
+ var yf={eventTypes:sf,extractEvents:function(a,b,c,d){var e=d.window===d?d.document:9===d.nodeType?d:d.ownerDocument,f;if(!(f=!e)){a:{e=xc(e);f=ja.onSelect;for(var g=0;g<f.length;g++)if(!e.has(f[g])){e=!1;break a}e=!0}f=!e}if(f)return null;e=b?xe(b):window;switch(a){case "focus":if(Ue(e)||"true"===e.contentEditable)tf=e,uf=b,vf=null;break;case "blur":vf=uf=tf=null;break;case "mousedown":wf=!0;break;case "contextmenu":case "mouseup":case "dragend":return wf=!1,xf(c,d);case "selectionchange":if(rf)break;
23865
+ case "keydown":case "keyup":return xf(c,d)}return null}};Ca.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" "));var zf=Cc;sa=ye;ua=zf;va=xe;Ca.injectEventPluginsByName({SimpleEventPlugin:Ed,EnterLeaveEventPlugin:mf,ChangeEventPlugin:jf,SelectEventPlugin:yf,BeforeInputEventPlugin:Se});new Set;var Af=[],Bf=-1;function G(a){0>Bf||(a.current=Af[Bf],Af[Bf]=null,Bf--)}
23866
+ function I(a,b){Bf++;Af[Bf]=a.current;a.current=b}var Cf={},J={current:Cf},K={current:!1},Df=Cf;function Ef(a,b){var c=a.type.contextTypes;if(!c)return Cf;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}function L(a){a=a.childContextTypes;return null!==a&&void 0!==a}
23867
+ function Ff(a){G(K,a);G(J,a)}function Gf(a){G(K,a);G(J,a)}function Hf(a,b,c){if(J.current!==Cf)throw Error(u(168));I(J,b,a);I(K,c,a)}function If(a,b,c){var d=a.stateNode;a=b.childContextTypes;if("function"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in a))throw Error(u(108,Wa(b)||"Unknown",e));return n({},c,{},d)}function Jf(a){var b=a.stateNode;b=b&&b.__reactInternalMemoizedMergedChildContext||Cf;Df=J.current;I(J,b,a);I(K,K.current,a);return!0}
23868
+ function Kf(a,b,c){var d=a.stateNode;if(!d)throw Error(u(169));c?(b=If(a,b,Df),d.__reactInternalMemoizedMergedChildContext=b,G(K,a),G(J,a),I(J,b,a)):G(K,a);I(K,c,a)}
23869
+ var Lf=q.unstable_runWithPriority,Mf=q.unstable_scheduleCallback,Nf=q.unstable_cancelCallback,Of=q.unstable_shouldYield,Pf=q.unstable_requestPaint,Qf=q.unstable_now,Rf=q.unstable_getCurrentPriorityLevel,Sf=q.unstable_ImmediatePriority,Tf=q.unstable_UserBlockingPriority,Uf=q.unstable_NormalPriority,Vf=q.unstable_LowPriority,Wf=q.unstable_IdlePriority,Xf={},Yf=void 0!==Pf?Pf:function(){},Zf=null,$f=null,ag=!1,bg=Qf(),cg=1E4>bg?Qf:function(){return Qf()-bg};
23870
+ function dg(){switch(Rf()){case Sf:return 99;case Tf:return 98;case Uf:return 97;case Vf:return 96;case Wf:return 95;default:throw Error(u(332));}}function eg(a){switch(a){case 99:return Sf;case 98:return Tf;case 97:return Uf;case 96:return Vf;case 95:return Wf;default:throw Error(u(332));}}function fg(a,b){a=eg(a);return Lf(a,b)}function gg(a,b,c){a=eg(a);return Mf(a,b,c)}function hg(a){null===Zf?(Zf=[a],$f=Mf(Sf,ig)):Zf.push(a);return Xf}function jg(){if(null!==$f){var a=$f;$f=null;Nf(a)}ig()}
23871
+ function ig(){if(!ag&&null!==Zf){ag=!0;var a=0;try{var b=Zf;fg(99,function(){for(;a<b.length;a++){var c=b[a];do c=c(!0);while(null!==c)}});Zf=null}catch(c){throw null!==Zf&&(Zf=Zf.slice(a+1)),Mf(Sf,jg),c;}finally{ag=!1}}}var kg=3;function lg(a,b,c){c/=10;return 1073741821-(((1073741821-a+b/10)/c|0)+1)*c}function mg(a,b){if(a&&a.defaultProps){b=n({},b);a=a.defaultProps;for(var c in a)void 0===b[c]&&(b[c]=a[c])}return b}var ng={current:null},og=null,pg=null,qg=null;function rg(){qg=pg=og=null}
23872
+ function sg(a,b){var c=a.type._context;I(ng,c._currentValue,a);c._currentValue=b}function tg(a){var b=ng.current;G(ng,a);a.type._context._currentValue=b}function ug(a,b){for(;null!==a;){var c=a.alternate;if(a.childExpirationTime<b)a.childExpirationTime=b,null!==c&&c.childExpirationTime<b&&(c.childExpirationTime=b);else if(null!==c&&c.childExpirationTime<b)c.childExpirationTime=b;else break;a=a.return}}
23873
+ function vg(a,b){og=a;qg=pg=null;a=a.dependencies;null!==a&&null!==a.firstContext&&(a.expirationTime>=b&&(wg=!0),a.firstContext=null)}function xg(a,b){if(qg!==a&&!1!==b&&0!==b){if("number"!==typeof b||1073741823===b)qg=a,b=1073741823;b={context:a,observedBits:b,next:null};if(null===pg){if(null===og)throw Error(u(308));pg=b;og.dependencies={expirationTime:0,firstContext:b,responders:null}}else pg=pg.next=b}return a._currentValue}var yg=!1;
23874
+ function zg(a){return{baseState:a,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Ag(a){return{baseState:a.baseState,firstUpdate:a.firstUpdate,lastUpdate:a.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}
23875
+ function Bg(a,b){return{expirationTime:a,suspenseConfig:b,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Cg(a,b){null===a.lastUpdate?a.firstUpdate=a.lastUpdate=b:(a.lastUpdate.next=b,a.lastUpdate=b)}
23876
+ function Dg(a,b){var c=a.alternate;if(null===c){var d=a.updateQueue;var e=null;null===d&&(d=a.updateQueue=zg(a.memoizedState))}else d=a.updateQueue,e=c.updateQueue,null===d?null===e?(d=a.updateQueue=zg(a.memoizedState),e=c.updateQueue=zg(c.memoizedState)):d=a.updateQueue=Ag(e):null===e&&(e=c.updateQueue=Ag(d));null===e||d===e?Cg(d,b):null===d.lastUpdate||null===e.lastUpdate?(Cg(d,b),Cg(e,b)):(Cg(d,b),e.lastUpdate=b)}
23877
+ function Eg(a,b){var c=a.updateQueue;c=null===c?a.updateQueue=zg(a.memoizedState):Fg(a,c);null===c.lastCapturedUpdate?c.firstCapturedUpdate=c.lastCapturedUpdate=b:(c.lastCapturedUpdate.next=b,c.lastCapturedUpdate=b)}function Fg(a,b){var c=a.alternate;null!==c&&b===c.updateQueue&&(b=a.updateQueue=Ag(b));return b}
23878
+ function Gg(a,b,c,d,e,f){switch(c.tag){case 1:return a=c.payload,"function"===typeof a?a.call(f,d,e):a;case 3:a.effectTag=a.effectTag&-4097|64;case 0:a=c.payload;e="function"===typeof a?a.call(f,d,e):a;if(null===e||void 0===e)break;return n({},d,e);case 2:yg=!0}return d}
23879
+ function Hg(a,b,c,d,e){yg=!1;b=Fg(a,b);for(var f=b.baseState,g=null,h=0,k=b.firstUpdate,l=f;null!==k;){var m=k.expirationTime;m<e?(null===g&&(g=k,f=l),h<m&&(h=m)):(Ig(m,k.suspenseConfig),l=Gg(a,b,k,l,c,d),null!==k.callback&&(a.effectTag|=32,k.nextEffect=null,null===b.lastEffect?b.firstEffect=b.lastEffect=k:(b.lastEffect.nextEffect=k,b.lastEffect=k)));k=k.next}m=null;for(k=b.firstCapturedUpdate;null!==k;){var C=k.expirationTime;C<e?(null===m&&(m=k,null===g&&(f=l)),h<C&&(h=C)):(l=Gg(a,b,k,l,c,d),null!==
23880
+ k.callback&&(a.effectTag|=32,k.nextEffect=null,null===b.lastCapturedEffect?b.firstCapturedEffect=b.lastCapturedEffect=k:(b.lastCapturedEffect.nextEffect=k,b.lastCapturedEffect=k)));k=k.next}null===g&&(b.lastUpdate=null);null===m?b.lastCapturedUpdate=null:a.effectTag|=32;null===g&&null===m&&(f=l);b.baseState=f;b.firstUpdate=g;b.firstCapturedUpdate=m;Jg(h);a.expirationTime=h;a.memoizedState=l}
23881
+ function Kg(a,b,c){null!==b.firstCapturedUpdate&&(null!==b.lastUpdate&&(b.lastUpdate.next=b.firstCapturedUpdate,b.lastUpdate=b.lastCapturedUpdate),b.firstCapturedUpdate=b.lastCapturedUpdate=null);Lg(b.firstEffect,c);b.firstEffect=b.lastEffect=null;Lg(b.firstCapturedEffect,c);b.firstCapturedEffect=b.lastCapturedEffect=null}function Lg(a,b){for(;null!==a;){var c=a.callback;if(null!==c){a.callback=null;var d=b;if("function"!==typeof c)throw Error(u(191,c));c.call(d)}a=a.nextEffect}}
23882
+ var Mg=Ea.ReactCurrentBatchConfig,Ng=(new aa.Component).refs;function Og(a,b,c,d){b=a.memoizedState;c=c(d,b);c=null===c||void 0===c?b:n({},b,c);a.memoizedState=c;d=a.updateQueue;null!==d&&0===a.expirationTime&&(d.baseState=c)}
23883
+ var Sg={isMounted:function(a){return(a=a._reactInternalFiber)?ec(a)===a:!1},enqueueSetState:function(a,b,c){a=a._reactInternalFiber;var d=Pg(),e=Mg.suspense;d=Qg(d,a,e);e=Bg(d,e);e.payload=b;void 0!==c&&null!==c&&(e.callback=c);Dg(a,e);Rg(a,d)},enqueueReplaceState:function(a,b,c){a=a._reactInternalFiber;var d=Pg(),e=Mg.suspense;d=Qg(d,a,e);e=Bg(d,e);e.tag=1;e.payload=b;void 0!==c&&null!==c&&(e.callback=c);Dg(a,e);Rg(a,d)},enqueueForceUpdate:function(a,b){a=a._reactInternalFiber;var c=Pg(),d=Mg.suspense;
23884
+ c=Qg(c,a,d);d=Bg(c,d);d.tag=2;void 0!==b&&null!==b&&(d.callback=b);Dg(a,d);Rg(a,c)}};function Tg(a,b,c,d,e,f,g){a=a.stateNode;return"function"===typeof a.shouldComponentUpdate?a.shouldComponentUpdate(d,f,g):b.prototype&&b.prototype.isPureReactComponent?!qf(c,d)||!qf(e,f):!0}
23885
+ function Ug(a,b,c){var d=!1,e=Cf;var f=b.contextType;"object"===typeof f&&null!==f?f=xg(f):(e=L(b)?Df:J.current,d=b.contextTypes,f=(d=null!==d&&void 0!==d)?Ef(a,e):Cf);b=new b(c,f);a.memoizedState=null!==b.state&&void 0!==b.state?b.state:null;b.updater=Sg;a.stateNode=b;b._reactInternalFiber=a;d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=e,a.__reactInternalMemoizedMaskedChildContext=f);return b}
23886
+ function Vg(a,b,c,d){a=b.state;"function"===typeof b.componentWillReceiveProps&&b.componentWillReceiveProps(c,d);"function"===typeof b.UNSAFE_componentWillReceiveProps&&b.UNSAFE_componentWillReceiveProps(c,d);b.state!==a&&Sg.enqueueReplaceState(b,b.state,null)}
23887
+ function Wg(a,b,c,d){var e=a.stateNode;e.props=c;e.state=a.memoizedState;e.refs=Ng;var f=b.contextType;"object"===typeof f&&null!==f?e.context=xg(f):(f=L(b)?Df:J.current,e.context=Ef(a,f));f=a.updateQueue;null!==f&&(Hg(a,f,c,e,d),e.state=a.memoizedState);f=b.getDerivedStateFromProps;"function"===typeof f&&(Og(a,b,f,c),e.state=a.memoizedState);"function"===typeof b.getDerivedStateFromProps||"function"===typeof e.getSnapshotBeforeUpdate||"function"!==typeof e.UNSAFE_componentWillMount&&"function"!==
23888
+ typeof e.componentWillMount||(b=e.state,"function"===typeof e.componentWillMount&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),b!==e.state&&Sg.enqueueReplaceState(e,e.state,null),f=a.updateQueue,null!==f&&(Hg(a,f,c,e,d),e.state=a.memoizedState));"function"===typeof e.componentDidMount&&(a.effectTag|=4)}var Xg=Array.isArray;
23889
+ function Yg(a,b,c){a=c.ref;if(null!==a&&"function"!==typeof a&&"object"!==typeof a){if(c._owner){c=c._owner;if(c){if(1!==c.tag)throw Error(u(309));var d=c.stateNode}if(!d)throw Error(u(147,a));var e=""+a;if(null!==b&&null!==b.ref&&"function"===typeof b.ref&&b.ref._stringRef===e)return b.ref;b=function(a){var b=d.refs;b===Ng&&(b=d.refs={});null===a?delete b[e]:b[e]=a};b._stringRef=e;return b}if("string"!==typeof a)throw Error(u(284));if(!c._owner)throw Error(u(290,a));}return a}
23890
+ function Zg(a,b){if("textarea"!==a.type)throw Error(u(31,"[object Object]"===Object.prototype.toString.call(b)?"object with keys {"+Object.keys(b).join(", ")+"}":b,""));}
23891
+ function $g(a){function b(b,c){if(a){var d=b.lastEffect;null!==d?(d.nextEffect=c,b.lastEffect=c):b.firstEffect=b.lastEffect=c;c.nextEffect=null;c.effectTag=8}}function c(c,d){if(!a)return null;for(;null!==d;)b(c,d),d=d.sibling;return null}function d(a,b){for(a=new Map;null!==b;)null!==b.key?a.set(b.key,b):a.set(b.index,b),b=b.sibling;return a}function e(a,b,c){a=ah(a,b,c);a.index=0;a.sibling=null;return a}function f(b,c,d){b.index=d;if(!a)return c;d=b.alternate;if(null!==d)return d=d.index,d<c?(b.effectTag=
23892
+ 2,c):d;b.effectTag=2;return c}function g(b){a&&null===b.alternate&&(b.effectTag=2);return b}function h(a,b,c,d){if(null===b||6!==b.tag)return b=bh(c,a.mode,d),b.return=a,b;b=e(b,c,d);b.return=a;return b}function k(a,b,c,d){if(null!==b&&b.elementType===c.type)return d=e(b,c.props,d),d.ref=Yg(a,b,c),d.return=a,d;d=ch(c.type,c.key,c.props,null,a.mode,d);d.ref=Yg(a,b,c);d.return=a;return d}function l(a,b,c,d){if(null===b||4!==b.tag||b.stateNode.containerInfo!==c.containerInfo||b.stateNode.implementation!==
23893
+ c.implementation)return b=dh(c,a.mode,d),b.return=a,b;b=e(b,c.children||[],d);b.return=a;return b}function m(a,b,c,d,f){if(null===b||7!==b.tag)return b=eh(c,a.mode,d,f),b.return=a,b;b=e(b,c,d);b.return=a;return b}function C(a,b,c){if("string"===typeof b||"number"===typeof b)return b=bh(""+b,a.mode,c),b.return=a,b;if("object"===typeof b&&null!==b){switch(b.$$typeof){case Ga:return c=ch(b.type,b.key,b.props,null,a.mode,c),c.ref=Yg(a,null,b),c.return=a,c;case Ha:return b=dh(b,a.mode,c),b.return=a,b}if(Xg(b)||
23894
+ Ua(b))return b=eh(b,a.mode,c,null),b.return=a,b;Zg(a,b)}return null}function y(a,b,c,d){var e=null!==b?b.key:null;if("string"===typeof c||"number"===typeof c)return null!==e?null:h(a,b,""+c,d);if("object"===typeof c&&null!==c){switch(c.$$typeof){case Ga:return c.key===e?c.type===Ia?m(a,b,c.props.children,d,e):k(a,b,c,d):null;case Ha:return c.key===e?l(a,b,c,d):null}if(Xg(c)||Ua(c))return null!==e?null:m(a,b,c,d,null);Zg(a,c)}return null}function H(a,b,c,d,e){if("string"===typeof d||"number"===typeof d)return a=
23895
+ a.get(c)||null,h(b,a,""+d,e);if("object"===typeof d&&null!==d){switch(d.$$typeof){case Ga:return a=a.get(null===d.key?c:d.key)||null,d.type===Ia?m(b,a,d.props.children,e,d.key):k(b,a,d,e);case Ha:return a=a.get(null===d.key?c:d.key)||null,l(b,a,d,e)}if(Xg(d)||Ua(d))return a=a.get(c)||null,m(b,a,d,e,null);Zg(b,d)}return null}function z(e,g,h,k){for(var l=null,m=null,r=g,x=g=0,A=null;null!==r&&x<h.length;x++){r.index>x?(A=r,r=null):A=r.sibling;var p=y(e,r,h[x],k);if(null===p){null===r&&(r=A);break}a&&
23896
+ r&&null===p.alternate&&b(e,r);g=f(p,g,x);null===m?l=p:m.sibling=p;m=p;r=A}if(x===h.length)return c(e,r),l;if(null===r){for(;x<h.length;x++)r=C(e,h[x],k),null!==r&&(g=f(r,g,x),null===m?l=r:m.sibling=r,m=r);return l}for(r=d(e,r);x<h.length;x++)A=H(r,e,x,h[x],k),null!==A&&(a&&null!==A.alternate&&r.delete(null===A.key?x:A.key),g=f(A,g,x),null===m?l=A:m.sibling=A,m=A);a&&r.forEach(function(a){return b(e,a)});return l}function ta(e,g,h,k){var l=Ua(h);if("function"!==typeof l)throw Error(u(150));h=l.call(h);
23897
+ if(null==h)throw Error(u(151));for(var m=l=null,r=g,x=g=0,A=null,p=h.next();null!==r&&!p.done;x++,p=h.next()){r.index>x?(A=r,r=null):A=r.sibling;var z=y(e,r,p.value,k);if(null===z){null===r&&(r=A);break}a&&r&&null===z.alternate&&b(e,r);g=f(z,g,x);null===m?l=z:m.sibling=z;m=z;r=A}if(p.done)return c(e,r),l;if(null===r){for(;!p.done;x++,p=h.next())p=C(e,p.value,k),null!==p&&(g=f(p,g,x),null===m?l=p:m.sibling=p,m=p);return l}for(r=d(e,r);!p.done;x++,p=h.next())p=H(r,e,x,p.value,k),null!==p&&(a&&null!==
23898
+ p.alternate&&r.delete(null===p.key?x:p.key),g=f(p,g,x),null===m?l=p:m.sibling=p,m=p);a&&r.forEach(function(a){return b(e,a)});return l}return function(a,d,f,h){var k="object"===typeof f&&null!==f&&f.type===Ia&&null===f.key;k&&(f=f.props.children);var l="object"===typeof f&&null!==f;if(l)switch(f.$$typeof){case Ga:a:{l=f.key;for(k=d;null!==k;){if(k.key===l)if(7===k.tag?f.type===Ia:k.elementType===f.type){c(a,k.sibling);d=e(k,f.type===Ia?f.props.children:f.props,h);d.ref=Yg(a,k,f);d.return=a;a=d;break a}else{c(a,
23899
+ k);break}else b(a,k);k=k.sibling}f.type===Ia?(d=eh(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=ch(f.type,f.key,f.props,null,a.mode,h),h.ref=Yg(a,d,f),h.return=a,a=h)}return g(a);case Ha:a:{for(k=f.key;null!==d;){if(d.key===k)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[],h);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=dh(f,a.mode,h);d.return=a;a=d}return g(a)}if("string"===
23900
+ typeof f||"number"===typeof f)return f=""+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f,h),d.return=a,a=d):(c(a,d),d=bh(f,a.mode,h),d.return=a,a=d),g(a);if(Xg(f))return z(a,d,f,h);if(Ua(f))return ta(a,d,f,h);l&&Zg(a,f);if("undefined"===typeof f&&!k)switch(a.tag){case 1:case 0:throw a=a.type,Error(u(152,a.displayName||a.name||"Component"));}return c(a,d)}}var fh=$g(!0),gh=$g(!1),hh={},ih={current:hh},jh={current:hh},kh={current:hh};function lh(a){if(a===hh)throw Error(u(174));return a}
23901
+ function mh(a,b){I(kh,b,a);I(jh,a,a);I(ih,hh,a);var c=b.nodeType;switch(c){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:Qb(null,"");break;default:c=8===c?b.parentNode:b,b=c.namespaceURI||null,c=c.tagName,b=Qb(b,c)}G(ih,a);I(ih,b,a)}function nh(a){G(ih,a);G(jh,a);G(kh,a)}function oh(a){lh(kh.current);var b=lh(ih.current);var c=Qb(b,a.type);b!==c&&(I(jh,a,a),I(ih,c,a))}function ph(a){jh.current===a&&(G(ih,a),G(jh,a))}var M={current:0};
23902
+ function qh(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||c.data===je||c.data===ke))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.effectTag&64))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}function rh(a,b){return{responder:a,props:b}}
23903
+ var sh=Ea.ReactCurrentDispatcher,N=Ea.ReactCurrentBatchConfig,th=0,uh=null,O=null,vh=null,wh=null,P=null,xh=null,yh=0,zh=null,Ah=0,Bh=!1,Ch=null,Gh=0;function Q(){throw Error(u(321));}function Hh(a,b){if(null===b)return!1;for(var c=0;c<b.length&&c<a.length;c++)if(!of(a[c],b[c]))return!1;return!0}
23904
+ function Ih(a,b,c,d,e,f){th=f;uh=b;vh=null!==a?a.memoizedState:null;sh.current=null===vh?Jh:Kh;b=c(d,e);if(Bh){do Bh=!1,Gh+=1,vh=null!==a?a.memoizedState:null,xh=wh,zh=P=O=null,sh.current=Kh,b=c(d,e);while(Bh);Ch=null;Gh=0}sh.current=Lh;a=uh;a.memoizedState=wh;a.expirationTime=yh;a.updateQueue=zh;a.effectTag|=Ah;a=null!==O&&null!==O.next;th=0;xh=P=wh=vh=O=uh=null;yh=0;zh=null;Ah=0;if(a)throw Error(u(300));return b}
23905
+ function Mh(){sh.current=Lh;th=0;xh=P=wh=vh=O=uh=null;yh=0;zh=null;Ah=0;Bh=!1;Ch=null;Gh=0}function Nh(){var a={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};null===P?wh=P=a:P=P.next=a;return P}function Oh(){if(null!==xh)P=xh,xh=P.next,O=vh,vh=null!==O?O.next:null;else{if(null===vh)throw Error(u(310));O=vh;var a={memoizedState:O.memoizedState,baseState:O.baseState,queue:O.queue,baseUpdate:O.baseUpdate,next:null};P=null===P?wh=a:P.next=a;vh=O.next}return P}
23906
+ function Ph(a,b){return"function"===typeof b?b(a):b}
23907
+ function Qh(a){var b=Oh(),c=b.queue;if(null===c)throw Error(u(311));c.lastRenderedReducer=a;if(0<Gh){var d=c.dispatch;if(null!==Ch){var e=Ch.get(c);if(void 0!==e){Ch.delete(c);var f=b.memoizedState;do f=a(f,e.action),e=e.next;while(null!==e);of(f,b.memoizedState)||(wg=!0);b.memoizedState=f;b.baseUpdate===c.last&&(b.baseState=f);c.lastRenderedState=f;return[f,d]}}return[b.memoizedState,d]}d=c.last;var g=b.baseUpdate;f=b.baseState;null!==g?(null!==d&&(d.next=null),d=g.next):d=null!==d?d.next:null;if(null!==
23908
+ d){var h=e=null,k=d,l=!1;do{var m=k.expirationTime;m<th?(l||(l=!0,h=g,e=f),m>yh&&(yh=m,Jg(yh))):(Ig(m,k.suspenseConfig),f=k.eagerReducer===a?k.eagerState:a(f,k.action));g=k;k=k.next}while(null!==k&&k!==d);l||(h=g,e=f);of(f,b.memoizedState)||(wg=!0);b.memoizedState=f;b.baseUpdate=h;b.baseState=e;c.lastRenderedState=f}return[b.memoizedState,c.dispatch]}
23909
+ function Rh(a){var b=Nh();"function"===typeof a&&(a=a());b.memoizedState=b.baseState=a;a=b.queue={last:null,dispatch:null,lastRenderedReducer:Ph,lastRenderedState:a};a=a.dispatch=Sh.bind(null,uh,a);return[b.memoizedState,a]}function Th(a){return Qh(Ph,a)}function Uh(a,b,c,d){a={tag:a,create:b,destroy:c,deps:d,next:null};null===zh?(zh={lastEffect:null},zh.lastEffect=a.next=a):(b=zh.lastEffect,null===b?zh.lastEffect=a.next=a:(c=b.next,b.next=a,a.next=c,zh.lastEffect=a));return a}
23910
+ function Vh(a,b,c,d){var e=Nh();Ah|=a;e.memoizedState=Uh(b,c,void 0,void 0===d?null:d)}function Wh(a,b,c,d){var e=Oh();d=void 0===d?null:d;var f=void 0;if(null!==O){var g=O.memoizedState;f=g.destroy;if(null!==d&&Hh(d,g.deps)){Uh(0,c,f,d);return}}Ah|=a;e.memoizedState=Uh(b,c,f,d)}function Xh(a,b){return Vh(516,192,a,b)}function Yh(a,b){return Wh(516,192,a,b)}
23911
+ function Zh(a,b){if("function"===typeof b)return a=a(),b(a),function(){b(null)};if(null!==b&&void 0!==b)return a=a(),b.current=a,function(){b.current=null}}function $h(){}function ai(a,b){Nh().memoizedState=[a,void 0===b?null:b];return a}function bi(a,b){var c=Oh();b=void 0===b?null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Hh(b,d[1]))return d[0];c.memoizedState=[a,b];return a}
23912
+ function Sh(a,b,c){if(!(25>Gh))throw Error(u(301));var d=a.alternate;if(a===uh||null!==d&&d===uh)if(Bh=!0,a={expirationTime:th,suspenseConfig:null,action:c,eagerReducer:null,eagerState:null,next:null},null===Ch&&(Ch=new Map),c=Ch.get(b),void 0===c)Ch.set(b,a);else{for(b=c;null!==b.next;)b=b.next;b.next=a}else{var e=Pg(),f=Mg.suspense;e=Qg(e,a,f);f={expirationTime:e,suspenseConfig:f,action:c,eagerReducer:null,eagerState:null,next:null};var g=b.last;if(null===g)f.next=f;else{var h=g.next;null!==h&&
23913
+ (f.next=h);g.next=f}b.last=f;if(0===a.expirationTime&&(null===d||0===d.expirationTime)&&(d=b.lastRenderedReducer,null!==d))try{var k=b.lastRenderedState,l=d(k,c);f.eagerReducer=d;f.eagerState=l;if(of(l,k))return}catch(m){}finally{}Rg(a,e)}}
23914
+ var Lh={readContext:xg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useResponder:Q,useDeferredValue:Q,useTransition:Q},Jh={readContext:xg,useCallback:ai,useContext:xg,useEffect:Xh,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return Vh(4,36,Zh.bind(null,b,a),c)},useLayoutEffect:function(a,b){return Vh(4,36,a,b)},useMemo:function(a,b){var c=Nh();b=void 0===b?null:b;a=a();c.memoizedState=
23915
+ [a,b];return a},useReducer:function(a,b,c){var d=Nh();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a=d.queue={last:null,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};a=a.dispatch=Sh.bind(null,uh,a);return[d.memoizedState,a]},useRef:function(a){var b=Nh();a={current:a};return b.memoizedState=a},useState:Rh,useDebugValue:$h,useResponder:rh,useDeferredValue:function(a,b){var c=Rh(a),d=c[0],e=c[1];Xh(function(){q.unstable_next(function(){var c=N.suspense;N.suspense=void 0===b?null:b;try{e(a)}finally{N.suspense=
23916
+ c}})},[a,b]);return d},useTransition:function(a){var b=Rh(!1),c=b[0],d=b[1];return[ai(function(b){d(!0);q.unstable_next(function(){var c=N.suspense;N.suspense=void 0===a?null:a;try{d(!1),b()}finally{N.suspense=c}})},[a,c]),c]}},Kh={readContext:xg,useCallback:bi,useContext:xg,useEffect:Yh,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return Wh(4,36,Zh.bind(null,b,a),c)},useLayoutEffect:function(a,b){return Wh(4,36,a,b)},useMemo:function(a,b){var c=Oh();b=void 0===b?
23917
+ null:b;var d=c.memoizedState;if(null!==d&&null!==b&&Hh(b,d[1]))return d[0];a=a();c.memoizedState=[a,b];return a},useReducer:Qh,useRef:function(){return Oh().memoizedState},useState:Th,useDebugValue:$h,useResponder:rh,useDeferredValue:function(a,b){var c=Th(a),d=c[0],e=c[1];Yh(function(){q.unstable_next(function(){var c=N.suspense;N.suspense=void 0===b?null:b;try{e(a)}finally{N.suspense=c}})},[a,b]);return d},useTransition:function(a){var b=Th(!1),c=b[0],d=b[1];return[bi(function(b){d(!0);q.unstable_next(function(){var c=
23918
+ N.suspense;N.suspense=void 0===a?null:a;try{d(!1),b()}finally{N.suspense=c}})},[a,c]),c]}},ci=null,di=null,ei=!1;function fi(a,b){var c=gi(5,null,null,0);c.elementType="DELETED";c.type="DELETED";c.stateNode=b;c.return=a;c.effectTag=8;null!==a.lastEffect?(a.lastEffect.nextEffect=c,a.lastEffect=c):a.firstEffect=a.lastEffect=c}
23919
+ function hi(a,b){switch(a.tag){case 5:var c=a.type;b=1!==b.nodeType||c.toLowerCase()!==b.nodeName.toLowerCase()?null:b;return null!==b?(a.stateNode=b,!0):!1;case 6:return b=""===a.pendingProps||3!==b.nodeType?null:b,null!==b?(a.stateNode=b,!0):!1;case 13:return!1;default:return!1}}
23920
+ function ii(a){if(ei){var b=di;if(b){var c=b;if(!hi(a,b)){b=re(c.nextSibling);if(!b||!hi(a,b)){a.effectTag=a.effectTag&-1025|2;ei=!1;ci=a;return}fi(ci,c)}ci=a;di=re(b.firstChild)}else a.effectTag=a.effectTag&-1025|2,ei=!1,ci=a}}function ji(a){for(a=a.return;null!==a&&5!==a.tag&&3!==a.tag&&13!==a.tag;)a=a.return;ci=a}
23921
+ function ki(a){if(a!==ci)return!1;if(!ei)return ji(a),ei=!0,!1;var b=a.type;if(5!==a.tag||"head"!==b&&"body"!==b&&!oe(b,a.memoizedProps))for(b=di;b;)fi(a,b),b=re(b.nextSibling);ji(a);if(13===a.tag){a=a.memoizedState;a=null!==a?a.dehydrated:null;if(!a)throw Error(u(317));a:{a=a.nextSibling;for(b=0;a;){if(8===a.nodeType){var c=a.data;if(c===ie){if(0===b){di=re(a.nextSibling);break a}b--}else c!==he&&c!==ke&&c!==je||b++}a=a.nextSibling}di=null}}else di=ci?re(a.stateNode.nextSibling):null;return!0}
23922
+ function li(){di=ci=null;ei=!1}var mi=Ea.ReactCurrentOwner,wg=!1;function R(a,b,c,d){b.child=null===a?gh(b,null,c,d):fh(b,a.child,c,d)}function ni(a,b,c,d,e){c=c.render;var f=b.ref;vg(b,e);d=Ih(a,b,c,d,f,e);if(null!==a&&!wg)return b.updateQueue=a.updateQueue,b.effectTag&=-517,a.expirationTime<=e&&(a.expirationTime=0),oi(a,b,e);b.effectTag|=1;R(a,b,d,e);return b.child}
23923
+ function pi(a,b,c,d,e,f){if(null===a){var g=c.type;if("function"===typeof g&&!qi(g)&&void 0===g.defaultProps&&null===c.compare&&void 0===c.defaultProps)return b.tag=15,b.type=g,ri(a,b,g,d,e,f);a=ch(c.type,null,d,null,b.mode,f);a.ref=b.ref;a.return=b;return b.child=a}g=a.child;if(e<f&&(e=g.memoizedProps,c=c.compare,c=null!==c?c:qf,c(e,d)&&a.ref===b.ref))return oi(a,b,f);b.effectTag|=1;a=ah(g,d,f);a.ref=b.ref;a.return=b;return b.child=a}
23924
+ function ri(a,b,c,d,e,f){return null!==a&&qf(a.memoizedProps,d)&&a.ref===b.ref&&(wg=!1,e<f)?oi(a,b,f):si(a,b,c,d,f)}function ti(a,b){var c=b.ref;if(null===a&&null!==c||null!==a&&a.ref!==c)b.effectTag|=128}function si(a,b,c,d,e){var f=L(c)?Df:J.current;f=Ef(b,f);vg(b,e);c=Ih(a,b,c,d,f,e);if(null!==a&&!wg)return b.updateQueue=a.updateQueue,b.effectTag&=-517,a.expirationTime<=e&&(a.expirationTime=0),oi(a,b,e);b.effectTag|=1;R(a,b,c,e);return b.child}
23925
+ function ui(a,b,c,d,e){if(L(c)){var f=!0;Jf(b)}else f=!1;vg(b,e);if(null===b.stateNode)null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2),Ug(b,c,d,e),Wg(b,c,d,e),d=!0;else if(null===a){var g=b.stateNode,h=b.memoizedProps;g.props=h;var k=g.context,l=c.contextType;"object"===typeof l&&null!==l?l=xg(l):(l=L(c)?Df:J.current,l=Ef(b,l));var m=c.getDerivedStateFromProps,C="function"===typeof m||"function"===typeof g.getSnapshotBeforeUpdate;C||"function"!==typeof g.UNSAFE_componentWillReceiveProps&&
23926
+ "function"!==typeof g.componentWillReceiveProps||(h!==d||k!==l)&&Vg(b,g,d,l);yg=!1;var y=b.memoizedState;k=g.state=y;var H=b.updateQueue;null!==H&&(Hg(b,H,d,g,e),k=b.memoizedState);h!==d||y!==k||K.current||yg?("function"===typeof m&&(Og(b,c,m,d),k=b.memoizedState),(h=yg||Tg(b,c,h,d,y,k,l))?(C||"function"!==typeof g.UNSAFE_componentWillMount&&"function"!==typeof g.componentWillMount||("function"===typeof g.componentWillMount&&g.componentWillMount(),"function"===typeof g.UNSAFE_componentWillMount&&
23927
+ g.UNSAFE_componentWillMount()),"function"===typeof g.componentDidMount&&(b.effectTag|=4)):("function"===typeof g.componentDidMount&&(b.effectTag|=4),b.memoizedProps=d,b.memoizedState=k),g.props=d,g.state=k,g.context=l,d=h):("function"===typeof g.componentDidMount&&(b.effectTag|=4),d=!1)}else g=b.stateNode,h=b.memoizedProps,g.props=b.type===b.elementType?h:mg(b.type,h),k=g.context,l=c.contextType,"object"===typeof l&&null!==l?l=xg(l):(l=L(c)?Df:J.current,l=Ef(b,l)),m=c.getDerivedStateFromProps,(C=
23928
+ "function"===typeof m||"function"===typeof g.getSnapshotBeforeUpdate)||"function"!==typeof g.UNSAFE_componentWillReceiveProps&&"function"!==typeof g.componentWillReceiveProps||(h!==d||k!==l)&&Vg(b,g,d,l),yg=!1,k=b.memoizedState,y=g.state=k,H=b.updateQueue,null!==H&&(Hg(b,H,d,g,e),y=b.memoizedState),h!==d||k!==y||K.current||yg?("function"===typeof m&&(Og(b,c,m,d),y=b.memoizedState),(m=yg||Tg(b,c,h,d,k,y,l))?(C||"function"!==typeof g.UNSAFE_componentWillUpdate&&"function"!==typeof g.componentWillUpdate||
23929
+ ("function"===typeof g.componentWillUpdate&&g.componentWillUpdate(d,y,l),"function"===typeof g.UNSAFE_componentWillUpdate&&g.UNSAFE_componentWillUpdate(d,y,l)),"function"===typeof g.componentDidUpdate&&(b.effectTag|=4),"function"===typeof g.getSnapshotBeforeUpdate&&(b.effectTag|=256)):("function"!==typeof g.componentDidUpdate||h===a.memoizedProps&&k===a.memoizedState||(b.effectTag|=4),"function"!==typeof g.getSnapshotBeforeUpdate||h===a.memoizedProps&&k===a.memoizedState||(b.effectTag|=256),b.memoizedProps=
23930
+ d,b.memoizedState=y),g.props=d,g.state=y,g.context=l,d=m):("function"!==typeof g.componentDidUpdate||h===a.memoizedProps&&k===a.memoizedState||(b.effectTag|=4),"function"!==typeof g.getSnapshotBeforeUpdate||h===a.memoizedProps&&k===a.memoizedState||(b.effectTag|=256),d=!1);return vi(a,b,c,d,f,e)}
23931
+ function vi(a,b,c,d,e,f){ti(a,b);var g=0!==(b.effectTag&64);if(!d&&!g)return e&&Kf(b,c,!1),oi(a,b,f);d=b.stateNode;mi.current=b;var h=g&&"function"!==typeof c.getDerivedStateFromError?null:d.render();b.effectTag|=1;null!==a&&g?(b.child=fh(b,a.child,null,f),b.child=fh(b,null,h,f)):R(a,b,h,f);b.memoizedState=d.state;e&&Kf(b,c,!0);return b.child}function wi(a){var b=a.stateNode;b.pendingContext?Hf(a,b.pendingContext,b.pendingContext!==b.context):b.context&&Hf(a,b.context,!1);mh(a,b.containerInfo)}
23932
+ var xi={dehydrated:null,retryTime:0};
23933
+ function yi(a,b,c){var d=b.mode,e=b.pendingProps,f=M.current,g=!1,h;(h=0!==(b.effectTag&64))||(h=0!==(f&2)&&(null===a||null!==a.memoizedState));h?(g=!0,b.effectTag&=-65):null!==a&&null===a.memoizedState||void 0===e.fallback||!0===e.unstable_avoidThisFallback||(f|=1);I(M,f&1,b);if(null===a){void 0!==e.fallback&&ii(b);if(g){g=e.fallback;e=eh(null,d,0,null);e.return=b;if(0===(b.mode&2))for(a=null!==b.memoizedState?b.child.child:b.child,e.child=a;null!==a;)a.return=e,a=a.sibling;c=eh(g,d,c,null);c.return=
23934
+ b;e.sibling=c;b.memoizedState=xi;b.child=e;return c}d=e.children;b.memoizedState=null;return b.child=gh(b,null,d,c)}if(null!==a.memoizedState){a=a.child;d=a.sibling;if(g){e=e.fallback;c=ah(a,a.pendingProps,0);c.return=b;if(0===(b.mode&2)&&(g=null!==b.memoizedState?b.child.child:b.child,g!==a.child))for(c.child=g;null!==g;)g.return=c,g=g.sibling;d=ah(d,e,d.expirationTime);d.return=b;c.sibling=d;c.childExpirationTime=0;b.memoizedState=xi;b.child=c;return d}c=fh(b,a.child,e.children,c);b.memoizedState=
23935
+ null;return b.child=c}a=a.child;if(g){g=e.fallback;e=eh(null,d,0,null);e.return=b;e.child=a;null!==a&&(a.return=e);if(0===(b.mode&2))for(a=null!==b.memoizedState?b.child.child:b.child,e.child=a;null!==a;)a.return=e,a=a.sibling;c=eh(g,d,c,null);c.return=b;e.sibling=c;c.effectTag|=2;e.childExpirationTime=0;b.memoizedState=xi;b.child=e;return c}b.memoizedState=null;return b.child=fh(b,a,e.children,c)}
23936
+ function zi(a,b){a.expirationTime<b&&(a.expirationTime=b);var c=a.alternate;null!==c&&c.expirationTime<b&&(c.expirationTime=b);ug(a.return,b)}function Ai(a,b,c,d,e,f){var g=a.memoizedState;null===g?a.memoizedState={isBackwards:b,rendering:null,last:d,tail:c,tailExpiration:0,tailMode:e,lastEffect:f}:(g.isBackwards=b,g.rendering=null,g.last=d,g.tail=c,g.tailExpiration=0,g.tailMode=e,g.lastEffect=f)}
23937
+ function Bi(a,b,c){var d=b.pendingProps,e=d.revealOrder,f=d.tail;R(a,b,d.children,c);d=M.current;if(0!==(d&2))d=d&1|2,b.effectTag|=64;else{if(null!==a&&0!==(a.effectTag&64))a:for(a=b.child;null!==a;){if(13===a.tag)null!==a.memoizedState&&zi(a,c);else if(19===a.tag)zi(a,c);else if(null!==a.child){a.child.return=a;a=a.child;continue}if(a===b)break a;for(;null===a.sibling;){if(null===a.return||a.return===b)break a;a=a.return}a.sibling.return=a.return;a=a.sibling}d&=1}I(M,d,b);if(0===(b.mode&2))b.memoizedState=
23938
+ null;else switch(e){case "forwards":c=b.child;for(e=null;null!==c;)a=c.alternate,null!==a&&null===qh(a)&&(e=c),c=c.sibling;c=e;null===c?(e=b.child,b.child=null):(e=c.sibling,c.sibling=null);Ai(b,!1,e,c,f,b.lastEffect);break;case "backwards":c=null;e=b.child;for(b.child=null;null!==e;){a=e.alternate;if(null!==a&&null===qh(a)){b.child=e;break}a=e.sibling;e.sibling=c;c=e;e=a}Ai(b,!0,c,null,f,b.lastEffect);break;case "together":Ai(b,!1,null,null,void 0,b.lastEffect);break;default:b.memoizedState=null}return b.child}
23939
+ function oi(a,b,c){null!==a&&(b.dependencies=a.dependencies);var d=b.expirationTime;0!==d&&Jg(d);if(b.childExpirationTime<c)return null;if(null!==a&&b.child!==a.child)throw Error(u(153));if(null!==b.child){a=b.child;c=ah(a,a.pendingProps,a.expirationTime);b.child=c;for(c.return=b;null!==a.sibling;)a=a.sibling,c=c.sibling=ah(a,a.pendingProps,a.expirationTime),c.return=b;c.sibling=null}return b.child}function Ci(a){a.effectTag|=4}var Hi,Ii,Ji,Ki;
23940
+ Hi=function(a,b){for(var c=b.child;null!==c;){if(5===c.tag||6===c.tag)a.appendChild(c.stateNode);else if(4!==c.tag&&null!==c.child){c.child.return=c;c=c.child;continue}if(c===b)break;for(;null===c.sibling;){if(null===c.return||c.return===b)return;c=c.return}c.sibling.return=c.return;c=c.sibling}};Ii=function(){};
23941
+ Ji=function(a,b,c,d,e){var f=a.memoizedProps;if(f!==d){var g=b.stateNode;lh(ih.current);a=null;switch(c){case "input":f=Ab(g,f);d=Ab(g,d);a=[];break;case "option":f=Ib(g,f);d=Ib(g,d);a=[];break;case "select":f=n({},f,{value:void 0});d=n({},d,{value:void 0});a=[];break;case "textarea":f=Kb(g,f);d=Kb(g,d);a=[];break;default:"function"!==typeof f.onClick&&"function"===typeof d.onClick&&(g.onclick=ae)}Yd(c,d);var h,k;c=null;for(h in f)if(!d.hasOwnProperty(h)&&f.hasOwnProperty(h)&&null!=f[h])if("style"===
23942
+ h)for(k in g=f[h],g)g.hasOwnProperty(k)&&(c||(c={}),c[k]="");else"dangerouslySetInnerHTML"!==h&&"children"!==h&&"suppressContentEditableWarning"!==h&&"suppressHydrationWarning"!==h&&"autoFocus"!==h&&(ia.hasOwnProperty(h)?a||(a=[]):(a=a||[]).push(h,null));for(h in d){var l=d[h];g=null!=f?f[h]:void 0;if(d.hasOwnProperty(h)&&l!==g&&(null!=l||null!=g))if("style"===h)if(g){for(k in g)!g.hasOwnProperty(k)||l&&l.hasOwnProperty(k)||(c||(c={}),c[k]="");for(k in l)l.hasOwnProperty(k)&&g[k]!==l[k]&&(c||(c={}),
23943
+ c[k]=l[k])}else c||(a||(a=[]),a.push(h,c)),c=l;else"dangerouslySetInnerHTML"===h?(l=l?l.__html:void 0,g=g?g.__html:void 0,null!=l&&g!==l&&(a=a||[]).push(h,""+l)):"children"===h?g===l||"string"!==typeof l&&"number"!==typeof l||(a=a||[]).push(h,""+l):"suppressContentEditableWarning"!==h&&"suppressHydrationWarning"!==h&&(ia.hasOwnProperty(h)?(null!=l&&$d(e,h),a||g===l||(a=[])):(a=a||[]).push(h,l))}c&&(a=a||[]).push("style",c);e=a;(b.updateQueue=e)&&Ci(b)}};Ki=function(a,b,c,d){c!==d&&Ci(b)};
23944
+ function Li(a,b){switch(a.tailMode){case "hidden":b=a.tail;for(var c=null;null!==b;)null!==b.alternate&&(c=b),b=b.sibling;null===c?a.tail=null:c.sibling=null;break;case "collapsed":c=a.tail;for(var d=null;null!==c;)null!==c.alternate&&(d=c),c=c.sibling;null===d?b||null===a.tail?a.tail=null:a.tail.sibling=null:d.sibling=null}}
23945
+ function Mi(a){switch(a.tag){case 1:L(a.type)&&Ff(a);var b=a.effectTag;return b&4096?(a.effectTag=b&-4097|64,a):null;case 3:nh(a);Gf(a);b=a.effectTag;if(0!==(b&64))throw Error(u(285));a.effectTag=b&-4097|64;return a;case 5:return ph(a),null;case 13:return G(M,a),b=a.effectTag,b&4096?(a.effectTag=b&-4097|64,a):null;case 19:return G(M,a),null;case 4:return nh(a),null;case 10:return tg(a),null;default:return null}}function Ni(a,b){return{value:a,source:b,stack:Xa(b)}}
23946
+ var Oi="function"===typeof WeakSet?WeakSet:Set;function Pi(a,b){var c=b.source,d=b.stack;null===d&&null!==c&&(d=Xa(c));null!==c&&Wa(c.type);b=b.value;null!==a&&1===a.tag&&Wa(a.type);try{console.error(b)}catch(e){setTimeout(function(){throw e;})}}function Qi(a,b){try{b.props=a.memoizedProps,b.state=a.memoizedState,b.componentWillUnmount()}catch(c){Ri(a,c)}}function Si(a){var b=a.ref;if(null!==b)if("function"===typeof b)try{b(null)}catch(c){Ri(a,c)}else b.current=null}
23947
+ function Ti(a,b){switch(b.tag){case 0:case 11:case 15:Ui(2,0,b);break;case 1:if(b.effectTag&256&&null!==a){var c=a.memoizedProps,d=a.memoizedState;a=b.stateNode;b=a.getSnapshotBeforeUpdate(b.elementType===b.type?c:mg(b.type,c),d);a.__reactInternalSnapshotBeforeUpdate=b}break;case 3:case 5:case 6:case 4:case 17:break;default:throw Error(u(163));}}
23948
+ function Ui(a,b,c){c=c.updateQueue;c=null!==c?c.lastEffect:null;if(null!==c){var d=c=c.next;do{if(0!==(d.tag&a)){var e=d.destroy;d.destroy=void 0;void 0!==e&&e()}0!==(d.tag&b)&&(e=d.create,d.destroy=e());d=d.next}while(d!==c)}}
23949
+ function Vi(a,b,c){"function"===typeof Wi&&Wi(b);switch(b.tag){case 0:case 11:case 14:case 15:a=b.updateQueue;if(null!==a&&(a=a.lastEffect,null!==a)){var d=a.next;fg(97<c?97:c,function(){var a=d;do{var c=a.destroy;if(void 0!==c){var g=b;try{c()}catch(h){Ri(g,h)}}a=a.next}while(a!==d)})}break;case 1:Si(b);c=b.stateNode;"function"===typeof c.componentWillUnmount&&Qi(b,c);break;case 5:Si(b);break;case 4:Xi(a,b,c)}}
23950
+ function Yi(a){var b=a.alternate;a.return=null;a.child=null;a.memoizedState=null;a.updateQueue=null;a.dependencies=null;a.alternate=null;a.firstEffect=null;a.lastEffect=null;a.pendingProps=null;a.memoizedProps=null;null!==b&&Yi(b)}function Zi(a){return 5===a.tag||3===a.tag||4===a.tag}
23951
+ function $i(a){a:{for(var b=a.return;null!==b;){if(Zi(b)){var c=b;break a}b=b.return}throw Error(u(160));}b=c.stateNode;switch(c.tag){case 5:var d=!1;break;case 3:b=b.containerInfo;d=!0;break;case 4:b=b.containerInfo;d=!0;break;default:throw Error(u(161));}c.effectTag&16&&(Tb(b,""),c.effectTag&=-17);a:b:for(c=a;;){for(;null===c.sibling;){if(null===c.return||Zi(c.return)){c=null;break a}c=c.return}c.sibling.return=c.return;for(c=c.sibling;5!==c.tag&&6!==c.tag&&18!==c.tag;){if(c.effectTag&2)continue b;
23952
+ if(null===c.child||4===c.tag)continue b;else c.child.return=c,c=c.child}if(!(c.effectTag&2)){c=c.stateNode;break a}}for(var e=a;;){var f=5===e.tag||6===e.tag;if(f){var g=f?e.stateNode:e.stateNode.instance;if(c)if(d){f=b;var h=g;g=c;8===f.nodeType?f.parentNode.insertBefore(h,g):f.insertBefore(h,g)}else b.insertBefore(g,c);else d?(h=b,8===h.nodeType?(f=h.parentNode,f.insertBefore(g,h)):(f=h,f.appendChild(g)),h=h._reactRootContainer,null!==h&&void 0!==h||null!==f.onclick||(f.onclick=ae)):b.appendChild(g)}else if(4!==
23953
+ e.tag&&null!==e.child){e.child.return=e;e=e.child;continue}if(e===a)break;for(;null===e.sibling;){if(null===e.return||e.return===a)return;e=e.return}e.sibling.return=e.return;e=e.sibling}}
23954
+ function Xi(a,b,c){for(var d=b,e=!1,f,g;;){if(!e){e=d.return;a:for(;;){if(null===e)throw Error(u(160));f=e.stateNode;switch(e.tag){case 5:g=!1;break a;case 3:f=f.containerInfo;g=!0;break a;case 4:f=f.containerInfo;g=!0;break a}e=e.return}e=!0}if(5===d.tag||6===d.tag){a:for(var h=a,k=d,l=c,m=k;;)if(Vi(h,m,l),null!==m.child&&4!==m.tag)m.child.return=m,m=m.child;else{if(m===k)break;for(;null===m.sibling;){if(null===m.return||m.return===k)break a;m=m.return}m.sibling.return=m.return;m=m.sibling}g?(h=
23955
+ f,k=d.stateNode,8===h.nodeType?h.parentNode.removeChild(k):h.removeChild(k)):f.removeChild(d.stateNode)}else if(4===d.tag){if(null!==d.child){f=d.stateNode.containerInfo;g=!0;d.child.return=d;d=d.child;continue}}else if(Vi(a,d,c),null!==d.child){d.child.return=d;d=d.child;continue}if(d===b)break;for(;null===d.sibling;){if(null===d.return||d.return===b)return;d=d.return;4===d.tag&&(e=!1)}d.sibling.return=d.return;d=d.sibling}}
23956
+ function aj(a,b){switch(b.tag){case 0:case 11:case 14:case 15:Ui(4,8,b);break;case 1:break;case 5:var c=b.stateNode;if(null!=c){var d=b.memoizedProps,e=null!==a?a.memoizedProps:d;a=b.type;var f=b.updateQueue;b.updateQueue=null;if(null!==f){c[ve]=d;"input"===a&&"radio"===d.type&&null!=d.name&&Cb(c,d);Zd(a,e);b=Zd(a,d);for(e=0;e<f.length;e+=2){var g=f[e],h=f[e+1];"style"===g?Wd(c,h):"dangerouslySetInnerHTML"===g?Sb(c,h):"children"===g?Tb(c,h):vb(c,g,h,b)}switch(a){case "input":Eb(c,d);break;case "textarea":Mb(c,
23957
+ d);break;case "select":b=c._wrapperState.wasMultiple,c._wrapperState.wasMultiple=!!d.multiple,a=d.value,null!=a?Jb(c,!!d.multiple,a,!1):b!==!!d.multiple&&(null!=d.defaultValue?Jb(c,!!d.multiple,d.defaultValue,!0):Jb(c,!!d.multiple,d.multiple?[]:"",!1))}}}break;case 6:if(null===b.stateNode)throw Error(u(162));b.stateNode.nodeValue=b.memoizedProps;break;case 3:b=b.stateNode;b.hydrate&&(b.hydrate=!1,Lc(b.containerInfo));break;case 12:break;case 13:c=b;null===b.memoizedState?d=!1:(d=!0,c=b.child,bj=cg());
23958
+ if(null!==c)a:for(a=c;;){if(5===a.tag)f=a.stateNode,d?(f=f.style,"function"===typeof f.setProperty?f.setProperty("display","none","important"):f.display="none"):(f=a.stateNode,e=a.memoizedProps.style,e=void 0!==e&&null!==e&&e.hasOwnProperty("display")?e.display:null,f.style.display=Vd("display",e));else if(6===a.tag)a.stateNode.nodeValue=d?"":a.memoizedProps;else if(13===a.tag&&null!==a.memoizedState&&null===a.memoizedState.dehydrated){f=a.child.sibling;f.return=a;a=f;continue}else if(null!==a.child){a.child.return=
23959
+ a;a=a.child;continue}if(a===c)break a;for(;null===a.sibling;){if(null===a.return||a.return===c)break a;a=a.return}a.sibling.return=a.return;a=a.sibling}cj(b);break;case 19:cj(b);break;case 17:break;case 20:break;case 21:break;default:throw Error(u(163));}}function cj(a){var b=a.updateQueue;if(null!==b){a.updateQueue=null;var c=a.stateNode;null===c&&(c=a.stateNode=new Oi);b.forEach(function(b){var d=dj.bind(null,a,b);c.has(b)||(c.add(b),b.then(d,d))})}}var ej="function"===typeof WeakMap?WeakMap:Map;
23960
+ function fj(a,b,c){c=Bg(c,null);c.tag=3;c.payload={element:null};var d=b.value;c.callback=function(){gj||(gj=!0,hj=d);Pi(a,b)};return c}
23961
+ function ij(a,b,c){c=Bg(c,null);c.tag=3;var d=a.type.getDerivedStateFromError;if("function"===typeof d){var e=b.value;c.payload=function(){Pi(a,b);return d(e)}}var f=a.stateNode;null!==f&&"function"===typeof f.componentDidCatch&&(c.callback=function(){"function"!==typeof d&&(null===jj?jj=new Set([this]):jj.add(this),Pi(a,b));var c=b.stack;this.componentDidCatch(b.value,{componentStack:null!==c?c:""})});return c}
23962
+ var kj=Math.ceil,lj=Ea.ReactCurrentDispatcher,mj=Ea.ReactCurrentOwner,S=0,nj=8,oj=16,pj=32,qj=0,rj=1,sj=2,tj=3,uj=4,vj=5,T=S,U=null,V=null,W=0,X=qj,wj=null,xj=1073741823,yj=1073741823,zj=null,Aj=0,Bj=!1,bj=0,Cj=500,Y=null,gj=!1,hj=null,jj=null,Dj=!1,Ej=null,Fj=90,Gj=null,Hj=0,Ij=null,Jj=0;function Pg(){return(T&(oj|pj))!==S?1073741821-(cg()/10|0):0!==Jj?Jj:Jj=1073741821-(cg()/10|0)}
23963
+ function Qg(a,b,c){b=b.mode;if(0===(b&2))return 1073741823;var d=dg();if(0===(b&4))return 99===d?1073741823:1073741822;if((T&oj)!==S)return W;if(null!==c)a=lg(a,c.timeoutMs|0||5E3,250);else switch(d){case 99:a=1073741823;break;case 98:a=lg(a,150,100);break;case 97:case 96:a=lg(a,5E3,250);break;case 95:a=2;break;default:throw Error(u(326));}null!==U&&a===W&&--a;return a}
23964
+ function Rg(a,b){if(50<Hj)throw Hj=0,Ij=null,Error(u(185));a=Kj(a,b);if(null!==a){var c=dg();1073741823===b?(T&nj)!==S&&(T&(oj|pj))===S?Lj(a):(Z(a),T===S&&jg()):Z(a);(T&4)===S||98!==c&&99!==c||(null===Gj?Gj=new Map([[a,b]]):(c=Gj.get(a),(void 0===c||c>b)&&Gj.set(a,b)))}}
23965
+ function Kj(a,b){a.expirationTime<b&&(a.expirationTime=b);var c=a.alternate;null!==c&&c.expirationTime<b&&(c.expirationTime=b);var d=a.return,e=null;if(null===d&&3===a.tag)e=a.stateNode;else for(;null!==d;){c=d.alternate;d.childExpirationTime<b&&(d.childExpirationTime=b);null!==c&&c.childExpirationTime<b&&(c.childExpirationTime=b);if(null===d.return&&3===d.tag){e=d.stateNode;break}d=d.return}null!==e&&(U===e&&(Jg(b),X===uj&&Mj(e,W)),Nj(e,b));return e}
23966
+ function Oj(a){var b=a.lastExpiredTime;if(0!==b)return b;b=a.firstPendingTime;if(!Pj(a,b))return b;b=a.lastPingedTime;a=a.nextKnownPendingLevel;return b>a?b:a}
23967
+ function Z(a){if(0!==a.lastExpiredTime)a.callbackExpirationTime=1073741823,a.callbackPriority=99,a.callbackNode=hg(Lj.bind(null,a));else{var b=Oj(a),c=a.callbackNode;if(0===b)null!==c&&(a.callbackNode=null,a.callbackExpirationTime=0,a.callbackPriority=90);else{var d=Pg();1073741823===b?d=99:1===b||2===b?d=95:(d=10*(1073741821-b)-10*(1073741821-d),d=0>=d?99:250>=d?98:5250>=d?97:95);if(null!==c){var e=a.callbackPriority;if(a.callbackExpirationTime===b&&e>=d)return;c!==Xf&&Nf(c)}a.callbackExpirationTime=
23968
+ b;a.callbackPriority=d;b=1073741823===b?hg(Lj.bind(null,a)):gg(d,Qj.bind(null,a),{timeout:10*(1073741821-b)-cg()});a.callbackNode=b}}}
23969
+ function Qj(a,b){Jj=0;if(b)return b=Pg(),Rj(a,b),Z(a),null;var c=Oj(a);if(0!==c){b=a.callbackNode;if((T&(oj|pj))!==S)throw Error(u(327));Sj();a===U&&c===W||Tj(a,c);if(null!==V){var d=T;T|=oj;var e=Uj(a);do try{Vj();break}catch(h){Wj(a,h)}while(1);rg();T=d;lj.current=e;if(X===rj)throw b=wj,Tj(a,c),Mj(a,c),Z(a),b;if(null===V)switch(e=a.finishedWork=a.current.alternate,a.finishedExpirationTime=c,d=X,U=null,d){case qj:case rj:throw Error(u(345));case sj:Rj(a,2<c?2:c);break;case tj:Mj(a,c);d=a.lastSuspendedTime;
23970
+ c===d&&(a.nextKnownPendingLevel=Xj(e));if(1073741823===xj&&(e=bj+Cj-cg(),10<e)){if(Bj){var f=a.lastPingedTime;if(0===f||f>=c){a.lastPingedTime=c;Tj(a,c);break}}f=Oj(a);if(0!==f&&f!==c)break;if(0!==d&&d!==c){a.lastPingedTime=d;break}a.timeoutHandle=pe(Yj.bind(null,a),e);break}Yj(a);break;case uj:Mj(a,c);d=a.lastSuspendedTime;c===d&&(a.nextKnownPendingLevel=Xj(e));if(Bj&&(e=a.lastPingedTime,0===e||e>=c)){a.lastPingedTime=c;Tj(a,c);break}e=Oj(a);if(0!==e&&e!==c)break;if(0!==d&&d!==c){a.lastPingedTime=
23971
+ d;break}1073741823!==yj?d=10*(1073741821-yj)-cg():1073741823===xj?d=0:(d=10*(1073741821-xj)-5E3,e=cg(),c=10*(1073741821-c)-e,d=e-d,0>d&&(d=0),d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*kj(d/1960))-d,c<d&&(d=c));if(10<d){a.timeoutHandle=pe(Yj.bind(null,a),d);break}Yj(a);break;case vj:if(1073741823!==xj&&null!==zj){f=xj;var g=zj;d=g.busyMinDurationMs|0;0>=d?d=0:(e=g.busyDelayMs|0,f=cg()-(10*(1073741821-f)-(g.timeoutMs|0||5E3)),d=f<=e?0:e+d-f);if(10<d){Mj(a,c);a.timeoutHandle=
23972
+ pe(Yj.bind(null,a),d);break}}Yj(a);break;default:throw Error(u(329));}Z(a);if(a.callbackNode===b)return Qj.bind(null,a)}}return null}
23973
+ function Lj(a){var b=a.lastExpiredTime;b=0!==b?b:1073741823;if(a.finishedExpirationTime===b)Yj(a);else{if((T&(oj|pj))!==S)throw Error(u(327));Sj();a===U&&b===W||Tj(a,b);if(null!==V){var c=T;T|=oj;var d=Uj(a);do try{Zj();break}catch(e){Wj(a,e)}while(1);rg();T=c;lj.current=d;if(X===rj)throw c=wj,Tj(a,b),Mj(a,b),Z(a),c;if(null!==V)throw Error(u(261));a.finishedWork=a.current.alternate;a.finishedExpirationTime=b;U=null;Yj(a);Z(a)}}return null}
23974
+ function ak(){if(null!==Gj){var a=Gj;Gj=null;a.forEach(function(a,c){Rj(c,a);Z(c)});jg()}}function bk(a,b){var c=T;T|=1;try{return a(b)}finally{T=c,T===S&&jg()}}function ck(a,b){var c=T;T&=-2;T|=nj;try{return a(b)}finally{T=c,T===S&&jg()}}
23975
+ function Tj(a,b){a.finishedWork=null;a.finishedExpirationTime=0;var c=a.timeoutHandle;-1!==c&&(a.timeoutHandle=-1,qe(c));if(null!==V)for(c=V.return;null!==c;){var d=c;switch(d.tag){case 1:var e=d.type.childContextTypes;null!==e&&void 0!==e&&Ff(d);break;case 3:nh(d);Gf(d);break;case 5:ph(d);break;case 4:nh(d);break;case 13:G(M,d);break;case 19:G(M,d);break;case 10:tg(d)}c=c.return}U=a;V=ah(a.current,null,b);W=b;X=qj;wj=null;yj=xj=1073741823;zj=null;Aj=0;Bj=!1}
23976
+ function Wj(a,b){do{try{rg();Mh();if(null===V||null===V.return)return X=rj,wj=b,null;a:{var c=a,d=V.return,e=V,f=b;b=W;e.effectTag|=2048;e.firstEffect=e.lastEffect=null;if(null!==f&&"object"===typeof f&&"function"===typeof f.then){var g=f,h=0!==(M.current&1),k=d;do{var l;if(l=13===k.tag){var m=k.memoizedState;if(null!==m)l=null!==m.dehydrated?!0:!1;else{var C=k.memoizedProps;l=void 0===C.fallback?!1:!0!==C.unstable_avoidThisFallback?!0:h?!1:!0}}if(l){var y=k.updateQueue;if(null===y){var H=new Set;
23977
+ H.add(g);k.updateQueue=H}else y.add(g);if(0===(k.mode&2)){k.effectTag|=64;e.effectTag&=-2981;if(1===e.tag)if(null===e.alternate)e.tag=17;else{var z=Bg(1073741823,null);z.tag=2;Dg(e,z)}e.expirationTime=1073741823;break a}f=void 0;e=b;var ta=c.pingCache;null===ta?(ta=c.pingCache=new ej,f=new Set,ta.set(g,f)):(f=ta.get(g),void 0===f&&(f=new Set,ta.set(g,f)));if(!f.has(e)){f.add(e);var r=dk.bind(null,c,g,e);g.then(r,r)}k.effectTag|=4096;k.expirationTime=b;break a}k=k.return}while(null!==k);f=Error((Wa(e.type)||
23978
+ "A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+Xa(e))}X!==vj&&(X=sj);f=Ni(f,e);k=d;do{switch(k.tag){case 3:g=f;k.effectTag|=4096;k.expirationTime=b;var x=fj(k,g,b);Eg(k,x);break a;case 1:g=f;var A=k.type,p=k.stateNode;if(0===(k.effectTag&64)&&("function"===typeof A.getDerivedStateFromError||null!==p&&"function"===typeof p.componentDidCatch&&
23979
+ (null===jj||!jj.has(p)))){k.effectTag|=4096;k.expirationTime=b;var t=ij(k,g,b);Eg(k,t);break a}}k=k.return}while(null!==k)}V=ek(V)}catch(v){b=v;continue}break}while(1)}function Uj(){var a=lj.current;lj.current=Lh;return null===a?Lh:a}function Ig(a,b){a<xj&&2<a&&(xj=a);null!==b&&a<yj&&2<a&&(yj=a,zj=b)}function Jg(a){a>Aj&&(Aj=a)}function Zj(){for(;null!==V;)V=fk(V)}function Vj(){for(;null!==V&&!Of();)V=fk(V)}
23980
+ function fk(a){var b=gk(a.alternate,a,W);a.memoizedProps=a.pendingProps;null===b&&(b=ek(a));mj.current=null;return b}
23981
+ function ek(a){V=a;do{var b=V.alternate;a=V.return;if(0===(V.effectTag&2048)){a:{var c=b;b=V;var d=W;var e=b.pendingProps;switch(b.tag){case 2:break;case 16:break;case 15:case 0:break;case 1:L(b.type)&&Ff(b);break;case 3:nh(b);Gf(b);e=b.stateNode;e.pendingContext&&(e.context=e.pendingContext,e.pendingContext=null);(null===c||null===c.child)&&ki(b)&&Ci(b);Ii(b);break;case 5:ph(b);d=lh(kh.current);var f=b.type;if(null!==c&&null!=b.stateNode)Ji(c,b,f,e,d),c.ref!==b.ref&&(b.effectTag|=128);else if(e){var g=
23982
+ lh(ih.current);if(ki(b)){e=b;var h=e.stateNode;c=e.type;var k=e.memoizedProps,l=d;h[ue]=e;h[ve]=k;f=void 0;d=h;switch(c){case "iframe":case "object":case "embed":F("load",d);break;case "video":case "audio":for(h=0;h<cc.length;h++)F(cc[h],d);break;case "source":F("error",d);break;case "img":case "image":case "link":F("error",d);F("load",d);break;case "form":F("reset",d);F("submit",d);break;case "details":F("toggle",d);break;case "input":Bb(d,k);F("invalid",d);$d(l,"onChange");break;case "select":d._wrapperState=
23983
+ {wasMultiple:!!k.multiple};F("invalid",d);$d(l,"onChange");break;case "textarea":Lb(d,k),F("invalid",d),$d(l,"onChange")}Yd(c,k);h=null;for(f in k)k.hasOwnProperty(f)&&(g=k[f],"children"===f?"string"===typeof g?d.textContent!==g&&(h=["children",g]):"number"===typeof g&&d.textContent!==""+g&&(h=["children",""+g]):ia.hasOwnProperty(f)&&null!=g&&$d(l,f));switch(c){case "input":yb(d);Gb(d,k,!0);break;case "textarea":yb(d);Nb(d,k);break;case "select":case "option":break;default:"function"===typeof k.onClick&&
23984
+ (d.onclick=ae)}f=h;e.updateQueue=f;e=null!==f?!0:!1;e&&Ci(b)}else{c=b;l=f;k=e;h=9===d.nodeType?d:d.ownerDocument;g===Ob.html&&(g=Pb(l));g===Ob.html?"script"===l?(k=h.createElement("div"),k.innerHTML="<script>\x3c/script>",h=k.removeChild(k.firstChild)):"string"===typeof k.is?h=h.createElement(l,{is:k.is}):(h=h.createElement(l),"select"===l&&(l=h,k.multiple?l.multiple=!0:k.size&&(l.size=k.size))):h=h.createElementNS(g,l);k=h;k[ue]=c;k[ve]=e;Hi(k,b,!1,!1);b.stateNode=k;l=f;c=e;var m=d,C=Zd(l,c);switch(l){case "iframe":case "object":case "embed":F("load",
23985
+ k);d=c;break;case "video":case "audio":for(d=0;d<cc.length;d++)F(cc[d],k);d=c;break;case "source":F("error",k);d=c;break;case "img":case "image":case "link":F("error",k);F("load",k);d=c;break;case "form":F("reset",k);F("submit",k);d=c;break;case "details":F("toggle",k);d=c;break;case "input":Bb(k,c);d=Ab(k,c);F("invalid",k);$d(m,"onChange");break;case "option":d=Ib(k,c);break;case "select":k._wrapperState={wasMultiple:!!c.multiple};d=n({},c,{value:void 0});F("invalid",k);$d(m,"onChange");break;case "textarea":Lb(k,
23986
+ c);d=Kb(k,c);F("invalid",k);$d(m,"onChange");break;default:d=c}Yd(l,d);h=void 0;g=l;var y=k,H=d;for(h in H)if(H.hasOwnProperty(h)){var z=H[h];"style"===h?Wd(y,z):"dangerouslySetInnerHTML"===h?(z=z?z.__html:void 0,null!=z&&Sb(y,z)):"children"===h?"string"===typeof z?("textarea"!==g||""!==z)&&Tb(y,z):"number"===typeof z&&Tb(y,""+z):"suppressContentEditableWarning"!==h&&"suppressHydrationWarning"!==h&&"autoFocus"!==h&&(ia.hasOwnProperty(h)?null!=z&&$d(m,h):null!=z&&vb(y,h,z,C))}switch(l){case "input":yb(k);
23987
+ Gb(k,c,!1);break;case "textarea":yb(k);Nb(k,c);break;case "option":null!=c.value&&k.setAttribute("value",""+ub(c.value));break;case "select":d=k;d.multiple=!!c.multiple;k=c.value;null!=k?Jb(d,!!c.multiple,k,!1):null!=c.defaultValue&&Jb(d,!!c.multiple,c.defaultValue,!0);break;default:"function"===typeof d.onClick&&(k.onclick=ae)}(e=ne(f,e))&&Ci(b)}null!==b.ref&&(b.effectTag|=128)}else if(null===b.stateNode)throw Error(u(166));break;case 6:if(c&&null!=b.stateNode)Ki(c,b,c.memoizedProps,e);else{if("string"!==
23988
+ typeof e&&null===b.stateNode)throw Error(u(166));d=lh(kh.current);lh(ih.current);ki(b)?(e=b,f=e.stateNode,d=e.memoizedProps,f[ue]=e,(e=f.nodeValue!==d)&&Ci(b)):(f=b,e=(9===d.nodeType?d:d.ownerDocument).createTextNode(e),e[ue]=f,b.stateNode=e)}break;case 11:break;case 13:G(M,b);e=b.memoizedState;if(0!==(b.effectTag&64)){b.expirationTime=d;break a}e=null!==e;f=!1;null===c?void 0!==b.memoizedProps.fallback&&ki(b):(d=c.memoizedState,f=null!==d,e||null===d||(d=c.child.sibling,null!==d&&(k=b.firstEffect,
23989
+ null!==k?(b.firstEffect=d,d.nextEffect=k):(b.firstEffect=b.lastEffect=d,d.nextEffect=null),d.effectTag=8)));if(e&&!f&&0!==(b.mode&2))if(null===c&&!0!==b.memoizedProps.unstable_avoidThisFallback||0!==(M.current&1))X===qj&&(X=tj);else{if(X===qj||X===tj)X=uj;0!==Aj&&null!==U&&(Mj(U,W),Nj(U,Aj))}if(e||f)b.effectTag|=4;break;case 7:break;case 8:break;case 12:break;case 4:nh(b);Ii(b);break;case 10:tg(b);break;case 9:break;case 14:break;case 17:L(b.type)&&Ff(b);break;case 19:G(M,b);e=b.memoizedState;if(null===
23990
+ e)break;f=0!==(b.effectTag&64);k=e.rendering;if(null===k)if(f)Li(e,!1);else{if(X!==qj||null!==c&&0!==(c.effectTag&64))for(c=b.child;null!==c;){k=qh(c);if(null!==k){b.effectTag|=64;Li(e,!1);f=k.updateQueue;null!==f&&(b.updateQueue=f,b.effectTag|=4);null===e.lastEffect&&(b.firstEffect=null);b.lastEffect=e.lastEffect;e=d;for(f=b.child;null!==f;)d=f,c=e,d.effectTag&=2,d.nextEffect=null,d.firstEffect=null,d.lastEffect=null,k=d.alternate,null===k?(d.childExpirationTime=0,d.expirationTime=c,d.child=null,
23991
+ d.memoizedProps=null,d.memoizedState=null,d.updateQueue=null,d.dependencies=null):(d.childExpirationTime=k.childExpirationTime,d.expirationTime=k.expirationTime,d.child=k.child,d.memoizedProps=k.memoizedProps,d.memoizedState=k.memoizedState,d.updateQueue=k.updateQueue,c=k.dependencies,d.dependencies=null===c?null:{expirationTime:c.expirationTime,firstContext:c.firstContext,responders:c.responders}),f=f.sibling;I(M,M.current&1|2,b);b=b.child;break a}c=c.sibling}}else{if(!f)if(c=qh(k),null!==c){if(b.effectTag|=
23992
+ 64,f=!0,d=c.updateQueue,null!==d&&(b.updateQueue=d,b.effectTag|=4),Li(e,!0),null===e.tail&&"hidden"===e.tailMode&&!k.alternate){b=b.lastEffect=e.lastEffect;null!==b&&(b.nextEffect=null);break}}else cg()>e.tailExpiration&&1<d&&(b.effectTag|=64,f=!0,Li(e,!1),b.expirationTime=b.childExpirationTime=d-1);e.isBackwards?(k.sibling=b.child,b.child=k):(d=e.last,null!==d?d.sibling=k:b.child=k,e.last=k)}if(null!==e.tail){0===e.tailExpiration&&(e.tailExpiration=cg()+500);d=e.tail;e.rendering=d;e.tail=d.sibling;
23993
+ e.lastEffect=b.lastEffect;d.sibling=null;e=M.current;e=f?e&1|2:e&1;I(M,e,b);b=d;break a}break;case 20:break;case 21:break;default:throw Error(u(156,b.tag));}b=null}e=V;if(1===W||1!==e.childExpirationTime){f=0;for(d=e.child;null!==d;)c=d.expirationTime,k=d.childExpirationTime,c>f&&(f=c),k>f&&(f=k),d=d.sibling;e.childExpirationTime=f}if(null!==b)return b;null!==a&&0===(a.effectTag&2048)&&(null===a.firstEffect&&(a.firstEffect=V.firstEffect),null!==V.lastEffect&&(null!==a.lastEffect&&(a.lastEffect.nextEffect=
23994
+ V.firstEffect),a.lastEffect=V.lastEffect),1<V.effectTag&&(null!==a.lastEffect?a.lastEffect.nextEffect=V:a.firstEffect=V,a.lastEffect=V))}else{b=Mi(V,W);if(null!==b)return b.effectTag&=2047,b;null!==a&&(a.firstEffect=a.lastEffect=null,a.effectTag|=2048)}b=V.sibling;if(null!==b)return b;V=a}while(null!==V);X===qj&&(X=vj);return null}function Xj(a){var b=a.expirationTime;a=a.childExpirationTime;return b>a?b:a}function Yj(a){var b=dg();fg(99,ik.bind(null,a,b));return null}
23995
+ function ik(a,b){do Sj();while(null!==Ej);if((T&(oj|pj))!==S)throw Error(u(327));var c=a.finishedWork,d=a.finishedExpirationTime;if(null===c)return null;a.finishedWork=null;a.finishedExpirationTime=0;if(c===a.current)throw Error(u(177));a.callbackNode=null;a.callbackExpirationTime=0;a.callbackPriority=90;a.nextKnownPendingLevel=0;var e=Xj(c);a.firstPendingTime=e;d<=a.lastSuspendedTime?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:d<=a.firstSuspendedTime&&(a.firstSuspendedTime=
23996
+ d-1);d<=a.lastPingedTime&&(a.lastPingedTime=0);d<=a.lastExpiredTime&&(a.lastExpiredTime=0);a===U&&(V=U=null,W=0);1<c.effectTag?null!==c.lastEffect?(c.lastEffect.nextEffect=c,e=c.firstEffect):e=c:e=c.firstEffect;if(null!==e){var f=T;T|=pj;mj.current=null;le=Ld;var g=fe();if(ge(g)){if("selectionStart"in g)var h={start:g.selectionStart,end:g.selectionEnd};else a:{h=(h=g.ownerDocument)&&h.defaultView||window;var k=h.getSelection&&h.getSelection();if(k&&0!==k.rangeCount){h=k.anchorNode;var l=k.anchorOffset,
23997
+ m=k.focusNode;k=k.focusOffset;try{h.nodeType,m.nodeType}catch(Db){h=null;break a}var C=0,y=-1,H=-1,z=0,ta=0,r=g,x=null;b:for(;;){for(var A;;){r!==h||0!==l&&3!==r.nodeType||(y=C+l);r!==m||0!==k&&3!==r.nodeType||(H=C+k);3===r.nodeType&&(C+=r.nodeValue.length);if(null===(A=r.firstChild))break;x=r;r=A}for(;;){if(r===g)break b;x===h&&++z===l&&(y=C);x===m&&++ta===k&&(H=C);if(null!==(A=r.nextSibling))break;r=x;x=r.parentNode}r=A}h=-1===y||-1===H?null:{start:y,end:H}}else h=null}h=h||{start:0,end:0}}else h=
23998
+ null;me={focusedElem:g,selectionRange:h};Ld=!1;Y=e;do try{jk()}catch(Db){if(null===Y)throw Error(u(330));Ri(Y,Db);Y=Y.nextEffect}while(null!==Y);Y=e;do try{for(g=a,h=b;null!==Y;){var p=Y.effectTag;p&16&&Tb(Y.stateNode,"");if(p&128){var t=Y.alternate;if(null!==t){var v=t.ref;null!==v&&("function"===typeof v?v(null):v.current=null)}}switch(p&1038){case 2:$i(Y);Y.effectTag&=-3;break;case 6:$i(Y);Y.effectTag&=-3;aj(Y.alternate,Y);break;case 1024:Y.effectTag&=-1025;break;case 1028:Y.effectTag&=-1025;aj(Y.alternate,
23999
+ Y);break;case 4:aj(Y.alternate,Y);break;case 8:l=Y,Xi(g,l,h),Yi(l)}Y=Y.nextEffect}}catch(Db){if(null===Y)throw Error(u(330));Ri(Y,Db);Y=Y.nextEffect}while(null!==Y);v=me;t=fe();p=v.focusedElem;h=v.selectionRange;if(t!==p&&p&&p.ownerDocument&&ee(p.ownerDocument.documentElement,p)){null!==h&&ge(p)&&(t=h.start,v=h.end,void 0===v&&(v=t),"selectionStart"in p?(p.selectionStart=t,p.selectionEnd=Math.min(v,p.value.length)):(v=(t=p.ownerDocument||document)&&t.defaultView||window,v.getSelection&&(v=v.getSelection(),
24000
+ l=p.textContent.length,g=Math.min(h.start,l),h=void 0===h.end?g:Math.min(h.end,l),!v.extend&&g>h&&(l=h,h=g,g=l),l=de(p,g),m=de(p,h),l&&m&&(1!==v.rangeCount||v.anchorNode!==l.node||v.anchorOffset!==l.offset||v.focusNode!==m.node||v.focusOffset!==m.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),v.removeAllRanges(),g>h?(v.addRange(t),v.extend(m.node,m.offset)):(t.setEnd(m.node,m.offset),v.addRange(t))))));t=[];for(v=p;v=v.parentNode;)1===v.nodeType&&t.push({element:v,left:v.scrollLeft,top:v.scrollTop});
24001
+ "function"===typeof p.focus&&p.focus();for(p=0;p<t.length;p++)v=t[p],v.element.scrollLeft=v.left,v.element.scrollTop=v.top}me=null;Ld=!!le;le=null;a.current=c;Y=e;do try{for(p=d;null!==Y;){var Dh=Y.effectTag;if(Dh&36){var dc=Y.alternate;t=Y;v=p;switch(t.tag){case 0:case 11:case 15:Ui(16,32,t);break;case 1:var fd=t.stateNode;if(t.effectTag&4)if(null===dc)fd.componentDidMount();else{var hk=t.elementType===t.type?dc.memoizedProps:mg(t.type,dc.memoizedProps);fd.componentDidUpdate(hk,dc.memoizedState,
24002
+ fd.__reactInternalSnapshotBeforeUpdate)}var Eh=t.updateQueue;null!==Eh&&Kg(t,Eh,fd,v);break;case 3:var Fh=t.updateQueue;if(null!==Fh){g=null;if(null!==t.child)switch(t.child.tag){case 5:g=t.child.stateNode;break;case 1:g=t.child.stateNode}Kg(t,Fh,g,v)}break;case 5:var xk=t.stateNode;null===dc&&t.effectTag&4&&ne(t.type,t.memoizedProps)&&xk.focus();break;case 6:break;case 4:break;case 12:break;case 13:if(null===t.memoizedState){var Di=t.alternate;if(null!==Di){var Ei=Di.memoizedState;if(null!==Ei){var Fi=
24003
+ Ei.dehydrated;null!==Fi&&Lc(Fi)}}}break;case 19:case 17:case 20:case 21:break;default:throw Error(u(163));}}if(Dh&128){t=void 0;var xd=Y.ref;if(null!==xd){var Gi=Y.stateNode;switch(Y.tag){case 5:t=Gi;break;default:t=Gi}"function"===typeof xd?xd(t):xd.current=t}}Y=Y.nextEffect}}catch(Db){if(null===Y)throw Error(u(330));Ri(Y,Db);Y=Y.nextEffect}while(null!==Y);Y=null;Yf();T=f}else a.current=c;if(Dj)Dj=!1,Ej=a,Fj=b;else for(Y=e;null!==Y;)b=Y.nextEffect,Y.nextEffect=null,Y=b;b=a.firstPendingTime;0===b&&
24004
+ (jj=null);1073741823===b?a===Ij?Hj++:(Hj=0,Ij=a):Hj=0;"function"===typeof kk&&kk(c.stateNode,d);Z(a);if(gj)throw gj=!1,a=hj,hj=null,a;if((T&nj)!==S)return null;jg();return null}function jk(){for(;null!==Y;){var a=Y.effectTag;0!==(a&256)&&Ti(Y.alternate,Y);0===(a&512)||Dj||(Dj=!0,gg(97,function(){Sj();return null}));Y=Y.nextEffect}}function Sj(){if(90!==Fj){var a=97<Fj?97:Fj;Fj=90;return fg(a,lk)}}
24005
+ function lk(){if(null===Ej)return!1;var a=Ej;Ej=null;if((T&(oj|pj))!==S)throw Error(u(331));var b=T;T|=pj;for(a=a.current.firstEffect;null!==a;){try{var c=a;if(0!==(c.effectTag&512))switch(c.tag){case 0:case 11:case 15:Ui(128,0,c),Ui(0,64,c)}}catch(d){if(null===a)throw Error(u(330));Ri(a,d)}c=a.nextEffect;a.nextEffect=null;a=c}T=b;jg();return!0}function mk(a,b,c){b=Ni(c,b);b=fj(a,b,1073741823);Dg(a,b);a=Kj(a,1073741823);null!==a&&Z(a)}
24006
+ function Ri(a,b){if(3===a.tag)mk(a,a,b);else for(var c=a.return;null!==c;){if(3===c.tag){mk(c,a,b);break}else if(1===c.tag){var d=c.stateNode;if("function"===typeof c.type.getDerivedStateFromError||"function"===typeof d.componentDidCatch&&(null===jj||!jj.has(d))){a=Ni(b,a);a=ij(c,a,1073741823);Dg(c,a);c=Kj(c,1073741823);null!==c&&Z(c);break}}c=c.return}}
24007
+ function dk(a,b,c){var d=a.pingCache;null!==d&&d.delete(b);U===a&&W===c?X===uj||X===tj&&1073741823===xj&&cg()-bj<Cj?Tj(a,W):Bj=!0:Pj(a,c)&&(b=a.lastPingedTime,0!==b&&b<c||(a.lastPingedTime=c,a.finishedExpirationTime===c&&(a.finishedExpirationTime=0,a.finishedWork=null),Z(a)))}function dj(a,b){var c=a.stateNode;null!==c&&c.delete(b);b=0;0===b&&(b=Pg(),b=Qg(b,a,null));a=Kj(a,b);null!==a&&Z(a)}var gk;
24008
+ gk=function(a,b,c){var d=b.expirationTime;if(null!==a){var e=b.pendingProps;if(a.memoizedProps!==e||K.current)wg=!0;else{if(d<c){wg=!1;switch(b.tag){case 3:wi(b);li();break;case 5:oh(b);if(b.mode&4&&1!==c&&e.hidden)return b.expirationTime=b.childExpirationTime=1,null;break;case 1:L(b.type)&&Jf(b);break;case 4:mh(b,b.stateNode.containerInfo);break;case 10:sg(b,b.memoizedProps.value);break;case 13:if(null!==b.memoizedState){d=b.child.childExpirationTime;if(0!==d&&d>=c)return yi(a,b,c);I(M,M.current&
24009
+ 1,b);b=oi(a,b,c);return null!==b?b.sibling:null}I(M,M.current&1,b);break;case 19:d=b.childExpirationTime>=c;if(0!==(a.effectTag&64)){if(d)return Bi(a,b,c);b.effectTag|=64}e=b.memoizedState;null!==e&&(e.rendering=null,e.tail=null);I(M,M.current,b);if(!d)return null}return oi(a,b,c)}wg=!1}}else wg=!1;b.expirationTime=0;switch(b.tag){case 2:d=b.type;null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;e=Ef(b,J.current);vg(b,c);e=Ih(null,b,d,a,e,c);b.effectTag|=1;if("object"===
24010
+ typeof e&&null!==e&&"function"===typeof e.render&&void 0===e.$$typeof){b.tag=1;Mh();if(L(d)){var f=!0;Jf(b)}else f=!1;b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null;var g=d.getDerivedStateFromProps;"function"===typeof g&&Og(b,d,g,a);e.updater=Sg;b.stateNode=e;e._reactInternalFiber=b;Wg(b,d,a,c);b=vi(null,b,d,!0,f,c)}else b.tag=0,R(null,b,e,c),b=b.child;return b;case 16:e=b.elementType;null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2);a=b.pendingProps;Va(e);if(1!==e._status)throw e._result;
24011
+ e=e._result;b.type=e;f=b.tag=nk(e);a=mg(e,a);switch(f){case 0:b=si(null,b,e,a,c);break;case 1:b=ui(null,b,e,a,c);break;case 11:b=ni(null,b,e,a,c);break;case 14:b=pi(null,b,e,mg(e.type,a),d,c);break;default:throw Error(u(306,e,""));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:mg(d,e),si(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:mg(d,e),ui(a,b,d,e,c);case 3:wi(b);d=b.updateQueue;if(null===d)throw Error(u(282));e=b.memoizedState;e=null!==e?e.element:
24012
+ null;Hg(b,d,b.pendingProps,null,c);d=b.memoizedState.element;if(d===e)li(),b=oi(a,b,c);else{if(e=b.stateNode.hydrate)di=re(b.stateNode.containerInfo.firstChild),ci=b,e=ei=!0;if(e)for(c=gh(b,null,d,c),b.child=c;c;)c.effectTag=c.effectTag&-3|1024,c=c.sibling;else R(a,b,d,c),li();b=b.child}return b;case 5:return oh(b),null===a&&ii(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,oe(d,e)?g=null:null!==f&&oe(d,f)&&(b.effectTag|=16),ti(a,b),b.mode&4&&1!==c&&e.hidden?(b.expirationTime=
24013
+ b.childExpirationTime=1,b=null):(R(a,b,g,c),b=b.child),b;case 6:return null===a&&ii(b),null;case 13:return yi(a,b,c);case 4:return mh(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=fh(b,null,d,c):R(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:mg(d,e),ni(a,b,d,e,c);case 7:return R(a,b,b.pendingProps,c),b.child;case 8:return R(a,b,b.pendingProps.children,c),b.child;case 12:return R(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;
24014
+ e=b.pendingProps;g=b.memoizedProps;f=e.value;sg(b,f);if(null!==g){var h=g.value;f=of(h,f)?0:("function"===typeof d._calculateChangedBits?d._calculateChangedBits(h,f):1073741823)|0;if(0===f){if(g.children===e.children&&!K.current){b=oi(a,b,c);break a}}else for(h=b.child,null!==h&&(h.return=b);null!==h;){var k=h.dependencies;if(null!==k){g=h.child;for(var l=k.firstContext;null!==l;){if(l.context===d&&0!==(l.observedBits&f)){1===h.tag&&(l=Bg(c,null),l.tag=2,Dg(h,l));h.expirationTime<c&&(h.expirationTime=
24015
+ c);l=h.alternate;null!==l&&l.expirationTime<c&&(l.expirationTime=c);ug(h.return,c);k.expirationTime<c&&(k.expirationTime=c);break}l=l.next}}else g=10===h.tag?h.type===b.type?null:h.child:h.child;if(null!==g)g.return=h;else for(g=h;null!==g;){if(g===b){g=null;break}h=g.sibling;if(null!==h){h.return=g.return;g=h;break}g=g.return}h=g}}R(a,b,e.children,c);b=b.child}return b;case 9:return e=b.type,f=b.pendingProps,d=f.children,vg(b,c),e=xg(e,f.unstable_observedBits),d=d(e),b.effectTag|=1,R(a,b,d,c),b.child;
24016
+ case 14:return e=b.type,f=mg(e,b.pendingProps),f=mg(e.type,f),pi(a,b,e,f,d,c);case 15:return ri(a,b,b.type,b.pendingProps,d,c);case 17:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:mg(d,e),null!==a&&(a.alternate=null,b.alternate=null,b.effectTag|=2),b.tag=1,L(d)?(a=!0,Jf(b)):a=!1,vg(b,c),Ug(b,d,e,c),Wg(b,d,e,c),vi(null,b,d,!0,a,c);case 19:return Bi(a,b,c)}throw Error(u(156,b.tag));};var kk=null,Wi=null;
24017
+ function ok(a){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var b=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(b.isDisabled||!b.supportsFiber)return!0;try{var c=b.inject(a);kk=function(a){try{b.onCommitFiberRoot(c,a,void 0,64===(a.current.effectTag&64))}catch(e){}};Wi=function(a){try{b.onCommitFiberUnmount(c,a)}catch(e){}}}catch(d){}return!0}
24018
+ function pk(a,b,c,d){this.tag=a;this.key=c;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=b;this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=d;this.effectTag=0;this.lastEffect=this.firstEffect=this.nextEffect=null;this.childExpirationTime=this.expirationTime=0;this.alternate=null}function gi(a,b,c,d){return new pk(a,b,c,d)}
24019
+ function qi(a){a=a.prototype;return!(!a||!a.isReactComponent)}function nk(a){if("function"===typeof a)return qi(a)?1:0;if(void 0!==a&&null!==a){a=a.$$typeof;if(a===Oa)return 11;if(a===Ra)return 14}return 2}
24020
+ function ah(a,b){var c=a.alternate;null===c?(c=gi(a.tag,b,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=b,c.effectTag=0,c.nextEffect=null,c.firstEffect=null,c.lastEffect=null);c.childExpirationTime=a.childExpirationTime;c.expirationTime=a.expirationTime;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=a.memoizedState;c.updateQueue=a.updateQueue;b=a.dependencies;c.dependencies=null===b?null:{expirationTime:b.expirationTime,
24021
+ firstContext:b.firstContext,responders:b.responders};c.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c}
24022
+ function ch(a,b,c,d,e,f){var g=2;d=a;if("function"===typeof a)qi(a)&&(g=1);else if("string"===typeof a)g=5;else a:switch(a){case Ia:return eh(c.children,e,f,b);case Na:g=8;e|=7;break;case Ja:g=8;e|=1;break;case Ka:return a=gi(12,c,b,e|8),a.elementType=Ka,a.type=Ka,a.expirationTime=f,a;case Pa:return a=gi(13,c,b,e),a.type=Pa,a.elementType=Pa,a.expirationTime=f,a;case Qa:return a=gi(19,c,b,e),a.elementType=Qa,a.expirationTime=f,a;default:if("object"===typeof a&&null!==a)switch(a.$$typeof){case La:g=
24023
+ 10;break a;case Ma:g=9;break a;case Oa:g=11;break a;case Ra:g=14;break a;case Sa:g=16;d=null;break a}throw Error(u(130,null==a?a:typeof a,""));}b=gi(g,c,b,e);b.elementType=a;b.type=d;b.expirationTime=f;return b}function eh(a,b,c,d){a=gi(7,a,d,b);a.expirationTime=c;return a}function bh(a,b,c){a=gi(6,a,null,b);a.expirationTime=c;return a}
24024
+ function dh(a,b,c){b=gi(4,null!==a.children?a.children:[],a.key,b);b.expirationTime=c;b.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation};return b}
24025
+ function qk(a,b,c){this.tag=b;this.current=null;this.containerInfo=a;this.pingCache=this.pendingChildren=null;this.finishedExpirationTime=0;this.finishedWork=null;this.timeoutHandle=-1;this.pendingContext=this.context=null;this.hydrate=c;this.callbackNode=null;this.callbackPriority=90;this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}
24026
+ function Pj(a,b){var c=a.firstSuspendedTime;a=a.lastSuspendedTime;return 0!==c&&c>=b&&a<=b}function Mj(a,b){var c=a.firstSuspendedTime,d=a.lastSuspendedTime;c<b&&(a.firstSuspendedTime=b);if(d>b||0===c)a.lastSuspendedTime=b;b<=a.lastPingedTime&&(a.lastPingedTime=0);b<=a.lastExpiredTime&&(a.lastExpiredTime=0)}
24027
+ function Nj(a,b){b>a.firstPendingTime&&(a.firstPendingTime=b);var c=a.firstSuspendedTime;0!==c&&(b>=c?a.firstSuspendedTime=a.lastSuspendedTime=a.nextKnownPendingLevel=0:b>=a.lastSuspendedTime&&(a.lastSuspendedTime=b+1),b>a.nextKnownPendingLevel&&(a.nextKnownPendingLevel=b))}function Rj(a,b){var c=a.lastExpiredTime;if(0===c||c>b)a.lastExpiredTime=b}
24028
+ function rk(a,b,c,d){var e=b.current,f=Pg(),g=Mg.suspense;f=Qg(f,e,g);a:if(c){c=c._reactInternalFiber;b:{if(ec(c)!==c||1!==c.tag)throw Error(u(170));var h=c;do{switch(h.tag){case 3:h=h.stateNode.context;break b;case 1:if(L(h.type)){h=h.stateNode.__reactInternalMemoizedMergedChildContext;break b}}h=h.return}while(null!==h);throw Error(u(171));}if(1===c.tag){var k=c.type;if(L(k)){c=If(c,k,h);break a}}c=h}else c=Cf;null===b.context?b.context=c:b.pendingContext=c;b=Bg(f,g);b.payload={element:a};d=void 0===
24029
+ d?null:d;null!==d&&(b.callback=d);Dg(e,b);Rg(e,f);return f}function sk(a){a=a.current;if(!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function tk(a,b){a=a.memoizedState;null!==a&&null!==a.dehydrated&&a.retryTime<b&&(a.retryTime=b)}function uk(a,b){tk(a,b);(a=a.alternate)&&tk(a,b)}
24030
+ function vk(a,b,c){c=null!=c&&!0===c.hydrate;var d=new qk(a,b,c),e=gi(3,null,null,2===b?7:1===b?3:0);d.current=e;e.stateNode=d;a[we]=d.current;c&&0!==b&&wc(9===a.nodeType?a:a.ownerDocument);this._internalRoot=d}vk.prototype.render=function(a,b){rk(a,this._internalRoot,null,void 0===b?null:b)};vk.prototype.unmount=function(a){var b=this._internalRoot,c=void 0===a?null:a,d=b.containerInfo;rk(null,b,null,function(){d[we]=null;null!==c&&c()})};
24031
+ function wk(a){return!(!a||1!==a.nodeType&&9!==a.nodeType&&11!==a.nodeType&&(8!==a.nodeType||" react-mount-point-unstable "!==a.nodeValue))}function yk(a,b){b||(b=a?9===a.nodeType?a.documentElement:a.firstChild:null,b=!(!b||1!==b.nodeType||!b.hasAttribute("data-reactroot")));if(!b)for(var c;c=a.lastChild;)a.removeChild(c);return new vk(a,0,b?{hydrate:!0}:void 0)}
24032
+ function zk(a,b,c,d,e){var f=c._reactRootContainer;if(f){var g=f._internalRoot;if("function"===typeof e){var h=e;e=function(){var a=sk(g);h.call(a)}}rk(b,g,a,e)}else{f=c._reactRootContainer=yk(c,d);g=f._internalRoot;if("function"===typeof e){var k=e;e=function(){var a=sk(g);k.call(a)}}ck(function(){rk(b,g,a,e)})}return sk(g)}function Ak(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Ha,key:null==d?null:""+d,children:a,containerInfo:b,implementation:c}}
24033
+ jc=function(a){if(13===a.tag){var b=lg(Pg(),150,100);Rg(a,b);uk(a,b)}};kc=function(a){if(13===a.tag){Pg();var b=kg++;Rg(a,b);uk(a,b)}};lc=function(a){if(13===a.tag){var b=Pg();b=Qg(b,a,null);Rg(a,b);uk(a,b)}};
24034
+ Za=function(a,b,c){switch(b){case "input":Eb(a,c);b=c.name;if("radio"===c.type&&null!=b){for(c=a;c.parentNode;)c=c.parentNode;c=c.querySelectorAll("input[name="+JSON.stringify(""+b)+'][type="radio"]');for(b=0;b<c.length;b++){var d=c[b];if(d!==a&&d.form===a.form){var e=ye(d);if(!e)throw Error(u(90));zb(d);Eb(d,e)}}}break;case "textarea":Mb(a,c);break;case "select":b=c.value,null!=b&&Jb(a,!!c.multiple,b,!1)}};eb=bk;
24035
+ fb=function(a,b,c,d){var e=T;T|=4;try{return fg(98,a.bind(null,b,c,d))}finally{T=e,T===S&&jg()}};gb=function(){(T&(1|oj|pj))===S&&(ak(),Sj())};hb=function(a,b){var c=T;T|=2;try{return a(b)}finally{T=c,T===S&&jg()}};function Bk(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!wk(b))throw Error(u(200));return Ak(a,b,null,c)}
24036
+ var Ck={createPortal:Bk,findDOMNode:function(a){if(null==a)return null;if(1===a.nodeType)return a;var b=a._reactInternalFiber;if(void 0===b){if("function"===typeof a.render)throw Error(u(188));throw Error(u(268,Object.keys(a)));}a=ic(b);a=null===a?null:a.stateNode;return a},hydrate:function(a,b,c){if(!wk(b))throw Error(u(200));return zk(null,a,b,!0,c)},render:function(a,b,c){if(!wk(b))throw Error(u(200));return zk(null,a,b,!1,c)},unstable_renderSubtreeIntoContainer:function(a,b,c,d){if(!wk(c))throw Error(u(200));
24037
+ if(null==a||void 0===a._reactInternalFiber)throw Error(u(38));return zk(a,b,c,!1,d)},unmountComponentAtNode:function(a){if(!wk(a))throw Error(u(40));return a._reactRootContainer?(ck(function(){zk(null,null,a,!1,function(){a._reactRootContainer=null;a[we]=null})}),!0):!1},unstable_createPortal:function(){return Bk.apply(void 0,arguments)},unstable_batchedUpdates:bk,flushSync:function(a,b){if((T&(oj|pj))!==S)throw Error(u(187));var c=T;T|=1;try{return fg(99,a.bind(null,b))}finally{T=c,jg()}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[Cc,
24038
+ xe,ye,Ca.injectEventPluginsByName,fa,Sc,function(a){ya(a,Rc)},cb,db,Pd,Ba,Sj,{current:!1}]}};
24039
+ (function(a){var b=a.findFiberByHostInstance;return ok(n({},a,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ea.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){a=ic(a);return null===a?null:a.stateNode},findFiberByHostInstance:function(a){return b?b(a):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))})({findFiberByHostInstance:Fc,bundleType:0,version:"16.12.0",
24040
+ rendererPackageName:"react-dom"});var Dk={default:Ck},Ek=Dk&&Ck||Dk;module.exports=Ek.default||Ek;
24041
+
24042
+
24043
+ /***/ }),
24044
+ /* 302 */
24045
+ /***/ (function(module, exports, __webpack_require__) {
24046
+
24047
+ "use strict";
24048
+ /** @license React v0.18.0
24049
+ * scheduler.production.min.js
24050
+ *
24051
+ * Copyright (c) Facebook, Inc. and its affiliates.
24052
+ *
24053
+ * This source code is licensed under the MIT license found in the
24054
+ * LICENSE file in the root directory of this source tree.
24055
+ */
24056
+
24057
+ Object.defineProperty(exports,"__esModule",{value:!0});var f,g,h,k,l;
24058
+ if("undefined"===typeof window||"function"!==typeof MessageChannel){var p=null,q=null,t=function(){if(null!==p)try{var a=exports.unstable_now();p(!0,a);p=null}catch(b){throw setTimeout(t,0),b;}},u=Date.now();exports.unstable_now=function(){return Date.now()-u};f=function(a){null!==p?setTimeout(f,0,a):(p=a,setTimeout(t,0))};g=function(a,b){q=setTimeout(a,b)};h=function(){clearTimeout(q)};k=function(){return!1};l=exports.unstable_forceFrameRate=function(){}}else{var w=window.performance,x=window.Date,
24059
+ y=window.setTimeout,z=window.clearTimeout;if("undefined"!==typeof console){var A=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills");"function"!==typeof A&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===
24060
+ typeof w&&"function"===typeof w.now)exports.unstable_now=function(){return w.now()};else{var B=x.now();exports.unstable_now=function(){return x.now()-B}}var C=!1,D=null,E=-1,F=5,G=0;k=function(){return exports.unstable_now()>=G};l=function(){};exports.unstable_forceFrameRate=function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):F=0<a?Math.floor(1E3/a):5};var H=new MessageChannel,I=H.port2;H.port1.onmessage=
24061
+ function(){if(null!==D){var a=exports.unstable_now();G=a+F;try{D(!0,a)?I.postMessage(null):(C=!1,D=null)}catch(b){throw I.postMessage(null),b;}}else C=!1};f=function(a){D=a;C||(C=!0,I.postMessage(null))};g=function(a,b){E=y(function(){a(exports.unstable_now())},b)};h=function(){z(E);E=-1}}function J(a,b){var c=a.length;a.push(b);a:for(;;){var d=Math.floor((c-1)/2),e=a[d];if(void 0!==e&&0<K(e,b))a[d]=b,a[c]=e,c=d;else break a}}function L(a){a=a[0];return void 0===a?null:a}
24062
+ function M(a){var b=a[0];if(void 0!==b){var c=a.pop();if(c!==b){a[0]=c;a:for(var d=0,e=a.length;d<e;){var m=2*(d+1)-1,n=a[m],v=m+1,r=a[v];if(void 0!==n&&0>K(n,c))void 0!==r&&0>K(r,n)?(a[d]=r,a[v]=c,d=v):(a[d]=n,a[m]=c,d=m);else if(void 0!==r&&0>K(r,c))a[d]=r,a[v]=c,d=v;else break a}}return b}return null}function K(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}var N=[],O=[],P=1,Q=null,R=3,S=!1,T=!1,U=!1;
24063
+ function V(a){for(var b=L(O);null!==b;){if(null===b.callback)M(O);else if(b.startTime<=a)M(O),b.sortIndex=b.expirationTime,J(N,b);else break;b=L(O)}}function W(a){U=!1;V(a);if(!T)if(null!==L(N))T=!0,f(X);else{var b=L(O);null!==b&&g(W,b.startTime-a)}}
24064
+ function X(a,b){T=!1;U&&(U=!1,h());S=!0;var c=R;try{V(b);for(Q=L(N);null!==Q&&(!(Q.expirationTime>b)||a&&!k());){var d=Q.callback;if(null!==d){Q.callback=null;R=Q.priorityLevel;var e=d(Q.expirationTime<=b);b=exports.unstable_now();"function"===typeof e?Q.callback=e:Q===L(N)&&M(N);V(b)}else M(N);Q=L(N)}if(null!==Q)var m=!0;else{var n=L(O);null!==n&&g(W,n.startTime-b);m=!1}return m}finally{Q=null,R=c,S=!1}}
24065
+ function Y(a){switch(a){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1E4;default:return 5E3}}var Z=l;exports.unstable_ImmediatePriority=1;exports.unstable_UserBlockingPriority=2;exports.unstable_NormalPriority=3;exports.unstable_IdlePriority=5;exports.unstable_LowPriority=4;exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=R;R=a;try{return b()}finally{R=c}};
24066
+ exports.unstable_next=function(a){switch(R){case 1:case 2:case 3:var b=3;break;default:b=R}var c=R;R=b;try{return a()}finally{R=c}};
24067
+ exports.unstable_scheduleCallback=function(a,b,c){var d=exports.unstable_now();if("object"===typeof c&&null!==c){var e=c.delay;e="number"===typeof e&&0<e?d+e:d;c="number"===typeof c.timeout?c.timeout:Y(a)}else c=Y(a),e=d;c=e+c;a={id:P++,callback:b,priorityLevel:a,startTime:e,expirationTime:c,sortIndex:-1};e>d?(a.sortIndex=e,J(O,a),null===L(N)&&a===L(O)&&(U?h():U=!0,g(W,e-d))):(a.sortIndex=c,J(N,a),T||S||(T=!0,f(X)));return a};exports.unstable_cancelCallback=function(a){a.callback=null};
24068
+ exports.unstable_wrapCallback=function(a){var b=R;return function(){var c=R;R=b;try{return a.apply(this,arguments)}finally{R=c}}};exports.unstable_getCurrentPriorityLevel=function(){return R};exports.unstable_shouldYield=function(){var a=exports.unstable_now();V(a);var b=L(N);return b!==Q&&null!==Q&&null!==b&&null!==b.callback&&b.startTime<=a&&b.expirationTime<Q.expirationTime||k()};exports.unstable_requestPaint=Z;exports.unstable_continueExecution=function(){T||S||(T=!0,f(X))};
24069
+ exports.unstable_pauseExecution=function(){};exports.unstable_getFirstCallbackNode=function(){return L(N)};exports.unstable_Profiling=null;
24070
+
24071
+
24072
+ /***/ }),
24073
+ /* 303 */
24074
+ /***/ (function(module, exports, __webpack_require__) {
24075
+
24076
+ "use strict";
24077
+ /* WEBPACK VAR INJECTION */(function(process) {/** @license React v0.18.0
24078
+ * scheduler.development.js
24079
+ *
24080
+ * Copyright (c) Facebook, Inc. and its affiliates.
24081
+ *
24082
+ * This source code is licensed under the MIT license found in the
24083
+ * LICENSE file in the root directory of this source tree.
24084
+ */
24085
+
24086
+
24087
+
24088
+
24089
+
24090
+ if (process.env.NODE_ENV !== "production") {
24091
+ (function() {
24092
+ 'use strict';
24093
+
24094
+ Object.defineProperty(exports, '__esModule', { value: true });
24095
+
24096
+ var enableSchedulerDebugging = false;
24097
+ var enableIsInputPending = false;
24098
+ var enableProfiling = true;
24099
+
24100
+ var requestHostCallback;
24101
+
24102
+ var requestHostTimeout;
24103
+ var cancelHostTimeout;
24104
+ var shouldYieldToHost;
24105
+ var requestPaint;
24106
+
24107
+
24108
+
24109
+ if ( // If Scheduler runs in a non-DOM environment, it falls back to a naive
24110
+ // implementation using setTimeout.
24111
+ typeof window === 'undefined' || // Check if MessageChannel is supported, too.
24112
+ typeof MessageChannel !== 'function') {
24113
+ // If this accidentally gets imported in a non-browser environment, e.g. JavaScriptCore,
24114
+ // fallback to a naive implementation.
24115
+ var _callback = null;
24116
+ var _timeoutID = null;
24117
+
24118
+ var _flushCallback = function () {
24119
+ if (_callback !== null) {
24120
+ try {
24121
+ var currentTime = exports.unstable_now();
24122
+ var hasRemainingTime = true;
24123
+
24124
+ _callback(hasRemainingTime, currentTime);
24125
+
24126
+ _callback = null;
24127
+ } catch (e) {
24128
+ setTimeout(_flushCallback, 0);
24129
+ throw e;
24130
+ }
24131
+ }
24132
+ };
24133
+
24134
+ var initialTime = Date.now();
24135
+
24136
+ exports.unstable_now = function () {
24137
+ return Date.now() - initialTime;
24138
+ };
24139
+
24140
+ requestHostCallback = function (cb) {
24141
+ if (_callback !== null) {
24142
+ // Protect against re-entrancy.
24143
+ setTimeout(requestHostCallback, 0, cb);
24144
+ } else {
24145
+ _callback = cb;
24146
+ setTimeout(_flushCallback, 0);
24147
+ }
24148
+ };
24149
+
24150
+ requestHostTimeout = function (cb, ms) {
24151
+ _timeoutID = setTimeout(cb, ms);
24152
+ };
24153
+
24154
+ cancelHostTimeout = function () {
24155
+ clearTimeout(_timeoutID);
24156
+ };
24157
+
24158
+ shouldYieldToHost = function () {
24159
+ return false;
24160
+ };
24161
+
24162
+ requestPaint = exports.unstable_forceFrameRate = function () {};
24163
+ } else {
24164
+ // Capture local references to native APIs, in case a polyfill overrides them.
24165
+ var performance = window.performance;
24166
+ var _Date = window.Date;
24167
+ var _setTimeout = window.setTimeout;
24168
+ var _clearTimeout = window.clearTimeout;
24169
+
24170
+ if (typeof console !== 'undefined') {
24171
+ // TODO: Scheduler no longer requires these methods to be polyfilled. But
24172
+ // maybe we want to continue warning if they don't exist, to preserve the
24173
+ // option to rely on it in the future?
24174
+ var requestAnimationFrame = window.requestAnimationFrame;
24175
+ var cancelAnimationFrame = window.cancelAnimationFrame; // TODO: Remove fb.me link
24176
+
24177
+ if (typeof requestAnimationFrame !== 'function') {
24178
+ console.error("This browser doesn't support requestAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
24179
+ }
24180
+
24181
+ if (typeof cancelAnimationFrame !== 'function') {
24182
+ console.error("This browser doesn't support cancelAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
24183
+ }
24184
+ }
24185
+
24186
+ if (typeof performance === 'object' && typeof performance.now === 'function') {
24187
+ exports.unstable_now = function () {
24188
+ return performance.now();
24189
+ };
24190
+ } else {
24191
+ var _initialTime = _Date.now();
24192
+
24193
+ exports.unstable_now = function () {
24194
+ return _Date.now() - _initialTime;
24195
+ };
24196
+ }
24197
+
24198
+ var isMessageLoopRunning = false;
24199
+ var scheduledHostCallback = null;
24200
+ var taskTimeoutID = -1; // Scheduler periodically yields in case there is other work on the main
24201
+ // thread, like user events. By default, it yields multiple times per frame.
24202
+ // It does not attempt to align with frame boundaries, since most tasks don't
24203
+ // need to be frame aligned; for those that do, use requestAnimationFrame.
24204
+
24205
+ var yieldInterval = 5;
24206
+ var deadline = 0; // TODO: Make this configurable
24207
+ // TODO: Adjust this based on priority?
24208
+
24209
+ var maxYieldInterval = 300;
24210
+ var needsPaint = false;
24211
+
24212
+ if (enableIsInputPending && navigator !== undefined && navigator.scheduling !== undefined && navigator.scheduling.isInputPending !== undefined) {
24213
+ var scheduling = navigator.scheduling;
24214
+
24215
+ shouldYieldToHost = function () {
24216
+ var currentTime = exports.unstable_now();
24217
+
24218
+ if (currentTime >= deadline) {
24219
+ // There's no time left. We may want to yield control of the main
24220
+ // thread, so the browser can perform high priority tasks. The main ones
24221
+ // are painting and user input. If there's a pending paint or a pending
24222
+ // input, then we should yield. But if there's neither, then we can
24223
+ // yield less often while remaining responsive. We'll eventually yield
24224
+ // regardless, since there could be a pending paint that wasn't
24225
+ // accompanied by a call to `requestPaint`, or other main thread tasks
24226
+ // like network events.
24227
+ if (needsPaint || scheduling.isInputPending()) {
24228
+ // There is either a pending paint or a pending input.
24229
+ return true;
24230
+ } // There's no pending input. Only yield if we've reached the max
24231
+ // yield interval.
24232
+
24233
+
24234
+ return currentTime >= maxYieldInterval;
24235
+ } else {
24236
+ // There's still time left in the frame.
24237
+ return false;
24238
+ }
24239
+ };
24240
+
24241
+ requestPaint = function () {
24242
+ needsPaint = true;
24243
+ };
24244
+ } else {
24245
+ // `isInputPending` is not available. Since we have no way of knowing if
24246
+ // there's pending input, always yield at the end of the frame.
24247
+ shouldYieldToHost = function () {
24248
+ return exports.unstable_now() >= deadline;
24249
+ }; // Since we yield every frame regardless, `requestPaint` has no effect.
24250
+
24251
+
24252
+ requestPaint = function () {};
24253
+ }
24254
+
24255
+ exports.unstable_forceFrameRate = function (fps) {
24256
+ if (fps < 0 || fps > 125) {
24257
+ console.error('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing framerates higher than 125 fps is not unsupported');
24258
+ return;
24259
+ }
24260
+
24261
+ if (fps > 0) {
24262
+ yieldInterval = Math.floor(1000 / fps);
24263
+ } else {
24264
+ // reset the framerate
24265
+ yieldInterval = 5;
24266
+ }
24267
+ };
24268
+
24269
+ var performWorkUntilDeadline = function () {
24270
+ if (scheduledHostCallback !== null) {
24271
+ var currentTime = exports.unstable_now(); // Yield after `yieldInterval` ms, regardless of where we are in the vsync
24272
+ // cycle. This means there's always time remaining at the beginning of
24273
+ // the message event.
24274
+
24275
+ deadline = currentTime + yieldInterval;
24276
+ var hasTimeRemaining = true;
24277
+
24278
+ try {
24279
+ var hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);
24280
+
24281
+ if (!hasMoreWork) {
24282
+ isMessageLoopRunning = false;
24283
+ scheduledHostCallback = null;
24284
+ } else {
24285
+ // If there's more work, schedule the next message event at the end
24286
+ // of the preceding one.
24287
+ port.postMessage(null);
24288
+ }
24289
+ } catch (error) {
24290
+ // If a scheduler task throws, exit the current browser task so the
24291
+ // error can be observed.
24292
+ port.postMessage(null);
24293
+ throw error;
24294
+ }
24295
+ } else {
24296
+ isMessageLoopRunning = false;
24297
+ } // Yielding to the browser will give it a chance to paint, so we can
24298
+ // reset this.
24299
+
24300
+
24301
+ needsPaint = false;
24302
+ };
24303
+
24304
+ var channel = new MessageChannel();
24305
+ var port = channel.port2;
24306
+ channel.port1.onmessage = performWorkUntilDeadline;
24307
+
24308
+ requestHostCallback = function (callback) {
24309
+ scheduledHostCallback = callback;
24310
+
24311
+ if (!isMessageLoopRunning) {
24312
+ isMessageLoopRunning = true;
24313
+ port.postMessage(null);
24314
+ }
24315
+ };
24316
+
24317
+ requestHostTimeout = function (callback, ms) {
24318
+ taskTimeoutID = _setTimeout(function () {
24319
+ callback(exports.unstable_now());
24320
+ }, ms);
24321
+ };
24322
+
24323
+ cancelHostTimeout = function () {
24324
+ _clearTimeout(taskTimeoutID);
24325
+
24326
+ taskTimeoutID = -1;
24327
+ };
24328
+ }
24329
+
24330
+ function push(heap, node) {
24331
+ var index = heap.length;
24332
+ heap.push(node);
24333
+ siftUp(heap, node, index);
24334
+ }
24335
+ function peek(heap) {
24336
+ var first = heap[0];
24337
+ return first === undefined ? null : first;
24338
+ }
24339
+ function pop(heap) {
24340
+ var first = heap[0];
24341
+
24342
+ if (first !== undefined) {
24343
+ var last = heap.pop();
24344
+
24345
+ if (last !== first) {
24346
+ heap[0] = last;
24347
+ siftDown(heap, last, 0);
24348
+ }
24349
+
24350
+ return first;
24351
+ } else {
24352
+ return null;
24353
+ }
24354
+ }
24355
+
24356
+ function siftUp(heap, node, i) {
24357
+ var index = i;
24358
+
24359
+ while (true) {
24360
+ var parentIndex = Math.floor((index - 1) / 2);
24361
+ var parent = heap[parentIndex];
24362
+
24363
+ if (parent !== undefined && compare(parent, node) > 0) {
24364
+ // The parent is larger. Swap positions.
24365
+ heap[parentIndex] = node;
24366
+ heap[index] = parent;
24367
+ index = parentIndex;
24368
+ } else {
24369
+ // The parent is smaller. Exit.
24370
+ return;
24371
+ }
24372
+ }
24373
+ }
24374
+
24375
+ function siftDown(heap, node, i) {
24376
+ var index = i;
24377
+ var length = heap.length;
24378
+
24379
+ while (index < length) {
24380
+ var leftIndex = (index + 1) * 2 - 1;
24381
+ var left = heap[leftIndex];
24382
+ var rightIndex = leftIndex + 1;
24383
+ var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those.
24384
+
24385
+ if (left !== undefined && compare(left, node) < 0) {
24386
+ if (right !== undefined && compare(right, left) < 0) {
24387
+ heap[index] = right;
24388
+ heap[rightIndex] = node;
24389
+ index = rightIndex;
24390
+ } else {
24391
+ heap[index] = left;
24392
+ heap[leftIndex] = node;
24393
+ index = leftIndex;
24394
+ }
24395
+ } else if (right !== undefined && compare(right, node) < 0) {
24396
+ heap[index] = right;
24397
+ heap[rightIndex] = node;
24398
+ index = rightIndex;
24399
+ } else {
24400
+ // Neither child is smaller. Exit.
24401
+ return;
24402
+ }
24403
+ }
24404
+ }
24405
+
24406
+ function compare(a, b) {
24407
+ // Compare sort index first, then task id.
24408
+ var diff = a.sortIndex - b.sortIndex;
24409
+ return diff !== 0 ? diff : a.id - b.id;
24410
+ }
24411
+
24412
+ // TODO: Use symbols?
24413
+ var NoPriority = 0;
24414
+ var ImmediatePriority = 1;
24415
+ var UserBlockingPriority = 2;
24416
+ var NormalPriority = 3;
24417
+ var LowPriority = 4;
24418
+ var IdlePriority = 5;
24419
+
24420
+ var runIdCounter = 0;
24421
+ var mainThreadIdCounter = 0;
24422
+ var profilingStateSize = 4;
24423
+ var sharedProfilingBuffer = enableProfiling ? // $FlowFixMe Flow doesn't know about SharedArrayBuffer
24424
+ typeof SharedArrayBuffer === 'function' ? new SharedArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT) : // $FlowFixMe Flow doesn't know about ArrayBuffer
24425
+ typeof ArrayBuffer === 'function' ? new ArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT) : null // Don't crash the init path on IE9
24426
+ : null;
24427
+ var profilingState = enableProfiling && sharedProfilingBuffer !== null ? new Int32Array(sharedProfilingBuffer) : []; // We can't read this but it helps save bytes for null checks
24428
+
24429
+ var PRIORITY = 0;
24430
+ var CURRENT_TASK_ID = 1;
24431
+ var CURRENT_RUN_ID = 2;
24432
+ var QUEUE_SIZE = 3;
24433
+
24434
+ if (enableProfiling) {
24435
+ profilingState[PRIORITY] = NoPriority; // This is maintained with a counter, because the size of the priority queue
24436
+ // array might include canceled tasks.
24437
+
24438
+ profilingState[QUEUE_SIZE] = 0;
24439
+ profilingState[CURRENT_TASK_ID] = 0;
24440
+ } // Bytes per element is 4
24441
+
24442
+
24443
+ var INITIAL_EVENT_LOG_SIZE = 131072;
24444
+ var MAX_EVENT_LOG_SIZE = 524288; // Equivalent to 2 megabytes
24445
+
24446
+ var eventLogSize = 0;
24447
+ var eventLogBuffer = null;
24448
+ var eventLog = null;
24449
+ var eventLogIndex = 0;
24450
+ var TaskStartEvent = 1;
24451
+ var TaskCompleteEvent = 2;
24452
+ var TaskErrorEvent = 3;
24453
+ var TaskCancelEvent = 4;
24454
+ var TaskRunEvent = 5;
24455
+ var TaskYieldEvent = 6;
24456
+ var SchedulerSuspendEvent = 7;
24457
+ var SchedulerResumeEvent = 8;
24458
+
24459
+ function logEvent(entries) {
24460
+ if (eventLog !== null) {
24461
+ var offset = eventLogIndex;
24462
+ eventLogIndex += entries.length;
24463
+
24464
+ if (eventLogIndex + 1 > eventLogSize) {
24465
+ eventLogSize *= 2;
24466
+
24467
+ if (eventLogSize > MAX_EVENT_LOG_SIZE) {
24468
+ console.error("Scheduler Profiling: Event log exceeded maximum size. Don't " + 'forget to call `stopLoggingProfilingEvents()`.');
24469
+ stopLoggingProfilingEvents();
24470
+ return;
24471
+ }
24472
+
24473
+ var newEventLog = new Int32Array(eventLogSize * 4);
24474
+ newEventLog.set(eventLog);
24475
+ eventLogBuffer = newEventLog.buffer;
24476
+ eventLog = newEventLog;
24477
+ }
24478
+
24479
+ eventLog.set(entries, offset);
24480
+ }
24481
+ }
24482
+
24483
+ function startLoggingProfilingEvents() {
24484
+ eventLogSize = INITIAL_EVENT_LOG_SIZE;
24485
+ eventLogBuffer = new ArrayBuffer(eventLogSize * 4);
24486
+ eventLog = new Int32Array(eventLogBuffer);
24487
+ eventLogIndex = 0;
24488
+ }
24489
+ function stopLoggingProfilingEvents() {
24490
+ var buffer = eventLogBuffer;
24491
+ eventLogSize = 0;
24492
+ eventLogBuffer = null;
24493
+ eventLog = null;
24494
+ eventLogIndex = 0;
24495
+ return buffer;
24496
+ }
24497
+ function markTaskStart(task, ms) {
24498
+ if (enableProfiling) {
24499
+ profilingState[QUEUE_SIZE]++;
24500
+
24501
+ if (eventLog !== null) {
24502
+ // performance.now returns a float, representing milliseconds. When the
24503
+ // event is logged, it's coerced to an int. Convert to microseconds to
24504
+ // maintain extra degrees of precision.
24505
+ logEvent([TaskStartEvent, ms * 1000, task.id, task.priorityLevel]);
24506
+ }
24507
+ }
24508
+ }
24509
+ function markTaskCompleted(task, ms) {
24510
+ if (enableProfiling) {
24511
+ profilingState[PRIORITY] = NoPriority;
24512
+ profilingState[CURRENT_TASK_ID] = 0;
24513
+ profilingState[QUEUE_SIZE]--;
24514
+
24515
+ if (eventLog !== null) {
24516
+ logEvent([TaskCompleteEvent, ms * 1000, task.id]);
24517
+ }
24518
+ }
24519
+ }
24520
+ function markTaskCanceled(task, ms) {
24521
+ if (enableProfiling) {
24522
+ profilingState[QUEUE_SIZE]--;
24523
+
24524
+ if (eventLog !== null) {
24525
+ logEvent([TaskCancelEvent, ms * 1000, task.id]);
24526
+ }
24527
+ }
24528
+ }
24529
+ function markTaskErrored(task, ms) {
24530
+ if (enableProfiling) {
24531
+ profilingState[PRIORITY] = NoPriority;
24532
+ profilingState[CURRENT_TASK_ID] = 0;
24533
+ profilingState[QUEUE_SIZE]--;
24534
+
24535
+ if (eventLog !== null) {
24536
+ logEvent([TaskErrorEvent, ms * 1000, task.id]);
24537
+ }
24538
+ }
24539
+ }
24540
+ function markTaskRun(task, ms) {
24541
+ if (enableProfiling) {
24542
+ runIdCounter++;
24543
+ profilingState[PRIORITY] = task.priorityLevel;
24544
+ profilingState[CURRENT_TASK_ID] = task.id;
24545
+ profilingState[CURRENT_RUN_ID] = runIdCounter;
24546
+
24547
+ if (eventLog !== null) {
24548
+ logEvent([TaskRunEvent, ms * 1000, task.id, runIdCounter]);
24549
+ }
24550
+ }
24551
+ }
24552
+ function markTaskYield(task, ms) {
24553
+ if (enableProfiling) {
24554
+ profilingState[PRIORITY] = NoPriority;
24555
+ profilingState[CURRENT_TASK_ID] = 0;
24556
+ profilingState[CURRENT_RUN_ID] = 0;
24557
+
24558
+ if (eventLog !== null) {
24559
+ logEvent([TaskYieldEvent, ms * 1000, task.id, runIdCounter]);
24560
+ }
24561
+ }
24562
+ }
24563
+ function markSchedulerSuspended(ms) {
24564
+ if (enableProfiling) {
24565
+ mainThreadIdCounter++;
24566
+
24567
+ if (eventLog !== null) {
24568
+ logEvent([SchedulerSuspendEvent, ms * 1000, mainThreadIdCounter]);
24569
+ }
24570
+ }
24571
+ }
24572
+ function markSchedulerUnsuspended(ms) {
24573
+ if (enableProfiling) {
24574
+ if (eventLog !== null) {
24575
+ logEvent([SchedulerResumeEvent, ms * 1000, mainThreadIdCounter]);
24576
+ }
24577
+ }
24578
+ }
24579
+
24580
+ /* eslint-disable no-var */
24581
+ // Math.pow(2, 30) - 1
24582
+ // 0b111111111111111111111111111111
24583
+
24584
+ var maxSigned31BitInt = 1073741823; // Times out immediately
24585
+
24586
+ var IMMEDIATE_PRIORITY_TIMEOUT = -1; // Eventually times out
24587
+
24588
+ var USER_BLOCKING_PRIORITY = 250;
24589
+ var NORMAL_PRIORITY_TIMEOUT = 5000;
24590
+ var LOW_PRIORITY_TIMEOUT = 10000; // Never times out
24591
+
24592
+ var IDLE_PRIORITY = maxSigned31BitInt; // Tasks are stored on a min heap
24593
+
24594
+ var taskQueue = [];
24595
+ var timerQueue = []; // Incrementing id counter. Used to maintain insertion order.
24596
+
24597
+ var taskIdCounter = 1; // Pausing the scheduler is useful for debugging.
24598
+
24599
+ var isSchedulerPaused = false;
24600
+ var currentTask = null;
24601
+ var currentPriorityLevel = NormalPriority; // This is set while performing work, to prevent re-entrancy.
24602
+
24603
+ var isPerformingWork = false;
24604
+ var isHostCallbackScheduled = false;
24605
+ var isHostTimeoutScheduled = false;
24606
+
24607
+ function advanceTimers(currentTime) {
24608
+ // Check for tasks that are no longer delayed and add them to the queue.
24609
+ var timer = peek(timerQueue);
24610
+
24611
+ while (timer !== null) {
24612
+ if (timer.callback === null) {
24613
+ // Timer was cancelled.
24614
+ pop(timerQueue);
24615
+ } else if (timer.startTime <= currentTime) {
24616
+ // Timer fired. Transfer to the task queue.
24617
+ pop(timerQueue);
24618
+ timer.sortIndex = timer.expirationTime;
24619
+ push(taskQueue, timer);
24620
+
24621
+ if (enableProfiling) {
24622
+ markTaskStart(timer, currentTime);
24623
+ timer.isQueued = true;
24624
+ }
24625
+ } else {
24626
+ // Remaining timers are pending.
24627
+ return;
24628
+ }
24629
+
24630
+ timer = peek(timerQueue);
24631
+ }
24632
+ }
24633
+
24634
+ function handleTimeout(currentTime) {
24635
+ isHostTimeoutScheduled = false;
24636
+ advanceTimers(currentTime);
24637
+
24638
+ if (!isHostCallbackScheduled) {
24639
+ if (peek(taskQueue) !== null) {
24640
+ isHostCallbackScheduled = true;
24641
+ requestHostCallback(flushWork);
24642
+ } else {
24643
+ var firstTimer = peek(timerQueue);
24644
+
24645
+ if (firstTimer !== null) {
24646
+ requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
24647
+ }
24648
+ }
24649
+ }
24650
+ }
24651
+
24652
+ function flushWork(hasTimeRemaining, initialTime) {
24653
+ if (enableProfiling) {
24654
+ markSchedulerUnsuspended(initialTime);
24655
+ } // We'll need a host callback the next time work is scheduled.
24656
+
24657
+
24658
+ isHostCallbackScheduled = false;
24659
+
24660
+ if (isHostTimeoutScheduled) {
24661
+ // We scheduled a timeout but it's no longer needed. Cancel it.
24662
+ isHostTimeoutScheduled = false;
24663
+ cancelHostTimeout();
24664
+ }
24665
+
24666
+ isPerformingWork = true;
24667
+ var previousPriorityLevel = currentPriorityLevel;
24668
+
24669
+ try {
24670
+ if (enableProfiling) {
24671
+ try {
24672
+ return workLoop(hasTimeRemaining, initialTime);
24673
+ } catch (error) {
24674
+ if (currentTask !== null) {
24675
+ var currentTime = exports.unstable_now();
24676
+ markTaskErrored(currentTask, currentTime);
24677
+ currentTask.isQueued = false;
24678
+ }
24679
+
24680
+ throw error;
24681
+ }
24682
+ } else {
24683
+ // No catch in prod codepath.
24684
+ return workLoop(hasTimeRemaining, initialTime);
24685
+ }
24686
+ } finally {
24687
+ currentTask = null;
24688
+ currentPriorityLevel = previousPriorityLevel;
24689
+ isPerformingWork = false;
24690
+
24691
+ if (enableProfiling) {
24692
+ var _currentTime = exports.unstable_now();
24693
+
24694
+ markSchedulerSuspended(_currentTime);
24695
+ }
24696
+ }
24697
+ }
24698
+
24699
+ function workLoop(hasTimeRemaining, initialTime) {
24700
+ var currentTime = initialTime;
24701
+ advanceTimers(currentTime);
24702
+ currentTask = peek(taskQueue);
24703
+
24704
+ while (currentTask !== null && !(enableSchedulerDebugging && isSchedulerPaused)) {
24705
+ if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) {
24706
+ // This currentTask hasn't expired, and we've reached the deadline.
24707
+ break;
24708
+ }
24709
+
24710
+ var callback = currentTask.callback;
24711
+
24712
+ if (callback !== null) {
24713
+ currentTask.callback = null;
24714
+ currentPriorityLevel = currentTask.priorityLevel;
24715
+ var didUserCallbackTimeout = currentTask.expirationTime <= currentTime;
24716
+ markTaskRun(currentTask, currentTime);
24717
+ var continuationCallback = callback(didUserCallbackTimeout);
24718
+ currentTime = exports.unstable_now();
24719
+
24720
+ if (typeof continuationCallback === 'function') {
24721
+ currentTask.callback = continuationCallback;
24722
+ markTaskYield(currentTask, currentTime);
24723
+ } else {
24724
+ if (enableProfiling) {
24725
+ markTaskCompleted(currentTask, currentTime);
24726
+ currentTask.isQueued = false;
24727
+ }
24728
+
24729
+ if (currentTask === peek(taskQueue)) {
24730
+ pop(taskQueue);
24731
+ }
24732
+ }
24733
+
24734
+ advanceTimers(currentTime);
24735
+ } else {
24736
+ pop(taskQueue);
24737
+ }
24738
+
24739
+ currentTask = peek(taskQueue);
24740
+ } // Return whether there's additional work
24741
+
24742
+
24743
+ if (currentTask !== null) {
24744
+ return true;
24745
+ } else {
24746
+ var firstTimer = peek(timerQueue);
24747
+
24748
+ if (firstTimer !== null) {
24749
+ requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);
24750
+ }
24751
+
24752
+ return false;
24753
+ }
24754
+ }
24755
+
24756
+ function unstable_runWithPriority(priorityLevel, eventHandler) {
24757
+ switch (priorityLevel) {
24758
+ case ImmediatePriority:
24759
+ case UserBlockingPriority:
24760
+ case NormalPriority:
24761
+ case LowPriority:
24762
+ case IdlePriority:
24763
+ break;
24764
+
24765
+ default:
24766
+ priorityLevel = NormalPriority;
24767
+ }
24768
+
24769
+ var previousPriorityLevel = currentPriorityLevel;
24770
+ currentPriorityLevel = priorityLevel;
24771
+
24772
+ try {
24773
+ return eventHandler();
24774
+ } finally {
24775
+ currentPriorityLevel = previousPriorityLevel;
24776
+ }
24777
+ }
24778
+
24779
+ function unstable_next(eventHandler) {
24780
+ var priorityLevel;
24781
+
24782
+ switch (currentPriorityLevel) {
24783
+ case ImmediatePriority:
24784
+ case UserBlockingPriority:
24785
+ case NormalPriority:
24786
+ // Shift down to normal priority
24787
+ priorityLevel = NormalPriority;
24788
+ break;
24789
+
24790
+ default:
24791
+ // Anything lower than normal priority should remain at the current level.
24792
+ priorityLevel = currentPriorityLevel;
24793
+ break;
24794
+ }
24795
+
24796
+ var previousPriorityLevel = currentPriorityLevel;
24797
+ currentPriorityLevel = priorityLevel;
24798
+
24799
+ try {
24800
+ return eventHandler();
24801
+ } finally {
24802
+ currentPriorityLevel = previousPriorityLevel;
24803
+ }
24804
+ }
24805
+
24806
+ function unstable_wrapCallback(callback) {
24807
+ var parentPriorityLevel = currentPriorityLevel;
24808
+ return function () {
24809
+ // This is a fork of runWithPriority, inlined for performance.
24810
+ var previousPriorityLevel = currentPriorityLevel;
24811
+ currentPriorityLevel = parentPriorityLevel;
24812
+
24813
+ try {
24814
+ return callback.apply(this, arguments);
24815
+ } finally {
24816
+ currentPriorityLevel = previousPriorityLevel;
24817
+ }
24818
+ };
24819
+ }
24820
+
24821
+ function timeoutForPriorityLevel(priorityLevel) {
24822
+ switch (priorityLevel) {
24823
+ case ImmediatePriority:
24824
+ return IMMEDIATE_PRIORITY_TIMEOUT;
24825
+
24826
+ case UserBlockingPriority:
24827
+ return USER_BLOCKING_PRIORITY;
24828
+
24829
+ case IdlePriority:
24830
+ return IDLE_PRIORITY;
24831
+
24832
+ case LowPriority:
24833
+ return LOW_PRIORITY_TIMEOUT;
24834
+
24835
+ case NormalPriority:
24836
+ default:
24837
+ return NORMAL_PRIORITY_TIMEOUT;
24838
+ }
24839
+ }
24840
+
24841
+ function unstable_scheduleCallback(priorityLevel, callback, options) {
24842
+ var currentTime = exports.unstable_now();
24843
+ var startTime;
24844
+ var timeout;
24845
+
24846
+ if (typeof options === 'object' && options !== null) {
24847
+ var delay = options.delay;
24848
+
24849
+ if (typeof delay === 'number' && delay > 0) {
24850
+ startTime = currentTime + delay;
24851
+ } else {
24852
+ startTime = currentTime;
24853
+ }
24854
+
24855
+ timeout = typeof options.timeout === 'number' ? options.timeout : timeoutForPriorityLevel(priorityLevel);
24856
+ } else {
24857
+ timeout = timeoutForPriorityLevel(priorityLevel);
24858
+ startTime = currentTime;
24859
+ }
24860
+
24861
+ var expirationTime = startTime + timeout;
24862
+ var newTask = {
24863
+ id: taskIdCounter++,
24864
+ callback: callback,
24865
+ priorityLevel: priorityLevel,
24866
+ startTime: startTime,
24867
+ expirationTime: expirationTime,
24868
+ sortIndex: -1
24869
+ };
24870
+
24871
+ if (enableProfiling) {
24872
+ newTask.isQueued = false;
24873
+ }
24874
+
24875
+ if (startTime > currentTime) {
24876
+ // This is a delayed task.
24877
+ newTask.sortIndex = startTime;
24878
+ push(timerQueue, newTask);
24879
+
24880
+ if (peek(taskQueue) === null && newTask === peek(timerQueue)) {
24881
+ // All tasks are delayed, and this is the task with the earliest delay.
24882
+ if (isHostTimeoutScheduled) {
24883
+ // Cancel an existing timeout.
24884
+ cancelHostTimeout();
24885
+ } else {
24886
+ isHostTimeoutScheduled = true;
24887
+ } // Schedule a timeout.
24888
+
24889
+
24890
+ requestHostTimeout(handleTimeout, startTime - currentTime);
24891
+ }
24892
+ } else {
24893
+ newTask.sortIndex = expirationTime;
24894
+ push(taskQueue, newTask);
24895
+
24896
+ if (enableProfiling) {
24897
+ markTaskStart(newTask, currentTime);
24898
+ newTask.isQueued = true;
24899
+ } // Schedule a host callback, if needed. If we're already performing work,
24900
+ // wait until the next time we yield.
24901
+
24902
+
24903
+ if (!isHostCallbackScheduled && !isPerformingWork) {
24904
+ isHostCallbackScheduled = true;
24905
+ requestHostCallback(flushWork);
24906
+ }
24907
+ }
24908
+
24909
+ return newTask;
24910
+ }
24911
+
24912
+ function unstable_pauseExecution() {
24913
+ isSchedulerPaused = true;
24914
+ }
24915
+
24916
+ function unstable_continueExecution() {
24917
+ isSchedulerPaused = false;
24918
+
24919
+ if (!isHostCallbackScheduled && !isPerformingWork) {
24920
+ isHostCallbackScheduled = true;
24921
+ requestHostCallback(flushWork);
24922
+ }
24923
+ }
24924
+
24925
+ function unstable_getFirstCallbackNode() {
24926
+ return peek(taskQueue);
24927
+ }
24928
+
24929
+ function unstable_cancelCallback(task) {
24930
+ if (enableProfiling) {
24931
+ if (task.isQueued) {
24932
+ var currentTime = exports.unstable_now();
24933
+ markTaskCanceled(task, currentTime);
24934
+ task.isQueued = false;
24935
+ }
24936
+ } // Null out the callback to indicate the task has been canceled. (Can't
24937
+ // remove from the queue because you can't remove arbitrary nodes from an
24938
+ // array based heap, only the first one.)
24939
+
24940
+
24941
+ task.callback = null;
24942
+ }
24943
+
24944
+ function unstable_getCurrentPriorityLevel() {
24945
+ return currentPriorityLevel;
24946
+ }
24947
+
24948
+ function unstable_shouldYield() {
24949
+ var currentTime = exports.unstable_now();
24950
+ advanceTimers(currentTime);
24951
+ var firstTask = peek(taskQueue);
24952
+ return firstTask !== currentTask && currentTask !== null && firstTask !== null && firstTask.callback !== null && firstTask.startTime <= currentTime && firstTask.expirationTime < currentTask.expirationTime || shouldYieldToHost();
24953
+ }
24954
+
24955
+ var unstable_requestPaint = requestPaint;
24956
+ var unstable_Profiling = enableProfiling ? {
24957
+ startLoggingProfilingEvents: startLoggingProfilingEvents,
24958
+ stopLoggingProfilingEvents: stopLoggingProfilingEvents,
24959
+ sharedProfilingBuffer: sharedProfilingBuffer
24960
+ } : null;
24961
+
24962
+ exports.unstable_ImmediatePriority = ImmediatePriority;
24963
+ exports.unstable_UserBlockingPriority = UserBlockingPriority;
24964
+ exports.unstable_NormalPriority = NormalPriority;
24965
+ exports.unstable_IdlePriority = IdlePriority;
24966
+ exports.unstable_LowPriority = LowPriority;
24967
+ exports.unstable_runWithPriority = unstable_runWithPriority;
24968
+ exports.unstable_next = unstable_next;
24969
+ exports.unstable_scheduleCallback = unstable_scheduleCallback;
24970
+ exports.unstable_cancelCallback = unstable_cancelCallback;
24971
+ exports.unstable_wrapCallback = unstable_wrapCallback;
24972
+ exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
24973
+ exports.unstable_shouldYield = unstable_shouldYield;
24974
+ exports.unstable_requestPaint = unstable_requestPaint;
24975
+ exports.unstable_continueExecution = unstable_continueExecution;
24976
+ exports.unstable_pauseExecution = unstable_pauseExecution;
24977
+ exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;
24978
+ exports.unstable_Profiling = unstable_Profiling;
24979
+ })();
24980
+ }
24981
+
24982
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
24983
+
24984
+ /***/ }),
24985
+ /* 304 */
24986
+ /***/ (function(module, exports, __webpack_require__) {
24987
+
24988
+ "use strict";
24989
+ /* WEBPACK VAR INJECTION */(function(process) {/** @license React v16.12.0
24990
+ * react-dom.development.js
24991
+ *
24992
+ * Copyright (c) Facebook, Inc. and its affiliates.
24993
+ *
24994
+ * This source code is licensed under the MIT license found in the
24995
+ * LICENSE file in the root directory of this source tree.
24996
+ */
24997
+
24998
+
24999
+
25000
+
25001
+
25002
+ if (process.env.NODE_ENV !== "production") {
25003
+ (function() {
25004
+ 'use strict';
25005
+
25006
+ var React = __webpack_require__(0);
25007
+ var _assign = __webpack_require__(43);
25008
+ var Scheduler = __webpack_require__(134);
25009
+ var checkPropTypes = __webpack_require__(87);
25010
+ var tracing = __webpack_require__(305);
25011
+
25012
+ // Do not require this module directly! Use normal `invariant` calls with
25013
+ // template literal strings. The messages will be replaced with error codes
25014
+ // during build.
25015
+
25016
+ /**
25017
+ * Use invariant() to assert state which your program assumes to be true.
25018
+ *
25019
+ * Provide sprintf-style format (only %s is supported) and arguments
25020
+ * to provide information about what broke and what you were
25021
+ * expecting.
25022
+ *
25023
+ * The invariant message will be stripped in production, but the invariant
25024
+ * will remain to ensure logic does not differ in production.
25025
+ */
25026
+
25027
+ if (!React) {
25028
+ {
25029
+ throw Error("ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.");
25030
+ }
25031
+ }
25032
+
25033
+ /**
25034
+ * Injectable ordering of event plugins.
25035
+ */
25036
+ var eventPluginOrder = null;
25037
+ /**
25038
+ * Injectable mapping from names to event plugin modules.
25039
+ */
25040
+
25041
+ var namesToPlugins = {};
25042
+ /**
25043
+ * Recomputes the plugin list using the injected plugins and plugin ordering.
25044
+ *
25045
+ * @private
25046
+ */
25047
+
25048
+ function recomputePluginOrdering() {
25049
+ if (!eventPluginOrder) {
25050
+ // Wait until an `eventPluginOrder` is injected.
25051
+ return;
25052
+ }
25053
+
25054
+ for (var pluginName in namesToPlugins) {
25055
+ var pluginModule = namesToPlugins[pluginName];
25056
+ var pluginIndex = eventPluginOrder.indexOf(pluginName);
25057
+
25058
+ if (!(pluginIndex > -1)) {
25059
+ {
25060
+ throw Error("EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `" + pluginName + "`.");
25061
+ }
25062
+ }
25063
+
25064
+ if (plugins[pluginIndex]) {
25065
+ continue;
25066
+ }
25067
+
25068
+ if (!pluginModule.extractEvents) {
25069
+ {
25070
+ throw Error("EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `" + pluginName + "` does not.");
25071
+ }
25072
+ }
25073
+
25074
+ plugins[pluginIndex] = pluginModule;
25075
+ var publishedEvents = pluginModule.eventTypes;
25076
+
25077
+ for (var eventName in publishedEvents) {
25078
+ if (!publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName)) {
25079
+ {
25080
+ throw Error("EventPluginRegistry: Failed to publish event `" + eventName + "` for plugin `" + pluginName + "`.");
25081
+ }
25082
+ }
25083
+ }
25084
+ }
25085
+ }
25086
+ /**
25087
+ * Publishes an event so that it can be dispatched by the supplied plugin.
25088
+ *
25089
+ * @param {object} dispatchConfig Dispatch configuration for the event.
25090
+ * @param {object} PluginModule Plugin publishing the event.
25091
+ * @return {boolean} True if the event was successfully published.
25092
+ * @private
25093
+ */
25094
+
25095
+
25096
+ function publishEventForPlugin(dispatchConfig, pluginModule, eventName) {
25097
+ if (!!eventNameDispatchConfigs.hasOwnProperty(eventName)) {
25098
+ {
25099
+ throw Error("EventPluginHub: More than one plugin attempted to publish the same event name, `" + eventName + "`.");
25100
+ }
25101
+ }
25102
+
25103
+ eventNameDispatchConfigs[eventName] = dispatchConfig;
25104
+ var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
25105
+
25106
+ if (phasedRegistrationNames) {
25107
+ for (var phaseName in phasedRegistrationNames) {
25108
+ if (phasedRegistrationNames.hasOwnProperty(phaseName)) {
25109
+ var phasedRegistrationName = phasedRegistrationNames[phaseName];
25110
+ publishRegistrationName(phasedRegistrationName, pluginModule, eventName);
25111
+ }
25112
+ }
25113
+
25114
+ return true;
25115
+ } else if (dispatchConfig.registrationName) {
25116
+ publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);
25117
+ return true;
25118
+ }
25119
+
25120
+ return false;
25121
+ }
25122
+ /**
25123
+ * Publishes a registration name that is used to identify dispatched events.
25124
+ *
25125
+ * @param {string} registrationName Registration name to add.
25126
+ * @param {object} PluginModule Plugin publishing the event.
25127
+ * @private
25128
+ */
25129
+
25130
+
25131
+ function publishRegistrationName(registrationName, pluginModule, eventName) {
25132
+ if (!!registrationNameModules[registrationName]) {
25133
+ {
25134
+ throw Error("EventPluginHub: More than one plugin attempted to publish the same registration name, `" + registrationName + "`.");
25135
+ }
25136
+ }
25137
+
25138
+ registrationNameModules[registrationName] = pluginModule;
25139
+ registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies;
25140
+
25141
+ {
25142
+ var lowerCasedName = registrationName.toLowerCase();
25143
+ possibleRegistrationNames[lowerCasedName] = registrationName;
25144
+
25145
+ if (registrationName === 'onDoubleClick') {
25146
+ possibleRegistrationNames.ondblclick = registrationName;
25147
+ }
25148
+ }
25149
+ }
25150
+ /**
25151
+ * Registers plugins so that they can extract and dispatch events.
25152
+ *
25153
+ * @see {EventPluginHub}
25154
+ */
25155
+
25156
+ /**
25157
+ * Ordered list of injected plugins.
25158
+ */
25159
+
25160
+
25161
+ var plugins = [];
25162
+ /**
25163
+ * Mapping from event name to dispatch config
25164
+ */
25165
+
25166
+ var eventNameDispatchConfigs = {};
25167
+ /**
25168
+ * Mapping from registration name to plugin module
25169
+ */
25170
+
25171
+ var registrationNameModules = {};
25172
+ /**
25173
+ * Mapping from registration name to event name
25174
+ */
25175
+
25176
+ var registrationNameDependencies = {};
25177
+ /**
25178
+ * Mapping from lowercase registration names to the properly cased version,
25179
+ * used to warn in the case of missing event handlers. Available
25180
+ * only in true.
25181
+ * @type {Object}
25182
+ */
25183
+
25184
+ var possibleRegistrationNames = {}; // Trust the developer to only use possibleRegistrationNames in true
25185
+
25186
+ /**
25187
+ * Injects an ordering of plugins (by plugin name). This allows the ordering
25188
+ * to be decoupled from injection of the actual plugins so that ordering is
25189
+ * always deterministic regardless of packaging, on-the-fly injection, etc.
25190
+ *
25191
+ * @param {array} InjectedEventPluginOrder
25192
+ * @internal
25193
+ * @see {EventPluginHub.injection.injectEventPluginOrder}
25194
+ */
25195
+
25196
+ function injectEventPluginOrder(injectedEventPluginOrder) {
25197
+ if (!!eventPluginOrder) {
25198
+ {
25199
+ throw Error("EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.");
25200
+ }
25201
+ } // Clone the ordering so it cannot be dynamically mutated.
25202
+
25203
+
25204
+ eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);
25205
+ recomputePluginOrdering();
25206
+ }
25207
+ /**
25208
+ * Injects plugins to be used by `EventPluginHub`. The plugin names must be
25209
+ * in the ordering injected by `injectEventPluginOrder`.
25210
+ *
25211
+ * Plugins can be injected as part of page initialization or on-the-fly.
25212
+ *
25213
+ * @param {object} injectedNamesToPlugins Map from names to plugin modules.
25214
+ * @internal
25215
+ * @see {EventPluginHub.injection.injectEventPluginsByName}
25216
+ */
25217
+
25218
+ function injectEventPluginsByName(injectedNamesToPlugins) {
25219
+ var isOrderingDirty = false;
25220
+
25221
+ for (var pluginName in injectedNamesToPlugins) {
25222
+ if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {
25223
+ continue;
25224
+ }
25225
+
25226
+ var pluginModule = injectedNamesToPlugins[pluginName];
25227
+
25228
+ if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) {
25229
+ if (!!namesToPlugins[pluginName]) {
25230
+ {
25231
+ throw Error("EventPluginRegistry: Cannot inject two different event plugins using the same name, `" + pluginName + "`.");
25232
+ }
25233
+ }
25234
+
25235
+ namesToPlugins[pluginName] = pluginModule;
25236
+ isOrderingDirty = true;
25237
+ }
25238
+ }
25239
+
25240
+ if (isOrderingDirty) {
25241
+ recomputePluginOrdering();
25242
+ }
25243
+ }
25244
+
25245
+ var invokeGuardedCallbackImpl = function (name, func, context, a, b, c, d, e, f) {
25246
+ var funcArgs = Array.prototype.slice.call(arguments, 3);
25247
+
25248
+ try {
25249
+ func.apply(context, funcArgs);
25250
+ } catch (error) {
25251
+ this.onError(error);
25252
+ }
25253
+ };
25254
+
25255
+ {
25256
+ // In DEV mode, we swap out invokeGuardedCallback for a special version
25257
+ // that plays more nicely with the browser's DevTools. The idea is to preserve
25258
+ // "Pause on exceptions" behavior. Because React wraps all user-provided
25259
+ // functions in invokeGuardedCallback, and the production version of
25260
+ // invokeGuardedCallback uses a try-catch, all user exceptions are treated
25261
+ // like caught exceptions, and the DevTools won't pause unless the developer
25262
+ // takes the extra step of enabling pause on caught exceptions. This is
25263
+ // unintuitive, though, because even though React has caught the error, from
25264
+ // the developer's perspective, the error is uncaught.
25265
+ //
25266
+ // To preserve the expected "Pause on exceptions" behavior, we don't use a
25267
+ // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake
25268
+ // DOM node, and call the user-provided callback from inside an event handler
25269
+ // for that fake event. If the callback throws, the error is "captured" using
25270
+ // a global event handler. But because the error happens in a different
25271
+ // event loop context, it does not interrupt the normal program flow.
25272
+ // Effectively, this gives us try-catch behavior without actually using
25273
+ // try-catch. Neat!
25274
+ // Check that the browser supports the APIs we need to implement our special
25275
+ // DEV version of invokeGuardedCallback
25276
+ if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {
25277
+ var fakeNode = document.createElement('react');
25278
+
25279
+ var invokeGuardedCallbackDev = function (name, func, context, a, b, c, d, e, f) {
25280
+ // If document doesn't exist we know for sure we will crash in this method
25281
+ // when we call document.createEvent(). However this can cause confusing
25282
+ // errors: https://github.com/facebookincubator/create-react-app/issues/3482
25283
+ // So we preemptively throw with a better message instead.
25284
+ if (!(typeof document !== 'undefined')) {
25285
+ {
25286
+ throw Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");
25287
+ }
25288
+ }
25289
+
25290
+ var evt = document.createEvent('Event'); // Keeps track of whether the user-provided callback threw an error. We
25291
+ // set this to true at the beginning, then set it to false right after
25292
+ // calling the function. If the function errors, `didError` will never be
25293
+ // set to false. This strategy works even if the browser is flaky and
25294
+ // fails to call our global error handler, because it doesn't rely on
25295
+ // the error event at all.
25296
+
25297
+ var didError = true; // Keeps track of the value of window.event so that we can reset it
25298
+ // during the callback to let user code access window.event in the
25299
+ // browsers that support it.
25300
+
25301
+ var windowEvent = window.event; // Keeps track of the descriptor of window.event to restore it after event
25302
+ // dispatching: https://github.com/facebook/react/issues/13688
25303
+
25304
+ var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event'); // Create an event handler for our fake event. We will synchronously
25305
+ // dispatch our fake event using `dispatchEvent`. Inside the handler, we
25306
+ // call the user-provided callback.
25307
+
25308
+ var funcArgs = Array.prototype.slice.call(arguments, 3);
25309
+
25310
+ function callCallback() {
25311
+ // We immediately remove the callback from event listeners so that
25312
+ // nested `invokeGuardedCallback` calls do not clash. Otherwise, a
25313
+ // nested call would trigger the fake event handlers of any call higher
25314
+ // in the stack.
25315
+ fakeNode.removeEventListener(evtType, callCallback, false); // We check for window.hasOwnProperty('event') to prevent the
25316
+ // window.event assignment in both IE <= 10 as they throw an error
25317
+ // "Member not found" in strict mode, and in Firefox which does not
25318
+ // support window.event.
25319
+
25320
+ if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) {
25321
+ window.event = windowEvent;
25322
+ }
25323
+
25324
+ func.apply(context, funcArgs);
25325
+ didError = false;
25326
+ } // Create a global error event handler. We use this to capture the value
25327
+ // that was thrown. It's possible that this error handler will fire more
25328
+ // than once; for example, if non-React code also calls `dispatchEvent`
25329
+ // and a handler for that event throws. We should be resilient to most of
25330
+ // those cases. Even if our error event handler fires more than once, the
25331
+ // last error event is always used. If the callback actually does error,
25332
+ // we know that the last error event is the correct one, because it's not
25333
+ // possible for anything else to have happened in between our callback
25334
+ // erroring and the code that follows the `dispatchEvent` call below. If
25335
+ // the callback doesn't error, but the error event was fired, we know to
25336
+ // ignore it because `didError` will be false, as described above.
25337
+
25338
+
25339
+ var error; // Use this to track whether the error event is ever called.
25340
+
25341
+ var didSetError = false;
25342
+ var isCrossOriginError = false;
25343
+
25344
+ function handleWindowError(event) {
25345
+ error = event.error;
25346
+ didSetError = true;
25347
+
25348
+ if (error === null && event.colno === 0 && event.lineno === 0) {
25349
+ isCrossOriginError = true;
25350
+ }
25351
+
25352
+ if (event.defaultPrevented) {
25353
+ // Some other error handler has prevented default.
25354
+ // Browsers silence the error report if this happens.
25355
+ // We'll remember this to later decide whether to log it or not.
25356
+ if (error != null && typeof error === 'object') {
25357
+ try {
25358
+ error._suppressLogging = true;
25359
+ } catch (inner) {// Ignore.
25360
+ }
25361
+ }
25362
+ }
25363
+ } // Create a fake event type.
25364
+
25365
+
25366
+ var evtType = "react-" + (name ? name : 'invokeguardedcallback'); // Attach our event handlers
25367
+
25368
+ window.addEventListener('error', handleWindowError);
25369
+ fakeNode.addEventListener(evtType, callCallback, false); // Synchronously dispatch our fake event. If the user-provided function
25370
+ // errors, it will trigger our global error handler.
25371
+
25372
+ evt.initEvent(evtType, false, false);
25373
+ fakeNode.dispatchEvent(evt);
25374
+
25375
+ if (windowEventDescriptor) {
25376
+ Object.defineProperty(window, 'event', windowEventDescriptor);
25377
+ }
25378
+
25379
+ if (didError) {
25380
+ if (!didSetError) {
25381
+ // The callback errored, but the error event never fired.
25382
+ error = new Error('An error was thrown inside one of your components, but React ' + "doesn't know what it was. This is likely due to browser " + 'flakiness. React does its best to preserve the "Pause on ' + 'exceptions" behavior of the DevTools, which requires some ' + "DEV-mode only tricks. It's possible that these don't work in " + 'your browser. Try triggering the error in production mode, ' + 'or switching to a modern browser. If you suspect that this is ' + 'actually an issue with React, please file an issue.');
25383
+ } else if (isCrossOriginError) {
25384
+ error = new Error("A cross-origin error was thrown. React doesn't have access to " + 'the actual error object in development. ' + 'See https://fb.me/react-crossorigin-error for more information.');
25385
+ }
25386
+
25387
+ this.onError(error);
25388
+ } // Remove our event listeners
25389
+
25390
+
25391
+ window.removeEventListener('error', handleWindowError);
25392
+ };
25393
+
25394
+ invokeGuardedCallbackImpl = invokeGuardedCallbackDev;
25395
+ }
25396
+ }
25397
+
25398
+ var invokeGuardedCallbackImpl$1 = invokeGuardedCallb