@pixelmatters/markup 1.25.0 → 1.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/widget.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/preact@10.29.7/node_modules/preact/dist/preact.module.js
1
+ //#region ../../node_modules/.pnpm/preact@10.29.8/node_modules/preact/dist/preact.module.js
2
2
  var e, t, n, r, i, a, o, s, c, l, u, d, f, p, m = {}, h = [], g = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, _ = Array.isArray;
3
3
  function v(e, t) {
4
4
  for (var n in t) e[n] = t[n];
@@ -64,29 +64,29 @@ function O() {
64
64
  }
65
65
  }
66
66
  function k(e, t, n, r, i, a, o, s, c, l, u) {
67
- var d, f, p, g, _, v, y, b = r && r.__k || h, x = t.length;
68
- for (c = A(n, t, b, c, x), d = 0; d < x; d++) (p = n.__k[d]) != null && (f = p.__i != -1 && b[p.__i] || m, p.__i = d, v = ne(e, p, f, i, a, o, s, c, l, u), g = p.__e, p.ref && f.ref != p.ref && (f.ref && ae(f.ref, null, p), u.push(p.ref, p.__c || g, p)), _ == null && g != null && (_ = g), (y = !!(4 & p.__u)) || f.__k === p.__k ? (c = j(p, c, e, y), y && f.__e && (f.__e = null)) : typeof p.type == "function" && v !== void 0 ? c = v : g && (c = g.nextSibling), p.__u &= -7);
67
+ var d, f, p, g, _, v, y = r && r.__k || h, b = t.length;
68
+ for (c = A(n, t, y, c, b), d = 0; d < b; d++) (p = n.__k[d]) != null && (f = p.__i != -1 && y[p.__i] || m, p.__i = d, v = ne(e, p, f, i, a, o, s, c, l, u), g = p.__e, p.ref && f.ref != p.ref && (f.ref && ae(f.ref, null, p), u.push(p.ref, p.__c || g, p)), _ == null && g != null && (_ = g), 4 & p.__u ? (c = j(p, c, e), f.__e && (f.__e = null)) : typeof p.type == "function" && v !== void 0 ? c = v : g && (c = g.nextSibling), p.__u &= -7);
69
69
  return n.__e = _, c;
70
70
  }
71
71
  function A(e, t, n, r, i) {
72
72
  var a, o, s, c, l, u = n.length, d = u, f = 0;
73
- for (e.__k = Array(i), a = 0; a < i; a++) (o = t[a]) != null && typeof o != "boolean" && typeof o != "function" ? (typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? o = e.__k[a] = x(null, o, null, null, null) : _(o) ? o = e.__k[a] = x(S, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? o = e.__k[a] = x(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : e.__k[a] = o, c = a + f, o.__ = e, o.__b = e.__b + 1, s = null, (l = o.__i = M(o, n, c, d)) != -1 && (d--, (s = n[l]) && (s.__u |= 2)), s == null || s.__v == null ? (l == -1 && (i > u ? f-- : i < u && f++), typeof o.type != "function" && (o.__u |= 4)) : l != c && (l == c - 1 ? f-- : l == c + 1 ? f++ : (l > c ? f-- : f++, o.__u |= 4))) : e.__k[a] = null;
73
+ for (e.__k = Array(i), a = 0; a < i; a++) (o = t[a]) != null && typeof o != "boolean" && typeof o != "function" ? (typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? o = e.__k[a] = x(null, o, null, null, null) : _(o) ? o = e.__k[a] = x(S, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? o = e.__k[a] = x(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : e.__k[a] = o, c = a + f, o.__ = e, o.__b = e.__b + 1, s = null, (l = o.__i = ee(o, n, c, d)) != -1 && (d--, (s = n[l]) && (s.__u |= 2)), s == null || s.__v == null ? (l == -1 && (i > u ? f-- : i < u && f++), typeof o.type != "function" && (o.__u |= 4)) : l != c && (l == c - 1 ? f-- : l == c + 1 ? f++ : (l > c ? f-- : f++, o.__u |= 4))) : e.__k[a] = null;
74
74
  if (d) for (a = 0; a < u; a++) (s = n[a]) != null && !(2 & s.__u) && (s.__e == r && (r = w(s)), oe(s, s));
75
75
  return r;
76
76
  }
77
- function j(e, t, n, r) {
78
- var i, a;
77
+ function j(e, t, n) {
78
+ var r, i;
79
79
  if (typeof e.type == "function") {
80
- for (i = e.__k, a = 0; i && a < i.length; a++) i[a] && (i[a].__ = e, t = j(i[a], t, n, r));
80
+ for (r = e.__k, i = 0; r && i < r.length; i++) r[i] && (r[i].__ = e, t = j(r[i], t, n));
81
81
  return t;
82
82
  }
83
- e.__e != t && (r && (t && e.type && !t.parentNode && (t = w(e)), n.insertBefore(e.__e, t || null)), t = e.__e);
83
+ e.__e != t && (t && e.type && !t.parentNode && (t = w(e)), t = n.insertBefore(e.__e, t || null));
84
84
  do
85
85
  t &&= t.nextSibling;
86
86
  while (t != null && t.nodeType == 8);
87
87
  return t;
88
88
  }
89
- function M(e, t, n, r) {
89
+ function ee(e, t, n, r) {
90
90
  var i, a, o, s = e.key, c = e.type, l = t[n], u = l != null && !(2 & l.__u);
91
91
  if (l === null && s == null || u && s == l.key && c == l.type) return n;
92
92
  if (r > +!!u) {
@@ -94,17 +94,18 @@ function M(e, t, n, r) {
94
94
  }
95
95
  return -1;
96
96
  }
97
- function ee(e, t, n) {
97
+ function M(e, t, n) {
98
98
  t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || g.test(t) ? n : n + "px";
99
99
  }
100
- function N(e, t, n, r, i) {
100
+ function te(e, t, n, r, i) {
101
101
  var a, o;
102
- n: if (t == "style") if (typeof n == "string") e.style.cssText = n;
103
- else {
104
- if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || ee(e.style, t, "");
105
- if (n) for (t in n) r && n[t] == r[t] || ee(e.style, t, n[t]);
106
- }
107
- else if (t[0] == "o" && t[1] == "n") a = t != (t = t.replace(u, "$1")), o = t.toLowerCase(), t = o in e || t == "onFocusOut" || t == "onFocusIn" ? o.slice(2) : t.slice(2), e.l ||= {}, e.l[t + a] = n, n ? r ? n[l] = r[l] : (n[l] = d, e.addEventListener(t, a ? p : f, a)) : e.removeEventListener(t, a ? p : f, a);
102
+ n: if (t == "style") {
103
+ if (typeof n == "string") e.style.cssText = n;
104
+ else {
105
+ if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || M(e.style, t, "");
106
+ if (n) for (t in n) r && n[t] == r[t] || M(e.style, t, n[t]);
107
+ }
108
+ } else if (t[0] == "o" && t[1] == "n") a = t != (t = t.replace(u, "$1")), o = t.toLowerCase(), t = o in e || t == "onFocusOut" || t == "onFocusIn" ? o.slice(2) : t.slice(2), e.l ||= {}, e.l[t + a] = n, n ? r ? n[l] = r[l] : (n[l] = d, e.addEventListener(t, a ? p : f, a)) : e.removeEventListener(t, a ? p : f, a);
108
109
  else {
109
110
  if (i == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
110
111
  else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
@@ -114,7 +115,7 @@ function N(e, t, n, r, i) {
114
115
  typeof n == "function" || (n == null || !1 === n && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n));
115
116
  }
116
117
  }
117
- function te(e) {
118
+ function N(e) {
118
119
  return function(n) {
119
120
  if (this.l) {
120
121
  var r = this.l[n.type + e];
@@ -125,35 +126,35 @@ function te(e) {
125
126
  };
126
127
  }
127
128
  function ne(e, n, r, i, a, o, s, c, l, u) {
128
- var d, f, p, m, g, b, x, w, T, E, D, O, A, j, M, ee, N = n.type;
129
+ var d, f, p, m, g, b, x, T, E, D, O, A, j, ee, M, te, N = n.type;
129
130
  if (n.constructor !== void 0) return null;
130
131
  128 & r.__u && (l = !!(32 & r.__u), o = [c = n.__e = r.__e]), (d = t.__b) && d(n);
131
132
  n: if (typeof N == "function") {
132
133
  f = s.length;
133
134
  try {
134
- if (T = n.props, E = N.prototype && N.prototype.render, D = (d = N.contextType) && i[d.__c], O = d ? D ? D.props.value : d.__ : i, r.__c ? w = (p = n.__c = r.__c).__ = p.__E : (E ? n.__c = p = new N(T, O) : (n.__c = p = new C(T, O), p.constructor = N, p.render = se), D && D.sub(p), p.state || (p.state = {}), p.__n = i, m = p.__d = !0, p.__h = [], p._sb = []), E && p.__s == null && (p.__s = p.state), E && N.getDerivedStateFromProps != null && (p.__s == p.state && (p.__s = v({}, p.__s)), v(p.__s, N.getDerivedStateFromProps(T, p.__s))), g = p.props, b = p.state, p.__v = n, m) E && N.getDerivedStateFromProps == null && p.componentWillMount != null && p.componentWillMount(), E && p.componentDidMount != null && p.__h.push(p.componentDidMount);
135
+ if (E = n.props, D = N.prototype && N.prototype.render, O = (d = N.contextType) && i[d.__c], A = d ? O ? O.props.value : d.__ : i, r.__c ? T = (p = n.__c = r.__c).__ = p.__E : (D ? n.__c = p = new N(E, A) : (n.__c = p = new C(E, A), p.constructor = N, p.render = se), O && O.sub(p), p.state || (p.state = {}), p.__n = i, m = p.__d = !0, p.__h = [], p._sb = []), D && p.__s == null && (p.__s = p.state), D && N.getDerivedStateFromProps != null && (p.__s == p.state && (p.__s = v({}, p.__s)), v(p.__s, N.getDerivedStateFromProps(E, p.__s))), g = p.props, b = p.state, p.__v = n, m) D && N.getDerivedStateFromProps == null && p.componentWillMount != null && p.componentWillMount(), D && p.componentDidMount != null && p.__h.push(p.componentDidMount);
135
136
  else {
136
- if (E && N.getDerivedStateFromProps == null && T !== g && p.componentWillReceiveProps != null && p.componentWillReceiveProps(T, O), n.__v == r.__v || !p.__e && p.shouldComponentUpdate != null && !1 === p.shouldComponentUpdate(T, p.__s, O)) {
137
- n.__v != r.__v && (p.props = T, p.state = p.__s, p.__d = !1), n.__e = r.__e, n.__k = r.__k, n.__k.some(function(e) {
137
+ if (D && N.getDerivedStateFromProps == null && E !== g && p.componentWillReceiveProps != null && p.componentWillReceiveProps(E, A), n.__v == r.__v || !p.__e && p.shouldComponentUpdate != null && !1 === p.shouldComponentUpdate(E, p.__s, A)) {
138
+ n.__v != r.__v && (p.props = E, p.state = p.__s, p.__d = !1), n.__e = r.__e, n.__k = r.__k, n.__k.some(function(e) {
138
139
  e && (e.__ = n);
139
- }), h.push.apply(p.__h, p._sb), p._sb = [], p.__h.length && s.push(p);
140
+ }), h.push.apply(p.__h, p._sb), p._sb = [], p.__h.length && s.push(p), c = w(r);
140
141
  break n;
141
142
  }
142
- p.componentWillUpdate != null && p.componentWillUpdate(T, p.__s, O), E && p.componentDidUpdate != null && p.__h.push(function() {
143
+ p.componentWillUpdate != null && p.componentWillUpdate(E, p.__s, A), D && p.componentDidUpdate != null && p.__h.push(function() {
143
144
  p.componentDidUpdate(g, b, x);
144
145
  });
145
146
  }
146
- if (p.context = O, p.props = T, p.__P = e, p.__e = !1, A = t.__r, j = 0, E) p.state = p.__s, p.__d = !1, A && A(n), d = p.render(p.props, p.state, p.context), h.push.apply(p.__h, p._sb), p._sb = [];
147
+ if (p.context = A, p.props = E, p.__P = e, p.__e = !1, j = t.__r, ee = 0, D) p.state = p.__s, p.__d = !1, j && j(n), d = p.render(p.props, p.state, p.context), h.push.apply(p.__h, p._sb), p._sb = [];
147
148
  else do
148
- p.__d = !1, A && A(n), d = p.render(p.props, p.state, p.context), p.state = p.__s;
149
- while (p.__d && ++j < 25);
150
- p.state = p.__s, p.getChildContext != null && (i = v(v({}, i), p.getChildContext())), E && !m && p.getSnapshotBeforeUpdate != null && (x = p.getSnapshotBeforeUpdate(g, b)), M = d != null && d.type === S && d.key == null ? re(d.props.children) : d, c = k(e, _(M) ? M : [M], n, r, i, a, o, s, c, l, u), p.base = n.__e, n.__u &= -161, p.__h.length && s.push(p), w && (p.__E = p.__ = null);
149
+ p.__d = !1, j && j(n), d = p.render(p.props, p.state, p.context), p.state = p.__s;
150
+ while (p.__d && ++ee < 25);
151
+ p.state = p.__s, p.getChildContext != null && (i = v(v({}, i), p.getChildContext())), D && !m && p.getSnapshotBeforeUpdate != null && (x = p.getSnapshotBeforeUpdate(g, b)), M = d != null && d.type === S && d.key == null ? re(d.props.children) : d, c = k(e, _(M) ? M : [M], n, r, i, a, o, s, c, l, u), p.base = n.__e, n.__u &= -161, p.__h.length && s.push(p), T && (p.__E = p.__ = null);
151
152
  } catch (e) {
152
153
  if (s.length = f, n.__v = null, l || o != null) {
153
154
  if (e.then) {
154
155
  for (n.__u |= l ? 160 : 128; c && c.nodeType == 8 && c.nextSibling;) c = c.nextSibling;
155
156
  o != null && (o[o.indexOf(c)] = null), n.__e = c;
156
- } else if (o != null) for (ee = o.length; ee--;) y(o[ee]);
157
+ } else if (o != null) for (te = o.length; te--;) y(o[te]);
157
158
  } else n.__e = r.__e;
158
159
  n.__k ??= r.__k || [], e.then || P(n), t.__e(e, n, r);
159
160
  }
@@ -193,11 +194,11 @@ function ie(n, r, i, a, o, s, c, l, u) {
193
194
  if (C == null) x === S || l && n.data == S || (n.data = S);
194
195
  else {
195
196
  if (s = C == "textarea" && S.defaultValue != null ? null : s && e.call(n.childNodes), !l && s != null) for (x = {}, d = 0; d < n.attributes.length; d++) x[(g = n.attributes[d]).name] = g.value;
196
- for (d in x) g = x[d], d == "dangerouslySetInnerHTML" ? p = g : d == "children" || d in S || d == "value" && "defaultValue" in S || d == "checked" && "defaultChecked" in S || N(n, d, null, g, o);
197
- for (d in S) g = S[d], d == "children" ? h = g : d == "dangerouslySetInnerHTML" ? f = g : d == "value" ? v = g : d == "checked" ? b = g : l && typeof g != "function" || x[d] === g || N(n, d, g, x[d], o);
197
+ for (d in x) g = x[d], d == "dangerouslySetInnerHTML" ? p = g : d == "children" || d in S || d == "value" && "defaultValue" in S || d == "checked" && "defaultChecked" in S || te(n, d, null, g, o);
198
+ for (d in S) g = S[d], d == "children" ? h = g : d == "dangerouslySetInnerHTML" ? f = g : d == "value" ? v = g : d == "checked" ? b = g : l && typeof g != "function" || x[d] === g || te(n, d, g, x[d], o);
198
199
  if (f) l || p && (f.__html == p.__html || f.__html == n.innerHTML) || (n.innerHTML = f.__html), r.__k = [];
199
200
  else if (p && (n.innerHTML = ""), k(r.type == "template" ? n.content : n, _(h) ? h : [h], r, i, a, C == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, s, c, s ? s[0] : i.__k && w(i, 0), l, u), s != null) for (d = s.length; d--;) y(s[d]);
200
- l && C != "textarea" || (d = "value", C == "progress" && v == null ? n.removeAttribute("value") : v != null && (v !== n[d] || C == "progress" && !v || C == "option" && v != x[d]) && N(n, d, v, x[d], o), d = "checked", b != null && b != n[d] && N(n, d, b, x[d], o));
201
+ l && C != "textarea" || (d = "value", C == "progress" && v == null ? n.removeAttribute("value") : v != null && (v !== n[d] || C == "progress" && !v || C == "option" && v != x[d]) && te(n, d, v, x[d], o), d = "checked", b != null && b != n[d] && te(n, d, b, x[d], o));
201
202
  }
202
203
  return n;
203
204
  }
@@ -245,7 +246,7 @@ e = h.slice, t = { __e: function(e, t, n, r) {
245
246
  this.__v && (this.__e = !0, e && this.__h.push(e), D(this));
246
247
  }, C.prototype.render = S, r = [], a = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, o = function(e, t) {
247
248
  return e.__v.__b - t.__v.__b;
248
- }, O.__r = 0, s = Math.random().toString(8), c = "__d" + s, l = "__a" + s, u = /(PointerCapture)$|Capture$/i, d = 0, f = te(!1), p = te(!0);
249
+ }, O.__r = 0, s = Math.random().toString(8), c = "__d" + s, l = "__a" + s, u = /(PointerCapture)$|Capture$/i, d = 0, f = N(!1), p = N(!0);
249
250
  //#endregion
250
251
  //#region src/styles.css?inline
251
252
  var le = ":host{--markup-paper:#fdfcfa;--markup-surface:#fff;--markup-surface-2:oklch(98.5% .002 250);--markup-surface-3:oklch(95% .003 250);--markup-hover:oklch(95% .003 250);--markup-ink:#1a1614;--markup-ink-soft:oklch(32% .005 250);--markup-muted:#6b6661;--markup-border:#1a16141a;--markup-border-strong:#1a16142e;--markup-brand:#e35d2a;--markup-brand-hover:#c84d20;--markup-accent-soft:oklch(95% .04 60);--markup-accent-ink:oklch(45% .14 38);--markup-accent-glow:color-mix(in srgb, var(--markup-brand) 28%, transparent);--markup-team:#2a4ac8;--markup-shadow:0 1px 2px #1a16140f, 0 8px 28px #1a16141f;--markup-shadow-toolbar:0 1px 1px #0000000a, 0 4px 10px -2px #0f14281a, 0 18px 36px -12px #0f14282e;--markup-shadow-pop:0 1px 1px #0000000a, 0 8px 24px -6px #0f14281f, 0 28px 60px -18px #0f142838;--markup-overlay-tint:#1a16140a;--markup-danger:#dc2626;--markup-success:oklch(62% .16 150);--markup-radius:6px;--markup-radius-sm:4px;--markup-popover-w:360px;--markup-pin-enter:.18s;--markup-menu-in:.12s;--markup-font:\"Geist Variable\", \"Geist\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif;--markup-font-mono:\"Geist Mono Variable\", \"Geist Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;all:initial;font-family:var(--markup-font);color:var(--markup-ink);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:14px;line-height:1.5}:host([data-theme=dark]){--markup-paper:#1a1614;--markup-surface:oklch(16% .005 250);--markup-surface-2:oklch(20% .005 250);--markup-surface-3:oklch(24% .005 250);--markup-hover:oklch(24% .005 250);--markup-ink:#fdfcfa;--markup-ink-soft:oklch(80% .005 250);--markup-muted:#a8a39e;--markup-border:#fdfcfa1f;--markup-border-strong:#fdfcfa38;--markup-team:#7b99f0;--markup-accent-soft:color-mix(in srgb, var(--markup-brand) 22%, transparent);--markup-accent-ink:oklch(86% .13 55);--markup-shadow:0 1px 2px #00000059, 0 12px 40px #00000073;--markup-shadow-toolbar:0 1px 0 #ffffff0a inset, 0 1px 2px #0006, 0 12px 30px -10px #0000008c, 0 28px 60px -20px #00000080;--markup-shadow-pop:0 1px 0 #ffffff0a inset, 0 8px 24px -6px #00000073, 0 28px 60px -18px #0000008c;--markup-overlay-tint:#fdfcfa0d;--markup-danger:#f87171}@media (prefers-color-scheme:dark){:host(:not([data-theme])){--markup-paper:#1a1614;--markup-surface:oklch(16% .005 250);--markup-surface-2:oklch(20% .005 250);--markup-surface-3:oklch(24% .005 250);--markup-hover:oklch(24% .005 250);--markup-ink:#fdfcfa;--markup-ink-soft:oklch(80% .005 250);--markup-muted:#a8a39e;--markup-border:#fdfcfa1f;--markup-border-strong:#fdfcfa38;--markup-team:#7b99f0;--markup-accent-soft:color-mix(in srgb, var(--markup-brand) 22%, transparent);--markup-accent-ink:oklch(86% .13 55);--markup-shadow:0 1px 2px #00000059, 0 12px 40px #00000073;--markup-shadow-toolbar:0 1px 0 #ffffff0a inset, 0 1px 2px #0006, 0 12px 30px -10px #0000008c, 0 28px 60px -20px #00000080;--markup-shadow-pop:0 1px 0 #ffffff0a inset, 0 8px 24px -6px #00000073, 0 28px 60px -18px #0000008c;--markup-overlay-tint:#fdfcfa0d;--markup-danger:#f87171}}.markup-sr-only{clip:rect(0, 0, 0, 0);border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.markup-shadow-root{font-family:var(--markup-font)}.markup-shadow-root *,.markup-shadow-root :before,.markup-shadow-root :after{box-sizing:border-box}:where(.markup-shadow-root button,.markup-shadow-root input,.markup-shadow-root textarea){font:inherit;color:inherit}.markup-eyebrow{font-family:var(--markup-font-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--markup-muted);font-size:10px;font-weight:500}.markup-toolbar{z-index:10;background:var(--markup-surface);border:1px solid var(--markup-border);pointer-events:none;height:44px;box-shadow:var(--markup-shadow-toolbar);transform-origin:50% 100%;border-radius:9999px;align-items:center;gap:2px;padding:4px;transition:box-shadow .15s,left .22s cubic-bezier(.2,.7,.2,1),transform .22s cubic-bezier(.2,.7,.2,1);animation:.22s cubic-bezier(.2,.7,.2,1) backwards markup-toolbar-in;display:inline-flex;position:fixed;bottom:22px;left:100%;transform:translate(calc(-100% - 22px))}.markup-toolbar.is-leaving,.markup-toolbar.is-leaving>*{pointer-events:none}.markup-toolbar.is-leaving{animation-name:markup-toolbar-out;animation-duration:var(--markup-toolbar-leave);animation-timing-function:ease-in;animation-fill-mode:forwards}@keyframes markup-toolbar-in{0%{opacity:0;translate:0 10px;scale:.96}to{opacity:1;translate:0;scale:1}}@keyframes markup-toolbar-out{0%{opacity:1;translate:0;scale:1}to{opacity:0;translate:0 6px;scale:.97}}.markup-toolbar>*{pointer-events:auto}.markup-tb-btn{width:36px;height:36px;color:var(--markup-ink-soft);cursor:pointer;touch-action:none;font-family:var(--markup-font);background:0 0;border:1px solid #0000;border-radius:9999px;justify-content:center;align-items:center;gap:6px;padding:0;font-size:13px;font-weight:500;transition:background .12s,color .12s,transform .12s cubic-bezier(.2,.7,.2,1);display:inline-flex;position:relative}.markup-tb-btn:hover{background:var(--markup-hover);color:var(--markup-ink)}.markup-tb-btn:active{transform:scale(.97)}.markup-tb-btn:focus-visible{box-shadow:0 0 0 2px var(--markup-surface), 0 0 0 4px var(--markup-accent-glow);outline:none}.markup-tb-btn[data-on=true]{background:var(--markup-ink);color:var(--markup-paper)}@media (prefers-color-scheme:dark){:host(:not([data-theme])) .markup-tb-btn[data-on=true]{background:var(--markup-surface-3);color:var(--markup-ink)}}:host([data-theme=dark]) .markup-tb-btn[data-on=true]{background:var(--markup-surface-3);color:var(--markup-ink)}.markup-tb-btn[data-armed=true]{background:var(--markup-brand);color:#fff}.markup-tb-btn[data-armed=true]:hover{background:var(--markup-brand-hover);color:#fff}.markup-tb-btn[disabled]{color:color-mix(in srgb, var(--markup-muted) 60%, transparent);cursor:default}.markup-tb-btn[disabled]:hover{color:color-mix(in srgb, var(--markup-muted) 60%, transparent);background:0 0}.markup-tb-btn[data-kind=identity]{gap:6px;width:auto;padding:0 4px}.markup-tb-avatar{background:var(--markup-surface-3);width:28px;height:28px;font-family:var(--markup-font-mono);color:var(--markup-ink);border:1px solid var(--markup-border);border-radius:9999px;flex-shrink:0;justify-content:center;align-items:center;font-size:10.5px;font-weight:600;display:inline-flex;overflow:hidden}.markup-tb-avatar.is-anon{color:var(--markup-muted);background:var(--markup-surface-2)}.markup-tb-sep{background:var(--markup-border);flex-shrink:0;width:1px;height:20px;margin:0 4px}.markup-tb-badge{background:var(--markup-brand);color:#fff;min-width:16px;height:16px;font-family:var(--markup-font-mono);box-shadow:0 0 0 2px var(--markup-surface);pointer-events:none;border-radius:9999px;justify-content:center;align-items:center;padding:0 4px;font-size:9.5px;font-weight:600;line-height:1;transition:transform .15s cubic-bezier(.2,.7,.2,1),opacity .15s cubic-bezier(.2,.7,.2,1);display:inline-flex;position:absolute;top:0;right:0}.markup-tb-badge[data-unread=false]{opacity:0;transform:scale(.5)}.markup-toolbar-left{left:0;transform:translate(22px)}.markup-toolbar-center{left:50%;transform:translate(-50%)}.markup-toolbar-right{left:100%;transform:translate(calc(-100% - 22px))}.markup-pop{background:var(--markup-surface);border:1px solid var(--markup-border);box-shadow:var(--markup-shadow-pop);color:var(--markup-ink);z-index:11;border-radius:12px;font-size:13px;animation:.14s cubic-bezier(.2,.7,.2,1) markup-pop-in;position:absolute;bottom:calc(100% + 8px);overflow:hidden}.markup-pop[data-pop=overflow]{--markup-view-w:260px;--markup-view-fit:min(var(--markup-view-w), calc(100vw - 24px));width:var(--markup-view-fit);align-items:flex-end;transition:width .16s cubic-bezier(.2,.7,.2,1),height .16s cubic-bezier(.2,.7,.2,1);display:flex}.markup-pop[data-pop=overflow]>*{width:var(--markup-view-fit);flex:none}.markup-pop[data-pop=overflow].is-anchor-right{justify-content:flex-end}.markup-pop[data-pop=overflow].is-anchor-center{justify-content:center}.markup-pop[data-pop=overflow]:focus{outline:none}.markup-pop[data-pop=overflow][data-view=privacy]{--markup-view-w:340px}.markup-pop[data-pop=overflow][data-view=shortcuts]{--markup-view-w:320px}.markup-menu-view{padding:6px;display:block}.markup-pop[data-pop=identity]{width:240px;padding:6px}.markup-pop[data-pop=inbox]{width:var(--markup-popover-w);padding:0}.markup-pop.is-anchor-right{right:0}.markup-pop.is-anchor-left{left:0}.markup-pop.is-anchor-center{left:50%;transform:translate(-50%)}@keyframes markup-pop-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.markup-pop.is-anchor-center{animation-name:markup-pop-in-center}@keyframes markup-pop-in-center{0%{opacity:0;transform:translate(-50%,6px)}to{opacity:1;transform:translate(-50%)}}.markup-pop.is-leaving{pointer-events:none;animation-name:markup-pop-out;animation-duration:var(--markup-pop-leave);animation-timing-function:ease-in;animation-fill-mode:forwards}.markup-pop.is-anchor-center.is-leaving{animation-name:markup-pop-out-center}@keyframes markup-pop-out{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(6px)}}@keyframes markup-pop-out-center{0%{opacity:1;transform:translate(-50%)}to{opacity:0;transform:translate(-50%,6px)}}.markup-pop-group-label{font-family:var(--markup-font-mono);letter-spacing:.06em;color:var(--markup-muted);text-transform:lowercase;padding:8px 10px 4px;font-size:10px}.markup-segmented-row{border-radius:6px;align-items:center;gap:10px;padding:7px 8px;display:flex}.markup-segmented-row .lbl{min-width:0;color:var(--markup-ink);flex:1;font-size:13px}.markup-segmented{background:var(--markup-surface-3);border-radius:7px;gap:2px;padding:2px;display:inline-flex}.markup-segmented button{font:inherit;width:28px;height:24px;color:var(--markup-muted);cursor:pointer;background:0 0;border:none;border-radius:5px;justify-content:center;align-items:center;padding:0;transition:background .1s,color .1s;display:inline-flex}.markup-segmented button:hover{color:var(--markup-ink)}.markup-segmented button.is-on{background:var(--markup-surface);color:var(--markup-ink);box-shadow:0 1px 2px #0000000d}.markup-menu-row{cursor:pointer;width:100%;color:inherit;text-align:left;background:0 0;border:none;border-radius:6px;align-items:center;gap:10px;padding:7px 8px;font-family:inherit;font-size:13px;display:flex}.markup-menu-row.no-underline{text-decoration:none}.markup-menu-row:hover{background:var(--markup-hover)}.markup-menu-row:disabled{opacity:.5;cursor:default}.markup-menu-row:disabled:hover{background:0 0}.markup-menu-row .ic{width:16px;height:16px;color:var(--markup-muted);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.markup-menu-row .lbl{flex-direction:column;flex:1;min-width:0;display:flex}.markup-menu-row .lbl .sub{color:var(--markup-muted);margin-top:1px;font-size:11px}.markup-menu-row .right{font-family:var(--markup-font-mono);color:var(--markup-muted);align-items:center;margin-left:auto;font-size:10.5px;display:inline-flex}.markup-menu-row.is-danger,.markup-menu-row.is-danger .ic{color:var(--markup-danger)}.markup-menu-row.is-danger:hover{background:color-mix(in srgb, var(--markup-danger) 10%, transparent)}.markup-menu-row .switch{background:var(--markup-border-strong);border-radius:9999px;flex-shrink:0;width:26px;height:16px;transition:background .12s;position:relative}.markup-menu-row .switch:after{content:\"\";background:var(--markup-surface);border-radius:9999px;width:12px;height:12px;transition:left .12s;position:absolute;top:2px;left:2px;box-shadow:0 1px 2px #00000026}.markup-menu-row[data-on=true] .switch{background:var(--markup-brand)}.markup-menu-row[data-on=true] .switch:after{left:12px}.markup-menu-divider{background:var(--markup-border);height:1px;margin:4px 0}.markup-brand-line{font-family:var(--markup-font-mono);color:var(--markup-muted);border-top:1px solid var(--markup-border);align-items:center;gap:10px;margin-top:6px;padding:14px 10px 8px;font-size:11px;text-decoration:none;display:flex}.markup-brand-line:hover{color:var(--markup-ink)}.markup-brand-line svg{color:var(--markup-brand)}.markup-brand-line .ver{margin-left:auto}.markup-id-who{border-bottom:1px solid var(--markup-border);flex-direction:column;gap:2px;margin-bottom:4px;padding:10px 8px 12px;display:flex}.markup-id-who .nm{color:var(--markup-ink);font-size:13.5px;font-weight:600}.markup-id-who .em{font-family:var(--markup-font-mono);color:var(--markup-muted);white-space:nowrap;text-overflow:ellipsis;font-size:11px;overflow:hidden}.markup-id-anon{text-align:left;flex-direction:column;gap:10px;padding:14px 10px;display:flex}.markup-id-anon .h{letter-spacing:-.005em;color:var(--markup-ink);font-size:14px;font-weight:600}.markup-id-anon .sub{color:var(--markup-muted);font-size:12.5px;line-height:18px}.markup-id-anon button:not(.markup-menu-row){background:var(--markup-ink);width:100%;color:var(--markup-paper);height:32px;font:inherit;cursor:pointer;border:none;border-radius:7px;justify-content:center;align-items:center;gap:6px;font-size:13px;font-weight:500;display:inline-flex}.markup-id-anon button:disabled{opacity:.7;cursor:default}.markup-id-anon button:not(.markup-menu-row):hover:not(:disabled){background:color-mix(in srgb, var(--markup-ink) 88%, var(--markup-surface))}.markup-hud-hidden-toast{z-index:10;background:var(--markup-ink);color:var(--markup-paper);letter-spacing:-.01em;box-shadow:var(--markup-shadow);pointer-events:none;border-radius:999px;align-items:center;gap:6px;padding:8px 14px;font-size:12px;font-weight:500;animation:.22s ease-out markup-hud-hidden-in;display:inline-flex;position:fixed;bottom:24px}.markup-hud-hidden-toast.is-leaving{animation-name:markup-hud-hidden-out;animation-duration:var(--markup-toast-leave);animation-timing-function:ease-in;animation-fill-mode:forwards}.markup-hud-hidden-toast-right{right:24px}.markup-hud-hidden-toast-left{left:24px}.markup-hud-hidden-toast-center{width:max-content;margin-inline:auto;left:0;right:0}.markup-kbd{background:color-mix(in srgb, var(--markup-paper) 14%, transparent);min-width:18px;height:18px;color:var(--markup-paper);font-family:var(--markup-font);border-radius:4px;justify-content:center;align-items:center;padding:0 5px;font-size:10px;font-weight:600;line-height:1;display:inline-flex}.markup-kbd.is-inline{background:color-mix(in srgb, var(--markup-ink) 8%, transparent);min-width:14px;height:14px;color:var(--markup-muted);border-radius:3px;padding:0 3px;font-size:9.5px}@keyframes markup-hud-hidden-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes markup-hud-hidden-out{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(4px)}}.markup-pins-layer{pointer-events:none;position:fixed;inset:0}.markup-pin{border:2px solid var(--markup-paper);background:var(--markup-brand);color:#fff;width:28px;height:28px;font-family:var(--markup-font-mono);cursor:pointer;pointer-events:auto;opacity:var(--markup-pin-opacity,1);transform-origin:0 100%;box-shadow:0 4px 14px -4px #00000059, 0 0 0 1px color-mix(in srgb, var(--markup-brand) 50%, transparent);border-radius:999px 999px 999px 4px;justify-content:center;align-items:center;margin:0;padding:0;font-size:11.5px;font-weight:600;line-height:1;transition:background .15s,color .15s,opacity .15s,top .2s,left .2s;display:inline-flex;position:absolute;transform:translate(-50%,-100%)}.markup-pin.is-entering{animation:markup-pin-in var(--markup-pin-enter) cubic-bezier(.2, .7, .2, 1) backwards}.markup-pin:hover{background:color-mix(in oklab, var(--markup-brand) 92%, black)}:host([data-theme=dark]) .markup-pin:hover{background:color-mix(in oklab, var(--markup-brand) 88%, var(--markup-paper))}@media (prefers-color-scheme:dark){:host(:not([data-theme])) .markup-pin:hover{background:color-mix(in oklab, var(--markup-brand) 88%, var(--markup-paper))}}.markup-pin.is-active{background:var(--markup-brand);color:#fff;border-color:var(--markup-paper)}.markup-pin.is-anchor{anchor-name:--markup-active-anchor}.markup-pin.is-leaving{pointer-events:none;animation-name:markup-pin-out;animation-duration:var(--markup-pin-leave);animation-timing-function:ease-in;animation-iteration-count:1;animation-fill-mode:forwards}.markup-pin-ghost.is-leaving{animation-duration:var(--markup-popover-leave)}@keyframes markup-pin-in{0%{opacity:0;transform:translate(-50%,-100%)scale(.5)}to{opacity:var(--markup-pin-opacity,1);transform:translate(-50%,-100%)scale(1)}}@keyframes markup-pin-out{0%{opacity:var(--markup-pin-opacity,1);transform:translate(-50%,-100%)scale(1)}to{opacity:0;transform:translate(-50%,-100%)scale(.7)}}.markup-pin.is-unresolved{--markup-pin-opacity:.6}.markup-pin.is-closed,.markup-pin.is-closed.is-active{background:var(--markup-paper);color:var(--markup-muted);border-color:var(--markup-muted);box-shadow:0 4px 14px -4px #00000040}.markup-pin.is-closed:hover{background:var(--markup-paper);color:var(--markup-ink)}.markup-pin-ghost{background:var(--markup-brand);color:#fff;cursor:default;pointer-events:none;animation:1.2s ease-in-out infinite markup-ghost-pulse}.markup-pin-num{pointer-events:none;justify-content:center;align-items:center;display:inline-flex}.markup-pin-count{background:var(--markup-ink);min-width:16px;height:16px;color:var(--markup-paper);font-family:var(--markup-font-mono);text-align:center;border:2px solid var(--markup-paper);pointer-events:none;border-radius:999px;padding:0 4px;font-size:9.5px;font-weight:600;line-height:12px;position:absolute;top:-6px;right:-8px}@keyframes markup-ghost-pulse{0%,to{box-shadow:0 4px 14px -4px #00000059,0 0 #e35d2a66}50%{box-shadow:0 4px 14px -4px #00000059,0 0 0 10px #e35d2a00}}.markup-placement-overlay{background:var(--markup-overlay-tint);pointer-events:none;z-index:1;animation:.18s ease-out markup-overlay-in;position:fixed;inset:0}.markup-placement-cursor-help{background:var(--markup-ink);color:var(--markup-paper);letter-spacing:-.01em;box-shadow:var(--markup-shadow);pointer-events:none;border-radius:999px;padding:10px 16px;font-size:12px;font-weight:500;animation:.22s ease-out 60ms backwards markup-help-in;position:fixed;top:24px;left:50%;transform:translate(-50%)}@keyframes markup-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes markup-help-in{0%{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translate(-50%)}}.markup-popover{width:var(--markup-popover-w);max-width:calc(100vw - 24px);height:auto;max-height:calc(100dvh - 24px);inset:auto;left:var(--markup-pop-x,0);top:var(--markup-pop-y,0);background:var(--markup-paper);color:var(--markup-ink);border:1px solid var(--markup-border-strong);border-radius:var(--markup-radius);box-shadow:var(--markup-shadow);pointer-events:auto;flex-direction:column;gap:0;margin:0;padding:0;animation:.16s ease-out markup-popover-in;display:flex;position:fixed;overflow:hidden}@supports (anchor-name:--x){.markup-popover{position-anchor:--markup-active-anchor;left:calc(anchor(right) + 8px);top:calc(anchor(top) - 9px);position-try-fallbacks:flip-block, flip-inline, flip-block flip-inline;position-try-order:most-block-size}.markup-popover.is-floating{left:var(--markup-pop-x,0);top:var(--markup-pop-y,0);position-try-fallbacks:none}}@supports (transition-behavior:allow-discrete) and selector(:popover-open){.markup-popover{opacity:0;transition:opacity var(--markup-popover-leave) ease, transform var(--markup-popover-leave) ease, overlay var(--markup-popover-leave) allow-discrete, display var(--markup-popover-leave) allow-discrete;animation:none;display:none;transform:translateY(-4px)scale(.98)}.markup-popover:popover-open{opacity:1;display:flex;transform:translateY(0)scale(1)}@starting-style{.markup-popover:popover-open{opacity:0;transform:translateY(-4px)scale(.98)}}.markup-popover:not(:popover-open){pointer-events:none}}.markup-popover.is-leaving{pointer-events:none}.markup-popover.is-hud-hidden{transition-property:none;display:none}@keyframes markup-popover-in{0%{opacity:0;transform:translateY(-4px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.markup-popover-header{border-bottom:1px solid var(--markup-border);cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none;justify-content:space-between;align-items:center;padding:10px 12px;display:flex}.markup-popover.is-dragging .markup-popover-header{cursor:grabbing}.markup-popover-header-actions{align-items:center;gap:4px;display:flex}.markup-popover-title{min-width:0;font-family:var(--markup-font-mono);letter-spacing:.02em;color:var(--markup-muted);white-space:nowrap;text-overflow:ellipsis;flex:auto;font-size:11px;line-height:1;overflow:hidden}.markup-thread-menu{display:flex;position:relative}.markup-thread-menu-list{z-index:10;background:var(--markup-paper);border:1px solid var(--markup-border-strong);border-radius:var(--markup-radius);min-width:160px;box-shadow:var(--markup-shadow);animation:markup-menu-in var(--markup-menu-in) ease-out;padding:4px;position:absolute;top:calc(100% + 6px);right:0}.markup-thread-menu-item{border-radius:var(--markup-radius-sm);width:100%;color:var(--markup-ink);text-align:left;cursor:pointer;background:0 0;border:none;padding:7px 10px;font-size:13px;transition:background .1s,color .1s;display:block}.markup-thread-menu-item:hover{background:var(--markup-border)}.markup-thread-menu-item.is-danger{color:var(--markup-danger,#dc2626)}.markup-thread-menu-item.is-danger:hover{background:color-mix(in srgb, var(--markup-danger,#dc2626) 10%, transparent)}.markup-thread-menu-item:disabled{opacity:.5;cursor:default}@keyframes markup-menu-in{0%{opacity:0;transform:translate(var(--markup-menu-from-x,0), var(--markup-menu-from-y,-4px))}to{opacity:1;transform:translate(0)}}@keyframes markup-menu-out{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(var(--markup-menu-from-x,0), var(--markup-menu-from-y,-4px))}}.markup-popover-body{border-top:1px solid var(--markup-border);background:var(--markup-paper);flex-direction:column;gap:6px;padding:10px 12px 8px;display:flex}.markup-popover-header+.markup-popover-body{border-top:none}.markup-popover-byline{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.markup-popover-name{color:var(--markup-ink);font-weight:500}.markup-icon-btn{border-radius:var(--markup-radius-sm);width:24px;height:24px;color:var(--markup-muted);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:0;transition:background .12s,color .12s,transform .12s cubic-bezier(.2,.7,.2,1);display:inline-flex}.markup-icon-btn:hover,.markup-icon-btn.is-open{background:var(--markup-border);color:var(--markup-ink)}.markup-icon-btn:active{transform:scale(.97)}.markup-comments{flex-direction:column;max-height:420px;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.markup-comment{border-bottom:1px solid var(--markup-border);grid-template-columns:26px 1fr;align-items:start;gap:0 10px;padding:12px;display:grid}.markup-comment:last-child{border-bottom:none}.markup-comment>:not(.markup-comment-avatar){grid-column:2}.markup-comment.is-new{animation:.2s cubic-bezier(.2,.7,.2,1) markup-comment-in}@keyframes markup-comment-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.markup-comment-avatar{background:var(--markup-border);width:26px;height:26px;color:var(--markup-ink);font-family:var(--markup-font-mono);letter-spacing:.02em;text-transform:uppercase;-webkit-user-select:none;user-select:none;border-radius:999px;grid-area:1/1/span 4;justify-content:center;align-items:center;margin-top:-3px;font-size:10.5px;font-weight:600;display:inline-flex;overflow:hidden}.markup-avatar-initials{text-box-trim:trim-both;text-box-edge:cap alphabetic;line-height:1}.markup-avatar-img{object-fit:cover;width:100%;height:100%;display:block}.markup-comment-avatar[data-tone=\"1\"]{color:oklch(25% .07 230);background:oklch(85% .07 200)}.markup-comment-avatar[data-tone=\"2\"]{color:oklch(30% .1 150);background:oklch(88% .07 130)}.markup-comment-avatar[data-tone=\"3\"]{color:oklch(35% .1 40);background:oklch(90% .05 50)}.markup-comment-avatar[data-tone=\"4\"]{color:oklch(30% .1 320);background:oklch(87% .07 320)}.markup-comment-avatar[data-tone=\"5\"]{color:oklch(32% .09 70);background:oklch(88% .06 80)}.markup-comment-meta{align-items:center;gap:8px;min-width:0;margin-bottom:4px;font-size:13px;display:flex}.markup-comment-author{color:var(--markup-ink);white-space:nowrap;text-overflow:ellipsis;min-width:0;font-size:13px;font-weight:600;overflow:hidden}.markup-comment-badge{background:color-mix(in srgb, var(--markup-team) 12%, transparent);height:14px;color:var(--markup-team);font-family:var(--markup-font-mono);letter-spacing:.12em;text-transform:uppercase;border-radius:999px;align-items:center;padding:0 5px;font-size:9px;font-weight:500;line-height:1;display:inline-flex}.markup-comment-badge.is-agent{background:color-mix(in srgb, var(--markup-brand) 14%, transparent);color:var(--markup-brand);letter-spacing:normal;justify-content:center;width:14px;padding:0}.markup-comment-time{color:var(--markup-muted);font-family:var(--markup-font-mono);letter-spacing:.04em;white-space:nowrap;flex-shrink:0;font-size:10.5px}.markup-comment-body{color:var(--markup-ink);white-space:pre-wrap;word-break:break-word;margin:0;font-size:13.5px;line-height:19px}.markup-comment-link{color:var(--markup-brand);text-underline-offset:2px;text-decoration:underline;-webkit-text-decoration-color:color-mix(in srgb, var(--markup-brand) 40%, transparent);text-decoration-color:color-mix(in srgb, var(--markup-brand) 40%, transparent)}.markup-comment-link:hover{-webkit-text-decoration-color:var(--markup-brand);text-decoration-color:var(--markup-brand)}.markup-comment-edited{color:var(--markup-muted);font-family:var(--markup-font-mono);margin-left:2px;font-size:10.5px}.markup-comment-edited:before{content:\" · \"}.markup-thread-actions{align-items:center;gap:4px;display:flex}.markup-comment-meta .markup-reaction-picker-wrap,.markup-thread-actions{margin-left:auto}.markup-comment-meta .markup-reaction-add{width:22px;height:22px;margin-top:-4px;margin-bottom:-4px}.markup-reaction-picker-wrap>.markup-icon-btn,.markup-comment-menu>.markup-icon-btn{margin-top:-4px;margin-bottom:-4px}.markup-comment-menu.is-up .markup-thread-menu-list{--markup-menu-from-y:4px;top:auto;bottom:calc(100% + 6px)}.markup-comment-menu.is-side .markup-thread-menu-list{--markup-menu-from-x:4px;--markup-menu-from-y:0;top:-4px;right:calc(100% + 2px)}.markup-comment{position:relative}.markup-reactions{flex-wrap:wrap;align-items:center;gap:4px;margin-top:6px;display:flex}.markup-reaction-chip{border:1px solid var(--markup-border);background:var(--markup-surface-3);color:var(--markup-ink);font:inherit;cursor:pointer;border-radius:999px;align-items:center;gap:4px;padding:2px 7px;font-size:11.5px;line-height:1.2;transition:background .12s,border-color .12s;display:inline-flex}.markup-reaction-chip:hover:not(:disabled){background:var(--markup-hover)}.markup-reaction-chip.is-mine{background:var(--markup-accent-soft);border-color:color-mix(in srgb, var(--markup-brand) 50%, transparent);color:var(--markup-accent-ink)}.markup-reaction-chip.is-mine:hover:not(:disabled){background:color-mix(in srgb, var(--markup-brand) 18%, transparent)}.markup-reaction-chip:disabled{cursor:default;opacity:.6}.markup-reaction-emoji{font-size:13px;line-height:1}.markup-reaction-count{font-family:var(--markup-font-mono);letter-spacing:.04em;color:var(--markup-muted);font-size:10.5px}.markup-reaction-chip.is-mine .markup-reaction-count{color:var(--markup-accent-ink)}.markup-reaction-picker-wrap{opacity:0;flex:none;transition:opacity .12s;display:inline-flex;position:relative}.markup-comment:hover .markup-reaction-picker-wrap,.markup-comment:focus-within .markup-reaction-picker-wrap,.markup-reaction-picker-wrap.is-open{opacity:1}.markup-reaction-add{width:22px;height:22px;color:var(--markup-muted);font:inherit;cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;font-size:13px;line-height:1;transition:background .12s,color .12s;display:inline-flex}.markup-reaction-add:hover,.markup-reaction-add.is-open{background:var(--markup-hover);color:var(--markup-ink)}.markup-reaction-picker{z-index:1;border:1px solid var(--markup-border-strong);background:var(--markup-paper);animation:markup-menu-in var(--markup-menu-in) ease;border-radius:8px;gap:2px;padding:4px;display:flex;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 1px 2px #1a16140f,0 8px 28px #1a16141a}.markup-reaction-picker-wrap.is-up .markup-reaction-picker{--markup-menu-from-y:4px;top:auto;bottom:calc(100% + 6px)}.markup-reaction-picker-wrap.is-side .markup-reaction-picker{--markup-menu-from-x:4px;--markup-menu-from-y:0;top:-4px;right:calc(100% + 2px)}.markup-reaction-picker-item{cursor:pointer;background:0 0;border:0;border-radius:6px;justify-content:center;align-items:center;width:28px;height:28px;font-size:16px;line-height:1;transition:background .12s;display:inline-flex}.markup-reaction-picker-item:hover{background:color-mix(in srgb, var(--markup-ink) 8%, transparent)}.markup-reaction-picker-item.is-mine{background:color-mix(in srgb, var(--markup-brand) 14%, transparent)}.markup-comment-edit-form{flex-direction:column;gap:6px;display:flex}.markup-comment-edit-actions{justify-content:flex-end;gap:6px;display:flex}.markup-composer{flex-direction:column;display:flex;position:relative}.markup-composer-input{width:100%;min-height:38px;max-height:120px;color:var(--markup-ink);font-family:var(--markup-font);background:0 0;border:none;border-radius:0;padding:2px 0;font-size:13.5px;line-height:19px;transition:none;overflow-y:auto}.markup-composer-input:focus-visible{box-shadow:none;outline:none}.markup-composer-footer-wrap{grid-template-rows:0fr;transition:grid-template-rows .15s;display:grid}.markup-composer.is-filled .markup-composer-footer-wrap{grid-template-rows:1fr}.markup-composer-footer{opacity:0;background:0 0;border:none;border-radius:0;justify-content:space-between;align-items:center;gap:8px;padding:0;transition:opacity .1s;display:flex;overflow:hidden}.markup-composer.is-filled .markup-composer-footer{opacity:1;transition-delay:60ms}.markup-composer-hint{font-family:var(--markup-font-mono);letter-spacing:.04em;color:var(--markup-muted);align-items:center;gap:3px;font-size:10.5px;display:inline-flex}.markup-composer-hint-label{margin-left:2px}.markup-composer-error{color:var(--markup-brand)}.markup-composer-actions{align-items:center;gap:6px;display:flex}.markup-composer .markup-btn-primary{background:var(--markup-ink);height:26px;color:var(--markup-paper);border-radius:6px;padding:0 10px}.markup-composer .markup-btn-primary:hover:not(:disabled){background:color-mix(in srgb, var(--markup-ink) 88%, var(--markup-paper))}.markup-composer-actions-empty{transition:opacity .12s;position:absolute;bottom:0;right:0}.markup-composer.is-filled .markup-composer-actions-empty{opacity:0;pointer-events:none}.markup-author-prompt{flex-direction:column;gap:10px;padding:12px;display:flex}.markup-author-status{color:var(--markup-muted);margin:0;font-size:12px}.markup-author-copy{color:var(--markup-fg);margin:0;font-size:13px;line-height:1.5}.markup-input{border:1px solid var(--markup-border-strong);border-radius:var(--markup-radius-sm);background:var(--markup-paper);width:100%;height:36px;color:var(--markup-ink);outline:none;padding:0 10px;font-size:14px;transition:border-color .12s,box-shadow .12s}.markup-input:focus-visible{border-color:var(--markup-brand);box-shadow:0 0 0 3px #e35d2a2e}.markup-btn{border-radius:var(--markup-radius-sm);height:30px;color:var(--markup-ink);cursor:pointer;letter-spacing:-.01em;white-space:nowrap;background:0 0;border:1px solid #0000;justify-content:center;align-items:center;gap:6px;padding:0 8px;font-size:12px;font-weight:500;transition:background .12s,border-color .12s,color .12s,opacity .12s,transform .12s cubic-bezier(.2,.7,.2,1);display:inline-flex}.markup-btn:disabled{opacity:.5;cursor:not-allowed}.markup-btn:active:not(:disabled){transform:scale(.97)}.markup-btn-primary{background:var(--markup-ink);color:var(--markup-paper)}.markup-btn-primary:hover:not(:disabled){background:var(--markup-brand)}.markup-btn-ghost{color:var(--markup-muted)}.markup-btn-ghost:hover:not(:disabled){background:var(--markup-border);color:var(--markup-ink)}.markup-btn-danger{color:var(--markup-danger)}.markup-btn-danger:hover:not(:disabled){background:color-mix(in srgb, var(--markup-danger) 10%, transparent)}.markup-discard-confirm{background:color-mix(in srgb, var(--markup-paper) 92%, transparent);-webkit-backdrop-filter:blur(6px);animation:markup-menu-in var(--markup-menu-in) ease-out;flex-direction:column;justify-content:center;gap:4px;padding:16px;display:flex;position:absolute;inset:0}.markup-thread-menu-list.is-leaving,.markup-reaction-picker.is-leaving,.markup-discard-confirm.is-leaving{pointer-events:none;animation-name:markup-menu-out;animation-duration:var(--markup-menu-leave);animation-timing-function:ease-in;animation-fill-mode:forwards}.markup-discard-confirm-title{color:var(--markup-ink);margin:0;font-size:13px;font-weight:600}.markup-discard-confirm-desc{color:var(--markup-muted);margin:0;font-size:12px}.markup-discard-confirm-actions{gap:6px;margin-top:10px;display:flex}.markup-screenshot-row{border:1px dashed var(--markup-border-strong);color:var(--markup-muted);border-radius:6px;flex-direction:column;gap:8px;margin-top:0;padding:6px 8px;font-size:11.5px;display:flex}.markup-screenshot-row.is-attached{border-style:solid;border-color:var(--markup-border);padding:8px}.markup-screenshot-row-head{justify-content:space-between;align-items:center;gap:8px;min-height:16px;display:flex}.markup-screenshot-status{color:var(--markup-muted);font-family:var(--markup-font-mono);letter-spacing:.04em;align-items:center;gap:5px;font-size:11px;display:flex}.markup-screenshot-row.is-failed{opacity:.85;border-style:dotted}.markup-screenshot-toggle{cursor:pointer;color:var(--markup-muted);font-family:var(--markup-font-mono);letter-spacing:.04em;align-items:center;gap:5px;font-size:11px;transition:color .12s;display:flex}.markup-screenshot-toggle:hover{color:var(--markup-ink)}.markup-screenshot-checkbox{width:12px;height:12px;accent-color:var(--markup-brand);cursor:pointer;margin:0}.markup-screenshot-thumb-link{border:1px solid var(--markup-border-strong);cursor:zoom-in;background:0 0;border-radius:3px;margin:-4px auto -4px -4px;padding:0;transition:border-color .12s;display:block;overflow:hidden}.markup-screenshot-thumb-link:hover,.markup-screenshot-thumb-link:focus-visible{border-color:var(--markup-brand)}.markup-screenshot-thumb{object-fit:cover;object-position:top;width:auto;height:22px;display:block}.markup-screenshot-redacted-chip{background:color-mix(in srgb, var(--markup-success,oklch(62% .16 150)) 16%, transparent);color:var(--markup-success,oklch(62% .16 150));font-family:var(--markup-font-mono);white-space:nowrap;cursor:pointer;border:none;border-radius:999px;align-items:center;gap:3px;padding:1px 7px;font-size:10px;display:inline-flex}.markup-screenshot-redacted-chip:hover{filter:brightness(1.05)}.markup-screenshot-redacted-arrow{font-style:normal}.markup-screenshot-redacted-list{flex-direction:column;gap:2px;display:flex}.markup-screenshot-redacted-selector{font-family:var(--markup-font-mono);color:var(--markup-muted);font-size:9px;display:block}.markup-screenshot-help{font-family:var(--markup-font-mono);color:var(--markup-muted);margin:0;font-size:10px;line-height:1.5}.markup-screenshot-help-link{color:var(--markup-ink);text-underline-offset:2px;text-decoration:underline}.markup-screenshot-help-link:hover{color:var(--markup-brand)}.markup-comment-screenshot{border:1px solid var(--markup-border-strong);border-radius:var(--markup-radius-sm);cursor:pointer;background:0 0;margin-top:8px;padding:0;transition:border-color .12s,opacity .12s;display:block;overflow:hidden}.markup-comment-screenshot:hover{border-color:var(--markup-brand);opacity:.9}.markup-comment-screenshot img{object-fit:cover;object-position:top;width:100%;height:auto;max-height:120px;display:block}.markup-lightbox{background:#1a1614e0;border:none;width:100%;max-width:100%;height:100%;max-height:100%;margin:0;padding:24px;position:fixed;inset:0}.markup-lightbox[open]{justify-content:center;align-items:center;display:flex}@supports (transition-behavior:allow-discrete){.markup-lightbox{opacity:0;transition:opacity var(--markup-lightbox-leave) ease, overlay var(--markup-lightbox-leave) allow-discrete, display var(--markup-lightbox-leave) allow-discrete}.markup-lightbox[open]{opacity:1}@starting-style{.markup-lightbox[open]{opacity:0}}}.markup-lightbox::backdrop{display:none}.markup-lightbox-img{border-radius:var(--markup-radius);object-fit:contain;max-width:100%;max-height:100%;box-shadow:var(--markup-shadow);animation:.16s ease-out markup-lightbox-in}.markup-lightbox-close{color:#fdfcfa;background:#1a161499;position:absolute;top:16px;right:16px}.markup-lightbox-close:hover{color:#fdfcfa;background:#1a1614d9}@keyframes markup-lightbox-in{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}@media (prefers-reduced-motion:reduce){.markup-toolbar,.markup-toolbar.is-leaving,.markup-hud-hidden-toast,.markup-hud-hidden-toast.is-leaving,.markup-tb-btn,.markup-tb-badge,.markup-comment,.markup-pin,.markup-pin.is-entering,.markup-pin.is-leaving,.markup-pop,.markup-pop.is-leaving,.markup-pop[data-pop=overflow],.markup-pop.is-anchor-center,.markup-pop.is-anchor-center.is-leaving,.markup-thread-menu-list,.markup-thread-menu-list.is-leaving,.markup-reaction-picker,.markup-reaction-picker.is-leaving,.markup-discard-confirm,.markup-discard-confirm.is-leaving,.markup-icon-btn,.markup-btn,.markup-popover,.markup-pin-ghost,.markup-placement-overlay,.markup-placement-cursor-help,.markup-lightbox,.markup-lightbox-img{transition:none;animation:none}}.markup-mention-chip{background:var(--markup-accent-soft);color:var(--markup-accent-ink);border-radius:3px;padding:0 2px;font-weight:500;display:inline-block}.markup-mention-input{white-space:pre-wrap;overflow-wrap:anywhere;cursor:text;outline:none;position:relative}.markup-mention-input[aria-disabled=true]{opacity:.6;cursor:default}.markup-mention-input[data-empty]:before{content:attr(data-placeholder);color:var(--markup-muted);pointer-events:none;position:absolute;inset:0 auto auto 0}.markup-mention-input .markup-mention-chip{white-space:nowrap;padding:0 3px}.markup-comment-edit-input{border:1px solid var(--markup-border-strong);border-radius:var(--markup-radius-sm);background:var(--markup-paper);width:100%;min-height:58px;max-height:200px;color:var(--markup-ink);font:inherit;padding:8px 10px;font-size:13px;line-height:1.5;overflow-y:auto}.markup-comment-edit-input:focus-visible{border-color:var(--markup-brand);box-shadow:0 0 0 3px #e35d2a2e}.markup-comment-edit-input[data-empty]:before{inset:8px auto auto 10px}.markup-mention-picker{z-index:10;box-sizing:border-box;background:var(--markup-paper);border:1px solid var(--markup-border-strong);border-radius:var(--markup-radius-sm);max-height:180px;box-shadow:var(--markup-shadow);margin:0;padding:4px;list-style:none;position:fixed;overflow-y:auto}.markup-mention-picker-item{border-radius:var(--markup-radius-sm);cursor:pointer;color:var(--markup-ink);justify-content:space-between;align-items:center;gap:8px;padding:6px 8px;font-size:13px;display:flex}.markup-mention-picker-item.is-active{background:color-mix(in srgb, var(--markup-brand) 12%, transparent)}.markup-mention-picker-name{font-weight:500}.markup-mention-picker-trigger{color:var(--markup-muted);font-family:var(--markup-font-mono);font-size:10px}.markup-notifications-panel{max-height:min(60vh,420px);color:var(--markup-ink);flex-direction:column;display:flex}.markup-notifications-panel-header{border-bottom:1px solid var(--markup-border);align-items:center;gap:8px;padding:8px 10px;display:flex}.markup-notifications-panel-header .markup-eyebrow{flex:1}.markup-notifications-panel-actions{align-items:center;gap:8px;display:flex}.markup-notifications-panel-mark-all{color:var(--markup-muted);cursor:pointer;background:0 0;border:none;padding:0;font-size:11px}.markup-notifications-panel-mark-all:hover{color:var(--markup-ink)}.markup-notifications-panel-body{flex:1;overflow-y:auto}.markup-notifications-panel-empty,.markup-notifications-panel-error{text-align:center;color:var(--markup-muted);padding:24px 12px;font-size:12px}.markup-notifications-panel-empty-title{color:var(--markup-ink);margin:0 0 4px;font-weight:500}.markup-notifications-panel-empty-sub{color:var(--markup-muted);margin:0;line-height:1.4}.markup-notifications-panel-error{color:var(--markup-danger,#b91c1c)}.markup-notifications-panel-list{margin:0;padding:4px;list-style:none}.markup-notifications-panel-row{border-radius:var(--markup-radius-sm);text-align:start;cursor:pointer;width:100%;font:inherit;color:inherit;background:0 0;border:none;flex-direction:column;gap:4px;padding:8px 10px;display:flex}.markup-notifications-panel-row:hover{background:color-mix(in srgb, var(--markup-brand) 8%, transparent)}.markup-notifications-panel-row.is-unread{background:color-mix(in srgb, var(--markup-brand) 5%, transparent)}.markup-notifications-panel-meta{align-items:center;gap:6px;font-size:11px;display:flex}.markup-notifications-panel-dot{background:var(--markup-brand);border-radius:999px;flex-shrink:0;width:6px;height:6px}.markup-notifications-panel-actor{font-weight:600}.markup-notifications-panel-sep{color:var(--markup-muted)}.markup-notifications-panel-time{color:var(--markup-muted);font-family:var(--markup-font-mono);font-size:10px}.markup-notifications-panel-thread{color:var(--markup-muted);margin:0;font-size:12px}.markup-notifications-panel-thread-title{color:var(--markup-ink)}.markup-notifications-panel-excerpt{color:color-mix(in srgb, var(--markup-ink) 80%, transparent);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:12px;font-style:italic;display:-webkit-box;overflow:hidden}.markup-panel-pop{z-index:11;pointer-events:auto;width:var(--markup-popover-w);max-width:calc(100vw - 24px);position:fixed;bottom:76px}.markup-panel-pop-right{right:22px}.markup-panel-pop-left{left:22px}.markup-panel-pop-center{left:50%;transform:translate(-50%)}.markup-panel-pop .markup-pop{width:100%;position:static}.markup-panel-pop .markup-notifications-panel{max-height:min(60vh,480px)}.markup-panel-pop .markup-notifications-panel-header{padding:12px 14px}.markup-panel-pop .markup-notifications-panel-header .markup-icon-btn{display:none}.markup-panel{max-height:min(70vh,520px);color:var(--markup-ink);flex-direction:column;display:flex}.markup-panel-header{border-bottom:1px solid var(--markup-border);align-items:center;gap:8px;padding:12px 14px;display:flex}.markup-panel-header .markup-eyebrow{flex:1}.markup-panel-back{color:var(--markup-muted);cursor:pointer;background:0 0;border:none;border-radius:6px;flex-shrink:0;align-items:center;gap:2px;margin-left:-4px;padding:3px 6px 3px 4px;font-family:inherit;font-size:12px;display:inline-flex}.markup-panel-back:hover{background:var(--markup-hover);color:var(--markup-ink)}.markup-panel-body{flex:1;padding:4px 14px 14px;overflow-y:auto}.markup-panel-body:focus{outline:none}.markup-panel-body:focus-visible{box-shadow:inset 0 0 0 2px var(--markup-accent-glow);outline:none}.markup-panel-section{border-bottom:1px solid var(--markup-border);padding:10px 0}.markup-panel-section:last-child{border-bottom:none;padding-bottom:2px}.markup-panel-section-title{font-family:var(--markup-font-mono);letter-spacing:.06em;text-transform:lowercase;color:var(--markup-muted);margin:0 0 6px;font-size:10px;font-weight:400}.markup-panel-text{color:var(--markup-ink-soft);margin:0;font-size:12.5px;line-height:1.5}.markup-panel-text strong{color:var(--markup-ink);font-weight:600}.markup-panel-mono{font-family:var(--markup-font-mono);color:var(--markup-ink);word-break:break-all;font-size:11.5px}.markup-panel-list{color:var(--markup-ink-soft);margin:0;padding-left:16px;font-size:12.5px;line-height:1.5}.markup-panel-list li{margin-bottom:3px}.markup-panel-list li::marker{color:var(--markup-muted)}.markup-panel-note{color:var(--markup-muted);margin:8px 0 0;font-size:11.5px;line-height:1.45}.markup-panel-error{color:var(--markup-danger);margin:8px 0 0;font-size:11.5px;line-height:1.45}.markup-panel-action{border:1px solid var(--markup-border-strong);width:100%;height:30px;color:var(--markup-ink);font:inherit;cursor:pointer;background:0 0;border-radius:7px;margin-top:10px;padding:0 10px;font-size:12.5px;transition:background .12s,border-color .12s,color .12s}.markup-panel-action:hover:not(:disabled){background:var(--markup-hover)}.markup-panel-action:disabled{opacity:.6;cursor:default}.markup-panel-action.is-danger{border-color:color-mix(in srgb, var(--markup-danger) 45%, transparent);color:var(--markup-danger)}.markup-panel-action.is-danger:hover:not(:disabled){background:color-mix(in srgb, var(--markup-danger) 10%, transparent)}.markup-shortcut-list{margin:0;padding:0;list-style:none}.markup-shortcut-row{align-items:center;gap:10px;min-height:24px;padding:2px 0;display:flex}.markup-shortcut-label{min-width:0;color:var(--markup-ink-soft);flex:1;font-size:12.5px;line-height:1.4}.markup-shortcut-keys{flex-shrink:0;align-items:center;gap:4px;display:inline-flex}.markup-shortcut-chord{align-items:center;gap:3px;display:inline-flex}.markup-shortcut-or{color:var(--markup-muted);margin-right:1px;font-size:10px}", ue = 1e4, de = 20, fe = 60, pe = null, me = [], he = null, ge = !1, _e = ve();
@@ -417,7 +418,7 @@ function We() {
417
418
  return e.addEventListener?.("change", t), () => e.removeEventListener?.("change", t);
418
419
  }
419
420
  //#endregion
420
- //#region ../../node_modules/.pnpm/preact@10.29.7/node_modules/preact/hooks/dist/hooks.module.js
421
+ //#region ../../node_modules/.pnpm/preact@10.29.8/node_modules/preact/hooks/dist/hooks.module.js
421
422
  var Ge, L, Ke, qe, Je = 0, Ye = [], R = t, Xe = R.__b, Ze = R.__r, Qe = R.diffed, $e = R.__c, et = R.unmount, tt = R.__;
422
423
  function nt(e, t) {
423
424
  R.__h && R.__h(L, e, Je || t), Je = 0;
@@ -571,8 +572,7 @@ function vt(e, t, n) {
571
572
  return (t + n) * 3 / 4 - n;
572
573
  }
573
574
  function K(e) {
574
- var t, n = _t(e), r = n[0], i = n[1], a = new pt(vt(e, r, i)), o = 0, s = i > 0 ? r - 4 : r, c;
575
- for (c = 0; c < s; c += 4) t = G[e.charCodeAt(c)] << 18 | G[e.charCodeAt(c + 1)] << 12 | G[e.charCodeAt(c + 2)] << 6 | G[e.charCodeAt(c + 3)], a[o++] = t >> 16 & 255, a[o++] = t >> 8 & 255, a[o++] = t & 255;
575
+ for (var t, n = _t(e), r = n[0], i = n[1], a = new pt(vt(e, r, i)), o = 0, s = i > 0 ? r - 4 : r, c = 0; c < s; c += 4) t = G[e.charCodeAt(c)] << 18 | G[e.charCodeAt(c + 1)] << 12 | G[e.charCodeAt(c + 2)] << 6 | G[e.charCodeAt(c + 3)], a[o++] = t >> 16 & 255, a[o++] = t >> 8 & 255, a[o++] = t & 255;
576
576
  return i === 2 && (t = G[e.charCodeAt(c)] << 2 | G[e.charCodeAt(c + 1)] >> 4, a[o++] = t & 255), i === 1 && (t = G[e.charCodeAt(c)] << 10 | G[e.charCodeAt(c + 1)] << 4 | G[e.charCodeAt(c + 2)] >> 2, a[o++] = t >> 8 & 255, a[o++] = t & 255), a;
577
577
  }
578
578
  function yt(e) {
@@ -587,7 +587,7 @@ function xt(e) {
587
587
  return r === 1 ? (t = e[n - 1], i.push(W[t >> 2] + W[t << 4 & 63] + "==")) : r === 2 && (t = (e[n - 2] << 8) + e[n - 1], i.push(W[t >> 10] + W[t >> 4 & 63] + W[t << 2 & 63] + "=")), i.join("");
588
588
  }
589
589
  //#endregion
590
- //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.2.8/node_modules/convex/dist/esm/common/index.js
590
+ //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.3.0/node_modules/convex/dist/esm/common/index.js
591
591
  function St(e) {
592
592
  if (e === void 0) return {};
593
593
  if (!wt(e)) throw Error(`The arguments to a Convex function must be an object. Received: ${e}`);
@@ -609,7 +609,7 @@ function wt(e) {
609
609
  return t && r;
610
610
  }
611
611
  //#endregion
612
- //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.2.8/node_modules/convex/dist/esm/values/value.js
612
+ //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.3.0/node_modules/convex/dist/esm/values/value.js
613
613
  var Tt = !0, Et = BigInt("-9223372036854775808"), Dt = BigInt("9223372036854775807"), Ot = BigInt("0"), kt = BigInt("8"), At = BigInt("256");
614
614
  function jt(e) {
615
615
  return Number.isNaN(e) || !Number.isFinite(e) || Object.is(e, -0);
@@ -697,10 +697,13 @@ function Ut(e, t, n, r) {
697
697
  if (e < Et || Dt < e) throw Error(`BigInt ${e} does not fit into a 64-bit signed integer.`);
698
698
  return { $integer: It(e) };
699
699
  }
700
- if (typeof e == "number") if (jt(e)) {
701
- let t = /* @__PURE__ */ new ArrayBuffer(8);
702
- return new DataView(t).setFloat64(0, e, Tt), { $float: xt(new Uint8Array(t)) };
703
- } else return e;
700
+ if (typeof e == "number") {
701
+ if (jt(e)) {
702
+ let t = /* @__PURE__ */ new ArrayBuffer(8);
703
+ return new DataView(t).setFloat64(0, e, Tt), { $float: xt(new Uint8Array(t)) };
704
+ }
705
+ return e;
706
+ }
704
707
  if (typeof e == "boolean" || typeof e == "string") return e;
705
708
  if (e instanceof ArrayBuffer) return { $bytes: xt(new Uint8Array(e)) };
706
709
  if (Array.isArray(e)) return e.map((e, r) => Ut(e, t, n + `[${r}]`, !1));
@@ -727,7 +730,7 @@ function Kt(e) {
727
730
  return Ut(e, e, "", !1);
728
731
  }
729
732
  //#endregion
730
- //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.2.8/node_modules/convex/dist/esm/values/errors.js
733
+ //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.3.0/node_modules/convex/dist/esm/values/errors.js
731
734
  var qt = Object.defineProperty, Jt = (e, t, n) => t in e ? qt(e, t, {
732
735
  enumerable: !0,
733
736
  configurable: !0,
@@ -822,7 +825,7 @@ function fn(e, t) {
822
825
  return t.data = e.errorData, t;
823
826
  }
824
827
  //#endregion
825
- //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.2.8/node_modules/convex/dist/esm/browser/sync/udf_path_utils.js
828
+ //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.3.0/node_modules/convex/dist/esm/browser/sync/udf_path_utils.js
826
829
  function pn(e) {
827
830
  let t = e.split(":"), n, r;
828
831
  return t.length === 1 ? (n = t[0], r = "default") : (n = t.slice(0, t.length - 1).join(":"), r = t[t.length - 1]), n.endsWith(".js") && (n = n.slice(0, -3)), `${n}:${r}`;
@@ -849,7 +852,7 @@ function gn(e) {
849
852
  return JSON.parse(e).type === "paginated";
850
853
  }
851
854
  //#endregion
852
- //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.2.8/node_modules/convex/dist/esm/browser/sync/local_state.js
855
+ //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.3.0/node_modules/convex/dist/esm/browser/sync/local_state.js
853
856
  var _n = Object.defineProperty, vn = (e, t, n) => t in e ? _n(e, t, {
854
857
  enumerable: !0,
855
858
  configurable: !0,
@@ -1181,7 +1184,7 @@ function kn(e) {
1181
1184
  return t;
1182
1185
  }
1183
1186
  //#endregion
1184
- //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.2.8/node_modules/convex/dist/esm/server/api.js
1187
+ //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.3.0/node_modules/convex/dist/esm/server/api.js
1185
1188
  function An(e) {
1186
1189
  let t = kn(e);
1187
1190
  if (t.name === void 0) throw t.functionHandle === void 0 ? t.reference === void 0 ? Error(`Expected function reference like "api.file.func" or "internal.file.func", but received ${JSON.stringify(t)}`) : Error(`Expected function reference in the current component like "api.file.func" or "internal.file.func", but received reference ${t.reference}`) : Error(`Expected function reference like "api.file.func" or "internal.file.func", but received function handle ${t.functionHandle}`);
@@ -1209,7 +1212,7 @@ function Mn(e = []) {
1209
1212
  }
1210
1213
  Mn();
1211
1214
  //#endregion
1212
- //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.2.8/node_modules/convex/dist/esm/browser/sync/optimistic_updates_impl.js
1215
+ //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.3.0/node_modules/convex/dist/esm/browser/sync/optimistic_updates_impl.js
1213
1216
  var Nn = Object.defineProperty, Pn = (e, t, n) => t in e ? Nn(e, t, {
1214
1217
  enumerable: !0,
1215
1218
  configurable: !0,
@@ -1396,7 +1399,7 @@ var Nn = Object.defineProperty, Pn = (e, t, n) => t in e ? Nn(e, t, {
1396
1399
  }
1397
1400
  };
1398
1401
  //#endregion
1399
- //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.2.8/node_modules/convex/dist/esm/browser/sync/protocol.js
1402
+ //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.3.0/node_modules/convex/dist/esm/browser/sync/protocol.js
1400
1403
  function Zn(e) {
1401
1404
  let t = K(e);
1402
1405
  return Vn.fromBytesLE(Array.from(t));
@@ -1445,7 +1448,7 @@ function er(e) {
1445
1448
  }
1446
1449
  }
1447
1450
  //#endregion
1448
- //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.2.8/node_modules/convex/dist/esm/browser/sync/web_socket_manager.js
1451
+ //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.3.0/node_modules/convex/dist/esm/browser/sync/web_socket_manager.js
1449
1452
  var tr = Object.defineProperty, nr = (e, t, n) => t in e ? tr(e, t, {
1450
1453
  enumerable: !0,
1451
1454
  configurable: !0,
@@ -1487,7 +1490,7 @@ var fr = class {
1487
1490
  this.socket = e, this._logVerbose(`socket state changed: ${this.socket.state}, paused: ${"paused" in this.socket ? this.socket.paused : void 0}`), this.markConnectionStateDirty();
1488
1491
  }
1489
1492
  setupNetworkListener() {
1490
- typeof window > "u" || typeof window.addEventListener != "function" || this.networkOnlineHandler === null && (this.networkOnlineHandler = () => {
1493
+ typeof window < "u" && typeof window.addEventListener == "function" && this.networkOnlineHandler === null && (this.networkOnlineHandler = () => {
1491
1494
  this._logVerbose("network online event detected"), this.tryReconnectImmediately();
1492
1495
  }, window.addEventListener("online", this.networkOnlineHandler), this._logVerbose("network online event listener registered"));
1493
1496
  }
@@ -1776,7 +1779,7 @@ var fr = class {
1776
1779
  }
1777
1780
  };
1778
1781
  //#endregion
1779
- //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.2.8/node_modules/convex/dist/esm/browser/sync/session.js
1782
+ //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.3.0/node_modules/convex/dist/esm/browser/sync/session.js
1780
1783
  function pr() {
1781
1784
  return mr();
1782
1785
  }
@@ -1787,7 +1790,7 @@ function mr() {
1787
1790
  });
1788
1791
  }
1789
1792
  //#endregion
1790
- //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.2.8/node_modules/convex/dist/esm/vendor/jwt-decode/index.js
1793
+ //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.3.0/node_modules/convex/dist/esm/vendor/jwt-decode/index.js
1791
1794
  var hr = class extends Error {};
1792
1795
  hr.prototype.name = "InvalidTokenError";
1793
1796
  function gr(e) {
@@ -1832,7 +1835,7 @@ function vr(e, t) {
1832
1835
  }
1833
1836
  }
1834
1837
  //#endregion
1835
- //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.2.8/node_modules/convex/dist/esm/browser/sync/authentication_manager.js
1838
+ //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.3.0/node_modules/convex/dist/esm/browser/sync/authentication_manager.js
1836
1839
  var yr = Object.defineProperty, br = (e, t, n) => t in e ? yr(e, t, {
1837
1840
  enumerable: !0,
1838
1841
  configurable: !0,
@@ -1985,7 +1988,7 @@ var yr = Object.defineProperty, br = (e, t, n) => t in e ? yr(e, t, {
1985
1988
  ];
1986
1989
  function Er(e, t) {
1987
1990
  let n = { sessionId: t };
1988
- typeof performance > "u" || !performance.mark || performance.mark(e, { detail: n });
1991
+ typeof performance < "u" && performance.mark && performance.mark(e, { detail: n });
1989
1992
  }
1990
1993
  function Dr(e) {
1991
1994
  let t = e.name.slice(6);
@@ -2004,7 +2007,7 @@ function Or(e) {
2004
2007
  return t.map(Dr);
2005
2008
  }
2006
2009
  //#endregion
2007
- //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.2.8/node_modules/convex/dist/esm/browser/sync/client.js
2010
+ //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.3.0/node_modules/convex/dist/esm/browser/sync/client.js
2008
2011
  var kr = Object.defineProperty, Ar = (e, t, n) => t in e ? kr(e, t, {
2009
2012
  enumerable: !0,
2010
2013
  configurable: !0,
@@ -2342,13 +2345,13 @@ var kr = Object.defineProperty, Ar = (e, t, n) => t in e ? kr(e, t, {
2342
2345
  }
2343
2346
  };
2344
2347
  //#endregion
2345
- //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.2.8/node_modules/convex/dist/esm/browser/sync/pagination.js
2348
+ //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.3.0/node_modules/convex/dist/esm/browser/sync/pagination.js
2346
2349
  function Mr(e) {
2347
2350
  if (typeof e != "object" || !e || !Array.isArray(e.page) || typeof e.isDone != "boolean" || typeof e.continueCursor != "string") throw Error(`Not a valid paginated query result: ${e?.toString()}`);
2348
2351
  return e;
2349
2352
  }
2350
2353
  //#endregion
2351
- //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.2.8/node_modules/convex/dist/esm/browser/sync/paginated_query_client.js
2354
+ //#region ../../node_modules/.pnpm/convex@1.38.0_react@19.3.0/node_modules/convex/dist/esm/browser/sync/paginated_query_client.js
2352
2355
  var Nr = Object.defineProperty, Pr = (e, t, n) => t in e ? Nr(e, t, {
2353
2356
  enumerable: !0,
2354
2357
  configurable: !0,
@@ -2537,11 +2540,11 @@ var Nr = Object.defineProperty, Pr = (e, t, n) => t in e ? Nr(e, t, {
2537
2540
  configurable: !0,
2538
2541
  writable: !0,
2539
2542
  value: n
2540
- }) : e[t] = n, zr = (e, t, n) => Rr(e, typeof t == "symbol" ? t : t + "", n), Br, Vr = class {
2543
+ }) : e[t] = n, zr = (e, t, n) => Rr(e, typeof t == "symbol" ? t : t + "", n), Br = class {
2541
2544
  constructor(e, t = {}) {
2542
2545
  zr(this, "listeners"), zr(this, "_client"), zr(this, "_paginatedClient"), zr(this, "callNewListenersWithCurrentValuesTimer"), zr(this, "_closed"), zr(this, "_disabled"), t.skipConvexDeploymentUrlCheck !== !0 && Ct(e);
2543
2546
  let { disabled: n, ...r } = t;
2544
- this._closed = !1, this._disabled = !!n, Br && !("webSocketConstructor" in r) && typeof WebSocket > "u" && (r.webSocketConstructor = Br), typeof window > "u" && !("unsavedChangesWarning" in r) && (r.unsavedChangesWarning = !1), this.disabled || (this._client = new jr(e, () => {}, r), this._paginatedClient = new Ir(this._client, (e) => this._transition(e))), this.listeners = /* @__PURE__ */ new Set();
2547
+ this._closed = !1, this._disabled = !!n, typeof window > "u" && !("unsavedChangesWarning" in r) && (r.unsavedChangesWarning = !1), this.disabled || (this._client = new jr(e, () => {}, r), this._paginatedClient = new Ir(this._client, (e) => this._transition(e))), this.listeners = /* @__PURE__ */ new Set();
2545
2548
  }
2546
2549
  get closed() {
2547
2550
  return this._closed;
@@ -2681,10 +2684,10 @@ var Nr = Object.defineProperty, Pr = (e, t, n) => t in e ? Nr(e, t, {
2681
2684
  };
2682
2685
  //#endregion
2683
2686
  //#region src/lib/machine.ts
2684
- function Hr(e) {
2687
+ function Vr(e) {
2685
2688
  return e;
2686
2689
  }
2687
- function Ur(e, t) {
2690
+ function Hr(e, t) {
2688
2691
  let n = H(e);
2689
2692
  n.current = e;
2690
2693
  let [r, i] = z(() => typeof t == "function" ? t() : t);
@@ -2697,9 +2700,9 @@ function Ur(e, t) {
2697
2700
  }
2698
2701
  //#endregion
2699
2702
  //#region src/lib/mentions.ts
2700
- var Wr = /@\[([^\]\n]+)\]\(([^)\s]+)\)/g;
2701
- function Gr(e) {
2702
- let t = [], n = 0, r = new RegExp(Wr.source, "g");
2703
+ var Ur = /@\[([^\]\n]+)\]\(([^)\s]+)\)/g;
2704
+ function Wr(e) {
2705
+ let t = [], n = 0, r = new RegExp(Ur.source, "g");
2703
2706
  for (let i = r.exec(e); i !== null; i = r.exec(e)) i.index > n && t.push({
2704
2707
  type: "text",
2705
2708
  value: e.slice(n, i.index)
@@ -2713,15 +2716,15 @@ function Gr(e) {
2713
2716
  value: e.slice(n)
2714
2717
  }), t;
2715
2718
  }
2716
- function Kr(e) {
2717
- let t = /* @__PURE__ */ new Set(), n = [], r = new RegExp(Wr.source, "g");
2719
+ function Gr(e) {
2720
+ let t = /* @__PURE__ */ new Set(), n = [], r = new RegExp(Ur.source, "g");
2718
2721
  for (let i = r.exec(e); i !== null; i = r.exec(e)) {
2719
2722
  let e = i[2];
2720
2723
  e && !t.has(e) && (t.add(e), n.push(e));
2721
2724
  }
2722
2725
  return n;
2723
2726
  }
2724
- function qr(e, t) {
2727
+ function Kr(e, t) {
2725
2728
  for (let n = t - 1; n >= 0; n--) {
2726
2729
  let r = e[n];
2727
2730
  if (r === "@") {
@@ -2738,14 +2741,14 @@ function qr(e, t) {
2738
2741
  }
2739
2742
  return null;
2740
2743
  }
2741
- function Jr(e) {
2744
+ function qr(e) {
2742
2745
  if (!e.userId || /[)\s]/.test(e.userId)) return null;
2743
2746
  let t = e.name.replace(/[\]\r\n]+/g, " ").trim();
2744
2747
  return t ? `@[${t}](${e.userId})` : null;
2745
2748
  }
2746
2749
  //#endregion
2747
2750
  //#region src/lib/use-async-action.ts
2748
- var Yr = Hr({
2751
+ var Jr = Vr({
2749
2752
  idle: { start: () => ({ kind: "pending" }) },
2750
2753
  pending: {
2751
2754
  success: (e, t) => ({
@@ -2766,8 +2769,8 @@ var Yr = Hr({
2766
2769
  reset: () => ({ kind: "idle" })
2767
2770
  }
2768
2771
  });
2769
- function Xr() {
2770
- let [e, t] = Ur(Yr, { kind: "idle" }), n = e, r = H(n);
2772
+ function Yr() {
2773
+ let [e, t] = Hr(Jr, { kind: "idle" }), n = e, r = H(n);
2771
2774
  r.current = n;
2772
2775
  let i = U(async (e, n) => {
2773
2776
  if (r.current.kind !== "pending") {
@@ -2802,7 +2805,7 @@ function Xr() {
2802
2805
  }
2803
2806
  //#endregion
2804
2807
  //#region src/lib/use-presence.ts
2805
- function Zr(e, t, n, r) {
2808
+ function Xr(e, t, n, r) {
2806
2809
  let i = new Map(t.map((e) => [e.key, e.value])), a = e.map((e) => {
2807
2810
  if (!i.has(e.key)) return e.isLeaving ? e : {
2808
2811
  ...e,
@@ -2828,13 +2831,13 @@ function Zr(e, t, n, r) {
2828
2831
  leavingAt: null
2829
2832
  }))];
2830
2833
  }
2831
- var Qr;
2832
- function $r() {
2833
- return Qr === void 0 && (Qr = window.matchMedia?.("(prefers-reduced-motion: reduce)") ?? null), Qr?.matches ?? !1;
2834
+ var Zr;
2835
+ function Qr() {
2836
+ return Zr === void 0 && (Zr = window.matchMedia?.("(prefers-reduced-motion: reduce)") ?? null), Zr?.matches ?? !1;
2834
2837
  }
2835
- function ei(e, t, n) {
2836
- let r = H([]), i = H(/* @__PURE__ */ new Map()), [, a] = z(0), o = $r() ? 0 : n;
2837
- r.current = Zr(r.current, e.map((e) => ({
2838
+ function $r(e, t, n) {
2839
+ let r = H([]), i = H(/* @__PURE__ */ new Map()), [, a] = z(0), o = Qr() ? 0 : n;
2840
+ r.current = Xr(r.current, e.map((e) => ({
2838
2841
  key: t(e),
2839
2842
  value: e
2840
2843
  })), Date.now(), o);
@@ -2857,8 +2860,8 @@ function ei(e, t, n) {
2857
2860
  };
2858
2861
  }, []), s;
2859
2862
  }
2860
- function ti(e, t) {
2861
- let n = H(null), r = H(null), [, i] = z(0), a = $r() ? 0 : t;
2863
+ function ei(e, t) {
2864
+ let n = H(null), r = H(null), [, i] = z(0), a = Qr() ? 0 : t;
2862
2865
  e != null && (n.current = e);
2863
2866
  let o = e ?? n.current, s = e == null && o != null;
2864
2867
  return B(() => {
@@ -2876,7 +2879,7 @@ function ti(e, t) {
2876
2879
  isLeaving: s
2877
2880
  };
2878
2881
  }
2879
- var ni = /* @__PURE__ */ new Set([
2882
+ var ti = /* @__PURE__ */ new Set([
2880
2883
  "body",
2881
2884
  "main",
2882
2885
  "nav",
@@ -2887,60 +2890,60 @@ var ni = /* @__PURE__ */ new Set([
2887
2890
  "table",
2888
2891
  "dialog",
2889
2892
  "article"
2890
- ]), ri = [
2893
+ ]), ni = [
2891
2894
  "data-testid",
2892
2895
  "data-test-id",
2893
2896
  "data-test",
2894
2897
  "data-cy",
2895
2898
  "data-qa"
2896
- ], ii = [
2899
+ ], ri = [
2897
2900
  "name",
2898
2901
  "href",
2899
2902
  "alt"
2900
2903
  ];
2901
- function ai(e) {
2904
+ function ii(e) {
2902
2905
  return !/^[A-Za-z][\w-]{1,63}$/.test(e) || /\d{2,}|\d[a-z]/i.test(e) ? !1 : !/^(radix|base-ui|headlessui|mui|react-aria|chakra|mantine|ember|ng|v-)/i.test(e);
2903
2906
  }
2904
- function oi(e) {
2907
+ function ai(e) {
2905
2908
  return e.length > 0 && e.length <= 80 && !/\d{3,}/.test(e);
2906
2909
  }
2907
- function si(e, t) {
2910
+ function oi(e, t) {
2908
2911
  for (let n of t) {
2909
2912
  let t = e.getAttribute(n);
2910
- if (t != null && oi(t)) return `${li(e)}[${n}="${gi(t)}"]`;
2913
+ if (t != null && ai(t)) return `${ci(e)}[${n}="${hi(t)}"]`;
2911
2914
  }
2912
2915
  return null;
2913
2916
  }
2914
- var ci = "http://www.w3.org/1999/xhtml";
2915
- function li(e) {
2916
- return e.namespaceURI == null || e.namespaceURI === ci ? e.tagName.toLowerCase() : e.tagName;
2917
+ var si = "http://www.w3.org/1999/xhtml";
2918
+ function ci(e) {
2919
+ return e.namespaceURI == null || e.namespaceURI === si ? e.tagName.toLowerCase() : e.tagName;
2917
2920
  }
2918
- function ui(e) {
2921
+ function li(e) {
2919
2922
  let t = 1;
2920
2923
  for (let n = e.previousElementSibling; n; n = n.previousElementSibling) n.tagName === e.tagName && t++;
2921
2924
  return t;
2922
2925
  }
2926
+ function ui(e) {
2927
+ let t = ci(e);
2928
+ return t === "body" || t === "html" ? t : e.id && ii(e.id) ? `#${hi(e.id)}` : oi(e, ni) ?? oi(e, ri) ?? `${t}:nth-of-type(${li(e)})`;
2929
+ }
2923
2930
  function di(e) {
2924
- let t = li(e);
2925
- return t === "body" || t === "html" ? t : e.id && ai(e.id) ? `#${gi(e.id)}` : si(e, ri) ?? si(e, ii) ?? `${t}:nth-of-type(${ui(e)})`;
2931
+ return ti.has(e.tagName.toLowerCase()) || oi(e, ni) != null;
2926
2932
  }
2927
2933
  function fi(e) {
2928
- return ni.has(e.tagName.toLowerCase()) || si(e, ri) != null;
2929
- }
2930
- function pi(e) {
2931
2934
  let t = [], n = e;
2932
2935
  for (; n;) {
2933
- t.unshift(di(n));
2934
- let r = n.tagName.toLowerCase(), i = n.id !== "" && ai(n.id);
2935
- if (r === "html" || i || n !== e && fi(n)) break;
2936
+ t.unshift(ui(n));
2937
+ let r = n.tagName.toLowerCase(), i = n.id !== "" && ii(n.id);
2938
+ if (r === "html" || i || n !== e && di(n)) break;
2936
2939
  n = n.parentElement;
2937
2940
  }
2938
2941
  let r = t.join(" > ");
2939
2942
  return r.length <= 1024 ? r : void 0;
2940
2943
  }
2941
- var mi = 3;
2942
- function hi(e, t, n, { canRelax: r = !0 } = {}) {
2943
- let i = e.split(" > "), a = r ? Math.min(mi, Math.max(0, i.length - 2)) : 0;
2944
+ var pi = 3;
2945
+ function mi(e, t, n, { canRelax: r = !0 } = {}) {
2946
+ let i = e.split(" > "), a = r ? Math.min(pi, Math.max(0, i.length - 2)) : 0;
2944
2947
  for (let e = 0; e <= a; e++) {
2945
2948
  let r = i.slice(e).join(" > "), a;
2946
2949
  try {
@@ -2954,13 +2957,13 @@ function hi(e, t, n, { canRelax: r = !0 } = {}) {
2954
2957
  }
2955
2958
  return null;
2956
2959
  }
2957
- function gi(e) {
2960
+ function hi(e) {
2958
2961
  return typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : e.replace(/["\\]/g, "\\$&");
2959
2962
  }
2960
2963
  //#endregion
2961
2964
  //#region src/runtime/anchor.ts
2962
- function _i(e, t) {
2963
- let n = document.documentElement, r = Math.max(n.scrollWidth, n.clientWidth), i = Math.max(n.scrollHeight, n.clientHeight), a = e.clientX + window.scrollX, o = e.clientY + window.scrollY, s = t === void 0 ? e.target instanceof Element ? e.target : null : t, c = s ? Ai(s) : void 0, l = s ? xi(s) : void 0, u, d;
2965
+ function gi(e, t) {
2966
+ let n = document.documentElement, r = Math.max(n.scrollWidth, n.clientWidth), i = Math.max(n.scrollHeight, n.clientHeight), a = e.clientX + window.scrollX, o = e.clientY + window.scrollY, s = t === void 0 ? e.target instanceof Element ? e.target : null : t, c = s ? ki(s) : void 0, l = s ? bi(s) : void 0, u, d;
2964
2967
  if (s) {
2965
2968
  let t = s.getBoundingClientRect();
2966
2969
  t.width > 0 && t.height > 0 && (u = Math.max(0, Math.min(1, (e.clientX - t.left) / t.width)), d = Math.max(0, Math.min(1, (e.clientY - t.top) / t.height)));
@@ -2976,9 +2979,9 @@ function _i(e, t) {
2976
2979
  anchorOffsetY: d
2977
2980
  };
2978
2981
  }
2979
- function vi(e) {
2982
+ function _i(e) {
2980
2983
  if (e.anchorSelector) {
2981
- let t = hi(e.anchorSelector, document, (t) => yi(t, e.anchorText), { canRelax: e.anchorText !== void 0 });
2984
+ let t = mi(e.anchorSelector, document, (t) => vi(t, e.anchorText), { canRelax: e.anchorText !== void 0 });
2982
2985
  if (t) {
2983
2986
  let n = t.getBoundingClientRect();
2984
2987
  return {
@@ -2997,12 +3000,12 @@ function vi(e) {
2997
3000
  element: null
2998
3001
  };
2999
3002
  }
3000
- function yi(e, t) {
3001
- return ki(e.getBoundingClientRect()) ? t === void 0 || xi(e) === t : !1;
3003
+ function vi(e, t) {
3004
+ return Oi(e.getBoundingClientRect()) ? t === void 0 || bi(e) === t : !1;
3002
3005
  }
3003
- var bi = 120;
3004
- function xi(e) {
3005
- let t = wi(Ci(e));
3006
+ var yi = 120;
3007
+ function bi(e) {
3008
+ let t = Ci(Si(e));
3006
3009
  if (t) return t;
3007
3010
  for (let t of [
3008
3011
  "aria-label",
@@ -3011,29 +3014,29 @@ function xi(e) {
3011
3014
  "title",
3012
3015
  "name"
3013
3016
  ]) {
3014
- let n = wi(e.getAttribute(t) ?? "");
3017
+ let n = Ci(e.getAttribute(t) ?? "");
3015
3018
  if (n) return n;
3016
3019
  }
3017
3020
  }
3018
- var Si = 480;
3019
- function Ci(e) {
3020
- if (typeof document > "u" || typeof document.createTreeWalker != "function") return (e.textContent ?? "").slice(0, Si);
3021
+ var xi = 480;
3022
+ function Si(e) {
3023
+ if (typeof document > "u" || typeof document.createTreeWalker != "function") return (e.textContent ?? "").slice(0, xi);
3021
3024
  let t = document.createTreeWalker(e, NodeFilter.SHOW_TEXT), n = "";
3022
- for (let e = t.nextNode(); e && n.length < Si; e = t.nextNode()) n += e.nodeValue ?? "";
3023
- return n.slice(0, Si);
3025
+ for (let e = t.nextNode(); e && n.length < xi; e = t.nextNode()) n += e.nodeValue ?? "";
3026
+ return n.slice(0, xi);
3024
3027
  }
3025
- function wi(e) {
3026
- return e.replace(/\d+/g, "").replace(/\s+/g, " ").trim().toLowerCase().slice(0, bi);
3028
+ function Ci(e) {
3029
+ return e.replace(/\d+/g, "").replace(/\s+/g, " ").trim().toLowerCase().slice(0, yi);
3027
3030
  }
3028
- function Ti(e, t) {
3029
- let n = window.innerWidth, r = t && t.viewportW === n ? t : void 0, i = r?.element ? Ei(e, r.element) ?? vi(e) : vi(e);
3031
+ function wi(e, t) {
3032
+ let n = window.innerWidth, r = t && t.viewportW === n ? t : void 0, i = r?.element ? Ti(e, r.element) ?? _i(e) : _i(e);
3030
3033
  if (i.resolved && i.element) {
3031
3034
  let e = i.element.getBoundingClientRect(), t = {
3032
3035
  width: e.width,
3033
3036
  height: e.height
3034
3037
  };
3035
- return r && r.element !== i.element && Oi(i, t, r) ? {
3036
- point: Di(r),
3038
+ return r && r.element !== i.element && Di(i, t, r) ? {
3039
+ point: Ei(r),
3037
3040
  memory: r
3038
3041
  } : {
3039
3042
  point: i,
@@ -3047,7 +3050,7 @@ function Ti(e, t) {
3047
3050
  };
3048
3051
  }
3049
3052
  return r ? {
3050
- point: Di(r),
3053
+ point: Ei(r),
3051
3054
  memory: r
3052
3055
  } : {
3053
3056
  point: i,
@@ -3060,8 +3063,8 @@ function Ti(e, t) {
3060
3063
  }
3061
3064
  };
3062
3065
  }
3063
- function Ei(e, t) {
3064
- if (!t.isConnected || !ki(t.getBoundingClientRect())) return null;
3066
+ function Ti(e, t) {
3067
+ if (!t.isConnected || !Oi(t.getBoundingClientRect())) return null;
3065
3068
  let n = t.getBoundingClientRect();
3066
3069
  return {
3067
3070
  pageX: n.left + window.scrollX + (e.anchorOffsetX ?? .5) * n.width,
@@ -3070,7 +3073,7 @@ function Ei(e, t) {
3070
3073
  element: t
3071
3074
  };
3072
3075
  }
3073
- function Di(e) {
3076
+ function Ei(e) {
3074
3077
  return {
3075
3078
  pageX: e.pageX,
3076
3079
  pageY: e.pageY,
@@ -3078,40 +3081,40 @@ function Di(e) {
3078
3081
  element: null
3079
3082
  };
3080
3083
  }
3081
- function Oi(e, t, n) {
3084
+ function Di(e, t, n) {
3082
3085
  if (!n.size) return !1;
3083
3086
  let r = (e, t) => e === 0 || t === 0 ? +(e === t) : e / t, i = r(t.width, n.size.width), a = r(t.height, n.size.height), o = i < .5 || i > 2 || a < .5 || a > 2, s = Math.hypot(e.pageX - n.pageX, e.pageY - n.pageY) > window.innerHeight;
3084
3087
  return o || s;
3085
3088
  }
3086
- function ki(e) {
3089
+ function Oi(e) {
3087
3090
  return e.width !== 0 || e.height !== 0 || e.top !== 0 || e.left !== 0;
3088
3091
  }
3089
- function Ai(e) {
3092
+ function ki(e) {
3090
3093
  try {
3091
- return pi(e);
3094
+ return fi(e);
3092
3095
  } catch {
3093
3096
  return;
3094
3097
  }
3095
3098
  }
3096
3099
  //#endregion
3097
3100
  //#region src/runtime/api.ts
3098
- var ji = class extends Error {
3101
+ var Ai = class extends Error {
3099
3102
  status;
3100
3103
  code;
3101
3104
  constructor(e, t, n) {
3102
3105
  super(e), this.name = "WidgetApiError", this.status = t, n && (this.code = n);
3103
3106
  }
3104
- }, Mi = class extends ji {
3107
+ }, ji = class extends Ai {
3105
3108
  category;
3106
3109
  constructor(e, t) {
3107
3110
  super(`${e} took too long, so check your connection`, 0), this.name = "WidgetTimeoutError", this.category = t;
3108
3111
  }
3109
- }, Ni = 15e3, Y = 3e4;
3110
- function Pi(e, t) {
3112
+ }, Mi = 15e3, Y = 3e4;
3113
+ function Ni(e, t) {
3111
3114
  let n = AbortSignal.timeout(e);
3112
3115
  return t ? AbortSignal.any([t, n]) : n;
3113
3116
  }
3114
- function Fi(e) {
3117
+ function Pi(e) {
3115
3118
  let t = e.apiUrl.replace(/\/+$/, "");
3116
3119
  async function n(n, r, i) {
3117
3120
  let a = {
@@ -3125,27 +3128,27 @@ function Fi(e) {
3125
3128
  let l = e.getStorageMode?.() === "cookies", u = {
3126
3129
  ...r,
3127
3130
  headers: a,
3128
- signal: Pi(i.timeoutMs, i.signal)
3131
+ signal: Ni(i.timeoutMs, i.signal)
3129
3132
  };
3130
3133
  l && (u.credentials = "include");
3131
3134
  let d;
3132
3135
  try {
3133
3136
  d = await fetch(`${t}${n}`, u);
3134
3137
  } catch (e) {
3135
- throw e instanceof DOMException && e.name === "TimeoutError" ? new Mi(i.operation, i.category) : e;
3138
+ throw e instanceof DOMException && e.name === "TimeoutError" ? new ji(i.operation, i.category) : e;
3136
3139
  }
3137
- let f = await d.text(), p = f ? Ii(f) : null;
3140
+ let f = await d.text(), p = f ? Fi(f) : null;
3138
3141
  if (!d.ok) {
3139
3142
  d.status === 401 && (s || l) && e.onUnauthorized?.();
3140
3143
  let t = p && typeof p == "object" ? p : null, n = (typeof t?.error == "string" ? t.error : null) ?? `Request failed with ${d.status}`, r = typeof t?.code == "string" ? t.code : void 0;
3141
- throw new ji(n, d.status, r);
3144
+ throw new Ai(n, d.status, r);
3142
3145
  }
3143
3146
  return p;
3144
3147
  }
3145
3148
  return {
3146
3149
  mintAnonIdentity(e) {
3147
3150
  return n("/widget/anon-identity", { method: "POST" }, {
3148
- timeoutMs: Ni,
3151
+ timeoutMs: Mi,
3149
3152
  category: "read",
3150
3153
  operation: "mint-anon-identity",
3151
3154
  signal: e?.signal
@@ -3153,7 +3156,7 @@ function Fi(e) {
3153
3156
  },
3154
3157
  getSubscriptionToken(e) {
3155
3158
  return n("/widget/subscription-token", { method: "POST" }, {
3156
- timeoutMs: Ni,
3159
+ timeoutMs: Mi,
3157
3160
  category: "read",
3158
3161
  operation: "mint-subscription-token",
3159
3162
  signal: e?.signal
@@ -3161,7 +3164,7 @@ function Fi(e) {
3161
3164
  },
3162
3165
  getScreenshotUploadUrl(e) {
3163
3166
  return n("/widget/screenshots/upload-url", { method: "POST" }, {
3164
- timeoutMs: Ni,
3167
+ timeoutMs: Mi,
3165
3168
  category: "read",
3166
3169
  operation: "mint-screenshot-upload-url",
3167
3170
  signal: e?.signal
@@ -3169,7 +3172,7 @@ function Fi(e) {
3169
3172
  },
3170
3173
  listThreads(e, t) {
3171
3174
  return n(`/widget/threads?${`route=${encodeURIComponent(e)}${t?.includeResolved ? "&includeResolved=1" : ""}`}`, { method: "GET" }, {
3172
- timeoutMs: Ni,
3175
+ timeoutMs: Mi,
3173
3176
  category: "read",
3174
3177
  operation: "list-threads",
3175
3178
  signal: t?.signal
@@ -3177,7 +3180,7 @@ function Fi(e) {
3177
3180
  },
3178
3181
  listMembers(e) {
3179
3182
  return n("/widget/members", { method: "GET" }, {
3180
- timeoutMs: Ni,
3183
+ timeoutMs: Mi,
3181
3184
  category: "read",
3182
3185
  operation: "list-members",
3183
3186
  signal: e?.signal
@@ -3185,7 +3188,7 @@ function Fi(e) {
3185
3188
  },
3186
3189
  listNotifications(e) {
3187
3190
  return n("/widget/notifications", { method: "GET" }, {
3188
- timeoutMs: Ni,
3191
+ timeoutMs: Mi,
3189
3192
  category: "read",
3190
3193
  operation: "list-notifications",
3191
3194
  signal: e?.signal
@@ -3296,7 +3299,7 @@ function Fi(e) {
3296
3299
  }
3297
3300
  };
3298
3301
  }
3299
- function Ii(e) {
3302
+ function Fi(e) {
3300
3303
  try {
3301
3304
  return JSON.parse(e);
3302
3305
  } catch {
@@ -3305,24 +3308,24 @@ function Ii(e) {
3305
3308
  }
3306
3309
  //#endregion
3307
3310
  //#region src/runtime/comment-access.ts
3308
- var Li = "anyone";
3309
- function Ri(e, t) {
3311
+ var Ii = "anyone";
3312
+ function Li(e, t) {
3310
3313
  return e === "anyone" || t === "verified";
3311
3314
  }
3312
- function zi(e) {
3313
- return e.refusal === "not_a_member" ? "not-a-member" : e.refusal === "sign_in_required" || !Ri(e.access, e.identityKind) ? "sign-in-only" : e.hasAuthorName ? null : "guest-or-sign-in";
3315
+ function Ri(e) {
3316
+ return e.refusal === "not_a_member" ? "not-a-member" : e.refusal === "sign_in_required" || !Li(e.access, e.identityKind) ? "sign-in-only" : e.hasAuthorName ? null : "guest-or-sign-in";
3314
3317
  }
3315
- function Bi(e) {
3318
+ function zi(e) {
3316
3319
  if (!e || typeof e != "object" || !("code" in e)) return null;
3317
3320
  let t = e.code;
3318
3321
  return t === "SIGN_IN_REQUIRED" ? "sign_in_required" : t === "NOT_A_MEMBER" ? "not_a_member" : null;
3319
3322
  }
3320
3323
  //#endregion
3321
3324
  //#region src/runtime/cookie-probe.ts
3322
- var Vi = "markup.cookieProbe";
3323
- async function Hi(e, t) {
3325
+ var Bi = "markup.cookieProbe";
3326
+ async function Vi(e, t) {
3324
3327
  try {
3325
- let e = sessionStorage.getItem(Vi);
3328
+ let e = sessionStorage.getItem(Bi);
3326
3329
  if (e === "supported") return !0;
3327
3330
  if (e === "unsupported") return !1;
3328
3331
  } catch {}
@@ -3332,18 +3335,18 @@ async function Hi(e, t) {
3332
3335
  method: "POST",
3333
3336
  credentials: "include",
3334
3337
  headers: r,
3335
- signal: Pi(15e3)
3338
+ signal: Ni(15e3)
3336
3339
  })).ok) return !1;
3337
3340
  let e = await fetch(`${n}/widget/auth/probe-check`, {
3338
3341
  method: "POST",
3339
3342
  credentials: "include",
3340
3343
  headers: r,
3341
- signal: Pi(Ni)
3344
+ signal: Ni(Mi)
3342
3345
  });
3343
3346
  if (!e.ok) return !1;
3344
3347
  let { supported: t } = await e.json(), i = t === !0;
3345
3348
  try {
3346
- sessionStorage.setItem(Vi, i ? "supported" : "unsupported");
3349
+ sessionStorage.setItem(Bi, i ? "supported" : "unsupported");
3347
3350
  } catch {}
3348
3351
  return i;
3349
3352
  } catch (e) {
@@ -3353,8 +3356,8 @@ async function Hi(e, t) {
3353
3356
  }
3354
3357
  //#endregion
3355
3358
  //#region src/runtime/history-observer.ts
3356
- var Ui = "__markup_history_observer__", Wi = "__markup_history_listeners__";
3357
- function Gi(e) {
3359
+ var Hi = "__markup_history_observer__", Ui = "__markup_history_listeners__";
3360
+ function Wi(e) {
3358
3361
  e.forEach((e) => {
3359
3362
  try {
3360
3363
  e();
@@ -3363,75 +3366,75 @@ function Gi(e) {
3363
3366
  }
3364
3367
  });
3365
3368
  }
3366
- var Ki = "__markup_history_restore__";
3367
- function qi() {
3369
+ var Gi = "__markup_history_restore__";
3370
+ function Ki() {
3368
3371
  let e = history.pushState;
3369
- if (e[Ui]) return {
3370
- listeners: e[Wi],
3371
- restore: e[Ki]
3372
+ if (e[Hi]) return {
3373
+ listeners: e[Ui],
3374
+ restore: e[Gi]
3372
3375
  };
3373
3376
  let t = /* @__PURE__ */ new Set(), n = history.pushState, r = history.replaceState;
3374
3377
  function i(...e) {
3375
- n.apply(this, e), Gi(t);
3378
+ n.apply(this, e), Wi(t);
3376
3379
  }
3377
3380
  function a(...e) {
3378
- r.apply(this, e), Gi(t);
3381
+ r.apply(this, e), Wi(t);
3379
3382
  }
3380
- let o = () => Gi(t), s = () => {
3383
+ let o = () => Wi(t), s = () => {
3381
3384
  history.pushState === i && (history.pushState = n), history.replaceState === a && (history.replaceState = r), window.removeEventListener("popstate", o), window.removeEventListener("hashchange", o), t.clear();
3382
3385
  };
3383
- return Object.defineProperty(i, Ui, { value: 1 }), Object.defineProperty(i, Wi, { value: t }), Object.defineProperty(i, Ki, { value: s }), Object.defineProperty(a, Ui, { value: 1 }), history.pushState = i, history.replaceState = a, window.addEventListener("popstate", o), window.addEventListener("hashchange", o), {
3386
+ return Object.defineProperty(i, Hi, { value: 1 }), Object.defineProperty(i, Ui, { value: t }), Object.defineProperty(i, Gi, { value: s }), Object.defineProperty(a, Hi, { value: 1 }), history.pushState = i, history.replaceState = a, window.addEventListener("popstate", o), window.addEventListener("hashchange", o), {
3384
3387
  listeners: t,
3385
3388
  restore: s
3386
3389
  };
3387
3390
  }
3388
- var Ji = null;
3389
- function Yi(e) {
3390
- Ji ||= qi();
3391
- let t = Ji;
3391
+ var qi = null;
3392
+ function Ji(e) {
3393
+ qi ||= Ki();
3394
+ let t = qi;
3392
3395
  t.listeners.add(e);
3393
3396
  let n = !1;
3394
3397
  return () => {
3395
- n || (n = !0, t.listeners.delete(e), t.listeners.size === 0 && (t.restore(), Ji === t && (Ji = null)));
3398
+ n || (n = !0, t.listeners.delete(e), t.listeners.size === 0 && (t.restore(), qi === t && (qi = null)));
3396
3399
  };
3397
3400
  }
3398
3401
  //#endregion
3399
3402
  //#region src/runtime/safe-url.ts
3400
- var Xi = /* @__PURE__ */ new Set(["http:", "https:"]);
3401
- function Zi(e, t) {
3403
+ var Yi = /* @__PURE__ */ new Set(["http:", "https:"]);
3404
+ function Xi(e, t) {
3402
3405
  let n;
3403
3406
  try {
3404
3407
  n = new URL(e, t);
3405
3408
  } catch {
3406
3409
  return null;
3407
3410
  }
3408
- return Xi.has(n.protocol) ? n : null;
3411
+ return Yi.has(n.protocol) ? n : null;
3409
3412
  }
3410
3413
  //#endregion
3411
3414
  //#region src/runtime/identity-store.ts
3412
- var Qi = "markup.identity";
3413
- function $i() {
3415
+ var Zi = "markup.identity";
3416
+ function Qi() {
3414
3417
  try {
3415
- let e = localStorage.getItem(Qi);
3418
+ let e = localStorage.getItem(Zi);
3416
3419
  return e ? JSON.parse(e) : null;
3417
3420
  } catch {
3418
3421
  return null;
3419
3422
  }
3420
3423
  }
3421
- function ea(e) {
3422
- if (typeof e.image == "string") return Zi(e.image, location.href)?.href ?? void 0;
3424
+ function $i(e) {
3425
+ if (typeof e.image == "string") return Xi(e.image, location.href)?.href ?? void 0;
3423
3426
  }
3424
- function ta(e) {
3427
+ function ea(e) {
3425
3428
  try {
3426
3429
  if (e == null) {
3427
- localStorage.removeItem(Qi);
3430
+ localStorage.removeItem(Zi);
3428
3431
  return;
3429
3432
  }
3430
- localStorage.setItem(Qi, JSON.stringify(e));
3433
+ localStorage.setItem(Zi, JSON.stringify(e));
3431
3434
  } catch {}
3432
3435
  }
3433
- function na() {
3434
- let e = $i(), t = {
3436
+ function ta() {
3437
+ let e = Qi(), t = {
3435
3438
  name: e?.name,
3436
3439
  email: e?.email
3437
3440
  };
@@ -3450,7 +3453,7 @@ function na() {
3450
3453
  refreshTokenExpiresAt: e.refreshTokenExpiresAt,
3451
3454
  name: e.name,
3452
3455
  email: e.email,
3453
- image: ea(e)
3456
+ image: $i(e)
3454
3457
  }
3455
3458
  },
3456
3459
  preserved: t
@@ -3471,7 +3474,7 @@ function na() {
3471
3474
  } : {},
3472
3475
  name: e.name,
3473
3476
  email: e.email,
3474
- image: ea(e)
3477
+ image: $i(e)
3475
3478
  }
3476
3479
  },
3477
3480
  preserved: t
@@ -3493,10 +3496,10 @@ function na() {
3493
3496
  preserved: t
3494
3497
  };
3495
3498
  }
3496
- function ra(e) {
3499
+ function na(e) {
3497
3500
  switch (e.kind) {
3498
3501
  case "verified":
3499
- ta({
3502
+ ea({
3500
3503
  clientId: e.identity.clientId,
3501
3504
  storage: e.identity.storage,
3502
3505
  token: e.identity.storage === "cookies" ? void 0 : e.identity.token,
@@ -3510,7 +3513,7 @@ function ra(e) {
3510
3513
  });
3511
3514
  return;
3512
3515
  case "anon":
3513
- ta({
3516
+ ea({
3514
3517
  clientId: e.identity.clientId,
3515
3518
  anonToken: e.identity.anonToken,
3516
3519
  name: e.identity.name,
@@ -3518,23 +3521,23 @@ function ra(e) {
3518
3521
  });
3519
3522
  return;
3520
3523
  case "recovering":
3521
- ta({
3524
+ ea({
3522
3525
  name: e.preserved.name,
3523
3526
  email: e.preserved.email
3524
3527
  });
3525
3528
  return;
3526
3529
  case "unresolved":
3527
- ta(null);
3530
+ ea(null);
3528
3531
  return;
3529
3532
  }
3530
3533
  }
3531
- function ia(e) {
3534
+ function ra(e) {
3532
3535
  if (e.kind === "anon" || e.kind === "verified") return e.identity.clientId;
3533
3536
  }
3534
- function aa(e) {
3537
+ function ia(e) {
3535
3538
  return e.kind === "anon" ? e.identity.name ?? null : e.kind === "verified" ? e.identity.name : null;
3536
3539
  }
3537
- function oa(e) {
3540
+ function aa(e) {
3538
3541
  if (e.kind === "anon") {
3539
3542
  let t = e.identity.name;
3540
3543
  return t ? {
@@ -3549,7 +3552,7 @@ function oa(e) {
3549
3552
  }
3550
3553
  //#endregion
3551
3554
  //#region src/runtime/inbox.ts
3552
- var sa = Hr({
3555
+ var oa = Vr({
3553
3556
  idle: { fetch: () => ({ kind: "loading" }) },
3554
3557
  loading: {
3555
3558
  loaded: (e, t) => ({
@@ -3585,8 +3588,8 @@ var sa = Hr({
3585
3588
  }),
3586
3589
  reset: () => ({ kind: "idle" })
3587
3590
  }
3588
- }), ca = "MARKUP_AUTH_RESULT", la = "MARKUP_AUTH_RETRY", ua = "MARKUP_AUTH_EXPIRED", da = 5;
3589
- async function fa(e) {
3591
+ }), sa = "MARKUP_AUTH_RESULT", ca = "MARKUP_AUTH_RETRY", la = "MARKUP_AUTH_EXPIRED", ua = 5;
3592
+ async function da(e) {
3590
3593
  let { apiUrl: t, apiKey: n, useCookies: r } = e, i = new URL(t).origin, a = r ? "refresh,cookies" : "refresh";
3591
3594
  async function o() {
3592
3595
  let e = await fetch(`${t.replace(/\/+$/, "")}/widget/popup-exchange`, {
@@ -3596,7 +3599,7 @@ async function fa(e) {
3596
3599
  "x-markup-api-key": n
3597
3600
  },
3598
3601
  body: "{}",
3599
- signal: Pi(Y)
3602
+ signal: Ni(Y)
3600
3603
  });
3601
3604
  if (!e.ok) throw Error(`popup-exchange responded with ${e.status}`);
3602
3605
  let { code: r } = await e.json(), i = new URL("/widget/auth", t);
@@ -3619,7 +3622,7 @@ async function fa(e) {
3619
3622
  let s = (e) => {
3620
3623
  if (!r) {
3621
3624
  if (e) {
3622
- if (n >= da) {
3625
+ if (n >= ua) {
3623
3626
  a(), t(/* @__PURE__ */ Error("Sign-in could not be restarted. Close the window and try again"));
3624
3627
  return;
3625
3628
  }
@@ -3637,15 +3640,15 @@ async function fa(e) {
3637
3640
  function c(n) {
3638
3641
  if (n.origin !== i || n.source !== u) return;
3639
3642
  let r = n.data;
3640
- if (r?.type === la) {
3643
+ if (r?.type === ca) {
3641
3644
  s(!1);
3642
3645
  return;
3643
3646
  }
3644
- if (r?.type === ua) {
3647
+ if (r?.type === la) {
3645
3648
  s(!0);
3646
3649
  return;
3647
3650
  }
3648
- r?.type === ca && (a(), r.identity?.id && r.identity?.name ? e({
3651
+ r?.type === sa && (a(), r.identity?.id && r.identity?.name ? e({
3649
3652
  mode: r.mode === "cookies" ? "cookies" : "localStorage",
3650
3653
  identity: r.identity,
3651
3654
  token: typeof r.token == "string" ? r.token : null,
@@ -3673,7 +3676,7 @@ async function fa(e) {
3673
3676
  accessToken: d.token,
3674
3677
  refreshToken: d.refreshToken
3675
3678
  }),
3676
- signal: Pi(Y)
3679
+ signal: Ni(Y)
3677
3680
  });
3678
3681
  if (!e.ok) {
3679
3682
  let t = /* @__PURE__ */ Error(`Failed to install widget cookies (${e.status})`);
@@ -3689,20 +3692,20 @@ async function fa(e) {
3689
3692
  }
3690
3693
  //#endregion
3691
3694
  //#region src/runtime/route.ts
3692
- var pa = "markup-thread", ma = /^#markup-thread=(.+)$/, ha = /^#!?\//;
3693
- function ga(e) {
3694
- if (!ha.test(e)) return "";
3695
+ var fa = "markup-thread", pa = /^#markup-thread=(.+)$/, ma = /^#!?\//;
3696
+ function ha(e) {
3697
+ if (!ma.test(e)) return "";
3695
3698
  let t = e.slice(1).split("?")[0]?.split("#")[0] ?? "";
3696
3699
  return t === "/" || t === "!/" ? "" : `#${t}`;
3697
3700
  }
3698
- function _a() {
3701
+ function ga() {
3699
3702
  let { host: e, pathname: t, hash: n } = window.location;
3700
- return e + t + ga(n);
3703
+ return e + t + ha(n);
3701
3704
  }
3702
- function va() {
3703
- let e = new URLSearchParams(window.location.search).get(pa);
3705
+ function _a() {
3706
+ let e = new URLSearchParams(window.location.search).get(fa);
3704
3707
  if (e) return e;
3705
- let t = ma.exec(window.location.hash)?.[1];
3708
+ let t = pa.exec(window.location.hash)?.[1];
3706
3709
  if (t === void 0) return null;
3707
3710
  try {
3708
3711
  return decodeURIComponent(t);
@@ -3710,66 +3713,66 @@ function va() {
3710
3713
  return t;
3711
3714
  }
3712
3715
  }
3713
- function ya(e) {
3716
+ function va(e) {
3714
3717
  if (e === "") return "";
3715
3718
  let t = e.slice(1).split("&").filter((e) => e !== "markup-thread" && !e.startsWith("markup-thread="));
3716
3719
  return t.length > 0 ? `?${t.join("&")}` : "";
3717
3720
  }
3718
- function ba() {
3719
- let { pathname: e, search: t, hash: n } = window.location, r = ma.test(n) ? "" : n;
3720
- history.replaceState(history.state, "", e + ya(t) + r);
3721
+ function ya() {
3722
+ let { pathname: e, search: t, hash: n } = window.location, r = pa.test(n) ? "" : n;
3723
+ history.replaceState(history.state, "", e + va(t) + r);
3721
3724
  }
3722
- function xa(e) {
3725
+ function ba(e) {
3723
3726
  let t = e.hash === "" ? e.href.replace(/#$/, "") : e.href.slice(0, e.href.length - e.hash.length);
3724
3727
  return e.search === "" ? t.replace(/\?$/, "") : t.slice(0, t.length - e.search.length);
3725
3728
  }
3726
- function Sa(e, t) {
3727
- let n = Zi(e, window.location.href);
3729
+ function xa(e, t) {
3730
+ let n = Xi(e, window.location.href);
3728
3731
  if (!n) return null;
3729
- let r = ya(n.search), i = r === "" ? "?" : "&", a = `${pa}=${encodeURIComponent(t)}`;
3730
- return `${xa(n)}${r}${i}${a}${n.hash}`;
3732
+ let r = va(n.search), i = r === "" ? "?" : "&", a = `${fa}=${encodeURIComponent(t)}`;
3733
+ return `${ba(n)}${r}${i}${a}${n.hash}`;
3731
3734
  }
3732
3735
  //#endregion
3733
3736
  //#region ../../node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/util.js
3734
- function Ca(e, t) {
3737
+ function Sa(e, t) {
3735
3738
  if (e.match(/^[a-z]+:\/\//i)) return e;
3736
3739
  if (e.match(/^\/\//)) return window.location.protocol + e;
3737
3740
  if (e.match(/^[a-z]+:/i)) return e;
3738
3741
  let n = document.implementation.createHTMLDocument(), r = n.createElement("base"), i = n.createElement("a");
3739
3742
  return n.head.appendChild(r), n.body.appendChild(i), t && (r.href = t), i.href = e, i.href;
3740
3743
  }
3741
- var wa = (() => {
3744
+ var Ca = (() => {
3742
3745
  let e = 0, t = () => `0000${(Math.random() * 36 ** 4 << 0).toString(36)}`.slice(-4);
3743
3746
  return () => (e += 1, `u${t()}${e}`);
3744
3747
  })();
3745
- function Ta(e) {
3748
+ function wa(e) {
3746
3749
  let t = [];
3747
3750
  for (let n = 0, r = e.length; n < r; n++) t.push(e[n]);
3748
3751
  return t;
3749
3752
  }
3750
- var Ea = null;
3751
- function Da(e = {}) {
3752
- return Ea || (e.includeStyleProperties ? (Ea = e.includeStyleProperties, Ea) : (Ea = Ta(window.getComputedStyle(document.documentElement)), Ea));
3753
+ var Ta = null;
3754
+ function Ea(e = {}) {
3755
+ return Ta || (e.includeStyleProperties ? (Ta = e.includeStyleProperties, Ta) : (Ta = wa(window.getComputedStyle(document.documentElement)), Ta));
3753
3756
  }
3754
- function Oa(e, t) {
3757
+ function Da(e, t) {
3755
3758
  let n = (e.ownerDocument.defaultView || window).getComputedStyle(e).getPropertyValue(t);
3756
3759
  return n ? parseFloat(n.replace("px", "")) : 0;
3757
3760
  }
3758
- function ka(e) {
3759
- let t = Oa(e, "border-left-width"), n = Oa(e, "border-right-width");
3761
+ function Oa(e) {
3762
+ let t = Da(e, "border-left-width"), n = Da(e, "border-right-width");
3760
3763
  return e.clientWidth + t + n;
3761
3764
  }
3762
- function Aa(e) {
3763
- let t = Oa(e, "border-top-width"), n = Oa(e, "border-bottom-width");
3765
+ function ka(e) {
3766
+ let t = Da(e, "border-top-width"), n = Da(e, "border-bottom-width");
3764
3767
  return e.clientHeight + t + n;
3765
3768
  }
3766
- function ja(e, t = {}) {
3769
+ function Aa(e, t = {}) {
3767
3770
  return {
3768
- width: t.width || ka(e),
3769
- height: t.height || Aa(e)
3771
+ width: t.width || Oa(e),
3772
+ height: t.height || ka(e)
3770
3773
  };
3771
3774
  }
3772
- function Ma() {
3775
+ function ja() {
3773
3776
  let e, t;
3774
3777
  try {
3775
3778
  t = process;
@@ -3777,11 +3780,11 @@ function Ma() {
3777
3780
  let n = t && t.env ? t.env.devicePixelRatio : null;
3778
3781
  return n && (e = parseInt(n, 10), Number.isNaN(e) && (e = 1)), e || window.devicePixelRatio || 1;
3779
3782
  }
3780
- var Na = 16384;
3781
- function Pa(e) {
3782
- (e.width > Na || e.height > Na) && (e.width > Na && e.height > Na ? e.width > e.height ? (e.height *= Na / e.width, e.width = Na) : (e.width *= Na / e.height, e.height = Na) : e.width > Na ? (e.height *= Na / e.width, e.width = Na) : (e.width *= Na / e.height, e.height = Na));
3783
+ var Ma = 16384;
3784
+ function Na(e) {
3785
+ (e.width > Ma || e.height > Ma) && (e.width > Ma && e.height > Ma ? e.width > e.height ? (e.height *= Ma / e.width, e.width = Ma) : (e.width *= Ma / e.height, e.height = Ma) : e.width > Ma ? (e.height *= Ma / e.width, e.width = Ma) : (e.width *= Ma / e.height, e.height = Ma));
3783
3786
  }
3784
- function Fa(e) {
3787
+ function Pa(e) {
3785
3788
  return new Promise((t, n) => {
3786
3789
  let r = new Image();
3787
3790
  r.onload = () => {
@@ -3791,12 +3794,12 @@ function Fa(e) {
3791
3794
  }, r.onerror = n, r.crossOrigin = "anonymous", r.decoding = "async", r.src = e;
3792
3795
  });
3793
3796
  }
3794
- async function Ia(e) {
3797
+ async function Fa(e) {
3795
3798
  return Promise.resolve().then(() => new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then((e) => `data:image/svg+xml;charset=utf-8,${e}`);
3796
3799
  }
3797
- async function La(e, t, n) {
3800
+ async function Ia(e, t, n) {
3798
3801
  let r = "http://www.w3.org/2000/svg", i = document.createElementNS(r, "svg"), a = document.createElementNS(r, "foreignObject");
3799
- return i.setAttribute("width", `${t}`), i.setAttribute("height", `${n}`), i.setAttribute("viewBox", `0 0 ${t} ${n}`), a.setAttribute("width", "100%"), a.setAttribute("height", "100%"), a.setAttribute("x", "0"), a.setAttribute("y", "0"), a.setAttribute("externalResourcesRequired", "true"), i.appendChild(a), a.appendChild(e), Ia(i);
3802
+ return i.setAttribute("width", `${t}`), i.setAttribute("height", `${n}`), i.setAttribute("viewBox", `0 0 ${t} ${n}`), a.setAttribute("width", "100%"), a.setAttribute("height", "100%"), a.setAttribute("x", "0"), a.setAttribute("y", "0"), a.setAttribute("externalResourcesRequired", "true"), i.appendChild(a), a.appendChild(e), Fa(i);
3800
3803
  }
3801
3804
  var X = (e, t) => {
3802
3805
  if (e instanceof t) return !0;
@@ -3805,66 +3808,66 @@ var X = (e, t) => {
3805
3808
  };
3806
3809
  //#endregion
3807
3810
  //#region ../../node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/clone-pseudos.js
3808
- function Ra(e) {
3811
+ function La(e) {
3809
3812
  let t = e.getPropertyValue("content");
3810
3813
  return `${e.cssText} content: '${t.replace(/'|"/g, "")}';`;
3811
3814
  }
3812
- function za(e, t) {
3813
- return Da(t).map((t) => `${t}: ${e.getPropertyValue(t)}${e.getPropertyPriority(t) ? " !important" : ""};`).join(" ");
3815
+ function Ra(e, t) {
3816
+ return Ea(t).map((t) => `${t}: ${e.getPropertyValue(t)}${e.getPropertyPriority(t) ? " !important" : ""};`).join(" ");
3814
3817
  }
3815
- function Ba(e, t, n, r) {
3816
- let i = `.${e}:${t}`, a = n.cssText ? Ra(n) : za(n, r);
3818
+ function za(e, t, n, r) {
3819
+ let i = `.${e}:${t}`, a = n.cssText ? La(n) : Ra(n, r);
3817
3820
  return document.createTextNode(`${i}{${a}}`);
3818
3821
  }
3819
- function Va(e, t, n, r) {
3822
+ function Ba(e, t, n, r) {
3820
3823
  let i = window.getComputedStyle(e, n), a = i.getPropertyValue("content");
3821
3824
  if (a === "" || a === "none") return;
3822
- let o = wa();
3825
+ let o = Ca();
3823
3826
  try {
3824
3827
  t.className = `${t.className} ${o}`;
3825
3828
  } catch {
3826
3829
  return;
3827
3830
  }
3828
3831
  let s = document.createElement("style");
3829
- s.appendChild(Ba(o, n, i, r)), t.appendChild(s);
3832
+ s.appendChild(za(o, n, i, r)), t.appendChild(s);
3830
3833
  }
3831
- function Ha(e, t, n) {
3832
- Va(e, t, ":before", n), Va(e, t, ":after", n);
3834
+ function Va(e, t, n) {
3835
+ Ba(e, t, ":before", n), Ba(e, t, ":after", n);
3833
3836
  }
3834
3837
  //#endregion
3835
3838
  //#region ../../node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/mimes.js
3836
- var Ua = "application/font-woff", Wa = "image/jpeg", Ga = {
3837
- woff: Ua,
3838
- woff2: Ua,
3839
+ var Ha = "application/font-woff", Ua = "image/jpeg", Wa = {
3840
+ woff: Ha,
3841
+ woff2: Ha,
3839
3842
  ttf: "application/font-truetype",
3840
3843
  eot: "application/vnd.ms-fontobject",
3841
3844
  png: "image/png",
3842
- jpg: Wa,
3843
- jpeg: Wa,
3845
+ jpg: Ua,
3846
+ jpeg: Ua,
3844
3847
  gif: "image/gif",
3845
3848
  tiff: "image/tiff",
3846
3849
  svg: "image/svg+xml",
3847
3850
  webp: "image/webp"
3848
3851
  };
3849
- function Ka(e) {
3852
+ function Ga(e) {
3850
3853
  let t = /\.([^./]*?)$/g.exec(e);
3851
3854
  return t ? t[1] : "";
3852
3855
  }
3853
- function qa(e) {
3854
- return Ga[Ka(e).toLowerCase()] || "";
3856
+ function Ka(e) {
3857
+ return Wa[Ga(e).toLowerCase()] || "";
3855
3858
  }
3856
3859
  //#endregion
3857
3860
  //#region ../../node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/dataurl.js
3858
- function Ja(e) {
3861
+ function qa(e) {
3859
3862
  return e.split(/,/)[1];
3860
3863
  }
3861
- function Ya(e) {
3864
+ function Ja(e) {
3862
3865
  return e.search(/^(data:)/) !== -1;
3863
3866
  }
3864
- function Xa(e, t) {
3867
+ function Ya(e, t) {
3865
3868
  return `data:${t};base64,${e}`;
3866
3869
  }
3867
- async function Za(e, t, n) {
3870
+ async function Xa(e, t, n) {
3868
3871
  let r = await fetch(e, t);
3869
3872
  if (r.status === 404) throw Error(`Resource "${r.url}" not found`);
3870
3873
  let i = await r.blob();
@@ -3882,78 +3885,78 @@ async function Za(e, t, n) {
3882
3885
  }, a.readAsDataURL(i);
3883
3886
  });
3884
3887
  }
3885
- var Qa = {};
3886
- function $a(e, t, n) {
3888
+ var Za = {};
3889
+ function Qa(e, t, n) {
3887
3890
  let r = e.replace(/\?.*/, "");
3888
3891
  return n && (r = e), /ttf|otf|eot|woff2?/i.test(r) && (r = r.replace(/.*\//, "")), t ? `[${t}]${r}` : r;
3889
3892
  }
3890
- async function eo(e, t, n) {
3891
- let r = $a(e, t, n.includeQueryParams);
3892
- if (Qa[r] != null) return Qa[r];
3893
+ async function $a(e, t, n) {
3894
+ let r = Qa(e, t, n.includeQueryParams);
3895
+ if (Za[r] != null) return Za[r];
3893
3896
  n.cacheBust && (e += (/\?/.test(e) ? "&" : "?") + (/* @__PURE__ */ new Date()).getTime());
3894
3897
  let i;
3895
3898
  try {
3896
- i = Xa(await Za(e, n.fetchRequestInit, ({ res: e, result: n }) => (t ||= e.headers.get("Content-Type") || "", Ja(n))), t);
3899
+ i = Ya(await Xa(e, n.fetchRequestInit, ({ res: e, result: n }) => (t ||= e.headers.get("Content-Type") || "", qa(n))), t);
3897
3900
  } catch (t) {
3898
3901
  i = n.imagePlaceholder || "";
3899
3902
  let r = `Failed to fetch resource: ${e}`;
3900
3903
  t && (r = typeof t == "string" ? t : t.message), r && console.warn(r);
3901
3904
  }
3902
- return Qa[r] = i, i;
3905
+ return Za[r] = i, i;
3903
3906
  }
3904
3907
  //#endregion
3905
3908
  //#region ../../node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/clone-node.js
3906
- async function to(e) {
3909
+ async function eo(e) {
3907
3910
  let t = e.toDataURL();
3908
- return t === "data:," ? e.cloneNode(!1) : Fa(t);
3911
+ return t === "data:," ? e.cloneNode(!1) : Pa(t);
3909
3912
  }
3910
- async function no(e, t) {
3913
+ async function to(e, t) {
3911
3914
  if (e.currentSrc) {
3912
3915
  let t = document.createElement("canvas"), n = t.getContext("2d");
3913
- return t.width = e.clientWidth, t.height = e.clientHeight, n?.drawImage(e, 0, 0, t.width, t.height), Fa(t.toDataURL());
3916
+ return t.width = e.clientWidth, t.height = e.clientHeight, n?.drawImage(e, 0, 0, t.width, t.height), Pa(t.toDataURL());
3914
3917
  }
3915
3918
  let n = e.poster;
3916
- return Fa(await eo(n, qa(n), t));
3919
+ return Pa(await $a(n, Ka(n), t));
3917
3920
  }
3918
- async function ro(e, t) {
3921
+ async function no(e, t) {
3919
3922
  try {
3920
- if (e?.contentDocument?.body) return await mo(e.contentDocument.body, t, !0);
3923
+ if (e?.contentDocument?.body) return await po(e.contentDocument.body, t, !0);
3921
3924
  } catch {}
3922
3925
  return e.cloneNode(!1);
3923
3926
  }
3924
- async function io(e, t) {
3925
- return X(e, HTMLCanvasElement) ? to(e) : X(e, HTMLVideoElement) ? no(e, t) : X(e, HTMLIFrameElement) ? ro(e, t) : e.cloneNode(oo(e));
3927
+ async function ro(e, t) {
3928
+ return X(e, HTMLCanvasElement) ? eo(e) : X(e, HTMLVideoElement) ? to(e, t) : X(e, HTMLIFrameElement) ? no(e, t) : e.cloneNode(ao(e));
3926
3929
  }
3927
- var ao = (e) => e.tagName != null && e.tagName.toUpperCase() === "SLOT", oo = (e) => e.tagName != null && e.tagName.toUpperCase() === "SVG";
3928
- async function so(e, t, n) {
3929
- if (oo(t)) return t;
3930
+ var io = (e) => e.tagName != null && e.tagName.toUpperCase() === "SLOT", ao = (e) => e.tagName != null && e.tagName.toUpperCase() === "SVG";
3931
+ async function oo(e, t, n) {
3932
+ if (ao(t)) return t;
3930
3933
  let r = [];
3931
- return r = ao(e) && e.assignedNodes ? Ta(e.assignedNodes()) : X(e, HTMLIFrameElement) && e.contentDocument?.body ? Ta(e.contentDocument.body.childNodes) : Ta((e.shadowRoot ?? e).childNodes), r.length === 0 || X(e, HTMLVideoElement) || await r.reduce((e, r) => e.then(() => mo(r, n)).then((e) => {
3934
+ return r = io(e) && e.assignedNodes ? wa(e.assignedNodes()) : X(e, HTMLIFrameElement) && e.contentDocument?.body ? wa(e.contentDocument.body.childNodes) : wa((e.shadowRoot ?? e).childNodes), r.length === 0 || X(e, HTMLVideoElement) || await r.reduce((e, r) => e.then(() => po(r, n)).then((e) => {
3932
3935
  e && t.appendChild(e);
3933
3936
  }), Promise.resolve()), t;
3934
3937
  }
3935
- function co(e, t, n) {
3938
+ function so(e, t, n) {
3936
3939
  let r = t.style;
3937
3940
  if (!r) return;
3938
3941
  let i = window.getComputedStyle(e);
3939
- i.cssText ? (r.cssText = i.cssText, r.transformOrigin = i.transformOrigin) : Da(n).forEach((n) => {
3942
+ i.cssText ? (r.cssText = i.cssText, r.transformOrigin = i.transformOrigin) : Ea(n).forEach((n) => {
3940
3943
  let a = i.getPropertyValue(n);
3941
3944
  n === "font-size" && a.endsWith("px") && (a = `${Math.floor(parseFloat(a.substring(0, a.length - 2))) - .1}px`), X(e, HTMLIFrameElement) && n === "display" && a === "inline" && (a = "block"), n === "d" && t.getAttribute("d") && (a = `path(${t.getAttribute("d")})`), r.setProperty(n, a, i.getPropertyPriority(n));
3942
3945
  });
3943
3946
  }
3944
- function lo(e, t) {
3947
+ function co(e, t) {
3945
3948
  X(e, HTMLTextAreaElement) && (t.innerHTML = e.value), X(e, HTMLInputElement) && t.setAttribute("value", e.value);
3946
3949
  }
3947
- function uo(e, t) {
3950
+ function lo(e, t) {
3948
3951
  if (X(e, HTMLSelectElement)) {
3949
3952
  let n = t, r = Array.from(n.children).find((t) => e.value === t.getAttribute("value"));
3950
3953
  r && r.setAttribute("selected", "");
3951
3954
  }
3952
3955
  }
3953
- function fo(e, t, n) {
3954
- return X(t, Element) && (co(e, t, n), Ha(e, t, n), lo(e, t), uo(e, t)), t;
3956
+ function uo(e, t, n) {
3957
+ return X(t, Element) && (so(e, t, n), Va(e, t, n), co(e, t), lo(e, t)), t;
3955
3958
  }
3956
- async function po(e, t) {
3959
+ async function fo(e, t) {
3957
3960
  let n = e.querySelectorAll ? e.querySelectorAll("use") : [];
3958
3961
  if (n.length === 0) return e;
3959
3962
  let r = {};
@@ -3961,7 +3964,7 @@ async function po(e, t) {
3961
3964
  let a = n[i].getAttribute("xlink:href");
3962
3965
  if (a) {
3963
3966
  let n = e.querySelector(a), i = document.querySelector(a);
3964
- !n && i && !r[a] && (r[a] = await mo(i, t, !0));
3967
+ !n && i && !r[a] && (r[a] = await po(i, t, !0));
3965
3968
  }
3966
3969
  }
3967
3970
  let i = Object.values(r);
@@ -3975,61 +3978,61 @@ async function po(e, t) {
3975
3978
  }
3976
3979
  return e;
3977
3980
  }
3978
- async function mo(e, t, n) {
3979
- return !n && t.filter && !t.filter(e) ? null : Promise.resolve(e).then((e) => io(e, t)).then((n) => so(e, n, t)).then((n) => fo(e, n, t)).then((e) => po(e, t));
3981
+ async function po(e, t, n) {
3982
+ return !n && t.filter && !t.filter(e) ? null : Promise.resolve(e).then((e) => ro(e, t)).then((n) => oo(e, n, t)).then((n) => uo(e, n, t)).then((e) => fo(e, t));
3980
3983
  }
3981
3984
  //#endregion
3982
3985
  //#region ../../node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/embed-resources.js
3983
- var ho = /url\((['"]?)([^'"]+?)\1\)/g, go = /url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g, _o = /src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;
3984
- function vo(e) {
3986
+ var mo = /url\((['"]?)([^'"]+?)\1\)/g, ho = /url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g, go = /src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;
3987
+ function _o(e) {
3985
3988
  let t = e.replace(/([.*+?^${}()|\[\]\/\\])/g, "\\$1");
3986
3989
  return RegExp(`(url\\(['"]?)(${t})(['"]?\\))`, "g");
3987
3990
  }
3988
- function yo(e) {
3991
+ function vo(e) {
3989
3992
  let t = [];
3990
- return e.replace(ho, (e, n, r) => (t.push(r), e)), t.filter((e) => !Ya(e));
3993
+ return e.replace(mo, (e, n, r) => (t.push(r), e)), t.filter((e) => !Ja(e));
3991
3994
  }
3992
- async function bo(e, t, n, r, i) {
3995
+ async function yo(e, t, n, r, i) {
3993
3996
  try {
3994
- let a = n ? Ca(t, n) : t, o = qa(t), s;
3995
- return s = i ? Xa(await i(a), o) : await eo(a, o, r), e.replace(vo(t), `$1${s}$3`);
3997
+ let a = n ? Sa(t, n) : t, o = Ka(t), s;
3998
+ return s = i ? Ya(await i(a), o) : await $a(a, o, r), e.replace(_o(t), `$1${s}$3`);
3996
3999
  } catch {}
3997
4000
  return e;
3998
4001
  }
3999
- function xo(e, { preferredFontFormat: t }) {
4000
- return t ? e.replace(_o, (e) => {
4002
+ function bo(e, { preferredFontFormat: t }) {
4003
+ return t ? e.replace(go, (e) => {
4001
4004
  for (;;) {
4002
- let [n, , r] = go.exec(e) || [];
4005
+ let [n, , r] = ho.exec(e) || [];
4003
4006
  if (!r) return "";
4004
4007
  if (r === t) return `src: ${n};`;
4005
4008
  }
4006
4009
  }) : e;
4007
4010
  }
4008
- function So(e) {
4009
- return e.search(ho) !== -1;
4011
+ function xo(e) {
4012
+ return e.search(mo) !== -1;
4010
4013
  }
4011
- async function Co(e, t, n) {
4012
- if (!So(e)) return e;
4013
- let r = xo(e, n);
4014
- return yo(r).reduce((e, r) => e.then((e) => bo(e, r, t, n)), Promise.resolve(r));
4014
+ async function So(e, t, n) {
4015
+ if (!xo(e)) return e;
4016
+ let r = bo(e, n);
4017
+ return vo(r).reduce((e, r) => e.then((e) => yo(e, r, t, n)), Promise.resolve(r));
4015
4018
  }
4016
4019
  //#endregion
4017
4020
  //#region ../../node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/embed-images.js
4018
- async function wo(e, t, n) {
4021
+ async function Co(e, t, n) {
4019
4022
  let r = t.style?.getPropertyValue(e);
4020
4023
  if (r) {
4021
- let i = await Co(r, null, n);
4024
+ let i = await So(r, null, n);
4022
4025
  return t.style.setProperty(e, i, t.style.getPropertyPriority(e)), !0;
4023
4026
  }
4024
4027
  return !1;
4025
4028
  }
4026
- async function To(e, t) {
4027
- await wo("background", e, t) || await wo("background-image", e, t), await wo("mask", e, t) || await wo("-webkit-mask", e, t) || await wo("mask-image", e, t) || await wo("-webkit-mask-image", e, t);
4029
+ async function wo(e, t) {
4030
+ await Co("background", e, t) || await Co("background-image", e, t), await Co("mask", e, t) || await Co("-webkit-mask", e, t) || await Co("mask-image", e, t) || await Co("-webkit-mask-image", e, t);
4028
4031
  }
4029
- async function Eo(e, t) {
4032
+ async function To(e, t) {
4030
4033
  let n = X(e, HTMLImageElement);
4031
- if (!(n && !Ya(e.src)) && !(X(e, SVGImageElement) && !Ya(e.href.baseVal))) return;
4032
- let r = n ? e.src : e.href.baseVal, i = await eo(r, qa(r), t);
4034
+ if ((!n || Ja(e.src)) && (!X(e, SVGImageElement) || Ja(e.href.baseVal))) return;
4035
+ let r = n ? e.src : e.href.baseVal, i = await $a(r, Ka(r), t);
4033
4036
  await new Promise((r, a) => {
4034
4037
  e.onload = r, e.onerror = t.onImageErrorHandler ? (...e) => {
4035
4038
  try {
@@ -4042,16 +4045,16 @@ async function Eo(e, t) {
4042
4045
  o.decode &&= r, o.loading === "lazy" && (o.loading = "eager"), n ? (e.srcset = "", e.src = i) : e.href.baseVal = i;
4043
4046
  });
4044
4047
  }
4045
- async function Do(e, t) {
4046
- let n = Ta(e.childNodes).map((e) => Oo(e, t));
4048
+ async function Eo(e, t) {
4049
+ let n = wa(e.childNodes).map((e) => Do(e, t));
4047
4050
  await Promise.all(n).then(() => e);
4048
4051
  }
4049
- async function Oo(e, t) {
4050
- X(e, Element) && (await To(e, t), await Eo(e, t), await Do(e, t));
4052
+ async function Do(e, t) {
4053
+ X(e, Element) && (await wo(e, t), await To(e, t), await Eo(e, t));
4051
4054
  }
4052
4055
  //#endregion
4053
4056
  //#region ../../node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/apply-style.js
4054
- function ko(e, t) {
4057
+ function Oo(e, t) {
4055
4058
  let { style: n } = e;
4056
4059
  t.backgroundColor && (n.backgroundColor = t.backgroundColor), t.width && (n.width = `${t.width}px`), t.height && (n.height = `${t.height}px`);
4057
4060
  let r = t.style;
@@ -4061,22 +4064,22 @@ function ko(e, t) {
4061
4064
  }
4062
4065
  //#endregion
4063
4066
  //#region ../../node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/embed-webfonts.js
4064
- var Ao = {};
4065
- async function jo(e) {
4066
- let t = Ao[e];
4067
+ var ko = {};
4068
+ async function Ao(e) {
4069
+ let t = ko[e];
4067
4070
  return t ?? (t = {
4068
4071
  url: e,
4069
4072
  cssText: await (await fetch(e)).text()
4070
- }, Ao[e] = t, t);
4073
+ }, ko[e] = t, t);
4071
4074
  }
4072
- async function Mo(e, t) {
4075
+ async function jo(e, t) {
4073
4076
  let n = e.cssText, r = /url\(["']?([^"')]+)["']?\)/g, i = (n.match(/url\([^)]+\)/g) || []).map(async (i) => {
4074
4077
  let a = i.replace(r, "$1");
4075
- return a.startsWith("https://") || (a = new URL(a, e.url).href), Za(a, t.fetchRequestInit, ({ result: e }) => (n = n.replace(i, `url(${e})`), [i, e]));
4078
+ return a.startsWith("https://") || (a = new URL(a, e.url).href), Xa(a, t.fetchRequestInit, ({ result: e }) => (n = n.replace(i, `url(${e})`), [i, e]));
4076
4079
  });
4077
4080
  return Promise.all(i).then(() => n);
4078
4081
  }
4079
- function No(e) {
4082
+ function Mo(e) {
4080
4083
  if (e == null) return [];
4081
4084
  let t = [], n = e.replace(/(\/\*[\s\S]*?\*\/)/gi, ""), r = /* @__PURE__ */ RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})", "gi");
4082
4085
  for (;;) {
@@ -4096,13 +4099,13 @@ function No(e) {
4096
4099
  }
4097
4100
  return t;
4098
4101
  }
4099
- async function Po(e, t) {
4102
+ async function No(e, t) {
4100
4103
  let n = [], r = [];
4101
4104
  return e.forEach((n) => {
4102
4105
  if ("cssRules" in n) try {
4103
- Ta(n.cssRules || []).forEach((e, i) => {
4106
+ wa(n.cssRules || []).forEach((e, i) => {
4104
4107
  if (e.type === CSSRule.IMPORT_RULE) {
4105
- let a = i + 1, o = e.href, s = jo(o).then((e) => Mo(e, t)).then((e) => No(e).forEach((e) => {
4108
+ let a = i + 1, o = e.href, s = Ao(o).then((e) => jo(e, t)).then((e) => Mo(e).forEach((e) => {
4106
4109
  try {
4107
4110
  n.insertRule(e, e.startsWith("@import") ? a += 1 : n.cssRules.length);
4108
4111
  } catch (t) {
@@ -4119,7 +4122,7 @@ async function Po(e, t) {
4119
4122
  });
4120
4123
  } catch (i) {
4121
4124
  let a = e.find((e) => e.href == null) || document.styleSheets[0];
4122
- n.href != null && r.push(jo(n.href).then((e) => Mo(e, t)).then((e) => No(e).forEach((e) => {
4125
+ n.href != null && r.push(Ao(n.href).then((e) => jo(e, t)).then((e) => Mo(e).forEach((e) => {
4123
4126
  a.insertRule(e, a.cssRules.length);
4124
4127
  })).catch((e) => {
4125
4128
  console.error("Error loading remote stylesheet", e);
@@ -4127,7 +4130,7 @@ async function Po(e, t) {
4127
4130
  }
4128
4131
  }), Promise.all(r).then(() => (e.forEach((e) => {
4129
4132
  if ("cssRules" in e) try {
4130
- Ta(e.cssRules || []).forEach((e) => {
4133
+ wa(e.cssRules || []).forEach((e) => {
4131
4134
  n.push(e);
4132
4135
  });
4133
4136
  } catch (t) {
@@ -4135,36 +4138,36 @@ async function Po(e, t) {
4135
4138
  }
4136
4139
  }), n));
4137
4140
  }
4138
- function Fo(e) {
4139
- return e.filter((e) => e.type === CSSRule.FONT_FACE_RULE).filter((e) => So(e.style.getPropertyValue("src")));
4141
+ function Po(e) {
4142
+ return e.filter((e) => e.type === CSSRule.FONT_FACE_RULE).filter((e) => xo(e.style.getPropertyValue("src")));
4140
4143
  }
4141
- async function Io(e, t) {
4144
+ async function Fo(e, t) {
4142
4145
  if (e.ownerDocument == null) throw Error("Provided element is not within a Document");
4143
- return Fo(await Po(Ta(e.ownerDocument.styleSheets), t));
4146
+ return Po(await No(wa(e.ownerDocument.styleSheets), t));
4144
4147
  }
4145
- function Lo(e) {
4148
+ function Io(e) {
4146
4149
  return e.trim().replace(/["']/g, "");
4147
4150
  }
4148
- function Ro(e) {
4151
+ function Lo(e) {
4149
4152
  let t = /* @__PURE__ */ new Set();
4150
4153
  function n(e) {
4151
4154
  (e.style.fontFamily || getComputedStyle(e).fontFamily).split(",").forEach((e) => {
4152
- t.add(Lo(e));
4155
+ t.add(Io(e));
4153
4156
  }), Array.from(e.children).forEach((e) => {
4154
4157
  e instanceof HTMLElement && n(e);
4155
4158
  });
4156
4159
  }
4157
4160
  return n(e), t;
4158
4161
  }
4159
- async function zo(e, t) {
4160
- let n = await Io(e, t), r = Ro(e);
4161
- return (await Promise.all(n.filter((e) => r.has(Lo(e.style.fontFamily))).map((e) => {
4162
+ async function Ro(e, t) {
4163
+ let n = await Fo(e, t), r = Lo(e);
4164
+ return (await Promise.all(n.filter((e) => r.has(Io(e.style.fontFamily))).map((e) => {
4162
4165
  let n = e.parentStyleSheet ? e.parentStyleSheet.href : null;
4163
- return Co(e.cssText, n, t);
4166
+ return So(e.cssText, n, t);
4164
4167
  }))).join("\n");
4165
4168
  }
4166
- async function Bo(e, t) {
4167
- let n = t.fontEmbedCSS == null ? t.skipFonts ? null : await zo(e, t) : t.fontEmbedCSS;
4169
+ async function zo(e, t) {
4170
+ let n = t.fontEmbedCSS == null ? t.skipFonts ? null : await Ro(e, t) : t.fontEmbedCSS;
4168
4171
  if (n) {
4169
4172
  let t = document.createElement("style"), r = document.createTextNode(n);
4170
4173
  t.appendChild(r), e.firstChild ? e.insertBefore(t, e.firstChild) : e.appendChild(t);
@@ -4172,18 +4175,18 @@ async function Bo(e, t) {
4172
4175
  }
4173
4176
  //#endregion
4174
4177
  //#region ../../node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/index.js
4175
- async function Vo(e, t = {}) {
4176
- let { width: n, height: r } = ja(e, t), i = await mo(e, t, !0);
4177
- return await Bo(i, t), await Oo(i, t), ko(i, t), await La(i, n, r);
4178
+ async function Bo(e, t = {}) {
4179
+ let { width: n, height: r } = Aa(e, t), i = await po(e, t, !0);
4180
+ return await zo(i, t), await Do(i, t), Oo(i, t), await Ia(i, n, r);
4178
4181
  }
4179
- async function Ho(e, t = {}) {
4180
- let { width: n, height: r } = ja(e, t), i = await Fa(await Vo(e, t)), a = document.createElement("canvas"), o = a.getContext("2d"), s = t.pixelRatio || Ma(), c = t.canvasWidth || n, l = t.canvasHeight || r;
4181
- return a.width = c * s, a.height = l * s, t.skipAutoScale || Pa(a), a.style.width = `${c}`, a.style.height = `${l}`, t.backgroundColor && (o.fillStyle = t.backgroundColor, o.fillRect(0, 0, a.width, a.height)), o.drawImage(i, 0, 0, a.width, a.height), a;
4182
+ async function Vo(e, t = {}) {
4183
+ let { width: n, height: r } = Aa(e, t), i = await Pa(await Bo(e, t)), a = document.createElement("canvas"), o = a.getContext("2d"), s = t.pixelRatio || ja(), c = t.canvasWidth || n, l = t.canvasHeight || r;
4184
+ return a.width = c * s, a.height = l * s, t.skipAutoScale || Na(a), a.style.width = `${c}`, a.style.height = `${l}`, t.backgroundColor && (o.fillStyle = t.backgroundColor, o.fillRect(0, 0, a.width, a.height)), o.drawImage(i, 0, 0, a.width, a.height), a;
4182
4185
  }
4183
4186
  //#endregion
4184
4187
  //#region src/runtime/sprite-inline.ts
4185
- var Uo = "http://www.w3.org/2000/svg", Wo = "http://www.w3.org/1999/xlink", Go = 3e3;
4186
- function Ko(e, t) {
4188
+ var Ho = "http://www.w3.org/2000/svg", Uo = "http://www.w3.org/1999/xlink", Wo = 3e3;
4189
+ function Go(e, t) {
4187
4190
  if (!e) return null;
4188
4191
  let n = e.trim();
4189
4192
  if (n === "" || n.startsWith("#")) return null;
@@ -4200,29 +4203,29 @@ function Ko(e, t) {
4200
4203
  id: i
4201
4204
  }) : null;
4202
4205
  }
4203
- var qo = /* @__PURE__ */ new Map();
4204
- function Jo(e) {
4205
- let t = qo.get(e);
4206
+ var Ko = /* @__PURE__ */ new Map();
4207
+ function qo(e) {
4208
+ let t = Ko.get(e);
4206
4209
  if (t) return t;
4207
- let n = fetch(e, { signal: Pi(Go) }).then(async (e) => {
4210
+ let n = fetch(e, { signal: Ni(Wo) }).then(async (e) => {
4208
4211
  if (!e.ok) throw Error(`sprite fetch returned ${e.status}`);
4209
4212
  let t = new DOMParser().parseFromString(await e.text(), "image/svg+xml");
4210
4213
  if (t.querySelector("parsererror")) throw Error("sprite is not parseable SVG");
4211
4214
  return t;
4212
4215
  }).catch((t) => (I(/* @__PURE__ */ Error(`Screenshot sprite ${e} unreadable: ${String(t)}`), { context: "screenshot-sprite" }), null));
4213
- return qo.set(e, n), n;
4216
+ return Ko.set(e, n), n;
4214
4217
  }
4215
- function Yo(e, t) {
4218
+ function Jo(e, t) {
4216
4219
  try {
4217
4220
  let n = e.querySelector(`#${CSS.escape(t)}`);
4218
4221
  if (n) return n;
4219
4222
  } catch {}
4220
4223
  return e.getElementById(t);
4221
4224
  }
4222
- function Xo(e, t) {
4225
+ function Yo(e, t) {
4223
4226
  let n;
4224
4227
  if (e.tagName.toLowerCase() === "symbol") {
4225
- n = document.createElementNS(Uo, "svg");
4228
+ n = document.createElementNS(Ho, "svg");
4226
4229
  for (let t of e.attributes) t.name !== "id" && n.setAttribute(t.name, t.value);
4227
4230
  for (let t of e.childNodes) n.appendChild(document.importNode(t, !0));
4228
4231
  } else n = document.importNode(e, !0), n.removeAttribute("id");
@@ -4237,10 +4240,10 @@ function Xo(e, t) {
4237
4240
  }
4238
4241
  return n;
4239
4242
  }
4240
- async function Zo() {
4243
+ async function Xo() {
4241
4244
  let e = [];
4242
4245
  for (let t of document.querySelectorAll("use")) {
4243
- let n = Ko(t.getAttribute("href") ?? t.getAttributeNS(Wo, "href"), document.baseURI);
4246
+ let n = Go(t.getAttribute("href") ?? t.getAttributeNS(Uo, "href"), document.baseURI);
4244
4247
  n && e.push({
4245
4248
  use: t,
4246
4249
  ref: n
@@ -4249,15 +4252,15 @@ async function Zo() {
4249
4252
  if (e.length === 0) return () => {};
4250
4253
  let t = /* @__PURE__ */ new Map();
4251
4254
  await Promise.all([...new Set(e.map((e) => e.ref.url))].map(async (e) => {
4252
- t.set(e, await Jo(e));
4255
+ t.set(e, await qo(e));
4253
4256
  }));
4254
4257
  let n = [];
4255
4258
  for (let { use: r, ref: i } of e) {
4256
4259
  let e = t.get(i.url);
4257
4260
  if (!e) continue;
4258
- let a = Yo(e, i.id);
4261
+ let a = Jo(e, i.id);
4259
4262
  if (!a) continue;
4260
- let o = Xo(a, r);
4263
+ let o = Yo(a, r);
4261
4264
  r.replaceWith(o), n.push({
4262
4265
  use: r,
4263
4266
  replacement: o
@@ -4269,7 +4272,7 @@ async function Zo() {
4269
4272
  }
4270
4273
  //#endregion
4271
4274
  //#region src/runtime/screenshot.ts
4272
- var Qo = 2097152, $o = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", es = [
4275
+ var Zo = 2097152, Qo = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", $o = [
4273
4276
  {
4274
4277
  quality: .85,
4275
4278
  scale: 1
@@ -4286,8 +4289,8 @@ var Qo = 2097152, $o = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAA
4286
4289
  quality: .6,
4287
4290
  scale: .5
4288
4291
  }
4289
- ], ts = "background:currentColor!important;color:transparent!important;text-shadow:none!important;-webkit-text-fill-color:transparent!important", ns = "input[type=\"password\"],input[autocomplete~=\"cc-number\"],input[autocomplete~=\"cc-csc\"],input[autocomplete~=\"cc-exp\"],input[autocomplete~=\"cc-name\"],input[autocomplete~=\"cc-type\"],input[autocomplete~=\"current-password\"],input[autocomplete~=\"new-password\"],input[autocomplete~=\"one-time-code\"]";
4290
- function rs(e) {
4292
+ ], es = "background:currentColor!important;color:transparent!important;text-shadow:none!important;-webkit-text-fill-color:transparent!important", ts = "input[type=\"password\"],input[autocomplete~=\"cc-number\"],input[autocomplete~=\"cc-csc\"],input[autocomplete~=\"cc-exp\"],input[autocomplete~=\"cc-name\"],input[autocomplete~=\"cc-type\"],input[autocomplete~=\"current-password\"],input[autocomplete~=\"new-password\"],input[autocomplete~=\"one-time-code\"]";
4293
+ function ns(e) {
4291
4294
  let t = e.parentElement;
4292
4295
  for (; t;) {
4293
4296
  if (t.hasAttribute("data-markup-safe")) return !0;
@@ -4295,37 +4298,37 @@ function rs(e) {
4295
4298
  }
4296
4299
  return !1;
4297
4300
  }
4298
- function is(e) {
4301
+ function rs(e) {
4299
4302
  let t = /* @__PURE__ */ new Set(), n = [];
4300
4303
  function r(e) {
4301
4304
  t.has(e) || (t.add(e), n.push(e));
4302
4305
  }
4303
4306
  for (let e of document.querySelectorAll("[data-markup-private],[data-markup-redact]")) r(e);
4304
- for (let e of document.querySelectorAll(ns)) rs(e) || r(e);
4307
+ for (let e of document.querySelectorAll(ts)) ns(e) || r(e);
4305
4308
  if (e.redactSelector) try {
4306
- for (let t of document.querySelectorAll(e.redactSelector)) rs(t) || r(t);
4309
+ for (let t of document.querySelectorAll(e.redactSelector)) ns(t) || r(t);
4307
4310
  } catch (e) {
4308
4311
  I(e, { context: "screenshot-redact-selector" });
4309
4312
  }
4310
- if (e.strictScrub) for (let e of document.querySelectorAll("input,select,textarea")) rs(e) || r(e);
4313
+ if (e.strictScrub) for (let e of document.querySelectorAll("input,select,textarea")) ns(e) || r(e);
4311
4314
  return n;
4312
4315
  }
4313
- function as(e) {
4316
+ function is(e) {
4314
4317
  let t = e.getAttribute("style");
4315
- return e.setAttribute("style", t ? `${t};${ts}` : ts), () => {
4318
+ return e.setAttribute("style", t ? `${t};${es}` : es), () => {
4316
4319
  t === null ? e.removeAttribute("style") : e.setAttribute("style", t);
4317
4320
  };
4318
4321
  }
4319
- function os(e) {
4322
+ function as(e) {
4320
4323
  if (e.id) return `#${CSS.escape(e.id)}`;
4321
4324
  let t = e.tagName.toLowerCase(), n = e.getAttribute("type"), r = e.getAttribute("name");
4322
4325
  return n && r ? `${t}[type="${n}"][name="${r}"]` : n ? `${t}[type="${n}"]` : r ? `${t}[name="${r}"]` : t;
4323
4326
  }
4324
- async function ss(e, t, n) {
4327
+ async function os(e, t, n) {
4325
4328
  try {
4326
- let r = window.innerWidth, i = window.innerHeight, a = Math.min(window.devicePixelRatio, 2), o = await Zo(), s = n ? is(n) : [], c = s.map(os), l = s.map(as), u;
4329
+ let r = window.innerWidth, i = window.innerHeight, a = Math.min(window.devicePixelRatio, 2), o = await Xo(), s = n ? rs(n) : [], c = s.map(as), l = s.map(is), u;
4327
4330
  try {
4328
- u = await Ho(document.documentElement, {
4331
+ u = await Vo(document.documentElement, {
4329
4332
  width: r,
4330
4333
  height: i,
4331
4334
  cacheBust: !0,
@@ -4334,7 +4337,7 @@ async function ss(e, t, n) {
4334
4337
  filter(t) {
4335
4338
  return !(e && (t === e || e.contains(t)) || t instanceof Element && t.hasAttribute("data-markup-skip"));
4336
4339
  },
4337
- imagePlaceholder: $o,
4340
+ imagePlaceholder: Qo,
4338
4341
  onImageErrorHandler: () => {},
4339
4342
  style: {
4340
4343
  transform: `translateY(-${window.scrollY}px)`,
@@ -4347,9 +4350,9 @@ async function ss(e, t, n) {
4347
4350
  }
4348
4351
  if (t) {
4349
4352
  let e = u.getContext("2d");
4350
- e && ds(e, t.x, t.y, a);
4353
+ e && us(e, t.x, t.y, a);
4351
4354
  }
4352
- let d = await us(u);
4355
+ let d = await ls(u);
4353
4356
  return d ? {
4354
4357
  blob: d,
4355
4358
  redactedCount: c.length,
@@ -4359,29 +4362,29 @@ async function ss(e, t, n) {
4359
4362
  return I(e, { context: "screenshot-capture" }), null;
4360
4363
  }
4361
4364
  }
4362
- function cs(e, t) {
4365
+ function ss(e, t) {
4363
4366
  return new Promise((n) => e.toBlob(n, "image/jpeg", t));
4364
4367
  }
4365
- function ls(e, t) {
4368
+ function cs(e, t) {
4366
4369
  let n = document.createElement("canvas");
4367
4370
  n.width = Math.max(1, Math.round(e.width * t)), n.height = Math.max(1, Math.round(e.height * t));
4368
4371
  let r = n.getContext("2d");
4369
4372
  return r ? (r.imageSmoothingQuality = "high", r.drawImage(e, 0, 0, n.width, n.height), n) : null;
4370
4373
  }
4371
- async function us(e) {
4374
+ async function ls(e) {
4372
4375
  let t = null;
4373
- for (let { quality: n, scale: r } of es) {
4374
- let i = r === 1 ? e : ls(e, r);
4376
+ for (let { quality: n, scale: r } of $o) {
4377
+ let i = r === 1 ? e : cs(e, r);
4375
4378
  if (!i) continue;
4376
- let a = await cs(i, n);
4379
+ let a = await ss(i, n);
4377
4380
  if (a) {
4378
- if (a.size <= Qo) return a;
4381
+ if (a.size <= Zo) return a;
4379
4382
  t = t == null ? a.size : Math.min(t, a.size);
4380
4383
  }
4381
4384
  }
4382
- return I(/* @__PURE__ */ Error(t == null ? "Screenshot encode produced no blob at any quality/scale" : `Screenshot still ${t} bytes at the end of the encode ladder (cap ${Qo})`), { context: "screenshot-encode" }), null;
4385
+ return I(/* @__PURE__ */ Error(t == null ? "Screenshot encode produced no blob at any quality/scale" : `Screenshot still ${t} bytes at the end of the encode ladder (cap ${Zo})`), { context: "screenshot-encode" }), null;
4383
4386
  }
4384
- function ds(e, t, n, r) {
4387
+ function us(e, t, n, r) {
4385
4388
  let i = r, a = 28 * i, o = a / 2, s = t * i, c = n * i;
4386
4389
  e.save();
4387
4390
  let l = 2 * i;
@@ -4399,8 +4402,8 @@ function ds(e, t, n, r) {
4399
4402
  }
4400
4403
  //#endregion
4401
4404
  //#region src/runtime/subscription-token-refresh.ts
4402
- var fs = 18e5, ps = 6e4, ms = 6e4;
4403
- function hs(e) {
4405
+ var ds = 18e5, fs = 6e4, ps = 6e4;
4406
+ function ms(e) {
4404
4407
  let t = !1, n = null;
4405
4408
  async function r() {
4406
4409
  let i;
@@ -4408,11 +4411,11 @@ function hs(e) {
4408
4411
  i = await e.mint();
4409
4412
  } catch (e) {
4410
4413
  if (t) return;
4411
- e?.name !== "TypeError" && I(e, { context: "subscription-token-refresh" }), n = setTimeout(r, ms);
4414
+ e?.name !== "TypeError" && I(e, { context: "subscription-token-refresh" }), n = setTimeout(r, ps);
4412
4415
  return;
4413
4416
  }
4414
4417
  if (t) return;
4415
- let a = Math.max(ps, i.expiresAt - Date.now() - fs);
4418
+ let a = Math.max(fs, i.expiresAt - Date.now() - ds);
4416
4419
  n = setTimeout(r, a);
4417
4420
  try {
4418
4421
  e.onIssued(i);
@@ -4426,7 +4429,7 @@ function hs(e) {
4426
4429
  }
4427
4430
  //#endregion
4428
4431
  //#region src/runtime/use-subscription-token.ts
4429
- var gs = Hr({
4432
+ var hs = Vr({
4430
4433
  idle: { issued: (e, t) => ({
4431
4434
  kind: "active",
4432
4435
  token: t.token,
@@ -4439,19 +4442,19 @@ var gs = Hr({
4439
4442
  expiresAt: t.expiresAt,
4440
4443
  mintedAs: t.mintedAs
4441
4444
  }) }
4442
- }), _s = "anon";
4443
- function vs(e) {
4444
- return e.kind === "verified" ? e.identity.clientId : _s;
4445
+ }), gs = "anon";
4446
+ function _s(e) {
4447
+ return e.kind === "verified" ? e.identity.clientId : gs;
4445
4448
  }
4446
- function ys(e) {
4447
- return e.kind === "verified" && e.identity.tokenExpiresAt > Date.now() ? e.identity.clientId : _s;
4449
+ function vs(e) {
4450
+ return e.kind === "verified" && e.identity.tokenExpiresAt > Date.now() ? e.identity.clientId : gs;
4448
4451
  }
4449
- function bs(e, t) {
4452
+ function ys(e, t) {
4450
4453
  return e.kind === "active" && e.mintedAs === t;
4451
4454
  }
4452
- function xs(e, t) {
4453
- let [n, r] = Ur(gs, { kind: "idle" }), i = ys(t);
4454
- return B(() => hs({
4455
+ function bs(e, t) {
4456
+ let [n, r] = Hr(hs, { kind: "idle" }), i = vs(t);
4457
+ return B(() => ms({
4455
4458
  mint: () => e.getSubscriptionToken(),
4456
4459
  onIssued: (e) => r({
4457
4460
  type: "issued",
@@ -4465,12 +4468,12 @@ function xs(e, t) {
4465
4468
  r
4466
4469
  ]), {
4467
4470
  token: n.kind === "active" ? n.token : null,
4468
- isCurrent: bs(n, vs(t))
4471
+ isCurrent: ys(n, _s(t))
4469
4472
  };
4470
4473
  }
4471
4474
  //#endregion
4472
4475
  //#region src/runtime/refresh-token.ts
4473
- async function Ss(e) {
4476
+ async function xs(e) {
4474
4477
  try {
4475
4478
  let t = {
4476
4479
  method: "POST",
@@ -4478,7 +4481,7 @@ async function Ss(e) {
4478
4481
  "content-type": "application/json",
4479
4482
  "x-markup-api-key": e.apiKey
4480
4483
  },
4481
- signal: Pi(Y, e.signal)
4484
+ signal: Ni(Y, e.signal)
4482
4485
  };
4483
4486
  if (e.mode === "cookies") t.credentials = "include", t.body = "{}";
4484
4487
  else {
@@ -4506,8 +4509,8 @@ async function Ss(e) {
4506
4509
  }
4507
4510
  //#endregion
4508
4511
  //#region src/runtime/use-token-refresh.ts
4509
- var Cs = 6e4, ws = 500;
4510
- function Ts(e, t, n, r, i) {
4512
+ var Ss = 6e4, Cs = 500;
4513
+ function ws(e, t, n, r, i) {
4511
4514
  let a = e.kind === "verified", o = a ? e.identity.storage : void 0, s = a ? e.identity.refreshToken : void 0, c = a ? e.identity.refreshTokenExpiresAt : void 0, l = a ? e.identity.tokenExpiresAt : void 0;
4512
4515
  B(() => {
4513
4516
  if (!a || c == null || l == null || o === "localStorage" && s == null || o !== "cookies" && o !== "localStorage") return;
@@ -4516,8 +4519,8 @@ function Ts(e, t, n, r, i) {
4516
4519
  i();
4517
4520
  return;
4518
4521
  }
4519
- let d = Math.max(ws, l - Cs - u), f = new AbortController(), p = window.setTimeout(async () => {
4520
- let a = await Ss({
4522
+ let d = Math.max(Cs, l - Ss - u), f = new AbortController(), p = window.setTimeout(async () => {
4523
+ let a = await xs({
4521
4524
  apiUrl: t,
4522
4525
  apiKey: n,
4523
4526
  mode: o,
@@ -4560,7 +4563,7 @@ function Ts(e, t, n, r, i) {
4560
4563
  function Z(...e) {
4561
4564
  return e.filter(Boolean).join(" ");
4562
4565
  }
4563
- function Es() {
4566
+ function Ts() {
4564
4567
  return typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent) ? {
4565
4568
  mod: "⌘",
4566
4569
  enter: "↵"
@@ -4570,8 +4573,8 @@ function Es() {
4570
4573
  };
4571
4574
  }
4572
4575
  //#endregion
4573
- //#region ../../node_modules/.pnpm/preact@10.29.7/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js
4574
- var Ds = 0;
4576
+ //#region ../../node_modules/.pnpm/preact@10.29.8/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js
4577
+ var Es = 0;
4575
4578
  Array.isArray;
4576
4579
  function Q(e, n, r, i, a, o) {
4577
4580
  n ||= {};
@@ -4588,7 +4591,7 @@ function Q(e, n, r, i, a, o) {
4588
4591
  __e: null,
4589
4592
  __c: null,
4590
4593
  constructor: void 0,
4591
- __v: --Ds,
4594
+ __v: --Es,
4592
4595
  __i: -1,
4593
4596
  __u: 0,
4594
4597
  __source: a,
@@ -4599,7 +4602,7 @@ function Q(e, n, r, i, a, o) {
4599
4602
  }
4600
4603
  //#endregion
4601
4604
  //#region src/runtime/ui/icons.tsx
4602
- function Os({ size: e = 16 }) {
4605
+ function Ds({ size: e = 16 }) {
4603
4606
  return /* @__PURE__ */ Q("svg", {
4604
4607
  width: e,
4605
4608
  height: e,
@@ -4609,7 +4612,7 @@ function Os({ size: e = 16 }) {
4609
4612
  children: /* @__PURE__ */ Q("path", { d: "M63.4561 0.00557731C70.6277 -0.0175584 76.9025 1.04088 83.5898 3.71066C97.7952 9.43043 109.186 20.5001 115.311 34.5359C119.708 44.8002 120.746 54.7869 119.156 65.8171C116.857 82.7956 105.129 98.8382 90.0566 106.846C83.4394 110.362 74.7336 113.029 67.2051 113.271C62.4204 113.425 61.1274 113.32 56.6807 115.204C50.2035 117.858 43.6874 120.417 37.1348 122.879C34.8442 123.763 32.3203 124.902 29.9404 125.51C29.4023 125.648 28.1978 125.009 27.7598 124.646C26.9046 123.951 27.0582 122.505 27.0264 121.484C26.8123 114.646 27.3302 107.458 26.8604 100.656C25.1578 98.6714 22.4026 96.603 20.3086 94.1989C12.1853 84.8731 7.05334 73.9949 6.18164 61.6101C4.95583 46.292 9.97176 31.1285 20.0908 19.5632C29.989 8.13202 44.0369 1.11921 59.1221 0.0788195C60.2694 -0.0356049 62.2637 0.00944821 63.4561 0.00557731ZM92.2676 55.7497C91.5754 39.5314 77.8207 26.9725 61.6064 27.7536C45.5175 28.5287 33.0758 42.1537 33.7627 58.2468C34.4496 74.3398 48.007 86.8553 64.1035 86.2566C80.3254 85.6533 92.9599 71.968 92.2676 55.7497Z" })
4610
4613
  });
4611
4614
  }
4612
- function ks({ size: e = 16 }) {
4615
+ function Os({ size: e = 16 }) {
4613
4616
  return /* @__PURE__ */ Q("svg", {
4614
4617
  width: e,
4615
4618
  height: e,
@@ -4618,7 +4621,7 @@ function ks({ size: e = 16 }) {
4618
4621
  children: /* @__PURE__ */ Q("path", { d: "M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z" })
4619
4622
  });
4620
4623
  }
4621
- function As({ size: e = 16 }) {
4624
+ function ks({ size: e = 16 }) {
4622
4625
  return /* @__PURE__ */ Q("svg", {
4623
4626
  width: e,
4624
4627
  height: e,
@@ -4628,7 +4631,7 @@ function As({ size: e = 16 }) {
4628
4631
  children: /* @__PURE__ */ Q("path", { d: "M12.78 5.22a.75.75 0 0 1 0 1.06L9.06 10l3.72 3.72a.75.75 0 1 1-1.06 1.06l-4.25-4.25a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0Z" })
4629
4632
  });
4630
4633
  }
4631
- function js({ size: e = 16 }) {
4634
+ function As({ size: e = 16 }) {
4632
4635
  return /* @__PURE__ */ Q("svg", {
4633
4636
  width: e,
4634
4637
  height: e,
@@ -4638,7 +4641,7 @@ function js({ size: e = 16 }) {
4638
4641
  children: /* @__PURE__ */ Q("path", { d: "M7.22 14.78a.75.75 0 0 1 0-1.06L10.94 10 7.22 6.28a.75.75 0 0 1 1.06-1.06l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0Z" })
4639
4642
  });
4640
4643
  }
4641
- function Ms({ size: e = 16 }) {
4644
+ function js({ size: e = 16 }) {
4642
4645
  return /* @__PURE__ */ Q("svg", {
4643
4646
  width: e,
4644
4647
  height: e,
@@ -4647,7 +4650,7 @@ function Ms({ size: e = 16 }) {
4647
4650
  children: /* @__PURE__ */ Q("path", { d: "M3 10a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM8.5 10a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM15.5 8.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z" })
4648
4651
  });
4649
4652
  }
4650
- function Ns({ size: e = 16 }) {
4653
+ function Ms({ size: e = 16 }) {
4651
4654
  return /* @__PURE__ */ Q("svg", {
4652
4655
  xmlns: "http://www.w3.org/2000/svg",
4653
4656
  width: e,
@@ -4657,7 +4660,7 @@ function Ns({ size: e = 16 }) {
4657
4660
  children: /* @__PURE__ */ Q("path", { d: "M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z" })
4658
4661
  });
4659
4662
  }
4660
- function Ps({ size: e = 16 }) {
4663
+ function Ns({ size: e = 16 }) {
4661
4664
  return /* @__PURE__ */ Q("svg", {
4662
4665
  width: e,
4663
4666
  height: e,
@@ -4671,7 +4674,7 @@ function Ps({ size: e = 16 }) {
4671
4674
  })
4672
4675
  });
4673
4676
  }
4674
- function Fs({ size: e = 16 }) {
4677
+ function Ps({ size: e = 16 }) {
4675
4678
  return /* @__PURE__ */ Q("svg", {
4676
4679
  width: e,
4677
4680
  height: e,
@@ -4680,7 +4683,7 @@ function Fs({ size: e = 16 }) {
4680
4683
  children: /* @__PURE__ */ Q("path", { d: "M2.87 2.298a.75.75 0 0 0-.812 1.021L3.39 6.624a1 1 0 0 0 .928.626H8.25a.75.75 0 0 1 0 1.5H4.318a1 1 0 0 0-.927.626l-1.333 3.305a.75.75 0 0 0 .811 1.022 24.89 24.89 0 0 0 11.668-5.115.75.75 0 0 0 0-1.175A24.89 24.89 0 0 0 2.869 2.298Z" })
4681
4684
  });
4682
4685
  }
4683
- function Is({ size: e = 16 }) {
4686
+ function Fs({ size: e = 16 }) {
4684
4687
  return /* @__PURE__ */ Q("svg", {
4685
4688
  width: e,
4686
4689
  height: e,
@@ -4704,19 +4707,19 @@ function $({ size: e = 16, children: t }) {
4704
4707
  children: t
4705
4708
  });
4706
4709
  }
4707
- function Ls({ size: e = 16 }) {
4710
+ function Is({ size: e = 16 }) {
4708
4711
  return /* @__PURE__ */ Q($, {
4709
4712
  size: e,
4710
4713
  children: /* @__PURE__ */ Q("path", { d: "M21 11.5a8.4 8.4 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.4 8.4 0 0 1-3.8-.9L3 21l1.9-5.7a8.4 8.4 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.4 8.4 0 0 1 3.8-.9h.5a8.5 8.5 0 0 1 8 8v.5z" })
4711
4714
  });
4712
4715
  }
4713
- function Rs({ size: e = 16 }) {
4716
+ function Ls({ size: e = 16 }) {
4714
4717
  return /* @__PURE__ */ Q($, {
4715
4718
  size: e,
4716
4719
  children: [/* @__PURE__ */ Q("path", { d: "M22 12h-6l-2 3h-4l-2-3H2" }), /* @__PURE__ */ Q("path", { d: "M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z" })]
4717
4720
  });
4718
4721
  }
4719
- function zs({ size: e = 16 }) {
4722
+ function Rs({ size: e = 16 }) {
4720
4723
  return /* @__PURE__ */ Q($, {
4721
4724
  size: e,
4722
4725
  children: [/* @__PURE__ */ Q("path", { d: "M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z" }), /* @__PURE__ */ Q("circle", {
@@ -4726,7 +4729,7 @@ function zs({ size: e = 16 }) {
4726
4729
  })]
4727
4730
  });
4728
4731
  }
4729
- function Bs({ size: e = 16 }) {
4732
+ function zs({ size: e = 16 }) {
4730
4733
  return /* @__PURE__ */ Q($, {
4731
4734
  size: e,
4732
4735
  children: [
@@ -4737,13 +4740,13 @@ function Bs({ size: e = 16 }) {
4737
4740
  ]
4738
4741
  });
4739
4742
  }
4740
- function Vs({ size: e = 16 }) {
4743
+ function Bs({ size: e = 16 }) {
4741
4744
  return /* @__PURE__ */ Q($, {
4742
4745
  size: e,
4743
4746
  children: /* @__PURE__ */ Q("path", { d: "M3 6h18M3 12h18M3 18h18" })
4744
4747
  });
4745
4748
  }
4746
- function Hs({ size: e = 16 }) {
4749
+ function Vs({ size: e = 16 }) {
4747
4750
  return /* @__PURE__ */ Q($, {
4748
4751
  size: e,
4749
4752
  children: [/* @__PURE__ */ Q("circle", {
@@ -4753,13 +4756,13 @@ function Hs({ size: e = 16 }) {
4753
4756
  }), /* @__PURE__ */ Q("path", { d: "M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41" })]
4754
4757
  });
4755
4758
  }
4756
- function Us({ size: e = 16 }) {
4759
+ function Hs({ size: e = 16 }) {
4757
4760
  return /* @__PURE__ */ Q($, {
4758
4761
  size: e,
4759
4762
  children: /* @__PURE__ */ Q("path", { d: "M21 12.79A9 9 0 1 1 11.21 3a7 7 0 0 0 9.79 9.79z" })
4760
4763
  });
4761
4764
  }
4762
- function Ws({ size: e = 16 }) {
4765
+ function Us({ size: e = 16 }) {
4763
4766
  return /* @__PURE__ */ Q($, {
4764
4767
  size: e,
4765
4768
  children: [/* @__PURE__ */ Q("rect", {
@@ -4771,13 +4774,13 @@ function Ws({ size: e = 16 }) {
4771
4774
  }), /* @__PURE__ */ Q("path", { d: "M8 21h8M12 17v4" })]
4772
4775
  });
4773
4776
  }
4774
- function Gs({ size: e = 16 }) {
4777
+ function Ws({ size: e = 16 }) {
4775
4778
  return /* @__PURE__ */ Q($, {
4776
4779
  size: e,
4777
4780
  children: /* @__PURE__ */ Q("path", { d: "M12 22s8-3.5 8-10V5l-8-3-8 3v7c0 6.5 8 10 8 10z" })
4778
4781
  });
4779
4782
  }
4780
- function Ks({ size: e = 16 }) {
4783
+ function Gs({ size: e = 16 }) {
4781
4784
  return /* @__PURE__ */ Q($, {
4782
4785
  size: e,
4783
4786
  children: [/* @__PURE__ */ Q("rect", {
@@ -4789,19 +4792,19 @@ function Ks({ size: e = 16 }) {
4789
4792
  }), /* @__PURE__ */ Q("path", { d: "M6 10h.01M10 10h.01M14 10h.01M18 10h.01M6 14h.01M18 14h.01M10 14h4" })]
4790
4793
  });
4791
4794
  }
4792
- function qs({ size: e = 16 }) {
4795
+ function Ks({ size: e = 16 }) {
4793
4796
  return /* @__PURE__ */ Q($, {
4794
4797
  size: e,
4795
4798
  children: [/* @__PURE__ */ Q("path", { d: "M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4" }), /* @__PURE__ */ Q("path", { d: "M10 17l5-5-5-5M15 12H3" })]
4796
4799
  });
4797
4800
  }
4798
- function Js({ size: e = 16 }) {
4801
+ function qs({ size: e = 16 }) {
4799
4802
  return /* @__PURE__ */ Q($, {
4800
4803
  size: e,
4801
4804
  children: [/* @__PURE__ */ Q("path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" }), /* @__PURE__ */ Q("path", { d: "M16 17l5-5-5-5M21 12H9" })]
4802
4805
  });
4803
4806
  }
4804
- function Ys({ size: e = 16 }) {
4807
+ function Js({ size: e = 16 }) {
4805
4808
  return /* @__PURE__ */ Q($, {
4806
4809
  size: e,
4807
4810
  children: [/* @__PURE__ */ Q("circle", {
@@ -4811,7 +4814,7 @@ function Ys({ size: e = 16 }) {
4811
4814
  }), /* @__PURE__ */ Q("path", { d: "M4 21a8 8 0 0 1 16 0" })]
4812
4815
  });
4813
4816
  }
4814
- function Xs({ size: e = 16 }) {
4817
+ function Ys({ size: e = 16 }) {
4815
4818
  return /* @__PURE__ */ Q($, {
4816
4819
  size: e,
4817
4820
  children: [
@@ -4830,7 +4833,7 @@ function Xs({ size: e = 16 }) {
4830
4833
  ]
4831
4834
  });
4832
4835
  }
4833
- function Zs({ size: e = 16 }) {
4836
+ function Xs({ size: e = 16 }) {
4834
4837
  return /* @__PURE__ */ Q($, {
4835
4838
  size: e,
4836
4839
  children: [
@@ -4840,7 +4843,7 @@ function Zs({ size: e = 16 }) {
4840
4843
  ]
4841
4844
  });
4842
4845
  }
4843
- var Qs = {
4846
+ var Zs = {
4844
4847
  "--markup-pin-leave": "140ms",
4845
4848
  "--markup-toolbar-leave": "160ms",
4846
4849
  "--markup-toast-leave": "220ms",
@@ -4851,8 +4854,8 @@ var Qs = {
4851
4854
  };
4852
4855
  //#endregion
4853
4856
  //#region src/runtime/ui/identity-menu.tsx
4854
- function $s({ identity: e, position: t, isSigningIn: n, isSigningOut: r, dashboardUrl: i, commentAccess: a = "anyone", onSignIn: o, onSignOut: s, onForgetMe: c }) {
4855
- let [l, u] = z(!1), d = ti(l || null, 140), f = d?.isLeaving ?? !1, [p, m] = z(!1), [h, g] = z(!1), _ = H(null);
4857
+ function Qs({ identity: e, position: t, isSigningIn: n, isSigningOut: r, dashboardUrl: i, commentAccess: a = "anyone", onSignIn: o, onSignOut: s, onForgetMe: c }) {
4858
+ let [l, u] = z(!1), d = ei(l || null, 140), f = d?.isLeaving ?? !1, [p, m] = z(!1), [h, g] = z(!1), _ = H(null);
4856
4859
  B(() => {
4857
4860
  if (!l) return;
4858
4861
  function e(e) {
@@ -4870,7 +4873,7 @@ function $s({ identity: e, position: t, isSigningIn: n, isSigningOut: r, dashboa
4870
4873
  B(() => {
4871
4874
  v || (m(!1), g(!1));
4872
4875
  }, [v]);
4873
- let y = aa(e), b = ec(y), x = e.kind === "verified", C = e.kind === "verified" ? e.identity.image : void 0, [w, T] = z(null), E = x && C != null && w !== C, D = x ? e.identity.email : null, O = t === "bottom-left" ? "is-anchor-left" : t === "bottom-center" ? "is-anchor-center" : "is-anchor-right";
4876
+ let y = ia(e), b = $s(y), x = e.kind === "verified", C = e.kind === "verified" ? e.identity.image : void 0, [w, T] = z(null), E = x && C != null && w !== C, D = x ? e.identity.email : null, O = t === "bottom-left" ? "is-anchor-left" : t === "bottom-center" ? "is-anchor-center" : "is-anchor-right";
4874
4877
  return /* @__PURE__ */ Q("div", {
4875
4878
  ref: _,
4876
4879
  style: {
@@ -4903,7 +4906,7 @@ function $s({ identity: e, position: t, isSigningIn: n, isSigningOut: r, dashboa
4903
4906
  }) : x && b ? /* @__PURE__ */ Q("span", {
4904
4907
  class: "markup-avatar-initials",
4905
4908
  children: b
4906
- }) : /* @__PURE__ */ Q(Ys, { size: 14 })
4909
+ }) : /* @__PURE__ */ Q(Js, { size: 14 })
4907
4910
  }), x && y ? /* @__PURE__ */ Q("span", {
4908
4911
  class: "markup-sr-only",
4909
4912
  children: y
@@ -4933,7 +4936,7 @@ function $s({ identity: e, position: t, isSigningIn: n, isSigningOut: r, dashboa
4933
4936
  onClick: () => u(!1),
4934
4937
  children: [/* @__PURE__ */ Q("span", {
4935
4938
  class: "ic",
4936
- children: /* @__PURE__ */ Q(Zs, { size: 16 })
4939
+ children: /* @__PURE__ */ Q(Xs, { size: 16 })
4937
4940
  }), /* @__PURE__ */ Q("span", {
4938
4941
  class: "lbl",
4939
4942
  children: "Account"
@@ -4949,7 +4952,7 @@ function $s({ identity: e, position: t, isSigningIn: n, isSigningOut: r, dashboa
4949
4952
  },
4950
4953
  children: [/* @__PURE__ */ Q("span", {
4951
4954
  class: "ic",
4952
- children: /* @__PURE__ */ Q(Js, { size: 16 })
4955
+ children: /* @__PURE__ */ Q(qs, { size: 16 })
4953
4956
  }), /* @__PURE__ */ Q("span", {
4954
4957
  class: "lbl",
4955
4958
  children: r ? "Signing out…" : h ? "Confirm: sign out of this site" : "Sign out"
@@ -4972,7 +4975,7 @@ function $s({ identity: e, position: t, isSigningIn: n, isSigningOut: r, dashboa
4972
4975
  onClick: () => {
4973
4976
  u(!1), o();
4974
4977
  },
4975
- children: [/* @__PURE__ */ Q(qs, { size: 14 }), /* @__PURE__ */ Q("span", { children: n ? "Signing in…" : "Sign in" })]
4978
+ children: [/* @__PURE__ */ Q(Ks, { size: 14 }), /* @__PURE__ */ Q("span", { children: n ? "Signing in…" : "Sign in" })]
4976
4979
  }),
4977
4980
  /* @__PURE__ */ Q("button", {
4978
4981
  type: "button",
@@ -4991,14 +4994,16 @@ function $s({ identity: e, position: t, isSigningIn: n, isSigningOut: r, dashboa
4991
4994
  }) : null]
4992
4995
  });
4993
4996
  }
4994
- function ec(e) {
4997
+ function $s(e) {
4995
4998
  return e && e.trim().split(/\s+/).slice(0, 2).map((e) => e[0]?.toUpperCase() ?? "").join("") || null;
4996
4999
  }
4997
5000
  //#endregion
4998
5001
  //#region src/runtime/use-drag.ts
4999
- function tc(e) {
5002
+ function ec(e) {
5000
5003
  let t = H(e);
5001
- t.current = e;
5004
+ V(() => {
5005
+ t.current = e;
5006
+ });
5002
5007
  let [n, r] = z(!1);
5003
5008
  return {
5004
5009
  onPointerDown: U((e) => {
@@ -5024,8 +5029,8 @@ function tc(e) {
5024
5029
  h = !0, r(!0), t.current.onStart?.();
5025
5030
  }
5026
5031
  let a = Math.max(p, window.innerWidth - u - p), _ = Math.max(p, window.innerHeight - d - p), v = {
5027
- left: nc(c + n, p, a),
5028
- top: nc(l + i, p, _)
5032
+ left: tc(c + n, p, a),
5033
+ top: tc(l + i, p, _)
5029
5034
  };
5030
5035
  g = v, t.current.onMove(v);
5031
5036
  }
@@ -5040,12 +5045,12 @@ function tc(e) {
5040
5045
  isDragging: n
5041
5046
  };
5042
5047
  }
5043
- function nc(e, t, n) {
5048
+ function tc(e, t, n) {
5044
5049
  return Math.max(t, Math.min(n, e));
5045
5050
  }
5046
5051
  //#endregion
5047
5052
  //#region src/runtime/use-focus-trap.ts
5048
- var rc = [
5053
+ var nc = [
5049
5054
  "a[href]",
5050
5055
  "button:not([disabled])",
5051
5056
  "input:not([disabled])",
@@ -5053,14 +5058,14 @@ var rc = [
5053
5058
  "textarea:not([disabled])",
5054
5059
  "[tabindex]:not([tabindex=\"-1\"])"
5055
5060
  ].join(",");
5056
- function ic(e, t) {
5061
+ function rc(e, t) {
5057
5062
  B(() => {
5058
5063
  if (!t) return;
5059
5064
  let n = e.current;
5060
5065
  if (!n) return;
5061
5066
  function r(e) {
5062
5067
  if (e.key !== "Tab") return;
5063
- let t = Array.from(n.querySelectorAll(rc)), r = t[0], i = t[t.length - 1];
5068
+ let t = Array.from(n.querySelectorAll(nc)), r = t[0], i = t[t.length - 1];
5064
5069
  if (!r || !i) return;
5065
5070
  let a = n.getRootNode(), o = a instanceof ShadowRoot ? a.activeElement : document.activeElement;
5066
5071
  (e.shiftKey ? o === r : o === i) && (e.preventDefault(), (e.shiftKey ? i : r).focus());
@@ -5070,7 +5075,7 @@ function ic(e, t) {
5070
5075
  }
5071
5076
  //#endregion
5072
5077
  //#region src/runtime/use-object-url.ts
5073
- function ac(e) {
5078
+ function ic(e) {
5074
5079
  let [t, n] = z(null);
5075
5080
  return B(() => {
5076
5081
  if (!e) {
@@ -5083,7 +5088,7 @@ function ac(e) {
5083
5088
  }
5084
5089
  //#endregion
5085
5090
  //#region src/runtime/ui/author-prompt.tsx
5086
- function oc({ mode: e = "guest-or-sign-in", isPending: t, isConnecting: n = !1, isSigningIn: r = !1, onSubmit: i, onCancel: a, onSignIn: o, onSignOut: s }) {
5091
+ function ac({ mode: e = "guest-or-sign-in", isPending: t, isConnecting: n = !1, isSigningIn: r = !1, onSubmit: i, onCancel: a, onSignIn: o, onSignOut: s }) {
5087
5092
  let [c, l] = z(""), [u, d] = z(""), f = H(null);
5088
5093
  B(() => {
5089
5094
  f.current?.focus();
@@ -5217,28 +5222,28 @@ function oc({ mode: e = "guest-or-sign-in", isPending: t, isConnecting: n = !1,
5217
5222
  }
5218
5223
  //#endregion
5219
5224
  //#region src/runtime/mention-input.ts
5220
- var sc = "data-markup-mention", cc = "data-markup-mention-name", lc = /* @__PURE__ */ new Set([
5225
+ var oc = "data-markup-mention", sc = "data-markup-mention-name", cc = /* @__PURE__ */ new Set([
5221
5226
  "DIV",
5222
5227
  "P",
5223
5228
  "LI",
5224
5229
  "BLOCKQUOTE",
5225
5230
  "PRE"
5226
- ]), uc = 3, dc = 1;
5227
- function fc(e) {
5231
+ ]), lc = 3, uc = 1;
5232
+ function dc(e) {
5228
5233
  let t = "", n = (r) => {
5229
5234
  let i = r.childNodes;
5230
5235
  for (let a = 0; a < i.length; a++) {
5231
5236
  let o = i[a];
5232
5237
  if (!o) continue;
5233
- if (o.nodeType === uc) {
5238
+ if (o.nodeType === lc) {
5234
5239
  t += o.data;
5235
5240
  continue;
5236
5241
  }
5237
- if (o.nodeType !== dc) continue;
5238
- let s = o, c = s.getAttribute(sc);
5242
+ if (o.nodeType !== uc) continue;
5243
+ let s = o, c = s.getAttribute(oc);
5239
5244
  if (c) {
5240
- let e = pc(s);
5241
- t += Jr({
5245
+ let e = fc(s);
5246
+ t += qr({
5242
5247
  userId: c,
5243
5248
  name: e
5244
5249
  }) ?? `@${e}`;
@@ -5248,109 +5253,109 @@ function fc(e) {
5248
5253
  (r !== e || a !== i.length - 1) && (t += "\n");
5249
5254
  continue;
5250
5255
  }
5251
- lc.has(s.tagName) && t !== "" && !t.endsWith("\n") && (t += "\n"), n(s);
5256
+ cc.has(s.tagName) && t !== "" && !t.endsWith("\n") && (t += "\n"), n(s);
5252
5257
  }
5253
5258
  };
5254
5259
  return n(e), t;
5255
5260
  }
5256
- function pc(e) {
5257
- return e.getAttribute(cc) || (e.textContent ?? "").replace(/^@/, "");
5261
+ function fc(e) {
5262
+ return e.getAttribute(sc) || (e.textContent ?? "").replace(/^@/, "");
5258
5263
  }
5259
- function mc(e, t, n) {
5264
+ function pc(e, t, n) {
5260
5265
  let r = e.createElement("span");
5261
- return r.className = n, r.setAttribute("contenteditable", "false"), r.setAttribute(sc, t.userId), r.setAttribute(cc, t.name), r.textContent = `@${t.name}`, r;
5266
+ return r.className = n, r.setAttribute("contenteditable", "false"), r.setAttribute(oc, t.userId), r.setAttribute(sc, t.name), r.textContent = `@${t.name}`, r;
5262
5267
  }
5263
- function hc(e, t, n) {
5268
+ function mc(e, t, n) {
5264
5269
  let r = e.createDocumentFragment();
5265
- for (let i of Gr(t)) {
5270
+ for (let i of Wr(t)) {
5266
5271
  if (i.type === "text") {
5267
5272
  i.value && r.appendChild(e.createTextNode(i.value));
5268
5273
  continue;
5269
5274
  }
5270
- r.appendChild(mc(e, {
5275
+ r.appendChild(pc(e, {
5271
5276
  userId: i.userId,
5272
5277
  name: i.name
5273
5278
  }, n));
5274
5279
  }
5275
5280
  return r;
5276
5281
  }
5277
- function gc(e) {
5282
+ function hc(e) {
5278
5283
  let t = e.getRootNode();
5279
5284
  return typeof t.getSelection == "function" ? t.getSelection() : e.ownerDocument.getSelection();
5280
5285
  }
5281
- function _c(e) {
5282
- let t = gc(e);
5286
+ function gc(e) {
5287
+ let t = hc(e);
5283
5288
  if (!t || t.rangeCount === 0 || !t.isCollapsed) return null;
5284
5289
  let n = t.focusNode;
5285
- return !n || n.nodeType !== uc || !e.contains(n) || vc(n, e) ? null : {
5290
+ return !n || n.nodeType !== lc || !e.contains(n) || _c(n, e) ? null : {
5286
5291
  node: n,
5287
5292
  offset: t.focusOffset
5288
5293
  };
5289
5294
  }
5290
- function vc(e, t) {
5295
+ function _c(e, t) {
5291
5296
  let n = e;
5292
5297
  for (; n && n !== t;) {
5293
- if (n.nodeType === dc && n.hasAttribute("data-markup-mention")) return n;
5298
+ if (n.nodeType === uc && n.hasAttribute("data-markup-mention")) return n;
5294
5299
  n = n.parentNode;
5295
5300
  }
5296
5301
  return null;
5297
5302
  }
5298
- function yc(e) {
5299
- let t = gc(e);
5303
+ function vc(e) {
5304
+ let t = hc(e);
5300
5305
  if (!t || t.rangeCount === 0 || !t.isCollapsed) return;
5301
5306
  let n = t.focusNode;
5302
5307
  if (!n || !e.contains(n)) return;
5303
- let r = vc(n, e);
5308
+ let r = _c(n, e);
5304
5309
  if (!r) return;
5305
5310
  let i = r.nextSibling;
5306
- (!i || i.nodeType !== uc) && (i = e.ownerDocument.createTextNode(""), r.parentNode?.insertBefore(i, r.nextSibling)), bc(e, i, 0);
5311
+ (!i || i.nodeType !== lc) && (i = e.ownerDocument.createTextNode(""), r.parentNode?.insertBefore(i, r.nextSibling)), yc(e, i, 0);
5307
5312
  }
5308
- function bc(e, t, n) {
5309
- let r = gc(e);
5313
+ function yc(e, t, n) {
5314
+ let r = hc(e);
5310
5315
  if (!r) return;
5311
5316
  let i = e.ownerDocument.createRange();
5312
5317
  i.setStart(t, n), i.collapse(!0), r.removeAllRanges(), r.addRange(i);
5313
5318
  }
5314
- function xc(e) {
5315
- let t = qr(e.node.data, e.offset);
5319
+ function bc(e) {
5320
+ let t = Kr(e.node.data, e.offset);
5316
5321
  return t ? {
5317
5322
  ...t,
5318
5323
  textNode: e.node
5319
5324
  } : null;
5320
5325
  }
5321
- function Sc(e, t, n, r) {
5322
- if (Jr(n) == null) return !1;
5326
+ function xc(e, t, n, r) {
5327
+ if (qr(n) == null) return !1;
5323
5328
  let i = t.textNode;
5324
5329
  if (!e.contains(i)) return !1;
5325
5330
  let a = i.parentNode;
5326
5331
  if (!a || t.caret > i.data.length) return !1;
5327
5332
  i.deleteData(t.at, t.caret - t.at);
5328
5333
  let o = i.splitText(t.at);
5329
- return a.insertBefore(mc(e.ownerDocument, n, r), o), o.data.startsWith(" ") || o.insertData(0, " "), bc(e, o, 1), !0;
5334
+ return a.insertBefore(pc(e.ownerDocument, n, r), o), o.data.startsWith(" ") || o.insertData(0, " "), yc(e, o, 1), !0;
5330
5335
  }
5331
- function Cc(e, t) {
5332
- let n = gc(e);
5336
+ function Sc(e, t) {
5337
+ let n = hc(e);
5333
5338
  if (!n || n.rangeCount === 0) return;
5334
5339
  let r = n.getRangeAt(0);
5335
5340
  if (!e.contains(r.commonAncestorContainer)) return;
5336
5341
  r.deleteContents();
5337
5342
  let { startContainer: i, startOffset: a } = r;
5338
- if (i.nodeType === uc) {
5343
+ if (i.nodeType === lc) {
5339
5344
  let n = i;
5340
- n.insertData(a, t), bc(e, n, a + t.length);
5345
+ n.insertData(a, t), yc(e, n, a + t.length);
5341
5346
  return;
5342
5347
  }
5343
5348
  let o = e.ownerDocument.createTextNode(t);
5344
- r.insertNode(o), bc(e, o, o.data.length);
5349
+ r.insertNode(o), yc(e, o, o.data.length);
5345
5350
  }
5346
- function wc(e, t) {
5351
+ function Cc(e, t) {
5347
5352
  let n = e.ownerDocument, r = null, i = null, a = !0;
5348
5353
  function o(t) {
5349
5354
  let n = t.length === 0;
5350
5355
  (n !== a || e.hasAttribute("data-empty") !== n) && (a = n, e.toggleAttribute("data-empty", n));
5351
5356
  }
5352
5357
  function s() {
5353
- let n = fc(e);
5358
+ let n = dc(e);
5354
5359
  o(n), t.onChange(n);
5355
5360
  }
5356
5361
  function c(e) {
@@ -5366,7 +5371,7 @@ function wc(e, t) {
5366
5371
  c(null);
5367
5372
  return;
5368
5373
  }
5369
- let n = _c(e), r = n ? xc(n) : null;
5374
+ let n = gc(e), r = n ? bc(n) : null;
5370
5375
  if (r && i && r.textNode === i.node && r.at === i.at) {
5371
5376
  c(null);
5372
5377
  return;
@@ -5374,29 +5379,29 @@ function wc(e, t) {
5374
5379
  i = null, c(r);
5375
5380
  }
5376
5381
  function u(r) {
5377
- e.replaceChildren(hc(n, r, t.chipClass)), o(fc(e)), i = null, c(null);
5382
+ e.replaceChildren(mc(n, r, t.chipClass)), o(dc(e)), i = null, c(null);
5378
5383
  }
5379
5384
  let d = () => {
5380
5385
  s(), l();
5381
5386
  }, f = () => l(), p = () => {
5382
- yc(e), l();
5387
+ vc(e), l();
5383
5388
  }, m = (t) => {
5384
5389
  let n = t.clipboardData?.getData("text/plain");
5385
- t.preventDefault(), n && (Cc(e, n.replace(/\r\n?/g, "\n")), s(), l());
5390
+ t.preventDefault(), n && (Sc(e, n.replace(/\r\n?/g, "\n")), s(), l());
5386
5391
  }, h = (e) => {
5387
5392
  e.preventDefault();
5388
5393
  };
5389
5394
  return e.addEventListener("input", d), e.addEventListener("keyup", f), e.addEventListener("mouseup", p), e.addEventListener("focus", p), e.addEventListener("paste", m), e.addEventListener("drop", h), u(t.initialValue ?? ""), {
5390
- getValue: () => fc(e),
5395
+ getValue: () => dc(e),
5391
5396
  setValue: u,
5392
5397
  focus() {
5393
5398
  e.focus();
5394
5399
  let t = e.lastChild;
5395
- t && (t.nodeType === uc ? bc(e, t, t.data.length) : bc(e, e, e.childNodes.length));
5400
+ t && (t.nodeType === lc ? yc(e, t, t.data.length) : yc(e, e, e.childNodes.length));
5396
5401
  },
5397
5402
  insertMention(n) {
5398
- let a = _c(e), o = (a ? xc(a) : null) ?? r;
5399
- o && Sc(e, o, n, t.chipClass) && (s(), i = null, c(null));
5403
+ let a = gc(e), o = (a ? bc(a) : null) ?? r;
5404
+ o && xc(e, o, n, t.chipClass) && (s(), i = null, c(null));
5400
5405
  },
5401
5406
  syncTrigger: l,
5402
5407
  clearTrigger: () => c(null),
@@ -5411,42 +5416,42 @@ function wc(e, t) {
5411
5416
  }
5412
5417
  };
5413
5418
  }
5414
- var Tc = null;
5415
- function Ec() {
5416
- if (Tc) return Tc;
5419
+ var wc = null;
5420
+ function Tc() {
5421
+ if (wc) return wc;
5417
5422
  if (typeof document > "u") return "true";
5418
5423
  let e = document.createElement("div");
5419
5424
  try {
5420
- e.contentEditable = "plaintext-only", Tc = e.contentEditable === "plaintext-only" ? "plaintext-only" : "true";
5425
+ e.contentEditable = "plaintext-only", wc = e.contentEditable === "plaintext-only" ? "plaintext-only" : "true";
5421
5426
  } catch {
5422
- Tc = "true";
5427
+ wc = "true";
5423
5428
  }
5424
- return Tc;
5429
+ return wc;
5425
5430
  }
5426
5431
  //#endregion
5427
5432
  //#region src/lib/linkify.ts
5428
- var Dc = /(^|[\s([{<'"])((?:https?:\/\/|www\.)[^\s<>'"]+)/gi, Oc = ".,;:!?", kc = {
5433
+ var Ec = /(^|[\s([{<'"])((?:https?:\/\/|www\.)[^\s<>'"]+)/gi, Dc = ".,;:!?", Oc = {
5429
5434
  ")": "(",
5430
5435
  "]": "[",
5431
5436
  "}": "{"
5432
5437
  };
5433
- function Ac(e, t) {
5438
+ function kc(e, t) {
5434
5439
  let n = 0;
5435
5440
  for (let r of e) r === t && (n += 1);
5436
5441
  return n;
5437
5442
  }
5438
- function jc(e) {
5443
+ function Ac(e) {
5439
5444
  let t = e.length;
5440
5445
  for (; t > 0;) {
5441
5446
  let n = e[t - 1] ?? "";
5442
- if (Oc.includes(n)) {
5447
+ if (Dc.includes(n)) {
5443
5448
  --t;
5444
5449
  continue;
5445
5450
  }
5446
- let r = kc[n];
5451
+ let r = Oc[n];
5447
5452
  if (r !== void 0) {
5448
5453
  let i = e.slice(0, t);
5449
- if (Ac(i, n) > Ac(i, r)) {
5454
+ if (kc(i, n) > kc(i, r)) {
5450
5455
  --t;
5451
5456
  continue;
5452
5457
  }
@@ -5455,15 +5460,15 @@ function jc(e) {
5455
5460
  }
5456
5461
  return e.slice(0, t);
5457
5462
  }
5458
- function Mc(e) {
5463
+ function jc(e) {
5459
5464
  let t = /^https?:\/\//i.test(e) ? e : `https://${e}`, n = t.replace(/^https?:\/\//i, "").split(/[/?#]/, 1)[0] ?? "";
5460
5465
  return !n.includes(".") || n.startsWith(".") || n.endsWith(".") ? null : t;
5461
5466
  }
5462
- function Nc(e) {
5467
+ function Mc(e) {
5463
5468
  if (!e) return [];
5464
- let t = [], n = 0, r = new RegExp(Dc.source, "gi");
5469
+ let t = [], n = 0, r = new RegExp(Ec.source, "gi");
5465
5470
  for (let i = r.exec(e); i !== null; i = r.exec(e)) {
5466
- let a = i[1] ?? "", o = jc(i[2] ?? ""), s = o ? Mc(o) : null;
5471
+ let a = i[1] ?? "", o = Ac(i[2] ?? ""), s = o ? jc(o) : null;
5467
5472
  if (!s) continue;
5468
5473
  let c = i.index + a.length;
5469
5474
  c > n && t.push({
@@ -5482,14 +5487,14 @@ function Nc(e) {
5482
5487
  }
5483
5488
  //#endregion
5484
5489
  //#region src/runtime/ui/mentions.tsx
5485
- function Pc({ body: e, mentions: t, trailing: n }) {
5490
+ function Nc({ body: e, mentions: t, trailing: n }) {
5486
5491
  let r = it(() => new Set(t), [t]);
5487
5492
  return /* @__PURE__ */ Q("p", {
5488
5493
  class: "markup-comment-body",
5489
- children: [it(() => Gr(e), [e]).map((e, t) => e.type === "mention" ? r.has(e.userId) ? /* @__PURE__ */ Q("span", {
5494
+ children: [it(() => Wr(e), [e]).map((e, t) => e.type === "mention" ? r.has(e.userId) ? /* @__PURE__ */ Q("span", {
5490
5495
  class: "markup-mention-chip",
5491
5496
  children: ["@", e.name]
5492
- }, t) : /* @__PURE__ */ Q("span", { children: ["@", e.name] }, t) : Nc(e.value).map((e, n) => e.type === "link" ? /* @__PURE__ */ Q("a", {
5497
+ }, t) : /* @__PURE__ */ Q("span", { children: ["@", e.name] }, t) : Mc(e.value).map((e, n) => e.type === "link" ? /* @__PURE__ */ Q("a", {
5493
5498
  class: "markup-comment-link",
5494
5499
  href: e.href,
5495
5500
  target: "_blank",
@@ -5498,7 +5503,7 @@ function Pc({ body: e, mentions: t, trailing: n }) {
5498
5503
  }, `${t}-${n}`) : /* @__PURE__ */ Q("span", { children: e.value }, `${t}-${n}`))), n]
5499
5504
  });
5500
5505
  }
5501
- function Fc(e) {
5506
+ function Pc(e) {
5502
5507
  let { members: t, trigger: n, onSelect: r, onClose: i } = e, [a, o] = z(0), s = it(() => {
5503
5508
  if (!n) return [];
5504
5509
  let e = n.query.toLowerCase();
@@ -5526,12 +5531,12 @@ function Fc(e) {
5526
5531
  handleKeyDown: c
5527
5532
  };
5528
5533
  }
5529
- function Ic({ items: e, highlight: t, setHighlight: n, onSelect: r, anchor: i }) {
5534
+ function Fc({ items: e, highlight: t, setHighlight: n, onSelect: r, anchor: i }) {
5530
5535
  let a = H(null);
5531
5536
  return V(() => {
5532
5537
  let e = null;
5533
5538
  function t() {
5534
- i.current && a.current && zc(i.current, a.current);
5539
+ i.current && a.current && Rc(i.current, a.current);
5535
5540
  }
5536
5541
  function n() {
5537
5542
  e ??= requestAnimationFrame(() => {
@@ -5573,25 +5578,25 @@ function Ic({ items: e, highlight: t, setHighlight: n, onSelect: r, anchor: i })
5573
5578
  }, e.userId))
5574
5579
  });
5575
5580
  }
5576
- var Lc = 4, Rc = 8;
5577
- function zc(e, t) {
5581
+ var Ic = 4, Lc = 8;
5582
+ function Rc(e, t) {
5578
5583
  let n = e.getBoundingClientRect(), r = n.bottom > 0 && n.top < window.innerHeight && n.right > 0 && n.left < window.innerWidth;
5579
5584
  if (t.style.visibility = r ? "" : "hidden", !r) return;
5580
- let i = t.offsetHeight, a = n.top - Rc, o = window.innerHeight - n.bottom - Rc, s = a >= i + Lc || a >= o ? n.top - Lc - i : n.bottom + Lc, c = window.innerHeight - i - Rc;
5581
- t.style.top = `${Math.max(Rc, Math.min(s, c))}px`, t.style.left = `${n.left}px`, t.style.width = `${n.width}px`;
5585
+ let i = t.offsetHeight, a = n.top - Lc, o = window.innerHeight - n.bottom - Lc, s = a >= i + Ic || a >= o ? n.top - Ic - i : n.bottom + Ic, c = window.innerHeight - i - Lc;
5586
+ t.style.top = `${Math.max(Lc, Math.min(s, c))}px`, t.style.left = `${n.left}px`, t.style.width = `${n.width}px`;
5582
5587
  }
5583
5588
  //#endregion
5584
5589
  //#region src/runtime/ui/mention-input.tsx
5585
- function Bc({ value: e, onChange: t, onKeyDown: n, members: r, label: i, placeholder: a, disabled: o = !1, autoFocus: s = !1, class: c, handle: l }) {
5586
- let u = H(null), d = H(null), [f, p] = z(null), m = H(t);
5587
- m.current = t;
5588
- let h = H(r);
5589
- h.current = r;
5590
+ function zc({ value: e, onChange: t, onKeyDown: n, members: r, label: i, placeholder: a, disabled: o = !1, autoFocus: s = !1, class: c, handle: l }) {
5591
+ let u = H(null), d = H(null), [f, p] = z(null), m = H(t), h = H(r);
5592
+ V(() => {
5593
+ m.current = t, h.current = r;
5594
+ });
5590
5595
  let g = H(e);
5591
5596
  V(() => {
5592
5597
  let e = u.current;
5593
5598
  if (!e) return;
5594
- let t = wc(e, {
5599
+ let t = Cc(e, {
5595
5600
  chipClass: "markup-mention-chip",
5596
5601
  initialValue: g.current,
5597
5602
  onChange: (e) => m.current(e),
@@ -5611,7 +5616,7 @@ function Bc({ value: e, onChange: t, onKeyDown: n, members: r, label: i, placeho
5611
5616
  let t = d.current;
5612
5617
  t && t.getValue() !== e && t.setValue(e);
5613
5618
  }, [e]);
5614
- let _ = Fc({
5619
+ let _ = Pc({
5615
5620
  members: r ?? [],
5616
5621
  trigger: f,
5617
5622
  onSelect: (e) => d.current?.insertMention(e),
@@ -5624,7 +5629,7 @@ function Bc({ value: e, onChange: t, onKeyDown: n, members: r, label: i, placeho
5624
5629
  "aria-label": i,
5625
5630
  "aria-disabled": o || void 0,
5626
5631
  class: Z("markup-mention-input", c),
5627
- contentEditable: o ? "false" : Ec(),
5632
+ contentEditable: o ? "false" : Tc(),
5628
5633
  "data-placeholder": a,
5629
5634
  tabIndex: o ? -1 : 0,
5630
5635
  onKeyDown: (e) => {
@@ -5633,7 +5638,7 @@ function Bc({ value: e, onChange: t, onKeyDown: n, members: r, label: i, placeho
5633
5638
  onBlur: () => {
5634
5639
  setTimeout(() => d.current?.clearTrigger(), 120);
5635
5640
  }
5636
- }), _.isOpen ? /* @__PURE__ */ Q(Ic, {
5641
+ }), _.isOpen ? /* @__PURE__ */ Q(Fc, {
5637
5642
  items: _.items,
5638
5643
  highlight: _.highlight,
5639
5644
  setHighlight: _.setHighlight,
@@ -5643,8 +5648,8 @@ function Bc({ value: e, onChange: t, onKeyDown: n, members: r, label: i, placeho
5643
5648
  }
5644
5649
  //#endregion
5645
5650
  //#region src/runtime/ui/composer.tsx
5646
- var Vc = 4e3;
5647
- function Hc({ label: e, placeholder: t = "Leave feedback…", submitLabel: n = "Post", initialFocus: r = !0, isPending: i, error: a, onSubmit: o, onDirtyChange: s, members: c }) {
5651
+ var Bc = 4e3;
5652
+ function Vc({ label: e, placeholder: t = "Leave feedback…", submitLabel: n = "Post", initialFocus: r = !0, isPending: i, error: a, onSubmit: o, onDirtyChange: s, members: c }) {
5648
5653
  let [l, u] = z(""), d = H(null), f = H(!1);
5649
5654
  B(() => {
5650
5655
  f.current && !i && !a && (u(""), s?.(!1), d.current?.focus()), f.current = i;
@@ -5653,7 +5658,7 @@ function Hc({ label: e, placeholder: t = "Leave feedback…", submitLabel: n = "
5653
5658
  a,
5654
5659
  s
5655
5660
  ]);
5656
- let p = Vc - l.length, m = p < 0;
5661
+ let p = Bc - l.length, m = p < 0;
5657
5662
  function h(e) {
5658
5663
  e?.preventDefault();
5659
5664
  let t = l.trim();
@@ -5662,7 +5667,7 @@ function Hc({ label: e, placeholder: t = "Leave feedback…", submitLabel: n = "
5662
5667
  function g(e) {
5663
5668
  (e.metaKey || e.ctrlKey) && e.key === "Enter" && h(e);
5664
5669
  }
5665
- let _ = l.length > 0, v = Es();
5670
+ let _ = l.length > 0, v = Ts();
5666
5671
  function y(e) {
5667
5672
  return /* @__PURE__ */ Q("button", {
5668
5673
  type: "submit",
@@ -5671,14 +5676,14 @@ function Hc({ label: e, placeholder: t = "Leave feedback…", submitLabel: n = "
5671
5676
  "aria-label": i ? "Sending…" : n,
5672
5677
  title: i ? "Sending…" : n,
5673
5678
  tabIndex: e,
5674
- children: /* @__PURE__ */ Q(Fs, { size: 14 })
5679
+ children: /* @__PURE__ */ Q(Ps, { size: 14 })
5675
5680
  });
5676
5681
  }
5677
5682
  return /* @__PURE__ */ Q("form", {
5678
5683
  class: Z("markup-composer", _ && "is-filled"),
5679
5684
  onSubmit: h,
5680
5685
  children: [
5681
- /* @__PURE__ */ Q(Bc, {
5686
+ /* @__PURE__ */ Q(zc, {
5682
5687
  class: "markup-composer-input",
5683
5688
  label: e,
5684
5689
  placeholder: t,
@@ -5734,24 +5739,24 @@ function Hc({ label: e, placeholder: t = "Leave feedback…", submitLabel: n = "
5734
5739
  }
5735
5740
  //#endregion
5736
5741
  //#region src/runtime/ui/new-thread-popover.tsx
5737
- var Uc = "https://markup.pixelmatters.dev/docs/install#9-screenshots-privacy";
5738
- function Wc({ pageX: e, pageY: t, authorName: n, authorPromptMode: r, isVerified: i, isIdentityResolving: a, isSigningIn: o, isPending: s, error: c, screenshot: l, isScreenshotCapturing: u, screenshotFailed: d, screenshotRedactedCount: f, screenshotRedactedSelectors: p, members: m = [], isLeaving: h = !1, onAuthor: g, onSignIn: _, onSignOut: v, onSubmit: y, onClose: b }) {
5742
+ var Hc = "https://markup.pixelmatters.dev/docs/install#9-screenshots-privacy";
5743
+ function Uc({ pageX: e, pageY: t, authorName: n, authorPromptMode: r, isVerified: i, isIdentityResolving: a, isSigningIn: o, isPending: s, error: c, screenshot: l, isScreenshotCapturing: u, screenshotFailed: d, screenshotRedactedCount: f, screenshotRedactedSelectors: p, members: m = [], isLeaving: h = !1, onAuthor: g, onSignIn: _, onSignOut: v, onSubmit: y, onClose: b }) {
5739
5744
  let x = H(null);
5740
- ic(x, !h);
5741
- let C = H(!1), w = H(!1), [T, E] = z(!1), D = ti(T || null, 120), O = U((e) => {
5745
+ rc(x, !h);
5746
+ let C = H(!1), w = H(!1), [T, E] = z(!1), D = ei(T || null, 120), O = U((e) => {
5742
5747
  w.current = e, E(e);
5743
5748
  }, []), k = U(() => {
5744
5749
  w.current || (C.current ? O(!0) : b());
5745
5750
  }, [b, O]), A = U(() => {
5746
5751
  O(!1), x.current?.querySelector(".markup-mention-input")?.focus();
5747
- }, [O]), [j, M] = z(!1), [ee, N] = z(!1), te = ac(l), ne = H(null), [P, F] = z(null), { onPointerDown: re, isDragging: ie } = tc({
5752
+ }, [O]), [j, ee] = z(!1), [M, te] = z(!1), N = ic(l), ne = H(null), [P, F] = z(null), { onPointerDown: re, isDragging: ie } = ec({
5748
5753
  targetRef: x,
5749
5754
  shouldStart: (e) => !e.target?.closest("button, a, input, textarea, select"),
5750
5755
  onMove: F
5751
5756
  });
5752
5757
  V(() => {
5753
5758
  let e = x.current;
5754
- if (!(!e || typeof e.showPopover != "function")) try {
5759
+ if (e && typeof e.showPopover == "function") try {
5755
5760
  h ? e.matches(":popover-open") && e.hidePopover() : e.matches(":popover-open") || e.showPopover();
5756
5761
  } catch {}
5757
5762
  }, [h]), B(() => {
@@ -5779,7 +5784,7 @@ function Wc({ pageX: e, pageY: t, authorName: n, authorPromptMode: r, isVerified
5779
5784
  ]), B(() => {
5780
5785
  T && x.current?.querySelector(".markup-discard-confirm-keep")?.focus();
5781
5786
  }, [T]);
5782
- let ae = Gc(e - window.scrollX + 16, 12, window.innerWidth - 320 - 12), oe = Gc(t - window.scrollY - 16, 12, window.innerHeight - 220), se = typeof window < "u" ? window.location.href : "", ce = l != null, le = u || ce || d, ue = j && ce;
5787
+ let ae = Wc(e - window.scrollX + 16, 12, window.innerWidth - 320 - 12), oe = Wc(t - window.scrollY - 16, 12, window.innerHeight - 220), se = typeof window < "u" ? window.location.href : "", ce = l != null, le = u || ce || d, ue = j && ce;
5783
5788
  return /* @__PURE__ */ Q("div", {
5784
5789
  ref: x,
5785
5790
  class: Z("markup-popover", P && "is-floating", ie && "is-dragging", h && "is-leaving"),
@@ -5804,7 +5809,7 @@ function Wc({ pageX: e, pageY: t, authorName: n, authorPromptMode: r, isVerified
5804
5809
  class: "markup-icon-btn",
5805
5810
  "aria-label": "Discard pin",
5806
5811
  onClick: k,
5807
- children: /* @__PURE__ */ Q(ks, { size: 16 })
5812
+ children: /* @__PURE__ */ Q(Os, { size: 16 })
5808
5813
  })]
5809
5814
  }),
5810
5815
  r == null ? /* @__PURE__ */ Q("div", {
@@ -5824,7 +5829,7 @@ function Wc({ pageX: e, pageY: t, authorName: n, authorPromptMode: r, isVerified
5824
5829
  }) : null
5825
5830
  ]
5826
5831
  }),
5827
- /* @__PURE__ */ Q(Hc, {
5832
+ /* @__PURE__ */ Q(Vc, {
5828
5833
  label: "Feedback",
5829
5834
  placeholder: "What's wrong, missing, or worth noting?",
5830
5835
  submitLabel: "Post markup",
@@ -5849,13 +5854,13 @@ function Wc({ pageX: e, pageY: t, authorName: n, authorPromptMode: r, isVerified
5849
5854
  class: "markup-screenshot-checkbox",
5850
5855
  disabled: !0
5851
5856
  }),
5852
- /* @__PURE__ */ Q(Ps, { size: 12 }),
5857
+ /* @__PURE__ */ Q(Ns, { size: 12 }),
5853
5858
  /* @__PURE__ */ Q("span", { children: "Capturing…" })
5854
5859
  ]
5855
5860
  }) : d ? /* @__PURE__ */ Q("span", {
5856
5861
  class: "markup-screenshot-status",
5857
5862
  title: "This page has something the capture can't read, often a third-party image. Your comment will post without a screenshot.",
5858
- children: [/* @__PURE__ */ Q(Ps, { size: 12 }), /* @__PURE__ */ Q("span", { children: "Screenshot unavailable" })]
5863
+ children: [/* @__PURE__ */ Q(Ns, { size: 12 }), /* @__PURE__ */ Q("span", { children: "Screenshot unavailable" })]
5859
5864
  }) : /* @__PURE__ */ Q("label", {
5860
5865
  class: "markup-screenshot-toggle",
5861
5866
  children: [
@@ -5863,15 +5868,15 @@ function Wc({ pageX: e, pageY: t, authorName: n, authorPromptMode: r, isVerified
5863
5868
  type: "checkbox",
5864
5869
  class: "markup-screenshot-checkbox",
5865
5870
  checked: j,
5866
- onChange: (e) => M(e.currentTarget.checked)
5871
+ onChange: (e) => ee(e.currentTarget.checked)
5867
5872
  }),
5868
- /* @__PURE__ */ Q(Ps, { size: 12 }),
5873
+ /* @__PURE__ */ Q(Ns, { size: 12 }),
5869
5874
  /* @__PURE__ */ Q("span", { children: "Attach screenshot" })
5870
5875
  ]
5871
5876
  }),
5872
- ue && te ? /* @__PURE__ */ Q("a", {
5877
+ ue && N ? /* @__PURE__ */ Q("a", {
5873
5878
  class: "markup-screenshot-thumb-link",
5874
- href: te,
5879
+ href: N,
5875
5880
  target: "_blank",
5876
5881
  rel: "noopener",
5877
5882
  title: "Preview screenshot",
@@ -5881,19 +5886,19 @@ function Wc({ pageX: e, pageY: t, authorName: n, authorPromptMode: r, isVerified
5881
5886
  },
5882
5887
  children: /* @__PURE__ */ Q("img", {
5883
5888
  class: "markup-screenshot-thumb",
5884
- src: te,
5889
+ src: N,
5885
5890
  alt: ""
5886
5891
  })
5887
5892
  }) : null,
5888
5893
  ue && f > 0 ? /* @__PURE__ */ Q("button", {
5889
5894
  type: "button",
5890
5895
  class: "markup-screenshot-redacted-chip",
5891
- "aria-expanded": ee,
5892
- onClick: () => N((e) => !e),
5896
+ "aria-expanded": M,
5897
+ onClick: () => te((e) => !e),
5893
5898
  children: [
5894
5899
  /* @__PURE__ */ Q("em", {
5895
5900
  class: "markup-screenshot-redacted-arrow",
5896
- children: ee ? "▾" : "▸"
5901
+ children: M ? "▾" : "▸"
5897
5902
  }),
5898
5903
  f,
5899
5904
  " ",
@@ -5903,7 +5908,7 @@ function Wc({ pageX: e, pageY: t, authorName: n, authorPromptMode: r, isVerified
5903
5908
  ]
5904
5909
  }) : null
5905
5910
  ]
5906
- }), ue ? /* @__PURE__ */ Q(S, { children: [ee && f > 0 ? /* @__PURE__ */ Q("div", {
5911
+ }), ue ? /* @__PURE__ */ Q(S, { children: [M && f > 0 ? /* @__PURE__ */ Q("div", {
5907
5912
  class: "markup-screenshot-redacted-list",
5908
5913
  children: p.map((e) => /* @__PURE__ */ Q("code", {
5909
5914
  class: "markup-screenshot-redacted-selector",
@@ -5916,7 +5921,7 @@ function Wc({ pageX: e, pageY: t, authorName: n, authorPromptMode: r, isVerified
5916
5921
  " ",
5917
5922
  /* @__PURE__ */ Q("a", {
5918
5923
  class: "markup-screenshot-help-link",
5919
- href: Uc,
5924
+ href: Hc,
5920
5925
  target: "_blank",
5921
5926
  rel: "noopener noreferrer",
5922
5927
  children: "More info here."
@@ -5925,7 +5930,7 @@ function Wc({ pageX: e, pageY: t, authorName: n, authorPromptMode: r, isVerified
5925
5930
  })] }) : null]
5926
5931
  }) : null
5927
5932
  ]
5928
- }) : /* @__PURE__ */ Q(oc, {
5933
+ }) : /* @__PURE__ */ Q(ac, {
5929
5934
  mode: r,
5930
5935
  isPending: s,
5931
5936
  isConnecting: a,
@@ -5935,7 +5940,7 @@ function Wc({ pageX: e, pageY: t, authorName: n, authorPromptMode: r, isVerified
5935
5940
  onSignIn: _,
5936
5941
  onSignOut: v
5937
5942
  }),
5938
- ue && te ? /* @__PURE__ */ Q("dialog", {
5943
+ ue && N ? /* @__PURE__ */ Q("dialog", {
5939
5944
  ref: ne,
5940
5945
  class: "markup-lightbox",
5941
5946
  onClick: () => ne.current?.close(),
@@ -5946,10 +5951,10 @@ function Wc({ pageX: e, pageY: t, authorName: n, authorPromptMode: r, isVerified
5946
5951
  onClick: (e) => {
5947
5952
  e.stopPropagation(), ne.current?.close();
5948
5953
  },
5949
- children: /* @__PURE__ */ Q(ks, { size: 16 })
5954
+ children: /* @__PURE__ */ Q(Os, { size: 16 })
5950
5955
  }), /* @__PURE__ */ Q("img", {
5951
5956
  class: "markup-lightbox-img",
5952
- src: te,
5957
+ src: N,
5953
5958
  alt: "Screenshot preview",
5954
5959
  onClick: (e) => e.stopPropagation()
5955
5960
  })]
@@ -5990,12 +5995,12 @@ function Wc({ pageX: e, pageY: t, authorName: n, authorPromptMode: r, isVerified
5990
5995
  ]
5991
5996
  });
5992
5997
  }
5993
- function Gc(e, t, n) {
5998
+ function Wc(e, t, n) {
5994
5999
  return Math.max(t, Math.min(n, e));
5995
6000
  }
5996
6001
  //#endregion
5997
6002
  //#region src/runtime/ui/notifications-panel.tsx
5998
- function Kc({ state: e, onBack: t, onItemClick: n, onMarkAllRead: r, isMarkingAll: i }) {
6003
+ function Gc({ state: e, onBack: t, onItemClick: n, onMarkAllRead: r, isMarkingAll: i }) {
5999
6004
  let a = e.kind === "ready" && e.items.some((e) => e.readAt == null);
6000
6005
  return /* @__PURE__ */ Q("div", {
6001
6006
  class: "markup-notifications-panel",
@@ -6010,7 +6015,7 @@ function Kc({ state: e, onBack: t, onItemClick: n, onMarkAllRead: r, isMarkingAl
6010
6015
  title: "Back to menu",
6011
6016
  "aria-label": "Back to menu",
6012
6017
  onClick: t,
6013
- children: /* @__PURE__ */ Q(As, { size: 16 })
6018
+ children: /* @__PURE__ */ Q(ks, { size: 16 })
6014
6019
  }),
6015
6020
  /* @__PURE__ */ Q("span", {
6016
6021
  class: "markup-eyebrow",
@@ -6068,7 +6073,7 @@ function Kc({ state: e, onBack: t, onItemClick: n, onMarkAllRead: r, isMarkingAl
6068
6073
  role: "img",
6069
6074
  "aria-label": "Written by an AI agent",
6070
6075
  title: "Written by an AI agent on this person's behalf",
6071
- children: /* @__PURE__ */ Q(Xs, { size: 11 })
6076
+ children: /* @__PURE__ */ Q(Ys, { size: 11 })
6072
6077
  }) : null,
6073
6078
  /* @__PURE__ */ Q("span", {
6074
6079
  class: "markup-notifications-panel-sep",
@@ -6076,7 +6081,7 @@ function Kc({ state: e, onBack: t, onItemClick: n, onMarkAllRead: r, isMarkingAl
6076
6081
  }),
6077
6082
  /* @__PURE__ */ Q("span", {
6078
6083
  class: "markup-notifications-panel-time",
6079
- children: qc(e.createdAt)
6084
+ children: Kc(e.createdAt)
6080
6085
  })
6081
6086
  ]
6082
6087
  }),
@@ -6108,7 +6113,7 @@ function Kc({ state: e, onBack: t, onItemClick: n, onMarkAllRead: r, isMarkingAl
6108
6113
  })]
6109
6114
  });
6110
6115
  }
6111
- function qc(e) {
6116
+ function Kc(e) {
6112
6117
  let t = Date.now() - e, n = Math.floor(t / 1e3);
6113
6118
  if (n < 60) return "just now";
6114
6119
  let r = Math.floor(n / 60);
@@ -6120,7 +6125,7 @@ function qc(e) {
6120
6125
  }
6121
6126
  //#endregion
6122
6127
  //#region src/runtime/use-theme.ts
6123
- function Jc() {
6128
+ function qc() {
6124
6129
  let [, e] = z(0);
6125
6130
  return B(() => Ue(() => e((e) => e + 1)), []), {
6126
6131
  mode: Be(),
@@ -6130,8 +6135,8 @@ function Jc() {
6130
6135
  }
6131
6136
  //#endregion
6132
6137
  //#region src/runtime/ui/privacy-panel.tsx
6133
- function Yc({ identity: e, apiUrl: t, commentAccess: n = "anyone", autoCapture: r, autoCaptureLocked: i, isForgettingMe: a, forgetMeError: o, onForgetMe: s, onBack: c }) {
6134
- let [l, u] = z(!1), d = aa(e), f = e.kind === "verified", p = f ? e.identity.email : void 0, m = e.kind === "anon";
6138
+ function Jc({ identity: e, apiUrl: t, commentAccess: n = "anyone", autoCapture: r, autoCaptureLocked: i, isForgettingMe: a, forgetMeError: o, onForgetMe: s, onBack: c }) {
6139
+ let [l, u] = z(!1), d = ia(e), f = e.kind === "verified", p = f ? e.identity.email : void 0, m = e.kind === "anon";
6135
6140
  return /* @__PURE__ */ Q("div", {
6136
6141
  class: "markup-panel",
6137
6142
  children: [/* @__PURE__ */ Q("header", {
@@ -6141,7 +6146,7 @@ function Yc({ identity: e, apiUrl: t, commentAccess: n = "anyone", autoCapture:
6141
6146
  class: "markup-panel-back",
6142
6147
  "aria-label": "Back to menu",
6143
6148
  onClick: c,
6144
- children: [/* @__PURE__ */ Q(As, { size: 14 }), /* @__PURE__ */ Q("span", { children: "Back" })]
6149
+ children: [/* @__PURE__ */ Q(ks, { size: 14 }), /* @__PURE__ */ Q("span", { children: "Back" })]
6145
6150
  }), /* @__PURE__ */ Q("span", {
6146
6151
  class: "markup-eyebrow",
6147
6152
  children: "privacy & data"
@@ -6232,7 +6237,7 @@ function Yc({ identity: e, apiUrl: t, commentAccess: n = "anyone", autoCapture:
6232
6237
  "Only ",
6233
6238
  /* @__PURE__ */ Q("span", {
6234
6239
  class: "markup-panel-mono",
6235
- children: Xc(t)
6240
+ children: Yc(t)
6236
6241
  }),
6237
6242
  ". No analytics, no ad tech, no third-party requests from the widget. If the widget itself crashes it posts the error, this page's URL and your user-agent to that same host, never your identity or what you were writing."
6238
6243
  ]
@@ -6268,7 +6273,7 @@ function Yc({ identity: e, apiUrl: t, commentAccess: n = "anyone", autoCapture:
6268
6273
  })]
6269
6274
  });
6270
6275
  }
6271
- function Xc(e) {
6276
+ function Yc(e) {
6272
6277
  try {
6273
6278
  return new URL(e).host;
6274
6279
  } catch {
@@ -6277,8 +6282,8 @@ function Xc(e) {
6277
6282
  }
6278
6283
  //#endregion
6279
6284
  //#region src/runtime/ui/shortcuts-panel.tsx
6280
- function Zc({ onBack: e }) {
6281
- let { mod: t, enter: n } = Es();
6285
+ function Xc({ onBack: e }) {
6286
+ let { mod: t, enter: n } = Ts();
6282
6287
  return /* @__PURE__ */ Q("div", {
6283
6288
  class: "markup-panel",
6284
6289
  children: [/* @__PURE__ */ Q("header", {
@@ -6288,7 +6293,7 @@ function Zc({ onBack: e }) {
6288
6293
  class: "markup-panel-back",
6289
6294
  "aria-label": "Back to menu",
6290
6295
  onClick: e,
6291
- children: [/* @__PURE__ */ Q(As, { size: 14 }), /* @__PURE__ */ Q("span", { children: "Back" })]
6296
+ children: [/* @__PURE__ */ Q(ks, { size: 14 }), /* @__PURE__ */ Q("span", { children: "Back" })]
6292
6297
  }), /* @__PURE__ */ Q("span", {
6293
6298
  class: "markup-eyebrow",
6294
6299
  children: "keyboard shortcuts"
@@ -6374,15 +6379,15 @@ function Zc({ onBack: e }) {
6374
6379
  }
6375
6380
  //#endregion
6376
6381
  //#region src/runtime/ui/overflow-menu.tsx
6377
- var Qc = {
6382
+ var Zc = {
6378
6383
  menu: "More options",
6379
6384
  privacy: "Privacy and data",
6380
6385
  shortcuts: "Keyboard shortcuts"
6381
6386
  };
6382
- function $c({ position: e, onSetPosition: t, autoCapture: n, autoCaptureLocked: r = !1, onToggleAutoCapture: i, showResolved: a, onToggleShowResolved: o, onHideForSession: s, identity: c, apiUrl: l, commentAccess: u, isForgettingMe: d, forgetMeError: f, onForgetMe: p, version: m, dashboardUrl: h }) {
6383
- let [g, _] = z(!1), [v, y] = z("menu"), b = ti(g || null, 140), x = b?.isLeaving ?? !1, S = H(null), C = H(null), w = H(null), T = H(null), E = H("menu"), D = H(null), O = H(v);
6387
+ function Qc({ position: e, onSetPosition: t, autoCapture: n, autoCaptureLocked: r = !1, onToggleAutoCapture: i, showResolved: a, onToggleShowResolved: o, onHideForSession: s, identity: c, apiUrl: l, commentAccess: u, isForgettingMe: d, forgetMeError: f, onForgetMe: p, version: m, dashboardUrl: h }) {
6388
+ let [g, _] = z(!1), [v, y] = z("menu"), b = ei(g || null, 140), x = b?.isLeaving ?? !1, S = H(null), C = H(null), w = H(null), T = H(null), E = H("menu"), D = H(null), O = H(v);
6384
6389
  O.current = v;
6385
- let k = Jc();
6390
+ let k = qc();
6386
6391
  B(() => {
6387
6392
  g && (y("menu"), E.current = "menu");
6388
6393
  }, [g]), V(() => {
@@ -6427,7 +6432,7 @@ function $c({ position: e, onSetPosition: t, autoCapture: n, autoCaptureLocked:
6427
6432
  function A(e) {
6428
6433
  D.current = C.current?.getBoundingClientRect().height ?? null, e !== "menu" && (E.current = e), y(e);
6429
6434
  }
6430
- let j = e === "bottom-left" ? "is-anchor-left" : e === "bottom-center" ? "is-anchor-center" : "is-anchor-right", { mod: M } = Es();
6435
+ let j = e === "bottom-left" ? "is-anchor-left" : e === "bottom-center" ? "is-anchor-center" : "is-anchor-right", { mod: ee } = Ts();
6431
6436
  return /* @__PURE__ */ Q("div", {
6432
6437
  ref: S,
6433
6438
  style: {
@@ -6446,17 +6451,17 @@ function $c({ position: e, onSetPosition: t, autoCapture: n, autoCaptureLocked:
6446
6451
  onClick: (e) => {
6447
6452
  e.preventDefault(), e.stopPropagation(), _((e) => !e);
6448
6453
  },
6449
- children: /* @__PURE__ */ Q(Vs, { size: 16 })
6454
+ children: /* @__PURE__ */ Q(Bs, { size: 16 })
6450
6455
  }), b ? /* @__PURE__ */ Q("div", {
6451
6456
  ref: C,
6452
6457
  class: Z("markup-pop", j, x && "is-leaving"),
6453
6458
  "data-pop": "overflow",
6454
6459
  "data-view": v,
6455
6460
  role: "dialog",
6456
- "aria-label": Qc[v],
6461
+ "aria-label": Zc[v],
6457
6462
  tabIndex: -1,
6458
6463
  inert: x || void 0,
6459
- children: v === "privacy" ? /* @__PURE__ */ Q(Yc, {
6464
+ children: v === "privacy" ? /* @__PURE__ */ Q(Jc, {
6460
6465
  identity: c,
6461
6466
  apiUrl: l,
6462
6467
  commentAccess: u,
@@ -6470,7 +6475,7 @@ function $c({ position: e, onSetPosition: t, autoCapture: n, autoCaptureLocked:
6470
6475
  });
6471
6476
  },
6472
6477
  onBack: () => A("menu")
6473
- }) : v === "shortcuts" ? /* @__PURE__ */ Q(Zc, { onBack: () => A("menu") }) : /* @__PURE__ */ Q("div", {
6478
+ }) : v === "shortcuts" ? /* @__PURE__ */ Q(Xc, { onBack: () => A("menu") }) : /* @__PURE__ */ Q("div", {
6474
6479
  role: "menu",
6475
6480
  class: "markup-menu-view",
6476
6481
  children: [
@@ -6492,7 +6497,7 @@ function $c({ position: e, onSetPosition: t, autoCapture: n, autoCaptureLocked:
6492
6497
  title: "Light",
6493
6498
  class: Z(k.mode === "light" && "is-on"),
6494
6499
  onClick: () => k.set("light"),
6495
- children: /* @__PURE__ */ Q(Hs, { size: 14 })
6500
+ children: /* @__PURE__ */ Q(Vs, { size: 14 })
6496
6501
  }),
6497
6502
  /* @__PURE__ */ Q("button", {
6498
6503
  type: "button",
@@ -6502,7 +6507,7 @@ function $c({ position: e, onSetPosition: t, autoCapture: n, autoCaptureLocked:
6502
6507
  title: "Dark",
6503
6508
  class: Z(k.mode === "dark" && "is-on"),
6504
6509
  onClick: () => k.set("dark"),
6505
- children: /* @__PURE__ */ Q(Us, { size: 14 })
6510
+ children: /* @__PURE__ */ Q(Hs, { size: 14 })
6506
6511
  }),
6507
6512
  /* @__PURE__ */ Q("button", {
6508
6513
  type: "button",
@@ -6512,7 +6517,7 @@ function $c({ position: e, onSetPosition: t, autoCapture: n, autoCaptureLocked:
6512
6517
  title: `Auto, currently ${k.resolved}`,
6513
6518
  class: Z(k.mode === "auto" && "is-on"),
6514
6519
  onClick: () => k.set("auto"),
6515
- children: /* @__PURE__ */ Q(Ws, { size: 14 })
6520
+ children: /* @__PURE__ */ Q(Us, { size: 14 })
6516
6521
  })
6517
6522
  ]
6518
6523
  })]
@@ -6535,7 +6540,7 @@ function $c({ position: e, onSetPosition: t, autoCapture: n, autoCaptureLocked:
6535
6540
  title: "Bottom left",
6536
6541
  class: Z(e === "bottom-left" && "is-on"),
6537
6542
  onClick: () => t("bottom-left"),
6538
- children: /* @__PURE__ */ Q(el, { side: "left" })
6543
+ children: /* @__PURE__ */ Q($c, { side: "left" })
6539
6544
  }),
6540
6545
  /* @__PURE__ */ Q("button", {
6541
6546
  type: "button",
@@ -6545,7 +6550,7 @@ function $c({ position: e, onSetPosition: t, autoCapture: n, autoCaptureLocked:
6545
6550
  title: "Bottom center",
6546
6551
  class: Z(e === "bottom-center" && "is-on"),
6547
6552
  onClick: () => t("bottom-center"),
6548
- children: /* @__PURE__ */ Q(el, { side: "center" })
6553
+ children: /* @__PURE__ */ Q($c, { side: "center" })
6549
6554
  }),
6550
6555
  /* @__PURE__ */ Q("button", {
6551
6556
  type: "button",
@@ -6555,7 +6560,7 @@ function $c({ position: e, onSetPosition: t, autoCapture: n, autoCaptureLocked:
6555
6560
  title: "Bottom right",
6556
6561
  class: Z(e === "bottom-right" && "is-on"),
6557
6562
  onClick: () => t("bottom-right"),
6558
- children: /* @__PURE__ */ Q(el, { side: "right" })
6563
+ children: /* @__PURE__ */ Q($c, { side: "right" })
6559
6564
  })
6560
6565
  ]
6561
6566
  })]
@@ -6577,7 +6582,7 @@ function $c({ position: e, onSetPosition: t, autoCapture: n, autoCaptureLocked:
6577
6582
  children: [
6578
6583
  /* @__PURE__ */ Q("span", {
6579
6584
  class: "ic",
6580
- children: /* @__PURE__ */ Q(tl, {})
6585
+ children: /* @__PURE__ */ Q(el, {})
6581
6586
  }),
6582
6587
  /* @__PURE__ */ Q("span", {
6583
6588
  class: "lbl",
@@ -6604,7 +6609,7 @@ function $c({ position: e, onSetPosition: t, autoCapture: n, autoCaptureLocked:
6604
6609
  children: [
6605
6610
  /* @__PURE__ */ Q("span", {
6606
6611
  class: "ic",
6607
- children: /* @__PURE__ */ Q(Ns, { size: 16 })
6612
+ children: /* @__PURE__ */ Q(Ms, { size: 16 })
6608
6613
  }),
6609
6614
  /* @__PURE__ */ Q("span", {
6610
6615
  class: "lbl",
@@ -6628,7 +6633,7 @@ function $c({ position: e, onSetPosition: t, autoCapture: n, autoCaptureLocked:
6628
6633
  children: [
6629
6634
  /* @__PURE__ */ Q("span", {
6630
6635
  class: "ic",
6631
- children: /* @__PURE__ */ Q(Gs, { size: 16 })
6636
+ children: /* @__PURE__ */ Q(Ws, { size: 16 })
6632
6637
  }),
6633
6638
  /* @__PURE__ */ Q("span", {
6634
6639
  class: "lbl",
@@ -6637,7 +6642,7 @@ function $c({ position: e, onSetPosition: t, autoCapture: n, autoCaptureLocked:
6637
6642
  /* @__PURE__ */ Q("span", {
6638
6643
  class: "right",
6639
6644
  "aria-hidden": "true",
6640
- children: /* @__PURE__ */ Q(js, { size: 14 })
6645
+ children: /* @__PURE__ */ Q(As, { size: 14 })
6641
6646
  })
6642
6647
  ]
6643
6648
  }),
@@ -6650,7 +6655,7 @@ function $c({ position: e, onSetPosition: t, autoCapture: n, autoCaptureLocked:
6650
6655
  children: [
6651
6656
  /* @__PURE__ */ Q("span", {
6652
6657
  class: "ic",
6653
- children: /* @__PURE__ */ Q(Ks, { size: 16 })
6658
+ children: /* @__PURE__ */ Q(Gs, { size: 16 })
6654
6659
  }),
6655
6660
  /* @__PURE__ */ Q("span", {
6656
6661
  class: "lbl",
@@ -6659,7 +6664,7 @@ function $c({ position: e, onSetPosition: t, autoCapture: n, autoCaptureLocked:
6659
6664
  /* @__PURE__ */ Q("span", {
6660
6665
  class: "right",
6661
6666
  "aria-hidden": "true",
6662
- children: /* @__PURE__ */ Q(js, { size: 14 })
6667
+ children: /* @__PURE__ */ Q(As, { size: 14 })
6663
6668
  })
6664
6669
  ]
6665
6670
  }),
@@ -6674,7 +6679,7 @@ function $c({ position: e, onSetPosition: t, autoCapture: n, autoCaptureLocked:
6674
6679
  children: [
6675
6680
  /* @__PURE__ */ Q("span", {
6676
6681
  class: "ic",
6677
- children: /* @__PURE__ */ Q(nl, {})
6682
+ children: /* @__PURE__ */ Q(tl, {})
6678
6683
  }),
6679
6684
  /* @__PURE__ */ Q("span", {
6680
6685
  class: "lbl",
@@ -6682,7 +6687,7 @@ function $c({ position: e, onSetPosition: t, autoCapture: n, autoCaptureLocked:
6682
6687
  }),
6683
6688
  /* @__PURE__ */ Q("span", {
6684
6689
  class: "right",
6685
- children: [M, " ."]
6690
+ children: [ee, " ."]
6686
6691
  })
6687
6692
  ]
6688
6693
  }),
@@ -6692,7 +6697,7 @@ function $c({ position: e, onSetPosition: t, autoCapture: n, autoCaptureLocked:
6692
6697
  target: "_blank",
6693
6698
  rel: "noopener noreferrer",
6694
6699
  children: [
6695
- /* @__PURE__ */ Q(Os, { size: 14 }),
6700
+ /* @__PURE__ */ Q(Ds, { size: 14 }),
6696
6701
  /* @__PURE__ */ Q("span", { children: "Powered by Markup" }),
6697
6702
  /* @__PURE__ */ Q("span", {
6698
6703
  class: "ver",
@@ -6705,7 +6710,7 @@ function $c({ position: e, onSetPosition: t, autoCapture: n, autoCaptureLocked:
6705
6710
  }) : null]
6706
6711
  });
6707
6712
  }
6708
- function el({ side: e }) {
6713
+ function $c({ side: e }) {
6709
6714
  return /* @__PURE__ */ Q("svg", {
6710
6715
  width: 14,
6711
6716
  height: 14,
@@ -6731,7 +6736,7 @@ function el({ side: e }) {
6731
6736
  })]
6732
6737
  });
6733
6738
  }
6734
- function tl() {
6739
+ function el() {
6735
6740
  return /* @__PURE__ */ Q("svg", {
6736
6741
  width: 16,
6737
6742
  height: 16,
@@ -6749,7 +6754,7 @@ function tl() {
6749
6754
  })]
6750
6755
  });
6751
6756
  }
6752
- function nl() {
6757
+ function tl() {
6753
6758
  return /* @__PURE__ */ Q("svg", {
6754
6759
  width: 16,
6755
6760
  height: 16,
@@ -6770,7 +6775,7 @@ function nl() {
6770
6775
  }
6771
6776
  //#endregion
6772
6777
  //#region src/runtime/ui/panel-popover.tsx
6773
- function rl({ kind: e, label: t, position: n, ignoreToolbarKind: r, isLeaving: i = !1, onClose: a, children: o }) {
6778
+ function nl({ kind: e, label: t, position: n, ignoreToolbarKind: r, isLeaving: i = !1, onClose: a, children: o }) {
6774
6779
  let s = H(null);
6775
6780
  return B(() => {
6776
6781
  if (i) return;
@@ -6806,7 +6811,7 @@ function rl({ kind: e, label: t, position: n, ignoreToolbarKind: r, isLeaving: i
6806
6811
  }
6807
6812
  //#endregion
6808
6813
  //#region src/runtime/ui/pin.tsx
6809
- function il({ pageX: e, pageY: t, count: n, isActive: r, isUnresolved: i, isClosed: a = !1, isLeaving: o = !1, enterDelayMs: s = 0, onClick: c }) {
6814
+ function rl({ pageX: e, pageY: t, count: n, isActive: r, isUnresolved: i, isClosed: a = !1, isLeaving: o = !1, enterDelayMs: s = 0, onClick: c }) {
6810
6815
  let l = H(!r), u = t - window.scrollY, d = e - window.scrollX;
6811
6816
  return /* @__PURE__ */ Q("button", {
6812
6817
  type: "button",
@@ -6825,11 +6830,11 @@ function il({ pageX: e, pageY: t, count: n, isActive: r, isUnresolved: i, isClos
6825
6830
  title: `Open ${a ? "resolved " : ""}feedback thread (${n} comment${n === 1 ? "" : "s"})`,
6826
6831
  children: /* @__PURE__ */ Q("span", {
6827
6832
  class: "markup-pin-num",
6828
- children: a ? /* @__PURE__ */ Q(Ns, { size: 14 }) : n
6833
+ children: a ? /* @__PURE__ */ Q(Ms, { size: 14 }) : n
6829
6834
  })
6830
6835
  });
6831
6836
  }
6832
- function al({ pageX: e, pageY: t, isLeaving: n = !1 }) {
6837
+ function il({ pageX: e, pageY: t, isLeaving: n = !1 }) {
6833
6838
  let r = t - window.scrollY, i = e - window.scrollX;
6834
6839
  return /* @__PURE__ */ Q("div", {
6835
6840
  class: Z("markup-pin", "markup-pin-ghost", "is-anchor", n && "is-leaving"),
@@ -6846,7 +6851,7 @@ function al({ pageX: e, pageY: t, isLeaving: n = !1 }) {
6846
6851
  }
6847
6852
  //#endregion
6848
6853
  //#region src/runtime/ui/placement-overlay.tsx
6849
- function ol({ onPlace: e, onCancel: t }) {
6854
+ function al({ onPlace: e, onCancel: t }) {
6850
6855
  let n = H(null);
6851
6856
  return V(() => {
6852
6857
  let r = n.current?.getRootNode() ?? null, i = (e) => r !== null && e.composedPath().includes(r);
@@ -6857,7 +6862,7 @@ function ol({ onPlace: e, onCancel: t }) {
6857
6862
  i(e) || (e.preventDefault(), e.stopPropagation());
6858
6863
  }
6859
6864
  function s(t) {
6860
- i(t) || (t.preventDefault(), t.stopPropagation(), e(_i(t), t.clientX, t.clientY));
6865
+ i(t) || (t.preventDefault(), t.stopPropagation(), e(gi(t), t.clientX, t.clientY));
6861
6866
  }
6862
6867
  let c = { capture: !0 }, l = [
6863
6868
  "pointerdown",
@@ -6871,7 +6876,7 @@ function ol({ onPlace: e, onCancel: t }) {
6871
6876
  window.addEventListener("keydown", a);
6872
6877
  for (let e of l) window.addEventListener(e, o, c);
6873
6878
  window.addEventListener("click", s, c);
6874
- let u = sl();
6879
+ let u = ol();
6875
6880
  return () => {
6876
6881
  window.removeEventListener("keydown", a);
6877
6882
  for (let e of l) window.removeEventListener(e, o, c);
@@ -6887,7 +6892,7 @@ function ol({ onPlace: e, onCancel: t }) {
6887
6892
  })
6888
6893
  });
6889
6894
  }
6890
- function sl() {
6895
+ function ol() {
6891
6896
  let e = "html, html * { cursor: crosshair !important; }";
6892
6897
  if ("adoptedStyleSheets" in document && "replaceSync" in CSSStyleSheet.prototype) {
6893
6898
  let t = new CSSStyleSheet();
@@ -6900,14 +6905,14 @@ function sl() {
6900
6905
  }
6901
6906
  //#endregion
6902
6907
  //#region src/runtime/ui/thread-popover.tsx
6903
- var cl = [
6908
+ var sl = [
6904
6909
  "👍",
6905
6910
  "❤️",
6906
6911
  "🎉",
6907
6912
  "😮",
6908
6913
  "😄",
6909
6914
  "❓"
6910
- ], ll = Hr({
6915
+ ], cl = Vr({
6911
6916
  none: {
6912
6917
  "toggle-thread-menu": () => ({
6913
6918
  kind: "thread-menu",
@@ -6963,13 +6968,13 @@ var cl = [
6963
6968
  dismiss: () => ({ kind: "none" })
6964
6969
  }
6965
6970
  });
6966
- function ul({ thread: e, authorName: t, authorPromptMode: n, currentClientId: r, isVerified: i, isIdentityResolving: a, isSigningIn: o, canDelete: s, isPending: c, error: l, isHidden: u = !1, isLeaving: d = !1, members: f = [], onAuthor: p, onSignIn: m, onSignOut: h, onClose: g, onReply: _, onEditComment: v, onDeleteComment: y, onToggleReaction: b, onResolve: x, onDelete: S }) {
6967
- let C = H(null), w = H(null), T = H(null), E = H(null), [D, O] = Ur(ll, { kind: "none" }), k = ti(D.kind === "none" || D.kind === "editing" ? null : D, 120), A = k?.value ?? null, j = k?.isLeaving ?? !1, M = A?.kind === "thread-menu" ? A : null, [ee, N] = z(null), { onPointerDown: te, isDragging: ne } = tc({
6971
+ function ll({ thread: e, authorName: t, authorPromptMode: n, currentClientId: r, isVerified: i, isIdentityResolving: a, isSigningIn: o, canDelete: s, isPending: c, error: l, isHidden: u = !1, isLeaving: d = !1, members: f = [], onAuthor: p, onSignIn: m, onSignOut: h, onClose: g, onReply: _, onEditComment: v, onDeleteComment: y, onToggleReaction: b, onResolve: x, onDelete: S }) {
6972
+ let C = H(null), w = H(null), T = H(null), E = H(null), [D, O] = Hr(cl, { kind: "none" }), k = ei(D.kind === "none" || D.kind === "editing" ? null : D, 120), A = k?.value ?? null, j = k?.isLeaving ?? !1, ee = A?.kind === "thread-menu" ? A : null, [M, te] = z(null), { onPointerDown: N, isDragging: ne } = ec({
6968
6973
  targetRef: C,
6969
6974
  shouldStart: (e) => !e.target?.closest("button, a, input, textarea, select"),
6970
- onMove: N
6975
+ onMove: te
6971
6976
  });
6972
- ic(C, !d);
6977
+ rc(C, !d);
6973
6978
  let P = e.resolvedAt != null, F = it(() => e.comments.filter((e) => !e.deleted), [e.comments]);
6974
6979
  B(() => {
6975
6980
  if (D.kind === "none" || D.kind === "editing") return;
@@ -7001,16 +7006,16 @@ function ul({ thread: e, authorName: t, authorPromptMode: n, currentClientId: r,
7001
7006
  }
7002
7007
  e.scrollHeight - e.scrollTop - e.clientHeight < 80 && (e.scrollTop = e.scrollHeight);
7003
7008
  }
7004
- }, [F.length]), V(() => {
7005
- let e = C.current;
7006
- if (!(!e || typeof e.showPopover != "function")) try {
7007
- d ? (N((e) => e ?? ae.current), e.matches(":popover-open") && e.hidePopover()) : e.matches(":popover-open") || e.showPopover();
7008
- } catch {}
7009
- }, [d]);
7009
+ }, [F.length]);
7010
7010
  let ae = H(null);
7011
7011
  V(() => {
7012
7012
  let e = C.current;
7013
- if (!e || d || ee != null || typeof e.matches == "function" && !e.matches(":popover-open")) return;
7013
+ if (e && typeof e.showPopover == "function") try {
7014
+ d ? (te((e) => e ?? ae.current), e.matches(":popover-open") && e.hidePopover()) : e.matches(":popover-open") || e.showPopover();
7015
+ } catch {}
7016
+ }, [d]), V(() => {
7017
+ let e = C.current;
7018
+ if (!e || d || M != null || typeof e.matches == "function" && !e.matches(":popover-open")) return;
7014
7019
  let t = getComputedStyle(e), n = Number.parseFloat(t.left), r = Number.parseFloat(t.top);
7015
7020
  Number.isFinite(n) && Number.isFinite(r) && (ae.current = {
7016
7021
  left: n,
@@ -7027,15 +7032,15 @@ function ul({ thread: e, authorName: t, authorPromptMode: n, currentClientId: r,
7027
7032
  return e.addEventListener("toggle", t), () => e.removeEventListener("toggle", t);
7028
7033
  }, [g]);
7029
7034
  let se = it(() => {
7030
- let t = vi({
7035
+ let t = _i({
7031
7036
  anchorX: e.anchorX,
7032
7037
  anchorY: e.anchorY,
7033
7038
  anchorSelector: e.anchorSelector,
7034
7039
  anchorText: e.anchorText
7035
7040
  });
7036
7041
  return {
7037
- left: ml(t.pageX - window.scrollX + 16, 12, window.innerWidth - 320 - 12),
7038
- top: ml(t.pageY - window.scrollY - 16, 12, window.innerHeight - 200)
7042
+ left: pl(t.pageX - window.scrollX + 16, 12, window.innerWidth - 320 - 12),
7043
+ top: pl(t.pageY - window.scrollY - 16, 12, window.innerHeight - 200)
7039
7044
  };
7040
7045
  }, [
7041
7046
  e.anchorX,
@@ -7046,11 +7051,11 @@ function ul({ thread: e, authorName: t, authorPromptMode: n, currentClientId: r,
7046
7051
  return /* @__PURE__ */ Q("div", {
7047
7052
  ref: C,
7048
7053
  id: d ? void 0 : "markup-thread-popover",
7049
- class: Z("markup-popover", ee && "is-floating", ne && "is-dragging", u && "is-hud-hidden", d && "is-leaving"),
7054
+ class: Z("markup-popover", M && "is-floating", ne && "is-dragging", u && "is-hud-hidden", d && "is-leaving"),
7050
7055
  popover: "auto",
7051
7056
  style: {
7052
- "--markup-pop-x": `${ee?.left ?? se.left}px`,
7053
- "--markup-pop-y": `${ee?.top ?? se.top}px`
7057
+ "--markup-pop-x": `${M?.left ?? se.left}px`,
7058
+ "--markup-pop-y": `${M?.top ?? se.top}px`
7054
7059
  },
7055
7060
  role: "dialog",
7056
7061
  "aria-label": "Markup thread",
@@ -7059,7 +7064,7 @@ function ul({ thread: e, authorName: t, authorPromptMode: n, currentClientId: r,
7059
7064
  children: [
7060
7065
  /* @__PURE__ */ Q("header", {
7061
7066
  class: "markup-popover-header",
7062
- onPointerDown: te,
7067
+ onPointerDown: N,
7063
7068
  children: [/* @__PURE__ */ Q("span", {
7064
7069
  class: "markup-popover-title",
7065
7070
  title: e.url,
@@ -7074,29 +7079,29 @@ function ul({ thread: e, authorName: t, authorPromptMode: n, currentClientId: r,
7074
7079
  },
7075
7080
  children: [/* @__PURE__ */ Q("button", {
7076
7081
  type: "button",
7077
- class: Z("markup-icon-btn", M != null && "is-open"),
7082
+ class: Z("markup-icon-btn", ee != null && "is-open"),
7078
7083
  title: "More options",
7079
7084
  onClick: () => O({ type: "toggle-thread-menu" }),
7080
- children: /* @__PURE__ */ Q(Ms, { size: 16 })
7081
- }), M ? /* @__PURE__ */ Q("div", {
7085
+ children: /* @__PURE__ */ Q(js, { size: 16 })
7086
+ }), ee ? /* @__PURE__ */ Q("div", {
7082
7087
  class: Z("markup-thread-menu-list", j && "is-leaving"),
7083
7088
  inert: j || void 0,
7084
7089
  children: [/* @__PURE__ */ Q("button", {
7085
7090
  type: "button",
7086
7091
  class: "markup-thread-menu-item",
7087
7092
  onClick: () => {
7088
- let t = Sa(e.url, e._id);
7093
+ let t = xa(e.url, e._id);
7089
7094
  t && navigator.clipboard.writeText(t).catch(() => {}), O({ type: "dismiss" });
7090
7095
  },
7091
7096
  children: "Copy link"
7092
7097
  }), s ? /* @__PURE__ */ Q("button", {
7093
7098
  type: "button",
7094
- class: Z("markup-thread-menu-item", M.confirmDelete && "is-danger"),
7099
+ class: Z("markup-thread-menu-item", ee.confirmDelete && "is-danger"),
7095
7100
  disabled: c,
7096
7101
  onClick: () => {
7097
7102
  D.kind === "thread-menu" && (D.confirmDelete ? (O({ type: "dismiss" }), S()) : O({ type: "arm-thread-delete" }));
7098
7103
  },
7099
- children: M.confirmDelete ? "Confirm delete" : "Delete thread…"
7104
+ children: ee.confirmDelete ? "Confirm delete" : "Delete thread…"
7100
7105
  }) : null]
7101
7106
  }) : null]
7102
7107
  }),
@@ -7106,14 +7111,14 @@ function ul({ thread: e, authorName: t, authorPromptMode: n, currentClientId: r,
7106
7111
  title: "Mark as resolved",
7107
7112
  disabled: c,
7108
7113
  onClick: x,
7109
- children: /* @__PURE__ */ Q(Ns, { size: 16 })
7114
+ children: /* @__PURE__ */ Q(Ms, { size: 16 })
7110
7115
  }) : null,
7111
7116
  /* @__PURE__ */ Q("button", {
7112
7117
  type: "button",
7113
7118
  class: "markup-icon-btn",
7114
7119
  title: "Close thread",
7115
7120
  onClick: g,
7116
- children: /* @__PURE__ */ Q(ks, { size: 16 })
7121
+ children: /* @__PURE__ */ Q(Os, { size: 16 })
7117
7122
  })
7118
7123
  ]
7119
7124
  })]
@@ -7126,10 +7131,10 @@ function ul({ thread: e, authorName: t, authorPromptMode: n, currentClientId: r,
7126
7131
  return /* @__PURE__ */ Q("li", {
7127
7132
  class: Z("markup-comment", re.current != null && t.createdAt > re.current && "is-new"),
7128
7133
  children: [
7129
- /* @__PURE__ */ Q(hl, {
7134
+ /* @__PURE__ */ Q(ml, {
7130
7135
  name: t.authorName,
7131
7136
  image: t.authorImage,
7132
- tone: _l(t.authorClientId ?? t.authorName)
7137
+ tone: gl(t.authorClientId ?? t.authorName)
7133
7138
  }),
7134
7139
  /* @__PURE__ */ Q("div", {
7135
7140
  class: "markup-comment-meta",
@@ -7143,23 +7148,23 @@ function ul({ thread: e, authorName: t, authorPromptMode: n, currentClientId: r,
7143
7148
  role: "img",
7144
7149
  "aria-label": "Written by an AI agent",
7145
7150
  title: "Written by an AI agent",
7146
- children: /* @__PURE__ */ Q(Xs, { size: 11 })
7151
+ children: /* @__PURE__ */ Q(Ys, { size: 11 })
7147
7152
  }) : null,
7148
7153
  /* @__PURE__ */ Q("time", {
7149
7154
  class: "markup-comment-time",
7150
7155
  datetime: new Date(t.createdAt).toISOString(),
7151
- title: yl(t.createdAt),
7152
- children: vl(t.createdAt)
7156
+ title: vl(t.createdAt),
7157
+ children: _l(t.createdAt)
7153
7158
  }),
7154
7159
  t.editedAt == null ? null : /* @__PURE__ */ Q("time", {
7155
7160
  class: "markup-comment-edited",
7156
7161
  datetime: new Date(t.editedAt).toISOString(),
7157
- title: yl(t.editedAt),
7162
+ title: vl(t.editedAt),
7158
7163
  children: "edited"
7159
7164
  }),
7160
7165
  /* @__PURE__ */ Q("div", {
7161
7166
  class: "markup-thread-actions",
7162
- children: [!P && !l ? /* @__PURE__ */ Q(dl, {
7167
+ children: [!P && !l ? /* @__PURE__ */ Q(ul, {
7163
7168
  comment: t,
7164
7169
  pickerOpen: g,
7165
7170
  pickerLeaving: g && j,
@@ -7228,7 +7233,7 @@ function ul({ thread: e, authorName: t, authorPromptMode: n, currentClientId: r,
7228
7233
  direction: a < i ? "up" : "down"
7229
7234
  });
7230
7235
  },
7231
- children: /* @__PURE__ */ Q(Ms, { size: 16 })
7236
+ children: /* @__PURE__ */ Q(js, { size: 16 })
7232
7237
  }), m ? /* @__PURE__ */ Q("div", {
7233
7238
  class: Z("markup-thread-menu-list", j && "is-leaving"),
7234
7239
  inert: j || void 0,
@@ -7269,7 +7274,7 @@ function ul({ thread: e, authorName: t, authorPromptMode: n, currentClientId: r,
7269
7274
  await v(t._id, n), O({ type: "dismiss" });
7270
7275
  } catch {}
7271
7276
  },
7272
- children: [/* @__PURE__ */ Q(Bc, {
7277
+ children: [/* @__PURE__ */ Q(zc, {
7273
7278
  class: "markup-comment-edit-input",
7274
7279
  label: "Edit comment",
7275
7280
  value: D.draft,
@@ -7295,7 +7300,7 @@ function ul({ thread: e, authorName: t, authorPromptMode: n, currentClientId: r,
7295
7300
  children: "Save"
7296
7301
  })]
7297
7302
  })]
7298
- }) : /* @__PURE__ */ Q(Pc, {
7303
+ }) : /* @__PURE__ */ Q(Nc, {
7299
7304
  body: t.body,
7300
7305
  mentions: t.mentions
7301
7306
  }),
@@ -7308,7 +7313,7 @@ function ul({ thread: e, authorName: t, authorPromptMode: n, currentClientId: r,
7308
7313
  alt: "Screenshot"
7309
7314
  })
7310
7315
  }) : null,
7311
- !l && t.reactions.length > 0 ? /* @__PURE__ */ Q(fl, {
7316
+ !l && t.reactions.length > 0 ? /* @__PURE__ */ Q(dl, {
7312
7317
  comment: t,
7313
7318
  isResolved: P,
7314
7319
  onToggle: (e) => b(t._id, e)
@@ -7328,7 +7333,7 @@ function ul({ thread: e, authorName: t, authorPromptMode: n, currentClientId: r,
7328
7333
  onClick: (e) => {
7329
7334
  e.stopPropagation(), T.current?.close();
7330
7335
  },
7331
- children: /* @__PURE__ */ Q(ks, { size: 16 })
7336
+ children: /* @__PURE__ */ Q(Os, { size: 16 })
7332
7337
  }), /* @__PURE__ */ Q("img", {
7333
7338
  class: "markup-lightbox-img",
7334
7339
  src: e.screenshotUrl,
@@ -7351,7 +7356,7 @@ function ul({ thread: e, authorName: t, authorPromptMode: n, currentClientId: r,
7351
7356
  children: "team"
7352
7357
  }) : null
7353
7358
  ]
7354
- }), /* @__PURE__ */ Q(Hc, {
7359
+ }), /* @__PURE__ */ Q(Vc, {
7355
7360
  label: "Reply",
7356
7361
  placeholder: "Write a reply…",
7357
7362
  submitLabel: "Reply",
@@ -7361,7 +7366,7 @@ function ul({ thread: e, authorName: t, authorPromptMode: n, currentClientId: r,
7361
7366
  onSubmit: _,
7362
7367
  members: f
7363
7368
  })]
7364
- }) : /* @__PURE__ */ Q(oc, {
7369
+ }) : /* @__PURE__ */ Q(ac, {
7365
7370
  mode: n,
7366
7371
  isPending: c,
7367
7372
  isConnecting: a,
@@ -7374,7 +7379,7 @@ function ul({ thread: e, authorName: t, authorPromptMode: n, currentClientId: r,
7374
7379
  ]
7375
7380
  });
7376
7381
  }
7377
- function dl({ comment: e, pickerOpen: t, pickerLeaving: n, pickerDirection: r, pickerSide: i, pickerRef: a, onPickerClick: o, onPickerSelect: s }) {
7382
+ function ul({ comment: e, pickerOpen: t, pickerLeaving: n, pickerDirection: r, pickerSide: i, pickerRef: a, onPickerClick: o, onPickerSelect: s }) {
7378
7383
  return /* @__PURE__ */ Q("div", {
7379
7384
  class: Z("markup-reaction-picker-wrap", t && "is-open", t && r === "up" && "is-up", i && "is-side"),
7380
7385
  ref: a,
@@ -7384,12 +7389,12 @@ function dl({ comment: e, pickerOpen: t, pickerLeaving: n, pickerDirection: r, p
7384
7389
  title: "Add reaction",
7385
7390
  "aria-label": "Add reaction",
7386
7391
  onClick: o,
7387
- children: /* @__PURE__ */ Q(Is, { size: 16 })
7392
+ children: /* @__PURE__ */ Q(Fs, { size: 16 })
7388
7393
  }), t ? /* @__PURE__ */ Q("div", {
7389
7394
  class: Z("markup-reaction-picker", n && "is-leaving"),
7390
7395
  role: "menu",
7391
7396
  inert: n || void 0,
7392
- children: cl.map((t) => /* @__PURE__ */ Q("button", {
7397
+ children: sl.map((t) => /* @__PURE__ */ Q("button", {
7393
7398
  type: "button",
7394
7399
  role: "menuitem",
7395
7400
  class: Z("markup-reaction-picker-item", (e.reactions.find((e) => e.emoji === t)?.mine ?? !1) && "is-mine"),
@@ -7399,11 +7404,11 @@ function dl({ comment: e, pickerOpen: t, pickerLeaving: n, pickerDirection: r, p
7399
7404
  }) : null]
7400
7405
  });
7401
7406
  }
7402
- function fl({ comment: e, isResolved: t, onToggle: n }) {
7407
+ function dl({ comment: e, isResolved: t, onToggle: n }) {
7403
7408
  return /* @__PURE__ */ Q("div", {
7404
7409
  class: "markup-reactions",
7405
7410
  children: e.reactions.map((e) => {
7406
- let r = pl(e.reactors, e.mine, e.count, e.emoji);
7411
+ let r = fl(e.reactors, e.mine, e.count, e.emoji);
7407
7412
  return /* @__PURE__ */ Q("button", {
7408
7413
  type: "button",
7409
7414
  class: Z("markup-reaction-chip", e.mine && "is-mine"),
@@ -7424,14 +7429,14 @@ function fl({ comment: e, isResolved: t, onToggle: n }) {
7424
7429
  })
7425
7430
  });
7426
7431
  }
7427
- function pl(e, t, n, r) {
7432
+ function fl(e, t, n, r) {
7428
7433
  let i = e.slice(), a = i.length + +!!t, o = Math.max(0, n - a);
7429
7434
  return o > 0 && i.push(`${o} other${o === 1 ? "" : "s"}`), t && i.push("you"), i.length === 0 ? `${n} reacted with ${r}` : `${i.length === 1 ? i[0] : `${i.slice(0, -1).join(", ")} and ${i[i.length - 1]}`} reacted with ${r}`;
7430
7435
  }
7431
- function ml(e, t, n) {
7436
+ function pl(e, t, n) {
7432
7437
  return Math.max(t, Math.min(n, e));
7433
7438
  }
7434
- function hl({ name: e, image: t, tone: n }) {
7439
+ function ml({ name: e, image: t, tone: n }) {
7435
7440
  let [r, i] = z(null);
7436
7441
  return /* @__PURE__ */ Q("span", {
7437
7442
  class: "markup-comment-avatar",
@@ -7447,11 +7452,11 @@ function hl({ name: e, image: t, tone: n }) {
7447
7452
  onError: () => i(t)
7448
7453
  }) : /* @__PURE__ */ Q("span", {
7449
7454
  class: "markup-avatar-initials",
7450
- children: gl(e)
7455
+ children: hl(e)
7451
7456
  })
7452
7457
  });
7453
7458
  }
7454
- function gl(e) {
7459
+ function hl(e) {
7455
7460
  let t = e.trim();
7456
7461
  if (!t) return "??";
7457
7462
  let n = t.split(/\s+/).filter(Boolean), r = n[0] ?? "";
@@ -7459,12 +7464,12 @@ function gl(e) {
7459
7464
  let i = n[n.length - 1] ?? "";
7460
7465
  return ((r[0] ?? "") + (i[0] ?? "")).toUpperCase();
7461
7466
  }
7462
- function _l(e) {
7467
+ function gl(e) {
7463
7468
  let t = 0;
7464
7469
  for (let n = 0; n < e.length; n++) t = t * 31 + e.charCodeAt(n) | 0;
7465
7470
  return Math.abs(t) % 5 + 1;
7466
7471
  }
7467
- function vl(e) {
7472
+ function _l(e) {
7468
7473
  let t = Date.now() - e, n = Math.floor(t / 1e3);
7469
7474
  if (n < 60) return "just now";
7470
7475
  let r = Math.floor(n / 60);
@@ -7481,7 +7486,7 @@ function vl(e) {
7481
7486
  year: "numeric"
7482
7487
  });
7483
7488
  }
7484
- function yl(e) {
7489
+ function vl(e) {
7485
7490
  return new Date(e).toLocaleDateString([], {
7486
7491
  month: "long",
7487
7492
  day: "numeric",
@@ -7492,7 +7497,13 @@ function yl(e) {
7492
7497
  }
7493
7498
  //#endregion
7494
7499
  //#region src/runtime/ui/toolbar.tsx
7495
- function bl({ isActive: e, onToggle: t, onHide: n, position: r = "bottom-right", unreadCount: i = 0, showInbox: a = !1, onOpenInbox: o, inboxOpen: s = !1, pinsVisible: c = !0, onTogglePins: l, identityButton: u, overflowButton: d, isLeaving: f = !1 }) {
7500
+ function yl(e) {
7501
+ e.stopPropagation();
7502
+ }
7503
+ function bl(e) {
7504
+ yl(e), e.target?.closest?.(".markup-tb-btn") && e.preventDefault();
7505
+ }
7506
+ function xl({ isActive: e, onToggle: t, onHide: n, position: r = "bottom-right", unreadCount: i = 0, showInbox: a = !1, onOpenInbox: o, inboxOpen: s = !1, pinsVisible: c = !0, onTogglePins: l, identityButton: u, overflowButton: d, isLeaving: f = !1 }) {
7496
7507
  let p = H(0);
7497
7508
  i > 0 && (p.current = i);
7498
7509
  let m = r === "bottom-left" ? "markup-toolbar-left" : r === "bottom-center" ? "markup-toolbar-center" : "markup-toolbar-right";
@@ -7509,6 +7520,10 @@ function bl({ isActive: e, onToggle: t, onHide: n, position: r = "bottom-right",
7509
7520
  "aria-label": "Markup feedback toolbar",
7510
7521
  "aria-hidden": f,
7511
7522
  inert: f ? "" : void 0,
7523
+ onPointerDown: yl,
7524
+ onMouseDown: bl,
7525
+ onPointerUp: yl,
7526
+ onMouseUp: yl,
7512
7527
  children: [
7513
7528
  /* @__PURE__ */ Q("button", {
7514
7529
  type: "button",
@@ -7518,7 +7533,7 @@ function bl({ isActive: e, onToggle: t, onHide: n, position: r = "bottom-right",
7518
7533
  title: e ? "Cancel placing markup" : "Leave a markup",
7519
7534
  "aria-pressed": e,
7520
7535
  onClick: h,
7521
- children: Q(e ? ks : Ls, { size: 16 })
7536
+ children: Q(e ? Os : Is, { size: 16 })
7522
7537
  }),
7523
7538
  a ? /* @__PURE__ */ Q("button", {
7524
7539
  type: "button",
@@ -7530,7 +7545,7 @@ function bl({ isActive: e, onToggle: t, onHide: n, position: r = "bottom-right",
7530
7545
  onClick: (e) => {
7531
7546
  e.preventDefault(), e.stopPropagation(), o?.();
7532
7547
  },
7533
- children: [/* @__PURE__ */ Q(Rs, { size: 16 }), /* @__PURE__ */ Q("span", {
7548
+ children: [/* @__PURE__ */ Q(Ls, { size: 16 }), /* @__PURE__ */ Q("span", {
7534
7549
  class: "markup-tb-badge",
7535
7550
  "data-unread": i > 0 ? "true" : "false",
7536
7551
  "aria-hidden": "true",
@@ -7550,7 +7565,7 @@ function bl({ isActive: e, onToggle: t, onHide: n, position: r = "bottom-right",
7550
7565
  onClick: (e) => {
7551
7566
  e.preventDefault(), e.stopPropagation(), l();
7552
7567
  },
7553
- children: Q(c ? zs : Bs, { size: 16 })
7568
+ children: Q(c ? Rs : zs, { size: 16 })
7554
7569
  })] }) : null,
7555
7570
  u || d ? /* @__PURE__ */ Q("div", {
7556
7571
  class: "markup-tb-sep",
@@ -7564,20 +7579,20 @@ function bl({ isActive: e, onToggle: t, onHide: n, position: r = "bottom-right",
7564
7579
  "data-kind": "overflow",
7565
7580
  "aria-label": "More options",
7566
7581
  disabled: !0,
7567
- children: /* @__PURE__ */ Q(Vs, { size: 16 })
7582
+ children: /* @__PURE__ */ Q(Bs, { size: 16 })
7568
7583
  })
7569
7584
  ]
7570
7585
  });
7571
7586
  }
7572
7587
  //#endregion
7573
7588
  //#region src/runtime/ui/app.tsx
7574
- var xl = [], Sl = [], Cl = [{ key: "toolbar" }], wl = [];
7575
- function Tl(e) {
7589
+ var Sl = [], Cl = [], wl = [{ key: "toolbar" }], Tl = [];
7590
+ function El(e) {
7576
7591
  let t = {
7577
7592
  clientId: `markup_user_${e.identity.id}`,
7578
7593
  name: e.identity.name,
7579
7594
  email: e.identity.email,
7580
- image: e.identity.image == null ? void 0 : Zi(e.identity.image, location.href)?.href ?? void 0
7595
+ image: e.identity.image == null ? void 0 : Xi(e.identity.image, location.href)?.href ?? void 0
7581
7596
  };
7582
7597
  if (e.mode === "cookies") return e.tokenExpiresAt == null || e.refreshTokenExpiresAt == null ? null : {
7583
7598
  storage: "cookies",
@@ -7598,14 +7613,14 @@ function Tl(e) {
7598
7613
  } : {}
7599
7614
  };
7600
7615
  }
7601
- function El() {
7616
+ function Dl() {
7602
7617
  let e = document.activeElement;
7603
7618
  for (; e && e.shadowRoot && e.shadowRoot.activeElement;) e = e.shadowRoot.activeElement;
7604
7619
  if (!e) return !1;
7605
7620
  let t = e.tagName;
7606
7621
  return t === "INPUT" || t === "TEXTAREA" || t === "SELECT" || e.isContentEditable;
7607
7622
  }
7608
- var Dl = Hr({
7623
+ var Ol = Vr({
7609
7624
  visible: {
7610
7625
  "hide-with-toast": () => ({ kind: "hidden-with-toast" }),
7611
7626
  toggle: () => ({ kind: "hidden" })
@@ -7616,26 +7631,26 @@ var Dl = Hr({
7616
7631
  },
7617
7632
  hidden: { toggle: () => ({ kind: "visible" }) }
7618
7633
  });
7619
- function Ol(e) {
7620
- return ra(e), e;
7634
+ function kl(e) {
7635
+ return na(e), e;
7621
7636
  }
7622
- var kl = Hr({
7637
+ var Al = Vr({
7623
7638
  unresolved: {
7624
- "mint-success": (e, t) => Ol({
7639
+ "mint-success": (e, t) => kl({
7625
7640
  kind: "anon",
7626
7641
  identity: t.identity
7627
7642
  }),
7628
- "signed-in": (e, t) => Ol({
7643
+ "signed-in": (e, t) => kl({
7629
7644
  kind: "verified",
7630
7645
  identity: t.identity
7631
7646
  })
7632
7647
  },
7633
7648
  anon: {
7634
- "signed-in": (e, t) => Ol({
7649
+ "signed-in": (e, t) => kl({
7635
7650
  kind: "verified",
7636
7651
  identity: t.identity
7637
7652
  }),
7638
- "author-set": (e, t) => Ol({
7653
+ "author-set": (e, t) => kl({
7639
7654
  kind: "anon",
7640
7655
  identity: {
7641
7656
  ...e.identity,
@@ -7643,49 +7658,49 @@ var kl = Hr({
7643
7658
  email: t.email
7644
7659
  }
7645
7660
  }),
7646
- "forget-me": () => Ol({ kind: "unresolved" })
7661
+ "forget-me": () => kl({ kind: "unresolved" })
7647
7662
  },
7648
7663
  verified: {
7649
- "signed-in": (e, t) => Ol({
7664
+ "signed-in": (e, t) => kl({
7650
7665
  kind: "verified",
7651
7666
  identity: t.identity
7652
7667
  }),
7653
- unauthorized: (e) => Ol({
7668
+ unauthorized: (e) => kl({
7654
7669
  kind: "recovering",
7655
7670
  preserved: {
7656
7671
  name: e.identity.name,
7657
7672
  email: e.identity.email
7658
7673
  }
7659
7674
  }),
7660
- "signed-out": () => Ol({ kind: "unresolved" })
7675
+ "signed-out": () => kl({ kind: "unresolved" })
7661
7676
  },
7662
7677
  recovering: {
7663
- "mint-success": (e, t) => Ol({
7678
+ "mint-success": (e, t) => kl({
7664
7679
  kind: "anon",
7665
7680
  identity: t.identity
7666
7681
  }),
7667
- "signed-in": (e, t) => Ol({
7682
+ "signed-in": (e, t) => kl({
7668
7683
  kind: "verified",
7669
7684
  identity: t.identity
7670
7685
  })
7671
7686
  }
7672
7687
  });
7673
- function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r, dashboardUrl: i }) {
7674
- let [a, o] = z(_a), [s, c] = z([]), [l, u] = z(!1), d = it(() => na(), []), [f, p] = Ur(kl, d.state), [m, h] = z(null);
7688
+ function jl({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r, dashboardUrl: i }) {
7689
+ let [a, o] = z(ga), [s, c] = z([]), [l, u] = z(!1), d = it(() => ta(), []), [f, p] = Hr(Al, d.state), [m, h] = z(null);
7675
7690
  B(() => {
7676
7691
  let n = !1;
7677
- return Hi(e, t).then((e) => {
7692
+ return Vi(e, t).then((e) => {
7678
7693
  n || h(e);
7679
7694
  }), () => {
7680
7695
  n = !0;
7681
7696
  };
7682
7697
  }, [e, t]);
7683
7698
  let [g, _] = z(n), [v, y] = z(!0), [b, x] = z(!0), [C, w] = z(!1), [T, E] = z(null), D = U(() => E(null), []), O = H(f);
7684
- O.current = f, Ts(f, e, t, (e) => p({
7699
+ O.current = f, ws(f, e, t, (e) => p({
7685
7700
  type: "signed-in",
7686
7701
  identity: e
7687
7702
  }), () => p({ type: "unauthorized" }));
7688
- let k = it(() => Fi({
7703
+ let k = it(() => Pi({
7689
7704
  apiUrl: e,
7690
7705
  apiKey: t,
7691
7706
  getToken: () => {
@@ -7710,16 +7725,16 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
7710
7725
  e,
7711
7726
  t,
7712
7727
  p
7713
- ]), [A, j] = z({ kind: "idle" }), [M, ee] = z([]);
7728
+ ]), [A, j] = z({ kind: "idle" }), [ee, M] = z([]);
7714
7729
  B(() => {
7715
7730
  let e = !1;
7716
7731
  return k.listMembers().then((t) => {
7717
- e || ee(t.members);
7732
+ e || M(t.members);
7718
7733
  }).catch(() => {}), () => {
7719
7734
  e = !0;
7720
7735
  };
7721
7736
  }, [k]);
7722
- let [N, te] = z(0), [ne, P] = Ur(sa, { kind: "idle" }), [F, re] = z(!1), ie = H(0), ae = U(() => {
7737
+ let [te, N] = z(0), [ne, P] = Hr(oa, { kind: "idle" }), [F, re] = z(!1), ie = H(0), ae = U(() => {
7723
7738
  let e = ie.current;
7724
7739
  P({ type: "fetch" }), k.listNotifications().then((t) => {
7725
7740
  ie.current === e && P({
@@ -7737,7 +7752,7 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
7737
7752
  type: "patch",
7738
7753
  update: e
7739
7754
  });
7740
- }, [P]), se = Xr(), ce = Xr(), le = Xr(), ue = Xr(), de = Xr(), { run: fe, reset: pe } = se, { run: me } = ce, { run: he, reset: ge } = le, { run: _e } = ue, { run: ve } = de, ye = de.isPending, xe = se.isPending, Se = se.error ?? ce.error ?? le.error, [Ce, we] = Ur(Dl, { kind: "visible" }), Te = Ce.kind !== "visible", [Ee, De] = z(0), Oe = H(null), ke = aa(f), Ae = f.kind === "verified", je = f.kind === "unresolved" || f.kind === "recovering", I = ia(f), [Me, Ne] = z(Li), [Pe, Fe] = z(null);
7755
+ }, [P]), se = Yr(), ce = Yr(), le = Yr(), ue = Yr(), de = Yr(), { run: fe, reset: pe } = se, { run: me } = ce, { run: he, reset: ge } = le, { run: _e } = ue, { run: ve } = de, ye = de.isPending, xe = se.isPending, Se = se.error ?? ce.error ?? le.error, [Ce, we] = Hr(Ol, { kind: "visible" }), Te = Ce.kind !== "visible", [Ee, De] = z(0), Oe = H(null), ke = ia(f), Ae = f.kind === "verified", je = f.kind === "unresolved" || f.kind === "recovering", I = ra(f), [Me, Ne] = z(Ii), [Pe, Fe] = z(null);
7741
7756
  B(() => {
7742
7757
  Fe(null), ie.current += 1, P({ type: "reset" });
7743
7758
  }, [
@@ -7745,13 +7760,13 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
7745
7760
  I,
7746
7761
  P
7747
7762
  ]);
7748
- let Ie = Ri(Me, f.kind), Le = zi({
7763
+ let Ie = Li(Me, f.kind), Le = Ri({
7749
7764
  access: Me,
7750
7765
  identityKind: f.kind,
7751
7766
  hasAuthorName: ke != null,
7752
7767
  refusal: Pe
7753
7768
  }), Re = U((e) => {
7754
- let t = Bi(e);
7769
+ let t = zi(e);
7755
7770
  throw t && Fe(t), e;
7756
7771
  }, []);
7757
7772
  B(() => {
@@ -7783,9 +7798,9 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
7783
7798
  p,
7784
7799
  d
7785
7800
  ]);
7786
- let { token: ze, isCurrent: Be } = xs(k, f), [Ve, He] = z(null);
7801
+ let { token: ze, isCurrent: Be } = bs(k, f), [Ve, He] = z(null);
7787
7802
  B(() => {
7788
- let t = new Vr(e.replace(/\.convex\.site(\/.*)?$/, ".convex.cloud"));
7803
+ let t = new Br(e.replace(/\.convex\.site(\/.*)?$/, ".convex.cloud"));
7789
7804
  return He(t), () => {
7790
7805
  t.close(), He((e) => e === t ? null : e);
7791
7806
  };
@@ -7794,7 +7809,7 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
7794
7809
  }, [a]);
7795
7810
  let Ue = H(!1);
7796
7811
  B(() => {
7797
- if (!(!Ve || !ze)) return pe(), ge(), Ve.onUpdate(jn("widget/queries:subscribeThreadsForRoute"), {
7812
+ if (Ve && ze) return pe(), ge(), Ve.onUpdate(jn("widget/queries:subscribeThreadsForRoute"), {
7798
7813
  subscriptionToken: ze,
7799
7814
  route: a,
7800
7815
  viewerClientId: I,
@@ -7811,17 +7826,17 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
7811
7826
  pe,
7812
7827
  ge
7813
7828
  ]), B(() => {
7814
- if (!(!Ve || !ze)) return Ve.onUpdate(jn("widget/queries:subscribeProjectSettings"), { subscriptionToken: ze }, (e) => {
7829
+ if (Ve && ze) return Ve.onUpdate(jn("widget/queries:subscribeProjectSettings"), { subscriptionToken: ze }, (e) => {
7815
7830
  let t = e?.commentAccess;
7816
- Ne(t === "members" ? "members" : Li);
7831
+ Ne(t === "members" ? "members" : Ii);
7817
7832
  });
7818
7833
  }, [Ve, ze]), B(() => {
7819
7834
  if (f.kind !== "verified" || !Be) {
7820
- te(0);
7835
+ N(0);
7821
7836
  return;
7822
7837
  }
7823
- if (!(!Ve || !ze)) return Ve.onUpdate(jn("widget/queries:subscribeUnreadCountForProject"), { subscriptionToken: ze }, (e) => {
7824
- e !== void 0 && (te(e.count), ae());
7838
+ if (Ve && ze) return Ve.onUpdate(jn("widget/queries:subscribeUnreadCountForProject"), { subscriptionToken: ze }, (e) => {
7839
+ e !== void 0 && (N(e.count), ae());
7825
7840
  });
7826
7841
  }, [
7827
7842
  Ve,
@@ -7831,12 +7846,12 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
7831
7846
  ae
7832
7847
  ]), B(() => {
7833
7848
  if (Ue.current || !l) return;
7834
- let e = va();
7849
+ let e = _a();
7835
7850
  e !== null && (s.find((t) => t._id === e) && j({
7836
7851
  kind: "thread",
7837
7852
  threadId: e
7838
- }), ba()), Ue.current = !0;
7839
- }, [s, l]), B(() => Yi(() => o(_a())), []), B(() => {
7853
+ }), ya()), Ue.current = !0;
7854
+ }, [s, l]), B(() => Ji(() => o(ga())), []), B(() => {
7840
7855
  function e(e) {
7841
7856
  e.key === "." && (e.metaKey || e.ctrlKey) && (e.altKey || e.shiftKey || (e.preventDefault(), we({ type: "toggle" })));
7842
7857
  }
@@ -7868,7 +7883,7 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
7868
7883
  }, [pe, ge]);
7869
7884
  B(() => {
7870
7885
  function e(e) {
7871
- e.key === "c" && (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey || A.kind === "idle" && (Te || El() || (e.preventDefault(), We())));
7886
+ e.key === "c" && (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey || A.kind === "idle" && (Te || Dl() || (e.preventDefault(), We())));
7872
7887
  }
7873
7888
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
7874
7889
  }, [
@@ -7911,7 +7926,7 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
7911
7926
  strictScrub: r?.strictScrub,
7912
7927
  redactSelector: r?.redactSelector
7913
7928
  };
7914
- ss(s, {
7929
+ os(s, {
7915
7930
  x: t,
7916
7931
  y: n
7917
7932
  }, c).then((e) => {
@@ -7932,7 +7947,7 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
7932
7947
  });
7933
7948
  }, [p]), Je = ce.isPending, Ye = U(async () => {
7934
7949
  be("sign_in_started"), await me(async () => {
7935
- let n = Tl(await fa({
7950
+ let n = El(await da({
7936
7951
  apiUrl: e,
7937
7952
  apiKey: t,
7938
7953
  useCookies: m === !0
@@ -7951,7 +7966,7 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
7951
7966
  p
7952
7967
  ]), R = U(async (e, t) => {
7953
7968
  if (A.kind !== "composing-new") return;
7954
- let n = oa(f);
7969
+ let n = aa(f);
7955
7970
  n && await fe(async () => {
7956
7971
  let r;
7957
7972
  if (t && A.screenshot) {
@@ -7970,7 +7985,7 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
7970
7985
  let { storageId: n } = await t.json();
7971
7986
  r = n;
7972
7987
  }
7973
- let i = Kr(e), o = await k.createThread({
7988
+ let i = Gr(e), o = await k.createThread({
7974
7989
  url: window.location.href,
7975
7990
  route: a,
7976
7991
  anchorSelector: A.coords.anchorSelector,
@@ -8025,7 +8040,7 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
8025
8040
  I,
8026
8041
  fe
8027
8042
  ]), Qe = U((e) => {
8028
- if (e.readAt ?? (te((e) => Math.max(0, e - 1)), oe((t) => t.map((t) => t._id === e._id ? {
8043
+ if (e.readAt ?? (N((e) => Math.max(0, e - 1)), oe((t) => t.map((t) => t._id === e._id ? {
8029
8044
  ...t,
8030
8045
  readAt: Date.now()
8031
8046
  } : t)), k.markNotificationRead(e._id).catch(() => {})), s.some((t) => t._id === e.threadId)) j({
@@ -8033,7 +8048,7 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
8033
8048
  threadId: e.threadId
8034
8049
  });
8035
8050
  else {
8036
- let t = Sa(e.threadUrl, e.threadId);
8051
+ let t = xa(e.threadUrl, e.threadId);
8037
8052
  t && (window.location.href = t);
8038
8053
  }
8039
8054
  }, [
@@ -8041,17 +8056,17 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
8041
8056
  oe,
8042
8057
  s
8043
8058
  ]), $e = U(() => {
8044
- re(!0), te(0), oe((e) => e.map((e) => e.readAt == null ? {
8059
+ re(!0), N(0), oe((e) => e.map((e) => e.readAt == null ? {
8045
8060
  ...e,
8046
8061
  readAt: Date.now()
8047
8062
  } : e)), k.markAllNotificationsRead().catch(() => {}).finally(() => re(!1));
8048
8063
  }, [k, oe]), et = U(async (e) => {
8049
8064
  if (A.kind !== "thread") return;
8050
- let t = oa(f);
8065
+ let t = aa(f);
8051
8066
  if (!t) return;
8052
8067
  let n = A.threadId;
8053
8068
  await fe(async () => {
8054
- let r = Kr(e), i = await k.addComment(n, {
8069
+ let r = Gr(e), i = await k.addComment(n, {
8055
8070
  body: e,
8056
8071
  authorName: t.name,
8057
8072
  authorEmail: t.email,
@@ -8069,7 +8084,7 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
8069
8084
  if (A.kind !== "thread" || f.kind !== "anon" && f.kind !== "verified") return;
8070
8085
  let n = A.threadId;
8071
8086
  await fe(async () => {
8072
- let r = Kr(t), i = await k.editComment(n, e, {
8087
+ let r = Gr(t), i = await k.editComment(n, e, {
8073
8088
  body: t,
8074
8089
  mentions: r.length > 0 ? r : void 0
8075
8090
  });
@@ -8098,7 +8113,7 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
8098
8113
  Fe("sign_in_required");
8099
8114
  return;
8100
8115
  }
8101
- let n = oa(f);
8116
+ let n = aa(f);
8102
8117
  if (!n) return;
8103
8118
  let r = A.threadId;
8104
8119
  await he(async () => {
@@ -8141,7 +8156,7 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
8141
8156
  }, [st]);
8142
8157
  let ut = A.kind === "thread" ? s.find((e) => e._id === A.threadId) ?? null : null, dt = Ae || I != null && I === ut?.authorClientId, ft = H(/* @__PURE__ */ new Map()), W = it(() => {
8143
8158
  let e = ft.current, t = s.map((t) => {
8144
- let { point: n, memory: r } = Ti({
8159
+ let { point: n, memory: r } = wi({
8145
8160
  anchorX: t.anchorX,
8146
8161
  anchorY: t.anchorY,
8147
8162
  anchorSelector: t.anchorSelector,
@@ -8166,14 +8181,14 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
8166
8181
  elements: W.flatMap((e) => e.point.element ? [e.point.element] : [])
8167
8182
  };
8168
8183
  }, [W]);
8169
- let pt = s.some((e) => e.anchorSelector != null), mt = ei(A.kind !== "placing" && !Te && v ? W : xl, (e) => e.thread._id, 140), ht = ei(!Te || A.kind === "placing" || A.kind === "composing-new" ? Cl : wl, (e) => e.key, 160), gt = [];
8184
+ let pt = s.some((e) => e.anchorSelector != null), mt = $r(A.kind !== "placing" && !Te && v ? W : Sl, (e) => e.thread._id, 140), ht = $r(!Te || A.kind === "placing" || A.kind === "composing-new" ? wl : Tl, (e) => e.key, 160), gt = [];
8170
8185
  Ce.kind === "hidden-with-toast" && gt.push({
8171
8186
  key: "hud-hidden",
8172
8187
  body: /* @__PURE__ */ Q(S, { children: [
8173
8188
  "Markup hidden — press ",
8174
8189
  /* @__PURE__ */ Q("kbd", {
8175
8190
  class: "markup-kbd",
8176
- children: Es().mod
8191
+ children: Ts().mod
8177
8192
  }),
8178
8193
  /* @__PURE__ */ Q("kbd", {
8179
8194
  class: "markup-kbd",
@@ -8188,7 +8203,7 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
8188
8203
  key: "signed-out",
8189
8204
  body: "Signed out — commenting anonymously again."
8190
8205
  });
8191
- let _t = ei(gt, (e) => e.key, 220), vt = ei(A.kind === "thread" && ut ? [ut] : Sl, (e) => e._id, 160), K = ti(A.kind === "composing-new" ? A : null, 160), yt = ti(T, 140);
8206
+ let _t = $r(gt, (e) => e.key, 220), vt = $r(A.kind === "thread" && ut ? [ut] : Cl, (e) => e._id, 160), K = ei(A.kind === "composing-new" ? A : null, 160), yt = ei(T, 140);
8192
8207
  return B(() => {
8193
8208
  if (!pt) return;
8194
8209
  let e = null;
@@ -8199,7 +8214,7 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
8199
8214
  }
8200
8215
  let n = new MutationObserver(() => {
8201
8216
  let { retryable: e, elements: n } = G.current;
8202
- !e && n.every((e) => e.isConnected) || t();
8217
+ (e || !n.every((e) => e.isConnected)) && t();
8203
8218
  });
8204
8219
  return n.observe(document.body, {
8205
8220
  childList: !0,
@@ -8216,13 +8231,13 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
8216
8231
  ]), /* @__PURE__ */ Q("div", {
8217
8232
  class: "markup-root",
8218
8233
  ref: Oe,
8219
- style: Qs,
8234
+ style: Zs,
8220
8235
  children: [
8221
8236
  /* @__PURE__ */ Q("div", {
8222
8237
  class: "markup-pins-layer",
8223
8238
  children: [mt.map(({ key: e, value: { thread: t, point: n }, isLeaving: r, enterDelayMs: i }) => {
8224
8239
  let a = !r && A.kind === "thread" && A.threadId === t._id, o = t.comments.reduce((e, t) => e + +!t.deleted, 0);
8225
- return /* @__PURE__ */ Q(il, {
8240
+ return /* @__PURE__ */ Q(rl, {
8226
8241
  pageX: n.pageX,
8227
8242
  pageY: n.pageY,
8228
8243
  count: o,
@@ -8238,17 +8253,17 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
8238
8253
  });
8239
8254
  }
8240
8255
  }, e);
8241
- }), K ? /* @__PURE__ */ Q(al, {
8256
+ }), K ? /* @__PURE__ */ Q(il, {
8242
8257
  pageX: K.value.pageX,
8243
8258
  pageY: K.value.pageY,
8244
8259
  isLeaving: K.isLeaving
8245
8260
  }) : null]
8246
8261
  }),
8247
- A.kind === "placing" ? /* @__PURE__ */ Q(ol, {
8262
+ A.kind === "placing" ? /* @__PURE__ */ Q(al, {
8248
8263
  onPlace: Ke,
8249
8264
  onCancel: Ge
8250
8265
  }) : null,
8251
- vt.map(({ key: e, value: t, isLeaving: n }) => /* @__PURE__ */ Q(ul, {
8266
+ vt.map(({ key: e, value: t, isLeaving: n }) => /* @__PURE__ */ Q(ll, {
8252
8267
  thread: t,
8253
8268
  isLeaving: n,
8254
8269
  authorName: ke,
@@ -8261,7 +8276,7 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
8261
8276
  isPending: xe,
8262
8277
  error: Se,
8263
8278
  isHidden: Te,
8264
- members: M,
8279
+ members: ee,
8265
8280
  onAuthor: qe,
8266
8281
  onSignIn: Ye,
8267
8282
  onSignOut: lt,
@@ -8273,7 +8288,7 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
8273
8288
  onDelete: Xe,
8274
8289
  onResolve: Ze
8275
8290
  }, e)),
8276
- K ? /* @__PURE__ */ Q(Wc, {
8291
+ K ? /* @__PURE__ */ Q(Uc, {
8277
8292
  isLeaving: K.isLeaving,
8278
8293
  pageX: K.value.pageX,
8279
8294
  pageY: K.value.pageY,
@@ -8289,29 +8304,29 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
8289
8304
  screenshotFailed: K.value.screenshotFailed,
8290
8305
  screenshotRedactedCount: K.value.screenshotRedactedCount,
8291
8306
  screenshotRedactedSelectors: K.value.screenshotRedactedSelectors,
8292
- members: M,
8307
+ members: ee,
8293
8308
  onAuthor: qe,
8294
8309
  onSignIn: Ye,
8295
8310
  onSignOut: lt,
8296
8311
  onSubmit: R,
8297
8312
  onClose: Ge
8298
8313
  }) : null,
8299
- ht.map((t) => /* @__PURE__ */ Q(bl, {
8314
+ ht.map((t) => /* @__PURE__ */ Q(xl, {
8300
8315
  isLeaving: t.isLeaving,
8301
8316
  isActive: A.kind === "placing",
8302
8317
  onToggle: () => A.kind === "placing" ? Ge() : We(),
8303
8318
  onHide: () => we({ type: "hide-with-toast" }),
8304
8319
  position: g,
8305
8320
  showInbox: Ae,
8306
- unreadCount: Ae ? N : 0,
8321
+ unreadCount: Ae ? te : 0,
8307
8322
  inboxOpen: T === "inbox",
8308
8323
  onOpenInbox: () => {
8309
8324
  let e = T === "inbox" ? null : "inbox";
8310
- E(e), e && (be("notifications_opened", { unreadCount: N }), ae());
8325
+ E(e), e && (be("notifications_opened", { unreadCount: te }), ae());
8311
8326
  },
8312
8327
  pinsVisible: v,
8313
8328
  onTogglePins: () => y((e) => !e),
8314
- identityButton: /* @__PURE__ */ Q($s, {
8329
+ identityButton: /* @__PURE__ */ Q(Qs, {
8315
8330
  identity: f,
8316
8331
  position: g,
8317
8332
  isSigningIn: Je,
@@ -8322,7 +8337,7 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
8322
8337
  onSignOut: lt,
8323
8338
  onForgetMe: ot
8324
8339
  }),
8325
- overflowButton: /* @__PURE__ */ Q($c, {
8340
+ overflowButton: /* @__PURE__ */ Q(Qc, {
8326
8341
  position: g,
8327
8342
  onSetPosition: _,
8328
8343
  autoCapture: b && r?.enabled !== !1,
@@ -8337,18 +8352,18 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
8337
8352
  isForgettingMe: ue.isPending,
8338
8353
  forgetMeError: ue.error,
8339
8354
  onForgetMe: ot,
8340
- version: "1.25.0",
8355
+ version: "1.25.1",
8341
8356
  dashboardUrl: i
8342
8357
  })
8343
8358
  }, t.key)),
8344
- yt?.value === "inbox" && Ae ? /* @__PURE__ */ Q(rl, {
8359
+ yt?.value === "inbox" && Ae ? /* @__PURE__ */ Q(nl, {
8345
8360
  kind: "inbox",
8346
8361
  label: "Inbox",
8347
8362
  position: g,
8348
8363
  ignoreToolbarKind: "inbox",
8349
8364
  isLeaving: yt.isLeaving,
8350
8365
  onClose: D,
8351
- children: /* @__PURE__ */ Q(Kc, {
8366
+ children: /* @__PURE__ */ Q(Gc, {
8352
8367
  state: ne,
8353
8368
  isMarkingAll: F,
8354
8369
  onBack: D,
@@ -8358,7 +8373,7 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
8358
8373
  onMarkAllRead: $e
8359
8374
  })
8360
8375
  }) : null,
8361
- _t.map((e) => /* @__PURE__ */ Q(jl, {
8376
+ _t.map((e) => /* @__PURE__ */ Q(Ml, {
8362
8377
  position: g,
8363
8378
  isLeaving: e.isLeaving,
8364
8379
  children: e.value.body
@@ -8366,7 +8381,7 @@ function Al({ apiUrl: e, apiKey: t, position: n = "bottom-right", screenshots: r
8366
8381
  ]
8367
8382
  });
8368
8383
  }
8369
- function jl({ position: e, isLeaving: t, children: n }) {
8384
+ function Ml({ position: e, isLeaving: t, children: n }) {
8370
8385
  return /* @__PURE__ */ Q("div", {
8371
8386
  class: Z("markup-hud-hidden-toast", e === "bottom-left" ? "markup-hud-hidden-toast-left" : e === "bottom-center" ? "markup-hud-hidden-toast-center" : "markup-hud-hidden-toast-right", t && "is-leaving"),
8372
8387
  role: "status",
@@ -8377,7 +8392,7 @@ function jl({ position: e, isLeaving: t, children: n }) {
8377
8392
  }
8378
8393
  //#endregion
8379
8394
  //#region src/runtime/mount.tsx
8380
- function Ml(e, t) {
8395
+ function Nl(e, t) {
8381
8396
  e.style.position = "fixed", e.style.inset = "0", e.style.zIndex = "2147483647", e.style.pointerEvents = "none", ze(e, t.theme ?? "auto");
8382
8397
  let n = We(), r = e.attachShadow({ mode: "open" }), i = document.createElement("style");
8383
8398
  i.textContent = le, r.appendChild(i);
@@ -8385,44 +8400,44 @@ function Ml(e, t) {
8385
8400
  a.className = "markup-shadow-root", r.appendChild(a), je({
8386
8401
  apiUrl: t.apiUrl,
8387
8402
  apiKey: t.apiKey,
8388
- widgetVersion: "1.25.0"
8403
+ widgetVersion: "1.25.1"
8389
8404
  }), ye(t.analytics === !1 ? null : {
8390
8405
  apiUrl: t.apiUrl,
8391
8406
  apiKey: t.apiKey,
8392
- widgetVersion: "1.25.0"
8407
+ widgetVersion: "1.25.1"
8393
8408
  }), be("widget_loaded");
8394
8409
  let { theme: o, analytics: s, ...c } = t;
8395
8410
  return ce(/* @__PURE__ */ Q(Ce, {
8396
8411
  onError: (e) => I(e, { context: "render" }),
8397
- children: /* @__PURE__ */ Q(Al, { ...c })
8412
+ children: /* @__PURE__ */ Q(jl, { ...c })
8398
8413
  }), a), () => {
8399
8414
  n(), je(null), ye(null), ce(null, a);
8400
8415
  };
8401
8416
  }
8402
8417
  //#endregion
8403
8418
  //#region src/widget.ts
8404
- var Nl = null, Pl = null, Fl = null, Il = !1;
8405
- function Ll(e) {
8419
+ var Pl = null, Fl = null, Il = null, Ll = !1;
8420
+ function Rl(e) {
8406
8421
  if (!e.apiUrl || !e.apiKey) return console.warn("[markup] init() requires both apiUrl and apiKey, so the widget was not mounted"), () => {};
8407
- e.fab != null && !Il && (Il = !0, console.warn("[markup] the `fab` option is ignored and will be removed in the next major. The toolbar replaced the floating action button. Remove it from your config.")), Rl();
8422
+ e.fab != null && !Ll && (Ll = !0, console.warn("[markup] the `fab` option is ignored and will be removed in the next major. The toolbar replaced the floating action button. Remove it from your config.")), zl();
8408
8423
  let t = () => {
8409
- if (Fl = null, !document.body) return;
8424
+ if (Il = null, !document.body) return;
8410
8425
  let t = document.createElement("div");
8411
- t.id = "markup-widget", document.body.appendChild(t), Pl = t, Nl = Ml(t, e);
8426
+ t.id = "markup-widget", document.body.appendChild(t), Fl = t, Pl = Nl(t, e);
8412
8427
  };
8413
8428
  if (document.readyState === "loading" || !document.body) {
8414
8429
  let e = () => t();
8415
- Fl = () => document.removeEventListener("DOMContentLoaded", e), document.addEventListener("DOMContentLoaded", e, { once: !0 });
8430
+ Il = () => document.removeEventListener("DOMContentLoaded", e), document.addEventListener("DOMContentLoaded", e, { once: !0 });
8416
8431
  } else t();
8417
- return Rl;
8432
+ return zl;
8418
8433
  }
8419
- function Rl() {
8420
- Fl &&= (Fl(), null), Nl &&= (Nl(), null), Pl?.parentNode && Pl.parentNode.removeChild(Pl), Pl = null;
8434
+ function zl() {
8435
+ Il &&= (Il(), null), Pl &&= (Pl(), null), Fl?.parentNode && Fl.parentNode.removeChild(Fl), Fl = null;
8421
8436
  }
8422
8437
  if (typeof document < "u") {
8423
8438
  let e = document.currentScript ?? document.querySelector("script[data-markup-widget=\"true\"]"), t = e?.dataset.apiUrl, n = e?.dataset.apiKey;
8424
8439
  if (t && n) {
8425
- let r = e?.dataset.position, i = e?.dataset.theme, a = e?.dataset.fab, o = e?.dataset.dashboardUrl, s = e?.dataset.analytics !== "false", c = () => Ll({
8440
+ let r = e?.dataset.position, i = e?.dataset.theme, a = e?.dataset.fab, o = e?.dataset.dashboardUrl, s = e?.dataset.analytics !== "false", c = () => Rl({
8426
8441
  apiUrl: t,
8427
8442
  apiKey: n,
8428
8443
  position: r,
@@ -8435,6 +8450,6 @@ if (typeof document < "u") {
8435
8450
  }
8436
8451
  }
8437
8452
  //#endregion
8438
- export { Rl as destroy, Ll as init };
8453
+ export { zl as destroy, Rl as init };
8439
8454
 
8440
8455
  //# sourceMappingURL=widget.js.map