willba-component-library 0.0.56 → 0.0.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.esm.js CHANGED
@@ -1,2999 +1,6 @@
1
1
  import * as React__default from 'react';
2
2
  import React__default__default, { useState, createContext, useContext, useRef, useEffect, forwardRef } from 'react';
3
3
 
4
- function ownKeys$1(object, enumerableOnly) {
5
- var keys = Object.keys(object);
6
-
7
- if (Object.getOwnPropertySymbols) {
8
- var symbols = Object.getOwnPropertySymbols(object);
9
- enumerableOnly && (symbols = symbols.filter(function (sym) {
10
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
11
- })), keys.push.apply(keys, symbols);
12
- }
13
-
14
- return keys;
15
- }
16
-
17
- function _objectSpread2$1(target) {
18
- for (var i = 1; i < arguments.length; i++) {
19
- var source = null != arguments[i] ? arguments[i] : {};
20
- i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
21
- _defineProperty$1(target, key, source[key]);
22
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) {
23
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
24
- });
25
- }
26
-
27
- return target;
28
- }
29
-
30
- function _typeof$2(obj) {
31
- "@babel/helpers - typeof";
32
-
33
- return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
34
- return typeof obj;
35
- } : function (obj) {
36
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
37
- }, _typeof$2(obj);
38
- }
39
-
40
- function _classCallCheck(instance, Constructor) {
41
- if (!(instance instanceof Constructor)) {
42
- throw new TypeError("Cannot call a class as a function");
43
- }
44
- }
45
-
46
- function _defineProperties(target, props) {
47
- for (var i = 0; i < props.length; i++) {
48
- var descriptor = props[i];
49
- descriptor.enumerable = descriptor.enumerable || false;
50
- descriptor.configurable = true;
51
- if ("value" in descriptor) descriptor.writable = true;
52
- Object.defineProperty(target, descriptor.key, descriptor);
53
- }
54
- }
55
-
56
- function _createClass(Constructor, protoProps, staticProps) {
57
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
58
- if (staticProps) _defineProperties(Constructor, staticProps);
59
- Object.defineProperty(Constructor, "prototype", {
60
- writable: false
61
- });
62
- return Constructor;
63
- }
64
-
65
- function _defineProperty$1(obj, key, value) {
66
- if (key in obj) {
67
- Object.defineProperty(obj, key, {
68
- value: value,
69
- enumerable: true,
70
- configurable: true,
71
- writable: true
72
- });
73
- } else {
74
- obj[key] = value;
75
- }
76
-
77
- return obj;
78
- }
79
-
80
- function _slicedToArray(arr, i) {
81
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest();
82
- }
83
-
84
- function _toConsumableArray$1(arr) {
85
- return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1();
86
- }
87
-
88
- function _arrayWithoutHoles$1(arr) {
89
- if (Array.isArray(arr)) return _arrayLikeToArray$1(arr);
90
- }
91
-
92
- function _arrayWithHoles(arr) {
93
- if (Array.isArray(arr)) return arr;
94
- }
95
-
96
- function _iterableToArray$1(iter) {
97
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
98
- }
99
-
100
- function _iterableToArrayLimit(arr, i) {
101
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
102
-
103
- if (_i == null) return;
104
- var _arr = [];
105
- var _n = true;
106
- var _d = false;
107
-
108
- var _s, _e;
109
-
110
- try {
111
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
112
- _arr.push(_s.value);
113
-
114
- if (i && _arr.length === i) break;
115
- }
116
- } catch (err) {
117
- _d = true;
118
- _e = err;
119
- } finally {
120
- try {
121
- if (!_n && _i["return"] != null) _i["return"]();
122
- } finally {
123
- if (_d) throw _e;
124
- }
125
- }
126
-
127
- return _arr;
128
- }
129
-
130
- function _unsupportedIterableToArray$1(o, minLen) {
131
- if (!o) return;
132
- if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
133
- var n = Object.prototype.toString.call(o).slice(8, -1);
134
- if (n === "Object" && o.constructor) n = o.constructor.name;
135
- if (n === "Map" || n === "Set") return Array.from(o);
136
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
137
- }
138
-
139
- function _arrayLikeToArray$1(arr, len) {
140
- if (len == null || len > arr.length) len = arr.length;
141
-
142
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
143
-
144
- return arr2;
145
- }
146
-
147
- function _nonIterableSpread$1() {
148
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
149
- }
150
-
151
- function _nonIterableRest() {
152
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
153
- }
154
-
155
- var noop$1 = function noop() {};
156
-
157
- var _WINDOW = {};
158
- var _DOCUMENT = {};
159
- var _MUTATION_OBSERVER = null;
160
- var _PERFORMANCE = {
161
- mark: noop$1,
162
- measure: noop$1
163
- };
164
-
165
- try {
166
- if (typeof window !== 'undefined') _WINDOW = window;
167
- if (typeof document !== 'undefined') _DOCUMENT = document;
168
- if (typeof MutationObserver !== 'undefined') _MUTATION_OBSERVER = MutationObserver;
169
- if (typeof performance !== 'undefined') _PERFORMANCE = performance;
170
- } catch (e) {}
171
-
172
- var _ref = _WINDOW.navigator || {},
173
- _ref$userAgent = _ref.userAgent,
174
- userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
175
- var WINDOW = _WINDOW;
176
- var DOCUMENT = _DOCUMENT;
177
- var MUTATION_OBSERVER = _MUTATION_OBSERVER;
178
- var PERFORMANCE = _PERFORMANCE;
179
- !!WINDOW.document;
180
- var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
181
- var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
182
-
183
- var _familyProxy, _familyProxy2, _familyProxy3, _familyProxy4, _familyProxy5;
184
-
185
- var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
186
- var UNITS_IN_GRID = 16;
187
- var DEFAULT_CSS_PREFIX = 'fa';
188
- var DEFAULT_REPLACEMENT_CLASS = 'svg-inline--fa';
189
- var DATA_FA_I2SVG = 'data-fa-i2svg';
190
- var DATA_FA_PSEUDO_ELEMENT = 'data-fa-pseudo-element';
191
- var DATA_FA_PSEUDO_ELEMENT_PENDING = 'data-fa-pseudo-element-pending';
192
- var DATA_PREFIX = 'data-prefix';
193
- var DATA_ICON = 'data-icon';
194
- var HTML_CLASS_I2SVG_BASE_CLASS = 'fontawesome-i2svg';
195
- var MUTATION_APPROACH_ASYNC = 'async';
196
- var TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ['HTML', 'HEAD', 'STYLE', 'SCRIPT'];
197
- var PRODUCTION$1 = function () {
198
- try {
199
- return process.env.NODE_ENV === 'production';
200
- } catch (e) {
201
- return false;
202
- }
203
- }();
204
- var FAMILY_CLASSIC = 'classic';
205
- var FAMILY_SHARP = 'sharp';
206
- var FAMILIES = [FAMILY_CLASSIC, FAMILY_SHARP];
207
-
208
- function familyProxy(obj) {
209
- // Defaults to the classic family if family is not available
210
- return new Proxy(obj, {
211
- get: function get(target, prop) {
212
- return prop in target ? target[prop] : target[FAMILY_CLASSIC];
213
- }
214
- });
215
- }
216
- var PREFIX_TO_STYLE = familyProxy((_familyProxy = {}, _defineProperty$1(_familyProxy, FAMILY_CLASSIC, {
217
- 'fa': 'solid',
218
- 'fas': 'solid',
219
- 'fa-solid': 'solid',
220
- 'far': 'regular',
221
- 'fa-regular': 'regular',
222
- 'fal': 'light',
223
- 'fa-light': 'light',
224
- 'fat': 'thin',
225
- 'fa-thin': 'thin',
226
- 'fad': 'duotone',
227
- 'fa-duotone': 'duotone',
228
- 'fab': 'brands',
229
- 'fa-brands': 'brands',
230
- 'fak': 'kit',
231
- 'fa-kit': 'kit'
232
- }), _defineProperty$1(_familyProxy, FAMILY_SHARP, {
233
- 'fa': 'solid',
234
- 'fass': 'solid',
235
- 'fa-solid': 'solid',
236
- 'fasr': 'regular',
237
- 'fa-regular': 'regular',
238
- 'fasl': 'light',
239
- 'fa-light': 'light'
240
- }), _familyProxy));
241
- var STYLE_TO_PREFIX = familyProxy((_familyProxy2 = {}, _defineProperty$1(_familyProxy2, FAMILY_CLASSIC, {
242
- 'solid': 'fas',
243
- 'regular': 'far',
244
- 'light': 'fal',
245
- 'thin': 'fat',
246
- 'duotone': 'fad',
247
- 'brands': 'fab',
248
- 'kit': 'fak'
249
- }), _defineProperty$1(_familyProxy2, FAMILY_SHARP, {
250
- 'solid': 'fass',
251
- 'regular': 'fasr',
252
- 'light': 'fasl'
253
- }), _familyProxy2));
254
- var PREFIX_TO_LONG_STYLE = familyProxy((_familyProxy3 = {}, _defineProperty$1(_familyProxy3, FAMILY_CLASSIC, {
255
- 'fab': 'fa-brands',
256
- 'fad': 'fa-duotone',
257
- 'fak': 'fa-kit',
258
- 'fal': 'fa-light',
259
- 'far': 'fa-regular',
260
- 'fas': 'fa-solid',
261
- 'fat': 'fa-thin'
262
- }), _defineProperty$1(_familyProxy3, FAMILY_SHARP, {
263
- 'fass': 'fa-solid',
264
- 'fasr': 'fa-regular',
265
- 'fasl': 'fa-light'
266
- }), _familyProxy3));
267
- var LONG_STYLE_TO_PREFIX = familyProxy((_familyProxy4 = {}, _defineProperty$1(_familyProxy4, FAMILY_CLASSIC, {
268
- 'fa-brands': 'fab',
269
- 'fa-duotone': 'fad',
270
- 'fa-kit': 'fak',
271
- 'fa-light': 'fal',
272
- 'fa-regular': 'far',
273
- 'fa-solid': 'fas',
274
- 'fa-thin': 'fat'
275
- }), _defineProperty$1(_familyProxy4, FAMILY_SHARP, {
276
- 'fa-solid': 'fass',
277
- 'fa-regular': 'fasr',
278
- 'fa-light': 'fasl'
279
- }), _familyProxy4));
280
- var ICON_SELECTION_SYNTAX_PATTERN = /fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/; // eslint-disable-line no-useless-escape
281
-
282
- var LAYERS_TEXT_CLASSNAME = 'fa-layers-text';
283
- var FONT_FAMILY_PATTERN = /Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i;
284
- var FONT_WEIGHT_TO_PREFIX = familyProxy((_familyProxy5 = {}, _defineProperty$1(_familyProxy5, FAMILY_CLASSIC, {
285
- '900': 'fas',
286
- '400': 'far',
287
- 'normal': 'far',
288
- '300': 'fal',
289
- '100': 'fat'
290
- }), _defineProperty$1(_familyProxy5, FAMILY_SHARP, {
291
- '900': 'fass',
292
- '400': 'fasr',
293
- '300': 'fasl'
294
- }), _familyProxy5));
295
- var oneToTen = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
296
- var oneToTwenty = oneToTen.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]);
297
- var ATTRIBUTES_WATCHED_FOR_MUTATION = ['class', 'data-prefix', 'data-icon', 'data-fa-transform', 'data-fa-mask'];
298
- var DUOTONE_CLASSES = {
299
- GROUP: 'duotone-group',
300
- SWAP_OPACITY: 'swap-opacity',
301
- PRIMARY: 'primary',
302
- SECONDARY: 'secondary'
303
- };
304
- var prefixes = new Set();
305
- Object.keys(STYLE_TO_PREFIX[FAMILY_CLASSIC]).map(prefixes.add.bind(prefixes));
306
- Object.keys(STYLE_TO_PREFIX[FAMILY_SHARP]).map(prefixes.add.bind(prefixes));
307
- var RESERVED_CLASSES = [].concat(FAMILIES, _toConsumableArray$1(prefixes), ['2xs', 'xs', 'sm', 'lg', 'xl', '2xl', 'beat', 'border', 'fade', 'beat-fade', 'bounce', 'flip-both', 'flip-horizontal', 'flip-vertical', 'flip', 'fw', 'inverse', 'layers-counter', 'layers-text', 'layers', 'li', 'pull-left', 'pull-right', 'pulse', 'rotate-180', 'rotate-270', 'rotate-90', 'rotate-by', 'shake', 'spin-pulse', 'spin-reverse', 'spin', 'stack-1x', 'stack-2x', 'stack', 'ul', DUOTONE_CLASSES.GROUP, DUOTONE_CLASSES.SWAP_OPACITY, DUOTONE_CLASSES.PRIMARY, DUOTONE_CLASSES.SECONDARY]).concat(oneToTen.map(function (n) {
308
- return "".concat(n, "x");
309
- })).concat(oneToTwenty.map(function (n) {
310
- return "w-".concat(n);
311
- }));
312
-
313
- var initial = WINDOW.FontAwesomeConfig || {};
314
-
315
- function getAttrConfig(attr) {
316
- var element = DOCUMENT.querySelector('script[' + attr + ']');
317
-
318
- if (element) {
319
- return element.getAttribute(attr);
320
- }
321
- }
322
-
323
- function coerce(val) {
324
- // Getting an empty string will occur if the attribute is set on the HTML tag but without a value
325
- // We'll assume that this is an indication that it should be toggled to true
326
- if (val === '') return true;
327
- if (val === 'false') return false;
328
- if (val === 'true') return true;
329
- return val;
330
- }
331
-
332
- if (DOCUMENT && typeof DOCUMENT.querySelector === 'function') {
333
- var attrs = [['data-family-prefix', 'familyPrefix'], ['data-css-prefix', 'cssPrefix'], ['data-family-default', 'familyDefault'], ['data-style-default', 'styleDefault'], ['data-replacement-class', 'replacementClass'], ['data-auto-replace-svg', 'autoReplaceSvg'], ['data-auto-add-css', 'autoAddCss'], ['data-auto-a11y', 'autoA11y'], ['data-search-pseudo-elements', 'searchPseudoElements'], ['data-observe-mutations', 'observeMutations'], ['data-mutate-approach', 'mutateApproach'], ['data-keep-original-source', 'keepOriginalSource'], ['data-measure-performance', 'measurePerformance'], ['data-show-missing-icons', 'showMissingIcons']];
334
- attrs.forEach(function (_ref) {
335
- var _ref2 = _slicedToArray(_ref, 2),
336
- attr = _ref2[0],
337
- key = _ref2[1];
338
-
339
- var val = coerce(getAttrConfig(attr));
340
-
341
- if (val !== undefined && val !== null) {
342
- initial[key] = val;
343
- }
344
- });
345
- }
346
-
347
- var _default = {
348
- styleDefault: 'solid',
349
- familyDefault: 'classic',
350
- cssPrefix: DEFAULT_CSS_PREFIX,
351
- replacementClass: DEFAULT_REPLACEMENT_CLASS,
352
- autoReplaceSvg: true,
353
- autoAddCss: true,
354
- autoA11y: true,
355
- searchPseudoElements: false,
356
- observeMutations: true,
357
- mutateApproach: 'async',
358
- keepOriginalSource: true,
359
- measurePerformance: false,
360
- showMissingIcons: true
361
- }; // familyPrefix is deprecated but we must still support it if present
362
-
363
- if (initial.familyPrefix) {
364
- initial.cssPrefix = initial.familyPrefix;
365
- }
366
-
367
- var _config = _objectSpread2$1(_objectSpread2$1({}, _default), initial);
368
-
369
- if (!_config.autoReplaceSvg) _config.observeMutations = false;
370
- var config = {};
371
- Object.keys(_default).forEach(function (key) {
372
- Object.defineProperty(config, key, {
373
- enumerable: true,
374
- set: function set(val) {
375
- _config[key] = val;
376
-
377
- _onChangeCb.forEach(function (cb) {
378
- return cb(config);
379
- });
380
- },
381
- get: function get() {
382
- return _config[key];
383
- }
384
- });
385
- }); // familyPrefix is deprecated as of 6.2.0 and should be removed in 7.0.0
386
-
387
- Object.defineProperty(config, 'familyPrefix', {
388
- enumerable: true,
389
- set: function set(val) {
390
- _config.cssPrefix = val;
391
-
392
- _onChangeCb.forEach(function (cb) {
393
- return cb(config);
394
- });
395
- },
396
- get: function get() {
397
- return _config.cssPrefix;
398
- }
399
- });
400
- WINDOW.FontAwesomeConfig = config;
401
- var _onChangeCb = [];
402
- function onChange(cb) {
403
- _onChangeCb.push(cb);
404
-
405
- return function () {
406
- _onChangeCb.splice(_onChangeCb.indexOf(cb), 1);
407
- };
408
- }
409
-
410
- var d = UNITS_IN_GRID;
411
- var meaninglessTransform = {
412
- size: 16,
413
- x: 0,
414
- y: 0,
415
- rotate: 0,
416
- flipX: false,
417
- flipY: false
418
- };
419
- function insertCss(css) {
420
- if (!css || !IS_DOM) {
421
- return;
422
- }
423
-
424
- var style = DOCUMENT.createElement('style');
425
- style.setAttribute('type', 'text/css');
426
- style.innerHTML = css;
427
- var headChildren = DOCUMENT.head.childNodes;
428
- var beforeChild = null;
429
-
430
- for (var i = headChildren.length - 1; i > -1; i--) {
431
- var child = headChildren[i];
432
- var tagName = (child.tagName || '').toUpperCase();
433
-
434
- if (['STYLE', 'LINK'].indexOf(tagName) > -1) {
435
- beforeChild = child;
436
- }
437
- }
438
-
439
- DOCUMENT.head.insertBefore(style, beforeChild);
440
- return css;
441
- }
442
- var idPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
443
- function nextUniqueId() {
444
- var size = 12;
445
- var id = '';
446
-
447
- while (size-- > 0) {
448
- id += idPool[Math.random() * 62 | 0];
449
- }
450
-
451
- return id;
452
- }
453
- function toArray(obj) {
454
- var array = [];
455
-
456
- for (var i = (obj || []).length >>> 0; i--;) {
457
- array[i] = obj[i];
458
- }
459
-
460
- return array;
461
- }
462
- function classArray(node) {
463
- if (node.classList) {
464
- return toArray(node.classList);
465
- } else {
466
- return (node.getAttribute('class') || '').split(' ').filter(function (i) {
467
- return i;
468
- });
469
- }
470
- }
471
- function htmlEscape(str) {
472
- return "".concat(str).replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, '&#39;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
473
- }
474
- function joinAttributes(attributes) {
475
- return Object.keys(attributes || {}).reduce(function (acc, attributeName) {
476
- return acc + "".concat(attributeName, "=\"").concat(htmlEscape(attributes[attributeName]), "\" ");
477
- }, '').trim();
478
- }
479
- function joinStyles(styles) {
480
- return Object.keys(styles || {}).reduce(function (acc, styleName) {
481
- return acc + "".concat(styleName, ": ").concat(styles[styleName].trim(), ";");
482
- }, '');
483
- }
484
- function transformIsMeaningful(transform) {
485
- return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;
486
- }
487
- function transformForSvg(_ref) {
488
- var transform = _ref.transform,
489
- containerWidth = _ref.containerWidth,
490
- iconWidth = _ref.iconWidth;
491
- var outer = {
492
- transform: "translate(".concat(containerWidth / 2, " 256)")
493
- };
494
- var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
495
- var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
496
- var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
497
- var inner = {
498
- transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
499
- };
500
- var path = {
501
- transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
502
- };
503
- return {
504
- outer: outer,
505
- inner: inner,
506
- path: path
507
- };
508
- }
509
- function transformForCss(_ref2) {
510
- var transform = _ref2.transform,
511
- _ref2$width = _ref2.width,
512
- width = _ref2$width === void 0 ? UNITS_IN_GRID : _ref2$width,
513
- _ref2$height = _ref2.height,
514
- height = _ref2$height === void 0 ? UNITS_IN_GRID : _ref2$height,
515
- _ref2$startCentered = _ref2.startCentered,
516
- startCentered = _ref2$startCentered === void 0 ? false : _ref2$startCentered;
517
- var val = '';
518
-
519
- if (startCentered && IS_IE) {
520
- val += "translate(".concat(transform.x / d - width / 2, "em, ").concat(transform.y / d - height / 2, "em) ");
521
- } else if (startCentered) {
522
- val += "translate(calc(-50% + ".concat(transform.x / d, "em), calc(-50% + ").concat(transform.y / d, "em)) ");
523
- } else {
524
- val += "translate(".concat(transform.x / d, "em, ").concat(transform.y / d, "em) ");
525
- }
526
-
527
- val += "scale(".concat(transform.size / d * (transform.flipX ? -1 : 1), ", ").concat(transform.size / d * (transform.flipY ? -1 : 1), ") ");
528
- val += "rotate(".concat(transform.rotate, "deg) ");
529
- return val;
530
- }
531
-
532
- var baseStyles = ":root, :host {\n --fa-font-solid: normal 900 1em/1 \"Font Awesome 6 Solid\";\n --fa-font-regular: normal 400 1em/1 \"Font Awesome 6 Regular\";\n --fa-font-light: normal 300 1em/1 \"Font Awesome 6 Light\";\n --fa-font-thin: normal 100 1em/1 \"Font Awesome 6 Thin\";\n --fa-font-duotone: normal 900 1em/1 \"Font Awesome 6 Duotone\";\n --fa-font-sharp-solid: normal 900 1em/1 \"Font Awesome 6 Sharp\";\n --fa-font-sharp-regular: normal 400 1em/1 \"Font Awesome 6 Sharp\";\n --fa-font-sharp-light: normal 300 1em/1 \"Font Awesome 6 Sharp\";\n --fa-font-brands: normal 400 1em/1 \"Font Awesome 6 Brands\";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}";
533
-
534
- function css() {
535
- var dcp = DEFAULT_CSS_PREFIX;
536
- var drc = DEFAULT_REPLACEMENT_CLASS;
537
- var fp = config.cssPrefix;
538
- var rc = config.replacementClass;
539
- var s = baseStyles;
540
-
541
- if (fp !== dcp || rc !== drc) {
542
- var dPatt = new RegExp("\\.".concat(dcp, "\\-"), 'g');
543
- var customPropPatt = new RegExp("\\--".concat(dcp, "\\-"), 'g');
544
- var rPatt = new RegExp("\\.".concat(drc), 'g');
545
- s = s.replace(dPatt, ".".concat(fp, "-")).replace(customPropPatt, "--".concat(fp, "-")).replace(rPatt, ".".concat(rc));
546
- }
547
-
548
- return s;
549
- }
550
-
551
- var _cssInserted = false;
552
-
553
- function ensureCss() {
554
- if (config.autoAddCss && !_cssInserted) {
555
- insertCss(css());
556
- _cssInserted = true;
557
- }
558
- }
559
-
560
- var InjectCSS = {
561
- mixout: function mixout() {
562
- return {
563
- dom: {
564
- css: css,
565
- insertCss: ensureCss
566
- }
567
- };
568
- },
569
- hooks: function hooks() {
570
- return {
571
- beforeDOMElementCreation: function beforeDOMElementCreation() {
572
- ensureCss();
573
- },
574
- beforeI2svg: function beforeI2svg() {
575
- ensureCss();
576
- }
577
- };
578
- }
579
- };
580
-
581
- var w = WINDOW || {};
582
- if (!w[NAMESPACE_IDENTIFIER]) w[NAMESPACE_IDENTIFIER] = {};
583
- if (!w[NAMESPACE_IDENTIFIER].styles) w[NAMESPACE_IDENTIFIER].styles = {};
584
- if (!w[NAMESPACE_IDENTIFIER].hooks) w[NAMESPACE_IDENTIFIER].hooks = {};
585
- if (!w[NAMESPACE_IDENTIFIER].shims) w[NAMESPACE_IDENTIFIER].shims = [];
586
- var namespace = w[NAMESPACE_IDENTIFIER];
587
-
588
- var functions = [];
589
-
590
- var listener = function listener() {
591
- DOCUMENT.removeEventListener('DOMContentLoaded', listener);
592
- loaded = 1;
593
- functions.map(function (fn) {
594
- return fn();
595
- });
596
- };
597
-
598
- var loaded = false;
599
-
600
- if (IS_DOM) {
601
- loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);
602
- if (!loaded) DOCUMENT.addEventListener('DOMContentLoaded', listener);
603
- }
604
-
605
- function domready (fn) {
606
- if (!IS_DOM) return;
607
- loaded ? setTimeout(fn, 0) : functions.push(fn);
608
- }
609
-
610
- function toHtml(abstractNodes) {
611
- var tag = abstractNodes.tag,
612
- _abstractNodes$attrib = abstractNodes.attributes,
613
- attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib,
614
- _abstractNodes$childr = abstractNodes.children,
615
- children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;
616
-
617
- if (typeof abstractNodes === 'string') {
618
- return htmlEscape(abstractNodes);
619
- } else {
620
- return "<".concat(tag, " ").concat(joinAttributes(attributes), ">").concat(children.map(toHtml).join(''), "</").concat(tag, ">");
621
- }
622
- }
623
-
624
- function iconFromMapping(mapping, prefix, iconName) {
625
- if (mapping && mapping[prefix] && mapping[prefix][iconName]) {
626
- return {
627
- prefix: prefix,
628
- iconName: iconName,
629
- icon: mapping[prefix][iconName]
630
- };
631
- }
632
- }
633
-
634
- /**
635
- * Internal helper to bind a function known to have 4 arguments
636
- * to a given context.
637
- */
638
-
639
- var bindInternal4 = function bindInternal4(func, thisContext) {
640
- return function (a, b, c, d) {
641
- return func.call(thisContext, a, b, c, d);
642
- };
643
- };
644
-
645
- /**
646
- * # Reduce
647
- *
648
- * A fast object `.reduce()` implementation.
649
- *
650
- * @param {Object} subject The object to reduce over.
651
- * @param {Function} fn The reducer function.
652
- * @param {mixed} initialValue The initial value for the reducer, defaults to subject[0].
653
- * @param {Object} thisContext The context for the reducer.
654
- * @return {mixed} The final result.
655
- */
656
-
657
-
658
- var reduce = function fastReduceObject(subject, fn, initialValue, thisContext) {
659
- var keys = Object.keys(subject),
660
- length = keys.length,
661
- iterator = thisContext !== undefined ? bindInternal4(fn, thisContext) : fn,
662
- i,
663
- key,
664
- result;
665
-
666
- if (initialValue === undefined) {
667
- i = 1;
668
- result = subject[keys[0]];
669
- } else {
670
- i = 0;
671
- result = initialValue;
672
- }
673
-
674
- for (; i < length; i++) {
675
- key = keys[i];
676
- result = iterator(result, subject[key], key, subject);
677
- }
678
-
679
- return result;
680
- };
681
-
682
- /**
683
- * ucs2decode() and codePointAt() are both works of Mathias Bynens and licensed under MIT
684
- *
685
- * Copyright Mathias Bynens <https://mathiasbynens.be/>
686
-
687
- * Permission is hereby granted, free of charge, to any person obtaining
688
- * a copy of this software and associated documentation files (the
689
- * "Software"), to deal in the Software without restriction, including
690
- * without limitation the rights to use, copy, modify, merge, publish,
691
- * distribute, sublicense, and/or sell copies of the Software, and to
692
- * permit persons to whom the Software is furnished to do so, subject to
693
- * the following conditions:
694
-
695
- * The above copyright notice and this permission notice shall be
696
- * included in all copies or substantial portions of the Software.
697
-
698
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
699
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
700
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
701
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
702
- * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
703
- * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
704
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
705
- */
706
- function ucs2decode(string) {
707
- var output = [];
708
- var counter = 0;
709
- var length = string.length;
710
-
711
- while (counter < length) {
712
- var value = string.charCodeAt(counter++);
713
-
714
- if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
715
- var extra = string.charCodeAt(counter++);
716
-
717
- if ((extra & 0xFC00) == 0xDC00) {
718
- // eslint-disable-line eqeqeq
719
- output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
720
- } else {
721
- output.push(value);
722
- counter--;
723
- }
724
- } else {
725
- output.push(value);
726
- }
727
- }
728
-
729
- return output;
730
- }
731
-
732
- function toHex(unicode) {
733
- var decoded = ucs2decode(unicode);
734
- return decoded.length === 1 ? decoded[0].toString(16) : null;
735
- }
736
- function codePointAt(string, index) {
737
- var size = string.length;
738
- var first = string.charCodeAt(index);
739
- var second;
740
-
741
- if (first >= 0xD800 && first <= 0xDBFF && size > index + 1) {
742
- second = string.charCodeAt(index + 1);
743
-
744
- if (second >= 0xDC00 && second <= 0xDFFF) {
745
- return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000;
746
- }
747
- }
748
-
749
- return first;
750
- }
751
-
752
- function normalizeIcons(icons) {
753
- return Object.keys(icons).reduce(function (acc, iconName) {
754
- var icon = icons[iconName];
755
- var expanded = !!icon.icon;
756
-
757
- if (expanded) {
758
- acc[icon.iconName] = icon.icon;
759
- } else {
760
- acc[iconName] = icon;
761
- }
762
-
763
- return acc;
764
- }, {});
765
- }
766
-
767
- function defineIcons(prefix, icons) {
768
- var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
769
- var _params$skipHooks = params.skipHooks,
770
- skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
771
- var normalized = normalizeIcons(icons);
772
-
773
- if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {
774
- namespace.hooks.addPack(prefix, normalizeIcons(icons));
775
- } else {
776
- namespace.styles[prefix] = _objectSpread2$1(_objectSpread2$1({}, namespace.styles[prefix] || {}), normalized);
777
- }
778
- /**
779
- * Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
780
- * of new styles we needed to differentiate between them. Prefix `fa` is now an alias
781
- * for `fas` so we'll ease the upgrade process for our users by automatically defining
782
- * this as well.
783
- */
784
-
785
-
786
- if (prefix === 'fas') {
787
- defineIcons('fa', icons);
788
- }
789
- }
790
-
791
- var _LONG_STYLE, _PREFIXES, _PREFIXES_FOR_FAMILY;
792
- var styles = namespace.styles,
793
- shims = namespace.shims;
794
- var LONG_STYLE = (_LONG_STYLE = {}, _defineProperty$1(_LONG_STYLE, FAMILY_CLASSIC, Object.values(PREFIX_TO_LONG_STYLE[FAMILY_CLASSIC])), _defineProperty$1(_LONG_STYLE, FAMILY_SHARP, Object.values(PREFIX_TO_LONG_STYLE[FAMILY_SHARP])), _LONG_STYLE);
795
- var _defaultUsablePrefix = null;
796
- var _byUnicode = {};
797
- var _byLigature = {};
798
- var _byOldName = {};
799
- var _byOldUnicode = {};
800
- var _byAlias = {};
801
- var PREFIXES = (_PREFIXES = {}, _defineProperty$1(_PREFIXES, FAMILY_CLASSIC, Object.keys(PREFIX_TO_STYLE[FAMILY_CLASSIC])), _defineProperty$1(_PREFIXES, FAMILY_SHARP, Object.keys(PREFIX_TO_STYLE[FAMILY_SHARP])), _PREFIXES);
802
-
803
- function isReserved(name) {
804
- return ~RESERVED_CLASSES.indexOf(name);
805
- }
806
-
807
- function getIconName(cssPrefix, cls) {
808
- var parts = cls.split('-');
809
- var prefix = parts[0];
810
- var iconName = parts.slice(1).join('-');
811
-
812
- if (prefix === cssPrefix && iconName !== '' && !isReserved(iconName)) {
813
- return iconName;
814
- } else {
815
- return null;
816
- }
817
- }
818
- var build = function build() {
819
- var lookup = function lookup(reducer) {
820
- return reduce(styles, function (o, style, prefix) {
821
- o[prefix] = reduce(style, reducer, {});
822
- return o;
823
- }, {});
824
- };
825
-
826
- _byUnicode = lookup(function (acc, icon, iconName) {
827
- if (icon[3]) {
828
- acc[icon[3]] = iconName;
829
- }
830
-
831
- if (icon[2]) {
832
- var aliases = icon[2].filter(function (a) {
833
- return typeof a === 'number';
834
- });
835
- aliases.forEach(function (alias) {
836
- acc[alias.toString(16)] = iconName;
837
- });
838
- }
839
-
840
- return acc;
841
- });
842
- _byLigature = lookup(function (acc, icon, iconName) {
843
- acc[iconName] = iconName;
844
-
845
- if (icon[2]) {
846
- var aliases = icon[2].filter(function (a) {
847
- return typeof a === 'string';
848
- });
849
- aliases.forEach(function (alias) {
850
- acc[alias] = iconName;
851
- });
852
- }
853
-
854
- return acc;
855
- });
856
- _byAlias = lookup(function (acc, icon, iconName) {
857
- var aliases = icon[2];
858
- acc[iconName] = iconName;
859
- aliases.forEach(function (alias) {
860
- acc[alias] = iconName;
861
- });
862
- return acc;
863
- }); // If we have a Kit, we can't determine if regular is available since we
864
- // could be auto-fetching it. We'll have to assume that it is available.
865
-
866
- var hasRegular = 'far' in styles || config.autoFetchSvg;
867
- var shimLookups = reduce(shims, function (acc, shim) {
868
- var maybeNameMaybeUnicode = shim[0];
869
- var prefix = shim[1];
870
- var iconName = shim[2];
871
-
872
- if (prefix === 'far' && !hasRegular) {
873
- prefix = 'fas';
874
- }
875
-
876
- if (typeof maybeNameMaybeUnicode === 'string') {
877
- acc.names[maybeNameMaybeUnicode] = {
878
- prefix: prefix,
879
- iconName: iconName
880
- };
881
- }
882
-
883
- if (typeof maybeNameMaybeUnicode === 'number') {
884
- acc.unicodes[maybeNameMaybeUnicode.toString(16)] = {
885
- prefix: prefix,
886
- iconName: iconName
887
- };
888
- }
889
-
890
- return acc;
891
- }, {
892
- names: {},
893
- unicodes: {}
894
- });
895
- _byOldName = shimLookups.names;
896
- _byOldUnicode = shimLookups.unicodes;
897
- _defaultUsablePrefix = getCanonicalPrefix(config.styleDefault, {
898
- family: config.familyDefault
899
- });
900
- };
901
- onChange(function (c) {
902
- _defaultUsablePrefix = getCanonicalPrefix(c.styleDefault, {
903
- family: config.familyDefault
904
- });
905
- });
906
- build();
907
- function byUnicode(prefix, unicode) {
908
- return (_byUnicode[prefix] || {})[unicode];
909
- }
910
- function byLigature(prefix, ligature) {
911
- return (_byLigature[prefix] || {})[ligature];
912
- }
913
- function byAlias(prefix, alias) {
914
- return (_byAlias[prefix] || {})[alias];
915
- }
916
- function byOldName(name) {
917
- return _byOldName[name] || {
918
- prefix: null,
919
- iconName: null
920
- };
921
- }
922
- function byOldUnicode(unicode) {
923
- var oldUnicode = _byOldUnicode[unicode];
924
- var newUnicode = byUnicode('fas', unicode);
925
- return oldUnicode || (newUnicode ? {
926
- prefix: 'fas',
927
- iconName: newUnicode
928
- } : null) || {
929
- prefix: null,
930
- iconName: null
931
- };
932
- }
933
- function getDefaultUsablePrefix() {
934
- return _defaultUsablePrefix;
935
- }
936
- var emptyCanonicalIcon = function emptyCanonicalIcon() {
937
- return {
938
- prefix: null,
939
- iconName: null,
940
- rest: []
941
- };
942
- };
943
- function getCanonicalPrefix(styleOrPrefix) {
944
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
945
- var _params$family = params.family,
946
- family = _params$family === void 0 ? FAMILY_CLASSIC : _params$family;
947
- var style = PREFIX_TO_STYLE[family][styleOrPrefix];
948
- var prefix = STYLE_TO_PREFIX[family][styleOrPrefix] || STYLE_TO_PREFIX[family][style];
949
- var defined = styleOrPrefix in namespace.styles ? styleOrPrefix : null;
950
- return prefix || defined || null;
951
- }
952
- var PREFIXES_FOR_FAMILY = (_PREFIXES_FOR_FAMILY = {}, _defineProperty$1(_PREFIXES_FOR_FAMILY, FAMILY_CLASSIC, Object.keys(PREFIX_TO_LONG_STYLE[FAMILY_CLASSIC])), _defineProperty$1(_PREFIXES_FOR_FAMILY, FAMILY_SHARP, Object.keys(PREFIX_TO_LONG_STYLE[FAMILY_SHARP])), _PREFIXES_FOR_FAMILY);
953
- function getCanonicalIcon(values) {
954
- var _famProps;
955
-
956
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
957
- var _params$skipLookups = params.skipLookups,
958
- skipLookups = _params$skipLookups === void 0 ? false : _params$skipLookups;
959
- var famProps = (_famProps = {}, _defineProperty$1(_famProps, FAMILY_CLASSIC, "".concat(config.cssPrefix, "-").concat(FAMILY_CLASSIC)), _defineProperty$1(_famProps, FAMILY_SHARP, "".concat(config.cssPrefix, "-").concat(FAMILY_SHARP)), _famProps);
960
- var givenPrefix = null;
961
- var family = FAMILY_CLASSIC;
962
-
963
- if (values.includes(famProps[FAMILY_CLASSIC]) || values.some(function (v) {
964
- return PREFIXES_FOR_FAMILY[FAMILY_CLASSIC].includes(v);
965
- })) {
966
- family = FAMILY_CLASSIC;
967
- }
968
-
969
- if (values.includes(famProps[FAMILY_SHARP]) || values.some(function (v) {
970
- return PREFIXES_FOR_FAMILY[FAMILY_SHARP].includes(v);
971
- })) {
972
- family = FAMILY_SHARP;
973
- }
974
-
975
- var canonical = values.reduce(function (acc, cls) {
976
- var iconName = getIconName(config.cssPrefix, cls);
977
-
978
- if (styles[cls]) {
979
- cls = LONG_STYLE[family].includes(cls) ? LONG_STYLE_TO_PREFIX[family][cls] : cls;
980
- givenPrefix = cls;
981
- acc.prefix = cls;
982
- } else if (PREFIXES[family].indexOf(cls) > -1) {
983
- givenPrefix = cls;
984
- acc.prefix = getCanonicalPrefix(cls, {
985
- family: family
986
- });
987
- } else if (iconName) {
988
- acc.iconName = iconName;
989
- } else if (cls !== config.replacementClass && cls !== famProps[FAMILY_CLASSIC] && cls !== famProps[FAMILY_SHARP]) {
990
- acc.rest.push(cls);
991
- }
992
-
993
- if (!skipLookups && acc.prefix && acc.iconName) {
994
- var shim = givenPrefix === 'fa' ? byOldName(acc.iconName) : {};
995
- var aliasIconName = byAlias(acc.prefix, acc.iconName);
996
-
997
- if (shim.prefix) {
998
- givenPrefix = null;
999
- }
1000
-
1001
- acc.iconName = shim.iconName || aliasIconName || acc.iconName;
1002
- acc.prefix = shim.prefix || acc.prefix;
1003
-
1004
- if (acc.prefix === 'far' && !styles['far'] && styles['fas'] && !config.autoFetchSvg) {
1005
- // Allow a fallback from the regular style to solid if regular is not available
1006
- // but only if we aren't auto-fetching SVGs
1007
- acc.prefix = 'fas';
1008
- }
1009
- }
1010
-
1011
- return acc;
1012
- }, emptyCanonicalIcon());
1013
-
1014
- if (values.includes('fa-brands') || values.includes('fab')) {
1015
- canonical.prefix = 'fab';
1016
- }
1017
-
1018
- if (values.includes('fa-duotone') || values.includes('fad')) {
1019
- canonical.prefix = 'fad';
1020
- }
1021
-
1022
- if (!canonical.prefix && family === FAMILY_SHARP && (styles['fass'] || config.autoFetchSvg)) {
1023
- canonical.prefix = 'fass';
1024
- canonical.iconName = byAlias(canonical.prefix, canonical.iconName) || canonical.iconName;
1025
- }
1026
-
1027
- if (canonical.prefix === 'fa' || givenPrefix === 'fa') {
1028
- // The fa prefix is not canonical. So if it has made it through until this point
1029
- // we will shift it to the correct prefix.
1030
- canonical.prefix = getDefaultUsablePrefix() || 'fas';
1031
- }
1032
-
1033
- return canonical;
1034
- }
1035
-
1036
- var Library = /*#__PURE__*/function () {
1037
- function Library() {
1038
- _classCallCheck(this, Library);
1039
-
1040
- this.definitions = {};
1041
- }
1042
-
1043
- _createClass(Library, [{
1044
- key: "add",
1045
- value: function add() {
1046
- var _this = this;
1047
-
1048
- for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {
1049
- definitions[_key] = arguments[_key];
1050
- }
1051
-
1052
- var additions = definitions.reduce(this._pullDefinitions, {});
1053
- Object.keys(additions).forEach(function (key) {
1054
- _this.definitions[key] = _objectSpread2$1(_objectSpread2$1({}, _this.definitions[key] || {}), additions[key]);
1055
- defineIcons(key, additions[key]); // TODO can we stop doing this? We can't get the icons by 'fa-solid' any longer so this probably needs to change
1056
-
1057
- var longPrefix = PREFIX_TO_LONG_STYLE[FAMILY_CLASSIC][key];
1058
- if (longPrefix) defineIcons(longPrefix, additions[key]);
1059
- build();
1060
- });
1061
- }
1062
- }, {
1063
- key: "reset",
1064
- value: function reset() {
1065
- this.definitions = {};
1066
- }
1067
- }, {
1068
- key: "_pullDefinitions",
1069
- value: function _pullDefinitions(additions, definition) {
1070
- var normalized = definition.prefix && definition.iconName && definition.icon ? {
1071
- 0: definition
1072
- } : definition;
1073
- Object.keys(normalized).map(function (key) {
1074
- var _normalized$key = normalized[key],
1075
- prefix = _normalized$key.prefix,
1076
- iconName = _normalized$key.iconName,
1077
- icon = _normalized$key.icon;
1078
- var aliases = icon[2];
1079
- if (!additions[prefix]) additions[prefix] = {};
1080
-
1081
- if (aliases.length > 0) {
1082
- aliases.forEach(function (alias) {
1083
- if (typeof alias === 'string') {
1084
- additions[prefix][alias] = icon;
1085
- }
1086
- });
1087
- }
1088
-
1089
- additions[prefix][iconName] = icon;
1090
- });
1091
- return additions;
1092
- }
1093
- }]);
1094
-
1095
- return Library;
1096
- }();
1097
-
1098
- var _plugins = [];
1099
- var _hooks = {};
1100
- var providers = {};
1101
- var defaultProviderKeys = Object.keys(providers);
1102
- function registerPlugins(nextPlugins, _ref) {
1103
- var obj = _ref.mixoutsTo;
1104
- _plugins = nextPlugins;
1105
- _hooks = {};
1106
- Object.keys(providers).forEach(function (k) {
1107
- if (defaultProviderKeys.indexOf(k) === -1) {
1108
- delete providers[k];
1109
- }
1110
- });
1111
-
1112
- _plugins.forEach(function (plugin) {
1113
- var mixout = plugin.mixout ? plugin.mixout() : {};
1114
- Object.keys(mixout).forEach(function (tk) {
1115
- if (typeof mixout[tk] === 'function') {
1116
- obj[tk] = mixout[tk];
1117
- }
1118
-
1119
- if (_typeof$2(mixout[tk]) === 'object') {
1120
- Object.keys(mixout[tk]).forEach(function (sk) {
1121
- if (!obj[tk]) {
1122
- obj[tk] = {};
1123
- }
1124
-
1125
- obj[tk][sk] = mixout[tk][sk];
1126
- });
1127
- }
1128
- });
1129
-
1130
- if (plugin.hooks) {
1131
- var hooks = plugin.hooks();
1132
- Object.keys(hooks).forEach(function (hook) {
1133
- if (!_hooks[hook]) {
1134
- _hooks[hook] = [];
1135
- }
1136
-
1137
- _hooks[hook].push(hooks[hook]);
1138
- });
1139
- }
1140
-
1141
- if (plugin.provides) {
1142
- plugin.provides(providers);
1143
- }
1144
- });
1145
-
1146
- return obj;
1147
- }
1148
- function chainHooks(hook, accumulator) {
1149
- for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
1150
- args[_key - 2] = arguments[_key];
1151
- }
1152
-
1153
- var hookFns = _hooks[hook] || [];
1154
- hookFns.forEach(function (hookFn) {
1155
- accumulator = hookFn.apply(null, [accumulator].concat(args)); // eslint-disable-line no-useless-call
1156
- });
1157
- return accumulator;
1158
- }
1159
- function callHooks(hook) {
1160
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
1161
- args[_key2 - 1] = arguments[_key2];
1162
- }
1163
-
1164
- var hookFns = _hooks[hook] || [];
1165
- hookFns.forEach(function (hookFn) {
1166
- hookFn.apply(null, args);
1167
- });
1168
- return undefined;
1169
- }
1170
- function callProvided() {
1171
- var hook = arguments[0];
1172
- var args = Array.prototype.slice.call(arguments, 1);
1173
- return providers[hook] ? providers[hook].apply(null, args) : undefined;
1174
- }
1175
-
1176
- function findIconDefinition(iconLookup) {
1177
- if (iconLookup.prefix === 'fa') {
1178
- iconLookup.prefix = 'fas';
1179
- }
1180
-
1181
- var iconName = iconLookup.iconName;
1182
- var prefix = iconLookup.prefix || getDefaultUsablePrefix();
1183
- if (!iconName) return;
1184
- iconName = byAlias(prefix, iconName) || iconName;
1185
- return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);
1186
- }
1187
- var library = new Library();
1188
- var noAuto = function noAuto() {
1189
- config.autoReplaceSvg = false;
1190
- config.observeMutations = false;
1191
- callHooks('noAuto');
1192
- };
1193
- var dom = {
1194
- i2svg: function i2svg() {
1195
- var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1196
-
1197
- if (IS_DOM) {
1198
- callHooks('beforeI2svg', params);
1199
- callProvided('pseudoElements2svg', params);
1200
- return callProvided('i2svg', params);
1201
- } else {
1202
- return Promise.reject('Operation requires a DOM of some kind.');
1203
- }
1204
- },
1205
- watch: function watch() {
1206
- var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1207
- var autoReplaceSvgRoot = params.autoReplaceSvgRoot;
1208
-
1209
- if (config.autoReplaceSvg === false) {
1210
- config.autoReplaceSvg = true;
1211
- }
1212
-
1213
- config.observeMutations = true;
1214
- domready(function () {
1215
- autoReplace({
1216
- autoReplaceSvgRoot: autoReplaceSvgRoot
1217
- });
1218
- callHooks('watch', params);
1219
- });
1220
- }
1221
- };
1222
- var parse = {
1223
- icon: function icon(_icon) {
1224
- if (_icon === null) {
1225
- return null;
1226
- }
1227
-
1228
- if (_typeof$2(_icon) === 'object' && _icon.prefix && _icon.iconName) {
1229
- return {
1230
- prefix: _icon.prefix,
1231
- iconName: byAlias(_icon.prefix, _icon.iconName) || _icon.iconName
1232
- };
1233
- }
1234
-
1235
- if (Array.isArray(_icon) && _icon.length === 2) {
1236
- var iconName = _icon[1].indexOf('fa-') === 0 ? _icon[1].slice(3) : _icon[1];
1237
- var prefix = getCanonicalPrefix(_icon[0]);
1238
- return {
1239
- prefix: prefix,
1240
- iconName: byAlias(prefix, iconName) || iconName
1241
- };
1242
- }
1243
-
1244
- if (typeof _icon === 'string' && (_icon.indexOf("".concat(config.cssPrefix, "-")) > -1 || _icon.match(ICON_SELECTION_SYNTAX_PATTERN))) {
1245
- var canonicalIcon = getCanonicalIcon(_icon.split(' '), {
1246
- skipLookups: true
1247
- });
1248
- return {
1249
- prefix: canonicalIcon.prefix || getDefaultUsablePrefix(),
1250
- iconName: byAlias(canonicalIcon.prefix, canonicalIcon.iconName) || canonicalIcon.iconName
1251
- };
1252
- }
1253
-
1254
- if (typeof _icon === 'string') {
1255
- var _prefix = getDefaultUsablePrefix();
1256
-
1257
- return {
1258
- prefix: _prefix,
1259
- iconName: byAlias(_prefix, _icon) || _icon
1260
- };
1261
- }
1262
- }
1263
- };
1264
- var api = {
1265
- noAuto: noAuto,
1266
- config: config,
1267
- dom: dom,
1268
- parse: parse,
1269
- library: library,
1270
- findIconDefinition: findIconDefinition,
1271
- toHtml: toHtml
1272
- };
1273
-
1274
- var autoReplace = function autoReplace() {
1275
- var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1276
- var _params$autoReplaceSv = params.autoReplaceSvgRoot,
1277
- autoReplaceSvgRoot = _params$autoReplaceSv === void 0 ? DOCUMENT : _params$autoReplaceSv;
1278
- if ((Object.keys(namespace.styles).length > 0 || config.autoFetchSvg) && IS_DOM && config.autoReplaceSvg) api.dom.i2svg({
1279
- node: autoReplaceSvgRoot
1280
- });
1281
- };
1282
-
1283
- function domVariants(val, abstractCreator) {
1284
- Object.defineProperty(val, 'abstract', {
1285
- get: abstractCreator
1286
- });
1287
- Object.defineProperty(val, 'html', {
1288
- get: function get() {
1289
- return val.abstract.map(function (a) {
1290
- return toHtml(a);
1291
- });
1292
- }
1293
- });
1294
- Object.defineProperty(val, 'node', {
1295
- get: function get() {
1296
- if (!IS_DOM) return;
1297
- var container = DOCUMENT.createElement('div');
1298
- container.innerHTML = val.html;
1299
- return container.children;
1300
- }
1301
- });
1302
- return val;
1303
- }
1304
-
1305
- function asIcon (_ref) {
1306
- var children = _ref.children,
1307
- main = _ref.main,
1308
- mask = _ref.mask,
1309
- attributes = _ref.attributes,
1310
- styles = _ref.styles,
1311
- transform = _ref.transform;
1312
-
1313
- if (transformIsMeaningful(transform) && main.found && !mask.found) {
1314
- var width = main.width,
1315
- height = main.height;
1316
- var offset = {
1317
- x: width / height / 2,
1318
- y: 0.5
1319
- };
1320
- attributes['style'] = joinStyles(_objectSpread2$1(_objectSpread2$1({}, styles), {}, {
1321
- 'transform-origin': "".concat(offset.x + transform.x / 16, "em ").concat(offset.y + transform.y / 16, "em")
1322
- }));
1323
- }
1324
-
1325
- return [{
1326
- tag: 'svg',
1327
- attributes: attributes,
1328
- children: children
1329
- }];
1330
- }
1331
-
1332
- function asSymbol (_ref) {
1333
- var prefix = _ref.prefix,
1334
- iconName = _ref.iconName,
1335
- children = _ref.children,
1336
- attributes = _ref.attributes,
1337
- symbol = _ref.symbol;
1338
- var id = symbol === true ? "".concat(prefix, "-").concat(config.cssPrefix, "-").concat(iconName) : symbol;
1339
- return [{
1340
- tag: 'svg',
1341
- attributes: {
1342
- style: 'display: none;'
1343
- },
1344
- children: [{
1345
- tag: 'symbol',
1346
- attributes: _objectSpread2$1(_objectSpread2$1({}, attributes), {}, {
1347
- id: id
1348
- }),
1349
- children: children
1350
- }]
1351
- }];
1352
- }
1353
-
1354
- function makeInlineSvgAbstract(params) {
1355
- var _params$icons = params.icons,
1356
- main = _params$icons.main,
1357
- mask = _params$icons.mask,
1358
- prefix = params.prefix,
1359
- iconName = params.iconName,
1360
- transform = params.transform,
1361
- symbol = params.symbol,
1362
- title = params.title,
1363
- maskId = params.maskId,
1364
- titleId = params.titleId,
1365
- extra = params.extra,
1366
- _params$watchable = params.watchable,
1367
- watchable = _params$watchable === void 0 ? false : _params$watchable;
1368
-
1369
- var _ref = mask.found ? mask : main,
1370
- width = _ref.width,
1371
- height = _ref.height;
1372
-
1373
- var isUploadedIcon = prefix === 'fak';
1374
- var attrClass = [config.replacementClass, iconName ? "".concat(config.cssPrefix, "-").concat(iconName) : ''].filter(function (c) {
1375
- return extra.classes.indexOf(c) === -1;
1376
- }).filter(function (c) {
1377
- return c !== '' || !!c;
1378
- }).concat(extra.classes).join(' ');
1379
- var content = {
1380
- children: [],
1381
- attributes: _objectSpread2$1(_objectSpread2$1({}, extra.attributes), {}, {
1382
- 'data-prefix': prefix,
1383
- 'data-icon': iconName,
1384
- 'class': attrClass,
1385
- 'role': extra.attributes.role || 'img',
1386
- 'xmlns': 'http://www.w3.org/2000/svg',
1387
- 'viewBox': "0 0 ".concat(width, " ").concat(height)
1388
- })
1389
- };
1390
- var uploadedIconWidthStyle = isUploadedIcon && !~extra.classes.indexOf('fa-fw') ? {
1391
- width: "".concat(width / height * 16 * 0.0625, "em")
1392
- } : {};
1393
-
1394
- if (watchable) {
1395
- content.attributes[DATA_FA_I2SVG] = '';
1396
- }
1397
-
1398
- if (title) {
1399
- content.children.push({
1400
- tag: 'title',
1401
- attributes: {
1402
- id: content.attributes['aria-labelledby'] || "title-".concat(titleId || nextUniqueId())
1403
- },
1404
- children: [title]
1405
- });
1406
- delete content.attributes.title;
1407
- }
1408
-
1409
- var args = _objectSpread2$1(_objectSpread2$1({}, content), {}, {
1410
- prefix: prefix,
1411
- iconName: iconName,
1412
- main: main,
1413
- mask: mask,
1414
- maskId: maskId,
1415
- transform: transform,
1416
- symbol: symbol,
1417
- styles: _objectSpread2$1(_objectSpread2$1({}, uploadedIconWidthStyle), extra.styles)
1418
- });
1419
-
1420
- var _ref2 = mask.found && main.found ? callProvided('generateAbstractMask', args) || {
1421
- children: [],
1422
- attributes: {}
1423
- } : callProvided('generateAbstractIcon', args) || {
1424
- children: [],
1425
- attributes: {}
1426
- },
1427
- children = _ref2.children,
1428
- attributes = _ref2.attributes;
1429
-
1430
- args.children = children;
1431
- args.attributes = attributes;
1432
-
1433
- if (symbol) {
1434
- return asSymbol(args);
1435
- } else {
1436
- return asIcon(args);
1437
- }
1438
- }
1439
- function makeLayersTextAbstract(params) {
1440
- var content = params.content,
1441
- width = params.width,
1442
- height = params.height,
1443
- transform = params.transform,
1444
- title = params.title,
1445
- extra = params.extra,
1446
- _params$watchable2 = params.watchable,
1447
- watchable = _params$watchable2 === void 0 ? false : _params$watchable2;
1448
-
1449
- var attributes = _objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, extra.attributes), title ? {
1450
- 'title': title
1451
- } : {}), {}, {
1452
- 'class': extra.classes.join(' ')
1453
- });
1454
-
1455
- if (watchable) {
1456
- attributes[DATA_FA_I2SVG] = '';
1457
- }
1458
-
1459
- var styles = _objectSpread2$1({}, extra.styles);
1460
-
1461
- if (transformIsMeaningful(transform)) {
1462
- styles['transform'] = transformForCss({
1463
- transform: transform,
1464
- startCentered: true,
1465
- width: width,
1466
- height: height
1467
- });
1468
- styles['-webkit-transform'] = styles['transform'];
1469
- }
1470
-
1471
- var styleString = joinStyles(styles);
1472
-
1473
- if (styleString.length > 0) {
1474
- attributes['style'] = styleString;
1475
- }
1476
-
1477
- var val = [];
1478
- val.push({
1479
- tag: 'span',
1480
- attributes: attributes,
1481
- children: [content]
1482
- });
1483
-
1484
- if (title) {
1485
- val.push({
1486
- tag: 'span',
1487
- attributes: {
1488
- class: 'sr-only'
1489
- },
1490
- children: [title]
1491
- });
1492
- }
1493
-
1494
- return val;
1495
- }
1496
- function makeLayersCounterAbstract(params) {
1497
- var content = params.content,
1498
- title = params.title,
1499
- extra = params.extra;
1500
-
1501
- var attributes = _objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, extra.attributes), title ? {
1502
- 'title': title
1503
- } : {}), {}, {
1504
- 'class': extra.classes.join(' ')
1505
- });
1506
-
1507
- var styleString = joinStyles(extra.styles);
1508
-
1509
- if (styleString.length > 0) {
1510
- attributes['style'] = styleString;
1511
- }
1512
-
1513
- var val = [];
1514
- val.push({
1515
- tag: 'span',
1516
- attributes: attributes,
1517
- children: [content]
1518
- });
1519
-
1520
- if (title) {
1521
- val.push({
1522
- tag: 'span',
1523
- attributes: {
1524
- class: 'sr-only'
1525
- },
1526
- children: [title]
1527
- });
1528
- }
1529
-
1530
- return val;
1531
- }
1532
-
1533
- var styles$1 = namespace.styles;
1534
- function asFoundIcon(icon) {
1535
- var width = icon[0];
1536
- var height = icon[1];
1537
-
1538
- var _icon$slice = icon.slice(4),
1539
- _icon$slice2 = _slicedToArray(_icon$slice, 1),
1540
- vectorData = _icon$slice2[0];
1541
-
1542
- var element = null;
1543
-
1544
- if (Array.isArray(vectorData)) {
1545
- element = {
1546
- tag: 'g',
1547
- attributes: {
1548
- class: "".concat(config.cssPrefix, "-").concat(DUOTONE_CLASSES.GROUP)
1549
- },
1550
- children: [{
1551
- tag: 'path',
1552
- attributes: {
1553
- class: "".concat(config.cssPrefix, "-").concat(DUOTONE_CLASSES.SECONDARY),
1554
- fill: 'currentColor',
1555
- d: vectorData[0]
1556
- }
1557
- }, {
1558
- tag: 'path',
1559
- attributes: {
1560
- class: "".concat(config.cssPrefix, "-").concat(DUOTONE_CLASSES.PRIMARY),
1561
- fill: 'currentColor',
1562
- d: vectorData[1]
1563
- }
1564
- }]
1565
- };
1566
- } else {
1567
- element = {
1568
- tag: 'path',
1569
- attributes: {
1570
- fill: 'currentColor',
1571
- d: vectorData
1572
- }
1573
- };
1574
- }
1575
-
1576
- return {
1577
- found: true,
1578
- width: width,
1579
- height: height,
1580
- icon: element
1581
- };
1582
- }
1583
- var missingIconResolutionMixin = {
1584
- found: false,
1585
- width: 512,
1586
- height: 512
1587
- };
1588
-
1589
- function maybeNotifyMissing(iconName, prefix) {
1590
- if (!PRODUCTION$1 && !config.showMissingIcons && iconName) {
1591
- console.error("Icon with name \"".concat(iconName, "\" and prefix \"").concat(prefix, "\" is missing."));
1592
- }
1593
- }
1594
-
1595
- function findIcon(iconName, prefix) {
1596
- var givenPrefix = prefix;
1597
-
1598
- if (prefix === 'fa' && config.styleDefault !== null) {
1599
- prefix = getDefaultUsablePrefix();
1600
- }
1601
-
1602
- return new Promise(function (resolve, reject) {
1603
- ({
1604
- found: false,
1605
- width: 512,
1606
- height: 512,
1607
- icon: callProvided('missingIconAbstract') || {}
1608
- });
1609
-
1610
- if (givenPrefix === 'fa') {
1611
- var shim = byOldName(iconName) || {};
1612
- iconName = shim.iconName || iconName;
1613
- prefix = shim.prefix || prefix;
1614
- }
1615
-
1616
- if (iconName && prefix && styles$1[prefix] && styles$1[prefix][iconName]) {
1617
- var icon = styles$1[prefix][iconName];
1618
- return resolve(asFoundIcon(icon));
1619
- }
1620
-
1621
- maybeNotifyMissing(iconName, prefix);
1622
- resolve(_objectSpread2$1(_objectSpread2$1({}, missingIconResolutionMixin), {}, {
1623
- icon: config.showMissingIcons && iconName ? callProvided('missingIconAbstract') || {} : {}
1624
- }));
1625
- });
1626
- }
1627
-
1628
- var noop$1$1 = function noop() {};
1629
-
1630
- var p = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {
1631
- mark: noop$1$1,
1632
- measure: noop$1$1
1633
- };
1634
- var preamble = "FA \"6.4.2\"";
1635
-
1636
- var begin = function begin(name) {
1637
- p.mark("".concat(preamble, " ").concat(name, " begins"));
1638
- return function () {
1639
- return end(name);
1640
- };
1641
- };
1642
-
1643
- var end = function end(name) {
1644
- p.mark("".concat(preamble, " ").concat(name, " ends"));
1645
- p.measure("".concat(preamble, " ").concat(name), "".concat(preamble, " ").concat(name, " begins"), "".concat(preamble, " ").concat(name, " ends"));
1646
- };
1647
-
1648
- var perf = {
1649
- begin: begin,
1650
- end: end
1651
- };
1652
-
1653
- var noop$2 = function noop() {};
1654
-
1655
- function isWatched(node) {
1656
- var i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;
1657
- return typeof i2svg === 'string';
1658
- }
1659
-
1660
- function hasPrefixAndIcon(node) {
1661
- var prefix = node.getAttribute ? node.getAttribute(DATA_PREFIX) : null;
1662
- var icon = node.getAttribute ? node.getAttribute(DATA_ICON) : null;
1663
- return prefix && icon;
1664
- }
1665
-
1666
- function hasBeenReplaced(node) {
1667
- return node && node.classList && node.classList.contains && node.classList.contains(config.replacementClass);
1668
- }
1669
-
1670
- function getMutator() {
1671
- if (config.autoReplaceSvg === true) {
1672
- return mutators.replace;
1673
- }
1674
-
1675
- var mutator = mutators[config.autoReplaceSvg];
1676
- return mutator || mutators.replace;
1677
- }
1678
-
1679
- function createElementNS(tag) {
1680
- return DOCUMENT.createElementNS('http://www.w3.org/2000/svg', tag);
1681
- }
1682
-
1683
- function createElement(tag) {
1684
- return DOCUMENT.createElement(tag);
1685
- }
1686
-
1687
- function convertSVG(abstractObj) {
1688
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1689
- var _params$ceFn = params.ceFn,
1690
- ceFn = _params$ceFn === void 0 ? abstractObj.tag === 'svg' ? createElementNS : createElement : _params$ceFn;
1691
-
1692
- if (typeof abstractObj === 'string') {
1693
- return DOCUMENT.createTextNode(abstractObj);
1694
- }
1695
-
1696
- var tag = ceFn(abstractObj.tag);
1697
- Object.keys(abstractObj.attributes || []).forEach(function (key) {
1698
- tag.setAttribute(key, abstractObj.attributes[key]);
1699
- });
1700
- var children = abstractObj.children || [];
1701
- children.forEach(function (child) {
1702
- tag.appendChild(convertSVG(child, {
1703
- ceFn: ceFn
1704
- }));
1705
- });
1706
- return tag;
1707
- }
1708
-
1709
- function nodeAsComment(node) {
1710
- var comment = " ".concat(node.outerHTML, " ");
1711
- /* BEGIN.ATTRIBUTION */
1712
-
1713
- comment = "".concat(comment, "Font Awesome fontawesome.com ");
1714
- /* END.ATTRIBUTION */
1715
-
1716
- return comment;
1717
- }
1718
-
1719
- var mutators = {
1720
- replace: function replace(mutation) {
1721
- var node = mutation[0];
1722
-
1723
- if (node.parentNode) {
1724
- mutation[1].forEach(function (_abstract) {
1725
- node.parentNode.insertBefore(convertSVG(_abstract), node);
1726
- });
1727
-
1728
- if (node.getAttribute(DATA_FA_I2SVG) === null && config.keepOriginalSource) {
1729
- var comment = DOCUMENT.createComment(nodeAsComment(node));
1730
- node.parentNode.replaceChild(comment, node);
1731
- } else {
1732
- node.remove();
1733
- }
1734
- }
1735
- },
1736
- nest: function nest(mutation) {
1737
- var node = mutation[0];
1738
- var _abstract2 = mutation[1]; // If we already have a replaced node we do not want to continue nesting within it.
1739
- // Short-circuit to the standard replacement
1740
-
1741
- if (~classArray(node).indexOf(config.replacementClass)) {
1742
- return mutators.replace(mutation);
1743
- }
1744
-
1745
- var forSvg = new RegExp("".concat(config.cssPrefix, "-.*"));
1746
- delete _abstract2[0].attributes.id;
1747
-
1748
- if (_abstract2[0].attributes.class) {
1749
- var splitClasses = _abstract2[0].attributes.class.split(' ').reduce(function (acc, cls) {
1750
- if (cls === config.replacementClass || cls.match(forSvg)) {
1751
- acc.toSvg.push(cls);
1752
- } else {
1753
- acc.toNode.push(cls);
1754
- }
1755
-
1756
- return acc;
1757
- }, {
1758
- toNode: [],
1759
- toSvg: []
1760
- });
1761
-
1762
- _abstract2[0].attributes.class = splitClasses.toSvg.join(' ');
1763
-
1764
- if (splitClasses.toNode.length === 0) {
1765
- node.removeAttribute('class');
1766
- } else {
1767
- node.setAttribute('class', splitClasses.toNode.join(' '));
1768
- }
1769
- }
1770
-
1771
- var newInnerHTML = _abstract2.map(function (a) {
1772
- return toHtml(a);
1773
- }).join('\n');
1774
-
1775
- node.setAttribute(DATA_FA_I2SVG, '');
1776
- node.innerHTML = newInnerHTML;
1777
- }
1778
- };
1779
-
1780
- function performOperationSync(op) {
1781
- op();
1782
- }
1783
-
1784
- function perform(mutations, callback) {
1785
- var callbackFunction = typeof callback === 'function' ? callback : noop$2;
1786
-
1787
- if (mutations.length === 0) {
1788
- callbackFunction();
1789
- } else {
1790
- var frame = performOperationSync;
1791
-
1792
- if (config.mutateApproach === MUTATION_APPROACH_ASYNC) {
1793
- frame = WINDOW.requestAnimationFrame || performOperationSync;
1794
- }
1795
-
1796
- frame(function () {
1797
- var mutator = getMutator();
1798
- var mark = perf.begin('mutate');
1799
- mutations.map(mutator);
1800
- mark();
1801
- callbackFunction();
1802
- });
1803
- }
1804
- }
1805
- var disabled = false;
1806
- function disableObservation() {
1807
- disabled = true;
1808
- }
1809
- function enableObservation() {
1810
- disabled = false;
1811
- }
1812
- var mo = null;
1813
- function observe(options) {
1814
- if (!MUTATION_OBSERVER) {
1815
- return;
1816
- }
1817
-
1818
- if (!config.observeMutations) {
1819
- return;
1820
- }
1821
-
1822
- var _options$treeCallback = options.treeCallback,
1823
- treeCallback = _options$treeCallback === void 0 ? noop$2 : _options$treeCallback,
1824
- _options$nodeCallback = options.nodeCallback,
1825
- nodeCallback = _options$nodeCallback === void 0 ? noop$2 : _options$nodeCallback,
1826
- _options$pseudoElemen = options.pseudoElementsCallback,
1827
- pseudoElementsCallback = _options$pseudoElemen === void 0 ? noop$2 : _options$pseudoElemen,
1828
- _options$observeMutat = options.observeMutationsRoot,
1829
- observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT : _options$observeMutat;
1830
- mo = new MUTATION_OBSERVER(function (objects) {
1831
- if (disabled) return;
1832
- var defaultPrefix = getDefaultUsablePrefix();
1833
- toArray(objects).forEach(function (mutationRecord) {
1834
- if (mutationRecord.type === 'childList' && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {
1835
- if (config.searchPseudoElements) {
1836
- pseudoElementsCallback(mutationRecord.target);
1837
- }
1838
-
1839
- treeCallback(mutationRecord.target);
1840
- }
1841
-
1842
- if (mutationRecord.type === 'attributes' && mutationRecord.target.parentNode && config.searchPseudoElements) {
1843
- pseudoElementsCallback(mutationRecord.target.parentNode);
1844
- }
1845
-
1846
- if (mutationRecord.type === 'attributes' && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {
1847
- if (mutationRecord.attributeName === 'class' && hasPrefixAndIcon(mutationRecord.target)) {
1848
- var _getCanonicalIcon = getCanonicalIcon(classArray(mutationRecord.target)),
1849
- prefix = _getCanonicalIcon.prefix,
1850
- iconName = _getCanonicalIcon.iconName;
1851
-
1852
- mutationRecord.target.setAttribute(DATA_PREFIX, prefix || defaultPrefix);
1853
- if (iconName) mutationRecord.target.setAttribute(DATA_ICON, iconName);
1854
- } else if (hasBeenReplaced(mutationRecord.target)) {
1855
- nodeCallback(mutationRecord.target);
1856
- }
1857
- }
1858
- });
1859
- });
1860
- if (!IS_DOM) return;
1861
- mo.observe(observeMutationsRoot, {
1862
- childList: true,
1863
- attributes: true,
1864
- characterData: true,
1865
- subtree: true
1866
- });
1867
- }
1868
- function disconnect() {
1869
- if (!mo) return;
1870
- mo.disconnect();
1871
- }
1872
-
1873
- function styleParser (node) {
1874
- var style = node.getAttribute('style');
1875
- var val = [];
1876
-
1877
- if (style) {
1878
- val = style.split(';').reduce(function (acc, style) {
1879
- var styles = style.split(':');
1880
- var prop = styles[0];
1881
- var value = styles.slice(1);
1882
-
1883
- if (prop && value.length > 0) {
1884
- acc[prop] = value.join(':').trim();
1885
- }
1886
-
1887
- return acc;
1888
- }, {});
1889
- }
1890
-
1891
- return val;
1892
- }
1893
-
1894
- function classParser (node) {
1895
- var existingPrefix = node.getAttribute('data-prefix');
1896
- var existingIconName = node.getAttribute('data-icon');
1897
- var innerText = node.innerText !== undefined ? node.innerText.trim() : '';
1898
- var val = getCanonicalIcon(classArray(node));
1899
-
1900
- if (!val.prefix) {
1901
- val.prefix = getDefaultUsablePrefix();
1902
- }
1903
-
1904
- if (existingPrefix && existingIconName) {
1905
- val.prefix = existingPrefix;
1906
- val.iconName = existingIconName;
1907
- }
1908
-
1909
- if (val.iconName && val.prefix) {
1910
- return val;
1911
- }
1912
-
1913
- if (val.prefix && innerText.length > 0) {
1914
- val.iconName = byLigature(val.prefix, node.innerText) || byUnicode(val.prefix, toHex(node.innerText));
1915
- }
1916
-
1917
- if (!val.iconName && config.autoFetchSvg && node.firstChild && node.firstChild.nodeType === Node.TEXT_NODE) {
1918
- val.iconName = node.firstChild.data;
1919
- }
1920
-
1921
- return val;
1922
- }
1923
-
1924
- function attributesParser (node) {
1925
- var extraAttributes = toArray(node.attributes).reduce(function (acc, attr) {
1926
- if (acc.name !== 'class' && acc.name !== 'style') {
1927
- acc[attr.name] = attr.value;
1928
- }
1929
-
1930
- return acc;
1931
- }, {});
1932
- var title = node.getAttribute('title');
1933
- var titleId = node.getAttribute('data-fa-title-id');
1934
-
1935
- if (config.autoA11y) {
1936
- if (title) {
1937
- extraAttributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(titleId || nextUniqueId());
1938
- } else {
1939
- extraAttributes['aria-hidden'] = 'true';
1940
- extraAttributes['focusable'] = 'false';
1941
- }
1942
- }
1943
-
1944
- return extraAttributes;
1945
- }
1946
-
1947
- function blankMeta() {
1948
- return {
1949
- iconName: null,
1950
- title: null,
1951
- titleId: null,
1952
- prefix: null,
1953
- transform: meaninglessTransform,
1954
- symbol: false,
1955
- mask: {
1956
- iconName: null,
1957
- prefix: null,
1958
- rest: []
1959
- },
1960
- maskId: null,
1961
- extra: {
1962
- classes: [],
1963
- styles: {},
1964
- attributes: {}
1965
- }
1966
- };
1967
- }
1968
- function parseMeta(node) {
1969
- var parser = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
1970
- styleParser: true
1971
- };
1972
-
1973
- var _classParser = classParser(node),
1974
- iconName = _classParser.iconName,
1975
- prefix = _classParser.prefix,
1976
- extraClasses = _classParser.rest;
1977
-
1978
- var extraAttributes = attributesParser(node);
1979
- var pluginMeta = chainHooks('parseNodeAttributes', {}, node);
1980
- var extraStyles = parser.styleParser ? styleParser(node) : [];
1981
- return _objectSpread2$1({
1982
- iconName: iconName,
1983
- title: node.getAttribute('title'),
1984
- titleId: node.getAttribute('data-fa-title-id'),
1985
- prefix: prefix,
1986
- transform: meaninglessTransform,
1987
- mask: {
1988
- iconName: null,
1989
- prefix: null,
1990
- rest: []
1991
- },
1992
- maskId: null,
1993
- symbol: false,
1994
- extra: {
1995
- classes: extraClasses,
1996
- styles: extraStyles,
1997
- attributes: extraAttributes
1998
- }
1999
- }, pluginMeta);
2000
- }
2001
-
2002
- var styles$2 = namespace.styles;
2003
-
2004
- function generateMutation(node) {
2005
- var nodeMeta = config.autoReplaceSvg === 'nest' ? parseMeta(node, {
2006
- styleParser: false
2007
- }) : parseMeta(node);
2008
-
2009
- if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) {
2010
- return callProvided('generateLayersText', node, nodeMeta);
2011
- } else {
2012
- return callProvided('generateSvgReplacementMutation', node, nodeMeta);
2013
- }
2014
- }
2015
-
2016
- var knownPrefixes = new Set();
2017
- FAMILIES.map(function (family) {
2018
- knownPrefixes.add("fa-".concat(family));
2019
- });
2020
- Object.keys(PREFIX_TO_STYLE[FAMILY_CLASSIC]).map(knownPrefixes.add.bind(knownPrefixes));
2021
- Object.keys(PREFIX_TO_STYLE[FAMILY_SHARP]).map(knownPrefixes.add.bind(knownPrefixes));
2022
- knownPrefixes = _toConsumableArray$1(knownPrefixes);
2023
-
2024
- function onTree(root) {
2025
- var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
2026
- if (!IS_DOM) return Promise.resolve();
2027
- var htmlClassList = DOCUMENT.documentElement.classList;
2028
-
2029
- var hclAdd = function hclAdd(suffix) {
2030
- return htmlClassList.add("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
2031
- };
2032
-
2033
- var hclRemove = function hclRemove(suffix) {
2034
- return htmlClassList.remove("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
2035
- };
2036
-
2037
- var prefixes = config.autoFetchSvg ? knownPrefixes : FAMILIES.map(function (f) {
2038
- return "fa-".concat(f);
2039
- }).concat(Object.keys(styles$2));
2040
-
2041
- if (!prefixes.includes('fa')) {
2042
- prefixes.push('fa');
2043
- }
2044
-
2045
- var prefixesDomQuery = [".".concat(LAYERS_TEXT_CLASSNAME, ":not([").concat(DATA_FA_I2SVG, "])")].concat(prefixes.map(function (p) {
2046
- return ".".concat(p, ":not([").concat(DATA_FA_I2SVG, "])");
2047
- })).join(', ');
2048
-
2049
- if (prefixesDomQuery.length === 0) {
2050
- return Promise.resolve();
2051
- }
2052
-
2053
- var candidates = [];
2054
-
2055
- try {
2056
- candidates = toArray(root.querySelectorAll(prefixesDomQuery));
2057
- } catch (e) {// noop
2058
- }
2059
-
2060
- if (candidates.length > 0) {
2061
- hclAdd('pending');
2062
- hclRemove('complete');
2063
- } else {
2064
- return Promise.resolve();
2065
- }
2066
-
2067
- var mark = perf.begin('onTree');
2068
- var mutations = candidates.reduce(function (acc, node) {
2069
- try {
2070
- var mutation = generateMutation(node);
2071
-
2072
- if (mutation) {
2073
- acc.push(mutation);
2074
- }
2075
- } catch (e) {
2076
- if (!PRODUCTION$1) {
2077
- if (e.name === 'MissingIcon') {
2078
- console.error(e);
2079
- }
2080
- }
2081
- }
2082
-
2083
- return acc;
2084
- }, []);
2085
- return new Promise(function (resolve, reject) {
2086
- Promise.all(mutations).then(function (resolvedMutations) {
2087
- perform(resolvedMutations, function () {
2088
- hclAdd('active');
2089
- hclAdd('complete');
2090
- hclRemove('pending');
2091
- if (typeof callback === 'function') callback();
2092
- mark();
2093
- resolve();
2094
- });
2095
- }).catch(function (e) {
2096
- mark();
2097
- reject(e);
2098
- });
2099
- });
2100
- }
2101
-
2102
- function onNode(node) {
2103
- var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
2104
- generateMutation(node).then(function (mutation) {
2105
- if (mutation) {
2106
- perform([mutation], callback);
2107
- }
2108
- });
2109
- }
2110
-
2111
- function resolveIcons(next) {
2112
- return function (maybeIconDefinition) {
2113
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2114
- var iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});
2115
- var mask = params.mask;
2116
-
2117
- if (mask) {
2118
- mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});
2119
- }
2120
-
2121
- return next(iconDefinition, _objectSpread2$1(_objectSpread2$1({}, params), {}, {
2122
- mask: mask
2123
- }));
2124
- };
2125
- }
2126
-
2127
- var render = function render(iconDefinition) {
2128
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2129
- var _params$transform = params.transform,
2130
- transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,
2131
- _params$symbol = params.symbol,
2132
- symbol = _params$symbol === void 0 ? false : _params$symbol,
2133
- _params$mask = params.mask,
2134
- mask = _params$mask === void 0 ? null : _params$mask,
2135
- _params$maskId = params.maskId,
2136
- maskId = _params$maskId === void 0 ? null : _params$maskId,
2137
- _params$title = params.title,
2138
- title = _params$title === void 0 ? null : _params$title,
2139
- _params$titleId = params.titleId,
2140
- titleId = _params$titleId === void 0 ? null : _params$titleId,
2141
- _params$classes = params.classes,
2142
- classes = _params$classes === void 0 ? [] : _params$classes,
2143
- _params$attributes = params.attributes,
2144
- attributes = _params$attributes === void 0 ? {} : _params$attributes,
2145
- _params$styles = params.styles,
2146
- styles = _params$styles === void 0 ? {} : _params$styles;
2147
- if (!iconDefinition) return;
2148
- var prefix = iconDefinition.prefix,
2149
- iconName = iconDefinition.iconName,
2150
- icon = iconDefinition.icon;
2151
- return domVariants(_objectSpread2$1({
2152
- type: 'icon'
2153
- }, iconDefinition), function () {
2154
- callHooks('beforeDOMElementCreation', {
2155
- iconDefinition: iconDefinition,
2156
- params: params
2157
- });
2158
-
2159
- if (config.autoA11y) {
2160
- if (title) {
2161
- attributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(titleId || nextUniqueId());
2162
- } else {
2163
- attributes['aria-hidden'] = 'true';
2164
- attributes['focusable'] = 'false';
2165
- }
2166
- }
2167
-
2168
- return makeInlineSvgAbstract({
2169
- icons: {
2170
- main: asFoundIcon(icon),
2171
- mask: mask ? asFoundIcon(mask.icon) : {
2172
- found: false,
2173
- width: null,
2174
- height: null,
2175
- icon: {}
2176
- }
2177
- },
2178
- prefix: prefix,
2179
- iconName: iconName,
2180
- transform: _objectSpread2$1(_objectSpread2$1({}, meaninglessTransform), transform),
2181
- symbol: symbol,
2182
- title: title,
2183
- maskId: maskId,
2184
- titleId: titleId,
2185
- extra: {
2186
- attributes: attributes,
2187
- styles: styles,
2188
- classes: classes
2189
- }
2190
- });
2191
- });
2192
- };
2193
- var ReplaceElements = {
2194
- mixout: function mixout() {
2195
- return {
2196
- icon: resolveIcons(render)
2197
- };
2198
- },
2199
- hooks: function hooks() {
2200
- return {
2201
- mutationObserverCallbacks: function mutationObserverCallbacks(accumulator) {
2202
- accumulator.treeCallback = onTree;
2203
- accumulator.nodeCallback = onNode;
2204
- return accumulator;
2205
- }
2206
- };
2207
- },
2208
- provides: function provides(providers$$1) {
2209
- providers$$1.i2svg = function (params) {
2210
- var _params$node = params.node,
2211
- node = _params$node === void 0 ? DOCUMENT : _params$node,
2212
- _params$callback = params.callback,
2213
- callback = _params$callback === void 0 ? function () {} : _params$callback;
2214
- return onTree(node, callback);
2215
- };
2216
-
2217
- providers$$1.generateSvgReplacementMutation = function (node, nodeMeta) {
2218
- var iconName = nodeMeta.iconName,
2219
- title = nodeMeta.title,
2220
- titleId = nodeMeta.titleId,
2221
- prefix = nodeMeta.prefix,
2222
- transform = nodeMeta.transform,
2223
- symbol = nodeMeta.symbol,
2224
- mask = nodeMeta.mask,
2225
- maskId = nodeMeta.maskId,
2226
- extra = nodeMeta.extra;
2227
- return new Promise(function (resolve, reject) {
2228
- Promise.all([findIcon(iconName, prefix), mask.iconName ? findIcon(mask.iconName, mask.prefix) : Promise.resolve({
2229
- found: false,
2230
- width: 512,
2231
- height: 512,
2232
- icon: {}
2233
- })]).then(function (_ref) {
2234
- var _ref2 = _slicedToArray(_ref, 2),
2235
- main = _ref2[0],
2236
- mask = _ref2[1];
2237
-
2238
- resolve([node, makeInlineSvgAbstract({
2239
- icons: {
2240
- main: main,
2241
- mask: mask
2242
- },
2243
- prefix: prefix,
2244
- iconName: iconName,
2245
- transform: transform,
2246
- symbol: symbol,
2247
- maskId: maskId,
2248
- title: title,
2249
- titleId: titleId,
2250
- extra: extra,
2251
- watchable: true
2252
- })]);
2253
- }).catch(reject);
2254
- });
2255
- };
2256
-
2257
- providers$$1.generateAbstractIcon = function (_ref3) {
2258
- var children = _ref3.children,
2259
- attributes = _ref3.attributes,
2260
- main = _ref3.main,
2261
- transform = _ref3.transform,
2262
- styles = _ref3.styles;
2263
- var styleString = joinStyles(styles);
2264
-
2265
- if (styleString.length > 0) {
2266
- attributes['style'] = styleString;
2267
- }
2268
-
2269
- var nextChild;
2270
-
2271
- if (transformIsMeaningful(transform)) {
2272
- nextChild = callProvided('generateAbstractTransformGrouping', {
2273
- main: main,
2274
- transform: transform,
2275
- containerWidth: main.width,
2276
- iconWidth: main.width
2277
- });
2278
- }
2279
-
2280
- children.push(nextChild || main.icon);
2281
- return {
2282
- children: children,
2283
- attributes: attributes
2284
- };
2285
- };
2286
- }
2287
- };
2288
-
2289
- var Layers = {
2290
- mixout: function mixout() {
2291
- return {
2292
- layer: function layer(assembler) {
2293
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2294
- var _params$classes = params.classes,
2295
- classes = _params$classes === void 0 ? [] : _params$classes;
2296
- return domVariants({
2297
- type: 'layer'
2298
- }, function () {
2299
- callHooks('beforeDOMElementCreation', {
2300
- assembler: assembler,
2301
- params: params
2302
- });
2303
- var children = [];
2304
- assembler(function (args) {
2305
- Array.isArray(args) ? args.map(function (a) {
2306
- children = children.concat(a.abstract);
2307
- }) : children = children.concat(args.abstract);
2308
- });
2309
- return [{
2310
- tag: 'span',
2311
- attributes: {
2312
- class: ["".concat(config.cssPrefix, "-layers")].concat(_toConsumableArray$1(classes)).join(' ')
2313
- },
2314
- children: children
2315
- }];
2316
- });
2317
- }
2318
- };
2319
- }
2320
- };
2321
-
2322
- var LayersCounter = {
2323
- mixout: function mixout() {
2324
- return {
2325
- counter: function counter(content) {
2326
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2327
- var _params$title = params.title,
2328
- title = _params$title === void 0 ? null : _params$title,
2329
- _params$classes = params.classes,
2330
- classes = _params$classes === void 0 ? [] : _params$classes,
2331
- _params$attributes = params.attributes,
2332
- attributes = _params$attributes === void 0 ? {} : _params$attributes,
2333
- _params$styles = params.styles,
2334
- styles = _params$styles === void 0 ? {} : _params$styles;
2335
- return domVariants({
2336
- type: 'counter',
2337
- content: content
2338
- }, function () {
2339
- callHooks('beforeDOMElementCreation', {
2340
- content: content,
2341
- params: params
2342
- });
2343
- return makeLayersCounterAbstract({
2344
- content: content.toString(),
2345
- title: title,
2346
- extra: {
2347
- attributes: attributes,
2348
- styles: styles,
2349
- classes: ["".concat(config.cssPrefix, "-layers-counter")].concat(_toConsumableArray$1(classes))
2350
- }
2351
- });
2352
- });
2353
- }
2354
- };
2355
- }
2356
- };
2357
-
2358
- var LayersText = {
2359
- mixout: function mixout() {
2360
- return {
2361
- text: function text(content) {
2362
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2363
- var _params$transform = params.transform,
2364
- transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,
2365
- _params$title = params.title,
2366
- title = _params$title === void 0 ? null : _params$title,
2367
- _params$classes = params.classes,
2368
- classes = _params$classes === void 0 ? [] : _params$classes,
2369
- _params$attributes = params.attributes,
2370
- attributes = _params$attributes === void 0 ? {} : _params$attributes,
2371
- _params$styles = params.styles,
2372
- styles = _params$styles === void 0 ? {} : _params$styles;
2373
- return domVariants({
2374
- type: 'text',
2375
- content: content
2376
- }, function () {
2377
- callHooks('beforeDOMElementCreation', {
2378
- content: content,
2379
- params: params
2380
- });
2381
- return makeLayersTextAbstract({
2382
- content: content,
2383
- transform: _objectSpread2$1(_objectSpread2$1({}, meaninglessTransform), transform),
2384
- title: title,
2385
- extra: {
2386
- attributes: attributes,
2387
- styles: styles,
2388
- classes: ["".concat(config.cssPrefix, "-layers-text")].concat(_toConsumableArray$1(classes))
2389
- }
2390
- });
2391
- });
2392
- }
2393
- };
2394
- },
2395
- provides: function provides(providers$$1) {
2396
- providers$$1.generateLayersText = function (node, nodeMeta) {
2397
- var title = nodeMeta.title,
2398
- transform = nodeMeta.transform,
2399
- extra = nodeMeta.extra;
2400
- var width = null;
2401
- var height = null;
2402
-
2403
- if (IS_IE) {
2404
- var computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);
2405
- var boundingClientRect = node.getBoundingClientRect();
2406
- width = boundingClientRect.width / computedFontSize;
2407
- height = boundingClientRect.height / computedFontSize;
2408
- }
2409
-
2410
- if (config.autoA11y && !title) {
2411
- extra.attributes['aria-hidden'] = 'true';
2412
- }
2413
-
2414
- return Promise.resolve([node, makeLayersTextAbstract({
2415
- content: node.innerHTML,
2416
- width: width,
2417
- height: height,
2418
- transform: transform,
2419
- title: title,
2420
- extra: extra,
2421
- watchable: true
2422
- })]);
2423
- };
2424
- }
2425
- };
2426
-
2427
- var CLEAN_CONTENT_PATTERN = new RegExp("\"", 'ug');
2428
- var SECONDARY_UNICODE_RANGE = [1105920, 1112319];
2429
- function hexValueFromContent(content) {
2430
- var cleaned = content.replace(CLEAN_CONTENT_PATTERN, '');
2431
- var codePoint = codePointAt(cleaned, 0);
2432
- var isPrependTen = codePoint >= SECONDARY_UNICODE_RANGE[0] && codePoint <= SECONDARY_UNICODE_RANGE[1];
2433
- var isDoubled = cleaned.length === 2 ? cleaned[0] === cleaned[1] : false;
2434
- return {
2435
- value: isDoubled ? toHex(cleaned[0]) : toHex(cleaned),
2436
- isSecondary: isPrependTen || isDoubled
2437
- };
2438
- }
2439
-
2440
- function replaceForPosition(node, position) {
2441
- var pendingAttribute = "".concat(DATA_FA_PSEUDO_ELEMENT_PENDING).concat(position.replace(':', '-'));
2442
- return new Promise(function (resolve, reject) {
2443
- if (node.getAttribute(pendingAttribute) !== null) {
2444
- // This node is already being processed
2445
- return resolve();
2446
- }
2447
-
2448
- var children = toArray(node.children);
2449
- var alreadyProcessedPseudoElement = children.filter(function (c) {
2450
- return c.getAttribute(DATA_FA_PSEUDO_ELEMENT) === position;
2451
- })[0];
2452
- var styles = WINDOW.getComputedStyle(node, position);
2453
- var fontFamily = styles.getPropertyValue('font-family').match(FONT_FAMILY_PATTERN);
2454
- var fontWeight = styles.getPropertyValue('font-weight');
2455
- var content = styles.getPropertyValue('content');
2456
-
2457
- if (alreadyProcessedPseudoElement && !fontFamily) {
2458
- // If we've already processed it but the current computed style does not result in a font-family,
2459
- // that probably means that a class name that was previously present to make the icon has been
2460
- // removed. So we now should delete the icon.
2461
- node.removeChild(alreadyProcessedPseudoElement);
2462
- return resolve();
2463
- } else if (fontFamily && content !== 'none' && content !== '') {
2464
- var _content = styles.getPropertyValue('content');
2465
-
2466
- var family = ~['Sharp'].indexOf(fontFamily[2]) ? FAMILY_SHARP : FAMILY_CLASSIC;
2467
- var prefix = ~['Solid', 'Regular', 'Light', 'Thin', 'Duotone', 'Brands', 'Kit'].indexOf(fontFamily[2]) ? STYLE_TO_PREFIX[family][fontFamily[2].toLowerCase()] : FONT_WEIGHT_TO_PREFIX[family][fontWeight];
2468
-
2469
- var _hexValueFromContent = hexValueFromContent(_content),
2470
- hexValue = _hexValueFromContent.value,
2471
- isSecondary = _hexValueFromContent.isSecondary;
2472
-
2473
- var isV4 = fontFamily[0].startsWith('FontAwesome');
2474
- var iconName = byUnicode(prefix, hexValue);
2475
- var iconIdentifier = iconName;
2476
-
2477
- if (isV4) {
2478
- var iconName4 = byOldUnicode(hexValue);
2479
-
2480
- if (iconName4.iconName && iconName4.prefix) {
2481
- iconName = iconName4.iconName;
2482
- prefix = iconName4.prefix;
2483
- }
2484
- } // Only convert the pseudo element in this ::before/::after position into an icon if we haven't
2485
- // already done so with the same prefix and iconName
2486
-
2487
-
2488
- if (iconName && !isSecondary && (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || alreadyProcessedPseudoElement.getAttribute(DATA_ICON) !== iconIdentifier)) {
2489
- node.setAttribute(pendingAttribute, iconIdentifier);
2490
-
2491
- if (alreadyProcessedPseudoElement) {
2492
- // Delete the old one, since we're replacing it with a new one
2493
- node.removeChild(alreadyProcessedPseudoElement);
2494
- }
2495
-
2496
- var meta = blankMeta();
2497
- var extra = meta.extra;
2498
- extra.attributes[DATA_FA_PSEUDO_ELEMENT] = position;
2499
- findIcon(iconName, prefix).then(function (main) {
2500
- var _abstract = makeInlineSvgAbstract(_objectSpread2$1(_objectSpread2$1({}, meta), {}, {
2501
- icons: {
2502
- main: main,
2503
- mask: emptyCanonicalIcon()
2504
- },
2505
- prefix: prefix,
2506
- iconName: iconIdentifier,
2507
- extra: extra,
2508
- watchable: true
2509
- }));
2510
-
2511
- var element = DOCUMENT.createElementNS('http://www.w3.org/2000/svg', 'svg');
2512
-
2513
- if (position === '::before') {
2514
- node.insertBefore(element, node.firstChild);
2515
- } else {
2516
- node.appendChild(element);
2517
- }
2518
-
2519
- element.outerHTML = _abstract.map(function (a) {
2520
- return toHtml(a);
2521
- }).join('\n');
2522
- node.removeAttribute(pendingAttribute);
2523
- resolve();
2524
- }).catch(reject);
2525
- } else {
2526
- resolve();
2527
- }
2528
- } else {
2529
- resolve();
2530
- }
2531
- });
2532
- }
2533
-
2534
- function replace(node) {
2535
- return Promise.all([replaceForPosition(node, '::before'), replaceForPosition(node, '::after')]);
2536
- }
2537
-
2538
- function processable(node) {
2539
- return node.parentNode !== document.head && !~TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS.indexOf(node.tagName.toUpperCase()) && !node.getAttribute(DATA_FA_PSEUDO_ELEMENT) && (!node.parentNode || node.parentNode.tagName !== 'svg');
2540
- }
2541
-
2542
- function searchPseudoElements(root) {
2543
- if (!IS_DOM) return;
2544
- return new Promise(function (resolve, reject) {
2545
- var operations = toArray(root.querySelectorAll('*')).filter(processable).map(replace);
2546
- var end = perf.begin('searchPseudoElements');
2547
- disableObservation();
2548
- Promise.all(operations).then(function () {
2549
- end();
2550
- enableObservation();
2551
- resolve();
2552
- }).catch(function () {
2553
- end();
2554
- enableObservation();
2555
- reject();
2556
- });
2557
- });
2558
- }
2559
-
2560
- var PseudoElements = {
2561
- hooks: function hooks() {
2562
- return {
2563
- mutationObserverCallbacks: function mutationObserverCallbacks(accumulator) {
2564
- accumulator.pseudoElementsCallback = searchPseudoElements;
2565
- return accumulator;
2566
- }
2567
- };
2568
- },
2569
- provides: function provides(providers$$1) {
2570
- providers$$1.pseudoElements2svg = function (params) {
2571
- var _params$node = params.node,
2572
- node = _params$node === void 0 ? DOCUMENT : _params$node;
2573
-
2574
- if (config.searchPseudoElements) {
2575
- searchPseudoElements(node);
2576
- }
2577
- };
2578
- }
2579
- };
2580
-
2581
- var _unwatched = false;
2582
- var MutationObserver$1 = {
2583
- mixout: function mixout() {
2584
- return {
2585
- dom: {
2586
- unwatch: function unwatch() {
2587
- disableObservation();
2588
- _unwatched = true;
2589
- }
2590
- }
2591
- };
2592
- },
2593
- hooks: function hooks() {
2594
- return {
2595
- bootstrap: function bootstrap() {
2596
- observe(chainHooks('mutationObserverCallbacks', {}));
2597
- },
2598
- noAuto: function noAuto() {
2599
- disconnect();
2600
- },
2601
- watch: function watch(params) {
2602
- var observeMutationsRoot = params.observeMutationsRoot;
2603
-
2604
- if (_unwatched) {
2605
- enableObservation();
2606
- } else {
2607
- observe(chainHooks('mutationObserverCallbacks', {
2608
- observeMutationsRoot: observeMutationsRoot
2609
- }));
2610
- }
2611
- }
2612
- };
2613
- }
2614
- };
2615
-
2616
- var parseTransformString = function parseTransformString(transformString) {
2617
- var transform = {
2618
- size: 16,
2619
- x: 0,
2620
- y: 0,
2621
- flipX: false,
2622
- flipY: false,
2623
- rotate: 0
2624
- };
2625
- return transformString.toLowerCase().split(' ').reduce(function (acc, n) {
2626
- var parts = n.toLowerCase().split('-');
2627
- var first = parts[0];
2628
- var rest = parts.slice(1).join('-');
2629
-
2630
- if (first && rest === 'h') {
2631
- acc.flipX = true;
2632
- return acc;
2633
- }
2634
-
2635
- if (first && rest === 'v') {
2636
- acc.flipY = true;
2637
- return acc;
2638
- }
2639
-
2640
- rest = parseFloat(rest);
2641
-
2642
- if (isNaN(rest)) {
2643
- return acc;
2644
- }
2645
-
2646
- switch (first) {
2647
- case 'grow':
2648
- acc.size = acc.size + rest;
2649
- break;
2650
-
2651
- case 'shrink':
2652
- acc.size = acc.size - rest;
2653
- break;
2654
-
2655
- case 'left':
2656
- acc.x = acc.x - rest;
2657
- break;
2658
-
2659
- case 'right':
2660
- acc.x = acc.x + rest;
2661
- break;
2662
-
2663
- case 'up':
2664
- acc.y = acc.y - rest;
2665
- break;
2666
-
2667
- case 'down':
2668
- acc.y = acc.y + rest;
2669
- break;
2670
-
2671
- case 'rotate':
2672
- acc.rotate = acc.rotate + rest;
2673
- break;
2674
- }
2675
-
2676
- return acc;
2677
- }, transform);
2678
- };
2679
- var PowerTransforms = {
2680
- mixout: function mixout() {
2681
- return {
2682
- parse: {
2683
- transform: function transform(transformString) {
2684
- return parseTransformString(transformString);
2685
- }
2686
- }
2687
- };
2688
- },
2689
- hooks: function hooks() {
2690
- return {
2691
- parseNodeAttributes: function parseNodeAttributes(accumulator, node) {
2692
- var transformString = node.getAttribute('data-fa-transform');
2693
-
2694
- if (transformString) {
2695
- accumulator.transform = parseTransformString(transformString);
2696
- }
2697
-
2698
- return accumulator;
2699
- }
2700
- };
2701
- },
2702
- provides: function provides(providers) {
2703
- providers.generateAbstractTransformGrouping = function (_ref) {
2704
- var main = _ref.main,
2705
- transform = _ref.transform,
2706
- containerWidth = _ref.containerWidth,
2707
- iconWidth = _ref.iconWidth;
2708
- var outer = {
2709
- transform: "translate(".concat(containerWidth / 2, " 256)")
2710
- };
2711
- var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
2712
- var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
2713
- var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
2714
- var inner = {
2715
- transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
2716
- };
2717
- var path = {
2718
- transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
2719
- };
2720
- var operations = {
2721
- outer: outer,
2722
- inner: inner,
2723
- path: path
2724
- };
2725
- return {
2726
- tag: 'g',
2727
- attributes: _objectSpread2$1({}, operations.outer),
2728
- children: [{
2729
- tag: 'g',
2730
- attributes: _objectSpread2$1({}, operations.inner),
2731
- children: [{
2732
- tag: main.icon.tag,
2733
- children: main.icon.children,
2734
- attributes: _objectSpread2$1(_objectSpread2$1({}, main.icon.attributes), operations.path)
2735
- }]
2736
- }]
2737
- };
2738
- };
2739
- }
2740
- };
2741
-
2742
- var ALL_SPACE = {
2743
- x: 0,
2744
- y: 0,
2745
- width: '100%',
2746
- height: '100%'
2747
- };
2748
-
2749
- function fillBlack(_abstract) {
2750
- var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
2751
-
2752
- if (_abstract.attributes && (_abstract.attributes.fill || force)) {
2753
- _abstract.attributes.fill = 'black';
2754
- }
2755
-
2756
- return _abstract;
2757
- }
2758
-
2759
- function deGroup(_abstract2) {
2760
- if (_abstract2.tag === 'g') {
2761
- return _abstract2.children;
2762
- } else {
2763
- return [_abstract2];
2764
- }
2765
- }
2766
-
2767
- var Masks = {
2768
- hooks: function hooks() {
2769
- return {
2770
- parseNodeAttributes: function parseNodeAttributes(accumulator, node) {
2771
- var maskData = node.getAttribute('data-fa-mask');
2772
- var mask = !maskData ? emptyCanonicalIcon() : getCanonicalIcon(maskData.split(' ').map(function (i) {
2773
- return i.trim();
2774
- }));
2775
-
2776
- if (!mask.prefix) {
2777
- mask.prefix = getDefaultUsablePrefix();
2778
- }
2779
-
2780
- accumulator.mask = mask;
2781
- accumulator.maskId = node.getAttribute('data-fa-mask-id');
2782
- return accumulator;
2783
- }
2784
- };
2785
- },
2786
- provides: function provides(providers) {
2787
- providers.generateAbstractMask = function (_ref) {
2788
- var children = _ref.children,
2789
- attributes = _ref.attributes,
2790
- main = _ref.main,
2791
- mask = _ref.mask,
2792
- explicitMaskId = _ref.maskId,
2793
- transform = _ref.transform;
2794
- var mainWidth = main.width,
2795
- mainPath = main.icon;
2796
- var maskWidth = mask.width,
2797
- maskPath = mask.icon;
2798
- var trans = transformForSvg({
2799
- transform: transform,
2800
- containerWidth: maskWidth,
2801
- iconWidth: mainWidth
2802
- });
2803
- var maskRect = {
2804
- tag: 'rect',
2805
- attributes: _objectSpread2$1(_objectSpread2$1({}, ALL_SPACE), {}, {
2806
- fill: 'white'
2807
- })
2808
- };
2809
- var maskInnerGroupChildrenMixin = mainPath.children ? {
2810
- children: mainPath.children.map(fillBlack)
2811
- } : {};
2812
- var maskInnerGroup = {
2813
- tag: 'g',
2814
- attributes: _objectSpread2$1({}, trans.inner),
2815
- children: [fillBlack(_objectSpread2$1({
2816
- tag: mainPath.tag,
2817
- attributes: _objectSpread2$1(_objectSpread2$1({}, mainPath.attributes), trans.path)
2818
- }, maskInnerGroupChildrenMixin))]
2819
- };
2820
- var maskOuterGroup = {
2821
- tag: 'g',
2822
- attributes: _objectSpread2$1({}, trans.outer),
2823
- children: [maskInnerGroup]
2824
- };
2825
- var maskId = "mask-".concat(explicitMaskId || nextUniqueId());
2826
- var clipId = "clip-".concat(explicitMaskId || nextUniqueId());
2827
- var maskTag = {
2828
- tag: 'mask',
2829
- attributes: _objectSpread2$1(_objectSpread2$1({}, ALL_SPACE), {}, {
2830
- id: maskId,
2831
- maskUnits: 'userSpaceOnUse',
2832
- maskContentUnits: 'userSpaceOnUse'
2833
- }),
2834
- children: [maskRect, maskOuterGroup]
2835
- };
2836
- var defs = {
2837
- tag: 'defs',
2838
- children: [{
2839
- tag: 'clipPath',
2840
- attributes: {
2841
- id: clipId
2842
- },
2843
- children: deGroup(maskPath)
2844
- }, maskTag]
2845
- };
2846
- children.push(defs, {
2847
- tag: 'rect',
2848
- attributes: _objectSpread2$1({
2849
- fill: 'currentColor',
2850
- 'clip-path': "url(#".concat(clipId, ")"),
2851
- mask: "url(#".concat(maskId, ")")
2852
- }, ALL_SPACE)
2853
- });
2854
- return {
2855
- children: children,
2856
- attributes: attributes
2857
- };
2858
- };
2859
- }
2860
- };
2861
-
2862
- var MissingIconIndicator = {
2863
- provides: function provides(providers) {
2864
- var reduceMotion = false;
2865
-
2866
- if (WINDOW.matchMedia) {
2867
- reduceMotion = WINDOW.matchMedia('(prefers-reduced-motion: reduce)').matches;
2868
- }
2869
-
2870
- providers.missingIconAbstract = function () {
2871
- var gChildren = [];
2872
- var FILL = {
2873
- fill: 'currentColor'
2874
- };
2875
- var ANIMATION_BASE = {
2876
- attributeType: 'XML',
2877
- repeatCount: 'indefinite',
2878
- dur: '2s'
2879
- }; // Ring
2880
-
2881
- gChildren.push({
2882
- tag: 'path',
2883
- attributes: _objectSpread2$1(_objectSpread2$1({}, FILL), {}, {
2884
- d: 'M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z'
2885
- })
2886
- });
2887
-
2888
- var OPACITY_ANIMATE = _objectSpread2$1(_objectSpread2$1({}, ANIMATION_BASE), {}, {
2889
- attributeName: 'opacity'
2890
- });
2891
-
2892
- var dot = {
2893
- tag: 'circle',
2894
- attributes: _objectSpread2$1(_objectSpread2$1({}, FILL), {}, {
2895
- cx: '256',
2896
- cy: '364',
2897
- r: '28'
2898
- }),
2899
- children: []
2900
- };
2901
-
2902
- if (!reduceMotion) {
2903
- dot.children.push({
2904
- tag: 'animate',
2905
- attributes: _objectSpread2$1(_objectSpread2$1({}, ANIMATION_BASE), {}, {
2906
- attributeName: 'r',
2907
- values: '28;14;28;28;14;28;'
2908
- })
2909
- }, {
2910
- tag: 'animate',
2911
- attributes: _objectSpread2$1(_objectSpread2$1({}, OPACITY_ANIMATE), {}, {
2912
- values: '1;0;1;1;0;1;'
2913
- })
2914
- });
2915
- }
2916
-
2917
- gChildren.push(dot);
2918
- gChildren.push({
2919
- tag: 'path',
2920
- attributes: _objectSpread2$1(_objectSpread2$1({}, FILL), {}, {
2921
- opacity: '1',
2922
- d: 'M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z'
2923
- }),
2924
- children: reduceMotion ? [] : [{
2925
- tag: 'animate',
2926
- attributes: _objectSpread2$1(_objectSpread2$1({}, OPACITY_ANIMATE), {}, {
2927
- values: '1;0;0;0;0;1;'
2928
- })
2929
- }]
2930
- });
2931
-
2932
- if (!reduceMotion) {
2933
- // Exclamation
2934
- gChildren.push({
2935
- tag: 'path',
2936
- attributes: _objectSpread2$1(_objectSpread2$1({}, FILL), {}, {
2937
- opacity: '0',
2938
- d: 'M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z'
2939
- }),
2940
- children: [{
2941
- tag: 'animate',
2942
- attributes: _objectSpread2$1(_objectSpread2$1({}, OPACITY_ANIMATE), {}, {
2943
- values: '0;0;1;1;0;0;'
2944
- })
2945
- }]
2946
- });
2947
- }
2948
-
2949
- return {
2950
- tag: 'g',
2951
- attributes: {
2952
- 'class': 'missing'
2953
- },
2954
- children: gChildren
2955
- };
2956
- };
2957
- }
2958
- };
2959
-
2960
- var SvgSymbols = {
2961
- hooks: function hooks() {
2962
- return {
2963
- parseNodeAttributes: function parseNodeAttributes(accumulator, node) {
2964
- var symbolData = node.getAttribute('data-fa-symbol');
2965
- var symbol = symbolData === null ? false : symbolData === '' ? true : symbolData;
2966
- accumulator['symbol'] = symbol;
2967
- return accumulator;
2968
- }
2969
- };
2970
- }
2971
- };
2972
-
2973
- var plugins = [InjectCSS, ReplaceElements, Layers, LayersCounter, LayersText, PseudoElements, MutationObserver$1, PowerTransforms, Masks, MissingIconIndicator, SvgSymbols];
2974
-
2975
- registerPlugins(plugins, {
2976
- mixoutsTo: api
2977
- });
2978
- api.noAuto;
2979
- api.config;
2980
- var library$1 = api.library;
2981
- api.dom;
2982
- var parse$1 = api.parse;
2983
- api.findIconDefinition;
2984
- api.toHtml;
2985
- var icon = api.icon;
2986
- api.layer;
2987
- api.text;
2988
- api.counter;
2989
-
2990
- var faMagnifyingGlass = {
2991
- prefix: 'fas',
2992
- iconName: 'magnifying-glass',
2993
- icon: [512, 512, [128269, "search"], "f002", "M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]
2994
- };
2995
- var faSearch = faMagnifyingGlass;
2996
-
2997
4
  function getDefaultExportFromCjs (x) {
2998
5
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
2999
6
  }
@@ -3373,1612 +380,82 @@ function SelectButton(_a) {
3373
380
  return (React__default__default.createElement("button", { className: "will-filter-bar-select-button", onClick: onClick, style: style }, label));
3374
381
  }
3375
382
 
3376
- var propTypes = {exports: {}};
3377
-
3378
- var reactIs = {exports: {}};
3379
-
3380
- var reactIs_production_min = {};
3381
-
3382
- /** @license React v16.13.1
3383
- * react-is.production.min.js
3384
- *
3385
- * Copyright (c) Facebook, Inc. and its affiliates.
3386
- *
3387
- * This source code is licensed under the MIT license found in the
3388
- * LICENSE file in the root directory of this source tree.
3389
- */
3390
-
3391
- var hasRequiredReactIs_production_min;
3392
-
3393
- function requireReactIs_production_min () {
3394
- if (hasRequiredReactIs_production_min) return reactIs_production_min;
3395
- hasRequiredReactIs_production_min = 1;
3396
- var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
3397
- Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
3398
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
3399
- reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
3400
- reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
3401
- reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
3402
- return reactIs_production_min;
3403
- }
3404
-
3405
- var reactIs_development = {};
3406
-
3407
- /** @license React v16.13.1
3408
- * react-is.development.js
3409
- *
3410
- * Copyright (c) Facebook, Inc. and its affiliates.
3411
- *
3412
- * This source code is licensed under the MIT license found in the
3413
- * LICENSE file in the root directory of this source tree.
3414
- */
3415
-
3416
- var hasRequiredReactIs_development;
3417
-
3418
- function requireReactIs_development () {
3419
- if (hasRequiredReactIs_development) return reactIs_development;
3420
- hasRequiredReactIs_development = 1;
3421
-
3422
-
3423
-
3424
- if (process.env.NODE_ENV !== "production") {
3425
- (function() {
3426
-
3427
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
3428
- // nor polyfill, then a plain number is used for performance.
3429
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
3430
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
3431
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
3432
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
3433
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
3434
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
3435
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
3436
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
3437
- // (unstable) APIs that have been removed. Can we remove the symbols?
3438
-
3439
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
3440
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
3441
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
3442
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
3443
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
3444
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
3445
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
3446
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
3447
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
3448
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
3449
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
3450
-
3451
- function isValidElementType(type) {
3452
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
3453
- 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);
3454
- }
3455
-
3456
- function typeOf(object) {
3457
- if (typeof object === 'object' && object !== null) {
3458
- var $$typeof = object.$$typeof;
3459
-
3460
- switch ($$typeof) {
3461
- case REACT_ELEMENT_TYPE:
3462
- var type = object.type;
3463
-
3464
- switch (type) {
3465
- case REACT_ASYNC_MODE_TYPE:
3466
- case REACT_CONCURRENT_MODE_TYPE:
3467
- case REACT_FRAGMENT_TYPE:
3468
- case REACT_PROFILER_TYPE:
3469
- case REACT_STRICT_MODE_TYPE:
3470
- case REACT_SUSPENSE_TYPE:
3471
- return type;
3472
-
3473
- default:
3474
- var $$typeofType = type && type.$$typeof;
3475
-
3476
- switch ($$typeofType) {
3477
- case REACT_CONTEXT_TYPE:
3478
- case REACT_FORWARD_REF_TYPE:
3479
- case REACT_LAZY_TYPE:
3480
- case REACT_MEMO_TYPE:
3481
- case REACT_PROVIDER_TYPE:
3482
- return $$typeofType;
3483
-
3484
- default:
3485
- return $$typeof;
3486
- }
3487
-
3488
- }
3489
-
3490
- case REACT_PORTAL_TYPE:
3491
- return $$typeof;
3492
- }
3493
- }
3494
-
3495
- return undefined;
3496
- } // AsyncMode is deprecated along with isAsyncMode
3497
-
3498
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
3499
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
3500
- var ContextConsumer = REACT_CONTEXT_TYPE;
3501
- var ContextProvider = REACT_PROVIDER_TYPE;
3502
- var Element = REACT_ELEMENT_TYPE;
3503
- var ForwardRef = REACT_FORWARD_REF_TYPE;
3504
- var Fragment = REACT_FRAGMENT_TYPE;
3505
- var Lazy = REACT_LAZY_TYPE;
3506
- var Memo = REACT_MEMO_TYPE;
3507
- var Portal = REACT_PORTAL_TYPE;
3508
- var Profiler = REACT_PROFILER_TYPE;
3509
- var StrictMode = REACT_STRICT_MODE_TYPE;
3510
- var Suspense = REACT_SUSPENSE_TYPE;
3511
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
3512
-
3513
- function isAsyncMode(object) {
3514
- {
3515
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
3516
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
3517
-
3518
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
3519
- }
3520
- }
3521
-
3522
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
3523
- }
3524
- function isConcurrentMode(object) {
3525
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
3526
- }
3527
- function isContextConsumer(object) {
3528
- return typeOf(object) === REACT_CONTEXT_TYPE;
3529
- }
3530
- function isContextProvider(object) {
3531
- return typeOf(object) === REACT_PROVIDER_TYPE;
3532
- }
3533
- function isElement(object) {
3534
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
3535
- }
3536
- function isForwardRef(object) {
3537
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
3538
- }
3539
- function isFragment(object) {
3540
- return typeOf(object) === REACT_FRAGMENT_TYPE;
3541
- }
3542
- function isLazy(object) {
3543
- return typeOf(object) === REACT_LAZY_TYPE;
3544
- }
3545
- function isMemo(object) {
3546
- return typeOf(object) === REACT_MEMO_TYPE;
3547
- }
3548
- function isPortal(object) {
3549
- return typeOf(object) === REACT_PORTAL_TYPE;
3550
- }
3551
- function isProfiler(object) {
3552
- return typeOf(object) === REACT_PROFILER_TYPE;
3553
- }
3554
- function isStrictMode(object) {
3555
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
3556
- }
3557
- function isSuspense(object) {
3558
- return typeOf(object) === REACT_SUSPENSE_TYPE;
3559
- }
3560
-
3561
- reactIs_development.AsyncMode = AsyncMode;
3562
- reactIs_development.ConcurrentMode = ConcurrentMode;
3563
- reactIs_development.ContextConsumer = ContextConsumer;
3564
- reactIs_development.ContextProvider = ContextProvider;
3565
- reactIs_development.Element = Element;
3566
- reactIs_development.ForwardRef = ForwardRef;
3567
- reactIs_development.Fragment = Fragment;
3568
- reactIs_development.Lazy = Lazy;
3569
- reactIs_development.Memo = Memo;
3570
- reactIs_development.Portal = Portal;
3571
- reactIs_development.Profiler = Profiler;
3572
- reactIs_development.StrictMode = StrictMode;
3573
- reactIs_development.Suspense = Suspense;
3574
- reactIs_development.isAsyncMode = isAsyncMode;
3575
- reactIs_development.isConcurrentMode = isConcurrentMode;
3576
- reactIs_development.isContextConsumer = isContextConsumer;
3577
- reactIs_development.isContextProvider = isContextProvider;
3578
- reactIs_development.isElement = isElement;
3579
- reactIs_development.isForwardRef = isForwardRef;
3580
- reactIs_development.isFragment = isFragment;
3581
- reactIs_development.isLazy = isLazy;
3582
- reactIs_development.isMemo = isMemo;
3583
- reactIs_development.isPortal = isPortal;
3584
- reactIs_development.isProfiler = isProfiler;
3585
- reactIs_development.isStrictMode = isStrictMode;
3586
- reactIs_development.isSuspense = isSuspense;
3587
- reactIs_development.isValidElementType = isValidElementType;
3588
- reactIs_development.typeOf = typeOf;
3589
- })();
3590
- }
3591
- return reactIs_development;
3592
- }
3593
-
3594
- var hasRequiredReactIs;
3595
-
3596
- function requireReactIs () {
3597
- if (hasRequiredReactIs) return reactIs.exports;
3598
- hasRequiredReactIs = 1;
3599
-
3600
- if (process.env.NODE_ENV === 'production') {
3601
- reactIs.exports = requireReactIs_production_min();
3602
- } else {
3603
- reactIs.exports = requireReactIs_development();
3604
- }
3605
- return reactIs.exports;
3606
- }
3607
-
3608
- /*
3609
- object-assign
3610
- (c) Sindre Sorhus
3611
- @license MIT
3612
- */
3613
-
3614
- var objectAssign;
3615
- var hasRequiredObjectAssign;
3616
-
3617
- function requireObjectAssign () {
3618
- if (hasRequiredObjectAssign) return objectAssign;
3619
- hasRequiredObjectAssign = 1;
3620
- /* eslint-disable no-unused-vars */
3621
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
3622
- var hasOwnProperty = Object.prototype.hasOwnProperty;
3623
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
3624
-
3625
- function toObject(val) {
3626
- if (val === null || val === undefined) {
3627
- throw new TypeError('Object.assign cannot be called with null or undefined');
3628
- }
3629
-
3630
- return Object(val);
3631
- }
3632
-
3633
- function shouldUseNative() {
3634
- try {
3635
- if (!Object.assign) {
3636
- return false;
3637
- }
3638
-
3639
- // Detect buggy property enumeration order in older V8 versions.
3640
-
3641
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
3642
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
3643
- test1[5] = 'de';
3644
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
3645
- return false;
3646
- }
3647
-
3648
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
3649
- var test2 = {};
3650
- for (var i = 0; i < 10; i++) {
3651
- test2['_' + String.fromCharCode(i)] = i;
3652
- }
3653
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
3654
- return test2[n];
3655
- });
3656
- if (order2.join('') !== '0123456789') {
3657
- return false;
3658
- }
3659
-
3660
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
3661
- var test3 = {};
3662
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
3663
- test3[letter] = letter;
3664
- });
3665
- if (Object.keys(Object.assign({}, test3)).join('') !==
3666
- 'abcdefghijklmnopqrst') {
3667
- return false;
3668
- }
3669
-
3670
- return true;
3671
- } catch (err) {
3672
- // We don't expect any of the above to throw, but better to be safe.
3673
- return false;
3674
- }
3675
- }
3676
-
3677
- objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
3678
- var from;
3679
- var to = toObject(target);
3680
- var symbols;
3681
-
3682
- for (var s = 1; s < arguments.length; s++) {
3683
- from = Object(arguments[s]);
3684
-
3685
- for (var key in from) {
3686
- if (hasOwnProperty.call(from, key)) {
3687
- to[key] = from[key];
3688
- }
3689
- }
3690
-
3691
- if (getOwnPropertySymbols) {
3692
- symbols = getOwnPropertySymbols(from);
3693
- for (var i = 0; i < symbols.length; i++) {
3694
- if (propIsEnumerable.call(from, symbols[i])) {
3695
- to[symbols[i]] = from[symbols[i]];
3696
- }
3697
- }
3698
- }
3699
- }
3700
-
3701
- return to;
3702
- };
3703
- return objectAssign;
3704
- }
3705
-
3706
- /**
3707
- * Copyright (c) 2013-present, Facebook, Inc.
3708
- *
3709
- * This source code is licensed under the MIT license found in the
3710
- * LICENSE file in the root directory of this source tree.
3711
- */
3712
-
3713
- var ReactPropTypesSecret_1;
3714
- var hasRequiredReactPropTypesSecret;
3715
-
3716
- function requireReactPropTypesSecret () {
3717
- if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
3718
- hasRequiredReactPropTypesSecret = 1;
3719
-
3720
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
3721
-
3722
- ReactPropTypesSecret_1 = ReactPropTypesSecret;
3723
- return ReactPropTypesSecret_1;
3724
- }
3725
-
3726
- var has;
3727
- var hasRequiredHas;
3728
-
3729
- function requireHas () {
3730
- if (hasRequiredHas) return has;
3731
- hasRequiredHas = 1;
3732
- has = Function.call.bind(Object.prototype.hasOwnProperty);
3733
- return has;
3734
- }
3735
-
3736
- /**
3737
- * Copyright (c) 2013-present, Facebook, Inc.
3738
- *
3739
- * This source code is licensed under the MIT license found in the
3740
- * LICENSE file in the root directory of this source tree.
3741
- */
3742
-
3743
- var checkPropTypes_1;
3744
- var hasRequiredCheckPropTypes;
3745
-
3746
- function requireCheckPropTypes () {
3747
- if (hasRequiredCheckPropTypes) return checkPropTypes_1;
3748
- hasRequiredCheckPropTypes = 1;
3749
-
3750
- var printWarning = function() {};
3751
-
3752
- if (process.env.NODE_ENV !== 'production') {
3753
- var ReactPropTypesSecret = requireReactPropTypesSecret();
3754
- var loggedTypeFailures = {};
3755
- var has = requireHas();
3756
-
3757
- printWarning = function(text) {
3758
- var message = 'Warning: ' + text;
3759
- if (typeof console !== 'undefined') {
3760
- console.error(message);
3761
- }
3762
- try {
3763
- // --- Welcome to debugging React ---
3764
- // This error was thrown as a convenience so that you can use this stack
3765
- // to find the callsite that caused this warning to fire.
3766
- throw new Error(message);
3767
- } catch (x) { /**/ }
3768
- };
3769
- }
3770
-
3771
- /**
3772
- * Assert that the values match with the type specs.
3773
- * Error messages are memorized and will only be shown once.
3774
- *
3775
- * @param {object} typeSpecs Map of name to a ReactPropType
3776
- * @param {object} values Runtime values that need to be type-checked
3777
- * @param {string} location e.g. "prop", "context", "child context"
3778
- * @param {string} componentName Name of the component for error messages.
3779
- * @param {?Function} getStack Returns the component stack.
3780
- * @private
3781
- */
3782
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
3783
- if (process.env.NODE_ENV !== 'production') {
3784
- for (var typeSpecName in typeSpecs) {
3785
- if (has(typeSpecs, typeSpecName)) {
3786
- var error;
3787
- // Prop type validation may throw. In case they do, we don't want to
3788
- // fail the render phase where it didn't fail before. So we log it.
3789
- // After these have been cleaned up, we'll let them throw.
3790
- try {
3791
- // This is intentionally an invariant that gets caught. It's the same
3792
- // behavior as without this statement except with a better message.
3793
- if (typeof typeSpecs[typeSpecName] !== 'function') {
3794
- var err = Error(
3795
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
3796
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
3797
- 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
3798
- );
3799
- err.name = 'Invariant Violation';
3800
- throw err;
3801
- }
3802
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
3803
- } catch (ex) {
3804
- error = ex;
3805
- }
3806
- if (error && !(error instanceof Error)) {
3807
- printWarning(
3808
- (componentName || 'React class') + ': type specification of ' +
3809
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
3810
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
3811
- 'You may have forgotten to pass an argument to the type checker ' +
3812
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
3813
- 'shape all require an argument).'
3814
- );
3815
- }
3816
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
3817
- // Only monitor this failure once because there tends to be a lot of the
3818
- // same error.
3819
- loggedTypeFailures[error.message] = true;
3820
-
3821
- var stack = getStack ? getStack() : '';
3822
-
3823
- printWarning(
3824
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
3825
- );
3826
- }
3827
- }
3828
- }
3829
- }
3830
- }
3831
-
3832
- /**
3833
- * Resets warning cache when testing.
3834
- *
3835
- * @private
3836
- */
3837
- checkPropTypes.resetWarningCache = function() {
3838
- if (process.env.NODE_ENV !== 'production') {
3839
- loggedTypeFailures = {};
3840
- }
3841
- };
3842
-
3843
- checkPropTypes_1 = checkPropTypes;
3844
- return checkPropTypes_1;
3845
- }
3846
-
3847
- /**
3848
- * Copyright (c) 2013-present, Facebook, Inc.
3849
- *
3850
- * This source code is licensed under the MIT license found in the
3851
- * LICENSE file in the root directory of this source tree.
3852
- */
3853
-
3854
- var factoryWithTypeCheckers;
3855
- var hasRequiredFactoryWithTypeCheckers;
3856
-
3857
- function requireFactoryWithTypeCheckers () {
3858
- if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
3859
- hasRequiredFactoryWithTypeCheckers = 1;
3860
-
3861
- var ReactIs = requireReactIs();
3862
- var assign = requireObjectAssign();
3863
-
3864
- var ReactPropTypesSecret = requireReactPropTypesSecret();
3865
- var has = requireHas();
3866
- var checkPropTypes = requireCheckPropTypes();
3867
-
3868
- var printWarning = function() {};
3869
-
3870
- if (process.env.NODE_ENV !== 'production') {
3871
- printWarning = function(text) {
3872
- var message = 'Warning: ' + text;
3873
- if (typeof console !== 'undefined') {
3874
- console.error(message);
3875
- }
3876
- try {
3877
- // --- Welcome to debugging React ---
3878
- // This error was thrown as a convenience so that you can use this stack
3879
- // to find the callsite that caused this warning to fire.
3880
- throw new Error(message);
3881
- } catch (x) {}
3882
- };
3883
- }
3884
-
3885
- function emptyFunctionThatReturnsNull() {
3886
- return null;
3887
- }
3888
-
3889
- factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
3890
- /* global Symbol */
3891
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
3892
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
3893
-
3894
- /**
3895
- * Returns the iterator method function contained on the iterable object.
3896
- *
3897
- * Be sure to invoke the function with the iterable as context:
3898
- *
3899
- * var iteratorFn = getIteratorFn(myIterable);
3900
- * if (iteratorFn) {
3901
- * var iterator = iteratorFn.call(myIterable);
3902
- * ...
3903
- * }
3904
- *
3905
- * @param {?object} maybeIterable
3906
- * @return {?function}
3907
- */
3908
- function getIteratorFn(maybeIterable) {
3909
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
3910
- if (typeof iteratorFn === 'function') {
3911
- return iteratorFn;
3912
- }
3913
- }
3914
-
3915
- /**
3916
- * Collection of methods that allow declaration and validation of props that are
3917
- * supplied to React components. Example usage:
3918
- *
3919
- * var Props = require('ReactPropTypes');
3920
- * var MyArticle = React.createClass({
3921
- * propTypes: {
3922
- * // An optional string prop named "description".
3923
- * description: Props.string,
3924
- *
3925
- * // A required enum prop named "category".
3926
- * category: Props.oneOf(['News','Photos']).isRequired,
3927
- *
3928
- * // A prop named "dialog" that requires an instance of Dialog.
3929
- * dialog: Props.instanceOf(Dialog).isRequired
3930
- * },
3931
- * render: function() { ... }
3932
- * });
3933
- *
3934
- * A more formal specification of how these methods are used:
3935
- *
3936
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
3937
- * decl := ReactPropTypes.{type}(.isRequired)?
3938
- *
3939
- * Each and every declaration produces a function with the same signature. This
3940
- * allows the creation of custom validation functions. For example:
3941
- *
3942
- * var MyLink = React.createClass({
3943
- * propTypes: {
3944
- * // An optional string or URI prop named "href".
3945
- * href: function(props, propName, componentName) {
3946
- * var propValue = props[propName];
3947
- * if (propValue != null && typeof propValue !== 'string' &&
3948
- * !(propValue instanceof URI)) {
3949
- * return new Error(
3950
- * 'Expected a string or an URI for ' + propName + ' in ' +
3951
- * componentName
3952
- * );
3953
- * }
3954
- * }
3955
- * },
3956
- * render: function() {...}
3957
- * });
3958
- *
3959
- * @internal
3960
- */
3961
-
3962
- var ANONYMOUS = '<<anonymous>>';
3963
-
3964
- // Important!
3965
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
3966
- var ReactPropTypes = {
3967
- array: createPrimitiveTypeChecker('array'),
3968
- bigint: createPrimitiveTypeChecker('bigint'),
3969
- bool: createPrimitiveTypeChecker('boolean'),
3970
- func: createPrimitiveTypeChecker('function'),
3971
- number: createPrimitiveTypeChecker('number'),
3972
- object: createPrimitiveTypeChecker('object'),
3973
- string: createPrimitiveTypeChecker('string'),
3974
- symbol: createPrimitiveTypeChecker('symbol'),
3975
-
3976
- any: createAnyTypeChecker(),
3977
- arrayOf: createArrayOfTypeChecker,
3978
- element: createElementTypeChecker(),
3979
- elementType: createElementTypeTypeChecker(),
3980
- instanceOf: createInstanceTypeChecker,
3981
- node: createNodeChecker(),
3982
- objectOf: createObjectOfTypeChecker,
3983
- oneOf: createEnumTypeChecker,
3984
- oneOfType: createUnionTypeChecker,
3985
- shape: createShapeTypeChecker,
3986
- exact: createStrictShapeTypeChecker,
3987
- };
3988
-
3989
- /**
3990
- * inlined Object.is polyfill to avoid requiring consumers ship their own
3991
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
3992
- */
3993
- /*eslint-disable no-self-compare*/
3994
- function is(x, y) {
3995
- // SameValue algorithm
3996
- if (x === y) {
3997
- // Steps 1-5, 7-10
3998
- // Steps 6.b-6.e: +0 != -0
3999
- return x !== 0 || 1 / x === 1 / y;
4000
- } else {
4001
- // Step 6.a: NaN == NaN
4002
- return x !== x && y !== y;
4003
- }
4004
- }
4005
- /*eslint-enable no-self-compare*/
4006
-
4007
- /**
4008
- * We use an Error-like object for backward compatibility as people may call
4009
- * PropTypes directly and inspect their output. However, we don't use real
4010
- * Errors anymore. We don't inspect their stack anyway, and creating them
4011
- * is prohibitively expensive if they are created too often, such as what
4012
- * happens in oneOfType() for any type before the one that matched.
4013
- */
4014
- function PropTypeError(message, data) {
4015
- this.message = message;
4016
- this.data = data && typeof data === 'object' ? data: {};
4017
- this.stack = '';
4018
- }
4019
- // Make `instanceof Error` still work for returned errors.
4020
- PropTypeError.prototype = Error.prototype;
4021
-
4022
- function createChainableTypeChecker(validate) {
4023
- if (process.env.NODE_ENV !== 'production') {
4024
- var manualPropTypeCallCache = {};
4025
- var manualPropTypeWarningCount = 0;
4026
- }
4027
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
4028
- componentName = componentName || ANONYMOUS;
4029
- propFullName = propFullName || propName;
4030
-
4031
- if (secret !== ReactPropTypesSecret) {
4032
- if (throwOnDirectAccess) {
4033
- // New behavior only for users of `prop-types` package
4034
- var err = new Error(
4035
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
4036
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
4037
- 'Read more at http://fb.me/use-check-prop-types'
4038
- );
4039
- err.name = 'Invariant Violation';
4040
- throw err;
4041
- } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
4042
- // Old behavior for people using React.PropTypes
4043
- var cacheKey = componentName + ':' + propName;
4044
- if (
4045
- !manualPropTypeCallCache[cacheKey] &&
4046
- // Avoid spamming the console because they are often not actionable except for lib authors
4047
- manualPropTypeWarningCount < 3
4048
- ) {
4049
- printWarning(
4050
- 'You are manually calling a React.PropTypes validation ' +
4051
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
4052
- 'and will throw in the standalone `prop-types` package. ' +
4053
- 'You may be seeing this warning due to a third-party PropTypes ' +
4054
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
4055
- );
4056
- manualPropTypeCallCache[cacheKey] = true;
4057
- manualPropTypeWarningCount++;
4058
- }
4059
- }
4060
- }
4061
- if (props[propName] == null) {
4062
- if (isRequired) {
4063
- if (props[propName] === null) {
4064
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
4065
- }
4066
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
4067
- }
4068
- return null;
4069
- } else {
4070
- return validate(props, propName, componentName, location, propFullName);
4071
- }
4072
- }
4073
-
4074
- var chainedCheckType = checkType.bind(null, false);
4075
- chainedCheckType.isRequired = checkType.bind(null, true);
4076
-
4077
- return chainedCheckType;
4078
- }
4079
-
4080
- function createPrimitiveTypeChecker(expectedType) {
4081
- function validate(props, propName, componentName, location, propFullName, secret) {
4082
- var propValue = props[propName];
4083
- var propType = getPropType(propValue);
4084
- if (propType !== expectedType) {
4085
- // `propValue` being instance of, say, date/regexp, pass the 'object'
4086
- // check, but we can offer a more precise error message here rather than
4087
- // 'of type `object`'.
4088
- var preciseType = getPreciseType(propValue);
4089
-
4090
- return new PropTypeError(
4091
- 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
4092
- {expectedType: expectedType}
4093
- );
4094
- }
4095
- return null;
4096
- }
4097
- return createChainableTypeChecker(validate);
4098
- }
4099
-
4100
- function createAnyTypeChecker() {
4101
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
4102
- }
4103
-
4104
- function createArrayOfTypeChecker(typeChecker) {
4105
- function validate(props, propName, componentName, location, propFullName) {
4106
- if (typeof typeChecker !== 'function') {
4107
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
4108
- }
4109
- var propValue = props[propName];
4110
- if (!Array.isArray(propValue)) {
4111
- var propType = getPropType(propValue);
4112
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
4113
- }
4114
- for (var i = 0; i < propValue.length; i++) {
4115
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
4116
- if (error instanceof Error) {
4117
- return error;
4118
- }
4119
- }
4120
- return null;
4121
- }
4122
- return createChainableTypeChecker(validate);
4123
- }
4124
-
4125
- function createElementTypeChecker() {
4126
- function validate(props, propName, componentName, location, propFullName) {
4127
- var propValue = props[propName];
4128
- if (!isValidElement(propValue)) {
4129
- var propType = getPropType(propValue);
4130
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
4131
- }
4132
- return null;
4133
- }
4134
- return createChainableTypeChecker(validate);
4135
- }
4136
-
4137
- function createElementTypeTypeChecker() {
4138
- function validate(props, propName, componentName, location, propFullName) {
4139
- var propValue = props[propName];
4140
- if (!ReactIs.isValidElementType(propValue)) {
4141
- var propType = getPropType(propValue);
4142
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
4143
- }
4144
- return null;
4145
- }
4146
- return createChainableTypeChecker(validate);
4147
- }
4148
-
4149
- function createInstanceTypeChecker(expectedClass) {
4150
- function validate(props, propName, componentName, location, propFullName) {
4151
- if (!(props[propName] instanceof expectedClass)) {
4152
- var expectedClassName = expectedClass.name || ANONYMOUS;
4153
- var actualClassName = getClassName(props[propName]);
4154
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
4155
- }
4156
- return null;
4157
- }
4158
- return createChainableTypeChecker(validate);
4159
- }
4160
-
4161
- function createEnumTypeChecker(expectedValues) {
4162
- if (!Array.isArray(expectedValues)) {
4163
- if (process.env.NODE_ENV !== 'production') {
4164
- if (arguments.length > 1) {
4165
- printWarning(
4166
- 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
4167
- 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
4168
- );
4169
- } else {
4170
- printWarning('Invalid argument supplied to oneOf, expected an array.');
4171
- }
4172
- }
4173
- return emptyFunctionThatReturnsNull;
4174
- }
4175
-
4176
- function validate(props, propName, componentName, location, propFullName) {
4177
- var propValue = props[propName];
4178
- for (var i = 0; i < expectedValues.length; i++) {
4179
- if (is(propValue, expectedValues[i])) {
4180
- return null;
4181
- }
4182
- }
4183
-
4184
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
4185
- var type = getPreciseType(value);
4186
- if (type === 'symbol') {
4187
- return String(value);
4188
- }
4189
- return value;
4190
- });
4191
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
4192
- }
4193
- return createChainableTypeChecker(validate);
4194
- }
4195
-
4196
- function createObjectOfTypeChecker(typeChecker) {
4197
- function validate(props, propName, componentName, location, propFullName) {
4198
- if (typeof typeChecker !== 'function') {
4199
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
4200
- }
4201
- var propValue = props[propName];
4202
- var propType = getPropType(propValue);
4203
- if (propType !== 'object') {
4204
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
4205
- }
4206
- for (var key in propValue) {
4207
- if (has(propValue, key)) {
4208
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
4209
- if (error instanceof Error) {
4210
- return error;
4211
- }
4212
- }
4213
- }
4214
- return null;
4215
- }
4216
- return createChainableTypeChecker(validate);
4217
- }
4218
-
4219
- function createUnionTypeChecker(arrayOfTypeCheckers) {
4220
- if (!Array.isArray(arrayOfTypeCheckers)) {
4221
- process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
4222
- return emptyFunctionThatReturnsNull;
4223
- }
4224
-
4225
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
4226
- var checker = arrayOfTypeCheckers[i];
4227
- if (typeof checker !== 'function') {
4228
- printWarning(
4229
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
4230
- 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
4231
- );
4232
- return emptyFunctionThatReturnsNull;
4233
- }
4234
- }
4235
-
4236
- function validate(props, propName, componentName, location, propFullName) {
4237
- var expectedTypes = [];
4238
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
4239
- var checker = arrayOfTypeCheckers[i];
4240
- var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
4241
- if (checkerResult == null) {
4242
- return null;
4243
- }
4244
- if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
4245
- expectedTypes.push(checkerResult.data.expectedType);
4246
- }
4247
- }
4248
- var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
4249
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
4250
- }
4251
- return createChainableTypeChecker(validate);
4252
- }
4253
-
4254
- function createNodeChecker() {
4255
- function validate(props, propName, componentName, location, propFullName) {
4256
- if (!isNode(props[propName])) {
4257
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
4258
- }
4259
- return null;
4260
- }
4261
- return createChainableTypeChecker(validate);
4262
- }
4263
-
4264
- function invalidValidatorError(componentName, location, propFullName, key, type) {
4265
- return new PropTypeError(
4266
- (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
4267
- 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
4268
- );
4269
- }
4270
-
4271
- function createShapeTypeChecker(shapeTypes) {
4272
- function validate(props, propName, componentName, location, propFullName) {
4273
- var propValue = props[propName];
4274
- var propType = getPropType(propValue);
4275
- if (propType !== 'object') {
4276
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
4277
- }
4278
- for (var key in shapeTypes) {
4279
- var checker = shapeTypes[key];
4280
- if (typeof checker !== 'function') {
4281
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
4282
- }
4283
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
4284
- if (error) {
4285
- return error;
4286
- }
4287
- }
4288
- return null;
4289
- }
4290
- return createChainableTypeChecker(validate);
4291
- }
4292
-
4293
- function createStrictShapeTypeChecker(shapeTypes) {
4294
- function validate(props, propName, componentName, location, propFullName) {
4295
- var propValue = props[propName];
4296
- var propType = getPropType(propValue);
4297
- if (propType !== 'object') {
4298
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
4299
- }
4300
- // We need to check all keys in case some are required but missing from props.
4301
- var allKeys = assign({}, props[propName], shapeTypes);
4302
- for (var key in allKeys) {
4303
- var checker = shapeTypes[key];
4304
- if (has(shapeTypes, key) && typeof checker !== 'function') {
4305
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
4306
- }
4307
- if (!checker) {
4308
- return new PropTypeError(
4309
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
4310
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
4311
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
4312
- );
4313
- }
4314
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
4315
- if (error) {
4316
- return error;
4317
- }
4318
- }
4319
- return null;
4320
- }
4321
-
4322
- return createChainableTypeChecker(validate);
4323
- }
4324
-
4325
- function isNode(propValue) {
4326
- switch (typeof propValue) {
4327
- case 'number':
4328
- case 'string':
4329
- case 'undefined':
4330
- return true;
4331
- case 'boolean':
4332
- return !propValue;
4333
- case 'object':
4334
- if (Array.isArray(propValue)) {
4335
- return propValue.every(isNode);
4336
- }
4337
- if (propValue === null || isValidElement(propValue)) {
4338
- return true;
4339
- }
4340
-
4341
- var iteratorFn = getIteratorFn(propValue);
4342
- if (iteratorFn) {
4343
- var iterator = iteratorFn.call(propValue);
4344
- var step;
4345
- if (iteratorFn !== propValue.entries) {
4346
- while (!(step = iterator.next()).done) {
4347
- if (!isNode(step.value)) {
4348
- return false;
4349
- }
4350
- }
4351
- } else {
4352
- // Iterator will provide entry [k,v] tuples rather than values.
4353
- while (!(step = iterator.next()).done) {
4354
- var entry = step.value;
4355
- if (entry) {
4356
- if (!isNode(entry[1])) {
4357
- return false;
4358
- }
4359
- }
4360
- }
4361
- }
4362
- } else {
4363
- return false;
4364
- }
4365
-
4366
- return true;
4367
- default:
4368
- return false;
4369
- }
4370
- }
4371
-
4372
- function isSymbol(propType, propValue) {
4373
- // Native Symbol.
4374
- if (propType === 'symbol') {
4375
- return true;
4376
- }
4377
-
4378
- // falsy value can't be a Symbol
4379
- if (!propValue) {
4380
- return false;
4381
- }
4382
-
4383
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
4384
- if (propValue['@@toStringTag'] === 'Symbol') {
4385
- return true;
4386
- }
4387
-
4388
- // Fallback for non-spec compliant Symbols which are polyfilled.
4389
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
4390
- return true;
4391
- }
4392
-
4393
- return false;
4394
- }
4395
-
4396
- // Equivalent of `typeof` but with special handling for array and regexp.
4397
- function getPropType(propValue) {
4398
- var propType = typeof propValue;
4399
- if (Array.isArray(propValue)) {
4400
- return 'array';
4401
- }
4402
- if (propValue instanceof RegExp) {
4403
- // Old webkits (at least until Android 4.0) return 'function' rather than
4404
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
4405
- // passes PropTypes.object.
4406
- return 'object';
4407
- }
4408
- if (isSymbol(propType, propValue)) {
4409
- return 'symbol';
4410
- }
4411
- return propType;
4412
- }
4413
-
4414
- // This handles more types than `getPropType`. Only used for error messages.
4415
- // See `createPrimitiveTypeChecker`.
4416
- function getPreciseType(propValue) {
4417
- if (typeof propValue === 'undefined' || propValue === null) {
4418
- return '' + propValue;
4419
- }
4420
- var propType = getPropType(propValue);
4421
- if (propType === 'object') {
4422
- if (propValue instanceof Date) {
4423
- return 'date';
4424
- } else if (propValue instanceof RegExp) {
4425
- return 'regexp';
4426
- }
4427
- }
4428
- return propType;
4429
- }
4430
-
4431
- // Returns a string that is postfixed to a warning about an invalid type.
4432
- // For example, "undefined" or "of type array"
4433
- function getPostfixForTypeWarning(value) {
4434
- var type = getPreciseType(value);
4435
- switch (type) {
4436
- case 'array':
4437
- case 'object':
4438
- return 'an ' + type;
4439
- case 'boolean':
4440
- case 'date':
4441
- case 'regexp':
4442
- return 'a ' + type;
4443
- default:
4444
- return type;
4445
- }
4446
- }
4447
-
4448
- // Returns class name of the object, if any.
4449
- function getClassName(propValue) {
4450
- if (!propValue.constructor || !propValue.constructor.name) {
4451
- return ANONYMOUS;
4452
- }
4453
- return propValue.constructor.name;
4454
- }
4455
-
4456
- ReactPropTypes.checkPropTypes = checkPropTypes;
4457
- ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
4458
- ReactPropTypes.PropTypes = ReactPropTypes;
4459
-
4460
- return ReactPropTypes;
4461
- };
4462
- return factoryWithTypeCheckers;
4463
- }
4464
-
4465
- /**
4466
- * Copyright (c) 2013-present, Facebook, Inc.
4467
- *
4468
- * This source code is licensed under the MIT license found in the
4469
- * LICENSE file in the root directory of this source tree.
4470
- */
4471
-
4472
- var factoryWithThrowingShims;
4473
- var hasRequiredFactoryWithThrowingShims;
4474
-
4475
- function requireFactoryWithThrowingShims () {
4476
- if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
4477
- hasRequiredFactoryWithThrowingShims = 1;
4478
-
4479
- var ReactPropTypesSecret = requireReactPropTypesSecret();
4480
-
4481
- function emptyFunction() {}
4482
- function emptyFunctionWithReset() {}
4483
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
4484
-
4485
- factoryWithThrowingShims = function() {
4486
- function shim(props, propName, componentName, location, propFullName, secret) {
4487
- if (secret === ReactPropTypesSecret) {
4488
- // It is still safe when called from React.
4489
- return;
4490
- }
4491
- var err = new Error(
4492
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
4493
- 'Use PropTypes.checkPropTypes() to call them. ' +
4494
- 'Read more at http://fb.me/use-check-prop-types'
4495
- );
4496
- err.name = 'Invariant Violation';
4497
- throw err;
4498
- } shim.isRequired = shim;
4499
- function getShim() {
4500
- return shim;
4501
- } // Important!
4502
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
4503
- var ReactPropTypes = {
4504
- array: shim,
4505
- bigint: shim,
4506
- bool: shim,
4507
- func: shim,
4508
- number: shim,
4509
- object: shim,
4510
- string: shim,
4511
- symbol: shim,
4512
-
4513
- any: shim,
4514
- arrayOf: getShim,
4515
- element: shim,
4516
- elementType: shim,
4517
- instanceOf: getShim,
4518
- node: shim,
4519
- objectOf: getShim,
4520
- oneOf: getShim,
4521
- oneOfType: getShim,
4522
- shape: getShim,
4523
- exact: getShim,
4524
-
4525
- checkPropTypes: emptyFunctionWithReset,
4526
- resetWarningCache: emptyFunction
4527
- };
4528
-
4529
- ReactPropTypes.PropTypes = ReactPropTypes;
4530
-
4531
- return ReactPropTypes;
4532
- };
4533
- return factoryWithThrowingShims;
4534
- }
4535
-
4536
- /**
4537
- * Copyright (c) 2013-present, Facebook, Inc.
4538
- *
4539
- * This source code is licensed under the MIT license found in the
4540
- * LICENSE file in the root directory of this source tree.
4541
- */
4542
-
4543
- if (process.env.NODE_ENV !== 'production') {
4544
- var ReactIs = requireReactIs();
4545
-
4546
- // By explicitly using `prop-types` you are opting into new development behavior.
4547
- // http://fb.me/prop-types-in-prod
4548
- var throwOnDirectAccess = true;
4549
- propTypes.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
4550
- } else {
4551
- // By explicitly using `prop-types` you are opting into new production behavior.
4552
- // http://fb.me/prop-types-in-prod
4553
- propTypes.exports = requireFactoryWithThrowingShims()();
4554
- }
4555
-
4556
- var propTypesExports = propTypes.exports;
4557
- var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
4558
-
4559
- function ownKeys(object, enumerableOnly) {
4560
- var keys = Object.keys(object);
4561
-
4562
- if (Object.getOwnPropertySymbols) {
4563
- var symbols = Object.getOwnPropertySymbols(object);
4564
- enumerableOnly && (symbols = symbols.filter(function (sym) {
4565
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
4566
- })), keys.push.apply(keys, symbols);
4567
- }
4568
-
4569
- return keys;
4570
- }
4571
-
4572
- function _objectSpread2(target) {
4573
- for (var i = 1; i < arguments.length; i++) {
4574
- var source = null != arguments[i] ? arguments[i] : {};
4575
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
4576
- _defineProperty(target, key, source[key]);
4577
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
4578
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
4579
- });
4580
- }
4581
-
4582
- return target;
4583
- }
4584
-
4585
- function _typeof$1(obj) {
4586
- "@babel/helpers - typeof";
4587
-
4588
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
4589
- return typeof obj;
4590
- } : function (obj) {
4591
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
4592
- }, _typeof$1(obj);
4593
- }
4594
-
4595
- function _defineProperty(obj, key, value) {
4596
- if (key in obj) {
4597
- Object.defineProperty(obj, key, {
4598
- value: value,
4599
- enumerable: true,
4600
- configurable: true,
4601
- writable: true
4602
- });
4603
- } else {
4604
- obj[key] = value;
4605
- }
4606
-
4607
- return obj;
4608
- }
4609
-
4610
- function _objectWithoutPropertiesLoose(source, excluded) {
4611
- if (source == null) return {};
4612
- var target = {};
4613
- var sourceKeys = Object.keys(source);
4614
- var key, i;
4615
-
4616
- for (i = 0; i < sourceKeys.length; i++) {
4617
- key = sourceKeys[i];
4618
- if (excluded.indexOf(key) >= 0) continue;
4619
- target[key] = source[key];
4620
- }
4621
-
4622
- return target;
4623
- }
4624
-
4625
- function _objectWithoutProperties(source, excluded) {
4626
- if (source == null) return {};
4627
-
4628
- var target = _objectWithoutPropertiesLoose(source, excluded);
4629
-
4630
- var key, i;
4631
-
4632
- if (Object.getOwnPropertySymbols) {
4633
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
383
+ var DefaultContext = {
384
+ color: undefined,
385
+ size: undefined,
386
+ className: undefined,
387
+ style: undefined,
388
+ attr: undefined
389
+ };
390
+ var IconContext = React__default__default.createContext && React__default__default.createContext(DefaultContext);
4634
391
 
4635
- for (i = 0; i < sourceSymbolKeys.length; i++) {
4636
- key = sourceSymbolKeys[i];
4637
- if (excluded.indexOf(key) >= 0) continue;
4638
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
4639
- target[key] = source[key];
392
+ var __assign$1 = undefined && undefined.__assign || function () {
393
+ __assign$1 = Object.assign || function (t) {
394
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
395
+ s = arguments[i];
396
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
4640
397
  }
398
+ return t;
399
+ };
400
+ return __assign$1.apply(this, arguments);
401
+ };
402
+ var __rest$1 = undefined && undefined.__rest || function (s, e) {
403
+ var t = {};
404
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
405
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
406
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
4641
407
  }
4642
-
4643
- return target;
4644
- }
4645
-
4646
- function _toConsumableArray(arr) {
4647
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
4648
- }
4649
-
4650
- function _arrayWithoutHoles(arr) {
4651
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
4652
- }
4653
-
4654
- function _iterableToArray(iter) {
4655
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
4656
- }
4657
-
4658
- function _unsupportedIterableToArray(o, minLen) {
4659
- if (!o) return;
4660
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
4661
- var n = Object.prototype.toString.call(o).slice(8, -1);
4662
- if (n === "Object" && o.constructor) n = o.constructor.name;
4663
- if (n === "Map" || n === "Set") return Array.from(o);
4664
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
4665
- }
4666
-
4667
- function _arrayLikeToArray(arr, len) {
4668
- if (len == null || len > arr.length) len = arr.length;
4669
-
4670
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
4671
-
4672
- return arr2;
4673
- }
4674
-
4675
- function _nonIterableSpread() {
4676
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4677
- }
4678
-
4679
- // Get CSS class list from a props object
4680
- function classList(props) {
4681
- var _classes;
4682
-
4683
- var beat = props.beat,
4684
- fade = props.fade,
4685
- beatFade = props.beatFade,
4686
- bounce = props.bounce,
4687
- shake = props.shake,
4688
- flash = props.flash,
4689
- spin = props.spin,
4690
- spinPulse = props.spinPulse,
4691
- spinReverse = props.spinReverse,
4692
- pulse = props.pulse,
4693
- fixedWidth = props.fixedWidth,
4694
- inverse = props.inverse,
4695
- border = props.border,
4696
- listItem = props.listItem,
4697
- flip = props.flip,
4698
- size = props.size,
4699
- rotation = props.rotation,
4700
- pull = props.pull; // map of CSS class names to properties
4701
-
4702
- var classes = (_classes = {
4703
- 'fa-beat': beat,
4704
- 'fa-fade': fade,
4705
- 'fa-beat-fade': beatFade,
4706
- 'fa-bounce': bounce,
4707
- 'fa-shake': shake,
4708
- 'fa-flash': flash,
4709
- 'fa-spin': spin,
4710
- 'fa-spin-reverse': spinReverse,
4711
- 'fa-spin-pulse': spinPulse,
4712
- 'fa-pulse': pulse,
4713
- 'fa-fw': fixedWidth,
4714
- 'fa-inverse': inverse,
4715
- 'fa-border': border,
4716
- 'fa-li': listItem,
4717
- 'fa-flip': flip === true,
4718
- 'fa-flip-horizontal': flip === 'horizontal' || flip === 'both',
4719
- 'fa-flip-vertical': flip === 'vertical' || flip === 'both'
4720
- }, _defineProperty(_classes, "fa-".concat(size), typeof size !== 'undefined' && size !== null), _defineProperty(_classes, "fa-rotate-".concat(rotation), typeof rotation !== 'undefined' && rotation !== null && rotation !== 0), _defineProperty(_classes, "fa-pull-".concat(pull), typeof pull !== 'undefined' && pull !== null), _defineProperty(_classes, 'fa-swap-opacity', props.swapOpacity), _classes); // map over all the keys in the classes object
4721
- // return an array of the keys where the value for the key is not null
4722
-
4723
- return Object.keys(classes).map(function (key) {
4724
- return classes[key] ? key : null;
4725
- }).filter(function (key) {
4726
- return key;
4727
- });
4728
- }
4729
-
4730
- // Camelize taken from humps
4731
- // humps is copyright © 2012+ Dom Christie
4732
- // Released under the MIT license.
4733
- // Performant way to determine if object coerces to a number
4734
- function _isNumerical(obj) {
4735
- obj = obj - 0; // eslint-disable-next-line no-self-compare
4736
-
4737
- return obj === obj;
4738
- }
4739
-
4740
- function camelize(string) {
4741
- if (_isNumerical(string)) {
4742
- return string;
4743
- } // eslint-disable-next-line no-useless-escape
4744
-
4745
-
4746
- string = string.replace(/[\-_\s]+(.)?/g, function (match, chr) {
4747
- return chr ? chr.toUpperCase() : '';
4748
- }); // Ensure 1st char is always lowercase
4749
-
4750
- return string.substr(0, 1).toLowerCase() + string.substr(1);
4751
- }
4752
-
4753
- var _excluded = ["style"];
4754
-
4755
- function capitalize$1(val) {
4756
- return val.charAt(0).toUpperCase() + val.slice(1);
4757
- }
4758
-
4759
- function styleToObject(style) {
4760
- return style.split(';').map(function (s) {
4761
- return s.trim();
4762
- }).filter(function (s) {
4763
- return s;
4764
- }).reduce(function (acc, pair) {
4765
- var i = pair.indexOf(':');
4766
- var prop = camelize(pair.slice(0, i));
4767
- var value = pair.slice(i + 1).trim();
4768
- prop.startsWith('webkit') ? acc[capitalize$1(prop)] = value : acc[prop] = value;
4769
- return acc;
4770
- }, {});
4771
- }
4772
-
4773
- function convert(createElement, element) {
4774
- var extraProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
4775
-
4776
- if (typeof element === 'string') {
4777
- return element;
4778
- }
4779
-
4780
- var children = (element.children || []).map(function (child) {
4781
- return convert(createElement, child);
4782
- });
4783
- /* eslint-disable dot-notation */
4784
-
4785
- var mixins = Object.keys(element.attributes || {}).reduce(function (acc, key) {
4786
- var val = element.attributes[key];
4787
-
4788
- switch (key) {
4789
- case 'class':
4790
- acc.attrs['className'] = val;
4791
- delete element.attributes['class'];
4792
- break;
4793
-
4794
- case 'style':
4795
- acc.attrs['style'] = styleToObject(val);
4796
- break;
4797
-
4798
- default:
4799
- if (key.indexOf('aria-') === 0 || key.indexOf('data-') === 0) {
4800
- acc.attrs[key.toLowerCase()] = val;
4801
- } else {
4802
- acc.attrs[camelize(key)] = val;
4803
- }
4804
-
4805
- }
4806
-
4807
- return acc;
4808
- }, {
4809
- attrs: {}
408
+ return t;
409
+ };
410
+ function Tree2Element(tree) {
411
+ return tree && tree.map(function (node, i) {
412
+ return React__default__default.createElement(node.tag, __assign$1({
413
+ key: i
414
+ }, node.attr), Tree2Element(node.child));
4810
415
  });
4811
-
4812
- var _extraProps$style = extraProps.style,
4813
- existingStyle = _extraProps$style === void 0 ? {} : _extraProps$style,
4814
- remaining = _objectWithoutProperties(extraProps, _excluded);
4815
-
4816
- mixins.attrs['style'] = _objectSpread2(_objectSpread2({}, mixins.attrs['style']), existingStyle);
4817
- /* eslint-enable */
4818
-
4819
- return createElement.apply(void 0, [element.tag, _objectSpread2(_objectSpread2({}, mixins.attrs), remaining)].concat(_toConsumableArray(children)));
4820
416
  }
4821
-
4822
- var PRODUCTION = false;
4823
-
4824
- try {
4825
- PRODUCTION = process.env.NODE_ENV === 'production';
4826
- } catch (e) {}
4827
-
4828
- function log () {
4829
- if (!PRODUCTION && console && typeof console.error === 'function') {
4830
- var _console;
4831
-
4832
- (_console = console).error.apply(_console, arguments);
4833
- }
417
+ function GenIcon(data) {
418
+ // eslint-disable-next-line react/display-name
419
+ return function (props) {
420
+ return React__default__default.createElement(IconBase, __assign$1({
421
+ attr: __assign$1({}, data.attr)
422
+ }, props), Tree2Element(data.child));
423
+ };
4834
424
  }
4835
-
4836
- function normalizeIconArgs(icon) {
4837
- // this has everything that it needs to be rendered which means it was probably imported
4838
- // directly from an icon svg package
4839
- if (icon && _typeof$1(icon) === 'object' && icon.prefix && icon.iconName && icon.icon) {
4840
- return icon;
4841
- }
4842
-
4843
- if (parse$1.icon) {
4844
- return parse$1.icon(icon);
4845
- } // if the icon is null, there's nothing to do
4846
-
4847
-
4848
- if (icon === null) {
4849
- return null;
4850
- } // if the icon is an object and has a prefix and an icon name, return it
4851
-
4852
-
4853
- if (icon && _typeof$1(icon) === 'object' && icon.prefix && icon.iconName) {
4854
- return icon;
4855
- } // if it's an array with length of two
4856
-
4857
-
4858
- if (Array.isArray(icon) && icon.length === 2) {
4859
- // use the first item as prefix, second as icon name
4860
- return {
4861
- prefix: icon[0],
4862
- iconName: icon[1]
4863
- };
4864
- } // if it's a string, use it as the icon name
4865
-
4866
-
4867
- if (typeof icon === 'string') {
4868
- return {
4869
- prefix: 'fas',
4870
- iconName: icon
4871
- };
4872
- }
425
+ function IconBase(props) {
426
+ var elem = function (conf) {
427
+ var attr = props.attr,
428
+ size = props.size,
429
+ title = props.title,
430
+ svgProps = __rest$1(props, ["attr", "size", "title"]);
431
+ var computedSize = size || conf.size || "1em";
432
+ var className;
433
+ if (conf.className) className = conf.className;
434
+ if (props.className) className = (className ? className + " " : "") + props.className;
435
+ return React__default__default.createElement("svg", __assign$1({
436
+ stroke: "currentColor",
437
+ fill: "currentColor",
438
+ strokeWidth: "0"
439
+ }, conf.attr, attr, svgProps, {
440
+ className: className,
441
+ style: __assign$1(__assign$1({
442
+ color: props.color || conf.color
443
+ }, conf.style), props.style),
444
+ height: computedSize,
445
+ width: computedSize,
446
+ xmlns: "http://www.w3.org/2000/svg"
447
+ }), title && React__default__default.createElement("title", null, title), props.children);
448
+ };
449
+ return IconContext !== undefined ? React__default__default.createElement(IconContext.Consumer, null, function (conf) {
450
+ return elem(conf);
451
+ }) : elem(DefaultContext);
4873
452
  }
4874
453
 
4875
- // creates an object with a key of key
4876
- // and a value of value
4877
- // if certain conditions are met
4878
- function objectWithKey(key, value) {
4879
- // if the value is a non-empty array
4880
- // or it's not an array but it is truthy
4881
- // then create the object with the key and the value
4882
- // if not, return an empty array
4883
- return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? _defineProperty({}, key, value) : {};
454
+ // THIS FILE IS AUTO GENERATED
455
+ function FaFolder (props) {
456
+ return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z"}}]})(props);
4884
457
  }
4885
458
 
4886
- var FontAwesomeIcon = /*#__PURE__*/React__default__default.forwardRef(function (props, ref) {
4887
- var iconArgs = props.icon,
4888
- maskArgs = props.mask,
4889
- symbol = props.symbol,
4890
- className = props.className,
4891
- title = props.title,
4892
- titleId = props.titleId,
4893
- maskId = props.maskId;
4894
- var iconLookup = normalizeIconArgs(iconArgs);
4895
- var classes = objectWithKey('classes', [].concat(_toConsumableArray(classList(props)), _toConsumableArray(className.split(' '))));
4896
- var transform = objectWithKey('transform', typeof props.transform === 'string' ? parse$1.transform(props.transform) : props.transform);
4897
- var mask = objectWithKey('mask', normalizeIconArgs(maskArgs));
4898
- var renderedIcon = icon(iconLookup, _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, classes), transform), mask), {}, {
4899
- symbol: symbol,
4900
- title: title,
4901
- titleId: titleId,
4902
- maskId: maskId
4903
- }));
4904
-
4905
- if (!renderedIcon) {
4906
- log('Could not find icon', iconLookup);
4907
- return null;
4908
- }
4909
-
4910
- var abstract = renderedIcon.abstract;
4911
- var extraProps = {
4912
- ref: ref
4913
- };
4914
- Object.keys(props).forEach(function (key) {
4915
- // eslint-disable-next-line no-prototype-builtins
4916
- if (!FontAwesomeIcon.defaultProps.hasOwnProperty(key)) {
4917
- extraProps[key] = props[key];
4918
- }
4919
- });
4920
- return convertCurry(abstract[0], extraProps);
4921
- });
4922
- FontAwesomeIcon.displayName = 'FontAwesomeIcon';
4923
- FontAwesomeIcon.propTypes = {
4924
- beat: PropTypes.bool,
4925
- border: PropTypes.bool,
4926
- beatFade: PropTypes.bool,
4927
- bounce: PropTypes.bool,
4928
- className: PropTypes.string,
4929
- fade: PropTypes.bool,
4930
- flash: PropTypes.bool,
4931
- mask: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.string]),
4932
- maskId: PropTypes.string,
4933
- fixedWidth: PropTypes.bool,
4934
- inverse: PropTypes.bool,
4935
- flip: PropTypes.oneOf([true, false, 'horizontal', 'vertical', 'both']),
4936
- icon: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.string]),
4937
- listItem: PropTypes.bool,
4938
- pull: PropTypes.oneOf(['right', 'left']),
4939
- pulse: PropTypes.bool,
4940
- rotation: PropTypes.oneOf([0, 90, 180, 270]),
4941
- shake: PropTypes.bool,
4942
- size: PropTypes.oneOf(['2xs', 'xs', 'sm', 'lg', 'xl', '2xl', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']),
4943
- spin: PropTypes.bool,
4944
- spinPulse: PropTypes.bool,
4945
- spinReverse: PropTypes.bool,
4946
- symbol: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
4947
- title: PropTypes.string,
4948
- titleId: PropTypes.string,
4949
- transform: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
4950
- swapOpacity: PropTypes.bool
4951
- };
4952
- FontAwesomeIcon.defaultProps = {
4953
- border: false,
4954
- className: '',
4955
- mask: null,
4956
- maskId: null,
4957
- fixedWidth: false,
4958
- inverse: false,
4959
- flip: false,
4960
- icon: null,
4961
- listItem: false,
4962
- pull: null,
4963
- pulse: false,
4964
- rotation: null,
4965
- size: null,
4966
- spin: false,
4967
- spinPulse: false,
4968
- spinReverse: false,
4969
- beat: false,
4970
- fade: false,
4971
- beatFade: false,
4972
- bounce: false,
4973
- shake: false,
4974
- symbol: false,
4975
- title: '',
4976
- titleId: null,
4977
- transform: null,
4978
- swapOpacity: false
4979
- };
4980
- var convertCurry = convert.bind(null, React__default__default.createElement);
4981
-
4982
459
  var css_248z$6 = ".will-filter-bar-submit-button {\n width: auto;\n height: auto;\n background-color: var(--will-primary);\n color: var(--will-white);\n padding: 10px 20px;\n border-radius: 20px;\n cursor: pointer;\n border: none;\n white-space: nowrap;\n text-transform: uppercase;\n font-size: 12px;\n display: flex;\n align-items: center;\n}\n\n.will-filter-bar-submit-button span {\n margin-right: 10px;\n}";
4983
460
  styleInject(css_248z$6);
4984
461
 
@@ -4987,7 +464,8 @@ function SubmitButton(_a) {
4987
464
  var t = useTranslation('filterBar').t;
4988
465
  return (React__default__default.createElement("button", { className: "will-filter-bar-submit-button", onClick: onClick },
4989
466
  React__default__default.createElement("span", null,
4990
- React__default__default.createElement(FontAwesomeIcon, { icon: faSearch })),
467
+ " ",
468
+ React__default__default.createElement(FaFolder, null)),
4991
469
  t('submit.label')));
4992
470
  }
4993
471
 
@@ -13054,7 +8532,5 @@ var fontWigthBold = function (input) {
13054
8532
  return { fontWeight: input ? 'bold' : 'initial' };
13055
8533
  };
13056
8534
 
13057
- library$1.add(faSearch);
13058
-
13059
8535
  export { Button$1 as Button, FilterBar };
13060
8536
  //# sourceMappingURL=index.esm.js.map