You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
3946 lines
121 KiB
JavaScript
3946 lines
121 KiB
JavaScript
// node_modules/@fortawesome/fontawesome-svg-core/index.mjs
|
|
function _arrayLikeToArray(r2, a2) {
|
|
(null == a2 || a2 > r2.length) && (a2 = r2.length);
|
|
for (var e2 = 0, n2 = Array(a2); e2 < a2; e2++) n2[e2] = r2[e2];
|
|
return n2;
|
|
}
|
|
function _arrayWithHoles(r2) {
|
|
if (Array.isArray(r2)) return r2;
|
|
}
|
|
function _arrayWithoutHoles(r2) {
|
|
if (Array.isArray(r2)) return _arrayLikeToArray(r2);
|
|
}
|
|
function _classCallCheck(a2, n2) {
|
|
if (!(a2 instanceof n2)) throw new TypeError("Cannot call a class as a function");
|
|
}
|
|
function _defineProperties(e2, r2) {
|
|
for (var t2 = 0; t2 < r2.length; t2++) {
|
|
var o2 = r2[t2];
|
|
o2.enumerable = o2.enumerable || false, o2.configurable = true, "value" in o2 && (o2.writable = true), Object.defineProperty(e2, _toPropertyKey(o2.key), o2);
|
|
}
|
|
}
|
|
function _createClass(e2, r2, t2) {
|
|
return r2 && _defineProperties(e2.prototype, r2), t2 && _defineProperties(e2, t2), Object.defineProperty(e2, "prototype", {
|
|
writable: false
|
|
}), e2;
|
|
}
|
|
function _createForOfIteratorHelper(r2, e2) {
|
|
var t2 = "undefined" != typeof Symbol && r2[Symbol.iterator] || r2["@@iterator"];
|
|
if (!t2) {
|
|
if (Array.isArray(r2) || (t2 = _unsupportedIterableToArray(r2)) || e2 && r2 && "number" == typeof r2.length) {
|
|
t2 && (r2 = t2);
|
|
var n2 = 0, F2 = function() {
|
|
};
|
|
return {
|
|
s: F2,
|
|
n: function() {
|
|
return n2 >= r2.length ? {
|
|
done: true
|
|
} : {
|
|
done: false,
|
|
value: r2[n2++]
|
|
};
|
|
},
|
|
e: function(r3) {
|
|
throw r3;
|
|
},
|
|
f: F2
|
|
};
|
|
}
|
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
}
|
|
var o2, a2 = true, u2 = false;
|
|
return {
|
|
s: function() {
|
|
t2 = t2.call(r2);
|
|
},
|
|
n: function() {
|
|
var r3 = t2.next();
|
|
return a2 = r3.done, r3;
|
|
},
|
|
e: function(r3) {
|
|
u2 = true, o2 = r3;
|
|
},
|
|
f: function() {
|
|
try {
|
|
a2 || null == t2.return || t2.return();
|
|
} finally {
|
|
if (u2) throw o2;
|
|
}
|
|
}
|
|
};
|
|
}
|
|
function _defineProperty(e2, r2, t2) {
|
|
return (r2 = _toPropertyKey(r2)) in e2 ? Object.defineProperty(e2, r2, {
|
|
value: t2,
|
|
enumerable: true,
|
|
configurable: true,
|
|
writable: true
|
|
}) : e2[r2] = t2, e2;
|
|
}
|
|
function _inherits(t2, e2) {
|
|
if ("function" != typeof e2 && null !== e2) throw new TypeError("Super expression must either be null or a function");
|
|
t2.prototype = Object.create(e2 && e2.prototype, {
|
|
constructor: {
|
|
value: t2,
|
|
writable: true,
|
|
configurable: true
|
|
}
|
|
}), Object.defineProperty(t2, "prototype", {
|
|
writable: false
|
|
}), e2 && _setPrototypeOf(t2, e2);
|
|
}
|
|
function _iterableToArray(r2) {
|
|
if ("undefined" != typeof Symbol && null != r2[Symbol.iterator] || null != r2["@@iterator"]) return Array.from(r2);
|
|
}
|
|
function _iterableToArrayLimit(r2, l2) {
|
|
var t2 = null == r2 ? null : "undefined" != typeof Symbol && r2[Symbol.iterator] || r2["@@iterator"];
|
|
if (null != t2) {
|
|
var e2, n2, i2, u2, a2 = [], f2 = true, o2 = false;
|
|
try {
|
|
if (i2 = (t2 = t2.call(r2)).next, 0 === l2) {
|
|
if (Object(t2) !== t2) return;
|
|
f2 = false;
|
|
} else for (; !(f2 = (e2 = i2.call(t2)).done) && (a2.push(e2.value), a2.length !== l2); f2 = true) ;
|
|
} catch (r3) {
|
|
o2 = true, n2 = r3;
|
|
} finally {
|
|
try {
|
|
if (!f2 && null != t2.return && (u2 = t2.return(), Object(u2) !== u2)) return;
|
|
} finally {
|
|
if (o2) throw n2;
|
|
}
|
|
}
|
|
return a2;
|
|
}
|
|
}
|
|
function _nonIterableRest() {
|
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
}
|
|
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 ownKeys(e2, r2) {
|
|
var t2 = Object.keys(e2);
|
|
if (Object.getOwnPropertySymbols) {
|
|
var o2 = Object.getOwnPropertySymbols(e2);
|
|
r2 && (o2 = o2.filter(function(r3) {
|
|
return Object.getOwnPropertyDescriptor(e2, r3).enumerable;
|
|
})), t2.push.apply(t2, o2);
|
|
}
|
|
return t2;
|
|
}
|
|
function _objectSpread2(e2) {
|
|
for (var r2 = 1; r2 < arguments.length; r2++) {
|
|
var t2 = null != arguments[r2] ? arguments[r2] : {};
|
|
r2 % 2 ? ownKeys(Object(t2), true).forEach(function(r3) {
|
|
_defineProperty(e2, r3, t2[r3]);
|
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(t2)) : ownKeys(Object(t2)).forEach(function(r3) {
|
|
Object.defineProperty(e2, r3, Object.getOwnPropertyDescriptor(t2, r3));
|
|
});
|
|
}
|
|
return e2;
|
|
}
|
|
function _setPrototypeOf(t2, e2) {
|
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t3, e3) {
|
|
return t3.__proto__ = e3, t3;
|
|
}, _setPrototypeOf(t2, e2);
|
|
}
|
|
function _slicedToArray(r2, e2) {
|
|
return _arrayWithHoles(r2) || _iterableToArrayLimit(r2, e2) || _unsupportedIterableToArray(r2, e2) || _nonIterableRest();
|
|
}
|
|
function _toConsumableArray(r2) {
|
|
return _arrayWithoutHoles(r2) || _iterableToArray(r2) || _unsupportedIterableToArray(r2) || _nonIterableSpread();
|
|
}
|
|
function _toPrimitive(t2, r2) {
|
|
if ("object" != typeof t2 || !t2) return t2;
|
|
var e2 = t2[Symbol.toPrimitive];
|
|
if (void 0 !== e2) {
|
|
var i2 = e2.call(t2, r2 || "default");
|
|
if ("object" != typeof i2) return i2;
|
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
}
|
|
return ("string" === r2 ? String : Number)(t2);
|
|
}
|
|
function _toPropertyKey(t2) {
|
|
var i2 = _toPrimitive(t2, "string");
|
|
return "symbol" == typeof i2 ? i2 : i2 + "";
|
|
}
|
|
function _typeof(o2) {
|
|
"@babel/helpers - typeof";
|
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o3) {
|
|
return typeof o3;
|
|
} : function(o3) {
|
|
return o3 && "function" == typeof Symbol && o3.constructor === Symbol && o3 !== Symbol.prototype ? "symbol" : typeof o3;
|
|
}, _typeof(o2);
|
|
}
|
|
function _unsupportedIterableToArray(r2, a2) {
|
|
if (r2) {
|
|
if ("string" == typeof r2) return _arrayLikeToArray(r2, a2);
|
|
var t2 = {}.toString.call(r2).slice(8, -1);
|
|
return "Object" === t2 && r2.constructor && (t2 = r2.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r2) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray(r2, a2) : void 0;
|
|
}
|
|
}
|
|
function _wrapRegExp() {
|
|
_wrapRegExp = function(e3, r3) {
|
|
return new BabelRegExp(e3, void 0, r3);
|
|
};
|
|
var e2 = RegExp.prototype, r2 = /* @__PURE__ */ new WeakMap();
|
|
function BabelRegExp(e3, t2, p2) {
|
|
var o2 = RegExp(e3, t2);
|
|
return r2.set(o2, p2 || r2.get(e3)), _setPrototypeOf(o2, BabelRegExp.prototype);
|
|
}
|
|
function buildGroups(e3, t2) {
|
|
var p2 = r2.get(t2);
|
|
return Object.keys(p2).reduce(function(r3, t3) {
|
|
var o2 = p2[t3];
|
|
if ("number" == typeof o2) r3[t3] = e3[o2];
|
|
else {
|
|
for (var i2 = 0; void 0 === e3[o2[i2]] && i2 + 1 < o2.length; ) i2++;
|
|
r3[t3] = e3[o2[i2]];
|
|
}
|
|
return r3;
|
|
}, /* @__PURE__ */ Object.create(null));
|
|
}
|
|
return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function(r3) {
|
|
var t2 = e2.exec.call(this, r3);
|
|
if (t2) {
|
|
t2.groups = buildGroups(t2, this);
|
|
var p2 = t2.indices;
|
|
p2 && (p2.groups = buildGroups(p2, this));
|
|
}
|
|
return t2;
|
|
}, BabelRegExp.prototype[Symbol.replace] = function(t2, p2) {
|
|
if ("string" == typeof p2) {
|
|
var o2 = r2.get(this);
|
|
return e2[Symbol.replace].call(this, t2, p2.replace(/\$<([^>]+)(>|$)/g, function(e3, r3, t3) {
|
|
if ("" === t3) return e3;
|
|
var p3 = o2[r3];
|
|
return Array.isArray(p3) ? "$" + p3.join("$") : "number" == typeof p3 ? "$" + p3 : "";
|
|
}));
|
|
}
|
|
if ("function" == typeof p2) {
|
|
var i2 = this;
|
|
return e2[Symbol.replace].call(this, t2, function() {
|
|
var e3 = arguments;
|
|
return "object" != typeof e3[e3.length - 1] && (e3 = [].slice.call(e3)).push(buildGroups(e3, i2)), p2.apply(this, e3);
|
|
});
|
|
}
|
|
return e2[Symbol.replace].call(this, t2, p2);
|
|
}, _wrapRegExp.apply(this, arguments);
|
|
}
|
|
var noop = function noop2() {
|
|
};
|
|
var _WINDOW = {};
|
|
var _DOCUMENT = {};
|
|
var _MUTATION_OBSERVER = null;
|
|
var _PERFORMANCE = {
|
|
mark: noop,
|
|
measure: noop
|
|
};
|
|
try {
|
|
if (typeof window !== "undefined") _WINDOW = window;
|
|
if (typeof document !== "undefined") _DOCUMENT = document;
|
|
if (typeof MutationObserver !== "undefined") _MUTATION_OBSERVER = MutationObserver;
|
|
if (typeof performance !== "undefined") _PERFORMANCE = performance;
|
|
} catch (e2) {
|
|
}
|
|
var _ref = _WINDOW.navigator || {};
|
|
var _ref$userAgent = _ref.userAgent;
|
|
var userAgent = _ref$userAgent === void 0 ? "" : _ref$userAgent;
|
|
var WINDOW = _WINDOW;
|
|
var DOCUMENT = _DOCUMENT;
|
|
var MUTATION_OBSERVER = _MUTATION_OBSERVER;
|
|
var PERFORMANCE = _PERFORMANCE;
|
|
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/");
|
|
var _dt;
|
|
var E = /fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/;
|
|
var _ = /Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i;
|
|
var q = {
|
|
classic: {
|
|
fa: "solid",
|
|
fas: "solid",
|
|
"fa-solid": "solid",
|
|
far: "regular",
|
|
"fa-regular": "regular",
|
|
fal: "light",
|
|
"fa-light": "light",
|
|
fat: "thin",
|
|
"fa-thin": "thin",
|
|
fab: "brands",
|
|
"fa-brands": "brands"
|
|
},
|
|
duotone: {
|
|
fa: "solid",
|
|
fad: "solid",
|
|
"fa-solid": "solid",
|
|
"fa-duotone": "solid",
|
|
fadr: "regular",
|
|
"fa-regular": "regular",
|
|
fadl: "light",
|
|
"fa-light": "light",
|
|
fadt: "thin",
|
|
"fa-thin": "thin"
|
|
},
|
|
sharp: {
|
|
fa: "solid",
|
|
fass: "solid",
|
|
"fa-solid": "solid",
|
|
fasr: "regular",
|
|
"fa-regular": "regular",
|
|
fasl: "light",
|
|
"fa-light": "light",
|
|
fast: "thin",
|
|
"fa-thin": "thin"
|
|
},
|
|
"sharp-duotone": {
|
|
fa: "solid",
|
|
fasds: "solid",
|
|
"fa-solid": "solid",
|
|
fasdr: "regular",
|
|
"fa-regular": "regular",
|
|
fasdl: "light",
|
|
"fa-light": "light",
|
|
fasdt: "thin",
|
|
"fa-thin": "thin"
|
|
},
|
|
slab: {
|
|
"fa-regular": "regular",
|
|
faslr: "regular"
|
|
},
|
|
"slab-press": {
|
|
"fa-regular": "regular",
|
|
faslpr: "regular"
|
|
},
|
|
thumbprint: {
|
|
"fa-light": "light",
|
|
fatl: "light"
|
|
},
|
|
whiteboard: {
|
|
"fa-semibold": "semibold",
|
|
fawsb: "semibold"
|
|
},
|
|
notdog: {
|
|
"fa-solid": "solid",
|
|
fans: "solid"
|
|
},
|
|
"notdog-duo": {
|
|
"fa-solid": "solid",
|
|
fands: "solid"
|
|
},
|
|
etch: {
|
|
"fa-solid": "solid",
|
|
faes: "solid"
|
|
},
|
|
jelly: {
|
|
"fa-regular": "regular",
|
|
fajr: "regular"
|
|
},
|
|
"jelly-fill": {
|
|
"fa-regular": "regular",
|
|
fajfr: "regular"
|
|
},
|
|
"jelly-duo": {
|
|
"fa-regular": "regular",
|
|
fajdr: "regular"
|
|
},
|
|
chisel: {
|
|
"fa-regular": "regular",
|
|
facr: "regular"
|
|
},
|
|
utility: {
|
|
"fa-semibold": "semibold",
|
|
fausb: "semibold"
|
|
},
|
|
"utility-duo": {
|
|
"fa-semibold": "semibold",
|
|
faudsb: "semibold"
|
|
},
|
|
"utility-fill": {
|
|
"fa-semibold": "semibold",
|
|
faufsb: "semibold"
|
|
}
|
|
};
|
|
var H = {
|
|
GROUP: "duotone-group",
|
|
SWAP_OPACITY: "swap-opacity",
|
|
PRIMARY: "primary",
|
|
SECONDARY: "secondary"
|
|
};
|
|
var Q = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone", "fa-thumbprint", "fa-whiteboard", "fa-notdog", "fa-notdog-duo", "fa-chisel", "fa-etch", "fa-jelly", "fa-jelly-fill", "fa-jelly-duo", "fa-slab", "fa-slab-press", "fa-utility", "fa-utility-duo", "fa-utility-fill"];
|
|
var i = "classic";
|
|
var t = "duotone";
|
|
var d = "sharp";
|
|
var l = "sharp-duotone";
|
|
var f = "chisel";
|
|
var n = "etch";
|
|
var h = "jelly";
|
|
var o = "jelly-duo";
|
|
var u = "jelly-fill";
|
|
var g = "notdog";
|
|
var s = "notdog-duo";
|
|
var y = "slab";
|
|
var m = "slab-press";
|
|
var e = "thumbprint";
|
|
var p = "utility";
|
|
var a = "utility-duo";
|
|
var w = "utility-fill";
|
|
var x = "whiteboard";
|
|
var b = "Classic";
|
|
var c = "Duotone";
|
|
var I = "Sharp";
|
|
var F = "Sharp Duotone";
|
|
var v = "Chisel";
|
|
var S = "Etch";
|
|
var A = "Jelly";
|
|
var P = "Jelly Duo";
|
|
var j = "Jelly Fill";
|
|
var B = "Notdog";
|
|
var N = "Notdog Duo";
|
|
var k = "Slab";
|
|
var D = "Slab Press";
|
|
var T = "Thumbprint";
|
|
var C = "Utility";
|
|
var W = "Utility Duo";
|
|
var K = "Utility Fill";
|
|
var R = "Whiteboard";
|
|
var rt = [i, t, d, l, f, n, h, o, u, g, s, y, m, e, p, a, w, x];
|
|
var dt = (_dt = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_dt, i, b), t, c), d, I), l, F), f, v), n, S), h, A), o, P), u, j), g, B), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_dt, s, N), y, k), m, D), e, T), p, C), a, W), w, K), x, R));
|
|
var gt = {
|
|
classic: {
|
|
900: "fas",
|
|
400: "far",
|
|
normal: "far",
|
|
300: "fal",
|
|
100: "fat"
|
|
},
|
|
duotone: {
|
|
900: "fad",
|
|
400: "fadr",
|
|
300: "fadl",
|
|
100: "fadt"
|
|
},
|
|
sharp: {
|
|
900: "fass",
|
|
400: "fasr",
|
|
300: "fasl",
|
|
100: "fast"
|
|
},
|
|
"sharp-duotone": {
|
|
900: "fasds",
|
|
400: "fasdr",
|
|
300: "fasdl",
|
|
100: "fasdt"
|
|
},
|
|
slab: {
|
|
400: "faslr"
|
|
},
|
|
"slab-press": {
|
|
400: "faslpr"
|
|
},
|
|
whiteboard: {
|
|
600: "fawsb"
|
|
},
|
|
thumbprint: {
|
|
300: "fatl"
|
|
},
|
|
notdog: {
|
|
900: "fans"
|
|
},
|
|
"notdog-duo": {
|
|
900: "fands"
|
|
},
|
|
etch: {
|
|
900: "faes"
|
|
},
|
|
chisel: {
|
|
400: "facr"
|
|
},
|
|
jelly: {
|
|
400: "fajr"
|
|
},
|
|
"jelly-fill": {
|
|
400: "fajfr"
|
|
},
|
|
"jelly-duo": {
|
|
400: "fajdr"
|
|
},
|
|
utility: {
|
|
600: "fausb"
|
|
},
|
|
"utility-duo": {
|
|
600: "faudsb"
|
|
},
|
|
"utility-fill": {
|
|
600: "faufsb"
|
|
}
|
|
};
|
|
var Ct = {
|
|
"Font Awesome 7 Free": {
|
|
900: "fas",
|
|
400: "far"
|
|
},
|
|
"Font Awesome 7 Pro": {
|
|
900: "fas",
|
|
400: "far",
|
|
normal: "far",
|
|
300: "fal",
|
|
100: "fat"
|
|
},
|
|
"Font Awesome 7 Brands": {
|
|
400: "fab",
|
|
normal: "fab"
|
|
},
|
|
"Font Awesome 7 Duotone": {
|
|
900: "fad",
|
|
400: "fadr",
|
|
normal: "fadr",
|
|
300: "fadl",
|
|
100: "fadt"
|
|
},
|
|
"Font Awesome 7 Sharp": {
|
|
900: "fass",
|
|
400: "fasr",
|
|
normal: "fasr",
|
|
300: "fasl",
|
|
100: "fast"
|
|
},
|
|
"Font Awesome 7 Sharp Duotone": {
|
|
900: "fasds",
|
|
400: "fasdr",
|
|
normal: "fasdr",
|
|
300: "fasdl",
|
|
100: "fasdt"
|
|
},
|
|
"Font Awesome 7 Jelly": {
|
|
400: "fajr",
|
|
normal: "fajr"
|
|
},
|
|
"Font Awesome 7 Jelly Fill": {
|
|
400: "fajfr",
|
|
normal: "fajfr"
|
|
},
|
|
"Font Awesome 7 Jelly Duo": {
|
|
400: "fajdr",
|
|
normal: "fajdr"
|
|
},
|
|
"Font Awesome 7 Slab": {
|
|
400: "faslr",
|
|
normal: "faslr"
|
|
},
|
|
"Font Awesome 7 Slab Press": {
|
|
400: "faslpr",
|
|
normal: "faslpr"
|
|
},
|
|
"Font Awesome 7 Thumbprint": {
|
|
300: "fatl",
|
|
normal: "fatl"
|
|
},
|
|
"Font Awesome 7 Notdog": {
|
|
900: "fans",
|
|
normal: "fans"
|
|
},
|
|
"Font Awesome 7 Notdog Duo": {
|
|
900: "fands",
|
|
normal: "fands"
|
|
},
|
|
"Font Awesome 7 Etch": {
|
|
900: "faes",
|
|
normal: "faes"
|
|
},
|
|
"Font Awesome 7 Chisel": {
|
|
400: "facr",
|
|
normal: "facr"
|
|
},
|
|
"Font Awesome 7 Whiteboard": {
|
|
600: "fawsb",
|
|
normal: "fawsb"
|
|
},
|
|
"Font Awesome 7 Utility": {
|
|
600: "fausb",
|
|
normal: "fausb"
|
|
},
|
|
"Font Awesome 7 Utility Duo": {
|
|
600: "faudsb",
|
|
normal: "faudsb"
|
|
},
|
|
"Font Awesome 7 Utility Fill": {
|
|
600: "faufsb",
|
|
normal: "faufsb"
|
|
}
|
|
};
|
|
var Ut = /* @__PURE__ */ new Map([["classic", {
|
|
defaultShortPrefixId: "fas",
|
|
defaultStyleId: "solid",
|
|
styleIds: ["solid", "regular", "light", "thin", "brands"],
|
|
futureStyleIds: [],
|
|
defaultFontWeight: 900
|
|
}], ["duotone", {
|
|
defaultShortPrefixId: "fad",
|
|
defaultStyleId: "solid",
|
|
styleIds: ["solid", "regular", "light", "thin"],
|
|
futureStyleIds: [],
|
|
defaultFontWeight: 900
|
|
}], ["sharp", {
|
|
defaultShortPrefixId: "fass",
|
|
defaultStyleId: "solid",
|
|
styleIds: ["solid", "regular", "light", "thin"],
|
|
futureStyleIds: [],
|
|
defaultFontWeight: 900
|
|
}], ["sharp-duotone", {
|
|
defaultShortPrefixId: "fasds",
|
|
defaultStyleId: "solid",
|
|
styleIds: ["solid", "regular", "light", "thin"],
|
|
futureStyleIds: [],
|
|
defaultFontWeight: 900
|
|
}], ["chisel", {
|
|
defaultShortPrefixId: "facr",
|
|
defaultStyleId: "regular",
|
|
styleIds: ["regular"],
|
|
futureStyleIds: [],
|
|
defaultFontWeight: 400
|
|
}], ["etch", {
|
|
defaultShortPrefixId: "faes",
|
|
defaultStyleId: "solid",
|
|
styleIds: ["solid"],
|
|
futureStyleIds: [],
|
|
defaultFontWeight: 900
|
|
}], ["jelly", {
|
|
defaultShortPrefixId: "fajr",
|
|
defaultStyleId: "regular",
|
|
styleIds: ["regular"],
|
|
futureStyleIds: [],
|
|
defaultFontWeight: 400
|
|
}], ["jelly-duo", {
|
|
defaultShortPrefixId: "fajdr",
|
|
defaultStyleId: "regular",
|
|
styleIds: ["regular"],
|
|
futureStyleIds: [],
|
|
defaultFontWeight: 400
|
|
}], ["jelly-fill", {
|
|
defaultShortPrefixId: "fajfr",
|
|
defaultStyleId: "regular",
|
|
styleIds: ["regular"],
|
|
futureStyleIds: [],
|
|
defaultFontWeight: 400
|
|
}], ["notdog", {
|
|
defaultShortPrefixId: "fans",
|
|
defaultStyleId: "solid",
|
|
styleIds: ["solid"],
|
|
futureStyleIds: [],
|
|
defaultFontWeight: 900
|
|
}], ["notdog-duo", {
|
|
defaultShortPrefixId: "fands",
|
|
defaultStyleId: "solid",
|
|
styleIds: ["solid"],
|
|
futureStyleIds: [],
|
|
defaultFontWeight: 900
|
|
}], ["slab", {
|
|
defaultShortPrefixId: "faslr",
|
|
defaultStyleId: "regular",
|
|
styleIds: ["regular"],
|
|
futureStyleIds: [],
|
|
defaultFontWeight: 400
|
|
}], ["slab-press", {
|
|
defaultShortPrefixId: "faslpr",
|
|
defaultStyleId: "regular",
|
|
styleIds: ["regular"],
|
|
futureStyleIds: [],
|
|
defaultFontWeight: 400
|
|
}], ["thumbprint", {
|
|
defaultShortPrefixId: "fatl",
|
|
defaultStyleId: "light",
|
|
styleIds: ["light"],
|
|
futureStyleIds: [],
|
|
defaultFontWeight: 300
|
|
}], ["utility", {
|
|
defaultShortPrefixId: "fausb",
|
|
defaultStyleId: "semibold",
|
|
styleIds: ["semibold"],
|
|
futureStyleIds: [],
|
|
defaultFontWeight: 600
|
|
}], ["utility-duo", {
|
|
defaultShortPrefixId: "faudsb",
|
|
defaultStyleId: "semibold",
|
|
styleIds: ["semibold"],
|
|
futureStyleIds: [],
|
|
defaultFontWeight: 600
|
|
}], ["utility-fill", {
|
|
defaultShortPrefixId: "faufsb",
|
|
defaultStyleId: "semibold",
|
|
styleIds: ["semibold"],
|
|
futureStyleIds: [],
|
|
defaultFontWeight: 600
|
|
}], ["whiteboard", {
|
|
defaultShortPrefixId: "fawsb",
|
|
defaultStyleId: "semibold",
|
|
styleIds: ["semibold"],
|
|
futureStyleIds: [],
|
|
defaultFontWeight: 600
|
|
}]]);
|
|
var _t = {
|
|
chisel: {
|
|
regular: "facr"
|
|
},
|
|
classic: {
|
|
brands: "fab",
|
|
light: "fal",
|
|
regular: "far",
|
|
solid: "fas",
|
|
thin: "fat"
|
|
},
|
|
duotone: {
|
|
light: "fadl",
|
|
regular: "fadr",
|
|
solid: "fad",
|
|
thin: "fadt"
|
|
},
|
|
etch: {
|
|
solid: "faes"
|
|
},
|
|
jelly: {
|
|
regular: "fajr"
|
|
},
|
|
"jelly-duo": {
|
|
regular: "fajdr"
|
|
},
|
|
"jelly-fill": {
|
|
regular: "fajfr"
|
|
},
|
|
notdog: {
|
|
solid: "fans"
|
|
},
|
|
"notdog-duo": {
|
|
solid: "fands"
|
|
},
|
|
sharp: {
|
|
light: "fasl",
|
|
regular: "fasr",
|
|
solid: "fass",
|
|
thin: "fast"
|
|
},
|
|
"sharp-duotone": {
|
|
light: "fasdl",
|
|
regular: "fasdr",
|
|
solid: "fasds",
|
|
thin: "fasdt"
|
|
},
|
|
slab: {
|
|
regular: "faslr"
|
|
},
|
|
"slab-press": {
|
|
regular: "faslpr"
|
|
},
|
|
thumbprint: {
|
|
light: "fatl"
|
|
},
|
|
utility: {
|
|
semibold: "fausb"
|
|
},
|
|
"utility-duo": {
|
|
semibold: "faudsb"
|
|
},
|
|
"utility-fill": {
|
|
semibold: "faufsb"
|
|
},
|
|
whiteboard: {
|
|
semibold: "fawsb"
|
|
}
|
|
};
|
|
var Yt = ["fak", "fa-kit", "fakd", "fa-kit-duotone"];
|
|
var qt = {
|
|
kit: {
|
|
fak: "kit",
|
|
"fa-kit": "kit"
|
|
},
|
|
"kit-duotone": {
|
|
fakd: "kit-duotone",
|
|
"fa-kit-duotone": "kit-duotone"
|
|
}
|
|
};
|
|
var Ht = ["kit"];
|
|
var L = "kit";
|
|
var r = "kit-duotone";
|
|
var U = "Kit";
|
|
var J = "Kit Duotone";
|
|
var $t = _defineProperty(_defineProperty({}, L, U), r, J);
|
|
var ol = {
|
|
kit: {
|
|
"fa-kit": "fak"
|
|
},
|
|
"kit-duotone": {
|
|
"fa-kit-duotone": "fakd"
|
|
}
|
|
};
|
|
var dl = {
|
|
"Font Awesome Kit": {
|
|
400: "fak",
|
|
normal: "fak"
|
|
},
|
|
"Font Awesome Kit Duotone": {
|
|
400: "fakd",
|
|
normal: "fakd"
|
|
}
|
|
};
|
|
var fl = {
|
|
kit: {
|
|
fak: "fa-kit"
|
|
},
|
|
"kit-duotone": {
|
|
fakd: "fa-kit-duotone"
|
|
}
|
|
};
|
|
var ul = {
|
|
kit: {
|
|
kit: "fak"
|
|
},
|
|
"kit-duotone": {
|
|
"kit-duotone": "fakd"
|
|
}
|
|
};
|
|
var _ml;
|
|
var l$1 = {
|
|
GROUP: "duotone-group",
|
|
SWAP_OPACITY: "swap-opacity",
|
|
PRIMARY: "primary",
|
|
SECONDARY: "secondary"
|
|
};
|
|
var f$1 = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone", "fa-thumbprint", "fa-whiteboard", "fa-notdog", "fa-notdog-duo", "fa-chisel", "fa-etch", "fa-jelly", "fa-jelly-fill", "fa-jelly-duo", "fa-slab", "fa-slab-press", "fa-utility", "fa-utility-duo", "fa-utility-fill"];
|
|
var n$1 = "classic";
|
|
var o$1 = "duotone";
|
|
var u$1 = "sharp";
|
|
var s$1 = "sharp-duotone";
|
|
var h$1 = "chisel";
|
|
var g$1 = "etch";
|
|
var y$1 = "jelly";
|
|
var e$1 = "jelly-duo";
|
|
var m$1 = "jelly-fill";
|
|
var p$1 = "notdog";
|
|
var a$1 = "notdog-duo";
|
|
var w$1 = "slab";
|
|
var b$1 = "slab-press";
|
|
var r$1 = "thumbprint";
|
|
var c$1 = "utility";
|
|
var i$1 = "utility-duo";
|
|
var x$1 = "utility-fill";
|
|
var I$1 = "whiteboard";
|
|
var F$1 = "Classic";
|
|
var v$1 = "Duotone";
|
|
var S$1 = "Sharp";
|
|
var A$1 = "Sharp Duotone";
|
|
var P$1 = "Chisel";
|
|
var j$1 = "Etch";
|
|
var B$1 = "Jelly";
|
|
var N$1 = "Jelly Duo";
|
|
var k$1 = "Jelly Fill";
|
|
var D$1 = "Notdog";
|
|
var C$1 = "Notdog Duo";
|
|
var T$1 = "Slab";
|
|
var L$1 = "Slab Press";
|
|
var W$1 = "Thumbprint";
|
|
var R$1 = "Utility";
|
|
var K$1 = "Utility Duo";
|
|
var U$1 = "Utility Fill";
|
|
var J$1 = "Whiteboard";
|
|
var ml$1 = (_ml = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ml, n$1, F$1), o$1, v$1), u$1, S$1), s$1, A$1), h$1, P$1), g$1, j$1), y$1, B$1), e$1, N$1), m$1, k$1), p$1, D$1), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ml, a$1, C$1), w$1, T$1), b$1, L$1), r$1, W$1), c$1, R$1), i$1, K$1), x$1, U$1), I$1, J$1));
|
|
var E$1 = "kit";
|
|
var d$1 = "kit-duotone";
|
|
var _$1 = "Kit";
|
|
var M$1 = "Kit Duotone";
|
|
var rt$1 = _defineProperty(_defineProperty({}, E$1, _$1), d$1, M$1);
|
|
var $t$1 = {
|
|
classic: {
|
|
"fa-brands": "fab",
|
|
"fa-duotone": "fad",
|
|
"fa-light": "fal",
|
|
"fa-regular": "far",
|
|
"fa-solid": "fas",
|
|
"fa-thin": "fat"
|
|
},
|
|
duotone: {
|
|
"fa-regular": "fadr",
|
|
"fa-light": "fadl",
|
|
"fa-thin": "fadt"
|
|
},
|
|
sharp: {
|
|
"fa-solid": "fass",
|
|
"fa-regular": "fasr",
|
|
"fa-light": "fasl",
|
|
"fa-thin": "fast"
|
|
},
|
|
"sharp-duotone": {
|
|
"fa-solid": "fasds",
|
|
"fa-regular": "fasdr",
|
|
"fa-light": "fasdl",
|
|
"fa-thin": "fasdt"
|
|
},
|
|
slab: {
|
|
"fa-regular": "faslr"
|
|
},
|
|
"slab-press": {
|
|
"fa-regular": "faslpr"
|
|
},
|
|
whiteboard: {
|
|
"fa-semibold": "fawsb"
|
|
},
|
|
thumbprint: {
|
|
"fa-light": "fatl"
|
|
},
|
|
notdog: {
|
|
"fa-solid": "fans"
|
|
},
|
|
"notdog-duo": {
|
|
"fa-solid": "fands"
|
|
},
|
|
etch: {
|
|
"fa-solid": "faes"
|
|
},
|
|
jelly: {
|
|
"fa-regular": "fajr"
|
|
},
|
|
"jelly-fill": {
|
|
"fa-regular": "fajfr"
|
|
},
|
|
"jelly-duo": {
|
|
"fa-regular": "fajdr"
|
|
},
|
|
chisel: {
|
|
"fa-regular": "facr"
|
|
},
|
|
utility: {
|
|
"fa-semibold": "fausb"
|
|
},
|
|
"utility-duo": {
|
|
"fa-semibold": "faudsb"
|
|
},
|
|
"utility-fill": {
|
|
"fa-semibold": "faufsb"
|
|
}
|
|
};
|
|
var z = {
|
|
classic: ["fas", "far", "fal", "fat", "fad"],
|
|
duotone: ["fadr", "fadl", "fadt"],
|
|
sharp: ["fass", "fasr", "fasl", "fast"],
|
|
"sharp-duotone": ["fasds", "fasdr", "fasdl", "fasdt"],
|
|
slab: ["faslr"],
|
|
"slab-press": ["faslpr"],
|
|
whiteboard: ["fawsb"],
|
|
thumbprint: ["fatl"],
|
|
notdog: ["fans"],
|
|
"notdog-duo": ["fands"],
|
|
etch: ["faes"],
|
|
jelly: ["fajr"],
|
|
"jelly-fill": ["fajfr"],
|
|
"jelly-duo": ["fajdr"],
|
|
chisel: ["facr"],
|
|
utility: ["fausb"],
|
|
"utility-duo": ["faudsb"],
|
|
"utility-fill": ["faufsb"]
|
|
};
|
|
var Ht$1 = {
|
|
classic: {
|
|
fab: "fa-brands",
|
|
fad: "fa-duotone",
|
|
fal: "fa-light",
|
|
far: "fa-regular",
|
|
fas: "fa-solid",
|
|
fat: "fa-thin"
|
|
},
|
|
duotone: {
|
|
fadr: "fa-regular",
|
|
fadl: "fa-light",
|
|
fadt: "fa-thin"
|
|
},
|
|
sharp: {
|
|
fass: "fa-solid",
|
|
fasr: "fa-regular",
|
|
fasl: "fa-light",
|
|
fast: "fa-thin"
|
|
},
|
|
"sharp-duotone": {
|
|
fasds: "fa-solid",
|
|
fasdr: "fa-regular",
|
|
fasdl: "fa-light",
|
|
fasdt: "fa-thin"
|
|
},
|
|
slab: {
|
|
faslr: "fa-regular"
|
|
},
|
|
"slab-press": {
|
|
faslpr: "fa-regular"
|
|
},
|
|
whiteboard: {
|
|
fawsb: "fa-semibold"
|
|
},
|
|
thumbprint: {
|
|
fatl: "fa-light"
|
|
},
|
|
notdog: {
|
|
fans: "fa-solid"
|
|
},
|
|
"notdog-duo": {
|
|
fands: "fa-solid"
|
|
},
|
|
etch: {
|
|
faes: "fa-solid"
|
|
},
|
|
jelly: {
|
|
fajr: "fa-regular"
|
|
},
|
|
"jelly-fill": {
|
|
fajfr: "fa-regular"
|
|
},
|
|
"jelly-duo": {
|
|
fajdr: "fa-regular"
|
|
},
|
|
chisel: {
|
|
facr: "fa-regular"
|
|
},
|
|
utility: {
|
|
fausb: "fa-semibold"
|
|
},
|
|
"utility-duo": {
|
|
faudsb: "fa-semibold"
|
|
},
|
|
"utility-fill": {
|
|
faufsb: "fa-semibold"
|
|
}
|
|
};
|
|
var Y$1 = ["fa-solid", "fa-regular", "fa-light", "fa-thin", "fa-duotone", "fa-brands", "fa-semibold"];
|
|
var Zt$1 = ["fa", "fas", "far", "fal", "fat", "fad", "fadr", "fadl", "fadt", "fab", "fass", "fasr", "fasl", "fast", "fasds", "fasdr", "fasdl", "fasdt", "faslr", "faslpr", "fawsb", "fatl", "fans", "fands", "faes", "fajr", "fajfr", "fajdr", "facr", "fausb", "faudsb", "faufsb"].concat(f$1, Y$1);
|
|
var G$1 = ["solid", "regular", "light", "thin", "duotone", "brands", "semibold"];
|
|
var O$1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
var V$1 = O$1.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]);
|
|
var $$1 = ["aw", "fw", "pull-left", "pull-right"];
|
|
var to = [].concat(_toConsumableArray(Object.keys(z)), G$1, $$1, ["2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "inverse", "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", "stack-1x", "stack-2x", "stack", "ul", "width-auto", "width-fixed", l$1.GROUP, l$1.SWAP_OPACITY, l$1.PRIMARY, l$1.SECONDARY]).concat(O$1.map(function(t2) {
|
|
return "".concat(t2, "x");
|
|
})).concat(V$1.map(function(t2) {
|
|
return "w-".concat(t2);
|
|
}));
|
|
var ro = {
|
|
"Font Awesome 5 Free": {
|
|
900: "fas",
|
|
400: "far"
|
|
},
|
|
"Font Awesome 5 Pro": {
|
|
900: "fas",
|
|
400: "far",
|
|
normal: "far",
|
|
300: "fal"
|
|
},
|
|
"Font Awesome 5 Brands": {
|
|
400: "fab",
|
|
normal: "fab"
|
|
},
|
|
"Font Awesome 5 Duotone": {
|
|
900: "fad"
|
|
}
|
|
};
|
|
var NAMESPACE_IDENTIFIER = "___FONT_AWESOME___";
|
|
var UNITS_IN_GRID = 16;
|
|
var DEFAULT_CSS_PREFIX = "fa";
|
|
var DEFAULT_REPLACEMENT_CLASS = "svg-inline--fa";
|
|
var DATA_FA_I2SVG = "data-fa-i2svg";
|
|
var DATA_FA_PSEUDO_ELEMENT = "data-fa-pseudo-element";
|
|
var DATA_FA_PSEUDO_ELEMENT_PENDING = "data-fa-pseudo-element-pending";
|
|
var DATA_PREFIX = "data-prefix";
|
|
var DATA_ICON = "data-icon";
|
|
var HTML_CLASS_I2SVG_BASE_CLASS = "fontawesome-i2svg";
|
|
var MUTATION_APPROACH_ASYNC = "async";
|
|
var TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ["HTML", "HEAD", "STYLE", "SCRIPT"];
|
|
var PSEUDO_ELEMENTS = ["::before", "::after", ":before", ":after"];
|
|
var PRODUCTION = (function() {
|
|
try {
|
|
return false;
|
|
} catch (e$$1) {
|
|
return false;
|
|
}
|
|
})();
|
|
function familyProxy(obj) {
|
|
return new Proxy(obj, {
|
|
get: function get2(target, prop) {
|
|
return prop in target ? target[prop] : target[i];
|
|
}
|
|
});
|
|
}
|
|
var _PREFIX_TO_STYLE = _objectSpread2({}, q);
|
|
_PREFIX_TO_STYLE[i] = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, {
|
|
"fa-duotone": "duotone"
|
|
}), q[i]), qt["kit"]), qt["kit-duotone"]);
|
|
var PREFIX_TO_STYLE = familyProxy(_PREFIX_TO_STYLE);
|
|
var _STYLE_TO_PREFIX = _objectSpread2({}, _t);
|
|
_STYLE_TO_PREFIX[i] = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, {
|
|
duotone: "fad"
|
|
}), _STYLE_TO_PREFIX[i]), ul["kit"]), ul["kit-duotone"]);
|
|
var STYLE_TO_PREFIX = familyProxy(_STYLE_TO_PREFIX);
|
|
var _PREFIX_TO_LONG_STYLE = _objectSpread2({}, Ht$1);
|
|
_PREFIX_TO_LONG_STYLE[i] = _objectSpread2(_objectSpread2({}, _PREFIX_TO_LONG_STYLE[i]), fl["kit"]);
|
|
var PREFIX_TO_LONG_STYLE = familyProxy(_PREFIX_TO_LONG_STYLE);
|
|
var _LONG_STYLE_TO_PREFIX = _objectSpread2({}, $t$1);
|
|
_LONG_STYLE_TO_PREFIX[i] = _objectSpread2(_objectSpread2({}, _LONG_STYLE_TO_PREFIX[i]), ol["kit"]);
|
|
var LONG_STYLE_TO_PREFIX = familyProxy(_LONG_STYLE_TO_PREFIX);
|
|
var ICON_SELECTION_SYNTAX_PATTERN = E;
|
|
var LAYERS_TEXT_CLASSNAME = "fa-layers-text";
|
|
var FONT_FAMILY_PATTERN = _;
|
|
var _FONT_WEIGHT_TO_PREFIX = _objectSpread2({}, gt);
|
|
var FONT_WEIGHT_TO_PREFIX = familyProxy(_FONT_WEIGHT_TO_PREFIX);
|
|
var ATTRIBUTES_WATCHED_FOR_MUTATION = ["class", "data-prefix", "data-icon", "data-fa-transform", "data-fa-mask"];
|
|
var DUOTONE_CLASSES = H;
|
|
var RESERVED_CLASSES = [].concat(_toConsumableArray(Ht), _toConsumableArray(to));
|
|
var initial = WINDOW.FontAwesomeConfig || {};
|
|
function getAttrConfig(attr) {
|
|
var element = DOCUMENT.querySelector("script[" + attr + "]");
|
|
if (element) {
|
|
return element.getAttribute(attr);
|
|
}
|
|
}
|
|
function coerce(val) {
|
|
if (val === "") return true;
|
|
if (val === "false") return false;
|
|
if (val === "true") return true;
|
|
return val;
|
|
}
|
|
if (DOCUMENT && typeof DOCUMENT.querySelector === "function") {
|
|
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"]];
|
|
attrs.forEach(function(_ref2) {
|
|
var _ref22 = _slicedToArray(_ref2, 2), attr = _ref22[0], key = _ref22[1];
|
|
var val = coerce(getAttrConfig(attr));
|
|
if (val !== void 0 && val !== null) {
|
|
initial[key] = val;
|
|
}
|
|
});
|
|
}
|
|
var attrs;
|
|
var _default = {
|
|
styleDefault: "solid",
|
|
familyDefault: i,
|
|
cssPrefix: DEFAULT_CSS_PREFIX,
|
|
replacementClass: DEFAULT_REPLACEMENT_CLASS,
|
|
autoReplaceSvg: true,
|
|
autoAddCss: true,
|
|
searchPseudoElements: false,
|
|
searchPseudoElementsWarnings: true,
|
|
searchPseudoElementsFullScan: false,
|
|
observeMutations: true,
|
|
mutateApproach: "async",
|
|
keepOriginalSource: true,
|
|
measurePerformance: false,
|
|
showMissingIcons: true
|
|
};
|
|
if (initial.familyPrefix) {
|
|
initial.cssPrefix = initial.familyPrefix;
|
|
}
|
|
var _config = _objectSpread2(_objectSpread2({}, _default), initial);
|
|
if (!_config.autoReplaceSvg) _config.observeMutations = false;
|
|
var config = {};
|
|
Object.keys(_default).forEach(function(key) {
|
|
Object.defineProperty(config, key, {
|
|
enumerable: true,
|
|
set: function set2(val) {
|
|
_config[key] = val;
|
|
_onChangeCb.forEach(function(cb) {
|
|
return cb(config);
|
|
});
|
|
},
|
|
get: function get2() {
|
|
return _config[key];
|
|
}
|
|
});
|
|
});
|
|
Object.defineProperty(config, "familyPrefix", {
|
|
enumerable: true,
|
|
set: function set(val) {
|
|
_config.cssPrefix = val;
|
|
_onChangeCb.forEach(function(cb) {
|
|
return cb(config);
|
|
});
|
|
},
|
|
get: function get() {
|
|
return _config.cssPrefix;
|
|
}
|
|
});
|
|
WINDOW.FontAwesomeConfig = config;
|
|
var _onChangeCb = [];
|
|
function onChange(cb) {
|
|
_onChangeCb.push(cb);
|
|
return function() {
|
|
_onChangeCb.splice(_onChangeCb.indexOf(cb), 1);
|
|
};
|
|
}
|
|
var d$2 = UNITS_IN_GRID;
|
|
var meaninglessTransform = {
|
|
size: 16,
|
|
x: 0,
|
|
y: 0,
|
|
rotate: 0,
|
|
flipX: false,
|
|
flipY: false
|
|
};
|
|
function insertCss(css2) {
|
|
if (!css2 || !IS_DOM) {
|
|
return;
|
|
}
|
|
var style = DOCUMENT.createElement("style");
|
|
style.setAttribute("type", "text/css");
|
|
style.innerHTML = css2;
|
|
var headChildren = DOCUMENT.head.childNodes;
|
|
var beforeChild = null;
|
|
for (var i2 = headChildren.length - 1; i2 > -1; i2--) {
|
|
var child = headChildren[i2];
|
|
var tagName = (child.tagName || "").toUpperCase();
|
|
if (["STYLE", "LINK"].indexOf(tagName) > -1) {
|
|
beforeChild = child;
|
|
}
|
|
}
|
|
DOCUMENT.head.insertBefore(style, beforeChild);
|
|
return css2;
|
|
}
|
|
var idPool = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
function nextUniqueId() {
|
|
var size = 12;
|
|
var id = "";
|
|
while (size-- > 0) {
|
|
id += idPool[Math.random() * 62 | 0];
|
|
}
|
|
return id;
|
|
}
|
|
function toArray(obj) {
|
|
var array = [];
|
|
for (var i2 = (obj || []).length >>> 0; i2--; ) {
|
|
array[i2] = obj[i2];
|
|
}
|
|
return array;
|
|
}
|
|
function classArray(node) {
|
|
if (node.classList) {
|
|
return toArray(node.classList);
|
|
} else {
|
|
return (node.getAttribute("class") || "").split(" ").filter(function(i2) {
|
|
return i2;
|
|
});
|
|
}
|
|
}
|
|
function htmlEscape(str) {
|
|
return "".concat(str).replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
}
|
|
function joinAttributes(attributes) {
|
|
return Object.keys(attributes || {}).reduce(function(acc, attributeName) {
|
|
return acc + "".concat(attributeName, '="').concat(htmlEscape(attributes[attributeName]), '" ');
|
|
}, "").trim();
|
|
}
|
|
function joinStyles(styles2) {
|
|
return Object.keys(styles2 || {}).reduce(function(acc, styleName) {
|
|
return acc + "".concat(styleName, ": ").concat(styles2[styleName].trim(), ";");
|
|
}, "");
|
|
}
|
|
function transformIsMeaningful(transform) {
|
|
return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;
|
|
}
|
|
function transformForSvg(_ref2) {
|
|
var transform = _ref2.transform, containerWidth = _ref2.containerWidth, iconWidth = _ref2.iconWidth;
|
|
var outer = {
|
|
transform: "translate(".concat(containerWidth / 2, " 256)")
|
|
};
|
|
var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
|
|
var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
|
|
var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
|
|
var inner = {
|
|
transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
|
|
};
|
|
var path = {
|
|
transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
|
|
};
|
|
return {
|
|
outer,
|
|
inner,
|
|
path
|
|
};
|
|
}
|
|
function transformForCss(_ref2) {
|
|
var transform = _ref2.transform, _ref2$width = _ref2.width, width = _ref2$width === void 0 ? UNITS_IN_GRID : _ref2$width, _ref2$height = _ref2.height, height = _ref2$height === void 0 ? UNITS_IN_GRID : _ref2$height, _ref2$startCentered = _ref2.startCentered, startCentered = _ref2$startCentered === void 0 ? false : _ref2$startCentered;
|
|
var val = "";
|
|
if (startCentered && IS_IE) {
|
|
val += "translate(".concat(transform.x / d$2 - width / 2, "em, ").concat(transform.y / d$2 - height / 2, "em) ");
|
|
} else if (startCentered) {
|
|
val += "translate(calc(-50% + ".concat(transform.x / d$2, "em), calc(-50% + ").concat(transform.y / d$2, "em)) ");
|
|
} else {
|
|
val += "translate(".concat(transform.x / d$2, "em, ").concat(transform.y / d$2, "em) ");
|
|
}
|
|
val += "scale(".concat(transform.size / d$2 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / d$2 * (transform.flipY ? -1 : 1), ") ");
|
|
val += "rotate(".concat(transform.rotate, "deg) ");
|
|
return val;
|
|
}
|
|
var baseStyles = `:root, :host {
|
|
--fa-font-solid: normal 900 1em/1 "Font Awesome 7 Free";
|
|
--fa-font-regular: normal 400 1em/1 "Font Awesome 7 Free";
|
|
--fa-font-light: normal 300 1em/1 "Font Awesome 7 Pro";
|
|
--fa-font-thin: normal 100 1em/1 "Font Awesome 7 Pro";
|
|
--fa-font-duotone: normal 900 1em/1 "Font Awesome 7 Duotone";
|
|
--fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 7 Duotone";
|
|
--fa-font-duotone-light: normal 300 1em/1 "Font Awesome 7 Duotone";
|
|
--fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 7 Duotone";
|
|
--fa-font-brands: normal 400 1em/1 "Font Awesome 7 Brands";
|
|
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 7 Sharp";
|
|
--fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 7 Sharp";
|
|
--fa-font-sharp-light: normal 300 1em/1 "Font Awesome 7 Sharp";
|
|
--fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 7 Sharp";
|
|
--fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 7 Sharp Duotone";
|
|
--fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 7 Sharp Duotone";
|
|
--fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 7 Sharp Duotone";
|
|
--fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 7 Sharp Duotone";
|
|
--fa-font-slab-regular: normal 400 1em/1 "Font Awesome 7 Slab";
|
|
--fa-font-slab-press-regular: normal 400 1em/1 "Font Awesome 7 Slab Press";
|
|
--fa-font-whiteboard-semibold: normal 600 1em/1 "Font Awesome 7 Whiteboard";
|
|
--fa-font-thumbprint-light: normal 300 1em/1 "Font Awesome 7 Thumbprint";
|
|
--fa-font-notdog-solid: normal 900 1em/1 "Font Awesome 7 Notdog";
|
|
--fa-font-notdog-duo-solid: normal 900 1em/1 "Font Awesome 7 Notdog Duo";
|
|
--fa-font-etch-solid: normal 900 1em/1 "Font Awesome 7 Etch";
|
|
--fa-font-jelly-regular: normal 400 1em/1 "Font Awesome 7 Jelly";
|
|
--fa-font-jelly-fill-regular: normal 400 1em/1 "Font Awesome 7 Jelly Fill";
|
|
--fa-font-jelly-duo-regular: normal 400 1em/1 "Font Awesome 7 Jelly Duo";
|
|
--fa-font-chisel-regular: normal 400 1em/1 "Font Awesome 7 Chisel";
|
|
--fa-font-utility-semibold: normal 600 1em/1 "Font Awesome 7 Utility";
|
|
--fa-font-utility-duo-semibold: normal 600 1em/1 "Font Awesome 7 Utility Duo";
|
|
--fa-font-utility-fill-semibold: normal 600 1em/1 "Font Awesome 7 Utility Fill";
|
|
}
|
|
|
|
.svg-inline--fa {
|
|
box-sizing: content-box;
|
|
display: var(--fa-display, inline-block);
|
|
height: 1em;
|
|
overflow: visible;
|
|
vertical-align: -0.125em;
|
|
width: var(--fa-width, 1.25em);
|
|
}
|
|
.svg-inline--fa.fa-2xs {
|
|
vertical-align: 0.1em;
|
|
}
|
|
.svg-inline--fa.fa-xs {
|
|
vertical-align: 0em;
|
|
}
|
|
.svg-inline--fa.fa-sm {
|
|
vertical-align: -0.0714285714em;
|
|
}
|
|
.svg-inline--fa.fa-lg {
|
|
vertical-align: -0.2em;
|
|
}
|
|
.svg-inline--fa.fa-xl {
|
|
vertical-align: -0.25em;
|
|
}
|
|
.svg-inline--fa.fa-2xl {
|
|
vertical-align: -0.3125em;
|
|
}
|
|
.svg-inline--fa.fa-pull-left,
|
|
.svg-inline--fa .fa-pull-start {
|
|
float: inline-start;
|
|
margin-inline-end: var(--fa-pull-margin, 0.3em);
|
|
}
|
|
.svg-inline--fa.fa-pull-right,
|
|
.svg-inline--fa .fa-pull-end {
|
|
float: inline-end;
|
|
margin-inline-start: var(--fa-pull-margin, 0.3em);
|
|
}
|
|
.svg-inline--fa.fa-li {
|
|
width: var(--fa-li-width, 2em);
|
|
inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
|
|
inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */
|
|
}
|
|
|
|
.fa-layers-counter, .fa-layers-text {
|
|
display: inline-block;
|
|
position: absolute;
|
|
text-align: center;
|
|
}
|
|
|
|
.fa-layers {
|
|
display: inline-block;
|
|
height: 1em;
|
|
position: relative;
|
|
text-align: center;
|
|
vertical-align: -0.125em;
|
|
width: var(--fa-width, 1.25em);
|
|
}
|
|
.fa-layers .svg-inline--fa {
|
|
inset: 0;
|
|
margin: auto;
|
|
position: absolute;
|
|
transform-origin: center center;
|
|
}
|
|
|
|
.fa-layers-text {
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translate(-50%, -50%);
|
|
transform-origin: center center;
|
|
}
|
|
|
|
.fa-layers-counter {
|
|
background-color: var(--fa-counter-background-color, #ff253a);
|
|
border-radius: var(--fa-counter-border-radius, 1em);
|
|
box-sizing: border-box;
|
|
color: var(--fa-inverse, #fff);
|
|
line-height: var(--fa-counter-line-height, 1);
|
|
max-width: var(--fa-counter-max-width, 5em);
|
|
min-width: var(--fa-counter-min-width, 1.5em);
|
|
overflow: hidden;
|
|
padding: var(--fa-counter-padding, 0.25em 0.5em);
|
|
right: var(--fa-right, 0);
|
|
text-overflow: ellipsis;
|
|
top: var(--fa-top, 0);
|
|
transform: scale(var(--fa-counter-scale, 0.25));
|
|
transform-origin: top right;
|
|
}
|
|
|
|
.fa-layers-bottom-right {
|
|
bottom: var(--fa-bottom, 0);
|
|
right: var(--fa-right, 0);
|
|
top: auto;
|
|
transform: scale(var(--fa-layers-scale, 0.25));
|
|
transform-origin: bottom right;
|
|
}
|
|
|
|
.fa-layers-bottom-left {
|
|
bottom: var(--fa-bottom, 0);
|
|
left: var(--fa-left, 0);
|
|
right: auto;
|
|
top: auto;
|
|
transform: scale(var(--fa-layers-scale, 0.25));
|
|
transform-origin: bottom left;
|
|
}
|
|
|
|
.fa-layers-top-right {
|
|
top: var(--fa-top, 0);
|
|
right: var(--fa-right, 0);
|
|
transform: scale(var(--fa-layers-scale, 0.25));
|
|
transform-origin: top right;
|
|
}
|
|
|
|
.fa-layers-top-left {
|
|
left: var(--fa-left, 0);
|
|
right: auto;
|
|
top: var(--fa-top, 0);
|
|
transform: scale(var(--fa-layers-scale, 0.25));
|
|
transform-origin: top left;
|
|
}
|
|
|
|
.fa-1x {
|
|
font-size: 1em;
|
|
}
|
|
|
|
.fa-2x {
|
|
font-size: 2em;
|
|
}
|
|
|
|
.fa-3x {
|
|
font-size: 3em;
|
|
}
|
|
|
|
.fa-4x {
|
|
font-size: 4em;
|
|
}
|
|
|
|
.fa-5x {
|
|
font-size: 5em;
|
|
}
|
|
|
|
.fa-6x {
|
|
font-size: 6em;
|
|
}
|
|
|
|
.fa-7x {
|
|
font-size: 7em;
|
|
}
|
|
|
|
.fa-8x {
|
|
font-size: 8em;
|
|
}
|
|
|
|
.fa-9x {
|
|
font-size: 9em;
|
|
}
|
|
|
|
.fa-10x {
|
|
font-size: 10em;
|
|
}
|
|
|
|
.fa-2xs {
|
|
font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that's relative to the scale's 16px base */
|
|
line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
|
vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
|
}
|
|
|
|
.fa-xs {
|
|
font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that's relative to the scale's 16px base */
|
|
line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
|
vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
|
}
|
|
|
|
.fa-sm {
|
|
font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that's relative to the scale's 16px base */
|
|
line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
|
vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
|
}
|
|
|
|
.fa-lg {
|
|
font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that's relative to the scale's 16px base */
|
|
line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
|
vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
|
}
|
|
|
|
.fa-xl {
|
|
font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that's relative to the scale's 16px base */
|
|
line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
|
vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
|
}
|
|
|
|
.fa-2xl {
|
|
font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that's relative to the scale's 16px base */
|
|
line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it's parent */
|
|
vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
|
|
}
|
|
|
|
.fa-width-auto {
|
|
--fa-width: auto;
|
|
}
|
|
|
|
.fa-fw,
|
|
.fa-width-fixed {
|
|
--fa-width: 1.25em;
|
|
}
|
|
|
|
.fa-ul {
|
|
list-style-type: none;
|
|
margin-inline-start: var(--fa-li-margin, 2.5em);
|
|
padding-inline-start: 0;
|
|
}
|
|
.fa-ul > li {
|
|
position: relative;
|
|
}
|
|
|
|
.fa-li {
|
|
inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
|
|
position: absolute;
|
|
text-align: center;
|
|
width: var(--fa-li-width, 2em);
|
|
line-height: inherit;
|
|
}
|
|
|
|
/* Heads Up: Bordered Icons will not be supported in the future!
|
|
- This feature will be deprecated in the next major release of Font Awesome (v8)!
|
|
- You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.
|
|
*/
|
|
/* Notes:
|
|
* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)
|
|
* --@{v.$css-prefix}-border-padding =
|
|
** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment)
|
|
** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)
|
|
*/
|
|
.fa-border {
|
|
border-color: var(--fa-border-color, #eee);
|
|
border-radius: var(--fa-border-radius, 0.1em);
|
|
border-style: var(--fa-border-style, solid);
|
|
border-width: var(--fa-border-width, 0.0625em);
|
|
box-sizing: var(--fa-border-box-sizing, content-box);
|
|
padding: var(--fa-border-padding, 0.1875em 0.25em);
|
|
}
|
|
|
|
.fa-pull-left,
|
|
.fa-pull-start {
|
|
float: inline-start;
|
|
margin-inline-end: var(--fa-pull-margin, 0.3em);
|
|
}
|
|
|
|
.fa-pull-right,
|
|
.fa-pull-end {
|
|
float: inline-end;
|
|
margin-inline-start: var(--fa-pull-margin, 0.3em);
|
|
}
|
|
|
|
.fa-beat {
|
|
animation-name: fa-beat;
|
|
animation-delay: var(--fa-animation-delay, 0s);
|
|
animation-direction: var(--fa-animation-direction, normal);
|
|
animation-duration: var(--fa-animation-duration, 1s);
|
|
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
|
}
|
|
|
|
.fa-bounce {
|
|
animation-name: fa-bounce;
|
|
animation-delay: var(--fa-animation-delay, 0s);
|
|
animation-direction: var(--fa-animation-direction, normal);
|
|
animation-duration: var(--fa-animation-duration, 1s);
|
|
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
|
}
|
|
|
|
.fa-fade {
|
|
animation-name: fa-fade;
|
|
animation-delay: var(--fa-animation-delay, 0s);
|
|
animation-direction: var(--fa-animation-direction, normal);
|
|
animation-duration: var(--fa-animation-duration, 1s);
|
|
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
|
}
|
|
|
|
.fa-beat-fade {
|
|
animation-name: fa-beat-fade;
|
|
animation-delay: var(--fa-animation-delay, 0s);
|
|
animation-direction: var(--fa-animation-direction, normal);
|
|
animation-duration: var(--fa-animation-duration, 1s);
|
|
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
|
}
|
|
|
|
.fa-flip {
|
|
animation-name: fa-flip;
|
|
animation-delay: var(--fa-animation-delay, 0s);
|
|
animation-direction: var(--fa-animation-direction, normal);
|
|
animation-duration: var(--fa-animation-duration, 1s);
|
|
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
|
}
|
|
|
|
.fa-shake {
|
|
animation-name: fa-shake;
|
|
animation-delay: var(--fa-animation-delay, 0s);
|
|
animation-direction: var(--fa-animation-direction, normal);
|
|
animation-duration: var(--fa-animation-duration, 1s);
|
|
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
animation-timing-function: var(--fa-animation-timing, linear);
|
|
}
|
|
|
|
.fa-spin {
|
|
animation-name: fa-spin;
|
|
animation-delay: var(--fa-animation-delay, 0s);
|
|
animation-direction: var(--fa-animation-direction, normal);
|
|
animation-duration: var(--fa-animation-duration, 2s);
|
|
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
animation-timing-function: var(--fa-animation-timing, linear);
|
|
}
|
|
|
|
.fa-spin-reverse {
|
|
--fa-animation-direction: reverse;
|
|
}
|
|
|
|
.fa-pulse,
|
|
.fa-spin-pulse {
|
|
animation-name: fa-spin;
|
|
animation-direction: var(--fa-animation-direction, normal);
|
|
animation-duration: var(--fa-animation-duration, 1s);
|
|
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
animation-timing-function: var(--fa-animation-timing, steps(8));
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.fa-beat,
|
|
.fa-bounce,
|
|
.fa-fade,
|
|
.fa-beat-fade,
|
|
.fa-flip,
|
|
.fa-pulse,
|
|
.fa-shake,
|
|
.fa-spin,
|
|
.fa-spin-pulse {
|
|
animation: none !important;
|
|
transition: none !important;
|
|
}
|
|
}
|
|
@keyframes fa-beat {
|
|
0%, 90% {
|
|
transform: scale(1);
|
|
}
|
|
45% {
|
|
transform: scale(var(--fa-beat-scale, 1.25));
|
|
}
|
|
}
|
|
@keyframes fa-bounce {
|
|
0% {
|
|
transform: scale(1, 1) translateY(0);
|
|
}
|
|
10% {
|
|
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
|
}
|
|
30% {
|
|
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
|
|
}
|
|
50% {
|
|
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
|
}
|
|
57% {
|
|
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
|
}
|
|
64% {
|
|
transform: scale(1, 1) translateY(0);
|
|
}
|
|
100% {
|
|
transform: scale(1, 1) translateY(0);
|
|
}
|
|
}
|
|
@keyframes fa-fade {
|
|
50% {
|
|
opacity: var(--fa-fade-opacity, 0.4);
|
|
}
|
|
}
|
|
@keyframes fa-beat-fade {
|
|
0%, 100% {
|
|
opacity: var(--fa-beat-fade-opacity, 0.4);
|
|
transform: scale(1);
|
|
}
|
|
50% {
|
|
opacity: 1;
|
|
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
|
}
|
|
}
|
|
@keyframes fa-flip {
|
|
50% {
|
|
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
|
}
|
|
}
|
|
@keyframes fa-shake {
|
|
0% {
|
|
transform: rotate(-15deg);
|
|
}
|
|
4% {
|
|
transform: rotate(15deg);
|
|
}
|
|
8%, 24% {
|
|
transform: rotate(-18deg);
|
|
}
|
|
12%, 28% {
|
|
transform: rotate(18deg);
|
|
}
|
|
16% {
|
|
transform: rotate(-22deg);
|
|
}
|
|
20% {
|
|
transform: rotate(22deg);
|
|
}
|
|
32% {
|
|
transform: rotate(-12deg);
|
|
}
|
|
36% {
|
|
transform: rotate(12deg);
|
|
}
|
|
40%, 100% {
|
|
transform: rotate(0deg);
|
|
}
|
|
}
|
|
@keyframes fa-spin {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
.fa-rotate-90 {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.fa-rotate-180 {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.fa-rotate-270 {
|
|
transform: rotate(270deg);
|
|
}
|
|
|
|
.fa-flip-horizontal {
|
|
transform: scale(-1, 1);
|
|
}
|
|
|
|
.fa-flip-vertical {
|
|
transform: scale(1, -1);
|
|
}
|
|
|
|
.fa-flip-both,
|
|
.fa-flip-horizontal.fa-flip-vertical {
|
|
transform: scale(-1, -1);
|
|
}
|
|
|
|
.fa-rotate-by {
|
|
transform: rotate(var(--fa-rotate-angle, 0));
|
|
}
|
|
|
|
.svg-inline--fa .fa-primary {
|
|
fill: var(--fa-primary-color, currentColor);
|
|
opacity: var(--fa-primary-opacity, 1);
|
|
}
|
|
|
|
.svg-inline--fa .fa-secondary {
|
|
fill: var(--fa-secondary-color, currentColor);
|
|
opacity: var(--fa-secondary-opacity, 0.4);
|
|
}
|
|
|
|
.svg-inline--fa.fa-swap-opacity .fa-primary {
|
|
opacity: var(--fa-secondary-opacity, 0.4);
|
|
}
|
|
|
|
.svg-inline--fa.fa-swap-opacity .fa-secondary {
|
|
opacity: var(--fa-primary-opacity, 1);
|
|
}
|
|
|
|
.svg-inline--fa mask .fa-primary,
|
|
.svg-inline--fa mask .fa-secondary {
|
|
fill: black;
|
|
}
|
|
|
|
.svg-inline--fa.fa-inverse {
|
|
fill: var(--fa-inverse, #fff);
|
|
}
|
|
|
|
.fa-stack {
|
|
display: inline-block;
|
|
height: 2em;
|
|
line-height: 2em;
|
|
position: relative;
|
|
vertical-align: middle;
|
|
width: 2.5em;
|
|
}
|
|
|
|
.fa-inverse {
|
|
color: var(--fa-inverse, #fff);
|
|
}
|
|
|
|
.svg-inline--fa.fa-stack-1x {
|
|
--fa-width: 1.25em;
|
|
height: 1em;
|
|
width: var(--fa-width);
|
|
}
|
|
.svg-inline--fa.fa-stack-2x {
|
|
--fa-width: 2.5em;
|
|
height: 2em;
|
|
width: var(--fa-width);
|
|
}
|
|
|
|
.fa-stack-1x,
|
|
.fa-stack-2x {
|
|
inset: 0;
|
|
margin: auto;
|
|
position: absolute;
|
|
z-index: var(--fa-stack-z-index, auto);
|
|
}`;
|
|
function css() {
|
|
var dcp = DEFAULT_CSS_PREFIX;
|
|
var drc = DEFAULT_REPLACEMENT_CLASS;
|
|
var fp = config.cssPrefix;
|
|
var rc = config.replacementClass;
|
|
var s2 = baseStyles;
|
|
if (fp !== dcp || rc !== drc) {
|
|
var dPatt = new RegExp("\\.".concat(dcp, "\\-"), "g");
|
|
var customPropPatt = new RegExp("\\--".concat(dcp, "\\-"), "g");
|
|
var rPatt = new RegExp("\\.".concat(drc), "g");
|
|
s2 = s2.replace(dPatt, ".".concat(fp, "-")).replace(customPropPatt, "--".concat(fp, "-")).replace(rPatt, ".".concat(rc));
|
|
}
|
|
return s2;
|
|
}
|
|
var _cssInserted = false;
|
|
function ensureCss() {
|
|
if (config.autoAddCss && !_cssInserted) {
|
|
insertCss(css());
|
|
_cssInserted = true;
|
|
}
|
|
}
|
|
var InjectCSS = {
|
|
mixout: function mixout() {
|
|
return {
|
|
dom: {
|
|
css,
|
|
insertCss: ensureCss
|
|
}
|
|
};
|
|
},
|
|
hooks: function hooks() {
|
|
return {
|
|
beforeDOMElementCreation: function beforeDOMElementCreation() {
|
|
ensureCss();
|
|
},
|
|
beforeI2svg: function beforeI2svg() {
|
|
ensureCss();
|
|
}
|
|
};
|
|
}
|
|
};
|
|
var w$2 = WINDOW || {};
|
|
if (!w$2[NAMESPACE_IDENTIFIER]) w$2[NAMESPACE_IDENTIFIER] = {};
|
|
if (!w$2[NAMESPACE_IDENTIFIER].styles) w$2[NAMESPACE_IDENTIFIER].styles = {};
|
|
if (!w$2[NAMESPACE_IDENTIFIER].hooks) w$2[NAMESPACE_IDENTIFIER].hooks = {};
|
|
if (!w$2[NAMESPACE_IDENTIFIER].shims) w$2[NAMESPACE_IDENTIFIER].shims = [];
|
|
var namespace = w$2[NAMESPACE_IDENTIFIER];
|
|
var functions = [];
|
|
var _listener = function listener() {
|
|
DOCUMENT.removeEventListener("DOMContentLoaded", _listener);
|
|
loaded = 1;
|
|
functions.map(function(fn) {
|
|
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);
|
|
}
|
|
function toHtml(abstractNodes) {
|
|
var tag = abstractNodes.tag, _abstractNodes$attrib = abstractNodes.attributes, attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib, _abstractNodes$childr = abstractNodes.children, children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;
|
|
if (typeof abstractNodes === "string") {
|
|
return htmlEscape(abstractNodes);
|
|
} else {
|
|
return "<".concat(tag, " ").concat(joinAttributes(attributes), ">").concat(children.map(toHtml).join(""), "</").concat(tag, ">");
|
|
}
|
|
}
|
|
function iconFromMapping(mapping, prefix, iconName) {
|
|
if (mapping && mapping[prefix] && mapping[prefix][iconName]) {
|
|
return {
|
|
prefix,
|
|
iconName,
|
|
icon: mapping[prefix][iconName]
|
|
};
|
|
}
|
|
}
|
|
var bindInternal4 = function bindInternal42(func, thisContext) {
|
|
return function(a2, b2, c2, d2) {
|
|
return func.call(thisContext, a2, b2, c2, d2);
|
|
};
|
|
};
|
|
var reduce = function fastReduceObject(subject, fn, initialValue, thisContext) {
|
|
var keys = Object.keys(subject), length = keys.length, iterator = thisContext !== void 0 ? bindInternal4(fn, thisContext) : fn, i2, key, result;
|
|
if (initialValue === void 0) {
|
|
i2 = 1;
|
|
result = subject[keys[0]];
|
|
} else {
|
|
i2 = 0;
|
|
result = initialValue;
|
|
}
|
|
for (; i2 < length; i2++) {
|
|
key = keys[i2];
|
|
result = iterator(result, subject[key], key, subject);
|
|
}
|
|
return result;
|
|
};
|
|
function toHex(unicode) {
|
|
if (_toConsumableArray(unicode).length !== 1) return null;
|
|
return unicode.codePointAt(0).toString(16);
|
|
}
|
|
function normalizeIcons(icons) {
|
|
return Object.keys(icons).reduce(function(acc, iconName) {
|
|
var icon3 = icons[iconName];
|
|
var expanded = !!icon3.icon;
|
|
if (expanded) {
|
|
acc[icon3.iconName] = icon3.icon;
|
|
} else {
|
|
acc[iconName] = icon3;
|
|
}
|
|
return acc;
|
|
}, {});
|
|
}
|
|
function defineIcons(prefix, icons) {
|
|
var params = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
var _params$skipHooks = 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);
|
|
}
|
|
if (prefix === "fas") {
|
|
defineIcons("fa", icons);
|
|
}
|
|
}
|
|
var MONO = 1;
|
|
var DUO = 2;
|
|
var modernMatches = [[DUO, _wrapRegExp(/path opacity="([^"]*)".*d="([^"]*)".*path.*d="([^"]*)"/, {
|
|
d2: 2,
|
|
d1: 3
|
|
})], [DUO, _wrapRegExp(/path opacity="([^"]*)".*d="([^"]*)"/, {
|
|
d2: 2
|
|
})], [MONO, _wrapRegExp(/path fill="currentColor".*d="([^"]+)"/, {
|
|
d1: 1
|
|
})]];
|
|
var legacyMatches = [[DUO, _wrapRegExp(/path class="([^"]*secondary[^"]*)".*d="([^"]+)".*path class="([^"]*primary[^"]*)".*d="([^"]+)"/, {
|
|
attr2: 1,
|
|
d2: 2,
|
|
attr1: 3,
|
|
d1: 4
|
|
})], [DUO, _wrapRegExp(/path class="([^"]*primary[^"]*)".*d="([^"]+)".*path class="([^"]*secondary[^"]*)".*d="([^"]+)"/, {
|
|
attr1: 1,
|
|
d1: 2,
|
|
attr2: 3,
|
|
d2: 4
|
|
})], [DUO, _wrapRegExp(/path class="([^"]*primary[^"]*)".*d="([^"]+)"/, {
|
|
attr1: 1,
|
|
d1: 2
|
|
})], [DUO, _wrapRegExp(/path class="([^"]*secondary[^"]*)".*d="([^"]+)"/, {
|
|
attr2: 1,
|
|
d2: 2
|
|
})], [DUO, _wrapRegExp(/path d="([^"]+)".*class="([^"]*secondary[^"]*)".*path d="([^"]+)".*class="([^"]*primary[^"]*)"/, {
|
|
d2: 1,
|
|
attr2: 2,
|
|
d1: 3,
|
|
attr1: 4
|
|
})], [DUO, _wrapRegExp(/path d="([^"]+)".*class="([^"]*primary[^"]*)".*path d="([^"]+)".*class="([^"]*secondary[^"]*)"/, {
|
|
d1: 1,
|
|
attr1: 2,
|
|
d2: 3,
|
|
attr2: 4
|
|
})], [DUO, _wrapRegExp(/path d="([^"]+)".*class="([^"]*primary[^"]*)"/, {
|
|
d1: 1,
|
|
attr1: 2
|
|
})], [DUO, _wrapRegExp(/path d="([^"]+)".*class="([^"]*secondary[^"]*)"/, {
|
|
d2: 1,
|
|
attr2: 2
|
|
})], [DUO, _wrapRegExp(/path d="([^"]+)".*path d="([^"]+)"/, {
|
|
d1: 1,
|
|
d2: 2
|
|
})], [MONO, _wrapRegExp(/path d="([^"]+)"/, {
|
|
d1: 1
|
|
})], [MONO, _wrapRegExp(/path style="([^"]+)".*d="([^"]+)"/, {
|
|
attr1: 1,
|
|
d1: 2
|
|
})]];
|
|
var styles = namespace.styles;
|
|
var shims = namespace.shims;
|
|
var FAMILY_NAMES = Object.keys(PREFIX_TO_LONG_STYLE);
|
|
var PREFIXES_FOR_FAMILY = FAMILY_NAMES.reduce(function(acc, familyId) {
|
|
acc[familyId] = Object.keys(PREFIX_TO_LONG_STYLE[familyId]);
|
|
return acc;
|
|
}, {});
|
|
var _defaultUsablePrefix = null;
|
|
var _byUnicode = {};
|
|
var _byLigature = {};
|
|
var _byOldName = {};
|
|
var _byOldUnicode = {};
|
|
var _byAlias = {};
|
|
function isReserved(name) {
|
|
return ~RESERVED_CLASSES.indexOf(name);
|
|
}
|
|
function getIconName(cssPrefix, cls) {
|
|
var parts = cls.split("-");
|
|
var prefix = parts[0];
|
|
var iconName = parts.slice(1).join("-");
|
|
if (prefix === cssPrefix && iconName !== "" && !isReserved(iconName)) {
|
|
return iconName;
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
var build = function build2() {
|
|
var lookup = function lookup2(reducer) {
|
|
return reduce(styles, function(o$$1, style, prefix) {
|
|
o$$1[prefix] = reduce(style, reducer, {});
|
|
return o$$1;
|
|
}, {});
|
|
};
|
|
_byUnicode = lookup(function(acc, icon3, iconName) {
|
|
if (icon3[3]) {
|
|
acc[icon3[3]] = iconName;
|
|
}
|
|
if (icon3[2]) {
|
|
var aliases = icon3[2].filter(function(a$$1) {
|
|
return typeof a$$1 === "number";
|
|
});
|
|
aliases.forEach(function(alias) {
|
|
acc[alias.toString(16)] = iconName;
|
|
});
|
|
}
|
|
return acc;
|
|
});
|
|
_byLigature = lookup(function(acc, icon3, iconName) {
|
|
acc[iconName] = iconName;
|
|
if (icon3[2]) {
|
|
var aliases = icon3[2].filter(function(a$$1) {
|
|
return typeof a$$1 === "string";
|
|
});
|
|
aliases.forEach(function(alias) {
|
|
acc[alias] = iconName;
|
|
});
|
|
}
|
|
return acc;
|
|
});
|
|
_byAlias = lookup(function(acc, icon3, iconName) {
|
|
var aliases = icon3[2];
|
|
acc[iconName] = iconName;
|
|
aliases.forEach(function(alias) {
|
|
acc[alias] = iconName;
|
|
});
|
|
return acc;
|
|
});
|
|
var hasRegular = "far" in styles || config.autoFetchSvg;
|
|
var shimLookups = reduce(shims, function(acc, shim) {
|
|
var maybeNameMaybeUnicode = shim[0];
|
|
var prefix = shim[1];
|
|
var iconName = shim[2];
|
|
if (prefix === "far" && !hasRegular) {
|
|
prefix = "fas";
|
|
}
|
|
if (typeof maybeNameMaybeUnicode === "string") {
|
|
acc.names[maybeNameMaybeUnicode] = {
|
|
prefix,
|
|
iconName
|
|
};
|
|
}
|
|
if (typeof maybeNameMaybeUnicode === "number") {
|
|
acc.unicodes[maybeNameMaybeUnicode.toString(16)] = {
|
|
prefix,
|
|
iconName
|
|
};
|
|
}
|
|
return acc;
|
|
}, {
|
|
names: {},
|
|
unicodes: {}
|
|
});
|
|
_byOldName = shimLookups.names;
|
|
_byOldUnicode = shimLookups.unicodes;
|
|
_defaultUsablePrefix = getCanonicalPrefix(config.styleDefault, {
|
|
family: config.familyDefault
|
|
});
|
|
};
|
|
onChange(function(c$$1) {
|
|
_defaultUsablePrefix = getCanonicalPrefix(c$$1.styleDefault, {
|
|
family: config.familyDefault
|
|
});
|
|
});
|
|
build();
|
|
function byUnicode(prefix, unicode) {
|
|
return (_byUnicode[prefix] || {})[unicode];
|
|
}
|
|
function byLigature(prefix, ligature) {
|
|
return (_byLigature[prefix] || {})[ligature];
|
|
}
|
|
function byAlias(prefix, alias) {
|
|
return (_byAlias[prefix] || {})[alias];
|
|
}
|
|
function byOldName(name) {
|
|
return _byOldName[name] || {
|
|
prefix: null,
|
|
iconName: null
|
|
};
|
|
}
|
|
function byOldUnicode(unicode) {
|
|
var oldUnicode = _byOldUnicode[unicode];
|
|
var newUnicode = byUnicode("fas", unicode);
|
|
return oldUnicode || (newUnicode ? {
|
|
prefix: "fas",
|
|
iconName: newUnicode
|
|
} : null) || {
|
|
prefix: null,
|
|
iconName: null
|
|
};
|
|
}
|
|
function getDefaultUsablePrefix() {
|
|
return _defaultUsablePrefix;
|
|
}
|
|
var emptyCanonicalIcon = function emptyCanonicalIcon2() {
|
|
return {
|
|
prefix: null,
|
|
iconName: null,
|
|
rest: []
|
|
};
|
|
};
|
|
function getFamilyId(values) {
|
|
var family = i;
|
|
var famProps = FAMILY_NAMES.reduce(function(acc, familyId) {
|
|
acc[familyId] = "".concat(config.cssPrefix, "-").concat(familyId);
|
|
return acc;
|
|
}, {});
|
|
rt.forEach(function(familyId) {
|
|
if (values.includes(famProps[familyId]) || values.some(function(v$$1) {
|
|
return PREFIXES_FOR_FAMILY[familyId].includes(v$$1);
|
|
})) {
|
|
family = familyId;
|
|
}
|
|
});
|
|
return family;
|
|
}
|
|
function getCanonicalPrefix(styleOrPrefix) {
|
|
var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
var _params$family = params.family, family = _params$family === void 0 ? i : _params$family;
|
|
var style = PREFIX_TO_STYLE[family][styleOrPrefix];
|
|
if (family === t && !styleOrPrefix) {
|
|
return "fad";
|
|
}
|
|
var prefix = STYLE_TO_PREFIX[family][styleOrPrefix] || STYLE_TO_PREFIX[family][style];
|
|
var defined = styleOrPrefix in namespace.styles ? styleOrPrefix : null;
|
|
var result = prefix || defined || null;
|
|
return result;
|
|
}
|
|
function moveNonFaClassesToRest(classNames) {
|
|
var rest = [];
|
|
var iconName = null;
|
|
classNames.forEach(function(cls) {
|
|
var result = getIconName(config.cssPrefix, cls);
|
|
if (result) {
|
|
iconName = result;
|
|
} else if (cls) {
|
|
rest.push(cls);
|
|
}
|
|
});
|
|
return {
|
|
iconName,
|
|
rest
|
|
};
|
|
}
|
|
function sortedUniqueValues(arr) {
|
|
return arr.sort().filter(function(value, index, arr2) {
|
|
return arr2.indexOf(value) === index;
|
|
});
|
|
}
|
|
var _faCombinedClasses = Zt$1.concat(Yt);
|
|
function getCanonicalIcon(values) {
|
|
var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
var _params$skipLookups = params.skipLookups, skipLookups = _params$skipLookups === void 0 ? false : _params$skipLookups;
|
|
var givenPrefix = null;
|
|
var faStyleOrFamilyClasses = sortedUniqueValues(values.filter(function(cls) {
|
|
return _faCombinedClasses.includes(cls);
|
|
}));
|
|
var nonStyleOrFamilyClasses = sortedUniqueValues(values.filter(function(cls) {
|
|
return !_faCombinedClasses.includes(cls);
|
|
}));
|
|
var faStyles = faStyleOrFamilyClasses.filter(function(cls) {
|
|
givenPrefix = cls;
|
|
return !Q.includes(cls);
|
|
});
|
|
var _faStyles = _slicedToArray(faStyles, 1), _faStyles$ = _faStyles[0], styleFromValues = _faStyles$ === void 0 ? null : _faStyles$;
|
|
var family = getFamilyId(faStyleOrFamilyClasses);
|
|
var canonical = _objectSpread2(_objectSpread2({}, moveNonFaClassesToRest(nonStyleOrFamilyClasses)), {}, {
|
|
prefix: getCanonicalPrefix(styleFromValues, {
|
|
family
|
|
})
|
|
});
|
|
return _objectSpread2(_objectSpread2(_objectSpread2({}, canonical), getDefaultCanonicalPrefix({
|
|
values,
|
|
family,
|
|
styles,
|
|
config,
|
|
canonical,
|
|
givenPrefix
|
|
})), applyShimAndAlias(skipLookups, givenPrefix, canonical));
|
|
}
|
|
function applyShimAndAlias(skipLookups, givenPrefix, canonical) {
|
|
var prefix = canonical.prefix, iconName = canonical.iconName;
|
|
if (skipLookups || !prefix || !iconName) {
|
|
return {
|
|
prefix,
|
|
iconName
|
|
};
|
|
}
|
|
var shim = givenPrefix === "fa" ? byOldName(iconName) : {};
|
|
var aliasIconName = byAlias(prefix, iconName);
|
|
iconName = shim.iconName || aliasIconName || iconName;
|
|
prefix = shim.prefix || prefix;
|
|
if (prefix === "far" && !styles["far"] && styles["fas"] && !config.autoFetchSvg) {
|
|
prefix = "fas";
|
|
}
|
|
return {
|
|
prefix,
|
|
iconName
|
|
};
|
|
}
|
|
var newCanonicalFamilies = rt.filter(function(familyId) {
|
|
return familyId !== i || familyId !== t;
|
|
});
|
|
var newCanonicalStyles = Object.keys(Ht$1).filter(function(key) {
|
|
return key !== i;
|
|
}).map(function(key) {
|
|
return Object.keys(Ht$1[key]);
|
|
}).flat();
|
|
function getDefaultCanonicalPrefix(prefixOptions) {
|
|
var values = prefixOptions.values, family = prefixOptions.family, canonical = prefixOptions.canonical, _prefixOptions$givenP = prefixOptions.givenPrefix, givenPrefix = _prefixOptions$givenP === void 0 ? "" : _prefixOptions$givenP, _prefixOptions$styles = prefixOptions.styles, styles2 = _prefixOptions$styles === void 0 ? {} : _prefixOptions$styles, _prefixOptions$config = prefixOptions.config, config$$1 = _prefixOptions$config === void 0 ? {} : _prefixOptions$config;
|
|
var isDuotoneFamily = family === t;
|
|
var valuesHasDuotone = values.includes("fa-duotone") || values.includes("fad");
|
|
var defaultFamilyIsDuotone = config$$1.familyDefault === "duotone";
|
|
var canonicalPrefixIsDuotone = canonical.prefix === "fad" || canonical.prefix === "fa-duotone";
|
|
if (!isDuotoneFamily && (valuesHasDuotone || defaultFamilyIsDuotone || canonicalPrefixIsDuotone)) {
|
|
canonical.prefix = "fad";
|
|
}
|
|
if (values.includes("fa-brands") || values.includes("fab")) {
|
|
canonical.prefix = "fab";
|
|
}
|
|
if (!canonical.prefix && newCanonicalFamilies.includes(family)) {
|
|
var validPrefix = Object.keys(styles2).find(function(key) {
|
|
return newCanonicalStyles.includes(key);
|
|
});
|
|
if (validPrefix || config$$1.autoFetchSvg) {
|
|
var defaultPrefix = Ut.get(family).defaultShortPrefixId;
|
|
canonical.prefix = defaultPrefix;
|
|
canonical.iconName = byAlias(canonical.prefix, canonical.iconName) || canonical.iconName;
|
|
}
|
|
}
|
|
if (canonical.prefix === "fa" || givenPrefix === "fa") {
|
|
canonical.prefix = getDefaultUsablePrefix() || "fas";
|
|
}
|
|
return canonical;
|
|
}
|
|
var Library = (function() {
|
|
function Library2() {
|
|
_classCallCheck(this, Library2);
|
|
this.definitions = {};
|
|
}
|
|
return _createClass(Library2, [{
|
|
key: "add",
|
|
value: function add() {
|
|
var _this = this;
|
|
for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
definitions[_key] = arguments[_key];
|
|
}
|
|
var additions = definitions.reduce(this._pullDefinitions, {});
|
|
Object.keys(additions).forEach(function(key) {
|
|
_this.definitions[key] = _objectSpread2(_objectSpread2({}, _this.definitions[key] || {}), additions[key]);
|
|
defineIcons(key, additions[key]);
|
|
var longPrefix = PREFIX_TO_LONG_STYLE[i][key];
|
|
if (longPrefix) defineIcons(longPrefix, additions[key]);
|
|
build();
|
|
});
|
|
}
|
|
}, {
|
|
key: "reset",
|
|
value: function reset() {
|
|
this.definitions = {};
|
|
}
|
|
}, {
|
|
key: "_pullDefinitions",
|
|
value: function _pullDefinitions(additions, definition) {
|
|
var normalized = definition.prefix && definition.iconName && definition.icon ? {
|
|
0: definition
|
|
} : definition;
|
|
Object.keys(normalized).map(function(key) {
|
|
var _normalized$key = normalized[key], prefix = _normalized$key.prefix, iconName = _normalized$key.iconName, icon3 = _normalized$key.icon;
|
|
var aliases = icon3[2];
|
|
if (!additions[prefix]) additions[prefix] = {};
|
|
if (aliases.length > 0) {
|
|
aliases.forEach(function(alias) {
|
|
if (typeof alias === "string") {
|
|
additions[prefix][alias] = icon3;
|
|
}
|
|
});
|
|
}
|
|
additions[prefix][iconName] = icon3;
|
|
});
|
|
return additions;
|
|
}
|
|
}]);
|
|
})();
|
|
var _plugins = [];
|
|
var _hooks = {};
|
|
var providers = {};
|
|
var defaultProviderKeys = Object.keys(providers);
|
|
function registerPlugins(nextPlugins, _ref2) {
|
|
var obj = _ref2.mixoutsTo;
|
|
_plugins = nextPlugins;
|
|
_hooks = {};
|
|
Object.keys(providers).forEach(function(k2) {
|
|
if (defaultProviderKeys.indexOf(k2) === -1) {
|
|
delete providers[k2];
|
|
}
|
|
});
|
|
_plugins.forEach(function(plugin) {
|
|
var mixout8 = plugin.mixout ? plugin.mixout() : {};
|
|
Object.keys(mixout8).forEach(function(tk) {
|
|
if (typeof mixout8[tk] === "function") {
|
|
obj[tk] = mixout8[tk];
|
|
}
|
|
if (_typeof(mixout8[tk]) === "object") {
|
|
Object.keys(mixout8[tk]).forEach(function(sk) {
|
|
if (!obj[tk]) {
|
|
obj[tk] = {};
|
|
}
|
|
obj[tk][sk] = mixout8[tk][sk];
|
|
});
|
|
}
|
|
});
|
|
if (plugin.hooks) {
|
|
var hooks8 = plugin.hooks();
|
|
Object.keys(hooks8).forEach(function(hook) {
|
|
if (!_hooks[hook]) {
|
|
_hooks[hook] = [];
|
|
}
|
|
_hooks[hook].push(hooks8[hook]);
|
|
});
|
|
}
|
|
if (plugin.provides) {
|
|
plugin.provides(providers);
|
|
}
|
|
});
|
|
return obj;
|
|
}
|
|
function chainHooks(hook, accumulator) {
|
|
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
args[_key - 2] = arguments[_key];
|
|
}
|
|
var hookFns = _hooks[hook] || [];
|
|
hookFns.forEach(function(hookFn) {
|
|
accumulator = hookFn.apply(null, [accumulator].concat(args));
|
|
});
|
|
return accumulator;
|
|
}
|
|
function callHooks(hook) {
|
|
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
args[_key2 - 1] = arguments[_key2];
|
|
}
|
|
var hookFns = _hooks[hook] || [];
|
|
hookFns.forEach(function(hookFn) {
|
|
hookFn.apply(null, args);
|
|
});
|
|
return void 0;
|
|
}
|
|
function callProvided() {
|
|
var hook = arguments[0];
|
|
var args = Array.prototype.slice.call(arguments, 1);
|
|
return providers[hook] ? providers[hook].apply(null, args) : void 0;
|
|
}
|
|
function findIconDefinition(iconLookup) {
|
|
if (iconLookup.prefix === "fa") {
|
|
iconLookup.prefix = "fas";
|
|
}
|
|
var iconName = iconLookup.iconName;
|
|
var prefix = iconLookup.prefix || getDefaultUsablePrefix();
|
|
if (!iconName) return;
|
|
iconName = byAlias(prefix, iconName) || iconName;
|
|
return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);
|
|
}
|
|
var library = new Library();
|
|
var noAuto = function noAuto2() {
|
|
config.autoReplaceSvg = false;
|
|
config.observeMutations = false;
|
|
callHooks("noAuto");
|
|
};
|
|
var dom = {
|
|
i2svg: function i2svg() {
|
|
var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
if (IS_DOM) {
|
|
callHooks("beforeI2svg", params);
|
|
callProvided("pseudoElements2svg", params);
|
|
return callProvided("i2svg", params);
|
|
} else {
|
|
return Promise.reject(new Error("Operation requires a DOM of some kind."));
|
|
}
|
|
},
|
|
watch: function watch() {
|
|
var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
var autoReplaceSvgRoot = params.autoReplaceSvgRoot;
|
|
if (config.autoReplaceSvg === false) {
|
|
config.autoReplaceSvg = true;
|
|
}
|
|
config.observeMutations = true;
|
|
domready(function() {
|
|
autoReplace({
|
|
autoReplaceSvgRoot
|
|
});
|
|
callHooks("watch", params);
|
|
});
|
|
}
|
|
};
|
|
var parse = {
|
|
icon: function icon(_icon) {
|
|
if (_icon === null) {
|
|
return null;
|
|
}
|
|
if (_typeof(_icon) === "object" && _icon.prefix && _icon.iconName) {
|
|
return {
|
|
prefix: _icon.prefix,
|
|
iconName: byAlias(_icon.prefix, _icon.iconName) || _icon.iconName
|
|
};
|
|
}
|
|
if (Array.isArray(_icon) && _icon.length === 2) {
|
|
var iconName = _icon[1].indexOf("fa-") === 0 ? _icon[1].slice(3) : _icon[1];
|
|
var prefix = getCanonicalPrefix(_icon[0]);
|
|
return {
|
|
prefix,
|
|
iconName: byAlias(prefix, iconName) || iconName
|
|
};
|
|
}
|
|
if (typeof _icon === "string" && (_icon.indexOf("".concat(config.cssPrefix, "-")) > -1 || _icon.match(ICON_SELECTION_SYNTAX_PATTERN))) {
|
|
var canonicalIcon = getCanonicalIcon(_icon.split(" "), {
|
|
skipLookups: true
|
|
});
|
|
return {
|
|
prefix: canonicalIcon.prefix || getDefaultUsablePrefix(),
|
|
iconName: byAlias(canonicalIcon.prefix, canonicalIcon.iconName) || canonicalIcon.iconName
|
|
};
|
|
}
|
|
if (typeof _icon === "string") {
|
|
var _prefix = getDefaultUsablePrefix();
|
|
return {
|
|
prefix: _prefix,
|
|
iconName: byAlias(_prefix, _icon) || _icon
|
|
};
|
|
}
|
|
}
|
|
};
|
|
var api = {
|
|
noAuto,
|
|
config,
|
|
dom,
|
|
parse,
|
|
library,
|
|
findIconDefinition,
|
|
toHtml
|
|
};
|
|
var autoReplace = function autoReplace2() {
|
|
var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
var _params$autoReplaceSv = params.autoReplaceSvgRoot, autoReplaceSvgRoot = _params$autoReplaceSv === void 0 ? DOCUMENT : _params$autoReplaceSv;
|
|
if ((Object.keys(namespace.styles).length > 0 || config.autoFetchSvg) && IS_DOM && config.autoReplaceSvg) api.dom.i2svg({
|
|
node: autoReplaceSvgRoot
|
|
});
|
|
};
|
|
function domVariants(val, abstractCreator) {
|
|
Object.defineProperty(val, "abstract", {
|
|
get: abstractCreator
|
|
});
|
|
Object.defineProperty(val, "html", {
|
|
get: function get2() {
|
|
return val.abstract.map(function(a2) {
|
|
return toHtml(a2);
|
|
});
|
|
}
|
|
});
|
|
Object.defineProperty(val, "node", {
|
|
get: function get2() {
|
|
if (!IS_DOM) return void 0;
|
|
var container = DOCUMENT.createElement("div");
|
|
container.innerHTML = val.html;
|
|
return container.children;
|
|
}
|
|
});
|
|
return val;
|
|
}
|
|
function asIcon(_ref2) {
|
|
var children = _ref2.children, main = _ref2.main, mask = _ref2.mask, attributes = _ref2.attributes, styles2 = _ref2.styles, transform = _ref2.transform;
|
|
if (transformIsMeaningful(transform) && main.found && !mask.found) {
|
|
var width = main.width, height = main.height;
|
|
var offset = {
|
|
x: width / height / 2,
|
|
y: 0.5
|
|
};
|
|
attributes["style"] = joinStyles(_objectSpread2(_objectSpread2({}, styles2), {}, {
|
|
"transform-origin": "".concat(offset.x + transform.x / 16, "em ").concat(offset.y + transform.y / 16, "em")
|
|
}));
|
|
}
|
|
return [{
|
|
tag: "svg",
|
|
attributes,
|
|
children
|
|
}];
|
|
}
|
|
function asSymbol(_ref2) {
|
|
var prefix = _ref2.prefix, iconName = _ref2.iconName, children = _ref2.children, attributes = _ref2.attributes, symbol = _ref2.symbol;
|
|
var id = symbol === true ? "".concat(prefix, "-").concat(config.cssPrefix, "-").concat(iconName) : symbol;
|
|
return [{
|
|
tag: "svg",
|
|
attributes: {
|
|
style: "display: none;"
|
|
},
|
|
children: [{
|
|
tag: "symbol",
|
|
attributes: _objectSpread2(_objectSpread2({}, attributes), {}, {
|
|
id
|
|
}),
|
|
children
|
|
}]
|
|
}];
|
|
}
|
|
function isLabeled(attributes) {
|
|
var labels = ["aria-label", "aria-labelledby", "title", "role"];
|
|
return labels.some(function(label) {
|
|
return label in attributes;
|
|
});
|
|
}
|
|
function makeInlineSvgAbstract(params) {
|
|
var _params$icons = params.icons, main = _params$icons.main, mask = _params$icons.mask, prefix = params.prefix, iconName = params.iconName, transform = params.transform, symbol = params.symbol, maskId = params.maskId, extra = params.extra, _params$watchable = params.watchable, watchable = _params$watchable === void 0 ? false : _params$watchable;
|
|
var _ref2 = mask.found ? mask : main, width = _ref2.width, height = _ref2.height;
|
|
var attrClass = [config.replacementClass, iconName ? "".concat(config.cssPrefix, "-").concat(iconName) : ""].filter(function(c2) {
|
|
return extra.classes.indexOf(c2) === -1;
|
|
}).filter(function(c2) {
|
|
return c2 !== "" || !!c2;
|
|
}).concat(extra.classes).join(" ");
|
|
var content = {
|
|
children: [],
|
|
attributes: _objectSpread2(_objectSpread2({}, extra.attributes), {}, {
|
|
"data-prefix": prefix,
|
|
"data-icon": iconName,
|
|
"class": attrClass,
|
|
"role": extra.attributes.role || "img",
|
|
"viewBox": "0 0 ".concat(width, " ").concat(height)
|
|
})
|
|
};
|
|
if (!isLabeled(extra.attributes) && !extra.attributes["aria-hidden"]) {
|
|
content.attributes["aria-hidden"] = "true";
|
|
}
|
|
if (watchable) {
|
|
content.attributes[DATA_FA_I2SVG] = "";
|
|
}
|
|
var args = _objectSpread2(_objectSpread2({}, content), {}, {
|
|
prefix,
|
|
iconName,
|
|
main,
|
|
mask,
|
|
maskId,
|
|
transform,
|
|
symbol,
|
|
styles: _objectSpread2({}, extra.styles)
|
|
});
|
|
var _ref22 = mask.found && main.found ? callProvided("generateAbstractMask", args) || {
|
|
children: [],
|
|
attributes: {}
|
|
} : callProvided("generateAbstractIcon", args) || {
|
|
children: [],
|
|
attributes: {}
|
|
}, children = _ref22.children, attributes = _ref22.attributes;
|
|
args.children = children;
|
|
args.attributes = attributes;
|
|
if (symbol) {
|
|
return asSymbol(args);
|
|
} else {
|
|
return asIcon(args);
|
|
}
|
|
}
|
|
function makeLayersTextAbstract(params) {
|
|
var content = params.content, width = params.width, height = params.height, transform = params.transform, extra = params.extra, _params$watchable2 = params.watchable, watchable = _params$watchable2 === void 0 ? false : _params$watchable2;
|
|
var attributes = _objectSpread2(_objectSpread2({}, extra.attributes), {}, {
|
|
class: extra.classes.join(" ")
|
|
});
|
|
if (watchable) {
|
|
attributes[DATA_FA_I2SVG] = "";
|
|
}
|
|
var styles2 = _objectSpread2({}, extra.styles);
|
|
if (transformIsMeaningful(transform)) {
|
|
styles2["transform"] = transformForCss({
|
|
transform,
|
|
startCentered: true,
|
|
width,
|
|
height
|
|
});
|
|
styles2["-webkit-transform"] = styles2["transform"];
|
|
}
|
|
var styleString = joinStyles(styles2);
|
|
if (styleString.length > 0) {
|
|
attributes["style"] = styleString;
|
|
}
|
|
var val = [];
|
|
val.push({
|
|
tag: "span",
|
|
attributes,
|
|
children: [content]
|
|
});
|
|
return val;
|
|
}
|
|
function makeLayersCounterAbstract(params) {
|
|
var content = params.content, extra = params.extra;
|
|
var attributes = _objectSpread2(_objectSpread2({}, extra.attributes), {}, {
|
|
class: extra.classes.join(" ")
|
|
});
|
|
var styleString = joinStyles(extra.styles);
|
|
if (styleString.length > 0) {
|
|
attributes["style"] = styleString;
|
|
}
|
|
var val = [];
|
|
val.push({
|
|
tag: "span",
|
|
attributes,
|
|
children: [content]
|
|
});
|
|
return val;
|
|
}
|
|
var styles$1 = namespace.styles;
|
|
function asFoundIcon(icon3) {
|
|
var width = icon3[0];
|
|
var height = icon3[1];
|
|
var _icon$slice = icon3.slice(4), _icon$slice2 = _slicedToArray(_icon$slice, 1), vectorData = _icon$slice2[0];
|
|
var element = null;
|
|
if (Array.isArray(vectorData)) {
|
|
element = {
|
|
tag: "g",
|
|
attributes: {
|
|
class: "".concat(config.cssPrefix, "-").concat(DUOTONE_CLASSES.GROUP)
|
|
},
|
|
children: [{
|
|
tag: "path",
|
|
attributes: {
|
|
class: "".concat(config.cssPrefix, "-").concat(DUOTONE_CLASSES.SECONDARY),
|
|
fill: "currentColor",
|
|
d: vectorData[0]
|
|
}
|
|
}, {
|
|
tag: "path",
|
|
attributes: {
|
|
class: "".concat(config.cssPrefix, "-").concat(DUOTONE_CLASSES.PRIMARY),
|
|
fill: "currentColor",
|
|
d: vectorData[1]
|
|
}
|
|
}]
|
|
};
|
|
} else {
|
|
element = {
|
|
tag: "path",
|
|
attributes: {
|
|
fill: "currentColor",
|
|
d: vectorData
|
|
}
|
|
};
|
|
}
|
|
return {
|
|
found: true,
|
|
width,
|
|
height,
|
|
icon: element
|
|
};
|
|
}
|
|
var missingIconResolutionMixin = {
|
|
found: false,
|
|
width: 512,
|
|
height: 512
|
|
};
|
|
function maybeNotifyMissing(iconName, prefix) {
|
|
if (!PRODUCTION && !config.showMissingIcons && iconName) {
|
|
console.error('Icon with name "'.concat(iconName, '" and prefix "').concat(prefix, '" is missing.'));
|
|
}
|
|
}
|
|
function findIcon(iconName, prefix) {
|
|
var givenPrefix = prefix;
|
|
if (prefix === "fa" && config.styleDefault !== null) {
|
|
prefix = getDefaultUsablePrefix();
|
|
}
|
|
return new Promise(function(resolve, reject) {
|
|
if (givenPrefix === "fa") {
|
|
var shim = byOldName(iconName) || {};
|
|
iconName = shim.iconName || iconName;
|
|
prefix = shim.prefix || prefix;
|
|
}
|
|
if (iconName && prefix && styles$1[prefix] && styles$1[prefix][iconName]) {
|
|
var icon3 = styles$1[prefix][iconName];
|
|
return resolve(asFoundIcon(icon3));
|
|
}
|
|
maybeNotifyMissing(iconName, prefix);
|
|
resolve(_objectSpread2(_objectSpread2({}, missingIconResolutionMixin), {}, {
|
|
icon: config.showMissingIcons && iconName ? callProvided("missingIconAbstract") || {} : {}
|
|
}));
|
|
});
|
|
}
|
|
var noop$1 = function noop3() {
|
|
};
|
|
var p$2 = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {
|
|
mark: noop$1,
|
|
measure: noop$1
|
|
};
|
|
var preamble = 'FA "7.1.0"';
|
|
var begin = function begin2(name) {
|
|
p$2.mark("".concat(preamble, " ").concat(name, " begins"));
|
|
return function() {
|
|
return end(name);
|
|
};
|
|
};
|
|
var end = function end2(name) {
|
|
p$2.mark("".concat(preamble, " ").concat(name, " ends"));
|
|
p$2.measure("".concat(preamble, " ").concat(name), "".concat(preamble, " ").concat(name, " begins"), "".concat(preamble, " ").concat(name, " ends"));
|
|
};
|
|
var perf = {
|
|
begin,
|
|
end
|
|
};
|
|
var noop$2 = function noop4() {
|
|
};
|
|
function isWatched(node) {
|
|
var i2svg2 = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;
|
|
return typeof i2svg2 === "string";
|
|
}
|
|
function hasPrefixAndIcon(node) {
|
|
var prefix = node.getAttribute ? node.getAttribute(DATA_PREFIX) : null;
|
|
var icon3 = node.getAttribute ? node.getAttribute(DATA_ICON) : null;
|
|
return prefix && icon3;
|
|
}
|
|
function hasBeenReplaced(node) {
|
|
return node && node.classList && node.classList.contains && node.classList.contains(config.replacementClass);
|
|
}
|
|
function getMutator() {
|
|
if (config.autoReplaceSvg === true) {
|
|
return mutators.replace;
|
|
}
|
|
var mutator = mutators[config.autoReplaceSvg];
|
|
return mutator || mutators.replace;
|
|
}
|
|
function createElementNS(tag) {
|
|
return DOCUMENT.createElementNS("http://www.w3.org/2000/svg", tag);
|
|
}
|
|
function createElement(tag) {
|
|
return DOCUMENT.createElement(tag);
|
|
}
|
|
function convertSVG(abstractObj) {
|
|
var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
var _params$ceFn = params.ceFn, ceFn = _params$ceFn === void 0 ? abstractObj.tag === "svg" ? createElementNS : createElement : _params$ceFn;
|
|
if (typeof abstractObj === "string") {
|
|
return DOCUMENT.createTextNode(abstractObj);
|
|
}
|
|
var tag = ceFn(abstractObj.tag);
|
|
Object.keys(abstractObj.attributes || []).forEach(function(key) {
|
|
tag.setAttribute(key, abstractObj.attributes[key]);
|
|
});
|
|
var children = abstractObj.children || [];
|
|
children.forEach(function(child) {
|
|
tag.appendChild(convertSVG(child, {
|
|
ceFn
|
|
}));
|
|
});
|
|
return tag;
|
|
}
|
|
function nodeAsComment(node) {
|
|
var comment = " ".concat(node.outerHTML, " ");
|
|
comment = "".concat(comment, "Font Awesome fontawesome.com ");
|
|
return comment;
|
|
}
|
|
var mutators = {
|
|
replace: function replace(mutation) {
|
|
var node = mutation[0];
|
|
if (node.parentNode) {
|
|
mutation[1].forEach(function(abstract) {
|
|
node.parentNode.insertBefore(convertSVG(abstract), node);
|
|
});
|
|
if (node.getAttribute(DATA_FA_I2SVG) === null && config.keepOriginalSource) {
|
|
var comment = DOCUMENT.createComment(nodeAsComment(node));
|
|
node.parentNode.replaceChild(comment, node);
|
|
} else {
|
|
node.remove();
|
|
}
|
|
}
|
|
},
|
|
nest: function nest(mutation) {
|
|
var node = mutation[0];
|
|
var abstract = mutation[1];
|
|
if (~classArray(node).indexOf(config.replacementClass)) {
|
|
return mutators.replace(mutation);
|
|
}
|
|
var forSvg = new RegExp("".concat(config.cssPrefix, "-.*"));
|
|
delete abstract[0].attributes.id;
|
|
if (abstract[0].attributes.class) {
|
|
var splitClasses = abstract[0].attributes.class.split(" ").reduce(function(acc, cls) {
|
|
if (cls === config.replacementClass || cls.match(forSvg)) {
|
|
acc.toSvg.push(cls);
|
|
} else {
|
|
acc.toNode.push(cls);
|
|
}
|
|
return acc;
|
|
}, {
|
|
toNode: [],
|
|
toSvg: []
|
|
});
|
|
abstract[0].attributes.class = splitClasses.toSvg.join(" ");
|
|
if (splitClasses.toNode.length === 0) {
|
|
node.removeAttribute("class");
|
|
} else {
|
|
node.setAttribute("class", splitClasses.toNode.join(" "));
|
|
}
|
|
}
|
|
var newInnerHTML = abstract.map(function(a2) {
|
|
return toHtml(a2);
|
|
}).join("\n");
|
|
node.setAttribute(DATA_FA_I2SVG, "");
|
|
node.innerHTML = newInnerHTML;
|
|
}
|
|
};
|
|
function performOperationSync(op) {
|
|
op();
|
|
}
|
|
function perform(mutations, callback) {
|
|
var callbackFunction = typeof callback === "function" ? callback : noop$2;
|
|
if (mutations.length === 0) {
|
|
callbackFunction();
|
|
} else {
|
|
var frame = performOperationSync;
|
|
if (config.mutateApproach === MUTATION_APPROACH_ASYNC) {
|
|
frame = WINDOW.requestAnimationFrame || performOperationSync;
|
|
}
|
|
frame(function() {
|
|
var mutator = getMutator();
|
|
var mark = perf.begin("mutate");
|
|
mutations.map(mutator);
|
|
mark();
|
|
callbackFunction();
|
|
});
|
|
}
|
|
}
|
|
var disabled = false;
|
|
function disableObservation() {
|
|
disabled = true;
|
|
}
|
|
function enableObservation() {
|
|
disabled = false;
|
|
}
|
|
var mo = null;
|
|
function observe(options) {
|
|
if (!MUTATION_OBSERVER) {
|
|
return;
|
|
}
|
|
if (!config.observeMutations) {
|
|
return;
|
|
}
|
|
var _options$treeCallback = options.treeCallback, treeCallback = _options$treeCallback === void 0 ? noop$2 : _options$treeCallback, _options$nodeCallback = options.nodeCallback, nodeCallback = _options$nodeCallback === void 0 ? noop$2 : _options$nodeCallback, _options$pseudoElemen = options.pseudoElementsCallback, pseudoElementsCallback = _options$pseudoElemen === void 0 ? noop$2 : _options$pseudoElemen, _options$observeMutat = options.observeMutationsRoot, observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT : _options$observeMutat;
|
|
mo = new MUTATION_OBSERVER(function(objects) {
|
|
if (disabled) return;
|
|
var defaultPrefix = getDefaultUsablePrefix();
|
|
toArray(objects).forEach(function(mutationRecord) {
|
|
if (mutationRecord.type === "childList" && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {
|
|
if (config.searchPseudoElements) {
|
|
pseudoElementsCallback(mutationRecord.target);
|
|
}
|
|
treeCallback(mutationRecord.target);
|
|
}
|
|
if (mutationRecord.type === "attributes" && mutationRecord.target.parentNode && config.searchPseudoElements) {
|
|
pseudoElementsCallback([mutationRecord.target], true);
|
|
}
|
|
if (mutationRecord.type === "attributes" && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {
|
|
if (mutationRecord.attributeName === "class" && hasPrefixAndIcon(mutationRecord.target)) {
|
|
var _getCanonicalIcon = getCanonicalIcon(classArray(mutationRecord.target)), prefix = _getCanonicalIcon.prefix, iconName = _getCanonicalIcon.iconName;
|
|
mutationRecord.target.setAttribute(DATA_PREFIX, prefix || defaultPrefix);
|
|
if (iconName) mutationRecord.target.setAttribute(DATA_ICON, iconName);
|
|
} else if (hasBeenReplaced(mutationRecord.target)) {
|
|
nodeCallback(mutationRecord.target);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
if (!IS_DOM) return;
|
|
mo.observe(observeMutationsRoot, {
|
|
childList: true,
|
|
attributes: true,
|
|
characterData: true,
|
|
subtree: true
|
|
});
|
|
}
|
|
function disconnect() {
|
|
if (!mo) return;
|
|
mo.disconnect();
|
|
}
|
|
function styleParser(node) {
|
|
var style = node.getAttribute("style");
|
|
var val = [];
|
|
if (style) {
|
|
val = style.split(";").reduce(function(acc, style2) {
|
|
var styles2 = style2.split(":");
|
|
var prop = styles2[0];
|
|
var value = styles2.slice(1);
|
|
if (prop && value.length > 0) {
|
|
acc[prop] = value.join(":").trim();
|
|
}
|
|
return acc;
|
|
}, {});
|
|
}
|
|
return val;
|
|
}
|
|
function classParser(node) {
|
|
var existingPrefix = node.getAttribute("data-prefix");
|
|
var existingIconName = node.getAttribute("data-icon");
|
|
var innerText = node.innerText !== void 0 ? node.innerText.trim() : "";
|
|
var val = getCanonicalIcon(classArray(node));
|
|
if (!val.prefix) {
|
|
val.prefix = getDefaultUsablePrefix();
|
|
}
|
|
if (existingPrefix && existingIconName) {
|
|
val.prefix = existingPrefix;
|
|
val.iconName = existingIconName;
|
|
}
|
|
if (val.iconName && val.prefix) {
|
|
return val;
|
|
}
|
|
if (val.prefix && innerText.length > 0) {
|
|
val.iconName = byLigature(val.prefix, node.innerText) || byUnicode(val.prefix, toHex(node.innerText));
|
|
}
|
|
if (!val.iconName && config.autoFetchSvg && node.firstChild && node.firstChild.nodeType === Node.TEXT_NODE) {
|
|
val.iconName = node.firstChild.data;
|
|
}
|
|
return val;
|
|
}
|
|
function attributesParser(node) {
|
|
var extraAttributes = toArray(node.attributes).reduce(function(acc, attr) {
|
|
if (acc.name !== "class" && acc.name !== "style") {
|
|
acc[attr.name] = attr.value;
|
|
}
|
|
return acc;
|
|
}, {});
|
|
return extraAttributes;
|
|
}
|
|
function blankMeta() {
|
|
return {
|
|
iconName: null,
|
|
prefix: null,
|
|
transform: meaninglessTransform,
|
|
symbol: false,
|
|
mask: {
|
|
iconName: null,
|
|
prefix: null,
|
|
rest: []
|
|
},
|
|
maskId: null,
|
|
extra: {
|
|
classes: [],
|
|
styles: {},
|
|
attributes: {}
|
|
}
|
|
};
|
|
}
|
|
function parseMeta(node) {
|
|
var parser = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
styleParser: true
|
|
};
|
|
var _classParser = classParser(node), iconName = _classParser.iconName, prefix = _classParser.prefix, extraClasses = _classParser.rest;
|
|
var extraAttributes = attributesParser(node);
|
|
var pluginMeta = chainHooks("parseNodeAttributes", {}, node);
|
|
var extraStyles = parser.styleParser ? styleParser(node) : [];
|
|
return _objectSpread2({
|
|
iconName,
|
|
prefix,
|
|
transform: meaninglessTransform,
|
|
mask: {
|
|
iconName: null,
|
|
prefix: null,
|
|
rest: []
|
|
},
|
|
maskId: null,
|
|
symbol: false,
|
|
extra: {
|
|
classes: extraClasses,
|
|
styles: extraStyles,
|
|
attributes: extraAttributes
|
|
}
|
|
}, pluginMeta);
|
|
}
|
|
var styles$2 = namespace.styles;
|
|
function generateMutation(node) {
|
|
var nodeMeta = config.autoReplaceSvg === "nest" ? parseMeta(node, {
|
|
styleParser: false
|
|
}) : parseMeta(node);
|
|
if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) {
|
|
return callProvided("generateLayersText", node, nodeMeta);
|
|
} else {
|
|
return callProvided("generateSvgReplacementMutation", node, nodeMeta);
|
|
}
|
|
}
|
|
function getKnownPrefixes() {
|
|
return [].concat(_toConsumableArray(Yt), _toConsumableArray(Zt$1));
|
|
}
|
|
function onTree(root) {
|
|
var callback = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
if (!IS_DOM) return Promise.resolve();
|
|
var htmlClassList = DOCUMENT.documentElement.classList;
|
|
var hclAdd = function hclAdd2(suffix) {
|
|
return htmlClassList.add("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
|
|
};
|
|
var hclRemove = function hclRemove2(suffix) {
|
|
return htmlClassList.remove("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
|
|
};
|
|
var prefixes = config.autoFetchSvg ? getKnownPrefixes() : Q.concat(Object.keys(styles$2));
|
|
if (!prefixes.includes("fa")) {
|
|
prefixes.push("fa");
|
|
}
|
|
var prefixesDomQuery = [".".concat(LAYERS_TEXT_CLASSNAME, ":not([").concat(DATA_FA_I2SVG, "])")].concat(prefixes.map(function(p$$1) {
|
|
return ".".concat(p$$1, ":not([").concat(DATA_FA_I2SVG, "])");
|
|
})).join(", ");
|
|
if (prefixesDomQuery.length === 0) {
|
|
return Promise.resolve();
|
|
}
|
|
var candidates = [];
|
|
try {
|
|
candidates = toArray(root.querySelectorAll(prefixesDomQuery));
|
|
} catch (e$$1) {
|
|
}
|
|
if (candidates.length > 0) {
|
|
hclAdd("pending");
|
|
hclRemove("complete");
|
|
} else {
|
|
return Promise.resolve();
|
|
}
|
|
var mark = perf.begin("onTree");
|
|
var mutations = candidates.reduce(function(acc, node) {
|
|
try {
|
|
var mutation = generateMutation(node);
|
|
if (mutation) {
|
|
acc.push(mutation);
|
|
}
|
|
} catch (e$$1) {
|
|
if (!PRODUCTION) {
|
|
if (e$$1.name === "MissingIcon") {
|
|
console.error(e$$1);
|
|
}
|
|
}
|
|
}
|
|
return acc;
|
|
}, []);
|
|
return new Promise(function(resolve, reject) {
|
|
Promise.all(mutations).then(function(resolvedMutations) {
|
|
perform(resolvedMutations, function() {
|
|
hclAdd("active");
|
|
hclAdd("complete");
|
|
hclRemove("pending");
|
|
if (typeof callback === "function") callback();
|
|
mark();
|
|
resolve();
|
|
});
|
|
}).catch(function(e$$1) {
|
|
mark();
|
|
reject(e$$1);
|
|
});
|
|
});
|
|
}
|
|
function onNode(node) {
|
|
var callback = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
generateMutation(node).then(function(mutation) {
|
|
if (mutation) {
|
|
perform([mutation], callback);
|
|
}
|
|
});
|
|
}
|
|
function resolveIcons(next) {
|
|
return function(maybeIconDefinition) {
|
|
var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
var iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});
|
|
var mask = params.mask;
|
|
if (mask) {
|
|
mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});
|
|
}
|
|
return next(iconDefinition, _objectSpread2(_objectSpread2({}, params), {}, {
|
|
mask
|
|
}));
|
|
};
|
|
}
|
|
var render = function render2(iconDefinition) {
|
|
var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
var _params$transform = params.transform, transform = _params$transform === void 0 ? meaninglessTransform : _params$transform, _params$symbol = params.symbol, symbol = _params$symbol === void 0 ? false : _params$symbol, _params$mask = params.mask, mask = _params$mask === void 0 ? null : _params$mask, _params$maskId = params.maskId, maskId = _params$maskId === void 0 ? null : _params$maskId, _params$classes = params.classes, classes = _params$classes === void 0 ? [] : _params$classes, _params$attributes = params.attributes, attributes = _params$attributes === void 0 ? {} : _params$attributes, _params$styles = params.styles, styles2 = _params$styles === void 0 ? {} : _params$styles;
|
|
if (!iconDefinition) return;
|
|
var prefix = iconDefinition.prefix, iconName = iconDefinition.iconName, icon3 = iconDefinition.icon;
|
|
return domVariants(_objectSpread2({
|
|
type: "icon"
|
|
}, iconDefinition), function() {
|
|
callHooks("beforeDOMElementCreation", {
|
|
iconDefinition,
|
|
params
|
|
});
|
|
return makeInlineSvgAbstract({
|
|
icons: {
|
|
main: asFoundIcon(icon3),
|
|
mask: mask ? asFoundIcon(mask.icon) : {
|
|
found: false,
|
|
width: null,
|
|
height: null,
|
|
icon: {}
|
|
}
|
|
},
|
|
prefix,
|
|
iconName,
|
|
transform: _objectSpread2(_objectSpread2({}, meaninglessTransform), transform),
|
|
symbol,
|
|
maskId,
|
|
extra: {
|
|
attributes,
|
|
styles: styles2,
|
|
classes
|
|
}
|
|
});
|
|
});
|
|
};
|
|
var ReplaceElements = {
|
|
mixout: function mixout2() {
|
|
return {
|
|
icon: resolveIcons(render)
|
|
};
|
|
},
|
|
hooks: function hooks2() {
|
|
return {
|
|
mutationObserverCallbacks: function mutationObserverCallbacks(accumulator) {
|
|
accumulator.treeCallback = onTree;
|
|
accumulator.nodeCallback = onNode;
|
|
return accumulator;
|
|
}
|
|
};
|
|
},
|
|
provides: function provides(providers$$1) {
|
|
providers$$1.i2svg = function(params) {
|
|
var _params$node = params.node, node = _params$node === void 0 ? DOCUMENT : _params$node, _params$callback = params.callback, callback = _params$callback === void 0 ? function() {
|
|
} : _params$callback;
|
|
return onTree(node, callback);
|
|
};
|
|
providers$$1.generateSvgReplacementMutation = function(node, nodeMeta) {
|
|
var iconName = nodeMeta.iconName, prefix = nodeMeta.prefix, transform = nodeMeta.transform, symbol = nodeMeta.symbol, mask = nodeMeta.mask, maskId = nodeMeta.maskId, extra = nodeMeta.extra;
|
|
return new Promise(function(resolve, reject) {
|
|
Promise.all([findIcon(iconName, prefix), mask.iconName ? findIcon(mask.iconName, mask.prefix) : Promise.resolve({
|
|
found: false,
|
|
width: 512,
|
|
height: 512,
|
|
icon: {}
|
|
})]).then(function(_ref2) {
|
|
var _ref22 = _slicedToArray(_ref2, 2), main = _ref22[0], mask2 = _ref22[1];
|
|
resolve([node, makeInlineSvgAbstract({
|
|
icons: {
|
|
main,
|
|
mask: mask2
|
|
},
|
|
prefix,
|
|
iconName,
|
|
transform,
|
|
symbol,
|
|
maskId,
|
|
extra,
|
|
watchable: true
|
|
})]);
|
|
}).catch(reject);
|
|
});
|
|
};
|
|
providers$$1.generateAbstractIcon = function(_ref3) {
|
|
var children = _ref3.children, attributes = _ref3.attributes, main = _ref3.main, transform = _ref3.transform, styles2 = _ref3.styles;
|
|
var styleString = joinStyles(styles2);
|
|
if (styleString.length > 0) {
|
|
attributes["style"] = styleString;
|
|
}
|
|
var nextChild;
|
|
if (transformIsMeaningful(transform)) {
|
|
nextChild = callProvided("generateAbstractTransformGrouping", {
|
|
main,
|
|
transform,
|
|
containerWidth: main.width,
|
|
iconWidth: main.width
|
|
});
|
|
}
|
|
children.push(nextChild || main.icon);
|
|
return {
|
|
children,
|
|
attributes
|
|
};
|
|
};
|
|
}
|
|
};
|
|
var Layers = {
|
|
mixout: function mixout3() {
|
|
return {
|
|
layer: function layer2(assembler) {
|
|
var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
var _params$classes = params.classes, classes = _params$classes === void 0 ? [] : _params$classes;
|
|
return domVariants({
|
|
type: "layer"
|
|
}, function() {
|
|
callHooks("beforeDOMElementCreation", {
|
|
assembler,
|
|
params
|
|
});
|
|
var children = [];
|
|
assembler(function(args) {
|
|
Array.isArray(args) ? args.map(function(a2) {
|
|
children = children.concat(a2.abstract);
|
|
}) : children = children.concat(args.abstract);
|
|
});
|
|
return [{
|
|
tag: "span",
|
|
attributes: {
|
|
class: ["".concat(config.cssPrefix, "-layers")].concat(_toConsumableArray(classes)).join(" ")
|
|
},
|
|
children
|
|
}];
|
|
});
|
|
}
|
|
};
|
|
}
|
|
};
|
|
var LayersCounter = {
|
|
mixout: function mixout4() {
|
|
return {
|
|
counter: function counter2(content) {
|
|
var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
var _params$title = params.title, title = _params$title === void 0 ? null : _params$title, _params$classes = params.classes, classes = _params$classes === void 0 ? [] : _params$classes, _params$attributes = params.attributes, attributes = _params$attributes === void 0 ? {} : _params$attributes, _params$styles = params.styles, styles2 = _params$styles === void 0 ? {} : _params$styles;
|
|
return domVariants({
|
|
type: "counter",
|
|
content
|
|
}, function() {
|
|
callHooks("beforeDOMElementCreation", {
|
|
content,
|
|
params
|
|
});
|
|
return makeLayersCounterAbstract({
|
|
content: content.toString(),
|
|
title,
|
|
extra: {
|
|
attributes,
|
|
styles: styles2,
|
|
classes: ["".concat(config.cssPrefix, "-layers-counter")].concat(_toConsumableArray(classes))
|
|
}
|
|
});
|
|
});
|
|
}
|
|
};
|
|
}
|
|
};
|
|
var LayersText = {
|
|
mixout: function mixout5() {
|
|
return {
|
|
text: function text2(content) {
|
|
var params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
var _params$transform = params.transform, transform = _params$transform === void 0 ? meaninglessTransform : _params$transform, _params$classes = params.classes, classes = _params$classes === void 0 ? [] : _params$classes, _params$attributes = params.attributes, attributes = _params$attributes === void 0 ? {} : _params$attributes, _params$styles = params.styles, styles2 = _params$styles === void 0 ? {} : _params$styles;
|
|
return domVariants({
|
|
type: "text",
|
|
content
|
|
}, function() {
|
|
callHooks("beforeDOMElementCreation", {
|
|
content,
|
|
params
|
|
});
|
|
return makeLayersTextAbstract({
|
|
content,
|
|
transform: _objectSpread2(_objectSpread2({}, meaninglessTransform), transform),
|
|
extra: {
|
|
attributes,
|
|
styles: styles2,
|
|
classes: ["".concat(config.cssPrefix, "-layers-text")].concat(_toConsumableArray(classes))
|
|
}
|
|
});
|
|
});
|
|
}
|
|
};
|
|
},
|
|
provides: function provides2(providers$$1) {
|
|
providers$$1.generateLayersText = function(node, nodeMeta) {
|
|
var transform = nodeMeta.transform, extra = nodeMeta.extra;
|
|
var width = null;
|
|
var height = null;
|
|
if (IS_IE) {
|
|
var computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);
|
|
var boundingClientRect = node.getBoundingClientRect();
|
|
width = boundingClientRect.width / computedFontSize;
|
|
height = boundingClientRect.height / computedFontSize;
|
|
}
|
|
return Promise.resolve([node, makeLayersTextAbstract({
|
|
content: node.innerHTML,
|
|
width,
|
|
height,
|
|
transform,
|
|
extra,
|
|
watchable: true
|
|
})]);
|
|
};
|
|
}
|
|
};
|
|
var CLEAN_CONTENT_PATTERN = new RegExp('"', "ug");
|
|
var SECONDARY_UNICODE_RANGE = [1105920, 1112319];
|
|
var _FONT_FAMILY_WEIGHT_TO_PREFIX = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, {
|
|
FontAwesome: {
|
|
normal: "fas",
|
|
400: "fas"
|
|
}
|
|
}), Ct), ro), dl);
|
|
var FONT_FAMILY_WEIGHT_TO_PREFIX = Object.keys(_FONT_FAMILY_WEIGHT_TO_PREFIX).reduce(function(acc, key) {
|
|
acc[key.toLowerCase()] = _FONT_FAMILY_WEIGHT_TO_PREFIX[key];
|
|
return acc;
|
|
}, {});
|
|
var FONT_FAMILY_WEIGHT_FALLBACK = Object.keys(FONT_FAMILY_WEIGHT_TO_PREFIX).reduce(function(acc, fontFamily) {
|
|
var weights = FONT_FAMILY_WEIGHT_TO_PREFIX[fontFamily];
|
|
acc[fontFamily] = weights[900] || _toConsumableArray(Object.entries(weights))[0][1];
|
|
return acc;
|
|
}, {});
|
|
function hexValueFromContent(content) {
|
|
var cleaned = content.replace(CLEAN_CONTENT_PATTERN, "");
|
|
return toHex(_toConsumableArray(cleaned)[0] || "");
|
|
}
|
|
function isSecondaryLayer(styles2) {
|
|
var hasStylisticSet = styles2.getPropertyValue("font-feature-settings").includes("ss01");
|
|
var content = styles2.getPropertyValue("content");
|
|
var cleaned = content.replace(CLEAN_CONTENT_PATTERN, "");
|
|
var codePoint = cleaned.codePointAt(0);
|
|
var isPrependTen = codePoint >= SECONDARY_UNICODE_RANGE[0] && codePoint <= SECONDARY_UNICODE_RANGE[1];
|
|
var isDoubled = cleaned.length === 2 ? cleaned[0] === cleaned[1] : false;
|
|
return isPrependTen || isDoubled || hasStylisticSet;
|
|
}
|
|
function getPrefix(fontFamily, fontWeight) {
|
|
var fontFamilySanitized = fontFamily.replace(/^['"]|['"]$/g, "").toLowerCase();
|
|
var fontWeightInteger = parseInt(fontWeight);
|
|
var fontWeightSanitized = isNaN(fontWeightInteger) ? "normal" : fontWeightInteger;
|
|
return (FONT_FAMILY_WEIGHT_TO_PREFIX[fontFamilySanitized] || {})[fontWeightSanitized] || FONT_FAMILY_WEIGHT_FALLBACK[fontFamilySanitized];
|
|
}
|
|
function replaceForPosition(node, position) {
|
|
var pendingAttribute = "".concat(DATA_FA_PSEUDO_ELEMENT_PENDING).concat(position.replace(":", "-"));
|
|
return new Promise(function(resolve, reject) {
|
|
if (node.getAttribute(pendingAttribute) !== null) {
|
|
return resolve();
|
|
}
|
|
var children = toArray(node.children);
|
|
var alreadyProcessedPseudoElement = children.filter(function(c$$1) {
|
|
return c$$1.getAttribute(DATA_FA_PSEUDO_ELEMENT) === position;
|
|
})[0];
|
|
var styles2 = WINDOW.getComputedStyle(node, position);
|
|
var fontFamily = styles2.getPropertyValue("font-family");
|
|
var fontFamilyMatch = fontFamily.match(FONT_FAMILY_PATTERN);
|
|
var fontWeight = styles2.getPropertyValue("font-weight");
|
|
var content = styles2.getPropertyValue("content");
|
|
if (alreadyProcessedPseudoElement && !fontFamilyMatch) {
|
|
node.removeChild(alreadyProcessedPseudoElement);
|
|
return resolve();
|
|
} else if (fontFamilyMatch && content !== "none" && content !== "") {
|
|
var _content = styles2.getPropertyValue("content");
|
|
var prefix = getPrefix(fontFamily, fontWeight);
|
|
var hexValue = hexValueFromContent(_content);
|
|
var isV4 = fontFamilyMatch[0].startsWith("FontAwesome");
|
|
var isSecondary = isSecondaryLayer(styles2);
|
|
var iconName = byUnicode(prefix, hexValue);
|
|
var iconIdentifier = iconName;
|
|
if (isV4) {
|
|
var iconName4 = byOldUnicode(hexValue);
|
|
if (iconName4.iconName && iconName4.prefix) {
|
|
iconName = iconName4.iconName;
|
|
prefix = iconName4.prefix;
|
|
}
|
|
}
|
|
if (iconName && !isSecondary && (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || alreadyProcessedPseudoElement.getAttribute(DATA_ICON) !== iconIdentifier)) {
|
|
node.setAttribute(pendingAttribute, iconIdentifier);
|
|
if (alreadyProcessedPseudoElement) {
|
|
node.removeChild(alreadyProcessedPseudoElement);
|
|
}
|
|
var meta = blankMeta();
|
|
var extra = meta.extra;
|
|
extra.attributes[DATA_FA_PSEUDO_ELEMENT] = position;
|
|
findIcon(iconName, prefix).then(function(main) {
|
|
var abstract = makeInlineSvgAbstract(_objectSpread2(_objectSpread2({}, meta), {}, {
|
|
icons: {
|
|
main,
|
|
mask: emptyCanonicalIcon()
|
|
},
|
|
prefix,
|
|
iconName: iconIdentifier,
|
|
extra,
|
|
watchable: true
|
|
}));
|
|
var element = DOCUMENT.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
if (position === "::before") {
|
|
node.insertBefore(element, node.firstChild);
|
|
} else {
|
|
node.appendChild(element);
|
|
}
|
|
element.outerHTML = abstract.map(function(a$$1) {
|
|
return toHtml(a$$1);
|
|
}).join("\n");
|
|
node.removeAttribute(pendingAttribute);
|
|
resolve();
|
|
}).catch(reject);
|
|
} else {
|
|
resolve();
|
|
}
|
|
} else {
|
|
resolve();
|
|
}
|
|
});
|
|
}
|
|
function replace2(node) {
|
|
return Promise.all([replaceForPosition(node, "::before"), replaceForPosition(node, "::after")]);
|
|
}
|
|
function processable(node) {
|
|
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");
|
|
}
|
|
var hasPseudoElement = function hasPseudoElement2(selector) {
|
|
return !!selector && PSEUDO_ELEMENTS.some(function(pseudoSelector) {
|
|
return selector.includes(pseudoSelector);
|
|
});
|
|
};
|
|
var parseCSSRuleForPseudos = function parseCSSRuleForPseudos2(selectorText) {
|
|
if (!selectorText) return [];
|
|
var selectorSet = /* @__PURE__ */ new Set();
|
|
var selectors = selectorText.split(/,(?![^()]*\))/).map(function(s$$1) {
|
|
return s$$1.trim();
|
|
});
|
|
selectors = selectors.flatMap(function(selector2) {
|
|
return selector2.includes("(") ? selector2 : selector2.split(",").map(function(s$$1) {
|
|
return s$$1.trim();
|
|
});
|
|
});
|
|
var _iterator = _createForOfIteratorHelper(selectors), _step;
|
|
try {
|
|
for (_iterator.s(); !(_step = _iterator.n()).done; ) {
|
|
var selector = _step.value;
|
|
if (hasPseudoElement(selector)) {
|
|
var selectorWithoutPseudo = PSEUDO_ELEMENTS.reduce(function(acc, pseudoSelector) {
|
|
return acc.replace(pseudoSelector, "");
|
|
}, selector);
|
|
if (selectorWithoutPseudo !== "" && selectorWithoutPseudo !== "*") {
|
|
selectorSet.add(selectorWithoutPseudo);
|
|
}
|
|
}
|
|
}
|
|
} catch (err) {
|
|
_iterator.e(err);
|
|
} finally {
|
|
_iterator.f();
|
|
}
|
|
return selectorSet;
|
|
};
|
|
function searchPseudoElements(root) {
|
|
var useAsNodeList = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
if (!IS_DOM) return;
|
|
var nodeList;
|
|
if (useAsNodeList) {
|
|
nodeList = root;
|
|
} else if (config.searchPseudoElementsFullScan) {
|
|
nodeList = root.querySelectorAll("*");
|
|
} else {
|
|
var selectorSet = /* @__PURE__ */ new Set();
|
|
var _iterator2 = _createForOfIteratorHelper(document.styleSheets), _step2;
|
|
try {
|
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done; ) {
|
|
var stylesheet = _step2.value;
|
|
try {
|
|
var _iterator3 = _createForOfIteratorHelper(stylesheet.cssRules), _step3;
|
|
try {
|
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done; ) {
|
|
var rule = _step3.value;
|
|
var parsedSelectors = parseCSSRuleForPseudos(rule.selectorText);
|
|
var _iterator4 = _createForOfIteratorHelper(parsedSelectors), _step4;
|
|
try {
|
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done; ) {
|
|
var selector = _step4.value;
|
|
selectorSet.add(selector);
|
|
}
|
|
} catch (err) {
|
|
_iterator4.e(err);
|
|
} finally {
|
|
_iterator4.f();
|
|
}
|
|
}
|
|
} catch (err) {
|
|
_iterator3.e(err);
|
|
} finally {
|
|
_iterator3.f();
|
|
}
|
|
} catch (e$$1) {
|
|
if (config.searchPseudoElementsWarnings) {
|
|
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.'));
|
|
}
|
|
}
|
|
}
|
|
} catch (err) {
|
|
_iterator2.e(err);
|
|
} finally {
|
|
_iterator2.f();
|
|
}
|
|
if (!selectorSet.size) return;
|
|
var cleanSelectors = Array.from(selectorSet).join(", ");
|
|
try {
|
|
nodeList = root.querySelectorAll(cleanSelectors);
|
|
} catch (_unused) {
|
|
}
|
|
}
|
|
return new Promise(function(resolve, reject) {
|
|
var operations = toArray(nodeList).filter(processable).map(replace2);
|
|
var end3 = perf.begin("searchPseudoElements");
|
|
disableObservation();
|
|
Promise.all(operations).then(function() {
|
|
end3();
|
|
enableObservation();
|
|
resolve();
|
|
}).catch(function() {
|
|
end3();
|
|
enableObservation();
|
|
reject();
|
|
});
|
|
});
|
|
}
|
|
var PseudoElements = {
|
|
hooks: function hooks3() {
|
|
return {
|
|
mutationObserverCallbacks: function mutationObserverCallbacks(accumulator) {
|
|
accumulator.pseudoElementsCallback = searchPseudoElements;
|
|
return accumulator;
|
|
}
|
|
};
|
|
},
|
|
provides: function provides3(providers2) {
|
|
providers2.pseudoElements2svg = function(params) {
|
|
var _params$node = params.node, node = _params$node === void 0 ? DOCUMENT : _params$node;
|
|
if (config.searchPseudoElements) {
|
|
searchPseudoElements(node);
|
|
}
|
|
};
|
|
}
|
|
};
|
|
var _unwatched = false;
|
|
var MutationObserver$1 = {
|
|
mixout: function mixout6() {
|
|
return {
|
|
dom: {
|
|
unwatch: function unwatch() {
|
|
disableObservation();
|
|
_unwatched = true;
|
|
}
|
|
}
|
|
};
|
|
},
|
|
hooks: function hooks4() {
|
|
return {
|
|
bootstrap: function bootstrap() {
|
|
observe(chainHooks("mutationObserverCallbacks", {}));
|
|
},
|
|
noAuto: function noAuto3() {
|
|
disconnect();
|
|
},
|
|
watch: function watch2(params) {
|
|
var observeMutationsRoot = params.observeMutationsRoot;
|
|
if (_unwatched) {
|
|
enableObservation();
|
|
} else {
|
|
observe(chainHooks("mutationObserverCallbacks", {
|
|
observeMutationsRoot
|
|
}));
|
|
}
|
|
}
|
|
};
|
|
}
|
|
};
|
|
var parseTransformString = function parseTransformString2(transformString) {
|
|
var transform = {
|
|
size: 16,
|
|
x: 0,
|
|
y: 0,
|
|
flipX: false,
|
|
flipY: false,
|
|
rotate: 0
|
|
};
|
|
return transformString.toLowerCase().split(" ").reduce(function(acc, n2) {
|
|
var parts = n2.toLowerCase().split("-");
|
|
var first = parts[0];
|
|
var rest = parts.slice(1).join("-");
|
|
if (first && rest === "h") {
|
|
acc.flipX = true;
|
|
return acc;
|
|
}
|
|
if (first && rest === "v") {
|
|
acc.flipY = true;
|
|
return acc;
|
|
}
|
|
rest = parseFloat(rest);
|
|
if (isNaN(rest)) {
|
|
return acc;
|
|
}
|
|
switch (first) {
|
|
case "grow":
|
|
acc.size = acc.size + rest;
|
|
break;
|
|
case "shrink":
|
|
acc.size = acc.size - rest;
|
|
break;
|
|
case "left":
|
|
acc.x = acc.x - rest;
|
|
break;
|
|
case "right":
|
|
acc.x = acc.x + rest;
|
|
break;
|
|
case "up":
|
|
acc.y = acc.y - rest;
|
|
break;
|
|
case "down":
|
|
acc.y = acc.y + rest;
|
|
break;
|
|
case "rotate":
|
|
acc.rotate = acc.rotate + rest;
|
|
break;
|
|
}
|
|
return acc;
|
|
}, transform);
|
|
};
|
|
var PowerTransforms = {
|
|
mixout: function mixout7() {
|
|
return {
|
|
parse: {
|
|
transform: function transform(transformString) {
|
|
return parseTransformString(transformString);
|
|
}
|
|
}
|
|
};
|
|
},
|
|
hooks: function hooks5() {
|
|
return {
|
|
parseNodeAttributes: function parseNodeAttributes(accumulator, node) {
|
|
var transformString = node.getAttribute("data-fa-transform");
|
|
if (transformString) {
|
|
accumulator.transform = parseTransformString(transformString);
|
|
}
|
|
return accumulator;
|
|
}
|
|
};
|
|
},
|
|
provides: function provides4(providers2) {
|
|
providers2.generateAbstractTransformGrouping = function(_ref2) {
|
|
var main = _ref2.main, transform = _ref2.transform, containerWidth = _ref2.containerWidth, iconWidth = _ref2.iconWidth;
|
|
var outer = {
|
|
transform: "translate(".concat(containerWidth / 2, " 256)")
|
|
};
|
|
var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
|
|
var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
|
|
var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
|
|
var inner = {
|
|
transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
|
|
};
|
|
var path = {
|
|
transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
|
|
};
|
|
var operations = {
|
|
outer,
|
|
inner,
|
|
path
|
|
};
|
|
return {
|
|
tag: "g",
|
|
attributes: _objectSpread2({}, operations.outer),
|
|
children: [{
|
|
tag: "g",
|
|
attributes: _objectSpread2({}, operations.inner),
|
|
children: [{
|
|
tag: main.icon.tag,
|
|
children: main.icon.children,
|
|
attributes: _objectSpread2(_objectSpread2({}, main.icon.attributes), operations.path)
|
|
}]
|
|
}]
|
|
};
|
|
};
|
|
}
|
|
};
|
|
var ALL_SPACE = {
|
|
x: 0,
|
|
y: 0,
|
|
width: "100%",
|
|
height: "100%"
|
|
};
|
|
function fillBlack(abstract) {
|
|
var force = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
|
if (abstract.attributes && (abstract.attributes.fill || force)) {
|
|
abstract.attributes.fill = "black";
|
|
}
|
|
return abstract;
|
|
}
|
|
function deGroup(abstract) {
|
|
if (abstract.tag === "g") {
|
|
return abstract.children;
|
|
} else {
|
|
return [abstract];
|
|
}
|
|
}
|
|
var Masks = {
|
|
hooks: function hooks6() {
|
|
return {
|
|
parseNodeAttributes: function parseNodeAttributes(accumulator, node) {
|
|
var maskData = node.getAttribute("data-fa-mask");
|
|
var mask = !maskData ? emptyCanonicalIcon() : getCanonicalIcon(maskData.split(" ").map(function(i2) {
|
|
return i2.trim();
|
|
}));
|
|
if (!mask.prefix) {
|
|
mask.prefix = getDefaultUsablePrefix();
|
|
}
|
|
accumulator.mask = mask;
|
|
accumulator.maskId = node.getAttribute("data-fa-mask-id");
|
|
return accumulator;
|
|
}
|
|
};
|
|
},
|
|
provides: function provides5(providers2) {
|
|
providers2.generateAbstractMask = function(_ref2) {
|
|
var children = _ref2.children, attributes = _ref2.attributes, main = _ref2.main, mask = _ref2.mask, explicitMaskId = _ref2.maskId, transform = _ref2.transform;
|
|
var mainWidth = main.width, mainPath = main.icon;
|
|
var maskWidth = mask.width, maskPath = mask.icon;
|
|
var trans = transformForSvg({
|
|
transform,
|
|
containerWidth: maskWidth,
|
|
iconWidth: mainWidth
|
|
});
|
|
var maskRect = {
|
|
tag: "rect",
|
|
attributes: _objectSpread2(_objectSpread2({}, ALL_SPACE), {}, {
|
|
fill: "white"
|
|
})
|
|
};
|
|
var maskInnerGroupChildrenMixin = mainPath.children ? {
|
|
children: mainPath.children.map(fillBlack)
|
|
} : {};
|
|
var maskInnerGroup = {
|
|
tag: "g",
|
|
attributes: _objectSpread2({}, trans.inner),
|
|
children: [fillBlack(_objectSpread2({
|
|
tag: mainPath.tag,
|
|
attributes: _objectSpread2(_objectSpread2({}, mainPath.attributes), trans.path)
|
|
}, maskInnerGroupChildrenMixin))]
|
|
};
|
|
var maskOuterGroup = {
|
|
tag: "g",
|
|
attributes: _objectSpread2({}, trans.outer),
|
|
children: [maskInnerGroup]
|
|
};
|
|
var maskId = "mask-".concat(explicitMaskId || nextUniqueId());
|
|
var clipId = "clip-".concat(explicitMaskId || nextUniqueId());
|
|
var maskTag = {
|
|
tag: "mask",
|
|
attributes: _objectSpread2(_objectSpread2({}, ALL_SPACE), {}, {
|
|
id: maskId,
|
|
maskUnits: "userSpaceOnUse",
|
|
maskContentUnits: "userSpaceOnUse"
|
|
}),
|
|
children: [maskRect, maskOuterGroup]
|
|
};
|
|
var defs = {
|
|
tag: "defs",
|
|
children: [{
|
|
tag: "clipPath",
|
|
attributes: {
|
|
id: clipId
|
|
},
|
|
children: deGroup(maskPath)
|
|
}, maskTag]
|
|
};
|
|
children.push(defs, {
|
|
tag: "rect",
|
|
attributes: _objectSpread2({
|
|
"fill": "currentColor",
|
|
"clip-path": "url(#".concat(clipId, ")"),
|
|
"mask": "url(#".concat(maskId, ")")
|
|
}, ALL_SPACE)
|
|
});
|
|
return {
|
|
children,
|
|
attributes
|
|
};
|
|
};
|
|
}
|
|
};
|
|
var MissingIconIndicator = {
|
|
provides: function provides6(providers2) {
|
|
var reduceMotion = false;
|
|
if (WINDOW.matchMedia) {
|
|
reduceMotion = WINDOW.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
}
|
|
providers2.missingIconAbstract = function() {
|
|
var gChildren = [];
|
|
var FILL = {
|
|
fill: "currentColor"
|
|
};
|
|
var ANIMATION_BASE = {
|
|
attributeType: "XML",
|
|
repeatCount: "indefinite",
|
|
dur: "2s"
|
|
};
|
|
gChildren.push({
|
|
tag: "path",
|
|
attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
|
|
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"
|
|
})
|
|
});
|
|
var OPACITY_ANIMATE = _objectSpread2(_objectSpread2({}, ANIMATION_BASE), {}, {
|
|
attributeName: "opacity"
|
|
});
|
|
var dot = {
|
|
tag: "circle",
|
|
attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
|
|
cx: "256",
|
|
cy: "364",
|
|
r: "28"
|
|
}),
|
|
children: []
|
|
};
|
|
if (!reduceMotion) {
|
|
dot.children.push({
|
|
tag: "animate",
|
|
attributes: _objectSpread2(_objectSpread2({}, ANIMATION_BASE), {}, {
|
|
attributeName: "r",
|
|
values: "28;14;28;28;14;28;"
|
|
})
|
|
}, {
|
|
tag: "animate",
|
|
attributes: _objectSpread2(_objectSpread2({}, OPACITY_ANIMATE), {}, {
|
|
values: "1;0;1;1;0;1;"
|
|
})
|
|
});
|
|
}
|
|
gChildren.push(dot);
|
|
gChildren.push({
|
|
tag: "path",
|
|
attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
|
|
opacity: "1",
|
|
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"
|
|
}),
|
|
children: reduceMotion ? [] : [{
|
|
tag: "animate",
|
|
attributes: _objectSpread2(_objectSpread2({}, OPACITY_ANIMATE), {}, {
|
|
values: "1;0;0;0;0;1;"
|
|
})
|
|
}]
|
|
});
|
|
if (!reduceMotion) {
|
|
gChildren.push({
|
|
tag: "path",
|
|
attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
|
|
opacity: "0",
|
|
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"
|
|
}),
|
|
children: [{
|
|
tag: "animate",
|
|
attributes: _objectSpread2(_objectSpread2({}, OPACITY_ANIMATE), {}, {
|
|
values: "0;0;1;1;0;0;"
|
|
})
|
|
}]
|
|
});
|
|
}
|
|
return {
|
|
tag: "g",
|
|
attributes: {
|
|
class: "missing"
|
|
},
|
|
children: gChildren
|
|
};
|
|
};
|
|
}
|
|
};
|
|
var SvgSymbols = {
|
|
hooks: function hooks7() {
|
|
return {
|
|
parseNodeAttributes: function parseNodeAttributes(accumulator, node) {
|
|
var symbolData = node.getAttribute("data-fa-symbol");
|
|
var symbol = symbolData === null ? false : symbolData === "" ? true : symbolData;
|
|
accumulator["symbol"] = symbol;
|
|
return accumulator;
|
|
}
|
|
};
|
|
}
|
|
};
|
|
var plugins = [InjectCSS, ReplaceElements, Layers, LayersCounter, LayersText, PseudoElements, MutationObserver$1, PowerTransforms, Masks, MissingIconIndicator, SvgSymbols];
|
|
registerPlugins(plugins, {
|
|
mixoutsTo: api
|
|
});
|
|
var noAuto$1 = api.noAuto;
|
|
var config$1 = api.config;
|
|
var library$1 = api.library;
|
|
var dom$1 = api.dom;
|
|
var parse$1 = api.parse;
|
|
var findIconDefinition$1 = api.findIconDefinition;
|
|
var toHtml$1 = api.toHtml;
|
|
var icon2 = api.icon;
|
|
var layer = api.layer;
|
|
var text = api.text;
|
|
var counter = api.counter;
|
|
|
|
export {
|
|
api,
|
|
noAuto$1,
|
|
config$1,
|
|
library$1,
|
|
dom$1,
|
|
parse$1,
|
|
findIconDefinition$1,
|
|
toHtml$1,
|
|
icon2 as icon,
|
|
layer,
|
|
text,
|
|
counter
|
|
};
|
|
/*! Bundled license information:
|
|
|
|
@fortawesome/fontawesome-svg-core/index.mjs:
|
|
(*!
|
|
* Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com
|
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
* Copyright 2025 Fonticons, Inc.
|
|
*)
|
|
*/
|
|
//# sourceMappingURL=chunk-UJLNKJWE.js.map
|