@camstack/addon-benchmark 1.2.119 → 1.2.121

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 (17) hide show
  1. package/dist/{MotionZonesSettings-Bx-G7x1P.mjs → MotionZonesSettings-UCdT52PK.mjs} +129 -147
  2. package/dist/{PrivacyMaskSettings-vinyIide.mjs → PrivacyMaskSettings-CwchEw5a.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-BB9ER6u6.mjs → SceneMonitorEditor-C2Ge8hgD.mjs} +136 -136
  4. package/dist/_stub.js +4674 -4191
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-CCHt4d63.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-v0KF8kS4.mjs} +4 -4
  6. package/dist/{_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-B_8RNOgn.mjs → _virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CvlKTY0k.mjs} +1 -1
  7. package/dist/addon-benchmark.css +1 -1
  8. package/dist/grid-2x2-B49ropGy.mjs +21 -0
  9. package/dist/{hostInit-DUsS2QiP.mjs → hostInit-F5wzJFTS.mjs} +3 -3
  10. package/dist/{player-overlays-DuBK7_sR.mjs → player-overlays-Bcy5A49o.mjs} +1 -1
  11. package/dist/remoteEntry.js +1 -1
  12. package/dist/{responsive-CIPaE71n.mjs → responsive-BMJkT8Uq.mjs} +1 -1
  13. package/dist/{use-device-snapshot-DWVeIvA3.mjs → scene-monitor-copy-BPmr_2E8.mjs} +46 -46
  14. package/dist/{square-5phgB1vQ.mjs → square-BO2kZ21O.mjs} +1 -1
  15. package/dist/{trash-2-D24swekJ.mjs → trash-2-DAA3EKX7.mjs} +1 -1
  16. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-7mYMB1_q.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-CABpqqbw.mjs} +1 -1
  17. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { g as e, l as t, p as n, u as r, x as i } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-GeuxDuzQ.mjs";
2
- import { c as a, s as o } from "./responsive-CIPaE71n.mjs";
2
+ import { c as a, s as o } from "./responsive-BMJkT8Uq.mjs";
3
3
  import { n as s, r as c, t as l } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-SOU_VnTj.mjs";
