@banou/stub 0.0.34 → 0.0.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -12330,14 +12330,14 @@ var Q_ = H`
12330
12330
  }),
12331
12331
  /* @__PURE__ */ Z("span", {
12332
12332
  className: "version",
12333
- title: "stub v0.0.34, commit f40e46f",
12333
+ title: "stub v0.0.36, commit ea08c71",
12334
12334
  children: [
12335
12335
  "v",
12336
- "0.0.34",
12336
+ "0.0.36",
12337
12337
  " ",
12338
12338
  /* @__PURE__ */ X("span", {
12339
12339
  className: "commit",
12340
- children: "f40e46f"
12340
+ children: "ea08c71"
12341
12341
  })
12342
12342
  ]
12343
12343
  })
@@ -25774,11 +25774,19 @@ var KP = ({ link: e }) => {
25774
25774
  }, pF = (e) => {
25775
25775
  let t = nF(e, { origin: location.origin });
25776
25776
  return fF(t, () => t.destroy());
25777
- };
25777
+ }, mF = "stub:embed-title", hF = "stub:embed-title?", gF = (e, t, n = window) => {
25778
+ let r = () => e.contentWindow?.postMessage({
25779
+ type: mF,
25780
+ title: t
25781
+ }, n.location.origin), i = (t) => {
25782
+ t.source === e.contentWindow && t.origin === n.location.origin && t.data?.type === hF && r();
25783
+ };
25784
+ return n.addEventListener("message", i), r(), () => n.removeEventListener("message", i);
25785
+ }, _F = (e, t) => t ? `${e == null ? "" : `E${e} - `}${t}` : e == null ? void 0 : `Episode ${e}`;
25778
25786
  //#endregion
25779
25787
  //#region src/router/watch/index.tsx
25780
25788
  V();
25781
- var mF = (e) => (e ?? []).filter((e) => e.relation === "SAME_AS").map((e) => e.node), hF = ov("\n subscription GetWatchMedia($input: MediaInput!) {\n media(input: $input) {\n _id\n uri\n origin\n id\n titles {\n title\n }\n episodes {\n ...EpisodeFragment\n episodeNumber\n titles {\n title\n }\n thumbnails {\n url\n }\n handles {\n relation\n node {\n _id\n uri\n origin\n id\n url\n embedUrl\n mediaUri\n episodeNumber\n titles {\n title\n }\n shortDescriptions {\n language\n shortDescription\n }\n }\n }\n }\n handles {\n relation\n node {\n ...MediaFragment\n handles {\n relation\n node {\n ...MediaFragment\n episodes {\n ...EpisodeFragment\n }\n }\n }\n episodes {\n ...EpisodeFragment\n episodeNumber\n }\n }\n }\n }\n }\n"), gF = ov("\n subscription GetWatchOrigins($input: OriginPageInput!) {\n originPage(input: $input) {\n nodes {\n id\n url\n name\n icon\n color\n isApiOnly\n }\n }\n }\n"), _F = H`
25789
+ var vF = (e) => (e ?? []).filter((e) => e.relation === "SAME_AS").map((e) => e.node), yF = ov("\n subscription GetWatchMedia($input: MediaInput!) {\n media(input: $input) {\n _id\n uri\n origin\n id\n titles {\n title\n }\n episodes {\n ...EpisodeFragment\n episodeNumber\n titles {\n title\n }\n thumbnails {\n url\n }\n handles {\n relation\n node {\n _id\n uri\n origin\n id\n url\n embedUrl\n mediaUri\n episodeNumber\n titles {\n title\n }\n shortDescriptions {\n language\n shortDescription\n }\n }\n }\n }\n handles {\n relation\n node {\n ...MediaFragment\n handles {\n relation\n node {\n ...MediaFragment\n episodes {\n ...EpisodeFragment\n }\n }\n }\n episodes {\n ...EpisodeFragment\n episodeNumber\n }\n }\n }\n }\n }\n"), bF = ov("\n subscription GetWatchOrigins($input: OriginPageInput!) {\n originPage(input: $input) {\n nodes {\n id\n url\n name\n icon\n color\n isApiOnly\n }\n }\n }\n"), xF = H`
25782
25790
  display: flex;
25783
25791
  flex-direction: column;
25784
25792
  height: 100vh;
@@ -25840,26 +25848,26 @@ var mF = (e) => (e ?? []).filter((e) => e.relation === "SAME_AS").map((e) => e.n
25840
25848
  opacity: 0.6;
25841
25849
  }
25842
25850
  }
25843
- `, vF = () => {
25851
+ `, SF = () => {
25844
25852
  let e = Ol(), t = {
25845
25853
  ...e,
25846
25854
  mediaUri: Iy(e.mediaUri),
25847
25855
  episodeUri: Iy(e.episodeUri),
25848
25856
  sourceUri: Iy(e.sourceUri)
25849
25857
  }, [, n] = Al(), r = R(null), [i, a] = I(void 0), [{ data: o }] = po({
25850
- query: hF,
25858
+ query: yF,
25851
25859
  variables: { input: { uri: t.mediaUri } },
25852
25860
  pause: !t.mediaUri
25853
25861
  }), s = o?.media, l = z(() => s?.episodes?.find((e) => e.uri && t.episodeUri ? By(Py(e.uri), Py(t.episodeUri)) : !1), [s?.episodes, t.episodeUri]), u = z(() => l?.uri ? zy(l.uri)?.handleUrisValues : void 0, [l?.uri]), d = z(() => u && [...new Set(u.map((e) => e.origin))], [u]), [{ data: f }] = po({
25854
- query: gF,
25862
+ query: bF,
25855
25863
  variables: { input: {
25856
25864
  ids: d,
25857
25865
  filters: [Ql.IsNotApiOnly]
25858
25866
  } },
25859
25867
  pause: !d
25860
- }), p = t.sourceUri, m = s?.titles?.at(0)?.title, h = l?.titles?.at(0)?.title, g = l?.episodeNumber, _ = z(() => {
25868
+ }), p = t.sourceUri, m = s?.titles?.at(0)?.title, h = l?.titles?.at(0)?.title, g = l?.episodeNumber, _ = _F(g, h), y = z(() => {
25861
25869
  if (!p) return;
25862
- let e = mF(l?.handles).find((e) => e.uri === p);
25870
+ let e = vF(l?.handles).find((e) => e.uri === p);
25863
25871
  if (!e) return;
25864
25872
  if (e.embedUrl) return e.embedUrl;
25865
25873
  let { origin: n } = wy(p);
@@ -25876,20 +25884,20 @@ var mF = (e) => (e ?? []).filter((e) => e.relation === "SAME_AS").map((e) => e.n
25876
25884
  l?.handles,
25877
25885
  t.mediaUri,
25878
25886
  t.episodeUri
25879
- ]), y = (f?.originPage?.nodes ?? []).map((e) => e.id).join(","), [b, x] = I({}), [S, C] = I({});
25887
+ ]), b = (f?.originPage?.nodes ?? []).map((e) => e.id).join(","), [x, S] = I({}), [C, w] = I({});
25880
25888
  L(() => {
25881
- let e = !1, t = y ? y.split(",") : [], n = async (e) => Object.fromEntries((await Promise.all(t.map(async (t) => [t, (await e(t))?.pluginUri]))).filter((e) => !!e[1]));
25889
+ let e = !1, t = b ? b.split(",") : [], n = async (e) => Object.fromEntries((await Promise.all(t.map(async (t) => [t, (await e(t))?.pluginUri]))).filter((e) => !!e[1]));
25882
25890
  return Promise.all([n(v), n(c)]).then(([t, n]) => {
25883
- e || (x(t), C(n));
25891
+ e || (S(t), w(n));
25884
25892
  }).catch(() => {}), () => {
25885
25893
  e = !0;
25886
25894
  };
25887
- }, [y]);
25888
- let w = z(() => {
25895
+ }, [b]);
25896
+ let T = z(() => {
25889
25897
  if (!p) return;
25890
- let { origin: e } = wy(p), t = S[e];
25898
+ let { origin: e } = wy(p), t = C[e];
25891
25899
  if (!t) return;
25892
- let n = mF(l?.handles).find((e) => e.uri === p);
25900
+ let n = vF(l?.handles).find((e) => e.uri === p);
25893
25901
  return {
25894
25902
  pluginUri: t,
25895
25903
  release: {
@@ -25899,23 +25907,30 @@ var mF = (e) => (e ?? []).filter((e) => e.relation === "SAME_AS").map((e) => e.n
25899
25907
  };
25900
25908
  }, [
25901
25909
  p,
25902
- S,
25910
+ C,
25903
25911
  l?.handles
25904
- ]), [T, E] = I();
25912
+ ]), [E, D] = I();
25905
25913
  L(() => {
25906
- E(void 0);
25914
+ D(void 0);
25907
25915
  }, [p]);
25908
- let D = !!(w && T !== p);
25916
+ let O = !!(T && E !== p);
25909
25917
  L(() => {
25910
25918
  let e = r.current;
25911
- if (D || !_ || !e) return;
25919
+ if (O || !y || !e) return;
25912
25920
  let t = pF(e);
25913
25921
  return a(t), () => {
25914
25922
  t.dispose(), a(void 0);
25915
25923
  };
25916
- }, [D, _]);
25917
- let O = z(() => (f?.originPage?.nodes ?? []).map((e) => {
25918
- let n = mF(l?.handles).filter((t) => t.origin === e.id), r = !!S[e.id], i = (t) => !!(t?.embedUrl || r || mN(e.id) && t?.url), a = (e) => Gl(q.WATCH, {
25924
+ }, [O, y]), L(() => {
25925
+ let e = r.current;
25926
+ if (!O && y && e && _) return gF(e, _);
25927
+ }, [
25928
+ O,
25929
+ y,
25930
+ _
25931
+ ]);
25932
+ let k = z(() => (f?.originPage?.nodes ?? []).map((e) => {
25933
+ let n = vF(l?.handles).filter((t) => t.origin === e.id), r = !!C[e.id], i = (t) => !!(t?.embedUrl || r || mN(e.id) && t?.url), a = (e) => Gl(q.WATCH, {
25919
25934
  mediaUri: t.mediaUri,
25920
25935
  episodeUri: t.episodeUri,
25921
25936
  sourceUri: e
@@ -25935,7 +25950,7 @@ var mF = (e) => (e ?? []).filter((e) => e.relation === "SAME_AS").map((e) => e.n
25935
25950
  external: !s || !i(s),
25936
25951
  active: o.some((e) => e.active),
25937
25952
  releases: o.length > 1 ? o : void 0,
25938
- picker: b[e.id] ? { pluginUri: b[e.id] } : void 0
25953
+ picker: x[e.id] ? { pluginUri: x[e.id] } : void 0
25939
25954
  };
25940
25955
  }), [
25941
25956
  f,
@@ -25943,22 +25958,22 @@ var mF = (e) => (e ?? []).filter((e) => e.relation === "SAME_AS").map((e) => e.n
25943
25958
  t.mediaUri,
25944
25959
  t.episodeUri,
25945
25960
  p,
25946
- b,
25947
- S
25961
+ x,
25962
+ C
25948
25963
  ]);
25949
25964
  return /* @__PURE__ */ X("div", {
25950
- css: _F,
25965
+ css: xF,
25951
25966
  children: /* @__PURE__ */ Z("div", {
25952
25967
  className: "watch-container",
25953
25968
  children: [
25954
- D && w ? /* @__PURE__ */ X(GP, {
25955
- pluginUri: w.pluginUri,
25956
- release: w.release,
25957
- onUnplayable: () => E(p),
25969
+ O && T ? /* @__PURE__ */ X(GP, {
25970
+ pluginUri: T.pluginUri,
25971
+ release: T.release,
25972
+ onUnplayable: () => D(p),
25958
25973
  onPlayback: a
25959
- }) : _ ? /* @__PURE__ */ X("iframe", {
25974
+ }) : y ? /* @__PURE__ */ X("iframe", {
25960
25975
  ref: r,
25961
- src: _,
25976
+ src: y,
25962
25977
  referrerPolicy: "no-referrer",
25963
25978
  allow: "encrypted-media; autoplay; fullscreen;",
25964
25979
  css: H`
@@ -25976,13 +25991,13 @@ var mF = (e) => (e ?? []).filter((e) => e.relation === "SAME_AS").map((e) => e.n
25976
25991
  className: "episode-info",
25977
25992
  children: [/* @__PURE__ */ X("div", {
25978
25993
  className: "episode-title",
25979
- children: h ? `${g == null ? "" : `E${g} - `}${h}` : g == null ? t.episodeUri : `Episode ${g}`
25994
+ children: _ ?? t.episodeUri
25980
25995
  }), m ? /* @__PURE__ */ X("div", {
25981
25996
  className: "media-title",
25982
25997
  children: m
25983
25998
  }) : void 0]
25984
25999
  }), /* @__PURE__ */ X(CN, {
25985
- sources: O,
26000
+ sources: k,
25986
26001
  onPickRelease: (e) => n(Gl(q.WATCH, {
25987
26002
  mediaUri: t.mediaUri,
25988
26003
  episodeUri: t.episodeUri,
@@ -25997,7 +26012,7 @@ var mF = (e) => (e ?? []).filter((e) => e.relation === "SAME_AS").map((e) => e.n
25997
26012
  //#endregion
25998
26013
  //#region src/router/party/index.tsx
25999
26014
  V();
26000
- var yF = H`
26015
+ var CF = H`
26001
26016
  padding: calc(var(--stub-header-height) + 3rem) 3rem 4rem;
26002
26017
  min-height: 100vh;
26003
26018
  max-width: 72rem;
@@ -26111,14 +26126,14 @@ var yF = H`
26111
26126
  }
26112
26127
 
26113
26128
  .field input:focus { border-color: rgba(255, 255, 255, 0.4); }
26114
- `, bF = {
26129
+ `, wF = {
26115
26130
  "not-found": "That party has ended.",
26116
26131
  "bad-key": "The invite link is not valid.",
26117
26132
  invalid: "The invite link is broken.",
26118
26133
  full: "The party is full.",
26119
26134
  blocked: "You cannot join this party.",
26120
26135
  unavailable: "Parties are not available right now. Is FKN connected?"
26121
- }, xF = () => {
26136
+ }, TF = () => {
26122
26137
  let e = G_(), [t] = I(() => z_(location.hash, location.origin)), [n] = I(() => location.hash.length > 1 && !z_(location.hash, location.origin)), [r, i] = I([]), [a, o] = I(() => Q.name() ?? ""), [s, c] = I(!1), l = e.status === "active";
26123
26138
  L(() => {
26124
26139
  if (!t) return;
@@ -26148,7 +26163,7 @@ var yF = H`
26148
26163
  } catch {}
26149
26164
  };
26150
26165
  return /* @__PURE__ */ Z("div", {
26151
- css: yF,
26166
+ css: CF,
26152
26167
  children: [
26153
26168
  /* @__PURE__ */ X("div", {
26154
26169
  className: "heading",
@@ -26156,7 +26171,7 @@ var yF = H`
26156
26171
  }),
26157
26172
  /* @__PURE__ */ Z("div", {
26158
26173
  className: "status",
26159
- children: [n ? /* @__PURE__ */ X(Y, { children: "This invite link is broken. Ask the host for a new one." }) : !t && !l && e.status !== "joining" ? e.status === "failed" ? /* @__PURE__ */ Z(Y, { children: ["Could not join. ", bF[e.code] ?? "Something went wrong."] }) : e.status === "ended" ? /* @__PURE__ */ X(Y, { children: "The party ended." }) : /* @__PURE__ */ X(Y, { children: "You are not in a party. Start one from the header, or open an invite link." }) : !t && e.status === "joining" ? /* @__PURE__ */ X(Y, { children: "Joining the party…" }) : t && !l ? e.status === "joining" ? /* @__PURE__ */ X(Y, { children: "Joining the party…" }) : e.status === "failed" ? /* @__PURE__ */ Z(Y, { children: ["Could not join. ", bF[e.code] ?? "Something went wrong."] }) : e.status === "ended" ? /* @__PURE__ */ X(Y, { children: "The party ended." }) : /* @__PURE__ */ X(Y, { children: "This invite link is broken. Ask the host for a new one." }) : l && e.role === "guest" && t ? /* @__PURE__ */ X(Y, { children: "You are in. Waiting for the host…" }) : l && e.role === "guest" ? /* @__PURE__ */ Z(Y, { children: [
26174
+ children: [n ? /* @__PURE__ */ X(Y, { children: "This invite link is broken. Ask the host for a new one." }) : !t && !l && e.status !== "joining" ? e.status === "failed" ? /* @__PURE__ */ Z(Y, { children: ["Could not join. ", wF[e.code] ?? "Something went wrong."] }) : e.status === "ended" ? /* @__PURE__ */ X(Y, { children: "The party ended." }) : /* @__PURE__ */ X(Y, { children: "You are not in a party. Start one from the header, or open an invite link." }) : !t && e.status === "joining" ? /* @__PURE__ */ X(Y, { children: "Joining the party…" }) : t && !l ? e.status === "joining" ? /* @__PURE__ */ X(Y, { children: "Joining the party…" }) : e.status === "failed" ? /* @__PURE__ */ Z(Y, { children: ["Could not join. ", wF[e.code] ?? "Something went wrong."] }) : e.status === "ended" ? /* @__PURE__ */ X(Y, { children: "The party ended." }) : /* @__PURE__ */ X(Y, { children: "This invite link is broken. Ask the host for a new one." }) : l && e.role === "guest" && t ? /* @__PURE__ */ X(Y, { children: "You are in. Waiting for the host…" }) : l && e.role === "guest" ? /* @__PURE__ */ Z(Y, { children: [
26160
26175
  "You are following the host. ",
26161
26176
  /* @__PURE__ */ X(Rl, {
26162
26177
  to: Gl(q.HOME),
@@ -26282,11 +26297,11 @@ var yF = H`
26282
26297
  ] })
26283
26298
  ]
26284
26299
  });
26285
- }, SF = (e) => e.owned ? "owned" : "placeholder", CF = (e) => {
26300
+ }, EF = (e) => e.owned ? "owned" : "placeholder", DF = (e) => {
26286
26301
  let t = [], n = /* @__PURE__ */ new Set();
26287
26302
  for (let r of e.members ?? []) r.uri && !n.has(r.uri) && (n.add(r.uri), t.push({
26288
26303
  uri: r.uri,
26289
- kind: SF(r),
26304
+ kind: EF(r),
26290
26305
  origin: r.origin,
26291
26306
  scope: r.scope,
26292
26307
  title: r.title,
@@ -26306,8 +26321,8 @@ var yF = H`
26306
26321
  member: null
26307
26322
  }));
26308
26323
  return t;
26309
- }, wF = (e) => {
26310
- let t = CF(e), n = Qy({
26324
+ }, OF = (e) => {
26325
+ let t = DF(e), n = Qy({
26311
26326
  nodes: t.map((e) => ({
26312
26327
  uri: e.uri,
26313
26328
  titles: [{ title: e.title ?? e.uri }],
@@ -26328,10 +26343,10 @@ var yF = H`
26328
26343
  columns: n.columns,
26329
26344
  rows: n.rows
26330
26345
  };
26331
- }, TF = (e, t) => [e, t].sort().join(" "), EF = (e) => {
26346
+ }, kF = (e, t) => [e, t].sort().join(" "), AF = (e) => {
26332
26347
  let t = /* @__PURE__ */ new Map();
26333
26348
  for (let n of e) {
26334
- let e = TF(n.fromUri, n.toUri), r = t.get(e) ?? [];
26349
+ let e = kF(n.fromUri, n.toUri), r = t.get(e) ?? [];
26335
26350
  r.push(n.key), t.set(e, r);
26336
26351
  }
26337
26352
  let n = /* @__PURE__ */ new Map();
@@ -26340,7 +26355,7 @@ var yF = H`
26340
26355
  lanes: e.length
26341
26356
  }));
26342
26357
  return n;
26343
- }, DF = (e) => {
26358
+ }, jF = (e) => {
26344
26359
  let t = /* @__PURE__ */ new Map();
26345
26360
  for (let n of e.links ?? []) t.set(n.key, {
26346
26361
  kind: "link",
@@ -26363,14 +26378,14 @@ var yF = H`
26363
26378
  row: n
26364
26379
  });
26365
26380
  return t;
26366
- }, OF = /^[0-9a-f]{64}$/, kF = (e, t) => (t ?? []).map((t) => {
26381
+ }, MF = /^[0-9a-f]{64}$/, NF = (e, t) => (t ?? []).map((t) => {
26367
26382
  let n = e.get(t) ?? null;
26368
26383
  return {
26369
26384
  key: t,
26370
26385
  ref: n,
26371
- gap: n ? null : OF.test(t) ? "missing" : "not-an-edge-key"
26386
+ gap: n ? null : MF.test(t) ? "missing" : "not-an-edge-key"
26372
26387
  };
26373
- }), AF = (e, t) => (e.answers ?? []).find((e) => e.seq === t) ?? null, jF = (e) => e === null ? null : typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" ? String(e) : JSON.stringify(e), MF = (e) => {
26388
+ }), PF = (e, t) => (e.answers ?? []).find((e) => e.seq === t) ?? null, FF = (e) => e === null ? null : typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" ? String(e) : JSON.stringify(e), IF = (e) => {
26374
26389
  if (e == null || e === "") return { kind: "absent" };
26375
26390
  let t;
26376
26391
  try {
@@ -26391,16 +26406,16 @@ var yF = H`
26391
26406
  kind: "fields",
26392
26407
  fields: Object.entries(t).map(([e, t]) => ({
26393
26408
  field: e,
26394
- value: jF(t)
26409
+ value: FF(t)
26395
26410
  }))
26396
26411
  } : {
26397
26412
  kind: "fields",
26398
26413
  fields: [{
26399
26414
  field: Array.isArray(t) ? "values" : "value",
26400
- value: jF(t)
26415
+ value: FF(t)
26401
26416
  }]
26402
26417
  };
26403
- }, NF = (e) => e === "not-enabled" ? "The graph engine is switched off for this page, so there is nothing to read. Reloading with ?graph=1 turns it on, and this page then asks the sources about the uri itself. The only way a page gets here now is ?store=legacy, which pins it to the old store; dropping that flag puts the whole app back on the graph, which is the default." : e === "graph-empty" ? "The engine is on and the graph is empty. A graph is built inside one tab and never outlives it, so a link opened cold always starts here: what fills it is a page asking the sources, which is what this page does with the uri it was given." : e === "no-row" ? "No media row exists for that uri, so there is nothing to cluster. Either no source has answered for it in this tab yet, or the uri is not one any source recognises." : e === "no-cluster" ? "A media row exists for that uri, but no cluster holds it yet: either a pass has not run since it arrived, or it is a placeholder no pass will ever cluster on its own." : "That uri reached no cluster, and the bundle carries no reason for it.", PF = (e) => e === "active", FF = async (e, t, n = {}, r = {}) => {
26418
+ }, LF = (e) => e === "not-enabled" ? "The graph engine is switched off for this page, so there is nothing to read. Reloading with ?graph=1 turns it on, and this page then asks the sources about the uri itself. The only way a page gets here now is ?store=legacy, which pins it to the old store; dropping that flag puts the whole app back on the graph, which is the default." : e === "graph-empty" ? "The engine is on and the graph is empty. A graph is built inside one tab and never outlives it, so a link opened cold always starts here: what fills it is a page asking the sources, which is what this page does with the uri it was given." : e === "no-row" ? "No media row exists for that uri, so there is nothing to cluster. Either no source has answered for it in this tab yet, or the uri is not one any source recognises." : e === "no-cluster" ? "A media row exists for that uri, but no cluster holds it yet: either a pass has not run since it arrived, or it is a placeholder no pass will ever cluster on its own." : "That uri reached no cluster, and the bundle carries no reason for it.", RF = (e) => e === "active", zF = async (e, t, n = {}, r = {}) => {
26404
26419
  let i = r.settleMs ?? 2e4, a = await e("http://d/graphql", {
26405
26420
  method: "POST",
26406
26421
  headers: {
@@ -26448,7 +26463,7 @@ var yF = H`
26448
26463
  payloads: u,
26449
26464
  last: d
26450
26465
  };
26451
- }, IF = "\n subscription TraceWarm($input: MediaInput!) {\n media(input: $input) {\n _id\n uri\n origin\n id\n url\n episodeCount\n startDate\n status\n titles {\n language\n title\n score\n }\n handles {\n relation\n node {\n _id\n uri\n origin\n id\n url\n }\n }\n episodes {\n uri\n origin\n episodeNumber\n releaseDate\n }\n }\n }\n", LF = (e, t) => {
26466
+ }, BF = "\n subscription TraceWarm($input: MediaInput!) {\n media(input: $input) {\n _id\n uri\n origin\n id\n url\n episodeCount\n startDate\n status\n titles {\n language\n title\n score\n }\n handles {\n relation\n node {\n _id\n uri\n origin\n id\n url\n }\n }\n episodes {\n uri\n origin\n episodeNumber\n releaseDate\n }\n }\n }\n", VF = (e, t) => {
26452
26467
  let n = e?.data?.media;
26453
26468
  return {
26454
26469
  payloads: t,
@@ -26456,7 +26471,7 @@ var yF = H`
26456
26471
  handles: Array.isArray(n?.handles) ? n.handles.length : 0,
26457
26472
  episodes: Array.isArray(n?.episodes) ? n.episodes.length : 0
26458
26473
  };
26459
- }, RF = async (e, { onProgress: t, settleMs: n = 25e3 } = {}) => {
26474
+ }, HF = async (e, { onProgress: t, settleMs: n = 25e3 } = {}) => {
26460
26475
  let r = {
26461
26476
  payloads: 0,
26462
26477
  uri: null,
@@ -26467,37 +26482,37 @@ var yF = H`
26467
26482
  try {
26468
26483
  let i = await import("./assets/lib-worker-CiCWGdxI.js");
26469
26484
  if (typeof i.handleRequest != "function") return r;
26470
- await FF(i.handleRequest, IF, { input: { uri: e } }, {
26485
+ await zF(i.handleRequest, BF, { input: { uri: e } }, {
26471
26486
  settleMs: n,
26472
26487
  onPayload: (e, n) => {
26473
- r = LF(e, n), t?.(r);
26488
+ r = VF(e, n), t?.(r);
26474
26489
  }
26475
26490
  });
26476
26491
  } catch (e) {
26477
26492
  console.error(Error("graph trace: the warm could not ask the sources", { cause: e }));
26478
26493
  }
26479
26494
  return r;
26480
- }, zF = H`
26495
+ }, UF = H`
26481
26496
  &.nothing {
26482
26497
  color: rgb(250, 204, 21);
26483
26498
  font-style: italic;
26484
26499
  }
26485
- `, BF = ({ value: e }) => e === null ? /* @__PURE__ */ X("span", {
26486
- css: zF,
26500
+ `, WF = ({ value: e }) => e === null ? /* @__PURE__ */ X("span", {
26501
+ css: UF,
26487
26502
  className: "nothing",
26488
26503
  children: "null"
26489
26504
  }) : e === void 0 ? /* @__PURE__ */ X("span", {
26490
- css: zF,
26505
+ css: UF,
26491
26506
  className: "nothing",
26492
26507
  children: "absent"
26493
26508
  }) : e === "" ? /* @__PURE__ */ X("span", {
26494
- css: zF,
26509
+ css: UF,
26495
26510
  className: "nothing",
26496
26511
  children: "empty"
26497
26512
  }) : /* @__PURE__ */ X("span", {
26498
- css: zF,
26513
+ css: UF,
26499
26514
  children: String(e)
26500
- }), VF = H`
26515
+ }), GF = H`
26501
26516
  .fields {
26502
26517
  width: 100%;
26503
26518
  border-collapse: collapse;
@@ -26530,14 +26545,14 @@ var yF = H`
26530
26545
  white-space: pre-wrap;
26531
26546
  overflow-wrap: anywhere;
26532
26547
  }
26533
- `, HF = ({ blob: e, label: t }) => /* @__PURE__ */ Z("div", {
26534
- css: VF,
26548
+ `, KF = ({ blob: e, label: t }) => /* @__PURE__ */ Z("div", {
26549
+ css: GF,
26535
26550
  className: "blob",
26536
26551
  "data-blob": t,
26537
26552
  children: [
26538
26553
  e.kind === "absent" && /* @__PURE__ */ X("div", {
26539
26554
  className: "absent",
26540
- children: /* @__PURE__ */ X(BF, { value: null })
26555
+ children: /* @__PURE__ */ X(WF, { value: null })
26541
26556
  }),
26542
26557
  e.kind === "raw" && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X("div", {
26543
26558
  className: "note",
@@ -26553,26 +26568,26 @@ var yF = H`
26553
26568
  children: [/* @__PURE__ */ X("th", {
26554
26569
  scope: "row",
26555
26570
  children: e.field
26556
- }), /* @__PURE__ */ X("td", { children: /* @__PURE__ */ X(BF, { value: e.value }) })]
26571
+ }), /* @__PURE__ */ X("td", { children: /* @__PURE__ */ X(WF, { value: e.value }) })]
26557
26572
  }, e.field)) })
