linear-grab 0.21.4 → 0.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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({
@@ -3084,7 +3084,7 @@ function br(e, t) {
3084
3084
  t != null && (n = JSON.parse(t));
3085
3085
  } catch {}
3086
3086
  let [r, i] = T(n);
3087
- return D(() => {
3087
+ return O(() => {
3088
3088
  let t = r();
3089
3089
  try {
3090
3090
  t == null || t === "" || t === 0 || t === !1 || Array.isArray(t) && t.length === 0 ? sessionStorage.removeItem(yr + e) : sessionStorage.setItem(yr + e, JSON.stringify(t));
@@ -15617,7 +15617,7 @@ var lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv, Ev, Dv,
15617
15617
  allowedTools: _?.allowedTools ?? void 0,
15618
15618
  toolNameMapping: x,
15619
15619
  customProviderToolNames: S
15620
- }), { input: ee, warnings: E } = await A_({
15620
+ }), { input: E, warnings: D } = await A_({
15621
15621
  prompt: c,
15622
15622
  toolNameMapping: x,
15623
15623
  systemMessageMode: _?.systemMessageMode ?? (b ? "developer" : h.systemMessageMode),
@@ -15627,35 +15627,35 @@ var lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv, Ev, Dv,
15627
15627
  store: _?.store ?? !0,
15628
15628
  hasConversation: _?.conversation != null,
15629
15629
  hasPreviousResponseId: _?.previousResponseId != null,
15630
- hasLocalShellTool: k("openai.local_shell"),
15631
- hasShellTool: k("openai.shell"),
15632
- hasApplyPatchTool: k("openai.apply_patch"),
15630
+ hasLocalShellTool: te("openai.local_shell"),
15631
+ hasShellTool: te("openai.shell"),
15632
+ hasApplyPatchTool: te("openai.apply_patch"),
15633
15633
  customProviderToolNames: S.size > 0 ? S : void 0
15634
15634
  });
15635
- m.push(...E);
15636
- let D = _?.strictJsonSchema ?? !0, O = _?.include;
15637
- function te(e) {
15638
- O == null ? O = [e] : O.includes(e) || (O = [...O, e]);
15635
+ m.push(...D);
15636
+ let O = _?.strictJsonSchema ?? !0, k = _?.include;
15637
+ function ee(e) {
15638
+ k == null ? k = [e] : k.includes(e) || (k = [...k, e]);
15639
15639
  }
15640
- function k(e) {
15640
+ function te(e) {
15641
15641
  return d?.find((t) => t.type === "provider" && t.id === e) != null;
15642
15642
  }
15643
15643
  let A = typeof _?.logprobs == "number" ? _?.logprobs : _?.logprobs === !0 ? Dy : void 0;
15644
- A && te("message.output_text.logprobs");
15644
+ A && ee("message.output_text.logprobs");
15645
15645
  let ne = d?.find((e) => e.type === "provider" && (e.id === "openai.web_search" || e.id === "openai.web_search_preview"))?.name;
15646
- ne && te("web_search_call.action.sources"), k("openai.code_interpreter") && te("code_interpreter_call.outputs");
15646
+ ne && ee("web_search_call.action.sources"), te("openai.code_interpreter") && ee("code_interpreter_call.outputs");
15647
15647
  let re = _?.store;
15648
- re === !1 && b && te("reasoning.encrypted_content");
15648
+ re === !1 && b && ee("reasoning.encrypted_content");
15649
15649
  let ie = {
15650
15650
  model: this.modelId,
15651
- input: ee,
15651
+ input: E,
15652
15652
  temperature: t,
15653
15653
  top_p: r,
15654
15654
  max_output_tokens: e,
15655
15655
  ...(p?.type === "json" || _?.textVerbosity) && { text: {
15656
15656
  ...p?.type === "json" && { format: p.schema == null ? { type: "json_object" } : {
15657
15657
  type: "json_schema",
15658
- strict: D,
15658
+ strict: O,
15659
15659
  name: p.name ?? "response",
15660
15660
  description: p.description,
15661
15661
  schema: p.schema
@@ -15671,7 +15671,7 @@ var lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv, Ev, Dv,
15671
15671
  user: _?.user,
15672
15672
  instructions: _?.instructions,
15673
15673
  service_tier: _?.serviceTier,
15674
- include: O,
15674
+ include: k,
15675
15675
  prompt_cache_key: _?.promptCacheKey,
15676
15676
  prompt_cache_options: _?.promptCacheOptions,
15677
15677
  prompt_cache_retention: _?.promptCacheRetention,
@@ -16123,7 +16123,7 @@ var lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv, Ev, Dv,
16123
16123
  }), p = this, m = I_(e.prompt), h = /* @__PURE__ */ new Map(), g = {
16124
16124
  unified: "other",
16125
16125
  raw: void 0
16126
- }, _, v = [], y = null, b = {}, x = [], S, C = !1, w = {}, T, ee, E = [], D = !1;
16126
+ }, _, v = [], y = null, b = {}, x = [], S, C = !1, w = {}, T, E, D = [], O = !1;
16127
16127
  return {
16128
16128
  stream: f.pipeThrough(new TransformStream({
16129
16129
  start(e) {
@@ -16133,7 +16133,7 @@ var lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv, Ev, Dv,
16133
16133
  });
16134
16134
  },
16135
16135
  transform(t, r) {
16136
- var d, f, O, te, k;
16136
+ var d, f, k, ee, te;
16137
16137
  if (e.includeRawChunks && r.enqueue({
16138
16138
  type: "raw",
16139
16139
  rawValue: t.rawValue
@@ -16386,7 +16386,7 @@ var lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv, Ev, Dv,
16386
16386
  let e = b[A.output_index], t = A.item.execution === "server";
16387
16387
  if (e != null) {
16388
16388
  let n = t ? e.toolCallId : A.item.call_id ?? A.item.id;
16389
- t ? E.push(n) : r.enqueue({
16389
+ t ? D.push(n) : r.enqueue({
16390
16390
  type: "tool-input-start",
16391
16391
  id: n,
16392
16392
  toolName: e.toolName
@@ -16407,7 +16407,7 @@ var lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv, Ev, Dv,
16407
16407
  }
16408
16408
  b[A.output_index] = void 0;
16409
16409
  } else if (A.item.type === "tool_search_output") {
16410
- let e = A.item.call_id ?? E.shift() ?? A.item.id;
16410
+ let e = A.item.call_id ?? D.shift() ?? A.item.id;
16411
16411
  r.enqueue({
16412
16412
  type: "tool-result",
16413
16413
  toolCallId: e,
@@ -16649,7 +16649,7 @@ var lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv, Ev, Dv,
16649
16649
  hasFunctionCall: C
16650
16650
  }),
16651
16651
  raw: A.response.incomplete_details?.reason ?? void 0
16652
- }, _ = A.response.usage, typeof A.response.service_tier == "string" && (T = A.response.service_tier), A.response.reasoning?.context != null && (ee = A.response.reasoning.context);
16652
+ }, _ = A.response.usage, typeof A.response.service_tier == "string" && (T = A.response.service_tier), A.response.reasoning?.context != null && (E = A.response.reasoning.context);
16653
16653
  else if (U_(A)) {
16654
16654
  let e = A.response.incomplete_details?.reason;
16655
16655
  g = {
@@ -16658,7 +16658,7 @@ var lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv, Ev, Dv,
16658
16658
  hasFunctionCall: C
16659
16659
  }) : "error",
16660
16660
  raw: e ?? "error"
16661
- }, _ = A.response.usage ?? void 0, A.response.reasoning?.context != null && (ee = A.response.reasoning.context), !D && A.response.error != null && (D = !0, r.enqueue({
16661
+ }, _ = A.response.usage ?? void 0, A.response.reasoning?.context != null && (E = A.response.reasoning.context), !O && A.response.error != null && (O = !0, r.enqueue({
16662
16662
  type: "error",
16663
16663
  error: {
16664
16664
  type: "response.failed",
@@ -16679,7 +16679,7 @@ var lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv, Ev, Dv,
16679
16679
  }) : A.annotation.type === "file_citation" ? r.enqueue({
16680
16680
  type: "source",
16681
16681
  sourceType: "document",
16682
- id: (O = p.config).generateId?.call(O) ?? ug(),
16682
+ id: (k = p.config).generateId?.call(k) ?? ug(),
16683
16683
  mediaType: "text/plain",
16684
16684
  title: A.annotation.filename,
16685
16685
  filename: A.annotation.filename,
@@ -16691,7 +16691,7 @@ var lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv, Ev, Dv,
16691
16691
  }) : A.annotation.type === "container_file_citation" ? r.enqueue({
16692
16692
  type: "source",
16693
16693
  sourceType: "document",
16694
- id: (te = p.config).generateId?.call(te) ?? ug(),
16694
+ id: (ee = p.config).generateId?.call(ee) ?? ug(),
16695
16695
  mediaType: "text/plain",
16696
16696
  title: A.annotation.filename,
16697
16697
  filename: A.annotation.filename,
@@ -16703,7 +16703,7 @@ var lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv, Ev, Dv,
16703
16703
  }) : A.annotation.type === "file_path" && r.enqueue({
16704
16704
  type: "source",
16705
16705
  sourceType: "document",
16706
- id: (k = p.config).generateId?.call(k) ?? ug(),
16706
+ id: (te = p.config).generateId?.call(te) ?? ug(),
16707
16707
  mediaType: "application/octet-stream",
16708
16708
  title: A.annotation.file_id,
16709
16709
  filename: A.annotation.file_id,
@@ -16712,7 +16712,7 @@ var lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv, Ev, Dv,
16712
16712
  fileId: A.annotation.file_id,
16713
16713
  index: A.annotation.index
16714
16714
  } }
16715
- })) : ev(A) && (D = !0, g = {
16715
+ })) : ev(A) && (O = !0, g = {
16716
16716
  unified: "error",
16717
16717
  raw: "error"
16718
16718
  }, r.enqueue({
@@ -16725,7 +16725,7 @@ var lv, uv, dv, fv, pv, mv, hv, gv, _v, vv, yv, bv, xv, Sv, Cv, wv, Tv, Ev, Dv,
16725
16725
  responseId: y,
16726
16726
  ...v.length > 0 ? { logprobs: v } : {},
16727
16727
  ...T === void 0 ? {} : { serviceTier: T },
16728
- ...ee === void 0 ? {} : { reasoningContext: ee }
16728
+ ...E === void 0 ? {} : { reasoningContext: E }
16729
16729
  } };
16730
16730
  e.enqueue({
16731
16731
  type: "finish",
@@ -19768,7 +19768,7 @@ var pb, mb, hb, gb, _b, vb, yb, bb, xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb,
19768
19768
  provider: _,
19769
19769
  providerOptions: m,
19770
19770
  schema: xb
19771
- }), b = y != null, x = Object.assign({}, v ?? {}, y ?? {}), { maxOutputTokens: S, supportsStructuredOutput: C, supportsAdaptiveThinking: w, rejectsSamplingParameters: T, supportsXhighEffort: ee, isKnownModel: E } = ib(this.modelId);
19771
+ }), b = y != null, x = Object.assign({}, v ?? {}, y ?? {}), { maxOutputTokens: S, supportsStructuredOutput: C, supportsAdaptiveThinking: w, rejectsSamplingParameters: T, supportsXhighEffort: E, isKnownModel: D } = ib(this.modelId);
19772
19772
  T && (r != null && (g.push({
19773
19773
  type: "unsupported",
19774
19774
  feature: "temperature",
@@ -19782,7 +19782,7 @@ var pb, mb, hb, gb, _b, vb, yb, bb, xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb,
19782
19782
  feature: "topP",
19783
19783
  details: `topP is not supported by ${this.modelId} and will be ignored`
19784
19784
  }), i = void 0));
19785
- 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 ? {
19785
+ 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 ? {
19786
19786
  type: "function",
19787
19787
  name: "json",
19788
19788
  description: "Respond with a JSON object.",
@@ -19821,7 +19821,7 @@ var pb, mb, hb, gb, _b, vb, yb, bb, xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb,
19821
19821
  let e = ob({
19822
19822
  reasoning: p,
19823
19823
  supportsAdaptiveThinking: w,
19824
- supportsXhighEffort: ee,
19824
+ supportsXhighEffort: E,
19825
19825
  maxOutputTokensForModel: S,
19826
19826
  warnings: g
19827
19827
  });
@@ -19928,11 +19928,11 @@ var pb, mb, hb, gb, _b, vb, yb, bb, xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb,
19928
19928
  type: "unsupported",
19929
19929
  feature: "topP",
19930
19930
  details: "topP is not supported when thinking is enabled"
19931
- })), me.max_tokens = pe + (de ?? 0)) : D && i != null && r != null && (g.push({
19931
+ })), me.max_tokens = pe + (de ?? 0)) : O && i != null && r != null && (g.push({
19932
19932
  type: "unsupported",
19933
19933
  feature: "topP",
19934
19934
  details: "topP is not supported when temperature is set. topP is ignored."
19935
- }), me.top_p = void 0), E && me.max_tokens > S && (n != null && g.push({
19935
+ }), me.top_p = void 0), D && me.max_tokens > S && (n != null && g.push({
19936
19936
  type: "unsupported",
19937
19937
  feature: "maxOutputTokens",
19938
19938
  details: `${me.max_tokens} (maxOutputTokens + thinkingBudget) is greater than ${this.modelId} ${S} max output tokens. The max output tokens have been limited to ${S}.`
@@ -19945,8 +19945,8 @@ var pb, mb, hb, gb, _b, vb, yb, bb, xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb,
19945
19945
  toolChoice: f,
19946
19946
  disableParallelToolUse: x?.disableParallelToolUse,
19947
19947
  cacheControlValidator: ie,
19948
- supportsStructuredOutput: O,
19949
- supportsStrictTools: te,
19948
+ supportsStructuredOutput: k,
19949
+ supportsStrictTools: ee,
19950
19950
  defaultEagerInputStreaming: he
19951
19951
  } : {
19952
19952
  tools: [...d ?? [], ne],
@@ -19954,7 +19954,7 @@ var pb, mb, hb, gb, _b, vb, yb, bb, xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb,
19954
19954
  disableParallelToolUse: !0,
19955
19955
  cacheControlValidator: ie,
19956
19956
  supportsStructuredOutput: !1,
19957
- supportsStrictTools: te,
19957
+ supportsStrictTools: ee,
19958
19958
  defaultEagerInputStreaming: he
19959
19959
  }), be = ie.getWarnings();
19960
19960
  return {
@@ -20377,7 +20377,7 @@ var pb, mb, hb, gb, _b, vb, yb, bb, xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb,
20377
20377
  cache_creation_input_tokens: 0,
20378
20378
  cache_read_input_tokens: 0,
20379
20379
  iterations: null
20380
- }, h = {}, g = {}, _ = {}, v = null, y, b = null, x, S = null, C = !1, w, T = this.generateId, [ee, E] = f.pipeThrough(new TransformStream({
20380
+ }, h = {}, g = {}, _ = {}, v = null, y, b = null, x, S = null, C = !1, w, T = this.generateId, [E, D] = f.pipeThrough(new TransformStream({
20381
20381
  start(e) {
20382
20382
  e.enqueue({
20383
20383
  type: "stream-start",
@@ -20916,11 +20916,11 @@ var pb, mb, hb, gb, _b, vb, yb, bb, xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb,
20916
20916
  default: throw Error(`Unsupported chunk type: ${r}`);
20917
20917
  }
20918
20918
  }
20919
- })).tee(), D = ee.getReader();
20919
+ })).tee(), O = E.getReader();
20920
20920
  try {
20921
- await D.read();
20922
- let e = await D.read();
20923
- if (e.value?.type === "raw" && (e = await D.read()), e.value?.type === "error") {
20921
+ await O.read();
20922
+ let e = await O.read();
20923
+ if (e.value?.type === "raw" && (e = await O.read()), e.value?.type === "error") {
20924
20924
  let n = e.value.error;
20925
20925
  throw new ti({
20926
20926
  message: n.message,
@@ -20933,10 +20933,10 @@ var pb, mb, hb, gb, _b, vb, yb, bb, xb, Sb, Cb, wb, Tb, Eb, Db, Ob, kb, Ab, jb,
20933
20933
  });
20934
20934
  }
20935
20935
  } finally {
20936
- D.cancel().catch(() => {}), D.releaseLock();
20936
+ O.cancel().catch(() => {}), O.releaseLock();
20937
20937
  }
20938
20938
  return {
20939
- stream: E,
20939
+ stream: D,
20940
20940
  request: { body: t },
20941
20941
  response: { headers: d }
20942
20942
  };
@@ -24503,32 +24503,32 @@ function yT(e, t) {
24503
24503
  function bT(e) {
24504
24504
  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 }) => {
24505
24505
  console.error(e);
24506
- }, onFinish: C, _internal: { generateId: w = nD, currentDate: T = () => /* @__PURE__ */ new Date(), now: ee = Kw } = {}, ...E } = e, D = "enum" in e && e.enum ? e.enum : void 0, { schema: O, schemaDescription: te, schemaName: k } = "schema" in e ? e : {};
24506
+ }, onFinish: C, _internal: { generateId: w = nD, currentDate: T = () => /* @__PURE__ */ new Date(), now: E = Kw } = {}, ...D } = e, O = "enum" in e && e.enum ? e.enum : void 0, { schema: k, schemaDescription: ee, schemaName: te } = "schema" in e ? e : {};
24507
24507
  return vT({
24508
24508
  output: n,
24509
- schema: O,
24510
- schemaName: k,
24511
- schemaDescription: te,
24512
- enumValues: D
24509
+ schema: k,
24510
+ schemaName: te,
24511
+ schemaDescription: ee,
24512
+ enumValues: O
24513
24513
  }), new rD({
24514
24514
  model: t,
24515
24515
  telemetry: p,
24516
24516
  headers: u,
24517
- settings: E,
24517
+ settings: D,
24518
24518
  maxRetries: c,
24519
24519
  abortSignal: l,
24520
24520
  outputStrategy: hT({
24521
24521
  output: n,
24522
- schema: O,
24523
- enumValues: D
24522
+ schema: k,
24523
+ enumValues: O
24524
24524
  }),
24525
24525
  instructions: r,
24526
24526
  system: i,
24527
24527
  prompt: a,
24528
24528
  messages: o,
24529
24529
  allowSystemInMessages: s,
24530
- schemaName: k,
24531
- schemaDescription: te,
24530
+ schemaName: te,
24531
+ schemaDescription: ee,
24532
24532
  providerOptions: h,
24533
24533
  repairText: d,
24534
24534
  onStart: g ?? _,
@@ -24539,7 +24539,7 @@ function bT(e) {
24539
24539
  download: m,
24540
24540
  generateId: w,
24541
24541
  currentDate: T,
24542
- now: ee
24542
+ now: E
24543
24543
  });
24544
24544
  }
24545
24545
  var 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, iD, aD = t((() => {
@@ -25377,13 +25377,13 @@ var xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT, RT, zT,
25377
25377
  }), rD = class {
25378
25378
  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 }) {
25379
25379
  this._object = new Jh(), this._usage = new Jh(), this._providerMetadata = new Jh(), this._warnings = new Jh(), this._request = new Jh(), this._response = new Jh(), this._finishReason = new Jh();
25380
- let T = Tw(e), { maxRetries: ee, retry: E } = Yw({
25380
+ let T = Tw(e), { maxRetries: E, retry: D } = Yw({
25381
25381
  maxRetries: i,
25382
25382
  abortSignal: a
25383
- }), D = Bw(r), O = oT({ telemetry: n }), te = this, k = mT(), A = new TransformStream({ transform(e, t) {
25383
+ }), O = Bw(r), k = oT({ telemetry: n }), ee = this, te = mT(), A = new TransformStream({ transform(e, t) {
25384
25384
  t.enqueue(e), e.type === "error" && y({ error: Hw(e.error) });
25385
25385
  } });
25386
- this.baseStream = k.stream.pipeThrough(A);
25386
+ this.baseStream = te.stream.pipeThrough(A);
25387
25387
  let ne = S();
25388
25388
  (async () => {
25389
25389
  let e = await o.jsonSchema();
@@ -25396,14 +25396,14 @@ var xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT, RT, zT,
25396
25396
  system: s ?? c,
25397
25397
  prompt: l,
25398
25398
  messages: u,
25399
- maxOutputTokens: D.maxOutputTokens,
25400
- temperature: D.temperature,
25401
- topP: D.topP,
25402
- topK: D.topK,
25403
- presencePenalty: D.presencePenalty,
25404
- frequencyPenalty: D.frequencyPenalty,
25405
- seed: D.seed,
25406
- maxRetries: ee,
25399
+ maxOutputTokens: O.maxOutputTokens,
25400
+ temperature: O.temperature,
25401
+ topP: O.topP,
25402
+ topK: O.topK,
25403
+ presencePenalty: O.presencePenalty,
25404
+ frequencyPenalty: O.frequencyPenalty,
25405
+ seed: O.seed,
25406
+ maxRetries: E,
25407
25407
  headers: t,
25408
25408
  providerOptions: m,
25409
25409
  output: o.type,
@@ -25411,7 +25411,7 @@ var xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT, RT, zT,
25411
25411
  schemaName: f,
25412
25412
  schemaDescription: p
25413
25413
  },
25414
- callbacks: [g, O.onStart]
25414
+ callbacks: [g, k.onStart]
25415
25415
  });
25416
25416
  let n = await Vw({
25417
25417
  instructions: s,
@@ -25448,7 +25448,7 @@ var xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT, RT, zT,
25448
25448
  headers: t,
25449
25449
  promptMessages: i.prompt
25450
25450
  },
25451
- callbacks: [_, O.onObjectStepStart]
25451
+ callbacks: [_, k.onObjectStepStart]
25452
25452
  });
25453
25453
  let y = { transform: (e, t) => {
25454
25454
  switch (e.type) {
@@ -25462,8 +25462,8 @@ var xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT, RT, zT,
25462
25462
  t.enqueue(e);
25463
25463
  break;
25464
25464
  }
25465
- } }, A = w(), { stream: re, response: ie, request: ae } = await E(() => T.doStream(i));
25466
- te._request.resolve(ae ?? {});
25465
+ } }, A = w(), { stream: re, response: ie, request: ae } = await D(() => T.doStream(i));
25466
+ ee._request.resolve(ae ?? {});
25467
25467
  let oe, se = Ww(), ce, le, ue, de, fe, pe = "", me = "", he = {
25468
25468
  id: S(),
25469
25469
  timestamp: C(),
@@ -25516,18 +25516,18 @@ var xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT, RT, zT,
25516
25516
  warnings: oe ?? [],
25517
25517
  provider: T.provider,
25518
25518
  model: T.modelId
25519
- }), te._usage.resolve(se), te._providerMetadata.resolve(le), te._warnings.resolve(oe), te._response.resolve({
25519
+ }), ee._usage.resolve(se), ee._providerMetadata.resolve(le), ee._warnings.resolve(oe), ee._response.resolve({
25520
25520
  ...he,
25521
25521
  headers: ie?.headers
25522
- }), te._finishReason.resolve(ce ?? "other");
25522
+ }), ee._finishReason.resolve(ce ?? "other");
25523
25523
  try {
25524
25524
  ue = await _T(pe, o, h, {
25525
25525
  response: he,
25526
25526
  usage: se,
25527
25527
  finishReason: ce
25528
- }), te._object.resolve(ue);
25528
+ }), ee._object.resolve(ue);
25529
25529
  } catch (e) {
25530
- de = e, te._object.reject(e);
25530
+ de = e, ee._object.reject(e);
25531
25531
  }
25532
25532
  break;
25533
25533
  default:
@@ -25561,7 +25561,7 @@ var xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT, RT, zT,
25561
25561
  },
25562
25562
  providerMetadata: le
25563
25563
  },
25564
- callbacks: [v, O.onObjectStepEnd]
25564
+ callbacks: [v, k.onObjectStepEnd]
25565
25565
  }), await qw({
25566
25566
  event: {
25567
25567
  callId: ne,
@@ -25578,7 +25578,7 @@ var xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT, RT, zT,
25578
25578
  },
25579
25579
  providerMetadata: le
25580
25580
  },
25581
- callbacks: [b, O.onEnd]
25581
+ callbacks: [b, k.onEnd]
25582
25582
  });
25583
25583
  } catch (t) {
25584
25584
  e.enqueue({
@@ -25588,19 +25588,19 @@ var xT, ST, CT, wT, TT, ET, DT, OT, kT, AT, jT, MT, NT, PT, FT, IT, LT, RT, zT,
25588
25588
  }
25589
25589
  }
25590
25590
  }));
