Debian Codegraph @

js-packages/@fortawesome/fontawesome-svg-core/index.js

raw symbols SCIP
1 /*!
2 * Font Awesome Free 7.3.0 by @fontawesome - https://fontawesome.com
3 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
4 * Copyright 2026 Fonticons, Inc.
5 */
6 (function (global, factory) {
7 typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
8 typeof define === 'function' && define.amd ? define(['exports'], factory) :
9 (factory((global['fontawesome-svg-core'] = {})));
10 }(this, (function (exports) { 'use strict';
11
12 function _arrayLikeToArray(r, a) {
13 (null == a || a > r.length) && (a = r.length);
14 for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
15 return n;
16 }
17 function _arrayWithHoles(r) {
18 if (Array.isArray(r)) return r;
19 }
20 function _arrayWithoutHoles(r) {
21 if (Array.isArray(r)) return _arrayLikeToArray(r);
22 }
23 function _classCallCheck(a, n) {
24 if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
25 }
26 function _defineProperties(e, r) {
27 for (var t = 0; t < r.length; t++) {
28 var o = r[t];
29 o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
30 }
31 }
32 function _createClass(e, r, t) {
33 return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
34 writable: !1
35 }), e;
36 }
37 function _createForOfIteratorHelper(r, e) {
38 var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
39 if (!t) {
40 if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
41 t && (r = t);
42 var n = 0,
43 F = function () {};
44 return {
45 s: F,
46 n: function () {
47 return n >= r.length ? {
48 done: !0
49 } : {
50 done: !1,
51 value: r[n++]
52 };
53 },
54 e: function (r) {
55 throw r;
56 },
57 f: F
58 };
59 }
60 throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
61 }
62 var o,
63 a = !0,
64 u = !1;
65 return {
66 s: function () {
67 t = t.call(r);
68 },
69 n: function () {
70 var r = t.next();
71 return a = r.done, r;
72 },
73 e: function (r) {
74 u = !0, o = r;
75 },
76 f: function () {
77 try {
78 a || null == t.return || t.return();
79 } finally {
80 if (u) throw o;
81 }
82 }
83 };
84 }
85 function _defineProperty(e, r, t) {
86 return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
87 value: t,
88 enumerable: !0,
89 configurable: !0,
90 writable: !0
91 }) : e[r] = t, e;
92 }
93 function _inherits(t, e) {
94 if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
95 t.prototype = Object.create(e && e.prototype, {
96 constructor: {
97 value: t,
98 writable: !0,
99 configurable: !0
100 }
101 }), Object.defineProperty(t, "prototype", {
102 writable: !1
103 }), e && _setPrototypeOf(t, e);
104 }
105 function _iterableToArray(r) {
106 if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
107 }
108 function _iterableToArrayLimit(r, l) {
109 var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
110 if (null != t) {
111 var e,
112 n,
113 i,
114 u,
115 a = [],
116 f = !0,
117 o = !1;
118 try {
119 if (i = (t = t.call(r)).next, 0 === l) {
120 if (Object(t) !== t) return;
121 f = !1;
122 } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
123 } catch (r) {
124 o = !0, n = r;
125 } finally {
126 try {
127 if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
128 } finally {
129 if (o) throw n;
130 }
131 }
132 return a;
133 }
134 }
135 function _nonIterableRest() {
136 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
137 }
138 function _nonIterableSpread() {
139 throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
140 }
141 function ownKeys(e, r) {
142 var t = Object.keys(e);
143 if (Object.getOwnPropertySymbols) {
144 var o = Object.getOwnPropertySymbols(e);
145 r && (o = o.filter(function (r) {
146 return Object.getOwnPropertyDescriptor(e, r).enumerable;
147 })), t.push.apply(t, o);
148 }
149 return t;
150 }
151 function _objectSpread2(e) {
152 for (var r = 1; r < arguments.length; r++) {
153 var t = null != arguments[r] ? arguments[r] : {};
154 r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
155 _defineProperty(e, r, t[r]);
156 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
157 Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
158 });
159 }
160 return e;
161 }
162 function _setPrototypeOf(t, e) {
163 return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
164 return t.__proto__ = e, t;
165 }, _setPrototypeOf(t, e);
166 }
167 function _slicedToArray(r, e) {
168 return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
169 }
170 function _toConsumableArray(r) {
171 return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
172 }
173 function _toPrimitive(t, r) {
174 if ("object" != typeof t || !t) return t;
175 var e = t[Symbol.toPrimitive];
176 if (void 0 !== e) {
177 var i = e.call(t, r || "default");
178 if ("object" != typeof i) return i;
179 throw new TypeError("@@toPrimitive must return a primitive value.");
180 }
181 return ("string" === r ? String : Number)(t);
182 }
183 function _toPropertyKey(t) {
184 var i = _toPrimitive(t, "string");
185 return "symbol" == typeof i ? i : i + "";
186 }
187 function _typeof(o) {
188 "@babel/helpers - typeof";
189
190 return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
191 return typeof o;
192 } : function (o) {
193 return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
194 }, _typeof(o);
195 }
196 function _unsupportedIterableToArray(r, a) {
197 if (r) {
198 if ("string" == typeof r) return _arrayLikeToArray(r, a);
199 var t = {}.toString.call(r).slice(8, -1);
200 return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
201 }
202 }
203 function _wrapRegExp() {
204 _wrapRegExp = function (e, r) {
205 return new BabelRegExp(e, void 0, r);
206 };
207 var e = RegExp.prototype,
208 r = new WeakMap();
209 function BabelRegExp(e, t, p) {
210 var o = RegExp(e, t);
211 return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype);
212 }
213 function buildGroups(e, t) {
214 var p = r.get(t);
215 return Object.keys(p).reduce(function (r, t) {
216 var o = p[t];
217 if ("number" == typeof o) r[t] = e[o];else {
218 for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++;
219 r[t] = e[o[i]];
220 }
221 return r;
222 }, Object.create(null));
223 }
224 return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) {
225 var t = e.exec.call(this, r);
226 if (t) {
227 t.groups = buildGroups(t, this);
228 var p = t.indices;
229 p && (p.groups = buildGroups(p, this));
230 }
231 return t;
232 }, BabelRegExp.prototype[Symbol.replace] = function (t, p) {
233 if ("string" == typeof p) {
234 var o = r.get(this);
235 return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)(>|$)/g, function (e, r, t) {
236 if ("" === t) return e;
237 var p = o[r];
238 return Array.isArray(p) ? "$" + p.join("$") : "number" == typeof p ? "$" + p : "";
239 }));
240 }
241 if ("function" == typeof p) {
242 var i = this;
243 return e[Symbol.replace].call(this, t, function () {
244 var e = arguments;
245 return "object" != typeof e[e.length - 1] && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e);
246 });
247 }
248 return e[Symbol.replace].call(this, t, p);
249 }, _wrapRegExp.apply(this, arguments);
250 }
251
252 var noop = function noop() {};
253 var _WINDOW = {};
254 var _DOCUMENT = {};
255 var _MUTATION_OBSERVER = null;
256 var _PERFORMANCE = {
257 mark: noop,
258 measure: noop
259 };
260 try {
261 if (typeof window !== 'undefined') _WINDOW = window;
262 if (typeof document !== 'undefined') _DOCUMENT = document;
263 if (typeof MutationObserver !== 'undefined') _MUTATION_OBSERVER = MutationObserver;
264 if (typeof performance !== 'undefined') _PERFORMANCE = performance;
265 } catch (e) {} // eslint-disable-line no-empty
266
267 var _ref = _WINDOW.navigator || {},
268 _ref$userAgent = _ref.userAgent,
269 userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
270 var WINDOW = _WINDOW;
271 var DOCUMENT = _DOCUMENT;
272 var MUTATION_OBSERVER = _MUTATION_OBSERVER;
273 var PERFORMANCE = _PERFORMANCE;
274 var IS_BROWSER = !!WINDOW.document;
275 var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
276 var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
277
278 var _cl;
279 var Z = /fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|gt|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt|sldr|slpdr|pr|ms|vs)?[\-\ ]/,
280 $ = /Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Graphite|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Slab Duo|Slab Press Duo|Pixel|Mosaic|Vellum|Whiteboard)?.*/i;
281 var rl = {
282 classic: {
283 fa: "solid",
284 fas: "solid",
285 "fa-solid": "solid",
286 far: "regular",
287 "fa-regular": "regular",
288 fal: "light",
289 "fa-light": "light",
290 fat: "thin",
291 "fa-thin": "thin",
292 fab: "brands",
293 "fa-brands": "brands"
294 },
295 duotone: {
296 fa: "solid",
297 fad: "solid",
298 "fa-solid": "solid",
299 "fa-duotone": "solid",
300 fadr: "regular",
301 "fa-regular": "regular",
302 fadl: "light",
303 "fa-light": "light",
304 fadt: "thin",
305 "fa-thin": "thin"
306 },
307 sharp: {
308 fa: "solid",
309 fass: "solid",
310 "fa-solid": "solid",
311 fasr: "regular",
312 "fa-regular": "regular",
313 fasl: "light",
314 "fa-light": "light",
315 fast: "thin",
316 "fa-thin": "thin"
317 },
318 "sharp-duotone": {
319 fa: "solid",
320 fasds: "solid",
321 "fa-solid": "solid",
322 fasdr: "regular",
323 "fa-regular": "regular",
324 fasdl: "light",
325 "fa-light": "light",
326 fasdt: "thin",
327 "fa-thin": "thin"
328 },
329 slab: {
330 "fa-regular": "regular",
331 faslr: "regular"
332 },
333 "slab-press": {
334 "fa-regular": "regular",
335 faslpr: "regular"
336 },
337 "slab-duo": {
338 "fa-regular": "regular",
339 fasldr: "regular"
340 },
341 "slab-press-duo": {
342 "fa-regular": "regular",
343 faslpdr: "regular"
344 },
345 thumbprint: {
346 "fa-light": "light",
347 fatl: "light"
348 },
349 vellum: {
350 "fa-solid": "solid",
351 favs: "solid"
352 },
353 pixel: {
354 "fa-regular": "regular",
355 fapr: "regular"
356 },
357 mosaic: {
358 "fa-solid": "solid",
359 fams: "solid"
360 },
361 whiteboard: {
362 "fa-semibold": "semibold",
363 fawsb: "semibold"
364 },
365 notdog: {
366 "fa-solid": "solid",
367 fans: "solid"
368 },
369 "notdog-duo": {
370 "fa-solid": "solid",
371 fands: "solid"
372 },
373 etch: {
374 "fa-solid": "solid",
375 faes: "solid"
376 },
377 graphite: {
378 "fa-thin": "thin",
379 fagt: "thin"
380 },
381 jelly: {
382 "fa-regular": "regular",
383 fajr: "regular"
384 },
385 "jelly-fill": {
386 "fa-regular": "regular",
387 fajfr: "regular"
388 },
389 "jelly-duo": {
390 "fa-regular": "regular",
391 fajdr: "regular"
392 },
393 chisel: {
394 "fa-regular": "regular",
395 facr: "regular"
396 },
397 utility: {
398 "fa-semibold": "semibold",
399 fausb: "semibold"
400 },
401 "utility-duo": {
402 "fa-semibold": "semibold",
403 faudsb: "semibold"
404 },
405 "utility-fill": {
406 "fa-semibold": "semibold",
407 faufsb: "semibold"
408 }
409 },
410 il = {
411 GROUP: "duotone-group",
412 SWAP_OPACITY: "swap-opacity",
413 PRIMARY: "primary",
414 SECONDARY: "secondary"
415 },
416 dl = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone", "fa-thumbprint", "fa-whiteboard", "fa-notdog", "fa-notdog-duo", "fa-chisel", "fa-etch", "fa-graphite", "fa-jelly", "fa-jelly-fill", "fa-jelly-duo", "fa-slab", "fa-slab-press", "fa-slab-press-duo", "fa-slab-duo", "fa-mosaic", "fa-pixel", "fa-vellum", "fa-utility", "fa-utility-duo", "fa-utility-fill"];
417 var u = "classic",
418 l = "duotone",
419 h = "sharp",
420 t = "sharp-duotone",
421 g = "chisel",
422 n = "etch",
423 m = "graphite",
424 p = "jelly",
425 s = "jelly-duo",
426 y = "jelly-fill",
427 w = "mosaic",
428 x = "notdog",
429 e = "notdog-duo",
430 b = "pixel",
431 c = "slab",
432 o = "slab-duo",
433 I = "slab-press",
434 a = "slab-press-duo",
435 r = "thumbprint",
436 v = "utility",
437 i = "utility-duo",
438 F = "utility-fill",
439 d = "vellum",
440 S = "whiteboard",
441 A = "Classic",
442 P = "Duotone",
443 j = "Sharp",
444 B = "Sharp Duotone",
445 N = "Chisel",
446 D = "Etch",
447 k = "Graphite",
448 T = "Jelly",
449 C = "Jelly Duo",
450 W = "Jelly Fill",
451 R = "Mosaic",
452 K = "Notdog",
453 L = "Notdog Duo",
454 U = "Pixel",
455 J = "Slab",
456 _ = "Slab Duo",
457 M = "Slab Press",
458 E = "Slab Press Duo",
459 G = "Thumbprint",
460 V = "Utility",
461 z = "Utility Duo",
462 O = "Utility Fill",
463 Y = "Vellum",
464 q = "Whiteboard",
465 xl = [u, l, h, t, g, n, m, p, s, y, w, x, e, b, c, o, I, a, r, v, i, F, d, S],
466 cl = (_cl = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_cl, u, A), l, P), h, j), t, B), g, N), n, D), m, k), p, T), s, C), y, W), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_cl, w, R), x, K), e, L), b, U), c, J), o, _), I, M), a, E), r, G), v, V), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_cl, i, z), F, O), d, Y), S, q));
467 var Al = {
468 classic: {
469 900: "fas",
470 400: "far",
471 normal: "far",
472 300: "fal",
473 100: "fat"
474 },
475 duotone: {
476 900: "fad",
477 400: "fadr",
478 300: "fadl",
479 100: "fadt"
480 },
481 sharp: {
482 900: "fass",
483 400: "fasr",
484 300: "fasl",
485 100: "fast"
486 },
487 "sharp-duotone": {
488 900: "fasds",
489 400: "fasdr",
490 300: "fasdl",
491 100: "fasdt"
492 },
493 slab: {
494 400: "faslr"
495 },
496 "slab-press": {
497 400: "faslpr"
498 },
499 "slab-duo": {
500 400: "fasldr"
501 },
502 "slab-press-duo": {
503 400: "faslpdr"
504 },
505 vellum: {
506 900: "favs"
507 },
508 mosaic: {
509 900: "fams"
510 },
511 pixel: {
512 400: "fapr"
513 },
514 whiteboard: {
515 600: "fawsb"
516 },
517 thumbprint: {
518 300: "fatl"
519 },
520 notdog: {
521 900: "fans"
522 },
523 "notdog-duo": {
524 900: "fands"
525 },
526 etch: {
527 900: "faes"
528 },
529 graphite: {
530 100: "fagt"
531 },
532 chisel: {
533 400: "facr"
534 },
535 jelly: {
536 400: "fajr"
537 },
538 "jelly-fill": {
539 400: "fajfr"
540 },
541 "jelly-duo": {
542 400: "fajdr"
543 },
544 utility: {
545 600: "fausb"
546 },
547 "utility-duo": {
548 600: "faudsb"
549 },
550 "utility-fill": {
551 600: "faufsb"
552 }
553 };
554 var zl = {
555 "Font Awesome 7 Free": {
556 900: "fas",
557 400: "far"
558 },
559 "Font Awesome 7 Pro": {
560 900: "fas",
561 400: "far",
562 normal: "far",
563 300: "fal",
564 100: "fat"
565 },
566 "Font Awesome 7 Brands": {
567 400: "fab",
568 normal: "fab"
569 },
570 "Font Awesome 7 Duotone": {
571 900: "fad",
572 400: "fadr",
573 normal: "fadr",
574 300: "fadl",
575 100: "fadt"
576 },
577 "Font Awesome 7 Sharp": {
578 900: "fass",
579 400: "fasr",
580 normal: "fasr",
581 300: "fasl",
582 100: "fast"
583 },
584 "Font Awesome 7 Sharp Duotone": {
585 900: "fasds",
586 400: "fasdr",
587 normal: "fasdr",
588 300: "fasdl",
589 100: "fasdt"
590 },
591 "Font Awesome 7 Jelly": {
592 400: "fajr",
593 normal: "fajr"
594 },
595 "Font Awesome 7 Jelly Fill": {
596 400: "fajfr",
597 normal: "fajfr"
598 },
599 "Font Awesome 7 Jelly Duo": {
600 400: "fajdr",
601 normal: "fajdr"
602 },
603 "Font Awesome 7 Slab": {
604 400: "faslr",
605 normal: "faslr"
606 },
607 "Font Awesome 7 Slab Press": {
608 400: "faslpr",
609 normal: "faslpr"
610 },
611 "Font Awesome 7 Slab Duo": {
612 400: "fasldr",
613 normal: "fasldr"
614 },
615 "Font Awesome 7 Slab Press Duo": {
616 400: "faslpdr",
617 normal: "faslpdr"
618 },
619 "Font Awesome 7 Pixel": {
620 400: "fapr",
621 normal: "fapr"
622 },
623 "Font Awesome 7 Mosaic": {
624 900: "fams",
625 normal: "fams"
626 },
627 "Font Awesome 7 Vellum": {
628 900: "favs",
629 normal: "favs"
630 },
631 "Font Awesome 7 Thumbprint": {
632 300: "fatl",
633 normal: "fatl"
634 },
635 "Font Awesome 7 Notdog": {
636 900: "fans",
637 normal: "fans"
638 },
639 "Font Awesome 7 Notdog Duo": {
640 900: "fands",
641 normal: "fands"
642 },
643 "Font Awesome 7 Etch": {
644 900: "faes",
645 normal: "faes"
646 },
647 "Font Awesome 7 Graphite": {
648 100: "fagt",
649 normal: "fagt"
650 },
651 "Font Awesome 7 Chisel": {
652 400: "facr",
653 normal: "facr"
654 },
655 "Font Awesome 7 Whiteboard": {
656 600: "fawsb",
657 normal: "fawsb"
658 },
659 "Font Awesome 7 Utility": {
660 600: "fausb",
661 normal: "fausb"
662 },
663 "Font Awesome 7 Utility Duo": {
664 600: "faudsb",
665 normal: "faudsb"
666 },
667 "Font Awesome 7 Utility Fill": {
668 600: "faufsb",
669 normal: "faufsb"
670 }
671 };
672 var Ql = new Map([["classic", {
673 defaultShortPrefixId: "fas",
674 defaultStyleId: "solid",
675 styleIds: ["solid", "regular", "light", "thin", "brands"],
676 futureStyleIds: [],
677 defaultFontWeight: 900
678 }], ["duotone", {
679 defaultShortPrefixId: "fad",
680 defaultStyleId: "solid",
681 styleIds: ["solid", "regular", "light", "thin"],
682 futureStyleIds: [],
683 defaultFontWeight: 900
684 }], ["sharp", {
685 defaultShortPrefixId: "fass",
686 defaultStyleId: "solid",
687 styleIds: ["solid", "regular", "light", "thin"],
688 futureStyleIds: [],
689 defaultFontWeight: 900
690 }], ["sharp-duotone", {
691 defaultShortPrefixId: "fasds",
692 defaultStyleId: "solid",
693 styleIds: ["solid", "regular", "light", "thin"],
694 futureStyleIds: [],
695 defaultFontWeight: 900
696 }], ["chisel", {
697 defaultShortPrefixId: "facr",
698 defaultStyleId: "regular",
699 styleIds: ["regular"],
700 futureStyleIds: [],
701 defaultFontWeight: 400
702 }], ["etch", {
703 defaultShortPrefixId: "faes",
704 defaultStyleId: "solid",
705 styleIds: ["solid"],
706 futureStyleIds: [],
707 defaultFontWeight: 900
708 }], ["graphite", {
709 defaultShortPrefixId: "fagt",
710 defaultStyleId: "thin",
711 styleIds: ["thin"],
712 futureStyleIds: [],
713 defaultFontWeight: 100
714 }], ["jelly", {
715 defaultShortPrefixId: "fajr",
716 defaultStyleId: "regular",
717 styleIds: ["regular"],
718 futureStyleIds: [],
719 defaultFontWeight: 400
720 }], ["jelly-duo", {
721 defaultShortPrefixId: "fajdr",
722 defaultStyleId: "regular",
723 styleIds: ["regular"],
724 futureStyleIds: [],
725 defaultFontWeight: 400
726 }], ["jelly-fill", {
727 defaultShortPrefixId: "fajfr",
728 defaultStyleId: "regular",
729 styleIds: ["regular"],
730 futureStyleIds: [],
731 defaultFontWeight: 400
732 }], ["mosaic", {
733 defaultShortPrefixId: "fams",
734 defaultStyleId: "solid",
735 styleIds: ["solid"],
736 futureStyleIds: [],
737 defaultFontWeight: 900
738 }], ["notdog", {
739 defaultShortPrefixId: "fans",
740 defaultStyleId: "solid",
741 styleIds: ["solid"],
742 futureStyleIds: [],
743 defaultFontWeight: 900
744 }], ["notdog-duo", {
745 defaultShortPrefixId: "fands",
746 defaultStyleId: "solid",
747 styleIds: ["solid"],
748 futureStyleIds: [],
749 defaultFontWeight: 900
750 }], ["pixel", {
751 defaultShortPrefixId: "fapr",
752 defaultStyleId: "regular",
753 styleIds: ["regular"],
754 futureStyleIds: [],
755 defaultFontWeight: 400
756 }], ["slab", {
757 defaultShortPrefixId: "faslr",
758 defaultStyleId: "regular",
759 styleIds: ["regular"],
760 futureStyleIds: [],
761 defaultFontWeight: 400
762 }], ["slab-duo", {
763 defaultShortPrefixId: "fasldr",
764 defaultStyleId: "regular",
765 styleIds: ["regular"],
766 futureStyleIds: [],
767 defaultFontWeight: 400
768 }], ["slab-press", {
769 defaultShortPrefixId: "faslpr",
770 defaultStyleId: "regular",
771 styleIds: ["regular"],
772 futureStyleIds: [],
773 defaultFontWeight: 400
774 }], ["slab-press-duo", {
775 defaultShortPrefixId: "faslpdr",
776 defaultStyleId: "regular",
777 styleIds: ["regular"],
778 futureStyleIds: [],
779 defaultFontWeight: 400
780 }], ["thumbprint", {
781 defaultShortPrefixId: "fatl",
782 defaultStyleId: "light",
783 styleIds: ["light"],
784 futureStyleIds: [],
785 defaultFontWeight: 300
786 }], ["utility", {
787 defaultShortPrefixId: "fausb",
788 defaultStyleId: "semibold",
789 styleIds: ["semibold"],
790 futureStyleIds: [],
791 defaultFontWeight: 600
792 }], ["utility-duo", {
793 defaultShortPrefixId: "faudsb",
794 defaultStyleId: "semibold",
795 styleIds: ["semibold"],
796 futureStyleIds: [],
797 defaultFontWeight: 600
798 }], ["utility-fill", {
799 defaultShortPrefixId: "faufsb",
800 defaultStyleId: "semibold",
801 styleIds: ["semibold"],
802 futureStyleIds: [],
803 defaultFontWeight: 600
804 }], ["vellum", {
805 defaultShortPrefixId: "favs",
806 defaultStyleId: "solid",
807 styleIds: ["solid"],
808 futureStyleIds: [],
809 defaultFontWeight: 900
810 }], ["whiteboard", {
811 defaultShortPrefixId: "fawsb",
812 defaultStyleId: "semibold",
813 styleIds: ["semibold"],
814 futureStyleIds: [],
815 defaultFontWeight: 600
816 }]]),
817 $l = {
818 chisel: {
819 regular: "facr"
820 },
821 classic: {
822 brands: "fab",
823 light: "fal",
824 regular: "far",
825 solid: "fas",
826 thin: "fat"
827 },
828 duotone: {
829 light: "fadl",
830 regular: "fadr",
831 solid: "fad",
832 thin: "fadt"
833 },
834 etch: {
835 solid: "faes"
836 },
837 graphite: {
838 thin: "fagt"
839 },
840 jelly: {
841 regular: "fajr"
842 },
843 "jelly-duo": {
844 regular: "fajdr"
845 },
846 "jelly-fill": {
847 regular: "fajfr"
848 },
849 mosaic: {
850 solid: "fams"
851 },
852 notdog: {
853 solid: "fans"
854 },
855 "notdog-duo": {
856 solid: "fands"
857 },
858 pixel: {
859 regular: "fapr"
860 },
861 sharp: {
862 light: "fasl",
863 regular: "fasr",
864 solid: "fass",
865 thin: "fast"
866 },
867 "sharp-duotone": {
868 light: "fasdl",
869 regular: "fasdr",
870 solid: "fasds",
871 thin: "fasdt"
872 },
873 slab: {
874 regular: "faslr"
875 },
876 "slab-duo": {
877 regular: "fasldr"
878 },
879 "slab-press": {
880 regular: "faslpr"
881 },
882 "slab-press-duo": {
883 regular: "faslpdr"
884 },
885 thumbprint: {
886 light: "fatl"
887 },
888 utility: {
889 semibold: "fausb"
890 },
891 "utility-duo": {
892 semibold: "faudsb"
893 },
894 "utility-fill": {
895 semibold: "faufsb"
896 },
897 vellum: {
898 solid: "favs"
899 },
900 whiteboard: {
901 semibold: "fawsb"
902 }
903 };
904 var at = ["fak", "fa-kit", "fakd", "fa-kit-duotone"],
905 rt = {
906 kit: {
907 fak: "kit",
908 "fa-kit": "kit"
909 },
910 "kit-duotone": {
911 fakd: "kit-duotone",
912 "fa-kit-duotone": "kit-duotone"
913 }
914 },
915 it = ["kit"];
916 var H = "kit",
917 f = "kit-duotone",
918 Q = "Kit",
919 X = "Kit Duotone",
920 ht = _defineProperty(_defineProperty({}, H, Q), f, X);
921 var mt = {
922 kit: {
923 "fa-kit": "fak"
924 },
925 "kit-duotone": {
926 "fa-kit-duotone": "fakd"
927 }
928 };
929 var ct = {
930 "Font Awesome Kit": {
931 400: "fak",
932 normal: "fak"
933 },
934 "Font Awesome Kit Duotone": {
935 400: "fakd",
936 normal: "fakd"
937 }
938 },
939 It = {
940 kit: {
941 fak: "fa-kit"
942 },
943 "kit-duotone": {
944 fakd: "fa-kit-duotone"
945 }
946 };
947 var St = {
948 kit: {
949 kit: "fak"
950 },
951 "kit-duotone": {
952 "kit-duotone": "fakd"
953 }
954 };
955
956 var _jl;
957 var l$1 = {
958 GROUP: "duotone-group",
959 SWAP_OPACITY: "swap-opacity",
960 PRIMARY: "primary",
961 SECONDARY: "secondary"
962 },
963 n$1 = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone", "fa-thumbprint", "fa-whiteboard", "fa-notdog", "fa-notdog-duo", "fa-chisel", "fa-etch", "fa-graphite", "fa-jelly", "fa-jelly-fill", "fa-jelly-duo", "fa-slab", "fa-slab-press", "fa-slab-press-duo", "fa-slab-duo", "fa-mosaic", "fa-pixel", "fa-vellum", "fa-utility", "fa-utility-duo", "fa-utility-fill"];
964 var g$1 = "classic",
965 a$1 = "duotone",
966 m$1 = "sharp",
967 t$1 = "sharp-duotone",
968 p$1 = "chisel",
969 y$1 = "etch",
970 b$1 = "graphite",
971 w$1 = "jelly",
972 e$1 = "jelly-duo",
973 x$1 = "jelly-fill",
974 c$1 = "mosaic",
975 I$1 = "notdog",
976 o$1 = "notdog-duo",
977 v$1 = "pixel",
978 F$1 = "slab",
979 r$1 = "slab-duo",
980 S$1 = "slab-press",
981 i$1 = "slab-press-duo",
982 d$1 = "thumbprint",
983 A$1 = "utility",
984 f$1 = "utility-duo",
985 P$1 = "utility-fill",
986 u$1 = "vellum",
987 j$1 = "whiteboard",
988 B$1 = "Classic",
989 N$1 = "Duotone",
990 D$1 = "Sharp",
991 k$1 = "Sharp Duotone",
992 C$1 = "Chisel",
993 T$1 = "Etch",
994 L$1 = "Graphite",
995 W$1 = "Jelly",
996 R$1 = "Jelly Duo",
997 K$1 = "Jelly Fill",
998 U$1 = "Mosaic",
999 J$1 = "Notdog",
1000 _$1 = "Notdog Duo",
1001 M$1 = "Pixel",
1002 E$1 = "Slab",
1003 G$1 = "Slab Duo",
1004 O$1 = "Slab Press",
1005 V$1 = "Slab Press Duo",
1006 z$1 = "Thumbprint",
1007 Y$1 = "Utility",
1008 $$1 = "Utility Duo",
1009 q$1 = "Utility Fill",
1010 H$1 = "Vellum",
1011 Q$1 = "Whiteboard",
1012 jl$1 = (_jl = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_jl, g$1, B$1), a$1, N$1), m$1, D$1), t$1, k$1), p$1, C$1), y$1, T$1), b$1, L$1), w$1, W$1), e$1, R$1), x$1, K$1), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_jl, c$1, U$1), I$1, J$1), o$1, _$1), v$1, M$1), F$1, E$1), r$1, G$1), S$1, O$1), i$1, V$1), d$1, z$1), A$1, Y$1), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_jl, f$1, $$1), P$1, q$1), u$1, H$1), j$1, Q$1));
1013 var X$1 = "kit",
1014 h$1 = "kit-duotone",
1015 Z$1 = "Kit",
1016 ll$1 = "Kit Duotone",
1017 ws = _defineProperty(_defineProperty({}, X$1, Z$1), h$1, ll$1);
1018 var ra = {
1019 classic: {
1020 "fa-brands": "fab",
1021 "fa-duotone": "fad",
1022 "fa-light": "fal",
1023 "fa-regular": "far",
1024 "fa-solid": "fas",
1025 "fa-thin": "fat"
1026 },
1027 duotone: {
1028 "fa-regular": "fadr",
1029 "fa-light": "fadl",
1030 "fa-thin": "fadt"
1031 },
1032 sharp: {
1033 "fa-solid": "fass",
1034 "fa-regular": "fasr",
1035 "fa-light": "fasl",
1036 "fa-thin": "fast"
1037 },
1038 "sharp-duotone": {
1039 "fa-solid": "fasds",
1040 "fa-regular": "fasdr",
1041 "fa-light": "fasdl",
1042 "fa-thin": "fasdt"
1043 },
1044 slab: {
1045 "fa-regular": "faslr"
1046 },
1047 "slab-press": {
1048 "fa-regular": "faslpr"
1049 },
1050 "slab-duo": {
1051 "fa-regular": "fasldr"
1052 },
1053 "slab-press-duo": {
1054 "fa-regular": "faslpdr"
1055 },
1056 pixel: {
1057 "fa-regular": "fapr"
1058 },
1059 mosaic: {
1060 "fa-solid": "fams"
1061 },
1062 vellum: {
1063 "fa-solid": "favs"
1064 },
1065 whiteboard: {
1066 "fa-semibold": "fawsb"
1067 },
1068 thumbprint: {
1069 "fa-light": "fatl"
1070 },
1071 notdog: {
1072 "fa-solid": "fans"
1073 },
1074 "notdog-duo": {
1075 "fa-solid": "fands"
1076 },
1077 etch: {
1078 "fa-solid": "faes"
1079 },
1080 graphite: {
1081 "fa-thin": "fagt"
1082 },
1083 jelly: {
1084 "fa-regular": "fajr"
1085 },
1086 "jelly-fill": {
1087 "fa-regular": "fajfr"
1088 },
1089 "jelly-duo": {
1090 "fa-regular": "fajdr"
1091 },
1092 chisel: {
1093 "fa-regular": "facr"
1094 },
1095 utility: {
1096 "fa-semibold": "fausb"
1097 },
1098 "utility-duo": {
1099 "fa-semibold": "faudsb"
1100 },
1101 "utility-fill": {
1102 "fa-semibold": "faufsb"
1103 }
1104 },
1105 al$1 = {
1106 classic: ["fas", "far", "fal", "fat", "fad"],
1107 duotone: ["fadr", "fadl", "fadt"],
1108 sharp: ["fass", "fasr", "fasl", "fast"],
1109 "sharp-duotone": ["fasds", "fasdr", "fasdl", "fasdt"],
1110 slab: ["faslr"],
1111 "slab-press": ["faslpr"],
1112 "slab-duo": ["fasldr"],
1113 "slab-press-duo": ["faslpdr"],
1114 pixel: ["fapr"],
1115 mosaic: ["fams"],
1116 vellum: ["favs"],
1117 whiteboard: ["fawsb"],
1118 thumbprint: ["fatl"],
1119 notdog: ["fans"],
1120 "notdog-duo": ["fands"],
1121 etch: ["faes"],
1122 graphite: ["fagt"],
1123 jelly: ["fajr"],
1124 "jelly-fill": ["fajfr"],
1125 "jelly-duo": ["fajdr"],
1126 chisel: ["facr"],
1127 utility: ["fausb"],
1128 "utility-duo": ["faudsb"],
1129 "utility-fill": ["faufsb"]
1130 },
1131 da = {
1132 classic: {
1133 fab: "fa-brands",
1134 fad: "fa-duotone",
1135 fal: "fa-light",
1136 far: "fa-regular",
1137 fas: "fa-solid",
1138 fat: "fa-thin"
1139 },
1140 duotone: {
1141 fadr: "fa-regular",
1142 fadl: "fa-light",
1143 fadt: "fa-thin"
1144 },
1145 sharp: {
1146 fass: "fa-solid",
1147 fasr: "fa-regular",
1148 fasl: "fa-light",
1149 fast: "fa-thin"
1150 },
1151 "sharp-duotone": {
1152 fasds: "fa-solid",
1153 fasdr: "fa-regular",
1154 fasdl: "fa-light",
1155 fasdt: "fa-thin"
1156 },
1157 slab: {
1158 faslr: "fa-regular"
1159 },
1160 "slab-press": {
1161 faslpr: "fa-regular"
1162 },
1163 "slab-duo": {
1164 fasldr: "fa-regular"
1165 },
1166 "slab-press-duo": {
1167 faslpdr: "fa-regular"
1168 },
1169 pixel: {
1170 fapr: "fa-regular"
1171 },
1172 mosaic: {
1173 fams: "fa-solid"
1174 },
1175 vellum: {
1176 favs: "fa-solid"
1177 },
1178 whiteboard: {
1179 fawsb: "fa-semibold"
1180 },
1181 thumbprint: {
1182 fatl: "fa-light"
1183 },
1184 notdog: {
1185 fans: "fa-solid"
1186 },
1187 "notdog-duo": {
1188 fands: "fa-solid"
1189 },
1190 etch: {
1191 faes: "fa-solid"
1192 },
1193 graphite: {
1194 fagt: "fa-thin"
1195 },
1196 jelly: {
1197 fajr: "fa-regular"
1198 },
1199 "jelly-fill": {
1200 fajfr: "fa-regular"
1201 },
1202 "jelly-duo": {
1203 fajdr: "fa-regular"
1204 },
1205 chisel: {
1206 facr: "fa-regular"
1207 },
1208 utility: {
1209 fausb: "fa-semibold"
1210 },
1211 "utility-duo": {
1212 faudsb: "fa-semibold"
1213 },
1214 "utility-fill": {
1215 faufsb: "fa-semibold"
1216 }
1217 },
1218 tl = ["fa-solid", "fa-regular", "fa-light", "fa-thin", "fa-duotone", "fa-brands", "fa-semibold"],
1219 ha = ["fa", "fas", "far", "fal", "fat", "fad", "fadr", "fadl", "fadt", "fab", "fass", "fasr", "fasl", "fast", "fasds", "fasdr", "fasdl", "fasdt", "faslr", "faslpr", "fasldr", "faslpdr", "fapr", "fams", "favs", "fawsb", "fatl", "fans", "fands", "faes", "fagt", "fajr", "fajfr", "fajdr", "facr", "fausb", "faudsb", "faufsb"].concat(n$1, tl),
1220 el$1 = ["solid", "regular", "light", "thin", "duotone", "brands", "semibold"],
1221 sl$1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
1222 ol$1 = sl$1.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]),
1223 rl$1 = ["aw", "fw", "pull-left", "pull-right"],
1224 ga = [].concat(_toConsumableArray(Object.keys(al$1)), el$1, rl$1, ["2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "beat-fade", "border", "bounce", "buzz", "canvas-square", "canvas-roomy", "fade", "flip-360", "flip-both", "flip-horizontal", "flip-vertical", "flip", "float", "inverse", "jello", "layers", "layers-bottom-left", "layers-bottom-right", "layers-counter", "layers-text", "layers-top-left", "layers-top-right", "li", "pull-end", "pull-start", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "spin-snap", "spin-snap-4", "spin-snap-8", "stack-1x", "stack-2x", "stack", "swing", "ul", "wag", "width-auto", "width-fixed", l$1.GROUP, l$1.SWAP_OPACITY, l$1.PRIMARY, l$1.SECONDARY]).concat(sl$1.map(function (s) {
1225 return "".concat(s, "x");
1226 })).concat(ol$1.map(function (s) {
1227 return "w-".concat(s);
1228 }));
1229 var wa = {
1230 "Font Awesome 5 Free": {
1231 900: "fas",
1232 400: "far"
1233 },
1234 "Font Awesome 5 Pro": {
1235 900: "fas",
1236 400: "far",
1237 normal: "far",
1238 300: "fal"
1239 },
1240 "Font Awesome 5 Brands": {
1241 400: "fab",
1242 normal: "fab"
1243 },
1244 "Font Awesome 5 Duotone": {
1245 900: "fad"
1246 }
1247 };
1248
1249 var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
1250 var UNITS_IN_GRID = 16;
1251 var DEFAULT_CSS_PREFIX = 'fa';
1252 var DEFAULT_REPLACEMENT_CLASS = 'svg-inline--fa';
1253 var DATA_FA_I2SVG = 'data-fa-i2svg';
1254 var DATA_FA_PSEUDO_ELEMENT = 'data-fa-pseudo-element';
1255 var DATA_FA_PSEUDO_ELEMENT_PENDING = 'data-fa-pseudo-element-pending';
1256 var DATA_PREFIX = 'data-prefix';
1257 var DATA_ICON = 'data-icon';
1258 var HTML_CLASS_I2SVG_BASE_CLASS = 'fontawesome-i2svg';
1259 var MUTATION_APPROACH_ASYNC = 'async';
1260 var TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ['HTML', 'HEAD', 'STYLE', 'SCRIPT'];
1261 var PSEUDO_ELEMENTS = ['::before', '::after', ':before', ':after'];
1262 var PRODUCTION = function () {
1263 try {
1264 return process.env.NODE_ENV === 'production';
1265 } catch (e$$1) {
1266 return false;
1267 }
1268 }();
1269 function familyProxy(obj) {
1270 // Defaults to the classic family if family is not available
1271 return new Proxy(obj, {
1272 get: function get(target, prop) {
1273 return prop in target ? target[prop] : target[u];
1274 }
1275 });
1276 }
1277 var _PREFIX_TO_STYLE = _objectSpread2({}, rl);
1278
1279 // We changed FACSSClassesToStyleId in the icons repo to be canonical and as such, "classic" family does not have any
1280 // duotone styles. But we do still need duotone in _PREFIX_TO_STYLE below, so we are manually adding
1281 // {'fa-duotone': 'duotone'}
1282 _PREFIX_TO_STYLE[u] = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, {
1283 'fa-duotone': 'duotone'
1284 }), rl[u]), rt['kit']), rt['kit-duotone']);
1285 var PREFIX_TO_STYLE = familyProxy(_PREFIX_TO_STYLE);
1286 var _STYLE_TO_PREFIX = _objectSpread2({}, $l);
1287
1288 // We changed FAStyleIdToShortPrefixId in the icons repo to be canonical and as such, "classic" family does not have any
1289 // duotone styles. But we do still need duotone in _STYLE_TO_PREFIX below, so we are manually adding {duotone: 'fad'}
1290 _STYLE_TO_PREFIX[u] = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, {
1291 duotone: 'fad'
1292 }), _STYLE_TO_PREFIX[u]), St['kit']), St['kit-duotone']);
1293 var STYLE_TO_PREFIX = familyProxy(_STYLE_TO_PREFIX);
1294 var _PREFIX_TO_LONG_STYLE = _objectSpread2({}, da);
1295 _PREFIX_TO_LONG_STYLE[u] = _objectSpread2(_objectSpread2({}, _PREFIX_TO_LONG_STYLE[u]), It['kit']);
1296 var PREFIX_TO_LONG_STYLE = familyProxy(_PREFIX_TO_LONG_STYLE);
1297 var _LONG_STYLE_TO_PREFIX = _objectSpread2({}, ra);
1298 _LONG_STYLE_TO_PREFIX[u] = _objectSpread2(_objectSpread2({}, _LONG_STYLE_TO_PREFIX[u]), mt['kit']);
1299 var LONG_STYLE_TO_PREFIX = familyProxy(_LONG_STYLE_TO_PREFIX);
1300 var ICON_SELECTION_SYNTAX_PATTERN = Z;
1301 var LAYERS_TEXT_CLASSNAME = 'fa-layers-text';
1302 var FONT_FAMILY_PATTERN = $;
1303 var _FONT_WEIGHT_TO_PREFIX = _objectSpread2({}, Al);
1304 var FONT_WEIGHT_TO_PREFIX = familyProxy(_FONT_WEIGHT_TO_PREFIX);
1305 var ATTRIBUTES_WATCHED_FOR_MUTATION = ['class', 'data-prefix', 'data-icon', 'data-fa-transform', 'data-fa-mask'];
1306 var DUOTONE_CLASSES = il;
1307 var RESERVED_CLASSES = [].concat(_toConsumableArray(it), _toConsumableArray(ga));
1308
1309 var initial = WINDOW.FontAwesomeConfig || {};
1310 function getAttrConfig(attr) {
1311 var element = DOCUMENT.querySelector('script[' + attr + ']');
1312 if (element) {
1313 return element.getAttribute(attr);
1314 }
1315 }
1316 function coerce(val) {
1317 // Getting an empty string will occur if the attribute is set on the HTML tag but without a value
1318 // We'll assume that this is an indication that it should be toggled to true
1319 if (val === '') return true;
1320 if (val === 'false') return false;
1321 if (val === 'true') return true;
1322 return val;
1323 }
1324 if (DOCUMENT && typeof DOCUMENT.querySelector === 'function') {
1325 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-search-pseudo-elements', 'searchPseudoElements'], ['data-search-pseudo-elements-warnings', 'searchPseudoElementsWarnings'], ['data-search-pseudo-elements-full-scan', 'searchPseudoElementsFullScan'], ['data-observe-mutations', 'observeMutations'], ['data-mutate-approach', 'mutateApproach'], ['data-keep-original-source', 'keepOriginalSource'], ['data-measure-performance', 'measurePerformance'], ['data-show-missing-icons', 'showMissingIcons']];
1326 attrs.forEach(function (_ref) {
1327 var _ref2 = _slicedToArray(_ref, 2),
1328 attr = _ref2[0],
1329 key = _ref2[1];
1330 var val = coerce(getAttrConfig(attr));
1331 if (val !== undefined && val !== null) {
1332 initial[key] = val;
1333 }
1334 });
1335 }
1336 var _default = {
1337 styleDefault: 'solid',
1338 familyDefault: u,
1339 cssPrefix: DEFAULT_CSS_PREFIX,
1340 replacementClass: DEFAULT_REPLACEMENT_CLASS,
1341 autoReplaceSvg: true,
1342 autoAddCss: true,
1343 searchPseudoElements: false,
1344 searchPseudoElementsWarnings: true,
1345 searchPseudoElementsFullScan: false,
1346 observeMutations: true,
1347 mutateApproach: 'async',
1348 keepOriginalSource: true,
1349 measurePerformance: false,
1350 showMissingIcons: true
1351 };
1352
1353 // familyPrefix is deprecated but we must still support it if present
1354 if (initial.familyPrefix) {
1355 initial.cssPrefix = initial.familyPrefix;
1356 }
1357 var _config = _objectSpread2(_objectSpread2({}, _default), initial);
1358 if (!_config.autoReplaceSvg) _config.observeMutations = false;
1359 var config = {};
1360 Object.keys(_default).forEach(function (key) {
1361 Object.defineProperty(config, key, {
1362 enumerable: true,
1363 set: function set(val) {
1364 _config[key] = val;
1365 _onChangeCb.forEach(function (cb) {
1366 return cb(config);
1367 });
1368 },
1369 get: function get() {
1370 return _config[key];
1371 }
1372 });
1373 });
1374
1375 // familyPrefix is deprecated as of 6.2.0 and should be removed in 7.0.0
1376 Object.defineProperty(config, 'familyPrefix', {
1377 enumerable: true,
1378 set: function set(val) {
1379 _config.cssPrefix = val;
1380 _onChangeCb.forEach(function (cb) {
1381 return cb(config);
1382 });
1383 },
1384 get: function get() {
1385 return _config.cssPrefix;
1386 }
1387 });
1388 WINDOW.FontAwesomeConfig = config;
1389 var _onChangeCb = [];
1390 function onChange(cb) {
1391 _onChangeCb.push(cb);
1392 return function () {
1393 _onChangeCb.splice(_onChangeCb.indexOf(cb), 1);
1394 };
1395 }
1396
1397 var d$2 = UNITS_IN_GRID;
1398 var meaninglessTransform = {
1399 size: 16,
1400 x: 0,
1401 y: 0,
1402 rotate: 0,
1403 flipX: false,
1404 flipY: false
1405 };
1406 function insertCss(css) {
1407 if (!css || !IS_DOM) {
1408 return;
1409 }
1410 var style = DOCUMENT.createElement('style');
1411 style.setAttribute('type', 'text/css');
1412 style.innerHTML = css;
1413 var headChildren = DOCUMENT.head.childNodes;
1414 var beforeChild = null;
1415 for (var i = headChildren.length - 1; i > -1; i--) {
1416 var child = headChildren[i];
1417 var tagName = (child.tagName || '').toUpperCase();
1418 if (['STYLE', 'LINK'].indexOf(tagName) > -1) {
1419 beforeChild = child;
1420 }
1421 }
1422 DOCUMENT.head.insertBefore(style, beforeChild);
1423 return css;
1424 }
1425 var idPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
1426 function nextUniqueId() {
1427 var size = 12;
1428 var id = '';
1429 while (size-- > 0) {
1430 id += idPool[Math.random() * 62 | 0];
1431 }
1432 return id;
1433 }
1434 function toArray(obj) {
1435 var array = [];
1436 for (var i = (obj || []).length >>> 0; i--;) {
1437 array[i] = obj[i];
1438 }
1439 return array;
1440 }
1441 function classArray(node) {
1442 if (node.classList) {
1443 return toArray(node.classList);
1444 } else {
1445 return (node.getAttribute('class') || '').split(' ').filter(function (i) {
1446 return i;
1447 });
1448 }
1449 }
1450 function htmlEscape(str) {
1451 return "".concat(str).replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, '&#39;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
1452 }
1453 function joinAttributes(attributes) {
1454 return Object.keys(attributes || {}).reduce(function (acc, attributeName) {
1455 return acc + "".concat(attributeName, "=\"").concat(htmlEscape(attributes[attributeName]), "\" ");
1456 }, '').trim();
1457 }
1458 function joinStyles(styles) {
1459 return Object.keys(styles || {}).reduce(function (acc, styleName) {
1460 return acc + "".concat(styleName, ": ").concat(styles[styleName].trim(), ";");
1461 }, '');
1462 }
1463 function transformIsMeaningful(transform) {
1464 return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;
1465 }
1466 function transformForSvg(_ref) {
1467 var transform = _ref.transform,
1468 containerWidth = _ref.containerWidth,
1469 iconWidth = _ref.iconWidth;
1470 var outer = {
1471 transform: "translate(".concat(containerWidth / 2, " 256)")
1472 };
1473 var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
1474 var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
1475 var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
1476 var inner = {
1477 transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
1478 };
1479 var path = {
1480 transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
1481 };
1482 return {
1483 outer: outer,
1484 inner: inner,
1485 path: path
1486 };
1487 }
1488 function transformForCss(_ref2) {
1489 var transform = _ref2.transform,
1490 _ref2$width = _ref2.width,
1491 width = _ref2$width === void 0 ? UNITS_IN_GRID : _ref2$width,
1492 _ref2$height = _ref2.height,
1493 height = _ref2$height === void 0 ? UNITS_IN_GRID : _ref2$height,
1494 _ref2$startCentered = _ref2.startCentered,
1495 startCentered = _ref2$startCentered === void 0 ? false : _ref2$startCentered;
1496 var val = '';
1497 if (startCentered && IS_IE) {
1498 val += "translate(".concat(transform.x / d$2 - width / 2, "em, ").concat(transform.y / d$2 - height / 2, "em) ");
1499 } else if (startCentered) {
1500 val += "translate(calc(-50% + ".concat(transform.x / d$2, "em), calc(-50% + ").concat(transform.y / d$2, "em)) ");
1501 } else {
1502 val += "translate(".concat(transform.x / d$2, "em, ").concat(transform.y / d$2, "em) ");
1503 }
1504 val += "scale(".concat(transform.size / d$2 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / d$2 * (transform.flipY ? -1 : 1), ") ");
1505 val += "rotate(".concat(transform.rotate, "deg) ");
1506 return val;
1507 }
1508
1509 var baseStyles = ":root, :host {\n --fa-font-solid: normal 900 1em/1 'Font Awesome 7 Free';\n --fa-font-regular: normal 400 1em/1 'Font Awesome 7 Free';\n --fa-font-light: normal 300 1em/1 'Font Awesome 7 Pro';\n --fa-font-thin: normal 100 1em/1 'Font Awesome 7 Pro';\n --fa-font-duotone: normal 900 1em/1 'Font Awesome 7 Duotone';\n --fa-font-duotone-regular: normal 400 1em/1 'Font Awesome 7 Duotone';\n --fa-font-duotone-light: normal 300 1em/1 'Font Awesome 7 Duotone';\n --fa-font-duotone-thin: normal 100 1em/1 'Font Awesome 7 Duotone';\n --fa-font-brands: normal 400 1em/1 'Font Awesome 7 Brands';\n --fa-font-sharp-solid: normal 900 1em/1 'Font Awesome 7 Sharp';\n --fa-font-sharp-regular: normal 400 1em/1 'Font Awesome 7 Sharp';\n --fa-font-sharp-light: normal 300 1em/1 'Font Awesome 7 Sharp';\n --fa-font-sharp-thin: normal 100 1em/1 'Font Awesome 7 Sharp';\n --fa-font-sharp-duotone-solid: normal 900 1em/1 'Font Awesome 7 Sharp Duotone';\n --fa-font-sharp-duotone-regular: normal 400 1em/1 'Font Awesome 7 Sharp Duotone';\n --fa-font-sharp-duotone-light: normal 300 1em/1 'Font Awesome 7 Sharp Duotone';\n --fa-font-sharp-duotone-thin: normal 100 1em/1 'Font Awesome 7 Sharp Duotone';\n --fa-font-slab-regular: normal 400 1em/1 'Font Awesome 7 Slab';\n --fa-font-slab-press-regular: normal 400 1em/1 'Font Awesome 7 Slab Press';\n --fa-font-slab-duo-regular: normal 400 1em/1 'Font Awesome 7 Slab Duo';\n --fa-font-slab-press-duo-regular: normal 400 1em/1 'Font Awesome 7 Slab Press Duo';\n --fa-font-pixel-regular: normal 400 1em/1 'Font Awesome 7 Pixel';\n --fa-font-mosaic-solid: normal 900 1em/1 'Font Awesome 7 Mosaic';\n --fa-font-vellum-solid: normal 900 1em/1 'Font Awesome 7 Vellum';\n --fa-font-whiteboard-semibold: normal 600 1em/1 'Font Awesome 7 Whiteboard';\n --fa-font-thumbprint-light: normal 300 1em/1 'Font Awesome 7 Thumbprint';\n --fa-font-notdog-solid: normal 900 1em/1 'Font Awesome 7 Notdog';\n --fa-font-notdog-duo-solid: normal 900 1em/1 'Font Awesome 7 Notdog Duo';\n --fa-font-etch-solid: normal 900 1em/1 'Font Awesome 7 Etch';\n --fa-font-graphite-thin: normal 100 1em/1 'Font Awesome 7 Graphite';\n --fa-font-jelly-regular: normal 400 1em/1 'Font Awesome 7 Jelly';\n --fa-font-jelly-fill-regular: normal 400 1em/1 'Font Awesome 7 Jelly Fill';\n --fa-font-jelly-duo-regular: normal 400 1em/1 'Font Awesome 7 Jelly Duo';\n --fa-font-chisel-regular: normal 400 1em/1 'Font Awesome 7 Chisel';\n --fa-font-utility-semibold: normal 600 1em/1 'Font Awesome 7 Utility';\n --fa-font-utility-duo-semibold: normal 600 1em/1 'Font Awesome 7 Utility Duo';\n --fa-font-utility-fill-semibold: normal 600 1em/1 'Font Awesome 7 Utility Fill';\n}\n\n.svg-inline--fa {\n box-sizing: content-box;\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n width: var(--fa-width, 1.25em);\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.0714285714em;\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.svg-inline--fa .fa-pull-start {\n float: inline-start;\n margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-pull-right,\n.svg-inline--fa .fa-pull-end {\n float: inline-end;\n margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */\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: var(--fa-width, 1.25em);\n}\n.fa-layers .svg-inline--fa {\n inset: 0;\n margin: auto;\n position: absolute;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\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 transform: scale(var(--fa-counter-scale, 0.25));\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 transform: scale(var(--fa-layers-scale, 0.25));\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 transform: scale(var(--fa-layers-scale, 0.25));\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 transform: scale(var(--fa-layers-scale, 0.25));\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 transform: scale(var(--fa-layers-scale, 0.25));\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: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that's relative to the scale's 16px base */\n line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it's parent */\n vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-xs {\n font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that's relative to the scale's 16px base */\n line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it's parent */\n vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-sm {\n font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that's relative to the scale's 16px base */\n line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it's parent */\n vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-lg {\n font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that's relative to the scale's 16px base */\n line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it's parent */\n vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-xl {\n font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that's relative to the scale's 16px base */\n line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it's parent */\n vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-2xl {\n font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that's relative to the scale's 16px base */\n line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it's parent */\n vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-width-auto {\n --fa-width: auto;\n}\n\n.fa-fw,\n.fa-width-fixed {\n --fa-width: 1.25em;\n}\n\n.fa-canvas-square {\n padding-block: 0.125em;\n margin-block-end: -0.125em;\n}\n\n.fa-canvas-roomy {\n padding-block: 0.25em;\n padding-inline: 0.125em;\n margin-block-end: -0.25em;\n box-sizing: content-box;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-inline-start: var(--fa-li-margin, 2.5em);\n padding-inline-start: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n/* Heads Up: Bordered Icons will not be supported in the future!\n - This feature will be deprecated in the next major release of Font Awesome (v8)!\n - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.\n*/\n/* Notes:\n* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)\n* --@{v.$css-prefix}-border-padding =\n ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment)\n ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)\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.0625em);\n box-sizing: var(--fa-border-box-sizing, content-box);\n padding: var(--fa-border-padding, 0.1875em 0.25em);\n}\n\n.fa-pull-left,\n.fa-pull-start {\n float: inline-start;\n margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right,\n.fa-pull-end {\n float: inline-end;\n margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1.5s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-flip-360 {\n animation-name: fa-flip-360;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 0.75s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\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 animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n.fa-spin-snap {\n animation-name: fa-spin-snap;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 3s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-snap-4 {\n animation-name: fa-spin-snap-4;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2.4s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-snap-8 {\n animation-name: fa-spin-snap-8;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 4s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-buzz {\n animation-name: fa-buzz;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 0.6s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-wag {\n animation-name: fa-wag;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 0.9s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-out);\n transform-origin: bottom center;\n}\n\n.fa-float {\n animation-name: fa-float;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 3s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n will-change: transform;\n}\n\n.fa-swing {\n animation-name: fa-swing;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1.2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-out);\n transform-origin: top center;\n}\n\n.fa-jello {\n animation-name: fa-jello;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 0.9s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-out);\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-flip-360,\n .fa-pulse,\n .fa-shake,\n .fa-spin,\n .fa-spin-pulse,\n .fa-buzz,\n .fa-float,\n .fa-jello,\n .fa-spin-snap,\n .fa-spin-snap-4,\n .fa-spin-snap-8,\n .fa-swing,\n .fa-wag {\n animation: none !important;\n transition: none !important;\n }\n}\n@keyframes fa-beat {\n 0% {\n transform: scale(1);\n }\n 25% {\n transform: scale(calc(1.25 * var(--fa-beat-scale, 1.25)));\n }\n 45% {\n transform: scale(calc(1.22 * var(--fa-beat-scale, 1.22)));\n }\n 65% {\n transform: scale(calc(1.25 * var(--fa-beat-scale, 1.25)));\n }\n 90% {\n transform: scale(1);\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n animation-timing-function: var(--fa-animation-timing);\n }\n 14% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.06), var(--fa-bounce-start-scale-y, 0.94)) translateY(var(--fa-bounce-anticipation, 3px));\n animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\n }\n 32% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.94), var(--fa-bounce-jump-scale-y, 1.12)) translateY(calc(-1 * var(--fa-bounce-height, 0.5em)));\n animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\n }\n 52% {\n transform: scale(1, 1) translateY(calc(-1 * var(--fa-bounce-height, 0.5em) * 1.1));\n animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);\n }\n 70% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.06), var(--fa-bounce-land-scale-y, 0.92)) translateY(0);\n animation-timing-function: cubic-bezier(0.33, 0.33, 0.66, 1);\n }\n 85% {\n transform: scale(0.98, 1.04) translateY(calc(-2px * var(--fa-bounce-rebound, 1)));\n animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 0% {\n opacity: 1;\n transform: scale(1);\n animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);\n }\n 40% {\n opacity: var(--fa-fade-opacity, 0.4);\n transform: scale(0.98);\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n}\n@keyframes fa-beat-fade {\n 0% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);\n }\n 25% {\n opacity: calc(var(--fa-beat-fade-opacity, 0.4) + 0.4);\n transform: scale(var(--fa-beat-fade-scale, 1.28));\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 45% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.25));\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n }\n 65% {\n opacity: calc(var(--fa-beat-fade-opacity, 0.4) + 0.4);\n transform: scale(var(--fa-beat-fade-scale, 1.28));\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n}\n@keyframes fa-flip {\n 0% {\n transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);\n animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);\n }\n 8% {\n transform: perspective(2em) scale(var(--fa-flip-anticipation-scale, 0.95)) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);\n animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\n }\n 35% {\n transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.6));\n animation-timing-function: linear;\n }\n 65% {\n transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.5));\n animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\n }\n 92% {\n transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * var(--fa-flip-overshoot, 1.04)));\n animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);\n }\n 100% {\n transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -360deg));\n }\n}\n@keyframes fa-flip-360 {\n 0% {\n transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);\n animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);\n }\n 8% {\n transform: perspective(2em) scale(var(--fa-flip-anticipation-scale, 0.95)) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);\n animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\n }\n 50% {\n transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.6));\n animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\n }\n 80% {\n transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * var(--fa-flip-overshoot, 1.04)));\n animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);\n }\n 100% {\n transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -360deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(0deg);\n animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);\n }\n 8% {\n transform: rotate(35deg) translateX(1px);\n animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n }\n 20% {\n transform: rotate(-22deg) translateX(-1px);\n animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n }\n 35% {\n transform: rotate(15deg) translateX(1px);\n animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n }\n 50% {\n transform: rotate(-9deg);\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 65% {\n transform: rotate(5deg);\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 78% {\n transform: rotate(-3deg);\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 90% {\n transform: rotate(1deg);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n }\n 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin-snap {\n 0% {\n transform: rotate(0deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 12% {\n transform: rotate(60deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 16.67% {\n transform: rotate(60deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 28.67% {\n transform: rotate(120deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 33.33% {\n transform: rotate(120deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 45.33% {\n transform: rotate(180deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 50% {\n transform: rotate(180deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 62% {\n transform: rotate(240deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 66.67% {\n transform: rotate(240deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 78.67% {\n transform: rotate(300deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 83.33% {\n transform: rotate(300deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 95.33% {\n transform: rotate(360deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin-snap-4 {\n 0% {\n transform: rotate(0deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 15% {\n transform: rotate(90deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 25% {\n transform: rotate(90deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 40% {\n transform: rotate(180deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 50% {\n transform: rotate(180deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 65% {\n transform: rotate(270deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 75% {\n transform: rotate(270deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 90% {\n transform: rotate(360deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin-snap-8 {\n 0% {\n transform: rotate(0deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 9% {\n transform: rotate(45deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 12.5% {\n transform: rotate(45deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 21.5% {\n transform: rotate(90deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 25% {\n transform: rotate(90deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 34% {\n transform: rotate(135deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 37.5% {\n transform: rotate(135deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 46.5% {\n transform: rotate(180deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 50% {\n transform: rotate(180deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 59% {\n transform: rotate(225deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 62.5% {\n transform: rotate(225deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 71.5% {\n transform: rotate(270deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 75% {\n transform: rotate(270deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 84% {\n transform: rotate(315deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 87.5% {\n transform: rotate(315deg);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 96.5% {\n transform: rotate(360deg);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes fa-buzz {\n 0% {\n transform: translateX(0) rotate(0deg);\n animation-timing-function: cubic-bezier(0.1, 0, 0.9, 1);\n }\n 5% {\n transform: translateX(var(--fa-buzz-distance, 4px)) rotate(0.5deg);\n }\n 10% {\n transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px))) rotate(-0.5deg);\n }\n 15% {\n transform: translateX(var(--fa-buzz-distance, 4px)) rotate(0.3deg);\n }\n 20% {\n transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px))) rotate(-0.3deg);\n }\n 25% {\n transform: translateX(calc(var(--fa-buzz-distance, 4px) * 0.7)) rotate(0.2deg);\n }\n 30% {\n transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px) * 0.7)) rotate(-0.2deg);\n }\n 35% {\n transform: translateX(calc(var(--fa-buzz-distance, 4px) * 0.4)) rotate(0.1deg);\n }\n 40% {\n transform: translateX(0) rotate(0deg);\n }\n 100% {\n transform: translateX(0) rotate(0deg);\n }\n}\n@keyframes fa-wag {\n 0% {\n transform: rotate(0deg);\n animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1);\n }\n 12% {\n transform: rotate(var(--fa-wag-angle, 12deg));\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n }\n 24% {\n transform: rotate(2deg);\n animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1);\n }\n 36% {\n transform: rotate(calc(var(--fa-wag-angle, 12deg) * 0.85));\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n }\n 48% {\n transform: rotate(1deg);\n animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1);\n }\n 58% {\n transform: rotate(calc(var(--fa-wag-angle, 12deg) * 0.6));\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n }\n 68% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-float {\n 0% {\n transform: translateY(0) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98));\n animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\n }\n 15% {\n transform: translateY(calc(-0.4 * var(--fa-float-height, 6px))) translateX(var(--fa-float-drift, 1px)) rotate(var(--fa-float-tilt, 1deg)) scale(1, 1);\n animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\n }\n 35% {\n transform: translateY(calc(-1 * var(--fa-float-height, 6px))) translateX(0) rotate(0deg) scale(var(--fa-float-stretch-x, 0.98), var(--fa-float-stretch-y, 1.03));\n animation-timing-function: cubic-bezier(0.5, 0, 0.5, 0);\n }\n 50% {\n transform: translateY(calc(-0.92 * var(--fa-float-height, 6px))) translateX(calc(-0.5 * var(--fa-float-drift, 1px))) rotate(calc(-0.5 * var(--fa-float-tilt, 1deg))) scale(0.995, 1.01);\n animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\n }\n 70% {\n transform: translateY(calc(-0.3 * var(--fa-float-height, 6px))) translateX(calc(-1 * var(--fa-float-drift, 1px))) rotate(calc(-1 * var(--fa-float-tilt, 1deg))) scale(1, 1);\n animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\n }\n 90% {\n transform: translateY(calc(0.05 * var(--fa-float-height, 6px))) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98));\n animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);\n }\n 100% {\n transform: translateY(0) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98));\n }\n}\n@keyframes fa-swing {\n 0% {\n transform: rotate(0deg);\n animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);\n }\n 8% {\n transform: rotate(var(--fa-swing-angle, 22deg));\n animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n }\n 18% {\n transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.85));\n animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n }\n 28% {\n transform: rotate(calc(var(--fa-swing-angle, 22deg) * 0.65));\n animation-timing-function: cubic-bezier(0.35, 0, 0.65, 1);\n }\n 38% {\n transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.45));\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 48% {\n transform: rotate(calc(var(--fa-swing-angle, 22deg) * 0.25));\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 56% {\n transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.1));\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 64% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-jello {\n 0% {\n transform: scale(1, 1);\n animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);\n }\n 12% {\n transform: scale(var(--fa-jello-scale-x, 1.15), calc(2 - var(--fa-jello-scale-x, 1.15)));\n animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n }\n 24% {\n transform: scale(calc(2 - var(--fa-jello-scale-y, 1.12)), var(--fa-jello-scale-y, 1.12));\n animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n }\n 36% {\n transform: scale(calc(1 + (var(--fa-jello-scale-x, 1.15) - 1) * 0.5), calc(2 - (1 + (var(--fa-jello-scale-x, 1.15) - 1) * 0.5)));\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 48% {\n transform: scale(calc(2 - (1 + (var(--fa-jello-scale-y, 1.12) - 1) * 0.3)), calc(1 + (var(--fa-jello-scale-y, 1.12) - 1) * 0.3));\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n }\n 58% {\n transform: scale(1.02, 0.98);\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n }\n 68% {\n transform: scale(1, 1);\n }\n 100% {\n transform: scale(1, 1);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 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.svg-inline--fa.fa-inverse {\n fill: var(--fa-inverse, #fff);\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n line-height: 2em;\n position: relative;\n vertical-align: middle;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.svg-inline--fa.fa-stack-1x {\n --fa-width: 1.25em;\n height: 1em;\n width: var(--fa-width);\n}\n.svg-inline--fa.fa-stack-2x {\n --fa-width: 2.5em;\n height: 2em;\n width: var(--fa-width);\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n inset: 0;\n margin: auto;\n position: absolute;\n z-index: var(--fa-stack-z-index, auto);\n}";
1510
1511 function css() {
1512 var dcp = DEFAULT_CSS_PREFIX;
1513 var drc = DEFAULT_REPLACEMENT_CLASS;
1514 var fp = config.cssPrefix;
1515 var rc = config.replacementClass;
1516 var s = baseStyles;
1517 if (fp !== dcp || rc !== drc) {
1518 var dPatt = new RegExp("\\.".concat(dcp, "\\-"), 'g');
1519 var customPropPatt = new RegExp("\\--".concat(dcp, "\\-"), 'g');
1520 var rPatt = new RegExp("\\.".concat(drc), 'g');
1521 s = s.replace(dPatt, ".".concat(fp, "-")).replace(customPropPatt, "--".concat(fp, "-")).replace(rPatt, ".".concat(rc));
1522 }
1523 return s;
1524 }
1525 var _cssInserted = false;
1526 function ensureCss() {
1527 if (config.autoAddCss && !_cssInserted) {
1528 insertCss(css());
1529 _cssInserted = true;
1530 }
1531 }
1532 var InjectCSS = {
1533 mixout: function mixout() {
1534 return {
1535 dom: {
1536 css: css,
1537 insertCss: ensureCss
1538 }
1539 };
1540 },
1541 hooks: function hooks() {
1542 return {
1543 beforeDOMElementCreation: function beforeDOMElementCreation() {
1544 ensureCss();
1545 },
1546 beforeI2svg: function beforeI2svg() {
1547 ensureCss();
1548 }
1549 };
1550 }
1551 };
1552
1553 var w$2 = WINDOW || {};
1554 if (!w$2[NAMESPACE_IDENTIFIER]) w$2[NAMESPACE_IDENTIFIER] = {};
1555 if (!w$2[NAMESPACE_IDENTIFIER].styles) w$2[NAMESPACE_IDENTIFIER].styles = {};
1556 if (!w$2[NAMESPACE_IDENTIFIER].hooks) w$2[NAMESPACE_IDENTIFIER].hooks = {};
1557 if (!w$2[NAMESPACE_IDENTIFIER].shims) w$2[NAMESPACE_IDENTIFIER].shims = [];
1558 var namespace = w$2[NAMESPACE_IDENTIFIER];
1559
1560 var functions = [];
1561 var _listener = function listener() {
1562 DOCUMENT.removeEventListener('DOMContentLoaded', _listener);
1563 loaded = 1;
1564 functions.map(function (fn) {
1565 return fn();
1566 });
1567 };
1568 var loaded = false;
1569 if (IS_DOM) {
1570 loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);
1571 if (!loaded) DOCUMENT.addEventListener('DOMContentLoaded', _listener);
1572 }
1573 function domready (fn) {
1574 if (!IS_DOM) return;
1575 loaded ? setTimeout(fn, 0) : functions.push(fn);
1576 }
1577
1578 function toHtml(abstractNodes) {
1579 var tag = abstractNodes.tag,
1580 _abstractNodes$attrib = abstractNodes.attributes,
1581 attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib,
1582 _abstractNodes$childr = abstractNodes.children,
1583 children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;
1584 if (typeof abstractNodes === 'string') {
1585 return htmlEscape(abstractNodes);
1586 } else {
1587 return "<".concat(tag, " ").concat(joinAttributes(attributes), ">").concat(children.map(toHtml).join(''), "</").concat(tag, ">");
1588 }
1589 }
1590
1591 function iconFromMapping(mapping, prefix, iconName) {
1592 if (mapping && mapping[prefix] && mapping[prefix][iconName]) {
1593 return {
1594 prefix: prefix,
1595 iconName: iconName,
1596 icon: mapping[prefix][iconName]
1597 };
1598 }
1599 }
1600
1601 /**
1602 * Internal helper to bind a function known to have 4 arguments
1603 * to a given context.
1604 */
1605 var bindInternal4 = function bindInternal4(func, thisContext) {
1606 return function (a, b, c, d) {
1607 return func.call(thisContext, a, b, c, d);
1608 };
1609 };
1610
1611 /**
1612 * # Reduce
1613 *
1614 * A fast object `.reduce()` implementation.
1615 *
1616 * @param {Object} subject The object to reduce over.
1617 * @param {Function} fn The reducer function.
1618 * @param {mixed} initialValue The initial value for the reducer, defaults to subject[0].
1619 * @param {Object} thisContext The context for the reducer.
1620 * @return {mixed} The final result.
1621 */
1622 var reduce = function fastReduceObject(subject, fn, initialValue, thisContext) {
1623 var keys = Object.keys(subject),
1624 length = keys.length,
1625 iterator = thisContext !== undefined ? bindInternal4(fn, thisContext) : fn,
1626 i,
1627 key,
1628 result;
1629 if (initialValue === undefined) {
1630 i = 1;
1631 result = subject[keys[0]];
1632 } else {
1633 i = 0;
1634 result = initialValue;
1635 }
1636 for (; i < length; i++) {
1637 key = keys[i];
1638 result = iterator(result, subject[key], key, subject);
1639 }
1640 return result;
1641 };
1642
1643 /**
1644 * Return hexadecimal string for a unicode character
1645 * Returns `null` when more than one character (not bytes!) are passed
1646 * For example: 'K' → '7B'
1647 */
1648 function toHex(unicode) {
1649 if (_toConsumableArray(unicode).length !== 1) return null;
1650 return unicode.codePointAt(0).toString(16);
1651 }
1652
1653 function normalizeIcons(icons) {
1654 return Object.keys(icons).reduce(function (acc, iconName) {
1655 var icon = icons[iconName];
1656 var expanded = !!icon.icon;
1657 if (expanded) {
1658 acc[icon.iconName] = icon.icon;
1659 } else {
1660 acc[iconName] = icon;
1661 }
1662 return acc;
1663 }, {});
1664 }
1665 function defineIcons(prefix, icons) {
1666 var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
1667 var _params$skipHooks = params.skipHooks,
1668 skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
1669 var normalized = normalizeIcons(icons);
1670 if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {
1671 namespace.hooks.addPack(prefix, normalizeIcons(icons));
1672 } else {
1673 namespace.styles[prefix] = _objectSpread2(_objectSpread2({}, namespace.styles[prefix] || {}), normalized);
1674 }
1675
1676 /**
1677 * Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
1678 * of new styles we needed to differentiate between them. Prefix `fa` is now an alias
1679 * for `fas` so we'll ease the upgrade process for our users by automatically defining
1680 * this as well.
1681 */
1682 if (prefix === 'fas') {
1683 defineIcons('fa', icons);
1684 }
1685 }
1686
1687 var MONO = 0x1;
1688 var DUO = 0x2;
1689
1690 // New v7 compatible matchers using the style attribute to determine layer membership
1691 var modernMatches = [[DUO, /*#__PURE__*/_wrapRegExp(/path opacity="([^"]*)".*d="([^"]*)".*path.*d="([^"]*)"/, {
1692 d2: 2,
1693 d1: 3
1694 })], [DUO, /*#__PURE__*/_wrapRegExp(/path opacity="([^"]*)".*d="([^"]*)"/, {
1695 d2: 2
1696 })], [MONO, /*#__PURE__*/_wrapRegExp(/path fill="currentColor".*d="([^"]+)"/, {
1697 d1: 1
1698 })]];
1699
1700 // Old <= v6 matchers, these should rarely get used.
1701 //
1702 // Why are there so many? Over the lifecycle of version 5 and 6 we modified the
1703 // syntax for our source SVG files several times. These patterns match the
1704 // historical record and attempt to handle backwards-compatibility in rare edge
1705 // cases (loading version 6 SVG source files using the version 7 SVG parser)
1706 var legacyMatches = [[DUO, /*#__PURE__*/_wrapRegExp(/path class="([^"]*secondary[^"]*)".*d="([^"]+)".*path class="([^"]*primary[^"]*)".*d="([^"]+)"/, {
1707 attr2: 1,
1708 d2: 2,
1709 attr1: 3,
1710 d1: 4
1711 })], [DUO, /*#__PURE__*/_wrapRegExp(/path class="([^"]*primary[^"]*)".*d="([^"]+)".*path class="([^"]*secondary[^"]*)".*d="([^"]+)"/, {
1712 attr1: 1,
1713 d1: 2,
1714 attr2: 3,
1715 d2: 4
1716 })], [DUO, /*#__PURE__*/_wrapRegExp(/path class="([^"]*primary[^"]*)".*d="([^"]+)"/, {
1717 attr1: 1,
1718 d1: 2
1719 })], [DUO, /*#__PURE__*/_wrapRegExp(/path class="([^"]*secondary[^"]*)".*d="([^"]+)"/, {
1720 attr2: 1,
1721 d2: 2
1722 })], [DUO, /*#__PURE__*/_wrapRegExp(/path d="([^"]+)".*class="([^"]*secondary[^"]*)".*path d="([^"]+)".*class="([^"]*primary[^"]*)"/, {
1723 d2: 1,
1724 attr2: 2,
1725 d1: 3,
1726 attr1: 4
1727 })], [DUO, /*#__PURE__*/_wrapRegExp(/path d="([^"]+)".*class="([^"]*primary[^"]*)".*path d="([^"]+)".*class="([^"]*secondary[^"]*)"/, {
1728 d1: 1,
1729 attr1: 2,
1730 d2: 3,
1731 attr2: 4
1732 })], [DUO, /*#__PURE__*/_wrapRegExp(/path d="([^"]+)".*class="([^"]*primary[^"]*)"/, {
1733 d1: 1,
1734 attr1: 2
1735 })], [DUO, /*#__PURE__*/_wrapRegExp(/path d="([^"]+)".*class="([^"]*secondary[^"]*)"/, {
1736 d2: 1,
1737 attr2: 2
1738 })], [DUO, /*#__PURE__*/_wrapRegExp(/path d="([^"]+)".*path d="([^"]+)"/, {
1739 d1: 1,
1740 d2: 2
1741 })], [MONO, /*#__PURE__*/_wrapRegExp(/path d="([^"]+)"/, {
1742 d1: 1
1743 })], [MONO, /*#__PURE__*/_wrapRegExp(/path style="([^"]+)".*d="([^"]+)"/, {
1744 attr1: 1,
1745 d1: 2
1746 })]];
1747
1748 var styles = namespace.styles,
1749 shims = namespace.shims;
1750 var FAMILY_NAMES = Object.keys(PREFIX_TO_LONG_STYLE);
1751 var PREFIXES_FOR_FAMILY = FAMILY_NAMES.reduce(function (acc, familyId) {
1752 acc[familyId] = Object.keys(PREFIX_TO_LONG_STYLE[familyId]);
1753 return acc;
1754 }, {});
1755 var _defaultUsablePrefix = null;
1756 var _byUnicode = {};
1757 var _byLigature = {};
1758 var _byOldName = {};
1759 var _byOldUnicode = {};
1760 var _byAlias = {};
1761 function isReserved(name) {
1762 return ~RESERVED_CLASSES.indexOf(name);
1763 }
1764 function getIconName(cssPrefix, cls) {
1765 var parts = cls.split('-');
1766 var prefix = parts[0];
1767 var iconName = parts.slice(1).join('-');
1768 if (prefix === cssPrefix && iconName !== '' && !isReserved(iconName)) {
1769 return iconName;
1770 } else {
1771 return null;
1772 }
1773 }
1774 var build = function build() {
1775 var lookup = function lookup(reducer) {
1776 return reduce(styles, function (o$$1, style, prefix) {
1777 o$$1[prefix] = reduce(style, reducer, {});
1778 return o$$1;
1779 }, {});
1780 };
1781 _byUnicode = lookup(function (acc, icon, iconName) {
1782 if (icon[3]) {
1783 acc[icon[3]] = iconName;
1784 }
1785 if (icon[2]) {
1786 var aliases = icon[2].filter(function (a$$1) {
1787 return typeof a$$1 === 'number';
1788 });
1789 aliases.forEach(function (alias) {
1790 acc[alias.toString(16)] = iconName;
1791 });
1792 }
1793 return acc;
1794 });
1795 _byLigature = lookup(function (acc, icon, iconName) {
1796 acc[iconName] = iconName;
1797 if (icon[2]) {
1798 var aliases = icon[2].filter(function (a$$1) {
1799 return typeof a$$1 === 'string';
1800 });
1801 aliases.forEach(function (alias) {
1802 acc[alias] = iconName;
1803 });
1804 }
1805 return acc;
1806 });
1807 _byAlias = lookup(function (acc, icon, iconName) {
1808 var aliases = icon[2];
1809 acc[iconName] = iconName;
1810 aliases.forEach(function (alias) {
1811 acc[alias] = iconName;
1812 });
1813 return acc;
1814 });
1815
1816 // If we have a Kit, we can't determine if regular is available since we
1817 // could be auto-fetching it. We'll have to assume that it is available.
1818 var hasRegular = 'far' in styles || config.autoFetchSvg;
1819 var shimLookups = reduce(shims, function (acc, shim) {
1820 var maybeNameMaybeUnicode = shim[0];
1821 var prefix = shim[1];
1822 var iconName = shim[2];
1823 if (prefix === 'far' && !hasRegular) {
1824 prefix = 'fas';
1825 }
1826 if (typeof maybeNameMaybeUnicode === 'string') {
1827 acc.names[maybeNameMaybeUnicode] = {
1828 prefix: prefix,
1829 iconName: iconName
1830 };
1831 }
1832 if (typeof maybeNameMaybeUnicode === 'number') {
1833 acc.unicodes[maybeNameMaybeUnicode.toString(16)] = {
1834 prefix: prefix,
1835 iconName: iconName
1836 };
1837 }
1838 return acc;
1839 }, {
1840 names: {},
1841 unicodes: {}
1842 });
1843 _byOldName = shimLookups.names;
1844 _byOldUnicode = shimLookups.unicodes;
1845 _defaultUsablePrefix = getCanonicalPrefix(config.styleDefault, {
1846 family: config.familyDefault
1847 });
1848 };
1849 onChange(function (c$$1) {
1850 _defaultUsablePrefix = getCanonicalPrefix(c$$1.styleDefault, {
1851 family: config.familyDefault
1852 });
1853 });
1854 build();
1855 function byUnicode(prefix, unicode) {
1856 return (_byUnicode[prefix] || {})[unicode];
1857 }
1858 function byLigature(prefix, ligature) {
1859 return (_byLigature[prefix] || {})[ligature];
1860 }
1861 function byAlias(prefix, alias) {
1862 return (_byAlias[prefix] || {})[alias];
1863 }
1864 function byOldName(name) {
1865 return _byOldName[name] || {
1866 prefix: null,
1867 iconName: null
1868 };
1869 }
1870 function byOldUnicode(unicode) {
1871 var oldUnicode = _byOldUnicode[unicode];
1872 var newUnicode = byUnicode('fas', unicode);
1873 return oldUnicode || (newUnicode ? {
1874 prefix: 'fas',
1875 iconName: newUnicode
1876 } : null) || {
1877 prefix: null,
1878 iconName: null
1879 };
1880 }
1881 function getDefaultUsablePrefix() {
1882 return _defaultUsablePrefix;
1883 }
1884 var emptyCanonicalIcon = function emptyCanonicalIcon() {
1885 return {
1886 prefix: null,
1887 iconName: null,
1888 rest: []
1889 };
1890 };
1891 function getFamilyId(values) {
1892 var family = u;
1893 var famProps = FAMILY_NAMES.reduce(function (acc, familyId) {
1894 acc[familyId] = "".concat(config.cssPrefix, "-").concat(familyId);
1895 return acc;
1896 }, {});
1897 xl.forEach(function (familyId) {
1898 if (values.includes(famProps[familyId]) || values.some(function (v$$1) {
1899 return PREFIXES_FOR_FAMILY[familyId].includes(v$$1);
1900 })) {
1901 family = familyId;
1902 }
1903 });
1904 return family;
1905 }
1906 function getCanonicalPrefix(styleOrPrefix) {
1907 var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1908 var _params$family = params.family,
1909 family = _params$family === void 0 ? u : _params$family;
1910 var style = PREFIX_TO_STYLE[family][styleOrPrefix];
1911
1912 // handles the exception of passing in only a family of 'duotone' with no style
1913 if (family === l && !styleOrPrefix) {
1914 return 'fad';
1915 }
1916 var prefix = STYLE_TO_PREFIX[family][styleOrPrefix] || STYLE_TO_PREFIX[family][style];
1917 var defined = styleOrPrefix in namespace.styles ? styleOrPrefix : null;
1918 var result = prefix || defined || null;
1919 return result;
1920 }
1921 function moveNonFaClassesToRest(classNames) {
1922 var rest = [];
1923 var iconName = null;
1924 classNames.forEach(function (cls) {
1925 var result = getIconName(config.cssPrefix, cls);
1926 if (result) {
1927 iconName = result;
1928 } else if (cls) {
1929 rest.push(cls);
1930 }
1931 });
1932 return {
1933 iconName: iconName,
1934 rest: rest
1935 };
1936 }
1937 function sortedUniqueValues(arr) {
1938 return arr.sort().filter(function (value, index, arr) {
1939 return arr.indexOf(value) === index;
1940 });
1941 }
1942 var _faCombinedClasses = ha.concat(at);
1943 function getCanonicalIcon(values) {
1944 var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1945 var _params$skipLookups = params.skipLookups,
1946 skipLookups = _params$skipLookups === void 0 ? false : _params$skipLookups;
1947 var givenPrefix = null;
1948 var faStyleOrFamilyClasses = sortedUniqueValues(values.filter(function (cls) {
1949 return _faCombinedClasses.includes(cls);
1950 }));
1951 var nonStyleOrFamilyClasses = sortedUniqueValues(values.filter(function (cls) {
1952 return !_faCombinedClasses.includes(cls);
1953 }));
1954 var faStyles = faStyleOrFamilyClasses.filter(function (cls) {
1955 givenPrefix = cls;
1956 return !dl.includes(cls);
1957 });
1958 var _faStyles = _slicedToArray(faStyles, 1),
1959 _faStyles$ = _faStyles[0],
1960 styleFromValues = _faStyles$ === void 0 ? null : _faStyles$;
1961 var family = getFamilyId(faStyleOrFamilyClasses);
1962 var canonical = _objectSpread2(_objectSpread2({}, moveNonFaClassesToRest(nonStyleOrFamilyClasses)), {}, {
1963 prefix: getCanonicalPrefix(styleFromValues, {
1964 family: family
1965 })
1966 });
1967 return _objectSpread2(_objectSpread2(_objectSpread2({}, canonical), getDefaultCanonicalPrefix({
1968 values: values,
1969 family: family,
1970 styles: styles,
1971 config: config,
1972 canonical: canonical,
1973 givenPrefix: givenPrefix
1974 })), applyShimAndAlias(skipLookups, givenPrefix, canonical));
1975 }
1976 function applyShimAndAlias(skipLookups, givenPrefix, canonical) {
1977 var prefix = canonical.prefix,
1978 iconName = canonical.iconName;
1979 if (skipLookups || !prefix || !iconName) {
1980 return {
1981 prefix: prefix,
1982 iconName: iconName
1983 };
1984 }
1985 var shim = givenPrefix === 'fa' ? byOldName(iconName) : {};
1986 var aliasIconName = byAlias(prefix, iconName);
1987 iconName = shim.iconName || aliasIconName || iconName;
1988 prefix = shim.prefix || prefix;
1989 if (prefix === 'far' && !styles['far'] && styles['fas'] && !config.autoFetchSvg) {
1990 // Allow a fallback from the regular style to solid if regular is not available
1991 // but only if we aren't auto-fetching SVGs
1992 prefix = 'fas';
1993 }
1994 return {
1995 prefix: prefix,
1996 iconName: iconName
1997 };
1998 }
1999 var newCanonicalFamilies = xl.filter(function (familyId) {
2000 return familyId !== u || familyId !== l;
2001 });
2002 var newCanonicalStyles = Object.keys(da).filter(function (key) {
2003 return key !== u;
2004 }).map(function (key) {
2005 return Object.keys(da[key]);
2006 }).flat();
2007 function getDefaultCanonicalPrefix(prefixOptions) {
2008 var values = prefixOptions.values,
2009 family = prefixOptions.family,
2010 canonical = prefixOptions.canonical,
2011 _prefixOptions$givenP = prefixOptions.givenPrefix,
2012 givenPrefix = _prefixOptions$givenP === void 0 ? '' : _prefixOptions$givenP,
2013 _prefixOptions$styles = prefixOptions.styles,
2014 styles = _prefixOptions$styles === void 0 ? {} : _prefixOptions$styles,
2015 _prefixOptions$config = prefixOptions.config,
2016 config$$1 = _prefixOptions$config === void 0 ? {} : _prefixOptions$config;
2017 var isDuotoneFamily = family === l;
2018 var valuesHasDuotone = values.includes('fa-duotone') || values.includes('fad');
2019 var defaultFamilyIsDuotone = config$$1.familyDefault === 'duotone';
2020 var canonicalPrefixIsDuotone = canonical.prefix === 'fad' || canonical.prefix === 'fa-duotone';
2021 if (!isDuotoneFamily && (valuesHasDuotone || defaultFamilyIsDuotone || canonicalPrefixIsDuotone)) {
2022 canonical.prefix = 'fad';
2023 }
2024 if (values.includes('fa-brands') || values.includes('fab')) {
2025 canonical.prefix = 'fab';
2026 }
2027 if (!canonical.prefix && newCanonicalFamilies.includes(family)) {
2028 var validPrefix = Object.keys(styles).find(function (key) {
2029 return newCanonicalStyles.includes(key);
2030 });
2031 if (validPrefix || config$$1.autoFetchSvg) {
2032 var defaultPrefix = Ql.get(family).defaultShortPrefixId;
2033 canonical.prefix = defaultPrefix;
2034 canonical.iconName = byAlias(canonical.prefix, canonical.iconName) || canonical.iconName;
2035 }
2036 }
2037 if (canonical.prefix === 'fa' || givenPrefix === 'fa') {
2038 // The fa prefix is not canonical. So if it has made it through until this point
2039 // we will shift it to the correct prefix.
2040 canonical.prefix = getDefaultUsablePrefix() || 'fas';
2041 }
2042 return canonical;
2043 }
2044
2045 var Library = /*#__PURE__*/function () {
2046 function Library() {
2047 _classCallCheck(this, Library);
2048 this.definitions = {};
2049 }
2050 return _createClass(Library, [{
2051 key: "add",
2052 value: function add() {
2053 var _this = this;
2054 for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {
2055 definitions[_key] = arguments[_key];
2056 }
2057 var additions = definitions.reduce(this._pullDefinitions, {});
2058 Object.keys(additions).forEach(function (key) {
2059 _this.definitions[key] = _objectSpread2(_objectSpread2({}, _this.definitions[key] || {}), additions[key]);
2060 defineIcons(key, additions[key]);
2061
2062 // To keep support for older Classic styles, also add longer prefixes
2063 var longPrefix = PREFIX_TO_LONG_STYLE[u][key];
2064 if (longPrefix) defineIcons(longPrefix, additions[key]);
2065 build();
2066 });
2067 }
2068 }, {
2069 key: "reset",
2070 value: function reset() {
2071 this.definitions = {};
2072 }
2073 }, {
2074 key: "_pullDefinitions",
2075 value: function _pullDefinitions(additions, definition) {
2076 var normalized = definition.prefix && definition.iconName && definition.icon ? {
2077 0: definition
2078 } : definition;
2079 Object.keys(normalized).map(function (key) {
2080 var _normalized$key = normalized[key],
2081 prefix = _normalized$key.prefix,
2082 iconName = _normalized$key.iconName,
2083 icon = _normalized$key.icon;
2084 var aliases = icon[2];
2085 if (!additions[prefix]) additions[prefix] = {};
2086 if (aliases.length > 0) {
2087 aliases.forEach(function (alias) {
2088 if (typeof alias === 'string') {
2089 additions[prefix][alias] = icon;
2090 }
2091 });
2092 }
2093 additions[prefix][iconName] = icon;
2094 });
2095 return additions;
2096 }
2097 }]);
2098 }();
2099
2100 var _plugins = [];
2101 var _hooks = {};
2102 var providers = {};
2103 var defaultProviderKeys = Object.keys(providers);
2104 function registerPlugins(nextPlugins, _ref) {
2105 var obj = _ref.mixoutsTo;
2106 _plugins = nextPlugins;
2107 _hooks = {};
2108 Object.keys(providers).forEach(function (k) {
2109 if (defaultProviderKeys.indexOf(k) === -1) {
2110 delete providers[k];
2111 }
2112 });
2113 _plugins.forEach(function (plugin) {
2114 var mixout = plugin.mixout ? plugin.mixout() : {};
2115 Object.keys(mixout).forEach(function (tk) {
2116 if (typeof mixout[tk] === 'function') {
2117 obj[tk] = mixout[tk];
2118 }
2119 if (_typeof(mixout[tk]) === 'object') {
2120 Object.keys(mixout[tk]).forEach(function (sk) {
2121 if (!obj[tk]) {
2122 obj[tk] = {};
2123 }
2124 obj[tk][sk] = mixout[tk][sk];
2125 });
2126 }
2127 });
2128 if (plugin.hooks) {
2129 var hooks = plugin.hooks();
2130 Object.keys(hooks).forEach(function (hook) {
2131 if (!_hooks[hook]) {
2132 _hooks[hook] = [];
2133 }
2134 _hooks[hook].push(hooks[hook]);
2135 });
2136 }
2137 if (plugin.provides) {
2138 plugin.provides(providers);
2139 }
2140 });
2141 return obj;
2142 }
2143 function chainHooks(hook, accumulator) {
2144 for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
2145 args[_key - 2] = arguments[_key];
2146 }
2147 var hookFns = _hooks[hook] || [];
2148 hookFns.forEach(function (hookFn) {
2149 accumulator = hookFn.apply(null, [accumulator].concat(args));
2150 });
2151 return accumulator;
2152 }
2153 function callHooks(hook) {
2154 for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
2155 args[_key2 - 1] = arguments[_key2];
2156 }
2157 var hookFns = _hooks[hook] || [];
2158 hookFns.forEach(function (hookFn) {
2159 hookFn.apply(null, args);
2160 });
2161 return undefined;
2162 }
2163 function callProvided() {
2164 var hook = arguments[0];
2165 var args = Array.prototype.slice.call(arguments, 1);
2166 return providers[hook] ? providers[hook].apply(null, args) : undefined;
2167 }
2168
2169 function findIconDefinition(iconLookup) {
2170 if (iconLookup.prefix === 'fa') {
2171 iconLookup.prefix = 'fas';
2172 }
2173 var iconName = iconLookup.iconName;
2174 var prefix = iconLookup.prefix || getDefaultUsablePrefix();
2175 if (!iconName) return;
2176 iconName = byAlias(prefix, iconName) || iconName;
2177 return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);
2178 }
2179 var library = new Library();
2180 var noAuto = function noAuto() {
2181 config.autoReplaceSvg = false;
2182 config.observeMutations = false;
2183 callHooks('noAuto');
2184 };
2185 var dom = {
2186 i2svg: function i2svg() {
2187 var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2188 if (IS_DOM) {
2189 callHooks('beforeI2svg', params);
2190 callProvided('pseudoElements2svg', params);
2191 return callProvided('i2svg', params);
2192 } else {
2193 return Promise.reject(new Error('Operation requires a DOM of some kind.'));
2194 }
2195 },
2196 watch: function watch() {
2197 var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2198 var autoReplaceSvgRoot = params.autoReplaceSvgRoot;
2199 if (config.autoReplaceSvg === false) {
2200 config.autoReplaceSvg = true;
2201 }
2202 config.observeMutations = true;
2203 domready(function () {
2204 autoReplace({
2205 autoReplaceSvgRoot: autoReplaceSvgRoot
2206 });
2207 callHooks('watch', params);
2208 });
2209 }
2210 };
2211 var parse = {
2212 icon: function icon(_icon) {
2213 if (_icon === null) {
2214 return null;
2215 }
2216 if (_typeof(_icon) === 'object' && _icon.prefix && _icon.iconName) {
2217 return {
2218 prefix: _icon.prefix,
2219 iconName: byAlias(_icon.prefix, _icon.iconName) || _icon.iconName
2220 };
2221 }
2222 if (Array.isArray(_icon) && _icon.length === 2) {
2223 var iconName = _icon[1].indexOf('fa-') === 0 ? _icon[1].slice(3) : _icon[1];
2224 var prefix = getCanonicalPrefix(_icon[0]);
2225 return {
2226 prefix: prefix,
2227 iconName: byAlias(prefix, iconName) || iconName
2228 };
2229 }
2230 if (typeof _icon === 'string' && (_icon.indexOf("".concat(config.cssPrefix, "-")) > -1 || _icon.match(ICON_SELECTION_SYNTAX_PATTERN))) {
2231 var canonicalIcon = getCanonicalIcon(_icon.split(' '), {
2232 skipLookups: true
2233 });
2234 return {
2235 prefix: canonicalIcon.prefix || getDefaultUsablePrefix(),
2236 iconName: byAlias(canonicalIcon.prefix, canonicalIcon.iconName) || canonicalIcon.iconName
2237 };
2238 }
2239 if (typeof _icon === 'string') {
2240 var _prefix = getDefaultUsablePrefix();
2241 return {
2242 prefix: _prefix,
2243 iconName: byAlias(_prefix, _icon) || _icon
2244 };
2245 }
2246 }
2247 };
2248 var api = {
2249 noAuto: noAuto,
2250 config: config,
2251 dom: dom,
2252 parse: parse,
2253 library: library,
2254 findIconDefinition: findIconDefinition,
2255 toHtml: toHtml
2256 };
2257 var autoReplace = function autoReplace() {
2258 var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2259 var _params$autoReplaceSv = params.autoReplaceSvgRoot,
2260 autoReplaceSvgRoot = _params$autoReplaceSv === void 0 ? DOCUMENT : _params$autoReplaceSv;
2261 if ((Object.keys(namespace.styles).length > 0 || config.autoFetchSvg) && IS_DOM && config.autoReplaceSvg) api.dom.i2svg({
2262 node: autoReplaceSvgRoot
2263 });
2264 };
2265
2266 function domVariants(val, abstractCreator) {
2267 Object.defineProperty(val, 'abstract', {
2268 get: abstractCreator
2269 });
2270 Object.defineProperty(val, 'html', {
2271 get: function get() {
2272 return val.abstract.map(function (a) {
2273 return toHtml(a);
2274 });
2275 }
2276 });
2277 Object.defineProperty(val, 'node', {
2278 get: function get() {
2279 if (!IS_DOM) return undefined;
2280 var container = DOCUMENT.createElement('div');
2281 container.innerHTML = val.html;
2282 return container.children;
2283 }
2284 });
2285 return val;
2286 }
2287
2288 function asIcon (_ref) {
2289 var children = _ref.children,
2290 main = _ref.main,
2291 mask = _ref.mask,
2292 attributes = _ref.attributes,
2293 styles = _ref.styles,
2294 transform = _ref.transform;
2295 if (transformIsMeaningful(transform) && main.found && !mask.found) {
2296 var width = main.width,
2297 height = main.height;
2298 var offset = {
2299 x: width / height / 2,
2300 y: 0.5
2301 };
2302 attributes['style'] = joinStyles(_objectSpread2(_objectSpread2({}, styles), {}, {
2303 'transform-origin': "".concat(offset.x + transform.x / 16, "em ").concat(offset.y + transform.y / 16, "em")
2304 }));
2305 }
2306 return [{
2307 tag: 'svg',
2308 attributes: attributes,
2309 children: children
2310 }];
2311 }
2312
2313 function asSymbol (_ref) {
2314 var prefix = _ref.prefix,
2315 iconName = _ref.iconName,
2316 children = _ref.children,
2317 attributes = _ref.attributes,
2318 symbol = _ref.symbol;
2319 var id = symbol === true ? "".concat(prefix, "-").concat(config.cssPrefix, "-").concat(iconName) : symbol;
2320 return [{
2321 tag: 'svg',
2322 attributes: {
2323 style: 'display: none;'
2324 },
2325 children: [{
2326 tag: 'symbol',
2327 attributes: _objectSpread2(_objectSpread2({}, attributes), {}, {
2328 id: id
2329 }),
2330 children: children
2331 }]
2332 }];
2333 }
2334
2335 // If any of these attributes are present, don't assume the icon is decorative
2336 function isLabeled(attributes) {
2337 var labels = ['aria-label', 'aria-labelledby', 'title', 'role'];
2338 return labels.some(function (label) {
2339 return label in attributes;
2340 });
2341 }
2342 function makeInlineSvgAbstract(params) {
2343 var _params$icons = params.icons,
2344 main = _params$icons.main,
2345 mask = _params$icons.mask,
2346 prefix = params.prefix,
2347 iconName = params.iconName,
2348 transform = params.transform,
2349 symbol = params.symbol,
2350 maskId = params.maskId,
2351 extra = params.extra,
2352 _params$watchable = params.watchable,
2353 watchable = _params$watchable === void 0 ? false : _params$watchable;
2354 var _ref = mask.found ? mask : main,
2355 width = _ref.width,
2356 height = _ref.height;
2357 var attrClass = [config.replacementClass, iconName ? "".concat(config.cssPrefix, "-").concat(iconName) : ''].filter(function (c) {
2358 return extra.classes.indexOf(c) === -1;
2359 }).filter(function (c) {
2360 return c !== '' || !!c;
2361 }).concat(extra.classes).join(' ');
2362 var content = {
2363 children: [],
2364 attributes: _objectSpread2(_objectSpread2({}, extra.attributes), {}, {
2365 'data-prefix': prefix,
2366 'data-icon': iconName,
2367 'class': attrClass,
2368 'role': extra.attributes.role || 'img',
2369 'viewBox': "0 0 ".concat(width, " ").concat(height)
2370 })
2371 };
2372 if (!isLabeled(extra.attributes) && !extra.attributes['aria-hidden']) {
2373 content.attributes['aria-hidden'] = 'true';
2374 }
2375 if (watchable) {
2376 content.attributes[DATA_FA_I2SVG] = '';
2377 }
2378 var args = _objectSpread2(_objectSpread2({}, content), {}, {
2379 prefix: prefix,
2380 iconName: iconName,
2381 main: main,
2382 mask: mask,
2383 maskId: maskId,
2384 transform: transform,
2385 symbol: symbol,
2386 styles: _objectSpread2({}, extra.styles)
2387 });
2388 var _ref2 = mask.found && main.found ? callProvided('generateAbstractMask', args) || {
2389 children: [],
2390 attributes: {}
2391 } : callProvided('generateAbstractIcon', args) || {
2392 children: [],
2393 attributes: {}
2394 },
2395 children = _ref2.children,
2396 attributes = _ref2.attributes;
2397 args.children = children;
2398 args.attributes = attributes;
2399 if (symbol) {
2400 return asSymbol(args);
2401 } else {
2402 return asIcon(args);
2403 }
2404 }
2405 function makeLayersTextAbstract(params) {
2406 var content = params.content,
2407 width = params.width,
2408 height = params.height,
2409 transform = params.transform,
2410 extra = params.extra,
2411 _params$watchable2 = params.watchable,
2412 watchable = _params$watchable2 === void 0 ? false : _params$watchable2;
2413 var attributes = _objectSpread2(_objectSpread2({}, extra.attributes), {}, {
2414 class: extra.classes.join(' ')
2415 });
2416 if (watchable) {
2417 attributes[DATA_FA_I2SVG] = '';
2418 }
2419 var styles = _objectSpread2({}, extra.styles);
2420 if (transformIsMeaningful(transform)) {
2421 styles['transform'] = transformForCss({
2422 transform: transform,
2423 startCentered: true,
2424 width: width,
2425 height: height
2426 });
2427 styles['-webkit-transform'] = styles['transform'];
2428 }
2429 var styleString = joinStyles(styles);
2430 if (styleString.length > 0) {
2431 attributes['style'] = styleString;
2432 }
2433 var val = [];
2434 val.push({
2435 tag: 'span',
2436 attributes: attributes,
2437 children: [content]
2438 });
2439 return val;
2440 }
2441 function makeLayersCounterAbstract(params) {
2442 var content = params.content,
2443 extra = params.extra;
2444 var attributes = _objectSpread2(_objectSpread2({}, extra.attributes), {}, {
2445 class: extra.classes.join(' ')
2446 });
2447 var styleString = joinStyles(extra.styles);
2448 if (styleString.length > 0) {
2449 attributes['style'] = styleString;
2450 }
2451 var val = [];
2452 val.push({
2453 tag: 'span',
2454 attributes: attributes,
2455 children: [content]
2456 });
2457 return val;
2458 }
2459
2460 var styles$1 = namespace.styles;
2461 function asFoundIcon(icon) {
2462 var width = icon[0];
2463 var height = icon[1];
2464 var _icon$slice = icon.slice(4),
2465 _icon$slice2 = _slicedToArray(_icon$slice, 1),
2466 vectorData = _icon$slice2[0];
2467 var element = null;
2468 if (Array.isArray(vectorData)) {
2469 element = {
2470 tag: 'g',
2471 attributes: {
2472 class: "".concat(config.cssPrefix, "-").concat(DUOTONE_CLASSES.GROUP)
2473 },
2474 children: [{
2475 tag: 'path',
2476 attributes: {
2477 class: "".concat(config.cssPrefix, "-").concat(DUOTONE_CLASSES.SECONDARY),
2478 fill: 'currentColor',
2479 d: vectorData[0]
2480 }
2481 }, {
2482 tag: 'path',
2483 attributes: {
2484 class: "".concat(config.cssPrefix, "-").concat(DUOTONE_CLASSES.PRIMARY),
2485 fill: 'currentColor',
2486 d: vectorData[1]
2487 }
2488 }]
2489 };
2490 } else {
2491 element = {
2492 tag: 'path',
2493 attributes: {
2494 fill: 'currentColor',
2495 d: vectorData
2496 }
2497 };
2498 }
2499 return {
2500 found: true,
2501 width: width,
2502 height: height,
2503 icon: element
2504 };
2505 }
2506 var missingIconResolutionMixin = {
2507 found: false,
2508 width: 512,
2509 height: 512
2510 };
2511 function maybeNotifyMissing(iconName, prefix) {
2512 if (!PRODUCTION && !config.showMissingIcons && iconName) {
2513 console.error("Icon with name \"".concat(iconName, "\" and prefix \"").concat(prefix, "\" is missing."));
2514 }
2515 }
2516 function findIcon(iconName, prefix) {
2517 var givenPrefix = prefix;
2518 if (prefix === 'fa' && config.styleDefault !== null) {
2519 prefix = getDefaultUsablePrefix();
2520 }
2521 return new Promise(function (resolve, reject) {
2522 if (givenPrefix === 'fa') {
2523 var shim = byOldName(iconName) || {};
2524 iconName = shim.iconName || iconName;
2525 prefix = shim.prefix || prefix;
2526 }
2527 if (iconName && prefix && styles$1[prefix] && styles$1[prefix][iconName]) {
2528 var icon = styles$1[prefix][iconName];
2529 return resolve(asFoundIcon(icon));
2530 }
2531 maybeNotifyMissing(iconName, prefix);
2532 resolve(_objectSpread2(_objectSpread2({}, missingIconResolutionMixin), {}, {
2533 icon: config.showMissingIcons && iconName ? callProvided('missingIconAbstract') || {} : {}
2534 }));
2535 });
2536 }
2537
2538 var noop$1 = function noop() {};
2539 var p$2 = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {
2540 mark: noop$1,
2541 measure: noop$1
2542 };
2543 var preamble = "FA \"7.3.0\"";
2544 var begin = function begin(name) {
2545 p$2.mark("".concat(preamble, " ").concat(name, " begins"));
2546 return function () {
2547 return end(name);
2548 };
2549 };
2550 var end = function end(name) {
2551 p$2.mark("".concat(preamble, " ").concat(name, " ends"));
2552 p$2.measure("".concat(preamble, " ").concat(name), "".concat(preamble, " ").concat(name, " begins"), "".concat(preamble, " ").concat(name, " ends"));
2553 };
2554 var perf = {
2555 begin: begin,
2556 end: end
2557 };
2558
2559 var noop$2 = function noop() {};
2560 function isWatched(node) {
2561 var i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;
2562 return typeof i2svg === 'string';
2563 }
2564 function hasPrefixAndIcon(node) {
2565 var prefix = node.getAttribute ? node.getAttribute(DATA_PREFIX) : null;
2566 var icon = node.getAttribute ? node.getAttribute(DATA_ICON) : null;
2567 return prefix && icon;
2568 }
2569 function hasBeenReplaced(node) {
2570 return node && node.classList && node.classList.contains && node.classList.contains(config.replacementClass);
2571 }
2572 function getMutator() {
2573 if (config.autoReplaceSvg === true) {
2574 return mutators.replace;
2575 }
2576 var mutator = mutators[config.autoReplaceSvg];
2577 return mutator || mutators.replace;
2578 }
2579 function createElementNS(tag) {
2580 return DOCUMENT.createElementNS('http://www.w3.org/2000/svg', tag);
2581 }
2582 function createElement(tag) {
2583 return DOCUMENT.createElement(tag);
2584 }
2585 function convertSVG(abstractObj) {
2586 var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2587 var _params$ceFn = params.ceFn,
2588 ceFn = _params$ceFn === void 0 ? abstractObj.tag === 'svg' ? createElementNS : createElement : _params$ceFn;
2589 if (typeof abstractObj === 'string') {
2590 return DOCUMENT.createTextNode(abstractObj);
2591 }
2592 var tag = ceFn(abstractObj.tag);
2593 Object.keys(abstractObj.attributes || []).forEach(function (key) {
2594 tag.setAttribute(key, abstractObj.attributes[key]);
2595 });
2596 var children = abstractObj.children || [];
2597 children.forEach(function (child) {
2598 tag.appendChild(convertSVG(child, {
2599 ceFn: ceFn
2600 }));
2601 });
2602 return tag;
2603 }
2604 function nodeAsComment(node) {
2605 var comment = " ".concat(node.outerHTML, " ");
2606 /* BEGIN.ATTRIBUTION */
2607 comment = "".concat(comment, "Font Awesome fontawesome.com ");
2608 /* END.ATTRIBUTION */
2609 return comment;
2610 }
2611 var mutators = {
2612 replace: function replace(mutation) {
2613 var node = mutation[0];
2614 if (node.parentNode) {
2615 mutation[1].forEach(function (abstract) {
2616 node.parentNode.insertBefore(convertSVG(abstract), node);
2617 });
2618 if (node.getAttribute(DATA_FA_I2SVG) === null && config.keepOriginalSource) {
2619 var comment = DOCUMENT.createComment(nodeAsComment(node));
2620 node.parentNode.replaceChild(comment, node);
2621 } else {
2622 node.remove();
2623 }
2624 }
2625 },
2626 nest: function nest(mutation) {
2627 var node = mutation[0];
2628 var abstract = mutation[1];
2629
2630 // If we already have a replaced node we do not want to continue nesting within it.
2631 // Short-circuit to the standard replacement
2632 if (~classArray(node).indexOf(config.replacementClass)) {
2633 return mutators.replace(mutation);
2634 }
2635 var forSvg = new RegExp("".concat(config.cssPrefix, "-.*"));
2636 delete abstract[0].attributes.id;
2637 if (abstract[0].attributes.class) {
2638 var splitClasses = abstract[0].attributes.class.split(' ').reduce(function (acc, cls) {
2639 if (cls === config.replacementClass || cls.match(forSvg)) {
2640 acc.toSvg.push(cls);
2641 } else {
2642 acc.toNode.push(cls);
2643 }
2644 return acc;
2645 }, {
2646 toNode: [],
2647 toSvg: []
2648 });
2649 abstract[0].attributes.class = splitClasses.toSvg.join(' ');
2650 if (splitClasses.toNode.length === 0) {
2651 node.removeAttribute('class');
2652 } else {
2653 node.setAttribute('class', splitClasses.toNode.join(' '));
2654 }
2655 }
2656 var newInnerHTML = abstract.map(function (a) {
2657 return toHtml(a);
2658 }).join('\n');
2659 node.setAttribute(DATA_FA_I2SVG, '');
2660 node.innerHTML = newInnerHTML;
2661 }
2662 };
2663 function performOperationSync(op) {
2664 op();
2665 }
2666 function perform(mutations, callback) {
2667 var callbackFunction = typeof callback === 'function' ? callback : noop$2;
2668 if (mutations.length === 0) {
2669 callbackFunction();
2670 } else {
2671 var frame = performOperationSync;
2672 if (config.mutateApproach === MUTATION_APPROACH_ASYNC) {
2673 frame = WINDOW.requestAnimationFrame || performOperationSync;
2674 }
2675 frame(function () {
2676 var mutator = getMutator();
2677 var mark = perf.begin('mutate');
2678 mutations.map(mutator);
2679 mark();
2680 callbackFunction();
2681 });
2682 }
2683 }
2684 var disabled = false;
2685 function disableObservation() {
2686 disabled = true;
2687 }
2688 function enableObservation() {
2689 disabled = false;
2690 }
2691 var mo = null;
2692 function observe(options) {
2693 if (!MUTATION_OBSERVER) {
2694 return;
2695 }
2696 if (!config.observeMutations) {
2697 return;
2698 }
2699 var _options$treeCallback = options.treeCallback,
2700 treeCallback = _options$treeCallback === void 0 ? noop$2 : _options$treeCallback,
2701 _options$nodeCallback = options.nodeCallback,
2702 nodeCallback = _options$nodeCallback === void 0 ? noop$2 : _options$nodeCallback,
2703 _options$pseudoElemen = options.pseudoElementsCallback,
2704 pseudoElementsCallback = _options$pseudoElemen === void 0 ? noop$2 : _options$pseudoElemen,
2705 _options$observeMutat = options.observeMutationsRoot,
2706 observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT : _options$observeMutat;
2707 mo = new MUTATION_OBSERVER(function (objects) {
2708 if (disabled) return;
2709 var defaultPrefix = getDefaultUsablePrefix();
2710 toArray(objects).forEach(function (mutationRecord) {
2711 if (mutationRecord.type === 'childList' && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {
2712 if (config.searchPseudoElements) {
2713 pseudoElementsCallback(mutationRecord.target);
2714 }
2715 treeCallback(mutationRecord.target);
2716 }
2717 if (mutationRecord.type === 'attributes' && mutationRecord.target.parentNode && config.searchPseudoElements) {
2718 pseudoElementsCallback([mutationRecord.target], true);
2719 }
2720 if (mutationRecord.type === 'attributes' && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {
2721 if (mutationRecord.attributeName === 'class' && hasPrefixAndIcon(mutationRecord.target)) {
2722 var _getCanonicalIcon = getCanonicalIcon(classArray(mutationRecord.target)),
2723 prefix = _getCanonicalIcon.prefix,
2724 iconName = _getCanonicalIcon.iconName;
2725 mutationRecord.target.setAttribute(DATA_PREFIX, prefix || defaultPrefix);
2726 if (iconName) mutationRecord.target.setAttribute(DATA_ICON, iconName);
2727 } else if (hasBeenReplaced(mutationRecord.target)) {
2728 nodeCallback(mutationRecord.target);
2729 }
2730 }
2731 });
2732 });
2733 if (!IS_DOM) return;
2734 mo.observe(observeMutationsRoot, {
2735 childList: true,
2736 attributes: true,
2737 characterData: true,
2738 subtree: true
2739 });
2740 }
2741 function disconnect() {
2742 if (!mo) return;
2743 mo.disconnect();
2744 }
2745
2746 function styleParser (node) {
2747 var style = node.getAttribute('style');
2748 var val = [];
2749 if (style) {
2750 val = style.split(';').reduce(function (acc, style) {
2751 var styles = style.split(':');
2752 var prop = styles[0];
2753 var value = styles.slice(1);
2754 if (prop && value.length > 0) {
2755 acc[prop] = value.join(':').trim();
2756 }
2757 return acc;
2758 }, {});
2759 }
2760 return val;
2761 }
2762
2763 function classParser (node) {
2764 var existingPrefix = node.getAttribute('data-prefix');
2765 var existingIconName = node.getAttribute('data-icon');
2766 var innerText = node.innerText !== undefined ? node.innerText.trim() : '';
2767 var val = getCanonicalIcon(classArray(node));
2768 if (!val.prefix) {
2769 val.prefix = getDefaultUsablePrefix();
2770 }
2771 if (existingPrefix && existingIconName) {
2772 val.prefix = existingPrefix;
2773 val.iconName = existingIconName;
2774 }
2775 if (val.iconName && val.prefix) {
2776 return val;
2777 }
2778 if (val.prefix && innerText.length > 0) {
2779 val.iconName = byLigature(val.prefix, node.innerText) || byUnicode(val.prefix, toHex(node.innerText));
2780 }
2781 if (!val.iconName && config.autoFetchSvg && node.firstChild && node.firstChild.nodeType === Node.TEXT_NODE) {
2782 val.iconName = node.firstChild.data;
2783 }
2784 return val;
2785 }
2786
2787 function attributesParser (node) {
2788 var extraAttributes = toArray(node.attributes).reduce(function (acc, attr) {
2789 if (acc.name !== 'class' && acc.name !== 'style') {
2790 acc[attr.name] = attr.value;
2791 }
2792 return acc;
2793 }, {});
2794 return extraAttributes;
2795 }
2796
2797 function blankMeta() {
2798 return {
2799 iconName: null,
2800 prefix: null,
2801 transform: meaninglessTransform,
2802 symbol: false,
2803 mask: {
2804 iconName: null,
2805 prefix: null,
2806 rest: []
2807 },
2808 maskId: null,
2809 extra: {
2810 classes: [],
2811 styles: {},
2812 attributes: {}
2813 }
2814 };
2815 }
2816 function parseMeta(node) {
2817 var parser = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
2818 styleParser: true
2819 };
2820 var _classParser = classParser(node),
2821 iconName = _classParser.iconName,
2822 prefix = _classParser.prefix,
2823 extraClasses = _classParser.rest;
2824 var extraAttributes = attributesParser(node);
2825 var pluginMeta = chainHooks('parseNodeAttributes', {}, node);
2826 var extraStyles = parser.styleParser ? styleParser(node) : [];
2827 return _objectSpread2({
2828 iconName: iconName,
2829 prefix: prefix,
2830 transform: meaninglessTransform,
2831 mask: {
2832 iconName: null,
2833 prefix: null,
2834 rest: []
2835 },
2836 maskId: null,
2837 symbol: false,
2838 extra: {
2839 classes: extraClasses,
2840 styles: extraStyles,
2841 attributes: extraAttributes
2842 }
2843 }, pluginMeta);
2844 }
2845
2846 var styles$2 = namespace.styles;
2847 function generateMutation(node) {
2848 var nodeMeta = config.autoReplaceSvg === 'nest' ? parseMeta(node, {
2849 styleParser: false
2850 }) : parseMeta(node);
2851 if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) {
2852 return callProvided('generateLayersText', node, nodeMeta);
2853 } else {
2854 return callProvided('generateSvgReplacementMutation', node, nodeMeta);
2855 }
2856 }
2857 function getKnownPrefixes() {
2858 return [].concat(_toConsumableArray(at), _toConsumableArray(ha));
2859 }
2860 function onTree(root) {
2861 var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
2862 if (!IS_DOM) return Promise.resolve();
2863 var htmlClassList = DOCUMENT.documentElement.classList;
2864 var hclAdd = function hclAdd(suffix) {
2865 return htmlClassList.add("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
2866 };
2867 var hclRemove = function hclRemove(suffix) {
2868 return htmlClassList.remove("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
2869 };
2870 var prefixes = config.autoFetchSvg ? getKnownPrefixes() : dl.concat(Object.keys(styles$2));
2871 if (!prefixes.includes('fa')) {
2872 prefixes.push('fa');
2873 }
2874 var prefixesDomQuery = [".".concat(LAYERS_TEXT_CLASSNAME, ":not([").concat(DATA_FA_I2SVG, "])")].concat(prefixes.map(function (p$$1) {
2875 return ".".concat(p$$1, ":not([").concat(DATA_FA_I2SVG, "])");
2876 })).join(', ');
2877 if (prefixesDomQuery.length === 0) {
2878 return Promise.resolve();
2879 }
2880 var candidates = [];
2881 try {
2882 candidates = toArray(root.querySelectorAll(prefixesDomQuery));
2883 } catch (e$$1) {
2884 // noop
2885 }
2886 if (candidates.length > 0) {
2887 hclAdd('pending');
2888 hclRemove('complete');
2889 } else {
2890 return Promise.resolve();
2891 }
2892 var mark = perf.begin('onTree');
2893 var mutations = candidates.reduce(function (acc, node) {
2894 try {
2895 var mutation = generateMutation(node);
2896 if (mutation) {
2897 acc.push(mutation);
2898 }
2899 } catch (e$$1) {
2900 if (!PRODUCTION) {
2901 if (e$$1.name === 'MissingIcon') {
2902 console.error(e$$1);
2903 }
2904 }
2905 }
2906 return acc;
2907 }, []);
2908 return new Promise(function (resolve, reject) {
2909 Promise.all(mutations).then(function (resolvedMutations) {
2910 perform(resolvedMutations, function () {
2911 hclAdd('active');
2912 hclAdd('complete');
2913 hclRemove('pending');
2914 if (typeof callback === 'function') callback();
2915 mark();
2916 resolve();
2917 });
2918 }).catch(function (e$$1) {
2919 mark();
2920 reject(e$$1);
2921 });
2922 });
2923 }
2924 function onNode(node) {
2925 var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
2926 generateMutation(node).then(function (mutation) {
2927 if (mutation) {
2928 perform([mutation], callback);
2929 }
2930 });
2931 }
2932 function resolveIcons(next) {
2933 return function (maybeIconDefinition) {
2934 var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2935 var iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});
2936 var mask = params.mask;
2937 if (mask) {
2938 mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});
2939 }
2940 return next(iconDefinition, _objectSpread2(_objectSpread2({}, params), {}, {
2941 mask: mask
2942 }));
2943 };
2944 }
2945 var render = function render(iconDefinition) {
2946 var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2947 var _params$transform = params.transform,
2948 transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,
2949 _params$symbol = params.symbol,
2950 symbol = _params$symbol === void 0 ? false : _params$symbol,
2951 _params$mask = params.mask,
2952 mask = _params$mask === void 0 ? null : _params$mask,
2953 _params$maskId = params.maskId,
2954 maskId = _params$maskId === void 0 ? null : _params$maskId,
2955 _params$classes = params.classes,
2956 classes = _params$classes === void 0 ? [] : _params$classes,
2957 _params$attributes = params.attributes,
2958 attributes = _params$attributes === void 0 ? {} : _params$attributes,
2959 _params$styles = params.styles,
2960 styles = _params$styles === void 0 ? {} : _params$styles;
2961 if (!iconDefinition) return;
2962 var prefix = iconDefinition.prefix,
2963 iconName = iconDefinition.iconName,
2964 icon = iconDefinition.icon;
2965 return domVariants(_objectSpread2({
2966 type: 'icon'
2967 }, iconDefinition), function () {
2968 callHooks('beforeDOMElementCreation', {
2969 iconDefinition: iconDefinition,
2970 params: params
2971 });
2972 return makeInlineSvgAbstract({
2973 icons: {
2974 main: asFoundIcon(icon),
2975 mask: mask ? asFoundIcon(mask.icon) : {
2976 found: false,
2977 width: null,
2978 height: null,
2979 icon: {}
2980 }
2981 },
2982 prefix: prefix,
2983 iconName: iconName,
2984 transform: _objectSpread2(_objectSpread2({}, meaninglessTransform), transform),
2985 symbol: symbol,
2986 maskId: maskId,
2987 extra: {
2988 attributes: attributes,
2989 styles: styles,
2990 classes: classes
2991 }
2992 });
2993 });
2994 };
2995 var ReplaceElements = {
2996 mixout: function mixout() {
2997 return {
2998 icon: resolveIcons(render)
2999 };
3000 },
3001 hooks: function hooks() {
3002 return {
3003 mutationObserverCallbacks: function mutationObserverCallbacks(accumulator) {
3004 accumulator.treeCallback = onTree;
3005 accumulator.nodeCallback = onNode;
3006 return accumulator;
3007 }
3008 };
3009 },
3010 provides: function provides(providers$$1) {
3011 providers$$1.i2svg = function (params) {
3012 var _params$node = params.node,
3013 node = _params$node === void 0 ? DOCUMENT : _params$node,
3014 _params$callback = params.callback,
3015 callback = _params$callback === void 0 ? function () {} : _params$callback;
3016 return onTree(node, callback);
3017 };
3018 providers$$1.generateSvgReplacementMutation = function (node, nodeMeta) {
3019 var iconName = nodeMeta.iconName,
3020 prefix = nodeMeta.prefix,
3021 transform = nodeMeta.transform,
3022 symbol = nodeMeta.symbol,
3023 mask = nodeMeta.mask,
3024 maskId = nodeMeta.maskId,
3025 extra = nodeMeta.extra;
3026 return new Promise(function (resolve, reject) {
3027 Promise.all([findIcon(iconName, prefix), mask.iconName ? findIcon(mask.iconName, mask.prefix) : Promise.resolve({
3028 found: false,
3029 width: 512,
3030 height: 512,
3031 icon: {}
3032 })]).then(function (_ref) {
3033 var _ref2 = _slicedToArray(_ref, 2),
3034 main = _ref2[0],
3035 mask = _ref2[1];
3036 resolve([node, makeInlineSvgAbstract({
3037 icons: {
3038 main: main,
3039 mask: mask
3040 },
3041 prefix: prefix,
3042 iconName: iconName,
3043 transform: transform,
3044 symbol: symbol,
3045 maskId: maskId,
3046 extra: extra,
3047 watchable: true
3048 })]);
3049 }).catch(reject);
3050 });
3051 };
3052 providers$$1.generateAbstractIcon = function (_ref3) {
3053 var children = _ref3.children,
3054 attributes = _ref3.attributes,
3055 main = _ref3.main,
3056 transform = _ref3.transform,
3057 styles = _ref3.styles;
3058 var styleString = joinStyles(styles);
3059 if (styleString.length > 0) {
3060 attributes['style'] = styleString;
3061 }
3062 var nextChild;
3063 if (transformIsMeaningful(transform)) {
3064 nextChild = callProvided('generateAbstractTransformGrouping', {
3065 main: main,
3066 transform: transform,
3067 containerWidth: main.width,
3068 iconWidth: main.width
3069 });
3070 }
3071 children.push(nextChild || main.icon);
3072 return {
3073 children: children,
3074 attributes: attributes
3075 };
3076 };
3077 }
3078 };
3079
3080 var Layers = {
3081 mixout: function mixout() {
3082 return {
3083 layer: function layer(assembler) {
3084 var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
3085 var _params$classes = params.classes,
3086 classes = _params$classes === void 0 ? [] : _params$classes;
3087 return domVariants({
3088 type: 'layer'
3089 }, function () {
3090 callHooks('beforeDOMElementCreation', {
3091 assembler: assembler,
3092 params: params
3093 });
3094 var children = [];
3095 assembler(function (args) {
3096 Array.isArray(args) ? args.map(function (a) {
3097 children = children.concat(a.abstract);
3098 }) : children = children.concat(args.abstract);
3099 });
3100 return [{
3101 tag: 'span',
3102 attributes: {
3103 class: ["".concat(config.cssPrefix, "-layers")].concat(_toConsumableArray(classes)).join(' ')
3104 },
3105 children: children
3106 }];
3107 });
3108 }
3109 };
3110 }
3111 };
3112
3113 var LayersCounter = {
3114 mixout: function mixout() {
3115 return {
3116 counter: function counter(content) {
3117 var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
3118 var _params$title = params.title,
3119 title = _params$title === void 0 ? null : _params$title,
3120 _params$classes = params.classes,
3121 classes = _params$classes === void 0 ? [] : _params$classes,
3122 _params$attributes = params.attributes,
3123 attributes = _params$attributes === void 0 ? {} : _params$attributes,
3124 _params$styles = params.styles,
3125 styles = _params$styles === void 0 ? {} : _params$styles;
3126 return domVariants({
3127 type: 'counter',
3128 content: content
3129 }, function () {
3130 callHooks('beforeDOMElementCreation', {
3131 content: content,
3132 params: params
3133 });
3134 return makeLayersCounterAbstract({
3135 content: content.toString(),
3136 title: title,
3137 extra: {
3138 attributes: attributes,
3139 styles: styles,
3140 classes: ["".concat(config.cssPrefix, "-layers-counter")].concat(_toConsumableArray(classes))
3141 }
3142 });
3143 });
3144 }
3145 };
3146 }
3147 };
3148
3149 var LayersText = {
3150 mixout: function mixout() {
3151 return {
3152 text: function text(content) {
3153 var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
3154 var _params$transform = params.transform,
3155 transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,
3156 _params$classes = params.classes,
3157 classes = _params$classes === void 0 ? [] : _params$classes,
3158 _params$attributes = params.attributes,
3159 attributes = _params$attributes === void 0 ? {} : _params$attributes,
3160 _params$styles = params.styles,
3161 styles = _params$styles === void 0 ? {} : _params$styles;
3162 return domVariants({
3163 type: 'text',
3164 content: content
3165 }, function () {
3166 callHooks('beforeDOMElementCreation', {
3167 content: content,
3168 params: params
3169 });
3170 return makeLayersTextAbstract({
3171 content: content,
3172 transform: _objectSpread2(_objectSpread2({}, meaninglessTransform), transform),
3173 extra: {
3174 attributes: attributes,
3175 styles: styles,
3176 classes: ["".concat(config.cssPrefix, "-layers-text")].concat(_toConsumableArray(classes))
3177 }
3178 });
3179 });
3180 }
3181 };
3182 },
3183 provides: function provides(providers$$1) {
3184 providers$$1.generateLayersText = function (node, nodeMeta) {
3185 var transform = nodeMeta.transform,
3186 extra = nodeMeta.extra;
3187 var width = null;
3188 var height = null;
3189 if (IS_IE) {
3190 var computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);
3191 var boundingClientRect = node.getBoundingClientRect();
3192 width = boundingClientRect.width / computedFontSize;
3193 height = boundingClientRect.height / computedFontSize;
3194 }
3195 return Promise.resolve([node, makeLayersTextAbstract({
3196 content: node.innerHTML,
3197 width: width,
3198 height: height,
3199 transform: transform,
3200 extra: extra,
3201 watchable: true
3202 })]);
3203 };
3204 }
3205 };
3206
3207 var CLEAN_CONTENT_PATTERN = new RegExp("\"", 'ug');
3208 var SECONDARY_UNICODE_RANGE = [1105920, 1112319];
3209 var _FONT_FAMILY_WEIGHT_TO_PREFIX = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, {
3210 FontAwesome: {
3211 normal: 'fas',
3212 400: 'fas'
3213 }
3214 }), zl), wa), ct);
3215 var FONT_FAMILY_WEIGHT_TO_PREFIX = Object.keys(_FONT_FAMILY_WEIGHT_TO_PREFIX).reduce(function (acc, key) {
3216 acc[key.toLowerCase()] = _FONT_FAMILY_WEIGHT_TO_PREFIX[key];
3217 return acc;
3218 }, {});
3219 var FONT_FAMILY_WEIGHT_FALLBACK = Object.keys(FONT_FAMILY_WEIGHT_TO_PREFIX).reduce(function (acc, fontFamily) {
3220 var weights = FONT_FAMILY_WEIGHT_TO_PREFIX[fontFamily];
3221 acc[fontFamily] = weights[900] || _toConsumableArray(Object.entries(weights))[0][1];
3222 return acc;
3223 }, {});
3224
3225 // Return hex value of *first* character in `content`
3226 function hexValueFromContent(content) {
3227 var cleaned = content.replace(CLEAN_CONTENT_PATTERN, '');
3228 return toHex(_toConsumableArray(cleaned)[0] || '');
3229 }
3230
3231 // Check if it's a secondary Duotone layer, by checking if:
3232 // - Unicode value in `content` is repeated
3233 // - Unicode value in `content` is above 0x10000
3234 // - The "ss01" font feature is enabled on the `content`
3235 function isSecondaryLayer(styles) {
3236 var hasStylisticSet = styles.getPropertyValue('font-feature-settings').includes('ss01');
3237 var content = styles.getPropertyValue('content');
3238 var cleaned = content.replace(CLEAN_CONTENT_PATTERN, '');
3239 var codePoint = cleaned.codePointAt(0);
3240 var isPrependTen = codePoint >= SECONDARY_UNICODE_RANGE[0] && codePoint <= SECONDARY_UNICODE_RANGE[1];
3241 var isDoubled = cleaned.length === 2 ? cleaned[0] === cleaned[1] : false;
3242 return isPrependTen || isDoubled || hasStylisticSet;
3243 }
3244 function getPrefix(fontFamily, fontWeight) {
3245 var fontFamilySanitized = fontFamily.replace(/^['"]|['"]$/g, '').toLowerCase();
3246 var fontWeightInteger = parseInt(fontWeight);
3247 var fontWeightSanitized = isNaN(fontWeightInteger) ? 'normal' : fontWeightInteger;
3248 return (FONT_FAMILY_WEIGHT_TO_PREFIX[fontFamilySanitized] || {})[fontWeightSanitized] || FONT_FAMILY_WEIGHT_FALLBACK[fontFamilySanitized];
3249 }
3250 function replaceForPosition(node, position) {
3251 var pendingAttribute = "".concat(DATA_FA_PSEUDO_ELEMENT_PENDING).concat(position.replace(':', '-'));
3252 return new Promise(function (resolve, reject) {
3253 if (node.getAttribute(pendingAttribute) !== null) {
3254 // This node is already being processed
3255 return resolve();
3256 }
3257 var children = toArray(node.children);
3258 var alreadyProcessedPseudoElement = children.filter(function (c$$1) {
3259 return c$$1.getAttribute(DATA_FA_PSEUDO_ELEMENT) === position;
3260 })[0];
3261 var styles = WINDOW.getComputedStyle(node, position);
3262 var fontFamily = styles.getPropertyValue('font-family');
3263 var fontFamilyMatch = fontFamily.match(FONT_FAMILY_PATTERN);
3264 var fontWeight = styles.getPropertyValue('font-weight');
3265 var content = styles.getPropertyValue('content');
3266 if (alreadyProcessedPseudoElement && !fontFamilyMatch) {
3267 // If we've already processed it but the current computed style does not result in a font-family,
3268 // that probably means that a class name that was previously present to make the icon has been
3269 // removed. So we now should delete the icon.
3270 node.removeChild(alreadyProcessedPseudoElement);
3271 return resolve();
3272 } else if (fontFamilyMatch && content !== 'none' && content !== '') {
3273 var _content = styles.getPropertyValue('content');
3274 var prefix = getPrefix(fontFamily, fontWeight);
3275 var hexValue = hexValueFromContent(_content);
3276 var isV4 = fontFamilyMatch[0].startsWith('FontAwesome');
3277 var isSecondary = isSecondaryLayer(styles);
3278 var iconName = byUnicode(prefix, hexValue);
3279 var iconIdentifier = iconName;
3280 if (isV4) {
3281 var iconName4 = byOldUnicode(hexValue);
3282 if (iconName4.iconName && iconName4.prefix) {
3283 iconName = iconName4.iconName;
3284 prefix = iconName4.prefix;
3285 }
3286 }
3287
3288 // Only convert the pseudo element in this ::before/::after position into an icon if we haven't
3289 // already done so with the same prefix and iconName
3290 if (iconName && !isSecondary && (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || alreadyProcessedPseudoElement.getAttribute(DATA_ICON) !== iconIdentifier)) {
3291 node.setAttribute(pendingAttribute, iconIdentifier);
3292 if (alreadyProcessedPseudoElement) {
3293 // Delete the old one, since we're replacing it with a new one
3294 node.removeChild(alreadyProcessedPseudoElement);
3295 }
3296 var meta = blankMeta();
3297 var extra = meta.extra;
3298 extra.attributes[DATA_FA_PSEUDO_ELEMENT] = position;
3299 findIcon(iconName, prefix).then(function (main) {
3300 var abstract = makeInlineSvgAbstract(_objectSpread2(_objectSpread2({}, meta), {}, {
3301 icons: {
3302 main: main,
3303 mask: emptyCanonicalIcon()
3304 },
3305 prefix: prefix,
3306 iconName: iconIdentifier,
3307 extra: extra,
3308 watchable: true
3309 }));
3310 var element = DOCUMENT.createElementNS('http://www.w3.org/2000/svg', 'svg');
3311 if (position === '::before') {
3312 node.insertBefore(element, node.firstChild);
3313 } else {
3314 node.appendChild(element);
3315 }
3316 element.outerHTML = abstract.map(function (a$$1) {
3317 return toHtml(a$$1);
3318 }).join('\n');
3319 node.removeAttribute(pendingAttribute);
3320 resolve();
3321 }).catch(reject);
3322 } else {
3323 resolve();
3324 }
3325 } else {
3326 resolve();
3327 }
3328 });
3329 }
3330 function replace(node) {
3331 return Promise.all([replaceForPosition(node, '::before'), replaceForPosition(node, '::after')]);
3332 }
3333 function processable(node) {
3334 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');
3335 }
3336 var hasPseudoElement = function hasPseudoElement(selector) {
3337 return !!selector && PSEUDO_ELEMENTS.some(function (pseudoSelector) {
3338 return selector.includes(pseudoSelector);
3339 });
3340 };
3341
3342 // Return selectors from all available stylesheets that have
3343 // pseudo-elements defined.
3344 var parseCSSRuleForPseudos = function parseCSSRuleForPseudos(selectorText) {
3345 if (!selectorText) return [];
3346 var selectorSet = new Set();
3347 var selectors = selectorText.split(/,(?![^()]*\))/).map(function (s$$1) {
3348 return s$$1.trim();
3349 });
3350 selectors = selectors.flatMap(function (selector) {
3351 return selector.includes('(') ? selector : selector.split(',').map(function (s$$1) {
3352 return s$$1.trim();
3353 });
3354 });
3355 var _iterator = _createForOfIteratorHelper(selectors),
3356 _step;
3357 try {
3358 for (_iterator.s(); !(_step = _iterator.n()).done;) {
3359 var selector = _step.value;
3360 if (hasPseudoElement(selector)) {
3361 // Remove pseudo-elements from the selector
3362 var selectorWithoutPseudo = PSEUDO_ELEMENTS.reduce(function (acc, pseudoSelector) {
3363 return acc.replace(pseudoSelector, '');
3364 }, selector);
3365 if (selectorWithoutPseudo !== '' && selectorWithoutPseudo !== '*') {
3366 selectorSet.add(selectorWithoutPseudo);
3367 }
3368 }
3369 }
3370 } catch (err) {
3371 _iterator.e(err);
3372 } finally {
3373 _iterator.f();
3374 }
3375 return selectorSet;
3376 };
3377 function searchPseudoElements(root) {
3378 var useAsNodeList = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
3379 if (!IS_DOM) return;
3380 var nodeList;
3381 if (useAsNodeList) {
3382 nodeList = root;
3383 } else if (config.searchPseudoElementsFullScan) {
3384 nodeList = root.querySelectorAll('*');
3385 } else {
3386 // Get elements that have pseudo elements defined in the CSS
3387 var selectorSet = new Set();
3388 var _iterator2 = _createForOfIteratorHelper(document.styleSheets),
3389 _step2;
3390 try {
3391 for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
3392 var stylesheet = _step2.value;
3393 try {
3394 var _iterator3 = _createForOfIteratorHelper(stylesheet.cssRules),
3395 _step3;
3396 try {
3397 for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
3398 var rule = _step3.value;
3399 var parsedSelectors = parseCSSRuleForPseudos(rule.selectorText);
3400 var _iterator4 = _createForOfIteratorHelper(parsedSelectors),
3401 _step4;
3402 try {
3403 for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
3404 var selector = _step4.value;
3405 selectorSet.add(selector);
3406 }
3407 } catch (err) {
3408 _iterator4.e(err);
3409 } finally {
3410 _iterator4.f();
3411 }
3412 }
3413 } catch (err) {
3414 _iterator3.e(err);
3415 } finally {
3416 _iterator3.f();
3417 }
3418 } catch (e$$1) {
3419 if (config.searchPseudoElementsWarnings) {
3420 console.warn("Font Awesome: cannot parse stylesheet: ".concat(stylesheet.href, " (").concat(e$$1.message, ")\nIf it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin=\"anonymous\" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false."));
3421 }
3422 }
3423 }
3424 } catch (err) {
3425 _iterator2.e(err);
3426 } finally {
3427 _iterator2.f();
3428 }
3429 if (!selectorSet.size) return;
3430 var cleanSelectors = Array.from(selectorSet).join(', ');
3431 try {
3432 nodeList = root.querySelectorAll(cleanSelectors);
3433 } catch (_unused) {} // eslint-disable-line no-empty
3434 }
3435 return new Promise(function (resolve, reject) {
3436 var operations = toArray(nodeList).filter(processable).map(replace);
3437 var end = perf.begin('searchPseudoElements');
3438 disableObservation();
3439 Promise.all(operations).then(function () {
3440 end();
3441 enableObservation();
3442 resolve();
3443 }).catch(function () {
3444 end();
3445 enableObservation();
3446 reject();
3447 });
3448 });
3449 }
3450 var PseudoElements = {
3451 hooks: function hooks() {
3452 return {
3453 mutationObserverCallbacks: function mutationObserverCallbacks(accumulator) {
3454 accumulator.pseudoElementsCallback = searchPseudoElements;
3455 return accumulator;
3456 }
3457 };
3458 },
3459 provides: function provides(providers) {
3460 providers.pseudoElements2svg = function (params) {
3461 var _params$node = params.node,
3462 node = _params$node === void 0 ? DOCUMENT : _params$node;
3463 if (config.searchPseudoElements) {
3464 searchPseudoElements(node);
3465 }
3466 };
3467 }
3468 };
3469
3470 var _unwatched = false;
3471 var MutationObserver$1 = {
3472 mixout: function mixout() {
3473 return {
3474 dom: {
3475 unwatch: function unwatch() {
3476 disableObservation();
3477 _unwatched = true;
3478 }
3479 }
3480 };
3481 },
3482 hooks: function hooks() {
3483 return {
3484 bootstrap: function bootstrap() {
3485 observe(chainHooks('mutationObserverCallbacks', {}));
3486 },
3487 noAuto: function noAuto() {
3488 disconnect();
3489 },
3490 watch: function watch(params) {
3491 var observeMutationsRoot = params.observeMutationsRoot;
3492 if (_unwatched) {
3493 enableObservation();
3494 } else {
3495 observe(chainHooks('mutationObserverCallbacks', {
3496 observeMutationsRoot: observeMutationsRoot
3497 }));
3498 }
3499 }
3500 };
3501 }
3502 };
3503
3504 var parseTransformString = function parseTransformString(transformString) {
3505 var transform = {
3506 size: 16,
3507 x: 0,
3508 y: 0,
3509 flipX: false,
3510 flipY: false,
3511 rotate: 0
3512 };
3513 return transformString.toLowerCase().split(' ').reduce(function (acc, n) {
3514 var parts = n.toLowerCase().split('-');
3515 var first = parts[0];
3516 var rest = parts.slice(1).join('-');
3517 if (first && rest === 'h') {
3518 acc.flipX = true;
3519 return acc;
3520 }
3521 if (first && rest === 'v') {
3522 acc.flipY = true;
3523 return acc;
3524 }
3525 rest = parseFloat(rest);
3526 if (isNaN(rest)) {
3527 return acc;
3528 }
3529 switch (first) {
3530 case 'grow':
3531 acc.size = acc.size + rest;
3532 break;
3533 case 'shrink':
3534 acc.size = acc.size - rest;
3535 break;
3536 case 'left':
3537 acc.x = acc.x - rest;
3538 break;
3539 case 'right':
3540 acc.x = acc.x + rest;
3541 break;
3542 case 'up':
3543 acc.y = acc.y - rest;
3544 break;
3545 case 'down':
3546 acc.y = acc.y + rest;
3547 break;
3548 case 'rotate':
3549 acc.rotate = acc.rotate + rest;
3550 break;
3551 }
3552 return acc;
3553 }, transform);
3554 };
3555 var PowerTransforms = {
3556 mixout: function mixout() {
3557 return {
3558 parse: {
3559 transform: function transform(transformString) {
3560 return parseTransformString(transformString);
3561 }
3562 }
3563 };
3564 },
3565 hooks: function hooks() {
3566 return {
3567 parseNodeAttributes: function parseNodeAttributes(accumulator, node) {
3568 var transformString = node.getAttribute('data-fa-transform');
3569 if (transformString) {
3570 accumulator.transform = parseTransformString(transformString);
3571 }
3572 return accumulator;
3573 }
3574 };
3575 },
3576 provides: function provides(providers) {
3577 providers.generateAbstractTransformGrouping = function (_ref) {
3578 var main = _ref.main,
3579 transform = _ref.transform,
3580 containerWidth = _ref.containerWidth,
3581 iconWidth = _ref.iconWidth;
3582 var outer = {
3583 transform: "translate(".concat(containerWidth / 2, " 256)")
3584 };
3585 var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
3586 var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
3587 var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
3588 var inner = {
3589 transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
3590 };
3591 var path = {
3592 transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
3593 };
3594 var operations = {
3595 outer: outer,
3596 inner: inner,
3597 path: path
3598 };
3599 return {
3600 tag: 'g',
3601 attributes: _objectSpread2({}, operations.outer),
3602 children: [{
3603 tag: 'g',
3604 attributes: _objectSpread2({}, operations.inner),
3605 children: [{
3606 tag: main.icon.tag,
3607 children: main.icon.children,
3608 attributes: _objectSpread2(_objectSpread2({}, main.icon.attributes), operations.path)
3609 }]
3610 }]
3611 };
3612 };
3613 }
3614 };
3615
3616 var ALL_SPACE = {
3617 x: 0,
3618 y: 0,
3619 width: '100%',
3620 height: '100%'
3621 };
3622 function fillBlack(abstract) {
3623 var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
3624 if (abstract.attributes && (abstract.attributes.fill || force)) {
3625 abstract.attributes.fill = 'black';
3626 }
3627 return abstract;
3628 }
3629 function deGroup(abstract) {
3630 if (abstract.tag === 'g') {
3631 return abstract.children;
3632 } else {
3633 return [abstract];
3634 }
3635 }
3636 var Masks = {
3637 hooks: function hooks() {
3638 return {
3639 parseNodeAttributes: function parseNodeAttributes(accumulator, node) {
3640 var maskData = node.getAttribute('data-fa-mask');
3641 var mask = !maskData ? emptyCanonicalIcon() : getCanonicalIcon(maskData.split(' ').map(function (i) {
3642 return i.trim();
3643 }));
3644 if (!mask.prefix) {
3645 mask.prefix = getDefaultUsablePrefix();
3646 }
3647 accumulator.mask = mask;
3648 accumulator.maskId = node.getAttribute('data-fa-mask-id');
3649 return accumulator;
3650 }
3651 };
3652 },
3653 provides: function provides(providers) {
3654 providers.generateAbstractMask = function (_ref) {
3655 var children = _ref.children,
3656 attributes = _ref.attributes,
3657 main = _ref.main,
3658 mask = _ref.mask,
3659 explicitMaskId = _ref.maskId,
3660 transform = _ref.transform;
3661 var mainWidth = main.width,
3662 mainPath = main.icon;
3663 var maskWidth = mask.width,
3664 maskPath = mask.icon;
3665 var trans = transformForSvg({
3666 transform: transform,
3667 containerWidth: maskWidth,
3668 iconWidth: mainWidth
3669 });
3670 var maskRect = {
3671 tag: 'rect',
3672 attributes: _objectSpread2(_objectSpread2({}, ALL_SPACE), {}, {
3673 fill: 'white'
3674 })
3675 };
3676 var maskInnerGroupChildrenMixin = mainPath.children ? {
3677 children: mainPath.children.map(fillBlack)
3678 } : {};
3679 var maskInnerGroup = {
3680 tag: 'g',
3681 attributes: _objectSpread2({}, trans.inner),
3682 children: [fillBlack(_objectSpread2({
3683 tag: mainPath.tag,
3684 attributes: _objectSpread2(_objectSpread2({}, mainPath.attributes), trans.path)
3685 }, maskInnerGroupChildrenMixin))]
3686 };
3687 var maskOuterGroup = {
3688 tag: 'g',
3689 attributes: _objectSpread2({}, trans.outer),
3690 children: [maskInnerGroup]
3691 };
3692 var maskId = "mask-".concat(explicitMaskId || nextUniqueId());
3693 var clipId = "clip-".concat(explicitMaskId || nextUniqueId());
3694 var maskTag = {
3695 tag: 'mask',
3696 attributes: _objectSpread2(_objectSpread2({}, ALL_SPACE), {}, {
3697 id: maskId,
3698 maskUnits: 'userSpaceOnUse',
3699 maskContentUnits: 'userSpaceOnUse'
3700 }),
3701 children: [maskRect, maskOuterGroup]
3702 };
3703 var defs = {
3704 tag: 'defs',
3705 children: [{
3706 tag: 'clipPath',
3707 attributes: {
3708 id: clipId
3709 },
3710 children: deGroup(maskPath)
3711 }, maskTag]
3712 };
3713 children.push(defs, {
3714 tag: 'rect',
3715 attributes: _objectSpread2({
3716 'fill': 'currentColor',
3717 'clip-path': "url(#".concat(clipId, ")"),
3718 'mask': "url(#".concat(maskId, ")")
3719 }, ALL_SPACE)
3720 });
3721 return {
3722 children: children,
3723 attributes: attributes
3724 };
3725 };
3726 }
3727 };
3728
3729 var MissingIconIndicator = {
3730 provides: function provides(providers) {
3731 var reduceMotion = false;
3732 if (WINDOW.matchMedia) {
3733 reduceMotion = WINDOW.matchMedia('(prefers-reduced-motion: reduce)').matches;
3734 }
3735 providers.missingIconAbstract = function () {
3736 var gChildren = [];
3737 var FILL = {
3738 fill: 'currentColor'
3739 };
3740 var ANIMATION_BASE = {
3741 attributeType: 'XML',
3742 repeatCount: 'indefinite',
3743 dur: '2s'
3744 };
3745
3746 // Ring
3747 gChildren.push({
3748 tag: 'path',
3749 attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
3750 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'
3751 })
3752 });
3753 var OPACITY_ANIMATE = _objectSpread2(_objectSpread2({}, ANIMATION_BASE), {}, {
3754 attributeName: 'opacity'
3755 });
3756 var dot = {
3757 tag: 'circle',
3758 attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
3759 cx: '256',
3760 cy: '364',
3761 r: '28'
3762 }),
3763 children: []
3764 };
3765 if (!reduceMotion) {
3766 dot.children.push({
3767 tag: 'animate',
3768 attributes: _objectSpread2(_objectSpread2({}, ANIMATION_BASE), {}, {
3769 attributeName: 'r',
3770 values: '28;14;28;28;14;28;'
3771 })
3772 }, {
3773 tag: 'animate',
3774 attributes: _objectSpread2(_objectSpread2({}, OPACITY_ANIMATE), {}, {
3775 values: '1;0;1;1;0;1;'
3776 })
3777 });
3778 }
3779 gChildren.push(dot);
3780 gChildren.push({
3781 tag: 'path',
3782 attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
3783 opacity: '1',
3784 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'
3785 }),
3786 children: reduceMotion ? [] : [{
3787 tag: 'animate',
3788 attributes: _objectSpread2(_objectSpread2({}, OPACITY_ANIMATE), {}, {
3789 values: '1;0;0;0;0;1;'
3790 })
3791 }]
3792 });
3793 if (!reduceMotion) {
3794 // Exclamation
3795 gChildren.push({
3796 tag: 'path',
3797 attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
3798 opacity: '0',
3799 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'
3800 }),
3801 children: [{
3802 tag: 'animate',
3803 attributes: _objectSpread2(_objectSpread2({}, OPACITY_ANIMATE), {}, {
3804 values: '0;0;1;1;0;0;'
3805 })
3806 }]
3807 });
3808 }
3809 return {
3810 tag: 'g',
3811 attributes: {
3812 class: 'missing'
3813 },
3814 children: gChildren
3815 };
3816 };
3817 }
3818 };
3819
3820 var SvgSymbols = {
3821 hooks: function hooks() {
3822 return {
3823 parseNodeAttributes: function parseNodeAttributes(accumulator, node) {
3824 var symbolData = node.getAttribute('data-fa-symbol');
3825 var symbol = symbolData === null ? false : symbolData === '' ? true : symbolData;
3826 accumulator['symbol'] = symbol;
3827 return accumulator;
3828 }
3829 };
3830 }
3831 };
3832
3833 var plugins = [InjectCSS, ReplaceElements, Layers, LayersCounter, LayersText, PseudoElements, MutationObserver$1, PowerTransforms, Masks, MissingIconIndicator, SvgSymbols];
3834
3835 registerPlugins(plugins, {
3836 mixoutsTo: api
3837 });
3838 var noAuto$1 = api.noAuto;
3839 var config$1 = api.config;
3840 var library$1 = api.library;
3841 var dom$1 = api.dom;
3842 var parse$1 = api.parse;
3843 var findIconDefinition$1 = api.findIconDefinition;
3844 var toHtml$1 = api.toHtml;
3845 var icon = api.icon;
3846 var layer = api.layer;
3847 var text = api.text;
3848 var counter = api.counter;
3849
3850 exports.noAuto = noAuto$1;
3851 exports.config = config$1;
3852 exports.library = library$1;
3853 exports.dom = dom$1;
3854 exports.parse = parse$1;
3855 exports.findIconDefinition = findIconDefinition$1;
3856 exports.toHtml = toHtml$1;
3857 exports.icon = icon;
3858 exports.layer = layer;
3859 exports.text = text;
3860 exports.counter = counter;
3861 exports.api = api;
3862
3863 Object.defineProperty(exports, '__esModule', { value: true });
3864
3865 })));