@camstack/addon-pipeline 1.2.366 → 1.2.368

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 (35) hide show
  1. package/dist/audio-analyzer/index.js +3 -3
  2. package/dist/audio-analyzer/index.mjs +3 -3
  3. package/dist/{custom-model-catalog-C34VqcPo.js → custom-model-catalog-BY-aEI2s.js} +2 -2
  4. package/dist/{custom-model-catalog-CtpK3FKL.mjs → custom-model-catalog-Bnel86hH.mjs} +2 -2
  5. package/dist/detection-pipeline/index.js +4 -4
  6. package/dist/detection-pipeline/index.mjs +4 -4
  7. package/dist/{dist-BshC0NZR.mjs → dist-5AhGOWWu.mjs} +20270 -1345
  8. package/dist/{dist-i4kS_3O7.js → dist-DDXsZaRH.js} +20270 -1345
  9. package/dist/{model-catalogs-Cy7mZRWh.js → model-catalogs-DJN58c_U.js} +1 -1
  10. package/dist/{model-catalogs-DNx5ATgm.mjs → model-catalogs-DWR9EsGI.mjs} +1 -1
  11. package/dist/motion-wasm/index.js +1 -1
  12. package/dist/motion-wasm/index.mjs +1 -1
  13. package/dist/{node-TzgGsCvW.js → node-CiciZWts.js} +1 -1
  14. package/dist/{node-Dqmrb990.mjs → node-DqZJFOzR.mjs} +1 -1
  15. package/dist/pipeline-runner/index.js +3 -3
  16. package/dist/pipeline-runner/index.mjs +3 -3
  17. package/dist/{process-memory-DLCPFTGC.js → process-memory-BRu19Dgr.js} +1 -1
  18. package/dist/{process-memory-DyfrbFY4.mjs → process-memory-Batknjjt.mjs} +1 -1
  19. package/dist/recorder/index.js +3 -2
  20. package/dist/recorder/index.mjs +3 -2
  21. package/dist/{segment-demux-js-C9AYdKkD.js → segment-demux-js-0CRf7GAb.js} +2 -2
  22. package/dist/{segment-demux-js-COoPqx93.mjs → segment-demux-js-dlhO3Q8W.mjs} +2 -2
  23. package/dist/stream-broker/_stub.js +83 -83
  24. package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-DVgnss_e.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-CSajlHKC.mjs} +2 -2
  25. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BfVREmhg.mjs +26 -0
  26. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-5KL24-a_.mjs +26 -0
  27. package/dist/stream-broker/demux-worker-child.js +1 -1
  28. package/dist/stream-broker/demux-worker-child.mjs +1 -1
  29. package/dist/stream-broker/{hostInit-ZvA7Cl_1.mjs → hostInit-KJ1eka58.mjs} +2 -2
  30. package/dist/stream-broker/index.js +240 -65
  31. package/dist/stream-broker/index.mjs +240 -65
  32. package/dist/stream-broker/remoteEntry.js +1 -1
  33. package/package.json +1 -1
  34. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DWI1BCfa.mjs +0 -26
  35. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-BUBmyDde.mjs +0 -26
@@ -1,4 +1,4 @@
1
- const require_dist = require("./dist-i4kS_3O7.js");
1
+ const require_dist = require("./dist-DDXsZaRH.js");
2
2
  //#region src/detection-pipeline/registry/model-licenses.ts
