Font-Awesome/js-packages/@fortawesome/fontawesome-free/js/v4-shims.min.js

149 lines
32 KiB
JavaScript
Raw Normal View History

2022-02-08 04:16:51 +08:00
/*!
2023-08-03 04:27:06 +08:00
* Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com
2022-02-08 04:16:51 +08:00
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
2023-02-08 03:23:03 +08:00
* Copyright 2023 Fonticons, Inc.
2022-02-08 04:16:51 +08:00
*/
2022-07-26 01:48:16 +08:00
var a, e;
2022-02-08 04:16:51 +08:00
2022-07-26 01:48:16 +08:00
a = this, e = function() {
2022-02-08 04:16:51 +08:00
"use strict";
2022-07-26 01:48:16 +08:00
var a = {}, e = {};
2022-02-08 04:16:51 +08:00
try {
2022-07-26 01:48:16 +08:00
"undefined" != typeof window && (a = window), "undefined" != typeof document && (e = document);
2022-02-08 04:16:51 +08:00
} catch (a) {}
2023-02-08 03:23:03 +08:00
var l = (a.navigator || {}).userAgent, r = void 0 === l ? "" : l, f = a, n = e;
f.document, n.documentElement && n.head && "function" == typeof n.addEventListener && n.createElement,
2022-02-08 04:16:51 +08:00
~r.indexOf("MSIE") || r.indexOf("Trident/");
2022-09-01 05:02:43 +08:00
function o(a, e, l) {
return e in a ? Object.defineProperty(a, e, {
value: l,
enumerable: !0,
configurable: !0,
writable: !0
}) : a[e] = l, a;
}
function t(a, e) {
2022-07-26 01:48:16 +08:00
(null == e || e > a.length) && (e = a.length);
for (var l = 0, r = new Array(e); l < e; l++) r[l] = a[l];
2022-02-08 04:16:51 +08:00
return r;
}
2022-09-01 05:02:43 +08:00
var u = "___FONT_AWESOME___", s = function() {
2022-02-08 04:16:51 +08:00
try {
return "production" === process.env.NODE_ENV;
} catch (a) {
return !1;
}
2022-09-01 05:02:43 +08:00
}(), i = "classic", b = "sharp", c = [ i, b ];
function d(a) {
return new Proxy(a, {
get: function(a, e) {
return e in a ? a[e] : a[i];
}
});
}
d((o(h = {}, i, {
fa: "solid",
fas: "solid",
"fa-solid": "solid",
far: "regular",
"fa-regular": "regular",
fal: "light",
"fa-light": "light",
fat: "thin",
"fa-thin": "thin",
fad: "duotone",
"fa-duotone": "duotone",
fab: "brands",
"fa-brands": "brands",
fak: "kit",
"fa-kit": "kit"
}), o(h, b, {
fa: "solid",
fass: "solid",
2023-02-08 03:23:03 +08:00
"fa-solid": "solid",
fasr: "regular",
2023-03-28 00:58:41 +08:00
"fa-regular": "regular",
fasl: "light",
"fa-light": "light"
2022-09-01 05:02:43 +08:00
}), h));
var p = d((o(g = {}, i, {
2022-02-08 04:16:51 +08:00
solid: "fas",
regular: "far",
light: "fal",
thin: "fat",
duotone: "fad",
brands: "fab",
kit: "fak"
2022-09-01 05:02:43 +08:00
}), o(g, b, {
2023-02-08 03:23:03 +08:00
solid: "fass",
2023-03-28 00:58:41 +08:00
regular: "fasr",
light: "fasl"
2023-02-08 03:23:03 +08:00
}), g)), n = (d((o(l = {}, i, {
2022-09-01 05:02:43 +08:00
fab: "fa-brands",
fad: "fa-duotone",
fak: "fa-kit",
fal: "fa-light",
far: "fa-regular",
fas: "fa-solid",
fat: "fa-thin"
}), o(l, b, {
2023-02-08 03:23:03 +08:00
fass: "fa-solid",
2023-03-28 00:58:41 +08:00
fasr: "fa-regular",
fasl: "fa-light"
2022-09-01 05:02:43 +08:00
}), l)), d((o(a = {}, i, {
"fa-brands": "fab",
"fa-duotone": "fad",
"fa-kit": "fak",
"fa-light": "fal",
"fa-regular": "far",
"fa-solid": "fas",
"fa-thin": "fat"
}), o(a, b, {
2023-02-08 03:23:03 +08:00
"fa-solid": "fass",
2023-03-28 00:58:41 +08:00
"fa-regular": "fasr",
"fa-light": "fasl"
2022-09-01 05:02:43 +08:00
}), a)), d((o(e = {}, i, {
900: "fas",
400: "far",
normal: "far",
300: "fal",
100: "fat"
}), o(e, b, {
2023-02-08 03:23:03 +08:00
900: "fass",
2023-03-28 00:58:41 +08:00
400: "fasr",
300: "fasl"
2023-02-08 03:23:03 +08:00
}), e)), [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]), r = n.concat([ 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ]), h = "duotone-group", g = "swap-opacity", l = "primary", a = "secondary", e = new Set();
2022-09-01 05:02:43 +08:00
Object.keys(p[i]).map(e.add.bind(e)), Object.keys(p[b]).map(e.add.bind(e));
[].concat(c, function(a) {
if (Array.isArray(a)) return t(a);
}(e = e) || function(a) {
2022-02-08 04:16:51 +08:00
if ("undefined" != typeof Symbol && null != a[Symbol.iterator] || null != a["@@iterator"]) return Array.from(a);
2022-09-01 05:02:43 +08:00
}(e) || function(a, e) {
2022-02-08 04:16:51 +08:00
if (a) {
2022-09-01 05:02:43 +08:00
if ("string" == typeof a) return t(a, e);
2022-07-26 01:48:16 +08:00
var l = Object.prototype.toString.call(a).slice(8, -1);
2022-09-01 05:02:43 +08:00
return "Map" === (l = "Object" === l && a.constructor ? a.constructor.name : l) || "Set" === l ? Array.from(a) : "Arguments" === l || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l) ? t(a, e) : void 0;
2022-02-08 04:16:51 +08:00
}
2022-09-01 05:02:43 +08:00
}(e) || function() {
2022-02-08 04:16:51 +08:00
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2023-02-08 03:23:03 +08:00
}(), [ "2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "fw", "inverse", "layers-counter", "layers-text", "layers", "li", "pull-left", "pull-right", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", h, g, l, a ]).concat(n.map(function(a) {
2022-02-08 04:16:51 +08:00
return "".concat(a, "x");
2022-09-01 05:02:43 +08:00
})).concat(r.map(function(a) {
2022-02-08 04:16:51 +08:00
return "w-".concat(a);
}));
2023-02-08 03:23:03 +08:00
f = f || {};
f[u] || (f[u] = {}), f[u].styles || (f[u].styles = {}), f[u].hooks || (f[u].hooks = {}),
f[u].shims || (f[u].shims = []);
var m = f[u], w = [ [ "glass", null, "martini-glass-empty" ], [ "envelope-o", "far", "envelope" ], [ "star-o", "far", "star" ], [ "remove", null, "xmark" ], [ "close", null, "xmark" ], [ "gear", null, "gear" ], [ "trash-o", "far", "trash-can" ], [ "home", null, "house" ], [ "file-o", "far", "file" ], [ "clock-o", "far", "clock" ], [ "arrow-circle-o-down", "far", "circle-down" ], [ "arrow-circle-o-up", "far", "circle-up" ], [ "play-circle-o", "far", "circle-play" ], [ "repeat", null, "arrow-rotate-right" ], [ "rotate-right", null, "arrow-rotate-right" ], [ "refresh", null, "arrows-rotate" ], [ "list-alt", "far", "rectangle-list" ], [ "dedent", null, "outdent" ], [ "video-camera", null, "video" ], [ "picture-o", "far", "image" ], [ "photo", "far", "image" ], [ "image", "far", "image" ], [ "map-marker", null, "location-dot" ], [ "pencil-square-o", "far", "pen-to-square" ], [ "edit", "far", "pen-to-square" ], [ "share-square-o", null, "share-from-square" ], [ "check-square-o", "far", "square-check" ], [ "arrows", null, "up-down-left-right" ], [ "times-circle-o", "far", "circle-xmark" ], [ "check-circle-o", "far", "circle-check" ], [ "mail-forward", null, "share" ], [ "expand", null, "up-right-and-down-left-from-center" ], [ "compress", null, "down-left-and-up-right-to-center" ], [ "eye", "far", null ], [ "eye-slash", "far", null ], [ "warning", null, "triangle-exclamation" ], [ "calendar", null, "calendar-days" ], [ "arrows-v", null, "up-down" ], [ "arrows-h", null, "left-right" ], [ "bar-chart", null, "chart-column" ], [ "bar-chart-o", null, "chart-column" ], [ "twitter-square", "fab", "square-twitter" ], [ "facebook-square", "fab", "square-facebook" ], [ "gears", null, "gears" ], [ "thumbs-o-up", "far", "thumbs-up" ], [ "thumbs-o-down", "far", "thumbs-down" ], [ "heart-o", "far", "heart" ], [ "sign-out", null, "right-from-bracket" ], [ "linkedin-square", "fab", "linkedin" ], [ "thumb-tack", null, "thumbtack" ], [ "external-link", null, "up-right-from-square" ], [ "sign-in", null, "right-to-bracket" ], [ "github-square", "fab", "square-github" ], [ "lemon-o", "far", "lemon" ], [ "square-o", "far", "square" ], [ "bookmark-o", "far", "bookmark" ], [ "twitter", "fab", null ], [ "facebook", "fab", "facebook-f" ], [ "facebook-f", "fab", "facebook-f" ], [ "github", "fab", null ], [ "credit-card", "far", null ], [ "feed", null, "rss" ], [ "hdd-o", "far", "hard-drive" ], [ "hand-o-right", "far", "hand-point-right" ], [ "hand-o-left", "far", "hand-point-left" ], [ "hand-o-up", "far", "hand-point-up" ], [ "hand-o-down", "far", "hand-point-down" ], [ "globe", null, "earth-americas" ], [ "tasks", null, "bars-progress" ], [ "arrows-alt", null, "maximize" ], [ "group", null, "users" ], [ "chain", null, "link" ], [ "cut", null, "scissors" ], [ "files-o", "far", "copy" ], [ "floppy-o", "far", "floppy-disk" ], [ "save", "far", "floppy-disk" ], [ "navicon", null, "bars" ], [ "reorder", null, "bars" ], [ "magic", null, "wand-magic-sparkles" ], [ "pinterest", "fab", null ], [ "pinterest-square", "fab", "square-pinterest" ], [ "google-plus-square", "fab", "square-google-plus" ], [ "google-plus", "fab", "google-plus-g" ], [ "money", null, "money-bill-1" ], [ "unsorted", null, "sort" ], [ "sort-desc", null, "sort-down" ], [ "sort-asc", null, "sort-up" ], [ "linkedin", "fab", "linkedin-in" ], [ "rotate-left", null, "arrow-rotate-left" ], [ "legal", null, "gavel" ], [ "tachometer", null, "gauge-high" ], [ "dashboard", null, "gauge-high" ], [ "comment-o", "far", "comment" ], [ "comments-o", "far", "comments" ], [ "flash", null, "bolt" ], [ "clipboard", null, "paste" ], [ "lightbulb-o", "far", "lightbulb" ], [ "exchange", null, "right-left" ], [ "cloud-download", null, "cloud-arrow-down" ], [ "cloud-upload", null, "cloud-arrow-up" ], [ "bell-o", "far", "bell" ], [ "cutlery", null, "utensils" ], [ "file-text-o", "far", "file-lines" ], [ "building-o", "far", "building" ], [ "hospital-o", "far", "hospital" ], [ "tablet", null, "tablet-screen-button" ], [ "mobile", null, "mobile-screen-button" ], [ "mobile-phone", null, "mobile-screen-button" ], [ "
2022-02-08 04:16:51 +08:00
return function(a) {
try {
2022-07-26 01:48:16 +08:00
for (var e = arguments.length, l = new Array(1 < e ? e - 1 : 0), r = 1; r < e; r++) l[r - 1] = arguments[r];
a.apply(void 0, l);
2022-02-08 04:16:51 +08:00
} catch (a) {
2022-09-01 05:02:43 +08:00
if (!s) throw a;
2022-02-08 04:16:51 +08:00
}
}(function() {
var a;
2022-09-01 05:02:43 +08:00
"function" == typeof m.hooks.addShims ? m.hooks.addShims(w) : (a = m.shims).push.apply(a, w);
}), w;
2022-07-26 01:48:16 +08:00
}, "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : a["fontawesome-free-shims"] = e();