linear-grab 0.15.2 → 0.15.4

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.
@@ -62,41 +62,41 @@ function T(e, t) {
62
62
  };
63
63
  return [me.bind(n), (e) => (typeof e == "function" && (e = y && y.running && y.sources.has(n) ? e(n.tValue) : e(n.value)), he(n, e))];
64
64
  }
65
- function ee(e, t, n) {
65
+ function E(e, t, n) {
66
66
  ge(ve(e, t, !0, m));
67
67
  }
68
- function E(e, t, n) {
68
+ function D(e, t, n) {
69
69
  ge(ve(e, t, !1, m));
70
70
  }
71
- function D(e, t, n) {
71
+ function O(e, t, n) {
72
72
  p = Ce;
73
73
  let r = ve(e, t, !1, m), i = pe && de(pe);
74
74
  i && (r.suspense = i), (!n || !n.render) && (r.user = !0), S ? S.push(r) : ge(r);
75
75
  }
76
- function O(e, t, n) {
76
+ function k(e, t, n) {
77
77
  n = n ? Object.assign({}, d, n) : d;
78
78
  let r = ve(e, t, !0, 0);
79
79
  return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0, ge(r), me.bind(r);
80
80
  }
81
- function te(e) {
81
+ function ee(e) {
82
82
  return e && typeof e == "object" && "then" in e;
83
83
  }
84
- function k(e, t, n) {
84
+ function te(e, t, n) {
85
85
  let r, a, o;
86
86
  typeof t == "function" ? (r = e, a = t, o = n || {}) : (r = !0, a = e, o = t || {});
87
- let s = null, c = _, l = null, u = !1, d = !1, f = "initialValue" in o, p = typeof r == "function" && O(r), m = /* @__PURE__ */ new Set(), [h, g] = (o.storage || T)(o.initialValue), [x, S] = T(void 0), [C, w] = T(void 0, { equals: !1 }), [E, D] = T(f ? "ready" : "unresolved");
87
+ let s = null, c = _, l = null, u = !1, d = !1, f = "initialValue" in o, p = typeof r == "function" && k(r), m = /* @__PURE__ */ new Set(), [h, g] = (o.storage || T)(o.initialValue), [x, S] = T(void 0), [C, w] = T(void 0, { equals: !1 }), [D, O] = T(f ? "ready" : "unresolved");
88
88
  v && ae(() => {
89
89
  for (let e of m.keys()) e.decrement();
90
90
  m.clear(), y && s && y.promises.delete(s), s = null;
91
91
  }), i.context && (l = i.getNextContextId(), o.ssrLoadFrom === "initial" ? c = o.initialValue : i.load && i.has(l) && (c = i.load(l)));
92
- function k(e, t, n, r) {
92
+ function te(e, t, n, r) {
93
93
  return s === e && (s = null, r !== void 0 && (f = !0), (e === c || t === c) && o.onHydrated && queueMicrotask(() => o.onHydrated(r, { value: t })), c = _, y && e && u ? (y.promises.delete(e), u = !1, be(() => {
94
94
  y.running = !0, A(t, n);
95
95
  }, !1)) : A(t, n)), t;
96
96
  }
97
97
  function A(e, t) {
98
98
  be(() => {
99
- t === void 0 && g(() => e), D(t === void 0 ? f ? "ready" : "unresolved" : "errored"), S(t);
99
+ t === void 0 && g(() => e), O(t === void 0 ? f ? "ready" : "unresolved" : "errored"), S(t);
100
100
  for (let e of m.keys()) e.decrement();
101
101
  m.clear();
102
102
  }, !1);
@@ -104,7 +104,7 @@ function k(e, t, n) {
104
104
  function re() {
105
105
  let e = pe && de(pe), t = h(), n = x();
106
106
  if (n !== void 0 && !s) throw n;
107
- return b && !b.user && e && ee(() => {
107
+ return b && !b.user && e && E(() => {
108
108
  C(), s && (e.resolved && y && u ? y.promises.add(s) : m.has(e) || (e.increment(), m.add(e)));
109
109
  }), t;
110
110
  }
@@ -113,7 +113,7 @@ function k(e, t, n) {
113
113
  d = !1;
114
114
  let t = p ? p() : r;
115
115
  if (u = y && y.running, t == null || t === !1) {
116
- k(s, ne(h));
116
+ te(s, ne(h));
117
117
  return;
118
118
  }
119
119
  y && s && y.promises.delete(s);
@@ -128,18 +128,18 @@ function k(e, t, n) {
128
128
  }
129
129
  }) : c;
130
130
  if (n !== void 0) {
131
- k(s, void 0, Oe(n), t);
131
+ te(s, void 0, Oe(n), t);
132
132
  return;
133
- } else if (!te(i)) return k(s, i, void 0, t), i;
134
- return s = i, "v" in i ? (i.s === 1 ? k(s, i.v, void 0, t) : k(s, void 0, Oe(i.v), t), i) : (d = !0, queueMicrotask(() => d = !1), be(() => {
135
- D(f ? "refreshing" : "pending"), w();
136
- }, !1), i.then((e) => k(i, e, void 0, t), (e) => k(i, void 0, Oe(e), t)));
133
+ } else if (!ee(i)) return te(s, i, void 0, t), i;
134
+ return s = i, "v" in i ? (i.s === 1 ? te(s, i.v, void 0, t) : te(s, void 0, Oe(i.v), t), i) : (d = !0, queueMicrotask(() => d = !1), be(() => {
135
+ O(f ? "refreshing" : "pending"), w();
136
+ }, !1), i.then((e) => te(i, e, void 0, t), (e) => te(i, void 0, Oe(e), t)));
137
137
  }
138
138
  Object.defineProperties(re, {
139
- state: { get: () => E() },
139
+ state: { get: () => D() },
140
140
  error: { get: () => x() },
141
141
  loading: { get() {
142
- let e = E();
142
+ let e = D();
143
143
  return e === "pending" || e === "refreshing";
144
144
  } },
145
145
  latest: { get() {
@@ -150,7 +150,7 @@ function k(e, t, n) {
150
150
  } }
151
151
  });
152
152
  let oe = v;
153
- return p ? ee(() => (oe = v, ie(!1))) : ie(!1), [re, {
153
+ return p ? E(() => (oe = v, ie(!1))) : ie(!1), [re, {
154
154
  refetch: (e) => se(oe, () => ie(e)),
155
155
  mutate: g
156
156
  }];
@@ -182,7 +182,7 @@ function re(e, t, n) {
182
182
  };
183
183
  }
184
184
  function ie(e) {
185
- D(() => ne(e));
185
+ O(() => ne(e));
186
186
  }
187
187
  function ae(e) {
188
188
  return v === null || (v.cleanups === null ? v.cleanups = [e] : v.cleanups.push(e)), e;
@@ -215,7 +215,7 @@ function de(e) {
215
215
  return v && v.context && (t = v.context[e.id]) !== void 0 ? t : e.defaultValue;
216
216
  }
217
217
  function fe(e) {
218
- let t = O(e), n = O(() => je(t()));
218
+ let t = k(e), n = k(() => je(t()));
219
219
  return n.toArray = () => {
220
220
  let e = n();
221
221
  return Array.isArray(e) ? e : e == null ? [] : [e];
@@ -450,7 +450,7 @@ function je(e) {
450
450
  function Me(e, t) {
451
451
  return function(t) {
452
452
  let n;
453
- return E(() => n = ne(() => (v.context = {
453
+ return D(() => n = ne(() => (v.context = {
454
454
  ...v.context,
455
455
  [e]: t.value
456
456
  }, fe(() => t.children))), void 0), n;
@@ -549,7 +549,7 @@ function Ve(...e) {
549
549
  let t = !1;
550
550
  for (let n = 0; n < e.length; n++) {
551
551
  let r = e[n];
552
- t ||= !!r && c in r, e[n] = typeof r == "function" ? (t = !0, O(r)) : r;
552
+ t ||= !!r && c in r, e[n] = typeof r == "function" ? (t = !0, k(r)) : r;
553
553
  }
554
554
  if (l && t) return new Proxy({
555
555
  get(t) {
@@ -637,15 +637,15 @@ function He(e, ...t) {
637
637
  var Ue = (e) => `Stale read from <${e}>.`;
638
638
  function We(e) {
639
639
  let t = "fallback" in e && { fallback: () => e.fallback };
640
- return O(Fe(() => e.each, e.children, t || void 0));
640
+ return k(Fe(() => e.each, e.children, t || void 0));
641
641
  }
642
642
  function Ge(e) {
643
643
  let t = "fallback" in e && { fallback: () => e.fallback };
644
- return O(Ie(() => e.each, e.children, t || void 0));
644
+ return k(Ie(() => e.each, e.children, t || void 0));
645
645
  }
646
646
  function M(e) {
647
- let t = e.keyed, n = O(() => e.when, void 0, void 0), r = t ? n : O(n, void 0, { equals: (e, t) => !e == !t });
648
- return O(() => {
647
+ let t = e.keyed, n = k(() => e.when, void 0, void 0), r = t ? n : k(n, void 0, { equals: (e, t) => !e == !t });
648
+ return k(() => {
649
649
  let i = r();
650
650
  if (i) {
651
651
  let a = e.children;
@@ -806,7 +806,7 @@ var Ze = /*#__PURE__*/ new Set([
806
806
  ]), Qe = {
807
807
  xlink: "http://www.w3.org/1999/xlink",
808
808
  xml: "http://www.w3.org/XML/1998/namespace"
809
- }, $e = (e) => O(() => e());
809
+ }, $e = (e) => k(() => e());
810
810
  function et(e, t, n) {
811
811
  let r = n.length, i = t.length, a = r, o = 0, s = 0, c = t[i - 1].nextSibling, l = null;
812
812
  for (; o < i || s < a;) {
@@ -910,14 +910,14 @@ function dt(e, t, n) {
910
910
  }
911
911
  function ft(e, t = {}, n, r) {
912
912
  let i = {};
913
- return r || E(() => i.children = bt(e, t.children, i.children)), E(() => typeof t.ref == "function" && pt(t.ref, e)), E(() => mt(e, t, n, !0, i, !0)), i;
913
+ return r || D(() => i.children = bt(e, t.children, i.children)), D(() => typeof t.ref == "function" && pt(t.ref, e)), D(() => mt(e, t, n, !0, i, !0)), i;
914
914
  }
915
915
  function pt(e, t, n) {
916
916
  return ne(() => e(t, n));
917
917
  }
918
918
  function P(e, t, n, r) {
919
919
  if (n !== void 0 && !r && (r = []), typeof t != "function") return bt(e, t, r, n);
920
- E((r) => bt(e, t(), r, n), r);
920
+ D((r) => bt(e, t(), r, n), r);
921
921
  }
922
922
  function mt(e, t, n, r, i = {}, a = !1) {
923
923
  t ||= {};
@@ -1031,14 +1031,14 @@ function bt(e, t, n, r, i) {
1031
1031
  } else if (t == null || o === "boolean") {
1032
1032
  if (a) return n;
1033
1033
  n = Ct(e, n, r);
1034
- } else if (o === "function") return E(() => {
1034
+ } else if (o === "function") return D(() => {
1035
1035
  let i = t();
1036
1036
  for (; typeof i == "function";) i = i();
1037
1037
  n = bt(e, i, n, r);
1038
1038
  }), () => n;
1039
1039
  else if (Array.isArray(t)) {
1040
1040
  let o = [], c = n && Array.isArray(n);
1041
- if (xt(o, t, n, i)) return E(() => n = bt(e, o, n, r, !0)), () => n;
1041
+ if (xt(o, t, n, i)) return D(() => n = bt(e, o, n, r, !0)), () => n;
1042
1042
  if (a) {
1043
1043
  if (!o.length) return n;
1044
1044
  if (r === void 0) return n = [...e.childNodes];
@@ -2967,7 +2967,7 @@ var or = ue(void 0), sr = (e) => {
2967
2967
  let t = de(or);
2968
2968
  if (!t) throw Error("No QueryClient set, use QueryClientProvider to set one");
2969
2969
  return t();
2970
- }, cr = (e) => (E((t) => (t?.(), e.client.mount(), e.client.unmount.bind(e.client))), ae(() => e.client.unmount()), j(or.Provider, {
2970
+ }, cr = (e) => (D((t) => (t?.(), e.client.mount(), e.client.unmount.bind(e.client))), ae(() => e.client.unmount()), j(or.Provider, {
2971
2971
  value: () => e.client,
2972
2972
  get children() {
2973
2973
  return e.children;
@@ -2995,7 +2995,7 @@ function dr(e, t, n, r) {
2995
2995
  }
2996
2996
  var fr = (e, t) => t;
2997
2997
  function pr(e, t, n) {
2998
- let r = O(() => sr(n?.())), i = ur(), a = O(() => {
2998
+ let r = k(() => sr(n?.())), i = ur(), a = k(() => {
2999
2999
  let t = r().defaultQueryOptions(e());
3000
3000
  return t._optimisticResults = i() ? "isRestoring" : "optimistic", t.structuralSharing = !1, t;
3001
3001
  }), o = a(), [s, c] = T(new t(r(), a())), l = s().getOptimisticResult(a()), [u, d] = tr(l), f = () => s().subscribe((e) => {
@@ -3017,7 +3017,7 @@ function pr(e, t, n) {
3017
3017
  p(e);
3018
3018
  }];
3019
3019
  }
3020
- let h = null, g = null, [_, { refetch: v }] = k(() => {
3020
+ let h = null, g = null, [_, { refetch: v }] = te(() => {
3021
3021
  let e = s();
3022
3022
  return new Promise((t, n) => {
3023
3023
  if (g = t, !h && !i() && (h = f()), e.updateResult(), l.isError && !l.isFetching && !i() && $t(e.options.throwOnError, [l.error, e.getCurrentQuery()])) return p(l), n(l.error);
@@ -3035,34 +3035,34 @@ function pr(e, t, n) {
3035
3035
  (o.staleTime || !o.initialData) && t.value && (n.refetchOnMount = !1), s().setOptions(n), p(s().getOptimisticResult(n)), h = f();
3036
3036
  }
3037
3037
  });
3038
- return ee(re(r, (e) => {
3038
+ return E(re(r, (e) => {
3039
3039
  h && h();
3040
3040
  let n = new t(e, a());
3041
3041
  h = f(), c(n);
3042
- }, { defer: !0 })), ee(re(i, (e) => {
3042
+ }, { defer: !0 })), E(re(i, (e) => {
3043
3043
  e || v();
3044
3044
  }, { defer: !0 })), ae(() => {
3045
3045
  h &&= (h(), null), g &&= (g(l), null);
3046
- }), ee(re([s, a], ([e, t]) => {
3046
+ }), E(re([s, a], ([e, t]) => {
3047
3047
  e.setOptions(t), p(e.getOptimisticResult(t)), v();
3048
3048
  }, { defer: !0 })), new Proxy(u, { get(e, t) {
3049
3049
  return t === "data" ? u.data === void 0 ? _()?.data : _.latest?.data : Reflect.get(e, t);
3050
3050
  } });
3051
3051
  }
3052
3052
  function mr(e, t) {
3053
- return pr(O(() => e()), Cn, t);
3053
+ return pr(k(() => e()), Cn, t);
3054
3054
  }
3055
3055
  function hr(e, t) {
3056
- let n = new Pn(O(() => sr(t?.()))(), e()), r = (e, t) => {
3056
+ let n = new Pn(k(() => sr(t?.()))(), e()), r = (e, t) => {
3057
3057
  n.mutate(e, t).catch(At);
3058
3058
  }, [i, a] = tr({
3059
3059
  ...n.getCurrentResult(),
3060
3060
  mutate: r,
3061
3061
  mutateAsync: n.getCurrentResult().mutate
3062
3062
  });
3063
- return ee(() => {
3063
+ return E(() => {
3064
3064
  n.setOptions(e());
3065
- }), ee(re(() => i.status, () => {
3065
+ }), E(re(() => i.status, () => {
3066
3066
  if (i.isError && $t(n.options.throwOnError, [i.error])) throw i.error;
3067
3067
  })), ae(n.subscribe((e) => {
3068
3068
  a({
@@ -15607,7 +15607,7 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
15607
15607
  allowedTools: _?.allowedTools ?? void 0,
15608
15608
  toolNameMapping: x,
15609
15609
  customProviderToolNames: S
15610
- }), { input: ee, warnings: E } = await O_({
15610
+ }), { input: E, warnings: D } = await O_({
15611
15611
  prompt: c,
15612
15612
  toolNameMapping: x,
15613
15613
  systemMessageMode: _?.systemMessageMode ?? (b ? "developer" : h.systemMessageMode),
@@ -15617,35 +15617,35 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
15617
15617
  store: _?.store ?? !0,
15618
15618
  hasConversation: _?.conversation != null,
15619
15619
  hasPreviousResponseId: _?.previousResponseId != null,
15620
- hasLocalShellTool: k("openai.local_shell"),
15621
- hasShellTool: k("openai.shell"),
15622
- hasApplyPatchTool: k("openai.apply_patch"),
15620
+ hasLocalShellTool: te("openai.local_shell"),
15621
+ hasShellTool: te("openai.shell"),
15622
+ hasApplyPatchTool: te("openai.apply_patch"),
15623
15623
  customProviderToolNames: S.size > 0 ? S : void 0
15624
15624
  });
15625
- m.push(...E);
15626
- let D = _?.strictJsonSchema ?? !0, O = _?.include;
15627
- function te(e) {
15628
- O == null ? O = [e] : O.includes(e) || (O = [...O, e]);
15625
+ m.push(...D);
15626
+ let O = _?.strictJsonSchema ?? !0, k = _?.include;
15627
+ function ee(e) {
15628
+ k == null ? k = [e] : k.includes(e) || (k = [...k, e]);
15629
15629
  }
15630
- function k(e) {
15630
+ function te(e) {
15631
15631
  return d?.find((t) => t.type === "provider" && t.id === e) != null;
15632
15632
  }
15633
15633
  let A = typeof _?.logprobs == "number" ? _?.logprobs : _?.logprobs === !0 ? Ty : void 0;
15634
- A && te("message.output_text.logprobs");
15634
+ A && ee("message.output_text.logprobs");
15635
15635
  let ne = d?.find((e) => e.type === "provider" && (e.id === "openai.web_search" || e.id === "openai.web_search_preview"))?.name;
15636
- ne && te("web_search_call.action.sources"), k("openai.code_interpreter") && te("code_interpreter_call.outputs");
15636
+ ne && ee("web_search_call.action.sources"), te("openai.code_interpreter") && ee("code_interpreter_call.outputs");
15637
15637
  let re = _?.store;
15638
- re === !1 && b && te("reasoning.encrypted_content");
15638
+ re === !1 && b && ee("reasoning.encrypted_content");
15639
15639
  let ie = {
15640
15640
  model: this.modelId,
15641
- input: ee,
15641
+ input: E,
15642
15642
  temperature: t,
15643
15643
  top_p: r,
15644
15644
  max_output_tokens: e,
15645
15645
  ...(p?.type === "json" || _?.textVerbosity) && { text: {
15646
15646
  ...p?.type === "json" && { format: p.schema == null ? { type: "json_object" } : {
15647
15647
  type: "json_schema",
15648
- strict: D,
15648
+ strict: O,
15649
15649
  name: p.name ?? "response",
15650
15650
  description: p.description,
15651
15651
  schema: p.schema
@@ -15661,7 +15661,7 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
15661
15661
  user: _?.user,
15662
15662
  instructions: _?.instructions,
15663
15663
  service_tier: _?.serviceTier,
15664
- include: O,
15664
+ include: k,
15665
15665
  prompt_cache_key: _?.promptCacheKey,
15666
15666
  prompt_cache_options: _?.promptCacheOptions,
15667
15667
  prompt_cache_retention: _?.promptCacheRetention,
@@ -16113,7 +16113,7 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
16113
16113
  }), p = this, m = P_(e.prompt), h = /* @__PURE__ */ new Map(), g = {
16114
16114
  unified: "other",
16115
16115
  raw: void 0
16116
- }, _, v = [], y = null, b = {}, x = [], S, C = !1, w = {}, T, ee, E = [], D = !1;
16116
+ }, _, v = [], y = null, b = {}, x = [], S, C = !1, w = {}, T, E, D = [], O = !1;
16117
16117
  return {
16118
16118
  stream: f.pipeThrough(new TransformStream({
16119
16119
  start(e) {
@@ -16123,7 +16123,7 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
16123
16123
  });
16124
16124
  },
16125
16125
  transform(t, r) {
16126
- var d, f, O, te, k;
16126
+ var d, f, k, ee, te;
16127
16127
  if (e.includeRawChunks && r.enqueue({
16128
16128
  type: "raw",
16129
16129
  rawValue: t.rawValue
@@ -16376,7 +16376,7 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
16376
16376
  let e = b[A.output_index], t = A.item.execution === "server";
16377
16377
  if (e != null) {
16378
16378
  let n = t ? e.toolCallId : A.item.call_id ?? A.item.id;
16379
- t ? E.push(n) : r.enqueue({
16379
+ t ? D.push(n) : r.enqueue({
16380
16380
  type: "tool-input-start",
16381
16381
  id: n,
16382
16382
  toolName: e.toolName
@@ -16397,7 +16397,7 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
16397
16397
  }
16398
16398
  b[A.output_index] = void 0;
16399
16399
  } else if (A.item.type === "tool_search_output") {
16400
- let e = A.item.call_id ?? E.shift() ?? A.item.id;
16400
+ let e = A.item.call_id ?? D.shift() ?? A.item.id;
16401
16401
  r.enqueue({
16402
16402
  type: "tool-result",
16403
16403
  toolCallId: e,
@@ -16639,7 +16639,7 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
16639
16639
  hasFunctionCall: C
16640
16640
  }),
16641
16641
  raw: A.response.incomplete_details?.reason ?? void 0
16642
- }, _ = A.response.usage, typeof A.response.service_tier == "string" && (T = A.response.service_tier), A.response.reasoning?.context != null && (ee = A.response.reasoning.context);
16642
+ }, _ = A.response.usage, typeof A.response.service_tier == "string" && (T = A.response.service_tier), A.response.reasoning?.context != null && (E = A.response.reasoning.context);
16643
16643
  else if (V_(A)) {
16644
16644
  let e = A.response.incomplete_details?.reason;
16645
16645
  g = {
@@ -16648,7 +16648,7 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
16648
16648
  hasFunctionCall: C
16649
16649
  }) : "error",
16650
16650
  raw: e ?? "error"
16651
- }, _ = A.response.usage ?? void 0, A.response.reasoning?.context != null && (ee = A.response.reasoning.context), !D && A.response.error != null && (D = !0, r.enqueue({
16651
+ }, _ = A.response.usage ?? void 0, A.response.reasoning?.context != null && (E = A.response.reasoning.context), !O && A.response.error != null && (O = !0, r.enqueue({
16652
16652
  type: "error",
16653
16653
  error: {
16654
16654
  type: "response.failed",
@@ -16669,7 +16669,7 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
16669
16669
  }) : A.annotation.type === "file_citation" ? r.enqueue({
16670
16670
  type: "source",
16671
16671
  sourceType: "document",
16672
- id: (O = p.config).generateId?.call(O) ?? cg(),
16672
+ id: (k = p.config).generateId?.call(k) ?? cg(),
16673
16673
  mediaType: "text/plain",
16674
16674
  title: A.annotation.filename,
16675
16675
  filename: A.annotation.filename,
@@ -16681,7 +16681,7 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
16681
16681
  }) : A.annotation.type === "container_file_citation" ? r.enqueue({
16682
16682
  type: "source",
16683
16683
  sourceType: "document",
16684
- id: (te = p.config).generateId?.call(te) ?? cg(),
16684
+ id: (ee = p.config).generateId?.call(ee) ?? cg(),
16685
16685
  mediaType: "text/plain",
16686
16686
  title: A.annotation.filename,
16687
16687
  filename: A.annotation.filename,
@@ -16693,7 +16693,7 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
16693
16693
  }) : A.annotation.type === "file_path" && r.enqueue({
16694
16694
  type: "source",
16695
16695
  sourceType: "document",
16696
- id: (k = p.config).generateId?.call(k) ?? cg(),
16696
+ id: (te = p.config).generateId?.call(te) ?? cg(),
16697
16697
  mediaType: "application/octet-stream",
16698
16698
  title: A.annotation.file_id,
16699
16699
  filename: A.annotation.file_id,
@@ -16702,7 +16702,7 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
16702
16702
  fileId: A.annotation.file_id,
16703
16703
  index: A.annotation.index
16704
16704
  } }
16705
- })) : Q_(A) && (D = !0, g = {
16705
+ })) : Q_(A) && (O = !0, g = {
16706
16706
  unified: "error",
16707
16707
  raw: "error"
16708
16708
  }, r.enqueue({
@@ -16715,7 +16715,7 @@ var sv, cv, lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv,
16715
16715
  responseId: y,
16716
16716
  ...v.length > 0 ? { logprobs: v } : {},
16717
16717
  ...T === void 0 ? {} : { serviceTier: T },
16718
- ...ee === void 0 ? {} : { reasoningContext: ee }
16718
+ ...E === void 0 ? {} : { reasoningContext: E }
16719
16719
  } };
16720
16720
  e.enqueue({
16721
16721
  type: "finish",
@@ -19758,7 +19758,7 @@ var db, fb, pb, mb, hb, gb, _b, vb, yb, bb, xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb,
19758
19758
  provider: _,
19759
19759
  providerOptions: m,
19760
19760
  schema: yb
19761
- }), b = y != null, x = Object.assign({}, v ?? {}, y ?? {}), { maxOutputTokens: S, supportsStructuredOutput: C, supportsAdaptiveThinking: w, rejectsSamplingParameters: T, supportsXhighEffort: ee, isKnownModel: E } = nb(this.modelId);
19761
+ }), b = y != null, x = Object.assign({}, v ?? {}, y ?? {}), { maxOutputTokens: S, supportsStructuredOutput: C, supportsAdaptiveThinking: w, rejectsSamplingParameters: T, supportsXhighEffort: E, isKnownModel: D } = nb(this.modelId);
19762
19762
  T && (r != null && (g.push({
19763
19763
  type: "unsupported",
19764
19764
  feature: "temperature",
@@ -19772,7 +19772,7 @@ var db, fb, pb, mb, hb, gb, _b, vb, yb, bb, xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb,
19772
19772
  feature: "topP",
19773
19773
  details: `topP is not supported by ${this.modelId} and will be ignored`
19774
19774
  }), i = void 0));
19775
- let D = E || this.modelId.startsWith("claude-"), O = (this.config.supportsNativeStructuredOutput ?? !0) && C, te = (this.config.supportsStrictTools ?? !0) && C, k = x?.structuredOutputMode ?? "auto", A = k === "outputFormat" || k === "auto" && O, ne = l?.type === "json" && l.schema != null && !A ? {
19775
+ let O = D || this.modelId.startsWith("claude-"), k = (this.config.supportsNativeStructuredOutput ?? !0) && C, ee = (this.config.supportsStrictTools ?? !0) && C, te = x?.structuredOutputMode ?? "auto", A = te === "outputFormat" || te === "auto" && k, ne = l?.type === "json" && l.schema != null && !A ? {
19776
19776
  type: "function",
19777
19777
  name: "json",
19778
19778
  description: "Respond with a JSON object.",
@@ -19811,7 +19811,7 @@ var db, fb, pb, mb, hb, gb, _b, vb, yb, bb, xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb,
19811
19811
  let e = ib({
19812
19812
  reasoning: p,
19813
19813
  supportsAdaptiveThinking: w,
19814
- supportsXhighEffort: ee,
19814
+ supportsXhighEffort: E,
19815
19815
  maxOutputTokensForModel: S,
19816
19816
  warnings: g
19817
19817
  });
@@ -19918,11 +19918,11 @@ var db, fb, pb, mb, hb, gb, _b, vb, yb, bb, xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb,
19918
19918
  type: "unsupported",
19919
19919
  feature: "topP",
19920
19920
  details: "topP is not supported when thinking is enabled"
19921
- })), me.max_tokens = pe + (de ?? 0)) : D && i != null && r != null && (g.push({
19921
+ })), me.max_tokens = pe + (de ?? 0)) : O && i != null && r != null && (g.push({
19922
19922
  type: "unsupported",
19923
19923
  feature: "topP",
19924
19924
  details: "topP is not supported when temperature is set. topP is ignored."
19925
- }), me.top_p = void 0), E && me.max_tokens > S && (n != null && g.push({
19925
+ }), me.top_p = void 0), D && me.max_tokens > S && (n != null && g.push({
19926
19926
  type: "unsupported",
19927
19927
  feature: "maxOutputTokens",
19928
19928
  details: `${me.max_tokens} (maxOutputTokens + thinkingBudget) is greater than ${this.modelId} ${S} max output tokens. The max output tokens have been limited to ${S}.`
@@ -19935,8 +19935,8 @@ var db, fb, pb, mb, hb, gb, _b, vb, yb, bb, xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb,
19935
19935
  toolChoice: f,
19936
19936
  disableParallelToolUse: x?.disableParallelToolUse,
19937
19937
  cacheControlValidator: ie,
19938
- supportsStructuredOutput: O,
19939
- supportsStrictTools: te,
19938
+ supportsStructuredOutput: k,
19939
+ supportsStrictTools: ee,
19940
19940
  defaultEagerInputStreaming: he
19941
19941
  } : {
19942
19942
  tools: [...d ?? [], ne],
@@ -19944,7 +19944,7 @@ var db, fb, pb, mb, hb, gb, _b, vb, yb, bb, xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb,
19944
19944
  disableParallelToolUse: !0,
19945
19945
  cacheControlValidator: ie,
19946
19946
  supportsStructuredOutput: !1,
19947
- supportsStrictTools: te,
19947
+ supportsStrictTools: ee,
19948
19948
  defaultEagerInputStreaming: he
19949
19949
  }), be = ie.getWarnings();
19950
19950
  return {
@@ -20367,7 +20367,7 @@ var db, fb, pb, mb, hb, gb, _b, vb, yb, bb, xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb,
20367
20367
  cache_creation_input_tokens: 0,
20368
20368
  cache_read_input_tokens: 0,
20369
20369
  iterations: null
20370
- }, h = {}, g = {}, _ = {}, v = null, y, b = null, x, S = null, C = !1, w, T = this.generateId, [ee, E] = f.pipeThrough(new TransformStream({
20370
+ }, h = {}, g = {}, _ = {}, v = null, y, b = null, x, S = null, C = !1, w, T = this.generateId, [E, D] = f.pipeThrough(new TransformStream({
20371
20371
  start(e) {
20372
20372
  e.enqueue({
20373
20373
  type: "stream-start",
@@ -20906,11 +20906,11 @@ var db, fb, pb, mb, hb, gb, _b, vb, yb, bb, xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb,
20906
20906
  default: throw Error(`Unsupported chunk type: ${r}`);
20907
20907
  }
20908
20908
  }
20909
- })).tee(), D = ee.getReader();
20909
+ })).tee(), O = E.getReader();
20910
20910
  try {
20911
- await D.read();
20912
- let e = await D.read();
20913
- if (e.value?.type === "raw" && (e = await D.read()), e.value?.type === "error") {
20911
+ await O.read();
20912
+ let e = await O.read();
20913
+ if (e.value?.type === "raw" && (e = await O.read()), e.value?.type === "error") {
20914
20914
  let n = e.value.error;
20915
20915
  throw new $r({
20916
20916
  message: n.message,
@@ -20923,10 +20923,10 @@ var db, fb, pb, mb, hb, gb, _b, vb, yb, bb, xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb,
20923
20923
  });
20924
20924
  }
20925
20925
  } finally {
20926
- D.cancel().catch(() => {}), D.releaseLock();
20926
+ O.cancel().catch(() => {}), O.releaseLock();
20927
20927
  }
20928
20928
  return {
20929
- stream: E,
20929
+ stream: D,
20930
20930
  request: { body: t },
20931
20931
  response: { headers: d }
20932
20932
  };
@@ -24493,32 +24493,32 @@ function _T(e, t) {
24493
24493
  function vT(e) {
24494
24494
  let { model: t, output: n = "object", instructions: r, system: i, prompt: a, messages: o, allowSystemInMessages: s, maxRetries: c, abortSignal: l, headers: u, experimental_repairText: d, experimental_telemetry: f, telemetry: p = f, experimental_download: m, providerOptions: h, onStart: g, experimental_onStart: _, onStepStart: v, experimental_onStepStart: y, onStepEnd: b, onStepFinish: x, onError: S = ({ error: e }) => {
24495
24495
  console.error(e);
24496
- }, onFinish: C, _internal: { generateId: w = eD, currentDate: T = () => /* @__PURE__ */ new Date(), now: ee = Ww } = {}, ...E } = e, D = "enum" in e && e.enum ? e.enum : void 0, { schema: O, schemaDescription: te, schemaName: k } = "schema" in e ? e : {};
24496
+ }, onFinish: C, _internal: { generateId: w = eD, currentDate: T = () => /* @__PURE__ */ new Date(), now: E = Ww } = {}, ...D } = e, O = "enum" in e && e.enum ? e.enum : void 0, { schema: k, schemaDescription: ee, schemaName: te } = "schema" in e ? e : {};
24497
24497
  return gT({
24498
24498
  output: n,
24499
- schema: O,
24500
- schemaName: k,
24501
- schemaDescription: te,
24502
- enumValues: D
24499
+ schema: k,
24500
+ schemaName: te,
24501
+ schemaDescription: ee,
24502
+ enumValues: O
24503
24503
  }), new tD({
24504
24504
  model: t,
24505
24505
  telemetry: p,
24506
24506
  headers: u,
24507
- settings: E,
24507
+ settings: D,
24508
24508
  maxRetries: c,
24509
24509
  abortSignal: l,
24510
24510
  outputStrategy: pT({
24511
24511
  output: n,
24512
- schema: O,
24513
- enumValues: D
24512
+ schema: k,
24513
+ enumValues: O
24514
24514
  }),
24515
24515
  instructions: r,
24516
24516
  system: i,
24517
24517
  prompt: a,
24518
24518
  messages: o,
24519
24519
  allowSystemInMessages: s,
24520
- schemaName: k,
24521
- schemaDescription: te,
24520
+ schemaName: te,
24521
+ schemaDescription: ee,
24522
24522
  providerOptions: h,
24523
24523
  repairText: d,
24524
24524
  onStart: g ?? _,
@@ -24529,7 +24529,7 @@ function vT(e) {
24529
24529
  download: m,
24530
24530
  generateId: w,
24531
24531
  currentDate: T,
24532
- now: ee
24532
+ now: E
24533
24533
  });
24534
24534
  }
24535
24535
  var yT, bT, xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT, RT, zT, BT, VT, HT, UT, WT, GT, KT, qT, JT, YT, XT, ZT, QT, $T, eE, tE, nE, rE, iE, aE, oE, sE, cE, lE, uE, dE, fE, pE, mE, hE, gE, _E, vE, yE, bE, xE, SE, CE, wE, TE, EE, DE, OE, kE, AE, jE, ME, NE, PE, FE, IE, LE, RE, zE, BE, VE, HE, UE, WE, GE, KE, qE, JE, YE, XE, ZE, QE, $E, eD, tD, nD, rD = t((() => {
@@ -25367,13 +25367,13 @@ var yT, bT, xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT,
25367
25367
  }), tD = class {
25368
25368
  constructor({ model: e, headers: t, telemetry: n, settings: r, maxRetries: i, abortSignal: a, outputStrategy: o, instructions: s, system: c, prompt: l, messages: u, allowSystemInMessages: d, schemaName: f, schemaDescription: p, providerOptions: m, repairText: h, onStart: g, onStepStart: _, onStepFinish: v, onError: y, onFinish: b, download: x, generateId: S, currentDate: C, now: w }) {
25369
25369
  this._object = new Kh(), this._usage = new Kh(), this._providerMetadata = new Kh(), this._warnings = new Kh(), this._request = new Kh(), this._response = new Kh(), this._finishReason = new Kh();
25370
- let T = Cw(e), { maxRetries: ee, retry: E } = qw({
25370
+ let T = Cw(e), { maxRetries: E, retry: D } = qw({
25371
25371
  maxRetries: i,
25372
25372
  abortSignal: a
25373
- }), D = Rw(r), O = iT({ telemetry: n }), te = this, k = fT(), A = new TransformStream({ transform(e, t) {
25373
+ }), O = Rw(r), k = iT({ telemetry: n }), ee = this, te = fT(), A = new TransformStream({ transform(e, t) {
25374
25374
  t.enqueue(e), e.type === "error" && y({ error: Bw(e.error) });
25375
25375
  } });
25376
- this.baseStream = k.stream.pipeThrough(A);
25376
+ this.baseStream = te.stream.pipeThrough(A);
25377
25377
  let ne = S();
25378
25378
  (async () => {
25379
25379
  let e = await o.jsonSchema();
@@ -25386,14 +25386,14 @@ var yT, bT, xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT,
25386
25386
  system: s ?? c,
25387
25387
  prompt: l,
25388
25388
  messages: u,
25389
- maxOutputTokens: D.maxOutputTokens,
25390
- temperature: D.temperature,
25391
- topP: D.topP,
25392
- topK: D.topK,
25393
- presencePenalty: D.presencePenalty,
25394
- frequencyPenalty: D.frequencyPenalty,
25395
- seed: D.seed,
25396
- maxRetries: ee,
25389
+ maxOutputTokens: O.maxOutputTokens,
25390
+ temperature: O.temperature,
25391
+ topP: O.topP,
25392
+ topK: O.topK,
25393
+ presencePenalty: O.presencePenalty,
25394
+ frequencyPenalty: O.frequencyPenalty,
25395
+ seed: O.seed,
25396
+ maxRetries: E,
25397
25397
  headers: t,
25398
25398
  providerOptions: m,
25399
25399
  output: o.type,
@@ -25401,7 +25401,7 @@ var yT, bT, xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT,
25401
25401
  schemaName: f,
25402
25402
  schemaDescription: p
25403
25403
  },
25404
- callbacks: [g, O.onStart]
25404
+ callbacks: [g, k.onStart]
25405
25405
  });
25406
25406
  let n = await zw({
25407
25407
  instructions: s,
@@ -25438,7 +25438,7 @@ var yT, bT, xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT,
25438
25438
  headers: t,
25439
25439
  promptMessages: i.prompt
25440
25440
  },
25441
- callbacks: [_, O.onObjectStepStart]
25441
+ callbacks: [_, k.onObjectStepStart]
25442
25442
  });
25443
25443
  let y = { transform: (e, t) => {
25444
25444
  switch (e.type) {
@@ -25452,8 +25452,8 @@ var yT, bT, xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT,
25452
25452
  t.enqueue(e);
25453
25453
  break;
25454
25454
  }
25455
- } }, A = w(), { stream: re, response: ie, request: ae } = await E(() => T.doStream(i));
25456
- te._request.resolve(ae ?? {});
25455
+ } }, A = w(), { stream: re, response: ie, request: ae } = await D(() => T.doStream(i));
25456
+ ee._request.resolve(ae ?? {});
25457
25457
  let oe, se = Hw(), ce, le, ue, de, fe, pe = "", me = "", he = {
25458
25458
  id: S(),
25459
25459
  timestamp: C(),
@@ -25506,18 +25506,18 @@ var yT, bT, xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT,
25506
25506
  warnings: oe ?? [],
25507
25507
  provider: T.provider,
25508
25508
  model: T.modelId
25509
- }), te._usage.resolve(se), te._providerMetadata.resolve(le), te._warnings.resolve(oe), te._response.resolve({
25509
+ }), ee._usage.resolve(se), ee._providerMetadata.resolve(le), ee._warnings.resolve(oe), ee._response.resolve({
25510
25510
  ...he,
25511
25511
  headers: ie?.headers
25512
- }), te._finishReason.resolve(ce ?? "other");
25512
+ }), ee._finishReason.resolve(ce ?? "other");
25513
25513
  try {
25514
25514
  ue = await hT(pe, o, h, {
25515
25515
  response: he,
25516
25516
  usage: se,
25517
25517
  finishReason: ce
25518
- }), te._object.resolve(ue);
25518
+ }), ee._object.resolve(ue);
25519
25519
  } catch (e) {
25520
- de = e, te._object.reject(e);
25520
+ de = e, ee._object.reject(e);
25521
25521
  }
25522
25522
  break;
25523
25523
  default:
@@ -25551,7 +25551,7 @@ var yT, bT, xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT,
25551
25551
  },
25552
25552
  providerMetadata: le
25553
25553
  },
25554
- callbacks: [v, O.onObjectStepEnd]
25554
+ callbacks: [v, k.onObjectStepEnd]
25555
25555
  }), await Gw({
25556
25556
  event: {
25557
25557
  callId: ne,
@@ -25568,7 +25568,7 @@ var yT, bT, xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT,
25568
25568
  },
25569
25569
  providerMetadata: le
25570
25570
  },
25571
- callbacks: [b, O.onEnd]
25571
+ callbacks: [b, k.onEnd]
25572
25572
  });
25573
25573
  } catch (t) {
25574
25574
  e.enqueue({
@@ -25578,19 +25578,19 @@ var yT, bT, xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT,
25578
25578
  }
25579
25579
  }
25580
25580
  }));
25581
- k.addStream(be);
25581
+ te.addStream(be);
25582
25582
  })().catch(async (e) => {
25583
- await O.onError?.call(O, {
25583
+ await k.onError?.call(k, {
25584
25584
  callId: ne,
25585
25585
  error: e
25586
- }), k.addStream(new ReadableStream({ start(t) {
25586
+ }), te.addStream(new ReadableStream({ start(t) {
25587
25587
  t.enqueue({
25588
25588
  type: "error",
25589
25589
  error: e
25590
25590
  }), t.close();
25591
25591
  } }));
25592
25592
  }).finally(() => {
25593
- k.close();
25593
+ te.close();
25594
25594
  }), this.outputStrategy = o;
25595
25595
  }
25596
25596
  get object() {
@@ -25818,12 +25818,12 @@ var CD = (/* @__PURE__ */ n(((e) => {
25818
25818
  enumerable: !0
25819
25819
  });
25820
25820
  })(e, {
25821
- GIFEncoder: () => te,
25821
+ GIFEncoder: () => ee,
25822
25822
  applyPalette: () => S,
25823
25823
  default: () => le,
25824
- nearestColor: () => O,
25825
- nearestColorIndex: () => E,
25826
- nearestColorIndexWithDistance: () => D,
25824
+ nearestColor: () => k,
25825
+ nearestColorIndex: () => D,
25826
+ nearestColorIndexWithDistance: () => O,
25827
25827
  prequantize: () => x,
25828
25828
  quantize: () => _,
25829
25829
  snapColorsToPalette: () => T
@@ -25908,12 +25908,12 @@ var CD = (/* @__PURE__ */ n(((e) => {
25908
25908
  function s(e, t, n, s, c = r(512), l = /* @__PURE__ */ new Uint8Array(256), u = new Int32Array(a), d = new Int32Array(a)) {
25909
25909
  let f = u.length, p = Math.max(2, s);
25910
25910
  l.fill(0), d.fill(0), u.fill(-1);
25911
- let m = 0, h = 0, g = p + 1, _ = g, v = !1, y = _, b = (1 << y) - 1, x = 1 << g - 1, S = x + 1, C = x + 2, w = 0, T = n[0], ee = 0;
25912
- for (let e = f; e < 65536; e *= 2) ++ee;
25913
- ee = 8 - ee, c.writeByte(p), D(x);
25914
- let E = n.length;
25915
- for (let e = 1; e < E; e++) next_block: {
25916
- let t = n[e], r = (t << i) + T, a = t << ee ^ T;
25911
+ let m = 0, h = 0, g = p + 1, _ = g, v = !1, y = _, b = (1 << y) - 1, x = 1 << g - 1, S = x + 1, C = x + 2, w = 0, T = n[0], E = 0;
25912
+ for (let e = f; e < 65536; e *= 2) ++E;
25913
+ E = 8 - E, c.writeByte(p), O(x);
25914
+ let D = n.length;
25915
+ for (let e = 1; e < D; e++) next_block: {
25916
+ let t = n[e], r = (t << i) + T, a = t << E ^ T;
25917
25917
  if (u[a] === r) {
25918
25918
  T = d[a];
25919
25919
  break next_block;
@@ -25923,10 +25923,10 @@ var CD = (/* @__PURE__ */ n(((e) => {
25923
25923
  T = d[a];
25924
25924
  break next_block;
25925
25925
  }
25926
- D(T), T = t, C < 1 << i ? (d[a] = C++, u[a] = r) : (u.fill(-1), C = x + 2, v = !0, D(x));
25926
+ O(T), T = t, C < 1 << i ? (d[a] = C++, u[a] = r) : (u.fill(-1), C = x + 2, v = !0, O(x));
25927
25927
  }
25928
- return D(T), D(S), c.writeByte(0), c.bytesView();
25929
- function D(e) {
25928
+ return O(T), O(S), c.writeByte(0), c.bytesView();
25929
+ function O(e) {
25930
25930
  for (m &= o[h], h > 0 ? m |= e << h : m = e, h += y; h >= 8;) l[w++] = m & 255, w >= 254 && (c.writeByte(w), c.writeBytesView(l, 0, w), w = 0), m >>= 8, h -= 8;
25931
25931
  if ((C > b || v) && (v ? (y = _, b = (1 << y) - 1, v = !1) : (++y, b = y === i ? 1 << y : (1 << y) - 1)), e == S) {
25932
25932
  for (; h > 0;) l[w++] = m & 255, w >= 254 && (c.writeByte(w), c.writeBytesView(l, 0, w), w = 0), m >>= 8, h -= 8;
@@ -26010,22 +26010,22 @@ var CD = (/* @__PURE__ */ n(((e) => {
26010
26010
  var C, w, T;
26011
26011
  for (x = 0; x < b; ++x) {
26012
26012
  m(d, x, !1);
26013
- var ee = d[x].err;
26014
- for (w = ++y[0]; w > 1 && (T = w >> 1, !(d[C = y[T]].err <= ee)); w = T) y[w] = C;
26013
+ var E = d[x].err;
26014
+ for (w = ++y[0]; w > 1 && (T = w >> 1, !(d[C = y[T]].err <= E)); w = T) y[w] = C;
26015
26015
  y[w] = x;
26016
26016
  }
26017
- var E = b - t;
26018
- for (x = 0; x < E;) {
26019
- for (var D;;) {
26020
- var O = y[1];
26021
- if (D = d[O], D.tm >= D.mtm && d[D.nn].mtm <= D.tm) break;
26022
- D.mtm == _ ? O = y[1] = y[y[0]--] : (m(d, O, !1), D.tm = x);
26023
- var ee = d[O].err;
26024
- for (w = 1; (T = w + w) <= y[0] && (T < y[0] && d[y[T]].err > d[y[T + 1]].err && T++, !(ee <= d[C = y[T]].err)); w = T) y[w] = C;
26025
- y[w] = O;
26017
+ var D = b - t;
26018
+ for (x = 0; x < D;) {
26019
+ for (var O;;) {
26020
+ var k = y[1];
26021
+ if (O = d[k], O.tm >= O.mtm && d[O.nn].mtm <= O.tm) break;
26022
+ O.mtm == _ ? k = y[1] = y[y[0]--] : (m(d, k, !1), O.tm = x);
26023
+ var E = d[k].err;
26024
+ for (w = 1; (T = w + w) <= y[0] && (T < y[0] && d[y[T]].err > d[y[T + 1]].err && T++, !(E <= d[C = y[T]].err)); w = T) y[w] = C;
26025
+ y[w] = k;
26026
26026
  }
26027
- var te = d[D.nn], k = D.cnt, A = te.cnt, S = 1 / (k + A);
26028
- u && (D.ac = S * (k * D.ac + A * te.ac)), D.rc = S * (k * D.rc + A * te.rc), D.gc = S * (k * D.gc + A * te.gc), D.bc = S * (k * D.bc + A * te.bc), D.cnt += te.cnt, D.mtm = ++x, d[te.bk].fw = te.fw, d[te.fw].bk = te.bk, te.mtm = _;
26027
+ var ee = d[O.nn], te = O.cnt, A = ee.cnt, S = 1 / (te + A);
26028
+ u && (O.ac = S * (te * O.ac + A * ee.ac)), O.rc = S * (te * O.rc + A * ee.rc), O.gc = S * (te * O.gc + A * ee.gc), O.bc = S * (te * O.bc + A * ee.bc), O.cnt += ee.cnt, O.mtm = ++x, d[ee.bk].fw = ee.fw, d[ee.fw].bk = ee.bk, ee.mtm = _;
26029
26029
  }
26030
26030
  let ne = [];
26031
26031
  var re = 0;
@@ -26091,26 +26091,26 @@ var CD = (/* @__PURE__ */ n(((e) => {
26091
26091
  function C(e, t, n, r, i) {
26092
26092
  let a = 0, o = 1e100;
26093
26093
  for (let s = 0; s < i.length; s++) {
26094
- let c = i[s], l = c[3], u = ee(l - r);
26094
+ let c = i[s], l = c[3], u = E(l - r);
26095
26095
  if (u > o) continue;
26096
26096
  let d = c[0];
26097
- if (u += ee(d - e), u > o) continue;
26097
+ if (u += E(d - e), u > o) continue;
26098
26098
  let f = c[1];
26099
- if (u += ee(f - t), u > o) continue;
26099
+ if (u += E(f - t), u > o) continue;
26100
26100
  let p = c[2];
26101
- u += ee(p - n), !(u > o) && (o = u, a = s);
26101
+ u += E(p - n), !(u > o) && (o = u, a = s);
26102
26102
  }
26103
26103
  return a;
26104
26104
  }
26105
26105
  function w(e, t, n, r) {
26106
26106
  let i = 0, a = 1e100;
26107
26107
  for (let o = 0; o < r.length; o++) {
26108
- let s = r[o], c = s[0], l = ee(c - e);
26108
+ let s = r[o], c = s[0], l = E(c - e);
26109
26109
  if (l > a) continue;
26110
26110
  let u = s[1];
26111
- if (l += ee(u - t), l > a) continue;
26111
+ if (l += E(u - t), l > a) continue;
26112
26112
  let d = s[2];
26113
- l += ee(d - n), !(l > a) && (a = l, i = o);
26113
+ l += E(d - n), !(l > a) && (a = l, i = o);
26114
26114
  }
26115
26115
  return i;
26116
26116
  }
@@ -26125,14 +26125,14 @@ var CD = (/* @__PURE__ */ n(((e) => {
26125
26125
  o[2],
26126
26126
  255
26127
26127
  ] : o.length > a ? o.slice(0, 3) : o.slice();
26128
- let s = D(r, o.slice(0, 3), y), c = s[0], l = s[1];
26128
+ let s = O(r, o.slice(0, 3), y), c = s[0], l = s[1];
26129
26129
  l > 0 && l <= i && (e[c] = o);
26130
26130
  }
26131
26131
  }
26132
- function ee(e) {
26132
+ function E(e) {
26133
26133
  return e * e;
26134
26134
  }
26135
- function E(e, t, n = y) {
26135
+ function D(e, t, n = y) {
26136
26136
  let r = Infinity, i = -1;
26137
26137
  for (let a = 0; a < e.length; a++) {
26138
26138
  let o = e[a], s = n(t, o);
@@ -26140,7 +26140,7 @@ var CD = (/* @__PURE__ */ n(((e) => {
26140
26140
  }
26141
26141
  return i;
26142
26142
  }
26143
- function D(e, t, n = y) {
26143
+ function O(e, t, n = y) {
26144
26144
  let r = Infinity, i = -1;
26145
26145
  for (let a = 0; a < e.length; a++) {
26146
26146
  let o = e[a], s = n(t, o);
@@ -26148,10 +26148,10 @@ var CD = (/* @__PURE__ */ n(((e) => {
26148
26148
  }
26149
26149
  return [i, r];
26150
26150
  }
26151
- function O(e, t, n = y) {
26152
- return e[E(e, t, n)];
26151
+ function k(e, t, n = y) {
26152
+ return e[D(e, t, n)];
26153
26153
  }
26154
- function te(e = {}) {
26154
+ function ee(e = {}) {
26155
26155
  let { initialCapacity: t = 4096, auto: i = !0 } = e, a = r(t), o = 5003, s = /* @__PURE__ */ new Uint8Array(256), c = new Int32Array(o), l = new Int32Array(o), u = !1;
26156
26156
  return {
26157
26157
  reset() {
@@ -26180,7 +26180,7 @@ var CD = (/* @__PURE__ */ n(((e) => {
26180
26180
  A(a, t, n, m, g), re(a, m), h >= 0 && ne(a, h);
26181
26181
  }
26182
26182
  let y = Math.round(p / 10);
26183
- k(a, _, y, o, f);
26183
+ te(a, _, y, o, f);
26184
26184
  let b = !!m && !v;
26185
26185
  ie(a, t, n, b ? m : null), b && re(a, m), ae(a, e, t, n, g, s, c, l);
26186
26186
  }
@@ -26189,7 +26189,7 @@ var CD = (/* @__PURE__ */ n(((e) => {
26189
26189
  se(a, "GIF89a");
26190
26190
  }
26191
26191
  }
26192
- function k(e, t, n, r, i) {
26192
+ function te(e, t, n, r, i) {
26193
26193
  e.writeByte(33), e.writeByte(249), e.writeByte(4), i < 0 && (i = 0, r = !1);
26194
26194
  var a, o;
26195
26195
  r ? (a = 1, o = 2) : (a = 0, o = 0), t >= 0 && (o = t & 7), o <<= 2, e.writeByte(o | 0 | a), oe(e, n), e.writeByte(i || 0), e.writeByte(0);
@@ -26234,7 +26234,7 @@ var CD = (/* @__PURE__ */ n(((e) => {
26234
26234
  function ce(e) {
26235
26235
  return Math.max(Math.ceil(Math.log2(e)), 1);
26236
26236
  }
26237
- var le = te;
26237
+ var le = ee;
26238
26238
  })))(), wD = "(function(){var e=((e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports))((e=>{var t=Object.defineProperty;(e=>t(e,`__esModule`,{value:!0}))(e),((e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})})(e,{GIFEncoder:()=>A,applyPalette:()=>S,default:()=>B,nearestColor:()=>k,nearestColorIndex:()=>D,nearestColorIndexWithDistance:()=>O,prequantize:()=>x,quantize:()=>_,snapColorsToPalette:()=>T});var n={signature:`GIF`,version:`89a`,trailer:59,extensionIntroducer:33,applicationExtensionLabel:255,graphicControlExtensionLabel:249,imageSeparator:44,signatureSize:3,versionSize:3,globalColorTableFlagMask:128,colorResolutionMask:112,sortFlagMask:8,globalColorTableSizeMask:7,applicationIdentifierSize:8,applicationAuthCodeSize:3,disposalMethodMask:28,userInputFlagMask:2,transparentColorFlagMask:1,localColorTableFlagMask:128,interlaceFlagMask:64,idSortFlagMask:32,localColorTableSizeMask:7};function r(e=256){let t=0,n=new Uint8Array(e);return{get buffer(){return n.buffer},reset(){t=0},bytesView(){return n.subarray(0,t)},bytes(){return n.slice(0,t)},writeByte(e){r(t+1),n[t]=e,t++},writeBytes(e,i=0,a=e.length){r(t+a);for(let r=0;r<a;r++)n[t++]=e[r+i]},writeBytesView(e,i=0,a=e.byteLength){r(t+a),n.set(e.subarray(i,i+a),t),t+=a}};function r(e){var r=n.length;if(r>=e)return;e=Math.max(e,r*(r<1024*1024?2:1.125)>>>0),r!=0&&(e=Math.max(e,256));let i=n;n=new Uint8Array(e),t>0&&n.set(i.subarray(0,t),0)}}var i=12,a=5003,o=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535];function s(e,t,n,s,c=r(512),l=new Uint8Array(256),u=new Int32Array(a),d=new Int32Array(a)){let f=u.length,p=Math.max(2,s);l.fill(0),d.fill(0),u.fill(-1);let m=0,h=0,g=p+1,_=g,v=!1,y=_,b=(1<<y)-1,x=1<<g-1,S=x+1,C=x+2,w=0,T=n[0],E=0;for(let e=f;e<65536;e*=2)++E;E=8-E,c.writeByte(p),O(x);let D=n.length;for(let e=1;e<D;e++)next_block:{let t=n[e],r=(t<<i)+T,a=t<<E^T;if(u[a]===r){T=d[a];break next_block}let o=a===0?1:f-a;for(;u[a]>=0;)if(a-=o,a<0&&(a+=f),u[a]===r){T=d[a];break next_block}O(T),T=t,C<1<<i?(d[a]=C++,u[a]=r):(u.fill(-1),C=x+2,v=!0,O(x))}return O(T),O(S),c.writeByte(0),c.bytesView();function O(e){for(m&=o[h],h>0?m|=e<<h:m=e,h+=y;h>=8;)l[w++]=m&255,w>=254&&(c.writeByte(w),c.writeBytesView(l,0,w),w=0),m>>=8,h-=8;if((C>b||v)&&(v?(y=_,b=(1<<y)-1,v=!1):(++y,b=y===i?1<<y:(1<<y)-1)),e==S){for(;h>0;)l[w++]=m&255,w>=254&&(c.writeByte(w),c.writeBytesView(l,0,w),w=0),m>>=8,h-=8;w>0&&(c.writeByte(w),c.writeBytesView(l,0,w),w=0)}}}var c=s;function l(e,t,n){return e<<8&63488|t<<2&992|n>>3}function u(e,t,n,r){return e>>4|t&240|(n&240)<<4|(r&240)<<8}function d(e,t,n){return e>>4<<8|t&240|n>>4}function f(e,t,n){return e<t?t:e>n?n:e}function p(e){return e*e}function m(e,t,n){var r=0,i=1e100;let a=e[t],o=a.cnt,s=a.ac,c=a.rc,l=a.gc,u=a.bc;for(var d=a.fw;d!=0;d=e[d].fw){let t=e[d],a=t.cnt,m=o*a/(o+a);if(!(m>=i)){var f=0;n&&(f+=m*p(t.ac-s),f>=i)||(f+=m*p(t.rc-c),!(f>=i)&&(f+=m*p(t.gc-l),!(f>=i)&&(f+=m*p(t.bc-u),!(f>=i)&&(i=f,r=d))))}}a.err=i,a.nn=r}function h(){return{ac:0,rc:0,gc:0,bc:0,cnt:0,nn:0,fw:0,bk:0,tm:0,mtm:0,err:0}}function g(e,t){let n=Array(t===`rgb444`?4096:65536),r=e.length;if(t===`rgba4444`)for(let t=0;t<r;++t){let r=e[t],i=r>>24&255,a=r>>16&255,o=r>>8&255,s=r&255,c=u(s,o,a,i),l=c in n?n[c]:n[c]=h();l.rc+=s,l.gc+=o,l.bc+=a,l.ac+=i,l.cnt++}else if(t===`rgb444`)for(let t=0;t<r;++t){let r=e[t],i=r>>16&255,a=r>>8&255,o=r&255,s=d(o,a,i),c=s in n?n[s]:n[s]=h();c.rc+=o,c.gc+=a,c.bc+=i,c.cnt++}else for(let t=0;t<r;++t){let r=e[t],i=r>>16&255,a=r>>8&255,o=r&255,s=l(o,a,i),c=s in n?n[s]:n[s]=h();c.rc+=o,c.gc+=a,c.bc+=i,c.cnt++}return n}function _(e,t,n={}){let{format:r=`rgb565`,clearAlpha:i=!0,clearAlphaColor:a=0,clearAlphaThreshold:o=0,oneBitAlpha:s=!1}=n;if(!e||!e.buffer||!(e instanceof Uint8Array)&&!(e instanceof Uint8ClampedArray))throw Error(`quantize() expected RGBA Uint8Array data`);let c=new Uint32Array(e.buffer),l=n.useSqrt!==!1,u=r===`rgba4444`,d=g(c,r),h=d.length,_=h-1,y=new Uint32Array(h+1);for(var b=0,x=0;x<h;++x){let e=d[x];if(e!=null){var S=1/e.cnt;u&&(e.ac*=S),e.rc*=S,e.gc*=S,e.bc*=S,d[b++]=e}}p(t)/b<.022&&(l=!1);for(var x=0;x<b-1;++x)d[x].fw=x+1,d[x+1].bk=x,l&&(d[x].cnt=Math.sqrt(d[x].cnt));l&&(d[x].cnt=Math.sqrt(d[x].cnt));var C,w,T;for(x=0;x<b;++x){m(d,x,!1);var E=d[x].err;for(w=++y[0];w>1&&(T=w>>1,!(d[C=y[T]].err<=E));w=T)y[w]=C;y[w]=x}var D=b-t;for(x=0;x<D;){for(var O;;){var k=y[1];if(O=d[k],O.tm>=O.mtm&&d[O.nn].mtm<=O.tm)break;O.mtm==_?k=y[1]=y[y[0]--]:(m(d,k,!1),O.tm=x);var E=d[k].err;for(w=1;(T=w+w)<=y[0]&&(T<y[0]&&d[y[T]].err>d[y[T+1]].err&&T++,!(E<=d[C=y[T]].err));w=T)y[w]=C;y[w]=k}var A=d[O.nn],j=O.cnt,M=A.cnt,S=1/(j+M);u&&(O.ac=S*(j*O.ac+M*A.ac)),O.rc=S*(j*O.rc+M*A.rc),O.gc=S*(j*O.gc+M*A.gc),O.bc=S*(j*O.bc+M*A.bc),O.cnt+=A.cnt,O.mtm=++x,d[A.bk].fw=A.fw,d[A.fw].bk=A.bk,A.mtm=_}let N=[];var P=0;for(x=0;;++P){let e=f(Math.round(d[x].rc),0,255),t=f(Math.round(d[x].gc),0,255),n=f(Math.round(d[x].bc),0,255),r=255;u&&(r=f(Math.round(d[x].ac),0,255),s&&(r=r<=(typeof s==`number`?s:127)?0:255),i&&r<=o&&(e=t=n=a,r=0));let c=u?[e,t,n,r]:[e,t,n];if(v(N,c)||N.push(c),(x=d[x].fw)==0)break}return N}function v(e,t){for(let n=0;n<e.length;n++){let r=e[n],i=r[0]===t[0]&&r[1]===t[1]&&r[2]===t[2],a=r.length>=4&&t.length>=4?r[3]===t[3]:!0;if(i&&a)return!0}return!1}function y(e,t){var n=0,r;for(r=0;r<e.length;r++){let i=e[r]-t[r];n+=i*i}return n}function b(e,t){return t>1?Math.round(e/t)*t:e}function x(e,{roundRGB:t=5,roundAlpha:n=10,oneBitAlpha:r=null}={}){let i=new Uint32Array(e.buffer);for(let e=0;e<i.length;e++){let a=i[e],o=a>>24&255,s=a>>16&255,c=a>>8&255,l=a&255;o=b(o,n),r&&(o=o<=(typeof r==`number`?r:127)?0:255),l=b(l,t),c=b(c,t),s=b(s,t),i[e]=o<<24|s<<16|c<<8|l<<0}}function S(e,t,n=`rgb565`){if(!e||!e.buffer||!(e instanceof Uint8Array)&&!(e instanceof Uint8ClampedArray))throw Error(`quantize() expected RGBA Uint8Array data`);if(t.length>256)throw Error(`applyPalette() only works with 256 colors or less`);let r=new Uint32Array(e.buffer),i=r.length,a=n===`rgb444`?4096:65536,o=new Uint8Array(i),s=Array(a);if(n===`rgba4444`)for(let e=0;e<i;e++){let n=r[e],i=n>>24&255,a=n>>16&255,c=n>>8&255,l=n&255,d=u(l,c,a,i);o[e]=d in s?s[d]:s[d]=C(l,c,a,i,t)}else{let e=n===`rgb444`?d:l;for(let n=0;n<i;n++){let i=r[n],a=i>>16&255,c=i>>8&255,l=i&255,u=e(l,c,a);o[n]=u in s?s[u]:s[u]=w(l,c,a,t)}}return o}function C(e,t,n,r,i){let a=0,o=1e100;for(let s=0;s<i.length;s++){let c=i[s],l=c[3],u=E(l-r);if(u>o)continue;let d=c[0];if(u+=E(d-e),u>o)continue;let f=c[1];if(u+=E(f-t),u>o)continue;let p=c[2];u+=E(p-n),!(u>o)&&(o=u,a=s)}return a}function w(e,t,n,r){let i=0,a=1e100;for(let o=0;o<r.length;o++){let s=r[o],c=s[0],l=E(c-e);if(l>a)continue;let u=s[1];if(l+=E(u-t),l>a)continue;let d=s[2];l+=E(d-n),!(l>a)&&(a=l,i=o)}return i}function T(e,t,n=5){if(!e.length||!t.length)return;let r=e.map(e=>e.slice(0,3)),i=n*n,a=e[0].length;for(let n=0;n<t.length;n++){let o=t[n];o=o.length<a?[o[0],o[1],o[2],255]:o.length>a?o.slice(0,3):o.slice();let s=O(r,o.slice(0,3),y),c=s[0],l=s[1];l>0&&l<=i&&(e[c]=o)}}function E(e){return e*e}function D(e,t,n=y){let r=1/0,i=-1;for(let a=0;a<e.length;a++){let o=e[a],s=n(t,o);s<r&&(r=s,i=a)}return i}function O(e,t,n=y){let r=1/0,i=-1;for(let a=0;a<e.length;a++){let o=e[a],s=n(t,o);s<r&&(r=s,i=a)}return[i,r]}function k(e,t,n=y){return e[D(e,t,n)]}function A(e={}){let{initialCapacity:t=4096,auto:i=!0}=e,a=r(t),o=5003,s=new Uint8Array(256),c=new Int32Array(o),l=new Int32Array(o),u=!1;return{reset(){a.reset(),u=!1},finish(){a.writeByte(n.trailer)},bytes(){return a.bytes()},bytesView(){return a.bytesView()},get buffer(){return a.buffer},get stream(){return a},writeHeader:d,writeFrame(e,t,n,r={}){let{transparent:o=!1,transparentIndex:f=0,delay:p=0,palette:m=null,repeat:h=0,colorDepth:g=8,dispose:_=-1}=r,v=!1;if(i?u||=(v=!0,d(),!0):v=!!r.first,t=Math.max(0,Math.floor(t)),n=Math.max(0,Math.floor(n)),v){if(!m)throw Error(`First frame must include a { palette } option`);M(a,t,n,m,g),P(a,m),h>=0&&N(a,h)}let y=Math.round(p/10);j(a,_,y,o,f);let b=!!m&&!v;F(a,t,n,b?m:null),b&&P(a,m),I(a,e,t,n,g,s,c,l)}};function d(){R(a,`GIF89a`)}}function j(e,t,n,r,i){e.writeByte(33),e.writeByte(249),e.writeByte(4),i<0&&(i=0,r=!1);var a,o;r?(a=1,o=2):(a=0,o=0),t>=0&&(o=t&7),o<<=2,e.writeByte(o|0|a),L(e,n),e.writeByte(i||0),e.writeByte(0)}function M(e,t,n,r,i=8){let a=z(r.length)-1,o=i-1<<4|128|a;L(e,t),L(e,n),e.writeBytes([o,0,0])}function N(e,t){e.writeByte(33),e.writeByte(255),e.writeByte(11),R(e,`NETSCAPE2.0`),e.writeByte(3),e.writeByte(1),L(e,t),e.writeByte(0)}function P(e,t){let n=1<<z(t.length);for(let r=0;r<n;r++){let n=[0,0,0];r<t.length&&(n=t[r]),e.writeByte(n[0]),e.writeByte(n[1]),e.writeByte(n[2])}}function F(e,t,n,r){if(e.writeByte(44),L(e,0),L(e,0),L(e,t),L(e,n),r){let t=z(r.length)-1;e.writeByte(128|t)}else e.writeByte(0)}function I(e,t,n,r,i=8,a,o,s){c(n,r,t,i,e,a,o,s)}function L(e,t){e.writeByte(t&255),e.writeByte(t>>8&255)}function R(e,t){for(var n=0;n<t.length;n++)e.writeByte(t.charCodeAt(n))}function z(e){return Math.max(Math.ceil(Math.log2(e)),1)}var B=A}))();let t=null,n=!0;self.onmessage=e=>{r(e.data).catch(t=>{e.data?.id!=null&&self.postMessage({id:e.data.id,type:`error`,message:t instanceof Error?t.message:String(t)})})};async function r(r){let a=(e,t=[])=>self.postMessage({id:r.id,...e},t);switch(r.type){case`encode-png`:{let e=r.bitmap,t=new OffscreenCanvas(e.width,e.height),n=t.getContext(`2d`);if(!n)throw Error(`OffscreenCanvas 2d unavailable`);n.drawImage(e,0,0),e.close();let o=await t.convertToBlob({type:`image/png`});o.size>18e5&&(o=await t.convertToBlob({type:`image/jpeg`,quality:.85})),a({type:`png`,dataUrl:await i(o)});return}case`gif-init`:t=(0,e.GIFEncoder)(),n=!0,a({type:`ok`});return;case`gif-frame`:{if(!t)return;let i=new Uint8ClampedArray(r.buffer),a=(0,e.quantize)(i,256,{format:`rgb565`}),o=(0,e.applyPalette)(i,a,`rgb565`);t.writeFrame(o,r.width,r.height,{palette:a,delay:r.delay,first:n,repeat:0}),n=!1;return}case`gif-finish`:{if(!t)throw Error(`No active GIF session`);t.finish();let e=t.bytes();t=null,a({type:`gif`,buffer:e.buffer},[e.buffer]);return}case`gif-abort`:t=null;return}}function i(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(r.result),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}})();", TD = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", wD], { type: "text/javascript;charset=utf-8" });
26239
26239
  function ED(e) {
26240
26240
  let t;
@@ -27548,7 +27548,7 @@ function vj(e) {
27548
27548
  var e = ej();
27549
27549
  return P(e, j(yj, {})), e;
27550
27550
  }
27551
- }), null), E(() => st(r, `inline-flex items-center gap-1.5 ${t.loading ? "invisible" : ""}`)), e;
27551
+ }), null), D(() => st(r, `inline-flex items-center gap-1.5 ${t.loading ? "invisible" : ""}`)), e;
27552
27552
  })();
27553
27553
  }
27554
27554
  function yj(e) {
@@ -27561,7 +27561,7 @@ function yj(e) {
27561
27561
  },
27562
27562
  children: (e) => (() => {
27563
27563
  var i = rj();
27564
- return dt(i, "transform", `rotate(${e * 30}deg)`), dt(i, "animation-delay", `${(e - 12) * .1}s`), E((e) => {
27564
+ return dt(i, "transform", `rotate(${e * 30}deg)`), dt(i, "animation-delay", `${(e - 12) * .1}s`), D((e) => {
27565
27565
  var a = `${n()}px`, o = `${r()}px`, s = `-${n() / 2}px`, c = `center ${t() / 2}px`;
27566
27566
  return a !== e.e && dt(i, "width", e.e = a), o !== e.t && dt(i, "height", e.t = o), s !== e.a && dt(i, "margin-left", e.a = s), c !== e.o && dt(i, "transform-origin", e.o = c), e;
27567
27567
  }, {
@@ -27571,7 +27571,7 @@ function yj(e) {
27571
27571
  o: void 0
27572
27572
  }), i;
27573
27573
  })()
27574
- })), E((n) => {
27574
+ })), D((n) => {
27575
27575
  var r = `${t()}px`, i = `${t()}px`;
27576
27576
  return r !== n.e && dt(e, "width", n.e = r), i !== n.t && dt(e, "height", n.t = i), n;
27577
27577
  }, {
@@ -27624,7 +27624,7 @@ function wj(e) {
27624
27624
  function Tj(e) {
27625
27625
  return (() => {
27626
27626
  var t = lj(), n = t.firstChild;
27627
- return P(n, () => e.children), E((n) => {
27627
+ return P(n, () => e.children), D((n) => {
27628
27628
  var r = e.href, i = e.title || void 0, a = `text-accent inline-flex min-w-0 items-center gap-1 text-[11px] underline-offset-2 hover:underline ${e.class ?? ""}`;
27629
27629
  return r !== n.e && it(t, "href", n.e = r), i !== n.t && it(t, "data-tip", n.t = i), a !== n.a && st(t, n.a = a), n;
27630
27630
  }, {
@@ -27657,19 +27657,20 @@ function Dj(e) {
27657
27657
  function Oj(e) {
27658
27658
  return (() => {
27659
27659
  var t = pj();
27660
- return P(t, () => e.children), E((n) => {
27661
- var r = `bg-surface-3 text-text-dim inline-flex h-[18px] items-center gap-1 rounded-full px-2 text-[10.5px] font-medium whitespace-nowrap ${e.class ?? ""}`, i = e.color ? { color: e.color } : void 0;
27662
- return r !== n.e && st(t, n.e = r), n.t = ut(t, i, n.t), n;
27660
+ return P(t, () => e.children), D((n) => {
27661
+ var r = `bg-surface-3 text-text-dim inline-flex h-[18px] items-center gap-1 rounded-full px-2 text-[10.5px] font-medium whitespace-nowrap ${e.class ?? ""}`, i = e.color ? { color: e.color } : void 0, a = e.title || void 0;
27662
+ return r !== n.e && st(t, n.e = r), n.t = ut(t, i, n.t), a !== n.a && it(t, "data-tip", n.a = a), n;
27663
27663
  }, {
27664
27664
  e: void 0,
27665
- t: void 0
27665
+ t: void 0,
27666
+ a: void 0
27666
27667
  }), t;
27667
27668
  })();
27668
27669
  }
27669
27670
  function kj(e) {
27670
27671
  return (() => {
27671
27672
  var t = mj();
27672
- return E((n) => dt(t, "background", e.color)), t;
27673
+ return D((n) => dt(t, "background", e.color)), t;
27673
27674
  })();
27674
27675
  }
27675
27676
  function Aj(e) {
@@ -27709,13 +27710,13 @@ function dM(e) {
27709
27710
  })), n = _r(() => ({
27710
27711
  queryKey: ["settings"],
27711
27712
  queryFn: Cr
27712
- })), r = O(() => n.data ?? {}), i = O(() => t.data?.[0] ?? null), a = O(() => !!(r().linearApiKey || r().linearAccessToken)), o = O(() => Ox(r())), [s, c] = T(""), [l, u] = T(""), [d, f] = T([]), [p, m] = T(""), [h, g] = T(""), [_, v] = T(""), [y, b] = T(""), [x, S] = T(""), [C, w] = T(0), [ee, te] = T(r().defaultTeamId ?? ""), [k, A] = T(r().defaultRepo ?? ""), [ne, re] = T("none"), [ie, oe] = T(""), [se, ce] = T(""), [le, ue] = T(!1), [de, fe] = T(!0), [pe, me] = T(ek().length);
27713
- D(() => {
27713
+ })), r = k(() => n.data ?? {}), i = k(() => t.data?.[0] ?? null), a = k(() => !!(r().linearApiKey || r().linearAccessToken)), o = k(() => Ox(r())), [s, c] = T(""), [l, u] = T(""), [d, f] = T([]), [p, m] = T(""), [h, g] = T(""), [_, v] = T(""), [y, b] = T(""), [x, S] = T(""), [C, w] = T(0), [E, ee] = T(r().defaultTeamId ?? ""), [te, A] = T(r().defaultRepo ?? ""), [ne, re] = T("none"), [ie, oe] = T(""), [se, ce] = T(""), [le, ue] = T(!1), [de, fe] = T(!0), [pe, me] = T(ek().length);
27714
+ O(() => {
27714
27715
  let e = setInterval(() => me(ek().length), 3e3);
27715
27716
  ae(() => clearInterval(e));
27716
27717
  });
27717
27718
  let [he, ge] = T("");
27718
- D(() => {
27719
+ O(() => {
27719
27720
  let e = s().trim(), t = setTimeout(() => ge(e.length >= 8 ? e : ""), 600);
27720
27721
  ae(() => clearTimeout(t));
27721
27722
  });
@@ -27736,15 +27737,15 @@ function dM(e) {
27736
27737
  }].slice(-6)), n.readAsDataURL(e);
27737
27738
  }
27738
27739
  }, [Ce, we] = T("fast"), [Te, Ee] = T(!0), De = !1;
27739
- D(() => {
27740
+ O(() => {
27740
27741
  let e = n.data;
27741
- De || !e || (De = !0, te(e.defaultTeamId ?? ""), A(e.defaultRepo ?? ""), re(e.cursorAgentId ? "cursor" : "none"));
27742
+ De || !e || (De = !0, ee(e.defaultTeamId ?? ""), A(e.defaultRepo ?? ""), re(e.cursorAgentId ? "cursor" : "none"));
27742
27743
  });
27743
27744
  let Oe = _r(() => ({
27744
27745
  queryKey: ["teams"],
27745
27746
  queryFn: cO,
27746
27747
  enabled: a()
27747
- })), ke = O(() => (Oe.data ?? []).find((e) => e.id === ee())?.name), [Ae, je] = T(!1), [Me, Ne] = T(null), [Pe, Fe] = T(null), Ie = null, Le = () => {
27748
+ })), ke = k(() => (Oe.data ?? []).find((e) => e.id === E())?.name), [Ae, je] = T(!1), [Me, Ne] = T(null), [Pe, Fe] = T(null), Ie = null, Le = () => {
27748
27749
  Ie?.(), Ie = null;
27749
27750
  };
27750
27751
  ae(Le);
@@ -27796,7 +27797,7 @@ function dM(e) {
27796
27797
  analysisNotes: y(),
27797
27798
  suggestedNextSteps: x(),
27798
27799
  grabs: t.data ?? [],
27799
- repo: k(),
27800
+ repo: te(),
27800
27801
  model: se().trim() || r().cursorModel,
27801
27802
  agentInstructions: sD(r())
27802
27803
  });
@@ -27840,7 +27841,7 @@ function dM(e) {
27840
27841
  Je(`Skipped: ${n.join(", ")} — issue created without ${n.length > 1 ? "them" : "it"}.${e ? " Real fix for uploads: run `npx linear-grab-bridge` in the repo (uploads relay through it) or set the GitHub fallback in Settings." : ""}`);
27841
27842
  }
27842
27843
  let c = await gO({
27843
- teamId: ee(),
27844
+ teamId: E(),
27844
27845
  title: s(),
27845
27846
  description: e,
27846
27847
  priority: C(),
@@ -27867,7 +27868,7 @@ function dM(e) {
27867
27868
  env: r().linearApiKey ? { LINEAR_API_KEY: r().linearApiKey } : void 0
27868
27869
  }), u = !0;
27869
27870
  try {
27870
- let e = (await mO(ee())).filter((e) => e.type === "started").sort((e, t) => e.position - t.position)[0];
27871
+ let e = (await mO(E())).filter((e) => e.type === "started").sort((e, t) => e.position - t.position)[0];
27871
27872
  e && await hO(c.id, e.id);
27872
27873
  } catch {}
27873
27874
  await _O(c.id, "🖥️ Delegated to **local Claude Code** on this machine (Linear Grab bridge). Live status, conversation, and steering in the panel's Local tab. The agent will post its fix summary + PR here and move this issue to review when done.").catch(() => {});
@@ -27880,7 +27881,7 @@ function dM(e) {
27880
27881
  url: c.url,
27881
27882
  summary: l(),
27882
27883
  impact: _(),
27883
- repo: k() || r().defaultRepo,
27884
+ repo: te() || r().defaultRepo,
27884
27885
  demoUrl: BD().result?.assetUrl,
27885
27886
  executor: ne()
27886
27887
  });
@@ -27898,12 +27899,12 @@ function dM(e) {
27898
27899
  onError: (e) => {
27899
27900
  Ke(e.message);
27900
27901
  }
27901
- })), Qe = O(() => !!s().trim() && !!ee() && a()), et = O(() => {
27902
+ })), Qe = k(() => !!s().trim() && !!E() && a()), et = k(() => {
27902
27903
  let e = o();
27903
27904
  return e ? jx[e][Ce()] : null;
27904
27905
  }), tt = () => f((e) => [...e, ""]), nt = (e) => f((t) => t.filter((t, n) => n !== e)), N = (e, t) => f((n) => n.map((n, r) => r === e ? t : n));
27905
27906
  return (() => {
27906
- var n = rM(), f = n.firstChild, T = f.firstChild.firstChild.nextSibling, D = f.nextSibling;
27907
+ var n = rM(), f = n.firstChild, T = f.firstChild.firstChild.nextSibling, O = f.nextSibling;
27907
27908
  return P(T, j(M, {
27908
27909
  get when() {
27909
27910
  return i();
@@ -28017,7 +28018,7 @@ function dM(e) {
28017
28018
  },
28018
28019
  children: (e) => (() => {
28019
28020
  var t = iM(), n = t.firstChild, r = n.nextSibling;
28020
- return r.$$click = () => xe((t) => t.filter((t) => t.id !== e.id)), E(() => it(n, "src", e.dataUrl)), t;
28021
+ return r.$$click = () => xe((t) => t.filter((t) => t.id !== e.id)), D(() => it(n, "src", e.dataUrl)), t;
28021
28022
  })()
28022
28023
  }), t), e;
28023
28024
  }
@@ -28026,7 +28027,7 @@ function dM(e) {
28026
28027
  var e = Lj(), t = e.firstChild.nextSibling;
28027
28028
  return P(t, () => ["fast", "best"].map((e) => (() => {
28028
28029
  var t = aM();
28029
- return t.$$click = () => we(e), P(t, e === "fast" ? "Fast" : "Best"), E(() => st(t, `h-6 px-2.5 text-[11px] font-medium transition-colors cursor-pointer ${Ce() === e ? "bg-accent text-white" : "bg-surface-2 text-text-dim hover:text-text"}`)), t;
28030
+ return t.$$click = () => we(e), P(t, e === "fast" ? "Fast" : "Best"), D(() => st(t, `h-6 px-2.5 text-[11px] font-medium transition-colors cursor-pointer ${Ce() === e ? "bg-accent text-white" : "bg-surface-2 text-text-dim hover:text-text"}`)), t;
28030
28031
  })())), e;
28031
28032
  })(),
28032
28033
  (() => {
@@ -28091,7 +28092,7 @@ function dM(e) {
28091
28092
  })
28092
28093
  ];
28093
28094
  }
28094
- }), D), P(n, j(Dj, {
28095
+ }), O), P(n, j(Dj, {
28095
28096
  title: "Issue",
28096
28097
  get children() {
28097
28098
  return [
@@ -28125,7 +28126,7 @@ function dM(e) {
28125
28126
  get children() {
28126
28127
  return e.state.name;
28127
28128
  }
28128
- }), null), E((t) => {
28129
+ }), null), D((t) => {
28129
28130
  var n = e.url, i = e.title;
28130
28131
  return n !== t.e && it(r, "href", t.e = n), i !== t.t && it(r, "title", t.t = i), t;
28131
28132
  }, {
@@ -28289,9 +28290,9 @@ function dM(e) {
28289
28290
  get children() {
28290
28291
  return j(Sj, {
28291
28292
  get value() {
28292
- return ee();
28293
+ return E();
28293
28294
  },
28294
- onChange: (e) => te(e.currentTarget.value),
28295
+ onChange: (e) => ee(e.currentTarget.value),
28295
28296
  get children() {
28296
28297
  return [Wj(), j(We, {
28297
28298
  get each() {
@@ -28299,7 +28300,7 @@ function dM(e) {
28299
28300
  },
28300
28301
  children: (e) => (() => {
28301
28302
  var t = cM();
28302
- return P(t, () => e.name), E(() => t.selected = e.id === ee()), E(() => t.value = e.id), t;
28303
+ return P(t, () => e.name), D(() => t.selected = e.id === E()), D(() => t.value = e.id), t;
28303
28304
  })()
28304
28305
  })];
28305
28306
  }
@@ -28316,7 +28317,7 @@ function dM(e) {
28316
28317
  get children() {
28317
28318
  return j(bj, {
28318
28319
  get value() {
28319
- return k();
28320
+ return te();
28320
28321
  },
28321
28322
  onInput: (e) => A(e.currentTarget.value),
28322
28323
  placeholder: "owner/repository"
@@ -28338,7 +28339,7 @@ function dM(e) {
28338
28339
  return [
28339
28340
  (() => {
28340
28341
  var e = Gj(), t = e.firstChild;
28341
- return P(e, () => r().cursorAgentName ?? "Cursor", t), E((t) => {
28342
+ return P(e, () => r().cursorAgentName ?? "Cursor", t), D((t) => {
28342
28343
  var n = !r().cursorAgentId, i = ne() === "cursor";
28343
28344
  return n !== t.e && (e.disabled = t.e = n), i !== t.t && (e.selected = t.t = i), t;
28344
28345
  }, {
@@ -28348,11 +28349,11 @@ function dM(e) {
28348
28349
  })(),
28349
28350
  (() => {
28350
28351
  var e = Kj();
28351
- return E(() => e.selected = ne() === "local"), e;
28352
+ return D(() => e.selected = ne() === "local"), e;
28352
28353
  })(),
28353
28354
  (() => {
28354
28355
  var e = qj();
28355
- return E(() => e.selected = ne() === "none"), e;
28356
+ return D(() => e.selected = ne() === "none"), e;
28356
28357
  })()
28357
28358
  ];
28358
28359
  }
@@ -28401,23 +28402,23 @@ function dM(e) {
28401
28402
  return [
28402
28403
  (() => {
28403
28404
  var e = Jj();
28404
- return E(() => e.selected = ie() === ""), e;
28405
+ return D(() => e.selected = ie() === ""), e;
28405
28406
  })(),
28406
28407
  (() => {
28407
28408
  var e = Yj();
28408
- return E(() => e.selected = ie() === "fable"), e;
28409
+ return D(() => e.selected = ie() === "fable"), e;
28409
28410
  })(),
28410
28411
  (() => {
28411
28412
  var e = Xj();
28412
- return E(() => e.selected = ie() === "opus"), e;
28413
+ return D(() => e.selected = ie() === "opus"), e;
28413
28414
  })(),
28414
28415
  (() => {
28415
28416
  var e = Zj();
28416
- return E(() => e.selected = ie() === "sonnet"), e;
28417
+ return D(() => e.selected = ie() === "sonnet"), e;
28417
28418
  })(),
28418
28419
  (() => {
28419
28420
  var e = Qj();
28420
- return E(() => e.selected = ie() === "haiku"), e;
28421
+ return D(() => e.selected = ie() === "haiku"), e;
28421
28422
  })()
28422
28423
  ];
28423
28424
  }
@@ -28425,7 +28426,7 @@ function dM(e) {
28425
28426
  }
28426
28427
  }), (() => {
28427
28428
  var e = $j(), t = e.firstChild;
28428
- return t.addEventListener("change", (e) => ue(e.currentTarget.checked)), E(() => t.checked = le()), e;
28429
+ return t.addEventListener("change", (e) => ue(e.currentTarget.checked)), D(() => t.checked = le()), e;
28429
28430
  })()];
28430
28431
  }
28431
28432
  }),
@@ -28435,7 +28436,7 @@ function dM(e) {
28435
28436
  },
28436
28437
  get children() {
28437
28438
  var e = eM(), t = e.firstChild, n = t.nextSibling.firstChild.nextSibling, r = n.firstChild.nextSibling;
28438
- return r.nextSibling, t.addEventListener("change", (e) => fe(e.currentTarget.checked)), P(n, pe, r), E(() => t.checked = de()), e;
28439
+ return r.nextSibling, t.addEventListener("change", (e) => fe(e.currentTarget.checked)), P(n, pe, r), D(() => t.checked = de()), e;
28439
28440
  }
28440
28441
  }),
28441
28442
  j(M, {
@@ -28444,12 +28445,12 @@ function dM(e) {
28444
28445
  },
28445
28446
  get children() {
28446
28447
  var e = tM(), t = e.firstChild, n = t.nextSibling.firstChild.nextSibling, i = n.firstChild.nextSibling;
28447
- return i.nextSibling, t.addEventListener("change", (e) => Ee(e.currentTarget.checked)), P(n, () => Math.min(500, Math.max(10, r().logLines ?? 100)), i), E(() => t.checked = Te()), e;
28448
+ return i.nextSibling, t.addEventListener("change", (e) => Ee(e.currentTarget.checked)), P(n, () => Math.min(500, Math.max(10, r().logLines ?? 100)), i), D(() => t.checked = Te()), e;
28448
28449
  }
28449
28450
  })
28450
28451
  ];
28451
28452
  }
28452
- }), D), P(D, j(M, {
28453
+ }), O), P(O, j(M, {
28453
28454
  get when() {
28454
28455
  return Ue();
28455
28456
  },
@@ -28458,7 +28459,7 @@ function dM(e) {
28458
28459
  return Ue();
28459
28460
  } });
28460
28461
  }
28461
- }), null), P(D, j(M, {
28462
+ }), null), P(O, j(M, {
28462
28463
  get when() {
28463
28464
  return qe();
28464
28465
  },
@@ -28466,7 +28467,7 @@ function dM(e) {
28466
28467
  var e = nM();
28467
28468
  return P(e, qe), e;
28468
28469
  }
28469
- }), null), P(D, j(M, {
28470
+ }), null), P(O, j(M, {
28470
28471
  get when() {
28471
28472
  return Ye();
28472
28473
  },
@@ -28479,9 +28480,9 @@ function dM(e) {
28479
28480
  Xe(null), Fe(null), e.onCreated();
28480
28481
  },
28481
28482
  children: "View activity"
28482
- }), null), E(() => it(r, "href", t().url)), n;
28483
+ }), null), D(() => it(r, "href", t().url)), n;
28483
28484
  })()
28484
- }), null), P(D, j(vj, {
28485
+ }), null), P(O, j(vj, {
28485
28486
  variant: "primary",
28486
28487
  get loading() {
28487
28488
  return Ze.isPending;
@@ -30065,9 +30066,9 @@ function cR(e, t, n) {
30065
30066
  return m();
30066
30067
  } }
30067
30068
  });
30068
- let ee = Oz;
30069
- return f ? iR(() => (ee = Oz, T(!1))) : T(!1), [w, {
30070
- refetch: (e) => hR(ee, () => T(e)),
30069
+ let E = Oz;
30070
+ return f ? iR(() => (E = Oz, T(!1))) : T(!1), [w, {
30071
+ refetch: (e) => hR(E, () => T(e)),
30071
30072
  mutate: h
30072
30073
  }];
30073
30074
  }
@@ -33469,10 +33470,10 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
33469
33470
  }
33470
33471
  return n ? !0 : t.opacity > 0;
33471
33472
  }), C(), a ? o = UF(T) : (o = null, s = null);
33472
- }, ee = () => {
33473
- o === null && (o = UF(T));
33474
33473
  }, E = () => {
33475
- m(), ee();
33474
+ o === null && (o = UF(T));
33475
+ }, D = () => {
33476
+ m(), E();
33476
33477
  };
33477
33478
  return oR(dR(() => [
33478
33479
  e.selectionVisible,
@@ -33481,7 +33482,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
33481
33482
  e.selectionShouldSnap
33482
33483
  ], ([e, t, n, r]) => {
33483
33484
  if (!e || !t && (!n || n.length === 0)) {
33484
- l = [], ee();
33485
+ l = [], E();
33485
33486
  return;
33486
33487
  }
33487
33488
  let i;
@@ -33491,13 +33492,13 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
33491
33492
  l = i.map((e, t) => {
33492
33493
  let n = `selection-${t}`, i = a.get(n);
33493
33494
  return i ? (_(i, e), r && (i.current.x = i.target.x, i.current.y = i.target.y, i.current.width = i.target.width, i.current.height = i.target.height), i) : g(n, e);
33494
- }), ee();
33495
+ }), E();
33495
33496
  })), oR(dR(() => [e.dragVisible, e.dragBounds], ([e, t]) => {
33496
33497
  if (!e || !t) {
33497
- u = null, ee();
33498
+ u = null, E();
33498
33499
  return;
33499
33500
  }
33500
- u ? _(u, t) : u = g("drag", t), ee();
33501
+ u ? _(u, t) : u = g("drag", t), E();
33501
33502
  })), oR(dR(() => [e.grabbedBoxes, e.labelInstances], ([e, t]) => {
33502
33503
  let n = e ?? [], r = t ?? [], i = /* @__PURE__ */ new Map();
33503
33504
  for (let e of n) i.set(e.id, e);
@@ -33528,16 +33529,16 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
33528
33529
  }
33529
33530
  }
33530
33531
  }
33531
- d = d.filter((e) => e.id.startsWith("label-") ? o.has(e.id) : i.has(e.id)), ee();
33532
+ d = d.filter((e) => e.id.startsWith("label-") ? o.has(e.id) : i.has(e.id)), E();
33532
33533
  })), fR(() => {
33533
- m(), ee(), window.addEventListener("resize", E);
33534
+ m(), E(), window.addEventListener("resize", D);
33534
33535
  let e = null, t = () => {
33535
- Math.max(window.devicePixelRatio || 1, 2) !== a && (E(), n());
33536
+ Math.max(window.devicePixelRatio || 1, 2) !== a && (D(), n());
33536
33537
  }, n = () => {
33537
33538
  e && e.removeEventListener("change", t), e = window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`), e.addEventListener("change", t);
33538
33539
  };
33539
33540
  n(), pR(() => {
33540
- window.removeEventListener("resize", E), e && e.removeEventListener("change", t), o !== null && WF(o);
33541
+ window.removeEventListener("resize", D), e && e.removeEventListener("change", t), o !== null && WF(o);
33541
33542
  });
33542
33543
  }), (() => {
33543
33544
  var e = YU(), n = t;
@@ -34147,7 +34148,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
34147
34148
  }), pR(() => {
34148
34149
  x?.disconnect(), window.removeEventListener("scroll", C, !0), window.removeEventListener("resize", C), window.visualViewport?.removeEventListener("resize", C), window.visualViewport?.removeEventListener("scroll", C), window.removeEventListener("keydown", w, { capture: !0 });
34149
34150
  });
34150
- let T = () => `${e.tagName ?? ""}:${e.componentName ?? ""}`, ee = Y((t) => {
34151
+ let T = () => `${e.tagName ?? ""}:${e.componentName ?? ""}`, E = Y((t) => {
34151
34152
  d();
34152
34153
  let n = T(), r = n === t.elementIdentity ? t : {
34153
34154
  position: lG,
@@ -34168,23 +34169,23 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
34168
34169
  hadValidBounds: r.hadValidBounds,
34169
34170
  elementIdentity: n
34170
34171
  };
34171
- let v = i.x + i.width / 2, y = e.mouseX ?? v, b = i.y + i.height, x = i.y, S = e.hideArrow ? 0 : rW(l()), C = y, w = 0, ee = b + S + 4;
34172
+ let v = i.x + i.width / 2, y = e.mouseX ?? v, b = i.y + i.height, x = i.y, S = e.hideArrow ? 0 : rW(l()), C = y, w = 0, E = b + S + 4;
34172
34173
  if (o > 0) {
34173
34174
  let e = C - o / 2, t = C + o / 2;
34174
34175
  t > g - 8 && (w = g - 8 - t), e + w < m + 8 && (w = m + 8 - e);
34175
34176
  }
34176
- let E = c + S + 4, D = ee + c <= _ - 8;
34177
- D || (ee = x - E), ee < h + 8 && (ee = h + 8);
34178
- let O = o / 2, te = O - w, k = Math.min(16, O), A = Math.max(o - 16, O), ne = Math.max(k, Math.min(A, te)) - O;
34177
+ let D = c + S + 4, O = E + c <= _ - 8;
34178
+ O || (E = x - D), E < h + 8 && (E = h + 8);
34179
+ let k = o / 2, ee = k - w, te = Math.min(16, k), A = Math.max(o - 16, k), ne = Math.max(te, Math.min(A, ee)) - k;
34179
34180
  return {
34180
34181
  position: {
34181
34182
  left: C,
34182
- top: ee,
34183
+ top: E,
34183
34184
  arrowLeftPercent: 50,
34184
34185
  arrowLeftOffset: ne,
34185
34186
  edgeOffsetX: w
34186
34187
  },
34187
- computedArrowPosition: D ? "bottom" : "top",
34188
+ computedArrowPosition: O ? "bottom" : "top",
34188
34189
  hadValidBounds: !0,
34189
34190
  elementIdentity: n
34190
34191
  };
@@ -34193,17 +34194,17 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
34193
34194
  computedArrowPosition: null,
34194
34195
  hadValidBounds: !1,
34195
34196
  elementIdentity: ""
34196
- }), E = () => ee().computedArrowPosition ?? "bottom", D = () => ee().hadValidBounds;
34197
+ }), D = () => E().computedArrowPosition ?? "bottom", O = () => E().hadValidBounds;
34197
34198
  oR(dR(() => e.selectionLabelShakeCount, () => g(!0), { defer: !0 }));
34198
- let O = (t) => {
34199
+ let k = (t) => {
34199
34200
  if (t.isComposing || t.keyCode === 229) return;
34200
34201
  t.stopImmediatePropagation();
34201
34202
  let n = t.code === "Enter" && !t.shiftKey, r = t.code === "Escape";
34202
34203
  n ? (t.preventDefault(), e.onSubmit?.()) : r && (t.preventDefault(), e.onConfirmDismiss?.());
34203
- }, te = (t) => {
34204
+ }, ee = (t) => {
34204
34205
  let n = t.target;
34205
34206
  n instanceof HTMLTextAreaElement && (tW(n, 95), e.onInputChange?.(n.value));
34206
- }, k = () => sW({
34207
+ }, te = () => sW({
34207
34208
  tagName: e.tagName,
34208
34209
  componentName: e.componentName,
34209
34210
  elementsCount: e.elementsCount
@@ -34215,7 +34216,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
34215
34216
  y() && e.onToggleExpand?.();
34216
34217
  }, re = (t) => {
34217
34218
  t.stopImmediatePropagation(), _() && e.isPromptMode && !e.discardPrompt && e.onSubmit && r && nW(r, { preventScroll: !0 });
34218
- }, ie = () => D() && (v() || e.status === "error");
34219
+ }, ie = () => O() && (v() || e.status === "error");
34219
34220
  return X(qR, {
34220
34221
  get when() {
34221
34222
  return Kz(() => e.visible !== !1)() && (e.selectionBounds || ie());
@@ -34233,13 +34234,13 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
34233
34234
  get children() {
34234
34235
  return X(pW, {
34235
34236
  get position() {
34236
- return E();
34237
+ return D();
34237
34238
  },
34238
34239
  get leftPercent() {
34239
- return ee().position.arrowLeftPercent;
34240
+ return E().position.arrowLeftPercent;
34240
34241
  },
34241
34242
  get leftOffsetPx() {
34242
- return ee().position.arrowLeftOffset;
34243
+ return E().position.arrowLeftOffset;
34243
34244
  },
34244
34245
  get labelWidth() {
34245
34246
  return l();
@@ -34298,10 +34299,10 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
34298
34299
  var t = iG(), n = t.firstChild;
34299
34300
  return $(n, X(yW, {
34300
34301
  get tagName() {
34301
- return k().tagName;
34302
+ return te().tagName;
34302
34303
  },
34303
34304
  get componentName() {
34304
- return k().componentName;
34305
+ return te().componentName;
34305
34306
  },
34306
34307
  get isClickable() {
34307
34308
  return !!(e.filePath && e.onOpen);
@@ -34320,10 +34321,10 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
34320
34321
  var t = sG(), n = t.firstChild;
34321
34322
  return $(n, X(yW, {
34322
34323
  get tagName() {
34323
- return k().tagName;
34324
+ return te().tagName;
34324
34325
  },
34325
34326
  get componentName() {
34326
- return k().componentName;
34327
+ return te().componentName;
34327
34328
  },
34328
34329
  get isClickable() {
34329
34330
  return !!(e.filePath && e.onOpen);
@@ -34332,7 +34333,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
34332
34333
  onHoverChange: S
34333
34334
  })), $(t, X(xW, { get children() {
34334
34335
  var t = oG(), n = t.firstChild;
34335
- return n.$$keydown = O, n.$$input = te, cz((t) => {
34336
+ return n.$$keydown = k, n.$$input = ee, cz((t) => {
34336
34337
  r = t, e.onSubmit && queueMicrotask(() => {
34337
34338
  nW(t, { preventScroll: !0 }), tW(t, 95);
34338
34339
  });
@@ -34399,7 +34400,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
34399
34400
  ];
34400
34401
  }
34401
34402
  }), null), aR((t) => {
34402
- var n = oW("fixed font-sans text-[13px] antialiased select-none ease-out"), r = `${ee().position.top}px`, a = `${ee().position.left}px`, o = `translateX(calc(-50% + ${ee().position.edgeOffsetX}px))`, s = b() ? "auto" : "none", c = e.status === "fading" || p() ? 0 : 1, l = `drop-shadow(${kM}) blur(${e.status === "fading" || p() ? "3px" : "0"})`;
34403
+ var n = oW("fixed font-sans text-[13px] antialiased select-none ease-out"), r = `${E().position.top}px`, a = `${E().position.left}px`, o = `translateX(calc(-50% + ${E().position.edgeOffsetX}px))`, s = b() ? "auto" : "none", c = e.status === "fading" || p() ? 0 : 1, l = `drop-shadow(${kM}) blur(${e.status === "fading" || p() ? "3px" : "0"})`;
34403
34404
  return n !== t.e && nz(i, t.e = n), r !== t.t && oz(i, "top", t.t = r), a !== t.a && oz(i, "left", t.a = a), o !== t.o && oz(i, "transform", t.o = o), s !== t.i && oz(i, "pointer-events", t.i = s), c !== t.n && oz(i, "opacity", t.n = c), l !== t.s && oz(i, "filter", t.s = l), t;
34404
34405
  }, {
34405
34406
  e: void 0,
@@ -34770,14 +34771,14 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
34770
34771
  let t, n, r = null, i = EV(), [a, o] = J(!1), [s, c] = J(!1), [l, u] = J(!1), [d, f] = J(i?.edge ?? "bottom"), [p, m] = J(i?.ratio ?? .5), [h, g] = J({
34771
34772
  x: 0,
34772
34773
  y: 0
34773
- }), [_, v] = J(!1), [y, b] = J(!1), [x, S] = J(!1), [C, w] = J(!1), [T, ee] = J(0), [E, D] = J(null), O = () => {
34774
+ }), [_, v] = J(!1), [y, b] = J(!1), [x, S] = J(!1), [C, w] = J(!1), [T, E] = J(0), [D, O] = J(null), k = () => {
34774
34775
  r?.(), r = null, e.isActive || CL();
34775
- }, te = FG({
34776
+ }, ee = FG({
34776
34777
  getContainerRef: () => t,
34777
34778
  isCollapsed: s,
34778
34779
  getExpandedDimensions: () => ce,
34779
34780
  onDragStart: () => {
34780
- D(null), r && O();
34781
+ O(null), r && k();
34781
34782
  },
34782
34783
  onPositionUpdate: (e) => g(e),
34783
34784
  onSnapEdgeChange: (e, t) => {
@@ -34791,7 +34792,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
34791
34792
  enabled: !s()
34792
34793
  });
34793
34794
  }
34794
- }), k = () => d() === "left" || d() === "right", A = () => k() ? "mb-1.5" : "mr-1.5", ne = (t) => e.activeActionId === t, re = () => !!e.isActive && (e.activeActionId ?? "copy") === "copy", ie = (t) => E() === t && !e.isActive && !s() && !te.isDragging() && !te.isSnapping() && !e.isContextMenuOpen, ae = () => {
34795
+ }), te = () => d() === "left" || d() === "right", A = () => te() ? "mb-1.5" : "mr-1.5", ne = (t) => e.activeActionId === t, re = () => !!e.isActive && (e.activeActionId ?? "copy") === "copy", ie = (t) => D() === t && !e.isActive && !s() && !ee.isDragging() && !ee.isSnapping() && !e.isContextMenuOpen, ae = () => {
34795
34796
  switch (d()) {
34796
34797
  case "top": return "bottom";
34797
34798
  case "bottom": return "top";
@@ -34803,10 +34804,10 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
34803
34804
  e.stopImmediatePropagation();
34804
34805
  }, se = (t, n) => ({
34805
34806
  onMouseEnter: (e) => {
34806
- te.isDragging() || (D(t), n?.shouldFreezeInteractions !== !1 && !r && (r = $L(), SL(e.clientX, e.clientY)), n?.onHoverChange?.(!0));
34807
+ ee.isDragging() || (O(t), n?.shouldFreezeInteractions !== !1 && !r && (r = $L(), SL(e.clientX, e.clientY)), n?.onHoverChange?.(!0));
34807
34808
  },
34808
34809
  onMouseLeave: () => {
34809
- D((e) => e === t ? null : e), n?.shouldFreezeInteractions !== !1 && !e.isActive && !e.isContextMenuOpen && O(), n?.onHoverChange?.(!1);
34810
+ O((e) => e === t ? null : e), n?.shouldFreezeInteractions !== !1 && !e.isActive && !e.isContextMenuOpen && k(), n?.onHoverChange?.(!1);
34810
34811
  }
34811
34812
  });
34812
34813
  oR(dR(() => e.shakeCount, (t) => {
@@ -34815,7 +34816,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
34815
34816
  !e && !t && r && (r(), r = null);
34816
34817
  })), oR(dR(() => re(), (e) => {
34817
34818
  if (!e) {
34818
- ee((e) => IG(e, 0));
34819
+ E((e) => IG(e, 0));
34819
34820
  return;
34820
34821
  }
34821
34822
  let t = EM((e) => {
@@ -34823,7 +34824,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
34823
34824
  let t = n.getBoundingClientRect(), r = t.left + t.width / 2, i = t.top + t.height / 2, a = e.clientX - r, o = e.clientY - i;
34824
34825
  if (Math.hypot(a, o) < 4) return;
34825
34826
  let s = Math.atan2(o, a) * 180 / Math.PI - -45;
34826
- ee((e) => IG(e, s));
34827
+ E((e) => IG(e, s));
34827
34828
  });
34828
34829
  window.addEventListener("pointermove", t, { passive: !0 }), pR(() => {
34829
34830
  window.removeEventListener("pointermove", t);
@@ -34839,7 +34840,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
34839
34840
  return MG(e, n, ce, r?.width ?? i.width, r?.height ?? i.height);
34840
34841
  }, pe = () => {
34841
34842
  g(AG(d(), p(), ce.width, ce.height));
34842
- }, me = te.createDragAwareHandler(() => e.onToggle?.()), he = te.createDragAwareHandler(() => e.onActivateAction?.(aN)), ge = te.createDragAwareHandler(() => e.onActivateAction?.(oN)), _e = "group contain-layout flex items-center justify-center cursor-pointer interactive-scale a11y-hitbox", ve = () => oW("relative contain-layout flex items-center justify-center", A()), ye = (e) => e ? "text-[var(--rg-text-primary)]" : "text-[var(--rg-text-secondary)] group-hover:text-[var(--rg-text-primary)]", be = te.createDragAwareHandler(() => {
34843
+ }, me = ee.createDragAwareHandler(() => e.onToggle?.()), he = ee.createDragAwareHandler(() => e.onActivateAction?.(aN)), ge = ee.createDragAwareHandler(() => e.onActivateAction?.(oN)), _e = "group contain-layout flex items-center justify-center cursor-pointer interactive-scale a11y-hitbox", ve = () => oW("relative contain-layout flex items-center justify-center", A()), ye = (e) => e ? "text-[var(--rg-text-primary)]" : "text-[var(--rg-text-secondary)] group-hover:text-[var(--rg-text-primary)]", be = ee.createDragAwareHandler(() => {
34843
34844
  let e = t?.getBoundingClientRect(), n = s(), r = p();
34844
34845
  if (n) {
34845
34846
  let { position: e, ratio: t } = fe(je(), d());
@@ -34869,7 +34870,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
34869
34870
  height: e.height
34870
34871
  }));
34871
34872
  }, Ee = (e, t) => {
34872
- if (!(e === 0 || t === 0) && !(te.isDragging() || te.isSnapping()) && !y()) {
34873
+ if (!(e === 0 || t === 0) && !(ee.isDragging() || ee.isSnapping()) && !y()) {
34873
34874
  if (s()) {
34874
34875
  let n = le();
34875
34876
  if (n.width === e && n.height === t) return;
@@ -34888,11 +34889,11 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
34888
34889
  }, g(AG(d(), p(), e, t)));
34889
34890
  }
34890
34891
  }, De = null, Oe = () => {
34891
- te.isDragging() || te.isSnapping() || De === null && (De = UF(() => {
34892
+ ee.isDragging() || ee.isSnapping() || De === null && (De = UF(() => {
34892
34893
  De = null, pe();
34893
34894
  }));
34894
34895
  }, ke = () => {
34895
- te.isDragging() || (u(!0), pe(), Se && clearTimeout(Se), Se = setTimeout(() => {
34896
+ ee.isDragging() || (u(!0), pe(), Se && clearTimeout(Se), Se = setTimeout(() => {
34896
34897
  u(!1);
34897
34898
  let e = jG(d(), h().x, h().y, ce.width, ce.height);
34898
34899
  m(e), Ae({
@@ -34961,9 +34962,9 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
34961
34962
  clearTimeout(u);
34962
34963
  });
34963
34964
  }), pR(() => {
34964
- window.removeEventListener("resize", ke), window.visualViewport?.removeEventListener("resize", ke), window.visualViewport?.removeEventListener("scroll", ke), window.removeEventListener("scroll", Oe, { capture: !0 }), De !== null && WF(De), clearTimeout(Se), clearTimeout(Ce), r && O();
34965
+ window.removeEventListener("resize", ke), window.visualViewport?.removeEventListener("resize", ke), window.visualViewport?.removeEventListener("scroll", ke), window.removeEventListener("scroll", Oe, { capture: !0 }), De !== null && WF(De), clearTimeout(Se), clearTimeout(Ce), r && k();
34965
34966
  });
34966
- let je = () => s() ? xe() : h(), Me = () => s() ? "cursor-pointer" : te.isDragging() ? "cursor-grabbing" : "cursor-grab", Ne = () => C() || !!e.isContextMenuOpen || te.isDragging() || te.isSnapping() || y() || x(), Pe = () => !!e.isActive && !Ne(), Fe = () => l() || te.isDragging() ? "" : te.isSnapping() ? "transition-[transform,opacity] duration-300 ease-out" : y() ? `transition-[transform,opacity] ${s() ? "duration-140" : "duration-220"} ease-drawer` : "transition-[transform,opacity] duration-400 ease-drawer", Ie = () => {
34967
+ let je = () => s() ? xe() : h(), Me = () => s() ? "cursor-pointer" : ee.isDragging() ? "cursor-grabbing" : "cursor-grab", Ne = () => C() || !!e.isContextMenuOpen || ee.isDragging() || ee.isSnapping() || y() || x(), Pe = () => !!e.isActive && !Ne(), Fe = () => l() || ee.isDragging() ? "" : ee.isSnapping() ? "transition-[transform,opacity] duration-300 ease-out" : y() ? `transition-[transform,opacity] ${s() ? "duration-140" : "duration-220"} ease-drawer` : "transition-[transform,opacity] duration-400 ease-drawer", Ie = () => {
34967
34968
  switch (d()) {
34968
34969
  case "top": return "center top";
34969
34970
  case "bottom": return "center bottom";
@@ -34979,7 +34980,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
34979
34980
  }), r.addEventListener("mouseenter", () => {
34980
34981
  w(!0), s() || e.onSelectHoverChange?.(!0);
34981
34982
  }), rz(r, "mousedown", oe), rz(r, "pointerdown", (e) => {
34982
- oe(e), te.handlePointerDown(e);
34983
+ oe(e), ee.handlePointerDown(e);
34983
34984
  });
34984
34985
  var i = t;
34985
34986
  return typeof i == "function" ? cz(i, r) : t = r, $(r, X(DG, {
@@ -35035,7 +35036,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
35035
35036
  },
35036
35037
  onClick: me,
35037
35038
  onContextMenu: (t) => {
35038
- t.preventDefault(), t.stopPropagation(), D(null), e.onToggleToolbarMenu?.();
35039
+ t.preventDefault(), t.stopPropagation(), O(null), e.onToggleToolbarMenu?.();
35039
35040
  }
35040
35041
  }, () => se(iN), {
35041
35042
  get icon() {
@@ -36179,7 +36180,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
36179
36180
  }
36180
36181
  e.key === "Escape" && (e.preventDefault(), w());
36181
36182
  }
36182
- }, ee = () => {
36183
+ }, E = () => {
36183
36184
  let t = r();
36184
36185
  return {
36185
36186
  cursor: m() && !l() ? "ew-resize" : "default",
@@ -36291,7 +36292,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
36291
36292
  })];
36292
36293
  }
36293
36294
  }), null), aR((t) => {
36294
- var n = e.label ?? "Value", r = e.min, c = e.max, u = e.value, d = `${qB(e.value)}${e.unit}`, m = ee(), h = `${f()}%`, g = +!l(), _ = `calc(${f()}% - 1px)`, v = e.activeKey ? .9 : a() || s() ? .35 : 0;
36295
+ var n = e.label ?? "Value", r = e.min, c = e.max, u = e.value, d = `${qB(e.value)}${e.unit}`, m = E(), h = `${f()}%`, g = +!l(), _ = `calc(${f()}% - 1px)`, v = e.activeKey ? .9 : a() || s() ? .35 : 0;
36295
36296
  return n !== t.e && Q(i, "aria-label", t.e = n), r !== t.t && Q(i, "aria-valuemin", t.t = r), c !== t.a && Q(i, "aria-valuemax", t.a = c), u !== t.o && Q(i, "aria-valuenow", t.o = u), d !== t.i && Q(i, "aria-valuetext", t.i = d), t.n = az(i, m, t.n), h !== t.s && oz(o, "width", t.s = h), g !== t.h && oz(o, "opacity", t.h = g), _ !== t.r && oz(p, "left", t.r = _), v !== t.d && oz(p, "opacity", t.d = v), t;
36296
36297
  }, {
36297
36298
  e: void 0,
@@ -37023,13 +37024,13 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
37023
37024
  }), d = () => {
37024
37025
  let e = u.filteredProperties().findIndex((e) => e.kind === "numeric");
37025
37026
  return e > 0 ? e : 0;
37026
- }, [f, p] = J(d()), m = Y(() => u.hasPendingStyles()), h = Y(() => m() || !!e.state.hasSessionEdits), [g, _] = J(!1), v, y, b, x = !1, [S, C] = J(!1), w = Y(() => S() || m()), [T, ee] = J(!1), E = MV(), D = Y(() => sW({
37027
+ }, [f, p] = J(d()), m = Y(() => u.hasPendingStyles()), h = Y(() => m() || !!e.state.hasSessionEdits), [g, _] = J(!1), v, y, b, x = !1, [S, C] = J(!1), w = Y(() => S() || m()), [T, E] = J(!1), D = MV(), O = Y(() => sW({
37027
37028
  tagName: e.state.tagName,
37028
37029
  componentName: e.state.componentName
37029
- })), O = Y(() => {
37030
+ })), k = Y(() => {
37030
37031
  let e = u.filteredProperties();
37031
37032
  return e.length === 0 ? null : e[Math.min(Math.max(0, f()), e.length - 1)];
37032
- }), te, k = _K(() => te, e.position), A = (e) => {
37033
+ }), ee, te = _K(() => ee, e.position), A = (e) => {
37033
37034
  l(e), clearTimeout(v), v = setTimeout(() => {
37034
37035
  l((t) => t === e ? null : t);
37035
37036
  }, 100);
@@ -37071,9 +37072,9 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
37071
37072
  }, de = () => {
37072
37073
  oe(), s(null), _(!1);
37073
37074
  }, fe = (t, n, i = {}) => {
37074
- u.applyStyle(t, n), r.apply(t.cssProperties, YB(t, n)), e.onPendingEditsChange?.(u.buildPendingEdits()), re(), i.isFromKeyRepeat || we.hide(), i.flashDirection && A(i.flashDirection === 1 ? "right" : "left"), i.shouldFocus && ie(), i.shouldCompact && _(!0), i.source === "keyboard" && E.arm();
37075
+ u.applyStyle(t, n), r.apply(t.cssProperties, YB(t, n)), e.onPendingEditsChange?.(u.buildPendingEdits()), re(), i.isFromKeyRepeat || we.hide(), i.flashDirection && A(i.flashDirection === 1 ? "right" : "left"), i.shouldFocus && ie(), i.shouldCompact && _(!0), i.source === "keyboard" && D.arm();
37075
37076
  }, pe = OV((e) => e.shiftKey), me = OV((e) => e.altKey), he = (t, n, r, i, a) => {
37076
- let o = O();
37077
+ let o = k();
37077
37078
  if (!o) return null;
37078
37079
  let s = bq(o, t, n, r, e.state.designTokens);
37079
37080
  return s === null ? (A(t === 1 ? "right" : "left"), null) : (fe(o, s, {
@@ -37091,7 +37092,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
37091
37092
  isShiftHeld: pe,
37092
37093
  isAltHeld: me
37093
37094
  }), ye = (e, t) => {
37094
- let n = O();
37095
+ let n = k();
37095
37096
  if (n) {
37096
37097
  if (n.kind === "numeric" && typeof e == "number") {
37097
37098
  let r = JB(yB(e, n.min, n.max));
@@ -37102,13 +37103,13 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
37102
37103
  }
37103
37104
  }, be = Y(() => {
37104
37105
  if (!pe()) return null;
37105
- let e = O();
37106
+ let e = k();
37106
37107
  return !e || e.kind !== "numeric" ? null : yK(e.key, e.value);
37107
37108
  }), xe = Xq({
37108
37109
  initialProperties: t,
37109
37110
  searchQuery: i,
37110
37111
  isCompact: g,
37111
- activeProperty: O,
37112
+ activeProperty: k,
37112
37113
  commit: (e, t, n) => {
37113
37114
  fe(e, t, {
37114
37115
  ...n,
@@ -37117,13 +37118,13 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
37117
37118
  },
37118
37119
  setIsCompact: _
37119
37120
  }), Se = Y(() => g() && i() !== "" && xe.isInlineNumericEdit()), Ce = () => {
37120
- we.hide(), E.clear(), e.onSubmit(u.buildPendingEdits());
37121
+ we.hide(), D.clear(), e.onSubmit(u.buildPendingEdits());
37121
37122
  }, we = oq(), Te, Ee = () => {
37122
37123
  Te && (Te.classList.remove("animate-shake"), Te.offsetWidth, Te.classList.add("animate-shake"));
37123
37124
  }, De = (t) => {
37124
37125
  we.hide(), t === "discard" && r.restore(), e.onDismiss();
37125
37126
  }, Oe = (e) => {
37126
- if (ve.cancelRepeat(), e === "pointer" && E.clear(), we.isPending()) {
37127
+ if (ve.cancelRepeat(), e === "pointer" && D.clear(), we.isPending()) {
37127
37128
  De("discard");
37128
37129
  return;
37129
37130
  }
@@ -37137,11 +37138,11 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
37137
37138
  let t = u.filteredProperties();
37138
37139
  t.length !== 0 && (p((n) => (n + e + t.length) % t.length), de());
37139
37140
  }, Ae = () => {
37140
- E.clear(), we.hide();
37141
+ D.clear(), we.hide();
37141
37142
  }, je = [], Me = (e) => (je.push(e), () => {
37142
37143
  je = je.filter((t) => t !== e);
37143
37144
  }), Ne = () => je[je.length - 1] ?? null, Pe = (e, t) => {
37144
- if (O()?.kind === "color") {
37145
+ if (k()?.kind === "color") {
37145
37146
  t.repeat || Ne()?.();
37146
37147
  return;
37147
37148
  }
@@ -37154,7 +37155,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
37154
37155
  Tab: (e) => ke(e.shiftKey ? -1 : 1),
37155
37156
  Enter: () => {
37156
37157
  if (we.isPending()) return;
37157
- let e = O(), t = Ne();
37158
+ let e = k(), t = Ne();
37158
37159
  if (e?.kind === "color" && !u.hasChangedStyleFor(e.key) && t && !h()) {
37159
37160
  t();
37160
37161
  return;
@@ -37181,7 +37182,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
37181
37182
  let e = n.value.length;
37182
37183
  n.setSelectionRange(e, e);
37183
37184
  }
37184
- }), k.measure();
37185
+ }), te.measure();
37185
37186
  let e = i();
37186
37187
  e && xe.applyTailwindClass(e);
37187
37188
  let t = dK({
@@ -37198,10 +37199,10 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
37198
37199
  }), a = EM((e) => {
37199
37200
  ve.releaseKey(e.key);
37200
37201
  }), o = EM((e) => {
37201
- e.pointerType === "mouse" && (we.isPending() || E.consume() && h() && Oe("pointer"));
37202
+ e.pointerType === "mouse" && (we.isPending() || D.consume() && h() && Oe("pointer"));
37202
37203
  });
37203
37204
  window.addEventListener("keydown", r, { capture: !0 }), window.addEventListener("keyup", a, { capture: !0 }), window.addEventListener("pointermove", o, { capture: !0 }), pR(() => {
37204
- t(), window.removeEventListener("keydown", r, { capture: !0 }), window.removeEventListener("keyup", a, { capture: !0 }), window.removeEventListener("pointermove", o, { capture: !0 }), clearTimeout(v), clearTimeout(y), clearTimeout(b), we.cleanup(), k.clearAnimationHandles(), C(!1);
37205
+ t(), window.removeEventListener("keydown", r, { capture: !0 }), window.removeEventListener("keyup", a, { capture: !0 }), window.removeEventListener("pointermove", o, { capture: !0 }), clearTimeout(v), clearTimeout(y), clearTimeout(b), we.cleanup(), te.clearAnimationHandles(), C(!1);
37205
37206
  });
37206
37207
  });
37207
37208
  let j = (e) => {
@@ -37209,13 +37210,13 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
37209
37210
  };
37210
37211
  return X(qR, {
37211
37212
  get when() {
37212
- return k.shouldMount();
37213
+ return te.shouldMount();
37213
37214
  },
37214
37215
  get children() {
37215
37216
  var e = nJ();
37216
37217
  rz(e, "contextmenu", uK, !0), rz(e, "click", uK, !0), rz(e, "mousedown", uK, !0), rz(e, "pointerdown", uK, !0);
37217
- var t = te;
37218
- return typeof t == "function" ? cz(t, e) : te = e, oz(e, "z-index", `${LM}`), oz(e, "--rg-edit-list-max-h", "280px"), $(e, X(TW, {
37218
+ var t = ee;
37219
+ return typeof t == "function" ? cz(t, e) : ee = e, oz(e, "z-index", `${LM}`), oz(e, "--rg-edit-list-max-h", "280px"), $(e, X(TW, {
37219
37220
  ref: (e) => Te = e,
37220
37221
  class: "flex flex-col justify-center items-start overflow-hidden w-fit h-fit",
37221
37222
  get style() {
@@ -37239,12 +37240,12 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
37239
37240
  },
37240
37241
  get children() {
37241
37242
  var e = tJ();
37242
- return e.addEventListener("mouseleave", () => ee(!1)), e.addEventListener("mouseenter", () => ee(!0)), $(e, X(yW, {
37243
+ return e.addEventListener("mouseleave", () => E(!1)), e.addEventListener("mouseenter", () => E(!0)), $(e, X(yW, {
37243
37244
  get tagName() {
37244
- return D().tagName;
37245
+ return O().tagName;
37245
37246
  },
37246
37247
  get componentName() {
37247
- return D().componentName;
37248
+ return O().componentName;
37248
37249
  },
37249
37250
  isClickable: !1,
37250
37251
  onClick: () => {},
@@ -37300,7 +37301,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
37300
37301
  }, cz((e) => {
37301
37302
  n = e;
37302
37303
  }, t), Q(t, "spellcheck", !1), aR((n) => {
37303
- var r = Se() ? "" : "[font-synthesis:none] contain-layout shrink-0 flex flex-col items-start px-2 py-1.5 w-full self-stretch [border-top-width:0.5px] border-t-solid border-t-[var(--rg-border-subtle)] antialiased", i = Se() ? TK : void 0, a = Se() ? -1 : 0, o = g() ? O()?.label ?? "Search property" : "Search property";
37304
+ var r = Se() ? "" : "[font-synthesis:none] contain-layout shrink-0 flex flex-col items-start px-2 py-1.5 w-full self-stretch [border-top-width:0.5px] border-t-solid border-t-[var(--rg-border-subtle)] antialiased", i = Se() ? TK : void 0, a = Se() ? -1 : 0, o = g() ? k()?.label ?? "Search property" : "Search property";
37304
37305
  return r !== n.e && nz(e, n.e = r), n.t = az(e, i, n.t), a !== n.a && Q(t, "tabindex", n.a = a), o !== n.o && Q(t, "placeholder", n.o = o), n;
37305
37306
  }, {
37306
37307
  e: void 0,
@@ -37348,7 +37349,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
37348
37349
  }),
37349
37350
  X(qR, {
37350
37351
  get when() {
37351
- return Kz(() => !!g())() && O();
37352
+ return Kz(() => !!g())() && k();
37352
37353
  },
37353
37354
  children: (e) => (() => {
37354
37355
  var t = rJ();
@@ -37376,7 +37377,7 @@ var yz, bz, xz, Sz, Cz, wz, Tz, Ez, Dz, Oz, kz, Az, jz, Mz, Nz, Pz, Fz, Iz, Lz,
37376
37377
  ];
37377
37378
  }
37378
37379
  })), aR((t) => {
37379
- var n = g() ? "true" : "false", r = oW("fixed font-sans text-[13px] antialiased [filter:var(--rg-drop-shadow)] select-none", k.isAnimatedIn() ? "transition-[opacity,transform] duration-220 ease-spring" : "transition-[opacity,transform] duration-120 ease-drawer"), i = `${k.displayPosition().top}px`, a = `${k.displayPosition().left}px`, o = k.isAnimatedIn() ? "auto" : "none", s = dN[k.lastAnchorEdge()], c = k.isAnimatedIn() ? "1" : "0", l = k.isAnimatedIn() ? "scale(1)" : "scale(0.92)";
37380
+ var n = g() ? "true" : "false", r = oW("fixed font-sans text-[13px] antialiased [filter:var(--rg-drop-shadow)] select-none", te.isAnimatedIn() ? "transition-[opacity,transform] duration-220 ease-spring" : "transition-[opacity,transform] duration-120 ease-drawer"), i = `${te.displayPosition().top}px`, a = `${te.displayPosition().left}px`, o = te.isAnimatedIn() ? "auto" : "none", s = dN[te.lastAnchorEdge()], c = te.isAnimatedIn() ? "1" : "0", l = te.isAnimatedIn() ? "scale(1)" : "scale(0.92)";
37380
37381
  return n !== t.e && Q(e, "data-rg-compact", t.e = n), r !== t.t && nz(e, t.t = r), i !== t.a && oz(e, "top", t.a = i), a !== t.o && oz(e, "left", t.o = a), o !== t.i && oz(e, "pointer-events", t.i = o), s !== t.n && oz(e, "transform-origin", t.n = s), c !== t.s && oz(e, "opacity", t.s = c), l !== t.h && oz(e, "transform", t.h = l), t;
37381
37382
  }, {
37382
37383
  e: void 0,
@@ -39981,7 +39982,7 @@ var kJ, AJ, jJ, MJ, NJ, PJ, FJ, IJ, LJ, RJ, zJ, BJ, VJ, HJ, UJ, WJ, GJ, KJ, qJ,
39981
39982
  oR(dR(d, (e, t) => {
39982
39983
  e && !t ? (SL(s().x, s().y), C("touchAction", "none")) : !e && t && (CL(), C("touchAction", ""));
39983
39984
  }));
39984
- let w = EV(), [T, ee] = J(!w || !w.collapsed), [E, D] = J(0), [O, te] = J(0), [k, A] = J(w), [ne, re] = J(!1), ie = OV((e) => e.shiftKey), [ae, oe] = J(null), [se, ce] = J(null), [le, ue] = J(null), de = RX({
39985
+ let w = EV(), [T, E] = J(!w || !w.collapsed), [D, O] = J(0), [k, ee] = J(0), [te, A] = J(w), [ne, re] = J(!1), ie = OV((e) => e.shiftKey), [ae, oe] = J(null), [se, ce] = J(null), [le, ue] = J(null), de = RX({
39985
39986
  store: i,
39986
39987
  actions: o,
39987
39988
  isActivated: d,
@@ -39999,7 +40000,7 @@ var kJ, AJ, jJ, MJ, NJ, PJ, FJ, IJ, LJ, RJ, zJ, BJ, VJ, HJ, UJ, WJ, GJ, KJ, qJ,
39999
40000
  }, Se = () => {
40000
40001
  Le(!1), xe();
40001
40002
  }, Ce = (e) => {
40002
- let t = k() ?? EV(), n = {
40003
+ let t = te() ?? EV(), n = {
40003
40004
  edge: t?.edge ?? "bottom",
40004
40005
  ratio: t?.ratio ?? .5,
40005
40006
  collapsed: t?.collapsed ?? !1,
@@ -40402,7 +40403,7 @@ var kJ, AJ, jJ, MJ, NJ, PJ, FJ, IJ, LJ, RJ, zJ, BJ, VJ, HJ, UJ, WJ, GJ, KJ, qJ,
40402
40403
  grabbedBoxes: [...Vt()],
40403
40404
  labelInstances: [...Ht()],
40404
40405
  selectionFilePath: i.selectionFilePath,
40405
- toolbarState: k()
40406
+ toolbarState: te()
40406
40407
  };
40407
40408
  }), (e) => {
40408
40409
  r.hooks.onStateChange(e);
@@ -40498,7 +40499,7 @@ var kJ, AJ, jJ, MJ, NJ, PJ, FJ, IJ, LJ, RJ, zJ, BJ, VJ, HJ, UJ, WJ, GJ, KJ, qJ,
40498
40499
  o.clearInputText(), Kt();
40499
40500
  return;
40500
40501
  }
40501
- o.setPendingDismiss(!0), te((e) => e + 1);
40502
+ o.setPendingDismiss(!0), ee((e) => e + 1);
40502
40503
  }
40503
40504
  }, Zt = () => {
40504
40505
  if (ye.isPendingDismiss()) {
@@ -40558,7 +40559,7 @@ var kJ, AJ, jJ, MJ, NJ, PJ, FJ, IJ, LJ, RJ, zJ, BJ, VJ, HJ, UJ, WJ, GJ, KJ, qJ,
40558
40559
  }
40559
40560
  T() && (Ge = e, Je(e), Ke(!0), Jt());
40560
40561
  }, sn = () => {
40561
- on(k()?.defaultAction ?? "copy");
40562
+ on(te()?.defaultAction ?? "copy");
40562
40563
  }, cn = (e, t, n) => {
40563
40564
  rn(), o.clearInputText(), o.enterPromptMode({
40564
40565
  x: t,
@@ -40769,7 +40770,7 @@ var kJ, AJ, jJ, MJ, NJ, PJ, FJ, IJ, LJ, RJ, zJ, BJ, VJ, HJ, UJ, WJ, GJ, KJ, qJ,
40769
40770
  let n = HJ(VJ(e));
40770
40771
  o.setPointer(n), i.contextMenuPosition !== null && o.showContextMenu(n, e);
40771
40772
  }, En = () => {
40772
- ye.showDismissPrompt() && te((e) => e + 1);
40773
+ ye.showDismissPrompt() && ee((e) => e + 1);
40773
40774
  }, Dn = () => {
40774
40775
  ye.clear(), o.unfreeze(), wn();
40775
40776
  }, On = () => {
@@ -40890,7 +40891,7 @@ var kJ, AJ, jJ, MJ, NJ, PJ, FJ, IJ, LJ, RJ, zJ, BJ, VJ, HJ, UJ, WJ, GJ, KJ, qJ,
40890
40891
  xn.addWindowListener("keydown", EM((e) => {
40891
40892
  if (kn(e) && Zz(e) || Hn(e)) return;
40892
40893
  if (Cn(e), !T()) {
40893
- KY(e, r.store.options) && !e.repeat && D((e) => e + 1);
40894
+ KY(e, r.store.options) && !e.repeat && O((e) => e + 1);
40894
40895
  return;
40895
40896
  }
40896
40897
  let t = rZ(e.code) && u() && !b(), n = CB(e, nN);
@@ -41355,7 +41356,7 @@ var kJ, AJ, jJ, MJ, NJ, PJ, FJ, IJ, LJ, RJ, zJ, BJ, VJ, HJ, UJ, WJ, GJ, KJ, qJ,
41355
41356
  onInputSubmit: () => void Yt(),
41356
41357
  onToggleExpand: $t,
41357
41358
  get selectionLabelShakeCount() {
41358
- return O();
41359
+ return k();
41359
41360
  },
41360
41361
  onConfirmDismiss: Zt,
41361
41362
  get discardPrompt() {
@@ -41383,10 +41384,10 @@ var kJ, AJ, jJ, MJ, NJ, PJ, FJ, IJ, LJ, RJ, zJ, BJ, VJ, HJ, UJ, WJ, GJ, KJ, qJ,
41383
41384
  return T();
41384
41385
  },
41385
41386
  get shakeCount() {
41386
- return E();
41387
+ return D();
41387
41388
  },
41388
41389
  onToolbarStateChange: (e) => {
41389
- A(e), e.enabled !== T() && (ee(e.enabled), e.enabled || (qt(), Ar())), mZ.forEach((t) => t(e));
41390
+ A(e), e.enabled !== T() && (E(e.enabled), e.enabled || (qt(), Ar())), mZ.forEach((t) => t(e));
41390
41391
  },
41391
41392
  onSubscribeToToolbarStateChanges: (e) => (mZ.add(e), () => {
41392
41393
  mZ.delete(e);
@@ -41425,7 +41426,7 @@ var kJ, AJ, jJ, MJ, NJ, PJ, FJ, IJ, LJ, RJ, zJ, BJ, VJ, HJ, UJ, WJ, GJ, KJ, qJ,
41425
41426
  return r.store.actions.filter((e) => e.showInToolbarMenu === !0);
41426
41427
  },
41427
41428
  get defaultActionId() {
41428
- return k()?.defaultAction ?? "copy";
41429
+ return te()?.defaultAction ?? "copy";
41429
41430
  },
41430
41431
  onSetDefaultAction: Mr,
41431
41432
  onToggleToolbarMenu: jr,
@@ -41466,21 +41467,21 @@ var kJ, AJ, jJ, MJ, NJ, PJ, FJ, IJ, LJ, RJ, zJ, BJ, VJ, HJ, UJ, WJ, GJ, KJ, qJ,
41466
41467
  isActive: () => d(),
41467
41468
  isEnabled: () => T(),
41468
41469
  setEnabled: (e) => {
41469
- e !== T() && (ee(e), Ce({
41470
+ e !== T() && (E(e), Ce({
41470
41471
  enabled: e,
41471
41472
  collapsed: !e
41472
41473
  }), e || (qt(), Ar()));
41473
41474
  },
41474
- getToolbarState: () => k() ?? EV(),
41475
+ getToolbarState: () => te() ?? EV(),
41475
41476
  setToolbarState: (e) => {
41476
- let t = k() ?? EV(), n = e.collapsed ?? t?.collapsed ?? !1, r = {
41477
+ let t = te() ?? EV(), n = e.collapsed ?? t?.collapsed ?? !1, r = {
41477
41478
  edge: e.edge ?? t?.edge ?? "bottom",
41478
41479
  ratio: e.ratio ?? t?.ratio ?? .5,
41479
41480
  collapsed: n,
41480
41481
  enabled: e.enabled ?? !n,
41481
41482
  defaultAction: e.defaultAction ?? t?.defaultAction ?? "copy"
41482
41483
  };
41483
- DV(r), A(r), r.enabled !== T() && (ee(r.enabled), r.enabled || (qt(), Ar())), mZ.forEach((e) => e(r));
41484
+ DV(r), A(r), r.enabled !== T() && (E(r.enabled), r.enabled || (qt(), Ar())), mZ.forEach((e) => e(r));
41484
41485
  },
41485
41486
  onToolbarStateChange: (e) => (mZ.add(e), () => {
41486
41487
  mZ.delete(e);
@@ -41516,7 +41517,7 @@ var kJ, AJ, jJ, MJ, NJ, PJ, FJ, IJ, LJ, RJ, zJ, BJ, VJ, HJ, UJ, WJ, GJ, KJ, qJ,
41516
41517
  grabbedBoxes: [...Vt()],
41517
41518
  labelInstances: [...Ht()],
41518
41519
  selectionFilePath: i.selectionFilePath,
41519
- toolbarState: k()
41520
+ toolbarState: te()
41520
41521
  }),
41521
41522
  setOptions: (e) => {
41522
41523
  r.setOptions(e);
@@ -41779,7 +41780,7 @@ function aQ() {
41779
41780
  }, [g, _] = T(BD());
41780
41781
  ae(VD(_));
41781
41782
  let [v, y] = T(0);
41782
- D(() => {
41783
+ O(() => {
41783
41784
  if (g().phase !== "recording") return;
41784
41785
  let e = setInterval(() => y(Date.now() - (BD().startedAt ?? Date.now())), 250);
41785
41786
  ae(() => clearInterval(e));
@@ -41787,16 +41788,16 @@ function aQ() {
41787
41788
  let b = (e) => {
41788
41789
  let t = Math.floor(e / 1e3);
41789
41790
  return `${Math.floor(t / 60)}:${String(t % 60).padStart(2, "0")}`;
41790
- }, [x, S] = T("idle"), [C, w] = T(null), ee = async () => {
41791
+ }, [x, S] = T("idle"), [C, w] = T(null), E = async () => {
41791
41792
  let e = BD().result;
41792
41793
  if (!e) throw Error("No recording available.");
41793
41794
  if (e.assetUrl) return e.assetUrl;
41794
41795
  let t = await xO(e.blob, `recording-${Date.now()}.gif`);
41795
41796
  return tO(t), t;
41796
- }, O = async () => {
41797
+ }, k = async () => {
41797
41798
  w(null), S("busy");
41798
41799
  try {
41799
- let e = ee().then((e) => new Blob([`![Screen recording](${e})`], { type: "text/plain" }));
41800
+ let e = E().then((e) => new Blob([`![Screen recording](${e})`], { type: "text/plain" }));
41800
41801
  try {
41801
41802
  await navigator.clipboard.write([new ClipboardItem({ "text/plain": e })]);
41802
41803
  } catch {
@@ -41807,12 +41808,12 @@ function aQ() {
41807
41808
  } catch {
41808
41809
  S("idle"), await ne(), w("Direct upload is blocked in this browser — copied the GIF instead. Paste it into a Linear comment and Linear uploads it.");
41809
41810
  }
41810
- }, te = () => {
41811
+ }, ee = () => {
41811
41812
  let e = g().result;
41812
41813
  if (!e) return;
41813
41814
  let t = document.createElement("a");
41814
41815
  t.href = e.url, t.download = "linear-grab-recording.gif", t.click();
41815
- }, [k, A] = T("idle"), ne = async () => {
41816
+ }, [te, A] = T("idle"), ne = async () => {
41816
41817
  let e = g().result;
41817
41818
  if (e) {
41818
41819
  w(null), A("busy");
@@ -41905,7 +41906,7 @@ function aQ() {
41905
41906
  },
41906
41907
  get children() {
41907
41908
  var t = ZZ();
41908
- return E(() => it(t, "src", e.screenshotDataUrl)), t;
41909
+ return D(() => it(t, "src", e.screenshotDataUrl)), t;
41909
41910
  }
41910
41911
  }), null), t;
41911
41912
  })()
@@ -42026,7 +42027,7 @@ function aQ() {
42026
42027
  return i() ? "Copy markdown — uploads to Linear, copies embeddable link" : "Connect Linear in Settings first";
42027
42028
  },
42028
42029
  "aria-label": "Copy markdown",
42029
- onClick: () => void O(),
42030
+ onClick: () => void k(),
42030
42031
  get children() {
42031
42032
  return j(M, {
42032
42033
  get when() {
@@ -42044,7 +42045,7 @@ function aQ() {
42044
42045
  variant: "ghost",
42045
42046
  class: "size-7 px-0",
42046
42047
  get loading() {
42047
- return k() === "busy";
42048
+ return te() === "busy";
42048
42049
  },
42049
42050
  title: "Copy GIF — paste into a Linear comment and Linear uploads it",
42050
42051
  "aria-label": "Copy GIF",
@@ -42052,7 +42053,7 @@ function aQ() {
42052
42053
  get children() {
42053
42054
  return j(M, {
42054
42055
  get when() {
42055
- return k() === "copied";
42056
+ return te() === "copied";
42056
42057
  },
42057
42058
  get fallback() {
42058
42059
  return $Z();
@@ -42067,7 +42068,7 @@ function aQ() {
42067
42068
  class: "size-7 px-0",
42068
42069
  title: "Download GIF",
42069
42070
  "aria-label": "Download GIF",
42070
- onClick: te,
42071
+ onClick: ee,
42071
42072
  get children() {
42072
42073
  return eQ();
42073
42074
  }
@@ -42089,7 +42090,7 @@ function aQ() {
42089
42090
  return C();
42090
42091
  } });
42091
42092
  }
42092
- }), null), E(() => it(n, "src", e().url)), E(() => l.checked = g().attachOnCreate), t;
42093
+ }), null), D(() => it(n, "src", e().url)), D(() => l.checked = g().attachOnCreate), t;
42093
42094
  })()
42094
42095
  })
42095
42096
  ];
@@ -42780,7 +42781,7 @@ function DQ(e) {
42780
42781
  return s.setOptions(t), ie(() => {
42781
42782
  let e = s._didMount();
42782
42783
  s._willUpdate(), ae(e);
42783
- }), ee(() => {
42784
+ }), E(() => {
42784
42785
  s.setOptions(Ve(t, e, { onChange: (t, n) => {
42785
42786
  var r;
42786
42787
  t._willUpdate(), i(ar(t.getVirtualItems(), { key: "index" })), o(t.getTotalSize()), (r = e.onChange) == null || r.call(e, t, n);
@@ -42943,10 +42944,10 @@ function JQ(e) {
42943
42944
  //#endregion
42944
42945
  //#region src/panel/views/ActivityView.tsx
42945
42946
  Rr();
42946
- var YQ = /*#__PURE__*/ N("<div class=\"flex h-full flex-col\">"), XQ = /*#__PURE__*/ N("<span class=\"tabular-nums text-[10.5px] text-text-faint\">live · updated "), ZQ = /*#__PURE__*/ N("<svg aria-hidden width=11 height=11 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d=\"M1 4.5A7 7 0 0 1 13.5 3\"></path><path d=\"M15 11.5A7 7 0 0 1 2.5 13\"></path><polyline points=\"1 1 1 5 5 5\"></polyline><polyline points=\"15 11 15 15 11 15\">"), QQ = /*#__PURE__*/ N("<div class=\"flex-1 overflow-y-auto\">"), $Q = /*#__PURE__*/ N("<div class=\"min-h-0 flex-1 overflow-y-auto pl-2 pr-3\"><div style=position:relative>"), e$ = /*#__PURE__*/ N("<div class=\"flex h-full flex-col\"><div class=\"border-border flex shrink-0 items-center justify-between border-b px-3 py-2\"><span class=\"text-text text-[12px] font-semibold\">My issues</span><div class=\"flex items-center gap-2\">"), t$ = /*#__PURE__*/ N("<div style=position:absolute;top:0;left:0;width:100%>"), n$ = /*#__PURE__*/ N("<button class=\"w-full cursor-pointer rounded-md px-2 py-1.5 text-left hover:bg-surface-2 transition-colors\"><div class=\"flex items-center gap-1.5 min-w-0\"><span class=\"font-mono text-[11px] text-text-dim shrink-0\"></span><span class=\"truncate text-[12.5px] text-text\"></span></div><div class=\"mt-0.5 flex items-center gap-1.5\"><span class=\"ml-auto tabular-nums text-[10.5px] text-text-faint\">"), r$ = /*#__PURE__*/ N("<span class=\"inline-block min-w-[6ch] text-left\">← Back"), i$ = /*#__PURE__*/ N("<span class=\"font-mono text-[11px] text-text-dim shrink-0\">"), a$ = /*#__PURE__*/ N("<span class=\"truncate text-[12px] font-medium text-text\">"), o$ = /*#__PURE__*/ N("<span class=\"text-[11.5px] text-text-faint\">Loading…"), s$ = /*#__PURE__*/ N("<div class=\"flex items-center gap-2\"><span class=\"text-[11px] text-text-dim\">"), c$ = /*#__PURE__*/ N("<div class=\"flex flex-col gap-2\">"), l$ = /*#__PURE__*/ N("<div class=\"flex flex-col gap-1\"><span class=\"text-[10.5px] font-semibold uppercase tracking-wide text-text-dim\">Attachments</span><div class=\"flex flex-col gap-1\">"), u$ = /*#__PURE__*/ N("<div class=\"flex flex-col gap-2.5\"><span class=\"text-[10.5px] font-semibold uppercase tracking-wide text-text-dim\">Comments"), d$ = /*#__PURE__*/ N("<option value=new>Start NEW agent (@<!>)"), f$ = /*#__PURE__*/ N("<option value=comment>Comment only"), p$ = /*#__PURE__*/ N("<svg width=13 height=13 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round aria-hidden><circle cx=8 cy=8 r=2.2></circle><path d=\"M8 1v3M8 12v3M1 8h3M12 8h3\">"), m$ = /*#__PURE__*/ N("<svg width=13 height=13 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round aria-hidden><path d=\"M13 7.5 8.2 12.3a3.2 3.2 0 0 1-4.5-4.5L8.9 2.6a2.1 2.1 0 0 1 3 3L7.1 10.4a1 1 0 0 1-1.5-1.5l4.3-4.3\">"), h$ = /*#__PURE__*/ N("<span class=\"inline-block min-w-[4ch] text-left\">Send"), g$ = /*#__PURE__*/ N("<div class=\"flex h-full flex-col\"><div class=\"border-border flex shrink-0 flex-col gap-1 border-b px-3 py-2\"><div class=\"flex items-center gap-2\"></div></div><div class=\"min-h-0 flex-1 overflow-y-auto pl-3 pr-4 py-3 flex flex-col gap-3\"></div><div class=\"border-border shrink-0 border-t p-2.5 flex flex-col gap-1.5\"><div class=\"flex items-center gap-2\">"), _$ = /*#__PURE__*/ N("<div class=\"bg-surface border-border overflow-clip rounded-lg border\"><div class=\"border-border flex h-9 min-w-0 items-center justify-between gap-2 border-b px-3\"><div class=\"flex min-w-0 items-center gap-1.5 text-[11.5px] font-medium\"><span aria-hidden class=\"text-text-dim inline-flex\"></span><span class=\"text-text shrink-0\">Local Claude Code</span><span class=\"text-text-dim shrink-0\">started by you</span><span class=\"text-text-faint shrink-0 tabular-nums\">· </span></div></div><button class=\"hover:bg-surface-2 flex h-9 w-full min-w-0 cursor-pointer items-center gap-2 px-3 text-left transition-colors\"title=\"Open the live thread in the Local tab\"><span></span><span class=\"text-text-faint min-w-0 flex-1 truncate text-[11.5px]\"></span><svg width=14 height=14 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round aria-hidden class=\"text-text-dim shrink-0\"><path d=\"m6 3.5 4.5 4.5L6 12.5\">"), v$ = /*#__PURE__*/ N("<span class=\"inline-block min-w-[6ch] text-center\">"), y$ = /*#__PURE__*/ N("<div class=\"flex min-w-0 items-center gap-1.5\"><a target=_blank rel=noreferrer class=\"text-accent min-w-0 truncate text-[11.5px] hover:underline\">"), b$ = /*#__PURE__*/ N("<div class=\"flex flex-col gap-0.5\"><div class=\"flex items-center gap-1.5\"><span class=\"text-[11px] font-medium text-text-dim\"></span><span class=\"ml-auto tabular-nums text-[10.5px] text-text-faint\"></span></div><div class=\"lg-md text-text text-[12px] leading-relaxed break-words\">"), x$ = /*#__PURE__*/ N("<option>Steer running agent<!> · "), S$ = /*#__PURE__*/ N("<span class=\"text-[11px] text-text-dim\">"), C$ = /*#__PURE__*/ N("<p class=\"text-[12px] text-text leading-relaxed whitespace-pre-wrap break-words\">"), w$ = /*#__PURE__*/ N("<div class=\"flex flex-col gap-0.5 border-t border-border pt-1.5 mt-0.5\">"), T$ = /*#__PURE__*/ N("<div class=\"bg-surface border-border rounded-lg border p-2.5 flex flex-col gap-1.5\"><div class=\"flex items-center gap-1.5 flex-wrap\"><span class=\"ml-auto tabular-nums text-[10.5px] text-text-faint\">"), E$ = /*#__PURE__*/ N("<div class=\"flex items-start gap-1.5\"><span class=\"tabular-nums text-[10px] text-text-faint shrink-0 mt-px\"></span><span class=\"text-[11px] text-text-dim break-words min-w-0\">");
42947
+ var YQ = /*#__PURE__*/ N("<div class=\"flex h-full flex-col\">"), XQ = /*#__PURE__*/ N("<span class=\"tabular-nums text-[10.5px] text-text-faint\">live · updated "), ZQ = /*#__PURE__*/ N("<svg aria-hidden width=11 height=11 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d=\"M1 4.5A7 7 0 0 1 13.5 3\"></path><path d=\"M15 11.5A7 7 0 0 1 2.5 13\"></path><polyline points=\"1 1 1 5 5 5\"></polyline><polyline points=\"15 11 15 15 11 15\">"), QQ = /*#__PURE__*/ N("<div class=\"flex-1 overflow-y-auto\">"), $Q = /*#__PURE__*/ N("<div class=\"min-h-0 flex-1 overflow-y-auto pl-2 pr-3\"><div style=position:relative>"), e$ = /*#__PURE__*/ N("<div class=\"flex h-full flex-col\"><div class=\"border-border flex shrink-0 items-center justify-between border-b px-3 py-2\"><span class=\"text-text text-[12px] font-semibold\">My issues</span><div class=\"flex items-center gap-2\">"), t$ = /*#__PURE__*/ N("<div style=position:absolute;top:0;left:0;width:100%>"), n$ = /*#__PURE__*/ N("<button class=\"w-full cursor-pointer rounded-md px-2 py-1.5 text-left hover:bg-surface-2 transition-colors\"><div class=\"flex items-center gap-1.5 min-w-0\"><span class=\"font-mono text-[11px] text-text-dim shrink-0\"></span><span class=\"truncate text-[12.5px] text-text\"></span></div><div class=\"mt-0.5 flex items-center gap-1.5\"><span class=\"ml-auto tabular-nums text-[10.5px] text-text-faint\">"), r$ = /*#__PURE__*/ N("<span class=\"inline-block min-w-[6ch] text-left\">← Back"), i$ = /*#__PURE__*/ N("<span class=\"font-mono text-[11px] text-text-dim shrink-0\">"), a$ = /*#__PURE__*/ N("<span class=\"truncate text-[12px] font-medium text-text\">"), o$ = /*#__PURE__*/ N("<span class=\"text-[11.5px] text-text-faint\">Loading…"), s$ = /*#__PURE__*/ N("<div class=\"flex items-center gap-2\"><span class=\"text-[11px] text-text-dim\">"), c$ = /*#__PURE__*/ N("<div class=\"flex flex-col gap-2\">"), l$ = /*#__PURE__*/ N("<div class=\"flex flex-col gap-1\"><span class=\"text-[10.5px] font-semibold uppercase tracking-wide text-text-dim\">Attachments</span><div class=\"flex flex-col gap-1\">"), u$ = /*#__PURE__*/ N("<div class=\"flex flex-col gap-2.5\"><span class=\"text-[10.5px] font-semibold uppercase tracking-wide text-text-dim\">Comments"), d$ = /*#__PURE__*/ N("<option value=new>Start NEW agent (@<!>)"), f$ = /*#__PURE__*/ N("<option value=comment>Comment only"), p$ = /*#__PURE__*/ N("<svg width=13 height=13 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round aria-hidden><circle cx=8 cy=8 r=2.2></circle><path d=\"M8 1v3M8 12v3M1 8h3M12 8h3\">"), m$ = /*#__PURE__*/ N("<svg width=13 height=13 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round aria-hidden><path d=\"M13 7.5 8.2 12.3a3.2 3.2 0 0 1-4.5-4.5L8.9 2.6a2.1 2.1 0 0 1 3 3L7.1 10.4a1 1 0 0 1-1.5-1.5l4.3-4.3\">"), h$ = /*#__PURE__*/ N("<span class=\"inline-block min-w-[4ch] text-left\">Send"), g$ = /*#__PURE__*/ N("<div class=\"flex h-full flex-col\"><div class=\"border-border flex shrink-0 flex-col gap-1 border-b px-3 py-2\"><div class=\"flex items-center gap-2\"></div></div><div class=\"min-h-0 flex-1 overflow-y-auto pl-3 pr-4 py-3 flex flex-col gap-3\"></div><div class=\"border-border shrink-0 border-t p-2.5 flex flex-col gap-1.5\"><div class=\"flex items-center gap-2\">"), _$ = /*#__PURE__*/ N("<div class=\"bg-surface border-border overflow-clip rounded-lg border\"><div class=\"border-border flex h-9 min-w-0 items-center justify-between gap-2 border-b px-3\"><div class=\"flex min-w-0 items-center gap-1.5 text-[11.5px] font-medium\"><span aria-hidden class=\"text-text-dim inline-flex\"></span><span class=\"text-text shrink-0\">Local Claude Code</span><span class=\"text-text-dim shrink-0\">started by you</span><span class=\"text-text-faint shrink-0 tabular-nums\">· </span></div></div><button class=\"hover:bg-surface-2 flex h-9 w-full min-w-0 cursor-pointer items-center gap-2 px-3 text-left transition-colors\"title=\"Open the live thread in the Local tab\"><span></span><span class=\"text-text-faint min-w-0 flex-1 truncate text-[11.5px]\"></span><svg width=14 height=14 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round aria-hidden class=\"text-text-dim shrink-0\"><path d=\"m6 3.5 4.5 4.5L6 12.5\">"), v$ = /*#__PURE__*/ N("<span class=\"inline-block min-w-[6ch] text-center\">Merge"), y$ = /*#__PURE__*/ N("<div class=\"flex min-w-0 items-center gap-1.5\"><a target=_blank rel=noreferrer class=\"text-accent min-w-0 truncate text-[11.5px] hover:underline\">"), b$ = /*#__PURE__*/ N("<div class=\"flex flex-col gap-0.5\"><div class=\"flex items-center gap-1.5\"><span class=\"text-[11px] font-medium text-text-dim\"></span><span class=\"ml-auto tabular-nums text-[10.5px] text-text-faint\"></span></div><div class=\"lg-md text-text text-[12px] leading-relaxed break-words\">"), x$ = /*#__PURE__*/ N("<option>Steer running agent<!> · "), S$ = /*#__PURE__*/ N("<span class=\"text-[11px] text-text-dim\">"), C$ = /*#__PURE__*/ N("<p class=\"text-[12px] text-text leading-relaxed whitespace-pre-wrap break-words\">"), w$ = /*#__PURE__*/ N("<div class=\"flex flex-col gap-0.5 border-t border-border pt-1.5 mt-0.5\">"), T$ = /*#__PURE__*/ N("<div class=\"bg-surface border-border rounded-lg border p-2.5 flex flex-col gap-1.5\"><div class=\"flex items-center gap-1.5 flex-wrap\"><span class=\"ml-auto tabular-nums text-[10.5px] text-text-faint\">"), E$ = /*#__PURE__*/ N("<div class=\"flex items-start gap-1.5\"><span class=\"tabular-nums text-[10px] text-text-faint shrink-0 mt-px\"></span><span class=\"text-[11px] text-text-dim break-words min-w-0\">");
42947
42948
  function D$() {
42948
42949
  let [e, t] = T(null);
42949
- return D(() => {
42950
+ return O(() => {
42950
42951
  let e = qA();
42951
42952
  e && (t(e), XA());
42952
42953
  }), (() => {
@@ -42974,7 +42975,7 @@ function O$(e) {
42974
42975
  queryKey: ["my-issues"],
42975
42976
  queryFn: uO,
42976
42977
  refetchInterval: 12e3
42977
- })), r = O(() => n.data ?? []), i = OQ({
42978
+ })), r = k(() => n.data ?? []), i = OQ({
42978
42979
  get count() {
42979
42980
  return r().length;
42980
42981
  },
@@ -43038,7 +43039,7 @@ function O$(e) {
43038
43039
  return i.getVirtualItems();
43039
43040
  },
43040
43041
  children: (t) => {
43041
- let n = O(() => r()[t.index]);
43042
+ let n = k(() => r()[t.index]);
43042
43043
  return (() => {
43043
43044
  var r = t$();
43044
43045
  return P(r, j(k$, {
@@ -43048,10 +43049,10 @@ function O$(e) {
43048
43049
  get onSelect() {
43049
43050
  return e.onSelect;
43050
43051
  }
43051
- })), E((e) => dt(r, "transform", `translateY(${t.start}px)`)), r;
43052
+ })), D((e) => dt(r, "transform", `translateY(${t.start}px)`)), r;
43052
43053
  })();
43053
43054
  }
43054
- })), E((e) => dt(a, "height", `${i.getTotalSize()}px`)), n;
43055
+ })), D((e) => dt(a, "height", `${i.getTotalSize()}px`)), n;
43055
43056
  }
43056
43057
  }), null), a;
43057
43058
  })();
@@ -43111,7 +43112,7 @@ function A$(e) {
43111
43112
  queryFn: DO,
43112
43113
  refetchInterval: 5e3,
43113
43114
  retry: 0
43114
- })), o = O(() => {
43115
+ })), o = k(() => {
43115
43116
  let e = n.data?.identifier;
43116
43117
  return e ? a.data?.find((t) => t.title.startsWith(e)) : void 0;
43117
43118
  }), s = (e) => e.status === "running" ? {
@@ -43141,7 +43142,7 @@ function A$(e) {
43141
43142
  }, v = () => {
43142
43143
  p(Date.now()), $A("composer"), FZ().catch(() => $A("capture"));
43143
43144
  };
43144
- D(() => {
43145
+ O(() => {
43145
43146
  if (ZA() !== "composer") return;
43146
43147
  let e = (m.data ?? []).filter((e) => e.grabbedAt >= f());
43147
43148
  if (!e.length) return;
@@ -43151,27 +43152,33 @@ function A$(e) {
43151
43152
  }).join("\n");
43152
43153
  l((e) => `${e ? `${e}\n` : ""}${t}\n`), $A("capture");
43153
43154
  });
43154
- let [y, b] = T(null), [x, S] = T(/* @__PURE__ */ new Set()), [C, w] = T(null), ee = async (n) => {
43155
- w(null), b(n);
43155
+ let y = /github\.com\/[^/]+\/[^/]+\/pull\/\d+/i, b = k(() => (n.data?.attachments ?? []).map((e) => e.url).filter((e) => y.test(e))), x = _r(() => ({
43156
+ queryKey: ["pr-status", b().sort().join("|")],
43157
+ queryFn: () => IO(b()),
43158
+ refetchInterval: 3e4,
43159
+ retry: 0,
43160
+ enabled: b().length > 0
43161
+ })), S = (e) => E().has(e) ? "MERGED" : x.data?.[e], [C, w] = T(null), [E, ee] = T(/* @__PURE__ */ new Set()), [te, A] = T(null), ne = async (n) => {
43162
+ A(null), w(n);
43156
43163
  try {
43157
- await LO(n), S((e) => new Set(e).add(n)), t.invalidateQueries({ queryKey: ["issue", e.issueId] }), t.invalidateQueries({ queryKey: ["my-issues"] }), FQ();
43164
+ await LO(n), ee((e) => new Set(e).add(n)), t.invalidateQueries({ queryKey: ["issue", e.issueId] }), t.invalidateQueries({ queryKey: ["my-issues"] }), FQ();
43158
43165
  } catch (e) {
43159
- w(e instanceof Error ? `${e.message} (bridge must be running; gh needs merge rights)` : "Merge failed.");
43166
+ A(e instanceof Error ? `${e.message} (bridge must be running; gh needs merge rights)` : "Merge failed.");
43160
43167
  } finally {
43161
- b(null);
43162
- }
43163
- }, te = O(() => n.data ? yO(n.data.comments) : []), [k, A] = T("comment"), ne = !1;
43164
- D(() => {
43165
- if (ne || !n.data || !i.data) return;
43166
- ne = !0;
43167
- let e = te();
43168
- e.length ? A(`thread:${e[0].id}`) : n.data.delegate && i.data.cursorAgentId && A("new");
43168
+ w(null);
43169
+ }
43170
+ }, re = k(() => n.data ? yO(n.data.comments) : []), [ie, ae] = T("comment"), oe = !1;
43171
+ O(() => {
43172
+ if (oe || !n.data || !i.data) return;
43173
+ oe = !0;
43174
+ let e = re();
43175
+ e.length ? ae(`thread:${e[0].id}`) : n.data.delegate && i.data.cursorAgentId && ae("new");
43169
43176
  });
43170
- let re = vr(() => ({
43177
+ let se = vr(() => ({
43171
43178
  mutationFn: async () => {
43172
43179
  let t = c().trim();
43173
43180
  if (!t) throw Error("Message is empty");
43174
- let n = i.data ?? {}, r = k();
43181
+ let n = i.data ?? {}, r = ie();
43175
43182
  r.startsWith("thread:") ? await _O(e.issueId, t, r.slice(7)) : r === "new" && n.cursorAgentId ? await vO(e.issueId, t, {
43176
43183
  name: n.cursorAgentName,
43177
43184
  displayName: n.cursorAgentName ?? "Cursor",
@@ -43184,7 +43191,7 @@ function A$(e) {
43184
43191
  onError: (e) => {
43185
43192
  d(e.message ?? "Failed to send");
43186
43193
  }
43187
- })), ie = O(() => n.data), ae = O(() => r.data ?? []);
43194
+ })), ce = k(() => n.data), le = k(() => r.data ?? []);
43188
43195
  return (() => {
43189
43196
  var t = g$(), r = t.firstChild, a = r.firstChild, d = r.nextSibling, f = d.nextSibling, p = f.firstChild;
43190
43197
  return P(a, j(vj, {
@@ -43197,35 +43204,35 @@ function A$(e) {
43197
43204
  }
43198
43205
  }), null), P(a, j(M, {
43199
43206
  get when() {
43200
- return ie();
43207
+ return ce();
43201
43208
  },
43202
43209
  get children() {
43203
43210
  return [(() => {
43204
43211
  var e = i$();
43205
- return P(e, () => ie().identifier), e;
43212
+ return P(e, () => ce().identifier), e;
43206
43213
  })(), (() => {
43207
43214
  var e = a$();
43208
- return P(e, () => ie().title), e;
43215
+ return P(e, () => ce().title), e;
43209
43216
  })()];
43210
43217
  }
43211
43218
  }), null), P(a, j(M, {
43212
43219
  get when() {
43213
- return $e(() => !!n.isPending)() && !ie();
43220
+ return $e(() => !!n.isPending)() && !ce();
43214
43221
  },
43215
43222
  get children() {
43216
43223
  return o$();
43217
43224
  }
43218
43225
  }), null), P(r, j(M, {
43219
43226
  get when() {
43220
- return ie();
43227
+ return ce();
43221
43228
  },
43222
43229
  get children() {
43223
43230
  var e = s$(), t = e.firstChild;
43224
43231
  return P(e, j(kj, { get color() {
43225
- return ie().state.color;
43226
- } }), t), P(t, () => ie().state.name), P(e, j(Tj, {
43232
+ return ce().state.color;
43233
+ } }), t), P(t, () => ce().state.name), P(e, j(Tj, {
43227
43234
  get href() {
43228
- return ie().url;
43235
+ return ce().url;
43229
43236
  },
43230
43237
  class: "ml-auto shrink-0",
43231
43238
  children: "Open in Linear"
@@ -43253,57 +43260,71 @@ function A$(e) {
43253
43260
  }), s), P(s, () => t().word), P(c, (() => {
43254
43261
  var t = $e(() => e().status === "done");
43255
43262
  return () => t() ? e().result ?? e().lastText : e().lastText;
43256
- })()), E(() => st(s, `shrink-0 text-[11.5px] font-medium ${t().cls}`)), n;
43263
+ })()), D(() => st(s, `shrink-0 text-[11.5px] font-medium ${t().cls}`)), n;
43257
43264
  })();
43258
43265
  }
43259
43266
  }), null), P(d, j(M, {
43260
43267
  get when() {
43261
- return ae().length > 0;
43268
+ return le().length > 0;
43262
43269
  },
43263
43270
  get children() {
43264
43271
  var e = c$();
43265
43272
  return P(e, j(We, {
43266
43273
  get each() {
43267
- return ae();
43274
+ return le();
43268
43275
  },
43269
43276
  children: (e) => j(j$, { session: e })
43270
43277
  })), e;
43271
43278
  }
43272
43279
  }), null), P(d, j(M, {
43273
43280
  get when() {
43274
- return $e(() => !!ie())() && ie().attachments.length > 0;
43281
+ return $e(() => !!ce())() && ce().attachments.length > 0;
43275
43282
  },
43276
43283
  get children() {
43277
43284
  var e = l$(), t = e.firstChild.nextSibling;
43278
43285
  return P(t, j(We, {
43279
43286
  get each() {
43280
- return ie().attachments;
43287
+ return ce().attachments;
43281
43288
  },
43282
43289
  children: (e) => {
43283
43290
  let t = /github\.com\/[^/]+\/[^/]+\/pull\/\d+/i.test(e.url);
43284
43291
  return (() => {
43285
43292
  var n = y$(), r = n.firstChild;
43286
43293
  return P(r, () => e.title), P(n, j(M, {
43287
- when: t,
43294
+ get when() {
43295
+ return $e(() => !!(t && S(e.url)))() && S(e.url) !== "OPEN";
43296
+ },
43297
+ get children() {
43298
+ return j(Oj, {
43299
+ get class() {
43300
+ return `ml-auto shrink-0 ${S(e.url) === "MERGED" ? "text-success" : "text-text-faint"}`;
43301
+ },
43302
+ get children() {
43303
+ return S(e.url) === "MERGED" ? "✓ merged" : "closed";
43304
+ }
43305
+ });
43306
+ }
43307
+ }), null), P(n, j(M, {
43308
+ get when() {
43309
+ return t && (!S(e.url) || S(e.url) === "OPEN");
43310
+ },
43288
43311
  get children() {
43289
43312
  return j(vj, {
43290
43313
  variant: "primary",
43291
43314
  class: "ml-auto h-6 shrink-0 px-2 text-[11px]",
43292
43315
  get loading() {
43293
- return y() === e.url;
43316
+ return C() === e.url;
43294
43317
  },
43295
- get disabled() {
43296
- return x().has(e.url);
43318
+ get title() {
43319
+ return x.isError ? "PR state unknown — restart the bridge (npx linear-grab-bridge) for live merge status" : "Squash-merge this PR via the bridge gh — reviewed the demo? Ship it.";
43297
43320
  },
43298
- title: "Squash-merge this PR via the bridge's gh — reviewed the demo? Ship it.",
43299
- onClick: () => void ee(e.url),
43321
+ onClick: () => void ne(e.url),
43300
43322
  get children() {
43301
- var t = v$();
43302
- return P(t, () => x().has(e.url) ? "Merged ✓" : "Merge"), t;
43323
+ return v$();
43303
43324
  }
43304
43325
  });
43305
43326
  }
43306
- }), null), E((t) => {
43327
+ }), null), D((t) => {
43307
43328
  var n = e.url, i = e.title;
43308
43329
  return n !== t.e && it(r, "href", t.e = n), i !== t.t && it(r, "title", t.t = i), t;
43309
43330
  }, {
@@ -43314,24 +43335,24 @@ function A$(e) {
43314
43335
  }
43315
43336
  }), null), P(t, j(M, {
43316
43337
  get when() {
43317
- return C();
43338
+ return te();
43318
43339
  },
43319
43340
  get children() {
43320
43341
  return j(jj, { get message() {
43321
- return C();
43342
+ return te();
43322
43343
  } });
43323
43344
  }
43324
43345
  }), null), e;
43325
43346
  }
43326
43347
  }), null), P(d, j(M, {
43327
43348
  get when() {
43328
- return $e(() => !!ie())() && ie().comments.length > 0;
43349
+ return $e(() => !!ce())() && ce().comments.length > 0;
43329
43350
  },
43330
43351
  get children() {
43331
43352
  var e = u$();
43332
43353
  return e.firstChild, P(e, j(We, {
43333
43354
  get each() {
43334
- return ie().comments;
43355
+ return ce().comments;
43335
43356
  },
43336
43357
  children: (e) => (() => {
43337
43358
  var t = b$(), n = t.firstChild, r = n.firstChild, i = r.nextSibling, a = n.nextSibling;
@@ -43342,13 +43363,13 @@ function A$(e) {
43342
43363
  get children() {
43343
43364
  return j(Oj, { children: "agent" });
43344
43365
  }
43345
- }), i), P(i, () => Nj(e.createdAt)), E(() => a.innerHTML = JQ(e.body)), t;
43366
+ }), i), P(i, () => Nj(e.createdAt)), D(() => a.innerHTML = JQ(e.body)), t;
43346
43367
  })()
43347
43368
  }), null), e;
43348
43369
  }
43349
43370
  }), null), P(d, j(M, {
43350
43371
  get when() {
43351
- return $e(() => !!(ie() && ie().comments.length === 0))() && ae().length === 0;
43372
+ return $e(() => !!(ce() && ce().comments.length === 0))() && le().length === 0;
43352
43373
  },
43353
43374
  get children() {
43354
43375
  return j(Aj, {
@@ -43358,7 +43379,7 @@ function A$(e) {
43358
43379
  }
43359
43380
  }), null), P(d, j(M, {
43360
43381
  get when() {
43361
- return $e(() => !!n.isError)() && !ie();
43382
+ return $e(() => !!n.isError)() && !ce();
43362
43383
  },
43363
43384
  get children() {
43364
43385
  return j(Aj, {
@@ -43385,26 +43406,26 @@ function A$(e) {
43385
43406
  },
43386
43407
  onInput: (e) => l(e.target.value),
43387
43408
  get disabled() {
43388
- return re.isPending;
43409
+ return se.isPending;
43389
43410
  }
43390
43411
  }), p), P(p, j(Sj, {
43391
43412
  class: "min-w-0 flex-1",
43392
43413
  get value() {
43393
- return k();
43414
+ return ie();
43394
43415
  },
43395
- onChange: (e) => A(e.currentTarget.value),
43416
+ onChange: (e) => ae(e.currentTarget.value),
43396
43417
  get children() {
43397
43418
  return [
43398
43419
  j(We, {
43399
43420
  get each() {
43400
- return te();
43421
+ return re();
43401
43422
  },
43402
43423
  children: (e, t) => (() => {
43403
43424
  var n = x$(), r = n.firstChild.nextSibling;
43404
43425
  return r.nextSibling, P(n, (() => {
43405
- var e = $e(() => te().length > 1);
43426
+ var e = $e(() => re().length > 1);
43406
43427
  return () => e() ? ` #${t() + 1}` : "";
43407
- })(), r), P(n, () => Nj(e.createdAt), null), E(() => n.selected = k() === `thread:${e.id}`), E(() => n.value = `thread:${e.id}`), n;
43428
+ })(), r), P(n, () => Nj(e.createdAt), null), D(() => n.selected = ie() === `thread:${e.id}`), D(() => n.value = `thread:${e.id}`), n;
43408
43429
  })()
43409
43430
  }),
43410
43431
  j(M, {
@@ -43413,12 +43434,12 @@ function A$(e) {
43413
43434
  },
43414
43435
  get children() {
43415
43436
  var e = d$(), t = e.firstChild.nextSibling;
43416
- return t.nextSibling, P(e, () => i.data?.cursorAgentName ?? "Cursor", t), E(() => e.selected = k() === "new"), e;
43437
+ return t.nextSibling, P(e, () => i.data?.cursorAgentName ?? "Cursor", t), D(() => e.selected = ie() === "new"), e;
43417
43438
  }
43418
43439
  }),
43419
43440
  (() => {
43420
43441
  var e = f$();
43421
- return E(() => e.selected = k() === "comment"), e;
43442
+ return D(() => e.selected = ie() === "comment"), e;
43422
43443
  })()
43423
43444
  ];
43424
43445
  }
@@ -43447,12 +43468,12 @@ function A$(e) {
43447
43468
  class: "min-w-[52px] shrink-0",
43448
43469
  variant: "primary",
43449
43470
  get loading() {
43450
- return re.isPending;
43471
+ return se.isPending;
43451
43472
  },
43452
43473
  get disabled() {
43453
43474
  return c().trim().length === 0;
43454
43475
  },
43455
- onClick: () => re.mutate(),
43476
+ onClick: () => se.mutate(),
43456
43477
  get children() {
43457
43478
  return h$();
43458
43479
  }
@@ -43460,10 +43481,10 @@ function A$(e) {
43460
43481
  })();
43461
43482
  }
43462
43483
  function j$(e) {
43463
- let t = O(() => {
43484
+ let t = k(() => {
43464
43485
  let t = e.session.status;
43465
43486
  return /complete|done/i.test(t) ? "var(--color-success)" : /await|pending|elicit/i.test(t) ? "var(--color-warn)" : "var(--color-accent)";
43466
- }), n = O(() => e.session.activities.slice(-10));
43487
+ }), n = k(() => e.session.activities.slice(-10));
43467
43488
  return (() => {
43468
43489
  var r = T$(), i = r.firstChild, a = i.firstChild;
43469
43490
  return P(i, j(Oj, {
@@ -43535,8 +43556,14 @@ var M$ = /*#__PURE__*/ N("<div class=\"border-accent/40 bg-accent-soft self-end
43535
43556
  id: "haiku",
43536
43557
  label: "Haiku"
43537
43558
  }
43538
- ], f1 = (e) => e == null ? "–" : e >= 1e3 ? `${(e / 1e3).toFixed(e >= 1e5 ? 0 : 1)}k` : String(e);
43539
- function p1() {
43559
+ ];
43560
+ function f1(e, t) {
43561
+ let n = e.split(".").map(Number), r = t.split(".").map(Number);
43562
+ for (let e = 0; e < 3; e++) if ((n[e] ?? 0) !== (r[e] ?? 0)) return (n[e] ?? 0) < (r[e] ?? 0);
43563
+ return !1;
43564
+ }
43565
+ var p1 = (e) => e == null ? "–" : e >= 1e3 ? `${(e / 1e3).toFixed(e >= 1e5 ? 0 : 1)}k` : String(e);
43566
+ function m1() {
43540
43567
  let e = sr(), t = _r(() => ({
43541
43568
  queryKey: ["bridge-health"],
43542
43569
  queryFn: EO,
@@ -43576,7 +43603,7 @@ function p1() {
43576
43603
  })), v = () => {
43577
43604
  g(Date.now()), $A("local"), FZ().catch(() => $A("capture"));
43578
43605
  };
43579
- D(() => {
43606
+ O(() => {
43580
43607
  if (ZA() !== "local") return;
43581
43608
  let e = (_.data ?? []).filter((e) => e.grabbedAt >= h());
43582
43609
  if (!e.length) return;
@@ -43605,27 +43632,27 @@ function p1() {
43605
43632
  })), S = vr(() => ({
43606
43633
  mutationFn: (e) => NO(e),
43607
43634
  onSuccess: l
43608
- })), C, w = !0, ee = () => {
43635
+ })), C, w = !0, E = () => {
43609
43636
  C && (w = C.scrollTop + C.clientHeight >= C.scrollHeight - 48);
43610
43637
  };
43611
- D(() => {
43638
+ O(() => {
43612
43639
  let e = s.data?.tail?.length ?? 0;
43613
43640
  r(), !(!C || !e || !w) && requestAnimationFrame(() => {
43614
43641
  C && (C.scrollTop = C.scrollHeight);
43615
43642
  });
43616
43643
  });
43617
- let [te, k] = T(null), A = async (e) => {
43644
+ let [ee, te] = T(null), A = async (e) => {
43618
43645
  try {
43619
- await navigator.clipboard.writeText(zO(e)), k(e.id), setTimeout(() => k(null), 1800);
43646
+ await navigator.clipboard.writeText(zO(e)), te(e.id), setTimeout(() => te(null), 1800);
43620
43647
  } catch {}
43621
43648
  }, ne = (e) => e === "running" ? "var(--color-accent)" : e === "done" ? "var(--color-success)" : e === "stopped" ? "var(--color-warn)" : "var(--color-danger)", re = (e) => {
43622
- let t = e.line.kind, n = O(() => JQ(e.line.text));
43649
+ let t = e.line.kind, n = k(() => JQ(e.line.text));
43623
43650
  return t === "user" ? (() => {
43624
43651
  var e = M$(), t = e.firstChild.nextSibling;
43625
- return E(() => t.innerHTML = n()), e;
43652
+ return D(() => t.innerHTML = n()), e;
43626
43653
  })() : t === "assistant" || t === "result" ? (() => {
43627
43654
  var e = N$(), r = e.firstChild, i = r.nextSibling;
43628
- return st(e, `bg-surface rounded-lg border px-2.5 py-1.5 ${t === "result" ? "border-success/40" : "border-border"}`), st(r, `mb-0.5 text-[9.5px] font-semibold tracking-wide uppercase ${t === "result" ? "text-success" : "text-text-faint"}`), P(r, t === "result" ? "Result" : "Claude"), E(() => i.innerHTML = n()), e;
43655
+ return st(e, `bg-surface rounded-lg border px-2.5 py-1.5 ${t === "result" ? "border-success/40" : "border-border"}`), st(r, `mb-0.5 text-[9.5px] font-semibold tracking-wide uppercase ${t === "result" ? "text-success" : "text-text-faint"}`), P(r, t === "result" ? "Result" : "Claude"), D(() => i.innerHTML = n()), e;
43629
43656
  })() : (() => {
43630
43657
  var n = P$();
43631
43658
  return st(n, `font-mono px-1 text-[10px] leading-relaxed break-words ${t === "subagent" ? "text-warn" : t === "stderr" ? "text-danger" : "text-text-faint"}`), P(n, () => e.line.text), n;
@@ -43646,8 +43673,27 @@ function p1() {
43646
43673
  });
43647
43674
  },
43648
43675
  get children() {
43649
- var e = F$(), n = e.firstChild;
43650
- return P(e, () => t.data.active, n), P(e, () => t.data.cwd.split("/").slice(-2).join("/"), null), E(() => it(e, "title", t.data?.cwd)), e;
43676
+ return [j(M, {
43677
+ get when() {
43678
+ return f1(t.data.version, "0.15.1");
43679
+ },
43680
+ get children() {
43681
+ return j(Oj, {
43682
+ class: "text-warn",
43683
+ title: "Ctrl+C the old process, then: npx linear-grab-bridge",
43684
+ get children() {
43685
+ return [
43686
+ "v",
43687
+ $e(() => t.data.version),
43688
+ " outdated — restart"
43689
+ ];
43690
+ }
43691
+ });
43692
+ }
43693
+ }), (() => {
43694
+ var e = F$(), n = e.firstChild;
43695
+ return P(e, () => t.data.active, n), P(e, () => t.data.cwd.split("/").slice(-2).join("/"), null), D(() => it(e, "title", t.data?.cwd)), e;
43696
+ })()];
43651
43697
  }
43652
43698
  }), null), P(l, j(M, {
43653
43699
  get when() {
@@ -43691,7 +43737,7 @@ function p1() {
43691
43737
  get fallback() {
43692
43738
  return (() => {
43693
43739
  var t = $$();
43694
- return E((n) => dt(t, "background", ne(e.status))), t;
43740
+ return D((n) => dt(t, "background", ne(e.status))), t;
43695
43741
  })();
43696
43742
  },
43697
43743
  get children() {
@@ -43744,7 +43790,7 @@ function p1() {
43744
43790
  },
43745
43791
  get children() {
43746
43792
  var t = z$(), n = t.firstChild.nextSibling;
43747
- return n.nextSibling, P(t, () => f1(e.usage.contextTokens), n), P(t, () => f1(e.usage.outputTokens), null), P(t, (() => {
43793
+ return n.nextSibling, P(t, () => p1(e.usage.contextTokens), n), P(t, () => p1(e.usage.outputTokens), null), P(t, (() => {
43748
43794
  var t = $e(() => !!e.usage.costUsd);
43749
43795
  return () => t() ? ` · $${e.usage.costUsd.toFixed(2)}` : "";
43750
43796
  })(), null), t;
@@ -43791,7 +43837,7 @@ function p1() {
43791
43837
  children: "Remove"
43792
43838
  });
43793
43839
  }
43794
- }), null), E(() => it(n, "title", e.worktree.path)), t;
43840
+ }), null), D(() => it(n, "title", e.worktree.path)), t;
43795
43841
  }
43796
43842
  }), g), P(g, j(Sj, {
43797
43843
  class: "h-7 w-auto min-w-0 flex-1 text-[11px]",
@@ -43808,7 +43854,7 @@ function p1() {
43808
43854
  each: d1,
43809
43855
  children: (t) => (() => {
43810
43856
  var n = t1();
43811
- return P(n, () => t.label), E(() => n.selected = (e.pendingModel ?? e.model ?? "") === t.id), E(() => n.value = t.id), n;
43857
+ return P(n, () => t.label), D(() => n.selected = (e.pendingModel ?? e.model ?? "") === t.id), D(() => n.value = t.id), n;
43812
43858
  })()
43813
43859
  });
43814
43860
  }
@@ -43838,7 +43884,7 @@ function p1() {
43838
43884
  get children() {
43839
43885
  return j(M, {
43840
43886
  get when() {
43841
- return te() === e.id;
43887
+ return ee() === e.id;
43842
43888
  },
43843
43889
  get fallback() {
43844
43890
  return r1();
@@ -43924,7 +43970,7 @@ function p1() {
43924
43970
  })()
43925
43971
  ];
43926
43972
  }
43927
- })), E(() => it(n, "title", e.path)), t;
43973
+ })), D(() => it(n, "title", e.path)), t;
43928
43974
  })()
43929
43975
  }), null), P(e, j(We, {
43930
43976
  get each() {
@@ -43945,7 +43991,7 @@ function p1() {
43945
43991
  get children() {
43946
43992
  return ["PR · ", $e(() => e.state.toLowerCase())];
43947
43993
  }
43948
- }), n), P(n, () => e.title), E((t) => {
43994
+ }), n), P(n, () => e.title), D((t) => {
43949
43995
  var r = e.url, i = e.title;
43950
43996
  return r !== t.e && it(n, "href", t.e = r), i !== t.t && it(n, "title", t.t = i), t;
43951
43997
  }, {
@@ -43958,7 +44004,7 @@ function p1() {
43958
44004
  }),
43959
44005
  (() => {
43960
44006
  var e = K$();
43961
- return e.addEventListener("scroll", ee), pt((e) => {
44007
+ return e.addEventListener("scroll", E), pt((e) => {
43962
44008
  C = e, w = !0;
43963
44009
  }, e), P(e, j(M, {
43964
44010
  get when() {
@@ -44060,13 +44106,13 @@ function p1() {
44060
44106
  }
44061
44107
  //#endregion
44062
44108
  //#region src/panel/views/PrsView.tsx
44063
- var m1 = /*#__PURE__*/ N("<div class=\"flex flex-col gap-1.5\">"), h1 = /*#__PURE__*/ N("<div class=\"flex h-full flex-col\"><div class=\"border-border flex shrink-0 items-center justify-between border-b px-3 py-2\"><span class=\"text-text text-[12px] font-semibold\">Pull requests</span><span class=\"text-text-faint text-[10.5px] tabular-nums\">/<!> from your issues</span></div><div class=\"border-border flex shrink-0 items-center gap-1.5 border-b px-3 py-1.5\"><div class=\"bg-surface-2 border-border flex shrink-0 rounded-md border p-0.5\"></div></div><div class=\"min-h-0 flex-1 overflow-y-auto pt-2 pb-3 pl-2 pr-3\">"), g1 = /*#__PURE__*/ N("<button>"), _1 = /*#__PURE__*/ N("<span class=\"text-[12px] leading-none\">✓"), v1 = /*#__PURE__*/ N("<svg width=13 height=13 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round aria-hidden><circle cx=8 cy=8 r=6></circle><circle cx=8 cy=8 r=1.6 fill=currentColor stroke=none>"), y1 = /*#__PURE__*/ N("<span class=\"text-success text-[12px] leading-none\">✓"), b1 = /*#__PURE__*/ N("<div class=\"bg-surface border-border flex flex-col gap-1.5 rounded-lg border p-2.5\"><a target=_blank rel=noreferrer class=\"text-accent truncate text-[12.5px] font-medium hover:underline\"></a><div class=\"flex min-w-0 items-center gap-1.5\"><span class=\"font-mono text-text-dim shrink-0 text-[11px]\"></span><span class=\"text-text-dim truncate text-[11.5px]\"></span><span class=\"text-text-faint ml-auto shrink-0 text-[10.5px] tabular-nums\"></span></div><div class=\"flex min-w-0 flex-wrap items-center gap-1.5\"><div class=\"ml-auto flex shrink-0 items-center gap-1\">"), x1 = /*#__PURE__*/ N("<svg width=13 height=13 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round aria-hidden><circle cx=4 cy=3.5 r=1.5></circle><circle cx=4 cy=12.5 r=1.5></circle><circle cx=12 cy=8 r=1.5></circle><path d=\"M4 5v6M4 6.5c0 2 2 3 4.5 3h2\">"), S1 = /*#__PURE__*/ N("<svg width=13 height=13 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 stroke-linejoin=round aria-hidden><rect x=5.5 y=5.5 width=9 height=9 rx=1.5></rect><path d=\"M10.5 5.5v-2a2 2 0 0 0-2-2h-5a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h2\">"), C1 = /github\.com\/[^/]+\/[^/]+\/pull\/\d+/i;
44064
- function w1(e) {
44109
+ var h1 = /*#__PURE__*/ N("<span class=\"text-text-faint text-[10.5px] tabular-nums\">/<!> from your issues"), g1 = /*#__PURE__*/ N("<div class=\"flex flex-col gap-1.5\">"), _1 = /*#__PURE__*/ N("<div class=\"flex h-full flex-col\"><div class=\"border-border flex shrink-0 items-center justify-between border-b px-3 py-2\"><span class=\"text-text text-[12px] font-semibold\">Pull requests</span></div><div class=\"border-border flex shrink-0 items-center gap-1.5 border-b px-3 py-1.5\"><div class=\"bg-surface-2 border-border flex shrink-0 rounded-md border p-0.5\"></div></div><div class=\"min-h-0 flex-1 overflow-y-auto pt-2 pb-3 pl-2 pr-3\">"), v1 = /*#__PURE__*/ N("<span class=\"text-warn text-[10.5px]\"title=\"Merge states come from gh via the bridge\">states unknown — restart the bridge"), y1 = /*#__PURE__*/ N("<button>"), b1 = /*#__PURE__*/ N("<span class=\"text-[12px] leading-none\">✓"), x1 = /*#__PURE__*/ N("<svg width=13 height=13 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round aria-hidden><circle cx=8 cy=8 r=6></circle><circle cx=8 cy=8 r=1.6 fill=currentColor stroke=none>"), S1 = /*#__PURE__*/ N("<span class=\"text-success text-[12px] leading-none\">✓"), C1 = /*#__PURE__*/ N("<div class=\"bg-surface border-border flex flex-col gap-1.5 rounded-lg border p-2.5\"><a target=_blank rel=noreferrer class=\"text-accent truncate text-[12.5px] font-medium hover:underline\"></a><div class=\"flex min-w-0 items-center gap-1.5\"><span class=\"font-mono text-text-dim shrink-0 text-[11px]\"></span><span class=\"text-text-dim truncate text-[11.5px]\"></span><span class=\"text-text-faint ml-auto shrink-0 text-[10.5px] tabular-nums\"></span></div><div class=\"flex min-w-0 flex-wrap items-center gap-1.5\"><div class=\"ml-auto flex shrink-0 items-center gap-1\">"), w1 = /*#__PURE__*/ N("<svg width=13 height=13 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round aria-hidden><circle cx=4 cy=3.5 r=1.5></circle><circle cx=4 cy=12.5 r=1.5></circle><circle cx=12 cy=8 r=1.5></circle><path d=\"M4 5v6M4 6.5c0 2 2 3 4.5 3h2\">"), T1 = /*#__PURE__*/ N("<svg width=13 height=13 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 stroke-linejoin=round aria-hidden><rect x=5.5 y=5.5 width=9 height=9 rx=1.5></rect><path d=\"M10.5 5.5v-2a2 2 0 0 0-2-2h-5a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h2\">"), E1 = /github\.com\/[^/]+\/[^/]+\/pull\/\d+/i;
44110
+ function D1(e) {
44065
44111
  let t = _r(() => ({
44066
44112
  queryKey: ["my-issues"],
44067
44113
  queryFn: uO,
44068
44114
  refetchInterval: 15e3
44069
- })), n = O(() => (t.data ?? []).flatMap((e) => (e.attachments ?? []).filter((e) => C1.test(e.url)).map((t) => ({
44115
+ })), n = k(() => (t.data ?? []).flatMap((e) => (e.attachments ?? []).filter((e) => E1.test(e.url)).map((t) => ({
44070
44116
  issue: e,
44071
44117
  attachment: t
44072
44118
  })))), r = _r(() => ({
@@ -44080,7 +44126,7 @@ function w1(e) {
44080
44126
  refetchInterval: 3e4,
44081
44127
  retry: 0,
44082
44128
  enabled: n().length > 0
44083
- })), a = (e) => g().has(e.attachment.url) ? "MERGED" : i.data?.[e.attachment.url], o = (e) => !!r.data?.some((t) => t.title.startsWith(e.issue.identifier)), [s, c] = T("all"), [l, u] = T(""), d = O(() => {
44129
+ })), a = (e) => g().has(e.attachment.url) ? "MERGED" : i.data?.[e.attachment.url], o = (e) => !!r.data?.some((t) => t.title.startsWith(e.issue.identifier)), [s, c] = T("all"), [l, u] = T(""), d = k(() => {
44084
44130
  let e = l().trim().toLowerCase();
44085
44131
  return n().filter((t) => {
44086
44132
  let n = t.issue.state.type;
@@ -44103,10 +44149,21 @@ function w1(e) {
44103
44149
  } catch {}
44104
44150
  };
44105
44151
  return (() => {
44106
- var r = h1(), i = r.firstChild, p = i.firstChild.nextSibling, h = p.firstChild, _ = h.nextSibling;
44107
- _.nextSibling;
44108
- var b = i.nextSibling, x = b.firstChild, S = b.nextSibling;
44109
- return P(p, () => d().length, h), P(p, () => n().length, _), P(x, j(We, {
44152
+ var r = _1(), p = r.firstChild;
44153
+ p.firstChild;
44154
+ var h = p.nextSibling, _ = h.firstChild, b = h.nextSibling;
44155
+ return P(p, j(M, {
44156
+ get when() {
44157
+ return !i.isError;
44158
+ },
44159
+ get fallback() {
44160
+ return v1();
44161
+ },
44162
+ get children() {
44163
+ var e = h1(), t = e.firstChild, r = t.nextSibling;
44164
+ return r.nextSibling, P(e, () => d().length, t), P(e, () => n().length, r), e;
44165
+ }
44166
+ }), null), P(_, j(We, {
44110
44167
  each: [
44111
44168
  {
44112
44169
  id: "all",
@@ -44126,17 +44183,17 @@ function w1(e) {
44126
44183
  }
44127
44184
  ],
44128
44185
  children: (e) => (() => {
44129
- var t = g1();
44130
- return t.$$click = () => c(e.id), P(t, () => e.label), E(() => st(t, `rounded-[5px] px-2 py-0.5 text-[11px] font-medium transition-colors ${s() === e.id ? "bg-surface-3 text-text" : "text-text-dim hover:text-text cursor-pointer"}`)), t;
44186
+ var t = y1();
44187
+ return t.$$click = () => c(e.id), P(t, () => e.label), D(() => st(t, `rounded-[5px] px-2 py-0.5 text-[11px] font-medium transition-colors ${s() === e.id ? "bg-surface-3 text-text" : "text-text-dim hover:text-text cursor-pointer"}`)), t;
44131
44188
  })()
44132
- })), P(b, j(bj, {
44189
+ })), P(h, j(bj, {
44133
44190
  class: "h-6 min-w-0 flex-1 text-[11px]",
44134
44191
  placeholder: "Search PRs…",
44135
44192
  get value() {
44136
44193
  return l();
44137
44194
  },
44138
44195
  onInput: (e) => u(e.currentTarget.value)
44139
- }), null), P(S, j(M, {
44196
+ }), null), P(b, j(M, {
44140
44197
  get when() {
44141
44198
  return d().length > 0;
44142
44199
  },
@@ -44149,13 +44206,13 @@ function w1(e) {
44149
44206
  });
44150
44207
  },
44151
44208
  get children() {
44152
- var t = m1();
44209
+ var t = g1();
44153
44210
  return P(t, j(We, {
44154
44211
  get each() {
44155
44212
  return d();
44156
44213
  },
44157
44214
  children: (t) => (() => {
44158
- var n = b1(), r = n.firstChild, i = r.nextSibling, s = i.firstChild, c = s.nextSibling, l = c.nextSibling, u = i.nextSibling, d = u.firstChild;
44215
+ var n = C1(), r = n.firstChild, i = r.nextSibling, s = i.firstChild, c = s.nextSibling, l = c.nextSibling, u = i.nextSibling, d = u.firstChild;
44159
44216
  return P(r, () => t.attachment.title || t.attachment.url), P(i, j(kj, { get color() {
44160
44217
  return t.issue.state.color;
44161
44218
  } }), s), P(s, () => t.issue.identifier), P(c, () => t.issue.title), P(l, () => Nj(t.issue.updatedAt)), P(u, j(Oj, { get children() {
@@ -44232,10 +44289,10 @@ function w1(e) {
44232
44289
  return g().has(t.attachment.url);
44233
44290
  },
44234
44291
  get fallback() {
44235
- return x1();
44292
+ return w1();
44236
44293
  },
44237
44294
  get children() {
44238
- return _1();
44295
+ return b1();
44239
44296
  }
44240
44297
  });
44241
44298
  }
@@ -44248,7 +44305,7 @@ function w1(e) {
44248
44305
  YA("activity", t.issue.id), e.onOpenIssue();
44249
44306
  },
44250
44307
  get children() {
44251
- return v1();
44308
+ return x1();
44252
44309
  }
44253
44310
  }), null), P(d, j(vj, {
44254
44311
  variant: "ghost",
@@ -44262,14 +44319,14 @@ function w1(e) {
44262
44319
  return f() === t.attachment.id;
44263
44320
  },
44264
44321
  get fallback() {
44265
- return S1();
44322
+ return T1();
44266
44323
  },
44267
44324
  get children() {
44268
- return y1();
44325
+ return S1();
44269
44326
  }
44270
44327
  });
44271
44328
  }
44272
- }), null), E((e) => {
44329
+ }), null), D((e) => {
44273
44330
  var n = t.attachment.url, i = t.attachment.title;
44274
44331
  return n !== e.e && it(r, "href", e.e = n), i !== e.t && it(r, "title", e.t = i), e;
44275
44332
  }, {
@@ -44285,13 +44342,13 @@ function w1(e) {
44285
44342
  //#endregion
44286
44343
  //#region src/lib/linear/auth.ts
44287
44344
  rt(["click"]), Rr();
44288
- function T1(e) {
44345
+ function O1(e) {
44289
44346
  let t = "";
44290
44347
  for (let n of e) t += String.fromCharCode(n);
44291
44348
  return btoa(t).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
44292
44349
  }
44293
- async function E1(e) {
44294
- let t = T1(crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(32))), n = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(t)), r = T1(new Uint8Array(n)), i = T1(crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16))), a = chrome.identity.getRedirectURL(), o = new URL("https://linear.app/oauth/authorize");
44350
+ async function k1(e) {
44351
+ let t = O1(crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(32))), n = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(t)), r = O1(new Uint8Array(n)), i = O1(crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16))), a = chrome.identity.getRedirectURL(), o = new URL("https://linear.app/oauth/authorize");
44295
44352
  o.searchParams.set("client_id", e), o.searchParams.set("redirect_uri", a), o.searchParams.set("response_type", "code"), o.searchParams.set("scope", "read,write"), o.searchParams.set("state", i), o.searchParams.set("code_challenge", r), o.searchParams.set("code_challenge_method", "S256");
44296
44353
  let s = await chrome.identity.launchWebAuthFlow({
44297
44354
  url: o.toString(),
@@ -44319,24 +44376,24 @@ async function E1(e) {
44319
44376
  linearOauthClientId: e
44320
44377
  });
44321
44378
  }
44322
- async function D1() {
44379
+ async function A1() {
44323
44380
  await wr({
44324
44381
  linearAccessToken: void 0,
44325
44382
  linearApiKey: void 0
44326
44383
  });
44327
44384
  }
44328
44385
  Rr(), br(), Nx(), mD();
44329
- var O1 = /*#__PURE__*/ N("<div class=\"bg-surface-2 border-border flex rounded-md border p-0.5\">"), k1 = /*#__PURE__*/ N("<span class=\"text-text-faint text-[10.5px] leading-snug\">Cloud: picking an element opens the panel to draft &amp; delegate to the Cursor agent. Local (react-grab style): picking auto-copies the element's context — source, stack, and your skills/memory paths — straight to the clipboard for a local Claude Code or Cursor session; the panel stays out of the way. Both share the same picker; switch anytime."), A1 = /*#__PURE__*/ N("<label class=\"flex cursor-pointer items-center gap-2 select-none\"><input type=checkbox class=\"accent-accent rounded\"><span class=\"text-text text-[12px]\">Element screenshots"), j1 = /*#__PURE__*/ N("<span class=\"text-text-faint text-[10.5px] leading-snug\">Captures a highlighted screenshot of each picked element and attaches it to the issue. Costs a beat on huge pages — with this off, picking is instant (pure react-grab speed)."), M1 = /*#__PURE__*/ N("<span class=text-text>Connected as <span class=font-medium></span> · <span class=text-text-dim>"), N1 = /*#__PURE__*/ N("<div class=\"bg-surface border-border flex items-center justify-between rounded-lg border p-2.5\"><span class=\"text-text text-[12px]\">"), P1 = /*#__PURE__*/ N("<option value>Select a team…"), F1 = /*#__PURE__*/ N("<p class=\"text-text-dim text-[11px]\">No agents found — install the Cursor integration in Linear first."), I1 = /*#__PURE__*/ N("<span class=\"text-text-faint text-[10.5px] leading-snug\">Empty = the default above (computer-use testing, video demo, PR + review babysitting)."), L1 = /*#__PURE__*/ N("<div class=\"flex flex-col gap-1.5\">"), R1 = /*#__PURE__*/ N("<div class=\"flex flex-col gap-1\"><span class=\"text-text-dim text-[11px] font-medium\">Mode</span><div class=\"bg-surface-2 border-border flex rounded-md border p-0.5\"></div><span class=\"text-text-faint text-[10.5px] leading-snug\">Beside page squeezes the app next to the panel, DevTools-style — nothing gets covered. Also toggleable from the dock icon in the panel header."), z1 = /*#__PURE__*/ N("<div class=\"flex flex-col gap-1\"><span class=\"text-text-dim text-[11px] font-medium\">Dock side</span><div class=\"bg-surface-2 border-border flex rounded-md border p-0.5\"></div><span class=\"text-text-faint text-[10.5px] leading-snug\">The launcher pill is draggable — park it anywhere it doesn't cover your app."), B1 = /*#__PURE__*/ N("<option value>Select a channel…"), V1 = /*#__PURE__*/ N("<label class=\"flex cursor-pointer items-center gap-2 select-none\"><input type=checkbox class=\"accent-accent rounded\"><span class=\"text-text text-[12px]\">Announce new issues on create"), H1 = /*#__PURE__*/ N("<span class=\"text-text-faint text-[10.5px] leading-snug\">⚠️ Tokens are embedded in issue Agent-instructions so agents can post the finished demo — everyone who can read the issue can read them. Use single-channel-scoped bots."), U1 = /*#__PURE__*/ N("<div class=\"flex flex-col gap-1\"><span class=\"text-text-dim text-[11px] font-medium\">Provider preference</span><div class=\"bg-surface-2 border-border flex rounded-md border p-0.5\"><button>Auto</button><button>OpenAI</button><button>Anthropic"), W1 = /*#__PURE__*/ N("<p class=\"text-text-dim text-[11px]\">"), G1 = /*#__PURE__*/ N("<div class=min-h-[2lh]>"), K1 = /*#__PURE__*/ N("<ol class=\"text-text-faint flex list-decimal flex-col gap-1 pl-4 text-[11px] leading-relaxed\"><li>Pick an element on your running dev app.</li><li>Draft the issue (AI optional).</li><li>Create + delegate — Cursor's cloud agent fixes it and opens a PR.</li><li>Track and steer it from Activity."), q1 = /*#__PURE__*/ N("<div class=\"flex h-full flex-col gap-5 overflow-y-auto pt-3 pb-6 pl-3 pr-4\">"), J1 = /*#__PURE__*/ N("<button>"), Y1 = /*#__PURE__*/ N("<div class=\"flex gap-1.5\">"), X1 = /*#__PURE__*/ N("<p class=\"text-text-faint text-center text-[10.5px]\">or"), Z1 = /*#__PURE__*/ N("<span class=\"text-text-faint text-[10.5px] leading-snug\">Register this callback URL in your Linear OAuth app config:<br><span class=\"font-mono text-[10.5px] break-all\">"), Q1 = /*#__PURE__*/ N("<div class=\"flex flex-col gap-3\">"), $1 = /*#__PURE__*/ N("<span class=text-text-dim>Connected — verifying…"), e0 = /*#__PURE__*/ N("<option> (<!>)"), t0 = /*#__PURE__*/ N("<option value>Select the agent…"), n0 = /*#__PURE__*/ N("<option>"), r0 = /*#__PURE__*/ N("<option>#"), i0 = /*#__PURE__*/ N("<p class=\"text-text-dim text-[11px]\">No key set — AI drafting disabled, manual drafting still works.");
44330
- function a0() {
44386
+ var j1 = /*#__PURE__*/ N("<div class=\"bg-surface-2 border-border flex rounded-md border p-0.5\">"), M1 = /*#__PURE__*/ N("<span class=\"text-text-faint text-[10.5px] leading-snug\">Cloud: picking an element opens the panel to draft &amp; delegate to the Cursor agent. Local (react-grab style): picking auto-copies the element's context — source, stack, and your skills/memory paths — straight to the clipboard for a local Claude Code or Cursor session; the panel stays out of the way. Both share the same picker; switch anytime."), N1 = /*#__PURE__*/ N("<label class=\"flex cursor-pointer items-center gap-2 select-none\"><input type=checkbox class=\"accent-accent rounded\"><span class=\"text-text text-[12px]\">Element screenshots"), P1 = /*#__PURE__*/ N("<span class=\"text-text-faint text-[10.5px] leading-snug\">Captures a highlighted screenshot of each picked element and attaches it to the issue. Costs a beat on huge pages — with this off, picking is instant (pure react-grab speed)."), F1 = /*#__PURE__*/ N("<span class=text-text>Connected as <span class=font-medium></span> · <span class=text-text-dim>"), I1 = /*#__PURE__*/ N("<div class=\"bg-surface border-border flex items-center justify-between rounded-lg border p-2.5\"><span class=\"text-text text-[12px]\">"), L1 = /*#__PURE__*/ N("<option value>Select a team…"), R1 = /*#__PURE__*/ N("<p class=\"text-text-dim text-[11px]\">No agents found — install the Cursor integration in Linear first."), z1 = /*#__PURE__*/ N("<span class=\"text-text-faint text-[10.5px] leading-snug\">Empty = the default above (computer-use testing, video demo, PR + review babysitting)."), B1 = /*#__PURE__*/ N("<div class=\"flex flex-col gap-1.5\">"), V1 = /*#__PURE__*/ N("<div class=\"flex flex-col gap-1\"><span class=\"text-text-dim text-[11px] font-medium\">Mode</span><div class=\"bg-surface-2 border-border flex rounded-md border p-0.5\"></div><span class=\"text-text-faint text-[10.5px] leading-snug\">Beside page squeezes the app next to the panel, DevTools-style — nothing gets covered. Also toggleable from the dock icon in the panel header."), H1 = /*#__PURE__*/ N("<div class=\"flex flex-col gap-1\"><span class=\"text-text-dim text-[11px] font-medium\">Dock side</span><div class=\"bg-surface-2 border-border flex rounded-md border p-0.5\"></div><span class=\"text-text-faint text-[10.5px] leading-snug\">The launcher pill is draggable — park it anywhere it doesn't cover your app."), U1 = /*#__PURE__*/ N("<option value>Select a channel…"), W1 = /*#__PURE__*/ N("<label class=\"flex cursor-pointer items-center gap-2 select-none\"><input type=checkbox class=\"accent-accent rounded\"><span class=\"text-text text-[12px]\">Announce new issues on create"), G1 = /*#__PURE__*/ N("<span class=\"text-text-faint text-[10.5px] leading-snug\">⚠️ Tokens are embedded in issue Agent-instructions so agents can post the finished demo — everyone who can read the issue can read them. Use single-channel-scoped bots."), K1 = /*#__PURE__*/ N("<div class=\"flex flex-col gap-1\"><span class=\"text-text-dim text-[11px] font-medium\">Provider preference</span><div class=\"bg-surface-2 border-border flex rounded-md border p-0.5\"><button>Auto</button><button>OpenAI</button><button>Anthropic"), q1 = /*#__PURE__*/ N("<p class=\"text-text-dim text-[11px]\">"), J1 = /*#__PURE__*/ N("<div class=min-h-[2lh]>"), Y1 = /*#__PURE__*/ N("<ol class=\"text-text-faint flex list-decimal flex-col gap-1 pl-4 text-[11px] leading-relaxed\"><li>Pick an element on your running dev app.</li><li>Draft the issue (AI optional).</li><li>Create + delegate — Cursor's cloud agent fixes it and opens a PR.</li><li>Track and steer it from Activity."), X1 = /*#__PURE__*/ N("<div class=\"flex h-full flex-col gap-5 overflow-y-auto pt-3 pb-6 pl-3 pr-4\">"), Z1 = /*#__PURE__*/ N("<button>"), Q1 = /*#__PURE__*/ N("<div class=\"flex gap-1.5\">"), $1 = /*#__PURE__*/ N("<p class=\"text-text-faint text-center text-[10.5px]\">or"), e0 = /*#__PURE__*/ N("<span class=\"text-text-faint text-[10.5px] leading-snug\">Register this callback URL in your Linear OAuth app config:<br><span class=\"font-mono text-[10.5px] break-all\">"), t0 = /*#__PURE__*/ N("<div class=\"flex flex-col gap-3\">"), n0 = /*#__PURE__*/ N("<span class=text-text-dim>Connected — verifying…"), r0 = /*#__PURE__*/ N("<option> (<!>)"), i0 = /*#__PURE__*/ N("<option value>Select the agent…"), a0 = /*#__PURE__*/ N("<option>"), o0 = /*#__PURE__*/ N("<option>#"), s0 = /*#__PURE__*/ N("<p class=\"text-text-dim text-[11px]\">No key set — AI drafting disabled, manual drafting still works.");
44387
+ function c0() {
44331
44388
  let e = sr(), t = _r(() => ({
44332
44389
  queryKey: ["settings"],
44333
44390
  queryFn: Cr,
44334
44391
  staleTime: 0
44335
- })), n = O(() => t.data ?? {});
44392
+ })), n = k(() => t.data ?? {});
44336
44393
  async function r(t, n = !1) {
44337
44394
  await wr(t), await e.invalidateQueries({ queryKey: ["settings"] }), n && (await e.invalidateQueries({ queryKey: ["viewer"] }), await e.invalidateQueries({ queryKey: ["teams"] }), await e.invalidateQueries({ queryKey: ["agents"] }), await e.invalidateQueries({ queryKey: ["my-issues"] }));
44338
44395
  }
44339
- let i = O(() => !!(n().linearApiKey || n().linearAccessToken)), a = _r(() => ({
44396
+ let i = k(() => !!(n().linearApiKey || n().linearAccessToken)), a = _r(() => ({
44340
44397
  queryKey: ["viewer"],
44341
44398
  queryFn: sO,
44342
44399
  enabled: i(),
@@ -44372,7 +44429,7 @@ function a0() {
44372
44429
  }
44373
44430
  v(!0), b("");
44374
44431
  try {
44375
- await E1(t), await e.invalidateQueries({ queryKey: ["settings"] }), await e.invalidateQueries({ queryKey: ["viewer"] }), await e.invalidateQueries({ queryKey: ["teams"] }), await e.invalidateQueries({ queryKey: ["agents"] }), await e.invalidateQueries({ queryKey: ["my-issues"] });
44432
+ await k1(t), await e.invalidateQueries({ queryKey: ["settings"] }), await e.invalidateQueries({ queryKey: ["viewer"] }), await e.invalidateQueries({ queryKey: ["teams"] }), await e.invalidateQueries({ queryKey: ["agents"] }), await e.invalidateQueries({ queryKey: ["my-issues"] });
44376
44433
  } catch (e) {
44377
44434
  b(e instanceof Error ? e.message : "OAuth flow failed.");
44378
44435
  } finally {
@@ -44383,28 +44440,28 @@ function a0() {
44383
44440
  async function w() {
44384
44441
  C(!0);
44385
44442
  try {
44386
- await D1(), await e.invalidateQueries({ queryKey: ["settings"] }), await e.invalidateQueries({ queryKey: ["viewer"] }), await e.invalidateQueries({ queryKey: ["teams"] }), await e.invalidateQueries({ queryKey: ["agents"] }), await e.invalidateQueries({ queryKey: ["my-issues"] });
44443
+ await A1(), await e.invalidateQueries({ queryKey: ["settings"] }), await e.invalidateQueries({ queryKey: ["viewer"] }), await e.invalidateQueries({ queryKey: ["teams"] }), await e.invalidateQueries({ queryKey: ["agents"] }), await e.invalidateQueries({ queryKey: ["my-issues"] });
44387
44444
  } finally {
44388
44445
  C(!1);
44389
44446
  }
44390
44447
  }
44391
- let ee = yr ? chrome.identity.getRedirectURL() : null, D = _r(() => ({
44448
+ let E = yr ? chrome.identity.getRedirectURL() : null, O = _r(() => ({
44392
44449
  queryKey: ["slack-channels", n().slackToken],
44393
44450
  queryFn: () => WO(n().slackToken),
44394
44451
  enabled: !!n().slackToken,
44395
44452
  retry: 0,
44396
44453
  staleTime: 6e4
44397
- })), te = O(() => Ox(n())), k = O(() => {
44398
- let e = te();
44454
+ })), ee = k(() => Ox(n())), te = k(() => {
44455
+ let e = ee();
44399
44456
  return e ? `Drafting with ${e} — ${jx[e].fast} (fast) / ${jx[e].best} (best)` : null;
44400
44457
  });
44401
44458
  return (() => {
44402
- var e = q1();
44459
+ var e = X1();
44403
44460
  return P(e, j(Dj, {
44404
44461
  title: "Workflow",
44405
44462
  get children() {
44406
44463
  return [(() => {
44407
- var e = O1();
44464
+ var e = j1();
44408
44465
  return P(e, j(We, {
44409
44466
  each: [{
44410
44467
  id: "cloud",
@@ -44414,19 +44471,19 @@ function a0() {
44414
44471
  label: "Local · clipboard"
44415
44472
  }],
44416
44473
  children: (e) => (() => {
44417
- var t = J1();
44418
- return t.$$click = () => void r({ workflowMode: e.id }), P(t, () => e.label), E(() => st(t, `flex-1 rounded-[5px] px-2 py-1 text-[11.5px] font-medium transition-colors ${(n().workflowMode ?? "cloud") === e.id ? "bg-surface-3 text-text" : "text-text-dim hover:text-text cursor-pointer"}`)), t;
44474
+ var t = Z1();
44475
+ return t.$$click = () => void r({ workflowMode: e.id }), P(t, () => e.label), D(() => st(t, `flex-1 rounded-[5px] px-2 py-1 text-[11.5px] font-medium transition-colors ${(n().workflowMode ?? "cloud") === e.id ? "bg-surface-3 text-text" : "text-text-dim hover:text-text cursor-pointer"}`)), t;
44419
44476
  })()
44420
44477
  })), e;
44421
- })(), k1()];
44478
+ })(), M1()];
44422
44479
  }
44423
44480
  }), null), P(e, j(Dj, {
44424
44481
  title: "Capture",
44425
44482
  get children() {
44426
44483
  return [(() => {
44427
- var e = A1(), t = e.firstChild;
44428
- return t.addEventListener("change", (e) => void r({ captureShots: e.currentTarget.checked || void 0 })), E(() => t.checked = !!n().captureShots), e;
44429
- })(), j1()];
44484
+ var e = N1(), t = e.firstChild;
44485
+ return t.addEventListener("change", (e) => void r({ captureShots: e.currentTarget.checked || void 0 })), D(() => t.checked = !!n().captureShots), e;
44486
+ })(), P1()];
44430
44487
  }
44431
44488
  }), null), P(e, j(Dj, {
44432
44489
  title: "Linear",
@@ -44437,13 +44494,13 @@ function a0() {
44437
44494
  },
44438
44495
  get fallback() {
44439
44496
  return (() => {
44440
- var e = Q1();
44497
+ var e = t0();
44441
44498
  return P(e, j(Ej, {
44442
44499
  label: "Personal API key",
44443
44500
  hint: "Create one at linear.app → Settings → API — fastest path.",
44444
44501
  get children() {
44445
44502
  return [(() => {
44446
- var e = Y1();
44503
+ var e = Q1();
44447
44504
  return P(e, j(bj, {
44448
44505
  type: "password",
44449
44506
  placeholder: "lin_api_…",
@@ -44480,12 +44537,12 @@ function a0() {
44480
44537
  }), null), P(e, j(M, {
44481
44538
  when: yr,
44482
44539
  get children() {
44483
- return [X1(), j(Ej, {
44540
+ return [$1(), j(Ej, {
44484
44541
  label: "OAuth client ID",
44485
44542
  get children() {
44486
44543
  return [
44487
44544
  (() => {
44488
- var e = Y1();
44545
+ var e = Q1();
44489
44546
  return P(e, j(bj, {
44490
44547
  placeholder: "your-client-id",
44491
44548
  get value() {
@@ -44513,8 +44570,8 @@ function a0() {
44513
44570
  }
44514
44571
  }),
44515
44572
  (() => {
44516
- var e = Z1(), t = e.firstChild.nextSibling.nextSibling;
44517
- return P(t, ee), e;
44573
+ var e = e0(), t = e.firstChild.nextSibling.nextSibling;
44574
+ return P(t, E), e;
44518
44575
  })()
44519
44576
  ];
44520
44577
  }
@@ -44524,13 +44581,13 @@ function a0() {
44524
44581
  })();
44525
44582
  },
44526
44583
  get children() {
44527
- var e = N1(), t = e.firstChild;
44584
+ var e = I1(), t = e.firstChild;
44528
44585
  return P(t, j(M, {
44529
44586
  get when() {
44530
44587
  return !a.isLoading;
44531
44588
  },
44532
44589
  get fallback() {
44533
- return $1();
44590
+ return n0();
44534
44591
  },
44535
44592
  get children() {
44536
44593
  return j(M, {
@@ -44543,7 +44600,7 @@ function a0() {
44543
44600
  return a.isError;
44544
44601
  },
44545
44602
  get fallback() {
44546
- return $1();
44603
+ return n0();
44547
44604
  },
44548
44605
  get children() {
44549
44606
  return j(jj, { message: "Key rejected — reconnect" });
@@ -44551,7 +44608,7 @@ function a0() {
44551
44608
  });
44552
44609
  },
44553
44610
  get children() {
44554
- var e = M1(), t = e.firstChild.nextSibling, n = t.nextSibling.nextSibling;
44611
+ var e = F1(), t = e.firstChild.nextSibling, n = t.nextSibling.nextSibling;
44555
44612
  return P(t, () => a.data.name), P(n, () => a.data.email), e;
44556
44613
  }
44557
44614
  });
@@ -44592,7 +44649,7 @@ function a0() {
44592
44649
  return o.isLoading;
44593
44650
  },
44594
44651
  get children() {
44595
- return [P1(), j(M, {
44652
+ return [L1(), j(M, {
44596
44653
  get when() {
44597
44654
  return o.data;
44598
44655
  },
@@ -44602,8 +44659,8 @@ function a0() {
44602
44659
  return o.data;
44603
44660
  },
44604
44661
  children: (e) => (() => {
44605
- var t = e0(), r = t.firstChild, i = r.nextSibling;
44606
- return i.nextSibling, P(t, () => e.name, r), P(t, () => e.key, i), E(() => t.selected = e.id === n().defaultTeamId), E(() => t.value = e.id), t;
44662
+ var t = r0(), r = t.firstChild, i = r.nextSibling;
44663
+ return i.nextSibling, P(t, () => e.name, r), P(t, () => e.key, i), D(() => t.selected = e.id === n().defaultTeamId), D(() => t.value = e.id), t;
44607
44664
  })()
44608
44665
  });
44609
44666
  }
@@ -44646,7 +44703,7 @@ function a0() {
44646
44703
  return s.isLoading;
44647
44704
  },
44648
44705
  get children() {
44649
- return [t0(), j(M, {
44706
+ return [i0(), j(M, {
44650
44707
  get when() {
44651
44708
  return s.data;
44652
44709
  },
@@ -44656,8 +44713,8 @@ function a0() {
44656
44713
  return s.data;
44657
44714
  },
44658
44715
  children: (e) => (() => {
44659
- var t = n0();
44660
- return P(t, () => e.displayName), E(() => t.selected = e.id === n().cursorAgentId), E(() => t.value = e.id), t;
44716
+ var t = a0();
44717
+ return P(t, () => e.displayName), D(() => t.selected = e.id === n().cursorAgentId), D(() => t.value = e.id), t;
44661
44718
  })()
44662
44719
  });
44663
44720
  }
@@ -44666,7 +44723,7 @@ function a0() {
44666
44723
  });
44667
44724
  },
44668
44725
  get children() {
44669
- return F1();
44726
+ return R1();
44670
44727
  }
44671
44728
  });
44672
44729
  }
@@ -44714,7 +44771,7 @@ function a0() {
44714
44771
  onBlur: (e) => {
44715
44772
  r({ issueTemplate: e.currentTarget.value.trim() || void 0 });
44716
44773
  }
44717
- }), I1()];
44774
+ }), z1()];
44718
44775
  }
44719
44776
  }),
44720
44777
  j(Ej, {
@@ -44771,7 +44828,7 @@ function a0() {
44771
44828
  label: "Test account",
44772
44829
  hint: "The cloud agent logs into the app with this while testing and recording its demo. Added to every issue's Agent instructions. Use a throwaway account — it's visible to everyone who can read the issue.",
44773
44830
  get children() {
44774
- var e = L1();
44831
+ var e = B1();
44775
44832
  return P(e, j(bj, {
44776
44833
  placeholder: "Username or email (e.g. demo@yourapp.com)",
44777
44834
  get value() {
@@ -44803,7 +44860,7 @@ function a0() {
44803
44860
  title: "Panel",
44804
44861
  get children() {
44805
44862
  return [(() => {
44806
- var e = R1(), t = e.firstChild.nextSibling;
44863
+ var e = V1(), t = e.firstChild.nextSibling;
44807
44864
  return P(t, j(We, {
44808
44865
  each: [{
44809
44866
  id: "overlay",
@@ -44813,20 +44870,20 @@ function a0() {
44813
44870
  label: "Beside page"
44814
44871
  }],
44815
44872
  children: (e) => (() => {
44816
- var t = J1();
44873
+ var t = Z1();
44817
44874
  return t.$$click = () => void r({
44818
44875
  panelMode: e.id,
44819
44876
  panelPos: void 0
44820
- }), P(t, () => e.label), E(() => st(t, `flex-1 rounded-[5px] px-2 py-0.5 text-[11.5px] font-medium transition-colors ${(n().panelMode ?? "overlay") === e.id ? "bg-surface-3 text-text" : "text-text-dim hover:text-text cursor-pointer"}`)), t;
44877
+ }), P(t, () => e.label), D(() => st(t, `flex-1 rounded-[5px] px-2 py-0.5 text-[11.5px] font-medium transition-colors ${(n().panelMode ?? "overlay") === e.id ? "bg-surface-3 text-text" : "text-text-dim hover:text-text cursor-pointer"}`)), t;
44821
44878
  })()
44822
44879
  })), e;
44823
44880
  })(), (() => {
44824
- var e = z1(), t = e.firstChild.nextSibling;
44881
+ var e = H1(), t = e.firstChild.nextSibling;
44825
44882
  return P(t, j(We, {
44826
44883
  each: ["left", "right"],
44827
44884
  children: (e) => (() => {
44828
- var t = J1();
44829
- return t.$$click = () => void r({ panelSide: e }), P(t, e === "left" ? "Left" : "Right"), E(() => st(t, `flex-1 rounded-[5px] px-2 py-0.5 text-[11.5px] font-medium transition-colors ${(n().panelSide ?? "right") === e ? "bg-surface-3 text-text" : "text-text-dim hover:text-text cursor-pointer"}`)), t;
44885
+ var t = Z1();
44886
+ return t.$$click = () => void r({ panelSide: e }), P(t, e === "left" ? "Left" : "Right"), D(() => st(t, `flex-1 rounded-[5px] px-2 py-0.5 text-[11.5px] font-medium transition-colors ${(n().panelSide ?? "right") === e ? "bg-surface-3 text-text" : "text-text-dim hover:text-text cursor-pointer"}`)), t;
44830
44887
  })()
44831
44888
  })), e;
44832
44889
  })()];
@@ -44916,7 +44973,7 @@ function a0() {
44916
44973
  get children() {
44917
44974
  return j(M, {
44918
44975
  get when() {
44919
- return !D.isError;
44976
+ return !O.isError;
44920
44977
  },
44921
44978
  get fallback() {
44922
44979
  return j(jj, { message: "Couldn't list channels — check the token scopes (channels:read)." });
@@ -44927,23 +44984,23 @@ function a0() {
44927
44984
  return n().slackChannelId ?? "";
44928
44985
  },
44929
44986
  get disabled() {
44930
- return D.isLoading;
44987
+ return O.isLoading;
44931
44988
  },
44932
44989
  onChange: (e) => {
44933
- let t = e.currentTarget.value, n = D.data?.find((e) => e.id === t);
44990
+ let t = e.currentTarget.value, n = O.data?.find((e) => e.id === t);
44934
44991
  r({
44935
44992
  slackChannelId: t || void 0,
44936
44993
  slackChannelName: n?.name
44937
44994
  });
44938
44995
  },
44939
44996
  get children() {
44940
- return [B1(), j(We, {
44997
+ return [U1(), j(We, {
44941
44998
  get each() {
44942
- return D.data ?? [];
44999
+ return O.data ?? [];
44943
45000
  },
44944
45001
  children: (e) => (() => {
44945
- var t = r0();
44946
- return t.firstChild, P(t, () => e.name, null), E(() => t.selected = e.id === n().slackChannelId), E(() => t.value = e.id), t;
45002
+ var t = o0();
45003
+ return t.firstChild, P(t, () => e.name, null), D(() => t.selected = e.id === n().slackChannelId), D(() => t.value = e.id), t;
44947
45004
  })()
44948
45005
  })];
44949
45006
  }
@@ -44993,10 +45050,10 @@ function a0() {
44993
45050
  }
44994
45051
  }),
44995
45052
  (() => {
44996
- var e = V1(), t = e.firstChild;
44997
- return t.addEventListener("change", (e) => void r({ notifyOnCreate: e.currentTarget.checked ? void 0 : !1 })), E(() => t.checked = n().notifyOnCreate !== !1), e;
45053
+ var e = W1(), t = e.firstChild;
45054
+ return t.addEventListener("change", (e) => void r({ notifyOnCreate: e.currentTarget.checked ? void 0 : !1 })), D(() => t.checked = n().notifyOnCreate !== !1), e;
44998
45055
  })(),
44999
- H1()
45056
+ G1()
45000
45057
  ];
45001
45058
  }
45002
45059
  }), null), P(e, j(Dj, {
@@ -45034,8 +45091,8 @@ function a0() {
45034
45091
  }
45035
45092
  }),
45036
45093
  (() => {
45037
- var e = U1(), t = e.firstChild.nextSibling.firstChild, i = t.nextSibling, a = i.nextSibling;
45038
- return t.$$click = () => void r({ preferredProvider: void 0 }), i.$$click = () => void r({ preferredProvider: "openai" }), a.$$click = () => void r({ preferredProvider: "anthropic" }), E((e) => {
45094
+ var e = K1(), t = e.firstChild.nextSibling.firstChild, i = t.nextSibling, a = i.nextSibling;
45095
+ return t.$$click = () => void r({ preferredProvider: void 0 }), i.$$click = () => void r({ preferredProvider: "openai" }), a.$$click = () => void r({ preferredProvider: "anthropic" }), D((e) => {
45039
45096
  var r = `flex-1 rounded-[5px] px-2 py-0.5 text-[11.5px] font-medium transition-colors ${n().preferredProvider === void 0 ? "bg-surface-3 text-text" : "text-text-dim hover:text-text cursor-pointer"}`, o = `flex-1 rounded-[5px] px-2 py-0.5 text-[11.5px] font-medium transition-colors disabled:cursor-not-allowed ${n().preferredProvider === "openai" ? "bg-surface-3 text-text" : "text-text-dim hover:text-text cursor-pointer disabled:text-text-faint"}`, s = !n().openaiKey, c = `flex-1 rounded-[5px] px-2 py-0.5 text-[11.5px] font-medium transition-colors disabled:cursor-not-allowed ${n().preferredProvider === "anthropic" ? "bg-surface-3 text-text" : "text-text-dim hover:text-text cursor-pointer disabled:text-text-faint"}`, l = !n().anthropicKey;
45040
45097
  return r !== e.e && st(t, e.e = r), o !== e.t && st(i, e.t = o), s !== e.a && (i.disabled = e.a = s), c !== e.o && st(a, e.o = c), l !== e.i && (a.disabled = e.i = l), e;
45041
45098
  }, {
@@ -45047,17 +45104,17 @@ function a0() {
45047
45104
  }), e;
45048
45105
  })(),
45049
45106
  (() => {
45050
- var e = G1();
45107
+ var e = J1();
45051
45108
  return P(e, j(M, {
45052
45109
  get when() {
45053
- return k();
45110
+ return te();
45054
45111
  },
45055
45112
  get fallback() {
45056
- return i0();
45113
+ return s0();
45057
45114
  },
45058
45115
  get children() {
45059
- var e = W1();
45060
- return P(e, k), e;
45116
+ var e = q1();
45117
+ return P(e, te), e;
45061
45118
  }
45062
45119
  })), e;
45063
45120
  })()
@@ -45066,7 +45123,7 @@ function a0() {
45066
45123
  }), null), P(e, j(Dj, {
45067
45124
  title: "How it works",
45068
45125
  get children() {
45069
- return K1();
45126
+ return Y1();
45070
45127
  }
45071
45128
  }), null), e;
45072
45129
  })();
@@ -45074,38 +45131,38 @@ function a0() {
45074
45131
  rt(["click"]);
45075
45132
  //#endregion
45076
45133
  //#region src/lib/idbCache.ts
45077
- var o0 = "linear-grab", s0 = "queries", c0 = [
45134
+ var l0 = "linear-grab", u0 = "queries", d0 = [
45078
45135
  "my-issues",
45079
45136
  "issue",
45080
45137
  "sessions",
45081
45138
  "teams",
45082
45139
  "agents"
45083
45140
  ];
45084
- function l0() {
45141
+ function f0() {
45085
45142
  return new Promise((e) => {
45086
45143
  try {
45087
- let t = indexedDB.open(o0, 1);
45088
- t.onupgradeneeded = () => t.result.createObjectStore(s0), t.onsuccess = () => e(t.result), t.onerror = () => e(null);
45144
+ let t = indexedDB.open(l0, 1);
45145
+ t.onupgradeneeded = () => t.result.createObjectStore(u0), t.onsuccess = () => e(t.result), t.onerror = () => e(null);
45089
45146
  } catch {
45090
45147
  e(null);
45091
45148
  }
45092
45149
  });
45093
45150
  }
45094
- function u0(e) {
45095
- return typeof e[0] == "string" && c0.includes(e[0]);
45151
+ function p0(e) {
45152
+ return typeof e[0] == "string" && d0.includes(e[0]);
45096
45153
  }
45097
- async function d0(e) {
45098
- let t = await l0();
45154
+ async function m0(e) {
45155
+ let t = await f0();
45099
45156
  if (!t) return () => {};
45100
45157
  await new Promise((n) => {
45101
45158
  try {
45102
- let r = t.transaction(s0, "readonly").objectStore(s0).openCursor();
45159
+ let r = t.transaction(u0, "readonly").objectStore(u0).openCursor();
45103
45160
  r.onsuccess = () => {
45104
45161
  let t = r.result;
45105
45162
  if (!t) return n();
45106
45163
  try {
45107
45164
  let { queryKey: n, data: r } = t.value;
45108
- u0(n) && e.getQueryData(n) === void 0 && e.setQueryData(n, r, { updatedAt: 0 });
45165
+ p0(n) && e.getQueryData(n) === void 0 && e.setQueryData(n, r, { updatedAt: 0 });
45109
45166
  } catch {}
45110
45167
  t.continue();
45111
45168
  }, r.onerror = () => n();
@@ -45116,14 +45173,14 @@ async function d0(e) {
45116
45173
  let n = /* @__PURE__ */ new Map(), r = e.getQueryCache().subscribe((r) => {
45117
45174
  if (r.type !== "updated" || r.action.type !== "success") return;
45118
45175
  let { queryKey: i, queryHash: a } = r.query;
45119
- if (!u0(i)) return;
45176
+ if (!p0(i)) return;
45120
45177
  let o = n.get(a);
45121
45178
  o && clearTimeout(o), n.set(a, setTimeout(() => {
45122
45179
  n.delete(a);
45123
45180
  try {
45124
45181
  let n = e.getQueryData(i);
45125
45182
  if (n === void 0) return;
45126
- t.transaction(s0, "readwrite").objectStore(s0).put({
45183
+ t.transaction(u0, "readwrite").objectStore(u0).put({
45127
45184
  queryKey: i,
45128
45185
  data: n
45129
45186
  }, a);
@@ -45139,7 +45196,7 @@ async function d0(e) {
45139
45196
  //#endregion
45140
45197
  //#region src/panel/App.tsx
45141
45198
  Rr();
45142
- var f0 = /*#__PURE__*/ N("<svg viewBox=\"0 0 100 100\"fill=currentColor aria-hidden><path d=\"M1.22541 61.5228c-.2225-.9485.90748-1.5459 1.59638-.857L39.3342 97.1782c.6889.6889.0915 1.8189-.857 1.5964C20.0515 94.4522 5.54779 79.9485 1.22541 61.5228ZM.00189135 46.8891c-.01764375.2833.08887215.5599.28957165.7606L52.3503 99.7085c.2007.2007.4773.3075.7606.2896 2.3692-.1476 4.6938-.46 6.9624-.9259.7645-.157 1.0301-1.0963.4782-1.6481L2.57595 39.4485c-.55186-.5519-1.49117-.2863-1.648174.4782-.465915 2.2686-.77832 4.5932-.92588465 6.9624ZM4.21093 29.7054c-.16649.3738-.08169.8106.20765 1.1l64.77602 64.776c.2894.2894.7262.3742 1.1.2077 1.7861-.7956 3.5171-1.6927 5.1855-2.684.5521-.328.6373-1.0867.1832-1.5407L8.43566 24.3367c-.45409-.4541-1.21271-.3689-1.54074.1832-.99132 1.6684-1.88843 3.3994-2.68399 5.1855ZM12.6587 18.074c-.3701-.3701-.393-.9637-.0443-1.3541C21.7795 6.45931 35.1114 0 49.9519 0 77.5927 0 100 22.4073 100 50.0481c0 14.8405-6.4593 28.1724-16.7199 37.3375-.3903.3487-.984.3258-1.3541-.0443L12.6587 18.074Z\">"), p0 = /*#__PURE__*/ N("<button><svg width=12 height=12 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 aria-hidden><rect x=1.5 y=2.5 width=13 height=11 rx=1.5></rect><path d=\"M10 2.5v11\">"), m0 = /*#__PURE__*/ N("<button aria-label=\"Minimize to launcher\"title=\"Minimize to launcher\"class=\"text-text-dim hover:text-text hover:bg-surface-3 grid size-6 shrink-0 cursor-pointer place-items-center rounded-md text-[15px] leading-none transition-colors\">–"), h0 = /*#__PURE__*/ N("<div class=\"bg-bg text-text flex h-full flex-col\"><header><span class=\"text-accent mr-0.5 inline-flex shrink-0\"title=\"Linear Grab\"></span><div class=\"no-scrollbar flex min-w-0 flex-1 items-center gap-1 overflow-x-auto\"></div></header><main class=\"min-h-0 flex-1\"><div class=h-full></div><div class=h-full></div><div class=h-full></div><div class=h-full></div><div class=h-full></div><div class=h-full>"), g0 = /*#__PURE__*/ N("<button>"), _0 = [
45199
+ var h0 = /*#__PURE__*/ N("<svg viewBox=\"0 0 100 100\"fill=currentColor aria-hidden><path d=\"M1.22541 61.5228c-.2225-.9485.90748-1.5459 1.59638-.857L39.3342 97.1782c.6889.6889.0915 1.8189-.857 1.5964C20.0515 94.4522 5.54779 79.9485 1.22541 61.5228ZM.00189135 46.8891c-.01764375.2833.08887215.5599.28957165.7606L52.3503 99.7085c.2007.2007.4773.3075.7606.2896 2.3692-.1476 4.6938-.46 6.9624-.9259.7645-.157 1.0301-1.0963.4782-1.6481L2.57595 39.4485c-.55186-.5519-1.49117-.2863-1.648174.4782-.465915 2.2686-.77832 4.5932-.92588465 6.9624ZM4.21093 29.7054c-.16649.3738-.08169.8106.20765 1.1l64.77602 64.776c.2894.2894.7262.3742 1.1.2077 1.7861-.7956 3.5171-1.6927 5.1855-2.684.5521-.328.6373-1.0867.1832-1.5407L8.43566 24.3367c-.45409-.4541-1.21271-.3689-1.54074.1832-.99132 1.6684-1.88843 3.3994-2.68399 5.1855ZM12.6587 18.074c-.3701-.3701-.393-.9637-.0443-1.3541C21.7795 6.45931 35.1114 0 49.9519 0 77.5927 0 100 22.4073 100 50.0481c0 14.8405-6.4593 28.1724-16.7199 37.3375-.3903.3487-.984.3258-1.3541-.0443L12.6587 18.074Z\">"), g0 = /*#__PURE__*/ N("<button><svg width=12 height=12 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 aria-hidden><rect x=1.5 y=2.5 width=13 height=11 rx=1.5></rect><path d=\"M10 2.5v11\">"), _0 = /*#__PURE__*/ N("<button aria-label=\"Minimize to launcher\"title=\"Minimize to launcher\"class=\"text-text-dim hover:text-text hover:bg-surface-3 grid size-6 shrink-0 cursor-pointer place-items-center rounded-md text-[15px] leading-none transition-colors\">–"), v0 = /*#__PURE__*/ N("<div class=\"bg-bg text-text flex h-full flex-col\"><header><span class=\"text-accent mr-0.5 inline-flex shrink-0\"title=\"Linear Grab\"></span><div class=\"no-scrollbar flex min-w-0 flex-1 items-center gap-1 overflow-x-auto\"></div></header><main class=\"min-h-0 flex-1\"><div class=h-full></div><div class=h-full></div><div class=h-full></div><div class=h-full></div><div class=h-full></div><div class=h-full>"), y0 = /*#__PURE__*/ N("<button>"), b0 = [
45143
45200
  {
45144
45201
  id: "draft",
45145
45202
  label: "Draft"
@@ -45164,15 +45221,15 @@ var f0 = /*#__PURE__*/ N("<svg viewBox=\"0 0 100 100\"fill=currentColor aria-hid
45164
45221
  id: "settings",
45165
45222
  label: "Settings"
45166
45223
  }
45167
- ], v0 = new gr({ defaultOptions: { queries: {
45224
+ ], x0 = new gr({ defaultOptions: { queries: {
45168
45225
  retry: 1,
45169
45226
  refetchOnWindowFocus: !1,
45170
45227
  staleTime: 5e3
45171
45228
  } } });
45172
- function y0(e) {
45229
+ function S0(e) {
45173
45230
  return (() => {
45174
- var t = f0();
45175
- return E((n) => {
45231
+ var t = h0();
45232
+ return D((n) => {
45176
45233
  var r = e.size ?? 14, i = e.size ?? 14;
45177
45234
  return r !== n.e && it(t, "width", n.e = r), i !== n.t && it(t, "height", n.t = i), n;
45178
45235
  }, {
@@ -45181,41 +45238,41 @@ function y0(e) {
45181
45238
  }), t;
45182
45239
  })();
45183
45240
  }
45184
- function b0(e) {
45241
+ function C0(e) {
45185
45242
  let [t, n] = T("draft"), r = () => {
45186
- v0.invalidateQueries({ queryKey: ["grab"] }), ZA() === "capture" && n("capture"), e.onGrab?.();
45243
+ x0.invalidateQueries({ queryKey: ["grab"] }), ZA() === "capture" && n("capture"), e.onGrab?.();
45187
45244
  };
45188
- return D(() => {
45245
+ return O(() => {
45189
45246
  let e = GA();
45190
45247
  e && n(e);
45191
45248
  }), ie(() => {
45192
- let e = d0(v0), t = IZ(r), n = () => {
45249
+ let e = m0(x0), t = IZ(r), n = () => {
45193
45250
  RO().then(GQ), FO();
45194
45251
  };
45195
45252
  n();
45196
45253
  let i = Ar((e) => {
45197
- e === "settings" && (v0.invalidateQueries({ queryKey: ["settings"] }), n()), e === "grab" && r();
45254
+ e === "settings" && (x0.invalidateQueries({ queryKey: ["settings"] }), n()), e === "grab" && r();
45198
45255
  });
45199
45256
  ae(() => {
45200
45257
  t(), i(), e.then((e) => e());
45201
45258
  });
45202
45259
  }), j(cr, {
45203
- client: v0,
45260
+ client: x0,
45204
45261
  get children() {
45205
- var r = h0(), i = r.firstChild, a = i.firstChild, o = a.nextSibling, s = i.nextSibling.firstChild, c = s.nextSibling, l = c.nextSibling, u = l.nextSibling, d = u.nextSibling, f = d.nextSibling;
45206
- return i.$$pointerdown = (t) => e.onHeaderPointerDown?.(t), P(a, j(y0, { size: 14 })), P(o, j(We, {
45207
- each: _0,
45262
+ var r = v0(), i = r.firstChild, a = i.firstChild, o = a.nextSibling, s = i.nextSibling.firstChild, c = s.nextSibling, l = c.nextSibling, u = l.nextSibling, d = u.nextSibling, f = d.nextSibling;
45263
+ return i.$$pointerdown = (t) => e.onHeaderPointerDown?.(t), P(a, j(S0, { size: 14 })), P(o, j(We, {
45264
+ each: b0,
45208
45265
  children: (e) => (() => {
45209
- var r = g0();
45210
- return r.$$click = () => n(e.id), P(r, () => e.label), E(() => st(r, `h-6 shrink-0 rounded-md px-2 text-[12px] font-medium whitespace-nowrap transition-colors ${t() === e.id ? "bg-surface-3 text-text" : "text-text-dim hover:text-text cursor-pointer"}`)), r;
45266
+ var r = y0();
45267
+ return r.$$click = () => n(e.id), P(r, () => e.label), D(() => st(r, `h-6 shrink-0 rounded-md px-2 text-[12px] font-medium whitespace-nowrap transition-colors ${t() === e.id ? "bg-surface-3 text-text" : "text-text-dim hover:text-text cursor-pointer"}`)), r;
45211
45268
  })()
45212
45269
  })), P(i, j(M, {
45213
45270
  get when() {
45214
45271
  return e.onTogglePin;
45215
45272
  },
45216
45273
  get children() {
45217
- var t = p0();
45218
- return t.$$click = () => e.onTogglePin?.(), E((n) => {
45274
+ var t = g0();
45275
+ return t.$$click = () => e.onTogglePin?.(), D((n) => {
45219
45276
  var r = e.pinned ? "Switch to overlay" : "Dock beside page", i = e.pinned ? "Overlay the page" : "Dock beside page (squeezes the app, DevTools-style)", a = `hover:bg-surface-3 grid size-6 shrink-0 cursor-pointer place-items-center rounded-md transition-colors ${e.pinned ? "text-accent" : "text-text-dim hover:text-text"}`;
45220
45277
  return r !== n.e && it(t, "aria-label", n.e = r), i !== n.t && it(t, "title", n.t = i), a !== n.a && st(t, n.a = a), n;
45221
45278
  }, {
@@ -45229,10 +45286,10 @@ function b0(e) {
45229
45286
  return e.onClose;
45230
45287
  },
45231
45288
  get children() {
45232
- var t = m0();
45289
+ var t = _0();
45233
45290
  return t.$$click = () => e.onClose?.(), t;
45234
45291
  }
45235
- }), null), P(s, j(dM, { onCreated: () => n("activity") })), P(c, j(aQ, {})), P(l, j(D$, {})), P(u, j(p1, {})), P(d, j(w1, { onOpenIssue: () => n("activity") })), P(f, j(a0, {})), E((n) => {
45292
+ }), null), P(s, j(dM, { onCreated: () => n("activity") })), P(c, j(aQ, {})), P(l, j(D$, {})), P(u, j(m1, {})), P(d, j(D1, { onOpenIssue: () => n("activity") })), P(f, j(c0, {})), D((n) => {
45236
45293
  var r = `border-border bg-surface flex shrink-0 items-center gap-1 border-b px-2 py-1.5 select-none ${e.onHeaderPointerDown ? "cursor-grab active:cursor-grabbing" : ""}`, a = t() !== "draft", o = t() !== "capture", p = t() !== "activity", m = t() !== "local", h = t() !== "prs", g = t() !== "settings";
45237
45294
  return r !== n.e && st(i, n.e = r), a !== n.t && s.classList.toggle("hidden", n.t = a), o !== n.a && c.classList.toggle("hidden", n.a = o), p !== n.o && l.classList.toggle("hidden", n.o = p), m !== n.i && u.classList.toggle("hidden", n.i = m), h !== n.n && d.classList.toggle("hidden", n.n = h), g !== n.s && f.classList.toggle("hidden", n.s = g), n;
45238
45295
  }, {
@@ -45250,12 +45307,12 @@ function b0(e) {
45250
45307
  rt(["pointerdown", "click"]);
45251
45308
  //#endregion
45252
45309
  //#region src/styles/app.css?inline
45253
- var x0 = "/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-contain-size:initial;--tw-contain-layout:initial;--tw-contain-paint:initial;--tw-contain-style:initial}}}@layer theme{:root,:host{--font-sans:\"Inter\", ui-sans-serif, system-ui, -apple-system, sans-serif;--font-serif:ui-serif, Georgia, Cambria, \"Times New Roman\", Times, serif;--font-mono:ui-monospace, \"SF Mono\", Menlo, monospace;--color-red-500:oklch(63.7% .237 25.331);--color-white:#fff;--spacing:.25rem;--font-weight-thin:100;--font-weight-extralight:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-wide:.025em;--leading-snug:1.375;--leading-relaxed:1.625;--radius-sm:4px;--radius-md:6px;--radius-lg:10px;--radius-xl:.75rem;--ease-out:cubic-bezier(0, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-bg:#0b0c0e;--color-surface:#141517;--color-surface-2:#1c1d21;--color-surface-3:#24262b;--color-border:#26282d;--color-border-strong:#34363d;--color-text:#e8e9eb;--color-text-dim:#8b8e98;--color-text-faint:#5c5f6a;--color-accent:#5e6ad2;--color-accent-hover:#6e79e0;--color-accent-soft:#5e6ad226;--color-success:#4cb782;--color-warn:#f2c94c;--color-danger:#eb5757;--color-danger-soft:#eb575726}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.visible\\!{visibility:visible!important}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.inset-y-0{inset-block:0}.top-0{top:0}.top-0\\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-1\\/2{top:50%}.top-\\[2px\\]{top:2px}.top-full{top:100%}.right-0{right:0}.right-0\\.5{right:calc(var(--spacing) * .5)}.right-4{right:calc(var(--spacing) * 4)}.right-full{right:100%}.bottom-0{bottom:0}.bottom-4{bottom:calc(var(--spacing) * 4)}.bottom-\\[2px\\]{bottom:2px}.bottom-full{bottom:100%}.left-0{left:0}.left-1{left:var(--spacing)}.left-1\\/2{left:50%}.left-full{left:100%}.z-1{z-index:1}.z-10{z-index:10}.z-\\[2147483645\\]{z-index:2147483645}.z-\\[2147483646\\]{z-index:2147483646}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.container\\!{width:100%!important}@media (width>=40rem){.container\\!{max-width:40rem!important}}@media (width>=48rem){.container\\!{max-width:48rem!important}}@media (width>=64rem){.container\\!{max-width:64rem!important}}@media (width>=80rem){.container\\!{max-width:80rem!important}}@media (width>=96rem){.container\\!{max-width:96rem!important}}.-m-0{margin:0}.-m-0\\.5{margin:calc(var(--spacing) * -.5)}.-m-4{margin:calc(var(--spacing) * -4)}.m-0{margin:0}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.-my-1{margin-block:calc(var(--spacing) * -1)}.-my-1\\.5{margin-block:calc(var(--spacing) * -1.5)}.mt-0{margin-top:0}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-px{margin-top:1px}.mr-0{margin-right:0}.mr-0\\.5{margin-right:calc(var(--spacing) * .5)}.mr-1{margin-right:var(--spacing)}.mr-1\\.5{margin-right:calc(var(--spacing) * 1.5)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mr-2\\.5{margin-right:calc(var(--spacing) * 2.5)}.-mb-4{margin-bottom:calc(var(--spacing) * -4)}.mb-0{margin-bottom:0}.mb-0\\.5{margin-bottom:calc(var(--spacing) * .5)}.mb-1{margin-bottom:var(--spacing)}.mb-1\\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\\.5{margin-bottom:calc(var(--spacing) * 2.5)}.ml-1{margin-left:var(--spacing)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-2\\.5{margin-left:calc(var(--spacing) * 2.5)}.ml-4{margin-left:calc(var(--spacing) * 4)}.ml-auto{margin-left:auto}.ml-px{margin-left:1px}.line-clamp-5{-webkit-line-clamp:5;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.list-item{display:list-item}.table{display:table}.size-0{width:0;height:0}.size-1{width:var(--spacing);height:var(--spacing)}.size-1\\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-\\[12px\\]{width:12px;height:12px}.size-\\[16px\\]{width:16px;height:16px}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-16{height:calc(var(--spacing) * 16)}.h-\\[8px\\]{height:8px}.h-\\[17px\\]{height:17px}.h-\\[18px\\]{height:18px}.h-\\[20px\\]{height:20px}.h-\\[24px\\]{height:24px}.h-fit{height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.max-h-32{max-height:calc(var(--spacing) * 32)}.max-h-40{max-height:calc(var(--spacing) * 40)}.max-h-44{max-height:calc(var(--spacing) * 44)}.max-h-56{max-height:calc(var(--spacing) * 56)}.max-h-64{max-height:calc(var(--spacing) * 64)}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-\\[var\\(--rg-edit-list-max-h\\)\\]{max-height:var(--rg-edit-list-max-h)}.min-h-0{min-height:0}.min-h-4{min-height:calc(var(--spacing) * 4)}.min-h-\\[2lh\\]{min-height:2lh}.min-h-\\[28px\\]{min-height:28px}.w-1{width:var(--spacing)}.w-3{width:calc(var(--spacing) * 3)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-16{width:calc(var(--spacing) * 16)}.w-72{width:calc(var(--spacing) * 72)}.w-\\[2px\\]{width:2px}.w-\\[calc\\(100\\%\\+16px\\)\\]{width:calc(100% + 16px)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.max-w-\\[55\\%\\]{max-width:55%}.max-w-\\[100vw\\]{max-width:100vw}.max-w-\\[280px\\]{max-width:280px}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-\\[3\\.5ch\\]{min-width:3.5ch}.min-w-\\[4ch\\]{min-width:4ch}.min-w-\\[5ch\\]{min-width:5ch}.min-w-\\[6ch\\]{min-width:6ch}.min-w-\\[12ch\\]{min-width:12ch}.min-w-\\[36px\\]{min-width:36px}.min-w-\\[52px\\]{min-width:52px}.min-w-\\[68px\\]{min-width:68px}.min-w-\\[100px\\]{min-width:100px}.min-w-\\[150px\\]{min-width:150px}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.-rotate-90{rotate:-90deg}.rotate-0{rotate:0deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-col-resize{cursor:col-resize}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.resize{resize:both}.resize-none{resize:none}.resize-y{resize:vertical}.list-decimal{list-style-type:decimal}.grid-cols-\\[0fr\\]{grid-template-columns:0fr}.grid-cols-\\[1fr\\]{grid-template-columns:1fr}.grid-rows-\\[0fr\\]{grid-template-rows:0fr}.grid-rows-\\[1fr\\]{grid-template-rows:1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0{gap:0}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-\\[5px\\]{gap:5px}.self-end{align-self:flex-end}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-clip{overflow:clip}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\\[1px\\]{border-radius:1px}.rounded-\\[3px\\]{border-radius:3px}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[5px\\]{border-radius:5px}.rounded-\\[6px\\]{border-radius:6px}.rounded-\\[13px\\]{border-radius:13px}.rounded-\\[14px\\]{border-radius:14px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-\\[10px\\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-l-\\[10px\\]{border-top-left-radius:10px;border-bottom-left-radius:10px}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-tl{border-top-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-r-\\[10px\\]{border-top-right-radius:10px;border-bottom-right-radius:10px}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-\\[6px\\]{border-bottom-right-radius:6px;border-bottom-left-radius:6px}.rounded-b-\\[10px\\]{border-bottom-right-radius:10px;border-bottom-left-radius:10px}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-br{border-bottom-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.\\[border-width\\:0\\.5px\\]{border-width:.5px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-4{border-top-style:var(--tw-border-style);border-top-width:4px}.\\[border-top-width\\:0\\.5px\\]{border-top-width:.5px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-dotted{--tw-border-style:dotted;border-style:dotted}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[var\\(--rg-border-button\\)\\]{border-color:var(--rg-border-button)}.border-accent{border-color:var(--color-accent)}.border-accent\\/40{border-color:#5e6ad266}@supports (color:color-mix(in lab, red, red)){.border-accent\\/40{border-color:color-mix(in oklab, var(--color-accent) 40%, transparent)}}.border-border{border-color:var(--color-border)}.border-success{border-color:var(--color-success)}.border-success\\/40{border-color:#4cb78266}@supports (color:color-mix(in lab, red, red)){.border-success\\/40{border-color:color-mix(in oklab, var(--color-success) 40%, transparent)}}.border-text-dim{border-color:var(--color-text-dim)}.border-transparent{border-color:#0000}.border-warn{border-color:var(--color-warn)}.border-warn\\/40{border-color:#f2c94c66}@supports (color:color-mix(in lab, red, red)){.border-warn\\/40{border-color:color-mix(in oklab, var(--color-warn) 40%, transparent)}}.border-t-\\[var\\(--rg-border-subtle\\)\\]{border-top-color:var(--rg-border-subtle)}.border-t-transparent{border-top-color:#0000}.bg-\\[var\\(--rg-error-bg\\)\\]{background-color:var(--rg-error-bg)}.bg-\\[var\\(--rg-panel-bg\\)\\]{background-color:var(--rg-panel-bg)}.bg-\\[var\\(--rg-submit-bg\\)\\]{background-color:var(--rg-submit-bg)}.bg-\\[var\\(--rg-surface-active\\)\\]{background-color:var(--rg-surface-active)}.bg-\\[var\\(--rg-surface-hover\\)\\]{background-color:var(--rg-surface-hover)}.bg-\\[var\\(--rg-text-primary\\)\\]{background-color:var(--rg-text-primary)}.bg-\\[var\\(--rg-text-secondary\\)\\]{background-color:var(--rg-text-secondary)}.bg-accent{background-color:var(--color-accent)}.bg-accent-soft{background-color:var(--color-accent-soft)}.bg-bg{background-color:var(--color-bg)}.bg-bg\\/80{background-color:#0b0c0ecc}@supports (color:color-mix(in lab, red, red)){.bg-bg\\/80{background-color:color-mix(in oklab, var(--color-bg) 80%, transparent)}}.bg-border{background-color:var(--color-border)}.bg-current{background-color:currentColor}.bg-danger{background-color:var(--color-danger)}.bg-danger-soft{background-color:var(--color-danger-soft)}.bg-red-500{background-color:var(--color-red-500)}.bg-success{background-color:var(--color-success)}.bg-surface{background-color:var(--color-surface)}.bg-surface-2{background-color:var(--color-surface-2)}.bg-surface-3{background-color:var(--color-surface-3)}.bg-text-faint{background-color:var(--color-text-faint)}.bg-transparent{background-color:#0000}.bg-warn{background-color:var(--color-warn)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-0\\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:var(--spacing)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\\.5{padding:calc(var(--spacing) * 2.5)}.p-6{padding:calc(var(--spacing) * 6)}.px-0{padding-inline:0}.px-0\\.25{padding-inline:calc(var(--spacing) * .25)}.px-1{padding-inline:var(--spacing)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-\\[3px\\]{padding-inline:3px}.py-0{padding-block:0}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-0\\.25{padding-block:calc(var(--spacing) * .25)}.py-1{padding-block:var(--spacing)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-px{padding-block:1px}.pt-0{padding-top:0}.pt-0\\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-1\\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-1{padding-right:var(--spacing)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pb-1{padding-bottom:var(--spacing)}.pb-1\\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-2\\.5{padding-left:calc(var(--spacing) * 2.5)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-end{text-align:end}.text-justify{text-align:justify}.text-left{text-align:left}.text-right{text-align:right}.text-start{text-align:start}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.font-serif{font-family:var(--font-serif)}.text-\\[9\\.5px\\]{font-size:9.5px}.text-\\[9px\\]{font-size:9px}.text-\\[10\\.5px\\]{font-size:10.5px}.text-\\[10px\\]{font-size:10px}.text-\\[11\\.5px\\]{font-size:11.5px}.text-\\[11px\\]{font-size:11px}.text-\\[12\\.5px\\]{font-size:12.5px}.text-\\[12px\\]{font-size:12px}.text-\\[13px\\]{font-size:13px}.text-\\[15px\\]{font-size:15px}.leading-3{--tw-leading:calc(var(--spacing) * 3);line-height:calc(var(--spacing) * 3)}.leading-3\\.5{--tw-leading:calc(var(--spacing) * 3.5);line-height:calc(var(--spacing) * 3.5)}.leading-4{--tw-leading:calc(var(--spacing) * 4);line-height:calc(var(--spacing) * 4)}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-extralight{--tw-font-weight:var(--font-weight-extralight);font-weight:var(--font-weight-extralight)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.font-thin{--tw-font-weight:var(--font-weight-thin);font-weight:var(--font-weight-thin)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.break-normal{overflow-wrap:normal;word-break:normal}.break-words,.wrap-break-word{overflow-wrap:break-word}.break-all{word-break:break-all}.break-keep{word-break:keep-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-break-spaces{white-space:break-spaces}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[var\\(--rg-error-text\\)\\]{color:var(--rg-error-text)}.text-\\[var\\(--rg-submit-fg\\)\\]{color:var(--rg-submit-fg)}.text-\\[var\\(--rg-text-primary\\)\\]{color:var(--rg-text-primary)}.text-\\[var\\(--rg-text-primary-85\\)\\]{color:var(--rg-text-primary-85)}.text-\\[var\\(--rg-text-secondary\\)\\]{color:var(--rg-text-secondary)}.text-accent{color:var(--color-accent)}.text-danger{color:var(--color-danger)}.text-success{color:var(--color-success)}.text-text{color:var(--color-text)}.text-text-dim{color:var(--color-text-dim)}.text-text-faint{color:var(--color-text-faint)}.text-warn{color:var(--color-warn)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.accent-accent{accent-color:var(--color-accent)}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.\\[box-shadow\\:var\\(--rg-shadow\\)\\]{box-shadow:var(--rg-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.\\[filter\\:var\\(--rg-drop-shadow\\)\\]{filter:var(--rg-drop-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-columns\\]{transition-property:grid-template-columns;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-rows\\]{transition-property:grid-template-rows;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[padding\\,border-radius\\,transform\\]{transition-property:padding,border-radius,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[top\\,left\\,width\\,height\\,opacity\\,border-radius\\]{transition-property:top,left,width,height,opacity,border-radius;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[transform\\,color\\]{transition-property:transform,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[transform\\,opacity\\]{transition-property:transform,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.delay-\\[80ms\\]{transition-delay:80ms}.duration-60{--tw-duration:60ms;transition-duration:60ms}.duration-75{--tw-duration:75ms;transition-duration:75ms}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-120{--tw-duration:.12s;transition-duration:.12s}.duration-140{--tw-duration:.14s;transition-duration:.14s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-180{--tw-duration:.18s;transition-duration:.18s}.duration-220{--tw-duration:.22s;transition-duration:.22s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-400{--tw-duration:.4s;transition-duration:.4s}.ease-\\[cubic-bezier\\(0\\,0\\,0\\.2\\,1\\)\\]{--tw-ease:cubic-bezier(0,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-\\[opacity\\,transform\\]{will-change:opacity,transform}.will-change-transform{will-change:transform}.contain-layout{--tw-contain-layout:layout;contain:var(--tw-contain-size,) var(--tw-contain-layout,) var(--tw-contain-paint,) var(--tw-contain-style,)}.outline-none{--tw-outline-style:none;outline-style:none}.select-all{-webkit-user-select:all;user-select:all}.select-none{-webkit-user-select:none;user-select:none}.\\[corner-shape\\:superellipse\\(1\\.25\\)\\]{corner-shape:superellipse(1.25)}.\\[font-synthesis\\:none\\]{font-synthesis:none}.group-open\\:rotate-90:is(:where(.group):is([open],:popover-open,:open) *){rotate:90deg}@media (hover:hover){.group-hover\\:text-\\[var\\(--rg-text-primary\\)\\]:is(:where(.group):hover *){color:var(--rg-text-primary)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.placeholder\\:text-text-faint::placeholder{color:var(--color-text-faint)}@media (hover:hover){.hover\\:bg-\\[var\\(--rg-error-bg-hover\\)\\]:hover{background-color:var(--rg-error-bg-hover)}.hover\\:bg-\\[var\\(--rg-surface-active\\)\\]:hover{background-color:var(--rg-surface-active)}.hover\\:bg-\\[var\\(--rg-surface-hover\\)\\]:hover{background-color:var(--rg-surface-hover)}.hover\\:bg-accent-hover:hover{background-color:var(--color-accent-hover)}.hover\\:bg-accent\\/50:hover{background-color:#5e6ad280}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-accent\\/50:hover{background-color:color-mix(in oklab, var(--color-accent) 50%, transparent)}}.hover\\:bg-danger\\/30:hover{background-color:#eb57574d}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-danger\\/30:hover{background-color:color-mix(in oklab, var(--color-danger) 30%, transparent)}}.hover\\:bg-surface-2:hover{background-color:var(--color-surface-2)}.hover\\:bg-surface-3:hover{background-color:var(--color-surface-3)}.hover\\:text-\\[var\\(--rg-text-primary\\)\\]:hover{color:var(--rg-text-primary)}.hover\\:text-danger:hover{color:var(--color-danger)}.hover\\:text-text:hover{color:var(--color-text)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-80:hover{opacity:.8}}.focus\\:border-accent:focus{border-color:var(--color-accent)}.active\\:cursor-grabbing:active{cursor:grabbing}.active\\:bg-accent:active{background-color:var(--color-accent)}.disabled\\:cursor-default:disabled{cursor:default}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-surface-3:disabled{background-color:var(--color-surface-3)}.disabled\\:text-text-faint:disabled{color:var(--color-text-faint)}.disabled\\:opacity-40:disabled{opacity:.4}@media (hover:hover){.disabled\\:hover\\:bg-surface-2:disabled:hover{background-color:var(--color-surface-2)}}}:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}[data-theme=light],:host([data-theme=light]){--color-bg:#fbfbfc;--color-surface:#fff;--color-surface-2:#f4f4f6;--color-surface-3:#e9e9ee;--color-border:#e2e2e8;--color-border-strong:#cfcfd8;--color-text:#1b1c20;--color-text-dim:#5c5f6a;--color-text-faint:#9a9da8;--color-accent-soft:#5e6ad21f;--color-danger-soft:#eb57571a;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:light){:root:not([data-theme=dark]){--color-bg:#fbfbfc;--color-surface:#fff;--color-surface-2:#f4f4f6;--color-surface-3:#e9e9ee;--color-border:#e2e2e8;--color-border-strong:#cfcfd8;--color-text:#1b1c20;--color-text-dim:#5c5f6a;--color-text-faint:#9a9da8;--color-accent-soft:#5e6ad21f;--color-danger-soft:#eb57571a;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}}body{background-color:var(--color-bg);font-family:var(--font-sans);color:var(--color-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;min-width:320px;margin:0;font-size:13px}@keyframes geist-spinner-fade{0%{opacity:1}to{opacity:.15}}[data-tip]{position:relative}[data-tip]:hover:after{content:attr(data-tip);color:#fff;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;z-index:60;background:#1b1c20;border-radius:6px;max-width:260px;padding:3px 8px;font-size:10.5px;font-weight:500;line-height:1.35;position:absolute;bottom:calc(100% + 6px);left:50%;overflow:hidden;transform:translate(-50%);box-shadow:0 4px 12px #0000004d}.no-scrollbar{scrollbar-width:none}.no-scrollbar::-webkit-scrollbar{display:none}.lg-md p{margin:0 0 6px}.lg-md p:last-child{margin-bottom:0}.lg-md a{color:var(--color-accent);word-break:break-all;text-decoration:none}.lg-md a:hover{text-decoration:underline}.lg-md code{background:var(--color-surface-2);border:1px solid var(--color-border);font-family:var(--font-mono);border-radius:4px;padding:0 4px;font-size:11px}.lg-md pre{background:var(--color-surface-2);border:1px solid var(--color-border);border-radius:6px;margin:6px 0;padding:8px;overflow-x:auto}.lg-md pre code{white-space:pre;background:0 0;border:none;padding:0;font-size:11px}.lg-md ul,.lg-md ol{flex-direction:column;gap:2px;margin:4px 0 6px;padding-left:18px;display:flex}.lg-md ul{list-style:outside}.lg-md ol{list-style:decimal}.lg-md h4{margin:8px 0 4px;font-size:12px;font-weight:600}.lg-md lg-media{display:block}.lg-md lg-media img,.lg-md lg-media video{border:1px solid var(--color-border);border-radius:6px;max-width:100%;margin:4px 0}.lg-md video{border:1px solid var(--color-border);background:#000;border-radius:6px;max-width:100%;margin:4px 0}.lg-md img{border:1px solid var(--color-border);border-radius:6px;max-width:100%;margin:4px 0}.lg-md strong{font-weight:600}*{scrollbar-width:thin;scrollbar-color:var(--color-border-strong) transparent}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:var(--color-border-strong);border-radius:4px}::-webkit-scrollbar-track{background:0 0}@property --tw-rotate-x{syntax:\"*\";inherits:false}@property --tw-rotate-y{syntax:\"*\";inherits:false}@property --tw-rotate-z{syntax:\"*\";inherits:false}@property --tw-skew-x{syntax:\"*\";inherits:false}@property --tw-skew-y{syntax:\"*\";inherits:false}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-tracking{syntax:\"*\";inherits:false}@property --tw-ordinal{syntax:\"*\";inherits:false}@property --tw-slashed-zero{syntax:\"*\";inherits:false}@property --tw-numeric-figure{syntax:\"*\";inherits:false}@property --tw-numeric-spacing{syntax:\"*\";inherits:false}@property --tw-numeric-fraction{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-blur{syntax:\"*\";inherits:false}@property --tw-brightness{syntax:\"*\";inherits:false}@property --tw-contrast{syntax:\"*\";inherits:false}@property --tw-grayscale{syntax:\"*\";inherits:false}@property --tw-hue-rotate{syntax:\"*\";inherits:false}@property --tw-invert{syntax:\"*\";inherits:false}@property --tw-opacity{syntax:\"*\";inherits:false}@property --tw-saturate{syntax:\"*\";inherits:false}@property --tw-sepia{syntax:\"*\";inherits:false}@property --tw-drop-shadow{syntax:\"*\";inherits:false}@property --tw-drop-shadow-color{syntax:\"*\";inherits:false}@property --tw-drop-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:\"*\";inherits:false}@property --tw-backdrop-blur{syntax:\"*\";inherits:false}@property --tw-backdrop-brightness{syntax:\"*\";inherits:false}@property --tw-backdrop-contrast{syntax:\"*\";inherits:false}@property --tw-backdrop-grayscale{syntax:\"*\";inherits:false}@property --tw-backdrop-hue-rotate{syntax:\"*\";inherits:false}@property --tw-backdrop-invert{syntax:\"*\";inherits:false}@property --tw-backdrop-opacity{syntax:\"*\";inherits:false}@property --tw-backdrop-saturate{syntax:\"*\";inherits:false}@property --tw-backdrop-sepia{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}@property --tw-contain-size{syntax:\"*\";inherits:false}@property --tw-contain-layout{syntax:\"*\";inherits:false}@property --tw-contain-paint{syntax:\"*\";inherits:false}@property --tw-contain-style{syntax:\"*\";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}";
45310
+ var w0 = "/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-contain-size:initial;--tw-contain-layout:initial;--tw-contain-paint:initial;--tw-contain-style:initial}}}@layer theme{:root,:host{--font-sans:\"Inter\", ui-sans-serif, system-ui, -apple-system, sans-serif;--font-serif:ui-serif, Georgia, Cambria, \"Times New Roman\", Times, serif;--font-mono:ui-monospace, \"SF Mono\", Menlo, monospace;--color-red-500:oklch(63.7% .237 25.331);--color-white:#fff;--spacing:.25rem;--font-weight-thin:100;--font-weight-extralight:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-wide:.025em;--leading-snug:1.375;--leading-relaxed:1.625;--radius-sm:4px;--radius-md:6px;--radius-lg:10px;--radius-xl:.75rem;--ease-out:cubic-bezier(0, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-bg:#0b0c0e;--color-surface:#141517;--color-surface-2:#1c1d21;--color-surface-3:#24262b;--color-border:#26282d;--color-border-strong:#34363d;--color-text:#e8e9eb;--color-text-dim:#8b8e98;--color-text-faint:#5c5f6a;--color-accent:#5e6ad2;--color-accent-hover:#6e79e0;--color-accent-soft:#5e6ad226;--color-success:#4cb782;--color-warn:#f2c94c;--color-danger:#eb5757;--color-danger-soft:#eb575726}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.visible\\!{visibility:visible!important}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.inset-y-0{inset-block:0}.top-0{top:0}.top-0\\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-1\\/2{top:50%}.top-\\[2px\\]{top:2px}.top-full{top:100%}.right-0{right:0}.right-0\\.5{right:calc(var(--spacing) * .5)}.right-4{right:calc(var(--spacing) * 4)}.right-full{right:100%}.bottom-0{bottom:0}.bottom-4{bottom:calc(var(--spacing) * 4)}.bottom-\\[2px\\]{bottom:2px}.bottom-full{bottom:100%}.left-0{left:0}.left-1{left:var(--spacing)}.left-1\\/2{left:50%}.left-full{left:100%}.z-1{z-index:1}.z-10{z-index:10}.z-\\[2147483645\\]{z-index:2147483645}.z-\\[2147483646\\]{z-index:2147483646}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.container\\!{width:100%!important}@media (width>=40rem){.container\\!{max-width:40rem!important}}@media (width>=48rem){.container\\!{max-width:48rem!important}}@media (width>=64rem){.container\\!{max-width:64rem!important}}@media (width>=80rem){.container\\!{max-width:80rem!important}}@media (width>=96rem){.container\\!{max-width:96rem!important}}.-m-0{margin:0}.-m-0\\.5{margin:calc(var(--spacing) * -.5)}.-m-4{margin:calc(var(--spacing) * -4)}.m-0{margin:0}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.-my-1{margin-block:calc(var(--spacing) * -1)}.-my-1\\.5{margin-block:calc(var(--spacing) * -1.5)}.mt-0{margin-top:0}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-px{margin-top:1px}.mr-0{margin-right:0}.mr-0\\.5{margin-right:calc(var(--spacing) * .5)}.mr-1{margin-right:var(--spacing)}.mr-1\\.5{margin-right:calc(var(--spacing) * 1.5)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mr-2\\.5{margin-right:calc(var(--spacing) * 2.5)}.-mb-4{margin-bottom:calc(var(--spacing) * -4)}.mb-0{margin-bottom:0}.mb-0\\.5{margin-bottom:calc(var(--spacing) * .5)}.mb-1{margin-bottom:var(--spacing)}.mb-1\\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\\.5{margin-bottom:calc(var(--spacing) * 2.5)}.ml-1{margin-left:var(--spacing)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-2\\.5{margin-left:calc(var(--spacing) * 2.5)}.ml-4{margin-left:calc(var(--spacing) * 4)}.ml-auto{margin-left:auto}.ml-px{margin-left:1px}.line-clamp-5{-webkit-line-clamp:5;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.list-item{display:list-item}.table{display:table}.size-0{width:0;height:0}.size-1{width:var(--spacing);height:var(--spacing)}.size-1\\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-\\[12px\\]{width:12px;height:12px}.size-\\[16px\\]{width:16px;height:16px}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-16{height:calc(var(--spacing) * 16)}.h-\\[8px\\]{height:8px}.h-\\[17px\\]{height:17px}.h-\\[18px\\]{height:18px}.h-\\[20px\\]{height:20px}.h-\\[24px\\]{height:24px}.h-fit{height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.max-h-32{max-height:calc(var(--spacing) * 32)}.max-h-40{max-height:calc(var(--spacing) * 40)}.max-h-44{max-height:calc(var(--spacing) * 44)}.max-h-56{max-height:calc(var(--spacing) * 56)}.max-h-64{max-height:calc(var(--spacing) * 64)}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-\\[var\\(--rg-edit-list-max-h\\)\\]{max-height:var(--rg-edit-list-max-h)}.min-h-0{min-height:0}.min-h-4{min-height:calc(var(--spacing) * 4)}.min-h-\\[2lh\\]{min-height:2lh}.min-h-\\[28px\\]{min-height:28px}.w-1{width:var(--spacing)}.w-3{width:calc(var(--spacing) * 3)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-16{width:calc(var(--spacing) * 16)}.w-72{width:calc(var(--spacing) * 72)}.w-\\[2px\\]{width:2px}.w-\\[calc\\(100\\%\\+16px\\)\\]{width:calc(100% + 16px)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.max-w-\\[55\\%\\]{max-width:55%}.max-w-\\[100vw\\]{max-width:100vw}.max-w-\\[280px\\]{max-width:280px}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-\\[3\\.5ch\\]{min-width:3.5ch}.min-w-\\[4ch\\]{min-width:4ch}.min-w-\\[5ch\\]{min-width:5ch}.min-w-\\[6ch\\]{min-width:6ch}.min-w-\\[12ch\\]{min-width:12ch}.min-w-\\[36px\\]{min-width:36px}.min-w-\\[52px\\]{min-width:52px}.min-w-\\[68px\\]{min-width:68px}.min-w-\\[100px\\]{min-width:100px}.min-w-\\[150px\\]{min-width:150px}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.-rotate-90{rotate:-90deg}.rotate-0{rotate:0deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-col-resize{cursor:col-resize}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.resize{resize:both}.resize-none{resize:none}.resize-y{resize:vertical}.list-decimal{list-style-type:decimal}.grid-cols-\\[0fr\\]{grid-template-columns:0fr}.grid-cols-\\[1fr\\]{grid-template-columns:1fr}.grid-rows-\\[0fr\\]{grid-template-rows:0fr}.grid-rows-\\[1fr\\]{grid-template-rows:1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0{gap:0}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-\\[5px\\]{gap:5px}.self-end{align-self:flex-end}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-clip{overflow:clip}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\\[1px\\]{border-radius:1px}.rounded-\\[3px\\]{border-radius:3px}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[5px\\]{border-radius:5px}.rounded-\\[6px\\]{border-radius:6px}.rounded-\\[13px\\]{border-radius:13px}.rounded-\\[14px\\]{border-radius:14px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-\\[10px\\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-l-\\[10px\\]{border-top-left-radius:10px;border-bottom-left-radius:10px}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-tl{border-top-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-r-\\[10px\\]{border-top-right-radius:10px;border-bottom-right-radius:10px}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-\\[6px\\]{border-bottom-right-radius:6px;border-bottom-left-radius:6px}.rounded-b-\\[10px\\]{border-bottom-right-radius:10px;border-bottom-left-radius:10px}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-br{border-bottom-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.\\[border-width\\:0\\.5px\\]{border-width:.5px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-4{border-top-style:var(--tw-border-style);border-top-width:4px}.\\[border-top-width\\:0\\.5px\\]{border-top-width:.5px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-dotted{--tw-border-style:dotted;border-style:dotted}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[var\\(--rg-border-button\\)\\]{border-color:var(--rg-border-button)}.border-accent{border-color:var(--color-accent)}.border-accent\\/40{border-color:#5e6ad266}@supports (color:color-mix(in lab, red, red)){.border-accent\\/40{border-color:color-mix(in oklab, var(--color-accent) 40%, transparent)}}.border-border{border-color:var(--color-border)}.border-success{border-color:var(--color-success)}.border-success\\/40{border-color:#4cb78266}@supports (color:color-mix(in lab, red, red)){.border-success\\/40{border-color:color-mix(in oklab, var(--color-success) 40%, transparent)}}.border-text-dim{border-color:var(--color-text-dim)}.border-transparent{border-color:#0000}.border-warn{border-color:var(--color-warn)}.border-warn\\/40{border-color:#f2c94c66}@supports (color:color-mix(in lab, red, red)){.border-warn\\/40{border-color:color-mix(in oklab, var(--color-warn) 40%, transparent)}}.border-t-\\[var\\(--rg-border-subtle\\)\\]{border-top-color:var(--rg-border-subtle)}.border-t-transparent{border-top-color:#0000}.bg-\\[var\\(--rg-error-bg\\)\\]{background-color:var(--rg-error-bg)}.bg-\\[var\\(--rg-panel-bg\\)\\]{background-color:var(--rg-panel-bg)}.bg-\\[var\\(--rg-submit-bg\\)\\]{background-color:var(--rg-submit-bg)}.bg-\\[var\\(--rg-surface-active\\)\\]{background-color:var(--rg-surface-active)}.bg-\\[var\\(--rg-surface-hover\\)\\]{background-color:var(--rg-surface-hover)}.bg-\\[var\\(--rg-text-primary\\)\\]{background-color:var(--rg-text-primary)}.bg-\\[var\\(--rg-text-secondary\\)\\]{background-color:var(--rg-text-secondary)}.bg-accent{background-color:var(--color-accent)}.bg-accent-soft{background-color:var(--color-accent-soft)}.bg-bg{background-color:var(--color-bg)}.bg-bg\\/80{background-color:#0b0c0ecc}@supports (color:color-mix(in lab, red, red)){.bg-bg\\/80{background-color:color-mix(in oklab, var(--color-bg) 80%, transparent)}}.bg-border{background-color:var(--color-border)}.bg-current{background-color:currentColor}.bg-danger{background-color:var(--color-danger)}.bg-danger-soft{background-color:var(--color-danger-soft)}.bg-red-500{background-color:var(--color-red-500)}.bg-success{background-color:var(--color-success)}.bg-surface{background-color:var(--color-surface)}.bg-surface-2{background-color:var(--color-surface-2)}.bg-surface-3{background-color:var(--color-surface-3)}.bg-text-faint{background-color:var(--color-text-faint)}.bg-transparent{background-color:#0000}.bg-warn{background-color:var(--color-warn)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-0\\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:var(--spacing)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\\.5{padding:calc(var(--spacing) * 2.5)}.p-6{padding:calc(var(--spacing) * 6)}.px-0{padding-inline:0}.px-0\\.25{padding-inline:calc(var(--spacing) * .25)}.px-1{padding-inline:var(--spacing)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-\\[3px\\]{padding-inline:3px}.py-0{padding-block:0}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-0\\.25{padding-block:calc(var(--spacing) * .25)}.py-1{padding-block:var(--spacing)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-px{padding-block:1px}.pt-0{padding-top:0}.pt-0\\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-1\\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-1{padding-right:var(--spacing)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pb-1{padding-bottom:var(--spacing)}.pb-1\\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-2\\.5{padding-left:calc(var(--spacing) * 2.5)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-end{text-align:end}.text-justify{text-align:justify}.text-left{text-align:left}.text-right{text-align:right}.text-start{text-align:start}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.font-serif{font-family:var(--font-serif)}.text-\\[9\\.5px\\]{font-size:9.5px}.text-\\[9px\\]{font-size:9px}.text-\\[10\\.5px\\]{font-size:10.5px}.text-\\[10px\\]{font-size:10px}.text-\\[11\\.5px\\]{font-size:11.5px}.text-\\[11px\\]{font-size:11px}.text-\\[12\\.5px\\]{font-size:12.5px}.text-\\[12px\\]{font-size:12px}.text-\\[13px\\]{font-size:13px}.text-\\[15px\\]{font-size:15px}.leading-3{--tw-leading:calc(var(--spacing) * 3);line-height:calc(var(--spacing) * 3)}.leading-3\\.5{--tw-leading:calc(var(--spacing) * 3.5);line-height:calc(var(--spacing) * 3.5)}.leading-4{--tw-leading:calc(var(--spacing) * 4);line-height:calc(var(--spacing) * 4)}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-extralight{--tw-font-weight:var(--font-weight-extralight);font-weight:var(--font-weight-extralight)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.font-thin{--tw-font-weight:var(--font-weight-thin);font-weight:var(--font-weight-thin)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.break-normal{overflow-wrap:normal;word-break:normal}.break-words,.wrap-break-word{overflow-wrap:break-word}.break-all{word-break:break-all}.break-keep{word-break:keep-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-break-spaces{white-space:break-spaces}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[var\\(--rg-error-text\\)\\]{color:var(--rg-error-text)}.text-\\[var\\(--rg-submit-fg\\)\\]{color:var(--rg-submit-fg)}.text-\\[var\\(--rg-text-primary\\)\\]{color:var(--rg-text-primary)}.text-\\[var\\(--rg-text-primary-85\\)\\]{color:var(--rg-text-primary-85)}.text-\\[var\\(--rg-text-secondary\\)\\]{color:var(--rg-text-secondary)}.text-accent{color:var(--color-accent)}.text-danger{color:var(--color-danger)}.text-success{color:var(--color-success)}.text-text{color:var(--color-text)}.text-text-dim{color:var(--color-text-dim)}.text-text-faint{color:var(--color-text-faint)}.text-warn{color:var(--color-warn)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.accent-accent{accent-color:var(--color-accent)}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.\\[box-shadow\\:var\\(--rg-shadow\\)\\]{box-shadow:var(--rg-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.\\[filter\\:var\\(--rg-drop-shadow\\)\\]{filter:var(--rg-drop-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-columns\\]{transition-property:grid-template-columns;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-rows\\]{transition-property:grid-template-rows;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[padding\\,border-radius\\,transform\\]{transition-property:padding,border-radius,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[top\\,left\\,width\\,height\\,opacity\\,border-radius\\]{transition-property:top,left,width,height,opacity,border-radius;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[transform\\,color\\]{transition-property:transform,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[transform\\,opacity\\]{transition-property:transform,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.delay-\\[80ms\\]{transition-delay:80ms}.duration-60{--tw-duration:60ms;transition-duration:60ms}.duration-75{--tw-duration:75ms;transition-duration:75ms}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-120{--tw-duration:.12s;transition-duration:.12s}.duration-140{--tw-duration:.14s;transition-duration:.14s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-180{--tw-duration:.18s;transition-duration:.18s}.duration-220{--tw-duration:.22s;transition-duration:.22s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-400{--tw-duration:.4s;transition-duration:.4s}.ease-\\[cubic-bezier\\(0\\,0\\,0\\.2\\,1\\)\\]{--tw-ease:cubic-bezier(0,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-\\[opacity\\,transform\\]{will-change:opacity,transform}.will-change-transform{will-change:transform}.contain-layout{--tw-contain-layout:layout;contain:var(--tw-contain-size,) var(--tw-contain-layout,) var(--tw-contain-paint,) var(--tw-contain-style,)}.outline-none{--tw-outline-style:none;outline-style:none}.select-all{-webkit-user-select:all;user-select:all}.select-none{-webkit-user-select:none;user-select:none}.\\[corner-shape\\:superellipse\\(1\\.25\\)\\]{corner-shape:superellipse(1.25)}.\\[font-synthesis\\:none\\]{font-synthesis:none}.group-open\\:rotate-90:is(:where(.group):is([open],:popover-open,:open) *){rotate:90deg}@media (hover:hover){.group-hover\\:text-\\[var\\(--rg-text-primary\\)\\]:is(:where(.group):hover *){color:var(--rg-text-primary)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.placeholder\\:text-text-faint::placeholder{color:var(--color-text-faint)}@media (hover:hover){.hover\\:bg-\\[var\\(--rg-error-bg-hover\\)\\]:hover{background-color:var(--rg-error-bg-hover)}.hover\\:bg-\\[var\\(--rg-surface-active\\)\\]:hover{background-color:var(--rg-surface-active)}.hover\\:bg-\\[var\\(--rg-surface-hover\\)\\]:hover{background-color:var(--rg-surface-hover)}.hover\\:bg-accent-hover:hover{background-color:var(--color-accent-hover)}.hover\\:bg-accent\\/50:hover{background-color:#5e6ad280}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-accent\\/50:hover{background-color:color-mix(in oklab, var(--color-accent) 50%, transparent)}}.hover\\:bg-danger\\/30:hover{background-color:#eb57574d}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-danger\\/30:hover{background-color:color-mix(in oklab, var(--color-danger) 30%, transparent)}}.hover\\:bg-surface-2:hover{background-color:var(--color-surface-2)}.hover\\:bg-surface-3:hover{background-color:var(--color-surface-3)}.hover\\:text-\\[var\\(--rg-text-primary\\)\\]:hover{color:var(--rg-text-primary)}.hover\\:text-danger:hover{color:var(--color-danger)}.hover\\:text-text:hover{color:var(--color-text)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-80:hover{opacity:.8}}.focus\\:border-accent:focus{border-color:var(--color-accent)}.active\\:cursor-grabbing:active{cursor:grabbing}.active\\:bg-accent:active{background-color:var(--color-accent)}.disabled\\:cursor-default:disabled{cursor:default}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-surface-3:disabled{background-color:var(--color-surface-3)}.disabled\\:text-text-faint:disabled{color:var(--color-text-faint)}.disabled\\:opacity-40:disabled{opacity:.4}@media (hover:hover){.disabled\\:hover\\:bg-surface-2:disabled:hover{background-color:var(--color-surface-2)}}}:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}[data-theme=light],:host([data-theme=light]){--color-bg:#fbfbfc;--color-surface:#fff;--color-surface-2:#f4f4f6;--color-surface-3:#e9e9ee;--color-border:#e2e2e8;--color-border-strong:#cfcfd8;--color-text:#1b1c20;--color-text-dim:#5c5f6a;--color-text-faint:#9a9da8;--color-accent-soft:#5e6ad21f;--color-danger-soft:#eb57571a;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:light){:root:not([data-theme=dark]){--color-bg:#fbfbfc;--color-surface:#fff;--color-surface-2:#f4f4f6;--color-surface-3:#e9e9ee;--color-border:#e2e2e8;--color-border-strong:#cfcfd8;--color-text:#1b1c20;--color-text-dim:#5c5f6a;--color-text-faint:#9a9da8;--color-accent-soft:#5e6ad21f;--color-danger-soft:#eb57571a;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}}body{background-color:var(--color-bg);font-family:var(--font-sans);color:var(--color-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;min-width:320px;margin:0;font-size:13px}@keyframes geist-spinner-fade{0%{opacity:1}to{opacity:.15}}[data-tip]{position:relative}[data-tip]:hover:after{content:attr(data-tip);color:#fff;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;z-index:60;background:#1b1c20;border-radius:6px;max-width:260px;padding:3px 8px;font-size:10.5px;font-weight:500;line-height:1.35;position:absolute;bottom:calc(100% + 6px);left:50%;overflow:hidden;transform:translate(-50%);box-shadow:0 4px 12px #0000004d}.no-scrollbar{scrollbar-width:none}.no-scrollbar::-webkit-scrollbar{display:none}.lg-md p{margin:0 0 6px}.lg-md p:last-child{margin-bottom:0}.lg-md a{color:var(--color-accent);word-break:break-all;text-decoration:none}.lg-md a:hover{text-decoration:underline}.lg-md code{background:var(--color-surface-2);border:1px solid var(--color-border);font-family:var(--font-mono);border-radius:4px;padding:0 4px;font-size:11px}.lg-md pre{background:var(--color-surface-2);border:1px solid var(--color-border);border-radius:6px;margin:6px 0;padding:8px;overflow-x:auto}.lg-md pre code{white-space:pre;background:0 0;border:none;padding:0;font-size:11px}.lg-md ul,.lg-md ol{flex-direction:column;gap:2px;margin:4px 0 6px;padding-left:18px;display:flex}.lg-md ul{list-style:outside}.lg-md ol{list-style:decimal}.lg-md h4{margin:8px 0 4px;font-size:12px;font-weight:600}.lg-md lg-media{display:block}.lg-md lg-media img,.lg-md lg-media video{border:1px solid var(--color-border);border-radius:6px;max-width:100%;margin:4px 0}.lg-md video{border:1px solid var(--color-border);background:#000;border-radius:6px;max-width:100%;margin:4px 0}.lg-md img{border:1px solid var(--color-border);border-radius:6px;max-width:100%;margin:4px 0}.lg-md strong{font-weight:600}*{scrollbar-width:thin;scrollbar-color:var(--color-border-strong) transparent}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:var(--color-border-strong);border-radius:4px}::-webkit-scrollbar-track{background:0 0}@property --tw-rotate-x{syntax:\"*\";inherits:false}@property --tw-rotate-y{syntax:\"*\";inherits:false}@property --tw-rotate-z{syntax:\"*\";inherits:false}@property --tw-skew-x{syntax:\"*\";inherits:false}@property --tw-skew-y{syntax:\"*\";inherits:false}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-leading{syntax:\"*\";inherits:false}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-tracking{syntax:\"*\";inherits:false}@property --tw-ordinal{syntax:\"*\";inherits:false}@property --tw-slashed-zero{syntax:\"*\";inherits:false}@property --tw-numeric-figure{syntax:\"*\";inherits:false}@property --tw-numeric-spacing{syntax:\"*\";inherits:false}@property --tw-numeric-fraction{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-blur{syntax:\"*\";inherits:false}@property --tw-brightness{syntax:\"*\";inherits:false}@property --tw-contrast{syntax:\"*\";inherits:false}@property --tw-grayscale{syntax:\"*\";inherits:false}@property --tw-hue-rotate{syntax:\"*\";inherits:false}@property --tw-invert{syntax:\"*\";inherits:false}@property --tw-opacity{syntax:\"*\";inherits:false}@property --tw-saturate{syntax:\"*\";inherits:false}@property --tw-sepia{syntax:\"*\";inherits:false}@property --tw-drop-shadow{syntax:\"*\";inherits:false}@property --tw-drop-shadow-color{syntax:\"*\";inherits:false}@property --tw-drop-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:\"*\";inherits:false}@property --tw-backdrop-blur{syntax:\"*\";inherits:false}@property --tw-backdrop-brightness{syntax:\"*\";inherits:false}@property --tw-backdrop-contrast{syntax:\"*\";inherits:false}@property --tw-backdrop-grayscale{syntax:\"*\";inherits:false}@property --tw-backdrop-hue-rotate{syntax:\"*\";inherits:false}@property --tw-backdrop-invert{syntax:\"*\";inherits:false}@property --tw-backdrop-opacity{syntax:\"*\";inherits:false}@property --tw-backdrop-saturate{syntax:\"*\";inherits:false}@property --tw-backdrop-sepia{syntax:\"*\";inherits:false}@property --tw-duration{syntax:\"*\";inherits:false}@property --tw-ease{syntax:\"*\";inherits:false}@property --tw-contain-size{syntax:\"*\";inherits:false}@property --tw-contain-layout{syntax:\"*\";inherits:false}@property --tw-contain-paint{syntax:\"*\";inherits:false}@property --tw-contain-style{syntax:\"*\";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}";
45254
45311
  //#endregion
45255
45312
  //#region src/page/index.tsx
45256
45313
  Rr();
45257
- var S0 = /*#__PURE__*/ N("<span aria-hidden class=\"bg-danger size-2 shrink-0 animate-pulse rounded-full\">"), C0 = /*#__PURE__*/ N("<span class=\"text-text min-w-[5ch] text-[11px] font-medium tabular-nums\">"), w0 = /*#__PURE__*/ N("<button class=\"bg-accent hover:bg-accent-hover h-7 cursor-pointer rounded-full px-2.5 text-[11px] font-medium text-white transition-colors\"><span class=\"inline-block min-w-[4ch] text-center\">Stop"), T0 = /*#__PURE__*/ N("<p class=\"text-warn px-1.5 pt-1 pb-1.5 text-[10.5px] font-semibold tracking-wide uppercase\">Needs review"), E0 = /*#__PURE__*/ N("<div><p class=\"text-text-dim px-1.5 pt-1 pb-1.5 text-[10.5px] font-semibold tracking-wide uppercase\">Running agents"), D0 = /*#__PURE__*/ N("<div class=\"fixed z-[2147483646] select-none\"><div class=\"bg-surface border-border text-text flex h-9 cursor-grab items-center gap-1 rounded-full border py-1 pr-1 pl-2.5 font-sans shadow-lg active:cursor-grabbing\">"), O0 = /*#__PURE__*/ N("<div><div title=\"Drag to resize\">"), k0 = /*#__PURE__*/ N("<button title=\"Open Linear Grab\"aria-label=\"Open Linear Grab\"class=\"text-accent hover:opacity-80 inline-flex cursor-pointer items-center gap-1.5\">"), A0 = /*#__PURE__*/ N("<span class=\"bg-border h-4 w-px\"aria-hidden>"), j0 = /*#__PURE__*/ N("<span aria-hidden class=\"bg-warn size-2 rounded-full\">"), M0 = /*#__PURE__*/ N("<span class=\"text-warn min-w-[3.5ch] text-left text-[11px] font-medium tabular-nums\"> rev"), N0 = /*#__PURE__*/ N("<button title=\"Running agents\"aria-label=\"Running agents\"class=\"hover:bg-surface-2 flex h-7 cursor-pointer items-center gap-1.5 rounded-full px-2 transition-colors\"><span aria-hidden></span><span>"), P0 = /*#__PURE__*/ N("<p class=\"text-text-faint px-1.5 pb-1.5 text-[11.5px]\">No agents running right now."), F0 = /*#__PURE__*/ N("<button class=\"hover:bg-surface-2 flex w-full cursor-pointer flex-col gap-0.5 rounded-md px-1.5 py-1.5 text-left transition-colors\"><span class=\"flex min-w-0 items-center gap-1.5\"><span aria-hidden class=\"size-1.5 shrink-0 rounded-full\"></span><span class=\"font-mono text-text-dim shrink-0 text-[10.5px]\"></span><span class=\"text-text truncate text-[11.5px]\"></span></span><span class=\"text-text-faint pl-3 text-[10.5px] tabular-nums\"> · <!> · ");
45258
- function I0(e = {}) {
45314
+ var T0 = /*#__PURE__*/ N("<span aria-hidden class=\"bg-danger size-2 shrink-0 animate-pulse rounded-full\">"), E0 = /*#__PURE__*/ N("<span class=\"text-text min-w-[5ch] text-[11px] font-medium tabular-nums\">"), D0 = /*#__PURE__*/ N("<button class=\"bg-accent hover:bg-accent-hover h-7 cursor-pointer rounded-full px-2.5 text-[11px] font-medium text-white transition-colors\"><span class=\"inline-block min-w-[4ch] text-center\">Stop"), O0 = /*#__PURE__*/ N("<p class=\"text-warn px-1.5 pt-1 pb-1.5 text-[10.5px] font-semibold tracking-wide uppercase\">Needs review"), k0 = /*#__PURE__*/ N("<div><p class=\"text-text-dim px-1.5 pt-1 pb-1.5 text-[10.5px] font-semibold tracking-wide uppercase\">Running agents"), A0 = /*#__PURE__*/ N("<div class=\"fixed z-[2147483646] select-none\"><div class=\"bg-surface border-border text-text flex h-9 cursor-grab items-center gap-1 rounded-full border py-1 pr-1 pl-2.5 font-sans shadow-lg active:cursor-grabbing\">"), j0 = /*#__PURE__*/ N("<div><div title=\"Drag to resize\">"), M0 = /*#__PURE__*/ N("<button title=\"Open Linear Grab\"aria-label=\"Open Linear Grab\"class=\"text-accent hover:opacity-80 inline-flex cursor-pointer items-center gap-1.5\">"), N0 = /*#__PURE__*/ N("<span class=\"bg-border h-4 w-px\"aria-hidden>"), P0 = /*#__PURE__*/ N("<span aria-hidden class=\"bg-warn size-2 rounded-full\">"), F0 = /*#__PURE__*/ N("<span class=\"text-warn min-w-[3.5ch] text-left text-[11px] font-medium tabular-nums\"> rev"), I0 = /*#__PURE__*/ N("<button title=\"Running agents\"aria-label=\"Running agents\"class=\"hover:bg-surface-2 flex h-7 cursor-pointer items-center gap-1.5 rounded-full px-2 transition-colors\"><span aria-hidden></span><span>"), L0 = /*#__PURE__*/ N("<p class=\"text-text-faint px-1.5 pb-1.5 text-[11.5px]\">No agents running right now."), R0 = /*#__PURE__*/ N("<button class=\"hover:bg-surface-2 flex w-full cursor-pointer flex-col gap-0.5 rounded-md px-1.5 py-1.5 text-left transition-colors\"><span class=\"flex min-w-0 items-center gap-1.5\"><span aria-hidden class=\"size-1.5 shrink-0 rounded-full\"></span><span class=\"font-mono text-text-dim shrink-0 text-[10.5px]\"></span><span class=\"text-text truncate text-[11.5px]\"></span></span><span class=\"text-text-faint pl-3 text-[10.5px] tabular-nums\"> · <!> · ");
45315
+ function z0(e = {}) {
45259
45316
  if (typeof window > "u" || window.__LINEAR_GRAB_PAGE__) return;
45260
45317
  window.__LINEAR_GRAB_PAGE__ = !0;
45261
45318
  let t = () => {
@@ -45263,17 +45320,17 @@ function I0(e = {}) {
45263
45320
  let t = document.createElement("div");
45264
45321
  t.id = "linear-grab-root", document.body.appendChild(t);
45265
45322
  let n = t.attachShadow({ mode: "open" }), r = document.createElement("style");
45266
- r.textContent = x0, n.appendChild(r);
45323
+ r.textContent = w0, n.appendChild(r);
45267
45324
  let i = document.createElement("div");
45268
45325
  n.appendChild(i);
45269
- let a = () => i.setAttribute("data-theme", L0());
45270
- a(), matchMedia("(prefers-color-scheme: light)").addEventListener("change", a), nt(() => j(U0, { get defaultOpen() {
45326
+ let a = () => i.setAttribute("data-theme", B0());
45327
+ a(), matchMedia("(prefers-color-scheme: light)").addEventListener("change", a), nt(() => j(K0, { get defaultOpen() {
45271
45328
  return e.defaultOpen ?? !1;
45272
45329
  } }), i);
45273
45330
  };
45274
45331
  document.body ? t() : document.addEventListener("DOMContentLoaded", t, { once: !0 });
45275
45332
  }
45276
- function L0() {
45333
+ function B0() {
45277
45334
  try {
45278
45335
  let e = [document.body, document.documentElement];
45279
45336
  for (let t of e) {
@@ -45283,11 +45340,11 @@ function L0() {
45283
45340
  } catch {}
45284
45341
  return matchMedia("(prefers-color-scheme: light)").matches ? "light" : "dark";
45285
45342
  }
45286
- var R0 = 130, z0 = 36, B0 = 380, V0 = 280, H0 = 720;
45287
- function U0(e) {
45343
+ var V0 = 130, H0 = 36, U0 = 380, W0 = 280, G0 = 720;
45344
+ function K0(e) {
45288
45345
  let [t, n] = T(e.defaultOpen), [r, i] = T("right"), [a, o] = T({
45289
- x: Math.max(8, window.innerWidth - R0 - 24),
45290
- y: Math.max(8, window.innerHeight - z0 - 20)
45346
+ x: Math.max(8, window.innerWidth - V0 - 24),
45347
+ y: Math.max(8, window.innerHeight - H0 - 20)
45291
45348
  }), [s, c] = T({
45292
45349
  running: [],
45293
45350
  review: []
@@ -45302,15 +45359,15 @@ function U0(e) {
45302
45359
  let t = Math.floor(e / 1e3);
45303
45360
  return `${Math.floor(t / 60)}:${String(t % 60).padStart(2, "0")}`;
45304
45361
  }, [v, y] = T(null), b = (e) => ({
45305
- x: Math.min(Math.max(8, e.x), window.innerWidth - R0 - 8),
45306
- y: Math.min(Math.max(8, e.y), window.innerHeight - z0 - 8)
45362
+ x: Math.min(Math.max(8, e.x), window.innerWidth - V0 - 8),
45363
+ y: Math.min(Math.max(8, e.y), window.innerHeight - H0 - 8)
45307
45364
  }), x = (e) => ({
45308
- x: Math.min(Math.max(8 - (k() - 80), e.x), window.innerWidth - 80),
45365
+ x: Math.min(Math.max(8 - (te() - 80), e.x), window.innerWidth - 80),
45309
45366
  y: Math.min(Math.max(0, e.y), window.innerHeight - 80)
45310
- }), [S, C] = T(!1), [w, ee] = T("cloud"), [O, te] = T(!1), [k, A] = T(B0), ne = (e) => Math.min(H0, Math.max(V0, Math.min(e, window.innerWidth - 60)));
45311
- D(() => {
45367
+ }), [S, C] = T(!1), [w, E] = T("cloud"), [k, ee] = T(!1), [te, A] = T(U0), ne = (e) => Math.min(G0, Math.max(W0, Math.min(e, window.innerWidth - 60)));
45368
+ O(() => {
45312
45369
  let e = document.documentElement, n = t() && S();
45313
- e.style.transition = "margin 0.2s ease", e.style.marginRight = n && r() === "right" ? `${k()}px` : "", e.style.marginLeft = n && r() === "left" ? `${k()}px` : "";
45370
+ e.style.transition = "margin 0.2s ease", e.style.marginRight = n && r() === "right" ? `${te()}px` : "", e.style.marginLeft = n && r() === "left" ? `${te()}px` : "";
45314
45371
  }), ae(() => {
45315
45372
  document.documentElement.style.marginRight = "", document.documentElement.style.marginLeft = "";
45316
45373
  });
@@ -45323,14 +45380,14 @@ function U0(e) {
45323
45380
  };
45324
45381
  ie(() => {
45325
45382
  Cr().then((e) => {
45326
- e.panelSide && i(e.panelSide), e.launcherPos && o(b(e.launcherPos)), e.panelPos && y(x(e.panelPos)), e.panelWidth && A(ne(e.panelWidth)), C(e.panelMode === "pinned"), ee(e.workflowMode ?? "cloud");
45383
+ e.panelSide && i(e.panelSide), e.launcherPos && o(b(e.launcherPos)), e.panelPos && y(x(e.panelPos)), e.panelWidth && A(ne(e.panelWidth)), C(e.panelMode === "pinned"), E(e.workflowMode ?? "cloud");
45327
45384
  });
45328
45385
  let e = Ar((e) => {
45329
45386
  e === "settings" && Cr().then((e) => {
45330
- i(e.panelSide ?? "right"), C(e.panelMode === "pinned"), ee(e.workflowMode ?? "cloud");
45387
+ i(e.panelSide ?? "right"), C(e.panelMode === "pinned"), E(e.workflowMode ?? "cloud");
45331
45388
  }), e === "grab" && w() !== "local" && n(!0);
45332
45389
  }), t = () => {
45333
- te(!0), setTimeout(() => te(!1), 1600);
45390
+ ee(!0), setTimeout(() => ee(!1), 1600);
45334
45391
  };
45335
45392
  window.addEventListener(EZ, t);
45336
45393
  let r = () => {
@@ -45372,7 +45429,7 @@ function U0(e) {
45372
45429
  }, ue = (e) => {
45373
45430
  if (e.button !== 0) return;
45374
45431
  e.preventDefault(), e.stopPropagation();
45375
- let t = e.clientX, n = k(), i = v(), a = (e) => {
45432
+ let t = e.clientX, n = te(), i = v(), a = (e) => {
45376
45433
  let a = e.clientX - t, o = r() === "right" ? -a : a, s = ne(n + o);
45377
45434
  A(s), i && r() === "right" && y(x({
45378
45435
  x: i.x + (n - s),
@@ -45380,7 +45437,7 @@ function U0(e) {
45380
45437
  }));
45381
45438
  }, o = () => {
45382
45439
  window.removeEventListener("pointermove", a), window.removeEventListener("pointerup", o), wr({
45383
- panelWidth: k(),
45440
+ panelWidth: te(),
45384
45441
  ...v() ? { panelPos: v() } : {}
45385
45442
  });
45386
45443
  };
@@ -45395,7 +45452,7 @@ function U0(e) {
45395
45452
  x: e.clientX,
45396
45453
  y: e.clientY
45397
45454
  }, n = v() ?? {
45398
- x: r() === "right" ? window.innerWidth - k() : 0,
45455
+ x: r() === "right" ? window.innerWidth - te() : 0,
45399
45456
  y: 0
45400
45457
  }, i = !1, a = (e) => {
45401
45458
  let r = e.clientX - t.x, a = e.clientY - t.y;
@@ -45415,7 +45472,7 @@ function U0(e) {
45415
45472
  return !t();
45416
45473
  },
45417
45474
  get children() {
45418
- var e = D0(), t = e.firstChild;
45475
+ var e = A0(), t = e.firstChild;
45419
45476
  return t.$$pointerdown = se, P(t, j(M, {
45420
45477
  get when() {
45421
45478
  return p() === "recording";
@@ -45423,31 +45480,31 @@ function U0(e) {
45423
45480
  get fallback() {
45424
45481
  return [
45425
45482
  (() => {
45426
- var e = k0();
45483
+ var e = M0();
45427
45484
  return e.$$click = () => {
45428
45485
  oe || (f(!1), n(!0));
45429
- }, P(e, j(y0, { size: 13 })), e;
45486
+ }, P(e, j(S0, { size: 13 })), e;
45430
45487
  })(),
45431
- A0(),
45488
+ N0(),
45432
45489
  (() => {
45433
- var e = N0(), t = e.firstChild, n = t.nextSibling;
45490
+ var e = I0(), t = e.firstChild, n = t.nextSibling;
45434
45491
  return e.$$click = () => {
45435
45492
  oe || f((e) => !e);
45436
45493
  }, P(n, (() => {
45437
- var e = $e(() => !!O());
45494
+ var e = $e(() => !!k());
45438
45495
  return () => e() ? "Copied ✓" : `${l().length} run`;
45439
45496
  })()), P(e, j(M, {
45440
45497
  get when() {
45441
- return $e(() => !O())() && u().length > 0;
45498
+ return $e(() => !k())() && u().length > 0;
45442
45499
  },
45443
45500
  get children() {
45444
- return [j0(), (() => {
45445
- var e = M0(), t = e.firstChild;
45501
+ return [P0(), (() => {
45502
+ var e = F0(), t = e.firstChild;
45446
45503
  return P(e, () => u().length, t), e;
45447
45504
  })()];
45448
45505
  }
45449
- }), null), E((e) => {
45450
- var r = `size-2 rounded-full ${O() ? "bg-success" : l().length ? "bg-success animate-pulse" : "bg-text-faint"}`, i = `min-w-[3.5ch] text-left text-[11px] font-medium tabular-nums ${O() ? "text-success" : "text-text-dim"}`;
45506
+ }), null), D((e) => {
45507
+ var r = `size-2 rounded-full ${k() ? "bg-success" : l().length ? "bg-success animate-pulse" : "bg-text-faint"}`, i = `min-w-[3.5ch] text-left text-[11px] font-medium tabular-nums ${k() ? "text-success" : "text-text-dim"}`;
45451
45508
  return r !== e.e && st(t, e.e = r), i !== e.t && st(n, e.t = i), e;
45452
45509
  }, {
45453
45510
  e: void 0,
@@ -45458,13 +45515,13 @@ function U0(e) {
45458
45515
  },
45459
45516
  get children() {
45460
45517
  return [
45461
- S0(),
45518
+ T0(),
45462
45519
  (() => {
45463
- var e = C0();
45520
+ var e = E0();
45464
45521
  return P(e, () => _(h())), e;
45465
45522
  })(),
45466
45523
  (() => {
45467
- var e = w0();
45524
+ var e = D0();
45468
45525
  return e.$$click = () => {
45469
45526
  oe || QD();
45470
45527
  }, e;
@@ -45476,17 +45533,17 @@ function U0(e) {
45476
45533
  return d();
45477
45534
  },
45478
45535
  get children() {
45479
- var e = E0(), t = e.firstChild;
45536
+ var e = k0(), t = e.firstChild;
45480
45537
  return P(e, j(M, {
45481
45538
  get when() {
45482
45539
  return u().length > 0;
45483
45540
  },
45484
45541
  get children() {
45485
- return [T0(), j(We, {
45542
+ return [O0(), j(We, {
45486
45543
  get each() {
45487
45544
  return u();
45488
45545
  },
45489
- children: (e) => j(W0, {
45546
+ children: (e) => j(q0, {
45490
45547
  agent: e,
45491
45548
  review: !0,
45492
45549
  onOpen: le
@@ -45498,22 +45555,22 @@ function U0(e) {
45498
45555
  return l().length > 0;
45499
45556
  },
45500
45557
  get fallback() {
45501
- return P0();
45558
+ return L0();
45502
45559
  },
45503
45560
  get children() {
45504
45561
  return j(We, {
45505
45562
  get each() {
45506
45563
  return l();
45507
45564
  },
45508
- children: (e) => j(W0, {
45565
+ children: (e) => j(q0, {
45509
45566
  agent: e,
45510
45567
  onOpen: le
45511
45568
  })
45512
45569
  });
45513
45570
  }
45514
- }), null), E(() => st(e, `bg-surface border-border absolute w-72 rounded-lg border p-1.5 font-sans shadow-2xl ${ce() ? "bottom-full mb-2" : "top-full mt-2"} ${a().x > window.innerWidth - 300 ? "right-0" : "left-0"}`)), e;
45571
+ }), null), D(() => st(e, `bg-surface border-border absolute w-72 rounded-lg border p-1.5 font-sans shadow-2xl ${ce() ? "bottom-full mb-2" : "top-full mt-2"} ${a().x > window.innerWidth - 300 ? "right-0" : "left-0"}`)), e;
45515
45572
  }
45516
- }), null), E((t) => {
45573
+ }), null), D((t) => {
45517
45574
  var n = `${a().x}px`, r = `${a().y}px`;
45518
45575
  return n !== t.e && dt(e, "left", t.e = n), r !== t.t && dt(e, "top", t.t = r), t;
45519
45576
  }, {
@@ -45526,8 +45583,8 @@ function U0(e) {
45526
45583
  return t();
45527
45584
  },
45528
45585
  get children() {
45529
- var e = O0(), t = e.firstChild;
45530
- return t.$$pointerdown = ue, P(e, j(b0, {
45586
+ var e = j0(), t = e.firstChild;
45587
+ return t.$$pointerdown = ue, P(e, j(C0, {
45531
45588
  onGrab: () => n(!0),
45532
45589
  onClose: () => n(!1),
45533
45590
  get onHeaderPointerDown() {
@@ -45537,9 +45594,9 @@ function U0(e) {
45537
45594
  return S();
45538
45595
  },
45539
45596
  onTogglePin: re
45540
- }), null), E((n) => {
45597
+ }), null), D((n) => {
45541
45598
  var i = `bg-bg text-text border-border fixed z-[2147483645] flex max-w-[100vw] flex-col overflow-hidden font-sans text-[13px] antialiased ${S() ? "" : "shadow-2xl"} ${!S() && v() ? "rounded-xl border" : r() === "right" ? "top-0 right-0 h-screen border-l" : "top-0 left-0 h-screen border-r"}`, a = {
45542
- width: `${k()}px`,
45599
+ width: `${te()}px`,
45543
45600
  ...!S() && v() ? {
45544
45601
  left: `${v().x}px`,
45545
45602
  top: `${v().y}px`,
@@ -45555,19 +45612,19 @@ function U0(e) {
45555
45612
  }
45556
45613
  })];
45557
45614
  }
45558
- function W0(e) {
45615
+ function q0(e) {
45559
45616
  return (() => {
45560
- var t = F0(), n = t.firstChild, r = n.firstChild, i = r.nextSibling, a = i.nextSibling, o = n.nextSibling, s = o.firstChild, c = s.nextSibling;
45617
+ var t = R0(), n = t.firstChild, r = n.firstChild, i = r.nextSibling, a = i.nextSibling, o = n.nextSibling, s = o.firstChild, c = s.nextSibling;
45561
45618
  return c.nextSibling, t.$$click = () => e.onOpen(e.agent.id), P(i, () => e.agent.identifier), P(a, () => e.agent.title), P(o, (() => {
45562
45619
  var t = $e(() => !!e.review);
45563
45620
  return () => t() ? "PR ready · needs review" : e.agent.stateName;
45564
- })(), s), P(o, () => e.agent.delegateName, c), P(o, () => G0(e.agent.updatedAt), null), E((t) => dt(r, "background", e.review ? "var(--color-warn)" : e.agent.stateColor)), t;
45621
+ })(), s), P(o, () => e.agent.delegateName, c), P(o, () => J0(e.agent.updatedAt), null), D((t) => dt(r, "background", e.review ? "var(--color-warn)" : e.agent.stateColor)), t;
45565
45622
  })();
45566
45623
  }
45567
- function G0(e) {
45624
+ function J0(e) {
45568
45625
  let t = Math.max(0, Math.floor((Date.now() - Date.parse(e)) / 1e3));
45569
45626
  return t < 60 ? "now" : t < 3600 ? `${Math.floor(t / 60)}m` : t < 86400 ? `${Math.floor(t / 3600)}h` : `${Math.floor(t / 86400)}d`;
45570
45627
  }
45571
45628
  rt(["pointerdown", "click"]);
45572
45629
  //#endregion
45573
- export { I0 as init };
45630
+ export { z0 as init };