26558
26573
  })
26559
26574
  ]
26560
- }), UF = 88, WF = 20, GF = 36, KF = 266, qF = 76, JF = (e) => [
26575
+ }), qF = 88, JF = 20, YF = 36, XF = 266, ZF = 76, QF = (e) => [
26561
26576
  e.member ? `${e.kind} ${e.member.via === "member" ? "member" : "claimed"}` : "named by an edge",
26562
26577
  e.origin ?? "no origin",
26563
26578
  e.scope ?? "no scope"
26564
- ].join(" · "), YF = (e, t) => {
26579
+ ].join(" · "), $F = (e, t) => {
26565
26580
  let n = e.find((e) => e.key === t);
26566
26581
  return new Set(n ? [n.fromUri, n.toUri] : []);
26567
- }, XF = (e, t) => {
26568
- let n = wF(e), r = e.links ?? [], i = EF(r), a = YF(r, t), o = new Set(n.nodes.map((e) => e.uri));
26582
+ }, eI = (e, t) => {
26583
+ let n = OF(e), r = e.links ?? [], i = AF(r), a = $F(r, t), o = new Set(n.nodes.map((e) => e.uri));
26569
26584
  return {
26570
26585
  nodes: n.nodes.map((e) => ({
26571
26586
  id: e.uri,
26572
26587
  type: "trace",
26573
26588
  position: {
26574
- x: GF + e.column * KF,
26575
- y: GF + e.row * qF
26589
+ x: YF + e.column * XF,
26590
+ y: YF + e.row * ZF
26576
26591
  },
26577
26592
  width: 178,
26578
26593
  height: 56,
@@ -26582,7 +26597,7 @@ var yF = H`
26582
26597
  uri: e.uri,
26583
26598
  kind: e.kind,
26584
26599
  title: e.title,
26585
- meta: JF(e),
26600
+ meta: QF(e),
26586
26601
  lit: a.has(e.uri)
26587
26602
  }
26588
26603
  })),
@@ -26599,21 +26614,21 @@ var yF = H`
26599
26614
  selected: e.key === t,
26600
26615
  data: {
26601
26616
  spread: (n.lane - (n.lanes - 1) / 2) * 26,
26602
- active: PF(e.status),
26617
+ active: RF(e.status),
26603
26618
  status: e.status,
26604
26619
  label: e.kind,
26605
26620
  tooltip: `${e.kind} ${e.status} by ${e.by}: ${e.reason}`
26606
26621
  }
26607
26622
  };
26608
26623
  }),
26609
- width: Math.max(1, n.columns) * KF - UF + 72,
26610
- height: Math.max(1, n.rows) * qF - WF + 72
26624
+ width: Math.max(1, n.columns) * XF - qF + 72,
26625
+ height: Math.max(1, n.rows) * ZF - JF + 72
26611
26626
  };
26612
26627
  };
