import {
  E,
  d,
  n,
  r,
  u,
  w
} from "./chunk-5EXVWLEU.js";
import "./chunk-5WRI5ZAA.js";

// ../../node_modules/preact/dist/preact.module.js
var n2;
var l;
var u2;
var t;
var i;
var r2;
var o;
var e;
var f;
var c;
var s;
var a;
var h;
var p = {};
var y = [];
var v = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
var w2 = Array.isArray;
function d2(n3, l4) {
  for (var u4 in l4) n3[u4] = l4[u4];
  return n3;
}
function g(n3) {
  n3 && n3.parentNode && n3.parentNode.removeChild(n3);
}
function m(n3, t3, i3, r4, o3) {
  var e3 = { type: n3, props: t3, key: i3, ref: r4, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: null == o3 ? ++u2 : o3, __i: -1, __u: 0 };
  return null == o3 && null != l.vnode && l.vnode(e3), e3;
}
function k(n3) {
  return n3.children;
}
function x(n3, l4) {
  this.props = n3, this.context = l4;
}
function S(n3, l4) {
  if (null == l4) return n3.__ ? S(n3.__, n3.__i + 1) : null;
  for (var u4; l4 < n3.__k.length; l4++) if (null != (u4 = n3.__k[l4]) && null != u4.__e) return u4.__e;
  return "function" == typeof n3.type ? S(n3) : null;
}
function C(n3) {
  var l4, u4;
  if (null != (n3 = n3.__) && null != n3.__c) {
    for (n3.__e = n3.__c.base = null, l4 = 0; l4 < n3.__k.length; l4++) if (null != (u4 = n3.__k[l4]) && null != u4.__e) {
      n3.__e = n3.__c.base = u4.__e;
      break;
    }
    return C(n3);
  }
}
function M(n3) {
  (!n3.__d && (n3.__d = true) && i.push(n3) && !$.__r++ || r2 != l.debounceRendering) && ((r2 = l.debounceRendering) || o)($);
}
function $() {
  for (var n3, u4, t3, r4, o3, f3, c3, s4 = 1; i.length; ) i.length > s4 && i.sort(e), n3 = i.shift(), s4 = i.length, n3.__d && (t3 = void 0, o3 = (r4 = (u4 = n3).__v).__e, f3 = [], c3 = [], u4.__P && ((t3 = d2({}, r4)).__v = r4.__v + 1, l.vnode && l.vnode(t3), O(u4.__P, t3, r4, u4.__n, u4.__P.namespaceURI, 32 & r4.__u ? [o3] : null, f3, null == o3 ? S(r4) : o3, !!(32 & r4.__u), c3), t3.__v = r4.__v, t3.__.__k[t3.__i] = t3, z(f3, t3, c3), t3.__e != o3 && C(t3)));
  $.__r = 0;
}
function I(n3, l4, u4, t3, i3, r4, o3, e3, f3, c3, s4) {
  var a3, h3, v3, w5, d4, g3, _2 = t3 && t3.__k || y, m4 = l4.length;
  for (f3 = P(u4, l4, _2, f3, m4), a3 = 0; a3 < m4; a3++) null != (v3 = u4.__k[a3]) && (h3 = -1 == v3.__i ? p : _2[v3.__i] || p, v3.__i = a3, g3 = O(n3, v3, h3, i3, r4, o3, e3, f3, c3, s4), w5 = v3.__e, v3.ref && h3.ref != v3.ref && (h3.ref && q(h3.ref, null, v3), s4.push(v3.ref, v3.__c || w5, v3)), null == d4 && null != w5 && (d4 = w5), 4 & v3.__u || h3.__k === v3.__k ? f3 = A(v3, f3, n3) : "function" == typeof v3.type && void 0 !== g3 ? f3 = g3 : w5 && (f3 = w5.nextSibling), v3.__u &= -7);
  return u4.__e = d4, f3;
}
function P(n3, l4, u4, t3, i3) {
  var r4, o3, e3, f3, c3, s4 = u4.length, a3 = s4, h3 = 0;
  for (n3.__k = new Array(i3), r4 = 0; r4 < i3; r4++) null != (o3 = l4[r4]) && "boolean" != typeof o3 && "function" != typeof o3 ? (f3 = r4 + h3, (o3 = n3.__k[r4] = "string" == typeof o3 || "number" == typeof o3 || "bigint" == typeof o3 || o3.constructor == String ? m(null, o3, null, null, null) : w2(o3) ? m(k, { children: o3 }, null, null, null) : null == o3.constructor && o3.__b > 0 ? m(o3.type, o3.props, o3.key, o3.ref ? o3.ref : null, o3.__v) : o3).__ = n3, o3.__b = n3.__b + 1, e3 = null, -1 != (c3 = o3.__i = L(o3, u4, f3, a3)) && (a3--, (e3 = u4[c3]) && (e3.__u |= 2)), null == e3 || null == e3.__v ? (-1 == c3 && (i3 > s4 ? h3-- : i3 < s4 && h3++), "function" != typeof o3.type && (o3.__u |= 4)) : c3 != f3 && (c3 == f3 - 1 ? h3-- : c3 == f3 + 1 ? h3++ : (c3 > f3 ? h3-- : h3++, o3.__u |= 4))) : n3.__k[r4] = null;
  if (a3) for (r4 = 0; r4 < s4; r4++) null != (e3 = u4[r4]) && 0 == (2 & e3.__u) && (e3.__e == t3 && (t3 = S(e3)), B(e3, e3));
  return t3;
}
function A(n3, l4, u4) {
  var t3, i3;
  if ("function" == typeof n3.type) {
    for (t3 = n3.__k, i3 = 0; t3 && i3 < t3.length; i3++) t3[i3] && (t3[i3].__ = n3, l4 = A(t3[i3], l4, u4));
    return l4;
  }
  n3.__e != l4 && (l4 && n3.type && !u4.contains(l4) && (l4 = S(n3)), u4.insertBefore(n3.__e, l4 || null), l4 = n3.__e);
  do {
    l4 = l4 && l4.nextSibling;
  } while (null != l4 && 8 == l4.nodeType);
  return l4;
}
function L(n3, l4, u4, t3) {
  var i3, r4, o3 = n3.key, e3 = n3.type, f3 = l4[u4];
  if (null === f3 && null == n3.key || f3 && o3 == f3.key && e3 == f3.type && 0 == (2 & f3.__u)) return u4;
  if (t3 > (null != f3 && 0 == (2 & f3.__u) ? 1 : 0)) for (i3 = u4 - 1, r4 = u4 + 1; i3 >= 0 || r4 < l4.length; ) {
    if (i3 >= 0) {
      if ((f3 = l4[i3]) && 0 == (2 & f3.__u) && o3 == f3.key && e3 == f3.type) return i3;
      i3--;
    }
    if (r4 < l4.length) {
      if ((f3 = l4[r4]) && 0 == (2 & f3.__u) && o3 == f3.key && e3 == f3.type) return r4;
      r4++;
    }
  }
  return -1;
}
function T(n3, l4, u4) {
  "-" == l4[0] ? n3.setProperty(l4, null == u4 ? "" : u4) : n3[l4] = null == u4 ? "" : "number" != typeof u4 || v.test(l4) ? u4 : u4 + "px";
}
function j(n3, l4, u4, t3, i3) {
  var r4;
  n: if ("style" == l4) if ("string" == typeof u4) n3.style.cssText = u4;
  else {
    if ("string" == typeof t3 && (n3.style.cssText = t3 = ""), t3) for (l4 in t3) u4 && l4 in u4 || T(n3.style, l4, "");
    if (u4) for (l4 in u4) t3 && u4[l4] == t3[l4] || T(n3.style, l4, u4[l4]);
  }
  else if ("o" == l4[0] && "n" == l4[1]) r4 = l4 != (l4 = l4.replace(f, "$1")), l4 = l4.toLowerCase() in n3 || "onFocusOut" == l4 || "onFocusIn" == l4 ? l4.toLowerCase().slice(2) : l4.slice(2), n3.l || (n3.l = {}), n3.l[l4 + r4] = u4, u4 ? t3 ? u4.u = t3.u : (u4.u = c, n3.addEventListener(l4, r4 ? a : s, r4)) : n3.removeEventListener(l4, r4 ? a : s, r4);
  else {
    if ("http://www.w3.org/2000/svg" == i3) l4 = l4.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
    else if ("width" != l4 && "height" != l4 && "href" != l4 && "list" != l4 && "form" != l4 && "tabIndex" != l4 && "download" != l4 && "rowSpan" != l4 && "colSpan" != l4 && "role" != l4 && "popover" != l4 && l4 in n3) try {
      n3[l4] = null == u4 ? "" : u4;
      break n;
    } catch (n4) {
    }
    "function" == typeof u4 || (null == u4 || false === u4 && "-" != l4[4] ? n3.removeAttribute(l4) : n3.setAttribute(l4, "popover" == l4 && 1 == u4 ? "" : u4));
  }
}
function F(n3) {
  return function(u4) {
    if (this.l) {
      var t3 = this.l[u4.type + n3];
      if (null == u4.t) u4.t = c++;
      else if (u4.t < t3.u) return;
      return t3(l.event ? l.event(u4) : u4);
    }
  };
}
function O(n3, u4, t3, i3, r4, o3, e3, f3, c3, s4) {
  var a3, h3, p4, y4, v3, _2, m4, b2, S2, C3, M2, $2, P2, A4, H, L2, T3, j3 = u4.type;
  if (null != u4.constructor) return null;
  128 & t3.__u && (c3 = !!(32 & t3.__u), o3 = [f3 = u4.__e = t3.__e]), (a3 = l.__b) && a3(u4);
  n: if ("function" == typeof j3) try {
    if (b2 = u4.props, S2 = "prototype" in j3 && j3.prototype.render, C3 = (a3 = j3.contextType) && i3[a3.__c], M2 = a3 ? C3 ? C3.props.value : a3.__ : i3, t3.__c ? m4 = (h3 = u4.__c = t3.__c).__ = h3.__E : (S2 ? u4.__c = h3 = new j3(b2, M2) : (u4.__c = h3 = new x(b2, M2), h3.constructor = j3, h3.render = D), C3 && C3.sub(h3), h3.props = b2, h3.state || (h3.state = {}), h3.context = M2, h3.__n = i3, p4 = h3.__d = true, h3.__h = [], h3._sb = []), S2 && null == h3.__s && (h3.__s = h3.state), S2 && null != j3.getDerivedStateFromProps && (h3.__s == h3.state && (h3.__s = d2({}, h3.__s)), d2(h3.__s, j3.getDerivedStateFromProps(b2, h3.__s))), y4 = h3.props, v3 = h3.state, h3.__v = u4, p4) S2 && null == j3.getDerivedStateFromProps && null != h3.componentWillMount && h3.componentWillMount(), S2 && null != h3.componentDidMount && h3.__h.push(h3.componentDidMount);
    else {
      if (S2 && null == j3.getDerivedStateFromProps && b2 !== y4 && null != h3.componentWillReceiveProps && h3.componentWillReceiveProps(b2, M2), !h3.__e && null != h3.shouldComponentUpdate && false === h3.shouldComponentUpdate(b2, h3.__s, M2) || u4.__v == t3.__v) {
        for (u4.__v != t3.__v && (h3.props = b2, h3.state = h3.__s, h3.__d = false), u4.__e = t3.__e, u4.__k = t3.__k, u4.__k.some(function(n4) {
          n4 && (n4.__ = u4);
        }), $2 = 0; $2 < h3._sb.length; $2++) h3.__h.push(h3._sb[$2]);
        h3._sb = [], h3.__h.length && e3.push(h3);
        break n;
      }
      null != h3.componentWillUpdate && h3.componentWillUpdate(b2, h3.__s, M2), S2 && null != h3.componentDidUpdate && h3.__h.push(function() {
        h3.componentDidUpdate(y4, v3, _2);
      });
    }
    if (h3.context = M2, h3.props = b2, h3.__P = n3, h3.__e = false, P2 = l.__r, A4 = 0, S2) {
      for (h3.state = h3.__s, h3.__d = false, P2 && P2(u4), a3 = h3.render(h3.props, h3.state, h3.context), H = 0; H < h3._sb.length; H++) h3.__h.push(h3._sb[H]);
      h3._sb = [];
    } else do {
      h3.__d = false, P2 && P2(u4), a3 = h3.render(h3.props, h3.state, h3.context), h3.state = h3.__s;
    } while (h3.__d && ++A4 < 25);
    h3.state = h3.__s, null != h3.getChildContext && (i3 = d2(d2({}, i3), h3.getChildContext())), S2 && !p4 && null != h3.getSnapshotBeforeUpdate && (_2 = h3.getSnapshotBeforeUpdate(y4, v3)), L2 = a3, null != a3 && a3.type === k && null == a3.key && (L2 = N(a3.props.children)), f3 = I(n3, w2(L2) ? L2 : [L2], u4, t3, i3, r4, o3, e3, f3, c3, s4), h3.base = u4.__e, u4.__u &= -161, h3.__h.length && e3.push(h3), m4 && (h3.__E = h3.__ = null);
  } catch (n4) {
    if (u4.__v = null, c3 || null != o3) if (n4.then) {
      for (u4.__u |= c3 ? 160 : 128; f3 && 8 == f3.nodeType && f3.nextSibling; ) f3 = f3.nextSibling;
      o3[o3.indexOf(f3)] = null, u4.__e = f3;
    } else for (T3 = o3.length; T3--; ) g(o3[T3]);
    else u4.__e = t3.__e, u4.__k = t3.__k;
    l.__e(n4, u4, t3);
  }
  else null == o3 && u4.__v == t3.__v ? (u4.__k = t3.__k, u4.__e = t3.__e) : f3 = u4.__e = V(t3.__e, u4, t3, i3, r4, o3, e3, c3, s4);
  return (a3 = l.diffed) && a3(u4), 128 & u4.__u ? void 0 : f3;
}
function z(n3, u4, t3) {
  for (var i3 = 0; i3 < t3.length; i3++) q(t3[i3], t3[++i3], t3[++i3]);
  l.__c && l.__c(u4, n3), n3.some(function(u5) {
    try {
      n3 = u5.__h, u5.__h = [], n3.some(function(n4) {
        n4.call(u5);
      });
    } catch (n4) {
      l.__e(n4, u5.__v);
    }
  });
}
function N(n3) {
  return "object" != typeof n3 || null == n3 || n3.__b && n3.__b > 0 ? n3 : w2(n3) ? n3.map(N) : d2({}, n3);
}
function V(u4, t3, i3, r4, o3, e3, f3, c3, s4) {
  var a3, h3, y4, v3, d4, _2, m4, b2 = i3.props, k4 = t3.props, x2 = t3.type;
  if ("svg" == x2 ? o3 = "http://www.w3.org/2000/svg" : "math" == x2 ? o3 = "http://www.w3.org/1998/Math/MathML" : o3 || (o3 = "http://www.w3.org/1999/xhtml"), null != e3) {
    for (a3 = 0; a3 < e3.length; a3++) if ((d4 = e3[a3]) && "setAttribute" in d4 == !!x2 && (x2 ? d4.localName == x2 : 3 == d4.nodeType)) {
      u4 = d4, e3[a3] = null;
      break;
    }
  }
  if (null == u4) {
    if (null == x2) return document.createTextNode(k4);
    u4 = document.createElementNS(o3, x2, k4.is && k4), c3 && (l.__m && l.__m(t3, e3), c3 = false), e3 = null;
  }
  if (null == x2) b2 === k4 || c3 && u4.data == k4 || (u4.data = k4);
  else {
    if (e3 = e3 && n2.call(u4.childNodes), b2 = i3.props || p, !c3 && null != e3) for (b2 = {}, a3 = 0; a3 < u4.attributes.length; a3++) b2[(d4 = u4.attributes[a3]).name] = d4.value;
    for (a3 in b2) if (d4 = b2[a3], "children" == a3) ;
    else if ("dangerouslySetInnerHTML" == a3) y4 = d4;
    else if (!(a3 in k4)) {
      if ("value" == a3 && "defaultValue" in k4 || "checked" == a3 && "defaultChecked" in k4) continue;
      j(u4, a3, null, d4, o3);
    }
    for (a3 in k4) d4 = k4[a3], "children" == a3 ? v3 = d4 : "dangerouslySetInnerHTML" == a3 ? h3 = d4 : "value" == a3 ? _2 = d4 : "checked" == a3 ? m4 = d4 : c3 && "function" != typeof d4 || b2[a3] === d4 || j(u4, a3, d4, b2[a3], o3);
    if (h3) c3 || y4 && (h3.__html == y4.__html || h3.__html == u4.innerHTML) || (u4.innerHTML = h3.__html), t3.__k = [];
    else if (y4 && (u4.innerHTML = ""), I("template" == t3.type ? u4.content : u4, w2(v3) ? v3 : [v3], t3, i3, r4, "foreignObject" == x2 ? "http://www.w3.org/1999/xhtml" : o3, e3, f3, e3 ? e3[0] : i3.__k && S(i3, 0), c3, s4), null != e3) for (a3 = e3.length; a3--; ) g(e3[a3]);
    c3 || (a3 = "value", "progress" == x2 && null == _2 ? u4.removeAttribute("value") : null != _2 && (_2 !== u4[a3] || "progress" == x2 && !_2 || "option" == x2 && _2 != b2[a3]) && j(u4, a3, _2, b2[a3], o3), a3 = "checked", null != m4 && m4 != u4[a3] && j(u4, a3, m4, b2[a3], o3));
  }
  return u4;
}
function q(n3, u4, t3) {
  try {
    if ("function" == typeof n3) {
      var i3 = "function" == typeof n3.__u;
      i3 && n3.__u(), i3 && null == u4 || (n3.__u = n3(u4));
    } else n3.current = u4;
  } catch (n4) {
    l.__e(n4, t3);
  }
}
function B(n3, u4, t3) {
  var i3, r4;
  if (l.unmount && l.unmount(n3), (i3 = n3.ref) && (i3.current && i3.current != n3.__e || q(i3, null, u4)), null != (i3 = n3.__c)) {
    if (i3.componentWillUnmount) try {
      i3.componentWillUnmount();
    } catch (n4) {
      l.__e(n4, u4);
    }
    i3.base = i3.__P = null;
  }
  if (i3 = n3.__k) for (r4 = 0; r4 < i3.length; r4++) i3[r4] && B(i3[r4], u4, t3 || "function" != typeof n3.type);
  t3 || g(n3.__e), n3.__c = n3.__ = n3.__e = void 0;
}
function D(n3, l4, u4) {
  return this.constructor(n3, u4);
}
n2 = y.slice, l = { __e: function(n3, l4, u4, t3) {
  for (var i3, r4, o3; l4 = l4.__; ) if ((i3 = l4.__c) && !i3.__) try {
    if ((r4 = i3.constructor) && null != r4.getDerivedStateFromError && (i3.setState(r4.getDerivedStateFromError(n3)), o3 = i3.__d), null != i3.componentDidCatch && (i3.componentDidCatch(n3, t3 || {}), o3 = i3.__d), o3) return i3.__E = i3;
  } catch (l5) {
    n3 = l5;
  }
  throw n3;
} }, u2 = 0, t = function(n3) {
  return null != n3 && null == n3.constructor;
}, x.prototype.setState = function(n3, l4) {
  var u4;
  u4 = null != this.__s && this.__s != this.state ? this.__s : this.__s = d2({}, this.state), "function" == typeof n3 && (n3 = n3(d2({}, u4), this.props)), n3 && d2(u4, n3), null != n3 && this.__v && (l4 && this._sb.push(l4), M(this));
}, x.prototype.forceUpdate = function(n3) {
  this.__v && (this.__e = true, n3 && this.__h.push(n3), M(this));
}, x.prototype.render = k, i = [], o = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, e = function(n3, l4) {
  return n3.__v.__b - l4.__v.__b;
}, $.__r = 0, f = /(PointerCapture)$|Capture$/i, c = 0, s = F(false), a = F(true), h = 0;