3
3
  var COCO_DATA = {
4
4
  name: "COCO 2017",
@@ -1,4 +1,4 @@
1
- import { Bn as hfModelUrl } from "./dist-BshC0NZR.mjs";
1
+ import { Bn as hfModelUrl } from "./dist-5AhGOWWu.mjs";
2
2
  //#region src/detection-pipeline/registry/model-licenses.ts
3
3
  var COCO_DATA = {
4
4
  name: "COCO 2017",
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_dist = require("../dist-i4kS_3O7.js");
5
+ const require_dist = require("../dist-DDXsZaRH.js");
6
6
  const require_lazy_sharp = require("../lazy-sharp-BuwKlQLR.js");
7
7
  let node_fs = require("node:fs");
8
8
  let node_path = require("node:path");
@@ -1,4 +1,4 @@
1
- import { An as BaseAddon, Dn as DeviceType, Ht as motionDetectionCapability, Vn as hydrateSchema, bt as evaluateZoneRules } from "../dist-BshC0NZR.mjs";
1
+ import { An as BaseAddon, Dn as DeviceType, Ht as motionDetectionCapability, Vn as hydrateSchema, bt as evaluateZoneRules } from "../dist-5AhGOWWu.mjs";
2
2
  import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
3
3
  import { readFileSync } from "node:fs";
4
4
  import { join } from "node:path";
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require("./chunk-emK7D4bc.js");
2
- const require_dist = require("./dist-i4kS_3O7.js");
2
+ const require_dist = require("./dist-DDXsZaRH.js");
3
3
  require("node:os");
4
4
  let node_crypto = require("node:crypto");
5
5
  let node_fs = require("node:fs");
@@ -1,4 +1,4 @@
1
- import { On as errMsg, Sn as buildFfmpegArgs, Tn as isSoftwareDecode, xn as Fmp4BoxSplitter } from "./dist-BshC0NZR.mjs";
1
+ import { On as errMsg, Sn as buildFfmpegArgs, Tn as isSoftwareDecode, xn as Fmp4BoxSplitter } from "./dist-5AhGOWWu.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { realpathSync } from "node:fs";
4
4
  import path from "node:path";
@@ -3,9 +3,9 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  const require_chunk = require("../chunk-emK7D4bc.js");
6
- const require_dist = require("../dist-i4kS_3O7.js");
7
- const require_node = require("../node-TzgGsCvW.js");
8
- const require_custom_model_catalog = require("../custom-model-catalog-C34VqcPo.js");
6
+ const require_dist = require("../dist-DDXsZaRH.js");
7
+ const require_node = require("../node-CiciZWts.js");
8
+ const require_custom_model_catalog = require("../custom-model-catalog-BY-aEI2s.js");
9
9
  const require_hub_hostname = require("../hub-hostname-DAJXlOgV.js");
10
10
  const require_lazy_sharp = require("../lazy-sharp-BuwKlQLR.js");
11
11
  const require_restream_intent = require("../restream-intent-7uDNqMKs.js");
@@ -1,6 +1,6 @@
1
- import { A as NativeLeaseAdmissionSchema, An as BaseAddon, E as FailureCounters, In as createEvent, Kn as nodePin, Kt as pickDetailCropConvention, Ln as customAction, M as NodeBenchRunnerInputSchema, Mt as linkedStepOf, Nt as loadContributionCapability, On as errMsg, P as PIPELINE_RAMP, Pn as MODEL_FORMATS, Qn as boolean, Rn as defineCustomActions, V as ROOT_SUPPLIABLE_STEP_IDS, Xn as _enum, Y as allowedSuppliedEffect, Yt as pipelineRunnerCapability, Zn as array, _ as DEFAULT_DETAIL_CROP_CONVENTION, a as BackgroundRunRegistry, an as resolveModelBoundSetting, cn as resolveRootSupply, cr as EventCategory, er as lazy, ht as deriveRootFaceRefineRect, j as NativeLeaseSettingsSchema, ln as rootSuppliesOf, m as CROP_SUPPLY_SOURCES, nr as number, nt as cameraOwnsMotionViaSensor, or as string, pt as deriveDetailCropRect, qt as pickNativeLeaseOverride, rr as object, tr as literal, tt as buildBenchStepTree, wt as failureContributionCapability, x as DEVICE_RAMP, y as DEFAULT_NATIVE_LEASE_SETTINGS } from "../dist-BshC0NZR.mjs";
2
- import { i as NO_COST_CLAIM, t as ChildCostRegistry } from "../node-Dqmrb990.mjs";
3
- import { a as stepsForElectedPool, b as getStepDefinition, d as rootObjectGate, f as localFrameRegistry, h as resolveFrameViewGeometry, i as placeDetailStep, l as resolveDefaultDetectionModel, m as createSessionDecodeCoordinator, p as isSessionDecodeReadGone, s as resolveDeviceEngine, t as CustomModelCatalog, u as macroGateVerdict, y as getStep } from "../custom-model-catalog-CtpK3FKL.mjs";
1
+ import { A as NativeLeaseAdmissionSchema, An as BaseAddon, E as FailureCounters, In as createEvent, Kn as nodePin, Kt as pickDetailCropConvention, Ln as customAction, M as NodeBenchRunnerInputSchema, Mt as linkedStepOf, Nt as loadContributionCapability, On as errMsg, P as PIPELINE_RAMP, Pn as MODEL_FORMATS, Qn as boolean, Rn as defineCustomActions, V as ROOT_SUPPLIABLE_STEP_IDS, Xn as _enum, Y as allowedSuppliedEffect, Yt as pipelineRunnerCapability, Zn as array, _ as DEFAULT_DETAIL_CROP_CONVENTION, a as BackgroundRunRegistry, an as resolveModelBoundSetting, cn as resolveRootSupply, cr as EventCategory, er as lazy, ht as deriveRootFaceRefineRect, j as NativeLeaseSettingsSchema, ln as rootSuppliesOf, m as CROP_SUPPLY_SOURCES, nr as number, nt as cameraOwnsMotionViaSensor, or as string, pt as deriveDetailCropRect, qt as pickNativeLeaseOverride, rr as object, tr as literal, tt as buildBenchStepTree, wt as failureContributionCapability, x as DEVICE_RAMP, y as DEFAULT_NATIVE_LEASE_SETTINGS } from "../dist-5AhGOWWu.mjs";
2
+ import { i as NO_COST_CLAIM, t as ChildCostRegistry } from "../node-DqZJFOzR.mjs";
3
+ import { a as stepsForElectedPool, b as getStepDefinition, d as rootObjectGate, f as localFrameRegistry, h as resolveFrameViewGeometry, i as placeDetailStep, l as resolveDefaultDetectionModel, m as createSessionDecodeCoordinator, p as isSessionDecodeReadGone, s as resolveDeviceEngine, t as CustomModelCatalog, u as macroGateVerdict, y as getStep } from "../custom-model-catalog-Bnel86hH.mjs";
4
4
  import { t as resolveHubHostname } from "../hub-hostname-cCknRYKj.mjs";
5
5
  import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
6
6
  import { c as withDetectionIntent, o as preRollRequestOf, t as DETECTION_PRE_ROLL_REQUEST_MS } from "../restream-intent-DyGmLAU9.mjs";
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require("./chunk-emK7D4bc.js");
2
- const require_dist = require("./dist-i4kS_3O7.js");
2
+ const require_dist = require("./dist-DDXsZaRH.js");
3
3
  let node_fs = require("node:fs");
4
4
  node_fs = require_chunk.__toESM(node_fs);
5
5
  let node_child_process = require("node:child_process");
@@ -1,4 +1,4 @@
1
- import { Wt as parseProcStatus } from "./dist-BshC0NZR.mjs";
1
+ import { Wt as parseProcStatus } from "./dist-5AhGOWWu.mjs";
2
2
  import * as fs from "node:fs";
3
3
  import { execFile } from "node:child_process";
4
4
  //#region src/shared/node-topology-platform.ts
@@ -3,8 +3,8 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  const require_chunk = require("../chunk-emK7D4bc.js");
6
- const require_dist = require("../dist-i4kS_3O7.js");
7
- const require_node = require("../node-TzgGsCvW.js");
6
+ const require_dist = require("../dist-DDXsZaRH.js");
7
+ const require_node = require("../node-CiciZWts.js");
8
8
  const require_hub_hostname = require("../hub-hostname-DAJXlOgV.js");
9
9
  const require_restream_intent = require("../restream-intent-7uDNqMKs.js");
10
10
  const require_retire_root_keys = require("../retire-root-keys-Csb8z2f3.js");
@@ -5931,6 +5931,7 @@ Object.freeze({
5931
5931
  "page": 1,
5932
5932
  "pageSize": 50
5933
5933
  } },
5934
+ "device-credentials": { "listDeviceCredentials": { "includeRevoked": false } },
5934
5935
  "device-manager": { "adoptionListCandidates": {
5935
5936
  "page": 1,
5936
5937
  "pageSize": 50
@@ -1,5 +1,5 @@
1
- import { $t as recordingExportCapability, An as BaseAddon, At as isFirstLevelMacroClass, B as RECORDING_SOURCE_CAMSTACK_ADDON, Bt as modeMayWrite, C as EVENT_PAD_MS, Cn as evaluateSensorEdge, Ct as exportSubjectOf, Dn as DeviceType, En as DeviceFeature, Et as gbToBytes, G as VIDEOCLIPS_MAX_OFFER_BYTES, H as RecordingConfigSchema, It as mayReadLocation, Jn as selectAssignedProfileSlots, K as VISIT_MERGE_GAP_MS, Kn as nodePin, Ln as customAction, Lt as mayWriteToLocation, N as OpsLogEntrySchema, Nt as loadContributionCapability, On as errMsg$1, Qn as boolean, Qt as recordingCapability, R as RECORDING_EXPORT_MAX_READ_BYTES, Rn as defineCustomActions, Rt as memoizePinnedFfmpeg, S as EVENT_OWNER_TYPES, St as evictionPolicyOfLocation, T as ExportRecordSchema, U as RecordingSignalStatusSchema, Vn as hydrateSchema, Xn as _enum, Yn as sleep$1, Zn as array, Zt as recordingArchiveCapability, _n as videoclipsCapability, ar as record, at as clipExportFailureOf, cr as EventCategory, en as recordingSignalCapability, et as batteryCapability, fn as storageEvictableCapability, ft as deriveBatteryPresence, hn as stripRetiredBandPreBufferSec, in as resolveLocationMode, ir as preprocess, it as clipExportFailure, mt as deriveRecordingMode, nn as resolveCreateExportSubject, nr as number, o as BatteryStatusSchema, or as string, pn as storageOccupancyCapability, rr as object, s as CLIP_BROKER_PACED_RATES, sn as resolveRecordingProfiles, v as DEFAULT_EVENTS_BAND_BUFFER_SEC, xt as evictionPolicyForMode, z as RECORDING_SOURCE_CAMSTACK, zt as migrateLegacyDeviceSignalConfig } from "../dist-BshC0NZR.mjs";
2
- import { a as physicalRootOf, i as NO_COST_CLAIM, t as ChildCostRegistry } from "../node-Dqmrb990.mjs";
1
+ import { $t as recordingExportCapability, An as BaseAddon, At as isFirstLevelMacroClass, B as RECORDING_SOURCE_CAMSTACK_ADDON, Bt as modeMayWrite, C as EVENT_PAD_MS, Cn as evaluateSensorEdge, Ct as exportSubjectOf, Dn as DeviceType, En as DeviceFeature, Et as gbToBytes, G as VIDEOCLIPS_MAX_OFFER_BYTES, H as RecordingConfigSchema, It as mayReadLocation, Jn as selectAssignedProfileSlots, K as VISIT_MERGE_GAP_MS, Kn as nodePin, Ln as customAction, Lt as mayWriteToLocation, N as OpsLogEntrySchema, Nt as loadContributionCapability, On as errMsg$1, Qn as boolean, Qt as recordingCapability, R as RECORDING_EXPORT_MAX_READ_BYTES, Rn as defineCustomActions, Rt as memoizePinnedFfmpeg, S as EVENT_OWNER_TYPES, St as evictionPolicyOfLocation, T as ExportRecordSchema, U as RecordingSignalStatusSchema, Vn as hydrateSchema, Xn as _enum, Yn as sleep$1, Zn as array, Zt as recordingArchiveCapability, _n as videoclipsCapability, ar as record, at as clipExportFailureOf, cr as EventCategory, en as recordingSignalCapability, et as batteryCapability, fn as storageEvictableCapability, ft as deriveBatteryPresence, hn as stripRetiredBandPreBufferSec, in as resolveLocationMode, ir as preprocess, it as clipExportFailure, mt as deriveRecordingMode, nn as resolveCreateExportSubject, nr as number, o as BatteryStatusSchema, or as string, pn as storageOccupancyCapability, rr as object, s as CLIP_BROKER_PACED_RATES, sn as resolveRecordingProfiles, v as DEFAULT_EVENTS_BAND_BUFFER_SEC, xt as evictionPolicyForMode, z as RECORDING_SOURCE_CAMSTACK, zt as migrateLegacyDeviceSignalConfig } from "../dist-5AhGOWWu.mjs";
2
+ import { a as physicalRootOf, i as NO_COST_CLAIM, t as ChildCostRegistry } from "../node-DqZJFOzR.mjs";
3
3
  import { t as resolveHubHostname } from "../hub-hostname-cCknRYKj.mjs";
4
4
  import { d as PREBUFFER_MAX_MS, l as withRecordingIntent, r as RECORDING_PRE_ROLL_REQUEST_MS } from "../restream-intent-DyGmLAU9.mjs";
5
5
  import { n as RowMapStore, t as retireRootKeys } from "../retire-root-keys-DZvlso2l.mjs";
@@ -5923,6 +5923,7 @@ Object.freeze({
5923
5923
  "page": 1,
5924
5924
  "pageSize": 50
5925
5925
  } },
5926
+ "device-credentials": { "listDeviceCredentials": { "includeRevoked": false } },
5926
5927
  "device-manager": { "adoptionListCandidates": {
5927
5928
  "page": 1,
5928
5929
  "pageSize": 50
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require("./chunk-emK7D4bc.js");
2
- const require_dist = require("./dist-i4kS_3O7.js");
2
+ const require_dist = require("./dist-DDXsZaRH.js");
3
3
  let node_child_process = require("node:child_process");
4
4
  //#region src/stream-broker/recorded/avcc-annexb.ts
5
5
  /**
@@ -7278,7 +7278,7 @@ async function demuxSegmentFullJs(bytes) {
7278
7278
  */
7279
7279
  async function demuxSegmentPreferJs(bytes, opts) {
7280
7280
  try {
7281
- const js = await (opts.jsParse ?? demuxSegmentFullJs)(bytes);
7281
+ const js = await (opts.jsParse ?? demuxSegmentFullJs)(bytes, opts.deviceId === void 0 ? void 0 : { deviceId: opts.deviceId });
7282
7282
  if (js && js.length > 0) {
7283
7283
  opts.onDemuxPath?.({ path: "js" });
7284
7284
  return js;
@@ -1,5 +1,5 @@
1
1
  import { r as __toESM, t as __commonJSMin } from "./chunk-DnnnRqeS.mjs";
2
- import { On as errMsg } from "./dist-BshC0NZR.mjs";
2
+ import { On as errMsg } from "./dist-5AhGOWWu.mjs";
3
3
  import { spawn } from "node:child_process";
4
4
  //#region src/stream-broker/recorded/avcc-annexb.ts
5
5
  /**
@@ -7278,7 +7278,7 @@ async function demuxSegmentFullJs(bytes) {
7278
7278
  */
7279
7279
  async function demuxSegmentPreferJs(bytes, opts) {
7280
7280
  try {
7281
- const js = await (opts.jsParse ?? demuxSegmentFullJs)(bytes);
7281
+ const js = await (opts.jsParse ?? demuxSegmentFullJs)(bytes, opts.deviceId === void 0 ? void 0 : { deviceId: opts.deviceId });
7282
7282
  if (js && js.length > 0) {
7283
7283
  opts.onDemuxPath?.({ path: "js" });
7284
7284
  return js;
@@ -1,7 +1,7 @@
1
- import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-BUBmyDde.mjs";
1
+ import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-5KL24-a_.mjs";
2
2
  import { a as p, i as m, n as h, o as g, r as _, t as v } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare__react__loadShare__.js-C9j-2lBe.mjs";
3
3
  import { n as y, r as b, t as x } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-XO0-Pyu6.mjs";
4
- import { t as S } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DWI1BCfa.mjs";
4
+ import { t as S } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BfVREmhg.mjs";
5
5
  import { n as C, t as w } from "./_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-BO7TIbJV.mjs";
6
6
  //#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
7
7
  var T = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), E = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), D = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), O = (e) => {
@@ -1009,7 +1009,7 @@ function me({ profile: e }) {
1009
1009
  ] });
1010
1010
  }
1011
1011
  function he(e) {
1012
- let t = e.config ?? {}, n = f(), [r, i] = g(() => t.initialValue), a = _((r) => {
1012
+ let t = e.config ?? {}, n = d(), [r, i] = g(() => t.initialValue), a = _((r) => {
1013
1013
  if (i(r), e.deviceId === void 0) return;
1014
1014
  let a = t.writerCapName, o = t.writerAddonId, s = t.fieldKey;
1015
1015
  if (a === void 0 || o === void 0 || s === void 0) {
@@ -1199,17 +1199,17 @@ function De(e) {
1199
1199
  hideEmpty: t.hideEmpty
1200
1200
  });
1201
1201
  }
1202
- function Oe({ deviceId: e, title: i = "Stream Brokers", variant: o = "full", hideEmpty: c = !1 }) {
1203
- r(["streamBroker", "listAllProfileSlots"], [
1202
+ function Oe({ deviceId: t, title: n = "Stream Brokers", variant: i = "full", hideEmpty: a = !1 }) {
1203
+ l(["streamBroker", "listAllProfileSlots"], [
1204
1204
  "device.streams-registered",
1205
1205
  "device.streams-unregistered",
1206
1206
  "device.registered",
1207
1207
  "device.unregistered"
1208
1208
  ]);
1209
- let { data: u } = s(void 0, { staleTime: 3e4 }), f = (u ?? []).filter((t) => t.deviceId === e && t.sourceCamStreamId !== null).slice().toSorted((e, t) => J.indexOf(e.profile) - J.indexOf(t.profile)), p = n(a().trpcClient, e), { data: m } = w({
1209
+ let { data: s } = f(void 0, { staleTime: 3e4 }), d = (s ?? []).filter((e) => e.deviceId === t && e.sourceCamStreamId !== null).slice().toSorted((e, t) => J.indexOf(e.profile) - J.indexOf(t.profile)), p = o(c().trpcClient, t), { data: m } = w({
1210
1210
  queryKey: [
1211
1211
  "device",
1212
- e,
1212
+ t,
1213
1213
  "cameraStreams.getCameraStreams"
1214
1214
  ],
1215
1215
  queryFn: () => p?.cameraStreams?.getCameraStreams({}) ?? [],
@@ -1217,9 +1217,9 @@ function Oe({ deviceId: e, title: i = "Stream Brokers", variant: o = "full", hid
1217
1217
  staleTime: 3e4
1218
1218
  }), h = /* @__PURE__ */ new Map();
1219
1219
  for (let e of m ?? []) h.set(e.camStreamId, e);
1220
- let { data: v } = d({ deviceId: e }, { staleTime: 3e4 }), x = v?.assignment.sourceNodeId ?? null, S = C(), [T, E] = g(null), [D, O] = g(null), k = ve({
1221
- muted: Se(l({
1222
- deviceId: e,
1220
+ let { data: v } = e({ deviceId: t }, { staleTime: 3e4 }), x = v?.assignment.sourceNodeId ?? null, S = C(), [T, E] = g(null), [D, O] = g(null), k = ve({
1221
+ muted: Se(u({
1222
+ deviceId: t,
1223
1223
  nodeId: x ?? void 0
1224
1224
  }, {
1225
1225
  enabled: x !== null,
@@ -1227,30 +1227,30 @@ function Oe({ deviceId: e, title: i = "Stream Brokers", variant: o = "full", hid
1227
1227
  }).data),
1228
1228
  sourceNodeId: x,
1229
1229
  pendingOn: T
1230
- }), A = t({
1231
- onError: (t) => {
1230
+ }), A = r({
1231
+ onError: (e) => {
1232
1232
  console.error("[StreamBrokerPanel] audio mute write failed — reverting", {
1233
- tags: { deviceId: e },
1233
+ tags: { deviceId: t },
1234
1234
  meta: {
1235
1235
  nodeId: x,
1236
- error: t instanceof Error ? t.message : String(t)
1236
+ error: e instanceof Error ? e.message : String(e)
1237
1237
  }
1238
- }), E(null), O(t instanceof Error ? t.message : String(t)), S.invalidateQueries({ queryKey: [["streamBroker", "getDeviceAudioMute"]] });
1238
+ }), E(null), O(e instanceof Error ? e.message : String(e)), S.invalidateQueries({ queryKey: [["streamBroker", "getDeviceAudioMute"]] });
1239
1239
  },
1240
1240
  onSuccess: () => {
1241
1241
  O(null), E(null), S.invalidateQueries({ queryKey: [["streamBroker"]] }), S.invalidateQueries({ queryKey: [["pipelineOrchestrator"]] });
1242
1242
  }
1243
1243
  }), j = _(() => {
1244
- let t = ye(k, e);
1245
- t !== null && (E(!t.muted), O(null), A.mutate(t));
1244
+ let e = ye(k, t);
1245
+ e !== null && (E(!e.muted), O(null), A.mutate(e));
1246
1246
  }, [
1247
1247
  k,
1248
- e,
1248
+ t,
1249
1249
  A
1250
- ]), M = new Set(f.map((e) => e.sourceCamStreamId).filter((e) => e !== null)), N = (m ?? []).filter((e) => !M.has(e.camStreamId)), P = f.length > 0, F = N.length > 0;
1251
- return c && !P && !F ? null : o === "compact" ? P ? /* @__PURE__ */ y("div", {
1250
+ ]), M = new Set(d.map((e) => e.sourceCamStreamId).filter((e) => e !== null)), N = (m ?? []).filter((e) => !M.has(e.camStreamId)), P = d.length > 0, F = N.length > 0;
1251
+ return a && !P && !F ? null : i === "compact" ? P ? /* @__PURE__ */ y("div", {
1252
1252
  className: "divide-y divide-border/30",
1253
- children: f.map((e) => /* @__PURE__ */ y(je, {
1253
+ children: d.map((e) => /* @__PURE__ */ y(je, {
1254
1254
  slot: e,
1255
1255
  camStreams: h,
1256
1256
  compact: !0
@@ -1265,7 +1265,7 @@ function Oe({ deviceId: e, title: i = "Stream Brokers", variant: o = "full", hid
1265
1265
  className: "border-b border-border px-4 py-2 flex flex-wrap items-center justify-between gap-x-2 gap-y-1",
1266
1266
  children: [/* @__PURE__ */ y("h2", {
1267
1267
  className: "text-xs font-semibold text-foreground uppercase tracking-wider shrink-0",
1268
- children: i
1268
+ children: n
1269
1269
  }), /* @__PURE__ */ b("div", {
1270
1270
  className: "flex items-center gap-1.5 min-w-0",
1271
1271
  children: [x !== null && /* @__PURE__ */ b("span", {
@@ -1277,7 +1277,7 @@ function Oe({ deviceId: e, title: i = "Stream Brokers", variant: o = "full", hid
1277
1277
  })]
1278
1278
  }), P && /* @__PURE__ */ b("span", {
1279
1279
  className: "inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-[10px] font-medium bg-foreground-subtle/10 text-foreground-subtle border border-border shrink-0 whitespace-nowrap",
1280
- children: [f.length, " assigned"]
1280
+ children: [d.length, " assigned"]
1281
1281
  })]
1282
1282
  })]
1283
1283
  }),
@@ -1300,7 +1300,7 @@ function Oe({ deviceId: e, title: i = "Stream Brokers", variant: o = "full", hid
1300
1300
  }),
1301
1301
  P ? /* @__PURE__ */ y("div", {
1302
1302
  className: "divide-y divide-border/30",
1303
- children: f.map((e) => /* @__PURE__ */ y(je, {
1303
+ children: d.map((e) => /* @__PURE__ */ y(je, {
1304
1304
  slot: e,
1305
1305
  camStreams: h,
1306
1306
  compact: !1
@@ -1313,7 +1313,7 @@ function Oe({ deviceId: e, title: i = "Stream Brokers", variant: o = "full", hid
1313
1313
  })]
1314
1314
  }),
1315
1315
  F && /* @__PURE__ */ y(ke, {
1316
- deviceId: e,
1316
+ deviceId: t,
1317
1317
  camStreamIds: N.map((e) => e.camStreamId),
1318
1318
  camStreams: h
1319
1319
  })
@@ -1346,7 +1346,7 @@ function ke({ deviceId: e, camStreamIds: t, camStreams: n }) {
1346
1346
  });
1347
1347
  }
1348
1348
  function Ae({ deviceId: e, camStreamId: t, camStreams: n }) {
1349
- let r = S(e, t), i = c("stream-broker.metrics-snapshot", (e) => e.brokerId === r)?.stats, a = n.get(t), o = i?.status === "streaming";
1349
+ let r = S(e, t), a = i("stream-broker.metrics-snapshot", (e) => e.brokerId === r)?.stats, o = n.get(t), s = a?.status === "streaming";
1350
1350
  return /* @__PURE__ */ b("div", {
1351
1351
  className: "px-4 py-2",
1352
1352
  children: [/* @__PURE__ */ y("div", {
@@ -1354,26 +1354,26 @@ function Ae({ deviceId: e, camStreamId: t, camStreams: n }) {
1354
1354
  children: /* @__PURE__ */ b("div", {
1355
1355
  className: "flex items-center gap-1.5",
1356
1356
  children: [
1357
- /* @__PURE__ */ y("span", { className: `h-1.5 w-1.5 rounded-full ${o ? "bg-success" : "bg-foreground-subtle/40"}` }),
1357
+ /* @__PURE__ */ y("span", { className: `h-1.5 w-1.5 rounded-full ${s ? "bg-success" : "bg-foreground-subtle/40"}` }),
1358
1358
  /* @__PURE__ */ y("span", {
1359
1359
  className: "text-[11px] font-medium text-foreground",
1360
- children: a?.label ?? t
1360
+ children: o?.label ?? t
1361
1361
  }),
1362
- a?.resolution && /* @__PURE__ */ b("span", {
1362
+ o?.resolution && /* @__PURE__ */ b("span", {
1363
1363
  className: "text-[10px] text-foreground-subtle",
1364
1364
  children: [
1365
- a.resolution.width,
1365
+ o.resolution.width,
1366
1366
  "×",
1367
- a.resolution.height
1367
+ o.resolution.height
1368
1368
  ]
1369
1369
  }),
1370
1370
  /* @__PURE__ */ y("span", {
1371
- className: `text-[10px] ${o ? "text-success" : "text-foreground-subtle"}`,
1372
- children: i?.status ?? "idle"
1371
+ className: `text-[10px] ${s ? "text-success" : "text-foreground-subtle"}`,
1372
+ children: a?.status ?? "idle"
1373
1373
  })
1374
1374
  ]
1375
1375
  })
1376
- }), i && o && /* @__PURE__ */ b("div", {
1376
+ }), a && s && /* @__PURE__ */ b("div", {
1377
1377
  className: "flex flex-wrap gap-x-3 gap-y-1 text-[10px]",
1378
1378
  children: [
1379
1379
  /* @__PURE__ */ b("span", {
@@ -1383,7 +1383,7 @@ function Ae({ deviceId: e, camStreamId: t, camStreams: n }) {
1383
1383
  children: "FPS:"
1384
1384
  }), /* @__PURE__ */ y("span", {
1385
1385
  className: "text-foreground",
1386
- children: i.inputFps.toFixed(1)
1386
+ children: a.inputFps.toFixed(1)
1387
1387
  })]
1388
1388
  }),
1389
1389
  /* @__PURE__ */ b("span", {
@@ -1393,7 +1393,7 @@ function Ae({ deviceId: e, camStreamId: t, camStreams: n }) {
1393
1393
  children: "Bitrate:"
1394
1394
  }), /* @__PURE__ */ y("span", {
1395
1395
  className: "text-foreground",
1396
- children: i.bitrateKbps >= 1e3 ? `${(i.bitrateKbps / 1e3).toFixed(1)} Mbps` : `${i.bitrateKbps} kbps`
1396
+ children: a.bitrateKbps >= 1e3 ? `${(a.bitrateKbps / 1e3).toFixed(1)} Mbps` : `${a.bitrateKbps} kbps`
1397
1397
  })]
1398
1398
  }),
1399
1399
  /* @__PURE__ */ b("span", {
@@ -1403,7 +1403,7 @@ function Ae({ deviceId: e, camStreamId: t, camStreams: n }) {
1403
1403
  children: "Codec:"
1404
1404
  }), /* @__PURE__ */ y("span", {
1405
1405
  className: "text-foreground",
1406
- children: i.codec?.toUpperCase() ?? "—"
1406
+ children: a.codec?.toUpperCase() ?? "—"
1407
1407
  })]
1408
1408
  }),
1409
1409
  /* @__PURE__ */ b("span", {
@@ -1413,7 +1413,7 @@ function Ae({ deviceId: e, camStreamId: t, camStreams: n }) {
1413
1413
  children: "Pkts:"
1414
1414
  }), /* @__PURE__ */ y("span", {
1415
1415
  className: "text-foreground",
1416
- children: i.packetCount > 1e3 ? `${(i.packetCount / 1e3).toFixed(1)}k` : i.packetCount
1416
+ children: a.packetCount > 1e3 ? `${(a.packetCount / 1e3).toFixed(1)}k` : a.packetCount
1417
1417
  })]
1418
1418
  })
1419
1419
  ]
@@ -1441,29 +1441,29 @@ function X(e, t) {
1441
1441
  if (t !== void 0) return t;
1442
1442
  }
1443
1443
  }
1444
- function je({ slot: t, camStreams: n, compact: a }) {
1445
- let s = C(), l = c("stream-broker.metrics-snapshot", (e) => e.brokerId === t.brokerId)?.stats;
1446
- r(["streamBroker", "listClients"], ["stream-broker.metrics-snapshot"]);
1447
- let { data: d } = u({ brokerId: t.brokerId }, {
1448
- enabled: l?.status === "streaming",
1444
+ function je({ slot: e, camStreams: r, compact: o }) {
1445
+ let c = C(), u = i("stream-broker.metrics-snapshot", (t) => t.brokerId === e.brokerId)?.stats;
1446
+ l(["streamBroker", "listClients"], ["stream-broker.metrics-snapshot"]);
1447
+ let { data: d } = n({ brokerId: e.brokerId }, {
1448
+ enabled: u?.status === "streaming",
1449
1449
  staleTime: 2e3
1450
- }), { data: f, isPending: p } = i({ deviceId: t.deviceId }, { staleTime: 15e3 }), m = t.sourceCamStreamId ?? t.profile, h = X(f, `preBufferEnabled:${m}`), g = typeof h == "boolean", v = h === !0, S = X(f, `preBufferSec:${m}`), w = typeof S == "number" ? S : void 0, T = o({ onSuccess: () => {
1451
- s.invalidateQueries({ queryKey: [["streamBroker", "getDeviceSettingsContribution"]] });
1452
- } }), E = (e) => {
1450
+ }), { data: f, isPending: p } = t({ deviceId: e.deviceId }, { staleTime: 15e3 }), m = e.sourceCamStreamId ?? e.profile, h = X(f, `preBufferEnabled:${m}`), g = typeof h == "boolean", v = h === !0, S = X(f, `preBufferSec:${m}`), w = typeof S == "number" ? S : void 0, T = s({ onSuccess: () => {
1451
+ c.invalidateQueries({ queryKey: [["streamBroker", "getDeviceSettingsContribution"]] });
1452
+ } }), E = (t) => {
1453
1453
  T.mutate({
1454
- deviceId: t.deviceId,
1455
- patch: { [`preBufferEnabled:${m}`]: e }
1454
+ deviceId: e.deviceId,
1455
+ patch: { [`preBufferEnabled:${m}`]: t }
1456
1456
  });
1457
- }, D = e({ onSuccess: () => {
1458
- s.invalidateQueries({ queryKey: [["streamBroker", "listClients"]] });
1459
- } }), O = _((e) => {
1457
+ }, D = a({ onSuccess: () => {
1458
+ c.invalidateQueries({ queryKey: [["streamBroker", "listClients"]] });
1459
+ } }), O = _((t) => {
1460
1460
  D.mutate({
1461
- brokerId: t.brokerId,
1462
- ...e
1461
+ brokerId: e.brokerId,
1462
+ ...t
1463
1463
  });
1464
- }, [D, t.brokerId]), k = (t.sourceCamStreamId ? n.get(t.sourceCamStreamId) : void 0)?.resolution ?? t.resolution, A = l?.status === "streaming", j = k ? `${q[t.profile]} (${k.width}×${k.height})` : q[t.profile], M = l ? l.encodedSubscribers + (l.rtspClients ?? 0) + (l.pipeClients ?? 0) : 0;
1464
+ }, [D, e.brokerId]), k = (e.sourceCamStreamId ? r.get(e.sourceCamStreamId) : void 0)?.resolution ?? e.resolution, A = u?.status === "streaming", j = k ? `${q[e.profile]} (${k.width}×${k.height})` : q[e.profile], M = u ? u.encodedSubscribers + (u.rtspClients ?? 0) + (u.pipeClients ?? 0) : 0;
1465
1465
  return /* @__PURE__ */ b("div", {
1466
- className: `@container ${a ? "px-3 py-1.5" : "px-4 py-2"}`,
1466
+ className: `@container ${o ? "px-3 py-1.5" : "px-4 py-2"}`,
1467
1467
  style: { containerType: "inline-size" },
1468
1468
  children: [
1469
1469
  /* @__PURE__ */ b("div", {
@@ -1471,27 +1471,27 @@ function je({ slot: t, camStreams: n, compact: a }) {
1471
1471
  children: [/* @__PURE__ */ b("div", {
1472
1472
  className: "flex items-center gap-1.5 min-w-0",
1473
1473
  children: [
1474
- /* @__PURE__ */ y("span", { className: `h-1.5 w-1.5 shrink-0 rounded-full ${A ? t.profile === "high" ? "bg-success" : t.profile === "mid" ? "bg-warning" : "bg-foreground-subtle" : "bg-foreground-subtle/40"}` }),
1474
+ /* @__PURE__ */ y("span", { className: `h-1.5 w-1.5 shrink-0 rounded-full ${A ? e.profile === "high" ? "bg-success" : e.profile === "mid" ? "bg-warning" : "bg-foreground-subtle" : "bg-foreground-subtle/40"}` }),
1475
1475
  /* @__PURE__ */ y("span", {
1476
1476
  className: "text-[11px] font-medium text-foreground whitespace-nowrap shrink-0",
1477
1477
  children: j
1478
1478
  }),
1479
1479
  /* @__PURE__ */ y("span", {
1480
1480
  className: `text-[10px] shrink-0 ${A ? "text-success" : "text-foreground-subtle"}`,
1481
- children: l?.status ?? "loading"
1481
+ children: u?.status ?? "loading"
1482
1482
  }),
1483
- t.sourceCamStreamId && /* @__PURE__ */ b("span", {
1483
+ e.sourceCamStreamId && /* @__PURE__ */ b("span", {
1484
1484
  className: "text-[10px] text-foreground-subtle truncate min-w-0",
1485
- title: t.sourceCamStreamId,
1486
- children: ["← ", t.sourceCamStreamId]
1485
+ title: e.sourceCamStreamId,
1486
+ children: ["← ", e.sourceCamStreamId]
1487
1487
  })
1488
1488
  ]
1489
1489
  }), /* @__PURE__ */ y("span", {
1490
1490
  className: "text-[10px] text-foreground-subtle shrink-0 whitespace-nowrap",
1491
- children: l && l.uptimeMs > 0 ? Ce(l.uptimeMs) : "—"
1491
+ children: u && u.uptimeMs > 0 ? Ce(u.uptimeMs) : "—"
1492
1492
  })]
1493
1493
  }),
1494
- l && A ? a ? /* @__PURE__ */ b("div", {
1494
+ u && A ? o ? /* @__PURE__ */ b("div", {
1495
1495
  className: "flex flex-wrap gap-x-3 gap-y-0.5 text-[10px]",
1496
1496
  children: [
1497
1497
  /* @__PURE__ */ b("span", {
@@ -1501,7 +1501,7 @@ function je({ slot: t, camStreams: n, compact: a }) {
1501
1501
  children: "FPS:"
1502
1502
  }), /* @__PURE__ */ b("span", {
1503
1503
  className: "text-foreground",
1504
- children: [l.inputFps.toFixed(1), " fps"]
1504
+ children: [u.inputFps.toFixed(1), " fps"]
1505
1505
  })]
1506
1506
  }),
1507
1507
  /* @__PURE__ */ b("span", {
@@ -1511,7 +1511,7 @@ function je({ slot: t, camStreams: n, compact: a }) {
1511
1511
  children: "Bitrate:"
1512
1512
  }), /* @__PURE__ */ y("span", {
1513
1513
  className: "text-foreground",
1514
- children: l.bitrateKbps >= 1e3 ? `${(l.bitrateKbps / 1e3).toFixed(1)} Mbps` : `${l.bitrateKbps} kbps`
1514
+ children: u.bitrateKbps >= 1e3 ? `${(u.bitrateKbps / 1e3).toFixed(1)} Mbps` : `${u.bitrateKbps} kbps`
1515
1515
  })]
1516
1516
  }),
1517
1517
  /* @__PURE__ */ b("span", {
@@ -1521,7 +1521,7 @@ function je({ slot: t, camStreams: n, compact: a }) {
1521
1521
  children: "Codec:"
1522
1522
  }), /* @__PURE__ */ y("span", {
1523
1523
  className: "text-foreground",
1524
- children: l.codec?.toUpperCase() ?? "—"
1524
+ children: u.codec?.toUpperCase() ?? "—"
1525
1525
  })]
1526
1526
  }),
1527
1527
  /* @__PURE__ */ b("span", {
@@ -1540,7 +1540,7 @@ function je({ slot: t, camStreams: n, compact: a }) {
1540
1540
  children: "("
1541
1541
  }),
1542
1542
  /* @__PURE__ */ y(Le, {
1543
- count: l.encodedSubscribers,
1543
+ count: u.encodedSubscribers,
1544
1544
  clients: d,
1545
1545
  onKill: O
1546
1546
  }),
@@ -1549,7 +1549,7 @@ function je({ slot: t, camStreams: n, compact: a }) {
1549
1549
  children: "·"
1550
1550
  }),
1551
1551
  /* @__PURE__ */ y(ze, {
1552
- count: l.rtspClients ?? 0,
1552
+ count: u.rtspClients ?? 0,
1553
1553
  clients: d,
1554
1554
  onKill: O
1555
1555
  }),
@@ -1557,7 +1557,7 @@ function je({ slot: t, camStreams: n, compact: a }) {
1557
1557
  className: "text-foreground-subtle/70",
1558
1558
  children: [
1559
1559
  "· pipe ",
1560
- l.pipeClients ?? 0,
1560
+ u.pipeClients ?? 0,
1561
1561
  ")"
1562
1562
  ]
1563
1563
  })
@@ -1574,7 +1574,7 @@ function je({ slot: t, camStreams: n, compact: a }) {
1574
1574
  children: "In:"
1575
1575
  }), /* @__PURE__ */ b("span", {
1576
1576
  className: "text-foreground",
1577
- children: [l.inputFps.toFixed(1), " fps"]
1577
+ children: [u.inputFps.toFixed(1), " fps"]
1578
1578
  })]
1579
1579
  }),
1580
1580
  /* @__PURE__ */ b("span", {
@@ -1584,7 +1584,7 @@ function je({ slot: t, camStreams: n, compact: a }) {
1584
1584
  children: "Bitrate:"
1585
1585
  }), /* @__PURE__ */ y("span", {
1586
1586
  className: "text-foreground",
1587
- children: l.bitrateKbps >= 1e3 ? `${(l.bitrateKbps / 1e3).toFixed(1)} Mbps` : `${l.bitrateKbps} kbps`
1587
+ children: u.bitrateKbps >= 1e3 ? `${(u.bitrateKbps / 1e3).toFixed(1)} Mbps` : `${u.bitrateKbps} kbps`
1588
1588
  })]
1589
1589
  }),
1590
1590
  /* @__PURE__ */ b("span", {
@@ -1594,7 +1594,7 @@ function je({ slot: t, camStreams: n, compact: a }) {
1594
1594
  children: "IDR:"
1595
1595
  }), /* @__PURE__ */ y("span", {
1596
1596
  className: "text-foreground",
1597
- children: l.idrIntervalMs > 0 ? `${(l.idrIntervalMs / 1e3).toFixed(1)}s` : "—"
1597
+ children: u.idrIntervalMs > 0 ? `${(u.idrIntervalMs / 1e3).toFixed(1)}s` : "—"
1598
1598
  })]
1599
1599
  }),
1600
1600
  /* @__PURE__ */ b("span", {
@@ -1604,7 +1604,7 @@ function je({ slot: t, camStreams: n, compact: a }) {
1604
1604
  children: "Codec:"
1605
1605
  }), /* @__PURE__ */ y("span", {
1606
1606
  className: "text-foreground",
1607
- children: l.codec?.toUpperCase() ?? "—"
1607
+ children: u.codec?.toUpperCase() ?? "—"
1608
1608
  })]
1609
1609
  }),
1610
1610
  /* @__PURE__ */ b("span", {
@@ -1614,7 +1614,7 @@ function je({ slot: t, camStreams: n, compact: a }) {
1614
1614
  children: "Pipe:"
1615
1615
  }), /* @__PURE__ */ y("span", {
1616
1616
  className: "text-foreground",
1617
- children: l.pipeClients ?? 0
1617
+ children: u.pipeClients ?? 0
1618
1618
  })]
1619
1619
  }),
1620
1620
  /* @__PURE__ */ b("span", {
@@ -1624,7 +1624,7 @@ function je({ slot: t, camStreams: n, compact: a }) {
1624
1624
  children: "Packets:"
1625
1625
  }), /* @__PURE__ */ y("span", {
1626
1626
  className: "text-foreground",
1627
- children: l.packetCount > 1e3 ? `${(l.packetCount / 1e3).toFixed(1)}k` : l.packetCount
1627
+ children: u.packetCount > 1e3 ? `${(u.packetCount / 1e3).toFixed(1)}k` : u.packetCount
1628
1628
  })]
1629
1629
  }),
1630
1630
  /* @__PURE__ */ b("span", {
@@ -1634,10 +1634,10 @@ function je({ slot: t, camStreams: n, compact: a }) {
1634
1634
  children: "Data:"
1635
1635
  }), /* @__PURE__ */ y("span", {
1636
1636
  className: "text-foreground",
1637
- children: l.totalBytes > 1048576 ? `${(l.totalBytes / 1048576).toFixed(1)} MB` : `${(l.totalBytes / 1024).toFixed(0)} KB`
1637
+ children: u.totalBytes > 1048576 ? `${(u.totalBytes / 1048576).toFixed(1)} MB` : `${(u.totalBytes / 1024).toFixed(0)} KB`
1638
1638
  })]
1639
1639
  }),
1640
- l.audio && /* @__PURE__ */ b("div", {
1640
+ u.audio && /* @__PURE__ */ b("div", {
1641
1641
  className: "basis-full flex flex-wrap items-center gap-x-1.5 gap-y-0.5",
1642
1642
  children: [
1643
1643
  /* @__PURE__ */ y("span", {
@@ -1649,7 +1649,7 @@ function je({ slot: t, camStreams: n, compact: a }) {
1649
1649
  children: [
1650
1650
  /* @__PURE__ */ y("span", {
1651
1651
  className: "text-foreground",
1652
- children: l.audio.codec.toUpperCase()
1652
+ children: u.audio.codec.toUpperCase()
1653
1653
  }),
1654
1654
  /* @__PURE__ */ y("span", {
1655
1655
  className: "text-foreground-subtle",
@@ -1657,7 +1657,7 @@ function je({ slot: t, camStreams: n, compact: a }) {
1657
1657
  }),
1658
1658
  /* @__PURE__ */ y("span", {
1659
1659
  className: "text-foreground",
1660
- children: l.audio.sampleRate >= 1e3 ? `${(l.audio.sampleRate / 1e3).toFixed(l.audio.sampleRate % 1e3 == 0 ? 0 : 1)}kHz` : `${l.audio.sampleRate}Hz`
1660
+ children: u.audio.sampleRate >= 1e3 ? `${(u.audio.sampleRate / 1e3).toFixed(u.audio.sampleRate % 1e3 == 0 ? 0 : 1)}kHz` : `${u.audio.sampleRate}Hz`
1661
1661
  }),
1662
1662
  /* @__PURE__ */ y("span", {
1663
1663
  className: "text-foreground-subtle",
@@ -1665,20 +1665,20 @@ function je({ slot: t, camStreams: n, compact: a }) {
1665
1665
  }),
1666
1666
  /* @__PURE__ */ y("span", {
1667
1667
  className: "text-foreground",
1668
- children: l.audio.channels === 1 ? "mono" : l.audio.channels === 2 ? "stereo" : `${l.audio.channels}ch`
1668
+ children: u.audio.channels === 1 ? "mono" : u.audio.channels === 2 ? "stereo" : `${u.audio.channels}ch`
1669
1669
  })
1670
1670
  ]
1671
1671
  }),
1672
1672
  /* @__PURE__ */ y("span", {
1673
- className: `px-1 py-px rounded text-[8px] font-medium whitespace-nowrap ${l.audio.supported ? "bg-success/15 text-success" : "bg-amber-500/15 text-amber-500"}`,
1674
- children: l.audio.supported ? "decoded" : "no decoder"
1673
+ className: `px-1 py-px rounded text-[8px] font-medium whitespace-nowrap ${u.audio.supported ? "bg-success/15 text-success" : "bg-amber-500/15 text-amber-500"}`,
1674
+ children: u.audio.supported ? "decoded" : "no decoder"
1675
1675
  })
1676
1676
  ]
1677
1677
  })
1678
1678
  ]
1679
1679
  }), /* @__PURE__ */ y(Ie, {
1680
1680
  clients: d,
1681
- encodedCount: l.encodedSubscribers,
1681
+ encodedCount: u.encodedSubscribers,
1682
1682
  onKill: O
1683
1683
  })] }) : /* @__PURE__ */ y("p", {
1684
1684
  className: "text-[10px] text-foreground-subtle italic",
@@ -1699,7 +1699,7 @@ function je({ slot: t, camStreams: n, compact: a }) {
1699
1699
  }),
1700
1700
  /* @__PURE__ */ b("span", {
1701
1701
  className: "text-foreground",
1702
- children: [g ? `${w ?? l?.preBufferSec ?? 0}s` : "…", g && l && A ? ` (${l.preBufferPackets}p)` : ""]
1702
+ children: [g ? `${w ?? u?.preBufferSec ?? 0}s` : "…", g && u && A ? ` (${u.preBufferPackets}p)` : ""]
1703
1703
  })
1704
1704
  ]
1705
1705
  })