26613
26628
  //#endregion
26614
26629
  //#region src/router/debug/graph.tsx
26615
26630
  V();
26616
- var ZF = H`
26631
+ var tI = H`
26617
26632
  position: relative;
26618
26633
  height: 46rem;
26619
26634
  border: 1px solid rgba(255, 255, 255, 0.12);
@@ -26685,7 +26700,7 @@ var ZF = H`
26685
26700
  .edge-label.active { fill: rgb(134, 239, 172); }
26686
26701
  .edge-label.refused { fill: rgb(252, 165, 165); }
26687
26702
  .cross { stroke: rgb(248, 113, 113); stroke-width: 1.5; }
26688
- `, QF = (e, t) => e.length > t ? `${e.slice(0, t - 1)}…` : e, $F = ({ data: e }) => /* @__PURE__ */ Z("div", {
26703
+ `, nI = (e, t) => e.length > t ? `${e.slice(0, t - 1)}…` : e, rI = ({ data: e }) => /* @__PURE__ */ Z("div", {
26689
26704
  className: `trace-node ${e.kind}${e.lit ? " lit" : ""}`,
26690
26705
  "data-node": e.uri,
26691
26706
  "data-kind": e.kind,
@@ -26697,19 +26712,19 @@ var ZF = H`
26697
26712
  }),