4
4
  var u = a("chevron-down", [["path", {
5
5
  d: "m6 9 6 6 6-6",
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-7mYMB1_q.mjs";
1
+ import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-CABpqqbw.mjs";
2
2
  export { t as get, e as init };
@@ -1,6 +1,6 @@
1
1
  import { _ as e, c as t, g as n, l as r, n as i, p as a, r as o, t as s, u as c, x as l } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-GeuxDuzQ.mjs";
2
2
  import "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-SOU_VnTj.mjs";
3
- import { i as u } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-B_8RNOgn.mjs";
3
+ import { i as u } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CvlKTY0k.mjs";
4
4
  //#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
5
5
  l();
6
6
  var d = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), f = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), p = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), m = (e) => {
@@ -1,5 +1,5 @@
1
1
  import { c as e, g as t, p as n, x as r } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-GeuxDuzQ.mjs";
2
- import { c as i } from "./responsive-CIPaE71n.mjs";
2
+ import { c as i } from "./responsive-BMJkT8Uq.mjs";
3
3
  var a = i("camera", [["path", {
4
4
  d: "M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",
5
5
  key: "18u6gg"
@@ -89,47 +89,71 @@ function _() {
89
89
  return `${typeof window < "u" ? window.location.origin : ""}${m()}`;
90
90
  }
91
91
  //#endregion
92
+ //#region ../ui-library/src/hooks/use-device-snapshot.ts
93
+ var v = "/addon/snapshot/media";
94
+ function y(r, i = {}) {
95
+ let { width: a, baseUrl: o } = i, [s, c] = t(0);
96
+ return {
97
+ src: n(() => {
98
+ if (r === null || r <= 0) return null;
99
+ let e = o === void 0 ? m() : o.replace(/\/+$/, ""), t = new URLSearchParams();
100
+ a !== void 0 && Number.isInteger(a) && a > 0 && t.set("w", String(a)), s > 0 && (t.set("force", "1"), t.set("r", String(s)));
101
+ let n = t.toString();
102
+ return `${e}${v}/${String(r)}.jpg${n.length > 0 ? `?${n}` : ""}`;
103
+ }, [
104
+ r,
105
+ a,
106
+ o,
107
+ s
108
+ ]),
109
+ loading: !1,
110
+ refresh: e(() => {
111
+ c((e) => e + 1);
112
+ }, [])
113
+ };
114
+ }
115
+ //#endregion
92
116
  //#region ../ui-library/src/composites/cap-settings/scene-monitor-copy.ts
93
- var v = ["day", "ir"], y = {
117
+ var b = ["day", "ir"], x = {
94
118
  day: "Daylight",
95
119
  ir: "Night (IR)",
96
120
  night: "Night",
97
121
  dawn: "Dawn",
98
122
  dusk: "Dusk"
99
123
  };
100
- function b(e) {
101
- return y[e] ?? e;
124
+ function S(e) {
125
+ return x[e] ?? e;
102
126
  }
103
- function x(e) {
104
- let t = new Set(e.coveredConditions), n = v.map((e) => `${b(e)} ${t.has(e) ? "✓" : "✗"}`), r = [...t].filter((e) => !v.some((t) => t === e));
105
- for (let e of r) n.push(`${b(e)} ✓`);
106
- let i = v.filter((e) => !t.has(e));
127
+ function C(e) {
128
+ let t = new Set(e.coveredConditions), n = b.map((e) => `${S(e)} ${t.has(e) ? "✓" : "✗"}`), r = [...t].filter((e) => !b.some((t) => t === e));
129
+ for (let e of r) n.push(`${S(e)} ✓`);
130
+ let i = b.filter((e) => !t.has(e));
107
131
  if (i.length === 0) return n.join(" · ");
108
132
  if (t.size === 0) return `${n.join(" · ")} — nothing captured yet, so this scene is not watching.`;
109
- let a = i.map((e) => b(e).toLowerCase()).join(" and ");
133
+ let a = i.map((e) => S(e).toLowerCase()).join(" and ");
110
134
  return e.onUncoveredCondition === "judge-anyway" ? `${n.join(" · ")} — ${a} judged against the references you do have.` : `${n.join(" · ")} — optional; checks in ${a} are skipped.`;
111
135
  }
112
- function S(e) {
136
+ function w(e) {
113
137
  if (e.suspendedCondition === null) return null;
114
- let t = b(e.suspendedCondition).toLowerCase();
138
+ let t = S(e.suspendedCondition).toLowerCase();
115
139
  return `Paused — nothing was captured in ${t}, so checks are on hold until the light changes back. Capture ${t} if you want it watched around the clock.`;
116
140
  }
117
- var C = {
141
+ var T = {
118
142
  "no-reference-for-condition": "can’t tell — nothing has been captured for this scene yet. Press “Capture daylight” to photograph what normal looks like.",
119
143
  "view-shifted": "can’t tell — the camera view has moved since the reference was captured. Re-capture it.",
120
144
  "no-vision-profile": "can’t tell — the vision model is unreachable, so the change is on hold.",
121
145
  "encoder-model-changed": "can’t tell — the embedding model changed, so the stored references are unreadable. Re-capture them.",
122
146
  "no-snapshot": "can’t tell — this camera did not return a frame."
123
147
  };
124
- function w(e, t) {
148
+ function E(e, t) {
125
149
  if (e.states.length === 0) return "Not armed yet — capture the initial state to start watching.";
126
- if (e.verdict === "unknown") return e.unavailable === null ? "can’t tell right now." : C[e.unavailable];
127
- let n = e.verdict === "diverged" ? e.divergedAt : e.armedAt, r = n === null ? "" : ` for ${O(Math.max(0, t - n))}`;
150
+ if (e.verdict === "unknown") return e.unavailable === null ? "can’t tell right now." : T[e.unavailable];
151
+ let n = e.verdict === "diverged" ? e.divergedAt : e.armedAt, r = n === null ? "" : ` for ${A(Math.max(0, t - n))}`;
128
152
  if (e.latched) return e.verdict === "diverged" ? `CHANGED${r} — press Reset when you have dealt with it.` : `Back to normal, but still flagged as changed${r}. Press Reset to clear it.`;
129
- let i = S(e);
153
+ let i = w(e);
130
154
  return i === null ? e.verdict === "diverged" ? `CHANGED${r}` : `Normal${r}` : i;
131
155
  }
132
- function T(e) {
156
+ function D(e) {
133
157
  return e.states.length === 0 ? {
134
158
  text: "Not armed",
135
159
  tone: "unknown"
@@ -150,11 +174,11 @@ function T(e) {
150
174
  tone: "unknown"
151
175
  };
152
176
  }
153
- var E = .4;
154
- function D(e) {
155
- return e.width * e.height > E;
177
+ var O = .4;
178
+ function k(e) {
179
+ return e.width * e.height > O;
156
180
  }
157
- function O(e) {
181
+ function A(e) {
158
182
  let t = Math.floor(e / 1e3);
159
183
  if (t < 60) return `${t}s`;
160
184
  let n = Math.floor(t / 60);
@@ -163,28 +187,4 @@ function O(e) {
163
187
  return r < 48 ? `${r}h` : `${Math.floor(r / 24)}d`;
164
188
  }
165
189
  //#endregion
166
- //#region ../ui-library/src/hooks/use-device-snapshot.ts
167
- var k = "/addon/snapshot/media";
168
- function A(r, i = {}) {
169
- let { width: a, baseUrl: o } = i, [s, c] = t(0);
170
- return {
171
- src: n(() => {
172
- if (r === null || r <= 0) return null;
173
- let e = o === void 0 ? m() : o.replace(/\/+$/, ""), t = new URLSearchParams();
174
- a !== void 0 && Number.isInteger(a) && a > 0 && t.set("w", String(a)), s > 0 && (t.set("force", "1"), t.set("r", String(s)));
175
- let n = t.toString();
176
- return `${e}${k}/${String(r)}.jpg${n.length > 0 ? `?${n}` : ""}`;
177
- }, [
178
- r,
179
- a,
180
- o,
181
- s
182
- ]),
183
- loading: !1,
184
- refresh: e(() => {
185
- c((e) => e + 1);
186
- }, [])
187
- };
188
- }
189
- //#endregion
190
- export { D as a, _ as c, o as d, a as f, x as i, g as l, v as n, w as o, T as r, b as s, A as t, s as u };
190
+ export { E as a, _ as c, o as d, a as f, k as i, g as l, D as n, S as o, C as r, y as s, b as t, s as u };
@@ -1,4 +1,4 @@
1
- import { c as e } from "./responsive-CIPaE71n.mjs";
1
+ import { c as e } from "./responsive-BMJkT8Uq.mjs";
2
2
  var t = e("eye-off", [
3
3
  ["path", {
4
4
  d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",
@@ -1,4 +1,4 @@
1
- import { c as e } from "./responsive-CIPaE71n.mjs";
1
+ import { c as e } from "./responsive-BMJkT8Uq.mjs";
2
2
  var t = e("trash-2", [
3
3
  ["path", {
4
4
  d: "M10 11v6",
@@ -2762,7 +2762,7 @@ async function or(e) {
2762
2762
  }
2763
2763
  }
2764
2764
  async function sr() {
2765
- return ir ||= or(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-CCHt4d63.mjs")).catch((e) => {
2765
+ return ir ||= or(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-v0KF8kS4.mjs")).catch((e) => {
2766
2766
  throw ir = void 0, e;
2767
2767
  }), ir;
2768
2768
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-benchmark",
3
- "version": "1.2.119",
3
+ "version": "1.2.121",
4
4
  "description": "Detection addon benchmarking with reference images, accuracy metrics, and distributed execution",
5
5
  "keywords": [
6
6
  "camstack",