Release 5.1.1 (#1169)
This commit is contained in:
40
svg-with-js/js/fontawesome.min.js
vendored
40
svg-with-js/js/fontawesome.min.js
vendored
@@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Font Awesome Pro 5.1.0 by @fontawesome - https://fontawesome.com
|
||||
* Font Awesome Pro 5.1.1 by @fontawesome - https://fontawesome.com
|
||||
* License - https://fontawesome.com/license (Commercial License)
|
||||
*/
|
||||
!function() {
|
||||
@@ -94,14 +94,14 @@
|
||||
var I = m || {};
|
||||
I[u] || (I[u] = {}), I[u].styles || (I[u].styles = {}), I[u].hooks || (I[u].hooks = {}),
|
||||
I[u].shims || (I[u].shims = []);
|
||||
var H = I[u], D = [], X = !1;
|
||||
c && ((X = (d.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(d.readyState)) || d.addEventListener("DOMContentLoaded", function t() {
|
||||
d.removeEventListener("DOMContentLoaded", t), X = 1, D.map(function(t) {
|
||||
var H = I[u], B = [], D = !1;
|
||||
c && ((D = (d.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(d.readyState)) || d.addEventListener("DOMContentLoaded", function t() {
|
||||
d.removeEventListener("DOMContentLoaded", t), D = 1, B.map(function(t) {
|
||||
return t();
|
||||
});
|
||||
}));
|
||||
var B = function(t) {
|
||||
c && (X ? setTimeout(t, 0) : D.push(t));
|
||||
var X = function(t) {
|
||||
c && (D ? setTimeout(t, 0) : B.push(t));
|
||||
}, F = C, _ = {
|
||||
size: 16,
|
||||
x: 0,
|
||||
@@ -342,7 +342,7 @@
|
||||
var ot = function() {}, st = R.measurePerformance && l && l.mark && l.measure ? l : {
|
||||
mark: ot,
|
||||
measure: ot
|
||||
}, lt = 'FA "5.1.0"', ft = function(t) {
|
||||
}, lt = 'FA "5.1.1"', ft = function(t) {
|
||||
st.mark(lt + " " + t + " ends"), st.measure(lt + " " + t, lt + " " + t + " begins", lt + " " + t + " ends");
|
||||
}, ct = {
|
||||
begin: function(t) {
|
||||
@@ -555,12 +555,12 @@
|
||||
}, {}), n = t.getAttribute("title");
|
||||
return R.autoA11y && (n ? e["aria-labelledby"] = R.replacementClass + "-title-" + q() : e["aria-hidden"] = "true"),
|
||||
e;
|
||||
}, Dt = function(t) {
|
||||
}, Bt = function(t) {
|
||||
var e = t.getAttribute("data-fa-mask");
|
||||
return e ? xt(e.split(" ").map(function(t) {
|
||||
return t.trim();
|
||||
})) : wt();
|
||||
}, Xt = {
|
||||
}, Dt = {
|
||||
iconName: null,
|
||||
title: null,
|
||||
prefix: null,
|
||||
@@ -573,10 +573,10 @@
|
||||
attributes: {}
|
||||
}
|
||||
};
|
||||
function Bt(t) {
|
||||
function Xt(t) {
|
||||
this.name = "MissingIcon", this.message = t || "Icon unavailable", this.stack = new Error().stack;
|
||||
}
|
||||
(Bt.prototype = Object.create(Error.prototype)).constructor = Bt;
|
||||
(Xt.prototype = Object.create(Error.prototype)).constructor = Xt;
|
||||
var Ft = {
|
||||
fill: "currentColor"
|
||||
}, _t = {
|
||||
@@ -667,13 +667,13 @@
|
||||
}
|
||||
}
|
||||
};
|
||||
} else if (t && e && !R.showMissingIcons) throw new Bt("Icon is missing for prefix " + e + " with icon name " + t);
|
||||
} else if (t && e && !R.showMissingIcons) throw new Xt("Icon is missing for prefix " + e + " with icon name " + t);
|
||||
return n;
|
||||
}
|
||||
function Zt(t) {
|
||||
var e, n, r, a, i, o, s, l, f, c, u, m, d, g, h, p, v, b, y, w = (n = Tt(e = t),
|
||||
r = n.iconName, a = n.prefix, i = n.rest, o = Ot(e), s = Rt(e), l = It(e), f = Ht(e),
|
||||
c = Dt(e), {
|
||||
c = Bt(e), {
|
||||
iconName: r,
|
||||
title: e.getAttribute("title"),
|
||||
prefix: a,
|
||||
@@ -729,12 +729,12 @@
|
||||
return t.getAttribute(h) === e;
|
||||
})[0], n = m.getComputedStyle(u, e), r = n.getPropertyValue("font-family").match(Kt), a = n.getPropertyValue("font-weight");
|
||||
if (t && !r) u.removeChild(t); else if (r) {
|
||||
var i = n.getPropertyValue("content"), o = ~[ "Light", "Regular", "Solid" ].indexOf(r[1]) ? Gt[r[1]] : Jt[a], s = bt(o, Pt(3 === i.length ? i.substr(1, 1) : i));
|
||||
var i = n.getPropertyValue("content"), o = ~[ "Light", "Regular", "Solid", "Brands" ].indexOf(r[1]) ? Gt[r[1]] : Jt[a], s = bt(o, Pt(3 === i.length ? i.substr(1, 1) : i));
|
||||
if (!t || t.getAttribute(p) !== o || t.getAttribute(v) !== s) {
|
||||
t && u.removeChild(t);
|
||||
var l = Xt.extra;
|
||||
var l = Dt.extra;
|
||||
l.attributes[h] = e;
|
||||
var f = at(E({}, Xt, {
|
||||
var f = at(E({}, Dt, {
|
||||
icons: {
|
||||
main: Qt(s, o),
|
||||
mask: wt()
|
||||
@@ -773,7 +773,7 @@
|
||||
var n = Zt(e);
|
||||
n && t.push(n);
|
||||
} catch (t) {
|
||||
w || t instanceof Bt && console.error(t);
|
||||
w || t instanceof Xt && console.error(t);
|
||||
}
|
||||
return t;
|
||||
}, []);
|
||||
@@ -852,7 +852,7 @@
|
||||
}, {});
|
||||
"function" == typeof H.hooks.addPack ? H.hooks.addPack(e, n) : H.styles[e] = E({}, H.styles[e] || {}, n),
|
||||
"fas" === e && t("fa", r);
|
||||
}(t, a[t]);
|
||||
}(t, a[t]), vt();
|
||||
});
|
||||
}
|
||||
}, {
|
||||
@@ -887,7 +887,7 @@
|
||||
},
|
||||
watch: function() {
|
||||
var t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {}, e = t.autoReplaceSvgRoot, n = t.observeMutationsRoot;
|
||||
!1 === R.autoReplaceSvg && (R.autoReplaceSvg = !0), R.observeMutations = !0, B(function() {
|
||||
!1 === R.autoReplaceSvg && (R.autoReplaceSvg = !0), R.observeMutations = !0, X(function() {
|
||||
de({
|
||||
autoReplaceSvgRoot: e
|
||||
}), Et({
|
||||
@@ -1035,7 +1035,7 @@
|
||||
if (!w) throw t;
|
||||
}
|
||||
}(function() {
|
||||
f && (m.FontAwesome || (m.FontAwesome = me), B(function() {
|
||||
f && (m.FontAwesome || (m.FontAwesome = me), X(function() {
|
||||
de(), Et({
|
||||
treeCallback: te,
|
||||
nodeCallback: ee,
|
||||
|
||||
Reference in New Issue
Block a user