@process.co/ui 0.0.20 → 0.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,1048 @@
1
1
  import * as React3 from 'react';
2
- import { jsx } from 'react/jsx-runtime';
2
+ import React3__default from 'react';
3
+ import { jsx, jsxs } from 'react/jsx-runtime';
4
+ import 'react-dom';
5
+
6
+ var __create = Object.create;
7
+ var __defProp = Object.defineProperty;
8
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
9
+ var __getOwnPropNames = Object.getOwnPropertyNames;
10
+ var __getProtoOf = Object.getPrototypeOf;
11
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
12
+ var __commonJS = (cb, mod) => function __require() {
13
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
14
+ };
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from))
18
+ if (!__hasOwnProp.call(to, key) && key !== except)
19
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
20
+ }
21
+ return to;
22
+ };
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
24
+ // If the importer is in node compatibility mode or this is not an ESM
25
+ // file that has been converted to a CommonJS file using a Babel-
26
+ // compatible transform (i.e. "__esModule" has not been set), then set
27
+ // "default" to the CommonJS "module.exports" for node compatibility.
28
+ !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
29
+ mod
30
+ ));
31
+
32
+ // ../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js
33
+ var require_react_is_production_min = __commonJS({
34
+ "../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js"(exports$1) {
35
+ var b = "function" === typeof Symbol && Symbol.for;
36
+ var c = b ? Symbol.for("react.element") : 60103;
37
+ var d = b ? Symbol.for("react.portal") : 60106;
38
+ var e = b ? Symbol.for("react.fragment") : 60107;
39
+ var f = b ? Symbol.for("react.strict_mode") : 60108;
40
+ var g2 = b ? Symbol.for("react.profiler") : 60114;
41
+ var h = b ? Symbol.for("react.provider") : 60109;
42
+ var k = b ? Symbol.for("react.context") : 60110;
43
+ var l = b ? Symbol.for("react.async_mode") : 60111;
44
+ var m = b ? Symbol.for("react.concurrent_mode") : 60111;
45
+ var n = b ? Symbol.for("react.forward_ref") : 60112;
46
+ var p2 = b ? Symbol.for("react.suspense") : 60113;
47
+ var q = b ? Symbol.for("react.suspense_list") : 60120;
48
+ var r3 = b ? Symbol.for("react.memo") : 60115;
49
+ var t2 = b ? Symbol.for("react.lazy") : 60116;
50
+ var v = b ? Symbol.for("react.block") : 60121;
51
+ var w2 = b ? Symbol.for("react.fundamental") : 60117;
52
+ var x2 = b ? Symbol.for("react.responder") : 60118;
53
+ var y = b ? Symbol.for("react.scope") : 60119;
54
+ function z(a) {
55
+ if ("object" === typeof a && null !== a) {
56
+ var u = a.$$typeof;
57
+ switch (u) {
58
+ case c:
59
+ switch (a = a.type, a) {
60
+ case l:
61
+ case m:
62
+ case e:
63
+ case g2:
64
+ case f:
65
+ case p2:
66
+ return a;
67
+ default:
68
+ switch (a = a && a.$$typeof, a) {
69
+ case k:
70
+ case n:
71
+ case t2:
72
+ case r3:
73
+ case h:
74
+ return a;
75
+ default:
76
+ return u;
77
+ }
78
+ }
79
+ case d:
80
+ return u;
81
+ }
82
+ }
83
+ }
84
+ function A2(a) {
85
+ return z(a) === m;
86
+ }
87
+ exports$1.AsyncMode = l;
88
+ exports$1.ConcurrentMode = m;
89
+ exports$1.ContextConsumer = k;
90
+ exports$1.ContextProvider = h;
91
+ exports$1.Element = c;
92
+ exports$1.ForwardRef = n;
93
+ exports$1.Fragment = e;
94
+ exports$1.Lazy = t2;
95
+ exports$1.Memo = r3;
96
+ exports$1.Portal = d;
97
+ exports$1.Profiler = g2;
98
+ exports$1.StrictMode = f;
99
+ exports$1.Suspense = p2;
100
+ exports$1.isAsyncMode = function(a) {
101
+ return A2(a) || z(a) === l;
102
+ };
103
+ exports$1.isConcurrentMode = A2;
104
+ exports$1.isContextConsumer = function(a) {
105
+ return z(a) === k;
106
+ };
107
+ exports$1.isContextProvider = function(a) {
108
+ return z(a) === h;
109
+ };
110
+ exports$1.isElement = function(a) {
111
+ return "object" === typeof a && null !== a && a.$$typeof === c;
112
+ };
113
+ exports$1.isForwardRef = function(a) {
114
+ return z(a) === n;
115
+ };
116
+ exports$1.isFragment = function(a) {
117
+ return z(a) === e;
118
+ };
119
+ exports$1.isLazy = function(a) {
120
+ return z(a) === t2;
121
+ };
122
+ exports$1.isMemo = function(a) {
123
+ return z(a) === r3;
124
+ };
125
+ exports$1.isPortal = function(a) {
126
+ return z(a) === d;
127
+ };
128
+ exports$1.isProfiler = function(a) {
129
+ return z(a) === g2;
130
+ };
131
+ exports$1.isStrictMode = function(a) {
132
+ return z(a) === f;
133
+ };
134
+ exports$1.isSuspense = function(a) {
135
+ return z(a) === p2;
136
+ };
137
+ exports$1.isValidElementType = function(a) {
138
+ return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g2 || a === f || a === p2 || a === q || "object" === typeof a && null !== a && (a.$$typeof === t2 || a.$$typeof === r3 || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w2 || a.$$typeof === x2 || a.$$typeof === y || a.$$typeof === v);
139
+ };
140
+ exports$1.typeOf = z;
141
+ }
142
+ });
143
+
144
+ // ../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js
145
+ var require_react_is_development = __commonJS({
146
+ "../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js"(exports$1) {
147
+ if (process.env.NODE_ENV !== "production") {
148
+ (function() {
149
+ var hasSymbol = typeof Symbol === "function" && Symbol.for;
150
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
151
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
152
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
153
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
154
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
155
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
156
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
157
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
158
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
159
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
160
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
161
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
162
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
163
+ var REACT_LAZY_TYPE2 = hasSymbol ? Symbol.for("react.lazy") : 60116;
164
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
165
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
166
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
167
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
168
+ function isValidElementType(type) {
169
+ return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
170
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE2 || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
171
+ }
172
+ function typeOf(object) {
173
+ if (typeof object === "object" && object !== null) {
174
+ var $$typeof = object.$$typeof;
175
+ switch ($$typeof) {
176
+ case REACT_ELEMENT_TYPE:
177
+ var type = object.type;
178
+ switch (type) {
179
+ case REACT_ASYNC_MODE_TYPE:
180
+ case REACT_CONCURRENT_MODE_TYPE:
181
+ case REACT_FRAGMENT_TYPE:
182
+ case REACT_PROFILER_TYPE:
183
+ case REACT_STRICT_MODE_TYPE:
184
+ case REACT_SUSPENSE_TYPE:
185
+ return type;
186
+ default:
187
+ var $$typeofType = type && type.$$typeof;
188
+ switch ($$typeofType) {
189
+ case REACT_CONTEXT_TYPE:
190
+ case REACT_FORWARD_REF_TYPE:
191
+ case REACT_LAZY_TYPE2:
192
+ case REACT_MEMO_TYPE:
193
+ case REACT_PROVIDER_TYPE:
194
+ return $$typeofType;
195
+ default:
196
+ return $$typeof;
197
+ }
198
+ }
199
+ case REACT_PORTAL_TYPE:
200
+ return $$typeof;
201
+ }
202
+ }
203
+ return void 0;
204
+ }
205
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
206
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
207
+ var ContextConsumer = REACT_CONTEXT_TYPE;
208
+ var ContextProvider = REACT_PROVIDER_TYPE;
209
+ var Element = REACT_ELEMENT_TYPE;
210
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
211
+ var Fragment4 = REACT_FRAGMENT_TYPE;
212
+ var Lazy = REACT_LAZY_TYPE2;
213
+ var Memo = REACT_MEMO_TYPE;
214
+ var Portal = REACT_PORTAL_TYPE;
215
+ var Profiler = REACT_PROFILER_TYPE;
216
+ var StrictMode = REACT_STRICT_MODE_TYPE;
217
+ var Suspense = REACT_SUSPENSE_TYPE;
218
+ var hasWarnedAboutDeprecatedIsAsyncMode = false;
219
+ function isAsyncMode(object) {
220
+ {
221
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
222
+ hasWarnedAboutDeprecatedIsAsyncMode = true;
223
+ console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
224
+ }
225
+ }
226
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
227
+ }
228
+ function isConcurrentMode(object) {
229
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
230
+ }
231
+ function isContextConsumer(object) {
232
+ return typeOf(object) === REACT_CONTEXT_TYPE;
233
+ }
234
+ function isContextProvider(object) {
235
+ return typeOf(object) === REACT_PROVIDER_TYPE;
236
+ }
237
+ function isElement(object) {
238
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
239
+ }
240
+ function isForwardRef(object) {
241
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
242
+ }
243
+ function isFragment(object) {
244
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
245
+ }
246
+ function isLazy(object) {
247
+ return typeOf(object) === REACT_LAZY_TYPE2;
248
+ }
249
+ function isMemo(object) {
250
+ return typeOf(object) === REACT_MEMO_TYPE;
251
+ }
252
+ function isPortal(object) {
253
+ return typeOf(object) === REACT_PORTAL_TYPE;
254
+ }
255
+ function isProfiler(object) {
256
+ return typeOf(object) === REACT_PROFILER_TYPE;
257
+ }
258
+ function isStrictMode(object) {
259
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
260
+ }
261
+ function isSuspense(object) {
262
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
263
+ }
264
+ exports$1.AsyncMode = AsyncMode;
265
+ exports$1.ConcurrentMode = ConcurrentMode;
266
+ exports$1.ContextConsumer = ContextConsumer;
267
+ exports$1.ContextProvider = ContextProvider;
268
+ exports$1.Element = Element;
269
+ exports$1.ForwardRef = ForwardRef;
270
+ exports$1.Fragment = Fragment4;
271
+ exports$1.Lazy = Lazy;
272
+ exports$1.Memo = Memo;
273
+ exports$1.Portal = Portal;
274
+ exports$1.Profiler = Profiler;
275
+ exports$1.StrictMode = StrictMode;
276
+ exports$1.Suspense = Suspense;
277
+ exports$1.isAsyncMode = isAsyncMode;
278
+ exports$1.isConcurrentMode = isConcurrentMode;
279
+ exports$1.isContextConsumer = isContextConsumer;
280
+ exports$1.isContextProvider = isContextProvider;
281
+ exports$1.isElement = isElement;
282
+ exports$1.isForwardRef = isForwardRef;
283
+ exports$1.isFragment = isFragment;
284
+ exports$1.isLazy = isLazy;
285
+ exports$1.isMemo = isMemo;
286
+ exports$1.isPortal = isPortal;
287
+ exports$1.isProfiler = isProfiler;
288
+ exports$1.isStrictMode = isStrictMode;
289
+ exports$1.isSuspense = isSuspense;
290
+ exports$1.isValidElementType = isValidElementType;
291
+ exports$1.typeOf = typeOf;
292
+ })();
293
+ }
294
+ }
295
+ });
296
+
297
+ // ../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js
298
+ var require_react_is = __commonJS({
299
+ "../../node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js"(exports$1, module) {
300
+ if (process.env.NODE_ENV === "production") {
301
+ module.exports = require_react_is_production_min();
302
+ } else {
303
+ module.exports = require_react_is_development();
304
+ }
305
+ }
306
+ });
307
+
308
+ // ../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js
309
+ var require_object_assign = __commonJS({
310
+ "../../node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js"(exports$1, module) {
311
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
312
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
313
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
314
+ function toObject(val) {
315
+ if (val === null || val === void 0) {
316
+ throw new TypeError("Object.assign cannot be called with null or undefined");
317
+ }
318
+ return Object(val);
319
+ }
320
+ function shouldUseNative() {
321
+ try {
322
+ if (!Object.assign) {
323
+ return false;
324
+ }
325
+ var test1 = new String("abc");
326
+ test1[5] = "de";
327
+ if (Object.getOwnPropertyNames(test1)[0] === "5") {
328
+ return false;
329
+ }
330
+ var test2 = {};
331
+ for (var i = 0; i < 10; i++) {
332
+ test2["_" + String.fromCharCode(i)] = i;
333
+ }
334
+ var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
335
+ return test2[n];
336
+ });
337
+ if (order2.join("") !== "0123456789") {
338
+ return false;
339
+ }
340
+ var test3 = {};
341
+ "abcdefghijklmnopqrst".split("").forEach(function(letter) {
342
+ test3[letter] = letter;
343
+ });
344
+ if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
345
+ return false;
346
+ }
347
+ return true;
348
+ } catch (err) {
349
+ return false;
350
+ }
351
+ }
352
+ module.exports = shouldUseNative() ? Object.assign : function(target, source) {
353
+ var from;
354
+ var to = toObject(target);
355
+ var symbols;
356
+ for (var s2 = 1; s2 < arguments.length; s2++) {
357
+ from = Object(arguments[s2]);
358
+ for (var key in from) {
359
+ if (hasOwnProperty.call(from, key)) {
360
+ to[key] = from[key];
361
+ }
362
+ }
363
+ if (getOwnPropertySymbols) {
364
+ symbols = getOwnPropertySymbols(from);
365
+ for (var i = 0; i < symbols.length; i++) {
366
+ if (propIsEnumerable.call(from, symbols[i])) {
367
+ to[symbols[i]] = from[symbols[i]];
368
+ }
369
+ }
370
+ }
371
+ }
372
+ return to;
373
+ };
374
+ }
375
+ });
376
+
377
+ // ../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js
378
+ var require_ReactPropTypesSecret = __commonJS({
379
+ "../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.js"(exports$1, module) {
380
+ var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
381
+ module.exports = ReactPropTypesSecret;
382
+ }
383
+ });
384
+
385
+ // ../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js
386
+ var require_has = __commonJS({
387
+ "../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.js"(exports$1, module) {
388
+ module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
389
+ }
390
+ });
391
+
392
+ // ../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js
393
+ var require_checkPropTypes = __commonJS({
394
+ "../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.js"(exports$1, module) {
395
+ var printWarning = function() {
396
+ };
397
+ if (process.env.NODE_ENV !== "production") {
398
+ ReactPropTypesSecret = require_ReactPropTypesSecret();
399
+ loggedTypeFailures = {};
400
+ has = require_has();
401
+ printWarning = function(text2) {
402
+ var message = "Warning: " + text2;
403
+ if (typeof console !== "undefined") {
404
+ console.error(message);
405
+ }
406
+ try {
407
+ throw new Error(message);
408
+ } catch (x2) {
409
+ }
410
+ };
411
+ }
412
+ var ReactPropTypesSecret;
413
+ var loggedTypeFailures;
414
+ var has;
415
+ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
416
+ if (process.env.NODE_ENV !== "production") {
417
+ for (var typeSpecName in typeSpecs) {
418
+ if (has(typeSpecs, typeSpecName)) {
419
+ var error;
420
+ try {
421
+ if (typeof typeSpecs[typeSpecName] !== "function") {
422
+ var err = Error(
423
+ (componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
424
+ );
425
+ err.name = "Invariant Violation";
426
+ throw err;
427
+ }
428
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
429
+ } catch (ex) {
430
+ error = ex;
431
+ }
432
+ if (error && !(error instanceof Error)) {
433
+ printWarning(
434
+ (componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
435
+ );
436
+ }
437
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
438
+ loggedTypeFailures[error.message] = true;
439
+ var stack = getStack ? getStack() : "";
440
+ printWarning(
441
+ "Failed " + location + " type: " + error.message + (stack != null ? stack : "")
442
+ );
443
+ }
444
+ }
445
+ }
446
+ }
447
+ }
448
+ checkPropTypes.resetWarningCache = function() {
449
+ if (process.env.NODE_ENV !== "production") {
450
+ loggedTypeFailures = {};
451
+ }
452
+ };
453
+ module.exports = checkPropTypes;
454
+ }
455
+ });
456
+
457
+ // ../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js
458
+ var require_factoryWithTypeCheckers = __commonJS({
459
+ "../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js"(exports$1, module) {
460
+ var ReactIs = require_react_is();
461
+ var assign = require_object_assign();
462
+ var ReactPropTypesSecret = require_ReactPropTypesSecret();
463
+ var has = require_has();
464
+ var checkPropTypes = require_checkPropTypes();
465
+ var printWarning = function() {
466
+ };
467
+ if (process.env.NODE_ENV !== "production") {
468
+ printWarning = function(text2) {
469
+ var message = "Warning: " + text2;
470
+ if (typeof console !== "undefined") {
471
+ console.error(message);
472
+ }
473
+ try {
474
+ throw new Error(message);
475
+ } catch (x2) {
476
+ }
477
+ };
478
+ }
479
+ function emptyFunctionThatReturnsNull() {
480
+ return null;
481
+ }
482
+ module.exports = function(isValidElement3, throwOnDirectAccess) {
483
+ var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
484
+ var FAUX_ITERATOR_SYMBOL = "@@iterator";
485
+ function getIteratorFn(maybeIterable) {
486
+ var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
487
+ if (typeof iteratorFn === "function") {
488
+ return iteratorFn;
489
+ }
490
+ }
491
+ var ANONYMOUS = "<<anonymous>>";
492
+ var ReactPropTypes = {
493
+ array: createPrimitiveTypeChecker("array"),
494
+ bigint: createPrimitiveTypeChecker("bigint"),
495
+ bool: createPrimitiveTypeChecker("boolean"),
496
+ func: createPrimitiveTypeChecker("function"),
497
+ number: createPrimitiveTypeChecker("number"),
498
+ object: createPrimitiveTypeChecker("object"),
499
+ string: createPrimitiveTypeChecker("string"),
500
+ symbol: createPrimitiveTypeChecker("symbol"),
501
+ any: createAnyTypeChecker(),
502
+ arrayOf: createArrayOfTypeChecker,
503
+ element: createElementTypeChecker(),
504
+ elementType: createElementTypeTypeChecker(),
505
+ instanceOf: createInstanceTypeChecker,
506
+ node: createNodeChecker(),
507
+ objectOf: createObjectOfTypeChecker,
508
+ oneOf: createEnumTypeChecker,
509
+ oneOfType: createUnionTypeChecker,
510
+ shape: createShapeTypeChecker,
511
+ exact: createStrictShapeTypeChecker
512
+ };
513
+ function is(x2, y) {
514
+ if (x2 === y) {
515
+ return x2 !== 0 || 1 / x2 === 1 / y;
516
+ } else {
517
+ return x2 !== x2 && y !== y;
518
+ }
519
+ }
520
+ function PropTypeError(message, data) {
521
+ this.message = message;
522
+ this.data = data && typeof data === "object" ? data : {};
523
+ this.stack = "";
524
+ }
525
+ PropTypeError.prototype = Error.prototype;
526
+ function createChainableTypeChecker(validate) {
527
+ if (process.env.NODE_ENV !== "production") {
528
+ var manualPropTypeCallCache = {};
529
+ var manualPropTypeWarningCount = 0;
530
+ }
531
+ function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
532
+ componentName = componentName || ANONYMOUS;
533
+ propFullName = propFullName || propName;
534
+ if (secret !== ReactPropTypesSecret) {
535
+ if (throwOnDirectAccess) {
536
+ var err = new Error(
537
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
538
+ );
539
+ err.name = "Invariant Violation";
540
+ throw err;
541
+ } else if (process.env.NODE_ENV !== "production" && typeof console !== "undefined") {
542
+ var cacheKey = componentName + ":" + propName;
543
+ if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
544
+ manualPropTypeWarningCount < 3) {
545
+ printWarning(
546
+ "You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
547
+ );
548
+ manualPropTypeCallCache[cacheKey] = true;
549
+ manualPropTypeWarningCount++;
550
+ }
551
+ }
552
+ }
553
+ if (props[propName] == null) {
554
+ if (isRequired) {
555
+ if (props[propName] === null) {
556
+ return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
557
+ }
558
+ return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
559
+ }
560
+ return null;
561
+ } else {
562
+ return validate(props, propName, componentName, location, propFullName);
563
+ }
564
+ }
565
+ var chainedCheckType = checkType.bind(null, false);
566
+ chainedCheckType.isRequired = checkType.bind(null, true);
567
+ return chainedCheckType;
568
+ }
569
+ function createPrimitiveTypeChecker(expectedType) {
570
+ function validate(props, propName, componentName, location, propFullName, secret) {
571
+ var propValue = props[propName];
572
+ var propType = getPropType(propValue);
573
+ if (propType !== expectedType) {
574
+ var preciseType = getPreciseType(propValue);
575
+ return new PropTypeError(
576
+ "Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."),
577
+ { expectedType }
578
+ );
579
+ }
580
+ return null;
581
+ }
582
+ return createChainableTypeChecker(validate);
583
+ }
584
+ function createAnyTypeChecker() {
585
+ return createChainableTypeChecker(emptyFunctionThatReturnsNull);
586
+ }
587
+ function createArrayOfTypeChecker(typeChecker) {
588
+ function validate(props, propName, componentName, location, propFullName) {
589
+ if (typeof typeChecker !== "function") {
590
+ return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
591
+ }
592
+ var propValue = props[propName];
593
+ if (!Array.isArray(propValue)) {
594
+ var propType = getPropType(propValue);
595
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
596
+ }
597
+ for (var i = 0; i < propValue.length; i++) {
598
+ var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
599
+ if (error instanceof Error) {
600
+ return error;
601
+ }
602
+ }
603
+ return null;
604
+ }
605
+ return createChainableTypeChecker(validate);
606
+ }
607
+ function createElementTypeChecker() {
608
+ function validate(props, propName, componentName, location, propFullName) {
609
+ var propValue = props[propName];
610
+ if (!isValidElement3(propValue)) {
611
+ var propType = getPropType(propValue);
612
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
613
+ }
614
+ return null;
615
+ }
616
+ return createChainableTypeChecker(validate);
617
+ }
618
+ function createElementTypeTypeChecker() {
619
+ function validate(props, propName, componentName, location, propFullName) {
620
+ var propValue = props[propName];
621
+ if (!ReactIs.isValidElementType(propValue)) {
622
+ var propType = getPropType(propValue);
623
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
624
+ }
625
+ return null;
626
+ }
627
+ return createChainableTypeChecker(validate);
628
+ }
629
+ function createInstanceTypeChecker(expectedClass) {
630
+ function validate(props, propName, componentName, location, propFullName) {
631
+ if (!(props[propName] instanceof expectedClass)) {
632
+ var expectedClassName = expectedClass.name || ANONYMOUS;
633
+ var actualClassName = getClassName(props[propName]);
634
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
635
+ }
636
+ return null;
637
+ }
638
+ return createChainableTypeChecker(validate);
639
+ }
640
+ function createEnumTypeChecker(expectedValues) {
641
+ if (!Array.isArray(expectedValues)) {
642
+ if (process.env.NODE_ENV !== "production") {
643
+ if (arguments.length > 1) {
644
+ printWarning(
645
+ "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
646
+ );
647
+ } else {
648
+ printWarning("Invalid argument supplied to oneOf, expected an array.");
649
+ }
650
+ }
651
+ return emptyFunctionThatReturnsNull;
652
+ }
653
+ function validate(props, propName, componentName, location, propFullName) {
654
+ var propValue = props[propName];
655
+ for (var i = 0; i < expectedValues.length; i++) {
656
+ if (is(propValue, expectedValues[i])) {
657
+ return null;
658
+ }
659
+ }
660
+ var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
661
+ var type = getPreciseType(value);
662
+ if (type === "symbol") {
663
+ return String(value);
664
+ }
665
+ return value;
666
+ });
667
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
668
+ }
669
+ return createChainableTypeChecker(validate);
670
+ }
671
+ function createObjectOfTypeChecker(typeChecker) {
672
+ function validate(props, propName, componentName, location, propFullName) {
673
+ if (typeof typeChecker !== "function") {
674
+ return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
675
+ }
676
+ var propValue = props[propName];
677
+ var propType = getPropType(propValue);
678
+ if (propType !== "object") {
679
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
680
+ }
681
+ for (var key in propValue) {
682
+ if (has(propValue, key)) {
683
+ var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
684
+ if (error instanceof Error) {
685
+ return error;
686
+ }
687
+ }
688
+ }
689
+ return null;
690
+ }
691
+ return createChainableTypeChecker(validate);
692
+ }
693
+ function createUnionTypeChecker(arrayOfTypeCheckers) {
694
+ if (!Array.isArray(arrayOfTypeCheckers)) {
695
+ process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
696
+ return emptyFunctionThatReturnsNull;
697
+ }
698
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
699
+ var checker = arrayOfTypeCheckers[i];
700
+ if (typeof checker !== "function") {
701
+ printWarning(
702
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."
703
+ );
704
+ return emptyFunctionThatReturnsNull;
705
+ }
706
+ }
707
+ function validate(props, propName, componentName, location, propFullName) {
708
+ var expectedTypes = [];
709
+ for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
710
+ var checker2 = arrayOfTypeCheckers[i2];
711
+ var checkerResult = checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
712
+ if (checkerResult == null) {
713
+ return null;
714
+ }
715
+ if (checkerResult.data && has(checkerResult.data, "expectedType")) {
716
+ expectedTypes.push(checkerResult.data.expectedType);
717
+ }
718
+ }
719
+ var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
720
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
721
+ }
722
+ return createChainableTypeChecker(validate);
723
+ }
724
+ function createNodeChecker() {
725
+ function validate(props, propName, componentName, location, propFullName) {
726
+ if (!isNode(props[propName])) {
727
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
728
+ }
729
+ return null;
730
+ }
731
+ return createChainableTypeChecker(validate);
732
+ }
733
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
734
+ return new PropTypeError(
735
+ (componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`."
736
+ );
737
+ }
738
+ function createShapeTypeChecker(shapeTypes) {
739
+ function validate(props, propName, componentName, location, propFullName) {
740
+ var propValue = props[propName];
741
+ var propType = getPropType(propValue);
742
+ if (propType !== "object") {
743
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
744
+ }
745
+ for (var key in shapeTypes) {
746
+ var checker = shapeTypes[key];
747
+ if (typeof checker !== "function") {
748
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
749
+ }
750
+ var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
751
+ if (error) {
752
+ return error;
753
+ }
754
+ }
755
+ return null;
756
+ }
757
+ return createChainableTypeChecker(validate);
758
+ }
759
+ function createStrictShapeTypeChecker(shapeTypes) {
760
+ function validate(props, propName, componentName, location, propFullName) {
761
+ var propValue = props[propName];
762
+ var propType = getPropType(propValue);
763
+ if (propType !== "object") {
764
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
765
+ }
766
+ var allKeys = assign({}, props[propName], shapeTypes);
767
+ for (var key in allKeys) {
768
+ var checker = shapeTypes[key];
769
+ if (has(shapeTypes, key) && typeof checker !== "function") {
770
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
771
+ }
772
+ if (!checker) {
773
+ return new PropTypeError(
774
+ "Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ")
775
+ );
776
+ }
777
+ var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
778
+ if (error) {
779
+ return error;
780
+ }
781
+ }
782
+ return null;
783
+ }
784
+ return createChainableTypeChecker(validate);
785
+ }
786
+ function isNode(propValue) {
787
+ switch (typeof propValue) {
788
+ case "number":
789
+ case "string":
790
+ case "undefined":
791
+ return true;
792
+ case "boolean":
793
+ return !propValue;
794
+ case "object":
795
+ if (Array.isArray(propValue)) {
796
+ return propValue.every(isNode);
797
+ }
798
+ if (propValue === null || isValidElement3(propValue)) {
799
+ return true;
800
+ }
801
+ var iteratorFn = getIteratorFn(propValue);
802
+ if (iteratorFn) {
803
+ var iterator = iteratorFn.call(propValue);
804
+ var step;
805
+ if (iteratorFn !== propValue.entries) {
806
+ while (!(step = iterator.next()).done) {
807
+ if (!isNode(step.value)) {
808
+ return false;
809
+ }
810
+ }
811
+ } else {
812
+ while (!(step = iterator.next()).done) {
813
+ var entry = step.value;
814
+ if (entry) {
815
+ if (!isNode(entry[1])) {
816
+ return false;
817
+ }
818
+ }
819
+ }
820
+ }
821
+ } else {
822
+ return false;
823
+ }
824
+ return true;
825
+ default:
826
+ return false;
827
+ }
828
+ }
829
+ function isSymbol(propType, propValue) {
830
+ if (propType === "symbol") {
831
+ return true;
832
+ }
833
+ if (!propValue) {
834
+ return false;
835
+ }
836
+ if (propValue["@@toStringTag"] === "Symbol") {
837
+ return true;
838
+ }
839
+ if (typeof Symbol === "function" && propValue instanceof Symbol) {
840
+ return true;
841
+ }
842
+ return false;
843
+ }
844
+ function getPropType(propValue) {
845
+ var propType = typeof propValue;
846
+ if (Array.isArray(propValue)) {
847
+ return "array";
848
+ }
849
+ if (propValue instanceof RegExp) {
850
+ return "object";
851
+ }
852
+ if (isSymbol(propType, propValue)) {
853
+ return "symbol";
854
+ }
855
+ return propType;
856
+ }
857
+ function getPreciseType(propValue) {
858
+ if (typeof propValue === "undefined" || propValue === null) {
859
+ return "" + propValue;
860
+ }
861
+ var propType = getPropType(propValue);
862
+ if (propType === "object") {
863
+ if (propValue instanceof Date) {
864
+ return "date";
865
+ } else if (propValue instanceof RegExp) {
866
+ return "regexp";
867
+ }
868
+ }
869
+ return propType;
870
+ }
871
+ function getPostfixForTypeWarning(value) {
872
+ var type = getPreciseType(value);
873
+ switch (type) {
874
+ case "array":
875
+ case "object":
876
+ return "an " + type;
877
+ case "boolean":
878
+ case "date":
879
+ case "regexp":
880
+ return "a " + type;
881
+ default:
882
+ return type;
883
+ }
884
+ }
885
+ function getClassName(propValue) {
886
+ if (!propValue.constructor || !propValue.constructor.name) {
887
+ return ANONYMOUS;
888
+ }
889
+ return propValue.constructor.name;
890
+ }
891
+ ReactPropTypes.checkPropTypes = checkPropTypes;
892
+ ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
893
+ ReactPropTypes.PropTypes = ReactPropTypes;
894
+ return ReactPropTypes;
895
+ };
896
+ }
897
+ });
898
+
899
+ // ../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js
900
+ var require_factoryWithThrowingShims = __commonJS({
901
+ "../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.js"(exports$1, module) {
902
+ var ReactPropTypesSecret = require_ReactPropTypesSecret();
903
+ function emptyFunction() {
904
+ }
905
+ function emptyFunctionWithReset() {
906
+ }
907
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
908
+ module.exports = function() {
909
+ function shim(props, propName, componentName, location, propFullName, secret) {
910
+ if (secret === ReactPropTypesSecret) {
911
+ return;
912
+ }
913
+ var err = new Error(
914
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
915
+ );
916
+ err.name = "Invariant Violation";
917
+ throw err;
918
+ }
919
+ shim.isRequired = shim;
920
+ function getShim() {
921
+ return shim;
922
+ }
923
+ var ReactPropTypes = {
924
+ array: shim,
925
+ bigint: shim,
926
+ bool: shim,
927
+ func: shim,
928
+ number: shim,
929
+ object: shim,
930
+ string: shim,
931
+ symbol: shim,
932
+ any: shim,
933
+ arrayOf: getShim,
934
+ element: shim,
935
+ elementType: shim,
936
+ instanceOf: getShim,
937
+ node: shim,
938
+ objectOf: getShim,
939
+ oneOf: getShim,
940
+ oneOfType: getShim,
941
+ shape: getShim,
942
+ exact: getShim,
943
+ checkPropTypes: emptyFunctionWithReset,
944
+ resetWarningCache: emptyFunction
945
+ };
946
+ ReactPropTypes.PropTypes = ReactPropTypes;
947
+ return ReactPropTypes;
948
+ };
949
+ }
950
+ });
951
+
952
+ // ../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js
953
+ var require_prop_types = __commonJS({
954
+ "../../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js"(exports$1, module) {
955
+ if (process.env.NODE_ENV !== "production") {
956
+ ReactIs = require_react_is();
957
+ throwOnDirectAccess = true;
958
+ module.exports = require_factoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
959
+ } else {
960
+ module.exports = require_factoryWithThrowingShims()();
961
+ }
962
+ var ReactIs;
963
+ var throwOnDirectAccess;
964
+ }
965
+ });
966
+
967
+ // ../../node_modules/.pnpm/@fortawesome+fontawesome-svg-core@6.7.2/node_modules/@fortawesome/fontawesome-svg-core/package.json
968
+ var require_package = __commonJS({
969
+ "../../node_modules/.pnpm/@fortawesome+fontawesome-svg-core@6.7.2/node_modules/@fortawesome/fontawesome-svg-core/package.json"(exports$1, module) {
970
+ module.exports = {
971
+ description: "The iconic font, CSS, and SVG framework",
972
+ keywords: [
973
+ "font",
974
+ "awesome",
975
+ "fontawesome",
976
+ "icon",
977
+ "svg",
978
+ "bootstrap"
979
+ ],
980
+ homepage: "https://fontawesome.com",
981
+ bugs: {
982
+ url: "https://github.com/FortAwesome/Font-Awesome/issues"
983
+ },
984
+ author: "The Font Awesome Team (https://github.com/orgs/FortAwesome/people)",
985
+ repository: {
986
+ type: "git",
987
+ url: "https://github.com/FortAwesome/Font-Awesome"
988
+ },
989
+ engines: {
990
+ node: ">=6"
991
+ },
992
+ dependencies: {
993
+ "@fortawesome/fontawesome-common-types": "6.7.2"
994
+ },
995
+ version: "6.7.2",
996
+ name: "@fortawesome/fontawesome-svg-core",
997
+ main: "index.js",
998
+ module: "index.mjs",
999
+ "jsnext:main": "index.mjs",
1000
+ style: "styles.css",
1001
+ license: "MIT",
1002
+ types: "./index.d.ts",
1003
+ exports: {
1004
+ ".": {
1005
+ types: "./index.d.ts",
1006
+ module: "./index.mjs",
1007
+ import: "./index.mjs",
1008
+ require: "./index.js",
1009
+ style: "./styles.css",
1010
+ default: "./index.js"
1011
+ },
1012
+ "./index": {
1013
+ types: "./index.d.ts",
1014
+ module: "./index.mjs",
1015
+ import: "./index.mjs",
1016
+ require: "./index.js",
1017
+ default: "./index.js"
1018
+ },
1019
+ "./index.js": {
1020
+ types: "./index.d.ts",
1021
+ module: "./index.mjs",
1022
+ import: "./index.mjs",
1023
+ require: "./index.js",
1024
+ default: "./index.js"
1025
+ },
1026
+ "./plugins": {
1027
+ types: "./index.d.ts",
1028
+ module: "./plugins.mjs",
1029
+ import: "./plugins.mjs",
1030
+ default: "./plugins.mjs"
1031
+ },
1032
+ "./import.macro": "./import.macro.js",
1033
+ "./import.macro.js": "./import.macro.js",
1034
+ "./styles": "./styles.css",
1035
+ "./styles.css": "./styles.css",
1036
+ "./package.json": "./package.json"
1037
+ },
1038
+ sideEffects: [
1039
+ "./index.js",
1040
+ "./index.mjs",
1041
+ "./styles.css"
1042
+ ]
1043
+ };
1044
+ }
1045
+ });
3
1046
 
4
1047
  // src/components/slots/SlotElements.tsx
5
1048
  var SlotElements = (props) => {
@@ -37,6 +1080,9 @@ function composeRefs(...refs) {
37
1080
  }
38
1081
  };
39
1082
  }
1083
+ function useComposedRefs(...refs) {
1084
+ return React3.useCallback(composeRefs(...refs), refs);
1085
+ }
40
1086
  var REACT_LAZY_TYPE = Symbol.for("react.lazy");
41
1087
  var use = React3[" use ".trim().toString()];
42
1088
  function isPromiseLike(value) {
@@ -137,26 +1183,26 @@ function getElementRef(element) {
137
1183
 
138
1184
  // ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
139
1185
  function r(e) {
140
- var t, f, n = "";
1186
+ var t2, f, n = "";
141
1187
  if ("string" == typeof e || "number" == typeof e) n += e;
142
1188
  else if ("object" == typeof e) if (Array.isArray(e)) {
143
- var o = e.length;
144
- for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
1189
+ var o2 = e.length;
1190
+ for (t2 = 0; t2 < o2; t2++) e[t2] && (f = r(e[t2])) && (n && (n += " "), n += f);
145
1191
  } else for (f in e) e[f] && (n && (n += " "), n += f);
146
1192
  return n;
147
1193
  }
148
1194
  function clsx() {
149
- for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
1195
+ for (var e, t2, f = 0, n = "", o2 = arguments.length; f < o2; f++) (e = arguments[f]) && (t2 = r(e)) && (n && (n += " "), n += t2);
150
1196
  return n;
151
1197
  }
152
1198
 
153
1199
  // ../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs
154
1200
  var falsyToString = (value) => typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
155
1201
  var cx = clsx;
156
- var cva = (base, config) => (props) => {
1202
+ var cva = (base, config2) => (props) => {
157
1203
  var _config_compoundVariants;
158
- if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
159
- const { variants, defaultVariants } = config;
1204
+ if ((config2 === null || config2 === void 0 ? void 0 : config2.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
1205
+ const { variants, defaultVariants } = config2;
160
1206
  const getVariantClassNames = Object.keys(variants).map((variant) => {
161
1207
  const variantProp = props === null || props === void 0 ? void 0 : props[variant];
162
1208
  const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
@@ -172,7 +1218,7 @@ var cva = (base, config) => (props) => {
172
1218
  acc[key] = value;
173
1219
  return acc;
174
1220
  }, {});
175
- const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
1221
+ const getCompoundVariantClassNames = config2 === null || config2 === void 0 ? void 0 : (_config_compoundVariants = config2.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param) => {
176
1222
  let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
177
1223
  return Object.entries(compoundVariantOptions).every((param2) => {
178
1224
  let [key, value] = param2;
@@ -215,12 +1261,12 @@ var createClassPartObject = (nextPart = /* @__PURE__ */ new Map(), validators =
215
1261
  var CLASS_PART_SEPARATOR = "-";
216
1262
  var EMPTY_CONFLICTS = [];
217
1263
  var ARBITRARY_PROPERTY_PREFIX = "arbitrary..";
218
- var createClassGroupUtils = (config) => {
219
- const classMap = createClassMap(config);
1264
+ var createClassGroupUtils = (config2) => {
1265
+ const classMap = createClassMap(config2);
220
1266
  const {
221
1267
  conflictingClassGroups,
222
1268
  conflictingClassGroupModifiers
223
- } = config;
1269
+ } = config2;
224
1270
  const getClassGroupId = (className) => {
225
1271
  if (className.startsWith("[") && className.endsWith("]")) {
226
1272
  return getGroupIdForArbitraryProperty(className);
@@ -279,11 +1325,11 @@ var getGroupIdForArbitraryProperty = (className) => className.slice(1, -1).index
279
1325
  const property = content.slice(0, colonIndex);
280
1326
  return property ? ARBITRARY_PROPERTY_PREFIX + property : void 0;
281
1327
  })();
282
- var createClassMap = (config) => {
1328
+ var createClassMap = (config2) => {
283
1329
  const {
284
1330
  theme,
285
1331
  classGroups
286
- } = config;
1332
+ } = config2;
287
1333
  return processClassGroups(classGroups, theme);
288
1334
  };
289
1335
  var processClassGroups = (classGroups, theme) => {
@@ -400,11 +1446,11 @@ var createResultObject = (modifiers, hasImportantModifier, baseClassName, maybeP
400
1446
  maybePostfixModifierPosition,
401
1447
  isExternal
402
1448
  });
403
- var createParseClassName = (config) => {
1449
+ var createParseClassName = (config2) => {
404
1450
  const {
405
1451
  prefix,
406
1452
  experimentalParseClassName
407
- } = config;
1453
+ } = config2;
408
1454
  let parseClassName = (className) => {
409
1455
  const modifiers = [];
410
1456
  let bracketDepth = 0;
@@ -463,9 +1509,9 @@ var createParseClassName = (config) => {
463
1509
  }
464
1510
  return parseClassName;
465
1511
  };
466
- var createSortModifiers = (config) => {
1512
+ var createSortModifiers = (config2) => {
467
1513
  const modifierWeights = /* @__PURE__ */ new Map();
468
- config.orderSensitiveModifiers.forEach((mod, index) => {
1514
+ config2.orderSensitiveModifiers.forEach((mod, index) => {
469
1515
  modifierWeights.set(mod, 1e6 + index);
470
1516
  });
471
1517
  return (modifiers) => {
@@ -493,14 +1539,14 @@ var createSortModifiers = (config) => {
493
1539
  return result;
494
1540
  };
495
1541
  };
496
- var createConfigUtils = (config) => ({
497
- cache: createLruCache(config.cacheSize),
498
- parseClassName: createParseClassName(config),
499
- sortModifiers: createSortModifiers(config),
500
- ...createClassGroupUtils(config)
1542
+ var createConfigUtils = (config2) => ({
1543
+ cache: createLruCache(config2.cacheSize),
1544
+ parseClassName: createParseClassName(config2),
1545
+ sortModifiers: createSortModifiers(config2),
1546
+ ...createClassGroupUtils(config2)
501
1547
  });
502
1548
  var SPLIT_CLASSES_REGEX = /\s+/;
503
- var mergeClassList = (classList, configUtils) => {
1549
+ var mergeClassList = (classList2, configUtils) => {
504
1550
  const {
505
1551
  parseClassName,
506
1552
  getClassGroupId,
@@ -508,7 +1554,7 @@ var mergeClassList = (classList, configUtils) => {
508
1554
  sortModifiers
509
1555
  } = configUtils;
510
1556
  const classGroupsInConflict = [];
511
- const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
1557
+ const classNames = classList2.trim().split(SPLIT_CLASSES_REGEX);
512
1558
  let result = "";
513
1559
  for (let index = classNames.length - 1; index >= 0; index -= 1) {
514
1560
  const originalClassName = classNames[index];
@@ -589,21 +1635,21 @@ var createTailwindMerge = (createConfigFirst, ...createConfigRest) => {
589
1635
  let cacheGet;
590
1636
  let cacheSet;
591
1637
  let functionToCall;
592
- const initTailwindMerge = (classList) => {
593
- const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
594
- configUtils = createConfigUtils(config);
1638
+ const initTailwindMerge = (classList2) => {
1639
+ const config2 = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
1640
+ configUtils = createConfigUtils(config2);
595
1641
  cacheGet = configUtils.cache.get;
596
1642
  cacheSet = configUtils.cache.set;
597
1643
  functionToCall = tailwindMerge;
598
- return tailwindMerge(classList);
1644
+ return tailwindMerge(classList2);
599
1645
  };
600
- const tailwindMerge = (classList) => {
601
- const cachedResult = cacheGet(classList);
1646
+ const tailwindMerge = (classList2) => {
1647
+ const cachedResult = cacheGet(classList2);
602
1648
  if (cachedResult) {
603
1649
  return cachedResult;
604
1650
  }
605
- const result = mergeClassList(classList, configUtils);
606
- cacheSet(classList, result);
1651
+ const result = mergeClassList(classList2, configUtils);
1652
+ cacheSet(classList2, result);
607
1653
  return result;
608
1654
  };
609
1655
  functionToCall = initTailwindMerge;
@@ -3257,7 +4303,3736 @@ var ExportManager = (props) => {
3257
4303
  const { slotId } = props;
3258
4304
  return /* @__PURE__ */ React.createElement(Button, { variant: "outline", size: "sm" }, "Manage Exports");
3259
4305
  };
4306
+ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
4307
+ return function handleEvent(event) {
4308
+ originalEventHandler?.(event);
4309
+ if (checkForDefaultPrevented === false || !event.defaultPrevented) {
4310
+ return ourEventHandler?.(event);
4311
+ }
4312
+ };
4313
+ }
4314
+ function createContextScope(scopeName, createContextScopeDeps = []) {
4315
+ let defaultContexts = [];
4316
+ function createContext3(rootComponentName, defaultContext) {
4317
+ const BaseContext = React3.createContext(defaultContext);
4318
+ const index = defaultContexts.length;
4319
+ defaultContexts = [...defaultContexts, defaultContext];
4320
+ const Provider = (props) => {
4321
+ const { scope, children, ...context } = props;
4322
+ const Context = scope?.[scopeName]?.[index] || BaseContext;
4323
+ const value = React3.useMemo(() => context, Object.values(context));
4324
+ return /* @__PURE__ */ jsx(Context.Provider, { value, children });
4325
+ };
4326
+ Provider.displayName = rootComponentName + "Provider";
4327
+ function useContext2(consumerName, scope) {
4328
+ const Context = scope?.[scopeName]?.[index] || BaseContext;
4329
+ const context = React3.useContext(Context);
4330
+ if (context) return context;
4331
+ if (defaultContext !== void 0) return defaultContext;
4332
+ throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
4333
+ }
4334
+ return [Provider, useContext2];
4335
+ }
4336
+ const createScope = () => {
4337
+ const scopeContexts = defaultContexts.map((defaultContext) => {
4338
+ return React3.createContext(defaultContext);
4339
+ });
4340
+ return function useScope(scope) {
4341
+ const contexts = scope?.[scopeName] || scopeContexts;
4342
+ return React3.useMemo(
4343
+ () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),
4344
+ [scope, contexts]
4345
+ );
4346
+ };
4347
+ };
4348
+ createScope.scopeName = scopeName;
4349
+ return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];
4350
+ }
4351
+ function composeContextScopes(...scopes) {
4352
+ const baseScope = scopes[0];
4353
+ if (scopes.length === 1) return baseScope;
4354
+ const createScope = () => {
4355
+ const scopeHooks = scopes.map((createScope2) => ({
4356
+ useScope: createScope2(),
4357
+ scopeName: createScope2.scopeName
4358
+ }));
4359
+ return function useComposedScopes(overrideScopes) {
4360
+ const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {
4361
+ const scopeProps = useScope(overrideScopes);
4362
+ const currentScope = scopeProps[`__scope${scopeName}`];
4363
+ return { ...nextScopes2, ...currentScope };
4364
+ }, {});
4365
+ return React3.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
4366
+ };
4367
+ };
4368
+ createScope.scopeName = baseScope.scopeName;
4369
+ return createScope;
4370
+ }
4371
+ var useLayoutEffect2 = globalThis?.document ? React3.useLayoutEffect : () => {
4372
+ };
4373
+ var useInsertionEffect = React3[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
4374
+ function useControllableState({
4375
+ prop,
4376
+ defaultProp,
4377
+ onChange: onChange2 = () => {
4378
+ },
4379
+ caller
4380
+ }) {
4381
+ const [uncontrolledProp, setUncontrolledProp, onChangeRef] = useUncontrolledState({
4382
+ defaultProp,
4383
+ onChange: onChange2
4384
+ });
4385
+ const isControlled = prop !== void 0;
4386
+ const value = isControlled ? prop : uncontrolledProp;
4387
+ {
4388
+ const isControlledRef = React3.useRef(prop !== void 0);
4389
+ React3.useEffect(() => {
4390
+ const wasControlled = isControlledRef.current;
4391
+ if (wasControlled !== isControlled) {
4392
+ const from = wasControlled ? "controlled" : "uncontrolled";
4393
+ const to = isControlled ? "controlled" : "uncontrolled";
4394
+ console.warn(
4395
+ `${caller} is changing from ${from} to ${to}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
4396
+ );
4397
+ }
4398
+ isControlledRef.current = isControlled;
4399
+ }, [isControlled, caller]);
4400
+ }
4401
+ const setValue = React3.useCallback(
4402
+ (nextValue) => {
4403
+ if (isControlled) {
4404
+ const value2 = isFunction(nextValue) ? nextValue(prop) : nextValue;
4405
+ if (value2 !== prop) {
4406
+ onChangeRef.current?.(value2);
4407
+ }
4408
+ } else {
4409
+ setUncontrolledProp(nextValue);
4410
+ }
4411
+ },
4412
+ [isControlled, prop, setUncontrolledProp, onChangeRef]
4413
+ );
4414
+ return [value, setValue];
4415
+ }
4416
+ function useUncontrolledState({
4417
+ defaultProp,
4418
+ onChange: onChange2
4419
+ }) {
4420
+ const [value, setValue] = React3.useState(defaultProp);
4421
+ const prevValueRef = React3.useRef(value);
4422
+ const onChangeRef = React3.useRef(onChange2);
4423
+ useInsertionEffect(() => {
4424
+ onChangeRef.current = onChange2;
4425
+ }, [onChange2]);
4426
+ React3.useEffect(() => {
4427
+ if (prevValueRef.current !== value) {
4428
+ onChangeRef.current?.(value);
4429
+ prevValueRef.current = value;
4430
+ }
4431
+ }, [value, prevValueRef]);
4432
+ return [value, setValue, onChangeRef];
4433
+ }
4434
+ function isFunction(value) {
4435
+ return typeof value === "function";
4436
+ }
4437
+ function usePrevious(value) {
4438
+ const ref = React3.useRef({ value, previous: value });
4439
+ return React3.useMemo(() => {
4440
+ if (ref.current.value !== value) {
4441
+ ref.current.previous = ref.current.value;
4442
+ ref.current.value = value;
4443
+ }
4444
+ return ref.current.previous;
4445
+ }, [value]);
4446
+ }
4447
+ function useSize(element) {
4448
+ const [size, setSize] = React3.useState(void 0);
4449
+ useLayoutEffect2(() => {
4450
+ if (element) {
4451
+ setSize({ width: element.offsetWidth, height: element.offsetHeight });
4452
+ const resizeObserver = new ResizeObserver((entries) => {
4453
+ if (!Array.isArray(entries)) {
4454
+ return;
4455
+ }
4456
+ if (!entries.length) {
4457
+ return;
4458
+ }
4459
+ const entry = entries[0];
4460
+ let width;
4461
+ let height;
4462
+ if ("borderBoxSize" in entry) {
4463
+ const borderSizeEntry = entry["borderBoxSize"];
4464
+ const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;
4465
+ width = borderSize["inlineSize"];
4466
+ height = borderSize["blockSize"];
4467
+ } else {
4468
+ width = element.offsetWidth;
4469
+ height = element.offsetHeight;
4470
+ }
4471
+ setSize({ width, height });
4472
+ });
4473
+ resizeObserver.observe(element, { box: "border-box" });
4474
+ return () => resizeObserver.unobserve(element);
4475
+ } else {
4476
+ setSize(void 0);
4477
+ }
4478
+ }, [element]);
4479
+ return size;
4480
+ }
4481
+ // @__NO_SIDE_EFFECTS__
4482
+ function createSlot2(ownerName) {
4483
+ const SlotClone = /* @__PURE__ */ createSlotClone2(ownerName);
4484
+ const Slot2 = React3.forwardRef((props, forwardedRef) => {
4485
+ const { children, ...slotProps } = props;
4486
+ const childrenArray = React3.Children.toArray(children);
4487
+ const slottable = childrenArray.find(isSlottable2);
4488
+ if (slottable) {
4489
+ const newElement = slottable.props.children;
4490
+ const newChildren = childrenArray.map((child) => {
4491
+ if (child === slottable) {
4492
+ if (React3.Children.count(newElement) > 1) return React3.Children.only(null);
4493
+ return React3.isValidElement(newElement) ? newElement.props.children : null;
4494
+ } else {
4495
+ return child;
4496
+ }
4497
+ });
4498
+ return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React3.isValidElement(newElement) ? React3.cloneElement(newElement, void 0, newChildren) : null });
4499
+ }
4500
+ return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
4501
+ });
4502
+ Slot2.displayName = `${ownerName}.Slot`;
4503
+ return Slot2;
4504
+ }
4505
+ // @__NO_SIDE_EFFECTS__
4506
+ function createSlotClone2(ownerName) {
4507
+ const SlotClone = React3.forwardRef((props, forwardedRef) => {
4508
+ const { children, ...slotProps } = props;
4509
+ if (React3.isValidElement(children)) {
4510
+ const childrenRef = getElementRef2(children);
4511
+ const props2 = mergeProps2(slotProps, children.props);
4512
+ if (children.type !== React3.Fragment) {
4513
+ props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
4514
+ }
4515
+ return React3.cloneElement(children, props2);
4516
+ }
4517
+ return React3.Children.count(children) > 1 ? React3.Children.only(null) : null;
4518
+ });
4519
+ SlotClone.displayName = `${ownerName}.SlotClone`;
4520
+ return SlotClone;
4521
+ }
4522
+ var SLOTTABLE_IDENTIFIER2 = Symbol("radix.slottable");
4523
+ function isSlottable2(child) {
4524
+ return React3.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER2;
4525
+ }
4526
+ function mergeProps2(slotProps, childProps) {
4527
+ const overrideProps = { ...childProps };
4528
+ for (const propName in childProps) {
4529
+ const slotPropValue = slotProps[propName];
4530
+ const childPropValue = childProps[propName];
4531
+ const isHandler = /^on[A-Z]/.test(propName);
4532
+ if (isHandler) {
4533
+ if (slotPropValue && childPropValue) {
4534
+ overrideProps[propName] = (...args) => {
4535
+ const result = childPropValue(...args);
4536
+ slotPropValue(...args);
4537
+ return result;
4538
+ };
4539
+ } else if (slotPropValue) {
4540
+ overrideProps[propName] = slotPropValue;
4541
+ }
4542
+ } else if (propName === "style") {
4543
+ overrideProps[propName] = { ...slotPropValue, ...childPropValue };
4544
+ } else if (propName === "className") {
4545
+ overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
4546
+ }
4547
+ }
4548
+ return { ...slotProps, ...overrideProps };
4549
+ }
4550
+ function getElementRef2(element) {
4551
+ let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
4552
+ let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
4553
+ if (mayWarn) {
4554
+ return element.ref;
4555
+ }
4556
+ getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
4557
+ mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
4558
+ if (mayWarn) {
4559
+ return element.props.ref;
4560
+ }
4561
+ return element.props.ref || element.ref;
4562
+ }
4563
+ var NODES = [
4564
+ "a",
4565
+ "button",
4566
+ "div",
4567
+ "form",
4568
+ "h2",
4569
+ "h3",
4570
+ "img",
4571
+ "input",
4572
+ "label",
4573
+ "li",
4574
+ "nav",
4575
+ "ol",
4576
+ "p",
4577
+ "select",
4578
+ "span",
4579
+ "svg",
4580
+ "ul"
4581
+ ];
4582
+ var Primitive = NODES.reduce((primitive, node) => {
4583
+ const Slot2 = createSlot2(`Primitive.${node}`);
4584
+ const Node2 = React3.forwardRef((props, forwardedRef) => {
4585
+ const { asChild, ...primitiveProps } = props;
4586
+ const Comp = asChild ? Slot2 : node;
4587
+ if (typeof window !== "undefined") {
4588
+ window[Symbol.for("radix-ui")] = true;
4589
+ }
4590
+ return /* @__PURE__ */ jsx(Comp, { ...primitiveProps, ref: forwardedRef });
4591
+ });
4592
+ Node2.displayName = `Primitive.${node}`;
4593
+ return { ...primitive, [node]: Node2 };
4594
+ }, {});
4595
+ var SWITCH_NAME = "Switch";
4596
+ var [createSwitchContext] = createContextScope(SWITCH_NAME);
4597
+ var [SwitchProvider, useSwitchContext] = createSwitchContext(SWITCH_NAME);
4598
+ var Switch = React3.forwardRef(
4599
+ (props, forwardedRef) => {
4600
+ const {
4601
+ __scopeSwitch,
4602
+ name,
4603
+ checked: checkedProp,
4604
+ defaultChecked,
4605
+ required,
4606
+ disabled: disabled2,
4607
+ value = "on",
4608
+ onCheckedChange,
4609
+ form,
4610
+ ...switchProps
4611
+ } = props;
4612
+ const [button, setButton] = React3.useState(null);
4613
+ const composedRefs = useComposedRefs(forwardedRef, (node) => setButton(node));
4614
+ const hasConsumerStoppedPropagationRef = React3.useRef(false);
4615
+ const isFormControl = button ? form || !!button.closest("form") : true;
4616
+ const [checked, setChecked] = useControllableState({
4617
+ prop: checkedProp,
4618
+ defaultProp: defaultChecked ?? false,
4619
+ onChange: onCheckedChange,
4620
+ caller: SWITCH_NAME
4621
+ });
4622
+ return /* @__PURE__ */ jsxs(SwitchProvider, { scope: __scopeSwitch, checked, disabled: disabled2, children: [
4623
+ /* @__PURE__ */ jsx(
4624
+ Primitive.button,
4625
+ {
4626
+ type: "button",
4627
+ role: "switch",
4628
+ "aria-checked": checked,
4629
+ "aria-required": required,
4630
+ "data-state": getState(checked),
4631
+ "data-disabled": disabled2 ? "" : void 0,
4632
+ disabled: disabled2,
4633
+ value,
4634
+ ...switchProps,
4635
+ ref: composedRefs,
4636
+ onClick: composeEventHandlers(props.onClick, (event) => {
4637
+ setChecked((prevChecked) => !prevChecked);
4638
+ if (isFormControl) {
4639
+ hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();
4640
+ if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();
4641
+ }
4642
+ })
4643
+ }
4644
+ ),
4645
+ isFormControl && /* @__PURE__ */ jsx(
4646
+ SwitchBubbleInput,
4647
+ {
4648
+ control: button,
4649
+ bubbles: !hasConsumerStoppedPropagationRef.current,
4650
+ name,
4651
+ value,
4652
+ checked,
4653
+ required,
4654
+ disabled: disabled2,
4655
+ form,
4656
+ style: { transform: "translateX(-100%)" }
4657
+ }
4658
+ )
4659
+ ] });
4660
+ }
4661
+ );
4662
+ Switch.displayName = SWITCH_NAME;
4663
+ var THUMB_NAME = "SwitchThumb";
4664
+ var SwitchThumb = React3.forwardRef(
4665
+ (props, forwardedRef) => {
4666
+ const { __scopeSwitch, ...thumbProps } = props;
4667
+ const context = useSwitchContext(THUMB_NAME, __scopeSwitch);
4668
+ return /* @__PURE__ */ jsx(
4669
+ Primitive.span,
4670
+ {
4671
+ "data-state": getState(context.checked),
4672
+ "data-disabled": context.disabled ? "" : void 0,
4673
+ ...thumbProps,
4674
+ ref: forwardedRef
4675
+ }
4676
+ );
4677
+ }
4678
+ );
4679
+ SwitchThumb.displayName = THUMB_NAME;
4680
+ var BUBBLE_INPUT_NAME = "SwitchBubbleInput";
4681
+ var SwitchBubbleInput = React3.forwardRef(
4682
+ ({
4683
+ __scopeSwitch,
4684
+ control,
4685
+ checked,
4686
+ bubbles = true,
4687
+ ...props
4688
+ }, forwardedRef) => {
4689
+ const ref = React3.useRef(null);
4690
+ const composedRefs = useComposedRefs(ref, forwardedRef);
4691
+ const prevChecked = usePrevious(checked);
4692
+ const controlSize = useSize(control);
4693
+ React3.useEffect(() => {
4694
+ const input = ref.current;
4695
+ if (!input) return;
4696
+ const inputProto = window.HTMLInputElement.prototype;
4697
+ const descriptor = Object.getOwnPropertyDescriptor(
4698
+ inputProto,
4699
+ "checked"
4700
+ );
4701
+ const setChecked = descriptor.set;
4702
+ if (prevChecked !== checked && setChecked) {
4703
+ const event = new Event("click", { bubbles });
4704
+ setChecked.call(input, checked);
4705
+ input.dispatchEvent(event);
4706
+ }
4707
+ }, [prevChecked, checked, bubbles]);
4708
+ return /* @__PURE__ */ jsx(
4709
+ "input",
4710
+ {
4711
+ type: "checkbox",
4712
+ "aria-hidden": true,
4713
+ defaultChecked: checked,
4714
+ ...props,
4715
+ tabIndex: -1,
4716
+ ref: composedRefs,
4717
+ style: {
4718
+ ...props.style,
4719
+ ...controlSize,
4720
+ position: "absolute",
4721
+ pointerEvents: "none",
4722
+ opacity: 0,
4723
+ margin: 0
4724
+ }
4725
+ }
4726
+ );
4727
+ }
4728
+ );
4729
+ SwitchBubbleInput.displayName = BUBBLE_INPUT_NAME;
4730
+ function getState(checked) {
4731
+ return checked ? "checked" : "unchecked";
4732
+ }
4733
+ var Root = Switch;
4734
+ var Thumb = SwitchThumb;
4735
+
4736
+ // src/components/ui/switch.tsx
4737
+ var switchRootVariants = cva(
4738
+ "uii:peer uii:inline-flex uii:shrink-0 uii:cursor-pointer uii:items-center uii:rounded-full uii:border-2 uii:border-transparent uii:transition-all uii:outline-none uii:focus-visible:border-ring uii:focus-visible:ring-ring/50 uii:focus-visible:ring-[3px] uii:disabled:cursor-not-allowed uii:disabled:opacity-50 uii:data-[state=checked]:bg-primary uii:data-[state=unchecked]:bg-input uii:shadow-xs",
4739
+ {
4740
+ variants: {
4741
+ size: {
4742
+ xs: "uii:h-3 uii:w-6",
4743
+ // tiny track
4744
+ sm: "uii:h-4 uii:w-7",
4745
+ // small track
4746
+ md: "uii:h-5 uii:w-9",
4747
+ // current default
4748
+ lg: "uii:h-7 uii:w-14",
4749
+ // larger track
4750
+ xl: "uii:h-9 uii:w-20"
4751
+ // extra large track
4752
+ }
4753
+ },
4754
+ defaultVariants: { size: "md" }
4755
+ }
4756
+ );
4757
+ var switchThumbVariants = cva(
4758
+ "uii:bg-background uii:pointer-events-none uii:block uii:rounded-full uii:ring-0 uii:shadow-lg uii:transition-transform uii:data-[state=unchecked]:translate-x-0",
4759
+ {
4760
+ variants: {
4761
+ size: {
4762
+ xs: "uii:size-2 uii:data-[state=checked]:translate-x-3",
4763
+ sm: "uii:size-3 uii:data-[state=checked]:translate-x-3",
4764
+ md: "uii:size-4 uii:data-[state=checked]:translate-x-4",
4765
+ // current default
4766
+ lg: "uii:size-6 uii:data-[state=checked]:translate-x-6",
4767
+ xl: "uii:size-8 uii:data-[state=checked]:translate-x-8"
4768
+ }
4769
+ },
4770
+ defaultVariants: { size: "md" }
4771
+ }
4772
+ );
4773
+ function Switch2({ className, size, ...props }) {
4774
+ return /* @__PURE__ */ React3.createElement(
4775
+ Root,
4776
+ {
4777
+ "data-slot": "switch",
4778
+ className: cn(switchRootVariants({ size }), className),
4779
+ ...props
4780
+ },
4781
+ /* @__PURE__ */ React3.createElement(
4782
+ Thumb,
4783
+ {
4784
+ "data-slot": "switch-thumb",
4785
+ className: cn(switchThumbVariants({ size }))
4786
+ }
4787
+ )
4788
+ );
4789
+ }
4790
+
4791
+ // src/components/slots/SlotEnable.tsx
4792
+ var SlotEnable = (props) => {
4793
+ const { slotId } = props;
4794
+ return /* @__PURE__ */ React.createElement("div", { className: "uii:flex uii:items-center uii:justify-center uii:ml-1" }, /* @__PURE__ */ React.createElement(Switch2, { size: "xs", checked: true, onCheckedChange: () => {
4795
+ } }));
4796
+ };
4797
+
4798
+ // ../../node_modules/.pnpm/@fortawesome+fontawesome-svg-core@6.7.2/node_modules/@fortawesome/fontawesome-svg-core/index.mjs
4799
+ function _defineProperty(e, r3, t2) {
4800
+ return (r3 = _toPropertyKey(r3)) in e ? Object.defineProperty(e, r3, {
4801
+ value: t2,
4802
+ enumerable: true,
4803
+ configurable: true,
4804
+ writable: true
4805
+ }) : e[r3] = t2, e;
4806
+ }
4807
+ function ownKeys(e, r3) {
4808
+ var t2 = Object.keys(e);
4809
+ if (Object.getOwnPropertySymbols) {
4810
+ var o2 = Object.getOwnPropertySymbols(e);
4811
+ r3 && (o2 = o2.filter(function(r4) {
4812
+ return Object.getOwnPropertyDescriptor(e, r4).enumerable;
4813
+ })), t2.push.apply(t2, o2);
4814
+ }
4815
+ return t2;
4816
+ }
4817
+ function _objectSpread2(e) {
4818
+ for (var r3 = 1; r3 < arguments.length; r3++) {
4819
+ var t2 = null != arguments[r3] ? arguments[r3] : {};
4820
+ r3 % 2 ? ownKeys(Object(t2), true).forEach(function(r4) {
4821
+ _defineProperty(e, r4, t2[r4]);
4822
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t2)) : ownKeys(Object(t2)).forEach(function(r4) {
4823
+ Object.defineProperty(e, r4, Object.getOwnPropertyDescriptor(t2, r4));
4824
+ });
4825
+ }
4826
+ return e;
4827
+ }
4828
+ function _toPrimitive(t2, r3) {
4829
+ if ("object" != typeof t2 || !t2) return t2;
4830
+ var e = t2[Symbol.toPrimitive];
4831
+ if (void 0 !== e) {
4832
+ var i = e.call(t2, r3);
4833
+ if ("object" != typeof i) return i;
4834
+ throw new TypeError("@@toPrimitive must return a primitive value.");
4835
+ }
4836
+ return ("string" === r3 ? String : Number)(t2);
4837
+ }
4838
+ function _toPropertyKey(t2) {
4839
+ var i = _toPrimitive(t2, "string");
4840
+ return "symbol" == typeof i ? i : i + "";
4841
+ }
4842
+ var noop = () => {
4843
+ };
4844
+ var _WINDOW = {};
4845
+ var _DOCUMENT = {};
4846
+ var _MUTATION_OBSERVER = null;
4847
+ var _PERFORMANCE = {
4848
+ mark: noop,
4849
+ measure: noop
4850
+ };
4851
+ try {
4852
+ if (typeof window !== "undefined") _WINDOW = window;
4853
+ if (typeof document !== "undefined") _DOCUMENT = document;
4854
+ if (typeof MutationObserver !== "undefined") _MUTATION_OBSERVER = MutationObserver;
4855
+ if (typeof performance !== "undefined") _PERFORMANCE = performance;
4856
+ } catch (e) {
4857
+ }
4858
+ var {
4859
+ userAgent = ""
4860
+ } = _WINDOW.navigator || {};
4861
+ var WINDOW = _WINDOW;
4862
+ var DOCUMENT = _DOCUMENT;
4863
+ var MUTATION_OBSERVER = _MUTATION_OBSERVER;
4864
+ var PERFORMANCE = _PERFORMANCE;
4865
+ !!WINDOW.document;
4866
+ var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === "function" && typeof DOCUMENT.createElement === "function";
4867
+ var IS_IE = ~userAgent.indexOf("MSIE") || ~userAgent.indexOf("Trident/");
4868
+ var p = /fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/;
4869
+ var g = /Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i;
4870
+ var S = {
4871
+ classic: {
4872
+ fa: "solid",
4873
+ fas: "solid",
4874
+ "fa-solid": "solid",
4875
+ far: "regular",
4876
+ "fa-regular": "regular",
4877
+ fal: "light",
4878
+ "fa-light": "light",
4879
+ fat: "thin",
4880
+ "fa-thin": "thin",
4881
+ fab: "brands",
4882
+ "fa-brands": "brands"
4883
+ },
4884
+ duotone: {
4885
+ fa: "solid",
4886
+ fad: "solid",
4887
+ "fa-solid": "solid",
4888
+ "fa-duotone": "solid",
4889
+ fadr: "regular",
4890
+ "fa-regular": "regular",
4891
+ fadl: "light",
4892
+ "fa-light": "light",
4893
+ fadt: "thin",
4894
+ "fa-thin": "thin"
4895
+ },
4896
+ sharp: {
4897
+ fa: "solid",
4898
+ fass: "solid",
4899
+ "fa-solid": "solid",
4900
+ fasr: "regular",
4901
+ "fa-regular": "regular",
4902
+ fasl: "light",
4903
+ "fa-light": "light",
4904
+ fast: "thin",
4905
+ "fa-thin": "thin"
4906
+ },
4907
+ "sharp-duotone": {
4908
+ fa: "solid",
4909
+ fasds: "solid",
4910
+ "fa-solid": "solid",
4911
+ fasdr: "regular",
4912
+ "fa-regular": "regular",
4913
+ fasdl: "light",
4914
+ "fa-light": "light",
4915
+ fasdt: "thin",
4916
+ "fa-thin": "thin"
4917
+ }
4918
+ };
4919
+ var A = {
4920
+ GROUP: "duotone-group",
4921
+ PRIMARY: "primary",
4922
+ SECONDARY: "secondary"
4923
+ };
4924
+ var P = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone"];
4925
+ var s = "classic";
4926
+ var t = "duotone";
4927
+ var r2 = "sharp";
4928
+ var o = "sharp-duotone";
4929
+ var L = [s, t, r2, o];
4930
+ var G = {
4931
+ classic: {
4932
+ 900: "fas",
4933
+ 400: "far",
4934
+ normal: "far",
4935
+ 300: "fal",
4936
+ 100: "fat"
4937
+ },
4938
+ duotone: {
4939
+ 900: "fad",
4940
+ 400: "fadr",
4941
+ 300: "fadl",
4942
+ 100: "fadt"
4943
+ },
4944
+ sharp: {
4945
+ 900: "fass",
4946
+ 400: "fasr",
4947
+ 300: "fasl",
4948
+ 100: "fast"
4949
+ },
4950
+ "sharp-duotone": {
4951
+ 900: "fasds",
4952
+ 400: "fasdr",
4953
+ 300: "fasdl",
4954
+ 100: "fasdt"
4955
+ }
4956
+ };
4957
+ var lt = {
4958
+ "Font Awesome 6 Free": {
4959
+ 900: "fas",
4960
+ 400: "far"
4961
+ },
4962
+ "Font Awesome 6 Pro": {
4963
+ 900: "fas",
4964
+ 400: "far",
4965
+ normal: "far",
4966
+ 300: "fal",
4967
+ 100: "fat"
4968
+ },
4969
+ "Font Awesome 6 Brands": {
4970
+ 400: "fab",
4971
+ normal: "fab"
4972
+ },
4973
+ "Font Awesome 6 Duotone": {
4974
+ 900: "fad",
4975
+ 400: "fadr",
4976
+ normal: "fadr",
4977
+ 300: "fadl",
4978
+ 100: "fadt"
4979
+ },
4980
+ "Font Awesome 6 Sharp": {
4981
+ 900: "fass",
4982
+ 400: "fasr",
4983
+ normal: "fasr",
4984
+ 300: "fasl",
4985
+ 100: "fast"
4986
+ },
4987
+ "Font Awesome 6 Sharp Duotone": {
4988
+ 900: "fasds",
4989
+ 400: "fasdr",
4990
+ normal: "fasdr",
4991
+ 300: "fasdl",
4992
+ 100: "fasdt"
4993
+ }
4994
+ };
4995
+ var pt = /* @__PURE__ */ new Map([["classic", {
4996
+ defaultShortPrefixId: "fas",
4997
+ defaultStyleId: "solid",
4998
+ styleIds: ["solid", "regular", "light", "thin", "brands"],
4999
+ futureStyleIds: [],
5000
+ defaultFontWeight: 900
5001
+ }], ["sharp", {
5002
+ defaultShortPrefixId: "fass",
5003
+ defaultStyleId: "solid",
5004
+ styleIds: ["solid", "regular", "light", "thin"],
5005
+ futureStyleIds: [],
5006
+ defaultFontWeight: 900
5007
+ }], ["duotone", {
5008
+ defaultShortPrefixId: "fad",
5009
+ defaultStyleId: "solid",
5010
+ styleIds: ["solid", "regular", "light", "thin"],
5011
+ futureStyleIds: [],
5012
+ defaultFontWeight: 900
5013
+ }], ["sharp-duotone", {
5014
+ defaultShortPrefixId: "fasds",
5015
+ defaultStyleId: "solid",
5016
+ styleIds: ["solid", "regular", "light", "thin"],
5017
+ futureStyleIds: [],
5018
+ defaultFontWeight: 900
5019
+ }]]);
5020
+ var xt = {
5021
+ classic: {
5022
+ solid: "fas",
5023
+ regular: "far",
5024
+ light: "fal",
5025
+ thin: "fat",
5026
+ brands: "fab"
5027
+ },
5028
+ duotone: {
5029
+ solid: "fad",
5030
+ regular: "fadr",
5031
+ light: "fadl",
5032
+ thin: "fadt"
5033
+ },
5034
+ sharp: {
5035
+ solid: "fass",
5036
+ regular: "fasr",
5037
+ light: "fasl",
5038
+ thin: "fast"
5039
+ },
5040
+ "sharp-duotone": {
5041
+ solid: "fasds",
5042
+ regular: "fasdr",
5043
+ light: "fasdl",
5044
+ thin: "fasdt"
5045
+ }
5046
+ };
5047
+ var Ft = ["fak", "fa-kit", "fakd", "fa-kit-duotone"];
5048
+ var St = {
5049
+ kit: {
5050
+ fak: "kit",
5051
+ "fa-kit": "kit"
5052
+ },
5053
+ "kit-duotone": {
5054
+ fakd: "kit-duotone",
5055
+ "fa-kit-duotone": "kit-duotone"
5056
+ }
5057
+ };
5058
+ var At = ["kit"];
5059
+ var Ct = {
5060
+ kit: {
5061
+ "fa-kit": "fak"
5062
+ }};
5063
+ var Lt = ["fak", "fakd"];
5064
+ var Wt = {
5065
+ kit: {
5066
+ fak: "fa-kit"
5067
+ }};
5068
+ var Et = {
5069
+ kit: {
5070
+ kit: "fak"
5071
+ },
5072
+ "kit-duotone": {
5073
+ "kit-duotone": "fakd"
5074
+ }
5075
+ };
5076
+ var t$1 = {
5077
+ GROUP: "duotone-group",
5078
+ SWAP_OPACITY: "swap-opacity",
5079
+ PRIMARY: "primary",
5080
+ SECONDARY: "secondary"
5081
+ };
5082
+ var r$1 = ["fa-classic", "fa-duotone", "fa-sharp", "fa-sharp-duotone"];
5083
+ var bt$1 = ["fak", "fa-kit", "fakd", "fa-kit-duotone"];
5084
+ var Yt = {
5085
+ "Font Awesome Kit": {
5086
+ 400: "fak",
5087
+ normal: "fak"
5088
+ },
5089
+ "Font Awesome Kit Duotone": {
5090
+ 400: "fakd",
5091
+ normal: "fakd"
5092
+ }
5093
+ };
5094
+ var ua = {
5095
+ classic: {
5096
+ "fa-brands": "fab",
5097
+ "fa-duotone": "fad",
5098
+ "fa-light": "fal",
5099
+ "fa-regular": "far",
5100
+ "fa-solid": "fas",
5101
+ "fa-thin": "fat"
5102
+ },
5103
+ duotone: {
5104
+ "fa-regular": "fadr",
5105
+ "fa-light": "fadl",
5106
+ "fa-thin": "fadt"
5107
+ },
5108
+ sharp: {
5109
+ "fa-solid": "fass",
5110
+ "fa-regular": "fasr",
5111
+ "fa-light": "fasl",
5112
+ "fa-thin": "fast"
5113
+ },
5114
+ "sharp-duotone": {
5115
+ "fa-solid": "fasds",
5116
+ "fa-regular": "fasdr",
5117
+ "fa-light": "fasdl",
5118
+ "fa-thin": "fasdt"
5119
+ }
5120
+ };
5121
+ var I$1 = {
5122
+ classic: ["fas", "far", "fal", "fat", "fad"],
5123
+ duotone: ["fadr", "fadl", "fadt"],
5124
+ sharp: ["fass", "fasr", "fasl", "fast"],
5125
+ "sharp-duotone": ["fasds", "fasdr", "fasdl", "fasdt"]
5126
+ };
5127
+ var ga = {
5128
+ classic: {
5129
+ fab: "fa-brands",
5130
+ fad: "fa-duotone",
5131
+ fal: "fa-light",
5132
+ far: "fa-regular",
5133
+ fas: "fa-solid",
5134
+ fat: "fa-thin"
5135
+ },
5136
+ duotone: {
5137
+ fadr: "fa-regular",
5138
+ fadl: "fa-light",
5139
+ fadt: "fa-thin"
5140
+ },
5141
+ sharp: {
5142
+ fass: "fa-solid",
5143
+ fasr: "fa-regular",
5144
+ fasl: "fa-light",
5145
+ fast: "fa-thin"
5146
+ },
5147
+ "sharp-duotone": {
5148
+ fasds: "fa-solid",
5149
+ fasdr: "fa-regular",
5150
+ fasdl: "fa-light",
5151
+ fasdt: "fa-thin"
5152
+ }
5153
+ };
5154
+ var x = ["fa-solid", "fa-regular", "fa-light", "fa-thin", "fa-duotone", "fa-brands"];
5155
+ var Ia = ["fa", "fas", "far", "fal", "fat", "fad", "fadr", "fadl", "fadt", "fab", "fass", "fasr", "fasl", "fast", "fasds", "fasdr", "fasdl", "fasdt", ...r$1, ...x];
5156
+ var m$1 = ["solid", "regular", "light", "thin", "duotone", "brands"];
5157
+ var c$1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
5158
+ var F$1 = c$1.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]);
5159
+ var ma = [...Object.keys(I$1), ...m$1, "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", t$1.GROUP, t$1.SWAP_OPACITY, t$1.PRIMARY, t$1.SECONDARY].concat(c$1.map((a) => "".concat(a, "x"))).concat(F$1.map((a) => "w-".concat(a)));
5160
+ var wa = {
5161
+ "Font Awesome 5 Free": {
5162
+ 900: "fas",
5163
+ 400: "far"
5164
+ },
5165
+ "Font Awesome 5 Pro": {
5166
+ 900: "fas",
5167
+ 400: "far",
5168
+ normal: "far",
5169
+ 300: "fal"
5170
+ },
5171
+ "Font Awesome 5 Brands": {
5172
+ 400: "fab",
5173
+ normal: "fab"
5174
+ },
5175
+ "Font Awesome 5 Duotone": {
5176
+ 900: "fad"
5177
+ }
5178
+ };
5179
+ var NAMESPACE_IDENTIFIER = "___FONT_AWESOME___";
5180
+ var UNITS_IN_GRID = 16;
5181
+ var DEFAULT_CSS_PREFIX = "fa";
5182
+ var DEFAULT_REPLACEMENT_CLASS = "svg-inline--fa";
5183
+ var DATA_FA_I2SVG = "data-fa-i2svg";
5184
+ var DATA_FA_PSEUDO_ELEMENT = "data-fa-pseudo-element";
5185
+ var DATA_FA_PSEUDO_ELEMENT_PENDING = "data-fa-pseudo-element-pending";
5186
+ var DATA_PREFIX = "data-prefix";
5187
+ var DATA_ICON = "data-icon";
5188
+ var HTML_CLASS_I2SVG_BASE_CLASS = "fontawesome-i2svg";
5189
+ var MUTATION_APPROACH_ASYNC = "async";
5190
+ var TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ["HTML", "HEAD", "STYLE", "SCRIPT"];
5191
+ var PRODUCTION = (() => {
5192
+ try {
5193
+ return process.env.NODE_ENV === "production";
5194
+ } catch (e$$1) {
5195
+ return false;
5196
+ }
5197
+ })();
5198
+ function familyProxy(obj) {
5199
+ return new Proxy(obj, {
5200
+ get(target, prop) {
5201
+ return prop in target ? target[prop] : target[s];
5202
+ }
5203
+ });
5204
+ }
5205
+ var _PREFIX_TO_STYLE = _objectSpread2({}, S);
5206
+ _PREFIX_TO_STYLE[s] = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, {
5207
+ "fa-duotone": "duotone"
5208
+ }), S[s]), St["kit"]), St["kit-duotone"]);
5209
+ var PREFIX_TO_STYLE = familyProxy(_PREFIX_TO_STYLE);
5210
+ var _STYLE_TO_PREFIX = _objectSpread2({}, xt);
5211
+ _STYLE_TO_PREFIX[s] = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, {
5212
+ duotone: "fad"
5213
+ }), _STYLE_TO_PREFIX[s]), Et["kit"]), Et["kit-duotone"]);
5214
+ var STYLE_TO_PREFIX = familyProxy(_STYLE_TO_PREFIX);
5215
+ var _PREFIX_TO_LONG_STYLE = _objectSpread2({}, ga);
5216
+ _PREFIX_TO_LONG_STYLE[s] = _objectSpread2(_objectSpread2({}, _PREFIX_TO_LONG_STYLE[s]), Wt["kit"]);
5217
+ var PREFIX_TO_LONG_STYLE = familyProxy(_PREFIX_TO_LONG_STYLE);
5218
+ var _LONG_STYLE_TO_PREFIX = _objectSpread2({}, ua);
5219
+ _LONG_STYLE_TO_PREFIX[s] = _objectSpread2(_objectSpread2({}, _LONG_STYLE_TO_PREFIX[s]), Ct["kit"]);
5220
+ familyProxy(_LONG_STYLE_TO_PREFIX);
5221
+ var ICON_SELECTION_SYNTAX_PATTERN = p;
5222
+ var LAYERS_TEXT_CLASSNAME = "fa-layers-text";
5223
+ var FONT_FAMILY_PATTERN = g;
5224
+ var _FONT_WEIGHT_TO_PREFIX = _objectSpread2({}, G);
5225
+ familyProxy(_FONT_WEIGHT_TO_PREFIX);
5226
+ var ATTRIBUTES_WATCHED_FOR_MUTATION = ["class", "data-prefix", "data-icon", "data-fa-transform", "data-fa-mask"];
5227
+ var DUOTONE_CLASSES = A;
5228
+ var RESERVED_CLASSES = [...At, ...ma];
5229
+ var initial = WINDOW.FontAwesomeConfig || {};
5230
+ function getAttrConfig(attr) {
5231
+ var element = DOCUMENT.querySelector("script[" + attr + "]");
5232
+ if (element) {
5233
+ return element.getAttribute(attr);
5234
+ }
5235
+ }
5236
+ function coerce(val) {
5237
+ if (val === "") return true;
5238
+ if (val === "false") return false;
5239
+ if (val === "true") return true;
5240
+ return val;
5241
+ }
5242
+ if (DOCUMENT && typeof DOCUMENT.querySelector === "function") {
5243
+ const 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-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"]];
5244
+ attrs.forEach((_ref) => {
5245
+ let [attr, key] = _ref;
5246
+ const val = coerce(getAttrConfig(attr));
5247
+ if (val !== void 0 && val !== null) {
5248
+ initial[key] = val;
5249
+ }
5250
+ });
5251
+ }
5252
+ var _default = {
5253
+ styleDefault: "solid",
5254
+ familyDefault: s,
5255
+ cssPrefix: DEFAULT_CSS_PREFIX,
5256
+ replacementClass: DEFAULT_REPLACEMENT_CLASS,
5257
+ autoReplaceSvg: true,
5258
+ autoAddCss: true,
5259
+ autoA11y: true,
5260
+ searchPseudoElements: false,
5261
+ observeMutations: true,
5262
+ mutateApproach: "async",
5263
+ keepOriginalSource: true,
5264
+ measurePerformance: false,
5265
+ showMissingIcons: true
5266
+ };
5267
+ if (initial.familyPrefix) {
5268
+ initial.cssPrefix = initial.familyPrefix;
5269
+ }
5270
+ var _config = _objectSpread2(_objectSpread2({}, _default), initial);
5271
+ if (!_config.autoReplaceSvg) _config.observeMutations = false;
5272
+ var config = {};
5273
+ Object.keys(_default).forEach((key) => {
5274
+ Object.defineProperty(config, key, {
5275
+ enumerable: true,
5276
+ set: function(val) {
5277
+ _config[key] = val;
5278
+ _onChangeCb.forEach((cb) => cb(config));
5279
+ },
5280
+ get: function() {
5281
+ return _config[key];
5282
+ }
5283
+ });
5284
+ });
5285
+ Object.defineProperty(config, "familyPrefix", {
5286
+ enumerable: true,
5287
+ set: function(val) {
5288
+ _config.cssPrefix = val;
5289
+ _onChangeCb.forEach((cb) => cb(config));
5290
+ },
5291
+ get: function() {
5292
+ return _config.cssPrefix;
5293
+ }
5294
+ });
5295
+ WINDOW.FontAwesomeConfig = config;
5296
+ var _onChangeCb = [];
5297
+ function onChange(cb) {
5298
+ _onChangeCb.push(cb);
5299
+ return () => {
5300
+ _onChangeCb.splice(_onChangeCb.indexOf(cb), 1);
5301
+ };
5302
+ }
5303
+ var d$2 = UNITS_IN_GRID;
5304
+ var meaninglessTransform = {
5305
+ size: 16,
5306
+ x: 0,
5307
+ y: 0,
5308
+ rotate: 0,
5309
+ flipX: false,
5310
+ flipY: false
5311
+ };
5312
+ function insertCss(css2) {
5313
+ if (!css2 || !IS_DOM) {
5314
+ return;
5315
+ }
5316
+ const style = DOCUMENT.createElement("style");
5317
+ style.setAttribute("type", "text/css");
5318
+ style.innerHTML = css2;
5319
+ const headChildren = DOCUMENT.head.childNodes;
5320
+ let beforeChild = null;
5321
+ for (let i = headChildren.length - 1; i > -1; i--) {
5322
+ const child = headChildren[i];
5323
+ const tagName = (child.tagName || "").toUpperCase();
5324
+ if (["STYLE", "LINK"].indexOf(tagName) > -1) {
5325
+ beforeChild = child;
5326
+ }
5327
+ }
5328
+ DOCUMENT.head.insertBefore(style, beforeChild);
5329
+ return css2;
5330
+ }
5331
+ var idPool = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
5332
+ function nextUniqueId() {
5333
+ let size = 12;
5334
+ let id = "";
5335
+ while (size-- > 0) {
5336
+ id += idPool[Math.random() * 62 | 0];
5337
+ }
5338
+ return id;
5339
+ }
5340
+ function toArray(obj) {
5341
+ const array = [];
5342
+ for (let i = (obj || []).length >>> 0; i--; ) {
5343
+ array[i] = obj[i];
5344
+ }
5345
+ return array;
5346
+ }
5347
+ function classArray(node) {
5348
+ if (node.classList) {
5349
+ return toArray(node.classList);
5350
+ } else {
5351
+ return (node.getAttribute("class") || "").split(" ").filter((i) => i);
5352
+ }
5353
+ }
5354
+ function htmlEscape(str) {
5355
+ return "".concat(str).replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&#39;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
5356
+ }
5357
+ function joinAttributes(attributes) {
5358
+ return Object.keys(attributes || {}).reduce((acc, attributeName) => {
5359
+ return acc + "".concat(attributeName, '="').concat(htmlEscape(attributes[attributeName]), '" ');
5360
+ }, "").trim();
5361
+ }
5362
+ function joinStyles(styles2) {
5363
+ return Object.keys(styles2 || {}).reduce((acc, styleName) => {
5364
+ return acc + "".concat(styleName, ": ").concat(styles2[styleName].trim(), ";");
5365
+ }, "");
5366
+ }
5367
+ function transformIsMeaningful(transform) {
5368
+ return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;
5369
+ }
5370
+ function transformForSvg(_ref) {
5371
+ let {
5372
+ transform,
5373
+ containerWidth,
5374
+ iconWidth
5375
+ } = _ref;
5376
+ const outer = {
5377
+ transform: "translate(".concat(containerWidth / 2, " 256)")
5378
+ };
5379
+ const innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
5380
+ const innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
5381
+ const innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
5382
+ const inner = {
5383
+ transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
5384
+ };
5385
+ const path = {
5386
+ transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
5387
+ };
5388
+ return {
5389
+ outer,
5390
+ inner,
5391
+ path
5392
+ };
5393
+ }
5394
+ function transformForCss(_ref2) {
5395
+ let {
5396
+ transform,
5397
+ width = UNITS_IN_GRID,
5398
+ height = UNITS_IN_GRID,
5399
+ startCentered = false
5400
+ } = _ref2;
5401
+ let val = "";
5402
+ if (startCentered && IS_IE) {
5403
+ val += "translate(".concat(transform.x / d$2 - width / 2, "em, ").concat(transform.y / d$2 - height / 2, "em) ");
5404
+ } else if (startCentered) {
5405
+ val += "translate(calc(-50% + ".concat(transform.x / d$2, "em), calc(-50% + ").concat(transform.y / d$2, "em)) ");
5406
+ } else {
5407
+ val += "translate(".concat(transform.x / d$2, "em, ").concat(transform.y / d$2, "em) ");
5408
+ }
5409
+ val += "scale(".concat(transform.size / d$2 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / d$2 * (transform.flipY ? -1 : 1), ") ");
5410
+ val += "rotate(".concat(transform.rotate, "deg) ");
5411
+ return val;
5412
+ }
5413
+ var baseStyles = ':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n animation-delay: -1ms;\n animation-duration: 1ms;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n 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));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}';
5414
+ function css() {
5415
+ const dcp = DEFAULT_CSS_PREFIX;
5416
+ const drc = DEFAULT_REPLACEMENT_CLASS;
5417
+ const fp = config.cssPrefix;
5418
+ const rc = config.replacementClass;
5419
+ let s2 = baseStyles;
5420
+ if (fp !== dcp || rc !== drc) {
5421
+ const dPatt = new RegExp("\\.".concat(dcp, "\\-"), "g");
5422
+ const customPropPatt = new RegExp("\\--".concat(dcp, "\\-"), "g");
5423
+ const rPatt = new RegExp("\\.".concat(drc), "g");
5424
+ s2 = s2.replace(dPatt, ".".concat(fp, "-")).replace(customPropPatt, "--".concat(fp, "-")).replace(rPatt, ".".concat(rc));
5425
+ }
5426
+ return s2;
5427
+ }
5428
+ var _cssInserted = false;
5429
+ function ensureCss() {
5430
+ if (config.autoAddCss && !_cssInserted) {
5431
+ insertCss(css());
5432
+ _cssInserted = true;
5433
+ }
5434
+ }
5435
+ var InjectCSS = {
5436
+ mixout() {
5437
+ return {
5438
+ dom: {
5439
+ css,
5440
+ insertCss: ensureCss
5441
+ }
5442
+ };
5443
+ },
5444
+ hooks() {
5445
+ return {
5446
+ beforeDOMElementCreation() {
5447
+ ensureCss();
5448
+ },
5449
+ beforeI2svg() {
5450
+ ensureCss();
5451
+ }
5452
+ };
5453
+ }
5454
+ };
5455
+ var w = WINDOW || {};
5456
+ if (!w[NAMESPACE_IDENTIFIER]) w[NAMESPACE_IDENTIFIER] = {};
5457
+ if (!w[NAMESPACE_IDENTIFIER].styles) w[NAMESPACE_IDENTIFIER].styles = {};
5458
+ if (!w[NAMESPACE_IDENTIFIER].hooks) w[NAMESPACE_IDENTIFIER].hooks = {};
5459
+ if (!w[NAMESPACE_IDENTIFIER].shims) w[NAMESPACE_IDENTIFIER].shims = [];
5460
+ var namespace = w[NAMESPACE_IDENTIFIER];
5461
+ var functions = [];
5462
+ var listener = function() {
5463
+ DOCUMENT.removeEventListener("DOMContentLoaded", listener);
5464
+ loaded = 1;
5465
+ functions.map((fn) => fn());
5466
+ };
5467
+ var loaded = false;
5468
+ if (IS_DOM) {
5469
+ loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);
5470
+ if (!loaded) DOCUMENT.addEventListener("DOMContentLoaded", listener);
5471
+ }
5472
+ function domready(fn) {
5473
+ if (!IS_DOM) return;
5474
+ loaded ? setTimeout(fn, 0) : functions.push(fn);
5475
+ }
5476
+ function toHtml(abstractNodes) {
5477
+ const {
5478
+ tag,
5479
+ attributes = {},
5480
+ children = []
5481
+ } = abstractNodes;
5482
+ if (typeof abstractNodes === "string") {
5483
+ return htmlEscape(abstractNodes);
5484
+ } else {
5485
+ return "<".concat(tag, " ").concat(joinAttributes(attributes), ">").concat(children.map(toHtml).join(""), "</").concat(tag, ">");
5486
+ }
5487
+ }
5488
+ function iconFromMapping(mapping, prefix, iconName) {
5489
+ if (mapping && mapping[prefix] && mapping[prefix][iconName]) {
5490
+ return {
5491
+ prefix,
5492
+ iconName,
5493
+ icon: mapping[prefix][iconName]
5494
+ };
5495
+ }
5496
+ }
5497
+ var reduce = function fastReduceObject(subject, fn, initialValue, thisContext) {
5498
+ var keys = Object.keys(subject), length = keys.length, iterator = fn, i, key, result;
5499
+ if (initialValue === void 0) {
5500
+ i = 1;
5501
+ result = subject[keys[0]];
5502
+ } else {
5503
+ i = 0;
5504
+ result = initialValue;
5505
+ }
5506
+ for (; i < length; i++) {
5507
+ key = keys[i];
5508
+ result = iterator(result, subject[key], key, subject);
5509
+ }
5510
+ return result;
5511
+ };
5512
+ function ucs2decode(string) {
5513
+ const output = [];
5514
+ let counter2 = 0;
5515
+ const length = string.length;
5516
+ while (counter2 < length) {
5517
+ const value = string.charCodeAt(counter2++);
5518
+ if (value >= 55296 && value <= 56319 && counter2 < length) {
5519
+ const extra = string.charCodeAt(counter2++);
5520
+ if ((extra & 64512) == 56320) {
5521
+ output.push(((value & 1023) << 10) + (extra & 1023) + 65536);
5522
+ } else {
5523
+ output.push(value);
5524
+ counter2--;
5525
+ }
5526
+ } else {
5527
+ output.push(value);
5528
+ }
5529
+ }
5530
+ return output;
5531
+ }
5532
+ function toHex(unicode) {
5533
+ const decoded = ucs2decode(unicode);
5534
+ return decoded.length === 1 ? decoded[0].toString(16) : null;
5535
+ }
5536
+ function codePointAt(string, index) {
5537
+ const size = string.length;
5538
+ let first = string.charCodeAt(index);
5539
+ let second;
5540
+ if (first >= 55296 && first <= 56319 && size > index + 1) {
5541
+ second = string.charCodeAt(index + 1);
5542
+ if (second >= 56320 && second <= 57343) {
5543
+ return (first - 55296) * 1024 + second - 56320 + 65536;
5544
+ }
5545
+ }
5546
+ return first;
5547
+ }
5548
+ function normalizeIcons(icons) {
5549
+ return Object.keys(icons).reduce((acc, iconName) => {
5550
+ const icon2 = icons[iconName];
5551
+ const expanded = !!icon2.icon;
5552
+ if (expanded) {
5553
+ acc[icon2.iconName] = icon2.icon;
5554
+ } else {
5555
+ acc[iconName] = icon2;
5556
+ }
5557
+ return acc;
5558
+ }, {});
5559
+ }
5560
+ function defineIcons(prefix, icons) {
5561
+ let params = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
5562
+ const {
5563
+ skipHooks = false
5564
+ } = params;
5565
+ const normalized = normalizeIcons(icons);
5566
+ if (typeof namespace.hooks.addPack === "function" && !skipHooks) {
5567
+ namespace.hooks.addPack(prefix, normalizeIcons(icons));
5568
+ } else {
5569
+ namespace.styles[prefix] = _objectSpread2(_objectSpread2({}, namespace.styles[prefix] || {}), normalized);
5570
+ }
5571
+ if (prefix === "fas") {
5572
+ defineIcons("fa", icons);
5573
+ }
5574
+ }
5575
+ var {
5576
+ styles,
5577
+ shims
5578
+ } = namespace;
5579
+ var FAMILY_NAMES = Object.keys(PREFIX_TO_LONG_STYLE);
5580
+ var PREFIXES_FOR_FAMILY = FAMILY_NAMES.reduce((acc, familyId) => {
5581
+ acc[familyId] = Object.keys(PREFIX_TO_LONG_STYLE[familyId]);
5582
+ return acc;
5583
+ }, {});
5584
+ var _defaultUsablePrefix = null;
5585
+ var _byUnicode = {};
5586
+ var _byLigature = {};
5587
+ var _byOldName = {};
5588
+ var _byOldUnicode = {};
5589
+ var _byAlias = {};
5590
+ function isReserved(name) {
5591
+ return ~RESERVED_CLASSES.indexOf(name);
5592
+ }
5593
+ function getIconName(cssPrefix, cls) {
5594
+ const parts = cls.split("-");
5595
+ const prefix = parts[0];
5596
+ const iconName = parts.slice(1).join("-");
5597
+ if (prefix === cssPrefix && iconName !== "" && !isReserved(iconName)) {
5598
+ return iconName;
5599
+ } else {
5600
+ return null;
5601
+ }
5602
+ }
5603
+ var build = () => {
5604
+ const lookup = (reducer) => {
5605
+ return reduce(styles, (o$$1, style, prefix) => {
5606
+ o$$1[prefix] = reduce(style, reducer, {});
5607
+ return o$$1;
5608
+ }, {});
5609
+ };
5610
+ _byUnicode = lookup((acc, icon2, iconName) => {
5611
+ if (icon2[3]) {
5612
+ acc[icon2[3]] = iconName;
5613
+ }
5614
+ if (icon2[2]) {
5615
+ const aliases = icon2[2].filter((a$$1) => {
5616
+ return typeof a$$1 === "number";
5617
+ });
5618
+ aliases.forEach((alias) => {
5619
+ acc[alias.toString(16)] = iconName;
5620
+ });
5621
+ }
5622
+ return acc;
5623
+ });
5624
+ _byLigature = lookup((acc, icon2, iconName) => {
5625
+ acc[iconName] = iconName;
5626
+ if (icon2[2]) {
5627
+ const aliases = icon2[2].filter((a$$1) => {
5628
+ return typeof a$$1 === "string";
5629
+ });
5630
+ aliases.forEach((alias) => {
5631
+ acc[alias] = iconName;
5632
+ });
5633
+ }
5634
+ return acc;
5635
+ });
5636
+ _byAlias = lookup((acc, icon2, iconName) => {
5637
+ const aliases = icon2[2];
5638
+ acc[iconName] = iconName;
5639
+ aliases.forEach((alias) => {
5640
+ acc[alias] = iconName;
5641
+ });
5642
+ return acc;
5643
+ });
5644
+ const hasRegular = "far" in styles || config.autoFetchSvg;
5645
+ const shimLookups = reduce(shims, (acc, shim) => {
5646
+ const maybeNameMaybeUnicode = shim[0];
5647
+ let prefix = shim[1];
5648
+ const iconName = shim[2];
5649
+ if (prefix === "far" && !hasRegular) {
5650
+ prefix = "fas";
5651
+ }
5652
+ if (typeof maybeNameMaybeUnicode === "string") {
5653
+ acc.names[maybeNameMaybeUnicode] = {
5654
+ prefix,
5655
+ iconName
5656
+ };
5657
+ }
5658
+ if (typeof maybeNameMaybeUnicode === "number") {
5659
+ acc.unicodes[maybeNameMaybeUnicode.toString(16)] = {
5660
+ prefix,
5661
+ iconName
5662
+ };
5663
+ }
5664
+ return acc;
5665
+ }, {
5666
+ names: {},
5667
+ unicodes: {}
5668
+ });
5669
+ _byOldName = shimLookups.names;
5670
+ _byOldUnicode = shimLookups.unicodes;
5671
+ _defaultUsablePrefix = getCanonicalPrefix(config.styleDefault, {
5672
+ family: config.familyDefault
5673
+ });
5674
+ };
5675
+ onChange((c$$1) => {
5676
+ _defaultUsablePrefix = getCanonicalPrefix(c$$1.styleDefault, {
5677
+ family: config.familyDefault
5678
+ });
5679
+ });
5680
+ build();
5681
+ function byUnicode(prefix, unicode) {
5682
+ return (_byUnicode[prefix] || {})[unicode];
5683
+ }
5684
+ function byLigature(prefix, ligature) {
5685
+ return (_byLigature[prefix] || {})[ligature];
5686
+ }
5687
+ function byAlias(prefix, alias) {
5688
+ return (_byAlias[prefix] || {})[alias];
5689
+ }
5690
+ function byOldName(name) {
5691
+ return _byOldName[name] || {
5692
+ prefix: null,
5693
+ iconName: null
5694
+ };
5695
+ }
5696
+ function byOldUnicode(unicode) {
5697
+ const oldUnicode = _byOldUnicode[unicode];
5698
+ const newUnicode = byUnicode("fas", unicode);
5699
+ return oldUnicode || (newUnicode ? {
5700
+ prefix: "fas",
5701
+ iconName: newUnicode
5702
+ } : null) || {
5703
+ prefix: null,
5704
+ iconName: null
5705
+ };
5706
+ }
5707
+ function getDefaultUsablePrefix() {
5708
+ return _defaultUsablePrefix;
5709
+ }
5710
+ var emptyCanonicalIcon = () => {
5711
+ return {
5712
+ prefix: null,
5713
+ iconName: null,
5714
+ rest: []
5715
+ };
5716
+ };
5717
+ function getFamilyId(values) {
5718
+ let family = s;
5719
+ const famProps = FAMILY_NAMES.reduce((acc, familyId) => {
5720
+ acc[familyId] = "".concat(config.cssPrefix, "-").concat(familyId);
5721
+ return acc;
5722
+ }, {});
5723
+ L.forEach((familyId) => {
5724
+ if (values.includes(famProps[familyId]) || values.some((v$$1) => PREFIXES_FOR_FAMILY[familyId].includes(v$$1))) {
5725
+ family = familyId;
5726
+ }
5727
+ });
5728
+ return family;
5729
+ }
5730
+ function getCanonicalPrefix(styleOrPrefix) {
5731
+ let params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
5732
+ const {
5733
+ family = s
5734
+ } = params;
5735
+ const style = PREFIX_TO_STYLE[family][styleOrPrefix];
5736
+ if (family === t && !styleOrPrefix) {
5737
+ return "fad";
5738
+ }
5739
+ const prefix = STYLE_TO_PREFIX[family][styleOrPrefix] || STYLE_TO_PREFIX[family][style];
5740
+ const defined = styleOrPrefix in namespace.styles ? styleOrPrefix : null;
5741
+ const result = prefix || defined || null;
5742
+ return result;
5743
+ }
5744
+ function moveNonFaClassesToRest(classNames) {
5745
+ let rest = [];
5746
+ let iconName = null;
5747
+ classNames.forEach((cls) => {
5748
+ const result = getIconName(config.cssPrefix, cls);
5749
+ if (result) {
5750
+ iconName = result;
5751
+ } else if (cls) {
5752
+ rest.push(cls);
5753
+ }
5754
+ });
5755
+ return {
5756
+ iconName,
5757
+ rest
5758
+ };
5759
+ }
5760
+ function sortedUniqueValues(arr) {
5761
+ return arr.sort().filter((value, index, arr2) => {
5762
+ return arr2.indexOf(value) === index;
5763
+ });
5764
+ }
5765
+ function getCanonicalIcon(values) {
5766
+ let params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
5767
+ const {
5768
+ skipLookups = false
5769
+ } = params;
5770
+ let givenPrefix = null;
5771
+ const faCombinedClasses = Ia.concat(bt$1);
5772
+ const faStyleOrFamilyClasses = sortedUniqueValues(values.filter((cls) => faCombinedClasses.includes(cls)));
5773
+ const nonStyleOrFamilyClasses = sortedUniqueValues(values.filter((cls) => !Ia.includes(cls)));
5774
+ const faStyles = faStyleOrFamilyClasses.filter((cls) => {
5775
+ givenPrefix = cls;
5776
+ return !P.includes(cls);
5777
+ });
5778
+ const [styleFromValues = null] = faStyles;
5779
+ const family = getFamilyId(faStyleOrFamilyClasses);
5780
+ const canonical = _objectSpread2(_objectSpread2({}, moveNonFaClassesToRest(nonStyleOrFamilyClasses)), {}, {
5781
+ prefix: getCanonicalPrefix(styleFromValues, {
5782
+ family
5783
+ })
5784
+ });
5785
+ return _objectSpread2(_objectSpread2(_objectSpread2({}, canonical), getDefaultCanonicalPrefix({
5786
+ values,
5787
+ family,
5788
+ styles,
5789
+ config,
5790
+ canonical,
5791
+ givenPrefix
5792
+ })), applyShimAndAlias(skipLookups, givenPrefix, canonical));
5793
+ }
5794
+ function applyShimAndAlias(skipLookups, givenPrefix, canonical) {
5795
+ let {
5796
+ prefix,
5797
+ iconName
5798
+ } = canonical;
5799
+ if (skipLookups || !prefix || !iconName) {
5800
+ return {
5801
+ prefix,
5802
+ iconName
5803
+ };
5804
+ }
5805
+ const shim = givenPrefix === "fa" ? byOldName(iconName) : {};
5806
+ const aliasIconName = byAlias(prefix, iconName);
5807
+ iconName = shim.iconName || aliasIconName || iconName;
5808
+ prefix = shim.prefix || prefix;
5809
+ if (prefix === "far" && !styles["far"] && styles["fas"] && !config.autoFetchSvg) {
5810
+ prefix = "fas";
5811
+ }
5812
+ return {
5813
+ prefix,
5814
+ iconName
5815
+ };
5816
+ }
5817
+ var newCanonicalFamilies = L.filter((familyId) => {
5818
+ return familyId !== s || familyId !== t;
5819
+ });
5820
+ var newCanonicalStyles = Object.keys(ga).filter((key) => key !== s).map((key) => Object.keys(ga[key])).flat();
5821
+ function getDefaultCanonicalPrefix(prefixOptions) {
5822
+ const {
5823
+ values,
5824
+ family,
5825
+ canonical,
5826
+ givenPrefix = "",
5827
+ styles: styles2 = {},
5828
+ config: config$$1 = {}
5829
+ } = prefixOptions;
5830
+ const isDuotoneFamily = family === t;
5831
+ const valuesHasDuotone = values.includes("fa-duotone") || values.includes("fad");
5832
+ const defaultFamilyIsDuotone = config$$1.familyDefault === "duotone";
5833
+ const canonicalPrefixIsDuotone = canonical.prefix === "fad" || canonical.prefix === "fa-duotone";
5834
+ if (!isDuotoneFamily && (valuesHasDuotone || defaultFamilyIsDuotone || canonicalPrefixIsDuotone)) {
5835
+ canonical.prefix = "fad";
5836
+ }
5837
+ if (values.includes("fa-brands") || values.includes("fab")) {
5838
+ canonical.prefix = "fab";
5839
+ }
5840
+ if (!canonical.prefix && newCanonicalFamilies.includes(family)) {
5841
+ const validPrefix = Object.keys(styles2).find((key) => newCanonicalStyles.includes(key));
5842
+ if (validPrefix || config$$1.autoFetchSvg) {
5843
+ const defaultPrefix = pt.get(family).defaultShortPrefixId;
5844
+ canonical.prefix = defaultPrefix;
5845
+ canonical.iconName = byAlias(canonical.prefix, canonical.iconName) || canonical.iconName;
5846
+ }
5847
+ }
5848
+ if (canonical.prefix === "fa" || givenPrefix === "fa") {
5849
+ canonical.prefix = getDefaultUsablePrefix() || "fas";
5850
+ }
5851
+ return canonical;
5852
+ }
5853
+ var Library = class {
5854
+ constructor() {
5855
+ this.definitions = {};
5856
+ }
5857
+ add() {
5858
+ for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {
5859
+ definitions[_key] = arguments[_key];
5860
+ }
5861
+ const additions = definitions.reduce(this._pullDefinitions, {});
5862
+ Object.keys(additions).forEach((key) => {
5863
+ this.definitions[key] = _objectSpread2(_objectSpread2({}, this.definitions[key] || {}), additions[key]);
5864
+ defineIcons(key, additions[key]);
5865
+ const longPrefix = PREFIX_TO_LONG_STYLE[s][key];
5866
+ if (longPrefix) defineIcons(longPrefix, additions[key]);
5867
+ build();
5868
+ });
5869
+ }
5870
+ reset() {
5871
+ this.definitions = {};
5872
+ }
5873
+ _pullDefinitions(additions, definition) {
5874
+ const normalized = definition.prefix && definition.iconName && definition.icon ? {
5875
+ 0: definition
5876
+ } : definition;
5877
+ Object.keys(normalized).map((key) => {
5878
+ const {
5879
+ prefix,
5880
+ iconName,
5881
+ icon: icon2
5882
+ } = normalized[key];
5883
+ const aliases = icon2[2];
5884
+ if (!additions[prefix]) additions[prefix] = {};
5885
+ if (aliases.length > 0) {
5886
+ aliases.forEach((alias) => {
5887
+ if (typeof alias === "string") {
5888
+ additions[prefix][alias] = icon2;
5889
+ }
5890
+ });
5891
+ }
5892
+ additions[prefix][iconName] = icon2;
5893
+ });
5894
+ return additions;
5895
+ }
5896
+ };
5897
+ var _plugins = [];
5898
+ var _hooks = {};
5899
+ var providers = {};
5900
+ var defaultProviderKeys = Object.keys(providers);
5901
+ function registerPlugins(nextPlugins, _ref) {
5902
+ let {
5903
+ mixoutsTo: obj
5904
+ } = _ref;
5905
+ _plugins = nextPlugins;
5906
+ _hooks = {};
5907
+ Object.keys(providers).forEach((k) => {
5908
+ if (defaultProviderKeys.indexOf(k) === -1) {
5909
+ delete providers[k];
5910
+ }
5911
+ });
5912
+ _plugins.forEach((plugin) => {
5913
+ const mixout = plugin.mixout ? plugin.mixout() : {};
5914
+ Object.keys(mixout).forEach((tk) => {
5915
+ if (typeof mixout[tk] === "function") {
5916
+ obj[tk] = mixout[tk];
5917
+ }
5918
+ if (typeof mixout[tk] === "object") {
5919
+ Object.keys(mixout[tk]).forEach((sk) => {
5920
+ if (!obj[tk]) {
5921
+ obj[tk] = {};
5922
+ }
5923
+ obj[tk][sk] = mixout[tk][sk];
5924
+ });
5925
+ }
5926
+ });
5927
+ if (plugin.hooks) {
5928
+ const hooks = plugin.hooks();
5929
+ Object.keys(hooks).forEach((hook) => {
5930
+ if (!_hooks[hook]) {
5931
+ _hooks[hook] = [];
5932
+ }
5933
+ _hooks[hook].push(hooks[hook]);
5934
+ });
5935
+ }
5936
+ if (plugin.provides) {
5937
+ plugin.provides(providers);
5938
+ }
5939
+ });
5940
+ return obj;
5941
+ }
5942
+ function chainHooks(hook, accumulator) {
5943
+ for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
5944
+ args[_key - 2] = arguments[_key];
5945
+ }
5946
+ const hookFns = _hooks[hook] || [];
5947
+ hookFns.forEach((hookFn) => {
5948
+ accumulator = hookFn.apply(null, [accumulator, ...args]);
5949
+ });
5950
+ return accumulator;
5951
+ }
5952
+ function callHooks(hook) {
5953
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
5954
+ args[_key2 - 1] = arguments[_key2];
5955
+ }
5956
+ const hookFns = _hooks[hook] || [];
5957
+ hookFns.forEach((hookFn) => {
5958
+ hookFn.apply(null, args);
5959
+ });
5960
+ return void 0;
5961
+ }
5962
+ function callProvided() {
5963
+ const hook = arguments[0];
5964
+ const args = Array.prototype.slice.call(arguments, 1);
5965
+ return providers[hook] ? providers[hook].apply(null, args) : void 0;
5966
+ }
5967
+ function findIconDefinition(iconLookup) {
5968
+ if (iconLookup.prefix === "fa") {
5969
+ iconLookup.prefix = "fas";
5970
+ }
5971
+ let {
5972
+ iconName
5973
+ } = iconLookup;
5974
+ const prefix = iconLookup.prefix || getDefaultUsablePrefix();
5975
+ if (!iconName) return;
5976
+ iconName = byAlias(prefix, iconName) || iconName;
5977
+ return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);
5978
+ }
5979
+ var library = new Library();
5980
+ var noAuto = () => {
5981
+ config.autoReplaceSvg = false;
5982
+ config.observeMutations = false;
5983
+ callHooks("noAuto");
5984
+ };
5985
+ var dom = {
5986
+ i2svg: function() {
5987
+ let params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5988
+ if (IS_DOM) {
5989
+ callHooks("beforeI2svg", params);
5990
+ callProvided("pseudoElements2svg", params);
5991
+ return callProvided("i2svg", params);
5992
+ } else {
5993
+ return Promise.reject(new Error("Operation requires a DOM of some kind."));
5994
+ }
5995
+ },
5996
+ watch: function() {
5997
+ let params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5998
+ const {
5999
+ autoReplaceSvgRoot
6000
+ } = params;
6001
+ if (config.autoReplaceSvg === false) {
6002
+ config.autoReplaceSvg = true;
6003
+ }
6004
+ config.observeMutations = true;
6005
+ domready(() => {
6006
+ autoReplace({
6007
+ autoReplaceSvgRoot
6008
+ });
6009
+ callHooks("watch", params);
6010
+ });
6011
+ }
6012
+ };
6013
+ var parse = {
6014
+ icon: (icon2) => {
6015
+ if (icon2 === null) {
6016
+ return null;
6017
+ }
6018
+ if (typeof icon2 === "object" && icon2.prefix && icon2.iconName) {
6019
+ return {
6020
+ prefix: icon2.prefix,
6021
+ iconName: byAlias(icon2.prefix, icon2.iconName) || icon2.iconName
6022
+ };
6023
+ }
6024
+ if (Array.isArray(icon2) && icon2.length === 2) {
6025
+ const iconName = icon2[1].indexOf("fa-") === 0 ? icon2[1].slice(3) : icon2[1];
6026
+ const prefix = getCanonicalPrefix(icon2[0]);
6027
+ return {
6028
+ prefix,
6029
+ iconName: byAlias(prefix, iconName) || iconName
6030
+ };
6031
+ }
6032
+ if (typeof icon2 === "string" && (icon2.indexOf("".concat(config.cssPrefix, "-")) > -1 || icon2.match(ICON_SELECTION_SYNTAX_PATTERN))) {
6033
+ const canonicalIcon = getCanonicalIcon(icon2.split(" "), {
6034
+ skipLookups: true
6035
+ });
6036
+ return {
6037
+ prefix: canonicalIcon.prefix || getDefaultUsablePrefix(),
6038
+ iconName: byAlias(canonicalIcon.prefix, canonicalIcon.iconName) || canonicalIcon.iconName
6039
+ };
6040
+ }
6041
+ if (typeof icon2 === "string") {
6042
+ const prefix = getDefaultUsablePrefix();
6043
+ return {
6044
+ prefix,
6045
+ iconName: byAlias(prefix, icon2) || icon2
6046
+ };
6047
+ }
6048
+ }
6049
+ };
6050
+ var api = {
6051
+ noAuto,
6052
+ config,
6053
+ dom,
6054
+ parse,
6055
+ library,
6056
+ findIconDefinition,
6057
+ toHtml
6058
+ };
6059
+ var autoReplace = function() {
6060
+ let params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
6061
+ const {
6062
+ autoReplaceSvgRoot = DOCUMENT
6063
+ } = params;
6064
+ if ((Object.keys(namespace.styles).length > 0 || config.autoFetchSvg) && IS_DOM && config.autoReplaceSvg) api.dom.i2svg({
6065
+ node: autoReplaceSvgRoot
6066
+ });
6067
+ };
6068
+ function domVariants(val, abstractCreator) {
6069
+ Object.defineProperty(val, "abstract", {
6070
+ get: abstractCreator
6071
+ });
6072
+ Object.defineProperty(val, "html", {
6073
+ get: function() {
6074
+ return val.abstract.map((a) => toHtml(a));
6075
+ }
6076
+ });
6077
+ Object.defineProperty(val, "node", {
6078
+ get: function() {
6079
+ if (!IS_DOM) return;
6080
+ const container = DOCUMENT.createElement("div");
6081
+ container.innerHTML = val.html;
6082
+ return container.children;
6083
+ }
6084
+ });
6085
+ return val;
6086
+ }
6087
+ function asIcon(_ref) {
6088
+ let {
6089
+ children,
6090
+ main,
6091
+ mask,
6092
+ attributes,
6093
+ styles: styles2,
6094
+ transform
6095
+ } = _ref;
6096
+ if (transformIsMeaningful(transform) && main.found && !mask.found) {
6097
+ const {
6098
+ width,
6099
+ height
6100
+ } = main;
6101
+ const offset = {
6102
+ x: width / height / 2,
6103
+ y: 0.5
6104
+ };
6105
+ attributes["style"] = joinStyles(_objectSpread2(_objectSpread2({}, styles2), {}, {
6106
+ "transform-origin": "".concat(offset.x + transform.x / 16, "em ").concat(offset.y + transform.y / 16, "em")
6107
+ }));
6108
+ }
6109
+ return [{
6110
+ tag: "svg",
6111
+ attributes,
6112
+ children
6113
+ }];
6114
+ }
6115
+ function asSymbol(_ref) {
6116
+ let {
6117
+ prefix,
6118
+ iconName,
6119
+ children,
6120
+ attributes,
6121
+ symbol
6122
+ } = _ref;
6123
+ const id = symbol === true ? "".concat(prefix, "-").concat(config.cssPrefix, "-").concat(iconName) : symbol;
6124
+ return [{
6125
+ tag: "svg",
6126
+ attributes: {
6127
+ style: "display: none;"
6128
+ },
6129
+ children: [{
6130
+ tag: "symbol",
6131
+ attributes: _objectSpread2(_objectSpread2({}, attributes), {}, {
6132
+ id
6133
+ }),
6134
+ children
6135
+ }]
6136
+ }];
6137
+ }
6138
+ function makeInlineSvgAbstract(params) {
6139
+ const {
6140
+ icons: {
6141
+ main,
6142
+ mask
6143
+ },
6144
+ prefix,
6145
+ iconName,
6146
+ transform,
6147
+ symbol,
6148
+ title,
6149
+ maskId,
6150
+ titleId,
6151
+ extra,
6152
+ watchable = false
6153
+ } = params;
6154
+ const {
6155
+ width,
6156
+ height
6157
+ } = mask.found ? mask : main;
6158
+ const isUploadedIcon = Lt.includes(prefix);
6159
+ const attrClass = [config.replacementClass, iconName ? "".concat(config.cssPrefix, "-").concat(iconName) : ""].filter((c$$1) => extra.classes.indexOf(c$$1) === -1).filter((c$$1) => c$$1 !== "" || !!c$$1).concat(extra.classes).join(" ");
6160
+ let content = {
6161
+ children: [],
6162
+ attributes: _objectSpread2(_objectSpread2({}, extra.attributes), {}, {
6163
+ "data-prefix": prefix,
6164
+ "data-icon": iconName,
6165
+ "class": attrClass,
6166
+ "role": extra.attributes.role || "img",
6167
+ "xmlns": "http://www.w3.org/2000/svg",
6168
+ "viewBox": "0 0 ".concat(width, " ").concat(height)
6169
+ })
6170
+ };
6171
+ const uploadedIconWidthStyle = isUploadedIcon && !~extra.classes.indexOf("fa-fw") ? {
6172
+ width: "".concat(width / height * 16 * 0.0625, "em")
6173
+ } : {};
6174
+ if (watchable) {
6175
+ content.attributes[DATA_FA_I2SVG] = "";
6176
+ }
6177
+ if (title) {
6178
+ content.children.push({
6179
+ tag: "title",
6180
+ attributes: {
6181
+ id: content.attributes["aria-labelledby"] || "title-".concat(titleId || nextUniqueId())
6182
+ },
6183
+ children: [title]
6184
+ });
6185
+ delete content.attributes.title;
6186
+ }
6187
+ const args = _objectSpread2(_objectSpread2({}, content), {}, {
6188
+ prefix,
6189
+ iconName,
6190
+ main,
6191
+ mask,
6192
+ maskId,
6193
+ transform,
6194
+ symbol,
6195
+ styles: _objectSpread2(_objectSpread2({}, uploadedIconWidthStyle), extra.styles)
6196
+ });
6197
+ const {
6198
+ children,
6199
+ attributes
6200
+ } = mask.found && main.found ? callProvided("generateAbstractMask", args) || {
6201
+ children: [],
6202
+ attributes: {}
6203
+ } : callProvided("generateAbstractIcon", args) || {
6204
+ children: [],
6205
+ attributes: {}
6206
+ };
6207
+ args.children = children;
6208
+ args.attributes = attributes;
6209
+ if (symbol) {
6210
+ return asSymbol(args);
6211
+ } else {
6212
+ return asIcon(args);
6213
+ }
6214
+ }
6215
+ function makeLayersTextAbstract(params) {
6216
+ const {
6217
+ content,
6218
+ width,
6219
+ height,
6220
+ transform,
6221
+ title,
6222
+ extra,
6223
+ watchable = false
6224
+ } = params;
6225
+ const attributes = _objectSpread2(_objectSpread2(_objectSpread2({}, extra.attributes), title ? {
6226
+ "title": title
6227
+ } : {}), {}, {
6228
+ "class": extra.classes.join(" ")
6229
+ });
6230
+ if (watchable) {
6231
+ attributes[DATA_FA_I2SVG] = "";
6232
+ }
6233
+ const styles2 = _objectSpread2({}, extra.styles);
6234
+ if (transformIsMeaningful(transform)) {
6235
+ styles2["transform"] = transformForCss({
6236
+ transform,
6237
+ startCentered: true,
6238
+ width,
6239
+ height
6240
+ });
6241
+ styles2["-webkit-transform"] = styles2["transform"];
6242
+ }
6243
+ const styleString = joinStyles(styles2);
6244
+ if (styleString.length > 0) {
6245
+ attributes["style"] = styleString;
6246
+ }
6247
+ const val = [];
6248
+ val.push({
6249
+ tag: "span",
6250
+ attributes,
6251
+ children: [content]
6252
+ });
6253
+ if (title) {
6254
+ val.push({
6255
+ tag: "span",
6256
+ attributes: {
6257
+ class: "sr-only"
6258
+ },
6259
+ children: [title]
6260
+ });
6261
+ }
6262
+ return val;
6263
+ }
6264
+ function makeLayersCounterAbstract(params) {
6265
+ const {
6266
+ content,
6267
+ title,
6268
+ extra
6269
+ } = params;
6270
+ const attributes = _objectSpread2(_objectSpread2(_objectSpread2({}, extra.attributes), title ? {
6271
+ "title": title
6272
+ } : {}), {}, {
6273
+ "class": extra.classes.join(" ")
6274
+ });
6275
+ const styleString = joinStyles(extra.styles);
6276
+ if (styleString.length > 0) {
6277
+ attributes["style"] = styleString;
6278
+ }
6279
+ const val = [];
6280
+ val.push({
6281
+ tag: "span",
6282
+ attributes,
6283
+ children: [content]
6284
+ });
6285
+ if (title) {
6286
+ val.push({
6287
+ tag: "span",
6288
+ attributes: {
6289
+ class: "sr-only"
6290
+ },
6291
+ children: [title]
6292
+ });
6293
+ }
6294
+ return val;
6295
+ }
6296
+ var {
6297
+ styles: styles$1
6298
+ } = namespace;
6299
+ function asFoundIcon(icon2) {
6300
+ const width = icon2[0];
6301
+ const height = icon2[1];
6302
+ const [vectorData] = icon2.slice(4);
6303
+ let element = null;
6304
+ if (Array.isArray(vectorData)) {
6305
+ element = {
6306
+ tag: "g",
6307
+ attributes: {
6308
+ class: "".concat(config.cssPrefix, "-").concat(DUOTONE_CLASSES.GROUP)
6309
+ },
6310
+ children: [{
6311
+ tag: "path",
6312
+ attributes: {
6313
+ class: "".concat(config.cssPrefix, "-").concat(DUOTONE_CLASSES.SECONDARY),
6314
+ fill: "currentColor",
6315
+ d: vectorData[0]
6316
+ }
6317
+ }, {
6318
+ tag: "path",
6319
+ attributes: {
6320
+ class: "".concat(config.cssPrefix, "-").concat(DUOTONE_CLASSES.PRIMARY),
6321
+ fill: "currentColor",
6322
+ d: vectorData[1]
6323
+ }
6324
+ }]
6325
+ };
6326
+ } else {
6327
+ element = {
6328
+ tag: "path",
6329
+ attributes: {
6330
+ fill: "currentColor",
6331
+ d: vectorData
6332
+ }
6333
+ };
6334
+ }
6335
+ return {
6336
+ found: true,
6337
+ width,
6338
+ height,
6339
+ icon: element
6340
+ };
6341
+ }
6342
+ var missingIconResolutionMixin = {
6343
+ found: false,
6344
+ width: 512,
6345
+ height: 512
6346
+ };
6347
+ function maybeNotifyMissing(iconName, prefix) {
6348
+ if (!PRODUCTION && !config.showMissingIcons && iconName) {
6349
+ console.error('Icon with name "'.concat(iconName, '" and prefix "').concat(prefix, '" is missing.'));
6350
+ }
6351
+ }
6352
+ function findIcon(iconName, prefix) {
6353
+ let givenPrefix = prefix;
6354
+ if (prefix === "fa" && config.styleDefault !== null) {
6355
+ prefix = getDefaultUsablePrefix();
6356
+ }
6357
+ return new Promise((resolve, reject) => {
6358
+ if (givenPrefix === "fa") {
6359
+ const shim = byOldName(iconName) || {};
6360
+ iconName = shim.iconName || iconName;
6361
+ prefix = shim.prefix || prefix;
6362
+ }
6363
+ if (iconName && prefix && styles$1[prefix] && styles$1[prefix][iconName]) {
6364
+ const icon2 = styles$1[prefix][iconName];
6365
+ return resolve(asFoundIcon(icon2));
6366
+ }
6367
+ maybeNotifyMissing(iconName, prefix);
6368
+ resolve(_objectSpread2(_objectSpread2({}, missingIconResolutionMixin), {}, {
6369
+ icon: config.showMissingIcons && iconName ? callProvided("missingIconAbstract") || {} : {}
6370
+ }));
6371
+ });
6372
+ }
6373
+ var noop$1 = () => {
6374
+ };
6375
+ var p$2 = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {
6376
+ mark: noop$1,
6377
+ measure: noop$1
6378
+ };
6379
+ var preamble = 'FA "6.7.2"';
6380
+ var begin = (name) => {
6381
+ p$2.mark("".concat(preamble, " ").concat(name, " begins"));
6382
+ return () => end(name);
6383
+ };
6384
+ var end = (name) => {
6385
+ p$2.mark("".concat(preamble, " ").concat(name, " ends"));
6386
+ p$2.measure("".concat(preamble, " ").concat(name), "".concat(preamble, " ").concat(name, " begins"), "".concat(preamble, " ").concat(name, " ends"));
6387
+ };
6388
+ var perf = {
6389
+ begin,
6390
+ end
6391
+ };
6392
+ var noop$2 = () => {
6393
+ };
6394
+ function isWatched(node) {
6395
+ const i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;
6396
+ return typeof i2svg === "string";
6397
+ }
6398
+ function hasPrefixAndIcon(node) {
6399
+ const prefix = node.getAttribute ? node.getAttribute(DATA_PREFIX) : null;
6400
+ const icon2 = node.getAttribute ? node.getAttribute(DATA_ICON) : null;
6401
+ return prefix && icon2;
6402
+ }
6403
+ function hasBeenReplaced(node) {
6404
+ return node && node.classList && node.classList.contains && node.classList.contains(config.replacementClass);
6405
+ }
6406
+ function getMutator() {
6407
+ if (config.autoReplaceSvg === true) {
6408
+ return mutators.replace;
6409
+ }
6410
+ const mutator = mutators[config.autoReplaceSvg];
6411
+ return mutator || mutators.replace;
6412
+ }
6413
+ function createElementNS(tag) {
6414
+ return DOCUMENT.createElementNS("http://www.w3.org/2000/svg", tag);
6415
+ }
6416
+ function createElement3(tag) {
6417
+ return DOCUMENT.createElement(tag);
6418
+ }
6419
+ function convertSVG(abstractObj) {
6420
+ let params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
6421
+ const {
6422
+ ceFn = abstractObj.tag === "svg" ? createElementNS : createElement3
6423
+ } = params;
6424
+ if (typeof abstractObj === "string") {
6425
+ return DOCUMENT.createTextNode(abstractObj);
6426
+ }
6427
+ const tag = ceFn(abstractObj.tag);
6428
+ Object.keys(abstractObj.attributes || []).forEach(function(key) {
6429
+ tag.setAttribute(key, abstractObj.attributes[key]);
6430
+ });
6431
+ const children = abstractObj.children || [];
6432
+ children.forEach(function(child) {
6433
+ tag.appendChild(convertSVG(child, {
6434
+ ceFn
6435
+ }));
6436
+ });
6437
+ return tag;
6438
+ }
6439
+ function nodeAsComment(node) {
6440
+ let comment = " ".concat(node.outerHTML, " ");
6441
+ comment = "".concat(comment, "Font Awesome fontawesome.com ");
6442
+ return comment;
6443
+ }
6444
+ var mutators = {
6445
+ replace: function(mutation) {
6446
+ const node = mutation[0];
6447
+ if (node.parentNode) {
6448
+ mutation[1].forEach((abstract) => {
6449
+ node.parentNode.insertBefore(convertSVG(abstract), node);
6450
+ });
6451
+ if (node.getAttribute(DATA_FA_I2SVG) === null && config.keepOriginalSource) {
6452
+ let comment = DOCUMENT.createComment(nodeAsComment(node));
6453
+ node.parentNode.replaceChild(comment, node);
6454
+ } else {
6455
+ node.remove();
6456
+ }
6457
+ }
6458
+ },
6459
+ nest: function(mutation) {
6460
+ const node = mutation[0];
6461
+ const abstract = mutation[1];
6462
+ if (~classArray(node).indexOf(config.replacementClass)) {
6463
+ return mutators.replace(mutation);
6464
+ }
6465
+ const forSvg = new RegExp("".concat(config.cssPrefix, "-.*"));
6466
+ delete abstract[0].attributes.id;
6467
+ if (abstract[0].attributes.class) {
6468
+ const splitClasses = abstract[0].attributes.class.split(" ").reduce((acc, cls) => {
6469
+ if (cls === config.replacementClass || cls.match(forSvg)) {
6470
+ acc.toSvg.push(cls);
6471
+ } else {
6472
+ acc.toNode.push(cls);
6473
+ }
6474
+ return acc;
6475
+ }, {
6476
+ toNode: [],
6477
+ toSvg: []
6478
+ });
6479
+ abstract[0].attributes.class = splitClasses.toSvg.join(" ");
6480
+ if (splitClasses.toNode.length === 0) {
6481
+ node.removeAttribute("class");
6482
+ } else {
6483
+ node.setAttribute("class", splitClasses.toNode.join(" "));
6484
+ }
6485
+ }
6486
+ const newInnerHTML = abstract.map((a) => toHtml(a)).join("\n");
6487
+ node.setAttribute(DATA_FA_I2SVG, "");
6488
+ node.innerHTML = newInnerHTML;
6489
+ }
6490
+ };
6491
+ function performOperationSync(op) {
6492
+ op();
6493
+ }
6494
+ function perform(mutations, callback) {
6495
+ const callbackFunction = typeof callback === "function" ? callback : noop$2;
6496
+ if (mutations.length === 0) {
6497
+ callbackFunction();
6498
+ } else {
6499
+ let frame = performOperationSync;
6500
+ if (config.mutateApproach === MUTATION_APPROACH_ASYNC) {
6501
+ frame = WINDOW.requestAnimationFrame || performOperationSync;
6502
+ }
6503
+ frame(() => {
6504
+ const mutator = getMutator();
6505
+ const mark = perf.begin("mutate");
6506
+ mutations.map(mutator);
6507
+ mark();
6508
+ callbackFunction();
6509
+ });
6510
+ }
6511
+ }
6512
+ var disabled = false;
6513
+ function disableObservation() {
6514
+ disabled = true;
6515
+ }
6516
+ function enableObservation() {
6517
+ disabled = false;
6518
+ }
6519
+ var mo = null;
6520
+ function observe(options) {
6521
+ if (!MUTATION_OBSERVER) {
6522
+ return;
6523
+ }
6524
+ if (!config.observeMutations) {
6525
+ return;
6526
+ }
6527
+ const {
6528
+ treeCallback = noop$2,
6529
+ nodeCallback = noop$2,
6530
+ pseudoElementsCallback = noop$2,
6531
+ observeMutationsRoot = DOCUMENT
6532
+ } = options;
6533
+ mo = new MUTATION_OBSERVER((objects) => {
6534
+ if (disabled) return;
6535
+ const defaultPrefix = getDefaultUsablePrefix();
6536
+ toArray(objects).forEach((mutationRecord) => {
6537
+ if (mutationRecord.type === "childList" && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {
6538
+ if (config.searchPseudoElements) {
6539
+ pseudoElementsCallback(mutationRecord.target);
6540
+ }
6541
+ treeCallback(mutationRecord.target);
6542
+ }
6543
+ if (mutationRecord.type === "attributes" && mutationRecord.target.parentNode && config.searchPseudoElements) {
6544
+ pseudoElementsCallback(mutationRecord.target.parentNode);
6545
+ }
6546
+ if (mutationRecord.type === "attributes" && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {
6547
+ if (mutationRecord.attributeName === "class" && hasPrefixAndIcon(mutationRecord.target)) {
6548
+ const {
6549
+ prefix,
6550
+ iconName
6551
+ } = getCanonicalIcon(classArray(mutationRecord.target));
6552
+ mutationRecord.target.setAttribute(DATA_PREFIX, prefix || defaultPrefix);
6553
+ if (iconName) mutationRecord.target.setAttribute(DATA_ICON, iconName);
6554
+ } else if (hasBeenReplaced(mutationRecord.target)) {
6555
+ nodeCallback(mutationRecord.target);
6556
+ }
6557
+ }
6558
+ });
6559
+ });
6560
+ if (!IS_DOM) return;
6561
+ mo.observe(observeMutationsRoot, {
6562
+ childList: true,
6563
+ attributes: true,
6564
+ characterData: true,
6565
+ subtree: true
6566
+ });
6567
+ }
6568
+ function disconnect() {
6569
+ if (!mo) return;
6570
+ mo.disconnect();
6571
+ }
6572
+ function styleParser(node) {
6573
+ const style = node.getAttribute("style");
6574
+ let val = [];
6575
+ if (style) {
6576
+ val = style.split(";").reduce((acc, style2) => {
6577
+ const styles2 = style2.split(":");
6578
+ const prop = styles2[0];
6579
+ const value = styles2.slice(1);
6580
+ if (prop && value.length > 0) {
6581
+ acc[prop] = value.join(":").trim();
6582
+ }
6583
+ return acc;
6584
+ }, {});
6585
+ }
6586
+ return val;
6587
+ }
6588
+ function classParser(node) {
6589
+ const existingPrefix = node.getAttribute("data-prefix");
6590
+ const existingIconName = node.getAttribute("data-icon");
6591
+ const innerText = node.innerText !== void 0 ? node.innerText.trim() : "";
6592
+ let val = getCanonicalIcon(classArray(node));
6593
+ if (!val.prefix) {
6594
+ val.prefix = getDefaultUsablePrefix();
6595
+ }
6596
+ if (existingPrefix && existingIconName) {
6597
+ val.prefix = existingPrefix;
6598
+ val.iconName = existingIconName;
6599
+ }
6600
+ if (val.iconName && val.prefix) {
6601
+ return val;
6602
+ }
6603
+ if (val.prefix && innerText.length > 0) {
6604
+ val.iconName = byLigature(val.prefix, node.innerText) || byUnicode(val.prefix, toHex(node.innerText));
6605
+ }
6606
+ if (!val.iconName && config.autoFetchSvg && node.firstChild && node.firstChild.nodeType === Node.TEXT_NODE) {
6607
+ val.iconName = node.firstChild.data;
6608
+ }
6609
+ return val;
6610
+ }
6611
+ function attributesParser(node) {
6612
+ const extraAttributes = toArray(node.attributes).reduce((acc, attr) => {
6613
+ if (acc.name !== "class" && acc.name !== "style") {
6614
+ acc[attr.name] = attr.value;
6615
+ }
6616
+ return acc;
6617
+ }, {});
6618
+ const title = node.getAttribute("title");
6619
+ const titleId = node.getAttribute("data-fa-title-id");
6620
+ if (config.autoA11y) {
6621
+ if (title) {
6622
+ extraAttributes["aria-labelledby"] = "".concat(config.replacementClass, "-title-").concat(titleId || nextUniqueId());
6623
+ } else {
6624
+ extraAttributes["aria-hidden"] = "true";
6625
+ extraAttributes["focusable"] = "false";
6626
+ }
6627
+ }
6628
+ return extraAttributes;
6629
+ }
6630
+ function blankMeta() {
6631
+ return {
6632
+ iconName: null,
6633
+ title: null,
6634
+ titleId: null,
6635
+ prefix: null,
6636
+ transform: meaninglessTransform,
6637
+ symbol: false,
6638
+ mask: {
6639
+ iconName: null,
6640
+ prefix: null,
6641
+ rest: []
6642
+ },
6643
+ maskId: null,
6644
+ extra: {
6645
+ classes: [],
6646
+ styles: {},
6647
+ attributes: {}
6648
+ }
6649
+ };
6650
+ }
6651
+ function parseMeta(node) {
6652
+ let parser = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
6653
+ styleParser: true
6654
+ };
6655
+ const {
6656
+ iconName,
6657
+ prefix,
6658
+ rest: extraClasses
6659
+ } = classParser(node);
6660
+ const extraAttributes = attributesParser(node);
6661
+ const pluginMeta = chainHooks("parseNodeAttributes", {}, node);
6662
+ let extraStyles = parser.styleParser ? styleParser(node) : [];
6663
+ return _objectSpread2({
6664
+ iconName,
6665
+ title: node.getAttribute("title"),
6666
+ titleId: node.getAttribute("data-fa-title-id"),
6667
+ prefix,
6668
+ transform: meaninglessTransform,
6669
+ mask: {
6670
+ iconName: null,
6671
+ prefix: null,
6672
+ rest: []
6673
+ },
6674
+ maskId: null,
6675
+ symbol: false,
6676
+ extra: {
6677
+ classes: extraClasses,
6678
+ styles: extraStyles,
6679
+ attributes: extraAttributes
6680
+ }
6681
+ }, pluginMeta);
6682
+ }
6683
+ var {
6684
+ styles: styles$2
6685
+ } = namespace;
6686
+ function generateMutation(node) {
6687
+ const nodeMeta = config.autoReplaceSvg === "nest" ? parseMeta(node, {
6688
+ styleParser: false
6689
+ }) : parseMeta(node);
6690
+ if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) {
6691
+ return callProvided("generateLayersText", node, nodeMeta);
6692
+ } else {
6693
+ return callProvided("generateSvgReplacementMutation", node, nodeMeta);
6694
+ }
6695
+ }
6696
+ function getKnownPrefixes() {
6697
+ return [...Ft, ...Ia];
6698
+ }
6699
+ function onTree(root) {
6700
+ let callback = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
6701
+ if (!IS_DOM) return Promise.resolve();
6702
+ const htmlClassList = DOCUMENT.documentElement.classList;
6703
+ const hclAdd = (suffix) => htmlClassList.add("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
6704
+ const hclRemove = (suffix) => htmlClassList.remove("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
6705
+ const prefixes = config.autoFetchSvg ? getKnownPrefixes() : P.concat(Object.keys(styles$2));
6706
+ if (!prefixes.includes("fa")) {
6707
+ prefixes.push("fa");
6708
+ }
6709
+ const prefixesDomQuery = [".".concat(LAYERS_TEXT_CLASSNAME, ":not([").concat(DATA_FA_I2SVG, "])")].concat(prefixes.map((p$$1) => ".".concat(p$$1, ":not([").concat(DATA_FA_I2SVG, "])"))).join(", ");
6710
+ if (prefixesDomQuery.length === 0) {
6711
+ return Promise.resolve();
6712
+ }
6713
+ let candidates = [];
6714
+ try {
6715
+ candidates = toArray(root.querySelectorAll(prefixesDomQuery));
6716
+ } catch (e$$1) {
6717
+ }
6718
+ if (candidates.length > 0) {
6719
+ hclAdd("pending");
6720
+ hclRemove("complete");
6721
+ } else {
6722
+ return Promise.resolve();
6723
+ }
6724
+ const mark = perf.begin("onTree");
6725
+ const mutations = candidates.reduce((acc, node) => {
6726
+ try {
6727
+ const mutation = generateMutation(node);
6728
+ if (mutation) {
6729
+ acc.push(mutation);
6730
+ }
6731
+ } catch (e$$1) {
6732
+ if (!PRODUCTION) {
6733
+ if (e$$1.name === "MissingIcon") {
6734
+ console.error(e$$1);
6735
+ }
6736
+ }
6737
+ }
6738
+ return acc;
6739
+ }, []);
6740
+ return new Promise((resolve, reject) => {
6741
+ Promise.all(mutations).then((resolvedMutations) => {
6742
+ perform(resolvedMutations, () => {
6743
+ hclAdd("active");
6744
+ hclAdd("complete");
6745
+ hclRemove("pending");
6746
+ if (typeof callback === "function") callback();
6747
+ mark();
6748
+ resolve();
6749
+ });
6750
+ }).catch((e$$1) => {
6751
+ mark();
6752
+ reject(e$$1);
6753
+ });
6754
+ });
6755
+ }
6756
+ function onNode(node) {
6757
+ let callback = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
6758
+ generateMutation(node).then((mutation) => {
6759
+ if (mutation) {
6760
+ perform([mutation], callback);
6761
+ }
6762
+ });
6763
+ }
6764
+ function resolveIcons(next) {
6765
+ return function(maybeIconDefinition) {
6766
+ let params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
6767
+ const iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});
6768
+ let {
6769
+ mask
6770
+ } = params;
6771
+ if (mask) {
6772
+ mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});
6773
+ }
6774
+ return next(iconDefinition, _objectSpread2(_objectSpread2({}, params), {}, {
6775
+ mask
6776
+ }));
6777
+ };
6778
+ }
6779
+ var render = function(iconDefinition) {
6780
+ let params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
6781
+ const {
6782
+ transform = meaninglessTransform,
6783
+ symbol = false,
6784
+ mask = null,
6785
+ maskId = null,
6786
+ title = null,
6787
+ titleId = null,
6788
+ classes = [],
6789
+ attributes = {},
6790
+ styles: styles2 = {}
6791
+ } = params;
6792
+ if (!iconDefinition) return;
6793
+ const {
6794
+ prefix,
6795
+ iconName,
6796
+ icon: icon2
6797
+ } = iconDefinition;
6798
+ return domVariants(_objectSpread2({
6799
+ type: "icon"
6800
+ }, iconDefinition), () => {
6801
+ callHooks("beforeDOMElementCreation", {
6802
+ iconDefinition,
6803
+ params
6804
+ });
6805
+ if (config.autoA11y) {
6806
+ if (title) {
6807
+ attributes["aria-labelledby"] = "".concat(config.replacementClass, "-title-").concat(titleId || nextUniqueId());
6808
+ } else {
6809
+ attributes["aria-hidden"] = "true";
6810
+ attributes["focusable"] = "false";
6811
+ }
6812
+ }
6813
+ return makeInlineSvgAbstract({
6814
+ icons: {
6815
+ main: asFoundIcon(icon2),
6816
+ mask: mask ? asFoundIcon(mask.icon) : {
6817
+ found: false,
6818
+ width: null,
6819
+ height: null,
6820
+ icon: {}
6821
+ }
6822
+ },
6823
+ prefix,
6824
+ iconName,
6825
+ transform: _objectSpread2(_objectSpread2({}, meaninglessTransform), transform),
6826
+ symbol,
6827
+ title,
6828
+ maskId,
6829
+ titleId,
6830
+ extra: {
6831
+ attributes,
6832
+ styles: styles2,
6833
+ classes
6834
+ }
6835
+ });
6836
+ });
6837
+ };
6838
+ var ReplaceElements = {
6839
+ mixout() {
6840
+ return {
6841
+ icon: resolveIcons(render)
6842
+ };
6843
+ },
6844
+ hooks() {
6845
+ return {
6846
+ mutationObserverCallbacks(accumulator) {
6847
+ accumulator.treeCallback = onTree;
6848
+ accumulator.nodeCallback = onNode;
6849
+ return accumulator;
6850
+ }
6851
+ };
6852
+ },
6853
+ provides(providers$$1) {
6854
+ providers$$1.i2svg = function(params) {
6855
+ const {
6856
+ node = DOCUMENT,
6857
+ callback = () => {
6858
+ }
6859
+ } = params;
6860
+ return onTree(node, callback);
6861
+ };
6862
+ providers$$1.generateSvgReplacementMutation = function(node, nodeMeta) {
6863
+ const {
6864
+ iconName,
6865
+ title,
6866
+ titleId,
6867
+ prefix,
6868
+ transform,
6869
+ symbol,
6870
+ mask,
6871
+ maskId,
6872
+ extra
6873
+ } = nodeMeta;
6874
+ return new Promise((resolve, reject) => {
6875
+ Promise.all([findIcon(iconName, prefix), mask.iconName ? findIcon(mask.iconName, mask.prefix) : Promise.resolve({
6876
+ found: false,
6877
+ width: 512,
6878
+ height: 512,
6879
+ icon: {}
6880
+ })]).then((_ref) => {
6881
+ let [main, mask2] = _ref;
6882
+ resolve([node, makeInlineSvgAbstract({
6883
+ icons: {
6884
+ main,
6885
+ mask: mask2
6886
+ },
6887
+ prefix,
6888
+ iconName,
6889
+ transform,
6890
+ symbol,
6891
+ maskId,
6892
+ title,
6893
+ titleId,
6894
+ extra,
6895
+ watchable: true
6896
+ })]);
6897
+ }).catch(reject);
6898
+ });
6899
+ };
6900
+ providers$$1.generateAbstractIcon = function(_ref2) {
6901
+ let {
6902
+ children,
6903
+ attributes,
6904
+ main,
6905
+ transform,
6906
+ styles: styles2
6907
+ } = _ref2;
6908
+ const styleString = joinStyles(styles2);
6909
+ if (styleString.length > 0) {
6910
+ attributes["style"] = styleString;
6911
+ }
6912
+ let nextChild;
6913
+ if (transformIsMeaningful(transform)) {
6914
+ nextChild = callProvided("generateAbstractTransformGrouping", {
6915
+ main,
6916
+ transform,
6917
+ containerWidth: main.width,
6918
+ iconWidth: main.width
6919
+ });
6920
+ }
6921
+ children.push(nextChild || main.icon);
6922
+ return {
6923
+ children,
6924
+ attributes
6925
+ };
6926
+ };
6927
+ }
6928
+ };
6929
+ var Layers = {
6930
+ mixout() {
6931
+ return {
6932
+ layer(assembler) {
6933
+ let params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
6934
+ const {
6935
+ classes = []
6936
+ } = params;
6937
+ return domVariants({
6938
+ type: "layer"
6939
+ }, () => {
6940
+ callHooks("beforeDOMElementCreation", {
6941
+ assembler,
6942
+ params
6943
+ });
6944
+ let children = [];
6945
+ assembler((args) => {
6946
+ Array.isArray(args) ? args.map((a) => {
6947
+ children = children.concat(a.abstract);
6948
+ }) : children = children.concat(args.abstract);
6949
+ });
6950
+ return [{
6951
+ tag: "span",
6952
+ attributes: {
6953
+ class: ["".concat(config.cssPrefix, "-layers"), ...classes].join(" ")
6954
+ },
6955
+ children
6956
+ }];
6957
+ });
6958
+ }
6959
+ };
6960
+ }
6961
+ };
6962
+ var LayersCounter = {
6963
+ mixout() {
6964
+ return {
6965
+ counter(content) {
6966
+ let params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
6967
+ const {
6968
+ title = null,
6969
+ classes = [],
6970
+ attributes = {},
6971
+ styles: styles2 = {}
6972
+ } = params;
6973
+ return domVariants({
6974
+ type: "counter",
6975
+ content
6976
+ }, () => {
6977
+ callHooks("beforeDOMElementCreation", {
6978
+ content,
6979
+ params
6980
+ });
6981
+ return makeLayersCounterAbstract({
6982
+ content: content.toString(),
6983
+ title,
6984
+ extra: {
6985
+ attributes,
6986
+ styles: styles2,
6987
+ classes: ["".concat(config.cssPrefix, "-layers-counter"), ...classes]
6988
+ }
6989
+ });
6990
+ });
6991
+ }
6992
+ };
6993
+ }
6994
+ };
6995
+ var LayersText = {
6996
+ mixout() {
6997
+ return {
6998
+ text(content) {
6999
+ let params = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
7000
+ const {
7001
+ transform = meaninglessTransform,
7002
+ title = null,
7003
+ classes = [],
7004
+ attributes = {},
7005
+ styles: styles2 = {}
7006
+ } = params;
7007
+ return domVariants({
7008
+ type: "text",
7009
+ content
7010
+ }, () => {
7011
+ callHooks("beforeDOMElementCreation", {
7012
+ content,
7013
+ params
7014
+ });
7015
+ return makeLayersTextAbstract({
7016
+ content,
7017
+ transform: _objectSpread2(_objectSpread2({}, meaninglessTransform), transform),
7018
+ title,
7019
+ extra: {
7020
+ attributes,
7021
+ styles: styles2,
7022
+ classes: ["".concat(config.cssPrefix, "-layers-text"), ...classes]
7023
+ }
7024
+ });
7025
+ });
7026
+ }
7027
+ };
7028
+ },
7029
+ provides(providers$$1) {
7030
+ providers$$1.generateLayersText = function(node, nodeMeta) {
7031
+ const {
7032
+ title,
7033
+ transform,
7034
+ extra
7035
+ } = nodeMeta;
7036
+ let width = null;
7037
+ let height = null;
7038
+ if (IS_IE) {
7039
+ const computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);
7040
+ const boundingClientRect = node.getBoundingClientRect();
7041
+ width = boundingClientRect.width / computedFontSize;
7042
+ height = boundingClientRect.height / computedFontSize;
7043
+ }
7044
+ if (config.autoA11y && !title) {
7045
+ extra.attributes["aria-hidden"] = "true";
7046
+ }
7047
+ return Promise.resolve([node, makeLayersTextAbstract({
7048
+ content: node.innerHTML,
7049
+ width,
7050
+ height,
7051
+ transform,
7052
+ title,
7053
+ extra,
7054
+ watchable: true
7055
+ })]);
7056
+ };
7057
+ }
7058
+ };
7059
+ var CLEAN_CONTENT_PATTERN = new RegExp('"', "ug");
7060
+ var SECONDARY_UNICODE_RANGE = [1105920, 1112319];
7061
+ var _FONT_FAMILY_WEIGHT_TO_PREFIX = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, {
7062
+ FontAwesome: {
7063
+ normal: "fas",
7064
+ 400: "fas"
7065
+ }
7066
+ }), lt), wa), Yt);
7067
+ var FONT_FAMILY_WEIGHT_TO_PREFIX = Object.keys(_FONT_FAMILY_WEIGHT_TO_PREFIX).reduce((acc, key) => {
7068
+ acc[key.toLowerCase()] = _FONT_FAMILY_WEIGHT_TO_PREFIX[key];
7069
+ return acc;
7070
+ }, {});
7071
+ var FONT_FAMILY_WEIGHT_FALLBACK = Object.keys(FONT_FAMILY_WEIGHT_TO_PREFIX).reduce((acc, fontFamily) => {
7072
+ const weights = FONT_FAMILY_WEIGHT_TO_PREFIX[fontFamily];
7073
+ acc[fontFamily] = weights[900] || [...Object.entries(weights)][0][1];
7074
+ return acc;
7075
+ }, {});
7076
+ function hexValueFromContent(content) {
7077
+ const cleaned = content.replace(CLEAN_CONTENT_PATTERN, "");
7078
+ const codePoint = codePointAt(cleaned, 0);
7079
+ const isPrependTen = codePoint >= SECONDARY_UNICODE_RANGE[0] && codePoint <= SECONDARY_UNICODE_RANGE[1];
7080
+ const isDoubled = cleaned.length === 2 ? cleaned[0] === cleaned[1] : false;
7081
+ return {
7082
+ value: isDoubled ? toHex(cleaned[0]) : toHex(cleaned),
7083
+ isSecondary: isPrependTen || isDoubled
7084
+ };
7085
+ }
7086
+ function getPrefix(fontFamily, fontWeight) {
7087
+ const fontFamilySanitized = fontFamily.replace(/^['"]|['"]$/g, "").toLowerCase();
7088
+ const fontWeightInteger = parseInt(fontWeight);
7089
+ const fontWeightSanitized = isNaN(fontWeightInteger) ? "normal" : fontWeightInteger;
7090
+ return (FONT_FAMILY_WEIGHT_TO_PREFIX[fontFamilySanitized] || {})[fontWeightSanitized] || FONT_FAMILY_WEIGHT_FALLBACK[fontFamilySanitized];
7091
+ }
7092
+ function replaceForPosition(node, position) {
7093
+ const pendingAttribute = "".concat(DATA_FA_PSEUDO_ELEMENT_PENDING).concat(position.replace(":", "-"));
7094
+ return new Promise((resolve, reject) => {
7095
+ if (node.getAttribute(pendingAttribute) !== null) {
7096
+ return resolve();
7097
+ }
7098
+ const children = toArray(node.children);
7099
+ const alreadyProcessedPseudoElement = children.filter((c$$1) => c$$1.getAttribute(DATA_FA_PSEUDO_ELEMENT) === position)[0];
7100
+ const styles2 = WINDOW.getComputedStyle(node, position);
7101
+ const fontFamily = styles2.getPropertyValue("font-family");
7102
+ const fontFamilyMatch = fontFamily.match(FONT_FAMILY_PATTERN);
7103
+ const fontWeight = styles2.getPropertyValue("font-weight");
7104
+ const content = styles2.getPropertyValue("content");
7105
+ if (alreadyProcessedPseudoElement && !fontFamilyMatch) {
7106
+ node.removeChild(alreadyProcessedPseudoElement);
7107
+ return resolve();
7108
+ } else if (fontFamilyMatch && content !== "none" && content !== "") {
7109
+ const content2 = styles2.getPropertyValue("content");
7110
+ let prefix = getPrefix(fontFamily, fontWeight);
7111
+ const {
7112
+ value: hexValue,
7113
+ isSecondary
7114
+ } = hexValueFromContent(content2);
7115
+ const isV4 = fontFamilyMatch[0].startsWith("FontAwesome");
7116
+ let iconName = byUnicode(prefix, hexValue);
7117
+ let iconIdentifier = iconName;
7118
+ if (isV4) {
7119
+ const iconName4 = byOldUnicode(hexValue);
7120
+ if (iconName4.iconName && iconName4.prefix) {
7121
+ iconName = iconName4.iconName;
7122
+ prefix = iconName4.prefix;
7123
+ }
7124
+ }
7125
+ if (iconName && !isSecondary && (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || alreadyProcessedPseudoElement.getAttribute(DATA_ICON) !== iconIdentifier)) {
7126
+ node.setAttribute(pendingAttribute, iconIdentifier);
7127
+ if (alreadyProcessedPseudoElement) {
7128
+ node.removeChild(alreadyProcessedPseudoElement);
7129
+ }
7130
+ const meta = blankMeta();
7131
+ const {
7132
+ extra
7133
+ } = meta;
7134
+ extra.attributes[DATA_FA_PSEUDO_ELEMENT] = position;
7135
+ findIcon(iconName, prefix).then((main) => {
7136
+ const abstract = makeInlineSvgAbstract(_objectSpread2(_objectSpread2({}, meta), {}, {
7137
+ icons: {
7138
+ main,
7139
+ mask: emptyCanonicalIcon()
7140
+ },
7141
+ prefix,
7142
+ iconName: iconIdentifier,
7143
+ extra,
7144
+ watchable: true
7145
+ }));
7146
+ const element = DOCUMENT.createElementNS("http://www.w3.org/2000/svg", "svg");
7147
+ if (position === "::before") {
7148
+ node.insertBefore(element, node.firstChild);
7149
+ } else {
7150
+ node.appendChild(element);
7151
+ }
7152
+ element.outerHTML = abstract.map((a$$1) => toHtml(a$$1)).join("\n");
7153
+ node.removeAttribute(pendingAttribute);
7154
+ resolve();
7155
+ }).catch(reject);
7156
+ } else {
7157
+ resolve();
7158
+ }
7159
+ } else {
7160
+ resolve();
7161
+ }
7162
+ });
7163
+ }
7164
+ function replace(node) {
7165
+ return Promise.all([replaceForPosition(node, "::before"), replaceForPosition(node, "::after")]);
7166
+ }
7167
+ function processable(node) {
7168
+ 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");
7169
+ }
7170
+ function searchPseudoElements(root) {
7171
+ if (!IS_DOM) return;
7172
+ return new Promise((resolve, reject) => {
7173
+ const operations = toArray(root.querySelectorAll("*")).filter(processable).map(replace);
7174
+ const end2 = perf.begin("searchPseudoElements");
7175
+ disableObservation();
7176
+ Promise.all(operations).then(() => {
7177
+ end2();
7178
+ enableObservation();
7179
+ resolve();
7180
+ }).catch(() => {
7181
+ end2();
7182
+ enableObservation();
7183
+ reject();
7184
+ });
7185
+ });
7186
+ }
7187
+ var PseudoElements = {
7188
+ hooks() {
7189
+ return {
7190
+ mutationObserverCallbacks(accumulator) {
7191
+ accumulator.pseudoElementsCallback = searchPseudoElements;
7192
+ return accumulator;
7193
+ }
7194
+ };
7195
+ },
7196
+ provides(providers2) {
7197
+ providers2.pseudoElements2svg = function(params) {
7198
+ const {
7199
+ node = DOCUMENT
7200
+ } = params;
7201
+ if (config.searchPseudoElements) {
7202
+ searchPseudoElements(node);
7203
+ }
7204
+ };
7205
+ }
7206
+ };
7207
+ var _unwatched = false;
7208
+ var MutationObserver$1 = {
7209
+ mixout() {
7210
+ return {
7211
+ dom: {
7212
+ unwatch() {
7213
+ disableObservation();
7214
+ _unwatched = true;
7215
+ }
7216
+ }
7217
+ };
7218
+ },
7219
+ hooks() {
7220
+ return {
7221
+ bootstrap() {
7222
+ observe(chainHooks("mutationObserverCallbacks", {}));
7223
+ },
7224
+ noAuto() {
7225
+ disconnect();
7226
+ },
7227
+ watch(params) {
7228
+ const {
7229
+ observeMutationsRoot
7230
+ } = params;
7231
+ if (_unwatched) {
7232
+ enableObservation();
7233
+ } else {
7234
+ observe(chainHooks("mutationObserverCallbacks", {
7235
+ observeMutationsRoot
7236
+ }));
7237
+ }
7238
+ }
7239
+ };
7240
+ }
7241
+ };
7242
+ var parseTransformString = (transformString) => {
7243
+ let transform = {
7244
+ size: 16,
7245
+ x: 0,
7246
+ y: 0,
7247
+ flipX: false,
7248
+ flipY: false,
7249
+ rotate: 0
7250
+ };
7251
+ return transformString.toLowerCase().split(" ").reduce((acc, n) => {
7252
+ const parts = n.toLowerCase().split("-");
7253
+ const first = parts[0];
7254
+ let rest = parts.slice(1).join("-");
7255
+ if (first && rest === "h") {
7256
+ acc.flipX = true;
7257
+ return acc;
7258
+ }
7259
+ if (first && rest === "v") {
7260
+ acc.flipY = true;
7261
+ return acc;
7262
+ }
7263
+ rest = parseFloat(rest);
7264
+ if (isNaN(rest)) {
7265
+ return acc;
7266
+ }
7267
+ switch (first) {
7268
+ case "grow":
7269
+ acc.size = acc.size + rest;
7270
+ break;
7271
+ case "shrink":
7272
+ acc.size = acc.size - rest;
7273
+ break;
7274
+ case "left":
7275
+ acc.x = acc.x - rest;
7276
+ break;
7277
+ case "right":
7278
+ acc.x = acc.x + rest;
7279
+ break;
7280
+ case "up":
7281
+ acc.y = acc.y - rest;
7282
+ break;
7283
+ case "down":
7284
+ acc.y = acc.y + rest;
7285
+ break;
7286
+ case "rotate":
7287
+ acc.rotate = acc.rotate + rest;
7288
+ break;
7289
+ }
7290
+ return acc;
7291
+ }, transform);
7292
+ };
7293
+ var PowerTransforms = {
7294
+ mixout() {
7295
+ return {
7296
+ parse: {
7297
+ transform: (transformString) => {
7298
+ return parseTransformString(transformString);
7299
+ }
7300
+ }
7301
+ };
7302
+ },
7303
+ hooks() {
7304
+ return {
7305
+ parseNodeAttributes(accumulator, node) {
7306
+ const transformString = node.getAttribute("data-fa-transform");
7307
+ if (transformString) {
7308
+ accumulator.transform = parseTransformString(transformString);
7309
+ }
7310
+ return accumulator;
7311
+ }
7312
+ };
7313
+ },
7314
+ provides(providers2) {
7315
+ providers2.generateAbstractTransformGrouping = function(_ref) {
7316
+ let {
7317
+ main,
7318
+ transform,
7319
+ containerWidth,
7320
+ iconWidth
7321
+ } = _ref;
7322
+ const outer = {
7323
+ transform: "translate(".concat(containerWidth / 2, " 256)")
7324
+ };
7325
+ const innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
7326
+ const innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
7327
+ const innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
7328
+ const inner = {
7329
+ transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
7330
+ };
7331
+ const path = {
7332
+ transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
7333
+ };
7334
+ const operations = {
7335
+ outer,
7336
+ inner,
7337
+ path
7338
+ };
7339
+ return {
7340
+ tag: "g",
7341
+ attributes: _objectSpread2({}, operations.outer),
7342
+ children: [{
7343
+ tag: "g",
7344
+ attributes: _objectSpread2({}, operations.inner),
7345
+ children: [{
7346
+ tag: main.icon.tag,
7347
+ children: main.icon.children,
7348
+ attributes: _objectSpread2(_objectSpread2({}, main.icon.attributes), operations.path)
7349
+ }]
7350
+ }]
7351
+ };
7352
+ };
7353
+ }
7354
+ };
7355
+ var ALL_SPACE = {
7356
+ x: 0,
7357
+ y: 0,
7358
+ width: "100%",
7359
+ height: "100%"
7360
+ };
7361
+ function fillBlack(abstract) {
7362
+ let force = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
7363
+ if (abstract.attributes && (abstract.attributes.fill || force)) {
7364
+ abstract.attributes.fill = "black";
7365
+ }
7366
+ return abstract;
7367
+ }
7368
+ function deGroup(abstract) {
7369
+ if (abstract.tag === "g") {
7370
+ return abstract.children;
7371
+ } else {
7372
+ return [abstract];
7373
+ }
7374
+ }
7375
+ var Masks = {
7376
+ hooks() {
7377
+ return {
7378
+ parseNodeAttributes(accumulator, node) {
7379
+ const maskData = node.getAttribute("data-fa-mask");
7380
+ const mask = !maskData ? emptyCanonicalIcon() : getCanonicalIcon(maskData.split(" ").map((i) => i.trim()));
7381
+ if (!mask.prefix) {
7382
+ mask.prefix = getDefaultUsablePrefix();
7383
+ }
7384
+ accumulator.mask = mask;
7385
+ accumulator.maskId = node.getAttribute("data-fa-mask-id");
7386
+ return accumulator;
7387
+ }
7388
+ };
7389
+ },
7390
+ provides(providers2) {
7391
+ providers2.generateAbstractMask = function(_ref) {
7392
+ let {
7393
+ children,
7394
+ attributes,
7395
+ main,
7396
+ mask,
7397
+ maskId: explicitMaskId,
7398
+ transform
7399
+ } = _ref;
7400
+ const {
7401
+ width: mainWidth,
7402
+ icon: mainPath
7403
+ } = main;
7404
+ const {
7405
+ width: maskWidth,
7406
+ icon: maskPath
7407
+ } = mask;
7408
+ const trans = transformForSvg({
7409
+ transform,
7410
+ containerWidth: maskWidth,
7411
+ iconWidth: mainWidth
7412
+ });
7413
+ const maskRect = {
7414
+ tag: "rect",
7415
+ attributes: _objectSpread2(_objectSpread2({}, ALL_SPACE), {}, {
7416
+ fill: "white"
7417
+ })
7418
+ };
7419
+ const maskInnerGroupChildrenMixin = mainPath.children ? {
7420
+ children: mainPath.children.map(fillBlack)
7421
+ } : {};
7422
+ const maskInnerGroup = {
7423
+ tag: "g",
7424
+ attributes: _objectSpread2({}, trans.inner),
7425
+ children: [fillBlack(_objectSpread2({
7426
+ tag: mainPath.tag,
7427
+ attributes: _objectSpread2(_objectSpread2({}, mainPath.attributes), trans.path)
7428
+ }, maskInnerGroupChildrenMixin))]
7429
+ };
7430
+ const maskOuterGroup = {
7431
+ tag: "g",
7432
+ attributes: _objectSpread2({}, trans.outer),
7433
+ children: [maskInnerGroup]
7434
+ };
7435
+ const maskId = "mask-".concat(explicitMaskId || nextUniqueId());
7436
+ const clipId = "clip-".concat(explicitMaskId || nextUniqueId());
7437
+ const maskTag = {
7438
+ tag: "mask",
7439
+ attributes: _objectSpread2(_objectSpread2({}, ALL_SPACE), {}, {
7440
+ id: maskId,
7441
+ maskUnits: "userSpaceOnUse",
7442
+ maskContentUnits: "userSpaceOnUse"
7443
+ }),
7444
+ children: [maskRect, maskOuterGroup]
7445
+ };
7446
+ const defs = {
7447
+ tag: "defs",
7448
+ children: [{
7449
+ tag: "clipPath",
7450
+ attributes: {
7451
+ id: clipId
7452
+ },
7453
+ children: deGroup(maskPath)
7454
+ }, maskTag]
7455
+ };
7456
+ children.push(defs, {
7457
+ tag: "rect",
7458
+ attributes: _objectSpread2({
7459
+ fill: "currentColor",
7460
+ "clip-path": "url(#".concat(clipId, ")"),
7461
+ mask: "url(#".concat(maskId, ")")
7462
+ }, ALL_SPACE)
7463
+ });
7464
+ return {
7465
+ children,
7466
+ attributes
7467
+ };
7468
+ };
7469
+ }
7470
+ };
7471
+ var MissingIconIndicator = {
7472
+ provides(providers2) {
7473
+ let reduceMotion = false;
7474
+ if (WINDOW.matchMedia) {
7475
+ reduceMotion = WINDOW.matchMedia("(prefers-reduced-motion: reduce)").matches;
7476
+ }
7477
+ providers2.missingIconAbstract = function() {
7478
+ const gChildren = [];
7479
+ const FILL = {
7480
+ fill: "currentColor"
7481
+ };
7482
+ const ANIMATION_BASE = {
7483
+ attributeType: "XML",
7484
+ repeatCount: "indefinite",
7485
+ dur: "2s"
7486
+ };
7487
+ gChildren.push({
7488
+ tag: "path",
7489
+ attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
7490
+ 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"
7491
+ })
7492
+ });
7493
+ const OPACITY_ANIMATE = _objectSpread2(_objectSpread2({}, ANIMATION_BASE), {}, {
7494
+ attributeName: "opacity"
7495
+ });
7496
+ const dot = {
7497
+ tag: "circle",
7498
+ attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
7499
+ cx: "256",
7500
+ cy: "364",
7501
+ r: "28"
7502
+ }),
7503
+ children: []
7504
+ };
7505
+ if (!reduceMotion) {
7506
+ dot.children.push({
7507
+ tag: "animate",
7508
+ attributes: _objectSpread2(_objectSpread2({}, ANIMATION_BASE), {}, {
7509
+ attributeName: "r",
7510
+ values: "28;14;28;28;14;28;"
7511
+ })
7512
+ }, {
7513
+ tag: "animate",
7514
+ attributes: _objectSpread2(_objectSpread2({}, OPACITY_ANIMATE), {}, {
7515
+ values: "1;0;1;1;0;1;"
7516
+ })
7517
+ });
7518
+ }
7519
+ gChildren.push(dot);
7520
+ gChildren.push({
7521
+ tag: "path",
7522
+ attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
7523
+ opacity: "1",
7524
+ 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"
7525
+ }),
7526
+ children: reduceMotion ? [] : [{
7527
+ tag: "animate",
7528
+ attributes: _objectSpread2(_objectSpread2({}, OPACITY_ANIMATE), {}, {
7529
+ values: "1;0;0;0;0;1;"
7530
+ })
7531
+ }]
7532
+ });
7533
+ if (!reduceMotion) {
7534
+ gChildren.push({
7535
+ tag: "path",
7536
+ attributes: _objectSpread2(_objectSpread2({}, FILL), {}, {
7537
+ opacity: "0",
7538
+ 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"
7539
+ }),
7540
+ children: [{
7541
+ tag: "animate",
7542
+ attributes: _objectSpread2(_objectSpread2({}, OPACITY_ANIMATE), {}, {
7543
+ values: "0;0;1;1;0;0;"
7544
+ })
7545
+ }]
7546
+ });
7547
+ }
7548
+ return {
7549
+ tag: "g",
7550
+ attributes: {
7551
+ "class": "missing"
7552
+ },
7553
+ children: gChildren
7554
+ };
7555
+ };
7556
+ }
7557
+ };
7558
+ var SvgSymbols = {
7559
+ hooks() {
7560
+ return {
7561
+ parseNodeAttributes(accumulator, node) {
7562
+ const symbolData = node.getAttribute("data-fa-symbol");
7563
+ const symbol = symbolData === null ? false : symbolData === "" ? true : symbolData;
7564
+ accumulator["symbol"] = symbol;
7565
+ return accumulator;
7566
+ }
7567
+ };
7568
+ }
7569
+ };
7570
+ var plugins = [InjectCSS, ReplaceElements, Layers, LayersCounter, LayersText, PseudoElements, MutationObserver$1, PowerTransforms, Masks, MissingIconIndicator, SvgSymbols];
7571
+ registerPlugins(plugins, {
7572
+ mixoutsTo: api
7573
+ });
7574
+ api.noAuto;
7575
+ api.config;
7576
+ api.library;
7577
+ api.dom;
7578
+ var parse$1 = api.parse;
7579
+ api.findIconDefinition;
7580
+ api.toHtml;
7581
+ var icon = api.icon;
7582
+ api.layer;
7583
+ api.text;
7584
+ api.counter;
7585
+
7586
+ // ../../node_modules/.pnpm/@fortawesome+react-fontawesome@0.2.6_@fortawesome+fontawesome-svg-core@6.7.2_react@19.2.2/node_modules/@fortawesome/react-fontawesome/index.es.js
7587
+ var import_prop_types = __toESM(require_prop_types());
7588
+ function _arrayLikeToArray(r3, a) {
7589
+ (null == a || a > r3.length) && (a = r3.length);
7590
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r3[e];
7591
+ return n;
7592
+ }
7593
+ function _arrayWithHoles(r3) {
7594
+ if (Array.isArray(r3)) return r3;
7595
+ }
7596
+ function _arrayWithoutHoles(r3) {
7597
+ if (Array.isArray(r3)) return _arrayLikeToArray(r3);
7598
+ }
7599
+ function _defineProperty2(e, r3, t2) {
7600
+ return (r3 = _toPropertyKey2(r3)) in e ? Object.defineProperty(e, r3, {
7601
+ value: t2,
7602
+ enumerable: true,
7603
+ configurable: true,
7604
+ writable: true
7605
+ }) : e[r3] = t2, e;
7606
+ }
7607
+ function _iterableToArray(r3) {
7608
+ if ("undefined" != typeof Symbol && null != r3[Symbol.iterator] || null != r3["@@iterator"]) return Array.from(r3);
7609
+ }
7610
+ function _iterableToArrayLimit(r3, l) {
7611
+ var t2 = null == r3 ? null : "undefined" != typeof Symbol && r3[Symbol.iterator] || r3["@@iterator"];
7612
+ if (null != t2) {
7613
+ var e, n, i, u, a = [], f = true, o2 = false;
7614
+ try {
7615
+ if (i = (t2 = t2.call(r3)).next, 0 === l) ; else for (; !(f = (e = i.call(t2)).done) && (a.push(e.value), a.length !== l); f = true) ;
7616
+ } catch (r4) {
7617
+ o2 = true, n = r4;
7618
+ } finally {
7619
+ try {
7620
+ if (!f && null != t2.return && (u = t2.return(), Object(u) !== u)) return;
7621
+ } finally {
7622
+ if (o2) throw n;
7623
+ }
7624
+ }
7625
+ return a;
7626
+ }
7627
+ }
7628
+ function _nonIterableRest() {
7629
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
7630
+ }
7631
+ function _nonIterableSpread() {
7632
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
7633
+ }
7634
+ function ownKeys2(e, r3) {
7635
+ var t2 = Object.keys(e);
7636
+ if (Object.getOwnPropertySymbols) {
7637
+ var o2 = Object.getOwnPropertySymbols(e);
7638
+ r3 && (o2 = o2.filter(function(r4) {
7639
+ return Object.getOwnPropertyDescriptor(e, r4).enumerable;
7640
+ })), t2.push.apply(t2, o2);
7641
+ }
7642
+ return t2;
7643
+ }
7644
+ function _objectSpread22(e) {
7645
+ for (var r3 = 1; r3 < arguments.length; r3++) {
7646
+ var t2 = null != arguments[r3] ? arguments[r3] : {};
7647
+ r3 % 2 ? ownKeys2(Object(t2), true).forEach(function(r4) {
7648
+ _defineProperty2(e, r4, t2[r4]);
7649
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t2)) : ownKeys2(Object(t2)).forEach(function(r4) {
7650
+ Object.defineProperty(e, r4, Object.getOwnPropertyDescriptor(t2, r4));
7651
+ });
7652
+ }
7653
+ return e;
7654
+ }
7655
+ function _objectWithoutProperties(e, t2) {
7656
+ if (null == e) return {};
7657
+ var o2, r3, i = _objectWithoutPropertiesLoose(e, t2);
7658
+ if (Object.getOwnPropertySymbols) {
7659
+ var n = Object.getOwnPropertySymbols(e);
7660
+ for (r3 = 0; r3 < n.length; r3++) o2 = n[r3], -1 === t2.indexOf(o2) && {}.propertyIsEnumerable.call(e, o2) && (i[o2] = e[o2]);
7661
+ }
7662
+ return i;
7663
+ }
7664
+ function _objectWithoutPropertiesLoose(r3, e) {
7665
+ if (null == r3) return {};
7666
+ var t2 = {};
7667
+ for (var n in r3) if ({}.hasOwnProperty.call(r3, n)) {
7668
+ if (-1 !== e.indexOf(n)) continue;
7669
+ t2[n] = r3[n];
7670
+ }
7671
+ return t2;
7672
+ }
7673
+ function _slicedToArray(r3, e) {
7674
+ return _arrayWithHoles(r3) || _iterableToArrayLimit(r3, e) || _unsupportedIterableToArray(r3, e) || _nonIterableRest();
7675
+ }
7676
+ function _toConsumableArray(r3) {
7677
+ return _arrayWithoutHoles(r3) || _iterableToArray(r3) || _unsupportedIterableToArray(r3) || _nonIterableSpread();
7678
+ }
7679
+ function _toPrimitive2(t2, r3) {
7680
+ if ("object" != typeof t2 || !t2) return t2;
7681
+ var e = t2[Symbol.toPrimitive];
7682
+ if (void 0 !== e) {
7683
+ var i = e.call(t2, r3);
7684
+ if ("object" != typeof i) return i;
7685
+ throw new TypeError("@@toPrimitive must return a primitive value.");
7686
+ }
7687
+ return ("string" === r3 ? String : Number)(t2);
7688
+ }
7689
+ function _toPropertyKey2(t2) {
7690
+ var i = _toPrimitive2(t2, "string");
7691
+ return "symbol" == typeof i ? i : i + "";
7692
+ }
7693
+ function _typeof(o2) {
7694
+ "@babel/helpers - typeof";
7695
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o3) {
7696
+ return typeof o3;
7697
+ } : function(o3) {
7698
+ return o3 && "function" == typeof Symbol && o3.constructor === Symbol && o3 !== Symbol.prototype ? "symbol" : typeof o3;
7699
+ }, _typeof(o2);
7700
+ }
7701
+ function _unsupportedIterableToArray(r3, a) {
7702
+ if (r3) {
7703
+ if ("string" == typeof r3) return _arrayLikeToArray(r3, a);
7704
+ var t2 = {}.toString.call(r3).slice(8, -1);
7705
+ return "Object" === t2 && r3.constructor && (t2 = r3.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r3) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray(r3, a) : void 0;
7706
+ }
7707
+ }
7708
+ var ICON_PACKS_STARTING_VERSION = "7.0.0";
7709
+ var SVG_CORE_VERSION;
7710
+ try {
7711
+ svgCorePackageJson = require_package();
7712
+ SVG_CORE_VERSION = svgCorePackageJson.version;
7713
+ } catch (e) {
7714
+ SVG_CORE_VERSION = typeof process !== "undefined" && process.env.FA_VERSION || "7.0.0";
7715
+ }
7716
+ var svgCorePackageJson;
7717
+ function classList(props) {
7718
+ var beat = props.beat, fade = props.fade, beatFade = props.beatFade, bounce = props.bounce, shake = props.shake, flash = props.flash, spin = props.spin, spinPulse = props.spinPulse, spinReverse = props.spinReverse, pulse = props.pulse, fixedWidth = props.fixedWidth, inverse = props.inverse, border = props.border, listItem = props.listItem, flip = props.flip, size = props.size, rotation = props.rotation, pull = props.pull, swapOpacity = props.swapOpacity, rotateBy = props.rotateBy, widthAuto = props.widthAuto;
7719
+ var isVersion7OrLater = versionCheckGte(SVG_CORE_VERSION, ICON_PACKS_STARTING_VERSION);
7720
+ var classes = _defineProperty2(_defineProperty2(_defineProperty2(_defineProperty2(_defineProperty2(_defineProperty2({
7721
+ "fa-beat": beat,
7722
+ "fa-fade": fade,
7723
+ "fa-beat-fade": beatFade,
7724
+ "fa-bounce": bounce,
7725
+ "fa-shake": shake,
7726
+ "fa-flash": flash,
7727
+ "fa-spin": spin,
7728
+ "fa-spin-reverse": spinReverse,
7729
+ "fa-spin-pulse": spinPulse,
7730
+ "fa-pulse": pulse,
7731
+ "fa-fw": fixedWidth,
7732
+ "fa-inverse": inverse,
7733
+ "fa-border": border,
7734
+ "fa-li": listItem,
7735
+ "fa-flip": flip === true,
7736
+ "fa-flip-horizontal": flip === "horizontal" || flip === "both",
7737
+ "fa-flip-vertical": flip === "vertical" || flip === "both"
7738
+ }, "fa-".concat(size), typeof size !== "undefined" && size !== null), "fa-rotate-".concat(rotation), typeof rotation !== "undefined" && rotation !== null && rotation !== 0), "fa-pull-".concat(pull), typeof pull !== "undefined" && pull !== null), "fa-swap-opacity", swapOpacity), "fa-rotate-by", isVersion7OrLater && rotateBy), "fa-width-auto", isVersion7OrLater && widthAuto);
7739
+ return Object.keys(classes).map(function(key) {
7740
+ return classes[key] ? key : null;
7741
+ }).filter(function(key) {
7742
+ return key;
7743
+ });
7744
+ }
7745
+ function versionCheckGte(version1, version2) {
7746
+ var _version1$split = version1.split("-"), _version1$split2 = _slicedToArray(_version1$split, 2), v1Base = _version1$split2[0], v1PreRelease = _version1$split2[1];
7747
+ var _version2$split = version2.split("-"), _version2$split2 = _slicedToArray(_version2$split, 2), v2Base = _version2$split2[0], v2PreRelease = _version2$split2[1];
7748
+ var v1Parts = v1Base.split(".");
7749
+ var v2Parts = v2Base.split(".");
7750
+ for (var i = 0; i < Math.max(v1Parts.length, v2Parts.length); i++) {
7751
+ var v1Part = v1Parts[i] || "0";
7752
+ var v2Part = v2Parts[i] || "0";
7753
+ var v1Num = parseInt(v1Part, 10);
7754
+ var v2Num = parseInt(v2Part, 10);
7755
+ if (v1Num !== v2Num) {
7756
+ return v1Num > v2Num;
7757
+ }
7758
+ }
7759
+ for (var _i = 0; _i < Math.max(v1Parts.length, v2Parts.length); _i++) {
7760
+ var _v1Part = v1Parts[_i] || "0";
7761
+ var _v2Part = v2Parts[_i] || "0";
7762
+ if (_v1Part !== _v2Part) {
7763
+ if (_v1Part.length !== _v2Part.length) {
7764
+ return _v1Part.length < _v2Part.length;
7765
+ }
7766
+ }
7767
+ }
7768
+ if (v1PreRelease && !v2PreRelease) return false;
7769
+ if (!v1PreRelease && v2PreRelease) return true;
7770
+ return true;
7771
+ }
7772
+ function _isNumerical(obj) {
7773
+ obj = obj - 0;
7774
+ return obj === obj;
7775
+ }
7776
+ function camelize(string) {
7777
+ if (_isNumerical(string)) {
7778
+ return string;
7779
+ }
7780
+ string = string.replace(/[\-_\s]+(.)?/g, function(match, chr) {
7781
+ return chr ? chr.toUpperCase() : "";
7782
+ });
7783
+ return string.substr(0, 1).toLowerCase() + string.substr(1);
7784
+ }
7785
+ var _excluded = ["style"];
7786
+ function capitalize(val) {
7787
+ return val.charAt(0).toUpperCase() + val.slice(1);
7788
+ }
7789
+ function styleToObject(style) {
7790
+ return style.split(";").map(function(s2) {
7791
+ return s2.trim();
7792
+ }).filter(function(s2) {
7793
+ return s2;
7794
+ }).reduce(function(acc, pair) {
7795
+ var i = pair.indexOf(":");
7796
+ var prop = camelize(pair.slice(0, i));
7797
+ var value = pair.slice(i + 1).trim();
7798
+ prop.startsWith("webkit") ? acc[capitalize(prop)] = value : acc[prop] = value;
7799
+ return acc;
7800
+ }, {});
7801
+ }
7802
+ function convert(createElement4, element) {
7803
+ var extraProps = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
7804
+ if (typeof element === "string") {
7805
+ return element;
7806
+ }
7807
+ var children = (element.children || []).map(function(child) {
7808
+ return convert(createElement4, child);
7809
+ });
7810
+ var mixins = Object.keys(element.attributes || {}).reduce(function(acc, key) {
7811
+ var val = element.attributes[key];
7812
+ switch (key) {
7813
+ case "class":
7814
+ acc.attrs["className"] = val;
7815
+ delete element.attributes["class"];
7816
+ break;
7817
+ case "style":
7818
+ acc.attrs["style"] = styleToObject(val);
7819
+ break;
7820
+ default:
7821
+ if (key.indexOf("aria-") === 0 || key.indexOf("data-") === 0) {
7822
+ acc.attrs[key.toLowerCase()] = val;
7823
+ } else {
7824
+ acc.attrs[camelize(key)] = val;
7825
+ }
7826
+ }
7827
+ return acc;
7828
+ }, {
7829
+ attrs: {}
7830
+ });
7831
+ var _extraProps$style = extraProps.style, existingStyle = _extraProps$style === void 0 ? {} : _extraProps$style, remaining = _objectWithoutProperties(extraProps, _excluded);
7832
+ mixins.attrs["style"] = _objectSpread22(_objectSpread22({}, mixins.attrs["style"]), existingStyle);
7833
+ return createElement4.apply(void 0, [element.tag, _objectSpread22(_objectSpread22({}, mixins.attrs), remaining)].concat(_toConsumableArray(children)));
7834
+ }
7835
+ var PRODUCTION2 = false;
7836
+ try {
7837
+ PRODUCTION2 = process.env.NODE_ENV === "production";
7838
+ } catch (e) {
7839
+ }
7840
+ function log() {
7841
+ if (!PRODUCTION2 && console && typeof console.error === "function") {
7842
+ var _console;
7843
+ (_console = console).error.apply(_console, arguments);
7844
+ }
7845
+ }
7846
+ function normalizeIconArgs(icon2) {
7847
+ if (icon2 && _typeof(icon2) === "object" && icon2.prefix && icon2.iconName && icon2.icon) {
7848
+ return icon2;
7849
+ }
7850
+ if (parse$1.icon) {
7851
+ return parse$1.icon(icon2);
7852
+ }
7853
+ if (icon2 === null) {
7854
+ return null;
7855
+ }
7856
+ if (icon2 && _typeof(icon2) === "object" && icon2.prefix && icon2.iconName) {
7857
+ return icon2;
7858
+ }
7859
+ if (Array.isArray(icon2) && icon2.length === 2) {
7860
+ return {
7861
+ prefix: icon2[0],
7862
+ iconName: icon2[1]
7863
+ };
7864
+ }
7865
+ if (typeof icon2 === "string") {
7866
+ return {
7867
+ prefix: "fas",
7868
+ iconName: icon2
7869
+ };
7870
+ }
7871
+ }
7872
+ function objectWithKey(key, value) {
7873
+ return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? _defineProperty2({}, key, value) : {};
7874
+ }
7875
+ var defaultProps = {
7876
+ border: false,
7877
+ className: "",
7878
+ mask: null,
7879
+ maskId: null,
7880
+ // the fixedWidth property has been deprecated as of version 7
7881
+ fixedWidth: false,
7882
+ inverse: false,
7883
+ flip: false,
7884
+ icon: null,
7885
+ listItem: false,
7886
+ pull: null,
7887
+ pulse: false,
7888
+ rotation: null,
7889
+ rotateBy: false,
7890
+ size: null,
7891
+ spin: false,
7892
+ spinPulse: false,
7893
+ spinReverse: false,
7894
+ beat: false,
7895
+ fade: false,
7896
+ beatFade: false,
7897
+ bounce: false,
7898
+ shake: false,
7899
+ symbol: false,
7900
+ title: "",
7901
+ titleId: null,
7902
+ transform: null,
7903
+ swapOpacity: false,
7904
+ widthAuto: false
7905
+ };
7906
+ var FontAwesomeIcon = /* @__PURE__ */ React3__default.forwardRef(function(props, ref) {
7907
+ var allProps = _objectSpread22(_objectSpread22({}, defaultProps), props);
7908
+ var iconArgs = allProps.icon, maskArgs = allProps.mask, symbol = allProps.symbol, className = allProps.className, title = allProps.title, titleId = allProps.titleId, maskId = allProps.maskId;
7909
+ var iconLookup = normalizeIconArgs(iconArgs);
7910
+ var classes = objectWithKey("classes", [].concat(_toConsumableArray(classList(allProps)), _toConsumableArray((className || "").split(" "))));
7911
+ var transform = objectWithKey("transform", typeof allProps.transform === "string" ? parse$1.transform(allProps.transform) : allProps.transform);
7912
+ var mask = objectWithKey("mask", normalizeIconArgs(maskArgs));
7913
+ var renderedIcon = icon(iconLookup, _objectSpread22(_objectSpread22(_objectSpread22(_objectSpread22({}, classes), transform), mask), {}, {
7914
+ symbol,
7915
+ title,
7916
+ titleId,
7917
+ maskId
7918
+ }));
7919
+ if (!renderedIcon) {
7920
+ log("Could not find icon", iconLookup);
7921
+ return null;
7922
+ }
7923
+ var abstract = renderedIcon.abstract;
7924
+ var extraProps = {
7925
+ ref
7926
+ };
7927
+ Object.keys(allProps).forEach(function(key) {
7928
+ if (!defaultProps.hasOwnProperty(key)) {
7929
+ extraProps[key] = allProps[key];
7930
+ }
7931
+ });
7932
+ return convertCurry(abstract[0], extraProps);
7933
+ });
7934
+ FontAwesomeIcon.displayName = "FontAwesomeIcon";
7935
+ FontAwesomeIcon.propTypes = {
7936
+ beat: import_prop_types.default.bool,
7937
+ border: import_prop_types.default.bool,
7938
+ beatFade: import_prop_types.default.bool,
7939
+ bounce: import_prop_types.default.bool,
7940
+ className: import_prop_types.default.string,
7941
+ fade: import_prop_types.default.bool,
7942
+ flash: import_prop_types.default.bool,
7943
+ mask: import_prop_types.default.oneOfType([import_prop_types.default.object, import_prop_types.default.array, import_prop_types.default.string]),
7944
+ maskId: import_prop_types.default.string,
7945
+ // the fixedWidth property has been deprecated as of version 7
7946
+ fixedWidth: import_prop_types.default.bool,
7947
+ inverse: import_prop_types.default.bool,
7948
+ flip: import_prop_types.default.oneOf([true, false, "horizontal", "vertical", "both"]),
7949
+ icon: import_prop_types.default.oneOfType([import_prop_types.default.object, import_prop_types.default.array, import_prop_types.default.string]),
7950
+ listItem: import_prop_types.default.bool,
7951
+ pull: import_prop_types.default.oneOf(["right", "left"]),
7952
+ pulse: import_prop_types.default.bool,
7953
+ rotation: import_prop_types.default.oneOf([0, 90, 180, 270]),
7954
+ rotateBy: import_prop_types.default.bool,
7955
+ shake: import_prop_types.default.bool,
7956
+ size: import_prop_types.default.oneOf(["2xs", "xs", "sm", "lg", "xl", "2xl", "1x", "2x", "3x", "4x", "5x", "6x", "7x", "8x", "9x", "10x"]),
7957
+ spin: import_prop_types.default.bool,
7958
+ spinPulse: import_prop_types.default.bool,
7959
+ spinReverse: import_prop_types.default.bool,
7960
+ symbol: import_prop_types.default.oneOfType([import_prop_types.default.bool, import_prop_types.default.string]),
7961
+ title: import_prop_types.default.string,
7962
+ titleId: import_prop_types.default.string,
7963
+ transform: import_prop_types.default.oneOfType([import_prop_types.default.string, import_prop_types.default.object]),
7964
+ swapOpacity: import_prop_types.default.bool,
7965
+ widthAuto: import_prop_types.default.bool
7966
+ };
7967
+ var convertCurry = convert.bind(null, React3__default.createElement);
7968
+
7969
+ // ../../node_modules/.pnpm/@fortawesome+pro-solid-svg-icons@6.7.2/node_modules/@fortawesome/pro-solid-svg-icons/index.mjs
7970
+ var faGripVertical = {
7971
+ prefix: "fas",
7972
+ iconName: "grip-vertical",
7973
+ icon: [320, 512, [], "f58e", "M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z"]
7974
+ };
7975
+ var faCircleXmark = {
7976
+ prefix: "fas",
7977
+ iconName: "circle-xmark",
7978
+ icon: [512, 512, [61532, "times-circle", "xmark-circle"], "f057", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"]
7979
+ };
7980
+
7981
+ // src/components/slots/SlotDelete.tsx
7982
+ var SlotDelete = (props) => {
7983
+ const { slotId, onDelete } = props;
7984
+ return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(Button, { variant: "ghost", size: "iconSm", onClick: onDelete }, /* @__PURE__ */ React.createElement(FontAwesomeIcon, { icon: faCircleXmark, className: "uii:text-red-500" })));
7985
+ };
7986
+
7987
+ // src/components/slots/SlotDragHandle.tsx
7988
+ var SlotDragHandle = (props) => {
7989
+ const { slotId } = props;
7990
+ return /* @__PURE__ */ React.createElement("div", { className: "uii:cursor-grab" }, /* @__PURE__ */ React.createElement(FontAwesomeIcon, { icon: faGripVertical }));
7991
+ };
7992
+ /*! Bundled license information:
7993
+
7994
+ react-is/cjs/react-is.production.min.js:
7995
+ (** @license React v16.13.1
7996
+ * react-is.production.min.js
7997
+ *
7998
+ * Copyright (c) Facebook, Inc. and its affiliates.
7999
+ *
8000
+ * This source code is licensed under the MIT license found in the
8001
+ * LICENSE file in the root directory of this source tree.
8002
+ *)
8003
+
8004
+ react-is/cjs/react-is.development.js:
8005
+ (** @license React v16.13.1
8006
+ * react-is.development.js
8007
+ *
8008
+ * Copyright (c) Facebook, Inc. and its affiliates.
8009
+ *
8010
+ * This source code is licensed under the MIT license found in the
8011
+ * LICENSE file in the root directory of this source tree.
8012
+ *)
8013
+
8014
+ object-assign/index.js:
8015
+ (*
8016
+ object-assign
8017
+ (c) Sindre Sorhus
8018
+ @license MIT
8019
+ *)
8020
+
8021
+ @fortawesome/fontawesome-svg-core/index.mjs:
8022
+ (*!
8023
+ * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
8024
+ * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
8025
+ * Copyright 2024 Fonticons, Inc.
8026
+ *)
8027
+
8028
+ @fortawesome/pro-solid-svg-icons/index.mjs:
8029
+ (*!
8030
+ * Font Awesome Pro 6.7.2 by @fontawesome - https://fontawesome.com
8031
+ * License - https://fontawesome.com/license (Commercial License)
8032
+ * Copyright 2024 Fonticons, Inc.
8033
+ *)
8034
+ */
3260
8035
 
3261
- export { ExportManager, SlotElements };
8036
+ export { ExportManager, SlotDelete, SlotDragHandle, SlotElements, SlotEnable };
3262
8037
  //# sourceMappingURL=index.js.map
3263
8038
  //# sourceMappingURL=index.js.map