@tryghost/activitypub 3.0.8 → 3.1.0

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.
Files changed (60) hide show
  1. package/dist/activitypub.js +2 -2
  2. package/dist/{at-sign-Fsk3x72r.mjs → at-sign-l8HMU0fk.mjs} +2 -2
  3. package/dist/{at-sign-Fsk3x72r.mjs.map → at-sign-l8HMU0fk.mjs.map} +1 -1
  4. package/dist/{avatar-flipboard-C10JfFS_.mjs → avatar-flipboard-D12yCmyH.mjs} +2 -2
  5. package/dist/{avatar-flipboard-C10JfFS_.mjs.map → avatar-flipboard-D12yCmyH.mjs.map} +1 -1
  6. package/dist/{bluesky-sharing-C1xeGSL6.mjs → bluesky-sharing-D65sfQFX.mjs} +4 -4
  7. package/dist/{bluesky-sharing-C1xeGSL6.mjs.map → bluesky-sharing-D65sfQFX.mjs.map} +1 -1
  8. package/dist/{copy-C1fElSkQ.mjs → copy-DCHXVz-9.mjs} +2 -2
  9. package/dist/{copy-C1fElSkQ.mjs.map → copy-DCHXVz-9.mjs.map} +1 -1
  10. package/dist/{deleted-feed-item-Bun4tY2_.mjs → deleted-feed-item-BkXeOOSC.mjs} +4 -4
  11. package/dist/{deleted-feed-item-Bun4tY2_.mjs.map → deleted-feed-item-BkXeOOSC.mjs.map} +1 -1
  12. package/dist/{edit-profile-CYh00FZ7.mjs → edit-profile-DdCJ6UkE.mjs} +3 -3
  13. package/dist/{edit-profile-CYh00FZ7.mjs.map → edit-profile-DdCJ6UkE.mjs.map} +1 -1
  14. package/dist/{feed-BxUqmcN9.mjs → feed-D4gYSgoO.mjs} +4 -4
  15. package/dist/{feed-BxUqmcN9.mjs.map → feed-D4gYSgoO.mjs.map} +1 -1
  16. package/dist/{hash-CNgwAx-U.mjs → hash-D_Ql6FHR.mjs} +2 -2
  17. package/dist/{hash-CNgwAx-U.mjs.map → hash-D_Ql6FHR.mjs.map} +1 -1
  18. package/dist/{inbox-DqNqII4a.mjs → inbox-BIeU-G-G.mjs} +2 -2
  19. package/dist/{inbox-DqNqII4a.mjs.map → inbox-BIeU-G-G.mjs.map} +1 -1
  20. package/dist/{index-CJJXnqq1.mjs → index-BlNT1f8K.mjs} +38 -38
  21. package/dist/index-BlNT1f8K.mjs.map +1 -0
  22. package/dist/{index-C9pnotJK.mjs → index-BurflorF.mjs} +466 -375
  23. package/dist/index-BurflorF.mjs.map +1 -0
  24. package/dist/{index-CONoLlDU.mjs → index-BvOcRwis.mjs} +2 -2
  25. package/dist/{index-CONoLlDU.mjs.map → index-BvOcRwis.mjs.map} +1 -1
  26. package/dist/{index-Dvh9q3jy.mjs → index-CPG1Xmp8.mjs} +6 -6
  27. package/dist/{index-Dvh9q3jy.mjs.map → index-CPG1Xmp8.mjs.map} +1 -1
  28. package/dist/{index--Q6orQkb.mjs → index-DIicyWvr.mjs} +10224 -9581
  29. package/dist/index-DIicyWvr.mjs.map +1 -0
  30. package/dist/{index-jhjmoHwu.mjs → index-DK0316YP.mjs} +13 -13
  31. package/dist/{index-jhjmoHwu.mjs.map → index-DK0316YP.mjs.map} +1 -1
  32. package/dist/{index-C3KJXzZE.mjs → index-DiYjJ67s.mjs} +115 -115
  33. package/dist/index-DiYjJ67s.mjs.map +1 -0
  34. package/dist/{index-BueIufRq.mjs → index-l72TqahD.mjs} +5 -5
  35. package/dist/{index-BueIufRq.mjs.map → index-l72TqahD.mjs.map} +1 -1
  36. package/dist/{moderation-CYhwUFi2.mjs → moderation-B0rtiaEH.mjs} +3 -3
  37. package/dist/{moderation-CYhwUFi2.mjs.map → moderation-B0rtiaEH.mjs.map} +1 -1
  38. package/dist/{note-COVa8CMw.mjs → note-DjaU27En.mjs} +4 -4
  39. package/dist/{note-COVa8CMw.mjs.map → note-DjaU27En.mjs.map} +1 -1
  40. package/dist/{reply-BHpKVBxx.mjs → reply-4cqNFwLY.mjs} +2 -2
  41. package/dist/{reply-BHpKVBxx.mjs.map → reply-4cqNFwLY.mjs.map} +1 -1
  42. package/dist/{separator-DP7q5sFH.mjs → separator-Dgj8LPTF.mjs} +12 -12
  43. package/dist/{separator-DP7q5sFH.mjs.map → separator-Dgj8LPTF.mjs.map} +1 -1
  44. package/dist/{settings-3n7zo_3K.mjs → settings-qNWc2HyW.mjs} +3 -3
  45. package/dist/{settings-3n7zo_3K.mjs.map → settings-qNWc2HyW.mjs.map} +1 -1
  46. package/dist/{step-1-BmUukywZ.mjs → step-1-CuRWXSkm.mjs} +12 -12
  47. package/dist/{step-1-BmUukywZ.mjs.map → step-1-CuRWXSkm.mjs.map} +1 -1
  48. package/dist/{step-2-C--I3xxp.mjs → step-2-BsxjLzY8.mjs} +5 -5
  49. package/dist/{step-2-C--I3xxp.mjs.map → step-2-BsxjLzY8.mjs.map} +1 -1
  50. package/dist/{step-3-0Deh5N9c.mjs → step-3-NBvYqr7R.mjs} +7 -7
  51. package/dist/{step-3-0Deh5N9c.mjs.map → step-3-NBvYqr7R.mjs.map} +1 -1
  52. package/dist/{tabs-D_vmoLBo.mjs → tabs-ROut24vi.mjs} +3 -3
  53. package/dist/{tabs-D_vmoLBo.mjs.map → tabs-ROut24vi.mjs.map} +1 -1
  54. package/dist/{topic-filter-DJMrhH-c.mjs → topic-filter-YL1wy3Q1.mjs} +2 -2
  55. package/dist/{topic-filter-DJMrhH-c.mjs.map → topic-filter-YL1wy3Q1.mjs.map} +1 -1
  56. package/package.json +3 -1
  57. package/dist/index--Q6orQkb.mjs.map +0 -1
  58. package/dist/index-C3KJXzZE.mjs.map +0 -1
  59. package/dist/index-C9pnotJK.mjs.map +0 -1
  60. package/dist/index-CJJXnqq1.mjs.map +0 -1
@@ -1,34 +1,34 @@
1
- import { a6 as Xn, R as Q, j as n, s as In, b as y, e as L, ba as Pn, bb as Fn, B as $, bE as ne, bc as Ln, bF as ee, c as U, bG as te, W as jn, d as Rn, bH as un, S as N, P as ae, A as oe, h as re, g as Cn, r as ie, aa as de, aT as ce, k as hn, F as cn, i as sn, bI as se, ab as le, a as ge, u as pe, l as ue, L as he, D as me, n as ke, o as fe, p as be, bJ as xe, bK as ve, bL as ye, av as zn, aw as we } from "./index--Q6orQkb.mjs";
2
- import { u as je, D as Ce, A as ze, S as Sn } from "./deleted-feed-item-Bun4tY2_.mjs";
3
- import { T as Se } from "./topic-filter-DJMrhH-c.mjs";
4
- import { S as _e } from "./separator-DP7q5sFH.mjs";
5
- import { I as _n } from "./inbox-DqNqII4a.mjs";
1
+ import { a6 as ee, R as Z, j as n, s as Fn, b as y, e as L, bb as Ln, bc as Rn, B as $, bF as te, bd as On, bG as ae, c as W, bH as oe, W as zn, d as Tn, bI as hn, S as N, P as re, A as ie, h as de, g as Cn, r as se, aa as ce, aU as le, k as mn, F as cn, i as ln, bJ as ge, bK as B, ac as pe, bL as Sn, a as ue, u as he, l as me, L as ke, D as fe, n as be, o as xe, p as ve, bM as ye, bN as we, bO as je, aw as _n, ax as ze } from "./index-DIicyWvr.mjs";
2
+ import { u as Ce, D as Se, A as _e, S as En } from "./deleted-feed-item-BkXeOOSC.mjs";
3
+ import { T as Ee } from "./topic-filter-YL1wy3Q1.mjs";
4
+ import { S as Ne } from "./separator-Dgj8LPTF.mjs";
5
+ import { I as Nn } from "./inbox-BIeU-G-G.mjs";
6
6
  /**
7
7
  * @license lucide-react v0.553.0 - ISC
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
11
  */
