@indico-data/design-system 2.40.0 → 2.41.0

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.js CHANGED
@@ -1,3131 +1,46 @@
1
1
  'use strict';
2
2
 
3
+ var fontawesomeSvgCore = require('@fortawesome/fontawesome-svg-core');
4
+ var freeSolidSvgIcons = require('@fortawesome/free-solid-svg-icons');
3
5
  var React = require('react');
4
6
  var ReactDOM = require('react-dom');
5
7
  var jsxRuntime = require('react/jsx-runtime');
6
8
  var styled = require('styled-components');
9
+ var reactFontawesome = require('@fortawesome/react-fontawesome');
7
10
  var ReactSelect = require('react-select');
8
11
  var reactRouterDom = require('react-router-dom');
9
12
 
10
13
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
11
14
 
12
15
  function _interopNamespaceCompat(e) {
13
- if (e && typeof e === 'object' && 'default' in e) return e;
14
- var n = Object.create(null);
15
- if (e) {
16
- Object.keys(e).forEach(function (k) {
17
- if (k !== 'default') {
18
- var d = Object.getOwnPropertyDescriptor(e, k);
19
- Object.defineProperty(n, k, d.get ? d : {
20
- enumerable: true,
21
- get: function () { return e[k]; }
22
- });
23
- }
24
- });
25
- }
26
- n.default = e;
27
- return Object.freeze(n);
28
- }
29
-
30
- var React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
31
- var ReactDOM__namespace = /*#__PURE__*/_interopNamespaceCompat(ReactDOM);
32
- var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
33
- var ReactSelect__default = /*#__PURE__*/_interopDefaultCompat(ReactSelect);
34
-
35
- function ownKeys$1(object, enumerableOnly) {
36
- var keys = Object.keys(object);
37
-
38
- if (Object.getOwnPropertySymbols) {
39
- var symbols = Object.getOwnPropertySymbols(object);
40
- enumerableOnly && (symbols = symbols.filter(function (sym) {
41
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
42
- })), keys.push.apply(keys, symbols);
43
- }
44
-
45
- return keys;
46
- }
47
-
48
- function _objectSpread2$1(target) {
49
- for (var i = 1; i < arguments.length; i++) {
50
- var source = null != arguments[i] ? arguments[i] : {};
51
- i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
52
- _defineProperty$1(target, key, source[key]);
53
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) {
54
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
55
- });
56
- }
57
-
58
- return target;
59
- }
60
-
61
- function _typeof$1(obj) {
62
- "@babel/helpers - typeof";
63
-
64
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
65
- return typeof obj;
66
- } : function (obj) {
67
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
68
- }, _typeof$1(obj);
69
- }
70
-
71
- function _classCallCheck$2(instance, Constructor) {
72
- if (!(instance instanceof Constructor)) {
73
- throw new TypeError("Cannot call a class as a function");
74
- }
75
- }
76
-
77
- function _defineProperties(target, props) {
78
- for (var i = 0; i < props.length; i++) {
79
- var descriptor = props[i];
80
- descriptor.enumerable = descriptor.enumerable || false;
81
- descriptor.configurable = true;
82
- if ("value" in descriptor) descriptor.writable = true;
83
- Object.defineProperty(target, descriptor.key, descriptor);
84
- }
85
- }
86
-
87
- function _createClass$1(Constructor, protoProps, staticProps) {
88
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
89
- Object.defineProperty(Constructor, "prototype", {
90
- writable: false
91
- });
92
- return Constructor;
93
- }
94
-
95
- function _defineProperty$1(obj, key, value) {
96
- if (key in obj) {
97
- Object.defineProperty(obj, key, {
98
- value: value,
99
- enumerable: true,
100
- configurable: true,
101
- writable: true
102
- });
103
- } else {
104
- obj[key] = value;
105
- }
106
-
107
- return obj;
108
- }
109
-
110
- function _slicedToArray(arr, i) {
111
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest();
112
- }
113
-
114
- function _toConsumableArray$1(arr) {
115
- return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1();
116
- }
117
-
118
- function _arrayWithoutHoles$1(arr) {
119
- if (Array.isArray(arr)) return _arrayLikeToArray$1(arr);
120
- }
121
-
122
- function _arrayWithHoles(arr) {
123
- if (Array.isArray(arr)) return arr;
124
- }
125
-
126
- function _iterableToArray$1(iter) {
127
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
128
- }
129
-
130
- function _iterableToArrayLimit(arr, i) {
131
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
132
-
133
- if (_i == null) return;
134
- var _arr = [];
135
- var _n = true;
136
- var _d = false;
137
-
138
- var _s, _e;
139
-
140
- try {
141
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
142
- _arr.push(_s.value);
143
-
144
- if (i && _arr.length === i) break;
145
- }
146
- } catch (err) {
147
- _d = true;
148
- _e = err;
149
- } finally {
150
- try {
151
- if (!_n && _i["return"] != null) _i["return"]();
152
- } finally {
153
- if (_d) throw _e;
154
- }
155
- }
156
-
157
- return _arr;
158
- }
159
-
160
- function _unsupportedIterableToArray$1(o, minLen) {
161
- if (!o) return;
162
- if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
163
- var n = Object.prototype.toString.call(o).slice(8, -1);
164
- if (n === "Object" && o.constructor) n = o.constructor.name;
165
- if (n === "Map" || n === "Set") return Array.from(o);
166
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
167
- }
168
-
169
- function _arrayLikeToArray$1(arr, len) {
170
- if (len == null || len > arr.length) len = arr.length;
171
-
172
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
173
-
174
- return arr2;
175
- }
176
-
177
- function _nonIterableSpread$1() {
178
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
179
- }
180
-
181
- function _nonIterableRest() {
182
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
183
- }
184
-
185
- var noop = function noop() {};
186
-
187
- var _WINDOW = {};
188
- var _DOCUMENT = {};
189
- var _MUTATION_OBSERVER = null;
190
- var _PERFORMANCE = {
191
- mark: noop,
192
- measure: noop
193
- };
194
-
195
- try {
196
- if (typeof window !== 'undefined') _WINDOW = window;
197
- if (typeof document !== 'undefined') _DOCUMENT = document;
198
- if (typeof MutationObserver !== 'undefined') _MUTATION_OBSERVER = MutationObserver;
199
- if (typeof performance !== 'undefined') _PERFORMANCE = performance;
200
- } catch (e) {}
201
-
202
- var _ref = _WINDOW.navigator || {},
203
- _ref$userAgent = _ref.userAgent,
204
- userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
205
- var WINDOW = _WINDOW;
206
- var DOCUMENT = _DOCUMENT;
207
- var MUTATION_OBSERVER = _MUTATION_OBSERVER;
208
- var PERFORMANCE = _PERFORMANCE;
209
- !!WINDOW.document;
210
- var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
211
- var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
212
-
213
- var _familyProxy, _familyProxy2, _familyProxy3, _familyProxy4, _familyProxy5;
214
-
215
- var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
216
- var UNITS_IN_GRID = 16;
217
- var DEFAULT_CSS_PREFIX = 'fa';
218
- var DEFAULT_REPLACEMENT_CLASS = 'svg-inline--fa';
219
- var DATA_FA_I2SVG = 'data-fa-i2svg';
220
- var DATA_FA_PSEUDO_ELEMENT = 'data-fa-pseudo-element';
221
- var DATA_FA_PSEUDO_ELEMENT_PENDING = 'data-fa-pseudo-element-pending';
222
- var DATA_PREFIX = 'data-prefix';
223
- var DATA_ICON = 'data-icon';
224
- var HTML_CLASS_I2SVG_BASE_CLASS = 'fontawesome-i2svg';
225
- var MUTATION_APPROACH_ASYNC = 'async';
226
- var TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ['HTML', 'HEAD', 'STYLE', 'SCRIPT'];
227
- var PRODUCTION$1 = function () {
228
- try {
229
- return process.env.NODE_ENV === 'production';
230
- } catch (e) {
231
- return false;
232
- }
233
- }();
234
- var FAMILY_CLASSIC = 'classic';
235
- var FAMILY_SHARP = 'sharp';
236
- var FAMILIES = [FAMILY_CLASSIC, FAMILY_SHARP];
237
-
238
- function familyProxy(obj) {
239
- // Defaults to the classic family if family is not available
240
- return new Proxy(obj, {
241
- get: function get(target, prop) {
242
- return prop in target ? target[prop] : target[FAMILY_CLASSIC];
243
- }
244
- });
245
- }
246
- var PREFIX_TO_STYLE = familyProxy((_familyProxy = {}, _defineProperty$1(_familyProxy, FAMILY_CLASSIC, {
247
- 'fa': 'solid',
248
- 'fas': 'solid',
249
- 'fa-solid': 'solid',
250
- 'far': 'regular',
251
- 'fa-regular': 'regular',
252
- 'fal': 'light',
253
- 'fa-light': 'light',
254
- 'fat': 'thin',
255
- 'fa-thin': 'thin',
256
- 'fad': 'duotone',
257
- 'fa-duotone': 'duotone',
258
- 'fab': 'brands',
259
- 'fa-brands': 'brands',
260
- 'fak': 'kit',
261
- 'fakd': 'kit',
262
- 'fa-kit': 'kit',
263
- 'fa-kit-duotone': 'kit'
264
- }), _defineProperty$1(_familyProxy, FAMILY_SHARP, {
265
- 'fa': 'solid',
266
- 'fass': 'solid',
267
- 'fa-solid': 'solid',
268
- 'fasr': 'regular',
269
- 'fa-regular': 'regular',
270
- 'fasl': 'light',
271
- 'fa-light': 'light',
272
- 'fast': 'thin',
273
- 'fa-thin': 'thin'
274
- }), _familyProxy));
275
- var STYLE_TO_PREFIX = familyProxy((_familyProxy2 = {}, _defineProperty$1(_familyProxy2, FAMILY_CLASSIC, {
276
- solid: 'fas',
277
- regular: 'far',
278
- light: 'fal',
279
- thin: 'fat',
280
- duotone: 'fad',
281
- brands: 'fab',
282
- kit: 'fak'
283
- }), _defineProperty$1(_familyProxy2, FAMILY_SHARP, {
284
- solid: 'fass',
285
- regular: 'fasr',
286
- light: 'fasl',
287
- thin: 'fast'
288
- }), _familyProxy2));
289
- var PREFIX_TO_LONG_STYLE = familyProxy((_familyProxy3 = {}, _defineProperty$1(_familyProxy3, FAMILY_CLASSIC, {
290
- fab: 'fa-brands',
291
- fad: 'fa-duotone',
292
- fak: 'fa-kit',
293
- fal: 'fa-light',
294
- far: 'fa-regular',
295
- fas: 'fa-solid',
296
- fat: 'fa-thin'
297
- }), _defineProperty$1(_familyProxy3, FAMILY_SHARP, {
298
- fass: 'fa-solid',
299
- fasr: 'fa-regular',
300
- fasl: 'fa-light',
301
- fast: 'fa-thin'
302
- }), _familyProxy3));
303
- var LONG_STYLE_TO_PREFIX = familyProxy((_familyProxy4 = {}, _defineProperty$1(_familyProxy4, FAMILY_CLASSIC, {
304
- 'fa-brands': 'fab',
305
- 'fa-duotone': 'fad',
306
- 'fa-kit': 'fak',
307
- 'fa-light': 'fal',
308
- 'fa-regular': 'far',
309
- 'fa-solid': 'fas',
310
- 'fa-thin': 'fat'
311
- }), _defineProperty$1(_familyProxy4, FAMILY_SHARP, {
312
- 'fa-solid': 'fass',
313
- 'fa-regular': 'fasr',
314
- 'fa-light': 'fasl',
315
- 'fa-thin': 'fast'
316
- }), _familyProxy4));
317
- var ICON_SELECTION_SYNTAX_PATTERN = /fa(s|r|l|t|d|b|k|ss|sr|sl|st)?[\-\ ]/; // eslint-disable-line no-useless-escape
318
-
319
- var LAYERS_TEXT_CLASSNAME = 'fa-layers-text';
320
- var FONT_FAMILY_PATTERN = /Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i;
321
- var FONT_WEIGHT_TO_PREFIX = familyProxy((_familyProxy5 = {}, _defineProperty$1(_familyProxy5, FAMILY_CLASSIC, {
322
- 900: 'fas',
323
- 400: 'far',
324
- normal: 'far',
325
- 300: 'fal',
326
- 100: 'fat'
327
- }), _defineProperty$1(_familyProxy5, FAMILY_SHARP, {
328
- 900: 'fass',
329
- 400: 'fasr',
330
- 300: 'fasl',
331
- 100: 'fast'
332
- }), _familyProxy5));
333
- var oneToTen = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
334
- var oneToTwenty = oneToTen.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]);
335
- var ATTRIBUTES_WATCHED_FOR_MUTATION = ['class', 'data-prefix', 'data-icon', 'data-fa-transform', 'data-fa-mask'];
336
- var DUOTONE_CLASSES = {
337
- GROUP: 'duotone-group',
338
- SWAP_OPACITY: 'swap-opacity',
339
- PRIMARY: 'primary',
340
- SECONDARY: 'secondary'
341
- };
342
- var prefixes = new Set();
343
- Object.keys(STYLE_TO_PREFIX[FAMILY_CLASSIC]).map(prefixes.add.bind(prefixes));
344
- Object.keys(STYLE_TO_PREFIX[FAMILY_SHARP]).map(prefixes.add.bind(prefixes));
345
- 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) {
346
- return "".concat(n, "x");
347
- })).concat(oneToTwenty.map(function (n) {
348
- return "w-".concat(n);
349
- }));
350
-
351
- var initial = WINDOW.FontAwesomeConfig || {};
352
-
353
- function getAttrConfig(attr) {
354
- var element = DOCUMENT.querySelector('script[' + attr + ']');
355
-
356
- if (element) {
357
- return element.getAttribute(attr);
358
- }
359
- }
360
-
361
- function coerce(val) {
362
- // Getting an empty string will occur if the attribute is set on the HTML tag but without a value
363
- // We'll assume that this is an indication that it should be toggled to true
364
- if (val === '') return true;
365
- if (val === 'false') return false;
366
- if (val === 'true') return true;
367
- return val;
368
- }
369
-
370
- if (DOCUMENT && typeof DOCUMENT.querySelector === 'function') {
371
- 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']];
372
- attrs.forEach(function (_ref) {
373
- var _ref2 = _slicedToArray(_ref, 2),
374
- attr = _ref2[0],
375
- key = _ref2[1];
376
-
377
- var val = coerce(getAttrConfig(attr));
378
-
379
- if (val !== undefined && val !== null) {
380
- initial[key] = val;
381
- }
382
- });
383
- }
384
-
385
- var _default$3 = {
386
- styleDefault: 'solid',
387
- familyDefault: 'classic',
388
- cssPrefix: DEFAULT_CSS_PREFIX,
389
- replacementClass: DEFAULT_REPLACEMENT_CLASS,
390
- autoReplaceSvg: true,
391
- autoAddCss: true,
392
- autoA11y: true,
393
- searchPseudoElements: false,
394
- observeMutations: true,
395
- mutateApproach: 'async',
396
- keepOriginalSource: true,
397
- measurePerformance: false,
398
- showMissingIcons: true
399
- }; // familyPrefix is deprecated but we must still support it if present
400
-
401
- if (initial.familyPrefix) {
402
- initial.cssPrefix = initial.familyPrefix;
403
- }
404
-
405
- var _config$5 = _objectSpread2$1(_objectSpread2$1({}, _default$3), initial);
406
-
407
- if (!_config$5.autoReplaceSvg) _config$5.observeMutations = false;
408
- var config$1 = {};
409
- Object.keys(_default$3).forEach(function (key) {
410
- Object.defineProperty(config$1, key, {
411
- enumerable: true,
412
- set: function set(val) {
413
- _config$5[key] = val;
414
-
415
- _onChangeCb.forEach(function (cb) {
416
- return cb(config$1);
417
- });
418
- },
419
- get: function get() {
420
- return _config$5[key];
421
- }
422
- });
423
- }); // familyPrefix is deprecated as of 6.2.0 and should be removed in 7.0.0
424
-
425
- Object.defineProperty(config$1, 'familyPrefix', {
426
- enumerable: true,
427
- set: function set(val) {
428
- _config$5.cssPrefix = val;
429
-
430
- _onChangeCb.forEach(function (cb) {
431
- return cb(config$1);
432
- });
433
- },
434
- get: function get() {
435
- return _config$5.cssPrefix;
436
- }
437
- });
438
- WINDOW.FontAwesomeConfig = config$1;
439
- var _onChangeCb = [];
440
- function onChange(cb) {
441
- _onChangeCb.push(cb);
442
-
443
- return function () {
444
- _onChangeCb.splice(_onChangeCb.indexOf(cb), 1);
445
- };
446
- }
447
-
448
- var d$1 = UNITS_IN_GRID;
449
- var meaninglessTransform = {
450
- size: 16,
451
- x: 0,
452
- y: 0,
453
- rotate: 0,
454
- flipX: false,
455
- flipY: false
456
- };
457
- function insertCss(css) {
458
- if (!css || !IS_DOM) {
459
- return;
460
- }
461
-
462
- var style = DOCUMENT.createElement('style');
463
- style.setAttribute('type', 'text/css');
464
- style.innerHTML = css;
465
- var headChildren = DOCUMENT.head.childNodes;
466
- var beforeChild = null;
467
-
468
- for (var i = headChildren.length - 1; i > -1; i--) {
469
- var child = headChildren[i];
470
- var tagName = (child.tagName || '').toUpperCase();
471
-
472
- if (['STYLE', 'LINK'].indexOf(tagName) > -1) {
473
- beforeChild = child;
474
- }
475
- }
476
-
477
- DOCUMENT.head.insertBefore(style, beforeChild);
478
- return css;
479
- }
480
- var idPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
481
- function nextUniqueId() {
482
- var size = 12;
483
- var id = '';
484
-
485
- while (size-- > 0) {
486
- id += idPool[Math.random() * 62 | 0];
487
- }
488
-
489
- return id;
490
- }
491
- function toArray(obj) {
492
- var array = [];
493
-
494
- for (var i = (obj || []).length >>> 0; i--;) {
495
- array[i] = obj[i];
496
- }
497
-
498
- return array;
499
- }
500
- function classArray(node) {
501
- if (node.classList) {
502
- return toArray(node.classList);
503
- } else {
504
- return (node.getAttribute('class') || '').split(' ').filter(function (i) {
505
- return i;
506
- });
507
- }
508
- }
509
- function htmlEscape(str) {
510
- return "".concat(str).replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, '&#39;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
511
- }
512
- function joinAttributes(attributes) {
513
- return Object.keys(attributes || {}).reduce(function (acc, attributeName) {
514
- return acc + "".concat(attributeName, "=\"").concat(htmlEscape(attributes[attributeName]), "\" ");
515
- }, '').trim();
516
- }
517
- function joinStyles(styles) {
518
- return Object.keys(styles || {}).reduce(function (acc, styleName) {
519
- return acc + "".concat(styleName, ": ").concat(styles[styleName].trim(), ";");
520
- }, '');
521
- }
522
- function transformIsMeaningful(transform) {
523
- return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;
524
- }
525
- function transformForSvg(_ref) {
526
- var transform = _ref.transform,
527
- containerWidth = _ref.containerWidth,
528
- iconWidth = _ref.iconWidth;
529
- var outer = {
530
- transform: "translate(".concat(containerWidth / 2, " 256)")
531
- };
532
- var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
533
- var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
534
- var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
535
- var inner = {
536
- transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
537
- };
538
- var path = {
539
- transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
540
- };
541
- return {
542
- outer: outer,
543
- inner: inner,
544
- path: path
545
- };
546
- }
547
- function transformForCss(_ref2) {
548
- var transform = _ref2.transform,
549
- _ref2$width = _ref2.width,
550
- width = _ref2$width === void 0 ? UNITS_IN_GRID : _ref2$width,
551
- _ref2$height = _ref2.height,
552
- height = _ref2$height === void 0 ? UNITS_IN_GRID : _ref2$height,
553
- _ref2$startCentered = _ref2.startCentered,
554
- startCentered = _ref2$startCentered === void 0 ? false : _ref2$startCentered;
555
- var val = '';
556
-
557
- if (startCentered && IS_IE) {
558
- val += "translate(".concat(transform.x / d$1 - width / 2, "em, ").concat(transform.y / d$1 - height / 2, "em) ");
559
- } else if (startCentered) {
560
- val += "translate(calc(-50% + ".concat(transform.x / d$1, "em), calc(-50% + ").concat(transform.y / d$1, "em)) ");
561
- } else {
562
- val += "translate(".concat(transform.x / d$1, "em, ").concat(transform.y / d$1, "em) ");
563
- }
564
-
565
- val += "scale(".concat(transform.size / d$1 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / d$1 * (transform.flipY ? -1 : 1), ") ");
566
- val += "rotate(".concat(transform.rotate, "deg) ");
567
- return val;
568
- }
569
-
570
- 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-sharp-thin: normal 100 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, 0));\n transform: rotate(var(--fa-rotate-angle, 0));\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}";
571
-
572
- function css() {
573
- var dcp = DEFAULT_CSS_PREFIX;
574
- var drc = DEFAULT_REPLACEMENT_CLASS;
575
- var fp = config$1.cssPrefix;
576
- var rc = config$1.replacementClass;
577
- var s = baseStyles;
578
-
579
- if (fp !== dcp || rc !== drc) {
580
- var dPatt = new RegExp("\\.".concat(dcp, "\\-"), 'g');
581
- var customPropPatt = new RegExp("\\--".concat(dcp, "\\-"), 'g');
582
- var rPatt = new RegExp("\\.".concat(drc), 'g');
583
- s = s.replace(dPatt, ".".concat(fp, "-")).replace(customPropPatt, "--".concat(fp, "-")).replace(rPatt, ".".concat(rc));
584
- }
585
-
586
- return s;
587
- }
588
-
589
- var _cssInserted = false;
590
-
591
- function ensureCss() {
592
- if (config$1.autoAddCss && !_cssInserted) {
593
- insertCss(css());
594
- _cssInserted = true;
595
- }
596
- }
597
-
598
- var InjectCSS = {
599
- mixout: function mixout() {
600
- return {
601
- dom: {
602
- css: css,
603
- insertCss: ensureCss
604
- }
605
- };
606
- },
607
- hooks: function hooks() {
608
- return {
609
- beforeDOMElementCreation: function beforeDOMElementCreation() {
610
- ensureCss();
611
- },
612
- beforeI2svg: function beforeI2svg() {
613
- ensureCss();
614
- }
615
- };
616
- }
617
- };
618
-
619
- var w$2 = WINDOW || {};
620
- if (!w$2[NAMESPACE_IDENTIFIER]) w$2[NAMESPACE_IDENTIFIER] = {};
621
- if (!w$2[NAMESPACE_IDENTIFIER].styles) w$2[NAMESPACE_IDENTIFIER].styles = {};
622
- if (!w$2[NAMESPACE_IDENTIFIER].hooks) w$2[NAMESPACE_IDENTIFIER].hooks = {};
623
- if (!w$2[NAMESPACE_IDENTIFIER].shims) w$2[NAMESPACE_IDENTIFIER].shims = [];
624
- var namespace = w$2[NAMESPACE_IDENTIFIER];
625
-
626
- var functions = [];
627
-
628
- var listener = function listener() {
629
- DOCUMENT.removeEventListener('DOMContentLoaded', listener);
630
- loaded = 1;
631
- functions.map(function (fn) {
632
- return fn();
633
- });
634
- };
635
-
636
- var loaded = false;
637
-
638
- if (IS_DOM) {
639
- loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);
640
- if (!loaded) DOCUMENT.addEventListener('DOMContentLoaded', listener);
641
- }
642
-
643
- function domready (fn) {
644
- if (!IS_DOM) return;
645
- loaded ? setTimeout(fn, 0) : functions.push(fn);
646
- }
647
-
648
- function toHtml(abstractNodes) {
649
- var tag = abstractNodes.tag,
650
- _abstractNodes$attrib = abstractNodes.attributes,
651
- attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib,
652
- _abstractNodes$childr = abstractNodes.children,
653
- children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;
654
-
655
- if (typeof abstractNodes === 'string') {
656
- return htmlEscape(abstractNodes);
657
- } else {
658
- return "<".concat(tag, " ").concat(joinAttributes(attributes), ">").concat(children.map(toHtml).join(''), "</").concat(tag, ">");
659
- }
660
- }
661
-
662
- function iconFromMapping(mapping, prefix, iconName) {
663
- if (mapping && mapping[prefix] && mapping[prefix][iconName]) {
664
- return {
665
- prefix: prefix,
666
- iconName: iconName,
667
- icon: mapping[prefix][iconName]
668
- };
669
- }
670
- }
671
-
672
- /**
673
- * # Reduce
674
- *
675
- * A fast object `.reduce()` implementation.
676
- *
677
- * @param {Object} subject The object to reduce over.
678
- * @param {Function} fn The reducer function.
679
- * @param {mixed} initialValue The initial value for the reducer, defaults to subject[0].
680
- * @param {Object} thisContext The context for the reducer.
681
- * @return {mixed} The final result.
682
- */
683
-
684
-
685
- var reduce = function fastReduceObject(subject, fn, initialValue, thisContext) {
686
- var keys = Object.keys(subject),
687
- length = keys.length,
688
- iterator = fn,
689
- i,
690
- key,
691
- result;
692
-
693
- if (initialValue === undefined) {
694
- i = 1;
695
- result = subject[keys[0]];
696
- } else {
697
- i = 0;
698
- result = initialValue;
699
- }
700
-
701
- for (; i < length; i++) {
702
- key = keys[i];
703
- result = iterator(result, subject[key], key, subject);
704
- }
705
-
706
- return result;
707
- };
708
-
709
- /**
710
- * ucs2decode() and codePointAt() are both works of Mathias Bynens and licensed under MIT
711
- *
712
- * Copyright Mathias Bynens <https://mathiasbynens.be/>
713
-
714
- * Permission is hereby granted, free of charge, to any person obtaining
715
- * a copy of this software and associated documentation files (the
716
- * "Software"), to deal in the Software without restriction, including
717
- * without limitation the rights to use, copy, modify, merge, publish,
718
- * distribute, sublicense, and/or sell copies of the Software, and to
719
- * permit persons to whom the Software is furnished to do so, subject to
720
- * the following conditions:
721
-
722
- * The above copyright notice and this permission notice shall be
723
- * included in all copies or substantial portions of the Software.
724
-
725
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
726
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
727
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
728
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
729
- * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
730
- * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
731
- * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
732
- */
733
- function ucs2decode(string) {
734
- var output = [];
735
- var counter = 0;
736
- var length = string.length;
737
-
738
- while (counter < length) {
739
- var value = string.charCodeAt(counter++);
740
-
741
- if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
742
- var extra = string.charCodeAt(counter++);
743
-
744
- if ((extra & 0xFC00) == 0xDC00) {
745
- // eslint-disable-line eqeqeq
746
- output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
747
- } else {
748
- output.push(value);
749
- counter--;
750
- }
751
- } else {
752
- output.push(value);
753
- }
754
- }
755
-
756
- return output;
757
- }
758
-
759
- function toHex(unicode) {
760
- var decoded = ucs2decode(unicode);
761
- return decoded.length === 1 ? decoded[0].toString(16) : null;
762
- }
763
- function codePointAt(string, index) {
764
- var size = string.length;
765
- var first = string.charCodeAt(index);
766
- var second;
767
-
768
- if (first >= 0xD800 && first <= 0xDBFF && size > index + 1) {
769
- second = string.charCodeAt(index + 1);
770
-
771
- if (second >= 0xDC00 && second <= 0xDFFF) {
772
- return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000;
773
- }
774
- }
775
-
776
- return first;
777
- }
778
-
779
- function normalizeIcons(icons) {
780
- return Object.keys(icons).reduce(function (acc, iconName) {
781
- var icon = icons[iconName];
782
- var expanded = !!icon.icon;
783
-
784
- if (expanded) {
785
- acc[icon.iconName] = icon.icon;
786
- } else {
787
- acc[iconName] = icon;
788
- }
789
-
790
- return acc;
791
- }, {});
792
- }
793
-
794
- function defineIcons(prefix, icons) {
795
- var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
796
- var _params$skipHooks = params.skipHooks,
797
- skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
798
- var normalized = normalizeIcons(icons);
799
-
800
- if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {
801
- namespace.hooks.addPack(prefix, normalizeIcons(icons));
802
- } else {
803
- namespace.styles[prefix] = _objectSpread2$1(_objectSpread2$1({}, namespace.styles[prefix] || {}), normalized);
804
- }
805
- /**
806
- * Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
807
- * of new styles we needed to differentiate between them. Prefix `fa` is now an alias
808
- * for `fas` so we'll ease the upgrade process for our users by automatically defining
809
- * this as well.
810
- */
811
-
812
-
813
- if (prefix === 'fas') {
814
- defineIcons('fa', icons);
815
- }
816
- }
817
-
818
- var _LONG_STYLE, _PREFIXES, _PREFIXES_FOR_FAMILY;
819
- var styles = namespace.styles,
820
- shims = namespace.shims;
821
- 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);
822
- var _defaultUsablePrefix = null;
823
- var _byUnicode = {};
824
- var _byLigature = {};
825
- var _byOldName = {};
826
- var _byOldUnicode = {};
827
- var _byAlias = {};
828
- 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);
829
-
830
- function isReserved(name) {
831
- return ~RESERVED_CLASSES.indexOf(name);
832
- }
833
-
834
- function getIconName(cssPrefix, cls) {
835
- var parts = cls.split('-');
836
- var prefix = parts[0];
837
- var iconName = parts.slice(1).join('-');
838
-
839
- if (prefix === cssPrefix && iconName !== '' && !isReserved(iconName)) {
840
- return iconName;
841
- } else {
842
- return null;
843
- }
844
- }
845
- var build$1 = function build() {
846
- var lookup = function lookup(reducer) {
847
- return reduce(styles, function (o, style, prefix) {
848
- o[prefix] = reduce(style, reducer, {});
849
- return o;
850
- }, {});
851
- };
852
-
853
- _byUnicode = lookup(function (acc, icon, iconName) {
854
- if (icon[3]) {
855
- acc[icon[3]] = iconName;
856
- }
857
-
858
- if (icon[2]) {
859
- var aliases = icon[2].filter(function (a) {
860
- return typeof a === 'number';
861
- });
862
- aliases.forEach(function (alias) {
863
- acc[alias.toString(16)] = iconName;
864
- });
865
- }
866
-
867
- return acc;
868
- });
869
- _byLigature = lookup(function (acc, icon, iconName) {
870
- acc[iconName] = iconName;
871
-
872
- if (icon[2]) {
873
- var aliases = icon[2].filter(function (a) {
874
- return typeof a === 'string';
875
- });
876
- aliases.forEach(function (alias) {
877
- acc[alias] = iconName;
878
- });
879
- }
880
-
881
- return acc;
882
- });
883
- _byAlias = lookup(function (acc, icon, iconName) {
884
- var aliases = icon[2];
885
- acc[iconName] = iconName;
886
- aliases.forEach(function (alias) {
887
- acc[alias] = iconName;
888
- });
889
- return acc;
890
- }); // If we have a Kit, we can't determine if regular is available since we
891
- // could be auto-fetching it. We'll have to assume that it is available.
892
-
893
- var hasRegular = 'far' in styles || config$1.autoFetchSvg;
894
- var shimLookups = reduce(shims, function (acc, shim) {
895
- var maybeNameMaybeUnicode = shim[0];
896
- var prefix = shim[1];
897
- var iconName = shim[2];
898
-
899
- if (prefix === 'far' && !hasRegular) {
900
- prefix = 'fas';
901
- }
902
-
903
- if (typeof maybeNameMaybeUnicode === 'string') {
904
- acc.names[maybeNameMaybeUnicode] = {
905
- prefix: prefix,
906
- iconName: iconName
907
- };
908
- }
909
-
910
- if (typeof maybeNameMaybeUnicode === 'number') {
911
- acc.unicodes[maybeNameMaybeUnicode.toString(16)] = {
912
- prefix: prefix,
913
- iconName: iconName
914
- };
915
- }
916
-
917
- return acc;
918
- }, {
919
- names: {},
920
- unicodes: {}
921
- });
922
- _byOldName = shimLookups.names;
923
- _byOldUnicode = shimLookups.unicodes;
924
- _defaultUsablePrefix = getCanonicalPrefix(config$1.styleDefault, {
925
- family: config$1.familyDefault
926
- });
927
- };
928
- onChange(function (c) {
929
- _defaultUsablePrefix = getCanonicalPrefix(c.styleDefault, {
930
- family: config$1.familyDefault
931
- });
932
- });
933
- build$1();
934
- function byUnicode(prefix, unicode) {
935
- return (_byUnicode[prefix] || {})[unicode];
936
- }
937
- function byLigature(prefix, ligature) {
938
- return (_byLigature[prefix] || {})[ligature];
939
- }
940
- function byAlias(prefix, alias) {
941
- return (_byAlias[prefix] || {})[alias];
942
- }
943
- function byOldName(name) {
944
- return _byOldName[name] || {
945
- prefix: null,
946
- iconName: null
947
- };
948
- }
949
- function byOldUnicode(unicode) {
950
- var oldUnicode = _byOldUnicode[unicode];
951
- var newUnicode = byUnicode('fas', unicode);
952
- return oldUnicode || (newUnicode ? {
953
- prefix: 'fas',
954
- iconName: newUnicode
955
- } : null) || {
956
- prefix: null,
957
- iconName: null
958
- };
959
- }
960
- function getDefaultUsablePrefix() {
961
- return _defaultUsablePrefix;
962
- }
963
- var emptyCanonicalIcon = function emptyCanonicalIcon() {
964
- return {
965
- prefix: null,
966
- iconName: null,
967
- rest: []
968
- };
969
- };
970
- function getCanonicalPrefix(styleOrPrefix) {
971
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
972
- var _params$family = params.family,
973
- family = _params$family === void 0 ? FAMILY_CLASSIC : _params$family;
974
- var style = PREFIX_TO_STYLE[family][styleOrPrefix];
975
- var prefix = STYLE_TO_PREFIX[family][styleOrPrefix] || STYLE_TO_PREFIX[family][style];
976
- var defined = styleOrPrefix in namespace.styles ? styleOrPrefix : null;
977
- return prefix || defined || null;
978
- }
979
- 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);
980
- function getCanonicalIcon(values) {
981
- var _famProps;
982
-
983
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
984
- var _params$skipLookups = params.skipLookups,
985
- skipLookups = _params$skipLookups === void 0 ? false : _params$skipLookups;
986
- var famProps = (_famProps = {}, _defineProperty$1(_famProps, FAMILY_CLASSIC, "".concat(config$1.cssPrefix, "-").concat(FAMILY_CLASSIC)), _defineProperty$1(_famProps, FAMILY_SHARP, "".concat(config$1.cssPrefix, "-").concat(FAMILY_SHARP)), _famProps);
987
- var givenPrefix = null;
988
- var family = FAMILY_CLASSIC;
989
-
990
- if (values.includes(famProps[FAMILY_CLASSIC]) || values.some(function (v) {
991
- return PREFIXES_FOR_FAMILY[FAMILY_CLASSIC].includes(v);
992
- })) {
993
- family = FAMILY_CLASSIC;
994
- }
995
-
996
- if (values.includes(famProps[FAMILY_SHARP]) || values.some(function (v) {
997
- return PREFIXES_FOR_FAMILY[FAMILY_SHARP].includes(v);
998
- })) {
999
- family = FAMILY_SHARP;
1000
- }
1001
-
1002
- var canonical = values.reduce(function (acc, cls) {
1003
- var iconName = getIconName(config$1.cssPrefix, cls);
1004
-
1005
- if (styles[cls]) {
1006
- cls = LONG_STYLE[family].includes(cls) ? LONG_STYLE_TO_PREFIX[family][cls] : cls;
1007
- givenPrefix = cls;
1008
- acc.prefix = cls;
1009
- } else if (PREFIXES[family].indexOf(cls) > -1) {
1010
- givenPrefix = cls;
1011
- acc.prefix = getCanonicalPrefix(cls, {
1012
- family: family
1013
- });
1014
- } else if (iconName) {
1015
- acc.iconName = iconName;
1016
- } else if (cls !== config$1.replacementClass && cls !== famProps[FAMILY_CLASSIC] && cls !== famProps[FAMILY_SHARP]) {
1017
- acc.rest.push(cls);
1018
- }
1019
-
1020
- if (!skipLookups && acc.prefix && acc.iconName) {
1021
- var shim = givenPrefix === 'fa' ? byOldName(acc.iconName) : {};
1022
- var aliasIconName = byAlias(acc.prefix, acc.iconName);
1023
-
1024
- if (shim.prefix) {
1025
- givenPrefix = null;
1026
- }
1027
-
1028
- acc.iconName = shim.iconName || aliasIconName || acc.iconName;
1029
- acc.prefix = shim.prefix || acc.prefix;
1030
-
1031
- if (acc.prefix === 'far' && !styles['far'] && styles['fas'] && !config$1.autoFetchSvg) {
1032
- // Allow a fallback from the regular style to solid if regular is not available
1033
- // but only if we aren't auto-fetching SVGs
1034
- acc.prefix = 'fas';
1035
- }
1036
- }
1037
-
1038
- return acc;
1039
- }, emptyCanonicalIcon());
1040
-
1041
- if (values.includes('fa-brands') || values.includes('fab')) {
1042
- canonical.prefix = 'fab';
1043
- }
1044
-
1045
- if (values.includes('fa-duotone') || values.includes('fad')) {
1046
- canonical.prefix = 'fad';
1047
- }
1048
-
1049
- if (!canonical.prefix && family === FAMILY_SHARP && (styles['fass'] || config$1.autoFetchSvg)) {
1050
- canonical.prefix = 'fass';
1051
- canonical.iconName = byAlias(canonical.prefix, canonical.iconName) || canonical.iconName;
1052
- }
1053
-
1054
- if (canonical.prefix === 'fa' || givenPrefix === 'fa') {
1055
- // The fa prefix is not canonical. So if it has made it through until this point
1056
- // we will shift it to the correct prefix.
1057
- canonical.prefix = getDefaultUsablePrefix() || 'fas';
1058
- }
1059
-
1060
- return canonical;
1061
- }
1062
-
1063
- var Library = /*#__PURE__*/function () {
1064
- function Library() {
1065
- _classCallCheck$2(this, Library);
1066
-
1067
- this.definitions = {};
1068
- }
1069
-
1070
- _createClass$1(Library, [{
1071
- key: "add",
1072
- value: function add() {
1073
- var _this = this;
1074
-
1075
- for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {
1076
- definitions[_key] = arguments[_key];
1077
- }
1078
-
1079
- var additions = definitions.reduce(this._pullDefinitions, {});
1080
- Object.keys(additions).forEach(function (key) {
1081
- _this.definitions[key] = _objectSpread2$1(_objectSpread2$1({}, _this.definitions[key] || {}), additions[key]);
1082
- 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
1083
-
1084
- var longPrefix = PREFIX_TO_LONG_STYLE[FAMILY_CLASSIC][key];
1085
- if (longPrefix) defineIcons(longPrefix, additions[key]);
1086
- build$1();
1087
- });
1088
- }
1089
- }, {
1090
- key: "reset",
1091
- value: function reset() {
1092
- this.definitions = {};
1093
- }
1094
- }, {
1095
- key: "_pullDefinitions",
1096
- value: function _pullDefinitions(additions, definition) {
1097
- var normalized = definition.prefix && definition.iconName && definition.icon ? {
1098
- 0: definition
1099
- } : definition;
1100
- Object.keys(normalized).map(function (key) {
1101
- var _normalized$key = normalized[key],
1102
- prefix = _normalized$key.prefix,
1103
- iconName = _normalized$key.iconName,
1104
- icon = _normalized$key.icon;
1105
- var aliases = icon[2];
1106
- if (!additions[prefix]) additions[prefix] = {};
1107
-
1108
- if (aliases.length > 0) {
1109
- aliases.forEach(function (alias) {
1110
- if (typeof alias === 'string') {
1111
- additions[prefix][alias] = icon;
1112
- }
1113
- });
1114
- }
1115
-
1116
- additions[prefix][iconName] = icon;
1117
- });
1118
- return additions;
1119
- }
1120
- }]);
1121
-
1122
- return Library;
1123
- }();
1124
-
1125
- var _plugins = [];
1126
- var _hooks = {};
1127
- var providers = {};
1128
- var defaultProviderKeys = Object.keys(providers);
1129
- function registerPlugins(nextPlugins, _ref) {
1130
- var obj = _ref.mixoutsTo;
1131
- _plugins = nextPlugins;
1132
- _hooks = {};
1133
- Object.keys(providers).forEach(function (k) {
1134
- if (defaultProviderKeys.indexOf(k) === -1) {
1135
- delete providers[k];
1136
- }
1137
- });
1138
-
1139
- _plugins.forEach(function (plugin) {
1140
- var mixout = plugin.mixout ? plugin.mixout() : {};
1141
- Object.keys(mixout).forEach(function (tk) {
1142
- if (typeof mixout[tk] === 'function') {
1143
- obj[tk] = mixout[tk];
1144
- }
1145
-
1146
- if (_typeof$1(mixout[tk]) === 'object') {
1147
- Object.keys(mixout[tk]).forEach(function (sk) {
1148
- if (!obj[tk]) {
1149
- obj[tk] = {};
1150
- }
1151
-
1152
- obj[tk][sk] = mixout[tk][sk];
1153
- });
1154
- }
1155
- });
1156
-
1157
- if (plugin.hooks) {
1158
- var hooks = plugin.hooks();
1159
- Object.keys(hooks).forEach(function (hook) {
1160
- if (!_hooks[hook]) {
1161
- _hooks[hook] = [];
1162
- }
1163
-
1164
- _hooks[hook].push(hooks[hook]);
1165
- });
1166
- }
1167
-
1168
- if (plugin.provides) {
1169
- plugin.provides(providers);
1170
- }
1171
- });
1172
-
1173
- return obj;
1174
- }
1175
- function chainHooks(hook, accumulator) {
1176
- for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
1177
- args[_key - 2] = arguments[_key];
1178
- }
1179
-
1180
- var hookFns = _hooks[hook] || [];
1181
- hookFns.forEach(function (hookFn) {
1182
- accumulator = hookFn.apply(null, [accumulator].concat(args)); // eslint-disable-line no-useless-call
1183
- });
1184
- return accumulator;
1185
- }
1186
- function callHooks(hook) {
1187
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
1188
- args[_key2 - 1] = arguments[_key2];
1189
- }
1190
-
1191
- var hookFns = _hooks[hook] || [];
1192
- hookFns.forEach(function (hookFn) {
1193
- hookFn.apply(null, args);
1194
- });
1195
- return undefined;
1196
- }
1197
- function callProvided() {
1198
- var hook = arguments[0];
1199
- var args = Array.prototype.slice.call(arguments, 1);
1200
- return providers[hook] ? providers[hook].apply(null, args) : undefined;
1201
- }
1202
-
1203
- function findIconDefinition(iconLookup) {
1204
- if (iconLookup.prefix === 'fa') {
1205
- iconLookup.prefix = 'fas';
1206
- }
1207
-
1208
- var iconName = iconLookup.iconName;
1209
- var prefix = iconLookup.prefix || getDefaultUsablePrefix();
1210
- if (!iconName) return;
1211
- iconName = byAlias(prefix, iconName) || iconName;
1212
- return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);
1213
- }
1214
- var library = new Library();
1215
- var noAuto = function noAuto() {
1216
- config$1.autoReplaceSvg = false;
1217
- config$1.observeMutations = false;
1218
- callHooks('noAuto');
1219
- };
1220
- var dom = {
1221
- i2svg: function i2svg() {
1222
- var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1223
-
1224
- if (IS_DOM) {
1225
- callHooks('beforeI2svg', params);
1226
- callProvided('pseudoElements2svg', params);
1227
- return callProvided('i2svg', params);
1228
- } else {
1229
- return Promise.reject('Operation requires a DOM of some kind.');
1230
- }
1231
- },
1232
- watch: function watch() {
1233
- var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1234
- var autoReplaceSvgRoot = params.autoReplaceSvgRoot;
1235
-
1236
- if (config$1.autoReplaceSvg === false) {
1237
- config$1.autoReplaceSvg = true;
1238
- }
1239
-
1240
- config$1.observeMutations = true;
1241
- domready(function () {
1242
- autoReplace({
1243
- autoReplaceSvgRoot: autoReplaceSvgRoot
1244
- });
1245
- callHooks('watch', params);
1246
- });
1247
- }
1248
- };
1249
- var parse$1 = {
1250
- icon: function icon(_icon) {
1251
- if (_icon === null) {
1252
- return null;
1253
- }
1254
-
1255
- if (_typeof$1(_icon) === 'object' && _icon.prefix && _icon.iconName) {
1256
- return {
1257
- prefix: _icon.prefix,
1258
- iconName: byAlias(_icon.prefix, _icon.iconName) || _icon.iconName
1259
- };
1260
- }
1261
-
1262
- if (Array.isArray(_icon) && _icon.length === 2) {
1263
- var iconName = _icon[1].indexOf('fa-') === 0 ? _icon[1].slice(3) : _icon[1];
1264
- var prefix = getCanonicalPrefix(_icon[0]);
1265
- return {
1266
- prefix: prefix,
1267
- iconName: byAlias(prefix, iconName) || iconName
1268
- };
1269
- }
1270
-
1271
- if (typeof _icon === 'string' && (_icon.indexOf("".concat(config$1.cssPrefix, "-")) > -1 || _icon.match(ICON_SELECTION_SYNTAX_PATTERN))) {
1272
- var canonicalIcon = getCanonicalIcon(_icon.split(' '), {
1273
- skipLookups: true
1274
- });
1275
- return {
1276
- prefix: canonicalIcon.prefix || getDefaultUsablePrefix(),
1277
- iconName: byAlias(canonicalIcon.prefix, canonicalIcon.iconName) || canonicalIcon.iconName
1278
- };
1279
- }
1280
-
1281
- if (typeof _icon === 'string') {
1282
- var _prefix = getDefaultUsablePrefix();
1283
-
1284
- return {
1285
- prefix: _prefix,
1286
- iconName: byAlias(_prefix, _icon) || _icon
1287
- };
1288
- }
1289
- }
1290
- };
1291
- var api = {
1292
- noAuto: noAuto,
1293
- config: config$1,
1294
- dom: dom,
1295
- parse: parse$1,
1296
- library: library,
1297
- findIconDefinition: findIconDefinition,
1298
- toHtml: toHtml
1299
- };
1300
-
1301
- var autoReplace = function autoReplace() {
1302
- var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1303
- var _params$autoReplaceSv = params.autoReplaceSvgRoot,
1304
- autoReplaceSvgRoot = _params$autoReplaceSv === void 0 ? DOCUMENT : _params$autoReplaceSv;
1305
- if ((Object.keys(namespace.styles).length > 0 || config$1.autoFetchSvg) && IS_DOM && config$1.autoReplaceSvg) api.dom.i2svg({
1306
- node: autoReplaceSvgRoot
1307
- });
1308
- };
1309
-
1310
- function domVariants(val, abstractCreator) {
1311
- Object.defineProperty(val, 'abstract', {
1312
- get: abstractCreator
1313
- });
1314
- Object.defineProperty(val, 'html', {
1315
- get: function get() {
1316
- return val.abstract.map(function (a) {
1317
- return toHtml(a);
1318
- });
1319
- }
1320
- });
1321
- Object.defineProperty(val, 'node', {
1322
- get: function get() {
1323
- if (!IS_DOM) return;
1324
- var container = DOCUMENT.createElement('div');
1325
- container.innerHTML = val.html;
1326
- return container.children;
1327
- }
1328
- });
1329
- return val;
1330
- }
1331
-
1332
- function asIcon (_ref) {
1333
- var children = _ref.children,
1334
- main = _ref.main,
1335
- mask = _ref.mask,
1336
- attributes = _ref.attributes,
1337
- styles = _ref.styles,
1338
- transform = _ref.transform;
1339
-
1340
- if (transformIsMeaningful(transform) && main.found && !mask.found) {
1341
- var width = main.width,
1342
- height = main.height;
1343
- var offset = {
1344
- x: width / height / 2,
1345
- y: 0.5
1346
- };
1347
- attributes['style'] = joinStyles(_objectSpread2$1(_objectSpread2$1({}, styles), {}, {
1348
- 'transform-origin': "".concat(offset.x + transform.x / 16, "em ").concat(offset.y + transform.y / 16, "em")
1349
- }));
1350
- }
1351
-
1352
- return [{
1353
- tag: 'svg',
1354
- attributes: attributes,
1355
- children: children
1356
- }];
1357
- }
1358
-
1359
- function asSymbol (_ref) {
1360
- var prefix = _ref.prefix,
1361
- iconName = _ref.iconName,
1362
- children = _ref.children,
1363
- attributes = _ref.attributes,
1364
- symbol = _ref.symbol;
1365
- var id = symbol === true ? "".concat(prefix, "-").concat(config$1.cssPrefix, "-").concat(iconName) : symbol;
1366
- return [{
1367
- tag: 'svg',
1368
- attributes: {
1369
- style: 'display: none;'
1370
- },
1371
- children: [{
1372
- tag: 'symbol',
1373
- attributes: _objectSpread2$1(_objectSpread2$1({}, attributes), {}, {
1374
- id: id
1375
- }),
1376
- children: children
1377
- }]
1378
- }];
1379
- }
1380
-
1381
- function makeInlineSvgAbstract(params) {
1382
- var _params$icons = params.icons,
1383
- main = _params$icons.main,
1384
- mask = _params$icons.mask,
1385
- prefix = params.prefix,
1386
- iconName = params.iconName,
1387
- transform = params.transform,
1388
- symbol = params.symbol,
1389
- title = params.title,
1390
- maskId = params.maskId,
1391
- titleId = params.titleId,
1392
- extra = params.extra,
1393
- _params$watchable = params.watchable,
1394
- watchable = _params$watchable === void 0 ? false : _params$watchable;
1395
-
1396
- var _ref = mask.found ? mask : main,
1397
- width = _ref.width,
1398
- height = _ref.height;
1399
-
1400
- var isUploadedIcon = prefix === 'fak';
1401
- var attrClass = [config$1.replacementClass, iconName ? "".concat(config$1.cssPrefix, "-").concat(iconName) : ''].filter(function (c) {
1402
- return extra.classes.indexOf(c) === -1;
1403
- }).filter(function (c) {
1404
- return c !== '' || !!c;
1405
- }).concat(extra.classes).join(' ');
1406
- var content = {
1407
- children: [],
1408
- attributes: _objectSpread2$1(_objectSpread2$1({}, extra.attributes), {}, {
1409
- 'data-prefix': prefix,
1410
- 'data-icon': iconName,
1411
- 'class': attrClass,
1412
- 'role': extra.attributes.role || 'img',
1413
- 'xmlns': 'http://www.w3.org/2000/svg',
1414
- 'viewBox': "0 0 ".concat(width, " ").concat(height)
1415
- })
1416
- };
1417
- var uploadedIconWidthStyle = isUploadedIcon && !~extra.classes.indexOf('fa-fw') ? {
1418
- width: "".concat(width / height * 16 * 0.0625, "em")
1419
- } : {};
1420
-
1421
- if (watchable) {
1422
- content.attributes[DATA_FA_I2SVG] = '';
1423
- }
1424
-
1425
- if (title) {
1426
- content.children.push({
1427
- tag: 'title',
1428
- attributes: {
1429
- id: content.attributes['aria-labelledby'] || "title-".concat(titleId || nextUniqueId())
1430
- },
1431
- children: [title]
1432
- });
1433
- delete content.attributes.title;
1434
- }
1435
-
1436
- var args = _objectSpread2$1(_objectSpread2$1({}, content), {}, {
1437
- prefix: prefix,
1438
- iconName: iconName,
1439
- main: main,
1440
- mask: mask,
1441
- maskId: maskId,
1442
- transform: transform,
1443
- symbol: symbol,
1444
- styles: _objectSpread2$1(_objectSpread2$1({}, uploadedIconWidthStyle), extra.styles)
1445
- });
1446
-
1447
- var _ref2 = mask.found && main.found ? callProvided('generateAbstractMask', args) || {
1448
- children: [],
1449
- attributes: {}
1450
- } : callProvided('generateAbstractIcon', args) || {
1451
- children: [],
1452
- attributes: {}
1453
- },
1454
- children = _ref2.children,
1455
- attributes = _ref2.attributes;
1456
-
1457
- args.children = children;
1458
- args.attributes = attributes;
1459
-
1460
- if (symbol) {
1461
- return asSymbol(args);
1462
- } else {
1463
- return asIcon(args);
1464
- }
1465
- }
1466
- function makeLayersTextAbstract(params) {
1467
- var content = params.content,
1468
- width = params.width,
1469
- height = params.height,
1470
- transform = params.transform,
1471
- title = params.title,
1472
- extra = params.extra,
1473
- _params$watchable2 = params.watchable,
1474
- watchable = _params$watchable2 === void 0 ? false : _params$watchable2;
1475
-
1476
- var attributes = _objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, extra.attributes), title ? {
1477
- 'title': title
1478
- } : {}), {}, {
1479
- 'class': extra.classes.join(' ')
1480
- });
1481
-
1482
- if (watchable) {
1483
- attributes[DATA_FA_I2SVG] = '';
1484
- }
1485
-
1486
- var styles = _objectSpread2$1({}, extra.styles);
1487
-
1488
- if (transformIsMeaningful(transform)) {
1489
- styles['transform'] = transformForCss({
1490
- transform: transform,
1491
- startCentered: true,
1492
- width: width,
1493
- height: height
1494
- });
1495
- styles['-webkit-transform'] = styles['transform'];
1496
- }
1497
-
1498
- var styleString = joinStyles(styles);
1499
-
1500
- if (styleString.length > 0) {
1501
- attributes['style'] = styleString;
1502
- }
1503
-
1504
- var val = [];
1505
- val.push({
1506
- tag: 'span',
1507
- attributes: attributes,
1508
- children: [content]
1509
- });
1510
-
1511
- if (title) {
1512
- val.push({
1513
- tag: 'span',
1514
- attributes: {
1515
- class: 'sr-only'
1516
- },
1517
- children: [title]
1518
- });
1519
- }
1520
-
1521
- return val;
1522
- }
1523
- function makeLayersCounterAbstract(params) {
1524
- var content = params.content,
1525
- title = params.title,
1526
- extra = params.extra;
1527
-
1528
- var attributes = _objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, extra.attributes), title ? {
1529
- 'title': title
1530
- } : {}), {}, {
1531
- 'class': extra.classes.join(' ')
1532
- });
1533
-
1534
- var styleString = joinStyles(extra.styles);
1535
-
1536
- if (styleString.length > 0) {
1537
- attributes['style'] = styleString;
1538
- }
1539
-
1540
- var val = [];
1541
- val.push({
1542
- tag: 'span',
1543
- attributes: attributes,
1544
- children: [content]
1545
- });
1546
-
1547
- if (title) {
1548
- val.push({
1549
- tag: 'span',
1550
- attributes: {
1551
- class: 'sr-only'
1552
- },
1553
- children: [title]
1554
- });
1555
- }
1556
-
1557
- return val;
1558
- }
1559
-
1560
- var styles$1 = namespace.styles;
1561
- function asFoundIcon(icon) {
1562
- var width = icon[0];
1563
- var height = icon[1];
1564
-
1565
- var _icon$slice = icon.slice(4),
1566
- _icon$slice2 = _slicedToArray(_icon$slice, 1),
1567
- vectorData = _icon$slice2[0];
1568
-
1569
- var element = null;
1570
-
1571
- if (Array.isArray(vectorData)) {
1572
- element = {
1573
- tag: 'g',
1574
- attributes: {
1575
- class: "".concat(config$1.cssPrefix, "-").concat(DUOTONE_CLASSES.GROUP)
1576
- },
1577
- children: [{
1578
- tag: 'path',
1579
- attributes: {
1580
- class: "".concat(config$1.cssPrefix, "-").concat(DUOTONE_CLASSES.SECONDARY),
1581
- fill: 'currentColor',
1582
- d: vectorData[0]
1583
- }
1584
- }, {
1585
- tag: 'path',
1586
- attributes: {
1587
- class: "".concat(config$1.cssPrefix, "-").concat(DUOTONE_CLASSES.PRIMARY),
1588
- fill: 'currentColor',
1589
- d: vectorData[1]
1590
- }
1591
- }]
1592
- };
1593
- } else {
1594
- element = {
1595
- tag: 'path',
1596
- attributes: {
1597
- fill: 'currentColor',
1598
- d: vectorData
1599
- }
1600
- };
1601
- }
1602
-
1603
- return {
1604
- found: true,
1605
- width: width,
1606
- height: height,
1607
- icon: element
1608
- };
1609
- }
1610
- var missingIconResolutionMixin = {
1611
- found: false,
1612
- width: 512,
1613
- height: 512
1614
- };
1615
-
1616
- function maybeNotifyMissing(iconName, prefix) {
1617
- if (!PRODUCTION$1 && !config$1.showMissingIcons && iconName) {
1618
- console.error("Icon with name \"".concat(iconName, "\" and prefix \"").concat(prefix, "\" is missing."));
1619
- }
1620
- }
1621
-
1622
- function findIcon(iconName, prefix) {
1623
- var givenPrefix = prefix;
1624
-
1625
- if (prefix === 'fa' && config$1.styleDefault !== null) {
1626
- prefix = getDefaultUsablePrefix();
1627
- }
1628
-
1629
- return new Promise(function (resolve, reject) {
1630
- ({
1631
- found: false,
1632
- width: 512,
1633
- height: 512,
1634
- icon: callProvided('missingIconAbstract') || {}
1635
- });
1636
-
1637
- if (givenPrefix === 'fa') {
1638
- var shim = byOldName(iconName) || {};
1639
- iconName = shim.iconName || iconName;
1640
- prefix = shim.prefix || prefix;
1641
- }
1642
-
1643
- if (iconName && prefix && styles$1[prefix] && styles$1[prefix][iconName]) {
1644
- var icon = styles$1[prefix][iconName];
1645
- return resolve(asFoundIcon(icon));
1646
- }
1647
-
1648
- maybeNotifyMissing(iconName, prefix);
1649
- resolve(_objectSpread2$1(_objectSpread2$1({}, missingIconResolutionMixin), {}, {
1650
- icon: config$1.showMissingIcons && iconName ? callProvided('missingIconAbstract') || {} : {}
1651
- }));
1652
- });
1653
- }
1654
-
1655
- var noop$1 = function noop() {};
1656
-
1657
- var p$1 = config$1.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {
1658
- mark: noop$1,
1659
- measure: noop$1
1660
- };
1661
- var preamble = "FA \"6.5.2\"";
1662
-
1663
- var begin = function begin(name) {
1664
- p$1.mark("".concat(preamble, " ").concat(name, " begins"));
1665
- return function () {
1666
- return end(name);
1667
- };
1668
- };
1669
-
1670
- var end = function end(name) {
1671
- p$1.mark("".concat(preamble, " ").concat(name, " ends"));
1672
- p$1.measure("".concat(preamble, " ").concat(name), "".concat(preamble, " ").concat(name, " begins"), "".concat(preamble, " ").concat(name, " ends"));
1673
- };
1674
-
1675
- var perf = {
1676
- begin: begin,
1677
- end: end
1678
- };
1679
-
1680
- var noop$2 = function noop() {};
1681
-
1682
- function isWatched(node) {
1683
- var i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;
1684
- return typeof i2svg === 'string';
1685
- }
1686
-
1687
- function hasPrefixAndIcon(node) {
1688
- var prefix = node.getAttribute ? node.getAttribute(DATA_PREFIX) : null;
1689
- var icon = node.getAttribute ? node.getAttribute(DATA_ICON) : null;
1690
- return prefix && icon;
1691
- }
1692
-
1693
- function hasBeenReplaced(node) {
1694
- return node && node.classList && node.classList.contains && node.classList.contains(config$1.replacementClass);
1695
- }
1696
-
1697
- function getMutator() {
1698
- if (config$1.autoReplaceSvg === true) {
1699
- return mutators.replace;
1700
- }
1701
-
1702
- var mutator = mutators[config$1.autoReplaceSvg];
1703
- return mutator || mutators.replace;
1704
- }
1705
-
1706
- function createElementNS(tag) {
1707
- return DOCUMENT.createElementNS('http://www.w3.org/2000/svg', tag);
1708
- }
1709
-
1710
- function createElement(tag) {
1711
- return DOCUMENT.createElement(tag);
1712
- }
1713
-
1714
- function convertSVG(abstractObj) {
1715
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1716
- var _params$ceFn = params.ceFn,
1717
- ceFn = _params$ceFn === void 0 ? abstractObj.tag === 'svg' ? createElementNS : createElement : _params$ceFn;
1718
-
1719
- if (typeof abstractObj === 'string') {
1720
- return DOCUMENT.createTextNode(abstractObj);
1721
- }
1722
-
1723
- var tag = ceFn(abstractObj.tag);
1724
- Object.keys(abstractObj.attributes || []).forEach(function (key) {
1725
- tag.setAttribute(key, abstractObj.attributes[key]);
1726
- });
1727
- var children = abstractObj.children || [];
1728
- children.forEach(function (child) {
1729
- tag.appendChild(convertSVG(child, {
1730
- ceFn: ceFn
1731
- }));
1732
- });
1733
- return tag;
1734
- }
1735
-
1736
- function nodeAsComment(node) {
1737
- var comment = " ".concat(node.outerHTML, " ");
1738
- /* BEGIN.ATTRIBUTION */
1739
-
1740
- comment = "".concat(comment, "Font Awesome fontawesome.com ");
1741
- /* END.ATTRIBUTION */
1742
-
1743
- return comment;
1744
- }
1745
-
1746
- var mutators = {
1747
- replace: function replace(mutation) {
1748
- var node = mutation[0];
1749
-
1750
- if (node.parentNode) {
1751
- mutation[1].forEach(function (_abstract) {
1752
- node.parentNode.insertBefore(convertSVG(_abstract), node);
1753
- });
1754
-
1755
- if (node.getAttribute(DATA_FA_I2SVG) === null && config$1.keepOriginalSource) {
1756
- var comment = DOCUMENT.createComment(nodeAsComment(node));
1757
- node.parentNode.replaceChild(comment, node);
1758
- } else {
1759
- node.remove();
1760
- }
1761
- }
1762
- },
1763
- nest: function nest(mutation) {
1764
- var node = mutation[0];
1765
- var _abstract2 = mutation[1]; // If we already have a replaced node we do not want to continue nesting within it.
1766
- // Short-circuit to the standard replacement
1767
-
1768
- if (~classArray(node).indexOf(config$1.replacementClass)) {
1769
- return mutators.replace(mutation);
1770
- }
1771
-
1772
- var forSvg = new RegExp("".concat(config$1.cssPrefix, "-.*"));
1773
- delete _abstract2[0].attributes.id;
1774
-
1775
- if (_abstract2[0].attributes.class) {
1776
- var splitClasses = _abstract2[0].attributes.class.split(' ').reduce(function (acc, cls) {
1777
- if (cls === config$1.replacementClass || cls.match(forSvg)) {
1778
- acc.toSvg.push(cls);
1779
- } else {
1780
- acc.toNode.push(cls);
1781
- }
1782
-
1783
- return acc;
1784
- }, {
1785
- toNode: [],
1786
- toSvg: []
1787
- });
1788
-
1789
- _abstract2[0].attributes.class = splitClasses.toSvg.join(' ');
1790
-
1791
- if (splitClasses.toNode.length === 0) {
1792
- node.removeAttribute('class');
1793
- } else {
1794
- node.setAttribute('class', splitClasses.toNode.join(' '));
1795
- }
1796
- }
1797
-
1798
- var newInnerHTML = _abstract2.map(function (a) {
1799
- return toHtml(a);
1800
- }).join('\n');
1801
-
1802
- node.setAttribute(DATA_FA_I2SVG, '');
1803
- node.innerHTML = newInnerHTML;
1804
- }
1805
- };
1806
-
1807
- function performOperationSync(op) {
1808
- op();
1809
- }
1810
-
1811
- function perform(mutations, callback) {
1812
- var callbackFunction = typeof callback === 'function' ? callback : noop$2;
1813
-
1814
- if (mutations.length === 0) {
1815
- callbackFunction();
1816
- } else {
1817
- var frame = performOperationSync;
1818
-
1819
- if (config$1.mutateApproach === MUTATION_APPROACH_ASYNC) {
1820
- frame = WINDOW.requestAnimationFrame || performOperationSync;
1821
- }
1822
-
1823
- frame(function () {
1824
- var mutator = getMutator();
1825
- var mark = perf.begin('mutate');
1826
- mutations.map(mutator);
1827
- mark();
1828
- callbackFunction();
1829
- });
1830
- }
1831
- }
1832
- var disabled = false;
1833
- function disableObservation() {
1834
- disabled = true;
1835
- }
1836
- function enableObservation() {
1837
- disabled = false;
1838
- }
1839
- var mo = null;
1840
- function observe(options) {
1841
- if (!MUTATION_OBSERVER) {
1842
- return;
1843
- }
1844
-
1845
- if (!config$1.observeMutations) {
1846
- return;
1847
- }
1848
-
1849
- var _options$treeCallback = options.treeCallback,
1850
- treeCallback = _options$treeCallback === void 0 ? noop$2 : _options$treeCallback,
1851
- _options$nodeCallback = options.nodeCallback,
1852
- nodeCallback = _options$nodeCallback === void 0 ? noop$2 : _options$nodeCallback,
1853
- _options$pseudoElemen = options.pseudoElementsCallback,
1854
- pseudoElementsCallback = _options$pseudoElemen === void 0 ? noop$2 : _options$pseudoElemen,
1855
- _options$observeMutat = options.observeMutationsRoot,
1856
- observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT : _options$observeMutat;
1857
- mo = new MUTATION_OBSERVER(function (objects) {
1858
- if (disabled) return;
1859
- var defaultPrefix = getDefaultUsablePrefix();
1860
- toArray(objects).forEach(function (mutationRecord) {
1861
- if (mutationRecord.type === 'childList' && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {
1862
- if (config$1.searchPseudoElements) {
1863
- pseudoElementsCallback(mutationRecord.target);
1864
- }
1865
-
1866
- treeCallback(mutationRecord.target);
1867
- }
1868
-
1869
- if (mutationRecord.type === 'attributes' && mutationRecord.target.parentNode && config$1.searchPseudoElements) {
1870
- pseudoElementsCallback(mutationRecord.target.parentNode);
1871
- }
1872
-
1873
- if (mutationRecord.type === 'attributes' && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {
1874
- if (mutationRecord.attributeName === 'class' && hasPrefixAndIcon(mutationRecord.target)) {
1875
- var _getCanonicalIcon = getCanonicalIcon(classArray(mutationRecord.target)),
1876
- prefix = _getCanonicalIcon.prefix,
1877
- iconName = _getCanonicalIcon.iconName;
1878
-
1879
- mutationRecord.target.setAttribute(DATA_PREFIX, prefix || defaultPrefix);
1880
- if (iconName) mutationRecord.target.setAttribute(DATA_ICON, iconName);
1881
- } else if (hasBeenReplaced(mutationRecord.target)) {
1882
- nodeCallback(mutationRecord.target);
1883
- }
1884
- }
1885
- });
1886
- });
1887
- if (!IS_DOM) return;
1888
- mo.observe(observeMutationsRoot, {
1889
- childList: true,
1890
- attributes: true,
1891
- characterData: true,
1892
- subtree: true
1893
- });
1894
- }
1895
- function disconnect() {
1896
- if (!mo) return;
1897
- mo.disconnect();
1898
- }
1899
-
1900
- function styleParser (node) {
1901
- var style = node.getAttribute('style');
1902
- var val = [];
1903
-
1904
- if (style) {
1905
- val = style.split(';').reduce(function (acc, style) {
1906
- var styles = style.split(':');
1907
- var prop = styles[0];
1908
- var value = styles.slice(1);
1909
-
1910
- if (prop && value.length > 0) {
1911
- acc[prop] = value.join(':').trim();
1912
- }
1913
-
1914
- return acc;
1915
- }, {});
1916
- }
1917
-
1918
- return val;
1919
- }
1920
-
1921
- function classParser (node) {
1922
- var existingPrefix = node.getAttribute('data-prefix');
1923
- var existingIconName = node.getAttribute('data-icon');
1924
- var innerText = node.innerText !== undefined ? node.innerText.trim() : '';
1925
- var val = getCanonicalIcon(classArray(node));
1926
-
1927
- if (!val.prefix) {
1928
- val.prefix = getDefaultUsablePrefix();
1929
- }
1930
-
1931
- if (existingPrefix && existingIconName) {
1932
- val.prefix = existingPrefix;
1933
- val.iconName = existingIconName;
1934
- }
1935
-
1936
- if (val.iconName && val.prefix) {
1937
- return val;
1938
- }
1939
-
1940
- if (val.prefix && innerText.length > 0) {
1941
- val.iconName = byLigature(val.prefix, node.innerText) || byUnicode(val.prefix, toHex(node.innerText));
1942
- }
1943
-
1944
- if (!val.iconName && config$1.autoFetchSvg && node.firstChild && node.firstChild.nodeType === Node.TEXT_NODE) {
1945
- val.iconName = node.firstChild.data;
1946
- }
1947
-
1948
- return val;
1949
- }
1950
-
1951
- function attributesParser (node) {
1952
- var extraAttributes = toArray(node.attributes).reduce(function (acc, attr) {
1953
- if (acc.name !== 'class' && acc.name !== 'style') {
1954
- acc[attr.name] = attr.value;
1955
- }
1956
-
1957
- return acc;
1958
- }, {});
1959
- var title = node.getAttribute('title');
1960
- var titleId = node.getAttribute('data-fa-title-id');
1961
-
1962
- if (config$1.autoA11y) {
1963
- if (title) {
1964
- extraAttributes['aria-labelledby'] = "".concat(config$1.replacementClass, "-title-").concat(titleId || nextUniqueId());
1965
- } else {
1966
- extraAttributes['aria-hidden'] = 'true';
1967
- extraAttributes['focusable'] = 'false';
1968
- }
1969
- }
1970
-
1971
- return extraAttributes;
1972
- }
1973
-
1974
- function blankMeta() {
1975
- return {
1976
- iconName: null,
1977
- title: null,
1978
- titleId: null,
1979
- prefix: null,
1980
- transform: meaninglessTransform,
1981
- symbol: false,
1982
- mask: {
1983
- iconName: null,
1984
- prefix: null,
1985
- rest: []
1986
- },
1987
- maskId: null,
1988
- extra: {
1989
- classes: [],
1990
- styles: {},
1991
- attributes: {}
1992
- }
1993
- };
1994
- }
1995
- function parseMeta(node) {
1996
- var parser = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
1997
- styleParser: true
1998
- };
1999
-
2000
- var _classParser = classParser(node),
2001
- iconName = _classParser.iconName,
2002
- prefix = _classParser.prefix,
2003
- extraClasses = _classParser.rest;
2004
-
2005
- var extraAttributes = attributesParser(node);
2006
- var pluginMeta = chainHooks('parseNodeAttributes', {}, node);
2007
- var extraStyles = parser.styleParser ? styleParser(node) : [];
2008
- return _objectSpread2$1({
2009
- iconName: iconName,
2010
- title: node.getAttribute('title'),
2011
- titleId: node.getAttribute('data-fa-title-id'),
2012
- prefix: prefix,
2013
- transform: meaninglessTransform,
2014
- mask: {
2015
- iconName: null,
2016
- prefix: null,
2017
- rest: []
2018
- },
2019
- maskId: null,
2020
- symbol: false,
2021
- extra: {
2022
- classes: extraClasses,
2023
- styles: extraStyles,
2024
- attributes: extraAttributes
2025
- }
2026
- }, pluginMeta);
2027
- }
2028
-
2029
- var styles$2 = namespace.styles;
2030
-
2031
- function generateMutation(node) {
2032
- var nodeMeta = config$1.autoReplaceSvg === 'nest' ? parseMeta(node, {
2033
- styleParser: false
2034
- }) : parseMeta(node);
2035
-
2036
- if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) {
2037
- return callProvided('generateLayersText', node, nodeMeta);
2038
- } else {
2039
- return callProvided('generateSvgReplacementMutation', node, nodeMeta);
2040
- }
2041
- }
2042
-
2043
- var knownPrefixes = new Set();
2044
- FAMILIES.map(function (family) {
2045
- knownPrefixes.add("fa-".concat(family));
2046
- });
2047
- Object.keys(PREFIX_TO_STYLE[FAMILY_CLASSIC]).map(knownPrefixes.add.bind(knownPrefixes));
2048
- Object.keys(PREFIX_TO_STYLE[FAMILY_SHARP]).map(knownPrefixes.add.bind(knownPrefixes));
2049
- knownPrefixes = _toConsumableArray$1(knownPrefixes);
2050
-
2051
- function onTree(root) {
2052
- var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
2053
- if (!IS_DOM) return Promise.resolve();
2054
- var htmlClassList = DOCUMENT.documentElement.classList;
2055
-
2056
- var hclAdd = function hclAdd(suffix) {
2057
- return htmlClassList.add("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
2058
- };
2059
-
2060
- var hclRemove = function hclRemove(suffix) {
2061
- return htmlClassList.remove("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
2062
- };
2063
-
2064
- var prefixes = config$1.autoFetchSvg ? knownPrefixes : FAMILIES.map(function (f) {
2065
- return "fa-".concat(f);
2066
- }).concat(Object.keys(styles$2));
2067
-
2068
- if (!prefixes.includes('fa')) {
2069
- prefixes.push('fa');
2070
- }
2071
-
2072
- var prefixesDomQuery = [".".concat(LAYERS_TEXT_CLASSNAME, ":not([").concat(DATA_FA_I2SVG, "])")].concat(prefixes.map(function (p) {
2073
- return ".".concat(p, ":not([").concat(DATA_FA_I2SVG, "])");
2074
- })).join(', ');
2075
-
2076
- if (prefixesDomQuery.length === 0) {
2077
- return Promise.resolve();
2078
- }
2079
-
2080
- var candidates = [];
2081
-
2082
- try {
2083
- candidates = toArray(root.querySelectorAll(prefixesDomQuery));
2084
- } catch (e) {// noop
2085
- }
2086
-
2087
- if (candidates.length > 0) {
2088
- hclAdd('pending');
2089
- hclRemove('complete');
2090
- } else {
2091
- return Promise.resolve();
2092
- }
2093
-
2094
- var mark = perf.begin('onTree');
2095
- var mutations = candidates.reduce(function (acc, node) {
2096
- try {
2097
- var mutation = generateMutation(node);
2098
-
2099
- if (mutation) {
2100
- acc.push(mutation);
2101
- }
2102
- } catch (e) {
2103
- if (!PRODUCTION$1) {
2104
- if (e.name === 'MissingIcon') {
2105
- console.error(e);
2106
- }
2107
- }
2108
- }
2109
-
2110
- return acc;
2111
- }, []);
2112
- return new Promise(function (resolve, reject) {
2113
- Promise.all(mutations).then(function (resolvedMutations) {
2114
- perform(resolvedMutations, function () {
2115
- hclAdd('active');
2116
- hclAdd('complete');
2117
- hclRemove('pending');
2118
- if (typeof callback === 'function') callback();
2119
- mark();
2120
- resolve();
2121
- });
2122
- }).catch(function (e) {
2123
- mark();
2124
- reject(e);
2125
- });
2126
- });
2127
- }
2128
-
2129
- function onNode(node) {
2130
- var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
2131
- generateMutation(node).then(function (mutation) {
2132
- if (mutation) {
2133
- perform([mutation], callback);
2134
- }
2135
- });
2136
- }
2137
-
2138
- function resolveIcons(next) {
2139
- return function (maybeIconDefinition) {
2140
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2141
- var iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});
2142
- var mask = params.mask;
2143
-
2144
- if (mask) {
2145
- mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});
2146
- }
2147
-
2148
- return next(iconDefinition, _objectSpread2$1(_objectSpread2$1({}, params), {}, {
2149
- mask: mask
2150
- }));
2151
- };
2152
- }
2153
-
2154
- var render = function render(iconDefinition) {
2155
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2156
- var _params$transform = params.transform,
2157
- transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,
2158
- _params$symbol = params.symbol,
2159
- symbol = _params$symbol === void 0 ? false : _params$symbol,
2160
- _params$mask = params.mask,
2161
- mask = _params$mask === void 0 ? null : _params$mask,
2162
- _params$maskId = params.maskId,
2163
- maskId = _params$maskId === void 0 ? null : _params$maskId,
2164
- _params$title = params.title,
2165
- title = _params$title === void 0 ? null : _params$title,
2166
- _params$titleId = params.titleId,
2167
- titleId = _params$titleId === void 0 ? null : _params$titleId,
2168
- _params$classes = params.classes,
2169
- classes = _params$classes === void 0 ? [] : _params$classes,
2170
- _params$attributes = params.attributes,
2171
- attributes = _params$attributes === void 0 ? {} : _params$attributes,
2172
- _params$styles = params.styles,
2173
- styles = _params$styles === void 0 ? {} : _params$styles;
2174
- if (!iconDefinition) return;
2175
- var prefix = iconDefinition.prefix,
2176
- iconName = iconDefinition.iconName,
2177
- icon = iconDefinition.icon;
2178
- return domVariants(_objectSpread2$1({
2179
- type: 'icon'
2180
- }, iconDefinition), function () {
2181
- callHooks('beforeDOMElementCreation', {
2182
- iconDefinition: iconDefinition,
2183
- params: params
2184
- });
2185
-
2186
- if (config$1.autoA11y) {
2187
- if (title) {
2188
- attributes['aria-labelledby'] = "".concat(config$1.replacementClass, "-title-").concat(titleId || nextUniqueId());
2189
- } else {
2190
- attributes['aria-hidden'] = 'true';
2191
- attributes['focusable'] = 'false';
2192
- }
2193
- }
2194
-
2195
- return makeInlineSvgAbstract({
2196
- icons: {
2197
- main: asFoundIcon(icon),
2198
- mask: mask ? asFoundIcon(mask.icon) : {
2199
- found: false,
2200
- width: null,
2201
- height: null,
2202
- icon: {}
2203
- }
2204
- },
2205
- prefix: prefix,
2206
- iconName: iconName,
2207
- transform: _objectSpread2$1(_objectSpread2$1({}, meaninglessTransform), transform),
2208
- symbol: symbol,
2209
- title: title,
2210
- maskId: maskId,
2211
- titleId: titleId,
2212
- extra: {
2213
- attributes: attributes,
2214
- styles: styles,
2215
- classes: classes
2216
- }
2217
- });
2218
- });
2219
- };
2220
- var ReplaceElements = {
2221
- mixout: function mixout() {
2222
- return {
2223
- icon: resolveIcons(render)
2224
- };
2225
- },
2226
- hooks: function hooks() {
2227
- return {
2228
- mutationObserverCallbacks: function mutationObserverCallbacks(accumulator) {
2229
- accumulator.treeCallback = onTree;
2230
- accumulator.nodeCallback = onNode;
2231
- return accumulator;
2232
- }
2233
- };
2234
- },
2235
- provides: function provides(providers$$1) {
2236
- providers$$1.i2svg = function (params) {
2237
- var _params$node = params.node,
2238
- node = _params$node === void 0 ? DOCUMENT : _params$node,
2239
- _params$callback = params.callback,
2240
- callback = _params$callback === void 0 ? function () {} : _params$callback;
2241
- return onTree(node, callback);
2242
- };
2243
-
2244
- providers$$1.generateSvgReplacementMutation = function (node, nodeMeta) {
2245
- var iconName = nodeMeta.iconName,
2246
- title = nodeMeta.title,
2247
- titleId = nodeMeta.titleId,
2248
- prefix = nodeMeta.prefix,
2249
- transform = nodeMeta.transform,
2250
- symbol = nodeMeta.symbol,
2251
- mask = nodeMeta.mask,
2252
- maskId = nodeMeta.maskId,
2253
- extra = nodeMeta.extra;
2254
- return new Promise(function (resolve, reject) {
2255
- Promise.all([findIcon(iconName, prefix), mask.iconName ? findIcon(mask.iconName, mask.prefix) : Promise.resolve({
2256
- found: false,
2257
- width: 512,
2258
- height: 512,
2259
- icon: {}
2260
- })]).then(function (_ref) {
2261
- var _ref2 = _slicedToArray(_ref, 2),
2262
- main = _ref2[0],
2263
- mask = _ref2[1];
2264
-
2265
- resolve([node, makeInlineSvgAbstract({
2266
- icons: {
2267
- main: main,
2268
- mask: mask
2269
- },
2270
- prefix: prefix,
2271
- iconName: iconName,
2272
- transform: transform,
2273
- symbol: symbol,
2274
- maskId: maskId,
2275
- title: title,
2276
- titleId: titleId,
2277
- extra: extra,
2278
- watchable: true
2279
- })]);
2280
- }).catch(reject);
2281
- });
2282
- };
2283
-
2284
- providers$$1.generateAbstractIcon = function (_ref3) {
2285
- var children = _ref3.children,
2286
- attributes = _ref3.attributes,
2287
- main = _ref3.main,
2288
- transform = _ref3.transform,
2289
- styles = _ref3.styles;
2290
- var styleString = joinStyles(styles);
2291
-
2292
- if (styleString.length > 0) {
2293
- attributes['style'] = styleString;
2294
- }
2295
-
2296
- var nextChild;
2297
-
2298
- if (transformIsMeaningful(transform)) {
2299
- nextChild = callProvided('generateAbstractTransformGrouping', {
2300
- main: main,
2301
- transform: transform,
2302
- containerWidth: main.width,
2303
- iconWidth: main.width
2304
- });
2305
- }
2306
-
2307
- children.push(nextChild || main.icon);
2308
- return {
2309
- children: children,
2310
- attributes: attributes
2311
- };
2312
- };
2313
- }
2314
- };
2315
-
2316
- var Layers = {
2317
- mixout: function mixout() {
2318
- return {
2319
- layer: function layer(assembler) {
2320
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2321
- var _params$classes = params.classes,
2322
- classes = _params$classes === void 0 ? [] : _params$classes;
2323
- return domVariants({
2324
- type: 'layer'
2325
- }, function () {
2326
- callHooks('beforeDOMElementCreation', {
2327
- assembler: assembler,
2328
- params: params
2329
- });
2330
- var children = [];
2331
- assembler(function (args) {
2332
- Array.isArray(args) ? args.map(function (a) {
2333
- children = children.concat(a.abstract);
2334
- }) : children = children.concat(args.abstract);
2335
- });
2336
- return [{
2337
- tag: 'span',
2338
- attributes: {
2339
- class: ["".concat(config$1.cssPrefix, "-layers")].concat(_toConsumableArray$1(classes)).join(' ')
2340
- },
2341
- children: children
2342
- }];
2343
- });
2344
- }
2345
- };
2346
- }
2347
- };
2348
-
2349
- var LayersCounter = {
2350
- mixout: function mixout() {
2351
- return {
2352
- counter: function counter(content) {
2353
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2354
- var _params$title = params.title,
2355
- title = _params$title === void 0 ? null : _params$title,
2356
- _params$classes = params.classes,
2357
- classes = _params$classes === void 0 ? [] : _params$classes,
2358
- _params$attributes = params.attributes,
2359
- attributes = _params$attributes === void 0 ? {} : _params$attributes,
2360
- _params$styles = params.styles,
2361
- styles = _params$styles === void 0 ? {} : _params$styles;
2362
- return domVariants({
2363
- type: 'counter',
2364
- content: content
2365
- }, function () {
2366
- callHooks('beforeDOMElementCreation', {
2367
- content: content,
2368
- params: params
2369
- });
2370
- return makeLayersCounterAbstract({
2371
- content: content.toString(),
2372
- title: title,
2373
- extra: {
2374
- attributes: attributes,
2375
- styles: styles,
2376
- classes: ["".concat(config$1.cssPrefix, "-layers-counter")].concat(_toConsumableArray$1(classes))
2377
- }
2378
- });
2379
- });
2380
- }
2381
- };
2382
- }
2383
- };
2384
-
2385
- var LayersText = {
2386
- mixout: function mixout() {
2387
- return {
2388
- text: function text(content) {
2389
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2390
- var _params$transform = params.transform,
2391
- transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,
2392
- _params$title = params.title,
2393
- title = _params$title === void 0 ? null : _params$title,
2394
- _params$classes = params.classes,
2395
- classes = _params$classes === void 0 ? [] : _params$classes,
2396
- _params$attributes = params.attributes,
2397
- attributes = _params$attributes === void 0 ? {} : _params$attributes,
2398
- _params$styles = params.styles,
2399
- styles = _params$styles === void 0 ? {} : _params$styles;
2400
- return domVariants({
2401
- type: 'text',
2402
- content: content
2403
- }, function () {
2404
- callHooks('beforeDOMElementCreation', {
2405
- content: content,
2406
- params: params
2407
- });
2408
- return makeLayersTextAbstract({
2409
- content: content,
2410
- transform: _objectSpread2$1(_objectSpread2$1({}, meaninglessTransform), transform),
2411
- title: title,
2412
- extra: {
2413
- attributes: attributes,
2414
- styles: styles,
2415
- classes: ["".concat(config$1.cssPrefix, "-layers-text")].concat(_toConsumableArray$1(classes))
2416
- }
2417
- });
2418
- });
2419
- }
2420
- };
2421
- },
2422
- provides: function provides(providers$$1) {
2423
- providers$$1.generateLayersText = function (node, nodeMeta) {
2424
- var title = nodeMeta.title,
2425
- transform = nodeMeta.transform,
2426
- extra = nodeMeta.extra;
2427
- var width = null;
2428
- var height = null;
2429
-
2430
- if (IS_IE) {
2431
- var computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);
2432
- var boundingClientRect = node.getBoundingClientRect();
2433
- width = boundingClientRect.width / computedFontSize;
2434
- height = boundingClientRect.height / computedFontSize;
2435
- }
2436
-
2437
- if (config$1.autoA11y && !title) {
2438
- extra.attributes['aria-hidden'] = 'true';
2439
- }
2440
-
2441
- return Promise.resolve([node, makeLayersTextAbstract({
2442
- content: node.innerHTML,
2443
- width: width,
2444
- height: height,
2445
- transform: transform,
2446
- title: title,
2447
- extra: extra,
2448
- watchable: true
2449
- })]);
2450
- };
2451
- }
2452
- };
2453
-
2454
- var CLEAN_CONTENT_PATTERN = new RegExp("\"", 'ug');
2455
- var SECONDARY_UNICODE_RANGE = [1105920, 1112319];
2456
- function hexValueFromContent(content) {
2457
- var cleaned = content.replace(CLEAN_CONTENT_PATTERN, '');
2458
- var codePoint = codePointAt(cleaned, 0);
2459
- var isPrependTen = codePoint >= SECONDARY_UNICODE_RANGE[0] && codePoint <= SECONDARY_UNICODE_RANGE[1];
2460
- var isDoubled = cleaned.length === 2 ? cleaned[0] === cleaned[1] : false;
2461
- return {
2462
- value: isDoubled ? toHex(cleaned[0]) : toHex(cleaned),
2463
- isSecondary: isPrependTen || isDoubled
2464
- };
2465
- }
2466
-
2467
- function replaceForPosition(node, position) {
2468
- var pendingAttribute = "".concat(DATA_FA_PSEUDO_ELEMENT_PENDING).concat(position.replace(':', '-'));
2469
- return new Promise(function (resolve, reject) {
2470
- if (node.getAttribute(pendingAttribute) !== null) {
2471
- // This node is already being processed
2472
- return resolve();
2473
- }
2474
-
2475
- var children = toArray(node.children);
2476
- var alreadyProcessedPseudoElement = children.filter(function (c) {
2477
- return c.getAttribute(DATA_FA_PSEUDO_ELEMENT) === position;
2478
- })[0];
2479
- var styles = WINDOW.getComputedStyle(node, position);
2480
- var fontFamily = styles.getPropertyValue('font-family').match(FONT_FAMILY_PATTERN);
2481
- var fontWeight = styles.getPropertyValue('font-weight');
2482
- var content = styles.getPropertyValue('content');
2483
-
2484
- if (alreadyProcessedPseudoElement && !fontFamily) {
2485
- // If we've already processed it but the current computed style does not result in a font-family,
2486
- // that probably means that a class name that was previously present to make the icon has been
2487
- // removed. So we now should delete the icon.
2488
- node.removeChild(alreadyProcessedPseudoElement);
2489
- return resolve();
2490
- } else if (fontFamily && content !== 'none' && content !== '') {
2491
- var _content = styles.getPropertyValue('content');
2492
-
2493
- var family = ~['Sharp'].indexOf(fontFamily[2]) ? FAMILY_SHARP : FAMILY_CLASSIC;
2494
- 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];
2495
-
2496
- var _hexValueFromContent = hexValueFromContent(_content),
2497
- hexValue = _hexValueFromContent.value,
2498
- isSecondary = _hexValueFromContent.isSecondary;
2499
-
2500
- var isV4 = fontFamily[0].startsWith('FontAwesome');
2501
- var iconName = byUnicode(prefix, hexValue);
2502
- var iconIdentifier = iconName;
2503
-
2504
- if (isV4) {
2505
- var iconName4 = byOldUnicode(hexValue);
2506
-
2507
- if (iconName4.iconName && iconName4.prefix) {
2508
- iconName = iconName4.iconName;
2509
- prefix = iconName4.prefix;
2510
- }
2511
- } // Only convert the pseudo element in this ::before/::after position into an icon if we haven't
2512
- // already done so with the same prefix and iconName
2513
-
2514
-
2515
- if (iconName && !isSecondary && (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || alreadyProcessedPseudoElement.getAttribute(DATA_ICON) !== iconIdentifier)) {
2516
- node.setAttribute(pendingAttribute, iconIdentifier);
2517
-
2518
- if (alreadyProcessedPseudoElement) {
2519
- // Delete the old one, since we're replacing it with a new one
2520
- node.removeChild(alreadyProcessedPseudoElement);
2521
- }
2522
-
2523
- var meta = blankMeta();
2524
- var extra = meta.extra;
2525
- extra.attributes[DATA_FA_PSEUDO_ELEMENT] = position;
2526
- findIcon(iconName, prefix).then(function (main) {
2527
- var _abstract = makeInlineSvgAbstract(_objectSpread2$1(_objectSpread2$1({}, meta), {}, {
2528
- icons: {
2529
- main: main,
2530
- mask: emptyCanonicalIcon()
2531
- },
2532
- prefix: prefix,
2533
- iconName: iconIdentifier,
2534
- extra: extra,
2535
- watchable: true
2536
- }));
2537
-
2538
- var element = DOCUMENT.createElementNS('http://www.w3.org/2000/svg', 'svg');
2539
-
2540
- if (position === '::before') {
2541
- node.insertBefore(element, node.firstChild);
2542
- } else {
2543
- node.appendChild(element);
2544
- }
2545
-
2546
- element.outerHTML = _abstract.map(function (a) {
2547
- return toHtml(a);
2548
- }).join('\n');
2549
- node.removeAttribute(pendingAttribute);
2550
- resolve();
2551
- }).catch(reject);
2552
- } else {
2553
- resolve();
2554
- }
2555
- } else {
2556
- resolve();
2557
- }
2558
- });
2559
- }
2560
-
2561
- function replace(node) {
2562
- return Promise.all([replaceForPosition(node, '::before'), replaceForPosition(node, '::after')]);
2563
- }
2564
-
2565
- function processable(node) {
2566
- 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');
2567
- }
2568
-
2569
- function searchPseudoElements(root) {
2570
- if (!IS_DOM) return;
2571
- return new Promise(function (resolve, reject) {
2572
- var operations = toArray(root.querySelectorAll('*')).filter(processable).map(replace);
2573
- var end = perf.begin('searchPseudoElements');
2574
- disableObservation();
2575
- Promise.all(operations).then(function () {
2576
- end();
2577
- enableObservation();
2578
- resolve();
2579
- }).catch(function () {
2580
- end();
2581
- enableObservation();
2582
- reject();
2583
- });
2584
- });
2585
- }
2586
-
2587
- var PseudoElements = {
2588
- hooks: function hooks() {
2589
- return {
2590
- mutationObserverCallbacks: function mutationObserverCallbacks(accumulator) {
2591
- accumulator.pseudoElementsCallback = searchPseudoElements;
2592
- return accumulator;
2593
- }
2594
- };
2595
- },
2596
- provides: function provides(providers$$1) {
2597
- providers$$1.pseudoElements2svg = function (params) {
2598
- var _params$node = params.node,
2599
- node = _params$node === void 0 ? DOCUMENT : _params$node;
2600
-
2601
- if (config$1.searchPseudoElements) {
2602
- searchPseudoElements(node);
2603
- }
2604
- };
2605
- }
2606
- };
2607
-
2608
- var _unwatched = false;
2609
- var MutationObserver$1 = {
2610
- mixout: function mixout() {
2611
- return {
2612
- dom: {
2613
- unwatch: function unwatch() {
2614
- disableObservation();
2615
- _unwatched = true;
2616
- }
2617
- }
2618
- };
2619
- },
2620
- hooks: function hooks() {
2621
- return {
2622
- bootstrap: function bootstrap() {
2623
- observe(chainHooks('mutationObserverCallbacks', {}));
2624
- },
2625
- noAuto: function noAuto() {
2626
- disconnect();
2627
- },
2628
- watch: function watch(params) {
2629
- var observeMutationsRoot = params.observeMutationsRoot;
2630
-
2631
- if (_unwatched) {
2632
- enableObservation();
2633
- } else {
2634
- observe(chainHooks('mutationObserverCallbacks', {
2635
- observeMutationsRoot: observeMutationsRoot
2636
- }));
2637
- }
2638
- }
2639
- };
2640
- }
2641
- };
2642
-
2643
- var parseTransformString = function parseTransformString(transformString) {
2644
- var transform = {
2645
- size: 16,
2646
- x: 0,
2647
- y: 0,
2648
- flipX: false,
2649
- flipY: false,
2650
- rotate: 0
2651
- };
2652
- return transformString.toLowerCase().split(' ').reduce(function (acc, n) {
2653
- var parts = n.toLowerCase().split('-');
2654
- var first = parts[0];
2655
- var rest = parts.slice(1).join('-');
2656
-
2657
- if (first && rest === 'h') {
2658
- acc.flipX = true;
2659
- return acc;
2660
- }
2661
-
2662
- if (first && rest === 'v') {
2663
- acc.flipY = true;
2664
- return acc;
2665
- }
2666
-
2667
- rest = parseFloat(rest);
2668
-
2669
- if (isNaN(rest)) {
2670
- return acc;
2671
- }
2672
-
2673
- switch (first) {
2674
- case 'grow':
2675
- acc.size = acc.size + rest;
2676
- break;
2677
-
2678
- case 'shrink':
2679
- acc.size = acc.size - rest;
2680
- break;
2681
-
2682
- case 'left':
2683
- acc.x = acc.x - rest;
2684
- break;
2685
-
2686
- case 'right':
2687
- acc.x = acc.x + rest;
2688
- break;
2689
-
2690
- case 'up':
2691
- acc.y = acc.y - rest;
2692
- break;
2693
-
2694
- case 'down':
2695
- acc.y = acc.y + rest;
2696
- break;
2697
-
2698
- case 'rotate':
2699
- acc.rotate = acc.rotate + rest;
2700
- break;
16
+ if (e && typeof e === 'object' && 'default' in e) return e;
17
+ var n = Object.create(null);
18
+ if (e) {
19
+ Object.keys(e).forEach(function (k) {
20
+ if (k !== 'default') {
21
+ var d = Object.getOwnPropertyDescriptor(e, k);
22
+ Object.defineProperty(n, k, d.get ? d : {
23
+ enumerable: true,
24
+ get: function () { return e[k]; }
25
+ });
26
+ }
27
+ });
2701
28
  }
2702
-
2703
- return acc;
2704
- }, transform);
2705
- };
2706
- var PowerTransforms = {
2707
- mixout: function mixout() {
2708
- return {
2709
- parse: {
2710
- transform: function transform(transformString) {
2711
- return parseTransformString(transformString);
2712
- }
2713
- }
2714
- };
2715
- },
2716
- hooks: function hooks() {
2717
- return {
2718
- parseNodeAttributes: function parseNodeAttributes(accumulator, node) {
2719
- var transformString = node.getAttribute('data-fa-transform');
2720
-
2721
- if (transformString) {
2722
- accumulator.transform = parseTransformString(transformString);
2723
- }
2724
-
2725
- return accumulator;
2726
- }
2727
- };
2728
- },
2729
- provides: function provides(providers) {
2730
- providers.generateAbstractTransformGrouping = function (_ref) {
2731
- var main = _ref.main,
2732
- transform = _ref.transform,
2733
- containerWidth = _ref.containerWidth,
2734
- iconWidth = _ref.iconWidth;
2735
- var outer = {
2736
- transform: "translate(".concat(containerWidth / 2, " 256)")
2737
- };
2738
- var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
2739
- var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
2740
- var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
2741
- var inner = {
2742
- transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
2743
- };
2744
- var path = {
2745
- transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
2746
- };
2747
- var operations = {
2748
- outer: outer,
2749
- inner: inner,
2750
- path: path
2751
- };
2752
- return {
2753
- tag: 'g',
2754
- attributes: _objectSpread2$1({}, operations.outer),
2755
- children: [{
2756
- tag: 'g',
2757
- attributes: _objectSpread2$1({}, operations.inner),
2758
- children: [{
2759
- tag: main.icon.tag,
2760
- children: main.icon.children,
2761
- attributes: _objectSpread2$1(_objectSpread2$1({}, main.icon.attributes), operations.path)
2762
- }]
2763
- }]
2764
- };
2765
- };
2766
- }
2767
- };
2768
-
2769
- var ALL_SPACE = {
2770
- x: 0,
2771
- y: 0,
2772
- width: '100%',
2773
- height: '100%'
2774
- };
2775
-
2776
- function fillBlack(_abstract) {
2777
- var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
2778
-
2779
- if (_abstract.attributes && (_abstract.attributes.fill || force)) {
2780
- _abstract.attributes.fill = 'black';
2781
- }
2782
-
2783
- return _abstract;
2784
- }
2785
-
2786
- function deGroup(_abstract2) {
2787
- if (_abstract2.tag === 'g') {
2788
- return _abstract2.children;
2789
- } else {
2790
- return [_abstract2];
2791
- }
29
+ n.default = e;
30
+ return Object.freeze(n);
2792
31
  }
2793
32
 
2794
- var Masks = {
2795
- hooks: function hooks() {
2796
- return {
2797
- parseNodeAttributes: function parseNodeAttributes(accumulator, node) {
2798
- var maskData = node.getAttribute('data-fa-mask');
2799
- var mask = !maskData ? emptyCanonicalIcon() : getCanonicalIcon(maskData.split(' ').map(function (i) {
2800
- return i.trim();
2801
- }));
2802
-
2803
- if (!mask.prefix) {
2804
- mask.prefix = getDefaultUsablePrefix();
2805
- }
2806
-
2807
- accumulator.mask = mask;
2808
- accumulator.maskId = node.getAttribute('data-fa-mask-id');
2809
- return accumulator;
2810
- }
2811
- };
2812
- },
2813
- provides: function provides(providers) {
2814
- providers.generateAbstractMask = function (_ref) {
2815
- var children = _ref.children,
2816
- attributes = _ref.attributes,
2817
- main = _ref.main,
2818
- mask = _ref.mask,
2819
- explicitMaskId = _ref.maskId,
2820
- transform = _ref.transform;
2821
- var mainWidth = main.width,
2822
- mainPath = main.icon;
2823
- var maskWidth = mask.width,
2824
- maskPath = mask.icon;
2825
- var trans = transformForSvg({
2826
- transform: transform,
2827
- containerWidth: maskWidth,
2828
- iconWidth: mainWidth
2829
- });
2830
- var maskRect = {
2831
- tag: 'rect',
2832
- attributes: _objectSpread2$1(_objectSpread2$1({}, ALL_SPACE), {}, {
2833
- fill: 'white'
2834
- })
2835
- };
2836
- var maskInnerGroupChildrenMixin = mainPath.children ? {
2837
- children: mainPath.children.map(fillBlack)
2838
- } : {};
2839
- var maskInnerGroup = {
2840
- tag: 'g',
2841
- attributes: _objectSpread2$1({}, trans.inner),
2842
- children: [fillBlack(_objectSpread2$1({
2843
- tag: mainPath.tag,
2844
- attributes: _objectSpread2$1(_objectSpread2$1({}, mainPath.attributes), trans.path)
2845
- }, maskInnerGroupChildrenMixin))]
2846
- };
2847
- var maskOuterGroup = {
2848
- tag: 'g',
2849
- attributes: _objectSpread2$1({}, trans.outer),
2850
- children: [maskInnerGroup]
2851
- };
2852
- var maskId = "mask-".concat(explicitMaskId || nextUniqueId());
2853
- var clipId = "clip-".concat(explicitMaskId || nextUniqueId());
2854
- var maskTag = {
2855
- tag: 'mask',
2856
- attributes: _objectSpread2$1(_objectSpread2$1({}, ALL_SPACE), {}, {
2857
- id: maskId,
2858
- maskUnits: 'userSpaceOnUse',
2859
- maskContentUnits: 'userSpaceOnUse'
2860
- }),
2861
- children: [maskRect, maskOuterGroup]
2862
- };
2863
- var defs = {
2864
- tag: 'defs',
2865
- children: [{
2866
- tag: 'clipPath',
2867
- attributes: {
2868
- id: clipId
2869
- },
2870
- children: deGroup(maskPath)
2871
- }, maskTag]
2872
- };
2873
- children.push(defs, {
2874
- tag: 'rect',
2875
- attributes: _objectSpread2$1({
2876
- fill: 'currentColor',
2877
- 'clip-path': "url(#".concat(clipId, ")"),
2878
- mask: "url(#".concat(maskId, ")")
2879
- }, ALL_SPACE)
2880
- });
2881
- return {
2882
- children: children,
2883
- attributes: attributes
2884
- };
2885
- };
2886
- }
2887
- };
2888
-
2889
- var MissingIconIndicator = {
2890
- provides: function provides(providers) {
2891
- var reduceMotion = false;
2892
-
2893
- if (WINDOW.matchMedia) {
2894
- reduceMotion = WINDOW.matchMedia('(prefers-reduced-motion: reduce)').matches;
2895
- }
2896
-
2897
- providers.missingIconAbstract = function () {
2898
- var gChildren = [];
2899
- var FILL = {
2900
- fill: 'currentColor'
2901
- };
2902
- var ANIMATION_BASE = {
2903
- attributeType: 'XML',
2904
- repeatCount: 'indefinite',
2905
- dur: '2s'
2906
- }; // Ring
2907
-
2908
- gChildren.push({
2909
- tag: 'path',
2910
- attributes: _objectSpread2$1(_objectSpread2$1({}, FILL), {}, {
2911
- 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'
2912
- })
2913
- });
2914
-
2915
- var OPACITY_ANIMATE = _objectSpread2$1(_objectSpread2$1({}, ANIMATION_BASE), {}, {
2916
- attributeName: 'opacity'
2917
- });
2918
-
2919
- var dot = {
2920
- tag: 'circle',
2921
- attributes: _objectSpread2$1(_objectSpread2$1({}, FILL), {}, {
2922
- cx: '256',
2923
- cy: '364',
2924
- r: '28'
2925
- }),
2926
- children: []
2927
- };
2928
-
2929
- if (!reduceMotion) {
2930
- dot.children.push({
2931
- tag: 'animate',
2932
- attributes: _objectSpread2$1(_objectSpread2$1({}, ANIMATION_BASE), {}, {
2933
- attributeName: 'r',
2934
- values: '28;14;28;28;14;28;'
2935
- })
2936
- }, {
2937
- tag: 'animate',
2938
- attributes: _objectSpread2$1(_objectSpread2$1({}, OPACITY_ANIMATE), {}, {
2939
- values: '1;0;1;1;0;1;'
2940
- })
2941
- });
2942
- }
2943
-
2944
- gChildren.push(dot);
2945
- gChildren.push({
2946
- tag: 'path',
2947
- attributes: _objectSpread2$1(_objectSpread2$1({}, FILL), {}, {
2948
- opacity: '1',
2949
- 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'
2950
- }),
2951
- children: reduceMotion ? [] : [{
2952
- tag: 'animate',
2953
- attributes: _objectSpread2$1(_objectSpread2$1({}, OPACITY_ANIMATE), {}, {
2954
- values: '1;0;0;0;0;1;'
2955
- })
2956
- }]
2957
- });
2958
-
2959
- if (!reduceMotion) {
2960
- // Exclamation
2961
- gChildren.push({
2962
- tag: 'path',
2963
- attributes: _objectSpread2$1(_objectSpread2$1({}, FILL), {}, {
2964
- opacity: '0',
2965
- 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'
2966
- }),
2967
- children: [{
2968
- tag: 'animate',
2969
- attributes: _objectSpread2$1(_objectSpread2$1({}, OPACITY_ANIMATE), {}, {
2970
- values: '0;0;1;1;0;0;'
2971
- })
2972
- }]
2973
- });
2974
- }
2975
-
2976
- return {
2977
- tag: 'g',
2978
- attributes: {
2979
- 'class': 'missing'
2980
- },
2981
- children: gChildren
2982
- };
2983
- };
2984
- }
2985
- };
2986
-
2987
- var SvgSymbols = {
2988
- hooks: function hooks() {
2989
- return {
2990
- parseNodeAttributes: function parseNodeAttributes(accumulator, node) {
2991
- var symbolData = node.getAttribute('data-fa-symbol');
2992
- var symbol = symbolData === null ? false : symbolData === '' ? true : symbolData;
2993
- accumulator['symbol'] = symbol;
2994
- return accumulator;
2995
- }
2996
- };
2997
- }
2998
- };
2999
-
3000
- var plugins = [InjectCSS, ReplaceElements, Layers, LayersCounter, LayersText, PseudoElements, MutationObserver$1, PowerTransforms, Masks, MissingIconIndicator, SvgSymbols];
3001
-
3002
- registerPlugins(plugins, {
3003
- mixoutsTo: api
3004
- });
3005
- api.noAuto;
3006
- api.config;
3007
- var library$1 = api.library;
3008
- api.dom;
3009
- var parse$1$1 = api.parse;
3010
- var findIconDefinition$1 = api.findIconDefinition;
3011
- api.toHtml;
3012
- var icon = api.icon;
3013
- api.layer;
3014
- api.text;
3015
- api.counter;
3016
-
3017
- var faPencil = {
3018
- prefix: 'fas',
3019
- iconName: 'pencil',
3020
- icon: [512, 512, [9999, 61504, "pencil-alt"], "f303", "M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]
3021
- };
3022
- var faPencilAlt = faPencil;
3023
- var faCircleNotch = {
3024
- prefix: 'fas',
3025
- iconName: 'circle-notch',
3026
- icon: [512, 512, [], "f1ce", "M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8C121.8 95.6 64 169.1 64 256c0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1c-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256c0 141.4-114.6 256-256 256S0 397.4 0 256C0 140 77.1 42.1 182.9 10.6c16.9-5 34.8 4.6 39.8 21.5z"]
3027
- };
3028
- var faEyeSlash = {
3029
- prefix: 'fas',
3030
- iconName: 'eye-slash',
3031
- icon: [640, 512, [], "f070", "M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"]
3032
- };
3033
- var faCaretUp = {
3034
- prefix: 'fas',
3035
- iconName: 'caret-up',
3036
- icon: [320, 512, [], "f0d8", "M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8H288c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]
3037
- };
3038
- var faArrowRight = {
3039
- prefix: 'fas',
3040
- iconName: 'arrow-right',
3041
- icon: [448, 512, [8594], "f061", "M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]
3042
- };
3043
- var faCircleQuestion = {
3044
- prefix: 'fas',
3045
- iconName: 'circle-question',
3046
- icon: [512, 512, [62108, "question-circle"], "f059", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]
3047
- };
3048
- var faQuestionCircle = faCircleQuestion;
3049
- var faEye = {
3050
- prefix: 'fas',
3051
- iconName: 'eye',
3052
- icon: [576, 512, [128065], "f06e", "M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]
3053
- };
3054
- var faArrowLeft = {
3055
- prefix: 'fas',
3056
- iconName: 'arrow-left',
3057
- icon: [448, 512, [8592], "f060", "M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]
3058
- };
3059
- var faTag = {
3060
- prefix: 'fas',
3061
- iconName: 'tag',
3062
- icon: [448, 512, [127991], "f02b", "M0 80V229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7H48C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]
3063
- };
3064
- var faGear = {
3065
- prefix: 'fas',
3066
- iconName: 'gear',
3067
- icon: [512, 512, [9881, "cog"], "f013", "M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"]
3068
- };
3069
- var faCog = faGear;
3070
- var faCaretDown = {
3071
- prefix: 'fas',
3072
- iconName: 'caret-down',
3073
- icon: [320, 512, [], "f0d7", "M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]
3074
- };
3075
- var faCalculator = {
3076
- prefix: 'fas',
3077
- iconName: 'calculator',
3078
- icon: [384, 512, [128425], "f1ec", "M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64zM96 64H288c17.7 0 32 14.3 32 32v32c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zm32 160a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zM96 352a32 32 0 1 1 0-64 32 32 0 1 1 0 64zM64 416c0-17.7 14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32-14.3-32-32zM192 256a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm32 64a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zm64-64a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm32 64a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zM288 448a32 32 0 1 1 0-64 32 32 0 1 1 0 64z"]
3079
- };
3080
- var faFileArrowDown = {
3081
- prefix: 'fas',
3082
- iconName: 'file-arrow-down',
3083
- icon: [384, 512, ["file-download"], "f56d", "M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM216 232V334.1l31-31c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-72 72c-9.4 9.4-24.6 9.4-33.9 0l-72-72c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l31 31V232c0-13.3 10.7-24 24-24s24 10.7 24 24z"]
3084
- };
3085
- var faFileDownload = faFileArrowDown;
3086
- var faMountainSun = {
3087
- prefix: 'fas',
3088
- iconName: 'mountain-sun',
3089
- icon: [640, 512, [], "e52f", "M560 160A80 80 0 1 0 560 0a80 80 0 1 0 0 160zM55.9 512H381.1h75H578.9c33.8 0 61.1-27.4 61.1-61.1c0-11.2-3.1-22.2-8.9-31.8l-132-216.3C495 196.1 487.8 192 480 192s-15 4.1-19.1 10.7l-48.2 79L286.8 81c-6.6-10.6-18.3-17-30.8-17s-24.1 6.4-30.8 17L8.6 426.4C3 435.3 0 445.6 0 456.1C0 487 25 512 55.9 512z"]
3090
- };
3091
- var faArrowDown = {
3092
- prefix: 'fas',
3093
- iconName: 'arrow-down',
3094
- icon: [384, 512, [8595], "f063", "M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]
3095
- };
3096
- var faMagnifyingGlass = {
3097
- prefix: 'fas',
3098
- iconName: 'magnifying-glass',
3099
- 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"]
3100
- };
3101
- var faSearch = faMagnifyingGlass;
3102
- var faWind = {
3103
- prefix: 'fas',
3104
- iconName: 'wind',
3105
- icon: [512, 512, [], "f72e", "M288 32c0 17.7 14.3 32 32 32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32 14.3-32 32s14.3 32 32 32H352c53 0 96-43 96-96s-43-96-96-96H320c-17.7 0-32 14.3-32 32zm64 352c0 17.7 14.3 32 32 32h32c53 0 96-43 96-96s-43-96-96-96H32c-17.7 0-32 14.3-32 32s14.3 32 32 32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H384c-17.7 0-32 14.3-32 32zM128 512h32c53 0 96-43 96-96s-43-96-96-96H32c-17.7 0-32 14.3-32 32s14.3 32 32 32H160c17.7 0 32 14.3 32 32s-14.3 32-32 32H128c-17.7 0-32 14.3-32 32s14.3 32 32 32z"]
3106
- };
3107
- var faCopy = {
3108
- prefix: 'fas',
3109
- iconName: 'copy',
3110
- icon: [448, 512, [], "f0c5", "M208 0H332.1c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9V336c0 26.5-21.5 48-48 48H208c-26.5 0-48-21.5-48-48V48c0-26.5 21.5-48 48-48zM48 128h80v64H64V448H256V416h64v48c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48z"]
3111
- };
3112
- var faRocket = {
3113
- prefix: 'fas',
3114
- iconName: 'rocket',
3115
- icon: [512, 512, [], "f135", "M156.6 384.9L125.7 354c-8.5-8.5-11.5-20.8-7.7-32.2c3-8.9 7-20.5 11.8-33.8L24 288c-8.6 0-16.6-4.6-20.9-12.1s-4.2-16.7 .2-24.1l52.5-88.5c13-21.9 36.5-35.3 61.9-35.3l82.3 0c2.4-4 4.8-7.7 7.2-11.3C289.1-4.1 411.1-8.1 483.9 5.3c11.6 2.1 20.6 11.2 22.8 22.8c13.4 72.9 9.3 194.8-111.4 276.7c-3.5 2.4-7.3 4.8-11.3 7.2v82.3c0 25.4-13.4 49-35.3 61.9l-88.5 52.5c-7.4 4.4-16.6 4.5-24.1 .2s-12.1-12.2-12.1-20.9V380.8c-14.1 4.9-26.4 8.9-35.7 11.9c-11.2 3.6-23.4 .5-31.8-7.8zM384 168a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]
3116
- };
3117
- var faCheck = {
3118
- prefix: 'fas',
3119
- iconName: 'check',
3120
- icon: [448, 512, [10003, 10004], "f00c", "M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]
3121
- };
33
+ var React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
34
+ var ReactDOM__namespace = /*#__PURE__*/_interopNamespaceCompat(ReactDOM);
35
+ var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
36
+ var ReactSelect__default = /*#__PURE__*/_interopDefaultCompat(ReactSelect);
3122
37
 
3123
38
  // Utility for registering FontAwesome icons
3124
39
  const registerFontAwesomeIcons = (...icons) => {
3125
- library$1.add(...icons);
40
+ fontawesomeSvgCore.library.add(...icons);
3126
41
  };
3127
42
  // Register the icons used directly in design system components
3128
- registerFontAwesomeIcons(faArrowDown, faArrowRight, faArrowLeft, faCalculator, faCheck, faCircleNotch, faMountainSun, faRocket, faWind, faEyeSlash, faEye, faCaretUp, faCaretDown, faTag, faPencilAlt, faSearch, faCog, faFileDownload, faQuestionCircle, faCopy);
43
+ registerFontAwesomeIcons(freeSolidSvgIcons.faArrowDown, freeSolidSvgIcons.faArrowRight, freeSolidSvgIcons.faArrowLeft, freeSolidSvgIcons.faCalculator, freeSolidSvgIcons.faCheck, freeSolidSvgIcons.faCircleNotch, freeSolidSvgIcons.faMountainSun, freeSolidSvgIcons.faRocket, freeSolidSvgIcons.faWind, freeSolidSvgIcons.faEyeSlash, freeSolidSvgIcons.faEye, freeSolidSvgIcons.faCaretUp, freeSolidSvgIcons.faCaretDown, freeSolidSvgIcons.faTag, freeSolidSvgIcons.faPencilAlt, freeSolidSvgIcons.faSearch, freeSolidSvgIcons.faCog, freeSolidSvgIcons.faFileDownload, freeSolidSvgIcons.faQuestionCircle, freeSolidSvgIcons.faCopy);
3129
44
 
3130
45
  /**
3131
46
  * Custom positioning reference element.
@@ -7450,7 +4365,6 @@ if (process.env.NODE_ENV !== 'production') {
7450
4365
  }
7451
4366
 
7452
4367
  var propTypesExports = propTypes.exports;
7453
- var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
7454
4368
 
7455
4369
  var style$6 = {};
7456
4370
 
@@ -8649,431 +5563,6 @@ const Button$2 = React.forwardRef((props, ref) => {
8649
5563
  return (jsxRuntime.jsxs("button", Object.assign({ ref: ref, disabled: isLoading || isDisabled, className: buttonClasses, role: "button", onClick: handleOnClick, "aria-label": ariaLabel || 'button', "aria-disabled": isLoading || isDisabled, "aria-busy": isLoading, type: type, onMouseEnter: onMouseEnter, onMouseLeave: onMouseExit, onKeyDown: onKeyDown }, rest, { children: [isLoading && (jsxRuntime.jsx(Icon, { name: "fa-circle-notch", style: { animation: 'spin 1s linear infinite' }, className: "mr-2", ariaLabel: "Loading...", size: size })), !children && iconName && jsxRuntime.jsx(Icon, { name: iconName, ariaLabel: `${iconName} Icon`, size: size }), children && iconPosition === 'left' && iconName && (jsxRuntime.jsx(Icon, { name: iconName, className: "mr-2", ariaLabel: `${iconName} Icon`, size: size })), children, children && iconPosition === 'right' && iconName && (jsxRuntime.jsx(Icon, { name: iconName, className: "ml-2", ariaLabel: `${iconName} Icon`, size: size }))] })));
8650
5564
  });
8651
5565
 
8652
- function ownKeys(object, enumerableOnly) {
8653
- var keys = Object.keys(object);
8654
-
8655
- if (Object.getOwnPropertySymbols) {
8656
- var symbols = Object.getOwnPropertySymbols(object);
8657
- enumerableOnly && (symbols = symbols.filter(function (sym) {
8658
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
8659
- })), keys.push.apply(keys, symbols);
8660
- }
8661
-
8662
- return keys;
8663
- }
8664
-
8665
- function _objectSpread2(target) {
8666
- for (var i = 1; i < arguments.length; i++) {
8667
- var source = null != arguments[i] ? arguments[i] : {};
8668
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
8669
- _defineProperty(target, key, source[key]);
8670
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
8671
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8672
- });
8673
- }
8674
-
8675
- return target;
8676
- }
8677
-
8678
- function _typeof(obj) {
8679
- "@babel/helpers - typeof";
8680
-
8681
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8682
- return typeof obj;
8683
- } : function (obj) {
8684
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
8685
- }, _typeof(obj);
8686
- }
8687
-
8688
- function _defineProperty(obj, key, value) {
8689
- if (key in obj) {
8690
- Object.defineProperty(obj, key, {
8691
- value: value,
8692
- enumerable: true,
8693
- configurable: true,
8694
- writable: true
8695
- });
8696
- } else {
8697
- obj[key] = value;
8698
- }
8699
-
8700
- return obj;
8701
- }
8702
-
8703
- function _objectWithoutPropertiesLoose(source, excluded) {
8704
- if (source == null) return {};
8705
- var target = {};
8706
- var sourceKeys = Object.keys(source);
8707
- var key, i;
8708
-
8709
- for (i = 0; i < sourceKeys.length; i++) {
8710
- key = sourceKeys[i];
8711
- if (excluded.indexOf(key) >= 0) continue;
8712
- target[key] = source[key];
8713
- }
8714
-
8715
- return target;
8716
- }
8717
-
8718
- function _objectWithoutProperties(source, excluded) {
8719
- if (source == null) return {};
8720
-
8721
- var target = _objectWithoutPropertiesLoose(source, excluded);
8722
-
8723
- var key, i;
8724
-
8725
- if (Object.getOwnPropertySymbols) {
8726
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
8727
-
8728
- for (i = 0; i < sourceSymbolKeys.length; i++) {
8729
- key = sourceSymbolKeys[i];
8730
- if (excluded.indexOf(key) >= 0) continue;
8731
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
8732
- target[key] = source[key];
8733
- }
8734
- }
8735
-
8736
- return target;
8737
- }
8738
-
8739
- function _toConsumableArray(arr) {
8740
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
8741
- }
8742
-
8743
- function _arrayWithoutHoles(arr) {
8744
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
8745
- }
8746
-
8747
- function _iterableToArray(iter) {
8748
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
8749
- }
8750
-
8751
- function _unsupportedIterableToArray(o, minLen) {
8752
- if (!o) return;
8753
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
8754
- var n = Object.prototype.toString.call(o).slice(8, -1);
8755
- if (n === "Object" && o.constructor) n = o.constructor.name;
8756
- if (n === "Map" || n === "Set") return Array.from(o);
8757
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
8758
- }
8759
-
8760
- function _arrayLikeToArray(arr, len) {
8761
- if (len == null || len > arr.length) len = arr.length;
8762
-
8763
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
8764
-
8765
- return arr2;
8766
- }
8767
-
8768
- function _nonIterableSpread() {
8769
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8770
- }
8771
-
8772
- // Get CSS class list from a props object
8773
- function classList$1(props) {
8774
- var _classes;
8775
-
8776
- var beat = props.beat,
8777
- fade = props.fade,
8778
- beatFade = props.beatFade,
8779
- bounce = props.bounce,
8780
- shake = props.shake,
8781
- flash = props.flash,
8782
- spin = props.spin,
8783
- spinPulse = props.spinPulse,
8784
- spinReverse = props.spinReverse,
8785
- pulse = props.pulse,
8786
- fixedWidth = props.fixedWidth,
8787
- inverse = props.inverse,
8788
- border = props.border,
8789
- listItem = props.listItem,
8790
- flip = props.flip,
8791
- size = props.size,
8792
- rotation = props.rotation,
8793
- pull = props.pull; // map of CSS class names to properties
8794
-
8795
- var classes = (_classes = {
8796
- 'fa-beat': beat,
8797
- 'fa-fade': fade,
8798
- 'fa-beat-fade': beatFade,
8799
- 'fa-bounce': bounce,
8800
- 'fa-shake': shake,
8801
- 'fa-flash': flash,
8802
- 'fa-spin': spin,
8803
- 'fa-spin-reverse': spinReverse,
8804
- 'fa-spin-pulse': spinPulse,
8805
- 'fa-pulse': pulse,
8806
- 'fa-fw': fixedWidth,
8807
- 'fa-inverse': inverse,
8808
- 'fa-border': border,
8809
- 'fa-li': listItem,
8810
- 'fa-flip': flip === true,
8811
- 'fa-flip-horizontal': flip === 'horizontal' || flip === 'both',
8812
- 'fa-flip-vertical': flip === 'vertical' || flip === 'both'
8813
- }, _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
8814
- // return an array of the keys where the value for the key is not null
8815
-
8816
- return Object.keys(classes).map(function (key) {
8817
- return classes[key] ? key : null;
8818
- }).filter(function (key) {
8819
- return key;
8820
- });
8821
- }
8822
-
8823
- // Camelize taken from humps
8824
- // humps is copyright © 2012+ Dom Christie
8825
- // Released under the MIT license.
8826
- // Performant way to determine if object coerces to a number
8827
- function _isNumerical(obj) {
8828
- obj = obj - 0; // eslint-disable-next-line no-self-compare
8829
-
8830
- return obj === obj;
8831
- }
8832
-
8833
- function camelize(string) {
8834
- if (_isNumerical(string)) {
8835
- return string;
8836
- } // eslint-disable-next-line no-useless-escape
8837
-
8838
-
8839
- string = string.replace(/[\-_\s]+(.)?/g, function (match, chr) {
8840
- return chr ? chr.toUpperCase() : '';
8841
- }); // Ensure 1st char is always lowercase
8842
-
8843
- return string.substr(0, 1).toLowerCase() + string.substr(1);
8844
- }
8845
-
8846
- var _excluded = ["style"];
8847
-
8848
- function capitalize$1(val) {
8849
- return val.charAt(0).toUpperCase() + val.slice(1);
8850
- }
8851
-
8852
- function styleToObject(style) {
8853
- return style.split(';').map(function (s) {
8854
- return s.trim();
8855
- }).filter(function (s) {
8856
- return s;
8857
- }).reduce(function (acc, pair) {
8858
- var i = pair.indexOf(':');
8859
- var prop = camelize(pair.slice(0, i));
8860
- var value = pair.slice(i + 1).trim();
8861
- prop.startsWith('webkit') ? acc[capitalize$1(prop)] = value : acc[prop] = value;
8862
- return acc;
8863
- }, {});
8864
- }
8865
-
8866
- function convert(createElement, element) {
8867
- var extraProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
8868
-
8869
- if (typeof element === 'string') {
8870
- return element;
8871
- }
8872
-
8873
- var children = (element.children || []).map(function (child) {
8874
- return convert(createElement, child);
8875
- });
8876
- /* eslint-disable dot-notation */
8877
-
8878
- var mixins = Object.keys(element.attributes || {}).reduce(function (acc, key) {
8879
- var val = element.attributes[key];
8880
-
8881
- switch (key) {
8882
- case 'class':
8883
- acc.attrs['className'] = val;
8884
- delete element.attributes['class'];
8885
- break;
8886
-
8887
- case 'style':
8888
- acc.attrs['style'] = styleToObject(val);
8889
- break;
8890
-
8891
- default:
8892
- if (key.indexOf('aria-') === 0 || key.indexOf('data-') === 0) {
8893
- acc.attrs[key.toLowerCase()] = val;
8894
- } else {
8895
- acc.attrs[camelize(key)] = val;
8896
- }
8897
-
8898
- }
8899
-
8900
- return acc;
8901
- }, {
8902
- attrs: {}
8903
- });
8904
-
8905
- var _extraProps$style = extraProps.style,
8906
- existingStyle = _extraProps$style === void 0 ? {} : _extraProps$style,
8907
- remaining = _objectWithoutProperties(extraProps, _excluded);
8908
-
8909
- mixins.attrs['style'] = _objectSpread2(_objectSpread2({}, mixins.attrs['style']), existingStyle);
8910
- /* eslint-enable */
8911
-
8912
- return createElement.apply(void 0, [element.tag, _objectSpread2(_objectSpread2({}, mixins.attrs), remaining)].concat(_toConsumableArray(children)));
8913
- }
8914
-
8915
- var PRODUCTION = false;
8916
-
8917
- try {
8918
- PRODUCTION = process.env.NODE_ENV === 'production';
8919
- } catch (e) {}
8920
-
8921
- function log$5 () {
8922
- if (!PRODUCTION && console && typeof console.error === 'function') {
8923
- var _console;
8924
-
8925
- (_console = console).error.apply(_console, arguments);
8926
- }
8927
- }
8928
-
8929
- function normalizeIconArgs(icon) {
8930
- // this has everything that it needs to be rendered which means it was probably imported
8931
- // directly from an icon svg package
8932
- if (icon && _typeof(icon) === 'object' && icon.prefix && icon.iconName && icon.icon) {
8933
- return icon;
8934
- }
8935
-
8936
- if (parse$1$1.icon) {
8937
- return parse$1$1.icon(icon);
8938
- } // if the icon is null, there's nothing to do
8939
-
8940
-
8941
- if (icon === null) {
8942
- return null;
8943
- } // if the icon is an object and has a prefix and an icon name, return it
8944
-
8945
-
8946
- if (icon && _typeof(icon) === 'object' && icon.prefix && icon.iconName) {
8947
- return icon;
8948
- } // if it's an array with length of two
8949
-
8950
-
8951
- if (Array.isArray(icon) && icon.length === 2) {
8952
- // use the first item as prefix, second as icon name
8953
- return {
8954
- prefix: icon[0],
8955
- iconName: icon[1]
8956
- };
8957
- } // if it's a string, use it as the icon name
8958
-
8959
-
8960
- if (typeof icon === 'string') {
8961
- return {
8962
- prefix: 'fas',
8963
- iconName: icon
8964
- };
8965
- }
8966
- }
8967
-
8968
- // creates an object with a key of key
8969
- // and a value of value
8970
- // if certain conditions are met
8971
- function objectWithKey(key, value) {
8972
- // if the value is a non-empty array
8973
- // or it's not an array but it is truthy
8974
- // then create the object with the key and the value
8975
- // if not, return an empty array
8976
- return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? _defineProperty({}, key, value) : {};
8977
- }
8978
-
8979
- var defaultProps = {
8980
- border: false,
8981
- className: '',
8982
- mask: null,
8983
- maskId: null,
8984
- fixedWidth: false,
8985
- inverse: false,
8986
- flip: false,
8987
- icon: null,
8988
- listItem: false,
8989
- pull: null,
8990
- pulse: false,
8991
- rotation: null,
8992
- size: null,
8993
- spin: false,
8994
- spinPulse: false,
8995
- spinReverse: false,
8996
- beat: false,
8997
- fade: false,
8998
- beatFade: false,
8999
- bounce: false,
9000
- shake: false,
9001
- symbol: false,
9002
- title: '',
9003
- titleId: null,
9004
- transform: null,
9005
- swapOpacity: false
9006
- };
9007
- var FontAwesomeIcon = /*#__PURE__*/React__namespace.default.forwardRef(function (props, ref) {
9008
- var allProps = _objectSpread2(_objectSpread2({}, defaultProps), props);
9009
-
9010
- var iconArgs = allProps.icon,
9011
- maskArgs = allProps.mask,
9012
- symbol = allProps.symbol,
9013
- className = allProps.className,
9014
- title = allProps.title,
9015
- titleId = allProps.titleId,
9016
- maskId = allProps.maskId;
9017
- var iconLookup = normalizeIconArgs(iconArgs);
9018
- var classes = objectWithKey('classes', [].concat(_toConsumableArray(classList$1(allProps)), _toConsumableArray((className || '').split(' '))));
9019
- var transform = objectWithKey('transform', typeof allProps.transform === 'string' ? parse$1$1.transform(allProps.transform) : allProps.transform);
9020
- var mask = objectWithKey('mask', normalizeIconArgs(maskArgs));
9021
- var renderedIcon = icon(iconLookup, _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, classes), transform), mask), {}, {
9022
- symbol: symbol,
9023
- title: title,
9024
- titleId: titleId,
9025
- maskId: maskId
9026
- }));
9027
-
9028
- if (!renderedIcon) {
9029
- log$5('Could not find icon', iconLookup);
9030
- return null;
9031
- }
9032
-
9033
- var abstract = renderedIcon.abstract;
9034
- var extraProps = {
9035
- ref: ref
9036
- };
9037
- Object.keys(allProps).forEach(function (key) {
9038
- // eslint-disable-next-line no-prototype-builtins
9039
- if (!defaultProps.hasOwnProperty(key)) {
9040
- extraProps[key] = allProps[key];
9041
- }
9042
- });
9043
- return convertCurry(abstract[0], extraProps);
9044
- });
9045
- FontAwesomeIcon.displayName = 'FontAwesomeIcon';
9046
- FontAwesomeIcon.propTypes = {
9047
- beat: PropTypes.bool,
9048
- border: PropTypes.bool,
9049
- beatFade: PropTypes.bool,
9050
- bounce: PropTypes.bool,
9051
- className: PropTypes.string,
9052
- fade: PropTypes.bool,
9053
- flash: PropTypes.bool,
9054
- mask: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.string]),
9055
- maskId: PropTypes.string,
9056
- fixedWidth: PropTypes.bool,
9057
- inverse: PropTypes.bool,
9058
- flip: PropTypes.oneOf([true, false, 'horizontal', 'vertical', 'both']),
9059
- icon: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.string]),
9060
- listItem: PropTypes.bool,
9061
- pull: PropTypes.oneOf(['right', 'left']),
9062
- pulse: PropTypes.bool,
9063
- rotation: PropTypes.oneOf([0, 90, 180, 270]),
9064
- shake: PropTypes.bool,
9065
- size: PropTypes.oneOf(['2xs', 'xs', 'sm', 'lg', 'xl', '2xl', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']),
9066
- spin: PropTypes.bool,
9067
- spinPulse: PropTypes.bool,
9068
- spinReverse: PropTypes.bool,
9069
- symbol: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
9070
- title: PropTypes.string,
9071
- titleId: PropTypes.string,
9072
- transform: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
9073
- swapOpacity: PropTypes.bool
9074
- };
9075
- var convertCurry = convert.bind(null, React__namespace.default.createElement);
9076
-
9077
5566
  const indicons = {
9078
5567
  'indico-o-white': (jsxRuntime.jsx("svg", { viewBox: "0 0 100 100", fill: "currentColor", children: jsxRuntime.jsx("path", { d: "M100 50c0 27.6-22.4 50-50 50S0 77.6 0 50 22.4 0 50 0s50 22.4 50 50zM50 19.4c-16.9 0-30.6 13.7-30.6 30.6S33.1 80.6 50 80.6 80.6 66.9 80.6 50 66.9 19.4 50 19.4zm0 21.7c-4.9 0-8.9 4-8.9 8.9s4 8.9 8.9 8.9 8.9-4 8.9-8.9-4-8.9-8.9-8.9z" }) })),
9079
5568
  account: (jsxRuntime.jsx("svg", { viewBox: "0 0 100 100", fill: "currentColor", children: jsxRuntime.jsx("path", { d: "M50 0C22.4 0 0 22.4 0 50s22.4 50 50 50 50-22.4 50-50S77.6 0 50 0zm0 8c23.2 0 42 18.8 42 42 0 9.9-3.4 19-9.2 26.2C75.6 65.8 63.6 59 50 59s-25.6 6.8-32.8 17.2C11.4 69 8 59.9 8 50 8 26.8 26.8 8 50 8zM22.9 82c5.7-9 15.7-15 27.1-15s21.4 6 27.1 15C69.8 88.2 60.3 92 50 92s-19.8-3.8-27.1-10zM50 56c11.6 0 21-9.4 21-21s-9.4-21-21-21-21 9.4-21 21 9.4 21 21 21zm0-34c7.2 0 13 5.8 13 13s-5.8 13-13 13-13-5.8-13-13 5.8-13 13-13z" }) })),
@@ -9237,15 +5726,15 @@ const Icon = (_a) => {
9237
5726
  const customIcon = indicons[name];
9238
5727
  const faIconName = name.split('fa-')[1];
9239
5728
  const faIcon = faIconName &&
9240
- findIconDefinition$1({
5729
+ fontawesomeSvgCore.findIconDefinition({
9241
5730
  prefix: 'fas',
9242
5731
  iconName: faIconName,
9243
5732
  });
9244
5733
  if (!faIcon && !customIcon) {
9245
- console.error(`Icon '${name}' not found`);
5734
+ console.error(`Icon '${name}' not found. Did you remember to register it? See the [Permafrost Icon Documentation](https://ds.indico-dev.indico.io/iframe.html?viewMode=docs&id=components-icon--icon#font-awesome-icons) for more.`);
9246
5735
  return null;
9247
5736
  }
9248
- return faIcon ? (jsxRuntime.jsx(FontAwesomeIcon, Object.assign({ icon: faIcon, className: iconClasses, "aria-label": label }, props))) : (React.cloneElement(customIcon, Object.assign({ className: iconClasses, 'aria-label': label }, props)));
5737
+ return faIcon ? (jsxRuntime.jsx(reactFontawesome.FontAwesomeIcon, Object.assign({ icon: faIcon, className: iconClasses, "aria-label": label }, props))) : (React.cloneElement(customIcon, Object.assign({ className: iconClasses, 'aria-label': label }, props)));
9249
5738
  };
9250
5739
 
9251
5740
  var l;function r$1(e,t){return e[t]}function i(e=[],t,n=0){return [...e.slice(0,n),t,...e.slice(n)]}function s(e=[],t,n="id"){const o=e.slice(),a=r$1(t,n);return a?o.splice(o.findIndex((e=>r$1(e,n)===a)),1):o.splice(o.findIndex((e=>e===t)),1),o}function d(e){return e.map(((e,t)=>{const n=Object.assign(Object.assign({},e),{sortable:e.sortable||!!e.sortFunction||void 0});return e.id||(n.id=t+1),n}))}function c(e,t){return Math.ceil(e/t)}function g(e,t){return Math.min(e,t)}!function(e){e.ASC="asc",e.DESC="desc";}(l||(l={}));const u=()=>null;function p(e,t=[],n=[]){let o={},a=[...n];return t.length&&t.forEach((t=>{if(!t.when||"function"!=typeof t.when)throw new Error('"when" must be defined in the conditional style object and must be function');t.when(e)&&(o=t.style||{},t.classNames&&(a=[...a,...t.classNames]),"function"==typeof t.style&&(o=t.style(e)||{}));})),{conditionalStyle:o,classNames:a.join(" ")}}function b$1(e,t=[],n="id"){const o=r$1(e,n);return o?t.some((e=>r$1(e,n)===o)):t.some((t=>t===e))}function m(e,t){return t?e.findIndex((e=>h$1(e.id,t))):-1}function h$1(e,t){return e==t}function w$1(e,t){const n=!e.toggleOnSelectedRowsChange;switch(t.type){case"SELECT_ALL_ROWS":{const{keyField:n,rows:o,rowCount:a,mergeSelections:l}=t,r=!e.allSelected,i=!e.toggleOnSelectedRowsChange;if(l){const t=r?[...e.selectedRows,...o.filter((t=>!b$1(t,e.selectedRows,n)))]:e.selectedRows.filter((e=>!b$1(e,o,n)));return Object.assign(Object.assign({},e),{allSelected:r,selectedCount:t.length,selectedRows:t,toggleOnSelectedRowsChange:i})}return Object.assign(Object.assign({},e),{allSelected:r,selectedCount:r?a:0,selectedRows:r?o:[],toggleOnSelectedRowsChange:i})}case"SELECT_SINGLE_ROW":{const{keyField:o,row:a,isSelected:l,rowCount:r,singleSelect:d}=t;return d?l?Object.assign(Object.assign({},e),{selectedCount:0,allSelected:!1,selectedRows:[],toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},e),{selectedCount:1,allSelected:!1,selectedRows:[a],toggleOnSelectedRowsChange:n}):l?Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length>0?e.selectedRows.length-1:0,allSelected:!1,selectedRows:s(e.selectedRows,a,o),toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length+1,allSelected:e.selectedRows.length+1===r,selectedRows:i(e.selectedRows,a),toggleOnSelectedRowsChange:n})}case"SELECT_MULTIPLE_ROWS":{const{keyField:o,selectedRows:a,totalRows:l,mergeSelections:r}=t;if(r){const t=[...e.selectedRows,...a.filter((t=>!b$1(t,e.selectedRows,o)))];return Object.assign(Object.assign({},e),{selectedCount:t.length,allSelected:!1,selectedRows:t,toggleOnSelectedRowsChange:n})}return Object.assign(Object.assign({},e),{selectedCount:a.length,allSelected:a.length===l,selectedRows:a,toggleOnSelectedRowsChange:n})}case"CLEAR_SELECTED_ROWS":{const{selectedRowsFlag:n}=t;return Object.assign(Object.assign({},e),{allSelected:!1,selectedCount:0,selectedRows:[],selectedRowsFlag:n})}case"SORT_CHANGE":{const{sortDirection:o,selectedColumn:a,clearSelectedOnSort:l}=t;return Object.assign(Object.assign(Object.assign({},e),{selectedColumn:a,sortDirection:o,currentPage:1}),l&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_PAGE":{const{page:o,paginationServer:a,visibleOnly:l,persistSelectedOnPageChange:r}=t,i=a&&r,s=a&&!r||l;return Object.assign(Object.assign(Object.assign(Object.assign({},e),{currentPage:o}),i&&{allSelected:!1}),s&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_ROWS_PER_PAGE":{const{rowsPerPage:n,page:o}=t;return Object.assign(Object.assign({},e),{currentPage:o,rowsPerPage:n})}}}const f=styled.css`
@@ -11911,33 +8400,33 @@ function YearsDropdown(props) {
11911
8400
  }
11912
8401
 
11913
8402
  var components = /*#__PURE__*/Object.freeze({
11914
- __proto__: null,
11915
- Button: Button$1,
11916
- CaptionLabel: CaptionLabel,
11917
- Chevron: Chevron,
11918
- Day: Day,
11919
- DayButton: DayButton,
11920
- Dropdown: Dropdown,
11921
- DropdownNav: DropdownNav,
11922
- Footer: Footer,
11923
- Month: Month,
11924
- MonthCaption: MonthCaption,
11925
- MonthGrid: MonthGrid,
11926
- Months: Months,
11927
- MonthsDropdown: MonthsDropdown,
11928
- Nav: Nav,
11929
- NextMonthButton: NextMonthButton,
11930
- Option: Option,
11931
- PreviousMonthButton: PreviousMonthButton,
11932
- Root: Root,
11933
- Select: Select$1,
11934
- Week: Week,
11935
- WeekNumber: WeekNumber,
11936
- WeekNumberHeader: WeekNumberHeader,
11937
- Weekday: Weekday,
11938
- Weekdays: Weekdays,
11939
- Weeks: Weeks,
11940
- YearsDropdown: YearsDropdown
8403
+ __proto__: null,
8404
+ Button: Button$1,
8405
+ CaptionLabel: CaptionLabel,
8406
+ Chevron: Chevron,
8407
+ Day: Day,
8408
+ DayButton: DayButton,
8409
+ Dropdown: Dropdown,
8410
+ DropdownNav: DropdownNav,
8411
+ Footer: Footer,
8412
+ Month: Month,
8413
+ MonthCaption: MonthCaption,
8414
+ MonthGrid: MonthGrid,
8415
+ Months: Months,
8416
+ MonthsDropdown: MonthsDropdown,
8417
+ Nav: Nav,
8418
+ NextMonthButton: NextMonthButton,
8419
+ Option: Option,
8420
+ PreviousMonthButton: PreviousMonthButton,
8421
+ Root: Root,
8422
+ Select: Select$1,
8423
+ Week: Week,
8424
+ WeekNumber: WeekNumber,
8425
+ WeekNumberHeader: WeekNumberHeader,
8426
+ Weekday: Weekday,
8427
+ Weekdays: Weekdays,
8428
+ Weeks: Weeks,
8429
+ YearsDropdown: YearsDropdown
11941
8430
  });
11942
8431
 
11943
8432
  function getComponents(customComponents) {
@@ -15996,16 +12485,16 @@ function formatYearDropdown(year) {
15996
12485
  const formatYearCaption = formatYearDropdown;
15997
12486
 
15998
12487
  var defaultFormatters = /*#__PURE__*/Object.freeze({
15999
- __proto__: null,
16000
- formatCaption: formatCaption,
16001
- formatDay: formatDay,
16002
- formatMonthCaption: formatMonthCaption,
16003
- formatMonthDropdown: formatMonthDropdown,
16004
- formatWeekNumber: formatWeekNumber,
16005
- formatWeekNumberHeader: formatWeekNumberHeader,
16006
- formatWeekdayName: formatWeekdayName,
16007
- formatYearCaption: formatYearCaption,
16008
- formatYearDropdown: formatYearDropdown
12488
+ __proto__: null,
12489
+ formatCaption: formatCaption,
12490
+ formatDay: formatDay,
12491
+ formatMonthCaption: formatMonthCaption,
12492
+ formatMonthDropdown: formatMonthDropdown,
12493
+ formatWeekNumber: formatWeekNumber,
12494
+ formatWeekNumberHeader: formatWeekNumberHeader,
12495
+ formatWeekdayName: formatWeekdayName,
12496
+ formatYearCaption: formatYearCaption,
12497
+ formatYearDropdown: formatYearDropdown
16009
12498
  });
16010
12499
 
16011
12500
  /** Return the formatters from the props merged with the default formatters. */
@@ -16282,20 +12771,20 @@ function labelYearDropdown(options) {
16282
12771
  }
16283
12772
 
16284
12773
  var defaultLabels = /*#__PURE__*/Object.freeze({
16285
- __proto__: null,
16286
- labelCaption: labelCaption,
16287
- labelDay: labelDay,
16288
- labelDayButton: labelDayButton,
16289
- labelGrid: labelGrid,
16290
- labelGridcell: labelGridcell,
16291
- labelMonthDropdown: labelMonthDropdown,
16292
- labelNav: labelNav,
16293
- labelNext: labelNext,
16294
- labelPrevious: labelPrevious,
16295
- labelWeekNumber: labelWeekNumber,
16296
- labelWeekNumberHeader: labelWeekNumberHeader,
16297
- labelWeekday: labelWeekday,
16298
- labelYearDropdown: labelYearDropdown
12774
+ __proto__: null,
12775
+ labelCaption: labelCaption,
12776
+ labelDay: labelDay,
12777
+ labelDayButton: labelDayButton,
12778
+ labelGrid: labelGrid,
12779
+ labelGridcell: labelGridcell,
12780
+ labelMonthDropdown: labelMonthDropdown,
12781
+ labelNav: labelNav,
12782
+ labelNext: labelNext,
12783
+ labelPrevious: labelPrevious,
12784
+ labelWeekNumber: labelWeekNumber,
12785
+ labelWeekNumberHeader: labelWeekNumberHeader,
12786
+ labelWeekday: labelWeekday,
12787
+ labelYearDropdown: labelYearDropdown
16299
12788
  });
16300
12789
 
16301
12790
  /** The number of days in a month when having 6 weeks. */
@@ -23660,12 +20149,12 @@ function hexToHsl(hexColor) {
23660
20149
  }
23661
20150
 
23662
20151
  var color = /*#__PURE__*/Object.freeze({
23663
- __proto__: null,
23664
- hexToHsl: hexToHsl,
23665
- hexToRgb: hexToRgb,
23666
- mix: mix,
23667
- shade: shade,
23668
- tint: tint
20152
+ __proto__: null,
20153
+ hexToHsl: hexToHsl,
20154
+ hexToRgb: hexToRgb,
20155
+ mix: mix,
20156
+ shade: shade,
20157
+ tint: tint
23669
20158
  });
23670
20159
 
23671
20160
  const camelCaseToUpperUnderscore = (string) => {
@@ -23743,16 +20232,16 @@ const maxLengthWithMiddleEllipsis = (string, maxLength) => {
23743
20232
  };
23744
20233
 
23745
20234
  var string = /*#__PURE__*/Object.freeze({
23746
- __proto__: null,
23747
- camelCaseToSpaceUpper: camelCaseToSpaceUpper,
23748
- camelCaseToUpperUnderscore: camelCaseToUpperUnderscore,
23749
- capitalize: capitalize,
23750
- capitalizeFirstOnly: capitalizeFirstOnly,
23751
- createRandomString: createRandomString,
23752
- maxLengthWithEllipse: maxLengthWithEllipse,
23753
- maxLengthWithMiddleEllipsis: maxLengthWithMiddleEllipsis,
23754
- snakeCaseToCamelCase: snakeCaseToCamelCase,
23755
- underscoreToCapitalize: underscoreToCapitalize
20235
+ __proto__: null,
20236
+ camelCaseToSpaceUpper: camelCaseToSpaceUpper,
20237
+ camelCaseToUpperUnderscore: camelCaseToUpperUnderscore,
20238
+ capitalize: capitalize,
20239
+ capitalizeFirstOnly: capitalizeFirstOnly,
20240
+ createRandomString: createRandomString,
20241
+ maxLengthWithEllipse: maxLengthWithEllipse,
20242
+ maxLengthWithMiddleEllipsis: maxLengthWithMiddleEllipsis,
20243
+ snakeCaseToCamelCase: snakeCaseToCamelCase,
20244
+ underscoreToCapitalize: underscoreToCapitalize
23756
20245
  });
23757
20246
 
23758
20247
  /**
@@ -23784,10 +20273,10 @@ function formatConfidence(confidence) {
23784
20273
  }
23785
20274
 
23786
20275
  var number = /*#__PURE__*/Object.freeze({
23787
- __proto__: null,
23788
- formatConfidence: formatConfidence,
23789
- maxDecimalPlaces: maxDecimalPlaces,
23790
- numberWithCommas: numberWithCommas
20276
+ __proto__: null,
20277
+ formatConfidence: formatConfidence,
20278
+ maxDecimalPlaces: maxDecimalPlaces,
20279
+ numberWithCommas: numberWithCommas
23791
20280
  });
23792
20281
 
23793
20282
  const cardTableLoading = styled.keyframes `
@@ -30251,8 +26740,8 @@ function polyfill(Component) {
30251
26740
  }
30252
26741
 
30253
26742
  var reactLifecyclesCompat_es = /*#__PURE__*/Object.freeze({
30254
- __proto__: null,
30255
- polyfill: polyfill
26743
+ __proto__: null,
26744
+ polyfill: polyfill
30256
26745
  });
30257
26746
 
30258
26747
  var require$$6 = /*@__PURE__*/getAugmentedNamespace(reactLifecyclesCompat_es);