import * as j from "react";
import rr, { forwardRef as tr, Children as G, isValidElement as ae, createElement as he, cloneElement as sr, Fragment as Qr } from "react";
function et(t) {
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
}
var be = { exports: {} }, q = {};
/**
 * @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 He;
function rt() {
  if (He)
    return q;
  He = 1;
  var t = rr, a = Symbol.for("react.element"), n = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, o = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
  function f(c, l, x) {
    var b, _ = {}, S = null, ee = null;
    x !== void 0 && (S = "" + x), l.key !== void 0 && (S = "" + l.key), l.ref !== void 0 && (ee = l.ref);
    for (b in l)
      u.call(l, b) && !i.hasOwnProperty(b) && (_[b] = l[b]);
    if (c && c.defaultProps)
      for (b in l = c.defaultProps, l)
        _[b] === void 0 && (_[b] = l[b]);
    return { $$typeof: a, type: c, key: S, ref: ee, props: _, _owner: o.current };
  }
  return q.Fragment = n, q.jsx = f, q.jsxs = f, q;
}
var J = {};
/**
 * @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 Xe;
function tt() {
  return Xe || (Xe = 1, process.env.NODE_ENV !== "production" && function() {
    var t = rr, a = Symbol.for("react.element"), n = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), ee = Symbol.for("react.offscreen"), $e = Symbol.iterator, yr = "@@iterator";
    function gr(e) {
      if (e === null || typeof e != "object")
        return null;
      var r = $e && e[$e] || e[yr];
      return typeof r == "function" ? r : null;
    }
    var z = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
    function N(e) {
      {
        for (var r = arguments.length, s = new Array(r > 1 ? r - 1 : 0), p = 1; p < r; p++)
          s[p - 1] = arguments[p];
        hr("error", e, s);
      }
    }
    function hr(e, r, s) {
      {
        var p = z.ReactDebugCurrentFrame, v = p.getStackAddendum();
        v !== "" && (r += "%s", s = s.concat([v]));
        var y = s.map(function(d) {
          return String(d);
        });
        y.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, y);
      }
    }
    var br = !1, Nr = !1, wr = !1, Er = !1, xr = !1, Pe;
    Pe = Symbol.for("react.module.reference");
    function Rr(e) {
      return !!(typeof e == "string" || typeof e == "function" || e === u || e === i || xr || e === o || e === x || e === b || Er || e === ee || br || Nr || wr || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === _ || e.$$typeof === f || e.$$typeof === c || e.$$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.
      e.$$typeof === Pe || e.getModuleId !== void 0));
    }
    function $r(e, r, s) {
      var p = e.displayName;
      if (p)
        return p;
      var v = r.displayName || r.name || "";
      return v !== "" ? s + "(" + v + ")" : s;
    }
    function _e(e) {
      return e.displayName || "Context";
    }
    function O(e) {
      if (e == null)
        return null;
      if (typeof e.tag == "number" && N("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
        return e.displayName || e.name || null;
      if (typeof e == "string")
        return e;
      switch (e) {
        case u:
          return "Fragment";
        case n:
          return "Portal";
        case i:
          return "Profiler";
        case o:
          return "StrictMode";
        case x:
          return "Suspense";
        case b:
          return "SuspenseList";
      }
      if (typeof e == "object")
        switch (e.$$typeof) {
          case c:
            var r = e;
            return _e(r) + ".Consumer";
          case f:
            var s = e;
            return _e(s._context) + ".Provider";
          case l:
            return $r(e, e.render, "ForwardRef");
          case _:
            var p = e.displayName || null;
            return p !== null ? p : O(e.type) || "Memo";
          case S: {
            var v = e, y = v._payload, d = v._init;
            try {
              return O(d(y));
            } catch {
              return null;
            }
          }
        }
      return null;
    }
    var k = Object.assign, M = 0, je, Ce, Oe, Se, Te, ke, We;
    function Ae() {
    }
    Ae.__reactDisabledLog = !0;
    function Pr() {
      {
        if (M === 0) {
          je = console.log, Ce = console.info, Oe = console.warn, Se = console.error, Te = console.group, ke = console.groupCollapsed, We = console.groupEnd;
          var e = {
            configurable: !0,
            enumerable: !0,
            value: Ae,
            writable: !0
          };
          Object.defineProperties(console, {
            info: e,
            log: e,
            warn: e,
            error: e,
            group: e,
            groupCollapsed: e,
            groupEnd: e
          });
        }
        M++;
      }
    }
    function _r() {
      {
        if (M--, M === 0) {
          var e = {
            configurable: !0,
            enumerable: !0,
            writable: !0
          };
          Object.defineProperties(console, {
            log: k({}, e, {
              value: je
            }),
            info: k({}, e, {
              value: Ce
            }),
            warn: k({}, e, {
              value: Oe
            }),
            error: k({}, e, {
              value: Se
            }),
            group: k({}, e, {
              value: Te
            }),
            groupCollapsed: k({}, e, {
              value: ke
            }),
            groupEnd: k({}, e, {
              value: We
            })
          });
        }
        M < 0 && N("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
      }
    }
    var oe = z.ReactCurrentDispatcher, le;
    function re(e, r, s) {
      {
        if (le === void 0)
          try {
            throw Error();
          } catch (v) {
            var p = v.stack.trim().match(/\n( *(at )?)/);
            le = p && p[1] || "";
          }
        return `
` + le + e;
      }
    }
    var ue = !1, te;
    {
      var jr = typeof WeakMap == "function" ? WeakMap : Map;
      te = new jr();
    }
    function Ve(e, r) {
      if (!e || ue)
        return "";
      {
        var s = te.get(e);
        if (s !== void 0)
          return s;
      }
      var p;
      ue = !0;
      var v = Error.prepareStackTrace;
      Error.prepareStackTrace = void 0;
      var y;
      y = oe.current, oe.current = null, Pr();
      try {
        if (r) {
          var d = function() {
            throw Error();
          };
          if (Object.defineProperty(d.prototype, "props", {
            set: function() {
              throw Error();
            }
          }), typeof Reflect == "object" && Reflect.construct) {
            try {
              Reflect.construct(d, []);
            } catch (E) {
              p = E;
            }
            Reflect.construct(e, [], d);
          } else {
            try {
              d.call();
            } catch (E) {
              p = E;
            }
            e.call(d.prototype);
          }
        } else {
          try {
            throw Error();
          } catch (E) {
            p = E;
          }
          e();
        }
      } catch (E) {
        if (E && p && typeof E.stack == "string") {
          for (var m = E.stack.split(`
`), w = p.stack.split(`
`), g = m.length - 1, h = w.length - 1; g >= 1 && h >= 0 && m[g] !== w[h]; )
            h--;
          for (; g >= 1 && h >= 0; g--, h--)
            if (m[g] !== w[h]) {
              if (g !== 1 || h !== 1)
                do
                  if (g--, h--, h < 0 || m[g] !== w[h]) {
                    var P = `
` + m[g].replace(" at new ", " at ");
                    return e.displayName && P.includes("<anonymous>") && (P = P.replace("<anonymous>", e.displayName)), typeof e == "function" && te.set(e, P), P;
                  }
                while (g >= 1 && h >= 0);
              break;
            }
        }
      } finally {
        ue = !1, oe.current = y, _r(), Error.prepareStackTrace = v;
      }
      var Y = e ? e.displayName || e.name : "", W = Y ? re(Y) : "";
      return typeof e == "function" && te.set(e, W), W;
    }
    function Cr(e, r, s) {
      return Ve(e, !1);
    }
    function Or(e) {
      var r = e.prototype;
      return !!(r && r.isReactComponent);
    }
    function se(e, r, s) {
      if (e == null)
        return "";
      if (typeof e == "function")
        return Ve(e, Or(e));
      if (typeof e == "string")
        return re(e);
      switch (e) {
        case x:
          return re("Suspense");
        case b:
          return re("SuspenseList");
      }
      if (typeof e == "object")
        switch (e.$$typeof) {
          case l:
            return Cr(e.render);
          case _:
            return se(e.type, r, s);
          case S: {
            var p = e, v = p._payload, y = p._init;
            try {
              return se(y(v), r, s);
            } catch {
            }
          }
        }
      return "";
    }
    var U = Object.prototype.hasOwnProperty, Fe = {}, De = z.ReactDebugCurrentFrame;
    function ne(e) {
      if (e) {
        var r = e._owner, s = se(e.type, e._source, r ? r.type : null);
        De.setExtraStackFrame(s);
      } else
        De.setExtraStackFrame(null);
    }
    function Sr(e, r, s, p, v) {
      {
        var y = Function.call.bind(U);
        for (var d in e)
          if (y(e, d)) {
            var m = void 0;
            try {
              if (typeof e[d] != "function") {
                var w = Error((p || "React class") + ": " + s + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
                throw w.name = "Invariant Violation", w;
              }
              m = e[d](r, d, p, s, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
            } catch (g) {
              m = g;
            }
            m && !(m instanceof Error) && (ne(v), N("%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).", p || "React class", s, d, typeof m), ne(null)), m instanceof Error && !(m.message in Fe) && (Fe[m.message] = !0, ne(v), N("Failed %s type: %s", s, m.message), ne(null));
          }
      }
    }
    var Tr = Array.isArray;
    function ce(e) {
      return Tr(e);
    }
    function kr(e) {
      {
        var r = typeof Symbol == "function" && Symbol.toStringTag, s = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
        return s;
      }
    }
    function Wr(e) {
      try {
        return ze(e), !1;
      } catch {
        return !0;
      }
    }
    function ze(e) {
      return "" + e;
    }
    function Ie(e) {
      if (Wr(e))
        return N("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", kr(e)), ze(e);
    }
    var B = z.ReactCurrentOwner, Ar = {
      key: !0,
      ref: !0,
      __self: !0,
      __source: !0
    }, Ye, Le, fe;
    fe = {};
    function Vr(e) {
      if (U.call(e, "ref")) {
        var r = Object.getOwnPropertyDescriptor(e, "ref").get;
        if (r && r.isReactWarning)
          return !1;
      }
      return e.ref !== void 0;
    }
    function Fr(e) {
      if (U.call(e, "key")) {
        var r = Object.getOwnPropertyDescriptor(e, "key").get;
        if (r && r.isReactWarning)
          return !1;
      }
      return e.key !== void 0;
    }
    function Dr(e, r) {
      if (typeof e.ref == "string" && B.current && r && B.current.stateNode !== r) {
        var s = O(B.current.type);
        fe[s] || (N('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', O(B.current.type), e.ref), fe[s] = !0);
      }
    }
    function zr(e, r) {
      {
        var s = function() {
          Ye || (Ye = !0, N("%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)", r));
        };
        s.isReactWarning = !0, Object.defineProperty(e, "key", {
          get: s,
          configurable: !0
        });
      }
    }
    function Ir(e, r) {
      {
        var s = function() {
          Le || (Le = !0, N("%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)", r));
        };
        s.isReactWarning = !0, Object.defineProperty(e, "ref", {
          get: s,
          configurable: !0
        });
      }
    }
    var Yr = function(e, r, s, p, v, y, d) {
      var m = {
        // This tag allows us to uniquely identify this as a React Element
        $$typeof: a,
        // Built-in properties that belong on the element
        type: e,
        key: r,
        ref: s,
        props: d,
        // Record the component responsible for creating this element.
        _owner: y
      };
      return m._store = {}, Object.defineProperty(m._store, "validated", {
        configurable: !1,
        enumerable: !1,
        writable: !0,
        value: !1
      }), Object.defineProperty(m, "_self", {
        configurable: !1,
        enumerable: !1,
        writable: !1,
        value: p
      }), Object.defineProperty(m, "_source", {
        configurable: !1,
        enumerable: !1,
        writable: !1,
        value: v
      }), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
    };
    function Lr(e, r, s, p, v) {
      {
        var y, d = {}, m = null, w = null;
        s !== void 0 && (Ie(s), m = "" + s), Fr(r) && (Ie(r.key), m = "" + r.key), Vr(r) && (w = r.ref, Dr(r, v));
        for (y in r)
          U.call(r, y) && !Ar.hasOwnProperty(y) && (d[y] = r[y]);
        if (e && e.defaultProps) {
          var g = e.defaultProps;
          for (y in g)
            d[y] === void 0 && (d[y] = g[y]);
        }
        if (m || w) {
          var h = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
          m && zr(d, h), w && Ir(d, h);
        }
        return Yr(e, m, w, v, p, B.current, d);
      }
    }
    var pe = z.ReactCurrentOwner, Me = z.ReactDebugCurrentFrame;
    function I(e) {
      if (e) {
        var r = e._owner, s = se(e.type, e._source, r ? r.type : null);
        Me.setExtraStackFrame(s);
      } else
        Me.setExtraStackFrame(null);
    }
    var me;
    me = !1;
    function de(e) {
      return typeof e == "object" && e !== null && e.$$typeof === a;
    }
    function Ue() {
      {
        if (pe.current) {
          var e = O(pe.current.type);
          if (e)
            return `

Check the render method of \`` + e + "`.";
        }
        return "";
      }
    }
    function Mr(e) {
      {
        if (e !== void 0) {
          var r = e.fileName.replace(/^.*[\\\/]/, ""), s = e.lineNumber;
          return `

Check your code at ` + r + ":" + s + ".";
        }
        return "";
      }
    }
    var Be = {};
    function Ur(e) {
      {
        var r = Ue();
        if (!r) {
          var s = typeof e == "string" ? e : e.displayName || e.name;
          s && (r = `

Check the top-level render call using <` + s + ">.");
        }
        return r;
      }
    }
    function qe(e, r) {
      {
        if (!e._store || e._store.validated || e.key != null)
          return;
        e._store.validated = !0;
        var s = Ur(r);
        if (Be[s])
          return;
        Be[s] = !0;
        var p = "";
        e && e._owner && e._owner !== pe.current && (p = " It was passed a child from " + O(e._owner.type) + "."), I(e), N('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', s, p), I(null);
      }
    }
    function Je(e, r) {
      {
        if (typeof e != "object")
          return;
        if (ce(e))
          for (var s = 0; s < e.length; s++) {
            var p = e[s];
            de(p) && qe(p, r);
          }
        else if (de(e))
          e._store && (e._store.validated = !0);
        else if (e) {
          var v = gr(e);
          if (typeof v == "function" && v !== e.entries)
            for (var y = v.call(e), d; !(d = y.next()).done; )
              de(d.value) && qe(d.value, r);
        }
      }
    }
    function Br(e) {
      {
        var r = e.type;
        if (r == null || typeof r == "string")
          return;
        var s;
        if (typeof r == "function")
          s = r.propTypes;
        else if (typeof r == "object" && (r.$$typeof === l || // Note: Memo only checks outer props here.
        // Inner props are checked in the reconciler.
        r.$$typeof === _))
          s = r.propTypes;
        else
          return;
        if (s) {
          var p = O(r);
          Sr(s, e.props, "prop", p, e);
        } else if (r.PropTypes !== void 0 && !me) {
          me = !0;
          var v = O(r);
          N("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
        }
        typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && N("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
      }
    }
    function qr(e) {
      {
        for (var r = Object.keys(e.props), s = 0; s < r.length; s++) {
          var p = r[s];
          if (p !== "children" && p !== "key") {
            I(e), N("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), I(null);
            break;
          }
        }
        e.ref !== null && (I(e), N("Invalid attribute `ref` supplied to `React.Fragment`."), I(null));
      }
    }
    var Ke = {};
    function Ge(e, r, s, p, v, y) {
      {
        var d = Rr(e);
        if (!d) {
          var m = "";
          (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (m += " 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 w = Mr(v);
          w ? m += w : m += Ue();
          var g;
          e === null ? g = "null" : ce(e) ? g = "array" : e !== void 0 && e.$$typeof === a ? (g = "<" + (O(e.type) || "Unknown") + " />", m = " Did you accidentally export a JSX literal instead of a component?") : g = typeof e, N("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", g, m);
        }
        var h = Lr(e, r, s, v, y);
        if (h == null)
          return h;
        if (d) {
          var P = r.children;
          if (P !== void 0)
            if (p)
              if (ce(P)) {
                for (var Y = 0; Y < P.length; Y++)
                  Je(P[Y], e);
                Object.freeze && Object.freeze(P);
              } else
                N("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
              Je(P, e);
        }
        if (U.call(r, "key")) {
          var W = O(e), E = Object.keys(r).filter(function(Zr) {
            return Zr !== "key";
          }), ve = E.length > 0 ? "{key: someKey, " + E.join(": ..., ") + ": ...}" : "{key: someKey}";
          if (!Ke[W + ve]) {
            var Xr = E.length > 0 ? "{" + E.join(": ..., ") + ": ...}" : "{}";
            N(`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} />`, ve, W, Xr, W), Ke[W + ve] = !0;
          }
        }
        return e === u ? qr(h) : Br(h), h;
      }
    }
    function Jr(e, r, s) {
      return Ge(e, r, s, !0);
    }
    function Kr(e, r, s) {
      return Ge(e, r, s, !1);
    }
    var Gr = Kr, Hr = Jr;
    J.Fragment = u, J.jsx = Gr, J.jsxs = Hr;
  }()), J;
}
process.env.NODE_ENV === "production" ? be.exports = rt() : be.exports = tt();
var R = be.exports;
function ie() {
  return ie = Object.assign ? Object.assign.bind() : function(t) {
    for (var a = 1; a < arguments.length; a++) {
      var n = arguments[a];
      for (var u in n)
        Object.prototype.hasOwnProperty.call(n, u) && (t[u] = n[u]);
    }
    return t;
  }, ie.apply(this, arguments);
}
function st(t, a) {
  typeof t == "function" ? t(a) : t != null && (t.current = a);
}
function nt(...t) {
  return (a) => t.forEach(
    (n) => st(n, a)
  );
}
const L = /* @__PURE__ */ tr((t, a) => {
  const { children: n, ...u } = t, o = G.toArray(n), i = o.find(it);
  if (i) {
    const f = i.props.children, c = o.map((l) => l === i ? G.count(f) > 1 ? G.only(null) : /* @__PURE__ */ ae(f) ? f.props.children : null : l);
    return /* @__PURE__ */ he(Ne, ie({}, u, {
      ref: a
    }), /* @__PURE__ */ ae(f) ? /* @__PURE__ */ sr(f, void 0, c) : null);
  }
  return /* @__PURE__ */ he(Ne, ie({}, u, {
    ref: a
  }), n);
});
L.displayName = "Slot";
const Ne = /* @__PURE__ */ tr((t, a) => {
  const { children: n, ...u } = t;
  return /* @__PURE__ */ ae(n) ? /* @__PURE__ */ sr(n, {
    ...ot(u, n.props),
    ref: a ? nt(a, n.ref) : n.ref
  }) : G.count(n) > 1 ? G.only(null) : null;
});
Ne.displayName = "SlotClone";
const at = ({ children: t }) => /* @__PURE__ */ he(Qr, null, t);
function it(t) {
  return /* @__PURE__ */ ae(t) && t.type === at;
}
function ot(t, a) {
  const n = {
    ...a
  };
  for (const u in a) {
    const o = t[u], i = a[u];
    /^on[A-Z]/.test(u) ? o && i ? n[u] = (...c) => {
      i(...c), o(...c);
    } : o && (n[u] = o) : u === "style" ? n[u] = {
      ...o,
      ...i
    } : u === "className" && (n[u] = [
      o,
      i
    ].filter(Boolean).join(" "));
  }
  return {
    ...t,
    ...n
  };
}
var nr = { exports: {} };
/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/
(function(t) {
  (function() {
    var a = {}.hasOwnProperty;
    function n() {
      for (var i = "", f = 0; f < arguments.length; f++) {
        var c = arguments[f];
        c && (i = o(i, u(c)));
      }
      return i;
    }
    function u(i) {
      if (typeof i == "string" || typeof i == "number")
        return i;
      if (typeof i != "object")
        return "";
      if (Array.isArray(i))
        return n.apply(null, i);
      if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]"))
        return i.toString();
      var f = "";
      for (var c in i)
        a.call(i, c) && i[c] && (f = o(f, c));
      return f;
    }
    function o(i, f) {
      return f ? i ? i + " " + f : i + f : i;
    }
    t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
  })();
})(nr);
var lt = nr.exports;
const T = /* @__PURE__ */ et(lt), we = ["initial", "xs", "sm", "md", "lg", "xl"], C = { asChild: { type: "boolean" } }, ar = ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky"], Ee = { color: { type: "enum", values: ar, default: "" } }, ut = { color: { type: "enum", values: ar, default: void 0 } }, ye = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], ct = { gap: { type: "enum | string", className: "rt-r-gap", customProperties: ["--gap"], values: ye, responsive: !0 }, gapX: { type: "enum | string", className: "rt-r-cg", customProperties: ["--column-gap"], values: ye, responsive: !0 }, gapY: { type: "enum | string", className: "rt-r-rg", customProperties: ["--row-gap"], values: ye, responsive: !0 } }, xe = { height: { type: "string", className: "rt-r-h", customProperties: ["--height"], responsive: !0 }, minHeight: { type: "string", className: "rt-r-min-h", customProperties: ["--min-height"], responsive: !0 }, maxHeight: { type: "string", className: "rt-r-max-h", customProperties: ["--max-height"], responsive: !0 } }, Re = { highContrast: { type: "boolean", className: "rt-high-contrast", default: void 0 } }, A = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], ft = { p: { type: "enum | string", className: "rt-r-p", customProperties: ["--p"], values: A, responsive: !0 }, px: { type: "enum | string", className: "rt-r-px", customProperties: ["--pl", "--pr"], values: A, responsive: !0 }, py: { type: "enum | string", className: "rt-r-py", customProperties: ["--pt", "--pb"], values: A, responsive: !0 }, pt: { type: "enum | string", className: "rt-r-pt", customProperties: ["--pt"], values: A, responsive: !0 }, pr: { type: "enum | string", className: "rt-r-pr", customProperties: ["--pr"], values: A, responsive: !0 }, pb: { type: "enum | string", className: "rt-r-pb", customProperties: ["--pb"], values: A, responsive: !0 }, pl: { type: "enum | string", className: "rt-r-pl", customProperties: ["--pl"], values: A, responsive: !0 } }, $ = { width: { type: "string", className: "rt-r-w", customProperties: ["--width"], responsive: !0 }, minWidth: { type: "string", className: "rt-r-min-w", customProperties: ["--min-width"], responsive: !0 }, maxWidth: { type: "string", className: "rt-r-max-w", customProperties: ["--max-width"], responsive: !0 } }, ge = ["visible", "hidden", "clip", "scroll", "auto"], pt = ["static", "relative", "absolute", "fixed", "sticky"], K = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"], mt = ["0", "1"], dt = ["0", "1"], vt = { ...ft, ...$, ...xe, position: { type: "enum", className: "rt-r-position", values: pt, responsive: !0 }, inset: { type: "enum | string", className: "rt-r-inset", customProperties: ["--inset"], values: K, responsive: !0 }, top: { type: "enum | string", className: "rt-r-top", customProperties: ["--top"], values: K, responsive: !0 }, right: { type: "enum | string", className: "rt-r-right", customProperties: ["--right"], values: K, responsive: !0 }, bottom: { type: "enum | string", className: "rt-r-bottom", customProperties: ["--bottom"], values: K, responsive: !0 }, left: { type: "enum | string", className: "rt-r-left", customProperties: ["--left"], values: K, responsive: !0 }, overflow: { type: "enum", className: "rt-r-overflow", values: ge, responsive: !0 }, overflowX: { type: "enum", className: "rt-r-ox", values: ge, responsive: !0 }, overflowY: { type: "enum", className: "rt-r-oy", values: ge, responsive: !0 }, flexBasis: { type: "string", className: "rt-r-fb", customProperties: ["--flex-basis"], responsive: !0 }, flexShrink: { type: "enum | string", className: "rt-r-fs", customProperties: ["--flex-shrink"], values: mt, responsive: !0 }, flexGrow: { type: "enum | string", className: "rt-r-fg", customProperties: ["--flex-grow"], values: dt, responsive: !0 }, gridColumn: { type: "string", className: "rt-r-gc", customProperties: ["--grid-column"], responsive: !0 }, gridColumnStart: { type: "string", className: "rt-r-gcs", customProperties: ["--grid-column-start"], responsive: !0 }, gridColumnEnd: { type: "string", className: "rt-r-gce", customProperties: ["--grid-column-end"], responsive: !0 }, gridRow: { type: "string", className: "rt-r-gr", customProperties: ["--grid-row"], responsive: !0 }, gridRowStart: { type: "string", className: "rt-r-grs", customProperties: ["--grid-row-start"], responsive: !0 }, gridRowEnd: { type: "string", className: "rt-r-gre", customProperties: ["--grid-row-end"], responsive: !0 } }, yt = ["normal", "start", "end", "both"], ir = { trim: { type: "enum", className: "rt-r-lt", values: yt, responsive: !0 } }, V = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-1", "-2", "-3", "-4", "-5", "-6", "-7", "-8", "-9"], Z = { m: { type: "enum | string", values: V, responsive: !0, className: "rt-r-m", customProperties: ["--m"] }, mx: { type: "enum | string", values: V, responsive: !0, className: "rt-r-mx", customProperties: ["--ml", "--mr"] }, my: { type: "enum | string", values: V, responsive: !0, className: "rt-r-my", customProperties: ["--mt", "--mb"] }, mt: { type: "enum | string", values: V, responsive: !0, className: "rt-r-mt", customProperties: ["--mt"] }, mr: { type: "enum | string", values: V, responsive: !0, className: "rt-r-mr", customProperties: ["--mr"] }, mb: { type: "enum | string", values: V, responsive: !0, className: "rt-r-mb", customProperties: ["--mb"] }, ml: { type: "enum | string", values: V, responsive: !0, className: "rt-r-ml", customProperties: ["--ml"] } }, gt = ["left", "center", "right"], ht = { align: { type: "enum", className: "rt-r-ta", values: gt, responsive: !0 } }, bt = ["wrap", "nowrap", "pretty", "balance"], or = { wrap: { type: "enum", className: "rt-r-tw", values: bt, responsive: !0 } }, lr = { truncate: { type: "boolean", className: "rt-truncate" } }, Nt = ["light", "regular", "medium", "bold"], wt = { weight: { type: "enum", className: "rt-r-weight", values: Nt, responsive: !0 } }, Et = ["div", "span"], xt = ["none", "inline", "inline-block", "block"], Rt = { as: { type: "enum", values: Et, default: "div" }, ...C, display: { type: "enum", className: "rt-r-display", values: xt, responsive: !0 } }, $t = ["1", "2", "3", "4", "5"], Pt = ["surface", "classic", "ghost"], _t = { ...C, size: { type: "enum", className: "rt-r-size", values: $t, default: "1", responsive: !0 }, variant: { type: "enum", className: "rt-variant", values: Pt, default: "surface" } }, jt = ["div", "span"], Ct = ["none", "inline-grid", "grid"], Ot = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], St = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Tt = ["row", "column", "dense", "row-dense", "column-dense"], kt = ["start", "center", "end", "baseline", "stretch"], Wt = ["start", "center", "end", "between"], X = { as: { type: "enum", values: jt, default: "div" }, ...C, display: { type: "enum", className: "rt-r-display", values: Ct, responsive: !0 }, columns: { type: "enum | string", className: "rt-r-gtc", customProperties: ["--grid-template-columns"], values: Ot, parseValue: Ze, responsive: !0 }, rows: { type: "enum | string", className: "rt-r-gtr", customProperties: ["--grid-template-rows"], values: St, parseValue: Ze, responsive: !0 }, flow: { type: "enum", className: "rt-r-gaf", values: Tt, responsive: !0 }, align: { type: "enum", className: "rt-r-ai", values: kt, responsive: !0 }, justify: { type: "enum", className: "rt-r-jc", values: Wt, parseValue: At, responsive: !0 }, ...ct };
function Ze(t) {
  return X.columns.values.includes(t) ? t : t != null && t.match(/^\d+$/) ? `repeat(${t}, minmax(0, 1fr))` : t;
}
function At(t) {
  return t === "between" ? "space-between" : t;
}
const Vt = ["1", "2", "3"], Ft = ["surface", "classic"];
({ ...C, ...Ee, ...Re, columns: { ...X.columns }, gap: { ...X.gap } });
const Dt = ["horizontal", "vertical"], zt = ["1", "2", "3"];
({ ...ir.trim });
const It = ["1", "2", "3"];
({ ...C, width: $.width, minWidth: $.minWidth, maxWidth: { ...$.maxWidth }, ...xe });
const Yt = ["all", "x", "y", "top", "bottom", "left", "right"], Lt = ["border-box", "padding-box"], F = ["current", "0"], Mt = { ...C, side: { type: "enum", className: "rt-r-side", values: Yt, default: "all", responsive: !0 }, clip: { type: "enum", className: "rt-r-clip", values: Lt, default: "border-box", responsive: !0 }, p: { type: "enum", className: "rt-r-p", values: F, parseValue: D, responsive: !0 }, px: { type: "enum", className: "rt-r-px", values: F, parseValue: D, responsive: !0 }, py: { type: "enum", className: "rt-r-py", values: F, parseValue: D, responsive: !0 }, pt: { type: "enum", className: "rt-r-pt", values: F, parseValue: D, responsive: !0 }, pr: { type: "enum", className: "rt-r-pr", values: F, parseValue: D, responsive: !0 }, pb: { type: "enum", className: "rt-r-pb", values: F, parseValue: D, responsive: !0 }, pl: { type: "enum", className: "rt-r-pl", values: F, parseValue: D, responsive: !0 } };
function D(t) {
  return t === "current" ? "inset" : t;
}
const Ut = ["1", "2", "3", "4"];
({ ...C, width: $.width, minWidth: $.minWidth, maxWidth: { ...$.maxWidth }, ...xe });
const Bt = ["1", "2", "3"], qt = ["surface", "classic"];
({ ...C, ...Ee, ...Re, columns: { ...X.columns }, gap: { ...X.gap } });
const Jt = ["horizontal", "vertical"], Kt = ["1", "2", "3", "4"];
({ ...Ee.color });
const Gt = { ...C, ...lr, ...or }, Ht = ["span", "div", "label", "p"], Xt = ["1", "2", "3", "4", "5", "6", "7", "8", "9"], Zt = { as: { type: "enum", values: Ht, default: "span" }, ...C, size: { type: "enum", className: "rt-r-size", values: Xt, responsive: !0 }, ...wt, ...ht, ...ir, ...lr, ...or, ...ut, ...Re };
$.width, $.minWidth, { ...$.maxWidth };
const Qt = ["1", "2", "3", "4"];
({ ...C, width: $.width, minWidth: $.minWidth, maxWidth: { ...$.maxWidth } });
function ur(t, a) {
  return Object.prototype.hasOwnProperty.call(t, a);
}
function H(t) {
  return typeof t == "object" && Object.keys(t).some((a) => we.includes(a));
}
function es({ className: t, customProperties: a, ...n }) {
  const u = cr({ allowArbitraryValues: !0, className: t, ...n }), o = rs({ customProperties: a, ...n });
  return [u, o];
}
function cr({ allowArbitraryValues: t, value: a, className: n, propValues: u, parseValue: o = (i) => i }) {
  const i = [];
  if (a) {
    if (typeof a == "string" && u.includes(a))
      return Qe(n, a, o);
    if (H(a)) {
      const f = a;
      for (const c in f) {
        if (!ur(f, c) || !we.includes(c))
          continue;
        const l = f[c];
        if (l !== void 0) {
          if (u.includes(l)) {
            const x = Qe(n, l, o), b = c === "initial" ? x : `${c}:${x}`;
            i.push(b);
          } else if (t) {
            const x = c === "initial" ? n : `${c}:${n}`;
            i.push(x);
          }
        }
      }
      return i.join(" ");
    }
    if (t)
      return n;
  }
}
function Qe(t, a, n) {
  const u = t ? "-" : "", o = n(a), i = o == null ? void 0 : o.startsWith("-"), f = i ? "-" : "", c = i ? o == null ? void 0 : o.substring(1) : o;
  return `${f}${t}${u}${c}`;
}
function rs({ customProperties: t, value: a, propValues: n, parseValue: u = (o) => o }) {
  let o = {};
  if (!(!a || typeof a == "string" && n.includes(a))) {
    if (typeof a == "string" && (o = Object.fromEntries(t.map((i) => [i, a]))), H(a)) {
      const i = a;
      for (const f in i) {
        if (!ur(i, f) || !we.includes(f))
          continue;
        const c = i[f];
        if (!n.includes(c))
          for (const l of t)
            o = { [f === "initial" ? l : `${l}-${f}`]: c, ...o };
      }
    }
    for (const i in o) {
      const f = o[i];
      f !== void 0 && (o[i] = u(f));
    }
    return o;
  }
}
function er(...t) {
  let a = {};
  for (const n of t)
    n && (a = { ...a, ...n });
  return Object.keys(a).length ? a : void 0;
}
function ts(...t) {
  return Object.assign({}, ...t);
}
function Q(t, ...a) {
  let n, u;
  const o = { ...t }, i = ts(...a);
  for (const f in i) {
    let c = o[f];
    const l = i[f];
    if (l.default !== void 0 && c === void 0 && (c = l.default), l.type === "enum" && ![l.default, ...l.values].includes(c) && !H(c) && (c = l.default), o[f] = c, "className" in l && l.className) {
      delete o[f];
      const x = "responsive" in l;
      if (!c || H(c) && !x)
        continue;
      if (H(c) && (l.default !== void 0 && c.initial === void 0 && (c.initial = l.default), l.type === "enum" && ([l.default, ...l.values].includes(c.initial) || (c.initial = l.default))), l.type === "enum") {
        const b = cr({ allowArbitraryValues: !1, value: c, className: l.className, propValues: l.values, parseValue: l.parseValue });
        n = T(n, b);
        continue;
      }
      if (l.type === "string" || l.type === "enum | string") {
        const b = l.type === "string" ? [] : l.values, [_, S] = es({ className: l.className, customProperties: l.customProperties, propValues: b, parseValue: l.parseValue, value: c });
        u = er(u, S), n = T(n, _);
        continue;
      }
      if (l.type === "boolean" && c) {
        n = T(n, l.className);
        continue;
      }
    }
  }
  return o.className = T(n, t.className), o.style = er(u, t.style), o;
}
Z.m.values;
const fr = j.forwardRef((t, a) => {
  const { children: n, className: u, asChild: o, as: i = "span", color: f, ...c } = Q(t, Zt, Z);
  return j.createElement(L, { "data-accent-color": f || void 0, ...c, ref: a, className: T("rt-Text", u) }, o ? n : j.createElement(i, null, n));
});
fr.displayName = "Text";
const pr = j.forwardRef((t, a) => {
  const { className: n, asChild: u, as: o = "div", ...i } = Q(t, Rt, vt, Z);
  return j.createElement(u ? L : o, { ...i, ref: a, className: T("rt-Box", n) });
});
pr.displayName = "Box";
const mr = j.forwardRef((t, a) => {
  const { asChild: n, className: u, ...o } = Q(t, _t, Z);
  return j.createElement(n ? L : "div", { ref: a, ...o, className: T("rt-reset", "rt-BaseCard", "rt-Card", u) });
});
mr.displayName = "Card";
const dr = j.forwardRef((t, a) => {
  const { asChild: n, className: u, ...o } = Q(t, Mt, Z);
  return j.createElement(n ? L : "div", { ...o, ref: a, className: T("rt-Inset", u) });
});
dr.displayName = "Inset";
const vr = j.forwardRef((t, a) => {
  const { asChild: n, className: u, ...o } = Q(t, Gt);
  return j.createElement(n ? L : "strong", { ...o, ref: a, className: T("rt-Strong", u) });
});
vr.displayName = "Strong";
const ss = ({ Inset: t, Text: a, onClick: n }) => /* @__PURE__ */ R.jsx(pr, { maxWidth: "15rem", onClick: n, children: /* @__PURE__ */ R.jsxs(mr, { size: "2", children: [
  /* @__PURE__ */ R.jsx(R.Fragment, { children: t }),
  /* @__PURE__ */ R.jsx(R.Fragment, { children: a })
] }) }), as = ({ card: t, onClick: a }) => {
  const n = /* @__PURE__ */ R.jsx(dr, { clip: "padding-box", side: "top", pb: "current", children: /* @__PURE__ */ R.jsx(
    "img",
    {
      style: {
        maxWidth: "100%",
        display: "block",
        margin: "auto",
        borderRadius: "0.15rem"
      },
      src: t.question.image,
      alt: "Tree"
    }
  ) }), u = /* @__PURE__ */ R.jsx("div", { style: { backgroundColor: "#859398", borderRadius: "0.15rem" }, children: /* @__PURE__ */ R.jsx(fr, { as: "p", size: "3", children: /* @__PURE__ */ R.jsx(vr, { children: t.sideShown === "question" ? "Name" : t.answer }) }) });
  return /* @__PURE__ */ R.jsx("div", { style: {
    cursor: "pointer",
    backgroundColor: "#fff",
    borderRadius: "0.2rem",
    padding: "0.5rem 0.75rem",
    margin: "0.8rem",
    width: "20vw",
    aspectRatio: "1.25",
    alignContent: "center",
    textAlign: "center"
  }, children: /* @__PURE__ */ R.jsx(ss, { Inset: n, Text: u, onClick: () => a(t) }) });
};
export {
  ss as Card,
  as as Flashcard
};