12
- const Ee = [["path", { d: "M5 12h14", key: "1ays0h" }]], Ne = Xn("minus", Ee), Tn = Q.forwardRef(({ children: a, className: r, ...t }, i) => /* @__PURE__ */ n.jsx(
12
+ const Ie = [["path", { d: "M5 12h14", key: "1ays0h" }]], Pe = ee("minus", Ie), Mn = Z.forwardRef(({ children: t, className: r, ...a }, i) => /* @__PURE__ */ n.jsx(
13
13
  "div",
14
14
  {
15
15
  ref: i,
16
- className: In("flex items-center justify-center rounded-full bg-muted w-12 h-12 max-w-12 max-h-12 [&_svg]:size-4 [&_svg]:text-muted-foreground [&_svg]:shrink-0", r),
17
- ...t,
18
- children: a
16
+ className: Fn("flex items-center justify-center rounded-full bg-muted w-12 h-12 max-w-12 max-h-12 [&_svg]:size-4 [&_svg]:text-muted-foreground [&_svg]:shrink-0", r),
17
+ ...a,
18
+ children: t
19
19
  }
20
20
  ));
21
- Tn.displayName = "EmptyBadge";
22
- const mn = Q.forwardRef(({ children: a, className: r, title: t, description: i, actions: d, ...u }, c) => /* @__PURE__ */ n.jsxs("div", { ref: c, className: In("flex flex-col items-center justify-center space-y-3 text-center", r), ...u, children: [
23
- /* @__PURE__ */ n.jsx(Tn, { children: a }),
21
+ Mn.displayName = "EmptyBadge";
22
+ const kn = Z.forwardRef(({ children: t, className: r, title: a, description: i, actions: d, ...u }, s) => /* @__PURE__ */ n.jsxs("div", { ref: s, className: Fn("flex flex-col items-center justify-center space-y-3 text-center", r), ...u, children: [
23
+ /* @__PURE__ */ n.jsx(Mn, { children: t }),
24
24
  /* @__PURE__ */ n.jsxs("div", { className: "max-w-[320px] space-y-1.5", children: [
25
- /* @__PURE__ */ n.jsx("h3", { className: "text-pretty text-md font-medium tracking-normal text-foreground", children: t }),
25
+ /* @__PURE__ */ n.jsx("h3", { className: "text-pretty text-md font-medium tracking-normal text-foreground", children: a }),
26
26
  i && /* @__PURE__ */ n.jsx("p", { className: "text-pretty text-sm leading-tight text-muted-foreground", children: i })
27
27
  ] }),
28
28
  d && /* @__PURE__ */ n.jsx("div", { className: "mt-4 flex items-center gap-2", children: d })
29
29
  ] }));
30
- mn.displayName = "EmptyIndicator";
31
- const kn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Y = {
30
+ kn.displayName = "EmptyIndicator";
31
+ const fn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Q = {
32
32
  BACKGROUND_COLOR: "ghost-ap-background-color",
33
33
  FONT_SIZE: "ghost-ap-font-size",
34
34
  FONT_STYLE: "ghost-ap-font-style"
@@ -61,77 +61,77 @@ const kn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Y = {
61
61
  button: "text-white dark:bg-black dark:hover:bg-gray-900",
62
62
  border: "border-black/[8%] dark:border-gray-950"
63
63
  }
64
- }, Ie = () => {
65
- const [a, r] = y(() => {
66
- const o = localStorage.getItem(Y.BACKGROUND_COLOR);
64
+ }, Fe = () => {
65
+ const [t, r] = y(() => {
66
+ const o = localStorage.getItem(Q.BACKGROUND_COLOR);
67
67
  return (o == null ? void 0 : o.toUpperCase()) || "SYSTEM";
68
- }), [t, i] = y(() => {
69
- const o = localStorage.getItem(Y.FONT_SIZE);
68
+ }), [a, i] = y(() => {
69
+ const o = localStorage.getItem(Q.FONT_SIZE);
70
70
  return o ? parseInt(o) : 2;
71
- }), [d, u] = y(() => localStorage.getItem(Y.FONT_STYLE) || "sans"), c = (o) => {
72
- r(o), localStorage.setItem(Y.BACKGROUND_COLOR, F[o].id);
71
+ }), [d, u] = y(() => localStorage.getItem(Q.FONT_STYLE) || "sans"), s = (o) => {
72
+ r(o), localStorage.setItem(Q.BACKGROUND_COLOR, F[o].id);
73
73
  };
74
74
  return L(() => {
75
- localStorage.setItem(Y.FONT_SIZE, t.toString());
76
- }, [t]), L(() => {
77
- localStorage.setItem(Y.FONT_STYLE, d);
75
+ localStorage.setItem(Q.FONT_SIZE, a.toString());
76
+ }, [a]), L(() => {
77
+ localStorage.setItem(Q.FONT_STYLE, d);
78
78
  }, [d]), {
79
- backgroundColor: a,
80
- currentFontSizeIndex: t,
79
+ backgroundColor: t,
80
+ currentFontSizeIndex: a,
81
81
  fontStyle: d,
82
- handleColorChange: c,
82
+ handleColorChange: s,
83
83
  setFontStyle: u,
84
84
  increaseFontSize: () => {
85
- i((o) => Math.min(o + 1, kn.length - 1));
85
+ i((o) => Math.min(o + 1, fn.length - 1));
86
86
  },
87
87
  decreaseFontSize: () => {
88
88
  i((o) => Math.max(o - 1, 0));
89
89
  },
90
90
  resetFontSize: () => i(2),
91
- fontSize: kn[t]
91
+ fontSize: fn[a]
92
92
  };
93
- }, En = ({
94
- backgroundColor: a,
93
+ }, In = ({
94
+ backgroundColor: t,
95
95
  currentFontSizeIndex: r,
96
- fontStyle: t,
96
+ fontStyle: a,
97
97
  onColorChange: i,
98
98
  onFontStyleChange: d,
99
99
  onDecreaseFontSize: u,
100
- onIncreaseFontSize: c,
100
+ onIncreaseFontSize: s,
101
101
  onResetFontSize: h,
102
102
  onOpenChange: v
103
103
  }) => {
104
- const p = (s) => a === s, o = (s) => t === s;
104
+ const p = (c) => t === c, o = (c) => a === c;
105
105
  return /* @__PURE__ */ n.jsx(
106
- Pe,
106
+ Le,
107
107
  {
108
- backgroundColor: a,
108
+ backgroundColor: t,
109
109
  currentFontSizeIndex: r,
110
- fontStyle: t,
110
+ fontStyle: a,
111
111
  isActiveColor: p,
112
112
  isActiveFont: o,
113
113
  onColorChange: i,
114
114
  onDecreaseFontSize: u,
115
115
  onFontStyleChange: d,
116
- onIncreaseFontSize: c,
116
+ onIncreaseFontSize: s,
117
117
  onOpenChange: v,
118
118
  onResetFontSize: h
119
119
  }
120
120
  );
121
- }, Pe = ({
122
- backgroundColor: a,
121
+ }, Le = ({
122
+ backgroundColor: t,
123
123
  isActiveColor: r,
124
- isActiveFont: t,
124
+ isActiveFont: a,
125
125
  onColorChange: i,
126
126
  onFontStyleChange: d,
127
127
  currentFontSizeIndex: u,
128
- onDecreaseFontSize: c,
128
+ onDecreaseFontSize: s,
129
129
  onIncreaseFontSize: h,
130
130
  onResetFontSize: v,
131
131
  onOpenChange: p
132
- }) => /* @__PURE__ */ n.jsxs(Pn, { modal: !1, onOpenChange: p, children: [
133
- /* @__PURE__ */ n.jsx(Fn, { asChild: !0, children: /* @__PURE__ */ n.jsx($, { className: `size-9 rounded-full ${F[a].button}`, variant: "ghost", children: /* @__PURE__ */ n.jsx(ne.Typography, { className: "!size-[18px]" }) }) }),
134
- /* @__PURE__ */ n.jsx(Ln, { align: "end", className: "w-[224px]", onCloseAutoFocus: (o) => o.preventDefault(), onOpenAutoFocus: (o) => o.preventDefault(), children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4", children: [
132
+ }) => /* @__PURE__ */ n.jsxs(Ln, { modal: !1, onOpenChange: p, children: [
133
+ /* @__PURE__ */ n.jsx(Rn, { asChild: !0, children: /* @__PURE__ */ n.jsx($, { className: `size-9 rounded-full ${F[t].button}`, variant: "ghost", children: /* @__PURE__ */ n.jsx(te.Typography, { className: "!size-[18px]" }) }) }),
134
+ /* @__PURE__ */ n.jsx(On, { align: "end", className: "w-[224px]", onCloseAutoFocus: (o) => o.preventDefault(), onOpenAutoFocus: (o) => o.preventDefault(), children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4", children: [
135
135
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between gap-[6px]", children: [
136
136
  /* @__PURE__ */ n.jsx(
137
137
  $,
@@ -168,7 +168,7 @@ const kn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Y = {
168
168
  /* @__PURE__ */ n.jsxs(
169
169
  $,
170
170
  {
171
- className: `flex h-auto w-full flex-col gap-1 rounded-[6px] bg-gray-200 text-black hover:bg-gray-250 dark:bg-gray-925 dark:text-white dark:hover:bg-gray-900 ${t("sans") && "outline outline-2 outline-green"}`,
171
+ className: `flex h-auto w-full flex-col gap-1 rounded-[6px] bg-gray-200 text-black hover:bg-gray-250 dark:bg-gray-925 dark:text-white dark:hover:bg-gray-900 ${a("sans") && "outline outline-2 outline-green"}`,
172
172
  variant: "secondary",
173
173
  onClick: () => d("sans"),
174
174
  children: [
@@ -180,7 +180,7 @@ const kn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Y = {
180
180
  /* @__PURE__ */ n.jsxs(
181
181
  $,
182
182
  {
183
- className: `flex h-auto w-full flex-col gap-1 rounded-[6px] bg-gray-200 text-black hover:bg-gray-250 dark:bg-gray-925 dark:text-white dark:hover:bg-gray-900 ${t("serif") && "outline outline-2 outline-green"}`,
183
+ className: `flex h-auto w-full flex-col gap-1 rounded-[6px] bg-gray-200 text-black hover:bg-gray-250 dark:bg-gray-925 dark:text-white dark:hover:bg-gray-900 ${a("serif") && "outline outline-2 outline-green"}`,
184
184
  variant: "secondary",
185
185
  onClick: () => d("serif"),
186
186
  children: [
@@ -197,8 +197,8 @@ const kn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Y = {
197
197
  className: "h-8 w-full rounded-[6px] bg-gray-200 text-black hover:bg-gray-250 dark:bg-gray-925 dark:text-white dark:hover:bg-gray-900 [&_svg]:size-[14px]",
198
198
  disabled: u === 0,
199
199
  variant: "secondary",
200
- onClick: c,
201
- children: /* @__PURE__ */ n.jsx(Ne, {})
200
+ onClick: s,
201
+ children: /* @__PURE__ */ n.jsx(Pe, {})
202
202
  }
203
203
  ),
204
204
  /* @__PURE__ */ n.jsx(
@@ -214,26 +214,26 @@ const kn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Y = {
214
214
  $,
215
215
  {
216
216
  className: "h-8 w-full rounded-[6px] bg-gray-200 text-black hover:bg-gray-250 dark:bg-gray-925 dark:text-white dark:hover:bg-gray-900 [&_svg]:size-[14px]",
217
- disabled: u === kn.length - 1,
217
+ disabled: u === fn.length - 1,
218
218
  variant: "secondary",
219
219
  onClick: h,
220
- children: /* @__PURE__ */ n.jsx(ee, {})
220
+ children: /* @__PURE__ */ n.jsx(ae, {})
221
221
  }
222
222
  )
223
223
  ] })
224
224
  ] }) })
225
- ] }), Fe = ({
226
- tocItems: a,
225
+ ] }), Re = ({
226
+ tocItems: t,
227
227
  iframeElement: r,
228
- modalRef: t,
228
+ modalRef: a,
229
229
  className: i = "!visible absolute inset-y-0 right-7 z-40 hidden lg:!block",
230
230
  onOpenChange: d
231
231
  }) => {
232
- const [u, c] = y(null), h = Q.useRef(!1), v = (p) => {
232
+ const [u, s] = y(null), h = Z.useRef(!1), v = (p) => {
233
233
  if (!(r != null && r.contentDocument))
234
234
  return;
235
235
  const o = r.contentDocument.getElementById(p);
236
- o && t.current && (h.current = !0, c(p), t.current.scrollTo({
236
+ o && a.current && (h.current = !0, s(p), a.current.scrollTo({
237
237
  top: o.offsetTop - 20,
238
238
  behavior: "smooth"
239
239
  }), setTimeout(() => {
@@ -241,9 +241,9 @@ const kn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Y = {
241
241
  }, 1e3));
242
242
  };
243
243
  return L(() => {
244
- if (!(r != null && r.contentDocument) || a.length <= 1)
244
+ if (!(r != null && r.contentDocument) || t.length <= 1)
245
245
  return;
246
- const p = t.current;
246
+ const p = a.current;
247
247
  if (!p)
248
248
  return;
249
249
  const o = () => {
@@ -252,58 +252,58 @@ const kn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Y = {
252
252
  const l = r.contentDocument;
253
253
  if (!l)
254
254
  return;
255
- const I = p.scrollTop, R = 100, B = a.map((z) => l.getElementById(z.id)).filter((z) => z !== null).map((z) => ({
256
- id: z.id,
257
- top: z.offsetTop
255
+ const I = p.scrollTop, R = 100, q = t.map((C) => l.getElementById(C.id)).filter((C) => C !== null).map((C) => ({
256
+ id: C.id,
257
+ top: C.offsetTop
258
258
  }));
259
- if (!B.length)
259
+ if (!q.length)
260
260
  return;
261
- const _ = B.reduce((z, A) => A.top - R <= I ? A : z);
262
- c((_ == null ? void 0 : _.id) || null);
263
- }, s = () => {
261
+ const _ = q.reduce((C, A) => A.top - R <= I ? A : C);
262
+ s((_ == null ? void 0 : _.id) || null);
263
+ }, c = () => {
264
264
  requestAnimationFrame(o);
265
265
  };
266
- return p.addEventListener("scroll", s), o(), () => {
267
- p.removeEventListener("scroll", s);
266
+ return p.addEventListener("scroll", c), o(), () => {
267
+ p.removeEventListener("scroll", c);
268
268
  };
269
- }, [r, a, t]), a.length <= 1 ? null : /* @__PURE__ */ n.jsx("div", { className: i, children: /* @__PURE__ */ n.jsx("div", { className: "sticky top-1/2 -translate-y-1/2", children: /* @__PURE__ */ n.jsx(
270
- Te,
269
+ }, [r, t, a]), t.length <= 1 ? null : /* @__PURE__ */ n.jsx("div", { className: i, children: /* @__PURE__ */ n.jsx("div", { className: "sticky top-1/2 -translate-y-1/2", children: /* @__PURE__ */ n.jsx(
270
+ Me,
271
271
  {
272
272
  activeHeading: u || "",
273
- items: a,
273
+ items: t,
274
274
  onItemClick: v,
275
275
  onOpenChange: d
276
276
  }
277
277
  ) }) });
278
- }, Le = {
278
+ }, Oe = {
279
279
  1: "w-3",
280
280
  2: "w-2",
281
281
  3: "w-1"
282
- }, Re = {
282
+ }, Te = {
283
283
  1: "pl-2",
284
284
  2: "pl-6",
285
285
  3: "pl-10"
286
- }, Te = ({ items: a, activeHeading: r, onItemClick: t, onOpenChange: i }) => {
287
- const [d, u] = y(!1), c = Q.useRef();
288
- if (Q.useEffect(() => () => {
289
- c.current && clearTimeout(c.current);
290
- }, []), a.length === 0)
286
+ }, Me = ({ items: t, activeHeading: r, onItemClick: a, onOpenChange: i }) => {
287
+ const [d, u] = y(!1), s = Z.useRef();
288
+ if (Z.useEffect(() => () => {
289
+ s.current && clearTimeout(s.current);
290
+ }, []), t.length === 0)
291
291
  return null;
292
- const h = (l) => Math.min(l, 3), v = (l) => Le[h(l)], p = (l) => Re[h(l)], o = () => {
293
- c.current && clearTimeout(c.current), u(!0), i == null || i(!0);
294
- }, s = () => {
295
- c.current = setTimeout(() => {
292
+ const h = (l) => Math.min(l, 3), v = (l) => Oe[h(l)], p = (l) => Te[h(l)], o = () => {
293
+ s.current && clearTimeout(s.current), u(!0), i == null || i(!0);
294
+ }, c = () => {
295
+ s.current = setTimeout(() => {
296
296
  u(!1), i == null || i(!1);
297
297
  }, 100);
298
298
  };
299
- return /* @__PURE__ */ n.jsxs(Pn, { modal: !1, open: d, onOpenChange: u, children: [
300
- /* @__PURE__ */ n.jsx(Fn, { asChild: !0, children: /* @__PURE__ */ n.jsx(
299
+ return /* @__PURE__ */ n.jsxs(Ln, { modal: !1, open: d, onOpenChange: u, children: [
300
+ /* @__PURE__ */ n.jsx(Rn, { asChild: !0, children: /* @__PURE__ */ n.jsx(
301
301
  "div",
302
302
  {
303
303
  className: "absolute right-2 top-1/2 flex -translate-y-1/2 flex-col items-end gap-2 rounded-md p-2 text-base dark:bg-black",
304
304
  onMouseEnter: o,
305
- onMouseLeave: s,
306
- children: a.map((l) => /* @__PURE__ */ n.jsx(
305
+ onMouseLeave: c,
306
+ children: t.map((l) => /* @__PURE__ */ n.jsx(
307
307
  "div",
308
308
  {
309
309
  className: `h-[2px] rounded-sm ${r === l.id ? "bg-black dark:bg-white" : "bg-gray-400 dark:bg-gray-700"} pr-1 transition-all ${v(l.level)}`
@@ -313,7 +313,7 @@ const kn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Y = {
313
313
  }
314
314
  ) }),
315
315
  /* @__PURE__ */ n.jsx(
316
- Ln,
316
+ On,
317
317
  {
318
318
  align: "center",
319
319
  className: "w-[240px] p-2",
@@ -321,7 +321,7 @@ const kn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Y = {
321
321
  sideOffset: -28,
322
322
  onCloseAutoFocus: (l) => l.preventDefault(),
323
323
  onMouseEnter: o,
324
- onMouseLeave: s,
324
+ onMouseLeave: c,
325
325
  onOpenAutoFocus: (l) => l.preventDefault(),
326
326
  children: /* @__PURE__ */ n.jsx(
327
327
  "nav",
@@ -329,12 +329,12 @@ const kn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Y = {
329
329
  "aria-label": "Table of contents navigation",
330
330
  className: "max-h-[60vh] overflow-y-auto",
331
331
  role: "navigation",
332
- children: a.map((l) => /* @__PURE__ */ n.jsx(
332
+ children: t.map((l) => /* @__PURE__ */ n.jsx(
333
333
  "button",
334
334
  {
335
335
  className: `line-clamp-2 block w-full cursor-pointer rounded py-1 text-left text-sm leading-tight ${r === l.id ? "text-black dark:text-white" : "text-gray-700 dark:text-gray-600"} hover:bg-gray-75 hover:text-gray-900 dark:hover:bg-grey-925 dark:hover:text-white ${p(l.level)}`,
336
336
  type: "button",
337
- onClick: () => t(l.id),
337
+ onClick: () => a(l.id),
338
338
  children: /* @__PURE__ */ n.jsx("span", { className: "line-clamp-2", children: l.text })
339
339
  },
340
340
  l.id
@@ -344,7 +344,7 @@ const kn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Y = {
344
344
  }
345
345
  )
346
346
  ] });
347
- }, Oe = () => `<style>
347
+ }, Ae = () => `<style>
348
348
 
349
349
  /* Variables */
350
350
 
@@ -929,7 +929,7 @@ html.has-light-text .gh-paid-content-notice {
929
929
  font-family: var(--font-serif-alt);
930
930
  }
931
931
 
932
- </style>`, Me = `(function() {
932
+ </style>`, $e = `(function() {
933
933
  const handleAudioPlayer = function (audioElementContainer) {
934
934
  const audioPlayerContainer = audioElementContainer.querySelector('.kg-audio-player-container');
935
935
  const playIconContainer = audioElementContainer.querySelector('.kg-audio-play-icon');
@@ -1075,10 +1075,10 @@ html.has-light-text .gh-paid-content-notice {
1075
1075
  handleAudioPlayer(audioCardElements[i]);
1076
1076
  }
1077
1077
  })();
1078
- `, Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1078
+ `, De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1079
1079
  __proto__: null,
1080
- default: Me
1081
- }, Symbol.toStringTag, { value: "Module" })), $e = `(function() {
1080
+ default: $e
1081
+ }, Symbol.toStringTag, { value: "Module" })), Be = `(function() {
1082
1082
  const images = document.querySelectorAll('.kg-gallery-image img');
1083
1083
  images.forEach(function (image) {
1084
1084
  const container = image.closest('.kg-gallery-image');
@@ -1088,10 +1088,10 @@ html.has-light-text .gh-paid-content-notice {
1088
1088
  container.style.flex = ratio + ' 1 0%';
1089
1089
  })
1090
1090
  })();
1091
- `, De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1091
+ `, qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1092
1092
  __proto__: null,
1093
- default: $e
1094
- }, Symbol.toStringTag, { value: "Module" })), Be = `(function() {
1093
+ default: Be
1094
+ }, Symbol.toStringTag, { value: "Module" })), He = `(function() {
1095
1095
  const toggleHeadingElements = document.getElementsByClassName("kg-toggle-heading");
1096
1096
 
1097
1097
  const toggleFn = function(event) {
@@ -1109,10 +1109,10 @@ html.has-light-text .gh-paid-content-notice {
1109
1109
  toggleHeadingElements[i].addEventListener('click', toggleFn, false);
1110
1110
  }
1111
1111
  })();
1112
- `, qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1112
+ `, Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1113
1113
  __proto__: null,
1114
- default: Be
1115
- }, Symbol.toStringTag, { value: "Module" })), He = `(function() {
1114
+ default: He
1115
+ }, Symbol.toStringTag, { value: "Module" })), We = `(function() {
1116
1116
  const handleVideoPlayer = function (videoElementContainer) {
1117
1117
  const videoPlayer = videoElementContainer.querySelector('.kg-video-player');
1118
1118
  const videoPlayerContainer = videoElementContainer.querySelector('.kg-video-player-container');
@@ -1354,10 +1354,10 @@ html.has-light-text .gh-paid-content-notice {
1354
1354
  handleVideoPlayer(videoCardElements[i]);
1355
1355
  }
1356
1356
  })();
1357
- `, Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1357
+ `, Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1358
1358
  __proto__: null,
1359
- default: He
1360
- }, Symbol.toStringTag, { value: "Module" })), We = `.kg-audio-card,
1359
+ default: We
1360
+ }, Symbol.toStringTag, { value: "Module" })), Ve = `.kg-audio-card,
1361
1361
  .kg-audio-card * {
1362
1362
  box-sizing: border-box;
1363
1363
  }
@@ -1689,10 +1689,10 @@ html.has-light-text .gh-paid-content-notice {
1689
1689
  .kg-audio-player-container input[type="range"]:active::-ms-thumb {
1690
1690
  transform: scale(1.2);
1691
1691
  }
1692
- `, Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1692
+ `, Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1693
1693
  __proto__: null,
1694
- default: We
1695
- }, Symbol.toStringTag, { value: "Module" })), Ve = `.kg-blockquote-alt {
1694
+ default: Ve
1695
+ }, Symbol.toStringTag, { value: "Module" })), Qe = `.kg-blockquote-alt {
1696
1696
  font-size: 1.5em;
1697
1697
  font-style: italic;
1698
1698
  line-height: 1.7em;
@@ -1715,10 +1715,10 @@ html.has-light-text .gh-paid-content-notice {
1715
1715
  padding-right: 1.75em;
1716
1716
  }
1717
1717
  }
1718
- `, Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1718
+ `, Ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1719
1719
  __proto__: null,
1720
- default: Ve
1721
- }, Symbol.toStringTag, { value: "Module" })), Qe = `.kg-bookmark-card,
1720
+ default: Qe
1721
+ }, Symbol.toStringTag, { value: "Module" })), Je = `.kg-bookmark-card,
1722
1722
  .kg-bookmark-card * {
1723
1723
  box-sizing: border-box;
1724
1724
  }
@@ -1834,10 +1834,10 @@ html.has-light-text .gh-paid-content-notice {
1834
1834
  left: 0;
1835
1835
  border-radius: 0 2px 2px 0;
1836
1836
  }
1837
- `, Ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1837
+ `, Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1838
1838
  __proto__: null,
1839
- default: Qe
1840
- }, Symbol.toStringTag, { value: "Module" })), Je = `.kg-button-card,
1839
+ default: Je
1840
+ }, Symbol.toStringTag, { value: "Module" })), Xe = `.kg-button-card,
1841
1841
  .kg-button-card * {
1842
1842
  box-sizing: border-box;
1843
1843
  }
@@ -1876,10 +1876,10 @@ html.has-light-text .gh-paid-content-notice {
1876
1876
  .kg-button-card a.kg-btn-accent {
1877
1877
  background-color: var(--ghost-accent-color);
1878
1878
  color: #fff;
1879
- }`, Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1879
+ }`, nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1880
1880
  __proto__: null,
1881
- default: Je
1882
- }, Symbol.toStringTag, { value: "Module" })), Xe = `.kg-callout-card,
1881
+ default: Xe
1882
+ }, Symbol.toStringTag, { value: "Module" })), et = `.kg-callout-card,
1883
1883
  .kg-callout-card * {
1884
1884
  box-sizing: border-box;
1885
1885
  }
@@ -1946,10 +1946,10 @@ html.has-light-text .gh-paid-content-notice {
1946
1946
 
1947
1947
  .kg-callout-card + .kg-callout-card {
1948
1948
  margin-top: 1em;
1949
- }`, nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1949
+ }`, tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1950
1950
  __proto__: null,
1951
- default: Xe
1952
- }, Symbol.toStringTag, { value: "Module" })), et = `.kg-collection-card {
1951
+ default: et
1952
+ }, Symbol.toStringTag, { value: "Module" })), at = `.kg-collection-card {
1953
1953
  width: 100%;
1954
1954
  margin-top: 6vmin;
1955
1955
  }
@@ -2164,10 +2164,10 @@ p.kg-collection-card-post-excerpt {
2164
2164
  .kg-collection-card-grid.columns-4 h2.kg-collection-card-post-title {
2165
2165
  font-size: 1.7rem;
2166
2166
  }
2167
- }`, tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2167
+ }`, ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2168
2168
  __proto__: null,
2169
- default: et
2170
- }, Symbol.toStringTag, { value: "Module" })), at = `.kg-cta-card,
2169
+ default: at
2170
+ }, Symbol.toStringTag, { value: "Module" })), rt = `.kg-cta-card,
2171
2171
  .kg-cta-card * {
2172
2172
  box-sizing: border-box;
2173
2173
  }
@@ -2419,10 +2419,10 @@ a.kg-cta-button {
2419
2419
  width: 100%;
2420
2420
  }
2421
2421
 
2422
- `, ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2422
+ `, it = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2423
2423
  __proto__: null,
2424
- default: at
2425
- }, Symbol.toStringTag, { value: "Module" })), rt = `.kg-file-card,
2424
+ default: rt
2425
+ }, Symbol.toStringTag, { value: "Module" })), dt = `.kg-file-card,
2426
2426
  .kg-file-card * {
2427
2427
  box-sizing: border-box;
2428
2428
  }
@@ -2565,10 +2565,10 @@ a.kg-cta-button {
2565
2565
  .kg-file-card + .kg-file-card {
2566
2566
  margin-top: 1em;
2567
2567
  }
2568
- `, it = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2568
+ `, st = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2569
2569
  __proto__: null,
2570
- default: rt
2571
- }, Symbol.toStringTag, { value: "Module" })), dt = `.kg-gallery-card,
2570
+ default: dt
2571
+ }, Symbol.toStringTag, { value: "Module" })), ct = `.kg-gallery-card,
2572
2572
  .kg-gallery-card * {
2573
2573
  box-sizing: border-box;
2574
2574
  }
@@ -2616,10 +2616,10 @@ a.kg-cta-button {
2616
2616
  --gap: 0.6rem;
2617
2617
  }
2618
2618
  }
2619
- `, ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2619
+ `, lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2620
2620
  __proto__: null,
2621
- default: dt
2622
- }, Symbol.toStringTag, { value: "Module" })), st = `.kg-header-card,
2621
+ default: ct
2622
+ }, Symbol.toStringTag, { value: "Module" })), gt = `.kg-header-card,
2623
2623
  .kg-header-card * {
2624
2624
  box-sizing: border-box;
2625
2625
  }
@@ -2852,10 +2852,10 @@ a.kg-cta-button {
2852
2852
  font-size: 1em;
2853
2853
  }
2854
2854
  }
2855
- `, lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2855
+ `, pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2856
2856
  __proto__: null,
2857
- default: st
2858
- }, Symbol.toStringTag, { value: "Module" })), gt = `.kg-header-card.kg-v2 {
2857
+ default: gt
2858
+ }, Symbol.toStringTag, { value: "Module" })), ut = `.kg-header-card.kg-v2 {
2859
2859
  position: relative;
2860
2860
  padding: 0;
2861
2861
  min-height: initial;
@@ -3117,10 +3117,10 @@ a.kg-cta-button {
3117
3117
  font-size: 1em;
3118
3118
  }
3119
3119
  }
3120
- `, pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3120
+ `, ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3121
3121
  __proto__: null,
3122
- default: gt
3123
- }, Symbol.toStringTag, { value: "Module" })), ut = `.kg-nft-card,
3122
+ default: ut
3123
+ }, Symbol.toStringTag, { value: "Module" })), mt = `.kg-nft-card,
3124
3124
  .kg-nft-card * {
3125
3125
  box-sizing: border-box;
3126
3126
  }
@@ -3214,10 +3214,10 @@ a.kg-cta-button {
3214
3214
  line-height: 1.4em;
3215
3215
  margin: 20px 0 0;
3216
3216
  color: #222;
3217
- }`, ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3217
+ }`, kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3218
3218
  __proto__: null,
3219
- default: ut
3220
- }, Symbol.toStringTag, { value: "Module" })), mt = `.kg-product-card,
3219
+ default: mt
3220
+ }, Symbol.toStringTag, { value: "Module" })), ft = `.kg-product-card,
3221
3221
  .kg-product-card * {
3222
3222
  box-sizing: border-box;
3223
3223
  }
@@ -3350,10 +3350,10 @@ a.kg-cta-button {
3350
3350
  background-color: var(--ghost-accent-color);
3351
3351
  color: #fff;
3352
3352
  }
3353
- `, kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3353
+ `, bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3354
3354
  __proto__: null,
3355
- default: mt
3356
- }, Symbol.toStringTag, { value: "Module" })), ft = `.kg-signup-card {
3355
+ default: ft
3356
+ }, Symbol.toStringTag, { value: "Module" })), xt = `.kg-signup-card {
3357
3357
  position: relative;
3358
3358
  }
3359
3359
 
@@ -3735,10 +3735,10 @@ a.kg-cta-button {
3735
3735
  font-size: 1em;
3736
3736
  }
3737
3737
  }
3738
- `, bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3738
+ `, vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3739
3739
  __proto__: null,
3740
- default: ft
3741
- }, Symbol.toStringTag, { value: "Module" })), xt = `.kg-toggle-card,
3740
+ default: xt
3741
+ }, Symbol.toStringTag, { value: "Module" })), yt = `.kg-toggle-card,
3742
3742
  .kg-toggle-card * {
3743
3743
  box-sizing: border-box;
3744
3744
  }
@@ -3835,10 +3835,101 @@ a.kg-cta-button {
3835
3835
  .kg-toggle-card + .kg-toggle-card {
3836
3836
  margin-top: 1em;
3837
3837
  }
3838
- `, vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3838
+ `, wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3839
3839
  __proto__: null,
3840
- default: xt
3841
- }, Symbol.toStringTag, { value: "Module" })), yt = `.kg-video-card,
3840
+ default: yt
3841
+ }, Symbol.toStringTag, { value: "Module" })), jt = `.kg-transistor-card {
3842
+ display: flex;
3843
+ justify-content: center;
3844
+ }
3845
+
3846
+ .kg-transistor-placeholder {
3847
+ display: flex;
3848
+ flex-direction: column;
3849
+ align-items: center;
3850
+ gap: 2.4rem;
3851
+ width: 100%;
3852
+ max-width: 100%;
3853
+ padding: 3rem 2.4rem;
3854
+ border: 1px solid rgba(255, 255, 255, 0.14);
3855
+ border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
3856
+ border-radius: 12px;
3857
+ background: rgba(255, 255, 255, 0.04);
3858
+ background: color-mix(in srgb, currentColor 4%, transparent);
3859
+ color: inherit;
3860
+ text-align: center;
3861
+ box-sizing: border-box;
3862
+ }
3863
+
3864
+ .kg-transistor-icon {
3865
+ display: flex;
3866
+ flex-shrink: 0;
3867
+ align-items: center;
3868
+ justify-content: center;
3869
+ width: 116px;
3870
+ height: 116px;
3871
+ border-radius: 14px;
3872
+ background: var(--ghost-accent-color, #b8a5ac);
3873
+ color: #fff;
3874
+ }
3875
+
3876
+ .kg-transistor-icon svg {
3877
+ display: block;
3878
+ width: 56px;
3879
+ height: 56px;
3880
+ }
3881
+
3882
+ .kg-transistor-content {
3883
+ min-width: 0;
3884
+ max-width: 640px;
3885
+ }
3886
+
3887
+ .kg-transistor-title {
3888
+ margin: 0;
3889
+ color: inherit;
3890
+ font-size: 2.3rem;
3891
+ font-weight: 600;
3892
+ line-height: 1.2;
3893
+ }
3894
+
3895
+ .kg-transistor-description {
3896
+ margin-top: 1.6rem;
3897
+ color: inherit;
3898
+ font-size: 1.6rem;
3899
+ line-height: 1.5;
3900
+ opacity: 0.65;
3901
+ }
3902
+
3903
+ @media (max-width: 640px) {
3904
+ .kg-transistor-placeholder {
3905
+ gap: 1.6rem;
3906
+ padding: 2.4rem 1.8rem;
3907
+ }
3908
+
3909
+ .kg-transistor-icon {
3910
+ width: 88px;
3911
+ height: 88px;
3912
+ border-radius: 12px;
3913
+ }
3914
+
3915
+ .kg-transistor-icon svg {
3916
+ width: 44px;
3917
+ height: 44px;
3918
+ }
3919
+
3920
+ .kg-transistor-title {
3921
+ font-size: 1.8rem;
3922
+ }
3923
+
3924
+ .kg-transistor-description {
3925
+ margin-top: 1rem;
3926
+ font-size: 1.45rem;
3927
+ }
3928
+ }
3929
+ `, zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3930
+ __proto__: null,
3931
+ default: jt
3932
+ }, Symbol.toStringTag, { value: "Module" })), Ct = `.kg-video-card,
3842
3933
  .kg-video-card * {
3843
3934
  box-sizing: border-box;
3844
3935
  }
@@ -4193,32 +4284,32 @@ a.kg-cta-button {
4193
4284
  transform: scale(1.2);
4194
4285
  }
4195
4286
 
4196
- `, wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4287
+ `, St = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4197
4288
  __proto__: null,
4198
- default: yt
4199
- }, Symbol.toStringTag, { value: "Module" })), jt = /* @__PURE__ */ Object.assign({ "../../ghost/core/core/frontend/src/cards/js/audio.js": Ae, "../../ghost/core/core/frontend/src/cards/js/gallery.js": De, "../../ghost/core/core/frontend/src/cards/js/toggle.js": qe, "../../ghost/core/core/frontend/src/cards/js/video.js": Ue }), Ct = /* @__PURE__ */ Object.assign({ "../../ghost/core/core/frontend/src/cards/css/audio.css": Ke, "../../ghost/core/core/frontend/src/cards/css/blockquote.css": Ye, "../../ghost/core/core/frontend/src/cards/css/bookmark.css": Ze, "../../ghost/core/core/frontend/src/cards/css/button.css": Ge, "../../ghost/core/core/frontend/src/cards/css/callout.css": nt, "../../ghost/core/core/frontend/src/cards/css/collection.css": tt, "../../ghost/core/core/frontend/src/cards/css/cta.css": ot, "../../ghost/core/core/frontend/src/cards/css/file.css": it, "../../ghost/core/core/frontend/src/cards/css/gallery.css": ct, "../../ghost/core/core/frontend/src/cards/css/header.css": lt, "../../ghost/core/core/frontend/src/cards/css/header_v2.css": pt, "../../ghost/core/core/frontend/src/cards/css/nft.css": ht, "../../ghost/core/core/frontend/src/cards/css/product.css": kt, "../../ghost/core/core/frontend/src/cards/css/signup.css": bt, "../../ghost/core/core/frontend/src/cards/css/toggle.css": vt, "../../ghost/core/core/frontend/src/cards/css/video.css": wt }), zt = Object.values(jt).map((a) => a.default).join(`
4289
+ default: Ct
4290
+ }, Symbol.toStringTag, { value: "Module" })), _t = /* @__PURE__ */ Object.assign({ "../../ghost/core/core/frontend/src/cards/js/audio.js": De, "../../ghost/core/core/frontend/src/cards/js/gallery.js": qe, "../../ghost/core/core/frontend/src/cards/js/toggle.js": Ue, "../../ghost/core/core/frontend/src/cards/js/video.js": Ke }), Et = /* @__PURE__ */ Object.assign({ "../../ghost/core/core/frontend/src/cards/css/audio.css": Ye, "../../ghost/core/core/frontend/src/cards/css/blockquote.css": Ze, "../../ghost/core/core/frontend/src/cards/css/bookmark.css": Ge, "../../ghost/core/core/frontend/src/cards/css/button.css": nt, "../../ghost/core/core/frontend/src/cards/css/callout.css": tt, "../../ghost/core/core/frontend/src/cards/css/collection.css": ot, "../../ghost/core/core/frontend/src/cards/css/cta.css": it, "../../ghost/core/core/frontend/src/cards/css/file.css": st, "../../ghost/core/core/frontend/src/cards/css/gallery.css": lt, "../../ghost/core/core/frontend/src/cards/css/header.css": pt, "../../ghost/core/core/frontend/src/cards/css/header_v2.css": ht, "../../ghost/core/core/frontend/src/cards/css/nft.css": kt, "../../ghost/core/core/frontend/src/cards/css/product.css": bt, "../../ghost/core/core/frontend/src/cards/css/signup.css": vt, "../../ghost/core/core/frontend/src/cards/css/toggle.css": wt, "../../ghost/core/core/frontend/src/cards/css/transistor.css": zt, "../../ghost/core/core/frontend/src/cards/css/video.css": St }), Nt = Object.values(_t).map((t) => t.default).join(`
4200
4291
 
4201
- `), St = Object.values(Ct).map((a) => a.default).join(`
4292
+ `), It = Object.values(Et).map((t) => t.default).join(`
4202
4293
 
4203
- `), _t = ({
4204
- postUrl: a,
4294
+ `), Pt = ({
4295
+ postUrl: t,
4205
4296
  heading: r,
4206
- image: t,
4297
+ image: a,
4207
4298
  excerpt: i,
4208
4299
  authors: d,
4209
4300
  html: u,
4210
- backgroundColor: c,
4301
+ backgroundColor: s,
4211
4302
  fontSize: h,
4212
4303
  fontStyle: v,
4213
4304
  onHeadingsExtracted: p,
4214
4305
  onIframeLoad: o,
4215
- onLoadingChange: s,
4306
+ onLoadingChange: c,
4216
4307
  isPopoverOpen: l
4217
4308
  }) => {
4218
- const I = U(null), [R, B] = y(!0), [_, z] = y("0px"), A = document.documentElement.classList.contains("dark") && c === "SYSTEM" || c === "DARK", Z = Oe(), f = `
4219
- <html class="has-${A ? "light" : "dark"}-text has-${v}-body ${c === "SEPIA" && "has-sepia-bg"}">
4309
+ const I = W(null), [R, q] = y(!0), [_, C] = y("0px"), A = document.documentElement.classList.contains("dark") && s === "SYSTEM" || s === "DARK", J = Ae(), f = `
4310
+ <html class="has-${A ? "light" : "dark"}-text has-${v}-body ${s === "SEPIA" && "has-sepia-bg"}">
4220
4311
  <head>
4221
- ${Z}
4312
+ ${J}
4222
4313
  <style>
4223
4314
  :root {
4224
4315
  --font-size: ${h};
@@ -4233,7 +4324,7 @@ a.kg-cta-button {
4233
4324
  }
4234
4325
  </style>
4235
4326
  <style>
4236
- ${St}
4327
+ ${It}
4237
4328
  </style>
4238
4329
 
4239
4330
  <script>
@@ -4309,14 +4400,14 @@ a.kg-cta-button {
4309
4400
  </head>
4310
4401
  <body>
4311
4402
  <header class='gh-article-header gh-canvas'>
4312
- <h1 class='gh-article-title is-title' data-test-article-heading>${r}</h1>
4313
- ${i ? `<p class='gh-article-excerpt'>${i}</p>` : ""}
4314
- <a href="${a}" target="_blank" rel="noopener noreferrer" class="gh-article-meta">
4403
+ <h1 class='gh-article-title is-title' data-test-article-heading>${B(r)}</h1>
4404
+ ${i ? `<p class='gh-article-excerpt'>${B(i)}</p>` : ""}
4405
+ <a href="${t && Sn(t) ? B(t) : "#"}" target="_blank" rel="noopener noreferrer" class="gh-article-meta">
4315
4406
  ${d && d.length > 0 ? `
4316
4407
  <div class="gh-article-author-image">
4317
4408
  ${d.map((g) => `
4318
4409
  <span>
4319
- ${g.profile_image ? `<img src="${g.profile_image}" alt="${g.name}">` : '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M6.75 6a5.25 5.25 0 1 0 10.5 0 5.25 5.25 0 1 0 -10.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M2.25 23.25a9.75 9.75 0 0 1 19.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></svg>'}
4410
+ ${g.profile_image ? `<img src="${B(g.profile_image)}" alt="${B(g.name)}">` : '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M6.75 6a5.25 5.25 0 1 0 10.5 0 5.25 5.25 0 1 0 -10.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M2.25 23.25a9.75 9.75 0 0 1 19.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></svg>'}
4320
4411
  </span>
4321
4412
  `).join("")}
4322
4413
  </div>
@@ -4324,20 +4415,20 @@ a.kg-cta-button {
4324
4415
  <div class="gh-article-meta-wrapper">
4325
4416
  ${d && d.length > 0 ? `
4326
4417
  <span class="gh-article-author-name">
4327
- ${d.length > 1 ? `${d[0].name} and ${d.length - 1} ${d.length - 1 === 1 ? "other" : "others"}` : d[0].name}
4418
+ ${d.length > 1 ? `${B(d[0].name)} and ${d.length - 1} ${d.length - 1 === 1 ? "other" : "others"}` : B(d[0].name)}
4328
4419
  </span>
4329
4420
  ` : ""}
4330
- <span class="gh-article-source">${a ? new URL(a).hostname : ""} <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-external-link-icon lucide-external-link"><path d="M15 3h6v6"/><path d="M10 14 21 3"/><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/></svg></span>
4421
+ <span class="gh-article-source">${t && Sn(t) ? B(new URL(t).hostname) : ""} <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-external-link-icon lucide-external-link"><path d="M15 3h6v6"/><path d="M10 14 21 3"/><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/></svg></span>
4331
4422
  </div>
4332
4423
  </a>
4333
- ${t ? `
4424
+ ${a ? `
4334
4425
  <figure class='gh-article-image'>
4335
- <img src='${t}' alt='${r}' />
4426
+ <img src='${B(a)}' alt='${B(r)}' />
4336
4427
  </figure>
4337
4428
  ` : ""}
4338
4429
  </header>
4339
4430
  <div class='gh-content gh-canvas is-body'>
4340
- ${le(u)}
4431
+ ${pe(u)}
4341
4432
  </div>
4342
4433
  <script>
4343
4434
  (function () {
@@ -4353,7 +4444,7 @@ a.kg-cta-button {
4353
4444
  })();
4354
4445
  <\/script>
4355
4446
  <script>
4356
- ${zt}
4447
+ ${Nt}
4357
4448
  <\/script>
4358
4449
  </body>
4359
4450
  </html>
@@ -4363,10 +4454,10 @@ a.kg-cta-button {
4363
4454
  if (!g)
4364
4455
  return;
4365
4456
  g.srcdoc || (g.srcdoc = f);
4366
- const T = (b) => {
4457
+ const O = (b) => {
4367
4458
  if (b.data.type === "resize") {
4368
4459
  const S = `${b.data.bodyHeight + 24}px`;
4369
- z(S), g.style.height = S, b.data.isLoaded && B(!1);
4460
+ C(S), g.style.height = S, b.data.isLoaded && q(!1);
4370
4461
  }
4371
4462
  }, j = (b) => {
4372
4463
  if (b.key === "Escape") {
@@ -4385,8 +4476,8 @@ a.kg-cta-button {
4385
4476
  const b = g.contentWindow;
4386
4477
  b && b.addEventListener("keydown", j);
4387
4478
  };
4388
- return g.addEventListener("load", E), window.addEventListener("message", T), () => {
4389
- window.removeEventListener("message", T), g.removeEventListener("load", E);
4479
+ return g.addEventListener("load", E), window.addEventListener("message", O), () => {
4480
+ window.removeEventListener("message", O), g.removeEventListener("load", E);
4390
4481
  const b = g.contentWindow;
4391
4482
  b && b.removeEventListener("keydown", j);
4392
4483
  };
@@ -4395,23 +4486,23 @@ a.kg-cta-button {
4395
4486
  const g = I.current;
4396
4487
  if (!g)
4397
4488
  return;
4398
- const T = g.contentDocument || ((b = g.contentWindow) == null ? void 0 : b.document);
4399
- if (!T)
4489
+ const O = g.contentDocument || ((b = g.contentWindow) == null ? void 0 : b.document);
4490
+ if (!O)
4400
4491
  return;
4401
- const j = T.documentElement;
4402
- j.style.setProperty("--font-size", h), j.classList.remove("has-sans-body", "has-serif-body"), j.classList.add(`has-${v}-body`), j.classList.remove("has-dark-text", "has-light-text"), j.classList.add(`has-${A ? "light" : "dark"}-text`), c === "SEPIA" ? j.classList.add("has-sepia-bg") : j.classList.remove("has-sepia-bg");
4492
+ const j = O.documentElement;
4493
+ j.style.setProperty("--font-size", h), j.classList.remove("has-sans-body", "has-serif-body"), j.classList.add(`has-${v}-body`), j.classList.remove("has-dark-text", "has-light-text"), j.classList.add(`has-${A ? "light" : "dark"}-text`), s === "SEPIA" ? j.classList.add("has-sepia-bg") : j.classList.remove("has-sepia-bg");
4403
4494
  const E = g.contentWindow;
4404
4495
  if (E && typeof E.resizeIframe == "function")
4405
4496
  E.resizeIframe();
4406
4497
  else {
4407
4498
  const S = new Event("resize");
4408
- T.dispatchEvent(S);
4499
+ O.dispatchEvent(S);
4409
4500
  }
4410
- }, [h, v, c, A]), L(() => {
4501
+ }, [h, v, s, A]), L(() => {
4411
4502
  const g = I.current;
4412
4503
  if (!g)
4413
4504
  return;
4414
- const T = () => {
4505
+ const O = () => {
4415
4506
  if (!g.contentDocument)
4416
4507
  return;
4417
4508
  const j = Array.from(
@@ -4421,23 +4512,23 @@ a.kg-cta-button {
4421
4512
  return;
4422
4513
  const E = Math.min(
4423
4514
  ...j.map((S) => parseInt(S.tagName[1]))
4424
- ), b = j.map((S, nn) => {
4425
- const O = `heading-${nn}`;
4426
- S.id = O;
4427
- const en = parseInt(S.tagName[1]) - E + 1;
4515
+ ), b = j.map((S, en) => {
4516
+ const T = `heading-${en}`;
4517
+ S.id = T;
4518
+ const tn = parseInt(S.tagName[1]) - E + 1;
4428
4519
  return {
4429
- id: O,
4520
+ id: T,
4430
4521
  text: S.textContent || "",
4431
- level: en,
4522
+ level: tn,
4432
4523
  element: S
4433
4524
  };
4434
4525
  });
4435
4526
  p == null || p(b), o == null || o(g);
4436
4527
  };
4437
- return g.addEventListener("load", T), () => g.removeEventListener("load", T);
4528
+ return g.addEventListener("load", O), () => g.removeEventListener("load", O);
4438
4529
  }, [p, o]), L(() => {
4439
- s == null || s(R);
4440
- }, [R, s]), /* @__PURE__ */ n.jsx("div", { className: "w-full pb-6", children: /* @__PURE__ */ n.jsxs("div", { className: "relative -mx-6", children: [
4530
+ c == null || c(R);
4531
+ }, [R, c]), /* @__PURE__ */ n.jsx("div", { className: "w-full pb-6", children: /* @__PURE__ */ n.jsxs("div", { className: "relative -mx-6", children: [
4441
4532
  R && /* @__PURE__ */ n.jsxs("div", { className: "mx-auto mt-6 w-full max-w-[640px] max-lg:px-4", children: [
4442
4533
  /* @__PURE__ */ n.jsxs("div", { className: "mb-6 flex flex-col gap-2", children: [
4443
4534
  /* @__PURE__ */ n.jsx(N, { className: "h-8" }),
@@ -4465,41 +4556,41 @@ a.kg-cta-button {
4465
4556
  }
4466
4557
  )
4467
4558
  ] }) });
4468
- }, Nn = () => /* @__PURE__ */ n.jsx("div", { className: "h-px bg-black/[8%] dark:bg-gray-950" }), X = /* @__PURE__ */ new Map(), Et = ({
4469
- postId: a = null,
4559
+ }, Pn = () => /* @__PURE__ */ n.jsx("div", { className: "h-px bg-black/[8%] dark:bg-gray-950" }), nn = /* @__PURE__ */ new Map(), Ft = ({
4560
+ postId: t = null,
4470
4561
  onClose: r
4471
4562
  }) => {
4472
- var xn, vn, yn;
4563
+ var vn, yn, wn;
4473
4564
  const {
4474
- backgroundColor: t,
4565
+ backgroundColor: a,
4475
4566
  currentFontSizeIndex: i,
4476
4567
  fontStyle: d,
4477
4568
  fontSize: u,
4478
- handleColorChange: c,
4569
+ handleColorChange: s,
4479
4570
  setFontStyle: h,
4480
4571
  increaseFontSize: v,
4481
4572
  decreaseFontSize: p,
4482
4573
  resetFontSize: o
4483
- } = Ie(), s = U(null), [l, I] = y(!1), [R, B] = y(!1), [_, z] = y(/* @__PURE__ */ new Set()), [A, Z] = y(/* @__PURE__ */ new Set()), [f, g] = y(/* @__PURE__ */ new Set()), [T, j] = y(!1), E = U(null), b = U(null), {
4574
+ } = Fe(), c = W(null), [l, I] = y(!1), [R, q] = y(!1), [_, C] = y(/* @__PURE__ */ new Set()), [A, J] = y(/* @__PURE__ */ new Set()), [f, g] = y(/* @__PURE__ */ new Set()), [O, j] = y(!1), E = W(null), b = W(null), {
4484
4575
  post: S,
4485
- processedReplies: nn,
4486
- isLoading: O,
4487
- loadMoreChildren: ln,
4488
- loadMoreChildReplies: en,
4489
- hasMoreChildren: tn,
4490
- hasMoreChildReplies: an
4491
- } = je(a ?? "", { includeAncestors: !1 }), q = S, m = q == null ? void 0 : q.object, H = q == null ? void 0 : q.actor, On = (vn = (xn = q == null ? void 0 : q.object) == null ? void 0 : xn.metadata) == null ? void 0 : vn.ghostAuthors, Mn = (m == null ? void 0 : m.replyCount) ?? 0;
4576
+ processedReplies: en,
4577
+ isLoading: T,
4578
+ loadMoreChildren: gn,
4579
+ loadMoreChildReplies: tn,
4580
+ hasMoreChildren: an,
4581
+ hasMoreChildReplies: on
4582
+ } = Ce(t ?? "", { includeAncestors: !1 }), H = S, m = H == null ? void 0 : H.object, U = H == null ? void 0 : H.actor, An = (yn = (vn = H == null ? void 0 : H.object) == null ? void 0 : vn.metadata) == null ? void 0 : yn.ghostAuthors, $n = (m == null ? void 0 : m.replyCount) ?? 0;
4492
4583
  L(() => {
4493
- if (!tn)
4584
+ if (!an)
4494
4585
  return;
4495
4586
  E.current && E.current.disconnect();
4496
- const e = s.current;
4587
+ const e = c.current;
4497
4588
  if (e)
4498
4589
  return E.current = new IntersectionObserver(async (w) => {
4499
- if (w[0].isIntersecting && tn && !T) {
4590
+ if (w[0].isIntersecting && an && !O) {
4500
4591
  j(!0);
4501
4592
  try {
4502
- await ln();
4593
+ await gn();
4503
4594
  } catch (k) {
4504
4595
  console.error("Failed to load more top-level replies:", k);
4505
4596
  } finally {
@@ -4512,119 +4603,119 @@ a.kg-cta-button {
4512
4603
  }), b.current && E.current.observe(b.current), () => {
4513
4604
  E.current && E.current.disconnect();
4514
4605
  };
4515
- }, [tn, T, ln]);
4516
- function gn() {
4606
+ }, [an, O, gn]);
4607
+ function pn() {
4517
4608
  }
4518
- function An(e) {
4519
- z((w) => {
4609
+ function Dn(e) {
4610
+ C((w) => {
4520
4611
  const k = new Set(w);
4521
- return k.has(e) ? k.delete(e) : (k.add(e), Z((C) => {
4522
- const M = new Set(C);
4612
+ return k.has(e) ? k.delete(e) : (k.add(e), J((z) => {
4613
+ const M = new Set(z);
4523
4614
  return M.add(e), M;
4524
4615
  })), k;
4525
4616
  });
4526
4617
  }
4527
- async function $n(e, w) {
4618
+ async function Bn(e, w) {
4528
4619
  if (!f.has(e)) {
4529
4620
  g((k) => new Set(k).add(e));
4530
4621
  try {
4531
- en && await en(w);
4622
+ tn && await tn(w);
4532
4623
  } catch (k) {
4533
4624
  console.error("Failed to load more replies for chain:", k);
4534
4625
  } finally {
4535
4626
  g((k) => {
4536
- const C = new Set(k);
4537
- return C.delete(e), C;
4627
+ const z = new Set(k);
4628
+ return z.delete(e), z;
4538
4629
  });
4539
4630
  }
4540
4631
  }
4541
4632
  }
4542
- const Dn = () => {
4543
- }, Bn = U(null), qn = "904px", W = "640px", [fn, Hn] = y(0), [J, Un] = y(!0), [pn] = te(Hn, 100), bn = 1;
4633
+ const qn = () => {
4634
+ }, Hn = W(null), Un = "904px", K = "640px", [bn, Wn] = y(0), [G, Kn] = y(!0), [un] = oe(Wn, 100), xn = 1;
4544
4635
  L(() => {
4545
- const e = s.current, w = document.getElementById("object-content"), k = () => {
4546
- if (J || !e || !w)
4636
+ const e = c.current, w = document.getElementById("object-content"), k = () => {
4637
+ if (G || !e || !w)
4547
4638
  return;
4548
- const M = w.getBoundingClientRect(), V = e.getBoundingClientRect();
4549
- if (M.height <= V.height) {
4550
- pn(100);
4639
+ const M = w.getBoundingClientRect(), Y = e.getBoundingClientRect();
4640
+ if (M.height <= Y.height) {
4641
+ un(100);
4551
4642
  return;
4552
4643
  }
4553
- const D = Math.max(0, V.top - M.top), x = w.offsetHeight - e.offsetHeight, P = Math.min(Math.max(D / x * 100, 0), 100), dn = Math.round(P / bn) * bn;
4554
- pn(dn);
4644
+ const D = Math.max(0, Y.top - M.top), x = w.offsetHeight - e.offsetHeight, P = Math.min(Math.max(D / x * 100, 0), 100), sn = Math.round(P / xn) * xn;
4645
+ un(sn);
4555
4646
  };
4556
- if (J)
4647
+ if (G)
4557
4648
  return;
4558
- const C = new MutationObserver(k);
4559
- return w && C.observe(w, {
4649
+ const z = new MutationObserver(k);
4650
+ return w && z.observe(w, {
4560
4651
  childList: !0,
4561
4652
  subtree: !0,
4562
4653
  characterData: !0
4563
4654
  }), e == null || e.addEventListener("scroll", k), k(), () => {
4564
- e == null || e.removeEventListener("scroll", k), C.disconnect();
4655
+ e == null || e.removeEventListener("scroll", k), z.disconnect();
4565
4656
  };
4566
- }, [J, pn]);
4567
- const [on, Wn] = y([]), [Kn, Vn] = y(null), [K, Yn] = y(null), Qn = jn((e) => {
4568
- Wn(e);
4569
- }, []), Zn = jn((e) => {
4570
- Yn(e);
4657
+ }, [G, un]);
4658
+ const [rn, Vn] = y([]), [Yn, Qn] = y(null), [V, Zn] = y(null), Jn = zn((e) => {
4659
+ Vn(e);
4660
+ }, []), Gn = zn((e) => {
4661
+ Zn(e);
4571
4662
  }, []);
4572
4663
  L(() => {
4573
- if (!(K != null && K.contentDocument) || !on.length)
4664
+ if (!(V != null && V.contentDocument) || !rn.length)
4574
4665
  return;
4575
4666
  const w = setTimeout(() => {
4576
- const k = s.current;
4667
+ const k = c.current;
4577
4668
  if (!k)
4578
4669
  return;
4579
- const C = () => {
4580
- const M = K.contentDocument;
4670
+ const z = () => {
4671
+ const M = V.contentDocument;
4581
4672
  if (!M || !M.documentElement)
4582
4673
  return;
4583
- const V = k.scrollTop, G = on.map((P) => M.getElementById(P.id)).filter((P) => P !== null).map((P) => ({
4674
+ const Y = k.scrollTop, X = rn.map((P) => M.getElementById(P.id)).filter((P) => P !== null).map((P) => ({
4584
4675
  element: P,
4585
4676
  id: P.id,
4586
4677
  top: P.offsetTop
4587
4678
  }));
4588
- if (!G.length)
4679
+ if (!X.length)
4589
4680
  return;
4590
4681
  const D = 100;
4591
4682
  let x = null;
4592
- for (const P of G)
4593
- if (P.top - D <= V)
4683
+ for (const P of X)
4684
+ if (P.top - D <= Y)
4594
4685
  x = P;
4595
4686
  else
4596
4687
  break;
4597
- Vn((x == null ? void 0 : x.id) || null);
4688
+ Qn((x == null ? void 0 : x.id) || null);
4598
4689
  };
4599
- return k.addEventListener("scroll", C), C(), () => {
4600
- k.removeEventListener("scroll", C);
4690
+ return k.addEventListener("scroll", z), z(), () => {
4691
+ k.removeEventListener("scroll", z);
4601
4692
  };
4602
4693
  }, 100);
4603
4694
  return () => clearTimeout(w);
4604
- }, [K, on, Kn]);
4605
- const rn = Rn();
4695
+ }, [V, rn, Yn]);
4696
+ const dn = Tn();
4606
4697
  return L(() => {
4607
- const e = s.current;
4698
+ const e = c.current;
4608
4699
  return () => {
4609
- e && a && X.set(a, e.scrollTop);
4700
+ e && t && nn.set(t, e.scrollTop);
4610
4701
  };
4611
- }, [a]), L(() => {
4612
- if (!J && !O && a && s.current) {
4613
- const e = X.get(a);
4702
+ }, [t]), L(() => {
4703
+ if (!G && !T && t && c.current) {
4704
+ const e = nn.get(t);
4614
4705
  e !== void 0 && e > 0 && setTimeout(() => {
4615
- s.current && (s.current.scrollTop = e);
4706
+ c.current && (c.current.scrollTop = e);
4616
4707
  }, 100);
4617
4708
  }
4618
- }, [J, O, a]), O ? /* @__PURE__ */ n.jsx("div", { className: `max-h-full overflow-auto rounded-md ${t === "DARK" && "dark"} ${(t === "LIGHT" || t === "SEPIA") && "light"} ${F[t].background}`, children: /* @__PURE__ */ n.jsx("div", { className: "flex h-full flex-col", children: /* @__PURE__ */ n.jsxs("div", { className: "relative flex-1", children: [
4619
- /* @__PURE__ */ n.jsx("div", { className: `sticky top-0 z-50 flex h-[102px] items-center justify-center rounded-t-md border-b max-md:h-[68px] ${F[t].background} ${F[t].border}`, children: /* @__PURE__ */ n.jsxs(
4709
+ }, [G, T, t]), T ? /* @__PURE__ */ n.jsx("div", { className: `max-h-full overflow-auto rounded-md ${a === "DARK" && "dark"} ${(a === "LIGHT" || a === "SEPIA") && "light"} ${F[a].background}`, children: /* @__PURE__ */ n.jsx("div", { className: "flex h-full flex-col", children: /* @__PURE__ */ n.jsxs("div", { className: "relative flex-1", children: [
4710
+ /* @__PURE__ */ n.jsx("div", { className: `sticky top-0 z-50 flex h-[102px] items-center justify-center rounded-t-md border-b max-md:h-[68px] ${F[a].background} ${F[a].border}`, children: /* @__PURE__ */ n.jsxs(
4620
4711
  "div",
4621
4712
  {
4622
4713
  className: "grid w-full px-8 max-lg:px-4",
4623
4714
  style: {
4624
- gridTemplateColumns: `1fr minmax(0,${W}) 1fr`
4715
+ gridTemplateColumns: `1fr minmax(0,${K}) 1fr`
4625
4716
  },
4626
4717
  children: [
4627
- /* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ n.jsx(un, { className: F[t].button, onClick: r }) }),
4718
+ /* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ n.jsx(hn, { className: F[a].button, onClick: r }) }),
4628
4719
  /* @__PURE__ */ n.jsxs("div", { className: "col-[2/3] mx-auto flex w-full items-center gap-3 max-md:hidden", children: [
4629
4720
  /* @__PURE__ */ n.jsx(N, { className: "size-10 rounded-full" }),
4630
4721
  /* @__PURE__ */ n.jsxs("div", { className: "grow pt-1", children: [
@@ -4633,12 +4724,12 @@ a.kg-cta-button {
4633
4724
  ] })
4634
4725
  ] }),
4635
4726
  /* @__PURE__ */ n.jsx("div", { className: "col-[3/4] flex items-center justify-end gap-2", children: /* @__PURE__ */ n.jsx(
4636
- En,
4727
+ In,
4637
4728
  {
4638
- backgroundColor: t,
4729
+ backgroundColor: a,
4639
4730
  currentFontSizeIndex: i,
4640
4731
  fontStyle: d,
4641
- onColorChange: c,
4732
+ onColorChange: s,
4642
4733
  onDecreaseFontSize: p,
4643
4734
  onFontStyleChange: h,
4644
4735
  onIncreaseFontSize: v,
@@ -4658,43 +4749,43 @@ a.kg-cta-button {
4658
4749
  /* @__PURE__ */ n.jsx(N, { className: "mt-8 h-[400px]" }),
4659
4750
  /* @__PURE__ */ n.jsx(N, { className: "mt-2 h-4", containerClassName: "block mt-7 mb-4", count: 8, randomize: !0 })
4660
4751
  ] }) })
4661
- ] }) }) }) : S ? /* @__PURE__ */ n.jsx("div", { ref: s, className: `max-h-full overflow-auto rounded-md ${t === "DARK" && "dark"} ${(t === "LIGHT" || t === "SEPIA") && "light"} ${F[t].background}`, "data-scrollable-container": !0, children: /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs("div", { className: "flex h-full flex-col", children: [
4752
+ ] }) }) }) : S ? /* @__PURE__ */ n.jsx("div", { ref: c, className: `max-h-full overflow-auto rounded-md ${a === "DARK" && "dark"} ${(a === "LIGHT" || a === "SEPIA") && "light"} ${F[a].background}`, "data-scrollable-container": !0, children: /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs("div", { className: "flex h-full flex-col", children: [
4662
4753
  /* @__PURE__ */ n.jsxs("div", { className: "relative flex-1", children: [
4663
- /* @__PURE__ */ n.jsx("div", { className: `sticky top-0 z-50 flex h-[102px] items-center justify-center rounded-t-md border-b max-md:h-[68px] ${F[t].background} ${F[t].border}`, children: /* @__PURE__ */ n.jsxs(
4754
+ /* @__PURE__ */ n.jsx("div", { className: `sticky top-0 z-50 flex h-[102px] items-center justify-center rounded-t-md border-b max-md:h-[68px] ${F[a].background} ${F[a].border}`, children: /* @__PURE__ */ n.jsxs(
4664
4755
  "div",
4665
4756
  {
4666
4757
  className: "grid w-full px-8 max-lg:px-4",
4667
4758
  style: {
4668
- gridTemplateColumns: `1fr minmax(0,${W}) 1fr`
4759
+ gridTemplateColumns: `1fr minmax(0,${K}) 1fr`
4669
4760
  },
4670
4761
  children: [
4671
- /* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ n.jsx(un, { className: F[t].button, onClick: r }) }),
4762
+ /* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ n.jsx(hn, { className: F[a].button, onClick: r }) }),
4672
4763
  /* @__PURE__ */ n.jsxs("div", { className: "col-[2/3] mx-auto flex w-full items-center justify-between gap-3 max-md:hidden", children: [
4673
- /* @__PURE__ */ n.jsx(ae, { actor: H, isCurrentUser: m.authored, children: /* @__PURE__ */ n.jsxs("div", { className: "flex cursor-pointer items-center gap-3", children: [
4674
- /* @__PURE__ */ n.jsx("div", { className: "relative z-10 pt-0.5", children: /* @__PURE__ */ n.jsx(oe, { author: H }) }),
4675
- /* @__PURE__ */ n.jsxs("div", { className: "relative z-10 mt-0.5 flex min-w-0 cursor-pointer flex-col overflow-visible text-[1.5rem]", onClick: (e) => re(H, rn, e), children: [
4676
- /* @__PURE__ */ n.jsx("div", { className: "flex w-full", children: /* @__PURE__ */ n.jsx("span", { className: "min-w-0 truncate whitespace-nowrap font-semibold text-black hover:underline dark:text-white", children: O ? /* @__PURE__ */ n.jsx(N, { className: "w-20" }) : H.name }) }),
4764
+ /* @__PURE__ */ n.jsx(re, { actor: U, isCurrentUser: m.authored, children: /* @__PURE__ */ n.jsxs("div", { className: "flex cursor-pointer items-center gap-3", children: [
4765
+ /* @__PURE__ */ n.jsx("div", { className: "relative z-10 pt-0.5", children: /* @__PURE__ */ n.jsx(ie, { author: U }) }),
4766
+ /* @__PURE__ */ n.jsxs("div", { className: "relative z-10 mt-0.5 flex min-w-0 cursor-pointer flex-col overflow-visible text-[1.5rem]", onClick: (e) => de(U, dn, e), children: [
4767
+ /* @__PURE__ */ n.jsx("div", { className: "flex w-full", children: /* @__PURE__ */ n.jsx("span", { className: "min-w-0 truncate whitespace-nowrap font-semibold text-black hover:underline dark:text-white", children: T ? /* @__PURE__ */ n.jsx(N, { className: "w-20" }) : U.name }) }),
4677
4768
  /* @__PURE__ */ n.jsxs("div", { className: "flex w-full", children: [
4678
- !O && /* @__PURE__ */ n.jsx("span", { className: 'truncate text-gray-700 after:mx-1 after:font-normal after:text-gray-700 after:content-["·"]', children: Cn(H) }),
4679
- /* @__PURE__ */ n.jsx("span", { className: "text-gray-700", children: O ? /* @__PURE__ */ n.jsx(N, { className: "w-[120px]" }) : ie(m, !m.authored) })
4769
+ !T && /* @__PURE__ */ n.jsx("span", { className: 'truncate text-gray-700 after:mx-1 after:font-normal after:text-gray-700 after:content-["·"]', children: Cn(U) }),
4770
+ /* @__PURE__ */ n.jsx("span", { className: "text-gray-700", children: T ? /* @__PURE__ */ n.jsx(N, { className: "w-[120px]" }) : se(m, !m.authored) })
4680
4771
  ] })
4681
4772
  ] })
4682
4773
  ] }) }),
4683
- !m.authored && !O && /* @__PURE__ */ n.jsx(
4684
- de,
4774
+ !m.authored && !T && /* @__PURE__ */ n.jsx(
4775
+ ce,
4685
4776
  {
4686
- following: H.followedByMe ?? !1,
4687
- handle: Cn(H)
4777
+ following: U.followedByMe ?? !1,
4778
+ handle: Cn(U)
4688
4779
  }
4689
4780
  )
4690
4781
  ] }),
4691
4782
  /* @__PURE__ */ n.jsx("div", { className: "col-[3/4] flex items-center justify-end gap-2", children: /* @__PURE__ */ n.jsx(
4692
- En,
4783
+ In,
4693
4784
  {
4694
- backgroundColor: t,
4785
+ backgroundColor: a,
4695
4786
  currentFontSizeIndex: i,
4696
4787
  fontStyle: d,
4697
- onColorChange: c,
4788
+ onColorChange: s,
4698
4789
  onDecreaseFontSize: p,
4699
4790
  onFontStyleChange: h,
4700
4791
  onIncreaseFontSize: v,
@@ -4707,62 +4798,62 @@ a.kg-cta-button {
4707
4798
  ) }),
4708
4799
  /* @__PURE__ */ n.jsxs("div", { className: "relative flex-1", children: [
4709
4800
  /* @__PURE__ */ n.jsx(
4710
- Fe,
4801
+ Re,
4711
4802
  {
4712
- iframeElement: K,
4713
- modalRef: s,
4714
- tocItems: on,
4715
- onOpenChange: B
4803
+ iframeElement: V,
4804
+ modalRef: c,
4805
+ tocItems: rn,
4806
+ onOpenChange: q
4716
4807
  }
4717
4808
  ),
4718
- !O && /* @__PURE__ */ n.jsx("div", { className: "grow overflow-y-auto", children: /* @__PURE__ */ n.jsxs("div", { className: "mx-auto px-6 pb-10 pt-5", style: { maxWidth: qn }, children: [
4809
+ !T && /* @__PURE__ */ n.jsx("div", { className: "grow overflow-y-auto", children: /* @__PURE__ */ n.jsxs("div", { className: "mx-auto px-6 pb-10 pt-5", style: { maxWidth: Un }, children: [
4719
4810
  /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center pb-8", id: "object-content", children: [
4720
4811
  /* @__PURE__ */ n.jsx(
4721
- _t,
4812
+ Pt,
4722
4813
  {
4723
- authors: On,
4724
- backgroundColor: t,
4814
+ authors: An,
4815
+ backgroundColor: a,
4725
4816
  excerpt: m.summary ?? "",
4726
4817
  fontSize: u,
4727
4818
  fontStyle: d,
4728
4819
  heading: m.name,
4729
4820
  html: m.content ?? "",
4730
- image: typeof m.image == "string" ? m.image : (yn = m.image) == null ? void 0 : yn.url,
4821
+ image: typeof m.image == "string" ? m.image : (wn = m.image) == null ? void 0 : wn.url,
4731
4822
  isPopoverOpen: l || R,
4732
4823
  postUrl: (m == null ? void 0 : m.url) || "",
4733
- onHeadingsExtracted: Qn,
4734
- onIframeLoad: Zn,
4735
- onLoadingChange: Un
4824
+ onHeadingsExtracted: Jn,
4825
+ onIframeLoad: Gn,
4826
+ onLoadingChange: Kn
4736
4827
  }
4737
4828
  ),
4738
- /* @__PURE__ */ n.jsx("div", { className: "-ml-3 w-full", style: { maxWidth: W }, children: /* @__PURE__ */ n.jsx(
4739
- ce,
4829
+ /* @__PURE__ */ n.jsx("div", { className: "-ml-3 w-full", style: { maxWidth: K }, children: /* @__PURE__ */ n.jsx(
4830
+ le,
4740
4831
  {
4741
- actor: H,
4742
- commentCount: Mn,
4832
+ actor: U,
4833
+ commentCount: $n,
4743
4834
  layout: "modal",
4744
4835
  likeCount: m.likeCount ?? 0,
4745
4836
  object: m,
4746
4837
  repostCount: m.repostCount ?? 0,
4747
- onLikeClick: Dn
4838
+ onLikeClick: qn
4748
4839
  }
4749
4840
  ) })
4750
4841
  ] }),
4751
- m.type === "Tombstone" && /* @__PURE__ */ n.jsx(Ce, { last: !0 }),
4752
- /* @__PURE__ */ n.jsxs("div", { className: "mx-auto w-full border-t border-black/[8%] dark:border-gray-950", style: { maxWidth: W }, children: [
4842
+ m.type === "Tombstone" && /* @__PURE__ */ n.jsx(Se, { last: !0 }),
4843
+ /* @__PURE__ */ n.jsxs("div", { className: "mx-auto w-full border-t border-black/[8%] dark:border-gray-950", style: { maxWidth: K }, children: [
4753
4844
  /* @__PURE__ */ n.jsx(
4754
- ze,
4845
+ _e,
4755
4846
  {
4756
4847
  object: m
4757
4848
  }
4758
4849
  ),
4759
- /* @__PURE__ */ n.jsx(Nn, {})
4850
+ /* @__PURE__ */ n.jsx(Pn, {})
4760
4851
  ] }),
4761
- O && /* @__PURE__ */ n.jsx(hn, { size: "lg" }),
4762
- /* @__PURE__ */ n.jsxs("div", { ref: Bn, className: "mx-auto w-full", style: { maxWidth: W }, children: [
4763
- nn.map((e, w) => {
4764
- const k = w === nn.length - 1, C = e.mainReply.id, M = _.has(C), V = A.has(C), G = f.has(C), D = e.chain.length > 0;
4765
- return /* @__PURE__ */ n.jsxs(Q.Fragment, { children: [
4852
+ T && /* @__PURE__ */ n.jsx(mn, { size: "lg" }),
4853
+ /* @__PURE__ */ n.jsxs("div", { ref: Hn, className: "mx-auto w-full", style: { maxWidth: K }, children: [
4854
+ en.map((e, w) => {
4855
+ const k = w === en.length - 1, z = e.mainReply.id, M = _.has(z), Y = A.has(z), X = f.has(z), D = e.chain.length > 0;
4856
+ return /* @__PURE__ */ n.jsxs(Z.Fragment, { children: [
4766
4857
  /* @__PURE__ */ n.jsx(
4767
4858
  cn,
4768
4859
  {
@@ -4770,7 +4861,7 @@ a.kg-cta-button {
4770
4861
  allowDelete: e.mainReply.object.authored,
4771
4862
  commentCount: e.mainReply.object.replyCount ?? 0,
4772
4863
  isChainParent: D,
4773
- isPending: sn(e.mainReply.id),
4864
+ isPending: ln(e.mainReply.id),
4774
4865
  last: !D,
4775
4866
  layout: "reply",
4776
4867
  likeCount: e.mainReply.object.likeCount ?? 0,
@@ -4779,10 +4870,10 @@ a.kg-cta-button {
4779
4870
  repostCount: e.mainReply.object.repostCount ?? 0,
4780
4871
  type: "Note",
4781
4872
  onClick: () => {
4782
- const x = s.current;
4783
- x && a && X.set(a, x.scrollTop), rn(`/notes/${encodeURIComponent(e.mainReply.id)}`);
4873
+ const x = c.current;
4874
+ x && t && nn.set(t, x.scrollTop), dn(`/notes/${encodeURIComponent(e.mainReply.id)}`);
4784
4875
  },
4785
- onDelete: gn
4876
+ onDelete: pn
4786
4877
  }
4787
4878
  ),
4788
4879
  D && e.chain[0] && /* @__PURE__ */ n.jsx(
@@ -4792,7 +4883,7 @@ a.kg-cta-button {
4792
4883
  allowDelete: e.chain[0].object.authored,
4793
4884
  commentCount: e.chain[0].object.replyCount ?? 0,
4794
4885
  isChainContinuation: !0,
4795
- isPending: sn(e.chain[0].id),
4886
+ isPending: ln(e.chain[0].id),
4796
4887
  last: e.chain.length === 1,
4797
4888
  layout: "reply",
4798
4889
  likeCount: e.chain[0].object.likeCount ?? 0,
@@ -4801,15 +4892,15 @@ a.kg-cta-button {
4801
4892
  repostCount: e.chain[0].object.repostCount ?? 0,
4802
4893
  type: "Note",
4803
4894
  onClick: () => {
4804
- const x = s.current;
4805
- x && a && X.set(a, x.scrollTop), rn(`/notes/${encodeURIComponent(e.chain[0].id)}`);
4895
+ const x = c.current;
4896
+ x && t && nn.set(t, x.scrollTop), dn(`/notes/${encodeURIComponent(e.chain[0].id)}`);
4806
4897
  },
4807
- onDelete: gn
4898
+ onDelete: pn
4808
4899
  },
4809
4900
  e.chain[0].id
4810
4901
  ),
4811
4902
  D && M && e.chain.slice(1).map((x, P) => {
4812
- const dn = P === e.chain.slice(1).length - 1, Jn = an && an(w), Gn = dn && Jn;
4903
+ const sn = P === e.chain.slice(1).length - 1, Xn = on && on(w), ne = sn && Xn;
4813
4904
  return /* @__PURE__ */ n.jsx(
4814
4905
  cn,
4815
4906
  {
@@ -4817,8 +4908,8 @@ a.kg-cta-button {
4817
4908
  allowDelete: x.object.authored,
4818
4909
  commentCount: x.object.replyCount ?? 0,
4819
4910
  isChainContinuation: !0,
4820
- isPending: sn(x.id),
4821
- last: dn && !Gn,
4911
+ isPending: ln(x.id),
4912
+ last: sn && !ne,
4822
4913
  layout: "reply",
4823
4914
  likeCount: x.object.likeCount ?? 0,
4824
4915
  object: x.object,
@@ -4826,80 +4917,80 @@ a.kg-cta-button {
4826
4917
  repostCount: x.object.repostCount ?? 0,
4827
4918
  type: "Note",
4828
4919
  onClick: () => {
4829
- const wn = s.current;
4830
- wn && a && X.set(a, wn.scrollTop), rn(`/notes/${encodeURIComponent(x.id)}`);
4920
+ const jn = c.current;
4921
+ jn && t && nn.set(t, jn.scrollTop), dn(`/notes/${encodeURIComponent(x.id)}`);
4831
4922
  },
4832
- onDelete: gn
4923
+ onDelete: pn
4833
4924
  },
4834
4925
  x.id
4835
4926
  );
4836
4927
  }),
4837
4928
  D && e.chain.length > 1 && !M && /* @__PURE__ */ n.jsx(
4838
- Sn,
4929
+ En,
4839
4930
  {
4840
4931
  variant: "expand",
4841
- onClick: () => An(C)
4932
+ onClick: () => Dn(z)
4842
4933
  }
4843
4934
  ),
4844
- D && M && V && an && an(w) && /* @__PURE__ */ n.jsx(
4845
- Sn,
4935
+ D && M && Y && on && on(w) && /* @__PURE__ */ n.jsx(
4936
+ En,
4846
4937
  {
4847
- loading: G,
4938
+ loading: X,
4848
4939
  variant: "loadMore",
4849
- onClick: () => $n(C, w)
4940
+ onClick: () => Bn(z, w)
4850
4941
  }
4851
4942
  ),
4852
- !k && /* @__PURE__ */ n.jsx(Nn, {})
4943
+ !k && /* @__PURE__ */ n.jsx(Pn, {})
4853
4944
  ] }, e.mainReply.id);
4854
4945
  }),
4855
- T && /* @__PURE__ */ n.jsx("div", { className: "flex flex-col items-center justify-center text-center", children: /* @__PURE__ */ n.jsx(hn, { size: "md" }) })
4946
+ O && /* @__PURE__ */ n.jsx("div", { className: "flex flex-col items-center justify-center text-center", children: /* @__PURE__ */ n.jsx(mn, { size: "md" }) })
4856
4947
  ] }),
4857
- tn && /* @__PURE__ */ n.jsx("div", { ref: b, className: "h-1" })
4948
+ an && /* @__PURE__ */ n.jsx("div", { ref: b, className: "h-1" })
4858
4949
  ] }) })
4859
4950
  ] })
4860
4951
  ] }),
4861
- !O && /* @__PURE__ */ n.jsxs("div", { className: "pointer-events-none !visible sticky bottom-0 hidden items-end justify-between px-10 pb-[42px] lg:!flex", children: [
4862
- /* @__PURE__ */ n.jsx("div", { className: "pointer-events-auto text-gray-600", children: se(m.content ?? "") }),
4952
+ !T && /* @__PURE__ */ n.jsxs("div", { className: "pointer-events-none !visible sticky bottom-0 hidden items-end justify-between px-10 pb-[42px] lg:!flex", children: [
4953
+ /* @__PURE__ */ n.jsx("div", { className: "pointer-events-auto text-gray-600", children: ge(m.content ?? "") }),
4863
4954
  /* @__PURE__ */ n.jsxs("div", { className: "pointer-events-auto min-w-10 text-right text-gray-600 transition-all duration-200 ease-out", children: [
4864
- fn,
4955
+ bn,
4865
4956
  "%"
4866
- ] }, fn)
4957
+ ] }, bn)
4867
4958
  ] })
4868
- ] }) }) }) : /* @__PURE__ */ n.jsx("div", { className: `max-h-full overflow-auto rounded-md ${t === "DARK" && "dark"} ${(t === "LIGHT" || t === "SEPIA") && "light"} ${F[t].background}`, children: /* @__PURE__ */ n.jsx("div", { className: "flex h-full flex-col", children: /* @__PURE__ */ n.jsx("div", { className: "relative flex-1", children: /* @__PURE__ */ n.jsx("div", { className: `sticky top-0 z-50 flex h-[102px] items-center justify-center rounded-t-md border-b max-md:h-[68px] ${F[t].background} ${F[t].border}`, children: /* @__PURE__ */ n.jsxs(
4959
+ ] }) }) }) : /* @__PURE__ */ n.jsx("div", { className: `max-h-full overflow-auto rounded-md ${a === "DARK" && "dark"} ${(a === "LIGHT" || a === "SEPIA") && "light"} ${F[a].background}`, children: /* @__PURE__ */ n.jsx("div", { className: "flex h-full flex-col", children: /* @__PURE__ */ n.jsx("div", { className: "relative flex-1", children: /* @__PURE__ */ n.jsx("div", { className: `sticky top-0 z-50 flex h-[102px] items-center justify-center rounded-t-md border-b max-md:h-[68px] ${F[a].background} ${F[a].border}`, children: /* @__PURE__ */ n.jsxs(
4869
4960
  "div",
4870
4961
  {
4871
4962
  className: "grid w-full px-8 max-lg:px-4",
4872
4963
  style: {
4873
- gridTemplateColumns: `1fr minmax(0,${W}) 1fr`
4964
+ gridTemplateColumns: `1fr minmax(0,${K}) 1fr`
4874
4965
  },
4875
4966
  children: [
4876
- /* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ n.jsx(un, { className: F[t].button, onClick: r }) }),
4967
+ /* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ n.jsx(hn, { className: F[a].button, onClick: r }) }),
4877
4968
  /* @__PURE__ */ n.jsx("div", { className: "col-[2/3] mx-auto flex w-full items-center gap-3 max-md:hidden", children: /* @__PURE__ */ n.jsx("div", { className: "grow text-center", children: /* @__PURE__ */ n.jsx("span", { children: "Error loading article." }) }) })
4878
4969
  ]
4879
4970
  }
4880
4971
  ) }) }) }) });
4881
- }, Nt = ({
4882
- isLoading: a,
4972
+ }, Lt = ({
4973
+ isLoading: t,
4883
4974
  activities: r,
4884
- currentTopic: t,
4975
+ currentTopic: a,
4885
4976
  fetchNextPage: i,
4886
4977
  hasNextPage: d,
4887
4978
  isFetchingNextPage: u,
4888
- onTopicChange: c
4979
+ onTopicChange: s
4889
4980
  }) => {
4890
- const h = Rn(), { canGoBack: v, goBack: p } = ge(), [o, s] = y(!1), l = pe(), { topicsQuery: I } = ue(), { data: R } = I, B = R && R.topics.length > 0;
4981
+ const h = Tn(), { canGoBack: v, goBack: p } = ue(), [o, c] = y(!1), l = he(), { topicsQuery: I } = me(), { data: R } = I, q = R && R.topics.length > 0;
4891
4982
  L(() => {
4892
- s(!!l.postId);
4983
+ c(!!l.postId);
4893
4984
  }, [l.postId]);
4894
- const _ = U(null), z = U(null), A = U(null);
4985
+ const _ = W(null), C = W(null), A = W(null);
4895
4986
  L(() => (_.current && _.current.disconnect(), _.current = new IntersectionObserver((f) => {
4896
4987
  f[0].isIntersecting && d && !u && i();
4897
- }), z.current && _.current.observe(z.current), A.current && _.current.observe(A.current), () => {
4988
+ }), C.current && _.current.observe(C.current), A.current && _.current.observe(A.current), () => {
4898
4989
  _.current && _.current.disconnect();
4899
4990
  }), [d, u, i]);
4900
- const Z = Math.max(0, Math.floor(r.length * 0.75) - 1);
4901
- return /* @__PURE__ */ n.jsxs(he, { children: [
4902
- B && /* @__PURE__ */ n.jsx(Se, { currentTopic: t, excludeTopics: ["top"], onTopicChange: c }),
4991
+ const J = Math.max(0, Math.floor(r.length * 0.75) - 1);
4992
+ return /* @__PURE__ */ n.jsxs(ke, { children: [
4993
+ q && /* @__PURE__ */ n.jsx(Ee, { currentTopic: a, excludeTopics: ["top"], onTopicChange: s }),
4903
4994
  /* @__PURE__ */ n.jsx("div", { className: "flex w-full flex-col", children: /* @__PURE__ */ n.jsx("div", { className: "w-full", children: r.length > 0 ? /* @__PURE__ */ n.jsx("div", { className: "my-4", children: /* @__PURE__ */ n.jsx("div", { className: "mx-auto flex min-h-[calc(100dvh_-_117px)] items-start gap-11", children: /* @__PURE__ */ n.jsx("div", { className: "flex w-full min-w-0 flex-col items-center", children: /* @__PURE__ */ n.jsxs("div", { className: "flex w-full min-w-0 flex-col items-start", children: [
4904
4995
  /* @__PURE__ */ n.jsxs("ul", { className: "mx-auto flex w-full flex-col", "data-testid": "inbox-list", children: [
4905
4996
  r.map((f, g) => /* @__PURE__ */ n.jsxs(
@@ -4914,8 +5005,8 @@ a.kg-cta-button {
4914
5005
  actor: f.actor,
4915
5006
  allowDelete: f.object.authored,
4916
5007
  commentCount: f.object.replyCount ?? 0,
4917
- isLoading: a,
4918
- isPending: sn(f.id),
5008
+ isLoading: t,
5009
+ isPending: ln(f.id),
4919
5010
  layout: "inbox",
4920
5011
  likeCount: f.object.likeCount ?? 0,
4921
5012
  object: f.object,
@@ -4926,60 +5017,60 @@ a.kg-cta-button {
4926
5017
  }
4927
5018
  }
4928
5019
  ),
4929
- g < r.length - 1 && /* @__PURE__ */ n.jsx(_e, {}),
4930
- g === Z && /* @__PURE__ */ n.jsx("div", { ref: z, className: "h-1" })
5020
+ g < r.length - 1 && /* @__PURE__ */ n.jsx(Ne, {}),
5021
+ g === J && /* @__PURE__ */ n.jsx("div", { ref: C, className: "h-1" })
4931
5022
  ]
4932
5023
  },
4933
5024
  `${f.id}-${f.type}-${g}`
4934
5025
  )),
4935
- u && /* @__PURE__ */ n.jsx("li", { className: "flex flex-col items-center justify-center space-y-4 text-center", children: /* @__PURE__ */ n.jsx(hn, { size: "md" }) })
5026
+ u && /* @__PURE__ */ n.jsx("li", { className: "flex flex-col items-center justify-center space-y-4 text-center", children: /* @__PURE__ */ n.jsx(mn, { size: "md" }) })
4936
5027
  ] }),
4937
5028
  /* @__PURE__ */ n.jsx("div", { ref: A, className: "h-1" })
4938
- ] }) }) }) }) : t !== "following" ? /* @__PURE__ */ n.jsx("div", { className: "mt-[24vh]", children: /* @__PURE__ */ n.jsx(
4939
- mn,
5029
+ ] }) }) }) }) : a !== "following" ? /* @__PURE__ */ n.jsx("div", { className: "mt-[24vh]", children: /* @__PURE__ */ n.jsx(
5030
+ kn,
4940
5031
  {
4941
5032
  description: "Explore other topics for more content.",
4942
5033
  title: "Nothing here yet",
4943
- children: /* @__PURE__ */ n.jsx(_n, {})
5034
+ children: /* @__PURE__ */ n.jsx(Nn, {})
4944
5035
  }
4945
5036
  ) }) : /* @__PURE__ */ n.jsx("div", { className: "mt-[24vh]", children: /* @__PURE__ */ n.jsx(
4946
- mn,
5037
+ kn,
4947
5038
  {
4948
- actions: B ? /* @__PURE__ */ n.jsx($, { onClick: () => h("/explore"), children: "Find accounts to follow →" }) : /* @__PURE__ */ n.jsx($, { asChild: !0, children: /* @__PURE__ */ n.jsx("a", { href: "https://explore.ghost.org/social-web", rel: "noopener noreferrer", target: "_blank", children: "Find accounts to follow →" }) }),
5039
+ actions: q ? /* @__PURE__ */ n.jsx($, { onClick: () => h("/explore"), children: "Find accounts to follow →" }) : /* @__PURE__ */ n.jsx($, { asChild: !0, children: /* @__PURE__ */ n.jsx("a", { href: "https://explore.ghost.org/social-web", rel: "noopener noreferrer", target: "_blank", children: "Find accounts to follow →" }) }),
4949
5040
  description: "Start following publishers to see their long-form posts here.",
4950
5041
  title: "Your Reader is empty",
4951
- children: /* @__PURE__ */ n.jsx(_n, {})
5042
+ children: /* @__PURE__ */ n.jsx(Nn, {})
4952
5043
  }
4953
5044
  ) }) }) }),
4954
5045
  /* @__PURE__ */ n.jsx(
4955
- me,
5046
+ fe,
4956
5047
  {
4957
5048
  open: o,
4958
5049
  onOpenChange: (f) => {
4959
- f || (v ? p() : h("/reader")), s(f);
5050
+ f || (v ? p() : h("/reader")), c(f);
4960
5051
  },
4961
- children: /* @__PURE__ */ n.jsxs(ke, { className: "inset-y-3 h-[calc(100vh-24px)] w-screen max-w-[calc(100vw-24px)] !animate-none p-0 focus:outline-none dark:bg-gray-950", children: [
4962
- /* @__PURE__ */ n.jsxs(fe, { className: "hidden", children: [
4963
- /* @__PURE__ */ n.jsx(be, { children: "Reader" }),
4964
- /* @__PURE__ */ n.jsx(xe, { children: "Ghost reader for long form articles" })
5052
+ children: /* @__PURE__ */ n.jsxs(be, { className: "inset-y-3 h-[calc(100vh-24px)] w-screen max-w-[calc(100vw-24px)] !animate-none p-0 focus:outline-none dark:bg-gray-950", children: [
5053
+ /* @__PURE__ */ n.jsxs(xe, { className: "hidden", children: [
5054
+ /* @__PURE__ */ n.jsx(ve, { children: "Reader" }),
5055
+ /* @__PURE__ */ n.jsx(ye, { children: "Ghost reader for long form articles" })
4965
5056
  ] }),
4966
- l.postId && /* @__PURE__ */ n.jsx(Et, { postId: l.postId, onClose: () => {
5057
+ l.postId && /* @__PURE__ */ n.jsx(Ft, { postId: l.postId, onClose: () => {
4967
5058
  v ? p() : h("/reader");
4968
5059
  } })
4969
5060
  ] })
4970
5061
  }
4971
5062
  )
4972
5063
  ] });
4973
- }, Tt = () => {
4974
- const [a, r] = y("following"), { inboxQuery: t } = ve({ enabled: a === "following" }), { discoveryFeedQuery: i } = ye({ enabled: a !== "following", topic: a }), d = a === "following" ? t : i, { data: u, error: c, fetchNextPage: h, hasNextPage: v, isFetchingNextPage: p, isLoading: o } = d, s = c && zn(c) && c.statusCode === 404 && a !== "following";
4975
- if (c && zn(c) && !s)
4976
- return /* @__PURE__ */ n.jsx(we, { errorCode: c.code, statusCode: c.statusCode });
4977
- const l = s ? [] : (u == null ? void 0 : u.pages.flatMap((I) => I.posts)) ?? Array.from({ length: 5 }, (I, R) => ({ id: `placeholder-${R}`, object: {} }));
5064
+ }, $t = () => {
5065
+ const [t, r] = y("following"), { inboxQuery: a } = we({ enabled: t === "following" }), { discoveryFeedQuery: i } = je({ enabled: t !== "following", topic: t }), d = t === "following" ? a : i, { data: u, error: s, fetchNextPage: h, hasNextPage: v, isFetchingNextPage: p, isLoading: o } = d, c = s && _n(s) && s.statusCode === 404 && t !== "following";
5066
+ if (s && _n(s) && !c)
5067
+ return /* @__PURE__ */ n.jsx(ze, { errorCode: s.code, statusCode: s.statusCode });
5068
+ const l = c ? [] : (u == null ? void 0 : u.pages.flatMap((I) => I.posts)) ?? Array.from({ length: 5 }, (I, R) => ({ id: `placeholder-${R}`, object: {} }));
4978
5069
  return /* @__PURE__ */ n.jsx(
4979
- Nt,
5070
+ Lt,
4980
5071
  {
4981
5072
  activities: l,
4982
- currentTopic: a,
5073
+ currentTopic: t,
4983
5074
  fetchNextPage: h,
4984
5075
  hasNextPage: v,
4985
5076
  isFetchingNextPage: p,
@@ -4989,6 +5080,6 @@ a.kg-cta-button {
4989
5080
  );
4990
5081
  };
4991
5082
  export {
4992
- Tt as default
5083
+ $t as default
4993
5084
  };
4994
- //# sourceMappingURL=index-C9pnotJK.mjs.map
5085
+ //# sourceMappingURL=index-BurflorF.mjs.map