interview-widget 1.0.12 → 1.0.14

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/dist/widget.es.js CHANGED
@@ -1329,7 +1329,7 @@ const xu = ({
1329
1329
  {
1330
1330
  type: "checkbox",
1331
1331
  checked: a,
1332
- onChange: (k) => f(k.target.checked)
1332
+ onChange: (v) => f(v.target.checked)
1333
1333
  }
1334
1334
  ),
1335
1335
  /* @__PURE__ */ o.jsx("strong", { children: "Enable Gaze Analysis" })
@@ -1344,7 +1344,7 @@ const xu = ({
1344
1344
  {
1345
1345
  type: "checkbox",
1346
1346
  checked: l,
1347
- onChange: (k) => u(k.target.checked),
1347
+ onChange: (v) => u(v.target.checked),
1348
1348
  disabled: !a
1349
1349
  }
1350
1350
  ),
@@ -1362,7 +1362,7 @@ const xu = ({
1362
1362
  {
1363
1363
  type: "checkbox",
1364
1364
  checked: d,
1365
- onChange: (k) => h(k.target.checked),
1365
+ onChange: (v) => h(v.target.checked),
1366
1366
  disabled: !a
1367
1367
  }
1368
1368
  ),
@@ -1575,12 +1575,12 @@ function br(e, t, r = !1) {
1575
1575
  return typeof Symbol == "function" && typeof Symbol() == "symbol" ? r && Symbol.for && e ? Symbol.for(e) : e != null ? Symbol(e) : Symbol() : t;
1576
1576
  }
1577
1577
  var Su = br("jas", void 0, !0), no = br(void 0, "0di"), Lr = br(void 0, "1oa"), ur = br(void 0, Symbol()), Cu = br(void 0, "0actk"), Oa = br(void 0, "8utk");
1578
- const _ = ji ? Su : "Ea", Ba = { Ea: { value: 0, configurable: !0, writable: !0, enumerable: !1 } }, Ua = Object.defineProperties;
1578
+ const k = ji ? Su : "Ea", Ba = { Ea: { value: 0, configurable: !0, writable: !0, enumerable: !1 } }, Ua = Object.defineProperties;
1579
1579
  function Ai(e, t) {
1580
- ji || _ in e || Ua(e, Ba), e[_] |= t;
1580
+ ji || k in e || Ua(e, Ba), e[k] |= t;
1581
1581
  }
1582
1582
  function ae(e, t) {
1583
- ji || _ in e || Ua(e, Ba), e[_] = t;
1583
+ ji || k in e || Ua(e, Ba), e[k] = t;
1584
1584
  }
1585
1585
  function vr(e) {
1586
1586
  return Ai(e, 34), e;
@@ -1818,7 +1818,7 @@ function hr(e) {
1818
1818
  function is(e, t, r, i) {
1819
1819
  if (e != null && typeof e == "object" && e.W === Jr) return e;
1820
1820
  if (!Array.isArray(e)) return r ? 2 & i ? ((e = t[no]) || (vr((e = new t()).u), e = t[no] = e), t = e) : t = new t() : t = void 0, t;
1821
- let n = r = 0 | e[_];
1821
+ let n = r = 0 | e[k];
1822
1822
  return n === 0 && (n |= 32 & i), n |= 2 & i, n !== r && ae(e, n), new t(e);
1823
1823
  }
1824
1824
  function Wu(e, t, r) {
@@ -1902,7 +1902,7 @@ function ln(e) {
1902
1902
  var dt = class extends Yu {
1903
1903
  constructor(e, t, r = mo, i = mo) {
1904
1904
  super();
1905
- let n = 0 | e[_];
1905
+ let n = 0 | e[k];
1906
1906
  n |= 64, ae(e, n), this.M = n, this.I = t, this.S = r, this.X = this.I ? Ku : i;
1907
1907
  for (let s = 0; s < e.length; s++) {
1908
1908
  const a = e[s], c = r(a[0], !1, !0);
@@ -1982,14 +1982,14 @@ function go() {
1982
1982
  function En(e, t, r, i, n) {
1983
1983
  if (e != null) {
1984
1984
  if (Array.isArray(e)) {
1985
- const s = 0 | e[_];
1985
+ const s = 0 | e[k];
1986
1986
  return e.length === 0 && 1 & s ? void 0 : n && 2 & s ? e : Mi(e, t, r, i !== void 0, n);
1987
1987
  }
1988
1988
  return t(e, i);
1989
1989
  }
1990
1990
  }
1991
1991
  function Mi(e, t, r, i, n) {
1992
- const s = i || r ? 0 | e[_] : 0, a = i ? !!(32 & s) : void 0;
1992
+ const s = i || r ? 0 | e[k] : 0, a = i ? !!(32 & s) : void 0;
1993
1993
  let c = 0;
1994
1994
  const l = (i = Ae(e)).length;
1995
1995
  for (let m = 0; m < l; m++) {
@@ -1997,9 +1997,9 @@ function Mi(e, t, r, i, n) {
1997
1997
  if (m === l - 1 && Ni(u)) {
1998
1998
  var d = t, h = r, f = a, w = n;
1999
1999
  let b;
2000
- for (let k in u) {
2001
- const g = En(u[k], d, h, f, w);
2002
- g != null && ((b ?? (b = {}))[k] = g);
2000
+ for (let v in u) {
2001
+ const g = En(u[v], d, h, f, w);
2002
+ g != null && ((b ?? (b = {}))[v] = g);
2003
2003
  }
2004
2004
  u = b;
2005
2005
  } else u = En(i[m], t, r, a, n);
@@ -2032,7 +2032,7 @@ function ns(e) {
2032
2032
  function Ja(e) {
2033
2033
  var t = e.u;
2034
2034
  e = Mi(t, ns, void 0, void 0, !1);
2035
- var r = 0 | t[_];
2035
+ var r = 0 | t[k];
2036
2036
  if ((t = e.length) && !(512 & r)) {
2037
2037
  var i = e[t - 1], n = !1;
2038
2038
  Ni(i) ? (t--, n = !0) : i = void 0;
@@ -2062,7 +2062,7 @@ function Qa(e, t, r, i) {
2062
2062
  r ? (e = [r], n |= 512) : e = [], t && (n = -16760833 & n | (1023 & t) << 14);
2063
2063
  } else {
2064
2064
  if (!Array.isArray(e)) throw Error("narr");
2065
- if (8192 & (n = 0 | e[_]) || !(64 & n) || 2 & n || Yn(Cu), 1024 & n) throw Error("farr");
2065
+ if (8192 & (n = 0 | e[k]) || !(64 & n) || 2 & n || Yn(Cu), 1024 & n) throw Error("farr");
2066
2066
  if (64 & n) return e;
2067
2067
  if (i === 1 || i === 2 || (n |= 64), r && (n |= 512, r !== e[0])) throw Error("mid");
2068
2068
  e: {
@@ -2088,10 +2088,10 @@ function jn(e, t, r = vn) {
2088
2088
  if (e != null) {
2089
2089
  if (Ma && e instanceof Uint8Array) return t ? e : new Uint8Array(e);
2090
2090
  if (Array.isArray(e)) {
2091
- var i = 0 | e[_];
2091
+ var i = 0 | e[k];
2092
2092
  return 2 & i ? e : (t && (t = i === 0 || !!(32 & i) && !(64 & i || !(16 & i))), t ? (ae(e, 34 | i), 4 & i && Object.freeze(e), e) : Mi(e, jn, 4 & i ? vn : r, !0, !0));
2093
2093
  }
2094
- return e.W === Jr ? e = 2 & (i = 0 | (r = e.u)[_]) ? e : new e.constructor(Li(r, i, !0)) : e instanceof dt && !(2 & e.M) && (r = vr(e.da(jn)), e = new dt(r, e.I, e.S, e.X)), e;
2094
+ return e.W === Jr ? e = 2 & (i = 0 | (r = e.u)[k]) ? e : new e.constructor(Li(r, i, !0)) : e instanceof dt && !(2 & e.M) && (r = vr(e.da(jn)), e = new dt(r, e.I, e.S, e.X)), e;
2095
2095
  }
2096
2096
  }
2097
2097
  function Li(e, t, r) {
@@ -2109,11 +2109,11 @@ function Li(e, t, r) {
2109
2109
  }(e, t, (s) => jn(s, n, i)), Ai(e, 32 | (r ? 2 : 0)), e;
2110
2110
  }
2111
2111
  function Fi(e) {
2112
- const t = e.u, r = 0 | t[_];
2112
+ const t = e.u, r = 0 | t[k];
2113
2113
  return 2 & r ? new e.constructor(Li(t, r, !1)) : e;
2114
2114
  }
2115
2115
  function fr(e, t) {
2116
- return Et(e = e.u, 0 | e[_], t);
2116
+ return Et(e = e.u, 0 | e[k], t);
2117
2117
  }
2118
2118
  function Et(e, t, r) {
2119
2119
  if (r === -1) return null;
@@ -2122,7 +2122,7 @@ function Et(e, t, r) {
2122
2122
  }
2123
2123
  function $(e, t, r) {
2124
2124
  const i = e.u;
2125
- let n = 0 | i[_];
2125
+ let n = 0 | i[k];
2126
2126
  return Ut(n), Z(i, n, t, r), e;
2127
2127
  }
2128
2128
  function Z(e, t, r, i) {
@@ -2131,12 +2131,12 @@ function Z(e, t, r, i) {
2131
2131
  return s >= a && 256 & t ? (e[a][r] = i, t) : s <= a ? (e[s] = i, t) : (i !== void 0 && (r >= (a = t >> 14 & 1023 || 536870912) ? i != null && (e[a + n] = { [r]: i }, ae(e, t |= 256)) : e[s] = i), t);
2132
2132
  }
2133
2133
  function li(e, t) {
2134
- let r = 0 | (e = e.u)[_];
2134
+ let r = 0 | (e = e.u)[k];
2135
2135
  const i = Et(e, r, t), n = Gt(i);
2136
2136
  return n != null && n !== i && Z(e, r, t, n), n;
2137
2137
  }
2138
2138
  function Za(e) {
2139
- let t = 0 | (e = e.u)[_];
2139
+ let t = 0 | (e = e.u)[k];
2140
2140
  const r = Et(e, t, 1), i = Xn(r, !0);
2141
2141
  return i != null && i !== r && Z(e, t, 1, i), i;
2142
2142
  }
@@ -2144,9 +2144,9 @@ function qt() {
2144
2144
  return Ru === void 0 ? 2 : 4;
2145
2145
  }
2146
2146
  function Yt(e, t, r, i, n) {
2147
- const s = e.u, a = 2 & (e = 0 | s[_]) ? 1 : i;
2147
+ const s = e.u, a = 2 & (e = 0 | s[k]) ? 1 : i;
2148
2148
  n = !!n;
2149
- let c = 0 | (i = ss(s, e, t))[_];
2149
+ let c = 0 | (i = ss(s, e, t))[k];
2150
2150
  if (!(4 & c)) {
2151
2151
  4 & c && (i = Ae(i), c = bt(c, e), e = Z(s, e, t, i));
2152
2152
  let l = 0, u = 0;
@@ -2176,7 +2176,7 @@ function ec(e) {
2176
2176
  return e;
2177
2177
  }
2178
2178
  function An(e, t, r, i) {
2179
- let n = 0 | (e = e.u)[_];
2179
+ let n = 0 | (e = e.u)[k];
2180
2180
  Ut(n), Z(e, n, t, (i === "0" ? Number(r) === 0 : r === i) ? void 0 : r);
2181
2181
  }
2182
2182
  function Er(e, t, r, i) {
@@ -2184,7 +2184,7 @@ function Er(e, t, r, i) {
2184
2184
  let n = ss(e, t, r);
2185
2185
  const s = n !== Kn;
2186
2186
  if (64 & t || !(8192 & t) || !s) {
2187
- const a = s ? 0 | n[_] : 0;
2187
+ const a = s ? 0 | n[k] : 0;
2188
2188
  let c = a;
2189
2189
  (!s || 2 & c || xt(c) || 4 & c && !(32 & c)) && (n = Ae(n), c = bt(c, t), t = Z(e, t, r, n)), c = -13 & os(c, t), c = Dt(i ? -17 & c : 16 | c, t, !0), c !== a && ae(n, c);
2190
2190
  }
@@ -2192,7 +2192,7 @@ function Er(e, t, r, i) {
2192
2192
  }
2193
2193
  function un(e, t) {
2194
2194
  var r = Vc;
2195
- return cs(as(e = e.u), e, 0 | e[_], r) === t ? t : -1;
2195
+ return cs(as(e = e.u), e, 0 | e[k], r) === t ? t : -1;
2196
2196
  }
2197
2197
  function as(e) {
2198
2198
  if (ji) return e[Lr] ?? (e[Lr] = /* @__PURE__ */ new Map());
@@ -2215,24 +2215,24 @@ function cs(e, t, r, i) {
2215
2215
  return e.set(i, n), n;
2216
2216
  }
2217
2217
  function ls(e, t, r) {
2218
- let i = 0 | e[_];
2218
+ let i = 0 | e[k];
2219
2219
  const n = Et(e, i, r);
2220
2220
  let s;
2221
2221
  if (n != null && n.W === Jr) return (t = Fi(n)) !== n && Z(e, i, r, t), t.u;
2222
2222
  if (Array.isArray(n)) {
2223
- const a = 0 | n[_];
2223
+ const a = 0 | n[k];
2224
2224
  s = 2 & a ? Pt(Li(n, a, !1), t, !0) : 64 & a ? n : Pt(s, t, !0);
2225
2225
  } else s = Pt(void 0, t, !0);
2226
2226
  return s !== n && Z(e, i, r, s), s;
2227
2227
  }
2228
2228
  function rc(e, t, r) {
2229
- let i = 0 | (e = e.u)[_];
2229
+ let i = 0 | (e = e.u)[k];
2230
2230
  const n = Et(e, i, r);
2231
2231
  return (t = is(n, t, !1, i)) !== n && t != null && Z(e, i, r, t), t;
2232
2232
  }
2233
2233
  function F(e, t, r) {
2234
2234
  if ((t = rc(e, t, r)) == null) return t;
2235
- let i = 0 | (e = e.u)[_];
2235
+ let i = 0 | (e = e.u)[k];
2236
2236
  if (!(2 & i)) {
2237
2237
  const n = Fi(t);
2238
2238
  n !== t && Z(e, i, r, t = n);
@@ -2244,23 +2244,23 @@ function ic(e, t, r, i, n, s, a) {
2244
2244
  var c = !!(2 & t);
2245
2245
  const l = c ? 1 : n;
2246
2246
  s = !!s, a && (a = !c);
2247
- var u = 0 | (n = ss(e, t, i))[_];
2247
+ var u = 0 | (n = ss(e, t, i))[k];
2248
2248
  if (!(c = !!(4 & u))) {
2249
2249
  var d = n, h = t;
2250
2250
  const f = !!(2 & (u = os(u, t)));
2251
2251
  f && (h |= 2);
2252
- let w = !f, m = !0, b = 0, k = 0;
2252
+ let w = !f, m = !0, b = 0, v = 0;
2253
2253
  for (; b < d.length; b++) {
2254
2254
  const g = is(d[b], r, !1, h);
2255
2255
  if (g instanceof r) {
2256
2256
  if (!f) {
2257
- const S = !!(2 & (0 | g.u[_]));
2257
+ const S = !!(2 & (0 | g.u[k]));
2258
2258
  w && (w = !S), m && (m = S);
2259
2259
  }
2260
- d[k++] = g;
2260
+ d[v++] = g;
2261
2261
  }
2262
2262
  }
2263
- k < b && (d.length = k), u |= 4, u = m ? 16 | u : -17 & u, ae(d, u = w ? 8 | u : -9 & u), f && Object.freeze(d);
2263
+ v < b && (d.length = v), u |= 4, u = m ? 16 | u : -17 & u, ae(d, u = w ? 8 | u : -9 & u), f && Object.freeze(d);
2264
2264
  }
2265
2265
  if (a && !(8 & u || !n.length && (l === 1 || l === 4 && 32 & u))) {
2266
2266
  for (xt(u) && (n = Ae(n), u = bt(u, t), t = Z(e, t, i, n)), r = n, a = u, d = 0; d < r.length; d++) (u = r[d]) !== (h = Fi(u)) && (r[d] = h);
@@ -2269,7 +2269,7 @@ function ic(e, t, r, i, n, s, a) {
2269
2269
  return l === 1 || l === 4 && 32 & u ? xt(u) || (t = u, (u |= !n.length || 16 & u && (!c || 32 & u) ? 2 : 1024) !== t && ae(n, u), Object.freeze(n)) : (l === 2 && xt(u) && (ae(n = Ae(n), u = Dt(u = bt(u, t), t, s)), t = Z(e, t, i, n)), xt(u) || (i = u, (u = Dt(u, t, s)) !== i && ae(n, u))), n;
2270
2270
  }
2271
2271
  function _t(e, t, r) {
2272
- const i = 0 | e.u[_];
2272
+ const i = 0 | e.u[k];
2273
2273
  return ic(e, i, t, r, qt(), !1, !(2 & i));
2274
2274
  }
2275
2275
  function E(e, t, r, i) {
@@ -2278,7 +2278,7 @@ function E(e, t, r, i) {
2278
2278
  function Br(e, t, r, i) {
2279
2279
  i == null && (i = void 0);
2280
2280
  e: {
2281
- let n = 0 | (e = e.u)[_];
2281
+ let n = 0 | (e = e.u)[k];
2282
2282
  if (Ut(n), i == null) {
2283
2283
  const s = as(e);
2284
2284
  if (cs(s, e, n, r) !== t) break e;
@@ -2294,11 +2294,11 @@ function Dt(e, t, r) {
2294
2294
  return 32 & t && r || (e &= -33), e;
2295
2295
  }
2296
2296
  function Pi(e, t, r) {
2297
- Ut(0 | e.u[_]), Yt(e, t, hr, 2, !0).push(Ya(r));
2297
+ Ut(0 | e.u[k]), Yt(e, t, hr, 2, !0).push(Ya(r));
2298
2298
  }
2299
2299
  function gi(e, t, r, i) {
2300
- const n = 0 | e.u[_];
2301
- Ut(n), e = ic(e, n, r, t, 2, !0), i = i ?? new r(), e.push(i), e[_] = 2 & (0 | i.u[_]) ? -9 & e[_] : -17 & e[_];
2300
+ const n = 0 | e.u[k];
2301
+ Ut(n), e = ic(e, n, r, t, 2, !0), i = i ?? new r(), e.push(i), e[k] = 2 & (0 | i.u[k]) ? -9 & e[k] : -17 & e[k];
2302
2302
  }
2303
2303
  function We(e, t) {
2304
2304
  return _r(fr(e, t));
@@ -2327,10 +2327,10 @@ function y(e, t, r) {
2327
2327
  function pi(e, t, r) {
2328
2328
  {
2329
2329
  const a = e.u;
2330
- let c = 0 | a[_];
2330
+ let c = 0 | a[k];
2331
2331
  if (Ut(c), r == null) Z(a, c, t);
2332
2332
  else {
2333
- var i = e = 0 | r[_], n = xt(e), s = n || Object.isFrozen(r);
2333
+ var i = e = 0 | r[k], n = xt(e), s = n || Object.isFrozen(r);
2334
2334
  for (n || (e = 0), s || (r = Ae(r), i = 0, e = Dt(e = bt(e, c), c, !0), s = !1), e |= 21, n = 0; n < r.length; n++) {
2335
2335
  const l = r[n], u = Ya(l);
2336
2336
  Object.is(l, u) || (s && (r = Ae(r), i = 0, e = Dt(e = bt(e, c), c, !0), s = !1), r[n] = u);
@@ -2528,10 +2528,10 @@ var x = class {
2528
2528
  }
2529
2529
  clone() {
2530
2530
  const e = this.u;
2531
- return new this.constructor(Li(e, 0 | e[_], !1));
2531
+ return new this.constructor(Li(e, 0 | e[k], !1));
2532
2532
  }
2533
2533
  O() {
2534
- return !!(2 & (0 | this.u[_]));
2534
+ return !!(2 & (0 | this.u[k]));
2535
2535
  }
2536
2536
  };
2537
2537
  function xo(e) {
@@ -2678,7 +2678,7 @@ function Es(e) {
2678
2678
  if (t != null) return t;
2679
2679
  const r = Zt(vs, _s, ks, e);
2680
2680
  return t = r.la ? (i, n) => gc(i, n, r) : (i, n) => {
2681
- const s = 0 | i[_];
2681
+ const s = 0 | i[k];
2682
2682
  for (; cc(n) && n.h != 4; ) {
2683
2683
  var a = n.m, c = r[a];
2684
2684
  if (c == null) {
@@ -2722,7 +2722,7 @@ function vc(e, t, r) {
2722
2722
  i = i[c - 1];
2723
2723
  for (const u in i) !isNaN(u) && s(+u, i[u]);
2724
2724
  }
2725
- })(e, 0 | e[_] | (r.T[1] ? 512 : 0), (i, n) => {
2725
+ })(e, 0 | e[k] | (r.T[1] ? 512 : 0), (i, n) => {
2726
2726
  if (n != null) {
2727
2727
  var s = function(a, c) {
2728
2728
  var l = a[c];
@@ -2745,7 +2745,7 @@ function vc(e, t, r) {
2745
2745
  }
2746
2746
  function Tr(e, t) {
2747
2747
  if (Array.isArray(t)) {
2748
- var r = 0 | t[_];
2748
+ var r = 0 | t[k];
2749
2749
  if (4 & r) return t;
2750
2750
  for (var i = 0, n = 0; i < t.length; i++) {
2751
2751
  const s = e(t[i]);
@@ -2761,10 +2761,10 @@ function Nr(e, t, r) {
2761
2761
  return new Ar(e, t, r);
2762
2762
  }
2763
2763
  function be(e, t, r) {
2764
- Z(e, 0 | e[_], t, r);
2764
+ Z(e, 0 | e[k], t, r);
2765
2765
  }
2766
2766
  var ad = Ui(function(e, t, r, i, n) {
2767
- return e.h === 2 && (e = Qr(e, Pt([void 0, void 0], i, !0), n), Ut(i = 0 | t[_]), (n = Et(t, i, r)) instanceof dt ? 2 & n.M ? ((n = n.da()).push(e), Z(t, i, r, n)) : n.Ja(e) : Array.isArray(n) ? (2 & (0 | n[_]) && Z(t, i, r, n = ec(n)), n.push(e)) : Z(t, i, r, [e]), !0);
2767
+ return e.h === 2 && (e = Qr(e, Pt([void 0, void 0], i, !0), n), Ut(i = 0 | t[k]), (n = Et(t, i, r)) instanceof dt ? 2 & n.M ? ((n = n.da()).push(e), Z(t, i, r, n)) : n.Ja(e) : Array.isArray(n) ? (2 & (0 | n[k]) && Z(t, i, r, n = ec(n)), n.push(e)) : Z(t, i, r, [e]), !0);
2768
2768
  }, function(e, t, r, i, n) {
2769
2769
  if (t instanceof dt) t.forEach((s, a) => {
2770
2770
  xi(e, r, Pt([a, s], i, !1), n);
@@ -2811,7 +2811,7 @@ function Tc(e, t, r) {
2811
2811
  t == null || typeof t == "string" || t instanceof yt || (Xt(t) ? Xt(t) && Yn(Oa) : t = void 0), t != null && Bi(e, r, ds(t).buffer);
2812
2812
  }
2813
2813
  function Nc(e, t, r) {
2814
- return (e.h === 5 || e.h === 2) && (t = Er(t, 0 | t[_], r, !1), e.h == 2 ? Di(e, Nn, t) : t.push(Nn(e.g)), !0);
2814
+ return (e.h === 5 || e.h === 2) && (t = Er(t, 0 | t[k], r, !1), e.h == 2 ? Di(e, Nn, t) : t.push(Nn(e.g)), !0);
2815
2815
  }
2816
2816
  var gt = ye(function(e, t, r) {
2817
2817
  if (e.h !== 1) return !1;
@@ -2858,7 +2858,7 @@ var gt = ye(function(e, t, r) {
2858
2858
  }, et()), re = ye(function(e, t, r) {
2859
2859
  return e.h === 0 && (be(t, r, Ot(e.g)), !0);
2860
2860
  }, kc, ys), Wi = Nr(function(e, t, r) {
2861
- return (e.h === 0 || e.h === 2) && (t = Er(t, 0 | t[_], r, !1), e.h == 2 ? Di(e, Ot, t) : t.push(Ot(e.g)), !0);
2861
+ return (e.h === 0 || e.h === 2) && (t = Er(t, 0 | t[k], r, !1), e.h == 2 ? Di(e, Ot, t) : t.push(Ot(e.g)), !0);
2862
2862
  }, function(e, t, r) {
2863
2863
  if ((t = Tr(_r, t)) != null && t.length) {
2864
2864
  r = ms(e, r);
@@ -2872,7 +2872,7 @@ var gt = ye(function(e, t, r) {
2872
2872
  }, Ec, uc), or = ye(function(e, t, r) {
2873
2873
  return e.h === 0 && (be(t, r, (e = fs(e.g)) === !1 ? void 0 : e), !0);
2874
2874
  }, Ec, uc), pe = Nr(function(e, t, r) {
2875
- return e.h === 2 && (e = ws(e), Er(t, 0 | t[_], r, !1).push(e), !0);
2875
+ return e.h === 2 && (e = ws(e), Er(t, 0 | t[k], r, !1).push(e), !0);
2876
2876
  }, function(e, t, r) {
2877
2877
  if ((t = Tr(hr, t)) != null) for (let a = 0; a < t.length; a++) {
2878
2878
  var i = e, n = r, s = t[a];
@@ -2885,15 +2885,15 @@ var gt = ye(function(e, t, r) {
2885
2885
  }, jc, xs), ue = function(e, t, r = ps) {
2886
2886
  return new Ar(e, t, r);
2887
2887
  }(function(e, t, r, i, n) {
2888
- return e.h === 2 && (i = Pt(void 0, i, !0), Er(t, 0 | t[_], r, !0).push(i), Qr(e, i, n), !0);
2888
+ return e.h === 2 && (i = Pt(void 0, i, !0), Er(t, 0 | t[k], r, !0).push(i), Qr(e, i, n), !0);
2889
2889
  }, function(e, t, r, i, n) {
2890
2890
  if (Array.isArray(t)) for (let s = 0; s < t.length; s++) Ac(e, t[s], r, i, n);
2891
2891
  }), U = Ui(function(e, t, r, i, n, s) {
2892
- return e.h === 2 && (tc(t, 0 | t[_], s, r), Qr(e, t = ls(t, i, r), n), !0);
2892
+ return e.h === 2 && (tc(t, 0 | t[k], s, r), Qr(e, t = ls(t, i, r), n), !0);
2893
2893
  }, Ac), Sc = ye(function(e, t, r) {
2894
2894
  return e.h === 2 && (be(t, r, lc(e)), !0);
2895
2895
  }, Tc, fc), ud = Nr(function(e, t, r) {
2896
- return (e.h === 0 || e.h === 2) && (t = Er(t, 0 | t[_], r, !1), e.h == 2 ? Di(e, kt, t) : t.push(kt(e.g)), !0);
2896
+ return (e.h === 0 || e.h === 2) && (t = Er(t, 0 | t[k], r, !1), e.h == 2 ? Di(e, kt, t) : t.push(kt(e.g)), !0);
2897
2897
  }, function(e, t, r) {
2898
2898
  if ((t = Tr(Wa, t)) != null) for (let a = 0; a < t.length; a++) {
2899
2899
  var i = e, n = r, s = t[a];
@@ -3030,7 +3030,7 @@ var Cc = [0, re, Le, X, -1, Wi, Le, -1], wd = class extends x {
3030
3030
  super(e);
3031
3031
  }
3032
3032
  }, Ic = [0, X, G, X, Le, -1, Nr(function(e, t, r) {
3033
- return (e.h === 0 || e.h === 2) && (t = Er(t, 0 | t[_], r, !1), e.h == 2 ? Di(e, td, t) : t.push(Ot(e.g)), !0);
3033
+ return (e.h === 0 || e.h === 2) && (t = Er(t, 0 | t[k], r, !1), e.h == 2 ? Di(e, td, t) : t.push(Ot(e.g)), !0);
3034
3034
  }, function(e, t, r) {
3035
3035
  if ((t = Tr(_r, t)) != null && t.length) {
3036
3036
  r = ms(e, r);
@@ -3068,7 +3068,7 @@ var xe = class extends x {
3068
3068
  function Oe(e, t) {
3069
3069
  gi(e, 1, xe, t);
3070
3070
  }
3071
- function Y(e, t) {
3071
+ function q(e, t) {
3072
3072
  Pi(e, 10, t);
3073
3073
  }
3074
3074
  function D(e, t) {
@@ -3305,7 +3305,7 @@ var sl = class extends x {
3305
3305
  }
3306
3306
  g() {
3307
3307
  var e = this.u;
3308
- const t = 0 | e[_], r = 2 & t;
3308
+ const t = 0 | e[k], r = 2 & t;
3309
3309
  return e = function(i, n, s) {
3310
3310
  var a = Lo;
3311
3311
  const c = 2 & n;
@@ -3316,12 +3316,12 @@ var sl = class extends x {
3316
3316
  } else if (s.constructor === dt) {
3317
3317
  if (!(2 & s.M) || c) return s;
3318
3318
  s = s.da();
3319
- } else Array.isArray(s) ? l = !!(2 & (0 | s[_])) : s = [];
3319
+ } else Array.isArray(s) ? l = !!(2 & (0 | s[k])) : s = [];
3320
3320
  if (c) {
3321
3321
  if (!s.length) return go();
3322
3322
  l || (l = !0, vr(s));
3323
3323
  } else l && (l = !1, s = ec(s));
3324
- return l || (64 & (0 | s[_]) ? s[_] &= -33 : 32 & n && Ai(s, 32)), Z(i, n, 2, a = new dt(s, a, Wu, void 0)), a;
3324
+ return l || (64 & (0 | s[k]) ? s[k] &= -33 : 32 & n && Ai(s, 32)), Z(i, n, 2, a = new dt(s, a, Wu, void 0)), a;
3325
3325
  }(e, t, Et(e, t, 2)), !r && Lo && (e.pa = !0), e;
3326
3326
  }
3327
3327
  });
@@ -3416,7 +3416,7 @@ async function Do(e) {
3416
3416
  function fl(e) {
3417
3417
  return e.videoWidth !== void 0 ? [e.videoWidth, e.videoHeight] : e.naturalWidth !== void 0 ? [e.naturalWidth, e.naturalHeight] : e.displayWidth !== void 0 ? [e.displayWidth, e.displayHeight] : [e.width, e.height];
3418
3418
  }
3419
- function v(e, t, r) {
3419
+ function _(e, t, r) {
3420
3420
  e.m || console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"), r(t = e.i.stringToNewUTF8(t)), e.i._free(t);
3421
3421
  }
3422
3422
  function Oo(e, t, r) {
@@ -3479,7 +3479,7 @@ function p(e, t) {
3479
3479
  e.B = Math.max(e.B, t);
3480
3480
  }
3481
3481
  function Ki(e, t) {
3482
- e.A = new xe(), De(e.A, "PassThroughCalculator"), H(e.A, "free_memory"), R(e.A, "free_memory_unused_out"), Y(t, "free_memory"), Oe(t, e.A);
3482
+ e.A = new xe(), De(e.A, "PassThroughCalculator"), H(e.A, "free_memory"), R(e.A, "free_memory_unused_out"), q(t, "free_memory"), Oe(t, e.A);
3483
3483
  }
3484
3484
  function mr(e, t) {
3485
3485
  H(e.A, t), R(e.A, t + "_unused_out");
@@ -3880,8 +3880,8 @@ const zd = /* @__PURE__ */ function(e) {
3880
3880
  this.i.HEAPU8.set(e, i), t ? this.i._changeBinaryGraph(r, i) : this.i._changeTextGraph(r, i), this.i._free(i);
3881
3881
  }
3882
3882
  configureAudio(e, t, r, i, n) {
3883
- this.i._configureAudio || console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'), v(this, i || "input_audio", (s) => {
3884
- v(this, n = n || "audio_header", (a) => {
3883
+ this.i._configureAudio || console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'), _(this, i || "input_audio", (s) => {
3884
+ _(this, n = n || "audio_header", (a) => {
3885
3885
  this.i._configureAudio(s, a, e, t ?? 0, r);
3886
3886
  });
3887
3887
  });
@@ -3898,7 +3898,7 @@ const zd = /* @__PURE__ */ function(e) {
3898
3898
  ca(e) {
3899
3899
  ot(this, "__graph_config__", (t) => {
3900
3900
  e(t);
3901
- }), v(this, "__graph_config__", (t) => {
3901
+ }), _(this, "__graph_config__", (t) => {
3902
3902
  this.i._getGraphConfig(t, void 0);
3903
3903
  }), delete this.i.simpleListeners.__graph_config__;
3904
3904
  }
@@ -3913,50 +3913,50 @@ const zd = /* @__PURE__ */ function(e) {
3913
3913
  }
3914
3914
  addAudioToStreamWithShape(e, t, r, i, n) {
3915
3915
  const s = 4 * e.length;
3916
- this.h !== s && (this.g && this.i._free(this.g), this.g = this.i._malloc(s), this.h = s), this.i.HEAPF32.set(e, this.g / 4), v(this, i, (a) => {
3916
+ this.h !== s && (this.g && this.i._free(this.g), this.g = this.i._malloc(s), this.h = s), this.i.HEAPF32.set(e, this.g / 4), _(this, i, (a) => {
3917
3917
  this.i._addAudioToInputStream(this.g, t, r, a, n);
3918
3918
  });
3919
3919
  }
3920
3920
  addGpuBufferToStream(e, t, r) {
3921
- v(this, t, (i) => {
3921
+ _(this, t, (i) => {
3922
3922
  const [n, s] = Oo(this, e, i);
3923
3923
  this.i._addBoundTextureToStream(i, n, s, r);
3924
3924
  });
3925
3925
  }
3926
3926
  addBoolToStream(e, t, r) {
3927
- v(this, t, (i) => {
3927
+ _(this, t, (i) => {
3928
3928
  this.i._addBoolToInputStream(e, i, r);
3929
3929
  });
3930
3930
  }
3931
3931
  addDoubleToStream(e, t, r) {
3932
- v(this, t, (i) => {
3932
+ _(this, t, (i) => {
3933
3933
  this.i._addDoubleToInputStream(e, i, r);
3934
3934
  });
3935
3935
  }
3936
3936
  addFloatToStream(e, t, r) {
3937
- v(this, t, (i) => {
3937
+ _(this, t, (i) => {
3938
3938
  this.i._addFloatToInputStream(e, i, r);
3939
3939
  });
3940
3940
  }
3941
3941
  addIntToStream(e, t, r) {
3942
- v(this, t, (i) => {
3942
+ _(this, t, (i) => {
3943
3943
  this.i._addIntToInputStream(e, i, r);
3944
3944
  });
3945
3945
  }
3946
3946
  addUintToStream(e, t, r) {
3947
- v(this, t, (i) => {
3947
+ _(this, t, (i) => {
3948
3948
  this.i._addUintToInputStream(e, i, r);
3949
3949
  });
3950
3950
  }
3951
3951
  addStringToStream(e, t, r) {
3952
- v(this, t, (i) => {
3953
- v(this, e, (n) => {
3952
+ _(this, t, (i) => {
3953
+ _(this, e, (n) => {
3954
3954
  this.i._addStringToInputStream(n, i, r);
3955
3955
  });
3956
3956
  });
3957
3957
  }
3958
3958
  addStringRecordToStream(e, t, r) {
3959
- v(this, t, (i) => {
3959
+ _(this, t, (i) => {
3960
3960
  Bo(this, Object.keys(e), (n) => {
3961
3961
  Bo(this, Object.values(e), (s) => {
3962
3962
  this.i._addFlatHashMapToInputStream(n, s, Object.keys(e).length, i, r);
@@ -3965,20 +3965,20 @@ const zd = /* @__PURE__ */ function(e) {
3965
3965
  });
3966
3966
  }
3967
3967
  addProtoToStream(e, t, r, i) {
3968
- v(this, r, (n) => {
3969
- v(this, t, (s) => {
3968
+ _(this, r, (n) => {
3969
+ _(this, t, (s) => {
3970
3970
  const a = this.i._malloc(e.length);
3971
3971
  this.i.HEAPU8.set(e, a), this.i._addProtoToInputStream(a, e.length, s, n, i), this.i._free(a);
3972
3972
  });
3973
3973
  });
3974
3974
  }
3975
3975
  addEmptyPacketToStream(e, t) {
3976
- v(this, e, (r) => {
3976
+ _(this, e, (r) => {
3977
3977
  this.i._addEmptyPacketToInputStream(r, t);
3978
3978
  });
3979
3979
  }
3980
3980
  addBoolVectorToStream(e, t, r) {
3981
- v(this, t, (i) => {
3981
+ _(this, t, (i) => {
3982
3982
  const n = this.i._allocateBoolVector(e.length);
3983
3983
  if (!n) throw Error("Unable to allocate new bool vector on heap.");
3984
3984
  for (const s of e) this.i._addBoolVectorEntry(n, s);
@@ -3986,7 +3986,7 @@ const zd = /* @__PURE__ */ function(e) {
3986
3986
  });
3987
3987
  }
3988
3988
  addDoubleVectorToStream(e, t, r) {
3989
- v(this, t, (i) => {
3989
+ _(this, t, (i) => {
3990
3990
  const n = this.i._allocateDoubleVector(e.length);
3991
3991
  if (!n) throw Error("Unable to allocate new double vector on heap.");
3992
3992
  for (const s of e) this.i._addDoubleVectorEntry(n, s);
@@ -3994,7 +3994,7 @@ const zd = /* @__PURE__ */ function(e) {
3994
3994
  });
3995
3995
  }
3996
3996
  addFloatVectorToStream(e, t, r) {
3997
- v(this, t, (i) => {
3997
+ _(this, t, (i) => {
3998
3998
  const n = this.i._allocateFloatVector(e.length);
3999
3999
  if (!n) throw Error("Unable to allocate new float vector on heap.");
4000
4000
  for (const s of e) this.i._addFloatVectorEntry(n, s);
@@ -4002,7 +4002,7 @@ const zd = /* @__PURE__ */ function(e) {
4002
4002
  });
4003
4003
  }
4004
4004
  addIntVectorToStream(e, t, r) {
4005
- v(this, t, (i) => {
4005
+ _(this, t, (i) => {
4006
4006
  const n = this.i._allocateIntVector(e.length);
4007
4007
  if (!n) throw Error("Unable to allocate new int vector on heap.");
4008
4008
  for (const s of e) this.i._addIntVectorEntry(n, s);
@@ -4010,7 +4010,7 @@ const zd = /* @__PURE__ */ function(e) {
4010
4010
  });
4011
4011
  }
4012
4012
  addUintVectorToStream(e, t, r) {
4013
- v(this, t, (i) => {
4013
+ _(this, t, (i) => {
4014
4014
  const n = this.i._allocateUintVector(e.length);
4015
4015
  if (!n) throw Error("Unable to allocate new unsigned int vector on heap.");
4016
4016
  for (const s of e) this.i._addUintVectorEntry(n, s);
@@ -4018,57 +4018,57 @@ const zd = /* @__PURE__ */ function(e) {
4018
4018
  });
4019
4019
  }
4020
4020
  addStringVectorToStream(e, t, r) {
4021
- v(this, t, (i) => {
4021
+ _(this, t, (i) => {
4022
4022
  const n = this.i._allocateStringVector(e.length);
4023
4023
  if (!n) throw Error("Unable to allocate new string vector on heap.");
4024
- for (const s of e) v(this, s, (a) => {
4024
+ for (const s of e) _(this, s, (a) => {
4025
4025
  this.i._addStringVectorEntry(n, a);
4026
4026
  });
4027
4027
  this.i._addStringVectorToInputStream(n, i, r);
4028
4028
  });
4029
4029
  }
4030
4030
  addBoolToInputSidePacket(e, t) {
4031
- v(this, t, (r) => {
4031
+ _(this, t, (r) => {
4032
4032
  this.i._addBoolToInputSidePacket(e, r);
4033
4033
  });
4034
4034
  }
4035
4035
  addDoubleToInputSidePacket(e, t) {
4036
- v(this, t, (r) => {
4036
+ _(this, t, (r) => {
4037
4037
  this.i._addDoubleToInputSidePacket(e, r);
4038
4038
  });
4039
4039
  }
4040
4040
  addFloatToInputSidePacket(e, t) {
4041
- v(this, t, (r) => {
4041
+ _(this, t, (r) => {
4042
4042
  this.i._addFloatToInputSidePacket(e, r);
4043
4043
  });
4044
4044
  }
4045
4045
  addIntToInputSidePacket(e, t) {
4046
- v(this, t, (r) => {
4046
+ _(this, t, (r) => {
4047
4047
  this.i._addIntToInputSidePacket(e, r);
4048
4048
  });
4049
4049
  }
4050
4050
  addUintToInputSidePacket(e, t) {
4051
- v(this, t, (r) => {
4051
+ _(this, t, (r) => {
4052
4052
  this.i._addUintToInputSidePacket(e, r);
4053
4053
  });
4054
4054
  }
4055
4055
  addStringToInputSidePacket(e, t) {
4056
- v(this, t, (r) => {
4057
- v(this, e, (i) => {
4056
+ _(this, t, (r) => {
4057
+ _(this, e, (i) => {
4058
4058
  this.i._addStringToInputSidePacket(i, r);
4059
4059
  });
4060
4060
  });
4061
4061
  }
4062
4062
  addProtoToInputSidePacket(e, t, r) {
4063
- v(this, r, (i) => {
4064
- v(this, t, (n) => {
4063
+ _(this, r, (i) => {
4064
+ _(this, t, (n) => {
4065
4065
  const s = this.i._malloc(e.length);
4066
4066
  this.i.HEAPU8.set(e, s), this.i._addProtoToInputSidePacket(s, e.length, n, i), this.i._free(s);
4067
4067
  });
4068
4068
  });
4069
4069
  }
4070
4070
  addBoolVectorToInputSidePacket(e, t) {
4071
- v(this, t, (r) => {
4071
+ _(this, t, (r) => {
4072
4072
  const i = this.i._allocateBoolVector(e.length);
4073
4073
  if (!i) throw Error("Unable to allocate new bool vector on heap.");
4074
4074
  for (const n of e) this.i._addBoolVectorEntry(i, n);
@@ -4076,7 +4076,7 @@ const zd = /* @__PURE__ */ function(e) {
4076
4076
  });
4077
4077
  }
4078
4078
  addDoubleVectorToInputSidePacket(e, t) {
4079
- v(this, t, (r) => {
4079
+ _(this, t, (r) => {
4080
4080
  const i = this.i._allocateDoubleVector(e.length);
4081
4081
  if (!i) throw Error("Unable to allocate new double vector on heap.");
4082
4082
  for (const n of e) this.i._addDoubleVectorEntry(i, n);
@@ -4084,7 +4084,7 @@ const zd = /* @__PURE__ */ function(e) {
4084
4084
  });
4085
4085
  }
4086
4086
  addFloatVectorToInputSidePacket(e, t) {
4087
- v(this, t, (r) => {
4087
+ _(this, t, (r) => {
4088
4088
  const i = this.i._allocateFloatVector(e.length);
4089
4089
  if (!i) throw Error("Unable to allocate new float vector on heap.");
4090
4090
  for (const n of e) this.i._addFloatVectorEntry(i, n);
@@ -4092,7 +4092,7 @@ const zd = /* @__PURE__ */ function(e) {
4092
4092
  });
4093
4093
  }
4094
4094
  addIntVectorToInputSidePacket(e, t) {
4095
- v(this, t, (r) => {
4095
+ _(this, t, (r) => {
4096
4096
  const i = this.i._allocateIntVector(e.length);
4097
4097
  if (!i) throw Error("Unable to allocate new int vector on heap.");
4098
4098
  for (const n of e) this.i._addIntVectorEntry(i, n);
@@ -4100,7 +4100,7 @@ const zd = /* @__PURE__ */ function(e) {
4100
4100
  });
4101
4101
  }
4102
4102
  addUintVectorToInputSidePacket(e, t) {
4103
- v(this, t, (r) => {
4103
+ _(this, t, (r) => {
4104
4104
  const i = this.i._allocateUintVector(e.length);
4105
4105
  if (!i) throw Error("Unable to allocate new unsigned int vector on heap.");
4106
4106
  for (const n of e) this.i._addUintVectorEntry(i, n);
@@ -4108,89 +4108,89 @@ const zd = /* @__PURE__ */ function(e) {
4108
4108
  });
4109
4109
  }
4110
4110
  addStringVectorToInputSidePacket(e, t) {
4111
- v(this, t, (r) => {
4111
+ _(this, t, (r) => {
4112
4112
  const i = this.i._allocateStringVector(e.length);
4113
4113
  if (!i) throw Error("Unable to allocate new string vector on heap.");
4114
- for (const n of e) v(this, n, (s) => {
4114
+ for (const n of e) _(this, n, (s) => {
4115
4115
  this.i._addStringVectorEntry(i, s);
4116
4116
  });
4117
4117
  this.i._addStringVectorToInputSidePacket(i, r);
4118
4118
  });
4119
4119
  }
4120
4120
  attachBoolListener(e, t) {
4121
- ot(this, e, t), v(this, e, (r) => {
4121
+ ot(this, e, t), _(this, e, (r) => {
4122
4122
  this.i._attachBoolListener(r);
4123
4123
  });
4124
4124
  }
4125
4125
  attachBoolVectorListener(e, t) {
4126
- It(this, e, t), v(this, e, (r) => {
4126
+ It(this, e, t), _(this, e, (r) => {
4127
4127
  this.i._attachBoolVectorListener(r);
4128
4128
  });
4129
4129
  }
4130
4130
  attachIntListener(e, t) {
4131
- ot(this, e, t), v(this, e, (r) => {
4131
+ ot(this, e, t), _(this, e, (r) => {
4132
4132
  this.i._attachIntListener(r);
4133
4133
  });
4134
4134
  }
4135
4135
  attachIntVectorListener(e, t) {
4136
- It(this, e, t), v(this, e, (r) => {
4136
+ It(this, e, t), _(this, e, (r) => {
4137
4137
  this.i._attachIntVectorListener(r);
4138
4138
  });
4139
4139
  }
4140
4140
  attachUintListener(e, t) {
4141
- ot(this, e, t), v(this, e, (r) => {
4141
+ ot(this, e, t), _(this, e, (r) => {
4142
4142
  this.i._attachUintListener(r);
4143
4143
  });
4144
4144
  }
4145
4145
  attachUintVectorListener(e, t) {
4146
- It(this, e, t), v(this, e, (r) => {
4146
+ It(this, e, t), _(this, e, (r) => {
4147
4147
  this.i._attachUintVectorListener(r);
4148
4148
  });
4149
4149
  }
4150
4150
  attachDoubleListener(e, t) {
4151
- ot(this, e, t), v(this, e, (r) => {
4151
+ ot(this, e, t), _(this, e, (r) => {
4152
4152
  this.i._attachDoubleListener(r);
4153
4153
  });
4154
4154
  }
4155
4155
  attachDoubleVectorListener(e, t) {
4156
- It(this, e, t), v(this, e, (r) => {
4156
+ It(this, e, t), _(this, e, (r) => {
4157
4157
  this.i._attachDoubleVectorListener(r);
4158
4158
  });
4159
4159
  }
4160
4160
  attachFloatListener(e, t) {
4161
- ot(this, e, t), v(this, e, (r) => {
4161
+ ot(this, e, t), _(this, e, (r) => {
4162
4162
  this.i._attachFloatListener(r);
4163
4163
  });
4164
4164
  }
4165
4165
  attachFloatVectorListener(e, t) {
4166
- It(this, e, t), v(this, e, (r) => {
4166
+ It(this, e, t), _(this, e, (r) => {
4167
4167
  this.i._attachFloatVectorListener(r);
4168
4168
  });
4169
4169
  }
4170
4170
  attachStringListener(e, t) {
4171
- ot(this, e, t), v(this, e, (r) => {
4171
+ ot(this, e, t), _(this, e, (r) => {
4172
4172
  this.i._attachStringListener(r);
4173
4173
  });
4174
4174
  }
4175
4175
  attachStringVectorListener(e, t) {
4176
- It(this, e, t), v(this, e, (r) => {
4176
+ It(this, e, t), _(this, e, (r) => {
4177
4177
  this.i._attachStringVectorListener(r);
4178
4178
  });
4179
4179
  }
4180
4180
  attachProtoListener(e, t, r) {
4181
- ot(this, e, t), v(this, e, (i) => {
4181
+ ot(this, e, t), _(this, e, (i) => {
4182
4182
  this.i._attachProtoListener(i, r || !1);
4183
4183
  });
4184
4184
  }
4185
4185
  attachProtoVectorListener(e, t, r) {
4186
- It(this, e, t), v(this, e, (i) => {
4186
+ It(this, e, t), _(this, e, (i) => {
4187
4187
  this.i._attachProtoVectorListener(i, r || !1);
4188
4188
  });
4189
4189
  }
4190
4190
  attachAudioListener(e, t, r) {
4191
4191
  this.i._attachAudioListener || console.warn('Attempting to use attachAudioListener without support for output audio. Is build dep ":gl_graph_runner_audio_out" missing?'), ot(this, e, (i, n) => {
4192
4192
  i = new Float32Array(i.buffer, i.byteOffset, i.length / 4), t(i, n);
4193
- }), v(this, e, (i) => {
4193
+ }), _(this, e, (i) => {
4194
4194
  this.i._attachAudioListener(i, r || !1);
4195
4195
  });
4196
4196
  }
@@ -4205,18 +4205,18 @@ const zd = /* @__PURE__ */ function(e) {
4205
4205
  return this.i;
4206
4206
  }
4207
4207
  oa(e, t, r) {
4208
- v(this, t, (i) => {
4208
+ _(this, t, (i) => {
4209
4209
  const [n, s] = Oo(this, e, i);
4210
4210
  this.ea._addBoundTextureAsImageToStream(i, n, s, r);
4211
4211
  });
4212
4212
  }
4213
4213
  V(e, t) {
4214
- ot(this, e, t), v(this, e, (r) => {
4214
+ ot(this, e, t), _(this, e, (r) => {
4215
4215
  this.ea._attachImageListener(r);
4216
4216
  });
4217
4217
  }
4218
4218
  ba(e, t) {
4219
- It(this, e, t), v(this, e, (r) => {
4219
+ It(this, e, t), _(this, e, (r) => {
4220
4220
  this.ea._attachImageVectorListener(r);
4221
4221
  });
4222
4222
  }
@@ -4299,7 +4299,7 @@ var Ue = class extends Te {
4299
4299
  }
4300
4300
  m() {
4301
4301
  var e = new Ne();
4302
- Y(e, "image_in"), Y(e, "norm_rect_in"), D(e, "detections");
4302
+ q(e, "image_in"), q(e, "norm_rect_in"), D(e, "detections");
4303
4303
  const t = new Fe();
4304
4304
  Ze(t, Td, this.h);
4305
4305
  const r = new xe();
@@ -4343,7 +4343,7 @@ var Q = class extends Te {
4343
4343
  }
4344
4344
  m() {
4345
4345
  var e = new Ne();
4346
- Y(e, "image_in"), Y(e, "norm_rect"), D(e, "face_landmarks");
4346
+ q(e, "image_in"), q(e, "norm_rect"), D(e, "face_landmarks");
4347
4347
  const t = new Fe();
4348
4348
  Ze(t, Sd, this.h);
4349
4349
  const r = new xe();
@@ -4391,7 +4391,7 @@ var at = class extends Te {
4391
4391
  }
4392
4392
  m() {
4393
4393
  var e = new Ne();
4394
- Y(e, "image_in"), Y(e, "norm_rect"), D(e, "stylized_image");
4394
+ q(e, "image_in"), q(e, "norm_rect"), D(e, "stylized_image");
4395
4395
  const t = new Fe();
4396
4396
  Ze(t, Cd, this.j);
4397
4397
  const r = new xe();
@@ -4463,7 +4463,7 @@ var Ce = class extends Te {
4463
4463
  }
4464
4464
  m() {
4465
4465
  var e = new Ne();
4466
- Y(e, "image_in"), Y(e, "norm_rect"), D(e, "hand_gestures"), D(e, "hand_landmarks"), D(e, "world_hand_landmarks"), D(e, "handedness");
4466
+ q(e, "image_in"), q(e, "norm_rect"), D(e, "hand_gestures"), D(e, "hand_landmarks"), D(e, "world_hand_landmarks"), D(e, "handedness");
4467
4467
  const t = new Fe();
4468
4468
  Ze(t, Rd, this.j);
4469
4469
  const r = new xe();
@@ -4529,7 +4529,7 @@ var Ie = class extends Te {
4529
4529
  }
4530
4530
  m() {
4531
4531
  var e = new Ne();
4532
- Y(e, "image_in"), Y(e, "norm_rect"), D(e, "hand_landmarks"), D(e, "world_hand_landmarks"), D(e, "handedness");
4532
+ q(e, "image_in"), q(e, "norm_rect"), D(e, "hand_landmarks"), D(e, "world_hand_landmarks"), D(e, "handedness");
4533
4533
  const t = new Fe();
4534
4534
  Ze(t, Md, this.h);
4535
4535
  const r = new xe();
@@ -4603,7 +4603,7 @@ var K = class extends Te {
4603
4603
  }
4604
4604
  m() {
4605
4605
  var e = new Ne();
4606
- Y(e, "input_frames_image"), D(e, "pose_landmarks"), D(e, "pose_world_landmarks"), D(e, "face_landmarks"), D(e, "left_hand_landmarks"), D(e, "left_hand_world_landmarks"), D(e, "right_hand_landmarks"), D(e, "right_hand_world_landmarks");
4606
+ q(e, "input_frames_image"), D(e, "pose_landmarks"), D(e, "pose_world_landmarks"), D(e, "face_landmarks"), D(e, "left_hand_landmarks"), D(e, "left_hand_world_landmarks"), D(e, "right_hand_landmarks"), D(e, "right_hand_world_landmarks");
4607
4607
  const t = new Fe(), r = new _o();
4608
4608
  An(r, 1, kr("type.googleapis.com/mediapipe.tasks.vision.holistic_landmarker.proto.HolisticLandmarkerGraphOptions"), ""), function(n, s) {
4609
4609
  if (s != null) if (Array.isArray(s)) $(n, 2, Mi(s, ns, void 0, void 0, !1));
@@ -4684,7 +4684,7 @@ var Ge = class extends Te {
4684
4684
  }
4685
4685
  m() {
4686
4686
  var e = new Ne();
4687
- Y(e, "input_image"), Y(e, "norm_rect"), D(e, "classifications");
4687
+ q(e, "input_image"), q(e, "norm_rect"), D(e, "classifications");
4688
4688
  const t = new Fe();
4689
4689
  Ze(t, Fd, this.h);
4690
4690
  const r = new xe();
@@ -4730,7 +4730,7 @@ var Re = class extends Te {
4730
4730
  }
4731
4731
  m() {
4732
4732
  var e = new Ne();
4733
- Y(e, "image_in"), Y(e, "norm_rect"), D(e, "embeddings_out");
4733
+ q(e, "image_in"), q(e, "norm_rect"), D(e, "embeddings_out");
4734
4734
  const t = new Fe();
4735
4735
  Ze(t, Pd, this.h);
4736
4736
  const r = new xe();
@@ -4826,7 +4826,7 @@ var je = class extends Te {
4826
4826
  }
4827
4827
  m() {
4828
4828
  var e = new Ne();
4829
- Y(e, "image_in"), Y(e, "norm_rect");
4829
+ q(e, "image_in"), q(e, "norm_rect");
4830
4830
  const t = new Fe();
4831
4831
  Ze(t, al, this.h);
4832
4832
  const r = new xe();
@@ -4931,7 +4931,7 @@ var ct = class extends Te {
4931
4931
  }
4932
4932
  m() {
4933
4933
  var e = new Ne();
4934
- Y(e, "image_in"), Y(e, "roi_in"), Y(e, "norm_rect_in");
4934
+ q(e, "image_in"), q(e, "roi_in"), q(e, "norm_rect_in");
4935
4935
  const t = new Fe();
4936
4936
  Ze(t, al, this.h);
4937
4937
  const r = new xe();
@@ -4978,7 +4978,7 @@ var Ve = class extends Te {
4978
4978
  }
4979
4979
  m() {
4980
4980
  var e = new Ne();
4981
- Y(e, "input_frame_gpu"), Y(e, "norm_rect"), D(e, "detections");
4981
+ q(e, "input_frame_gpu"), q(e, "norm_rect"), D(e, "detections");
4982
4982
  const t = new Fe();
4983
4983
  Ze(t, Od, this.h);
4984
4984
  const r = new xe();
@@ -5044,7 +5044,7 @@ var Me = class extends Te {
5044
5044
  }
5045
5045
  m() {
5046
5046
  var e = new Ne();
5047
- Y(e, "image_in"), Y(e, "norm_rect"), D(e, "normalized_landmarks"), D(e, "world_landmarks"), D(e, "segmentation_masks");
5047
+ q(e, "image_in"), q(e, "norm_rect"), D(e, "normalized_landmarks"), D(e, "world_landmarks"), D(e, "segmentation_masks");
5048
5048
  const t = new Fe();
5049
5049
  Ze(t, Bd, this.h);
5050
5050
  const r = new xe();
@@ -5088,14 +5088,14 @@ const ai = "https://storage.googleapis.com/mediapipe-models/face_landmarker/face
5088
5088
  const f = await fetch(ai), w = f.headers.get("content-length"), m = w ? parseInt(w, 10) : 0;
5089
5089
  if (!f.body) throw new Error("No response body");
5090
5090
  const b = f.body.getReader();
5091
- let k = 0;
5091
+ let v = 0;
5092
5092
  const g = [];
5093
5093
  for (; ; ) {
5094
- const { done: S, value: T } = await b.read();
5094
+ const { done: S, value: A } = await b.read();
5095
5095
  if (S) break;
5096
- if (g.push(T), k += T.length, m) {
5097
- const A = Math.round(k / m * 100);
5098
- a(A), n(`Downloading model... ${A}%`);
5096
+ if (g.push(A), v += A.length, m) {
5097
+ const T = Math.round(v / m * 100);
5098
+ a(T), n(`Downloading model... ${T}%`);
5099
5099
  }
5100
5100
  }
5101
5101
  return "caches" in window && await (await caches.open("mediapipe-models-v1")).put(
@@ -5199,11 +5199,11 @@ const ai = "https://storage.googleapis.com/mediapipe-models/face_landmarker/face
5199
5199
  return;
5200
5200
  const u = a[33], d = a[263], h = a[1];
5201
5201
  if (!u || !d || !h) return;
5202
- const f = (u.x + d.x) * 0.5, w = (u.y + d.y) * 0.5, m = f - c.x, b = w - c.y, k = Math.sqrt(m * m + b * b), g = Math.abs(h.y - c.noseY) * 100, S = Math.abs(h.x - c.noseX) * 100, T = Math.max(
5202
+ const f = (u.x + d.x) * 0.5, w = (u.y + d.y) * 0.5, m = f - c.x, b = w - c.y, v = Math.sqrt(m * m + b * b), g = Math.abs(h.y - c.noseY) * 100, S = Math.abs(h.x - c.noseX) * 100, A = Math.max(
5203
5203
  0,
5204
- 100 - (k * 200 + g + S)
5205
- ), A = T < Xd, z = performance.now();
5206
- return z - n.current > 100 && (t(T), i(A), n.current = z), { engagement: T, isLookingAway: A };
5204
+ 100 - (v * 200 + g + S)
5205
+ ), T = A < Xd, z = performance.now();
5206
+ return z - n.current > 100 && (t(A), i(T), n.current = z), { engagement: A, isLookingAway: T };
5207
5207
  },
5208
5208
  []
5209
5209
  );
@@ -5238,16 +5238,16 @@ const ai = "https://storage.googleapis.com/mediapipe-models/face_landmarker/face
5238
5238
  const f = l[33], w = l[263], m = c[33], b = c[263];
5239
5239
  if (!f || !w || !m || !b)
5240
5240
  return 0;
5241
- const k = n(f, w), g = n(
5241
+ const v = n(f, w), g = n(
5242
5242
  m,
5243
5243
  b
5244
5244
  );
5245
- if (k === 0 || g === 0) return 0;
5246
- for (const T of u) {
5247
- const A = l[T], z = c[T];
5248
- if (A && z) {
5249
- const C = f.x + (z.x - m.x) * k / g, V = f.y + (z.y - m.y) * k / g;
5250
- d += n(A, {
5245
+ if (v === 0 || g === 0) return 0;
5246
+ for (const A of u) {
5247
+ const T = l[A], z = c[A];
5248
+ if (T && z) {
5249
+ const C = f.x + (z.x - m.x) * v / g, V = f.y + (z.y - m.y) * v / g;
5250
+ d += n(T, {
5251
5251
  x: C,
5252
5252
  y: V
5253
5253
  }), h++;
@@ -5589,20 +5589,20 @@ const ir = new rh(), ih = (e, t, r, i) => {
5589
5589
  }
5590
5590
  }, []), { animationFrameRef: n };
5591
5591
  }, nh = (e, t, r, i, n, s, a, c, l, u, d, h, f, w, m) => {
5592
- const b = M(null), k = N(() => {
5593
- var A;
5594
- const g = e.current, S = t.current, T = r.current;
5595
- if (!g || g.readyState < 2 || !T || !S) {
5596
- b.current = requestAnimationFrame(k);
5592
+ const b = M(null), v = N(() => {
5593
+ var T;
5594
+ const g = e.current, S = t.current, A = r.current;
5595
+ if (!g || g.readyState < 2 || !A || !S) {
5596
+ b.current = requestAnimationFrame(v);
5597
5597
  return;
5598
5598
  }
5599
5599
  i();
5600
5600
  try {
5601
- const z = performance.now(), C = T.detectForVideo(
5601
+ const z = performance.now(), C = A.detectForVideo(
5602
5602
  g,
5603
5603
  z
5604
5604
  );
5605
- if (((A = C.faceLandmarks) == null ? void 0 : A.length) > 0) {
5605
+ if (((T = C.faceLandmarks) == null ? void 0 : T.length) > 0) {
5606
5606
  m(!1);
5607
5607
  const V = n(
5608
5608
  C,
@@ -5624,7 +5624,7 @@ const ir = new rh(), ih = (e, t, r, i) => {
5624
5624
  } catch (z) {
5625
5625
  console.error("Face detection error:", z);
5626
5626
  }
5627
- b.current = requestAnimationFrame(k);
5627
+ b.current = requestAnimationFrame(v);
5628
5628
  }, [
5629
5629
  e,
5630
5630
  t,
@@ -5642,7 +5642,7 @@ const ir = new rh(), ih = (e, t, r, i) => {
5642
5642
  w,
5643
5643
  m
5644
5644
  ]);
5645
- return { renderLoop: k, animationFrameRef: b };
5645
+ return { renderLoop: v, animationFrameRef: b };
5646
5646
  }, sh = (e, t, r, i) => {
5647
5647
  const {
5648
5648
  referenceSet: n,
@@ -5660,10 +5660,10 @@ const ir = new rh(), ih = (e, t, r, i) => {
5660
5660
  w
5661
5661
  );
5662
5662
  if ((f = m.faceLandmarks) != null && f[0]) {
5663
- const b = m.faceLandmarks[0], k = b[33], g = b[263], S = b[1];
5664
- k && g && S && (c.current = {
5665
- x: (k.x + g.x) * 0.5,
5666
- y: (k.y + g.y) * 0.5,
5663
+ const b = m.faceLandmarks[0], v = b[33], g = b[263], S = b[1];
5664
+ v && g && S && (c.current = {
5665
+ x: (v.x + g.x) * 0.5,
5666
+ y: (v.y + g.y) * 0.5,
5667
5667
  noseX: S.x,
5668
5668
  noseY: S.y
5669
5669
  }, a(!0, c.current), r("Reference set. Gaze tracking active."), console.log("Reference set. Gaze tracking active.", c.current));
@@ -5694,14 +5694,14 @@ const ir = new rh(), ih = (e, t, r, i) => {
5694
5694
  var Js;
5695
5695
  const { authToken: s } = ba(), a = s ? tu(s) : null, c = Na(), { borderRadius: l } = yr(), u = l ?? 18, { proctoring: d } = Wn(), h = !!(d != null && d.gazeAnalysisEnabled), [f, w] = j(!1), [m, b] = j(
5696
5696
  (d == null ? void 0 : d.showLandmarks) ?? !1
5697
- ), [k, g] = j(
5698
- (d == null ? void 0 : d.showEngagementBar) ?? !0
5699
- ), [S, T] = j(
5697
+ ), [v, g] = j(
5698
+ i && ((d == null ? void 0 : d.showEngagementBar) ?? !0)
5699
+ ), [S, A] = j(
5700
5700
  h
5701
- ), A = M(null), z = M(null), C = M(null), V = N(
5701
+ ), T = M(null), z = M(null), C = M(null), V = N(
5702
5702
  async (nt) => {
5703
5703
  var ti;
5704
- const zt = A.current, mt = C.current;
5704
+ const zt = T.current, mt = C.current;
5705
5705
  if (!zt || !mt) return;
5706
5706
  const st = mt.getContext("2d");
5707
5707
  if (!st) return;
@@ -5725,7 +5725,7 @@ const ir = new rh(), ih = (e, t, r, i) => {
5725
5725
  },
5726
5726
  [c, t]
5727
5727
  ), {
5728
- faceLandmarkerRef: q,
5728
+ faceLandmarkerRef: Y,
5729
5729
  isModelLoaded: O,
5730
5730
  statusMessage: Ye,
5731
5731
  setStatusMessage: ve,
@@ -5745,8 +5745,8 @@ const ir = new rh(), ih = (e, t, r, i) => {
5745
5745
  setMultipleFacesDetected: Tt,
5746
5746
  setReferenceFaceNotDetected: Nt
5747
5747
  } = Zd(), { referenceSet: Cr, referenceRef: ei, setReference: er, syncReference: L } = sh(
5748
- q,
5749
- A,
5748
+ Y,
5749
+ T,
5750
5750
  ve,
5751
5751
  /* onSetReference */
5752
5752
  void 0
@@ -5761,9 +5761,9 @@ const ir = new rh(), ih = (e, t, r, i) => {
5761
5761
  setShowGazeWarningModal: Ks,
5762
5762
  setFaceDetectionState: Xs
5763
5763
  } = th(Je, h), { renderLoop: Tl } = nh(
5764
- A,
5764
+ T,
5765
5765
  z,
5766
- q,
5766
+ Y,
5767
5767
  wt,
5768
5768
  Sr,
5769
5769
  Xe,
@@ -5772,19 +5772,19 @@ const ir = new rh(), ih = (e, t, r, i) => {
5772
5772
  Cr,
5773
5773
  ei,
5774
5774
  m,
5775
- k,
5775
+ v,
5776
5776
  h,
5777
5777
  ve,
5778
5778
  Nt
5779
5779
  );
5780
- ih(A, O, Tl, ve), B(() => {
5780
+ ih(T, O, Tl, ve), B(() => {
5781
5781
  L();
5782
5782
  }, [L]), B(() => {
5783
5783
  ke && ke.current && (ke.current.value = ee, ke.current.isLookingAway = fe);
5784
5784
  }, [ee, fe, ke]);
5785
5785
  const Nl = N(
5786
5786
  (nt) => {
5787
- T(nt), nt || (oe(100), it(!1));
5787
+ A(nt), nt || (oe(100), it(!1));
5788
5788
  },
5789
5789
  [oe, it]
5790
5790
  ), Sl = N(() => {
@@ -5811,7 +5811,7 @@ const ir = new rh(), ih = (e, t, r, i) => {
5811
5811
  nt = await navigator.mediaDevices.getUserMedia({
5812
5812
  video: !0,
5813
5813
  audio: !1
5814
- }), A.current && (A.current.srcObject = nt);
5814
+ }), T.current && (T.current.srcObject = nt);
5815
5815
  const Ir = (r ?? Vn) * 60 * 1e3 / 3, ti = [0, 1, 2].map((Se, Ct) => ({
5816
5816
  label: `capture-${Ct + 1}`,
5817
5817
  start: Ct * Ir,
@@ -5836,8 +5836,7 @@ const ir = new rh(), ih = (e, t, r, i) => {
5836
5836
  () => ({
5837
5837
  setReference: () => {
5838
5838
  er();
5839
- },
5840
- faceLandmarkerRef: q
5839
+ }
5841
5840
  }),
5842
5841
  [er]
5843
5842
  ), /* @__PURE__ */ o.jsxs("div", { className: `iw-relative ${e}`, children: [
@@ -5848,7 +5847,7 @@ const ir = new rh(), ih = (e, t, r, i) => {
5848
5847
  /* @__PURE__ */ o.jsx(
5849
5848
  "video",
5850
5849
  {
5851
- ref: A,
5850
+ ref: T,
5852
5851
  autoPlay: !0,
5853
5852
  playsInline: !0,
5854
5853
  muted: !0,
@@ -5888,7 +5887,7 @@ const ir = new rh(), ih = (e, t, r, i) => {
5888
5887
  referenceSet: Cr,
5889
5888
  showLandmarks: m,
5890
5889
  setShowLandmarks: b,
5891
- showEngagementBar: !1,
5890
+ showEngagementBar: v,
5892
5891
  setShowEngagementBar: g,
5893
5892
  handleToggleGazeAnalysis: Nl,
5894
5893
  stats: Cl,
@@ -5923,7 +5922,7 @@ const ir = new rh(), ih = (e, t, r, i) => {
5923
5922
  interview_duration: a = Vn
5924
5923
  }) => {
5925
5924
  var fe;
5926
- const c = M(null), l = M(null), { baseColor: u, borderRadius: d } = yr(), [h, f] = j(!1), [w, m] = j(!1), [b, k] = j(!1), [g, S] = j(!1), [T, A] = j(!1), [z, C] = j(null), [V, q] = j(!1), O = u ?? "#2563eb", Ye = ja(O), ve = d ?? 18, me = (P, oe) => P.startsWith("#") && P.length === 7 ? `${P}${oe}` : P, Be = [
5925
+ const c = M(null), l = M(null), { baseColor: u, borderRadius: d } = yr(), [h, f] = j(!1), [w, m] = j(!1), [b, v] = j(!1), [g, S] = j(!1), [A, T] = j(!1), [z, C] = j(null), [V, Y] = j(!1), O = u ?? "#2563eb", Ye = ja(O), ve = d ?? 18, me = (P, oe) => P.startsWith("#") && P.length === 7 ? `${P}${oe}` : P, Be = [
5927
5926
  `radial-gradient(120% 85% at 50% 125%, ${me(
5928
5927
  O,
5929
5928
  "34"
@@ -5988,7 +5987,7 @@ const ir = new rh(), ih = (e, t, r, i) => {
5988
5987
  ], Xe = () => {
5989
5988
  l.current && (l.current.getTracks().forEach((P) => P.stop()), l.current = null);
5990
5989
  }, ge = async () => {
5991
- q(!0), C(null);
5990
+ Y(!0), C(null);
5992
5991
  try {
5993
5992
  const P = await navigator.mediaDevices.getUserMedia({
5994
5993
  video: { width: { ideal: 1280 }, height: { ideal: 720 } },
@@ -6000,7 +5999,7 @@ const ir = new rh(), ih = (e, t, r, i) => {
6000
5999
  let oe = "Unable to access camera or microphone.";
6001
6000
  (P == null ? void 0 : P.name) === "NotAllowedError" ? oe = "Permissions denied. Please allow access to camera and microphone." : (P == null ? void 0 : P.name) === "NotFoundError" ? oe = "No camera/microphone found. Please connect a device and retry." : P != null && P.message && (oe = P.message), f(!1), C(oe);
6002
6001
  } finally {
6003
- q(!1);
6002
+ Y(!1);
6004
6003
  }
6005
6004
  };
6006
6005
  if (B(() => {
@@ -6011,7 +6010,7 @@ const ir = new rh(), ih = (e, t, r, i) => {
6011
6010
  return ge(), () => Xe();
6012
6011
  }, [e]), !e) return null;
6013
6012
  const ke = () => {
6014
- i ? k(!0) : (t(), Xe());
6013
+ i ? v(!0) : (t(), Xe());
6015
6014
  }, ee = async () => {
6016
6015
  S(!0), await Ea(4e3), S(!1), t();
6017
6016
  };
@@ -6125,7 +6124,7 @@ const ir = new rh(), ih = (e, t, r, i) => {
6125
6124
  className: "iw-relative iw-flex iw-flex-col iw-gap-6 iw-overflow-hidden iw-rounded-3xl iw-bg-white ",
6126
6125
  style: { borderRadius: ve },
6127
6126
  children: [
6128
- /* @__PURE__ */ o.jsx("div", { className: "iw-relative iw-z-10 iw-rounded-2xl iw-border iw-border-slate-200 iw-bg-slate-50/80 iw-p-3", children: i && g ? /* @__PURE__ */ o.jsx(
6127
+ /* @__PURE__ */ o.jsx("div", { className: "iw-relative iw-z-10 iw-rounded-2xl iw-border iw-border-slate-200 iw-bg-slate-50/80 iw-p-3", children: i && (A || g) ? /* @__PURE__ */ o.jsx(
6129
6128
  jl,
6130
6129
  {
6131
6130
  ref: n,
@@ -6147,7 +6146,7 @@ const ir = new rh(), ih = (e, t, r, i) => {
6147
6146
  }
6148
6147
  }
6149
6148
  ) }),
6150
- /* @__PURE__ */ o.jsx("div", { className: "iw-relative iw-grid iw-grid-cols-2 iw-gap-4 iw-px-1", children: !b && !T ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
6149
+ /* @__PURE__ */ o.jsx("div", { className: "iw-relative iw-grid iw-grid-cols-2 iw-gap-4 iw-px-1", children: !b && !A ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
6151
6150
  /* @__PURE__ */ o.jsx(
6152
6151
  _a,
6153
6152
  {
@@ -6176,7 +6175,7 @@ const ir = new rh(), ih = (e, t, r, i) => {
6176
6175
  children: "Proceed"
6177
6176
  }
6178
6177
  )
6179
- ] }) : i && (b && !T ? /* @__PURE__ */ o.jsx(
6178
+ ] }) : i && (b && !A ? /* @__PURE__ */ o.jsx(
6180
6179
  Qe,
6181
6180
  {
6182
6181
  onClick: () => m(!0),
@@ -6211,7 +6210,7 @@ const ir = new rh(), ih = (e, t, r, i) => {
6211
6210
  ]
6212
6211
  }
6213
6212
  ),
6214
- i && T ? /* @__PURE__ */ o.jsxs("span", { className: "iw-text-slate-700 iw-text-center iw-text-md", children: [
6213
+ i && A ? /* @__PURE__ */ o.jsxs("span", { className: "iw-text-slate-700 iw-text-center iw-text-md", children: [
6215
6214
  "Sit upright and look directly into the camera, then press the",
6216
6215
  /* @__PURE__ */ o.jsx("span", { className: "iw-font-semibold", children: " Start Calibration " }),
6217
6216
  "button. Proper calibration is required and incorrect setup may affect your assessment."
@@ -6270,7 +6269,7 @@ const ir = new rh(), ih = (e, t, r, i) => {
6270
6269
  isOpen: w,
6271
6270
  onDecline: () => m(!1),
6272
6271
  onContinue: () => {
6273
- m(!1), A(!0);
6272
+ m(!1), T(!0);
6274
6273
  }
6275
6274
  }
6276
6275
  )
@@ -6498,11 +6497,11 @@ const fh = (e) => {
6498
6497
  throw new Error("Fullscreen is not supported in this environment");
6499
6498
  w.requestFullscreen ? await w.requestFullscreen() : w.webkitRequestFullscreen ? await w.webkitRequestFullscreen() : w.mozRequestFullScreen ? await w.mozRequestFullScreen() : w.msRequestFullscreen && await w.msRequestFullscreen();
6500
6499
  } catch (b) {
6501
- const k = {
6500
+ const v = {
6502
6501
  name: "FullscreenError",
6503
6502
  message: b instanceof Error ? b.message : "Failed to enter fullscreen"
6504
6503
  };
6505
- r(k), (m = e == null ? void 0 : e.onError) == null || m.call(e, k);
6504
+ r(v), (m = e == null ? void 0 : e.onError) == null || m.call(e, v);
6506
6505
  }
6507
6506
  }, u = async () => {
6508
6507
  var w;
@@ -6592,7 +6591,7 @@ const fh = (e) => {
6592
6591
  const [t, r] = j(!1), [i, n] = j(!1), [s, a] = j(null), [c, l] = j(null), [u, d] = j(null);
6593
6592
  e.config && ir.updateConfig(e.config);
6594
6593
  const h = N(async (b) => {
6595
- var k;
6594
+ var v;
6596
6595
  try {
6597
6596
  l(null), a(null), d(null), await ir.startRecording(b, {
6598
6597
  onStart: () => {
@@ -6604,9 +6603,9 @@ const fh = (e) => {
6604
6603
  r(!1), (g = e.onStop) == null || g.call(e);
6605
6604
  },
6606
6605
  onError: (g) => {
6607
- var T;
6606
+ var A;
6608
6607
  const S = g instanceof ie ? g : new ie(g.message, "RECORDING_ERROR", !0);
6609
- l(S), r(!1), (T = e.onError) == null || T.call(e, S);
6608
+ l(S), r(!1), (A = e.onError) == null || A.call(e, S);
6610
6609
  }
6611
6610
  });
6612
6611
  } catch (g) {
@@ -6615,10 +6614,10 @@ const fh = (e) => {
6615
6614
  "START_FAILED",
6616
6615
  !1
6617
6616
  );
6618
- throw l(S), r(!1), (k = e.onError) == null || k.call(e, S), S;
6617
+ throw l(S), r(!1), (v = e.onError) == null || v.call(e, S), S;
6619
6618
  }
6620
6619
  }, []), f = N(async () => {
6621
- var b, k;
6620
+ var b, v;
6622
6621
  try {
6623
6622
  const g = await ir.stopRecording();
6624
6623
  return d(g), r(!1), (b = e.onStop) == null || b.call(e), g;
@@ -6628,25 +6627,25 @@ const fh = (e) => {
6628
6627
  "STOP_FAILED",
6629
6628
  !1
6630
6629
  );
6631
- throw l(S), r(!1), (k = e.onError) == null || k.call(e, S), S;
6630
+ throw l(S), r(!1), (v = e.onError) == null || v.call(e, S), S;
6632
6631
  }
6633
6632
  }, []), w = N(
6634
- async (b, k = {}) => {
6633
+ async (b, v = {}) => {
6635
6634
  var g, S;
6636
6635
  try {
6637
6636
  l(null), n(!0);
6638
- const T = {
6637
+ const A = {
6639
6638
  audioBlob: b,
6640
- ...k
6641
- }, A = await ir.transcribe(T);
6642
- return a(A.transcript), n(!1), (g = e.onTranscriptionComplete) == null || g.call(e, A), A;
6643
- } catch (T) {
6644
- const A = T instanceof ie ? T : new ie(
6645
- T instanceof Error ? T.message : String(T),
6639
+ ...v
6640
+ }, T = await ir.transcribe(A);
6641
+ return a(T.transcript), n(!1), (g = e.onTranscriptionComplete) == null || g.call(e, T), T;
6642
+ } catch (A) {
6643
+ const T = A instanceof ie ? A : new ie(
6644
+ A instanceof Error ? A.message : String(A),
6646
6645
  "TRANSCRIPTION_FAILED",
6647
6646
  !0
6648
6647
  );
6649
- throw l(A), n(!1), (S = e.onError) == null || S.call(e, A), A;
6648
+ throw l(T), n(!1), (S = e.onError) == null || S.call(e, T), T;
6650
6649
  }
6651
6650
  },
6652
6651
  []
@@ -6997,8 +6996,8 @@ const pn = new xh(), yh = (e = {}) => {
6997
6996
  showLabel: s = !0
6998
6997
  }) => {
6999
6998
  const a = Math.max(1, e || 1), c = _h(t / a, 0, 1), { radius: l, circumference: u, dashOffset: d, center: h } = Vr(() => {
7000
- const m = (r - i) / 2, b = 2 * Math.PI * m, k = b * (1 - c), g = Math.round(i) % 2 === 1, S = r / 2 + (g ? 0.5 : 0);
7001
- return { radius: m, circumference: b, dashOffset: k, center: S };
6999
+ const m = (r - i) / 2, b = 2 * Math.PI * m, v = b * (1 - c), g = Math.round(i) % 2 === 1, S = r / 2 + (g ? 0.5 : 0);
7000
+ return { radius: m, circumference: b, dashOffset: v, center: S };
7002
7001
  }, [r, i, c]), f = Vr(() => c <= 0.25 ? "iw-stroke-red-500" : c <= 0.5 ? "iw-stroke-yellow-500" : "iw-stroke-green-500", [c]), w = c <= 0.25 ? "iw-animate-pulse" : "";
7003
7002
  return /* @__PURE__ */ o.jsxs(
7004
7003
  "div",
@@ -7299,28 +7298,28 @@ const pn = new xh(), yh = (e = {}) => {
7299
7298
  mediaStream: c,
7300
7299
  startOnMount: l = !0
7301
7300
  }) => {
7302
- const { baseColor: u } = yr(), d = M(null), h = M(null), f = M(null), w = M(null), m = M(null), b = M(null), k = M(!1), [g, S] = j(null);
7301
+ const { baseColor: u } = yr(), d = M(null), h = M(null), f = M(null), w = M(null), m = M(null), b = M(null), v = M(!1), [g, S] = j(null);
7303
7302
  B(() => {
7304
7303
  if (t || !h.current) return;
7305
- const A = h.current, z = () => {
7304
+ const T = h.current, z = () => {
7306
7305
  const V = d.current;
7307
7306
  if (!V) return;
7308
- const q = A.clientWidth, O = r;
7309
- V.width = Math.max(1, Math.floor(q * window.devicePixelRatio || 1)), V.height = Math.max(1, Math.floor(O * window.devicePixelRatio || 1));
7307
+ const Y = T.clientWidth, O = r;
7308
+ V.width = Math.max(1, Math.floor(Y * window.devicePixelRatio || 1)), V.height = Math.max(1, Math.floor(O * window.devicePixelRatio || 1));
7310
7309
  }, C = new ResizeObserver(z);
7311
- return C.observe(A), z(), () => C.disconnect();
7310
+ return C.observe(T), z(), () => C.disconnect();
7312
7311
  }, [t, r]), B(() => {
7313
7312
  if (!t) return;
7314
- const A = d.current;
7315
- A && (A.width = Math.max(
7313
+ const T = d.current;
7314
+ T && (T.width = Math.max(
7316
7315
  1,
7317
7316
  Math.floor(t * (window.devicePixelRatio || 1))
7318
- ), A.height = Math.max(
7317
+ ), T.height = Math.max(
7319
7318
  1,
7320
7319
  Math.floor(r * (window.devicePixelRatio || 1))
7321
7320
  ));
7322
7321
  }, [t, r]), B(() => {
7323
- let A = !1;
7322
+ let T = !1;
7324
7323
  return (async () => {
7325
7324
  try {
7326
7325
  const C = new (window.AudioContext || window.webkitAudioContext)();
@@ -7331,19 +7330,19 @@ const pn = new xh(), yh = (e = {}) => {
7331
7330
  V = await navigator.mediaDevices.getUserMedia({
7332
7331
  audio: !0,
7333
7332
  video: !1
7334
- }), k.current = !0;
7333
+ }), v.current = !0;
7335
7334
  }
7336
- if (A) return;
7337
- const q = C.createAnalyser();
7338
- q.fftSize = s, q.smoothingTimeConstant = a, w.current = q;
7335
+ if (T) return;
7336
+ const Y = C.createAnalyser();
7337
+ Y.fftSize = s, Y.smoothingTimeConstant = a, w.current = Y;
7339
7338
  const O = C.createMediaStreamSource(V);
7340
- m.current = O, O.connect(q), T();
7339
+ m.current = O, O.connect(Y), A();
7341
7340
  } catch (C) {
7342
7341
  S((C == null ? void 0 : C.message) || "Failed to initialize microphone");
7343
7342
  }
7344
7343
  })(), () => {
7345
- var C, V, q, O;
7346
- A = !0, b.current && cancelAnimationFrame(b.current);
7344
+ var C, V, Y, O;
7345
+ T = !0, b.current && cancelAnimationFrame(b.current);
7347
7346
  try {
7348
7347
  (C = m.current) == null || C.disconnect();
7349
7348
  } catch {
@@ -7352,17 +7351,17 @@ const pn = new xh(), yh = (e = {}) => {
7352
7351
  (V = w.current) == null || V.disconnect();
7353
7352
  } catch {
7354
7353
  }
7355
- k.current && ((O = ((q = m.current) == null ? void 0 : q.mediaStream) || void 0) == null || O.getTracks().forEach((Ye) => Ye.stop())), f.current && f.current.state !== "closed" && f.current.close();
7354
+ v.current && ((O = ((Y = m.current) == null ? void 0 : Y.mediaStream) || void 0) == null || O.getTracks().forEach((Ye) => Ye.stop())), f.current && f.current.state !== "closed" && f.current.close();
7356
7355
  };
7357
7356
  }, [c, s, a, l]);
7358
- const T = () => {
7359
- const A = d.current, z = w.current;
7360
- if (!A || !z) return;
7361
- const C = A.getContext("2d");
7357
+ const A = () => {
7358
+ const T = d.current, z = w.current;
7359
+ if (!T || !z) return;
7360
+ const C = T.getContext("2d");
7362
7361
  if (!C) return;
7363
- const V = window.devicePixelRatio || 1, q = A.width, O = A.height, Ye = z.frequencyBinCount, ve = new Uint8Array(Ye), me = () => {
7364
- b.current = requestAnimationFrame(me), z.getByteTimeDomainData(ve), C.clearRect(0, 0, q, O), C.fillStyle = "rgba(0,0,0,0)", C.fillRect(0, 0, q, O);
7365
- const Be = Math.max(1, Math.floor(i * V)), Ke = Math.max(1, Math.floor(n * V)), _e = Be + Ke, wt = Math.max(8, Math.floor((q + Ke) / _e)), Xe = Math.floor(ve.length / wt);
7362
+ const V = window.devicePixelRatio || 1, Y = T.width, O = T.height, Ye = z.frequencyBinCount, ve = new Uint8Array(Ye), me = () => {
7363
+ b.current = requestAnimationFrame(me), z.getByteTimeDomainData(ve), C.clearRect(0, 0, Y, O), C.fillStyle = "rgba(0,0,0,0)", C.fillRect(0, 0, Y, O);
7364
+ const Be = Math.max(1, Math.floor(i * V)), Ke = Math.max(1, Math.floor(n * V)), _e = Be + Ke, wt = Math.max(8, Math.floor((Y + Ke) / _e)), Xe = Math.floor(ve.length / wt);
7366
7365
  for (let ge = 0; ge < wt; ge++) {
7367
7366
  const ke = Math.min(ve.length - 1, ge * Xe), ee = ve[ke] / 128 - 1, fe = Math.abs(ee), P = Math.pow(fe, 0.6), oe = Math.max(O * 0.06, P * (O * 0.9)), it = ge * _e, jt = (O - oe) / 2, At = 140 - Math.min(140, 140 * fe), Sr = 85, Tt = 48 + Math.floor(12 * (1 - fe));
7368
7367
  C.fillStyle = `${u}`, C.shadowColor = `hsla(${At}, ${Sr}%, ${Tt}%, ${0.25 * fe})`, C.shadowBlur = 8 * fe;
@@ -7948,7 +7947,7 @@ const Ph = (e) => /* @__PURE__ */ o.jsxs(
7948
7947
  }),
7949
7948
  []
7950
7949
  ), gh(h), wh(h), ph(), vh();
7951
- const k = () => {
7950
+ const v = () => {
7952
7951
  a(!0), b(), n(!1), t == null || t();
7953
7952
  };
7954
7953
  return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
@@ -7962,7 +7961,7 @@ const Ph = (e) => /* @__PURE__ */ o.jsxs(
7962
7961
  onClose: () => {
7963
7962
  n(!1), w();
7964
7963
  },
7965
- onDisqualify: k
7964
+ onDisqualify: v
7966
7965
  }
7967
7966
  ),
7968
7967
  !i && f > 0 && !s && !c && /* @__PURE__ */ o.jsx(
@@ -7984,15 +7983,15 @@ const Ph = (e) => /* @__PURE__ */ o.jsxs(
7984
7983
  videoFeedRef: s
7985
7984
  }) => {
7986
7985
  var Cr, ei, er;
7987
- const a = Na(), { baseUrl: c, authToken: l } = ba(), { timers: u, stt: d, tts: h, proctoring: f } = Wn(), w = M(null), [m, b] = j(null), [k, g] = j(""), S = M(""), T = M(null), A = {
7986
+ const a = Na(), { baseUrl: c, authToken: l } = ba(), { timers: u, stt: d, tts: h, proctoring: f } = Wn(), w = M(null), [m, b] = j(null), [v, g] = j(""), S = M(""), A = M(null), T = {
7988
7987
  thinkingTime: (u == null ? void 0 : u.thinkingDuration) || 30,
7989
7988
  answeringTime: (u == null ? void 0 : u.answeringDuration) || 120,
7990
7989
  editingTime: (u == null ? void 0 : u.editingDuration) || 30
7991
- }, { thinkingTime: z, answeringTime: C, editingTime: V } = A;
7990
+ }, { thinkingTime: z, answeringTime: C, editingTime: V } = T;
7992
7991
  B(() => {
7993
- S.current = k;
7994
- }, [k]);
7995
- const q = M(!1), {
7992
+ S.current = v;
7993
+ }, [v]);
7994
+ const Y = M(!1), {
7996
7995
  speak: O,
7997
7996
  stop: Ye,
7998
7997
  error: ve
@@ -8003,10 +8002,10 @@ const Ph = (e) => /* @__PURE__ */ o.jsxs(
8003
8002
  authToken: l
8004
8003
  },
8005
8004
  onEnd: () => {
8006
- q.current = !1, ee();
8005
+ Y.current = !1, ee();
8007
8006
  },
8008
8007
  onError: () => {
8009
- q.current || (q.current = !0, ee());
8008
+ Y.current || (Y.current = !0, ee());
8010
8009
  }
8011
8010
  }), me = M(!1), Be = M(!1), {
8012
8011
  startRecording: Ke,
@@ -8020,7 +8019,7 @@ const Ph = (e) => /* @__PURE__ */ o.jsxs(
8020
8019
  model: d == null ? void 0 : d.model,
8021
8020
  language: d == null ? void 0 : d.language,
8022
8021
  authToken: l,
8023
- qnaId: ((Cr = T.current) == null ? void 0 : Cr.qna_id) || ""
8022
+ qnaId: ((Cr = A.current) == null ? void 0 : Cr.qna_id) || ""
8024
8023
  },
8025
8024
  onStart: () => {
8026
8025
  me.current = !1, Be.current = !1;
@@ -8072,11 +8071,11 @@ const Ph = (e) => /* @__PURE__ */ o.jsxs(
8072
8071
  var Je, St;
8073
8072
  const L = await a.generateQuestion({
8074
8073
  interviewId: t,
8075
- question: ((Je = T.current) == null ? void 0 : Je.question) || "",
8076
- qnaId: ((St = T.current) == null ? void 0 : St.qna_id) || "",
8074
+ question: ((Je = A.current) == null ? void 0 : Je.question) || "",
8075
+ qnaId: ((St = A.current) == null ? void 0 : St.qna_id) || "",
8077
8076
  answer: S.current
8078
8077
  });
8079
- return T.current = L.data, L;
8078
+ return A.current = L.data, L;
8080
8079
  },
8081
8080
  {
8082
8081
  onSuccess: async (L) => {
@@ -8090,9 +8089,9 @@ const Ph = (e) => /* @__PURE__ */ o.jsxs(
8090
8089
  ke();
8091
8090
  }, [ke]), jt = N(async () => {
8092
8091
  var L;
8093
- if ((L = T.current) != null && L.question)
8092
+ if ((L = A.current) != null && L.question)
8094
8093
  try {
8095
- q.current = !1, await O(T.current.question), T.current.is_interview_done && (await Ea(2e3), fe());
8094
+ Y.current = !1, await O(A.current.question), A.current.is_interview_done && (await Ea(2e3), fe());
8096
8095
  } catch (Je) {
8097
8096
  console.error("Failed to speak question:", Je);
8098
8097
  }
@@ -8164,10 +8163,10 @@ const Ph = (e) => /* @__PURE__ */ o.jsxs(
8164
8163
  return /* @__PURE__ */ o.jsx("div", { className: "iw-space-y-4 iw-h-full", children: /* @__PURE__ */ o.jsx(
8165
8164
  Eh,
8166
8165
  {
8167
- value: k,
8166
+ value: v,
8168
8167
  onChange: (Je) => g(Je.target.value),
8169
8168
  onSubmit: () => ee(),
8170
- isSubmitDisabled: !k.trim() || oe,
8169
+ isSubmitDisabled: !v.trim() || oe,
8171
8170
  state: ge,
8172
8171
  editingTime: V
8173
8172
  }
@@ -8198,7 +8197,7 @@ const Ph = (e) => /* @__PURE__ */ o.jsxs(
8198
8197
  phase: ge.phase,
8199
8198
  className: n,
8200
8199
  interviewId: t,
8201
- interview_duration: (ei = T == null ? void 0 : T.current) == null ? void 0 : ei.interview_duration,
8200
+ interview_duration: (ei = A == null ? void 0 : A.current) == null ? void 0 : ei.interview_duration,
8202
8201
  videoFeedRef: s,
8203
8202
  children: Nt()
8204
8203
  }
@@ -8220,7 +8219,7 @@ const Ph = (e) => /* @__PURE__ */ o.jsxs(
8220
8219
  phase: ge.phase,
8221
8220
  className: n,
8222
8221
  interviewId: t,
8223
- interview_duration: (er = T == null ? void 0 : T.current) == null ? void 0 : er.interview_duration,
8222
+ interview_duration: (er = A == null ? void 0 : A.current) == null ? void 0 : er.interview_duration,
8224
8223
  videoFeedRef: s,
8225
8224
  children: Nt()
8226
8225
  }