Release 6.4.2

This commit is contained in:
deathnfudge 2023-10-23 16:09:20 +00:00
parent f0c25837a3
commit 6af602ab2c
9707 changed files with 6606 additions and 8722 deletions

7
free/README.md Normal file
View File

@ -0,0 +1,7 @@
# Font Awesome 6.4.2
Thanks for downloading Font Awesome! We're so excited you're here.
Our documentation is available online. Just head here:
https://fontawesome.com

View File

@ -258,10 +258,8 @@
animation-duration: 1ms;
-webkit-animation-iteration-count: 1;
animation-iteration-count: 1;
-webkit-transition-delay: 0s;
transition-delay: 0s;
-webkit-transition-duration: 0s;
transition-duration: 0s; } }
transition-delay: 0s;
transition-duration: 0s; } }
@-webkit-keyframes fa-beat {
0%, 90% {

File diff suppressed because one or more lines are too long

View File

@ -258,10 +258,8 @@
animation-duration: 1ms;
-webkit-animation-iteration-count: 1;
animation-iteration-count: 1;
-webkit-transition-delay: 0s;
transition-delay: 0s;
-webkit-transition-duration: 0s;
transition-duration: 0s; } }
transition-delay: 0s;
transition-duration: 0s; } }
@-webkit-keyframes fa-beat {
0%, 90% {

File diff suppressed because one or more lines are too long

View File

@ -356,10 +356,8 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
animation-duration: 1ms;
-webkit-animation-iteration-count: 1;
animation-iteration-count: 1;
-webkit-transition-delay: 0s;
transition-delay: 0s;
-webkit-transition-duration: 0s;
transition-duration: 0s; } }
transition-delay: 0s;
transition-duration: 0s; } }
@-webkit-keyframes fa-beat {
0%, 90% {

File diff suppressed because one or more lines are too long

View File

@ -258,10 +258,8 @@
animation-duration: 1ms;
-webkit-animation-iteration-count: 1;
animation-iteration-count: 1;
-webkit-transition-delay: 0s;
transition-delay: 0s;
-webkit-transition-duration: 0s;
transition-duration: 0s; } }
transition-delay: 0s;
transition-duration: 0s; } }
@-webkit-keyframes fa-beat {
0%, 90% {

File diff suppressed because one or more lines are too long

View File

@ -258,10 +258,8 @@
animation-duration: 1ms;
-webkit-animation-iteration-count: 1;
animation-iteration-count: 1;
-webkit-transition-delay: 0s;
transition-delay: 0s;
-webkit-transition-duration: 0s;
transition-duration: 0s; } }
transition-delay: 0s;
transition-duration: 0s; } }
@-webkit-keyframes fa-beat {
0%, 90% {

File diff suppressed because one or more lines are too long

View File

@ -356,10 +356,8 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
animation-duration: 1ms;
-webkit-animation-iteration-count: 1;
animation-iteration-count: 1;
-webkit-transition-delay: 0s;
transition-delay: 0s;
-webkit-transition-duration: 0s;
transition-duration: 0s; } }
transition-delay: 0s;
transition-duration: 0s; } }
@-webkit-keyframes fa-beat {
0%, 90% {

File diff suppressed because one or more lines are too long

View File

@ -8,48 +8,42 @@
var _WINDOW = {};
var _DOCUMENT = {};
try {
if (typeof window !== 'undefined') _WINDOW = window;
if (typeof document !== 'undefined') _DOCUMENT = document;
} catch (e) {}
var _ref = _WINDOW.navigator || {},
_ref$userAgent = _ref.userAgent,
userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
_ref$userAgent = _ref.userAgent,
userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
var WINDOW = _WINDOW;
var DOCUMENT = _DOCUMENT;
var IS_BROWSER = !!WINDOW.document;
var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
function ownKeys(e, r) {
var t = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
enumerableOnly && (symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
})), keys.push.apply(keys, symbols);
var o = Object.getOwnPropertySymbols(e);
r && (o = o.filter(function (r) {
return Object.getOwnPropertyDescriptor(e, r).enumerable;
})), t.push.apply(t, o);
}
return keys;
return t;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = null != arguments[i] ? arguments[i] : {};
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
_defineProperty(target, key, source[key]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
function _objectSpread2(e) {
for (var r = 1; r < arguments.length; r++) {
var t = null != arguments[r] ? arguments[r] : {};
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
_defineProperty(e, r, t[r]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
});
}
return target;
return e;
}
function _defineProperty(obj, key, value) {
key = _toPropertyKey(key);
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
@ -60,22 +54,17 @@
} else {
obj[key] = value;
}
return obj;
}
function _toConsumableArray(arr) {
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
}
function _arrayWithoutHoles(arr) {
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
}
function _iterableToArray(iter) {
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
}
function _unsupportedIterableToArray(o, minLen) {
if (!o) return;
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
@ -84,21 +73,30 @@
if (n === "Map" || n === "Set") return Array.from(o);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
return arr2;
}
function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function _toPrimitive(input, hint) {
if (typeof input !== "object" || input === null) return input;
var prim = input[Symbol.toPrimitive];
if (prim !== undefined) {
var res = prim.call(input, hint || "default");
if (typeof res !== "object") return res;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (hint === "string" ? String : Number)(input);
}
function _toPropertyKey(arg) {
var key = _toPrimitive(arg, "string");
return typeof key === "symbol" ? key : String(key);
}
var _familyProxy, _familyProxy2, _familyProxy3, _familyProxy4, _familyProxy5;
var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
var PRODUCTION = function () {
try {
@ -110,7 +108,6 @@
var FAMILY_CLASSIC = 'classic';
var FAMILY_SHARP = 'sharp';
var FAMILIES = [FAMILY_CLASSIC, FAMILY_SHARP];
function familyProxy(obj) {
// Defaults to the classic family if family is not available
return new Proxy(obj, {
@ -216,7 +213,6 @@
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
fn.apply(void 0, args);
} catch (e) {
if (!PRODUCTION) {
@ -236,36 +232,31 @@
return Object.keys(icons).reduce(function (acc, iconName) {
var icon = icons[iconName];
var expanded = !!icon.icon;
if (expanded) {
acc[icon.iconName] = icon.icon;
} else {
acc[iconName] = icon;
}
return acc;
}, {});
}
function defineIcons(prefix, icons) {
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
var _params$skipHooks = params.skipHooks,
skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
var normalized = normalizeIcons(icons);
if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {
namespace.hooks.addPack(prefix, normalizeIcons(icons));
} else {
namespace.styles[prefix] = _objectSpread2(_objectSpread2({}, namespace.styles[prefix] || {}), normalized);
}
/**
* Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
* of new styles we needed to differentiate between them. Prefix `fa` is now an alias
* for `fas` so we'll ease the upgrade process for our users by automatically defining
* this as well.
*/
if (prefix === 'fas') {
defineIcons('fa', icons);
}

View File

@ -9,54 +9,65 @@
try {
"undefined" != typeof window && (c = window), "undefined" != typeof document && (l = document);
} catch (c) {}
var z = (c.navigator || {}).userAgent, h = void 0 === z ? "" : z, a = c, m = l;
a.document, m.documentElement && m.head && "function" == typeof m.addEventListener && m.createElement,
~h.indexOf("MSIE") || h.indexOf("Trident/");
function v(l, c) {
var z = (c.navigator || {}).userAgent, z = void 0 === z ? "" : z;
c.document, l.documentElement && l.head && "function" == typeof l.addEventListener && l.createElement,
~z.indexOf("MSIE") || z.indexOf("Trident/");
function h(l, c) {
var z, h = Object.keys(l);
return Object.getOwnPropertySymbols && (z = Object.getOwnPropertySymbols(l), c && (z = z.filter(function(c) {
return Object.getOwnPropertySymbols && (z = Object.getOwnPropertySymbols(l),
c && (z = z.filter(function(c) {
return Object.getOwnPropertyDescriptor(l, c).enumerable;
})), h.push.apply(h, z)), h;
}
function C(l) {
function a(l) {
for (var c = 1; c < arguments.length; c++) {
var z = null != arguments[c] ? arguments[c] : {};
c % 2 ? v(Object(z), !0).forEach(function(c) {
M(l, c, z[c]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(l, Object.getOwnPropertyDescriptors(z)) : v(Object(z)).forEach(function(c) {
c % 2 ? h(Object(z), !0).forEach(function(c) {
m(l, c, z[c]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(l, Object.getOwnPropertyDescriptors(z)) : h(Object(z)).forEach(function(c) {
Object.defineProperty(l, c, Object.getOwnPropertyDescriptor(z, c));
});
}
return l;
}
function M(c, l, z) {
return l in c ? Object.defineProperty(c, l, {
function m(c, l, z) {
(l = function(c) {
c = function(c, l) {
if ("object" != typeof c || null === c) return c;
var z = c[Symbol.toPrimitive];
if (void 0 === z) return ("string" === l ? String : Number)(c);
z = z.call(c, l || "default");
if ("object" != typeof z) return z;
throw new TypeError("@@toPrimitive must return a primitive value.");
}(c, "string");
return "symbol" == typeof c ? c : String(c);
}(l)) in c ? Object.defineProperty(c, l, {
value: z,
enumerable: !0,
configurable: !0,
writable: !0
}) : c[l] = z, c;
}) : c[l] = z;
}
function s(c, l) {
function v(c, l) {
(null == l || l > c.length) && (l = c.length);
for (var z = 0, h = new Array(l); z < l; z++) h[z] = c[z];
return h;
}
var e = "___FONT_AWESOME___", H = function() {
var l = "___FONT_AWESOME___", C = function() {
try {
return !1;
} catch (c) {
return !1;
}
}(), V = "classic", L = "sharp", f = [ V, L ];
function r(c) {
}(), M = "classic", z = "sharp", s = [ M, z ];
function e(c) {
return new Proxy(c, {
get: function(c, l) {
return l in c ? c[l] : c[V];
return l in c ? c[l] : c[M];
}
});
}
r((M(o = {}, V, {
e((m(H = {}, M, {
fa: "solid",
fas: "solid",
"fa-solid": "solid",
@ -72,7 +83,7 @@
"fa-brands": "brands",
fak: "kit",
"fa-kit": "kit"
}), M(o, L, {
}), m(H, z, {
fa: "solid",
fass: "solid",
"fa-solid": "solid",
@ -80,8 +91,8 @@
"fa-regular": "regular",
fasl: "light",
"fa-light": "light"
}), o));
var t = r((M(i = {}, V, {
}), H));
var H = e((m(H = {}, M, {
solid: "fas",
regular: "far",
light: "fal",
@ -89,11 +100,11 @@
duotone: "fad",
brands: "fab",
kit: "fak"
}), M(i, L, {
}), m(H, z, {
solid: "fass",
regular: "fasr",
light: "fasl"
}), i)), m = (r((M(z = {}, V, {
}), H)), V = (e((m(V = {}, M, {
fab: "fa-brands",
fad: "fa-duotone",
fak: "fa-kit",
@ -101,11 +112,11 @@
far: "fa-regular",
fas: "fa-solid",
fat: "fa-thin"
}), M(z, L, {
}), m(V, z, {
fass: "fa-solid",
fasr: "fa-regular",
fasl: "fa-light"
}), z)), r((M(c = {}, V, {
}), V)), e((m(V = {}, M, {
"fa-brands": "fab",
"fa-duotone": "fad",
"fa-kit": "fak",
@ -113,43 +124,38 @@
"fa-regular": "far",
"fa-solid": "fas",
"fa-thin": "fat"
}), M(c, L, {
}), m(V, z, {
"fa-solid": "fass",
"fa-regular": "fasr",
"fa-light": "fasl"
}), c)), r((M(l = {}, V, {
}), V)), e((m(V = {}, M, {
900: "fas",
400: "far",
normal: "far",
300: "fal",
100: "fat"
}), M(l, L, {
}), m(V, z, {
900: "fass",
400: "fasr",
300: "fasl"
}), l)), [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]), h = m.concat([ 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ]), o = "duotone-group", i = "swap-opacity", z = "primary", c = "secondary", l = new Set();
Object.keys(t[V]).map(l.add.bind(l)), Object.keys(t[L]).map(l.add.bind(l));
[].concat(f, function(c) {
if (Array.isArray(c)) return s(c);
}(l = l) || function(c) {
}), V)), [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]), L = V.concat([ 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ]), f = "duotone-group", r = "swap-opacity", t = "primary", o = "secondary", i = new Set();
Object.keys(H[M]).map(i.add.bind(i)), Object.keys(H[z]).map(i.add.bind(i)),
[].concat(s, function(c) {
if (Array.isArray(c)) return v(c);
}(H = i) || function(c) {
if ("undefined" != typeof Symbol && null != c[Symbol.iterator] || null != c["@@iterator"]) return Array.from(c);
}(l) || function(c, l) {
if (c) {
if ("string" == typeof c) return s(c, l);
var z = Object.prototype.toString.call(c).slice(8, -1);
return "Map" === (z = "Object" === z && c.constructor ? c.constructor.name : z) || "Set" === z ? Array.from(c) : "Arguments" === z || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z) ? s(c, l) : void 0;
}
}(l) || function() {
}(H) || function(c, l) {
var z;
if (c) return "string" == typeof c ? v(c, l) : "Map" === (z = "Object" === (z = Object.prototype.toString.call(c).slice(8, -1)) && c.constructor ? c.constructor.name : z) || "Set" === z ? Array.from(c) : "Arguments" === z || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z) ? v(c, l) : void 0;
}(H) || function() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}(), [ "2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "fw", "inverse", "layers-counter", "layers-text", "layers", "li", "pull-left", "pull-right", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", o, i, z, c ]).concat(m.map(function(c) {
}(), [ "2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "fw", "inverse", "layers-counter", "layers-text", "layers", "li", "pull-left", "pull-right", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", f, r, t, o ]).concat(V.map(function(c) {
return "".concat(c, "x");
})).concat(h.map(function(c) {
})).concat(L.map(function(c) {
return "w-".concat(c);
}));
a = a || {};
a[e] || (a[e] = {}), a[e].styles || (a[e].styles = {}), a[e].hooks || (a[e].hooks = {}),
a[e].shims || (a[e].shims = []);
var n = a[e];
var z = c || {}, n = (z[l] || (z[l] = {}), z[l].styles || (z[l].styles = {}),
z[l].hooks || (z[l].hooks = {}), z[l].shims || (z[l].shims = []), z[l]);
function d(h) {
return Object.keys(h).reduce(function(c, l) {
var z = h[l];
@ -157,8 +163,8 @@
}, {});
}
function u(c, l, z) {
var h = (2 < arguments.length && void 0 !== z ? z : {}).skipHooks, z = void 0 !== h && h, h = d(l);
"function" != typeof n.hooks.addPack || z ? n.styles[c] = C(C({}, n.styles[c] || {}), h) : n.hooks.addPack(c, d(l)),
var z = (2 < arguments.length && void 0 !== z ? z : {}).skipHooks, z = void 0 !== z && z, h = d(l);
"function" != typeof n.hooks.addPack || z ? n.styles[c] = a(a({}, n.styles[c] || {}), h) : n.hooks.addPack(c, d(l)),
"fas" === c && u("fa", l);
}
var p = {
@ -640,7 +646,7 @@
for (var l = arguments.length, z = new Array(1 < l ? l - 1 : 0), h = 1; h < l; h++) z[h - 1] = arguments[h];
c.apply(void 0, z);
} catch (c) {
if (!H) throw c;
if (!C) throw c;
}
}(function() {
u("fab", p), u("fa-brands", p);

View File

@ -9,43 +9,38 @@
(factory());
}(this, (function () { 'use strict';
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
function ownKeys(e, r) {
var t = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
enumerableOnly && (symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
})), keys.push.apply(keys, symbols);
var o = Object.getOwnPropertySymbols(e);
r && (o = o.filter(function (r) {
return Object.getOwnPropertyDescriptor(e, r).enumerable;
})), t.push.apply(t, o);
}
return keys;
return t;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = null != arguments[i] ? arguments[i] : {};
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
_defineProperty(target, key, source[key]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
function _objectSpread2(e) {
for (var r = 1; r < arguments.length; r++) {
var t = null != arguments[r] ? arguments[r] : {};
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
_defineProperty(e, r, t[r]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
});
}
return target;
return e;
}
function _typeof(obj) {
function _typeof(o) {
"@babel/helpers - typeof";
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
}, _typeof(obj);
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
return typeof o;
} : function (o) {
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
}, _typeof(o);
}
function _defineProperty(obj, key, value) {
key = _toPropertyKey(key);
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
@ -56,22 +51,17 @@
} else {
obj[key] = value;
}
return obj;
}
function _toConsumableArray(arr) {
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
}
function _arrayWithoutHoles(arr) {
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
}
function _iterableToArray(iter) {
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
}
function _unsupportedIterableToArray(o, minLen) {
if (!o) return;
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
@ -80,30 +70,38 @@
if (n === "Map" || n === "Set") return Array.from(o);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
return arr2;
}
function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function _toPrimitive(input, hint) {
if (typeof input !== "object" || input === null) return input;
var prim = input[Symbol.toPrimitive];
if (prim !== undefined) {
var res = prim.call(input, hint || "default");
if (typeof res !== "object") return res;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (hint === "string" ? String : Number)(input);
}
function _toPropertyKey(arg) {
var key = _toPrimitive(arg, "string");
return typeof key === "symbol" ? key : String(key);
}
var _WINDOW = {};
var _DOCUMENT = {};
try {
if (typeof window !== 'undefined') _WINDOW = window;
if (typeof document !== 'undefined') _DOCUMENT = document;
} catch (e) {}
var _ref = _WINDOW.navigator || {},
_ref$userAgent = _ref.userAgent,
userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
_ref$userAgent = _ref.userAgent,
userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
var WINDOW = _WINDOW;
var DOCUMENT = _DOCUMENT;
var IS_BROWSER = !!WINDOW.document;
@ -111,7 +109,6 @@
var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
var functions = [];
var listener = function listener() {
DOCUMENT.removeEventListener('DOMContentLoaded', listener);
loaded = 1;
@ -119,14 +116,11 @@
return fn();
});
};
var loaded = false;
if (IS_DOM) {
loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);
if (!loaded) DOCUMENT.addEventListener('DOMContentLoaded', listener);
}
function domready (fn) {
if (!IS_DOM) return;
loaded ? setTimeout(fn, 0) : functions.push(fn);
@ -134,21 +128,17 @@
function report (_ref) {
var nodesTested = _ref.nodesTested,
nodesFound = _ref.nodesFound;
nodesFound = _ref.nodesFound;
var timedOutTests = {};
for (var key in nodesFound) {
if (!(nodesTested.conflict[key] || nodesTested.noConflict[key])) {
timedOutTests[key] = nodesFound[key];
}
}
var conflictsCount = Object.keys(nodesTested.conflict).length;
if (conflictsCount > 0) {
console.info("%cConflict".concat(conflictsCount > 1 ? 's' : '', " found:"), 'color: darkred; font-size: large');
var data = {};
for (var _key in nodesTested.conflict) {
var item = nodesTested.conflict[_key];
data[_key] = {
@ -157,16 +147,12 @@
'innerText excerpt': item.innerText && item.innerText !== '' ? item.innerText.slice(0, 200) + '...' : '(empty)'
};
}
console.table(data);
}
var noConflictsCount = Object.keys(nodesTested.noConflict).length;
if (noConflictsCount > 0) {
console.info("%cNo conflict".concat(noConflictsCount > 1 ? 's' : '', " found with ").concat(noConflictsCount === 1 ? 'this' : 'these', ":"), 'color: green; font-size: large');
var _data = {};
for (var _key2 in nodesTested.noConflict) {
var _item = nodesTested.noConflict[_key2];
_data[_key2] = {
@ -175,16 +161,12 @@
'innerText excerpt': _item.innerText && _item.innerText !== '' ? _item.innerText.slice(0, 200) + '...' : '(empty)'
};
}
console.table(_data);
}
var timeOutCount = Object.keys(timedOutTests).length;
if (timeOutCount > 0) {
console.info("%cLeftovers--we timed out before collecting test results for ".concat(timeOutCount === 1 ? 'this' : 'these', ":"), 'color: blue; font-size: large');
var _data2 = {};
for (var _key3 in timedOutTests) {
var _item2 = timedOutTests[_key3];
_data2[_key3] = {
@ -193,7 +175,6 @@
'innerText excerpt': _item2.innerText && _item2.innerText !== '' ? _item2.innerText.slice(0, 200) + '...' : '(empty)'
};
}
console.table(_data2);
}
}
@ -205,8 +186,8 @@
}
var md5 = createCommonjsModule(function (module) {
(function ($) {
/**
* Add integers, wrapping at 2^32.
* This uses 16-bit operations internally to work around bugs in interpreters.
@ -215,12 +196,12 @@
* @param {number} y Second integer
* @returns {number} Sum
*/
function safeAdd(x, y) {
var lsw = (x & 0xffff) + (y & 0xffff);
var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
return msw << 16 | lsw & 0xffff;
}
/**
* Bitwise rotate a 32-bit number to the left.
*
@ -228,11 +209,10 @@
* @param {number} cnt Rotation count
* @returns {number} Rotated number
*/
function bitRotateLeft(num, cnt) {
return num << cnt | num >>> 32 - cnt;
}
/**
* Basic operation the algorithm uses.
*
@ -244,8 +224,6 @@
* @param {number} t t
* @returns {number} Result
*/
function md5cmn(q, a, b, x, s, t) {
return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
}
@ -261,8 +239,6 @@
* @param {number} t t
* @returns {number} Result
*/
function md5ff(a, b, c, d, x, s, t) {
return md5cmn(b & c | ~b & d, a, b, x, s, t);
}
@ -278,8 +254,6 @@
* @param {number} t t
* @returns {number} Result
*/
function md5gg(a, b, c, d, x, s, t) {
return md5cmn(b & d | c & ~d, a, b, x, s, t);
}
@ -295,8 +269,6 @@
* @param {number} t t
* @returns {number} Result
*/
function md5hh(a, b, c, d, x, s, t) {
return md5cmn(b ^ c ^ d, a, b, x, s, t);
}
@ -312,11 +284,10 @@
* @param {number} t t
* @returns {number} Result
*/
function md5ii(a, b, c, d, x, s, t) {
return md5cmn(c ^ (b | ~d), a, b, x, s, t);
}
/**
* Calculate the MD5 of an array of little-endian words, and a bit length.
*
@ -324,8 +295,6 @@
* @param {number} len Bit length
* @returns {Array<number>} MD5 Array
*/
function binlMD5(x, len) {
/* append padding */
x[len >> 5] |= 0x80 << len % 32;
@ -339,7 +308,6 @@
var b = -271733879;
var c = -1732584194;
var d = 271733878;
for (i = 0; i < x.length; i += 16) {
olda = a;
oldb = b;
@ -414,28 +382,25 @@
c = safeAdd(c, oldc);
d = safeAdd(d, oldd);
}
return [a, b, c, d];
}
/**
* Convert an array of little-endian words to a string
*
* @param {Array<number>} input MD5 Array
* @returns {string} MD5 string
*/
function binl2rstr(input) {
var i;
var output = '';
var length32 = input.length * 32;
for (i = 0; i < length32; i += 8) {
output += String.fromCharCode(input[i >> 5] >>> i % 32 & 0xff);
}
return output;
}
/**
* Convert a raw string to an array of little-endian words
* Characters >255 have their high-byte silently ignored.
@ -443,36 +408,30 @@
* @param {string} input Raw input string
* @returns {Array<number>} Array of little-endian words
*/
function rstr2binl(input) {
var i;
var output = [];
output[(input.length >> 2) - 1] = undefined;
for (i = 0; i < output.length; i += 1) {
output[i] = 0;
}
var length8 = input.length * 8;
for (i = 0; i < length8; i += 8) {
output[i >> 5] |= (input.charCodeAt(i / 8) & 0xff) << i % 32;
}
return output;
}
/**
* Calculate the MD5 of a raw string
*
* @param {string} s Input string
* @returns {string} Raw MD5 string
*/
function rstrMD5(s) {
return binl2rstr(binlMD5(rstr2binl(s), s.length * 8));
}
/**
* Calculates the HMAC-MD5 of a key and some data (raw strings)
*
@ -480,8 +439,6 @@
* @param {string} data Raw input string
* @returns {string} Raw MD5 string
*/
function rstrHMACMD5(key, data) {
var i;
var bkey = rstr2binl(key);
@ -489,59 +446,51 @@
var opad = [];
var hash;
ipad[15] = opad[15] = undefined;
if (bkey.length > 16) {
bkey = binlMD5(bkey, key.length * 8);
}
for (i = 0; i < 16; i += 1) {
ipad[i] = bkey[i] ^ 0x36363636;
opad[i] = bkey[i] ^ 0x5c5c5c5c;
}
hash = binlMD5(ipad.concat(rstr2binl(data)), 512 + data.length * 8);
return binl2rstr(binlMD5(opad.concat(hash), 512 + 128));
}
/**
* Convert a raw string to a hex string
*
* @param {string} input Raw input string
* @returns {string} Hex encoded string
*/
function rstr2hex(input) {
var hexTab = '0123456789abcdef';
var output = '';
var x;
var i;
for (i = 0; i < input.length; i += 1) {
x = input.charCodeAt(i);
output += hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f);
}
return output;
}
/**
* Encode a string as UTF-8
*
* @param {string} input Input string
* @returns {string} UTF8 string
*/
function str2rstrUTF8(input) {
return unescape(encodeURIComponent(input));
}
/**
* Encodes input string as raw MD5 string
*
* @param {string} s Input string
* @returns {string} Raw MD5 string
*/
function rawMD5(s) {
return rstrMD5(str2rstrUTF8(s));
}
@ -551,8 +500,6 @@
* @param {string} s Input string
* @returns {string} Hex encoded string
*/
function hexMD5(s) {
return rstr2hex(rawMD5(s));
}
@ -563,8 +510,6 @@
* @param {string} d Input string
* @returns {string} Raw MD5 string
*/
function rawHMACMD5(k, d) {
return rstrHMACMD5(str2rstrUTF8(k), str2rstrUTF8(d));
}
@ -575,11 +520,10 @@
* @param {string} d Input string
* @returns {string} Raw MD5 string
*/
function hexHMACMD5(k, d) {
return rstr2hex(rawHMACMD5(k, d));
}
/**
* Calculates MD5 value for a given string.
* If a key is provided, calculates the HMAC-MD5 value.
@ -590,24 +534,18 @@
* @param {boolean} [raw] Raw output switch
* @returns {string} MD5 output
*/
function md5(string, key, raw) {
if (!key) {
if (!raw) {
return hexMD5(string);
}
return rawMD5(string);
}
if (!raw) {
return hexHMACMD5(key, string);
}
return rawHMACMD5(key, string);
}
if (module.exports) {
module.exports = md5;
} else {
@ -618,7 +556,6 @@
function md5ForNode(node) {
if (null === node || 'object' !== _typeof(node)) return undefined;
if (node.src) {
return md5(node.src);
} else if (node.href) {
@ -637,41 +574,36 @@
var detectionIgnoreAttr = 'data-fa-detection-ignore';
var timeoutAttr = 'data-fa-detection-timeout';
var resultsCollectionMaxWaitAttr = 'data-fa-detection-results-collection-max-wait';
var silenceErrors = function silenceErrors(e) {
e.preventDefault();
e.stopPropagation();
};
function pollUntil(_ref) {
var _ref$fn = _ref.fn,
fn = _ref$fn === void 0 ? function () {
return true;
} : _ref$fn,
_ref$initialDuration = _ref.initialDuration,
initialDuration = _ref$initialDuration === void 0 ? 1 : _ref$initialDuration,
_ref$maxDuration = _ref.maxDuration,
maxDuration = _ref$maxDuration === void 0 ? WINDOW.FontAwesomeDetection.timeout : _ref$maxDuration,
_ref$showProgress = _ref.showProgress,
showProgress = _ref$showProgress === void 0 ? false : _ref$showProgress,
progressIndicator = _ref.progressIndicator;
fn = _ref$fn === void 0 ? function () {
return true;
} : _ref$fn,
_ref$initialDuration = _ref.initialDuration,
initialDuration = _ref$initialDuration === void 0 ? 1 : _ref$initialDuration,
_ref$maxDuration = _ref.maxDuration,
maxDuration = _ref$maxDuration === void 0 ? WINDOW.FontAwesomeDetection.timeout : _ref$maxDuration,
_ref$showProgress = _ref.showProgress,
showProgress = _ref$showProgress === void 0 ? false : _ref$showProgress,
progressIndicator = _ref.progressIndicator;
return new Promise(function (resolve, reject) {
// eslint-disable-line compat/compat
function poll(duration, cumulativeDuration) {
setTimeout(function () {
var result = fn();
if (showProgress) {
console.info(progressIndicator);
}
if (!!result) {
// eslint-disable-line no-extra-boolean-cast
resolve(result);
} else {
var nextDuration = 250;
var nextCumulativeDuration = nextDuration + cumulativeDuration;
if (nextCumulativeDuration <= maxDuration) {
poll(nextDuration, nextCumulativeDuration);
} else {
@ -680,11 +612,9 @@
}
}, duration);
}
poll(initialDuration, 0);
});
}
function detectWebfontConflicts() {
var linkTags = Array.from(DOCUMENT.getElementsByTagName('link')).filter(function (t) {
return !t.hasAttribute(detectionIgnoreAttr);
@ -692,43 +622,41 @@
var styleTags = Array.from(DOCUMENT.getElementsByTagName('style')).filter(function (t) {
if (t.hasAttribute(detectionIgnoreAttr)) {
return false;
} // If the browser has loaded the FA5 CSS, let's not test that <style> element.
}
// If the browser has loaded the FA5 CSS, let's not test that <style> element.
// Its enough that we'll be testing for traces of the corresponding JS being loaded, and testing
// this <style> would only produce a false negative anyway.
if (WINDOW.FontAwesomeConfig && t.innerText.match(new RegExp("svg:not\\(:root\\)\\.".concat(WINDOW.FontAwesomeConfig.replacementClass)))) {
return false;
}
return true;
});
function runDiag(scriptOrLinkTag, md5) {
var diagFrame = DOCUMENT.createElement('iframe'); // Using "visibility: hidden; position: absolute" instead of "display: none;" because
var diagFrame = DOCUMENT.createElement('iframe');
// Using "visibility: hidden; position: absolute" instead of "display: none;" because
// Firefox will not return the expected results for getComputedStyle if our iframe has display: none.
diagFrame.setAttribute('style', 'visibility: hidden; position: absolute; height: 0; width: 0;');
var testIconId = 'fa-test-icon-' + md5;
var iTag = DOCUMENT.createElement('i');
iTag.setAttribute('class', 'fa fa-coffee');
iTag.setAttribute('id', testIconId);
var diagScript = DOCUMENT.createElement('script');
diagScript.setAttribute('id', diagScriptId); // WARNING: this function will be toString()'d and assigned to innerText of the diag script
diagScript.setAttribute('id', diagScriptId);
// WARNING: this function will be toString()'d and assigned to innerText of the diag script
// element that we'll be putting into a diagnostic iframe.
// That means that this code won't compile until after the outer script has run and injected
// this code into the iframe. There are some compile time errors that might occur there.
// For example, using single line (double-slash) comments like this one inside that function
// will probably cause it to choke. Chrome will show an error like this:
// Uncaught SyntaxError: Unexpected end of input
var diagScriptFun = function diagScriptFun(nodeUnderTestId, testIconId, md5, parentOrigin) {
parent.FontAwesomeDetection.__pollUntil({
fn: function fn() {
var iEl = document.getElementById(testIconId);
var computedStyle = window.getComputedStyle(iEl);
var fontFamily = computedStyle.getPropertyValue('font-family');
if (!!fontFamily.match(/FontAwesome/) || !!fontFamily.match(/Font Awesome [56]/)) {
return true;
} else {
@ -747,7 +675,6 @@
}, parentOrigin);
}).catch(function (e) {
var node = document.getElementById(nodeUnderTestId);
if (e === 'timeout') {
parent.postMessage({
type: 'no-conflict',
@ -762,24 +689,19 @@
}
});
};
var parentOrigin = WINDOW.location.origin === 'file://' ? '*' : WINDOW.location.origin;
diagScript.innerText = "(".concat(diagScriptFun.toString(), ")('").concat(nodeUnderTestId, "', '").concat(testIconId || 'foo', "', '").concat(md5, "', '").concat(parentOrigin, "');");
diagFrame.onload = function () {
diagFrame.contentWindow.addEventListener('error', silenceErrors, true);
diagFrame.contentDocument.head.appendChild(diagScript);
diagFrame.contentDocument.head.appendChild(scriptOrLinkTag);
diagFrame.contentDocument.body.appendChild(iTag);
};
domready(function () {
return DOCUMENT.body.appendChild(diagFrame);
});
}
var cssByMD5 = {};
for (var i = 0; i < linkTags.length; i++) {
var linkUnderTest = DOCUMENT.createElement('link');
linkUnderTest.setAttribute('id', nodeUnderTestId);
@ -790,7 +712,6 @@
cssByMD5[md5ForLink] = linkTags[i];
runDiag(linkUnderTest, md5ForLink);
}
for (var _i = 0; _i < styleTags.length; _i++) {
var styleUnderTest = DOCUMENT.createElement('style');
styleUnderTest.setAttribute('id', nodeUnderTestId);
@ -800,17 +721,14 @@
cssByMD5[md5ForStyle] = styleTags[_i];
runDiag(styleUnderTest, md5ForStyle);
}
return cssByMD5;
}
function detectSvgConflicts(currentScript) {
var scripts = Array.from(DOCUMENT.scripts).filter(function (t) {
return !t.hasAttribute(detectionIgnoreAttr) && t !== currentScript;
});
var scriptsByMD5 = {};
var _loop = function _loop(scriptIdx) {
var _loop = function _loop() {
var diagFrame = DOCUMENT.createElement('iframe');
diagFrame.setAttribute('style', 'display:none;');
var scriptUnderTest = DOCUMENT.createElement('script');
@ -818,20 +736,16 @@
var md5ForScript = md5ForNode(scripts[scriptIdx]);
scriptUnderTest.setAttribute(md5Attr, md5ForScript);
scriptsByMD5[md5ForScript] = scripts[scriptIdx];
if (scripts[scriptIdx].src !== '') {
scriptUnderTest.src = scripts[scriptIdx].src;
}
if (scripts[scriptIdx].innerText !== '') {
scriptUnderTest.innerText = scripts[scriptIdx].innerText;
}
scriptUnderTest.async = true;
var diagScript = DOCUMENT.createElement('script');
diagScript.setAttribute('id', diagScriptId);
var parentOrigin = WINDOW.location.origin === 'file://' ? '*' : WINDOW.location.origin;
var diagScriptFun = function diagScriptFun(nodeUnderTestId, md5, parentOrigin) {
parent.FontAwesomeDetection.__pollUntil({
fn: function fn() {
@ -849,7 +763,6 @@
}, parentOrigin);
}).catch(function (e) {
var scriptNode = document.getElementById(nodeUnderTestId);
if (e === 'timeout') {
parent.postMessage({
type: 'no-conflict',
@ -863,43 +776,35 @@
}
});
};
diagScript.innerText = "(".concat(diagScriptFun.toString(), ")('").concat(nodeUnderTestId, "', '").concat(md5ForScript, "', '").concat(parentOrigin, "');");
diagFrame.onload = function () {
diagFrame.contentWindow.addEventListener('error', silenceErrors, true);
diagFrame.contentDocument.head.appendChild(diagScript);
diagFrame.contentDocument.head.appendChild(scriptUnderTest);
};
domready(function () {
return DOCUMENT.body.appendChild(diagFrame);
});
};
for (var scriptIdx = 0; scriptIdx < scripts.length; scriptIdx++) {
_loop(scriptIdx);
_loop();
}
return scriptsByMD5;
}
function setDoneResults(_ref2) {
var nodesTested = _ref2.nodesTested,
nodesFound = _ref2.nodesFound;
nodesFound = _ref2.nodesFound;
WINDOW.FontAwesomeDetection = WINDOW.FontAwesomeDetection || {};
WINDOW.FontAwesomeDetection.nodesTested = nodesTested;
WINDOW.FontAwesomeDetection.nodesFound = nodesFound;
WINDOW.FontAwesomeDetection.detectionDone = true;
}
function conflictDetection() {
var report$$1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function () {};
var nodesTested = {
conflict: {},
noConflict: {}
};
WINDOW.onmessage = function (e) {
if (WINDOW.location.origin === 'file://' || e.origin === WINDOW.location.origin) {
if (e && e.data) {
@ -911,22 +816,19 @@
}
}
};
var scriptsToTest = detectSvgConflicts(DOCUMENT.currentScript);
var cssToTest = detectWebfontConflicts();
var nodesFound = _objectSpread2(_objectSpread2({}, scriptsToTest), cssToTest);
var testCount = Object.keys(scriptsToTest).length + Object.keys(cssToTest).length;
var testCount = Object.keys(scriptsToTest).length + Object.keys(cssToTest).length; // The resultsCollectionMaxWait allows for the time between when the tests running under
// The resultsCollectionMaxWait allows for the time between when the tests running under
// child iframes call postMessage with their results, and when the parent window
// receives and handles those events with window.onmessage.
// Making it configurable allows us to test the scenario where this timeout is exceeded.
// Naming it something very different from "timeout" is to help avoid the potential ambiguity between
// these two timeout-related settings.
var masterTimeout = WINDOW.FontAwesomeDetection.timeout + WINDOW.FontAwesomeDetection.resultsCollectionMaxWait;
console.group('Font Awesome Detector');
if (testCount === 0) {
console.info('%cAll Good!', 'color: green; font-size: large');
console.info('We didn\'t find anything that needs testing for conflicts. Ergo, no conflicts.');
@ -978,20 +880,20 @@
nodesFound: nodesFound
});
}
console.groupEnd();
});
}
} // Allow clients to access, and in some cases, override some properties
}
var initialConfig = WINDOW.FontAwesomeDetection || {}; // These can be overridden
// Allow clients to access, and in some cases, override some properties
var initialConfig = WINDOW.FontAwesomeDetection || {};
// These can be overridden
var _default = {
report: report,
timeout: +(DOCUMENT.currentScript.getAttribute(timeoutAttr) || "2000"),
resultsCollectionMaxWait: +(DOCUMENT.currentScript.getAttribute(resultsCollectionMaxWaitAttr) || "5000")
};
var _config = _objectSpread2(_objectSpread2(_objectSpread2({}, _default), initialConfig), {}, {
// These cannot be overridden
__pollUntil: pollUntil,
@ -1000,7 +902,6 @@
nodesTested: null,
nodesFound: null
});
WINDOW.FontAwesomeDetection = _config;
var _familyProxy, _familyProxy2, _familyProxy3, _familyProxy4, _familyProxy5;
@ -1014,7 +915,6 @@
var FAMILY_CLASSIC = 'classic';
var FAMILY_SHARP = 'sharp';
var FAMILIES = [FAMILY_CLASSIC, FAMILY_SHARP];
function familyProxy(obj) {
// Defaults to the classic family if family is not available
return new Proxy(obj, {
@ -1120,7 +1020,6 @@
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
fn.apply(void 0, args);
} catch (e) {
if (!PRODUCTION) {

View File

@ -9,7 +9,8 @@ t = function() {
"use strict";
function o(e, t) {
var n, o = Object.keys(e);
return Object.getOwnPropertySymbols && (n = Object.getOwnPropertySymbols(e), t && (n = n.filter(function(t) {
return Object.getOwnPropertySymbols && (n = Object.getOwnPropertySymbols(e),
t && (n = n.filter(function(t) {
return Object.getOwnPropertyDescriptor(e, t).enumerable;
})), o.push.apply(o, n)), o;
}
@ -32,12 +33,22 @@ t = function() {
})(t);
}
function r(t, e, n) {
return e in t ? Object.defineProperty(t, e, {
(e = function(t) {
t = function(t, e) {
if ("object" != typeof t || null === t) return t;
var n = t[Symbol.toPrimitive];
if (void 0 === n) return ("string" === e ? String : Number)(t);
n = n.call(t, e || "default");
if ("object" != typeof n) return n;
throw new TypeError("@@toPrimitive must return a primitive value.");
}(t, "string");
return "symbol" == typeof t ? t : String(t);
}(e)) in t ? Object.defineProperty(t, e, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : t[e] = n, t;
}) : t[e] = n;
}
function i(t, e) {
(null == e || e > t.length) && (e = t.length);
@ -49,24 +60,24 @@ t = function() {
"undefined" != typeof window && (t = window), "undefined" != typeof document && (n = document);
} catch (t) {}
function c() {
u.removeEventListener("DOMContentLoaded", c), p = 1, g.map(function(t) {
u.removeEventListener("DOMContentLoaded", c), g = 1, m.map(function(t) {
return t();
});
}
var f = (t.navigator || {}).userAgent, s = void 0 === f ? "" : f, l = t, u = n, d = !!l.document, m = !!u.documentElement && !!u.head && "function" == typeof u.addEventListener && "function" == typeof u.createElement, g = (~s.indexOf("MSIE") || s.indexOf("Trident/"),
[]), p = !1;
function h(t) {
m && (p ? setTimeout(t, 0) : g.push(t));
var f = (t.navigator || {}).userAgent, f = void 0 === f ? "" : f, l = t, u = n, s = !!l.document, d = !!u.documentElement && !!u.head && "function" == typeof u.addEventListener && "function" == typeof u.createElement, m = (~f.indexOf("MSIE") || f.indexOf("Trident/"),
[]), g = !1;
function p(t) {
d && (g ? setTimeout(t, 0) : m.push(t));
}
m && ((p = (u.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(u.readyState)) || u.addEventListener("DOMContentLoaded", c));
var b = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {};
var y = (function(t) {
d && !(g = (u.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(u.readyState)) && u.addEventListener("DOMContentLoaded", c);
var h = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {};
(function(t) {
function u(t, e) {
var n = (65535 & t) + (65535 & e);
return (t >> 16) + (e >> 16) + (n >> 16) << 16 | 65535 & n;
}
function c(t, e, n, o, r, i) {
return u((i = u(u(e, t), u(o, i))) << r | i >>> 32 - r, n);
return u((e = u(u(e, t), u(o, i))) << r | e >>> 32 - r, n);
}
function d(t, e, n, o, r, i, a) {
return c(e & n | ~e & o, t, e, r, i, a);
@ -81,9 +92,8 @@ t = function() {
return c(n ^ (e | ~o), t, e, r, i, a);
}
function a(t, e) {
var n, o, r, i;
t[e >> 5] |= 128 << e % 32, t[14 + (e + 64 >>> 9 << 4)] = e;
for (var a = 1732584193, c = -271733879, f = -1732584194, s = 271733878, l = 0; l < t.length; l += 16) a = d(n = a, o = c, r = f, i = s, t[l], 7, -680876936),
for (var n, o, r, i, a = 1732584193, c = -271733879, f = -1732584194, s = 271733878, l = 0; l < t.length; l += 16) a = d(n = a, o = c, r = f, i = s, t[l], 7, -680876936),
s = d(s, a, c, f, t[l + 1], 12, -389564586), f = d(f, s, a, c, t[l + 2], 17, 606105819),
c = d(c, f, s, a, t[l + 3], 22, -1044525330), a = d(a, c, f, s, t[l + 4], 7, -176418897),
s = d(s, a, c, f, t[l + 5], 12, 1200080426), f = d(f, s, a, c, t[l + 6], 17, -1473231341),
@ -115,8 +125,8 @@ t = function() {
s = p(s, a, c, f, t[l + 15], 10, -30611744), f = p(f, s, a, c, t[l + 6], 15, -1560198380),
c = p(c, f, s, a, t[l + 13], 21, 1309151649), a = p(a, c, f, s, t[l + 4], 6, -145523070),
s = p(s, a, c, f, t[l + 11], 10, -1120210379), f = p(f, s, a, c, t[l + 2], 15, 718787259),
c = p(c, f, s, a, t[l + 9], 21, -343485551), a = u(a, n), c = u(c, o), f = u(f, r),
s = u(s, i);
c = p(c, f, s, a, t[l + 9], 21, -343485551), a = u(a, n), c = u(c, o),
f = u(f, r), s = u(s, i);
return [ a, c, f, s ];
}
function f(t) {
@ -134,35 +144,34 @@ t = function() {
o += n.charAt(e >>> 4 & 15) + n.charAt(15 & e);
return o;
}
function n(t) {
function l(t) {
return unescape(encodeURIComponent(t));
}
function r(t) {
return f(a(s(t = n(t)), 8 * t.length));
return f(a(s(t = l(t)), 8 * t.length));
}
function i(t, e) {
return function(t, e) {
var n, o = s(t), r = [], i = [];
for (r[15] = i[15] = void 0, 16 < o.length && (o = a(o, 8 * t.length)), n = 0; n < 16; n += 1) r[n] = 909522486 ^ o[n],
i[n] = 1549556828 ^ o[n];
return e = a(r.concat(s(e)), 512 + 8 * e.length), f(a(i.concat(e), 640));
}(n(t), n(e));
var n, t = l(t), e = l(e), o = s(t), r = [], i = [];
for (r[15] = i[15] = void 0, 16 < o.length && (o = a(o, 8 * t.length)),
n = 0; n < 16; n += 1) r[n] = 909522486 ^ o[n], i[n] = 1549556828 ^ o[n];
return t = a(r.concat(s(e)), 512 + 8 * e.length), f(a(i.concat(t), 640));
}
function e(t, e, n) {
return e ? n ? i(e, t) : o(i(e, t)) : n ? r(t) : o(r(t));
}
var l;
l = b, t.exports ? t.exports = e : l.md5 = e;
}(z = {
var n;
n = h, t.exports ? t.exports = e : n.md5 = e;
})(t = {
exports: {}
}), z.exports);
function w(t) {
});
var y = t.exports;
function b(t) {
if (null !== t && "object" === e(t)) return t.src ? y(t.src) : t.href ? y(t.href) : t.innerText && "" !== t.innerText ? y(t.innerText) : void 0;
}
var v = "fa-kits-diag", A = "fa-kits-node-under-test", x = "data-md5", T = "data-fa-detection-ignore", O = "data-fa-detection-timeout", D = "data-fa-detection-results-collection-max-wait", E = function(t) {
var w = "fa-kits-diag", v = "fa-kits-node-under-test", A = "data-md5", x = "data-fa-detection-ignore", T = "data-fa-detection-timeout", E = "data-fa-detection-results-collection-max-wait", O = function(t) {
t.preventDefault(), t.stopPropagation();
};
function C(t) {
function D(t) {
var e = t.fn, i = void 0 === e ? function() {
return !0;
} : e, e = t.initialDuration, n = void 0 === e ? 1 : e, e = t.maxDuration, a = void 0 === e ? l.FontAwesomeDetection.timeout : e, e = t.showProgress, c = void 0 !== e && e, f = t.progressIndicator;
@ -175,21 +184,16 @@ t = function() {
}(n, 0);
});
}
function F(e) {
function C(e) {
for (var i = Array.from(u.scripts).filter(function(t) {
return !t.hasAttribute(T) && t !== e;
}), a = {}, t = 0; t < i.length; t++) !function(t) {
var e = u.createElement("iframe");
e.setAttribute("style", "display:none;");
var n = u.createElement("script");
n.setAttribute("id", A);
var o = w(i[t]);
n.setAttribute(x, o), a[o] = i[t], "" !== i[t].src && (n.src = i[t].src), "" !== i[t].innerText && (n.innerText = i[t].innerText),
n.async = !0;
var r = u.createElement("script");
r.setAttribute("id", v);
t = "file://" === l.location.origin ? "*" : l.location.origin;
r.innerText = "(".concat(function(n, o, r) {
return !t.hasAttribute(x) && t !== e;
}), a = {}, c = 0; c < i.length; c++) !function() {
var t = u.createElement("iframe"), e = (t.setAttribute("style", "display:none;"),
u.createElement("script")), n = (e.setAttribute("id", v), b(i[c])), o = (e.setAttribute(A, n),
a[n] = i[c], "" !== i[c].src && (e.src = i[c].src), "" !== i[c].innerText && (e.innerText = i[c].innerText),
e.async = !0, u.createElement("script")), r = (o.setAttribute("id", w),
"file://" === l.location.origin ? "*" : l.location.origin);
o.innerText = "(".concat(function(n, o, r) {
parent.FontAwesomeDetection.__pollUntil({
fn: function() {
return !!window.FontAwesomeConfig || !!window.FontAwesomeKitConfig;
@ -214,16 +218,17 @@ t = function() {
md5: o
}, r) : console.error(t);
});
}.toString(), ")('").concat(A, "', '").concat(o, "', '").concat(t, "');"), e.onload = function() {
e.contentWindow.addEventListener("error", E, !0), e.contentDocument.head.appendChild(r),
e.contentDocument.head.appendChild(n);
}, h(function() {
return u.body.appendChild(e);
}.toString(), ")('").concat(v, "', '").concat(n, "', '").concat(r, "');"),
t.onload = function() {
t.contentWindow.addEventListener("error", O, !0), t.contentDocument.head.appendChild(o),
t.contentDocument.head.appendChild(e);
}, p(function() {
return u.body.appendChild(t);
});
}(t);
}();
return a;
}
function k(t) {
function F(t) {
var e = t.nodesTested, t = t.nodesFound;
l.FontAwesomeDetection = l.FontAwesomeDetection || {}, l.FontAwesomeDetection.nodesTested = e,
l.FontAwesomeDetection.nodesFound = t, l.FontAwesomeDetection.detectionDone = !0;
@ -232,24 +237,19 @@ t = function() {
var e = 0 < arguments.length && void 0 !== t ? t : function() {}, n = {
conflict: {},
noConflict: {}
};
l.onmessage = function(t) {
}, t = (l.onmessage = function(t) {
"file://" !== l.location.origin && t.origin !== l.location.origin || t && t.data && ("fontawesome-conflict" === t.data.type ? n.conflict[t.data.md5] = t.data : "no-conflict" === t.data.type && (n.noConflict[t.data.md5] = t.data));
};
var o = F(u.currentScript), t = function() {
}, C(u.currentScript)), o = function() {
var t = Array.from(u.getElementsByTagName("link")).filter(function(t) {
return !t.hasAttribute(T);
return !t.hasAttribute(x);
}), e = Array.from(u.getElementsByTagName("style")).filter(function(t) {
return !t.hasAttribute(T) && (!l.FontAwesomeConfig || !t.innerText.match(new RegExp("svg:not\\(:root\\)\\.".concat(l.FontAwesomeConfig.replacementClass))));
return !(t.hasAttribute(x) || l.FontAwesomeConfig && t.innerText.match(new RegExp("svg:not\\(:root\\)\\.".concat(l.FontAwesomeConfig.replacementClass))));
});
function n(t, e) {
var n = u.createElement("iframe");
n.setAttribute("style", "visibility: hidden; position: absolute; height: 0; width: 0;");
var o = "fa-test-icon-" + e, r = u.createElement("i");
r.setAttribute("class", "fa fa-coffee"), r.setAttribute("id", o);
var i = u.createElement("script");
i.setAttribute("id", v);
var a = "file://" === l.location.origin ? "*" : l.location.origin;
var n = u.createElement("iframe"), o = (n.setAttribute("style", "visibility: hidden; position: absolute; height: 0; width: 0;"),
"fa-test-icon-" + e), r = u.createElement("i"), i = (r.setAttribute("class", "fa fa-coffee"),
r.setAttribute("id", o), u.createElement("script")), a = (i.setAttribute("id", w),
"file://" === l.location.origin ? "*" : l.location.origin);
i.innerText = "(".concat(function(n, e, o, r) {
parent.FontAwesomeDetection.__pollUntil({
fn: function() {
@ -277,35 +277,34 @@ t = function() {
md5: o
}, r) : console.error(t);
});
}.toString(), ")('").concat(A, "', '").concat(o || "foo", "', '").concat(e, "', '").concat(a, "');"),
}.toString(), ")('").concat(v, "', '").concat(o || "foo", "', '").concat(e, "', '").concat(a, "');"),
n.onload = function() {
n.contentWindow.addEventListener("error", E, !0), n.contentDocument.head.appendChild(i),
n.contentWindow.addEventListener("error", O, !0), n.contentDocument.head.appendChild(i),
n.contentDocument.head.appendChild(t), n.contentDocument.body.appendChild(r);
}, h(function() {
}, p(function() {
return u.body.appendChild(n);
});
}
for (var o = {}, r = 0; r < t.length; r++) {
var i = u.createElement("link");
i.setAttribute("id", A), i.setAttribute("href", t[r].href), i.setAttribute("rel", t[r].rel);
var a = w(t[r]);
i.setAttribute(x, a), o[a] = t[r], n(i, a);
var i = u.createElement("link"), a = (i.setAttribute("id", v), i.setAttribute("href", t[r].href),
i.setAttribute("rel", t[r].rel), b(t[r]));
i.setAttribute(A, a), o[a] = t[r], n(i, a);
}
for (var c = 0; c < e.length; c++) {
var f = u.createElement("style");
f.setAttribute("id", A);
var s = w(e[c]);
f.setAttribute(x, s), f.innerText = e[c].innerText, o[s] = e[c], n(f, s);
var f = u.createElement("style"), s = (f.setAttribute("id", v),
b(e[c]));
f.setAttribute(A, s), f.innerText = e[c].innerText, o[s] = e[c],
n(f, s);
}
return o;
}(), r = a(a({}, o), t), i = Object.keys(o).length + Object.keys(t).length, t = l.FontAwesomeDetection.timeout + l.FontAwesomeDetection.resultsCollectionMaxWait;
}(), r = a(a({}, t), o), i = Object.keys(t).length + Object.keys(o).length, t = l.FontAwesomeDetection.timeout + l.FontAwesomeDetection.resultsCollectionMaxWait;
console.group("Font Awesome Detector"), 0 === i ? (console.info("%cAll Good!", "color: green; font-size: large"),
console.info("We didn't find anything that needs testing for conflicts. Ergo, no conflicts.")) : (console.info("Testing ".concat(i, " possible conflicts.")),
console.info("We'll wait about ".concat(Math.round(l.FontAwesomeDetection.timeout / 10) / 100, " seconds while testing these and\n") + "then up to another ".concat(Math.round(l.FontAwesomeDetection.resultsCollectionMaxWait / 10) / 100, " to allow the browser time\n") + "to accumulate the results. But we'll probably be outta here way before then.\n\n"),
console.info("You can adjust those durations by assigning values to these attributes on the <script> element that loads this detection:"),
console.info("\t%c".concat(O, "%c: milliseconds to wait for each test before deciding whether it's a conflict."), "font-weight: bold;", "font-size: normal;"),
console.info("\t%c".concat(D, "%c: milliseconds to wait for the browser to accumulate test results before giving up."), "font-weight: bold;", "font-size: normal;"),
C({
console.info("\t%c".concat(T, "%c: milliseconds to wait for each test before deciding whether it's a conflict."), "font-weight: bold;", "font-size: normal;"),
console.info("\t%c".concat(E, "%c: milliseconds to wait for the browser to accumulate test results before giving up."), "font-weight: bold;", "font-size: normal;"),
D({
maxDuration: t,
showProgress: !0,
progressIndicator: "waiting...",
@ -313,7 +312,7 @@ t = function() {
return Object.keys(n.conflict).length + Object.keys(n.noConflict).length >= i;
}
}).then(function() {
console.info("DONE!"), k({
console.info("DONE!"), F({
nodesTested: n,
nodesFound: r
}), e({
@ -322,7 +321,7 @@ t = function() {
}), console.groupEnd();
}).catch(function(t) {
"timeout" === t ? console.info("TIME OUT! We waited until we got tired. Here's what we found:") : (console.info("Whoops! We hit an error:", t),
console.info("Here's what we'd found up until that error:")), k({
console.info("Here's what we'd found up until that error:")), F({
nodesTested: n,
nodesFound: r
}), e({
@ -331,7 +330,7 @@ t = function() {
}), console.groupEnd();
}));
}
var S = l.FontAwesomeDetection || {}, N = a(a(a({}, {
var n = l.FontAwesomeDetection || {}, f = a(a(a({}, {
report: function(t) {
var e, n = t.nodesTested, o = t.nodesFound, r = {};
for (e in o) n.conflict[e] || n.noConflict[e] || (r[e] = o[e]);
@ -375,31 +374,29 @@ t = function() {
console.table(d);
}
},
timeout: +(u.currentScript.getAttribute(O) || "2000"),
resultsCollectionMaxWait: +(u.currentScript.getAttribute(D) || "5000")
}), S), {}, {
__pollUntil: C,
md5ForNode: w,
timeout: +(u.currentScript.getAttribute(T) || "2000"),
resultsCollectionMaxWait: +(u.currentScript.getAttribute(E) || "5000")
}), n), {}, {
__pollUntil: D,
md5ForNode: b,
detectionDone: !1,
nodesTested: null,
nodesFound: null
});
l.FontAwesomeDetection = N;
var P = function() {
}), k = (l.FontAwesomeDetection = f, function() {
try {
return "production" === process.env.NODE_ENV;
} catch (t) {
return !1;
}
}(), M = "classic", I = "sharp", W = [ M, I ];
function B(t) {
}()), S = "classic", t = "sharp", n = [ S, t ];
function N(t) {
return new Proxy(t, {
get: function(t, e) {
return e in t ? t[e] : t[M];
return e in t ? t[e] : t[S];
}
});
}
B((r(L = {}, M, {
N((r(f = {}, S, {
fa: "solid",
fas: "solid",
"fa-solid": "solid",
@ -415,7 +412,7 @@ t = function() {
"fa-brands": "brands",
fak: "kit",
"fa-kit": "kit"
}), r(L, I, {
}), r(f, t, {
fa: "solid",
fass: "solid",
"fa-solid": "solid",
@ -423,8 +420,8 @@ t = function() {
"fa-regular": "regular",
fasl: "light",
"fa-light": "light"
}), L));
var t = B((r(f = {}, M, {
}), f));
var f = N((r(f = {}, S, {
solid: "fas",
regular: "far",
light: "fal",
@ -432,11 +429,11 @@ t = function() {
duotone: "fad",
brands: "fab",
kit: "fak"
}), r(f, I, {
}), r(f, t, {
solid: "fass",
regular: "fasr",
light: "fasl"
}), f)), S = (B((r(n = {}, M, {
}), f)), P = (N((r(P = {}, S, {
fab: "fa-brands",
fad: "fa-duotone",
fak: "fa-kit",
@ -444,11 +441,11 @@ t = function() {
far: "fa-regular",
fas: "fa-solid",
fat: "fa-thin"
}), r(n, I, {
}), r(P, t, {
fass: "fa-solid",
fasr: "fa-regular",
fasl: "fa-light"
}), n)), B((r(s = {}, M, {
}), P)), N((r(P = {}, S, {
"fa-brands": "fab",
"fa-duotone": "fad",
"fa-kit": "fak",
@ -456,37 +453,34 @@ t = function() {
"fa-regular": "far",
"fa-solid": "fas",
"fa-thin": "fat"
}), r(s, I, {
}), r(P, t, {
"fa-solid": "fass",
"fa-regular": "fasr",
"fa-light": "fasl"
}), s)), B((r(z = {}, M, {
}), P)), N((r(P = {}, S, {
900: "fas",
400: "far",
normal: "far",
300: "fal",
100: "fat"
}), r(z, I, {
}), r(P, t, {
900: "fass",
400: "fasr",
300: "fasl"
}), z)), [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]), N = S.concat([ 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ]), L = "duotone-group", f = "swap-opacity", n = "primary", s = "secondary", z = new Set();
Object.keys(t[M]).map(z.add.bind(z)), Object.keys(t[I]).map(z.add.bind(z));
[].concat(W, function(t) {
}), P)), [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]), M = P.concat([ 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ]), W = "duotone-group", B = "swap-opacity", L = "primary", z = "secondary", I = new Set();
Object.keys(f[S]).map(I.add.bind(I)), Object.keys(f[t]).map(I.add.bind(I)),
[].concat(n, function(t) {
if (Array.isArray(t)) return i(t);
}(z = z) || function(t) {
}(f = I) || function(t) {
if ("undefined" != typeof Symbol && null != t[Symbol.iterator] || null != t["@@iterator"]) return Array.from(t);
}(z) || function(t, e) {
if (t) {
if ("string" == typeof t) return i(t, e);
var n = Object.prototype.toString.call(t).slice(8, -1);
return "Map" === (n = "Object" === n && t.constructor ? t.constructor.name : n) || "Set" === n ? Array.from(t) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? i(t, e) : void 0;
}
}(z) || function() {
}(f) || function(t, e) {
var n;
if (t) return "string" == typeof t ? i(t, e) : "Map" === (n = "Object" === (n = Object.prototype.toString.call(t).slice(8, -1)) && t.constructor ? t.constructor.name : n) || "Set" === n ? Array.from(t) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? i(t, e) : void 0;
}(f) || function() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}(), [ "2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "fw", "inverse", "layers-counter", "layers-text", "layers", "li", "pull-left", "pull-right", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", L, f, n, s ]).concat(S.map(function(t) {
}(), [ "2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "fw", "inverse", "layers-counter", "layers-text", "layers", "li", "pull-left", "pull-right", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", W, B, L, z ]).concat(P.map(function(t) {
return "".concat(t, "x");
})).concat(N.map(function(t) {
})).concat(M.map(function(t) {
return "w-".concat(t);
}));
!function(t) {
@ -494,9 +488,9 @@ t = function() {
for (var e = arguments.length, n = new Array(1 < e ? e - 1 : 0), o = 1; o < e; o++) n[o - 1] = arguments[o];
t.apply(void 0, n);
} catch (t) {
if (!P) throw t;
if (!k) throw t;
}
}(function() {
d && m && j(window.FontAwesomeDetection.report);
s && d && j(window.FontAwesomeDetection.report);
});
}, ("object" != typeof exports || "undefined" == typeof module) && "function" == typeof define && define.amd ? define(t) : t();

File diff suppressed because one or more lines are too long

View File

@ -8,48 +8,42 @@
var _WINDOW = {};
var _DOCUMENT = {};
try {
if (typeof window !== 'undefined') _WINDOW = window;
if (typeof document !== 'undefined') _DOCUMENT = document;
} catch (e) {}
var _ref = _WINDOW.navigator || {},
_ref$userAgent = _ref.userAgent,
userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
_ref$userAgent = _ref.userAgent,
userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
var WINDOW = _WINDOW;
var DOCUMENT = _DOCUMENT;
var IS_BROWSER = !!WINDOW.document;
var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
function ownKeys(e, r) {
var t = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
enumerableOnly && (symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
})), keys.push.apply(keys, symbols);
var o = Object.getOwnPropertySymbols(e);
r && (o = o.filter(function (r) {
return Object.getOwnPropertyDescriptor(e, r).enumerable;
})), t.push.apply(t, o);
}
return keys;
return t;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = null != arguments[i] ? arguments[i] : {};
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
_defineProperty(target, key, source[key]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
function _objectSpread2(e) {
for (var r = 1; r < arguments.length; r++) {
var t = null != arguments[r] ? arguments[r] : {};
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
_defineProperty(e, r, t[r]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
});
}
return target;
return e;
}
function _defineProperty(obj, key, value) {
key = _toPropertyKey(key);
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
@ -60,22 +54,17 @@
} else {
obj[key] = value;
}
return obj;
}
function _toConsumableArray(arr) {
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
}
function _arrayWithoutHoles(arr) {
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
}
function _iterableToArray(iter) {
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
}
function _unsupportedIterableToArray(o, minLen) {
if (!o) return;
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
@ -84,21 +73,30 @@
if (n === "Map" || n === "Set") return Array.from(o);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
return arr2;
}
function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function _toPrimitive(input, hint) {
if (typeof input !== "object" || input === null) return input;
var prim = input[Symbol.toPrimitive];
if (prim !== undefined) {
var res = prim.call(input, hint || "default");
if (typeof res !== "object") return res;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (hint === "string" ? String : Number)(input);
}
function _toPropertyKey(arg) {
var key = _toPrimitive(arg, "string");
return typeof key === "symbol" ? key : String(key);
}
var _familyProxy, _familyProxy2, _familyProxy3, _familyProxy4, _familyProxy5;
var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
var PRODUCTION = function () {
try {
@ -110,7 +108,6 @@
var FAMILY_CLASSIC = 'classic';
var FAMILY_SHARP = 'sharp';
var FAMILIES = [FAMILY_CLASSIC, FAMILY_SHARP];
function familyProxy(obj) {
// Defaults to the classic family if family is not available
return new Proxy(obj, {
@ -216,7 +213,6 @@
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
fn.apply(void 0, args);
} catch (e) {
if (!PRODUCTION) {
@ -236,36 +232,31 @@
return Object.keys(icons).reduce(function (acc, iconName) {
var icon = icons[iconName];
var expanded = !!icon.icon;
if (expanded) {
acc[icon.iconName] = icon.icon;
} else {
acc[iconName] = icon;
}
return acc;
}, {});
}
function defineIcons(prefix, icons) {
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
var _params$skipHooks = params.skipHooks,
skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
var normalized = normalizeIcons(icons);
if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {
namespace.hooks.addPack(prefix, normalizeIcons(icons));
} else {
namespace.styles[prefix] = _objectSpread2(_objectSpread2({}, namespace.styles[prefix] || {}), normalized);
}
/**
* Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
* of new styles we needed to differentiate between them. Prefix `fa` is now an alias
* for `fas` so we'll ease the upgrade process for our users by automatically defining
* this as well.
*/
if (prefix === 'fas') {
defineIcons('fa', icons);
}

View File

@ -9,54 +9,65 @@
try {
"undefined" != typeof window && (c = window), "undefined" != typeof document && (s = document);
} catch (c) {}
var l = (c.navigator || {}).userAgent, z = void 0 === l ? "" : l, a = c, H = s;
a.document, H.documentElement && H.head && "function" == typeof H.addEventListener && H.createElement,
~z.indexOf("MSIE") || z.indexOf("Trident/");
function V(s, c) {
var l = (c.navigator || {}).userAgent, l = void 0 === l ? "" : l;
c.document, s.documentElement && s.head && "function" == typeof s.addEventListener && s.createElement,
~l.indexOf("MSIE") || l.indexOf("Trident/");
function z(s, c) {
var l, z = Object.keys(s);
return Object.getOwnPropertySymbols && (l = Object.getOwnPropertySymbols(s), c && (l = l.filter(function(c) {
return Object.getOwnPropertySymbols && (l = Object.getOwnPropertySymbols(s),
c && (l = l.filter(function(c) {
return Object.getOwnPropertyDescriptor(s, c).enumerable;
})), z.push.apply(z, l)), z;
}
function e(s) {
function a(s) {
for (var c = 1; c < arguments.length; c++) {
var l = null != arguments[c] ? arguments[c] : {};
c % 2 ? V(Object(l), !0).forEach(function(c) {
M(s, c, l[c]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(l)) : V(Object(l)).forEach(function(c) {
c % 2 ? z(Object(l), !0).forEach(function(c) {
H(s, c, l[c]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(l)) : z(Object(l)).forEach(function(c) {
Object.defineProperty(s, c, Object.getOwnPropertyDescriptor(l, c));
});
}
return s;
}
function M(c, s, l) {
return s in c ? Object.defineProperty(c, s, {
function H(c, s, l) {
(s = function(c) {
c = function(c, s) {
if ("object" != typeof c || null === c) return c;
var l = c[Symbol.toPrimitive];
if (void 0 === l) return ("string" === s ? String : Number)(c);
l = l.call(c, s || "default");
if ("object" != typeof l) return l;
throw new TypeError("@@toPrimitive must return a primitive value.");
}(c, "string");
return "symbol" == typeof c ? c : String(c);
}(s)) in c ? Object.defineProperty(c, s, {
value: l,
enumerable: !0,
configurable: !0,
writable: !0
}) : c[s] = l, c;
}) : c[s] = l;
}
function r(c, s) {
function e(c, s) {
(null == s || s > c.length) && (s = c.length);
for (var l = 0, z = new Array(s); l < s; l++) z[l] = c[l];
return z;
}
var f = "___FONT_AWESOME___", t = function() {
var s = "___FONT_AWESOME___", V = function() {
try {
return !1;
} catch (c) {
return !1;
}
}(), h = "classic", m = "sharp", n = [ h, m ];
function i(c) {
}(), M = "classic", l = "sharp", r = [ M, l ];
function f(c) {
return new Proxy(c, {
get: function(c, s) {
return s in c ? c[s] : c[h];
return s in c ? c[s] : c[M];
}
});
}
i((M(C = {}, h, {
f((H(t = {}, M, {
fa: "solid",
fas: "solid",
"fa-solid": "solid",
@ -72,7 +83,7 @@
"fa-brands": "brands",
fak: "kit",
"fa-kit": "kit"
}), M(C, m, {
}), H(t, l, {
fa: "solid",
fass: "solid",
"fa-solid": "solid",
@ -80,8 +91,8 @@
"fa-regular": "regular",
fasl: "light",
"fa-light": "light"
}), C));
var o = i((M(L = {}, h, {
}), t));
var t = f((H(t = {}, M, {
solid: "fas",
regular: "far",
light: "fal",
@ -89,11 +100,11 @@
duotone: "fad",
brands: "fab",
kit: "fak"
}), M(L, m, {
}), H(t, l, {
solid: "fass",
regular: "fasr",
light: "fasl"
}), L)), H = (i((M(l = {}, h, {
}), t)), h = (f((H(h = {}, M, {
fab: "fa-brands",
fad: "fa-duotone",
fak: "fa-kit",
@ -101,11 +112,11 @@
far: "fa-regular",
fas: "fa-solid",
fat: "fa-thin"
}), M(l, m, {
}), H(h, l, {
fass: "fa-solid",
fasr: "fa-regular",
fasl: "fa-light"
}), l)), i((M(c = {}, h, {
}), h)), f((H(h = {}, M, {
"fa-brands": "fab",
"fa-duotone": "fad",
"fa-kit": "fak",
@ -113,53 +124,48 @@
"fa-regular": "far",
"fa-solid": "fas",
"fa-thin": "fat"
}), M(c, m, {
}), H(h, l, {
"fa-solid": "fass",
"fa-regular": "fasr",
"fa-light": "fasl"
}), c)), i((M(s = {}, h, {
}), h)), f((H(h = {}, M, {
900: "fas",
400: "far",
normal: "far",
300: "fal",
100: "fat"
}), M(s, m, {
}), H(h, l, {
900: "fass",
400: "fasr",
300: "fasl"
}), s)), [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]), z = H.concat([ 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ]), C = "duotone-group", L = "swap-opacity", l = "primary", c = "secondary", s = new Set();
Object.keys(o[h]).map(s.add.bind(s)), Object.keys(o[m]).map(s.add.bind(s));
[].concat(n, function(c) {
if (Array.isArray(c)) return r(c);
}(s = s) || function(c) {
}), h)), [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]), m = h.concat([ 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ]), n = "duotone-group", i = "swap-opacity", o = "primary", C = "secondary", L = new Set();
Object.keys(t[M]).map(L.add.bind(L)), Object.keys(t[l]).map(L.add.bind(L)),
[].concat(r, function(c) {
if (Array.isArray(c)) return e(c);
}(t = L) || function(c) {
if ("undefined" != typeof Symbol && null != c[Symbol.iterator] || null != c["@@iterator"]) return Array.from(c);
}(s) || function(c, s) {
if (c) {
if ("string" == typeof c) return r(c, s);
var l = Object.prototype.toString.call(c).slice(8, -1);
return "Map" === (l = "Object" === l && c.constructor ? c.constructor.name : l) || "Set" === l ? Array.from(c) : "Arguments" === l || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l) ? r(c, s) : void 0;
}
}(s) || function() {
}(t) || function(c, s) {
var l;
if (c) return "string" == typeof c ? e(c, s) : "Map" === (l = "Object" === (l = Object.prototype.toString.call(c).slice(8, -1)) && c.constructor ? c.constructor.name : l) || "Set" === l ? Array.from(c) : "Arguments" === l || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l) ? e(c, s) : void 0;
}(t) || function() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}(), [ "2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "fw", "inverse", "layers-counter", "layers-text", "layers", "li", "pull-left", "pull-right", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", C, L, l, c ]).concat(H.map(function(c) {
}(), [ "2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "fw", "inverse", "layers-counter", "layers-text", "layers", "li", "pull-left", "pull-right", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", n, i, o, C ]).concat(h.map(function(c) {
return "".concat(c, "x");
})).concat(z.map(function(c) {
})).concat(m.map(function(c) {
return "w-".concat(c);
}));
a = a || {};
a[f] || (a[f] = {}), a[f].styles || (a[f].styles = {}), a[f].hooks || (a[f].hooks = {}),
a[f].shims || (a[f].shims = []);
var d = a[f];
function v(z) {
var l = c || {}, u = (l[s] || (l[s] = {}), l[s].styles || (l[s].styles = {}),
l[s].hooks || (l[s].hooks = {}), l[s].shims || (l[s].shims = []), l[s]);
function d(z) {
return Object.keys(z).reduce(function(c, s) {
var l = z[s];
return !!l.icon ? c[l.iconName] = l.icon : c[s] = l, c;
}, {});
}
function u(c, s, l) {
var z = (2 < arguments.length && void 0 !== l ? l : {}).skipHooks, l = void 0 !== z && z, z = v(s);
"function" != typeof d.hooks.addPack || l ? d.styles[c] = e(e({}, d.styles[c] || {}), z) : d.hooks.addPack(c, v(s)),
"fas" === c && u("fa", s);
function v(c, s, l) {
var l = (2 < arguments.length && void 0 !== l ? l : {}).skipHooks, l = void 0 !== l && l, z = d(s);
"function" != typeof u.hooks.addPack || l ? u.styles[c] = a(a({}, u.styles[c] || {}), z) : u.hooks.addPack(c, d(s)),
"fas" === c && v("fa", s);
}
var g = {
"trash-can": [ 448, 512, [ 61460, "trash-alt" ], "f2ed", "M170.5 51.6L151.5 80h145l-19-28.4c-1.5-2.2-4-3.6-6.7-3.6H177.1c-2.7 0-5.2 1.3-6.7 3.6zm147-26.6L354.2 80H368h48 8c13.3 0 24 10.7 24 24s-10.7 24-24 24h-8V432c0 44.2-35.8 80-80 80H112c-44.2 0-80-35.8-80-80V128H24c-13.3 0-24-10.7-24-24S10.7 80 24 80h8H80 93.8l36.7-55.1C140.9 9.4 158.4 0 177.1 0h93.7c18.7 0 36.2 9.4 46.6 24.9zM80 128V432c0 17.7 14.3 32 32 32H336c17.7 0 32-14.3 32-32V128H80zm80 64V400c0 8.8-7.2 16-16 16s-16-7.2-16-16V192c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0V400c0 8.8-7.2 16-16 16s-16-7.2-16-16V192c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0V400c0 8.8-7.2 16-16 16s-16-7.2-16-16V192c0-8.8 7.2-16 16-16s16 7.2 16 16z" ],
@ -331,9 +337,9 @@
for (var s = arguments.length, l = new Array(1 < s ? s - 1 : 0), z = 1; z < s; z++) l[z - 1] = arguments[z];
c.apply(void 0, l);
} catch (c) {
if (!t) throw c;
if (!V) throw c;
}
}(function() {
u("far", g), u("fa-regular", g);
v("far", g), v("fa-regular", g);
});
}();

View File

@ -8,48 +8,42 @@
var _WINDOW = {};
var _DOCUMENT = {};
try {
if (typeof window !== 'undefined') _WINDOW = window;
if (typeof document !== 'undefined') _DOCUMENT = document;
} catch (e) {}
var _ref = _WINDOW.navigator || {},
_ref$userAgent = _ref.userAgent,
userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
_ref$userAgent = _ref.userAgent,
userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
var WINDOW = _WINDOW;
var DOCUMENT = _DOCUMENT;
var IS_BROWSER = !!WINDOW.document;
var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
function ownKeys(e, r) {
var t = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
enumerableOnly && (symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
})), keys.push.apply(keys, symbols);
var o = Object.getOwnPropertySymbols(e);
r && (o = o.filter(function (r) {
return Object.getOwnPropertyDescriptor(e, r).enumerable;
})), t.push.apply(t, o);
}
return keys;
return t;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = null != arguments[i] ? arguments[i] : {};
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
_defineProperty(target, key, source[key]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
function _objectSpread2(e) {
for (var r = 1; r < arguments.length; r++) {
var t = null != arguments[r] ? arguments[r] : {};
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
_defineProperty(e, r, t[r]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
});
}
return target;
return e;
}
function _defineProperty(obj, key, value) {
key = _toPropertyKey(key);
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
@ -60,22 +54,17 @@
} else {
obj[key] = value;
}
return obj;
}
function _toConsumableArray(arr) {
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
}
function _arrayWithoutHoles(arr) {
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
}
function _iterableToArray(iter) {
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
}
function _unsupportedIterableToArray(o, minLen) {
if (!o) return;
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
@ -84,21 +73,30 @@
if (n === "Map" || n === "Set") return Array.from(o);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
return arr2;
}
function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function _toPrimitive(input, hint) {
if (typeof input !== "object" || input === null) return input;
var prim = input[Symbol.toPrimitive];
if (prim !== undefined) {
var res = prim.call(input, hint || "default");
if (typeof res !== "object") return res;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (hint === "string" ? String : Number)(input);
}
function _toPropertyKey(arg) {
var key = _toPrimitive(arg, "string");
return typeof key === "symbol" ? key : String(key);
}
var _familyProxy, _familyProxy2, _familyProxy3, _familyProxy4, _familyProxy5;
var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
var PRODUCTION = function () {
try {
@ -110,7 +108,6 @@
var FAMILY_CLASSIC = 'classic';
var FAMILY_SHARP = 'sharp';
var FAMILIES = [FAMILY_CLASSIC, FAMILY_SHARP];
function familyProxy(obj) {
// Defaults to the classic family if family is not available
return new Proxy(obj, {
@ -216,7 +213,6 @@
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
fn.apply(void 0, args);
} catch (e) {
if (!PRODUCTION) {
@ -236,36 +232,31 @@
return Object.keys(icons).reduce(function (acc, iconName) {
var icon = icons[iconName];
var expanded = !!icon.icon;
if (expanded) {
acc[icon.iconName] = icon.icon;
} else {
acc[iconName] = icon;
}
return acc;
}, {});
}
function defineIcons(prefix, icons) {
var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
var _params$skipHooks = params.skipHooks,
skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
var normalized = normalizeIcons(icons);
if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {
namespace.hooks.addPack(prefix, normalizeIcons(icons));
} else {
namespace.styles[prefix] = _objectSpread2(_objectSpread2({}, namespace.styles[prefix] || {}), normalized);
}
/**
* Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
* of new styles we needed to differentiate between them. Prefix `fa` is now an alias
* for `fas` so we'll ease the upgrade process for our users by automatically defining
* this as well.
*/
if (prefix === 'fas') {
defineIcons('fa', icons);
}

View File

@ -9,54 +9,65 @@
try {
"undefined" != typeof window && (c = window), "undefined" != typeof document && (s = document);
} catch (c) {}
var l = (c.navigator || {}).userAgent, z = void 0 === l ? "" : l, H = c, V = s;
H.document, V.documentElement && V.head && "function" == typeof V.addEventListener && V.createElement,
~z.indexOf("MSIE") || z.indexOf("Trident/");
function M(s, c) {
var l = (c.navigator || {}).userAgent, l = void 0 === l ? "" : l;
c.document, s.documentElement && s.head && "function" == typeof s.addEventListener && s.createElement,
~l.indexOf("MSIE") || l.indexOf("Trident/");
function z(s, c) {
var l, z = Object.keys(s);
return Object.getOwnPropertySymbols && (l = Object.getOwnPropertySymbols(s), c && (l = l.filter(function(c) {
return Object.getOwnPropertySymbols && (l = Object.getOwnPropertySymbols(s),
c && (l = l.filter(function(c) {
return Object.getOwnPropertyDescriptor(s, c).enumerable;
})), z.push.apply(z, l)), z;
}
function a(s) {
function H(s) {
for (var c = 1; c < arguments.length; c++) {
var l = null != arguments[c] ? arguments[c] : {};
c % 2 ? M(Object(l), !0).forEach(function(c) {
e(s, c, l[c]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(l)) : M(Object(l)).forEach(function(c) {
c % 2 ? z(Object(l), !0).forEach(function(c) {
V(s, c, l[c]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(l)) : z(Object(l)).forEach(function(c) {
Object.defineProperty(s, c, Object.getOwnPropertyDescriptor(l, c));
});
}
return s;
}
function e(c, s, l) {
return s in c ? Object.defineProperty(c, s, {
function V(c, s, l) {
(s = function(c) {
c = function(c, s) {
if ("object" != typeof c || null === c) return c;
var l = c[Symbol.toPrimitive];
if (void 0 === l) return ("string" === s ? String : Number)(c);
l = l.call(c, s || "default");
if ("object" != typeof l) return l;
throw new TypeError("@@toPrimitive must return a primitive value.");
}(c, "string");
return "symbol" == typeof c ? c : String(c);
}(s)) in c ? Object.defineProperty(c, s, {
value: l,
enumerable: !0,
configurable: !0,
writable: !0
}) : c[s] = l, c;
}) : c[s] = l;
}
function L(c, s) {
function M(c, s) {
(null == s || s > c.length) && (s = c.length);
for (var l = 0, z = new Array(s); l < s; l++) z[l] = c[l];
return z;
}
var h = "___FONT_AWESOME___", C = function() {
var s = "___FONT_AWESOME___", a = function() {
try {
return !1;
} catch (c) {
return !1;
}
}(), r = "classic", m = "sharp", v = [ r, m ];
function f(c) {
}(), e = "classic", l = "sharp", L = [ e, l ];
function h(c) {
return new Proxy(c, {
get: function(c, s) {
return s in c ? c[s] : c[r];
return s in c ? c[s] : c[e];
}
});
}
f((e(o = {}, r, {
h((V(C = {}, e, {
fa: "solid",
fas: "solid",
"fa-solid": "solid",
@ -72,7 +83,7 @@
"fa-brands": "brands",
fak: "kit",
"fa-kit": "kit"
}), e(o, m, {
}), V(C, l, {
fa: "solid",
fass: "solid",
"fa-solid": "solid",
@ -80,8 +91,8 @@
"fa-regular": "regular",
fasl: "light",
"fa-light": "light"
}), o));
var t = f((e(i = {}, r, {
}), C));
var C = h((V(C = {}, e, {
solid: "fas",
regular: "far",
light: "fal",
@ -89,11 +100,11 @@
duotone: "fad",
brands: "fab",
kit: "fak"
}), e(i, m, {
}), V(C, l, {
solid: "fass",
regular: "fasr",
light: "fasl"
}), i)), V = (f((e(l = {}, r, {
}), C)), r = (h((V(r = {}, e, {
fab: "fa-brands",
fad: "fa-duotone",
fak: "fa-kit",
@ -101,11 +112,11 @@
far: "fa-regular",
fas: "fa-solid",
fat: "fa-thin"
}), e(l, m, {
}), V(r, l, {
fass: "fa-solid",
fasr: "fa-regular",
fasl: "fa-light"
}), l)), f((e(c = {}, r, {
}), r)), h((V(r = {}, e, {
"fa-brands": "fab",
"fa-duotone": "fad",
"fa-kit": "fak",
@ -113,43 +124,38 @@
"fa-regular": "far",
"fa-solid": "fas",
"fa-thin": "fat"
}), e(c, m, {
}), V(r, l, {
"fa-solid": "fass",
"fa-regular": "fasr",
"fa-light": "fasl"
}), c)), f((e(s = {}, r, {
}), r)), h((V(r = {}, e, {
900: "fas",
400: "far",
normal: "far",
300: "fal",
100: "fat"
}), e(s, m, {
}), V(r, l, {
900: "fass",
400: "fasr",
300: "fasl"
}), s)), [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]), z = V.concat([ 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ]), o = "duotone-group", i = "swap-opacity", l = "primary", c = "secondary", s = new Set();
Object.keys(t[r]).map(s.add.bind(s)), Object.keys(t[m]).map(s.add.bind(s));
[].concat(v, function(c) {
if (Array.isArray(c)) return L(c);
}(s = s) || function(c) {
}), r)), [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]), m = r.concat([ 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ]), v = "duotone-group", f = "swap-opacity", t = "primary", o = "secondary", i = new Set();
Object.keys(C[e]).map(i.add.bind(i)), Object.keys(C[l]).map(i.add.bind(i)),
[].concat(L, function(c) {
if (Array.isArray(c)) return M(c);
}(C = i) || function(c) {
if ("undefined" != typeof Symbol && null != c[Symbol.iterator] || null != c["@@iterator"]) return Array.from(c);
}(s) || function(c, s) {
if (c) {
if ("string" == typeof c) return L(c, s);
var l = Object.prototype.toString.call(c).slice(8, -1);
return "Map" === (l = "Object" === l && c.constructor ? c.constructor.name : l) || "Set" === l ? Array.from(c) : "Arguments" === l || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l) ? L(c, s) : void 0;
}
}(s) || function() {
}(C) || function(c, s) {
var l;
if (c) return "string" == typeof c ? M(c, s) : "Map" === (l = "Object" === (l = Object.prototype.toString.call(c).slice(8, -1)) && c.constructor ? c.constructor.name : l) || "Set" === l ? Array.from(c) : "Arguments" === l || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l) ? M(c, s) : void 0;
}(C) || function() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}(), [ "2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "fw", "inverse", "layers-counter", "layers-text", "layers", "li", "pull-left", "pull-right", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", o, i, l, c ]).concat(V.map(function(c) {
}(), [ "2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "fw", "inverse", "layers-counter", "layers-text", "layers", "li", "pull-left", "pull-right", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", v, f, t, o ]).concat(r.map(function(c) {
return "".concat(c, "x");
})).concat(z.map(function(c) {
})).concat(m.map(function(c) {
return "w-".concat(c);
}));
H = H || {};
H[h] || (H[h] = {}), H[h].styles || (H[h].styles = {}), H[h].hooks || (H[h].hooks = {}),
H[h].shims || (H[h].shims = []);
var n = H[h];
var l = c || {}, n = (l[s] || (l[s] = {}), l[s].styles || (l[s].styles = {}),
l[s].hooks || (l[s].hooks = {}), l[s].shims || (l[s].shims = []), l[s]);
function d(z) {
return Object.keys(z).reduce(function(c, s) {
var l = z[s];
@ -157,8 +163,8 @@
}, {});
}
function u(c, s, l) {
var z = (2 < arguments.length && void 0 !== l ? l : {}).skipHooks, l = void 0 !== z && z, z = d(s);
"function" != typeof n.hooks.addPack || l ? n.styles[c] = a(a({}, n.styles[c] || {}), z) : n.hooks.addPack(c, d(s)),
var l = (2 < arguments.length && void 0 !== l ? l : {}).skipHooks, l = void 0 !== l && l, z = d(s);
"function" != typeof n.hooks.addPack || l ? n.styles[c] = H(H({}, n.styles[c] || {}), z) : n.hooks.addPack(c, d(s)),
"fas" === c && u("fa", s);
}
var p = {
@ -1558,7 +1564,7 @@
for (var s = arguments.length, l = new Array(1 < s ? s - 1 : 0), z = 1; z < s; z++) l[z - 1] = arguments[z];
c.apply(void 0, l);
} catch (c) {
if (!C) throw c;
if (!a) throw c;
}
}(function() {
u("fas", p), u("fa-solid", p);

View File

@ -11,15 +11,13 @@
var _WINDOW = {};
var _DOCUMENT = {};
try {
if (typeof window !== 'undefined') _WINDOW = window;
if (typeof document !== 'undefined') _DOCUMENT = document;
} catch (e) {}
var _ref = _WINDOW.navigator || {},
_ref$userAgent = _ref.userAgent,
userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
_ref$userAgent = _ref.userAgent,
userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
var WINDOW = _WINDOW;
var DOCUMENT = _DOCUMENT;
var IS_BROWSER = !!WINDOW.document;
@ -27,6 +25,7 @@
var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
function _defineProperty(obj, key, value) {
key = _toPropertyKey(key);
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
@ -37,22 +36,17 @@
} else {
obj[key] = value;
}
return obj;
}
function _toConsumableArray(arr) {
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
}
function _arrayWithoutHoles(arr) {
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
}
function _iterableToArray(iter) {
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
}
function _unsupportedIterableToArray(o, minLen) {
if (!o) return;
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
@ -61,21 +55,30 @@
if (n === "Map" || n === "Set") return Array.from(o);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
return arr2;
}
function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function _toPrimitive(input, hint) {
if (typeof input !== "object" || input === null) return input;
var prim = input[Symbol.toPrimitive];
if (prim !== undefined) {
var res = prim.call(input, hint || "default");
if (typeof res !== "object") return res;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (hint === "string" ? String : Number)(input);
}
function _toPropertyKey(arg) {
var key = _toPrimitive(arg, "string");
return typeof key === "symbol" ? key : String(key);
}
var _familyProxy, _familyProxy2, _familyProxy3, _familyProxy4, _familyProxy5;
var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
var PRODUCTION = function () {
try {
@ -87,7 +90,6 @@
var FAMILY_CLASSIC = 'classic';
var FAMILY_SHARP = 'sharp';
var FAMILIES = [FAMILY_CLASSIC, FAMILY_SHARP];
function familyProxy(obj) {
// Defaults to the classic family if family is not available
return new Proxy(obj, {
@ -193,7 +195,6 @@
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
fn.apply(void 0, args);
} catch (e) {
if (!PRODUCTION) {
@ -215,7 +216,6 @@
namespace.hooks.addShims(shims);
} else {
var _namespace$shims;
(_namespace$shims = namespace.shims).push.apply(_namespace$shims, shims);
}
});

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More