26698
26713
  /* @__PURE__ */ X("div", {
26699
26714
  className: "uri",
26700
- children: QF(e.uri, 26)
26715
+ children: nI(e.uri, 26)
26701
26716
  }),
26702
- /* @__PURE__ */ X("div", { children: e.title === null ? "no title" : QF(e.title, 28) }),
26717
+ /* @__PURE__ */ X("div", { children: e.title === null ? "no title" : nI(e.title, 28) }),
26703
26718
  /* @__PURE__ */ X("div", {
26704
26719
  className: "meta",
26705
- children: QF(e.meta, 34)
26720
+ children: nI(e.meta, 34)
26706
26721
  }),
26707
26722
  /* @__PURE__ */ X(xA, {
26708
26723
  type: "source",
26709
26724
  position: $.Right
26710
26725
  })
26711
26726
  ]
26712
- }), eI = ({ data: e, selected: t, sourceX: n, sourceY: r, targetX: i, targetY: a }) => {
26727
+ }), iI = ({ data: e, selected: t, sourceX: n, sourceY: r, targetX: i, targetY: a }) => {
26713
26728
  let o = e?.spread ?? 0, s = e?.active ? "active" : "refused", c = i >= n, l = Math.max(20, Math.abs(i - n) / 2) * (c ? 1 : -1), u = `M ${n} ${r} C ${n + l} ${r + o}, ${i - l} ${a + o}, ${i} ${a}`, d = (n + i) / 2, f = (r + a) / 2 + o * .75;
26714
26729
  return /* @__PURE__ */ Z(Y, { children: [
26715
26730
  /* @__PURE__ */ X("path", {
@@ -26736,13 +26751,13 @@ var ZF = H`
26736
26751
  x: d,
26737
26752
  y: f - 9,
26738
26753
  textAnchor: "middle",
26739
- children: QF(e?.label ?? "", 22)
26754
+ children: nI(e?.label ?? "", 22)
26740
26755
  })
26741
26756
  ] });
26742
- }, tI = { trace: $F }, nI = { trace: eI }, rI = ({ bundle: e, selected: t, onSelect: n }) => {
26743
- let { nodes: r, edges: i } = z(() => XF(e, t), [e, t]), a = B((e, t) => n(t.id), [n]);
26757
+ }, aI = { trace: rI }, oI = { trace: iI }, sI = ({ bundle: e, selected: t, onSelect: n }) => {
26758
+ let { nodes: r, edges: i } = z(() => eI(e, t), [e, t]), a = B((e, t) => n(t.id), [n]);
26744
26759
  return /* @__PURE__ */ Z("div", {
26745
- css: ZF,
26760
+ css: tI,
26746
26761
  "data-trace-graph": !0,
26747
26762
  children: [/* @__PURE__ */ Z("div", {
26748
26763
  className: "legend",
@@ -26756,8 +26771,8 @@ var ZF = H`
26756
26771
  }), /* @__PURE__ */ X(eM, {
26757
26772
  nodes: r,
26758
26773
  edges: i,
26759
- nodeTypes: tI,
26760
- edgeTypes: nI,
26774
+ nodeTypes: aI,
26775
+ edgeTypes: oI,
26761
26776
  onEdgeClick: a,
26762
26777
  nodesDraggable: !1,
26763
26778
  nodesConnectable: !1,
@@ -26778,7 +26793,7 @@ var ZF = H`
26778
26793
  //#endregion
26779
26794
  //#region src/router/debug/inspector.tsx
26780
26795
  V();
26781
- var iI = H`
26796
+ var cI = H`
26782
26797
  border: 1px solid rgba(255, 255, 255, 0.12);
26783
26798
  border-radius: 0.5rem;
26784
26799
  padding: 1rem 1.2rem;
@@ -26878,7 +26893,7 @@ var iI = H`
26878
26893
  }
26879
26894
 
26880
26895
  .empty { color: rgba(255, 255, 255, 0.5); }
26881
- `, aI = (e) => e.kind === "link" ? `link ${e.row.kind} ${e.row.status} by ${e.row.by}` : e.kind === "episode-link" ? `episode link ${e.row.kind} ${e.row.status} by ${e.row.by}` : e.kind === "claim" ? `claim ${e.row.kind} from ${e.row.claimer}` : e.kind === "episode-source" ? `episode list from ${e.row.claimer}` : `episode claim ${e.row.kind} from ${e.row.claimer}`, oI = (e) => e === "not-an-edge-key" ? "not an edge key" : "not in this bundle", sI = (e) => {
26896
+ `, lI = (e) => e.kind === "link" ? `link ${e.row.kind} ${e.row.status} by ${e.row.by}` : e.kind === "episode-link" ? `episode link ${e.row.kind} ${e.row.status} by ${e.row.by}` : e.kind === "claim" ? `claim ${e.row.kind} from ${e.row.claimer}` : e.kind === "episode-source" ? `episode list from ${e.row.claimer}` : `episode claim ${e.row.kind} from ${e.row.claimer}`, uI = (e) => e === "not-an-edge-key" ? "not an edge key" : "not in this bundle", dI = (e) => {
26882
26897
  if (e == null) return "";
26883
26898
  if (typeof e == "string") return e;
26884
26899
  if (e instanceof Uint8Array) return new TextDecoder().decode(e);
@@ -26889,20 +26904,20 @@ var iI = H`
26889
26904
  } catch {
26890
26905
  return String(e);
26891
26906
  }
26892
- }, cI = ({ rows: e }) => /* @__PURE__ */ X("table", {
26907
+ }, fI = ({ rows: e }) => /* @__PURE__ */ X("table", {
26893
26908
  className: "facts",
26894
26909
  children: /* @__PURE__ */ X("tbody", { children: e.map(([e, t]) => /* @__PURE__ */ Z("tr", {
26895
26910
  "data-fact": e,
26896
26911
  children: [/* @__PURE__ */ X("th", {
26897
26912
  scope: "row",
26898
26913
  children: e
26899
- }), /* @__PURE__ */ X("td", { children: /* @__PURE__ */ X(BF, { value: t }) })]
26914
+ }), /* @__PURE__ */ X("td", { children: /* @__PURE__ */ X(WF, { value: t }) })]
26900
26915
  }, e)) })
26901
- }), lI = ({ bundle: e, seq: t, answer: n, onLoad: r }) => {
26902
- let i = AF(e, t);
26916
+ }), pI = ({ bundle: e, seq: t, answer: n, onLoad: r }) => {
26917
+ let i = PF(e, t);
26903
26918
  return /* @__PURE__ */ Z(Y, { children: [
26904
26919
  /* @__PURE__ */ Z("h4", { children: ["answer ", t] }),
26905
- i ? /* @__PURE__ */ X(cI, { rows: [
26920
+ i ? /* @__PURE__ */ X(fI, { rows: [
26906
26921
  ["uri", i.uri],
26907
26922
  ["origin", i.origin],
26908
26923
  ["operation", i.operation],
@@ -26937,8 +26952,8 @@ var iI = H`
26937
26952
  ]
26938
26953
  })
26939
26954
  ] });