// ../../node_modules/preact/hooks/dist/hooks.module.js
var t2;
var r3;
var u3;
var i2;
var o2 = 0;
var f2 = [];
var c2 = l;
var e2 = c2.__b;
var a2 = c2.__r;
var v2 = c2.diffed;
var l2 = c2.__c;
var m2 = c2.unmount;
var s2 = c2.__;
function p2(n3, t3) {
  c2.__h && c2.__h(r3, n3, o2 || t3), o2 = 0;
  var u4 = r3.__H || (r3.__H = { __: [], __h: [] });
  return n3 >= u4.__.length && u4.__.push({}), u4.__[n3];
}
function y2(n3, u4) {
  var i3 = p2(t2++, 3);
  !c2.__s && C2(i3.__H, u4) && (i3.__ = n3, i3.u = u4, r3.__H.__h.push(i3));
}
function A2(n3) {
  return o2 = 5, T2(function() {
    return { current: n3 };
  }, []);
}
function T2(n3, r4) {
  var u4 = p2(t2++, 7);
  return C2(u4.__H, r4) && (u4.__ = n3(), u4.__H = r4, u4.__h = n3), u4.__;
}
function j2() {
  for (var n3; n3 = f2.shift(); ) if (n3.__P && n3.__H) try {
    n3.__H.__h.forEach(z2), n3.__H.__h.forEach(B2), n3.__H.__h = [];
  } catch (t3) {
    n3.__H.__h = [], c2.__e(t3, n3.__v);
  }
}
c2.__b = function(n3) {
  r3 = null, e2 && e2(n3);
}, c2.__ = function(n3, t3) {
  n3 && t3.__k && t3.__k.__m && (n3.__m = t3.__k.__m), s2 && s2(n3, t3);
}, c2.__r = function(n3) {
  a2 && a2(n3), t2 = 0;
  var i3 = (r3 = n3.__c).__H;
  i3 && (u3 === r3 ? (i3.__h = [], r3.__h = [], i3.__.forEach(function(n4) {
    n4.__N && (n4.__ = n4.__N), n4.u = n4.__N = void 0;
  })) : (i3.__h.forEach(z2), i3.__h.forEach(B2), i3.__h = [], t2 = 0)), u3 = r3;
}, c2.diffed = function(n3) {
  v2 && v2(n3);
  var t3 = n3.__c;
  t3 && t3.__H && (t3.__H.__h.length && (1 !== f2.push(t3) && i2 === c2.requestAnimationFrame || ((i2 = c2.requestAnimationFrame) || w3)(j2)), t3.__H.__.forEach(function(n4) {
    n4.u && (n4.__H = n4.u), n4.u = void 0;
  })), u3 = r3 = null;
}, c2.__c = function(n3, t3) {
  t3.some(function(n4) {
    try {
      n4.__h.forEach(z2), n4.__h = n4.__h.filter(function(n5) {
        return !n5.__ || B2(n5);
      });
    } catch (r4) {
      t3.some(function(n5) {
        n5.__h && (n5.__h = []);
      }), t3 = [], c2.__e(r4, n4.__v);
    }
  }), l2 && l2(n3, t3);
}, c2.unmount = function(n3) {
  m2 && m2(n3);
  var t3, r4 = n3.__c;
  r4 && r4.__H && (r4.__H.__.forEach(function(n4) {
    try {
      z2(n4);
    } catch (n5) {
      t3 = n5;
    }
  }), r4.__H = void 0, t3 && c2.__e(t3, r4.__v));
};
var k2 = "function" == typeof requestAnimationFrame;
function w3(n3) {
  var t3, r4 = function() {
    clearTimeout(u4), k2 && cancelAnimationFrame(t3), setTimeout(n3);
  }, u4 = setTimeout(r4, 100);
  k2 && (t3 = requestAnimationFrame(r4));
}
function z2(n3) {
  var t3 = r3, u4 = n3.__c;
  "function" == typeof u4 && (n3.__c = void 0, u4()), r3 = t3;
}
function B2(n3) {
  var t3 = r3;
  n3.__c = n3.__(), r3 = t3;
}
function C2(n3, t3) {
  return !n3 || n3.length !== t3.length || t3.some(function(t4, r4) {
    return t4 !== n3[r4];
  });
}

