AdSense Plugin WP QUADS - Version 2.0.19

Version Description

(21th January 2020) = * New: New Group Insertion #297 * Fix: Exclude targeting is not working. #286 * Fix: Random Ads shortcode does not work. #278 * Fix: Rotator Ads shortcode does not work. #278 * Fix: Rotator Ads work flow. #274

Download this release

Release Info

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

Code changes from version 2.0.18.1 to 2.0.19

Files changed (1) hide show
  1. admin/assets/js/dist/adminscript.js +495 -27119
admin/assets/js/dist/adminscript.js CHANGED
@@ -1,131217 +1,131356 @@
1
- /******/ (function(modules) { // webpackBootstrap
2
- /******/ // 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 = 425);
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__(426);
75
- } else {
76
- module.exports = __webpack_require__(427);
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__(16);
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__(437)(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__(438)();
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__(43);
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
-
356
- if (typeof mix === 'string' || typeof mix === 'number') {
357
- str += mix;
358
- } else if (typeof mix === 'object') {
359
- if (Array.isArray(mix)) {
360
- for (k=0; k < mix.length; k++) {
361
- if (mix[k]) {
362
- if (y = toVal(mix[k])) {
363
- str && (str += ' ');
364
- str += y;
365
- }
366
- }
367
- }
368
- } else {
369
- for (k in mix) {
370
- if (mix[k]) {
371
- str && (str += ' ');
372
- str += k;
373
- }
374
- }
375
- }
376
- }
377
-
378
- return str;
379
- }
380
-
381
- /* harmony default export */ __webpack_exports__["a"] = (function () {
382
- var i=0, tmp, x, str='';
383
- while (i < arguments.length) {
384
- if (tmp = arguments[i++]) {
385
- if (x = toVal(tmp)) {
386
- str && (str += ' ');
387
- str += x
388
- }
389
- }
390
- }
391
- return str;
392
- });
393
-
394
-
395
- /***/ }),
396
- /* 6 */
397
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
398
-
399
- "use strict";
400
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
401
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_ui_styles__ = __webpack_require__(24);
402
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__defaultTheme__ = __webpack_require__(72);
403
-
404
-
405
-
406
-
407
- function withStyles(stylesOrCreator, options) {
408
- return Object(__WEBPACK_IMPORTED_MODULE_1__material_ui_styles__["g" /* withStyles */])(stylesOrCreator, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
409
- defaultTheme: __WEBPACK_IMPORTED_MODULE_2__defaultTheme__["a" /* default */]
410
- }, options));
411
- }
412
-
413
- /* harmony default export */ __webpack_exports__["a"] = (withStyles);
414
-
415
- /***/ }),
416
- /* 7 */
417
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
418
-
419
- "use strict";
420
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__chainPropTypes__ = __webpack_require__(130);
421
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__chainPropTypes__["a"]; });
422
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__deepmerge__ = __webpack_require__(456);
423
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_1__deepmerge__["a"]; });
424
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__elementAcceptingRef__ = __webpack_require__(457);
425
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_2__elementAcceptingRef__["a"]; });
426
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__elementTypeAcceptingRef__ = __webpack_require__(458);
427
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_3__elementTypeAcceptingRef__["a"]; });
428
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__exactProp__ = __webpack_require__(459);
429
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_4__exactProp__["a"]; });
430
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__formatMuiErrorMessage__ = __webpack_require__(460);
431
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_5__formatMuiErrorMessage__["a"]; });
432
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__getDisplayName__ = __webpack_require__(461);
433
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_6__getDisplayName__["a"]; });
434
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__HTMLElementType__ = __webpack_require__(462);
435
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_7__HTMLElementType__["a"]; });
436
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__ponyfillGlobal__ = __webpack_require__(463);
437
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return __WEBPACK_IMPORTED_MODULE_8__ponyfillGlobal__["a"]; });
438
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__refType__ = __webpack_require__(464);
439
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return __WEBPACK_IMPORTED_MODULE_9__refType__["a"]; });
440
- /** @license Material-UI v4.11.2
441
- *
442
- * This source code is licensed under the MIT license found in the
443
- * LICENSE file in the root directory of this source tree.
444
- */
445
-
446
-
447
-
448
-
449
-
450
-
451
-
452
-
453
-
454
-
455
-
456
- /***/ }),
457
- /* 8 */
458
- /***/ (function(module, exports, __webpack_require__) {
459
-
460
- "use strict";
461
-
462
-
463
- Object.defineProperty(exports, "__esModule", {
464
- value: true
465
- });
466
- exports.ReactCSS = exports.loop = exports.handleActive = exports.handleHover = exports.hover = undefined;
467
-
468
- var _flattenNames = __webpack_require__(760);
469
-
470
- var _flattenNames2 = _interopRequireDefault(_flattenNames);
471
-
472
- var _mergeClasses = __webpack_require__(836);
473
-
474
- var _mergeClasses2 = _interopRequireDefault(_mergeClasses);
475
-
476
- var _autoprefix = __webpack_require__(862);
477
-
478
- var _autoprefix2 = _interopRequireDefault(_autoprefix);
479
-
480
- var _hover2 = __webpack_require__(863);
481
-
482
- var _hover3 = _interopRequireDefault(_hover2);
483
-
484
- var _active = __webpack_require__(864);
485
-
486
- var _active2 = _interopRequireDefault(_active);
487
-
488
- var _loop2 = __webpack_require__(865);
489
-
490
- var _loop3 = _interopRequireDefault(_loop2);
491
-
492
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
493
-
494
- exports.hover = _hover3.default;
495
- exports.handleHover = _hover3.default;
496
- exports.handleActive = _active2.default;
497
- exports.loop = _loop3.default;
498
- var ReactCSS = exports.ReactCSS = function ReactCSS(classes) {
499
- for (var _len = arguments.length, activations = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
500
- activations[_key - 1] = arguments[_key];
501
- }
502
-
503
- var activeNames = (0, _flattenNames2.default)(activations);
504
- var merged = (0, _mergeClasses2.default)(classes, activeNames);
505
- return (0, _autoprefix2.default)(merged);
506
- };
507
-
508
- exports.default = ReactCSS;
509
-
510
- /***/ }),
511
- /* 9 */
512
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
513
-
514
- "use strict";
515
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = capitalize;
516
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__ = __webpack_require__(7);
517
-
518
- // It should to be noted that this function isn't equivalent to `text-transform: capitalize`.
519
- //
520
- // A strict capitalization should uppercase the first letter of each word a the sentence.
521
- // We only handle the first word.
522
- function capitalize(string) {
523
- if (typeof string !== 'string') {
524
- throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: capitalize(string) expects a string argument." : Object(__WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["g" /* formatMuiErrorMessage */])(7));
525
- }
526
-
527
- return string.charAt(0).toUpperCase() + string.slice(1);
528
- }
529
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
530
-
531
- /***/ }),
532
- /* 10 */
533
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
534
-
535
- "use strict";
536
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__capitalize__ = __webpack_require__(9);
537
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__capitalize__["a"]; });
538
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createChainedFunction__ = __webpack_require__(62);
539
- /* unused harmony reexport createChainedFunction */
540
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__createSvgIcon__ = __webpack_require__(21);
541
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_2__createSvgIcon__["a"]; });
542
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__debounce__ = __webpack_require__(51);
543
- /* unused harmony reexport debounce */
544
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__deprecatedPropType__ = __webpack_require__(555);
545
- /* unused harmony reexport deprecatedPropType */
546
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__isMuiElement__ = __webpack_require__(77);
547
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_5__isMuiElement__["a"]; });
548
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ownerDocument__ = __webpack_require__(28);
549
- /* unused harmony reexport ownerDocument */
550
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ownerWindow__ = __webpack_require__(94);
551
- /* unused harmony reexport ownerWindow */
552
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__requirePropFactory__ = __webpack_require__(260);
553
- /* unused harmony reexport requirePropFactory */
554
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__setRef__ = __webpack_require__(52);
555
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_9__setRef__["a"]; });
556
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__unsupportedProp__ = __webpack_require__(95);
557
- /* unused harmony reexport unsupportedProp */
558
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__useControlled__ = __webpack_require__(46);
559
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_11__useControlled__["a"]; });
560
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__useEventCallback__ = __webpack_require__(40);
561
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_12__useEventCallback__["a"]; });
562
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__useForkRef__ = __webpack_require__(14);
563
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_13__useForkRef__["a"]; });
564
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__unstable_useId__ = __webpack_require__(96);
565
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_14__unstable_useId__["a"]; });
566
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__useIsFocusVisible__ = __webpack_require__(78);
567
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return __WEBPACK_IMPORTED_MODULE_15__useIsFocusVisible__["a"]; });
568
-
569
-
570
-
571
-
572
-
573
-
574
-
575
-
576
-
577
-
578
-
579
-
580
-
581
- // eslint-disable-next-line camelcase
582
-
583
-
584
-
585
-
586
- /***/ }),
587
- /* 11 */
588
- /***/ (function(module, exports, __webpack_require__) {
589
-
590
- "use strict";
591
- /* WEBPACK VAR INJECTION */(function(process) {
592
-
593
- function checkDCE() {
594
- /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
595
- if (
596
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
597
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
598
- ) {
599
- return;
600
- }
601
- if (process.env.NODE_ENV !== 'production') {
602
- // This branch is unreachable because this function is only called
603
- // in production, but the condition is true only in development.
604
- // Therefore if the branch is still here, dead code elimination wasn't
605
- // properly applied.
606
- // Don't change the message. React DevTools relies on it. Also make sure
607
- // this message doesn't occur elsewhere in this function, or it will cause
608
- // a false positive.
609
- throw new Error('^_^');
610
- }
611
- try {
612
- // Verify that the code above has been dead code eliminated (DCE'd).
613
- __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
614
- } catch (err) {
615
- // DevTools shouldn't crash React, no matter what.
616
- // We should still report in case we break this code.
617
- console.error(err);
618
- }
619
- }
620
-
621
- if (process.env.NODE_ENV === 'production') {
622
- // DCE check should happen before ReactDOM bundle executes so that
623
- // DevTools can report bad minification during injection.
624
- checkDCE();
625
- module.exports = __webpack_require__(428);
626
- } else {
627
- module.exports = __webpack_require__(431);
628
- }
629
-
630
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
631
-
632
- /***/ }),
633
- /* 12 */
634
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
635
-
636
- "use strict";
637
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Alpha__ = __webpack_require__(866);
638
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Alpha__["a"]; });
639
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Checkboard__ = __webpack_require__(193);
640
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__Checkboard__["a"]; });
641
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__EditableInput__ = __webpack_require__(869);
642
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_2__EditableInput__["a"]; });
643
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Hue__ = __webpack_require__(870);
644
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_3__Hue__["a"]; });
645
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Raised__ = __webpack_require__(872);
646
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_4__Raised__["a"]; });
647
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Saturation__ = __webpack_require__(932);
648
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_5__Saturation__["a"]; });
649
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ColorWrap__ = __webpack_require__(413);
650
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_6__ColorWrap__["a"]; });
651
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Swatch__ = __webpack_require__(946);
652
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_7__Swatch__["a"]; });
653
-
654
-
655
-
656
-
657
-
658
-
659
-
660
-
661
-
662
- /***/ }),
663
- /* 13 */
664
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
665
-
666
- "use strict";
667
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__colorManipulator__ = __webpack_require__(19);
668
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__colorManipulator__["a"]; });
669
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_0__colorManipulator__["b"]; });
670
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_0__colorManipulator__["c"]; });
671
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_0__colorManipulator__["e"]; });
672
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createMuiTheme__ = __webpack_require__(135);
673
- /* unused harmony reexport createMuiTheme */
674
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__createMuiStrictModeTheme__ = __webpack_require__(546);
675
- /* unused harmony reexport unstable_createMuiStrictModeTheme */
676
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__createStyles__ = __webpack_require__(547);
677
- /* unused harmony reexport createStyles */
678
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__makeStyles__ = __webpack_require__(548);
679
- /* unused harmony reexport makeStyles */
680
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__responsiveFontSizes__ = __webpack_require__(549);
681
- /* unused harmony reexport responsiveFontSizes */
682
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__styled__ = __webpack_require__(259);
683
- /* unused harmony reexport styled */
684
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__transitions__ = __webpack_require__(37);
685
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_7__transitions__["b"]; });
686
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__useTheme__ = __webpack_require__(17);
687
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_8__useTheme__["a"]; });
688
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__withStyles__ = __webpack_require__(6);
689
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_9__withStyles__["a"]; });
690
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__withTheme__ = __webpack_require__(551);
691
- /* unused harmony reexport withTheme */
692
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__material_ui_styles__ = __webpack_require__(24);
693
- /* unused harmony reexport createGenerateClassName */
694
- /* unused harmony reexport jssPreset */
695
- /* unused harmony reexport ServerStyleSheets */
696
- /* unused harmony reexport StylesProvider */
697
- /* unused harmony reexport MuiThemeProvider */
698
- /* unused harmony reexport ThemeProvider */
699
-
700
- // eslint-disable-next-line camelcase
701
-
702
-
703
-
704
-
705
-
706
-
707
-
708
-
709
-
710
-
711
-
712
-
713
- /***/ }),
714
- /* 14 */
715
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
716
-
717
- "use strict";
718
- /* harmony export (immutable) */ __webpack_exports__["a"] = useForkRef;
719
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
720
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
721
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__setRef__ = __webpack_require__(52);
722
-
723
-
724
- function useForkRef(refA, refB) {
725
- /**
726
- * This will create a new function if the ref props change and are defined.
727
- * This means react will call the old forkRef with `null` and the new forkRef
728
- * with the ref. Cleanup naturally emerges from this behavior
729
- */
730
- return __WEBPACK_IMPORTED_MODULE_0_react__["useMemo"](function () {
731
- if (refA == null && refB == null) {
732
- return null;
733
- }
734
-
735
- return function (refValue) {
736
- Object(__WEBPACK_IMPORTED_MODULE_1__setRef__["a" /* default */])(refA, refValue);
737
- Object(__WEBPACK_IMPORTED_MODULE_1__setRef__["a" /* default */])(refB, refValue);
738
- };
739
- }, [refA, refB]);
740
- }
741
-
742
- /***/ }),
743
- /* 15 */
744
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
745
-
746
- "use strict";
747
- /* harmony export (immutable) */ __webpack_exports__["a"] = _defineProperty;
748
- function _defineProperty(obj, key, value) {
749
- if (key in obj) {
750
- Object.defineProperty(obj, key, {
751
- value: value,
752
- enumerable: true,
753
- configurable: true,
754
- writable: true
755
- });
756
- } else {
757
- obj[key] = value;
758
- }
759
-
760
- return obj;
761
- }
762
-
763
- /***/ }),
764
- /* 16 */
765
- /***/ (function(module, exports, __webpack_require__) {
766
-
767
- "use strict";
768
- /* WEBPACK VAR INJECTION */(function(process) {
769
-
770
- if (process.env.NODE_ENV === 'production') {
771
- module.exports = __webpack_require__(435);
772
- } else {
773
- module.exports = __webpack_require__(436);
774
- }
775
-
776
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
777
-
778
- /***/ }),
779
- /* 17 */
780
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
781
-
782
- "use strict";
783
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = useTheme;
784
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_styles__ = __webpack_require__(24);
785
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
786
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
787
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__defaultTheme__ = __webpack_require__(72);
788
-
789
-
790
-
791
- function useTheme() {
792
- var theme = Object(__WEBPACK_IMPORTED_MODULE_0__material_ui_styles__["f" /* useTheme */])() || __WEBPACK_IMPORTED_MODULE_2__defaultTheme__["a" /* default */];
793
-
794
- if (process.env.NODE_ENV !== 'production') {
795
- // eslint-disable-next-line react-hooks/rules-of-hooks
796
- __WEBPACK_IMPORTED_MODULE_1_react___default.a.useDebugValue(theme);
797
- }
798
-
799
- return theme;
800
- }
801
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
802
-
803
- /***/ }),
804
- /* 18 */
805
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
806
-
807
- "use strict";
808
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ButtonBase__ = __webpack_require__(560);
809
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ButtonBase__["a"]; });
810
-
811
-
812
- /***/ }),
813
- /* 19 */
814
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
815
-
816
- "use strict";
817
- /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export hexToRgb */
818
- /* unused harmony export rgbToHex */
819
- /* unused harmony export hslToRgb */
820
- /* unused harmony export decomposeColor */
821
- /* unused harmony export recomposeColor */
822
- /* harmony export (immutable) */ __webpack_exports__["d"] = getContrastRatio;
823
- /* unused harmony export getLuminance */
824
- /* harmony export (immutable) */ __webpack_exports__["b"] = emphasize;
825
- /* harmony export (immutable) */ __webpack_exports__["c"] = fade;
826
- /* harmony export (immutable) */ __webpack_exports__["a"] = darken;
827
- /* harmony export (immutable) */ __webpack_exports__["e"] = lighten;
828
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__ = __webpack_require__(7);
829
-
830
-
831
- /* eslint-disable no-use-before-define */
832
-
833
- /**
834
- * Returns a number whose value is limited to the given range.
835
- *
836
- * @param {number} value The value to be clamped
837
- * @param {number} min The lower boundary of the output range
838
- * @param {number} max The upper boundary of the output range
839
- * @returns {number} A number in the range [min, max]
840
- */
841
- function clamp(value) {
842
- var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
843
- var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
844
-
845
- if (process.env.NODE_ENV !== 'production') {
846
- if (value < min || value > max) {
847
- console.error("Material-UI: The value provided ".concat(value, " is out of range [").concat(min, ", ").concat(max, "]."));
848
- }
849
- }
850
-
851
- return Math.min(Math.max(min, value), max);
852
- }
853
- /**
854
- * Converts a color from CSS hex format to CSS rgb format.
855
- *
856
- * @param {string} color - Hex color, i.e. #nnn or #nnnnnn
857
- * @returns {string} A CSS rgb color string
858
- */
859
-
860
-
861
- function hexToRgb(color) {
862
- color = color.substr(1);
863
- var re = new RegExp(".{1,".concat(color.length >= 6 ? 2 : 1, "}"), 'g');
864
- var colors = color.match(re);
865
-
866
- if (colors && colors[0].length === 1) {
867
- colors = colors.map(function (n) {
868
- return n + n;
869
- });
870
- }
871
-
872
- return colors ? "rgb".concat(colors.length === 4 ? 'a' : '', "(").concat(colors.map(function (n, index) {
873
- return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;
874
- }).join(', '), ")") : '';
875
- }
876
-
877
- function intToHex(int) {
878
- var hex = int.toString(16);
879
- return hex.length === 1 ? "0".concat(hex) : hex;
880
- }
881
- /**
882
- * Converts a color from CSS rgb format to CSS hex format.
883
- *
884
- * @param {string} color - RGB color, i.e. rgb(n, n, n)
885
- * @returns {string} A CSS rgb color string, i.e. #nnnnnn
886
- */
887
-
888
-
889
- function rgbToHex(color) {
890
- // Idempotent
891
- if (color.indexOf('#') === 0) {
892
- return color;
893
- }
894
-
895
- var _decomposeColor = decomposeColor(color),
896
- values = _decomposeColor.values;
897
-
898
- return "#".concat(values.map(function (n) {
899
- return intToHex(n);
900
- }).join(''));
901
- }
902
- /**
903
- * Converts a color from hsl format to rgb format.
904
- *
905
- * @param {string} color - HSL color values
906
- * @returns {string} rgb color values
907
- */
908
-
909
- function hslToRgb(color) {
910
- color = decomposeColor(color);
911
- var _color = color,
912
- values = _color.values;
913
- var h = values[0];
914
- var s = values[1] / 100;
915
- var l = values[2] / 100;
916
- var a = s * Math.min(l, 1 - l);
917
-
918
- var f = function f(n) {
919
- var k = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (n + h / 30) % 12;
920
- return l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);
921
- };
922
-
923
- var type = 'rgb';
924
- var rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];
925
-
926
- if (color.type === 'hsla') {
927
- type += 'a';
928
- rgb.push(values[3]);
929
- }
930
-
931
- return recomposeColor({
932
- type: type,
933
- values: rgb
934
- });
935
- }
936
- /**
937
- * Returns an object with the type and values of a color.
938
- *
939
- * Note: Does not support rgb % values.
940
- *
941
- * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
942
- * @returns {object} - A MUI color object: {type: string, values: number[]}
943
- */
944
-
945
- function decomposeColor(color) {
946
- // Idempotent
947
- if (color.type) {
948
- return color;
949
- }
950
-
951
- if (color.charAt(0) === '#') {
952
- return decomposeColor(hexToRgb(color));
953
- }
954
-
955
- var marker = color.indexOf('(');
956
- var type = color.substring(0, marker);
957
-
958
- if (['rgb', 'rgba', 'hsl', 'hsla'].indexOf(type) === -1) {
959
- throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: Unsupported `".concat(color, "` color.\nWe support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla().") : Object(__WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["g" /* formatMuiErrorMessage */])(3, color));
960
- }
961
-
962
- var values = color.substring(marker + 1, color.length - 1).split(',');
963
- values = values.map(function (value) {
964
- return parseFloat(value);
965
- });
966
- return {
967
- type: type,
968
- values: values
969
- };
970
- }
971
- /**
972
- * Converts a color object with type and values to a string.
973
- *
974
- * @param {object} color - Decomposed color
975
- * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla'
976
- * @param {array} color.values - [n,n,n] or [n,n,n,n]
977
- * @returns {string} A CSS color string
978
- */
979
-
980
- function recomposeColor(color) {
981
- var type = color.type;
982
- var values = color.values;
983
-
984
- if (type.indexOf('rgb') !== -1) {
985
- // Only convert the first 3 values to int (i.e. not alpha)
986
- values = values.map(function (n, i) {
987
- return i < 3 ? parseInt(n, 10) : n;
988
- });
989
- } else if (type.indexOf('hsl') !== -1) {
990
- values[1] = "".concat(values[1], "%");
991
- values[2] = "".concat(values[2], "%");
992
- }
993
-
994
- return "".concat(type, "(").concat(values.join(', '), ")");
995
- }
996
- /**
997
- * Calculates the contrast ratio between two colors.
998
- *
999
- * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
1000
- *
1001
- * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1002
- * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1003
- * @returns {number} A contrast ratio value in the range 0 - 21.
1004
- */
1005
-
1006
- function getContrastRatio(foreground, background) {
1007
- var lumA = getLuminance(foreground);
1008
- var lumB = getLuminance(background);
1009
- return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);
1010
- }
1011
- /**
1012
- * The relative brightness of any point in a color space,
1013
- * normalized to 0 for darkest black and 1 for lightest white.
1014
- *
1015
- * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
1016
- *
1017
- * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1018
- * @returns {number} The relative brightness of the color in the range 0 - 1
1019
- */
1020
-
1021
- function getLuminance(color) {
1022
- color = decomposeColor(color);
1023
- var rgb = color.type === 'hsl' ? decomposeColor(hslToRgb(color)).values : color.values;
1024
- rgb = rgb.map(function (val) {
1025
- val /= 255; // normalized
1026
-
1027
- return val <= 0.03928 ? val / 12.92 : Math.pow((val + 0.055) / 1.055, 2.4);
1028
- }); // Truncate at 3 digits
1029
-
1030
- return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));
1031
- }
1032
- /**
1033
- * Darken or lighten a color, depending on its luminance.
1034
- * Light colors are darkened, dark colors are lightened.
1035
- *
1036
- * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1037
- * @param {number} coefficient=0.15 - multiplier in the range 0 - 1
1038
- * @returns {string} A CSS color string. Hex input values are returned as rgb
1039
- */
1040
-
1041
- function emphasize(color) {
1042
- var coefficient = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.15;
1043
- return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);
1044
- }
1045
- /**
1046
- * Set the absolute transparency of a color.
1047
- * Any existing alpha values are overwritten.
1048
- *
1049
- * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1050
- * @param {number} value - value to set the alpha channel to in the range 0 -1
1051
- * @returns {string} A CSS color string. Hex input values are returned as rgb
1052
- */
1053
-
1054
- function fade(color, value) {
1055
- color = decomposeColor(color);
1056
- value = clamp(value);
1057
-
1058
- if (color.type === 'rgb' || color.type === 'hsl') {
1059
- color.type += 'a';
1060
- }
1061
-
1062
- color.values[3] = value;
1063
- return recomposeColor(color);
1064
- }
1065
- /**
1066
- * Darkens a color.
1067
- *
1068
- * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1069
- * @param {number} coefficient - multiplier in the range 0 - 1
1070
- * @returns {string} A CSS color string. Hex input values are returned as rgb
1071
- */
1072
-
1073
- function darken(color, coefficient) {
1074
- color = decomposeColor(color);
1075
- coefficient = clamp(coefficient);
1076
-
1077
- if (color.type.indexOf('hsl') !== -1) {
1078
- color.values[2] *= 1 - coefficient;
1079
- } else if (color.type.indexOf('rgb') !== -1) {
1080
- for (var i = 0; i < 3; i += 1) {
1081
- color.values[i] *= 1 - coefficient;
1082
- }
1083
- }
1084
-
1085
- return recomposeColor(color);
1086
- }
1087
- /**
1088
- * Lightens a color.
1089
- *
1090
- * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()
1091
- * @param {number} coefficient - multiplier in the range 0 - 1
1092
- * @returns {string} A CSS color string. Hex input values are returned as rgb
1093
- */
1094
-
1095
- function lighten(color, coefficient) {
1096
- color = decomposeColor(color);
1097
- coefficient = clamp(coefficient);
1098
-
1099
- if (color.type.indexOf('hsl') !== -1) {
1100
- color.values[2] += (100 - color.values[2]) * coefficient;
1101
- } else if (color.type.indexOf('rgb') !== -1) {
1102
- for (var i = 0; i < 3; i += 1) {
1103
- color.values[i] += (255 - color.values[i]) * coefficient;
1104
- }
1105
- }
1106
-
1107
- return recomposeColor(color);
1108
- }
1109
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
1110
-
1111
- /***/ }),
1112
- /* 20 */
1113
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1114
-
1115
- "use strict";
1116
- /* harmony export (immutable) */ __webpack_exports__["a"] = _slicedToArray;
1117
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayWithHoles__ = __webpack_require__(244);
1118
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__iterableToArrayLimit__ = __webpack_require__(500);
1119
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__unsupportedIterableToArray__ = __webpack_require__(133);
1120
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__nonIterableRest__ = __webpack_require__(245);
1121
-
1122
-
1123
-
1124
-
1125
- function _slicedToArray(arr, i) {
1126
- 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__unsupportedIterableToArray__["a" /* default */])(arr, i) || Object(__WEBPACK_IMPORTED_MODULE_3__nonIterableRest__["a" /* default */])();
1127
- }
1128
-
1129
- /***/ }),
1130
- /* 21 */
1131
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1132
-
1133
- "use strict";
1134
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = createSvgIcon;
1135
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
1136
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
1137
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
1138
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__SvgIcon__ = __webpack_require__(93);
1139
-
1140
-
1141
-
1142
- /**
1143
- * Private module reserved for @material-ui/x packages.
1144
- */
1145
-
1146
- function createSvgIcon(path, displayName) {
1147
- var Component = function Component(props, ref) {
1148
- 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 */])({
1149
- ref: ref
1150
- }, props), path);
1151
- };
1152
-
1153
- if (process.env.NODE_ENV !== 'production') {
1154
- // Need to set `displayName` on the inner component for React.memo.
1155
- // React prior to 16.14 ignores `displayName` on the wrapper.
1156
- Component.displayName = "".concat(displayName, "Icon");
1157
- }
1158
-
1159
- Component.muiName = __WEBPACK_IMPORTED_MODULE_2__SvgIcon__["a" /* default */].muiName;
1160
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_1_react___default.a.memo( /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_1_react___default.a.forwardRef(Component));
1161
- }
1162
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
1163
-
1164
- /***/ }),
1165
- /* 22 */
1166
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1167
-
1168
- "use strict";
1169
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Paper__ = __webpack_require__(552);
1170
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Paper__["a"]; });
1171
-
1172
-
1173
- /***/ }),
1174
- /* 23 */
1175
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1176
-
1177
- "use strict";
1178
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseMerge_js__ = __webpack_require__(873);
1179
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createAssigner_js__ = __webpack_require__(923);
1180
-
1181
-
1182
-
1183
- /**
1184
- * This method is like `_.assign` except that it recursively merges own and
1185
- * inherited enumerable string keyed properties of source objects into the
1186
- * destination object. Source properties that resolve to `undefined` are
1187
- * skipped if a destination value exists. Array and plain object properties
1188
- * are merged recursively. Other objects and value types are overridden by
1189
- * assignment. Source objects are applied from left to right. Subsequent
1190
- * sources overwrite property assignments of previous sources.
1191
- *
1192
- * **Note:** This method mutates `object`.
1193
- *
1194
- * @static
1195
- * @memberOf _
1196
- * @since 0.5.0
1197
- * @category Object
1198
- * @param {Object} object The destination object.
1199
- * @param {...Object} [sources] The source objects.
1200
- * @returns {Object} Returns `object`.
1201
- * @example
1202
- *
1203
- * var object = {
1204
- * 'a': [{ 'b': 2 }, { 'd': 4 }]
1205
- * };
1206
- *
1207
- * var other = {
1208
- * 'a': [{ 'c': 3 }, { 'e': 5 }]
1209
- * };
1210
- *
1211
- * _.merge(object, other);
1212
- * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
1213
- */
1214
- var merge = Object(__WEBPACK_IMPORTED_MODULE_1__createAssigner_js__["a" /* default */])(function(object, source, srcIndex) {
1215
- Object(__WEBPACK_IMPORTED_MODULE_0__baseMerge_js__["a" /* default */])(object, source, srcIndex);
1216
- });
1217
-
1218
- /* harmony default export */ __webpack_exports__["a"] = (merge);
1219
-
1220
-
1221
- /***/ }),
1222
- /* 24 */
1223
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1224
-
1225
- "use strict";
1226
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__ = __webpack_require__(7);
1227
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createGenerateClassName__ = __webpack_require__(87);
1228
- /* unused harmony reexport createGenerateClassName */
1229
- /* unused harmony namespace reexport */
1230
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__createStyles__ = __webpack_require__(213);
1231
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_2__createStyles__["a"]; });
1232
- /* unused harmony namespace reexport */
1233
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__getThemeProps__ = __webpack_require__(131);
1234
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_3__getThemeProps__["a"]; });
1235
- /* unused harmony namespace reexport */
1236
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__jssPreset__ = __webpack_require__(132);
1237
- /* unused harmony reexport jssPreset */
1238
- /* unused harmony namespace reexport */
1239
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__makeStyles__ = __webpack_require__(89);
1240
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_5__makeStyles__["a"]; });
1241
- /* unused harmony namespace reexport */
1242
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__mergeClasses__ = __webpack_require__(134);
1243
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_6__mergeClasses__["a"]; });
1244
- /* unused harmony namespace reexport */
1245
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ServerStyleSheets__ = __webpack_require__(220);
1246
- /* unused harmony reexport ServerStyleSheets */
1247
- /* unused harmony namespace reexport */
1248
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__styled__ = __webpack_require__(221);
1249
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_8__styled__["a"]; });
1250
- /* unused harmony namespace reexport */
1251
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__StylesProvider__ = __webpack_require__(90);
1252
- /* unused harmony reexport StylesProvider */
1253
- /* unused harmony namespace reexport */
1254
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__ThemeProvider__ = __webpack_require__(222);
1255
- /* unused harmony reexport ThemeProvider */
1256
- /* unused harmony namespace reexport */
1257
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__useTheme__ = __webpack_require__(61);
1258
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_11__useTheme__["a"]; });
1259
- /* unused harmony namespace reexport */
1260
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__withStyles__ = __webpack_require__(223);
1261
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_12__withStyles__["a"]; });
1262
- /* unused harmony namespace reexport */
1263
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__withTheme__ = __webpack_require__(224);
1264
- /* unused harmony reexport withTheme */
1265
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_13__withTheme__["a"]; });
1266
- /** @license Material-UI v4.11.2
1267
- *
1268
- * This source code is licensed under the MIT license found in the
1269
- * LICENSE file in the root directory of this source tree.
1270
- */
1271
- /* eslint-disable import/export */
1272
-
1273
- /* Warning if there are several instances of @material-ui/styles */
1274
-
1275
- if (process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test' && typeof window !== 'undefined') {
1276
- __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["i" /* ponyfillGlobal */]['__@material-ui/styles-init__'] = __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["i" /* ponyfillGlobal */]['__@material-ui/styles-init__'] || 0;
1277
-
1278
- if (__WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["i" /* ponyfillGlobal */]['__@material-ui/styles-init__'] === 1) {
1279
- 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'));
1280
- }
1281
-
1282
- __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["i" /* ponyfillGlobal */]['__@material-ui/styles-init__'] += 1;
1283
- }
1284
-
1285
-
1286
-
1287
-
1288
-
1289
-
1290
-
1291
-
1292
-
1293
-
1294
-
1295
-
1296
-
1297
-
1298
-
1299
-
1300
-
1301
-
1302
-
1303
-
1304
-
1305
-
1306
-
1307
-
1308
-
1309
-
1310
-
1311
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
1312
-
1313
- /***/ }),
1314
- /* 25 */
1315
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1316
-
1317
- "use strict";
1318
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Typography__ = __webpack_require__(600);
1319
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Typography__["a"]; });
1320
-
1321
-
1322
- /***/ }),
1323
- /* 26 */
1324
- /***/ (function(module, exports, __webpack_require__) {
1325
-
1326
- "use strict";
1327
-
1328
- var strictUriEncode = __webpack_require__(444);
1329
- var objectAssign = __webpack_require__(59);
1330
- var decodeComponent = __webpack_require__(445);
1331
-
1332
- function encoderForArrayFormat(opts) {
1333
- switch (opts.arrayFormat) {
1334
- case 'index':
1335
- return function (key, value, index) {
1336
- return value === null ? [
1337
- encode(key, opts),
1338
- '[',
1339
- index,
1340
- ']'
1341
- ].join('') : [
1342
- encode(key, opts),
1343
- '[',
1344
- encode(index, opts),
1345
- ']=',
1346
- encode(value, opts)
1347
- ].join('');
1348
- };
1349
-
1350
- case 'bracket':
1351
- return function (key, value) {
1352
- return value === null ? encode(key, opts) : [
1353
- encode(key, opts),
1354
- '[]=',
1355
- encode(value, opts)
1356
- ].join('');
1357
- };
1358
-
1359
- default:
1360
- return function (key, value) {
1361
- return value === null ? encode(key, opts) : [
1362
- encode(key, opts),
1363
- '=',
1364
- encode(value, opts)
1365
- ].join('');
1366
- };
1367
- }
1368
- }
1369
-
1370
- function parserForArrayFormat(opts) {
1371
- var result;
1372
-
1373
- switch (opts.arrayFormat) {
1374
- case 'index':
1375
- return function (key, value, accumulator) {
1376
- result = /\[(\d*)\]$/.exec(key);
1377
-
1378
- key = key.replace(/\[\d*\]$/, '');
1379
-
1380
- if (!result) {
1381
- accumulator[key] = value;
1382
- return;
1383
- }
1384
-
1385
- if (accumulator[key] === undefined) {
1386
- accumulator[key] = {};
1387
- }
1388
-
1389
- accumulator[key][result[1]] = value;
1390
- };
1391
-
1392
- case 'bracket':
1393
- return function (key, value, accumulator) {
1394
- result = /(\[\])$/.exec(key);
1395
- key = key.replace(/\[\]$/, '');
1396
-
1397
- if (!result) {
1398
- accumulator[key] = value;
1399
- return;
1400
- } else if (accumulator[key] === undefined) {
1401
- accumulator[key] = [value];
1402
- return;
1403
- }
1404
-
1405
- accumulator[key] = [].concat(accumulator[key], value);
1406
- };
1407
-
1408
- default:
1409
- return function (key, value, accumulator) {
1410
- if (accumulator[key] === undefined) {
1411
- accumulator[key] = value;
1412
- return;
1413
- }
1414
-
1415
- accumulator[key] = [].concat(accumulator[key], value);
1416
- };
1417
- }
1418
- }
1419
-
1420
- function encode(value, opts) {
1421
- if (opts.encode) {
1422
- return opts.strict ? strictUriEncode(value) : encodeURIComponent(value);
1423
- }
1424
-
1425
- return value;
1426
- }
1427
-
1428
- function keysSorter(input) {
1429
- if (Array.isArray(input)) {
1430
- return input.sort();
1431
- } else if (typeof input === 'object') {
1432
- return keysSorter(Object.keys(input)).sort(function (a, b) {
1433
- return Number(a) - Number(b);
1434
- }).map(function (key) {
1435
- return input[key];
1436
- });
1437
- }
1438
-
1439
- return input;
1440
- }
1441
-
1442
- function extract(str) {
1443
- var queryStart = str.indexOf('?');
1444
- if (queryStart === -1) {
1445
- return '';
1446
- }
1447
- return str.slice(queryStart + 1);
1448
- }
1449
-
1450
- function parse(str, opts) {
1451
- opts = objectAssign({arrayFormat: 'none'}, opts);
1452
-
1453
- var formatter = parserForArrayFormat(opts);
1454
-
1455
- // Create an object with no prototype
1456
- // https://github.com/sindresorhus/query-string/issues/47
1457
- var ret = Object.create(null);
1458
-
1459
- if (typeof str !== 'string') {
1460
- return ret;
1461
- }
1462
-
1463
- str = str.trim().replace(/^[?#&]/, '');
1464
-
1465
- if (!str) {
1466
- return ret;
1467
- }
1468
-
1469
- str.split('&').forEach(function (param) {
1470
- var parts = param.replace(/\+/g, ' ').split('=');
1471
- // Firefox (pre 40) decodes `%3D` to `=`
1472
- // https://github.com/sindresorhus/query-string/pull/37
1473
- var key = parts.shift();
1474
- var val = parts.length > 0 ? parts.join('=') : undefined;
1475
-
1476
- // missing `=` should be `null`:
1477
- // http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters
1478
- val = val === undefined ? null : decodeComponent(val);
1479
-
1480
- formatter(decodeComponent(key), val, ret);
1481
- });
1482
-
1483
- return Object.keys(ret).sort().reduce(function (result, key) {
1484
- var val = ret[key];
1485
- if (Boolean(val) && typeof val === 'object' && !Array.isArray(val)) {
1486
- // Sort object keys, not values
1487
- result[key] = keysSorter(val);
1488
- } else {
1489
- result[key] = val;
1490
- }
1491
-
1492
- return result;
1493
- }, Object.create(null));
1494
- }
1495
-
1496
- exports.extract = extract;
1497
- exports.parse = parse;
1498
-
1499
- exports.stringify = function (obj, opts) {
1500
- var defaults = {
1501
- encode: true,
1502
- strict: true,
1503
- arrayFormat: 'none'
1504
- };
1505
-
1506
- opts = objectAssign(defaults, opts);
1507
-
1508
- if (opts.sort === false) {
1509
- opts.sort = function () {};
1510
- }
1511
-
1512
- var formatter = encoderForArrayFormat(opts);
1513
-
1514
- return obj ? Object.keys(obj).sort(opts.sort).map(function (key) {
1515
- var val = obj[key];
1516
-
1517
- if (val === undefined) {
1518
- return '';
1519
- }
1520
-
1521
- if (val === null) {
1522
- return encode(key, opts);
1523
- }
1524
-
1525
- if (Array.isArray(val)) {
1526
- var result = [];
1527
-
1528
- val.slice().forEach(function (val2) {
1529
- if (val2 === undefined) {
1530
- return;
1531
- }
1532
-
1533
- result.push(formatter(key, val2, result.length));
1534
- });
1535
-
1536
- return result.join('&');
1537
- }
1538
-
1539
- return encode(key, opts) + '=' + encode(val, opts);
1540
- }).filter(function (x) {
1541
- return x.length > 0;
1542
- }).join('&') : '';
1543
- };
1544
-
1545
- exports.parseUrl = function (str, opts) {
1546
- return {
1547
- url: str.split('?')[0] || '',
1548
- query: parse(extract(str), opts)
1549
- };
1550
- };
1551
-
1552
-
1553
- /***/ }),
1554
- /* 27 */
1555
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1556
-
1557
- "use strict";
1558
- /* harmony export (immutable) */ __webpack_exports__["a"] = _toConsumableArray;
1559
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayWithoutHoles__ = __webpack_require__(477);
1560
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__iterableToArray__ = __webpack_require__(216);
1561
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__unsupportedIterableToArray__ = __webpack_require__(133);
1562
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__nonIterableSpread__ = __webpack_require__(478);
1563
-
1564
-
1565
-
1566
-
1567
- function _toConsumableArray(arr) {
1568
- return Object(__WEBPACK_IMPORTED_MODULE_0__arrayWithoutHoles__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_1__iterableToArray__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_2__unsupportedIterableToArray__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_3__nonIterableSpread__["a" /* default */])();
1569
- }
1570
-
1571
- /***/ }),
1572
- /* 28 */
1573
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1574
-
1575
- "use strict";
1576
- /* harmony export (immutable) */ __webpack_exports__["a"] = ownerDocument;
1577
- function ownerDocument(node) {
1578
- return node && node.ownerDocument || document;
1579
- }
1580
-
1581
- /***/ }),
1582
- /* 29 */
1583
- /***/ (function(module, exports) {
1584
-
1585
- /**
1586
- * Checks if `value` is classified as an `Array` object.
1587
- *
1588
- * @static
1589
- * @memberOf _
1590
- * @since 0.1.0
1591
- * @category Lang
1592
- * @param {*} value The value to check.
1593
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1594
- * @example
1595
- *
1596
- * _.isArray([1, 2, 3]);
1597
- * // => true
1598
- *
1599
- * _.isArray(document.body.children);
1600
- * // => false
1601
- *
1602
- * _.isArray('abc');
1603
- * // => false
1604
- *
1605
- * _.isArray(_.noop);
1606
- * // => false
1607
- */
1608
- var isArray = Array.isArray;
1609
-
1610
- module.exports = isArray;
1611
-
1612
-
1613
- /***/ }),
1614
- /* 30 */
1615
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1616
-
1617
- "use strict";
1618
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__freeGlobal_js__ = __webpack_require__(401);
1619
-
1620
-
1621
- /** Detect free variable `self`. */
1622
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
1623
-
1624
- /** Used as a reference to the global object. */
1625
- var root = __WEBPACK_IMPORTED_MODULE_0__freeGlobal_js__["a" /* default */] || freeSelf || Function('return this')();
1626
-
1627
- /* harmony default export */ __webpack_exports__["a"] = (root);
1628
-
1629
-
1630
- /***/ }),
1631
- /* 31 */
1632
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1633
-
1634
- "use strict";
1635
- /**
1636
- * Checks if `value` is the
1637
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1638
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1639
- *
1640
- * @static
1641
- * @memberOf _
1642
- * @since 0.1.0
1643
- * @category Lang
1644
- * @param {*} value The value to check.
1645
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1646
- * @example
1647
- *
1648
- * _.isObject({});
1649
- * // => true
1650
- *
1651
- * _.isObject([1, 2, 3]);
1652
- * // => true
1653
- *
1654
- * _.isObject(_.noop);
1655
- * // => true
1656
- *
1657
- * _.isObject(null);
1658
- * // => false
1659
- */
1660
- function isObject(value) {
1661
- var type = typeof value;
1662
- return value != null && (type == 'object' || type == 'function');
1663
- }
1664
-
1665
- /* harmony default export */ __webpack_exports__["a"] = (isObject);
1666
-
1667
-
1668
- /***/ }),
1669
- /* 32 */
1670
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1671
-
1672
- "use strict";
1673
- /**
1674
- * Checks if `value` is classified as an `Array` object.
1675
- *
1676
- * @static
1677
- * @memberOf _
1678
- * @since 0.1.0
1679
- * @category Lang
1680
- * @param {*} value The value to check.
1681
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
1682
- * @example
1683
- *
1684
- * _.isArray([1, 2, 3]);
1685
- * // => true
1686
- *
1687
- * _.isArray(document.body.children);
1688
- * // => false
1689
- *
1690
- * _.isArray('abc');
1691
- * // => false
1692
- *
1693
- * _.isArray(_.noop);
1694
- * // => false
1695
- */
1696
- var isArray = Array.isArray;
1697
-
1698
- /* harmony default export */ __webpack_exports__["a"] = (isArray);
1699
-
1700
-
1701
- /***/ }),
1702
- /* 33 */
1703
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1704
-
1705
- "use strict";
1706
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return simpleCheckForValidColor; });
1707
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return toState; });
1708
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isValidHex; });
1709
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getContrastingColor; });
1710
- /* unused harmony export red */
1711
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isvalidColorString; });
1712
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_es_each__ = __webpack_require__(937);
1713
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_tinycolor2__ = __webpack_require__(945);
1714
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_tinycolor2__);
1715
-
1716
-
1717
-
1718
- var simpleCheckForValidColor = function simpleCheckForValidColor(data) {
1719
- var keysToCheck = ['r', 'g', 'b', 'a', 'h', 's', 'l', 'v'];
1720
- var checked = 0;
1721
- var passed = 0;
1722
- Object(__WEBPACK_IMPORTED_MODULE_0_lodash_es_each__["a" /* default */])(keysToCheck, function (letter) {
1723
- if (data[letter]) {
1724
- checked += 1;
1725
- if (!isNaN(data[letter])) {
1726
- passed += 1;
1727
- }
1728
- if (letter === 's' || letter === 'l') {
1729
- var percentPatt = /^\d+%$/;
1730
- if (percentPatt.test(data[letter])) {
1731
- passed += 1;
1732
- }
1733
- }
1734
- }
1735
- });
1736
- return checked === passed ? data : false;
1737
- };
1738
-
1739
- var toState = function toState(data, oldHue) {
1740
- var color = data.hex ? __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default()(data.hex) : __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default()(data);
1741
- var hsl = color.toHsl();
1742
- var hsv = color.toHsv();
1743
- var rgb = color.toRgb();
1744
- var hex = color.toHex();
1745
- if (hsl.s === 0) {
1746
- hsl.h = oldHue || 0;
1747
- hsv.h = oldHue || 0;
1748
- }
1749
- var transparent = hex === '000000' && rgb.a === 0;
1750
-
1751
- return {
1752
- hsl: hsl,
1753
- hex: transparent ? 'transparent' : '#' + hex,
1754
- rgb: rgb,
1755
- hsv: hsv,
1756
- oldHue: data.h || oldHue || hsl.h,
1757
- source: data.source
1758
- };
1759
- };
1760
-
1761
- var isValidHex = function isValidHex(hex) {
1762
- if (hex === 'transparent') {
1763
- return true;
1764
- }
1765
- // disable hex4 and hex8
1766
- var lh = String(hex).charAt(0) === '#' ? 1 : 0;
1767
- return hex.length !== 4 + lh && hex.length < 7 + lh && __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default()(hex).isValid();
1768
- };
1769
-
1770
- var getContrastingColor = function getContrastingColor(data) {
1771
- if (!data) {
1772
- return '#fff';
1773
- }
1774
- var col = toState(data);
1775
- if (col.hex === 'transparent') {
1776
- return 'rgba(0,0,0,0.4)';
1777
- }
1778
- var yiq = (col.rgb.r * 299 + col.rgb.g * 587 + col.rgb.b * 114) / 1000;
1779
- return yiq >= 128 ? '#000' : '#fff';
1780
- };
1781
-
1782
- var red = {
1783
- hsl: { a: 1, h: 0, l: 0.5, s: 1 },
1784
- hex: '#ff0000',
1785
- rgb: { r: 255, g: 0, b: 0, a: 1 },
1786
- hsv: { h: 0, s: 1, v: 1, a: 1 }
1787
- };
1788
-
1789
- var isvalidColorString = function isvalidColorString(string, type) {
1790
- var stringWithoutDegree = string.replace('°', '');
1791
- return __WEBPACK_IMPORTED_MODULE_1_tinycolor2___default()(type + ' (' + stringWithoutDegree + ')')._ok;
1792
- };
1793
-
1794
- /***/ }),
1795
- /* 34 */
1796
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1797
-
1798
- "use strict";
1799
- /* harmony export (immutable) */ __webpack_exports__["a"] = _inheritsLoose;
1800
- function _inheritsLoose(subClass, superClass) {
1801
- subClass.prototype = Object.create(superClass.prototype);
1802
- subClass.prototype.constructor = subClass;
1803
- subClass.__proto__ = superClass;
1804
- }
1805
-
1806
- /***/ }),
1807
- /* 35 */
1808
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1809
-
1810
- "use strict";
1811
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
1812
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Icon__ = __webpack_require__(455);
1813
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__Icon__["a"]; });
1814
-
1815
-
1816
- /***/ }),
1817
- /* 36 */
1818
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1819
-
1820
- "use strict";
1821
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__ = __webpack_require__(15);
1822
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__responsivePropType__ = __webpack_require__(237);
1823
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__breakpoints__ = __webpack_require__(136);
1824
-
1825
-
1826
-
1827
-
1828
- function getPath(obj, path) {
1829
- if (!path || typeof path !== 'string') {
1830
- return null;
1831
- }
1832
-
1833
- return path.split('.').reduce(function (acc, item) {
1834
- return acc && acc[item] ? acc[item] : null;
1835
- }, obj);
1836
- }
1837
-
1838
- function style(options) {
1839
- var prop = options.prop,
1840
- _options$cssProperty = options.cssProperty,
1841
- cssProperty = _options$cssProperty === void 0 ? options.prop : _options$cssProperty,
1842
- themeKey = options.themeKey,
1843
- transform = options.transform;
1844
-
1845
- var fn = function fn(props) {
1846
- if (props[prop] == null) {
1847
- return null;
1848
- }
1849
-
1850
- var propValue = props[prop];
1851
- var theme = props.theme;
1852
- var themeMapping = getPath(theme, themeKey) || {};
1853
-
1854
- var styleFromPropValue = function styleFromPropValue(propValueFinal) {
1855
- var value;
1856
-
1857
- if (typeof themeMapping === 'function') {
1858
- value = themeMapping(propValueFinal);
1859
- } else if (Array.isArray(themeMapping)) {
1860
- value = themeMapping[propValueFinal] || propValueFinal;
1861
- } else {
1862
- value = getPath(themeMapping, propValueFinal) || propValueFinal;
1863
-
1864
- if (transform) {
1865
- value = transform(value);
1866
- }
1867
- }
1868
-
1869
- if (cssProperty === false) {
1870
- return value;
1871
- }
1872
-
1873
- return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__["a" /* default */])({}, cssProperty, value);
1874
- };
1875
-
1876
- return Object(__WEBPACK_IMPORTED_MODULE_2__breakpoints__["a" /* handleBreakpoints */])(props, propValue, styleFromPropValue);
1877
- };
1878
-
1879
- 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 */]) : {};
1880
- fn.filterProps = [prop];
1881
- return fn;
1882
- }
1883
-
1884
- /* harmony default export */ __webpack_exports__["a"] = (style);
1885
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
1886
-
1887
- /***/ }),
1888
- /* 37 */
1889
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1890
-
1891
- "use strict";
1892
- /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export easing */
1893
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return duration; });
1894
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
1895
-
1896
- // Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
1897
- // to learn the context in which each easing should be used.
1898
- var easing = {
1899
- // This is the most common easing curve.
1900
- easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',
1901
- // Objects enter the screen at full velocity from off-screen and
1902
- // slowly decelerate to a resting point.
1903
- easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',
1904
- // Objects leave the screen at full velocity. They do not decelerate when off-screen.
1905
- easeIn: 'cubic-bezier(0.4, 0, 1, 1)',
1906
- // The sharp curve is used by objects that may return to the screen at any time.
1907
- sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'
1908
- }; // Follow https://material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations
1909
- // to learn when use what timing
1910
-
1911
- var duration = {
1912
- shortest: 150,
1913
- shorter: 200,
1914
- short: 250,
1915
- // most basic recommended timing
1916
- standard: 300,
1917
- // this is to be used in complex animations
1918
- complex: 375,
1919
- // recommended when something is entering screen
1920
- enteringScreen: 225,
1921
- // recommended when something is leaving screen
1922
- leavingScreen: 195
1923
- };
1924
-
1925
- function formatMs(milliseconds) {
1926
- return "".concat(Math.round(milliseconds), "ms");
1927
- }
1928
- /**
1929
- * @param {string|Array} props
1930
- * @param {object} param
1931
- * @param {string} param.prop
1932
- * @param {number} param.duration
1933
- * @param {string} param.easing
1934
- * @param {number} param.delay
1935
- */
1936
-
1937
-
1938
- /* harmony default export */ __webpack_exports__["a"] = ({
1939
- easing: easing,
1940
- duration: duration,
1941
- create: function create() {
1942
- var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['all'];
1943
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1944
-
1945
- var _options$duration = options.duration,
1946
- durationOption = _options$duration === void 0 ? duration.standard : _options$duration,
1947
- _options$easing = options.easing,
1948
- easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing,
1949
- _options$delay = options.delay,
1950
- delay = _options$delay === void 0 ? 0 : _options$delay,
1951
- other = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(options, ["duration", "easing", "delay"]);
1952
-
1953
- if (process.env.NODE_ENV !== 'production') {
1954
- var isString = function isString(value) {
1955
- return typeof value === 'string';
1956
- };
1957
-
1958
- var isNumber = function isNumber(value) {
1959
- return !isNaN(parseFloat(value));
1960
- };
1961
-
1962
- if (!isString(props) && !Array.isArray(props)) {
1963
- console.error('Material-UI: Argument "props" must be a string or Array.');
1964
- }
1965
-
1966
- if (!isNumber(durationOption) && !isString(durationOption)) {
1967
- console.error("Material-UI: Argument \"duration\" must be a number or a string but found ".concat(durationOption, "."));
1968
- }
1969
-
1970
- if (!isString(easingOption)) {
1971
- console.error('Material-UI: Argument "easing" must be a string.');
1972
- }
1973
-
1974
- if (!isNumber(delay) && !isString(delay)) {
1975
- console.error('Material-UI: Argument "delay" must be a number or a string.');
1976
- }
1977
-
1978
- if (Object.keys(other).length !== 0) {
1979
- console.error("Material-UI: Unrecognized argument(s) [".concat(Object.keys(other).join(','), "]."));
1980
- }
1981
- }
1982
-
1983
- return (Array.isArray(props) ? props : [props]).map(function (animatedProp) {
1984
- return "".concat(animatedProp, " ").concat(typeof durationOption === 'string' ? durationOption : formatMs(durationOption), " ").concat(easingOption, " ").concat(typeof delay === 'string' ? delay : formatMs(delay));
1985
- }).join(',');
1986
- },
1987
- getAutoHeightDuration: function getAutoHeightDuration(height) {
1988
- if (!height) {
1989
- return 0;
1990
- }
1991
-
1992
- 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
1993
-
1994
- return Math.round((4 + 15 * Math.pow(constant, 0.25) + constant / 5) * 10);
1995
- }
1996
- });
1997
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
1998
-
1999
- /***/ }),
2000
- /* 38 */
2001
- /***/ (function(module, exports, __webpack_require__) {
2002
-
2003
- var freeGlobal = __webpack_require__(376);
2004
-
2005
- /** Detect free variable `self`. */
2006
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
2007
-
2008
- /** Used as a reference to the global object. */
2009
- var root = freeGlobal || freeSelf || Function('return this')();
2010
-
2011
- module.exports = root;
2012
-
2013
-
2014
- /***/ }),
2015
- /* 39 */
2016
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2017
-
2018
- "use strict";
2019
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
2020
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__merge__ = __webpack_require__(91);
2021
-
2022
-
2023
-
2024
- function compose() {
2025
- for (var _len = arguments.length, styles = new Array(_len), _key = 0; _key < _len; _key++) {
2026
- styles[_key] = arguments[_key];
2027
- }
2028
-
2029
- var fn = function fn(props) {
2030
- return styles.reduce(function (acc, style) {
2031
- var output = style(props);
2032
-
2033
- if (output) {
2034
- return Object(__WEBPACK_IMPORTED_MODULE_1__merge__["a" /* default */])(acc, output);
2035
- }
2036
-
2037
- return acc;
2038
- }, {});
2039
- }; // Alternative approach that doesn't yield any performance gain.
2040
- // const handlers = styles.reduce((acc, style) => {
2041
- // style.filterProps.forEach(prop => {
2042
- // acc[prop] = style;
2043
- // });
2044
- // return acc;
2045
- // }, {});
2046
- // const fn = props => {
2047
- // return Object.keys(props).reduce((acc, prop) => {
2048
- // if (handlers[prop]) {
2049
- // return merge(acc, handlers[prop](props));
2050
- // }
2051
- // return acc;
2052
- // }, {});
2053
- // };
2054
-
2055
-
2056
- fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce(function (acc, style) {
2057
- return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])(acc, style.propTypes);
2058
- }, {}) : {};
2059
- fn.filterProps = styles.reduce(function (acc, style) {
2060
- return acc.concat(style.filterProps);
2061
- }, []);
2062
- return fn;
2063
- }
2064
-
2065
- /* harmony default export */ __webpack_exports__["a"] = (compose);
2066
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
2067
-
2068
- /***/ }),
2069
- /* 40 */
2070
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2071
-
2072
- "use strict";
2073
- /* harmony export (immutable) */ __webpack_exports__["a"] = useEventCallback;
2074
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
2075
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
2076
-
2077
- var useEnhancedEffect = typeof window !== 'undefined' ? __WEBPACK_IMPORTED_MODULE_0_react__["useLayoutEffect"] : __WEBPACK_IMPORTED_MODULE_0_react__["useEffect"];
2078
- /**
2079
- * https://github.com/facebook/react/issues/14099#issuecomment-440013892
2080
- *
2081
- * @param {function} fn
2082
- */
2083
-
2084
- function useEventCallback(fn) {
2085
- var ref = __WEBPACK_IMPORTED_MODULE_0_react__["useRef"](fn);
2086
- useEnhancedEffect(function () {
2087
- ref.current = fn;
2088
- });
2089
- return __WEBPACK_IMPORTED_MODULE_0_react__["useCallback"](function () {
2090
- return (0, ref.current).apply(void 0, arguments);
2091
- }, []);
2092
- }
2093
-
2094
- /***/ }),
2095
- /* 41 */
2096
- /***/ (function(module, exports) {
2097
-
2098
- /**
2099
- * Checks if `value` is object-like. A value is object-like if it's not `null`
2100
- * and has a `typeof` result of "object".
2101
- *
2102
- * @static
2103
- * @memberOf _
2104
- * @since 4.0.0
2105
- * @category Lang
2106
- * @param {*} value The value to check.
2107
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
2108
- * @example
2109
- *
2110
- * _.isObjectLike({});
2111
- * // => true
2112
- *
2113
- * _.isObjectLike([1, 2, 3]);
2114
- * // => true
2115
- *
2116
- * _.isObjectLike(_.noop);
2117
- * // => false
2118
- *
2119
- * _.isObjectLike(null);
2120
- * // => false
2121
- */
2122
- function isObjectLike(value) {
2123
- return value != null && typeof value == 'object';
2124
- }
2125
-
2126
- module.exports = isObjectLike;
2127
-
2128
-
2129
- /***/ }),
2130
- /* 42 */
2131
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2132
-
2133
- "use strict";
2134
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
2135
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserRouter", function() { return BrowserRouter; });
2136
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HashRouter", function() { return HashRouter; });
2137
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Link", function() { return Link; });
2138
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NavLink", function() { return NavLink; });
2139
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react_router__ = __webpack_require__(209);
2140
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "MemoryRouter", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["a"]; });
2141
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Prompt", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["b"]; });
2142
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Redirect", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["c"]; });
2143
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Route", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["d"]; });
2144
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Router", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["e"]; });
2145
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "StaticRouter", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["f"]; });
2146
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Switch", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["g"]; });
2147
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "generatePath", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["i"]; });
2148
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "matchPath", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["j"]; });
2149
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "useHistory", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["k"]; });
2150
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "useLocation", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["l"]; });
2151
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "useParams", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["m"]; });
2152
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "useRouteMatch", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["n"]; });
2153
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "withRouter", function() { return __WEBPACK_IMPORTED_MODULE_0_react_router__["o"]; });
2154
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(34);
2155
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
2156
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
2157
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_history__ = __webpack_require__(210);
2158
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(2);
2159
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);
2160
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_tiny_warning__ = __webpack_require__(48);
2161
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
2162
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(43);
2163
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_tiny_invariant__ = __webpack_require__(129);
2164
-
2165
-
2166
-
2167
-
2168
-
2169
-
2170
-
2171
-
2172
-
2173
-
2174
-
2175
- /**
2176
- * The public API for a <Router> that uses HTML5 history.
2177
- */
2178
-
2179
- var BrowserRouter =
2180
- /*#__PURE__*/
2181
- function (_React$Component) {
2182
- Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(BrowserRouter, _React$Component);
2183
-
2184
- function BrowserRouter() {
2185
- var _this;
2186
-
2187
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2188
- args[_key] = arguments[_key];
2189
- }
2190
-
2191
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
2192
- _this.history = Object(__WEBPACK_IMPORTED_MODULE_3_history__["a" /* createBrowserHistory */])(_this.props);
2193
- return _this;
2194
- }
2195
-
2196
- var _proto = BrowserRouter.prototype;
2197
-
2198
- _proto.render = function render() {
2199
- return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["e" /* Router */], {
2200
- history: this.history,
2201
- children: this.props.children
2202
- });
2203
- };
2204
-
2205
- return BrowserRouter;
2206
- }(__WEBPACK_IMPORTED_MODULE_2_react___default.a.Component);
2207
-
2208
- if (process.env.NODE_ENV !== "production") {
2209
- BrowserRouter.propTypes = {
2210
- basename: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
2211
- children: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node,
2212
- forceRefresh: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
2213
- getUserConfirmation: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
2214
- keyLength: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number
2215
- };
2216
-
2217
- BrowserRouter.prototype.componentDidMount = function () {
2218
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_5_tiny_warning__["a" /* default */])(!this.props.history, "<BrowserRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { BrowserRouter as Router }`.") : void 0;
2219
- };
2220
- }
2221
-
2222
- /**
2223
- * The public API for a <Router> that uses window.location.hash.
2224
- */
2225
-
2226
- var HashRouter =
2227
- /*#__PURE__*/
2228
- function (_React$Component) {
2229
- Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(HashRouter, _React$Component);
2230
-
2231
- function HashRouter() {
2232
- var _this;
2233
-
2234
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2235
- args[_key] = arguments[_key];
2236
- }
2237
-
2238
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
2239
- _this.history = Object(__WEBPACK_IMPORTED_MODULE_3_history__["b" /* createHashHistory */])(_this.props);
2240
- return _this;
2241
- }
2242
-
2243
- var _proto = HashRouter.prototype;
2244
-
2245
- _proto.render = function render() {
2246
- return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["e" /* Router */], {
2247
- history: this.history,
2248
- children: this.props.children
2249
- });
2250
- };
2251
-
2252
- return HashRouter;
2253
- }(__WEBPACK_IMPORTED_MODULE_2_react___default.a.Component);
2254
-
2255
- if (process.env.NODE_ENV !== "production") {
2256
- HashRouter.propTypes = {
2257
- basename: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
2258
- children: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node,
2259
- getUserConfirmation: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
2260
- hashType: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf(["hashbang", "noslash", "slash"])
2261
- };
2262
-
2263
- HashRouter.prototype.componentDidMount = function () {
2264
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_5_tiny_warning__["a" /* default */])(!this.props.history, "<HashRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { HashRouter as Router }`.") : void 0;
2265
- };
2266
- }
2267
-
2268
- var resolveToLocation = function resolveToLocation(to, currentLocation) {
2269
- return typeof to === "function" ? to(currentLocation) : to;
2270
- };
2271
- var normalizeToLocation = function normalizeToLocation(to, currentLocation) {
2272
- return typeof to === "string" ? Object(__WEBPACK_IMPORTED_MODULE_3_history__["c" /* createLocation */])(to, null, null, currentLocation) : to;
2273
- };
2274
-
2275
- var forwardRefShim = function forwardRefShim(C) {
2276
- return C;
2277
- };
2278
-
2279
- var forwardRef = __WEBPACK_IMPORTED_MODULE_2_react___default.a.forwardRef;
2280
-
2281
- if (typeof forwardRef === "undefined") {
2282
- forwardRef = forwardRefShim;
2283
- }
2284
-
2285
- function isModifiedEvent(event) {
2286
- return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
2287
- }
2288
-
2289
- var LinkAnchor = forwardRef(function (_ref, forwardedRef) {
2290
- var innerRef = _ref.innerRef,
2291
- navigate = _ref.navigate,
2292
- _onClick = _ref.onClick,
2293
- rest = Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_ref, ["innerRef", "navigate", "onClick"]);
2294
-
2295
- var target = rest.target;
2296
-
2297
- var props = Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__["a" /* default */])({}, rest, {
2298
- onClick: function onClick(event) {
2299
- try {
2300
- if (_onClick) _onClick(event);
2301
- } catch (ex) {
2302
- event.preventDefault();
2303
- throw ex;
2304
- }
2305
-
2306
- if (!event.defaultPrevented && // onClick prevented default
2307
- event.button === 0 && ( // ignore everything but left clicks
2308
- !target || target === "_self") && // let browser handle "target=_blank" etc.
2309
- !isModifiedEvent(event) // ignore clicks with modifier keys
2310
- ) {
2311
- event.preventDefault();
2312
- navigate();
2313
- }
2314
- }
2315
- }); // React 15 compat
2316
-
2317
-
2318
- if (forwardRefShim !== forwardRef) {
2319
- props.ref = forwardedRef || innerRef;
2320
- } else {
2321
- props.ref = innerRef;
2322
- }
2323
- /* eslint-disable-next-line jsx-a11y/anchor-has-content */
2324
-
2325
-
2326
- return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement("a", props);
2327
- });
2328
-
2329
- if (process.env.NODE_ENV !== "production") {
2330
- LinkAnchor.displayName = "LinkAnchor";
2331
- }
2332
- /**
2333
- * The public API for rendering a history-aware <a>.
2334
- */
2335
-
2336
-
2337
- var Link = forwardRef(function (_ref2, forwardedRef) {
2338
- var _ref2$component = _ref2.component,
2339
- component = _ref2$component === void 0 ? LinkAnchor : _ref2$component,
2340
- replace = _ref2.replace,
2341
- to = _ref2.to,
2342
- innerRef = _ref2.innerRef,
2343
- rest = Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_ref2, ["component", "replace", "to", "innerRef"]);
2344
-
2345
- return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["h" /* __RouterContext */].Consumer, null, function (context) {
2346
- !context ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_8_tiny_invariant__["a" /* default */])(false, "You should not use <Link> outside a <Router>") : Object(__WEBPACK_IMPORTED_MODULE_8_tiny_invariant__["a" /* default */])(false) : void 0;
2347
- var history = context.history;
2348
- var location = normalizeToLocation(resolveToLocation(to, context.location), context.location);
2349
- var href = location ? history.createHref(location) : "";
2350
-
2351
- var props = Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__["a" /* default */])({}, rest, {
2352
- href: href,
2353
- navigate: function navigate() {
2354
- var location = resolveToLocation(to, context.location);
2355
- var method = replace ? history.replace : history.push;
2356
- method(location);
2357
- }
2358
- }); // React 15 compat
2359
-
2360
-
2361
- if (forwardRefShim !== forwardRef) {
2362
- props.ref = forwardedRef || innerRef;
2363
- } else {
2364
- props.innerRef = innerRef;
2365
- }
2366
-
2367
- return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(component, props);
2368
- });
2369
- });
2370
-
2371
- if (process.env.NODE_ENV !== "production") {
2372
- var toType = __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func]);
2373
- var refType = __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.shape({
2374
- current: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.any
2375
- })]);
2376
- Link.displayName = "Link";
2377
- Link.propTypes = {
2378
- innerRef: refType,
2379
- onClick: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
2380
- replace: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
2381
- target: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
2382
- to: toType.isRequired
2383
- };
2384
- }
2385
-
2386
- var forwardRefShim$1 = function forwardRefShim(C) {
2387
- return C;
2388
- };
2389
-
2390
- var forwardRef$1 = __WEBPACK_IMPORTED_MODULE_2_react___default.a.forwardRef;
2391
-
2392
- if (typeof forwardRef$1 === "undefined") {
2393
- forwardRef$1 = forwardRefShim$1;
2394
- }
2395
-
2396
- function joinClassnames() {
2397
- for (var _len = arguments.length, classnames = new Array(_len), _key = 0; _key < _len; _key++) {
2398
- classnames[_key] = arguments[_key];
2399
- }
2400
-
2401
- return classnames.filter(function (i) {
2402
- return i;
2403
- }).join(" ");
2404
- }
2405
- /**
2406
- * A <Link> wrapper that knows if it's "active" or not.
2407
- */
2408
-
2409
-
2410
- var NavLink = forwardRef$1(function (_ref, forwardedRef) {
2411
- var _ref$ariaCurrent = _ref["aria-current"],
2412
- ariaCurrent = _ref$ariaCurrent === void 0 ? "page" : _ref$ariaCurrent,
2413
- _ref$activeClassName = _ref.activeClassName,
2414
- activeClassName = _ref$activeClassName === void 0 ? "active" : _ref$activeClassName,
2415
- activeStyle = _ref.activeStyle,
2416
- classNameProp = _ref.className,
2417
- exact = _ref.exact,
2418
- isActiveProp = _ref.isActive,
2419
- locationProp = _ref.location,
2420
- sensitive = _ref.sensitive,
2421
- strict = _ref.strict,
2422
- styleProp = _ref.style,
2423
- to = _ref.to,
2424
- innerRef = _ref.innerRef,
2425
- rest = Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_ref, ["aria-current", "activeClassName", "activeStyle", "className", "exact", "isActive", "location", "sensitive", "strict", "style", "to", "innerRef"]);
2426
-
2427
- return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_0_react_router__["h" /* __RouterContext */].Consumer, null, function (context) {
2428
- !context ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_8_tiny_invariant__["a" /* default */])(false, "You should not use <NavLink> outside a <Router>") : Object(__WEBPACK_IMPORTED_MODULE_8_tiny_invariant__["a" /* default */])(false) : void 0;
2429
- var currentLocation = locationProp || context.location;
2430
- var toLocation = normalizeToLocation(resolveToLocation(to, currentLocation), currentLocation);
2431
- var path = toLocation.pathname; // Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202
2432
-
2433
- var escapedPath = path && path.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
2434
- var match = escapedPath ? Object(__WEBPACK_IMPORTED_MODULE_0_react_router__["j" /* matchPath */])(currentLocation.pathname, {
2435
- path: escapedPath,
2436
- exact: exact,
2437
- sensitive: sensitive,
2438
- strict: strict
2439
- }) : null;
2440
- var isActive = !!(isActiveProp ? isActiveProp(match, currentLocation) : match);
2441
- var className = isActive ? joinClassnames(classNameProp, activeClassName) : classNameProp;
2442
- var style = isActive ? Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__["a" /* default */])({}, styleProp, {}, activeStyle) : styleProp;
2443
-
2444
- var props = Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__["a" /* default */])({
2445
- "aria-current": isActive && ariaCurrent || null,
2446
- className: className,
2447
- style: style,
2448
- to: toLocation
2449
- }, rest); // React 15 compat
2450
-
2451
-
2452
- if (forwardRefShim$1 !== forwardRef$1) {
2453
- props.ref = forwardedRef || innerRef;
2454
- } else {
2455
- props.innerRef = innerRef;
2456
- }
2457
-
2458
- return __WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(Link, props);
2459
- });
2460
- });
2461
-
2462
- if (process.env.NODE_ENV !== "production") {
2463
- NavLink.displayName = "NavLink";
2464
- var ariaCurrentType = __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf(["page", "step", "location", "date", "time", "true"]);
2465
- NavLink.propTypes = Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_extends__["a" /* default */])({}, Link.propTypes, {
2466
- "aria-current": ariaCurrentType,
2467
- activeClassName: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
2468
- activeStyle: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
2469
- className: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
2470
- exact: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
2471
- isActive: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
2472
- location: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
2473
- sensitive: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
2474
- strict: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
2475
- style: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object
2476
- });
2477
- }
2478
-
2479
-
2480
- //# sourceMappingURL=react-router-dom.js.map
2481
-
2482
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
2483
-
2484
- /***/ }),
2485
- /* 43 */
2486
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2487
-
2488
- "use strict";
2489
- /* harmony export (immutable) */ __webpack_exports__["a"] = _objectWithoutPropertiesLoose;
2490
- function _objectWithoutPropertiesLoose(source, excluded) {
2491
- if (source == null) return {};
2492
- var target = {};
2493
- var sourceKeys = Object.keys(source);
2494
- var key, i;
2495
-
2496
- for (i = 0; i < sourceKeys.length; i++) {
2497
- key = sourceKeys[i];
2498
- if (excluded.indexOf(key) >= 0) continue;
2499
- target[key] = source[key];
2500
- }
2501
-
2502
- return target;
2503
- }
2504
-
2505
- /***/ }),
2506
- /* 44 */
2507
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2508
-
2509
- "use strict";
2510
- /* harmony export (immutable) */ __webpack_exports__["a"] = _typeof;
2511
- function _typeof(obj) {
2512
- "@babel/helpers - typeof";
2513
-
2514
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
2515
- _typeof = function _typeof(obj) {
2516
- return typeof obj;
2517
- };
2518
- } else {
2519
- _typeof = function _typeof(obj) {
2520
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
2521
- };
2522
- }
2523
-
2524
- return _typeof(obj);
2525
- }
2526
-
2527
- /***/ }),
2528
- /* 45 */
2529
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2530
-
2531
- "use strict";
2532
- /* harmony export (immutable) */ __webpack_exports__["a"] = _createClass;
2533
- function _defineProperties(target, props) {
2534
- for (var i = 0; i < props.length; i++) {
2535
- var descriptor = props[i];
2536
- descriptor.enumerable = descriptor.enumerable || false;
2537
- descriptor.configurable = true;
2538
- if ("value" in descriptor) descriptor.writable = true;
2539
- Object.defineProperty(target, descriptor.key, descriptor);
2540
- }
2541
- }
2542
-
2543
- function _createClass(Constructor, protoProps, staticProps) {
2544
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
2545
- if (staticProps) _defineProperties(Constructor, staticProps);
2546
- return Constructor;
2547
- }
2548
-
2549
- /***/ }),
2550
- /* 46 */
2551
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2552
-
2553
- "use strict";
2554
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = useControlled;
2555
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
2556
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
2557
- /* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */
2558
-
2559
- function useControlled(_ref) {
2560
- var controlled = _ref.controlled,
2561
- defaultProp = _ref.default,
2562
- name = _ref.name,
2563
- _ref$state = _ref.state,
2564
- state = _ref$state === void 0 ? 'value' : _ref$state;
2565
-
2566
- var _React$useRef = __WEBPACK_IMPORTED_MODULE_0_react__["useRef"](controlled !== undefined),
2567
- isControlled = _React$useRef.current;
2568
-
2569
- var _React$useState = __WEBPACK_IMPORTED_MODULE_0_react__["useState"](defaultProp),
2570
- valueState = _React$useState[0],
2571
- setValue = _React$useState[1];
2572
-
2573
- var value = isControlled ? controlled : valueState;
2574
-
2575
- if (process.env.NODE_ENV !== 'production') {
2576
- __WEBPACK_IMPORTED_MODULE_0_react__["useEffect"](function () {
2577
- if (isControlled !== (controlled !== undefined)) {
2578
- 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'));
2579
- }
2580
- }, [controlled]);
2581
-
2582
- var _React$useRef2 = __WEBPACK_IMPORTED_MODULE_0_react__["useRef"](defaultProp),
2583
- defaultValue = _React$useRef2.current;
2584
-
2585
- __WEBPACK_IMPORTED_MODULE_0_react__["useEffect"](function () {
2586
- if (!isControlled && defaultValue !== defaultProp) {
2587
- 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'));
2588
- }
2589
- }, [JSON.stringify(defaultProp)]);
2590
- }
2591
-
2592
- var setValueIfUncontrolled = __WEBPACK_IMPORTED_MODULE_0_react__["useCallback"](function (newValue) {
2593
- if (!isControlled) {
2594
- setValue(newValue);
2595
- }
2596
- }, []);
2597
- return [value, setValueIfUncontrolled];
2598
- }
2599
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
2600
-
2601
- /***/ }),
2602
- /* 47 */
2603
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2604
-
2605
- "use strict";
2606
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__IconButton__ = __webpack_require__(559);
2607
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__IconButton__["a"]; });
2608
-
2609
-
2610
- /***/ }),
2611
- /* 48 */
2612
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2613
-
2614
- "use strict";
2615
- /* WEBPACK VAR INJECTION */(function(process) {var isProduction = process.env.NODE_ENV === 'production';
2616
- function warning(condition, message) {
2617
- if (!isProduction) {
2618
- if (condition) {
2619
- return;
2620
- }
2621
-
2622
- var text = "Warning: " + message;
2623
-
2624
- if (typeof console !== 'undefined') {
2625
- console.warn(text);
2626
- }
2627
-
2628
- try {
2629
- throw Error(text);
2630
- } catch (x) {}
2631
- }
2632
- }
2633
-
2634
- /* harmony default export */ __webpack_exports__["a"] = (warning);
2635
-
2636
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
2637
-
2638
- /***/ }),
2639
- /* 49 */
2640
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2641
-
2642
- "use strict";
2643
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return RuleList; });
2644
- /* unused harmony export SheetsManager */
2645
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return SheetsRegistry; });
2646
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return create; });
2647
- /* unused harmony export createGenerateId */
2648
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return createRule; });
2649
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getDynamicStyles; });
2650
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return hasCSSTOMSupport; });
2651
- /* unused harmony export sheets */
2652
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return toCssValue; });
2653
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
2654
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_is_in_browser__ = __webpack_require__(214);
2655
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_tiny_warning__ = __webpack_require__(48);
2656
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_createClass__ = __webpack_require__(45);
2657
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(34);
2658
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_assertThisInitialized__ = __webpack_require__(88);
2659
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(43);
2660
-
2661
-
2662
-
2663
-
2664
-
2665
-
2666
-
2667
-
2668
- var plainObjectConstrurctor = {}.constructor;
2669
- function cloneStyle(style) {
2670
- if (style == null || typeof style !== 'object') return style;
2671
- if (Array.isArray(style)) return style.map(cloneStyle);
2672
- if (style.constructor !== plainObjectConstrurctor) return style;
2673
- var newStyle = {};
2674
-
2675
- for (var name in style) {
2676
- newStyle[name] = cloneStyle(style[name]);
2677
- }
2678
-
2679
- return newStyle;
2680
- }
2681
-
2682
- /**
2683
- * Create a rule instance.
2684
- */
2685
-
2686
- function createRule(name, decl, options) {
2687
- if (name === void 0) {
2688
- name = 'unnamed';
2689
- }
2690
-
2691
- var jss = options.jss;
2692
- var declCopy = cloneStyle(decl);
2693
- var rule = jss.plugins.onCreateRule(name, declCopy, options);
2694
- if (rule) return rule; // It is an at-rule and it has no instance.
2695
-
2696
- if (name[0] === '@') {
2697
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Unknown rule " + name) : void 0;
2698
- }
2699
-
2700
- return null;
2701
- }
2702
-
2703
- var join = function join(value, by) {
2704
- var result = '';
2705
-
2706
- for (var i = 0; i < value.length; i++) {
2707
- // Remove !important from the value, it will be readded later.
2708
- if (value[i] === '!important') break;
2709
- if (result) result += by;
2710
- result += value[i];
2711
- }
2712
-
2713
- return result;
2714
- };
2715
-
2716
- /**
2717
- * Converts array values to string.
2718
- *
2719
- * `margin: [['5px', '10px']]` > `margin: 5px 10px;`
2720
- * `border: ['1px', '2px']` > `border: 1px, 2px;`
2721
- * `margin: [['5px', '10px'], '!important']` > `margin: 5px 10px !important;`
2722
- * `color: ['red', !important]` > `color: red !important;`
2723
- */
2724
- var toCssValue = function toCssValue(value, ignoreImportant) {
2725
- if (ignoreImportant === void 0) {
2726
- ignoreImportant = false;
2727
- }
2728
-
2729
- if (!Array.isArray(value)) return value;
2730
- var cssValue = ''; // Support space separated values via `[['5px', '10px']]`.
2731
-
2732
- if (Array.isArray(value[0])) {
2733
- for (var i = 0; i < value.length; i++) {
2734
- if (value[i] === '!important') break;
2735
- if (cssValue) cssValue += ', ';
2736
- cssValue += join(value[i], ' ');
2737
- }
2738
- } else cssValue = join(value, ', '); // Add !important, because it was ignored.
2739
-
2740
-
2741
- if (!ignoreImportant && value[value.length - 1] === '!important') {
2742
- cssValue += ' !important';
2743
- }
2744
-
2745
- return cssValue;
2746
- };
2747
-
2748
- /**
2749
- * Indent a string.
2750
- * http://jsperf.com/array-join-vs-for
2751
- */
2752
- function indentStr(str, indent) {
2753
- var result = '';
2754
-
2755
- for (var index = 0; index < indent; index++) {
2756
- result += ' ';
2757
- }
2758
-
2759
- return result + str;
2760
- }
2761
- /**
2762
- * Converts a Rule to CSS string.
2763
- */
2764
-
2765
-
2766
- function toCss(selector, style, options) {
2767
- if (options === void 0) {
2768
- options = {};
2769
- }
2770
-
2771
- var result = '';
2772
- if (!style) return result;
2773
- var _options = options,
2774
- _options$indent = _options.indent,
2775
- indent = _options$indent === void 0 ? 0 : _options$indent;
2776
- var fallbacks = style.fallbacks;
2777
- if (selector) indent++; // Apply fallbacks first.
2778
-
2779
- if (fallbacks) {
2780
- // Array syntax {fallbacks: [{prop: value}]}
2781
- if (Array.isArray(fallbacks)) {
2782
- for (var index = 0; index < fallbacks.length; index++) {
2783
- var fallback = fallbacks[index];
2784
-
2785
- for (var prop in fallback) {
2786
- var value = fallback[prop];
2787
-
2788
- if (value != null) {
2789
- if (result) result += '\n';
2790
- result += "" + indentStr(prop + ": " + toCssValue(value) + ";", indent);
2791
- }
2792
- }
2793
- }
2794
- } else {
2795
- // Object syntax {fallbacks: {prop: value}}
2796
- for (var _prop in fallbacks) {
2797
- var _value = fallbacks[_prop];
2798
-
2799
- if (_value != null) {
2800
- if (result) result += '\n';
2801
- result += "" + indentStr(_prop + ": " + toCssValue(_value) + ";", indent);
2802
- }
2803
- }
2804
- }
2805
- }
2806
-
2807
- for (var _prop2 in style) {
2808
- var _value2 = style[_prop2];
2809
-
2810
- if (_value2 != null && _prop2 !== 'fallbacks') {
2811
- if (result) result += '\n';
2812
- result += "" + indentStr(_prop2 + ": " + toCssValue(_value2) + ";", indent);
2813
- }
2814
- } // Allow empty style in this case, because properties will be added dynamically.
2815
-
2816
-
2817
- if (!result && !options.allowEmpty) return result; // When rule is being stringified before selector was defined.
2818
-
2819
- if (!selector) return result;
2820
- indent--;
2821
- if (result) result = "\n" + result + "\n";
2822
- return indentStr(selector + " {" + result, indent) + indentStr('}', indent);
2823
- }
2824
-
2825
- var escapeRegex = /([[\].#*$><+~=|^:(),"'`\s])/g;
2826
- var nativeEscape = typeof CSS !== 'undefined' && CSS.escape;
2827
- var escape = (function (str) {
2828
- return nativeEscape ? nativeEscape(str) : str.replace(escapeRegex, '\\$1');
2829
- });
2830
-
2831
- var BaseStyleRule =
2832
- /*#__PURE__*/
2833
- function () {
2834
- function BaseStyleRule(key, style, options) {
2835
- this.type = 'style';
2836
- this.key = void 0;
2837
- this.isProcessed = false;
2838
- this.style = void 0;
2839
- this.renderer = void 0;
2840
- this.renderable = void 0;
2841
- this.options = void 0;
2842
- var sheet = options.sheet,
2843
- Renderer = options.Renderer;
2844
- this.key = key;
2845
- this.options = options;
2846
- this.style = style;
2847
- if (sheet) this.renderer = sheet.renderer;else if (Renderer) this.renderer = new Renderer();
2848
- }
2849
- /**
2850
- * Get or set a style property.
2851
- */
2852
-
2853
-
2854
- var _proto = BaseStyleRule.prototype;
2855
-
2856
- _proto.prop = function prop(name, value, options) {
2857
- // It's a getter.
2858
- if (value === undefined) return this.style[name]; // Don't do anything if the value has not changed.
2859
-
2860
- var force = options ? options.force : false;
2861
- if (!force && this.style[name] === value) return this;
2862
- var newValue = value;
2863
-
2864
- if (!options || options.process !== false) {
2865
- newValue = this.options.jss.plugins.onChangeValue(value, name, this);
2866
- }
2867
-
2868
- var isEmpty = newValue == null || newValue === false;
2869
- var isDefined = name in this.style; // Value is empty and wasn't defined before.
2870
-
2871
- if (isEmpty && !isDefined && !force) return this; // We are going to remove this value.
2872
-
2873
- var remove = isEmpty && isDefined;
2874
- if (remove) delete this.style[name];else this.style[name] = newValue; // Renderable is defined if StyleSheet option `link` is true.
2875
-
2876
- if (this.renderable && this.renderer) {
2877
- if (remove) this.renderer.removeProperty(this.renderable, name);else this.renderer.setProperty(this.renderable, name, newValue);
2878
- return this;
2879
- }
2880
-
2881
- var sheet = this.options.sheet;
2882
-
2883
- if (sheet && sheet.attached) {
2884
- 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;
2885
- }
2886
-
2887
- return this;
2888
- };
2889
-
2890
- return BaseStyleRule;
2891
- }();
2892
- var StyleRule =
2893
- /*#__PURE__*/
2894
- function (_BaseStyleRule) {
2895
- Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(StyleRule, _BaseStyleRule);
2896
-
2897
- function StyleRule(key, style, options) {
2898
- var _this;
2899
-
2900
- _this = _BaseStyleRule.call(this, key, style, options) || this;
2901
- _this.selectorText = void 0;
2902
- _this.id = void 0;
2903
- _this.renderable = void 0;
2904
- var selector = options.selector,
2905
- scoped = options.scoped,
2906
- sheet = options.sheet,
2907
- generateId = options.generateId;
2908
-
2909
- if (selector) {
2910
- _this.selectorText = selector;
2911
- } else if (scoped !== false) {
2912
- _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);
2913
- _this.selectorText = "." + escape(_this.id);
2914
- }
2915
-
2916
- return _this;
2917
- }
2918
- /**
2919
- * Set selector string.
2920
- * Attention: use this with caution. Most browsers didn't implement
2921
- * selectorText setter, so this may result in rerendering of entire Style Sheet.
2922
- */
2923
-
2924
-
2925
- var _proto2 = StyleRule.prototype;
2926
-
2927
- /**
2928
- * Apply rule to an element inline.
2929
- */
2930
- _proto2.applyTo = function applyTo(renderable) {
2931
- var renderer = this.renderer;
2932
-
2933
- if (renderer) {
2934
- var json = this.toJSON();
2935
-
2936
- for (var prop in json) {
2937
- renderer.setProperty(renderable, prop, json[prop]);
2938
- }
2939
- }
2940
-
2941
- return this;
2942
- }
2943
- /**
2944
- * Returns JSON representation of the rule.
2945
- * Fallbacks are not supported.
2946
- * Useful for inline styles.
2947
- */
2948
- ;
2949
-
2950
- _proto2.toJSON = function toJSON() {
2951
- var json = {};
2952
-
2953
- for (var prop in this.style) {
2954
- var value = this.style[prop];
2955
- if (typeof value !== 'object') json[prop] = value;else if (Array.isArray(value)) json[prop] = toCssValue(value);
2956
- }
2957
-
2958
- return json;
2959
- }
2960
- /**
2961
- * Generates a CSS string.
2962
- */
2963
- ;
2964
-
2965
- _proto2.toString = function toString(options) {
2966
- var sheet = this.options.sheet;
2967
- var link = sheet ? sheet.options.link : false;
2968
- var opts = link ? Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
2969
- allowEmpty: true
2970
- }) : options;
2971
- return toCss(this.selectorText, this.style, opts);
2972
- };
2973
-
2974
- Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_createClass__["a" /* default */])(StyleRule, [{
2975
- key: "selector",
2976
- set: function set(selector) {
2977
- if (selector === this.selectorText) return;
2978
- this.selectorText = selector;
2979
- var renderer = this.renderer,
2980
- renderable = this.renderable;
2981
- if (!renderable || !renderer) return;
2982
- var hasChanged = renderer.setSelector(renderable, selector); // If selector setter is not implemented, rerender the rule.
2983
-
2984
- if (!hasChanged) {
2985
- renderer.replaceRule(renderable, this);
2986
- }
2987
- }
2988
- /**
2989
- * Get selector string.
2990
- */
2991
- ,
2992
- get: function get() {
2993
- return this.selectorText;
2994
- }
2995
- }]);
2996
-
2997
- return StyleRule;
2998
- }(BaseStyleRule);
2999
- var pluginStyleRule = {
3000
- onCreateRule: function onCreateRule(name, style, options) {
3001
- if (name[0] === '@' || options.parent && options.parent.type === 'keyframes') {
3002
- return null;
3003
- }
3004
-
3005
- return new StyleRule(name, style, options);
3006
- }
3007
- };
3008
-
3009
- var defaultToStringOptions = {
3010
- indent: 1,
3011
- children: true
3012
- };
3013
- var atRegExp = /@([\w-]+)/;
3014
- /**
3015
- * Conditional rule for @media, @supports
3016
- */
3017
-
3018
- var ConditionalRule =
3019
- /*#__PURE__*/
3020
- function () {
3021
- function ConditionalRule(key, styles, options) {
3022
- this.type = 'conditional';
3023
- this.at = void 0;
3024
- this.key = void 0;
3025
- this.query = void 0;
3026
- this.rules = void 0;
3027
- this.options = void 0;
3028
- this.isProcessed = false;
3029
- this.renderable = void 0;
3030
- this.key = key;
3031
- var atMatch = key.match(atRegExp);
3032
- this.at = atMatch ? atMatch[1] : 'unknown'; // Key might contain a unique suffix in case the `name` passed by user was duplicate.
3033
-
3034
- this.query = options.name || "@" + this.at;
3035
- this.options = options;
3036
- this.rules = new RuleList(Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
3037
- parent: this
3038
- }));
3039
-
3040
- for (var name in styles) {
3041
- this.rules.add(name, styles[name]);
3042
- }
3043
-
3044
- this.rules.process();
3045
- }
3046
- /**
3047
- * Get a rule.
3048
- */
3049
-
3050
-
3051
- var _proto = ConditionalRule.prototype;
3052
-
3053
- _proto.getRule = function getRule(name) {
3054
- return this.rules.get(name);
3055
- }
3056
- /**
3057
- * Get index of a rule.
3058
- */
3059
- ;
3060
-
3061
- _proto.indexOf = function indexOf(rule) {
3062
- return this.rules.indexOf(rule);
3063
- }
3064
- /**
3065
- * Create and register rule, run plugins.
3066
- */
3067
- ;
3068
-
3069
- _proto.addRule = function addRule(name, style, options) {
3070
- var rule = this.rules.add(name, style, options);
3071
- if (!rule) return null;
3072
- this.options.jss.plugins.onProcessRule(rule);
3073
- return rule;
3074
- }
3075
- /**
3076
- * Generates a CSS string.
3077
- */
3078
- ;
3079
-
3080
- _proto.toString = function toString(options) {
3081
- if (options === void 0) {
3082
- options = defaultToStringOptions;
3083
- }
3084
-
3085
- if (options.indent == null) options.indent = defaultToStringOptions.indent;
3086
- if (options.children == null) options.children = defaultToStringOptions.children;
3087
-
3088
- if (options.children === false) {
3089
- return this.query + " {}";
3090
- }
3091
-
3092
- var children = this.rules.toString(options);
3093
- return children ? this.query + " {\n" + children + "\n}" : '';
3094
- };
3095
-
3096
- return ConditionalRule;
3097
- }();
3098
- var keyRegExp = /@media|@supports\s+/;
3099
- var pluginConditionalRule = {
3100
- onCreateRule: function onCreateRule(key, styles, options) {
3101
- return keyRegExp.test(key) ? new ConditionalRule(key, styles, options) : null;
3102
- }
3103
- };
3104
-
3105
- var defaultToStringOptions$1 = {
3106
- indent: 1,
3107
- children: true
3108
- };
3109
- var nameRegExp = /@keyframes\s+([\w-]+)/;
3110
- /**
3111
- * Rule for @keyframes
3112
- */
3113
-
3114
- var KeyframesRule =
3115
- /*#__PURE__*/
3116
- function () {
3117
- function KeyframesRule(key, frames, options) {
3118
- this.type = 'keyframes';
3119
- this.at = '@keyframes';
3120
- this.key = void 0;
3121
- this.name = void 0;
3122
- this.id = void 0;
3123
- this.rules = void 0;
3124
- this.options = void 0;
3125
- this.isProcessed = false;
3126
- this.renderable = void 0;
3127
- var nameMatch = key.match(nameRegExp);
3128
-
3129
- if (nameMatch && nameMatch[1]) {
3130
- this.name = nameMatch[1];
3131
- } else {
3132
- this.name = 'noname';
3133
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Bad keyframes name " + key) : void 0;
3134
- }
3135
-
3136
- this.key = this.type + "-" + this.name;
3137
- this.options = options;
3138
- var scoped = options.scoped,
3139
- sheet = options.sheet,
3140
- generateId = options.generateId;
3141
- this.id = scoped === false ? this.name : escape(generateId(this, sheet));
3142
- this.rules = new RuleList(Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
3143
- parent: this
3144
- }));
3145
-
3146
- for (var name in frames) {
3147
- this.rules.add(name, frames[name], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
3148
- parent: this
3149
- }));
3150
- }
3151
-
3152
- this.rules.process();
3153
- }
3154
- /**
3155
- * Generates a CSS string.
3156
- */
3157
-
3158
-
3159
- var _proto = KeyframesRule.prototype;
3160
-
3161
- _proto.toString = function toString(options) {
3162
- if (options === void 0) {
3163
- options = defaultToStringOptions$1;
3164
- }
3165
-
3166
- if (options.indent == null) options.indent = defaultToStringOptions$1.indent;
3167
- if (options.children == null) options.children = defaultToStringOptions$1.children;
3168
-
3169
- if (options.children === false) {
3170
- return this.at + " " + this.id + " {}";
3171
- }
3172
-
3173
- var children = this.rules.toString(options);
3174
- if (children) children = "\n" + children + "\n";
3175
- return this.at + " " + this.id + " {" + children + "}";
3176
- };
3177
-
3178
- return KeyframesRule;
3179
- }();
3180
- var keyRegExp$1 = /@keyframes\s+/;
3181
- var refRegExp = /\$([\w-]+)/g;
3182
-
3183
- var findReferencedKeyframe = function findReferencedKeyframe(val, keyframes) {
3184
- if (typeof val === 'string') {
3185
- return val.replace(refRegExp, function (match, name) {
3186
- if (name in keyframes) {
3187
- return keyframes[name];
3188
- }
3189
-
3190
- 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;
3191
- return match;
3192
- });
3193
- }
3194
-
3195
- return val;
3196
- };
3197
- /**
3198
- * Replace the reference for a animation name.
3199
- */
3200
-
3201
-
3202
- var replaceRef = function replaceRef(style, prop, keyframes) {
3203
- var value = style[prop];
3204
- var refKeyframe = findReferencedKeyframe(value, keyframes);
3205
-
3206
- if (refKeyframe !== value) {
3207
- style[prop] = refKeyframe;
3208
- }
3209
- };
3210
-
3211
- var plugin = {
3212
- onCreateRule: function onCreateRule(key, frames, options) {
3213
- return typeof key === 'string' && keyRegExp$1.test(key) ? new KeyframesRule(key, frames, options) : null;
3214
- },
3215
- // Animation name ref replacer.
3216
- onProcessStyle: function onProcessStyle(style, rule, sheet) {
3217
- if (rule.type !== 'style' || !sheet) return style;
3218
- if ('animation-name' in style) replaceRef(style, 'animation-name', sheet.keyframes);
3219
- if ('animation' in style) replaceRef(style, 'animation', sheet.keyframes);
3220
- return style;
3221
- },
3222
- onChangeValue: function onChangeValue(val, prop, rule) {
3223
- var sheet = rule.options.sheet;
3224
-
3225
- if (!sheet) {
3226
- return val;
3227
- }
3228
-
3229
- switch (prop) {
3230
- case 'animation':
3231
- return findReferencedKeyframe(val, sheet.keyframes);
3232
-
3233
- case 'animation-name':
3234
- return findReferencedKeyframe(val, sheet.keyframes);
3235
-
3236
- default:
3237
- return val;
3238
- }
3239
- }
3240
- };
3241
-
3242
- var KeyframeRule =
3243
- /*#__PURE__*/
3244
- function (_BaseStyleRule) {
3245
- Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(KeyframeRule, _BaseStyleRule);
3246
-
3247
- function KeyframeRule() {
3248
- var _this;
3249
-
3250
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
3251
- args[_key] = arguments[_key];
3252
- }
3253
-
3254
- _this = _BaseStyleRule.call.apply(_BaseStyleRule, [this].concat(args)) || this;
3255
- _this.renderable = void 0;
3256
- return _this;
3257
- }
3258
-
3259
- var _proto = KeyframeRule.prototype;
3260
-
3261
- /**
3262
- * Generates a CSS string.
3263
- */
3264
- _proto.toString = function toString(options) {
3265
- var sheet = this.options.sheet;
3266
- var link = sheet ? sheet.options.link : false;
3267
- var opts = link ? Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
3268
- allowEmpty: true
3269
- }) : options;
3270
- return toCss(this.key, this.style, opts);
3271
- };
3272
-
3273
- return KeyframeRule;
3274
- }(BaseStyleRule);
3275
- var pluginKeyframeRule = {
3276
- onCreateRule: function onCreateRule(key, style, options) {
3277
- if (options.parent && options.parent.type === 'keyframes') {
3278
- return new KeyframeRule(key, style, options);
3279
- }
3280
-
3281
- return null;
3282
- }
3283
- };
3284
-
3285
- var FontFaceRule =
3286
- /*#__PURE__*/
3287
- function () {
3288
- function FontFaceRule(key, style, options) {
3289
- this.type = 'font-face';
3290
- this.at = '@font-face';
3291
- this.key = void 0;
3292
- this.style = void 0;
3293
- this.options = void 0;
3294
- this.isProcessed = false;
3295
- this.renderable = void 0;
3296
- this.key = key;
3297
- this.style = style;
3298
- this.options = options;
3299
- }
3300
- /**
3301
- * Generates a CSS string.
3302
- */
3303
-
3304
-
3305
- var _proto = FontFaceRule.prototype;
3306
-
3307
- _proto.toString = function toString(options) {
3308
- if (Array.isArray(this.style)) {
3309
- var str = '';
3310
-
3311
- for (var index = 0; index < this.style.length; index++) {
3312
- str += toCss(this.at, this.style[index]);
3313
- if (this.style[index + 1]) str += '\n';
3314
- }
3315
-
3316
- return str;
3317
- }
3318
-
3319
- return toCss(this.at, this.style, options);
3320
- };
3321
-
3322
- return FontFaceRule;
3323
- }();
3324
- var keyRegExp$2 = /@font-face/;
3325
- var pluginFontFaceRule = {
3326
- onCreateRule: function onCreateRule(key, style, options) {
3327
- return keyRegExp$2.test(key) ? new FontFaceRule(key, style, options) : null;
3328
- }
3329
- };
3330
-
3331
- var ViewportRule =
3332
- /*#__PURE__*/
3333
- function () {
3334
- function ViewportRule(key, style, options) {
3335
- this.type = 'viewport';
3336
- this.at = '@viewport';
3337
- this.key = void 0;
3338
- this.style = void 0;
3339
- this.options = void 0;
3340
- this.isProcessed = false;
3341
- this.renderable = void 0;
3342
- this.key = key;
3343
- this.style = style;
3344
- this.options = options;
3345
- }
3346
- /**
3347
- * Generates a CSS string.
3348
- */
3349
-
3350
-
3351
- var _proto = ViewportRule.prototype;
3352
-
3353
- _proto.toString = function toString(options) {
3354
- return toCss(this.key, this.style, options);
3355
- };
3356
-
3357
- return ViewportRule;
3358
- }();
3359
- var pluginViewportRule = {
3360
- onCreateRule: function onCreateRule(key, style, options) {
3361
- return key === '@viewport' || key === '@-ms-viewport' ? new ViewportRule(key, style, options) : null;
3362
- }
3363
- };
3364
-
3365
- var SimpleRule =
3366
- /*#__PURE__*/
3367
- function () {
3368
- function SimpleRule(key, value, options) {
3369
- this.type = 'simple';
3370
- this.key = void 0;
3371
- this.value = void 0;
3372
- this.options = void 0;
3373
- this.isProcessed = false;
3374
- this.renderable = void 0;
3375
- this.key = key;
3376
- this.value = value;
3377
- this.options = options;
3378
- }
3379
- /**
3380
- * Generates a CSS string.
3381
- */
3382
- // eslint-disable-next-line no-unused-vars
3383
-
3384
-
3385
- var _proto = SimpleRule.prototype;
3386
-
3387
- _proto.toString = function toString(options) {
3388
- if (Array.isArray(this.value)) {
3389
- var str = '';
3390
-
3391
- for (var index = 0; index < this.value.length; index++) {
3392
- str += this.key + " " + this.value[index] + ";";
3393
- if (this.value[index + 1]) str += '\n';
3394
- }
3395
-
3396
- return str;
3397
- }
3398
-
3399
- return this.key + " " + this.value + ";";
3400
- };
3401
-
3402
- return SimpleRule;
3403
- }();
3404
- var keysMap = {
3405
- '@charset': true,
3406
- '@import': true,
3407
- '@namespace': true
3408
- };
3409
- var pluginSimpleRule = {
3410
- onCreateRule: function onCreateRule(key, value, options) {
3411
- return key in keysMap ? new SimpleRule(key, value, options) : null;
3412
- }
3413
- };
3414
-
3415
- var plugins = [pluginStyleRule, pluginConditionalRule, plugin, pluginKeyframeRule, pluginFontFaceRule, pluginViewportRule, pluginSimpleRule];
3416
-
3417
- var defaultUpdateOptions = {
3418
- process: true
3419
- };
3420
- var forceUpdateOptions = {
3421
- force: true,
3422
- process: true
3423
- /**
3424
- * Contains rules objects and allows adding/removing etc.
3425
- * Is used for e.g. by `StyleSheet` or `ConditionalRule`.
3426
- */
3427
-
3428
- };
3429
-
3430
- var RuleList =
3431
- /*#__PURE__*/
3432
- function () {
3433
- // Rules registry for access by .get() method.
3434
- // It contains the same rule registered by name and by selector.
3435
- // Original styles object.
3436
- // Used to ensure correct rules order.
3437
- function RuleList(options) {
3438
- this.map = {};
3439
- this.raw = {};
3440
- this.index = [];
3441
- this.counter = 0;
3442
- this.options = void 0;
3443
- this.classes = void 0;
3444
- this.keyframes = void 0;
3445
- this.options = options;
3446
- this.classes = options.classes;
3447
- this.keyframes = options.keyframes;
3448
- }
3449
- /**
3450
- * Create and register rule.
3451
- *
3452
- * Will not render after Style Sheet was rendered the first time.
3453
- */
3454
-
3455
-
3456
- var _proto = RuleList.prototype;
3457
-
3458
- _proto.add = function add(name, decl, ruleOptions) {
3459
- var _this$options = this.options,
3460
- parent = _this$options.parent,
3461
- sheet = _this$options.sheet,
3462
- jss = _this$options.jss,
3463
- Renderer = _this$options.Renderer,
3464
- generateId = _this$options.generateId,
3465
- scoped = _this$options.scoped;
3466
-
3467
- var options = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
3468
- classes: this.classes,
3469
- parent: parent,
3470
- sheet: sheet,
3471
- jss: jss,
3472
- Renderer: Renderer,
3473
- generateId: generateId,
3474
- scoped: scoped,
3475
- name: name,
3476
- keyframes: this.keyframes,
3477
- selector: undefined
3478
- }, ruleOptions); // When user uses .createStyleSheet(), duplicate names are not possible, but
3479
- // `sheet.addRule()` opens the door for any duplicate rule name. When this happens
3480
- // we need to make the key unique within this RuleList instance scope.
3481
-
3482
-
3483
- var key = name;
3484
-
3485
- if (name in this.raw) {
3486
- key = name + "-d" + this.counter++;
3487
- } // We need to save the original decl before creating the rule
3488
- // because cache plugin needs to use it as a key to return a cached rule.
3489
-
3490
-
3491
- this.raw[key] = decl;
3492
-
3493
- if (key in this.classes) {
3494
- // E.g. rules inside of @media container
3495
- options.selector = "." + escape(this.classes[key]);
3496
- }
3497
-
3498
- var rule = createRule(key, decl, options);
3499
- if (!rule) return null;
3500
- this.register(rule);
3501
- var index = options.index === undefined ? this.index.length : options.index;
3502
- this.index.splice(index, 0, rule);
3503
- return rule;
3504
- }
3505
- /**
3506
- * Get a rule.
3507
- */
3508
- ;
3509
-
3510
- _proto.get = function get(name) {
3511
- return this.map[name];
3512
- }
3513
- /**
3514
- * Delete a rule.
3515
- */
3516
- ;
3517
-
3518
- _proto.remove = function remove(rule) {
3519
- this.unregister(rule);
3520
- delete this.raw[rule.key];
3521
- this.index.splice(this.index.indexOf(rule), 1);
3522
- }
3523
- /**
3524
- * Get index of a rule.
3525
- */
3526
- ;
3527
-
3528
- _proto.indexOf = function indexOf(rule) {
3529
- return this.index.indexOf(rule);
3530
- }
3531
- /**
3532
- * Run `onProcessRule()` plugins on every rule.
3533
- */
3534
- ;
3535
-
3536
- _proto.process = function process() {
3537
- var plugins = this.options.jss.plugins; // We need to clone array because if we modify the index somewhere else during a loop
3538
- // we end up with very hard-to-track-down side effects.
3539
-
3540
- this.index.slice(0).forEach(plugins.onProcessRule, plugins);
3541
- }
3542
- /**
3543
- * Register a rule in `.map`, `.classes` and `.keyframes` maps.
3544
- */
3545
- ;
3546
-
3547
- _proto.register = function register(rule) {
3548
- this.map[rule.key] = rule;
3549
-
3550
- if (rule instanceof StyleRule) {
3551
- this.map[rule.selector] = rule;
3552
- if (rule.id) this.classes[rule.key] = rule.id;
3553
- } else if (rule instanceof KeyframesRule && this.keyframes) {
3554
- this.keyframes[rule.name] = rule.id;
3555
- }
3556
- }
3557
- /**
3558
- * Unregister a rule.
3559
- */
3560
- ;
3561
-
3562
- _proto.unregister = function unregister(rule) {
3563
- delete this.map[rule.key];
3564
-
3565
- if (rule instanceof StyleRule) {
3566
- delete this.map[rule.selector];
3567
- delete this.classes[rule.key];
3568
- } else if (rule instanceof KeyframesRule) {
3569
- delete this.keyframes[rule.name];
3570
- }
3571
- }
3572
- /**
3573
- * Update the function values with a new data.
3574
- */
3575
- ;
3576
-
3577
- _proto.update = function update() {
3578
- var name;
3579
- var data;
3580
- var options;
3581
-
3582
- if (typeof (arguments.length <= 0 ? undefined : arguments[0]) === 'string') {
3583
- name = arguments.length <= 0 ? undefined : arguments[0]; // $FlowFixMe[invalid-tuple-index]
3584
-
3585
- data = arguments.length <= 1 ? undefined : arguments[1]; // $FlowFixMe[invalid-tuple-index]
3586
-
3587
- options = arguments.length <= 2 ? undefined : arguments[2];
3588
- } else {
3589
- data = arguments.length <= 0 ? undefined : arguments[0]; // $FlowFixMe[invalid-tuple-index]
3590
-
3591
- options = arguments.length <= 1 ? undefined : arguments[1];
3592
- name = null;
3593
- }
3594
-
3595
- if (name) {
3596
- this.updateOne(this.map[name], data, options);
3597
- } else {
3598
- for (var index = 0; index < this.index.length; index++) {
3599
- this.updateOne(this.index[index], data, options);
3600
- }
3601
- }
3602
- }
3603
- /**
3604
- * Execute plugins, update rule props.
3605
- */
3606
- ;
3607
-
3608
- _proto.updateOne = function updateOne(rule, data, options) {
3609
- if (options === void 0) {
3610
- options = defaultUpdateOptions;
3611
- }
3612
-
3613
- var _this$options2 = this.options,
3614
- plugins = _this$options2.jss.plugins,
3615
- sheet = _this$options2.sheet; // It is a rules container like for e.g. ConditionalRule.
3616
-
3617
- if (rule.rules instanceof RuleList) {
3618
- rule.rules.update(data, options);
3619
- return;
3620
- }
3621
-
3622
- var styleRule = rule;
3623
- var style = styleRule.style;
3624
- plugins.onUpdate(data, rule, sheet, options); // We rely on a new `style` ref in case it was mutated during onUpdate hook.
3625
-
3626
- if (options.process && style && style !== styleRule.style) {
3627
- // We need to run the plugins in case new `style` relies on syntax plugins.
3628
- plugins.onProcessStyle(styleRule.style, styleRule, sheet); // Update and add props.
3629
-
3630
- for (var prop in styleRule.style) {
3631
- var nextValue = styleRule.style[prop];
3632
- 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.
3633
- // We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.
3634
-
3635
- if (nextValue !== prevValue) {
3636
- styleRule.prop(prop, nextValue, forceUpdateOptions);
3637
- }
3638
- } // Remove props.
3639
-
3640
-
3641
- for (var _prop in style) {
3642
- var _nextValue = styleRule.style[_prop];
3643
- 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.
3644
- // We do this comparison to avoid unneeded `rule.prop()` calls, since we have the old `style` object here.
3645
-
3646
- if (_nextValue == null && _nextValue !== _prevValue) {
3647
- styleRule.prop(_prop, null, forceUpdateOptions);
3648
- }
3649
- }
3650
- }
3651
- }
3652
- /**
3653
- * Convert rules to a CSS string.
3654
- */
3655
- ;
3656
-
3657
- _proto.toString = function toString(options) {
3658
- var str = '';
3659
- var sheet = this.options.sheet;
3660
- var link = sheet ? sheet.options.link : false;
3661
-
3662
- for (var index = 0; index < this.index.length; index++) {
3663
- var rule = this.index[index];
3664
- var css = rule.toString(options); // No need to render an empty rule.
3665
-
3666
- if (!css && !link) continue;
3667
- if (str) str += '\n';
3668
- str += css;
3669
- }
3670
-
3671
- return str;
3672
- };
3673
-
3674
- return RuleList;
3675
- }();
3676
-
3677
- var StyleSheet =
3678
- /*#__PURE__*/
3679
- function () {
3680
- function StyleSheet(styles, options) {
3681
- this.options = void 0;
3682
- this.deployed = void 0;
3683
- this.attached = void 0;
3684
- this.rules = void 0;
3685
- this.renderer = void 0;
3686
- this.classes = void 0;
3687
- this.keyframes = void 0;
3688
- this.queue = void 0;
3689
- this.attached = false;
3690
- this.deployed = false;
3691
- this.classes = {};
3692
- this.keyframes = {};
3693
- this.options = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
3694
- sheet: this,
3695
- parent: this,
3696
- classes: this.classes,
3697
- keyframes: this.keyframes
3698
- });
3699
-
3700
- if (options.Renderer) {
3701
- this.renderer = new options.Renderer(this);
3702
- }
3703
-
3704
- this.rules = new RuleList(this.options);
3705
-
3706
- for (var name in styles) {
3707
- this.rules.add(name, styles[name]);
3708
- }
3709
-
3710
- this.rules.process();
3711
- }
3712
- /**
3713
- * Attach renderable to the render tree.
3714
- */
3715
-
3716
-
3717
- var _proto = StyleSheet.prototype;
3718
-
3719
- _proto.attach = function attach() {
3720
- if (this.attached) return this;
3721
- if (this.renderer) this.renderer.attach();
3722
- this.attached = true; // Order is important, because we can't use insertRule API if style element is not attached.
3723
-
3724
- if (!this.deployed) this.deploy();
3725
- return this;
3726
- }
3727
- /**
3728
- * Remove renderable from render tree.
3729
- */
3730
- ;
3731
-
3732
- _proto.detach = function detach() {
3733
- if (!this.attached) return this;
3734
- if (this.renderer) this.renderer.detach();
3735
- this.attached = false;
3736
- return this;
3737
- }
3738
- /**
3739
- * Add a rule to the current stylesheet.
3740
- * Will insert a rule also after the stylesheet has been rendered first time.
3741
- */
3742
- ;
3743
-
3744
- _proto.addRule = function addRule(name, decl, options) {
3745
- var queue = this.queue; // Plugins can create rules.
3746
- // In order to preserve the right order, we need to queue all `.addRule` calls,
3747
- // which happen after the first `rules.add()` call.
3748
-
3749
- if (this.attached && !queue) this.queue = [];
3750
- var rule = this.rules.add(name, decl, options);
3751
- if (!rule) return null;
3752
- this.options.jss.plugins.onProcessRule(rule);
3753
-
3754
- if (this.attached) {
3755
- if (!this.deployed) return rule; // Don't insert rule directly if there is no stringified version yet.
3756
- // It will be inserted all together when .attach is called.
3757
-
3758
- if (queue) queue.push(rule);else {
3759
- this.insertRule(rule);
3760
-
3761
- if (this.queue) {
3762
- this.queue.forEach(this.insertRule, this);
3763
- this.queue = undefined;
3764
- }
3765
- }
3766
- return rule;
3767
- } // We can't add rules to a detached style node.
3768
- // We will redeploy the sheet once user will attach it.
3769
-
3770
-
3771
- this.deployed = false;
3772
- return rule;
3773
- }
3774
- /**
3775
- * Insert rule into the StyleSheet
3776
- */
3777
- ;
3778
-
3779
- _proto.insertRule = function insertRule(rule) {
3780
- if (this.renderer) {
3781
- this.renderer.insertRule(rule);
3782
- }
3783
- }
3784
- /**
3785
- * Create and add rules.
3786
- * Will render also after Style Sheet was rendered the first time.
3787
- */
3788
- ;
3789
-
3790
- _proto.addRules = function addRules(styles, options) {
3791
- var added = [];
3792
-
3793
- for (var name in styles) {
3794
- var rule = this.addRule(name, styles[name], options);
3795
- if (rule) added.push(rule);
3796
- }
3797
-
3798
- return added;
3799
- }
3800
- /**
3801
- * Get a rule by name.
3802
- */
3803
- ;
3804
-
3805
- _proto.getRule = function getRule(name) {
3806
- return this.rules.get(name);
3807
- }
3808
- /**
3809
- * Delete a rule by name.
3810
- * Returns `true`: if rule has been deleted from the DOM.
3811
- */
3812
- ;
3813
-
3814
- _proto.deleteRule = function deleteRule(name) {
3815
- var rule = typeof name === 'object' ? name : this.rules.get(name);
3816
-
3817
- if (!rule || // Style sheet was created without link: true and attached, in this case we
3818
- // won't be able to remove the CSS rule from the DOM.
3819
- this.attached && !rule.renderable) {
3820
- return false;
3821
- }
3822
-
3823
- this.rules.remove(rule);
3824
-
3825
- if (this.attached && rule.renderable && this.renderer) {
3826
- return this.renderer.deleteRule(rule.renderable);
3827
- }
3828
-
3829
- return true;
3830
- }
3831
- /**
3832
- * Get index of a rule.
3833
- */
3834
- ;
3835
-
3836
- _proto.indexOf = function indexOf(rule) {
3837
- return this.rules.indexOf(rule);
3838
- }
3839
- /**
3840
- * Deploy pure CSS string to a renderable.
3841
- */
3842
- ;
3843
-
3844
- _proto.deploy = function deploy() {
3845
- if (this.renderer) this.renderer.deploy();
3846
- this.deployed = true;
3847
- return this;
3848
- }
3849
- /**
3850
- * Update the function values with a new data.
3851
- */
3852
- ;
3853
-
3854
- _proto.update = function update() {
3855
- var _this$rules;
3856
-
3857
- (_this$rules = this.rules).update.apply(_this$rules, arguments);
3858
-
3859
- return this;
3860
- }
3861
- /**
3862
- * Updates a single rule.
3863
- */
3864
- ;
3865
-
3866
- _proto.updateOne = function updateOne(rule, data, options) {
3867
- this.rules.updateOne(rule, data, options);
3868
- return this;
3869
- }
3870
- /**
3871
- * Convert rules to a CSS string.
3872
- */
3873
- ;
3874
-
3875
- _proto.toString = function toString(options) {
3876
- return this.rules.toString(options);
3877
- };
3878
-
3879
- return StyleSheet;
3880
- }();
3881
-
3882
- var PluginsRegistry =
3883
- /*#__PURE__*/
3884
- function () {
3885
- function PluginsRegistry() {
3886
- this.plugins = {
3887
- internal: [],
3888
- external: []
3889
- };
3890
- this.registry = void 0;
3891
- }
3892
-
3893
- var _proto = PluginsRegistry.prototype;
3894
-
3895
- /**
3896
- * Call `onCreateRule` hooks and return an object if returned by a hook.
3897
- */
3898
- _proto.onCreateRule = function onCreateRule(name, decl, options) {
3899
- for (var i = 0; i < this.registry.onCreateRule.length; i++) {
3900
- var rule = this.registry.onCreateRule[i](name, decl, options);
3901
- if (rule) return rule;
3902
- }
3903
-
3904
- return null;
3905
- }
3906
- /**
3907
- * Call `onProcessRule` hooks.
3908
- */
3909
- ;
3910
-
3911
- _proto.onProcessRule = function onProcessRule(rule) {
3912
- if (rule.isProcessed) return;
3913
- var sheet = rule.options.sheet;
3914
-
3915
- for (var i = 0; i < this.registry.onProcessRule.length; i++) {
3916
- this.registry.onProcessRule[i](rule, sheet);
3917
- }
3918
-
3919
- if (rule.style) this.onProcessStyle(rule.style, rule, sheet);
3920
- rule.isProcessed = true;
3921
- }
3922
- /**
3923
- * Call `onProcessStyle` hooks.
3924
- */
3925
- ;
3926
-
3927
- _proto.onProcessStyle = function onProcessStyle(style, rule, sheet) {
3928
- for (var i = 0; i < this.registry.onProcessStyle.length; i++) {
3929
- // $FlowFixMe[prop-missing]
3930
- rule.style = this.registry.onProcessStyle[i](rule.style, rule, sheet);
3931
- }
3932
- }
3933
- /**
3934
- * Call `onProcessSheet` hooks.
3935
- */
3936
- ;
3937
-
3938
- _proto.onProcessSheet = function onProcessSheet(sheet) {
3939
- for (var i = 0; i < this.registry.onProcessSheet.length; i++) {
3940
- this.registry.onProcessSheet[i](sheet);
3941
- }
3942
- }
3943
- /**
3944
- * Call `onUpdate` hooks.
3945
- */
3946
- ;
3947
-
3948
- _proto.onUpdate = function onUpdate(data, rule, sheet, options) {
3949
- for (var i = 0; i < this.registry.onUpdate.length; i++) {
3950
- this.registry.onUpdate[i](data, rule, sheet, options);
3951
- }
3952
- }
3953
- /**
3954
- * Call `onChangeValue` hooks.
3955
- */
3956
- ;
3957
-
3958
- _proto.onChangeValue = function onChangeValue(value, prop, rule) {
3959
- var processedValue = value;
3960
-
3961
- for (var i = 0; i < this.registry.onChangeValue.length; i++) {
3962
- processedValue = this.registry.onChangeValue[i](processedValue, prop, rule);
3963
- }
3964
-
3965
- return processedValue;
3966
- }
3967
- /**
3968
- * Register a plugin.
3969
- */
3970
- ;
3971
-
3972
- _proto.use = function use(newPlugin, options) {
3973
- if (options === void 0) {
3974
- options = {
3975
- queue: 'external'
3976
- };
3977
- }
3978
-
3979
- var plugins = this.plugins[options.queue]; // Avoids applying same plugin twice, at least based on ref.
3980
-
3981
- if (plugins.indexOf(newPlugin) !== -1) {
3982
- return;
3983
- }
3984
-
3985
- plugins.push(newPlugin);
3986
- this.registry = [].concat(this.plugins.external, this.plugins.internal).reduce(function (registry, plugin) {
3987
- for (var name in plugin) {
3988
- if (name in registry) {
3989
- registry[name].push(plugin[name]);
3990
- } else {
3991
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Unknown hook \"" + name + "\".") : void 0;
3992
- }
3993
- }
3994
-
3995
- return registry;
3996
- }, {
3997
- onCreateRule: [],
3998
- onProcessRule: [],
3999
- onProcessStyle: [],
4000
- onProcessSheet: [],
4001
- onChangeValue: [],
4002
- onUpdate: []
4003
- });
4004
- };
4005
-
4006
- return PluginsRegistry;
4007
- }();
4008
-
4009
- /**
4010
- * Sheets registry to access them all at one place.
4011
- */
4012
- var SheetsRegistry =
4013
- /*#__PURE__*/
4014
- function () {
4015
- function SheetsRegistry() {
4016
- this.registry = [];
4017
- }
4018
-
4019
- var _proto = SheetsRegistry.prototype;
4020
-
4021
- /**
4022
- * Register a Style Sheet.
4023
- */
4024
- _proto.add = function add(sheet) {
4025
- var registry = this.registry;
4026
- var index = sheet.options.index;
4027
- if (registry.indexOf(sheet) !== -1) return;
4028
-
4029
- if (registry.length === 0 || index >= this.index) {
4030
- registry.push(sheet);
4031
- return;
4032
- } // Find a position.
4033
-
4034
-
4035
- for (var i = 0; i < registry.length; i++) {
4036
- if (registry[i].options.index > index) {
4037
- registry.splice(i, 0, sheet);
4038
- return;
4039
- }
4040
- }
4041
- }
4042
- /**
4043
- * Reset the registry.
4044
- */
4045
- ;
4046
-
4047
- _proto.reset = function reset() {
4048
- this.registry = [];
4049
- }
4050
- /**
4051
- * Remove a Style Sheet.
4052
- */
4053
- ;
4054
-
4055
- _proto.remove = function remove(sheet) {
4056
- var index = this.registry.indexOf(sheet);
4057
- this.registry.splice(index, 1);
4058
- }
4059
- /**
4060
- * Convert all attached sheets to a CSS string.
4061
- */
4062
- ;
4063
-
4064
- _proto.toString = function toString(_temp) {
4065
- var _ref = _temp === void 0 ? {} : _temp,
4066
- attached = _ref.attached,
4067
- options = Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_ref, ["attached"]);
4068
-
4069
- var css = '';
4070
-
4071
- for (var i = 0; i < this.registry.length; i++) {
4072
- var sheet = this.registry[i];
4073
-
4074
- if (attached != null && sheet.attached !== attached) {
4075
- continue;
4076
- }
4077
-
4078
- if (css) css += '\n';
4079
- css += sheet.toString(options);
4080
- }
4081
-
4082
- return css;
4083
- };
4084
-
4085
- Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_createClass__["a" /* default */])(SheetsRegistry, [{
4086
- key: "index",
4087
-
4088
- /**
4089
- * Current highest index number.
4090
- */
4091
- get: function get() {
4092
- return this.registry.length === 0 ? 0 : this.registry[this.registry.length - 1].options.index;
4093
- }
4094
- }]);
4095
-
4096
- return SheetsRegistry;
4097
- }();
4098
-
4099
- /**
4100
- * This is a global sheets registry. Only DomRenderer will add sheets to it.
4101
- * On the server one should use an own SheetsRegistry instance and add the
4102
- * sheets to it, because you need to make sure to create a new registry for
4103
- * each request in order to not leak sheets across requests.
4104
- */
4105
-
4106
- var registry = new SheetsRegistry();
4107
-
4108
- /* eslint-disable */
4109
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
4110
- var globalThis = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();
4111
-
4112
- var ns = '2f1acc6c3a606b082e5eef5e54414ffb';
4113
- if (globalThis[ns] == null) globalThis[ns] = 0; // Bundle may contain multiple JSS versions at the same time. In order to identify
4114
- // the current version with just one short number and use it for classes generation
4115
- // we use a counter. Also it is more accurate, because user can manually reevaluate
4116
- // the module.
4117
-
4118
- var moduleId = globalThis[ns]++;
4119
-
4120
- var maxRules = 1e10;
4121
-
4122
- /**
4123
- * Returns a function which generates unique class names based on counters.
4124
- * When new generator function is created, rule counter is reseted.
4125
- * We need to reset the rule counter for SSR for each request.
4126
- */
4127
- var createGenerateId = function createGenerateId(options) {
4128
- if (options === void 0) {
4129
- options = {};
4130
- }
4131
-
4132
- var ruleCounter = 0;
4133
- return function (rule, sheet) {
4134
- ruleCounter += 1;
4135
-
4136
- if (ruleCounter > maxRules) {
4137
- 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;
4138
- }
4139
-
4140
- var jssId = '';
4141
- var prefix = '';
4142
-
4143
- if (sheet) {
4144
- if (sheet.options.classNamePrefix) {
4145
- prefix = sheet.options.classNamePrefix;
4146
- }
4147
-
4148
- if (sheet.options.jss.id != null) {
4149
- jssId = String(sheet.options.jss.id);
4150
- }
4151
- }
4152
-
4153
- if (options.minify) {
4154
- // Using "c" because a number can't be the first char in a class name.
4155
- return "" + (prefix || 'c') + moduleId + jssId + ruleCounter;
4156
- }
4157
-
4158
- return prefix + rule.key + "-" + moduleId + (jssId ? "-" + jssId : '') + "-" + ruleCounter;
4159
- };
4160
- };
4161
-
4162
- /**
4163
- * Cache the value from the first time a function is called.
4164
- */
4165
- var memoize = function memoize(fn) {
4166
- var value;
4167
- return function () {
4168
- if (!value) value = fn();
4169
- return value;
4170
- };
4171
- };
4172
-
4173
- /**
4174
- * Get a style property value.
4175
- */
4176
- var getPropertyValue = function getPropertyValue(cssRule, prop) {
4177
- try {
4178
- // Support CSSTOM.
4179
- if (cssRule.attributeStyleMap) {
4180
- return cssRule.attributeStyleMap.get(prop);
4181
- }
4182
-
4183
- return cssRule.style.getPropertyValue(prop);
4184
- } catch (err) {
4185
- // IE may throw if property is unknown.
4186
- return '';
4187
- }
4188
- };
4189
-
4190
- /**
4191
- * Set a style property.
4192
- */
4193
- var setProperty = function setProperty(cssRule, prop, value) {
4194
- try {
4195
- var cssValue = value;
4196
-
4197
- if (Array.isArray(value)) {
4198
- cssValue = toCssValue(value, true);
4199
-
4200
- if (value[value.length - 1] === '!important') {
4201
- cssRule.style.setProperty(prop, cssValue, 'important');
4202
- return true;
4203
- }
4204
- } // Support CSSTOM.
4205
-
4206
-
4207
- if (cssRule.attributeStyleMap) {
4208
- cssRule.attributeStyleMap.set(prop, cssValue);
4209
- } else {
4210
- cssRule.style.setProperty(prop, cssValue);
4211
- }
4212
- } catch (err) {
4213
- // IE may throw if property is unknown.
4214
- return false;
4215
- }
4216
-
4217
- return true;
4218
- };
4219
-
4220
- /**
4221
- * Remove a style property.
4222
- */
4223
- var removeProperty = function removeProperty(cssRule, prop) {
4224
- try {
4225
- // Support CSSTOM.
4226
- if (cssRule.attributeStyleMap) {
4227
- cssRule.attributeStyleMap.delete(prop);
4228
- } else {
4229
- cssRule.style.removeProperty(prop);
4230
- }
4231
- } catch (err) {
4232
- 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;
4233
- }
4234
- };
4235
-
4236
- /**
4237
- * Set the selector.
4238
- */
4239
- var setSelector = function setSelector(cssRule, selectorText) {
4240
- cssRule.selectorText = selectorText; // Return false if setter was not successful.
4241
- // Currently works in chrome only.
4242
-
4243
- return cssRule.selectorText === selectorText;
4244
- };
4245
- /**
4246
- * Gets the `head` element upon the first call and caches it.
4247
- * We assume it can't be null.
4248
- */
4249
-
4250
-
4251
- var getHead = memoize(function () {
4252
- return document.querySelector('head');
4253
- });
4254
- /**
4255
- * Find attached sheet with an index higher than the passed one.
4256
- */
4257
-
4258
- function findHigherSheet(registry, options) {
4259
- for (var i = 0; i < registry.length; i++) {
4260
- var sheet = registry[i];
4261
-
4262
- if (sheet.attached && sheet.options.index > options.index && sheet.options.insertionPoint === options.insertionPoint) {
4263
- return sheet;
4264
- }
4265
- }
4266
-
4267
- return null;
4268
- }
4269
- /**
4270
- * Find attached sheet with the highest index.
4271
- */
4272
-
4273
-
4274
- function findHighestSheet(registry, options) {
4275
- for (var i = registry.length - 1; i >= 0; i--) {
4276
- var sheet = registry[i];
4277
-
4278
- if (sheet.attached && sheet.options.insertionPoint === options.insertionPoint) {
4279
- return sheet;
4280
- }
4281
- }
4282
-
4283
- return null;
4284
- }
4285
- /**
4286
- * Find a comment with "jss" inside.
4287
- */
4288
-
4289
-
4290
- function findCommentNode(text) {
4291
- var head = getHead();
4292
-
4293
- for (var i = 0; i < head.childNodes.length; i++) {
4294
- var node = head.childNodes[i];
4295
-
4296
- if (node.nodeType === 8 && node.nodeValue.trim() === text) {
4297
- return node;
4298
- }
4299
- }
4300
-
4301
- return null;
4302
- }
4303
-
4304
- /**
4305
- * Find a node before which we can insert the sheet.
4306
- */
4307
- function findPrevNode(options) {
4308
- var registry$1 = registry.registry;
4309
-
4310
- if (registry$1.length > 0) {
4311
- // Try to insert before the next higher sheet.
4312
- var sheet = findHigherSheet(registry$1, options);
4313
-
4314
- if (sheet && sheet.renderer) {
4315
- return {
4316
- parent: sheet.renderer.element.parentNode,
4317
- node: sheet.renderer.element
4318
- };
4319
- } // Otherwise insert after the last attached.
4320
-
4321
-
4322
- sheet = findHighestSheet(registry$1, options);
4323
-
4324
- if (sheet && sheet.renderer) {
4325
- return {
4326
- parent: sheet.renderer.element.parentNode,
4327
- node: sheet.renderer.element.nextSibling
4328
- };
4329
- }
4330
- } // Try to find a comment placeholder if registry is empty.
4331
-
4332
-
4333
- var insertionPoint = options.insertionPoint;
4334
-
4335
- if (insertionPoint && typeof insertionPoint === 'string') {
4336
- var comment = findCommentNode(insertionPoint);
4337
-
4338
- if (comment) {
4339
- return {
4340
- parent: comment.parentNode,
4341
- node: comment.nextSibling
4342
- };
4343
- } // If user specifies an insertion point and it can't be found in the document -
4344
- // bad specificity issues may appear.
4345
-
4346
-
4347
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] Insertion point \"" + insertionPoint + "\" not found.") : void 0;
4348
- }
4349
-
4350
- return false;
4351
- }
4352
- /**
4353
- * Insert style element into the DOM.
4354
- */
4355
-
4356
-
4357
- function insertStyle(style, options) {
4358
- var insertionPoint = options.insertionPoint;
4359
- var nextNode = findPrevNode(options);
4360
-
4361
- if (nextNode !== false && nextNode.parent) {
4362
- nextNode.parent.insertBefore(style, nextNode.node);
4363
- return;
4364
- } // Works with iframes and any node types.
4365
-
4366
-
4367
- if (insertionPoint && typeof insertionPoint.nodeType === 'number') {
4368
- // https://stackoverflow.com/questions/41328728/force-casting-in-flow
4369
- var insertionPointElement = insertionPoint;
4370
- var parentNode = insertionPointElement.parentNode;
4371
- 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;
4372
- return;
4373
- }
4374
-
4375
- getHead().appendChild(style);
4376
- }
4377
- /**
4378
- * Read jss nonce setting from the page if the user has set it.
4379
- */
4380
-
4381
-
4382
- var getNonce = memoize(function () {
4383
- var node = document.querySelector('meta[property="csp-nonce"]');
4384
- return node ? node.getAttribute('content') : null;
4385
- });
4386
-
4387
- var _insertRule = function insertRule(container, rule, index) {
4388
- try {
4389
- if ('insertRule' in container) {
4390
- var c = container;
4391
- c.insertRule(rule, index);
4392
- } // Keyframes rule.
4393
- else if ('appendRule' in container) {
4394
- var _c = container;
4395
-
4396
- _c.appendRule(rule);
4397
- }
4398
- } catch (err) {
4399
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] " + err.message) : void 0;
4400
- return false;
4401
- }
4402
-
4403
- return container.cssRules[index];
4404
- };
4405
-
4406
- var getValidRuleInsertionIndex = function getValidRuleInsertionIndex(container, index) {
4407
- var maxIndex = container.cssRules.length; // In case previous insertion fails, passed index might be wrong
4408
-
4409
- if (index === undefined || index > maxIndex) {
4410
- // eslint-disable-next-line no-param-reassign
4411
- return maxIndex;
4412
- }
4413
-
4414
- return index;
4415
- };
4416
-
4417
- var createStyle = function createStyle() {
4418
- var el = document.createElement('style'); // Without it, IE will have a broken source order specificity if we
4419
- // insert rules after we insert the style tag.
4420
- // It seems to kick-off the source order specificity algorithm.
4421
-
4422
- el.textContent = '\n';
4423
- return el;
4424
- };
4425
-
4426
- var DomRenderer =
4427
- /*#__PURE__*/
4428
- function () {
4429
- // HTMLStyleElement needs fixing https://github.com/facebook/flow/issues/2696
4430
- // Will be empty if link: true option is not set, because
4431
- // it is only for use together with insertRule API.
4432
- function DomRenderer(sheet) {
4433
- this.getPropertyValue = getPropertyValue;
4434
- this.setProperty = setProperty;
4435
- this.removeProperty = removeProperty;
4436
- this.setSelector = setSelector;
4437
- this.element = void 0;
4438
- this.sheet = void 0;
4439
- this.hasInsertedRules = false;
4440
- this.cssRules = [];
4441
- // There is no sheet when the renderer is used from a standalone StyleRule.
4442
- if (sheet) registry.add(sheet);
4443
- this.sheet = sheet;
4444
-
4445
- var _ref = this.sheet ? this.sheet.options : {},
4446
- media = _ref.media,
4447
- meta = _ref.meta,
4448
- element = _ref.element;
4449
-
4450
- this.element = element || createStyle();
4451
- this.element.setAttribute('data-jss', '');
4452
- if (media) this.element.setAttribute('media', media);
4453
- if (meta) this.element.setAttribute('data-meta', meta);
4454
- var nonce = getNonce();
4455
- if (nonce) this.element.setAttribute('nonce', nonce);
4456
- }
4457
- /**
4458
- * Insert style element into render tree.
4459
- */
4460
-
4461
-
4462
- var _proto = DomRenderer.prototype;
4463
-
4464
- _proto.attach = function attach() {
4465
- // In the case the element node is external and it is already in the DOM.
4466
- if (this.element.parentNode || !this.sheet) return;
4467
- insertStyle(this.element, this.sheet.options); // When rules are inserted using `insertRule` API, after `sheet.detach().attach()`
4468
- // most browsers create a new CSSStyleSheet, except of all IEs.
4469
-
4470
- var deployed = Boolean(this.sheet && this.sheet.deployed);
4471
-
4472
- if (this.hasInsertedRules && deployed) {
4473
- this.hasInsertedRules = false;
4474
- this.deploy();
4475
- }
4476
- }
4477
- /**
4478
- * Remove style element from render tree.
4479
- */
4480
- ;
4481
-
4482
- _proto.detach = function detach() {
4483
- if (!this.sheet) return;
4484
- var parentNode = this.element.parentNode;
4485
- if (parentNode) parentNode.removeChild(this.element); // In the most browsers, rules inserted using insertRule() API will be lost when style element is removed.
4486
- // Though IE will keep them and we need a consistent behavior.
4487
-
4488
- if (this.sheet.options.link) {
4489
- this.cssRules = [];
4490
- this.element.textContent = '\n';
4491
- }
4492
- }
4493
- /**
4494
- * Inject CSS string into element.
4495
- */
4496
- ;
4497
-
4498
- _proto.deploy = function deploy() {
4499
- var sheet = this.sheet;
4500
- if (!sheet) return;
4501
-
4502
- if (sheet.options.link) {
4503
- this.insertRules(sheet.rules);
4504
- return;
4505
- }
4506
-
4507
- this.element.textContent = "\n" + sheet.toString() + "\n";
4508
- }
4509
- /**
4510
- * Insert RuleList into an element.
4511
- */
4512
- ;
4513
-
4514
- _proto.insertRules = function insertRules(rules, nativeParent) {
4515
- for (var i = 0; i < rules.index.length; i++) {
4516
- this.insertRule(rules.index[i], i, nativeParent);
4517
- }
4518
- }
4519
- /**
4520
- * Insert a rule into element.
4521
- */
4522
- ;
4523
-
4524
- _proto.insertRule = function insertRule(rule, index, nativeParent) {
4525
- if (nativeParent === void 0) {
4526
- nativeParent = this.element.sheet;
4527
- }
4528
-
4529
- if (rule.rules) {
4530
- var parent = rule;
4531
- var latestNativeParent = nativeParent;
4532
-
4533
- if (rule.type === 'conditional' || rule.type === 'keyframes') {
4534
- var _insertionIndex = getValidRuleInsertionIndex(nativeParent, index); // We need to render the container without children first.
4535
-
4536
-
4537
- latestNativeParent = _insertRule(nativeParent, parent.toString({
4538
- children: false
4539
- }), _insertionIndex);
4540
-
4541
- if (latestNativeParent === false) {
4542
- return false;
4543
- }
4544
-
4545
- this.refCssRule(rule, _insertionIndex, latestNativeParent);
4546
- }
4547
-
4548
- this.insertRules(parent.rules, latestNativeParent);
4549
- return latestNativeParent;
4550
- }
4551
-
4552
- var ruleStr = rule.toString();
4553
- if (!ruleStr) return false;
4554
- var insertionIndex = getValidRuleInsertionIndex(nativeParent, index);
4555
-
4556
- var nativeRule = _insertRule(nativeParent, ruleStr, insertionIndex);
4557
-
4558
- if (nativeRule === false) {
4559
- return false;
4560
- }
4561
-
4562
- this.hasInsertedRules = true;
4563
- this.refCssRule(rule, insertionIndex, nativeRule);
4564
- return nativeRule;
4565
- };
4566
-
4567
- _proto.refCssRule = function refCssRule(rule, index, cssRule) {
4568
- rule.renderable = cssRule; // We only want to reference the top level rules, deleteRule API doesn't support removing nested rules
4569
- // like rules inside media queries or keyframes
4570
-
4571
- if (rule.options.parent instanceof StyleSheet) {
4572
- this.cssRules[index] = cssRule;
4573
- }
4574
- }
4575
- /**
4576
- * Delete a rule.
4577
- */
4578
- ;
4579
-
4580
- _proto.deleteRule = function deleteRule(cssRule) {
4581
- var sheet = this.element.sheet;
4582
- var index = this.indexOf(cssRule);
4583
- if (index === -1) return false;
4584
- sheet.deleteRule(index);
4585
- this.cssRules.splice(index, 1);
4586
- return true;
4587
- }
4588
- /**
4589
- * Get index of a CSS Rule.
4590
- */
4591
- ;
4592
-
4593
- _proto.indexOf = function indexOf(cssRule) {
4594
- return this.cssRules.indexOf(cssRule);
4595
- }
4596
- /**
4597
- * Generate a new CSS rule and replace the existing one.
4598
- *
4599
- * Only used for some old browsers because they can't set a selector.
4600
- */
4601
- ;
4602
-
4603
- _proto.replaceRule = function replaceRule(cssRule, rule) {
4604
- var index = this.indexOf(cssRule);
4605
- if (index === -1) return false;
4606
- this.element.sheet.deleteRule(index);
4607
- this.cssRules.splice(index, 1);
4608
- return this.insertRule(rule, index);
4609
- }
4610
- /**
4611
- * Get all rules elements.
4612
- */
4613
- ;
4614
-
4615
- _proto.getRules = function getRules() {
4616
- return this.element.sheet.cssRules;
4617
- };
4618
-
4619
- return DomRenderer;
4620
- }();
4621
-
4622
- var instanceCounter = 0;
4623
-
4624
- var Jss =
4625
- /*#__PURE__*/
4626
- function () {
4627
- function Jss(options) {
4628
- this.id = instanceCounter++;
4629
- this.version = "10.5.0";
4630
- this.plugins = new PluginsRegistry();
4631
- this.options = {
4632
- id: {
4633
- minify: false
4634
- },
4635
- createGenerateId: createGenerateId,
4636
- Renderer: __WEBPACK_IMPORTED_MODULE_1_is_in_browser__["a" /* default */] ? DomRenderer : null,
4637
- plugins: []
4638
- };
4639
- this.generateId = createGenerateId({
4640
- minify: false
4641
- });
4642
-
4643
- for (var i = 0; i < plugins.length; i++) {
4644
- this.plugins.use(plugins[i], {
4645
- queue: 'internal'
4646
- });
4647
- }
4648
-
4649
- this.setup(options);
4650
- }
4651
- /**
4652
- * Prepares various options, applies plugins.
4653
- * Should not be used twice on the same instance, because there is no plugins
4654
- * deduplication logic.
4655
- */
4656
-
4657
-
4658
- var _proto = Jss.prototype;
4659
-
4660
- _proto.setup = function setup(options) {
4661
- if (options === void 0) {
4662
- options = {};
4663
- }
4664
-
4665
- if (options.createGenerateId) {
4666
- this.options.createGenerateId = options.createGenerateId;
4667
- }
4668
-
4669
- if (options.id) {
4670
- this.options.id = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, this.options.id, options.id);
4671
- }
4672
-
4673
- if (options.createGenerateId || options.id) {
4674
- this.generateId = this.options.createGenerateId(this.options.id);
4675
- }
4676
-
4677
- if (options.insertionPoint != null) this.options.insertionPoint = options.insertionPoint;
4678
-
4679
- if ('Renderer' in options) {
4680
- this.options.Renderer = options.Renderer;
4681
- } // eslint-disable-next-line prefer-spread
4682
-
4683
-
4684
- if (options.plugins) this.use.apply(this, options.plugins);
4685
- return this;
4686
- }
4687
- /**
4688
- * Create a Style Sheet.
4689
- */
4690
- ;
4691
-
4692
- _proto.createStyleSheet = function createStyleSheet(styles, options) {
4693
- if (options === void 0) {
4694
- options = {};
4695
- }
4696
-
4697
- var _options = options,
4698
- index = _options.index;
4699
-
4700
- if (typeof index !== 'number') {
4701
- index = registry.index === 0 ? 0 : registry.index + 1;
4702
- }
4703
-
4704
- var sheet = new StyleSheet(styles, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
4705
- jss: this,
4706
- generateId: options.generateId || this.generateId,
4707
- insertionPoint: this.options.insertionPoint,
4708
- Renderer: this.options.Renderer,
4709
- index: index
4710
- }));
4711
- this.plugins.onProcessSheet(sheet);
4712
- return sheet;
4713
- }
4714
- /**
4715
- * Detach the Style Sheet and remove it from the registry.
4716
- */
4717
- ;
4718
-
4719
- _proto.removeStyleSheet = function removeStyleSheet(sheet) {
4720
- sheet.detach();
4721
- registry.remove(sheet);
4722
- return this;
4723
- }
4724
- /**
4725
- * Create a rule without a Style Sheet.
4726
- * [Deprecated] will be removed in the next major version.
4727
- */
4728
- ;
4729
-
4730
- _proto.createRule = function createRule$1(name, style, options) {
4731
- if (style === void 0) {
4732
- style = {};
4733
- }
4734
-
4735
- if (options === void 0) {
4736
- options = {};
4737
- }
4738
-
4739
- // Enable rule without name for inline styles.
4740
- if (typeof name === 'object') {
4741
- // $FlowFixMe[incompatible-call]
4742
- return this.createRule(undefined, name, style);
4743
- } // $FlowFixMe[incompatible-type]
4744
-
4745
-
4746
- var ruleOptions = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, options, {
4747
- name: name,
4748
- jss: this,
4749
- Renderer: this.options.Renderer
4750
- });
4751
-
4752
- if (!ruleOptions.generateId) ruleOptions.generateId = this.generateId;
4753
- if (!ruleOptions.classes) ruleOptions.classes = {};
4754
- if (!ruleOptions.keyframes) ruleOptions.keyframes = {};
4755
-
4756
- var rule = createRule(name, style, ruleOptions);
4757
-
4758
- if (rule) this.plugins.onProcessRule(rule);
4759
- return rule;
4760
- }
4761
- /**
4762
- * Register plugin. Passed function will be invoked with a rule instance.
4763
- */
4764
- ;
4765
-
4766
- _proto.use = function use() {
4767
- var _this = this;
4768
-
4769
- for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {
4770
- plugins[_key] = arguments[_key];
4771
- }
4772
-
4773
- plugins.forEach(function (plugin) {
4774
- _this.plugins.use(plugin);
4775
- });
4776
- return this;
4777
- };
4778
-
4779
- return Jss;
4780
- }();
4781
-
4782
- /**
4783
- * Extracts a styles object with only props that contain function values.
4784
- */
4785
- function getDynamicStyles(styles) {
4786
- var to = null;
4787
-
4788
- for (var key in styles) {
4789
- var value = styles[key];
4790
- var type = typeof value;
4791
-
4792
- if (type === 'function') {
4793
- if (!to) to = {};
4794
- to[key] = value;
4795
- } else if (type === 'object' && value !== null && !Array.isArray(value)) {
4796
- var extracted = getDynamicStyles(value);
4797
-
4798
- if (extracted) {
4799
- if (!to) to = {};
4800
- to[key] = extracted;
4801
- }
4802
- }
4803
- }
4804
-
4805
- return to;
4806
- }
4807
-
4808
- /**
4809
- * SheetsManager is like a WeakMap which is designed to count StyleSheet
4810
- * instances and attach/detach automatically.
4811
- */
4812
- var SheetsManager =
4813
- /*#__PURE__*/
4814
- function () {
4815
- function SheetsManager() {
4816
- this.length = 0;
4817
- this.sheets = new WeakMap();
4818
- }
4819
-
4820
- var _proto = SheetsManager.prototype;
4821
-
4822
- _proto.get = function get(key) {
4823
- var entry = this.sheets.get(key);
4824
- return entry && entry.sheet;
4825
- };
4826
-
4827
- _proto.add = function add(key, sheet) {
4828
- if (this.sheets.has(key)) return;
4829
- this.length++;
4830
- this.sheets.set(key, {
4831
- sheet: sheet,
4832
- refs: 0
4833
- });
4834
- };
4835
-
4836
- _proto.manage = function manage(key) {
4837
- var entry = this.sheets.get(key);
4838
-
4839
- if (entry) {
4840
- if (entry.refs === 0) {
4841
- entry.sheet.attach();
4842
- }
4843
-
4844
- entry.refs++;
4845
- return entry.sheet;
4846
- }
4847
-
4848
- Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "[JSS] SheetsManager: can't find sheet to manage");
4849
- return undefined;
4850
- };
4851
-
4852
- _proto.unmanage = function unmanage(key) {
4853
- var entry = this.sheets.get(key);
4854
-
4855
- if (entry) {
4856
- if (entry.refs > 0) {
4857
- entry.refs--;
4858
- if (entry.refs === 0) entry.sheet.detach();
4859
- }
4860
- } else {
4861
- Object(__WEBPACK_IMPORTED_MODULE_2_tiny_warning__["a" /* default */])(false, "SheetsManager: can't find sheet to unmanage");
4862
- }
4863
- };
4864
-
4865
- Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_createClass__["a" /* default */])(SheetsManager, [{
4866
- key: "size",
4867
- get: function get() {
4868
- return this.length;
4869
- }
4870
- }]);
4871
-
4872
- return SheetsManager;
4873
- }();
4874
-
4875
- /**
4876
- * A better abstraction over CSS.
4877
- *
4878
- * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
4879
- * @website https://github.com/cssinjs/jss
4880
- * @license MIT
4881
- */
4882
-
4883
- /**
4884
- * Export a constant indicating if this browser has CSSTOM support.
4885
- * https://developers.google.com/web/updates/2018/03/cssom
4886
- */
4887
- var hasCSSTOMSupport = typeof CSS === 'object' && CSS != null && 'number' in CSS;
4888
- /**
4889
- * Creates a new instance of Jss.
4890
- */
4891
-
4892
- var create = function create(options) {
4893
- return new Jss(options);
4894
- };
4895
- /**
4896
- * A global Jss instance.
4897
- */
4898
-
4899
- var jss = create();
4900
-
4901
- /* unused harmony default export */ var _unused_webpack_default_export = (jss);
4902
-
4903
-
4904
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
4905
-
4906
- /***/ }),
4907
- /* 50 */
4908
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
4909
-
4910
- "use strict";
4911
- /* harmony export (immutable) */ __webpack_exports__["a"] = _classCallCheck;
4912
- function _classCallCheck(instance, Constructor) {
4913
- if (!(instance instanceof Constructor)) {
4914
- throw new TypeError("Cannot call a class as a function");
4915
- }
4916
- }
4917
-
4918
- /***/ }),
4919
- /* 51 */
4920
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
4921
-
4922
- "use strict";
4923
- /* harmony export (immutable) */ __webpack_exports__["a"] = debounce;
4924
- // Corresponds to 10 frames at 60 Hz.
4925
- // A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B.
4926
- function debounce(func) {
4927
- var wait = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 166;
4928
- var timeout;
4929
-
4930
- function debounced() {
4931
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
4932
- args[_key] = arguments[_key];
4933
- }
4934
-
4935
- // eslint-disable-next-line consistent-this
4936
- var that = this;
4937
-
4938
- var later = function later() {
4939
- func.apply(that, args);
4940
- };
4941
-
4942
- clearTimeout(timeout);
4943
- timeout = setTimeout(later, wait);
4944
- }
4945
-
4946
- debounced.clear = function () {
4947
- clearTimeout(timeout);
4948
- };
4949
-
4950
- return debounced;
4951
- }
4952
-
4953
- /***/ }),
4954
- /* 52 */
4955
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
4956
-
4957
- "use strict";
4958
- /* harmony export (immutable) */ __webpack_exports__["a"] = setRef;
4959
- // TODO v5: consider to make it private
4960
- function setRef(ref, value) {
4961
- if (typeof ref === 'function') {
4962
- ref(value);
4963
- } else if (ref) {
4964
- ref.current = value;
4965
- }
4966
- }
4967
-
4968
- /***/ }),
4969
- /* 53 */
4970
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
4971
-
4972
- "use strict";
4973
- /* harmony export (immutable) */ __webpack_exports__["a"] = useFormControl;
4974
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
4975
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
4976
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__FormControlContext__ = __webpack_require__(99);
4977
-
4978
-
4979
- function useFormControl() {
4980
- return __WEBPACK_IMPORTED_MODULE_0_react__["useContext"](__WEBPACK_IMPORTED_MODULE_1__FormControlContext__["a" /* default */]);
4981
- }
4982
-
4983
- /***/ }),
4984
- /* 54 */
4985
- /***/ (function(module, exports, __webpack_require__) {
4986
-
4987
- var Symbol = __webpack_require__(84),
4988
- getRawTag = __webpack_require__(762),
4989
- objectToString = __webpack_require__(763);
4990
-
4991
- /** `Object#toString` result references. */
4992
- var nullTag = '[object Null]',
4993
- undefinedTag = '[object Undefined]';
4994
-
4995
- /** Built-in value references. */
4996
- var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
4997
-
4998
- /**
4999
- * The base implementation of `getTag` without fallbacks for buggy environments.
5000
- *
5001
- * @private
5002
- * @param {*} value The value to query.
5003
- * @returns {string} Returns the `toStringTag`.
5004
- */
5005
- function baseGetTag(value) {
5006
- if (value == null) {
5007
- return value === undefined ? undefinedTag : nullTag;
5008
- }
5009
- return (symToStringTag && symToStringTag in Object(value))
5010
- ? getRawTag(value)
5011
- : objectToString(value);
5012
- }
5013
-
5014
- module.exports = baseGetTag;
5015
-
5016
-
5017
- /***/ }),
5018
- /* 55 */
5019
- /***/ (function(module, exports, __webpack_require__) {
5020
-
5021
- var baseIsNative = __webpack_require__(788),
5022
- getValue = __webpack_require__(791);
5023
-
5024
- /**
5025
- * Gets the native function at `key` of `object`.
5026
- *
5027
- * @private
5028
- * @param {Object} object The object to query.
5029
- * @param {string} key The key of the method to get.
5030
- * @returns {*} Returns the function if it's native, else `undefined`.
5031
- */
5032
- function getNative(object, key) {
5033
- var value = getValue(object, key);
5034
- return baseIsNative(value) ? value : undefined;
5035
- }
5036
-
5037
- module.exports = getNative;
5038
-
5039
-
5040
- /***/ }),
5041
- /* 56 */
5042
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5043
-
5044
- "use strict";
5045
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseIsNative_js__ = __webpack_require__(884);
5046
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__getValue_js__ = __webpack_require__(889);
5047
-
5048
-
5049
-
5050
- /**
5051
- * Gets the native function at `key` of `object`.
5052
- *
5053
- * @private
5054
- * @param {Object} object The object to query.
5055
- * @param {string} key The key of the method to get.
5056
- * @returns {*} Returns the function if it's native, else `undefined`.
5057
- */
5058
- function getNative(object, key) {
5059
- var value = Object(__WEBPACK_IMPORTED_MODULE_1__getValue_js__["a" /* default */])(object, key);
5060
- return Object(__WEBPACK_IMPORTED_MODULE_0__baseIsNative_js__["a" /* default */])(value) ? value : undefined;
5061
- }
5062
-
5063
- /* harmony default export */ __webpack_exports__["a"] = (getNative);
5064
-
5065
-
5066
- /***/ }),
5067
- /* 57 */
5068
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5069
-
5070
- "use strict";
5071
- /**
5072
- * Checks if `value` is object-like. A value is object-like if it's not `null`
5073
- * and has a `typeof` result of "object".
5074
- *
5075
- * @static
5076
- * @memberOf _
5077
- * @since 4.0.0
5078
- * @category Lang
5079
- * @param {*} value The value to check.
5080
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
5081
- * @example
5082
- *
5083
- * _.isObjectLike({});
5084
- * // => true
5085
- *
5086
- * _.isObjectLike([1, 2, 3]);
5087
- * // => true
5088
- *
5089
- * _.isObjectLike(_.noop);
5090
- * // => false
5091
- *
5092
- * _.isObjectLike(null);
5093
- * // => false
5094
- */
5095
- function isObjectLike(value) {
5096
- return value != null && typeof value == 'object';
5097
- }
5098
-
5099
- /* harmony default export */ __webpack_exports__["a"] = (isObjectLike);
5100
-
5101
-
5102
- /***/ }),
5103
- /* 58 */
5104
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5105
-
5106
- "use strict";
5107
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayMap_js__ = __webpack_require__(415);
5108
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__baseIteratee_js__ = __webpack_require__(951);
5109
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__baseMap_js__ = __webpack_require__(989);
5110
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__isArray_js__ = __webpack_require__(32);
5111
-
5112
-
5113
-
5114
-
5115
-
5116
- /**
5117
- * Creates an array of values by running each element in `collection` thru
5118
- * `iteratee`. The iteratee is invoked with three arguments:
5119
- * (value, index|key, collection).
5120
- *
5121
- * Many lodash methods are guarded to work as iteratees for methods like
5122
- * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
5123
- *
5124
- * The guarded methods are:
5125
- * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
5126
- * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
5127
- * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
5128
- * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
5129
- *
5130
- * @static
5131
- * @memberOf _
5132
- * @since 0.1.0
5133
- * @category Collection
5134
- * @param {Array|Object} collection The collection to iterate over.
5135
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
5136
- * @returns {Array} Returns the new mapped array.
5137
- * @example
5138
- *
5139
- * function square(n) {
5140
- * return n * n;
5141
- * }
5142
- *
5143
- * _.map([4, 8], square);
5144
- * // => [16, 64]
5145
- *
5146
- * _.map({ 'a': 4, 'b': 8 }, square);
5147
- * // => [16, 64] (iteration order is not guaranteed)
5148
- *
5149
- * var users = [
5150
- * { 'user': 'barney' },
5151
- * { 'user': 'fred' }
5152
- * ];
5153
- *
5154
- * // The `_.property` iteratee shorthand.
5155
- * _.map(users, 'user');
5156
- * // => ['barney', 'fred']
5157
- */
5158
- function map(collection, iteratee) {
5159
- var func = Object(__WEBPACK_IMPORTED_MODULE_3__isArray_js__["a" /* default */])(collection) ? __WEBPACK_IMPORTED_MODULE_0__arrayMap_js__["a" /* default */] : __WEBPACK_IMPORTED_MODULE_2__baseMap_js__["a" /* default */];
5160
- return func(collection, Object(__WEBPACK_IMPORTED_MODULE_1__baseIteratee_js__["a" /* default */])(iteratee, 3));
5161
- }
5162
-
5163
- /* harmony default export */ __webpack_exports__["a"] = (map);
5164
-
5165
-
5166
- /***/ }),
5167
- /* 59 */
5168
- /***/ (function(module, exports, __webpack_require__) {
5169
-
5170
- "use strict";
5171
- /*
5172
- object-assign
5173
- (c) Sindre Sorhus
5174
- @license MIT
5175
- */
5176
-
5177
-
5178
- /* eslint-disable no-unused-vars */
5179
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
5180
- var hasOwnProperty = Object.prototype.hasOwnProperty;
5181
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
5182
-
5183
- function toObject(val) {
5184
- if (val === null || val === undefined) {
5185
- throw new TypeError('Object.assign cannot be called with null or undefined');
5186
- }
5187
-
5188
- return Object(val);
5189
- }
5190
-
5191
- function shouldUseNative() {
5192
- try {
5193
- if (!Object.assign) {
5194
- return false;
5195
- }
5196
-
5197
- // Detect buggy property enumeration order in older V8 versions.
5198
-
5199
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
5200
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
5201
- test1[5] = 'de';
5202
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
5203
- return false;
5204
- }
5205
-
5206
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
5207
- var test2 = {};
5208
- for (var i = 0; i < 10; i++) {
5209
- test2['_' + String.fromCharCode(i)] = i;
5210
- }
5211
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
5212
- return test2[n];
5213
- });
5214
- if (order2.join('') !== '0123456789') {
5215
- return false;
5216
- }
5217
-
5218
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
5219
- var test3 = {};
5220
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
5221
- test3[letter] = letter;
5222
- });
5223
- if (Object.keys(Object.assign({}, test3)).join('') !==
5224
- 'abcdefghijklmnopqrst') {
5225
- return false;
5226
- }
5227
-
5228
- return true;
5229
- } catch (err) {
5230
- // We don't expect any of the above to throw, but better to be safe.
5231
- return false;
5232
- }
5233
- }
5234
-
5235
- module.exports = shouldUseNative() ? Object.assign : function (target, source) {
5236
- var from;
5237
- var to = toObject(target);
5238
- var symbols;
5239
-
5240
- for (var s = 1; s < arguments.length; s++) {
5241
- from = Object(arguments[s]);
5242
-
5243
- for (var key in from) {
5244
- if (hasOwnProperty.call(from, key)) {
5245
- to[key] = from[key];
5246
- }
5247
- }
5248
-
5249
- if (getOwnPropertySymbols) {
5250
- symbols = getOwnPropertySymbols(from);
5251
- for (var i = 0; i < symbols.length; i++) {
5252
- if (propIsEnumerable.call(from, symbols[i])) {
5253
- to[symbols[i]] = from[symbols[i]];
5254
- }
5255
- }
5256
- }
5257
- }
5258
-
5259
- return to;
5260
- };
5261
-
5262
-
5263
- /***/ }),
5264
- /* 60 */
5265
- /***/ (function(module, exports) {
5266
-
5267
- var g;
5268
 
5269
- // This works in non-strict mode
5270
- g = (function() {
5271
- return this;
5272
- })();
5273
 
5274
- try {
5275
- // This works if eval is allowed (see CSP)
5276
- g = g || Function("return this")() || (1,eval)("this");
5277
- } catch(e) {
5278
- // This works if the window reference is available
5279
- if(typeof window === "object")
5280
- g = window;
5281
  }
5282
 
5283
- // g can still be undefined, but nothing to do about it...
5284
- // We return undefined, instead of nothing here, so it's
5285
- // easier to handle this case. if(!global) { ...}
5286
 
5287
- module.exports = g;
5288
-
5289
-
5290
- /***/ }),
5291
- /* 61 */
5292
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5293
-
5294
- "use strict";
5295
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__useTheme__ = __webpack_require__(483);
5296
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__useTheme__["a"]; });
5297
-
5298
-
5299
- /***/ }),
5300
- /* 62 */
5301
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5302
-
5303
- "use strict";
5304
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = createChainedFunction;
5305
- /**
5306
- * Safe chained function
5307
- *
5308
- * Will only create a new function if needed,
5309
- * otherwise will pass back existing functions or null.
5310
- *
5311
- * @param {function} functions to chain
5312
- * @returns {function|null}
5313
- */
5314
- function createChainedFunction() {
5315
- for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
5316
- funcs[_key] = arguments[_key];
5317
- }
5318
-
5319
- return funcs.reduce(function (acc, func) {
5320
- if (func == null) {
5321
- return acc;
5322
- }
5323
-
5324
- if (process.env.NODE_ENV !== 'production') {
5325
- if (typeof func !== 'function') {
5326
- console.error('Material-UI: Invalid Argument Type, must only provide functions, undefined, or null.');
5327
- }
5328
- }
5329
-
5330
- return function chainedFunction() {
5331
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
5332
- args[_key2] = arguments[_key2];
5333
- }
5334
-
5335
- acc.apply(this, args);
5336
- func.apply(this, args);
5337
- };
5338
- }, function () {});
5339
- }
5340
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
5341
-
5342
- /***/ }),
5343
- /* 63 */
5344
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5345
-
5346
- "use strict";
5347
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CSSTransition__ = __webpack_require__(562);
5348
- /* unused harmony reexport CSSTransition */
5349
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ReplaceTransition__ = __webpack_require__(566);
5350
- /* unused harmony reexport ReplaceTransition */
5351
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__SwitchTransition__ = __webpack_require__(568);
5352
- /* unused harmony reexport SwitchTransition */
5353
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__TransitionGroup__ = __webpack_require__(264);
5354
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_3__TransitionGroup__["a"]; });
5355
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Transition__ = __webpack_require__(140);
5356
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_4__Transition__["d"]; });
5357
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__config__ = __webpack_require__(262);
5358
- /* unused harmony reexport config */
5359
-
5360
-
5361
-
5362
-
5363
-
5364
-
5365
-
5366
- /***/ }),
5367
- /* 64 */
5368
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5369
-
5370
- "use strict";
5371
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Collapse__ = __webpack_require__(586);
5372
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Collapse__["a"]; });
5373
-
5374
-
5375
- /***/ }),
5376
- /* 65 */
5377
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5378
-
5379
- "use strict";
5380
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return reflow; });
5381
- /* harmony export (immutable) */ __webpack_exports__["a"] = getTransitionProps;
5382
- var reflow = function reflow(node) {
5383
- return node.scrollTop;
5384
- };
5385
- function getTransitionProps(props, options) {
5386
- var timeout = props.timeout,
5387
- _props$style = props.style,
5388
- style = _props$style === void 0 ? {} : _props$style;
5389
- return {
5390
- duration: style.transitionDuration || typeof timeout === 'number' ? timeout : timeout[options.mode] || 0,
5391
- delay: style.transitionDelay
5392
- };
5393
- }
5394
-
5395
- /***/ }),
5396
- /* 66 */
5397
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5398
-
5399
- "use strict";
5400
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__InputBase__ = __webpack_require__(638);
5401
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__InputBase__["a"]; });
5402
-
5403
-
5404
- /***/ }),
5405
- /* 67 */
5406
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5407
-
5408
- "use strict";
5409
- /* harmony export (immutable) */ __webpack_exports__["a"] = formControlState;
5410
- function formControlState(_ref) {
5411
- var props = _ref.props,
5412
- states = _ref.states,
5413
- muiFormControl = _ref.muiFormControl;
5414
- return states.reduce(function (acc, state) {
5415
- acc[state] = props[state];
5416
-
5417
- if (muiFormControl) {
5418
- if (typeof props[state] === 'undefined') {
5419
- acc[state] = muiFormControl[state];
5420
- }
5421
- }
5422
-
5423
- return acc;
5424
- }, {});
5425
- }
5426
-
5427
- /***/ }),
5428
- /* 68 */
5429
- /***/ (function(module, exports) {
5430
-
5431
- /**
5432
- * Checks if `value` is the
5433
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
5434
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
5435
- *
5436
- * @static
5437
- * @memberOf _
5438
- * @since 0.1.0
5439
- * @category Lang
5440
- * @param {*} value The value to check.
5441
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
5442
- * @example
5443
- *
5444
- * _.isObject({});
5445
- * // => true
5446
- *
5447
- * _.isObject([1, 2, 3]);
5448
- * // => true
5449
- *
5450
- * _.isObject(_.noop);
5451
- * // => true
5452
- *
5453
- * _.isObject(null);
5454
- * // => false
5455
- */
5456
- function isObject(value) {
5457
- var type = typeof value;
5458
- return value != null && (type == 'object' || type == 'function');
5459
- }
5460
-
5461
- module.exports = isObject;
5462
-
5463
-
5464
- /***/ }),
5465
- /* 69 */
5466
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5467
-
5468
- "use strict";
5469
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Symbol_js__ = __webpack_require__(121);
5470
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__getRawTag_js__ = __webpack_require__(885);
5471
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__objectToString_js__ = __webpack_require__(886);
5472
-
5473
-
5474
-
5475
-
5476
- /** `Object#toString` result references. */
5477
- var nullTag = '[object Null]',
5478
- undefinedTag = '[object Undefined]';
5479
-
5480
- /** Built-in value references. */
5481
- var symToStringTag = __WEBPACK_IMPORTED_MODULE_0__Symbol_js__["a" /* default */] ? __WEBPACK_IMPORTED_MODULE_0__Symbol_js__["a" /* default */].toStringTag : undefined;
5482
-
5483
- /**
5484
- * The base implementation of `getTag` without fallbacks for buggy environments.
5485
- *
5486
- * @private
5487
- * @param {*} value The value to query.
5488
- * @returns {string} Returns the `toStringTag`.
5489
- */
5490
- function baseGetTag(value) {
5491
- if (value == null) {
5492
- return value === undefined ? undefinedTag : nullTag;
5493
- }
5494
- return (symToStringTag && symToStringTag in Object(value))
5495
- ? Object(__WEBPACK_IMPORTED_MODULE_1__getRawTag_js__["a" /* default */])(value)
5496
- : Object(__WEBPACK_IMPORTED_MODULE_2__objectToString_js__["a" /* default */])(value);
5497
- }
5498
-
5499
- /* harmony default export */ __webpack_exports__["a"] = (baseGetTag);
5500
-
5501
-
5502
- /***/ }),
5503
- /* 70 */
5504
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5505
-
5506
- "use strict";
5507
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isFunction_js__ = __webpack_require__(196);
5508
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isLength_js__ = __webpack_require__(202);
5509
-
5510
-
5511
-
5512
- /**
5513
- * Checks if `value` is array-like. A value is considered array-like if it's
5514
- * not a function and has a `value.length` that's an integer greater than or
5515
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
5516
- *
5517
- * @static
5518
- * @memberOf _
5519
- * @since 4.0.0
5520
- * @category Lang
5521
- * @param {*} value The value to check.
5522
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
5523
- * @example
5524
- *
5525
- * _.isArrayLike([1, 2, 3]);
5526
- * // => true
5527
- *
5528
- * _.isArrayLike(document.body.children);
5529
- * // => true
5530
- *
5531
- * _.isArrayLike('abc');
5532
- * // => true
5533
- *
5534
- * _.isArrayLike(_.noop);
5535
- * // => false
5536
- */
5537
- function isArrayLike(value) {
5538
- return value != null && Object(__WEBPACK_IMPORTED_MODULE_1__isLength_js__["a" /* default */])(value.length) && !Object(__WEBPACK_IMPORTED_MODULE_0__isFunction_js__["a" /* default */])(value);
5539
- }
5540
-
5541
- /* harmony default export */ __webpack_exports__["a"] = (isArrayLike);
5542
-
5543
-
5544
- /***/ }),
5545
- /* 71 */
5546
- /***/ (function(module, exports, __webpack_require__) {
5547
-
5548
- "use strict";
5549
-
5550
-
5551
- var reactIs = __webpack_require__(16);
5552
-
5553
- /**
5554
- * Copyright 2015, Yahoo! Inc.
5555
- * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
5556
- */
5557
- var REACT_STATICS = {
5558
- childContextTypes: true,
5559
- contextType: true,
5560
- contextTypes: true,
5561
- defaultProps: true,
5562
- displayName: true,
5563
- getDefaultProps: true,
5564
- getDerivedStateFromError: true,
5565
- getDerivedStateFromProps: true,
5566
- mixins: true,
5567
- propTypes: true,
5568
- type: true
5569
- };
5570
- var KNOWN_STATICS = {
5571
- name: true,
5572
- length: true,
5573
- prototype: true,
5574
- caller: true,
5575
- callee: true,
5576
- arguments: true,
5577
- arity: true
5578
- };
5579
- var FORWARD_REF_STATICS = {
5580
- '$$typeof': true,
5581
- render: true,
5582
- defaultProps: true,
5583
- displayName: true,
5584
- propTypes: true
5585
- };
5586
- var MEMO_STATICS = {
5587
- '$$typeof': true,
5588
- compare: true,
5589
- defaultProps: true,
5590
- displayName: true,
5591
- propTypes: true,
5592
- type: true
5593
- };
5594
- var TYPE_STATICS = {};
5595
- TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
5596
- TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
5597
-
5598
- function getStatics(component) {
5599
- // React v16.11 and below
5600
- if (reactIs.isMemo(component)) {
5601
- return MEMO_STATICS;
5602
- } // React v16.12 and above
5603
-
5604
-
5605
- return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
5606
- }
5607
-
5608
- var defineProperty = Object.defineProperty;
5609
- var getOwnPropertyNames = Object.getOwnPropertyNames;
5610
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
5611
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
5612
- var getPrototypeOf = Object.getPrototypeOf;
5613
- var objectPrototype = Object.prototype;
5614
- function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
5615
- if (typeof sourceComponent !== 'string') {
5616
- // don't hoist over string (html) components
5617
- if (objectPrototype) {
5618
- var inheritedComponent = getPrototypeOf(sourceComponent);
5619
-
5620
- if (inheritedComponent && inheritedComponent !== objectPrototype) {
5621
- hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
5622
- }
5623
- }
5624
-
5625
- var keys = getOwnPropertyNames(sourceComponent);
5626
-
5627
- if (getOwnPropertySymbols) {
5628
- keys = keys.concat(getOwnPropertySymbols(sourceComponent));
5629
- }
5630
-
5631
- var targetStatics = getStatics(targetComponent);
5632
- var sourceStatics = getStatics(sourceComponent);
5633
-
5634
- for (var i = 0; i < keys.length; ++i) {
5635
- var key = keys[i];
5636
-
5637
- if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
5638
- var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
5639
-
5640
- try {
5641
- // Avoid failures from read-only properties
5642
- defineProperty(targetComponent, key, descriptor);
5643
- } catch (e) {}
5644
- }
5645
- }
5646
- }
5647
-
5648
- return targetComponent;
5649
- }
5650
-
5651
- module.exports = hoistNonReactStatics;
5652
-
5653
-
5654
- /***/ }),
5655
- /* 72 */
5656
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5657
-
5658
- "use strict";
5659
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createMuiTheme__ = __webpack_require__(135);
5660
-
5661
- var defaultTheme = Object(__WEBPACK_IMPORTED_MODULE_0__createMuiTheme__["a" /* default */])();
5662
- /* harmony default export */ __webpack_exports__["a"] = (defaultTheme);
5663
-
5664
- /***/ }),
5665
- /* 73 */
5666
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5667
-
5668
- "use strict";
5669
- /* harmony export (immutable) */ __webpack_exports__["a"] = _inherits;
5670
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__setPrototypeOf__ = __webpack_require__(515);
5671
-
5672
- function _inherits(subClass, superClass) {
5673
- if (typeof superClass !== "function" && superClass !== null) {
5674
- throw new TypeError("Super expression must either be null or a function");
5675
- }
5676
-
5677
- subClass.prototype = Object.create(superClass && superClass.prototype, {
5678
- constructor: {
5679
- value: subClass,
5680
- writable: true,
5681
- configurable: true
5682
- }
5683
- });
5684
- if (superClass) Object(__WEBPACK_IMPORTED_MODULE_0__setPrototypeOf__["a" /* default */])(subClass, superClass);
5685
- }
5686
-
5687
- /***/ }),
5688
- /* 74 */
5689
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5690
-
5691
- "use strict";
5692
- /* harmony export (immutable) */ __webpack_exports__["a"] = _possibleConstructorReturn;
5693
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__helpers_esm_typeof__ = __webpack_require__(44);
5694
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__assertThisInitialized__ = __webpack_require__(88);
5695
-
5696
-
5697
- function _possibleConstructorReturn(self, call) {
5698
- if (call && (Object(__WEBPACK_IMPORTED_MODULE_0__helpers_esm_typeof__["a" /* default */])(call) === "object" || typeof call === "function")) {
5699
- return call;
5700
- }
5701
-
5702
- return Object(__WEBPACK_IMPORTED_MODULE_1__assertThisInitialized__["a" /* default */])(self);
5703
- }
5704
-
5705
- /***/ }),
5706
- /* 75 */
5707
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5708
-
5709
- "use strict";
5710
- /* harmony export (immutable) */ __webpack_exports__["a"] = _getPrototypeOf;
5711
- function _getPrototypeOf(o) {
5712
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
5713
- return o.__proto__ || Object.getPrototypeOf(o);
5714
- };
5715
- return _getPrototypeOf(o);
5716
- }
5717
-
5718
- /***/ }),
5719
- /* 76 */
5720
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5721
-
5722
- "use strict";
5723
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_serialize__ = __webpack_require__(139);
5724
-
5725
-
5726
- function css() {
5727
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
5728
- args[_key] = arguments[_key];
5729
- }
5730
-
5731
- return Object(__WEBPACK_IMPORTED_MODULE_0__emotion_serialize__["a" /* serializeStyles */])(args);
5732
- }
5733
-
5734
- /* harmony default export */ __webpack_exports__["a"] = (css);
5735
-
5736
-
5737
- /***/ }),
5738
- /* 77 */
5739
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5740
-
5741
- "use strict";
5742
- /* harmony export (immutable) */ __webpack_exports__["a"] = isMuiElement;
5743
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
5744
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
5745
-
5746
- function isMuiElement(element, muiNames) {
5747
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_react__["isValidElement"](element) && muiNames.indexOf(element.type.muiName) !== -1;
5748
- }
5749
-
5750
- /***/ }),
5751
- /* 78 */
5752
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5753
-
5754
- "use strict";
5755
- /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export teardown */
5756
- /* harmony export (immutable) */ __webpack_exports__["a"] = useIsFocusVisible;
5757
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
5758
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
5759
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom__ = __webpack_require__(11);
5760
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_dom__);
5761
- // based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js
5762
-
5763
-
5764
- var hadKeyboardEvent = true;
5765
- var hadFocusVisibleRecently = false;
5766
- var hadFocusVisibleRecentlyTimeout = null;
5767
- var inputTypesWhitelist = {
5768
- text: true,
5769
- search: true,
5770
- url: true,
5771
- tel: true,
5772
- email: true,
5773
- password: true,
5774
- number: true,
5775
- date: true,
5776
- month: true,
5777
- week: true,
5778
- time: true,
5779
- datetime: true,
5780
- 'datetime-local': true
5781
- };
5782
- /**
5783
- * Computes whether the given element should automatically trigger the
5784
- * `focus-visible` class being added, i.e. whether it should always match
5785
- * `:focus-visible` when focused.
5786
- * @param {Element} node
5787
- * @return {boolean}
5788
- */
5789
-
5790
- function focusTriggersKeyboardModality(node) {
5791
- var type = node.type,
5792
- tagName = node.tagName;
5793
-
5794
- if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) {
5795
- return true;
5796
- }
5797
-
5798
- if (tagName === 'TEXTAREA' && !node.readOnly) {
5799
- return true;
5800
- }
5801
-
5802
- if (node.isContentEditable) {
5803
- return true;
5804
- }
5805
-
5806
- return false;
5807
- }
5808
- /**
5809
- * Keep track of our keyboard modality state with `hadKeyboardEvent`.
5810
- * If the most recent user interaction was via the keyboard;
5811
- * and the key press did not include a meta, alt/option, or control key;
5812
- * then the modality is keyboard. Otherwise, the modality is not keyboard.
5813
- * @param {KeyboardEvent} event
5814
- */
5815
-
5816
-
5817
- function handleKeyDown(event) {
5818
- if (event.metaKey || event.altKey || event.ctrlKey) {
5819
- return;
5820
- }
5821
-
5822
- hadKeyboardEvent = true;
5823
- }
5824
- /**
5825
- * If at any point a user clicks with a pointing device, ensure that we change
5826
- * the modality away from keyboard.
5827
- * This avoids the situation where a user presses a key on an already focused
5828
- * element, and then clicks on a different element, focusing it with a
5829
- * pointing device, while we still think we're in keyboard modality.
5830
- */
5831
-
5832
-
5833
- function handlePointerDown() {
5834
- hadKeyboardEvent = false;
5835
- }
5836
-
5837
- function handleVisibilityChange() {
5838
- if (this.visibilityState === 'hidden') {
5839
- // If the tab becomes active again, the browser will handle calling focus
5840
- // on the element (Safari actually calls it twice).
5841
- // If this tab change caused a blur on an element with focus-visible,
5842
- // re-apply the class when the user switches back to the tab.
5843
- if (hadFocusVisibleRecently) {
5844
- hadKeyboardEvent = true;
5845
- }
5846
- }
5847
- }
5848
-
5849
- function prepare(doc) {
5850
- doc.addEventListener('keydown', handleKeyDown, true);
5851
- doc.addEventListener('mousedown', handlePointerDown, true);
5852
- doc.addEventListener('pointerdown', handlePointerDown, true);
5853
- doc.addEventListener('touchstart', handlePointerDown, true);
5854
- doc.addEventListener('visibilitychange', handleVisibilityChange, true);
5855
- }
5856
-
5857
- function teardown(doc) {
5858
- doc.removeEventListener('keydown', handleKeyDown, true);
5859
- doc.removeEventListener('mousedown', handlePointerDown, true);
5860
- doc.removeEventListener('pointerdown', handlePointerDown, true);
5861
- doc.removeEventListener('touchstart', handlePointerDown, true);
5862
- doc.removeEventListener('visibilitychange', handleVisibilityChange, true);
5863
- }
5864
-
5865
- function isFocusVisible(event) {
5866
- var target = event.target;
5867
-
5868
- try {
5869
- return target.matches(':focus-visible');
5870
- } catch (error) {} // browsers not implementing :focus-visible will throw a SyntaxError
5871
- // we use our own heuristic for those browsers
5872
- // rethrow might be better if it's not the expected error but do we really
5873
- // want to crash if focus-visible malfunctioned?
5874
- // no need for validFocusTarget check. the user does that by attaching it to
5875
- // focusable events only
5876
-
5877
-
5878
- return hadKeyboardEvent || focusTriggersKeyboardModality(target);
5879
- }
5880
- /**
5881
- * Should be called if a blur event is fired on a focus-visible element
5882
- */
5883
-
5884
-
5885
- function handleBlurVisible() {
5886
- // To detect a tab/window switch, we look for a blur event followed
5887
- // rapidly by a visibility change.
5888
- // If we don't see a visibility change within 100ms, it's probably a
5889
- // regular focus change.
5890
- hadFocusVisibleRecently = true;
5891
- window.clearTimeout(hadFocusVisibleRecentlyTimeout);
5892
- hadFocusVisibleRecentlyTimeout = window.setTimeout(function () {
5893
- hadFocusVisibleRecently = false;
5894
- }, 100);
5895
- }
5896
-
5897
- function useIsFocusVisible() {
5898
- var ref = __WEBPACK_IMPORTED_MODULE_0_react__["useCallback"](function (instance) {
5899
- var node = __WEBPACK_IMPORTED_MODULE_1_react_dom__["findDOMNode"](instance);
5900
-
5901
- if (node != null) {
5902
- prepare(node.ownerDocument);
5903
- }
5904
- }, []);
5905
-
5906
- if (process.env.NODE_ENV !== 'production') {
5907
- // eslint-disable-next-line react-hooks/rules-of-hooks
5908
- __WEBPACK_IMPORTED_MODULE_0_react__["useDebugValue"](isFocusVisible);
5909
- }
5910
-
5911
- return {
5912
- isFocusVisible: isFocusVisible,
5913
- onBlurVisible: handleBlurVisible,
5914
- ref: ref
5915
- };
5916
- }
5917
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
5918
-
5919
- /***/ }),
5920
- /* 79 */
5921
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5922
-
5923
- "use strict";
5924
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Modal__ = __webpack_require__(622);
5925
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Modal__["a"]; });
5926
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ModalManager__ = __webpack_require__(290);
5927
- /* unused harmony reexport ModalManager */
5928
-
5929
-
5930
-
5931
- /***/ }),
5932
- /* 80 */
5933
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5934
-
5935
- "use strict";
5936
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Grow__ = __webpack_require__(649);
5937
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Grow__["a"]; });
5938
-
5939
-
5940
- /***/ }),
5941
- /* 81 */
5942
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5943
-
5944
- "use strict";
5945
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Input__ = __webpack_require__(654);
5946
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Input__["a"]; });
5947
-
5948
-
5949
- /***/ }),
5950
- /* 82 */
5951
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5952
-
5953
- "use strict";
5954
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
5955
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
5956
-
5957
- /**
5958
- * @ignore - internal component.
5959
- */
5960
-
5961
- var ListContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]({});
5962
-
5963
- if (process.env.NODE_ENV !== 'production') {
5964
- ListContext.displayName = 'ListContext';
5965
- }
5966
-
5967
- /* harmony default export */ __webpack_exports__["a"] = (ListContext);
5968
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
5969
-
5970
- /***/ }),
5971
- /* 83 */
5972
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5973
-
5974
- "use strict";
5975
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
5976
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
5977
-
5978
- /**
5979
- * @ignore - internal component.
5980
- */
5981
-
5982
- var Tablelvl2Context = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]();
5983
-
5984
- if (process.env.NODE_ENV !== 'production') {
5985
- Tablelvl2Context.displayName = 'Tablelvl2Context';
5986
- }
5987
-
5988
- /* harmony default export */ __webpack_exports__["a"] = (Tablelvl2Context);
5989
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
5990
-
5991
- /***/ }),
5992
- /* 84 */
5993
- /***/ (function(module, exports, __webpack_require__) {
5994
-
5995
- var root = __webpack_require__(38);
5996
-
5997
- /** Built-in value references. */
5998
- var Symbol = root.Symbol;
5999
-
6000
- module.exports = Symbol;
6001
-
6002
-
6003
- /***/ }),
6004
- /* 85 */
6005
- /***/ (function(module, exports, __webpack_require__) {
6006
-
6007
- var arrayLikeKeys = __webpack_require__(378),
6008
- baseKeys = __webpack_require__(770),
6009
- isArrayLike = __webpack_require__(111);
6010
-
6011
- /**
6012
- * Creates an array of the own enumerable property names of `object`.
6013
- *
6014
- * **Note:** Non-object values are coerced to objects. See the
6015
- * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
6016
- * for more details.
6017
- *
6018
- * @static
6019
- * @since 0.1.0
6020
- * @memberOf _
6021
- * @category Object
6022
- * @param {Object} object The object to query.
6023
- * @returns {Array} Returns the array of property names.
6024
- * @example
6025
- *
6026
- * function Foo() {
6027
- * this.a = 1;
6028
- * this.b = 2;
6029
- * }
6030
- *
6031
- * Foo.prototype.c = 3;
6032
- *
6033
- * _.keys(new Foo);
6034
- * // => ['a', 'b'] (iteration order is not guaranteed)
6035
- *
6036
- * _.keys('hi');
6037
- * // => ['0', '1']
6038
- */
6039
- function keys(object) {
6040
- return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
6041
- }
6042
-
6043
- module.exports = keys;
6044
-
6045
-
6046
- /***/ }),
6047
- /* 86 */
6048
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6049
-
6050
- "use strict";
6051
- /**
6052
- * Performs a
6053
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
6054
- * comparison between two values to determine if they are equivalent.
6055
- *
6056
- * @static
6057
- * @memberOf _
6058
- * @since 4.0.0
6059
- * @category Lang
6060
- * @param {*} value The value to compare.
6061
- * @param {*} other The other value to compare.
6062
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
6063
- * @example
6064
- *
6065
- * var object = { 'a': 1 };
6066
- * var other = { 'a': 1 };
6067
- *
6068
- * _.eq(object, object);
6069
- * // => true
6070
- *
6071
- * _.eq(object, other);
6072
- * // => false
6073
- *
6074
- * _.eq('a', 'a');
6075
- * // => true
6076
- *
6077
- * _.eq('a', Object('a'));
6078
- * // => false
6079
- *
6080
- * _.eq(NaN, NaN);
6081
- * // => true
6082
- */
6083
- function eq(value, other) {
6084
- return value === other || (value !== value && other !== other);
6085
- }
6086
-
6087
- /* harmony default export */ __webpack_exports__["a"] = (eq);
6088
-
6089
-
6090
- /***/ }),
6091
- /* 87 */
6092
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6093
-
6094
- "use strict";
6095
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createGenerateClassName__ = __webpack_require__(465);
6096
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__createGenerateClassName__["a"]; });
6097
-
6098
-
6099
- /***/ }),
6100
- /* 88 */
6101
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6102
-
6103
- "use strict";
6104
- /* harmony export (immutable) */ __webpack_exports__["a"] = _assertThisInitialized;
6105
- function _assertThisInitialized(self) {
6106
- if (self === void 0) {
6107
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
6108
- }
6109
-
6110
- return self;
6111
- }
6112
-
6113
- /***/ }),
6114
- /* 89 */
6115
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6116
-
6117
- "use strict";
6118
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__makeStyles__ = __webpack_require__(480);
6119
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__makeStyles__["a"]; });
6120
-
6121
-
6122
- /***/ }),
6123
- /* 90 */
6124
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6125
-
6126
- "use strict";
6127
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StylesProvider__ = __webpack_require__(218);
6128
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__StylesProvider__["b"]; });
6129
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__StylesProvider__["a"]; });
6130
-
6131
-
6132
-
6133
- /***/ }),
6134
- /* 91 */
6135
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6136
-
6137
- "use strict";
6138
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__material_ui_utils__ = __webpack_require__(7);
6139
-
6140
-
6141
- function merge(acc, item) {
6142
- if (!item) {
6143
- return acc;
6144
- }
6145
-
6146
- return Object(__WEBPACK_IMPORTED_MODULE_0__material_ui_utils__["c" /* deepmerge */])(acc, item, {
6147
- clone: false // No need to clone deep, it's way faster.
6148
-
6149
- });
6150
- }
6151
-
6152
- /* harmony default export */ __webpack_exports__["a"] = (merge);
6153
-
6154
- /***/ }),
6155
- /* 92 */
6156
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6157
-
6158
- "use strict";
6159
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
6160
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NonceProvider", function() { return NonceProvider; });
6161
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_objectWithoutProperties__ = __webpack_require__(502);
6162
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_objectWithoutProperties___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_objectWithoutProperties__);
6163
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_extends__ = __webpack_require__(504);
6164
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_extends__);
6165
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_slicedToArray__ = __webpack_require__(505);
6166
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_slicedToArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_slicedToArray__);
6167
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_toConsumableArray__ = __webpack_require__(509);
6168
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_toConsumableArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_toConsumableArray__);
6169
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_defineProperty__ = __webpack_require__(513);
6170
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_defineProperty__);
6171
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__ = __webpack_require__(50);
6172
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__ = __webpack_require__(45);
6173
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_assertThisInitialized__ = __webpack_require__(514);
6174
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_assertThisInitialized___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_assertThisInitialized__);
6175
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__ = __webpack_require__(73);
6176
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__ = __webpack_require__(74);
6177
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__ = __webpack_require__(75);
6178
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react__ = __webpack_require__(0);
6179
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_react__);
6180
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_memoize_one__ = __webpack_require__(250);
6181
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__emotion_core__ = __webpack_require__(137);
6182
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_dom__ = __webpack_require__(11);
6183
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_react_dom__);
6184
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__babel_runtime_helpers_typeof__ = __webpack_require__(522);
6185
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_15__babel_runtime_helpers_typeof__);
6186
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__index_4b37608a_browser_esm_js__ = __webpack_require__(254);
6187
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return __WEBPACK_IMPORTED_MODULE_16__index_4b37608a_browser_esm_js__["f"]; });
6188
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__Select_5d18b8d9_browser_esm_js__ = __webpack_require__(256);
6189
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "createFilter", function() { return __WEBPACK_IMPORTED_MODULE_17__Select_5d18b8d9_browser_esm_js__["c"]; });
6190
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "defaultTheme", function() { return __WEBPACK_IMPORTED_MODULE_17__Select_5d18b8d9_browser_esm_js__["b"]; });
6191
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "mergeStyles", function() { return __WEBPACK_IMPORTED_MODULE_17__Select_5d18b8d9_browser_esm_js__["d"]; });
6192
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__emotion_css__ = __webpack_require__(76);
6193
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__babel_runtime_helpers_taggedTemplateLiteral__ = __webpack_require__(524);
6194
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__babel_runtime_helpers_taggedTemplateLiteral___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_19__babel_runtime_helpers_taggedTemplateLiteral__);
6195
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_20_react_input_autosize__ = __webpack_require__(255);
6196
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_20_react_input_autosize___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_20_react_input_autosize__);
6197
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__stateManager_2f2b6f5b_browser_esm_js__ = __webpack_require__(525);
6198
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__emotion_cache__ = __webpack_require__(138);
6199
-
6200
-
6201
-
6202
-
6203
-
6204
-
6205
-
6206
-
6207
-
6208
-
6209
-
6210
-
6211
-
6212
-
6213
-
6214
-
6215
-
6216
-
6217
-
6218
-
6219
-
6220
-
6221
-
6222
-
6223
-
6224
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; }
6225
-
6226
- 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; } }
6227
-
6228
- var NonceProvider = /*#__PURE__*/function (_Component) {
6229
- Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(NonceProvider, _Component);
6230
-
6231
- var _super = _createSuper(NonceProvider);
6232
-
6233
- function NonceProvider(props) {
6234
- var _this;
6235
-
6236
- Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, NonceProvider);
6237
-
6238
- _this = _super.call(this, props);
6239
-
6240
- _this.createEmotionCache = function (nonce) {
6241
- return Object(__WEBPACK_IMPORTED_MODULE_22__emotion_cache__["a" /* default */])({
6242
- nonce: nonce
6243
- });
6244
- };
6245
-
6246
- _this.createEmotionCache = Object(__WEBPACK_IMPORTED_MODULE_12_memoize_one__["a" /* default */])(_this.createEmotionCache);
6247
- return _this;
6248
- }
6249
-
6250
- Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(NonceProvider, [{
6251
- key: "render",
6252
- value: function render() {
6253
- var emotionCache = this.createEmotionCache(this.props.nonce);
6254
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["a" /* CacheProvider */], {
6255
- value: emotionCache
6256
- }, this.props.children);
6257
- }
6258
- }]);
6259
-
6260
- return NonceProvider;
6261
- }(__WEBPACK_IMPORTED_MODULE_11_react__["Component"]);
6262
-
6263
- var index = Object(__WEBPACK_IMPORTED_MODULE_21__stateManager_2f2b6f5b_browser_esm_js__["a" /* m */])(__WEBPACK_IMPORTED_MODULE_17__Select_5d18b8d9_browser_esm_js__["a" /* S */]);
6264
-
6265
- /* harmony default export */ __webpack_exports__["default"] = (index);
6266
-
6267
-
6268
-
6269
- /***/ }),
6270
- /* 93 */
6271
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6272
-
6273
- "use strict";
6274
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SvgIcon__ = __webpack_require__(554);
6275
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__SvgIcon__["a"]; });
6276
-
6277
-
6278
- /***/ }),
6279
- /* 94 */
6280
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6281
-
6282
- "use strict";
6283
- /* harmony export (immutable) */ __webpack_exports__["a"] = ownerWindow;
6284
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ownerDocument__ = __webpack_require__(28);
6285
-
6286
- function ownerWindow(node) {
6287
- var doc = Object(__WEBPACK_IMPORTED_MODULE_0__ownerDocument__["a" /* default */])(node);
6288
- return doc.defaultView || window;
6289
- }
6290
-
6291
- /***/ }),
6292
- /* 95 */
6293
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6294
-
6295
- "use strict";
6296
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = unsupportedProp;
6297
- function unsupportedProp(props, propName, componentName, location, propFullName) {
6298
- if (process.env.NODE_ENV === 'production') {
6299
- return null;
6300
- }
6301
-
6302
- var propFullNameSafe = propFullName || propName;
6303
-
6304
- if (typeof props[propName] !== 'undefined') {
6305
- return new Error("The prop `".concat(propFullNameSafe, "` is not supported. Please remove it."));
6306
- }
6307
-
6308
- return null;
6309
- }
6310
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
6311
-
6312
- /***/ }),
6313
- /* 96 */
6314
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6315
-
6316
- "use strict";
6317
- /* harmony export (immutable) */ __webpack_exports__["a"] = useId;
6318
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
6319
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
6320
-
6321
- /**
6322
- * Private module reserved for @material-ui/x packages.
6323
- */
6324
-
6325
- function useId(idOverride) {
6326
- var _React$useState = __WEBPACK_IMPORTED_MODULE_0_react__["useState"](idOverride),
6327
- defaultId = _React$useState[0],
6328
- setDefaultId = _React$useState[1];
6329
-
6330
- var id = idOverride || defaultId;
6331
- __WEBPACK_IMPORTED_MODULE_0_react__["useEffect"](function () {
6332
- if (defaultId == null) {
6333
- // Fallback to this default id when possible.
6334
- // Use the random value for client-side rendering only.
6335
- // We can't use it server-side.
6336
- setDefaultId("mui-".concat(Math.round(Math.random() * 1e5)));
6337
- }
6338
- }, [defaultId]);
6339
- return id;
6340
- }
6341
-
6342
- /***/ }),
6343
- /* 97 */
6344
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6345
-
6346
- "use strict";
6347
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Backdrop__ = __webpack_require__(593);
6348
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Backdrop__["a"]; });
6349
-
6350
-
6351
- /***/ }),
6352
- /* 98 */
6353
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6354
-
6355
- "use strict";
6356
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Fade__ = __webpack_require__(594);
6357
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Fade__["a"]; });
6358
-
6359
-
6360
- /***/ }),
6361
- /* 99 */
6362
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6363
-
6364
- "use strict";
6365
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["b"] = useFormControl;
6366
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
6367
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
6368
-
6369
- /**
6370
- * @ignore - internal component.
6371
- */
6372
-
6373
- var FormControlContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]();
6374
-
6375
- if (process.env.NODE_ENV !== 'production') {
6376
- FormControlContext.displayName = 'FormControlContext';
6377
- }
6378
-
6379
- function useFormControl() {
6380
- return __WEBPACK_IMPORTED_MODULE_0_react__["useContext"](FormControlContext);
6381
- }
6382
- /* harmony default export */ __webpack_exports__["a"] = (FormControlContext);
6383
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
6384
-
6385
- /***/ }),
6386
- /* 100 */
6387
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6388
-
6389
- "use strict";
6390
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Portal__ = __webpack_require__(623);
6391
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Portal__["a"]; });
6392
-
6393
-
6394
- /***/ }),
6395
- /* 101 */
6396
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6397
-
6398
- "use strict";
6399
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Fab__ = __webpack_require__(636);
6400
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Fab__["a"]; });
6401
-
6402
-
6403
- /***/ }),
6404
- /* 102 */
6405
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6406
-
6407
- "use strict";
6408
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FilledInput__ = __webpack_require__(637);
6409
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FilledInput__["a"]; });
6410
-
6411
-
6412
- /***/ }),
6413
- /* 103 */
6414
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6415
-
6416
- "use strict";
6417
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormControl__ = __webpack_require__(640);
6418
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FormControl__["a"]; });
6419
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__useFormControl__ = __webpack_require__(53);
6420
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__useFormControl__["a"]; });
6421
-
6422
-
6423
-
6424
- /***/ }),
6425
- /* 104 */
6426
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6427
-
6428
- "use strict";
6429
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__withWidth__ = __webpack_require__(309);
6430
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__withWidth__["a"]; });
6431
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__withWidth__["b"]; });
6432
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_0__withWidth__["c"]; });
6433
-
6434
-
6435
-
6436
- /***/ }),
6437
- /* 105 */
6438
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6439
-
6440
- "use strict";
6441
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__OutlinedInput__ = __webpack_require__(671);
6442
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__OutlinedInput__["a"]; });
6443
-
6444
-
6445
- /***/ }),
6446
- /* 106 */
6447
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6448
-
6449
- "use strict";
6450
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Popper__ = __webpack_require__(673);
6451
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Popper__["a"]; });
6452
-
6453
-
6454
- /***/ }),
6455
- /* 107 */
6456
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6457
-
6458
- "use strict";
6459
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Select__ = __webpack_require__(681);
6460
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Select__["a"]; });
6461
-
6462
-
6463
- /***/ }),
6464
- /* 108 */
6465
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6466
-
6467
- "use strict";
6468
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
6469
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Tooltip__ = __webpack_require__(719);
6470
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__Tooltip__["a"]; });
6471
-
6472
-
6473
- /***/ }),
6474
- /* 109 */
6475
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6476
-
6477
- "use strict";
6478
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TabContext__ = __webpack_require__(361);
6479
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TabContext__["a"]; });
6480
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__TabContext__["b"]; });
6481
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_0__TabContext__["c"]; });
6482
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_0__TabContext__["d"]; });
6483
-
6484
-
6485
-
6486
- /***/ }),
6487
- /* 110 */
6488
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6489
-
6490
- "use strict";
6491
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
6492
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
6493
-
6494
- /**
6495
- * @ignore - internal component.
6496
- */
6497
-
6498
- var TimelineContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]({});
6499
-
6500
- if (process.env.NODE_ENV !== 'production') {
6501
- TimelineContext.displayName = 'TimelineContext';
6502
- }
6503
-
6504
- /* harmony default export */ __webpack_exports__["a"] = (TimelineContext);
6505
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
6506
-
6507
- /***/ }),
6508
- /* 111 */
6509
- /***/ (function(module, exports, __webpack_require__) {
6510
-
6511
- var isFunction = __webpack_require__(383),
6512
- isLength = __webpack_require__(179);
6513
-
6514
- /**
6515
- * Checks if `value` is array-like. A value is considered array-like if it's
6516
- * not a function and has a `value.length` that's an integer greater than or
6517
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
6518
- *
6519
- * @static
6520
- * @memberOf _
6521
- * @since 4.0.0
6522
- * @category Lang
6523
- * @param {*} value The value to check.
6524
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
6525
- * @example
6526
- *
6527
- * _.isArrayLike([1, 2, 3]);
6528
- * // => true
6529
- *
6530
- * _.isArrayLike(document.body.children);
6531
- * // => true
6532
- *
6533
- * _.isArrayLike('abc');
6534
- * // => true
6535
- *
6536
- * _.isArrayLike(_.noop);
6537
- * // => false
6538
- */
6539
- function isArrayLike(value) {
6540
- return value != null && isLength(value.length) && !isFunction(value);
6541
- }
6542
-
6543
- module.exports = isArrayLike;
6544
-
6545
-
6546
- /***/ }),
6547
- /* 112 */
6548
- /***/ (function(module, exports, __webpack_require__) {
6549
-
6550
- var listCacheClear = __webpack_require__(778),
6551
- listCacheDelete = __webpack_require__(779),
6552
- listCacheGet = __webpack_require__(780),
6553
- listCacheHas = __webpack_require__(781),
6554
- listCacheSet = __webpack_require__(782);
6555
-
6556
- /**
6557
- * Creates an list cache object.
6558
- *
6559
- * @private
6560
- * @constructor
6561
- * @param {Array} [entries] The key-value pairs to cache.
6562
- */
6563
- function ListCache(entries) {
6564
- var index = -1,
6565
- length = entries == null ? 0 : entries.length;
6566
-
6567
- this.clear();
6568
- while (++index < length) {
6569
- var entry = entries[index];
6570
- this.set(entry[0], entry[1]);
6571
- }
6572
- }
6573
-
6574
- // Add methods to `ListCache`.
6575
- ListCache.prototype.clear = listCacheClear;
6576
- ListCache.prototype['delete'] = listCacheDelete;
6577
- ListCache.prototype.get = listCacheGet;
6578
- ListCache.prototype.has = listCacheHas;
6579
- ListCache.prototype.set = listCacheSet;
6580
-
6581
- module.exports = ListCache;
6582
-
6583
-
6584
- /***/ }),
6585
- /* 113 */
6586
- /***/ (function(module, exports, __webpack_require__) {
6587
-
6588
- var eq = __webpack_require__(185);
6589
-
6590
- /**
6591
- * Gets the index at which the `key` is found in `array` of key-value pairs.
6592
- *
6593
- * @private
6594
- * @param {Array} array The array to inspect.
6595
- * @param {*} key The key to search for.
6596
- * @returns {number} Returns the index of the matched value, else `-1`.
6597
- */
6598
- function assocIndexOf(array, key) {
6599
- var length = array.length;
6600
- while (length--) {
6601
- if (eq(array[length][0], key)) {
6602
- return length;
6603
- }
6604
- }
6605
- return -1;
6606
- }
6607
-
6608
- module.exports = assocIndexOf;
6609
-
6610
-
6611
- /***/ }),
6612
- /* 114 */
6613
- /***/ (function(module, exports, __webpack_require__) {
6614
-
6615
- var getNative = __webpack_require__(55);
6616
-
6617
- /* Built-in method references that are verified to be native. */
6618
- var nativeCreate = getNative(Object, 'create');
6619
-
6620
- module.exports = nativeCreate;
6621
-
6622
-
6623
- /***/ }),
6624
- /* 115 */
6625
- /***/ (function(module, exports, __webpack_require__) {
6626
-
6627
- var isKeyable = __webpack_require__(800);
6628
-
6629
- /**
6630
- * Gets the data for `map`.
6631
- *
6632
- * @private
6633
- * @param {Object} map The map to query.
6634
- * @param {string} key The reference key.
6635
- * @returns {*} Returns the map data.
6636
- */
6637
- function getMapData(map, key) {
6638
- var data = map.__data__;
6639
- return isKeyable(key)
6640
- ? data[typeof key == 'string' ? 'string' : 'hash']
6641
- : data.map;
6642
- }
6643
-
6644
- module.exports = getMapData;
6645
-
6646
-
6647
- /***/ }),
6648
- /* 116 */
6649
- /***/ (function(module, exports, __webpack_require__) {
6650
-
6651
- var DataView = __webpack_require__(815),
6652
- Map = __webpack_require__(186),
6653
- Promise = __webpack_require__(816),
6654
- Set = __webpack_require__(817),
6655
- WeakMap = __webpack_require__(818),
6656
- baseGetTag = __webpack_require__(54),
6657
- toSource = __webpack_require__(386);
6658
-
6659
- /** `Object#toString` result references. */
6660
- var mapTag = '[object Map]',
6661
- objectTag = '[object Object]',
6662
- promiseTag = '[object Promise]',
6663
- setTag = '[object Set]',
6664
- weakMapTag = '[object WeakMap]';
6665
-
6666
- var dataViewTag = '[object DataView]';
6667
-
6668
- /** Used to detect maps, sets, and weakmaps. */
6669
- var dataViewCtorString = toSource(DataView),
6670
- mapCtorString = toSource(Map),
6671
- promiseCtorString = toSource(Promise),
6672
- setCtorString = toSource(Set),
6673
- weakMapCtorString = toSource(WeakMap);
6674
-
6675
- /**
6676
- * Gets the `toStringTag` of `value`.
6677
- *
6678
- * @private
6679
- * @param {*} value The value to query.
6680
- * @returns {string} Returns the `toStringTag`.
6681
- */
6682
- var getTag = baseGetTag;
6683
-
6684
- // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
6685
- if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
6686
- (Map && getTag(new Map) != mapTag) ||
6687
- (Promise && getTag(Promise.resolve()) != promiseTag) ||
6688
- (Set && getTag(new Set) != setTag) ||
6689
- (WeakMap && getTag(new WeakMap) != weakMapTag)) {
6690
- getTag = function(value) {
6691
- var result = baseGetTag(value),
6692
- Ctor = result == objectTag ? value.constructor : undefined,
6693
- ctorString = Ctor ? toSource(Ctor) : '';
6694
-
6695
- if (ctorString) {
6696
- switch (ctorString) {
6697
- case dataViewCtorString: return dataViewTag;
6698
- case mapCtorString: return mapTag;
6699
- case promiseCtorString: return promiseTag;
6700
- case setCtorString: return setTag;
6701
- case weakMapCtorString: return weakMapTag;
6702
- }
6703
- }
6704
- return result;
6705
- };
6706
- }
6707
-
6708
- module.exports = getTag;
6709
-
6710
-
6711
- /***/ }),
6712
- /* 117 */
6713
- /***/ (function(module, exports, __webpack_require__) {
6714
-
6715
- var isSymbol = __webpack_require__(190);
6716
-
6717
- /** Used as references for various `Number` constants. */
6718
- var INFINITY = 1 / 0;
6719
-
6720
- /**
6721
- * Converts `value` to a string key if it's not a string or symbol.
6722
- *
6723
- * @private
6724
- * @param {*} value The value to inspect.
6725
- * @returns {string|symbol} Returns the key.
6726
- */
6727
- function toKey(value) {
6728
- if (typeof value == 'string' || isSymbol(value)) {
6729
- return value;
6730
- }
6731
- var result = (value + '');
6732
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
6733
- }
6734
-
6735
- module.exports = toKey;
6736
-
6737
-
6738
- /***/ }),
6739
- /* 118 */
6740
- /***/ (function(module, exports, __webpack_require__) {
6741
-
6742
- var assignValue = __webpack_require__(398),
6743
- baseAssignValue = __webpack_require__(399);
6744
-
6745
- /**
6746
- * Copies properties of `source` to `object`.
6747
- *
6748
- * @private
6749
- * @param {Object} source The object to copy properties from.
6750
- * @param {Array} props The property identifiers to copy.
6751
- * @param {Object} [object={}] The object to copy properties to.
6752
- * @param {Function} [customizer] The function to customize copied values.
6753
- * @returns {Object} Returns `object`.
6754
- */
6755
- function copyObject(source, props, object, customizer) {
6756
- var isNew = !object;
6757
- object || (object = {});
6758
-
6759
- var index = -1,
6760
- length = props.length;
6761
-
6762
- while (++index < length) {
6763
- var key = props[index];
6764
-
6765
- var newValue = customizer
6766
- ? customizer(object[key], source[key], key, object, source)
6767
- : undefined;
6768
-
6769
- if (newValue === undefined) {
6770
- newValue = source[key];
6771
- }
6772
- if (isNew) {
6773
- baseAssignValue(object, key, newValue);
6774
- } else {
6775
- assignValue(object, key, newValue);
6776
- }
6777
- }
6778
- return object;
6779
- }
6780
-
6781
- module.exports = copyObject;
6782
-
6783
-
6784
- /***/ }),
6785
- /* 119 */
6786
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6787
-
6788
- "use strict";
6789
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__listCacheClear_js__ = __webpack_require__(874);
6790
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__listCacheDelete_js__ = __webpack_require__(875);
6791
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__listCacheGet_js__ = __webpack_require__(876);
6792
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__listCacheHas_js__ = __webpack_require__(877);
6793
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__listCacheSet_js__ = __webpack_require__(878);
6794
-
6795
-
6796
-
6797
-
6798
-
6799
-
6800
- /**
6801
- * Creates an list cache object.
6802
- *
6803
- * @private
6804
- * @constructor
6805
- * @param {Array} [entries] The key-value pairs to cache.
6806
- */
6807
- function ListCache(entries) {
6808
- var index = -1,
6809
- length = entries == null ? 0 : entries.length;
6810
-
6811
- this.clear();
6812
- while (++index < length) {
6813
- var entry = entries[index];
6814
- this.set(entry[0], entry[1]);
6815
- }
6816
- }
6817
-
6818
- // Add methods to `ListCache`.
6819
- ListCache.prototype.clear = __WEBPACK_IMPORTED_MODULE_0__listCacheClear_js__["a" /* default */];
6820
- ListCache.prototype['delete'] = __WEBPACK_IMPORTED_MODULE_1__listCacheDelete_js__["a" /* default */];
6821
- ListCache.prototype.get = __WEBPACK_IMPORTED_MODULE_2__listCacheGet_js__["a" /* default */];
6822
- ListCache.prototype.has = __WEBPACK_IMPORTED_MODULE_3__listCacheHas_js__["a" /* default */];
6823
- ListCache.prototype.set = __WEBPACK_IMPORTED_MODULE_4__listCacheSet_js__["a" /* default */];
6824
-
6825
- /* harmony default export */ __webpack_exports__["a"] = (ListCache);
6826
-
6827
-
6828
- /***/ }),
6829
- /* 120 */
6830
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6831
-
6832
- "use strict";
6833
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__eq_js__ = __webpack_require__(86);
6834
-
6835
-
6836
- /**
6837
- * Gets the index at which the `key` is found in `array` of key-value pairs.
6838
- *
6839
- * @private
6840
- * @param {Array} array The array to inspect.
6841
- * @param {*} key The key to search for.
6842
- * @returns {number} Returns the index of the matched value, else `-1`.
6843
- */
6844
- function assocIndexOf(array, key) {
6845
- var length = array.length;
6846
- while (length--) {
6847
- if (Object(__WEBPACK_IMPORTED_MODULE_0__eq_js__["a" /* default */])(array[length][0], key)) {
6848
- return length;
6849
- }
6850
- }
6851
- return -1;
6852
- }
6853
-
6854
- /* harmony default export */ __webpack_exports__["a"] = (assocIndexOf);
6855
-
6856
-
6857
- /***/ }),
6858
- /* 121 */
6859
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6860
-
6861
- "use strict";
6862
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__root_js__ = __webpack_require__(30);
6863
-
6864
-
6865
- /** Built-in value references. */
6866
- var Symbol = __WEBPACK_IMPORTED_MODULE_0__root_js__["a" /* default */].Symbol;
6867
-
6868
- /* harmony default export */ __webpack_exports__["a"] = (Symbol);
6869
-
6870
-
6871
- /***/ }),
6872
- /* 122 */
6873
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6874
-
6875
- "use strict";
6876
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getNative_js__ = __webpack_require__(56);
6877
-
6878
-
6879
- /* Built-in method references that are verified to be native. */
6880
- var nativeCreate = Object(__WEBPACK_IMPORTED_MODULE_0__getNative_js__["a" /* default */])(Object, 'create');
6881
-
6882
- /* harmony default export */ __webpack_exports__["a"] = (nativeCreate);
6883
-
6884
-
6885
- /***/ }),
6886
- /* 123 */
6887
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6888
-
6889
- "use strict";
6890
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isKeyable_js__ = __webpack_require__(898);
6891
-
6892
-
6893
- /**
6894
- * Gets the data for `map`.
6895
- *
6896
- * @private
6897
- * @param {Object} map The map to query.
6898
- * @param {string} key The reference key.
6899
- * @returns {*} Returns the map data.
6900
- */
6901
- function getMapData(map, key) {
6902
- var data = map.__data__;
6903
- return Object(__WEBPACK_IMPORTED_MODULE_0__isKeyable_js__["a" /* default */])(key)
6904
- ? data[typeof key == 'string' ? 'string' : 'hash']
6905
- : data.map;
6906
- }
6907
-
6908
- /* harmony default export */ __webpack_exports__["a"] = (getMapData);
6909
-
6910
-
6911
- /***/ }),
6912
- /* 124 */
6913
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6914
-
6915
- "use strict";
6916
- /**
6917
- * This method returns the first argument it receives.
6918
- *
6919
- * @static
6920
- * @since 0.1.0
6921
- * @memberOf _
6922
- * @category Util
6923
- * @param {*} value Any value.
6924
- * @returns {*} Returns `value`.
6925
- * @example
6926
- *
6927
- * var object = { 'a': 1 };
6928
- *
6929
- * console.log(_.identity(object) === object);
6930
- * // => true
6931
- */
6932
- function identity(value) {
6933
- return value;
6934
- }
6935
-
6936
- /* harmony default export */ __webpack_exports__["a"] = (identity);
6937
-
6938
-
6939
- /***/ }),
6940
- /* 125 */
6941
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6942
-
6943
- "use strict";
6944
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__ = __webpack_require__(69);
6945
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__ = __webpack_require__(57);
6946
-
6947
-
6948
-
6949
- /** `Object#toString` result references. */
6950
- var symbolTag = '[object Symbol]';
6951
-
6952
- /**
6953
- * Checks if `value` is classified as a `Symbol` primitive or object.
6954
- *
6955
- * @static
6956
- * @memberOf _
6957
- * @since 4.0.0
6958
- * @category Lang
6959
- * @param {*} value The value to check.
6960
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
6961
- * @example
6962
- *
6963
- * _.isSymbol(Symbol.iterator);
6964
- * // => true
6965
- *
6966
- * _.isSymbol('abc');
6967
- * // => false
6968
- */
6969
- function isSymbol(value) {
6970
- return typeof value == 'symbol' ||
6971
- (Object(__WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__["a" /* default */])(value) && Object(__WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__["a" /* default */])(value) == symbolTag);
6972
- }
6973
-
6974
- /* harmony default export */ __webpack_exports__["a"] = (isSymbol);
6975
-
6976
-
6977
- /***/ }),
6978
- /* 126 */
6979
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
6980
-
6981
- "use strict";
6982
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isSymbol_js__ = __webpack_require__(125);
6983
-
6984
-
6985
- /** Used as references for various `Number` constants. */
6986
- var INFINITY = 1 / 0;
6987
-
6988
- /**
6989
- * Converts `value` to a string key if it's not a string or symbol.
6990
- *
6991
- * @private
6992
- * @param {*} value The value to inspect.
6993
- * @returns {string|symbol} Returns the key.
6994
- */
6995
- function toKey(value) {
6996
- if (typeof value == 'string' || Object(__WEBPACK_IMPORTED_MODULE_0__isSymbol_js__["a" /* default */])(value)) {
6997
- return value;
6998
- }
6999
- var result = (value + '');
7000
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
7001
- }
7002
-
7003
- /* harmony default export */ __webpack_exports__["a"] = (toKey);
7004
-
7005
-
7006
- /***/ }),
7007
- /* 127 */
7008
- /***/ (function(module, exports, __webpack_require__) {
7009
-
7010
- "use strict";
7011
- /* WEBPACK VAR INJECTION */(function(process) {/**
7012
- * Copyright (c) 2013-present, Facebook, Inc.
7013
- *
7014
- * This source code is licensed under the MIT license found in the
7015
- * LICENSE file in the root directory of this source tree.
7016
- */
7017
-
7018
-
7019
-
7020
- var printWarning = function() {};
7021
-
7022
- if (process.env.NODE_ENV !== 'production') {
7023
- var ReactPropTypesSecret = __webpack_require__(128);
7024
- var loggedTypeFailures = {};
7025
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
7026
-
7027
- printWarning = function(text) {
7028
- var message = 'Warning: ' + text;
7029
- if (typeof console !== 'undefined') {
7030
- console.error(message);
7031
- }
7032
- try {
7033
- // --- Welcome to debugging React ---
7034
- // This error was thrown as a convenience so that you can use this stack
7035
- // to find the callsite that caused this warning to fire.
7036
- throw new Error(message);
7037
- } catch (x) {}
7038
- };
7039
- }
7040
-
7041
- /**
7042
- * Assert that the values match with the type specs.
7043
- * Error messages are memorized and will only be shown once.
7044
- *
7045
- * @param {object} typeSpecs Map of name to a ReactPropType
7046
- * @param {object} values Runtime values that need to be type-checked
7047
- * @param {string} location e.g. "prop", "context", "child context"
7048
- * @param {string} componentName Name of the component for error messages.
7049
- * @param {?Function} getStack Returns the component stack.
7050
- * @private
7051
- */
7052
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
7053
- if (process.env.NODE_ENV !== 'production') {
7054
- for (var typeSpecName in typeSpecs) {
7055
- if (has(typeSpecs, typeSpecName)) {
7056
- var error;
7057
- // Prop type validation may throw. In case they do, we don't want to
7058
- // fail the render phase where it didn't fail before. So we log it.
7059
- // After these have been cleaned up, we'll let them throw.
7060
- try {
7061
- // This is intentionally an invariant that gets caught. It's the same
7062
- // behavior as without this statement except with a better message.
7063
- if (typeof typeSpecs[typeSpecName] !== 'function') {
7064
- var err = Error(
7065
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
7066
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
7067
- );
7068
- err.name = 'Invariant Violation';
7069
- throw err;
7070
- }
7071
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
7072
- } catch (ex) {
7073
- error = ex;
7074
- }
7075
- if (error && !(error instanceof Error)) {
7076
- printWarning(
7077
- (componentName || 'React class') + ': type specification of ' +
7078
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
7079
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
7080
- 'You may have forgotten to pass an argument to the type checker ' +
7081
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
7082
- 'shape all require an argument).'
7083
- );
7084
- }
7085
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
7086
- // Only monitor this failure once because there tends to be a lot of the
7087
- // same error.
7088
- loggedTypeFailures[error.message] = true;
7089
-
7090
- var stack = getStack ? getStack() : '';
7091
-
7092
- printWarning(
7093
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
7094
- );
7095
- }
7096
- }
7097
- }
7098
- }
7099
- }
7100
-
7101
- /**
7102
- * Resets warning cache when testing.
7103
- *
7104
- * @private
7105
- */
7106
- checkPropTypes.resetWarningCache = function() {
7107
- if (process.env.NODE_ENV !== 'production') {
7108
- loggedTypeFailures = {};
7109
- }
7110
- }
7111
-
7112
- module.exports = checkPropTypes;
7113
-
7114
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
7115
-
7116
- /***/ }),
7117
- /* 128 */
7118
- /***/ (function(module, exports, __webpack_require__) {
7119
-
7120
- "use strict";
7121
- /**
7122
- * Copyright (c) 2013-present, Facebook, Inc.
7123
- *
7124
- * This source code is licensed under the MIT license found in the
7125
- * LICENSE file in the root directory of this source tree.
7126
- */
7127
-
7128
-
7129
-
7130
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
7131
-
7132
- module.exports = ReactPropTypesSecret;
7133
-
7134
-
7135
- /***/ }),
7136
- /* 129 */
7137
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7138
-
7139
- "use strict";
7140
- /* WEBPACK VAR INJECTION */(function(process) {var isProduction = process.env.NODE_ENV === 'production';
7141
- var prefix = 'Invariant failed';
7142
- function invariant(condition, message) {
7143
- if (condition) {
7144
- return;
7145
- }
7146
- if (isProduction) {
7147
- throw new Error(prefix);
7148
- }
7149
- throw new Error(prefix + ": " + (message || ''));
7150
- }
7151
-
7152
- /* harmony default export */ __webpack_exports__["a"] = (invariant);
7153
-
7154
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
7155
-
7156
- /***/ }),
7157
- /* 130 */
7158
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7159
-
7160
- "use strict";
7161
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = chainPropTypes;
7162
- function chainPropTypes(propType1, propType2) {
7163
- if (process.env.NODE_ENV === 'production') {
7164
- return function () {
7165
- return null;
7166
- };
7167
- }
7168
-
7169
- return function validate() {
7170
- return propType1.apply(void 0, arguments) || propType2.apply(void 0, arguments);
7171
- };
7172
- }
7173
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
7174
-
7175
- /***/ }),
7176
- /* 131 */
7177
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7178
-
7179
- "use strict";
7180
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getThemeProps__ = __webpack_require__(467);
7181
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__getThemeProps__["a"]; });
7182
-
7183
-
7184
- /***/ }),
7185
- /* 132 */
7186
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7187
-
7188
- "use strict";
7189
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__jssPreset__ = __webpack_require__(468);
7190
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__jssPreset__["a"]; });
7191
-
7192
-
7193
- /***/ }),
7194
- /* 133 */
7195
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7196
-
7197
- "use strict";
7198
- /* harmony export (immutable) */ __webpack_exports__["a"] = _unsupportedIterableToArray;
7199
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayLikeToArray__ = __webpack_require__(215);
7200
-
7201
- function _unsupportedIterableToArray(o, minLen) {
7202
- if (!o) return;
7203
- if (typeof o === "string") return Object(__WEBPACK_IMPORTED_MODULE_0__arrayLikeToArray__["a" /* default */])(o, minLen);
7204
- var n = Object.prototype.toString.call(o).slice(8, -1);
7205
- if (n === "Object" && o.constructor) n = o.constructor.name;
7206
- if (n === "Map" || n === "Set") return Array.from(o);
7207
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(__WEBPACK_IMPORTED_MODULE_0__arrayLikeToArray__["a" /* default */])(o, minLen);
7208
- }
7209
-
7210
- /***/ }),
7211
- /* 134 */
7212
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7213
-
7214
- "use strict";
7215
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mergeClasses__ = __webpack_require__(481);
7216
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__mergeClasses__["a"]; });
7217
-
7218
-
7219
- /***/ }),
7220
- /* 135 */
7221
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7222
-
7223
- "use strict";
7224
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__ = __webpack_require__(15);
7225
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
7226
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__material_ui_utils__ = __webpack_require__(7);
7227
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__createBreakpoints__ = __webpack_require__(226);
7228
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__createMixins__ = __webpack_require__(491);
7229
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__createPalette__ = __webpack_require__(492);
7230
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__createTypography__ = __webpack_require__(493);
7231
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__shadows__ = __webpack_require__(494);
7232
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__shape__ = __webpack_require__(495);
7233
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__createSpacing__ = __webpack_require__(496);
7234
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__transitions__ = __webpack_require__(37);
7235
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__zIndex__ = __webpack_require__(247);
7236
-
7237
-
7238
-
7239
-
7240
-
7241
-
7242
-
7243
-
7244
-
7245
-
7246
-
7247
-
7248
-
7249
- function createMuiTheme() {
7250
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
7251
-
7252
- var _options$breakpoints = options.breakpoints,
7253
- breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints,
7254
- _options$mixins = options.mixins,
7255
- mixinsInput = _options$mixins === void 0 ? {} : _options$mixins,
7256
- _options$palette = options.palette,
7257
- paletteInput = _options$palette === void 0 ? {} : _options$palette,
7258
- spacingInput = options.spacing,
7259
- _options$typography = options.typography,
7260
- typographyInput = _options$typography === void 0 ? {} : _options$typography,
7261
- other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(options, ["breakpoints", "mixins", "palette", "spacing", "typography"]);
7262
-
7263
- var palette = Object(__WEBPACK_IMPORTED_MODULE_5__createPalette__["a" /* default */])(paletteInput);
7264
- var breakpoints = Object(__WEBPACK_IMPORTED_MODULE_3__createBreakpoints__["a" /* default */])(breakpointsInput);
7265
- var spacing = Object(__WEBPACK_IMPORTED_MODULE_9__createSpacing__["a" /* default */])(spacingInput);
7266
- var muiTheme = Object(__WEBPACK_IMPORTED_MODULE_2__material_ui_utils__["c" /* deepmerge */])({
7267
- breakpoints: breakpoints,
7268
- direction: 'ltr',
7269
- mixins: Object(__WEBPACK_IMPORTED_MODULE_4__createMixins__["a" /* default */])(breakpoints, spacing, mixinsInput),
7270
- overrides: {},
7271
- // Inject custom styles
7272
- palette: palette,
7273
- props: {},
7274
- // Provide default props
7275
- shadows: __WEBPACK_IMPORTED_MODULE_7__shadows__["a" /* default */],
7276
- typography: Object(__WEBPACK_IMPORTED_MODULE_6__createTypography__["a" /* default */])(palette, typographyInput),
7277
- spacing: spacing,
7278
- shape: __WEBPACK_IMPORTED_MODULE_8__shape__["a" /* default */],
7279
- transitions: __WEBPACK_IMPORTED_MODULE_10__transitions__["a" /* default */],
7280
- zIndex: __WEBPACK_IMPORTED_MODULE_11__zIndex__["a" /* default */]
7281
- }, other);
7282
-
7283
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
7284
- args[_key - 1] = arguments[_key];
7285
- }
7286
-
7287
- muiTheme = args.reduce(function (acc, argument) {
7288
- return Object(__WEBPACK_IMPORTED_MODULE_2__material_ui_utils__["c" /* deepmerge */])(acc, argument);
7289
- }, muiTheme);
7290
-
7291
- if (process.env.NODE_ENV !== 'production') {
7292
- var pseudoClasses = ['checked', 'disabled', 'error', 'focused', 'focusVisible', 'required', 'expanded', 'selected'];
7293
-
7294
- var traverse = function traverse(node, parentKey) {
7295
- var depth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
7296
- var key; // eslint-disable-next-line guard-for-in, no-restricted-syntax
7297
-
7298
- for (key in node) {
7299
- var child = node[key];
7300
-
7301
- if (depth === 1) {
7302
- if (key.indexOf('Mui') === 0 && child) {
7303
- traverse(child, key, depth + 1);
7304
- }
7305
- } else if (pseudoClasses.indexOf(key) !== -1 && Object.keys(child).length > 0) {
7306
- if (process.env.NODE_ENV !== 'production') {
7307
- 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({
7308
- root: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_defineProperty__["a" /* default */])({}, "&$".concat(key), child)
7309
- }, null, 2), '', 'https://material-ui.com/r/pseudo-classes-guide'].join('\n'));
7310
- } // Remove the style to prevent global conflicts.
7311
-
7312
-
7313
- node[key] = {};
7314
- }
7315
- }
7316
- };
7317
-
7318
- traverse(muiTheme.overrides);
7319
- }
7320
-
7321
- return muiTheme;
7322
- }
7323
-
7324
- /* harmony default export */ __webpack_exports__["a"] = (createMuiTheme);
7325
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
7326
-
7327
- /***/ }),
7328
- /* 136 */
7329
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7330
-
7331
- "use strict";
7332
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = handleBreakpoints;
7333
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_toConsumableArray__ = __webpack_require__(27);
7334
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
7335
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_typeof__ = __webpack_require__(44);
7336
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
7337
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
7338
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__merge__ = __webpack_require__(91);
7339
-
7340
-
7341
-
7342
-
7343
- // The breakpoint **start** at this value.
7344
- // For instance with the first breakpoint xs: [xs, sm[.
7345
-
7346
- var values = {
7347
- xs: 0,
7348
- sm: 600,
7349
- md: 960,
7350
- lg: 1280,
7351
- xl: 1920
7352
- };
7353
- var defaultBreakpoints = {
7354
- // Sorted ASC by size. That's important.
7355
- // It can't be configured as it's used statically for propTypes.
7356
- keys: ['xs', 'sm', 'md', 'lg', 'xl'],
7357
- up: function up(key) {
7358
- return "@media (min-width:".concat(values[key], "px)");
7359
- }
7360
- };
7361
- function handleBreakpoints(props, propValue, styleFromPropValue) {
7362
- if (process.env.NODE_ENV !== 'production') {
7363
- if (!props.theme) {
7364
- console.error('Material-UI: You are calling a style function without a theme value.');
7365
- }
7366
- }
7367
-
7368
- if (Array.isArray(propValue)) {
7369
- var themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;
7370
- return propValue.reduce(function (acc, item, index) {
7371
- acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);
7372
- return acc;
7373
- }, {});
7374
- }
7375
-
7376
- if (Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_typeof__["a" /* default */])(propValue) === 'object') {
7377
- var _themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;
7378
-
7379
- return Object.keys(propValue).reduce(function (acc, breakpoint) {
7380
- acc[_themeBreakpoints.up(breakpoint)] = styleFromPropValue(propValue[breakpoint]);
7381
- return acc;
7382
- }, {});
7383
- }
7384
-
7385
- var output = styleFromPropValue(propValue);
7386
- return output;
7387
- }
7388
-
7389
- function breakpoints(styleFunction) {
7390
- var newStyleFunction = function newStyleFunction(props) {
7391
- var base = styleFunction(props);
7392
- var themeBreakpoints = props.theme.breakpoints || defaultBreakpoints;
7393
- var extended = themeBreakpoints.keys.reduce(function (acc, key) {
7394
- if (props[key]) {
7395
- acc = acc || {};
7396
- acc[themeBreakpoints.up(key)] = styleFunction(Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
7397
- theme: props.theme
7398
- }, props[key]));
7399
- }
7400
-
7401
- return acc;
7402
- }, null);
7403
- return Object(__WEBPACK_IMPORTED_MODULE_4__merge__["a" /* default */])(base, extended);
7404
- };
7405
-
7406
- newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, styleFunction.propTypes, {
7407
- xs: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
7408
- sm: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
7409
- md: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
7410
- lg: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
7411
- xl: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object
7412
- }) : {};
7413
- newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl'].concat(Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(styleFunction.filterProps));
7414
- return newStyleFunction;
7415
- }
7416
-
7417
- /* unused harmony default export */ var _unused_webpack_default_export = (breakpoints);
7418
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
7419
-
7420
- /***/ }),
7421
- /* 137 */
7422
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7423
-
7424
- "use strict";
7425
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ClassNames; });
7426
- /* unused harmony export Global */
7427
- /* unused harmony export createElement */
7428
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return jsx; });
7429
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return keyframes; });
7430
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(34);
7431
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
7432
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
7433
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_cache__ = __webpack_require__(138);
7434
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__ = __webpack_require__(252);
7435
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["a"]; });
7436
- /* unused harmony reexport ThemeContext */
7437
- /* unused harmony reexport withEmotionCache */
7438
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__emotion_utils__ = __webpack_require__(253);
7439
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__emotion_serialize__ = __webpack_require__(139);
7440
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__emotion_sheet__ = __webpack_require__(251);
7441
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__emotion_css__ = __webpack_require__(76);
7442
- /* unused harmony reexport css */
7443
-
7444
-
7445
-
7446
-
7447
-
7448
-
7449
-
7450
-
7451
-
7452
-
7453
-
7454
- var jsx = function jsx(type, props) {
7455
- var args = arguments;
7456
-
7457
- if (props == null || !__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["e" /* h */].call(props, 'css')) {
7458
- // $FlowFixMe
7459
- return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"].apply(undefined, args);
7460
- }
7461
-
7462
- var argsLength = args.length;
7463
- var createElementArgArray = new Array(argsLength);
7464
- createElementArgArray[0] = __WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["b" /* E */];
7465
- createElementArgArray[1] = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["d" /* c */])(type, props);
7466
-
7467
- for (var i = 2; i < argsLength; i++) {
7468
- createElementArgArray[i] = args[i];
7469
- } // $FlowFixMe
7470
-
7471
-
7472
- return __WEBPACK_IMPORTED_MODULE_1_react__["createElement"].apply(null, createElementArgArray);
7473
- };
7474
-
7475
- var warnedAboutCssPropForGlobal = false;
7476
- var Global = /* #__PURE__ */Object(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["f" /* w */])(function (props, cache) {
7477
- if (process.env.NODE_ENV !== 'production' && !warnedAboutCssPropForGlobal && ( // check for className as well since the user is
7478
- // probably using the custom createElement which
7479
- // means it will be turned into a className prop
7480
- // $FlowFixMe I don't really want to add it to the type since it shouldn't be used
7481
- props.className || props.css)) {
7482
- console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?");
7483
- warnedAboutCssPropForGlobal = true;
7484
- }
7485
-
7486
- var styles = props.styles;
7487
-
7488
- if (typeof styles === 'function') {
7489
- return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["c" /* T */].Consumer, null, function (theme) {
7490
- var serialized = Object(__WEBPACK_IMPORTED_MODULE_5__emotion_serialize__["a" /* serializeStyles */])([styles(theme)]);
7491
- return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(InnerGlobal, {
7492
- serialized: serialized,
7493
- cache: cache
7494
- });
7495
- });
7496
- }
7497
-
7498
- var serialized = Object(__WEBPACK_IMPORTED_MODULE_5__emotion_serialize__["a" /* serializeStyles */])([styles]);
7499
- return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(InnerGlobal, {
7500
- serialized: serialized,
7501
- cache: cache
7502
- });
7503
- });
7504
-
7505
- // maintain place over rerenders.
7506
- // initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild
7507
- // initial client-side render from SSR, use place of hydrating tag
7508
- var InnerGlobal = /*#__PURE__*/function (_React$Component) {
7509
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(InnerGlobal, _React$Component);
7510
-
7511
- function InnerGlobal(props, context, updater) {
7512
- return _React$Component.call(this, props, context, updater) || this;
7513
- }
7514
-
7515
- var _proto = InnerGlobal.prototype;
7516
-
7517
- _proto.componentDidMount = function componentDidMount() {
7518
- this.sheet = new __WEBPACK_IMPORTED_MODULE_6__emotion_sheet__["a" /* StyleSheet */]({
7519
- key: this.props.cache.key + "-global",
7520
- nonce: this.props.cache.sheet.nonce,
7521
- container: this.props.cache.sheet.container
7522
- }); // $FlowFixMe
7523
-
7524
- var node = document.querySelector("style[data-emotion-" + this.props.cache.key + "=\"" + this.props.serialized.name + "\"]");
7525
-
7526
- if (node !== null) {
7527
- this.sheet.tags.push(node);
7528
- }
7529
-
7530
- if (this.props.cache.sheet.tags.length) {
7531
- this.sheet.before = this.props.cache.sheet.tags[0];
7532
- }
7533
-
7534
- this.insertStyles();
7535
- };
7536
-
7537
- _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
7538
- if (prevProps.serialized.name !== this.props.serialized.name) {
7539
- this.insertStyles();
7540
- }
7541
- };
7542
-
7543
- _proto.insertStyles = function insertStyles$1() {
7544
- if (this.props.serialized.next !== undefined) {
7545
- // insert keyframes
7546
- Object(__WEBPACK_IMPORTED_MODULE_4__emotion_utils__["b" /* insertStyles */])(this.props.cache, this.props.serialized.next, true);
7547
- }
7548
-
7549
- if (this.sheet.tags.length) {
7550
- // if this doesn't exist then it will be null so the style element will be appended
7551
- var element = this.sheet.tags[this.sheet.tags.length - 1].nextElementSibling;
7552
- this.sheet.before = element;
7553
- this.sheet.flush();
7554
- }
7555
-
7556
- this.props.cache.insert("", this.props.serialized, this.sheet, false);
7557
- };
7558
-
7559
- _proto.componentWillUnmount = function componentWillUnmount() {
7560
- this.sheet.flush();
7561
- };
7562
-
7563
- _proto.render = function render() {
7564
-
7565
- return null;
7566
- };
7567
-
7568
- return InnerGlobal;
7569
- }(__WEBPACK_IMPORTED_MODULE_1_react__["Component"]);
7570
-
7571
- var keyframes = function keyframes() {
7572
- var insertable = __WEBPACK_IMPORTED_MODULE_7__emotion_css__["a" /* default */].apply(void 0, arguments);
7573
- var name = "animation-" + insertable.name; // $FlowFixMe
7574
-
7575
- return {
7576
- name: name,
7577
- styles: "@keyframes " + name + "{" + insertable.styles + "}",
7578
- anim: 1,
7579
- toString: function toString() {
7580
- return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
7581
- }
7582
- };
7583
- };
7584
-
7585
- var classnames = function classnames(args) {
7586
- var len = args.length;
7587
- var i = 0;
7588
- var cls = '';
7589
-
7590
- for (; i < len; i++) {
7591
- var arg = args[i];
7592
- if (arg == null) continue;
7593
- var toAdd = void 0;
7594
-
7595
- switch (typeof arg) {
7596
- case 'boolean':
7597
- break;
7598
-
7599
- case 'object':
7600
- {
7601
- if (Array.isArray(arg)) {
7602
- toAdd = classnames(arg);
7603
- } else {
7604
- toAdd = '';
7605
-
7606
- for (var k in arg) {
7607
- if (arg[k] && k) {
7608
- toAdd && (toAdd += ' ');
7609
- toAdd += k;
7610
- }
7611
- }
7612
- }
7613
-
7614
- break;
7615
- }
7616
-
7617
- default:
7618
- {
7619
- toAdd = arg;
7620
- }
7621
- }
7622
-
7623
- if (toAdd) {
7624
- cls && (cls += ' ');
7625
- cls += toAdd;
7626
- }
7627
- }
7628
-
7629
- return cls;
7630
- };
7631
-
7632
- function merge(registered, css, className) {
7633
- var registeredStyles = [];
7634
- var rawClassName = Object(__WEBPACK_IMPORTED_MODULE_4__emotion_utils__["a" /* getRegisteredStyles */])(registered, registeredStyles, className);
7635
-
7636
- if (registeredStyles.length < 2) {
7637
- return className;
7638
- }
7639
-
7640
- return rawClassName + css(registeredStyles);
7641
- }
7642
-
7643
- var ClassNames = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["f" /* w */])(function (props, context) {
7644
- return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(__WEBPACK_IMPORTED_MODULE_3__emotion_element_57a3a7a3_browser_esm_js__["c" /* T */].Consumer, null, function (theme) {
7645
- var hasRendered = false;
7646
-
7647
- var css = function css() {
7648
- if (hasRendered && process.env.NODE_ENV !== 'production') {
7649
- throw new Error('css can only be used during render');
7650
- }
7651
-
7652
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
7653
- args[_key] = arguments[_key];
7654
- }
7655
-
7656
- var serialized = Object(__WEBPACK_IMPORTED_MODULE_5__emotion_serialize__["a" /* serializeStyles */])(args, context.registered);
7657
-
7658
- {
7659
- Object(__WEBPACK_IMPORTED_MODULE_4__emotion_utils__["b" /* insertStyles */])(context, serialized, false);
7660
- }
7661
-
7662
- return context.key + "-" + serialized.name;
7663
- };
7664
-
7665
- var cx = function cx() {
7666
- if (hasRendered && process.env.NODE_ENV !== 'production') {
7667
- throw new Error('cx can only be used during render');
7668
- }
7669
-
7670
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
7671
- args[_key2] = arguments[_key2];
7672
- }
7673
-
7674
- return merge(context.registered, css, classnames(args));
7675
- };
7676
-
7677
- var content = {
7678
- css: css,
7679
- cx: cx,
7680
- theme: theme
7681
- };
7682
- var ele = props.children(content);
7683
- hasRendered = true;
7684
-
7685
- return ele;
7686
- });
7687
- });
7688
-
7689
-
7690
-
7691
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
7692
-
7693
- /***/ }),
7694
- /* 138 */
7695
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7696
-
7697
- "use strict";
7698
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__ = __webpack_require__(251);
7699
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__emotion_stylis__ = __webpack_require__(516);
7700
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_weak_memoize__ = __webpack_require__(517);
7701
-
7702
-
7703
-
7704
-
7705
- // https://github.com/thysultan/stylis.js/tree/master/plugins/rule-sheet
7706
- // inlined to avoid umd wrapper and peerDep warnings/installing stylis
7707
- // since we use stylis after closure compiler
7708
- var delimiter = '/*|*/';
7709
- var needle = delimiter + '}';
7710
-
7711
- function toSheet(block) {
7712
- if (block) {
7713
- Sheet.current.insert(block + '}');
7714
- }
7715
- }
7716
-
7717
- var Sheet = {
7718
- current: null
7719
- };
7720
- var ruleSheet = function ruleSheet(context, content, selectors, parents, line, column, length, ns, depth, at) {
7721
- switch (context) {
7722
- // property
7723
- case 1:
7724
- {
7725
- switch (content.charCodeAt(0)) {
7726
- case 64:
7727
- {
7728
- // @import
7729
- Sheet.current.insert(content + ';');
7730
- return '';
7731
- }
7732
- // charcode for l
7733
-
7734
- case 108:
7735
- {
7736
- // charcode for b
7737
- // this ignores label
7738
- if (content.charCodeAt(2) === 98) {
7739
- return '';
7740
- }
7741
- }
7742
- }
7743
-
7744
- break;
7745
- }
7746
- // selector
7747
-
7748
- case 2:
7749
- {
7750
- if (ns === 0) return content + delimiter;
7751
- break;
7752
- }
7753
- // at-rule
7754
-
7755
- case 3:
7756
- {
7757
- switch (ns) {
7758
- // @font-face, @page
7759
- case 102:
7760
- case 112:
7761
- {
7762
- Sheet.current.insert(selectors[0] + content);
7763
- return '';
7764
- }
7765
-
7766
- default:
7767
- {
7768
- return content + (at === 0 ? delimiter : '');
7769
- }
7770
- }
7771
- }
7772
-
7773
- case -2:
7774
- {
7775
- content.split(needle).forEach(toSheet);
7776
- }
7777
- }
7778
- };
7779
-
7780
- var createCache = function createCache(options) {
7781
- if (options === undefined) options = {};
7782
- var key = options.key || 'css';
7783
- var stylisOptions;
7784
-
7785
- if (options.prefix !== undefined) {
7786
- stylisOptions = {
7787
- prefix: options.prefix
7788
- };
7789
- }
7790
-
7791
- var stylis = new __WEBPACK_IMPORTED_MODULE_1__emotion_stylis__["a" /* default */](stylisOptions);
7792
-
7793
- if (process.env.NODE_ENV !== 'production') {
7794
- // $FlowFixMe
7795
- if (/[^a-z-]/.test(key)) {
7796
- throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed");
7797
- }
7798
- }
7799
-
7800
- var inserted = {}; // $FlowFixMe
7801
-
7802
- var container;
7803
-
7804
- {
7805
- container = options.container || document.head;
7806
- var nodes = document.querySelectorAll("style[data-emotion-" + key + "]");
7807
- Array.prototype.forEach.call(nodes, function (node) {
7808
- var attrib = node.getAttribute("data-emotion-" + key); // $FlowFixMe
7809
-
7810
- attrib.split(' ').forEach(function (id) {
7811
- inserted[id] = true;
7812
- });
7813
-
7814
- if (node.parentNode !== container) {
7815
- container.appendChild(node);
7816
- }
7817
- });
7818
- }
7819
-
7820
- var _insert;
7821
-
7822
- {
7823
- stylis.use(options.stylisPlugins)(ruleSheet);
7824
-
7825
- _insert = function insert(selector, serialized, sheet, shouldCache) {
7826
- var name = serialized.name;
7827
- Sheet.current = sheet;
7828
-
7829
- if (process.env.NODE_ENV !== 'production' && serialized.map !== undefined) {
7830
- var map = serialized.map;
7831
- Sheet.current = {
7832
- insert: function insert(rule) {
7833
- sheet.insert(rule + map);
7834
- }
7835
- };
7836
- }
7837
-
7838
- stylis(selector, serialized.styles);
7839
-
7840
- if (shouldCache) {
7841
- cache.inserted[name] = true;
7842
- }
7843
- };
7844
- }
7845
-
7846
- if (process.env.NODE_ENV !== 'production') {
7847
- // https://esbench.com/bench/5bf7371a4cd7e6009ef61d0a
7848
- var commentStart = /\/\*/g;
7849
- var commentEnd = /\*\//g;
7850
- stylis.use(function (context, content) {
7851
- switch (context) {
7852
- case -1:
7853
- {
7854
- while (commentStart.test(content)) {
7855
- commentEnd.lastIndex = commentStart.lastIndex;
7856
-
7857
- if (commentEnd.test(content)) {
7858
- commentStart.lastIndex = commentEnd.lastIndex;
7859
- continue;
7860
- }
7861
-
7862
- throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").');
7863
- }
7864
-
7865
- commentStart.lastIndex = 0;
7866
- break;
7867
- }
7868
- }
7869
- });
7870
- stylis.use(function (context, content, selectors) {
7871
- switch (context) {
7872
- case -1:
7873
- {
7874
- var flag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason';
7875
- var unsafePseudoClasses = content.match(/(:first|:nth|:nth-last)-child/g);
7876
-
7877
- if (unsafePseudoClasses && cache.compat !== true) {
7878
- unsafePseudoClasses.forEach(function (unsafePseudoClass) {
7879
- var ignoreRegExp = new RegExp(unsafePseudoClass + ".*\\/\\* " + flag + " \\*\\/");
7880
- var ignore = ignoreRegExp.test(content);
7881
-
7882
- if (unsafePseudoClass && !ignore) {
7883
- console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\".");
7884
- }
7885
- });
7886
- }
7887
-
7888
- break;
7889
- }
7890
- }
7891
- });
7892
- }
7893
-
7894
- var cache = {
7895
- key: key,
7896
- sheet: new __WEBPACK_IMPORTED_MODULE_0__emotion_sheet__["a" /* StyleSheet */]({
7897
- key: key,
7898
- container: container,
7899
- nonce: options.nonce,
7900
- speedy: options.speedy
7901
- }),
7902
- nonce: options.nonce,
7903
- inserted: inserted,
7904
- registered: {},
7905
- insert: _insert
7906
- };
7907
- return cache;
7908
- };
7909
-
7910
- /* harmony default export */ __webpack_exports__["a"] = (createCache);
7911
-
7912
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
7913
-
7914
- /***/ }),
7915
- /* 139 */
7916
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
7917
-
7918
- "use strict";
7919
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return serializeStyles; });
7920
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_hash__ = __webpack_require__(519);
7921
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__emotion_unitless__ = __webpack_require__(520);
7922
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_memoize__ = __webpack_require__(521);
7923
-
7924
-
7925
-
7926
-
7927
- 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";
7928
- 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).";
7929
- var hyphenateRegex = /[A-Z]|^ms/g;
7930
- var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
7931
-
7932
- var isCustomProperty = function isCustomProperty(property) {
7933
- return property.charCodeAt(1) === 45;
7934
- };
7935
-
7936
- var isProcessableValue = function isProcessableValue(value) {
7937
- return value != null && typeof value !== 'boolean';
7938
- };
7939
-
7940
- var processStyleName = Object(__WEBPACK_IMPORTED_MODULE_2__emotion_memoize__["a" /* default */])(function (styleName) {
7941
- return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();
7942
- });
7943
-
7944
- var processStyleValue = function processStyleValue(key, value) {
7945
- switch (key) {
7946
- case 'animation':
7947
- case 'animationName':
7948
- {
7949
- if (typeof value === 'string') {
7950
- return value.replace(animationRegex, function (match, p1, p2) {
7951
- cursor = {
7952
- name: p1,
7953
- styles: p2,
7954
- next: cursor
7955
- };
7956
- return p1;
7957
- });
7958
- }
7959
- }
7960
- }
7961
-
7962
- if (__WEBPACK_IMPORTED_MODULE_1__emotion_unitless__["a" /* default */][key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {
7963
- return value + 'px';
7964
- }
7965
-
7966
- return value;
7967
- };
7968
-
7969
- if (process.env.NODE_ENV !== 'production') {
7970
- var contentValuePattern = /(attr|calc|counters?|url)\(/;
7971
- var contentValues = ['normal', 'none', 'counter', 'open-quote', 'close-quote', 'no-open-quote', 'no-close-quote', 'initial', 'inherit', 'unset'];
7972
- var oldProcessStyleValue = processStyleValue;
7973
- var msPattern = /^-ms-/;
7974
- var hyphenPattern = /-(.)/g;
7975
- var hyphenatedCache = {};
7976
-
7977
- processStyleValue = function processStyleValue(key, value) {
7978
- if (key === 'content') {
7979
- 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) !== "'")) {
7980
- console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
7981
- }
7982
- }
7983
-
7984
- var processed = oldProcessStyleValue(key, value);
7985
-
7986
- if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) {
7987
- hyphenatedCache[key] = true;
7988
- 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) {
7989
- return _char.toUpperCase();
7990
- }) + "?");
7991
- }
7992
-
7993
- return processed;
7994
- };
7995
- }
7996
-
7997
- var shouldWarnAboutInterpolatingClassNameFromCss = true;
7998
-
7999
- function handleInterpolation(mergedProps, registered, interpolation, couldBeSelectorInterpolation) {
8000
- if (interpolation == null) {
8001
- return '';
8002
- }
8003
-
8004
- if (interpolation.__emotion_styles !== undefined) {
8005
- if (process.env.NODE_ENV !== 'production' && interpolation.toString() === 'NO_COMPONENT_SELECTOR') {
8006
- throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.');
8007
- }
8008
-
8009
- return interpolation;
8010
- }
8011
-
8012
- switch (typeof interpolation) {
8013
- case 'boolean':
8014
- {
8015
- return '';
8016
- }
8017
-
8018
- case 'object':
8019
- {
8020
- if (interpolation.anim === 1) {
8021
- cursor = {
8022
- name: interpolation.name,
8023
- styles: interpolation.styles,
8024
- next: cursor
8025
- };
8026
- return interpolation.name;
8027
- }
8028
-
8029
- if (interpolation.styles !== undefined) {
8030
- var next = interpolation.next;
8031
-
8032
- if (next !== undefined) {
8033
- // not the most efficient thing ever but this is a pretty rare case
8034
- // and there will be very few iterations of this generally
8035
- while (next !== undefined) {
8036
- cursor = {
8037
- name: next.name,
8038
- styles: next.styles,
8039
- next: cursor
8040
- };
8041
- next = next.next;
8042
- }
8043
- }
8044
-
8045
- var styles = interpolation.styles + ";";
8046
-
8047
- if (process.env.NODE_ENV !== 'production' && interpolation.map !== undefined) {
8048
- styles += interpolation.map;
8049
- }
8050
-
8051
- return styles;
8052
- }
8053
-
8054
- return createStringFromObject(mergedProps, registered, interpolation);
8055
- }
8056
-
8057
- case 'function':
8058
- {
8059
- if (mergedProps !== undefined) {
8060
- var previousCursor = cursor;
8061
- var result = interpolation(mergedProps);
8062
- cursor = previousCursor;
8063
- return handleInterpolation(mergedProps, registered, result, couldBeSelectorInterpolation);
8064
- } else if (process.env.NODE_ENV !== 'production') {
8065
- 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}`");
8066
- }
8067
-
8068
- break;
8069
- }
8070
-
8071
- case 'string':
8072
- if (process.env.NODE_ENV !== 'production') {
8073
- var matched = [];
8074
- var replaced = interpolation.replace(animationRegex, function (match, p1, p2) {
8075
- var fakeVarName = "animation" + matched.length;
8076
- matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, '') + "`");
8077
- return "${" + fakeVarName + "}";
8078
- });
8079
-
8080
- if (matched.length) {
8081
- 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 + "`"));
8082
- }
8083
- }
8084
-
8085
- break;
8086
- } // finalize string values (regular strings and functions interpolated into css calls)
8087
-
8088
-
8089
- if (registered == null) {
8090
- return interpolation;
8091
- }
8092
-
8093
- var cached = registered[interpolation];
8094
-
8095
- if (process.env.NODE_ENV !== 'production' && couldBeSelectorInterpolation && shouldWarnAboutInterpolatingClassNameFromCss && cached !== undefined) {
8096
- 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');
8097
- shouldWarnAboutInterpolatingClassNameFromCss = false;
8098
- }
8099
-
8100
- return cached !== undefined && !couldBeSelectorInterpolation ? cached : interpolation;
8101
- }
8102
-
8103
- function createStringFromObject(mergedProps, registered, obj) {
8104
- var string = '';
8105
-
8106
- if (Array.isArray(obj)) {
8107
- for (var i = 0; i < obj.length; i++) {
8108
- string += handleInterpolation(mergedProps, registered, obj[i], false);
8109
- }
8110
- } else {
8111
- for (var _key in obj) {
8112
- var value = obj[_key];
8113
-
8114
- if (typeof value !== 'object') {
8115
- if (registered != null && registered[value] !== undefined) {
8116
- string += _key + "{" + registered[value] + "}";
8117
- } else if (isProcessableValue(value)) {
8118
- string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";";
8119
- }
8120
- } else {
8121
- if (_key === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') {
8122
- throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.');
8123
- }
8124
-
8125
- if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
8126
- for (var _i = 0; _i < value.length; _i++) {
8127
- if (isProcessableValue(value[_i])) {
8128
- string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";";
8129
- }
8130
- }
8131
- } else {
8132
- var interpolated = handleInterpolation(mergedProps, registered, value, false);
8133
-
8134
- switch (_key) {
8135
- case 'animation':
8136
- case 'animationName':
8137
- {
8138
- string += processStyleName(_key) + ":" + interpolated + ";";
8139
- break;
8140
- }
8141
-
8142
- default:
8143
- {
8144
- if (process.env.NODE_ENV !== 'production' && _key === 'undefined') {
8145
- console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);
8146
- }
8147
-
8148
- string += _key + "{" + interpolated + "}";
8149
- }
8150
- }
8151
- }
8152
- }
8153
- }
8154
- }
8155
-
8156
- return string;
8157
- }
8158
-
8159
- var labelPattern = /label:\s*([^\s;\n{]+)\s*;/g;
8160
- var sourceMapPattern;
8161
-
8162
- if (process.env.NODE_ENV !== 'production') {
8163
- sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//;
8164
- } // this is the cursor for keyframes
8165
- // keyframes are stored on the SerializedStyles object as a linked list
8166
-
8167
-
8168
- var cursor;
8169
- var serializeStyles = function serializeStyles(args, registered, mergedProps) {
8170
- if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {
8171
- return args[0];
8172
- }
8173
-
8174
- var stringMode = true;
8175
- var styles = '';
8176
- cursor = undefined;
8177
- var strings = args[0];
8178
-
8179
- if (strings == null || strings.raw === undefined) {
8180
- stringMode = false;
8181
- styles += handleInterpolation(mergedProps, registered, strings, false);
8182
- } else {
8183
- if (process.env.NODE_ENV !== 'production' && strings[0] === undefined) {
8184
- console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
8185
- }
8186
-
8187
- styles += strings[0];
8188
- } // we start at 1 since we've already handled the first arg
8189
-
8190
-
8191
- for (var i = 1; i < args.length; i++) {
8192
- styles += handleInterpolation(mergedProps, registered, args[i], styles.charCodeAt(styles.length - 1) === 46);
8193
-
8194
- if (stringMode) {
8195
- if (process.env.NODE_ENV !== 'production' && strings[i] === undefined) {
8196
- console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
8197
- }
8198
-
8199
- styles += strings[i];
8200
- }
8201
- }
8202
-
8203
- var sourceMap;
8204
-
8205
- if (process.env.NODE_ENV !== 'production') {
8206
- styles = styles.replace(sourceMapPattern, function (match) {
8207
- sourceMap = match;
8208
- return '';
8209
- });
8210
- } // using a global regex with .exec is stateful so lastIndex has to be reset each time
8211
-
8212
-
8213
- labelPattern.lastIndex = 0;
8214
- var identifierName = '';
8215
- var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5
8216
-
8217
- while ((match = labelPattern.exec(styles)) !== null) {
8218
- identifierName += '-' + // $FlowFixMe we know it's not null
8219
- match[1];
8220
- }
8221
-
8222
- var name = Object(__WEBPACK_IMPORTED_MODULE_0__emotion_hash__["a" /* default */])(styles) + identifierName;
8223
-
8224
- if (process.env.NODE_ENV !== 'production') {
8225
- // $FlowFixMe SerializedStyles type doesn't have toString property (and we don't want to add it)
8226
- return {
8227
- name: name,
8228
- styles: styles,
8229
- map: sourceMap,
8230
- next: cursor,
8231
- toString: function toString() {
8232
- 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).";
8233
- }
8234
- };
8235
- }
8236
-
8237
- return {
8238
- name: name,
8239
- styles: styles,
8240
- next: cursor
8241
- };
8242
- };
8243
-
8244
-
8245
-
8246
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
8247
-
8248
- /***/ }),
8249
- /* 140 */
8250
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8251
-
8252
- "use strict";
8253
- /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export UNMOUNTED */
8254
- /* unused harmony export EXITED */
8255
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ENTERING; });
8256
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ENTERED; });
8257
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return EXITING; });
8258
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(43);
8259
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(34);
8260
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(2);
8261
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__);
8262
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
8263
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
8264
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_dom__ = __webpack_require__(11);
8265
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react_dom__);
8266
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__config__ = __webpack_require__(262);
8267
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__utils_PropTypes__ = __webpack_require__(263);
8268
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__TransitionGroupContext__ = __webpack_require__(141);
8269
-
8270
-
8271
-
8272
-
8273
-
8274
-
8275
-
8276
-
8277
- var UNMOUNTED = 'unmounted';
8278
- var EXITED = 'exited';
8279
- var ENTERING = 'entering';
8280
- var ENTERED = 'entered';
8281
- var EXITING = 'exiting';
8282
- /**
8283
- * The Transition component lets you describe a transition from one component
8284
- * state to another _over time_ with a simple declarative API. Most commonly
8285
- * it's used to animate the mounting and unmounting of a component, but can also
8286
- * be used to describe in-place transition states as well.
8287
- *
8288
- * ---
8289
- *
8290
- * **Note**: `Transition` is a platform-agnostic base component. If you're using
8291
- * transitions in CSS, you'll probably want to use
8292
- * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)
8293
- * instead. It inherits all the features of `Transition`, but contains
8294
- * additional features necessary to play nice with CSS transitions (hence the
8295
- * name of the component).
8296
- *
8297
- * ---
8298
- *
8299
- * By default the `Transition` component does not alter the behavior of the
8300
- * component it renders, it only tracks "enter" and "exit" states for the
8301
- * components. It's up to you to give meaning and effect to those states. For
8302
- * example we can add styles to a component when it enters or exits:
8303
- *
8304
- * ```jsx
8305
- * import { Transition } from 'react-transition-group';
8306
- *
8307
- * const duration = 300;
8308
- *
8309
- * const defaultStyle = {
8310
- * transition: `opacity ${duration}ms ease-in-out`,
8311
- * opacity: 0,
8312
- * }
8313
- *
8314
- * const transitionStyles = {
8315
- * entering: { opacity: 1 },
8316
- * entered: { opacity: 1 },
8317
- * exiting: { opacity: 0 },
8318
- * exited: { opacity: 0 },
8319
- * };
8320
- *
8321
- * const Fade = ({ in: inProp }) => (
8322
- * <Transition in={inProp} timeout={duration}>
8323
- * {state => (
8324
- * <div style={{
8325
- * ...defaultStyle,
8326
- * ...transitionStyles[state]
8327
- * }}>
8328
- * I'm a fade Transition!
8329
- * </div>
8330
- * )}
8331
- * </Transition>
8332
- * );
8333
- * ```
8334
- *
8335
- * There are 4 main states a Transition can be in:
8336
- * - `'entering'`
8337
- * - `'entered'`
8338
- * - `'exiting'`
8339
- * - `'exited'`
8340
- *
8341
- * Transition state is toggled via the `in` prop. When `true` the component
8342
- * begins the "Enter" stage. During this stage, the component will shift from
8343
- * its current transition state, to `'entering'` for the duration of the
8344
- * transition and then to the `'entered'` stage once it's complete. Let's take
8345
- * the following example (we'll use the
8346
- * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):
8347
- *
8348
- * ```jsx
8349
- * function App() {
8350
- * const [inProp, setInProp] = useState(false);
8351
- * return (
8352
- * <div>
8353
- * <Transition in={inProp} timeout={500}>
8354
- * {state => (
8355
- * // ...
8356
- * )}
8357
- * </Transition>
8358
- * <button onClick={() => setInProp(true)}>
8359
- * Click to Enter
8360
- * </button>
8361
- * </div>
8362
- * );
8363
- * }
8364
- * ```
8365
- *
8366
- * When the button is clicked the component will shift to the `'entering'` state
8367
- * and stay there for 500ms (the value of `timeout`) before it finally switches
8368
- * to `'entered'`.
8369
- *
8370
- * When `in` is `false` the same thing happens except the state moves from
8371
- * `'exiting'` to `'exited'`.
8372
- */
8373
-
8374
- var Transition = /*#__PURE__*/function (_React$Component) {
8375
- Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(Transition, _React$Component);
8376
-
8377
- function Transition(props, context) {
8378
- var _this;
8379
-
8380
- _this = _React$Component.call(this, props, context) || this;
8381
- var parentGroup = context; // In the context of a TransitionGroup all enters are really appears
8382
-
8383
- var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;
8384
- var initialStatus;
8385
- _this.appearStatus = null;
8386
-
8387
- if (props.in) {
8388
- if (appear) {
8389
- initialStatus = EXITED;
8390
- _this.appearStatus = ENTERING;
8391
- } else {
8392
- initialStatus = ENTERED;
8393
- }
8394
- } else {
8395
- if (props.unmountOnExit || props.mountOnEnter) {
8396
- initialStatus = UNMOUNTED;
8397
- } else {
8398
- initialStatus = EXITED;
8399
- }
8400
- }
8401
-
8402
- _this.state = {
8403
- status: initialStatus
8404
- };
8405
- _this.nextCallback = null;
8406
- return _this;
8407
- }
8408
-
8409
- Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {
8410
- var nextIn = _ref.in;
8411
-
8412
- if (nextIn && prevState.status === UNMOUNTED) {
8413
- return {
8414
- status: EXITED
8415
- };
8416
- }
8417
-
8418
- return null;
8419
- } // getSnapshotBeforeUpdate(prevProps) {
8420
- // let nextStatus = null
8421
- // if (prevProps !== this.props) {
8422
- // const { status } = this.state
8423
- // if (this.props.in) {
8424
- // if (status !== ENTERING && status !== ENTERED) {
8425
- // nextStatus = ENTERING
8426
- // }
8427
- // } else {
8428
- // if (status === ENTERING || status === ENTERED) {
8429
- // nextStatus = EXITING
8430
- // }
8431
- // }
8432
- // }
8433
- // return { nextStatus }
8434
- // }
8435
- ;
8436
-
8437
- var _proto = Transition.prototype;
8438
-
8439
- _proto.componentDidMount = function componentDidMount() {
8440
- this.updateStatus(true, this.appearStatus);
8441
- };
8442
-
8443
- _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
8444
- var nextStatus = null;
8445
-
8446
- if (prevProps !== this.props) {
8447
- var status = this.state.status;
8448
-
8449
- if (this.props.in) {
8450
- if (status !== ENTERING && status !== ENTERED) {
8451
- nextStatus = ENTERING;
8452
- }
8453
- } else {
8454
- if (status === ENTERING || status === ENTERED) {
8455
- nextStatus = EXITING;
8456
- }
8457
- }
8458
- }
8459
-
8460
- this.updateStatus(false, nextStatus);
8461
- };
8462
-
8463
- _proto.componentWillUnmount = function componentWillUnmount() {
8464
- this.cancelNextCallback();
8465
- };
8466
-
8467
- _proto.getTimeouts = function getTimeouts() {
8468
- var timeout = this.props.timeout;
8469
- var exit, enter, appear;
8470
- exit = enter = appear = timeout;
8471
-
8472
- if (timeout != null && typeof timeout !== 'number') {
8473
- exit = timeout.exit;
8474
- enter = timeout.enter; // TODO: remove fallback for next major
8475
-
8476
- appear = timeout.appear !== undefined ? timeout.appear : enter;
8477
- }
8478
-
8479
- return {
8480
- exit: exit,
8481
- enter: enter,
8482
- appear: appear
8483
- };
8484
- };
8485
-
8486
- _proto.updateStatus = function updateStatus(mounting, nextStatus) {
8487
- if (mounting === void 0) {
8488
- mounting = false;
8489
- }
8490
-
8491
- if (nextStatus !== null) {
8492
- // nextStatus will always be ENTERING or EXITING.
8493
- this.cancelNextCallback();
8494
-
8495
- if (nextStatus === ENTERING) {
8496
- this.performEnter(mounting);
8497
- } else {
8498
- this.performExit();
8499
- }
8500
- } else if (this.props.unmountOnExit && this.state.status === EXITED) {
8501
- this.setState({
8502
- status: UNMOUNTED
8503
- });
8504
- }
8505
- };
8506
-
8507
- _proto.performEnter = function performEnter(mounting) {
8508
- var _this2 = this;
8509
-
8510
- var enter = this.props.enter;
8511
- var appearing = this.context ? this.context.isMounting : mounting;
8512
-
8513
- var _ref2 = this.props.nodeRef ? [appearing] : [__WEBPACK_IMPORTED_MODULE_4_react_dom___default.a.findDOMNode(this), appearing],
8514
- maybeNode = _ref2[0],
8515
- maybeAppearing = _ref2[1];
8516
-
8517
- var timeouts = this.getTimeouts();
8518
- var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED
8519
- // if we are mounting and running this it means appear _must_ be set
8520
-
8521
- if (!mounting && !enter || __WEBPACK_IMPORTED_MODULE_5__config__["a" /* default */].disabled) {
8522
- this.safeSetState({
8523
- status: ENTERED
8524
- }, function () {
8525
- _this2.props.onEntered(maybeNode);
8526
- });
8527
- return;
8528
- }
8529
-
8530
- this.props.onEnter(maybeNode, maybeAppearing);
8531
- this.safeSetState({
8532
- status: ENTERING
8533
- }, function () {
8534
- _this2.props.onEntering(maybeNode, maybeAppearing);
8535
-
8536
- _this2.onTransitionEnd(enterTimeout, function () {
8537
- _this2.safeSetState({
8538
- status: ENTERED
8539
- }, function () {
8540
- _this2.props.onEntered(maybeNode, maybeAppearing);
8541
- });
8542
- });
8543
- });
8544
- };
8545
-
8546
- _proto.performExit = function performExit() {
8547
- var _this3 = this;
8548
-
8549
- var exit = this.props.exit;
8550
- var timeouts = this.getTimeouts();
8551
- var maybeNode = this.props.nodeRef ? undefined : __WEBPACK_IMPORTED_MODULE_4_react_dom___default.a.findDOMNode(this); // no exit animation skip right to EXITED
8552
-
8553
- if (!exit || __WEBPACK_IMPORTED_MODULE_5__config__["a" /* default */].disabled) {
8554
- this.safeSetState({
8555
- status: EXITED
8556
- }, function () {
8557
- _this3.props.onExited(maybeNode);
8558
- });
8559
- return;
8560
- }
8561
-
8562
- this.props.onExit(maybeNode);
8563
- this.safeSetState({
8564
- status: EXITING
8565
- }, function () {
8566
- _this3.props.onExiting(maybeNode);
8567
-
8568
- _this3.onTransitionEnd(timeouts.exit, function () {
8569
- _this3.safeSetState({
8570
- status: EXITED
8571
- }, function () {
8572
- _this3.props.onExited(maybeNode);
8573
- });
8574
- });
8575
- });
8576
- };
8577
-
8578
- _proto.cancelNextCallback = function cancelNextCallback() {
8579
- if (this.nextCallback !== null) {
8580
- this.nextCallback.cancel();
8581
- this.nextCallback = null;
8582
- }
8583
- };
8584
-
8585
- _proto.safeSetState = function safeSetState(nextState, callback) {
8586
- // This shouldn't be necessary, but there are weird race conditions with
8587
- // setState callbacks and unmounting in testing, so always make sure that
8588
- // we can cancel any pending setState callbacks after we unmount.
8589
- callback = this.setNextCallback(callback);
8590
- this.setState(nextState, callback);
8591
- };
8592
-
8593
- _proto.setNextCallback = function setNextCallback(callback) {
8594
- var _this4 = this;
8595
-
8596
- var active = true;
8597
-
8598
- this.nextCallback = function (event) {
8599
- if (active) {
8600
- active = false;
8601
- _this4.nextCallback = null;
8602
- callback(event);
8603
- }
8604
- };
8605
-
8606
- this.nextCallback.cancel = function () {
8607
- active = false;
8608
- };
8609
-
8610
- return this.nextCallback;
8611
- };
8612
-
8613
- _proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {
8614
- this.setNextCallback(handler);
8615
- var node = this.props.nodeRef ? this.props.nodeRef.current : __WEBPACK_IMPORTED_MODULE_4_react_dom___default.a.findDOMNode(this);
8616
- var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;
8617
-
8618
- if (!node || doesNotHaveTimeoutOrListener) {
8619
- setTimeout(this.nextCallback, 0);
8620
- return;
8621
- }
8622
-
8623
- if (this.props.addEndListener) {
8624
- var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback],
8625
- maybeNode = _ref3[0],
8626
- maybeNextCallback = _ref3[1];
8627
-
8628
- this.props.addEndListener(maybeNode, maybeNextCallback);
8629
- }
8630
-
8631
- if (timeout != null) {
8632
- setTimeout(this.nextCallback, timeout);
8633
- }
8634
- };
8635
-
8636
- _proto.render = function render() {
8637
- var status = this.state.status;
8638
-
8639
- if (status === UNMOUNTED) {
8640
- return null;
8641
- }
8642
-
8643
- var _this$props = this.props,
8644
- children = _this$props.children,
8645
- _in = _this$props.in,
8646
- _mountOnEnter = _this$props.mountOnEnter,
8647
- _unmountOnExit = _this$props.unmountOnExit,
8648
- _appear = _this$props.appear,
8649
- _enter = _this$props.enter,
8650
- _exit = _this$props.exit,
8651
- _timeout = _this$props.timeout,
8652
- _addEndListener = _this$props.addEndListener,
8653
- _onEnter = _this$props.onEnter,
8654
- _onEntering = _this$props.onEntering,
8655
- _onEntered = _this$props.onEntered,
8656
- _onExit = _this$props.onExit,
8657
- _onExiting = _this$props.onExiting,
8658
- _onExited = _this$props.onExited,
8659
- _nodeRef = _this$props.nodeRef,
8660
- childProps = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
8661
-
8662
- return (
8663
- /*#__PURE__*/
8664
- // allows for nested Transitions
8665
- __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7__TransitionGroupContext__["a" /* default */].Provider, {
8666
- value: null
8667
- }, typeof children === 'function' ? children(status, childProps) : __WEBPACK_IMPORTED_MODULE_3_react___default.a.cloneElement(__WEBPACK_IMPORTED_MODULE_3_react___default.a.Children.only(children), childProps))
8668
- );
8669
- };
8670
-
8671
- return Transition;
8672
- }(__WEBPACK_IMPORTED_MODULE_3_react___default.a.Component);
8673
-
8674
- Transition.contextType = __WEBPACK_IMPORTED_MODULE_7__TransitionGroupContext__["a" /* default */];
8675
- Transition.propTypes = process.env.NODE_ENV !== "production" ? {
8676
- /**
8677
- * A React reference to DOM element that need to transition:
8678
- * https://stackoverflow.com/a/51127130/4671932
8679
- *
8680
- * - When `nodeRef` prop is used, `node` is not passed to callback functions
8681
- * (e.g. `onEnter`) because user already has direct access to the node.
8682
- * - When changing `key` prop of `Transition` in a `TransitionGroup` a new
8683
- * `nodeRef` need to be provided to `Transition` with changed `key` prop
8684
- * (see
8685
- * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
8686
- */
8687
- nodeRef: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape({
8688
- current: typeof Element === 'undefined' ? __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.any : __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.instanceOf(Element)
8689
- }),
8690
-
8691
- /**
8692
- * A `function` child can be used instead of a React element. This function is
8693
- * called with the current transition status (`'entering'`, `'entered'`,
8694
- * `'exiting'`, `'exited'`), which can be used to apply context
8695
- * specific props to a component.
8696
- *
8697
- * ```jsx
8698
- * <Transition in={this.state.in} timeout={150}>
8699
- * {state => (
8700
- * <MyComponent className={`fade fade-${state}`} />
8701
- * )}
8702
- * </Transition>
8703
- * ```
8704
- */
8705
- 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,
8706
-
8707
- /**
8708
- * Show the component; triggers the enter or exit states
8709
- */
8710
- in: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
8711
-
8712
- /**
8713
- * By default the child component is mounted immediately along with
8714
- * the parent `Transition` component. If you want to "lazy mount" the component on the
8715
- * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
8716
- * mounted, even on "exited", unless you also specify `unmountOnExit`.
8717
- */
8718
- mountOnEnter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
8719
-
8720
- /**
8721
- * By default the child component stays mounted after it reaches the `'exited'` state.
8722
- * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
8723
- */
8724
- unmountOnExit: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
8725
-
8726
- /**
8727
- * By default the child component does not perform the enter transition when
8728
- * it first mounts, regardless of the value of `in`. If you want this
8729
- * behavior, set both `appear` and `in` to `true`.
8730
- *
8731
- * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
8732
- * > only adds an additional enter transition. However, in the
8733
- * > `<CSSTransition>` component that first enter transition does result in
8734
- * > additional `.appear-*` classes, that way you can choose to style it
8735
- * > differently.
8736
- */
8737
- appear: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
8738
-
8739
- /**
8740
- * Enable or disable enter transitions.
8741
- */
8742
- enter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
8743
-
8744
- /**
8745
- * Enable or disable exit transitions.
8746
- */
8747
- exit: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
8748
-
8749
- /**
8750
- * The duration of the transition, in milliseconds.
8751
- * Required unless `addEndListener` is provided.
8752
- *
8753
- * You may specify a single timeout for all transitions:
8754
- *
8755
- * ```jsx
8756
- * timeout={500}
8757
- * ```
8758
- *
8759
- * or individually:
8760
- *
8761
- * ```jsx
8762
- * timeout={{
8763
- * appear: 500,
8764
- * enter: 300,
8765
- * exit: 500,
8766
- * }}
8767
- * ```
8768
- *
8769
- * - `appear` defaults to the value of `enter`
8770
- * - `enter` defaults to `0`
8771
- * - `exit` defaults to `0`
8772
- *
8773
- * @type {number | { enter?: number, exit?: number, appear?: number }}
8774
- */
8775
- timeout: function timeout(props) {
8776
- var pt = __WEBPACK_IMPORTED_MODULE_6__utils_PropTypes__["b" /* timeoutsShape */];
8777
- if (!props.addEndListener) pt = pt.isRequired;
8778
-
8779
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
8780
- args[_key - 1] = arguments[_key];
8781
- }
8782
-
8783
- return pt.apply(void 0, [props].concat(args));
8784
- },
8785
-
8786
- /**
8787
- * Add a custom transition end trigger. Called with the transitioning
8788
- * DOM node and a `done` callback. Allows for more fine grained transition end
8789
- * logic. Timeouts are still used as a fallback if provided.
8790
- *
8791
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
8792
- *
8793
- * ```jsx
8794
- * addEndListener={(node, done) => {
8795
- * // use the css transitionend event to mark the finish of a transition
8796
- * node.addEventListener('transitionend', done, false);
8797
- * }}
8798
- * ```
8799
- */
8800
- addEndListener: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
8801
-
8802
- /**
8803
- * Callback fired before the "entering" status is applied. An extra parameter
8804
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
8805
- *
8806
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
8807
- *
8808
- * @type Function(node: HtmlElement, isAppearing: bool) -> void
8809
- */
8810
- onEnter: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
8811
-
8812
- /**
8813
- * Callback fired after the "entering" status is applied. An extra parameter
8814
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
8815
- *
8816
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
8817
- *
8818
- * @type Function(node: HtmlElement, isAppearing: bool)
8819
- */
8820
- onEntering: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
8821
-
8822
- /**
8823
- * Callback fired after the "entered" status is applied. An extra parameter
8824
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
8825
- *
8826
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
8827
- *
8828
- * @type Function(node: HtmlElement, isAppearing: bool) -> void
8829
- */
8830
- onEntered: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
8831
-
8832
- /**
8833
- * Callback fired before the "exiting" status is applied.
8834
- *
8835
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
8836
- *
8837
- * @type Function(node: HtmlElement) -> void
8838
- */
8839
- onExit: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
8840
-
8841
- /**
8842
- * Callback fired after the "exiting" status is applied.
8843
- *
8844
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
8845
- *
8846
- * @type Function(node: HtmlElement) -> void
8847
- */
8848
- onExiting: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
8849
-
8850
- /**
8851
- * Callback fired after the "exited" status is applied.
8852
- *
8853
- * **Note**: when `nodeRef` prop is passed, `node` is not passed
8854
- *
8855
- * @type Function(node: HtmlElement) -> void
8856
- */
8857
- onExited: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func
8858
- } : {}; // Name the function so it is clearer in the documentation
8859
-
8860
- function noop() {}
8861
-
8862
- Transition.defaultProps = {
8863
- in: false,
8864
- mountOnEnter: false,
8865
- unmountOnExit: false,
8866
- appear: false,
8867
- enter: true,
8868
- exit: true,
8869
- onEnter: noop,
8870
- onEntering: noop,
8871
- onEntered: noop,
8872
- onExit: noop,
8873
- onExiting: noop,
8874
- onExited: noop
8875
- };
8876
- Transition.UNMOUNTED = UNMOUNTED;
8877
- Transition.EXITED = EXITED;
8878
- Transition.ENTERING = ENTERING;
8879
- Transition.ENTERED = ENTERED;
8880
- Transition.EXITING = EXITING;
8881
- /* harmony default export */ __webpack_exports__["d"] = (Transition);
8882
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
8883
-
8884
- /***/ }),
8885
- /* 141 */
8886
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8887
-
8888
- "use strict";
8889
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
8890
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
8891
-
8892
- /* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_0_react___default.a.createContext(null));
8893
-
8894
- /***/ }),
8895
- /* 142 */
8896
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8897
-
8898
- "use strict";
8899
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Avatar__ = __webpack_require__(591);
8900
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Avatar__["a"]; });
8901
-
8902
-
8903
- /***/ }),
8904
- /* 143 */
8905
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8906
-
8907
- "use strict";
8908
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Button__ = __webpack_require__(603);
8909
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Button__["a"]; });
8910
-
8911
-
8912
- /***/ }),
8913
- /* 144 */
8914
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8915
-
8916
- "use strict";
8917
- /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export styles */
8918
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
8919
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_slicedToArray__ = __webpack_require__(20);
8920
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
8921
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react__ = __webpack_require__(0);
8922
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
8923
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(2);
8924
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);
8925
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_clsx__ = __webpack_require__(5);
8926
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__material_ui_utils__ = __webpack_require__(7);
8927
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__utils_useControlled__ = __webpack_require__(46);
8928
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__FormControl_useFormControl__ = __webpack_require__(53);
8929
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__styles_withStyles__ = __webpack_require__(6);
8930
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__IconButton__ = __webpack_require__(47);
8931
-
8932
-
8933
-
8934
-
8935
-
8936
-
8937
-
8938
-
8939
-
8940
-
8941
-
8942
- var styles = {
8943
- root: {
8944
- padding: 9
8945
- },
8946
- checked: {},
8947
- disabled: {},
8948
- input: {
8949
- cursor: 'inherit',
8950
- position: 'absolute',
8951
- opacity: 0,
8952
- width: '100%',
8953
- height: '100%',
8954
- top: 0,
8955
- left: 0,
8956
- margin: 0,
8957
- padding: 0,
8958
- zIndex: 1
8959
- }
8960
- };
8961
- /**
8962
- * @ignore - internal component.
8963
- */
8964
-
8965
- var SwitchBase = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_3_react__["forwardRef"](function SwitchBase(props, ref) {
8966
- var autoFocus = props.autoFocus,
8967
- checkedProp = props.checked,
8968
- checkedIcon = props.checkedIcon,
8969
- classes = props.classes,
8970
- className = props.className,
8971
- defaultChecked = props.defaultChecked,
8972
- disabledProp = props.disabled,
8973
- icon = props.icon,
8974
- id = props.id,
8975
- inputProps = props.inputProps,
8976
- inputRef = props.inputRef,
8977
- name = props.name,
8978
- onBlur = props.onBlur,
8979
- onChange = props.onChange,
8980
- onFocus = props.onFocus,
8981
- readOnly = props.readOnly,
8982
- required = props.required,
8983
- tabIndex = props.tabIndex,
8984
- type = props.type,
8985
- value = props.value,
8986
- 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"]);
8987
-
8988
- var _useControlled = Object(__WEBPACK_IMPORTED_MODULE_7__utils_useControlled__["a" /* default */])({
8989
- controlled: checkedProp,
8990
- default: Boolean(defaultChecked),
8991
- name: 'SwitchBase',
8992
- state: 'checked'
8993
- }),
8994
- _useControlled2 = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_slicedToArray__["a" /* default */])(_useControlled, 2),
8995
- checked = _useControlled2[0],
8996
- setCheckedState = _useControlled2[1];
8997
-
8998
- var muiFormControl = Object(__WEBPACK_IMPORTED_MODULE_8__FormControl_useFormControl__["a" /* default */])();
8999
-
9000
- var handleFocus = function handleFocus(event) {
9001
- if (onFocus) {
9002
- onFocus(event);
9003
- }
9004
-
9005
- if (muiFormControl && muiFormControl.onFocus) {
9006
- muiFormControl.onFocus(event);
9007
- }
9008
- };
9009
-
9010
- var handleBlur = function handleBlur(event) {
9011
- if (onBlur) {
9012
- onBlur(event);
9013
- }
9014
-
9015
- if (muiFormControl && muiFormControl.onBlur) {
9016
- muiFormControl.onBlur(event);
9017
- }
9018
- };
9019
-
9020
- var handleInputChange = function handleInputChange(event) {
9021
- var newChecked = event.target.checked;
9022
- setCheckedState(newChecked);
9023
-
9024
- if (onChange) {
9025
- // TODO v5: remove the second argument.
9026
- onChange(event, newChecked);
9027
- }
9028
- };
9029
-
9030
- var disabled = disabledProp;
9031
-
9032
- if (muiFormControl) {
9033
- if (typeof disabled === 'undefined') {
9034
- disabled = muiFormControl.disabled;
9035
- }
9036
- }
9037
-
9038
- var hasLabelFor = type === 'checkbox' || type === 'radio';
9039
- 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 */])({
9040
- component: "span",
9041
- className: Object(__WEBPACK_IMPORTED_MODULE_5_clsx__["a" /* default */])(classes.root, className, checked && classes.checked, disabled && classes.disabled),
9042
- disabled: disabled,
9043
- tabIndex: null,
9044
- role: undefined,
9045
- onFocus: handleFocus,
9046
- onBlur: handleBlur,
9047
- ref: ref
9048
- }, other), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_3_react__["createElement"]("input", Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
9049
- autoFocus: autoFocus,
9050
- checked: checkedProp,
9051
- defaultChecked: defaultChecked,
9052
- className: classes.input,
9053
- disabled: disabled,
9054
- id: hasLabelFor && id,
9055
- name: name,
9056
- onChange: handleInputChange,
9057
- readOnly: readOnly,
9058
- ref: inputRef,
9059
- required: required,
9060
- tabIndex: tabIndex,
9061
- type: type,
9062
- value: value
9063
- }, inputProps)), checked ? checkedIcon : icon);
9064
- }); // NB: If changed, please update Checkbox, Switch and Radio
9065
- // so that the API documentation is updated.
9066
-
9067
- process.env.NODE_ENV !== "production" ? SwitchBase.propTypes = {
9068
- /**
9069
- * If `true`, the `input` element will be focused during the first mount.
9070
- */
9071
- autoFocus: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
9072
-
9073
- /**
9074
- * If `true`, the component is checked.
9075
- */
9076
- checked: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
9077
-
9078
- /**
9079
- * The icon to display when the component is checked.
9080
- */
9081
- checkedIcon: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node.isRequired,
9082
-
9083
- /**
9084
- * Override or extend the styles applied to the component.
9085
- * See [CSS API](#css) below for more details.
9086
- */
9087
- classes: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object.isRequired,
9088
-
9089
- /**
9090
- * @ignore
9091
- */
9092
- className: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
9093
-
9094
- /**
9095
- * @ignore
9096
- */
9097
- defaultChecked: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
9098
-
9099
- /**
9100
- * If `true`, the switch will be disabled.
9101
- */
9102
- disabled: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
9103
-
9104
- /**
9105
- * The icon to display when the component is unchecked.
9106
- */
9107
- icon: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node.isRequired,
9108
-
9109
- /**
9110
- * The id of the `input` element.
9111
- */
9112
- id: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
9113
-
9114
- /**
9115
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
9116
- */
9117
- inputProps: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
9118
-
9119
- /**
9120
- * Pass a ref to the `input` element.
9121
- */
9122
- inputRef: __WEBPACK_IMPORTED_MODULE_6__material_ui_utils__["j" /* refType */],
9123
-
9124
- /*
9125
- * @ignore
9126
- */
9127
- name: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
9128
-
9129
- /**
9130
- * @ignore
9131
- */
9132
- onBlur: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
9133
-
9134
- /**
9135
- * Callback fired when the state is changed.
9136
- *
9137
- * @param {object} event The event source of the callback.
9138
- * You can pull out the new checked state by accessing `event.target.checked` (boolean).
9139
- */
9140
- onChange: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
9141
-
9142
- /**
9143
- * @ignore
9144
- */
9145
- onFocus: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
9146
-
9147
- /**
9148
- * It prevents the user from changing the value of the field
9149
- * (not from interacting with the field).
9150
- */
9151
- readOnly: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
9152
-
9153
- /**
9154
- * If `true`, the `input` element will be required.
9155
- */
9156
- required: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
9157
-
9158
- /**
9159
- * @ignore
9160
- */
9161
- 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]),
9162
-
9163
- /**
9164
- * The input component prop `type`.
9165
- */
9166
- type: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string.isRequired,
9167
-
9168
- /**
9169
- * The value of the component.
9170
- */
9171
- value: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.any
9172
- } : void 0;
9173
- /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_9__styles_withStyles__["a" /* default */])(styles, {
9174
- name: 'PrivateSwitchBase'
9175
- })(SwitchBase));
9176
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
9177
-
9178
- /***/ }),
9179
- /* 145 */
9180
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9181
-
9182
- "use strict";
9183
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Chip__ = __webpack_require__(615);
9184
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Chip__["a"]; });
9185
-
9186
-
9187
- /***/ }),
9188
- /* 146 */
9189
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9190
-
9191
- "use strict";
9192
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ClickAwayListener__ = __webpack_require__(618);
9193
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ClickAwayListener__["a"]; });
9194
-
9195
-
9196
- /***/ }),
9197
- /* 147 */
9198
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9199
-
9200
- "use strict";
9201
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Unstable_TrapFocus__ = __webpack_require__(624);
9202
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Unstable_TrapFocus__["a"]; });
9203
-
9204
-
9205
- /***/ }),
9206
- /* 148 */
9207
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9208
-
9209
- "use strict";
9210
- /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export styles */
9211
- /* harmony export (immutable) */ __webpack_exports__["c"] = isHorizontal;
9212
- /* harmony export (immutable) */ __webpack_exports__["b"] = getAnchor;
9213
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
9214
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
9215
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
9216
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
9217
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
9218
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
9219
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_clsx__ = __webpack_require__(5);
9220
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Modal__ = __webpack_require__(79);
9221
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Backdrop__ = __webpack_require__(97);
9222
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__styles_withStyles__ = __webpack_require__(6);
9223
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Slide__ = __webpack_require__(149);
9224
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__Paper__ = __webpack_require__(22);
9225
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__utils_capitalize__ = __webpack_require__(9);
9226
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__styles_transitions__ = __webpack_require__(37);
9227
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__styles_useTheme__ = __webpack_require__(17);
9228
-
9229
-
9230
-
9231
-
9232
-
9233
-
9234
-
9235
-
9236
-
9237
-
9238
-
9239
-
9240
-
9241
- var styles = function styles(theme) {
9242
- return {
9243
- /* Styles applied to the root element. */
9244
- root: {},
9245
-
9246
- /* Styles applied to the root element if `variant="permanent or persistent"`. */
9247
- docked: {
9248
- flex: '0 0 auto'
9249
- },
9250
-
9251
- /* Styles applied to the `Paper` component. */
9252
- paper: {
9253
- overflowY: 'auto',
9254
- display: 'flex',
9255
- flexDirection: 'column',
9256
- height: '100%',
9257
- flex: '1 0 auto',
9258
- zIndex: theme.zIndex.drawer,
9259
- WebkitOverflowScrolling: 'touch',
9260
- // Add iOS momentum scrolling.
9261
- // temporary style
9262
- position: 'fixed',
9263
- top: 0,
9264
- // We disable the focus ring for mouse, touch and keyboard users.
9265
- // At some point, it would be better to keep it for keyboard users.
9266
- // :focus-ring CSS pseudo-class will help.
9267
- outline: 0
9268
- },
9269
-
9270
- /* Styles applied to the `Paper` component if `anchor="left"`. */
9271
- paperAnchorLeft: {
9272
- left: 0,
9273
- right: 'auto'
9274
- },
9275
-
9276
- /* Styles applied to the `Paper` component if `anchor="right"`. */
9277
- paperAnchorRight: {
9278
- left: 'auto',
9279
- right: 0
9280
- },
9281
-
9282
- /* Styles applied to the `Paper` component if `anchor="top"`. */
9283
- paperAnchorTop: {
9284
- top: 0,
9285
- left: 0,
9286
- bottom: 'auto',
9287
- right: 0,
9288
- height: 'auto',
9289
- maxHeight: '100%'
9290
- },
9291
-
9292
- /* Styles applied to the `Paper` component if `anchor="bottom"`. */
9293
- paperAnchorBottom: {
9294
- top: 'auto',
9295
- left: 0,
9296
- bottom: 0,
9297
- right: 0,
9298
- height: 'auto',
9299
- maxHeight: '100%'
9300
- },
9301
-
9302
- /* Styles applied to the `Paper` component if `anchor="left"` and `variant` is not "temporary". */
9303
- paperAnchorDockedLeft: {
9304
- borderRight: "1px solid ".concat(theme.palette.divider)
9305
- },
9306
-
9307
- /* Styles applied to the `Paper` component if `anchor="top"` and `variant` is not "temporary". */
9308
- paperAnchorDockedTop: {
9309
- borderBottom: "1px solid ".concat(theme.palette.divider)
9310
- },
9311
-
9312
- /* Styles applied to the `Paper` component if `anchor="right"` and `variant` is not "temporary". */
9313
- paperAnchorDockedRight: {
9314
- borderLeft: "1px solid ".concat(theme.palette.divider)
9315
- },
9316
-
9317
- /* Styles applied to the `Paper` component if `anchor="bottom"` and `variant` is not "temporary". */
9318
- paperAnchorDockedBottom: {
9319
- borderTop: "1px solid ".concat(theme.palette.divider)
9320
- },
9321
-
9322
- /* Styles applied to the `Modal` component. */
9323
- modal: {}
9324
- };
9325
- };
9326
- var oppositeDirection = {
9327
- left: 'right',
9328
- right: 'left',
9329
- top: 'down',
9330
- bottom: 'up'
9331
- };
9332
- function isHorizontal(anchor) {
9333
- return ['left', 'right'].indexOf(anchor) !== -1;
9334
- }
9335
- function getAnchor(theme, anchor) {
9336
- return theme.direction === 'rtl' && isHorizontal(anchor) ? oppositeDirection[anchor] : anchor;
9337
- }
9338
- var defaultTransitionDuration = {
9339
- enter: __WEBPACK_IMPORTED_MODULE_11__styles_transitions__["b" /* duration */].enteringScreen,
9340
- exit: __WEBPACK_IMPORTED_MODULE_11__styles_transitions__["b" /* duration */].leavingScreen
9341
- };
9342
- /**
9343
- * The props of the [Modal](/api/modal/) component are available
9344
- * when `variant="temporary"` is set.
9345
- */
9346
-
9347
- var Drawer = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["forwardRef"](function Drawer(props, ref) {
9348
- var _props$anchor = props.anchor,
9349
- anchorProp = _props$anchor === void 0 ? 'left' : _props$anchor,
9350
- BackdropProps = props.BackdropProps,
9351
- children = props.children,
9352
- classes = props.classes,
9353
- className = props.className,
9354
- _props$elevation = props.elevation,
9355
- elevation = _props$elevation === void 0 ? 16 : _props$elevation,
9356
- _props$ModalProps = props.ModalProps;
9357
- _props$ModalProps = _props$ModalProps === void 0 ? {} : _props$ModalProps;
9358
-
9359
- var BackdropPropsProp = _props$ModalProps.BackdropProps,
9360
- ModalProps = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_props$ModalProps, ["BackdropProps"]),
9361
- onClose = props.onClose,
9362
- _props$open = props.open,
9363
- open = _props$open === void 0 ? false : _props$open,
9364
- _props$PaperProps = props.PaperProps,
9365
- PaperProps = _props$PaperProps === void 0 ? {} : _props$PaperProps,
9366
- SlideProps = props.SlideProps,
9367
- _props$TransitionComp = props.TransitionComponent,
9368
- TransitionComponent = _props$TransitionComp === void 0 ? __WEBPACK_IMPORTED_MODULE_8__Slide__["a" /* default */] : _props$TransitionComp,
9369
- _props$transitionDura = props.transitionDuration,
9370
- transitionDuration = _props$transitionDura === void 0 ? defaultTransitionDuration : _props$transitionDura,
9371
- _props$variant = props.variant,
9372
- variant = _props$variant === void 0 ? 'temporary' : _props$variant,
9373
- 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"]);
9374
-
9375
- var theme = Object(__WEBPACK_IMPORTED_MODULE_12__styles_useTheme__["a" /* default */])(); // Let's assume that the Drawer will always be rendered on user space.
9376
- // We use this state is order to skip the appear transition during the
9377
- // initial mount of the component.
9378
-
9379
- var mounted = __WEBPACK_IMPORTED_MODULE_2_react__["useRef"](false);
9380
- __WEBPACK_IMPORTED_MODULE_2_react__["useEffect"](function () {
9381
- mounted.current = true;
9382
- }, []);
9383
- var anchor = getAnchor(theme, anchorProp);
9384
- 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 */])({
9385
- elevation: variant === 'temporary' ? elevation : 0,
9386
- square: true
9387
- }, PaperProps, {
9388
- 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))])
9389
- }), children);
9390
-
9391
- if (variant === 'permanent') {
9392
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"]("div", Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
9393
- className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.root, classes.docked, className),
9394
- ref: ref
9395
- }, other), drawer);
9396
- }
9397
-
9398
- var slidingDrawer = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](TransitionComponent, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
9399
- in: open,
9400
- direction: oppositeDirection[anchor],
9401
- timeout: transitionDuration,
9402
- appear: mounted.current
9403
- }, SlideProps), drawer);
9404
-
9405
- if (variant === 'persistent') {
9406
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"]("div", Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
9407
- className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.root, classes.docked, className),
9408
- ref: ref
9409
- }, other), slidingDrawer);
9410
- } // variant === temporary
9411
-
9412
-
9413
- 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 */])({
9414
- BackdropProps: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, BackdropProps, BackdropPropsProp, {
9415
- transitionDuration: transitionDuration
9416
- }),
9417
- BackdropComponent: __WEBPACK_IMPORTED_MODULE_6__Backdrop__["a" /* default */],
9418
- className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.root, classes.modal, className),
9419
- open: open,
9420
- onClose: onClose,
9421
- ref: ref
9422
- }, other, ModalProps), slidingDrawer);
9423
- });
9424
- process.env.NODE_ENV !== "production" ? Drawer.propTypes = {
9425
- // ----------------------------- Warning --------------------------------
9426
- // | These PropTypes are generated from the TypeScript type definitions |
9427
- // | To update them edit the d.ts file and run "yarn proptypes" |
9428
- // ----------------------------------------------------------------------
9429
-
9430
- /**
9431
- * Side from which the drawer will appear.
9432
- */
9433
- anchor: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(['bottom', 'left', 'right', 'top']),
9434
-
9435
- /**
9436
- * @ignore
9437
- */
9438
- BackdropProps: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
9439
-
9440
- /**
9441
- * The contents of the drawer.
9442
- */
9443
- children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node,
9444
-
9445
- /**
9446
- * Override or extend the styles applied to the component.
9447
- * See [CSS API](#css) below for more details.
9448
- */
9449
- classes: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
9450
-
9451
- /**
9452
- * @ignore
9453
- */
9454
- className: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string,
9455
-
9456
- /**
9457
- * The elevation of the drawer.
9458
- */
9459
- elevation: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number,
9460
-
9461
- /**
9462
- * Props applied to the [`Modal`](/api/modal/) element.
9463
- */
9464
- ModalProps: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
9465
-
9466
- /**
9467
- * Callback fired when the component requests to be closed.
9468
- *
9469
- * @param {object} event The event source of the callback.
9470
- */
9471
- onClose: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
9472
-
9473
- /**
9474
- * If `true`, the drawer is open.
9475
- */
9476
- open: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
9477
-
9478
- /**
9479
- * Props applied to the [`Paper`](/api/paper/) element.
9480
- */
9481
- PaperProps: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
9482
-
9483
- /**
9484
- * Props applied to the [`Slide`](/api/slide/) element.
9485
- */
9486
- SlideProps: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
9487
-
9488
- /**
9489
- * The duration for the transition, in milliseconds.
9490
- * You may specify a single timeout for all transitions, or individually with an object.
9491
- */
9492
- 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({
9493
- appear: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number,
9494
- enter: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number,
9495
- exit: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.number
9496
- })]),
9497
-
9498
- /**
9499
- * The variant to use.
9500
- */
9501
- variant: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(['permanent', 'persistent', 'temporary'])
9502
- } : void 0;
9503
- /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_7__styles_withStyles__["a" /* default */])(styles, {
9504
- name: 'MuiDrawer',
9505
- flip: false
9506
- })(Drawer));
9507
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
9508
-
9509
- /***/ }),
9510
- /* 149 */
9511
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9512
-
9513
- "use strict";
9514
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Slide__ = __webpack_require__(631);
9515
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Slide__["a"]; });
9516
-
9517
-
9518
- /***/ }),
9519
- /* 150 */
9520
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9521
-
9522
- "use strict";
9523
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TextareaAutosize__ = __webpack_require__(639);
9524
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TextareaAutosize__["a"]; });
9525
-
9526
-
9527
- /***/ }),
9528
- /* 151 */
9529
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9530
-
9531
- "use strict";
9532
- /* unused harmony export hasValue */
9533
- /* harmony export (immutable) */ __webpack_exports__["b"] = isFilled;
9534
- /* harmony export (immutable) */ __webpack_exports__["a"] = isAdornedStart;
9535
- // Supports determination of isControlled().
9536
- // Controlled input accepts its current value as a prop.
9537
- //
9538
- // @see https://facebook.github.io/react/docs/forms.html#controlled-components
9539
- // @param value
9540
- // @returns {boolean} true if string (including '') or number (including zero)
9541
- function hasValue(value) {
9542
- return value != null && !(Array.isArray(value) && value.length === 0);
9543
- } // Determine if field is empty or filled.
9544
- // Response determines if label is presented above field or as placeholder.
9545
- //
9546
- // @param obj
9547
- // @param SSR
9548
- // @returns {boolean} False when not present or empty string.
9549
- // True when any number or string with length.
9550
-
9551
- function isFilled(obj) {
9552
- var SSR = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
9553
- return obj && (hasValue(obj.value) && obj.value !== '' || SSR && hasValue(obj.defaultValue) && obj.defaultValue !== '');
9554
- } // Determine if an Input is adorned on start.
9555
- // It's corresponding to the left with LTR.
9556
- //
9557
- // @param obj
9558
- // @returns {boolean} False when no adornments.
9559
- // True when adorned at the start.
9560
-
9561
- function isAdornedStart(obj) {
9562
- return obj.startAdornment;
9563
- }
9564
-
9565
- /***/ }),
9566
- /* 152 */
9567
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9568
-
9569
- "use strict";
9570
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormGroup__ = __webpack_require__(642);
9571
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FormGroup__["a"]; });
9572
-
9573
-
9574
- /***/ }),
9575
- /* 153 */
9576
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9577
-
9578
- "use strict";
9579
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormHelperText__ = __webpack_require__(643);
9580
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FormHelperText__["a"]; });
9581
-
9582
-
9583
- /***/ }),
9584
- /* 154 */
9585
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9586
-
9587
- "use strict";
9588
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormLabel__ = __webpack_require__(644);
9589
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__FormLabel__["a"]; });
9590
-
9591
-
9592
- /***/ }),
9593
- /* 155 */
9594
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9595
-
9596
- "use strict";
9597
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__useMediaQuery__ = __webpack_require__(652);
9598
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__useMediaQuery__["a"]; });
9599
-
9600
-
9601
- /***/ }),
9602
- /* 156 */
9603
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9604
-
9605
- "use strict";
9606
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__InputLabel__ = __webpack_require__(656);
9607
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__InputLabel__["a"]; });
9608
-
9609
-
9610
- /***/ }),
9611
- /* 157 */
9612
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9613
-
9614
- "use strict";
9615
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__LinearProgress__ = __webpack_require__(657);
9616
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__LinearProgress__["a"]; });
9617
-
9618
-
9619
- /***/ }),
9620
- /* 158 */
9621
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9622
-
9623
- "use strict";
9624
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__List__ = __webpack_require__(659);
9625
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__List__["a"]; });
9626
-
9627
-
9628
- /***/ }),
9629
- /* 159 */
9630
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9631
-
9632
- "use strict";
9633
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListItem__ = __webpack_require__(660);
9634
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ListItem__["a"]; });
9635
-
9636
-
9637
- /***/ }),
9638
- /* 160 */
9639
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9640
-
9641
- "use strict";
9642
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListSubheader__ = __webpack_require__(665);
9643
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ListSubheader__["a"]; });
9644
-
9645
-
9646
- /***/ }),
9647
- /* 161 */
9648
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9649
-
9650
- "use strict";
9651
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Popover__ = __webpack_require__(666);
9652
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Popover__["a"]; });
9653
-
9654
-
9655
- /***/ }),
9656
- /* 162 */
9657
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9658
-
9659
- "use strict";
9660
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MenuList__ = __webpack_require__(667);
9661
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__MenuList__["a"]; });
9662
-
9663
-
9664
- /***/ }),
9665
- /* 163 */
9666
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9667
-
9668
- "use strict";
9669
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MenuItem__ = __webpack_require__(668);
9670
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__MenuItem__["a"]; });
9671
-
9672
-
9673
- /***/ }),
9674
- /* 164 */
9675
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9676
-
9677
- "use strict";
9678
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__NoSsr__ = __webpack_require__(670);
9679
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__NoSsr__["a"]; });
9680
-
9681
-
9682
- /***/ }),
9683
- /* 165 */
9684
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9685
-
9686
- "use strict";
9687
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SnackbarContent__ = __webpack_require__(686);
9688
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__SnackbarContent__["a"]; });
9689
-
9690
-
9691
- /***/ }),
9692
- /* 166 */
9693
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9694
-
9695
- "use strict";
9696
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StepLabel__ = __webpack_require__(689);
9697
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__StepLabel__["a"]; });
9698
-
9699
-
9700
- /***/ }),
9701
- /* 167 */
9702
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9703
-
9704
- "use strict";
9705
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StepIcon__ = __webpack_require__(690);
9706
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__StepIcon__["a"]; });
9707
-
9708
-
9709
- /***/ }),
9710
- /* 168 */
9711
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9712
-
9713
- "use strict";
9714
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StepConnector__ = __webpack_require__(693);
9715
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__StepConnector__["a"]; });
9716
-
9717
-
9718
- /***/ }),
9719
- /* 169 */
9720
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9721
-
9722
- "use strict";
9723
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TableCell__ = __webpack_require__(702);
9724
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TableCell__["a"]; });
9725
-
9726
-
9727
- /***/ }),
9728
- /* 170 */
9729
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9730
-
9731
- "use strict";
9732
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Toolbar__ = __webpack_require__(707);
9733
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Toolbar__["a"]; });
9734
-
9735
-
9736
- /***/ }),
9737
- /* 171 */
9738
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9739
-
9740
- "use strict";
9741
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Tabs__ = __webpack_require__(712);
9742
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Tabs__["a"]; });
9743
-
9744
-
9745
- /***/ }),
9746
- /* 172 */
9747
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9748
-
9749
- "use strict";
9750
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TabScrollButton__ = __webpack_require__(717);
9751
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TabScrollButton__["a"]; });
9752
-
9753
-
9754
- /***/ }),
9755
- /* 173 */
9756
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9757
-
9758
- "use strict";
9759
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Zoom__ = __webpack_require__(722);
9760
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Zoom__["a"]; });
9761
-
9762
-
9763
- /***/ }),
9764
- /* 174 */
9765
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9766
-
9767
- "use strict";
9768
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__PaginationItem__ = __webpack_require__(728);
9769
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__PaginationItem__["a"]; });
9770
-
9771
-
9772
- /***/ }),
9773
- /* 175 */
9774
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9775
-
9776
- "use strict";
9777
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
9778
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
9779
-
9780
- /**
9781
- * @ignore - internal component.
9782
- */
9783
-
9784
- var TimelineItemContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]({});
9785
-
9786
- if (process.env.NODE_ENV !== 'production') {
9787
- TimelineItemContext.displayName = 'TimelineItemContext';
9788
- }
9789
-
9790
- /* harmony default export */ __webpack_exports__["a"] = (TimelineItemContext);
9791
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
9792
-
9793
- /***/ }),
9794
- /* 176 */
9795
- /***/ (function(module, exports, __webpack_require__) {
9796
-
9797
- var baseForOwn = __webpack_require__(377),
9798
- castFunction = __webpack_require__(772);
9799
-
9800
- /**
9801
- * Iterates over own enumerable string keyed properties of an object and
9802
- * invokes `iteratee` for each property. The iteratee is invoked with three
9803
- * arguments: (value, key, object). Iteratee functions may exit iteration
9804
- * early by explicitly returning `false`.
9805
- *
9806
- * @static
9807
- * @memberOf _
9808
- * @since 0.3.0
9809
- * @category Object
9810
- * @param {Object} object The object to iterate over.
9811
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
9812
- * @returns {Object} Returns `object`.
9813
- * @see _.forOwnRight
9814
- * @example
9815
- *
9816
- * function Foo() {
9817
- * this.a = 1;
9818
- * this.b = 2;
9819
- * }
9820
- *
9821
- * Foo.prototype.c = 3;
9822
- *
9823
- * _.forOwn(new Foo, function(value, key) {
9824
- * console.log(key);
9825
- * });
9826
- * // => Logs 'a' then 'b' (iteration order is not guaranteed).
9827
- */
9828
- function forOwn(object, iteratee) {
9829
- return object && baseForOwn(object, castFunction(iteratee));
9830
- }
9831
-
9832
- module.exports = forOwn;
9833
-
9834
-
9835
- /***/ }),
9836
- /* 177 */
9837
- /***/ (function(module, exports, __webpack_require__) {
9838
-
9839
- /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(38),
9840
- stubFalse = __webpack_require__(768);
9841
-
9842
- /** Detect free variable `exports`. */
9843
- var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
9844
-
9845
- /** Detect free variable `module`. */
9846
- var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
9847
-
9848
- /** Detect the popular CommonJS extension `module.exports`. */
9849
- var moduleExports = freeModule && freeModule.exports === freeExports;
9850
-
9851
- /** Built-in value references. */
9852
- var Buffer = moduleExports ? root.Buffer : undefined;
9853
-
9854
- /* Built-in method references for those with the same name as other `lodash` methods. */
9855
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
9856
-
9857
- /**
9858
- * Checks if `value` is a buffer.
9859
- *
9860
- * @static
9861
- * @memberOf _
9862
- * @since 4.3.0
9863
- * @category Lang
9864
- * @param {*} value The value to check.
9865
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
9866
- * @example
9867
- *
9868
- * _.isBuffer(new Buffer(2));
9869
- * // => true
9870
- *
9871
- * _.isBuffer(new Uint8Array(2));
9872
- * // => false
9873
- */
9874
- var isBuffer = nativeIsBuffer || stubFalse;
9875
-
9876
- module.exports = isBuffer;
9877
-
9878
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(178)(module)))
9879
-
9880
- /***/ }),
9881
- /* 178 */
9882
- /***/ (function(module, exports) {
9883
-
9884
- module.exports = function(module) {
9885
- if(!module.webpackPolyfill) {
9886
- module.deprecate = function() {};
9887
- module.paths = [];
9888
- // module.parent = undefined by default
9889
- if(!module.children) module.children = [];
9890
- Object.defineProperty(module, "loaded", {
9891
- enumerable: true,
9892
- get: function() {
9893
- return module.l;
9894
  }
9895
- });
9896
- Object.defineProperty(module, "id", {
9897
- enumerable: true,
9898
- get: function() {
9899
- return module.i;
 
9900
  }
9901
- });
9902
- module.webpackPolyfill = 1;
9903
  }
9904
- return module;
9905
- };
9906
-
9907
-
9908
- /***/ }),
9909
- /* 179 */
9910
- /***/ (function(module, exports) {
9911
-
9912
- /** Used as references for various `Number` constants. */
9913
- var MAX_SAFE_INTEGER = 9007199254740991;
9914
-
9915
- /**
9916
- * Checks if `value` is a valid array-like length.
9917
- *
9918
- * **Note:** This method is loosely based on
9919
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
9920
- *
9921
- * @static
9922
- * @memberOf _
9923
- * @since 4.0.0
9924
- * @category Lang
9925
- * @param {*} value The value to check.
9926
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
9927
- * @example
9928
- *
9929
- * _.isLength(3);
9930
- * // => true
9931
- *
9932
- * _.isLength(Number.MIN_VALUE);
9933
- * // => false
9934
- *
9935
- * _.isLength(Infinity);
9936
- * // => false
9937
- *
9938
- * _.isLength('3');
9939
- * // => false
9940
- */
9941
- function isLength(value) {
9942
- return typeof value == 'number' &&
9943
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
9944
- }
9945
-
9946
- module.exports = isLength;
9947
-
9948
-
9949
- /***/ }),
9950
- /* 180 */
9951
- /***/ (function(module, exports) {
9952
-
9953
- /**
9954
- * The base implementation of `_.unary` without support for storing metadata.
9955
- *
9956
- * @private
9957
- * @param {Function} func The function to cap arguments for.
9958
- * @returns {Function} Returns the new capped function.
9959
- */
9960
- function baseUnary(func) {
9961
- return function(value) {
9962
- return func(value);
9963
- };
9964
- }
9965
-
9966
- module.exports = baseUnary;
9967
-
9968
-
9969
- /***/ }),
9970
- /* 181 */
9971
- /***/ (function(module, exports, __webpack_require__) {
9972
-
9973
- /* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(376);
9974
-
9975
- /** Detect free variable `exports`. */
9976
- var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
9977
-
9978
- /** Detect free variable `module`. */
9979
- var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
9980
-
9981
- /** Detect the popular CommonJS extension `module.exports`. */
9982
- var moduleExports = freeModule && freeModule.exports === freeExports;
9983
-
9984
- /** Detect free variable `process` from Node.js. */
9985
- var freeProcess = moduleExports && freeGlobal.process;
9986
-
9987
- /** Used to access faster Node.js helpers. */
9988
- var nodeUtil = (function() {
9989
- try {
9990
- // Use `util.types` for Node.js 10+.
9991
- var types = freeModule && freeModule.require && freeModule.require('util').types;
9992
-
9993
- if (types) {
9994
- return types;
9995
- }
9996
-
9997
- // Legacy `process.binding('util')` for Node.js < 10.
9998
- return freeProcess && freeProcess.binding && freeProcess.binding('util');
9999
- } catch (e) {}
10000
- }());
10001
-
10002
- module.exports = nodeUtil;
10003
-
10004
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(178)(module)))
10005
-
10006
- /***/ }),
10007
- /* 182 */
10008
- /***/ (function(module, exports) {
10009
-
10010
- /** Used for built-in method references. */
10011
- var objectProto = Object.prototype;
10012
-
10013
- /**
10014
- * Checks if `value` is likely a prototype object.
10015
- *
10016
- * @private
10017
- * @param {*} value The value to check.
10018
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
10019
- */
10020
- function isPrototype(value) {
10021
- var Ctor = value && value.constructor,
10022
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
10023
-
10024
- return value === proto;
10025
- }
10026
-
10027
- module.exports = isPrototype;
10028
-
10029
-
10030
- /***/ }),
10031
- /* 183 */
10032
- /***/ (function(module, exports, __webpack_require__) {
10033
-
10034
- var overArg = __webpack_require__(382);
10035
-
10036
- /** Built-in value references. */
10037
- var getPrototype = overArg(Object.getPrototypeOf, Object);
10038
-
10039
- module.exports = getPrototype;
10040
-
10041
-
10042
- /***/ }),
10043
- /* 184 */
10044
- /***/ (function(module, exports, __webpack_require__) {
10045
-
10046
- var ListCache = __webpack_require__(112),
10047
- stackClear = __webpack_require__(783),
10048
- stackDelete = __webpack_require__(784),
10049
- stackGet = __webpack_require__(785),
10050
- stackHas = __webpack_require__(786),
10051
- stackSet = __webpack_require__(787);
10052
-
10053
- /**
10054
- * Creates a stack cache object to store key-value pairs.
10055
- *
10056
- * @private
10057
- * @constructor
10058
- * @param {Array} [entries] The key-value pairs to cache.
10059
- */
10060
- function Stack(entries) {
10061
- var data = this.__data__ = new ListCache(entries);
10062
- this.size = data.size;
10063
- }
10064
-
10065
- // Add methods to `Stack`.
10066
- Stack.prototype.clear = stackClear;
10067
- Stack.prototype['delete'] = stackDelete;
10068
- Stack.prototype.get = stackGet;
10069
- Stack.prototype.has = stackHas;
10070
- Stack.prototype.set = stackSet;
10071
-
10072
- module.exports = Stack;
10073
-
10074
-
10075
- /***/ }),
10076
- /* 185 */
10077
- /***/ (function(module, exports) {
10078
-
10079
- /**
10080
- * Performs a
10081
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
10082
- * comparison between two values to determine if they are equivalent.
10083
- *
10084
- * @static
10085
- * @memberOf _
10086
- * @since 4.0.0
10087
- * @category Lang
10088
- * @param {*} value The value to compare.
10089
- * @param {*} other The other value to compare.
10090
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
10091
- * @example
10092
- *
10093
- * var object = { 'a': 1 };
10094
- * var other = { 'a': 1 };
10095
- *
10096
- * _.eq(object, object);
10097
- * // => true
10098
- *
10099
- * _.eq(object, other);
10100
- * // => false
10101
- *
10102
- * _.eq('a', 'a');
10103
- * // => true
10104
- *
10105
- * _.eq('a', Object('a'));
10106
- * // => false
10107
- *
10108
- * _.eq(NaN, NaN);
10109
- * // => true
10110
- */
10111
- function eq(value, other) {
10112
- return value === other || (value !== value && other !== other);
10113
- }
10114
-
10115
- module.exports = eq;
10116
-
10117
-
10118
- /***/ }),
10119
- /* 186 */
10120
- /***/ (function(module, exports, __webpack_require__) {
10121
-
10122
- var getNative = __webpack_require__(55),
10123
- root = __webpack_require__(38);
10124
-
10125
- /* Built-in method references that are verified to be native. */
10126
- var Map = getNative(root, 'Map');
10127
-
10128
- module.exports = Map;
10129
-
10130
-
10131
- /***/ }),
10132
- /* 187 */
10133
- /***/ (function(module, exports, __webpack_require__) {
10134
-
10135
- var mapCacheClear = __webpack_require__(792),
10136
- mapCacheDelete = __webpack_require__(799),
10137
- mapCacheGet = __webpack_require__(801),
10138
- mapCacheHas = __webpack_require__(802),
10139
- mapCacheSet = __webpack_require__(803);
10140
-
10141
- /**
10142
- * Creates a map cache object to store key-value pairs.
10143
- *
10144
- * @private
10145
- * @constructor
10146
- * @param {Array} [entries] The key-value pairs to cache.
10147
- */
10148
- function MapCache(entries) {
10149
- var index = -1,
10150
- length = entries == null ? 0 : entries.length;
10151
-
10152
- this.clear();
10153
- while (++index < length) {
10154
- var entry = entries[index];
10155
- this.set(entry[0], entry[1]);
10156
- }
10157
- }
10158
-
10159
- // Add methods to `MapCache`.
10160
- MapCache.prototype.clear = mapCacheClear;
10161
- MapCache.prototype['delete'] = mapCacheDelete;
10162
- MapCache.prototype.get = mapCacheGet;
10163
- MapCache.prototype.has = mapCacheHas;
10164
- MapCache.prototype.set = mapCacheSet;
10165
-
10166
- module.exports = MapCache;
10167
-
10168
-
10169
- /***/ }),
10170
- /* 188 */
10171
- /***/ (function(module, exports, __webpack_require__) {
10172
-
10173
- var arrayFilter = __webpack_require__(814),
10174
- stubArray = __webpack_require__(393);
10175
-
10176
- /** Used for built-in method references. */
10177
- var objectProto = Object.prototype;
10178
-
10179
- /** Built-in value references. */
10180
- var propertyIsEnumerable = objectProto.propertyIsEnumerable;
10181
-
10182
- /* Built-in method references for those with the same name as other `lodash` methods. */
10183
- var nativeGetSymbols = Object.getOwnPropertySymbols;
10184
-
10185
- /**
10186
- * Creates an array of the own enumerable symbols of `object`.
10187
- *
10188
- * @private
10189
- * @param {Object} object The object to query.
10190
- * @returns {Array} Returns the array of symbols.
10191
- */
10192
- var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
10193
- if (object == null) {
10194
- return [];
10195
- }
10196
- object = Object(object);
10197
- return arrayFilter(nativeGetSymbols(object), function(symbol) {
10198
- return propertyIsEnumerable.call(object, symbol);
10199
- });
10200
- };
10201
-
10202
- module.exports = getSymbols;
10203
-
10204
-
10205
- /***/ }),
10206
- /* 189 */
10207
- /***/ (function(module, exports, __webpack_require__) {
10208
-
10209
- var isArray = __webpack_require__(29),
10210
- isSymbol = __webpack_require__(190);
10211
-
10212
- /** Used to match property names within property paths. */
10213
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
10214
- reIsPlainProp = /^\w*$/;
10215
-
10216
- /**
10217
- * Checks if `value` is a property name and not a property path.
10218
- *
10219
- * @private
10220
- * @param {*} value The value to check.
10221
- * @param {Object} [object] The object to query keys on.
10222
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
10223
- */
10224
- function isKey(value, object) {
10225
- if (isArray(value)) {
10226
- return false;
10227
- }
10228
- var type = typeof value;
10229
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
10230
- value == null || isSymbol(value)) {
10231
- return true;
10232
- }
10233
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
10234
- (object != null && value in Object(object));
10235
- }
10236
-
10237
- module.exports = isKey;
10238
-
10239
-
10240
- /***/ }),
10241
- /* 190 */
10242
- /***/ (function(module, exports, __webpack_require__) {
10243
-
10244
- var baseGetTag = __webpack_require__(54),
10245
- isObjectLike = __webpack_require__(41);
10246
-
10247
- /** `Object#toString` result references. */
10248
- var symbolTag = '[object Symbol]';
10249
-
10250
- /**
10251
- * Checks if `value` is classified as a `Symbol` primitive or object.
10252
- *
10253
- * @static
10254
- * @memberOf _
10255
- * @since 4.0.0
10256
- * @category Lang
10257
- * @param {*} value The value to check.
10258
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
10259
- * @example
10260
- *
10261
- * _.isSymbol(Symbol.iterator);
10262
- * // => true
10263
- *
10264
- * _.isSymbol('abc');
10265
- * // => false
10266
- */
10267
- function isSymbol(value) {
10268
- return typeof value == 'symbol' ||
10269
- (isObjectLike(value) && baseGetTag(value) == symbolTag);
10270
- }
10271
-
10272
- module.exports = isSymbol;
10273
-
10274
-
10275
- /***/ }),
10276
- /* 191 */
10277
- /***/ (function(module, exports, __webpack_require__) {
10278
-
10279
- var arrayLikeKeys = __webpack_require__(378),
10280
- baseKeysIn = __webpack_require__(843),
10281
- isArrayLike = __webpack_require__(111);
10282
-
10283
- /**
10284
- * Creates an array of the own and inherited enumerable property names of `object`.
10285
- *
10286
- * **Note:** Non-object values are coerced to objects.
10287
- *
10288
- * @static
10289
- * @memberOf _
10290
- * @since 3.0.0
10291
- * @category Object
10292
- * @param {Object} object The object to query.
10293
- * @returns {Array} Returns the array of property names.
10294
- * @example
10295
- *
10296
- * function Foo() {
10297
- * this.a = 1;
10298
- * this.b = 2;
10299
- * }
10300
- *
10301
- * Foo.prototype.c = 3;
10302
- *
10303
- * _.keysIn(new Foo);
10304
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
10305
- */
10306
- function keysIn(object) {
10307
- return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
10308
- }
10309
-
10310
- module.exports = keysIn;
10311
-
10312
-
10313
- /***/ }),
10314
- /* 192 */
10315
- /***/ (function(module, exports, __webpack_require__) {
10316
-
10317
- var Uint8Array = __webpack_require__(389);
10318
-
10319
- /**
10320
- * Creates a clone of `arrayBuffer`.
10321
- *
10322
- * @private
10323
- * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
10324
- * @returns {ArrayBuffer} Returns the cloned array buffer.
10325
- */
10326
- function cloneArrayBuffer(arrayBuffer) {
10327
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
10328
- new Uint8Array(result).set(new Uint8Array(arrayBuffer));
10329
- return result;
10330
- }
10331
-
10332
- module.exports = cloneArrayBuffer;
10333
-
10334
-
10335
- /***/ }),
10336
- /* 193 */
10337
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10338
-
10339
- "use strict";
10340
- /* unused harmony export Checkboard */
10341
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
10342
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
10343
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss__ = __webpack_require__(8);
10344
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_reactcss__);
10345
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__helpers_checkboard__ = __webpack_require__(868);
10346
- 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; };
10347
-
10348
-
10349
-
10350
-
10351
-
10352
- var Checkboard = function Checkboard(_ref) {
10353
- var white = _ref.white,
10354
- grey = _ref.grey,
10355
- size = _ref.size,
10356
- renderers = _ref.renderers,
10357
- borderRadius = _ref.borderRadius,
10358
- boxShadow = _ref.boxShadow,
10359
- children = _ref.children;
10360
-
10361
- var styles = __WEBPACK_IMPORTED_MODULE_1_reactcss___default()({
10362
- 'default': {
10363
- grid: {
10364
- borderRadius: borderRadius,
10365
- boxShadow: boxShadow,
10366
- absolute: '0px 0px 0px 0px',
10367
- background: 'url(' + __WEBPACK_IMPORTED_MODULE_2__helpers_checkboard__["a" /* get */](white, grey, size, renderers.canvas) + ') center left'
10368
- }
10369
- }
10370
- });
10371
- return Object(__WEBPACK_IMPORTED_MODULE_0_react__["isValidElement"])(children) ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.cloneElement(children, _extends({}, children.props, { style: _extends({}, children.props.style, styles.grid) })) : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.grid });
10372
- };
10373
-
10374
- Checkboard.defaultProps = {
10375
- size: 8,
10376
- white: 'transparent',
10377
- grey: 'rgba(0,0,0,.08)',
10378
- renderers: {}
10379
- };
10380
-
10381
- /* harmony default export */ __webpack_exports__["a"] = (Checkboard);
10382
-
10383
- /***/ }),
10384
- /* 194 */
10385
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10386
-
10387
- "use strict";
10388
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListCache_js__ = __webpack_require__(119);
10389
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__stackClear_js__ = __webpack_require__(879);
10390
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__stackDelete_js__ = __webpack_require__(880);
10391
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__stackGet_js__ = __webpack_require__(881);
10392
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__stackHas_js__ = __webpack_require__(882);
10393
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__stackSet_js__ = __webpack_require__(883);
10394
-
10395
-
10396
-
10397
-
10398
-
10399
-
10400
-
10401
- /**
10402
- * Creates a stack cache object to store key-value pairs.
10403
- *
10404
- * @private
10405
- * @constructor
10406
- * @param {Array} [entries] The key-value pairs to cache.
10407
- */
10408
- function Stack(entries) {
10409
- var data = this.__data__ = new __WEBPACK_IMPORTED_MODULE_0__ListCache_js__["a" /* default */](entries);
10410
- this.size = data.size;
10411
- }
10412
-
10413
- // Add methods to `Stack`.
10414
- Stack.prototype.clear = __WEBPACK_IMPORTED_MODULE_1__stackClear_js__["a" /* default */];
10415
- Stack.prototype['delete'] = __WEBPACK_IMPORTED_MODULE_2__stackDelete_js__["a" /* default */];
10416
- Stack.prototype.get = __WEBPACK_IMPORTED_MODULE_3__stackGet_js__["a" /* default */];
10417
- Stack.prototype.has = __WEBPACK_IMPORTED_MODULE_4__stackHas_js__["a" /* default */];
10418
- Stack.prototype.set = __WEBPACK_IMPORTED_MODULE_5__stackSet_js__["a" /* default */];
10419
-
10420
- /* harmony default export */ __webpack_exports__["a"] = (Stack);
10421
-
10422
-
10423
- /***/ }),
10424
- /* 195 */
10425
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10426
-
10427
- "use strict";
10428
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getNative_js__ = __webpack_require__(56);
10429
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__root_js__ = __webpack_require__(30);
10430
-
10431
-
10432
-
10433
- /* Built-in method references that are verified to be native. */
10434
- var Map = Object(__WEBPACK_IMPORTED_MODULE_0__getNative_js__["a" /* default */])(__WEBPACK_IMPORTED_MODULE_1__root_js__["a" /* default */], 'Map');
10435
-
10436
- /* harmony default export */ __webpack_exports__["a"] = (Map);
10437
-
10438
-
10439
- /***/ }),
10440
- /* 196 */
10441
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10442
-
10443
- "use strict";
10444
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__ = __webpack_require__(69);
10445
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isObject_js__ = __webpack_require__(31);
10446
-
10447
-
10448
-
10449
- /** `Object#toString` result references. */
10450
- var asyncTag = '[object AsyncFunction]',
10451
- funcTag = '[object Function]',
10452
- genTag = '[object GeneratorFunction]',
10453
- proxyTag = '[object Proxy]';
10454
-
10455
- /**
10456
- * Checks if `value` is classified as a `Function` object.
10457
- *
10458
- * @static
10459
- * @memberOf _
10460
- * @since 0.1.0
10461
- * @category Lang
10462
- * @param {*} value The value to check.
10463
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
10464
- * @example
10465
- *
10466
- * _.isFunction(_);
10467
- * // => true
10468
- *
10469
- * _.isFunction(/abc/);
10470
- * // => false
10471
- */
10472
- function isFunction(value) {
10473
- if (!Object(__WEBPACK_IMPORTED_MODULE_1__isObject_js__["a" /* default */])(value)) {
10474
- return false;
10475
- }
10476
- // The use of `Object#toString` avoids issues with the `typeof` operator
10477
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
10478
- var tag = Object(__WEBPACK_IMPORTED_MODULE_0__baseGetTag_js__["a" /* default */])(value);
10479
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
10480
- }
10481
-
10482
- /* harmony default export */ __webpack_exports__["a"] = (isFunction);
10483
-
10484
-
10485
- /***/ }),
10486
- /* 197 */
10487
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10488
-
10489
- "use strict";
10490
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__mapCacheClear_js__ = __webpack_require__(890);
10491
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mapCacheDelete_js__ = __webpack_require__(897);
10492
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__mapCacheGet_js__ = __webpack_require__(899);
10493
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__mapCacheHas_js__ = __webpack_require__(900);
10494
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__mapCacheSet_js__ = __webpack_require__(901);
10495
-
10496
-
10497
-
10498
-
10499
-
10500
-
10501
- /**
10502
- * Creates a map cache object to store key-value pairs.
10503
- *
10504
- * @private
10505
- * @constructor
10506
- * @param {Array} [entries] The key-value pairs to cache.
10507
- */
10508
- function MapCache(entries) {
10509
- var index = -1,
10510
- length = entries == null ? 0 : entries.length;
10511
-
10512
- this.clear();
10513
- while (++index < length) {
10514
- var entry = entries[index];
10515
- this.set(entry[0], entry[1]);
10516
- }
10517
- }
10518
-
10519
- // Add methods to `MapCache`.
10520
- MapCache.prototype.clear = __WEBPACK_IMPORTED_MODULE_0__mapCacheClear_js__["a" /* default */];
10521
- MapCache.prototype['delete'] = __WEBPACK_IMPORTED_MODULE_1__mapCacheDelete_js__["a" /* default */];
10522
- MapCache.prototype.get = __WEBPACK_IMPORTED_MODULE_2__mapCacheGet_js__["a" /* default */];
10523
- MapCache.prototype.has = __WEBPACK_IMPORTED_MODULE_3__mapCacheHas_js__["a" /* default */];
10524
- MapCache.prototype.set = __WEBPACK_IMPORTED_MODULE_4__mapCacheSet_js__["a" /* default */];
10525
-
10526
- /* harmony default export */ __webpack_exports__["a"] = (MapCache);
10527
-
10528
-
10529
- /***/ }),
10530
- /* 198 */
10531
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10532
-
10533
- "use strict";
10534
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__defineProperty_js__ = __webpack_require__(404);
10535
-
10536
-
10537
- /**
10538
- * The base implementation of `assignValue` and `assignMergeValue` without
10539
- * value checks.
10540
- *
10541
- * @private
10542
- * @param {Object} object The object to modify.
10543
- * @param {string} key The key of the property to assign.
10544
- * @param {*} value The value to assign.
10545
- */
10546
- function baseAssignValue(object, key, value) {
10547
- if (key == '__proto__' && __WEBPACK_IMPORTED_MODULE_0__defineProperty_js__["a" /* default */]) {
10548
- Object(__WEBPACK_IMPORTED_MODULE_0__defineProperty_js__["a" /* default */])(object, key, {
10549
- 'configurable': true,
10550
- 'enumerable': true,
10551
- 'value': value,
10552
- 'writable': true
10553
- });
10554
- } else {
10555
- object[key] = value;
10556
- }
10557
- }
10558
-
10559
- /* harmony default export */ __webpack_exports__["a"] = (baseAssignValue);
10560
-
10561
-
10562
- /***/ }),
10563
- /* 199 */
10564
- /***/ (function(module, exports) {
10565
-
10566
- module.exports = function(originalModule) {
10567
- if(!originalModule.webpackPolyfill) {
10568
- var module = Object.create(originalModule);
10569
- // module.parent = undefined by default
10570
- if(!module.children) module.children = [];
10571
- Object.defineProperty(module, "loaded", {
10572
- enumerable: true,
10573
- get: function() {
10574
- return module.l;
10575
- }
10576
- });
10577
- Object.defineProperty(module, "id", {
10578
- enumerable: true,
10579
- get: function() {
10580
- return module.i;
10581
  }
10582
- });
10583
- Object.defineProperty(module, "exports", {
10584
- enumerable: true,
10585
- });
10586
- module.webpackPolyfill = 1;
10587
  }
10588
- return module;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10589
  };
10590
-
10591
-
10592
- /***/ }),
10593
- /* 200 */
10594
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10595
-
10596
- "use strict";
10597
- /** Used for built-in method references. */
10598
- var objectProto = Object.prototype;
10599
-
10600
- /**
10601
- * Checks if `value` is likely a prototype object.
10602
- *
10603
- * @private
10604
- * @param {*} value The value to check.
10605
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
10606
- */
10607
- function isPrototype(value) {
10608
- var Ctor = value && value.constructor,
10609
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
10610
-
10611
- return value === proto;
10612
- }
10613
-
10614
- /* harmony default export */ __webpack_exports__["a"] = (isPrototype);
10615
-
10616
-
10617
- /***/ }),
10618
- /* 201 */
10619
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10620
-
10621
- "use strict";
10622
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseIsArguments_js__ = __webpack_require__(910);
10623
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__ = __webpack_require__(57);
10624
-
10625
-
10626
-
10627
- /** Used for built-in method references. */
10628
- var objectProto = Object.prototype;
10629
-
10630
- /** Used to check objects for own properties. */
10631
- var hasOwnProperty = objectProto.hasOwnProperty;
10632
-
10633
- /** Built-in value references. */
10634
- var propertyIsEnumerable = objectProto.propertyIsEnumerable;
10635
-
10636
- /**
10637
- * Checks if `value` is likely an `arguments` object.
10638
- *
10639
- * @static
10640
- * @memberOf _
10641
- * @since 0.1.0
10642
- * @category Lang
10643
- * @param {*} value The value to check.
10644
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
10645
- * else `false`.
10646
- * @example
10647
- *
10648
- * _.isArguments(function() { return arguments; }());
10649
- * // => true
10650
- *
10651
- * _.isArguments([1, 2, 3]);
10652
- * // => false
10653
- */
10654
- var isArguments = Object(__WEBPACK_IMPORTED_MODULE_0__baseIsArguments_js__["a" /* default */])(function() { return arguments; }()) ? __WEBPACK_IMPORTED_MODULE_0__baseIsArguments_js__["a" /* default */] : function(value) {
10655
- return Object(__WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__["a" /* default */])(value) && hasOwnProperty.call(value, 'callee') &&
10656
- !propertyIsEnumerable.call(value, 'callee');
10657
- };
10658
-
10659
- /* harmony default export */ __webpack_exports__["a"] = (isArguments);
10660
-
10661
-
10662
- /***/ }),
10663
- /* 202 */
10664
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10665
-
10666
- "use strict";
10667
- /** Used as references for various `Number` constants. */
10668
- var MAX_SAFE_INTEGER = 9007199254740991;
10669
-
10670
- /**
10671
- * Checks if `value` is a valid array-like length.
10672
- *
10673
- * **Note:** This method is loosely based on
10674
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
10675
- *
10676
- * @static
10677
- * @memberOf _
10678
- * @since 4.0.0
10679
- * @category Lang
10680
- * @param {*} value The value to check.
10681
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
10682
- * @example
10683
- *
10684
- * _.isLength(3);
10685
- * // => true
10686
- *
10687
- * _.isLength(Number.MIN_VALUE);
10688
- * // => false
10689
- *
10690
- * _.isLength(Infinity);
10691
- * // => false
10692
- *
10693
- * _.isLength('3');
10694
- * // => false
10695
- */
10696
- function isLength(value) {
10697
- return typeof value == 'number' &&
10698
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
10699
- }
10700
-
10701
- /* harmony default export */ __webpack_exports__["a"] = (isLength);
10702
-
10703
-
10704
- /***/ }),
10705
- /* 203 */
10706
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10707
-
10708
- "use strict";
10709
- /* WEBPACK VAR INJECTION */(function(module) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__root_js__ = __webpack_require__(30);
10710
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__stubFalse_js__ = __webpack_require__(912);
10711
-
10712
-
10713
-
10714
- /** Detect free variable `exports`. */
10715
- var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
10716
-
10717
- /** Detect free variable `module`. */
10718
- var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
10719
-
10720
- /** Detect the popular CommonJS extension `module.exports`. */
10721
- var moduleExports = freeModule && freeModule.exports === freeExports;
10722
-
10723
- /** Built-in value references. */
10724
- var Buffer = moduleExports ? __WEBPACK_IMPORTED_MODULE_0__root_js__["a" /* default */].Buffer : undefined;
10725
-
10726
- /* Built-in method references for those with the same name as other `lodash` methods. */
10727
- var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
10728
-
10729
- /**
10730
- * Checks if `value` is a buffer.
10731
- *
10732
- * @static
10733
- * @memberOf _
10734
- * @since 4.3.0
10735
- * @category Lang
10736
- * @param {*} value The value to check.
10737
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
10738
- * @example
10739
- *
10740
- * _.isBuffer(new Buffer(2));
10741
- * // => true
10742
- *
10743
- * _.isBuffer(new Uint8Array(2));
10744
- * // => false
10745
- */
10746
- var isBuffer = nativeIsBuffer || __WEBPACK_IMPORTED_MODULE_1__stubFalse_js__["a" /* default */];
10747
-
10748
- /* harmony default export */ __webpack_exports__["a"] = (isBuffer);
10749
-
10750
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(199)(module)))
10751
-
10752
- /***/ }),
10753
- /* 204 */
10754
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10755
-
10756
- "use strict";
10757
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseIsTypedArray_js__ = __webpack_require__(914);
10758
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__baseUnary_js__ = __webpack_require__(915);
10759
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__nodeUtil_js__ = __webpack_require__(916);
10760
-
10761
-
10762
-
10763
-
10764
- /* Node.js helper references. */
10765
- var nodeIsTypedArray = __WEBPACK_IMPORTED_MODULE_2__nodeUtil_js__["a" /* default */] && __WEBPACK_IMPORTED_MODULE_2__nodeUtil_js__["a" /* default */].isTypedArray;
10766
-
10767
- /**
10768
- * Checks if `value` is classified as a typed array.
10769
- *
10770
- * @static
10771
- * @memberOf _
10772
- * @since 3.0.0
10773
- * @category Lang
10774
- * @param {*} value The value to check.
10775
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
10776
- * @example
10777
- *
10778
- * _.isTypedArray(new Uint8Array);
10779
- * // => true
10780
- *
10781
- * _.isTypedArray([]);
10782
- * // => false
10783
- */
10784
- var isTypedArray = nodeIsTypedArray ? Object(__WEBPACK_IMPORTED_MODULE_1__baseUnary_js__["a" /* default */])(nodeIsTypedArray) : __WEBPACK_IMPORTED_MODULE_0__baseIsTypedArray_js__["a" /* default */];
10785
-
10786
- /* harmony default export */ __webpack_exports__["a"] = (isTypedArray);
10787
-
10788
-
10789
- /***/ }),
10790
- /* 205 */
10791
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10792
-
10793
- "use strict";
10794
- /** Used as references for various `Number` constants. */
10795
- var MAX_SAFE_INTEGER = 9007199254740991;
10796
-
10797
- /** Used to detect unsigned integer values. */
10798
- var reIsUint = /^(?:0|[1-9]\d*)$/;
10799
-
10800
- /**
10801
- * Checks if `value` is a valid array-like index.
10802
- *
10803
- * @private
10804
- * @param {*} value The value to check.
10805
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
10806
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
10807
- */
10808
- function isIndex(value, length) {
10809
- var type = typeof value;
10810
- length = length == null ? MAX_SAFE_INTEGER : length;
10811
-
10812
- return !!length &&
10813
- (type == 'number' ||
10814
- (type != 'symbol' && reIsUint.test(value))) &&
10815
- (value > -1 && value % 1 == 0 && value < length);
10816
- }
10817
-
10818
- /* harmony default export */ __webpack_exports__["a"] = (isIndex);
10819
-
10820
-
10821
- /***/ }),
10822
- /* 206 */
10823
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10824
-
10825
- "use strict";
10826
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayLikeKeys_js__ = __webpack_require__(411);
10827
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__baseKeys_js__ = __webpack_require__(941);
10828
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__isArrayLike_js__ = __webpack_require__(70);
10829
-
10830
-
10831
-
10832
-
10833
- /**
10834
- * Creates an array of the own enumerable property names of `object`.
10835
- *
10836
- * **Note:** Non-object values are coerced to objects. See the
10837
- * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
10838
- * for more details.
10839
- *
10840
- * @static
10841
- * @since 0.1.0
10842
- * @memberOf _
10843
- * @category Object
10844
- * @param {Object} object The object to query.
10845
- * @returns {Array} Returns the array of property names.
10846
- * @example
10847
- *
10848
- * function Foo() {
10849
- * this.a = 1;
10850
- * this.b = 2;
10851
- * }
10852
- *
10853
- * Foo.prototype.c = 3;
10854
- *
10855
- * _.keys(new Foo);
10856
- * // => ['a', 'b'] (iteration order is not guaranteed)
10857
- *
10858
- * _.keys('hi');
10859
- * // => ['0', '1']
10860
- */
10861
- function keys(object) {
10862
- return Object(__WEBPACK_IMPORTED_MODULE_2__isArrayLike_js__["a" /* default */])(object) ? Object(__WEBPACK_IMPORTED_MODULE_0__arrayLikeKeys_js__["a" /* default */])(object) : Object(__WEBPACK_IMPORTED_MODULE_1__baseKeys_js__["a" /* default */])(object);
10863
- }
10864
-
10865
- /* harmony default export */ __webpack_exports__["a"] = (keys);
10866
-
10867
-
10868
- /***/ }),
10869
- /* 207 */
10870
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10871
-
10872
- "use strict";
10873
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isArray_js__ = __webpack_require__(32);
10874
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isSymbol_js__ = __webpack_require__(125);
10875
-
10876
-
10877
-
10878
- /** Used to match property names within property paths. */
10879
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
10880
- reIsPlainProp = /^\w*$/;
10881
-
10882
- /**
10883
- * Checks if `value` is a property name and not a property path.
10884
- *
10885
- * @private
10886
- * @param {*} value The value to check.
10887
- * @param {Object} [object] The object to query keys on.
10888
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
10889
- */
10890
- function isKey(value, object) {
10891
- if (Object(__WEBPACK_IMPORTED_MODULE_0__isArray_js__["a" /* default */])(value)) {
10892
- return false;
10893
- }
10894
- var type = typeof value;
10895
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
10896
- value == null || Object(__WEBPACK_IMPORTED_MODULE_1__isSymbol_js__["a" /* default */])(value)) {
10897
- return true;
10898
- }
10899
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
10900
- (object != null && value in Object(object));
10901
- }
10902
-
10903
- /* harmony default export */ __webpack_exports__["a"] = (isKey);
10904
-
10905
-
10906
- /***/ }),
10907
- /* 208 */
10908
- /***/ (function(module, exports, __webpack_require__) {
10909
-
10910
- "use strict";
10911
- /* WEBPACK VAR INJECTION */(function(process) {
10912
-
10913
- if (process.env.NODE_ENV === 'production') {
10914
- module.exports = __webpack_require__(429);
10915
- } else {
10916
- module.exports = __webpack_require__(430);
10917
- }
10918
-
10919
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
10920
-
10921
- /***/ }),
10922
- /* 209 */
10923
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10924
-
10925
- "use strict";
10926
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MemoryRouter; });
10927
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return Prompt; });
10928
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return Redirect; });
10929
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return Route; });
10930
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return Router; });
10931
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return StaticRouter; });
10932
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return Switch; });
10933
- /* unused harmony export __HistoryContext */
10934
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return context; });
10935
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return generatePath; });
10936
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return matchPath; });
10937
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return useHistory; });
10938
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return useLocation; });
10939
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return useParams; });
10940
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return useRouteMatch; });
10941
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return withRouter; });
10942
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(34);
10943
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
10944
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
10945
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(2);
10946
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__);
10947
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_history__ = __webpack_require__(210);
10948
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_tiny_warning__ = __webpack_require__(48);
10949
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_mini_create_react_context__ = __webpack_require__(441);
10950
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_tiny_invariant__ = __webpack_require__(129);
10951
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
10952
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_path_to_regexp__ = __webpack_require__(442);
10953
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_path_to_regexp___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_path_to_regexp__);
10954
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react_is__ = __webpack_require__(16);
10955
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react_is___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_react_is__);
10956
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(43);
10957
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_hoist_non_react_statics__ = __webpack_require__(71);
10958
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_hoist_non_react_statics___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_hoist_non_react_statics__);
10959
-
10960
-
10961
-
10962
-
10963
-
10964
-
10965
-
10966
-
10967
-
10968
-
10969
-
10970
-
10971
-
10972
- // TODO: Replace with React.createContext once we can assume React 16+
10973
-
10974
- var createNamedContext = function createNamedContext(name) {
10975
- var context = Object(__WEBPACK_IMPORTED_MODULE_5_mini_create_react_context__["a" /* default */])();
10976
- context.displayName = name;
10977
- return context;
10978
- };
10979
-
10980
- var historyContext =
10981
- /*#__PURE__*/
10982
- createNamedContext("Router-History");
10983
-
10984
- // TODO: Replace with React.createContext once we can assume React 16+
10985
-
10986
- var createNamedContext$1 = function createNamedContext(name) {
10987
- var context = Object(__WEBPACK_IMPORTED_MODULE_5_mini_create_react_context__["a" /* default */])();
10988
- context.displayName = name;
10989
- return context;
10990
- };
10991
-
10992
- var context =
10993
- /*#__PURE__*/
10994
- createNamedContext$1("Router");
10995
-
10996
- /**
10997
- * The public API for putting history on context.
10998
- */
10999
-
11000
- var Router =
11001
- /*#__PURE__*/
11002
- function (_React$Component) {
11003
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(Router, _React$Component);
11004
-
11005
- Router.computeRootMatch = function computeRootMatch(pathname) {
11006
- return {
11007
- path: "/",
11008
- url: "/",
11009
- params: {},
11010
- isExact: pathname === "/"
11011
- };
11012
- };
11013
-
11014
- function Router(props) {
11015
- var _this;
11016
-
11017
- _this = _React$Component.call(this, props) || this;
11018
- _this.state = {
11019
- location: props.history.location
11020
- }; // This is a bit of a hack. We have to start listening for location
11021
- // changes here in the constructor in case there are any <Redirect>s
11022
- // on the initial render. If there are, they will replace/push when
11023
- // they mount and since cDM fires in children before parents, we may
11024
- // get a new location before the <Router> is mounted.
11025
-
11026
- _this._isMounted = false;
11027
- _this._pendingLocation = null;
11028
-
11029
- if (!props.staticContext) {
11030
- _this.unlisten = props.history.listen(function (location) {
11031
- if (_this._isMounted) {
11032
- _this.setState({
11033
- location: location
11034
- });
11035
- } else {
11036
- _this._pendingLocation = location;
11037
- }
11038
- });
11039
- }
11040
-
11041
- return _this;
11042
- }
11043
-
11044
- var _proto = Router.prototype;
11045
-
11046
- _proto.componentDidMount = function componentDidMount() {
11047
- this._isMounted = true;
11048
-
11049
- if (this._pendingLocation) {
11050
- this.setState({
11051
- location: this._pendingLocation
11052
- });
11053
- }
11054
- };
11055
-
11056
- _proto.componentWillUnmount = function componentWillUnmount() {
11057
- if (this.unlisten) this.unlisten();
11058
- };
11059
-
11060
- _proto.render = function render() {
11061
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(context.Provider, {
11062
- value: {
11063
- history: this.props.history,
11064
- location: this.state.location,
11065
- match: Router.computeRootMatch(this.state.location.pathname),
11066
- staticContext: this.props.staticContext
11067
- }
11068
- }, __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(historyContext.Provider, {
11069
- children: this.props.children || null,
11070
- value: this.props.history
11071
- }));
11072
- };
11073
-
11074
- return Router;
11075
- }(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
11076
-
11077
- if (process.env.NODE_ENV !== "production") {
11078
- Router.propTypes = {
11079
- children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node,
11080
- history: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object.isRequired,
11081
- staticContext: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object
11082
- };
11083
-
11084
- Router.prototype.componentDidUpdate = function (prevProps) {
11085
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(prevProps.history === this.props.history, "You cannot change <Router history>") : void 0;
11086
- };
11087
- }
11088
-
11089
- /**
11090
- * The public API for a <Router> that stores location in memory.
11091
- */
11092
-
11093
- var MemoryRouter =
11094
- /*#__PURE__*/
11095
- function (_React$Component) {
11096
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(MemoryRouter, _React$Component);
11097
-
11098
- function MemoryRouter() {
11099
- var _this;
11100
-
11101
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
11102
- args[_key] = arguments[_key];
11103
- }
11104
-
11105
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
11106
- _this.history = Object(__WEBPACK_IMPORTED_MODULE_3_history__["d" /* createMemoryHistory */])(_this.props);
11107
- return _this;
11108
- }
11109
-
11110
- var _proto = MemoryRouter.prototype;
11111
-
11112
- _proto.render = function render() {
11113
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(Router, {
11114
- history: this.history,
11115
- children: this.props.children
11116
- });
11117
- };
11118
-
11119
- return MemoryRouter;
11120
- }(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
11121
-
11122
- if (process.env.NODE_ENV !== "production") {
11123
- MemoryRouter.propTypes = {
11124
- initialEntries: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.array,
11125
- initialIndex: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number,
11126
- getUserConfirmation: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
11127
- keyLength: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number,
11128
- children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node
11129
- };
11130
-
11131
- MemoryRouter.prototype.componentDidMount = function () {
11132
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(!this.props.history, "<MemoryRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { MemoryRouter as Router }`.") : void 0;
11133
- };
11134
- }
11135
-
11136
- var Lifecycle =
11137
- /*#__PURE__*/
11138
- function (_React$Component) {
11139
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(Lifecycle, _React$Component);
11140
-
11141
- function Lifecycle() {
11142
- return _React$Component.apply(this, arguments) || this;
11143
- }
11144
-
11145
- var _proto = Lifecycle.prototype;
11146
-
11147
- _proto.componentDidMount = function componentDidMount() {
11148
- if (this.props.onMount) this.props.onMount.call(this, this);
11149
- };
11150
-
11151
- _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
11152
- if (this.props.onUpdate) this.props.onUpdate.call(this, this, prevProps);
11153
- };
11154
-
11155
- _proto.componentWillUnmount = function componentWillUnmount() {
11156
- if (this.props.onUnmount) this.props.onUnmount.call(this, this);
11157
- };
11158
-
11159
- _proto.render = function render() {
11160
- return null;
11161
- };
11162
-
11163
- return Lifecycle;
11164
- }(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
11165
-
11166
- /**
11167
- * The public API for prompting the user before navigating away from a screen.
11168
- */
11169
-
11170
- function Prompt(_ref) {
11171
- var message = _ref.message,
11172
- _ref$when = _ref.when,
11173
- when = _ref$when === void 0 ? true : _ref$when;
11174
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(context.Consumer, null, function (context) {
11175
- !context ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You should not use <Prompt> outside a <Router>") : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) : void 0;
11176
- if (!when || context.staticContext) return null;
11177
- var method = context.history.block;
11178
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(Lifecycle, {
11179
- onMount: function onMount(self) {
11180
- self.release = method(message);
11181
- },
11182
- onUpdate: function onUpdate(self, prevProps) {
11183
- if (prevProps.message !== message) {
11184
- self.release();
11185
- self.release = method(message);
11186
- }
11187
- },
11188
- onUnmount: function onUnmount(self) {
11189
- self.release();
11190
- },
11191
- message: message
11192
- });
11193
- });
11194
- }
11195
-
11196
- if (process.env.NODE_ENV !== "production") {
11197
- var messageType = __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string]);
11198
- Prompt.propTypes = {
11199
- when: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
11200
- message: messageType.isRequired
11201
- };
11202
- }
11203
-
11204
- var cache = {};
11205
- var cacheLimit = 10000;
11206
- var cacheCount = 0;
11207
-
11208
- function compilePath(path) {
11209
- if (cache[path]) return cache[path];
11210
- var generator = __WEBPACK_IMPORTED_MODULE_8_path_to_regexp___default.a.compile(path);
11211
-
11212
- if (cacheCount < cacheLimit) {
11213
- cache[path] = generator;
11214
- cacheCount++;
11215
- }
11216
-
11217
- return generator;
11218
- }
11219
- /**
11220
- * Public API for generating a URL pathname from a path and parameters.
11221
- */
11222
-
11223
-
11224
- function generatePath(path, params) {
11225
- if (path === void 0) {
11226
- path = "/";
11227
- }
11228
-
11229
- if (params === void 0) {
11230
- params = {};
11231
- }
11232
-
11233
- return path === "/" ? path : compilePath(path)(params, {
11234
- pretty: true
11235
- });
11236
- }
11237
-
11238
- /**
11239
- * The public API for navigating programmatically with a component.
11240
- */
11241
-
11242
- function Redirect(_ref) {
11243
- var computedMatch = _ref.computedMatch,
11244
- to = _ref.to,
11245
- _ref$push = _ref.push,
11246
- push = _ref$push === void 0 ? false : _ref$push;
11247
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(context.Consumer, null, function (context) {
11248
- !context ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You should not use <Redirect> outside a <Router>") : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) : void 0;
11249
- var history = context.history,
11250
- staticContext = context.staticContext;
11251
- var method = push ? history.push : history.replace;
11252
- var location = Object(__WEBPACK_IMPORTED_MODULE_3_history__["c" /* createLocation */])(computedMatch ? typeof to === "string" ? generatePath(to, computedMatch.params) : Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_extends__["a" /* default */])({}, to, {
11253
- pathname: generatePath(to.pathname, computedMatch.params)
11254
- }) : to); // When rendering in a static context,
11255
- // set the new location immediately.
11256
-
11257
- if (staticContext) {
11258
- method(location);
11259
- return null;
11260
- }
11261
-
11262
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(Lifecycle, {
11263
- onMount: function onMount() {
11264
- method(location);
11265
- },
11266
- onUpdate: function onUpdate(self, prevProps) {
11267
- var prevLocation = Object(__WEBPACK_IMPORTED_MODULE_3_history__["c" /* createLocation */])(prevProps.to);
11268
-
11269
- if (!Object(__WEBPACK_IMPORTED_MODULE_3_history__["f" /* locationsAreEqual */])(prevLocation, Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_extends__["a" /* default */])({}, location, {
11270
- key: prevLocation.key
11271
- }))) {
11272
- method(location);
11273
- }
11274
- },
11275
- to: to
11276
- });
11277
- });
11278
- }
11279
-
11280
- if (process.env.NODE_ENV !== "production") {
11281
- Redirect.propTypes = {
11282
- push: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
11283
- from: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string,
11284
- to: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object]).isRequired
11285
- };
11286
- }
11287
-
11288
- var cache$1 = {};
11289
- var cacheLimit$1 = 10000;
11290
- var cacheCount$1 = 0;
11291
-
11292
- function compilePath$1(path, options) {
11293
- var cacheKey = "" + options.end + options.strict + options.sensitive;
11294
- var pathCache = cache$1[cacheKey] || (cache$1[cacheKey] = {});
11295
- if (pathCache[path]) return pathCache[path];
11296
- var keys = [];
11297
- var regexp = __WEBPACK_IMPORTED_MODULE_8_path_to_regexp___default()(path, keys, options);
11298
- var result = {
11299
- regexp: regexp,
11300
- keys: keys
11301
- };
11302
-
11303
- if (cacheCount$1 < cacheLimit$1) {
11304
- pathCache[path] = result;
11305
- cacheCount$1++;
11306
- }
11307
-
11308
- return result;
11309
- }
11310
- /**
11311
- * Public API for matching a URL pathname to a path.
11312
- */
11313
-
11314
-
11315
- function matchPath(pathname, options) {
11316
- if (options === void 0) {
11317
- options = {};
11318
- }
11319
-
11320
- if (typeof options === "string" || Array.isArray(options)) {
11321
- options = {
11322
- path: options
11323
- };
11324
- }
11325
-
11326
- var _options = options,
11327
- path = _options.path,
11328
- _options$exact = _options.exact,
11329
- exact = _options$exact === void 0 ? false : _options$exact,
11330
- _options$strict = _options.strict,
11331
- strict = _options$strict === void 0 ? false : _options$strict,
11332
- _options$sensitive = _options.sensitive,
11333
- sensitive = _options$sensitive === void 0 ? false : _options$sensitive;
11334
- var paths = [].concat(path);
11335
- return paths.reduce(function (matched, path) {
11336
- if (!path && path !== "") return null;
11337
- if (matched) return matched;
11338
-
11339
- var _compilePath = compilePath$1(path, {
11340
- end: exact,
11341
- strict: strict,
11342
- sensitive: sensitive
11343
- }),
11344
- regexp = _compilePath.regexp,
11345
- keys = _compilePath.keys;
11346
-
11347
- var match = regexp.exec(pathname);
11348
- if (!match) return null;
11349
- var url = match[0],
11350
- values = match.slice(1);
11351
- var isExact = pathname === url;
11352
- if (exact && !isExact) return null;
11353
- return {
11354
- path: path,
11355
- // the path used to match
11356
- url: path === "/" && url === "" ? "/" : url,
11357
- // the matched portion of the URL
11358
- isExact: isExact,
11359
- // whether or not we matched exactly
11360
- params: keys.reduce(function (memo, key, index) {
11361
- memo[key.name] = values[index];
11362
- return memo;
11363
- }, {})
11364
- };
11365
- }, null);
11366
- }
11367
-
11368
- function isEmptyChildren(children) {
11369
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.Children.count(children) === 0;
11370
- }
11371
-
11372
- function evalChildrenDev(children, props, path) {
11373
- var value = children(props);
11374
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(value !== undefined, "You returned `undefined` from the `children` function of " + ("<Route" + (path ? " path=\"" + path + "\"" : "") + ">, but you ") + "should have returned a React element or `null`") : void 0;
11375
- return value || null;
11376
- }
11377
- /**
11378
- * The public API for matching a single path and rendering.
11379
- */
11380
-
11381
-
11382
- var Route =
11383
- /*#__PURE__*/
11384
- function (_React$Component) {
11385
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(Route, _React$Component);
11386
-
11387
- function Route() {
11388
- return _React$Component.apply(this, arguments) || this;
11389
- }
11390
-
11391
- var _proto = Route.prototype;
11392
-
11393
- _proto.render = function render() {
11394
- var _this = this;
11395
-
11396
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(context.Consumer, null, function (context$1) {
11397
- !context$1 ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You should not use <Route> outside a <Router>") : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) : void 0;
11398
- var location = _this.props.location || context$1.location;
11399
- var match = _this.props.computedMatch ? _this.props.computedMatch // <Switch> already computed the match for us
11400
- : _this.props.path ? matchPath(location.pathname, _this.props) : context$1.match;
11401
-
11402
- var props = Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_extends__["a" /* default */])({}, context$1, {
11403
- location: location,
11404
- match: match
11405
- });
11406
-
11407
- var _this$props = _this.props,
11408
- children = _this$props.children,
11409
- component = _this$props.component,
11410
- render = _this$props.render; // Preact uses an empty array as children by
11411
- // default, so use null if that's the case.
11412
-
11413
- if (Array.isArray(children) && children.length === 0) {
11414
- children = null;
11415
- }
11416
-
11417
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(context.Provider, {
11418
- value: props
11419
- }, props.match ? children ? typeof children === "function" ? process.env.NODE_ENV !== "production" ? evalChildrenDev(children, props, _this.props.path) : children(props) : children : component ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(component, props) : render ? render(props) : null : typeof children === "function" ? process.env.NODE_ENV !== "production" ? evalChildrenDev(children, props, _this.props.path) : children(props) : null);
11420
- });
11421
- };
11422
-
11423
- return Route;
11424
- }(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
11425
-
11426
- if (process.env.NODE_ENV !== "production") {
11427
- Route.propTypes = {
11428
- children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node]),
11429
- component: function component(props, propName) {
11430
- if (props[propName] && !Object(__WEBPACK_IMPORTED_MODULE_9_react_is__["isValidElementType"])(props[propName])) {
11431
- return new Error("Invalid prop 'component' supplied to 'Route': the prop is not a valid React component");
11432
- }
11433
- },
11434
- exact: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
11435
- location: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object,
11436
- path: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string)]),
11437
- render: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
11438
- sensitive: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
11439
- strict: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool
11440
- };
11441
-
11442
- Route.prototype.componentDidMount = function () {
11443
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(!(this.props.children && !isEmptyChildren(this.props.children) && this.props.component), "You should not use <Route component> and <Route children> in the same route; <Route component> will be ignored") : void 0;
11444
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(!(this.props.children && !isEmptyChildren(this.props.children) && this.props.render), "You should not use <Route render> and <Route children> in the same route; <Route render> will be ignored") : void 0;
11445
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* 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") : void 0;
11446
- };
11447
-
11448
- Route.prototype.componentDidUpdate = function (prevProps) {
11449
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(!(this.props.location && !prevProps.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.') : void 0;
11450
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(!(!this.props.location && prevProps.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.') : void 0;
11451
- };
11452
- }
11453
-
11454
- function addLeadingSlash(path) {
11455
- return path.charAt(0) === "/" ? path : "/" + path;
11456
- }
11457
-
11458
- function addBasename(basename, location) {
11459
- if (!basename) return location;
11460
- return Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_extends__["a" /* default */])({}, location, {
11461
- pathname: addLeadingSlash(basename) + location.pathname
11462
- });
11463
- }
11464
-
11465
- function stripBasename(basename, location) {
11466
- if (!basename) return location;
11467
- var base = addLeadingSlash(basename);
11468
- if (location.pathname.indexOf(base) !== 0) return location;
11469
- return Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_extends__["a" /* default */])({}, location, {
11470
- pathname: location.pathname.substr(base.length)
11471
- });
11472
- }
11473
-
11474
- function createURL(location) {
11475
- return typeof location === "string" ? location : Object(__WEBPACK_IMPORTED_MODULE_3_history__["e" /* createPath */])(location);
11476
- }
11477
-
11478
- function staticHandler(methodName) {
11479
- return function () {
11480
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You cannot %s with <StaticRouter>", methodName) : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) ;
11481
- };
11482
- }
11483
-
11484
- function noop() {}
11485
- /**
11486
- * The public top-level API for a "static" <Router>, so-called because it
11487
- * can't actually change the current location. Instead, it just records
11488
- * location changes in a context object. Useful mainly in testing and
11489
- * server-rendering scenarios.
11490
- */
11491
-
11492
-
11493
- var StaticRouter =
11494
- /*#__PURE__*/
11495
- function (_React$Component) {
11496
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(StaticRouter, _React$Component);
11497
-
11498
- function StaticRouter() {
11499
- var _this;
11500
-
11501
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
11502
- args[_key] = arguments[_key];
11503
- }
11504
-
11505
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
11506
-
11507
- _this.handlePush = function (location) {
11508
- return _this.navigateTo(location, "PUSH");
11509
- };
11510
-
11511
- _this.handleReplace = function (location) {
11512
- return _this.navigateTo(location, "REPLACE");
11513
- };
11514
-
11515
- _this.handleListen = function () {
11516
- return noop;
11517
- };
11518
-
11519
- _this.handleBlock = function () {
11520
- return noop;
11521
- };
11522
-
11523
- return _this;
11524
- }
11525
-
11526
- var _proto = StaticRouter.prototype;
11527
-
11528
- _proto.navigateTo = function navigateTo(location, action) {
11529
- var _this$props = this.props,
11530
- _this$props$basename = _this$props.basename,
11531
- basename = _this$props$basename === void 0 ? "" : _this$props$basename,
11532
- _this$props$context = _this$props.context,
11533
- context = _this$props$context === void 0 ? {} : _this$props$context;
11534
- context.action = action;
11535
- context.location = addBasename(basename, Object(__WEBPACK_IMPORTED_MODULE_3_history__["c" /* createLocation */])(location));
11536
- context.url = createURL(context.location);
11537
- };
11538
-
11539
- _proto.render = function render() {
11540
- var _this$props2 = this.props,
11541
- _this$props2$basename = _this$props2.basename,
11542
- basename = _this$props2$basename === void 0 ? "" : _this$props2$basename,
11543
- _this$props2$context = _this$props2.context,
11544
- context = _this$props2$context === void 0 ? {} : _this$props2$context,
11545
- _this$props2$location = _this$props2.location,
11546
- location = _this$props2$location === void 0 ? "/" : _this$props2$location,
11547
- rest = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_this$props2, ["basename", "context", "location"]);
11548
-
11549
- var history = {
11550
- createHref: function createHref(path) {
11551
- return addLeadingSlash(basename + createURL(path));
11552
- },
11553
- action: "POP",
11554
- location: stripBasename(basename, Object(__WEBPACK_IMPORTED_MODULE_3_history__["c" /* createLocation */])(location)),
11555
- push: this.handlePush,
11556
- replace: this.handleReplace,
11557
- go: staticHandler("go"),
11558
- goBack: staticHandler("goBack"),
11559
- goForward: staticHandler("goForward"),
11560
- listen: this.handleListen,
11561
- block: this.handleBlock
11562
- };
11563
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(Router, Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_extends__["a" /* default */])({}, rest, {
11564
- history: history,
11565
- staticContext: context
11566
- }));
11567
- };
11568
-
11569
- return StaticRouter;
11570
- }(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
11571
-
11572
- if (process.env.NODE_ENV !== "production") {
11573
- StaticRouter.propTypes = {
11574
- basename: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string,
11575
- context: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object,
11576
- location: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object])
11577
- };
11578
-
11579
- StaticRouter.prototype.componentDidMount = function () {
11580
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(!this.props.history, "<StaticRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { StaticRouter as Router }`.") : void 0;
11581
- };
11582
- }
11583
-
11584
- /**
11585
- * The public API for rendering the first <Route> that matches.
11586
- */
11587
-
11588
- var Switch =
11589
- /*#__PURE__*/
11590
- function (_React$Component) {
11591
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(Switch, _React$Component);
11592
-
11593
- function Switch() {
11594
- return _React$Component.apply(this, arguments) || this;
11595
- }
11596
-
11597
- var _proto = Switch.prototype;
11598
-
11599
- _proto.render = function render() {
11600
- var _this = this;
11601
-
11602
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(context.Consumer, null, function (context) {
11603
- !context ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You should not use <Switch> outside a <Router>") : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) : void 0;
11604
- var location = _this.props.location || context.location;
11605
- var element, match; // We use React.Children.forEach instead of React.Children.toArray().find()
11606
- // here because toArray adds keys to all child elements and we do not want
11607
- // to trigger an unmount/remount for two <Route>s that render the same
11608
- // component at different URLs.
11609
-
11610
- __WEBPACK_IMPORTED_MODULE_1_react___default.a.Children.forEach(_this.props.children, function (child) {
11611
- if (match == null && __WEBPACK_IMPORTED_MODULE_1_react___default.a.isValidElement(child)) {
11612
- element = child;
11613
- var path = child.props.path || child.props.from;
11614
- match = path ? matchPath(location.pathname, Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_extends__["a" /* default */])({}, child.props, {
11615
- path: path
11616
- })) : context.match;
11617
- }
11618
- });
11619
- return match ? __WEBPACK_IMPORTED_MODULE_1_react___default.a.cloneElement(element, {
11620
- location: location,
11621
- computedMatch: match
11622
- }) : null;
11623
- });
11624
- };
11625
-
11626
- return Switch;
11627
- }(__WEBPACK_IMPORTED_MODULE_1_react___default.a.Component);
11628
-
11629
- if (process.env.NODE_ENV !== "production") {
11630
- Switch.propTypes = {
11631
- children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node,
11632
- location: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object
11633
- };
11634
-
11635
- Switch.prototype.componentDidUpdate = function (prevProps) {
11636
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(!(this.props.location && !prevProps.location), '<Switch> 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.') : void 0;
11637
- process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_4_tiny_warning__["a" /* default */])(!(!this.props.location && prevProps.location), '<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.') : void 0;
11638
- };
11639
- }
11640
-
11641
- /**
11642
- * A public higher-order component to access the imperative API
11643
- */
11644
-
11645
- function withRouter(Component) {
11646
- var displayName = "withRouter(" + (Component.displayName || Component.name) + ")";
11647
-
11648
- var C = function C(props) {
11649
- var wrappedComponentRef = props.wrappedComponentRef,
11650
- remainingProps = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(props, ["wrappedComponentRef"]);
11651
-
11652
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(context.Consumer, null, function (context) {
11653
- !context ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You should not use <" + displayName + " /> outside a <Router>") : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) : void 0;
11654
- return __WEBPACK_IMPORTED_MODULE_1_react___default.a.createElement(Component, Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_extends__["a" /* default */])({}, remainingProps, context, {
11655
- ref: wrappedComponentRef
11656
- }));
11657
- });
11658
- };
11659
-
11660
- C.displayName = displayName;
11661
- C.WrappedComponent = Component;
11662
-
11663
- if (process.env.NODE_ENV !== "production") {
11664
- C.propTypes = {
11665
- wrappedComponentRef: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object])
11666
- };
11667
- }
11668
-
11669
- return __WEBPACK_IMPORTED_MODULE_11_hoist_non_react_statics___default()(C, Component);
11670
- }
11671
-
11672
- var useContext = __WEBPACK_IMPORTED_MODULE_1_react___default.a.useContext;
11673
- function useHistory() {
11674
- if (process.env.NODE_ENV !== "production") {
11675
- !(typeof useContext === "function") ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You must use React >= 16.8 in order to use useHistory()") : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) : void 0;
11676
- }
11677
-
11678
- return useContext(historyContext);
11679
- }
11680
- function useLocation() {
11681
- if (process.env.NODE_ENV !== "production") {
11682
- !(typeof useContext === "function") ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You must use React >= 16.8 in order to use useLocation()") : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) : void 0;
11683
- }
11684
-
11685
- return useContext(context).location;
11686
- }
11687
- function useParams() {
11688
- if (process.env.NODE_ENV !== "production") {
11689
- !(typeof useContext === "function") ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You must use React >= 16.8 in order to use useParams()") : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) : void 0;
11690
- }
11691
-
11692
- var match = useContext(context).match;
11693
- return match ? match.params : {};
11694
- }
11695
- function useRouteMatch(path) {
11696
- if (process.env.NODE_ENV !== "production") {
11697
- !(typeof useContext === "function") ? process.env.NODE_ENV !== "production" ? Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false, "You must use React >= 16.8 in order to use useRouteMatch()") : Object(__WEBPACK_IMPORTED_MODULE_6_tiny_invariant__["a" /* default */])(false) : void 0;
11698
- }
11699
-
11700
- var location = useLocation();
11701
- var match = useContext(context).match;
11702
- return path ? matchPath(location.pathname, path) : match;
11703
- }
11704
-
11705
- if (process.env.NODE_ENV !== "production") {
11706
- if (typeof window !== "undefined") {
11707
- var global = window;
11708
- var key = "__react_router_build__";
11709
- var buildNames = {
11710
- cjs: "CommonJS",
11711
- esm: "ES modules",
11712
- umd: "UMD"
11713
- };
11714
-
11715
- if (global[key] && global[key] !== "esm") {
11716
- var initialBuildName = buildNames[global[key]];
11717
- var secondaryBuildName = buildNames["esm"]; // TODO: Add link to article that explains in detail how to avoid
11718
- // loading 2 different builds.
11719
-
11720
- throw new Error("You are loading the " + secondaryBuildName + " build of React Router " + ("on a page that is already running the " + initialBuildName + " ") + "build, so things won't work right.");
11721
- }
11722
-
11723
- global[key] = "esm";
11724
- }
11725
- }
11726
-
11727
-
11728
- //# sourceMappingURL=react-router.js.map
11729
-
11730
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
11731
-
11732
- /***/ }),
11733
- /* 210 */
11734
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11735
-
11736
- "use strict";
11737
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createBrowserHistory; });
11738
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return createHashHistory; });
11739
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return createMemoryHistory; });
11740
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return createLocation; });
11741
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return locationsAreEqual; });
11742
- /* unused harmony export parsePath */
11743
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return createPath; });
11744
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
11745
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_resolve_pathname__ = __webpack_require__(439);
11746
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_value_equal__ = __webpack_require__(440);
11747
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_tiny_warning__ = __webpack_require__(48);
11748
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_tiny_invariant__ = __webpack_require__(129);
11749
-
11750
-
11751
-
11752
-
11753
-
11754
-
11755
- function addLeadingSlash(path) {
11756
- return path.charAt(0) === '/' ? path : '/' + path;
11757
- }
11758
- function stripLeadingSlash(path) {
11759
- return path.charAt(0) === '/' ? path.substr(1) : path;
11760
- }
11761
- function hasBasename(path, prefix) {
11762
- return path.toLowerCase().indexOf(prefix.toLowerCase()) === 0 && '/?#'.indexOf(path.charAt(prefix.length)) !== -1;
11763
- }
11764
- function stripBasename(path, prefix) {
11765
- return hasBasename(path, prefix) ? path.substr(prefix.length) : path;
11766
- }
11767
- function stripTrailingSlash(path) {
11768
- return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path;
11769
- }
11770
- function parsePath(path) {
11771
- var pathname = path || '/';
11772
- var search = '';
11773
- var hash = '';
11774
- var hashIndex = pathname.indexOf('#');
11775
-
11776
- if (hashIndex !== -1) {
11777
- hash = pathname.substr(hashIndex);
11778
- pathname = pathname.substr(0, hashIndex);
11779
- }
11780
-
11781
- var searchIndex = pathname.indexOf('?');
11782
-
11783
- if (searchIndex !== -1) {
11784
- search = pathname.substr(searchIndex);
11785
- pathname = pathname.substr(0, searchIndex);
11786
- }
11787
-
11788
- return {
11789
- pathname: pathname,
11790
- search: search === '?' ? '' : search,
11791
- hash: hash === '#' ? '' : hash
11792
- };
11793
- }
11794
- function createPath(location) {
11795
- var pathname = location.pathname,
11796
- search = location.search,
11797
- hash = location.hash;
11798
- var path = pathname || '/';
11799
- if (search && search !== '?') path += search.charAt(0) === '?' ? search : "?" + search;
11800
- if (hash && hash !== '#') path += hash.charAt(0) === '#' ? hash : "#" + hash;
11801
- return path;
11802
- }
11803
-
11804
- function createLocation(path, state, key, currentLocation) {
11805
- var location;
11806
-
11807
- if (typeof path === 'string') {
11808
- // Two-arg form: push(path, state)
11809
- location = parsePath(path);
11810
- location.state = state;
11811
- } else {
11812
- // One-arg form: push(location)
11813
- location = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, path);
11814
- if (location.pathname === undefined) location.pathname = '';
11815
-
11816
- if (location.search) {
11817
- if (location.search.charAt(0) !== '?') location.search = '?' + location.search;
11818
- } else {
11819
- location.search = '';
11820
- }
11821
-
11822
- if (location.hash) {
11823
- if (location.hash.charAt(0) !== '#') location.hash = '#' + location.hash;
11824
- } else {
11825
- location.hash = '';
11826
- }
11827
-
11828
- if (state !== undefined && location.state === undefined) location.state = state;
11829
- }
11830
-
11831
- try {
11832
- location.pathname = decodeURI(location.pathname);
11833
- } catch (e) {
11834
- if (e instanceof URIError) {
11835
- throw new URIError('Pathname "' + location.pathname + '" could not be decoded. ' + 'This is likely caused by an invalid percent-encoding.');
11836
- } else {
11837
- throw e;
11838
- }
11839
- }
11840
-
11841
- if (key) location.key = key;
11842
-
11843
- if (currentLocation) {
11844
- // Resolve incomplete/relative pathname relative to current location.
11845
- if (!location.pathname) {
11846
- location.pathname = currentLocation.pathname;
11847
- } else if (location.pathname.charAt(0) !== '/') {
11848
- location.pathname = Object(__WEBPACK_IMPORTED_MODULE_1_resolve_pathname__["a" /* default */])(location.pathname, currentLocation.pathname);
11849
- }
11850
- } else {
11851
- // When there is no prior location and pathname is empty, set it to /
11852
- if (!location.pathname) {
11853
- location.pathname = '/';
11854
- }
11855
- }
11856
-
11857
- return location;
11858
- }
11859
- function locationsAreEqual(a, b) {
11860
- 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);
11861
- }
11862
-
11863
- function createTransitionManager() {
11864
- var prompt = null;
11865
-
11866
- function setPrompt(nextPrompt) {
11867
- 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;
11868
- prompt = nextPrompt;
11869
- return function () {
11870
- if (prompt === nextPrompt) prompt = null;
11871
- };
11872
- }
11873
-
11874
- function confirmTransitionTo(location, action, getUserConfirmation, callback) {
11875
- // TODO: If another transition starts while we're still confirming
11876
- // the previous one, we may end up in a weird state. Figure out the
11877
- // best way to handle this.
11878
- if (prompt != null) {
11879
- var result = typeof prompt === 'function' ? prompt(location, action) : prompt;
11880
-
11881
- if (typeof result === 'string') {
11882
- if (typeof getUserConfirmation === 'function') {
11883
- getUserConfirmation(result, callback);
11884
- } else {
11885
- 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;
11886
- callback(true);
11887
- }
11888
- } else {
11889
- // Return false from a transition hook to cancel the transition.
11890
- callback(result !== false);
11891
- }
11892
- } else {
11893
- callback(true);
11894
- }
11895
- }
11896
-
11897
- var listeners = [];
11898
-
11899
- function appendListener(fn) {
11900
- var isActive = true;
11901
-
11902
- function listener() {
11903
- if (isActive) fn.apply(void 0, arguments);
11904
- }
11905
-
11906
- listeners.push(listener);
11907
- return function () {
11908
- isActive = false;
11909
- listeners = listeners.filter(function (item) {
11910
- return item !== listener;
11911
- });
11912
- };
11913
- }
11914
-
11915
- function notifyListeners() {
11916
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
11917
- args[_key] = arguments[_key];
11918
- }
11919
-
11920
- listeners.forEach(function (listener) {
11921
- return listener.apply(void 0, args);
11922
- });
11923
- }
11924
-
11925
- return {
11926
- setPrompt: setPrompt,
11927
- confirmTransitionTo: confirmTransitionTo,
11928
- appendListener: appendListener,
11929
- notifyListeners: notifyListeners
11930
- };
11931
- }
11932
-
11933
- var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
11934
- function getConfirmation(message, callback) {
11935
- callback(window.confirm(message)); // eslint-disable-line no-alert
11936
- }
11937
- /**
11938
- * Returns true if the HTML5 history API is supported. Taken from Modernizr.
11939
- *
11940
- * https://github.com/Modernizr/Modernizr/blob/master/LICENSE
11941
- * https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js
11942
- * changed to avoid false negatives for Windows Phones: https://github.com/reactjs/react-router/issues/586
11943
- */
11944
-
11945
- function supportsHistory() {
11946
- var ua = window.navigator.userAgent;
11947
- 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;
11948
- return window.history && 'pushState' in window.history;
11949
- }
11950
- /**
11951
- * Returns true if browser fires popstate on hash change.
11952
- * IE10 and IE11 do not.
11953
- */
11954
-
11955
- function supportsPopStateOnHashChange() {
11956
- return window.navigator.userAgent.indexOf('Trident') === -1;
11957
- }
11958
- /**
11959
- * Returns false if using go(n) with hash history causes a full page reload.
11960
- */
11961
-
11962
- function supportsGoWithoutReloadUsingHash() {
11963
- return window.navigator.userAgent.indexOf('Firefox') === -1;
11964
- }
11965
- /**
11966
- * Returns true if a given popstate event is an extraneous WebKit event.
11967
- * Accounts for the fact that Chrome on iOS fires real popstate events
11968
- * containing undefined state when pressing the back button.
11969
- */
11970
-
11971
- function isExtraneousPopstateEvent(event) {
11972
- return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1;
11973
- }
11974
-
11975
- var PopStateEvent = 'popstate';
11976
- var HashChangeEvent = 'hashchange';
11977
-
11978
- function getHistoryState() {
11979
- try {
11980
- return window.history.state || {};
11981
- } catch (e) {
11982
- // IE 11 sometimes throws when accessing window.history.state
11983
- // See https://github.com/ReactTraining/history/pull/289
11984
- return {};
11985
- }
11986
- }
11987
- /**
11988
- * Creates a history object that uses the HTML5 history API including
11989
- * pushState, replaceState, and the popstate event.
11990
- */
11991
-
11992
-
11993
- function createBrowserHistory(props) {
11994
- if (props === void 0) {
11995
- props = {};
11996
- }
11997
-
11998
- !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;
11999
- var globalHistory = window.history;
12000
- var canUseHistory = supportsHistory();
12001
- var needsHashChangeListener = !supportsPopStateOnHashChange();
12002
- var _props = props,
12003
- _props$forceRefresh = _props.forceRefresh,
12004
- forceRefresh = _props$forceRefresh === void 0 ? false : _props$forceRefresh,
12005
- _props$getUserConfirm = _props.getUserConfirmation,
12006
- getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,
12007
- _props$keyLength = _props.keyLength,
12008
- keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
12009
- var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';
12010
-
12011
- function getDOMLocation(historyState) {
12012
- var _ref = historyState || {},
12013
- key = _ref.key,
12014
- state = _ref.state;
12015
-
12016
- var _window$location = window.location,
12017
- pathname = _window$location.pathname,
12018
- search = _window$location.search,
12019
- hash = _window$location.hash;
12020
- var path = pathname + search + hash;
12021
- 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;
12022
- if (basename) path = stripBasename(path, basename);
12023
- return createLocation(path, state, key);
12024
- }
12025
-
12026
- function createKey() {
12027
- return Math.random().toString(36).substr(2, keyLength);
12028
- }
12029
-
12030
- var transitionManager = createTransitionManager();
12031
-
12032
- function setState(nextState) {
12033
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])(history, nextState);
12034
-
12035
- history.length = globalHistory.length;
12036
- transitionManager.notifyListeners(history.location, history.action);
12037
- }
12038
-
12039
- function handlePopState(event) {
12040
- // Ignore extraneous popstate events in WebKit.
12041
- if (isExtraneousPopstateEvent(event)) return;
12042
- handlePop(getDOMLocation(event.state));
12043
- }
12044
-
12045
- function handleHashChange() {
12046
- handlePop(getDOMLocation(getHistoryState()));
12047
- }
12048
-
12049
- var forceNextPop = false;
12050
-
12051
- function handlePop(location) {
12052
- if (forceNextPop) {
12053
- forceNextPop = false;
12054
- setState();
12055
- } else {
12056
- var action = 'POP';
12057
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
12058
- if (ok) {
12059
- setState({
12060
- action: action,
12061
- location: location
12062
- });
12063
- } else {
12064
- revertPop(location);
12065
- }
12066
- });
12067
- }
12068
- }
12069
-
12070
- function revertPop(fromLocation) {
12071
- var toLocation = history.location; // TODO: We could probably make this more reliable by
12072
- // keeping a list of keys we've seen in sessionStorage.
12073
- // Instead, we just default to 0 for keys we don't know.
12074
-
12075
- var toIndex = allKeys.indexOf(toLocation.key);
12076
- if (toIndex === -1) toIndex = 0;
12077
- var fromIndex = allKeys.indexOf(fromLocation.key);
12078
- if (fromIndex === -1) fromIndex = 0;
12079
- var delta = toIndex - fromIndex;
12080
-
12081
- if (delta) {
12082
- forceNextPop = true;
12083
- go(delta);
12084
- }
12085
- }
12086
-
12087
- var initialLocation = getDOMLocation(getHistoryState());
12088
- var allKeys = [initialLocation.key]; // Public interface
12089
-
12090
- function createHref(location) {
12091
- return basename + createPath(location);
12092
- }
12093
-
12094
- function push(path, state) {
12095
- 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;
12096
- var action = 'PUSH';
12097
- var location = createLocation(path, state, createKey(), history.location);
12098
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
12099
- if (!ok) return;
12100
- var href = createHref(location);
12101
- var key = location.key,
12102
- state = location.state;
12103
-
12104
- if (canUseHistory) {
12105
- globalHistory.pushState({
12106
- key: key,
12107
- state: state
12108
- }, null, href);
12109
-
12110
- if (forceRefresh) {
12111
- window.location.href = href;
12112
- } else {
12113
- var prevIndex = allKeys.indexOf(history.location.key);
12114
- var nextKeys = allKeys.slice(0, prevIndex + 1);
12115
- nextKeys.push(location.key);
12116
- allKeys = nextKeys;
12117
- setState({
12118
- action: action,
12119
- location: location
12120
- });
12121
- }
12122
- } else {
12123
- 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;
12124
- window.location.href = href;
12125
- }
12126
- });
12127
- }
12128
-
12129
- function replace(path, state) {
12130
- 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;
12131
- var action = 'REPLACE';
12132
- var location = createLocation(path, state, createKey(), history.location);
12133
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
12134
- if (!ok) return;
12135
- var href = createHref(location);
12136
- var key = location.key,
12137
- state = location.state;
12138
-
12139
- if (canUseHistory) {
12140
- globalHistory.replaceState({
12141
- key: key,
12142
- state: state
12143
- }, null, href);
12144
-
12145
- if (forceRefresh) {
12146
- window.location.replace(href);
12147
- } else {
12148
- var prevIndex = allKeys.indexOf(history.location.key);
12149
- if (prevIndex !== -1) allKeys[prevIndex] = location.key;
12150
- setState({
12151
- action: action,
12152
- location: location
12153
- });
12154
- }
12155
- } else {
12156
- 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;
12157
- window.location.replace(href);
12158
- }
12159
- });
12160
- }
12161
-
12162
- function go(n) {
12163
- globalHistory.go(n);
12164
- }
12165
-
12166
- function goBack() {
12167
- go(-1);
12168
- }
12169
-
12170
- function goForward() {
12171
- go(1);
12172
- }
12173
-
12174
- var listenerCount = 0;
12175
-
12176
- function checkDOMListeners(delta) {
12177
- listenerCount += delta;
12178
-
12179
- if (listenerCount === 1 && delta === 1) {
12180
- window.addEventListener(PopStateEvent, handlePopState);
12181
- if (needsHashChangeListener) window.addEventListener(HashChangeEvent, handleHashChange);
12182
- } else if (listenerCount === 0) {
12183
- window.removeEventListener(PopStateEvent, handlePopState);
12184
- if (needsHashChangeListener) window.removeEventListener(HashChangeEvent, handleHashChange);
12185
- }
12186
- }
12187
-
12188
- var isBlocked = false;
12189
-
12190
- function block(prompt) {
12191
- if (prompt === void 0) {
12192
- prompt = false;
12193
- }
12194
-
12195
- var unblock = transitionManager.setPrompt(prompt);
12196
-
12197
- if (!isBlocked) {
12198
- checkDOMListeners(1);
12199
- isBlocked = true;
12200
- }
12201
-
12202
- return function () {
12203
- if (isBlocked) {
12204
- isBlocked = false;
12205
- checkDOMListeners(-1);
12206
- }
12207
-
12208
- return unblock();
12209
- };
12210
- }
12211
-
12212
- function listen(listener) {
12213
- var unlisten = transitionManager.appendListener(listener);
12214
- checkDOMListeners(1);
12215
- return function () {
12216
- checkDOMListeners(-1);
12217
- unlisten();
12218
- };
12219
- }
12220
-
12221
- var history = {
12222
- length: globalHistory.length,
12223
- action: 'POP',
12224
- location: initialLocation,
12225
- createHref: createHref,
12226
- push: push,
12227
- replace: replace,
12228
- go: go,
12229
- goBack: goBack,
12230
- goForward: goForward,
12231
- block: block,
12232
- listen: listen
12233
- };
12234
- return history;
12235
- }
12236
-
12237
- var HashChangeEvent$1 = 'hashchange';
12238
- var HashPathCoders = {
12239
- hashbang: {
12240
- encodePath: function encodePath(path) {
12241
- return path.charAt(0) === '!' ? path : '!/' + stripLeadingSlash(path);
12242
- },
12243
- decodePath: function decodePath(path) {
12244
- return path.charAt(0) === '!' ? path.substr(1) : path;
12245
- }
12246
- },
12247
- noslash: {
12248
- encodePath: stripLeadingSlash,
12249
- decodePath: addLeadingSlash
12250
- },
12251
- slash: {
12252
- encodePath: addLeadingSlash,
12253
- decodePath: addLeadingSlash
12254
- }
12255
- };
12256
-
12257
- function stripHash(url) {
12258
- var hashIndex = url.indexOf('#');
12259
- return hashIndex === -1 ? url : url.slice(0, hashIndex);
12260
- }
12261
-
12262
- function getHashPath() {
12263
- // We can't use window.location.hash here because it's not
12264
- // consistent across browsers - Firefox will pre-decode it!
12265
- var href = window.location.href;
12266
- var hashIndex = href.indexOf('#');
12267
- return hashIndex === -1 ? '' : href.substring(hashIndex + 1);
12268
- }
12269
-
12270
- function pushHashPath(path) {
12271
- window.location.hash = path;
12272
- }
12273
-
12274
- function replaceHashPath(path) {
12275
- window.location.replace(stripHash(window.location.href) + '#' + path);
12276
- }
12277
-
12278
- function createHashHistory(props) {
12279
- if (props === void 0) {
12280
- props = {};
12281
- }
12282
-
12283
- !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;
12284
- var globalHistory = window.history;
12285
- var canGoWithoutReload = supportsGoWithoutReloadUsingHash();
12286
- var _props = props,
12287
- _props$getUserConfirm = _props.getUserConfirmation,
12288
- getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm,
12289
- _props$hashType = _props.hashType,
12290
- hashType = _props$hashType === void 0 ? 'slash' : _props$hashType;
12291
- var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : '';
12292
- var _HashPathCoders$hashT = HashPathCoders[hashType],
12293
- encodePath = _HashPathCoders$hashT.encodePath,
12294
- decodePath = _HashPathCoders$hashT.decodePath;
12295
-
12296
- function getDOMLocation() {
12297
- var path = decodePath(getHashPath());
12298
- 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;
12299
- if (basename) path = stripBasename(path, basename);
12300
- return createLocation(path);
12301
- }
12302
-
12303
- var transitionManager = createTransitionManager();
12304
-
12305
- function setState(nextState) {
12306
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])(history, nextState);
12307
-
12308
- history.length = globalHistory.length;
12309
- transitionManager.notifyListeners(history.location, history.action);
12310
- }
12311
-
12312
- var forceNextPop = false;
12313
- var ignorePath = null;
12314
-
12315
- function locationsAreEqual$$1(a, b) {
12316
- return a.pathname === b.pathname && a.search === b.search && a.hash === b.hash;
12317
- }
12318
-
12319
- function handleHashChange() {
12320
- var path = getHashPath();
12321
- var encodedPath = encodePath(path);
12322
-
12323
- if (path !== encodedPath) {
12324
- // Ensure we always have a properly-encoded hash.
12325
- replaceHashPath(encodedPath);
12326
- } else {
12327
- var location = getDOMLocation();
12328
- var prevLocation = history.location;
12329
- if (!forceNextPop && locationsAreEqual$$1(prevLocation, location)) return; // A hashchange doesn't always == location change.
12330
-
12331
- if (ignorePath === createPath(location)) return; // Ignore this change; we already setState in push/replace.
12332
-
12333
- ignorePath = null;
12334
- handlePop(location);
12335
- }
12336
- }
12337
-
12338
- function handlePop(location) {
12339
- if (forceNextPop) {
12340
- forceNextPop = false;
12341
- setState();
12342
- } else {
12343
- var action = 'POP';
12344
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
12345
- if (ok) {
12346
- setState({
12347
- action: action,
12348
- location: location
12349
- });
12350
- } else {
12351
- revertPop(location);
12352
- }
12353
- });
12354
- }
12355
- }
12356
-
12357
- function revertPop(fromLocation) {
12358
- var toLocation = history.location; // TODO: We could probably make this more reliable by
12359
- // keeping a list of paths we've seen in sessionStorage.
12360
- // Instead, we just default to 0 for paths we don't know.
12361
-
12362
- var toIndex = allPaths.lastIndexOf(createPath(toLocation));
12363
- if (toIndex === -1) toIndex = 0;
12364
- var fromIndex = allPaths.lastIndexOf(createPath(fromLocation));
12365
- if (fromIndex === -1) fromIndex = 0;
12366
- var delta = toIndex - fromIndex;
12367
-
12368
- if (delta) {
12369
- forceNextPop = true;
12370
- go(delta);
12371
- }
12372
- } // Ensure the hash is encoded properly before doing anything else.
12373
-
12374
-
12375
- var path = getHashPath();
12376
- var encodedPath = encodePath(path);
12377
- if (path !== encodedPath) replaceHashPath(encodedPath);
12378
- var initialLocation = getDOMLocation();
12379
- var allPaths = [createPath(initialLocation)]; // Public interface
12380
-
12381
- function createHref(location) {
12382
- var baseTag = document.querySelector('base');
12383
- var href = '';
12384
-
12385
- if (baseTag && baseTag.getAttribute('href')) {
12386
- href = stripHash(window.location.href);
12387
- }
12388
-
12389
- return href + '#' + encodePath(basename + createPath(location));
12390
- }
12391
-
12392
- function push(path, state) {
12393
- 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;
12394
- var action = 'PUSH';
12395
- var location = createLocation(path, undefined, undefined, history.location);
12396
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
12397
- if (!ok) return;
12398
- var path = createPath(location);
12399
- var encodedPath = encodePath(basename + path);
12400
- var hashChanged = getHashPath() !== encodedPath;
12401
-
12402
- if (hashChanged) {
12403
- // We cannot tell if a hashchange was caused by a PUSH, so we'd
12404
- // rather setState here and ignore the hashchange. The caveat here
12405
- // is that other hash histories in the page will consider it a POP.
12406
- ignorePath = path;
12407
- pushHashPath(encodedPath);
12408
- var prevIndex = allPaths.lastIndexOf(createPath(history.location));
12409
- var nextPaths = allPaths.slice(0, prevIndex + 1);
12410
- nextPaths.push(path);
12411
- allPaths = nextPaths;
12412
- setState({
12413
- action: action,
12414
- location: location
12415
- });
12416
- } else {
12417
- 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;
12418
- setState();
12419
- }
12420
- });
12421
- }
12422
-
12423
- function replace(path, state) {
12424
- 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;
12425
- var action = 'REPLACE';
12426
- var location = createLocation(path, undefined, undefined, history.location);
12427
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
12428
- if (!ok) return;
12429
- var path = createPath(location);
12430
- var encodedPath = encodePath(basename + path);
12431
- var hashChanged = getHashPath() !== encodedPath;
12432
-
12433
- if (hashChanged) {
12434
- // We cannot tell if a hashchange was caused by a REPLACE, so we'd
12435
- // rather setState here and ignore the hashchange. The caveat here
12436
- // is that other hash histories in the page will consider it a POP.
12437
- ignorePath = path;
12438
- replaceHashPath(encodedPath);
12439
- }
12440
-
12441
- var prevIndex = allPaths.indexOf(createPath(history.location));
12442
- if (prevIndex !== -1) allPaths[prevIndex] = path;
12443
- setState({
12444
- action: action,
12445
- location: location
12446
- });
12447
- });
12448
- }
12449
-
12450
- function go(n) {
12451
- 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;
12452
- globalHistory.go(n);
12453
- }
12454
-
12455
- function goBack() {
12456
- go(-1);
12457
- }
12458
-
12459
- function goForward() {
12460
- go(1);
12461
- }
12462
-
12463
- var listenerCount = 0;
12464
-
12465
- function checkDOMListeners(delta) {
12466
- listenerCount += delta;
12467
-
12468
- if (listenerCount === 1 && delta === 1) {
12469
- window.addEventListener(HashChangeEvent$1, handleHashChange);
12470
- } else if (listenerCount === 0) {
12471
- window.removeEventListener(HashChangeEvent$1, handleHashChange);
12472
- }
12473
- }
12474
-
12475
- var isBlocked = false;
12476
-
12477
- function block(prompt) {
12478
- if (prompt === void 0) {
12479
- prompt = false;
12480
- }
12481
-
12482
- var unblock = transitionManager.setPrompt(prompt);
12483
-
12484
- if (!isBlocked) {
12485
- checkDOMListeners(1);
12486
- isBlocked = true;
12487
- }
12488
-
12489
- return function () {
12490
- if (isBlocked) {
12491
- isBlocked = false;
12492
- checkDOMListeners(-1);
12493
- }
12494
-
12495
- return unblock();
12496
- };
12497
- }
12498
-
12499
- function listen(listener) {
12500
- var unlisten = transitionManager.appendListener(listener);
12501
- checkDOMListeners(1);
12502
- return function () {
12503
- checkDOMListeners(-1);
12504
- unlisten();
12505
- };
12506
- }
12507
-
12508
- var history = {
12509
- length: globalHistory.length,
12510
- action: 'POP',
12511
- location: initialLocation,
12512
- createHref: createHref,
12513
- push: push,
12514
- replace: replace,
12515
- go: go,
12516
- goBack: goBack,
12517
- goForward: goForward,
12518
- block: block,
12519
- listen: listen
12520
- };
12521
- return history;
12522
- }
12523
-
12524
- function clamp(n, lowerBound, upperBound) {
12525
- return Math.min(Math.max(n, lowerBound), upperBound);
12526
- }
12527
- /**
12528
- * Creates a history object that stores locations in memory.
12529
- */
12530
-
12531
-
12532
- function createMemoryHistory(props) {
12533
- if (props === void 0) {
12534
- props = {};
12535
- }
12536
-
12537
- var _props = props,
12538
- getUserConfirmation = _props.getUserConfirmation,
12539
- _props$initialEntries = _props.initialEntries,
12540
- initialEntries = _props$initialEntries === void 0 ? ['/'] : _props$initialEntries,
12541
- _props$initialIndex = _props.initialIndex,
12542
- initialIndex = _props$initialIndex === void 0 ? 0 : _props$initialIndex,
12543
- _props$keyLength = _props.keyLength,
12544
- keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
12545
- var transitionManager = createTransitionManager();
12546
-
12547
- function setState(nextState) {
12548
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])(history, nextState);
12549
-
12550
- history.length = history.entries.length;
12551
- transitionManager.notifyListeners(history.location, history.action);
12552
- }
12553
-
12554
- function createKey() {
12555
- return Math.random().toString(36).substr(2, keyLength);
12556
- }
12557
-
12558
- var index = clamp(initialIndex, 0, initialEntries.length - 1);
12559
- var entries = initialEntries.map(function (entry) {
12560
- return typeof entry === 'string' ? createLocation(entry, undefined, createKey()) : createLocation(entry, undefined, entry.key || createKey());
12561
- }); // Public interface
12562
-
12563
- var createHref = createPath;
12564
-
12565
- function push(path, state) {
12566
- 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;
12567
- var action = 'PUSH';
12568
- var location = createLocation(path, state, createKey(), history.location);
12569
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
12570
- if (!ok) return;
12571
- var prevIndex = history.index;
12572
- var nextIndex = prevIndex + 1;
12573
- var nextEntries = history.entries.slice(0);
12574
-
12575
- if (nextEntries.length > nextIndex) {
12576
- nextEntries.splice(nextIndex, nextEntries.length - nextIndex, location);
12577
- } else {
12578
- nextEntries.push(location);
12579
- }
12580
-
12581
- setState({
12582
- action: action,
12583
- location: location,
12584
- index: nextIndex,
12585
- entries: nextEntries
12586
- });
12587
- });
12588
- }
12589
-
12590
- function replace(path, state) {
12591
- 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;
12592
- var action = 'REPLACE';
12593
- var location = createLocation(path, state, createKey(), history.location);
12594
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
12595
- if (!ok) return;
12596
- history.entries[history.index] = location;
12597
- setState({
12598
- action: action,
12599
- location: location
12600
- });
12601
- });
12602
- }
12603
-
12604
- function go(n) {
12605
- var nextIndex = clamp(history.index + n, 0, history.entries.length - 1);
12606
- var action = 'POP';
12607
- var location = history.entries[nextIndex];
12608
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
12609
- if (ok) {
12610
- setState({
12611
- action: action,
12612
- location: location,
12613
- index: nextIndex
12614
- });
12615
- } else {
12616
- // Mimic the behavior of DOM histories by
12617
- // causing a render after a cancelled POP.
12618
- setState();
12619
- }
12620
- });
12621
- }
12622
-
12623
- function goBack() {
12624
- go(-1);
12625
- }
12626
-
12627
- function goForward() {
12628
- go(1);
12629
- }
12630
-
12631
- function canGo(n) {
12632
- var nextIndex = history.index + n;
12633
- return nextIndex >= 0 && nextIndex < history.entries.length;
12634
- }
12635
-
12636
- function block(prompt) {
12637
- if (prompt === void 0) {
12638
- prompt = false;
12639
- }
12640
-
12641
- return transitionManager.setPrompt(prompt);
12642
- }
12643
-
12644
- function listen(listener) {
12645
- return transitionManager.appendListener(listener);
12646
- }
12647
-
12648
- var history = {
12649
- length: entries.length,
12650
- action: 'POP',
12651
- location: entries[index],
12652
- index: index,
12653
- entries: entries,
12654
- createHref: createHref,
12655
- push: push,
12656
- replace: replace,
12657
- go: go,
12658
- goBack: goBack,
12659
- goForward: goForward,
12660
- canGo: canGo,
12661
- block: block,
12662
- listen: listen
12663
- };
12664
- return history;
12665
- }
12666
-
12667
-
12668
-
12669
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
12670
-
12671
- /***/ }),
12672
- /* 211 */
12673
- /***/ (function(module, exports, __webpack_require__) {
12674
-
12675
- "use strict";
12676
-
12677
-
12678
- 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); }
12679
-
12680
- Object.defineProperty(exports, "__esModule", {
12681
- value: true
12682
- });
12683
- exports["default"] = void 0;
12684
-
12685
- var _react = _interopRequireWildcard(__webpack_require__(0));
12686
-
12687
- var _reactRouterDom = __webpack_require__(42);
12688
-
12689
- var _reactDom = _interopRequireDefault(__webpack_require__(11));
12690
-
12691
- __webpack_require__(446);
12692
-
12693
- var _QuadsAdConfig = _interopRequireDefault(__webpack_require__(447));
12694
-
12695
- var _QuadsAdTargeting = _interopRequireDefault(__webpack_require__(532));
12696
-
12697
- var _QuadsAdPublish = _interopRequireDefault(__webpack_require__(540));
12698
-
12699
- var _queryString = _interopRequireDefault(__webpack_require__(26));
12700
-
12701
- var _Icon = _interopRequireDefault(__webpack_require__(35));
12702
-
12703
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12704
-
12705
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
12706
-
12707
- 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; }
12708
-
12709
- 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); }
12710
-
12711
- function _readOnlyError(name) { throw new TypeError("\"" + name + "\" is read-only"); }
12712
-
12713
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
12714
-
12715
- 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."); }
12716
-
12717
- 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(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
12718
-
12719
- 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; }
12720
-
12721
- 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; }
12722
-
12723
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12724
-
12725
- 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; }
12726
-
12727
- 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; }
12728
-
12729
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12730
-
12731
- 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); } }
12732
-
12733
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
12734
-
12735
- 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); }
12736
-
12737
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
12738
-
12739
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12740
-
12741
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
12742
-
12743
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12744
-
12745
- 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; } }
12746
-
12747
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
12748
-
12749
- 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; }
12750
-
12751
- var QuadsAdCreateRouter = /*#__PURE__*/function (_Component) {
12752
- _inherits(QuadsAdCreateRouter, _Component);
12753
-
12754
- var _super = _createSuper(QuadsAdCreateRouter);
12755
-
12756
- function QuadsAdCreateRouter(props) {
12757
- var _this;
12758
-
12759
- _classCallCheck(this, QuadsAdCreateRouter);
12760
-
12761
- var visibility_include_def_val = [{
12762
- type: {
12763
- label: "Post Type",
12764
- value: "post_type"
12765
- },
12766
- value: {
12767
- label: "post",
12768
- value: "post"
12769
- }
12770
- }];
12771
- _this = _super.call(this, props);
12772
-
12773
- _defineProperty(_assertThisInitialized(_this), "updateVisitorTarget", function (include, exclude) {
12774
- _this.includedVal = include;
12775
- _this.excludedVal = exclude;
12776
- });
12777
-
12778
- _defineProperty(_assertThisInitialized(_this), "updateVisibility", function (include, exclude) {
12779
- _this.includedVisibilityVal = include;
12780
- _this.excludedVisibilityVal = exclude;
12781
- });
12782
-
12783
- _defineProperty(_assertThisInitialized(_this), "updateRandomAds", function (random_ads_list) {
12784
- _this.random_ads_list = random_ads_list;
12785
- });
12786
-
12787
- _defineProperty(_assertThisInitialized(_this), "updateRotatorAds", function (rotator_ads_list) {
12788
- _this.rotator_ads_list = rotator_ads_list;
12789
- });
12790
-
12791
- _defineProperty(_assertThisInitialized(_this), "getAdDataById", function (ad_id) {
12792
- var url = quads_localize_data.rest_url + 'quads-route/get-ad-by-id?ad-id=' + ad_id;
12793
-
12794
- if (quads_localize_data.rest_url.includes('?')) {
12795
- url = quads_localize_data.rest_url + 'quads-route/get-ad-by-id&ad-id=' + ad_id;
12796
- }
12797
-
12798
- fetch(url, {
12799
- headers: {
12800
- 'X-WP-Nonce': quads_localize_data.nonce
12801
- }
12802
- }).then(function (res) {
12803
- return res.json();
12804
- }).then(function (result) {
12805
- var _this$state = _objectSpread({}, _this.state),
12806
- quads_post_meta = _this$state.quads_post_meta;
12807
-
12808
- Object.entries(result).map(function (_ref) {
12809
- var _ref2 = _slicedToArray(_ref, 2),
12810
- key = _ref2[0],
12811
- value = _ref2[1];
12812
-
12813
- if (key == 'post') {
12814
- _this.setState({
12815
- quads_post: result.post
12816
- });
12817
- } else {
12818
- Object.entries(value).map(function (_ref3) {
12819
- var _ref4 = _slicedToArray(_ref3, 2),
12820
- meta_key = _ref4[0],
12821
- meta_val = _ref4[1];
12822
-
12823
- if (meta_key == 'visibility_include') {
12824
- _this.includedVisibilityVal = meta_val;
12825
- } else if (meta_key == 'visibility_exclude') {
12826
- _this.excludedVisibilityVal = meta_val;
12827
- } else if (meta_key == 'targeting_include') {
12828
- _this.includedVal = meta_val;
12829
- } else if (meta_key == 'targeting_exclude') {
12830
- _this.excludedVal = meta_val;
12831
- }
12832
-
12833
- if (meta_val) {
12834
- quads_post_meta[meta_key] = meta_val;
12835
- }
12836
- });
12837
-
12838
- _this.setState(quads_post_meta);
12839
- }
12840
- });
12841
- }, function (error) {});
12842
- });
12843
-
12844
- _defineProperty(_assertThisInitialized(_this), "removeVisibilityIncludeItem", function (e) {
12845
- e.preventDefault();
12846
- var index = e.currentTarget.dataset.index;
12847
-
12848
- var _this$state2 = _objectSpread({}, _this.state),
12849
- quads_post_meta = _this$state2.quads_post_meta;
12850
-
12851
- quads_post_meta.visibility_include.splice(index, 1);
12852
-
12853
- _this.setState(quads_post_meta);
12854
- });
12855
-
12856
- _defineProperty(_assertThisInitialized(_this), "removeVisibilityExcludeItem", function (e) {
12857
- e.preventDefault();
12858
- var index = e.currentTarget.dataset.index;
12859
-
12860
- var _this$state3 = _objectSpread({}, _this.state),
12861
- quads_post_meta = _this$state3.quads_post_meta;
12862
-
12863
- quads_post_meta.visibility_exclude.splice(index, 1);
12864
-
12865
- _this.setState(quads_post_meta);
12866
- });
12867
-
12868
- _defineProperty(_assertThisInitialized(_this), "onListSearchHover", function () {});
12869
-
12870
- _defineProperty(_assertThisInitialized(_this), "addIncludeFromSearch", function (e) {
12871
- e.preventDefault();
12872
- var id = e.currentTarget.dataset.id;
12873
- var text = e.currentTarget.dataset.text;
12874
-
12875
- _this.setState({
12876
- quads_include_input_id: id,
12877
- quads_include_input_text: text
12878
- });
12879
-
12880
- var _this$state4 = _objectSpread({}, _this.state),
12881
- quads_post_meta = _this$state4.quads_post_meta;
12882
-
12883
- quads_post_meta.include_dropdown = false;
12884
-
12885
- _this.setState(quads_post_meta);
12886
- });
12887
-
12888
- _defineProperty(_assertThisInitialized(_this), "addExcludeFromSearch", function (e) {
12889
- e.preventDefault();
12890
- var id = e.currentTarget.dataset.id;
12891
- var text = e.currentTarget.dataset.text;
12892
-
12893
- _this.setState({
12894
- quads_exclude_input_id: id,
12895
- quads_exclude_input_text: text
12896
- });
12897
-
12898
- var _this$state5 = _objectSpread({}, _this.state),
12899
- quads_post_meta = _this$state5.quads_post_meta;
12900
-
12901
- quads_post_meta.exclude_dropdown = false;
12902
-
12903
- _this.setState(quads_post_meta);
12904
- });
12905
-
12906
- _defineProperty(_assertThisInitialized(_this), "onIncludeFocus", function () {
12907
- var _this$state6 = _objectSpread({}, _this.state),
12908
- quads_post_meta = _this$state6.quads_post_meta;
12909
-
12910
- quads_post_meta.include_dropdown = true;
12911
-
12912
- _this.setState(quads_post_meta);
12913
- });
12914
-
12915
- _defineProperty(_assertThisInitialized(_this), "onExcludeFocus", function () {
12916
- var _this$state7 = _objectSpread({}, _this.state),
12917
- quads_post_meta = _this$state7.quads_post_meta;
12918
-
12919
- quads_post_meta.exclude_dropdown = true;
12920
-
12921
- _this.setState(quads_post_meta);
12922
- });
12923
-
12924
- _defineProperty(_assertThisInitialized(_this), "excludeFormToggle", function () {
12925
- _this.setState({
12926
- quads_exclude_toggle: !_this.state.quads_exclude_toggle
12927
- });
12928
- });
12929
-
12930
- _defineProperty(_assertThisInitialized(_this), "includeFormToggle", function () {
12931
- _this.setState({
12932
- quads_include_toggle: !_this.state.quads_include_toggle
12933
- });
12934
- });
12935
-
12936
- _defineProperty(_assertThisInitialized(_this), "openModal", function () {
12937
- _this.setState({
12938
- quads_modal_open: true
12939
- });
12940
- });
12941
-
12942
- _defineProperty(_assertThisInitialized(_this), "closeModal", function () {
12943
- _this.setState({
12944
- quads_modal_open: false
12945
- });
12946
-
12947
- _this.setState({
12948
- quads_modal_error: ''
12949
- });
12950
- });
12951
-
12952
- _defineProperty(_assertThisInitialized(_this), "modalValue", function (e) {
12953
- _this.setState({
12954
- quads_modal_value: e.target.value
12955
- });
12956
- });
12957
-
12958
- _defineProperty(_assertThisInitialized(_this), "getGoogleAdsenseAttr", function (content, regex) {
12959
- var str = content;
12960
- var m;
12961
- var result = {};
12962
-
12963
- while ((m = regex.exec(str)) !== null) {
12964
- // This is necessary to avoid infinite loops with zero-width matches
12965
- if (m.index === regex.lastIndex) {
12966
- regex.lastIndex++;
12967
- } // The result can be accessed through the `m`-variable.
12968
-
12969
-
12970
- m.forEach(function (match, index) {
12971
- //console.log(`Found match, group ${groupIndex}: ${match}`);
12972
- result = match;
12973
- });
12974
- }
12975
-
12976
- return result;
12977
- });
12978
-
12979
- _defineProperty(_assertThisInitialized(_this), "getAdsenseCode", function () {
12980
- var content = _this.state.quads_modal_value;
12981
-
12982
- _this.setState({
12983
- quads_modal_open: true
12984
- });
12985
-
12986
- if (content) {
12987
- var slot_regex = /google_ad_slot\s*=\s*"(\d*)";/g;
12988
-
12989
- var ad_slot = _this.getGoogleAdsenseAttr(content, slot_regex);
12990
-
12991
- var ad_client_regex = /google_ad_client\s*=\s*"ca-pub-(\d*)";/g;
12992
-
12993
- var ad_client = _this.getGoogleAdsenseAttr(content, ad_client_regex);
12994
-
12995
- var width_regex = /google_ad_width\s*=\s*(\d*);/g;
12996
-
12997
- var ad_width = _this.getGoogleAdsenseAttr(content, width_regex);
12998
-
12999
- var height_regex = /google_ad_height\s*=\s*(\d*);/g;
13000
-
13001
- var ad_height = _this.getGoogleAdsenseAttr(content, height_regex);
13002
-
13003
- var ad_format_regex = /data-ad-format\s*=\s*"(\w*)";/g;
13004
-
13005
- var ad_format = _this.getGoogleAdsenseAttr(content, ad_format_regex);
13006
-
13007
- var adsense_type = 'normal';
13008
-
13009
- if ((!ad_slot || 0 === ad_slot.length) && (!ad_client || 0 === ad_client.length) && (!ad_width || 0 === ad_width.length)) {
13010
- adsense_type = (_readOnlyError("adsense_type"), 'normal');
13011
- }
13012
-
13013
- if (ad_format == 'auto') {
13014
- adsense_type = (_readOnlyError("adsense_type"), 'responsive');
13015
- }
13016
-
13017
- if (ad_slot.length >= 0 && ad_client.length >= 0) {
13018
- var _this$state8 = _objectSpread({}, _this.state),
13019
- quads_post_meta = _this$state8.quads_post_meta;
13020
-
13021
- quads_post_meta.g_data_ad_slot = ad_slot;
13022
- quads_post_meta.g_data_ad_client = 'ca-pub-' + ad_client;
13023
- quads_post_meta.g_data_ad_width = ad_width;
13024
- quads_post_meta.g_data_ad_height = ad_height;
13025
- quads_post_meta.adsense_type = adsense_type;
13026
-
13027
- _this.setState(quads_post_meta);
13028
-
13029
- _this.setState({
13030
- quads_modal_open: false
13031
- });
13032
- } else {
13033
- _this.setState({
13034
- quads_modal_error: 'Can not parse AdSense Code. Is the code valid?'
13035
- });
13036
-
13037
- _this.setState({
13038
- quads_modal_open: true
13039
- });
13040
- }
13041
- } else {
13042
- _this.setState({
13043
- quads_modal_error: 'Please provide adsense code'
13044
- });
13045
- }
13046
- });
13047
-
13048
- _defineProperty(_assertThisInitialized(_this), "saveAdFormData", function (ad_status) {
13049
- _this.setState({
13050
- quads_is_loaded: true
13051
- });
13052
-
13053
- var body_json = _this.state;
13054
- body_json.quads_ad_status = ad_status; //visitor targeting
13055
-
13056
- body_json.quads_post_meta.targeting_include = _this.includedVal;
13057
- body_json.quads_post_meta.targeting_exclude = _this.excludedVal;
13058
- body_json.quads_post_meta.visibility_include = _this.includedVisibilityVal;
13059
- body_json.quads_post_meta.visibility_exclude = _this.excludedVisibilityVal;
13060
- body_json.quads_post_meta.random_ads_list = _this.random_ads_list;
13061
- body_json.quads_post_meta.rotator_ads_list = _this.rotator_ads_list;
13062
- var url = quads_localize_data.rest_url + 'quads-route/update-ad';
13063
- fetch(url, {
13064
- method: "post",
13065
- headers: {
13066
- 'Accept': 'application/json',
13067
- 'Content-Type': 'application/json',
13068
- 'X-WP-Nonce': quads_localize_data.nonce
13069
- },
13070
- //make sure to serialize your JSON body
13071
- body: JSON.stringify(body_json)
13072
- }).then(function (res) {
13073
- return res.json();
13074
- }).then(function (result) {
13075
- _this.setState({
13076
- quads_is_loaded: false
13077
- });
13078
-
13079
- _this.setState(Object.assign(_this.state.quads_post_meta, {
13080
- ad_id: result.ad_id
13081
- }));
13082
-
13083
- var path = _this.props.location.pathname;
13084
- var search = _this.props.location.search;
13085
-
13086
- var page = _queryString["default"].parse(window.location.search);
13087
-
13088
- var new_url = path + search;
13089
-
13090
- if (page.action != 'edit') {
13091
- new_url = _this.removePartofQueryString(new_url, 'path=wizard_target');
13092
- new_url += 'path=wizard_publish&action=edit&post=' + result.ad_id;
13093
- } else {
13094
- new_url = _this.removePartofQueryString(new_url, 'path=wizard_target');
13095
- new_url += 'path=wizard_publish';
13096
- }
13097
-
13098
- _this.setState({
13099
- quads_is_saved: true
13100
- });
13101
-
13102
- _this.props.history.push(new_url);
13103
- }, function (error) {
13104
- _this.setState({
13105
- quads_is_error: error,
13106
- quads_is_loaded: false
13107
- });
13108
- });
13109
- });
13110
-
13111
- _defineProperty(_assertThisInitialized(_this), "adFormChangeHandler", function (event) {
13112
- var name = event.target.name;
13113
- var value = event.target.type === 'checkbox' ? event.target.checked : event.target.value;
13114
-
13115
- var _this$state9 = _objectSpread({}, _this.state),
13116
- quads_post_meta = _this$state9.quads_post_meta;
13117
-
13118
- var currentState = quads_post_meta;
13119
-
13120
- if (name) {
13121
- currentState[name] = value;
13122
-
13123
- _this.setState({
13124
- quads_post_meta: currentState,
13125
- quads_state_changed: true
13126
- });
13127
- }
13128
-
13129
- var page = _queryString["default"].parse(window.location.search);
13130
-
13131
- if (!_this.state.quads_ad_status) {
13132
- _this.setState({
13133
- quads_ad_status: 'draft'
13134
- });
13135
- }
13136
- });
13137
-
13138
- _defineProperty(_assertThisInitialized(_this), "saveAsDraft", function (event) {
13139
- event.preventDefault();
13140
-
13141
- _this.saveAdFormData('draft');
13142
- });
13143
-
13144
- _defineProperty(_assertThisInitialized(_this), "publish", function (event) {
13145
- event.preventDefault();
13146
- var quads_post_meta = _this.state.quads_post_meta;
13147
- var validation_flag = true;
13148
-
13149
- if (quads_post_meta.position == 'after_the_percentage') {
13150
- if (quads_post_meta.after_the_percentage_value == '' || parseInt(quads_post_meta.after_the_percentage_value) < 10 || parseInt(quads_post_meta.after_the_percentage_value) > 101) {
13151
- validation_flag = false;
13152
- }
13153
- }
13154
-
13155
- switch (quads_post_meta.ad_type) {
13156
- case 'plain_text':
13157
- if (validation_flag && quads_post_meta.code && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13158
- _this.saveAdFormData('publish');
13159
- } else {
13160
- _this.setState({
13161
- show_form_error: true
13162
- });
13163
- }
13164
-
13165
- break;
13166
-
13167
- case 'adsense':
13168
- if (validation_flag && (quads_post_meta.adsense_ad_type == 'adsense_auto_ads' || 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) {
13169
- _this.saveAdFormData('publish');
13170
- } else {
13171
- _this.setState({
13172
- show_form_error: true
13173
- });
13174
- }
13175
-
13176
- break;
13177
-
13178
- case 'random_ads':
13179
- if (validation_flag && quads_post_meta.random_ads_list.length > 0 && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13180
- _this.saveAdFormData('publish');
13181
- } else {
13182
- _this.setState({
13183
- show_form_error: true
13184
- });
13185
- }
13186
-
13187
- break;
13188
-
13189
- case 'rotator_ads':
13190
- if (validation_flag && quads_post_meta.rotator_ads_list.length > 0 && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13191
- _this.saveAdFormData('publish');
13192
- } else {
13193
- _this.setState({
13194
- show_form_error: true
13195
- });
13196
- }
13197
-
13198
- break;
13199
-
13200
- case 'double_click':
13201
- if (validation_flag && quads_post_meta.ad_unit_name && quads_post_meta.network_code && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13202
- _this.saveAdFormData('publish');
13203
- } else {
13204
- _this.setState({
13205
- show_form_error: true
13206
- });
13207
- }
13208
-
13209
- break;
13210
-
13211
- case 'yandex':
13212
- if (validation_flag && quads_post_meta.block_id && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13213
- _this.saveAdFormData('publish');
13214
- } else {
13215
- _this.setState({
13216
- show_form_error: true
13217
- });
13218
- }
13219
-
13220
- break;
13221
-
13222
- case 'mgid':
13223
- if (validation_flag && quads_post_meta.data_js_src && quads_post_meta.data_container && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13224
- _this.saveAdFormData('publish');
13225
- } else {
13226
- _this.setState({
13227
- show_form_error: true
13228
- });
13229
- }
13230
-
13231
- break;
13232
-
13233
- case 'ad_image':
13234
- if (validation_flag && quads_post_meta.image_src && quads_post_meta.image_redirect_url && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13235
- _this.saveAdFormData('publish');
13236
- } else {
13237
- _this.setState({
13238
- show_form_error: true
13239
- });
13240
- }
13241
-
13242
- break;
13243
-
13244
- case 'taboola':
13245
- if (validation_flag && quads_post_meta.taboola_publisher_id && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13246
- _this.saveAdFormData('publish');
13247
- } else {
13248
- _this.setState({
13249
- show_form_error: true
13250
- });
13251
- }
13252
-
13253
- break;
13254
-
13255
- case 'media_net':
13256
- if (validation_flag && quads_post_meta.data_cid && quads_post_meta.data_crid && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13257
- _this.saveAdFormData('publish');
13258
- } else {
13259
- _this.setState({
13260
- show_form_error: true
13261
- });
13262
- }
13263
-
13264
- break;
13265
-
13266
- case 'mediavine':
13267
- if (validation_flag && quads_post_meta.mediavine_site_id && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13268
- _this.saveAdFormData('publish');
13269
- } else {
13270
- _this.setState({
13271
- show_form_error: true
13272
- });
13273
- }
13274
-
13275
- break;
13276
-
13277
- case 'outbrain':
13278
- if (validation_flag && quads_post_meta.outbrain_widget_ids && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13279
- _this.saveAdFormData('publish');
13280
- } else {
13281
- _this.setState({
13282
- show_form_error: true
13283
- });
13284
- }
13285
-
13286
- break;
13287
-
13288
- case 'infolinks':
13289
- if (validation_flag && quads_post_meta.infolinks_wsid && quads_post_meta.infolinks_pid && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13290
- _this.saveAdFormData('publish');
13291
- } else {
13292
- _this.setState({
13293
- show_form_error: true
13294
- });
13295
- }
13296
-
13297
- break;
13298
-
13299
- case 'background_ad':
13300
- if (validation_flag && quads_post_meta.image_src && quads_post_meta.image_redirect_url && quads_post_meta.position && quads_post_meta.visibility_include.length > 0) {
13301
- _this.saveAdFormData('publish');
13302
- } else {
13303
- _this.setState({
13304
- show_form_error: true
13305
- });
13306
- }
13307
-
13308
- break;
13309
-
13310
- default:
13311
- break;
13312
- }
13313
- });
13314
-
13315
- _defineProperty(_assertThisInitialized(_this), "removePartofQueryString", function (q_string, part) {
13316
- var split_arr = q_string.split("&");
13317
- var new_search = '';
13318
-
13319
- for (var i = 0; i < split_arr.length; i++) {
13320
- if (!split_arr[i].includes(part)) {
13321
- new_search += split_arr[i] + '&';
13322
- }
13323
- }
13324
-
13325
- return new_search;
13326
- });
13327
-
13328
- _defineProperty(_assertThisInitialized(_this), "quadsGoBack", function (e) {
13329
- e.preventDefault();
13330
-
13331
- var page = _queryString["default"].parse(window.location.search);
13332
-
13333
- var new_url = _this.props.location.pathname + '?page=quads-settings';
13334
-
13335
- if (_this.state.quads_state_changed && !_this.state.quads_is_saved) {
13336
- var r = confirm("Changes you made may not be saved.");
13337
-
13338
- if (r == true) {
13339
- _this.props.history.push(new_url);
13340
- } else {
13341
- return false;
13342
- }
13343
- } else {
13344
- _this.props.history.push(new_url);
13345
- }
13346
- });
13347
-
13348
- _defineProperty(_assertThisInitialized(_this), "moveNext", function (e) {
13349
- var page = _queryString["default"].parse(window.location.search);
13350
-
13351
- var new_url = _this.props.location.pathname + _this.removePartofQueryString(_this.props.location.search, 'path=wizard');
13352
-
13353
- var quads_post_meta = _this.state.quads_post_meta;
13354
-
13355
- if (page.path == 'wizard') {
13356
- new_url += 'path=wizard_target';
13357
-
13358
- switch (quads_post_meta.ad_type) {
13359
- case 'plain_text':
13360
- if (quads_post_meta.code) {
13361
- _this.props.history.push(new_url);
13362
- } else {
13363
- _this.setState({
13364
- show_form_error: true
13365
- });
13366
- }
13367
-
13368
- break;
13369
-
13370
- case 'adsense':
13371
- if ((quads_post_meta.adsense_ad_type == 'adsense_auto_ads' || quads_post_meta.g_data_ad_slot) && quads_post_meta.g_data_ad_client) {
13372
- _this.props.history.push(new_url);
13373
- } else {
13374
- _this.setState({
13375
- show_form_error: true
13376
- });
13377
- }
13378
-
13379
- break;
13380
-
13381
- case 'random_ads':
13382
- if (quads_post_meta.random_ads_list.length > 0) {
13383
- _this.props.history.push(new_url);
13384
- } else {
13385
- _this.setState({
13386
- show_form_error: true
13387
- });
13388
- }
13389
-
13390
- break;
13391
-
13392
- case 'rotator_ads':
13393
- if (quads_post_meta.rotator_ads_list.length > 0) {
13394
- _this.props.history.push(new_url);
13395
- } else {
13396
- _this.setState({
13397
- show_form_error: true
13398
- });
13399
- }
13400
-
13401
- break;
13402
-
13403
- case 'double_click':
13404
- if (quads_post_meta.ad_unit_name && quads_post_meta.network_code) {
13405
- _this.props.history.push(new_url);
13406
- } else {
13407
- _this.setState({
13408
- show_form_error: true
13409
- });
13410
- }
13411
-
13412
- break;
13413
-
13414
- case 'yandex':
13415
- if (quads_post_meta.block_id) {
13416
- _this.props.history.push(new_url);
13417
- } else {
13418
- _this.setState({
13419
- show_form_error: true
13420
- });
13421
- }
13422
-
13423
- break;
13424
-
13425
- case 'mgid':
13426
- if (quads_post_meta.data_container && quads_post_meta.data_js_src) {
13427
- _this.props.history.push(new_url);
13428
- } else {
13429
- _this.setState({
13430
- show_form_error: true
13431
- });
13432
- }
13433
-
13434
- break;
13435
-
13436
- case 'ad_image':
13437
- if (quads_post_meta.image_src && quads_post_meta.image_redirect_url) {
13438
- _this.props.history.push(new_url);
13439
- } else {
13440
- _this.setState({
13441
- show_form_error: true
13442
- });
13443
- }
13444
-
13445
- break;
13446
-
13447
- case 'taboola':
13448
- if (quads_post_meta.taboola_publisher_id) {
13449
- _this.props.history.push(new_url);
13450
- } else {
13451
- _this.setState({
13452
- show_form_error: true
13453
- });
13454
- }
13455
-
13456
- break;
13457
-
13458
- case 'media_net':
13459
- if (quads_post_meta.data_cid && quads_post_meta.data_crid) {
13460
- _this.props.history.push(new_url);
13461
- } else {
13462
- _this.setState({
13463
- show_form_error: true
13464
- });
13465
- }
13466
-
13467
- break;
13468
-
13469
- case 'mediavine':
13470
- if (quads_post_meta.mediavine_site_id) {
13471
- _this.props.history.push(new_url);
13472
- } else {
13473
- _this.setState({
13474
- show_form_error: true
13475
- });
13476
- }
13477
-
13478
- break;
13479
-
13480
- case 'outbrain':
13481
- if (quads_post_meta.outbrain_widget_ids) {
13482
- _this.props.history.push(new_url);
13483
- } else {
13484
- _this.setState({
13485
- show_form_error: true
13486
- });
13487
- }
13488
-
13489
- break;
13490
-
13491
- case 'infolinks':
13492
- if (quads_post_meta.infolinks_pid && quads_post_meta.infolinks_wsid) {
13493
- _this.props.history.push(new_url);
13494
- } else {
13495
- _this.setState({
13496
- show_form_error: true
13497
- });
13498
- }
13499
-
13500
- break;
13501
-
13502
- case 'background_ad':
13503
- if (quads_post_meta.image_src && quads_post_meta.image_redirect_url) {
13504
- _this.props.history.push(new_url);
13505
- } else {
13506
- _this.setState({
13507
- show_form_error: true
13508
- });
13509
- }
13510
-
13511
- break;
13512
-
13513
- default:
13514
- break;
13515
- }
13516
- } else if (page.path == 'wizard_target') {
13517
- new_url += 'path=wizard_publish';
13518
-
13519
- if (quads_post_meta.position && visibility_include.length > 0) {
13520
- _this.props.history.push(new_url);
13521
- } else {
13522
- _this.setState({
13523
- show_form_error: true
13524
- });
13525
- }
13526
- }
13527
- });
13528
-
13529
- _defineProperty(_assertThisInitialized(_this), "movePrev", function (e) {
13530
- var page = _queryString["default"].parse(window.location.search);
13531
-
13532
- var new_url = _this.props.location.pathname + _this.removePartofQueryString(_this.props.location.search, 'path=wizard');
13533
-
13534
- if (page.path == 'wizard_publish') {
13535
- new_url += 'path=wizard_target';
13536
- } else if (page.path == 'wizard_target') {
13537
- new_url += 'path=wizard';
13538
- }
13539
-
13540
- _this.props.history.push(new_url);
13541
- });
13542
-
13543
- _defineProperty(_assertThisInitialized(_this), "closeNotice", function () {
13544
- _this.setState({
13545
- quads_is_saved: false
13546
- });
13547
- });
13548
-
13549
- _this.state = {
13550
- show_form_error: false,
13551
- quads_include_toggle: false,
13552
- Quads_confirm_box: false,
13553
- quads_exclude_toggle: false,
13554
- quads_include_placeholder: 'Search for post types',
13555
- quads_exclude_placeholder: 'Search for post types',
13556
- quads_include_current_type: 'post_type',
13557
- quads_exclude_current_type: 'post_type',
13558
- quads_include_input_text: '',
13559
- quads_exclude_input_text: '',
13560
- quads_include_input_id: '',
13561
- quads_exclude_input_id: '',
13562
- quads_is_reload: true,
13563
- quads_modal_value: '',
13564
- quads_modal_error: '',
13565
- quads_modal_open: false,
13566
- quads_is_loaded: true,
13567
- quads_is_visibility: true,
13568
- quads_state_changed: false,
13569
- quads_is_saved: false,
13570
- quads_ad_status: '',
13571
- quads_is_error: [],
13572
- quads_post: {},
13573
- quads_include_meta: {},
13574
- quads_exclude_meta: {},
13575
- quads_post_meta: {
13576
- visibility_include: visibility_include_def_val,
13577
- visibility_exclude: [],
13578
- targeting_include: [],
13579
- targeting_exclude: [],
13580
- ad_id: '',
13581
- ad_type: '',
13582
- label: '',
13583
- adsense_ad_type: 'display_ads',
13584
- data_layout_key: '',
13585
- g_data_ad_slot: '',
13586
- g_data_ad_client: '',
13587
- adsense_type: 'normal',
13588
- g_data_ad_width: '',
13589
- g_data_ad_height: '',
13590
- network_code: '',
13591
- ad_unit_name: '',
13592
- code: '',
13593
- align: 3,
13594
- ad_label_check: false,
13595
- adlabel: '',
13596
- ad_label_text: 'Advertisements',
13597
- margin: 0,
13598
- position: 'beginning_of_post',
13599
- paragraph_number: 1,
13600
- count_as_per: 'p_tag',
13601
- word_count_number: 100,
13602
- image_number: 1,
13603
- enabled_on_amp: false,
13604
- enable_on_end_of_post: false,
13605
- repeat_paragraph: false,
13606
- after_the_percentage_value: 50,
13607
- ads_loop_number: 1,
13608
- paragraph_limit: '',
13609
- paragraph_delay: '',
13610
- image_caption: false,
13611
- include_dropdown: false,
13612
- exclude_dropdown: false,
13613
- random_ads_list: [],
13614
- rotator_ads_list: [],
13615
- image_src: '',
13616
- image_src_id: '',
13617
- image_redirect_url: '',
13618
- taboola_publisher_id: '',
13619
- data_cid: '',
13620
- data_crid: '',
13621
- mediavine_site_id: '',
13622
- outbrain_widget_ids: '',
13623
- infolinks_pid: '',
13624
- infolinks_wsid: '',
13625
- data_container: '',
13626
- data_js_src: ''
13627
- },
13628
- quads_form_errors: {
13629
- g_data_ad_slot: '',
13630
- g_data_ad_client: '',
13631
- code: '',
13632
- label: '',
13633
- position: '',
13634
- visibility_include: [],
13635
- random_ads_list: [],
13636
- rotator_ads_list: []
13637
- }
13638
- };
13639
- _this.include_timer = null;
13640
- _this.exclude_timer = null;
13641
- _this.includedVal = [];
13642
- _this.excludedVal = [];
13643
- _this.includedVisibilityVal = visibility_include_def_val;
13644
- _this.excludedVisibilityVal = [];
13645
- return _this;
13646
- }
13647
-
13648
- _createClass(QuadsAdCreateRouter, [{
13649
- key: "componentDidUpdate",
13650
- value: function componentDidUpdate() {}
13651
- }, {
13652
- key: "componentDidMount",
13653
- value: function componentDidMount() {
13654
- var page = _queryString["default"].parse(window.location.search);
13655
-
13656
- if (this.state.quads_is_reload && page.action == 'edit') {
13657
- document.body.classList.add('quads_editpage');
13658
- this.getAdDataById(page.post);
13659
- this.setState({
13660
- quads_is_reload: false
13661
- });
13662
- } else {
13663
- document.body.classList.add('quads_addpage');
13664
- }
13665
-
13666
- this.setState(Object.assign(this.state.quads_post_meta, {
13667
- ad_type: page.ad_type
13668
- }));
13669
- this.setState({
13670
- quads_is_loaded: false
13671
- });
13672
- }
13673
- }, {
13674
- key: "render",
13675
- value: function render() {
13676
- var _this2 = this;
13677
-
13678
- var location = this.props.location;
13679
-
13680
- var page = _queryString["default"].parse(window.location.search);
13681
-
13682
- var __ = wp.i18n.__;
13683
- var post_meta = this.state.quads_post_meta;
13684
- var show_form_error = this.state.show_form_error;
13685
-
13686
- if (page.path == 'wizard_target' && this.state.quads_post_meta.label == '') {
13687
- var json_data = {
13688
- action: 'quads_ajax_add_ads'
13689
- };
13690
- var url = quads_localize_data.rest_url + "quads-route/get-add-next-id";
13691
- fetch(url, {
13692
- method: "post",
13693
- headers: {
13694
- 'Accept': 'application/json',
13695
- 'Content-Type': 'application/json',
13696
- 'X-WP-Nonce': quads_localize_data.nonce
13697
- },
13698
- body: JSON.stringify(json_data)
13699
- }).then(function (res) {
13700
- return res.json();
13701
- }).then(function (result) {
13702
- var titleName = result.name;
13703
- var quads_ad_old_id = 'ad' + result.id;
13704
-
13705
- if (page.ad_type == 'random_ads') {
13706
- titleName = result.name + " (Random)";
13707
- } else if (page.ad_type == 'rotator_ads') {
13708
- titleName = result.name + " (Rotator)";
13709
- }
13710
-
13711
- _this2.setState(Object.assign(_this2.state.quads_post_meta, {
13712
- label: titleName,
13713
- quads_ad_old_id: quads_ad_old_id
13714
- }));
13715
- }, function (error) {});
13716
- }
13717
-
13718
- return /*#__PURE__*/_react["default"].createElement("div", null, this.state.quads_is_loaded ? /*#__PURE__*/_react["default"].createElement("div", {
13719
- className: "quads-cover-spin"
13720
- }) : '', /*#__PURE__*/_react["default"].createElement("form", {
13721
- id: "quads-ad-form"
13722
- }, /*#__PURE__*/_react["default"].createElement("div", {
13723
- className: "material-icons quads-close-create-page"
13724
- }, /*#__PURE__*/_react["default"].createElement("a", {
13725
- onClick: this.quadsGoBack
13726
- }, "close")), /*#__PURE__*/_react["default"].createElement("div", {
13727
- className: "quads-ad-config-header"
13728
- }, /*#__PURE__*/_react["default"].createElement("div", {
13729
- className: "quads-ad-input"
13730
- }, /*#__PURE__*/_react["default"].createElement("input", {
13731
- value: this.state.quads_post_meta.label,
13732
- type: "text",
13733
- onChange: this.adFormChangeHandler,
13734
- name: "label",
13735
- placeholder: __('Name your ad unit', 'quick-adsense-reloaded')
13736
- }), /*#__PURE__*/_react["default"].createElement("input", {
13737
- type: "hidden",
13738
- name: "ad_id",
13739
- value: this.state.quads_post_meta.ad_id
13740
- }), /*#__PURE__*/_react["default"].createElement("input", {
13741
- type: "hidden",
13742
- name: "ad_type",
13743
- value: this.state.quads_post_meta.ad_type
13744
- })), /*#__PURE__*/_react["default"].createElement("div", {
13745
- className: "quads-ad-config-menu"
13746
- }, /*#__PURE__*/_react["default"].createElement("div", {
13747
- className: "quads-ad-config-tab"
13748
- }, /*#__PURE__*/_react["default"].createElement("ul", null, /*#__PURE__*/_react["default"].createElement("li", {
13749
- className: "".concat(page.path == 'wizard' ? 'quads-selected' : '')
13750
- }, __('Configuration', 'quick-adsense-reloaded')), /*#__PURE__*/_react["default"].createElement("li", {
13751
- className: "".concat(page.path == 'wizard_target' ? 'quads-selected' : '')
13752
- }, __('Targeting', 'quick-adsense-reloaded')), /*#__PURE__*/_react["default"].createElement("li", {
13753
- className: "".concat(page.path == 'wizard_publish' ? 'quads-selected' : '')
13754
- }, __('Publish', 'quick-adsense-reloaded')))))), /*#__PURE__*/_react["default"].createElement(_reactRouterDom.Route, {
13755
- render: function render(props) {
13756
- switch (page.path) {
13757
- case "wizard":
13758
- return /*#__PURE__*/_react["default"].createElement(_QuadsAdConfig["default"], _extends({}, props, {
13759
- moveNext: _this2.moveNext,
13760
- parentState: _this2.state,
13761
- adFormChangeHandler: _this2.adFormChangeHandler,
13762
- modalValue: _this2.modalValue,
13763
- getAdsenseCode: _this2.getAdsenseCode,
13764
- openModal: _this2.openModal,
13765
- closeModal: _this2.closeModal,
13766
- updateRandomAds: _this2.updateRandomAds,
13767
- updateRotatorAds: _this2.updateRotatorAds
13768
- }));
13769
-
13770
- case "wizard_target":
13771
- return /*#__PURE__*/_react["default"].createElement(_QuadsAdTargeting["default"], _extends({}, props, {
13772
- parentState: _this2.state,
13773
- updateVisitorTarget: _this2.updateVisitorTarget,
13774
- updateVisibility: _this2.updateVisibility,
13775
- adFormChangeHandler: _this2.adFormChangeHandler,
13776
- movePrev: _this2.movePrev,
13777
- publish: _this2.publish,
13778
- onListSearchHover: _this2.onListSearchHover
13779
- }));
13780
-
13781
- case "wizard_publish":
13782
- return /*#__PURE__*/_react["default"].createElement(_QuadsAdPublish["default"], _extends({}, props, {
13783
- parentState: _this2.state,
13784
- adFormChangeHandler: _this2.adFormChangeHandler,
13785
- movePrev: _this2.movePrev
13786
- }));
13787
-
13788
- default:
13789
- return null;
13790
- }
13791
- }
13792
- })));
13793
- }
13794
- }]);
13795
-
13796
- return QuadsAdCreateRouter;
13797
- }(_react.Component);
13798
-
13799
- var _default = QuadsAdCreateRouter;
13800
- exports["default"] = _default;
13801
-
13802
- /***/ }),
13803
- /* 212 */
13804
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
13805
-
13806
- "use strict";
13807
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
13808
- /* harmony default export */ __webpack_exports__["a"] = (hasSymbol ? Symbol.for('mui.nested') : '__THEME_NESTED__');
13809
-
13810
- /***/ }),
13811
- /* 213 */
13812
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
13813
-
13814
- "use strict";
13815
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createStyles__ = __webpack_require__(466);
13816
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__createStyles__["a"]; });
13817
-
13818
-
13819
- /***/ }),
13820
- /* 214 */
13821
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
13822
-
13823
- "use strict";
13824
- /* unused harmony export isBrowser */
13825
- 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; };
13826
-
13827
- var isBrowser = (typeof window === "undefined" ? "undefined" : _typeof(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof(document)) === 'object' && document.nodeType === 9;
13828
-
13829
- /* harmony default export */ __webpack_exports__["a"] = (isBrowser);
13830
-
13831
-
13832
- /***/ }),
13833
- /* 215 */
13834
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
13835
-
13836
- "use strict";
13837
- /* harmony export (immutable) */ __webpack_exports__["a"] = _arrayLikeToArray;
13838
- function _arrayLikeToArray(arr, len) {
13839
- if (len == null || len > arr.length) len = arr.length;
13840
-
13841
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
13842
- arr2[i] = arr[i];
13843
- }
13844
-
13845
- return arr2;
13846
- }
13847
-
13848
- /***/ }),
13849
- /* 216 */
13850
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
13851
-
13852
- "use strict";
13853
- /* harmony export (immutable) */ __webpack_exports__["a"] = _iterableToArray;
13854
- function _iterableToArray(iter) {
13855
- if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
13856
- }
13857
-
13858
- /***/ }),
13859
- /* 217 */
13860
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
13861
-
13862
- "use strict";
13863
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
13864
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
13865
-
13866
- var ThemeContext = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createContext(null);
13867
-
13868
- if (process.env.NODE_ENV !== 'production') {
13869
- ThemeContext.displayName = 'ThemeContext';
13870
- }
13871
-
13872
- /* harmony default export */ __webpack_exports__["a"] = (ThemeContext);
13873
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
13874
-
13875
- /***/ }),
13876
- /* 218 */
13877
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
13878
-
13879
- "use strict";
13880
- /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export sheetsManager */
13881
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return StylesContext; });
13882
- /* harmony export (immutable) */ __webpack_exports__["b"] = StylesProvider;
13883
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
13884
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
13885
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
13886
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
13887
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
13888
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
13889
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__material_ui_utils__ = __webpack_require__(7);
13890
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__createGenerateClassName__ = __webpack_require__(87);
13891
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_jss__ = __webpack_require__(49);
13892
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__jssPreset__ = __webpack_require__(132);
13893
-
13894
-
13895
-
13896
-
13897
-
13898
-
13899
-
13900
- // Default JSS instance.
13901
-
13902
- 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.
13903
- //
13904
- // The counter-based approach doesn't tolerate any mistake.
13905
- // It's much safer to use the same counter everywhere.
13906
-
13907
- var generateClassName = Object(__WEBPACK_IMPORTED_MODULE_5__createGenerateClassName__["a" /* default */])(); // Exported for test purposes
13908
-
13909
- var sheetsManager = new Map();
13910
- var defaultOptions = {
13911
- disableGeneration: false,
13912
- generateClassName: generateClassName,
13913
- jss: jss,
13914
- sheetsCache: null,
13915
- sheetsManager: sheetsManager,
13916
- sheetsRegistry: null
13917
- };
13918
- var StylesContext = __WEBPACK_IMPORTED_MODULE_2_react___default.a.createContext(defaultOptions);
13919
-
13920
- if (process.env.NODE_ENV !== 'production') {
13921
- StylesContext.displayName = 'StylesContext';
13922
- }
13923
-
13924
- var injectFirstNode;
13925
- function StylesProvider(props) {
13926
- var children = props.children,
13927
- _props$injectFirst = props.injectFirst,
13928
- injectFirst = _props$injectFirst === void 0 ? false : _props$injectFirst,
13929
- _props$disableGenerat = props.disableGeneration,
13930
- disableGeneration = _props$disableGenerat === void 0 ? false : _props$disableGenerat,
13931
- localOptions = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["children", "injectFirst", "disableGeneration"]);
13932
-
13933
- var outerOptions = __WEBPACK_IMPORTED_MODULE_2_react___default.a.useContext(StylesContext);
13934
-
13935
- var context = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, outerOptions, {
13936
- disableGeneration: disableGeneration
13937
- }, localOptions);
13938
-
13939
- if (process.env.NODE_ENV !== 'production') {
13940
- if (typeof window === 'undefined' && !context.sheetsManager) {
13941
- console.error('Material-UI: You need to use the ServerStyleSheets API when rendering on the server.');
13942
- }
13943
- }
13944
-
13945
- if (process.env.NODE_ENV !== 'production') {
13946
- if (context.jss.options.insertionPoint && injectFirst) {
13947
- console.error('Material-UI: You cannot use a custom insertionPoint and <StylesContext injectFirst> at the same time.');
13948
- }
13949
- }
13950
-
13951
- if (process.env.NODE_ENV !== 'production') {
13952
- if (injectFirst && localOptions.jss) {
13953
- console.error('Material-UI: You cannot use the jss and injectFirst props at the same time.');
13954
- }
13955
- }
13956
-
13957
- if (!context.jss.options.insertionPoint && injectFirst && typeof window !== 'undefined') {
13958
- if (!injectFirstNode) {
13959
- var head = document.head;
13960
- injectFirstNode = document.createComment('mui-inject-first');
13961
- head.insertBefore(injectFirstNode, head.firstChild);
13962
- }
13963
-
13964
- context.jss = Object(__WEBPACK_IMPORTED_MODULE_6_jss__["c" /* create */])({
13965
- plugins: Object(__WEBPACK_IMPORTED_MODULE_7__jssPreset__["a" /* default */])().plugins,
13966
- insertionPoint: injectFirstNode
13967
- });
13968
- }
13969
-
13970
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(StylesContext.Provider, {
13971
- value: context
13972
- }, children);
13973
- }
13974
- process.env.NODE_ENV !== "production" ? StylesProvider.propTypes = {
13975
- /**
13976
- * Your component tree.
13977
- */
13978
- children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node.isRequired,
13979
-
13980
- /**
13981
- * You can disable the generation of the styles with this option.
13982
- * It can be useful when traversing the React tree outside of the HTML
13983
- * rendering step on the server.
13984
- * Let's say you are using react-apollo to extract all
13985
- * the queries made by the interface server-side - you can significantly speed up the traversal with this prop.
13986
- */
13987
- disableGeneration: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
13988
-
13989
- /**
13990
- * JSS's class name generator.
13991
- */
13992
- generateClassName: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
13993
-
13994
- /**
13995
- * By default, the styles are injected last in the <head> element of the page.
13996
- * As a result, they gain more specificity than any other style sheet.
13997
- * If you want to override Material-UI's styles, set this prop.
13998
- */
13999
- injectFirst: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
14000
-
14001
- /**
14002
- * JSS's instance.
14003
- */
14004
- jss: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
14005
-
14006
- /**
14007
- * @ignore
14008
- */
14009
- serverGenerateClassName: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
14010
-
14011
- /**
14012
- * @ignore
14013
- *
14014
- * Beta feature.
14015
- *
14016
- * Cache for the sheets.
14017
- */
14018
- sheetsCache: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
14019
-
14020
- /**
14021
- * @ignore
14022
- *
14023
- * The sheetsManager is used to deduplicate style sheet injection in the page.
14024
- * It's deduplicating using the (theme, styles) couple.
14025
- * On the server, you should provide a new instance for each request.
14026
- */
14027
- sheetsManager: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
14028
-
14029
- /**
14030
- * @ignore
14031
- *
14032
- * Collect the sheets.
14033
- */
14034
- sheetsRegistry: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object
14035
- } : void 0;
14036
-
14037
- if (process.env.NODE_ENV !== 'production') {
14038
- process.env.NODE_ENV !== "production" ? StylesProvider.propTypes = Object(__WEBPACK_IMPORTED_MODULE_4__material_ui_utils__["f" /* exactProp */])(StylesProvider.propTypes) : void 0;
14039
- }
14040
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
14041
-
14042
- /***/ }),
14043
- /* 219 */
14044
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14045
-
14046
- "use strict";
14047
- // We use the same empty object to ref count the styles that don't need a theme object.
14048
- var noopTheme = {};
14049
- /* harmony default export */ __webpack_exports__["a"] = (noopTheme);
14050
-
14051
- /***/ }),
14052
- /* 220 */
14053
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14054
-
14055
- "use strict";
14056
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ServerStyleSheets__ = __webpack_require__(487);
14057
- /* unused harmony reexport default */
14058
-
14059
-
14060
- /***/ }),
14061
- /* 221 */
14062
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14063
-
14064
- "use strict";
14065
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__styled__ = __webpack_require__(488);
14066
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__styled__["a"]; });
14067
-
14068
-
14069
- /***/ }),
14070
- /* 222 */
14071
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14072
-
14073
- "use strict";
14074
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ThemeProvider__ = __webpack_require__(489);
14075
- /* unused harmony reexport default */
14076
-
14077
-
14078
- /***/ }),
14079
- /* 223 */
14080
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14081
-
14082
- "use strict";
14083
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__withStyles__ = __webpack_require__(490);
14084
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__withStyles__["a"]; });
14085
-
14086
-
14087
- /***/ }),
14088
- /* 224 */
14089
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14090
-
14091
- "use strict";
14092
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__withTheme__ = __webpack_require__(225);
14093
- /* unused harmony reexport default */
14094
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__withTheme__["a"]; });
14095
-
14096
-
14097
-
14098
- /***/ }),
14099
- /* 225 */
14100
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14101
-
14102
- "use strict";
14103
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = withThemeCreator;
14104
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
14105
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
14106
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
14107
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
14108
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
14109
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
14110
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics__ = __webpack_require__(71);
14111
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics__);
14112
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__material_ui_utils__ = __webpack_require__(7);
14113
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__useTheme__ = __webpack_require__(61);
14114
-
14115
-
14116
-
14117
-
14118
-
14119
-
14120
-
14121
- function withThemeCreator() {
14122
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
14123
- var defaultTheme = options.defaultTheme;
14124
-
14125
- var withTheme = function withTheme(Component) {
14126
- if (process.env.NODE_ENV !== 'production') {
14127
- if (Component === undefined) {
14128
- throw new Error(['You are calling withTheme(Component) with an undefined component.', 'You may have forgotten to import it.'].join('\n'));
14129
- }
14130
- }
14131
-
14132
- var WithTheme = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react___default.a.forwardRef(function WithTheme(props, ref) {
14133
- var innerRef = props.innerRef,
14134
- other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["innerRef"]);
14135
-
14136
- var theme = Object(__WEBPACK_IMPORTED_MODULE_6__useTheme__["a" /* default */])() || defaultTheme;
14137
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react___default.a.createElement(Component, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
14138
- theme: theme,
14139
- ref: innerRef || ref
14140
- }, other));
14141
- });
14142
- process.env.NODE_ENV !== "production" ? WithTheme.propTypes = {
14143
- /**
14144
- * Use that prop to pass a ref to the decorated component.
14145
- * @deprecated
14146
- */
14147
- innerRef: Object(__WEBPACK_IMPORTED_MODULE_5__material_ui_utils__["b" /* 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) {
14148
- if (props.innerRef == null) {
14149
- return null;
14150
- }
14151
-
14152
- 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.');
14153
- })
14154
- } : void 0;
14155
-
14156
- if (process.env.NODE_ENV !== 'production') {
14157
- WithTheme.displayName = "WithTheme(".concat(Object(__WEBPACK_IMPORTED_MODULE_5__material_ui_utils__["h" /* getDisplayName */])(Component), ")");
14158
- }
14159
-
14160
- __WEBPACK_IMPORTED_MODULE_4_hoist_non_react_statics___default()(WithTheme, Component);
14161
-
14162
- if (process.env.NODE_ENV !== 'production') {
14163
- // Exposed for test purposes.
14164
- WithTheme.Naked = Component;
14165
- }
14166
-
14167
- return WithTheme;
14168
- };
14169
-
14170
- return withTheme;
14171
- } // Provide the theme object as a prop to the input component.
14172
- // It's an alternative API to useTheme().
14173
- // We encourage the usage of useTheme() where possible.
14174
-
14175
- var withTheme = withThemeCreator();
14176
- /* unused harmony default export */ var _unused_webpack_default_export = (withTheme);
14177
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
14178
-
14179
- /***/ }),
14180
- /* 226 */
14181
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14182
-
14183
- "use strict";
14184
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return keys; });
14185
- /* harmony export (immutable) */ __webpack_exports__["a"] = createBreakpoints;
14186
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
14187
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
14188
-
14189
-
14190
- // Sorted ASC by size. That's important.
14191
- // It can't be configured as it's used statically for propTypes.
14192
- var keys = ['xs', 'sm', 'md', 'lg', 'xl']; // Keep in mind that @media is inclusive by the CSS specification.
14193
-
14194
- function createBreakpoints(breakpoints) {
14195
- var _breakpoints$values = breakpoints.values,
14196
- values = _breakpoints$values === void 0 ? {
14197
- xs: 0,
14198
- sm: 600,
14199
- md: 960,
14200
- lg: 1280,
14201
- xl: 1920
14202
- } : _breakpoints$values,
14203
- _breakpoints$unit = breakpoints.unit,
14204
- unit = _breakpoints$unit === void 0 ? 'px' : _breakpoints$unit,
14205
- _breakpoints$step = breakpoints.step,
14206
- step = _breakpoints$step === void 0 ? 5 : _breakpoints$step,
14207
- other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(breakpoints, ["values", "unit", "step"]);
14208
-
14209
- function up(key) {
14210
- var value = typeof values[key] === 'number' ? values[key] : key;
14211
- return "@media (min-width:".concat(value).concat(unit, ")");
14212
- }
14213
-
14214
- function down(key) {
14215
- var endIndex = keys.indexOf(key) + 1;
14216
- var upperbound = values[keys[endIndex]];
14217
-
14218
- if (endIndex === keys.length) {
14219
- // xl down applies to all sizes
14220
- return up('xs');
14221
- }
14222
-
14223
- var value = typeof upperbound === 'number' && endIndex > 0 ? upperbound : key;
14224
- return "@media (max-width:".concat(value - step / 100).concat(unit, ")");
14225
- }
14226
-
14227
- function between(start, end) {
14228
- var endIndex = keys.indexOf(end);
14229
-
14230
- if (endIndex === keys.length - 1) {
14231
- return up(start);
14232
- }
14233
-
14234
- 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, ")");
14235
- }
14236
-
14237
- function only(key) {
14238
- return between(key, key);
14239
- }
14240
-
14241
- function width(key) {
14242
- return values[key];
14243
- }
14244
-
14245
- return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
14246
- keys: keys,
14247
- values: values,
14248
- up: up,
14249
- down: down,
14250
- between: between,
14251
- only: only,
14252
- width: width
14253
- }, other);
14254
- }
14255
-
14256
- /***/ }),
14257
- /* 227 */
14258
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14259
-
14260
- "use strict";
14261
- var common = {
14262
- black: '#000',
14263
- white: '#fff'
14264
- };
14265
- /* harmony default export */ __webpack_exports__["a"] = (common);
14266
-
14267
- /***/ }),
14268
- /* 228 */
14269
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14270
-
14271
- "use strict";
14272
- var grey = {
14273
- 50: '#fafafa',
14274
- 100: '#f5f5f5',
14275
- 200: '#eeeeee',
14276
- 300: '#e0e0e0',
14277
- 400: '#bdbdbd',
14278
- 500: '#9e9e9e',
14279
- 600: '#757575',
14280
- 700: '#616161',
14281
- 800: '#424242',
14282
- 900: '#212121',
14283
- A100: '#d5d5d5',
14284
- A200: '#aaaaaa',
14285
- A400: '#303030',
14286
- A700: '#616161'
14287
- };
14288
- /* harmony default export */ __webpack_exports__["a"] = (grey);
14289
-
14290
- /***/ }),
14291
- /* 229 */
14292
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14293
-
14294
- "use strict";
14295
- var indigo = {
14296
- 50: '#e8eaf6',
14297
- 100: '#c5cae9',
14298
- 200: '#9fa8da',
14299
- 300: '#7986cb',
14300
- 400: '#5c6bc0',
14301
- 500: '#3f51b5',
14302
- 600: '#3949ab',
14303
- 700: '#303f9f',
14304
- 800: '#283593',
14305
- 900: '#1a237e',
14306
- A100: '#8c9eff',
14307
- A200: '#536dfe',
14308
- A400: '#3d5afe',
14309
- A700: '#304ffe'
14310
- };
14311
- /* harmony default export */ __webpack_exports__["a"] = (indigo);
14312
-
14313
- /***/ }),
14314
- /* 230 */
14315
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14316
-
14317
- "use strict";
14318
- var pink = {
14319
- 50: '#fce4ec',
14320
- 100: '#f8bbd0',
14321
- 200: '#f48fb1',
14322
- 300: '#f06292',
14323
- 400: '#ec407a',
14324
- 500: '#e91e63',
14325
- 600: '#d81b60',
14326
- 700: '#c2185b',
14327
- 800: '#ad1457',
14328
- 900: '#880e4f',
14329
- A100: '#ff80ab',
14330
- A200: '#ff4081',
14331
- A400: '#f50057',
14332
- A700: '#c51162'
14333
- };
14334
- /* harmony default export */ __webpack_exports__["a"] = (pink);
14335
-
14336
- /***/ }),
14337
- /* 231 */
14338
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14339
-
14340
- "use strict";
14341
- var red = {
14342
- 50: '#ffebee',
14343
- 100: '#ffcdd2',
14344
- 200: '#ef9a9a',
14345
- 300: '#e57373',
14346
- 400: '#ef5350',
14347
- 500: '#f44336',
14348
- 600: '#e53935',
14349
- 700: '#d32f2f',
14350
- 800: '#c62828',
14351
- 900: '#b71c1c',
14352
- A100: '#ff8a80',
14353
- A200: '#ff5252',
14354
- A400: '#ff1744',
14355
- A700: '#d50000'
14356
- };
14357
- /* harmony default export */ __webpack_exports__["a"] = (red);
14358
-
14359
- /***/ }),
14360
- /* 232 */
14361
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14362
-
14363
- "use strict";
14364
- var orange = {
14365
- 50: '#fff3e0',
14366
- 100: '#ffe0b2',
14367
- 200: '#ffcc80',
14368
- 300: '#ffb74d',
14369
- 400: '#ffa726',
14370
- 500: '#ff9800',
14371
- 600: '#fb8c00',
14372
- 700: '#f57c00',
14373
- 800: '#ef6c00',
14374
- 900: '#e65100',
14375
- A100: '#ffd180',
14376
- A200: '#ffab40',
14377
- A400: '#ff9100',
14378
- A700: '#ff6d00'
14379
- };
14380
- /* harmony default export */ __webpack_exports__["a"] = (orange);
14381
-
14382
- /***/ }),
14383
- /* 233 */
14384
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14385
-
14386
- "use strict";
14387
- var blue = {
14388
- 50: '#e3f2fd',
14389
- 100: '#bbdefb',
14390
- 200: '#90caf9',
14391
- 300: '#64b5f6',
14392
- 400: '#42a5f5',
14393
- 500: '#2196f3',
14394
- 600: '#1e88e5',
14395
- 700: '#1976d2',
14396
- 800: '#1565c0',
14397
- 900: '#0d47a1',
14398
- A100: '#82b1ff',
14399
- A200: '#448aff',
14400
- A400: '#2979ff',
14401
- A700: '#2962ff'
14402
- };
14403
- /* harmony default export */ __webpack_exports__["a"] = (blue);
14404
-
14405
- /***/ }),
14406
- /* 234 */
14407
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14408
-
14409
- "use strict";
14410
- var green = {
14411
- 50: '#e8f5e9',
14412
- 100: '#c8e6c9',
14413
- 200: '#a5d6a7',
14414
- 300: '#81c784',
14415
- 400: '#66bb6a',
14416
- 500: '#4caf50',
14417
- 600: '#43a047',
14418
- 700: '#388e3c',
14419
- 800: '#2e7d32',
14420
- 900: '#1b5e20',
14421
- A100: '#b9f6ca',
14422
- A200: '#69f0ae',
14423
- A400: '#00e676',
14424
- A700: '#00c853'
14425
- };
14426
- /* harmony default export */ __webpack_exports__["a"] = (green);
14427
-
14428
- /***/ }),
14429
- /* 235 */
14430
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14431
-
14432
- "use strict";
14433
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__borders__ = __webpack_require__(236);
14434
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__borders__["a"]; });
14435
- /* unused harmony namespace reexport */
14436
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__breakpoints__ = __webpack_require__(136);
14437
- /* unused harmony reexport breakpoints */
14438
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__compose__ = __webpack_require__(39);
14439
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_2__compose__["a"]; });
14440
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__css__ = __webpack_require__(497);
14441
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_3__css__["a"]; });
14442
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__display__ = __webpack_require__(498);
14443
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_4__display__["a"]; });
14444
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__flexbox__ = __webpack_require__(238);
14445
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_5__flexbox__["a"]; });
14446
- /* unused harmony namespace reexport */
14447
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__grid__ = __webpack_require__(239);
14448
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_6__grid__["a"]; });
14449
- /* unused harmony namespace reexport */
14450
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__palette__ = __webpack_require__(240);
14451
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_7__palette__["a"]; });
14452
- /* unused harmony namespace reexport */
14453
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__positions__ = __webpack_require__(241);
14454
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return __WEBPACK_IMPORTED_MODULE_8__positions__["a"]; });
14455
- /* unused harmony namespace reexport */
14456
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__shadows__ = __webpack_require__(499);
14457
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return __WEBPACK_IMPORTED_MODULE_9__shadows__["a"]; });
14458
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__sizing__ = __webpack_require__(242);
14459
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return __WEBPACK_IMPORTED_MODULE_10__sizing__["a"]; });
14460
- /* unused harmony namespace reexport */
14461
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__spacing__ = __webpack_require__(243);
14462
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return __WEBPACK_IMPORTED_MODULE_11__spacing__["b"]; });
14463
- /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_11__spacing__["a"]; });
14464
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__style__ = __webpack_require__(36);
14465
- /* unused harmony reexport style */
14466
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__typography__ = __webpack_require__(246);
14467
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return __WEBPACK_IMPORTED_MODULE_13__typography__["a"]; });
14468
- /* unused harmony namespace reexport */
14469
- /** @license Material-UI v4.11.2
14470
- *
14471
- * This source code is licensed under the MIT license found in the
14472
- * LICENSE file in the root directory of this source tree.
14473
- */
14474
-
14475
-
14476
-
14477
-
14478
-
14479
-
14480
-
14481
-
14482
-
14483
-
14484
-
14485
-
14486
-
14487
-
14488
-
14489
-
14490
-
14491
-
14492
-
14493
-
14494
-
14495
-
14496
-
14497
- /***/ }),
14498
- /* 236 */
14499
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14500
-
14501
- "use strict";
14502
- /* unused harmony export border */
14503
- /* unused harmony export borderTop */
14504
- /* unused harmony export borderRight */
14505
- /* unused harmony export borderBottom */
14506
- /* unused harmony export borderLeft */
14507
- /* unused harmony export borderColor */
14508
- /* unused harmony export borderRadius */
14509
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(36);
14510
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(39);
14511
-
14512
-
14513
-
14514
- function getBorder(value) {
14515
- if (typeof value !== 'number') {
14516
- return value;
14517
- }
14518
-
14519
- return "".concat(value, "px solid");
14520
- }
14521
-
14522
- var border = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14523
- prop: 'border',
14524
- themeKey: 'borders',
14525
- transform: getBorder
14526
- });
14527
- var borderTop = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14528
- prop: 'borderTop',
14529
- themeKey: 'borders',
14530
- transform: getBorder
14531
- });
14532
- var borderRight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14533
- prop: 'borderRight',
14534
- themeKey: 'borders',
14535
- transform: getBorder
14536
- });
14537
- var borderBottom = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14538
- prop: 'borderBottom',
14539
- themeKey: 'borders',
14540
- transform: getBorder
14541
- });
14542
- var borderLeft = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14543
- prop: 'borderLeft',
14544
- themeKey: 'borders',
14545
- transform: getBorder
14546
- });
14547
- var borderColor = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14548
- prop: 'borderColor',
14549
- themeKey: 'palette'
14550
- });
14551
- var borderRadius = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14552
- prop: 'borderRadius',
14553
- themeKey: 'shape'
14554
- });
14555
- var borders = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderRadius);
14556
- /* harmony default export */ __webpack_exports__["a"] = (borders);
14557
-
14558
- /***/ }),
14559
- /* 237 */
14560
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14561
-
14562
- "use strict";
14563
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(2);
14564
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);
14565
-
14566
- 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]) : {};
14567
- /* harmony default export */ __webpack_exports__["a"] = (responsivePropType);
14568
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
14569
-
14570
- /***/ }),
14571
- /* 238 */
14572
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14573
-
14574
- "use strict";
14575
- /* unused harmony export flexBasis */
14576
- /* unused harmony export flexDirection */
14577
- /* unused harmony export flexWrap */
14578
- /* unused harmony export justifyContent */
14579
- /* unused harmony export alignItems */
14580
- /* unused harmony export alignContent */
14581
- /* unused harmony export order */
14582
- /* unused harmony export flex */
14583
- /* unused harmony export flexGrow */
14584
- /* unused harmony export flexShrink */
14585
- /* unused harmony export alignSelf */
14586
- /* unused harmony export justifyItems */
14587
- /* unused harmony export justifySelf */
14588
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(36);
14589
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(39);
14590
-
14591
-
14592
- var flexBasis = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14593
- prop: 'flexBasis'
14594
- });
14595
- var flexDirection = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14596
- prop: 'flexDirection'
14597
- });
14598
- var flexWrap = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14599
- prop: 'flexWrap'
14600
- });
14601
- var justifyContent = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14602
- prop: 'justifyContent'
14603
- });
14604
- var alignItems = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14605
- prop: 'alignItems'
14606
- });
14607
- var alignContent = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14608
- prop: 'alignContent'
14609
- });
14610
- var order = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14611
- prop: 'order'
14612
- });
14613
- var flex = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14614
- prop: 'flex'
14615
- });
14616
- var flexGrow = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14617
- prop: 'flexGrow'
14618
- });
14619
- var flexShrink = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14620
- prop: 'flexShrink'
14621
- });
14622
- var alignSelf = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14623
- prop: 'alignSelf'
14624
- });
14625
- var justifyItems = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14626
- prop: 'justifyItems'
14627
- });
14628
- var justifySelf = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14629
- prop: 'justifySelf'
14630
- });
14631
- var flexbox = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(flexBasis, flexDirection, flexWrap, justifyContent, alignItems, alignContent, order, flex, flexGrow, flexShrink, alignSelf, justifyItems, justifySelf);
14632
- /* harmony default export */ __webpack_exports__["a"] = (flexbox);
14633
-
14634
- /***/ }),
14635
- /* 239 */
14636
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14637
-
14638
- "use strict";
14639
- /* unused harmony export gridGap */
14640
- /* unused harmony export gridColumnGap */
14641
- /* unused harmony export gridRowGap */
14642
- /* unused harmony export gridColumn */
14643
- /* unused harmony export gridRow */
14644
- /* unused harmony export gridAutoFlow */
14645
- /* unused harmony export gridAutoColumns */
14646
- /* unused harmony export gridAutoRows */
14647
- /* unused harmony export gridTemplateColumns */
14648
- /* unused harmony export gridTemplateRows */
14649
- /* unused harmony export gridTemplateAreas */
14650
- /* unused harmony export gridArea */
14651
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(36);
14652
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(39);
14653
-
14654
-
14655
- var gridGap = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14656
- prop: 'gridGap'
14657
- });
14658
- var gridColumnGap = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14659
- prop: 'gridColumnGap'
14660
- });
14661
- var gridRowGap = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14662
- prop: 'gridRowGap'
14663
- });
14664
- var gridColumn = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14665
- prop: 'gridColumn'
14666
- });
14667
- var gridRow = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14668
- prop: 'gridRow'
14669
- });
14670
- var gridAutoFlow = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14671
- prop: 'gridAutoFlow'
14672
- });
14673
- var gridAutoColumns = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14674
- prop: 'gridAutoColumns'
14675
- });
14676
- var gridAutoRows = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14677
- prop: 'gridAutoRows'
14678
- });
14679
- var gridTemplateColumns = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14680
- prop: 'gridTemplateColumns'
14681
- });
14682
- var gridTemplateRows = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14683
- prop: 'gridTemplateRows'
14684
- });
14685
- var gridTemplateAreas = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14686
- prop: 'gridTemplateAreas'
14687
- });
14688
- var gridArea = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14689
- prop: 'gridArea'
14690
- });
14691
- var grid = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(gridGap, gridColumnGap, gridRowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);
14692
- /* harmony default export */ __webpack_exports__["a"] = (grid);
14693
-
14694
- /***/ }),
14695
- /* 240 */
14696
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14697
-
14698
- "use strict";
14699
- /* unused harmony export color */
14700
- /* unused harmony export bgcolor */
14701
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(36);
14702
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(39);
14703
-
14704
-
14705
- var color = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14706
- prop: 'color',
14707
- themeKey: 'palette'
14708
- });
14709
- var bgcolor = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14710
- prop: 'bgcolor',
14711
- cssProperty: 'backgroundColor',
14712
- themeKey: 'palette'
14713
- });
14714
- var palette = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(color, bgcolor);
14715
- /* harmony default export */ __webpack_exports__["a"] = (palette);
14716
-
14717
- /***/ }),
14718
- /* 241 */
14719
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14720
-
14721
- "use strict";
14722
- /* unused harmony export position */
14723
- /* unused harmony export zIndex */
14724
- /* unused harmony export top */
14725
- /* unused harmony export right */
14726
- /* unused harmony export bottom */
14727
- /* unused harmony export left */
14728
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(36);
14729
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(39);
14730
-
14731
-
14732
- var position = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14733
- prop: 'position'
14734
- });
14735
- var zIndex = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14736
- prop: 'zIndex',
14737
- themeKey: 'zIndex'
14738
- });
14739
- var top = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14740
- prop: 'top'
14741
- });
14742
- var right = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14743
- prop: 'right'
14744
- });
14745
- var bottom = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14746
- prop: 'bottom'
14747
- });
14748
- var left = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14749
- prop: 'left'
14750
- });
14751
- /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(position, zIndex, top, right, bottom, left));
14752
-
14753
- /***/ }),
14754
- /* 242 */
14755
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14756
-
14757
- "use strict";
14758
- /* unused harmony export width */
14759
- /* unused harmony export maxWidth */
14760
- /* unused harmony export minWidth */
14761
- /* unused harmony export height */
14762
- /* unused harmony export maxHeight */
14763
- /* unused harmony export minHeight */
14764
- /* unused harmony export sizeWidth */
14765
- /* unused harmony export sizeHeight */
14766
- /* unused harmony export boxSizing */
14767
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(36);
14768
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(39);
14769
-
14770
-
14771
-
14772
- function transform(value) {
14773
- return value <= 1 ? "".concat(value * 100, "%") : value;
14774
- }
14775
-
14776
- var width = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14777
- prop: 'width',
14778
- transform: transform
14779
- });
14780
- var maxWidth = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14781
- prop: 'maxWidth',
14782
- transform: transform
14783
- });
14784
- var minWidth = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14785
- prop: 'minWidth',
14786
- transform: transform
14787
- });
14788
- var height = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14789
- prop: 'height',
14790
- transform: transform
14791
- });
14792
- var maxHeight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14793
- prop: 'maxHeight',
14794
- transform: transform
14795
- });
14796
- var minHeight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14797
- prop: 'minHeight',
14798
- transform: transform
14799
- });
14800
- var sizeWidth = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14801
- prop: 'size',
14802
- cssProperty: 'width',
14803
- transform: transform
14804
- });
14805
- var sizeHeight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14806
- prop: 'size',
14807
- cssProperty: 'height',
14808
- transform: transform
14809
- });
14810
- var boxSizing = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
14811
- prop: 'boxSizing'
14812
- });
14813
- var sizing = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);
14814
- /* harmony default export */ __webpack_exports__["a"] = (sizing);
14815
-
14816
- /***/ }),
14817
- /* 243 */
14818
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14819
-
14820
- "use strict";
14821
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = createUnarySpacing;
14822
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_slicedToArray__ = __webpack_require__(20);
14823
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__responsivePropType__ = __webpack_require__(237);
14824
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__breakpoints__ = __webpack_require__(136);
14825
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__merge__ = __webpack_require__(91);
14826
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__memoize__ = __webpack_require__(501);
14827
-
14828
-
14829
-
14830
-
14831
-
14832
- var properties = {
14833
- m: 'margin',
14834
- p: 'padding'
14835
- };
14836
- var directions = {
14837
- t: 'Top',
14838
- r: 'Right',
14839
- b: 'Bottom',
14840
- l: 'Left',
14841
- x: ['Left', 'Right'],
14842
- y: ['Top', 'Bottom']
14843
- };
14844
- var aliases = {
14845
- marginX: 'mx',
14846
- marginY: 'my',
14847
- paddingX: 'px',
14848
- paddingY: 'py'
14849
- }; // memoize() impact:
14850
- // From 300,000 ops/sec
14851
- // To 350,000 ops/sec
14852
-
14853
- var getCssProperties = Object(__WEBPACK_IMPORTED_MODULE_4__memoize__["a" /* default */])(function (prop) {
14854
- // It's not a shorthand notation.
14855
- if (prop.length > 2) {
14856
- if (aliases[prop]) {
14857
- prop = aliases[prop];
14858
- } else {
14859
- return [prop];
14860
- }
14861
- }
14862
-
14863
- var _prop$split = prop.split(''),
14864
- _prop$split2 = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_slicedToArray__["a" /* default */])(_prop$split, 2),
14865
- a = _prop$split2[0],
14866
- b = _prop$split2[1];
14867
-
14868
- var property = properties[a];
14869
- var direction = directions[b] || '';
14870
- return Array.isArray(direction) ? direction.map(function (dir) {
14871
- return property + dir;
14872
- }) : [property + direction];
14873
- });
14874
- 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'];
14875
- function createUnarySpacing(theme) {
14876
- var themeSpacing = theme.spacing || 8;
14877
-
14878
- if (typeof themeSpacing === 'number') {
14879
- return function (abs) {
14880
- if (process.env.NODE_ENV !== 'production') {
14881
- if (typeof abs !== 'number') {
14882
- console.error("Material-UI: Expected spacing argument to be a number, got ".concat(abs, "."));
14883
- }
14884
- }
14885
-
14886
- return themeSpacing * abs;
14887
- };
14888
- }
14889
-
14890
- if (Array.isArray(themeSpacing)) {
14891
- return function (abs) {
14892
- if (process.env.NODE_ENV !== 'production') {
14893
- if (abs > themeSpacing.length - 1) {
14894
- console.error(["Material-UI: 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'));
14895
- }
14896
- }
14897
-
14898
- return themeSpacing[abs];
14899
- };
14900
- }
14901
-
14902
- if (typeof themeSpacing === 'function') {
14903
- return themeSpacing;
14904
- }
14905
-
14906
- if (process.env.NODE_ENV !== 'production') {
14907
- console.error(["Material-UI: The `theme.spacing` value (".concat(themeSpacing, ") is invalid."), 'It should be a number, an array or a function.'].join('\n'));
14908
- }
14909
-
14910
- return function () {
14911
- return undefined;
14912
- };
14913
- }
14914
-
14915
- function getValue(transformer, propValue) {
14916
- if (typeof propValue === 'string') {
14917
- return propValue;
14918
- }
14919
-
14920
- var abs = Math.abs(propValue);
14921
- var transformed = transformer(abs);
14922
-
14923
- if (propValue >= 0) {
14924
- return transformed;
14925
- }
14926
-
14927
- if (typeof transformed === 'number') {
14928
- return -transformed;
14929
- }
14930
-
14931
- return "-".concat(transformed);
14932
- }
14933
-
14934
- function getStyleFromPropValue(cssProperties, transformer) {
14935
- return function (propValue) {
14936
- return cssProperties.reduce(function (acc, cssProperty) {
14937
- acc[cssProperty] = getValue(transformer, propValue);
14938
- return acc;
14939
- }, {});
14940
- };
14941
- }
14942
-
14943
- function spacing(props) {
14944
- var theme = props.theme;
14945
- var transformer = createUnarySpacing(theme);
14946
- return Object.keys(props).map(function (prop) {
14947
- // Using a hash computation over an array iteration could be faster, but with only 28 items,
14948
- // it's doesn't worth the bundle size.
14949
- if (spacingKeys.indexOf(prop) === -1) {
14950
- return null;
14951
- }
14952
-
14953
- var cssProperties = getCssProperties(prop);
14954
- var styleFromPropValue = getStyleFromPropValue(cssProperties, transformer);
14955
- var propValue = props[prop];
14956
- return Object(__WEBPACK_IMPORTED_MODULE_2__breakpoints__["a" /* handleBreakpoints */])(props, propValue, styleFromPropValue);
14957
- }).reduce(__WEBPACK_IMPORTED_MODULE_3__merge__["a" /* default */], {});
14958
- }
14959
-
14960
- spacing.propTypes = process.env.NODE_ENV !== 'production' ? spacingKeys.reduce(function (obj, key) {
14961
- obj[key] = __WEBPACK_IMPORTED_MODULE_1__responsivePropType__["a" /* default */];
14962
- return obj;
14963
- }, {}) : {};
14964
- spacing.filterProps = spacingKeys;
14965
- /* harmony default export */ __webpack_exports__["b"] = (spacing);
14966
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
14967
-
14968
- /***/ }),
14969
- /* 244 */
14970
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14971
-
14972
- "use strict";
14973
- /* harmony export (immutable) */ __webpack_exports__["a"] = _arrayWithHoles;
14974
- function _arrayWithHoles(arr) {
14975
- if (Array.isArray(arr)) return arr;
14976
- }
14977
-
14978
- /***/ }),
14979
- /* 245 */
14980
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14981
-
14982
- "use strict";
14983
- /* harmony export (immutable) */ __webpack_exports__["a"] = _nonIterableRest;
14984
- function _nonIterableRest() {
14985
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
14986
- }
14987
-
14988
- /***/ }),
14989
- /* 246 */
14990
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14991
-
14992
- "use strict";
14993
- /* unused harmony export fontFamily */
14994
- /* unused harmony export fontSize */
14995
- /* unused harmony export fontStyle */
14996
- /* unused harmony export fontWeight */
14997
- /* unused harmony export letterSpacing */
14998
- /* unused harmony export lineHeight */
14999
- /* unused harmony export textAlign */
15000
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style__ = __webpack_require__(36);
15001
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__compose__ = __webpack_require__(39);
15002
-
15003
-
15004
- var fontFamily = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15005
- prop: 'fontFamily',
15006
- themeKey: 'typography'
15007
- });
15008
- var fontSize = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15009
- prop: 'fontSize',
15010
- themeKey: 'typography'
15011
- });
15012
- var fontStyle = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15013
- prop: 'fontStyle',
15014
- themeKey: 'typography'
15015
- });
15016
- var fontWeight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15017
- prop: 'fontWeight',
15018
- themeKey: 'typography'
15019
- });
15020
- var letterSpacing = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15021
- prop: 'letterSpacing'
15022
- });
15023
- var lineHeight = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15024
- prop: 'lineHeight'
15025
- });
15026
- var textAlign = Object(__WEBPACK_IMPORTED_MODULE_0__style__["a" /* default */])({
15027
- prop: 'textAlign'
15028
- });
15029
- var typography = Object(__WEBPACK_IMPORTED_MODULE_1__compose__["a" /* default */])(fontFamily, fontSize, fontStyle, fontWeight, letterSpacing, lineHeight, textAlign);
15030
- /* harmony default export */ __webpack_exports__["a"] = (typography);
15031
-
15032
- /***/ }),
15033
- /* 247 */
15034
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15035
-
15036
- "use strict";
15037
- // We need to centralize the zIndex definitions as they work
15038
- // like global values in the browser.
15039
- var zIndex = {
15040
- mobileStepper: 1000,
15041
- speedDial: 1050,
15042
- appBar: 1100,
15043
- drawer: 1200,
15044
- modal: 1300,
15045
- snackbar: 1400,
15046
- tooltip: 1500
15047
- };
15048
- /* harmony default export */ __webpack_exports__["a"] = (zIndex);
15049
-
15050
- /***/ }),
15051
- /* 248 */
15052
- /***/ (function(module, exports, __webpack_require__) {
15053
-
15054
- var arrayLikeToArray = __webpack_require__(249);
15055
-
15056
- function _unsupportedIterableToArray(o, minLen) {
15057
- if (!o) return;
15058
- if (typeof o === "string") return arrayLikeToArray(o, minLen);
15059
- var n = Object.prototype.toString.call(o).slice(8, -1);
15060
- if (n === "Object" && o.constructor) n = o.constructor.name;
15061
- if (n === "Map" || n === "Set") return Array.from(o);
15062
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
15063
- }
15064
-
15065
- module.exports = _unsupportedIterableToArray;
15066
-
15067
- /***/ }),
15068
- /* 249 */
15069
- /***/ (function(module, exports) {
15070
-
15071
- function _arrayLikeToArray(arr, len) {
15072
- if (len == null || len > arr.length) len = arr.length;
15073
-
15074
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
15075
- arr2[i] = arr[i];
15076
- }
15077
-
15078
- return arr2;
15079
- }
15080
-
15081
- module.exports = _arrayLikeToArray;
15082
-
15083
- /***/ }),
15084
- /* 250 */
15085
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15086
-
15087
- "use strict";
15088
- function areInputsEqual(newInputs, lastInputs) {
15089
- if (newInputs.length !== lastInputs.length) {
15090
- return false;
15091
- }
15092
- for (var i = 0; i < newInputs.length; i++) {
15093
- if (newInputs[i] !== lastInputs[i]) {
15094
- return false;
15095
- }
15096
- }
15097
- return true;
15098
- }
15099
-
15100
- function memoizeOne(resultFn, isEqual) {
15101
- if (isEqual === void 0) { isEqual = areInputsEqual; }
15102
- var lastThis;
15103
- var lastArgs = [];
15104
- var lastResult;
15105
- var calledOnce = false;
15106
- function memoized() {
15107
- var newArgs = [];
15108
- for (var _i = 0; _i < arguments.length; _i++) {
15109
- newArgs[_i] = arguments[_i];
15110
- }
15111
- if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
15112
- return lastResult;
15113
- }
15114
- lastResult = resultFn.apply(this, newArgs);
15115
- calledOnce = true;
15116
- lastThis = this;
15117
- lastArgs = newArgs;
15118
- return lastResult;
15119
- }
15120
- return memoized;
15121
- }
15122
-
15123
- /* harmony default export */ __webpack_exports__["a"] = (memoizeOne);
15124
-
15125
-
15126
- /***/ }),
15127
- /* 251 */
15128
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15129
-
15130
- "use strict";
15131
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return StyleSheet; });
15132
- /*
15133
-
15134
- Based off glamor's StyleSheet, thanks Sunil ❤️
15135
-
15136
- high performance StyleSheet for css-in-js systems
15137
-
15138
- - uses multiple style tags behind the scenes for millions of rules
15139
- - uses `insertRule` for appending in production for *much* faster performance
15140
-
15141
- // usage
15142
-
15143
- import { StyleSheet } from '@emotion/sheet'
15144
-
15145
- let styleSheet = new StyleSheet({ key: '', container: document.head })
15146
-
15147
- styleSheet.insert('#box { border: 1px solid red; }')
15148
- - appends a css rule into the stylesheet
15149
-
15150
- styleSheet.flush()
15151
- - empties the stylesheet of all its contents
15152
-
15153
- */
15154
- // $FlowFixMe
15155
- function sheetForTag(tag) {
15156
- if (tag.sheet) {
15157
- // $FlowFixMe
15158
- return tag.sheet;
15159
- } // this weirdness brought to you by firefox
15160
-
15161
- /* istanbul ignore next */
15162
-
15163
-
15164
- for (var i = 0; i < document.styleSheets.length; i++) {
15165
- if (document.styleSheets[i].ownerNode === tag) {
15166
- // $FlowFixMe
15167
- return document.styleSheets[i];
15168
- }
15169
- }
15170
- }
15171
-
15172
- function createStyleElement(options) {
15173
- var tag = document.createElement('style');
15174
- tag.setAttribute('data-emotion', options.key);
15175
-
15176
- if (options.nonce !== undefined) {
15177
- tag.setAttribute('nonce', options.nonce);
15178
- }
15179
-
15180
- tag.appendChild(document.createTextNode(''));
15181
- return tag;
15182
- }
15183
-
15184
- var StyleSheet =
15185
- /*#__PURE__*/
15186
- function () {
15187
- function StyleSheet(options) {
15188
- this.isSpeedy = options.speedy === undefined ? process.env.NODE_ENV === 'production' : options.speedy;
15189
- this.tags = [];
15190
- this.ctr = 0;
15191
- this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets
15192
-
15193
- this.key = options.key;
15194
- this.container = options.container;
15195
- this.before = null;
15196
- }
15197
-
15198
- var _proto = StyleSheet.prototype;
15199
-
15200
- _proto.insert = function insert(rule) {
15201
- // the max length is how many rules we have per style tag, it's 65000 in speedy mode
15202
- // it's 1 in dev because we insert source maps that map a single rule to a location
15203
- // and you can only have one source map per style tag
15204
- if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {
15205
- var _tag = createStyleElement(this);
15206
-
15207
- var before;
15208
-
15209
- if (this.tags.length === 0) {
15210
- before = this.before;
15211
- } else {
15212
- before = this.tags[this.tags.length - 1].nextSibling;
15213
- }
15214
-
15215
- this.container.insertBefore(_tag, before);
15216
- this.tags.push(_tag);
15217
- }
15218
-
15219
- var tag = this.tags[this.tags.length - 1];
15220
-
15221
- if (this.isSpeedy) {
15222
- var sheet = sheetForTag(tag);
15223
-
15224
- try {
15225
- // this is a really hot path
15226
- // we check the second character first because having "i"
15227
- // as the second character will happen less often than
15228
- // having "@" as the first character
15229
- var isImportRule = rule.charCodeAt(1) === 105 && rule.charCodeAt(0) === 64; // this is the ultrafast version, works across browsers
15230
- // the big drawback is that the css won't be editable in devtools
15231
-
15232
- sheet.insertRule(rule, // we need to insert @import rules before anything else
15233
- // otherwise there will be an error
15234
- // technically this means that the @import rules will
15235
- // _usually_(not always since there could be multiple style tags)
15236
- // be the first ones in prod and generally later in dev
15237
- // this shouldn't really matter in the real world though
15238
- // @import is generally only used for font faces from google fonts and etc.
15239
- // so while this could be technically correct then it would be slower and larger
15240
- // for a tiny bit of correctness that won't matter in the real world
15241
- isImportRule ? 0 : sheet.cssRules.length);
15242
- } catch (e) {
15243
- if (process.env.NODE_ENV !== 'production') {
15244
- console.warn("There was a problem inserting the following rule: \"" + rule + "\"", e);
15245
- }
15246
- }
15247
- } else {
15248
- tag.appendChild(document.createTextNode(rule));
15249
- }
15250
-
15251
- this.ctr++;
15252
- };
15253
-
15254
- _proto.flush = function flush() {
15255
- // $FlowFixMe
15256
- this.tags.forEach(function (tag) {
15257
- return tag.parentNode.removeChild(tag);
15258
- });
15259
- this.tags = [];
15260
- this.ctr = 0;
15261
- };
15262
-
15263
- return StyleSheet;
15264
- }();
15265
-
15266
-
15267
-
15268
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
15269
-
15270
- /***/ }),
15271
- /* 252 */
15272
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15273
-
15274
- "use strict";
15275
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CacheProvider; });
15276
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return Emotion; });
15277
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return ThemeContext; });
15278
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return createEmotionProps; });
15279
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return hasOwnProperty; });
15280
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return withEmotionCache; });
15281
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose__ = __webpack_require__(518);
15282
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_inheritsLoose__);
15283
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react__ = __webpack_require__(0);
15284
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react__);
15285
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_cache__ = __webpack_require__(138);
15286
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__emotion_utils__ = __webpack_require__(253);
15287
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__emotion_serialize__ = __webpack_require__(139);
15288
-
15289
-
15290
-
15291
-
15292
-
15293
-
15294
- var hasOwnProperty = Object.prototype.hasOwnProperty;
15295
-
15296
- var EmotionCacheContext = /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createContext"])( // we're doing this to avoid preconstruct's dead code elimination in this one case
15297
- // because this module is primarily intended for the browser and node
15298
- // but it's also required in react native and similar environments sometimes
15299
- // and we could have a special build just for that
15300
- // but this is much easier and the native packages
15301
- // might use a different theme context in the future anyway
15302
- typeof HTMLElement !== 'undefined' ? Object(__WEBPACK_IMPORTED_MODULE_2__emotion_cache__["a" /* default */])() : null);
15303
- var ThemeContext = /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createContext"])({});
15304
- var CacheProvider = EmotionCacheContext.Provider;
15305
-
15306
- var withEmotionCache = function withEmotionCache(func) {
15307
- var render = function render(props, ref) {
15308
- return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(EmotionCacheContext.Consumer, null, function (cache) {
15309
- return func(props, cache, ref);
15310
- });
15311
- }; // $FlowFixMe
15312
-
15313
-
15314
- return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["forwardRef"])(render);
15315
- };
15316
-
15317
- // thus we only need to replace what is a valid character for JS, but not for CSS
15318
-
15319
- var sanitizeIdentifier = function sanitizeIdentifier(identifier) {
15320
- return identifier.replace(/\$/g, '-');
15321
- };
15322
-
15323
- var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
15324
- var labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__';
15325
- var createEmotionProps = function createEmotionProps(type, props) {
15326
- if (process.env.NODE_ENV !== 'production' && typeof props.css === 'string' && // check if there is a css declaration
15327
- props.css.indexOf(':') !== -1) {
15328
- 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 + "`");
15329
- }
15330
-
15331
- var newProps = {};
15332
-
15333
- for (var key in props) {
15334
- if (hasOwnProperty.call(props, key)) {
15335
- newProps[key] = props[key];
15336
- }
15337
- }
15338
-
15339
- newProps[typePropName] = type; // TODO: check if this still works with all of those different JSX functions
15340
-
15341
- if (process.env.NODE_ENV !== 'production') {
15342
- var error = new Error();
15343
-
15344
- if (error.stack) {
15345
- // chrome
15346
- var match = error.stack.match(/at (?:Object\.|Module\.|)(?:jsx|createEmotionProps).*\n\s+at (?:Object\.|)([A-Z][A-Za-z$]+) /);
15347
-
15348
- if (!match) {
15349
- // safari and firefox
15350
- match = error.stack.match(/.*\n([A-Z][A-Za-z$]+)@/);
15351
- }
15352
-
15353
- if (match) {
15354
- newProps[labelPropName] = sanitizeIdentifier(match[1]);
15355
- }
15356
- }
15357
- }
15358
-
15359
- return newProps;
15360
- };
15361
-
15362
- var render = function render(cache, props, theme, ref) {
15363
- var cssProp = theme === null ? props.css : props.css(theme); // so that using `css` from `emotion` and passing the result to the css prop works
15364
- // not passing the registered cache to serializeStyles because it would
15365
- // make certain babel optimisations not possible
15366
-
15367
- if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {
15368
- cssProp = cache.registered[cssProp];
15369
- }
15370
-
15371
- var type = props[typePropName];
15372
- var registeredStyles = [cssProp];
15373
- var className = '';
15374
-
15375
- if (typeof props.className === 'string') {
15376
- className = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_utils__["a" /* getRegisteredStyles */])(cache.registered, registeredStyles, props.className);
15377
- } else if (props.className != null) {
15378
- className = props.className + " ";
15379
- }
15380
-
15381
- var serialized = Object(__WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */])(registeredStyles);
15382
-
15383
- if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) {
15384
- var labelFromStack = props[labelPropName];
15385
-
15386
- if (labelFromStack) {
15387
- serialized = Object(__WEBPACK_IMPORTED_MODULE_4__emotion_serialize__["a" /* serializeStyles */])([serialized, 'label:' + labelFromStack + ';']);
15388
- }
15389
- }
15390
-
15391
- var rules = Object(__WEBPACK_IMPORTED_MODULE_3__emotion_utils__["b" /* insertStyles */])(cache, serialized, typeof type === 'string');
15392
- className += cache.key + "-" + serialized.name;
15393
- var newProps = {};
15394
-
15395
- for (var key in props) {
15396
- if (hasOwnProperty.call(props, key) && key !== 'css' && key !== typePropName && (process.env.NODE_ENV === 'production' || key !== labelPropName)) {
15397
- newProps[key] = props[key];
15398
- }
15399
- }
15400
-
15401
- newProps.ref = ref;
15402
- newProps.className = className;
15403
- var ele = /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(type, newProps);
15404
-
15405
- return ele;
15406
- }; // eslint-disable-next-line no-undef
15407
-
15408
-
15409
- var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
15410
- if (typeof props.css === 'function') {
15411
- return /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_1_react__["createElement"])(ThemeContext.Consumer, null, function (theme) {
15412
- return render(cache, props, theme, ref);
15413
- });
15414
- }
15415
-
15416
- return render(cache, props, null, ref);
15417
- });
15418
-
15419
- if (process.env.NODE_ENV !== 'production') {
15420
- Emotion.displayName = 'EmotionCssPropInternal';
15421
- }
15422
-
15423
-
15424
-
15425
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
15426
-
15427
- /***/ }),
15428
- /* 253 */
15429
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15430
-
15431
- "use strict";
15432
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getRegisteredStyles; });
15433
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return insertStyles; });
15434
- var isBrowser = "object" !== 'undefined';
15435
- function getRegisteredStyles(registered, registeredStyles, classNames) {
15436
- var rawClassName = '';
15437
- classNames.split(' ').forEach(function (className) {
15438
- if (registered[className] !== undefined) {
15439
- registeredStyles.push(registered[className]);
15440
- } else {
15441
- rawClassName += className + " ";
15442
- }
15443
- });
15444
- return rawClassName;
15445
- }
15446
- var insertStyles = function insertStyles(cache, serialized, isStringTag) {
15447
- var className = cache.key + "-" + serialized.name;
15448
-
15449
- if ( // we only need to add the styles to the registered cache if the
15450
- // class name could be used further down
15451
- // the tree but if it's a string tag, we know it won't
15452
- // so we don't have to add it to registered cache.
15453
- // this improves memory usage since we can avoid storing the whole style string
15454
- (isStringTag === false || // we need to always store it if we're in compat mode and
15455
- // in node since emotion-server relies on whether a style is in
15456
- // the registered cache to know whether a style is global or not
15457
- // also, note that this check will be dead code eliminated in the browser
15458
- isBrowser === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
15459
- cache.registered[className] = serialized.styles;
15460
- }
15461
-
15462
- if (cache.inserted[serialized.name] === undefined) {
15463
- var current = serialized;
15464
-
15465
- do {
15466
- var maybeStyles = cache.insert("." + className, current, cache.sheet, true);
15467
-
15468
- current = current.next;
15469
- } while (current !== undefined);
15470
- }
15471
- };
15472
-
15473
-
15474
-
15475
-
15476
- /***/ }),
15477
- /* 254 */
15478
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
15479
-
15480
- "use strict";
15481
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return exportedEqual; });
15482
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return cleanValue; });
15483
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return scrollIntoView; });
15484
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return classNames; });
15485
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return noop; });
15486
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return components; });
15487
- /* unused harmony export G */
15488
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return MenuPlacer; });
15489
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return containerCSS; });
15490
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return css; });
15491
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return clearIndicatorCSS; });
15492
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return dropdownIndicatorCSS; });
15493
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return groupHeadingCSS; });
15494
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return indicatorSeparatorCSS; });
15495
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return groupCSS; });
15496
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return inputCSS; });
15497
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return indicatorsContainerCSS; });
15498
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return loadingMessageCSS; });
15499
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return menuListCSS; });
15500
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return loadingIndicatorCSS; });
15501
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return menuCSS; });
15502
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return menuPortalCSS; });
15503
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return multiValueCSS; });
15504
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return multiValueLabelCSS; });
15505
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return multiValueRemoveCSS; });
15506
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return noOptionsMessageCSS; });
15507
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return optionCSS; });
15508
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "A", function() { return placeholderCSS; });
15509
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "B", function() { return css$1; });
15510
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "C", function() { return valueContainerCSS; });
15511
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return isTouchCapable; });
15512
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return isMobileDevice; });
15513
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "F", function() { return defaultComponents; });
15514
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "G", function() { return isDocumentElement; });
15515
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
15516
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
15517
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__ = __webpack_require__(15);
15518
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__ = __webpack_require__(50);
15519
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__ = __webpack_require__(45);
15520
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_inherits__ = __webpack_require__(73);
15521
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__ = __webpack_require__(74);
15522
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__ = __webpack_require__(75);
15523
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react__ = __webpack_require__(0);
15524
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_react__);
15525
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__emotion_core__ = __webpack_require__(137);
15526
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_dom__ = __webpack_require__(11);
15527
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react_dom__);
15528
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__babel_runtime_helpers_esm_typeof__ = __webpack_require__(44);
15529
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__emotion_css__ = __webpack_require__(76);
15530
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__babel_runtime_helpers_esm_taggedTemplateLiteral__ = __webpack_require__(523);
15531
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_input_autosize__ = __webpack_require__(255);
15532
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_input_autosize___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_react_input_autosize__);
15533
-
15534
-
15535
-
15536
-
15537
-
15538
-
15539
-
15540
-
15541
-
15542
-
15543
-
15544
-
15545
-
15546
-
15547
-
15548
-
15549
- // ==============================
15550
- // NO OP
15551
- // ==============================
15552
- var noop = function noop() {};
15553
- // Class Name Prefixer
15554
- // ==============================
15555
-
15556
- /**
15557
- String representation of component state for styling with class names.
15558
-
15559
- Expects an array of strings OR a string/object pair:
15560
- - className(['comp', 'comp-arg', 'comp-arg-2'])
15561
- @returns 'react-select__comp react-select__comp-arg react-select__comp-arg-2'
15562
- - className('comp', { some: true, state: false })
15563
- @returns 'react-select__comp react-select__comp--some'
15564
- */
15565
-
15566
- function applyPrefixToName(prefix, name) {
15567
- if (!name) {
15568
- return prefix;
15569
- } else if (name[0] === '-') {
15570
- return prefix + name;
15571
- } else {
15572
- return prefix + '__' + name;
15573
- }
15574
- }
15575
-
15576
- function classNames(prefix, state, className) {
15577
- var arr = [className];
15578
-
15579
- if (state && prefix) {
15580
- for (var key in state) {
15581
- if (state.hasOwnProperty(key) && state[key]) {
15582
- arr.push("".concat(applyPrefixToName(prefix, key)));
15583
- }
15584
- }
15585
- }
15586
-
15587
- return arr.filter(function (i) {
15588
- return i;
15589
- }).map(function (i) {
15590
- return String(i).trim();
15591
- }).join(' ');
15592
- } // ==============================
15593
- // Clean Value
15594
- // ==============================
15595
-
15596
- var cleanValue = function cleanValue(value) {
15597
- if (Array.isArray(value)) return value.filter(Boolean);
15598
- if (Object(__WEBPACK_IMPORTED_MODULE_11__babel_runtime_helpers_esm_typeof__["a" /* default */])(value) === 'object' && value !== null) return [value];
15599
- return [];
15600
- }; // ==============================
15601
- // Handle Input Change
15602
- // ==============================
15603
-
15604
- function handleInputChange(inputValue, actionMeta, onInputChange) {
15605
- if (onInputChange) {
15606
- var newValue = onInputChange(inputValue, actionMeta);
15607
- if (typeof newValue === 'string') return newValue;
15608
- }
15609
-
15610
- return inputValue;
15611
- } // ==============================
15612
- // Scroll Helpers
15613
- // ==============================
15614
-
15615
- function isDocumentElement(el) {
15616
- return [document.documentElement, document.body, window].indexOf(el) > -1;
15617
- } // Normalized Scroll Top
15618
- // ------------------------------
15619
-
15620
- function getScrollTop(el) {
15621
- if (isDocumentElement(el)) {
15622
- return window.pageYOffset;
15623
- }
15624
-
15625
- return el.scrollTop;
15626
- }
15627
- function scrollTo(el, top) {
15628
- // with a scroll distance, we perform scroll on the element
15629
- if (isDocumentElement(el)) {
15630
- window.scrollTo(0, top);
15631
- return;
15632
- }
15633
-
15634
- el.scrollTop = top;
15635
- } // Get Scroll Parent
15636
- // ------------------------------
15637
-
15638
- function getScrollParent(element) {
15639
- var style = getComputedStyle(element);
15640
- var excludeStaticParent = style.position === 'absolute';
15641
- var overflowRx = /(auto|scroll)/;
15642
- var docEl = document.documentElement; // suck it, flow...
15643
-
15644
- if (style.position === 'fixed') return docEl;
15645
-
15646
- for (var parent = element; parent = parent.parentElement;) {
15647
- style = getComputedStyle(parent);
15648
-
15649
- if (excludeStaticParent && style.position === 'static') {
15650
- continue;
15651
- }
15652
-
15653
- if (overflowRx.test(style.overflow + style.overflowY + style.overflowX)) {
15654
- return parent;
15655
- }
15656
- }
15657
-
15658
- return docEl;
15659
- } // Animated Scroll To
15660
- // ------------------------------
15661
-
15662
- /**
15663
- @param t: time (elapsed)
15664
- @param b: initial value
15665
- @param c: amount of change
15666
- @param d: duration
15667
- */
15668
-
15669
- function easeOutCubic(t, b, c, d) {
15670
- return c * ((t = t / d - 1) * t * t + 1) + b;
15671
- }
15672
-
15673
- function animatedScrollTo(element, to) {
15674
- var duration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 200;
15675
- var callback = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : noop;
15676
- var start = getScrollTop(element);
15677
- var change = to - start;
15678
- var increment = 10;
15679
- var currentTime = 0;
15680
-
15681
- function animateScroll() {
15682
- currentTime += increment;
15683
- var val = easeOutCubic(currentTime, start, change, duration);
15684
- scrollTo(element, val);
15685
-
15686
- if (currentTime < duration) {
15687
- window.requestAnimationFrame(animateScroll);
15688
- } else {
15689
- callback(element);
15690
- }
15691
- }
15692
-
15693
- animateScroll();
15694
- } // Scroll Into View
15695
- // ------------------------------
15696
-
15697
- function scrollIntoView(menuEl, focusedEl) {
15698
- var menuRect = menuEl.getBoundingClientRect();
15699
- var focusedRect = focusedEl.getBoundingClientRect();
15700
- var overScroll = focusedEl.offsetHeight / 3;
15701
-
15702
- if (focusedRect.bottom + overScroll > menuRect.bottom) {
15703
- scrollTo(menuEl, Math.min(focusedEl.offsetTop + focusedEl.clientHeight - menuEl.offsetHeight + overScroll, menuEl.scrollHeight));
15704
- } else if (focusedRect.top - overScroll < menuRect.top) {
15705
- scrollTo(menuEl, Math.max(focusedEl.offsetTop - overScroll, 0));
15706
- }
15707
- } // ==============================
15708
- // Get bounding client object
15709
- // ==============================
15710
- // cannot get keys using array notation with DOMRect
15711
-
15712
- function getBoundingClientObj(element) {
15713
- var rect = element.getBoundingClientRect();
15714
- return {
15715
- bottom: rect.bottom,
15716
- height: rect.height,
15717
- left: rect.left,
15718
- right: rect.right,
15719
- top: rect.top,
15720
- width: rect.width
15721
- };
15722
- }
15723
- // Touch Capability Detector
15724
- // ==============================
15725
-
15726
- function isTouchCapable() {
15727
- try {
15728
- document.createEvent('TouchEvent');
15729
- return true;
15730
- } catch (e) {
15731
- return false;
15732
- }
15733
- } // ==============================
15734
- // Mobile Device Detector
15735
- // ==============================
15736
-
15737
- function isMobileDevice() {
15738
- try {
15739
- return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
15740
- } catch (e) {
15741
- return false;
15742
- }
15743
- }
15744
-
15745
- 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; }
15746
-
15747
- 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) { Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(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; }
15748
-
15749
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; }
15750
-
15751
- 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; } }
15752
- function getMenuPlacement(_ref) {
15753
- var maxHeight = _ref.maxHeight,
15754
- menuEl = _ref.menuEl,
15755
- minHeight = _ref.minHeight,
15756
- placement = _ref.placement,
15757
- shouldScroll = _ref.shouldScroll,
15758
- isFixedPosition = _ref.isFixedPosition,
15759
- theme = _ref.theme;
15760
- var spacing = theme.spacing;
15761
- var scrollParent = getScrollParent(menuEl);
15762
- var defaultState = {
15763
- placement: 'bottom',
15764
- maxHeight: maxHeight
15765
- }; // something went wrong, return default state
15766
-
15767
- if (!menuEl || !menuEl.offsetParent) return defaultState; // we can't trust `scrollParent.scrollHeight` --> it may increase when
15768
- // the menu is rendered
15769
-
15770
- var _scrollParent$getBoun = scrollParent.getBoundingClientRect(),
15771
- scrollHeight = _scrollParent$getBoun.height;
15772
-
15773
- var _menuEl$getBoundingCl = menuEl.getBoundingClientRect(),
15774
- menuBottom = _menuEl$getBoundingCl.bottom,
15775
- menuHeight = _menuEl$getBoundingCl.height,
15776
- menuTop = _menuEl$getBoundingCl.top;
15777
-
15778
- var _menuEl$offsetParent$ = menuEl.offsetParent.getBoundingClientRect(),
15779
- containerTop = _menuEl$offsetParent$.top;
15780
-
15781
- var viewHeight = window.innerHeight;
15782
- var scrollTop = getScrollTop(scrollParent);
15783
- var marginBottom = parseInt(getComputedStyle(menuEl).marginBottom, 10);
15784
- var marginTop = parseInt(getComputedStyle(menuEl).marginTop, 10);
15785
- var viewSpaceAbove = containerTop - marginTop;
15786
- var viewSpaceBelow = viewHeight - menuTop;
15787
- var scrollSpaceAbove = viewSpaceAbove + scrollTop;
15788
- var scrollSpaceBelow = scrollHeight - scrollTop - menuTop;
15789
- var scrollDown = menuBottom - viewHeight + scrollTop + marginBottom;
15790
- var scrollUp = scrollTop + menuTop - marginTop;
15791
- var scrollDuration = 160;
15792
-
15793
- switch (placement) {
15794
- case 'auto':
15795
- case 'bottom':
15796
- // 1: the menu will fit, do nothing
15797
- if (viewSpaceBelow >= menuHeight) {
15798
- return {
15799
- placement: 'bottom',
15800
- maxHeight: maxHeight
15801
- };
15802
- } // 2: the menu will fit, if scrolled
15803
-
15804
-
15805
- if (scrollSpaceBelow >= menuHeight && !isFixedPosition) {
15806
- if (shouldScroll) {
15807
- animatedScrollTo(scrollParent, scrollDown, scrollDuration);
15808
- }
15809
-
15810
- return {
15811
- placement: 'bottom',
15812
- maxHeight: maxHeight
15813
- };
15814
- } // 3: the menu will fit, if constrained
15815
-
15816
-
15817
- if (!isFixedPosition && scrollSpaceBelow >= minHeight || isFixedPosition && viewSpaceBelow >= minHeight) {
15818
- if (shouldScroll) {
15819
- animatedScrollTo(scrollParent, scrollDown, scrollDuration);
15820
- } // we want to provide as much of the menu as possible to the user,
15821
- // so give them whatever is available below rather than the minHeight.
15822
-
15823
-
15824
- var constrainedHeight = isFixedPosition ? viewSpaceBelow - marginBottom : scrollSpaceBelow - marginBottom;
15825
- return {
15826
- placement: 'bottom',
15827
- maxHeight: constrainedHeight
15828
- };
15829
- } // 4. Forked beviour when there isn't enough space below
15830
- // AUTO: flip the menu, render above
15831
-
15832
-
15833
- if (placement === 'auto' || isFixedPosition) {
15834
- // may need to be constrained after flipping
15835
- var _constrainedHeight = maxHeight;
15836
- var spaceAbove = isFixedPosition ? viewSpaceAbove : scrollSpaceAbove;
15837
-
15838
- if (spaceAbove >= minHeight) {
15839
- _constrainedHeight = Math.min(spaceAbove - marginBottom - spacing.controlHeight, maxHeight);
15840
- }
15841
-
15842
- return {
15843
- placement: 'top',
15844
- maxHeight: _constrainedHeight
15845
- };
15846
- } // BOTTOM: allow browser to increase scrollable area and immediately set scroll
15847
-
15848
-
15849
- if (placement === 'bottom') {
15850
- scrollTo(scrollParent, scrollDown);
15851
- return {
15852
- placement: 'bottom',
15853
- maxHeight: maxHeight
15854
- };
15855
- }
15856
-
15857
- break;
15858
-
15859
- case 'top':
15860
- // 1: the menu will fit, do nothing
15861
- if (viewSpaceAbove >= menuHeight) {
15862
- return {
15863
- placement: 'top',
15864
- maxHeight: maxHeight
15865
- };
15866
- } // 2: the menu will fit, if scrolled
15867
-
15868
-
15869
- if (scrollSpaceAbove >= menuHeight && !isFixedPosition) {
15870
- if (shouldScroll) {
15871
- animatedScrollTo(scrollParent, scrollUp, scrollDuration);
15872
- }
15873
-
15874
- return {
15875
- placement: 'top',
15876
- maxHeight: maxHeight
15877
- };
15878
- } // 3: the menu will fit, if constrained
15879
-
15880
-
15881
- if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) {
15882
- var _constrainedHeight2 = maxHeight; // we want to provide as much of the menu as possible to the user,
15883
- // so give them whatever is available below rather than the minHeight.
15884
-
15885
- if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) {
15886
- _constrainedHeight2 = isFixedPosition ? viewSpaceAbove - marginTop : scrollSpaceAbove - marginTop;
15887
- }
15888
-
15889
- if (shouldScroll) {
15890
- animatedScrollTo(scrollParent, scrollUp, scrollDuration);
15891
- }
15892
-
15893
- return {
15894
- placement: 'top',
15895
- maxHeight: _constrainedHeight2
15896
- };
15897
- } // 4. not enough space, the browser WILL NOT increase scrollable area when
15898
- // absolutely positioned element rendered above the viewport (only below).
15899
- // Flip the menu, render below
15900
-
15901
-
15902
- return {
15903
- placement: 'bottom',
15904
- maxHeight: maxHeight
15905
- };
15906
-
15907
- default:
15908
- throw new Error("Invalid placement provided \"".concat(placement, "\"."));
15909
- } // fulfil contract with flow: implicit return value of undefined
15910
-
15911
-
15912
- return defaultState;
15913
- } // Menu Component
15914
- // ------------------------------
15915
-
15916
- function alignToControl(placement) {
15917
- var placementToCSSProp = {
15918
- bottom: 'top',
15919
- top: 'bottom'
15920
- };
15921
- return placement ? placementToCSSProp[placement] : 'bottom';
15922
- }
15923
-
15924
- var coercePlacement = function coercePlacement(p) {
15925
- return p === 'auto' ? 'bottom' : p;
15926
- };
15927
-
15928
- var menuCSS = function menuCSS(_ref2) {
15929
- var _ref3;
15930
-
15931
- var placement = _ref2.placement,
15932
- _ref2$theme = _ref2.theme,
15933
- borderRadius = _ref2$theme.borderRadius,
15934
- spacing = _ref2$theme.spacing,
15935
- colors = _ref2$theme.colors;
15936
- return _ref3 = {
15937
- label: 'menu'
15938
- }, Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, alignToControl(placement), '100%'), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "backgroundColor", colors.neutral0), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "borderRadius", borderRadius), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "boxShadow", '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)'), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "marginBottom", spacing.menuGutter), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "marginTop", spacing.menuGutter), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "position", 'absolute'), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "width", '100%'), Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(_ref3, "zIndex", 1), _ref3;
15939
- };
15940
- var PortalPlacementContext = /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_8_react__["createContext"])({
15941
- getPortalPlacement: null
15942
- }); // NOTE: internal only
15943
-
15944
- var MenuPlacer = /*#__PURE__*/function (_Component) {
15945
- Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_inherits__["a" /* default */])(MenuPlacer, _Component);
15946
-
15947
- var _super = _createSuper(MenuPlacer);
15948
-
15949
- function MenuPlacer() {
15950
- var _this;
15951
-
15952
- Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, MenuPlacer);
15953
-
15954
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
15955
- args[_key] = arguments[_key];
15956
- }
15957
-
15958
- _this = _super.call.apply(_super, [this].concat(args));
15959
- _this.state = {
15960
- maxHeight: _this.props.maxMenuHeight,
15961
- placement: null
15962
- };
15963
-
15964
- _this.getPlacement = function (ref) {
15965
- var _this$props = _this.props,
15966
- minMenuHeight = _this$props.minMenuHeight,
15967
- maxMenuHeight = _this$props.maxMenuHeight,
15968
- menuPlacement = _this$props.menuPlacement,
15969
- menuPosition = _this$props.menuPosition,
15970
- menuShouldScrollIntoView = _this$props.menuShouldScrollIntoView,
15971
- theme = _this$props.theme;
15972
- if (!ref) return; // DO NOT scroll if position is fixed
15973
-
15974
- var isFixedPosition = menuPosition === 'fixed';
15975
- var shouldScroll = menuShouldScrollIntoView && !isFixedPosition;
15976
- var state = getMenuPlacement({
15977
- maxHeight: maxMenuHeight,
15978
- menuEl: ref,
15979
- minHeight: minMenuHeight,
15980
- placement: menuPlacement,
15981
- shouldScroll: shouldScroll,
15982
- isFixedPosition: isFixedPosition,
15983
- theme: theme
15984
- });
15985
- var getPortalPlacement = _this.context.getPortalPlacement;
15986
- if (getPortalPlacement) getPortalPlacement(state);
15987
-
15988
- _this.setState(state);
15989
- };
15990
-
15991
- _this.getUpdatedProps = function () {
15992
- var menuPlacement = _this.props.menuPlacement;
15993
- var placement = _this.state.placement || coercePlacement(menuPlacement);
15994
- return _objectSpread(_objectSpread({}, _this.props), {}, {
15995
- placement: placement,
15996
- maxHeight: _this.state.maxHeight
15997
- });
15998
- };
15999
-
16000
- return _this;
16001
- }
16002
-
16003
- Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__["a" /* default */])(MenuPlacer, [{
16004
- key: "render",
16005
- value: function render() {
16006
- var children = this.props.children;
16007
- return children({
16008
- ref: this.getPlacement,
16009
- placerProps: this.getUpdatedProps()
16010
- });
16011
- }
16012
- }]);
16013
-
16014
- return MenuPlacer;
16015
- }(__WEBPACK_IMPORTED_MODULE_8_react__["Component"]);
16016
- MenuPlacer.contextType = PortalPlacementContext;
16017
-
16018
- var Menu = function Menu(props) {
16019
- var children = props.children,
16020
- className = props.className,
16021
- cx = props.cx,
16022
- getStyles = props.getStyles,
16023
- innerRef = props.innerRef,
16024
- innerProps = props.innerProps;
16025
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16026
- css: getStyles('menu', props),
16027
- className: cx({
16028
- menu: true
16029
- }, className)
16030
- }, innerProps, {
16031
- ref: innerRef
16032
- }), children);
16033
- };
16034
- // Menu List
16035
- // ==============================
16036
-
16037
- var menuListCSS = function menuListCSS(_ref4) {
16038
- var maxHeight = _ref4.maxHeight,
16039
- baseUnit = _ref4.theme.spacing.baseUnit;
16040
- return {
16041
- maxHeight: maxHeight,
16042
- overflowY: 'auto',
16043
- paddingBottom: baseUnit,
16044
- paddingTop: baseUnit,
16045
- position: 'relative',
16046
- // required for offset[Height, Top] > keyboard scroll
16047
- WebkitOverflowScrolling: 'touch'
16048
- };
16049
- };
16050
- var MenuList = function MenuList(props) {
16051
- var children = props.children,
16052
- className = props.className,
16053
- cx = props.cx,
16054
- getStyles = props.getStyles,
16055
- isMulti = props.isMulti,
16056
- innerRef = props.innerRef;
16057
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", {
16058
- css: getStyles('menuList', props),
16059
- className: cx({
16060
- 'menu-list': true,
16061
- 'menu-list--is-multi': isMulti
16062
- }, className),
16063
- ref: innerRef
16064
- }, children);
16065
- }; // ==============================
16066
- // Menu Notices
16067
- // ==============================
16068
-
16069
- var noticeCSS = function noticeCSS(_ref5) {
16070
- var _ref5$theme = _ref5.theme,
16071
- baseUnit = _ref5$theme.spacing.baseUnit,
16072
- colors = _ref5$theme.colors;
16073
- return {
16074
- color: colors.neutral40,
16075
- padding: "".concat(baseUnit * 2, "px ").concat(baseUnit * 3, "px"),
16076
- textAlign: 'center'
16077
- };
16078
- };
16079
-
16080
- var noOptionsMessageCSS = noticeCSS;
16081
- var loadingMessageCSS = noticeCSS;
16082
- var NoOptionsMessage = function NoOptionsMessage(props) {
16083
- var children = props.children,
16084
- className = props.className,
16085
- cx = props.cx,
16086
- getStyles = props.getStyles,
16087
- innerProps = props.innerProps;
16088
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16089
- css: getStyles('noOptionsMessage', props),
16090
- className: cx({
16091
- 'menu-notice': true,
16092
- 'menu-notice--no-options': true
16093
- }, className)
16094
- }, innerProps), children);
16095
- };
16096
- NoOptionsMessage.defaultProps = {
16097
- children: 'No options'
16098
- };
16099
- var LoadingMessage = function LoadingMessage(props) {
16100
- var children = props.children,
16101
- className = props.className,
16102
- cx = props.cx,
16103
- getStyles = props.getStyles,
16104
- innerProps = props.innerProps;
16105
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16106
- css: getStyles('loadingMessage', props),
16107
- className: cx({
16108
- 'menu-notice': true,
16109
- 'menu-notice--loading': true
16110
- }, className)
16111
- }, innerProps), children);
16112
- };
16113
- LoadingMessage.defaultProps = {
16114
- children: 'Loading...'
16115
- }; // ==============================
16116
- // Menu Portal
16117
- // ==============================
16118
-
16119
- var menuPortalCSS = function menuPortalCSS(_ref6) {
16120
- var rect = _ref6.rect,
16121
- offset = _ref6.offset,
16122
- position = _ref6.position;
16123
- return {
16124
- left: rect.left,
16125
- position: position,
16126
- top: offset,
16127
- width: rect.width,
16128
- zIndex: 1
16129
- };
16130
- };
16131
- var MenuPortal = /*#__PURE__*/function (_Component2) {
16132
- Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_inherits__["a" /* default */])(MenuPortal, _Component2);
16133
-
16134
- var _super2 = _createSuper(MenuPortal);
16135
-
16136
- function MenuPortal() {
16137
- var _this2;
16138
-
16139
- Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, MenuPortal);
16140
-
16141
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
16142
- args[_key2] = arguments[_key2];
16143
- }
16144
-
16145
- _this2 = _super2.call.apply(_super2, [this].concat(args));
16146
- _this2.state = {
16147
- placement: null
16148
- };
16149
-
16150
- _this2.getPortalPlacement = function (_ref7) {
16151
- var placement = _ref7.placement;
16152
- var initialPlacement = coercePlacement(_this2.props.menuPlacement); // avoid re-renders if the placement has not changed
16153
-
16154
- if (placement !== initialPlacement) {
16155
- _this2.setState({
16156
- placement: placement
16157
- });
16158
- }
16159
- };
16160
-
16161
- return _this2;
16162
- }
16163
-
16164
- Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_createClass__["a" /* default */])(MenuPortal, [{
16165
- key: "render",
16166
- value: function render() {
16167
- var _this$props2 = this.props,
16168
- appendTo = _this$props2.appendTo,
16169
- children = _this$props2.children,
16170
- controlElement = _this$props2.controlElement,
16171
- menuPlacement = _this$props2.menuPlacement,
16172
- position = _this$props2.menuPosition,
16173
- getStyles = _this$props2.getStyles;
16174
- var isFixed = position === 'fixed'; // bail early if required elements aren't present
16175
-
16176
- if (!appendTo && !isFixed || !controlElement) {
16177
- return null;
16178
- }
16179
-
16180
- var placement = this.state.placement || coercePlacement(menuPlacement);
16181
- var rect = getBoundingClientObj(controlElement);
16182
- var scrollDistance = isFixed ? 0 : window.pageYOffset;
16183
- var offset = rect[placement] + scrollDistance;
16184
- var state = {
16185
- offset: offset,
16186
- position: position,
16187
- rect: rect
16188
- }; // same wrapper element whether fixed or portalled
16189
-
16190
- var menuWrapper = Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", {
16191
- css: getStyles('menuPortal', state)
16192
- }, children);
16193
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(PortalPlacementContext.Provider, {
16194
- value: {
16195
- getPortalPlacement: this.getPortalPlacement
16196
- }
16197
- }, appendTo ? /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_10_react_dom__["createPortal"])(menuWrapper, appendTo) : menuWrapper);
16198
- }
16199
- }]);
16200
-
16201
- return MenuPortal;
16202
- }(__WEBPACK_IMPORTED_MODULE_8_react__["Component"]);
16203
-
16204
- var isArray = Array.isArray;
16205
- var keyList = Object.keys;
16206
- var hasProp = Object.prototype.hasOwnProperty;
16207
-
16208
- function equal(a, b) {
16209
- // fast-deep-equal index.js 2.0.1
16210
- if (a === b) return true;
16211
-
16212
- if (a && b && Object(__WEBPACK_IMPORTED_MODULE_11__babel_runtime_helpers_esm_typeof__["a" /* default */])(a) == 'object' && Object(__WEBPACK_IMPORTED_MODULE_11__babel_runtime_helpers_esm_typeof__["a" /* default */])(b) == 'object') {
16213
- var arrA = isArray(a),
16214
- arrB = isArray(b),
16215
- i,
16216
- length,
16217
- key;
16218
-
16219
- if (arrA && arrB) {
16220
- length = a.length;
16221
- if (length != b.length) return false;
16222
-
16223
- for (i = length; i-- !== 0;) {
16224
- if (!equal(a[i], b[i])) return false;
16225
- }
16226
-
16227
- return true;
16228
- }
16229
-
16230
- if (arrA != arrB) return false;
16231
- var dateA = a instanceof Date,
16232
- dateB = b instanceof Date;
16233
- if (dateA != dateB) return false;
16234
- if (dateA && dateB) return a.getTime() == b.getTime();
16235
- var regexpA = a instanceof RegExp,
16236
- regexpB = b instanceof RegExp;
16237
- if (regexpA != regexpB) return false;
16238
- if (regexpA && regexpB) return a.toString() == b.toString();
16239
- var keys = keyList(a);
16240
- length = keys.length;
16241
-
16242
- if (length !== keyList(b).length) {
16243
- return false;
16244
- }
16245
-
16246
- for (i = length; i-- !== 0;) {
16247
- if (!hasProp.call(b, keys[i])) return false;
16248
- } // end fast-deep-equal
16249
- // Custom handling for React
16250
-
16251
-
16252
- for (i = length; i-- !== 0;) {
16253
- key = keys[i];
16254
-
16255
- if (key === '_owner' && a.$$typeof) {
16256
- // React-specific: avoid traversing React elements' _owner.
16257
- // _owner contains circular references
16258
- // and is not needed when comparing the actual elements (and not their owners)
16259
- // .$$typeof and ._store on just reasonable markers of a react element
16260
- continue;
16261
- } else {
16262
- // all other properties should be traversed as usual
16263
- if (!equal(a[key], b[key])) return false;
16264
- }
16265
- } // fast-deep-equal index.js 2.0.1
16266
-
16267
-
16268
- return true;
16269
- }
16270
-
16271
- return a !== a && b !== b;
16272
- } // end fast-deep-equal
16273
-
16274
-
16275
- function exportedEqual(a, b) {
16276
- try {
16277
- return equal(a, b);
16278
- } catch (error) {
16279
- if (error.message && error.message.match(/stack|recursion/i)) {
16280
- // warn on circular references, don't crash
16281
- // browsers give this different errors name and messages:
16282
- // chrome/safari: "RangeError", "Maximum call stack size exceeded"
16283
- // firefox: "InternalError", too much recursion"
16284
- // edge: "Error", "Out of stack space"
16285
- console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);
16286
- return false;
16287
- } // some other error. we should definitely know about these
16288
-
16289
-
16290
- throw error;
16291
- }
16292
- }
16293
-
16294
- var containerCSS = function containerCSS(_ref) {
16295
- var isDisabled = _ref.isDisabled,
16296
- isRtl = _ref.isRtl;
16297
- return {
16298
- label: 'container',
16299
- direction: isRtl ? 'rtl' : null,
16300
- pointerEvents: isDisabled ? 'none' : null,
16301
- // cancel mouse events when disabled
16302
- position: 'relative'
16303
- };
16304
- };
16305
- var SelectContainer = function SelectContainer(props) {
16306
- var children = props.children,
16307
- className = props.className,
16308
- cx = props.cx,
16309
- getStyles = props.getStyles,
16310
- innerProps = props.innerProps,
16311
- isDisabled = props.isDisabled,
16312
- isRtl = props.isRtl;
16313
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16314
- css: getStyles('container', props),
16315
- className: cx({
16316
- '--is-disabled': isDisabled,
16317
- '--is-rtl': isRtl
16318
- }, className)
16319
- }, innerProps), children);
16320
- }; // ==============================
16321
- // Value Container
16322
- // ==============================
16323
-
16324
- var valueContainerCSS = function valueContainerCSS(_ref2) {
16325
- var spacing = _ref2.theme.spacing;
16326
- return {
16327
- alignItems: 'center',
16328
- display: 'flex',
16329
- flex: 1,
16330
- flexWrap: 'wrap',
16331
- padding: "".concat(spacing.baseUnit / 2, "px ").concat(spacing.baseUnit * 2, "px"),
16332
- WebkitOverflowScrolling: 'touch',
16333
- position: 'relative',
16334
- overflow: 'hidden'
16335
- };
16336
- };
16337
- var ValueContainer = function ValueContainer(props) {
16338
- var children = props.children,
16339
- className = props.className,
16340
- cx = props.cx,
16341
- isMulti = props.isMulti,
16342
- getStyles = props.getStyles,
16343
- hasValue = props.hasValue;
16344
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", {
16345
- css: getStyles('valueContainer', props),
16346
- className: cx({
16347
- 'value-container': true,
16348
- 'value-container--is-multi': isMulti,
16349
- 'value-container--has-value': hasValue
16350
- }, className)
16351
- }, children);
16352
- }; // ==============================
16353
- // Indicator Container
16354
- // ==============================
16355
-
16356
- var indicatorsContainerCSS = function indicatorsContainerCSS() {
16357
- return {
16358
- alignItems: 'center',
16359
- alignSelf: 'stretch',
16360
- display: 'flex',
16361
- flexShrink: 0
16362
- };
16363
- };
16364
- var IndicatorsContainer = function IndicatorsContainer(props) {
16365
- var children = props.children,
16366
- className = props.className,
16367
- cx = props.cx,
16368
- getStyles = props.getStyles;
16369
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", {
16370
- css: getStyles('indicatorsContainer', props),
16371
- className: cx({
16372
- indicators: true
16373
- }, className)
16374
- }, children);
16375
- };
16376
-
16377
- function _templateObject() {
16378
- var data = Object(__WEBPACK_IMPORTED_MODULE_13__babel_runtime_helpers_esm_taggedTemplateLiteral__["a" /* default */])(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]);
16379
-
16380
- _templateObject = function _templateObject() {
16381
- return data;
16382
- };
16383
-
16384
- return data;
16385
- }
16386
-
16387
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { 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)."; }
16388
-
16389
- var _ref2 = process.env.NODE_ENV === "production" ? {
16390
- name: "19bqh2r",
16391
- styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;"
16392
- } : {
16393
- name: "19bqh2r",
16394
- styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;",
16395
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0JJIiwiZmlsZSI6ImluZGljYXRvcnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyB0eXBlIE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5pbXBvcnQgdHlwZSB7IENvbW1vblByb3BzLCBUaGVtZSB9IGZyb20gJy4uL3R5cGVzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHsgc2l6ZSwgLi4ucHJvcHMgfTogeyBzaXplOiBudW1iZXIgfSkgPT4gKFxuICA8c3ZnXG4gICAgaGVpZ2h0PXtzaXplfVxuICAgIHdpZHRoPXtzaXplfVxuICAgIHZpZXdCb3g9XCIwIDAgMjAgMjBcIlxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgZm9jdXNhYmxlPVwiZmFsc2VcIlxuICAgIGNzcz17e1xuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBmaWxsOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGxpbmVIZWlnaHQ6IDEsXG4gICAgICBzdHJva2U6ICdjdXJyZW50Q29sb3InLFxuICAgICAgc3Ryb2tlV2lkdGg6IDAsXG4gICAgfX1cbiAgICB7Li4ucHJvcHN9XG4gIC8+XG4pO1xuXG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBhbnkpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogYW55KSA9PiAoXG4gIDxTdmcgc2l6ZT17MjB9IHsuLi5wcm9wc30+XG4gICAgPHBhdGggZD1cIk00LjUxNiA3LjU0OGMwLjQzNi0wLjQ0NiAxLjA0My0wLjQ4MSAxLjU3NiAwbDMuOTA4IDMuNzQ3IDMuOTA4LTMuNzQ3YzAuNTMzLTAuNDgxIDEuMTQxLTAuNDQ2IDEuNTc0IDAgMC40MzYgMC40NDUgMC40MDggMS4xOTcgMCAxLjYxNS0wLjQwNiAwLjQxOC00LjY5NSA0LjUwMi00LjY5NSA0LjUwMi0wLjIxNyAwLjIyMy0wLjUwMiAwLjMzNS0wLjc4NyAwLjMzNXMtMC41Ny0wLjExMi0wLjc4OS0wLjMzNWMwIDAtNC4yODctNC4wODQtNC42OTUtNC41MDJzLTAuNDM2LTEuMTcgMC0xLjYxNXpcIiAvPlxuICA8L1N2Zz5cbik7XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gRHJvcGRvd24gJiBDbGVhciBCdXR0b25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IHR5cGUgSW5kaWNhdG9yUHJvcHMgPSBDb21tb25Qcm9wcyAmIHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW46IE5vZGUsXG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufTtcblxuY29uc3QgYmFzZUNTUyA9ICh7XG4gIGlzRm9jdXNlZCxcbiAgdGhlbWU6IHtcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgY29sb3JzLFxuICB9LFxufTogSW5kaWNhdG9yUHJvcHMpID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yQ29udGFpbmVyJyxcbiAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcblxuICAnOmhvdmVyJzoge1xuICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDgwIDogY29sb3JzLm5ldXRyYWw0MCxcbiAgfSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2Ryb3Bkb3duSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnZHJvcGRvd24taW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2NsZWFySW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnY2xlYXItaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG50eXBlIFNlcGFyYXRvclN0YXRlID0geyBpc0Rpc2FibGVkOiBib29sZWFuIH07XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSAoe1xuICBpc0Rpc2FibGVkLFxuICB0aGVtZToge1xuICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICBjb2xvcnMsXG4gIH0sXG59OiBDb21tb25Qcm9wcyAmIFNlcGFyYXRvclN0YXRlKSA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvclNlcGFyYXRvcicsXG4gIGFsaWduU2VsZjogJ3N0cmV0Y2gnLFxuICBiYWNrZ3JvdW5kQ29sb3I6IGlzRGlzYWJsZWQgPyBjb2xvcnMubmV1dHJhbDEwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgbWFyZ2luQm90dG9tOiBiYXNlVW5pdCAqIDIsXG4gIG1hcmdpblRvcDogYmFzZVVuaXQgKiAyLFxuICB3aWR0aDogMSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNsYXNzTmFtZSwgY3gsIGdldFN0eWxlcywgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2luZGljYXRvclNlcGFyYXRvcicsIHByb3BzKX1cbiAgICAgIGNsYXNzTmFtZT17Y3goeyAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUgfSwgY2xhc3NOYW1lKX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gKHtcbiAgaXNGb2N1c2VkLFxuICBzaXplLFxuICB0aGVtZToge1xuICAgIGNvbG9ycyxcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gIH0sXG59OiB7XG4gIGlzRm9jdXNlZDogYm9vbGVhbixcbiAgc2l6ZTogbnVtYmVyLFxuICB0aGVtZTogVGhlbWUsXG59KSA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxufSk7XG5cbnR5cGUgRG90UHJvcHMgPSB7IGRlbGF5OiBudW1iZXIsIG9mZnNldDogYm9vbGVhbiB9O1xuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogRG90UHJvcHMpID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGFuaW1hdGlvbjogYCR7bG9hZGluZ0RvdEFuaW1hdGlvbnN9IDFzIGVhc2UtaW4tb3V0ICR7ZGVsYXl9bXMgaW5maW5pdGU7YCxcbiAgICAgIGJhY2tncm91bmRDb2xvcjogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBib3JkZXJSYWRpdXM6ICcxZW0nLFxuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBtYXJnaW5MZWZ0OiBvZmZzZXQgPyAnMWVtJyA6IG51bGwsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIExvYWRpbmdJY29uUHJvcHMgPSB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufSAmIENvbW1vblByb3BzICYge1xuICAgIC8qKiBTZXQgc2l6ZSBvZiB0aGUgY29udGFpbmVyLiAqL1xuICAgIHNpemU6IG51bWJlcixcbiAgfTtcbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gKHByb3BzOiBMb2FkaW5nSWNvblByb3BzKSA9PiB7XG4gIGNvbnN0IHsgY2xhc3NOYW1lLCBjeCwgZ2V0U3R5bGVzLCBpbm5lclByb3BzLCBpc1J0bCB9ID0gcHJvcHM7XG5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIGNzcz17Z2V0U3R5bGVzKCdsb2FkaW5nSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnbG9hZGluZy1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICBjbGFzc05hbWVcbiAgICAgICl9XG4gICAgPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezB9IG9mZnNldD17aXNSdGx9IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MTYwfSBvZmZzZXQgLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXszMjB9IG9mZnNldD17IWlzUnRsfSAvPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkxvYWRpbmdJbmRpY2F0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */",
16396
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
16397
- };
16398
-
16399
- // ==============================
16400
- // Dropdown & Clear Icons
16401
- // ==============================
16402
- var Svg = function Svg(_ref) {
16403
- var size = _ref.size,
16404
- props = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_ref, ["size"]);
16405
-
16406
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("svg", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16407
- height: size,
16408
- width: size,
16409
- viewBox: "0 0 20 20",
16410
- "aria-hidden": "true",
16411
- focusable: "false",
16412
- css: _ref2
16413
- }, props));
16414
- };
16415
-
16416
- var CrossIcon = function CrossIcon(props) {
16417
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Svg, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16418
- size: 20
16419
- }, props), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("path", {
16420
- 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"
16421
- }));
16422
- };
16423
- var DownChevron = function DownChevron(props) {
16424
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Svg, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16425
- size: 20
16426
- }, props), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("path", {
16427
- 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"
16428
- }));
16429
- }; // ==============================
16430
- // Dropdown & Clear Buttons
16431
- // ==============================
16432
-
16433
- var baseCSS = function baseCSS(_ref3) {
16434
- var isFocused = _ref3.isFocused,
16435
- _ref3$theme = _ref3.theme,
16436
- baseUnit = _ref3$theme.spacing.baseUnit,
16437
- colors = _ref3$theme.colors;
16438
- return {
16439
- label: 'indicatorContainer',
16440
- color: isFocused ? colors.neutral60 : colors.neutral20,
16441
- display: 'flex',
16442
- padding: baseUnit * 2,
16443
- transition: 'color 150ms',
16444
- ':hover': {
16445
- color: isFocused ? colors.neutral80 : colors.neutral40
16446
- }
16447
- };
16448
- };
16449
-
16450
- var dropdownIndicatorCSS = baseCSS;
16451
- var DropdownIndicator = function DropdownIndicator(props) {
16452
- var children = props.children,
16453
- className = props.className,
16454
- cx = props.cx,
16455
- getStyles = props.getStyles,
16456
- innerProps = props.innerProps;
16457
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, innerProps, {
16458
- css: getStyles('dropdownIndicator', props),
16459
- className: cx({
16460
- indicator: true,
16461
- 'dropdown-indicator': true
16462
- }, className)
16463
- }), children || Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(DownChevron, null));
16464
- };
16465
- var clearIndicatorCSS = baseCSS;
16466
- var ClearIndicator = function ClearIndicator(props) {
16467
- var children = props.children,
16468
- className = props.className,
16469
- cx = props.cx,
16470
- getStyles = props.getStyles,
16471
- innerProps = props.innerProps;
16472
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, innerProps, {
16473
- css: getStyles('clearIndicator', props),
16474
- className: cx({
16475
- indicator: true,
16476
- 'clear-indicator': true
16477
- }, className)
16478
- }), children || Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(CrossIcon, null));
16479
- }; // ==============================
16480
- // Separator
16481
- // ==============================
16482
-
16483
- var indicatorSeparatorCSS = function indicatorSeparatorCSS(_ref4) {
16484
- var isDisabled = _ref4.isDisabled,
16485
- _ref4$theme = _ref4.theme,
16486
- baseUnit = _ref4$theme.spacing.baseUnit,
16487
- colors = _ref4$theme.colors;
16488
- return {
16489
- label: 'indicatorSeparator',
16490
- alignSelf: 'stretch',
16491
- backgroundColor: isDisabled ? colors.neutral10 : colors.neutral20,
16492
- marginBottom: baseUnit * 2,
16493
- marginTop: baseUnit * 2,
16494
- width: 1
16495
- };
16496
- };
16497
- var IndicatorSeparator = function IndicatorSeparator(props) {
16498
- var className = props.className,
16499
- cx = props.cx,
16500
- getStyles = props.getStyles,
16501
- innerProps = props.innerProps;
16502
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("span", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, innerProps, {
16503
- css: getStyles('indicatorSeparator', props),
16504
- className: cx({
16505
- 'indicator-separator': true
16506
- }, className)
16507
- }));
16508
- }; // ==============================
16509
- // Loading
16510
- // ==============================
16511
-
16512
- var loadingDotAnimations = Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["d" /* keyframes */])(_templateObject());
16513
- var loadingIndicatorCSS = function loadingIndicatorCSS(_ref5) {
16514
- var isFocused = _ref5.isFocused,
16515
- size = _ref5.size,
16516
- _ref5$theme = _ref5.theme,
16517
- colors = _ref5$theme.colors,
16518
- baseUnit = _ref5$theme.spacing.baseUnit;
16519
- return {
16520
- label: 'loadingIndicator',
16521
- color: isFocused ? colors.neutral60 : colors.neutral20,
16522
- display: 'flex',
16523
- padding: baseUnit * 2,
16524
- transition: 'color 150ms',
16525
- alignSelf: 'center',
16526
- fontSize: size,
16527
- lineHeight: 1,
16528
- marginRight: size,
16529
- textAlign: 'center',
16530
- verticalAlign: 'middle'
16531
- };
16532
- };
16533
-
16534
- var LoadingDot = function LoadingDot(_ref6) {
16535
- var delay = _ref6.delay,
16536
- offset = _ref6.offset;
16537
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("span", {
16538
- css: /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_12__emotion_css__["a" /* default */])({
16539
- animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
16540
- backgroundColor: 'currentColor',
16541
- borderRadius: '1em',
16542
- display: 'inline-block',
16543
- marginLeft: offset ? '1em' : null,
16544
- height: '1em',
16545
- verticalAlign: 'top',
16546
- width: '1em'
16547
- }, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0xJIiwiZmlsZSI6ImluZGljYXRvcnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyB0eXBlIE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuXG5pbXBvcnQgdHlwZSB7IENvbW1vblByb3BzLCBUaGVtZSB9IGZyb20gJy4uL3R5cGVzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHsgc2l6ZSwgLi4ucHJvcHMgfTogeyBzaXplOiBudW1iZXIgfSkgPT4gKFxuICA8c3ZnXG4gICAgaGVpZ2h0PXtzaXplfVxuICAgIHdpZHRoPXtzaXplfVxuICAgIHZpZXdCb3g9XCIwIDAgMjAgMjBcIlxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgZm9jdXNhYmxlPVwiZmFsc2VcIlxuICAgIGNzcz17e1xuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBmaWxsOiAnY3VycmVudENvbG9yJyxcbiAgICAgIGxpbmVIZWlnaHQ6IDEsXG4gICAgICBzdHJva2U6ICdjdXJyZW50Q29sb3InLFxuICAgICAgc3Ryb2tlV2lkdGg6IDAsXG4gICAgfX1cbiAgICB7Li4ucHJvcHN9XG4gIC8+XG4pO1xuXG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBhbnkpID0+IChcbiAgPFN2ZyBzaXplPXsyMH0gey4uLnByb3BzfT5cbiAgICA8cGF0aCBkPVwiTTE0LjM0OCAxNC44NDljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDBsLTIuNjUxLTMuMDMwLTIuNjUxIDMuMDI5Yy0wLjQ2OSAwLjQ2OS0xLjIyOSAwLjQ2OS0xLjY5NyAwLTAuNDY5LTAuNDY5LTAuNDY5LTEuMjI5IDAtMS42OTdsMi43NTgtMy4xNS0yLjc1OS0zLjE1MmMtMC40NjktMC40NjktMC40NjktMS4yMjggMC0xLjY5N3MxLjIyOC0wLjQ2OSAxLjY5NyAwbDIuNjUyIDMuMDMxIDIuNjUxLTMuMDMxYzAuNDY5LTAuNDY5IDEuMjI4LTAuNDY5IDEuNjk3IDBzMC40NjkgMS4yMjkgMCAxLjY5N2wtMi43NTggMy4xNTIgMi43NTggMy4xNWMwLjQ2OSAwLjQ2OSAwLjQ2OSAxLjIyOSAwIDEuNjk4elwiIC8+XG4gIDwvU3ZnPlxuKTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogYW55KSA9PiAoXG4gIDxTdmcgc2l6ZT17MjB9IHsuLi5wcm9wc30+XG4gICAgPHBhdGggZD1cIk00LjUxNiA3LjU0OGMwLjQzNi0wLjQ0NiAxLjA0My0wLjQ4MSAxLjU3NiAwbDMuOTA4IDMuNzQ3IDMuOTA4LTMuNzQ3YzAuNTMzLTAuNDgxIDEuMTQxLTAuNDQ2IDEuNTc0IDAgMC40MzYgMC40NDUgMC40MDggMS4xOTcgMCAxLjYxNS0wLjQwNiAwLjQxOC00LjY5NSA0LjUwMi00LjY5NSA0LjUwMi0wLjIxNyAwLjIyMy0wLjUwMiAwLjMzNS0wLjc4NyAwLjMzNXMtMC41Ny0wLjExMi0wLjc4OS0wLjMzNWMwIDAtNC4yODctNC4wODQtNC42OTUtNC41MDJzLTAuNDM2LTEuMTcgMC0xLjYxNXpcIiAvPlxuICA8L1N2Zz5cbik7XG5cbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuLy8gRHJvcGRvd24gJiBDbGVhciBCdXR0b25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuZXhwb3J0IHR5cGUgSW5kaWNhdG9yUHJvcHMgPSBDb21tb25Qcm9wcyAmIHtcbiAgLyoqIFRoZSBjaGlsZHJlbiB0byBiZSByZW5kZXJlZCBpbnNpZGUgdGhlIGluZGljYXRvci4gKi9cbiAgY2hpbGRyZW46IE5vZGUsXG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufTtcblxuY29uc3QgYmFzZUNTUyA9ICh7XG4gIGlzRm9jdXNlZCxcbiAgdGhlbWU6IHtcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgY29sb3JzLFxuICB9LFxufTogSW5kaWNhdG9yUHJvcHMpID0+ICh7XG4gIGxhYmVsOiAnaW5kaWNhdG9yQ29udGFpbmVyJyxcbiAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcblxuICAnOmhvdmVyJzoge1xuICAgIGNvbG9yOiBpc0ZvY3VzZWQgPyBjb2xvcnMubmV1dHJhbDgwIDogY29sb3JzLm5ldXRyYWw0MCxcbiAgfSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2Ryb3Bkb3duSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnZHJvcGRvd24taW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNoaWxkcmVuLCBjbGFzc05hbWUsIGN4LCBnZXRTdHlsZXMsIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2NsZWFySW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnY2xlYXItaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfSxcbiAgICAgICAgY2xhc3NOYW1lXG4gICAgICApfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG50eXBlIFNlcGFyYXRvclN0YXRlID0geyBpc0Rpc2FibGVkOiBib29sZWFuIH07XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSAoe1xuICBpc0Rpc2FibGVkLFxuICB0aGVtZToge1xuICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICBjb2xvcnMsXG4gIH0sXG59OiBDb21tb25Qcm9wcyAmIFNlcGFyYXRvclN0YXRlKSA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvclNlcGFyYXRvcicsXG4gIGFsaWduU2VsZjogJ3N0cmV0Y2gnLFxuICBiYWNrZ3JvdW5kQ29sb3I6IGlzRGlzYWJsZWQgPyBjb2xvcnMubmV1dHJhbDEwIDogY29sb3JzLm5ldXRyYWwyMCxcbiAgbWFyZ2luQm90dG9tOiBiYXNlVW5pdCAqIDIsXG4gIG1hcmdpblRvcDogYmFzZVVuaXQgKiAyLFxuICB3aWR0aDogMSxcbn0pO1xuXG5leHBvcnQgY29uc3QgSW5kaWNhdG9yU2VwYXJhdG9yID0gKHByb3BzOiBJbmRpY2F0b3JQcm9wcykgPT4ge1xuICBjb25zdCB7IGNsYXNzTmFtZSwgY3gsIGdldFN0eWxlcywgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgY3NzPXtnZXRTdHlsZXMoJ2luZGljYXRvclNlcGFyYXRvcicsIHByb3BzKX1cbiAgICAgIGNsYXNzTmFtZT17Y3goeyAnaW5kaWNhdG9yLXNlcGFyYXRvcic6IHRydWUgfSwgY2xhc3NOYW1lKX1cbiAgICAvPlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBMb2FkaW5nXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgbG9hZGluZ0RvdEFuaW1hdGlvbnMgPSBrZXlmcmFtZXNgXG4gIDAlLCA4MCUsIDEwMCUgeyBvcGFjaXR5OiAwOyB9XG4gIDQwJSB7IG9wYWNpdHk6IDE7IH1cbmA7XG5cbmV4cG9ydCBjb25zdCBsb2FkaW5nSW5kaWNhdG9yQ1NTID0gKHtcbiAgaXNGb2N1c2VkLFxuICBzaXplLFxuICB0aGVtZToge1xuICAgIGNvbG9ycyxcbiAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gIH0sXG59OiB7XG4gIGlzRm9jdXNlZDogYm9vbGVhbixcbiAgc2l6ZTogbnVtYmVyLFxuICB0aGVtZTogVGhlbWUsXG59KSA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgcGFkZGluZzogYmFzZVVuaXQgKiAyLFxuICB0cmFuc2l0aW9uOiAnY29sb3IgMTUwbXMnLFxuICBhbGlnblNlbGY6ICdjZW50ZXInLFxuICBmb250U2l6ZTogc2l6ZSxcbiAgbGluZUhlaWdodDogMSxcbiAgbWFyZ2luUmlnaHQ6IHNpemUsXG4gIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gIHZlcnRpY2FsQWxpZ246ICdtaWRkbGUnLFxufSk7XG5cbnR5cGUgRG90UHJvcHMgPSB7IGRlbGF5OiBudW1iZXIsIG9mZnNldDogYm9vbGVhbiB9O1xuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogRG90UHJvcHMpID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGFuaW1hdGlvbjogYCR7bG9hZGluZ0RvdEFuaW1hdGlvbnN9IDFzIGVhc2UtaW4tb3V0ICR7ZGVsYXl9bXMgaW5maW5pdGU7YCxcbiAgICAgIGJhY2tncm91bmRDb2xvcjogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBib3JkZXJSYWRpdXM6ICcxZW0nLFxuICAgICAgZGlzcGxheTogJ2lubGluZS1ibG9jaycsXG4gICAgICBtYXJnaW5MZWZ0OiBvZmZzZXQgPyAnMWVtJyA6IG51bGwsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCB0eXBlIExvYWRpbmdJY29uUHJvcHMgPSB7XG4gIC8qKiBQcm9wcyB0aGF0IHdpbGwgYmUgcGFzc2VkIG9uIHRvIHRoZSBjaGlsZHJlbi4gKi9cbiAgaW5uZXJQcm9wczogYW55LFxuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuLFxuICAvKiogV2hldGhlciB0aGUgdGV4dCBpcyByaWdodCB0byBsZWZ0ICovXG4gIGlzUnRsOiBib29sZWFuLFxufSAmIENvbW1vblByb3BzICYge1xuICAgIC8qKiBTZXQgc2l6ZSBvZiB0aGUgY29udGFpbmVyLiAqL1xuICAgIHNpemU6IG51bWJlcixcbiAgfTtcbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gKHByb3BzOiBMb2FkaW5nSWNvblByb3BzKSA9PiB7XG4gIGNvbnN0IHsgY2xhc3NOYW1lLCBjeCwgZ2V0U3R5bGVzLCBpbm5lclByb3BzLCBpc1J0bCB9ID0gcHJvcHM7XG5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICAgIGNzcz17Z2V0U3R5bGVzKCdsb2FkaW5nSW5kaWNhdG9yJywgcHJvcHMpfVxuICAgICAgY2xhc3NOYW1lPXtjeChcbiAgICAgICAge1xuICAgICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgICAnbG9hZGluZy1pbmRpY2F0b3InOiB0cnVlLFxuICAgICAgICB9LFxuICAgICAgICBjbGFzc05hbWVcbiAgICAgICl9XG4gICAgPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezB9IG9mZnNldD17aXNSdGx9IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MTYwfSBvZmZzZXQgLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXszMjB9IG9mZnNldD17IWlzUnRsfSAvPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkxvYWRpbmdJbmRpY2F0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */")
16548
- });
16549
- };
16550
-
16551
- var LoadingIndicator = function LoadingIndicator(props) {
16552
- var className = props.className,
16553
- cx = props.cx,
16554
- getStyles = props.getStyles,
16555
- innerProps = props.innerProps,
16556
- isRtl = props.isRtl;
16557
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, innerProps, {
16558
- css: getStyles('loadingIndicator', props),
16559
- className: cx({
16560
- indicator: true,
16561
- 'loading-indicator': true
16562
- }, className)
16563
- }), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(LoadingDot, {
16564
- delay: 0,
16565
- offset: isRtl
16566
- }), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(LoadingDot, {
16567
- delay: 160,
16568
- offset: true
16569
- }), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(LoadingDot, {
16570
- delay: 320,
16571
- offset: !isRtl
16572
- }));
16573
- };
16574
- LoadingIndicator.defaultProps = {
16575
- size: 4
16576
- };
16577
-
16578
- var css = function css(_ref) {
16579
- var isDisabled = _ref.isDisabled,
16580
- isFocused = _ref.isFocused,
16581
- _ref$theme = _ref.theme,
16582
- colors = _ref$theme.colors,
16583
- borderRadius = _ref$theme.borderRadius,
16584
- spacing = _ref$theme.spacing;
16585
- return {
16586
- label: 'control',
16587
- alignItems: 'center',
16588
- backgroundColor: isDisabled ? colors.neutral5 : colors.neutral0,
16589
- borderColor: isDisabled ? colors.neutral10 : isFocused ? colors.primary : colors.neutral20,
16590
- borderRadius: borderRadius,
16591
- borderStyle: 'solid',
16592
- borderWidth: 1,
16593
- boxShadow: isFocused ? "0 0 0 1px ".concat(colors.primary) : null,
16594
- cursor: 'default',
16595
- display: 'flex',
16596
- flexWrap: 'wrap',
16597
- justifyContent: 'space-between',
16598
- minHeight: spacing.controlHeight,
16599
- outline: '0 !important',
16600
- position: 'relative',
16601
- transition: 'all 100ms',
16602
- '&:hover': {
16603
- borderColor: isFocused ? colors.primary : colors.neutral30
16604
- }
16605
- };
16606
- };
16607
-
16608
- var Control = function Control(props) {
16609
- var children = props.children,
16610
- cx = props.cx,
16611
- getStyles = props.getStyles,
16612
- className = props.className,
16613
- isDisabled = props.isDisabled,
16614
- isFocused = props.isFocused,
16615
- innerRef = props.innerRef,
16616
- innerProps = props.innerProps,
16617
- menuIsOpen = props.menuIsOpen;
16618
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16619
- ref: innerRef,
16620
- css: getStyles('control', props),
16621
- className: cx({
16622
- control: true,
16623
- 'control--is-disabled': isDisabled,
16624
- 'control--is-focused': isFocused,
16625
- 'control--menu-is-open': menuIsOpen
16626
- }, className)
16627
- }, innerProps), children);
16628
- };
16629
-
16630
- function ownKeys$1(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; }
16631
-
16632
- function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(Object(source), true).forEach(function (key) { Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
16633
- var groupCSS = function groupCSS(_ref) {
16634
- var spacing = _ref.theme.spacing;
16635
- return {
16636
- paddingBottom: spacing.baseUnit * 2,
16637
- paddingTop: spacing.baseUnit * 2
16638
- };
16639
- };
16640
-
16641
- var Group = function Group(props) {
16642
- var children = props.children,
16643
- className = props.className,
16644
- cx = props.cx,
16645
- getStyles = props.getStyles,
16646
- Heading = props.Heading,
16647
- headingProps = props.headingProps,
16648
- label = props.label,
16649
- theme = props.theme,
16650
- selectProps = props.selectProps;
16651
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", {
16652
- css: getStyles('group', props),
16653
- className: cx({
16654
- group: true
16655
- }, className)
16656
- }, Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Heading, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, headingProps, {
16657
- selectProps: selectProps,
16658
- theme: theme,
16659
- getStyles: getStyles,
16660
- cx: cx
16661
- }), label), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", null, children));
16662
- };
16663
-
16664
- var groupHeadingCSS = function groupHeadingCSS(_ref2) {
16665
- var spacing = _ref2.theme.spacing;
16666
- return {
16667
- label: 'group',
16668
- color: '#999',
16669
- cursor: 'default',
16670
- display: 'block',
16671
- fontSize: '75%',
16672
- fontWeight: '500',
16673
- marginBottom: '0.25em',
16674
- paddingLeft: spacing.baseUnit * 3,
16675
- paddingRight: spacing.baseUnit * 3,
16676
- textTransform: 'uppercase'
16677
- };
16678
- };
16679
- var GroupHeading = function GroupHeading(props) {
16680
- var className = props.className,
16681
- cx = props.cx,
16682
- getStyles = props.getStyles,
16683
- theme = props.theme,
16684
- selectProps = props.selectProps,
16685
- cleanProps = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["className", "cx", "getStyles", "theme", "selectProps"]);
16686
-
16687
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16688
- css: getStyles('groupHeading', _objectSpread$1({
16689
- theme: theme
16690
- }, cleanProps)),
16691
- className: cx({
16692
- 'group-heading': true
16693
- }, className)
16694
- }, cleanProps));
16695
- };
16696
-
16697
- function ownKeys$2(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; }
16698
-
16699
- function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$2(Object(source), true).forEach(function (key) { Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
16700
- var inputCSS = function inputCSS(_ref) {
16701
- var isDisabled = _ref.isDisabled,
16702
- _ref$theme = _ref.theme,
16703
- spacing = _ref$theme.spacing,
16704
- colors = _ref$theme.colors;
16705
- return {
16706
- margin: spacing.baseUnit / 2,
16707
- paddingBottom: spacing.baseUnit / 2,
16708
- paddingTop: spacing.baseUnit / 2,
16709
- visibility: isDisabled ? 'hidden' : 'visible',
16710
- color: colors.neutral80
16711
- };
16712
- };
16713
-
16714
- var inputStyle = function inputStyle(isHidden) {
16715
- return {
16716
- label: 'input',
16717
- background: 0,
16718
- border: 0,
16719
- fontSize: 'inherit',
16720
- opacity: isHidden ? 0 : 1,
16721
- outline: 0,
16722
- padding: 0,
16723
- color: 'inherit'
16724
- };
16725
- };
16726
-
16727
- var Input = function Input(_ref2) {
16728
- var className = _ref2.className,
16729
- cx = _ref2.cx,
16730
- getStyles = _ref2.getStyles,
16731
- innerRef = _ref2.innerRef,
16732
- isHidden = _ref2.isHidden,
16733
- isDisabled = _ref2.isDisabled,
16734
- theme = _ref2.theme,
16735
- selectProps = _ref2.selectProps,
16736
- props = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_ref2, ["className", "cx", "getStyles", "innerRef", "isHidden", "isDisabled", "theme", "selectProps"]);
16737
-
16738
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", {
16739
- css: getStyles('input', _objectSpread$2({
16740
- theme: theme
16741
- }, props))
16742
- }, Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(__WEBPACK_IMPORTED_MODULE_14_react_input_autosize___default.a, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16743
- className: cx({
16744
- input: true
16745
- }, className),
16746
- inputRef: innerRef,
16747
- inputStyle: inputStyle(isHidden),
16748
- disabled: isDisabled
16749
- }, props)));
16750
- };
16751
-
16752
- function ownKeys$3(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; }
16753
-
16754
- function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$3(Object(source), true).forEach(function (key) { Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
16755
- var multiValueCSS = function multiValueCSS(_ref) {
16756
- var _ref$theme = _ref.theme,
16757
- spacing = _ref$theme.spacing,
16758
- borderRadius = _ref$theme.borderRadius,
16759
- colors = _ref$theme.colors;
16760
- return {
16761
- label: 'multiValue',
16762
- backgroundColor: colors.neutral10,
16763
- borderRadius: borderRadius / 2,
16764
- display: 'flex',
16765
- margin: spacing.baseUnit / 2,
16766
- minWidth: 0 // resolves flex/text-overflow bug
16767
-
16768
- };
16769
- };
16770
- var multiValueLabelCSS = function multiValueLabelCSS(_ref2) {
16771
- var _ref2$theme = _ref2.theme,
16772
- borderRadius = _ref2$theme.borderRadius,
16773
- colors = _ref2$theme.colors,
16774
- cropWithEllipsis = _ref2.cropWithEllipsis;
16775
- return {
16776
- borderRadius: borderRadius / 2,
16777
- color: colors.neutral80,
16778
- fontSize: '85%',
16779
- overflow: 'hidden',
16780
- padding: 3,
16781
- paddingLeft: 6,
16782
- textOverflow: cropWithEllipsis ? 'ellipsis' : null,
16783
- whiteSpace: 'nowrap'
16784
- };
16785
- };
16786
- var multiValueRemoveCSS = function multiValueRemoveCSS(_ref3) {
16787
- var _ref3$theme = _ref3.theme,
16788
- spacing = _ref3$theme.spacing,
16789
- borderRadius = _ref3$theme.borderRadius,
16790
- colors = _ref3$theme.colors,
16791
- isFocused = _ref3.isFocused;
16792
- return {
16793
- alignItems: 'center',
16794
- borderRadius: borderRadius / 2,
16795
- backgroundColor: isFocused && colors.dangerLight,
16796
- display: 'flex',
16797
- paddingLeft: spacing.baseUnit,
16798
- paddingRight: spacing.baseUnit,
16799
- ':hover': {
16800
- backgroundColor: colors.dangerLight,
16801
- color: colors.danger
16802
- }
16803
- };
16804
- };
16805
- var MultiValueGeneric = function MultiValueGeneric(_ref4) {
16806
- var children = _ref4.children,
16807
- innerProps = _ref4.innerProps;
16808
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", innerProps, children);
16809
- };
16810
- var MultiValueContainer = MultiValueGeneric;
16811
- var MultiValueLabel = MultiValueGeneric;
16812
- function MultiValueRemove(_ref5) {
16813
- var children = _ref5.children,
16814
- innerProps = _ref5.innerProps;
16815
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", innerProps, children || Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(CrossIcon, {
16816
- size: 14
16817
- }));
16818
- }
16819
-
16820
- var MultiValue = function MultiValue(props) {
16821
- var children = props.children,
16822
- className = props.className,
16823
- components = props.components,
16824
- cx = props.cx,
16825
- data = props.data,
16826
- getStyles = props.getStyles,
16827
- innerProps = props.innerProps,
16828
- isDisabled = props.isDisabled,
16829
- removeProps = props.removeProps,
16830
- selectProps = props.selectProps;
16831
- var Container = components.Container,
16832
- Label = components.Label,
16833
- Remove = components.Remove;
16834
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["b" /* ClassNames */], null, function (_ref6) {
16835
- var css = _ref6.css,
16836
- emotionCx = _ref6.cx;
16837
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Container, {
16838
- data: data,
16839
- innerProps: _objectSpread$3(_objectSpread$3({}, innerProps), {}, {
16840
- className: emotionCx(css(getStyles('multiValue', props)), cx({
16841
- 'multi-value': true,
16842
- 'multi-value--is-disabled': isDisabled
16843
- }, className))
16844
- }),
16845
- selectProps: selectProps
16846
- }, Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Label, {
16847
- data: data,
16848
- innerProps: {
16849
- className: emotionCx(css(getStyles('multiValueLabel', props)), cx({
16850
- 'multi-value__label': true
16851
- }, className))
16852
- },
16853
- selectProps: selectProps
16854
- }, children), Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])(Remove, {
16855
- data: data,
16856
- innerProps: _objectSpread$3({
16857
- className: emotionCx(css(getStyles('multiValueRemove', props)), cx({
16858
- 'multi-value__remove': true
16859
- }, className))
16860
- }, removeProps),
16861
- selectProps: selectProps
16862
- }));
16863
- });
16864
- };
16865
-
16866
- MultiValue.defaultProps = {
16867
- cropWithEllipsis: true
16868
- };
16869
-
16870
- var optionCSS = function optionCSS(_ref) {
16871
- var isDisabled = _ref.isDisabled,
16872
- isFocused = _ref.isFocused,
16873
- isSelected = _ref.isSelected,
16874
- _ref$theme = _ref.theme,
16875
- spacing = _ref$theme.spacing,
16876
- colors = _ref$theme.colors;
16877
- return {
16878
- label: 'option',
16879
- backgroundColor: isSelected ? colors.primary : isFocused ? colors.primary25 : 'transparent',
16880
- color: isDisabled ? colors.neutral20 : isSelected ? colors.neutral0 : 'inherit',
16881
- cursor: 'default',
16882
- display: 'block',
16883
- fontSize: 'inherit',
16884
- padding: "".concat(spacing.baseUnit * 2, "px ").concat(spacing.baseUnit * 3, "px"),
16885
- width: '100%',
16886
- userSelect: 'none',
16887
- WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)',
16888
- // provide some affordance on touch devices
16889
- ':active': {
16890
- backgroundColor: !isDisabled && (isSelected ? colors.primary : colors.primary50)
16891
- }
16892
- };
16893
- };
16894
-
16895
- var Option = function Option(props) {
16896
- var children = props.children,
16897
- className = props.className,
16898
- cx = props.cx,
16899
- getStyles = props.getStyles,
16900
- isDisabled = props.isDisabled,
16901
- isFocused = props.isFocused,
16902
- isSelected = props.isSelected,
16903
- innerRef = props.innerRef,
16904
- innerProps = props.innerProps;
16905
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16906
- css: getStyles('option', props),
16907
- className: cx({
16908
- option: true,
16909
- 'option--is-disabled': isDisabled,
16910
- 'option--is-focused': isFocused,
16911
- 'option--is-selected': isSelected
16912
- }, className),
16913
- ref: innerRef
16914
- }, innerProps), children);
16915
- };
16916
-
16917
- var placeholderCSS = function placeholderCSS(_ref) {
16918
- var _ref$theme = _ref.theme,
16919
- spacing = _ref$theme.spacing,
16920
- colors = _ref$theme.colors;
16921
- return {
16922
- label: 'placeholder',
16923
- color: colors.neutral50,
16924
- marginLeft: spacing.baseUnit / 2,
16925
- marginRight: spacing.baseUnit / 2,
16926
- position: 'absolute',
16927
- top: '50%',
16928
- transform: 'translateY(-50%)'
16929
- };
16930
- };
16931
-
16932
- var Placeholder = function Placeholder(props) {
16933
- var children = props.children,
16934
- className = props.className,
16935
- cx = props.cx,
16936
- getStyles = props.getStyles,
16937
- innerProps = props.innerProps;
16938
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16939
- css: getStyles('placeholder', props),
16940
- className: cx({
16941
- placeholder: true
16942
- }, className)
16943
- }, innerProps), children);
16944
- };
16945
-
16946
- var css$1 = function css(_ref) {
16947
- var isDisabled = _ref.isDisabled,
16948
- _ref$theme = _ref.theme,
16949
- spacing = _ref$theme.spacing,
16950
- colors = _ref$theme.colors;
16951
- return {
16952
- label: 'singleValue',
16953
- color: isDisabled ? colors.neutral40 : colors.neutral80,
16954
- marginLeft: spacing.baseUnit / 2,
16955
- marginRight: spacing.baseUnit / 2,
16956
- maxWidth: "calc(100% - ".concat(spacing.baseUnit * 2, "px)"),
16957
- overflow: 'hidden',
16958
- position: 'absolute',
16959
- textOverflow: 'ellipsis',
16960
- whiteSpace: 'nowrap',
16961
- top: '50%',
16962
- transform: 'translateY(-50%)'
16963
- };
16964
- };
16965
-
16966
- var SingleValue = function SingleValue(props) {
16967
- var children = props.children,
16968
- className = props.className,
16969
- cx = props.cx,
16970
- getStyles = props.getStyles,
16971
- isDisabled = props.isDisabled,
16972
- innerProps = props.innerProps;
16973
- return Object(__WEBPACK_IMPORTED_MODULE_9__emotion_core__["c" /* jsx */])("div", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
16974
- css: getStyles('singleValue', props),
16975
- className: cx({
16976
- 'single-value': true,
16977
- 'single-value--is-disabled': isDisabled
16978
- }, className)
16979
- }, innerProps), children);
16980
- };
16981
-
16982
- function ownKeys$4(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; }
16983
-
16984
- function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$4(Object(source), true).forEach(function (key) { Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
16985
- var components = {
16986
- ClearIndicator: ClearIndicator,
16987
- Control: Control,
16988
- DropdownIndicator: DropdownIndicator,
16989
- DownChevron: DownChevron,
16990
- CrossIcon: CrossIcon,
16991
- Group: Group,
16992
- GroupHeading: GroupHeading,
16993
- IndicatorsContainer: IndicatorsContainer,
16994
- IndicatorSeparator: IndicatorSeparator,
16995
- Input: Input,
16996
- LoadingIndicator: LoadingIndicator,
16997
- Menu: Menu,
16998
- MenuList: MenuList,
16999
- MenuPortal: MenuPortal,
17000
- LoadingMessage: LoadingMessage,
17001
- NoOptionsMessage: NoOptionsMessage,
17002
- MultiValue: MultiValue,
17003
- MultiValueContainer: MultiValueContainer,
17004
- MultiValueLabel: MultiValueLabel,
17005
- MultiValueRemove: MultiValueRemove,
17006
- Option: Option,
17007
- Placeholder: Placeholder,
17008
- SelectContainer: SelectContainer,
17009
- SingleValue: SingleValue,
17010
- ValueContainer: ValueContainer
17011
- };
17012
- var defaultComponents = function defaultComponents(props) {
17013
- return _objectSpread$4(_objectSpread$4({}, components), props.components);
17014
- };
17015
-
17016
-
17017
-
17018
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
17019
-
17020
- /***/ }),
17021
- /* 255 */
17022
- /***/ (function(module, exports, __webpack_require__) {
17023
-
17024
- "use strict";
17025
-
17026
-
17027
- Object.defineProperty(exports, "__esModule", {
17028
- value: true
17029
- });
17030
-
17031
- 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; };
17032
-
17033
- 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; }; }();
17034
-
17035
- var _react = __webpack_require__(0);
17036
-
17037
- var _react2 = _interopRequireDefault(_react);
17038
-
17039
- var _propTypes = __webpack_require__(2);
17040
-
17041
- var _propTypes2 = _interopRequireDefault(_propTypes);
17042
-
17043
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17044
-
17045
- 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; }
17046
-
17047
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17048
-
17049
- 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; }
17050
-
17051
- 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; }
17052
-
17053
- var sizerStyle = {
17054
- position: 'absolute',
17055
- top: 0,
17056
- left: 0,
17057
- visibility: 'hidden',
17058
- height: 0,
17059
- overflow: 'scroll',
17060
- whiteSpace: 'pre'
17061
- };
17062
-
17063
- var INPUT_PROPS_BLACKLIST = ['extraWidth', 'injectStyles', 'inputClassName', 'inputRef', 'inputStyle', 'minWidth', 'onAutosize', 'placeholderIsMinWidth'];
17064
-
17065
- var cleanInputProps = function cleanInputProps(inputProps) {
17066
- INPUT_PROPS_BLACKLIST.forEach(function (field) {
17067
- return delete inputProps[field];
17068
- });
17069
- return inputProps;
17070
- };
17071
-
17072
- var copyStyles = function copyStyles(styles, node) {
17073
- node.style.fontSize = styles.fontSize;
17074
- node.style.fontFamily = styles.fontFamily;
17075
- node.style.fontWeight = styles.fontWeight;
17076
- node.style.fontStyle = styles.fontStyle;
17077
- node.style.letterSpacing = styles.letterSpacing;
17078
- node.style.textTransform = styles.textTransform;
17079
- };
17080
-
17081
- var isIE = typeof window !== 'undefined' && window.navigator ? /MSIE |Trident\/|Edge\//.test(window.navigator.userAgent) : false;
17082
-
17083
- var generateId = function generateId() {
17084
- // we only need an auto-generated ID for stylesheet injection, which is only
17085
- // used for IE. so if the browser is not IE, this should return undefined.
17086
- return isIE ? '_' + Math.random().toString(36).substr(2, 12) : undefined;
17087
- };
17088
-
17089
- var AutosizeInput = function (_Component) {
17090
- _inherits(AutosizeInput, _Component);
17091
-
17092
- function AutosizeInput(props) {
17093
- _classCallCheck(this, AutosizeInput);
17094
-
17095
- var _this = _possibleConstructorReturn(this, (AutosizeInput.__proto__ || Object.getPrototypeOf(AutosizeInput)).call(this, props));
17096
-
17097
- _this.inputRef = function (el) {
17098
- _this.input = el;
17099
- if (typeof _this.props.inputRef === 'function') {
17100
- _this.props.inputRef(el);
17101
- }
17102
- };
17103
-
17104
- _this.placeHolderSizerRef = function (el) {
17105
- _this.placeHolderSizer = el;
17106
- };
17107
-
17108
- _this.sizerRef = function (el) {
17109
- _this.sizer = el;
17110
- };
17111
-
17112
- _this.state = {
17113
- inputWidth: props.minWidth,
17114
- inputId: props.id || generateId()
17115
- };
17116
- return _this;
17117
- }
17118
-
17119
- _createClass(AutosizeInput, [{
17120
- key: 'componentDidMount',
17121
- value: function componentDidMount() {
17122
- this.mounted = true;
17123
- this.copyInputStyles();
17124
- this.updateInputWidth();
17125
- }
17126
- }, {
17127
- key: 'UNSAFE_componentWillReceiveProps',
17128
- value: function UNSAFE_componentWillReceiveProps(nextProps) {
17129
- var id = nextProps.id;
17130
-
17131
- if (id !== this.props.id) {
17132
- this.setState({ inputId: id || generateId() });
17133
- }
17134
- }
17135
- }, {
17136
- key: 'componentDidUpdate',
17137
- value: function componentDidUpdate(prevProps, prevState) {
17138
- if (prevState.inputWidth !== this.state.inputWidth) {
17139
- if (typeof this.props.onAutosize === 'function') {
17140
- this.props.onAutosize(this.state.inputWidth);
17141
- }
17142
- }
17143
- this.updateInputWidth();
17144
- }
17145
- }, {
17146
- key: 'componentWillUnmount',
17147
- value: function componentWillUnmount() {
17148
- this.mounted = false;
17149
- }
17150
- }, {
17151
- key: 'copyInputStyles',
17152
- value: function copyInputStyles() {
17153
- if (!this.mounted || !window.getComputedStyle) {
17154
- return;
17155
- }
17156
- var inputStyles = this.input && window.getComputedStyle(this.input);
17157
- if (!inputStyles) {
17158
- return;
17159
- }
17160
- copyStyles(inputStyles, this.sizer);
17161
- if (this.placeHolderSizer) {
17162
- copyStyles(inputStyles, this.placeHolderSizer);
17163
- }
17164
- }
17165
- }, {
17166
- key: 'updateInputWidth',
17167
- value: function updateInputWidth() {
17168
- if (!this.mounted || !this.sizer || typeof this.sizer.scrollWidth === 'undefined') {
17169
- return;
17170
- }
17171
- var newInputWidth = void 0;
17172
- if (this.props.placeholder && (!this.props.value || this.props.value && this.props.placeholderIsMinWidth)) {
17173
- newInputWidth = Math.max(this.sizer.scrollWidth, this.placeHolderSizer.scrollWidth) + 2;
17174
- } else {
17175
- newInputWidth = this.sizer.scrollWidth + 2;
17176
- }
17177
- // add extraWidth to the detected width. for number types, this defaults to 16 to allow for the stepper UI
17178
- var extraWidth = this.props.type === 'number' && this.props.extraWidth === undefined ? 16 : parseInt(this.props.extraWidth) || 0;
17179
- newInputWidth += extraWidth;
17180
- if (newInputWidth < this.props.minWidth) {
17181
- newInputWidth = this.props.minWidth;
17182
- }
17183
- if (newInputWidth !== this.state.inputWidth) {
17184
- this.setState({
17185
- inputWidth: newInputWidth
17186
- });
17187
- }
17188
- }
17189
- }, {
17190
- key: 'getInput',
17191
- value: function getInput() {
17192
- return this.input;
17193
- }
17194
- }, {
17195
- key: 'focus',
17196
- value: function focus() {
17197
- this.input.focus();
17198
- }
17199
- }, {
17200
- key: 'blur',
17201
- value: function blur() {
17202
- this.input.blur();
17203
- }
17204
- }, {
17205
- key: 'select',
17206
- value: function select() {
17207
- this.input.select();
17208
- }
17209
- }, {
17210
- key: 'renderStyles',
17211
- value: function renderStyles() {
17212
- // this method injects styles to hide IE's clear indicator, which messes
17213
- // with input size detection. the stylesheet is only injected when the
17214
- // browser is IE, and can also be disabled by the `injectStyles` prop.
17215
- var injectStyles = this.props.injectStyles;
17216
-
17217
- return isIE && injectStyles ? _react2.default.createElement('style', { dangerouslySetInnerHTML: {
17218
- __html: 'input#' + this.state.inputId + '::-ms-clear {display: none;}'
17219
- } }) : null;
17220
- }
17221
- }, {
17222
- key: 'render',
17223
- value: function render() {
17224
- var sizerValue = [this.props.defaultValue, this.props.value, ''].reduce(function (previousValue, currentValue) {
17225
- if (previousValue !== null && previousValue !== undefined) {
17226
- return previousValue;
17227
- }
17228
- return currentValue;
17229
- });
17230
-
17231
- var wrapperStyle = _extends({}, this.props.style);
17232
- if (!wrapperStyle.display) wrapperStyle.display = 'inline-block';
17233
-
17234
- var inputStyle = _extends({
17235
- boxSizing: 'content-box',
17236
- width: this.state.inputWidth + 'px'
17237
- }, this.props.inputStyle);
17238
-
17239
- var inputProps = _objectWithoutProperties(this.props, []);
17240
-
17241
- cleanInputProps(inputProps);
17242
- inputProps.className = this.props.inputClassName;
17243
- inputProps.id = this.state.inputId;
17244
- inputProps.style = inputStyle;
17245
-
17246
- return _react2.default.createElement(
17247
- 'div',
17248
- { className: this.props.className, style: wrapperStyle },
17249
- this.renderStyles(),
17250
- _react2.default.createElement('input', _extends({}, inputProps, { ref: this.inputRef })),
17251
- _react2.default.createElement(
17252
- 'div',
17253
- { ref: this.sizerRef, style: sizerStyle },
17254
- sizerValue
17255
- ),
17256
- this.props.placeholder ? _react2.default.createElement(
17257
- 'div',
17258
- { ref: this.placeHolderSizerRef, style: sizerStyle },
17259
- this.props.placeholder
17260
- ) : null
17261
- );
17262
- }
17263
- }]);
17264
-
17265
- return AutosizeInput;
17266
- }(_react.Component);
17267
-
17268
- AutosizeInput.propTypes = {
17269
- className: _propTypes2.default.string, // className for the outer element
17270
- defaultValue: _propTypes2.default.any, // default field value
17271
- extraWidth: _propTypes2.default.oneOfType([// additional width for input element
17272
- _propTypes2.default.number, _propTypes2.default.string]),
17273
- id: _propTypes2.default.string, // id to use for the input, can be set for consistent snapshots
17274
- injectStyles: _propTypes2.default.bool, // inject the custom stylesheet to hide clear UI, defaults to true
17275
- inputClassName: _propTypes2.default.string, // className for the input element
17276
- inputRef: _propTypes2.default.func, // ref callback for the input element
17277
- inputStyle: _propTypes2.default.object, // css styles for the input element
17278
- minWidth: _propTypes2.default.oneOfType([// minimum width for input element
17279
- _propTypes2.default.number, _propTypes2.default.string]),
17280
- onAutosize: _propTypes2.default.func, // onAutosize handler: function(newWidth) {}
17281
- onChange: _propTypes2.default.func, // onChange handler: function(event) {}
17282
- placeholder: _propTypes2.default.string, // placeholder text
17283
- placeholderIsMinWidth: _propTypes2.default.bool, // don't collapse size to less than the placeholder
17284
- style: _propTypes2.default.object, // css styles for the outer element
17285
- value: _propTypes2.default.any // field value
17286
- };
17287
- AutosizeInput.defaultProps = {
17288
- minWidth: 1,
17289
- injectStyles: true
17290
- };
17291
-
17292
- exports.default = AutosizeInput;
17293
-
17294
- /***/ }),
17295
- /* 256 */
17296
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
17297
-
17298
- "use strict";
17299
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Select; });
17300
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return defaultTheme; });
17301
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return createFilter; });
17302
- /* unused harmony export d */
17303
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return mergeStyles; });
17304
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
17305
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
17306
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_slicedToArray__ = __webpack_require__(20);
17307
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_toConsumableArray__ = __webpack_require__(27);
17308
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_defineProperty__ = __webpack_require__(15);
17309
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__ = __webpack_require__(50);
17310
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__ = __webpack_require__(45);
17311
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_assertThisInitialized__ = __webpack_require__(88);
17312
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__ = __webpack_require__(73);
17313
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__ = __webpack_require__(74);
17314
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__ = __webpack_require__(75);
17315
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react__ = __webpack_require__(0);
17316
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_react__);
17317
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_memoize_one__ = __webpack_require__(250);
17318
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__emotion_core__ = __webpack_require__(137);
17319
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_dom__ = __webpack_require__(11);
17320
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_react_dom__);
17321
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__ = __webpack_require__(254);
17322
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__emotion_css__ = __webpack_require__(76);
17323
-
17324
-
17325
-
17326
-
17327
-
17328
-
17329
-
17330
-
17331
-
17332
-
17333
-
17334
-
17335
-
17336
-
17337
-
17338
-
17339
-
17340
-
17341
- var diacritics = [{
17342
- base: 'A',
17343
- letters: "A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"
17344
- }, {
17345
- base: 'AA',
17346
- letters: "\uA732"
17347
- }, {
17348
- base: 'AE',
17349
- letters: "\xC6\u01FC\u01E2"
17350
- }, {
17351
- base: 'AO',
17352
- letters: "\uA734"
17353
- }, {
17354
- base: 'AU',
17355
- letters: "\uA736"
17356
- }, {
17357
- base: 'AV',
17358
- letters: "\uA738\uA73A"
17359
- }, {
17360
- base: 'AY',
17361
- letters: "\uA73C"
17362
- }, {
17363
- base: 'B',
17364
- letters: "B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"
17365
- }, {
17366
- base: 'C',
17367
- letters: "C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"
17368
- }, {
17369
- base: 'D',
17370
- letters: "D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779"
17371
- }, {
17372
- base: 'DZ',
17373
- letters: "\u01F1\u01C4"
17374
- }, {
17375
- base: 'Dz',
17376
- letters: "\u01F2\u01C5"
17377
- }, {
17378
- base: 'E',
17379
- letters: "E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"
17380
- }, {
17381
- base: 'F',
17382
- letters: "F\u24BB\uFF26\u1E1E\u0191\uA77B"
17383
- }, {
17384
- base: 'G',
17385
- letters: "G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"
17386
- }, {
17387
- base: 'H',
17388
- letters: "H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"
17389
- }, {
17390
- base: 'I',
17391
- letters: "I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"
17392
- }, {
17393
- base: 'J',
17394
- letters: "J\u24BF\uFF2A\u0134\u0248"
17395
- }, {
17396
- base: 'K',
17397
- letters: "K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"
17398
- }, {
17399
- base: 'L',
17400
- letters: "L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"
17401
- }, {
17402
- base: 'LJ',
17403
- letters: "\u01C7"
17404
- }, {
17405
- base: 'Lj',
17406
- letters: "\u01C8"
17407
- }, {
17408
- base: 'M',
17409
- letters: "M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"
17410
- }, {
17411
- base: 'N',
17412
- letters: "N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"
17413
- }, {
17414
- base: 'NJ',
17415
- letters: "\u01CA"
17416
- }, {
17417
- base: 'Nj',
17418
- letters: "\u01CB"
17419
- }, {
17420
- base: 'O',
17421
- letters: "O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"
17422
- }, {
17423
- base: 'OI',
17424
- letters: "\u01A2"
17425
- }, {
17426
- base: 'OO',
17427
- letters: "\uA74E"
17428
- }, {
17429
- base: 'OU',
17430
- letters: "\u0222"
17431
- }, {
17432
- base: 'P',
17433
- letters: "P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"
17434
- }, {
17435
- base: 'Q',
17436
- letters: "Q\u24C6\uFF31\uA756\uA758\u024A"
17437
- }, {
17438
- base: 'R',
17439
- letters: "R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"
17440
- }, {
17441
- base: 'S',
17442
- letters: "S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"
17443
- }, {
17444
- base: 'T',
17445
- letters: "T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"
17446
- }, {
17447
- base: 'TZ',
17448
- letters: "\uA728"
17449
- }, {
17450
- base: 'U',
17451
- letters: "U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"
17452
- }, {
17453
- base: 'V',
17454
- letters: "V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"
17455
- }, {
17456
- base: 'VY',
17457
- letters: "\uA760"
17458
- }, {
17459
- base: 'W',
17460
- letters: "W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"
17461
- }, {
17462
- base: 'X',
17463
- letters: "X\u24CD\uFF38\u1E8A\u1E8C"
17464
- }, {
17465
- base: 'Y',
17466
- letters: "Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"
17467
- }, {
17468
- base: 'Z',
17469
- letters: "Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"
17470
- }, {
17471
- base: 'a',
17472
- letters: "a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"
17473
- }, {
17474
- base: 'aa',
17475
- letters: "\uA733"
17476
- }, {
17477
- base: 'ae',
17478
- letters: "\xE6\u01FD\u01E3"
17479
- }, {
17480
- base: 'ao',
17481
- letters: "\uA735"
17482
- }, {
17483
- base: 'au',
17484
- letters: "\uA737"
17485
- }, {
17486
- base: 'av',
17487
- letters: "\uA739\uA73B"
17488
- }, {
17489
- base: 'ay',
17490
- letters: "\uA73D"
17491
- }, {
17492
- base: 'b',
17493
- letters: "b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"
17494
- }, {
17495
- base: 'c',
17496
- letters: "c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"
17497
- }, {
17498
- base: 'd',
17499
- letters: "d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"
17500
- }, {
17501
- base: 'dz',
17502
- letters: "\u01F3\u01C6"
17503
- }, {
17504
- base: 'e',
17505
- letters: "e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"
17506
- }, {
17507
- base: 'f',
17508
- letters: "f\u24D5\uFF46\u1E1F\u0192\uA77C"
17509
- }, {
17510
- base: 'g',
17511
- letters: "g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"
17512
- }, {
17513
- base: 'h',
17514
- letters: "h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"
17515
- }, {
17516
- base: 'hv',
17517
- letters: "\u0195"
17518
- }, {
17519
- base: 'i',
17520
- letters: "i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"
17521
- }, {
17522
- base: 'j',
17523
- letters: "j\u24D9\uFF4A\u0135\u01F0\u0249"
17524
- }, {
17525
- base: 'k',
17526
- letters: "k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"
17527
- }, {
17528
- base: 'l',
17529
- letters: "l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"
17530
- }, {
17531
- base: 'lj',
17532
- letters: "\u01C9"
17533
- }, {
17534
- base: 'm',
17535
- letters: "m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"
17536
- }, {
17537
- base: 'n',
17538
- letters: "n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"
17539
- }, {
17540
- base: 'nj',
17541
- letters: "\u01CC"
17542
- }, {
17543
- base: 'o',
17544
- letters: "o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"
17545
- }, {
17546
- base: 'oi',
17547
- letters: "\u01A3"
17548
- }, {
17549
- base: 'ou',
17550
- letters: "\u0223"
17551
- }, {
17552
- base: 'oo',
17553
- letters: "\uA74F"
17554
- }, {
17555
- base: 'p',
17556
- letters: "p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"
17557
- }, {
17558
- base: 'q',
17559
- letters: "q\u24E0\uFF51\u024B\uA757\uA759"
17560
- }, {
17561
- base: 'r',
17562
- letters: "r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"
17563
- }, {
17564
- base: 's',
17565
- letters: "s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"
17566
- }, {
17567
- base: 't',
17568
- letters: "t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"
17569
- }, {
17570
- base: 'tz',
17571
- letters: "\uA729"
17572
- }, {
17573
- base: 'u',
17574
- letters: "u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"
17575
- }, {
17576
- base: 'v',
17577
- letters: "v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"
17578
- }, {
17579
- base: 'vy',
17580
- letters: "\uA761"
17581
- }, {
17582
- base: 'w',
17583
- letters: "w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"
17584
- }, {
17585
- base: 'x',
17586
- letters: "x\u24E7\uFF58\u1E8B\u1E8D"
17587
- }, {
17588
- base: 'y',
17589
- letters: "y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"
17590
- }, {
17591
- base: 'z',
17592
- letters: "z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"
17593
- }];
17594
- var anyDiacritic = new RegExp('[' + diacritics.map(function (d) {
17595
- return d.letters;
17596
- }).join('') + ']', 'g');
17597
- var diacriticToBase = {};
17598
-
17599
- for (var i = 0; i < diacritics.length; i++) {
17600
- var diacritic = diacritics[i];
17601
-
17602
- for (var j = 0; j < diacritic.letters.length; j++) {
17603
- diacriticToBase[diacritic.letters[j]] = diacritic.base;
17604
- }
17605
- }
17606
-
17607
- var stripDiacritics = function stripDiacritics(str) {
17608
- return str.replace(anyDiacritic, function (match) {
17609
- return diacriticToBase[match];
17610
- });
17611
- };
17612
-
17613
- 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; }
17614
-
17615
- 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) { Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(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; }
17616
-
17617
- var trimString = function trimString(str) {
17618
- return str.replace(/^\s+|\s+$/g, '');
17619
- };
17620
-
17621
- var defaultStringify = function defaultStringify(option) {
17622
- return "".concat(option.label, " ").concat(option.value);
17623
- };
17624
-
17625
- var createFilter = function createFilter(config) {
17626
- return function (option, rawInput) {
17627
- var _ignoreCase$ignoreAcc = _objectSpread({
17628
- ignoreCase: true,
17629
- ignoreAccents: true,
17630
- stringify: defaultStringify,
17631
- trim: true,
17632
- matchFrom: 'any'
17633
- }, config),
17634
- ignoreCase = _ignoreCase$ignoreAcc.ignoreCase,
17635
- ignoreAccents = _ignoreCase$ignoreAcc.ignoreAccents,
17636
- stringify = _ignoreCase$ignoreAcc.stringify,
17637
- trim = _ignoreCase$ignoreAcc.trim,
17638
- matchFrom = _ignoreCase$ignoreAcc.matchFrom;
17639
-
17640
- var input = trim ? trimString(rawInput) : rawInput;
17641
- var candidate = trim ? trimString(stringify(option)) : stringify(option);
17642
-
17643
- if (ignoreCase) {
17644
- input = input.toLowerCase();
17645
- candidate = candidate.toLowerCase();
17646
- }
17647
-
17648
- if (ignoreAccents) {
17649
- input = stripDiacritics(input);
17650
- candidate = stripDiacritics(candidate);
17651
- }
17652
-
17653
- return matchFrom === 'start' ? candidate.substr(0, input.length) === input : candidate.indexOf(input) > -1;
17654
- };
17655
- };
17656
-
17657
- function _EMOTION_STRINGIFIED_CSS_ERROR__() { 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)."; }
17658
-
17659
- var _ref = process.env.NODE_ENV === "production" ? {
17660
- name: "1laao21-a11yText",
17661
- 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;"
17662
- } : {
17663
- name: "1laao21-a11yText",
17664
- 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;",
17665
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVFNIiwiZmlsZSI6IkExMXlUZXh0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8gQGZsb3dcbi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgdHlwZSBFbGVtZW50Q29uZmlnIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vY29yZSc7XG5cbi8vIEFzc2lzdGl2ZSB0ZXh0IHRvIGRlc2NyaWJlIHZpc3VhbCBlbGVtZW50cy4gSGlkZGVuIGZvciBzaWdodGVkIHVzZXJzLlxuY29uc3QgQTExeVRleHQgPSAocHJvcHM6IEVsZW1lbnRDb25maWc8J3NwYW4nPikgPT4gKFxuICAgIDxzcGFuXG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdhMTF5VGV4dCcsXG4gICAgICAgIHpJbmRleDogOTk5OSxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICBjbGlwOiAncmVjdCgxcHgsIDFweCwgMXB4LCAxcHgpJyxcbiAgICAgICAgaGVpZ2h0OiAxLFxuICAgICAgICB3aWR0aDogMSxcbiAgICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICAgIG92ZXJmbG93OiAnaGlkZGVuJyxcbiAgICAgICAgcGFkZGluZzogMCxcbiAgICAgICAgd2hpdGVTcGFjZTogJ25vd3JhcCcsXG4gICAgICB9fVxuICAgICAgey4uLnByb3BzfVxuICAgIC8+XG4pO1xuXG5leHBvcnQgZGVmYXVsdCBBMTF5VGV4dDtcbiJdfQ== */",
17666
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__
17667
- };
17668
-
17669
- var A11yText = function A11yText(props) {
17670
- return Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["c" /* jsx */])("span", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
17671
- css: _ref
17672
- }, props));
17673
- };
17674
-
17675
- function DummyInput(_ref) {
17676
- var inProp = _ref.in,
17677
- out = _ref.out,
17678
- onExited = _ref.onExited,
17679
- appear = _ref.appear,
17680
- enter = _ref.enter,
17681
- exit = _ref.exit,
17682
- innerRef = _ref.innerRef,
17683
- emotion = _ref.emotion,
17684
- props = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_ref, ["in", "out", "onExited", "appear", "enter", "exit", "innerRef", "emotion"]);
17685
-
17686
- return Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["c" /* jsx */])("input", Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
17687
- ref: innerRef
17688
- }, props, {
17689
- css: /*#__PURE__*/Object(__WEBPACK_IMPORTED_MODULE_16__emotion_css__["a" /* default */])({
17690
- label: 'dummyInput',
17691
- // get rid of any default styles
17692
- background: 0,
17693
- border: 0,
17694
- fontSize: 'inherit',
17695
- outline: 0,
17696
- padding: 0,
17697
- // important! without `width` browsers won't allow focus
17698
- width: 1,
17699
- // remove cursor on desktop
17700
- color: 'transparent',
17701
- // remove cursor on mobile whilst maintaining "scroll into view" behaviour
17702
- left: -100,
17703
- opacity: 0,
17704
- position: 'relative',
17705
- transform: 'scale(0)'
17706
- }, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBbUJNIiwiZmlsZSI6IkR1bW15SW5wdXQuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBAZmxvd1xuLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9jb3JlJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGluOiBpblByb3AsXG4gIG91dCxcbiAgb25FeGl0ZWQsXG4gIGFwcGVhcixcbiAgZW50ZXIsXG4gIGV4aXQsXG4gIGlubmVyUmVmLFxuICBlbW90aW9uLFxuICAuLi5wcm9wc1xufTogYW55KSB7XG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLnByb3BzfVxuICAgICAgY3NzPXt7XG4gICAgICAgIGxhYmVsOiAnZHVtbXlJbnB1dCcsXG4gICAgICAgIC8vIGdldCByaWQgb2YgYW55IGRlZmF1bHQgc3R5bGVzXG4gICAgICAgIGJhY2tncm91bmQ6IDAsXG4gICAgICAgIGJvcmRlcjogMCxcbiAgICAgICAgZm9udFNpemU6ICdpbmhlcml0JyxcbiAgICAgICAgb3V0bGluZTogMCxcbiAgICAgICAgcGFkZGluZzogMCxcbiAgICAgICAgLy8gaW1wb3J0YW50ISB3aXRob3V0IGB3aWR0aGAgYnJvd3NlcnMgd29uJ3QgYWxsb3cgZm9jdXNcbiAgICAgICAgd2lkdGg6IDEsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBkZXNrdG9wXG4gICAgICAgIGNvbG9yOiAndHJhbnNwYXJlbnQnLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gbW9iaWxlIHdoaWxzdCBtYWludGFpbmluZyBcInNjcm9sbCBpbnRvIHZpZXdcIiBiZWhhdmlvdXJcbiAgICAgICAgbGVmdDogLTEwMCxcbiAgICAgICAgb3BhY2l0eTogMCxcbiAgICAgICAgcG9zaXRpb246ICdyZWxhdGl2ZScsXG4gICAgICAgIHRyYW5zZm9ybTogJ3NjYWxlKDApJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")
17707
- }));
17708
- }
17709
-
17710
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; }
17711
-
17712
- 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; } }
17713
-
17714
- var NodeResolver = /*#__PURE__*/function (_Component) {
17715
- Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(NodeResolver, _Component);
17716
-
17717
- var _super = _createSuper(NodeResolver);
17718
-
17719
- function NodeResolver() {
17720
- Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, NodeResolver);
17721
-
17722
- return _super.apply(this, arguments);
17723
- }
17724
-
17725
- Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(NodeResolver, [{
17726
- key: "componentDidMount",
17727
- value: function componentDidMount() {
17728
- this.props.innerRef(Object(__WEBPACK_IMPORTED_MODULE_14_react_dom__["findDOMNode"])(this));
17729
- }
17730
- }, {
17731
- key: "componentWillUnmount",
17732
- value: function componentWillUnmount() {
17733
- this.props.innerRef(null);
17734
- }
17735
- }, {
17736
- key: "render",
17737
- value: function render() {
17738
- return this.props.children;
17739
- }
17740
- }]);
17741
-
17742
- return NodeResolver;
17743
- }(__WEBPACK_IMPORTED_MODULE_11_react__["Component"]);
17744
-
17745
- var STYLE_KEYS = ['boxSizing', 'height', 'overflow', 'paddingRight', 'position'];
17746
- var LOCK_STYLES = {
17747
- boxSizing: 'border-box',
17748
- // account for possible declaration `width: 100%;` on body
17749
- overflow: 'hidden',
17750
- position: 'relative',
17751
- height: '100%'
17752
- };
17753
-
17754
- function preventTouchMove(e) {
17755
- e.preventDefault();
17756
- }
17757
- function allowTouchMove(e) {
17758
- e.stopPropagation();
17759
- }
17760
- function preventInertiaScroll() {
17761
- var top = this.scrollTop;
17762
- var totalScroll = this.scrollHeight;
17763
- var currentScroll = top + this.offsetHeight;
17764
-
17765
- if (top === 0) {
17766
- this.scrollTop = 1;
17767
- } else if (currentScroll === totalScroll) {
17768
- this.scrollTop = top - 1;
17769
- }
17770
- } // `ontouchstart` check works on most browsers
17771
- // `maxTouchPoints` works on IE10/11 and Surface
17772
-
17773
- function isTouchDevice() {
17774
- return 'ontouchstart' in window || navigator.maxTouchPoints;
17775
- }
17776
-
17777
- function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; }
17778
-
17779
- function _isNativeReflectConstruct$1() { 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; } }
17780
- var canUseDOM = !!( window.document && window.document.createElement);
17781
- var activeScrollLocks = 0;
17782
-
17783
- var ScrollLock = /*#__PURE__*/function (_Component) {
17784
- Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(ScrollLock, _Component);
17785
-
17786
- var _super = _createSuper$1(ScrollLock);
17787
-
17788
- function ScrollLock() {
17789
- var _this;
17790
-
17791
- Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, ScrollLock);
17792
-
17793
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
17794
- args[_key] = arguments[_key];
17795
- }
17796
-
17797
- _this = _super.call.apply(_super, [this].concat(args));
17798
- _this.originalStyles = {};
17799
- _this.listenerOptions = {
17800
- capture: false,
17801
- passive: false
17802
- };
17803
- return _this;
17804
- }
17805
-
17806
- Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(ScrollLock, [{
17807
- key: "componentDidMount",
17808
- value: function componentDidMount() {
17809
- var _this2 = this;
17810
-
17811
- if (!canUseDOM) return;
17812
- var _this$props = this.props,
17813
- accountForScrollbars = _this$props.accountForScrollbars,
17814
- touchScrollTarget = _this$props.touchScrollTarget;
17815
- var target = document.body;
17816
- var targetStyle = target && target.style;
17817
-
17818
- if (accountForScrollbars) {
17819
- // store any styles already applied to the body
17820
- STYLE_KEYS.forEach(function (key) {
17821
- var val = targetStyle && targetStyle[key];
17822
- _this2.originalStyles[key] = val;
17823
- });
17824
- } // apply the lock styles and padding if this is the first scroll lock
17825
-
17826
-
17827
- if (accountForScrollbars && activeScrollLocks < 1) {
17828
- var currentPadding = parseInt(this.originalStyles.paddingRight, 10) || 0;
17829
- var clientWidth = document.body ? document.body.clientWidth : 0;
17830
- var adjustedPadding = window.innerWidth - clientWidth + currentPadding || 0;
17831
- Object.keys(LOCK_STYLES).forEach(function (key) {
17832
- var val = LOCK_STYLES[key];
17833
-
17834
- if (targetStyle) {
17835
- targetStyle[key] = val;
17836
- }
17837
- });
17838
-
17839
- if (targetStyle) {
17840
- targetStyle.paddingRight = "".concat(adjustedPadding, "px");
17841
- }
17842
- } // account for touch devices
17843
-
17844
-
17845
- if (target && isTouchDevice()) {
17846
- // Mobile Safari ignores { overflow: hidden } declaration on the body.
17847
- target.addEventListener('touchmove', preventTouchMove, this.listenerOptions); // Allow scroll on provided target
17848
-
17849
- if (touchScrollTarget) {
17850
- touchScrollTarget.addEventListener('touchstart', preventInertiaScroll, this.listenerOptions);
17851
- touchScrollTarget.addEventListener('touchmove', allowTouchMove, this.listenerOptions);
17852
- }
17853
- } // increment active scroll locks
17854
-
17855
-
17856
- activeScrollLocks += 1;
17857
- }
17858
- }, {
17859
- key: "componentWillUnmount",
17860
- value: function componentWillUnmount() {
17861
- var _this3 = this;
17862
-
17863
- if (!canUseDOM) return;
17864
- var _this$props2 = this.props,
17865
- accountForScrollbars = _this$props2.accountForScrollbars,
17866
- touchScrollTarget = _this$props2.touchScrollTarget;
17867
- var target = document.body;
17868
- var targetStyle = target && target.style; // safely decrement active scroll locks
17869
-
17870
- activeScrollLocks = Math.max(activeScrollLocks - 1, 0); // reapply original body styles, if any
17871
-
17872
- if (accountForScrollbars && activeScrollLocks < 1) {
17873
- STYLE_KEYS.forEach(function (key) {
17874
- var val = _this3.originalStyles[key];
17875
-
17876
- if (targetStyle) {
17877
- targetStyle[key] = val;
17878
- }
17879
- });
17880
- } // remove touch listeners
17881
-
17882
-
17883
- if (target && isTouchDevice()) {
17884
- target.removeEventListener('touchmove', preventTouchMove, this.listenerOptions);
17885
-
17886
- if (touchScrollTarget) {
17887
- touchScrollTarget.removeEventListener('touchstart', preventInertiaScroll, this.listenerOptions);
17888
- touchScrollTarget.removeEventListener('touchmove', allowTouchMove, this.listenerOptions);
17889
- }
17890
- }
17891
- }
17892
- }, {
17893
- key: "render",
17894
- value: function render() {
17895
- return null;
17896
- }
17897
- }]);
17898
-
17899
- return ScrollLock;
17900
- }(__WEBPACK_IMPORTED_MODULE_11_react__["Component"]);
17901
-
17902
- ScrollLock.defaultProps = {
17903
- accountForScrollbars: true
17904
- };
17905
-
17906
- function _EMOTION_STRINGIFIED_CSS_ERROR__$1() { 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)."; }
17907
-
17908
- function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; }
17909
-
17910
- function _isNativeReflectConstruct$2() { 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; } }
17911
-
17912
- var _ref$1 = process.env.NODE_ENV === "production" ? {
17913
- name: "1dsbpcp",
17914
- styles: "position:fixed;left:0;bottom:0;right:0;top:0;"
17915
- } : {
17916
- name: "1dsbpcp",
17917
- styles: "position:fixed;left:0;bottom:0;right:0;top:0;",
17918
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbEJsb2NrLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTZEVSIsImZpbGUiOiJTY3JvbGxCbG9jay5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vIEBmbG93XG4vKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IFB1cmVDb21wb25lbnQsIHR5cGUgRWxlbWVudCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuaW1wb3J0IE5vZGVSZXNvbHZlciBmcm9tICcuL05vZGVSZXNvbHZlcic7XG5pbXBvcnQgU2Nyb2xsTG9jayBmcm9tICcuL1Njcm9sbExvY2svaW5kZXgnO1xuXG50eXBlIFByb3BzID0ge1xuICBjaGlsZHJlbjogRWxlbWVudDwqPixcbiAgaXNFbmFibGVkOiBib29sZWFuLFxufTtcbnR5cGUgU3RhdGUgPSB7XG4gIHRvdWNoU2Nyb2xsVGFyZ2V0OiBIVE1MRWxlbWVudCB8IG51bGwsXG59O1xuXG4vLyBOT1RFOlxuLy8gV2Ugc2hvdWxkbid0IG5lZWQgdGhpcyBhZnRlciB1cGRhdGluZyB0byBSZWFjdCB2MTYuMy4wLCB3aGljaCBpbnRyb2R1Y2VzOlxuLy8gLSBjcmVhdGVSZWYoKSBodHRwczovL3JlYWN0anMub3JnL2RvY3MvcmVhY3QtYXBpLmh0bWwjcmVhY3RjcmVhdGVyZWZcbi8vIC0gZm9yd2FyZFJlZigpIGh0dHBzOi8vcmVhY3Rqcy5vcmcvZG9jcy9yZWFjdC1hcGkuaHRtbCNyZWFjdGZvcndhcmRyZWZcblxuZXhwb3J0IGRlZmF1bHQgY2xhc3MgU2Nyb2xsQmxvY2sgZXh0ZW5kcyBQdXJlQ29tcG9uZW50PFByb3BzLCBTdGF0ZT4ge1xuICBzdGF0ZSA9IHsgdG91Y2hTY3JvbGxUYXJnZXQ6IG51bGwgfTtcblxuICAvLyBtdXN0IGJlIGluIHN0YXRlIHRvIHRyaWdnZXIgYSByZS1yZW5kZXIsIG9ubHkgcnVucyBvbmNlIHBlciBpbnN0YW5jZVxuICBnZXRTY3JvbGxUYXJnZXQgPSAocmVmOiBIVE1MRWxlbWVudCkgPT4ge1xuICAgIGlmIChyZWYgPT09IHRoaXMuc3RhdGUudG91Y2hTY3JvbGxUYXJnZXQpIHJldHVybjtcbiAgICB0aGlzLnNldFN0YXRlKHsgdG91Y2hTY3JvbGxUYXJnZXQ6IHJlZiB9KTtcbiAgfTtcblxuICAvLyB0aGlzIHdpbGwgY2xvc2UgdGhlIG1lbnUgd2hlbiBhIHVzZXIgY2xpY2tzIG91dHNpZGVcbiAgYmx1clNlbGVjdElucHV0ID0gKCkgPT4ge1xuICAgIGlmIChkb2N1bWVudC5hY3RpdmVFbGVtZW50KSB7XG4gICAgICBkb2N1bWVudC5hY3RpdmVFbGVtZW50LmJsdXIoKTtcbiAgICB9XG4gIH07XG5cbiAgcmVuZGVyKCkge1xuICAgIGNvbnN0IHsgY2hpbGRyZW4sIGlzRW5hYmxlZCB9ID0gdGhpcy5wcm9wcztcbiAgICBjb25zdCB7IHRvdWNoU2Nyb2xsVGFyZ2V0IH0gPSB0aGlzLnN0YXRlO1xuXG4gICAgLy8gYmFpbCBlYXJseSBpZiBub3QgZW5hYmxlZFxuICAgIGlmICghaXNFbmFibGVkKSByZXR1cm4gY2hpbGRyZW47XG5cbiAgICAvKlxuICAgICAqIERpdlxuICAgICAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAqIGJsb2NrcyBzY3JvbGxpbmcgb24gbm9uLWJvZHkgZWxlbWVudHMgYmVoaW5kIHRoZSBtZW51XG5cbiAgICAgKiBOb2RlUmVzb2x2ZXJcbiAgICAgKiAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS1cbiAgICAgKiB3ZSBuZWVkIGEgcmVmZXJlbmNlIHRvIHRoZSBzY3JvbGxhYmxlIGVsZW1lbnQgdG8gXCJ1bmxvY2tcIiBzY3JvbGwgb25cbiAgICAgKiBtb2JpbGUgZGV2aWNlc1xuXG4gICAgICogU2Nyb2xsTG9ja1xuICAgICAqIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxuICAgICAqIGFjdHVhbGx5IGRvZXMgdGhlIHNjcm9sbCBsb2NraW5nXG4gICAgICovXG4gICAgcmV0dXJuIChcbiAgICAgIDxkaXY+XG4gICAgICAgIDxkaXZcbiAgICAgICAgICBvbkNsaWNrPXt0aGlzLmJsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgICA8Tm9kZVJlc29sdmVyIGlubmVyUmVmPXt0aGlzLmdldFNjcm9sbFRhcmdldH0+e2NoaWxkcmVufTwvTm9kZVJlc29sdmVyPlxuICAgICAgICB7dG91Y2hTY3JvbGxUYXJnZXQgPyAoXG4gICAgICAgICAgPFNjcm9sbExvY2sgdG91Y2hTY3JvbGxUYXJnZXQ9e3RvdWNoU2Nyb2xsVGFyZ2V0fSAvPlxuICAgICAgICApIDogbnVsbH1cbiAgICAgIDwvZGl2PlxuICAgICk7XG4gIH1cbn1cbiJdfQ== */",
17919
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$1
17920
- };
17921
-
17922
- // NOTE:
17923
- // We shouldn't need this after updating to React v16.3.0, which introduces:
17924
- // - createRef() https://reactjs.org/docs/react-api.html#reactcreateref
17925
- // - forwardRef() https://reactjs.org/docs/react-api.html#reactforwardref
17926
- var ScrollBlock = /*#__PURE__*/function (_PureComponent) {
17927
- Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(ScrollBlock, _PureComponent);
17928
-
17929
- var _super = _createSuper$2(ScrollBlock);
17930
-
17931
- function ScrollBlock() {
17932
- var _this;
17933
-
17934
- Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, ScrollBlock);
17935
-
17936
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
17937
- args[_key] = arguments[_key];
17938
- }
17939
-
17940
- _this = _super.call.apply(_super, [this].concat(args));
17941
- _this.state = {
17942
- touchScrollTarget: null
17943
- };
17944
-
17945
- _this.getScrollTarget = function (ref) {
17946
- if (ref === _this.state.touchScrollTarget) return;
17947
-
17948
- _this.setState({
17949
- touchScrollTarget: ref
17950
- });
17951
- };
17952
-
17953
- _this.blurSelectInput = function () {
17954
- if (document.activeElement) {
17955
- document.activeElement.blur();
17956
- }
17957
- };
17958
-
17959
- return _this;
17960
- }
17961
-
17962
- Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(ScrollBlock, [{
17963
- key: "render",
17964
- value: function render() {
17965
- var _this$props = this.props,
17966
- children = _this$props.children,
17967
- isEnabled = _this$props.isEnabled;
17968
- var touchScrollTarget = this.state.touchScrollTarget; // bail early if not enabled
17969
-
17970
- if (!isEnabled) return children;
17971
- /*
17972
- * Div
17973
- * ------------------------------
17974
- * blocks scrolling on non-body elements behind the menu
17975
- * NodeResolver
17976
- * ------------------------------
17977
- * we need a reference to the scrollable element to "unlock" scroll on
17978
- * mobile devices
17979
- * ScrollLock
17980
- * ------------------------------
17981
- * actually does the scroll locking
17982
- */
17983
-
17984
- return Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["c" /* jsx */])("div", null, Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["c" /* jsx */])("div", {
17985
- onClick: this.blurSelectInput,
17986
- css: _ref$1
17987
- }), Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["c" /* jsx */])(NodeResolver, {
17988
- innerRef: this.getScrollTarget
17989
- }, children), touchScrollTarget ? Object(__WEBPACK_IMPORTED_MODULE_13__emotion_core__["c" /* jsx */])(ScrollLock, {
17990
- touchScrollTarget: touchScrollTarget
17991
- }) : null);
17992
- }
17993
- }]);
17994
-
17995
- return ScrollBlock;
17996
- }(__WEBPACK_IMPORTED_MODULE_11_react__["PureComponent"]);
17997
-
17998
- function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; }
17999
-
18000
- function _isNativeReflectConstruct$3() { 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; } }
18001
-
18002
- var ScrollCaptor = /*#__PURE__*/function (_Component) {
18003
- Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(ScrollCaptor, _Component);
18004
-
18005
- var _super = _createSuper$3(ScrollCaptor);
18006
-
18007
- function ScrollCaptor() {
18008
- var _this;
18009
-
18010
- Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, ScrollCaptor);
18011
-
18012
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
18013
- args[_key] = arguments[_key];
18014
- }
18015
-
18016
- _this = _super.call.apply(_super, [this].concat(args));
18017
- _this.isBottom = false;
18018
- _this.isTop = false;
18019
- _this.scrollTarget = void 0;
18020
- _this.touchStart = void 0;
18021
-
18022
- _this.cancelScroll = function (event) {
18023
- event.preventDefault();
18024
- event.stopPropagation();
18025
- };
18026
-
18027
- _this.handleEventDelta = function (event, delta) {
18028
- var _this$props = _this.props,
18029
- onBottomArrive = _this$props.onBottomArrive,
18030
- onBottomLeave = _this$props.onBottomLeave,
18031
- onTopArrive = _this$props.onTopArrive,
18032
- onTopLeave = _this$props.onTopLeave;
18033
- var _this$scrollTarget = _this.scrollTarget,
18034
- scrollTop = _this$scrollTarget.scrollTop,
18035
- scrollHeight = _this$scrollTarget.scrollHeight,
18036
- clientHeight = _this$scrollTarget.clientHeight;
18037
- var target = _this.scrollTarget;
18038
- var isDeltaPositive = delta > 0;
18039
- var availableScroll = scrollHeight - clientHeight - scrollTop;
18040
- var shouldCancelScroll = false; // reset bottom/top flags
18041
-
18042
- if (availableScroll > delta && _this.isBottom) {
18043
- if (onBottomLeave) onBottomLeave(event);
18044
- _this.isBottom = false;
18045
- }
18046
-
18047
- if (isDeltaPositive && _this.isTop) {
18048
- if (onTopLeave) onTopLeave(event);
18049
- _this.isTop = false;
18050
- } // bottom limit
18051
-
18052
-
18053
- if (isDeltaPositive && delta > availableScroll) {
18054
- if (onBottomArrive && !_this.isBottom) {
18055
- onBottomArrive(event);
18056
- }
18057
-
18058
- target.scrollTop = scrollHeight;
18059
- shouldCancelScroll = true;
18060
- _this.isBottom = true; // top limit
18061
- } else if (!isDeltaPositive && -delta > scrollTop) {
18062
- if (onTopArrive && !_this.isTop) {
18063
- onTopArrive(event);
18064
- }
18065
-
18066
- target.scrollTop = 0;
18067
- shouldCancelScroll = true;
18068
- _this.isTop = true;
18069
- } // cancel scroll
18070
-
18071
-
18072
- if (shouldCancelScroll) {
18073
- _this.cancelScroll(event);
18074
- }
18075
- };
18076
-
18077
- _this.onWheel = function (event) {
18078
- _this.handleEventDelta(event, event.deltaY);
18079
- };
18080
-
18081
- _this.onTouchStart = function (event) {
18082
- // set touch start so we can calculate touchmove delta
18083
- _this.touchStart = event.changedTouches[0].clientY;
18084
- };
18085
-
18086
- _this.onTouchMove = function (event) {
18087
- var deltaY = _this.touchStart - event.changedTouches[0].clientY;
18088
-
18089
- _this.handleEventDelta(event, deltaY);
18090
- };
18091
-
18092
- _this.getScrollTarget = function (ref) {
18093
- _this.scrollTarget = ref;
18094
- };
18095
-
18096
- return _this;
18097
- }
18098
-
18099
- Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(ScrollCaptor, [{
18100
- key: "componentDidMount",
18101
- value: function componentDidMount() {
18102
- this.startListening(this.scrollTarget);
18103
- }
18104
- }, {
18105
- key: "componentWillUnmount",
18106
- value: function componentWillUnmount() {
18107
- this.stopListening(this.scrollTarget);
18108
- }
18109
- }, {
18110
- key: "startListening",
18111
- value: function startListening(el) {
18112
- // bail early if no element is available to attach to
18113
- if (!el) return; // all the if statements are to appease Flow 😢
18114
-
18115
- if (typeof el.addEventListener === 'function') {
18116
- el.addEventListener('wheel', this.onWheel, false);
18117
- }
18118
-
18119
- if (typeof el.addEventListener === 'function') {
18120
- el.addEventListener('touchstart', this.onTouchStart, false);
18121
- }
18122
-
18123
- if (typeof el.addEventListener === 'function') {
18124
- el.addEventListener('touchmove', this.onTouchMove, false);
18125
- }
18126
- }
18127
- }, {
18128
- key: "stopListening",
18129
- value: function stopListening(el) {
18130
- // all the if statements are to appease Flow 😢
18131
- if (typeof el.removeEventListener === 'function') {
18132
- el.removeEventListener('wheel', this.onWheel, false);
18133
- }
18134
-
18135
- if (typeof el.removeEventListener === 'function') {
18136
- el.removeEventListener('touchstart', this.onTouchStart, false);
18137
- }
18138
-
18139
- if (typeof el.removeEventListener === 'function') {
18140
- el.removeEventListener('touchmove', this.onTouchMove, false);
18141
- }
18142
- }
18143
- }, {
18144
- key: "render",
18145
- value: function render() {
18146
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(NodeResolver, {
18147
- innerRef: this.getScrollTarget
18148
- }, this.props.children);
18149
- }
18150
- }]);
18151
-
18152
- return ScrollCaptor;
18153
- }(__WEBPACK_IMPORTED_MODULE_11_react__["Component"]);
18154
-
18155
- function ScrollCaptorSwitch(_ref) {
18156
- var _ref$isEnabled = _ref.isEnabled,
18157
- isEnabled = _ref$isEnabled === void 0 ? true : _ref$isEnabled,
18158
- props = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_ref, ["isEnabled"]);
18159
-
18160
- return isEnabled ? /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ScrollCaptor, props) : props.children;
18161
- }
18162
-
18163
- var instructionsAriaMessage = function instructionsAriaMessage(event) {
18164
- var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
18165
- var isSearchable = context.isSearchable,
18166
- isMulti = context.isMulti,
18167
- label = context.label,
18168
- isDisabled = context.isDisabled;
18169
-
18170
- switch (event) {
18171
- case 'menu':
18172
- return "Use Up and Down to choose options".concat(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.");
18173
-
18174
- case 'input':
18175
- return "".concat(label ? label : 'Select', " is focused ").concat(isSearchable ? ',type to refine list' : '', ", press Down to open the menu, ").concat(isMulti ? ' press left to focus selected values' : '');
18176
-
18177
- case 'value':
18178
- return 'Use left and right to toggle between focused values, press Backspace to remove the currently focused value';
18179
- }
18180
- };
18181
- var valueEventAriaMessage = function valueEventAriaMessage(event, context) {
18182
- var value = context.value,
18183
- isDisabled = context.isDisabled;
18184
- if (!value) return;
18185
-
18186
- switch (event) {
18187
- case 'deselect-option':
18188
- case 'pop-value':
18189
- case 'remove-value':
18190
- return "option ".concat(value, ", deselected.");
18191
-
18192
- case 'select-option':
18193
- return isDisabled ? "option ".concat(value, " is disabled. Select another option.") : "option ".concat(value, ", selected.");
18194
- }
18195
- };
18196
- var valueFocusAriaMessage = function valueFocusAriaMessage(_ref) {
18197
- var focusedValue = _ref.focusedValue,
18198
- getOptionLabel = _ref.getOptionLabel,
18199
- selectValue = _ref.selectValue;
18200
- return "value ".concat(getOptionLabel(focusedValue), " focused, ").concat(selectValue.indexOf(focusedValue) + 1, " of ").concat(selectValue.length, ".");
18201
- };
18202
- var optionFocusAriaMessage = function optionFocusAriaMessage(_ref2) {
18203
- var focusedOption = _ref2.focusedOption,
18204
- getOptionLabel = _ref2.getOptionLabel,
18205
- options = _ref2.options;
18206
- return "option ".concat(getOptionLabel(focusedOption), " focused").concat(focusedOption.isDisabled ? ' disabled' : '', ", ").concat(options.indexOf(focusedOption) + 1, " of ").concat(options.length, ".");
18207
- };
18208
- var resultsAriaMessage = function resultsAriaMessage(_ref3) {
18209
- var inputValue = _ref3.inputValue,
18210
- screenReaderMessage = _ref3.screenReaderMessage;
18211
- return "".concat(screenReaderMessage).concat(inputValue ? ' for search term ' + inputValue : '', ".");
18212
- };
18213
-
18214
- var formatGroupLabel = function formatGroupLabel(group) {
18215
- return group.label;
18216
- };
18217
- var getOptionLabel = function getOptionLabel(option) {
18218
- return option.label;
18219
- };
18220
- var getOptionValue = function getOptionValue(option) {
18221
- return option.value;
18222
- };
18223
- var isOptionDisabled = function isOptionDisabled(option) {
18224
- return !!option.isDisabled;
18225
- };
18226
-
18227
- function ownKeys$1(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; }
18228
-
18229
- function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(Object(source), true).forEach(function (key) { Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
18230
- var defaultStyles = {
18231
- clearIndicator: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["j" /* c */],
18232
- container: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["h" /* a */],
18233
- control: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["i" /* b */],
18234
- dropdownIndicator: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["k" /* d */],
18235
- group: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["n" /* g */],
18236
- groupHeading: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["l" /* e */],
18237
- indicatorsContainer: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["p" /* i */],
18238
- indicatorSeparator: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["m" /* f */],
18239
- input: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["o" /* h */],
18240
- loadingIndicator: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["s" /* l */],
18241
- loadingMessage: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["q" /* j */],
18242
- menu: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["t" /* m */],
18243
- menuList: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["r" /* k */],
18244
- menuPortal: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["u" /* n */],
18245
- multiValue: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["v" /* o */],
18246
- multiValueLabel: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["w" /* p */],
18247
- multiValueRemove: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["x" /* q */],
18248
- noOptionsMessage: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["y" /* r */],
18249
- option: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["z" /* s */],
18250
- placeholder: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["A" /* t */],
18251
- singleValue: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["B" /* u */],
18252
- valueContainer: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["C" /* v */]
18253
- }; // Merge Utility
18254
- // Allows consumers to extend a base Select with additional styles
18255
-
18256
- function mergeStyles(source) {
18257
- var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
18258
-
18259
- // initialize with source styles
18260
- var styles = _objectSpread$1({}, source); // massage in target styles
18261
-
18262
-
18263
- Object.keys(target).forEach(function (key) {
18264
- if (source[key]) {
18265
- styles[key] = function (rsCss, props) {
18266
- return target[key](source[key](rsCss, props), props);
18267
- };
18268
- } else {
18269
- styles[key] = target[key];
18270
- }
18271
- });
18272
- return styles;
18273
- }
18274
-
18275
- var colors = {
18276
- primary: '#2684FF',
18277
- primary75: '#4C9AFF',
18278
- primary50: '#B2D4FF',
18279
- primary25: '#DEEBFF',
18280
- danger: '#DE350B',
18281
- dangerLight: '#FFBDAD',
18282
- neutral0: 'hsl(0, 0%, 100%)',
18283
- neutral5: 'hsl(0, 0%, 95%)',
18284
- neutral10: 'hsl(0, 0%, 90%)',
18285
- neutral20: 'hsl(0, 0%, 80%)',
18286
- neutral30: 'hsl(0, 0%, 70%)',
18287
- neutral40: 'hsl(0, 0%, 60%)',
18288
- neutral50: 'hsl(0, 0%, 50%)',
18289
- neutral60: 'hsl(0, 0%, 40%)',
18290
- neutral70: 'hsl(0, 0%, 30%)',
18291
- neutral80: 'hsl(0, 0%, 20%)',
18292
- neutral90: 'hsl(0, 0%, 10%)'
18293
- };
18294
- var borderRadius = 4; // Used to calculate consistent margin/padding on elements
18295
-
18296
- var baseUnit = 4; // The minimum height of the control
18297
-
18298
- var controlHeight = 38; // The amount of space between the control and menu */
18299
-
18300
- var menuGutter = baseUnit * 2;
18301
- var spacing = {
18302
- baseUnit: baseUnit,
18303
- controlHeight: controlHeight,
18304
- menuGutter: menuGutter
18305
- };
18306
- var defaultTheme = {
18307
- borderRadius: borderRadius,
18308
- colors: colors,
18309
- spacing: spacing
18310
- };
18311
-
18312
- function ownKeys$2(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; }
18313
-
18314
- function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$2(Object(source), true).forEach(function (key) { Object(__WEBPACK_IMPORTED_MODULE_4__babel_runtime_helpers_esm_defineProperty__["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
18315
-
18316
- function _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); return function _createSuperInternal() { var Super = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(__WEBPACK_IMPORTED_MODULE_10__babel_runtime_helpers_esm_getPrototypeOf__["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(__WEBPACK_IMPORTED_MODULE_9__babel_runtime_helpers_esm_possibleConstructorReturn__["a" /* default */])(this, result); }; }
18317
-
18318
- function _isNativeReflectConstruct$4() { 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; } }
18319
- var defaultProps = {
18320
- backspaceRemovesValue: true,
18321
- blurInputOnSelect: Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["D" /* w */])(),
18322
- captureMenuScroll: !Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["D" /* w */])(),
18323
- closeMenuOnSelect: true,
18324
- closeMenuOnScroll: false,
18325
- components: {},
18326
- controlShouldRenderValue: true,
18327
- escapeClearsValue: false,
18328
- filterOption: createFilter(),
18329
- formatGroupLabel: formatGroupLabel,
18330
- getOptionLabel: getOptionLabel,
18331
- getOptionValue: getOptionValue,
18332
- isDisabled: false,
18333
- isLoading: false,
18334
- isMulti: false,
18335
- isRtl: false,
18336
- isSearchable: true,
18337
- isOptionDisabled: isOptionDisabled,
18338
- loadingMessage: function loadingMessage() {
18339
- return 'Loading...';
18340
- },
18341
- maxMenuHeight: 300,
18342
- minMenuHeight: 140,
18343
- menuIsOpen: false,
18344
- menuPlacement: 'bottom',
18345
- menuPosition: 'absolute',
18346
- menuShouldBlockScroll: false,
18347
- menuShouldScrollIntoView: !Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["E" /* x */])(),
18348
- noOptionsMessage: function noOptionsMessage() {
18349
- return 'No options';
18350
- },
18351
- openMenuOnFocus: false,
18352
- openMenuOnClick: true,
18353
- options: [],
18354
- pageSize: 5,
18355
- placeholder: 'Select...',
18356
- screenReaderStatus: function screenReaderStatus(_ref) {
18357
- var count = _ref.count;
18358
- return "".concat(count, " result").concat(count !== 1 ? 's' : '', " available");
18359
- },
18360
- styles: {},
18361
- tabIndex: '0',
18362
- tabSelectsValue: true
18363
- };
18364
- var instanceId = 1;
18365
-
18366
- var Select = /*#__PURE__*/function (_Component) {
18367
- Object(__WEBPACK_IMPORTED_MODULE_8__babel_runtime_helpers_esm_inherits__["a" /* default */])(Select, _Component);
18368
-
18369
- var _super = _createSuper$4(Select);
18370
-
18371
- // Misc. Instance Properties
18372
- // ------------------------------
18373
- // TODO
18374
- // Refs
18375
- // ------------------------------
18376
- // Lifecycle
18377
- // ------------------------------
18378
- function Select(_props) {
18379
- var _this;
18380
-
18381
- Object(__WEBPACK_IMPORTED_MODULE_5__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, Select);
18382
-
18383
- _this = _super.call(this, _props);
18384
- _this.state = {
18385
- ariaLiveSelection: '',
18386
- ariaLiveContext: '',
18387
- focusedOption: null,
18388
- focusedValue: null,
18389
- inputIsHidden: false,
18390
- isFocused: false,
18391
- menuOptions: {
18392
- render: [],
18393
- focusable: []
18394
- },
18395
- selectValue: []
18396
- };
18397
- _this.blockOptionHover = false;
18398
- _this.isComposing = false;
18399
- _this.clearFocusValueOnUpdate = false;
18400
- _this.commonProps = void 0;
18401
- _this.components = void 0;
18402
- _this.hasGroups = false;
18403
- _this.initialTouchX = 0;
18404
- _this.initialTouchY = 0;
18405
- _this.inputIsHiddenAfterUpdate = void 0;
18406
- _this.instancePrefix = '';
18407
- _this.openAfterFocus = false;
18408
- _this.scrollToFocusedOptionOnUpdate = false;
18409
- _this.userIsDragging = void 0;
18410
- _this.controlRef = null;
18411
-
18412
- _this.getControlRef = function (ref) {
18413
- _this.controlRef = ref;
18414
- };
18415
-
18416
- _this.focusedOptionRef = null;
18417
-
18418
- _this.getFocusedOptionRef = function (ref) {
18419
- _this.focusedOptionRef = ref;
18420
- };
18421
-
18422
- _this.menuListRef = null;
18423
-
18424
- _this.getMenuListRef = function (ref) {
18425
- _this.menuListRef = ref;
18426
- };
18427
-
18428
- _this.inputRef = null;
18429
-
18430
- _this.getInputRef = function (ref) {
18431
- _this.inputRef = ref;
18432
- };
18433
-
18434
- _this.cacheComponents = function (components) {
18435
- _this.components = Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["F" /* y */])({
18436
- components: components
18437
- });
18438
- };
18439
-
18440
- _this.focus = _this.focusInput;
18441
- _this.blur = _this.blurInput;
18442
-
18443
- _this.onChange = function (newValue, actionMeta) {
18444
- var _this$props = _this.props,
18445
- onChange = _this$props.onChange,
18446
- name = _this$props.name;
18447
- onChange(newValue, _objectSpread$2(_objectSpread$2({}, actionMeta), {}, {
18448
- name: name
18449
- }));
18450
- };
18451
-
18452
- _this.setValue = function (newValue) {
18453
- var action = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'set-value';
18454
- var option = arguments.length > 2 ? arguments[2] : undefined;
18455
- var _this$props2 = _this.props,
18456
- closeMenuOnSelect = _this$props2.closeMenuOnSelect,
18457
- isMulti = _this$props2.isMulti;
18458
-
18459
- _this.onInputChange('', {
18460
- action: 'set-value'
18461
- });
18462
-
18463
- if (closeMenuOnSelect) {
18464
- _this.inputIsHiddenAfterUpdate = !isMulti;
18465
-
18466
- _this.onMenuClose();
18467
- } // when the select value should change, we should reset focusedValue
18468
-
18469
-
18470
- _this.clearFocusValueOnUpdate = true;
18471
-
18472
- _this.onChange(newValue, {
18473
- action: action,
18474
- option: option
18475
- });
18476
- };
18477
-
18478
- _this.selectOption = function (newValue) {
18479
- var _this$props3 = _this.props,
18480
- blurInputOnSelect = _this$props3.blurInputOnSelect,
18481
- isMulti = _this$props3.isMulti;
18482
- var selectValue = _this.state.selectValue;
18483
-
18484
- if (isMulti) {
18485
- if (_this.isOptionSelected(newValue, selectValue)) {
18486
- var candidate = _this.getOptionValue(newValue);
18487
-
18488
- _this.setValue(selectValue.filter(function (i) {
18489
- return _this.getOptionValue(i) !== candidate;
18490
- }), 'deselect-option', newValue);
18491
-
18492
- _this.announceAriaLiveSelection({
18493
- event: 'deselect-option',
18494
- context: {
18495
- value: _this.getOptionLabel(newValue)
18496
- }
18497
- });
18498
- } else {
18499
- if (!_this.isOptionDisabled(newValue, selectValue)) {
18500
- _this.setValue([].concat(Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(selectValue), [newValue]), 'select-option', newValue);
18501
-
18502
- _this.announceAriaLiveSelection({
18503
- event: 'select-option',
18504
- context: {
18505
- value: _this.getOptionLabel(newValue)
18506
- }
18507
- });
18508
- } else {
18509
- // announce that option is disabled
18510
- _this.announceAriaLiveSelection({
18511
- event: 'select-option',
18512
- context: {
18513
- value: _this.getOptionLabel(newValue),
18514
- isDisabled: true
18515
- }
18516
- });
18517
- }
18518
- }
18519
- } else {
18520
- if (!_this.isOptionDisabled(newValue, selectValue)) {
18521
- _this.setValue(newValue, 'select-option');
18522
-
18523
- _this.announceAriaLiveSelection({
18524
- event: 'select-option',
18525
- context: {
18526
- value: _this.getOptionLabel(newValue)
18527
- }
18528
- });
18529
- } else {
18530
- // announce that option is disabled
18531
- _this.announceAriaLiveSelection({
18532
- event: 'select-option',
18533
- context: {
18534
- value: _this.getOptionLabel(newValue),
18535
- isDisabled: true
18536
- }
18537
- });
18538
- }
18539
- }
18540
-
18541
- if (blurInputOnSelect) {
18542
- _this.blurInput();
18543
- }
18544
- };
18545
-
18546
- _this.removeValue = function (removedValue) {
18547
- var selectValue = _this.state.selectValue;
18548
-
18549
- var candidate = _this.getOptionValue(removedValue);
18550
-
18551
- var newValue = selectValue.filter(function (i) {
18552
- return _this.getOptionValue(i) !== candidate;
18553
- });
18554
-
18555
- _this.onChange(newValue.length ? newValue : null, {
18556
- action: 'remove-value',
18557
- removedValue: removedValue
18558
- });
18559
-
18560
- _this.announceAriaLiveSelection({
18561
- event: 'remove-value',
18562
- context: {
18563
- value: removedValue ? _this.getOptionLabel(removedValue) : ''
18564
- }
18565
- });
18566
-
18567
- _this.focusInput();
18568
- };
18569
-
18570
- _this.clearValue = function () {
18571
- var isMulti = _this.props.isMulti;
18572
-
18573
- _this.onChange(isMulti ? [] : null, {
18574
- action: 'clear'
18575
- });
18576
- };
18577
-
18578
- _this.popValue = function () {
18579
- var selectValue = _this.state.selectValue;
18580
- var lastSelectedValue = selectValue[selectValue.length - 1];
18581
- var newValue = selectValue.slice(0, selectValue.length - 1);
18582
-
18583
- _this.announceAriaLiveSelection({
18584
- event: 'pop-value',
18585
- context: {
18586
- value: lastSelectedValue ? _this.getOptionLabel(lastSelectedValue) : ''
18587
- }
18588
- });
18589
-
18590
- _this.onChange(newValue.length ? newValue : null, {
18591
- action: 'pop-value',
18592
- removedValue: lastSelectedValue
18593
- });
18594
- };
18595
-
18596
- _this.getOptionLabel = function (data) {
18597
- return _this.props.getOptionLabel(data);
18598
- };
18599
-
18600
- _this.getOptionValue = function (data) {
18601
- return _this.props.getOptionValue(data);
18602
- };
18603
-
18604
- _this.getStyles = function (key, props) {
18605
- var base = defaultStyles[key](props);
18606
- base.boxSizing = 'border-box';
18607
- var custom = _this.props.styles[key];
18608
- return custom ? custom(base, props) : base;
18609
- };
18610
-
18611
- _this.getElementId = function (element) {
18612
- return "".concat(_this.instancePrefix, "-").concat(element);
18613
- };
18614
-
18615
- _this.getActiveDescendentId = function () {
18616
- var menuIsOpen = _this.props.menuIsOpen;
18617
- var _this$state = _this.state,
18618
- menuOptions = _this$state.menuOptions,
18619
- focusedOption = _this$state.focusedOption;
18620
- if (!focusedOption || !menuIsOpen) return undefined;
18621
- var index = menuOptions.focusable.indexOf(focusedOption);
18622
- var option = menuOptions.render[index];
18623
- return option && option.key;
18624
- };
18625
-
18626
- _this.announceAriaLiveSelection = function (_ref2) {
18627
- var event = _ref2.event,
18628
- context = _ref2.context;
18629
-
18630
- _this.setState({
18631
- ariaLiveSelection: valueEventAriaMessage(event, context)
18632
- });
18633
- };
18634
-
18635
- _this.announceAriaLiveContext = function (_ref3) {
18636
- var event = _ref3.event,
18637
- context = _ref3.context;
18638
-
18639
- _this.setState({
18640
- ariaLiveContext: instructionsAriaMessage(event, _objectSpread$2(_objectSpread$2({}, context), {}, {
18641
- label: _this.props['aria-label']
18642
- }))
18643
- });
18644
- };
18645
-
18646
- _this.onMenuMouseDown = function (event) {
18647
- if (event.button !== 0) {
18648
- return;
18649
- }
18650
-
18651
- event.stopPropagation();
18652
- event.preventDefault();
18653
-
18654
- _this.focusInput();
18655
- };
18656
-
18657
- _this.onMenuMouseMove = function (event) {
18658
- _this.blockOptionHover = false;
18659
- };
18660
-
18661
- _this.onControlMouseDown = function (event) {
18662
- var openMenuOnClick = _this.props.openMenuOnClick;
18663
-
18664
- if (!_this.state.isFocused) {
18665
- if (openMenuOnClick) {
18666
- _this.openAfterFocus = true;
18667
- }
18668
-
18669
- _this.focusInput();
18670
- } else if (!_this.props.menuIsOpen) {
18671
- if (openMenuOnClick) {
18672
- _this.openMenu('first');
18673
- }
18674
- } else {
18675
- if ( // $FlowFixMe
18676
- event.target.tagName !== 'INPUT' && event.target.tagName !== 'TEXTAREA') {
18677
- _this.onMenuClose();
18678
- }
18679
- }
18680
-
18681
- if ( // $FlowFixMe
18682
- event.target.tagName !== 'INPUT' && event.target.tagName !== 'TEXTAREA') {
18683
- event.preventDefault();
18684
- }
18685
- };
18686
-
18687
- _this.onDropdownIndicatorMouseDown = function (event) {
18688
- // ignore mouse events that weren't triggered by the primary button
18689
- if (event && event.type === 'mousedown' && event.button !== 0) {
18690
- return;
18691
- }
18692
-
18693
- if (_this.props.isDisabled) return;
18694
- var _this$props4 = _this.props,
18695
- isMulti = _this$props4.isMulti,
18696
- menuIsOpen = _this$props4.menuIsOpen;
18697
-
18698
- _this.focusInput();
18699
-
18700
- if (menuIsOpen) {
18701
- _this.inputIsHiddenAfterUpdate = !isMulti;
18702
-
18703
- _this.onMenuClose();
18704
- } else {
18705
- _this.openMenu('first');
18706
- }
18707
-
18708
- event.preventDefault();
18709
- event.stopPropagation();
18710
- };
18711
-
18712
- _this.onClearIndicatorMouseDown = function (event) {
18713
- // ignore mouse events that weren't triggered by the primary button
18714
- if (event && event.type === 'mousedown' && event.button !== 0) {
18715
- return;
18716
- }
18717
-
18718
- _this.clearValue();
18719
-
18720
- event.stopPropagation();
18721
- _this.openAfterFocus = false;
18722
-
18723
- if (event.type === 'touchend') {
18724
- _this.focusInput();
18725
- } else {
18726
- setTimeout(function () {
18727
- return _this.focusInput();
18728
- });
18729
- }
18730
- };
18731
-
18732
- _this.onScroll = function (event) {
18733
- if (typeof _this.props.closeMenuOnScroll === 'boolean') {
18734
- if (event.target instanceof HTMLElement && Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["G" /* z */])(event.target)) {
18735
- _this.props.onMenuClose();
18736
- }
18737
- } else if (typeof _this.props.closeMenuOnScroll === 'function') {
18738
- if (_this.props.closeMenuOnScroll(event)) {
18739
- _this.props.onMenuClose();
18740
- }
18741
- }
18742
- };
18743
-
18744
- _this.onCompositionStart = function () {
18745
- _this.isComposing = true;
18746
- };
18747
-
18748
- _this.onCompositionEnd = function () {
18749
- _this.isComposing = false;
18750
- };
18751
-
18752
- _this.onTouchStart = function (_ref4) {
18753
- var touches = _ref4.touches;
18754
- var touch = touches && touches.item(0);
18755
-
18756
- if (!touch) {
18757
- return;
18758
- }
18759
-
18760
- _this.initialTouchX = touch.clientX;
18761
- _this.initialTouchY = touch.clientY;
18762
- _this.userIsDragging = false;
18763
- };
18764
-
18765
- _this.onTouchMove = function (_ref5) {
18766
- var touches = _ref5.touches;
18767
- var touch = touches && touches.item(0);
18768
-
18769
- if (!touch) {
18770
- return;
18771
- }
18772
-
18773
- var deltaX = Math.abs(touch.clientX - _this.initialTouchX);
18774
- var deltaY = Math.abs(touch.clientY - _this.initialTouchY);
18775
- var moveThreshold = 5;
18776
- _this.userIsDragging = deltaX > moveThreshold || deltaY > moveThreshold;
18777
- };
18778
-
18779
- _this.onTouchEnd = function (event) {
18780
- if (_this.userIsDragging) return; // close the menu if the user taps outside
18781
- // we're checking on event.target here instead of event.currentTarget, because we want to assert information
18782
- // on events on child elements, not the document (which we've attached this handler to).
18783
-
18784
- if (_this.controlRef && !_this.controlRef.contains(event.target) && _this.menuListRef && !_this.menuListRef.contains(event.target)) {
18785
- _this.blurInput();
18786
- } // reset move vars
18787
-
18788
-
18789
- _this.initialTouchX = 0;
18790
- _this.initialTouchY = 0;
18791
- };
18792
-
18793
- _this.onControlTouchEnd = function (event) {
18794
- if (_this.userIsDragging) return;
18795
-
18796
- _this.onControlMouseDown(event);
18797
- };
18798
-
18799
- _this.onClearIndicatorTouchEnd = function (event) {
18800
- if (_this.userIsDragging) return;
18801
-
18802
- _this.onClearIndicatorMouseDown(event);
18803
- };
18804
-
18805
- _this.onDropdownIndicatorTouchEnd = function (event) {
18806
- if (_this.userIsDragging) return;
18807
-
18808
- _this.onDropdownIndicatorMouseDown(event);
18809
- };
18810
-
18811
- _this.handleInputChange = function (event) {
18812
- var inputValue = event.currentTarget.value;
18813
- _this.inputIsHiddenAfterUpdate = false;
18814
-
18815
- _this.onInputChange(inputValue, {
18816
- action: 'input-change'
18817
- });
18818
-
18819
- if (!_this.props.menuIsOpen) {
18820
- _this.onMenuOpen();
18821
- }
18822
- };
18823
-
18824
- _this.onInputFocus = function (event) {
18825
- var _this$props5 = _this.props,
18826
- isSearchable = _this$props5.isSearchable,
18827
- isMulti = _this$props5.isMulti;
18828
-
18829
- if (_this.props.onFocus) {
18830
- _this.props.onFocus(event);
18831
- }
18832
-
18833
- _this.inputIsHiddenAfterUpdate = false;
18834
-
18835
- _this.announceAriaLiveContext({
18836
- event: 'input',
18837
- context: {
18838
- isSearchable: isSearchable,
18839
- isMulti: isMulti
18840
- }
18841
- });
18842
-
18843
- _this.setState({
18844
- isFocused: true
18845
- });
18846
-
18847
- if (_this.openAfterFocus || _this.props.openMenuOnFocus) {
18848
- _this.openMenu('first');
18849
- }
18850
-
18851
- _this.openAfterFocus = false;
18852
- };
18853
-
18854
- _this.onInputBlur = function (event) {
18855
- if (_this.menuListRef && _this.menuListRef.contains(document.activeElement)) {
18856
- _this.inputRef.focus();
18857
-
18858
- return;
18859
- }
18860
-
18861
- if (_this.props.onBlur) {
18862
- _this.props.onBlur(event);
18863
- }
18864
-
18865
- _this.onInputChange('', {
18866
- action: 'input-blur'
18867
- });
18868
-
18869
- _this.onMenuClose();
18870
-
18871
- _this.setState({
18872
- focusedValue: null,
18873
- isFocused: false
18874
- });
18875
- };
18876
-
18877
- _this.onOptionHover = function (focusedOption) {
18878
- if (_this.blockOptionHover || _this.state.focusedOption === focusedOption) {
18879
- return;
18880
- }
18881
-
18882
- _this.setState({
18883
- focusedOption: focusedOption
18884
- });
18885
- };
18886
-
18887
- _this.shouldHideSelectedOptions = function () {
18888
- var _this$props6 = _this.props,
18889
- hideSelectedOptions = _this$props6.hideSelectedOptions,
18890
- isMulti = _this$props6.isMulti;
18891
- if (hideSelectedOptions === undefined) return isMulti;
18892
- return hideSelectedOptions;
18893
- };
18894
-
18895
- _this.onKeyDown = function (event) {
18896
- var _this$props7 = _this.props,
18897
- isMulti = _this$props7.isMulti,
18898
- backspaceRemovesValue = _this$props7.backspaceRemovesValue,
18899
- escapeClearsValue = _this$props7.escapeClearsValue,
18900
- inputValue = _this$props7.inputValue,
18901
- isClearable = _this$props7.isClearable,
18902
- isDisabled = _this$props7.isDisabled,
18903
- menuIsOpen = _this$props7.menuIsOpen,
18904
- onKeyDown = _this$props7.onKeyDown,
18905
- tabSelectsValue = _this$props7.tabSelectsValue,
18906
- openMenuOnFocus = _this$props7.openMenuOnFocus;
18907
- var _this$state2 = _this.state,
18908
- focusedOption = _this$state2.focusedOption,
18909
- focusedValue = _this$state2.focusedValue,
18910
- selectValue = _this$state2.selectValue;
18911
- if (isDisabled) return;
18912
-
18913
- if (typeof onKeyDown === 'function') {
18914
- onKeyDown(event);
18915
-
18916
- if (event.defaultPrevented) {
18917
- return;
18918
- }
18919
- } // Block option hover events when the user has just pressed a key
18920
-
18921
-
18922
- _this.blockOptionHover = true;
18923
-
18924
- switch (event.key) {
18925
- case 'ArrowLeft':
18926
- if (!isMulti || inputValue) return;
18927
-
18928
- _this.focusValue('previous');
18929
-
18930
- break;
18931
-
18932
- case 'ArrowRight':
18933
- if (!isMulti || inputValue) return;
18934
-
18935
- _this.focusValue('next');
18936
-
18937
- break;
18938
-
18939
- case 'Delete':
18940
- case 'Backspace':
18941
- if (inputValue) return;
18942
-
18943
- if (focusedValue) {
18944
- _this.removeValue(focusedValue);
18945
- } else {
18946
- if (!backspaceRemovesValue) return;
18947
-
18948
- if (isMulti) {
18949
- _this.popValue();
18950
- } else if (isClearable) {
18951
- _this.clearValue();
18952
- }
18953
- }
18954
-
18955
- break;
18956
-
18957
- case 'Tab':
18958
- if (_this.isComposing) return;
18959
-
18960
- if (event.shiftKey || !menuIsOpen || !tabSelectsValue || !focusedOption || // don't capture the event if the menu opens on focus and the focused
18961
- // option is already selected; it breaks the flow of navigation
18962
- openMenuOnFocus && _this.isOptionSelected(focusedOption, selectValue)) {
18963
- return;
18964
- }
18965
-
18966
- _this.selectOption(focusedOption);
18967
-
18968
- break;
18969
-
18970
- case 'Enter':
18971
- if (event.keyCode === 229) {
18972
- // ignore the keydown event from an Input Method Editor(IME)
18973
- // ref. https://www.w3.org/TR/uievents/#determine-keydown-keyup-keyCode
18974
- break;
18975
- }
18976
-
18977
- if (menuIsOpen) {
18978
- if (!focusedOption) return;
18979
- if (_this.isComposing) return;
18980
-
18981
- _this.selectOption(focusedOption);
18982
-
18983
- break;
18984
- }
18985
-
18986
- return;
18987
-
18988
- case 'Escape':
18989
- if (menuIsOpen) {
18990
- _this.inputIsHiddenAfterUpdate = false;
18991
-
18992
- _this.onInputChange('', {
18993
- action: 'menu-close'
18994
- });
18995
-
18996
- _this.onMenuClose();
18997
- } else if (isClearable && escapeClearsValue) {
18998
- _this.clearValue();
18999
- }
19000
-
19001
- break;
19002
-
19003
- case ' ':
19004
- // space
19005
- if (inputValue) {
19006
- return;
19007
- }
19008
-
19009
- if (!menuIsOpen) {
19010
- _this.openMenu('first');
19011
-
19012
- break;
19013
- }
19014
-
19015
- if (!focusedOption) return;
19016
-
19017
- _this.selectOption(focusedOption);
19018
-
19019
- break;
19020
-
19021
- case 'ArrowUp':
19022
- if (menuIsOpen) {
19023
- _this.focusOption('up');
19024
- } else {
19025
- _this.openMenu('last');
19026
- }
19027
-
19028
- break;
19029
-
19030
- case 'ArrowDown':
19031
- if (menuIsOpen) {
19032
- _this.focusOption('down');
19033
- } else {
19034
- _this.openMenu('first');
19035
- }
19036
-
19037
- break;
19038
-
19039
- case 'PageUp':
19040
- if (!menuIsOpen) return;
19041
-
19042
- _this.focusOption('pageup');
19043
-
19044
- break;
19045
-
19046
- case 'PageDown':
19047
- if (!menuIsOpen) return;
19048
-
19049
- _this.focusOption('pagedown');
19050
-
19051
- break;
19052
-
19053
- case 'Home':
19054
- if (!menuIsOpen) return;
19055
-
19056
- _this.focusOption('first');
19057
-
19058
- break;
19059
-
19060
- case 'End':
19061
- if (!menuIsOpen) return;
19062
-
19063
- _this.focusOption('last');
19064
-
19065
- break;
19066
-
19067
- default:
19068
- return;
19069
- }
19070
-
19071
- event.preventDefault();
19072
- };
19073
-
19074
- _this.buildMenuOptions = function (props, selectValue) {
19075
- var _props$inputValue = props.inputValue,
19076
- inputValue = _props$inputValue === void 0 ? '' : _props$inputValue,
19077
- options = props.options;
19078
-
19079
- var toOption = function toOption(option, id) {
19080
- var isDisabled = _this.isOptionDisabled(option, selectValue);
19081
-
19082
- var isSelected = _this.isOptionSelected(option, selectValue);
19083
-
19084
- var label = _this.getOptionLabel(option);
19085
-
19086
- var value = _this.getOptionValue(option);
19087
-
19088
- if (_this.shouldHideSelectedOptions() && isSelected || !_this.filterOption({
19089
- label: label,
19090
- value: value,
19091
- data: option
19092
- }, inputValue)) {
19093
- return;
19094
- }
19095
-
19096
- var onHover = isDisabled ? undefined : function () {
19097
- return _this.onOptionHover(option);
19098
- };
19099
- var onSelect = isDisabled ? undefined : function () {
19100
- return _this.selectOption(option);
19101
- };
19102
- var optionId = "".concat(_this.getElementId('option'), "-").concat(id);
19103
- return {
19104
- innerProps: {
19105
- id: optionId,
19106
- onClick: onSelect,
19107
- onMouseMove: onHover,
19108
- onMouseOver: onHover,
19109
- tabIndex: -1
19110
- },
19111
- data: option,
19112
- isDisabled: isDisabled,
19113
- isSelected: isSelected,
19114
- key: optionId,
19115
- label: label,
19116
- type: 'option',
19117
- value: value
19118
- };
19119
- };
19120
-
19121
- return options.reduce(function (acc, item, itemIndex) {
19122
- if (item.options) {
19123
- // TODO needs a tidier implementation
19124
- if (!_this.hasGroups) _this.hasGroups = true;
19125
- var items = item.options;
19126
- var children = items.map(function (child, i) {
19127
- var option = toOption(child, "".concat(itemIndex, "-").concat(i));
19128
- if (option) acc.focusable.push(child);
19129
- return option;
19130
- }).filter(Boolean);
19131
-
19132
- if (children.length) {
19133
- var groupId = "".concat(_this.getElementId('group'), "-").concat(itemIndex);
19134
- acc.render.push({
19135
- type: 'group',
19136
- key: groupId,
19137
- data: item,
19138
- options: children
19139
- });
19140
- }
19141
- } else {
19142
- var option = toOption(item, "".concat(itemIndex));
19143
-
19144
- if (option) {
19145
- acc.render.push(option);
19146
- acc.focusable.push(item);
19147
- }
19148
- }
19149
-
19150
- return acc;
19151
- }, {
19152
- render: [],
19153
- focusable: []
19154
- });
19155
- };
19156
-
19157
- var _value = _props.value;
19158
- _this.cacheComponents = Object(__WEBPACK_IMPORTED_MODULE_12_memoize_one__["a" /* default */])(_this.cacheComponents, __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["a" /* A */]).bind(Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(_this));
19159
-
19160
- _this.cacheComponents(_props.components);
19161
-
19162
- _this.instancePrefix = 'react-select-' + (_this.props.instanceId || ++instanceId);
19163
-
19164
- var _selectValue = Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["b" /* B */])(_value);
19165
-
19166
- _this.buildMenuOptions = Object(__WEBPACK_IMPORTED_MODULE_12_memoize_one__["a" /* default */])(_this.buildMenuOptions, function (newArgs, lastArgs) {
19167
- var _ref6 = newArgs,
19168
- _ref7 = Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_slicedToArray__["a" /* default */])(_ref6, 2),
19169
- newProps = _ref7[0],
19170
- newSelectValue = _ref7[1];
19171
-
19172
- var _ref8 = lastArgs,
19173
- _ref9 = Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_slicedToArray__["a" /* default */])(_ref8, 2),
19174
- lastProps = _ref9[0],
19175
- lastSelectValue = _ref9[1];
19176
-
19177
- return Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["a" /* A */])(newSelectValue, lastSelectValue) && Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["a" /* A */])(newProps.inputValue, lastProps.inputValue) && Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["a" /* A */])(newProps.options, lastProps.options);
19178
- }).bind(Object(__WEBPACK_IMPORTED_MODULE_7__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(_this));
19179
-
19180
- var _menuOptions = _props.menuIsOpen ? _this.buildMenuOptions(_props, _selectValue) : {
19181
- render: [],
19182
- focusable: []
19183
- };
19184
-
19185
- _this.state.menuOptions = _menuOptions;
19186
- _this.state.selectValue = _selectValue;
19187
- return _this;
19188
- }
19189
-
19190
- Object(__WEBPACK_IMPORTED_MODULE_6__babel_runtime_helpers_esm_createClass__["a" /* default */])(Select, [{
19191
- key: "componentDidMount",
19192
- value: function componentDidMount() {
19193
- this.startListeningComposition();
19194
- this.startListeningToTouch();
19195
-
19196
- if (this.props.closeMenuOnScroll && document && document.addEventListener) {
19197
- // Listen to all scroll events, and filter them out inside of 'onScroll'
19198
- document.addEventListener('scroll', this.onScroll, true);
19199
- }
19200
-
19201
- if (this.props.autoFocus) {
19202
- this.focusInput();
19203
- }
19204
- }
19205
- }, {
19206
- key: "UNSAFE_componentWillReceiveProps",
19207
- value: function UNSAFE_componentWillReceiveProps(nextProps) {
19208
- var _this$props8 = this.props,
19209
- options = _this$props8.options,
19210
- value = _this$props8.value,
19211
- menuIsOpen = _this$props8.menuIsOpen,
19212
- inputValue = _this$props8.inputValue; // re-cache custom components
19213
-
19214
- this.cacheComponents(nextProps.components); // rebuild the menu options
19215
-
19216
- if (nextProps.value !== value || nextProps.options !== options || nextProps.menuIsOpen !== menuIsOpen || nextProps.inputValue !== inputValue) {
19217
- var selectValue = Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["b" /* B */])(nextProps.value);
19218
- var menuOptions = nextProps.menuIsOpen ? this.buildMenuOptions(nextProps, selectValue) : {
19219
- render: [],
19220
- focusable: []
19221
- };
19222
- var focusedValue = this.getNextFocusedValue(selectValue);
19223
- var focusedOption = this.getNextFocusedOption(menuOptions.focusable);
19224
- this.setState({
19225
- menuOptions: menuOptions,
19226
- selectValue: selectValue,
19227
- focusedOption: focusedOption,
19228
- focusedValue: focusedValue
19229
- });
19230
- } // some updates should toggle the state of the input visibility
19231
-
19232
-
19233
- if (this.inputIsHiddenAfterUpdate != null) {
19234
- this.setState({
19235
- inputIsHidden: this.inputIsHiddenAfterUpdate
19236
- });
19237
- delete this.inputIsHiddenAfterUpdate;
19238
- }
19239
- }
19240
- }, {
19241
- key: "componentDidUpdate",
19242
- value: function componentDidUpdate(prevProps) {
19243
- var _this$props9 = this.props,
19244
- isDisabled = _this$props9.isDisabled,
19245
- menuIsOpen = _this$props9.menuIsOpen;
19246
- var isFocused = this.state.isFocused;
19247
-
19248
- if ( // ensure focus is restored correctly when the control becomes enabled
19249
- isFocused && !isDisabled && prevProps.isDisabled || // ensure focus is on the Input when the menu opens
19250
- isFocused && menuIsOpen && !prevProps.menuIsOpen) {
19251
- this.focusInput();
19252
- } // scroll the focused option into view if necessary
19253
-
19254
-
19255
- if (this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate) {
19256
- Object(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["c" /* C */])(this.menuListRef, this.focusedOptionRef);
19257
- this.scrollToFocusedOptionOnUpdate = false;
19258
- }
19259
- }
19260
- }, {
19261
- key: "componentWillUnmount",
19262
- value: function componentWillUnmount() {
19263
- this.stopListeningComposition();
19264
- this.stopListeningToTouch();
19265
- document.removeEventListener('scroll', this.onScroll, true);
19266
- }
19267
- }, {
19268
- key: "onMenuOpen",
19269
- // ==============================
19270
- // Consumer Handlers
19271
- // ==============================
19272
- value: function onMenuOpen() {
19273
- this.props.onMenuOpen();
19274
- }
19275
- }, {
19276
- key: "onMenuClose",
19277
- value: function onMenuClose() {
19278
- var _this$props10 = this.props,
19279
- isSearchable = _this$props10.isSearchable,
19280
- isMulti = _this$props10.isMulti;
19281
- this.announceAriaLiveContext({
19282
- event: 'input',
19283
- context: {
19284
- isSearchable: isSearchable,
19285
- isMulti: isMulti
19286
- }
19287
- });
19288
- this.onInputChange('', {
19289
- action: 'menu-close'
19290
- });
19291
- this.props.onMenuClose();
19292
- }
19293
- }, {
19294
- key: "onInputChange",
19295
- value: function onInputChange(newValue, actionMeta) {
19296
- this.props.onInputChange(newValue, actionMeta);
19297
- } // ==============================
19298
- // Methods
19299
- // ==============================
19300
-
19301
- }, {
19302
- key: "focusInput",
19303
- value: function focusInput() {
19304
- if (!this.inputRef) return;
19305
- this.inputRef.focus();
19306
- }
19307
- }, {
19308
- key: "blurInput",
19309
- value: function blurInput() {
19310
- if (!this.inputRef) return;
19311
- this.inputRef.blur();
19312
- } // aliased for consumers
19313
-
19314
- }, {
19315
- key: "openMenu",
19316
- value: function openMenu(focusOption) {
19317
- var _this2 = this;
19318
-
19319
- var _this$state3 = this.state,
19320
- selectValue = _this$state3.selectValue,
19321
- isFocused = _this$state3.isFocused;
19322
- var menuOptions = this.buildMenuOptions(this.props, selectValue);
19323
- var isMulti = this.props.isMulti;
19324
- var openAtIndex = focusOption === 'first' ? 0 : menuOptions.focusable.length - 1;
19325
-
19326
- if (!isMulti) {
19327
- var selectedIndex = menuOptions.focusable.indexOf(selectValue[0]);
19328
-
19329
- if (selectedIndex > -1) {
19330
- openAtIndex = selectedIndex;
19331
- }
19332
- } // only scroll if the menu isn't already open
19333
-
19334
-
19335
- this.scrollToFocusedOptionOnUpdate = !(isFocused && this.menuListRef);
19336
- this.inputIsHiddenAfterUpdate = false;
19337
- this.setState({
19338
- menuOptions: menuOptions,
19339
- focusedValue: null,
19340
- focusedOption: menuOptions.focusable[openAtIndex]
19341
- }, function () {
19342
- _this2.onMenuOpen();
19343
-
19344
- _this2.announceAriaLiveContext({
19345
- event: 'menu'
19346
- });
19347
- });
19348
- }
19349
- }, {
19350
- key: "focusValue",
19351
- value: function focusValue(direction) {
19352
- var _this$props11 = this.props,
19353
- isMulti = _this$props11.isMulti,
19354
- isSearchable = _this$props11.isSearchable;
19355
- var _this$state4 = this.state,
19356
- selectValue = _this$state4.selectValue,
19357
- focusedValue = _this$state4.focusedValue; // Only multiselects support value focusing
19358
-
19359
- if (!isMulti) return;
19360
- this.setState({
19361
- focusedOption: null
19362
- });
19363
- var focusedIndex = selectValue.indexOf(focusedValue);
19364
-
19365
- if (!focusedValue) {
19366
- focusedIndex = -1;
19367
- this.announceAriaLiveContext({
19368
- event: 'value'
19369
- });
19370
- }
19371
-
19372
- var lastIndex = selectValue.length - 1;
19373
- var nextFocus = -1;
19374
- if (!selectValue.length) return;
19375
-
19376
- switch (direction) {
19377
- case 'previous':
19378
- if (focusedIndex === 0) {
19379
- // don't cycle from the start to the end
19380
- nextFocus = 0;
19381
- } else if (focusedIndex === -1) {
19382
- // if nothing is focused, focus the last value first
19383
- nextFocus = lastIndex;
19384
- } else {
19385
- nextFocus = focusedIndex - 1;
19386
- }
19387
-
19388
- break;
19389
-
19390
- case 'next':
19391
- if (focusedIndex > -1 && focusedIndex < lastIndex) {
19392
- nextFocus = focusedIndex + 1;
19393
- }
19394
-
19395
- break;
19396
- }
19397
-
19398
- if (nextFocus === -1) {
19399
- this.announceAriaLiveContext({
19400
- event: 'input',
19401
- context: {
19402
- isSearchable: isSearchable,
19403
- isMulti: isMulti
19404
- }
19405
- });
19406
- }
19407
-
19408
- this.setState({
19409
- inputIsHidden: nextFocus !== -1,
19410
- focusedValue: selectValue[nextFocus]
19411
- });
19412
- }
19413
- }, {
19414
- key: "focusOption",
19415
- value: function focusOption() {
19416
- var direction = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'first';
19417
- var pageSize = this.props.pageSize;
19418
- var _this$state5 = this.state,
19419
- focusedOption = _this$state5.focusedOption,
19420
- menuOptions = _this$state5.menuOptions;
19421
- var options = menuOptions.focusable;
19422
- if (!options.length) return;
19423
- var nextFocus = 0; // handles 'first'
19424
-
19425
- var focusedIndex = options.indexOf(focusedOption);
19426
-
19427
- if (!focusedOption) {
19428
- focusedIndex = -1;
19429
- this.announceAriaLiveContext({
19430
- event: 'menu'
19431
- });
19432
- }
19433
-
19434
- if (direction === 'up') {
19435
- nextFocus = focusedIndex > 0 ? focusedIndex - 1 : options.length - 1;
19436
- } else if (direction === 'down') {
19437
- nextFocus = (focusedIndex + 1) % options.length;
19438
- } else if (direction === 'pageup') {
19439
- nextFocus = focusedIndex - pageSize;
19440
- if (nextFocus < 0) nextFocus = 0;
19441
- } else if (direction === 'pagedown') {
19442
- nextFocus = focusedIndex + pageSize;
19443
- if (nextFocus > options.length - 1) nextFocus = options.length - 1;
19444
- } else if (direction === 'last') {
19445
- nextFocus = options.length - 1;
19446
- }
19447
-
19448
- this.scrollToFocusedOptionOnUpdate = true;
19449
- this.setState({
19450
- focusedOption: options[nextFocus],
19451
- focusedValue: null
19452
- });
19453
- this.announceAriaLiveContext({
19454
- event: 'menu',
19455
- context: {
19456
- isDisabled: isOptionDisabled(options[nextFocus])
19457
- }
19458
- });
19459
- }
19460
- }, {
19461
- key: "getTheme",
19462
- // ==============================
19463
- // Getters
19464
- // ==============================
19465
- value: function getTheme() {
19466
- // Use the default theme if there are no customizations.
19467
- if (!this.props.theme) {
19468
- return defaultTheme;
19469
- } // If the theme prop is a function, assume the function
19470
- // knows how to merge the passed-in default theme with
19471
- // its own modifications.
19472
-
19473
-
19474
- if (typeof this.props.theme === 'function') {
19475
- return this.props.theme(defaultTheme);
19476
- } // Otherwise, if a plain theme object was passed in,
19477
- // overlay it with the default theme.
19478
-
19479
-
19480
- return _objectSpread$2(_objectSpread$2({}, defaultTheme), this.props.theme);
19481
- }
19482
- }, {
19483
- key: "getCommonProps",
19484
- value: function getCommonProps() {
19485
- var clearValue = this.clearValue,
19486
- getStyles = this.getStyles,
19487
- setValue = this.setValue,
19488
- selectOption = this.selectOption,
19489
- props = this.props;
19490
- var classNamePrefix = props.classNamePrefix,
19491
- isMulti = props.isMulti,
19492
- isRtl = props.isRtl,
19493
- options = props.options;
19494
- var selectValue = this.state.selectValue;
19495
- var hasValue = this.hasValue();
19496
-
19497
- var getValue = function getValue() {
19498
- return selectValue;
19499
- };
19500
-
19501
- var cx = __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["d" /* D */].bind(null, classNamePrefix);
19502
- return {
19503
- cx: cx,
19504
- clearValue: clearValue,
19505
- getStyles: getStyles,
19506
- getValue: getValue,
19507
- hasValue: hasValue,
19508
- isMulti: isMulti,
19509
- isRtl: isRtl,
19510
- options: options,
19511
- selectOption: selectOption,
19512
- setValue: setValue,
19513
- selectProps: props,
19514
- theme: this.getTheme()
19515
- };
19516
- }
19517
- }, {
19518
- key: "getNextFocusedValue",
19519
- value: function getNextFocusedValue(nextSelectValue) {
19520
- if (this.clearFocusValueOnUpdate) {
19521
- this.clearFocusValueOnUpdate = false;
19522
- return null;
19523
- }
19524
-
19525
- var _this$state6 = this.state,
19526
- focusedValue = _this$state6.focusedValue,
19527
- lastSelectValue = _this$state6.selectValue;
19528
- var lastFocusedIndex = lastSelectValue.indexOf(focusedValue);
19529
-
19530
- if (lastFocusedIndex > -1) {
19531
- var nextFocusedIndex = nextSelectValue.indexOf(focusedValue);
19532
-
19533
- if (nextFocusedIndex > -1) {
19534
- // the focused value is still in the selectValue, return it
19535
- return focusedValue;
19536
- } else if (lastFocusedIndex < nextSelectValue.length) {
19537
- // the focusedValue is not present in the next selectValue array by
19538
- // reference, so return the new value at the same index
19539
- return nextSelectValue[lastFocusedIndex];
19540
- }
19541
- }
19542
-
19543
- return null;
19544
- }
19545
- }, {
19546
- key: "getNextFocusedOption",
19547
- value: function getNextFocusedOption(options) {
19548
- var lastFocusedOption = this.state.focusedOption;
19549
- return lastFocusedOption && options.indexOf(lastFocusedOption) > -1 ? lastFocusedOption : options[0];
19550
- }
19551
- }, {
19552
- key: "hasValue",
19553
- value: function hasValue() {
19554
- var selectValue = this.state.selectValue;
19555
- return selectValue.length > 0;
19556
- }
19557
- }, {
19558
- key: "hasOptions",
19559
- value: function hasOptions() {
19560
- return !!this.state.menuOptions.render.length;
19561
- }
19562
- }, {
19563
- key: "countOptions",
19564
- value: function countOptions() {
19565
- return this.state.menuOptions.focusable.length;
19566
- }
19567
- }, {
19568
- key: "isClearable",
19569
- value: function isClearable() {
19570
- var _this$props12 = this.props,
19571
- isClearable = _this$props12.isClearable,
19572
- isMulti = _this$props12.isMulti; // single select, by default, IS NOT clearable
19573
- // multi select, by default, IS clearable
19574
-
19575
- if (isClearable === undefined) return isMulti;
19576
- return isClearable;
19577
- }
19578
- }, {
19579
- key: "isOptionDisabled",
19580
- value: function isOptionDisabled(option, selectValue) {
19581
- return typeof this.props.isOptionDisabled === 'function' ? this.props.isOptionDisabled(option, selectValue) : false;
19582
- }
19583
- }, {
19584
- key: "isOptionSelected",
19585
- value: function isOptionSelected(option, selectValue) {
19586
- var _this3 = this;
19587
-
19588
- if (selectValue.indexOf(option) > -1) return true;
19589
-
19590
- if (typeof this.props.isOptionSelected === 'function') {
19591
- return this.props.isOptionSelected(option, selectValue);
19592
- }
19593
-
19594
- var candidate = this.getOptionValue(option);
19595
- return selectValue.some(function (i) {
19596
- return _this3.getOptionValue(i) === candidate;
19597
- });
19598
- }
19599
- }, {
19600
- key: "filterOption",
19601
- value: function filterOption(option, inputValue) {
19602
- return this.props.filterOption ? this.props.filterOption(option, inputValue) : true;
19603
- }
19604
- }, {
19605
- key: "formatOptionLabel",
19606
- value: function formatOptionLabel(data, context) {
19607
- if (typeof this.props.formatOptionLabel === 'function') {
19608
- var inputValue = this.props.inputValue;
19609
- var selectValue = this.state.selectValue;
19610
- return this.props.formatOptionLabel(data, {
19611
- context: context,
19612
- inputValue: inputValue,
19613
- selectValue: selectValue
19614
- });
19615
- } else {
19616
- return this.getOptionLabel(data);
19617
- }
19618
- }
19619
- }, {
19620
- key: "formatGroupLabel",
19621
- value: function formatGroupLabel(data) {
19622
- return this.props.formatGroupLabel(data);
19623
- } // ==============================
19624
- // Mouse Handlers
19625
- // ==============================
19626
-
19627
- }, {
19628
- key: "startListeningComposition",
19629
- // ==============================
19630
- // Composition Handlers
19631
- // ==============================
19632
- value: function startListeningComposition() {
19633
- if (document && document.addEventListener) {
19634
- document.addEventListener('compositionstart', this.onCompositionStart, false);
19635
- document.addEventListener('compositionend', this.onCompositionEnd, false);
19636
- }
19637
- }
19638
- }, {
19639
- key: "stopListeningComposition",
19640
- value: function stopListeningComposition() {
19641
- if (document && document.removeEventListener) {
19642
- document.removeEventListener('compositionstart', this.onCompositionStart);
19643
- document.removeEventListener('compositionend', this.onCompositionEnd);
19644
- }
19645
- }
19646
- }, {
19647
- key: "startListeningToTouch",
19648
- // ==============================
19649
- // Touch Handlers
19650
- // ==============================
19651
- value: function startListeningToTouch() {
19652
- if (document && document.addEventListener) {
19653
- document.addEventListener('touchstart', this.onTouchStart, false);
19654
- document.addEventListener('touchmove', this.onTouchMove, false);
19655
- document.addEventListener('touchend', this.onTouchEnd, false);
19656
- }
19657
- }
19658
- }, {
19659
- key: "stopListeningToTouch",
19660
- value: function stopListeningToTouch() {
19661
- if (document && document.removeEventListener) {
19662
- document.removeEventListener('touchstart', this.onTouchStart);
19663
- document.removeEventListener('touchmove', this.onTouchMove);
19664
- document.removeEventListener('touchend', this.onTouchEnd);
19665
- }
19666
- }
19667
- }, {
19668
- key: "constructAriaLiveMessage",
19669
- // ==============================
19670
- // Renderers
19671
- // ==============================
19672
- value: function constructAriaLiveMessage() {
19673
- var _this$state7 = this.state,
19674
- ariaLiveContext = _this$state7.ariaLiveContext,
19675
- selectValue = _this$state7.selectValue,
19676
- focusedValue = _this$state7.focusedValue,
19677
- focusedOption = _this$state7.focusedOption;
19678
- var _this$props13 = this.props,
19679
- options = _this$props13.options,
19680
- menuIsOpen = _this$props13.menuIsOpen,
19681
- inputValue = _this$props13.inputValue,
19682
- screenReaderStatus = _this$props13.screenReaderStatus; // An aria live message representing the currently focused value in the select.
19683
-
19684
- var focusedValueMsg = focusedValue ? valueFocusAriaMessage({
19685
- focusedValue: focusedValue,
19686
- getOptionLabel: this.getOptionLabel,
19687
- selectValue: selectValue
19688
- }) : ''; // An aria live message representing the currently focused option in the select.
19689
-
19690
- var focusedOptionMsg = focusedOption && menuIsOpen ? optionFocusAriaMessage({
19691
- focusedOption: focusedOption,
19692
- getOptionLabel: this.getOptionLabel,
19693
- options: options
19694
- }) : ''; // An aria live message representing the set of focusable results and current searchterm/inputvalue.
19695
-
19696
- var resultsMsg = resultsAriaMessage({
19697
- inputValue: inputValue,
19698
- screenReaderMessage: screenReaderStatus({
19699
- count: this.countOptions()
19700
- })
19701
- });
19702
- return "".concat(focusedValueMsg, " ").concat(focusedOptionMsg, " ").concat(resultsMsg, " ").concat(ariaLiveContext);
19703
- }
19704
- }, {
19705
- key: "renderInput",
19706
- value: function renderInput() {
19707
- var _this$props14 = this.props,
19708
- isDisabled = _this$props14.isDisabled,
19709
- isSearchable = _this$props14.isSearchable,
19710
- inputId = _this$props14.inputId,
19711
- inputValue = _this$props14.inputValue,
19712
- tabIndex = _this$props14.tabIndex,
19713
- form = _this$props14.form;
19714
- var Input = this.components.Input;
19715
- var inputIsHidden = this.state.inputIsHidden;
19716
- var id = inputId || this.getElementId('input'); // aria attributes makes the JSX "noisy", separated for clarity
19717
-
19718
- var ariaAttributes = {
19719
- 'aria-autocomplete': 'list',
19720
- 'aria-label': this.props['aria-label'],
19721
- 'aria-labelledby': this.props['aria-labelledby']
19722
- };
19723
-
19724
- if (!isSearchable) {
19725
- // use a dummy input to maintain focus/blur functionality
19726
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(DummyInput, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
19727
- id: id,
19728
- innerRef: this.getInputRef,
19729
- onBlur: this.onInputBlur,
19730
- onChange: __WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["e" /* E */],
19731
- onFocus: this.onInputFocus,
19732
- readOnly: true,
19733
- disabled: isDisabled,
19734
- tabIndex: tabIndex,
19735
- form: form,
19736
- value: ""
19737
- }, ariaAttributes));
19738
- }
19739
-
19740
- var _this$commonProps = this.commonProps,
19741
- cx = _this$commonProps.cx,
19742
- theme = _this$commonProps.theme,
19743
- selectProps = _this$commonProps.selectProps;
19744
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Input, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({
19745
- autoCapitalize: "none",
19746
- autoComplete: "off",
19747
- autoCorrect: "off",
19748
- cx: cx,
19749
- getStyles: this.getStyles,
19750
- id: id,
19751
- innerRef: this.getInputRef,
19752
- isDisabled: isDisabled,
19753
- isHidden: inputIsHidden,
19754
- onBlur: this.onInputBlur,
19755
- onChange: this.handleInputChange,
19756
- onFocus: this.onInputFocus,
19757
- selectProps: selectProps,
19758
- spellCheck: "false",
19759
- tabIndex: tabIndex,
19760
- form: form,
19761
- theme: theme,
19762
- type: "text",
19763
- value: inputValue
19764
- }, ariaAttributes));
19765
- }
19766
- }, {
19767
- key: "renderPlaceholderOrValue",
19768
- value: function renderPlaceholderOrValue() {
19769
- var _this4 = this;
19770
-
19771
- var _this$components = this.components,
19772
- MultiValue = _this$components.MultiValue,
19773
- MultiValueContainer = _this$components.MultiValueContainer,
19774
- MultiValueLabel = _this$components.MultiValueLabel,
19775
- MultiValueRemove = _this$components.MultiValueRemove,
19776
- SingleValue = _this$components.SingleValue,
19777
- Placeholder = _this$components.Placeholder;
19778
- var commonProps = this.commonProps;
19779
- var _this$props15 = this.props,
19780
- controlShouldRenderValue = _this$props15.controlShouldRenderValue,
19781
- isDisabled = _this$props15.isDisabled,
19782
- isMulti = _this$props15.isMulti,
19783
- inputValue = _this$props15.inputValue,
19784
- placeholder = _this$props15.placeholder;
19785
- var _this$state8 = this.state,
19786
- selectValue = _this$state8.selectValue,
19787
- focusedValue = _this$state8.focusedValue,
19788
- isFocused = _this$state8.isFocused;
19789
-
19790
- if (!this.hasValue() || !controlShouldRenderValue) {
19791
- return inputValue ? null : /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Placeholder, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
19792
- key: "placeholder",
19793
- isDisabled: isDisabled,
19794
- isFocused: isFocused
19795
- }), placeholder);
19796
- }
19797
-
19798
- if (isMulti) {
19799
- var selectValues = selectValue.map(function (opt, index) {
19800
- var isOptionFocused = opt === focusedValue;
19801
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(MultiValue, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
19802
- components: {
19803
- Container: MultiValueContainer,
19804
- Label: MultiValueLabel,
19805
- Remove: MultiValueRemove
19806
- },
19807
- isFocused: isOptionFocused,
19808
- isDisabled: isDisabled,
19809
- key: _this4.getOptionValue(opt),
19810
- index: index,
19811
- removeProps: {
19812
- onClick: function onClick() {
19813
- return _this4.removeValue(opt);
19814
- },
19815
- onTouchEnd: function onTouchEnd() {
19816
- return _this4.removeValue(opt);
19817
- },
19818
- onMouseDown: function onMouseDown(e) {
19819
- e.preventDefault();
19820
- e.stopPropagation();
19821
- }
19822
- },
19823
- data: opt
19824
- }), _this4.formatOptionLabel(opt, 'value'));
19825
- });
19826
- return selectValues;
19827
- }
19828
-
19829
- if (inputValue) {
19830
- return null;
19831
- }
19832
-
19833
- var singleValue = selectValue[0];
19834
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(SingleValue, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
19835
- data: singleValue,
19836
- isDisabled: isDisabled
19837
- }), this.formatOptionLabel(singleValue, 'value'));
19838
- }
19839
- }, {
19840
- key: "renderClearIndicator",
19841
- value: function renderClearIndicator() {
19842
- var ClearIndicator = this.components.ClearIndicator;
19843
- var commonProps = this.commonProps;
19844
- var _this$props16 = this.props,
19845
- isDisabled = _this$props16.isDisabled,
19846
- isLoading = _this$props16.isLoading;
19847
- var isFocused = this.state.isFocused;
19848
-
19849
- if (!this.isClearable() || !ClearIndicator || isDisabled || !this.hasValue() || isLoading) {
19850
- return null;
19851
- }
19852
-
19853
- var innerProps = {
19854
- onMouseDown: this.onClearIndicatorMouseDown,
19855
- onTouchEnd: this.onClearIndicatorTouchEnd,
19856
- 'aria-hidden': 'true'
19857
- };
19858
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ClearIndicator, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
19859
- innerProps: innerProps,
19860
- isFocused: isFocused
19861
- }));
19862
- }
19863
- }, {
19864
- key: "renderLoadingIndicator",
19865
- value: function renderLoadingIndicator() {
19866
- var LoadingIndicator = this.components.LoadingIndicator;
19867
- var commonProps = this.commonProps;
19868
- var _this$props17 = this.props,
19869
- isDisabled = _this$props17.isDisabled,
19870
- isLoading = _this$props17.isLoading;
19871
- var isFocused = this.state.isFocused;
19872
- if (!LoadingIndicator || !isLoading) return null;
19873
- var innerProps = {
19874
- 'aria-hidden': 'true'
19875
- };
19876
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(LoadingIndicator, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
19877
- innerProps: innerProps,
19878
- isDisabled: isDisabled,
19879
- isFocused: isFocused
19880
- }));
19881
- }
19882
- }, {
19883
- key: "renderIndicatorSeparator",
19884
- value: function renderIndicatorSeparator() {
19885
- var _this$components2 = this.components,
19886
- DropdownIndicator = _this$components2.DropdownIndicator,
19887
- IndicatorSeparator = _this$components2.IndicatorSeparator; // separator doesn't make sense without the dropdown indicator
19888
-
19889
- if (!DropdownIndicator || !IndicatorSeparator) return null;
19890
- var commonProps = this.commonProps;
19891
- var isDisabled = this.props.isDisabled;
19892
- var isFocused = this.state.isFocused;
19893
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(IndicatorSeparator, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
19894
- isDisabled: isDisabled,
19895
- isFocused: isFocused
19896
- }));
19897
- }
19898
- }, {
19899
- key: "renderDropdownIndicator",
19900
- value: function renderDropdownIndicator() {
19901
- var DropdownIndicator = this.components.DropdownIndicator;
19902
- if (!DropdownIndicator) return null;
19903
- var commonProps = this.commonProps;
19904
- var isDisabled = this.props.isDisabled;
19905
- var isFocused = this.state.isFocused;
19906
- var innerProps = {
19907
- onMouseDown: this.onDropdownIndicatorMouseDown,
19908
- onTouchEnd: this.onDropdownIndicatorTouchEnd,
19909
- 'aria-hidden': 'true'
19910
- };
19911
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(DropdownIndicator, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
19912
- innerProps: innerProps,
19913
- isDisabled: isDisabled,
19914
- isFocused: isFocused
19915
- }));
19916
- }
19917
- }, {
19918
- key: "renderMenu",
19919
- value: function renderMenu() {
19920
- var _this5 = this;
19921
-
19922
- var _this$components3 = this.components,
19923
- Group = _this$components3.Group,
19924
- GroupHeading = _this$components3.GroupHeading,
19925
- Menu = _this$components3.Menu,
19926
- MenuList = _this$components3.MenuList,
19927
- MenuPortal = _this$components3.MenuPortal,
19928
- LoadingMessage = _this$components3.LoadingMessage,
19929
- NoOptionsMessage = _this$components3.NoOptionsMessage,
19930
- Option = _this$components3.Option;
19931
- var commonProps = this.commonProps;
19932
- var _this$state9 = this.state,
19933
- focusedOption = _this$state9.focusedOption,
19934
- menuOptions = _this$state9.menuOptions;
19935
- var _this$props18 = this.props,
19936
- captureMenuScroll = _this$props18.captureMenuScroll,
19937
- inputValue = _this$props18.inputValue,
19938
- isLoading = _this$props18.isLoading,
19939
- loadingMessage = _this$props18.loadingMessage,
19940
- minMenuHeight = _this$props18.minMenuHeight,
19941
- maxMenuHeight = _this$props18.maxMenuHeight,
19942
- menuIsOpen = _this$props18.menuIsOpen,
19943
- menuPlacement = _this$props18.menuPlacement,
19944
- menuPosition = _this$props18.menuPosition,
19945
- menuPortalTarget = _this$props18.menuPortalTarget,
19946
- menuShouldBlockScroll = _this$props18.menuShouldBlockScroll,
19947
- menuShouldScrollIntoView = _this$props18.menuShouldScrollIntoView,
19948
- noOptionsMessage = _this$props18.noOptionsMessage,
19949
- onMenuScrollToTop = _this$props18.onMenuScrollToTop,
19950
- onMenuScrollToBottom = _this$props18.onMenuScrollToBottom;
19951
- if (!menuIsOpen) return null; // TODO: Internal Option Type here
19952
-
19953
- var render = function render(props) {
19954
- // for performance, the menu options in state aren't changed when the
19955
- // focused option changes so we calculate additional props based on that
19956
- var isFocused = focusedOption === props.data;
19957
- props.innerRef = isFocused ? _this5.getFocusedOptionRef : undefined;
19958
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Option, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, props, {
19959
- isFocused: isFocused
19960
- }), _this5.formatOptionLabel(props.data, 'menu'));
19961
- };
19962
-
19963
- var menuUI;
19964
-
19965
- if (this.hasOptions()) {
19966
- menuUI = menuOptions.render.map(function (item) {
19967
- if (item.type === 'group') {
19968
- var type = item.type,
19969
- group = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(item, ["type"]);
19970
-
19971
- var headingId = "".concat(item.key, "-heading");
19972
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Group, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, group, {
19973
- Heading: GroupHeading,
19974
- headingProps: {
19975
- id: headingId
19976
- },
19977
- label: _this5.formatGroupLabel(item.data)
19978
- }), item.options.map(function (option) {
19979
- return render(option);
19980
- }));
19981
- } else if (item.type === 'option') {
19982
- return render(item);
19983
- }
19984
- });
19985
- } else if (isLoading) {
19986
- var message = loadingMessage({
19987
- inputValue: inputValue
19988
- });
19989
- if (message === null) return null;
19990
- menuUI = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(LoadingMessage, commonProps, message);
19991
- } else {
19992
- var _message = noOptionsMessage({
19993
- inputValue: inputValue
19994
- });
19995
-
19996
- if (_message === null) return null;
19997
- menuUI = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(NoOptionsMessage, commonProps, _message);
19998
- }
19999
-
20000
- var menuPlacementProps = {
20001
- minMenuHeight: minMenuHeight,
20002
- maxMenuHeight: maxMenuHeight,
20003
- menuPlacement: menuPlacement,
20004
- menuPosition: menuPosition,
20005
- menuShouldScrollIntoView: menuShouldScrollIntoView
20006
- };
20007
- var menuElement = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_15__index_4b37608a_browser_esm_js__["g" /* M */], Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, menuPlacementProps), function (_ref10) {
20008
- var ref = _ref10.ref,
20009
- _ref10$placerProps = _ref10.placerProps,
20010
- placement = _ref10$placerProps.placement,
20011
- maxHeight = _ref10$placerProps.maxHeight;
20012
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Menu, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, menuPlacementProps, {
20013
- innerRef: ref,
20014
- innerProps: {
20015
- onMouseDown: _this5.onMenuMouseDown,
20016
- onMouseMove: _this5.onMenuMouseMove
20017
- },
20018
- isLoading: isLoading,
20019
- placement: placement
20020
- }), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ScrollCaptorSwitch, {
20021
- isEnabled: captureMenuScroll,
20022
- onTopArrive: onMenuScrollToTop,
20023
- onBottomArrive: onMenuScrollToBottom
20024
- }, /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ScrollBlock, {
20025
- isEnabled: menuShouldBlockScroll
20026
- }, /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(MenuList, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
20027
- innerRef: _this5.getMenuListRef,
20028
- isLoading: isLoading,
20029
- maxHeight: maxHeight
20030
- }), menuUI))));
20031
- }); // positioning behaviour is almost identical for portalled and fixed,
20032
- // so we use the same component. the actual portalling logic is forked
20033
- // within the component based on `menuPosition`
20034
-
20035
- return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(MenuPortal, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
20036
- appendTo: menuPortalTarget,
20037
- controlElement: this.controlRef,
20038
- menuPlacement: menuPlacement,
20039
- menuPosition: menuPosition
20040
- }), menuElement) : menuElement;
20041
- }
20042
- }, {
20043
- key: "renderFormField",
20044
- value: function renderFormField() {
20045
- var _this6 = this;
20046
-
20047
- var _this$props19 = this.props,
20048
- delimiter = _this$props19.delimiter,
20049
- isDisabled = _this$props19.isDisabled,
20050
- isMulti = _this$props19.isMulti,
20051
- name = _this$props19.name;
20052
- var selectValue = this.state.selectValue;
20053
- if (!name || isDisabled) return;
20054
-
20055
- if (isMulti) {
20056
- if (delimiter) {
20057
- var value = selectValue.map(function (opt) {
20058
- return _this6.getOptionValue(opt);
20059
- }).join(delimiter);
20060
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input", {
20061
- name: name,
20062
- type: "hidden",
20063
- value: value
20064
- });
20065
- } else {
20066
- var input = selectValue.length > 0 ? selectValue.map(function (opt, i) {
20067
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input", {
20068
- key: "i-".concat(i),
20069
- name: name,
20070
- type: "hidden",
20071
- value: _this6.getOptionValue(opt)
20072
- });
20073
- }) : /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input", {
20074
- name: name,
20075
- type: "hidden"
20076
- });
20077
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("div", null, input);
20078
- }
20079
- } else {
20080
- var _value2 = selectValue[0] ? this.getOptionValue(selectValue[0]) : '';
20081
-
20082
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("input", {
20083
- name: name,
20084
- type: "hidden",
20085
- value: _value2
20086
- });
20087
- }
20088
- }
20089
- }, {
20090
- key: "renderLiveRegion",
20091
- value: function renderLiveRegion() {
20092
- if (!this.state.isFocused) return null;
20093
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(A11yText, {
20094
- "aria-live": "polite"
20095
- }, /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("span", {
20096
- id: "aria-selection-event"
20097
- }, "\xA0", this.state.ariaLiveSelection), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement("span", {
20098
- id: "aria-context"
20099
- }, "\xA0", this.constructAriaLiveMessage()));
20100
- }
20101
- }, {
20102
- key: "render",
20103
- value: function render() {
20104
- var _this$components4 = this.components,
20105
- Control = _this$components4.Control,
20106
- IndicatorsContainer = _this$components4.IndicatorsContainer,
20107
- SelectContainer = _this$components4.SelectContainer,
20108
- ValueContainer = _this$components4.ValueContainer;
20109
- var _this$props20 = this.props,
20110
- className = _this$props20.className,
20111
- id = _this$props20.id,
20112
- isDisabled = _this$props20.isDisabled,
20113
- menuIsOpen = _this$props20.menuIsOpen;
20114
- var isFocused = this.state.isFocused;
20115
- var commonProps = this.commonProps = this.getCommonProps();
20116
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(SelectContainer, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
20117
- className: className,
20118
- innerProps: {
20119
- id: id,
20120
- onKeyDown: this.onKeyDown
20121
- },
20122
- isDisabled: isDisabled,
20123
- isFocused: isFocused
20124
- }), this.renderLiveRegion(), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(Control, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
20125
- innerRef: this.getControlRef,
20126
- innerProps: {
20127
- onMouseDown: this.onControlMouseDown,
20128
- onTouchEnd: this.onControlTouchEnd
20129
- },
20130
- isDisabled: isDisabled,
20131
- isFocused: isFocused,
20132
- menuIsOpen: menuIsOpen
20133
- }), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(ValueContainer, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
20134
- isDisabled: isDisabled
20135
- }), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_11_react___default.a.createElement(IndicatorsContainer, Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, commonProps, {
20136
- isDisabled: isDisabled
20137
- }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
20138
- }
20139
- }]);
20140
-
20141
- return Select;
20142
- }(__WEBPACK_IMPORTED_MODULE_11_react__["Component"]);
20143
-
20144
- Select.defaultProps = defaultProps;
20145
-
20146
-
20147
-
20148
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
20149
-
20150
- /***/ }),
20151
- /* 257 */
20152
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20153
-
20154
- "use strict";
20155
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
20156
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Alert__ = __webpack_require__(258);
20157
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Alert", function() { return __WEBPACK_IMPORTED_MODULE_0__Alert__["a"]; });
20158
- /* empty harmony namespace reexport */
20159
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AlertTitle__ = __webpack_require__(265);
20160
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "AlertTitle", function() { return __WEBPACK_IMPORTED_MODULE_1__AlertTitle__["a"]; });
20161
- /* empty harmony namespace reexport */
20162
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Autocomplete__ = __webpack_require__(351);
20163
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Autocomplete", function() { return __WEBPACK_IMPORTED_MODULE_2__Autocomplete__["b"]; });
20164
- /* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "createFilterOptions", function() { return __WEBPACK_IMPORTED_MODULE_2__Autocomplete__["a"]; });
20165
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__AvatarGroup__ = __webpack_require__(353);
20166
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "AvatarGroup", function() { return __WEBPACK_IMPORTED_MODULE_3__AvatarGroup__["a"]; });
20167
- /* empty harmony namespace reexport */
20168
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Pagination__ = __webpack_require__(354);
20169
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Pagination", function() { return __WEBPACK_IMPORTED_MODULE_4__Pagination__["a"]; });
20170
- /* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "usePagination", function() { return __WEBPACK_IMPORTED_MODULE_4__Pagination__["b"]; });
20171
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__PaginationItem__ = __webpack_require__(174);
20172
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "PaginationItem", function() { return __WEBPACK_IMPORTED_MODULE_5__PaginationItem__["a"]; });
20173
- /* empty harmony namespace reexport */
20174
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Rating__ = __webpack_require__(356);
20175
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Rating", function() { return __WEBPACK_IMPORTED_MODULE_6__Rating__["a"]; });
20176
- /* empty harmony namespace reexport */
20177
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Skeleton__ = __webpack_require__(357);
20178
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Skeleton", function() { return __WEBPACK_IMPORTED_MODULE_7__Skeleton__["a"]; });
20179
- /* empty harmony namespace reexport */
20180
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__SpeedDial__ = __webpack_require__(358);
20181
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "SpeedDial", function() { return __WEBPACK_IMPORTED_MODULE_8__SpeedDial__["a"]; });
20182
- /* empty harmony namespace reexport */
20183
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__SpeedDialAction__ = __webpack_require__(359);
20184
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "SpeedDialAction", function() { return __WEBPACK_IMPORTED_MODULE_9__SpeedDialAction__["a"]; });
20185
- /* empty harmony namespace reexport */
20186
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__SpeedDialIcon__ = __webpack_require__(360);
20187
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "SpeedDialIcon", function() { return __WEBPACK_IMPORTED_MODULE_10__SpeedDialIcon__["a"]; });
20188
- /* empty harmony namespace reexport */
20189
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__TabContext__ = __webpack_require__(109);
20190
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "TabContext", function() { return __WEBPACK_IMPORTED_MODULE_11__TabContext__["a"]; });
20191
- /* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "useTabContext", function() { return __WEBPACK_IMPORTED_MODULE_11__TabContext__["d"]; });
20192
- /* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "getPanelId", function() { return __WEBPACK_IMPORTED_MODULE_11__TabContext__["b"]; });
20193
- /* harmony namespace reexport (by provided) */ __webpack_require__.d(__webpack_exports__, "getTabId", function() { return __WEBPACK_IMPORTED_MODULE_11__TabContext__["c"]; });
20194
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__TabList__ = __webpack_require__(362);
20195
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "TabList", function() { return __WEBPACK_IMPORTED_MODULE_12__TabList__["a"]; });
20196
- /* empty harmony namespace reexport */
20197
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__TabPanel__ = __webpack_require__(363);
20198
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "TabPanel", function() { return __WEBPACK_IMPORTED_MODULE_13__TabPanel__["a"]; });
20199
- /* empty harmony namespace reexport */
20200
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__Timeline__ = __webpack_require__(364);
20201
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Timeline", function() { return __WEBPACK_IMPORTED_MODULE_14__Timeline__["a"]; });
20202
- /* empty harmony namespace reexport */
20203
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__TimelineConnector__ = __webpack_require__(365);
20204
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "TimelineConnector", function() { return __WEBPACK_IMPORTED_MODULE_15__TimelineConnector__["a"]; });
20205
- /* empty harmony namespace reexport */
20206
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__TimelineContent__ = __webpack_require__(366);
20207
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "TimelineContent", function() { return __WEBPACK_IMPORTED_MODULE_16__TimelineContent__["a"]; });
20208
- /* empty harmony namespace reexport */
20209
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__TimelineDot__ = __webpack_require__(367);
20210
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "TimelineDot", function() { return __WEBPACK_IMPORTED_MODULE_17__TimelineDot__["a"]; });
20211
- /* empty harmony namespace reexport */
20212
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__TimelineItem__ = __webpack_require__(368);
20213
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "TimelineItem", function() { return __WEBPACK_IMPORTED_MODULE_18__TimelineItem__["a"]; });
20214
- /* empty harmony namespace reexport */
20215
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__TimelineOppositeContent__ = __webpack_require__(369);
20216
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "TimelineOppositeContent", function() { return __WEBPACK_IMPORTED_MODULE_19__TimelineOppositeContent__["a"]; });
20217
- /* empty harmony namespace reexport */
20218
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__TimelineSeparator__ = __webpack_require__(370);
20219
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "TimelineSeparator", function() { return __WEBPACK_IMPORTED_MODULE_20__TimelineSeparator__["a"]; });
20220
- /* empty harmony namespace reexport */
20221
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__ToggleButton__ = __webpack_require__(371);
20222
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ToggleButton", function() { return __WEBPACK_IMPORTED_MODULE_21__ToggleButton__["a"]; });
20223
- /* empty harmony namespace reexport */
20224
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__ToggleButtonGroup__ = __webpack_require__(372);
20225
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ToggleButtonGroup", function() { return __WEBPACK_IMPORTED_MODULE_22__ToggleButtonGroup__["a"]; });
20226
- /* empty harmony namespace reexport */
20227
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__TreeItem__ = __webpack_require__(373);
20228
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "TreeItem", function() { return __WEBPACK_IMPORTED_MODULE_23__TreeItem__["a"]; });
20229
- /* empty harmony namespace reexport */
20230
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__TreeView__ = __webpack_require__(375);
20231
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "TreeView", function() { return __WEBPACK_IMPORTED_MODULE_24__TreeView__["a"]; });
20232
- /* empty harmony namespace reexport */
20233
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_25__useAutocomplete__ = __webpack_require__(352);
20234
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "useAutocomplete", function() { return __WEBPACK_IMPORTED_MODULE_25__useAutocomplete__["b"]; });
20235
- /** @license Material-UI v4.0.0-alpha.57
20236
- *
20237
- * This source code is licensed under the MIT license found in the
20238
- * LICENSE file in the root directory of this source tree.
20239
- */
20240
- /* eslint-disable import/export */
20241
-
20242
-
20243
-
20244
-
20245
-
20246
-
20247
-
20248
-
20249
-
20250
-
20251
-
20252
-
20253
-
20254
-
20255
-
20256
-
20257
-
20258
-
20259
-
20260
-
20261
-
20262
-
20263
-
20264
-
20265
-
20266
-
20267
-
20268
-
20269
-
20270
-
20271
-
20272
-
20273
-
20274
-
20275
-
20276
-
20277
-
20278
-
20279
-
20280
-
20281
-
20282
-
20283
-
20284
-
20285
-
20286
-
20287
-
20288
-
20289
-
20290
- // createFilterOptions is exported from Autocomplete
20291
-
20292
-
20293
-
20294
- /***/ }),
20295
- /* 258 */
20296
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20297
-
20298
- "use strict";
20299
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Alert__ = __webpack_require__(545);
20300
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Alert__["a"]; });
20301
-
20302
-
20303
- /***/ }),
20304
- /* 259 */
20305
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20306
-
20307
- "use strict";
20308
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
20309
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_ui_styles__ = __webpack_require__(24);
20310
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__defaultTheme__ = __webpack_require__(72);
20311
-
20312
-
20313
-
20314
-
20315
- var styled = function styled(Component) {
20316
- var componentCreator = Object(__WEBPACK_IMPORTED_MODULE_1__material_ui_styles__["e" /* styled */])(Component);
20317
- return function (style, options) {
20318
- return componentCreator(style, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
20319
- defaultTheme: __WEBPACK_IMPORTED_MODULE_2__defaultTheme__["a" /* default */]
20320
- }, options));
20321
- };
20322
- };
20323
-
20324
- /* harmony default export */ __webpack_exports__["a"] = (styled);
20325
-
20326
- /***/ }),
20327
- /* 260 */
20328
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20329
-
20330
- "use strict";
20331
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = requirePropFactory;
20332
- function requirePropFactory(componentNameInError) {
20333
- if (process.env.NODE_ENV === 'production') {
20334
- return function () {
20335
- return null;
20336
- };
20337
- }
20338
-
20339
- var requireProp = function requireProp(requiredProp) {
20340
- return function (props, propName, componentName, location, propFullName) {
20341
- var propFullNameSafe = propFullName || propName;
20342
-
20343
- if (typeof props[propName] !== 'undefined' && !props[requiredProp]) {
20344
- return new Error("The prop `".concat(propFullNameSafe, "` of ") + "`".concat(componentNameInError, "` must be used on `").concat(requiredProp, "`."));
20345
- }
20346
-
20347
- return null;
20348
- };
20349
- };
20350
-
20351
- return requireProp;
20352
- }
20353
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
20354
-
20355
- /***/ }),
20356
- /* 261 */
20357
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20358
-
20359
- "use strict";
20360
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
20361
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
20362
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_ui_core_utils__ = __webpack_require__(10);
20363
-
20364
-
20365
- /**
20366
- * @ignore - internal component.
20367
- */
20368
-
20369
- /* 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", {
20370
- 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"
20371
- }), 'Close'));
20372
-
20373
- /***/ }),
20374
- /* 262 */
20375
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20376
-
20377
- "use strict";
20378
- /* harmony default export */ __webpack_exports__["a"] = ({
20379
- disabled: false
20380
- });
20381
-
20382
- /***/ }),
20383
- /* 263 */
20384
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20385
-
20386
- "use strict";
20387
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return timeoutsShape; });
20388
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return classNamesShape; });
20389
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types__ = __webpack_require__(2);
20390
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_prop_types__);
20391
-
20392
- 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({
20393
- enter: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number,
20394
- exit: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number,
20395
- appear: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.number
20396
- }).isRequired]) : null;
20397
- 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({
20398
- enter: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
20399
- exit: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
20400
- active: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string
20401
- }), __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.shape({
20402
- enter: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
20403
- enterDone: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
20404
- enterActive: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
20405
- exit: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
20406
- exitDone: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string,
20407
- exitActive: __WEBPACK_IMPORTED_MODULE_0_prop_types___default.a.string
20408
- })]) : null;
20409
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
20410
-
20411
- /***/ }),
20412
- /* 264 */
20413
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20414
-
20415
- "use strict";
20416
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__ = __webpack_require__(43);
20417
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
20418
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_assertThisInitialized__ = __webpack_require__(88);
20419
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_inheritsLoose__ = __webpack_require__(34);
20420
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(2);
20421
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);
20422
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0);
20423
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
20424
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__TransitionGroupContext__ = __webpack_require__(141);
20425
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__utils_ChildMapping__ = __webpack_require__(567);
20426
-
20427
-
20428
-
20429
-
20430
-
20431
-
20432
-
20433
-
20434
-
20435
- var values = Object.values || function (obj) {
20436
- return Object.keys(obj).map(function (k) {
20437
- return obj[k];
20438
- });
20439
- };
20440
-
20441
- var defaultProps = {
20442
- component: 'div',
20443
- childFactory: function childFactory(child) {
20444
- return child;
20445
- }
20446
- };
20447
- /**
20448
- * The `<TransitionGroup>` component manages a set of transition components
20449
- * (`<Transition>` and `<CSSTransition>`) in a list. Like with the transition
20450
- * components, `<TransitionGroup>` is a state machine for managing the mounting
20451
- * and unmounting of components over time.
20452
- *
20453
- * Consider the example below. As items are removed or added to the TodoList the
20454
- * `in` prop is toggled automatically by the `<TransitionGroup>`.
20455
- *
20456
- * Note that `<TransitionGroup>` does not define any animation behavior!
20457
- * Exactly _how_ a list item animates is up to the individual transition
20458
- * component. This means you can mix and match animations across different list
20459
- * items.
20460
- */
20461
-
20462
- var TransitionGroup = /*#__PURE__*/function (_React$Component) {
20463
- Object(__WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_inheritsLoose__["a" /* default */])(TransitionGroup, _React$Component);
20464
-
20465
- function TransitionGroup(props, context) {
20466
- var _this;
20467
-
20468
- _this = _React$Component.call(this, props, context) || this;
20469
-
20470
- var handleExited = _this.handleExited.bind(Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_assertThisInitialized__["a" /* default */])(_this)); // Initial children should all be entering, dependent on appear
20471
-
20472
-
20473
- _this.state = {
20474
- contextValue: {
20475
- isMounting: true
20476
- },
20477
- handleExited: handleExited,
20478
- firstRender: true
20479
- };
20480
- return _this;
20481
- }
20482
-
20483
- var _proto = TransitionGroup.prototype;
20484
-
20485
- _proto.componentDidMount = function componentDidMount() {
20486
- this.mounted = true;
20487
- this.setState({
20488
- contextValue: {
20489
- isMounting: false
20490
- }
20491
- });
20492
- };
20493
-
20494
- _proto.componentWillUnmount = function componentWillUnmount() {
20495
- this.mounted = false;
20496
- };
20497
-
20498
- TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {
20499
- var prevChildMapping = _ref.children,
20500
- handleExited = _ref.handleExited,
20501
- firstRender = _ref.firstRender;
20502
- return {
20503
- 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),
20504
- firstRender: false
20505
- };
20506
- } // node is `undefined` when user provided `nodeRef` prop
20507
- ;
20508
-
20509
- _proto.handleExited = function handleExited(child, node) {
20510
- var currentChildMapping = Object(__WEBPACK_IMPORTED_MODULE_7__utils_ChildMapping__["a" /* getChildMapping */])(this.props.children);
20511
- if (child.key in currentChildMapping) return;
20512
-
20513
- if (child.props.onExited) {
20514
- child.props.onExited(node);
20515
- }
20516
-
20517
- if (this.mounted) {
20518
- this.setState(function (state) {
20519
- var children = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_extends__["a" /* default */])({}, state.children);
20520
-
20521
- delete children[child.key];
20522
- return {
20523
- children: children
20524
- };
20525
- });
20526
- }
20527
- };
20528
-
20529
- _proto.render = function render() {
20530
- var _this$props = this.props,
20531
- Component = _this$props.component,
20532
- childFactory = _this$props.childFactory,
20533
- props = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_objectWithoutPropertiesLoose__["a" /* default */])(_this$props, ["component", "childFactory"]);
20534
-
20535
- var contextValue = this.state.contextValue;
20536
- var children = values(this.state.children).map(childFactory);
20537
- delete props.appear;
20538
- delete props.enter;
20539
- delete props.exit;
20540
-
20541
- if (Component === null) {
20542
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__TransitionGroupContext__["a" /* default */].Provider, {
20543
- value: contextValue
20544
- }, children);
20545
- }
20546
-
20547
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6__TransitionGroupContext__["a" /* default */].Provider, {
20548
- value: contextValue
20549
- }, /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(Component, props, children));
20550
- };
20551
-
20552
- return TransitionGroup;
20553
- }(__WEBPACK_IMPORTED_MODULE_5_react___default.a.Component);
20554
-
20555
- TransitionGroup.propTypes = process.env.NODE_ENV !== "production" ? {
20556
- /**
20557
- * `<TransitionGroup>` renders a `<div>` by default. You can change this
20558
- * behavior by providing a `component` prop.
20559
- * If you use React v16+ and would like to avoid a wrapping `<div>` element
20560
- * you can pass in `component={null}`. This is useful if the wrapping div
20561
- * borks your css styles.
20562
- */
20563
- component: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.any,
20564
-
20565
- /**
20566
- * A set of `<Transition>` components, that are toggled `in` and out as they
20567
- * leave. the `<TransitionGroup>` will inject specific transition props, so
20568
- * remember to spread them through if you are wrapping the `<Transition>` as
20569
- * with our `<Fade>` example.
20570
- *
20571
- * While this component is meant for multiple `Transition` or `CSSTransition`
20572
- * children, sometimes you may want to have a single transition child with
20573
- * content that you want to be transitioned out and in when you change it
20574
- * (e.g. routes, images etc.) In that case you can change the `key` prop of
20575
- * the transition child as you change its content, this will cause
20576
- * `TransitionGroup` to transition the child out and back in.
20577
- */
20578
- children: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node,
20579
-
20580
- /**
20581
- * A convenience prop that enables or disables appear animations
20582
- * for all children. Note that specifying this will override any defaults set
20583
- * on individual children Transitions.
20584
- */
20585
- appear: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
20586
-
20587
- /**
20588
- * A convenience prop that enables or disables enter animations
20589
- * for all children. Note that specifying this will override any defaults set
20590
- * on individual children Transitions.
20591
- */
20592
- enter: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
20593
-
20594
- /**
20595
- * A convenience prop that enables or disables exit animations
20596
- * for all children. Note that specifying this will override any defaults set
20597
- * on individual children Transitions.
20598
- */
20599
- exit: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
20600
-
20601
- /**
20602
- * You may need to apply reactive updates to a child as it is exiting.
20603
- * This is generally done by using `cloneElement` however in the case of an exiting
20604
- * child the element has already been removed and not accessible to the consumer.
20605
- *
20606
- * If you do need to update a child as it leaves you can provide a `childFactory`
20607
- * to wrap every child, even the ones that are leaving.
20608
- *
20609
- * @type Function(child: ReactElement) -> ReactElement
20610
- */
20611
- childFactory: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func
20612
- } : {};
20613
- TransitionGroup.defaultProps = defaultProps;
20614
- /* harmony default export */ __webpack_exports__["a"] = (TransitionGroup);
20615
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
20616
-
20617
- /***/ }),
20618
- /* 265 */
20619
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20620
-
20621
- "use strict";
20622
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__AlertTitle__ = __webpack_require__(570);
20623
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__AlertTitle__["a"]; });
20624
-
20625
-
20626
- /***/ }),
20627
- /* 266 */
20628
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20629
-
20630
- "use strict";
20631
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Accordion__ = __webpack_require__(585);
20632
- /* unused harmony reexport default */
20633
-
20634
-
20635
- /***/ }),
20636
- /* 267 */
20637
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20638
-
20639
- "use strict";
20640
- /* harmony export (immutable) */ __webpack_exports__["a"] = _toArray;
20641
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayWithHoles__ = __webpack_require__(244);
20642
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__iterableToArray__ = __webpack_require__(216);
20643
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__unsupportedIterableToArray__ = __webpack_require__(133);
20644
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__nonIterableRest__ = __webpack_require__(245);
20645
-
20646
-
20647
-
20648
-
20649
- function _toArray(arr) {
20650
- return Object(__WEBPACK_IMPORTED_MODULE_0__arrayWithHoles__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_1__iterableToArray__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_2__unsupportedIterableToArray__["a" /* default */])(arr) || Object(__WEBPACK_IMPORTED_MODULE_3__nonIterableRest__["a" /* default */])();
20651
- }
20652
-
20653
- /***/ }),
20654
- /* 268 */
20655
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20656
-
20657
- "use strict";
20658
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
20659
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
20660
-
20661
- /**
20662
- * @ignore - internal component.
20663
- * @type {React.Context<{} | {expanded: boolean, disabled: boolean, toggle: () => void}>}
20664
- */
20665
-
20666
- var AccordionContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]({});
20667
-
20668
- if (process.env.NODE_ENV !== 'production') {
20669
- AccordionContext.displayName = 'AccordionContext';
20670
- }
20671
-
20672
- /* harmony default export */ __webpack_exports__["a"] = (AccordionContext);
20673
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
20674
-
20675
- /***/ }),
20676
- /* 269 */
20677
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20678
-
20679
- "use strict";
20680
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__AccordionActions__ = __webpack_require__(587);
20681
- /* unused harmony reexport default */
20682
-
20683
-
20684
- /***/ }),
20685
- /* 270 */
20686
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20687
-
20688
- "use strict";
20689
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__AccordionDetails__ = __webpack_require__(588);
20690
- /* unused harmony reexport default */
20691
-
20692
-
20693
- /***/ }),
20694
- /* 271 */
20695
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20696
-
20697
- "use strict";
20698
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__AccordionSummary__ = __webpack_require__(589);
20699
- /* unused harmony reexport default */
20700
-
20701
-
20702
- /***/ }),
20703
- /* 272 */
20704
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20705
-
20706
- "use strict";
20707
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__AppBar__ = __webpack_require__(590);
20708
- /* unused harmony reexport default */
20709
-
20710
-
20711
- /***/ }),
20712
- /* 273 */
20713
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20714
-
20715
- "use strict";
20716
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Badge__ = __webpack_require__(595);
20717
- /* unused harmony reexport default */
20718
-
20719
-
20720
- /***/ }),
20721
- /* 274 */
20722
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20723
-
20724
- "use strict";
20725
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__BottomNavigation__ = __webpack_require__(596);
20726
- /* unused harmony reexport default */
20727
-
20728
-
20729
- /***/ }),
20730
- /* 275 */
20731
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20732
-
20733
- "use strict";
20734
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__BottomNavigationAction__ = __webpack_require__(597);
20735
- /* unused harmony reexport default */
20736
-
20737
-
20738
- /***/ }),
20739
- /* 276 */
20740
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20741
-
20742
- "use strict";
20743
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Box__ = __webpack_require__(598);
20744
- /* unused harmony reexport default */
20745
- /* unused harmony reexport styleFunction */
20746
-
20747
-
20748
- /***/ }),
20749
- /* 277 */
20750
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20751
-
20752
- "use strict";
20753
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Breadcrumbs__ = __webpack_require__(599);
20754
- /* unused harmony reexport default */
20755
-
20756
-
20757
- /***/ }),
20758
- /* 278 */
20759
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20760
-
20761
- "use strict";
20762
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ButtonGroup__ = __webpack_require__(604);
20763
- /* unused harmony reexport default */
20764
-
20765
-
20766
- /***/ }),
20767
- /* 279 */
20768
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20769
-
20770
- "use strict";
20771
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Card__ = __webpack_require__(605);
20772
- /* unused harmony reexport default */
20773
-
20774
-
20775
- /***/ }),
20776
- /* 280 */
20777
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20778
-
20779
- "use strict";
20780
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CardActionArea__ = __webpack_require__(606);
20781
- /* unused harmony reexport default */
20782
-
20783
-
20784
- /***/ }),
20785
- /* 281 */
20786
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20787
-
20788
- "use strict";
20789
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CardActions__ = __webpack_require__(607);
20790
- /* unused harmony reexport default */
20791
-
20792
-
20793
- /***/ }),
20794
- /* 282 */
20795
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20796
-
20797
- "use strict";
20798
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CardContent__ = __webpack_require__(608);
20799
- /* unused harmony reexport default */
20800
-
20801
-
20802
- /***/ }),
20803
- /* 283 */
20804
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20805
-
20806
- "use strict";
20807
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CardHeader__ = __webpack_require__(609);
20808
- /* unused harmony reexport default */
20809
-
20810
-
20811
- /***/ }),
20812
- /* 284 */
20813
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20814
-
20815
- "use strict";
20816
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CardMedia__ = __webpack_require__(610);
20817
- /* unused harmony reexport default */
20818
-
20819
-
20820
- /***/ }),
20821
- /* 285 */
20822
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20823
-
20824
- "use strict";
20825
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Checkbox__ = __webpack_require__(611);
20826
- /* unused harmony reexport default */
20827
-
20828
-
20829
- /***/ }),
20830
- /* 286 */
20831
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20832
-
20833
- "use strict";
20834
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CircularProgress__ = __webpack_require__(617);
20835
- /* unused harmony reexport default */
20836
-
20837
-
20838
- /***/ }),
20839
- /* 287 */
20840
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20841
-
20842
- "use strict";
20843
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Container__ = __webpack_require__(619);
20844
- /* unused harmony reexport default */
20845
-
20846
-
20847
- /***/ }),
20848
- /* 288 */
20849
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20850
-
20851
- "use strict";
20852
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CssBaseline__ = __webpack_require__(620);
20853
- /* unused harmony reexport default */
20854
-
20855
-
20856
- /***/ }),
20857
- /* 289 */
20858
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20859
-
20860
- "use strict";
20861
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Dialog__ = __webpack_require__(621);
20862
- /* unused harmony reexport default */
20863
-
20864
-
20865
- /***/ }),
20866
- /* 290 */
20867
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20868
-
20869
- "use strict";
20870
- /* harmony export (immutable) */ __webpack_exports__["a"] = ariaHidden;
20871
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ModalManager; });
20872
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_classCallCheck__ = __webpack_require__(50);
20873
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_createClass__ = __webpack_require__(45);
20874
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_toConsumableArray__ = __webpack_require__(27);
20875
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils_getScrollbarSize__ = __webpack_require__(291);
20876
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__utils_ownerDocument__ = __webpack_require__(28);
20877
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__utils_ownerWindow__ = __webpack_require__(94);
20878
-
20879
-
20880
-
20881
-
20882
-
20883
- // Is a vertical scrollbar displayed?
20884
-
20885
- function isOverflowing(container) {
20886
- var doc = Object(__WEBPACK_IMPORTED_MODULE_4__utils_ownerDocument__["a" /* default */])(container);
20887
-
20888
- if (doc.body === container) {
20889
- return Object(__WEBPACK_IMPORTED_MODULE_5__utils_ownerWindow__["a" /* default */])(doc).innerWidth > doc.documentElement.clientWidth;
20890
- }
20891
-
20892
- return container.scrollHeight > container.clientHeight;
20893
- }
20894
-
20895
- function ariaHidden(node, show) {
20896
- if (show) {
20897
- node.setAttribute('aria-hidden', 'true');
20898
- } else {
20899
- node.removeAttribute('aria-hidden');
20900
- }
20901
- }
20902
-
20903
- function getPaddingRight(node) {
20904
- return parseInt(window.getComputedStyle(node)['padding-right'], 10) || 0;
20905
- }
20906
-
20907
- function ariaHiddenSiblings(container, mountNode, currentNode) {
20908
- var nodesToExclude = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
20909
- var show = arguments.length > 4 ? arguments[4] : undefined;
20910
- var blacklist = [mountNode, currentNode].concat(Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_toConsumableArray__["a" /* default */])(nodesToExclude));
20911
- var blacklistTagNames = ['TEMPLATE', 'SCRIPT', 'STYLE'];
20912
- [].forEach.call(container.children, function (node) {
20913
- if (node.nodeType === 1 && blacklist.indexOf(node) === -1 && blacklistTagNames.indexOf(node.tagName) === -1) {
20914
- ariaHidden(node, show);
20915
- }
20916
- });
20917
- }
20918
-
20919
- function findIndexOf(containerInfo, callback) {
20920
- var idx = -1;
20921
- containerInfo.some(function (item, index) {
20922
- if (callback(item)) {
20923
- idx = index;
20924
- return true;
20925
- }
20926
-
20927
- return false;
20928
- });
20929
- return idx;
20930
- }
20931
-
20932
- function handleContainer(containerInfo, props) {
20933
- var restoreStyle = [];
20934
- var restorePaddings = [];
20935
- var container = containerInfo.container;
20936
- var fixedNodes;
20937
-
20938
- if (!props.disableScrollLock) {
20939
- if (isOverflowing(container)) {
20940
- // Compute the size before applying overflow hidden to avoid any scroll jumps.
20941
- var scrollbarSize = Object(__WEBPACK_IMPORTED_MODULE_3__utils_getScrollbarSize__["a" /* default */])();
20942
- restoreStyle.push({
20943
- value: container.style.paddingRight,
20944
- key: 'padding-right',
20945
- el: container
20946
- }); // Use computed style, here to get the real padding to add our scrollbar width.
20947
-
20948
- container.style['padding-right'] = "".concat(getPaddingRight(container) + scrollbarSize, "px"); // .mui-fixed is a global helper.
20949
-
20950
- fixedNodes = Object(__WEBPACK_IMPORTED_MODULE_4__utils_ownerDocument__["a" /* default */])(container).querySelectorAll('.mui-fixed');
20951
- [].forEach.call(fixedNodes, function (node) {
20952
- restorePaddings.push(node.style.paddingRight);
20953
- node.style.paddingRight = "".concat(getPaddingRight(node) + scrollbarSize, "px");
20954
- });
20955
- } // Improve Gatsby support
20956
- // https://css-tricks.com/snippets/css/force-vertical-scrollbar/
20957
-
20958
-
20959
- var parent = container.parentElement;
20960
- 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
20961
- // screensize shrink.
20962
-
20963
- restoreStyle.push({
20964
- value: scrollContainer.style.overflow,
20965
- key: 'overflow',
20966
- el: scrollContainer
20967
- });
20968
- scrollContainer.style.overflow = 'hidden';
20969
- }
20970
-
20971
- var restore = function restore() {
20972
- if (fixedNodes) {
20973
- [].forEach.call(fixedNodes, function (node, i) {
20974
- if (restorePaddings[i]) {
20975
- node.style.paddingRight = restorePaddings[i];
20976
- } else {
20977
- node.style.removeProperty('padding-right');
20978
- }
20979
- });
20980
- }
20981
-
20982
- restoreStyle.forEach(function (_ref) {
20983
- var value = _ref.value,
20984
- el = _ref.el,
20985
- key = _ref.key;
20986
-
20987
- if (value) {
20988
- el.style.setProperty(key, value);
20989
- } else {
20990
- el.style.removeProperty(key);
20991
- }
20992
- });
20993
- };
20994
-
20995
- return restore;
20996
- }
20997
-
20998
- function getHiddenSiblings(container) {
20999
- var hiddenSiblings = [];
21000
- [].forEach.call(container.children, function (node) {
21001
- if (node.getAttribute && node.getAttribute('aria-hidden') === 'true') {
21002
- hiddenSiblings.push(node);
21003
- }
21004
- });
21005
- return hiddenSiblings;
21006
- }
21007
- /**
21008
- * @ignore - do not document.
21009
- *
21010
- * Proper state management for containers and the modals in those containers.
21011
- * Simplified, but inspired by react-overlay's ModalManager class.
21012
- * Used by the Modal to ensure proper styling of containers.
21013
- */
21014
-
21015
-
21016
- var ModalManager = /*#__PURE__*/function () {
21017
- function ModalManager() {
21018
- Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_classCallCheck__["a" /* default */])(this, ModalManager);
21019
-
21020
- // this.modals[modalIndex] = modal
21021
- this.modals = []; // this.containers[containerIndex] = {
21022
- // modals: [],
21023
- // container,
21024
- // restore: null,
21025
- // }
21026
-
21027
- this.containers = [];
21028
- }
21029
-
21030
- Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_createClass__["a" /* default */])(ModalManager, [{
21031
- key: "add",
21032
- value: function add(modal, container) {
21033
- var modalIndex = this.modals.indexOf(modal);
21034
-
21035
- if (modalIndex !== -1) {
21036
- return modalIndex;
21037
- }
21038
-
21039
- modalIndex = this.modals.length;
21040
- this.modals.push(modal); // If the modal we are adding is already in the DOM.
21041
-
21042
- if (modal.modalRef) {
21043
- ariaHidden(modal.modalRef, false);
21044
- }
21045
-
21046
- var hiddenSiblingNodes = getHiddenSiblings(container);
21047
- ariaHiddenSiblings(container, modal.mountNode, modal.modalRef, hiddenSiblingNodes, true);
21048
- var containerIndex = findIndexOf(this.containers, function (item) {
21049
- return item.container === container;
21050
- });
21051
-
21052
- if (containerIndex !== -1) {
21053
- this.containers[containerIndex].modals.push(modal);
21054
- return modalIndex;
21055
- }
21056
-
21057
- this.containers.push({
21058
- modals: [modal],
21059
- container: container,
21060
- restore: null,
21061
- hiddenSiblingNodes: hiddenSiblingNodes
21062
- });
21063
- return modalIndex;
21064
- }
21065
- }, {
21066
- key: "mount",
21067
- value: function mount(modal, props) {
21068
- var containerIndex = findIndexOf(this.containers, function (item) {
21069
- return item.modals.indexOf(modal) !== -1;
21070
- });
21071
- var containerInfo = this.containers[containerIndex];
21072
-
21073
- if (!containerInfo.restore) {
21074
- containerInfo.restore = handleContainer(containerInfo, props);
21075
- }
21076
- }
21077
- }, {
21078
- key: "remove",
21079
- value: function remove(modal) {
21080
- var modalIndex = this.modals.indexOf(modal);
21081
-
21082
- if (modalIndex === -1) {
21083
- return modalIndex;
21084
- }
21085
-
21086
- var containerIndex = findIndexOf(this.containers, function (item) {
21087
- return item.modals.indexOf(modal) !== -1;
21088
- });
21089
- var containerInfo = this.containers[containerIndex];
21090
- containerInfo.modals.splice(containerInfo.modals.indexOf(modal), 1);
21091
- this.modals.splice(modalIndex, 1); // If that was the last modal in a container, clean up the container.
21092
-
21093
- if (containerInfo.modals.length === 0) {
21094
- // The modal might be closed before it had the chance to be mounted in the DOM.
21095
- if (containerInfo.restore) {
21096
- containerInfo.restore();
21097
- }
21098
-
21099
- if (modal.modalRef) {
21100
- // In case the modal wasn't in the DOM yet.
21101
- ariaHidden(modal.modalRef, true);
21102
- }
21103
-
21104
- ariaHiddenSiblings(containerInfo.container, modal.mountNode, modal.modalRef, containerInfo.hiddenSiblingNodes, false);
21105
- this.containers.splice(containerIndex, 1);
21106
- } else {
21107
- // Otherwise make sure the next top modal is visible to a screen reader.
21108
- var nextTop = containerInfo.modals[containerInfo.modals.length - 1]; // as soon as a modal is adding its modalRef is undefined. it can't set
21109
- // aria-hidden because the dom element doesn't exist either
21110
- // when modal was unmounted before modalRef gets null
21111
-
21112
- if (nextTop.modalRef) {
21113
- ariaHidden(nextTop.modalRef, false);
21114
- }
21115
- }
21116
-
21117
- return modalIndex;
21118
- }
21119
- }, {
21120
- key: "isTopModal",
21121
- value: function isTopModal(modal) {
21122
- return this.modals.length > 0 && this.modals[this.modals.length - 1] === modal;
21123
- }
21124
- }]);
21125
-
21126
- return ModalManager;
21127
- }();
21128
-
21129
-
21130
-
21131
- /***/ }),
21132
- /* 291 */
21133
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21134
-
21135
- "use strict";
21136
- /* harmony export (immutable) */ __webpack_exports__["a"] = getScrollbarSize;
21137
- // A change of the browser zoom change the scrollbar size.
21138
- // Credit https://github.com/twbs/bootstrap/blob/3ffe3a5d82f6f561b82ff78d82b32a7d14aed558/js/src/modal.js#L512-L519
21139
- function getScrollbarSize() {
21140
- var scrollDiv = document.createElement('div');
21141
- scrollDiv.style.width = '99px';
21142
- scrollDiv.style.height = '99px';
21143
- scrollDiv.style.position = 'absolute';
21144
- scrollDiv.style.top = '-9999px';
21145
- scrollDiv.style.overflow = 'scroll';
21146
- document.body.appendChild(scrollDiv);
21147
- var scrollbarSize = scrollDiv.offsetWidth - scrollDiv.clientWidth;
21148
- document.body.removeChild(scrollDiv);
21149
- return scrollbarSize;
21150
- }
21151
-
21152
- /***/ }),
21153
- /* 292 */
21154
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21155
-
21156
- "use strict";
21157
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DialogActions__ = __webpack_require__(626);
21158
- /* unused harmony reexport default */
21159
-
21160
-
21161
- /***/ }),
21162
- /* 293 */
21163
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21164
-
21165
- "use strict";
21166
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DialogContent__ = __webpack_require__(627);
21167
- /* unused harmony reexport default */
21168
-
21169
-
21170
- /***/ }),
21171
- /* 294 */
21172
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21173
-
21174
- "use strict";
21175
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DialogContentText__ = __webpack_require__(628);
21176
- /* unused harmony reexport default */
21177
-
21178
-
21179
- /***/ }),
21180
- /* 295 */
21181
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21182
-
21183
- "use strict";
21184
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__DialogTitle__ = __webpack_require__(629);
21185
- /* unused harmony reexport default */
21186
-
21187
-
21188
- /***/ }),
21189
- /* 296 */
21190
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21191
-
21192
- "use strict";
21193
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Divider__ = __webpack_require__(630);
21194
- /* unused harmony reexport default */
21195
-
21196
-
21197
- /***/ }),
21198
- /* 297 */
21199
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21200
-
21201
- "use strict";
21202
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Drawer__ = __webpack_require__(148);
21203
- /* unused harmony reexport default */
21204
-
21205
-
21206
- /***/ }),
21207
- /* 298 */
21208
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21209
-
21210
- "use strict";
21211
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ExpansionPanel__ = __webpack_require__(632);
21212
- /* unused harmony reexport default */
21213
-
21214
-
21215
- /***/ }),
21216
- /* 299 */
21217
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21218
-
21219
- "use strict";
21220
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
21221
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
21222
-
21223
- /**
21224
- * @ignore - internal component.
21225
- * @type {React.Context<{} | {expanded: boolean, disabled: boolean, toggle: () => void}>}
21226
- */
21227
-
21228
- var ExpansionPanelContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]({});
21229
-
21230
- if (process.env.NODE_ENV !== 'production') {
21231
- ExpansionPanelContext.displayName = 'ExpansionPanelContext';
21232
- }
21233
-
21234
- /* harmony default export */ __webpack_exports__["a"] = (ExpansionPanelContext);
21235
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
21236
-
21237
- /***/ }),
21238
- /* 300 */
21239
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21240
-
21241
- "use strict";
21242
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ExpansionPanelActions__ = __webpack_require__(633);
21243
- /* unused harmony reexport default */
21244
-
21245
-
21246
- /***/ }),
21247
- /* 301 */
21248
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21249
-
21250
- "use strict";
21251
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ExpansionPanelDetails__ = __webpack_require__(634);
21252
- /* unused harmony reexport default */
21253
-
21254
-
21255
- /***/ }),
21256
- /* 302 */
21257
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21258
-
21259
- "use strict";
21260
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ExpansionPanelSummary__ = __webpack_require__(635);
21261
- /* unused harmony reexport default */
21262
-
21263
-
21264
- /***/ }),
21265
- /* 303 */
21266
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21267
-
21268
- "use strict";
21269
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__FormControlLabel__ = __webpack_require__(641);
21270
- /* unused harmony reexport default */
21271
-
21272
-
21273
- /***/ }),
21274
- /* 304 */
21275
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21276
-
21277
- "use strict";
21278
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Grid__ = __webpack_require__(645);
21279
- /* unused harmony reexport default */
21280
-
21281
-
21282
- /***/ }),
21283
- /* 305 */
21284
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21285
-
21286
- "use strict";
21287
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__GridList__ = __webpack_require__(646);
21288
- /* unused harmony reexport default */
21289
-
21290
-
21291
- /***/ }),
21292
- /* 306 */
21293
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21294
-
21295
- "use strict";
21296
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__GridListTile__ = __webpack_require__(647);
21297
- /* unused harmony reexport default */
21298
-
21299
-
21300
- /***/ }),
21301
- /* 307 */
21302
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21303
-
21304
- "use strict";
21305
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__GridListTileBar__ = __webpack_require__(648);
21306
- /* unused harmony reexport default */
21307
-
21308
-
21309
- /***/ }),
21310
- /* 308 */
21311
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21312
-
21313
- "use strict";
21314
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Hidden__ = __webpack_require__(650);
21315
- /* unused harmony reexport default */
21316
-
21317
-
21318
- /***/ }),
21319
- /* 309 */
21320
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21321
-
21322
- "use strict";
21323
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isWidthUp; });
21324
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isWidthDown; });
21325
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
21326
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
21327
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
21328
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
21329
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
21330
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
21331
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__material_ui_utils__ = __webpack_require__(7);
21332
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__material_ui_styles__ = __webpack_require__(24);
21333
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_hoist_non_react_statics__ = __webpack_require__(71);
21334
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_hoist_non_react_statics___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_hoist_non_react_statics__);
21335
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__styles_useTheme__ = __webpack_require__(17);
21336
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__styles_createBreakpoints__ = __webpack_require__(226);
21337
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__useMediaQuery__ = __webpack_require__(155);
21338
-
21339
-
21340
-
21341
-
21342
-
21343
-
21344
-
21345
-
21346
-
21347
- // By default, returns true if screen width is the same or greater than the given breakpoint.
21348
-
21349
- var isWidthUp = function isWidthUp(breakpoint, width) {
21350
- var inclusive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
21351
-
21352
- if (inclusive) {
21353
- return __WEBPACK_IMPORTED_MODULE_8__styles_createBreakpoints__["b" /* keys */].indexOf(breakpoint) <= __WEBPACK_IMPORTED_MODULE_8__styles_createBreakpoints__["b" /* keys */].indexOf(width);
21354
- }
21355
-
21356
- return __WEBPACK_IMPORTED_MODULE_8__styles_createBreakpoints__["b" /* keys */].indexOf(breakpoint) < __WEBPACK_IMPORTED_MODULE_8__styles_createBreakpoints__["b" /* keys */].indexOf(width);
21357
- }; // By default, returns true if screen width is the same or less than the given breakpoint.
21358
-
21359
- var isWidthDown = function isWidthDown(breakpoint, width) {
21360
- var inclusive = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
21361
-
21362
- if (inclusive) {
21363
- return __WEBPACK_IMPORTED_MODULE_8__styles_createBreakpoints__["b" /* keys */].indexOf(width) <= __WEBPACK_IMPORTED_MODULE_8__styles_createBreakpoints__["b" /* keys */].indexOf(breakpoint);
21364
- }
21365
-
21366
- return __WEBPACK_IMPORTED_MODULE_8__styles_createBreakpoints__["b" /* keys */].indexOf(width) < __WEBPACK_IMPORTED_MODULE_8__styles_createBreakpoints__["b" /* keys */].indexOf(breakpoint);
21367
- };
21368
- var useEnhancedEffect = typeof window === 'undefined' ? __WEBPACK_IMPORTED_MODULE_2_react__["useEffect"] : __WEBPACK_IMPORTED_MODULE_2_react__["useLayoutEffect"];
21369
-
21370
- var withWidth = function withWidth() {
21371
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
21372
- return function (Component) {
21373
- var _options$withTheme = options.withTheme,
21374
- withThemeOption = _options$withTheme === void 0 ? false : _options$withTheme,
21375
- _options$noSSR = options.noSSR,
21376
- noSSR = _options$noSSR === void 0 ? false : _options$noSSR,
21377
- initialWidthOption = options.initialWidth;
21378
-
21379
- function WithWidth(props) {
21380
- var contextTheme = Object(__WEBPACK_IMPORTED_MODULE_7__styles_useTheme__["a" /* default */])();
21381
- var theme = props.theme || contextTheme;
21382
-
21383
- var _getThemeProps = Object(__WEBPACK_IMPORTED_MODULE_5__material_ui_styles__["b" /* getThemeProps */])({
21384
- theme: theme,
21385
- name: 'MuiWithWidth',
21386
- props: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, props)
21387
- }),
21388
- initialWidth = _getThemeProps.initialWidth,
21389
- width = _getThemeProps.width,
21390
- other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(_getThemeProps, ["initialWidth", "width"]);
21391
-
21392
- var _React$useState = __WEBPACK_IMPORTED_MODULE_2_react__["useState"](false),
21393
- mountedState = _React$useState[0],
21394
- setMountedState = _React$useState[1];
21395
-
21396
- useEnhancedEffect(function () {
21397
- setMountedState(true);
21398
- }, []);
21399
- /**
21400
- * innerWidth |xs sm md lg xl
21401
- * |-------|-------|-------|-------|------>
21402
- * width | xs | sm | md | lg | xl
21403
- */
21404
-
21405
- var keys = theme.breakpoints.keys.slice().reverse();
21406
- var widthComputed = keys.reduce(function (output, key) {
21407
- // eslint-disable-next-line react-hooks/rules-of-hooks
21408
- var matches = Object(__WEBPACK_IMPORTED_MODULE_9__useMediaQuery__["a" /* default */])(theme.breakpoints.up(key));
21409
- return !output && matches ? key : output;
21410
- }, null);
21411
-
21412
- var more = Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
21413
- width: width || (mountedState || noSSR ? widthComputed : undefined) || initialWidth || initialWidthOption
21414
- }, withThemeOption ? {
21415
- theme: theme
21416
- } : {}, other); // When rendering the component on the server,
21417
- // we have no idea about the client browser screen width.
21418
- // In order to prevent blinks and help the reconciliation of the React tree
21419
- // we are not rendering the child component.
21420
- //
21421
- // An alternative is to use the `initialWidth` property.
21422
-
21423
-
21424
- if (more.width === undefined) {
21425
- return null;
21426
- }
21427
-
21428
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](Component, more);
21429
- }
21430
-
21431
- process.env.NODE_ENV !== "production" ? WithWidth.propTypes = {
21432
- /**
21433
- * As `window.innerWidth` is unavailable on the server,
21434
- * we default to rendering an empty component during the first mount.
21435
- * You might want to use an heuristic to approximate
21436
- * the screen width of the client browser screen width.
21437
- *
21438
- * For instance, you could be using the user-agent or the client-hints.
21439
- * https://caniuse.com/#search=client%20hint
21440
- */
21441
- initialWidth: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(['xs', 'sm', 'md', 'lg', 'xl']),
21442
-
21443
- /**
21444
- * @ignore
21445
- */
21446
- theme: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
21447
-
21448
- /**
21449
- * Bypass the width calculation logic.
21450
- */
21451
- width: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(['xs', 'sm', 'md', 'lg', 'xl'])
21452
- } : void 0;
21453
-
21454
- if (process.env.NODE_ENV !== 'production') {
21455
- WithWidth.displayName = "WithWidth(".concat(Object(__WEBPACK_IMPORTED_MODULE_4__material_ui_utils__["h" /* getDisplayName */])(Component), ")");
21456
- }
21457
-
21458
- __WEBPACK_IMPORTED_MODULE_6_hoist_non_react_statics___default()(WithWidth, Component);
21459
- return WithWidth;
21460
- };
21461
- };
21462
-
21463
- /* harmony default export */ __webpack_exports__["a"] = (withWidth);
21464
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
21465
-
21466
- /***/ }),
21467
- /* 310 */
21468
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21469
-
21470
- "use strict";
21471
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__InputAdornment__ = __webpack_require__(655);
21472
- /* unused harmony reexport default */
21473
-
21474
-
21475
- /***/ }),
21476
- /* 311 */
21477
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21478
-
21479
- "use strict";
21480
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Link__ = __webpack_require__(658);
21481
- /* unused harmony reexport default */
21482
-
21483
-
21484
- /***/ }),
21485
- /* 312 */
21486
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21487
-
21488
- "use strict";
21489
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListItemAvatar__ = __webpack_require__(661);
21490
- /* unused harmony reexport default */
21491
-
21492
-
21493
- /***/ }),
21494
- /* 313 */
21495
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21496
-
21497
- "use strict";
21498
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListItemIcon__ = __webpack_require__(662);
21499
- /* unused harmony reexport default */
21500
-
21501
-
21502
- /***/ }),
21503
- /* 314 */
21504
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21505
-
21506
- "use strict";
21507
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListItemSecondaryAction__ = __webpack_require__(663);
21508
- /* unused harmony reexport default */
21509
-
21510
-
21511
- /***/ }),
21512
- /* 315 */
21513
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21514
-
21515
- "use strict";
21516
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ListItemText__ = __webpack_require__(664);
21517
- /* unused harmony reexport default */
21518
-
21519
-
21520
- /***/ }),
21521
- /* 316 */
21522
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21523
-
21524
- "use strict";
21525
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Menu__ = __webpack_require__(317);
21526
- /* unused harmony reexport default */
21527
-
21528
-
21529
- /***/ }),
21530
- /* 317 */
21531
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21532
-
21533
- "use strict";
21534
- /* WEBPACK VAR INJECTION */(function(process) {/* unused harmony export styles */
21535
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
21536
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
21537
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
21538
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
21539
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_is__ = __webpack_require__(16);
21540
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_is___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react_is__);
21541
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(2);
21542
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);
21543
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_clsx__ = __webpack_require__(5);
21544
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__material_ui_utils__ = __webpack_require__(7);
21545
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__styles_withStyles__ = __webpack_require__(6);
21546
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Popover__ = __webpack_require__(161);
21547
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__MenuList__ = __webpack_require__(162);
21548
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_dom__ = __webpack_require__(11);
21549
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react_dom__);
21550
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__utils_setRef__ = __webpack_require__(52);
21551
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__styles_useTheme__ = __webpack_require__(17);
21552
-
21553
-
21554
-
21555
-
21556
-
21557
-
21558
-
21559
-
21560
-
21561
-
21562
-
21563
-
21564
-
21565
- var RTL_ORIGIN = {
21566
- vertical: 'top',
21567
- horizontal: 'right'
21568
- };
21569
- var LTR_ORIGIN = {
21570
- vertical: 'top',
21571
- horizontal: 'left'
21572
- };
21573
- var styles = {
21574
- /* Styles applied to the `Paper` component. */
21575
- paper: {
21576
- // specZ: The maximum height of a simple menu should be one or more rows less than the view
21577
- // height. This ensures a tapable area outside of the simple menu with which to dismiss
21578
- // the menu.
21579
- maxHeight: 'calc(100% - 96px)',
21580
- // Add iOS momentum scrolling.
21581
- WebkitOverflowScrolling: 'touch'
21582
- },
21583
-
21584
- /* Styles applied to the `List` component via `MenuList`. */
21585
- list: {
21586
- // We disable the focus ring for mouse, touch and keyboard users.
21587
- outline: 0
21588
- }
21589
- };
21590
- var Menu = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["forwardRef"](function Menu(props, ref) {
21591
- var _props$autoFocus = props.autoFocus,
21592
- autoFocus = _props$autoFocus === void 0 ? true : _props$autoFocus,
21593
- children = props.children,
21594
- classes = props.classes,
21595
- _props$disableAutoFoc = props.disableAutoFocusItem,
21596
- disableAutoFocusItem = _props$disableAutoFoc === void 0 ? false : _props$disableAutoFoc,
21597
- _props$MenuListProps = props.MenuListProps,
21598
- MenuListProps = _props$MenuListProps === void 0 ? {} : _props$MenuListProps,
21599
- onClose = props.onClose,
21600
- onEntering = props.onEntering,
21601
- open = props.open,
21602
- _props$PaperProps = props.PaperProps,
21603
- PaperProps = _props$PaperProps === void 0 ? {} : _props$PaperProps,
21604
- PopoverClasses = props.PopoverClasses,
21605
- _props$transitionDura = props.transitionDuration,
21606
- transitionDuration = _props$transitionDura === void 0 ? 'auto' : _props$transitionDura,
21607
- _props$variant = props.variant,
21608
- variant = _props$variant === void 0 ? 'selectedMenu' : _props$variant,
21609
- 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"]);
21610
-
21611
- var theme = Object(__WEBPACK_IMPORTED_MODULE_12__styles_useTheme__["a" /* default */])();
21612
- var autoFocusItem = autoFocus && !disableAutoFocusItem && open;
21613
- var menuListActionsRef = __WEBPACK_IMPORTED_MODULE_2_react__["useRef"](null);
21614
- var contentAnchorRef = __WEBPACK_IMPORTED_MODULE_2_react__["useRef"](null);
21615
-
21616
- var getContentAnchorEl = function getContentAnchorEl() {
21617
- return contentAnchorRef.current;
21618
- };
21619
-
21620
- var handleEntering = function handleEntering(element, isAppearing) {
21621
- if (menuListActionsRef.current) {
21622
- menuListActionsRef.current.adjustStyleForScrollbar(element, theme);
21623
- }
21624
-
21625
- if (onEntering) {
21626
- onEntering(element, isAppearing);
21627
- }
21628
- };
21629
-
21630
- var handleListKeyDown = function handleListKeyDown(event) {
21631
- if (event.key === 'Tab') {
21632
- event.preventDefault();
21633
-
21634
- if (onClose) {
21635
- onClose(event, 'tabKeyDown');
21636
- }
21637
- }
21638
- };
21639
- /**
21640
- * the index of the item should receive focus
21641
- * in a `variant="selectedMenu"` it's the first `selected` item
21642
- * otherwise it's the very first item.
21643
- */
21644
-
21645
-
21646
- var activeItemIndex = -1; // since we inject focus related props into children we have to do a lookahead
21647
- // to check if there is a `selected` item. We're looking for the last `selected`
21648
- // item and use the first valid item as a fallback
21649
-
21650
- __WEBPACK_IMPORTED_MODULE_2_react__["Children"].map(children, function (child, index) {
21651
- if (! /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["isValidElement"](child)) {
21652
- return;
21653
- }
21654
-
21655
- if (process.env.NODE_ENV !== 'production') {
21656
- if (Object(__WEBPACK_IMPORTED_MODULE_3_react_is__["isFragment"])(child)) {
21657
- console.error(["Material-UI: The Menu component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
21658
- }
21659
- }
21660
-
21661
- if (!child.props.disabled) {
21662
- if (variant !== "menu" && child.props.selected) {
21663
- activeItemIndex = index;
21664
- } else if (activeItemIndex === -1) {
21665
- activeItemIndex = index;
21666
- }
21667
- }
21668
- });
21669
- var items = __WEBPACK_IMPORTED_MODULE_2_react__["Children"].map(children, function (child, index) {
21670
- if (index === activeItemIndex) {
21671
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["cloneElement"](child, {
21672
- ref: function ref(instance) {
21673
- // #StrictMode ready
21674
- contentAnchorRef.current = __WEBPACK_IMPORTED_MODULE_10_react_dom__["findDOMNode"](instance);
21675
- Object(__WEBPACK_IMPORTED_MODULE_11__utils_setRef__["a" /* default */])(child.ref, instance);
21676
- }
21677
- });
21678
- }
21679
-
21680
- return child;
21681
- });
21682
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](__WEBPACK_IMPORTED_MODULE_8__Popover__["a" /* default */], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
21683
- getContentAnchorEl: getContentAnchorEl,
21684
- classes: PopoverClasses,
21685
- onClose: onClose,
21686
- onEntering: handleEntering,
21687
- anchorOrigin: theme.direction === 'rtl' ? RTL_ORIGIN : LTR_ORIGIN,
21688
- transformOrigin: theme.direction === 'rtl' ? RTL_ORIGIN : LTR_ORIGIN,
21689
- PaperProps: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, PaperProps, {
21690
- classes: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({}, PaperProps.classes, {
21691
- root: classes.paper
21692
- })
21693
- }),
21694
- open: open,
21695
- ref: ref,
21696
- transitionDuration: transitionDuration
21697
- }, other), /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](__WEBPACK_IMPORTED_MODULE_9__MenuList__["a" /* default */], Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
21698
- onKeyDown: handleListKeyDown,
21699
- actions: menuListActionsRef,
21700
- autoFocus: autoFocus && (activeItemIndex === -1 || disableAutoFocusItem),
21701
- autoFocusItem: autoFocusItem,
21702
- variant: variant
21703
- }, MenuListProps, {
21704
- className: Object(__WEBPACK_IMPORTED_MODULE_5_clsx__["a" /* default */])(classes.list, MenuListProps.className)
21705
- }), items));
21706
- });
21707
- process.env.NODE_ENV !== "production" ? Menu.propTypes = {
21708
- // ----------------------------- Warning --------------------------------
21709
- // | These PropTypes are generated from the TypeScript type definitions |
21710
- // | To update them edit the d.ts file and run "yarn proptypes" |
21711
- // ----------------------------------------------------------------------
21712
-
21713
- /**
21714
- * A HTML element, or a function that returns it.
21715
- * It's used to set the position of the menu.
21716
- */
21717
- anchorEl: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a
21718
- /* @typescript-to-proptypes-ignore */
21719
- .oneOfType([__WEBPACK_IMPORTED_MODULE_6__material_ui_utils__["a" /* HTMLElementType */], __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func]),
21720
-
21721
- /**
21722
- * If `true` (Default) will focus the `[role="menu"]` if no focusable child is found. Disabled
21723
- * children are not focusable. If you set this prop to `false` focus will be placed
21724
- * on the parent modal container. This has severe accessibility implications
21725
- * and should only be considered if you manage focus otherwise.
21726
- */
21727
- autoFocus: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
21728
-
21729
- /**
21730
- * Menu contents, normally `MenuItem`s.
21731
- */
21732
- children: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.node,
21733
-
21734
- /**
21735
- * Override or extend the styles applied to the component.
21736
- * See [CSS API](#css) below for more details.
21737
- */
21738
- classes: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
21739
-
21740
- /**
21741
- * When opening the menu will not focus the active item but the `[role="menu"]`
21742
- * unless `autoFocus` is also set to `false`. Not using the default means not
21743
- * following WAI-ARIA authoring practices. Please be considerate about possible
21744
- * accessibility implications.
21745
- */
21746
- disableAutoFocusItem: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
21747
-
21748
- /**
21749
- * Props applied to the [`MenuList`](/api/menu-list/) element.
21750
- */
21751
- MenuListProps: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
21752
-
21753
- /**
21754
- * Callback fired when the component requests to be closed.
21755
- *
21756
- * @param {object} event The event source of the callback.
21757
- * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`, `"tabKeyDown"`.
21758
- */
21759
- onClose: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
21760
-
21761
- /**
21762
- * Callback fired before the Menu enters.
21763
- */
21764
- onEnter: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
21765
-
21766
- /**
21767
- * Callback fired when the Menu has entered.
21768
- */
21769
- onEntered: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
21770
-
21771
- /**
21772
- * Callback fired when the Menu is entering.
21773
- */
21774
- onEntering: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
21775
-
21776
- /**
21777
- * Callback fired before the Menu exits.
21778
- */
21779
- onExit: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
21780
-
21781
- /**
21782
- * Callback fired when the Menu has exited.
21783
- */
21784
- onExited: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
21785
-
21786
- /**
21787
- * Callback fired when the Menu is exiting.
21788
- */
21789
- onExiting: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
21790
-
21791
- /**
21792
- * If `true`, the menu is visible.
21793
- */
21794
- open: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool.isRequired,
21795
-
21796
- /**
21797
- * @ignore
21798
- */
21799
- PaperProps: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
21800
-
21801
- /**
21802
- * `classes` prop applied to the [`Popover`](/api/popover/) element.
21803
- */
21804
- PopoverClasses: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
21805
-
21806
- /**
21807
- * The length of the transition in `ms`, or 'auto'
21808
- */
21809
- 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({
21810
- appear: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number,
21811
- enter: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number,
21812
- exit: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.number
21813
- })]),
21814
-
21815
- /**
21816
- * The variant to use. Use `menu` to prevent selected items from impacting the initial focus
21817
- * and the vertical alignment relative to the anchor element.
21818
- */
21819
- variant: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOf(['menu', 'selectedMenu'])
21820
- } : void 0;
21821
- /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_7__styles_withStyles__["a" /* default */])(styles, {
21822
- name: 'MuiMenu'
21823
- })(Menu));
21824
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
21825
-
21826
- /***/ }),
21827
- /* 318 */
21828
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21829
-
21830
- "use strict";
21831
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MobileStepper__ = __webpack_require__(669);
21832
- /* unused harmony reexport default */
21833
-
21834
-
21835
- /***/ }),
21836
- /* 319 */
21837
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21838
-
21839
- "use strict";
21840
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__NativeSelect__ = __webpack_require__(320);
21841
- /* unused harmony reexport default */
21842
-
21843
-
21844
- /***/ }),
21845
- /* 320 */
21846
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
21847
-
21848
- "use strict";
21849
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return styles; });
21850
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
21851
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
21852
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
21853
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
21854
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
21855
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
21856
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__NativeSelectInput__ = __webpack_require__(321);
21857
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__styles_withStyles__ = __webpack_require__(6);
21858
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__FormControl_formControlState__ = __webpack_require__(67);
21859
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__FormControl_useFormControl__ = __webpack_require__(53);
21860
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__internal_svg_icons_ArrowDropDown__ = __webpack_require__(322);
21861
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__Input__ = __webpack_require__(81);
21862
-
21863
-
21864
-
21865
-
21866
-
21867
-
21868
-
21869
-
21870
-
21871
-
21872
- var styles = function styles(theme) {
21873
- return {
21874
- /* Styles applied to the select component `root` class. */
21875
- root: {},
21876
-
21877
- /* Styles applied to the select component `select` class. */
21878
- select: {
21879
- '-moz-appearance': 'none',
21880
- // Reset
21881
- '-webkit-appearance': 'none',
21882
- // Reset
21883
- // When interacting quickly, the text can end up selected.
21884
- // Native select can't be selected either.
21885
- userSelect: 'none',
21886
- borderRadius: 0,
21887
- // Reset
21888
- minWidth: 16,
21889
- // So it doesn't collapse.
21890
- cursor: 'pointer',
21891
- '&:focus': {
21892
- // Show that it's not an text input
21893
- backgroundColor: theme.palette.type === 'light' ? 'rgba(0, 0, 0, 0.05)' : 'rgba(255, 255, 255, 0.05)',
21894
- borderRadius: 0 // Reset Chrome style
21895
-
21896
- },
21897
- // Remove IE 11 arrow
21898
- '&::-ms-expand': {
21899
- display: 'none'
21900
- },
21901
- '&$disabled': {
21902
- cursor: 'default'
21903
- },
21904
- '&[multiple]': {
21905
- height: 'auto'
21906
- },
21907
- '&:not([multiple]) option, &:not([multiple]) optgroup': {
21908
- backgroundColor: theme.palette.background.paper
21909
- },
21910
- '&&': {
21911
- paddingRight: 24
21912
- }
21913
- },
21914
-
21915
- /* Styles applied to the select component if `variant="filled"`. */
21916
- filled: {
21917
- '&&': {
21918
- paddingRight: 32
21919
- }
21920
- },
21921
-
21922
- /* Styles applied to the select component if `variant="outlined"`. */
21923
- outlined: {
21924
- borderRadius: theme.shape.borderRadius,
21925
- '&&': {
21926
- paddingRight: 32
21927
- }
21928
- },
21929
-
21930
- /* Styles applied to the select component `selectMenu` class. */
21931
- selectMenu: {
21932
- height: 'auto',
21933
- // Resets for multpile select with chips
21934
- minHeight: '1.1876em',
21935
- // Required for select\text-field height consistency
21936
- textOverflow: 'ellipsis',
21937
- whiteSpace: 'nowrap',
21938
- overflow: 'hidden'
21939
- },
21940
-
21941
- /* Pseudo-class applied to the select component `disabled` class. */
21942
- disabled: {},
21943
-
21944
- /* Styles applied to the icon component. */
21945
- icon: {
21946
- // We use a position absolute over a flexbox in order to forward the pointer events
21947
- // to the input and to support wrapping tags..
21948
- position: 'absolute',
21949
- right: 0,
21950
- top: 'calc(50% - 12px)',
21951
- // Center vertically
21952
- pointerEvents: 'none',
21953
- // Don't block pointer events on the select under the icon.
21954
- color: theme.palette.action.active,
21955
- '&$disabled': {
21956
- color: theme.palette.action.disabled
21957
- }
21958
- },
21959
-
21960
- /* Styles applied to the icon component if the popup is open. */
21961
- iconOpen: {
21962
- transform: 'rotate(180deg)'
21963
- },
21964
-
21965
- /* Styles applied to the icon component if `variant="filled"`. */
21966
- iconFilled: {
21967
- right: 7
21968
- },
21969
-
21970
- /* Styles applied to the icon component if `variant="outlined"`. */
21971
- iconOutlined: {
21972
- right: 7
21973
- },
21974
-
21975
- /* Styles applied to the underlying native input component. */
21976
- nativeInput: {
21977
- bottom: 0,
21978
- left: 0,
21979
- position: 'absolute',
21980
- opacity: 0,
21981
- pointerEvents: 'none',
21982
- width: '100%'
21983
- }
21984
- };
21985
- };
21986
- var defaultInput = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](__WEBPACK_IMPORTED_MODULE_9__Input__["a" /* default */], null);
21987
- /**
21988
- * An alternative to `<Select native />` with a much smaller bundle size footprint.
21989
- */
21990
-
21991
- var NativeSelect = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["forwardRef"](function NativeSelect(props, ref) {
21992
- var children = props.children,
21993
- classes = props.classes,
21994
- _props$IconComponent = props.IconComponent,
21995
- IconComponent = _props$IconComponent === void 0 ? __WEBPACK_IMPORTED_MODULE_8__internal_svg_icons_ArrowDropDown__["a" /* default */] : _props$IconComponent,
21996
- _props$input = props.input,
21997
- input = _props$input === void 0 ? defaultInput : _props$input,
21998
- inputProps = props.inputProps,
21999
- variant = props.variant,
22000
- other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["children", "classes", "IconComponent", "input", "inputProps", "variant"]);
22001
-
22002
- var muiFormControl = Object(__WEBPACK_IMPORTED_MODULE_7__FormControl_useFormControl__["a" /* default */])();
22003
- var fcs = Object(__WEBPACK_IMPORTED_MODULE_6__FormControl_formControlState__["a" /* default */])({
22004
- props: props,
22005
- muiFormControl: muiFormControl,
22006
- states: ['variant']
22007
- });
22008
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["cloneElement"](input, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
22009
- // Most of the logic is implemented in `NativeSelectInput`.
22010
- // The `Select` component is a simple API wrapper to expose something better to play with.
22011
- inputComponent: __WEBPACK_IMPORTED_MODULE_4__NativeSelectInput__["a" /* default */],
22012
- inputProps: Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
22013
- children: children,
22014
- classes: classes,
22015
- IconComponent: IconComponent,
22016
- variant: fcs.variant,
22017
- type: undefined
22018
- }, inputProps, input ? input.props.inputProps : {}),
22019
- ref: ref
22020
- }, other));
22021
- });
22022
- process.env.NODE_ENV !== "production" ? NativeSelect.propTypes = {
22023
- // ----------------------------- Warning --------------------------------
22024
- // | These PropTypes are generated from the TypeScript type definitions |
22025
- // | To update them edit the d.ts file and run "yarn proptypes" |
22026
- // ----------------------------------------------------------------------
22027
-
22028
- /**
22029
- * The option elements to populate the select with.
22030
- * Can be some `<option>` elements.
22031
- */
22032
- children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node,
22033
-
22034
- /**
22035
- * Override or extend the styles applied to the component.
22036
- * See [CSS API](#css) below for more details.
22037
- */
22038
- classes: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
22039
-
22040
- /**
22041
- * The icon that displays the arrow.
22042
- */
22043
- IconComponent: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.elementType,
22044
-
22045
- /**
22046
- * An `Input` element; does not have to be a material-ui specific `Input`.
22047
- */
22048
- input: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.element,
22049
-
22050
- /**
22051
- * Attributes applied to the `select` element.
22052
- */
22053
- inputProps: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object,
22054
-
22055
- /**
22056
- * Callback function fired when a menu item is selected.
22057
- *
22058
- * @param {object} event The event source of the callback.
22059
- * You can pull out the new value by accessing `event.target.value` (string).
22060
- */
22061
- onChange: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
22062
-
22063
- /**
22064
- * The input value. The DOM API casts this to a string.
22065
- */
22066
- value: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.any,
22067
-
22068
- /**
22069
- * The variant to use.
22070
- */
22071
- variant: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(['filled', 'outlined', 'standard'])
22072
- } : void 0;
22073
- NativeSelect.muiName = 'Select';
22074
- /* unused harmony default export */ var _unused_webpack_default_export = (Object(__WEBPACK_IMPORTED_MODULE_5__styles_withStyles__["a" /* default */])(styles, {
22075
- name: 'MuiNativeSelect'
22076
- })(NativeSelect));
22077
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
22078
-
22079
- /***/ }),
22080
- /* 321 */
22081
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22082
-
22083
- "use strict";
22084
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
22085
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
22086
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react__ = __webpack_require__(0);
22087
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react__);
22088
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(2);
22089
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
22090
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_clsx__ = __webpack_require__(5);
22091
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__material_ui_utils__ = __webpack_require__(7);
22092
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__utils_capitalize__ = __webpack_require__(9);
22093
-
22094
-
22095
-
22096
-
22097
-
22098
-
22099
-
22100
- /**
22101
- * @ignore - internal component.
22102
- */
22103
-
22104
- var NativeSelectInput = /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["forwardRef"](function NativeSelectInput(props, ref) {
22105
- var classes = props.classes,
22106
- className = props.className,
22107
- disabled = props.disabled,
22108
- IconComponent = props.IconComponent,
22109
- inputRef = props.inputRef,
22110
- _props$variant = props.variant,
22111
- variant = _props$variant === void 0 ? 'standard' : _props$variant,
22112
- other = Object(__WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_objectWithoutProperties__["a" /* default */])(props, ["classes", "className", "disabled", "IconComponent", "inputRef", "variant"]);
22113
-
22114
- 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 */])({
22115
- className: Object(__WEBPACK_IMPORTED_MODULE_4_clsx__["a" /* default */])(classes.root, // TODO v5: merge root and select
22116
- classes.select, classes[variant], className, disabled && classes.disabled),
22117
- disabled: disabled,
22118
- ref: inputRef || ref
22119
- }, other)), props.multiple ? null : /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_2_react__["createElement"](IconComponent, {
22120
- 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)
22121
- }));
22122
- });
22123
- process.env.NODE_ENV !== "production" ? NativeSelectInput.propTypes = {
22124
- /**
22125
- * The option elements to populate the select with.
22126
- * Can be some `<option>` elements.
22127
- */
22128
- children: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.node,
22129
-
22130
- /**
22131
- * Override or extend the styles applied to the component.
22132
- * See [CSS API](#css) below for more details.
22133
- */
22134
- classes: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.object.isRequired,
22135
-
22136
- /**
22137
- * The CSS class name of the select element.
22138
- */
22139
- className: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string,
22140
-
22141
- /**
22142
- * If `true`, the select will be disabled.
22143
- */
22144
- disabled: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
22145
-
22146
- /**
22147
- * The icon that displays the arrow.
22148
- */
22149
- IconComponent: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.elementType.isRequired,
22150
-
22151
- /**
22152
- * Use that prop to pass a ref to the native select element.
22153
- * @deprecated
22154
- */
22155
- inputRef: __WEBPACK_IMPORTED_MODULE_5__material_ui_utils__["j" /* refType */],
22156
-
22157
- /**
22158
- * @ignore
22159
- */
22160
- multiple: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.bool,
22161
-
22162
- /**
22163
- * Name attribute of the `select` or hidden `input` element.
22164
- */
22165
- name: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.string,
22166
-
22167
- /**
22168
- * Callback function fired when a menu item is selected.
22169
- *
22170
- * @param {object} event The event source of the callback.
22171
- * You can pull out the new value by accessing `event.target.value` (string).
22172
- */
22173
- onChange: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.func,
22174
-
22175
- /**
22176
- * The input value.
22177
- */
22178
- value: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.any,
22179
-
22180
- /**
22181
- * The variant to use.
22182
- */
22183
- variant: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.oneOf(['standard', 'outlined', 'filled'])
22184
- } : void 0;
22185
- /* harmony default export */ __webpack_exports__["a"] = (NativeSelectInput);
22186
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
22187
-
22188
- /***/ }),
22189
- /* 322 */
22190
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22191
-
22192
- "use strict";
22193
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
22194
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
22195
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_createSvgIcon__ = __webpack_require__(21);
22196
-
22197
-
22198
- /**
22199
- * @ignore - internal component.
22200
- */
22201
-
22202
- /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_1__utils_createSvgIcon__["a" /* default */])( /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("path", {
22203
- d: "M7 10l5 5 5-5z"
22204
- }), 'ArrowDropDown'));
22205
-
22206
- /***/ }),
22207
- /* 323 */
22208
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22209
-
22210
- "use strict";
22211
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Radio__ = __webpack_require__(675);
22212
- /* unused harmony reexport default */
22213
-
22214
-
22215
- /***/ }),
22216
- /* 324 */
22217
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22218
-
22219
- "use strict";
22220
- /* harmony export (immutable) */ __webpack_exports__["a"] = useRadioGroup;
22221
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
22222
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
22223
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__RadioGroupContext__ = __webpack_require__(325);
22224
-
22225
-
22226
- function useRadioGroup() {
22227
- return __WEBPACK_IMPORTED_MODULE_0_react__["useContext"](__WEBPACK_IMPORTED_MODULE_1__RadioGroupContext__["a" /* default */]);
22228
- }
22229
-
22230
- /***/ }),
22231
- /* 325 */
22232
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22233
-
22234
- "use strict";
22235
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
22236
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
22237
-
22238
- /**
22239
- * @ignore - internal component.
22240
- */
22241
-
22242
- var RadioGroupContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]();
22243
-
22244
- if (process.env.NODE_ENV !== 'production') {
22245
- RadioGroupContext.displayName = 'RadioGroupContext';
22246
- }
22247
-
22248
- /* harmony default export */ __webpack_exports__["a"] = (RadioGroupContext);
22249
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
22250
-
22251
- /***/ }),
22252
- /* 326 */
22253
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22254
-
22255
- "use strict";
22256
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__RadioGroup__ = __webpack_require__(679);
22257
- /* unused harmony reexport default */
22258
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__useRadioGroup__ = __webpack_require__(324);
22259
- /* unused harmony reexport useRadioGroup */
22260
-
22261
-
22262
-
22263
- /***/ }),
22264
- /* 327 */
22265
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22266
-
22267
- "use strict";
22268
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__RootRef__ = __webpack_require__(680);
22269
- /* unused harmony reexport default */
22270
-
22271
-
22272
- /***/ }),
22273
- /* 328 */
22274
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22275
-
22276
- "use strict";
22277
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Slider__ = __webpack_require__(683);
22278
- /* unused harmony reexport default */
22279
-
22280
-
22281
- /***/ }),
22282
- /* 329 */
22283
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22284
-
22285
- "use strict";
22286
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Snackbar__ = __webpack_require__(685);
22287
- /* unused harmony reexport default */
22288
-
22289
-
22290
- /***/ }),
22291
- /* 330 */
22292
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22293
-
22294
- "use strict";
22295
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Step__ = __webpack_require__(687);
22296
- /* unused harmony reexport default */
22297
-
22298
-
22299
- /***/ }),
22300
- /* 331 */
22301
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22302
-
22303
- "use strict";
22304
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StepButton__ = __webpack_require__(688);
22305
- /* unused harmony reexport default */
22306
-
22307
-
22308
- /***/ }),
22309
- /* 332 */
22310
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22311
-
22312
- "use strict";
22313
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__StepContent__ = __webpack_require__(694);
22314
- /* unused harmony reexport default */
22315
-
22316
-
22317
- /***/ }),
22318
- /* 333 */
22319
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22320
-
22321
- "use strict";
22322
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Stepper__ = __webpack_require__(695);
22323
- /* unused harmony reexport default */
22324
-
22325
-
22326
- /***/ }),
22327
- /* 334 */
22328
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22329
-
22330
- "use strict";
22331
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SwipeableDrawer__ = __webpack_require__(696);
22332
- /* unused harmony reexport default */
22333
-
22334
-
22335
- /***/ }),
22336
- /* 335 */
22337
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22338
-
22339
- "use strict";
22340
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Switch__ = __webpack_require__(698);
22341
- /* unused harmony reexport default */
22342
-
22343
-
22344
- /***/ }),
22345
- /* 336 */
22346
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22347
-
22348
- "use strict";
22349
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Tab__ = __webpack_require__(699);
22350
- /* unused harmony reexport default */
22351
-
22352
-
22353
- /***/ }),
22354
- /* 337 */
22355
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22356
-
22357
- "use strict";
22358
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Table__ = __webpack_require__(700);
22359
- /* unused harmony reexport default */
22360
-
22361
-
22362
- /***/ }),
22363
- /* 338 */
22364
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22365
-
22366
- "use strict";
22367
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
22368
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
22369
-
22370
- /**
22371
- * @ignore - internal component.
22372
- */
22373
-
22374
- var TableContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]();
22375
-
22376
- if (process.env.NODE_ENV !== 'production') {
22377
- TableContext.displayName = 'TableContext';
22378
- }
22379
-
22380
- /* harmony default export */ __webpack_exports__["a"] = (TableContext);
22381
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
22382
-
22383
- /***/ }),
22384
- /* 339 */
22385
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22386
-
22387
- "use strict";
22388
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TableBody__ = __webpack_require__(701);
22389
- /* unused harmony reexport default */
22390
-
22391
-
22392
- /***/ }),
22393
- /* 340 */
22394
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22395
-
22396
- "use strict";
22397
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TableContainer__ = __webpack_require__(703);
22398
- /* unused harmony reexport default */
22399
-
22400
-
22401
- /***/ }),
22402
- /* 341 */
22403
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22404
-
22405
- "use strict";
22406
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TableFooter__ = __webpack_require__(704);
22407
- /* unused harmony reexport default */
22408
-
22409
-
22410
- /***/ }),
22411
- /* 342 */
22412
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22413
-
22414
- "use strict";
22415
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TableHead__ = __webpack_require__(705);
22416
- /* unused harmony reexport default */
22417
-
22418
-
22419
- /***/ }),
22420
- /* 343 */
22421
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22422
-
22423
- "use strict";
22424
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TablePagination__ = __webpack_require__(706);
22425
- /* unused harmony reexport default */
22426
-
22427
-
22428
- /***/ }),
22429
- /* 344 */
22430
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22431
-
22432
- "use strict";
22433
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
22434
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
22435
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_createSvgIcon__ = __webpack_require__(21);
22436
-
22437
-
22438
- /**
22439
- * @ignore - internal component.
22440
- */
22441
-
22442
- /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_1__utils_createSvgIcon__["a" /* default */])( /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("path", {
22443
- d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"
22444
- }), 'KeyboardArrowLeft'));
22445
-
22446
- /***/ }),
22447
- /* 345 */
22448
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22449
-
22450
- "use strict";
22451
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
22452
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
22453
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__utils_createSvgIcon__ = __webpack_require__(21);
22454
-
22455
-
22456
- /**
22457
- * @ignore - internal component.
22458
- */
22459
-
22460
- /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_1__utils_createSvgIcon__["a" /* default */])( /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_react__["createElement"]("path", {
22461
- d: "M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"
22462
- }), 'KeyboardArrowRight'));
22463
-
22464
- /***/ }),
22465
- /* 346 */
22466
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22467
-
22468
- "use strict";
22469
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TableRow__ = __webpack_require__(709);
22470
- /* unused harmony reexport default */
22471
-
22472
-
22473
- /***/ }),
22474
- /* 347 */
22475
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22476
-
22477
- "use strict";
22478
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TableSortLabel__ = __webpack_require__(710);
22479
- /* unused harmony reexport default */
22480
-
22481
-
22482
- /***/ }),
22483
- /* 348 */
22484
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22485
-
22486
- "use strict";
22487
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TextField__ = __webpack_require__(718);
22488
- /* unused harmony reexport default */
22489
-
22490
-
22491
- /***/ }),
22492
- /* 349 */
22493
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22494
-
22495
- "use strict";
22496
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__useScrollTrigger__ = __webpack_require__(720);
22497
- /* unused harmony reexport default */
22498
-
22499
-
22500
- /***/ }),
22501
- /* 350 */
22502
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22503
-
22504
- "use strict";
22505
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__withMobileDialog__ = __webpack_require__(721);
22506
- /* unused harmony reexport default */
22507
-
22508
-
22509
- /***/ }),
22510
- /* 351 */
22511
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22512
-
22513
- "use strict";
22514
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Autocomplete__ = __webpack_require__(723);
22515
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__Autocomplete__["b"]; });
22516
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Autocomplete__["a"]; });
22517
-
22518
-
22519
- /***/ }),
22520
- /* 352 */
22521
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22522
-
22523
- "use strict";
22524
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__useAutocomplete__ = __webpack_require__(725);
22525
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__useAutocomplete__["b"]; });
22526
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__useAutocomplete__["a"]; });
22527
-
22528
-
22529
- /***/ }),
22530
- /* 353 */
22531
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22532
-
22533
- "use strict";
22534
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__AvatarGroup__ = __webpack_require__(726);
22535
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__AvatarGroup__["a"]; });
22536
-
22537
-
22538
- /***/ }),
22539
- /* 354 */
22540
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22541
-
22542
- "use strict";
22543
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Pagination__ = __webpack_require__(727);
22544
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Pagination__["a"]; });
22545
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__usePagination__ = __webpack_require__(355);
22546
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__usePagination__["a"]; });
22547
-
22548
-
22549
-
22550
- /***/ }),
22551
- /* 355 */
22552
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22553
-
22554
- "use strict";
22555
- /* harmony export (immutable) */ __webpack_exports__["a"] = usePagination;
22556
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
22557
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_runtime_helpers_esm_toConsumableArray__ = __webpack_require__(27);
22558
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_slicedToArray__ = __webpack_require__(20);
22559
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__babel_runtime_helpers_esm_objectWithoutProperties__ = __webpack_require__(4);
22560
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__material_ui_core_utils__ = __webpack_require__(10);
22561
-
22562
-
22563
-
22564
-
22565
-
22566
- function usePagination() {
22567
- var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
22568
-
22569
- // keep default values in sync with @default tags in Pagination.propTypes
22570
- var _props$boundaryCount = props.boundaryCount,
22571
- boundaryCount = _props$boundaryCount === void 0 ? 1 : _props$boundaryCount,
22572
- _props$componentName = props.componentName,
22573
- componentName = _props$componentName === void 0 ? 'usePagination' : _props$componentName,
22574
- _props$count = props.count,
22575
- count = _props$count === void 0 ? 1 : _props$count,
22576
- _props$defaultPage = props.defaultPage,
22577
- defaultPage = _props$defaultPage === void 0 ? 1 : _props$defaultPage,
22578
- _props$disabled = props.disabled,
22579
- disabled = _props$disabled === void 0 ? false : _props$disabled,
22580
- _props$hideNextButton = props.hideNextButton,
22581
- hideNextButton = _props$hideNextButton === void 0 ? false : _props$hideNextButton,
22582
- _props$hidePrevButton = props.hidePrevButton,
22583
- hidePrevButton = _props$hidePrevButton === void 0 ? false : _props$hidePrevButton,
22584
- handleChange = props.onChange,
22585
- pageProp = props.page,
22586
- _props$showFirstButto = props.showFirstButton,
22587
- showFirstButton = _props$showFirstButto === void 0 ? false : _props$showFirstButto,
22588
- _props$showLastButton = props.showLastButton,
22589
- showLastButton = _props$showLastButton === void 0 ? false : _props$showLastButton,
22590
- _props$siblingCount = props.siblingCount,
22591
- siblingCount = _props$siblingCount === void 0 ? 1 : _props$siblingCount,
22592
- 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"]);
22593
-
22594
- var _useControlled = Object(__WEBPACK_IMPORTED_MODULE_4__material_ui_core_utils__["f" /* useControlled */])({
22595
- controlled: pageProp,
22596
- default: defaultPage,
22597
- name: componentName,
22598
- state: 'page'
22599
- }),
22600
- _useControlled2 = Object(__WEBPACK_IMPORTED_MODULE_2__babel_runtime_helpers_esm_slicedToArray__["a" /* default */])(_useControlled, 2),
22601
- page = _useControlled2[0],
22602
- setPageState = _useControlled2[1];
22603
-
22604
- var handleClick = function handleClick(event, value) {
22605
- if (!pageProp) {
22606
- setPageState(value);
22607
- }
22608
-
22609
- if (handleChange) {
22610
- handleChange(event, value);
22611
- }
22612
- }; // https://dev.to/namirsab/comment/2050
22613
-
22614
-
22615
- var range = function range(start, end) {
22616
- var length = end - start + 1;
22617
- return Array.from({
22618
- length: length
22619
- }, function (_, i) {
22620
- return start + i;
22621
- });
22622
- };
22623
-
22624
- var startPages = range(1, Math.min(boundaryCount, count));
22625
- var endPages = range(Math.max(count - boundaryCount + 1, boundaryCount + 1), count);
22626
- var siblingsStart = Math.max(Math.min( // Natural start
22627
- page - siblingCount, // Lower boundary when page is high
22628
- count - boundaryCount - siblingCount * 2 - 1), // Greater than startPages
22629
- boundaryCount + 2);
22630
- var siblingsEnd = Math.min(Math.max( // Natural end
22631
- page + siblingCount, // Upper boundary when page is low
22632
- boundaryCount + siblingCount * 2 + 2), // Less than endPages
22633
- endPages[0] - 2); // Basic list of items to render
22634
- // e.g. itemList = ['first', 'previous', 1, 'ellipsis', 4, 5, 6, 'ellipsis', 10, 'next', 'last']
22635
-
22636
- 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 + 2 ? ['start-ellipsis'] : boundaryCount + 1 < count - boundaryCount ? [boundaryCount + 1] : []), 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 - 1 ? ['end-ellipsis'] : count - boundaryCount > boundaryCount ? [count - boundaryCount] : []), 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
22637
-
22638
- var buttonPage = function buttonPage(type) {
22639
- switch (type) {
22640
- case 'first':
22641
- return 1;
22642
-
22643
- case 'previous':
22644
- return page - 1;
22645
-
22646
- case 'next':
22647
- return page + 1;
22648
-
22649
- case 'last':
22650
- return count;
22651
-
22652
- default:
22653
- return null;
22654
- }
22655
- }; // Convert the basic item list to PaginationItem props objects
22656
-
22657
-
22658
- var items = itemList.map(function (item) {
22659
- return typeof item === 'number' ? {
22660
- onClick: function onClick(event) {
22661
- handleClick(event, item);
22662
- },
22663
- type: 'page',
22664
- page: item,
22665
- selected: item === page,
22666
- disabled: disabled,
22667
- 'aria-current': item === page ? 'true' : undefined
22668
- } : {
22669
- onClick: function onClick(event) {
22670
- handleClick(event, buttonPage(item));
22671
- },
22672
- type: item,
22673
- page: buttonPage(item),
22674
- selected: false,
22675
- disabled: disabled || item.indexOf('ellipsis') === -1 && (item === 'next' || item === 'last' ? page >= count : page <= 1)
22676
- };
22677
- });
22678
- return Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
22679
- items: items
22680
- }, other);
22681
- }
22682
-
22683
- /***/ }),
22684
- /* 356 */
22685
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22686
-
22687
- "use strict";
22688
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Rating__ = __webpack_require__(733);
22689
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Rating__["a"]; });
22690
-
22691
-
22692
- /***/ }),
22693
- /* 357 */
22694
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22695
-
22696
- "use strict";
22697
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Skeleton__ = __webpack_require__(735);
22698
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Skeleton__["a"]; });
22699
-
22700
-
22701
- /***/ }),
22702
- /* 358 */
22703
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22704
-
22705
- "use strict";
22706
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SpeedDial__ = __webpack_require__(736);
22707
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__SpeedDial__["a"]; });
22708
-
22709
-
22710
- /***/ }),
22711
- /* 359 */
22712
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22713
-
22714
- "use strict";
22715
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SpeedDialAction__ = __webpack_require__(737);
22716
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__SpeedDialAction__["a"]; });
22717
-
22718
-
22719
- /***/ }),
22720
- /* 360 */
22721
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22722
-
22723
- "use strict";
22724
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SpeedDialIcon__ = __webpack_require__(738);
22725
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__SpeedDialIcon__["a"]; });
22726
-
22727
-
22728
- /***/ }),
22729
- /* 361 */
22730
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22731
-
22732
- "use strict";
22733
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony export (immutable) */ __webpack_exports__["a"] = TabContext;
22734
- /* harmony export (immutable) */ __webpack_exports__["d"] = useTabContext;
22735
- /* harmony export (immutable) */ __webpack_exports__["b"] = getPanelId;
22736
- /* harmony export (immutable) */ __webpack_exports__["c"] = getTabId;
22737
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
22738
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
22739
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(2);
22740
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
22741
-
22742
-
22743
- /**
22744
- * @type {React.Context<{ idPrefix: string; value: string } | null>}
22745
- */
22746
-
22747
- var Context = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"](null);
22748
-
22749
- if (process.env.NODE_ENV !== 'production') {
22750
- Context.displayName = 'TabContext';
22751
- }
22752
-
22753
- function useUniquePrefix() {
22754
- var _React$useState = __WEBPACK_IMPORTED_MODULE_0_react__["useState"](null),
22755
- id = _React$useState[0],
22756
- setId = _React$useState[1];
22757
-
22758
- __WEBPACK_IMPORTED_MODULE_0_react__["useEffect"](function () {
22759
- setId("mui-p-".concat(Math.round(Math.random() * 1e5)));
22760
- }, []);
22761
- return id;
22762
- }
22763
-
22764
- function TabContext(props) {
22765
- var children = props.children,
22766
- value = props.value;
22767
- var idPrefix = useUniquePrefix();
22768
- var context = __WEBPACK_IMPORTED_MODULE_0_react__["useMemo"](function () {
22769
- return {
22770
- idPrefix: idPrefix,
22771
- value: value
22772
- };
22773
- }, [idPrefix, value]);
22774
- return /*#__PURE__*/__WEBPACK_IMPORTED_MODULE_0_react__["createElement"](Context.Provider, {
22775
- value: context
22776
- }, children);
22777
- }
22778
- process.env.NODE_ENV !== "production" ? TabContext.propTypes = {
22779
- // ----------------------------- Warning --------------------------------
22780
- // | These PropTypes are generated from the TypeScript type definitions |
22781
- // | To update them edit the d.ts file and run "yarn proptypes" |
22782
- // ----------------------------------------------------------------------
22783
-
22784
- /**
22785
- * The content of the component.
22786
- */
22787
- children: __WEBPACK_IMPORTED_MODULE_1_prop_types__["node"],
22788
-
22789
- /**
22790
- * The value of the currently selected `Tab`.
22791
- */
22792
- value: __WEBPACK_IMPORTED_MODULE_1_prop_types__["string"].isRequired
22793
- } : void 0;
22794
- /**
22795
- * @returns {unknown}
22796
- */
22797
-
22798
- function useTabContext() {
22799
- return __WEBPACK_IMPORTED_MODULE_0_react__["useContext"](Context);
22800
- }
22801
- function getPanelId(context, value) {
22802
- var idPrefix = context.idPrefix;
22803
-
22804
- if (idPrefix === null) {
22805
- return null;
22806
- }
22807
-
22808
- return "".concat(context.idPrefix, "-P-").concat(value);
22809
- }
22810
- function getTabId(context, value) {
22811
- var idPrefix = context.idPrefix;
22812
-
22813
- if (idPrefix === null) {
22814
- return null;
22815
- }
22816
-
22817
- return "".concat(context.idPrefix, "-T-").concat(value);
22818
- }
22819
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
22820
-
22821
- /***/ }),
22822
- /* 362 */
22823
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22824
-
22825
- "use strict";
22826
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TabList__ = __webpack_require__(740);
22827
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TabList__["a"]; });
22828
-
22829
-
22830
- /***/ }),
22831
- /* 363 */
22832
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22833
-
22834
- "use strict";
22835
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TabPanel__ = __webpack_require__(741);
22836
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TabPanel__["a"]; });
22837
-
22838
-
22839
- /***/ }),
22840
- /* 364 */
22841
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22842
-
22843
- "use strict";
22844
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Timeline__ = __webpack_require__(742);
22845
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__Timeline__["a"]; });
22846
-
22847
-
22848
- /***/ }),
22849
- /* 365 */
22850
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22851
-
22852
- "use strict";
22853
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TimelineConnector__ = __webpack_require__(743);
22854
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TimelineConnector__["a"]; });
22855
-
22856
-
22857
- /***/ }),
22858
- /* 366 */
22859
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22860
-
22861
- "use strict";
22862
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TimelineContent__ = __webpack_require__(744);
22863
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TimelineContent__["a"]; });
22864
-
22865
-
22866
- /***/ }),
22867
- /* 367 */
22868
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22869
-
22870
- "use strict";
22871
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TimelineDot__ = __webpack_require__(745);
22872
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TimelineDot__["a"]; });
22873
-
22874
-
22875
- /***/ }),
22876
- /* 368 */
22877
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22878
-
22879
- "use strict";
22880
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TimelineItem__ = __webpack_require__(746);
22881
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TimelineItem__["a"]; });
22882
-
22883
-
22884
- /***/ }),
22885
- /* 369 */
22886
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22887
-
22888
- "use strict";
22889
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TimelineOppositeContent__ = __webpack_require__(747);
22890
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TimelineOppositeContent__["a"]; });
22891
-
22892
-
22893
- /***/ }),
22894
- /* 370 */
22895
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22896
-
22897
- "use strict";
22898
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TimelineSeparator__ = __webpack_require__(748);
22899
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TimelineSeparator__["a"]; });
22900
-
22901
-
22902
- /***/ }),
22903
- /* 371 */
22904
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22905
-
22906
- "use strict";
22907
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ToggleButton__ = __webpack_require__(749);
22908
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ToggleButton__["a"]; });
22909
-
22910
-
22911
- /***/ }),
22912
- /* 372 */
22913
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22914
-
22915
- "use strict";
22916
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ToggleButtonGroup__ = __webpack_require__(750);
22917
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__ToggleButtonGroup__["a"]; });
22918
-
22919
-
22920
- /***/ }),
22921
- /* 373 */
22922
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22923
-
22924
- "use strict";
22925
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TreeItem__ = __webpack_require__(752);
22926
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TreeItem__["a"]; });
22927
-
22928
-
22929
- /***/ }),
22930
- /* 374 */
22931
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22932
-
22933
- "use strict";
22934
- /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
22935
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
22936
-
22937
- /**
22938
- * @ignore - internal component.
22939
- */
22940
-
22941
- var TreeViewContext = __WEBPACK_IMPORTED_MODULE_0_react__["createContext"]({});
22942
-
22943
- if (process.env.NODE_ENV !== 'production') {
22944
- TreeViewContext.displayName = 'TreeViewContext';
22945
- }
22946
-
22947
- /* harmony default export */ __webpack_exports__["a"] = (TreeViewContext);
22948
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(1)))
22949
-
22950
- /***/ }),
22951
- /* 375 */
22952
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
22953
-
22954
- "use strict";
22955
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TreeView__ = __webpack_require__(753);
22956
- /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__TreeView__["a"]; });
22957
-
22958
-
22959
- /***/ }),
22960
- /* 376 */
22961
- /***/ (function(module, exports, __webpack_require__) {
22962
-
22963
- /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
22964
- var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
22965
-
22966
- module.exports = freeGlobal;
22967
-
22968
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(60)))
22969
-
22970
- /***/ }),
22971
- /* 377 */
22972
- /***/ (function(module, exports, __webpack_require__) {
22973
-
22974
- var baseFor = __webpack_require__(764),
22975
- keys = __webpack_require__(85);
22976
-
22977
- /**
22978
- * The base implementation of `_.forOwn` without support for iteratee shorthands.
22979
- *
22980
- * @private
22981
- * @param {Object} object The object to iterate over.
22982
- * @param {Function} iteratee The function invoked per iteration.
22983
- * @returns {Object} Returns `object`.
22984
- */
22985
- function baseForOwn(object, iteratee) {
22986
- return object && baseFor(object, iteratee, keys);
22987
- }
22988
-
22989
- module.exports = baseForOwn;
22990
-
22991
-
22992
- /***/ }),
22993
- /* 378 */
22994
- /***/ (function(module, exports, __webpack_require__) {
22995
-
22996
- var baseTimes = __webpack_require__(766),
22997
- isArguments = __webpack_require__(379),
22998
- isArray = __webpack_require__(29),
22999
- isBuffer = __webpack_require__(177),
23000
- isIndex = __webpack_require__(380),
23001
- isTypedArray = __webpack_require__(381);
23002
-
23003
- /** Used for built-in method references. */
23004
- var objectProto = Object.prototype;
23005
-
23006
- /** Used to check objects for own properties. */
23007
- var hasOwnProperty = objectProto.hasOwnProperty;
23008
-
23009
- /**
23010
- * Creates an array of the enumerable property names of the array-like `value`.
23011
- *
23012
- * @private
23013
- * @param {*} value The value to query.
23014
- * @param {boolean} inherited Specify returning inherited property names.
23015
- * @returns {Array} Returns the array of property names.
23016
- */
23017
- function arrayLikeKeys(value, inherited) {
23018
- var isArr = isArray(value),
23019
- isArg = !isArr && isArguments(value),
23020
- isBuff = !isArr && !isArg && isBuffer(value),
23021
- isType = !isArr && !isArg && !isBuff && isTypedArray(value),
23022
- skipIndexes = isArr || isArg || isBuff || isType,
23023
- result = skipIndexes ? baseTimes(value.length, String) : [],
23024
- length = result.length;
23025
-
23026
- for (var key in value) {
23027
- if ((inherited || hasOwnProperty.call(value, key)) &&
23028
- !(skipIndexes && (
23029
- // Safari 9 has enumerable `arguments.length` in strict mode.
23030
- key == 'length' ||
23031
- // Node.js 0.10 has enumerable non-index properties on buffers.
23032
- (isBuff && (key == 'offset' || key == 'parent')) ||
23033
- // PhantomJS 2 has enumerable non-index properties on typed arrays.
23034
- (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
23035
- // Skip index properties.
23036
- isIndex(key, length)
23037
- ))) {
23038
- result.push(key);
23039
- }
23040
- }
23041
- return result;
23042
- }
23043
-
23044
- module.exports = arrayLikeKeys;
23045
-
23046
-
23047
- /***/ }),
23048
- /* 379 */
23049
- /***/ (function(module, exports, __webpack_require__) {
23050
-
23051
- var baseIsArguments = __webpack_require__(767),
23052
- isObjectLike = __webpack_require__(41);
23053
-
23054
- /** Used for built-in method references. */
23055
- var objectProto = Object.prototype;
23056
-
23057
- /** Used to check objects for own properties. */
23058
- var hasOwnProperty = objectProto.hasOwnProperty;
23059
-
23060
- /** Built-in value references. */
23061
- var propertyIsEnumerable = objectProto.propertyIsEnumerable;
23062
-
23063
- /**
23064
- * Checks if `value` is likely an `arguments` object.
23065
- *
23066
- * @static
23067
- * @memberOf _
23068
- * @since 0.1.0
23069
- * @category Lang
23070
- * @param {*} value The value to check.
23071
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
23072
- * else `false`.
23073
- * @example
23074
- *
23075
- * _.isArguments(function() { return arguments; }());
23076
- * // => true
23077
- *
23078
- * _.isArguments([1, 2, 3]);
23079
- * // => false
23080
- */
23081
- var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
23082
- return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
23083
- !propertyIsEnumerable.call(value, 'callee');
23084
- };
23085
-
23086
- module.exports = isArguments;
23087
-
23088
-
23089
- /***/ }),
23090
- /* 380 */
23091
- /***/ (function(module, exports) {
23092
-
23093
- /** Used as references for various `Number` constants. */
23094
- var MAX_SAFE_INTEGER = 9007199254740991;
23095
-
23096
- /** Used to detect unsigned integer values. */
23097
- var reIsUint = /^(?:0|[1-9]\d*)$/;
23098
-
23099
- /**
23100
- * Checks if `value` is a valid array-like index.
23101
- *
23102
- * @private
23103
- * @param {*} value The value to check.
23104
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
23105
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
23106
- */
23107
- function isIndex(value, length) {
23108
- var type = typeof value;
23109
- length = length == null ? MAX_SAFE_INTEGER : length;
23110
-
23111
- return !!length &&
23112
- (type == 'number' ||
23113
- (type != 'symbol' && reIsUint.test(value))) &&
23114
- (value > -1 && value % 1 == 0 && value < length);
23115
- }
23116
-
23117
- module.exports = isIndex;
23118
-
23119
-
23120
- /***/ }),
23121
- /* 381 */
23122
- /***/ (function(module, exports, __webpack_require__) {
23123
-
23124
- var baseIsTypedArray = __webpack_require__(769),
23125
- baseUnary = __webpack_require__(180),
23126
- nodeUtil = __webpack_require__(181);
23127
-
23128
- /* Node.js helper references. */
23129
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
23130
-
23131
- /**
23132
- * Checks if `value` is classified as a typed array.
23133
- *
23134
- * @static
23135
- * @memberOf _
23136
- * @since 3.0.0
23137
- * @category Lang
23138
- * @param {*} value The value to check.
23139
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
23140
- * @example
23141
- *
23142
- * _.isTypedArray(new Uint8Array);
23143
- * // => true
23144
- *
23145
- * _.isTypedArray([]);
23146
- * // => false
23147
- */
23148
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
23149
-
23150
- module.exports = isTypedArray;
23151
-
23152
-
23153
- /***/ }),
23154
- /* 382 */
23155
- /***/ (function(module, exports) {
23156
-
23157
- /**
23158
- * Creates a unary function that invokes `func` with its argument transformed.
23159
- *
23160
- * @private
23161
- * @param {Function} func The function to wrap.
23162
- * @param {Function} transform The argument transform.
23163
- * @returns {Function} Returns the new function.
23164
- */
23165
- function overArg(func, transform) {
23166
- return function(arg) {
23167
- return func(transform(arg));
23168
- };
23169
- }
23170
-
23171
- module.exports = overArg;
23172
-
23173
-
23174
- /***/ }),
23175
- /* 383 */
23176
- /***/ (function(module, exports, __webpack_require__) {
23177
-
23178
- var baseGetTag = __webpack_require__(54),
23179
- isObject = __webpack_require__(68);
23180
-
23181
- /** `Object#toString` result references. */
23182
- var asyncTag = '[object AsyncFunction]',
23183
- funcTag = '[object Function]',
23184
- genTag = '[object GeneratorFunction]',
23185
- proxyTag = '[object Proxy]';
23186
-
23187
- /**
23188
- * Checks if `value` is classified as a `Function` object.
23189
- *
23190
- * @static
23191
- * @memberOf _
23192
- * @since 0.1.0
23193
- * @category Lang
23194
- * @param {*} value The value to check.
23195
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
23196
- * @example
23197
- *
23198
- * _.isFunction(_);
23199
- * // => true
23200
- *
23201
- * _.isFunction(/abc/);
23202
- * // => false
23203
- */
23204
- function isFunction(value) {
23205
- if (!isObject(value)) {
23206
- return false;
23207
- }
23208
- // The use of `Object#toString` avoids issues with the `typeof` operator
23209
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
23210
- var tag = baseGetTag(value);
23211
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
23212
- }
23213
-
23214
- module.exports = isFunction;
23215
-
23216
-
23217
- /***/ }),
23218
- /* 384 */
23219
- /***/ (function(module, exports) {
23220
-
23221
- /**
23222
- * This method returns the first argument it receives.
23223
- *
23224
- * @static
23225
- * @since 0.1.0
23226
- * @memberOf _
23227
- * @category Util
23228
- * @param {*} value Any value.
23229
- * @returns {*} Returns `value`.
23230
- * @example
23231
- *
23232
- * var object = { 'a': 1 };
23233
- *
23234
- * console.log(_.identity(object) === object);
23235
- * // => true
23236
- */
23237
- function identity(value) {
23238
- return value;
23239
- }
23240
-
23241
- module.exports = identity;
23242
-
23243
-
23244
- /***/ }),
23245
- /* 385 */
23246
- /***/ (function(module, exports) {
23247
-
23248
- /**
23249
- * A specialized version of `_.map` for arrays without support for iteratee
23250
- * shorthands.
23251
- *
23252
- * @private
23253
- * @param {Array} [array] The array to iterate over.
23254
- * @param {Function} iteratee The function invoked per iteration.
23255
- * @returns {Array} Returns the new mapped array.
23256
- */
23257
- function arrayMap(array, iteratee) {
23258
- var index = -1,
23259
- length = array == null ? 0 : array.length,
23260
- result = Array(length);
23261
-
23262
- while (++index < length) {
23263
- result[index] = iteratee(array[index], index, array);
23264
- }
23265
- return result;
23266
- }
23267
-
23268
- module.exports = arrayMap;
23269
-
23270
-
23271
- /***/ }),
23272
- /* 386 */
23273
- /***/ (function(module, exports) {
23274
-
23275
- /** Used for built-in method references. */
23276
- var funcProto = Function.prototype;
23277
-
23278
- /** Used to resolve the decompiled source of functions. */
23279
- var funcToString = funcProto.toString;
23280
-
23281
- /**
23282
- * Converts `func` to its source code.
23283
- *
23284
- * @private
23285
- * @param {Function} func The function to convert.
23286
- * @returns {string} Returns the source code.
23287
- */
23288
- function toSource(func) {
23289
- if (func != null) {
23290
- try {
23291
- return funcToString.call(func);
23292
- } catch (e) {}
23293
- try {
23294
- return (func + '');
23295
- } catch (e) {}
23296
- }
23297
- return '';
23298
- }
23299
-
23300
- module.exports = toSource;
23301
-
23302
-
23303
- /***/ }),
23304
- /* 387 */
23305
- /***/ (function(module, exports, __webpack_require__) {
23306
-
23307
- var baseIsEqualDeep = __webpack_require__(804),
23308
- isObjectLike = __webpack_require__(41);
23309
-
23310
- /**
23311
- * The base implementation of `_.isEqual` which supports partial comparisons
23312
- * and tracks traversed objects.
23313
- *
23314
- * @private
23315
- * @param {*} value The value to compare.
23316
- * @param {*} other The other value to compare.
23317
- * @param {boolean} bitmask The bitmask flags.
23318
- * 1 - Unordered comparison
23319
- * 2 - Partial comparison
23320
- * @param {Function} [customizer] The function to customize comparisons.
23321
- * @param {Object} [stack] Tracks traversed `value` and `other` objects.
23322
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
23323
- */
23324
- function baseIsEqual(value, other, bitmask, customizer, stack) {
23325
- if (value === other) {
23326
- return true;
23327
- }
23328
- if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
23329
- return value !== value && other !== other;
23330
- }
23331
- return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
23332
- }
23333
-
23334
- module.exports = baseIsEqual;
23335
-
23336
-
23337
- /***/ }),
23338
- /* 388 */
23339
- /***/ (function(module, exports, __webpack_require__) {
23340
-
23341
- var SetCache = __webpack_require__(805),
23342
- arraySome = __webpack_require__(808),
23343
- cacheHas = __webpack_require__(809);
23344
-
23345
- /** Used to compose bitmasks for value comparisons. */
23346
- var COMPARE_PARTIAL_FLAG = 1,
23347
- COMPARE_UNORDERED_FLAG = 2;
23348
-
23349
- /**
23350
- * A specialized version of `baseIsEqualDeep` for arrays with support for
23351
- * partial deep comparisons.
23352
- *
23353
- * @private
23354
- * @param {Array} array The array to compare.
23355
- * @param {Array} other The other array to compare.
23356
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
23357
- * @param {Function} customizer The function to customize comparisons.
23358
- * @param {Function} equalFunc The function to determine equivalents of values.
23359
- * @param {Object} stack Tracks traversed `array` and `other` objects.
23360
- * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
23361
- */
23362
- function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
23363
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
23364
- arrLength = array.length,
23365
- othLength = other.length;
23366
-
23367
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
23368
- return false;
23369
- }
23370
- // Check that cyclic values are equal.
23371
- var arrStacked = stack.get(array);
23372
- var othStacked = stack.get(other);
23373
- if (arrStacked && othStacked) {
23374
- return arrStacked == other && othStacked == array;
23375
- }
23376
- var index = -1,
23377
- result = true,
23378
- seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
23379
-
23380
- stack.set(array, other);
23381
- stack.set(other, array);
23382
-
23383
- // Ignore non-index properties.
23384
- while (++index < arrLength) {
23385
- var arrValue = array[index],
23386
- othValue = other[index];
23387
-
23388
- if (customizer) {
23389
- var compared = isPartial
23390
- ? customizer(othValue, arrValue, index, other, array, stack)
23391
- : customizer(arrValue, othValue, index, array, other, stack);
23392
- }
23393
- if (compared !== undefined) {
23394
- if (compared) {
23395
- continue;
23396
- }
23397
- result = false;
23398
- break;
23399
- }
23400
- // Recursively compare arrays (susceptible to call stack limits).
23401
- if (seen) {
23402
- if (!arraySome(other, function(othValue, othIndex) {
23403
- if (!cacheHas(seen, othIndex) &&
23404
- (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
23405
- return seen.push(othIndex);
23406
- }
23407
- })) {
23408
- result = false;
23409
- break;
23410
- }
23411
- } else if (!(
23412
- arrValue === othValue ||
23413
- equalFunc(arrValue, othValue, bitmask, customizer, stack)
23414
- )) {
23415
- result = false;
23416
- break;
23417
- }
23418
- }
23419
- stack['delete'](array);
23420
- stack['delete'](other);
23421
- return result;
23422
- }
23423
-
23424
- module.exports = equalArrays;
23425
-
23426
-
23427
- /***/ }),
23428
- /* 389 */
23429
- /***/ (function(module, exports, __webpack_require__) {
23430
-
23431
- var root = __webpack_require__(38);
23432
-
23433
- /** Built-in value references. */
23434
- var Uint8Array = root.Uint8Array;
23435
-
23436
- module.exports = Uint8Array;
23437
-
23438
-
23439
- /***/ }),
23440
- /* 390 */
23441
- /***/ (function(module, exports, __webpack_require__) {
23442
-
23443
- var baseGetAllKeys = __webpack_require__(391),
23444
- getSymbols = __webpack_require__(188),
23445
- keys = __webpack_require__(85);
23446
-
23447
- /**
23448
- * Creates an array of own enumerable property names and symbols of `object`.
23449
- *
23450
- * @private
23451
- * @param {Object} object The object to query.
23452
- * @returns {Array} Returns the array of property names and symbols.
23453
- */
23454
- function getAllKeys(object) {
23455
- return baseGetAllKeys(object, keys, getSymbols);
23456
- }
23457
-
23458
- module.exports = getAllKeys;
23459
-
23460
-
23461
- /***/ }),
23462
- /* 391 */
23463
- /***/ (function(module, exports, __webpack_require__) {
23464
-
23465
- var arrayPush = __webpack_require__(392),
23466
- isArray = __webpack_require__(29);
23467
-
23468
- /**
23469
- * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
23470
- * `keysFunc` and `symbolsFunc` to get the enumerable property names and
23471
- * symbols of `object`.
23472
- *
23473
- * @private
23474
- * @param {Object} object The object to query.
23475
- * @param {Function} keysFunc The function to get the keys of `object`.
23476
- * @param {Function} symbolsFunc The function to get the symbols of `object`.
23477
- * @returns {Array} Returns the array of property names and symbols.
23478
- */
23479
- function baseGetAllKeys(object, keysFunc, symbolsFunc) {
23480
- var result = keysFunc(object);
23481
- return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
23482
- }
23483
-
23484
- module.exports = baseGetAllKeys;
23485
-
23486
-
23487
- /***/ }),
23488
- /* 392 */
23489
- /***/ (function(module, exports) {
23490
-
23491
- /**
23492
- * Appends the elements of `values` to `array`.
23493
- *
23494
- * @private
23495
- * @param {Array} array The array to modify.
23496
- * @param {Array} values The values to append.
23497
- * @returns {Array} Returns `array`.
23498
- */
23499
- function arrayPush(array, values) {
23500
- var index = -1,
23501
- length = values.length,
23502
- offset = array.length;
23503
-
23504
- while (++index < length) {
23505
- array[offset + index] = values[index];
23506
- }
23507
- return array;
23508
- }
23509
-
23510
- module.exports = arrayPush;
23511
-
23512
-
23513
- /***/ }),
23514
- /* 393 */
23515
- /***/ (function(module, exports) {
23516
-
23517
- /**
23518
- * This method returns a new empty array.
23519
- *
23520
- * @static
23521
- * @memberOf _
23522
- * @since 4.13.0
23523
- * @category Util
23524
- * @returns {Array} Returns the new empty array.
23525
- * @example
23526
- *
23527
- * var arrays = _.times(2, _.stubArray);
23528
- *
23529
- * console.log(arrays);
23530
- * // => [[], []]
23531
- *
23532
- * console.log(arrays[0] === arrays[1]);
23533
- * // => false
23534
- */
23535
- function stubArray() {
23536
- return [];
23537
- }
23538
-
23539
- module.exports = stubArray;
23540
-
23541
-
23542
- /***/ }),
23543
- /* 394 */
23544
- /***/ (function(module, exports, __webpack_require__) {
23545
-
23546
- var isObject = __webpack_require__(68);
23547
-
23548
- /**
23549
- * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
23550
- *
23551
- * @private
23552
- * @param {*} value The value to check.
23553
- * @returns {boolean} Returns `true` if `value` if suitable for strict
23554
- * equality comparisons, else `false`.
23555
- */
23556
- function isStrictComparable(value) {
23557
- return value === value && !isObject(value);
23558
- }
23559
-
23560
- module.exports = isStrictComparable;
23561
-
23562
-
23563
- /***/ }),
23564
- /* 395 */
23565
- /***/ (function(module, exports) {
23566
-
23567
- /**
23568
- * A specialized version of `matchesProperty` for source values suitable
23569
- * for strict equality comparisons, i.e. `===`.
23570
- *
23571
- * @private
23572
- * @param {string} key The key of the property to get.
23573
- * @param {*} srcValue The value to match.
23574
- * @returns {Function} Returns the new spec function.
23575
- */
23576
- function matchesStrictComparable(key, srcValue) {
23577
- return function(object) {
23578
- if (object == null) {
23579
- return false;
23580
- }
23581
- return object[key] === srcValue &&
23582
- (srcValue !== undefined || (key in Object(object)));
23583
- };
23584
- }
23585
-
23586
- module.exports = matchesStrictComparable;
23587
-
23588
-
23589
- /***/ }),
23590
- /* 396 */
23591
- /***/ (function(module, exports, __webpack_require__) {
23592
-
23593
- var castPath = __webpack_require__(397),
23594
- toKey = __webpack_require__(117);
23595
-
23596
- /**
23597
- * The base implementation of `_.get` without support for default values.
23598
- *
23599
- * @private
23600
- * @param {Object} object The object to query.
23601
- * @param {Array|string} path The path of the property to get.
23602
- * @returns {*} Returns the resolved value.
23603
- */
23604
- function baseGet(object, path) {
23605
- path = castPath(path, object);
23606
-
23607
- var index = 0,
23608
- length = path.length;
23609
-
23610
- while (object != null && index < length) {
23611
- object = object[toKey(path[index++])];
23612
- }
23613
- return (index && index == length) ? object : undefined;
23614
- }
23615
-
23616
- module.exports = baseGet;
23617
-
23618
-
23619
- /***/ }),
23620
- /* 397 */
23621
- /***/ (function(module, exports, __webpack_require__) {
23622
-
23623
- var isArray = __webpack_require__(29),
23624
- isKey = __webpack_require__(189),
23625
- stringToPath = __webpack_require__(822),
23626
- toString = __webpack_require__(825);
23627
-
23628
- /**
23629
- * Casts `value` to a path array if it's not one.
23630
- *
23631
- * @private
23632
- * @param {*} value The value to inspect.
23633
- * @param {Object} [object] The object to query keys on.
23634
- * @returns {Array} Returns the cast property path array.
23635
- */
23636
- function castPath(value, object) {
23637
- if (isArray(value)) {
23638
- return value;
23639
- }
23640
- return isKey(value, object) ? [value] : stringToPath(toString(value));
23641
- }
23642
-
23643
- module.exports = castPath;
23644
-
23645
-
23646
- /***/ }),
23647
- /* 398 */
23648
- /***/ (function(module, exports, __webpack_require__) {
23649
-
23650
- var baseAssignValue = __webpack_require__(399),
23651
- eq = __webpack_require__(185);
23652
-
23653
- /** Used for built-in method references. */
23654
- var objectProto = Object.prototype;
23655
-
23656
- /** Used to check objects for own properties. */
23657
- var hasOwnProperty = objectProto.hasOwnProperty;
23658
-
23659
- /**
23660
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
23661
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
23662
- * for equality comparisons.
23663
- *
23664
- * @private
23665
- * @param {Object} object The object to modify.
23666
- * @param {string} key The key of the property to assign.
23667
- * @param {*} value The value to assign.
23668
- */
23669
- function assignValue(object, key, value) {
23670
- var objValue = object[key];
23671
- if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
23672
- (value === undefined && !(key in object))) {
23673
- baseAssignValue(object, key, value);
23674
- }
23675
- }
23676
-
23677
- module.exports = assignValue;
23678
-
23679
-
23680
- /***/ }),
23681
- /* 399 */
23682
- /***/ (function(module, exports, __webpack_require__) {
23683
-
23684
- var defineProperty = __webpack_require__(840);
23685
-
23686
- /**
23687
- * The base implementation of `assignValue` and `assignMergeValue` without
23688
- * value checks.
23689
- *
23690
- * @private
23691
- * @param {Object} object The object to modify.
23692
- * @param {string} key The key of the property to assign.
23693
- * @param {*} value The value to assign.
23694
- */
23695
- function baseAssignValue(object, key, value) {
23696
- if (key == '__proto__' && defineProperty) {
23697
- defineProperty(object, key, {
23698
- 'configurable': true,
23699
- 'enumerable': true,
23700
- 'value': value,
23701
- 'writable': true
23702
- });
23703
- } else {
23704
- object[key] = value;
23705
- }
23706
- }
23707
-
23708
- module.exports = baseAssignValue;
23709
-
23710
-
23711
- /***/ }),
23712
- /* 400 */
23713
- /***/ (function(module, exports, __webpack_require__) {
23714
-
23715
- var arrayPush = __webpack_require__(392),
23716
- getPrototype = __webpack_require__(183),
23717
- getSymbols = __webpack_require__(188),
23718
- stubArray = __webpack_require__(393);
23719
-
23720
- /* Built-in method references for those with the same name as other `lodash` methods. */
23721
- var nativeGetSymbols = Object.getOwnPropertySymbols;
23722
-
23723
- /**
23724
- * Creates an array of the own and inherited enumerable symbols of `object`.
23725
- *
23726
- * @private
23727
- * @param {Object} object The object to query.
23728
- * @returns {Array} Returns the array of symbols.
23729
- */
23730
- var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
23731
- var result = [];
23732
- while (object) {
23733
- arrayPush(result, getSymbols(object));
23734
- object = getPrototype(object);
23735
- }
23736
- return result;
23737
- };
23738
-
23739
- module.exports = getSymbolsIn;
23740
-
23741
-
23742
- /***/ }),
23743
- /* 401 */
23744
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23745
-
23746
- "use strict";
23747
- /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
23748
- var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
23749
-
23750
- /* harmony default export */ __webpack_exports__["a"] = (freeGlobal);
23751
-
23752
- /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(60)))
23753
-
23754
- /***/ }),
23755
- /* 402 */
23756
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23757
-
23758
- "use strict";
23759
- /** Used for built-in method references. */
23760
- var funcProto = Function.prototype;
23761
-
23762
- /** Used to resolve the decompiled source of functions. */
23763
- var funcToString = funcProto.toString;
23764
-
23765
- /**
23766
- * Converts `func` to its source code.
23767
- *
23768
- * @private
23769
- * @param {Function} func The function to convert.
23770
- * @returns {string} Returns the source code.
23771
- */
23772
- function toSource(func) {
23773
- if (func != null) {
23774
- try {
23775
- return funcToString.call(func);
23776
- } catch (e) {}
23777
- try {
23778
- return (func + '');
23779
- } catch (e) {}
23780
- }
23781
- return '';
23782
- }
23783
-
23784
- /* harmony default export */ __webpack_exports__["a"] = (toSource);
23785
-
23786
-
23787
- /***/ }),
23788
- /* 403 */
23789
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23790
-
23791
- "use strict";
23792
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseAssignValue_js__ = __webpack_require__(198);
23793
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__eq_js__ = __webpack_require__(86);
23794
-
23795
-
23796
-
23797
- /**
23798
- * This function is like `assignValue` except that it doesn't assign
23799
- * `undefined` values.
23800
- *
23801
- * @private
23802
- * @param {Object} object The object to modify.
23803
- * @param {string} key The key of the property to assign.
23804
- * @param {*} value The value to assign.
23805
- */
23806
- function assignMergeValue(object, key, value) {
23807
- if ((value !== undefined && !Object(__WEBPACK_IMPORTED_MODULE_1__eq_js__["a" /* default */])(object[key], value)) ||
23808
- (value === undefined && !(key in object))) {
23809
- Object(__WEBPACK_IMPORTED_MODULE_0__baseAssignValue_js__["a" /* default */])(object, key, value);
23810
- }
23811
- }
23812
-
23813
- /* harmony default export */ __webpack_exports__["a"] = (assignMergeValue);
23814
-
23815
-
23816
- /***/ }),
23817
- /* 404 */
23818
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23819
-
23820
- "use strict";
23821
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__getNative_js__ = __webpack_require__(56);
23822
-
23823
-
23824
- var defineProperty = (function() {
23825
- try {
23826
- var func = Object(__WEBPACK_IMPORTED_MODULE_0__getNative_js__["a" /* default */])(Object, 'defineProperty');
23827
- func({}, '', {});
23828
- return func;
23829
- } catch (e) {}
23830
- }());
23831
-
23832
- /* harmony default export */ __webpack_exports__["a"] = (defineProperty);
23833
-
23834
-
23835
- /***/ }),
23836
- /* 405 */
23837
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23838
-
23839
- "use strict";
23840
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__createBaseFor_js__ = __webpack_require__(902);
23841
-
23842
-
23843
- /**
23844
- * The base implementation of `baseForOwn` which iterates over `object`
23845
- * properties returned by `keysFunc` and invokes `iteratee` for each property.
23846
- * Iteratee functions may exit iteration early by explicitly returning `false`.
23847
- *
23848
- * @private
23849
- * @param {Object} object The object to iterate over.
23850
- * @param {Function} iteratee The function invoked per iteration.
23851
- * @param {Function} keysFunc The function to get the keys of `object`.
23852
- * @returns {Object} Returns `object`.
23853
- */
23854
- var baseFor = Object(__WEBPACK_IMPORTED_MODULE_0__createBaseFor_js__["a" /* default */])();
23855
-
23856
- /* harmony default export */ __webpack_exports__["a"] = (baseFor);
23857
-
23858
-
23859
- /***/ }),
23860
- /* 406 */
23861
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23862
-
23863
- "use strict";
23864
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__root_js__ = __webpack_require__(30);
23865
-
23866
-
23867
- /** Built-in value references. */
23868
- var Uint8Array = __WEBPACK_IMPORTED_MODULE_0__root_js__["a" /* default */].Uint8Array;
23869
-
23870
- /* harmony default export */ __webpack_exports__["a"] = (Uint8Array);
23871
-
23872
-
23873
- /***/ }),
23874
- /* 407 */
23875
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23876
-
23877
- "use strict";
23878
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__overArg_js__ = __webpack_require__(408);
23879
-
23880
-
23881
- /** Built-in value references. */
23882
- var getPrototype = Object(__WEBPACK_IMPORTED_MODULE_0__overArg_js__["a" /* default */])(Object.getPrototypeOf, Object);
23883
-
23884
- /* harmony default export */ __webpack_exports__["a"] = (getPrototype);
23885
-
23886
-
23887
- /***/ }),
23888
- /* 408 */
23889
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23890
-
23891
- "use strict";
23892
- /**
23893
- * Creates a unary function that invokes `func` with its argument transformed.
23894
- *
23895
- * @private
23896
- * @param {Function} func The function to wrap.
23897
- * @param {Function} transform The argument transform.
23898
- * @returns {Function} Returns the new function.
23899
- */
23900
- function overArg(func, transform) {
23901
- return function(arg) {
23902
- return func(transform(arg));
23903
- };
23904
- }
23905
-
23906
- /* harmony default export */ __webpack_exports__["a"] = (overArg);
23907
-
23908
-
23909
- /***/ }),
23910
- /* 409 */
23911
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23912
-
23913
- "use strict";
23914
- /**
23915
- * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
23916
- *
23917
- * @private
23918
- * @param {Object} object The object to query.
23919
- * @param {string} key The key of the property to get.
23920
- * @returns {*} Returns the property value.
23921
- */
23922
- function safeGet(object, key) {
23923
- if (key === 'constructor' && typeof object[key] === 'function') {
23924
- return;
23925
- }
23926
-
23927
- if (key == '__proto__') {
23928
- return;
23929
- }
23930
-
23931
- return object[key];
23932
- }
23933
-
23934
- /* harmony default export */ __webpack_exports__["a"] = (safeGet);
23935
-
23936
-
23937
- /***/ }),
23938
- /* 410 */
23939
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23940
-
23941
- "use strict";
23942
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__arrayLikeKeys_js__ = __webpack_require__(411);
23943
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__baseKeysIn_js__ = __webpack_require__(921);
23944
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__isArrayLike_js__ = __webpack_require__(70);
23945
-
23946
-
23947
-
23948
-
23949
- /**
23950
- * Creates an array of the own and inherited enumerable property names of `object`.
23951
- *
23952
- * **Note:** Non-object values are coerced to objects.
23953
- *
23954
- * @static
23955
- * @memberOf _
23956
- * @since 3.0.0
23957
- * @category Object
23958
- * @param {Object} object The object to query.
23959
- * @returns {Array} Returns the array of property names.
23960
- * @example
23961
- *
23962
- * function Foo() {
23963
- * this.a = 1;
23964
- * this.b = 2;
23965
- * }
23966
- *
23967
- * Foo.prototype.c = 3;
23968
- *
23969
- * _.keysIn(new Foo);
23970
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
23971
- */
23972
- function keysIn(object) {
23973
- return Object(__WEBPACK_IMPORTED_MODULE_2__isArrayLike_js__["a" /* default */])(object) ? Object(__WEBPACK_IMPORTED_MODULE_0__arrayLikeKeys_js__["a" /* default */])(object, true) : Object(__WEBPACK_IMPORTED_MODULE_1__baseKeysIn_js__["a" /* default */])(object);
23974
- }
23975
-
23976
- /* harmony default export */ __webpack_exports__["a"] = (keysIn);
23977
-
23978
-
23979
- /***/ }),
23980
- /* 411 */
23981
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
23982
-
23983
- "use strict";
23984
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseTimes_js__ = __webpack_require__(920);
23985
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isArguments_js__ = __webpack_require__(201);
23986
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__isArray_js__ = __webpack_require__(32);
23987
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__isBuffer_js__ = __webpack_require__(203);
23988
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__isIndex_js__ = __webpack_require__(205);
23989
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__isTypedArray_js__ = __webpack_require__(204);
23990
-
23991
-
23992
-
23993
-
23994
-
23995
-
23996
-
23997
- /** Used for built-in method references. */
23998
- var objectProto = Object.prototype;
23999
-
24000
- /** Used to check objects for own properties. */
24001
- var hasOwnProperty = objectProto.hasOwnProperty;
24002
-
24003
- /**
24004
- * Creates an array of the enumerable property names of the array-like `value`.
24005
- *
24006
- * @private
24007
- * @param {*} value The value to query.
24008
- * @param {boolean} inherited Specify returning inherited property names.
24009
- * @returns {Array} Returns the array of property names.
24010
- */
24011
- function arrayLikeKeys(value, inherited) {
24012
- var isArr = Object(__WEBPACK_IMPORTED_MODULE_2__isArray_js__["a" /* default */])(value),
24013
- isArg = !isArr && Object(__WEBPACK_IMPORTED_MODULE_1__isArguments_js__["a" /* default */])(value),
24014
- isBuff = !isArr && !isArg && Object(__WEBPACK_IMPORTED_MODULE_3__isBuffer_js__["a" /* default */])(value),
24015
- isType = !isArr && !isArg && !isBuff && Object(__WEBPACK_IMPORTED_MODULE_5__isTypedArray_js__["a" /* default */])(value),
24016
- skipIndexes = isArr || isArg || isBuff || isType,
24017
- result = skipIndexes ? Object(__WEBPACK_IMPORTED_MODULE_0__baseTimes_js__["a" /* default */])(value.length, String) : [],
24018
- length = result.length;
24019
-
24020
- for (var key in value) {
24021
- if ((inherited || hasOwnProperty.call(value, key)) &&
24022
- !(skipIndexes && (
24023
- // Safari 9 has enumerable `arguments.length` in strict mode.
24024
- key == 'length' ||
24025
- // Node.js 0.10 has enumerable non-index properties on buffers.
24026
- (isBuff && (key == 'offset' || key == 'parent')) ||
24027
- // PhantomJS 2 has enumerable non-index properties on typed arrays.
24028
- (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
24029
- // Skip index properties.
24030
- Object(__WEBPACK_IMPORTED_MODULE_4__isIndex_js__["a" /* default */])(key, length)
24031
- ))) {
24032
- result.push(key);
24033
- }
24034
- }
24035
- return result;
24036
- }
24037
-
24038
- /* harmony default export */ __webpack_exports__["a"] = (arrayLikeKeys);
24039
-
24040
-
24041
- /***/ }),
24042
- /* 412 */
24043
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
24044
-
24045
- "use strict";
24046
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isObject_js__ = __webpack_require__(31);
24047
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__now_js__ = __webpack_require__(934);
24048
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__toNumber_js__ = __webpack_require__(935);
24049
-
24050
-
24051
-
24052
-
24053
- /** Error message constants. */
24054
- var FUNC_ERROR_TEXT = 'Expected a function';
24055
-
24056
- /* Built-in method references for those with the same name as other `lodash` methods. */
24057
- var nativeMax = Math.max,
24058
- nativeMin = Math.min;
24059
-
24060
- /**
24061
- * Creates a debounced function that delays invoking `func` until after `wait`
24062
- * milliseconds have elapsed since the last time the debounced function was
24063
- * invoked. The debounced function comes with a `cancel` method to cancel
24064
- * delayed `func` invocations and a `flush` method to immediately invoke them.
24065
- * Provide `options` to indicate whether `func` should be invoked on the
24066
- * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
24067
- * with the last arguments provided to the debounced function. Subsequent
24068
- * calls to the debounced function return the result of the last `func`
24069
- * invocation.
24070
- *
24071
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
24072
- * invoked on the trailing edge of the timeout only if the debounced function
24073
- * is invoked more than once during the `wait` timeout.
24074
- *
24075
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
24076
- * until to the next tick, similar to `setTimeout` with a timeout of `0`.
24077
- *
24078
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
24079
- * for details over the differences between `_.debounce` and `_.throttle`.
24080
- *
24081
- * @static
24082
- * @memberOf _
24083
- * @since 0.1.0
24084
- * @category Function
24085
- * @param {Function} func The function to debounce.
24086
- * @param {number} [wait=0] The number of milliseconds to delay.
24087
- * @param {Object} [options={}] The options object.
24088
- * @param {boolean} [options.leading=false]
24089
- * Specify invoking on the leading edge of the timeout.
24090
- * @param {number} [options.maxWait]
24091
- * The maximum time `func` is allowed to be delayed before it's invoked.
24092
- * @param {boolean} [options.trailing=true]
24093
- * Specify invoking on the trailing edge of the timeout.
24094
- * @returns {Function} Returns the new debounced function.
24095
- * @example
24096
- *
24097
- * // Avoid costly calculations while the window size is in flux.
24098
- * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
24099
- *
24100
- * // Invoke `sendMail` when clicked, debouncing subsequent calls.
24101
- * jQuery(element).on('click', _.debounce(sendMail, 300, {
24102
- * 'leading': true,
24103
- * 'trailing': false
24104
- * }));
24105
- *
24106
- * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
24107
- * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
24108
- * var source = new EventSource('/stream');
24109
- * jQuery(source).on('message', debounced);
24110
- *
24111
- * // Cancel the trailing debounced invocation.
24112
- * jQuery(window).on('popstate', debounced.cancel);
24113
- */
24114
- function debounce(func, wait, options) {
24115
- var lastArgs,
24116
- lastThis,
24117
- maxWait,
24118
- result,
24119
- timerId,
24120
- lastCallTime,
24121
- lastInvokeTime = 0,
24122
- leading = false,
24123
- maxing = false,
24124
- trailing = true;
24125
-
24126
- if (typeof func != 'function') {
24127
- throw new TypeError(FUNC_ERROR_TEXT);
24128
- }
24129
- wait = Object(__WEBPACK_IMPORTED_MODULE_2__toNumber_js__["a" /* default */])(wait) || 0;
24130
- if (Object(__WEBPACK_IMPORTED_MODULE_0__isObject_js__["a" /* default */])(options)) {
24131
- leading = !!options.leading;
24132
- maxing = 'maxWait' in options;
24133
- maxWait = maxing ? nativeMax(Object(__WEBPACK_IMPORTED_MODULE_2__toNumber_js__["a" /* default */])(options.maxWait) || 0, wait) : maxWait;
24134
- trailing = 'trailing' in options ? !!options.trailing : trailing;
24135
- }
24136
-
24137
- function invokeFunc(time) {
24138
- var args = lastArgs,
24139
- thisArg = lastThis;
24140
-
24141
- lastArgs = lastThis = undefined;
24142
- lastInvokeTime = time;
24143
- result = func.apply(thisArg, args);
24144
- return result;
24145
- }
24146
-
24147
- function leadingEdge(time) {
24148
- // Reset any `maxWait` timer.
24149
- lastInvokeTime = time;
24150
- // Start the timer for the trailing edge.
24151
- timerId = setTimeout(timerExpired, wait);
24152
- // Invoke the leading edge.
24153
- return leading ? invokeFunc(time) : result;
24154
- }
24155
-
24156
- function remainingWait(time) {
24157
- var timeSinceLastCall = time - lastCallTime,
24158
- timeSinceLastInvoke = time - lastInvokeTime,
24159
- timeWaiting = wait - timeSinceLastCall;
24160
-
24161
- return maxing
24162
- ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
24163
- : timeWaiting;
24164
- }
24165
-
24166
- function shouldInvoke(time) {
24167
- var timeSinceLastCall = time - lastCallTime,
24168
- timeSinceLastInvoke = time - lastInvokeTime;
24169
-
24170
- // Either this is the first call, activity has stopped and we're at the
24171
- // trailing edge, the system time has gone backwards and we're treating
24172
- // it as the trailing edge, or we've hit the `maxWait` limit.
24173
- return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
24174
- (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
24175
- }
24176
-
24177
- function timerExpired() {
24178
- var time = Object(__WEBPACK_IMPORTED_MODULE_1__now_js__["a" /* default */])();
24179
- if (shouldInvoke(time)) {
24180
- return trailingEdge(time);
24181
- }
24182
- // Restart the timer.
24183
- timerId = setTimeout(timerExpired, remainingWait(time));
24184
- }
24185
-
24186
- function trailingEdge(time) {
24187
- timerId = undefined;
24188
-
24189
- // Only invoke if we have `lastArgs` which means `func` has been
24190
- // debounced at least once.
24191
- if (trailing && lastArgs) {
24192
- return invokeFunc(time);
24193
- }
24194
- lastArgs = lastThis = undefined;
24195
- return result;
24196
- }
24197
-
24198
- function cancel() {
24199
- if (timerId !== undefined) {
24200
- clearTimeout(timerId);
24201
- }
24202
- lastInvokeTime = 0;
24203
- lastArgs = lastCallTime = lastThis = timerId = undefined;
24204
- }
24205
-
24206
- function flush() {
24207
- return timerId === undefined ? result : trailingEdge(Object(__WEBPACK_IMPORTED_MODULE_1__now_js__["a" /* default */])());
24208
- }
24209
-
24210
- function debounced() {
24211
- var time = Object(__WEBPACK_IMPORTED_MODULE_1__now_js__["a" /* default */])(),
24212
- isInvoking = shouldInvoke(time);
24213
-
24214
- lastArgs = arguments;
24215
- lastThis = this;
24216
- lastCallTime = time;
24217
-
24218
- if (isInvoking) {
24219
- if (timerId === undefined) {
24220
- return leadingEdge(lastCallTime);
24221
- }
24222
- if (maxing) {
24223
- // Handle invocations in a tight loop.
24224
- clearTimeout(timerId);
24225
- timerId = setTimeout(timerExpired, wait);
24226
- return invokeFunc(lastCallTime);
24227
- }
24228
- }
24229
- if (timerId === undefined) {
24230
- timerId = setTimeout(timerExpired, wait);
24231
- }
24232
- return result;
24233
- }
24234
- debounced.cancel = cancel;
24235
- debounced.flush = flush;
24236
- return debounced;
24237
- }
24238
-
24239
- /* harmony default export */ __webpack_exports__["a"] = (debounce);
24240
-
24241
-
24242
- /***/ }),
24243
- /* 413 */
24244
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
24245
-
24246
- "use strict";
24247
- /* unused harmony export ColorWrap */
24248
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
24249
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
24250
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_es_debounce__ = __webpack_require__(412);
24251
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__helpers_color__ = __webpack_require__(33);
24252
- 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; };
24253
-
24254
- 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; }; }();
24255
-
24256
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
24257
-
24258
- 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; }
24259
-
24260
- 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; }
24261
-
24262
-
24263
-
24264
-
24265
-
24266
- var ColorWrap = function ColorWrap(Picker) {
24267
- var ColorPicker = function (_ref) {
24268
- _inherits(ColorPicker, _ref);
24269
-
24270
- function ColorPicker(props) {
24271
- _classCallCheck(this, ColorPicker);
24272
-
24273
- var _this = _possibleConstructorReturn(this, (ColorPicker.__proto__ || Object.getPrototypeOf(ColorPicker)).call(this));
24274
-
24275
- _this.handleChange = function (data, event) {
24276
- var isValidColor = __WEBPACK_IMPORTED_MODULE_2__helpers_color__["d" /* simpleCheckForValidColor */](data);
24277
- if (isValidColor) {
24278
- var colors = __WEBPACK_IMPORTED_MODULE_2__helpers_color__["e" /* toState */](data, data.h || _this.state.oldHue);
24279
- _this.setState(colors);
24280
- _this.props.onChangeComplete && _this.debounce(_this.props.onChangeComplete, colors, event);
24281
- _this.props.onChange && _this.props.onChange(colors, event);
24282
- }
24283
- };
24284
-
24285
- _this.handleSwatchHover = function (data, event) {
24286
- var isValidColor = __WEBPACK_IMPORTED_MODULE_2__helpers_color__["d" /* simpleCheckForValidColor */](data);
24287
- if (isValidColor) {
24288
- var colors = __WEBPACK_IMPORTED_MODULE_2__helpers_color__["e" /* toState */](data, data.h || _this.state.oldHue);
24289
- _this.props.onSwatchHover && _this.props.onSwatchHover(colors, event);
24290
- }
24291
- };
24292
-
24293
- _this.state = _extends({}, __WEBPACK_IMPORTED_MODULE_2__helpers_color__["e" /* toState */](props.color, 0));
24294
-
24295
- _this.debounce = Object(__WEBPACK_IMPORTED_MODULE_1_lodash_es_debounce__["a" /* default */])(function (fn, data, event) {
24296
- fn(data, event);
24297
- }, 100);
24298
- return _this;
24299
- }
24300
-
24301
- _createClass(ColorPicker, [{
24302
- key: 'render',
24303
- value: function render() {
24304
- var optionalEvents = {};
24305
- if (this.props.onSwatchHover) {
24306
- optionalEvents.onSwatchHover = this.handleSwatchHover;
24307
- }
24308
-
24309
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Picker, _extends({}, this.props, this.state, {
24310
- onChange: this.handleChange
24311
- }, optionalEvents));
24312
- }
24313
- }], [{
24314
- key: 'getDerivedStateFromProps',
24315
- value: function getDerivedStateFromProps(nextProps, state) {
24316
- return _extends({}, __WEBPACK_IMPORTED_MODULE_2__helpers_color__["e" /* toState */](nextProps.color, state.oldHue));
24317
- }
24318
- }]);
24319
-
24320
- return ColorPicker;
24321
- }(__WEBPACK_IMPORTED_MODULE_0_react__["PureComponent"] || __WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
24322
-
24323
- ColorPicker.propTypes = _extends({}, Picker.propTypes);
24324
-
24325
- ColorPicker.defaultProps = _extends({}, Picker.defaultProps, {
24326
- color: {
24327
- h: 250,
24328
- s: 0.50,
24329
- l: 0.20,
24330
- a: 1
24331
- }
24332
- });
24333
-
24334
- return ColorPicker;
24335
- };
24336
-
24337
- /* harmony default export */ __webpack_exports__["a"] = (ColorWrap);
24338
-
24339
- /***/ }),
24340
- /* 414 */
24341
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
24342
-
24343
- "use strict";
24344
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseForOwn_js__ = __webpack_require__(940);
24345
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__createBaseEach_js__ = __webpack_require__(943);
24346
-
24347
-
24348
-
24349
- /**
24350
- * The base implementation of `_.forEach` without support for iteratee shorthands.
24351
- *
24352
- * @private
24353
- * @param {Array|Object} collection The collection to iterate over.
24354
- * @param {Function} iteratee The function invoked per iteration.
24355
- * @returns {Array|Object} Returns `collection`.
24356
- */
24357
- var baseEach = Object(__WEBPACK_IMPORTED_MODULE_1__createBaseEach_js__["a" /* default */])(__WEBPACK_IMPORTED_MODULE_0__baseForOwn_js__["a" /* default */]);
24358
-
24359
- /* harmony default export */ __webpack_exports__["a"] = (baseEach);
24360
-
24361
-
24362
- /***/ }),
24363
- /* 415 */
24364
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
24365
-
24366
- "use strict";
24367
- /**
24368
- * A specialized version of `_.map` for arrays without support for iteratee
24369
- * shorthands.
24370
- *
24371
- * @private
24372
- * @param {Array} [array] The array to iterate over.
24373
- * @param {Function} iteratee The function invoked per iteration.
24374
- * @returns {Array} Returns the new mapped array.
24375
- */
24376
- function arrayMap(array, iteratee) {
24377
- var index = -1,
24378
- length = array == null ? 0 : array.length,
24379
- result = Array(length);
24380
-
24381
- while (++index < length) {
24382
- result[index] = iteratee(array[index], index, array);
24383
- }
24384
- return result;
24385
- }
24386
-
24387
- /* harmony default export */ __webpack_exports__["a"] = (arrayMap);
24388
-
24389
-
24390
- /***/ }),
24391
- /* 416 */
24392
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
24393
-
24394
- "use strict";
24395
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__baseIsEqualDeep_js__ = __webpack_require__(954);
24396
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__ = __webpack_require__(57);
24397
-
24398
-
24399
-
24400
- /**
24401
- * The base implementation of `_.isEqual` which supports partial comparisons
24402
- * and tracks traversed objects.
24403
- *
24404
- * @private
24405
- * @param {*} value The value to compare.
24406
- * @param {*} other The other value to compare.
24407
- * @param {boolean} bitmask The bitmask flags.
24408
- * 1 - Unordered comparison
24409
- * 2 - Partial comparison
24410
- * @param {Function} [customizer] The function to customize comparisons.
24411
- * @param {Object} [stack] Tracks traversed `value` and `other` objects.
24412
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
24413
- */
24414
- function baseIsEqual(value, other, bitmask, customizer, stack) {
24415
- if (value === other) {
24416
- return true;
24417
- }
24418
- if (value == null || other == null || (!Object(__WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__["a" /* default */])(value) && !Object(__WEBPACK_IMPORTED_MODULE_1__isObjectLike_js__["a" /* default */])(other))) {
24419
- return value !== value && other !== other;
24420
- }
24421
- return Object(__WEBPACK_IMPORTED_MODULE_0__baseIsEqualDeep_js__["a" /* default */])(value, other, bitmask, customizer, baseIsEqual, stack);
24422
- }
24423
-
24424
- /* harmony default export */ __webpack_exports__["a"] = (baseIsEqual);
24425
-
24426
-
24427
- /***/ }),
24428
- /* 417 */
24429
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
24430
-
24431
- "use strict";
24432
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__SetCache_js__ = __webpack_require__(955);
24433
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__arraySome_js__ = __webpack_require__(958);
24434
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__cacheHas_js__ = __webpack_require__(959);
24435
-
24436
-
24437
-
24438
-
24439
- /** Used to compose bitmasks for value comparisons. */
24440
- var COMPARE_PARTIAL_FLAG = 1,
24441
- COMPARE_UNORDERED_FLAG = 2;
24442
-
24443
- /**
24444
- * A specialized version of `baseIsEqualDeep` for arrays with support for
24445
- * partial deep comparisons.
24446
- *
24447
- * @private
24448
- * @param {Array} array The array to compare.
24449
- * @param {Array} other The other array to compare.
24450
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
24451
- * @param {Function} customizer The function to customize comparisons.
24452
- * @param {Function} equalFunc The function to determine equivalents of values.
24453
- * @param {Object} stack Tracks traversed `array` and `other` objects.
24454
- * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
24455
- */
24456
- function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
24457
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
24458
- arrLength = array.length,
24459
- othLength = other.length;
24460
-
24461
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
24462
- return false;
24463
- }
24464
- // Assume cyclic values are equal.
24465
- var stacked = stack.get(array);
24466
- if (stacked && stack.get(other)) {
24467
- return stacked == other;
24468
- }
24469
- var index = -1,
24470
- result = true,
24471
- seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new __WEBPACK_IMPORTED_MODULE_0__SetCache_js__["a" /* default */] : undefined;
24472
-
24473
- stack.set(array, other);
24474
- stack.set(other, array);
24475
-
24476
- // Ignore non-index properties.
24477
- while (++index < arrLength) {
24478
- var arrValue = array[index],
24479
- othValue = other[index];
24480
-
24481
- if (customizer) {
24482
- var compared = isPartial
24483
- ? customizer(othValue, arrValue, index, other, array, stack)
24484
- : customizer(arrValue, othValue, index, array, other, stack);
24485
- }
24486
- if (compared !== undefined) {
24487
- if (compared) {
24488
- continue;
24489
- }
24490
- result = false;
24491
- break;
24492
- }
24493
- // Recursively compare arrays (susceptible to call stack limits).
24494
- if (seen) {
24495
- if (!Object(__WEBPACK_IMPORTED_MODULE_1__arraySome_js__["a" /* default */])(other, function(othValue, othIndex) {
24496
- if (!Object(__WEBPACK_IMPORTED_MODULE_2__cacheHas_js__["a" /* default */])(seen, othIndex) &&
24497
- (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
24498
- return seen.push(othIndex);
24499
- }
24500
- })) {
24501
- result = false;
24502
- break;
24503
- }
24504
- } else if (!(
24505
- arrValue === othValue ||
24506
- equalFunc(arrValue, othValue, bitmask, customizer, stack)
24507
- )) {
24508
- result = false;
24509
- break;
24510
- }
24511
- }
24512
- stack['delete'](array);
24513
- stack['delete'](other);
24514
- return result;
24515
- }
24516
-
24517
- /* harmony default export */ __webpack_exports__["a"] = (equalArrays);
24518
-
24519
-
24520
- /***/ }),
24521
- /* 418 */
24522
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
24523
-
24524
- "use strict";
24525
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isObject_js__ = __webpack_require__(31);
24526
-
24527
-
24528
- /**
24529
- * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
24530
- *
24531
- * @private
24532
- * @param {*} value The value to check.
24533
- * @returns {boolean} Returns `true` if `value` if suitable for strict
24534
- * equality comparisons, else `false`.
24535
- */
24536
- function isStrictComparable(value) {
24537
- return value === value && !Object(__WEBPACK_IMPORTED_MODULE_0__isObject_js__["a" /* default */])(value);
24538
- }
24539
-
24540
- /* harmony default export */ __webpack_exports__["a"] = (isStrictComparable);
24541
-
24542
-
24543
- /***/ }),
24544
- /* 419 */
24545
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
24546
-
24547
- "use strict";
24548
- /**
24549
- * A specialized version of `matchesProperty` for source values suitable
24550
- * for strict equality comparisons, i.e. `===`.
24551
- *
24552
- * @private
24553
- * @param {string} key The key of the property to get.
24554
- * @param {*} srcValue The value to match.
24555
- * @returns {Function} Returns the new spec function.
24556
- */
24557
- function matchesStrictComparable(key, srcValue) {
24558
- return function(object) {
24559
- if (object == null) {
24560
- return false;
24561
- }
24562
- return object[key] === srcValue &&
24563
- (srcValue !== undefined || (key in Object(object)));
24564
- };
24565
- }
24566
-
24567
- /* harmony default export */ __webpack_exports__["a"] = (matchesStrictComparable);
24568
-
24569
-
24570
- /***/ }),
24571
- /* 420 */
24572
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
24573
-
24574
- "use strict";
24575
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__castPath_js__ = __webpack_require__(421);
24576
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__toKey_js__ = __webpack_require__(126);
24577
-
24578
-
24579
-
24580
- /**
24581
- * The base implementation of `_.get` without support for default values.
24582
- *
24583
- * @private
24584
- * @param {Object} object The object to query.
24585
- * @param {Array|string} path The path of the property to get.
24586
- * @returns {*} Returns the resolved value.
24587
- */
24588
- function baseGet(object, path) {
24589
- path = Object(__WEBPACK_IMPORTED_MODULE_0__castPath_js__["a" /* default */])(path, object);
24590
-
24591
- var index = 0,
24592
- length = path.length;
24593
-
24594
- while (object != null && index < length) {
24595
- object = object[Object(__WEBPACK_IMPORTED_MODULE_1__toKey_js__["a" /* default */])(path[index++])];
24596
- }
24597
- return (index && index == length) ? object : undefined;
24598
- }
24599
-
24600
- /* harmony default export */ __webpack_exports__["a"] = (baseGet);
24601
-
24602
-
24603
- /***/ }),
24604
- /* 421 */
24605
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
24606
-
24607
- "use strict";
24608
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__isArray_js__ = __webpack_require__(32);
24609
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__isKey_js__ = __webpack_require__(207);
24610
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__stringToPath_js__ = __webpack_require__(978);
24611
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__toString_js__ = __webpack_require__(981);
24612
-
24613
-
24614
-
24615
-
24616
-
24617
- /**
24618
- * Casts `value` to a path array if it's not one.
24619
- *
24620
- * @private
24621
- * @param {*} value The value to inspect.
24622
- * @param {Object} [object] The object to query keys on.
24623
- * @returns {Array} Returns the cast property path array.
24624
- */
24625
- function castPath(value, object) {
24626
- if (Object(__WEBPACK_IMPORTED_MODULE_0__isArray_js__["a" /* default */])(value)) {
24627
- return value;
24628
- }
24629
- return Object(__WEBPACK_IMPORTED_MODULE_1__isKey_js__["a" /* default */])(value, object) ? [value] : Object(__WEBPACK_IMPORTED_MODULE_2__stringToPath_js__["a" /* default */])(Object(__WEBPACK_IMPORTED_MODULE_3__toString_js__["a" /* default */])(value));
24630
- }
24631
-
24632
- /* harmony default export */ __webpack_exports__["a"] = (castPath);
24633
-
24634
-
24635
- /***/ }),
24636
- /* 422 */
24637
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
24638
-
24639
- "use strict";
24640
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return red; });
24641
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return pink; });
24642
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return purple; });
24643
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return deepPurple; });
24644
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return indigo; });
24645
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return blue; });
24646
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return lightBlue; });
24647
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return cyan; });
24648
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return teal; });
24649
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return green; });
24650
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return lightGreen; });
24651
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return lime; });
24652
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return yellow; });
24653
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return amber; });
24654
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return orange; });
24655
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return deepOrange; });
24656
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return brown; });
24657
- /* unused harmony export grey */
24658
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return blueGrey; });
24659
- /* unused harmony export darkText */
24660
- /* unused harmony export lightText */
24661
- /* unused harmony export darkIcons */
24662
- /* unused harmony export lightIcons */
24663
- /* unused harmony export white */
24664
- /* unused harmony export black */
24665
- var red = {"50":"#ffebee","100":"#ffcdd2","200":"#ef9a9a","300":"#e57373","400":"#ef5350","500":"#f44336","600":"#e53935","700":"#d32f2f","800":"#c62828","900":"#b71c1c","a100":"#ff8a80","a200":"#ff5252","a400":"#ff1744","a700":"#d50000"};
24666
- var pink = {"50":"#fce4ec","100":"#f8bbd0","200":"#f48fb1","300":"#f06292","400":"#ec407a","500":"#e91e63","600":"#d81b60","700":"#c2185b","800":"#ad1457","900":"#880e4f","a100":"#ff80ab","a200":"#ff4081","a400":"#f50057","a700":"#c51162"};
24667
- var purple = {"50":"#f3e5f5","100":"#e1bee7","200":"#ce93d8","300":"#ba68c8","400":"#ab47bc","500":"#9c27b0","600":"#8e24aa","700":"#7b1fa2","800":"#6a1b9a","900":"#4a148c","a100":"#ea80fc","a200":"#e040fb","a400":"#d500f9","a700":"#aa00ff"};
24668
- var deepPurple = {"50":"#ede7f6","100":"#d1c4e9","200":"#b39ddb","300":"#9575cd","400":"#7e57c2","500":"#673ab7","600":"#5e35b1","700":"#512da8","800":"#4527a0","900":"#311b92","a100":"#b388ff","a200":"#7c4dff","a400":"#651fff","a700":"#6200ea"};
24669
- var indigo = {"50":"#e8eaf6","100":"#c5cae9","200":"#9fa8da","300":"#7986cb","400":"#5c6bc0","500":"#3f51b5","600":"#3949ab","700":"#303f9f","800":"#283593","900":"#1a237e","a100":"#8c9eff","a200":"#536dfe","a400":"#3d5afe","a700":"#304ffe"};
24670
- var blue = {"50":"#e3f2fd","100":"#bbdefb","200":"#90caf9","300":"#64b5f6","400":"#42a5f5","500":"#2196f3","600":"#1e88e5","700":"#1976d2","800":"#1565c0","900":"#0d47a1","a100":"#82b1ff","a200":"#448aff","a400":"#2979ff","a700":"#2962ff"};
24671
- var lightBlue = {"50":"#e1f5fe","100":"#b3e5fc","200":"#81d4fa","300":"#4fc3f7","400":"#29b6f6","500":"#03a9f4","600":"#039be5","700":"#0288d1","800":"#0277bd","900":"#01579b","a100":"#80d8ff","a200":"#40c4ff","a400":"#00b0ff","a700":"#0091ea"};
24672
- var cyan = {"50":"#e0f7fa","100":"#b2ebf2","200":"#80deea","300":"#4dd0e1","400":"#26c6da","500":"#00bcd4","600":"#00acc1","700":"#0097a7","800":"#00838f","900":"#006064","a100":"#84ffff","a200":"#18ffff","a400":"#00e5ff","a700":"#00b8d4"};
24673
- var teal = {"50":"#e0f2f1","100":"#b2dfdb","200":"#80cbc4","300":"#4db6ac","400":"#26a69a","500":"#009688","600":"#00897b","700":"#00796b","800":"#00695c","900":"#004d40","a100":"#a7ffeb","a200":"#64ffda","a400":"#1de9b6","a700":"#00bfa5"};
24674
- var green = {"50":"#e8f5e9","100":"#c8e6c9","200":"#a5d6a7","300":"#81c784","400":"#66bb6a","500":"#4caf50","600":"#43a047","700":"#388e3c","800":"#2e7d32","900":"#1b5e20","a100":"#b9f6ca","a200":"#69f0ae","a400":"#00e676","a700":"#00c853"};
24675
- var lightGreen = {"50":"#f1f8e9","100":"#dcedc8","200":"#c5e1a5","300":"#aed581","400":"#9ccc65","500":"#8bc34a","600":"#7cb342","700":"#689f38","800":"#558b2f","900":"#33691e","a100":"#ccff90","a200":"#b2ff59","a400":"#76ff03","a700":"#64dd17"};
24676
- var lime = {"50":"#f9fbe7","100":"#f0f4c3","200":"#e6ee9c","300":"#dce775","400":"#d4e157","500":"#cddc39","600":"#c0ca33","700":"#afb42b","800":"#9e9d24","900":"#827717","a100":"#f4ff81","a200":"#eeff41","a400":"#c6ff00","a700":"#aeea00"};
24677
- var yellow = {"50":"#fffde7","100":"#fff9c4","200":"#fff59d","300":"#fff176","400":"#ffee58","500":"#ffeb3b","600":"#fdd835","700":"#fbc02d","800":"#f9a825","900":"#f57f17","a100":"#ffff8d","a200":"#ffff00","a400":"#ffea00","a700":"#ffd600"};
24678
- var amber = {"50":"#fff8e1","100":"#ffecb3","200":"#ffe082","300":"#ffd54f","400":"#ffca28","500":"#ffc107","600":"#ffb300","700":"#ffa000","800":"#ff8f00","900":"#ff6f00","a100":"#ffe57f","a200":"#ffd740","a400":"#ffc400","a700":"#ffab00"};
24679
- var orange = {"50":"#fff3e0","100":"#ffe0b2","200":"#ffcc80","300":"#ffb74d","400":"#ffa726","500":"#ff9800","600":"#fb8c00","700":"#f57c00","800":"#ef6c00","900":"#e65100","a100":"#ffd180","a200":"#ffab40","a400":"#ff9100","a700":"#ff6d00"};
24680
- var deepOrange = {"50":"#fbe9e7","100":"#ffccbc","200":"#ffab91","300":"#ff8a65","400":"#ff7043","500":"#ff5722","600":"#f4511e","700":"#e64a19","800":"#d84315","900":"#bf360c","a100":"#ff9e80","a200":"#ff6e40","a400":"#ff3d00","a700":"#dd2c00"};
24681
- var brown = {"50":"#efebe9","100":"#d7ccc8","200":"#bcaaa4","300":"#a1887f","400":"#8d6e63","500":"#795548","600":"#6d4c41","700":"#5d4037","800":"#4e342e","900":"#3e2723"};
24682
- var grey = {"50":"#fafafa","100":"#f5f5f5","200":"#eeeeee","300":"#e0e0e0","400":"#bdbdbd","500":"#9e9e9e","600":"#757575","700":"#616161","800":"#424242","900":"#212121"};
24683
- var blueGrey = {"50":"#eceff1","100":"#cfd8dc","200":"#b0bec5","300":"#90a4ae","400":"#78909c","500":"#607d8b","600":"#546e7a","700":"#455a64","800":"#37474f","900":"#263238"};
24684
- var darkText = {"primary":"rgba(0, 0, 0, 0.87)","secondary":"rgba(0, 0, 0, 0.54)","disabled":"rgba(0, 0, 0, 0.38)","dividers":"rgba(0, 0, 0, 0.12)"};
24685
- var lightText = {"primary":"rgba(255, 255, 255, 1)","secondary":"rgba(255, 255, 255, 0.7)","disabled":"rgba(255, 255, 255, 0.5)","dividers":"rgba(255, 255, 255, 0.12)"};
24686
- var darkIcons = {"active":"rgba(0, 0, 0, 0.54)","inactive":"rgba(0, 0, 0, 0.38)"};
24687
- var lightIcons = {"active":"rgba(255, 255, 255, 1)","inactive":"rgba(255, 255, 255, 0.5)"};
24688
- var white = "#ffffff";
24689
- var black = "#000000";
24690
-
24691
- /* unused harmony default export */ var _unused_webpack_default_export = ({
24692
- red: red,
24693
- pink: pink,
24694
- purple: purple,
24695
- deepPurple: deepPurple,
24696
- indigo: indigo,
24697
- blue: blue,
24698
- lightBlue: lightBlue,
24699
- cyan: cyan,
24700
- teal: teal,
24701
- green: green,
24702
- lightGreen: lightGreen,
24703
- lime: lime,
24704
- yellow: yellow,
24705
- amber: amber,
24706
- orange: orange,
24707
- deepOrange: deepOrange,
24708
- brown: brown,
24709
- grey: grey,
24710
- blueGrey: blueGrey,
24711
- darkText: darkText,
24712
- lightText: lightText,
24713
- darkIcons: darkIcons,
24714
- lightIcons: lightIcons,
24715
- white: white,
24716
- black: black
24717
- });
24718
-
24719
-
24720
- /***/ }),
24721
- /* 423 */
24722
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
24723
-
24724
- "use strict";
24725
- /* unused harmony export Chrome */
24726
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
24727
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
24728
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(2);
24729
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
24730
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss__ = __webpack_require__(8);
24731
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_reactcss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_reactcss__);
24732
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_lodash_es_merge__ = __webpack_require__(23);
24733
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__common__ = __webpack_require__(12);
24734
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__ChromeFields__ = __webpack_require__(992);
24735
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ChromePointer__ = __webpack_require__(995);
24736
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ChromePointerCircle__ = __webpack_require__(996);
24737
-
24738
-
24739
-
24740
-
24741
-
24742
-
24743
-
24744
-
24745
-
24746
-
24747
- var Chrome = function Chrome(_ref) {
24748
- var width = _ref.width,
24749
- onChange = _ref.onChange,
24750
- disableAlpha = _ref.disableAlpha,
24751
- rgb = _ref.rgb,
24752
- hsl = _ref.hsl,
24753
- hsv = _ref.hsv,
24754
- hex = _ref.hex,
24755
- renderers = _ref.renderers,
24756
- _ref$styles = _ref.styles,
24757
- passedStyles = _ref$styles === undefined ? {} : _ref$styles,
24758
- _ref$className = _ref.className,
24759
- className = _ref$className === undefined ? '' : _ref$className,
24760
- defaultView = _ref.defaultView;
24761
-
24762
- var styles = __WEBPACK_IMPORTED_MODULE_2_reactcss___default()(Object(__WEBPACK_IMPORTED_MODULE_3_lodash_es_merge__["a" /* default */])({
24763
- 'default': {
24764
- picker: {
24765
- width: width,
24766
- background: '#fff',
24767
- borderRadius: '2px',
24768
- boxShadow: '0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)',
24769
- boxSizing: 'initial',
24770
- fontFamily: 'Menlo'
24771
- },
24772
- saturation: {
24773
- width: '100%',
24774
- paddingBottom: '55%',
24775
- position: 'relative',
24776
- borderRadius: '2px 2px 0 0',
24777
- overflow: 'hidden'
24778
- },
24779
- Saturation: {
24780
- radius: '2px 2px 0 0'
24781
- },
24782
- body: {
24783
- padding: '16px 16px 12px'
24784
- },
24785
- controls: {
24786
- display: 'flex'
24787
- },
24788
- color: {
24789
- width: '32px'
24790
- },
24791
- swatch: {
24792
- marginTop: '6px',
24793
- width: '16px',
24794
- height: '16px',
24795
- borderRadius: '8px',
24796
- position: 'relative',
24797
- overflow: 'hidden'
24798
- },
24799
- active: {
24800
- absolute: '0px 0px 0px 0px',
24801
- borderRadius: '8px',
24802
- boxShadow: 'inset 0 0 0 1px rgba(0,0,0,.1)',
24803
- background: 'rgba(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ', ' + rgb.a + ')',
24804
- zIndex: '2'
24805
- },
24806
- toggles: {
24807
- flex: '1'
24808
- },
24809
- hue: {
24810
- height: '10px',
24811
- position: 'relative',
24812
- marginBottom: '8px'
24813
- },
24814
- Hue: {
24815
- radius: '2px'
24816
- },
24817
- alpha: {
24818
- height: '10px',
24819
- position: 'relative'
24820
- },
24821
- Alpha: {
24822
- radius: '2px'
24823
- }
24824
- },
24825
- 'disableAlpha': {
24826
- color: {
24827
- width: '22px'
24828
- },
24829
- alpha: {
24830
- display: 'none'
24831
- },
24832
- hue: {
24833
- marginBottom: '0px'
24834
- },
24835
- swatch: {
24836
- width: '10px',
24837
- height: '10px',
24838
- marginTop: '0px'
24839
- }
24840
- }
24841
- }, passedStyles), { disableAlpha: disableAlpha });
24842
-
24843
- return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
24844
- 'div',
24845
- { style: styles.picker, className: 'chrome-picker ' + className },
24846
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
24847
- 'div',
24848
- { style: styles.saturation },
24849
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["g" /* Saturation */], {
24850
- style: styles.Saturation,
24851
- hsl: hsl,
24852
- hsv: hsv,
24853
- pointer: __WEBPACK_IMPORTED_MODULE_7__ChromePointerCircle__["a" /* default */],
24854
- onChange: onChange
24855
- })
24856
- ),
24857
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
24858
- 'div',
24859
- { style: styles.body },
24860
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
24861
- 'div',
24862
- { style: styles.controls, className: 'flexbox-fix' },
24863
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
24864
- 'div',
24865
- { style: styles.color },
24866
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
24867
- 'div',
24868
- { style: styles.swatch },
24869
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement('div', { style: styles.active }),
24870
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["b" /* Checkboard */], { renderers: renderers })
24871
- )
24872
- ),
24873
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
24874
- 'div',
24875
- { style: styles.toggles },
24876
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
24877
- 'div',
24878
- { style: styles.hue },
24879
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["e" /* Hue */], {
24880
- style: styles.Hue,
24881
- hsl: hsl,
24882
- pointer: __WEBPACK_IMPORTED_MODULE_6__ChromePointer__["a" /* default */],
24883
- onChange: onChange
24884
- })
24885
- ),
24886
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
24887
- 'div',
24888
- { style: styles.alpha },
24889
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_4__common__["a" /* Alpha */], {
24890
- style: styles.Alpha,
24891
- rgb: rgb,
24892
- hsl: hsl,
24893
- pointer: __WEBPACK_IMPORTED_MODULE_6__ChromePointer__["a" /* default */],
24894
- renderers: renderers,
24895
- onChange: onChange
24896
- })
24897
- )
24898
- )
24899
- ),
24900
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__ChromeFields__["a" /* default */], {
24901
- rgb: rgb,
24902
- hsl: hsl,
24903
- hex: hex,
24904
- view: defaultView,
24905
- onChange: onChange,
24906
- disableAlpha: disableAlpha
24907
- })
24908
- )
24909
- );
24910
- };
24911
-
24912
- Chrome.propTypes = {
24913
- width: __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.number]),
24914
- disableAlpha: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.bool,
24915
- styles: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object,
24916
- defaultView: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.oneOf(["hex", "rgb", "hsl"])
24917
- };
24918
-
24919
- Chrome.defaultProps = {
24920
- width: 225,
24921
- disableAlpha: false,
24922
- styles: {}
24923
- };
24924
-
24925
- /* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_4__common__["c" /* ColorWrap */])(Chrome));
24926
-
24927
- /***/ }),
24928
- /* 424 */
24929
- /***/ (function(module, exports, __webpack_require__) {
24930
-
24931
- /* WEBPACK VAR INJECTION */(function(process) {// Generated by CoffeeScript 1.12.2
24932
- (function() {
24933
- var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime;
24934
-
24935
- if ((typeof performance !== "undefined" && performance !== null) && performance.now) {
24936
- module.exports = function() {
24937
- return performance.now();
24938
- };
24939
- } else if ((typeof process !== "undefined" && process !== null) && process.hrtime) {
24940
- module.exports = function() {
24941
- return (getNanoSeconds() - nodeLoadTime) / 1e6;
24942
- };
24943
- hrtime = process.hrtime;
24944
- getNanoSeconds = function() {
24945
- var hr;
24946
- hr = hrtime();
24947
- return hr[0] * 1e9 + hr[1];
24948
- };
24949
- moduleLoadTime = getNanoSeconds();
24950
- upTime = process.uptime() * 1e9;
24951
- nodeLoadTime = moduleLoadTime - upTime;
24952
- } else if (Date.now) {
24953
- module.exports = function() {
24954
- return Date.now() - loadTime;
24955
- };
24956
- loadTime = Date.now();
24957
- } else {
24958
- module.exports = function() {
24959
- return new Date().getTime() - loadTime;
24960
- };
24961
- loadTime = new Date().getTime();
24962
- }
24963
-
24964
- }).call(this);
24965
-
24966
- //# sourceMappingURL=performance-now.js.map
24967
-
24968
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
24969
-
24970
- /***/ }),
24971
- /* 425 */
24972
- /***/ (function(module, exports, __webpack_require__) {
24973
-
24974
- "use strict";
24975
-
24976
-
24977
- 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); }
24978
-
24979
- var _react = _interopRequireWildcard(__webpack_require__(0));
24980
-
24981
- var _reactDom = _interopRequireDefault(__webpack_require__(11));
24982
-
24983
- var _reactRouterDom = __webpack_require__(42);
24984
-
24985
- var _queryString = _interopRequireDefault(__webpack_require__(26));
24986
-
24987
- var _QuadsAdCreateRouter = _interopRequireDefault(__webpack_require__(211));
24988
-
24989
- __webpack_require__(542);
24990
-
24991
- var _QuadsAdmin = _interopRequireDefault(__webpack_require__(543));
24992
-
24993
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
24994
-
24995
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
24996
-
24997
- 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; }
24998
-
24999
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25000
-
25001
- 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); } }
25002
-
25003
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
25004
-
25005
- 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); }
25006
-
25007
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
25008
-
25009
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
25010
-
25011
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
25012
-
25013
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
25014
-
25015
- 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; } }
25016
-
25017
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
25018
-
25019
- var QuadsAdRootComponent = /*#__PURE__*/function (_Component) {
25020
- _inherits(QuadsAdRootComponent, _Component);
25021
-
25022
- var _super = _createSuper(QuadsAdRootComponent);
25023
-
25024
- function QuadsAdRootComponent() {
25025
- _classCallCheck(this, QuadsAdRootComponent);
25026
-
25027
- return _super.apply(this, arguments);
25028
- }
25029
-
25030
- _createClass(QuadsAdRootComponent, [{
25031
- key: "render",
25032
- value: function render() {
25033
- 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", {
25034
- className: "quads-segment"
25035
- }, quads_localize_data.demo_test, /*#__PURE__*/_react["default"].createElement(_reactRouterDom.Switch, null, /*#__PURE__*/_react["default"].createElement(_reactRouterDom.Route, {
25036
- render: function render(props) {
25037
- var page = _queryString["default"].parse(window.location.search);
25038
-
25039
- if (typeof page.path != 'undefined') {
25040
- if (page.path.includes('settings') || page.path.includes('reports')) {
25041
- return /*#__PURE__*/_react["default"].createElement(_QuadsAdmin["default"], props);
25042
- } else if (page.path.includes('wizard')) {
25043
- return /*#__PURE__*/_react["default"].createElement(_QuadsAdCreateRouter["default"], props);
25044
- } else {
25045
- return 'Page not found';
25046
- }
25047
- } else {
25048
- return /*#__PURE__*/_react["default"].createElement(_QuadsAdmin["default"], props);
25049
- }
25050
- }
25051
- }))))));
25052
- }
25053
- }]);
25054
-
25055
- return QuadsAdRootComponent;
25056
- }(_react.Component);
25057
-
25058
- _reactDom["default"].render( /*#__PURE__*/_react["default"].createElement(QuadsAdRootComponent, null), document.getElementById('quads-ad-content'));
25059
-
25060
- /***/ }),
25061
- /* 426 */
25062
- /***/ (function(module, exports, __webpack_require__) {
25063
-
25064
- "use strict";
25065
- /** @license React v16.14.0
25066
- * react.production.min.js
25067
- *
25068
- * Copyright (c) Facebook, Inc. and its affiliates.
25069
- *
25070
- * This source code is licensed under the MIT license found in the
25071
- * LICENSE file in the root directory of this source tree.
25072
- */
25073
-
25074
- var l=__webpack_require__(59),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,z=n?Symbol.for("react.memo"):60115,A=n?Symbol.for("react.lazy"):
25075
- 60116,B="function"===typeof Symbol&&Symbol.iterator;function C(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."}
25076
- var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E={};function F(a,b,c){this.props=a;this.context=b;this.refs=E;this.updater=c||D}F.prototype.isReactComponent={};F.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(C(85));this.updater.enqueueSetState(this,a,b,"setState")};F.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};
25077
- function G(){}G.prototype=F.prototype;function H(a,b,c){this.props=a;this.context=b;this.refs=E;this.updater=c||D}var I=H.prototype=new G;I.constructor=H;l(I,F.prototype);I.isPureReactComponent=!0;var J={current:null},K=Object.prototype.hasOwnProperty,L={key:!0,ref:!0,__self:!0,__source:!0};
25078
- function M(a,b,c){var e,d={},g=null,k=null;if(null!=b)for(e in void 0!==b.ref&&(k=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 h=Array(f),m=0;m<f;m++)h[m]=arguments[m+2];d.children=h}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:k,props:d,_owner:J.current}}
25079
- function N(a,b){return{$$typeof:p,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(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 P=/\/+/g,Q=[];function R(a,b,c,e){if(Q.length){var d=Q.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}}
25080
- function S(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>Q.length&&Q.push(a)}
25081
- function T(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?"."+U(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var k=0;k<a.length;k++){d=a[k];var f=b+U(d,k);g+=T(d,f,c,e)}else if(null===a||"object"!==typeof a?f=null:(f=B&&a[B]||a["@@iterator"],f="function"===typeof f?f:null),"function"===typeof f)for(a=f.call(a),k=
25082
- 0;!(d=a.next()).done;)d=d.value,f=b+U(d,k++),g+=T(d,f,c,e);else if("object"===d)throw c=""+a,Error(C(31,"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return g}function V(a,b,c){return null==a?0:T(a,"",b,c)}function U(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function W(a,b){a.func.call(a.context,b,a.count++)}
25083
- function aa(a,b,c){var e=a.result,d=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?X(a,e,c,function(a){return a}):null!=a&&(O(a)&&(a=N(a,d+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+c)),e.push(a))}function X(a,b,c,e,d){var g="";null!=c&&(g=(""+c).replace(P,"$&/")+"/");b=R(b,g,e,d);V(a,aa,b);S(b)}var Y={current:null};function Z(){var a=Y.current;if(null===a)throw Error(C(321));return a}
25084
- var ba={ReactCurrentDispatcher:Y,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:J,IsSomeRendererActing:{current:!1},assign:l};exports.Children={map:function(a,b,c){if(null==a)return a;var e=[];X(a,e,null,b,c);return e},forEach:function(a,b,c){if(null==a)return a;b=R(null,null,b,c);V(a,W,b);S(b)},count:function(a){return V(a,function(){return null},null)},toArray:function(a){var b=[];X(a,b,null,function(a){return a});return b},only:function(a){if(!O(a))throw Error(C(143));return a}};
25085
- exports.Component=F;exports.Fragment=r;exports.Profiler=u;exports.PureComponent=H;exports.StrictMode=t;exports.Suspense=y;exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ba;
25086
- exports.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(C(267,a));var e=l({},a.props),d=a.key,g=a.ref,k=a._owner;if(null!=b){void 0!==b.ref&&(g=b.ref,k=J.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var f=a.type.defaultProps;for(h in b)K.call(b,h)&&!L.hasOwnProperty(h)&&(e[h]=void 0===b[h]&&void 0!==f?f[h]:b[h])}var h=arguments.length-2;if(1===h)e.children=c;else if(1<h){f=Array(h);for(var m=0;m<h;m++)f[m]=arguments[m+2];e.children=f}return{$$typeof:p,type:a.type,
25087
- key:d,ref:g,props:e,_owner:k}};exports.createContext=function(a,b){void 0===b&&(b=null);a={$$typeof:w,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:v,_context:a};return a.Consumer=a};exports.createElement=M;exports.createFactory=function(a){var b=M.bind(null,a);b.type=a;return b};exports.createRef=function(){return{current:null}};exports.forwardRef=function(a){return{$$typeof:x,render:a}};exports.isValidElement=O;
25088
- exports.lazy=function(a){return{$$typeof:A,_ctor:a,_status:-1,_result:null}};exports.memo=function(a,b){return{$$typeof:z,type:a,compare:void 0===b?null:b}};exports.useCallback=function(a,b){return Z().useCallback(a,b)};exports.useContext=function(a,b){return Z().useContext(a,b)};exports.useDebugValue=function(){};exports.useEffect=function(a,b){return Z().useEffect(a,b)};exports.useImperativeHandle=function(a,b,c){return Z().useImperativeHandle(a,b,c)};
25089
- exports.useLayoutEffect=function(a,b){return Z().useLayoutEffect(a,b)};exports.useMemo=function(a,b){return Z().useMemo(a,b)};exports.useReducer=function(a,b,c){return Z().useReducer(a,b,c)};exports.useRef=function(a){return Z().useRef(a)};exports.useState=function(a){return Z().useState(a)};exports.version="16.14.0";
25090
-
25091
-
25092
- /***/ }),
25093
- /* 427 */
25094
- /***/ (function(module, exports, __webpack_require__) {
25095
-
25096
- "use strict";
25097
- /* WEBPACK VAR INJECTION */(function(process) {/** @license React v16.14.0
25098
- * react.development.js
25099
- *
25100
- * Copyright (c) Facebook, Inc. and its affiliates.
25101
- *
25102
- * This source code is licensed under the MIT license found in the
25103
- * LICENSE file in the root directory of this source tree.
25104
- */
25105
-
25106
-
25107
-
25108
-
25109
-
25110
- if (process.env.NODE_ENV !== "production") {
25111
- (function() {
25112
- 'use strict';
25113
-
25114
- var _assign = __webpack_require__(59);
25115
- var checkPropTypes = __webpack_require__(127);
25116
-
25117
- var ReactVersion = '16.14.0';
25118
-
25119
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
25120
- // nor polyfill, then a plain number is used for performance.
25121
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
25122
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
25123
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
25124
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
25125
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
25126
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
25127
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
25128
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
25129
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
25130
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
25131
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
25132
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
25133
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
25134
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
25135
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
25136
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
25137
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
25138
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
25139
- var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
25140
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
25141
- function getIteratorFn(maybeIterable) {
25142
- if (maybeIterable === null || typeof maybeIterable !== 'object') {
25143
- return null;
25144
- }
25145
-
25146
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
25147
-
25148
- if (typeof maybeIterator === 'function') {
25149
- return maybeIterator;
25150
- }
25151
-
25152
- return null;
25153
- }
25154
-
25155
- /**
25156
- * Keeps track of the current dispatcher.
25157
- */
25158
- var ReactCurrentDispatcher = {
25159
- /**
25160
- * @internal
25161
- * @type {ReactComponent}
25162
- */
25163
- current: null
25164
- };
25165
-
25166
- /**
25167
- * Keeps track of the current batch's configuration such as how long an update
25168
- * should suspend for if it needs to.
25169
- */
25170
- var ReactCurrentBatchConfig = {
25171
- suspense: null
25172
- };
25173
-
25174
- /**
25175
- * Keeps track of the current owner.
25176
- *
25177
- * The current owner is the component who should own any components that are
25178
- * currently being constructed.
25179
- */
25180
- var ReactCurrentOwner = {
25181
- /**
25182
- * @internal
25183
- * @type {ReactComponent}
25184
- */
25185
- current: null
25186
- };
25187
-
25188
- var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
25189
- function describeComponentFrame (name, source, ownerName) {
25190
- var sourceInfo = '';
25191
-
25192
- if (source) {
25193
- var path = source.fileName;
25194
- var fileName = path.replace(BEFORE_SLASH_RE, '');
25195
-
25196
- {
25197
- // In DEV, include code for a common special case:
25198
- // prefer "folder/index.js" instead of just "index.js".
25199
- if (/^index\./.test(fileName)) {
25200
- var match = path.match(BEFORE_SLASH_RE);
25201
-
25202
- if (match) {
25203
- var pathBeforeSlash = match[1];
25204
-
25205
- if (pathBeforeSlash) {
25206
- var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
25207
- fileName = folderName + '/' + fileName;
25208
- }
25209
- }
25210
- }
25211
- }
25212
-
25213
- sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
25214
- } else if (ownerName) {
25215
- sourceInfo = ' (created by ' + ownerName + ')';
25216
- }
25217
-
25218
- return '\n in ' + (name || 'Unknown') + sourceInfo;
25219
- }
25220
-
25221
- var Resolved = 1;
25222
- function refineResolvedLazyComponent(lazyComponent) {
25223
- return lazyComponent._status === Resolved ? lazyComponent._result : null;
25224
- }
25225
-
25226
- function getWrappedName(outerType, innerType, wrapperName) {
25227
- var functionName = innerType.displayName || innerType.name || '';
25228
- return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
25229
- }
25230
-
25231
- function getComponentName(type) {
25232
- if (type == null) {
25233
- // Host root, text node or just invalid type.
25234
- return null;
25235
- }
25236
-
25237
- {
25238
- if (typeof type.tag === 'number') {
25239
- error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
25240
- }
25241
- }
25242
-
25243
- if (typeof type === 'function') {
25244
- return type.displayName || type.name || null;
25245
- }
25246
-
25247
- if (typeof type === 'string') {
25248
- return type;
25249
- }
25250
-
25251
- switch (type) {
25252
- case REACT_FRAGMENT_TYPE:
25253
- return 'Fragment';
25254
-
25255
- case REACT_PORTAL_TYPE:
25256
- return 'Portal';
25257
-
25258
- case REACT_PROFILER_TYPE:
25259
- return "Profiler";
25260
-
25261
- case REACT_STRICT_MODE_TYPE:
25262
- return 'StrictMode';
25263
-
25264
- case REACT_SUSPENSE_TYPE:
25265
- return 'Suspense';
25266
-
25267
- case REACT_SUSPENSE_LIST_TYPE:
25268
- return 'SuspenseList';
25269
- }
25270
-
25271
- if (typeof type === 'object') {
25272
- switch (type.$$typeof) {
25273
- case REACT_CONTEXT_TYPE:
25274
- return 'Context.Consumer';
25275
-
25276
- case REACT_PROVIDER_TYPE:
25277
- return 'Context.Provider';
25278
-
25279
- case REACT_FORWARD_REF_TYPE:
25280
- return getWrappedName(type, type.render, 'ForwardRef');
25281
-
25282
- case REACT_MEMO_TYPE:
25283
- return getComponentName(type.type);
25284
-
25285
- case REACT_BLOCK_TYPE:
25286
- return getComponentName(type.render);
25287
-
25288
- case REACT_LAZY_TYPE:
25289
- {
25290
- var thenable = type;
25291
- var resolvedThenable = refineResolvedLazyComponent(thenable);
25292
-
25293
- if (resolvedThenable) {
25294
- return getComponentName(resolvedThenable);
25295
- }
25296
-
25297
- break;
25298
- }
25299
- }
25300
- }
25301
-
25302
- return null;
25303
- }
25304
-
25305
- var ReactDebugCurrentFrame = {};
25306
- var currentlyValidatingElement = null;
25307
- function setCurrentlyValidatingElement(element) {
25308
- {
25309
- currentlyValidatingElement = element;
25310
- }
25311
- }
25312
-
25313
- {
25314
- // Stack implementation injected by the current renderer.
25315
- ReactDebugCurrentFrame.getCurrentStack = null;
25316
-
25317
- ReactDebugCurrentFrame.getStackAddendum = function () {
25318
- var stack = ''; // Add an extra top frame while an element is being validated
25319
-
25320
- if (currentlyValidatingElement) {
25321
- var name = getComponentName(currentlyValidatingElement.type);
25322
- var owner = currentlyValidatingElement._owner;
25323
- stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
25324
- } // Delegate to the injected renderer-specific implementation
25325
-
25326
-
25327
- var impl = ReactDebugCurrentFrame.getCurrentStack;
25328
-
25329
- if (impl) {
25330
- stack += impl() || '';
25331
- }
25332
-
25333
- return stack;
25334
- };
25335
- }
25336
-
25337
- /**
25338
- * Used by act() to track whether you're inside an act() scope.
25339
- */
25340
- var IsSomeRendererActing = {
25341
- current: false
25342
- };
25343
-
25344
- var ReactSharedInternals = {
25345
- ReactCurrentDispatcher: ReactCurrentDispatcher,
25346
- ReactCurrentBatchConfig: ReactCurrentBatchConfig,
25347
- ReactCurrentOwner: ReactCurrentOwner,
25348
- IsSomeRendererActing: IsSomeRendererActing,
25349
- // Used by renderers to avoid bundling object-assign twice in UMD bundles:
25350
- assign: _assign
25351
- };
25352
-
25353
- {
25354
- _assign(ReactSharedInternals, {
25355
- // These should not be included in production.
25356
- ReactDebugCurrentFrame: ReactDebugCurrentFrame,
25357
- // Shim for React DOM 16.0.0 which still destructured (but not used) this.
25358
- // TODO: remove in React 17.0.
25359
- ReactComponentTreeHook: {}
25360
- });
25361
- }
25362
-
25363
- // by calls to these methods by a Babel plugin.
25364
- //
25365
- // In PROD (or in packages without access to React internals),
25366
- // they are left as they are instead.
25367
-
25368
- function warn(format) {
25369
- {
25370
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
25371
- args[_key - 1] = arguments[_key];
25372
- }
25373
-
25374
- printWarning('warn', format, args);
25375
- }
25376
- }
25377
- function error(format) {
25378
- {
25379
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
25380
- args[_key2 - 1] = arguments[_key2];
25381
- }
25382
-
25383
- printWarning('error', format, args);
25384
- }
25385
- }
25386
-
25387
- function printWarning(level, format, args) {
25388
- // When changing this logic, you might want to also
25389
- // update consoleWithStackDev.www.js as well.
25390
- {
25391
- var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\n in') === 0;
25392
-
25393
- if (!hasExistingStack) {
25394
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
25395
- var stack = ReactDebugCurrentFrame.getStackAddendum();
25396
-
25397
- if (stack !== '') {
25398
- format += '%s';
25399
- args = args.concat([stack]);
25400
- }
25401
- }
25402
-
25403
- var argsWithFormat = args.map(function (item) {
25404
- return '' + item;
25405
- }); // Careful: RN currently depends on this prefix
25406
-
25407
- argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
25408
- // breaks IE9: https://github.com/facebook/react/issues/13610
25409
- // eslint-disable-next-line react-internal/no-production-logging
25410
-
25411
- Function.prototype.apply.call(console[level], console, argsWithFormat);
25412
-
25413
- try {
25414
- // --- Welcome to debugging React ---
25415
- // This error was thrown as a convenience so that you can use this stack
25416
- // to find the callsite that caused this warning to fire.
25417
- var argIndex = 0;
25418
- var message = 'Warning: ' + format.replace(/%s/g, function () {
25419
- return args[argIndex++];
25420
- });
25421
- throw new Error(message);
25422
- } catch (x) {}
25423
- }
25424
- }
25425
-
25426
- var didWarnStateUpdateForUnmountedComponent = {};
25427
-
25428
- function warnNoop(publicInstance, callerName) {
25429
- {
25430
- var _constructor = publicInstance.constructor;
25431
- var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
25432
- var warningKey = componentName + "." + callerName;
25433
-
25434
- if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
25435
- return;
25436
- }
25437
-
25438
- error("Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);
25439
-
25440
- didWarnStateUpdateForUnmountedComponent[warningKey] = true;
25441
- }
25442
- }
25443
- /**
25444
- * This is the abstract API for an update queue.
25445
- */
25446
-
25447
-
25448
- var ReactNoopUpdateQueue = {
25449
- /**
25450
- * Checks whether or not this composite component is mounted.
25451
- * @param {ReactClass} publicInstance The instance we want to test.
25452
- * @return {boolean} True if mounted, false otherwise.
25453
- * @protected
25454
- * @final
25455
- */
25456
- isMounted: function (publicInstance) {
25457
- return false;
25458
- },
25459
-
25460
- /**
25461
- * Forces an update. This should only be invoked when it is known with
25462
- * certainty that we are **not** in a DOM transaction.
25463
- *
25464
- * You may want to call this when you know that some deeper aspect of the
25465
- * component's state has changed but `setState` was not called.
25466
- *
25467
- * This will not invoke `shouldComponentUpdate`, but it will invoke
25468
- * `componentWillUpdate` and `componentDidUpdate`.
25469
- *
25470
- * @param {ReactClass} publicInstance The instance that should rerender.
25471
- * @param {?function} callback Called after component is updated.
25472
- * @param {?string} callerName name of the calling function in the public API.
25473
- * @internal
25474
- */
25475
- enqueueForceUpdate: function (publicInstance, callback, callerName) {
25476
- warnNoop(publicInstance, 'forceUpdate');
25477
- },
25478
-
25479
- /**
25480
- * Replaces all of the state. Always use this or `setState` to mutate state.
25481
- * You should treat `this.state` as immutable.
25482
- *
25483
- * There is no guarantee that `this.state` will be immediately updated, so
25484
- * accessing `this.state` after calling this method may return the old value.
25485
- *
25486
- * @param {ReactClass} publicInstance The instance that should rerender.
25487
- * @param {object} completeState Next state.
25488
- * @param {?function} callback Called after component is updated.
25489
- * @param {?string} callerName name of the calling function in the public API.
25490
- * @internal
25491
- */
25492
- enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
25493
- warnNoop(publicInstance, 'replaceState');
25494
- },
25495
-
25496
- /**
25497
- * Sets a subset of the state. This only exists because _pendingState is
25498
- * internal. This provides a merging strategy that is not available to deep
25499
- * properties which is confusing. TODO: Expose pendingState or don't use it
25500
- * during the merge.
25501
- *
25502
- * @param {ReactClass} publicInstance The instance that should rerender.
25503
- * @param {object} partialState Next partial state to be merged with state.
25504
- * @param {?function} callback Called after component is updated.
25505
- * @param {?string} Name of the calling function in the public API.
25506
- * @internal
25507
- */
25508
- enqueueSetState: function (publicInstance, partialState, callback, callerName) {
25509
- warnNoop(publicInstance, 'setState');
25510
- }
25511
- };
25512
-
25513
- var emptyObject = {};
25514
-
25515
- {
25516
- Object.freeze(emptyObject);
25517
- }
25518
- /**
25519
- * Base class helpers for the updating state of a component.
25520
- */
25521
-
25522
-
25523
- function Component(props, context, updater) {
25524
- this.props = props;
25525
- this.context = context; // If a component has string refs, we will assign a different object later.
25526
-
25527
- this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
25528
- // renderer.
25529
-
25530
- this.updater = updater || ReactNoopUpdateQueue;
25531
- }
25532
-
25533
- Component.prototype.isReactComponent = {};
25534
- /**
25535
- * Sets a subset of the state. Always use this to mutate
25536
- * state. You should treat `this.state` as immutable.
25537
- *
25538
- * There is no guarantee that `this.state` will be immediately updated, so
25539
- * accessing `this.state` after calling this method may return the old value.
25540
- *
25541
- * There is no guarantee that calls to `setState` will run synchronously,
25542
- * as they may eventually be batched together. You can provide an optional
25543
- * callback that will be executed when the call to setState is actually
25544
- * completed.
25545
- *
25546
- * When a function is provided to setState, it will be called at some point in
25547
- * the future (not synchronously). It will be called with the up to date
25548
- * component arguments (state, props, context). These values can be different
25549
- * from this.* because your function may be called after receiveProps but before
25550
- * shouldComponentUpdate, and this new state, props, and context will not yet be
25551
- * assigned to this.
25552
- *
25553
- * @param {object|function} partialState Next partial state or function to
25554
- * produce next partial state to be merged with current state.
25555
- * @param {?function} callback Called after state is updated.
25556
- * @final
25557
- * @protected
25558
- */
25559
-
25560
- Component.prototype.setState = function (partialState, callback) {
25561
- if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
25562
- {
25563
- throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." );
25564
- }
25565
- }
25566
-
25567
- this.updater.enqueueSetState(this, partialState, callback, 'setState');
25568
- };
25569
- /**
25570
- * Forces an update. This should only be invoked when it is known with
25571
- * certainty that we are **not** in a DOM transaction.
25572
- *
25573
- * You may want to call this when you know that some deeper aspect of the
25574
- * component's state has changed but `setState` was not called.
25575
- *
25576
- * This will not invoke `shouldComponentUpdate`, but it will invoke
25577
- * `componentWillUpdate` and `componentDidUpdate`.
25578
- *
25579
- * @param {?function} callback Called after update is complete.
25580
- * @final
25581
- * @protected
25582
- */
25583
-
25584
-
25585
- Component.prototype.forceUpdate = function (callback) {
25586
- this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
25587
- };
25588
- /**
25589
- * Deprecated APIs. These APIs used to exist on classic React classes but since
25590
- * we would like to deprecate them, we're not going to move them over to this
25591
- * modern base class. Instead, we define a getter that warns if it's accessed.
25592
- */
25593
-
25594
-
25595
- {
25596
- var deprecatedAPIs = {
25597
- isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
25598
- replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
25599
- };
25600
-
25601
- var defineDeprecationWarning = function (methodName, info) {
25602
- Object.defineProperty(Component.prototype, methodName, {
25603
- get: function () {
25604
- warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
25605
-
25606
- return undefined;
25607
- }
25608
- });
25609
- };
25610
-
25611
- for (var fnName in deprecatedAPIs) {
25612
- if (deprecatedAPIs.hasOwnProperty(fnName)) {
25613
- defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
25614
- }
25615
- }
25616
- }
25617
-
25618
- function ComponentDummy() {}
25619
-
25620
- ComponentDummy.prototype = Component.prototype;
25621
- /**
25622
- * Convenience component with default shallow equality check for sCU.
25623
- */
25624
-
25625
- function PureComponent(props, context, updater) {
25626
- this.props = props;
25627
- this.context = context; // If a component has string refs, we will assign a different object later.
25628
-
25629
- this.refs = emptyObject;
25630
- this.updater = updater || ReactNoopUpdateQueue;
25631
- }
25632
-
25633
- var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
25634
- pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.
25635
-
25636
- _assign(pureComponentPrototype, Component.prototype);
25637
-
25638
- pureComponentPrototype.isPureReactComponent = true;
25639
-
25640
- // an immutable object with a single mutable value
25641
- function createRef() {
25642
- var refObject = {
25643
- current: null
25644
- };
25645
-
25646
- {
25647
- Object.seal(refObject);
25648
- }
25649
-
25650
- return refObject;
25651
- }
25652
-
25653
- var hasOwnProperty = Object.prototype.hasOwnProperty;
25654
- var RESERVED_PROPS = {
25655
- key: true,
25656
- ref: true,
25657
- __self: true,
25658
- __source: true
25659
- };
25660
- var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
25661
-
25662
- {
25663
- didWarnAboutStringRefs = {};
25664
- }
25665
-
25666
- function hasValidRef(config) {
25667
- {
25668
- if (hasOwnProperty.call(config, 'ref')) {
25669
- var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
25670
-
25671
- if (getter && getter.isReactWarning) {
25672
- return false;
25673
- }
25674
- }
25675
- }
25676
-
25677
- return config.ref !== undefined;
25678
- }
25679
-
25680
- function hasValidKey(config) {
25681
- {
25682
- if (hasOwnProperty.call(config, 'key')) {
25683
- var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
25684
-
25685
- if (getter && getter.isReactWarning) {
25686
- return false;
25687
- }
25688
- }
25689
- }
25690
-
25691
- return config.key !== undefined;
25692
- }
25693
-
25694
- function defineKeyPropWarningGetter(props, displayName) {
25695
- var warnAboutAccessingKey = function () {
25696
- {
25697
- if (!specialPropKeyWarningShown) {
25698
- specialPropKeyWarningShown = true;
25699
-
25700
- error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
25701
- }
25702
- }
25703
- };
25704
-
25705
- warnAboutAccessingKey.isReactWarning = true;
25706
- Object.defineProperty(props, 'key', {
25707
- get: warnAboutAccessingKey,
25708
- configurable: true
25709
- });
25710
- }
25711
-
25712
- function defineRefPropWarningGetter(props, displayName) {
25713
- var warnAboutAccessingRef = function () {
25714
- {
25715
- if (!specialPropRefWarningShown) {
25716
- specialPropRefWarningShown = true;
25717
-
25718
- error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
25719
- }
25720
- }
25721
- };
25722
-
25723
- warnAboutAccessingRef.isReactWarning = true;
25724
- Object.defineProperty(props, 'ref', {
25725
- get: warnAboutAccessingRef,
25726
- configurable: true
25727
- });
25728
- }
25729
-
25730
- function warnIfStringRefCannotBeAutoConverted(config) {
25731
- {
25732
- if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
25733
- var componentName = getComponentName(ReactCurrentOwner.current.type);
25734
-
25735
- if (!didWarnAboutStringRefs[componentName]) {
25736
- error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://fb.me/react-strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config.ref);
25737
-
25738
- didWarnAboutStringRefs[componentName] = true;
25739
- }
25740
- }
25741
- }
25742
- }
25743
- /**
25744
- * Factory method to create a new React element. This no longer adheres to
25745
- * the class pattern, so do not use new to call it. Also, instanceof check
25746
- * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
25747
- * if something is a React Element.
25748
- *
25749
- * @param {*} type
25750
- * @param {*} props
25751
- * @param {*} key
25752
- * @param {string|object} ref
25753
- * @param {*} owner
25754
- * @param {*} self A *temporary* helper to detect places where `this` is
25755
- * different from the `owner` when React.createElement is called, so that we
25756
- * can warn. We want to get rid of owner and replace string `ref`s with arrow
25757
- * functions, and as long as `this` and owner are the same, there will be no
25758
- * change in behavior.
25759
- * @param {*} source An annotation object (added by a transpiler or otherwise)
25760
- * indicating filename, line number, and/or other information.
25761
- * @internal
25762
- */
25763
-
25764
-
25765
- var ReactElement = function (type, key, ref, self, source, owner, props) {
25766
- var element = {
25767
- // This tag allows us to uniquely identify this as a React Element
25768
- $$typeof: REACT_ELEMENT_TYPE,
25769
- // Built-in properties that belong on the element
25770
- type: type,
25771
- key: key,
25772
- ref: ref,
25773
- props: props,
25774
- // Record the component responsible for creating this element.
25775
- _owner: owner
25776
- };
25777
-
25778
- {
25779
- // The validation flag is currently mutative. We put it on
25780
- // an external backing store so that we can freeze the whole object.
25781
- // This can be replaced with a WeakMap once they are implemented in
25782
- // commonly used development environments.
25783
- element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
25784
- // the validation flag non-enumerable (where possible, which should
25785
- // include every environment we run tests in), so the test framework
25786
- // ignores it.
25787
-
25788
- Object.defineProperty(element._store, 'validated', {
25789
- configurable: false,
25790
- enumerable: false,
25791
- writable: true,
25792
- value: false
25793
- }); // self and source are DEV only properties.
25794
-
25795
- Object.defineProperty(element, '_self', {
25796
- configurable: false,
25797
- enumerable: false,
25798
- writable: false,
25799
- value: self
25800
- }); // Two elements created in two different places should be considered
25801
- // equal for testing purposes and therefore we hide it from enumeration.
25802
-
25803
- Object.defineProperty(element, '_source', {
25804
- configurable: false,
25805
- enumerable: false,
25806
- writable: false,
25807
- value: source
25808
- });
25809
-
25810
- if (Object.freeze) {
25811
- Object.freeze(element.props);
25812
- Object.freeze(element);
25813
- }
25814
- }
25815
-
25816
- return element;
25817
- };
25818
- /**
25819
- * Create and return a new ReactElement of the given type.
25820
- * See https://reactjs.org/docs/react-api.html#createelement
25821
- */
25822
-
25823
- function createElement(type, config, children) {
25824
- var propName; // Reserved names are extracted
25825
-
25826
- var props = {};
25827
- var key = null;
25828
- var ref = null;
25829
- var self = null;
25830
- var source = null;
25831
-
25832
- if (config != null) {
25833
- if (hasValidRef(config)) {
25834
- ref = config.ref;
25835
-
25836
- {
25837
- warnIfStringRefCannotBeAutoConverted(config);
25838
- }
25839
- }
25840
-
25841
- if (hasValidKey(config)) {
25842
- key = '' + config.key;
25843
- }
25844
-
25845
- self = config.__self === undefined ? null : config.__self;
25846
- source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object
25847
-
25848
- for (propName in config) {
25849
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
25850
- props[propName] = config[propName];
25851
- }
25852
- }
25853
- } // Children can be more than one argument, and those are transferred onto
25854
- // the newly allocated props object.
25855
-
25856
-
25857
- var childrenLength = arguments.length - 2;
25858
-
25859
- if (childrenLength === 1) {
25860
- props.children = children;
25861
- } else if (childrenLength > 1) {
25862
- var childArray = Array(childrenLength);
25863
-
25864
- for (var i = 0; i < childrenLength; i++) {
25865
- childArray[i] = arguments[i + 2];
25866
- }
25867
-
25868
- {
25869
- if (Object.freeze) {
25870
- Object.freeze(childArray);
25871
- }
25872
- }
25873
-
25874
- props.children = childArray;
25875
- } // Resolve default props
25876
-
25877
-
25878
- if (type && type.defaultProps) {
25879
- var defaultProps = type.defaultProps;
25880
-
25881
- for (propName in defaultProps) {
25882
- if (props[propName] === undefined) {
25883
- props[propName] = defaultProps[propName];
25884
- }
25885
- }
25886
- }
25887
-
25888
- {
25889
- if (key || ref) {
25890
- var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
25891
-
25892
- if (key) {
25893
- defineKeyPropWarningGetter(props, displayName);
25894
- }
25895
-
25896
- if (ref) {
25897
- defineRefPropWarningGetter(props, displayName);
25898
- }
25899
- }
25900
- }
25901
-
25902
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
25903
- }
25904
- function cloneAndReplaceKey(oldElement, newKey) {
25905
- var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
25906
- return newElement;
25907
- }
25908
- /**
25909
- * Clone and return a new ReactElement using element as the starting point.
25910
- * See https://reactjs.org/docs/react-api.html#cloneelement
25911
- */
25912
-
25913
- function cloneElement(element, config, children) {
25914
- if (!!(element === null || element === undefined)) {
25915
- {
25916
- throw Error( "React.cloneElement(...): The argument must be a React element, but you passed " + element + "." );
25917
- }
25918
- }
25919
-
25920
- var propName; // Original props are copied
25921
-
25922
- var props = _assign({}, element.props); // Reserved names are extracted
25923
-
25924
-
25925
- var key = element.key;
25926
- var ref = element.ref; // Self is preserved since the owner is preserved.
25927
-
25928
- var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a
25929
- // transpiler, and the original source is probably a better indicator of the
25930
- // true owner.
25931
-
25932
- var source = element._source; // Owner will be preserved, unless ref is overridden
25933
-
25934
- var owner = element._owner;
25935
-
25936
- if (config != null) {
25937
- if (hasValidRef(config)) {
25938
- // Silently steal the ref from the parent.
25939
- ref = config.ref;
25940
- owner = ReactCurrentOwner.current;
25941
- }
25942
-
25943
- if (hasValidKey(config)) {
25944
- key = '' + config.key;
25945
- } // Remaining properties override existing props
25946
-
25947
-
25948
- var defaultProps;
25949
-
25950
- if (element.type && element.type.defaultProps) {
25951
- defaultProps = element.type.defaultProps;
25952
- }
25953
-
25954
- for (propName in config) {
25955
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
25956
- if (config[propName] === undefined && defaultProps !== undefined) {
25957
- // Resolve default props
25958
- props[propName] = defaultProps[propName];
25959
- } else {
25960
- props[propName] = config[propName];
25961
- }
25962
- }
25963
- }
25964
- } // Children can be more than one argument, and those are transferred onto
25965
- // the newly allocated props object.
25966
-
25967
-
25968
- var childrenLength = arguments.length - 2;
25969
-
25970
- if (childrenLength === 1) {
25971
- props.children = children;
25972
- } else if (childrenLength > 1) {
25973
- var childArray = Array(childrenLength);
25974
-
25975
- for (var i = 0; i < childrenLength; i++) {
25976
- childArray[i] = arguments[i + 2];
25977
- }
25978
-
25979
- props.children = childArray;
25980
- }
25981
-
25982
- return ReactElement(element.type, key, ref, self, source, owner, props);
25983
- }
25984
- /**
25985
- * Verifies the object is a ReactElement.
25986
- * See https://reactjs.org/docs/react-api.html#isvalidelement
25987
- * @param {?object} object
25988
- * @return {boolean} True if `object` is a ReactElement.
25989
- * @final
25990
- */
25991
-
25992
- function isValidElement(object) {
25993
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
25994
- }
25995
-
25996
- var SEPARATOR = '.';
25997
- var SUBSEPARATOR = ':';
25998
- /**
25999
- * Escape and wrap key so it is safe to use as a reactid
26000
- *
26001
- * @param {string} key to be escaped.
26002
- * @return {string} the escaped key.
26003
- */
26004
-
26005
- function escape(key) {
26006
- var escapeRegex = /[=:]/g;
26007
- var escaperLookup = {
26008
- '=': '=0',
26009
- ':': '=2'
26010
- };
26011
- var escapedString = ('' + key).replace(escapeRegex, function (match) {
26012
- return escaperLookup[match];
26013
- });
26014
- return '$' + escapedString;
26015
- }
26016
- /**
26017
- * TODO: Test that a single child and an array with one item have the same key
26018
- * pattern.
26019
- */
26020
-
26021
-
26022
- var didWarnAboutMaps = false;
26023
- var userProvidedKeyEscapeRegex = /\/+/g;
26024
-
26025
- function escapeUserProvidedKey(text) {
26026
- return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
26027
- }
26028
-
26029
- var POOL_SIZE = 10;
26030
- var traverseContextPool = [];
26031
-
26032
- function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
26033
- if (traverseContextPool.length) {
26034
- var traverseContext = traverseContextPool.pop();
26035
- traverseContext.result = mapResult;
26036
- traverseContext.keyPrefix = keyPrefix;
26037
- traverseContext.func = mapFunction;
26038
- traverseContext.context = mapContext;
26039
- traverseContext.count = 0;
26040
- return traverseContext;
26041
- } else {
26042
- return {
26043
- result: mapResult,
26044
- keyPrefix: keyPrefix,
26045
- func: mapFunction,
26046
- context: mapContext,
26047
- count: 0
26048
- };
26049
- }
26050
- }
26051
-
26052
- function releaseTraverseContext(traverseContext) {
26053
- traverseContext.result = null;
26054
- traverseContext.keyPrefix = null;
26055
- traverseContext.func = null;
26056
- traverseContext.context = null;
26057
- traverseContext.count = 0;
26058
-
26059
- if (traverseContextPool.length < POOL_SIZE) {
26060
- traverseContextPool.push(traverseContext);
26061
- }
26062
- }
26063
- /**
26064
- * @param {?*} children Children tree container.
26065
- * @param {!string} nameSoFar Name of the key path so far.
26066
- * @param {!function} callback Callback to invoke with each child found.
26067
- * @param {?*} traverseContext Used to pass information throughout the traversal
26068
- * process.
26069
- * @return {!number} The number of children in this subtree.
26070
- */
26071
-
26072
-
26073
- function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
26074
- var type = typeof children;
26075
-
26076
- if (type === 'undefined' || type === 'boolean') {
26077
- // All of the above are perceived as null.
26078
- children = null;
26079
- }
26080
-
26081
- var invokeCallback = false;
26082
-
26083
- if (children === null) {
26084
- invokeCallback = true;
26085
- } else {
26086
- switch (type) {
26087
- case 'string':
26088
- case 'number':
26089
- invokeCallback = true;
26090
- break;
26091
-
26092
- case 'object':
26093
- switch (children.$$typeof) {
26094
- case REACT_ELEMENT_TYPE:
26095
- case REACT_PORTAL_TYPE:
26096
- invokeCallback = true;
26097
- }
26098
-
26099
- }
26100
- }
26101
-
26102
- if (invokeCallback) {
26103
- callback(traverseContext, children, // If it's the only child, treat the name as if it was wrapped in an array
26104
- // so that it's consistent if the number of children grows.
26105
- nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
26106
- return 1;
26107
- }
26108
-
26109
- var child;
26110
- var nextName;
26111
- var subtreeCount = 0; // Count of children found in the current subtree.
26112
-
26113
- var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
26114
-
26115
- if (Array.isArray(children)) {
26116
- for (var i = 0; i < children.length; i++) {
26117
- child = children[i];
26118
- nextName = nextNamePrefix + getComponentKey(child, i);
26119
- subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
26120
- }
26121
- } else {
26122
- var iteratorFn = getIteratorFn(children);
26123
-
26124
- if (typeof iteratorFn === 'function') {
26125
-
26126
- {
26127
- // Warn about using Maps as children
26128
- if (iteratorFn === children.entries) {
26129
- if (!didWarnAboutMaps) {
26130
- warn('Using Maps as children is deprecated and will be removed in ' + 'a future major release. Consider converting children to ' + 'an array of keyed ReactElements instead.');
26131
- }
26132
-
26133
- didWarnAboutMaps = true;
26134
- }
26135
- }
26136
-
26137
- var iterator = iteratorFn.call(children);
26138
- var step;
26139
- var ii = 0;
26140
-
26141
- while (!(step = iterator.next()).done) {
26142
- child = step.value;
26143
- nextName = nextNamePrefix + getComponentKey(child, ii++);
26144
- subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
26145
- }
26146
- } else if (type === 'object') {
26147
- var addendum = '';
26148
-
26149
- {
26150
- addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();
26151
- }
26152
-
26153
- var childrenString = '' + children;
26154
-
26155
- {
26156
- {
26157
- throw Error( "Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ")." + addendum );
26158
- }
26159
- }
26160
- }
26161
- }
26162
-
26163
- return subtreeCount;
26164
- }
26165
- /**
26166
- * Traverses children that are typically specified as `props.children`, but
26167
- * might also be specified through attributes:
26168
- *
26169
- * - `traverseAllChildren(this.props.children, ...)`
26170
- * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
26171
- *
26172
- * The `traverseContext` is an optional argument that is passed through the
26173
- * entire traversal. It can be used to store accumulations or anything else that
26174
- * the callback might find relevant.
26175
- *
26176
- * @param {?*} children Children tree object.
26177
- * @param {!function} callback To invoke upon traversing each child.
26178
- * @param {?*} traverseContext Context for traversal.
26179
- * @return {!number} The number of children in this subtree.
26180
- */
26181
-
26182
-
26183
- function traverseAllChildren(children, callback, traverseContext) {
26184
- if (children == null) {
26185
- return 0;
26186
- }
26187
-
26188
- return traverseAllChildrenImpl(children, '', callback, traverseContext);
26189
- }
26190
- /**
26191
- * Generate a key string that identifies a component within a set.
26192
- *
26193
- * @param {*} component A component that could contain a manual key.
26194
- * @param {number} index Index that is used if a manual key is not provided.
26195
- * @return {string}
26196
- */
26197
-
26198
-
26199
- function getComponentKey(component, index) {
26200
- // Do some typechecking here since we call this blindly. We want to ensure
26201
- // that we don't block potential future ES APIs.
26202
- if (typeof component === 'object' && component !== null && component.key != null) {
26203
- // Explicit key
26204
- return escape(component.key);
26205
- } // Implicit key determined by the index in the set
26206
-
26207
-
26208
- return index.toString(36);
26209
- }
26210
-
26211
- function forEachSingleChild(bookKeeping, child, name) {
26212
- var func = bookKeeping.func,
26213
- context = bookKeeping.context;
26214
- func.call(context, child, bookKeeping.count++);
26215
- }
26216
- /**
26217
- * Iterates through children that are typically specified as `props.children`.
26218
- *
26219
- * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
26220
- *
26221
- * The provided forEachFunc(child, index) will be called for each
26222
- * leaf child.
26223
- *
26224
- * @param {?*} children Children tree container.
26225
- * @param {function(*, int)} forEachFunc
26226
- * @param {*} forEachContext Context for forEachContext.
26227
- */
26228
-
26229
-
26230
- function forEachChildren(children, forEachFunc, forEachContext) {
26231
- if (children == null) {
26232
- return children;
26233
- }
26234
-
26235
- var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
26236
- traverseAllChildren(children, forEachSingleChild, traverseContext);
26237
- releaseTraverseContext(traverseContext);
26238
- }
26239
-
26240
- function mapSingleChildIntoContext(bookKeeping, child, childKey) {
26241
- var result = bookKeeping.result,
26242
- keyPrefix = bookKeeping.keyPrefix,
26243
- func = bookKeeping.func,
26244
- context = bookKeeping.context;
26245
- var mappedChild = func.call(context, child, bookKeeping.count++);
26246
-
26247
- if (Array.isArray(mappedChild)) {
26248
- mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {
26249
- return c;
26250
- });
26251
- } else if (mappedChild != null) {
26252
- if (isValidElement(mappedChild)) {
26253
- mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
26254
- // traverseAllChildren used to do for objects as children
26255
- keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
26256
- }
26257
-
26258
- result.push(mappedChild);
26259
- }
26260
- }
26261
-
26262
- function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
26263
- var escapedPrefix = '';
26264
-
26265
- if (prefix != null) {
26266
- escapedPrefix = escapeUserProvidedKey(prefix) + '/';
26267
- }
26268
-
26269
- var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
26270
- traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
26271
- releaseTraverseContext(traverseContext);
26272
- }
26273
- /**
26274
- * Maps children that are typically specified as `props.children`.
26275
- *
26276
- * See https://reactjs.org/docs/react-api.html#reactchildrenmap
26277
- *
26278
- * The provided mapFunction(child, key, index) will be called for each
26279
- * leaf child.
26280
- *
26281
- * @param {?*} children Children tree container.
26282
- * @param {function(*, int)} func The map function.
26283
- * @param {*} context Context for mapFunction.
26284
- * @return {object} Object containing the ordered map of results.
26285
- */
26286
-
26287
-
26288
- function mapChildren(children, func, context) {
26289
- if (children == null) {
26290
- return children;
26291
- }
26292
-
26293
- var result = [];
26294
- mapIntoWithKeyPrefixInternal(children, result, null, func, context);
26295
- return result;
26296
- }
26297
- /**
26298
- * Count the number of children that are typically specified as
26299
- * `props.children`.
26300
- *
26301
- * See https://reactjs.org/docs/react-api.html#reactchildrencount
26302
- *
26303
- * @param {?*} children Children tree container.
26304
- * @return {number} The number of children.
26305
- */
26306
-
26307
-
26308
- function countChildren(children) {
26309
- return traverseAllChildren(children, function () {
26310
- return null;
26311
- }, null);
26312
- }
26313
- /**
26314
- * Flatten a children object (typically specified as `props.children`) and
26315
- * return an array with appropriately re-keyed children.
26316
- *
26317
- * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
26318
- */
26319
-
26320
-
26321
- function toArray(children) {
26322
- var result = [];
26323
- mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
26324
- return child;
26325
- });
26326
- return result;
26327
- }
26328
- /**
26329
- * Returns the first child in a collection of children and verifies that there
26330
- * is only one child in the collection.
26331
- *
26332
- * See https://reactjs.org/docs/react-api.html#reactchildrenonly
26333
- *
26334
- * The current implementation of this function assumes that a single child gets
26335
- * passed without a wrapper, but the purpose of this helper function is to
26336
- * abstract away the particular structure of children.
26337
- *
26338
- * @param {?object} children Child collection structure.
26339
- * @return {ReactElement} The first and only `ReactElement` contained in the
26340
- * structure.
26341
- */
26342
-
26343
-
26344
- function onlyChild(children) {
26345
- if (!isValidElement(children)) {
26346
- {
26347
- throw Error( "React.Children.only expected to receive a single React element child." );
26348
- }
26349
- }
26350
-
26351
- return children;
26352
- }
26353
-
26354
- function createContext(defaultValue, calculateChangedBits) {
26355
- if (calculateChangedBits === undefined) {
26356
- calculateChangedBits = null;
26357
- } else {
26358
- {
26359
- if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') {
26360
- error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);
26361
- }
26362
- }
26363
- }
26364
-
26365
- var context = {
26366
- $$typeof: REACT_CONTEXT_TYPE,
26367
- _calculateChangedBits: calculateChangedBits,
26368
- // As a workaround to support multiple concurrent renderers, we categorize
26369
- // some renderers as primary and others as secondary. We only expect
26370
- // there to be two concurrent renderers at most: React Native (primary) and
26371
- // Fabric (secondary); React DOM (primary) and React ART (secondary).
26372
- // Secondary renderers store their context values on separate fields.
26373
- _currentValue: defaultValue,
26374
- _currentValue2: defaultValue,
26375
- // Used to track how many concurrent renderers this context currently
26376
- // supports within in a single renderer. Such as parallel server rendering.
26377
- _threadCount: 0,
26378
- // These are circular
26379
- Provider: null,
26380
- Consumer: null
26381
- };
26382
- context.Provider = {
26383
- $$typeof: REACT_PROVIDER_TYPE,
26384
- _context: context
26385
- };
26386
- var hasWarnedAboutUsingNestedContextConsumers = false;
26387
- var hasWarnedAboutUsingConsumerProvider = false;
26388
-
26389
- {
26390
- // A separate object, but proxies back to the original context object for
26391
- // backwards compatibility. It has a different $$typeof, so we can properly
26392
- // warn for the incorrect usage of Context as a Consumer.
26393
- var Consumer = {
26394
- $$typeof: REACT_CONTEXT_TYPE,
26395
- _context: context,
26396
- _calculateChangedBits: context._calculateChangedBits
26397
- }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here
26398
-
26399
- Object.defineProperties(Consumer, {
26400
- Provider: {
26401
- get: function () {
26402
- if (!hasWarnedAboutUsingConsumerProvider) {
26403
- hasWarnedAboutUsingConsumerProvider = true;
26404
-
26405
- error('Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
26406
- }
26407
-
26408
- return context.Provider;
26409
- },
26410
- set: function (_Provider) {
26411
- context.Provider = _Provider;
26412
- }
26413
- },
26414
- _currentValue: {
26415
- get: function () {
26416
- return context._currentValue;
26417
- },
26418
- set: function (_currentValue) {
26419
- context._currentValue = _currentValue;
26420
- }
26421
- },
26422
- _currentValue2: {
26423
- get: function () {
26424
- return context._currentValue2;
26425
- },
26426
- set: function (_currentValue2) {
26427
- context._currentValue2 = _currentValue2;
26428
- }
26429
- },
26430
- _threadCount: {
26431
- get: function () {
26432
- return context._threadCount;
26433
- },
26434
- set: function (_threadCount) {
26435
- context._threadCount = _threadCount;
26436
- }
26437
- },
26438
- Consumer: {
26439
- get: function () {
26440
- if (!hasWarnedAboutUsingNestedContextConsumers) {
26441
- hasWarnedAboutUsingNestedContextConsumers = true;
26442
-
26443
- error('Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
26444
- }
26445
-
26446
- return context.Consumer;
26447
- }
26448
- }
26449
- }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
26450
-
26451
- context.Consumer = Consumer;
26452
- }
26453
-
26454
- {
26455
- context._currentRenderer = null;
26456
- context._currentRenderer2 = null;
26457
- }
26458
-
26459
- return context;
26460
- }
26461
-
26462
- function lazy(ctor) {
26463
- var lazyType = {
26464
- $$typeof: REACT_LAZY_TYPE,
26465
- _ctor: ctor,
26466
- // React uses these fields to store the result.
26467
- _status: -1,
26468
- _result: null
26469
- };
26470
-
26471
- {
26472
- // In production, this would just set it on the object.
26473
- var defaultProps;
26474
- var propTypes;
26475
- Object.defineProperties(lazyType, {
26476
- defaultProps: {
26477
- configurable: true,
26478
- get: function () {
26479
- return defaultProps;
26480
- },
26481
- set: function (newDefaultProps) {
26482
- error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
26483
-
26484
- defaultProps = newDefaultProps; // Match production behavior more closely:
26485
-
26486
- Object.defineProperty(lazyType, 'defaultProps', {
26487
- enumerable: true
26488
- });
26489
- }
26490
- },
26491
- propTypes: {
26492
- configurable: true,
26493
- get: function () {
26494
- return propTypes;
26495
- },
26496
- set: function (newPropTypes) {
26497
- error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
26498
-
26499
- propTypes = newPropTypes; // Match production behavior more closely:
26500
-
26501
- Object.defineProperty(lazyType, 'propTypes', {
26502
- enumerable: true
26503
- });
26504
- }
26505
- }
26506
- });
26507
- }
26508
-
26509
- return lazyType;
26510
- }
26511
-
26512
- function forwardRef(render) {
26513
- {
26514
- if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
26515
- error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
26516
- } else if (typeof render !== 'function') {
26517
- error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
26518
- } else {
26519
- if (render.length !== 0 && render.length !== 2) {
26520
- error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.');
26521
- }
26522
- }
26523
-
26524
- if (render != null) {
26525
- if (render.defaultProps != null || render.propTypes != null) {
26526
- error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');
26527
- }
26528
- }
26529
- }
26530
-
26531
- return {
26532
- $$typeof: REACT_FORWARD_REF_TYPE,
26533
- render: render
26534
- };
26535
- }
26536
-
26537
- function isValidElementType(type) {
26538
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
26539
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
26540
- }
26541
-
26542
- function memo(type, compare) {
26543
- {
26544
- if (!isValidElementType(type)) {
26545
- error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
26546
- }
26547
- }
26548
-
26549
- return {
26550
- $$typeof: REACT_MEMO_TYPE,
26551
- type: type,
26552
- compare: compare === undefined ? null : compare
26553
- };
26554
- }
26555
-
26556
- function resolveDispatcher() {
26557
- var dispatcher = ReactCurrentDispatcher.current;
26558
-
26559
- if (!(dispatcher !== null)) {
26560
- {
26561
- 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." );
26562
- }
26563
- }
26564
-
26565
- return dispatcher;
26566
- }
26567
-
26568
- function useContext(Context, unstable_observedBits) {
26569
- var dispatcher = resolveDispatcher();
26570
-
26571
- {
26572
- if (unstable_observedBits !== undefined) {
26573
- error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://fb.me/rules-of-hooks' : '');
26574
- } // TODO: add a more generic warning for invalid values.
26575
-
26576
-
26577
- if (Context._context !== undefined) {
26578
- var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
26579
- // and nobody should be using this in existing code.
26580
-
26581
- if (realContext.Consumer === Context) {
26582
- error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');
26583
- } else if (realContext.Provider === Context) {
26584
- error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
26585
- }
26586
- }
26587
- }
26588
-
26589
- return dispatcher.useContext(Context, unstable_observedBits);
26590
- }
26591
- function useState(initialState) {
26592
- var dispatcher = resolveDispatcher();
26593
- return dispatcher.useState(initialState);
26594
- }
26595
- function useReducer(reducer, initialArg, init) {
26596
- var dispatcher = resolveDispatcher();
26597
- return dispatcher.useReducer(reducer, initialArg, init);
26598
- }
26599
- function useRef(initialValue) {
26600
- var dispatcher = resolveDispatcher();
26601
- return dispatcher.useRef(initialValue);
26602
- }
26603
- function useEffect(create, deps) {
26604
- var dispatcher = resolveDispatcher();
26605
- return dispatcher.useEffect(create, deps);
26606
- }
26607
- function useLayoutEffect(create, deps) {
26608
- var dispatcher = resolveDispatcher();
26609
- return dispatcher.useLayoutEffect(create, deps);
26610
- }
26611
- function useCallback(callback, deps) {
26612
- var dispatcher = resolveDispatcher();
26613
- return dispatcher.useCallback(callback, deps);
26614
- }
26615
- function useMemo(create, deps) {
26616
- var dispatcher = resolveDispatcher();
26617
- return dispatcher.useMemo(create, deps);
26618
- }
26619
- function useImperativeHandle(ref, create, deps) {
26620
- var dispatcher = resolveDispatcher();
26621
- return dispatcher.useImperativeHandle(ref, create, deps);
26622
- }
26623
- function useDebugValue(value, formatterFn) {
26624
- {
26625
- var dispatcher = resolveDispatcher();
26626
- return dispatcher.useDebugValue(value, formatterFn);
26627
- }
26628
- }
26629
-
26630
- var propTypesMisspellWarningShown;
26631
-
26632
- {
26633
- propTypesMisspellWarningShown = false;
26634
- }
26635
-
26636
- function getDeclarationErrorAddendum() {
26637
- if (ReactCurrentOwner.current) {
26638
- var name = getComponentName(ReactCurrentOwner.current.type);
26639
-
26640
- if (name) {
26641
- return '\n\nCheck the render method of `' + name + '`.';
26642
- }
26643
- }
26644
-
26645
- return '';
26646
- }
26647
-
26648
- function getSourceInfoErrorAddendum(source) {
26649
- if (source !== undefined) {
26650
- var fileName = source.fileName.replace(/^.*[\\\/]/, '');
26651
- var lineNumber = source.lineNumber;
26652
- return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
26653
- }
26654
-
26655
- return '';
26656
- }
26657
-
26658
- function getSourceInfoErrorAddendumForProps(elementProps) {
26659
- if (elementProps !== null && elementProps !== undefined) {
26660
- return getSourceInfoErrorAddendum(elementProps.__source);
26661
- }
26662
-
26663
- return '';
26664
- }
26665
- /**
26666
- * Warn if there's no key explicitly set on dynamic arrays of children or
26667
- * object keys are not valid. This allows us to keep track of children between
26668
- * updates.
26669
- */
26670
-
26671
-
26672
- var ownerHasKeyUseWarning = {};
26673
-
26674
- function getCurrentComponentErrorInfo(parentType) {
26675
- var info = getDeclarationErrorAddendum();
26676
-
26677
- if (!info) {
26678
- var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
26679
-
26680
- if (parentName) {
26681
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
26682
- }
26683
- }
26684
-
26685
- return info;
26686
- }
26687
- /**
26688
- * Warn if the element doesn't have an explicit key assigned to it.
26689
- * This element is in an array. The array could grow and shrink or be
26690
- * reordered. All children that haven't already been validated are required to
26691
- * have a "key" property assigned to it. Error statuses are cached so a warning
26692
- * will only be shown once.
26693
- *
26694
- * @internal
26695
- * @param {ReactElement} element Element that requires a key.
26696
- * @param {*} parentType element's parent's type.
26697
- */
26698
-
26699
-
26700
- function validateExplicitKey(element, parentType) {
26701
- if (!element._store || element._store.validated || element.key != null) {
26702
- return;
26703
- }
26704
-
26705
- element._store.validated = true;
26706
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
26707
-
26708
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
26709
- return;
26710
- }
26711
-
26712
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
26713
- // property, it may be the creator of the child that's responsible for
26714
- // assigning it a key.
26715
-
26716
- var childOwner = '';
26717
-
26718
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
26719
- // Give the component that originally created this child.
26720
- childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
26721
- }
26722
-
26723
- setCurrentlyValidatingElement(element);
26724
-
26725
- {
26726
- error('Each child in a list should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);
26727
- }
26728
-
26729
- setCurrentlyValidatingElement(null);
26730
- }
26731
- /**
26732
- * Ensure that every element either is passed in a static location, in an
26733
- * array with an explicit keys property defined, or in an object literal
26734
- * with valid key property.
26735
- *
26736
- * @internal
26737
- * @param {ReactNode} node Statically passed child of any type.
26738
- * @param {*} parentType node's parent's type.
26739
- */
26740
-
26741
-
26742
- function validateChildKeys(node, parentType) {
26743
- if (typeof node !== 'object') {
26744
- return;
26745
- }
26746
-
26747
- if (Array.isArray(node)) {
26748
- for (var i = 0; i < node.length; i++) {
26749
- var child = node[i];
26750
-
26751
- if (isValidElement(child)) {
26752
- validateExplicitKey(child, parentType);
26753
- }
26754
- }
26755
- } else if (isValidElement(node)) {
26756
- // This element was passed in a valid location.
26757
- if (node._store) {
26758
- node._store.validated = true;
26759
- }
26760
- } else if (node) {
26761
- var iteratorFn = getIteratorFn(node);
26762
-
26763
- if (typeof iteratorFn === 'function') {
26764
- // Entry iterators used to provide implicit keys,
26765
- // but now we print a separate warning for them later.
26766
- if (iteratorFn !== node.entries) {
26767
- var iterator = iteratorFn.call(node);
26768
- var step;
26769
-
26770
- while (!(step = iterator.next()).done) {
26771
- if (isValidElement(step.value)) {
26772
- validateExplicitKey(step.value, parentType);
26773
- }
26774
- }
26775
- }
26776
- }
26777
- }
26778
- }
26779
- /**
26780
- * Given an element, validate that its props follow the propTypes definition,
26781
- * provided by the type.
26782
- *
26783
- * @param {ReactElement} element
26784
- */
26785
-
26786
-
26787
- function validatePropTypes(element) {
26788
- {
26789
- var type = element.type;
26790
-
26791
- if (type === null || type === undefined || typeof type === 'string') {
26792
- return;
26793
- }
26794
-
26795
- var name = getComponentName(type);
26796
- var propTypes;
26797
-
26798
- if (typeof type === 'function') {
26799
- propTypes = type.propTypes;
26800
- } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
26801
- // Inner props are checked in the reconciler.
26802
- type.$$typeof === REACT_MEMO_TYPE)) {
26803
- propTypes = type.propTypes;
26804
- } else {
26805
- return;
26806
- }
26807
-
26808
- if (propTypes) {
26809
- setCurrentlyValidatingElement(element);
26810
- checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
26811
- setCurrentlyValidatingElement(null);
26812
- } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
26813
- propTypesMisspellWarningShown = true;
26814
-
26815
- error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
26816
- }
26817
-
26818
- if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
26819
- error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
26820
- }
26821
- }
26822
- }
26823
- /**
26824
- * Given a fragment, validate that it can only be provided with fragment props
26825
- * @param {ReactElement} fragment
26826
- */
26827
-
26828
-
26829
- function validateFragmentProps(fragment) {
26830
- {
26831
- setCurrentlyValidatingElement(fragment);
26832
- var keys = Object.keys(fragment.props);
26833
-
26834
- for (var i = 0; i < keys.length; i++) {
26835
- var key = keys[i];
26836
-
26837
- if (key !== 'children' && key !== 'key') {
26838
- error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
26839
-
26840
- break;
26841
- }
26842
- }
26843
-
26844
- if (fragment.ref !== null) {
26845
- error('Invalid attribute `ref` supplied to `React.Fragment`.');
26846
- }
26847
-
26848
- setCurrentlyValidatingElement(null);
26849
- }
26850
- }
26851
- function createElementWithValidation(type, props, children) {
26852
- var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
26853
- // succeed and there will likely be errors in render.
26854
-
26855
- if (!validType) {
26856
- var info = '';
26857
-
26858
- if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
26859
- 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.";
26860
- }
26861
-
26862
- var sourceInfo = getSourceInfoErrorAddendumForProps(props);
26863
-
26864
- if (sourceInfo) {
26865
- info += sourceInfo;
26866
- } else {
26867
- info += getDeclarationErrorAddendum();
26868
- }
26869
-
26870
- var typeString;
26871
-
26872
- if (type === null) {
26873
- typeString = 'null';
26874
- } else if (Array.isArray(type)) {
26875
- typeString = 'array';
26876
- } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
26877
- typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
26878
- info = ' Did you accidentally export a JSX literal instead of a component?';
26879
- } else {
26880
- typeString = typeof type;
26881
- }
26882
-
26883
- {
26884
- error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
26885
- }
26886
- }
26887
-
26888
- var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
26889
- // TODO: Drop this when these are no longer allowed as the type argument.
26890
-
26891
- if (element == null) {
26892
- return element;
26893
- } // Skip key warning if the type isn't valid since our key validation logic
26894
- // doesn't expect a non-string/function type and can throw confusing errors.
26895
- // We don't want exception behavior to differ between dev and prod.
26896
- // (Rendering will throw with a helpful message and as soon as the type is
26897
- // fixed, the key warnings will appear.)
26898
-
26899
-
26900
- if (validType) {
26901
- for (var i = 2; i < arguments.length; i++) {
26902
- validateChildKeys(arguments[i], type);
26903
- }
26904
- }
26905
-
26906
- if (type === REACT_FRAGMENT_TYPE) {
26907
- validateFragmentProps(element);
26908
- } else {
26909
- validatePropTypes(element);
26910
- }
26911
-
26912
- return element;
26913
- }
26914
- var didWarnAboutDeprecatedCreateFactory = false;
26915
- function createFactoryWithValidation(type) {
26916
- var validatedFactory = createElementWithValidation.bind(null, type);
26917
- validatedFactory.type = type;
26918
-
26919
- {
26920
- if (!didWarnAboutDeprecatedCreateFactory) {
26921
- didWarnAboutDeprecatedCreateFactory = true;
26922
-
26923
- warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');
26924
- } // Legacy hook: remove it
26925
-
26926
-
26927
- Object.defineProperty(validatedFactory, 'type', {
26928
- enumerable: false,
26929
- get: function () {
26930
- warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
26931
-
26932
- Object.defineProperty(this, 'type', {
26933
- value: type
26934
- });
26935
- return type;
26936
- }
26937
- });
26938
- }
26939
-
26940
- return validatedFactory;
26941
- }
26942
- function cloneElementWithValidation(element, props, children) {
26943
- var newElement = cloneElement.apply(this, arguments);
26944
-
26945
- for (var i = 2; i < arguments.length; i++) {
26946
- validateChildKeys(arguments[i], newElement.type);
26947
- }
26948
-
26949
- validatePropTypes(newElement);
26950
- return newElement;
26951
- }
26952
-
26953
- {
26954
-
26955
- try {
26956
- var frozenObject = Object.freeze({});
26957
- var testMap = new Map([[frozenObject, null]]);
26958
- var testSet = new Set([frozenObject]); // This is necessary for Rollup to not consider these unused.
26959
- // https://github.com/rollup/rollup/issues/1771
26960
- // TODO: we can remove these if Rollup fixes the bug.
26961
-
26962
- testMap.set(0, 0);
26963
- testSet.add(0);
26964
- } catch (e) {
26965
- }
26966
- }
26967
-
26968
- var createElement$1 = createElementWithValidation ;
26969
- var cloneElement$1 = cloneElementWithValidation ;
26970
- var createFactory = createFactoryWithValidation ;
26971
- var Children = {
26972
- map: mapChildren,
26973
- forEach: forEachChildren,
26974
- count: countChildren,
26975
- toArray: toArray,
26976
- only: onlyChild
26977
- };
26978
-
26979
- exports.Children = Children;
26980
- exports.Component = Component;
26981
- exports.Fragment = REACT_FRAGMENT_TYPE;
26982
- exports.Profiler = REACT_PROFILER_TYPE;
26983
- exports.PureComponent = PureComponent;
26984
- exports.StrictMode = REACT_STRICT_MODE_TYPE;
26985
- exports.Suspense = REACT_SUSPENSE_TYPE;
26986
- exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
26987
- exports.cloneElement = cloneElement$1;
26988
- exports.createContext = createContext;
26989
- exports.createElement = createElement$1;
26990
- exports.createFactory = createFactory;
26991
- exports.createRef = createRef;
26992
- exports.forwardRef = forwardRef;
26993
- exports.isValidElement = isValidElement;
26994
- exports.lazy = lazy;
26995
- exports.memo = memo;
26996
- exports.useCallback = useCallback;
26997
- exports.useContext = useContext;
26998
- exports.useDebugValue = useDebugValue;
26999
- exports.useEffect = useEffect;
27000
- exports.useImperativeHandle = useImperativeHandle;
27001
- exports.useLayoutEffect = useLayoutEffect;
27002
- exports.useMemo = useMemo;
27003
- exports.useReducer = useReducer;
27004
- exports.useRef = useRef;
27005
- exports.useState = useState;
27006
- exports.version = ReactVersion;
27007
- })();
27008
- }
27009
-
27010
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1)))
27011
-
27012
- /***/ }),
27013
- /* 428 */
27014
- /***/ (function(module, exports, __webpack_require__) {
27015
-
27016
- "use strict";
27017
- /** @license React v16.14.0
27018
- * react-dom.production.min.js
27019
- *
27020
- * Copyright (c) Facebook, Inc. and its affiliates.
27021
- *
27022
- * This source code is licensed under the MIT license found in the
27023
- * LICENSE file in the root directory of this source tree.
27024
- */
27025
-
27026
- /*
27027
- Modernizr 3.0.0pre (Custom Build) | MIT
27028
- */
27029
- var aa=__webpack_require__(0),n=__webpack_require__(59),r=__webpack_require__(208);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));
27030
- function ba(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 da=!1,ea=null,fa=!1,ha=null,ia={onError:function(a){da=!0;ea=a}};function ja(a,b,c,d,e,f,g,h,k){da=!1;ea=null;ba.apply(ia,arguments)}function ka(a,b,c,d,e,f,g,h,k){ja.apply(this,arguments);if(da){if(da){var l=ea;da=!1;ea=null}else throw Error(u(198));fa||(fa=!0,ha=l)}}var la=null,ma=null,na=null;
27031
- function oa(a,b,c){var d=a.type||"unknown-event";a.currentTarget=na(c);ka(d,b,void 0,a);a.currentTarget=null}var pa=null,qa={};
27032
- function ra(){if(pa)for(var a in qa){var b=qa[a],c=pa.indexOf(a);if(!(-1<c))throw Error(u(96,a));if(!sa[c]){if(!b.extractEvents)throw Error(u(97,a));sa[c]=b;c=b.eventTypes;for(var d in c){var e=void 0;var f=c[d],g=b,h=d;if(ta.hasOwnProperty(h))throw Error(u(99,h));ta[h]=f;var k=f.phasedRegistrationNames;if(k){for(e in k)k.hasOwnProperty(e)&&ua(k[e],g,h);e=!0}else f.registrationName?(ua(f.registrationName,g,h),e=!0):e=!1;if(!e)throw Error(u(98,d,a));}}}}
27033
- function ua(a,b,c){if(va[a])throw Error(u(100,a));va[a]=b;wa[a]=b.eventTypes[c].dependencies}var sa=[],ta={},va={},wa={};function xa(a){var b=!1,c;for(c in a)if(a.hasOwnProperty(c)){var d=a[c];if(!qa.hasOwnProperty(c)||qa[c]!==d){if(qa[c])throw Error(u(102,c));qa[c]=d;b=!0}}b&&ra()}var ya=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),za=null,Aa=null,Ba=null;
27034
- function Ca(a){if(a=ma(a)){if("function"!==typeof za)throw Error(u(280));var b=a.stateNode;b&&(b=la(b),za(a.stateNode,a.type,b))}}function Da(a){Aa?Ba?Ba.push(a):Ba=[a]:Aa=a}function Ea(){if(Aa){var a=Aa,b=Ba;Ba=Aa=null;Ca(a);if(b)for(a=0;a<b.length;a++)Ca(b[a])}}function Fa(a,b){return a(b)}function Ga(a,b,c,d,e){return a(b,c,d,e)}function Ha(){}var Ia=Fa,Ja=!1,Ka=!1;function La(){if(null!==Aa||null!==Ba)Ha(),Ea()}
27035
- function Ma(a,b,c){if(Ka)return a(b,c);Ka=!0;try{return Ia(a,b,c)}finally{Ka=!1,La()}}var Na=/^[: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]*$/,Oa=Object.prototype.hasOwnProperty,Pa={},Qa={};
27036
- function Ra(a){if(Oa.call(Qa,a))return!0;if(Oa.call(Pa,a))return!1;if(Na.test(a))return Qa[a]=!0;Pa[a]=!0;return!1}function Sa(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}}
27037
- function Ta(a,b,c,d){if(null===b||"undefined"===typeof b||Sa(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 v(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 C={};
27038
- "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){C[a]=new v(a,0,!1,a,null,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];C[b]=new v(b,1,!1,a[1],null,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){C[a]=new v(a,2,!1,a.toLowerCase(),null,!1)});
27039
- ["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){C[a]=new v(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){C[a]=new v(a,3,!1,a.toLowerCase(),null,!1)});
27040
- ["checked","multiple","muted","selected"].forEach(function(a){C[a]=new v(a,3,!0,a,null,!1)});["capture","download"].forEach(function(a){C[a]=new v(a,4,!1,a,null,!1)});["cols","rows","size","span"].forEach(function(a){C[a]=new v(a,6,!1,a,null,!1)});["rowSpan","start"].forEach(function(a){C[a]=new v(a,5,!1,a.toLowerCase(),null,!1)});var Ua=/[\-:]([a-z])/g;function Va(a){return a[1].toUpperCase()}
27041
- "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(Ua,
27042
- Va);C[b]=new v(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(Ua,Va);C[b]=new v(b,1,!1,a,"http://www.w3.org/1999/xlink",!1)});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(Ua,Va);C[b]=new v(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1)});["tabIndex","crossOrigin"].forEach(function(a){C[a]=new v(a,1,!1,a.toLowerCase(),null,!1)});
27043
- C.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach(function(a){C[a]=new v(a,1,!1,a.toLowerCase(),null,!0)});var Wa=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Wa.hasOwnProperty("ReactCurrentDispatcher")||(Wa.ReactCurrentDispatcher={current:null});Wa.hasOwnProperty("ReactCurrentBatchConfig")||(Wa.ReactCurrentBatchConfig={suspense:null});
27044
- function Xa(a,b,c,d){var e=C.hasOwnProperty(b)?C[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||(Ta(b,c,e,d)&&(c=null),d||null===e?Ra(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))))}
27045
- var Ya=/^(.*)[\\\/]/,E="function"===typeof Symbol&&Symbol.for,Za=E?Symbol.for("react.element"):60103,$a=E?Symbol.for("react.portal"):60106,ab=E?Symbol.for("react.fragment"):60107,bb=E?Symbol.for("react.strict_mode"):60108,cb=E?Symbol.for("react.profiler"):60114,db=E?Symbol.for("react.provider"):60109,eb=E?Symbol.for("react.context"):60110,fb=E?Symbol.for("react.concurrent_mode"):60111,gb=E?Symbol.for("react.forward_ref"):60112,hb=E?Symbol.for("react.suspense"):60113,ib=E?Symbol.for("react.suspense_list"):
27046
- 60120,jb=E?Symbol.for("react.memo"):60115,kb=E?Symbol.for("react.lazy"):60116,lb=E?Symbol.for("react.block"):60121,mb="function"===typeof Symbol&&Symbol.iterator;function nb(a){if(null===a||"object"!==typeof a)return null;a=mb&&a[mb]||a["@@iterator"];return"function"===typeof a?a:null}function ob(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)})}}
27047
- function pb(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 ab:return"Fragment";case $a:return"Portal";case cb:return"Profiler";case bb:return"StrictMode";case hb:return"Suspense";case ib:return"SuspenseList"}if("object"===typeof a)switch(a.$$typeof){case eb:return"Context.Consumer";case db:return"Context.Provider";case gb:var b=a.render;b=b.displayName||b.name||"";return a.displayName||(""!==b?"ForwardRef("+b+")":
27048
- "ForwardRef");case jb:return pb(a.type);case lb:return pb(a.render);case kb:if(a=1===a._status?a._result:null)return pb(a)}return null}function qb(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=pb(a.type);c=null;d&&(c=pb(d.type));d=f;f="";e?f=" (at "+e.fileName.replace(Ya,"")+":"+e.lineNumber+")":c&&(f=" (created by "+c+")");c="\n in "+(d||"Unknown")+f}b+=c;a=a.return}while(a);return b}
27049
- function rb(a){switch(typeof a){case "boolean":case "number":case "object":case "string":case "undefined":return a;default:return""}}function sb(a){var b=a.type;return(a=a.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===b||"radio"===b)}
27050
- function tb(a){var b=sb(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=
27051
- null;delete a[b]}}}}function xb(a){a._valueTracker||(a._valueTracker=tb(a))}function yb(a){if(!a)return!1;var b=a._valueTracker;if(!b)return!0;var c=b.getValue();var d="";a&&(d=sb(a)?a.checked?"true":"false":a.value);a=d;return a!==c?(b.setValue(a),!0):!1}function zb(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})}
27052
- function Ab(a,b){var c=null==b.defaultValue?"":b.defaultValue,d=null!=b.checked?b.checked:b.defaultChecked;c=rb(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 Bb(a,b){b=b.checked;null!=b&&Xa(a,"checked",b,!1)}
27053
- function Cb(a,b){Bb(a,b);var c=rb(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")?Db(a,b.type,c):b.hasOwnProperty("defaultValue")&&Db(a,b.type,rb(b.defaultValue));null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked)}
27054
- function Eb(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._wrapperState.initialChecked;""!==c&&(a.name=c)}
27055
- function Db(a,b,c){if("number"!==b||a.ownerDocument.activeElement!==a)null==c?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+c&&(a.defaultValue=""+c)}function Fb(a){var b="";aa.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}function Gb(a,b){a=n({children:void 0},b);if(b=Fb(b.children))a.children=b;return a}
27056
- function Hb(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=""+rb(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)}}
27057
- function Ib(a,b){if(null!=b.dangerouslySetInnerHTML)throw Error(u(91));return n({},b,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function Jb(a,b){var c=b.value;if(null==c){c=b.children;b=b.defaultValue;if(null!=c){if(null!=b)throw Error(u(92));if(Array.isArray(c)){if(!(1>=c.length))throw Error(u(93));c=c[0]}b=c}null==b&&(b="");c=b}a._wrapperState={initialValue:rb(c)}}
27058
- function Kb(a,b){var c=rb(b.value),d=rb(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 Lb(a){var b=a.textContent;b===a._wrapperState.initialValue&&""!==b&&null!==b&&(a.value=b)}var Mb={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};
27059
- function Nb(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 Ob(a,b){return null==a||"http://www.w3.org/1999/xhtml"===a?Nb(b):"http://www.w3.org/2000/svg"===a&&"foreignObject"===b?"http://www.w3.org/1999/xhtml":a}
27060
- var Pb,Qb=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!==Mb.svg||"innerHTML"in a)a.innerHTML=b;else{Pb=Pb||document.createElement("div");Pb.innerHTML="<svg>"+b.valueOf().toString()+"</svg>";for(b=Pb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}});
27061
- function Rb(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}function Sb(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;return c}var Tb={animationend:Sb("Animation","AnimationEnd"),animationiteration:Sb("Animation","AnimationIteration"),animationstart:Sb("Animation","AnimationStart"),transitionend:Sb("Transition","TransitionEnd")},Ub={},Vb={};
27062
- ya&&(Vb=document.createElement("div").style,"AnimationEvent"in window||(delete Tb.animationend.animation,delete Tb.animationiteration.animation,delete Tb.animationstart.animation),"TransitionEvent"in window||delete Tb.transitionend.transition);function Wb(a){if(Ub[a])return Ub[a];if(!Tb[a])return a;var b=Tb[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in Vb)return Ub[a]=b[c];return a}
27063
- var Xb=Wb("animationend"),Yb=Wb("animationiteration"),Zb=Wb("animationstart"),$b=Wb("transitionend"),ac="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),bc=new ("function"===typeof WeakMap?WeakMap:Map);function cc(a){var b=bc.get(a);void 0===b&&(b=new Map,bc.set(a,b));return b}
27064
- function dc(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 ec(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 fc(a){if(dc(a)!==a)throw Error(u(188));}
27065
- function gc(a){var b=a.alternate;if(!b){b=dc(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 fc(e),a;if(f===d)return fc(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===
27066
- 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 hc(a){a=gc(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}
27067
- function ic(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]}function jc(a,b,c){Array.isArray(a)?a.forEach(b,c):a&&b.call(c,a)}var kc=null;
27068
- function lc(a){if(a){var b=a._dispatchListeners,c=a._dispatchInstances;if(Array.isArray(b))for(var d=0;d<b.length&&!a.isPropagationStopped();d++)oa(a,b[d],c[d]);else b&&oa(a,b,c);a._dispatchListeners=null;a._dispatchInstances=null;a.isPersistent()||a.constructor.release(a)}}function mc(a){null!==a&&(kc=ic(kc,a));a=kc;kc=null;if(a){jc(a,lc);if(kc)throw Error(u(95));if(fa)throw a=ha,fa=!1,ha=null,a;}}
27069
- function nc(a){a=a.target||a.srcElement||window;a.correspondingUseElement&&(a=a.correspondingUseElement);return 3===a.nodeType?a.parentNode:a}function oc(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 pc=[];function qc(a){a.topLevelType=null;a.nativeEvent=null;a.targetInst=null;a.ancestors.length=0;10>pc.length&&pc.push(a)}
27070
- function rc(a,b,c,d){if(pc.length){var e=pc.pop();e.topLevelType=a;e.eventSystemFlags=d;e.nativeEvent=b;e.targetInst=c;return e}return{topLevelType:a,eventSystemFlags:d,nativeEvent:b,targetInst:c,ancestors:[]}}
27071
- function sc(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=tc(d)}while(c);for(c=0;c<a.ancestors.length;c++){b=a.ancestors[c];var e=nc(a.nativeEvent);d=a.topLevelType;var f=a.nativeEvent,g=a.eventSystemFlags;0===c&&(g|=64);for(var h=null,k=0;k<sa.length;k++){var l=sa[k];l&&(l=l.extractEvents(d,b,f,e,g))&&(h=
27072
- ic(h,l))}mc(h)}}function uc(a,b,c){if(!c.has(a)){switch(a){case "scroll":vc(b,"scroll",!0);break;case "focus":case "blur":vc(b,"focus",!0);vc(b,"blur",!0);c.set("blur",null);c.set("focus",null);break;case "cancel":case "close":oc(a)&&vc(b,a,!0);break;case "invalid":case "submit":case "reset":break;default:-1===ac.indexOf(a)&&F(a,b)}c.set(a,null)}}
27073
- var wc,xc,yc,zc=!1,Ac=[],Bc=null,Cc=null,Dc=null,Ec=new Map,Fc=new Map,Gc=[],Hc="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(" "),Ic="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");
27074
- function Jc(a,b){var c=cc(b);Hc.forEach(function(a){uc(a,b,c)});Ic.forEach(function(a){uc(a,b,c)})}function Kc(a,b,c,d,e){return{blockedOn:a,topLevelType:b,eventSystemFlags:c|32,nativeEvent:e,container:d}}
27075
- function Lc(a,b){switch(a){case "focus":case "blur":Bc=null;break;case "dragenter":case "dragleave":Cc=null;break;case "mouseover":case "mouseout":Dc=null;break;case "pointerover":case "pointerout":Ec.delete(b.pointerId);break;case "gotpointercapture":case "lostpointercapture":Fc.delete(b.pointerId)}}function Mc(a,b,c,d,e,f){if(null===a||a.nativeEvent!==f)return a=Kc(b,c,d,e,f),null!==b&&(b=Nc(b),null!==b&&xc(b)),a;a.eventSystemFlags|=d;return a}
27076
- function Oc(a,b,c,d,e){switch(b){case "focus":return Bc=Mc(Bc,a,b,c,d,e),!0;case "dragenter":return Cc=Mc(Cc,a,b,c,d,e),!0;case "mouseover":return Dc=Mc(Dc,a,b,c,d,e),!0;case "pointerover":var f=e.pointerId;Ec.set(f,Mc(Ec.get(f)||null,a,b,c,d,e));return!0;case "gotpointercapture":return f=e.pointerId,Fc.set(f,Mc(Fc.get(f)||null,a,b,c,d,e)),!0}return!1}
27077
- function Pc(a){var b=tc(a.target);if(null!==b){var c=dc(b);if(null!==c)if(b=c.tag,13===b){if(b=ec(c),null!==b){a.blockedOn=b;r.unstable_runWithPriority(a.priority,function(){yc(c)});return}}else if(3===b&&c.stateNode.hydrate){a.blockedOn=3===c.tag?c.stateNode.containerInfo:null;return}}a.blockedOn=null}function Qc(a){if(null!==a.blockedOn)return!1;var b=Rc(a.topLevelType,a.eventSystemFlags,a.container,a.nativeEvent);if(null!==b){var c=Nc(b);null!==c&&xc(c);a.blockedOn=b;return!1}return!0}
27078
- function Sc(a,b,c){Qc(a)&&c.delete(b)}function Tc(){for(zc=!1;0<Ac.length;){var a=Ac[0];if(null!==a.blockedOn){a=Nc(a.blockedOn);null!==a&&wc(a);break}var b=Rc(a.topLevelType,a.eventSystemFlags,a.container,a.nativeEvent);null!==b?a.blockedOn=b:Ac.shift()}null!==Bc&&Qc(Bc)&&(Bc=null);null!==Cc&&Qc(Cc)&&(Cc=null);null!==Dc&&Qc(Dc)&&(Dc=null);Ec.forEach(Sc);Fc.forEach(Sc)}function Uc(a,b){a.blockedOn===b&&(a.blockedOn=null,zc||(zc=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Tc)))}
27079
- function Vc(a){function b(b){return Uc(b,a)}if(0<Ac.length){Uc(Ac[0],a);for(var c=1;c<Ac.length;c++){var d=Ac[c];d.blockedOn===a&&(d.blockedOn=null)}}null!==Bc&&Uc(Bc,a);null!==Cc&&Uc(Cc,a);null!==Dc&&Uc(Dc,a);Ec.forEach(b);Fc.forEach(b);for(c=0;c<Gc.length;c++)d=Gc[c],d.blockedOn===a&&(d.blockedOn=null);for(;0<Gc.length&&(c=Gc[0],null===c.blockedOn);)Pc(c),null===c.blockedOn&&Gc.shift()}
27080
- var Wc={},Yc=new Map,Zc=new Map,$c=["abort","abort",Xb,"animationEnd",Yb,"animationIteration",Zb,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking",
27081
- "seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",$b,"transitionEnd","waiting","waiting"];function ad(a,b){for(var c=0;c<a.length;c+=2){var d=a[c],e=a[c+1],f="on"+(e[0].toUpperCase()+e.slice(1));f={phasedRegistrationNames:{bubbled:f,captured:f+"Capture"},dependencies:[d],eventPriority:b};Zc.set(d,b);Yc.set(d,f);Wc[e]=f}}
27082
- ad("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0);
27083
- ad("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1);ad($c,2);for(var bd="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),cd=0;cd<bd.length;cd++)Zc.set(bd[cd],0);
27084
- var dd=r.unstable_UserBlockingPriority,ed=r.unstable_runWithPriority,fd=!0;function F(a,b){vc(b,a,!1)}function vc(a,b,c){var d=Zc.get(b);switch(void 0===d?2:d){case 0:d=gd.bind(null,b,1,a);break;case 1:d=hd.bind(null,b,1,a);break;default:d=id.bind(null,b,1,a)}c?a.addEventListener(b,d,!0):a.addEventListener(b,d,!1)}function gd(a,b,c,d){Ja||Ha();var e=id,f=Ja;Ja=!0;try{Ga(e,a,b,c,d)}finally{(Ja=f)||La()}}function hd(a,b,c,d){ed(dd,id.bind(null,a,b,c,d))}
27085
- function id(a,b,c,d){if(fd)if(0<Ac.length&&-1<Hc.indexOf(a))a=Kc(null,a,b,c,d),Ac.push(a);else{var e=Rc(a,b,c,d);if(null===e)Lc(a,d);else if(-1<Hc.indexOf(a))a=Kc(e,a,b,c,d),Ac.push(a);else if(!Oc(e,a,b,c,d)){Lc(a,d);a=rc(a,d,null,b);try{Ma(sc,a)}finally{qc(a)}}}}
27086
- function Rc(a,b,c,d){c=nc(d);c=tc(c);if(null!==c){var e=dc(c);if(null===e)c=null;else{var f=e.tag;if(13===f){c=ec(e);if(null!==c)return c;c=null}else if(3===f){if(e.stateNode.hydrate)return 3===e.tag?e.stateNode.containerInfo:null;c=null}else e!==c&&(c=null)}}a=rc(a,d,c,b);try{Ma(sc,a)}finally{qc(a)}return null}
27087
- var jd={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,
27088
- floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},kd=["Webkit","ms","Moz","O"];Object.keys(jd).forEach(function(a){kd.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);jd[b]=jd[a]})});function ld(a,b,c){return null==b||"boolean"===typeof b||""===b?"":c||"number"!==typeof b||0===b||jd.hasOwnProperty(a)&&jd[a]?(""+b).trim():b+"px"}
27089
- function md(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf("--"),e=ld(c,b[c],d);"float"===c&&(c="cssFloat");d?a.setProperty(c,e):a[c]=e}}var nd=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});
27090
- function od(a,b){if(b){if(nd[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,""));}}
27091
- function pd(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}}var qd=Mb.html;function rd(a,b){a=9===a.nodeType||11===a.nodeType?a:a.ownerDocument;var c=cc(a);b=wa[b];for(var d=0;d<b.length;d++)uc(b[d],a,c)}function sd(){}
27092
- function td(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 ud(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function vd(a,b){var c=ud(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=ud(c)}}
27093
- function wd(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?wd(a,b.parentNode):"contains"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}function xd(){for(var a=window,b=td();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=td(a.document)}return b}
27094
- function yd(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 zd="$",Ad="/$",Bd="$?",Cd="$!",Dd=null,Ed=null;function Fd(a,b){switch(a){case "button":case "input":case "select":case "textarea":return!!b.autoFocus}return!1}
27095
- function Gd(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 Hd="function"===typeof setTimeout?setTimeout:void 0,Id="function"===typeof clearTimeout?clearTimeout:void 0;function Jd(a){for(;null!=a;a=a.nextSibling){var b=a.nodeType;if(1===b||3===b)break}return a}
27096
- function Kd(a){a=a.previousSibling;for(var b=0;a;){if(8===a.nodeType){var c=a.data;if(c===zd||c===Cd||c===Bd){if(0===b)return a;b--}else c===Ad&&b++}a=a.previousSibling}return null}var Ld=Math.random().toString(36).slice(2),Md="__reactInternalInstance$"+Ld,Nd="__reactEventHandlers$"+Ld,Od="__reactContainere$"+Ld;
27097
- function tc(a){var b=a[Md];if(b)return b;for(var c=a.parentNode;c;){if(b=c[Od]||c[Md]){c=b.alternate;if(null!==b.child||null!==c&&null!==c.child)for(a=Kd(a);null!==a;){if(c=a[Md])return c;a=Kd(a)}return b}a=c;c=a.parentNode}return null}function Nc(a){a=a[Md]||a[Od];return!a||5!==a.tag&&6!==a.tag&&13!==a.tag&&3!==a.tag?null:a}function Pd(a){if(5===a.tag||6===a.tag)return a.stateNode;throw Error(u(33));}function Qd(a){return a[Nd]||null}
27098
- function Rd(a){do a=a.return;while(a&&5!==a.tag);return a?a:null}
27099
- function Sd(a,b){var c=a.stateNode;if(!c)return null;var d=la(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":case "onMouseEnter":(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,
27100
- b,typeof c));return c}function Td(a,b,c){if(b=Sd(a,c.dispatchConfig.phasedRegistrationNames[b]))c._dispatchListeners=ic(c._dispatchListeners,b),c._dispatchInstances=ic(c._dispatchInstances,a)}function Ud(a){if(a&&a.dispatchConfig.phasedRegistrationNames){for(var b=a._targetInst,c=[];b;)c.push(b),b=Rd(b);for(b=c.length;0<b--;)Td(c[b],"captured",a);for(b=0;b<c.length;b++)Td(c[b],"bubbled",a)}}
27101
- function Vd(a,b,c){a&&c&&c.dispatchConfig.registrationName&&(b=Sd(a,c.dispatchConfig.registrationName))&&(c._dispatchListeners=ic(c._dispatchListeners,b),c._dispatchInstances=ic(c._dispatchInstances,a))}function Wd(a){a&&a.dispatchConfig.registrationName&&Vd(a._targetInst,null,a)}function Xd(a){jc(a,Ud)}var Yd=null,Zd=null,$d=null;
27102
- function ae(){if($d)return $d;var a,b=Zd,c=b.length,d,e="value"in Yd?Yd.value:Yd.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 $d=e.slice(a,1<d?1-d:void 0)}function be(){return!0}function ce(){return!1}
27103
- function G(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)?be:ce;this.isPropagationStopped=ce;return this}
27104
- n(G.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=be)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=be)},persist:function(){this.isPersistent=be},isPersistent:ce,destructor:function(){var a=this.constructor.Interface,
27105
- b;for(b in a)this[b]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null;this.isPropagationStopped=this.isDefaultPrevented=ce;this._dispatchInstances=this._dispatchListeners=null}});G.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};
27106
- G.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;de(c);return c};de(G);function ee(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)}
27107
- function fe(a){if(!(a instanceof this))throw Error(u(279));a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function de(a){a.eventPool=[];a.getPooled=ee;a.release=fe}var ge=G.extend({data:null}),he=G.extend({data:null}),ie=[9,13,27,32],je=ya&&"CompositionEvent"in window,ke=null;ya&&"documentMode"in document&&(ke=document.documentMode);
27108
- var le=ya&&"TextEvent"in window&&!ke,me=ya&&(!je||ke&&8<ke&&11>=ke),ne=String.fromCharCode(32),oe={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",
27109
- captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},pe=!1;
27110
- function qe(a,b){switch(a){case "keyup":return-1!==ie.indexOf(b.keyCode);case "keydown":return 229!==b.keyCode;case "keypress":case "mousedown":case "blur":return!0;default:return!1}}function re(a){a=a.detail;return"object"===typeof a&&"data"in a?a.data:null}var se=!1;function te(a,b){switch(a){case "compositionend":return re(b);case "keypress":if(32!==b.which)return null;pe=!0;return ne;case "textInput":return a=b.data,a===ne&&pe?null:a;default:return null}}
27111
- function ue(a,b){if(se)return"compositionend"===a||!je&&qe(a,b)?(a=ae(),$d=Zd=Yd=null,se=!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 me&&"ko"!==b.locale?null:b.data;default:return null}}
27112
- var ve={eventTypes:oe,extractEvents:function(a,b,c,d){var e;if(je)b:{switch(a){case "compositionstart":var f=oe.compositionStart;break b;case "compositionend":f=oe.compositionEnd;break b;case "compositionupdate":f=oe.compositionUpdate;break b}f=void 0}else se?qe(a,c)&&(f=oe.compositionEnd):"keydown"===a&&229===c.keyCode&&(f=oe.compositionStart);f?(me&&"ko"!==c.locale&&(se||f!==oe.compositionStart?f===oe.compositionEnd&&se&&(e=ae()):(Yd=d,Zd="value"in Yd?Yd.value:Yd.textContent,se=!0)),f=ge.getPooled(f,
27113
- b,c,d),e?f.data=e:(e=re(c),null!==e&&(f.data=e)),Xd(f),e=f):e=null;(a=le?te(a,c):ue(a,c))?(b=he.getPooled(oe.beforeInput,b,c,d),b.data=a,Xd(b)):b=null;return null===e?b:null===b?e:[e,b]}},we={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 xe(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return"input"===b?!!we[a.type]:"textarea"===b?!0:!1}
27114
- var ye={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function ze(a,b,c){a=G.getPooled(ye.change,a,b,c);a.type="change";Da(c);Xd(a);return a}var Ae=null,Be=null;function Ce(a){mc(a)}function De(a){var b=Pd(a);if(yb(b))return a}function Ee(a,b){if("change"===a)return b}var Fe=!1;ya&&(Fe=oc("input")&&(!document.documentMode||9<document.documentMode));
27115
- function Ge(){Ae&&(Ae.detachEvent("onpropertychange",He),Be=Ae=null)}function He(a){if("value"===a.propertyName&&De(Be))if(a=ze(Be,a,nc(a)),Ja)mc(a);else{Ja=!0;try{Fa(Ce,a)}finally{Ja=!1,La()}}}function Ie(a,b,c){"focus"===a?(Ge(),Ae=b,Be=c,Ae.attachEvent("onpropertychange",He)):"blur"===a&&Ge()}function Je(a){if("selectionchange"===a||"keyup"===a||"keydown"===a)return De(Be)}function Ke(a,b){if("click"===a)return De(b)}function Le(a,b){if("input"===a||"change"===a)return De(b)}
27116
- var Me={eventTypes:ye,_isInputEventSupported:Fe,extractEvents:function(a,b,c,d){var e=b?Pd(b):window,f=e.nodeName&&e.nodeName.toLowerCase();if("select"===f||"input"===f&&"file"===e.type)var g=Ee;else if(xe(e))if(Fe)g=Le;else{g=Je;var h=Ie}else(f=e.nodeName)&&"input"===f.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)&&(g=Ke);if(g&&(g=g(a,b)))return ze(g,c,d);h&&h(a,e,b);"blur"===a&&(a=e._wrapperState)&&a.controlled&&"number"===e.type&&Db(e,"number",e.value)}},Ne=G.extend({view:null,detail:null}),
27117
- Oe={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pe(a){var b=this.nativeEvent;return b.getModifierState?b.getModifierState(a):(a=Oe[a])?!!b[a]:!1}function Qe(){return Pe}
27118
- var Re=0,Se=0,Te=!1,Ue=!1,Ve=Ne.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Qe,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=Re;Re=a.screenX;return Te?"mousemove"===a.type?a.screenX-b:0:(Te=!0,0)},movementY:function(a){if("movementY"in a)return a.movementY;
27119
- var b=Se;Se=a.screenY;return Ue?"mousemove"===a.type?a.screenY-b:0:(Ue=!0,0)}}),We=Ve.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Xe={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",
27120
- dependencies:["pointerout","pointerover"]}},Ye={eventTypes:Xe,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;f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window;if(g){if(g=b,b=(b=c.relatedTarget||c.toElement)?tc(b):null,null!==b){var h=dc(b);if(b!==h||5!==b.tag&&6!==b.tag)b=null}}else g=null;if(g===b)return null;if("mouseout"===a||"mouseover"===
27121
- a){var k=Ve;var l=Xe.mouseLeave;var m=Xe.mouseEnter;var p="mouse"}else if("pointerout"===a||"pointerover"===a)k=We,l=Xe.pointerLeave,m=Xe.pointerEnter,p="pointer";a=null==g?f:Pd(g);f=null==b?f:Pd(b);l=k.getPooled(l,g,c,d);l.type=p+"leave";l.target=a;l.relatedTarget=f;c=k.getPooled(m,b,c,d);c.type=p+"enter";c.target=f;c.relatedTarget=a;d=g;p=b;if(d&&p)a:{k=d;m=p;g=0;for(a=k;a;a=Rd(a))g++;a=0;for(b=m;b;b=Rd(b))a++;for(;0<g-a;)k=Rd(k),g--;for(;0<a-g;)m=Rd(m),a--;for(;g--;){if(k===m||k===m.alternate)break a;
27122
- k=Rd(k);m=Rd(m)}k=null}else k=null;m=k;for(k=[];d&&d!==m;){g=d.alternate;if(null!==g&&g===m)break;k.push(d);d=Rd(d)}for(d=[];p&&p!==m;){g=p.alternate;if(null!==g&&g===m)break;d.push(p);p=Rd(p)}for(p=0;p<k.length;p++)Vd(k[p],"bubbled",l);for(p=d.length;0<p--;)Vd(d[p],"captured",c);return 0===(e&64)?[l]:[l,c]}};function Ze(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var $e="function"===typeof Object.is?Object.is:Ze,af=Object.prototype.hasOwnProperty;
27123
- function bf(a,b){if($e(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(!af.call(b,c[d])||!$e(a[c[d]],b[c[d]]))return!1;return!0}
27124
- var cf=ya&&"documentMode"in document&&11>=document.documentMode,df={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},ef=null,ff=null,gf=null,hf=!1;
27125
- function jf(a,b){var c=b.window===b?b.document:9===b.nodeType?b:b.ownerDocument;if(hf||null==ef||ef!==td(c))return null;c=ef;"selectionStart"in c&&yd(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 gf&&bf(gf,c)?null:(gf=c,a=G.getPooled(df.select,ff,a,b),a.type="select",a.target=ef,Xd(a),a)}
27126
- var kf={eventTypes:df,extractEvents:function(a,b,c,d,e,f){e=f||(d.window===d?d.document:9===d.nodeType?d:d.ownerDocument);if(!(f=!e)){a:{e=cc(e);f=wa.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?Pd(b):window;switch(a){case "focus":if(xe(e)||"true"===e.contentEditable)ef=e,ff=b,gf=null;break;case "blur":gf=ff=ef=null;break;case "mousedown":hf=!0;break;case "contextmenu":case "mouseup":case "dragend":return hf=!1,jf(c,d);case "selectionchange":if(cf)break;
27127
- case "keydown":case "keyup":return jf(c,d)}return null}},lf=G.extend({animationName:null,elapsedTime:null,pseudoElement:null}),mf=G.extend({clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),nf=Ne.extend({relatedTarget:null});function of(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}
27128
- var pf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qf={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",
27129
- 116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},rf=Ne.extend({key:function(a){if(a.key){var b=pf[a.key]||a.key;if("Unidentified"!==b)return b}return"keypress"===a.type?(a=of(a),13===a?"Enter":String.fromCharCode(a)):"keydown"===a.type||"keyup"===a.type?qf[a.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Qe,charCode:function(a){return"keypress"===
27130
- a.type?of(a):0},keyCode:function(a){return"keydown"===a.type||"keyup"===a.type?a.keyCode:0},which:function(a){return"keypress"===a.type?of(a):"keydown"===a.type||"keyup"===a.type?a.keyCode:0}}),sf=Ve.extend({dataTransfer:null}),tf=Ne.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:nul
1
+ /******/ (function(modules) { // webpackBootstrap
2
+ /******/ // 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 = 425);
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__(426);
75
+ } else {
76
+ module.exports = __webpack_require__(427);
 
 
 
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__(16);
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__(437)(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__(438)();
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__(43);
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
+
356
+ if (typeof mix === 'string' || typeof mix === 'number') {
357
+ str += mix;
358
+ } else if (typeof mix === 'object') {
359
+ if (Array.isArray(mix)) {
360
+ for (k=0; k < mix.length; k++) {
361
+ if (mix[k]) {
362
+ if (y = toVal(mix[k])) {
363
+ str && (str += ' ');
364
+ str += y;
365
+ }
366
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
367
  }
368
+ } else {
369
+ for (k in mix) {
370
+ if (mix[k]) {
371
+ str && (str += ' ');
372
+ str += k;
373
+ }
374
  }
375
+ }
 
376
  }
377
+
378
+ return str;
379
+ }
380
+
381
+ /* harmony default export */ __webpack_exports__["a"] = (function () {
382
+ var i=0, tmp, x, str='';
383
+ while (i < arguments.length) {
384
+ if (tmp = arguments[i++]) {
385
+ if (x = toVal(tmp)) {
386
+ str && (str += ' ');
387
+ str += x
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
388
  }
389
+ }
 
 
 
 
390
  }
391
+ return str;
392
+ });
393
+
394
+
395
+ /***/ }),
396
+ /* 6 */
397
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
398
+
399
+ "use strict";
400
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__ = __webpack_require__(3);
401
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__material_ui_styles__ = __webpack_require__(24);
402
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__defaultTheme__ = __webpack_require__(72);
403
+
404
+
405
+
406
+
407
+ function withStyles(stylesOrCreator, options) {
408
+ return Object(__WEBPACK_IMPORTED_MODULE_1__material_ui_styles__["g" /* withStyles */])(stylesOrCreator, Object(__WEBPACK_IMPORTED_MODULE_0__babel_runtime_helpers_esm_extends__["a" /* default */])({
409
+ defaultTheme: __WEBPACK_IMPORTED_MODULE_2__defaultTheme__["a" /* default */]
410
+ }, options));
411
+ }
412
+
413
+ /* harmony default export */ __webpack_exports__["a"] = (withStyles);
414
+
415
+ /***/ }),
416
+ /* 7 */
417
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
418
+
419
+ "use strict";
420
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__chainPropTypes__ = __webpack_require__(130);
421
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__chainPropTypes__["a"]; });
422
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__deepmerge__ = __webpack_require__(456);
423
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_1__deepmerge__["a"]; });
424
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__elementAcceptingRef__ = __webpack_require__(457);
425
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_2__elementAcceptingRef__["a"]; });
426
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__elementTypeAcceptingRef__ = __webpack_require__(458);
427
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return __WEBPACK_IMPORTED_MODULE_3__elementTypeAcceptingRef__["a"]; });
428
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__exactProp__ = __webpack_require__(459);
429
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return __WEBPACK_IMPORTED_MODULE_4__exactProp__["a"]; });
430
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__formatMuiErrorMessage__ = __webpack_require__(460);
431
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return __WEBPACK_IMPORTED_MODULE_5__formatMuiErrorMessage__["a"]; });
432
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__getDisplayName__ = __webpack_require__(461);
433
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return __WEBPACK_IMPORTED_MODULE_6__getDisplayName__["a"]; });
434
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__HTMLElementType__ = __webpack_require__(462);
435
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_7__HTMLElementType__["a"]; });
436
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__ponyfillGlobal__ = __webpack_require__(463);
437
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return __WEBPACK_IMPORTED_MODULE_8__ponyfillGlobal__["a"]; });
438
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__refType__ = __webpack_require__(464);
439
+ /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return __WEBPACK_IMPORTED_MODULE_9__refType__["a"]; });
440
+ /** @license Material-UI v4.11.2
441
+ *
442
+ * This source code is licensed under the MIT license found in the
443
+ * LICENSE file in the root directory of this source tree.
444
+ */
445
+
446
+
447
+
448
+
449
+
450
+
451
+
452
+
453
+
454
+
455
+
456
+ /***/ }),
457
+ /* 8 */
458
+ /***/ (function(module, exports, __webpack_require__) {
459
+
460
+ "use strict";
461
+
462
+
463
+ Object.defineProperty(exports, "__esModule", {
464
+ value: true
465
+ });
466
+ exports.ReactCSS = exports.loop = exports.handleActive = exports.handleHover = exports.hover = undefined;
467
+
468
+ var _flattenNames = __webpack_require__(760);
469
+
470
+ var _flattenNames2 = _interopRequireDefault(_flattenNames);
471
+
472
+ var _mergeClasses = __webpack_require__(836);
473
+
474
+ var _mergeClasses2 = _interopRequireDefault(_mergeClasses);
475
+
476
+ var _autoprefix = __webpack_require__(862);
477
+
478
+ var _autoprefix2 = _interopRequireDefault(_autoprefix);
479
+
480
+ var _hover2 = __webpack_require__(863);
481
+
482
+ var _hover3 = _interopRequireDefault(_hover2);
483
+
484
+ var _active = __webpack_require__(864);
485
+
486
+ var _active2 = _interopRequireDefault(_active);
487
+
488
+ var _loop2 = __webpack_require__(865);
489
+
490
+ var _loop3 = _interopRequireDefault(_loop2);
491
+
492
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
493
+
494
+ exports.hover = _hover3.default;
495
+ exports.handleHover = _hover3.default;
496
+ exports.handleActive = _active2.default;
497
+ exports.loop = _loop3.default;
498
+ var ReactCSS = exports.ReactCSS = function ReactCSS(classes) {
499
+ for (var _len = arguments.length, activations = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
500
+ activations[_key - 1] = arguments[_key];
501
+ }
502
+
503
+ var activeNames = (0, _flattenNames2.default)(activations);
504
+ var merged = (0, _mergeClasses2.default)(classes, activeNames);
505
+ return (0, _autoprefix2.default)(merged);
506
  };