@ansible/ansible-ui-framework
Version:
A framework for building applications using PatternFly.
1,323 lines (1,321 loc) • 1.42 MB
JavaScript
var AM = Object.defineProperty;
var N1 = (e) => {
throw TypeError(e);
};
var EM = (e, t, n) => t in e ? AM(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
var ie = (e, t, n) => EM(e, typeof t != "symbol" ? t + "" : t, n), $1 = (e, t, n) => t.has(e) || N1("Cannot " + n);
var Vn = (e, t, n) => ($1(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Sc = (e, t, n) => t.has(e) ? N1("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Tr = (e, t, n, r) => ($1(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
var th = (e, t, n, r) => ({
set _(i) {
Tr(e, t, i, n);
},
get _() {
return Vn(e, t, r);
}
});
import * as xy from "react";
import k, { createContext as Xt, useContext as gt, useCallback as Z, useState as K, useRef as Le, useEffect as pe, useMemo as ue, useDebugValue as q1, createElement as Hv, Fragment as Ct, useId as Bk, lazy as Vk, Suspense as Uk, Component as jM, useLayoutEffect as Rd, Children as Ro, isValidElement as Rl, cloneElement as Ie, forwardRef as os, useReducer as DM, useImperativeHandle as PM } from "react";
import { MenuToggle as Ha, MenuToggleCheckbox as MM, DropdownItem as Xi, Dropdown as Fd, DropdownList as Nd, Popover as Gv, Icon as ui, Stack as Sr, StackItem as Ao, Button as we, Bullseye as Fl, Spinner as $d, PageSection as ra, Skeleton as qr, Divider as Ji, Tooltip as Gr, Switch as Hk, ButtonVariant as gr, Split as Ga, Flex as Gt, FlexItem as Je, AlertGroup as Gk, Alert as si, AlertActionCloseButton as IM, DrawerPanelContent as LM, DrawerHead as RM, DrawerActions as FM, DrawerCloseButton as NM, DrawerPanelBody as $M, Drawer as qM, DrawerContent as zM, DrawerContentBody as WM, EmptyState as Ya, EmptyStateBody as di, EmptyStateFooter as ss, EmptyStateActions as Nl, PageSidebar as BM, PageSidebarBody as VM, Nav as UM, NavList as HM, NavItem as GM, Label as fi, NavExpandable as YM, NotificationDrawerListItem as KM, NotificationDrawerListItemHeader as ZM, NotificationDrawerListItemBody as XM, NotificationDrawerGroup as JM, NotificationDrawerList as QM, EmptyStateVariant as Yk, NotificationDrawer as eI, NotificationDrawerHeader as tI, NotificationDrawerBody as nI, NotificationDrawerGroupList as rI, Page as iI, ClipboardCopy as aI, SplitItem as Fn, LabelGroup as $l, Card as Kk, CardHeader as Zk, Content as Ea, Title as gl, CardBody as Yv, CardFooter as Xk, ProgressStepper as oI, ProgressStep as sI, DescriptionListTerm as by, DescriptionListGroup as xo, DescriptionListDescription as bo, DescriptionList as Ou, Select as Kv, MenuSearch as Jk, MenuSearchInput as Qk, SearchInput as eT, SelectOption as ql, SelectGroup as tT, MenuFooter as Zv, SelectList as Xv, Badge as lI, debounce as cI, ActionList as Jv, ActionListItem as ja, ToolbarItem as nr, DatePicker as z1, isValidDate as W1, InputGroup as qd, InputGroupItem as pl, TextInputGroup as nT, TextInputGroupMain as rT, TextInputGroupUtilities as iT, ToolbarToggleGroup as uI, ToolbarFilter as dI, ToolbarGroup as Eo, ToggleGroup as aT, ToggleGroupItem as ol, Toolbar as _y, ToolbarContent as Sy, Modal as zl, ModalVariant as Wl, ModalHeader as Bl, ModalBody as Fo, ModalFooter as ls, Pagination as fI, PaginationVariant as hI, CardTitle as gI, Truncate as pI, DataList as mI, DataListItem as yI, DataListItemRow as vI, DataListCheck as xI, DataListItemCells as bI, DataListCell as B1, DataListAction as _I, ProgressVariant as V1, Progress as SI, ProgressSize as wI, Checkbox as oT, Form as sT, Grid as CI, ActionGroup as OI, FormGroup as kI, FormHelperText as TI, HelperText as AI, HelperTextItem as EI, TextArea as jI, TextInput as DI, Breadcrumb as PI, BreadcrumbItem as MI, Masthead as II, MastheadMain as LI, MastheadBrand as RI, MastheadLogo as FI, MastheadContent as NI, MastheadToggle as $I, PageToggleButton as qI, NotificationBadge as zI, Tab as WI, Tabs as U1, ActionListGroup as BI } from "@patternfly/react-core";
import { OutlinedQuestionCircleIcon as lT, ExternalLinkAltIcon as Qv, SyncAltIcon as ex, EllipsisVIcon as tx, CaretDownIcon as cT, CircleIcon as VI, ExclamationCircleIcon as Vl, AngleRightIcon as UI, TimesIcon as Ul, TimesCircleIcon as HI, ArrowRightIcon as GI, FilterIcon as uT, SearchIcon as cs, SortAmountDownIcon as YI, SortAmountUpIcon as KI, SortNumericDownAltIcon as ZI, SortNumericUpIcon as XI, SortAlphaDownAltIcon as JI, SortAlphaUpIcon as QI, ColumnsIcon as eL, TableIcon as H1, ListIcon as G1, ThLargeIcon as Y1, PlusCircleIcon as dT, CubesIcon as tL, PendingIcon as nL, CheckCircleIcon as rL, ExclamationTriangleIcon as iL, WrenchIcon as aL, AngleDownIcon as oL, CopyIcon as sL, UploadIcon as lL, DownloadIcon as cL, EyeIcon as fT, EyeSlashIcon as hT, MoonIcon as uL, SunIcon as dL } from "@patternfly/react-icons";
import { TableContext as gT, Table as nx, Thead as pT, Tr as No, Th as ba, Td as Sn, Tbody as rx, CollapseColumn as fL } from "@patternfly/react-table";
import { Link as Yr, useNavigate as ia, useMatch as hL, Outlet as gL, Routes as pL, Route as mL } from "react-router";
import * as Pr from "monaco-editor";
import { configureMonacoYaml as yL } from "monaco-yaml";
var wc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function Re(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
var Cc = { exports: {} }, Ps = {};
/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var K1;
function vL() {
if (K1) return Ps;
K1 = 1;
var e = k, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
function o(s, l, c) {
var u, d = {}, f = null, h = null;
c !== void 0 && (f = "" + c), l.key !== void 0 && (f = "" + l.key), l.ref !== void 0 && (h = l.ref);
for (u in l) r.call(l, u) && !a.hasOwnProperty(u) && (d[u] = l[u]);
if (s && s.defaultProps) for (u in l = s.defaultProps, l) d[u] === void 0 && (d[u] = l[u]);
return { $$typeof: t, type: s, key: f, ref: h, props: d, _owner: i.current };
}
return Ps.Fragment = n, Ps.jsx = o, Ps.jsxs = o, Ps;
}
var Ms = {};
/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Z1;
function xL() {
return Z1 || (Z1 = 1, process.env.NODE_ENV !== "production" && function() {
var e = k, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), p = Symbol.iterator, m = "@@iterator";
function y(L) {
if (L === null || typeof L != "object")
return null;
var se = p && L[p] || L[m];
return typeof se == "function" ? se : null;
}
var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function v(L) {
{
for (var se = arguments.length, me = new Array(se > 1 ? se - 1 : 0), Ae = 1; Ae < se; Ae++)
me[Ae - 1] = arguments[Ae];
_("error", L, me);
}
}
function _(L, se, me) {
{
var Ae = x.ReactDebugCurrentFrame, He = Ae.getStackAddendum();
He !== "" && (se += "%s", me = me.concat([He]));
var nt = me.map(function($e) {
return String($e);
});
nt.unshift("Warning: " + se), Function.prototype.apply.call(console[L], console, nt);
}
}
var b = !1, S = !1, w = !1, C = !1, O = !1, j;
j = Symbol.for("react.module.reference");
function D(L) {
return !!(typeof L == "string" || typeof L == "function" || L === r || L === a || O || L === i || L === c || L === u || C || L === h || b || S || w || typeof L == "object" && L !== null && (L.$$typeof === f || L.$$typeof === d || L.$$typeof === o || L.$$typeof === s || L.$$typeof === l || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since
// we don't know which Flight build this will end up being used
// with.
L.$$typeof === j || L.getModuleId !== void 0));
}
function E(L, se, me) {
var Ae = L.displayName;
if (Ae)
return Ae;
var He = se.displayName || se.name || "";
return He !== "" ? me + "(" + He + ")" : me;
}
function T(L) {
return L.displayName || "Context";
}
function A(L) {
if (L == null)
return null;
if (typeof L.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof L == "function")
return L.displayName || L.name || null;
if (typeof L == "string")
return L;
switch (L) {
case r:
return "Fragment";
case n:
return "Portal";
case a:
return "Profiler";
case i:
return "StrictMode";
case c:
return "Suspense";
case u:
return "SuspenseList";
}
if (typeof L == "object")
switch (L.$$typeof) {
case s:
var se = L;
return T(se) + ".Consumer";
case o:
var me = L;
return T(me._context) + ".Provider";
case l:
return E(L, L.render, "ForwardRef");
case d:
var Ae = L.displayName || null;
return Ae !== null ? Ae : A(L.type) || "Memo";
case f: {
var He = L, nt = He._payload, $e = He._init;
try {
return A($e(nt));
} catch {
return null;
}
}
}
return null;
}
var P = Object.assign, I = 0, U, G, W, $, R, q, ee;
function ce() {
}
ce.__reactDisabledLog = !0;
function re() {
{
if (I === 0) {
U = console.log, G = console.info, W = console.warn, $ = console.error, R = console.group, q = console.groupCollapsed, ee = console.groupEnd;
var L = {
configurable: !0,
enumerable: !0,
value: ce,
writable: !0
};
Object.defineProperties(console, {
info: L,
log: L,
warn: L,
error: L,
group: L,
groupCollapsed: L,
groupEnd: L
});
}
I++;
}
}
function te() {
{
if (I--, I === 0) {
var L = {
configurable: !0,
enumerable: !0,
writable: !0
};
Object.defineProperties(console, {
log: P({}, L, {
value: U
}),
info: P({}, L, {
value: G
}),
warn: P({}, L, {
value: W
}),
error: P({}, L, {
value: $
}),
group: P({}, L, {
value: R
}),
groupCollapsed: P({}, L, {
value: q
}),
groupEnd: P({}, L, {
value: ee
})
});
}
I < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
}
}
var X = x.ReactCurrentDispatcher, ae;
function le(L, se, me) {
{
if (ae === void 0)
try {
throw Error();
} catch (He) {
var Ae = He.stack.trim().match(/\n( *(at )?)/);
ae = Ae && Ae[1] || "";
}
return `
` + ae + L;
}
}
var z = !1, J;
{
var de = typeof WeakMap == "function" ? WeakMap : Map;
J = new de();
}
function F(L, se) {
if (!L || z)
return "";
{
var me = J.get(L);
if (me !== void 0)
return me;
}
var Ae;
z = !0;
var He = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var nt;
nt = X.current, X.current = null, re();
try {
if (se) {
var $e = function() {
throw Error();
};
if (Object.defineProperty($e.prototype, "props", {
set: function() {
throw Error();
}
}), typeof Reflect == "object" && Reflect.construct) {
try {
Reflect.construct($e, []);
} catch (mn) {
Ae = mn;
}
Reflect.construct(L, [], $e);
} else {
try {
$e.call();
} catch (mn) {
Ae = mn;
}
L.call($e.prototype);
}
} else {
try {
throw Error();
} catch (mn) {
Ae = mn;
}
L();
}
} catch (mn) {
if (mn && Ae && typeof mn.stack == "string") {
for (var Fe = mn.stack.split(`
`), rn = Ae.stack.split(`
`), wt = Fe.length - 1, At = rn.length - 1; wt >= 1 && At >= 0 && Fe[wt] !== rn[At]; )
At--;
for (; wt >= 1 && At >= 0; wt--, At--)
if (Fe[wt] !== rn[At]) {
if (wt !== 1 || At !== 1)
do
if (wt--, At--, At < 0 || Fe[wt] !== rn[At]) {
var Bn = `
` + Fe[wt].replace(" at new ", " at ");
return L.displayName && Bn.includes("<anonymous>") && (Bn = Bn.replace("<anonymous>", L.displayName)), typeof L == "function" && J.set(L, Bn), Bn;
}
while (wt >= 1 && At >= 0);
break;
}
}
} finally {
z = !1, X.current = nt, te(), Error.prepareStackTrace = He;
}
var so = L ? L.displayName || L.name : "", da = so ? le(so) : "";
return typeof L == "function" && J.set(L, da), da;
}
function ye(L, se, me) {
return F(L, !1);
}
function _e(L) {
var se = L.prototype;
return !!(se && se.isReactComponent);
}
function ve(L, se, me) {
if (L == null)
return "";
if (typeof L == "function")
return F(L, _e(L));
if (typeof L == "string")
return le(L);
switch (L) {
case c:
return le("Suspense");
case u:
return le("SuspenseList");
}
if (typeof L == "object")
switch (L.$$typeof) {
case l:
return ye(L.render);
case d:
return ve(L.type, se, me);
case f: {
var Ae = L, He = Ae._payload, nt = Ae._init;
try {
return ve(nt(He), se, me);
} catch {
}
}
}
return "";
}
var qe = Object.prototype.hasOwnProperty, be = {}, M = x.ReactDebugCurrentFrame;
function N(L) {
if (L) {
var se = L._owner, me = ve(L.type, L._source, se ? se.type : null);
M.setExtraStackFrame(me);
} else
M.setExtraStackFrame(null);
}
function V(L, se, me, Ae, He) {
{
var nt = Function.call.bind(qe);
for (var $e in L)
if (nt(L, $e)) {
var Fe = void 0;
try {
if (typeof L[$e] != "function") {
var rn = Error((Ae || "React class") + ": " + me + " type `" + $e + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof L[$e] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
throw rn.name = "Invariant Violation", rn;
}
Fe = L[$e](se, $e, Ae, me, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
} catch (wt) {
Fe = wt;
}
Fe && !(Fe instanceof Error) && (N(He), v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Ae || "React class", me, $e, typeof Fe), N(null)), Fe instanceof Error && !(Fe.message in be) && (be[Fe.message] = !0, N(He), v("Failed %s type: %s", me, Fe.message), N(null));
}
}
}
var fe = Array.isArray;
function oe(L) {
return fe(L);
}
function Q(L) {
{
var se = typeof Symbol == "function" && Symbol.toStringTag, me = se && L[Symbol.toStringTag] || L.constructor.name || "Object";
return me;
}
}
function B(L) {
try {
return ne(L), !1;
} catch {
return !0;
}
}
function ne(L) {
return "" + L;
}
function Ce(L) {
if (B(L))
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Q(L)), ne(L);
}
var Te = x.ReactCurrentOwner, ze = {
key: !0,
ref: !0,
__self: !0,
__source: !0
}, Qe, ft;
function Mt(L) {
if (qe.call(L, "ref")) {
var se = Object.getOwnPropertyDescriptor(L, "ref").get;
if (se && se.isReactWarning)
return !1;
}
return L.ref !== void 0;
}
function Tt(L) {
if (qe.call(L, "key")) {
var se = Object.getOwnPropertyDescriptor(L, "key").get;
if (se && se.isReactWarning)
return !1;
}
return L.key !== void 0;
}
function St(L, se) {
typeof L.ref == "string" && Te.current;
}
function Bt(L, se) {
{
var me = function() {
Qe || (Qe = !0, v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", se));
};
me.isReactWarning = !0, Object.defineProperty(L, "key", {
get: me,
configurable: !0
});
}
}
function Ne(L, se) {
{
var me = function() {
ft || (ft = !0, v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", se));
};
me.isReactWarning = !0, Object.defineProperty(L, "ref", {
get: me,
configurable: !0
});
}
}
var yt = function(L, se, me, Ae, He, nt, $e) {
var Fe = {
// This tag allows us to uniquely identify this as a React Element
$$typeof: t,
// Built-in properties that belong on the element
type: L,
key: se,
ref: me,
props: $e,
// Record the component responsible for creating this element.
_owner: nt
};
return Fe._store = {}, Object.defineProperty(Fe._store, "validated", {
configurable: !1,
enumerable: !1,
writable: !0,
value: !1
}), Object.defineProperty(Fe, "_self", {
configurable: !1,
enumerable: !1,
writable: !1,
value: Ae
}), Object.defineProperty(Fe, "_source", {
configurable: !1,
enumerable: !1,
writable: !1,
value: He
}), Object.freeze && (Object.freeze(Fe.props), Object.freeze(Fe)), Fe;
};
function Dn(L, se, me, Ae, He) {
{
var nt, $e = {}, Fe = null, rn = null;
me !== void 0 && (Ce(me), Fe = "" + me), Tt(se) && (Ce(se.key), Fe = "" + se.key), Mt(se) && (rn = se.ref, St(se, He));
for (nt in se)
qe.call(se, nt) && !ze.hasOwnProperty(nt) && ($e[nt] = se[nt]);
if (L && L.defaultProps) {
var wt = L.defaultProps;
for (nt in wt)
$e[nt] === void 0 && ($e[nt] = wt[nt]);
}
if (Fe || rn) {
var At = typeof L == "function" ? L.displayName || L.name || "Unknown" : L;
Fe && Bt($e, At), rn && Ne($e, At);
}
return yt(L, Fe, rn, He, Ae, Te.current, $e);
}
}
var Vt = x.ReactCurrentOwner, Di = x.ReactDebugCurrentFrame;
function kr(L) {
if (L) {
var se = L._owner, me = ve(L.type, L._source, se ? se.type : null);
Di.setExtraStackFrame(me);
} else
Di.setExtraStackFrame(null);
}
var Jf;
Jf = !1;
function Qf(L) {
return typeof L == "object" && L !== null && L.$$typeof === t;
}
function P1() {
{
if (Vt.current) {
var L = A(Vt.current.type);
if (L)
return `
Check the render method of \`` + L + "`.";
}
return "";
}
}
function vM(L) {
return "";
}
var M1 = {};
function xM(L) {
{
var se = P1();
if (!se) {
var me = typeof L == "string" ? L : L.displayName || L.name;
me && (se = `
Check the top-level render call using <` + me + ">.");
}
return se;
}
}
function I1(L, se) {
{
if (!L._store || L._store.validated || L.key != null)
return;
L._store.validated = !0;
var me = xM(se);
if (M1[me])
return;
M1[me] = !0;
var Ae = "";
L && L._owner && L._owner !== Vt.current && (Ae = " It was passed a child from " + A(L._owner.type) + "."), kr(L), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', me, Ae), kr(null);
}
}
function L1(L, se) {
{
if (typeof L != "object")
return;
if (oe(L))
for (var me = 0; me < L.length; me++) {
var Ae = L[me];
Qf(Ae) && I1(Ae, se);
}
else if (Qf(L))
L._store && (L._store.validated = !0);
else if (L) {
var He = y(L);
if (typeof He == "function" && He !== L.entries)
for (var nt = He.call(L), $e; !($e = nt.next()).done; )
Qf($e.value) && I1($e.value, se);
}
}
}
function bM(L) {
{
var se = L.type;
if (se == null || typeof se == "string")
return;
var me;
if (typeof se == "function")
me = se.propTypes;
else if (typeof se == "object" && (se.$$typeof === l || // Note: Memo only checks outer props here.
// Inner props are checked in the reconciler.
se.$$typeof === d))
me = se.propTypes;
else
return;
if (me) {
var Ae = A(se);
V(me, L.props, "prop", Ae, L);
} else if (se.PropTypes !== void 0 && !Jf) {
Jf = !0;
var He = A(se);
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", He || "Unknown");
}
typeof se.getDefaultProps == "function" && !se.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
}
}
function _M(L) {
{
for (var se = Object.keys(L.props), me = 0; me < se.length; me++) {
var Ae = se[me];
if (Ae !== "children" && Ae !== "key") {
kr(L), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Ae), kr(null);
break;
}
}
L.ref !== null && (kr(L), v("Invalid attribute `ref` supplied to `React.Fragment`."), kr(null));
}
}
var R1 = {};
function F1(L, se, me, Ae, He, nt) {
{
var $e = D(L);
if (!$e) {
var Fe = "";
(L === void 0 || typeof L == "object" && L !== null && Object.keys(L).length === 0) && (Fe += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
var rn = vM();
rn ? Fe += rn : Fe += P1();
var wt;
L === null ? wt = "null" : oe(L) ? wt = "array" : L !== void 0 && L.$$typeof === t ? (wt = "<" + (A(L.type) || "Unknown") + " />", Fe = " Did you accidentally export a JSX literal instead of a component?") : wt = typeof L, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", wt, Fe);
}
var At = Dn(L, se, me, He, nt);
if (At == null)
return At;
if ($e) {
var Bn = se.children;
if (Bn !== void 0)
if (Ae)
if (oe(Bn)) {
for (var so = 0; so < Bn.length; so++)
L1(Bn[so], L);
Object.freeze && Object.freeze(Bn);
} else
v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
else
L1(Bn, L);
}
if (qe.call(se, "key")) {
var da = A(L), mn = Object.keys(se).filter(function(TM) {
return TM !== "key";
}), eh = mn.length > 0 ? "{key: someKey, " + mn.join(": ..., ") + ": ...}" : "{key: someKey}";
if (!R1[da + eh]) {
var kM = mn.length > 0 ? "{" + mn.join(": ..., ") + ": ...}" : "{}";
v(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`, eh, da, kM, da), R1[da + eh] = !0;
}
}
return L === r ? _M(At) : bM(At), At;
}
}
function SM(L, se, me) {
return F1(L, se, me, !0);
}
function wM(L, se, me) {
return F1(L, se, me, !1);
}
var CM = wM, OM = SM;
Ms.Fragment = r, Ms.jsx = CM, Ms.jsxs = OM;
}()), Ms;
}
var X1;
function bL() {
return X1 || (X1 = 1, process.env.NODE_ENV === "production" ? Cc.exports = vL() : Cc.exports = xL()), Cc.exports;
}
var g = bL();
const _L = (e, t, n, r) => {
var a, o, s, l;
const i = [n, {
code: t,
...r || {}
}];
if ((o = (a = e == null ? void 0 : e.services) == null ? void 0 : a.logger) != null && o.forward)
return e.services.logger.forward(i, "warn", "react-i18next::", !0);
Da(i[0]) && (i[0] = `react-i18next:: ${i[0]}`), (l = (s = e == null ? void 0 : e.services) == null ? void 0 : s.logger) != null && l.warn ? e.services.logger.warn(...i) : console != null && console.warn && console.warn(...i);
}, J1 = {}, wy = (e, t, n, r) => {
Da(n) && J1[n] || (Da(n) && (J1[n] = /* @__PURE__ */ new Date()), _L(e, t, n, r));
}, mT = (e, t) => () => {
if (e.isInitialized)
t();
else {
const n = () => {
setTimeout(() => {
e.off("initialized", n);
}, 0), t();
};
e.on("initialized", n);
}
}, Cy = (e, t, n) => {
e.loadNamespaces(t, mT(e, n));
}, Q1 = (e, t, n, r) => {
if (Da(n) && (n = [n]), e.options.preload && e.options.preload.indexOf(t) > -1) return Cy(e, n, r);
n.forEach((i) => {
e.options.ns.indexOf(i) < 0 && e.options.ns.push(i);
}), e.loadLanguages(t, mT(e, r));
}, SL = (e, t, n = {}) => !t.languages || !t.languages.length ? (wy(t, "NO_LANGUAGES", "i18n.languages were undefined or empty", {
languages: t.languages
}), !0) : t.hasLoadedNamespace(e, {
lng: n.lng,
precheck: (r, i) => {
var a;
if (((a = n.bindI18n) == null ? void 0 : a.indexOf("languageChanging")) > -1 && r.services.backendConnector.backend && r.isLanguageChangingTo && !i(r.isLanguageChangingTo, e)) return !1;
}
}), Da = (e) => typeof e == "string", wL = (e) => typeof e == "object" && e !== null, CL = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, OL = {
"&": "&",
"&": "&",
"<": "<",
"<": "<",
">": ">",
">": ">",
"'": "'",
"'": "'",
""": '"',
""": '"',
" ": " ",
" ": " ",
"©": "©",
"©": "©",
"®": "®",
"®": "®",
"…": "…",
"…": "…",
"/": "/",
"/": "/"
}, kL = (e) => OL[e], TL = (e) => e.replace(CL, kL);
let AL = {
bindI18n: "languageChanged",
bindI18nStore: "",
transEmptyNodeValue: "",
transSupportBasicHtmlNodes: !0,
transWrapTextNodes: "",
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
useSuspense: !0,
unescape: TL
};
const EL = () => AL;
let jL;
const DL = () => jL, PL = Xt();
class ML {
constructor() {
this.usedNamespaces = {};
}
addUsedNamespaces(t) {
t.forEach((n) => {
this.usedNamespaces[n] || (this.usedNamespaces[n] = !0);
});
}
getUsedNamespaces() {
return Object.keys(this.usedNamespaces);
}
}
const IL = (e, t) => {
const n = Le();
return pe(() => {
n.current = e;
}, [e, t]), n.current;
}, yT = (e, t, n, r) => e.getFixedT(t, n, r), LL = (e, t, n, r) => Z(yT(e, t, n, r), [e, t, n, r]), Pe = (e, t = {}) => {
var b, S, w, C;
const {
i18n: n
} = t, {
i18n: r,
defaultNS: i
} = gt(PL) || {}, a = n || r || DL();
if (a && !a.reportNamespaces && (a.reportNamespaces = new ML()), !a) {
wy(a, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
const O = (D, E) => Da(E) ? E : wL(E) && Da(E.defaultValue) ? E.defaultValue : Array.isArray(D) ? D[D.length - 1] : D, j = [O, {}, !1];
return j.t = O, j.i18n = {}, j.ready = !1, j;
}
(b = a.options.react) != null && b.wait && wy(a, "DEPRECATED_OPTION", "useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
const o = {
...EL(),
...a.options.react,
...t
}, {
useSuspense: s,
keyPrefix: l
} = o;
let c = i || ((S = a.options) == null ? void 0 : S.defaultNS);
c = Da(c) ? [c] : c || ["translation"], (C = (w = a.reportNamespaces).addUsedNamespaces) == null || C.call(w, c);
const u = (a.isInitialized || a.initializedStoreOnce) && c.every((O) => SL(O, a, o)), d = LL(a, t.lng || null, o.nsMode === "fallback" ? c : c[0], l), f = () => d, h = () => yT(a, t.lng || null, o.nsMode === "fallback" ? c : c[0], l), [p, m] = K(f);
let y = c.join();
t.lng && (y = `${t.lng}${y}`);
const x = IL(y), v = Le(!0);
pe(() => {
const {
bindI18n: O,
bindI18nStore: j
} = o;
v.current = !0, !u && !s && (t.lng ? Q1(a, t.lng, c, () => {
v.current && m(h);
}) : Cy(a, c, () => {
v.current && m(h);
})), u && x && x !== y && v.current && m(h);
const D = () => {
v.current && m(h);
};
return O && (a == null || a.on(O, D)), j && (a == null || a.store.on(j, D)), () => {
v.current = !1, a && (O == null || O.split(" ").forEach((E) => a.off(E, D))), j && a && j.split(" ").forEach((E) => a.store.off(E, D));
};
}, [a, y]), pe(() => {
v.current && u && m(f);
}, [a, l, u]);
const _ = [p, a, u];
if (_.t = p, _.i18n = a, _.ready = u, u || !u && !s) return _;
throw new Promise((O) => {
t.lng ? Q1(a, t.lng, c, () => O()) : Cy(a, c, () => O());
});
}, vT = {
by: "by",
cancelText: "Cancel",
canceledText: "Canceled",
cardView: "Card view",
clearAllFilters: "Clear all filters",
clickToRefresh: "Click to refresh",
closeText: "Close",
confirmText: "Confirm",
countMore: "{count} more",
documentation: "Documentation",
errorText: "Error",
filter: "Filter",
listView: "List view",
manageColumns: "Manage columns",
moreInformation: "More information",
noItemsFound: "No items found",
noResultsFound: "No results found",
noResultsMatchCriteria: "No results match this filter criteria. Clear all filters and try again.",
noSelection: "No selection",
noSelections: "No selections",
noneSelectedText: "None - Please make a selection below.",
ofText: "of",
pendingText: "Pending",
pleaseFixValidationErrors: "Please fix validation errors.",
processingText: "Processing",
selectNone: "Select none",
selectedText: "Selected",
showLess: "Show less",
sort: "Sort",
submitText: "Submit",
submittingText: "Submitting",
successText: "Success",
tableView: "Table view",
unknownError: "Unknown error",
validating: "Validating..."
}, xT = Xt([vT, () => alert("Use FrameworkTranslationsProvider")]);
function RL(e) {
const t = K(vT);
return /* @__PURE__ */ g.jsx(xT.Provider, { value: t, children: e.children });
}
function kt() {
return gt(xT);
}
const Is = 16, Ar = {
sm: 36 * Is,
md: 48 * Is,
lg: 62 * Is,
xl: 75 * Is,
xxl: 90.625 * Is
};
function FL() {
const [e, t] = K(() => window.innerWidth <= Ar.sm ? "xs" : window.innerWidth <= Ar.md ? "sm" : window.innerWidth <= Ar.lg ? "md" : window.innerWidth <= Ar.xl ? "lg" : window.innerWidth <= Ar.xxl ? "xl" : "xxl"), n = Z(() => {
window.innerWidth <= Ar.sm ? t("xs") : window.innerWidth <= Ar.md ? t("sm") : window.innerWidth <= Ar.lg ? t("md") : window.innerWidth <= Ar.xl ? t("lg") : window.innerWidth <= Ar.xxl ? t("xl") : t("xxl");
}, []);
return pe(() => {
const r = n;
return window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
}, [n]), pe(() => n(), [n]), e;
}
function $n(e) {
const t = FL();
switch (e) {
case "xs":
return !0;
case "sm":
switch (t) {
case "sm":
case "md":
case "lg":
case "xl":
case "xxl":
return !0;
default:
return !1;
}
case "md":
switch (t) {
case "md":
case "lg":
case "xl":
case "xxl":
return !0;
default:
return !1;
}
case "lg":
switch (t) {
case "lg":
case "xl":
case "xxl":
return !0;
default:
return !1;
}
case "xl":
switch (t) {
case "xl":
case "xxl":
return !0;
default:
return !1;
}
case "xxl":
switch (t) {
case "xxl":
return !0;
default:
return !1;
}
}
}
function Yce() {
const [e, t] = K(
() => window.innerWidth > window.innerHeight ? "landscape" : "portrait"
), n = Z(() => {
t(window.innerWidth > window.innerHeight ? "landscape" : "portrait");
}, []);
return pe(() => {
const r = n;
return window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
}, [n]), pe(() => n(), [n]), e;
}
function NL(e) {
const { t } = Pe(), [n, r] = K(!1), i = $n("sm"), [a] = kt(), { pageItems: o, selectedItems: s, selectItems: l, unselectAll: c, maxSelections: u } = e, d = e.itemCount !== void 0 && e.itemCount > 0 && o && o.length > 0 && (o ?? []).every((b) => s == null ? void 0 : s.includes(b)), f = Z(() => {
d ? c == null || c() : l == null || l(o ?? []);
}, [d, c, l, o]), h = ue(() => i ? s && s.length > 0 ? t("{{count}} selected", { count: s.length }) : "" : s && s.length > 0 ? `${s.length}` : "", [i, s, t]), p = ue(
() => o == null ? void 0 : o.filter((b) => !(s != null && s.includes(b))),
[o, s]
), m = ue(
() => !!(u && s && p && !d && (s == null ? void 0 : s.length) + p.length > u),
[d, u, s, p]
), y = Z(
(b) => {
const S = s ? s.length : 0;
return /* @__PURE__ */ g.jsx(
Ha,
{
splitButtonItems: [
/* @__PURE__ */ g.jsx(
MM,
{
id: "select-all",
"data-cy": "select-all",
"data-testid": "select-all",
ouiaId: "select-all",
"aria-label": t("Select all"),
isChecked: d ? !0 : S > 0 ? null : !1,
onChange: f,
children: h
},
"select-all"
)
],
onClick: () => r(!n),
isDisabled: m,
ref: b
}
);
},
[
s,
d,
f,
h,
m,
n,
t
]
), x = ue(() => /* @__PURE__ */ g.jsx(
Xi,
{
id: "select-none",
ouiaId: "select-none",
onClick: () => {
c == null || c(), r(!1);
},
children: e.selectNoneText ?? a.selectNone
},
"select-none"
), [e.selectNoneText, a.selectNone, c]), v = ue(() => /* @__PURE__ */ g.jsx(
Xi,
{
id: "select-page",
ouiaId: "select-page",
onClick: () => {
l == null || l(o ?? []), r(!1);
},
children: t("Select {{count}} page items", { count: (o == null ? void 0 : o.length) ?? 0 })
},
"select-page"
), [l, o, t]), _ = ue(() => s && s.length > 0 ? [x, v] : [v], [x, v, s]);
return (
// Negative margin is needed to align the bulk select with table checkboxes
/* @__PURE__ */ g.jsx("div", { children: /* @__PURE__ */ g.jsx(
Fd,
{
style: { zIndex: 400 },
toggle: y,
isOpen: n,
onOpenChange: (b) => r(b),
children: /* @__PURE__ */ g.jsx(Nd, { children: _ })
}
) })
);
}
function e5(e) {
let t = "collapsed";
return e.open && (t += " expanded"), /* @__PURE__ */ g.jsx("div", { className: t, children: e.children });
}
var wn = function() {
return wn = Object.assign || function(t) {
for (var n, r = 1, i = arguments.length; r < i; r++) {
n = arguments[r];
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
}
return t;
}, wn.apply(this, arguments);
};
function Fa(e, t, n) {
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++)
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
return e.concat(a || Array.prototype.slice.call(t));
}
function $L(e) {
var t = /* @__PURE__ */ Object.create(null);
return function(n) {
return t[n] === void 0 && (t[n] = e(n)), t[n];
};
}
var qL = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, zL = /* @__PURE__ */ $L(
function(e) {
return qL.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
}
/* Z+1 */
), st = "-ms-", sl = "-moz-", Ke = "-webkit-", bT = "comm", zd = "rule", ix = "decl", WL = "@import", _T = "@keyframes", BL = "@layer", ST = Math.abs, ax = String.fromCharCode, Oy = Object.assign;
function VL(e, t) {
return Ut(e, 0) ^ 45 ? (((t << 2 ^ Ut(e, 0)) << 2 ^ Ut(e, 1)) << 2 ^ Ut(e, 2)) << 2 ^ Ut(e, 3) : 0;
}
function wT(e) {
return e.trim();
}
function ni(e, t) {
return (e = t.exec(e)) ? e[0] : e;
}
function Me(e, t, n) {
return e.replace(t, n);
}
function iu(e, t, n) {
return e.indexOf(t, n);
}
function Ut(e, t) {
return e.charCodeAt(t) | 0;
}
function $o(e, t, n) {
return e.slice(t, n);
}
function Mr(e) {
return e.length;
}
function CT(e) {
return e.length;
}
function Us(e, t) {
return t.push(e), e;
}
function UL(e, t) {
return e.map(t).join("");
}
function t5(e, t) {
return e.filter(function(n) {
return !ni(n, t);
});
}
var Wd = 1, qo = 1, OT = 0, ir = 0, jt = 0, us = "";
function Bd(e, t, n, r, i, a, o, s) {
return { value: e, root: t, parent: n, type: r, props: i, children: a, line: Wd, column: qo, length: o, return: "", siblings: s };
}
function Ii(e, t) {
return Oy(Bd("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
}
function lo(e) {
for (; e.root; )
e = Ii(e.root, { children: [e] });
Us(e, e.siblings);
}
function HL() {
return jt;
}
function GL() {
return jt = ir > 0 ? Ut(us, --ir) : 0, qo--, jt === 10 && (qo = 1, Wd--), jt;
}
function _r() {
return jt = ir < OT ? Ut(us, ir++) : 0, qo++, jt === 10 && (qo = 1, Wd++), jt;
}
function Pa() {
return Ut(us, ir);
}
function au() {
return ir;
}
function Vd(e, t) {
return $o(us, e, t);
}
function ky(e) {
switch (e) {
// \0 \t \n \r \s whitespace token
case 0:
case 9:
case 10:
case 13:
case 32:
return 5;
// ! + , / > @ ~ isolate token
case 33:
case 43:
case 44:
case 47:
case 62:
case 64:
case 126:
// ; { } breakpoint token
case 59:
case 123:
case 125:
return 4;
// : accompanied token
case 58:
return 3;
// " ' ( [ opening delimit token
case 34:
case 39:
case 40:
case 91:
return 2;
// ) ] closing delimit token
case 41:
case 93:
return 1;
}
return 0;
}
function YL(e) {
return Wd = qo = 1, OT = Mr(us = e), ir = 0, [];
}
function KL(e) {
return us = "", e;
}
function nh(e) {
return wT(Vd(ir - 1, Ty(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
}
function ZL(e) {
for (; (jt = Pa()) && jt < 33; )
_r();
return ky(e) > 2 || ky(jt) > 3 ? "" : " ";
}
function XL(e, t) {
for (; --t && _r() && !(jt < 48 || jt > 102 || jt > 57 && jt < 65 || jt > 70 && jt < 97); )
;
return Vd(e, au() + (t < 6 && Pa() == 32 && _r() == 32));
}
function Ty(e) {
for (; _r(); )
switch (jt) {
// ] ) " '
case e:
return ir;
// " '
case 34:
case 39:
e !== 34 && e !== 39 && Ty(jt);
break;
// (
case 40:
e === 41 && Ty(e);
break;
// \
case 92:
_r();
break;
}
return ir;
}
function JL(e, t) {
for (; _r() && e + jt !== 57; )
if (e + jt === 84 && Pa() === 47)
break;
return "/*" + Vd(t, ir - 1) + "*" + ax(e === 47 ? e : _r());
}
function QL(e) {
for (; !ky(Pa()); )
_r();
return Vd(e, ir);
}
function eR(e) {
return KL(ou("", null, null, null, [""], e = YL(e), 0, [0], e));
}
function ou(e, t, n, r, i, a, o, s, l) {
for (var c = 0, u = 0, d = o, f = 0, h = 0, p = 0, m = 1, y = 1, x = 1, v = 0, _ = "", b = i, S = a, w = r, C = _; y; )
switch (p = v, v = _r()) {
// (
case 40:
if (p != 108 && Ut(C, d - 1) == 58) {
iu(C += Me(nh(v), "&", "&\f"), "&\f", ST(c ? s[c - 1] : 0)) != -1 && (x = -1);
break;
}
// " ' [
case 34:
case 39:
case 91:
C += nh(v);
break;
// \t \n \r \s
case 9:
case 10:
case 13:
case 32:
C += ZL(p);
break;
// \
case 92:
C += XL(au() - 1, 7);
continue;
// /
case 47:
switch (Pa()) {
case 42:
case 47:
Us(tR(JL(_r(), au()), t, n, l), l);
break;
default:
C += "/";
}
break;
// {
case 123 * m:
s[c++] = Mr(C) * x;
// } ; \0
case 125 * m:
case 59:
case 0:
switch (v) {
// \0 }
case 0:
case 125:
y = 0;
// ;
case 59 + u:
x == -1 && (C = Me(C, /\f/g, "")), h > 0 && Mr(C) - d && Us(h > 32 ? r5(C + ";", r, n, d - 1, l) : r5(Me(C, " ", "") + ";", r, n, d - 2, l), l);
break;
// @ ;
case 59:
C += ";";
// { rule/at-rule
default:
if (Us(w = n5(C, t, n, c, u, i, s, _, b = [], S = [], d, a), a), v === 123)
if (u === 0)
ou(C, t, w, w, b, a, d, s, S);
else
switch (f === 99 && Ut(C, 3) === 110 ? 100 : f) {
// d l m s
case 100:
case 108:
case 109:
case 115:
ou(e, w, w, r && Us(n5(e, w, w, 0, 0, i, s, _, i, b = [], d, S), S), i, S, d, s, r ? b : S);
break;
default:
ou(C, w, w, w, [""], S, 0, s, S);
}
}
c = u = h = 0, m = x = 1, _ = C = "", d = o;
break;
// :
case 58:
d = 1 + Mr(C), h = p;
default:
if (m < 1) {
if (v == 123)
--m;
else if (v == 125 && m++ == 0 && GL() == 125)
continue;
}
switch (C += ax(v), v * m) {
// &
case 38:
x = u > 0 ? 1 : (C += "\f", -1);
break;
// ,
case 44:
s[c++] = (Mr(C) - 1) * x, x = 1;
break;
// @
case 64:
Pa() === 45 && (C += nh(_r())), f = Pa(), u = d = Mr(_ = C += QL(au())), v++;
break;
// -
case 45:
p === 45 && Mr(C) == 2 && (m = 0);
}
}
return a;
}
function n5(e, t, n, r, i, a, o, s, l, c, u, d) {
for (var f = i - 1, h = i === 0 ? a : [""], p = CT(h), m = 0, y = 0, x = 0; m < r; ++m)
for (var v = 0, _ = $o(e, f + 1, f = ST(y = o[m])), b = e; v < p; ++v)
(b = wT(y > 0 ? h[v] + " " + _ : Me(_, /&\f/g, h[v]))) && (l[x++] = b);
return Bd(e, t, n, i === 0 ? zd : s, l, c, u, d);
}
function tR(e, t, n, r) {
return Bd(e, t, n, bT, ax(HL()), $o(e, 2, -2), 0, r);
}
function r5(e, t, n, r, i) {
return Bd(e, t, n, ix, $o(e, 0, r), $o(e, r + 1, -1), r, i);
}
function kT(e, t, n) {
switch (VL(e, t)) {
// color-adjust
case 5103:
return Ke + "print-" + e + e;
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
case 5737:
case 4201:
case 3177:
case