rc-fa-icon-picker
Version:
A customizable React component for picking Font Awesome icons with search and color selection.
1,884 lines (1,824 loc) • 2.07 MB
JavaScript
import X1, { useState as x1, useEffect as a$, useCallback as w1 } from "react";
function e$(c) {
return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
}
var h2 = { exports: {} }, U1 = {};
/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var tl;
function l$() {
if (tl) return U1;
tl = 1;
var c = Symbol.for("react.transitional.element"), a = Symbol.for("react.fragment");
function e(l, n, s) {
var o = null;
if (s !== void 0 && (o = "" + s), n.key !== void 0 && (o = "" + n.key), "key" in n) {
s = {};
for (var f in n)
f !== "key" && (s[f] = n[f]);
} else s = n;
return n = s.ref, {
$$typeof: c,
type: l,
key: o,
ref: n !== void 0 ? n : null,
props: s
};
}
return U1.Fragment = a, U1.jsx = e, U1.jsxs = e, U1;
}
var I1 = {};
/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var rl;
function n$() {
return rl || (rl = 1, process.env.NODE_ENV !== "production" && function() {
function c(i) {
if (i == null) return null;
if (typeof i == "function")
return i.$$typeof === i1 ? null : i.displayName || i.name || null;
if (typeof i == "string") return i;
switch (i) {
case S:
return "Fragment";
case R:
return "Profiler";
case V:
return "StrictMode";
case u:
return "Suspense";
case Y:
return "SuspenseList";
case J:
return "Activity";
}
if (typeof i == "object")
switch (typeof i.tag == "number" && console.error(
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
), i.$$typeof) {
case T:
return "Portal";
case B:
return (i.displayName || "Context") + ".Provider";
case U:
return (i._context.displayName || "Context") + ".Consumer";
case E:
var z = i.render;
return i = i.displayName, i || (i = z.displayName || z.name || "", i = i !== "" ? "ForwardRef(" + i + ")" : "ForwardRef"), i;
case Q:
return z = i.displayName || null, z !== null ? z : c(i.type) || "Memo";
case A:
z = i._payload, i = i._init;
try {
return c(i(z));
} catch {
}
}
return null;
}
function a(i) {
return "" + i;
}
function e(i) {
try {
a(i);
var z = !1;
} catch {
z = !0;
}
if (z) {
z = console;
var m = z.error, h = typeof Symbol == "function" && Symbol.toStringTag && i[Symbol.toStringTag] || i.constructor.name || "Object";
return m.call(
z,
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
h
), a(i);
}
}
function l(i) {
if (i === S) return "<>";
if (typeof i == "object" && i !== null && i.$$typeof === A)
return "<...>";
try {
var z = c(i);
return z ? "<" + z + ">" : "<...>";
} catch {
return "<...>";
}
}
function n() {
var i = c1.A;
return i === null ? null : i.getOwner();
}
function s() {
return Error("react-stack-top-frame");
}
function o(i) {
if (l1.call(i, "key")) {
var z = Object.getOwnPropertyDescriptor(i, "key").get;
if (z && z.isReactWarning) return !1;
}
return i.key !== void 0;
}
function f(i, z) {
function m() {
e1 || (e1 = !0, console.error(
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
z
));
}
m.isReactWarning = !0, Object.defineProperty(i, "key", {
get: m,
configurable: !0
});
}
function t() {
var i = c(this.type);
return I[i] || (I[i] = !0, console.error(
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
)), i = this.props.ref, i !== void 0 ? i : null;
}
function r(i, z, m, h, y, H, q, v) {
return m = H.ref, i = {
$$typeof: P,
type: i,
key: z,
props: H,
_owner: y
}, (m !== void 0 ? m : null) !== null ? Object.defineProperty(i, "ref", {
enumerable: !1,
get: t
}) : Object.defineProperty(i, "ref", { enumerable: !1, value: null }), i._store = {}, Object.defineProperty(i._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: 0
}), Object.defineProperty(i, "_debugInfo", {
configurable: !1,
enumerable: !1,
writable: !0,
value: null
}), Object.defineProperty(i, "_debugStack", {
configurable: !1,
enumerable: !1,
writable: !0,
value: q
}), Object.defineProperty(i, "_debugTask", {
configurable: !1,
enumerable: !1,
writable: !0,
value: v
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
}
function p(i, z, m, h, y, H, q, v) {
var w = z.children;
if (w !== void 0)
if (h)
if (f1(w)) {
for (h = 0; h < w.length; h++)
M(w[h]);
Object.freeze && Object.freeze(w);
} else
console.error(
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
);
else M(w);
if (l1.call(z, "key")) {
w = c(i);
var D = Object.keys(z).filter(function(j) {
return j !== "key";
});
h = 0 < D.length ? "{key: someKey, " + D.join(": ..., ") + ": ...}" : "{key: someKey}", n1[w + h] || (D = 0 < D.length ? "{" + D.join(": ..., ") + ": ...}" : "{}", console.error(
`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`,
h,
w,
D,
w
), n1[w + h] = !0);
}
if (w = null, m !== void 0 && (e(m), w = "" + m), o(z) && (e(z.key), w = "" + z.key), "key" in z) {
m = {};
for (var N in z)
N !== "key" && (m[N] = z[N]);
} else m = z;
return w && f(
m,
typeof i == "function" ? i.displayName || i.name || "Unknown" : i
), r(
i,
w,
H,
y,
n(),
m,
q,
v
);
}
function M(i) {
typeof i == "object" && i !== null && i.$$typeof === P && i._store && (i._store.validated = 1);
}
var C = X1, P = Symbol.for("react.transitional.element"), T = Symbol.for("react.portal"), S = Symbol.for("react.fragment"), V = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), U = Symbol.for("react.consumer"), B = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), Y = Symbol.for("react.suspense_list"), Q = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), J = Symbol.for("react.activity"), i1 = Symbol.for("react.client.reference"), c1 = C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, l1 = Object.prototype.hasOwnProperty, f1 = Array.isArray, K = console.createTask ? console.createTask : function() {
return null;
};
C = {
"react-stack-bottom-frame": function(i) {
return i();
}
};
var e1, I = {}, Z = C["react-stack-bottom-frame"].bind(
C,
s
)(), x = K(l(s)), n1 = {};
I1.Fragment = S, I1.jsx = function(i, z, m, h, y) {
var H = 1e4 > c1.recentlyCreatedOwnerStacks++;
return p(
i,
z,
m,
!1,
h,
y,
H ? Error("react-stack-top-frame") : Z,
H ? K(l(i)) : x
);
}, I1.jsxs = function(i, z, m, h, y) {
var H = 1e4 > c1.recentlyCreatedOwnerStacks++;
return p(
i,
z,
m,
!0,
h,
y,
H ? Error("react-stack-top-frame") : Z,
H ? K(l(i)) : x
);
};
}()), I1;
}
var ml;
function s$() {
return ml || (ml = 1, process.env.NODE_ENV === "production" ? h2.exports = l$() : h2.exports = n$()), h2.exports;
}
var F = s$();
/*!
* Font Awesome Free 6.7.2 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 2024 Fonticons, Inc.
*/
function o$(c, a, e) {
return (a = f$(a)) in c ? Object.defineProperty(c, a, {
value: e,
enumerable: !0,
configurable: !0,
writable: !0
}) : c[a] = e, c;
}
function pl(c, a) {
var e = Object.keys(c);
if (Object.getOwnPropertySymbols) {
var l = Object.getOwnPropertySymbols(c);
a && (l = l.filter(function(n) {
return Object.getOwnPropertyDescriptor(c, n).enumerable;
})), e.push.apply(e, l);
}
return e;
}
function L(c) {
for (var a = 1; a < arguments.length; a++) {
var e = arguments[a] != null ? arguments[a] : {};
a % 2 ? pl(Object(e), !0).forEach(function(l) {
o$(c, l, e[l]);
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(c, Object.getOwnPropertyDescriptors(e)) : pl(Object(e)).forEach(function(l) {
Object.defineProperty(c, l, Object.getOwnPropertyDescriptor(e, l));
});
}
return c;
}
function i$(c, a) {
if (typeof c != "object" || !c) return c;
var e = c[Symbol.toPrimitive];
if (e !== void 0) {
var l = e.call(c, a);
if (typeof l != "object") return l;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (a === "string" ? String : Number)(c);
}
function f$(c) {
var a = i$(c, "string");
return typeof a == "symbol" ? a : a + "";
}
const zl = () => {
};
let d4 = {}, en = {}, ln = null, nn = {
mark: zl,
measure: zl
};
try {
typeof window < "u" && (d4 = window), typeof document < "u" && (en = document), typeof MutationObserver < "u" && (ln = MutationObserver), typeof performance < "u" && (nn = performance);
} catch {
}
const {
userAgent: Ll = ""
} = d4.navigator || {}, N1 = d4, _ = en, ul = ln, C2 = nn;
N1.document;
const d1 = !!_.documentElement && !!_.head && typeof _.addEventListener == "function" && typeof _.createElement == "function", sn = ~Ll.indexOf("MSIE") || ~Ll.indexOf("Trident/");
var t$ = /fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/, r$ = /Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i, on = {
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"
}
}, m$ = {
GROUP: "duotone-group",
PRIMARY: "primary",
SECONDARY: "secondary"
}, fn = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone"], a1 = "classic", H2 = "duotone", p$ = "sharp", z$ = "sharp-duotone", tn = [a1, H2, p$, z$], L$ = {
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"
}
}, u$ = {
"Font Awesome 6 Free": {
900: "fas",
400: "far"
},
"Font Awesome 6 Pro": {
900: "fas",
400: "far",
normal: "far",
300: "fal",
100: "fat"
},
"Font Awesome 6 Brands": {
400: "fab",
normal: "fab"
},
"Font Awesome 6 Duotone": {
900: "fad",
400: "fadr",
normal: "fadr",
300: "fadl",
100: "fadt"
},
"Font Awesome 6 Sharp": {
900: "fass",
400: "fasr",
normal: "fasr",
300: "fasl",
100: "fast"
},
"Font Awesome 6 Sharp Duotone": {
900: "fasds",
400: "fasdr",
normal: "fasdr",
300: "fasdl",
100: "fasdt"
}
}, d$ = /* @__PURE__ */ new Map([["classic", {
defaultShortPrefixId: "fas",
defaultStyleId: "solid",
styleIds: ["solid", "regular", "light", "thin", "brands"],
futureStyleIds: [],
defaultFontWeight: 900
}], ["sharp", {
defaultShortPrefixId: "fass",
defaultStyleId: "solid",
styleIds: ["solid", "regular", "light", "thin"],
futureStyleIds: [],
defaultFontWeight: 900
}], ["duotone", {
defaultShortPrefixId: "fad",
defaultStyleId: "solid",
styleIds: ["solid", "regular", "light", "thin"],
futureStyleIds: [],
defaultFontWeight: 900
}], ["sharp-duotone", {
defaultShortPrefixId: "fasds",
defaultStyleId: "solid",
styleIds: ["solid", "regular", "light", "thin"],
futureStyleIds: [],
defaultFontWeight: 900
}]]), M$ = {
classic: {
solid: "fas",
regular: "far",
light: "fal",
thin: "fat",
brands: "fab"
},
duotone: {
solid: "fad",
regular: "fadr",
light: "fadl",
thin: "fadt"
},
sharp: {
solid: "fass",
regular: "fasr",
light: "fasl",
thin: "fast"
},
"sharp-duotone": {
solid: "fasds",
regular: "fasdr",
light: "fasdl",
thin: "fasdt"
}
}, h$ = ["fak", "fa-kit", "fakd", "fa-kit-duotone"], dl = {
kit: {
fak: "kit",
"fa-kit": "kit"
},
"kit-duotone": {
fakd: "kit-duotone",
"fa-kit-duotone": "kit-duotone"
}
}, C$ = ["kit"], N$ = {
kit: {
"fa-kit": "fak"
}
}, y$ = ["fak", "fakd"], g$ = {
kit: {
fak: "fa-kit"
}
}, Ml = {
kit: {
kit: "fak"
},
"kit-duotone": {
"kit-duotone": "fakd"
}
}, N2 = {
GROUP: "duotone-group",
SWAP_OPACITY: "swap-opacity",
PRIMARY: "primary",
SECONDARY: "secondary"
}, b$ = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone"], x$ = ["fak", "fa-kit", "fakd", "fa-kit-duotone"], v$ = {
"Font Awesome Kit": {
400: "fak",
normal: "fak"
},
"Font Awesome Kit Duotone": {
400: "fakd",
normal: "fakd"
}
}, k$ = {
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"
}
}, S$ = {
classic: ["fas", "far", "fal", "fat", "fad"],
duotone: ["fadr", "fadl", "fadt"],
sharp: ["fass", "fasr", "fasl", "fast"],
"sharp-duotone": ["fasds", "fasdr", "fasdl", "fasdt"]
}, _3 = {
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"
}
}, w$ = ["fa-solid", "fa-regular", "fa-light", "fa-thin", "fa-duotone", "fa-brands"], Z3 = ["fa", "fas", "far", "fal", "fat", "fad", "fadr", "fadl", "fadt", "fab", "fass", "fasr", "fasl", "fast", "fasds", "fasdr", "fasdl", "fasdt", ...b$, ...w$], A$ = ["solid", "regular", "light", "thin", "duotone", "brands"], rn = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], H$ = rn.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]), F$ = [...Object.keys(S$), ...A$, "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", N2.GROUP, N2.SWAP_OPACITY, N2.PRIMARY, N2.SECONDARY].concat(rn.map((c) => "".concat(c, "x"))).concat(H$.map((c) => "w-".concat(c))), P$ = {
"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"
}
};
const L1 = "___FONT_AWESOME___", Y3 = 16, mn = "fa", pn = "svg-inline--fa", k1 = "data-fa-i2svg", X3 = "data-fa-pseudo-element", V$ = "data-fa-pseudo-element-pending", M4 = "data-prefix", h4 = "data-icon", hl = "fontawesome-i2svg", T$ = "async", q$ = ["HTML", "HEAD", "STYLE", "SCRIPT"], zn = (() => {
try {
return process.env.NODE_ENV === "production";
} catch {
return !1;
}
})();
function K1(c) {
return new Proxy(c, {
get(a, e) {
return e in a ? a[e] : a[a1];
}
});
}
const Ln = L({}, on);
Ln[a1] = L(L(L(L({}, {
"fa-duotone": "duotone"
}), on[a1]), dl.kit), dl["kit-duotone"]);
const R$ = K1(Ln), K3 = L({}, M$);
K3[a1] = L(L(L(L({}, {
duotone: "fad"
}), K3[a1]), Ml.kit), Ml["kit-duotone"]);
const Cl = K1(K3), Q3 = L({}, _3);
Q3[a1] = L(L({}, Q3[a1]), g$.kit);
const C4 = K1(Q3), J3 = L({}, k$);
J3[a1] = L(L({}, J3[a1]), N$.kit);
K1(J3);
const B$ = t$, un = "fa-layers-text", D$ = r$, E$ = L({}, L$);
K1(E$);
const O$ = ["class", "data-prefix", "data-icon", "data-fa-transform", "data-fa-mask"], V3 = m$, G$ = [...C$, ...F$], j1 = N1.FontAwesomeConfig || {};
function U$(c) {
var a = _.querySelector("script[" + c + "]");
if (a)
return a.getAttribute(c);
}
function I$(c) {
return c === "" ? !0 : c === "false" ? !1 : c === "true" ? !0 : c;
}
_ && typeof _.querySelector == "function" && [["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-auto-a11y", "autoA11y"], ["data-search-pseudo-elements", "searchPseudoElements"], ["data-observe-mutations", "observeMutations"], ["data-mutate-approach", "mutateApproach"], ["data-keep-original-source", "keepOriginalSource"], ["data-measure-performance", "measurePerformance"], ["data-show-missing-icons", "showMissingIcons"]].forEach((a) => {
let [e, l] = a;
const n = I$(U$(e));
n != null && (j1[l] = n);
});
const dn = {
styleDefault: "solid",
familyDefault: a1,
cssPrefix: mn,
replacementClass: pn,
autoReplaceSvg: !0,
autoAddCss: !0,
autoA11y: !0,
searchPseudoElements: !1,
observeMutations: !0,
mutateApproach: "async",
keepOriginalSource: !0,
measurePerformance: !1,
showMissingIcons: !0
};
j1.familyPrefix && (j1.cssPrefix = j1.familyPrefix);
const V1 = L(L({}, dn), j1);
V1.autoReplaceSvg || (V1.observeMutations = !1);
const k = {};
Object.keys(dn).forEach((c) => {
Object.defineProperty(k, c, {
enumerable: !0,
set: function(a) {
V1[c] = a, _1.forEach((e) => e(k));
},
get: function() {
return V1[c];
}
});
});
Object.defineProperty(k, "familyPrefix", {
enumerable: !0,
set: function(c) {
V1.cssPrefix = c, _1.forEach((a) => a(k));
},
get: function() {
return V1.cssPrefix;
}
});
N1.FontAwesomeConfig = k;
const _1 = [];
function W$(c) {
return _1.push(c), () => {
_1.splice(_1.indexOf(c), 1);
};
}
const M1 = Y3, m1 = {
size: 16,
x: 0,
y: 0,
rotate: 0,
flipX: !1,
flipY: !1
};
function $$(c) {
if (!c || !d1)
return;
const a = _.createElement("style");
a.setAttribute("type", "text/css"), a.innerHTML = c;
const e = _.head.childNodes;
let l = null;
for (let n = e.length - 1; n > -1; n--) {
const s = e[n], o = (s.tagName || "").toUpperCase();
["STYLE", "LINK"].indexOf(o) > -1 && (l = s);
}
return _.head.insertBefore(a, l), c;
}
const j$ = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
function Z1() {
let c = 12, a = "";
for (; c-- > 0; )
a += j$[Math.random() * 62 | 0];
return a;
}
function T1(c) {
const a = [];
for (let e = (c || []).length >>> 0; e--; )
a[e] = c[e];
return a;
}
function N4(c) {
return c.classList ? T1(c.classList) : (c.getAttribute("class") || "").split(" ").filter((a) => a);
}
function Mn(c) {
return "".concat(c).replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
}
function _$(c) {
return Object.keys(c || {}).reduce((a, e) => a + "".concat(e, '="').concat(Mn(c[e]), '" '), "").trim();
}
function F2(c) {
return Object.keys(c || {}).reduce((a, e) => a + "".concat(e, ": ").concat(c[e].trim(), ";"), "");
}
function y4(c) {
return c.size !== m1.size || c.x !== m1.x || c.y !== m1.y || c.rotate !== m1.rotate || c.flipX || c.flipY;
}
function Z$(c) {
let {
transform: a,
containerWidth: e,
iconWidth: l
} = c;
const n = {
transform: "translate(".concat(e / 2, " 256)")
}, s = "translate(".concat(a.x * 32, ", ").concat(a.y * 32, ") "), o = "scale(".concat(a.size / 16 * (a.flipX ? -1 : 1), ", ").concat(a.size / 16 * (a.flipY ? -1 : 1), ") "), f = "rotate(".concat(a.rotate, " 0 0)"), t = {
transform: "".concat(s, " ").concat(o, " ").concat(f)
}, r = {
transform: "translate(".concat(l / 2 * -1, " -256)")
};
return {
outer: n,
inner: t,
path: r
};
}
function Y$(c) {
let {
transform: a,
width: e = Y3,
height: l = Y3,
startCentered: n = !1
} = c, s = "";
return n && sn ? s += "translate(".concat(a.x / M1 - e / 2, "em, ").concat(a.y / M1 - l / 2, "em) ") : n ? s += "translate(calc(-50% + ".concat(a.x / M1, "em), calc(-50% + ").concat(a.y / M1, "em)) ") : s += "translate(".concat(a.x / M1, "em, ").concat(a.y / M1, "em) "), s += "scale(".concat(a.size / M1 * (a.flipX ? -1 : 1), ", ").concat(a.size / M1 * (a.flipY ? -1 : 1), ") "), s += "rotate(".concat(a.rotate, "deg) "), s;
}
var X$ = `:root, :host {
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
--fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";
--fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
--fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";
--fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";
--fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";
--fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";
--fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";
--fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";
--fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";
}
svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
overflow: visible;
box-sizing: content-box;
}
.svg-inline--fa {
display: var(--fa-display, inline-block);
height: 1em;
overflow: visible;
vertical-align: -0.125em;
}
.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.0714285705em;
}
.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 {
margin-right: var(--fa-pull-margin, 0.3em);
width: auto;
}
.svg-inline--fa.fa-pull-right {
margin-left: var(--fa-pull-margin, 0.3em);
width: auto;
}
.svg-inline--fa.fa-li {
width: var(--fa-li-width, 2em);
top: 0.25em;
}
.svg-inline--fa.fa-fw {
width: var(--fa-fw-width, 1.25em);
}
.fa-layers svg.svg-inline--fa {
bottom: 0;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
}
.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: 1em;
}
.fa-layers svg.svg-inline--fa {
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: 0.625em;
line-height: 0.1em;
vertical-align: 0.225em;
}
.fa-xs {
font-size: 0.75em;
line-height: 0.0833333337em;
vertical-align: 0.125em;
}
.fa-sm {
font-size: 0.875em;
line-height: 0.0714285718em;
vertical-align: 0.0535714295em;
}
.fa-lg {
font-size: 1.25em;
line-height: 0.05em;
vertical-align: -0.075em;
}
.fa-xl {
font-size: 1.5em;
line-height: 0.0416666682em;
vertical-align: -0.125em;
}
.fa-2xl {
font-size: 2em;
line-height: 0.03125em;
vertical-align: -0.1875em;
}
.fa-fw {
text-align: center;
width: 1.25em;
}
.fa-ul {
list-style-type: none;
margin-left: var(--fa-li-margin, 2.5em);
padding-left: 0;
}
.fa-ul > li {
position: relative;
}
.fa-li {
left: calc(-1 * var(--fa-li-width, 2em));
position: absolute;
text-align: center;
width: var(--fa-li-width, 2em);
line-height: inherit;
}
.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.08em);
padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
}
.fa-pull-left {
float: left;
margin-right: var(--fa-pull-margin, 0.3em);
}
.fa-pull-right {
float: right;
margin-left: 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-delay: -1ms;
animation-duration: 1ms;
animation-iteration-count: 1;
transition-delay: 0s;
transition-duration: 0s;
}
}
@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));
}
.fa-stack {
display: inline-block;
vertical-align: middle;
height: 2em;
position: relative;
width: 2.5em;
}
.fa-stack-1x,
.fa-stack-2x {
bottom: 0;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
z-index: var(--fa-stack-z-index, auto);
}
.svg-inline--fa.fa-stack-1x {
height: 1em;
width: 1.25em;
}
.svg-inline--fa.fa-stack-2x {
height: 2em;
width: 2.5em;
}
.fa-inverse {
color: var(--fa-inverse, #fff);
}
.sr-only,
.fa-sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
.sr-only-focusable:not(:focus),
.fa-sr-only-focusable:not(:focus) {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 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;
}`;
function hn() {
const c = mn, a = pn, e = k.cssPrefix, l = k.replacementClass;
let n = X$;
if (e !== c || l !== a) {
const s = new RegExp("\\.".concat(c, "\\-"), "g"), o = new RegExp("\\--".concat(c, "\\-"), "g"), f = new RegExp("\\.".concat(a), "g");
n = n.replace(s, ".".concat(e, "-")).replace(o, "--".concat(e, "-")).replace(f, ".".concat(l));
}
return n;
}
let Nl = !1;
function T3() {
k.autoAddCss && !Nl && ($$(hn()), Nl = !0);
}
var K$ = {
mixout() {
return {
dom: {
css: hn,
insertCss: T3
}
};
},
hooks() {
return {
beforeDOMElementCreation() {
T3();
},
beforeI2svg() {
T3();
}
};
}
};
const u1 = N1 || {};
u1[L1] || (u1[L1] = {});
u1[L1].styles || (u1[L1].styles = {});
u1[L1].hooks || (u1[L1].hooks = {});
u1[L1].shims || (u1[L1].shims = []);
var p1 = u1[L1];
const Cn = [], Nn = function() {
_.removeEventListener("DOMContentLoaded", Nn), S2 = 1, Cn.map((c) => c());
};
let S2 = !1;
d1 && (S2 = (_.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(_.readyState), S2 || _.addEventListener("DOMContentLoaded", Nn));
function Q$(c) {
d1 && (S2 ? setTimeout(c, 0) : Cn.push(c));
}
function Q1(c) {
const {
tag: a,
attributes: e = {},
children: l = []
} = c;
return typeof c == "string" ? Mn(c) : "<".concat(a, " ").concat(_$(e), ">").concat(l.map(Q1).join(""), "</").concat(a, ">");
}
function yl(c, a, e) {
if (c && c[a] && c[a][e])
return {
prefix: a,
iconName: e,
icon: c[a][e]
};
}
var q3 = function(a, e, l, n) {
var s = Object.keys(a), o = s.length, f = e, t, r, p;
for (l === void 0 ? (t = 1, p = a[s[0]]) : (t = 0, p = l); t < o; t++)
r = s[t], p = f(p, a[r], r, a);
return p;
};
function J$(c) {
const a = [];
let e = 0;
const l = c.length;
for (; e < l; ) {
const n = c.charCodeAt(e++);
if (n >= 55296 && n <= 56319 && e < l) {
const s = c.charCodeAt(e++);
(s & 64512) == 56320 ? a.push(((n & 1023) << 10) + (s & 1023) + 65536) : (a.push(n), e--);
} else
a.push(n);
}
return a;
}
function c4(c) {
const a = J$(c);
return a.length === 1 ? a[0].toString(16) : null;
}
function cj(c, a) {
const e = c.length;
let l = c.charCodeAt(a), n;
return l >= 55296 && l <= 56319 && e > a + 1 && (n = c.charCodeAt(a + 1), n >= 56320 && n <= 57343) ? (l - 55296) * 1024 + n - 56320 + 65536 : l;
}
function gl(c) {
return Object.keys(c).reduce((a, e) => {
const l = c[e];
return !!l.icon ? a[l.iconName] = l.icon : a[e] = l, a;
}, {});
}
function a4(c, a) {
let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
const {
skipHooks: l = !1
} = e, n = gl(a);
typeof p1.hooks.addPack == "function" && !l ? p1.hooks.addPack(c, gl(a)) : p1.styles[c] = L(L({}, p1.styles[c] || {}), n), c === "fas" && a4("fa", a);
}
const {
styles: Y1,
shims: aj
} = p1, yn = Object.keys(C4), ej = yn.reduce((c, a) => (c[a] = Object.keys(C4[a]), c), {});
let g4 = null, gn = {}, bn = {}, xn = {}, vn = {}, kn = {};
function lj(c) {
return ~G$.indexOf(c);
}
function nj(c, a) {
const e = a.split("-"), l = e[0], n = e.slice(1).join("-");
return l === c && n !== "" && !lj(n) ? n : null;
}
const Sn = () => {
const c = (l) => q3(Y1, (n, s, o) => (n[o] = q3(s, l, {}), n), {});
gn = c((l, n, s) => (n[3] && (l[n[3]] = s), n[2] && n[2].filter((f) => typeof f == "number").forEach((f) => {
l[f.toString(16)] = s;
}), l)), bn = c((l, n, s) => (l[s] = s, n[2] && n[2].filter((f) => typeof f == "string").forEach((f) => {
l[f] = s;
}), l)), kn = c((l, n, s) => {
const o = n[2];
return l[s] = s, o.forEach((f) => {
l[f] = s;
}), l;
});
const a = "far" in Y1 || k.autoFetchSvg, e = q3(aj, (l, n) => {
const s = n[0];
let o = n[1];
const f = n[2];
return o === "far" && !a && (o = "fas"), typeof s == "string" && (l.names[s] = {
prefix: o,
iconName: f
}), typeof s == "number" && (l.unicodes[s.toString(16)] = {
prefix: o,
iconName: f
}), l;
}, {
names: {},
unicodes: {}
});
xn = e.names, vn = e.unicodes, g4 = P2(k.styleDefault, {
family: k.familyDefault
});
};
W$((c) => {
g4 = P2(c.styleDefault, {
family: k.familyDefault
});
});
Sn();
function b4(c, a) {
return (gn[c] || {})[a];
}
function sj(c, a) {
return (bn[c] || {})[a];
}
function v1(c, a) {
return (kn[c] || {})[a];
}
function wn(c) {
return xn[c] || {
prefix: null,
iconName: null
};
}
function oj(c) {
const a = vn[c], e = b4("fas", c);
return a || (e ? {
prefix: "fas",
iconName: e
} : null) || {
prefix: null,
iconName: null
};
}
function y1() {
return g4;
}
const An = () => ({
prefix: null,
iconName: null,
rest: []
});
function ij(c) {
let a = a1;
const e = yn.reduce((l, n) => (l[n] = "".concat(k.cssPrefix, "-").concat(n), l), {});
return tn.forEach((l) => {
(c.includes(e[l]) || c.some((n) => ej[l].includes(n))) && (a = l);
}), a;
}
function P2(c) {
let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
const {
family: e = a1
} = a, l = R$[e][c];
if (e === H2 && !c)
return "fad";
const n = Cl[e][c] || Cl[e][l], s = c in p1.styles ? c : null;
return n || s || null;
}
function fj(c) {
let a = [], e = null;
return c.forEach((l) => {
const n = nj(k.cssPrefix, l);
n ? e = n : l && a.push(l);
}), {
iconName: e,
rest: a
};
}
function bl(c) {
return c.sort().filter((a, e, l) => l.indexOf(a) === e);
}
function V2(c) {
let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
const {
skipLookups: e = !1
} = a;
let l = null;
const n = Z3.concat(x$), s = bl(c.filter((M) => n.includes(M))), o = bl(c.filter((M) => !Z3.includes(M))), f = s.filter((M) => (l = M, !fn.includes(M))), [t = null] = f, r = ij(s), p = L(L({}, fj(o)), {}, {
prefix: P2(t, {
family: r
})
});
return L(L(L({}, p), pj({
values: c,
family: r,
styles: Y1,
config: k,
canonical: p,
givenPrefix: l
})), tj(e, l, p));
}
function tj(c, a, e) {
let {
prefix: l,
iconName: n
} = e;
if (c || !l || !n)
return {
prefix: l,
iconName: n
};
const s = a === "fa" ? wn(n) : {}, o = v1(l, n);
return n = s.iconName || o || n, l = s.prefix || l, l === "far" && !Y1.far && Y1.fas && !k.autoFetchSvg && (l = "fas"), {
prefix: l,
iconName: n
};
}
const rj = tn.filter((c) => c !== a1 || c !== H2), mj = Object.keys(_3).filter((c) => c !== a1).map((c) => Object.keys(_3[c])).flat();
function pj(c) {
const {
values: a,
family: e,
canonical: l,
givenPrefix: n = "",
styles: s = {},
config: o = {}
} = c, f = e === H2, t = a.includes("fa-duotone") || a.includes("fad"), r = o.familyDefault === "duotone", p = l.prefix === "fad" || l.prefix === "fa-duotone";
if (!f && (t || r || p) && (l.prefix = "fad"), (a.includes("fa-brands") || a.includes("fab")) && (l.prefix = "fab"), !l.prefix && rj.includes(e) && (Object.keys(s).find((C) => mj.includes(C)) || o.autoFetchSvg)) {
const C = d$.get(e).defaultShortPrefixId;
l.prefix = C, l.iconName = v1(l.prefix, l.iconName) || l.iconName;
}
return (l.prefix === "fa" || n === "fa") && (l.prefix = y1() || "fas"), l;
}
class zj {
constructor() {
this.definitions = {};
}
add() {
for (var a = arguments.length, e = new Array(a), l = 0; l < a; l++)
e[l] = arguments[l];
const n = e.reduce(this._pullDefinitions, {});
Object.keys(n).forEach((s) => {
this.definitions[s] = L(L({}, this.definitions[s] || {}), n[s]), a4(s, n[s]);
const o = C4[a1][s];
o && a4(o, n[s]), Sn();
});
}
reset() {
this.definitions = {};
}
_pullDefinitions(a, e) {
const l = e.prefix && e.iconName && e.icon ? {
0: e
} : e;
return Object.keys(l).map((n) => {
const {
prefix: s,
iconName: o,
icon: f
} = l[n], t = f[2];
a[s] || (a[s] = {}), t.length > 0 && t.forEach((r) => {
typeof r == "string" && (a[s][r] = f);
}), a[s][o] = f;
}), a;
}
}
let xl = [], H1 = {};
const P1 = {}, Lj = Object.keys(P1);
function uj(c, a) {
let {
mixoutsTo: e
} = a;
return xl = c, H1 = {}, Object.keys(P1).forEach((l) => {
Lj.indexOf(l) === -1 && delete P1[l];
}), xl.forEach((l) => {
const n = l.mixout ? l.mixout() : {};
if (Object.keys(n).forEach((s) => {
typeof n[s] == "function" && (e[s] = n[s]), typeof n[s] == "object" && Object.keys(n[s]).forEach((o) => {
e[s] || (e[s] = {}), e[s][o] = n[s][o];
});
}), l.hooks) {
const s = l.hooks();
Object.keys(s).forEach((o) => {
H1[o] || (H1[o] = []), H1[o].push(s[o]);
});
}
l.provides && l.provides(P1);
}), e;
}
function e4(c, a) {
for (var e = arguments.length, l = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
l[n - 2] = arguments[n];
return (H1[c] || []).forEach((o) => {
a = o.apply(null, [a, ...l]);
}), a;
}
function S1(c) {
for (var a = arguments.length, e = new Array(a > 1 ? a - 1 : 0), l = 1; l < a; l++)
e[l - 1] = arguments[l];
(H1[c] || []).forEach((s) => {
s.apply(null, e);
});
}
function g1() {
const c = arguments[0], a = Array.prototype.slice.call(arguments, 1);
return P1[c] ? P1[c].apply(null, a) : void 0;
}
function l4(c) {
c.prefix === "fa" && (c.prefix = "fas");
let {
iconName: a
} = c;
const e = c.prefix || y1();
if (a)
return a = v1(e, a) || a, yl(Hn.definitions, e, a) || yl(p1.styles, e, a);
}
const Hn = new zj(), dj = () => {
k.autoReplaceSvg = !1, k.observeMutations = !1, S1("noAuto");
}, Mj = {
i2svg: function() {
let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
return d1 ? (S1("beforeI2svg", c), g1("pseudoElements2svg", c), g1("i2svg", c)) : Promise.reject(new Error("Operation requires a DOM of some kind."));
},
watch: function() {
let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
const {
autoReplaceSvgRoot: a
} = c;
k.autoReplaceSvg === !1 && (k.autoReplaceSvg = !0), k.observeMutations = !0, Q$(() => {
Cj({
autoReplaceSvgRoot: a
}), S1("watch", c);
});
}
}, hj = {
icon: (c) => {
if (c === null)
return null;
if (typeof c == "object" && c.prefix && c.iconName)
return {
prefix: c.prefix,
iconName: v1(c.prefix, c.iconName) || c.iconName
};
if (Array.isArray(c) && c.length === 2) {
const a = c[1].indexOf("fa-") === 0 ? c[1].slice(3) : c[1], e = P2(c[0]);
return {
prefix: e,
iconName: v1(e, a) || a
};
}
if (typeof c == "string" && (c.indexOf("".concat(k.cssPrefix, "-")) > -1 || c.match(B$))) {
const a = V2(c.split(" "), {
skipLookups: !0
});
return {
prefix: a.prefix || y1(),
iconName: v1(a.prefix, a.iconName) || a.iconName
};
}
if (typeof c == "string") {
const a = y1();
return {
prefix: a,
iconName: v1(a, c) || c
};
}
}
}, s1 = {
noAuto: dj,
config: k,
dom: Mj,
parse: hj,
library: Hn,
findIconDefinition: l4,
toHtml: Q1
}, Cj = function() {
let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
const {
autoReplaceSvgRoot: a = _
} = c;
(Object.keys(p1.styles).length > 0 || k.autoFetchSvg) && d1 && k.autoReplaceSvg && s1.dom.i2svg({
node: a
});
};
function T2(c, a) {
return Object.defineProperty(c, "abstract", {
get: a
}), Object.defineProperty(c, "html", {
get: function() {
return c.abstract.map((e) => Q1(e));
}
}), Object.defineProperty(c, "node", {
get: function() {
if (!d1) return;
const e = _.createElement("div");
return e.innerHTML = c.html, e.children;
}
}), c;
}
function Nj(c) {
let {
children: a,
main: e,
mask: l,
attributes: n,
styles: s,
transform: o
} = c;
if (y4(o) && e.found && !l.found) {
const {
width: f,
height: t
} = e, r = {
x: f / t / 2,
y: 0.5
};
n.style = F2(L(L({}, s), {}, {
"transform-origin": "".concat(r.x + o.x / 16, "em ").concat(r.y + o.y / 16, "em")
}));
}
return [{
tag: "svg",
attributes: n,
children: a
}];
}
function yj(c) {
let {
prefix: a,
iconName: e,
children: l,
attributes: n,
symbol: s
} = c;
const o = s === !0 ? "".concat(a, "-").concat(k.cssPrefix, "-").concat(e) : s;
return [{
tag: "svg",
attributes: {
style: "display: none;"
},
children: [{
tag: "symbol",
attributes: L(L({}, n), {}, {
id: o
}),
children: l
}]
}];
}
function x4(c) {
const {
icons: {
main: a,
mask: e
},
prefix: l,
iconName: n,
transform: s,
symbol: o,
title: f,
maskId: t,
titleId: r,
extra: p,
watchable: M = !1
} = c, {
width: C,
height: P
} = e.found ? e : a, T = y$.includes(l), S = [k.replacementClass, n ? "".concat(k.cssPrefix, "-").concat(n) : ""].filter((u) => p.classes.indexOf(u) === -1).filter((u) => u !== "" || !!u).concat(p.classes).join(" ");
let V = {
children: [],
attributes: L(L({}, p.attributes), {}, {
"data-prefix": l,
"data-icon": n,
class: S,
role: p.attributes.role || "img",
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 ".concat(C, " ").concat(P)
})
};
const R = T && !~p.classes.indexOf("fa-fw") ? {
width: "".concat(C / P * 16 * 0.0625, "em")
} : {};
M && (V.attributes[k1] = ""), f && (V.children.push({
tag: "title",
attributes: {
id: V.attributes["aria-labelledby"] || "title-".concat(r || Z1())
},
children: [f]
}), delete V.attributes.title);
const U = L(L({}, V), {}, {
prefix: l,
iconName: n,
main: a,
mask: e,
maskId: t,
transform: s,
symbol: o,
styles: L(L({}, R), p.styles)
}), {
children: B,
attributes: E
}