26940
- }, uI = ({ bundle: e, index: t, trail: n, onFollow: r, onTrailTo: i, loadAnswerBytes: a }) => {
26941
- let [o, s] = I(void 0), c = n[n.length - 1], l = c === void 0 ? void 0 : t.get(c), u = kF(t, l && (l.kind === "link" || l.kind === "episode-link") ? l.row.supports : []), d = (e) => {
26955
+ }, mI = ({ bundle: e, index: t, trail: n, onFollow: r, onTrailTo: i, loadAnswerBytes: a }) => {
26956
+ let [o, s] = I(void 0), c = n[n.length - 1], l = c === void 0 ? void 0 : t.get(c), u = NF(t, l && (l.kind === "link" || l.kind === "episode-link") ? l.row.supports : []), d = (e) => {
26942
26957
  s({
26943
26958
  seq: e,
26944
26959
  state: "loading",
@@ -26946,7 +26961,7 @@ var iI = H`
26946
26961
  }), a(e).then((t) => s({
26947
26962
  seq: e,
26948
26963
  state: "done",
26949
- text: sI(t)
26964
+ text: dI(t)
26950
26965
  })).catch((t) => s({
26951
26966
  seq: e,
26952
26967
  state: "failed",
@@ -26954,7 +26969,7 @@ var iI = H`
26954
26969
  }));
26955
26970
  };
26956
26971
  return /* @__PURE__ */ Z("div", {
26957
- css: iI,
26972
+ css: cI,
26958
26973
  "data-inspector": !0,
26959
26974
  children: [/* @__PURE__ */ X("h3", { children: "Edge inspector" }), c === void 0 ? /* @__PURE__ */ X("p", {
26960
26975
  className: "empty",
@@ -26964,10 +26979,10 @@ var iI = H`
26964
26979
  children: [n.slice(0, -1).map((e, n) => /* @__PURE__ */ X("button", {
26965
26980
  type: "button",
26966
26981
  onClick: () => i(n),
26967
- children: t.get(e) ? aI(t.get(e)) : e
26982
+ children: t.get(e) ? lI(t.get(e)) : e
26968
26983
  }, e)), /* @__PURE__ */ X("span", {
26969
26984
  className: "here",
26970
- children: l ? aI(l) : c
26985
+ children: l ? lI(l) : c
26971
26986
  })]
26972
26987
  }), l === void 0 ? /* @__PURE__ */ Z("p", {
26973
26988
  className: "empty",
@@ -26979,7 +26994,7 @@ var iI = H`
26979
26994
  ]
26980
26995
  }) : /* @__PURE__ */ Z(Y, { children: [
26981
26996
  (l.kind === "link" || l.kind === "episode-link") && /* @__PURE__ */ Z(Y, { children: [
26982
- /* @__PURE__ */ X(cI, { rows: [
26997
+ /* @__PURE__ */ X(fI, { rows: [
26983
26998
  ["from", l.row.fromUri],
26984
26999
  ["to", l.row.toUri],
26985
27000
  ["kind", l.row.kind],
@@ -26990,22 +27005,22 @@ var iI = H`
26990
27005
  "status",
26991
27006
  " ",
26992
27007
  /* @__PURE__ */ X("span", {
26993
- className: `status ${PF(l.row.status) ? "active" : "refused"}`,
27008
+ className: `status ${RF(l.row.status) ? "active" : "refused"}`,
26994
27009
  children: l.row.status
26995
27010
  })
26996
27011
  ] }),
26997
- /* @__PURE__ */ X(cI, { rows: l.kind === "link" ? [["confidence", l.row.confidence], ["version", l.row.version]] : [["from number", l.row.fromNumber], ["to number", l.row.toNumber]] }),
27012
+ /* @__PURE__ */ X(fI, { rows: l.kind === "link" ? [["confidence", l.row.confidence], ["version", l.row.version]] : [["from number", l.row.fromNumber], ["to number", l.row.toNumber]] }),
26998
27013
  /* @__PURE__ */ X("h4", { children: "evidence" }),
26999
- /* @__PURE__ */ X(HF, {
27000
- blob: MF(l.row.evidence),
27014
+ /* @__PURE__ */ X(KF, {
27015
+ blob: IF(l.row.evidence),
27001
27016
  label: "evidence"
27002
27017
  }),
27003
- l.kind === "link" && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X("h4", { children: "gates" }), /* @__PURE__ */ X(HF, {
27004
- blob: MF(l.row.gates),
27018
+ l.kind === "link" && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X("h4", { children: "gates" }), /* @__PURE__ */ X(KF, {
27019
+ blob: IF(l.row.gates),
27005
27020
  label: "gates"
27006
27021
  })] })
27007
27022
  ] }),
27008
- (l.kind === "claim" || l.kind === "episode-claim") && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(cI, { rows: [
27023
+ (l.kind === "claim" || l.kind === "episode-claim") && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(fI, { rows: [
27009
27024
  ["from", l.row.fromUri],
27010
27025
  ["to", l.row.toUri],
27011
27026
  ["kind", l.row.kind],
@@ -27013,18 +27028,18 @@ var iI = H`
27013
27028
  ["provenance", l.row.provenance],
27014
27029
  ["answer seq", l.row.answerSeq],
27015
27030
  ...l.kind === "claim" ? [["target scope", l.row.targetScope]] : []
27016
- ] }), /* @__PURE__ */ X(lI, {
27031
+ ] }), /* @__PURE__ */ X(pI, {
27017
27032
  bundle: e,
27018
27033
  seq: l.row.answerSeq,
27019
27034
  answer: o,
27020
27035
  onLoad: d
27021
27036
  })] }),
27022
- l.kind === "episode-source" && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(cI, { rows: [
27037
+ l.kind === "episode-source" && /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(fI, { rows: [
27023
27038
  ["media", l.row.fromUri],
27024
27039
  ["episode", l.row.toUri],
27025
27040
  ["listed by", l.row.claimer],
27026
27041
  ["answer seq", l.row.answerSeq]
27027
- ] }), /* @__PURE__ */ X(lI, {
27042
+ ] }), /* @__PURE__ */ X(pI, {
27028
27043
  bundle: e,
27029
27044
  seq: l.row.answerSeq,
27030
27045
  answer: o,
@@ -27049,11 +27064,11 @@ var iI = H`
27049
27064
  children: "Follow"
27050
27065
  }) : /* @__PURE__ */ X("span", {
27051
27066
  className: "unresolved",
27052
- children: oI(e.gap)
27067
+ children: uI(e.gap)
27053
27068
  }),
27054
27069
  /* @__PURE__ */ X("span", {
27055
27070
  className: "what",
27056
- children: e.ref ? aI(e.ref) : "unresolved"
27071
+ children: e.ref ? lI(e.ref) : "unresolved"
27057
27072
  }),
27058
27073
  /* @__PURE__ */ X("span", {
27059
27074
  className: "key",
@@ -27064,7 +27079,7 @@ var iI = H`
27064
27079
  })
27065
27080
  ] })] })]
27066
27081
  });
27067
- }, dI = H`
27082
+ }, hI = H`
27068
27083
  table {
27069
27084
  width: 100%;
27070
27085
  border-collapse: collapse;
@@ -27117,8 +27132,8 @@ var iI = H`
27117
27132
  .status.active { color: rgb(74, 222, 128); }
27118
27133
  .status.refused { color: rgb(248, 113, 113); }
27119
27134
  .empty { color: rgba(255, 255, 255, 0.5); font-size: 1.2rem; }
27120
- `, fI = ({ fill: e, index: t, onSelect: n }) => {
27121
- let r = kF(t, e.supports);
27135
+ `, gI = ({ fill: e, index: t, onSelect: n }) => {
27136
+ let r = NF(t, e.supports);
27122
27137
  return r.length === 0 ? /* @__PURE__ */ X("div", {
27123
27138
  className: "proof",
27124
27139
  children: /* @__PURE__ */ X("span", {
@@ -27141,20 +27156,20 @@ var iI = H`
27141
27156
  children: `${t.fromUri} #${t.fromNumber ?? "null"} to ${t.toUri} #${t.toNumber ?? "null"}`
27142
27157
  }) : /* @__PURE__ */ X("span", {
27143
27158
  className: "pair",
27144
- children: e.ref ? `${aI(e.ref)} ${e.key}` : /* @__PURE__ */ X("span", {
27159
+ children: e.ref ? `${lI(e.ref)} ${e.key}` : /* @__PURE__ */ X("span", {
27145
27160
  className: "missing",
27146
- children: `${e.key}: ${oI(e.gap)}`
27161
+ children: `${e.key}: ${uI(e.gap)}`
27147
27162
  })
27148
27163
  }),
27149
27164
  t && /* @__PURE__ */ X("span", {
27150
- className: `status ${PF(t.status) ? "active" : "refused"}`,
27165
+ className: `status ${RF(t.status) ? "active" : "refused"}`,
27151
27166
  children: t.status
27152
27167
  })
27153
27168
  ]
27154
27169
  }, e.key);
27155
27170
  }) });