25591
- k.addStream(be);
25591
+ te.addStream(be);
25592
25592
  })().catch(async (e) => {
25593
- await O.onError?.call(O, {
25593
+ await k.onError?.call(k, {
25594
25594
  callId: ne,
25595
25595
  error: e
25596
- }), k.addStream(new ReadableStream({ start(t) {
25596
+ }), te.addStream(new ReadableStream({ start(t) {
25597
25597
  t.enqueue({
25598
25598
  type: "error",
25599
25599
  error: e
25600
25600
  }), t.close();
25601
25601
  } }));
25602
25602
  }).finally(() => {
25603
- k.close();
25603
+ te.close();
25604
25604
  }), this.outputStrategy = o;
25605
25605
  }
25606
25606
  get object() {
@@ -25839,12 +25839,12 @@ var TD = (/* @__PURE__ */ n(((e) => {
25839
25839
  enumerable: !0
25840
25840
  });
25841
25841
  })(e, {
25842
- GIFEncoder: () => te,
25842
+ GIFEncoder: () => ee,
25843
25843
  applyPalette: () => S,
25844
25844
  default: () => le,
25845
- nearestColor: () => O,
25846
- nearestColorIndex: () => E,
25847
- nearestColorIndexWithDistance: () => D,
25845
+ nearestColor: () => k,
25846
+ nearestColorIndex: () => D,
25847
+ nearestColorIndexWithDistance: () => O,
25848
25848
  prequantize: () => x,
25849
25849
  quantize: () => _,
25850
25850
  snapColorsToPalette: () => T
@@ -25929,12 +25929,12 @@ var TD = (/* @__PURE__ */ n(((e) => {
25929
25929
  function s(e, t, n, s, c = r(512), l = /* @__PURE__ */ new Uint8Array(256), u = new Int32Array(a), d = new Int32Array(a)) {
25930
25930
  let f = u.length, p = Math.max(2, s);
25931
25931
  l.fill(0), d.fill(0), u.fill(-1);
25932
- 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;
25933
- for (let e = f; e < 65536; e *= 2) ++ee;
25934
- ee = 8 - ee, c.writeByte(p), D(x);
25935
- let E = n.length;
25936
- for (let e = 1; e < E; e++) next_block: {
25937
- let t = n[e], r = (t << i) + T, a = t << ee ^ T;
25932
+ 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;
25933
+ for (let e = f; e < 65536; e *= 2) ++E;
25934
+ E = 8 - E, c.writeByte(p), O(x);
25935
+ let D = n.length;
25936
+ for (let e = 1; e < D; e++) next_block: {
25937
+ let t = n[e], r = (t << i) + T, a = t << E ^ T;
25938
25938
  if (u[a] === r) {
25939
25939
  T = d[a];
25940
25940
  break next_block;
@@ -25944,10 +25944,10 @@ var TD = (/* @__PURE__ */ n(((e) => {
25944
25944
  T = d[a];
25945
25945
  break next_block;
25946
25946
  }
25947
- D(T), T = t, C < 1 << i ? (d[a] = C++, u[a] = r) : (u.fill(-1), C = x + 2, v = !0, D(x));
25947
+ O(T), T = t, C < 1 << i ? (d[a] = C++, u[a] = r) : (u.fill(-1), C = x + 2, v = !0, O(x));
25948
25948
  }
25949
- return D(T), D(S), c.writeByte(0), c.bytesView();
25950
- function D(e) {
25949
+ return O(T), O(S), c.writeByte(0), c.bytesView();
25950
+ function O(e) {
25951
25951
  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;
25952
25952
  if ((C > b || v) && (v ? (y = _, b = (1 << y) - 1, v = !1) : (++y, b = y === i ? 1 << y : (1 << y) - 1)), e == S) {
25953
25953
  for (; h > 0;) l[w++] = m & 255, w >= 254 && (c.writeByte(w), c.writeBytesView(l, 0, w), w = 0), m >>= 8, h -= 8;
@@ -26031,22 +26031,22 @@ var TD = (/* @__PURE__ */ n(((e) => {
26031
26031
  var C, w, T;
26032
26032
  for (x = 0; x < b; ++x) {
26033
26033
  m(d, x, !1);
26034
- var ee = d[x].err;
26035
- for (w = ++y[0]; w > 1 && (T = w >> 1, !(d[C = y[T]].err <= ee)); w = T) y[w] = C;
26034
+ var E = d[x].err;
26035
+ for (w = ++y[0]; w > 1 && (T = w >> 1, !(d[C = y[T]].err <= E)); w = T) y[w] = C;
26036
26036
  y[w] = x;
26037
26037
  }
26038
- var E = b - t;
26039
- for (x = 0; x < E;) {
26040
- for (var D;;) {
26041
- var O = y[1];
26042
- if (D = d[O], D.tm >= D.mtm && d[D.nn].mtm <= D.tm) break;
26043
- D.mtm == _ ? O = y[1] = y[y[0]--] : (m(d, O, !1), D.tm = x);
26044
- var ee = d[O].err;
26045
- 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;
26046
- y[w] = O;
26038
+ var D = b - t;
26039
+ for (x = 0; x < D;) {
26040
+ for (var O;;) {
26041
+ var k = y[1];
26042
+ if (O = d[k], O.tm >= O.mtm && d[O.nn].mtm <= O.tm) break;
26043
+ O.mtm == _ ? k = y[1] = y[y[0]--] : (m(d, k, !1), O.tm = x);
26044
+ var E = d[k].err;
26045
+ 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;
26046
+ y[w] = k;
26047
26047
  }
26048
- var te = d[D.nn], k = D.cnt, A = te.cnt, S = 1 / (k + A);
26049
- 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 = _;
26048
+ var ee = d[O.nn], te = O.cnt, A = ee.cnt, S = 1 / (te + A);
26049
+ 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 = _;
26050
26050
  }
26051
26051
  let ne = [];
26052
26052
  var re = 0;
@@ -26112,26 +26112,26 @@ var TD = (/* @__PURE__ */ n(((e) => {
26112
26112
  function C(e, t, n, r, i) {
26113
26113
  let a = 0, o = 1e100;
26114
26114
  for (let s = 0; s < i.length; s++) {
26115
- let c = i[s], l = c[3], u = ee(l - r);
26115
+ let c = i[s], l = c[3], u = E(l - r);
26116
26116
  if (u > o) continue;
26117
26117
  let d = c[0];
26118
- if (u += ee(d - e), u > o) continue;
26118
+ if (u += E(d - e), u > o) continue;
26119
26119
  let f = c[1];
26120
- if (u += ee(f - t), u > o) continue;
26120
+ if (u += E(f - t), u > o) continue;
26121
26121
  let p = c[2];
26122
- u += ee(p - n), !(u > o) && (o = u, a = s);
26122
+ u += E(p - n), !(u > o) && (o = u, a = s);
26123
26123
  }
26124
26124
  return a;
26125
26125
  }
26126
26126
  function w(e, t, n, r) {
26127
26127
  let i = 0, a = 1e100;
26128
26128
  for (let o = 0; o < r.length; o++) {
26129
- let s = r[o], c = s[0], l = ee(c - e);
26129
+ let s = r[o], c = s[0], l = E(c - e);
26130
26130
  if (l > a) continue;
26131
26131
  let u = s[1];
26132
- if (l += ee(u - t), l > a) continue;
26132
+ if (l += E(u - t), l > a) continue;
26133
26133
  let d = s[2];
26134
- l += ee(d - n), !(l > a) && (a = l, i = o);
26134
+ l += E(d - n), !(l > a) && (a = l, i = o);
26135
26135
  }
26136
26136
  return i;
26137
26137
  }
@@ -26146,14 +26146,14 @@ var TD = (/* @__PURE__ */ n(((e) => {
26146
26146
  o[2],
26147
26147
  255
26148
26148
  ] : o.length > a ? o.slice(0, 3) : o.slice();
26149
- let s = D(r, o.slice(0, 3), y), c = s[0], l = s[1];
26149
+ let s = O(r, o.slice(0, 3), y), c = s[0], l = s[1];
26150
26150
  l > 0 && l <= i && (e[c] = o);
26151
26151
  }
26152
26152
  }
26153
- function ee(e) {
26153
+ function E(e) {
26154
26154
  return e * e;
26155
26155
  }
26156
- function E(e, t, n = y) {
26156
+ function D(e, t, n = y) {
26157
26157
  let r = Infinity, i = -1;
26158
26158
  for (let a = 0; a < e.length; a++) {
26159
26159
  let o = e[a], s = n(t, o);
@@ -26161,7 +26161,7 @@ var TD = (/* @__PURE__ */ n(((e) => {
26161
26161
  }
26162
26162
  return i;
26163
26163
  }
26164
- function D(e, t, n = y) {
26164
+ function O(e, t, n = y) {
26165
26165
  let r = Infinity, i = -1;
26166
26166
  for (let a = 0; a < e.length; a++) {
26167
26167
  let o = e[a], s = n(t, o);
@@ -26169,10 +26169,10 @@ var TD = (/* @__PURE__ */ n(((e) => {
26169
26169
  }
26170
26170
  return [i, r];
26171
26171
  }
26172
- function O(e, t, n = y) {
26173
- return e[E(e, t, n)];
26172
+ function k(e, t, n = y) {
26173
+ return e[D(e, t, n)];
26174
26174
  }
26175
- function te(e = {}) {
26175
+ function ee(e = {}) {
26176
26176
  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;
26177
26177
  return {
26178
26178
  reset() {
@@ -26201,7 +26201,7 @@ var TD = (/* @__PURE__ */ n(((e) => {
26201
26201
  A(a, t, n, m, g), re(a, m), h >= 0 && ne(a, h);
26202
26202
  }
26203
26203
  let y = Math.round(p / 10);
26204
- k(a, _, y, o, f);
26204
+ te(a, _, y, o, f);
26205
26205
  let b = !!m && !v;
26206
26206
  ie(a, t, n, b ? m : null), b && re(a, m), ae(a, e, t, n, g, s, c, l);
26207
26207
  }
@@ -26210,7 +26210,7 @@ var TD = (/* @__PURE__ */ n(((e) => {
26210
26210
  se(a, "GIF89a");
26211
26211
  }
26212
26212
  }
26213
- function k(e, t, n, r, i) {
26213
+ function te(e, t, n, r, i) {
26214
26214
  e.writeByte(33), e.writeByte(249), e.writeByte(4), i < 0 && (i = 0, r = !1);
26215
26215
  var a, o;
26216
26216
  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);
@@ -26255,7 +26255,7 @@ var TD = (/* @__PURE__ */ n(((e) => {
26255
26255
  function ce(e) {
26256
26256
  return Math.max(Math.ceil(Math.log2(e)), 1);
26257
26257
  }
26258
- var le = te;
26258
+ var le = ee;
26259
26259
  })))(), ED = "(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)})}})();", DD = typeof self < "u" && self.Blob && new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);", ED], { type: "text/javascript;charset=utf-8" });
26260
26260
  function OD(e) {
26261
26261
  let t;
@@ -27653,7 +27653,7 @@ function kj(e) {
27653
27653
  var e = dj();
27654
27654
  return P(e, j(Aj, {})), e;
27655
27655
  }
27656
- }), null), E(() => st(r, `inline-flex items-center gap-1.5 ${t.loading ? "invisible" : ""}`)), e;
27656
+ }), null), D(() => st(r, `inline-flex items-center gap-1.5 ${t.loading ? "invisible" : ""}`)), e;
27657
27657
  })();
27658
27658
  }
27659
27659
  function Aj(e) {
@@ -27666,7 +27666,7 @@ function Aj(e) {
27666
27666
  },
27667
27667
  children: (e) => (() => {
27668
27668
  var i = mj();
27669
- return dt(i, "transform", `rotate(${e * 30}deg)`), dt(i, "animation-delay", `${(e - 12) * .1}s`), E((e) => {
27669
+ return dt(i, "transform", `rotate(${e * 30}deg)`), dt(i, "animation-delay", `${(e - 12) * .1}s`), D((e) => {
27670
27670
  var a = `${n()}px`, o = `${r()}px`, s = `-${n() / 2}px`, c = `center ${t() / 2}px`;
27671
27671
  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;
27672
27672
  }, {
@@ -27676,7 +27676,7 @@ function Aj(e) {
27676
27676
  o: void 0
27677
27677
  }), i;
27678
27678
  })()
27679
- })), E((n) => {
27679
+ })), D((n) => {
27680
27680
  var r = `${t()}px`, i = `${t()}px`;
27681
27681
  return r !== n.e && dt(e, "width", n.e = r), i !== n.t && dt(e, "height", n.t = i), n;
27682
27682
  }, {
@@ -27729,7 +27729,7 @@ function Fj(e) {
27729
27729
  function Ij(e) {
27730
27730
  return (() => {
27731
27731
  var t = bj(), n = t.firstChild;
27732
- return P(n, () => e.children), E((n) => {
27732
+ return P(n, () => e.children), D((n) => {
27733
27733
  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 ?? ""}`;
27734
27734
  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;
27735
27735
  }, {
@@ -27762,7 +27762,7 @@ function Rj(e) {
27762
27762
  function zj(e) {
27763
27763
  return (() => {
27764
27764
  var t = wj();
27765
- return P(t, () => e.children), E((n) => {
27765
+ return P(t, () => e.children), D((n) => {
27766
27766
  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;
27767
27767
  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;
27768
27768
  }, {
@@ -27775,7 +27775,7 @@ function zj(e) {
27775
27775
  function Bj(e) {
27776
27776
  return (() => {
27777
27777
  var t = Tj();
27778
- return E((n) => dt(t, "background", e.color)), t;
27778
+ return D((n) => dt(t, "background", e.color)), t;
27779
27779
  })();
27780
27780
  }
27781
27781
  function Vj(e) {
@@ -27815,13 +27815,13 @@ function wM(e) {
27815
27815
  })), n = _r(() => ({
27816
27816
  queryKey: ["settings"],
27817
27817
  queryFn: Tr
27818
- })), r = O(() => n.data ?? {}), i = O(() => t.data?.[0] ?? null), a = O(() => !!(r().linearApiKey || r().linearAccessToken)), o = O(() => Ax(r())), [s, c] = br("draft:title", ""), [l, u] = br("draft:description", ""), [d, f] = br("draft:steps", []), [p, m] = br("draft:expected", ""), [h, g] = br("draft:actual", ""), [_, v] = br("draft:impact", ""), [y, b] = br("draft:analysis", ""), [x, S] = br("draft:next-steps", ""), [C, w] = br("draft:priority", 0), [ee, te] = T(r().defaultTeamId ?? ""), [k, A] = T(r().defaultRepo ?? ""), [ne, re] = br("draft:target", "none"), [ie, oe] = br("draft:local-model", ""), [se, ce] = br("draft:cloud-model", ""), [le, ue] = br("draft:worktree", !1), [de, fe] = T(!0), [pe, me] = T(uk().length);
27819
- D(() => {
27818
+ })), r = k(() => n.data ?? {}), i = k(() => t.data?.[0] ?? null), a = k(() => !!(r().linearApiKey || r().linearAccessToken)), o = k(() => Ax(r())), [s, c] = br("draft:title", ""), [l, u] = br("draft:description", ""), [d, f] = br("draft:steps", []), [p, m] = br("draft:expected", ""), [h, g] = br("draft:actual", ""), [_, v] = br("draft:impact", ""), [y, b] = br("draft:analysis", ""), [x, S] = br("draft:next-steps", ""), [C, w] = br("draft:priority", 0), [E, ee] = T(r().defaultTeamId ?? ""), [te, A] = T(r().defaultRepo ?? ""), [ne, re] = br("draft:target", "none"), [ie, oe] = br("draft:local-model", ""), [se, ce] = br("draft:cloud-model", ""), [le, ue] = br("draft:worktree", !1), [de, fe] = T(!0), [pe, me] = T(uk().length);
27819
+ O(() => {
27820
27820
  let e = setInterval(() => me(uk().length), 3e3);
27821
27821
  ae(() => clearInterval(e));
27822
27822
  });
27823
27823
  let [he, ge] = T("");
27824
- D(() => {
27824
+ O(() => {
27825
27825
  let e = s().trim(), t = setTimeout(() => ge(e.length >= 8 ? e : ""), 600);
27826
27826
  ae(() => clearTimeout(t));
27827
27827
  });
@@ -27842,15 +27842,15 @@ function wM(e) {
27842
27842
  }].slice(-6)), n.readAsDataURL(e);
27843
27843
  }
27844
27844
  }, [Ce, we] = T("fast"), [Te, Ee] = T(!0), De = !1;
27845
- D(() => {
27845
+ O(() => {
27846
27846
  let e = n.data;
27847
- De || !e || (De = !0, te(e.defaultTeamId ?? ""), A(e.defaultRepo ?? ""), re(e.cursorAgentId ? "cursor" : "none"));
27847
+ De || !e || (De = !0, ee(e.defaultTeamId ?? ""), A(e.defaultRepo ?? ""), re(e.cursorAgentId ? "cursor" : "none"));
27848
27848
  });
27849
27849
  let Oe = _r(() => ({
27850
27850
  queryKey: ["teams"],
27851
27851
  queryFn: uO,
27852
27852
  enabled: a()
27853
- })), ke = O(() => (Oe.data ?? []).find((e) => e.id === ee())?.name), [Ae, je] = T(!1), Me = async () => {
27853
+ })), ke = k(() => (Oe.data ?? []).find((e) => e.id === E())?.name), [Ae, je] = T(!1), Me = async () => {
27854
27854
  let e = pD({
27855
27855
  description: l(),
27856
27856
  reproSteps: d(),
@@ -27916,7 +27916,7 @@ function wM(e) {
27916
27916
  analysisNotes: y(),
27917
27917
  suggestedNextSteps: x(),
27918
27918
  grabs: t.data ?? [],
27919
- repo: k(),
27919
+ repo: te(),
27920
27920
  model: se().trim() || r().cursorModel,
27921
27921
  agentInstructions: lD(r())
27922
27922
  });
@@ -27960,7 +27960,7 @@ function wM(e) {
27960
27960
  Ze(`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." : ""}`);
27961
27961
  }
27962
27962
  let c = await SO({
27963
- teamId: ee(),
27963
+ teamId: E(),
27964
27964
  title: s(),
27965
27965
  description: e,
27966
27966
  priority: C(),
@@ -27989,7 +27989,7 @@ function wM(e) {
27989
27989
  env: r().linearApiKey ? { LINEAR_API_KEY: r().linearApiKey } : void 0
27990
27990
  }), u = !0;
27991
27991
  try {
27992
- let e = (await vO(ee())).filter((e) => e.type === "started").sort((e, t) => e.position - t.position)[0];
27992
+ let e = (await vO(E())).filter((e) => e.type === "started").sort((e, t) => e.position - t.position)[0];
27993
27993
  e && await yO(c.id, e.id);
27994
27994
  } catch {}
27995
27995
  await CO(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(() => {});
@@ -28002,7 +28002,7 @@ function wM(e) {
28002
28002
  url: c.url,
28003
28003
  summary: l(),
28004
28004
  impact: _(),
28005
- repo: k() || r().defaultRepo,
28005
+ repo: te() || r().defaultRepo,
28006
28006
  demoUrl: HD().result?.assetUrl,
28007
28007
  executor: ne()
28008
28008
  });
@@ -28020,12 +28020,12 @@ function wM(e) {
28020
28020
  onError: (e) => {
28021
28021
  Ye(e.message);
28022
28022
  }
28023
- })), nt = O(() => !!s().trim() && !!ee() && a()), N = O(() => {
28023
+ })), nt = k(() => !!s().trim() && !!E() && a()), N = k(() => {
28024
28024
  let e = o();
28025
28025
  return e ? Nx[e][Ce()] : null;
28026
28026
  }), rt = () => f((e) => [...e, ""]), at = (e) => f((t) => t.filter((t, n) => n !== e)), ot = (e, t) => f((n) => n.map((n, r) => r === e ? t : n));
28027
28027
  return (() => {
28028
- var n = hM(), f = n.firstChild, T = f.firstChild.firstChild.nextSibling, D = f.nextSibling, O = D.firstChild;
28028
+ var n = hM(), f = n.firstChild, T = f.firstChild.firstChild.nextSibling, O = f.nextSibling, k = O.firstChild;
28029
28029
  return P(T, j(M, {
28030
28030
  get when() {
28031
28031
  return i();
@@ -28139,7 +28139,7 @@ function wM(e) {
28139
28139
  },
28140
28140
  children: (e) => (() => {
28141
28141
  var t = gM(), n = t.firstChild, r = n.nextSibling;
28142
- return r.$$click = () => xe((t) => t.filter((t) => t.id !== e.id)), E(() => it(n, "src", e.dataUrl)), t;
28142
+ return r.$$click = () => xe((t) => t.filter((t) => t.id !== e.id)), D(() => it(n, "src", e.dataUrl)), t;
28143
28143
  })()
28144
28144
  }), t), e;
28145
28145
  }
@@ -28148,7 +28148,7 @@ function wM(e) {
28148
28148
  var e = Jj(), t = e.firstChild.nextSibling;
28149
28149
  return P(t, () => ["fast", "best"].map((e) => (() => {
28150
28150
  var t = _M();
28151
- 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;
28151
+ 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;
28152
28152
  })())), e;
28153
28153
  })(),
28154
28154
  (() => {
@@ -28213,7 +28213,7 @@ function wM(e) {
28213
28213
  })
28214
28214
  ];
28215
28215
  }
28216
- }), D), P(n, j(Rj, {
28216
+ }), O), P(n, j(Rj, {
28217
28217
  title: "Issue",
28218
28218
  get children() {
28219
28219
  return [
@@ -28247,7 +28247,7 @@ function wM(e) {
28247
28247
  get children() {
28248
28248
  return e.state.name;
28249
28249
  }
28250
- }), null), E((t) => {
28250
+ }), null), D((t) => {
28251
28251
  var n = e.url, i = e.title;
28252
28252
  return n !== t.e && it(r, "href", t.e = n), i !== t.t && it(r, "title", t.t = i), t;
28253
28253
  }, {
@@ -28411,9 +28411,9 @@ function wM(e) {
28411
28411
  get children() {
28412
28412
  return j(Nj, {
28413
28413
  get value() {
28414
- return ee();
28414
+ return E();
28415
28415
  },
28416
- onChange: (e) => te(e.currentTarget.value),
28416
+ onChange: (e) => ee(e.currentTarget.value),
28417
28417
  get children() {
28418
28418
  return [tM(), j(We, {
28419
28419
  get each() {
@@ -28421,7 +28421,7 @@ function wM(e) {
28421
28421
  },
28422
28422
  children: (e) => (() => {
28423
28423
  var t = bM();
28424
- return P(t, () => e.name), E(() => t.selected = e.id === ee()), E(() => t.value = e.id), t;
28424
+ return P(t, () => e.name), D(() => t.selected = e.id === E()), D(() => t.value = e.id), t;
28425
28425
  })()
28426
28426
  })];
28427
28427
  }
@@ -28438,7 +28438,7 @@ function wM(e) {
28438
28438
  get children() {
28439
28439
  return j(jj, {
28440
28440
  get value() {
28441
- return k();
28441
+ return te();
28442
28442
  },
28443
28443
  onInput: (e) => A(e.currentTarget.value),
28444
28444
  placeholder: "owner/repository"
@@ -28460,7 +28460,7 @@ function wM(e) {
28460
28460
  return [
28461
28461
  (() => {
28462
28462
  var e = nM(), t = e.firstChild;
28463
- return P(e, () => r().cursorAgentName ?? "Cursor", t), E((t) => {
28463
+ return P(e, () => r().cursorAgentName ?? "Cursor", t), D((t) => {
28464
28464
  var n = !r().cursorAgentId, i = ne() === "cursor";
28465
28465
  return n !== t.e && (e.disabled = t.e = n), i !== t.t && (e.selected = t.t = i), t;
28466
28466
  }, {
@@ -28470,11 +28470,11 @@ function wM(e) {
28470
28470
  })(),
28471
28471
  (() => {
28472
28472
  var e = rM();
28473
- return E(() => e.selected = ne() === "local"), e;
28473
+ return D(() => e.selected = ne() === "local"), e;
28474
28474
  })(),
28475
28475
  (() => {
28476
28476
  var e = iM();
28477
- return E(() => e.selected = ne() === "none"), e;
28477
+ return D(() => e.selected = ne() === "none"), e;
28478
28478
  })()
28479
28479
  ];
28480
28480
  }
@@ -28523,23 +28523,23 @@ function wM(e) {
28523
28523
  return [
28524
28524
  (() => {
28525
28525
  var e = aM();
28526
- return E(() => e.selected = ie() === ""), e;
28526
+ return D(() => e.selected = ie() === ""), e;
28527
28527
  })(),
28528
28528
  (() => {
28529
28529
  var e = oM();
28530
- return E(() => e.selected = ie() === "fable"), e;
28530
+ return D(() => e.selected = ie() === "fable"), e;
28531
28531
  })(),
28532
28532
  (() => {
28533
28533
  var e = sM();
28534
- return E(() => e.selected = ie() === "opus"), e;
28534
+ return D(() => e.selected = ie() === "opus"), e;
28535
28535
  })(),
28536
28536
  (() => {
28537
28537
  var e = cM();
28538
- return E(() => e.selected = ie() === "sonnet"), e;
28538
+ return D(() => e.selected = ie() === "sonnet"), e;
28539
28539
  })(),
28540
28540
  (() => {
28541
28541
  var e = lM();
28542
- return E(() => e.selected = ie() === "haiku"), e;
28542
+ return D(() => e.selected = ie() === "haiku"), e;
28543
28543
  })()
28544
28544
  ];
28545
28545
  }
@@ -28547,7 +28547,7 @@ function wM(e) {
28547
28547
  }
28548
28548
  }), (() => {
28549
28549
  var e = uM(), t = e.firstChild;
28550
- return t.addEventListener("change", (e) => ue(e.currentTarget.checked)), E(() => t.checked = le()), e;
28550
+ return t.addEventListener("change", (e) => ue(e.currentTarget.checked)), D(() => t.checked = le()), e;
28551
28551
  })()];
28552
28552
  }
28553
28553
  }),
@@ -28557,7 +28557,7 @@ function wM(e) {
28557
28557
  },
28558
28558
  get children() {
28559
28559
  var e = dM(), t = e.firstChild, n = t.nextSibling.firstChild.nextSibling, r = n.firstChild.nextSibling;
28560
- return r.nextSibling, t.addEventListener("change", (e) => fe(e.currentTarget.checked)), P(n, pe, r), E(() => t.checked = de()), e;
28560
+ return r.nextSibling, t.addEventListener("change", (e) => fe(e.currentTarget.checked)), P(n, pe, r), D(() => t.checked = de()), e;
28561
28561
  }
28562
28562
  }),
28563
28563
  j(M, {
@@ -28566,12 +28566,12 @@ function wM(e) {
28566
28566
  },
28567
28567
  get children() {
28568
28568
  var e = fM(), t = e.firstChild, n = t.nextSibling.firstChild.nextSibling, i = n.firstChild.nextSibling;
28569
- 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;
28569
+ 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;
28570
28570
  }
28571
28571
  })
28572
28572
  ];
28573
28573
  }
28574
- }), D), P(D, j(M, {
28574
+ }), O), P(O, j(M, {
28575
28575
  get when() {
28576
28576
  return Je();
28577
28577
  },
@@ -28580,7 +28580,7 @@ function wM(e) {
28580
28580
  return Je();
28581
28581
  } });
28582
28582
  }
28583
- }), O), P(D, j(M, {
28583
+ }), k), P(O, j(M, {
28584
28584
  get when() {
28585
28585
  return Xe();
28586
28586
  },
@@ -28588,7 +28588,7 @@ function wM(e) {
28588
28588
  var e = pM();
28589
28589
  return P(e, Xe), e;
28590
28590
  }
28591
- }), O), P(D, j(M, {
28591
+ }), k), P(O, j(M, {
28592
28592
  get when() {
28593
28593
  return Qe();
28594
28594
  },
@@ -28601,9 +28601,9 @@ function wM(e) {
28601
28601
  et(null), Re(null), e.onCreated();
28602
28602
  },
28603
28603
  children: "View activity"
28604
- }), null), E(() => it(r, "href", t().url)), n;
28604
+ }), null), D(() => it(r, "href", t().url)), n;
28605
28605
  })()
28606
- }), O), P(O, j(kj, {
28606
+ }), k), P(k, j(kj, {
28607
28607
  variant: "ghost",
28608
28608
  class: "h-9 shrink-0 px-3",
28609
28609
  get title() {
@@ -28624,7 +28624,7 @@ function wM(e) {
28624
28624
  }
28625
28625
  });
28626
28626
  }
28627
- }), null), P(O, j(kj, {
28627
+ }), null), P(k, j(kj, {
28628
28628
  variant: "primary",
28629
28629
  class: "h-9 min-w-0 flex-1",
28630
28630
  get loading() {
@@ -30209,9 +30209,9 @@ function xR(e, t, n) {
30209
30209
  return m();
30210
30210
  } }
30211
30211
  });
30212
- let ee = Vz;
30213
- return f ? _R(() => (ee = Vz, T(!1))) : T(!1), [w, {
30214
- refetch: (e) => OR(ee, () => T(e)),
30212
+ let E = Vz;
30213
+ return f ? _R(() => (E = Vz, T(!1))) : T(!1), [w, {
30214
+ refetch: (e) => OR(E, () => T(e)),
30215
30215
  mutate: h
30216
30216
  }];
30217
30217
  }
@@ -33613,10 +33613,10 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
33613
33613
  }
33614
33614
  return n ? !0 : t.opacity > 0;
33615
33615
  }), C(), a ? o = nI(T) : (o = null, s = null);
33616
- }, ee = () => {
33617
- o === null && (o = nI(T));
33618
33616
  }, E = () => {
33619
- m(), ee();
33617
+ o === null && (o = nI(T));
33618
+ }, D = () => {
33619
+ m(), E();
33620
33620
  };
33621
33621
  return yR(wR(() => [
33622
33622
  e.selectionVisible,
@@ -33625,7 +33625,7 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
33625
33625
  e.selectionShouldSnap
33626
33626
  ], ([e, t, n, r]) => {
33627
33627
  if (!e || !t && (!n || n.length === 0)) {
33628
- l = [], ee();
33628
+ l = [], E();
33629
33629
  return;
33630
33630
  }
33631
33631
  let i;
@@ -33635,13 +33635,13 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
33635
33635
  l = i.map((e, t) => {
33636
33636
  let n = `selection-${t}`, i = a.get(n);
33637
33637
  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);
33638
- }), ee();
33638
+ }), E();
33639
33639
  })), yR(wR(() => [e.dragVisible, e.dragBounds], ([e, t]) => {
33640
33640
  if (!e || !t) {
33641
- u = null, ee();
33641
+ u = null, E();
33642
33642
  return;
33643
33643
  }
33644
- u ? _(u, t) : u = g("drag", t), ee();
33644
+ u ? _(u, t) : u = g("drag", t), E();
33645
33645
  })), yR(wR(() => [e.grabbedBoxes, e.labelInstances], ([e, t]) => {
33646
33646
  let n = e ?? [], r = t ?? [], i = /* @__PURE__ */ new Map();
33647
33647
  for (let e of n) i.set(e.id, e);
@@ -33672,16 +33672,16 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
33672
33672
  }
33673
33673
  }
33674
33674
  }
33675
- d = d.filter((e) => e.id.startsWith("label-") ? o.has(e.id) : i.has(e.id)), ee();
33675
+ d = d.filter((e) => e.id.startsWith("label-") ? o.has(e.id) : i.has(e.id)), E();
33676
33676
  })), TR(() => {
33677
- m(), ee(), window.addEventListener("resize", E);
33677
+ m(), E(), window.addEventListener("resize", D);
33678
33678
  let e = null, t = () => {
33679
- Math.max(window.devicePixelRatio || 1, 2) !== a && (E(), n());
33679
+ Math.max(window.devicePixelRatio || 1, 2) !== a && (D(), n());
33680
33680
  }, n = () => {
33681
33681
  e && e.removeEventListener("change", t), e = window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`), e.addEventListener("change", t);
33682
33682
  };
33683
33683
  n(), ER(() => {
33684
- window.removeEventListener("resize", E), e && e.removeEventListener("change", t), o !== null && rI(o);
33684
+ window.removeEventListener("resize", D), e && e.removeEventListener("change", t), o !== null && rI(o);
33685
33685
  });
33686
33686
  }), (() => {
33687
33687
  var e = cW(), n = t;
@@ -34291,7 +34291,7 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
34291
34291
  }), ER(() => {
34292
34292
  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 });
34293
34293
  });
34294
- let T = () => `${e.tagName ?? ""}:${e.componentName ?? ""}`, ee = Y((t) => {
34294
+ let T = () => `${e.tagName ?? ""}:${e.componentName ?? ""}`, E = Y((t) => {
34295
34295
  d();
34296
34296
  let n = T(), r = n === t.elementIdentity ? t : {
34297
34297
  position: SG,
@@ -34312,23 +34312,23 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
34312
34312
  hadValidBounds: r.hadValidBounds,
34313
34313
  elementIdentity: n
34314
34314
  };
34315
- let v = i.x + i.width / 2, y = e.mouseX ?? v, b = i.y + i.height, x = i.y, S = e.hideArrow ? 0 : gW(l()), C = y, w = 0, ee = b + S + 4;
34315
+ let v = i.x + i.width / 2, y = e.mouseX ?? v, b = i.y + i.height, x = i.y, S = e.hideArrow ? 0 : gW(l()), C = y, w = 0, E = b + S + 4;
34316
34316
  if (o > 0) {
34317
34317
  let e = C - o / 2, t = C + o / 2;
34318
34318
  t > g - 8 && (w = g - 8 - t), e + w < m + 8 && (w = m + 8 - e);
34319
34319
  }
34320
- let E = c + S + 4, D = ee + c <= _ - 8;
34321
- D || (ee = x - E), ee < h + 8 && (ee = h + 8);
34322
- 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;
34320
+ let D = c + S + 4, O = E + c <= _ - 8;
34321
+ O || (E = x - D), E < h + 8 && (E = h + 8);
34322
+ 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;
34323
34323
  return {
34324
34324
  position: {
34325
34325
  left: C,
34326
- top: ee,
34326
+ top: E,
34327
34327
  arrowLeftPercent: 50,
34328
34328
  arrowLeftOffset: ne,
34329
34329
  edgeOffsetX: w
34330
34330
  },
34331
- computedArrowPosition: D ? "bottom" : "top",
34331
+ computedArrowPosition: O ? "bottom" : "top",
34332
34332
  hadValidBounds: !0,
34333
34333
  elementIdentity: n
34334
34334
  };
@@ -34337,17 +34337,17 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
34337
34337
  computedArrowPosition: null,
34338
34338
  hadValidBounds: !1,
34339
34339
  elementIdentity: ""
34340
- }), E = () => ee().computedArrowPosition ?? "bottom", D = () => ee().hadValidBounds;
34340
+ }), D = () => E().computedArrowPosition ?? "bottom", O = () => E().hadValidBounds;
34341
34341
  yR(wR(() => e.selectionLabelShakeCount, () => g(!0), { defer: !0 }));
34342
- let O = (t) => {
34342
+ let k = (t) => {
34343
34343
  if (t.isComposing || t.keyCode === 229) return;
34344
34344
  t.stopImmediatePropagation();
34345
34345
  let n = t.code === "Enter" && !t.shiftKey, r = t.code === "Escape";
34346
34346
  n ? (t.preventDefault(), e.onSubmit?.()) : r && (t.preventDefault(), e.onConfirmDismiss?.());
34347
- }, te = (t) => {
34347
+ }, ee = (t) => {
34348
34348
  let n = t.target;
34349
34349
  n instanceof HTMLTextAreaElement && (mW(n, 95), e.onInputChange?.(n.value));
34350
- }, k = () => bW({
34350
+ }, te = () => bW({
34351
34351
  tagName: e.tagName,
34352
34352
  componentName: e.componentName,
34353
34353
  elementsCount: e.elementsCount
@@ -34359,7 +34359,7 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
34359
34359
  y() && e.onToggleExpand?.();
34360
34360
  }, re = (t) => {
34361
34361
  t.stopImmediatePropagation(), _() && e.isPromptMode && !e.discardPrompt && e.onSubmit && r && hW(r, { preventScroll: !0 });
34362
- }, ie = () => D() && (v() || e.status === "error");
34362
+ }, ie = () => O() && (v() || e.status === "error");
34363
34363
  return X(oz, {
34364
34364
  get when() {
34365
34365
  return aB(() => e.visible !== !1)() && (e.selectionBounds || ie());
@@ -34377,13 +34377,13 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
34377
34377
  get children() {
34378
34378
  return X(EW, {
34379
34379
  get position() {
34380
- return E();
34380
+ return D();
34381
34381
  },
34382
34382
  get leftPercent() {
34383
- return ee().position.arrowLeftPercent;
34383
+ return E().position.arrowLeftPercent;
34384
34384
  },
34385
34385
  get leftOffsetPx() {
34386
- return ee().position.arrowLeftOffset;
34386
+ return E().position.arrowLeftOffset;
34387
34387
  },
34388
34388
  get labelWidth() {
34389
34389
  return l();
@@ -34442,10 +34442,10 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
34442
34442
  var t = _G(), n = t.firstChild;
34443
34443
  return $(n, X(MW, {
34444
34444
  get tagName() {
34445
- return k().tagName;
34445
+ return te().tagName;
34446
34446
  },
34447
34447
  get componentName() {
34448
- return k().componentName;
34448
+ return te().componentName;
34449
34449
  },
34450
34450
  get isClickable() {
34451
34451
  return !!(e.filePath && e.onOpen);
@@ -34464,10 +34464,10 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
34464
34464
  var t = bG(), n = t.firstChild;
34465
34465
  return $(n, X(MW, {
34466
34466
  get tagName() {
34467
- return k().tagName;
34467
+ return te().tagName;
34468
34468
  },
34469
34469
  get componentName() {
34470
- return k().componentName;
34470
+ return te().componentName;
34471
34471
  },
34472
34472
  get isClickable() {
34473
34473
  return !!(e.filePath && e.onOpen);
@@ -34476,7 +34476,7 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
34476
34476
  onHoverChange: S
34477
34477
  })), $(t, X(PW, { get children() {
34478
34478
  var t = yG(), n = t.firstChild;
34479
- return n.$$keydown = O, n.$$input = te, xz((t) => {
34479
+ return n.$$keydown = k, n.$$input = ee, xz((t) => {
34480
34480
  r = t, e.onSubmit && queueMicrotask(() => {
34481
34481
  hW(t, { preventScroll: !0 }), mW(t, 95);
34482
34482
  });
@@ -34543,7 +34543,7 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
34543
34543
  ];
34544
34544
  }
34545
34545
  }), null), vR((t) => {
34546
- var n = yW("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(${HM}) blur(${e.status === "fading" || p() ? "3px" : "0"})`;
34546
+ var n = yW("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(${HM}) blur(${e.status === "fading" || p() ? "3px" : "0"})`;
34547
34547
  return n !== t.e && hz(i, t.e = n), r !== t.t && yz(i, "top", t.t = r), a !== t.a && yz(i, "left", t.a = a), o !== t.o && yz(i, "transform", t.o = o), s !== t.i && yz(i, "pointer-events", t.i = s), c !== t.n && yz(i, "opacity", t.n = c), l !== t.s && yz(i, "filter", t.s = l), t;
34548
34548
  }, {
34549
34549
  e: void 0,
@@ -34914,14 +34914,14 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
34914
34914
  let t, n, r = null, i = zV(), [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({
34915
34915
  x: 0,
34916
34916
  y: 0
34917
- }), [_, v] = J(!1), [y, b] = J(!1), [x, S] = J(!1), [C, w] = J(!1), [T, ee] = J(0), [E, D] = J(null), O = () => {
34917
+ }), [_, v] = J(!1), [y, b] = J(!1), [x, S] = J(!1), [C, w] = J(!1), [T, E] = J(0), [D, O] = J(null), k = () => {
34918
34918
  r?.(), r = null, e.isActive || IL();
34919
- }, te = JG({
34919
+ }, ee = JG({
34920
34920
  getContainerRef: () => t,
34921
34921
  isCollapsed: s,
34922
34922
  getExpandedDimensions: () => ce,
34923
34923
  onDragStart: () => {
34924
- D(null), r && O();
34924
+ O(null), r && k();
34925
34925
  },
34926
34926
  onPositionUpdate: (e) => g(e),
34927
34927
  onSnapEdgeChange: (e, t) => {
@@ -34935,7 +34935,7 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
34935
34935
  enabled: !s()
34936
34936
  });
34937
34937
  }
34938
- }), 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 = () => {
34938
+ }), 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 = () => {
34939
34939
  switch (d()) {
34940
34940
  case "top": return "bottom";
34941
34941
  case "bottom": return "top";
@@ -34947,10 +34947,10 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
34947
34947
  e.stopImmediatePropagation();
34948
34948
  }, se = (t, n) => ({
34949
34949
  onMouseEnter: (e) => {
34950
- te.isDragging() || (D(t), n?.shouldFreezeInteractions !== !1 && !r && (r = fR(), FL(e.clientX, e.clientY)), n?.onHoverChange?.(!0));
34950
+ ee.isDragging() || (O(t), n?.shouldFreezeInteractions !== !1 && !r && (r = fR(), FL(e.clientX, e.clientY)), n?.onHoverChange?.(!0));
34951
34951
  },
34952
34952
  onMouseLeave: () => {
34953
- D((e) => e === t ? null : e), n?.shouldFreezeInteractions !== !1 && !e.isActive && !e.isContextMenuOpen && O(), n?.onHoverChange?.(!1);
34953
+ O((e) => e === t ? null : e), n?.shouldFreezeInteractions !== !1 && !e.isActive && !e.isContextMenuOpen && k(), n?.onHoverChange?.(!1);
34954
34954
  }
34955
34955
  });
34956
34956
  yR(wR(() => e.shakeCount, (t) => {
@@ -34959,7 +34959,7 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
34959
34959
  !e && !t && r && (r(), r = null);
34960
34960
  })), yR(wR(() => re(), (e) => {
34961
34961
  if (!e) {
34962
- ee((e) => YG(e, 0));
34962
+ E((e) => YG(e, 0));
34963
34963
  return;
34964
34964
  }
34965
34965
  let t = zM((e) => {
@@ -34967,7 +34967,7 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
34967
34967
  let t = n.getBoundingClientRect(), r = t.left + t.width / 2, i = t.top + t.height / 2, a = e.clientX - r, o = e.clientY - i;
34968
34968
  if (Math.hypot(a, o) < 4) return;
34969
34969
  let s = Math.atan2(o, a) * 180 / Math.PI - -45;
34970
- ee((e) => YG(e, s));
34970
+ E((e) => YG(e, s));
34971
34971
  });
34972
34972
  window.addEventListener("pointermove", t, { passive: !0 }), ER(() => {
34973
34973
  window.removeEventListener("pointermove", t);
@@ -34983,7 +34983,7 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
34983
34983
  return GG(e, n, ce, r?.width ?? i.width, r?.height ?? i.height);
34984
34984
  }, pe = () => {
34985
34985
  g(UG(d(), p(), ce.width, ce.height));
34986
- }, me = te.createDragAwareHandler(() => e.onToggle?.()), he = te.createDragAwareHandler(() => e.onActivateAction?.(vN)), ge = te.createDragAwareHandler(() => e.onActivateAction?.(yN)), _e = "group contain-layout flex items-center justify-center cursor-pointer interactive-scale a11y-hitbox", ve = () => yW("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(() => {
34986
+ }, me = ee.createDragAwareHandler(() => e.onToggle?.()), he = ee.createDragAwareHandler(() => e.onActivateAction?.(vN)), ge = ee.createDragAwareHandler(() => e.onActivateAction?.(yN)), _e = "group contain-layout flex items-center justify-center cursor-pointer interactive-scale a11y-hitbox", ve = () => yW("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(() => {
34987
34987
  let e = t?.getBoundingClientRect(), n = s(), r = p();
34988
34988
  if (n) {
34989
34989
  let { position: e, ratio: t } = fe(je(), d());
@@ -35013,7 +35013,7 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
35013
35013
  height: e.height
35014
35014
  }));
35015
35015
  }, Ee = (e, t) => {
35016
- if (!(e === 0 || t === 0) && !(te.isDragging() || te.isSnapping()) && !y()) {
35016
+ if (!(e === 0 || t === 0) && !(ee.isDragging() || ee.isSnapping()) && !y()) {
35017
35017
  if (s()) {
35018
35018
  let n = le();
35019
35019
  if (n.width === e && n.height === t) return;
@@ -35032,11 +35032,11 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
35032
35032
  }, g(UG(d(), p(), e, t)));
35033
35033
  }
35034
35034
  }, De = null, Oe = () => {
35035
- te.isDragging() || te.isSnapping() || De === null && (De = nI(() => {
35035
+ ee.isDragging() || ee.isSnapping() || De === null && (De = nI(() => {
35036
35036
  De = null, pe();
35037
35037
  }));
35038
35038
  }, ke = () => {
35039
- te.isDragging() || (u(!0), pe(), Se && clearTimeout(Se), Se = setTimeout(() => {
35039
+ ee.isDragging() || (u(!0), pe(), Se && clearTimeout(Se), Se = setTimeout(() => {
35040
35040
  u(!1);
35041
35041
  let e = WG(d(), h().x, h().y, ce.width, ce.height);
35042
35042
  m(e), Ae({
@@ -35105,9 +35105,9 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
35105
35105
  clearTimeout(u);
35106
35106
  });
35107
35107
  }), ER(() => {
35108
- window.removeEventListener("resize", ke), window.visualViewport?.removeEventListener("resize", ke), window.visualViewport?.removeEventListener("scroll", ke), window.removeEventListener("scroll", Oe, { capture: !0 }), De !== null && rI(De), clearTimeout(Se), clearTimeout(Ce), r && O();
35108
+ window.removeEventListener("resize", ke), window.visualViewport?.removeEventListener("resize", ke), window.visualViewport?.removeEventListener("scroll", ke), window.removeEventListener("scroll", Oe, { capture: !0 }), De !== null && rI(De), clearTimeout(Se), clearTimeout(Ce), r && k();
35109
35109
  });
35110
- 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 = () => {
35110
+ 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 = () => {
35111
35111
  switch (d()) {
35112
35112
  case "top": return "center top";
35113
35113
  case "bottom": return "center bottom";
@@ -35123,7 +35123,7 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
35123
35123
  }), r.addEventListener("mouseenter", () => {
35124
35124
  w(!0), s() || e.onSelectHoverChange?.(!0);
35125
35125
  }), gz(r, "mousedown", oe), gz(r, "pointerdown", (e) => {
35126
- oe(e), te.handlePointerDown(e);
35126
+ oe(e), ee.handlePointerDown(e);
35127
35127
  });
35128
35128
  var i = t;
35129
35129
  return typeof i == "function" ? xz(i, r) : t = r, $(r, X(BG, {
@@ -35179,7 +35179,7 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
35179
35179
  },
35180
35180
  onClick: me,
35181
35181
  onContextMenu: (t) => {
35182
- t.preventDefault(), t.stopPropagation(), D(null), e.onToggleToolbarMenu?.();
35182
+ t.preventDefault(), t.stopPropagation(), O(null), e.onToggleToolbarMenu?.();
35183
35183
  }
35184
35184
  }, () => se(_N), {
35185
35185
  get icon() {
@@ -36323,7 +36323,7 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
36323
36323
  }
36324
36324
  e.key === "Escape" && (e.preventDefault(), w());
36325
36325
  }
36326
- }, ee = () => {
36326
+ }, E = () => {
36327
36327
  let t = r();
36328
36328
  return {
36329
36329
  cursor: m() && !l() ? "ew-resize" : "default",
@@ -36435,7 +36435,7 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
36435
36435
  })];
36436
36436
  }
36437
36437
  }), null), vR((t) => {
36438
- var n = e.label ?? "Value", r = e.min, c = e.max, u = e.value, d = `${oV(e.value)}${e.unit}`, m = ee(), h = `${f()}%`, g = +!l(), _ = `calc(${f()}% - 1px)`, v = e.activeKey ? .9 : a() || s() ? .35 : 0;
36438
+ var n = e.label ?? "Value", r = e.min, c = e.max, u = e.value, d = `${oV(e.value)}${e.unit}`, m = E(), h = `${f()}%`, g = +!l(), _ = `calc(${f()}% - 1px)`, v = e.activeKey ? .9 : a() || s() ? .35 : 0;
36439
36439
  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 = vz(i, m, t.n), h !== t.s && yz(o, "width", t.s = h), g !== t.h && yz(o, "opacity", t.h = g), _ !== t.r && yz(p, "left", t.r = _), v !== t.d && yz(p, "opacity", t.d = v), t;
36440
36440
  }, {
36441
36441
  e: void 0,
@@ -37167,13 +37167,13 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
37167
37167
  }), d = () => {
37168
37168
  let e = u.filteredProperties().findIndex((e) => e.kind === "numeric");
37169
37169
  return e > 0 ? e : 0;
37170
- }, [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 = GV(), D = Y(() => bW({
37170
+ }, [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 = GV(), O = Y(() => bW({
37171
37171
  tagName: e.state.tagName,
37172
37172
  componentName: e.state.componentName
37173
- })), O = Y(() => {
37173
+ })), k = Y(() => {
37174
37174
  let e = u.filteredProperties();
37175
37175
  return e.length === 0 ? null : e[Math.min(Math.max(0, f()), e.length - 1)];
37176
- }), te, k = AK(() => te, e.position), A = (e) => {
37176
+ }), ee, te = AK(() => ee, e.position), A = (e) => {
37177
37177
  l(e), clearTimeout(v), v = setTimeout(() => {
37178
37178
  l((t) => t === e ? null : t);
37179
37179
  }, 100);
@@ -37215,9 +37215,9 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
37215
37215
  }, de = () => {
37216
37216
  oe(), s(null), _(!1);
37217
37217
  }, fe = (t, n, i = {}) => {
37218
- u.applyStyle(t, n), r.apply(t.cssProperties, cV(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();
37218
+ u.applyStyle(t, n), r.apply(t.cssProperties, cV(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();
37219
37219
  }, pe = VV((e) => e.shiftKey), me = VV((e) => e.altKey), he = (t, n, r, i, a) => {
37220
- let o = O();
37220
+ let o = k();
37221
37221
  if (!o) return null;
37222
37222
  let s = Nq(o, t, n, r, e.state.designTokens);
37223
37223
  return s === null ? (A(t === 1 ? "right" : "left"), null) : (fe(o, s, {
@@ -37235,7 +37235,7 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
37235
37235
  isShiftHeld: pe,
37236
37236
  isAltHeld: me
37237
37237
  }), ye = (e, t) => {
37238
- let n = O();
37238
+ let n = k();
37239
37239
  if (n) {
37240
37240
  if (n.kind === "numeric" && typeof e == "number") {
37241
37241
  let r = sV(MB(e, n.min, n.max));
@@ -37246,13 +37246,13 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
37246
37246
  }
37247
37247
  }, be = Y(() => {
37248
37248
  if (!pe()) return null;
37249
- let e = O();
37249
+ let e = k();
37250
37250
  return !e || e.kind !== "numeric" ? null : MK(e.key, e.value);
37251
37251
  }), xe = lJ({
37252
37252
  initialProperties: t,
37253
37253
  searchQuery: i,
37254
37254
  isCompact: g,
37255
- activeProperty: O,
37255
+ activeProperty: k,
37256
37256
  commit: (e, t, n) => {
37257
37257
  fe(e, t, {
37258
37258
  ...n,
@@ -37261,13 +37261,13 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
37261
37261
  },
37262
37262
  setIsCompact: _
37263
37263
  }), Se = Y(() => g() && i() !== "" && xe.isInlineNumericEdit()), Ce = () => {
37264
- we.hide(), E.clear(), e.onSubmit(u.buildPendingEdits());
37264
+ we.hide(), D.clear(), e.onSubmit(u.buildPendingEdits());
37265
37265
  }, we = yq(), Te, Ee = () => {
37266
37266
  Te && (Te.classList.remove("animate-shake"), Te.offsetWidth, Te.classList.add("animate-shake"));
37267
37267
  }, De = (t) => {
37268
37268
  we.hide(), t === "discard" && r.restore(), e.onDismiss();
37269
37269
  }, Oe = (e) => {
37270
- if (ve.cancelRepeat(), e === "pointer" && E.clear(), we.isPending()) {
37270
+ if (ve.cancelRepeat(), e === "pointer" && D.clear(), we.isPending()) {
37271
37271
  De("discard");
37272
37272
  return;
37273
37273
  }
@@ -37281,11 +37281,11 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
37281
37281
  let t = u.filteredProperties();
37282
37282
  t.length !== 0 && (p((n) => (n + e + t.length) % t.length), de());
37283
37283
  }, Ae = () => {
37284
- E.clear(), we.hide();
37284
+ D.clear(), we.hide();
37285
37285
  }, je = [], Me = (e) => (je.push(e), () => {
37286
37286
  je = je.filter((t) => t !== e);
37287
37287
  }), Ne = () => je[je.length - 1] ?? null, Pe = (e, t) => {
37288
- if (O()?.kind === "color") {
37288
+ if (k()?.kind === "color") {
37289
37289
  t.repeat || Ne()?.();
37290
37290
  return;
37291
37291
  }
@@ -37298,7 +37298,7 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
37298
37298
  Tab: (e) => ke(e.shiftKey ? -1 : 1),
37299
37299
  Enter: () => {
37300
37300
  if (we.isPending()) return;
37301
- let e = O(), t = Ne();
37301
+ let e = k(), t = Ne();
37302
37302
  if (e?.kind === "color" && !u.hasChangedStyleFor(e.key) && t && !h()) {
37303
37303
  t();
37304
37304
  return;
@@ -37325,7 +37325,7 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
37325
37325
  let e = n.value.length;
37326
37326
  n.setSelectionRange(e, e);
37327
37327
  }
37328
- }), k.measure();
37328
+ }), te.measure();
37329
37329
  let e = i();
37330
37330
  e && xe.applyTailwindClass(e);
37331
37331
  let t = wK({
@@ -37342,10 +37342,10 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
37342
37342
  }), a = zM((e) => {
37343
37343
  ve.releaseKey(e.key);
37344
37344
  }), o = zM((e) => {
37345
- e.pointerType === "mouse" && (we.isPending() || E.consume() && h() && Oe("pointer"));
37345
+ e.pointerType === "mouse" && (we.isPending() || D.consume() && h() && Oe("pointer"));
37346
37346
  });
37347
37347
  window.addEventListener("keydown", r, { capture: !0 }), window.addEventListener("keyup", a, { capture: !0 }), window.addEventListener("pointermove", o, { capture: !0 }), ER(() => {
37348
- 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);
37348
+ 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);
37349
37349
  });
37350
37350
  });
37351
37351
  let j = (e) => {
@@ -37353,13 +37353,13 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
37353
37353
  };
37354
37354
  return X(oz, {
37355
37355
  get when() {
37356
- return k.shouldMount();
37356
+ return te.shouldMount();
37357
37357
  },
37358
37358
  get children() {
37359
37359
  var e = hJ();
37360
37360
  gz(e, "contextmenu", CK, !0), gz(e, "click", CK, !0), gz(e, "mousedown", CK, !0), gz(e, "pointerdown", CK, !0);
37361
- var t = te;
37362
- return typeof t == "function" ? xz(t, e) : te = e, yz(e, "z-index", `${XM}`), yz(e, "--rg-edit-list-max-h", "280px"), $(e, X(RW, {
37361
+ var t = ee;
37362
+ return typeof t == "function" ? xz(t, e) : ee = e, yz(e, "z-index", `${XM}`), yz(e, "--rg-edit-list-max-h", "280px"), $(e, X(RW, {
37363
37363
  ref: (e) => Te = e,
37364
37364
  class: "flex flex-col justify-center items-start overflow-hidden w-fit h-fit",
37365
37365
  get style() {
@@ -37383,12 +37383,12 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
37383
37383
  },
37384
37384
  get children() {
37385
37385
  var e = mJ();
37386
- return e.addEventListener("mouseleave", () => ee(!1)), e.addEventListener("mouseenter", () => ee(!0)), $(e, X(MW, {
37386
+ return e.addEventListener("mouseleave", () => E(!1)), e.addEventListener("mouseenter", () => E(!0)), $(e, X(MW, {
37387
37387
  get tagName() {
37388
- return D().tagName;
37388
+ return O().tagName;
37389
37389
  },
37390
37390
  get componentName() {
37391
- return D().componentName;
37391
+ return O().componentName;
37392
37392
  },
37393
37393
  isClickable: !1,
37394
37394
  onClick: () => {},
@@ -37444,7 +37444,7 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
37444
37444
  }, xz((e) => {
37445
37445
  n = e;
37446
37446
  }, t), Q(t, "spellcheck", !1), vR((n) => {
37447
- 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() ? RK : void 0, a = Se() ? -1 : 0, o = g() ? O()?.label ?? "Search property" : "Search property";
37447
+ 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() ? RK : void 0, a = Se() ? -1 : 0, o = g() ? k()?.label ?? "Search property" : "Search property";
37448
37448
  return r !== n.e && hz(e, n.e = r), n.t = vz(e, i, n.t), a !== n.a && Q(t, "tabindex", n.a = a), o !== n.o && Q(t, "placeholder", n.o = o), n;
37449
37449
  }, {
37450
37450
  e: void 0,
@@ -37492,7 +37492,7 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
37492
37492
  }),
37493
37493
  X(oz, {
37494
37494
  get when() {
37495
- return aB(() => !!g())() && O();
37495
+ return aB(() => !!g())() && k();
37496
37496
  },
37497
37497
  children: (e) => (() => {
37498
37498
  var t = gJ();
@@ -37520,7 +37520,7 @@ var Mz, Nz, Pz, Fz, Iz, Lz, Rz, zz, Bz, Vz, Hz, Uz, Wz, Gz, Kz, qz, Jz, Yz, Xz,
37520
37520
  ];
37521
37521
  }
37522
37522
  })), vR((t) => {
37523
- var n = g() ? "true" : "false", r = yW("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 = wN[k.lastAnchorEdge()], c = k.isAnimatedIn() ? "1" : "0", l = k.isAnimatedIn() ? "scale(1)" : "scale(0.92)";
37523
+ var n = g() ? "true" : "false", r = yW("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 = wN[te.lastAnchorEdge()], c = te.isAnimatedIn() ? "1" : "0", l = te.isAnimatedIn() ? "scale(1)" : "scale(0.92)";
37524
37524
  return n !== t.e && Q(e, "data-rg-compact", t.e = n), r !== t.t && hz(e, t.t = r), i !== t.a && yz(e, "top", t.a = i), a !== t.o && yz(e, "left", t.o = a), o !== t.i && yz(e, "pointer-events", t.i = o), s !== t.n && yz(e, "transform-origin", t.n = s), c !== t.s && yz(e, "opacity", t.s = c), l !== t.h && yz(e, "transform", t.h = l), t;
37525
37525
  }, {
37526
37526
  e: void 0,
@@ -40125,7 +40125,7 @@ var HJ, UJ, WJ, GJ, KJ, qJ, JJ, YJ, XJ, ZJ, QJ, $J, eY, tY, nY, rY, iY, aY, oY,
40125
40125
  yR(wR(d, (e, t) => {
40126
40126
  e && !t ? (FL(s().x, s().y), C("touchAction", "none")) : !e && t && (IL(), C("touchAction", ""));
40127
40127
  }));
40128
- let w = zV(), [T, ee] = J(!w || !w.collapsed), [E, D] = J(0), [O, te] = J(0), [k, A] = J(w), [ne, re] = J(!1), ie = VV((e) => e.shiftKey), [ae, oe] = J(null), [se, ce] = J(null), [le, ue] = J(null), de = ZX({
40128
+ let w = zV(), [T, E] = J(!w || !w.collapsed), [D, O] = J(0), [k, ee] = J(0), [te, A] = J(w), [ne, re] = J(!1), ie = VV((e) => e.shiftKey), [ae, oe] = J(null), [se, ce] = J(null), [le, ue] = J(null), de = ZX({
40129
40129
  store: i,
40130
40130
  actions: o,
40131
40131
  isActivated: d,
@@ -40143,7 +40143,7 @@ var HJ, UJ, WJ, GJ, KJ, qJ, JJ, YJ, XJ, ZJ, QJ, $J, eY, tY, nY, rY, iY, aY, oY,
40143
40143
  }, Se = () => {
40144
40144
  Le(!1), xe();
40145
40145
  }, Ce = (e) => {
40146
- let t = k() ?? zV(), n = {
40146
+ let t = te() ?? zV(), n = {
40147
40147
  edge: t?.edge ?? "bottom",
40148
40148
  ratio: t?.ratio ?? .5,
40149
40149
  collapsed: t?.collapsed ?? !1,
@@ -40546,7 +40546,7 @@ var HJ, UJ, WJ, GJ, KJ, qJ, JJ, YJ, XJ, ZJ, QJ, $J, eY, tY, nY, rY, iY, aY, oY,
40546
40546
  grabbedBoxes: [...Vt()],
40547
40547
  labelInstances: [...Ht()],
40548
40548
  selectionFilePath: i.selectionFilePath,
40549
- toolbarState: k()
40549
+ toolbarState: te()
40550
40550
  };
40551
40551
  }), (e) => {
40552
40552
  r.hooks.onStateChange(e);
@@ -40642,7 +40642,7 @@ var HJ, UJ, WJ, GJ, KJ, qJ, JJ, YJ, XJ, ZJ, QJ, $J, eY, tY, nY, rY, iY, aY, oY,
40642
40642
  o.clearInputText(), Kt();
40643
40643
  return;
40644
40644
  }
40645
- o.setPendingDismiss(!0), te((e) => e + 1);
40645
+ o.setPendingDismiss(!0), ee((e) => e + 1);
40646
40646
  }
40647
40647
  }, Zt = () => {
40648
40648
  if (ye.isPendingDismiss()) {
@@ -40702,7 +40702,7 @@ var HJ, UJ, WJ, GJ, KJ, qJ, JJ, YJ, XJ, ZJ, QJ, $J, eY, tY, nY, rY, iY, aY, oY,
40702
40702
  }
40703
40703
  T() && (Ge = e, Je(e), Ke(!0), Jt());
40704
40704
  }, sn = () => {
40705
- on(k()?.defaultAction ?? "copy");
40705
+ on(te()?.defaultAction ?? "copy");
40706
40706
  }, cn = (e, t, n) => {
40707
40707
  rn(), o.clearInputText(), o.enterPromptMode({
40708
40708
  x: t,
@@ -40913,7 +40913,7 @@ var HJ, UJ, WJ, GJ, KJ, qJ, JJ, YJ, XJ, ZJ, QJ, $J, eY, tY, nY, rY, iY, aY, oY,
40913
40913
  let n = tY(eY(e));
40914
40914
  o.setPointer(n), i.contextMenuPosition !== null && o.showContextMenu(n, e);
40915
40915
  }, En = () => {
40916
- ye.showDismissPrompt() && te((e) => e + 1);
40916
+ ye.showDismissPrompt() && ee((e) => e + 1);
40917
40917
  }, Dn = () => {
40918
40918
  ye.clear(), o.unfreeze(), wn();
40919
40919
  }, On = () => {
@@ -41034,7 +41034,7 @@ var HJ, UJ, WJ, GJ, KJ, qJ, JJ, YJ, XJ, ZJ, QJ, $J, eY, tY, nY, rY, iY, aY, oY,
41034
41034
  xn.addWindowListener("keydown", zM((e) => {
41035
41035
  if (kn(e) && uB(e) || Hn(e)) return;
41036
41036
  if (Cn(e), !T()) {
41037
- aX(e, r.store.options) && !e.repeat && D((e) => e + 1);
41037
+ aX(e, r.store.options) && !e.repeat && O((e) => e + 1);
41038
41038
  return;
41039
41039
  }
41040
41040
  let t = gZ(e.code) && u() && !b(), n = IB(e, hN);
@@ -41499,7 +41499,7 @@ var HJ, UJ, WJ, GJ, KJ, qJ, JJ, YJ, XJ, ZJ, QJ, $J, eY, tY, nY, rY, iY, aY, oY,
41499
41499
  onInputSubmit: () => void Yt(),
41500
41500
  onToggleExpand: $t,
41501
41501
  get selectionLabelShakeCount() {
41502
- return O();
41502
+ return k();
41503
41503
  },
41504
41504
  onConfirmDismiss: Zt,
41505
41505
  get discardPrompt() {
@@ -41527,10 +41527,10 @@ var HJ, UJ, WJ, GJ, KJ, qJ, JJ, YJ, XJ, ZJ, QJ, $J, eY, tY, nY, rY, iY, aY, oY,
41527
41527
  return T();
41528
41528
  },
41529
41529
  get shakeCount() {
41530
- return E();
41530
+ return D();
41531
41531
  },
41532
41532
  onToolbarStateChange: (e) => {
41533
- A(e), e.enabled !== T() && (ee(e.enabled), e.enabled || (qt(), Ar())), DZ.forEach((t) => t(e));
41533
+ A(e), e.enabled !== T() && (E(e.enabled), e.enabled || (qt(), Ar())), DZ.forEach((t) => t(e));
41534
41534
  },
41535
41535
  onSubscribeToToolbarStateChanges: (e) => (DZ.add(e), () => {
41536
41536
  DZ.delete(e);
@@ -41569,7 +41569,7 @@ var HJ, UJ, WJ, GJ, KJ, qJ, JJ, YJ, XJ, ZJ, QJ, $J, eY, tY, nY, rY, iY, aY, oY,
41569
41569
  return r.store.actions.filter((e) => e.showInToolbarMenu === !0);
41570
41570
  },
41571
41571
  get defaultActionId() {
41572
- return k()?.defaultAction ?? "copy";
41572
+ return te()?.defaultAction ?? "copy";
41573
41573
  },
41574
41574
  onSetDefaultAction: Mr,
41575
41575
  onToggleToolbarMenu: jr,
@@ -41610,21 +41610,21 @@ var HJ, UJ, WJ, GJ, KJ, qJ, JJ, YJ, XJ, ZJ, QJ, $J, eY, tY, nY, rY, iY, aY, oY,
41610
41610
  isActive: () => d(),
41611
41611
  isEnabled: () => T(),
41612
41612
  setEnabled: (e) => {
41613
- e !== T() && (ee(e), Ce({
41613
+ e !== T() && (E(e), Ce({
41614
41614
  enabled: e,
41615
41615
  collapsed: !e
41616
41616
  }), e || (qt(), Ar()));
41617
41617
  },
41618
- getToolbarState: () => k() ?? zV(),
41618
+ getToolbarState: () => te() ?? zV(),
41619
41619
  setToolbarState: (e) => {
41620
- let t = k() ?? zV(), n = e.collapsed ?? t?.collapsed ?? !1, r = {
41620
+ let t = te() ?? zV(), n = e.collapsed ?? t?.collapsed ?? !1, r = {
41621
41621
  edge: e.edge ?? t?.edge ?? "bottom",
41622
41622
  ratio: e.ratio ?? t?.ratio ?? .5,
41623
41623
  collapsed: n,
41624
41624
  enabled: e.enabled ?? !n,
41625
41625
  defaultAction: e.defaultAction ?? t?.defaultAction ?? "copy"
41626
41626
  };
41627
- BV(r), A(r), r.enabled !== T() && (ee(r.enabled), r.enabled || (qt(), Ar())), DZ.forEach((e) => e(r));
41627
+ BV(r), A(r), r.enabled !== T() && (E(r.enabled), r.enabled || (qt(), Ar())), DZ.forEach((e) => e(r));
41628
41628
  },
41629
41629
  onToolbarStateChange: (e) => (DZ.add(e), () => {
41630
41630
  DZ.delete(e);
@@ -41660,7 +41660,7 @@ var HJ, UJ, WJ, GJ, KJ, qJ, JJ, YJ, XJ, ZJ, QJ, $J, eY, tY, nY, rY, iY, aY, oY,
41660
41660
  grabbedBoxes: [...Vt()],
41661
41661
  labelInstances: [...Ht()],
41662
41662
  selectionFilePath: i.selectionFilePath,
41663
- toolbarState: k()
41663
+ toolbarState: te()
41664
41664
  }),
41665
41665
  setOptions: (e) => {
41666
41666
  r.setOptions(e);
@@ -41979,23 +41979,23 @@ function TQ() {
41979
41979
  }
41980
41980
  }, [S, C] = T(HD());
41981
41981
  ae(UD(C));
41982
- let [w, ee] = T(0);
41983
- D(() => {
41982
+ let [w, E] = T(0);
41983
+ O(() => {
41984
41984
  if (S().phase !== "recording") return;
41985
- let e = setInterval(() => ee(Date.now() - (HD().startedAt ?? Date.now())), 250);
41985
+ let e = setInterval(() => E(Date.now() - (HD().startedAt ?? Date.now())), 250);
41986
41986
  ae(() => clearInterval(e));
41987
41987
  });
41988
- let O = (e) => {
41988
+ let k = (e) => {
41989
41989
  let t = Math.floor(e / 1e3);
41990
41990
  return `${Math.floor(t / 60)}:${String(t % 60).padStart(2, "0")}`;
41991
- }, [te, k] = T("idle"), [A, ne] = T(null), re = async () => {
41991
+ }, [ee, te] = T("idle"), [A, ne] = T(null), re = async () => {
41992
41992
  let e = HD().result;
41993
41993
  if (!e) throw Error("No recording available.");
41994
41994
  if (e.assetUrl) return e.assetUrl;
41995
41995
  let t = await Promise.race([DO(e.blob, `recording-${Date.now()}.gif`), new Promise((e, t) => setTimeout(() => t(/* @__PURE__ */ Error("upload timed out")), 6e4))]);
41996
41996
  return rO(t), t;
41997
41997
  }, ie = async () => {
41998
- ne(null), k("busy");
41998
+ ne(null), te("busy");
41999
41999
  try {
42000
42000
  let e = re().then((e) => new Blob([`![Screen recording](${e})`], { type: "text/plain" }));
42001
42001
  try {
@@ -42004,9 +42004,9 @@ function TQ() {
42004
42004
  let t = await e;
42005
42005
  await navigator.clipboard.writeText(await t.text());
42006
42006
  }
42007
- k("copied"), setTimeout(() => k("idle"), 2e3);
42007
+ te("copied"), setTimeout(() => te("idle"), 2e3);
42008
42008
  } catch {
42009
- k("idle"), await le(), ne("Direct upload is blocked in this browser — copied the GIF instead. Paste it into a Linear comment and Linear uploads it.");
42009
+ te("idle"), await le(), ne("Direct upload is blocked in this browser — copied the GIF instead. Paste it into a Linear comment and Linear uploads it.");
42010
42010
  }
42011
42011
  }, oe = () => {
42012
42012
  let e = S().result;
@@ -42134,7 +42134,7 @@ function TQ() {
42134
42134
  },
42135
42135
  get children() {
42136
42136
  var t = gQ();
42137
- return E(() => it(t, "src", e.screenshotDataUrl)), t;
42137
+ return D(() => it(t, "src", e.screenshotDataUrl)), t;
42138
42138
  }
42139
42139
  }), null), t;
42140
42140
  })()
@@ -42231,7 +42231,7 @@ function TQ() {
42231
42231
  },
42232
42232
  get children() {
42233
42233
  var e = uQ(), t = e.firstChild.nextSibling;
42234
- return t.nextSibling, P(t, () => O(w())), P(e, j(kj, {
42234
+ return t.nextSibling, P(t, () => k(w())), P(e, j(kj, {
42235
42235
  variant: "primary",
42236
42236
  class: "ml-auto",
42237
42237
  onClick: () => void eO(),
@@ -42262,7 +42262,7 @@ function TQ() {
42262
42262
  variant: "ghost",
42263
42263
  class: "size-7 px-0",
42264
42264
  get loading() {
42265
- return te() === "busy";
42265
+ return ee() === "busy";
42266
42266
  },
42267
42267
  get disabled() {
42268
42268
  return !i();
@@ -42275,7 +42275,7 @@ function TQ() {
42275
42275
  get children() {
42276
42276
  return j(M, {
42277
42277
  get when() {
42278
- return te() === "copied";
42278
+ return ee() === "copied";
42279
42279
  },
42280
42280
  get fallback() {
42281
42281
  return CQ();
@@ -42334,7 +42334,7 @@ function TQ() {
42334
42334
  return A();
42335
42335
  } });
42336
42336
  }
42337
- }), null), E(() => it(n, "src", e().url)), E(() => l.checked = S().attachOnCreate), t;
42337
+ }), null), D(() => it(n, "src", e().url)), D(() => l.checked = S().attachOnCreate), t;
42338
42338
  })()
42339
42339
  })
42340
42340
  ];
@@ -43025,7 +43025,7 @@ function qQ(e) {
43025
43025
  return s.setOptions(t), ie(() => {
43026
43026
  let e = s._didMount();
43027
43027
  s._willUpdate(), ae(e);
43028
- }), ee(() => {
43028
+ }), E(() => {
43029
43029
  s.setOptions(Ve(t, e, { onChange: (t, n) => {
43030
43030
  var r;
43031
43031
  t._willUpdate(), i(ar(t.getVirtualItems(), { key: "index" })), o(t.getTotalSize()), (r = e.onChange) == null || r.call(e, t, n);
@@ -43102,7 +43102,7 @@ function u$(e) {
43102
43102
  refetchInterval: () => r() ? 1e4 : !1,
43103
43103
  retry: 0
43104
43104
  })), s, c = !0;
43105
- D(() => {
43105
+ O(() => {
43106
43106
  o.data?.logs, !(!s || !c) && requestAnimationFrame(() => {
43107
43107
  s && (s.scrollTop = s.scrollHeight);
43108
43108
  });
@@ -43139,7 +43139,7 @@ function u$(e) {
43139
43139
  get fallback() {
43140
43140
  return (() => {
43141
43141
  var e = c$();
43142
- return E((t) => dt(e, "background", u().color)), e;
43142
+ return D((t) => dt(e, "background", u().color)), e;
43143
43143
  })();
43144
43144
  },
43145
43145
  get children() {
@@ -43221,7 +43221,7 @@ function u$(e) {
43221
43221
  }
43222
43222
  });
43223
43223
  }
43224
- }), null), E((e) => dt(f, "color", u().color)), t;
43224
+ }), null), D((e) => dt(f, "color", u().color)), t;
43225
43225
  })();
43226
43226
  }
43227
43227
  //#endregion
@@ -43346,15 +43346,15 @@ function S$(e) {
43346
43346
  Br();
43347
43347
  var C$ = /*#__PURE__*/ N("<div class=\"lg-md text-text text-[12px] leading-relaxed break-words\">"), w$ = /*#__PURE__*/ N("<div class=\"flex h-full flex-col\">"), T$ = /*#__PURE__*/ N("<span class=\"tabular-nums text-[10.5px] text-text-faint\">live · updated "), E$ = /*#__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\">"), D$ = /*#__PURE__*/ N("<div class=\"flex-1 overflow-y-auto\">"), O$ = /*#__PURE__*/ N("<div class=\"min-h-0 flex-1 overflow-y-auto pl-2 pr-3\"><div style=position:relative>"), k$ = /*#__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\"></div></div><div class=\"border-border flex shrink-0 items-center gap-1 border-b px-3 py-1.5\">"), A$ = /*#__PURE__*/ N("<button>"), j$ = /*#__PURE__*/ N("<div style=position:absolute;top:0;left:0;width:100%>"), M$ = /*#__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\">"), N$ = /*#__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=\"M10.5 3.5 6 8l4.5 4.5\">"), P$ = /*#__PURE__*/ N("<span class=\"font-mono text-[11px] text-text-dim shrink-0\">"), F$ = /*#__PURE__*/ N("<span class=\"truncate text-[12px] font-medium text-text\">"), I$ = /*#__PURE__*/ N("<span class=\"text-[11.5px] text-text-faint\">Loading…"), L$ = /*#__PURE__*/ N("<div class=\"flex items-center gap-2\"><span class=\"text-[11px] text-text-dim\">"), R$ = /*#__PURE__*/ N("<div class=\"flex flex-col gap-2\">"), z$ = /*#__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\">"), B$ = /*#__PURE__*/ N("<div class=\"flex flex-col gap-2.5\"><span class=\"text-[10.5px] font-semibold uppercase tracking-wide text-text-dim\">Comments"), V$ = /*#__PURE__*/ N("<option value=local>Message local Claude Code session"), H$ = /*#__PURE__*/ N("<option value=new>Start NEW agent (@<!>)"), U$ = /*#__PURE__*/ N("<option value=comment>Comment only"), W$ = /*#__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\">"), G$ = /*#__PURE__*/ N("<svg width=11 height=11 viewBox=\"0 0 16 16\"fill=currentColor aria-hidden><rect x=3 y=3 width=10 height=10 rx=1.5>"), K$ = /*#__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\">"), q$ = /*#__PURE__*/ N("<span class=\"inline-block min-w-[4ch] text-left\">Send"), J$ = /*#__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\">"), Y$ = /*#__PURE__*/ N("<option selected>"), X$ = /*#__PURE__*/ N("<svg width=10 height=10 viewBox=\"0 0 16 16\"fill=currentColor aria-hidden><rect x=3 y=3 width=10 height=10 rx=1.5>"), Z$ = /*#__PURE__*/ N("<svg width=11 height=11 viewBox=\"0 0 16 16\"fill=currentColor aria-hidden><path d=\"M4.5 2.8a.8.8 0 0 1 1.22-.68l8 5.2a.8.8 0 0 1 0 1.36l-8 5.2a.8.8 0 0 1-1.22-.68V2.8Z\">"), Q$ = /*#__PURE__*/ N("<svg width=11 height=11 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round aria-hidden><path d=\"m2.5 4 3.5 4-3.5 4M8 12.5h5.5\">"), $$ = /*#__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><div class=\"flex h-9 items-center gap-1 pr-2\"><button class=\"hover:bg-surface-2 flex h-full min-w-0 flex-1 cursor-pointer items-center gap-2 rounded-md 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\">"), e1 = /*#__PURE__*/ N("<option>"), t1 = /*#__PURE__*/ N("<div class=\"flex flex-col gap-1.5\">"), n1 = /*#__PURE__*/ N("<span class=\"text-success text-[11px]\">✓"), r1 = /*#__PURE__*/ N("<span class=\"inline-block min-w-[6ch] text-center\">Merge"), i1 = /*#__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\">"), a1 = /*#__PURE__*/ N("<svg width=12 height=12 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round aria-hidden><path d=\"M8 2 14 5.5 8 9 2 5.5 8 2Z\"></path><path d=\"M2 10.5 8 14l6-3.5\">"), o1 = /*#__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\">"), s1 = /*#__PURE__*/ N("<option>Steer running agent<!> · "), c1 = /*#__PURE__*/ N("<span class=\"bg-danger inline-block size-2.5 rounded-full\"aria-hidden>"), l1 = /*#__PURE__*/ N("<span class=\"text-[11px] text-text-dim\">"), u1 = /*#__PURE__*/ N("<svg width=12 height=12 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round aria-hidden class=transition-transform><path d=\"m3.5 6.5 4.5 4 4.5-4\">"), d1 = /*#__PURE__*/ N("<p class=\"text-[12px] text-text leading-relaxed whitespace-pre-wrap break-words\">"), f1 = /*#__PURE__*/ N("<div class=\"border-border mt-0.5 flex flex-col gap-1 overflow-y-auto border-t pt-1.5 pl-0.5 pr-3\">"), p1 = /*#__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\">"), m1 = /*#__PURE__*/ N("<p class=\"font-mono text-text-faint text-[10.5px] leading-relaxed break-words\">→ <!> "), h1 = /*#__PURE__*/ N("<div>");
43348
43348
  function g1(e) {
43349
- let t = O(() => S$(e.text));
43349
+ let t = k(() => S$(e.text));
43350
43350
  return (() => {
43351
43351
  var e = C$();
43352
- return E(() => e.innerHTML = t()), e;
43352
+ return D(() => e.innerHTML = t()), e;
43353
43353
  })();
43354
43354
  }
43355
43355
  function _1() {
43356
43356
  let [e, t] = T(null);
43357
- return D(() => {
43357
+ return O(() => {
43358
43358
  let e = ij();
43359
43359
  e && (t(e), sj());
43360
43360
  }), (() => {
@@ -43412,7 +43412,7 @@ function v1(e) {
43412
43412
  id: "local",
43413
43413
  label: "Local"
43414
43414
  }
43415
- ], [s, c] = br("issues:filter", "all"), [l, u] = br("issues:search", ""), d = O(() => {
43415
+ ], [s, c] = br("issues:filter", "all"), [l, u] = br("issues:search", ""), d = k(() => {
43416
43416
  let e = l().trim().toLowerCase();
43417
43417
  return (n.data ?? []).filter((t) => {
43418
43418
  if (e && !`${t.identifier} ${t.title}`.toLowerCase().includes(e)) return !1;
@@ -43458,7 +43458,7 @@ function v1(e) {
43458
43458
  each: o,
43459
43459
  children: (e) => (() => {
43460
43460
  var t = A$();
43461
- return t.$$click = () => c(e.id), P(t, () => e.label), E(() => st(t, `h-6 shrink-0 cursor-pointer rounded-md px-2 text-[11px] font-medium transition-colors ${s() === e.id ? "bg-accent-soft text-accent" : "text-text-dim hover:bg-surface-2"}`)), t;
43461
+ return t.$$click = () => c(e.id), P(t, () => e.label), D(() => st(t, `h-6 shrink-0 cursor-pointer rounded-md px-2 text-[11px] font-medium transition-colors ${s() === e.id ? "bg-accent-soft text-accent" : "text-text-dim hover:bg-surface-2"}`)), t;
43462
43462
  })()
43463
43463
  }), null), P(m, j(jj, {
43464
43464
  class: "ml-auto h-6 w-28 text-[11px]",
@@ -43502,7 +43502,7 @@ function v1(e) {
43502
43502
  return f.getVirtualItems();
43503
43503
  },
43504
43504
  children: (t) => {
43505
- let n = O(() => d()[t.index]);
43505
+ let n = k(() => d()[t.index]);
43506
43506
  return j(M, {
43507
43507
  get when() {
43508
43508
  return n();
@@ -43519,11 +43519,11 @@ function v1(e) {
43519
43519
  get onSelect() {
43520
43520
  return e.onSelect;
43521
43521
  }
43522
- })), E((e) => dt(r, "transform", `translateY(${t.start}px)`)), r;
43522
+ })), D((e) => dt(r, "transform", `translateY(${t.start}px)`)), r;
43523
43523
  }
43524
43524
  });
43525
43525
  }
43526
- })), E((e) => dt(r, "height", `${f.getTotalSize()}px`)), n;
43526
+ })), D((e) => dt(r, "height", `${f.getTotalSize()}px`)), n;
43527
43527
  }
43528
43528
  }), null), r;
43529
43529
  })();
@@ -43657,7 +43657,7 @@ function b1(e) {
43657
43657
  try {
43658
43658
  await navigator.clipboard.writeText(YO(e)), f(!0), setTimeout(() => f(!1), 1800);
43659
43659
  } catch {}
43660
- }, m = O(() => {
43660
+ }, m = k(() => {
43661
43661
  let e = n.data?.identifier;
43662
43662
  return e ? a.data?.find((t) => t.title.startsWith(e)) : void 0;
43663
43663
  }), h = (e) => e.status === "running" ? {
@@ -43676,7 +43676,7 @@ function b1(e) {
43676
43676
  queryKey: ["grab"],
43677
43677
  queryFn: Dr,
43678
43678
  enabled: cj() === "composer"
43679
- })), [C, w] = T(!1), ee = async () => {
43679
+ })), [C, w] = T(!1), E = async () => {
43680
43680
  w(!0), y(null);
43681
43681
  try {
43682
43682
  let { block: e, failed: t } = await f$();
@@ -43686,14 +43686,14 @@ function b1(e) {
43686
43686
  } finally {
43687
43687
  w(!1);
43688
43688
  }
43689
- }, te = () => {
43689
+ }, ee = () => {
43690
43690
  if (cj() === "composer") {
43691
43691
  uj("capture");
43692
43692
  return;
43693
43693
  }
43694
43694
  x(Date.now()), uj("composer"), YZ().catch(() => uj("capture"));
43695
43695
  };
43696
- D(() => {
43696
+ O(() => {
43697
43697
  if (cj() !== "composer") return;
43698
43698
  let e = (S.data ?? []).filter((e) => e.grabbedAt > b());
43699
43699
  if (!e.length) return;
@@ -43703,15 +43703,15 @@ function b1(e) {
43703
43703
  }).join("\n");
43704
43704
  _((e) => `${e ? `${e}\n` : ""}${t}\n`), x(Math.max(...e.map((e) => e.grabbedAt)));
43705
43705
  });
43706
- let [k, A] = T(HD());
43706
+ let [te, A] = T(HD());
43707
43707
  ae(UD(A));
43708
43708
  let ne = !1;
43709
- D(() => {
43710
- k().phase === "ready" && ne && (ne = !1, ee());
43709
+ O(() => {
43710
+ te().phase === "ready" && ne && (ne = !1, E());
43711
43711
  });
43712
43712
  let re = () => {
43713
- k().phase === "recording" ? eO() : (ne = !0, $D());
43714
- }, ie = /github\.com\/[^/]+\/[^/]+\/pull\/\d+/i, oe = O(() => (n.data?.attachments ?? []).map((e) => e.url).filter((e) => ie.test(e))), se = _r(() => ({
43713
+ te().phase === "recording" ? eO() : (ne = !0, $D());
43714
+ }, ie = /github\.com\/[^/]+\/[^/]+\/pull\/\d+/i, oe = k(() => (n.data?.attachments ?? []).map((e) => e.url).filter((e) => ie.test(e))), se = _r(() => ({
43715
43715
  queryKey: ["pr-status", oe().sort().join("|")],
43716
43716
  queryFn: () => HO(oe()),
43717
43717
  refetchInterval: 3e4,
@@ -43733,7 +43733,7 @@ function b1(e) {
43733
43733
  } finally {
43734
43734
  ue(null);
43735
43735
  }
43736
- }, Se = O(() => {
43736
+ }, Se = k(() => {
43737
43737
  let e = n.data ? TO(n.data.comments) : [], t = new Set(e.map((e) => e.id));
43738
43738
  return [...(r.data ?? []).filter((e) => e.comment?.id && !t.has(e.comment.id)).map((e) => ({
43739
43739
  id: e.comment.id,
@@ -43746,14 +43746,14 @@ function b1(e) {
43746
43746
  parent: null
43747
43747
  })), ...e];
43748
43748
  }), [Ce, we] = T("comment"), Te = !1, Ee = !1;
43749
- D(() => {
43749
+ O(() => {
43750
43750
  if (Ee || !n.data || !i.data) return;
43751
43751
  Ee = !0;
43752
43752
  let e = Se();
43753
43753
  e.length ? we(`thread:${e[0].id}`) : n.data.delegate && i.data.cursorAgentId && we("new");
43754
- }), D(() => {
43754
+ }), O(() => {
43755
43755
  Te || m() && (Ce() === "comment" || Ce() === "new") && we("local");
43756
- }), D(() => {
43756
+ }), O(() => {
43757
43757
  if (Te) return;
43758
43758
  let e = Se();
43759
43759
  e.length && (Ce() === "comment" || Ce() === "new") && we(`thread:${e[0].id}`);
@@ -43779,7 +43779,7 @@ function b1(e) {
43779
43779
  onError: (e) => {
43780
43780
  y(e.message ?? "Failed to send");
43781
43781
  }
43782
- })), Oe = O(() => n.data), ke = O(() => r.data ?? []);
43782
+ })), Oe = k(() => n.data), ke = k(() => r.data ?? []);
43783
43783
  return (() => {
43784
43784
  var t = J$(), r = t.firstChild, a = r.firstChild, f = r.nextSibling, y = f.nextSibling, b = y.firstChild;
43785
43785
  return P(a, j(kj, {
@@ -43855,7 +43855,7 @@ function b1(e) {
43855
43855
  each: o,
43856
43856
  children: (t) => (() => {
43857
43857
  var n = e1();
43858
- return P(n, () => t.label), E(() => n.selected = (e().pendingModel ?? e().model ?? "") === t.id), E(() => n.value = t.id), n;
43858
+ return P(n, () => t.label), D(() => n.selected = (e().pendingModel ?? e().model ?? "") === t.id), D(() => n.value = t.id), n;
43859
43859
  })()
43860
43860
  }), j(M, {
43861
43861
  get when() {
@@ -43863,7 +43863,7 @@ function b1(e) {
43863
43863
  },
43864
43864
  get children() {
43865
43865
  var t = Y$();
43866
- return P(t, () => e().pendingModel ?? e().model), E(() => t.value = e().pendingModel ?? e().model ?? ""), t;
43866
+ return P(t, () => e().pendingModel ?? e().model), D(() => t.value = e().pendingModel ?? e().model ?? ""), t;
43867
43867
  }
43868
43868
  })];
43869
43869
  }
@@ -43935,7 +43935,7 @@ function b1(e) {
43935
43935
  }
43936
43936
  });
43937
43937
  }
43938
- }), null), E(() => st(m, `shrink-0 text-[11.5px] font-medium ${t().cls}`)), n;
43938
+ }), null), D(() => st(m, `shrink-0 text-[11.5px] font-medium ${t().cls}`)), n;
43939
43939
  })();
43940
43940
  }
43941
43941
  }), null), P(f, j(M, {
@@ -44059,7 +44059,7 @@ function b1(e) {
44059
44059
  }
44060
44060
  })];
44061
44061
  }
44062
- }), null), E((t) => {
44062
+ }), null), D((t) => {
44063
44063
  var n = e.url, i = e.title;
44064
44064
  return n !== t.e && it(r, "href", t.e = n), i !== t.t && it(r, "title", t.t = i), t;
44065
44065
  }, {
@@ -44178,7 +44178,7 @@ function b1(e) {
44178
44178
  },
44179
44179
  get children() {
44180
44180
  var e = V$();
44181
- return E(() => e.selected = Ce() === "local"), e;
44181
+ return D(() => e.selected = Ce() === "local"), e;
44182
44182
  }
44183
44183
  }),
44184
44184
  j(We, {
@@ -44190,7 +44190,7 @@ function b1(e) {
44190
44190
  return r.nextSibling, P(n, (() => {
44191
44191
  var e = $e(() => Se().length > 1);
44192
44192
  return () => e() ? ` #${t() + 1}` : "";
44193
- })(), r), P(n, () => Wj(e.createdAt), null), E(() => n.selected = Ce() === `thread:${e.id}`), E(() => n.value = `thread:${e.id}`), n;
44193
+ })(), r), P(n, () => Wj(e.createdAt), null), D(() => n.selected = Ce() === `thread:${e.id}`), D(() => n.value = `thread:${e.id}`), n;
44194
44194
  })()
44195
44195
  }),
44196
44196
  j(M, {
@@ -44199,12 +44199,12 @@ function b1(e) {
44199
44199
  },
44200
44200
  get children() {
44201
44201
  var e = H$(), t = e.firstChild.nextSibling;
44202
- return t.nextSibling, P(e, () => i.data?.cursorAgentName ?? "Cursor", t), E(() => e.selected = Ce() === "new"), e;
44202
+ return t.nextSibling, P(e, () => i.data?.cursorAgentName ?? "Cursor", t), D(() => e.selected = Ce() === "new"), e;
44203
44203
  }
44204
44204
  }),
44205
44205
  (() => {
44206
44206
  var e = U$();
44207
- return E(() => e.selected = Ce() === "comment"), e;
44207
+ return D(() => e.selected = Ce() === "comment"), e;
44208
44208
  })()
44209
44209
  ];
44210
44210
  }
@@ -44217,24 +44217,24 @@ function b1(e) {
44217
44217
  return cj() === "composer" ? "Pick mode ON — every pick appends here. Click to stop." : "Pick elements — refs append to this reply (stays on until toggled off or sent)";
44218
44218
  },
44219
44219
  "aria-label": "Pick element for reply",
44220
- onClick: te,
44220
+ onClick: ee,
44221
44221
  get children() {
44222
44222
  return W$();
44223
44223
  }
44224
44224
  }), null), P(b, j(kj, {
44225
44225
  variant: "ghost",
44226
44226
  get class() {
44227
- return `size-7 shrink-0 px-0 ${k().phase === "recording" ? "text-danger" : ""}`;
44227
+ return `size-7 shrink-0 px-0 ${te().phase === "recording" ? "text-danger" : ""}`;
44228
44228
  },
44229
44229
  get title() {
44230
- return k().phase === "recording" ? "Stop recording — the GIF auto-attaches to this reply" : "Record a GIF from this thread (auto-attaches when done)";
44230
+ return te().phase === "recording" ? "Stop recording — the GIF auto-attaches to this reply" : "Record a GIF from this thread (auto-attaches when done)";
44231
44231
  },
44232
44232
  "aria-label": "Record GIF",
44233
44233
  onClick: re,
44234
44234
  get children() {
44235
44235
  return j(M, {
44236
44236
  get when() {
44237
- return k().phase === "recording";
44237
+ return te().phase === "recording";
44238
44238
  },
44239
44239
  get fallback() {
44240
44240
  return c1();
@@ -44252,7 +44252,7 @@ function b1(e) {
44252
44252
  },
44253
44253
  title: "Attach captures — element refs, screenshots, region shots, recording GIF",
44254
44254
  "aria-label": "Attach captures",
44255
- onClick: () => void ee(),
44255
+ onClick: () => void E(),
44256
44256
  get children() {
44257
44257
  return K$();
44258
44258
  }
@@ -44273,16 +44273,16 @@ function b1(e) {
44273
44273
  })();
44274
44274
  }
44275
44275
  function x1(e) {
44276
- let t = O(() => {
44276
+ let t = k(() => {
44277
44277
  let t = e.session.status;
44278
44278
  return /complete|done/i.test(t) ? "var(--color-success)" : /await|pending|elicit/i.test(t) ? "var(--color-warn)" : "var(--color-accent)";
44279
- }), n = O(() => {
44279
+ }), n = k(() => {
44280
44280
  let t = e.session.status;
44281
44281
  return /active/i.test(t) ? "Working…" : /awaitingInput|elicit/i.test(t) ? "Needs input" : /complete/i.test(t) ? "Complete" : /error/i.test(t) ? "Error" : /pending/i.test(t) ? "Queued" : t;
44282
- }), r = O(() => e.session.activities.filter((e) => e.content?.body || e.content?.action).slice(-15)), [i, a] = T(!1), o, s = !0, c = () => {
44282
+ }), r = k(() => e.session.activities.filter((e) => e.content?.body || e.content?.action).slice(-15)), [i, a] = T(!1), o, s = !0, c = () => {
44283
44283
  o && (s = o.scrollTop + o.clientHeight >= o.scrollHeight - 40);
44284
44284
  };
44285
- return D(() => {
44285
+ return O(() => {
44286
44286
  let e = r().length;
44287
44287
  !o || !e || !s || requestAnimationFrame(() => {
44288
44288
  o && (o.scrollTop = o.scrollHeight);
@@ -44337,7 +44337,7 @@ function x1(e) {
44337
44337
  onClick: () => a((e) => !e),
44338
44338
  get children() {
44339
44339
  var e = u1();
44340
- return E((t) => dt(e, "transform", i() ? "rotate(180deg)" : "none")), e;
44340
+ return D((t) => dt(e, "transform", i() ? "rotate(180deg)" : "none")), e;
44341
44341
  }
44342
44342
  }), null), P(s, j(M, {
44343
44343
  get when() {
@@ -44368,7 +44368,7 @@ function x1(e) {
44368
44368
  var t = h1();
44369
44369
  return P(t, j(g1, { get text() {
44370
44370
  return e().content.body ?? "";
44371
- } })), E(() => st(t, `lg-md text-[11.5px] leading-relaxed break-words ${e().content.__typename === "AgentActivityErrorContent" ? "text-danger" : "text-text"}`)), t;
44371
+ } })), D(() => st(t, `lg-md text-[11.5px] leading-relaxed break-words ${e().content.__typename === "AgentActivityErrorContent" ? "text-danger" : "text-text"}`)), t;
44372
44372
  })();
44373
44373
  },
44374
44374
  get children() {
@@ -44376,7 +44376,7 @@ function x1(e) {
44376
44376
  return n.nextSibling, P(t, () => e().content.action, n), P(t, () => e().content.parameter, null), t;
44377
44377
  }
44378
44378
  })
44379
- })), E(() => e.classList.toggle("max-h-64", !i())), e;
44379
+ })), D(() => e.classList.toggle("max-h-64", !i())), e;
44380
44380
  }
44381
44381
  }), null), s;
44382
44382
  })();
@@ -44407,7 +44407,7 @@ function P1() {
44407
44407
  id: "done",
44408
44408
  label: "Done"
44409
44409
  }
44410
- ], [n, r] = br("cloud:filter", "all"), i = O(() => (e.data ?? []).filter((e) => {
44410
+ ], [n, r] = br("cloud:filter", "all"), i = k(() => (e.data ?? []).filter((e) => {
44411
44411
  switch (n()) {
44412
44412
  case "working": return /active|pending/i.test(e.status);
44413
44413
  case "input": return /awaitingInput|elicit/i.test(e.status);
@@ -44432,7 +44432,7 @@ function P1() {
44432
44432
  }, o = (e) => {
44433
44433
  let t = [...e.activities].reverse().find((e) => e.content?.body || e.content?.action);
44434
44434
  return t ? t.content.action ? `→ ${t.content.action} ${t.content.parameter ?? ""}` : t.content.body ?? "" : e.summary ?? "";
44435
- }, s = O(() => (e.data ?? []).filter((e) => /active|pending/i.test(e.status)).length), [c, l] = T(null);
44435
+ }, s = k(() => (e.data ?? []).filter((e) => /active|pending/i.test(e.status)).length), [c, l] = T(null);
44436
44436
  return j(M, {
44437
44437
  get when() {
44438
44438
  return !c();
@@ -44451,7 +44451,7 @@ function P1() {
44451
44451
  each: t,
44452
44452
  children: (e) => (() => {
44453
44453
  var t = T1();
44454
- return t.$$click = () => r(e.id), P(t, () => e.label), E(() => st(t, `h-6 shrink-0 cursor-pointer rounded-md px-2 text-[11px] font-medium transition-colors ${n() === e.id ? "bg-accent-soft text-accent" : "text-text-dim hover:bg-surface-2"}`)), t;
44454
+ return t.$$click = () => r(e.id), P(t, () => e.label), D(() => st(t, `h-6 shrink-0 cursor-pointer rounded-md px-2 text-[11px] font-medium transition-colors ${n() === e.id ? "bg-accent-soft text-accent" : "text-text-dim hover:bg-surface-2"}`)), t;
44455
44455
  })()
44456
44456
  }), null), P(h, j(kj, {
44457
44457
  class: "ml-auto size-6 px-0",
@@ -44502,7 +44502,7 @@ function P1() {
44502
44502
  get fallback() {
44503
44503
  return (() => {
44504
44504
  var t = M1();
44505
- return E((n) => dt(t, "background", a(e().status).color)), t;
44505
+ return D((n) => dt(t, "background", a(e().status).color)), t;
44506
44506
  })();
44507
44507
  },
44508
44508
  get children() {
@@ -44594,7 +44594,7 @@ function B1() {
44594
44594
  queryKey: ["my-issues"],
44595
44595
  queryFn: fO,
44596
44596
  refetchInterval: 3e4
44597
- })), r = O(() => {
44597
+ })), r = k(() => {
44598
44598
  let r = (e.data ?? []).filter((e) => /active|pending|awaitingInput|elicit/i.test(e.status)).map((e) => ({
44599
44599
  kind: "cloud",
44600
44600
  at: Date.parse(e.updatedAt),
@@ -44708,7 +44708,7 @@ function B1() {
44708
44708
  get children() {
44709
44709
  return R1();
44710
44710
  }
44711
- }), null), E(() => it(r, "title", e().kind === "cloud" ? "View the thread here" : "Open the Local tab")), t;
44711
+ }), null), D(() => it(r, "title", e().kind === "cloud" ? "View the thread here" : "Open the Local tab")), t;
44712
44712
  })()
44713
44713
  })), e;
44714
44714
  }
@@ -44787,7 +44787,7 @@ function T0() {
44787
44787
  })), v = () => {
44788
44788
  g(Date.now()), uj("local"), YZ().catch(() => uj("capture"));
44789
44789
  };
44790
- D(() => {
44790
+ O(() => {
44791
44791
  if (cj() !== "local") return;
44792
44792
  let e = (_.data ?? []).filter((e) => e.grabbedAt >= h());
44793
44793
  if (!e.length) return;
@@ -44818,27 +44818,27 @@ function T0() {
44818
44818
  })), S = vr(() => ({
44819
44819
  mutationFn: (e) => zO(e),
44820
44820
  onSuccess: l
44821
- })), C, w = !0, ee = () => {
44821
+ })), C, w = !0, E = () => {
44822
44822
  C && (w = C.scrollTop + C.clientHeight >= C.scrollHeight - 48);
44823
44823
  };
44824
- D(() => {
44824
+ O(() => {
44825
44825
  let e = s.data?.tail?.length ?? 0;
44826
44826
  r(), !(!C || !e || !w) && requestAnimationFrame(() => {
44827
44827
  C && (C.scrollTop = C.scrollHeight);
44828
44828
  });
44829
44829
  });
44830
- let [te, k] = T(null), A = async (e) => {
44830
+ let [ee, te] = T(null), A = async (e) => {
44831
44831
  try {
44832
- await navigator.clipboard.writeText(YO(e)), k(e.id), setTimeout(() => k(null), 1800);
44832
+ await navigator.clipboard.writeText(YO(e)), te(e.id), setTimeout(() => te(null), 1800);
44833
44833
  } catch {}
44834
44834
  }, ne = (e) => e === "running" ? "var(--color-accent)" : e === "done" ? "var(--color-success)" : e === "stopped" ? "var(--color-warn)" : "var(--color-danger)", re = (e) => {
44835
- let t = e.line.kind, n = O(() => S$(e.line.text));
44835
+ let t = e.line.kind, n = k(() => S$(e.line.text));
44836
44836
  return t === "user" ? (() => {
44837
44837
  var e = V1(), t = e.firstChild.nextSibling;
44838
- return E(() => t.innerHTML = n()), e;
44838
+ return D(() => t.innerHTML = n()), e;
44839
44839
  })() : t === "assistant" || t === "result" ? (() => {
44840
44840
  var e = H1(), r = e.firstChild, i = r.nextSibling;
44841
- 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;
44841
+ 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;
44842
44842
  })() : (() => {
44843
44843
  var n = U1();
44844
44844
  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;
@@ -44881,7 +44881,7 @@ function T0() {
44881
44881
  return i.nextSibling, P(e, () => t.data.active, r), P(e, () => {
44882
44882
  let e = (n.data ?? []).reduce((e, t) => e + (t.usage?.costUsd ?? 0), 0);
44883
44883
  return e > 0 ? ` · Σ $${e.toFixed(2)}` : "";
44884
- }, i), P(e, () => t.data.cwd.split("/").slice(-2).join("/"), null), E(() => it(e, "title", t.data?.cwd)), e;
44884
+ }, i), P(e, () => t.data.cwd.split("/").slice(-2).join("/"), null), D(() => it(e, "title", t.data?.cwd)), e;
44885
44885
  })()];
44886
44886
  }
44887
44887
  }), null), P(l, j(M, {
@@ -44926,7 +44926,7 @@ function T0() {
44926
44926
  get fallback() {
44927
44927
  return (() => {
44928
44928
  var t = u0();
44929
- return E((n) => dt(t, "background", ne(e().status))), t;
44929
+ return D((n) => dt(t, "background", ne(e().status))), t;
44930
44930
  })();
44931
44931
  },
44932
44932
  get children() {
@@ -45026,7 +45026,7 @@ function T0() {
45026
45026
  children: "Remove"
45027
45027
  });
45028
45028
  }
45029
- }), null), E(() => it(n, "title", e().worktree.path)), t;
45029
+ }), null), D(() => it(n, "title", e().worktree.path)), t;
45030
45030
  }
45031
45031
  }), g), P(g, j(Nj, {
45032
45032
  class: "h-7 w-auto min-w-0 flex-1 text-[11px]",
@@ -45043,7 +45043,7 @@ function T0() {
45043
45043
  each: S0,
45044
45044
  children: (t) => (() => {
45045
45045
  var n = f0();
45046
- return P(n, () => t.label), E(() => n.selected = (e().pendingModel ?? e().model ?? "") === t.id), E(() => n.value = t.id), n;
45046
+ return P(n, () => t.label), D(() => n.selected = (e().pendingModel ?? e().model ?? "") === t.id), D(() => n.value = t.id), n;
45047
45047
  })()
45048
45048
  }), j(M, {
45049
45049
  get when() {
@@ -45051,7 +45051,7 @@ function T0() {
45051
45051
  },
45052
45052
  get children() {
45053
45053
  var t = X1();
45054
- return P(t, () => e().pendingModel ?? e().model), E(() => t.value = e().pendingModel ?? e().model ?? ""), t;
45054
+ return P(t, () => e().pendingModel ?? e().model), D(() => t.value = e().pendingModel ?? e().model ?? ""), t;
45055
45055
  }
45056
45056
  })];
45057
45057
  }
@@ -45105,7 +45105,7 @@ function T0() {
45105
45105
  get children() {
45106
45106
  return j(M, {
45107
45107
  get when() {
45108
- return te() === e().id;
45108
+ return ee() === e().id;
45109
45109
  },
45110
45110
  get fallback() {
45111
45111
  return m0();
@@ -45191,7 +45191,7 @@ function T0() {
45191
45191
  })()
45192
45192
  ];
45193
45193
  }
45194
- })), E(() => it(n, "title", e.path)), t;
45194
+ })), D(() => it(n, "title", e.path)), t;
45195
45195
  })()
45196
45196
  }), null), P(e, j(We, {
45197
45197
  get each() {
@@ -45212,7 +45212,7 @@ function T0() {
45212
45212
  get children() {
45213
45213
  return ["PR · ", $e(() => e.state.toLowerCase())];
45214
45214
  }
45215
- }), n), P(n, () => e.title), E((t) => {
45215
+ }), n), P(n, () => e.title), D((t) => {
45216
45216
  var r = e.url, i = e.title;
45217
45217
  return r !== t.e && it(n, "href", t.e = r), i !== t.t && it(n, "title", t.t = i), t;
45218
45218
  }, {
@@ -45225,7 +45225,7 @@ function T0() {
45225
45225
  }),
45226
45226
  (() => {
45227
45227
  var e = r0();
45228
- return e.addEventListener("scroll", ee), pt((e) => {
45228
+ return e.addEventListener("scroll", E), pt((e) => {
45229
45229
  C = e, w = !0;
45230
45230
  }, e), P(e, j(M, {
45231
45231
  get when() {
@@ -45334,7 +45334,7 @@ function B0(e) {
45334
45334
  queryKey: ["my-issues"],
45335
45335
  queryFn: fO,
45336
45336
  refetchInterval: 15e3
45337
- })), n = O(() => (t.data ?? []).flatMap((e) => (e.attachments ?? []).filter((e) => z0.test(e.url)).map((t) => ({
45337
+ })), n = k(() => (t.data ?? []).flatMap((e) => (e.attachments ?? []).filter((e) => z0.test(e.url)).map((t) => ({
45338
45338
  issue: e,
45339
45339
  attachment: t
45340
45340
  })))), r = _r(() => ({
@@ -45348,7 +45348,7 @@ function B0(e) {
45348
45348
  refetchInterval: 3e4,
45349
45349
  retry: 0,
45350
45350
  enabled: n().length > 0
45351
- })), [a, o] = T(/* @__PURE__ */ new Set()), s = (e) => a().has(e.attachment.url) ? "MERGED" : i.data?.statuses[e.attachment.url], c = (e) => !!r.data?.some((t) => t.title.startsWith(e.issue.identifier)), [l, u] = T("all"), [d, f] = T(""), p = O(() => {
45351
+ })), [a, o] = T(/* @__PURE__ */ new Set()), s = (e) => a().has(e.attachment.url) ? "MERGED" : i.data?.statuses[e.attachment.url], c = (e) => !!r.data?.some((t) => t.title.startsWith(e.issue.identifier)), [l, u] = T("all"), [d, f] = T(""), p = k(() => {
45352
45352
  let e = d().trim().toLowerCase();
45353
45353
  return n().filter((t) => {
45354
45354
  let n = t.issue.state.type, r = s(t);
@@ -45370,14 +45370,14 @@ function B0(e) {
45370
45370
  } finally {
45371
45371
  _(null);
45372
45372
  }
45373
- }, [C, w] = T(null), [ee, D] = T(null), te = async (e) => {
45374
- D(e);
45373
+ }, [C, w] = T(null), [E, O] = T(null), ee = async (e) => {
45374
+ O(e);
45375
45375
  try {
45376
45376
  await qO(e), o((t) => new Set(t).add(e));
45377
45377
  } catch {} finally {
45378
- D(null);
45378
+ O(null);
45379
45379
  }
45380
- }, k = async (e) => {
45380
+ }, te = async (e) => {
45381
45381
  try {
45382
45382
  await navigator.clipboard.writeText(e.attachment.url), w(e.attachment.id), setTimeout(() => w(null), 1500);
45383
45383
  } catch {}
@@ -45418,7 +45418,7 @@ function B0(e) {
45418
45418
  ],
45419
45419
  children: (e) => (() => {
45420
45420
  var t = A0();
45421
- return t.$$click = () => u(e.id), P(t, () => e.label), E(() => st(t, `rounded-[5px] px-2 py-0.5 text-[11px] font-medium transition-colors ${l() === e.id ? "bg-surface-3 text-text" : "text-text-dim hover:text-text cursor-pointer"}`)), t;
45421
+ return t.$$click = () => u(e.id), P(t, () => e.label), D(() => st(t, `rounded-[5px] px-2 py-0.5 text-[11px] font-medium transition-colors ${l() === e.id ? "bg-surface-3 text-text" : "text-text-dim hover:text-text cursor-pointer"}`)), t;
45422
45422
  })()
45423
45423
  })), P(m, j(jj, {
45424
45424
  class: "h-6 min-w-0 flex-1 text-[11px]",
@@ -45548,7 +45548,7 @@ function B0(e) {
45548
45548
  return { hidden: !!s(t) && s(t) !== "OPEN" };
45549
45549
  },
45550
45550
  get loading() {
45551
- return ee() === t.attachment.url;
45551
+ return E() === t.attachment.url;
45552
45552
  },
45553
45553
  get disabled() {
45554
45554
  return a().has(t.attachment.url);
@@ -45557,7 +45557,7 @@ function B0(e) {
45557
45557
  return a().has(t.attachment.url) ? "Merged" : "Squash-merge this PR (bridge gh)";
45558
45558
  },
45559
45559
  "aria-label": "Merge PR",
45560
- onClick: () => void te(t.attachment.url),
45560
+ onClick: () => void ee(t.attachment.url),
45561
45561
  get children() {
45562
45562
  return j(M, {
45563
45563
  get when() {
@@ -45587,7 +45587,7 @@ function B0(e) {
45587
45587
  class: "size-7 px-0",
45588
45588
  title: "Copy PR URL",
45589
45589
  "aria-label": "Copy PR URL",
45590
- onClick: () => void k(t),
45590
+ onClick: () => void te(t),
45591
45591
  get children() {
45592
45592
  return j(M, {
45593
45593
  get when() {
@@ -45615,7 +45615,7 @@ function B0(e) {
45615
45615
  }
45616
45616
  });
45617
45617
  }
45618
- }), null), E((e) => {
45618
+ }), null), D((e) => {
45619
45619
  var n = t.attachment.url, i = t.attachment.title;
45620
45620
  return n !== e.e && it(r, "href", e.e = n), i !== e.t && it(r, "title", e.t = i), e;
45621
45621
  }, {
@@ -45630,8 +45630,511 @@ function B0(e) {
45630
45630
  }
45631
45631
  rt(["click"]);
45632
45632
  //#endregion
45633
- //#region src/lib/projectConfig.ts
45633
+ //#region src/lib/genome.ts
45634
45634
  var V0 = [
45635
+ "display",
45636
+ "align-items",
45637
+ "justify-content",
45638
+ "gap",
45639
+ "padding",
45640
+ "margin",
45641
+ "width",
45642
+ "height",
45643
+ "font-size",
45644
+ "font-weight",
45645
+ "line-height",
45646
+ "letter-spacing",
45647
+ "color",
45648
+ "background-color",
45649
+ "border-radius",
45650
+ "border-width",
45651
+ "border-color",
45652
+ "box-shadow",
45653
+ "opacity",
45654
+ "transform",
45655
+ "transition-property",
45656
+ "transition-duration"
45657
+ ], H0 = /* @__PURE__ */ new Set([
45658
+ "color",
45659
+ "background-color",
45660
+ "border-color"
45661
+ ]), U0 = {
45662
+ margin: /* @__PURE__ */ new Set(["0px"]),
45663
+ padding: /* @__PURE__ */ new Set(["0px"]),
45664
+ gap: /* @__PURE__ */ new Set(["normal", "0px"]),
45665
+ "box-shadow": /* @__PURE__ */ new Set(["none"]),
45666
+ transform: /* @__PURE__ */ new Set(["none"]),
45667
+ "border-width": /* @__PURE__ */ new Set(["0px"]),
45668
+ "border-radius": /* @__PURE__ */ new Set(["0px"]),
45669
+ "letter-spacing": /* @__PURE__ */ new Set(["normal"]),
45670
+ opacity: /* @__PURE__ */ new Set(["1"]),
45671
+ "transition-property": /* @__PURE__ */ new Set(["all", "none"]),
45672
+ "transition-duration": /* @__PURE__ */ new Set(["0s"]),
45673
+ width: /* @__PURE__ */ new Set(["auto"]),
45674
+ height: /* @__PURE__ */ new Set(["auto"])
45675
+ }, W0 = null;
45676
+ function G0(e) {
45677
+ try {
45678
+ return W0 || (W0 = document.createElement("span"), W0.style.display = "none", document.body.appendChild(W0)), W0.style.color = "", W0.style.color = e, W0.style.color ? getComputedStyle(W0).color : null;
45679
+ } catch {
45680
+ return null;
45681
+ }
45682
+ }
45683
+ var K0 = null;
45684
+ function q0() {
45685
+ if (K0) return K0;
45686
+ let e = /* @__PURE__ */ new Map(), t = getComputedStyle(document.documentElement), n = /* @__PURE__ */ new Set();
45687
+ for (let r of Array.from(document.styleSheets)) {
45688
+ let i;
45689
+ try {
45690
+ i = r.cssRules;
45691
+ } catch {
45692
+ continue;
45693
+ }
45694
+ for (let r of Array.from(i)) {
45695
+ let i = r.style;
45696
+ if (i) for (let r = 0; r < i.length; r++) {
45697
+ let a = i.item(r);
45698
+ if (!a.startsWith("--") || n.has(a)) continue;
45699
+ n.add(a);
45700
+ let o = t.getPropertyValue(a).trim() || i.getPropertyValue(a).trim();
45701
+ if (!o || o.length > 80) continue;
45702
+ let s = G0(o);
45703
+ s && !e.has(s) && e.set(s, a);
45704
+ }
45705
+ }
45706
+ }
45707
+ return K0 = e, e;
45708
+ }
45709
+ function J0(e) {
45710
+ let t = e.getBoundingClientRect();
45711
+ if (t.width < 2 && t.height < 2) return !1;
45712
+ let n = getComputedStyle(e);
45713
+ return n.display !== "none" && n.visibility !== "hidden";
45714
+ }
45715
+ function Y0(e) {
45716
+ let t = [], n = e.getAttribute("role");
45717
+ n && t.push(n);
45718
+ for (let n of [
45719
+ "data-state",
45720
+ "data-highlighted",
45721
+ "aria-expanded",
45722
+ "aria-selected",
45723
+ "data-active"
45724
+ ]) {
45725
+ let r = e.getAttribute(n);
45726
+ r != null && t.push(`${n.replace(/^(data|aria)-/, "")}=${r || "true"}`);
45727
+ }
45728
+ return t.join(" ");
45729
+ }
45730
+ async function X0() {
45731
+ try {
45732
+ return (await Promise.resolve().then(() => (RZ(), AZ))).getGlobalApi()?.getDisplayName ?? null;
45733
+ } catch {
45734
+ return null;
45735
+ }
45736
+ }
45737
+ function Z0(e, t) {
45738
+ let n = null;
45739
+ try {
45740
+ n = t?.(e) ?? null;
45741
+ } catch {}
45742
+ let r = Y0(e), i = n || e.tagName.toLowerCase();
45743
+ return r ? `${i} [${r}]` : i;
45744
+ }
45745
+ function Q0(e, t) {
45746
+ let n = getComputedStyle(e), r = {}, i = {};
45747
+ for (let e of V0) {
45748
+ let a = n.getPropertyValue(e).trim();
45749
+ if (!(!a || U0[e]?.has(a))) if (H0.has(e)) {
45750
+ let n = G0(a);
45751
+ if (n === "rgba(0, 0, 0, 0)") continue;
45752
+ let o = n ? t.get(n) : void 0;
45753
+ o && (i[e] = o), r[e] = a;
45754
+ } else r[e] = a;
45755
+ }
45756
+ return {
45757
+ styles: r,
45758
+ tok: i
45759
+ };
45760
+ }
45761
+ var $0 = 40;
45762
+ async function e2(e) {
45763
+ let t = q0(), n = await X0(), r = [], i = /* @__PURE__ */ new Map(), a = (e) => {
45764
+ if (r.length >= $0 || !J0(e)) return;
45765
+ let o = typeof e.className == "string" ? e.className : "", s = `${e.tagName}|${o}`, c = i.get(s);
45766
+ if (c) c.count += 1;
45767
+ else {
45768
+ let { styles: a, tok: c } = Q0(e, t), l = {
45769
+ label: Z0(e, n),
45770
+ count: 1,
45771
+ classes: o,
45772
+ styles: a,
45773
+ tokens: c
45774
+ };
45775
+ i.set(s, l), r.push(l);
45776
+ }
45777
+ for (let t of Array.from(e.children)) a(t);
45778
+ };
45779
+ return a(e), {
45780
+ title: r[0]?.label ?? e.tagName.toLowerCase(),
45781
+ pageUrl: location.href,
45782
+ extractedAt: Date.now(),
45783
+ nodes: r,
45784
+ states: []
45785
+ };
45786
+ }
45787
+ async function t2(e, t, n) {
45788
+ let r = q0(), i = await X0(), a = [], o = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map(), c = (e) => Q0(e, r).styles, l = (e) => {
45789
+ if (!(s.size >= 120)) {
45790
+ s.set(e, c(e));
45791
+ for (let t of Array.from(e.children)) l(t);
45792
+ }
45793
+ };
45794
+ l(e);
45795
+ let u = (e, t) => {
45796
+ let n = s.get(e);
45797
+ if (!n) return;
45798
+ let r = c(e), l = {};
45799
+ for (let e of /* @__PURE__ */ new Set([...Object.keys(n), ...Object.keys(r)])) {
45800
+ let t = n[e] ?? "(unset)", i = r[e] ?? "(unset)";
45801
+ t !== i && (l[e] = {
45802
+ from: t,
45803
+ to: i
45804
+ });
45805
+ }
45806
+ if (Object.keys(l).length === 0) return;
45807
+ let u = Z0(e, i), d = `${t}|${u}|${Object.keys(l).join(",")}`;
45808
+ o.has(d) || (o.add(d), a.push({
45809
+ trigger: t,
45810
+ label: u,
45811
+ changed: l
45812
+ }));
45813
+ }, d = (e) => {
45814
+ let t = e.target;
45815
+ t instanceof Element && s.has(t) && setTimeout(() => u(t, "hover"), 50);
45816
+ }, f = (e) => {
45817
+ let t = e.target;
45818
+ t instanceof Element && s.has(t) && setTimeout(() => u(t, "focus"), 50);
45819
+ };
45820
+ e.addEventListener("pointerover", d, !0), e.addEventListener("focusin", f, !0);
45821
+ let p = new MutationObserver((e) => {
45822
+ for (let t of e) {
45823
+ if (t.type !== "attributes" || !(t.target instanceof Element)) continue;
45824
+ let e = t.target, n = t.attributeName ?? "", r = e.getAttribute(n) ?? "";
45825
+ setTimeout(() => u(e, `attr:${n}=${r || "true"}`), 50);
45826
+ }
45827
+ });
45828
+ p.observe(e, {
45829
+ subtree: !0,
45830
+ attributes: !0,
45831
+ attributeFilter: [
45832
+ "class",
45833
+ "data-state",
45834
+ "data-highlighted",
45835
+ "aria-expanded",
45836
+ "aria-selected",
45837
+ "open"
45838
+ ]
45839
+ });
45840
+ let m = new MutationObserver((t) => {
45841
+ for (let n of t) for (let t of Array.from(n.addedNodes)) !(t instanceof Element) || e.contains(t) || t.id === "linear-grab-root" || t.closest?.("#linear-grab-root") || setTimeout(() => {
45842
+ if (!t.isConnected || !J0(t)) return;
45843
+ let { styles: e } = Q0(t, r);
45844
+ if (Object.keys(e).length === 0) return;
45845
+ let n = Z0(t, i), s = `appeared|${n}`;
45846
+ if (o.has(s)) return;
45847
+ o.add(s);
45848
+ let c = {};
45849
+ for (let [t, n] of Object.entries(e)) c[t] = {
45850
+ from: "(absent)",
45851
+ to: n
45852
+ };
45853
+ a.push({
45854
+ trigger: "appeared (portal/open)",
45855
+ label: n,
45856
+ changed: c
45857
+ });
45858
+ }, 50);
45859
+ });
45860
+ m.observe(document.body, {
45861
+ childList: !0,
45862
+ subtree: !1
45863
+ });
45864
+ let h = setInterval(() => {
45865
+ let e = t - (Date.now() - g);
45866
+ n?.(Math.max(0, e));
45867
+ }, 250), g = Date.now();
45868
+ return await new Promise((e) => setTimeout(e, t)), clearInterval(h), e.removeEventListener("pointerover", d, !0), e.removeEventListener("focusin", f, !0), p.disconnect(), m.disconnect(), a;
45869
+ }
45870
+ function n2(e) {
45871
+ let t = [
45872
+ `# Design genome: ${e.title}`,
45873
+ `Extracted from ${e.pageUrl}`,
45874
+ "",
45875
+ "## Structure"
45876
+ ];
45877
+ for (let n of e.nodes) {
45878
+ t.push(`### ${n.label}${n.count > 1 ? ` ×${n.count}` : ""}`), n.classes && t.push(`classes: \`${n.classes}\``);
45879
+ let e = Object.entries(n.styles).map(([e, t]) => {
45880
+ let r = n.tokens[e];
45881
+ return `${e}: ${t}${r ? ` ← var(${r})` : ""}`;
45882
+ });
45883
+ e.length && t.push("```", ...e, "```");
45884
+ }
45885
+ if (e.states.length) {
45886
+ t.push("", "## Interaction states");
45887
+ for (let n of e.states) t.push(`### ${n.label} — ${n.trigger}`), t.push("```", ...Object.entries(n.changed).map(([e, t]) => `${e}: ${t.from} → ${t.to}`), "```");
45888
+ }
45889
+ return t.join("\n");
45890
+ }
45891
+ function r2() {
45892
+ return new Promise((e) => {
45893
+ let t = document.createElement("div");
45894
+ t.style.cssText = "position:fixed;z-index:2147483647;pointer-events:none;border:1.5px solid #5e6ad2;border-radius:4px;background:rgba(94,106,210,0.08);display:none;", document.body.appendChild(t);
45895
+ let n = null, r = (e) => {
45896
+ let t = document.elementFromPoint(e.clientX, e.clientY);
45897
+ return !t || t.closest("#linear-grab-root") ? null : t;
45898
+ }, i = (e) => {
45899
+ let i = r(e);
45900
+ if (n = i, !i) {
45901
+ t.style.display = "none";
45902
+ return;
45903
+ }
45904
+ let a = i.getBoundingClientRect();
45905
+ t.style.display = "block", t.style.left = `${a.left - 2}px`, t.style.top = `${a.top - 2}px`, t.style.width = `${a.width + 4}px`, t.style.height = `${a.height + 4}px`;
45906
+ }, a = (n) => {
45907
+ t.remove(), window.removeEventListener("mousemove", i, !0), window.removeEventListener("click", o, !0), window.removeEventListener("keydown", s, !0), e(n);
45908
+ }, o = (e) => {
45909
+ e.preventDefault(), e.stopPropagation(), a(n);
45910
+ }, s = (e) => {
45911
+ e.key === "Escape" && (e.stopPropagation(), a(null));
45912
+ };
45913
+ window.addEventListener("mousemove", i, !0), window.addEventListener("click", o, !0), window.addEventListener("keydown", s, !0);
45914
+ });
45915
+ }
45916
+ //#endregion
45917
+ //#region src/panel/views/DesignView.tsx
45918
+ var i2 = /*#__PURE__*/ N("<span class=\"inline-block min-w-[7ch] text-center\">Extract"), a2 = /*#__PURE__*/ N("<p class=\"text-warn px-1 text-[11px] font-medium\">Recording interactions — hover / open the component now… <span class=tabular-nums>s"), o2 = /*#__PURE__*/ N("<div class=\"relative flex flex-col gap-2 pl-4\"><div class=\"bg-border absolute top-1 bottom-1 left-[5px] w-px\"aria-hidden>"), s2 = /*#__PURE__*/ N("<div class=\"flex h-full flex-col gap-3 overflow-y-auto pt-3 pb-4 pr-3 pl-2\"><div class=\"flex items-center justify-between gap-2 px-1\"><div class=min-w-0><p class=\"text-text text-[12.5px] font-semibold\">Design genomes</p><p class=\"text-text-faint text-[10.5px] leading-snug\">Point at a component → get its structure, tokens and interaction states as a spec you can hand to an agent."), c2 = /*#__PURE__*/ N("<p class=\"text-text mt-1 text-[11px] font-semibold\">Interaction states"), l2 = /*#__PURE__*/ N("<span class=\"inline-block min-w-[8ch] text-center\">"), u2 = /*#__PURE__*/ N("<div class=\"border-border flex flex-col gap-2 border-t px-2.5 py-2\"><p class=\"text-text-faint truncate text-[10px]\"></p><div class=\"flex max-h-64 flex-col gap-2 overflow-y-auto pr-2\"></div><div class=\"flex items-center gap-1.5\">"), d2 = /*#__PURE__*/ N("<div class=relative><span class=\"border-border bg-surface absolute top-3 -left-[13.5px] size-[9px] rounded-full border\"aria-hidden></span><div class=\"bg-surface border-border flex flex-col rounded-lg border\"><button class=\"flex w-full cursor-pointer items-center gap-2 px-2.5 py-2 text-left\"><span class=\"text-accent min-w-0 truncate font-mono text-[12px]\"></span><span class=\"text-text-faint ml-auto shrink-0 text-[10.5px] tabular-nums\"> roles<!> · </span><svg width=10 height=10 viewBox=\"0 0 16 16\"fill=none stroke=currentColor stroke-width=1.5 class=\"text-text-faint shrink-0 transition-transform\"aria-hidden><path d=\"m4 6 4 4 4-4\">"), f2 = /*#__PURE__*/ N("<span class=text-text-faint> ×"), p2 = /*#__PURE__*/ N("<div class=\"flex flex-col gap-0.5\"><p class=\"text-text text-[11px] font-medium\">"), m2 = /*#__PURE__*/ N("<span class=text-accent> ← var(<!>)"), h2 = /*#__PURE__*/ N("<p class=\"text-text-dim font-mono text-[10px] leading-snug break-all\">: "), g2 = /*#__PURE__*/ N("<div class=\"flex flex-col gap-0.5\"><p class=\"text-warn text-[10.5px] font-medium\"> — "), _2 = /*#__PURE__*/ N("<p class=\"text-text-dim font-mono text-[10px] leading-snug break-all\">: <!> → "), v2 = "linear-grab:genomes:v1", y2 = 30;
45919
+ function b2() {
45920
+ try {
45921
+ return JSON.parse(localStorage.getItem(v2) ?? "[]");
45922
+ } catch {
45923
+ return [];
45924
+ }
45925
+ }
45926
+ function x2(e) {
45927
+ try {
45928
+ localStorage.setItem(v2, JSON.stringify(e.slice(0, y2)));
45929
+ } catch {}
45930
+ }
45931
+ var S2 = /* @__PURE__ */ new Map();
45932
+ function C2() {
45933
+ let [e, t] = T(b2()), [n, r] = T(null), [i, a] = T(null), [o, s] = T(null), [c, l] = T(null), [u, d] = T(null), f = (e) => {
45934
+ t(e), x2(e);
45935
+ }, p = async () => {
45936
+ l(null), a("extract"), window.dispatchEvent(new CustomEvent(BZ));
45937
+ try {
45938
+ let t = await r2();
45939
+ if (!t) return;
45940
+ let n = await e2(t), i = Date.now();
45941
+ S2.set(i, new WeakRef(t)), f([{
45942
+ id: i,
45943
+ genome: n
45944
+ }, ...e()]), r(i);
45945
+ } catch (e) {
45946
+ l(e instanceof Error ? e.message : String(e));
45947
+ } finally {
45948
+ a(null), window.dispatchEvent(new CustomEvent(VZ));
45949
+ }
45950
+ }, m = async (t) => {
45951
+ l(null), a(t.id), window.dispatchEvent(new CustomEvent(BZ));
45952
+ try {
45953
+ let n = S2.get(t.id)?.deref() ?? null;
45954
+ if (!n || !n.isConnected) {
45955
+ if (n = await r2(), !n) return;
45956
+ S2.set(t.id, new WeakRef(n));
45957
+ }
45958
+ let r = await t2(n, 8e3, (e) => s(Math.ceil(e / 1e3)));
45959
+ r.length === 0 && l("No state changes captured — hover/open the component while the 8s window runs."), f(e().map((e) => e.id === t.id ? {
45960
+ ...e,
45961
+ genome: {
45962
+ ...e.genome,
45963
+ states: [...e.genome.states, ...r]
45964
+ }
45965
+ } : e));
45966
+ } catch (e) {
45967
+ l(e instanceof Error ? e.message : String(e));
45968
+ } finally {
45969
+ a(null), s(null), window.dispatchEvent(new CustomEvent(VZ));
45970
+ }
45971
+ }, h = async (e) => {
45972
+ try {
45973
+ await navigator.clipboard.writeText(n2(e.genome)), d(e.id), setTimeout(() => d(null), 1600);
45974
+ } catch {
45975
+ l("Clipboard was blocked — click Copy again.");
45976
+ }
45977
+ }, g = (t) => {
45978
+ S2.delete(t), f(e().filter((e) => e.id !== t));
45979
+ };
45980
+ return (() => {
45981
+ var t = s2(), a = t.firstChild;
45982
+ return a.firstChild, P(a, j(kj, {
45983
+ variant: "primary",
45984
+ class: "h-7 shrink-0 px-2.5 text-[11.5px]",
45985
+ get loading() {
45986
+ return i() === "extract";
45987
+ },
45988
+ onClick: () => void p(),
45989
+ get children() {
45990
+ return i2();
45991
+ }
45992
+ }), null), P(t, j(M, {
45993
+ get when() {
45994
+ return o() !== null;
45995
+ },
45996
+ get children() {
45997
+ var e = a2(), t = e.firstChild.nextSibling, n = t.firstChild;
45998
+ return P(t, o, n), e;
45999
+ }
46000
+ }), null), P(t, j(M, {
46001
+ get when() {
46002
+ return c();
46003
+ },
46004
+ get children() {
46005
+ return j(Hj, { get message() {
46006
+ return c();
46007
+ } });
46008
+ }
46009
+ }), null), P(t, j(M, {
46010
+ get when() {
46011
+ return e().length > 0;
46012
+ },
46013
+ get fallback() {
46014
+ return j(Vj, {
46015
+ title: "No genomes yet",
46016
+ children: "Click Extract and pick any component on the page — a dropdown, a card, a sidebar row. Then \"Capture states\" while you hover/open it to record the styles that only exist during interaction."
46017
+ });
46018
+ },
46019
+ get children() {
46020
+ var t = o2();
46021
+ return t.firstChild, P(t, j(We, {
46022
+ get each() {
46023
+ return e();
46024
+ },
46025
+ children: (e) => {
46026
+ let t = () => n() === e.id;
46027
+ return (() => {
46028
+ var n = d2(), a = n.firstChild, o = a.nextSibling, s = o.firstChild, c = s.firstChild, l = c.nextSibling, d = l.firstChild, f = d.nextSibling;
46029
+ f.nextSibling;
46030
+ var p = l.nextSibling;
46031
+ return s.$$click = () => r(t() ? null : e.id), P(c, () => e.genome.title), P(l, () => e.genome.nodes.length, d), P(l, (() => {
46032
+ var t = $e(() => !!e.genome.states.length);
46033
+ return () => t() ? ` · ${e.genome.states.length} states` : "";
46034
+ })(), f), P(l, () => Wj(e.genome.extractedAt), null), P(o, j(M, {
46035
+ get when() {
46036
+ return t();
46037
+ },
46038
+ get children() {
46039
+ var t = u2(), n = t.firstChild, r = n.nextSibling, a = r.nextSibling;
46040
+ return P(n, () => e.genome.pageUrl), P(r, j(We, {
46041
+ get each() {
46042
+ return e.genome.nodes;
46043
+ },
46044
+ children: (e) => (() => {
46045
+ var t = p2(), n = t.firstChild;
46046
+ return P(n, () => e.label, null), P(n, j(M, {
46047
+ get when() {
46048
+ return e.count > 1;
46049
+ },
46050
+ get children() {
46051
+ var t = f2();
46052
+ return t.firstChild, P(t, () => e.count, null), t;
46053
+ }
46054
+ }), null), P(t, j(We, {
46055
+ get each() {
46056
+ return Object.entries(e.styles);
46057
+ },
46058
+ children: ([t, n]) => (() => {
46059
+ var r = h2(), i = r.firstChild;
46060
+ return P(r, t, i), P(r, n, null), P(r, j(M, {
46061
+ get when() {
46062
+ return e.tokens[t];
46063
+ },
46064
+ get children() {
46065
+ var n = m2(), r = n.firstChild.nextSibling;
46066
+ return r.nextSibling, P(n, () => e.tokens[t], r), n;
46067
+ }
46068
+ }), null), r;
46069
+ })()
46070
+ }), null), t;
46071
+ })()
46072
+ }), null), P(r, j(M, {
46073
+ get when() {
46074
+ return e.genome.states.length > 0;
46075
+ },
46076
+ get children() {
46077
+ return [c2(), j(We, {
46078
+ get each() {
46079
+ return e.genome.states;
46080
+ },
46081
+ children: (e) => (() => {
46082
+ var t = g2(), n = t.firstChild, r = n.firstChild;
46083
+ return P(n, () => e.label, r), P(n, () => e.trigger, null), P(t, j(We, {
46084
+ get each() {
46085
+ return Object.entries(e.changed);
46086
+ },
46087
+ children: ([e, t]) => (() => {
46088
+ var n = _2(), r = n.firstChild, i = r.nextSibling;
46089
+ return i.nextSibling, P(n, e, r), P(n, () => t.from, i), P(n, () => t.to, null), n;
46090
+ })()
46091
+ }), null), t;
46092
+ })()
46093
+ })];
46094
+ }
46095
+ }), null), P(a, j(kj, {
46096
+ class: "h-6 px-2 text-[11px]",
46097
+ variant: "ghost",
46098
+ get loading() {
46099
+ return i() === e.id;
46100
+ },
46101
+ title: "Record hover/focus/open styles for 8 seconds while you interact",
46102
+ onClick: () => void m(e),
46103
+ children: "Capture states"
46104
+ }), null), P(a, j(kj, {
46105
+ class: "h-6 px-2 text-[11px]",
46106
+ variant: "ghost",
46107
+ title: "Copy the genome as a markdown spec — paste to an agent or issue",
46108
+ onClick: () => void h(e),
46109
+ get children() {
46110
+ var t = l2();
46111
+ return P(t, () => u() === e.id ? "Copied ✓" : "Copy spec"), t;
46112
+ }
46113
+ }), null), P(a, j(kj, {
46114
+ class: "text-danger ml-auto h-6 px-2 text-[11px]",
46115
+ variant: "ghost",
46116
+ onClick: () => g(e.id),
46117
+ children: "Delete"
46118
+ }), null), t;
46119
+ }
46120
+ }), null), D((e) => {
46121
+ var n = { "bg-accent border-accent": t() }, r = !!t();
46122
+ return e.e = lt(a, n, e.e), r !== e.t && p.classList.toggle("rotate-180", e.t = r), e;
46123
+ }, {
46124
+ e: void 0,
46125
+ t: void 0
46126
+ }), n;
46127
+ })();
46128
+ }
46129
+ }), null), t;
46130
+ }
46131
+ }), null), t;
46132
+ })();
46133
+ }
46134
+ rt(["click"]);
46135
+ //#endregion
46136
+ //#region src/lib/projectConfig.ts
46137
+ var w2 = [
45635
46138
  "defaultTeamId",
45636
46139
  "defaultProjectId",
45637
46140
  "defaultLabelIds",
@@ -45646,29 +46149,29 @@ var V0 = [
45646
46149
  "issueTemplate",
45647
46150
  "testUsername"
45648
46151
  ];
45649
- function H0(e) {
46152
+ function T2(e) {
45650
46153
  let t = {};
45651
- for (let n of V0) {
46154
+ for (let n of w2) {
45652
46155
  let r = e[n];
45653
46156
  r !== void 0 && r !== "" && !(Array.isArray(r) && r.length === 0) && (t[n] = r);
45654
46157
  }
45655
46158
  return t;
45656
46159
  }
45657
- function U0(e, t) {
46160
+ function E2(e, t) {
45658
46161
  let n = {};
45659
- for (let r of V0) e[r] === void 0 && t[r] !== void 0 && (n[r] = t[r]);
46162
+ for (let r of w2) e[r] === void 0 && t[r] !== void 0 && (n[r] = t[r]);
45660
46163
  return Object.keys(n).length ? n : null;
45661
46164
  }
45662
46165
  //#endregion
45663
46166
  //#region src/lib/linear/auth.ts
45664
46167
  Br();
45665
- function W0(e) {
46168
+ function D2(e) {
45666
46169
  let t = "";
45667
46170
  for (let n of e) t += String.fromCharCode(n);
45668
46171
  return btoa(t).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
45669
46172
  }
45670
- async function G0(e) {
45671
- let t = W0(crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(32))), n = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(t)), r = W0(new Uint8Array(n)), i = W0(crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16))), a = chrome.identity.getRedirectURL(), o = new URL("https://linear.app/oauth/authorize");
46173
+ async function O2(e) {
46174
+ let t = D2(crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(32))), n = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(t)), r = D2(new Uint8Array(n)), i = D2(crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16))), a = chrome.identity.getRedirectURL(), o = new URL("https://linear.app/oauth/authorize");
45672
46175
  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");
45673
46176
  let s = await chrome.identity.launchWebAuthFlow({
45674
46177
  url: o.toString(),
@@ -45696,24 +46199,24 @@ async function G0(e) {
45696
46199
  linearOauthClientId: e
45697
46200
  });
45698
46201
  }
45699
- async function K0() {
46202
+ async function k2() {
45700
46203
  await Er({
45701
46204
  linearAccessToken: void 0,
45702
46205
  linearApiKey: void 0
45703
46206
  });
45704
46207
  }
45705
46208
  Br(), Sr(), Fx(), gD();
45706
- var q0 = /*#__PURE__*/ N("<div class=\"bg-surface-2 border-border flex rounded-md border p-0.5\">"), J0 = /*#__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."), Y0 = /*#__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"), X0 = /*#__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)."), Z0 = /*#__PURE__*/ N("<span class=text-text>Connected as <span class=font-medium></span> · <span class=text-text-dim>"), Q0 = /*#__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]\">"), $0 = /*#__PURE__*/ N("<option value>Select a team…"), e2 = /*#__PURE__*/ N("<option value>No project"), t2 = /*#__PURE__*/ N("<div class=\"flex flex-wrap gap-1\">"), n2 = /*#__PURE__*/ N("<label class=\"flex items-start gap-2\"><input type=checkbox class=\"accent-accent mt-0.5\"><span class=\"flex flex-col gap-0.5\"><span class=text-[12px]>Let agents close out Linear themselves</span><span class=\"text-text-faint text-[10.5px] leading-snug\">Embeds your Linear API key + raw GraphQL closeout recipes in every issue's Agent instructions — cloud agent VMs have no authenticated Linear MCP, so without this they can't comment, attach media, or move the issue. The key is visible to anyone who can read the issue."), r2 = /*#__PURE__*/ N("<p class=\"text-text-dim text-[11px]\">No agents found — install the Cursor integration in Linear first."), i2 = /*#__PURE__*/ N("<span class=\"text-text-faint text-[10.5px] leading-snug\">Empty = the default above (computer-use testing, video demo, PR + review babysitting)."), a2 = /*#__PURE__*/ N("<div class=\"flex flex-col gap-1.5\">"), o2 = /*#__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."), s2 = /*#__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."), c2 = /*#__PURE__*/ N("<p class=\"text-text-faint text-[10.5px] leading-snug\">A committed <code>.lineargrab.json</code> at the repo root (where the bridge runs) shares team/project/labels, skills, staging branch, and workflow defaults with every machine and teammate — it seeds any setting you haven't set locally. Secrets never belong in it."), l2 = /*#__PURE__*/ N("<span class=\"inline-block min-w-[10ch] text-center\">"), u2 = /*#__PURE__*/ N("<div class=\"flex items-center gap-2\">"), d2 = /*#__PURE__*/ N("<option value>Select a channel…"), f2 = /*#__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"), p2 = /*#__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."), m2 = /*#__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"), h2 = /*#__PURE__*/ N("<p class=\"text-text-dim text-[11px]\">"), g2 = /*#__PURE__*/ N("<div class=min-h-[2lh]>"), _2 = /*#__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."), v2 = /*#__PURE__*/ N("<div class=\"flex h-full flex-col gap-5 overflow-y-auto pt-3 pb-6 pl-3 pr-4\">"), y2 = /*#__PURE__*/ N("<button>"), b2 = /*#__PURE__*/ N("<div class=\"flex gap-1.5\">"), x2 = /*#__PURE__*/ N("<p class=\"text-text-faint text-center text-[10.5px]\">or"), S2 = /*#__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\">"), C2 = /*#__PURE__*/ N("<div class=\"flex flex-col gap-3\">"), w2 = /*#__PURE__*/ N("<span class=text-text-dim>Connected — verifying…"), T2 = /*#__PURE__*/ N("<option> (<!>)"), E2 = /*#__PURE__*/ N("<option>"), D2 = /*#__PURE__*/ N("<button type=button><span class=\"mr-1 inline-block size-2 rounded-full align-middle\">"), O2 = /*#__PURE__*/ N("<option value>Select the agent…"), k2 = /*#__PURE__*/ N("<option>#"), A2 = /*#__PURE__*/ N("<p class=\"text-text-dim text-[11px]\">No key set — AI drafting disabled, manual drafting still works.");
45707
- function j2() {
46209
+ var A2 = /*#__PURE__*/ N("<div class=\"bg-surface-2 border-border flex rounded-md border p-0.5\">"), j2 = /*#__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."), M2 = /*#__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"), N2 = /*#__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)."), P2 = /*#__PURE__*/ N("<span class=text-text>Connected as <span class=font-medium></span> · <span class=text-text-dim>"), F2 = /*#__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]\">"), I2 = /*#__PURE__*/ N("<option value>Select a team…"), L2 = /*#__PURE__*/ N("<option value>No project"), R2 = /*#__PURE__*/ N("<div class=\"flex flex-wrap gap-1\">"), z2 = /*#__PURE__*/ N("<label class=\"flex items-start gap-2\"><input type=checkbox class=\"accent-accent mt-0.5\"><span class=\"flex flex-col gap-0.5\"><span class=text-[12px]>Let agents close out Linear themselves</span><span class=\"text-text-faint text-[10.5px] leading-snug\">Embeds your Linear API key + raw GraphQL closeout recipes in every issue's Agent instructions — cloud agent VMs have no authenticated Linear MCP, so without this they can't comment, attach media, or move the issue. The key is visible to anyone who can read the issue."), B2 = /*#__PURE__*/ N("<p class=\"text-text-dim text-[11px]\">No agents found — install the Cursor integration in Linear first."), V2 = /*#__PURE__*/ N("<span class=\"text-text-faint text-[10.5px] leading-snug\">Empty = the default above (computer-use testing, video demo, PR + review babysitting)."), H2 = /*#__PURE__*/ N("<div class=\"flex flex-col gap-1.5\">"), U2 = /*#__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."), W2 = /*#__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."), G2 = /*#__PURE__*/ N("<p class=\"text-text-faint text-[10.5px] leading-snug\">A committed <code>.lineargrab.json</code> at the repo root (where the bridge runs) shares team/project/labels, skills, staging branch, and workflow defaults with every machine and teammate — it seeds any setting you haven't set locally. Secrets never belong in it."), K2 = /*#__PURE__*/ N("<span class=\"inline-block min-w-[10ch] text-center\">"), q2 = /*#__PURE__*/ N("<div class=\"flex items-center gap-2\">"), J2 = /*#__PURE__*/ N("<option value>Select a channel…"), Y2 = /*#__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"), X2 = /*#__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."), Z2 = /*#__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"), Q2 = /*#__PURE__*/ N("<p class=\"text-text-dim text-[11px]\">"), $2 = /*#__PURE__*/ N("<div class=min-h-[2lh]>"), e4 = /*#__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."), t4 = /*#__PURE__*/ N("<div class=\"flex h-full flex-col gap-5 overflow-y-auto pt-3 pb-6 pl-3 pr-4\">"), n4 = /*#__PURE__*/ N("<button>"), r4 = /*#__PURE__*/ N("<div class=\"flex gap-1.5\">"), i4 = /*#__PURE__*/ N("<p class=\"text-text-faint text-center text-[10.5px]\">or"), a4 = /*#__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\">"), o4 = /*#__PURE__*/ N("<div class=\"flex flex-col gap-3\">"), s4 = /*#__PURE__*/ N("<span class=text-text-dim>Connected — verifying…"), c4 = /*#__PURE__*/ N("<option> (<!>)"), l4 = /*#__PURE__*/ N("<option>"), u4 = /*#__PURE__*/ N("<button type=button><span class=\"mr-1 inline-block size-2 rounded-full align-middle\">"), d4 = /*#__PURE__*/ N("<option value>Select the agent…"), f4 = /*#__PURE__*/ N("<option>#"), p4 = /*#__PURE__*/ N("<p class=\"text-text-dim text-[11px]\">No key set — AI drafting disabled, manual drafting still works.");
46210
+ function m4() {
45708
46211
  let e = sr(), t = _r(() => ({
45709
46212
  queryKey: ["settings"],
45710
46213
  queryFn: Tr,
45711
46214
  staleTime: 0
45712
- })), n = O(() => t.data ?? {});
46215
+ })), n = k(() => t.data ?? {});
45713
46216
  async function r(t, n = !1) {
45714
46217
  await Er(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"] }));
45715
46218
  }
45716
- let i = O(() => !!(n().linearApiKey || n().linearAccessToken)), a = _r(() => ({
46219
+ let i = k(() => !!(n().linearApiKey || n().linearAccessToken)), a = _r(() => ({
45717
46220
  queryKey: ["viewer"],
45718
46221
  queryFn: lO,
45719
46222
  enabled: i(),
@@ -45732,13 +46235,13 @@ function j2() {
45732
46235
  retry: 0
45733
46236
  })), [l, u] = T(!1), d = async () => {
45734
46237
  try {
45735
- await navigator.clipboard.writeText(JSON.stringify(H0(n()), null, 2) + "\n"), u(!0), setTimeout(() => u(!1), 1800);
46238
+ await navigator.clipboard.writeText(JSON.stringify(T2(n()), null, 2) + "\n"), u(!0), setTimeout(() => u(!1), 1800);
45736
46239
  } catch {}
45737
46240
  }, f = () => {
45738
46241
  let e = c.data?.projectConfig;
45739
46242
  if (!e) return;
45740
46243
  let t = {};
45741
- for (let n of V0) e[n] !== void 0 && (t[n] = e[n]);
46244
+ for (let n of w2) e[n] !== void 0 && (t[n] = e[n]);
45742
46245
  r(t);
45743
46246
  }, p = _r(() => ({
45744
46247
  queryKey: ["linear-labels"],
@@ -45762,27 +46265,27 @@ function j2() {
45762
46265
  }
45763
46266
  }
45764
46267
  }
45765
- let [S, C] = T(""), [w, ee] = T(!1), [D, te] = T("");
45766
- async function k() {
46268
+ let [S, C] = T(""), [w, E] = T(!1), [O, ee] = T("");
46269
+ async function te() {
45767
46270
  let t = (S() || n().linearOauthClientId || "").trim();
45768
46271
  if (!t) {
45769
- te("Enter an OAuth client ID first.");
46272
+ ee("Enter an OAuth client ID first.");
45770
46273
  return;
45771
46274
  }
45772
- ee(!0), te("");
46275
+ E(!0), ee("");
45773
46276
  try {
45774
- await G0(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"] });
46277
+ await O2(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"] });
45775
46278
  } catch (e) {
45776
- te(e instanceof Error ? e.message : "OAuth flow failed.");
46279
+ ee(e instanceof Error ? e.message : "OAuth flow failed.");
45777
46280
  } finally {
45778
- ee(!1);
46281
+ E(!1);
45779
46282
  }
45780
46283
  }
45781
46284
  let [A, ne] = T(!1);
45782
46285
  async function re() {
45783
46286
  ne(!0);
45784
46287
  try {
45785
- await K0(), 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"] });
46288
+ await k2(), 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"] });
45786
46289
  } finally {
45787
46290
  ne(!1);
45788
46291
  }
@@ -45793,17 +46296,17 @@ function j2() {
45793
46296
  enabled: !!n().slackToken,
45794
46297
  retry: 0,
45795
46298
  staleTime: 6e4
45796
- })), oe = O(() => Ax(n())), se = O(() => {
46299
+ })), oe = k(() => Ax(n())), se = k(() => {
45797
46300
  let e = oe();
45798
46301
  return e ? `Drafting with ${e} — ${Nx[e].fast} (fast) / ${Nx[e].best} (best)` : null;
45799
46302
  });
45800
46303
  return (() => {
45801
- var e = v2();
46304
+ var e = t4();
45802
46305
  return P(e, j(Rj, {
45803
46306
  title: "Workflow",
45804
46307
  get children() {
45805
46308
  return [(() => {
45806
- var e = q0();
46309
+ var e = A2();
45807
46310
  return P(e, j(We, {
45808
46311
  each: [{
45809
46312
  id: "cloud",
@@ -45813,19 +46316,19 @@ function j2() {
45813
46316
  label: "Local · clipboard"
45814
46317
  }],
45815
46318
  children: (e) => (() => {
45816
- var t = y2();
45817
- 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;
46319
+ var t = n4();
46320
+ 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;
45818
46321
  })()
45819
46322
  })), e;
45820
- })(), J0()];
46323
+ })(), j2()];
45821
46324
  }
45822
46325
  }), null), P(e, j(Rj, {
45823
46326
  title: "Capture",
45824
46327
  get children() {
45825
46328
  return [(() => {
45826
- var e = Y0(), t = e.firstChild;
45827
- return t.addEventListener("change", (e) => void r({ captureShots: e.currentTarget.checked || void 0 })), E(() => t.checked = !!n().captureShots), e;
45828
- })(), X0()];
46329
+ var e = M2(), t = e.firstChild;
46330
+ return t.addEventListener("change", (e) => void r({ captureShots: e.currentTarget.checked || void 0 })), D(() => t.checked = !!n().captureShots), e;
46331
+ })(), N2()];
45829
46332
  }
45830
46333
  }), null), P(e, j(Rj, {
45831
46334
  title: "Linear",
@@ -45836,13 +46339,13 @@ function j2() {
45836
46339
  },
45837
46340
  get fallback() {
45838
46341
  return (() => {
45839
- var e = C2();
46342
+ var e = o4();
45840
46343
  return P(e, j(Lj, {
45841
46344
  label: "Personal API key",
45842
46345
  hint: "Create one at linear.app → Settings → API — fastest path.",
45843
46346
  get children() {
45844
46347
  return [(() => {
45845
- var e = b2();
46348
+ var e = r4();
45846
46349
  return P(e, j(jj, {
45847
46350
  type: "password",
45848
46351
  placeholder: "lin_api_…",
@@ -45879,12 +46382,12 @@ function j2() {
45879
46382
  }), null), P(e, j(M, {
45880
46383
  when: xr,
45881
46384
  get children() {
45882
- return [x2(), j(Lj, {
46385
+ return [i4(), j(Lj, {
45883
46386
  label: "OAuth client ID",
45884
46387
  get children() {
45885
46388
  return [
45886
46389
  (() => {
45887
- var e = b2();
46390
+ var e = r4();
45888
46391
  return P(e, j(jj, {
45889
46392
  placeholder: "your-client-id",
45890
46393
  get value() {
@@ -45896,23 +46399,23 @@ function j2() {
45896
46399
  get loading() {
45897
46400
  return w();
45898
46401
  },
45899
- onClick: () => void k(),
46402
+ onClick: () => void te(),
45900
46403
  class: "shrink-0 whitespace-nowrap",
45901
46404
  children: "Connect with OAuth"
45902
46405
  }), null), e;
45903
46406
  })(),
45904
46407
  j(M, {
45905
46408
  get when() {
45906
- return D();
46409
+ return O();
45907
46410
  },
45908
46411
  get children() {
45909
46412
  return j(Hj, { get message() {
45910
- return D();
46413
+ return O();
45911
46414
  } });
45912
46415
  }
45913
46416
  }),
45914
46417
  (() => {
45915
- var e = S2(), t = e.firstChild.nextSibling.nextSibling;
46418
+ var e = a4(), t = e.firstChild.nextSibling.nextSibling;
45916
46419
  return P(t, ie), e;
45917
46420
  })()
45918
46421
  ];
@@ -45923,13 +46426,13 @@ function j2() {
45923
46426
  })();
45924
46427
  },
45925
46428
  get children() {
45926
- var e = Q0(), t = e.firstChild;
46429
+ var e = F2(), t = e.firstChild;
45927
46430
  return P(t, j(M, {
45928
46431
  get when() {
45929
46432
  return !a.isLoading;
45930
46433
  },
45931
46434
  get fallback() {
45932
- return w2();
46435
+ return s4();
45933
46436
  },
45934
46437
  get children() {
45935
46438
  return j(M, {
@@ -45942,7 +46445,7 @@ function j2() {
45942
46445
  return a.isError;
45943
46446
  },
45944
46447
  get fallback() {
45945
- return w2();
46448
+ return s4();
45946
46449
  },
45947
46450
  get children() {
45948
46451
  return j(Hj, { message: "Key rejected — reconnect" });
@@ -45950,7 +46453,7 @@ function j2() {
45950
46453
  });
45951
46454
  },
45952
46455
  get children() {
45953
- var e = Z0(), t = e.firstChild.nextSibling, n = t.nextSibling.nextSibling;
46456
+ var e = P2(), t = e.firstChild.nextSibling, n = t.nextSibling.nextSibling;
45954
46457
  return P(t, () => a.data.name), P(n, () => a.data.email), e;
45955
46458
  }
45956
46459
  });
@@ -45991,7 +46494,7 @@ function j2() {
45991
46494
  return o.isLoading;
45992
46495
  },
45993
46496
  get children() {
45994
- return [$0(), j(M, {
46497
+ return [I2(), j(M, {
45995
46498
  get when() {
45996
46499
  return o.data;
45997
46500
  },
@@ -46001,8 +46504,8 @@ function j2() {
46001
46504
  return o.data;
46002
46505
  },
46003
46506
  children: (e) => (() => {
46004
- var t = T2(), r = t.firstChild, i = r.nextSibling;
46005
- 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;
46507
+ var t = c4(), r = t.firstChild, i = r.nextSibling;
46508
+ 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;
46006
46509
  })()
46007
46510
  });
46008
46511
  }
@@ -46025,15 +46528,15 @@ function j2() {
46025
46528
  },
46026
46529
  get children() {
46027
46530
  return [(() => {
46028
- var e = e2();
46029
- return E(() => e.selected = !n().defaultProjectId), e;
46531
+ var e = L2();
46532
+ return D(() => e.selected = !n().defaultProjectId), e;
46030
46533
  })(), j(We, {
46031
46534
  get each() {
46032
46535
  return s.data ?? [];
46033
46536
  },
46034
46537
  children: (e) => (() => {
46035
- var t = E2();
46036
- return P(t, () => e.name), E(() => t.selected = e.id === n().defaultProjectId), E(() => t.value = e.id), t;
46538
+ var t = l4();
46539
+ return P(t, () => e.name), D(() => t.selected = e.id === n().defaultProjectId), D(() => t.value = e.id), t;
46037
46540
  })()
46038
46541
  })];
46039
46542
  }
@@ -46044,7 +46547,7 @@ function j2() {
46044
46547
  label: "Default labels",
46045
46548
  hint: "Applied to every issue created from the panel.",
46046
46549
  get children() {
46047
- var e = t2();
46550
+ var e = R2();
46048
46551
  return P(e, j(We, {
46049
46552
  get each() {
46050
46553
  return p.data ?? [];
@@ -46052,11 +46555,11 @@ function j2() {
46052
46555
  children: (e) => {
46053
46556
  let t = () => (n().defaultLabelIds ?? []).includes(e.id);
46054
46557
  return (() => {
46055
- var i = D2(), a = i.firstChild;
46558
+ var i = u4(), a = i.firstChild;
46056
46559
  return i.$$click = () => {
46057
46560
  let i = n().defaultLabelIds ?? [];
46058
46561
  r({ defaultLabelIds: t() ? i.filter((t) => t !== e.id) : [...i, e.id] });
46059
- }, P(i, () => e.name, null), E((n) => {
46562
+ }, P(i, () => e.name, null), D((n) => {
46060
46563
  var r = `h-6 cursor-pointer rounded-full border px-2.5 text-[11px] font-medium transition-colors ${t() ? "bg-accent-soft text-accent border-accent/40" : "bg-surface-2 text-text-dim border-border hover:bg-surface-3"}`, o = e.color;
46061
46564
  return r !== n.e && st(i, n.e = r), o !== n.t && dt(a, "background", n.t = o), n;
46062
46565
  }, {
@@ -46069,8 +46572,8 @@ function j2() {
46069
46572
  }
46070
46573
  }),
46071
46574
  (() => {
46072
- var e = n2(), t = e.firstChild;
46073
- return t.addEventListener("change", (e) => void r({ shareLinearKey: e.currentTarget.checked })), E(() => t.checked = !!n().shareLinearKey), e;
46575
+ var e = z2(), t = e.firstChild;
46576
+ return t.addEventListener("change", (e) => void r({ shareLinearKey: e.currentTarget.checked })), D(() => t.checked = !!n().shareLinearKey), e;
46074
46577
  })(),
46075
46578
  j(Lj, {
46076
46579
  label: "Staging branch",
@@ -46119,7 +46622,7 @@ function j2() {
46119
46622
  return m.isLoading;
46120
46623
  },
46121
46624
  get children() {
46122
- return [O2(), j(M, {
46625
+ return [d4(), j(M, {
46123
46626
  get when() {
46124
46627
  return m.data;
46125
46628
  },
@@ -46129,8 +46632,8 @@ function j2() {
46129
46632
  return m.data;
46130
46633
  },
46131
46634
  children: (e) => (() => {
46132
- var t = E2();
46133
- return P(t, () => e.displayName), E(() => t.selected = e.id === n().cursorAgentId), E(() => t.value = e.id), t;
46635
+ var t = l4();
46636
+ return P(t, () => e.displayName), D(() => t.selected = e.id === n().cursorAgentId), D(() => t.value = e.id), t;
46134
46637
  })()
46135
46638
  });
46136
46639
  }
@@ -46139,7 +46642,7 @@ function j2() {
46139
46642
  });
46140
46643
  },
46141
46644
  get children() {
46142
- return r2();
46645
+ return B2();
46143
46646
  }
46144
46647
  });
46145
46648
  }
@@ -46187,7 +46690,7 @@ function j2() {
46187
46690
  onBlur: (e) => {
46188
46691
  r({ issueTemplate: e.currentTarget.value.trim() || void 0 });
46189
46692
  }
46190
- }), i2()];
46693
+ }), V2()];
46191
46694
  }
46192
46695
  }),
46193
46696
  j(Lj, {
@@ -46244,7 +46747,7 @@ function j2() {
46244
46747
  label: "Test account",
46245
46748
  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.",
46246
46749
  get children() {
46247
- var e = a2();
46750
+ var e = H2();
46248
46751
  return P(e, j(jj, {
46249
46752
  placeholder: "Username or email (e.g. demo@yourapp.com)",
46250
46753
  get value() {
@@ -46276,7 +46779,7 @@ function j2() {
46276
46779
  title: "Panel",
46277
46780
  get children() {
46278
46781
  return [(() => {
46279
- var e = o2(), t = e.firstChild.nextSibling;
46782
+ var e = U2(), t = e.firstChild.nextSibling;
46280
46783
  return P(t, j(We, {
46281
46784
  each: [{
46282
46785
  id: "overlay",
@@ -46286,20 +46789,20 @@ function j2() {
46286
46789
  label: "Beside page"
46287
46790
  }],
46288
46791
  children: (e) => (() => {
46289
- var t = y2();
46792
+ var t = n4();
46290
46793
  return t.$$click = () => void r({
46291
46794
  panelMode: e.id,
46292
46795
  panelPos: void 0
46293
- }), 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;
46796
+ }), 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;
46294
46797
  })()
46295
46798
  })), e;
46296
46799
  })(), (() => {
46297
- var e = s2(), t = e.firstChild.nextSibling;
46800
+ var e = W2(), t = e.firstChild.nextSibling;
46298
46801
  return P(t, j(We, {
46299
46802
  each: ["left", "right"],
46300
46803
  children: (e) => (() => {
46301
- var t = y2();
46302
- 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;
46804
+ var t = n4();
46805
+ 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;
46303
46806
  })()
46304
46807
  })), e;
46305
46808
  })()];
@@ -46328,8 +46831,8 @@ function j2() {
46328
46831
  }), null), P(e, j(Rj, {
46329
46832
  title: "Project config (.lineargrab.json)",
46330
46833
  get children() {
46331
- return [c2(), (() => {
46332
- var e = u2();
46834
+ return [G2(), (() => {
46835
+ var e = q2();
46333
46836
  return P(e, j(M, {
46334
46837
  get when() {
46335
46838
  return c.data?.projectConfig;
@@ -46360,7 +46863,7 @@ function j2() {
46360
46863
  },
46361
46864
  onClick: () => void d(),
46362
46865
  get children() {
46363
- var e = l2();
46866
+ var e = K2();
46364
46867
  return P(e, () => l() ? "Copied ✓" : "Copy config"), e;
46365
46868
  }
46366
46869
  }), null), e;
@@ -46451,13 +46954,13 @@ function j2() {
46451
46954
  });
46452
46955
  },
46453
46956
  get children() {
46454
- return [d2(), j(We, {
46957
+ return [J2(), j(We, {
46455
46958
  get each() {
46456
46959
  return ae.data ?? [];
46457
46960
  },
46458
46961
  children: (e) => (() => {
46459
- var t = k2();
46460
- return t.firstChild, P(t, () => e.name, null), E(() => t.selected = e.id === n().slackChannelId), E(() => t.value = e.id), t;
46962
+ var t = f4();
46963
+ return t.firstChild, P(t, () => e.name, null), D(() => t.selected = e.id === n().slackChannelId), D(() => t.value = e.id), t;
46461
46964
  })()
46462
46965
  })];
46463
46966
  }
@@ -46507,10 +47010,10 @@ function j2() {
46507
47010
  }
46508
47011
  }),
46509
47012
  (() => {
46510
- var e = f2(), t = e.firstChild;
46511
- return t.addEventListener("change", (e) => void r({ notifyOnCreate: e.currentTarget.checked ? void 0 : !1 })), E(() => t.checked = n().notifyOnCreate !== !1), e;
47013
+ var e = Y2(), t = e.firstChild;
47014
+ return t.addEventListener("change", (e) => void r({ notifyOnCreate: e.currentTarget.checked ? void 0 : !1 })), D(() => t.checked = n().notifyOnCreate !== !1), e;
46512
47015
  })(),
46513
- p2()
47016
+ X2()
46514
47017
  ];
46515
47018
  }
46516
47019
  }), null), P(e, j(Rj, {
@@ -46548,8 +47051,8 @@ function j2() {
46548
47051
  }
46549
47052
  }),
46550
47053
  (() => {
46551
- var e = m2(), t = e.firstChild.nextSibling.firstChild, i = t.nextSibling, a = i.nextSibling;
46552
- return t.$$click = () => void r({ preferredProvider: void 0 }), i.$$click = () => void r({ preferredProvider: "openai" }), a.$$click = () => void r({ preferredProvider: "anthropic" }), E((e) => {
47054
+ var e = Z2(), t = e.firstChild.nextSibling.firstChild, i = t.nextSibling, a = i.nextSibling;
47055
+ return t.$$click = () => void r({ preferredProvider: void 0 }), i.$$click = () => void r({ preferredProvider: "openai" }), a.$$click = () => void r({ preferredProvider: "anthropic" }), D((e) => {
46553
47056
  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;
46554
47057
  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;
46555
47058
  }, {
@@ -46561,16 +47064,16 @@ function j2() {
46561
47064
  }), e;
46562
47065
  })(),
46563
47066
  (() => {
46564
- var e = g2();
47067
+ var e = $2();
46565
47068
  return P(e, j(M, {
46566
47069
  get when() {
46567
47070
  return se();
46568
47071
  },
46569
47072
  get fallback() {
46570
- return A2();
47073
+ return p4();
46571
47074
  },
46572
47075
  get children() {
46573
- var e = h2();
47076
+ var e = Q2();
46574
47077
  return P(e, se), e;
46575
47078
  }
46576
47079
  })), e;
@@ -46580,7 +47083,7 @@ function j2() {
46580
47083
  }), null), P(e, j(Rj, {
46581
47084
  title: "How it works",
46582
47085
  get children() {
46583
- return _2();
47086
+ return e4();
46584
47087
  }
46585
47088
  }), null), e;
46586
47089
  })();
@@ -46588,38 +47091,38 @@ function j2() {
46588
47091
  rt(["click"]);
46589
47092
  //#endregion
46590
47093
  //#region src/lib/idbCache.ts
46591
- var M2 = "linear-grab", N2 = "queries", P2 = [
47094
+ var h4 = "linear-grab", g4 = "queries", _4 = [
46592
47095
  "my-issues",
46593
47096
  "issue",
46594
47097
  "sessions",
46595
47098
  "teams",
46596
47099
  "agents"
46597
47100
  ];
46598
- function F2() {
47101
+ function v4() {
46599
47102
  return new Promise((e) => {
46600
47103
  try {
46601
- let t = indexedDB.open(M2, 1);
46602
- t.onupgradeneeded = () => t.result.createObjectStore(N2), t.onsuccess = () => e(t.result), t.onerror = () => e(null);
47104
+ let t = indexedDB.open(h4, 1);
47105
+ t.onupgradeneeded = () => t.result.createObjectStore(g4), t.onsuccess = () => e(t.result), t.onerror = () => e(null);
46603
47106
  } catch {
46604
47107
  e(null);
46605
47108
  }
46606
47109
  });
46607
47110
  }
46608
- function I2(e) {
46609
- return typeof e[0] == "string" && P2.includes(e[0]);
47111
+ function y4(e) {
47112
+ return typeof e[0] == "string" && _4.includes(e[0]);
46610
47113
  }
46611
- async function L2(e) {
46612
- let t = await F2();
47114
+ async function b4(e) {
47115
+ let t = await v4();
46613
47116
  if (!t) return () => {};
46614
47117
  await new Promise((n) => {
46615
47118
  try {
46616
- let r = t.transaction(N2, "readonly").objectStore(N2).openCursor();
47119
+ let r = t.transaction(g4, "readonly").objectStore(g4).openCursor();
46617
47120
  r.onsuccess = () => {
46618
47121
  let t = r.result;
46619
47122
  if (!t) return n();
46620
47123
  try {
46621
47124
  let { queryKey: n, data: r } = t.value;
46622
- I2(n) && e.getQueryData(n) === void 0 && e.setQueryData(n, r, { updatedAt: 0 });
47125
+ y4(n) && e.getQueryData(n) === void 0 && e.setQueryData(n, r, { updatedAt: 0 });
46623
47126
  } catch {}
46624
47127
  t.continue();
46625
47128
  }, r.onerror = () => n();
@@ -46630,14 +47133,14 @@ async function L2(e) {
46630
47133
  let n = /* @__PURE__ */ new Map(), r = e.getQueryCache().subscribe((r) => {
46631
47134
  if (r.type !== "updated" || r.action.type !== "success") return;
46632
47135
  let { queryKey: i, queryHash: a } = r.query;
46633
- if (!I2(i)) return;
47136
+ if (!y4(i)) return;
46634
47137
  let o = n.get(a);
46635
47138
  o && clearTimeout(o), n.set(a, setTimeout(() => {
46636
47139
  n.delete(a);
46637
47140
  try {
46638
47141
  let n = e.getQueryData(i);
46639
47142
  if (n === void 0) return;
46640
- t.transaction(N2, "readwrite").objectStore(N2).put({
47143
+ t.transaction(g4, "readwrite").objectStore(g4).put({
46641
47144
  queryKey: i,
46642
47145
  data: n
46643
47146
  }, a);
@@ -46653,7 +47156,7 @@ async function L2(e) {
46653
47156
  //#endregion
46654
47157
  //#region src/panel/App.tsx
46655
47158
  Br();
46656
- var R2 = /*#__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\">"), z2 = /*#__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\">"), B2 = /*#__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\">–"), V2 = /*#__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></div><div class=h-full></div><div class=h-full>"), H2 = /*#__PURE__*/ N("<button>"), U2 = [
47159
+ var x4 = /*#__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\">"), S4 = /*#__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\">"), C4 = /*#__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\">–"), w4 = /*#__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></div><div class=h-full></div><div class=h-full></div><div class=h-full>"), T4 = /*#__PURE__*/ N("<button>"), E4 = [
46657
47160
  {
46658
47161
  id: "draft",
46659
47162
  label: "Draft"
@@ -46682,40 +47185,44 @@ var R2 = /*#__PURE__*/ N("<svg viewBox=\"0 0 100 100\"fill=currentColor aria-hid
46682
47185
  id: "prs",
46683
47186
  label: "PRs"
46684
47187
  },
47188
+ {
47189
+ id: "design",
47190
+ label: "Design"
47191
+ },
46685
47192
  {
46686
47193
  id: "settings",
46687
47194
  label: "Settings"
46688
47195
  }
46689
- ], W2 = /* @__PURE__ */ new Set();
46690
- function G2(e, t, n) {
46691
- if (W2.has(e) || typeof Notification > "u") return;
46692
- W2.add(e);
47196
+ ], D4 = /* @__PURE__ */ new Set();
47197
+ function O4(e, t, n) {
47198
+ if (D4.has(e) || typeof Notification > "u") return;
47199
+ D4.add(e);
46693
47200
  let r = () => new Notification(t, { body: n });
46694
47201
  Notification.permission === "granted" ? r() : Notification.permission === "default" && Notification.requestPermission().then((e) => e === "granted" && r());
46695
47202
  }
46696
- function K2() {
47203
+ function k4() {
46697
47204
  setInterval(() => {
46698
47205
  NO().then((e) => {
46699
47206
  for (let t of e) {
46700
47207
  if (t.status !== "running") continue;
46701
47208
  let e = t.lastEventAt ?? t.startedAt;
46702
- Date.now() - e > 10 * 6e4 && G2(`local-stuck:${t.id}:${e}`, "Local agent may be stuck", `${t.title.slice(0, 80)} — no output for ${Math.round((Date.now() - e) / 6e4)}m. Nudge or interrupt it in the Local tab.`);
47209
+ Date.now() - e > 10 * 6e4 && O4(`local-stuck:${t.id}:${e}`, "Local agent may be stuck", `${t.title.slice(0, 80)} — no output for ${Math.round((Date.now() - e) / 6e4)}m. Nudge or interrupt it in the Local tab.`);
46703
47210
  }
46704
47211
  }).catch(() => {}), gO().then((e) => {
46705
- for (let t of e) /awaitingInput|elicit/i.test(t.status) && G2(`cloud-input:${t.id}`, "Cloud agent needs input", `${t.issue?.identifier ?? "Session"} — ${t.issue?.title?.slice(0, 80) ?? "a Cursor agent"} is waiting for you.`);
47212
+ for (let t of e) /awaitingInput|elicit/i.test(t.status) && O4(`cloud-input:${t.id}`, "Cloud agent needs input", `${t.issue?.identifier ?? "Session"} — ${t.issue?.title?.slice(0, 80) ?? "a Cursor agent"} is waiting for you.`);
46706
47213
  }).catch(() => {});
46707
47214
  }, 6e4);
46708
47215
  }
46709
- K2();
46710
- var q2 = new gr({ defaultOptions: { queries: {
47216
+ k4();
47217
+ var A4 = new gr({ defaultOptions: { queries: {
46711
47218
  retry: 1,
46712
47219
  refetchOnWindowFocus: !1,
46713
47220
  staleTime: 5e3
46714
47221
  } } });
46715
- function J2(e) {
47222
+ function j4(e) {
46716
47223
  return (() => {
46717
- var t = R2();
46718
- return E((n) => {
47224
+ var t = x4();
47225
+ return D((n) => {
46719
47226
  var r = e.size ?? 14, i = e.size ?? 14;
46720
47227
  return r !== n.e && it(t, "width", n.e = r), i !== n.t && it(t, "height", n.t = i), n;
46721
47228
  }, {
@@ -46724,45 +47231,45 @@ function J2(e) {
46724
47231
  }), t;
46725
47232
  })();
46726
47233
  }
46727
- function Y2(e) {
47234
+ function M4(e) {
46728
47235
  let [t, n] = T("draft"), r = () => {
46729
- q2.invalidateQueries({ queryKey: ["grab"] }), cj() === "capture" && n("capture"), e.onGrab?.();
47236
+ A4.invalidateQueries({ queryKey: ["grab"] }), cj() === "capture" && n("capture"), e.onGrab?.();
46730
47237
  };
46731
- return D(() => {
47238
+ return O(() => {
46732
47239
  let e = nj();
46733
47240
  e && n(e);
46734
47241
  }), ie(() => {
46735
- let e = L2(q2), t = XZ(r), n = () => {
47242
+ let e = b4(A4), t = XZ(r), n = () => {
46736
47243
  JO().then(y$), VO(), MO().then(async (e) => {
46737
47244
  if (!e.projectConfig) return;
46738
- let t = U0(await Tr(), e.projectConfig);
47245
+ let t = E2(await Tr(), e.projectConfig);
46739
47246
  t && await Er(t);
46740
47247
  }).catch(() => {});
46741
47248
  };
46742
47249
  n();
46743
47250
  let i = Mr((e) => {
46744
- e === "settings" && (q2.invalidateQueries({ queryKey: ["settings"] }), n()), e === "grab" && r();
47251
+ e === "settings" && (A4.invalidateQueries({ queryKey: ["settings"] }), n()), e === "grab" && r();
46745
47252
  });
46746
47253
  ae(() => {
46747
47254
  t(), i(), e.then((e) => e());
46748
47255
  });
46749
47256
  }), j(cr, {
46750
- client: q2,
47257
+ client: A4,
46751
47258
  get children() {
46752
- var r = V2(), 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, p = f.nextSibling, m = p.nextSibling;
46753
- return i.$$pointerdown = (t) => e.onHeaderPointerDown?.(t), P(a, j(J2, { size: 14 })), P(o, j(We, {
46754
- each: U2,
47259
+ var r = w4(), 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, p = f.nextSibling, m = p.nextSibling, h = m.nextSibling;
47260
+ return i.$$pointerdown = (t) => e.onHeaderPointerDown?.(t), P(a, j(j4, { size: 14 })), P(o, j(We, {
47261
+ each: E4,
46755
47262
  children: (e) => (() => {
46756
- var r = H2();
46757
- 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;
47263
+ var r = T4();
47264
+ 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;
46758
47265
  })()
46759
47266
  })), P(i, j(M, {
46760
47267
  get when() {
46761
47268
  return e.onTogglePin;
46762
47269
  },
46763
47270
  get children() {
46764
- var t = z2();
46765
- return t.$$click = () => e.onTogglePin?.(), E((n) => {
47271
+ var t = S4();
47272
+ return t.$$click = () => e.onTogglePin?.(), D((n) => {
46766
47273
  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"}`;
46767
47274
  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;
46768
47275
  }, {
@@ -46776,12 +47283,12 @@ function Y2(e) {
46776
47283
  return e.onClose;
46777
47284
  },
46778
47285
  get children() {
46779
- var t = B2();
47286
+ var t = C4();
46780
47287
  return t.$$click = () => e.onClose?.(), t;
46781
47288
  }
46782
- }), null), P(s, j(wM, { onCreated: () => n("activity") })), P(c, j(TQ, {})), P(l, j(_1, {})), P(u, j(B1, {})), P(d, j(P1, {})), P(f, j(T0, {})), P(p, j(B0, { onOpenIssue: () => n("activity") })), P(m, j(j2, {})), E((n) => {
46783
- 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", h = t() !== "activity", g = t() !== "running", _ = t() !== "cloud", v = t() !== "local", y = t() !== "prs", b = t() !== "settings";
46784
- 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), h !== n.o && l.classList.toggle("hidden", n.o = h), g !== n.i && u.classList.toggle("hidden", n.i = g), _ !== n.n && d.classList.toggle("hidden", n.n = _), v !== n.s && f.classList.toggle("hidden", n.s = v), y !== n.h && p.classList.toggle("hidden", n.h = y), b !== n.r && m.classList.toggle("hidden", n.r = b), n;
47289
+ }), null), P(s, j(wM, { onCreated: () => n("activity") })), P(c, j(TQ, {})), P(l, j(_1, {})), P(u, j(B1, {})), P(d, j(P1, {})), P(f, j(T0, {})), P(p, j(B0, { onOpenIssue: () => n("activity") })), P(m, j(C2, {})), P(h, j(m4, {})), D((n) => {
47290
+ 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", g = t() !== "activity", _ = t() !== "running", v = t() !== "cloud", y = t() !== "local", b = t() !== "prs", x = t() !== "design", S = t() !== "settings";
47291
+ 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), g !== n.o && l.classList.toggle("hidden", n.o = g), _ !== n.i && u.classList.toggle("hidden", n.i = _), v !== n.n && d.classList.toggle("hidden", n.n = v), y !== n.s && f.classList.toggle("hidden", n.s = y), b !== n.h && p.classList.toggle("hidden", n.h = b), x !== n.r && m.classList.toggle("hidden", n.r = x), S !== n.d && h.classList.toggle("hidden", n.d = S), n;
46785
47292
  }, {
46786
47293
  e: void 0,
46787
47294
  t: void 0,
@@ -46791,7 +47298,8 @@ function Y2(e) {
46791
47298
  n: void 0,
46792
47299
  s: void 0,
46793
47300
  h: void 0,
46794
- r: void 0
47301
+ r: void 0,
47302
+ d: void 0
46795
47303
  }), r;
46796
47304
  }
46797
47305
  });
@@ -46799,12 +47307,12 @@ function Y2(e) {
46799
47307
  rt(["pointerdown", "click"]);
46800
47308
  //#endregion
46801
47309
  //#region src/styles/app.css?inline
46802
- var X2 = "/*! 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-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.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-2\\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.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-28{width:calc(var(--spacing) * 28)}.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-\\[110px\\]{max-width:110px}.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-\\[8ch\\]{min-width:8ch}.min-w-\\[10ch\\]{min-width:10ch}.min-w-\\[12ch\\]{min-width:12ch}.min-w-\\[36px\\]{min-width:36px}.min-w-\\[52px\\]{min-width:52px}.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-auto{overflow:auto}.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-1\\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.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-0{padding-left:0}.pl-0\\.5{padding-left:calc(var(--spacing) * .5)}.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}.align-middle{vertical-align:middle}.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-accent:hover{color:var(--color-accent)}.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}[data-tip][data-tip-pos~=right]:hover:after{left:0;transform:none}[data-tip][data-tip-pos~=left]:hover:after{left:auto;right:0;transform:none}[data-tip][data-tip-pos~=bottom]:hover:after{top:calc(100% + 6px);bottom:auto}.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}}";
47310
+ var N4 = "/*! 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-3{top:calc(var(--spacing) * 3)}.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-1{bottom:var(--spacing)}.bottom-4{bottom:calc(var(--spacing) * 4)}.bottom-\\[2px\\]{bottom:2px}.bottom-full{bottom:100%}.-left-\\[13\\.5px\\]{left:-13.5px}.left-0{left:0}.left-1{left:var(--spacing)}.left-1\\/2{left:50%}.left-\\[5px\\]{left:5px}.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-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.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-2\\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.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-\\[9px\\]{width:9px;height:9px}.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-28{width:calc(var(--spacing) * 28)}.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-\\[110px\\]{max-width:110px}.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-\\[7ch\\]{min-width:7ch}.min-w-\\[8ch\\]{min-width:8ch}.min-w-\\[10ch\\]{min-width:10ch}.min-w-\\[12ch\\]{min-width:12ch}.min-w-\\[36px\\]{min-width:36px}.min-w-\\[52px\\]{min-width:52px}.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-auto{overflow:auto}.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-1\\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.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-0{padding-left:0}.pl-0\\.5{padding-left:calc(var(--spacing) * .5)}.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}.align-middle{vertical-align:middle}.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-accent:hover{color:var(--color-accent)}.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}[data-tip][data-tip-pos~=right]:hover:after{left:0;transform:none}[data-tip][data-tip-pos~=left]:hover:after{left:auto;right:0;transform:none}[data-tip][data-tip-pos~=bottom]:hover:after{top:calc(100% + 6px);bottom:auto}.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}}";
46803
47311
  //#endregion
46804
47312
  //#region src/page/index.tsx
46805
47313
  Br();
46806
- var Z2 = /*#__PURE__*/ N("<span aria-hidden class=\"bg-danger size-2 shrink-0 animate-pulse rounded-full\">"), Q2 = /*#__PURE__*/ N("<span class=\"text-text min-w-[5ch] text-[11px] font-medium tabular-nums\">"), $2 = /*#__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"), e4 = /*#__PURE__*/ N("<p class=\"text-warn px-1.5 pt-1 pb-1.5 text-[10.5px] font-semibold tracking-wide uppercase\">Needs review"), t4 = /*#__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"), n4 = /*#__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\">"), r4 = /*#__PURE__*/ N("<div><div title=\"Drag to resize\">"), i4 = /*#__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\">"), a4 = /*#__PURE__*/ N("<span class=\"bg-border h-4 w-px\"aria-hidden>"), o4 = /*#__PURE__*/ N("<span aria-hidden class=\"bg-warn size-2 rounded-full\">"), s4 = /*#__PURE__*/ N("<span class=\"text-warn min-w-[3.5ch] text-left text-[11px] font-medium tabular-nums\"> rev"), c4 = /*#__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>"), l4 = /*#__PURE__*/ N("<p class=\"text-text-faint px-1.5 pb-1.5 text-[11.5px]\">No agents running right now."), u4 = /*#__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\"> · <!> · ");
46807
- function d4(e = {}) {
47314
+ var P4 = /*#__PURE__*/ N("<span aria-hidden class=\"bg-danger size-2 shrink-0 animate-pulse rounded-full\">"), F4 = /*#__PURE__*/ N("<span class=\"text-text min-w-[5ch] text-[11px] font-medium tabular-nums\">"), I4 = /*#__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"), L4 = /*#__PURE__*/ N("<p class=\"text-warn px-1.5 pt-1 pb-1.5 text-[10.5px] font-semibold tracking-wide uppercase\">Needs review"), R4 = /*#__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"), z4 = /*#__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\">"), B4 = /*#__PURE__*/ N("<div><div title=\"Drag to resize\">"), V4 = /*#__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\">"), H4 = /*#__PURE__*/ N("<span class=\"bg-border h-4 w-px\"aria-hidden>"), U4 = /*#__PURE__*/ N("<span aria-hidden class=\"bg-warn size-2 rounded-full\">"), W4 = /*#__PURE__*/ N("<span class=\"text-warn min-w-[3.5ch] text-left text-[11px] font-medium tabular-nums\"> rev"), G4 = /*#__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>"), K4 = /*#__PURE__*/ N("<p class=\"text-text-faint px-1.5 pb-1.5 text-[11.5px]\">No agents running right now."), q4 = /*#__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\"> · <!> · ");
47315
+ function J4(e = {}) {
46808
47316
  if (typeof window > "u" || window.__LINEAR_GRAB_PAGE__) return;
46809
47317
  window.__LINEAR_GRAB_PAGE__ = !0;
46810
47318
  let t = () => {
@@ -46836,17 +47344,17 @@ function d4(e = {}) {
46836
47344
  "keypress"
46837
47345
  ]) window.addEventListener(e, n, { capture: !0 });
46838
47346
  let r = t.attachShadow({ mode: "open" }), i = document.createElement("style");
46839
- i.textContent = X2, r.appendChild(i);
47347
+ i.textContent = N4, r.appendChild(i);
46840
47348
  let a = document.createElement("div");
46841
47349
  r.appendChild(a);
46842
- let o = () => a.setAttribute("data-theme", f4());
46843
- o(), matchMedia("(prefers-color-scheme: light)").addEventListener("change", o), nt(() => j(v4, { get defaultOpen() {
47350
+ let o = () => a.setAttribute("data-theme", Y4());
47351
+ o(), matchMedia("(prefers-color-scheme: light)").addEventListener("change", o), nt(() => j(t3, { get defaultOpen() {
46844
47352
  return e.defaultOpen ?? !1;
46845
47353
  } }), a);
46846
47354
  };
46847
47355
  document.body ? t() : document.addEventListener("DOMContentLoaded", t, { once: !0 });
46848
47356
  }
46849
- function f4() {
47357
+ function Y4() {
46850
47358
  try {
46851
47359
  let e = [document.body, document.documentElement];
46852
47360
  for (let t of e) {
@@ -46856,11 +47364,11 @@ function f4() {
46856
47364
  } catch {}
46857
47365
  return matchMedia("(prefers-color-scheme: light)").matches ? "light" : "dark";
46858
47366
  }
46859
- var p4 = 130, m4 = 36, h4 = 380, g4 = 280, _4 = 720;
46860
- function v4(e) {
47367
+ var X4 = 130, Z4 = 36, Q4 = 380, $4 = 280, e3 = 720;
47368
+ function t3(e) {
46861
47369
  let [t, n] = T(e.defaultOpen), [r, i] = T("right"), [a, o] = T({
46862
- x: Math.max(8, window.innerWidth - p4 - 24),
46863
- y: Math.max(8, window.innerHeight - m4 - 20)
47370
+ x: Math.max(8, window.innerWidth - X4 - 24),
47371
+ y: Math.max(8, window.innerHeight - Z4 - 20)
46864
47372
  }), [s, c] = T({
46865
47373
  running: [],
46866
47374
  review: []
@@ -46875,15 +47383,15 @@ function v4(e) {
46875
47383
  let t = Math.floor(e / 1e3);
46876
47384
  return `${Math.floor(t / 60)}:${String(t % 60).padStart(2, "0")}`;
46877
47385
  }, [v, y] = T(null), b = (e) => ({
46878
- x: Math.min(Math.max(8, e.x), window.innerWidth - p4 - 8),
46879
- y: Math.min(Math.max(8, e.y), window.innerHeight - m4 - 8)
47386
+ x: Math.min(Math.max(8, e.x), window.innerWidth - X4 - 8),
47387
+ y: Math.min(Math.max(8, e.y), window.innerHeight - Z4 - 8)
46880
47388
  }), x = (e) => ({
46881
- x: Math.min(Math.max(8 - (k() - 80), e.x), window.innerWidth - 80),
47389
+ x: Math.min(Math.max(8 - (te() - 80), e.x), window.innerWidth - 80),
46882
47390
  y: Math.min(Math.max(0, e.y), window.innerHeight - 80)
46883
- }), [S, C] = T(!1), [w, ee] = T("cloud"), [O, te] = T(!1), [k, A] = T(h4), ne = (e) => Math.min(_4, Math.max(g4, Math.min(e, window.innerWidth - 60)));
46884
- D(() => {
47391
+ }), [S, C] = T(!1), [w, E] = T("cloud"), [k, ee] = T(!1), [te, A] = T(Q4), ne = (e) => Math.min(e3, Math.max($4, Math.min(e, window.innerWidth - 60)));
47392
+ O(() => {
46885
47393
  let e = document.documentElement, n = t() && S();
46886
- e.style.transition = "margin 0.2s ease", e.style.marginRight = n && r() === "right" ? `${k()}px` : "", e.style.marginLeft = n && r() === "left" ? `${k()}px` : "";
47394
+ e.style.transition = "margin 0.2s ease", e.style.marginRight = n && r() === "right" ? `${te()}px` : "", e.style.marginLeft = n && r() === "left" ? `${te()}px` : "";
46887
47395
  }), ae(() => {
46888
47396
  document.documentElement.style.marginRight = "", document.documentElement.style.marginLeft = "";
46889
47397
  });
@@ -46896,14 +47404,14 @@ function v4(e) {
46896
47404
  };
46897
47405
  ie(() => {
46898
47406
  Tr().then((e) => {
46899
- 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");
47407
+ 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");
46900
47408
  });
46901
47409
  let e = Mr((e) => {
46902
47410
  e === "settings" && Tr().then((e) => {
46903
- i(e.panelSide ?? "right"), C(e.panelMode === "pinned"), ee(e.workflowMode ?? "cloud");
47411
+ i(e.panelSide ?? "right"), C(e.panelMode === "pinned"), E(e.workflowMode ?? "cloud");
46904
47412
  }), e === "grab" && w() !== "local" && n(!0);
46905
47413
  }), t = () => {
46906
- te(!0), setTimeout(() => te(!1), 1600);
47414
+ ee(!0), setTimeout(() => ee(!1), 1600);
46907
47415
  };
46908
47416
  window.addEventListener(zZ, t);
46909
47417
  let r = () => {
@@ -46949,7 +47457,7 @@ function v4(e) {
46949
47457
  }, ue = (e) => {
46950
47458
  if (e.button !== 0) return;
46951
47459
  e.preventDefault(), e.stopPropagation();
46952
- let t = e.clientX, n = k(), i = v(), a = (e) => {
47460
+ let t = e.clientX, n = te(), i = v(), a = (e) => {
46953
47461
  let a = e.clientX - t, o = r() === "right" ? -a : a, s = ne(n + o);
46954
47462
  A(s), i && r() === "right" && y(x({
46955
47463
  x: i.x + (n - s),
@@ -46957,7 +47465,7 @@ function v4(e) {
46957
47465
  }));
46958
47466
  }, o = () => {
46959
47467
  window.removeEventListener("pointermove", a), window.removeEventListener("pointerup", o), Er({
46960
- panelWidth: k(),
47468
+ panelWidth: te(),
46961
47469
  ...v() ? { panelPos: v() } : {}
46962
47470
  });
46963
47471
  };
@@ -46972,7 +47480,7 @@ function v4(e) {
46972
47480
  x: e.clientX,
46973
47481
  y: e.clientY
46974
47482
  }, n = v() ?? {
46975
- x: r() === "right" ? window.innerWidth - k() : 0,
47483
+ x: r() === "right" ? window.innerWidth - te() : 0,
46976
47484
  y: 0
46977
47485
  }, i = !1, a = (e) => {
46978
47486
  let r = e.clientX - t.x, a = e.clientY - t.y;
@@ -46992,7 +47500,7 @@ function v4(e) {
46992
47500
  return !t();
46993
47501
  },
46994
47502
  get children() {
46995
- var e = n4(), t = e.firstChild;
47503
+ var e = z4(), t = e.firstChild;
46996
47504
  return t.$$click = () => {
46997
47505
  oe || p() === "recording" || (f(!1), n(!0));
46998
47506
  }, t.$$pointerdown = se, P(t, j(M, {
@@ -47002,31 +47510,31 @@ function v4(e) {
47002
47510
  get fallback() {
47003
47511
  return [
47004
47512
  (() => {
47005
- var e = i4();
47513
+ var e = V4();
47006
47514
  return e.$$click = () => {
47007
47515
  oe || (f(!1), n(!0));
47008
- }, P(e, j(J2, { size: 13 })), e;
47516
+ }, P(e, j(j4, { size: 13 })), e;
47009
47517
  })(),
47010
- a4(),
47518
+ H4(),
47011
47519
  (() => {
47012
- var e = c4(), t = e.firstChild, n = t.nextSibling;
47520
+ var e = G4(), t = e.firstChild, n = t.nextSibling;
47013
47521
  return e.$$click = (e) => {
47014
47522
  e.stopPropagation(), !oe && f((e) => !e);
47015
47523
  }, P(n, (() => {
47016
- var e = $e(() => !!O());
47524
+ var e = $e(() => !!k());
47017
47525
  return () => e() ? "Copied ✓" : `${l().length} run`;
47018
47526
  })()), P(e, j(M, {
47019
47527
  get when() {
47020
- return $e(() => !O())() && u().length > 0;
47528
+ return $e(() => !k())() && u().length > 0;
47021
47529
  },
47022
47530
  get children() {
47023
- return [o4(), (() => {
47024
- var e = s4(), t = e.firstChild;
47531
+ return [U4(), (() => {
47532
+ var e = W4(), t = e.firstChild;
47025
47533
  return P(e, () => u().length, t), e;
47026
47534
  })()];
47027
47535
  }
47028
- }), null), E((e) => {
47029
- 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"}`;
47536
+ }), null), D((e) => {
47537
+ 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"}`;
47030
47538
  return r !== e.e && st(t, e.e = r), i !== e.t && st(n, e.t = i), e;
47031
47539
  }, {
47032
47540
  e: void 0,
@@ -47037,13 +47545,13 @@ function v4(e) {
47037
47545
  },
47038
47546
  get children() {
47039
47547
  return [
47040
- Z2(),
47548
+ P4(),
47041
47549
  (() => {
47042
- var e = Q2();
47550
+ var e = F4();
47043
47551
  return P(e, () => _(h())), e;
47044
47552
  })(),
47045
47553
  (() => {
47046
- var e = $2();
47554
+ var e = I4();
47047
47555
  return e.$$click = () => {
47048
47556
  oe || eO();
47049
47557
  }, e;
@@ -47055,17 +47563,17 @@ function v4(e) {
47055
47563
  return d();
47056
47564
  },
47057
47565
  get children() {
47058
- var e = t4(), t = e.firstChild;
47566
+ var e = R4(), t = e.firstChild;
47059
47567
  return P(e, j(M, {
47060
47568
  get when() {
47061
47569
  return u().length > 0;
47062
47570
  },
47063
47571
  get children() {
47064
- return [e4(), j(We, {
47572
+ return [L4(), j(We, {
47065
47573
  get each() {
47066
47574
  return u();
47067
47575
  },
47068
- children: (e) => j(y4, {
47576
+ children: (e) => j(n3, {
47069
47577
  agent: e,
47070
47578
  review: !0,
47071
47579
  onOpen: le
@@ -47077,22 +47585,22 @@ function v4(e) {
47077
47585
  return l().length > 0;
47078
47586
  },
47079
47587
  get fallback() {
47080
- return l4();
47588
+ return K4();
47081
47589
  },
47082
47590
  get children() {
47083
47591
  return j(We, {
47084
47592
  get each() {
47085
47593
  return l();
47086
47594
  },
47087
- children: (e) => j(y4, {
47595
+ children: (e) => j(n3, {
47088
47596
  agent: e,
47089
47597
  onOpen: le
47090
47598
  })
47091
47599
  });
47092
47600
  }
47093
- }), 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;
47601
+ }), 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;
47094
47602
  }
47095
- }), null), E((t) => {
47603
+ }), null), D((t) => {
47096
47604
  var n = `${a().x}px`, r = `${a().y}px`;
47097
47605
  return n !== t.e && dt(e, "left", t.e = n), r !== t.t && dt(e, "top", t.t = r), t;
47098
47606
  }, {
@@ -47105,8 +47613,8 @@ function v4(e) {
47105
47613
  return t();
47106
47614
  },
47107
47615
  get children() {
47108
- var e = r4(), t = e.firstChild;
47109
- return t.$$pointerdown = ue, P(e, j(Y2, {
47616
+ var e = B4(), t = e.firstChild;
47617
+ return t.$$pointerdown = ue, P(e, j(M4, {
47110
47618
  onGrab: () => n(!0),
47111
47619
  onClose: () => n(!1),
47112
47620
  get onHeaderPointerDown() {
@@ -47116,9 +47624,9 @@ function v4(e) {
47116
47624
  return S();
47117
47625
  },
47118
47626
  onTogglePin: re
47119
- }), null), E((n) => {
47627
+ }), null), D((n) => {
47120
47628
  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 = {
47121
- width: `${k()}px`,
47629
+ width: `${te()}px`,
47122
47630
  ...!S() && v() ? {
47123
47631
  left: `${v().x}px`,
47124
47632
  top: `${v().y}px`,
@@ -47134,19 +47642,19 @@ function v4(e) {
47134
47642
  }
47135
47643
  })];
47136
47644
  }
47137
- function y4(e) {
47645
+ function n3(e) {
47138
47646
  return (() => {
47139
- var t = u4(), n = t.firstChild, r = n.firstChild, i = r.nextSibling, a = i.nextSibling, o = n.nextSibling, s = o.firstChild, c = s.nextSibling;
47647
+ var t = q4(), n = t.firstChild, r = n.firstChild, i = r.nextSibling, a = i.nextSibling, o = n.nextSibling, s = o.firstChild, c = s.nextSibling;
47140
47648
  return c.nextSibling, t.$$click = () => e.onOpen(e.agent.id), P(i, () => e.agent.identifier), P(a, () => e.agent.title), P(o, (() => {
47141
47649
  var t = $e(() => !!e.review);
47142
47650
  return () => t() ? "PR ready · needs review" : e.agent.stateName;
47143
- })(), s), P(o, () => e.agent.delegateName, c), P(o, () => b4(e.agent.updatedAt), null), E((t) => dt(r, "background", e.review ? "var(--color-warn)" : e.agent.stateColor)), t;
47651
+ })(), s), P(o, () => e.agent.delegateName, c), P(o, () => r3(e.agent.updatedAt), null), D((t) => dt(r, "background", e.review ? "var(--color-warn)" : e.agent.stateColor)), t;
47144
47652
  })();
47145
47653
  }
47146
- function b4(e) {
47654
+ function r3(e) {
47147
47655
  let t = Math.max(0, Math.floor((Date.now() - Date.parse(e)) / 1e3));
47148
47656
  return t < 60 ? "now" : t < 3600 ? `${Math.floor(t / 60)}m` : t < 86400 ? `${Math.floor(t / 3600)}h` : `${Math.floor(t / 86400)}d`;
47149
47657
  }
47150
47658
  rt(["pointerdown", "click"]);
47151
47659
  //#endregion
47152
- export { d4 as init };
47660
+ export { J4 as init };