// ../../node_modules/@preact/signals/dist/signals.module.js
var s3;
var h2;
var l3;
var d3 = [];
var p3 = [];
E(function() {
  s3 = this.N;
})();
function m3(i3, r4) {
  l[i3] = r4.bind(null, l[i3] || function() {
  });
}
function _(i3) {
  if (l3) l3();
  l3 = i3 && i3.S();
}
function g2(i3) {
  var n3 = this, f3 = i3.data, o3 = useSignal(f3);
  o3.value = f3;
  var u4 = T2(function() {
    var i4 = n3, t3 = n3.__v;
    while (t3 = t3.__) if (t3.__c) {
      t3.__c.__$f |= 4;
      break;
    }
    var f4 = w(function() {
      var i5 = o3.value.value;
      return 0 === i5 ? 0 : true === i5 ? "" : i5 || "";
    }), u5 = w(function() {
      return !Array.isArray(f4.value) && !t(f4.value);
    }), c4 = E(function() {
      this.N = F2;
      if (u5.value) {
        var n4 = f4.value;
        if (i4.__v && i4.__v.__e && 3 === i4.__v.__e.nodeType) i4.__v.__e.data = n4;
      }
    }), v4 = n3.__$u.d;
    n3.__$u.d = function() {
      c4();
      v4.call(this);
    };
    return [u5, f4];
  }, []), c3 = u4[0], v3 = u4[1];
  return c3.value ? v3.peek() : v3.value;
}
g2.displayName = "_st";
Object.defineProperties(u.prototype, { constructor: { configurable: true, value: void 0 }, type: { configurable: true, value: g2 }, props: { configurable: true, get: function() {
  return { data: this };
} }, __b: { configurable: true, value: 1 } });
m3("__b", function(i3, n3) {
  if ("string" == typeof n3.type) {
    var r4, t3 = n3.props;
    for (var f3 in t3) if ("children" !== f3) {
      var o3 = t3[f3];
      if (o3 instanceof u) {
        if (!r4) n3.__np = r4 = {};
        r4[f3] = o3;
        t3[f3] = o3.peek();
      }
    }
  }
  i3(n3);
});
m3("__r", function(i3, n3) {
  _();
  var r4, t3 = n3.__c;
  if (t3) {
    t3.__$f &= -2;
    if (void 0 === (r4 = t3.__$u)) t3.__$u = r4 = function(i4) {
      var n4;
      E(function() {
        n4 = this;
      });
      n4.c = function() {
        t3.__$f |= 1;
        t3.setState({});
      };
      return n4;
    }();
  }
  h2 = t3;
  _(r4);
  i3(n3);
});
m3("__e", function(i3, n3, r4, t3) {
  _();
  h2 = void 0;
  i3(n3, r4, t3);
});
m3("diffed", function(i3, n3) {
  _();
  h2 = void 0;
  var r4;
  if ("string" == typeof n3.type && (r4 = n3.__e)) {
    var t3 = n3.__np, f3 = n3.props;
    if (t3) {
      var o3 = r4.U;
      if (o3) for (var e3 in o3) {
        var u4 = o3[e3];
        if (void 0 !== u4 && !(e3 in t3)) {
          u4.d();
          o3[e3] = void 0;
        }
      }
      else {
        o3 = {};
        r4.U = o3;
      }
      for (var a3 in t3) {
        var c3 = o3[a3], v3 = t3[a3];
        if (void 0 === c3) {
          c3 = b(r4, a3, v3, f3);
          o3[a3] = c3;
        } else c3.o(v3, f3);
      }
    }
  }
  i3(n3);
});
function b(i3, n3, r4, t3) {
  var f3 = n3 in i3 && void 0 === i3.ownerSVGElement, o3 = d(r4);
  return { o: function(i4, n4) {
    o3.value = i4;
    t3 = n4;
  }, d: E(function() {
    this.N = F2;
    var r5 = o3.value.value;
    if (t3[n3] !== r5) {
      t3[n3] = r5;
      if (f3) i3[n3] = r5;
      else if (r5) i3.setAttribute(n3, r5);
      else i3.removeAttribute(n3);
    }
  }) };
}
m3("unmount", function(i3, n3) {
  if ("string" == typeof n3.type) {
    var r4 = n3.__e;
    if (r4) {
      var t3 = r4.U;
      if (t3) {
        r4.U = void 0;
        for (var f3 in t3) {
          var o3 = t3[f3];
          if (o3) o3.d();
        }
      }
    }
  } else {
    var e3 = n3.__c;
    if (e3) {
      var u4 = e3.__$u;
      if (u4) {
        e3.__$u = void 0;
        u4.d();
      }
    }
  }
  i3(n3);
});
m3("__h", function(i3, n3, r4, t3) {
  if (t3 < 3 || 9 === t3) n3.__$f |= 2;
  i3(n3, r4, t3);
});
x.prototype.shouldComponentUpdate = function(i3, n3) {
  var r4 = this.__$u, t3 = r4 && void 0 !== r4.s;
  for (var f3 in n3) return true;
  if (this.__f || "boolean" == typeof this.u && true === this.u) {
    var o3 = 2 & this.__$f;
    if (!(t3 || o3 || 4 & this.__$f)) return true;
    if (1 & this.__$f) return true;
  } else {
    if (!(t3 || 4 & this.__$f)) return true;
    if (3 & this.__$f) return true;
  }
  for (var e3 in i3) if ("__source" !== e3 && i3[e3] !== this.props[e3]) return true;
  for (var u4 in this.props) if (!(u4 in i3)) return true;
  return false;
};
function useSignal(i3) {
  return T2(function() {
    return d(i3);
  }, []);
}
function useComputed(i3) {
  var n3 = A2(i3);
  n3.current = i3;
  h2.__$f |= 4;
  return T2(function() {
    return w(function() {
      return n3.current();
    });
  }, []);
}
var y3 = "undefined" == typeof requestAnimationFrame ? setTimeout : function(i3) {
  var n3 = function() {
    clearTimeout(r4);
    cancelAnimationFrame(t3);
    i3();
  }, r4 = setTimeout(n3, 100), t3 = requestAnimationFrame(n3);
};
var k3 = function(i3) {
  queueMicrotask(function() {
    queueMicrotask(i3);
  });
};
function q2() {
  r(function() {
    var i3;
    while (i3 = d3.shift()) s3.call(i3);
  });
}
function A3() {
  if (1 === d3.push(this)) (l.requestAnimationFrame || y3)(q2);
}
function w4() {
  r(function() {
    var i3;
    while (i3 = p3.shift()) s3.call(i3);
  });
}
function F2() {
  if (1 === p3.push(this)) (l.requestAnimationFrame || k3)(w4);
}
function useSignalEffect(i3) {
  var n3 = A2(i3);
  n3.current = i3;
  y2(function() {
    return E(function() {
      this.N = A3;
      return n3.current();
    });
  }, []);
}
export {
  u as Signal,
  r as batch,
  w as computed,
  E as effect,
  d as signal,
  n as untracked,
  useComputed,
  useSignal,
  useSignalEffect
};
//# sourceMappingURL=@preact_signals.js.map
