UNPKG

chop-logic-components

Version:

Reusable React components and hooks for the Chop Logic project

1,197 lines 89.8 kB
var jt = Object.defineProperty, wt = Object.defineProperties; var gt = Object.getOwnPropertyDescriptors; var fe = Object.getOwnPropertySymbols; var Pe = Object.prototype.hasOwnProperty, Oe = Object.prototype.propertyIsEnumerable; var Ne = (e, t, n) => t in e ? jt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, b = (e, t) => { for (var n in t || (t = {})) Pe.call(t, n) && Ne(e, n, t[n]); if (fe) for (var n of fe(t)) Oe.call(t, n) && Ne(e, n, t[n]); return e; }, v = (e, t) => wt(e, gt(t)); var p = (e, t) => { var n = {}; for (var r in e) Pe.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]); if (e != null && fe) for (var r of fe(e)) t.indexOf(r) < 0 && Oe.call(e, r) && (n[r] = e[r]); return n; }; import kt, { useCallback as W, useState as M, useEffect as B, useRef as Y, createContext as ot, useContext as Z, useId as yt } from "react"; import Ct from "react-dom"; var be = { exports: {} }, ae = {}; /** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var Ve; function Mt() { if (Ve) return ae; Ve = 1; var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment"); function n(r, o, l) { var c = null; if (l !== void 0 && (c = "" + l), o.key !== void 0 && (c = "" + o.key), "key" in o) { l = {}; for (var a in o) a !== "key" && (l[a] = o[a]); } else l = o; return o = l.ref, { $$typeof: e, type: r, key: c, ref: o !== void 0 ? o : null, props: l }; } return ae.Fragment = t, ae.jsx = n, ae.jsxs = n, ae; } var ie = {}; /** * @license React * react-jsx-runtime.development.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var We; function Et() { return We || (We = 1, process.env.NODE_ENV !== "production" && function() { function e(u) { if (u == null) return null; if (typeof u == "function") return u.$$typeof === le ? null : u.displayName || u.name || null; if (typeof u == "string") return u; switch (u) { case w: return "Fragment"; case C: return "Profiler"; case g: return "StrictMode"; case A: return "Suspense"; case $: return "SuspenseList"; case te: return "Activity"; } if (typeof u == "object") switch (typeof u.tag == "number" && console.error( "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." ), u.$$typeof) { case f: return "Portal"; case S: return (u.displayName || "Context") + ".Provider"; case E: return (u._context.displayName || "Context") + ".Consumer"; case T: var k = u.render; return u = u.displayName, u || (u = k.displayName || k.name || "", u = u !== "" ? "ForwardRef(" + u + ")" : "ForwardRef"), u; case R: return k = u.displayName || null, k !== null ? k : e(u.type) || "Memo"; case L: k = u._payload, u = u._init; try { return e(u(k)); } catch (I) { } } return null; } function t(u) { return "" + u; } function n(u) { try { t(u); var k = !1; } catch (G) { k = !0; } if (k) { k = console; var I = k.error, z = typeof Symbol == "function" && Symbol.toStringTag && u[Symbol.toStringTag] || u.constructor.name || "Object"; return I.call( k, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", z ), t(u); } } function r(u) { if (u === w) return "<>"; if (typeof u == "object" && u !== null && u.$$typeof === L) return "<...>"; try { var k = e(u); return k ? "<" + k + ">" : "<...>"; } catch (I) { return "<...>"; } } function o() { var u = q.A; return u === null ? null : u.getOwner(); } function l() { return Error("react-stack-top-frame"); } function c(u) { if (ne.call(u, "key")) { var k = Object.getOwnPropertyDescriptor(u, "key").get; if (k && k.isReactWarning) return !1; } return u.key !== void 0; } function a(u, k) { function I() { se || (se = !0, console.error( "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", k )); } I.isReactWarning = !0, Object.defineProperty(u, "key", { get: I, configurable: !0 }); } function i() { var u = e(this.type); return xe[u] || (xe[u] = !0, console.error( "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." )), u = this.props.ref, u !== void 0 ? u : null; } function h(u, k, I, z, G, V, Ae, Se) { return I = V.ref, u = { $$typeof: m, type: u, key: k, props: V, _owner: G }, (I !== void 0 ? I : null) !== null ? Object.defineProperty(u, "ref", { enumerable: !1, get: i }) : Object.defineProperty(u, "ref", { enumerable: !1, value: null }), u._store = {}, Object.defineProperty(u._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: 0 }), Object.defineProperty(u, "_debugInfo", { configurable: !1, enumerable: !1, writable: !0, value: null }), Object.defineProperty(u, "_debugStack", { configurable: !1, enumerable: !1, writable: !0, value: Ae }), Object.defineProperty(u, "_debugTask", { configurable: !1, enumerable: !1, writable: !0, value: Se }), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u; } function d(u, k, I, z, G, V, Ae, Se) { var D = k.children; if (D !== void 0) if (z) if (re(D)) { for (z = 0; z < D.length; z++) x(D[z]); Object.freeze && Object.freeze(D); } else console.error( "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead." ); else x(D); if (ne.call(k, "key")) { D = e(u); var oe = Object.keys(k).filter(function(pt) { return pt !== "key"; }); z = 0 < oe.length ? "{key: someKey, " + oe.join(": ..., ") + ": ...}" : "{key: someKey}", He[D + z] || (oe = 0 < oe.length ? "{" + oe.join(": ..., ") + ": ...}" : "{}", console.error( `A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`, z, D, oe, D ), He[D + z] = !0); } if (D = null, I !== void 0 && (n(I), D = "" + I), c(k) && (n(k.key), D = "" + k.key), "key" in k) { I = {}; for (var Te in k) Te !== "key" && (I[Te] = k[Te]); } else I = k; return D && a( I, typeof u == "function" ? u.displayName || u.name || "Unknown" : u ), h( u, D, V, G, o(), I, Ae, Se ); } function x(u) { typeof u == "object" && u !== null && u.$$typeof === m && u._store && (u._store.validated = 1); } var _ = kt, m = Symbol.for("react.transitional.element"), f = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), S = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), $ = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), te = Symbol.for("react.activity"), le = Symbol.for("react.client.reference"), q = _.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ne = Object.prototype.hasOwnProperty, re = Array.isArray, F = console.createTask ? console.createTask : function() { return null; }; _ = { "react-stack-bottom-frame": function(u) { return u(); } }; var se, xe = {}, $e = _["react-stack-bottom-frame"].bind( _, l )(), Be = F(r(l)), He = {}; ie.Fragment = w, ie.jsx = function(u, k, I, z, G) { var V = 1e4 > q.recentlyCreatedOwnerStacks++; return d( u, k, I, !1, z, G, V ? Error("react-stack-top-frame") : $e, V ? F(r(u)) : Be ); }, ie.jsxs = function(u, k, I, z, G) { var V = 1e4 > q.recentlyCreatedOwnerStacks++; return d( u, k, I, !0, z, G, V ? Error("react-stack-top-frame") : $e, V ? F(r(u)) : Be ); }; }()), ie; } var Ue; function It() { return Ue || (Ue = 1, process.env.NODE_ENV === "production" ? be.exports = Mt() : be.exports = Et()), be.exports; } var s = It(), P = /* @__PURE__ */ ((e) => (e.Success = "success", e.Error = "error", e.Warning = "warning", e.Info = "info", e.Help = "help", e))(P || {}), H = /* @__PURE__ */ ((e) => (e.Primary = "primary", e.Secondary = "secondary", e.Icon = "icon", e.Inner = "inner", e))(H || {}), j = /* @__PURE__ */ ((e) => (e.ArrowDown = "arrow-down", e.ArrowUp = "arrow-up", e.Back = "back", e.Cancel = "cancel", e.CheckboxChecked = "checkbox-checked", e.CheckboxUnchecked = "checkbox-unchecked", e.CheckMark = "check-mark", e.ChevronDown = "chevron-down", e.ChevronLeft = "chevron-left", e.ChevronRight = "chevron-right", e.ChevronUp = "chevron-up", e.Clear = "clear", e.Copy = "copy", e.Cut = "cut", e.Delete = "delete", e.Download = "download", e.Error = "error", e.Forward = "forward", e.Graduate = "graduate", e.Help = "help", e.Hide = "hide", e.Home = "home", e.Info = "info", e.Login = "login", e.Paste = "paste", e.Question = "question", e.Save = "save", e.Show = "show", e.Upload = "upload", e.Warning = "warning", e.Remove = "remove", e))(j || {}), O = /* @__PURE__ */ ((e) => (e.Dots = "dots", e.Brackets = "brackets", e.Linear = "linear", e.Square = "square", e.Circle = "circle", e.Pulse = "pulse", e.Arrow = "arrow", e.Filler = "filler", e.Rotation = "rotation", e))(O || {}), N = /* @__PURE__ */ ((e) => (e.Vertical = "vertical", e.Horizontal = "horizontal", e))(N || {}), Q = /* @__PURE__ */ ((e) => (e.Light = "cl-components-light-theme", e.Dark = "cl-components-dark-theme", e))(Q || {}), ct = /* @__PURE__ */ ((e) => (e.Span = "span", e.Div = "div", e.P = "p", e.Strong = "strong", e.Em = "em", e))(ct || {}); function At(e) { return (o) => { var l = o, { tooltip: t, visibleOn: n } = l, r = p(l, ["tooltip", "visibleOn"]); return t != null && t.length ? /* @__PURE__ */ s.jsx(mr, { tooltipContent: t, visibleOn: n, children: /* @__PURE__ */ s.jsx(e, b({}, r)) }) : /* @__PURE__ */ s.jsx(e, b({}, r)); }; } function y(e) { return e.map((n) => { if (typeof n == "string") return n.trim(); if (typeof n == "object") { const r = []; for (const o in n) n[o] && r.push(o.trim()); return r.join(" "); } }).filter((n) => !!n).join(" "); } function he(e) { const t = document.getElementById(e); t && t.focus(); } function lt({ e, options: t, onClose: n }) { let r = ""; t.forEach((l) => { document.getElementById(l.id) === document.activeElement && (r = l.id); }); const o = t.findIndex((l) => l.id === r); switch (e.key) { case "Escape": e.preventDefault(), n(); break; case "ArrowUp": { e.preventDefault(); const l = o - 1 >= 0 ? o - 1 : t.length - 1, c = t[l]; c && he(c.id); break; } case "ArrowDown": case "Tab": { e.preventDefault(); const l = o === t.length - 1 ? 0 : o + 1, c = t[l]; c && he(c.id); break; } } } const St = "_extended_1i1tp_1", Tt = { extended: St }, Lt = "_button_t94vv_2", Rt = { button: Lt }, zt = (r) => { var o = r, { children: e, className: t } = o, n = p(o, ["children", "className"]); return /* @__PURE__ */ s.jsx("button", v(b({}, n), { className: y([Rt.button, t]), children: e })); }, Dt = "_button_o1x7s_50", $t = { button: Dt }, Bt = (c) => { var a = c, { onClick: e, label: t, icon: n, disabled: r, className: o } = a, l = p(a, ["onClick", "label", "icon", "disabled", "className"]); return /* @__PURE__ */ s.jsx( "button", v(b({ className: y([$t.button, o]), onClick: e, "aria-label": t, type: "button", disabled: r }, l), { children: /* @__PURE__ */ s.jsx(U, { name: n }) }) ); }, Ht = "_button_1ps5s_2", Nt = "_button_shadow_1ps5s_16", Pt = "_button_edge_1ps5s_28", Ot = "_button_front_1ps5s_37", me = { button: Ht, button_shadow: Nt, button_edge: Pt, button_front: Ot }, Vt = (r) => { var o = r, { children: e, className: t } = o, n = p(o, ["children", "className"]); return /* @__PURE__ */ s.jsxs("button", v(b({}, n), { className: y([me.button, t]), children: [ /* @__PURE__ */ s.jsx("span", { className: me.button_shadow }), /* @__PURE__ */ s.jsx("span", { className: me.button_edge }), /* @__PURE__ */ s.jsx("span", { className: me.button_front, children: e }) ] })); }, Wt = "_button_1c4d4_2", Ut = { button: Wt }, qt = (r) => { var o = r, { children: e, className: t } = o, n = p(o, ["children", "className"]); return /* @__PURE__ */ s.jsx("button", v(b({}, n), { className: y([Ut.button, t]), children: e })); }, Ft = (d) => { var x = d, { onClick: e, text: t, icon: n, label: r, disabled: o = !1, extended: l = !1, type: c = "button", view: a = H.Primary, className: i } = x, h = p(x, [ "onClick", "text", "icon", "label", "disabled", "extended", "type", "view", "className" ]); const _ = y([i, { [Tt.extended]: l }]); switch (a) { case H.Primary: return /* @__PURE__ */ s.jsxs(Vt, v(b({ "aria-label": r, type: c, onClick: e, disabled: o, className: _ }, h), { children: [ /* @__PURE__ */ s.jsx(U, { name: n }), t ] })); case H.Secondary: return /* @__PURE__ */ s.jsxs(qt, v(b({ "aria-label": r, type: c, onClick: e, disabled: o, className: _ }, h), { children: [ /* @__PURE__ */ s.jsx(U, { name: n }), t ] })); case H.Icon: return /* @__PURE__ */ s.jsx(zt, v(b({ "aria-label": r, type: c, onClick: e, disabled: o }, h), { className: i, children: /* @__PURE__ */ s.jsx(U, { name: n }) })); case H.Inner: return /* @__PURE__ */ s.jsx(Bt, v(b({ label: r, icon: n, onClick: e, disabled: o }, h), { className: i })); default: return null; } }, J = At(Ft), Gt = "_editableText_82asy_1", Kt = "_editableText__editMode_82asy_17", Yt = "_editableText__readOnly_82asy_24", Jt = "_editableText__empty_82asy_27", ve = { editableText: Gt, editableText__editMode: Kt, editableText__readOnly: Yt, editableText__empty: Jt }, Xt = (h) => { var d = h, { multiline: e, value: t, placeholder: n, onChange: r, onBlur: o, onKeyDown: l, className: c, inputRef: a } = d, i = p(d, [ "multiline", "value", "placeholder", "onChange", "onBlur", "onKeyDown", "className", "inputRef" ]); const x = e ? "textarea" : "input", _ = W( (m) => { r(m.target.value); }, [r] ); return /* @__PURE__ */ s.jsx( x, b({ ref: a, value: t, onChange: _, onBlur: o, onKeyDown: l, placeholder: n, className: c, rows: e ? 3 : void 0 }, i) ); }, Qt = (l) => { var c = l, { value: e, placeholder: t, onClick: n, className: r } = c, o = p(c, ["value", "placeholder", "onClick", "className"]); const a = (i) => { (i.key === "Enter" || i.key === " ") && (i.preventDefault(), n(i)); }; return /* @__PURE__ */ s.jsx("span", v(b({ onClick: n, className: r, role: "button", tabIndex: 0, onKeyDown: a, "aria-label": "Editable text" }, o), { children: e || t })); }, Zt = (e, t) => { const [n, r] = M(!1), [o] = M(e !== void 0); return { editMode: o ? !!e : n, enterEditMode: () => { !o && !t && r(!0); }, exitEditMode: () => { o || r(!1); }, isControlled: o }; }, en = (e, t, n, r) => { B(() => { t && e.current && !r && (e.current.focus(), n && e.current.select()); }, [t, n, r, e]); }, tn = (e, t) => { const [n, r] = M(e); return B(() => { r(e); }, [e]), { internalValue: n, updateValue: (a) => { r(a); }, commitValue: () => { n !== e && (t == null || t(n)); }, resetValue: () => { r(e); } }; }, vo = (d) => { var x = d, { value: e, isEditMode: t, onChange: n, onClick: r, className: o, autoSelectTextOnEditMode: l = !1, multiline: c = !1, placeholder: a = "Click to edit...", readOnly: i = !1 } = x, h = p(x, [ "value", "isEditMode", "onChange", "onClick", "className", "autoSelectTextOnEditMode", "multiline", "placeholder", "readOnly" ]); const _ = Y(null), { editMode: m, enterEditMode: f, exitEditMode: w } = Zt(t, i), { internalValue: g, updateValue: C, commitValue: E, resetValue: S } = tn(e, n); en(_, m, l, i); const T = W( (L) => { r == null || r(L), f(); }, [r, f] ), A = W(() => { w(), E(); }, [w, E]), $ = W( (L) => { L.key === "Enter" && !c && (L.preventDefault(), A()), L.key === "Escape" && (S(), w()); }, [c, A, S, w] ), R = y([ ve.editableText, o, { [ve.editableText__editMode]: m, [ve.editableText__readOnly]: i, [ve.editableText__empty]: !g } ]); return m && !i ? /* @__PURE__ */ s.jsx( Xt, b({ multiline: c, value: g, placeholder: a, onChange: C, onBlur: A, onKeyDown: $, className: R, inputRef: _ }, h) ) : /* @__PURE__ */ s.jsx(Qt, b({ value: g, placeholder: a, onClick: T, className: R }, h)); }, nn = "_errorMessage_1shcy_54", rn = "_errorMessage__visible_1shcy_76", qe = { errorMessage: nn, errorMessage__visible: rn }, at = ({ errorId: e, testId: t, message: n = "Error!", visible: r = !1, className: o }) => { const l = y([qe.errorMessage, o, { [qe.errorMessage__visible]: r }]); return /* @__PURE__ */ s.jsx("span", { id: e, className: l, "data-testid": t, "aria-hidden": !r, children: n }); }, sn = "_header_os2ww_1", on = "_header_text_os2ww_15", cn = "_header__h1_os2ww_20", ln = "_header__h2_os2ww_24", an = "_header__h3_os2ww_29", dn = "_header__h4_os2ww_34", un = "_header__h5_os2ww_39", hn = "_header__h6_os2ww_44", K = { header: sn, header_text: on, header__h1: cn, header__h2: ln, header__h3: an, header__h4: dn, header__h5: un, header__h6: hn }, it = (l) => { var c = l, { as: e = "h1", icon: t, children: n, className: r } = c, o = p(c, ["as", "icon", "children", "className"]); const a = e, i = y([ r, K.header, { [K.header__h1]: e === "h1", [K.header__h2]: e === "h2", [K.header__h3]: e === "h3", [K.header__h4]: e === "h4", [K.header__h5]: e === "h5", [K.header__h6]: e === "h6" } ]); return /* @__PURE__ */ s.jsxs(a, v(b({ className: i }, o), { children: [ t && /* @__PURE__ */ s.jsx(U, { name: t }), /* @__PURE__ */ s.jsx("span", { className: K.header_text, children: n }) ] })); }; function Re(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx("path", { d: "M21.886 5.536A1.002 1.002 0 0021 5H3a1.002 1.002 0 00-.822 1.569l9 13a.998.998 0 001.644 0l9-13a.998.998 0 00.064-1.033zM12 17.243L4.908 7h14.184L12 17.243z" }) ] })); } function ze(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx("path", { d: "M3 19h18a1.002 1.002 0 00.823-1.569l-9-13c-.373-.539-1.271-.539-1.645 0l-9 13A.999.999 0 003 19zm9-12.243L19.092 17H4.908L12 6.757z" }) ] })); } function _n(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ viewBox: "0 0 512 512", fill: "currentColor", height: "1em", width: "1em", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 48, d: "M328 112L184 256l144 144" }) ] })); } function xn(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ viewBox: "0 0 470 1000", fill: "currentColor", height: "1em", width: "1em", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx("path", { d: "M452 656c12 12 18 26.333 18 43s-6 31-18 43c-12 10.667-26.333 16-43 16s-31-5.333-43-16L234 590 102 742c-12 10.667-26.333 16-43 16s-31-5.333-43-16C5.333 730 0 715.667 0 699s5.333-31 16-43l138-156L16 342C5.333 330 0 315.667 0 299s5.333-31 16-43c12-10.667 26.333-16 43-16s31 5.333 43 16l132 152 132-152c12-10.667 26.333-16 43-16s31 5.333 43 16c12 12 18 26.333 18 43s-6 31-18 43L314 500l138 156" }) ] })); } function Ce(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ viewBox: "0 0 16 16", fill: "currentColor", height: "1em", width: "1em", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx( "path", { fill: "currentColor", d: "M14 0H2C.9 0 0 .9 0 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zM7 12.414L3.293 8.707l1.414-1.414L7 9.586l4.793-4.793 1.414 1.414L7 12.414z" } ) ] })); } function Me(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ viewBox: "0 0 16 16", fill: "currentColor", height: "1em", width: "1em", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx("path", { fill: "currentColor", d: "M14 0H2C.9 0 0 .9 0 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm0 14H2V2h12v12z" }) ] })); } function dt(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ viewBox: "0 0 512 512", fill: "currentColor", height: "1em", width: "1em", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx("path", { d: "M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7l233.4-233.3c12.5-12.5 32.8-12.5 45.3 0z" }) ] })); } function fn(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ fill: "currentColor", viewBox: "0 0 16 16", height: "1em", width: "1em", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx( "path", { fillRule: "evenodd", d: "M1.553 6.776a.5.5 0 01.67-.223L8 9.44l5.776-2.888a.5.5 0 11.448.894l-6 3a.5.5 0 01-.448 0l-6-3a.5.5 0 01-.223-.67z" } ) ] })); } function bn(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ fill: "currentColor", viewBox: "0 0 16 16", height: "1em", width: "1em", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx( "path", { fillRule: "evenodd", d: "M9.224 1.553a.5.5 0 01.223.67L6.56 8l2.888 5.776a.5.5 0 11-.894.448l-3-6a.5.5 0 010-.448l3-6a.5.5 0 01.67-.223z" } ) ] })); } function mn(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ fill: "currentColor", viewBox: "0 0 16 16", height: "1em", width: "1em", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx( "path", { fillRule: "evenodd", d: "M6.776 1.553a.5.5 0 01.671.223l3 6a.5.5 0 010 .448l-3 6a.5.5 0 11-.894-.448L9.44 8 6.553 2.224a.5.5 0 01.223-.671z" } ) ] })); } function vn(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ fill: "currentColor", viewBox: "0 0 16 16", height: "1em", width: "1em", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx("path", { fillRule: "evenodd", d: "M7.776 5.553a.5.5 0 01.448 0l6 3a.5.5 0 11-.448.894L8 6.56 2.224 9.447a.5.5 0 11-.448-.894l6-3z" }) ] })); } function pn(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ viewBox: "0 0 1024 1024", fill: "currentColor", height: "1em", width: "1em", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx("defs", { children: /* @__PURE__ */ s.jsx("style", {}) }), /* @__PURE__ */ s.jsx("path", { d: "M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6c-.3 1.5-.4 3-.4 4.4 0 14.4 11.6 26 26 26h723c1.5 0 3-.1 4.4-.4 14.2-2.4 23.7-15.9 21.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z" }) ] })); } function jn(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs( "svg", v(b({ fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, viewBox: "0 0 24 24", height: "1em", width: "1em" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx("path", { d: "M11 9 H20 A2 2 0 0 1 22 11 V20 A2 2 0 0 1 20 22 H11 A2 2 0 0 1 9 20 V11 A2 2 0 0 1 11 9 z" }), /* @__PURE__ */ s.jsx("path", { d: "M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1" }) ] }) ); } function wn(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs( "svg", v(b({ fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, viewBox: "0 0 24 24", height: "1em", width: "1em", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx("path", { stroke: "none", d: "M0 0h24v24H0z" }), /* @__PURE__ */ s.jsx("path", { d: "M10 17 A3 3 0 0 1 7 20 A3 3 0 0 1 4 17 A3 3 0 0 1 10 17 z" }), /* @__PURE__ */ s.jsx("path", { d: "M20 17 A3 3 0 0 1 17 20 A3 3 0 0 1 14 17 A3 3 0 0 1 20 17 z" }), /* @__PURE__ */ s.jsx("path", { d: "M9.15 14.85L18 4M6 4l8.85 10.85" }) ] }) ); } function gn(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ viewBox: "0 0 1024 1024", fill: "currentColor", height: "1em", width: "1em", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx("path", { d: "M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" }) ] })); } function kn(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ viewBox: "0 0 1024 1024", fill: "currentColor", height: "1em", width: "1em", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx("path", { d: "M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" }) ] })); } function yn(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx("path", { d: "M11 7h2v7h-2zm0 8h2v2h-2z" }), /* @__PURE__ */ s.jsx("path", { d: "M21.707 7.293l-5-5A.996.996 0 0016 2H8a.996.996 0 00-.707.293l-5 5A.996.996 0 002 8v8c0 .266.105.52.293.707l5 5A.996.996 0 008 22h8c.266 0 .52-.105.707-.293l5-5A.996.996 0 0022 16V8a.996.996 0 00-.293-.707zM20 15.586L15.586 20H8.414L4 15.586V8.414L8.414 4h7.172L20 8.414v7.172z" }) ] })); } function Cn(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ viewBox: "0 0 512 512", fill: "currentColor", height: "1em", width: "1em", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 48, d: "M184 112l144 144-144 144" }) ] })); } const Mn = (n) => { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ width: "1em", height: "1em", fill: "currentColor", viewBox: "0 0 448 512", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx("path", { d: "M219.3.5c3.1-.6 6.3-.6 9.4 0l200 40C439.9 42.7 448 52.6 448 64s-8.1 21.3-19.3 23.5L352 102.9V160c0 70.7-57.3 128-128 128S96 230.7 96 160v-57.1l-48-9.6v65.1l15.7 78.4c.9 4.7-.3 9.6-3.3 13.3S52.8 256 48 256H16c-4.8 0-9.3-2.1-12.4-5.9s-4.3-8.6-3.3-13.3L16 158.4V86.6C6.5 83.3 0 74.3 0 64c0-11.4 8.1-21.3 19.3-23.5l200-40zM111.9 327.7c10.5-3.4 21.8.4 29.4 8.5l71 75.5c6.3 6.7 17 6.7 23.3 0l71-75.5c7.6-8.1 18.9-11.9 29.4-8.5 65 20.9 112 81.7 112 153.6 0 17-13.8 30.7-30.7 30.7H30.7C13.8 512 0 498.2 0 481.3c0-71.9 47-132.7 111.9-153.6z" }) ] })); }; function En(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ viewBox: "0 0 512 512", fill: "currentColor", height: "1em", width: "1em", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx("path", { d: "M414.39 97.61A224 224 0 1097.61 414.39 224 224 0 10414.39 97.61zM192.13 260.18a64 64 0 1159.69 59.69 64.07 64.07 0 01-59.69-59.69zm240-66.64l-96.37 5.84a4.06 4.06 0 01-3.44-1.59 96 96 0 00-18.07-18.07 4.06 4.06 0 01-1.59-3.44l5.84-96.37a4 4 0 015.42-3.51A193 193 0 01435.6 188.12a4 4 0 01-3.51 5.42zM193.54 79.91l5.84 96.37a4.06 4.06 0 01-1.59 3.44 96 96 0 00-18.07 18.07 4.06 4.06 0 01-3.44 1.59l-96.37-5.84a4 4 0 01-3.51-5.42A193 193 0 01188.12 76.4a4 4 0 015.42 3.51zM79.91 318.46l96.37-5.84a4.06 4.06 0 013.44 1.59 96 96 0 0018.07 18.07 4.06 4.06 0 011.59 3.44l-5.84 96.37a4 4 0 01-5.42 3.51A193 193 0 0176.4 323.88a4 4 0 013.51-5.42zm238.55 113.63l-5.84-96.37a4.06 4.06 0 011.59-3.44 96 96 0 0018.07-18.07 4.06 4.06 0 013.44-1.59l96.37 5.84a4 4 0 013.51 5.42A193 193 0 01323.88 435.6a4 4 0 01-5.42-3.51z" }) ] })); } function In(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx("path", { d: "M12 19c.946 0 1.81-.103 2.598-.281l-1.757-1.757c-.273.021-.55.038-.841.038-5.351 0-7.424-3.846-7.926-5a8.642 8.642 0 011.508-2.297L4.184 8.305c-1.538 1.667-2.121 3.346-2.132 3.379a.994.994 0 000 .633C2.073 12.383 4.367 19 12 19zm0-14c-1.837 0-3.346.396-4.604.981L3.707 2.293 2.293 3.707l18 18 1.414-1.414-3.319-3.319c2.614-1.951 3.547-4.615 3.561-4.657a.994.994 0 000-.633C21.927 11.617 19.633 5 12 5zm4.972 10.558l-2.28-2.28c.19-.39.308-.819.308-1.278 0-1.641-1.359-3-3-3-.459 0-.888.118-1.277.309L8.915 7.501A9.26 9.26 0 0112 7c5.351 0 7.424 3.846 7.926 5-.302.692-1.166 2.342-2.954 3.558z" }) ] })); } const An = (n) => { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ width: "1em", height: "1em", fill: "currentColor", viewBox: "0 0 1024 1024", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx("path", { d: "M946.5 505 560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z" }) ] })); }; function Sn(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ viewBox: "0 0 1024 1024", fill: "currentColor", height: "1em", width: "1em", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" }), /* @__PURE__ */ s.jsx("path", { d: "M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" }) ] })); } const Tn = (n) => { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ width: "1em", height: "1em", fill: "currentColor", viewBox: "0 0 1024 1024", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx("path", { d: "M521.7 82c-152.5-.4-286.7 78.5-363.4 197.7-3.4 5.3.4 12.3 6.7 12.3h70.3c4.8 0 9.3-2.1 12.3-5.8 7-8.5 14.5-16.7 22.4-24.5 32.6-32.5 70.5-58.1 112.7-75.9 43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 32.6 32.5 58.1 70.4 76 112.5C865.7 417.8 875 464.1 875 512c0 47.9-9.4 94.2-27.8 137.8-17.8 42.1-43.4 80-76 112.5s-70.5 58.1-112.7 75.9A352.8 352.8 0 0 1 520.6 866c-47.9 0-94.3-9.4-137.9-27.8A353.84 353.84 0 0 1 270 762.3c-7.9-7.9-15.3-16.1-22.4-24.5-3-3.7-7.6-5.8-12.3-5.8H165c-6.3 0-10.2 7-6.7 12.3C234.9 863.2 368.5 942 520.6 942c236.2 0 428-190.1 430.4-425.6C953.4 277.1 761.3 82.6 521.7 82zM395.02 624v-76h-314c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h314v-76c0-6.7 7.8-10.5 13-6.3l141.9 112a8 8 0 0 1 0 12.6l-141.9 112c-5.2 4.1-13 .4-13-6.3z" }) ] })); }; function Ln(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx("path", { d: "M20 11V5c0-1.103-.897-2-2-2h-3a1 1 0 00-1-1H8a1 1 0 00-1 1H4c-1.103 0-2 .897-2 2v13c0 1.103.897 2 2 2h7c0 1.103.897 2 2 2h7c1.103 0 2-.897 2-2v-7c0-1.103-.897-2-2-2zm-9 2v5H4V5h3v2h8V5h3v6h-5c-1.103 0-2 .897-2 2zm2 7v-7h7l.001 7H13z" }) ] })); } function Rn(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ viewBox: "0 0 512 512", fill: "currentColor", height: "1em", width: "1em", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx("path", { fill: "none", stroke: "currentColor", strokeMiterlimit: 10, strokeWidth: 32, d: "M256 80a176 176 0 10176 176A176 176 0 00256 80z" }), /* @__PURE__ */ s.jsx( "path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeMiterlimit: 10, strokeWidth: 28, d: "M200 202.29s.84-17.5 19.57-32.57C230.68 160.77 244 158.18 256 158c10.93-.14 20.69 1.67 26.53 4.45 10 4.76 29.47 16.38 29.47 41.09 0 26-17 37.81-36.37 50.8S251 281.43 251 296" } ), /* @__PURE__ */ s.jsx("path", { d: "M270 348 A20 20 0 0 1 250 368 A20 20 0 0 1 230 348 A20 20 0 0 1 270 348 z" }) ] })); } function zn(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ viewBox: "0 0 512 512", fill: "currentColor", height: "1em", width: "1em", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx( "path", { fill: "none", stroke: "currentColor", strokeLinejoin: "round", strokeWidth: 32, d: "M135.19 390.14a28.79 28.79 0 0021.68 9.86h246.26A29 29 0 00432 371.13V140.87A29 29 0 00403.13 112H156.87a28.84 28.84 0 00-21.67 9.84v0L46.33 256l88.86 134.11z" } ), /* @__PURE__ */ s.jsx( "path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 32, d: "M336.67 192.33L206.66 322.34M336.67 322.34L206.66 192.33M336.67 192.33L206.66 322.34M336.67 322.34L206.66 192.33" } ) ] })); } function Dn(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ viewBox: "0 0 1024 1024", fill: "currentColor", height: "1em", width: "1em", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx("path", { d: "M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z" }) ] })); } function $n(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx("path", { d: "M12 9a3.02 3.02 0 00-3 3c0 1.642 1.358 3 3 3 1.641 0 3-1.358 3-3 0-1.641-1.359-3-3-3z" }), /* @__PURE__ */ s.jsx("path", { d: "M12 5c-7.633 0-9.927 6.617-9.948 6.684L1.946 12l.105.316C2.073 12.383 4.367 19 12 19s9.927-6.617 9.948-6.684l.106-.316-.105-.316C21.927 11.617 19.633 5 12 5zm0 12c-5.351 0-7.424-3.846-7.926-5C4.578 10.842 6.652 7 12 7c5.351 0 7.424 3.846 7.926 5-.504 1.158-2.578 5-7.926 5z" }) ] })); } function Bn(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ fill: "currentColor", viewBox: "0 0 16 16", height: "1em", width: "1em", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx("path", { d: "M.5 9.9a.5.5 0 01.5.5v2.5a1 1 0 001 1h12a1 1 0 001-1v-2.5a.5.5 0 011 0v2.5a2 2 0 01-2 2H2a2 2 0 01-2-2v-2.5a.5.5 0 01.5-.5z" }), /* @__PURE__ */ s.jsx("path", { d: "M7.646 1.146a.5.5 0 01.708 0l3 3a.5.5 0 01-.708.708L8.5 2.707V11.5a.5.5 0 01-1 0V2.707L5.354 4.854a.5.5 0 11-.708-.708l3-3z" }) ] })); } function Hn(n) { var r = n, { title: e } = r, t = p(r, ["title"]); return /* @__PURE__ */ s.jsxs("svg", v(b({ viewBox: "0 0 24 24", fill: "currentColor", height: "1em", width: "1em", role: "img" }, t), { children: [ e && /* @__PURE__ */ s.jsx("title", { children: e }), /* @__PURE__ */ s.jsx("path", { fill: "none", d: "M0 0h24v24H0z" }), /* @__PURE__ */ s.jsx("path", { d: "M4 20v-6a8 8 0 1116 0v6h1v2H3v-2h1zm2 0h12v-6a6 6 0 10-12 0v6zm5-18h2v3h-2V2zm8.778 2.808l1.414 1.414-2.12 2.121-1.415-1.414 2.121-2.121zM2.808 6.222l1.414-1.414 2.121 2.12L4.93 8.344 2.808 6.222zM7 14a5 5 0 015-5v2a3 3 0 00-3 3H7z" }) ] })); } const Nn = { [j.ArrowDown]: Re, [j.ArrowUp]: ze, [j.Back]: _n, [j.Cancel]: xn, [j.CheckboxChecked]: Ce, [j.CheckboxUnchecked]: Me, [j.CheckMark]: dt, [j.ChevronDown]: fn, [j.ChevronUp]: vn, [j.ChevronLeft]: bn, [j.ChevronRight]: mn, [j.Clear]: pn, [j.Copy]: jn, [j.Cut]: wn, [j.Delete]: gn, [j.Download]: kn, [j.Error]: yn, [j.Forward]: Cn, [j.Graduate]: Mn, [j.Help]: En, [j.Hide]: In, [j.Home]: An, [j.Info]: Sn, [j.Login]: Tn, [j.Paste]: Ln, [j.Question]: Rn, [j.Save]: Dn, [j.Show]: $n, [j.Upload]: Bn, [j.Warning]: Hn, [j.Remove]: zn }, Pn = "_icon_1a3u5_1", On = { icon: Pn }, U = (o) => { var l = o, { name: e, testId: t, className: n } = l, r = p(l, ["name", "testId", "className"]); if (!e) return null; const c = Nn[e], a = y([n, On.icon]); return /* @__PURE__ */ s.jsx(c, b({ "data-testid": t, className: a }, r)); }, Vn = "_wrapper_knk6l_2", Wn = "_input_knk6l_28", Fe = { wrapper: Vn, input: Wn }, ut = (n) => { var r = n, { children: e } = r, t = p(r, ["children"]); return /* @__PURE__ */ s.jsxs("div", { className: Fe.wrapper, children: [ /* @__PURE__ */ s.jsx("input", v(b({}, t), { className: Fe.input })), e ] }); }, Un = "_label_bdijc_1", qn = { label: Un }, ce = ({ label: e, required: t, inputId: n, icon: r, iconPosition: o, isTextHidden: l = !1 }) => { const c = !!r && o === "left", a = !!r && o === "right"; return /* @__PURE__ */ s.jsxs("label", { className: qn.label, htmlFor: n, children: [ c && r, !l && /* @__PURE__ */ s.jsxs("span", { children: [ e, t && /* @__PURE__ */ s.jsx("abbr", { title: "required", children: "*" }) ] }), a && r ] }); }, Fn = "_loader_1dxge_1", Gn = { loader: Fn }, Kn = "_loader_1t1ws_1", Yn = { loader: Kn }, Jn = "_loader_151n3_1", Xn = { loader: Jn }, Qn = "_loader_5o37g_1", Zn = { loader: Qn }, er = "_loader_1hqei_1", tr = { loader: er }, nr = "_loader_o5l8l_1", rr = { loader: nr }, sr = "_loader_pukbl_1", or = { loader: sr }, cr = "_loader_zl0tq_1", lr = { loader: cr }, ar = "_loader_1alvx_1", ir = { loader: ar }, po = (n) => { var r = n, { view: e = O.Circle } = r, t = p(r, ["view"]); const o = y([ { [Gn.loader]: e === O.Arrow, [Yn.loader]: e === O.Brackets, [Xn.loader]: e === O.Circle, [Zn.loader]: e === O.Dots, [tr.loader]: e === O.Filler, [or.loader]: e === O.Pulse, [rr.loader]: e === O.Linear, [lr.loader]: e === O.Rotation, [ir.loader]: e === O.Square } ]); return /* @__PURE__ */ s.jsx("span", b({ className: o, role: "status" }, t)); }, De = ({ children: e }) => { const [t] = M(() => document.createElement("div")); return B(() => (document.body.appendChild(t), () => { document.body.removeChild(t); }), [t]), Ct.createPortal(e, t); }, ht = ({ isOpened: e, onClose: t, autoClose: n = !0, autoCloseDelay: r = 3e3 }) => { B(() => { if (!e || !n) return; const o = setTimeout(() => { t(); }, r); return () => clearTimeout(o); }, [e, n, r, t]); }, ee = ot({}), _t = ot({ mode: Q.Light, setMode: () => { } }), jo = ({ children: e, injectedMode: t }) => { const [n, r] = M(Q.Light); return B(() => { n && typeof n == "string" && (document.body.classList.remove(Q.Light, Q.Dark), document.body.classList.add(n)); }, [n]), B(() => { t && typeof t == "string" && (document.body.classList.remove(Q.Light, Q.Dark), document.body.classList.add(t)); }, [t]), /* @__PURE__ */ s.jsx(_t.Provider, { value: { mode: n, setMode: r }, children: e }); }, wo = () => Z(_t), Ee = ({ ref: e, onClickOutsideHandler: t, dependentRef: n }) => { B(() => { const r = (o) => { const l = (e == null ? void 0 : e.current) && !e.current.contains(o.target), c = n != null && n.current ? !n.current.contains(o.target) : !0; l && c && t(); }; return document.addEventListener("mousedown", r), () => { document.removeEventListener("mousedown", r); }; }, [e, n, t]); }, dr = ({ ref: e, isVisible: t }) => { const [n, r] = M({ width: 0, height: 0 }); return B(() => { e != null && e.current && t && r({ width: e.current.offsetWidth, height: e.current.offsetHeight }); }, [e, t]), n; }; function X(e) { const t = yt(), n = e != null ? e : t, r = `${n}_error`, o = `${n}_dropdown`; return { elementId: n, errorId: r, dropdownId: o }; } const xt = (e, t = 300) => { const [n, r] = M(!1); return B(() => { e && !n ? r(!0) : !e && n && setTimeout(() => { r(!1); }, t); }, [e]), n; }, go = ({ ref: e, dimension: t, isMounted: n }) => { const [r, o] = M(!1); return B(() => { const l = () => { const { current: c } = e; if (c) { if (t === "width") { const { scrollWidth: a = 0, clientWidth: i = 0 } = c; o(a > i); } if (t === "height") { const { scrollHeight: a = 0, clientHeight: i = 0 } = c; o(a > i); } } }; return n && l(), window.addEventListener("resize", l), () => window.removeEventListener("resize", l); }, [e, t, n]), r; }, Ie = ({ ref: e, keyCode: t, onKeyPress: n }) => { B(() => { const r = (o) => { (o == null ? void 0 : o.code) === t && (e != null && e.current) && n(); }; return document.addEventListener("keydown", r, !1), () => { document.removeEventListener("keydown", r, !1); }; }, [e, t, n]); }, ur = ({ modalRef: e, isOpened: t }) => { B(() => { const n = e.current; if (!t || !n) return; const r = n.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'), o = r[0], l = r[r.length - 1], c = (a) => { a.key === "Tab" && (a.shiftKey && document.activeElement === o ? (a.preventDefault(), l.focus()) : !a.shiftKey && document.activeElement === l && (a.preventDefault(), o.focus())); }; return n.addEventListener("keydown", c), () => { n.removeEventListener("keydown", c); }; }, [e, t]); }, _e = (e) => { const { resetSignal: t } = Z(ee); B(() => { t && e(); }, [t, e]); }; function Ge() { const { innerWidth: e, innerHeight: t } = window; return { width: e, height: t }; } function hr() { const [e, t] = M(Ge()); return B(() => { function n() { t(Ge()); } return window.addEventListener("resize", n), () => window.removeEventListener("resize", n); }, []), e; } const _r = ({ wrapperRef: e, tooltipRef: t, isOpened: n, spacing: r = 4 }) => { const [o, l] = M({ top: 0, left: 0 }), { width: c, height: a } = dr({ ref: t, isVisible: n }), { width: i, height: h } = hr(); return B(() => { if (n && (e != null && e.current)) { const d = e == null ? void 0 : e.current.getBoundingClientRect(); let x = Math.round(d.bottom + r), _ = Math.round(d.left); x + a > window.innerHeight && (x = Math.round(d.top - a - r)), _ + c > window.innerWidth && (_ = Math.round(window.innerWidth - c - r)), _ < 0 && (_ = r), l({ top: x, left: _ }); } }, [n, e, a, c, r, i, h]), o; }, xr = ({ id: e, autoClose: t, autoCloseDelay: n }) => { const [r, o] = M(!1), l = Y(null), c = Y(null), { top: a, left: i } = _r({ wrapperRef: l, tooltipRef: c, isOpened: r }), { elementId: h } = X(e), d = () => o(!1), x = () => o(!0), _ = () => o(!r), m = (f) => { f.preventDefault(), _(); }; return Ie({ keyCode: "Escape", ref: c, onKeyPress: d }), Ee({ ref: c, onClickOutsideHandler: d, dependentRef: l }), ht({ isOpened: r, onClose: d, autoClose: t, autoCloseDelay: n }), { elementId: h, openTooltip: x, closeTooltip: d, toggleTooltip: _, handleContextMenu: m, top: a, left: i, isOpened: r, wrapperRef: l, tooltipRef: c }; }, fr = "_tooltip_v7uvz_54", br = { tooltip: fr }, mr = (d) => { var x = d, { children: e, tooltipContent: t, id: n, style: r, className: o, containerTag: l = ct.Span, visibleOn: c = "hover", autoClose: a = !1, autoCloseDelay: i = 3e3 } = x, h = p(x, [ "children", "tooltipContent", "id", "style", "className", "containerTag", "visibleOn", "autoClose", "autoCloseDelay" ]); const _ = l, { openTooltip: m, closeTooltip: f, toggleTooltip: w, handleContextMenu: g, elementId: C, top: E, left: S, isOpened: T, wrapperRef: A, tooltipRe