27156
- }, pI = ({ bundle: e, index: t, selected: n, onSelect: r }) => /* @__PURE__ */ Z("div", {
27157
- css: dI,
27171
+ }, _I = ({ bundle: e, index: t, selected: n, onSelect: r }) => /* @__PURE__ */ Z("div", {
27172
+ css: hI,
27158
27173
  "data-episodes": !0,
27159
27174
  children: [
27160
27175
  (e.episodes ?? []).length === 0 ? /* @__PURE__ */ X("p", {
@@ -27174,8 +27189,8 @@ var iI = H`
27174
27189
  className: "slot",
27175
27190
  children: e.slotId
27176
27191
  }),
27177
- /* @__PURE__ */ X("td", { children: /* @__PURE__ */ X(BF, { value: e.number }) }),
27178
- /* @__PURE__ */ X("td", { children: /* @__PURE__ */ X(BF, { value: e.title }) }),
27192
+ /* @__PURE__ */ X("td", { children: /* @__PURE__ */ X(WF, { value: e.number }) }),
27193
+ /* @__PURE__ */ X("td", { children: /* @__PURE__ */ X(WF, { value: e.title }) }),
27179
27194
  /* @__PURE__ */ X("td", { children: e.fills.length === 0 ? /* @__PURE__ */ X("span", {
27180
27195
  className: "empty",
27181
27196
  children: "nothing fills this slot"
@@ -27188,7 +27203,7 @@ var iI = H`
27188
27203
  className: "uri",
27189
27204
  children: e.episodeUri
27190
27205
  }),
27191
- /* @__PURE__ */ Z("span", { children: ["#", /* @__PURE__ */ X(BF, { value: e.number })] }),
27206
+ /* @__PURE__ */ Z("span", { children: ["#", /* @__PURE__ */ X(WF, { value: e.number })] }),
27192
27207
  /* @__PURE__ */ X("span", { children: e.origin }),
27193
27208
  /* @__PURE__ */ X("span", {
27194
27209
  className: "via",
@@ -27199,7 +27214,7 @@ var iI = H`
27199
27214
  children: e.by
27200
27215
  })
27201
27216
  ]
27202
- }), /* @__PURE__ */ X(fI, {
27217
+ }), /* @__PURE__ */ X(gI, {
27203
27218
  fill: e,
27204
27219
  index: t,
27205
27220
  onSelect: r
@@ -27237,7 +27252,7 @@ var iI = H`
27237
27252
  }),
27238
27253
  /* @__PURE__ */ X("td", { children: e.kind }),
27239
27254
  /* @__PURE__ */ X("td", { children: /* @__PURE__ */ X("span", {
27240
- className: `status ${PF(e.status) ? "active" : "refused"}`,
27255
+ className: `status ${RF(e.status) ? "active" : "refused"}`,
27241
27256
  children: e.status
27242
27257
  }) }),
27243
27258
  /* @__PURE__ */ X("td", { children: e.by }),
@@ -27293,7 +27308,7 @@ var iI = H`
27293
27308
  //#endregion
27294
27309
  //#region src/router/debug/index.tsx
27295
27310
  V();
27296
- var mI = H`
27311
+ var vI = H`
27297
27312
  max-width: 150rem;
27298
27313
  margin: calc(var(--stub-header-height) + 2rem) auto 6rem;
27299
27314
  padding: 0 1.5rem;
@@ -27403,14 +27418,14 @@ var mI = H`
27403
27418
 
27404
27419
  .columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
27405
27420
  @media (max-width: 900px) { .columns { grid-template-columns: 1fr; } }
27406
- `, hI = 1500, gI = ({ label: e, value: t }) => /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X("span", {
27421
+ `, yI = 1500, bI = ({ label: e, value: t }) => /* @__PURE__ */ Z("div", { children: [/* @__PURE__ */ X("span", {
27407
27422
  className: "label",
27408
27423
  children: e
27409
- }), /* @__PURE__ */ X("code", { children: /* @__PURE__ */ X(BF, { value: t }) })] }), _I = ({ reason: e }) => e === "null" ? /* @__PURE__ */ X("code", {
27424
+ }), /* @__PURE__ */ X("code", { children: /* @__PURE__ */ X(WF, { value: t }) })] }), xI = ({ reason: e }) => e === "null" ? /* @__PURE__ */ X("code", {
27410
27425
  className: "token",
27411
27426
  "data-token-reason": !0,
27412
27427
  children: "\"null\""
27413
- }) : /* @__PURE__ */ X(BF, { value: e }), vI = ({ load: e = py, loadAnswerBytes: t = my, warm: n = RF }) => {
27428
+ }) : /* @__PURE__ */ X(WF, { value: e }), SI = ({ load: e = py, loadAnswerBytes: t = my, warm: n = HF }) => {
27414
27429
  let r = jl(), [, i] = Al(), a = Cy(r), [o, s] = I(a), [c, l] = I({ kind: "idle" }), [u, d] = I(0), [f, p] = I({ kind: "off" }), [m, h] = I([]), g = R(""), _ = R(void 0);
27415
27430
  L(() => {
27416
27431
  s(a), h([]), p({ kind: "off" }), g.current = "", _.current !== void 0 && clearTimeout(_.current), _.current = void 0;
@@ -27434,14 +27449,14 @@ var mI = H`
27434
27449
  t = !1;
27435
27450
  };
27436
27451
  }, [a, u]);
27437
- let v = c.kind === "done" ? c.bundle : void 0, y = z(() => v ? DF(v) : /* @__PURE__ */ new Map(), [v]), b = m[m.length - 1], x = !(!v || v.resolved || v.reason === "not-enabled");
27452
+ let v = c.kind === "done" ? c.bundle : void 0, y = z(() => v ? jF(v) : /* @__PURE__ */ new Map(), [v]), b = m[m.length - 1], x = !(!v || v.resolved || v.reason === "not-enabled");
27438
27453
  return L(() => {
27439
27454
  if (!a || !x || g.current === a) return;
27440
27455
  g.current = a;
27441
27456
  let e = a, t = () => g.current === e, r = () => {
27442
27457
  _.current === void 0 && (_.current = setTimeout(() => {
27443
27458
  _.current = void 0, t() && d((e) => e + 1);
27444
- }, hI));
27459
+ }, yI));
27445
27460
  };
27446
27461
  p({
27447
27462
  kind: "asking",
@@ -27467,7 +27482,7 @@ var mI = H`
27467
27482
  }, [a, x]), L(() => () => {
27468
27483
  g.current = "", _.current !== void 0 && clearTimeout(_.current);
27469
27484
  }, []), /* @__PURE__ */ Z("div", {
27470
- css: mI,
27485
+ css: vI,
27471
27486
  "data-debug-trace": !0,
27472
27487
  children: [
27473
27488
  /* @__PURE__ */ X("h1", { children: "Graph trace" }),
@@ -27525,23 +27540,23 @@ var mI = H`
27525
27540
  children: [/* @__PURE__ */ Z("div", {
27526
27541
  className: "pairs",
27527
27542
  children: [
27528
- /* @__PURE__ */ X(gI, {
27543
+ /* @__PURE__ */ X(bI, {
27529
27544
  label: "asked",
27530
27545
  value: v.asked
27531
27546
  }),
27532
- /* @__PURE__ */ X(gI, {
27547
+ /* @__PURE__ */ X(bI, {
27533
27548
  label: "cluster",
27534
27549
  value: v.resolved.clusterId
27535
27550
  }),
27536
- /* @__PURE__ */ X(gI, {
27551
+ /* @__PURE__ */ X(bI, {
27537
27552
  label: "aggregate",
27538
27553
  value: v.resolved.aggUri
27539
27554
  }),
27540
- /* @__PURE__ */ X(gI, {
27555
+ /* @__PURE__ */ X(bI, {
27541
27556
  label: "scope",
27542
27557
  value: v.resolved.scope
27543
27558
  }),
27544
- /* @__PURE__ */ X(gI, {
27559
+ /* @__PURE__ */ X(bI, {
27545
27560
  label: "kind",
27546
27561
  value: v.resolved.kind
27547
27562
  })
@@ -27571,7 +27586,7 @@ var mI = H`
27571
27586
  children: [
27572
27587
  /* @__PURE__ */ X("div", {
27573
27588
  className: "why",
27574
- children: NF(v.reason)
27589
+ children: LF(v.reason)
27575
27590
  }),
27576
27591
  v.reason === "not-enabled" && /* @__PURE__ */ Z("div", {
27577
27592
  className: "advice",
@@ -27592,10 +27607,10 @@ var mI = H`
27592
27607
  }),
27593
27608
  /* @__PURE__ */ Z("div", {
27594
27609
  className: "pairs",
27595
- children: [/* @__PURE__ */ X(gI, {
27610
+ children: [/* @__PURE__ */ X(bI, {
27596
27611
  label: "asked",
27597
27612
  value: v.asked
27598
- }), /* @__PURE__ */ X(gI, {
27613
+ }), /* @__PURE__ */ X(bI, {
27599
27614
  label: "reason",
27600
27615
  value: v.reason ?? null
27601
27616
  })]
@@ -27606,19 +27621,19 @@ var mI = H`
27606
27621
  className: "pairs",
27607
27622
  "data-run-length": !0,
27608
27623
  children: [
27609
- /* @__PURE__ */ X(gI, {
27624
+ /* @__PURE__ */ X(bI, {
27610
27625
  label: "run length",
27611
27626
  value: v.runLength?.value ?? null
27612
27627
  }),
27613
- /* @__PURE__ */ X(gI, {
27628
+ /* @__PURE__ */ X(bI, {
27614
27629
  label: "from",
27615
27630
  value: v.runLength?.from ?? null
27616
27631
  }),
27617
- /* @__PURE__ */ X(gI, {
27632
+ /* @__PURE__ */ X(bI, {
27618
27633
  label: "tier",
27619
27634
  value: v.runLength?.tier ?? null
27620
27635
  }),
27621
- /* @__PURE__ */ X(gI, {
27636
+ /* @__PURE__ */ X(bI, {
27622
27637
  label: "witnesses",
27623
27638
  value: v.runLength?.witnesses ?? null
27624
27639
  })
@@ -27627,10 +27642,10 @@ var mI = H`
27627
27642
  /* @__PURE__ */ Z("div", {
27628
27643
  className: "pairs",
27629
27644
  "data-cost": !0,
27630
- children: [/* @__PURE__ */ X(gI, {
27645
+ children: [/* @__PURE__ */ X(bI, {
27631
27646
  label: "statements",
27632
27647
  value: v.cost?.statements ?? null
27633
- }), /* @__PURE__ */ X(gI, {
27648
+ }), /* @__PURE__ */ X(bI, {
27634
27649
  label: "ms to build",
27635
27650
  value: v.cost?.ms ?? null
27636
27651
  })]
@@ -27668,16 +27683,16 @@ var mI = H`
27668
27683
  ] }) }), /* @__PURE__ */ X("tbody", { children: v.asks.map((e, t) => /* @__PURE__ */ Z("tr", {
27669
27684
  "data-ask": e.origin,
27670
27685
  children: [
27671
- /* @__PURE__ */ X("td", { children: /* @__PURE__ */ X(BF, { value: e.seq ?? null }) }),
27686
+ /* @__PURE__ */ X("td", { children: /* @__PURE__ */ X(WF, { value: e.seq ?? null }) }),
27672
27687
  /* @__PURE__ */ X("td", { children: e.origin }),
27673
27688
  /* @__PURE__ */ X("td", { children: e.outcome }),
27674
- /* @__PURE__ */ X("td", { children: /* @__PURE__ */ X(_I, { reason: e.reason }) })
27689
+ /* @__PURE__ */ X("td", { children: /* @__PURE__ */ X(xI, { reason: e.reason }) })
27675
27690
  ]
27676
27691
  }, `${e.origin} ${e.seq ?? t}`)) })]
27677
27692
  })] })]
27678
27693
  }),
27679
27694
  /* @__PURE__ */ X("h2", { children: "Media graph" }),
27680
- /* @__PURE__ */ X(rI, {
27695
+ /* @__PURE__ */ X(sI, {
27681
27696
  bundle: v,
27682
27697
  selected: b,
27683
27698
  onSelect: (e) => h([e])
@@ -27712,12 +27727,12 @@ var mI = H`
27712
27727
  }),
27713
27728
  /* @__PURE__ */ X("td", { children: e.kind }),
27714
27729
  /* @__PURE__ */ X("td", { children: /* @__PURE__ */ X("span", {
27715
- className: `status ${PF(e.status) ? "active" : "refused"}`,
27730
+ className: `status ${RF(e.status) ? "active" : "refused"}`,
27716
27731
  children: e.status
27717
27732
  }) }),
27718
27733
  /* @__PURE__ */ X("td", { children: e.by }),
27719
27734
  /* @__PURE__ */ X("td", { children: e.reason }),
27720
- /* @__PURE__ */ X("td", { children: /* @__PURE__ */ X(BF, { value: e.confidence }) }),
27735
+ /* @__PURE__ */ X("td", { children: /* @__PURE__ */ X(WF, { value: e.confidence }) }),
27721
27736
  /* @__PURE__ */ X("td", { children: /* @__PURE__ */ X("button", {
27722
27737
  type: "button",
27723
27738
  className: "inspect",
@@ -27758,7 +27773,7 @@ var mI = H`
27758
27773
  /* @__PURE__ */ X("td", { children: e.claimer }),
27759
27774
  /* @__PURE__ */ X("td", { children: e.provenance }),
27760
27775
  /* @__PURE__ */ X("td", { children: e.answerSeq }),
27761
- /* @__PURE__ */ X("td", { children: /* @__PURE__ */ X(BF, { value: e.targetScope }) }),
27776
+ /* @__PURE__ */ X("td", { children: /* @__PURE__ */ X(WF, { value: e.targetScope }) }),
27762
27777
  /* @__PURE__ */ X("td", { children: /* @__PURE__ */ X("button", {
27763
27778
  type: "button",
27764
27779
  className: "inspect",
@@ -27794,9 +27809,9 @@ var mI = H`
27794
27809
  /* @__PURE__ */ X("td", { children: e.by }),
27795
27810
  /* @__PURE__ */ X("td", {
27796
27811
  className: "uri",
27797
- children: /* @__PURE__ */ X(BF, { value: e.evidence })
27812
+ children: /* @__PURE__ */ X(WF, { value: e.evidence })
27798
27813
  }),
27799
- /* @__PURE__ */ X("td", { children: (e.supports ?? []).length === 0 ? /* @__PURE__ */ X(BF, { value: null }) : e.supports.map((e) => /* @__PURE__ */ X("button", {
27814
+ /* @__PURE__ */ X("td", { children: (e.supports ?? []).length === 0 ? /* @__PURE__ */ X(WF, { value: null }) : e.supports.map((e) => /* @__PURE__ */ X("button", {
27800
27815
  type: "button",
27801
27816
  className: "inspect",
27802
27817
  "data-attachment-support": e,
@@ -27806,14 +27821,14 @@ var mI = H`
27806
27821
  ] }, `${e.runUri} ${e.containerUri} ${e.via} ${e.by}`)) })]
27807
27822
  }),
27808
27823
  /* @__PURE__ */ X("h2", { children: "Episodes" }),
27809
- /* @__PURE__ */ X(pI, {
27824
+ /* @__PURE__ */ X(_I, {
27810
27825
  bundle: v,
27811
27826
  index: y,
27812
27827
  selected: b,
27813
27828
  onSelect: (e) => h([e])
27814
27829
  }),
27815
27830
  /* @__PURE__ */ X("h2", { children: "Inspector" }),
27816
- /* @__PURE__ */ X(uI, {
27831
+ /* @__PURE__ */ X(mI, {
27817
27832
  bundle: v,
27818
27833
  index: y,
27819
27834
  trail: m,
@@ -27824,52 +27839,52 @@ var mI = H`
27824
27839
  ] })
27825
27840
  ]
27826
27841
  });
27827
- }, yI = "[data-party-scroll]", bI = () => {
27828
- let e = document.querySelectorAll(yI);
27842
+ }, CI = "[data-party-scroll]", wI = () => {
27843
+ let e = document.querySelectorAll(CI);
27829
27844
  for (let t = e.length - 1; t >= 0; t--) {
27830
27845
  let n = e[t];
27831
27846
  if (n.scrollHeight - n.clientHeight > 0) return n;
27832
27847
  }
27833
- }, xI = (e, t) => t > 0 ? Math.min(1, Math.max(0, e / t)) : 0, SI = () => {
27834
- let e = bI();
27848
+ }, TI = (e, t) => t > 0 ? Math.min(1, Math.max(0, e / t)) : 0, EI = () => {
27849
+ let e = wI();
27835
27850
  return e ? Math.max(0, e.scrollHeight - e.clientHeight) : Math.max(0, document.documentElement.scrollHeight - window.innerHeight);
27836
- }, CI = () => {
27837
- let e = bI();
27838
- return e ? xI(e.scrollTop, e.scrollHeight - e.clientHeight) : xI(window.scrollY, document.documentElement.scrollHeight - window.innerHeight);
27839
- }, wI = () => {
27851
+ }, DI = () => {
27852
+ let e = wI();
27853
+ return e ? TI(e.scrollTop, e.scrollHeight - e.clientHeight) : TI(window.scrollY, document.documentElement.scrollHeight - window.innerHeight);
27854
+ }, OI = () => {
27840
27855
  try {
27841
27856
  return window.matchMedia?.("(prefers-reduced-motion: reduce)")?.matches === !0;
27842
27857
  } catch {
27843
27858
  return !1;
27844
27859
  }
27845
- }, TI = (e, t, n) => !e || wI() ? "instant" : t <= n * 2 ? "smooth" : "instant", EI = (e, { smooth: t } = {}) => {
27846
- let n = bI();
27860
+ }, kI = (e, t, n) => !e || OI() ? "instant" : t <= n * 2 ? "smooth" : "instant", AI = (e, { smooth: t } = {}) => {
27861
+ let n = wI();
27847
27862
  if (n) {
27848
27863
  let r = n.scrollHeight - n.clientHeight, i = r > 0 ? e * r : 0;
27849
27864
  n.scrollTo({
27850
27865
  top: i,
27851
- behavior: TI(t, Math.abs(i - n.scrollTop), n.clientHeight)
27866
+ behavior: kI(t, Math.abs(i - n.scrollTop), n.clientHeight)
27852
27867
  });
27853
27868
  return;
27854
27869
  }
27855
27870
  let r = document.documentElement.scrollHeight - window.innerHeight, i = r > 0 ? e * r : 0;
27856
27871
  window.scrollTo({
27857
27872
  top: i,
27858
- behavior: TI(t, Math.abs(i - window.scrollY), window.innerHeight)
27873
+ behavior: kI(t, Math.abs(i - window.scrollY), window.innerHeight)
27859
27874
  });
27860
27875
  };
27861
27876
  //#endregion
27862
27877
  //#region src/components/party-sync.tsx
27863
27878
  V();
27864
- var DI = 2, OI = 8e3, kI = [
27879
+ var jI = 2, MI = 8e3, NI = [
27865
27880
  "wheel",
27866
27881
  "touchstart",
27867
27882
  "keydown",
27868
27883
  "pointerdown"
27869
- ], AI = 60, jI = () => {
27884
+ ], PI = 60, FI = () => {
27870
27885
  let e = G_(), [t, n] = Al(), r = jl(), i = r ? `${t}?${r}` : t, a = e.status === "active" ? e.role : void 0, o = t === L_;
27871
27886
  L(() => {
27872
- a !== "host" || o || (Q.setLocation(i, CI()), Q.send({
27887
+ a !== "host" || o || (Q.setLocation(i, DI()), Q.send({
27873
27888
  t: "nav",
27874
27889
  path: i
27875
27890
  }));
@@ -27881,14 +27896,14 @@ var DI = 2, OI = 8e3, kI = [
27881
27896
  if (a !== "host" || o) return;
27882
27897
  let e = 0, t, n = () => {
27883
27898
  t = void 0, e = Date.now();
27884
- let n = CI();
27899
+ let n = DI();
27885
27900
  Q.setLocation(i, n), Q.send({
27886
27901
  t: "scroll",
27887
27902
  y: n
27888
27903
  });
27889
27904
  }, r = () => {
27890
27905
  if (t) return;
27891
- let r = Math.max(0, 1e3 / DI - (Date.now() - e));
27906
+ let r = Math.max(0, 1e3 / jI - (Date.now() - e));
27892
27907
  t = setTimeout(n, r);
27893
27908
  };
27894
27909
  return document.addEventListener("scroll", r, {
@@ -27903,21 +27918,21 @@ var DI = 2, OI = 8e3, kI = [
27903
27918
  if (s.current === void 0) return;
27904
27919
  let e = s.current;
27905
27920
  s.current = void 0;
27906
- let t = 0, n = -1, r = 0, i = !1, a = c.current, o = Date.now() + OI, l = () => {
27921
+ let t = 0, n = -1, r = 0, i = !1, a = c.current, o = Date.now() + MI, l = () => {
27907
27922
  i = !0;
27908
27923
  };
27909
- for (let e of kI) document.addEventListener(e, l, { passive: !0 });
27924
+ for (let e of NI) document.addEventListener(e, l, { passive: !0 });
27910
27925
  let u = () => {
27911
27926
  cancelAnimationFrame(t);
27912
- for (let e of kI) document.removeEventListener(e, l);
27927
+ for (let e of NI) document.removeEventListener(e, l);
27913
27928
  };
27914
- if (Zd(), e === 0) return EI(0), u;
27929
+ if (Zd(), e === 0) return AI(0), u;
27915
27930
  let d = () => {
27916
- let s = SI();
27931
+ let s = EI();
27917
27932
  s === n ? r += 1 : (r = 0, n = s);
27918
- let l = s > 0 && r >= AI;
27933
+ let l = s > 0 && r >= PI;
27919
27934
  if (i || c.current !== a || l || Date.now() > o) return u();
27920
- EI(e), t = requestAnimationFrame(d);
27935
+ AI(e), t = requestAnimationFrame(d);
27921
27936
  };
27922
27937
  return t = requestAnimationFrame(d), u;
27923
27938
  }, [i]);
@@ -27926,7 +27941,7 @@ var DI = 2, OI = 8e3, kI = [
27926
27941
  l.current = !1;
27927
27942
  }, [e.status === "active" ? e.invite : void 0]);
27928
27943
  let u = (e, t) => {
27929
- l.current = !0, e === i ? (Zd(), c.current += 1, EI(t, { smooth: !0 })) : (s.current = t, n(e));
27944
+ l.current = !0, e === i ? (Zd(), c.current += 1, AI(t, { smooth: !0 })) : (s.current = t, n(e));
27930
27945
  };
27931
27946
  return K_((e, { replayed: t }) => {
27932
27947
  if (a === "guest") switch (e.t) {
@@ -27934,7 +27949,7 @@ var DI = 2, OI = 8e3, kI = [
27934
27949
  l.current = !0, e.path !== i && n(e.path);
27935
27950
  return;
27936
27951
  case "scroll":
27937
- Q.hostPath() === i && (Zd(), c.current += 1, EI(e.y, { smooth: !0 }));
27952
+ Q.hostPath() === i && (Zd(), c.current += 1, AI(e.y, { smooth: !0 }));
27938
27953
  return;
27939
27954
  case "state":
27940
27955
  (!l.current || t) && u(e.path, e.y);
@@ -27945,7 +27960,7 @@ var DI = 2, OI = 8e3, kI = [
27945
27960
  //#endregion
27946
27961
  //#region src/components/party-cursor.tsx
27947
27962
  V();
27948
- var MI = 4, NI = 2500, PI = H`
27963
+ var II = 4, LI = 2500, RI = H`
27949
27964
  position: fixed;
27950
27965
  left: 0;
27951
27966
  top: 0;
@@ -27972,7 +27987,7 @@ var MI = 4, NI = 2500, PI = H`
27972
27987
  font-weight: 600;
27973
27988
  white-space: nowrap;
27974
27989
  }
27975
- `, FI = () => {
27990
+ `, zI = () => {
27976
27991
  let e = G_(), t = e.status === "active" ? e.role : void 0, [n] = Al(), r = jl(), i = r ? `${n}?${r}` : n;
27977
27992
  L(() => {
27978
27993
  if (t !== "host") return;
@@ -27986,7 +28001,7 @@ var MI = 4, NI = 2500, PI = H`
27986
28001
  r = {
27987
28002
  x: Math.min(1, Math.max(0, t.clientX / window.innerWidth)),
27988
28003
  y: Math.min(1, Math.max(0, t.clientY / window.innerHeight))
27989
- }, !n && (n = setTimeout(i, Math.max(0, 1e3 / MI - (Date.now() - e))));
28004
+ }, !n && (n = setTimeout(i, Math.max(0, 1e3 / II - (Date.now() - e))));
27990
28005
  };
27991
28006
  return window.addEventListener("pointermove", a, { passive: !0 }), () => {
27992
28007
  window.removeEventListener("pointermove", a), n && clearTimeout(n);
@@ -28010,10 +28025,10 @@ var MI = 4, NI = 2500, PI = H`
28010
28025
  if (!a) return;
28011
28026
  let e = setInterval(() => c(Date.now()), 500);
28012
28027
  return () => clearInterval(e);
28013
- }, [a]), t !== "guest" || !a || s - a.at > NI) return null;
28028
+ }, [a]), t !== "guest" || !a || s - a.at > LI) return null;
28014
28029
  let u = e.status === "active" ? Q.nameOf(e.owner) : void 0;
28015
28030
  return /* @__PURE__ */ Z("div", {
28016
- css: PI,
28031
+ css: RI,
28017
28032
  style: {
28018
28033
  "--x": `${a.x * 100}vw`,
28019
28034
  "--y": `${a.y * 100}vh`
@@ -28040,7 +28055,7 @@ var MI = 4, NI = 2500, PI = H`
28040
28055
  //#endregion
28041
28056
  //#region src/components/party-chat.tsx
28042
28057
  V();
28043
- var II = H`
28058
+ var BI = H`
28044
28059
  position: fixed;
28045
28060
  right: 2rem;
28046
28061
  bottom: 2rem;
@@ -28167,7 +28182,7 @@ var II = H`
28167
28182
  color: #fff;
28168
28183
  cursor: pointer;
28169
28184
  }
28170
- `, LI = (e, t) => e.self ? "you" : e.name ?? (e.from === t ? "host" : e.from.slice(0, 6)), RI = () => {
28185
+ `, VI = (e, t) => e.self ? "you" : e.name ?? (e.from === t ? "host" : e.from.slice(0, 6)), HI = () => {
28171
28186
  let e = G_(), t = e.status === "active", [n, r] = I(!1), [i, a] = I(() => Q.chat()), [o, s] = I(0), [c, l] = I(""), u = R(null);
28172
28187
  if (K_((e, t) => {
28173
28188
  (e.t === "chat" || e.t === "name") && (a(Q.chat()), e.t === "chat" && !n && !t.self && s((e) => e + 1));
@@ -28180,7 +28195,7 @@ var II = H`
28180
28195
  }, [i, n]), !t) return null;
28181
28196
  let d = e.owner;
28182
28197
  return /* @__PURE__ */ Z("div", {
28183
- css: II,
28198
+ css: BI,
28184
28199
  children: [n && /* @__PURE__ */ Z("div", {
28185
28200
  className: "panel",
28186
28201
  role: "dialog",
@@ -28205,7 +28220,7 @@ var II = H`
28205
28220
  className: `line${e.self ? " self" : ""}`,
28206
28221
  children: [/* @__PURE__ */ X("span", {
28207
28222
  className: "who",
28208
- children: LI(e, d)
28223
+ children: VI(e, d)
28209
28224
  }), /* @__PURE__ */ X("span", {
28210
28225
  className: "text",
28211
28226
  children: e.text
@@ -28249,21 +28264,21 @@ var II = H`
28249
28264
  //#endregion
28250
28265
  //#region src/components/scroll-reset.tsx
28251
28266
  V();
28252
- var zI = () => ({
28267
+ var UI = () => ({
28253
28268
  pathname: location.pathname,
28254
28269
  search: location.search
28255
- }), BI = [
28270
+ }), WI = [
28256
28271
  ["pushState", "push"],
28257
28272
  ["replaceState", "replace"],
28258
28273
  ["popstate", "pop"]
28259
- ], VI = () => {
28260
- let e = R(zI());
28274
+ ], GI = () => {
28275
+ let e = R(UI());
28261
28276
  return L(() => {
28262
- let t = BI.map(([t, n]) => {
28277
+ let t = WI.map(([t, n]) => {
28263
28278
  let r = () => {
28264
28279
  let t = {
28265
28280
  from: e.current,
28266
- to: zI(),
28281
+ to: UI(),
28267
28282
  kind: n,
28268
28283
  asked: ef()
28269
28284
  };
@@ -28280,15 +28295,15 @@ var zI = () => ({
28280
28295
  //#endregion
28281
28296
  //#region src/router/index.tsx
28282
28297
  V();
28283
- var HI = () => {
28298
+ var KI = () => {
28284
28299
  let { query: e } = Ol();
28285
28300
  return /* @__PURE__ */ X(Vl, {
28286
28301
  to: ju({ query: Au(e) }),
28287
28302
  replace: !0
28288
28303
  });
28289
- }, UI = () => (L(() => {
28304
+ }, qI = () => (L(() => {
28290
28305
  globalThis.close();
28291
- }, []), /* @__PURE__ */ X("div", { children: "Logging in... this window will close automatically." })), WI = H`
28306
+ }, []), /* @__PURE__ */ X("div", { children: "Logging in... this window will close automatically." })), JI = H`
28292
28307
  display: flex;
28293
28308
  flex-direction: column;
28294
28309
  min-height: 100vh;
@@ -28296,12 +28311,12 @@ var HI = () => {
28296
28311
  & > .content {
28297
28312
  flex: 1;
28298
28313
  }
28299
- `, GI = H`
28314
+ `, YI = H`
28300
28315
  padding: calc(var(--stub-header-height) + 3rem) 3rem 4rem;
28301
- `, KI = () => /* @__PURE__ */ X(Pl, {
28316
+ `, XI = () => /* @__PURE__ */ X(Pl, {
28302
28317
  hrefs: od,
28303
28318
  children: /* @__PURE__ */ Z("div", {
28304
- css: WI,
28319
+ css: JI,
28305
28320
  children: [
28306
28321
  /* @__PURE__ */ X($_, {}),
28307
28322
  /* @__PURE__ */ X("div", {
@@ -28321,7 +28336,7 @@ var HI = () => {
28321
28336
  }),
28322
28337
  /* @__PURE__ */ X(Ll, {
28323
28338
  path: Wl(q.SEARCH_LEGACY),
28324
- component: HI
28339
+ component: KI
28325
28340
  }),
28326
28341
  /* @__PURE__ */ X(Ll, {
28327
28342
  path: Wl(q.LEGAL),
@@ -28337,37 +28352,37 @@ var HI = () => {
28337
28352
  }),
28338
28353
  /* @__PURE__ */ X(Ll, {
28339
28354
  path: Wl(q.WATCH),
28340
- component: vF
28355
+ component: SF
28341
28356
  }),
28342
28357
  /* @__PURE__ */ X(Ll, {
28343
28358
  path: Wl(q.PARTY),
28344
- component: xF
28359
+ component: TF
28345
28360
  }),
28346
28361
  /* @__PURE__ */ X(Ll, {
28347
28362
  path: Wl(q.DEBUG_TRACE),
28348
- component: vI
28363
+ component: SI
28349
28364
  }),
28350
28365
  /* @__PURE__ */ X(Ll, {
28351
28366
  path: Wl(q.LOGIN_CALLBACK),
28352
- component: UI
28367
+ component: qI
28353
28368
  }),
28354
28369
  /* @__PURE__ */ X(Ll, { component: () => /* @__PURE__ */ X("div", {
28355
- css: GI,
28370
+ css: YI,
28356
28371
  children: "404 No page found"
28357
28372
  }) })
28358
28373
  ] })
28359
28374
  }),
28360
28375
  /* @__PURE__ */ X(tv, {}),
28361
28376
  /* @__PURE__ */ X(iv, {}),
28362
- /* @__PURE__ */ X(jI, {}),
28363
28377
  /* @__PURE__ */ X(FI, {}),
28364
- /* @__PURE__ */ X(RI, {}),
28365
- /* @__PURE__ */ X(VI, {})
28378
+ /* @__PURE__ */ X(zI, {}),
28379
+ /* @__PURE__ */ X(HI, {}),
28380
+ /* @__PURE__ */ X(GI, {})
28366
28381
  ]
28367
28382
  })
28368
28383
  });
28369
28384
  Pe(), V();
28370
- var qI = H`
28385
+ var ZI = H`
28371
28386
  display: flex;
28372
28387
  align-items: center;
28373
28388
  justify-content: center;
@@ -28416,10 +28431,10 @@ var qI = H`
28416
28431
  background: rgba(255, 255, 255, 0.08);
28417
28432
  }
28418
28433
  }
28419
- `, JI = (e, t) => `route: ${t}\nmessage: ${e.message}\nstack: ${e.stack ?? "(no stack)"}`, YI = ({ error: e, route: t }) => {
28434
+ `, QI = (e, t) => `route: ${t}\nmessage: ${e.message}\nstack: ${e.stack ?? "(no stack)"}`, $I = ({ error: e, route: t }) => {
28420
28435
  let [n, r] = I(!1);
28421
28436
  return /* @__PURE__ */ X("div", {
28422
- css: qI,
28437
+ css: ZI,
28423
28438
  children: /* @__PURE__ */ Z("div", {
28424
28439
  className: "panel",
28425
28440
  children: [
@@ -28437,7 +28452,7 @@ var qI = H`
28437
28452
  }), /* @__PURE__ */ X("button", {
28438
28453
  type: "button",
28439
28454
  onClick: () => {
28440
- let n = navigator.clipboard?.writeText(JI(e, t));
28455
+ let n = navigator.clipboard?.writeText(QI(e, t));
28441
28456
  n && n.then(() => r(!0)).catch((e) => console.error(Error("the failure details could not be copied", { cause: e })));
28442
28457
  },
28443
28458
  children: n ? "Copied" : "Copy details"
@@ -28446,7 +28461,7 @@ var qI = H`
28446
28461
  ]
28447
28462
  })
28448
28463
  });
28449
- }, XI = class extends k {
28464
+ }, eL = class extends k {
28450
28465
  state = {
28451
28466
  error: null,
28452
28467
  route: this.props.route
@@ -28464,14 +28479,14 @@ var qI = H`
28464
28479
  console.error(Error(`the ${this.props.route} route failed to render`, { cause: e }));
28465
28480
  }
28466
28481
  render() {
28467
- return this.state.error ? /* @__PURE__ */ X(YI, {
28482
+ return this.state.error ? /* @__PURE__ */ X($I, {
28468
28483
  error: this.state.error,
28469
28484
  route: this.props.route
28470
28485
  }) : this.props.children;
28471
28486
  }
28472
- }, ZI = ({ children: e }) => {
28487
+ }, tL = ({ children: e }) => {
28473
28488
  let [t] = Al();
28474
- return /* @__PURE__ */ X(XI, {
28489
+ return /* @__PURE__ */ X(eL, {
28475
28490
  route: t,
28476
28491
  children: e
28477
28492
  });
@@ -28481,9 +28496,9 @@ var qI = H`
28481
28496
  u(location.href) && (window.__stubExportStore = (e) => _(e ?? { excludeOrigins: [] }));
28482
28497
  //#endregion
28483
28498
  //#region src/answers-export.ts
28484
- var QI = async (e, t = {}, n = {}) => FF(s, e, t, { settleMs: n.settleMs });
28485
- p(location.href) && (window.__stubExportAnswers = () => y(), window.__stubExportAsks = () => m(), window.__stubGraphCounts = () => d()), l(location.href) && (window.__stubGraphQL = (e, t, n) => QI(e, t, n)), Pe(), zP();
28486
- var $I = H`
28499
+ var nL = async (e, t = {}, n = {}) => zF(s, e, t, { settleMs: n.settleMs });
28500
+ p(location.href) && (window.__stubExportAnswers = () => y(), window.__stubExportAsks = () => m(), window.__stubGraphCounts = () => d()), l(location.href) && (window.__stubGraphQL = (e, t, n) => nL(e, t, n)), Pe(), zP();
28501
+ var rL = H`
28487
28502
  @import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,500;1,600;1,700;1,800;1,900&family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
28488
28503
 
28489
28504
  :root {
@@ -28545,9 +28560,9 @@ var $I = H`
28545
28560
  }
28546
28561
  `;
28547
28562
  Q.resume();
28548
- var eL = document.createElement("div");
28549
- eL.id = "stub-root", he(/* @__PURE__ */ Z(io, {
28563
+ var iL = document.createElement("div");
28564
+ iL.id = "stub-root", he(/* @__PURE__ */ Z(io, {
28550
28565
  value: Jc,
28551
- children: [/* @__PURE__ */ X(ai, { styles: $I }), /* @__PURE__ */ X(ZI, { children: /* @__PURE__ */ X(KI, {}) })]
28552
- }), document.body.appendChild(eL));
28566
+ children: [/* @__PURE__ */ X(ai, { styles: rL }), /* @__PURE__ */ X(tL, { children: /* @__PURE__ */ X(XI, {}) })]
28567
+ }), document.body.appendChild(iL));
28553
28568
  //#endregion