@floe-ai/sdk 0.1.0-dev.40 → 0.1.0-dev.41

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.
@@ -3412,7 +3412,7 @@ class We extends su {
3412
3412
  this._sendMessage(new Ce(re.DISCONNECT_BOT, {}));
3413
3413
  }
3414
3414
  handleMessage(e) {
3415
- var t, r, i, s, o, a, l, c, d, h, f, g, y, b, v, w, x, T, P, D, B, I, q, Q, Z, z, $, j, ee, U, F, V, Se, fe, ne, _e, qe, u, m, p, S, k, M, O, R, N, G, se, Pe, lt, ct, ke;
3415
+ var t, r, i, s, o, a, l, c, d, h, f, g, y, b, v, w, x, T, P, D, B, I, q, Q, Z, z, $, j, ee, U, F, V, ke, fe, ne, _e, qe, u, m, p, k, S, M, O, R, N, G, se, Pe, lt, ct, Se;
3416
3416
  switch (ae.debug("[RTVI Message]", e), e.type) {
3417
3417
  case re.BOT_READY: {
3418
3418
  const ie = e.data, Ye = ie.version ? ie.version.split(".").map(Number) : [
@@ -3473,7 +3473,7 @@ class We extends su {
3473
3473
  (F = (U = this._options.callbacks) == null ? void 0 : U.onBotLlmStopped) == null || F.call(U);
3474
3474
  break;
3475
3475
  case re.BOT_TTS_TEXT:
3476
- (Se = (V = this._options.callbacks) == null ? void 0 : V.onBotTtsText) == null || Se.call(V, e.data);
3476
+ (ke = (V = this._options.callbacks) == null ? void 0 : V.onBotTtsText) == null || ke.call(V, e.data);
3477
3477
  break;
3478
3478
  case re.BOT_TTS_STARTED:
3479
3479
  (ne = (fe = this._options.callbacks) == null ? void 0 : fe.onBotTtsStarted) == null || ne.call(fe);
@@ -3485,11 +3485,11 @@ class We extends su {
3485
3485
  (m = (u = this._options.callbacks) == null ? void 0 : u.onMetrics) == null || m.call(u, e.data), this.emit(K.Metrics, e.data);
3486
3486
  break;
3487
3487
  case re.SERVER_MESSAGE:
3488
- (S = (p = this._options.callbacks) == null ? void 0 : p.onServerMessage) == null || S.call(p, e.data), this.emit(K.ServerMessage, e.data);
3488
+ (k = (p = this._options.callbacks) == null ? void 0 : p.onServerMessage) == null || k.call(p, e.data), this.emit(K.ServerMessage, e.data);
3489
3489
  break;
3490
3490
  case re.LLM_FUNCTION_CALL_STARTED: {
3491
3491
  const ie = e.data;
3492
- (M = (k = this._options.callbacks) == null ? void 0 : k.onLLMFunctionCallStarted) == null || M.call(k, ie), this.emit(K.LLMFunctionCallStarted, ie);
3492
+ (M = (S = this._options.callbacks) == null ? void 0 : S.onLLMFunctionCallStarted) == null || M.call(S, ie), this.emit(K.LLMFunctionCallStarted, ie);
3493
3493
  break;
3494
3494
  }
3495
3495
  case re.LLM_FUNCTION_CALL_IN_PROGRESS: {
@@ -3513,7 +3513,7 @@ class We extends su {
3513
3513
  }
3514
3514
  case re.BOT_LLM_SEARCH_RESPONSE: {
3515
3515
  const ie = e.data;
3516
- (ke = (ct = this._options.callbacks) == null ? void 0 : ct.onBotLlmSearchResponse) == null || ke.call(ct, ie), this.emit(K.BotLlmSearchResponse, ie);
3516
+ (Se = (ct = this._options.callbacks) == null ? void 0 : ct.onBotLlmSearchResponse) == null || Se.call(ct, ie), this.emit(K.BotLlmSearchResponse, ie);
3517
3517
  break;
3518
3518
  }
3519
3519
  default:
@@ -4410,7 +4410,7 @@ let hu = class {
4410
4410
  function Nn() {
4411
4411
  return Date.now() + Math.random().toString();
4412
4412
  }
4413
- function Sr() {
4413
+ function kr() {
4414
4414
  throw new Error("Method must be implemented in subclass");
4415
4415
  }
4416
4416
  function yl(n, e) {
@@ -4419,7 +4419,7 @@ function yl(n, e) {
4419
4419
  function wn(n) {
4420
4420
  return n != null && n.callObjectBundleUrlOverride ? n.callObjectBundleUrlOverride : yl("https://c.daily.co/call-machine/versioned/".concat("0.86.0", "/static/call-machine-object-bundle.js"), n);
4421
4421
  }
4422
- function Sn(n) {
4422
+ function kn(n) {
4423
4423
  try {
4424
4424
  new URL(n);
4425
4425
  } catch {
@@ -4428,7 +4428,7 @@ function Sn(n) {
4428
4428
  return !0;
4429
4429
  }
4430
4430
  const we = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, zt = "8.55.0", pe = globalThis;
4431
- function kn(n, e, t) {
4431
+ function Sn(n, e, t) {
4432
4432
  const r = pe, i = r.__SENTRY__ = r.__SENTRY__ || {}, s = i[zt] = i[zt] || {};
4433
4433
  return s[n] || (s[n] = e());
4434
4434
  }
@@ -4448,7 +4448,7 @@ function jr(n) {
4448
4448
  });
4449
4449
  }
4450
4450
  }
4451
- const X = kn("logger", function() {
4451
+ const X = Sn("logger", function() {
4452
4452
  let n = !1;
4453
4453
  const e = { enable: () => {
4454
4454
  n = !0;
@@ -4580,11 +4580,11 @@ function Vt(n, e) {
4580
4580
  return !1;
4581
4581
  }
4582
4582
  }
4583
- function Sl(n) {
4583
+ function kl(n) {
4584
4584
  return !(typeof n != "object" || n === null || !n.__isVue && !n._isVue);
4585
4585
  }
4586
4586
  const Xi = pe;
4587
- function kl(n, e = {}) {
4587
+ function Sl(n, e = {}) {
4588
4588
  if (!n) return "<unknown>";
4589
4589
  try {
4590
4590
  let t = n;
@@ -4635,7 +4635,7 @@ function zs(n, e) {
4635
4635
  for (let r = 0; r < n.length; r++) {
4636
4636
  const i = n[r];
4637
4637
  try {
4638
- Sl(i) ? t.push("[VueViewModel]") : t.push(String(i));
4638
+ kl(i) ? t.push("[VueViewModel]") : t.push(String(i));
4639
4639
  } catch {
4640
4640
  t.push("[value cannot be serialized]");
4641
4641
  }
@@ -4685,7 +4685,7 @@ function _l(n) {
4685
4685
  }
4686
4686
  function Hs(n) {
4687
4687
  try {
4688
- return e = n, typeof Element < "u" && Vt(e, Element) ? kl(n) : Object.prototype.toString.call(n);
4688
+ return e = n, typeof Element < "u" && Vt(e, Element) ? Sl(n) : Object.prototype.toString.call(n);
4689
4689
  } catch {
4690
4690
  return "<unknown>";
4691
4691
  }
@@ -4732,7 +4732,7 @@ function bi(n, e) {
4732
4732
  function Ur() {
4733
4733
  return Date.now() / 1e3;
4734
4734
  }
4735
- const St = function() {
4735
+ const kt = function() {
4736
4736
  const { performance: n } = pe;
4737
4737
  if (!n || !n.now) return Ur;
4738
4738
  const e = Date.now() - n.now(), t = n.timeOrigin == null ? e : n.timeOrigin;
@@ -4872,13 +4872,13 @@ let zr = class Bt {
4872
4872
  }
4873
4873
  };
4874
4874
  function bu(n) {
4875
- const e = St(), t = { sid: Je(), init: !0, timestamp: e, started: e, duration: 0, status: "ok", errors: 0, ignoreDuration: !1, toJSON: () => function(r) {
4875
+ const e = kt(), t = { sid: Je(), init: !0, timestamp: e, started: e, duration: 0, status: "ok", errors: 0, ignoreDuration: !1, toJSON: () => function(r) {
4876
4876
  return Ke({ sid: `${r.sid}`, init: r.init, started: new Date(1e3 * r.started).toISOString(), timestamp: new Date(1e3 * r.timestamp).toISOString(), status: r.status, errors: r.errors, did: typeof r.did == "number" || typeof r.did == "string" ? `${r.did}` : void 0, duration: r.duration, abnormal_mechanism: r.abnormal_mechanism, attrs: { release: r.release, environment: r.environment, ip_address: r.ipAddress, user_agent: r.userAgent } });
4877
4877
  }(t) };
4878
4878
  return n && hr(t, n), t;
4879
4879
  }
4880
4880
  function hr(n, e = {}) {
4881
- if (e.user && (!n.ipAddress && e.user.ip_address && (n.ipAddress = e.user.ip_address), n.did || e.did || (n.did = e.user.id || e.user.email || e.user.username)), n.timestamp = e.timestamp || St(), e.abnormal_mechanism && (n.abnormal_mechanism = e.abnormal_mechanism), e.ignoreDuration && (n.ignoreDuration = e.ignoreDuration), e.sid && (n.sid = e.sid.length === 32 ? e.sid : Je()), e.init !== void 0 && (n.init = e.init), !n.did && e.did && (n.did = `${e.did}`), typeof e.started == "number" && (n.started = e.started), n.ignoreDuration) n.duration = void 0;
4881
+ if (e.user && (!n.ipAddress && e.user.ip_address && (n.ipAddress = e.user.ip_address), n.did || e.did || (n.did = e.user.id || e.user.email || e.user.username)), n.timestamp = e.timestamp || kt(), e.abnormal_mechanism && (n.abnormal_mechanism = e.abnormal_mechanism), e.ignoreDuration && (n.ignoreDuration = e.ignoreDuration), e.sid && (n.sid = e.sid.length === 32 ? e.sid : Je()), e.init !== void 0 && (n.init = e.init), !n.did && e.did && (n.did = `${e.did}`), typeof e.started == "number" && (n.started = e.started), n.ignoreDuration) n.duration = void 0;
4882
4882
  else if (typeof e.duration == "number") n.duration = e.duration;
4883
4883
  else {
4884
4884
  const t = n.timestamp - n.started;
@@ -5074,7 +5074,7 @@ class yu {
5074
5074
  }
5075
5075
  function pr() {
5076
5076
  const n = Gi(Bn());
5077
- return n.stack = n.stack || new yu(kn("defaultCurrentScope", () => new Dt()), kn("defaultIsolationScope", () => new Dt()));
5077
+ return n.stack = n.stack || new yu(Sn("defaultCurrentScope", () => new Dt()), Sn("defaultIsolationScope", () => new Dt()));
5078
5078
  }
5079
5079
  function vu(n) {
5080
5080
  return pr().withScope(n);
@@ -5099,11 +5099,11 @@ function Hr() {
5099
5099
  function De() {
5100
5100
  return Xt().getClient();
5101
5101
  }
5102
- function Su(n) {
5102
+ function ku(n) {
5103
5103
  const e = n.getPropagationContext(), { traceId: t, spanId: r, parentSpanId: i } = e;
5104
5104
  return Ke({ trace_id: t, span_id: r, parent_span_id: i });
5105
5105
  }
5106
- function ku(n) {
5106
+ function Su(n) {
5107
5107
  const e = n._sentryMetrics;
5108
5108
  if (!e) return;
5109
5109
  const t = {};
@@ -5135,7 +5135,7 @@ function Cu(n) {
5135
5135
  return Ke({ parent_span_id: r ? e : rs(n).parent_span_id, span_id: r ? vi() : e, trace_id: t });
5136
5136
  }
5137
5137
  function Xs(n) {
5138
- return typeof n == "number" ? Zs(n) : Array.isArray(n) ? n[0] + n[1] / 1e9 : n instanceof Date ? Zs(n.getTime()) : St();
5138
+ return typeof n == "number" ? Zs(n) : Array.isArray(n) ? n[0] + n[1] / 1e9 : n instanceof Date ? Zs(n.getTime()) : kt();
5139
5139
  }
5140
5140
  function Zs(n) {
5141
5141
  return n > 9999999999 ? n / 1e3 : n;
@@ -5151,7 +5151,7 @@ function rs(n) {
5151
5151
  return !!(i.attributes && i.startTime && i.name && i.endTime && i.status);
5152
5152
  }(n)) {
5153
5153
  const { attributes: r, startTime: i, name: s, endTime: o, parentSpanId: a, status: l } = n;
5154
- return Ke({ span_id: e, trace_id: t, data: r, description: s, parent_span_id: a, start_timestamp: Xs(i), timestamp: Xs(o) || void 0, status: Eu(l), op: r["sentry.op"], origin: r["sentry.origin"], _metrics_summary: ku(n) });
5154
+ return Ke({ span_id: e, trace_id: t, data: r, description: s, parent_span_id: a, start_timestamp: Xs(i), timestamp: Xs(o) || void 0, status: Eu(l), op: r["sentry.op"], origin: r["sentry.origin"], _metrics_summary: Su(n) });
5155
5155
  }
5156
5156
  return { span_id: e, trace_id: t };
5157
5157
  } catch {
@@ -5226,7 +5226,7 @@ function Ou(n) {
5226
5226
  }
5227
5227
  function bt(n, e = 100, t = 1 / 0) {
5228
5228
  try {
5229
- return Si("", n, e, t);
5229
+ return ki("", n, e, t);
5230
5230
  } catch (r) {
5231
5231
  return { ERROR: `**non-serializable** (${r})` };
5232
5232
  }
@@ -5238,7 +5238,7 @@ function Ml(n, e = 3, t = 102400) {
5238
5238
  }(JSON.stringify(i)) > t ? Ml(n, e - 1, t) : r;
5239
5239
  var i;
5240
5240
  }
5241
- function Si(n, e, t = 1 / 0, r = 1 / 0, i = /* @__PURE__ */ function() {
5241
+ function ki(n, e, t = 1 / 0, r = 1 / 0, i = /* @__PURE__ */ function() {
5242
5242
  const s = typeof WeakSet == "function", o = s ? /* @__PURE__ */ new WeakSet() : [];
5243
5243
  return [function(a) {
5244
5244
  if (s) return !!o.has(a) || (o.add(a), !1);
@@ -5261,7 +5261,7 @@ function Si(n, e, t = 1 / 0, r = 1 / 0, i = /* @__PURE__ */ function() {
5261
5261
  if (typeof global < "u" && y === global) return "[Global]";
5262
5262
  if (typeof window < "u" && y === window) return "[Window]";
5263
5263
  if (typeof document < "u" && y === document) return "[Document]";
5264
- if (Sl(y)) return "[VueViewModel]";
5264
+ if (kl(y)) return "[VueViewModel]";
5265
5265
  if (ur(b = y) && "nativeEvent" in b && "preventDefault" in b && "stopPropagation" in b) return "[SyntheticEvent]";
5266
5266
  if (typeof y == "number" && !Number.isFinite(y)) return `[${y}]`;
5267
5267
  if (typeof y == "function") return `[Function: ${Ot(y)}]`;
@@ -5284,7 +5284,7 @@ function Si(n, e, t = 1 / 0, r = 1 / 0, i = /* @__PURE__ */ function() {
5284
5284
  if (s(e)) return "[Circular ~]";
5285
5285
  const c = e;
5286
5286
  if (c && typeof c.toJSON == "function") try {
5287
- return Si("", c.toJSON(), l - 1, r, i);
5287
+ return ki("", c.toJSON(), l - 1, r, i);
5288
5288
  } catch {
5289
5289
  }
5290
5290
  const d = Array.isArray(e) ? [] : {};
@@ -5297,7 +5297,7 @@ function Si(n, e, t = 1 / 0, r = 1 / 0, i = /* @__PURE__ */ function() {
5297
5297
  break;
5298
5298
  }
5299
5299
  const y = f[g];
5300
- d[g] = Si(g, y, l - 1, r, i), h++;
5300
+ d[g] = ki(g, y, l - 1, r, i), h++;
5301
5301
  }
5302
5302
  return o(e), d;
5303
5303
  }
@@ -5314,14 +5314,14 @@ function to(n, e) {
5314
5314
  if (e(r, r[0].type)) return !0;
5315
5315
  return !1;
5316
5316
  }
5317
- function ki(n) {
5317
+ function Si(n) {
5318
5318
  return pe.__SENTRY__ && pe.__SENTRY__.encodePolyfill ? pe.__SENTRY__.encodePolyfill(n) : new TextEncoder().encode(n);
5319
5319
  }
5320
5320
  function Lu(n) {
5321
5321
  const [e, t] = n;
5322
5322
  let r = JSON.stringify(e);
5323
5323
  function i(s) {
5324
- typeof r == "string" ? r = typeof s == "string" ? r + s : [ki(r), s] : r.push(typeof s == "string" ? ki(s) : s);
5324
+ typeof r == "string" ? r = typeof s == "string" ? r + s : [Si(r), s] : r.push(typeof s == "string" ? Si(s) : s);
5325
5325
  }
5326
5326
  for (const s of t) {
5327
5327
  const [o, a] = s;
@@ -5346,7 +5346,7 @@ ${JSON.stringify(o)}
5346
5346
  }(r);
5347
5347
  }
5348
5348
  function Pu(n) {
5349
- const e = typeof n.data == "string" ? ki(n.data) : n.data;
5349
+ const e = typeof n.data == "string" ? Si(n.data) : n.data;
5350
5350
  return [Ke({ type: "attachment", length: e.length, filename: n.filename, content_type: n.contentType, attachment_type: n.attachmentType }), e];
5351
5351
  }
5352
5352
  const Iu = { session: "session", sessions: "session", attachment: "attachment", transaction: "transaction", event: "error", client_report: "internal", user_report: "default", profile: "profile", profile_chunk: "profile", replay_event: "replay", replay_recording: "replay", check_in: "monitor", feedback: "feedback", span: "span", statsd: "metric_bucket", raw_security: "security" };
@@ -5459,7 +5459,7 @@ function Nu(n, e, t, r, i, s) {
5459
5459
  return v.update(b), v;
5460
5460
  }(r, t.captureContext);
5461
5461
  t.mechanism && dr(l, t.mechanism);
5462
- const h = i ? i.getEventProcessors() : [], f = kn("globalScope", () => new Dt()).getScopeData();
5462
+ const h = i ? i.getEventProcessors() : [], f = Sn("globalScope", () => new Dt()).getScopeData();
5463
5463
  s && io(f, s.getScopeData()), d && io(f, d.getScopeData());
5464
5464
  const g = [...t.attachments || [], ...f.attachments];
5465
5465
  return g.length && (t.attachments = g), $u(l, f), xi([...h, ...f.eventProcessors], l, t).then((y) => (y && function(b) {
@@ -5679,7 +5679,7 @@ class Fu {
5679
5679
  const s = this.getOptions(), o = Object.keys(this._integrations);
5680
5680
  return !t.integrations && o.length > 0 && (t.integrations = o), this.emit("preprocessEvent", e, t), e.type || i.setLastEventId(e.event_id || t.event_id), Nu(s, e, t, r, this, i).then((a) => {
5681
5681
  if (a === null) return a;
5682
- a.contexts = { trace: Su(r), ...a.contexts };
5682
+ a.contexts = { trace: ku(r), ...a.contexts };
5683
5683
  const l = function(c, d) {
5684
5684
  const h = d.getPropagationContext();
5685
5685
  return h.dsc || Tl(h.traceId, c);
@@ -6003,10 +6003,10 @@ const Yu = () => {
6003
6003
  if (function(t, r) {
6004
6004
  return r ? !!(function(i, s) {
6005
6005
  const o = i.message, a = s.message;
6006
- return !(!o && !a || o && !a || !o && a || o !== a || !So(i, s) || !wo(i, s));
6006
+ return !(!o && !a || o && !a || !o && a || o !== a || !ko(i, s) || !wo(i, s));
6007
6007
  }(t, r) || function(i, s) {
6008
- const o = ko(s), a = ko(i);
6009
- return !(!o || !a || o.type !== a.type || o.value !== a.value || !So(i, s) || !wo(i, s));
6008
+ const o = So(s), a = So(i);
6009
+ return !(!o || !a || o.type !== a.type || o.value !== a.value || !ko(i, s) || !wo(i, s));
6010
6010
  }(t, r)) : !1;
6011
6011
  }(e, n)) return we && X.warn("Event dropped due to being a duplicate of previously captured event."), null;
6012
6012
  } catch {
@@ -6024,7 +6024,7 @@ function wo(n, e) {
6024
6024
  }
6025
6025
  return !0;
6026
6026
  }
6027
- function So(n, e) {
6027
+ function ko(n, e) {
6028
6028
  let t = n.fingerprint, r = e.fingerprint;
6029
6029
  if (!t && !r) return !0;
6030
6030
  if (t && !r || !t && r) return !1;
@@ -6034,7 +6034,7 @@ function So(n, e) {
6034
6034
  return !1;
6035
6035
  }
6036
6036
  }
6037
- function ko(n) {
6037
+ function So(n) {
6038
6038
  return n.exception && n.exception.values && n.exception.values[0];
6039
6039
  }
6040
6040
  function xo(n) {
@@ -6078,9 +6078,9 @@ function Xu(n, e) {
6078
6078
  }
6079
6079
  const f = h[0];
6080
6080
  return { url: _o(f), method: Ei(f, "method") ? String(f.method).toUpperCase() : "GET" };
6081
- }(o), d = { args: o, fetchData: { method: l, url: c }, startTimestamp: 1e3 * St(), virtualError: a };
6082
- return r || st("fetch", { ...d }), s.apply(pe, o).then(async (h) => (r ? r(h) : st("fetch", { ...d, endTimestamp: 1e3 * St(), response: h }), h), (h) => {
6083
- throw st("fetch", { ...d, endTimestamp: 1e3 * St(), error: h }), Yi(h) && h.stack === void 0 && (h.stack = a.stack, Kt(h, "framesToPop", 1)), h;
6081
+ }(o), d = { args: o, fetchData: { method: l, url: c }, startTimestamp: 1e3 * kt(), virtualError: a };
6082
+ return r || st("fetch", { ...d }), s.apply(pe, o).then(async (h) => (r ? r(h) : st("fetch", { ...d, endTimestamp: 1e3 * kt(), response: h }), h), (h) => {
6083
+ throw st("fetch", { ...d, endTimestamp: 1e3 * kt(), error: h }), Yi(h) && h.stack === void 0 && (h.stack = a.stack, Kt(h, "framesToPop", 1)), h;
6084
6084
  });
6085
6085
  };
6086
6086
  });
@@ -6366,7 +6366,7 @@ function ld() {
6366
6366
  if (!$e.XMLHttpRequest) return;
6367
6367
  const n = XMLHttpRequest.prototype;
6368
6368
  n.open = new Proxy(n.open, { apply(e, t, r) {
6369
- const i = new Error(), s = 1e3 * St(), o = vt(r[0]) ? r[0].toUpperCase() : void 0, a = function(c) {
6369
+ const i = new Error(), s = 1e3 * kt(), o = vt(r[0]) ? r[0].toUpperCase() : void 0, a = function(c) {
6370
6370
  if (vt(c)) return c;
6371
6371
  try {
6372
6372
  return c.toString();
@@ -6382,7 +6382,7 @@ function ld() {
6382
6382
  c.status_code = t.status;
6383
6383
  } catch {
6384
6384
  }
6385
- st("xhr", { endTimestamp: 1e3 * St(), startTimestamp: s, xhr: t, virtualError: i });
6385
+ st("xhr", { endTimestamp: 1e3 * kt(), startTimestamp: s, xhr: t, virtualError: i });
6386
6386
  }
6387
6387
  };
6388
6388
  return "onreadystatechange" in t && typeof t.onreadystatechange == "function" ? t.onreadystatechange = new Proxy(t.onreadystatechange, { apply: (c, d, h) => (l(), c.apply(d, h)) }) : t.addEventListener("readystatechange", l), t.setRequestHeader = new Proxy(t.setRequestHeader, { apply(c, d, h) {
@@ -6391,7 +6391,7 @@ function ld() {
6391
6391
  } }), e.apply(t, r);
6392
6392
  } }), n.send = new Proxy(n.send, { apply(e, t, r) {
6393
6393
  const i = t[Ar];
6394
- return i ? (r[0] !== void 0 && (i.body = r[0]), st("xhr", { startTimestamp: 1e3 * St(), xhr: t }), e.apply(t, r)) : e.apply(t, r);
6394
+ return i ? (r[0] !== void 0 && (i.body = r[0]), st("xhr", { startTimestamp: 1e3 * kt(), xhr: t }), e.apply(t, r)) : e.apply(t, r);
6395
6395
  } });
6396
6396
  }
6397
6397
  function cd(n, e = function(t) {
@@ -6507,7 +6507,7 @@ const ud = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, dd = /^\s*at (?:(.+?\)(?: \
6507
6507
  const f = o.event, g = function(y) {
6508
6508
  return !!y && !!y.target;
6509
6509
  }(f) ? f.target : f;
6510
- a = kl(g, { keyAttrs: c, maxStringLength: d }), l = function(y) {
6510
+ a = Sl(g, { keyAttrs: c, maxStringLength: d }), l = function(y) {
6511
6511
  if (!Xi.HTMLElement) return null;
6512
6512
  let b = y;
6513
6513
  for (let v = 0; v < 5; v++) {
@@ -6568,7 +6568,7 @@ const ud = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, dd = /^\s*at (?:(.+?\)(?: \
6568
6568
  return { name: "BrowserApiErrors", setupOnce() {
6569
6569
  e.setTimeout && Ue(Ee, "setTimeout", Do), e.setInterval && Ue(Ee, "setInterval", Do), e.requestAnimationFrame && Ue(Ee, "requestAnimationFrame", vd), e.XMLHttpRequest && "XMLHttpRequest" in Ee && Ue(XMLHttpRequest.prototype, "send", wd);
6570
6570
  const t = e.eventTarget;
6571
- t && (Array.isArray(t) ? t : bd).forEach(Sd);
6571
+ t && (Array.isArray(t) ? t : bd).forEach(kd);
6572
6572
  } };
6573
6573
  };
6574
6574
  function Do(n) {
@@ -6593,7 +6593,7 @@ function wd(n) {
6593
6593
  }), n.apply(this, e);
6594
6594
  };
6595
6595
  }
6596
- function Sd(n) {
6596
+ function kd(n) {
6597
6597
  const e = Ee[n], t = e && e.prototype;
6598
6598
  t && t.hasOwnProperty && t.hasOwnProperty("addEventListener") && (Ue(t, "addEventListener", function(r) {
6599
6599
  return function(i, s, o) {
@@ -6614,7 +6614,7 @@ function Sd(n) {
6614
6614
  };
6615
6615
  }));
6616
6616
  }
6617
- const kd = () => ({ name: "BrowserSession", setupOnce() {
6617
+ const Sd = () => ({ name: "BrowserSession", setupOnce() {
6618
6618
  Ee.document !== void 0 ? (oo({ ignoreDuration: !0 }), ao(), Pl(({ from: n, to: e }) => {
6619
6619
  n !== void 0 && n !== e && (oo({ ignoreDuration: !0 }), ao());
6620
6620
  })) : zn && X.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");
@@ -6681,7 +6681,7 @@ const _d = () => ({ name: "HttpContext", preprocessEvent(n) {
6681
6681
  Wu(is, o.stackParser, o.maxValueLength, t, e, r, i);
6682
6682
  } };
6683
6683
  };
6684
- var Io = "new", Ro = "loading", $o = "loaded", Oi = "joining-meeting", Ft = "joined-meeting", xt = "left-meeting", _t = "error", Ed = "playable", ti = "unknown", Td = "full", Md = "base", No = "no-room", Ad = "end-of-life", Od = "connection-error", Dd = "iframe-ready-for-launch-config", Ld = "iframe-launch-config", Pd = "theme-updated", Id = "loading", Rd = "load-attempt-failed", Bo = "loaded", $d = "started-camera", Nd = "camera-error", Bd = "joining-meeting", Fd = "joined-meeting", jd = "left-meeting", Ud = "participant-joined", zd = "participant-updated", Hd = "participant-left", qd = "participant-counts-updated", Vd = "access-state-updated", Kd = "meeting-session-summary-updated", Wd = "meeting-session-state-updated", Jd = "waiting-participant-added", Gd = "waiting-participant-updated", Yd = "waiting-participant-removed", Qd = "track-started", Xd = "track-stopped", Zd = "transcription-started", eh = "transcription-stopped", th = "transcription-error", Fo = "recording-started", jo = "recording-stopped", rh = "recording-stats", nh = "recording-error", ih = "recording-upload-completed", sh = "recording-data", oh = "app-message", ah = "transcription-message", lh = "remote-media-player-started", ch = "remote-media-player-updated", uh = "remote-media-player-stopped", dh = "local-screen-share-started", hh = "local-screen-share-stopped", ph = "local-screen-share-canceled", gh = "active-speaker-change", fh = "active-speaker-mode-change", mh = "network-quality-change", bh = "network-connection", yh = "cpu-load-change", vh = "face-counts-updated", rn = "fullscreen", nn = "exited-fullscreen", wh = "live-streaming-started", Sh = "live-streaming-updated", kh = "live-streaming-stopped", xh = "live-streaming-error", _h = "lang-updated", Ch = "receive-settings-updated", Uo = "input-settings-updated", zo = "nonfatal-error", Ho = "error", ri = 4096, qo = 102400, ni = "iframe-call-message", Vo = "local-screen-start", Ko = "daily-method-update-live-streaming-endpoints", sn = "transmit-log", wt = "daily-custom-track", mn = { NONE: "none", BGBLUR: "background-blur", BGIMAGE: "background-image", FACE_DETECTION: "face-detection" }, Il = { NONE: "none", NOISE_CANCELLATION: "noise-cancellation" }, Di = { PLAY: "play", PAUSE: "pause" }, ii = ["jpg", "png", "jpeg"], Eh = "add-endpoints", Th = "remove-endpoints", Wo = "sip-call-transfer";
6684
+ var Io = "new", Ro = "loading", $o = "loaded", Oi = "joining-meeting", Ft = "joined-meeting", xt = "left-meeting", _t = "error", Ed = "playable", ti = "unknown", Td = "full", Md = "base", No = "no-room", Ad = "end-of-life", Od = "connection-error", Dd = "iframe-ready-for-launch-config", Ld = "iframe-launch-config", Pd = "theme-updated", Id = "loading", Rd = "load-attempt-failed", Bo = "loaded", $d = "started-camera", Nd = "camera-error", Bd = "joining-meeting", Fd = "joined-meeting", jd = "left-meeting", Ud = "participant-joined", zd = "participant-updated", Hd = "participant-left", qd = "participant-counts-updated", Vd = "access-state-updated", Kd = "meeting-session-summary-updated", Wd = "meeting-session-state-updated", Jd = "waiting-participant-added", Gd = "waiting-participant-updated", Yd = "waiting-participant-removed", Qd = "track-started", Xd = "track-stopped", Zd = "transcription-started", eh = "transcription-stopped", th = "transcription-error", Fo = "recording-started", jo = "recording-stopped", rh = "recording-stats", nh = "recording-error", ih = "recording-upload-completed", sh = "recording-data", oh = "app-message", ah = "transcription-message", lh = "remote-media-player-started", ch = "remote-media-player-updated", uh = "remote-media-player-stopped", dh = "local-screen-share-started", hh = "local-screen-share-stopped", ph = "local-screen-share-canceled", gh = "active-speaker-change", fh = "active-speaker-mode-change", mh = "network-quality-change", bh = "network-connection", yh = "cpu-load-change", vh = "face-counts-updated", rn = "fullscreen", nn = "exited-fullscreen", wh = "live-streaming-started", kh = "live-streaming-updated", Sh = "live-streaming-stopped", xh = "live-streaming-error", _h = "lang-updated", Ch = "receive-settings-updated", Uo = "input-settings-updated", zo = "nonfatal-error", Ho = "error", ri = 4096, qo = 102400, ni = "iframe-call-message", Vo = "local-screen-start", Ko = "daily-method-update-live-streaming-endpoints", sn = "transmit-log", wt = "daily-custom-track", mn = { NONE: "none", BGBLUR: "background-blur", BGIMAGE: "background-image", FACE_DETECTION: "face-detection" }, Il = { NONE: "none", NOISE_CANCELLATION: "noise-cancellation" }, Di = { PLAY: "play", PAUSE: "pause" }, ii = ["jpg", "png", "jpeg"], Eh = "add-endpoints", Th = "remove-endpoints", Wo = "sip-call-transfer";
6685
6685
  function Ge() {
6686
6686
  return !ce() && typeof window < "u" && window.navigator && window.navigator.userAgent ? window.navigator.userAgent : "";
6687
6687
  }
@@ -6841,15 +6841,15 @@ var Ul = function() {
6841
6841
  return He(function n() {
6842
6842
  ze(this, n);
6843
6843
  }, [{ key: "addListenerForMessagesFromCallMachine", value: function(n, e, t) {
6844
- Sr();
6844
+ kr();
6845
6845
  } }, { key: "addListenerForMessagesFromDailyJs", value: function(n, e, t) {
6846
- Sr();
6846
+ kr();
6847
6847
  } }, { key: "sendMessageToCallMachine", value: function(n, e, t, r) {
6848
- Sr();
6848
+ kr();
6849
6849
  } }, { key: "sendMessageToDailyJs", value: function(n, e) {
6850
- Sr();
6850
+ kr();
6851
6851
  } }, { key: "removeListener", value: function(n) {
6852
- Sr();
6852
+ kr();
6853
6853
  } }]);
6854
6854
  }();
6855
6855
  function Yo(n, e) {
@@ -7893,8 +7893,8 @@ Promise.any || (Promise.any = function() {
7893
7893
  }());
7894
7894
  var tp = function() {
7895
7895
  function n(u) {
7896
- var m, p, S, k, M, O, R = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
7897
- if (ze(this, n), S = this, k = ot(k = n), pt(p = Rn(S, Jl() ? Reflect.construct(k, [], ot(S).constructor) : k.apply(S, M)), "startListeningForDeviceChanges", function() {
7896
+ var m, p, k, S, M, O, R = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
7897
+ if (ze(this, n), k = this, S = ot(S = n), pt(p = Rn(k, Jl() ? Reflect.construct(S, [], ot(k).constructor) : S.apply(k, M)), "startListeningForDeviceChanges", function() {
7898
7898
  Kh(p.handleDeviceChange);
7899
7899
  }), pt(p, "stopListeningForDeviceChanges", function() {
7900
7900
  Wh(p.handleDeviceChange);
@@ -7942,8 +7942,8 @@ var tp = function() {
7942
7942
  p && p.removeChild(m);
7943
7943
  }
7944
7944
  if (this._messageChannel.removeListener(this.handleMessageFromCallMachine), ce()) {
7945
- var S = this.nativeUtils();
7946
- S.removeAudioFocusChangeListener(this.handleNativeAudioFocusChange), S.removeAppStateChangeListener(this.handleNativeAppStateChange), S.removeSystemScreenCaptureStopListener(this.handleNativeSystemScreenCaptureStop);
7945
+ var k = this.nativeUtils();
7946
+ k.removeAudioFocusChangeListener(this.handleNativeAudioFocusChange), k.removeAppStateChangeListener(this.handleNativeAppStateChange), k.removeSystemScreenCaptureStopListener(this.handleNativeSystemScreenCaptureStop);
7947
7947
  }
7948
7948
  this._callObjectMode && this.stopListeningForDeviceChanges(), this.resetMeetingDependentVars(), this._destroyed = !0, this.emitDailyJSEvent({ action: "call-instance-destroyed" }), delete It[this.callClientId], !((u = window) === null || u === void 0 || (u = u._daily) === null || u === void 0) && u.instances && delete window._daily.instances[this.callClientId], this.strictMode && (this.callClientId = void 0);
7949
7949
  }), function() {
@@ -7951,8 +7951,8 @@ var tp = function() {
7951
7951
  }) }, { key: "isDestroyed", value: function() {
7952
7952
  return !!this._destroyed;
7953
7953
  } }, { key: "loadCss", value: function(u) {
7954
- var m = u.bodyClass, p = u.cssFile, S = u.cssText;
7955
- return le(), this.sendMessageToCallMachine({ action: "load-css", cssFile: this.absoluteUrl(p), bodyClass: m, cssText: S }), this;
7954
+ var m = u.bodyClass, p = u.cssFile, k = u.cssText;
7955
+ return le(), this.sendMessageToCallMachine({ action: "load-css", cssFile: this.absoluteUrl(p), bodyClass: m, cssText: k }), this;
7956
7956
  } }, { key: "iframe", value: function() {
7957
7957
  return le(), this._iframe;
7958
7958
  } }, { key: "meetingState", value: function() {
@@ -7979,9 +7979,9 @@ var tp = function() {
7979
7979
  } }, { key: "updateWaitingParticipant", value: (_e = Y(function* () {
7980
7980
  var u = this, m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
7981
7981
  if (Qe(this._callObjectMode, "updateWaitingParticipant()"), ve(this._callState, "updateWaitingParticipant()"), typeof m != "string" || de(p) !== "object") throw new Error("updateWaitingParticipant() must take an id string and a updates object");
7982
- return new Promise(function(S, k) {
7982
+ return new Promise(function(k, S) {
7983
7983
  u.sendMessageToCallMachine({ action: "daily-method-update-waiting-participant", id: m, updates: p }, function(M) {
7984
- M.error && k(M.error), M.id || k(new Error("unknown error in updateWaitingParticipant()")), S({ id: M.id });
7984
+ M.error && S(M.error), M.id || S(new Error("unknown error in updateWaitingParticipant()")), k({ id: M.id });
7985
7985
  });
7986
7986
  });
7987
7987
  }), function() {
@@ -7989,17 +7989,17 @@ var tp = function() {
7989
7989
  }) }, { key: "updateWaitingParticipants", value: (ne = Y(function* () {
7990
7990
  var u = this, m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
7991
7991
  if (Qe(this._callObjectMode, "updateWaitingParticipants()"), ve(this._callState, "updateWaitingParticipants()"), de(m) !== "object") throw new Error("updateWaitingParticipants() must take a mapping between ids and update objects");
7992
- return new Promise(function(p, S) {
7993
- u.sendMessageToCallMachine({ action: "daily-method-update-waiting-participants", updatesById: m }, function(k) {
7994
- k.error && S(k.error), k.ids || S(new Error("unknown error in updateWaitingParticipants()")), p({ ids: k.ids });
7992
+ return new Promise(function(p, k) {
7993
+ u.sendMessageToCallMachine({ action: "daily-method-update-waiting-participants", updatesById: m }, function(S) {
7994
+ S.error && k(S.error), S.ids || k(new Error("unknown error in updateWaitingParticipants()")), p({ ids: S.ids });
7995
7995
  });
7996
7996
  });
7997
7997
  }), function() {
7998
7998
  return ne.apply(this, arguments);
7999
7999
  }) }, { key: "requestAccess", value: (fe = Y(function* () {
8000
- var u = this, m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = m.access, S = p === void 0 ? { level: Td } : p, k = m.name, M = k === void 0 ? "" : k;
8000
+ var u = this, m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = m.access, k = p === void 0 ? { level: Td } : p, S = m.name, M = S === void 0 ? "" : S;
8001
8001
  return Qe(this._callObjectMode, "requestAccess()"), ve(this._callState, "requestAccess()"), new Promise(function(O, R) {
8002
- u.sendMessageToCallMachine({ action: "daily-method-request-access", access: S, name: M }, function(N) {
8002
+ u.sendMessageToCallMachine({ action: "daily-method-request-access", access: k, name: M }, function(N) {
8003
8003
  N.error && R(N.error), N.access || R(new Error("unknown error in requestAccess()")), O({ access: N.access, granted: N.granted });
8004
8004
  });
8005
8005
  });
@@ -8025,14 +8025,14 @@ var tp = function() {
8025
8025
  if (this._preloadCache.allowLocalAudio = u, this._callMachineInitialized) return this.sendMessageToCallMachine({ action: "set-allow-local-audio", state: u }), this;
8026
8026
  } }, { key: "_setAllowLocalVideo", value: function(u) {
8027
8027
  if (this._preloadCache.allowLocalVideo = u, this._callMachineInitialized) return this.sendMessageToCallMachine({ action: "set-allow-local-video", state: u }), this;
8028
- } }, { key: "getReceiveSettings", value: (Se = Y(function* (u) {
8029
- var m = this, p = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).showInheritedValues, S = p !== void 0 && p;
8028
+ } }, { key: "getReceiveSettings", value: (ke = Y(function* (u) {
8029
+ var m = this, p = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).showInheritedValues, k = p !== void 0 && p;
8030
8030
  if (Qe(this._callObjectMode, "getReceiveSettings()"), !this._callMachineInitialized) return this._receiveSettings;
8031
8031
  switch (de(u)) {
8032
8032
  case "string":
8033
- return new Promise(function(k) {
8034
- m.sendMessageToCallMachine({ action: "get-single-participant-receive-settings", id: u, showInheritedValues: S }, function(M) {
8035
- k(M.receiveSettings);
8033
+ return new Promise(function(S) {
8034
+ m.sendMessageToCallMachine({ action: "get-single-participant-receive-settings", id: u, showInheritedValues: k }, function(M) {
8035
+ S(M.receiveSettings);
8036
8036
  });
8037
8037
  });
8038
8038
  case "undefined":
@@ -8041,13 +8041,13 @@ var tp = function() {
8041
8041
  throw new Error('first argument to getReceiveSettings() must be a participant id (or "base"), or there should be no arguments');
8042
8042
  }
8043
8043
  }), function(u) {
8044
- return Se.apply(this, arguments);
8044
+ return ke.apply(this, arguments);
8045
8045
  }) }, { key: "updateReceiveSettings", value: (V = Y(function* (u) {
8046
8046
  var m = this;
8047
8047
  if (Qe(this._callObjectMode, "updateReceiveSettings()"), !Ql(u, { allowAllParticipantsKey: !0 })) throw new Error(ec({ allowAllParticipantsKey: !0 }));
8048
8048
  return ve(this._callState, "updateReceiveSettings()", "To specify receive settings earlier, use the receiveSettings config property."), new Promise(function(p) {
8049
- m.sendMessageToCallMachine({ action: "update-receive-settings", receiveSettings: u }, function(S) {
8050
- p({ receiveSettings: S.receiveSettings });
8049
+ m.sendMessageToCallMachine({ action: "update-receive-settings", receiveSettings: u }, function(k) {
8050
+ p({ receiveSettings: k.receiveSettings });
8051
8051
  });
8052
8052
  });
8053
8053
  }), function(u) {
@@ -8056,9 +8056,9 @@ var tp = function() {
8056
8056
  if (u) {
8057
8057
  var p = {};
8058
8058
  if (u.audio) {
8059
- var S, k, M;
8060
- u.audio.settings && (!Object.keys(u.audio.settings).length && m || (p.audio = { settings: H({}, u.audio.settings) })), m && (S = p.audio) !== null && S !== void 0 && (S = S.settings) !== null && S !== void 0 && S.customTrack && (p.audio.settings = { customTrack: this._sharedTracks.audioTrack });
8061
- var O = ((k = u.audio.processor) === null || k === void 0 ? void 0 : k.type) === "none" && ((M = u.audio.processor) === null || M === void 0 ? void 0 : M._isDefaultWhenNone);
8059
+ var k, S, M;
8060
+ u.audio.settings && (!Object.keys(u.audio.settings).length && m || (p.audio = { settings: H({}, u.audio.settings) })), m && (k = p.audio) !== null && k !== void 0 && (k = k.settings) !== null && k !== void 0 && k.customTrack && (p.audio.settings = { customTrack: this._sharedTracks.audioTrack });
8061
+ var O = ((S = u.audio.processor) === null || S === void 0 ? void 0 : S.type) === "none" && ((M = u.audio.processor) === null || M === void 0 ? void 0 : M._isDefaultWhenNone);
8062
8062
  if (u.audio.processor && !O) {
8063
8063
  var R = H({}, u.audio.processor);
8064
8064
  delete R._isDefaultWhenNone, p.audio = H(H({}, p.audio), {}, { processor: R });
@@ -8081,32 +8081,32 @@ var tp = function() {
8081
8081
  m(u._getInputSettings());
8082
8082
  });
8083
8083
  } }, { key: "_getInputSettings", value: function() {
8084
- var u, m, p, S, k, M, O = { processor: { type: "none", _isDefaultWhenNone: !0 } };
8085
- this._inputSettings ? (u = ((p = this._inputSettings) === null || p === void 0 ? void 0 : p.video) || O, m = ((S = this._inputSettings) === null || S === void 0 ? void 0 : S.audio) || O) : (u = ((k = this._preloadCache) === null || k === void 0 || (k = k.inputSettings) === null || k === void 0 ? void 0 : k.video) || O, m = ((M = this._preloadCache) === null || M === void 0 || (M = M.inputSettings) === null || M === void 0 ? void 0 : M.audio) || O);
8084
+ var u, m, p, k, S, M, O = { processor: { type: "none", _isDefaultWhenNone: !0 } };
8085
+ this._inputSettings ? (u = ((p = this._inputSettings) === null || p === void 0 ? void 0 : p.video) || O, m = ((k = this._inputSettings) === null || k === void 0 ? void 0 : k.audio) || O) : (u = ((S = this._preloadCache) === null || S === void 0 || (S = S.inputSettings) === null || S === void 0 ? void 0 : S.video) || O, m = ((M = this._preloadCache) === null || M === void 0 || (M = M.inputSettings) === null || M === void 0 ? void 0 : M.audio) || O);
8086
8086
  var R = { audio: m, video: u };
8087
8087
  return this._prepInputSettingsForSharing(R, !0);
8088
8088
  } }, { key: "_updatePreloadCacheInputSettings", value: function(u, m) {
8089
- var p = this._inputSettings || {}, S = {};
8089
+ var p = this._inputSettings || {}, k = {};
8090
8090
  if (u.video) {
8091
- var k, M, O;
8092
- S.video = {}, u.video.settings ? (S.video.settings = {}, m || u.video.settings.customTrack || (O = p.video) === null || O === void 0 || !O.settings ? S.video.settings = u.video.settings : S.video.settings = H(H({}, p.video.settings), u.video.settings), Object.keys(S.video.settings).length || delete S.video.settings) : (k = p.video) !== null && k !== void 0 && k.settings && (S.video.settings = p.video.settings), u.video.processor ? S.video.processor = u.video.processor : (M = p.video) !== null && M !== void 0 && M.processor && (S.video.processor = p.video.processor);
8093
- } else p.video && (S.video = p.video);
8091
+ var S, M, O;
8092
+ k.video = {}, u.video.settings ? (k.video.settings = {}, m || u.video.settings.customTrack || (O = p.video) === null || O === void 0 || !O.settings ? k.video.settings = u.video.settings : k.video.settings = H(H({}, p.video.settings), u.video.settings), Object.keys(k.video.settings).length || delete k.video.settings) : (S = p.video) !== null && S !== void 0 && S.settings && (k.video.settings = p.video.settings), u.video.processor ? k.video.processor = u.video.processor : (M = p.video) !== null && M !== void 0 && M.processor && (k.video.processor = p.video.processor);
8093
+ } else p.video && (k.video = p.video);
8094
8094
  if (u.audio) {
8095
8095
  var R, N, G;
8096
- S.audio = {}, u.audio.settings ? (S.audio.settings = {}, m || u.audio.settings.customTrack || (G = p.audio) === null || G === void 0 || !G.settings ? S.audio.settings = u.audio.settings : S.audio.settings = H(H({}, p.audio.settings), u.audio.settings), Object.keys(S.audio.settings).length || delete S.audio.settings) : (R = p.audio) !== null && R !== void 0 && R.settings && (S.audio.settings = p.audio.settings), u.audio.processor ? S.audio.processor = u.audio.processor : (N = p.audio) !== null && N !== void 0 && N.processor && (S.audio.processor = p.audio.processor);
8097
- } else p.audio && (S.audio = p.audio);
8098
- this._maybeUpdateInputSettings(S);
8096
+ k.audio = {}, u.audio.settings ? (k.audio.settings = {}, m || u.audio.settings.customTrack || (G = p.audio) === null || G === void 0 || !G.settings ? k.audio.settings = u.audio.settings : k.audio.settings = H(H({}, p.audio.settings), u.audio.settings), Object.keys(k.audio.settings).length || delete k.audio.settings) : (R = p.audio) !== null && R !== void 0 && R.settings && (k.audio.settings = p.audio.settings), u.audio.processor ? k.audio.processor = u.audio.processor : (N = p.audio) !== null && N !== void 0 && N.processor && (k.audio.processor = p.audio.processor);
8097
+ } else p.audio && (k.audio = p.audio);
8098
+ this._maybeUpdateInputSettings(k);
8099
8099
  } }, { key: "_devicesFromInputSettings", value: function(u) {
8100
- var m, p, S = (u == null || (m = u.video) === null || m === void 0 || (m = m.settings) === null || m === void 0 ? void 0 : m.deviceId) || null, k = (u == null || (p = u.audio) === null || p === void 0 || (p = p.settings) === null || p === void 0 ? void 0 : p.deviceId) || null, M = this._preloadCache.outputDeviceId || null;
8101
- return { camera: S ? { deviceId: S } : {}, mic: k ? { deviceId: k } : {}, speaker: M ? { deviceId: M } : {} };
8100
+ var m, p, k = (u == null || (m = u.video) === null || m === void 0 || (m = m.settings) === null || m === void 0 ? void 0 : m.deviceId) || null, S = (u == null || (p = u.audio) === null || p === void 0 || (p = p.settings) === null || p === void 0 ? void 0 : p.deviceId) || null, M = this._preloadCache.outputDeviceId || null;
8101
+ return { camera: k ? { deviceId: k } : {}, mic: S ? { deviceId: S } : {}, speaker: M ? { deviceId: M } : {} };
8102
8102
  } }, { key: "updateInputSettings", value: (F = Y(function* (u) {
8103
8103
  var m = this;
8104
- return le(), Xl(u) ? u.video || u.audio ? (Zl(u, this.properties.dailyConfig, this._sharedTracks), this._callObjectMode && !this._callMachineInitialized ? (this._updatePreloadCacheInputSettings(u, !0), this._getInputSettings()) : new Promise(function(p, S) {
8105
- m.sendMessageToCallMachine({ action: "update-input-settings", inputSettings: u }, function(k) {
8106
- if (k.error) S(k.error);
8104
+ return le(), Xl(u) ? u.video || u.audio ? (Zl(u, this.properties.dailyConfig, this._sharedTracks), this._callObjectMode && !this._callMachineInitialized ? (this._updatePreloadCacheInputSettings(u, !0), this._getInputSettings()) : new Promise(function(p, k) {
8105
+ m.sendMessageToCallMachine({ action: "update-input-settings", inputSettings: u }, function(S) {
8106
+ if (S.error) k(S.error);
8107
8107
  else {
8108
- if (k.returnPreloadCache) return m._updatePreloadCacheInputSettings(u, !0), void p(m._getInputSettings());
8109
- m._maybeUpdateInputSettings(k.inputSettings), p(m._prepInputSettingsForSharing(k.inputSettings, !0));
8108
+ if (S.returnPreloadCache) return m._updatePreloadCacheInputSettings(u, !0), void p(m._getInputSettings());
8109
+ m._maybeUpdateInputSettings(S.inputSettings), p(m._prepInputSettingsForSharing(S.inputSettings, !0));
8110
8110
  }
8111
8111
  });
8112
8112
  })) : this._getInputSettings() : (console.error(Ni()), Promise.reject(Ni()));
@@ -8145,8 +8145,8 @@ var tp = function() {
8145
8145
  var m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "replace";
8146
8146
  Qe(this._callObjectMode, "setMeetingSessionData()"), ve(this._callState, "setMeetingSessionData");
8147
8147
  try {
8148
- (function(p, S) {
8149
- new Ih({ data: p, mergeStrategy: S });
8148
+ (function(p, k) {
8149
+ new Ih({ data: p, mergeStrategy: k });
8150
8150
  })(u, m);
8151
8151
  } catch (p) {
8152
8152
  throw console.error(p), p;
@@ -8158,9 +8158,9 @@ var tp = function() {
8158
8158
  }
8159
8159
  } }, { key: "setUserName", value: function(u, m) {
8160
8160
  var p = this;
8161
- return this.properties.userName = u, new Promise(function(S) {
8162
- p.sendMessageToCallMachine({ action: "set-user-name", name: u ?? "", thisMeetingOnly: ce() || !!m && !!m.thisMeetingOnly }, function(k) {
8163
- delete k.action, delete k.callbackStamp, S(k);
8161
+ return this.properties.userName = u, new Promise(function(k) {
8162
+ p.sendMessageToCallMachine({ action: "set-user-name", name: u ?? "", thisMeetingOnly: ce() || !!m && !!m.thisMeetingOnly }, function(S) {
8163
+ delete S.action, delete S.callbackStamp, k(S);
8164
8164
  });
8165
8165
  });
8166
8166
  } }, { key: "setUserData", value: (ee = Y(function* (u) {
@@ -8172,11 +8172,11 @@ var tp = function() {
8172
8172
  }
8173
8173
  if (this.properties.userData = u, this._callMachineInitialized) return new Promise(function(p) {
8174
8174
  try {
8175
- m.sendMessageToCallMachine({ action: "set-user-data", userData: u }, function(S) {
8176
- delete S.action, delete S.callbackStamp, p(S);
8175
+ m.sendMessageToCallMachine({ action: "set-user-data", userData: u }, function(k) {
8176
+ delete k.action, delete k.callbackStamp, p(k);
8177
8177
  });
8178
- } catch (S) {
8179
- throw new Error("Error setting user data: ".concat(S));
8178
+ } catch (k) {
8179
+ throw new Error("Error setting user data: ".concat(k));
8180
8180
  }
8181
8181
  });
8182
8182
  }), function(u) {
@@ -8186,9 +8186,9 @@ var tp = function() {
8186
8186
  } }, { key: "startLocalAudioLevelObserver", value: function(u) {
8187
8187
  var m = this;
8188
8188
  if (typeof AudioWorkletNode > "u" && !ce()) throw new Error("startLocalAudioLevelObserver() is not supported on this browser");
8189
- if (this.validateAudioLevelInterval(u), this._callMachineInitialized) return this._isLocalAudioLevelObserverRunning = !0, new Promise(function(p, S) {
8190
- m.sendMessageToCallMachine({ action: "start-local-audio-level-observer", interval: u }, function(k) {
8191
- m._isLocalAudioLevelObserverRunning = !k.error, k.error ? S({ error: k.error }) : p();
8189
+ if (this.validateAudioLevelInterval(u), this._callMachineInitialized) return this._isLocalAudioLevelObserverRunning = !0, new Promise(function(p, k) {
8190
+ m.sendMessageToCallMachine({ action: "start-local-audio-level-observer", interval: u }, function(S) {
8191
+ m._isLocalAudioLevelObserverRunning = !S.error, S.error ? k({ error: S.error }) : p();
8192
8192
  });
8193
8193
  });
8194
8194
  this._preloadCache.localAudioLevelObserver = { enabled: !0, interval: u };
@@ -8198,9 +8198,9 @@ var tp = function() {
8198
8198
  this._preloadCache.localAudioLevelObserver = null, this._localAudioLevel = 0, this._isLocalAudioLevelObserverRunning = !1, this.sendMessageToCallMachine({ action: "stop-local-audio-level-observer" });
8199
8199
  } }, { key: "startRemoteParticipantsAudioLevelObserver", value: function(u) {
8200
8200
  var m = this;
8201
- if (this.validateAudioLevelInterval(u), this._callMachineInitialized) return this._isRemoteParticipantsAudioLevelObserverRunning = !0, new Promise(function(p, S) {
8202
- m.sendMessageToCallMachine({ action: "start-remote-participants-audio-level-observer", interval: u }, function(k) {
8203
- m._isRemoteParticipantsAudioLevelObserverRunning = !k.error, k.error ? S({ error: k.error }) : p();
8201
+ if (this.validateAudioLevelInterval(u), this._callMachineInitialized) return this._isRemoteParticipantsAudioLevelObserverRunning = !0, new Promise(function(p, k) {
8202
+ m.sendMessageToCallMachine({ action: "start-remote-participants-audio-level-observer", interval: u }, function(S) {
8203
+ m._isRemoteParticipantsAudioLevelObserverRunning = !S.error, S.error ? k({ error: S.error }) : p();
8204
8204
  });
8205
8205
  });
8206
8206
  this._preloadCache.remoteParticipantsAudioLevelObserver = { enabled: !0, interval: u };
@@ -8222,9 +8222,9 @@ var tp = function() {
8222
8222
  }
8223
8223
  this.validateProperties(m), this.properties = H(H({}, this.properties), m);
8224
8224
  }
8225
- return new Promise(function(p, S) {
8226
- u._preloadCache.inputSettings = u._prepInputSettingsForSharing(u._inputSettings, !1), u.sendMessageToCallMachine({ action: "start-camera", properties: er(u.properties, u.callClientId), preloadCache: er(u._preloadCache, u.callClientId) }, function(k) {
8227
- k.error ? S(k.error) : p({ camera: k.camera, mic: k.mic, speaker: k.speaker });
8225
+ return new Promise(function(p, k) {
8226
+ u._preloadCache.inputSettings = u._prepInputSettingsForSharing(u._inputSettings, !1), u.sendMessageToCallMachine({ action: "start-camera", properties: er(u.properties, u.callClientId), preloadCache: er(u._preloadCache, u.callClientId) }, function(S) {
8227
+ S.error ? k(S.error) : p({ camera: S.camera, mic: S.mic, speaker: S.speaker });
8228
8228
  });
8229
8229
  });
8230
8230
  }), function() {
@@ -8236,34 +8236,34 @@ var tp = function() {
8236
8236
  if (!(u instanceof MediaStreamTrack)) throw new Error("Custom tracks provided must be instances of MediaStreamTrack");
8237
8237
  } }, { key: "startCustomTrack", value: function() {
8238
8238
  var u = this, m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { track, mode, trackName, ignoreAudioLevel };
8239
- return le(), ve(this._callState, "startCustomTrack()"), this.validateCustomTrack(m.track, m.mode, m.trackName), new Promise(function(p, S) {
8240
- u._sharedTracks.customTrack = m.track, m.track = wt, u.sendMessageToCallMachine({ action: "start-custom-track", properties: m }, function(k) {
8241
- k.error ? S({ error: k.error }) : p(k.mediaTag);
8239
+ return le(), ve(this._callState, "startCustomTrack()"), this.validateCustomTrack(m.track, m.mode, m.trackName), new Promise(function(p, k) {
8240
+ u._sharedTracks.customTrack = m.track, m.track = wt, u.sendMessageToCallMachine({ action: "start-custom-track", properties: m }, function(S) {
8241
+ S.error ? k({ error: S.error }) : p(S.mediaTag);
8242
8242
  });
8243
8243
  });
8244
8244
  } }, { key: "stopCustomTrack", value: function(u) {
8245
8245
  var m = this;
8246
8246
  return le(), ve(this._callState, "stopCustomTrack()"), new Promise(function(p) {
8247
- m.sendMessageToCallMachine({ action: "stop-custom-track", mediaTag: u }, function(S) {
8248
- p(S.mediaTag);
8247
+ m.sendMessageToCallMachine({ action: "stop-custom-track", mediaTag: u }, function(k) {
8248
+ p(k.mediaTag);
8249
8249
  });
8250
8250
  });
8251
8251
  } }, { key: "setCamera", value: function(u) {
8252
8252
  var m = this;
8253
- return kr(), ln(this._callMachineInitialized, "setCamera()"), new Promise(function(p) {
8254
- m.sendMessageToCallMachine({ action: "set-camera", cameraDeviceId: u }, function(S) {
8255
- p({ device: S.device });
8253
+ return Sr(), ln(this._callMachineInitialized, "setCamera()"), new Promise(function(p) {
8254
+ m.sendMessageToCallMachine({ action: "set-camera", cameraDeviceId: u }, function(k) {
8255
+ p({ device: k.device });
8256
8256
  });
8257
8257
  });
8258
8258
  } }, { key: "setAudioDevice", value: ($ = Y(function* (u) {
8259
- return kr(), this.nativeUtils().setAudioDevice(u), { deviceId: yield this.nativeUtils().getAudioDevice() };
8259
+ return Sr(), this.nativeUtils().setAudioDevice(u), { deviceId: yield this.nativeUtils().getAudioDevice() };
8260
8260
  }), function(u) {
8261
8261
  return $.apply(this, arguments);
8262
8262
  }) }, { key: "cycleCamera", value: function() {
8263
8263
  var u = this, m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
8264
8264
  return new Promise(function(p) {
8265
- u.sendMessageToCallMachine({ action: "cycle-camera", properties: m }, function(S) {
8266
- p({ device: S.device });
8265
+ u.sendMessageToCallMachine({ action: "cycle-camera", properties: m }, function(k) {
8266
+ p({ device: k.device });
8267
8267
  });
8268
8268
  });
8269
8269
  } }, { key: "cycleMic", value: function() {
@@ -8275,17 +8275,17 @@ var tp = function() {
8275
8275
  });
8276
8276
  } }, { key: "getCameraFacingMode", value: function() {
8277
8277
  var u = this;
8278
- return kr(), new Promise(function(m) {
8278
+ return Sr(), new Promise(function(m) {
8279
8279
  u.sendMessageToCallMachine({ action: "get-camera-facing-mode" }, function(p) {
8280
8280
  m(p.facingMode);
8281
8281
  });
8282
8282
  });
8283
8283
  } }, { key: "setInputDevicesAsync", value: (z = Y(function* (u) {
8284
- var m = this, p = u.audioDeviceId, S = u.videoDeviceId, k = u.audioSource, M = u.videoSource;
8285
- if (le(), k !== void 0 && (p = k), M !== void 0 && (S = M), typeof p == "boolean" && (this._setAllowLocalAudio(p), p = void 0), typeof S == "boolean" && (this._setAllowLocalVideo(S), S = void 0), !p && !S) return yield this.getInputDevices();
8284
+ var m = this, p = u.audioDeviceId, k = u.videoDeviceId, S = u.audioSource, M = u.videoSource;
8285
+ if (le(), S !== void 0 && (p = S), M !== void 0 && (k = M), typeof p == "boolean" && (this._setAllowLocalAudio(p), p = void 0), typeof k == "boolean" && (this._setAllowLocalVideo(k), k = void 0), !p && !k) return yield this.getInputDevices();
8286
8286
  var O = {};
8287
- return p && (p instanceof MediaStreamTrack ? (this._sharedTracks.audioTrack = p, p = wt, O.audio = { settings: { customTrack: p } }) : (delete this._sharedTracks.audioTrack, O.audio = { settings: { deviceId: p } })), S && (S instanceof MediaStreamTrack ? (this._sharedTracks.videoTrack = S, S = wt, O.video = { settings: { customTrack: S } }) : (delete this._sharedTracks.videoTrack, O.video = { settings: { deviceId: S } })), this._callObjectMode && this.needsLoad() ? (this._updatePreloadCacheInputSettings(O, !1), this._devicesFromInputSettings(this._inputSettings)) : new Promise(function(R) {
8288
- m.sendMessageToCallMachine({ action: "set-input-devices", audioDeviceId: p, videoDeviceId: S }, function(N) {
8287
+ return p && (p instanceof MediaStreamTrack ? (this._sharedTracks.audioTrack = p, p = wt, O.audio = { settings: { customTrack: p } }) : (delete this._sharedTracks.audioTrack, O.audio = { settings: { deviceId: p } })), k && (k instanceof MediaStreamTrack ? (this._sharedTracks.videoTrack = k, k = wt, O.video = { settings: { customTrack: k } }) : (delete this._sharedTracks.videoTrack, O.video = { settings: { deviceId: k } })), this._callObjectMode && this.needsLoad() ? (this._updatePreloadCacheInputSettings(O, !1), this._devicesFromInputSettings(this._inputSettings)) : new Promise(function(R) {
8288
+ m.sendMessageToCallMachine({ action: "set-input-devices", audioDeviceId: p, videoDeviceId: k }, function(N) {
8289
8289
  if (delete N.action, delete N.callbackStamp, N.returnPreloadCache) return m._updatePreloadCacheInputSettings(O, !1), void R(m._devicesFromInputSettings(m._inputSettings));
8290
8290
  R(N);
8291
8291
  });
@@ -8295,13 +8295,13 @@ var tp = function() {
8295
8295
  }) }, { key: "setOutputDeviceAsync", value: (Z = Y(function* (u) {
8296
8296
  var m = this, p = u.outputDeviceId;
8297
8297
  if (le(), !p || typeof p != "string") throw new Error("outputDeviceId must be provided and must be a valid device id");
8298
- return this._preloadCache.outputDeviceId = p, this._callObjectMode && this.needsLoad() ? this._devicesFromInputSettings(this._inputSettings) : new Promise(function(S, k) {
8298
+ return this._preloadCache.outputDeviceId = p, this._callObjectMode && this.needsLoad() ? this._devicesFromInputSettings(this._inputSettings) : new Promise(function(k, S) {
8299
8299
  m.sendMessageToCallMachine({ action: "set-output-device", outputDeviceId: p }, function(M) {
8300
8300
  if (delete M.action, delete M.callbackStamp, M.error) {
8301
8301
  var O = new Error(M.error.message);
8302
- return O.type = M.error.type, void k(O);
8302
+ return O.type = M.error.type, void S(O);
8303
8303
  }
8304
- M.returnPreloadCache ? S(m._devicesFromInputSettings(m._inputSettings)) : S(M);
8304
+ M.returnPreloadCache ? k(m._devicesFromInputSettings(m._inputSettings)) : k(M);
8305
8305
  });
8306
8306
  });
8307
8307
  }), function(u) {
@@ -8316,17 +8316,17 @@ var tp = function() {
8316
8316
  }), function() {
8317
8317
  return Q.apply(this, arguments);
8318
8318
  }) }, { key: "nativeInCallAudioMode", value: function() {
8319
- return kr(), this._nativeInCallAudioMode;
8319
+ return Sr(), this._nativeInCallAudioMode;
8320
8320
  } }, { key: "setNativeInCallAudioMode", value: function(u) {
8321
- if (kr(), [pa, ep].includes(u)) {
8321
+ if (Sr(), [pa, ep].includes(u)) {
8322
8322
  if (u !== this._nativeInCallAudioMode) return this._nativeInCallAudioMode = u, !this.disableReactNativeAutoDeviceManagement("audio") && bn(this._callState, this._isPreparingToJoin) && this.nativeUtils().setAudioMode(this._nativeInCallAudioMode), this;
8323
8323
  } else console.error("invalid in-call audio mode specified: ", u);
8324
8324
  } }, { key: "preAuth", value: (q = Y(function* () {
8325
8325
  var u = this, m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
8326
8326
  if (Qe(this._callObjectMode, "preAuth()"), ci(this._callState, this._isPreparingToJoin, "preAuth()"), this.needsLoad() && (yield this.load(m)), !m.url) throw new Error("preAuth() requires at least a url to be provided");
8327
- return this.validateProperties(m), this.properties = H(H({}, this.properties), m), new Promise(function(p, S) {
8328
- u._preloadCache.inputSettings = u._prepInputSettingsForSharing(u._inputSettings, !1), u.sendMessageToCallMachine({ action: "daily-method-preauth", properties: er(u.properties, u.callClientId), preloadCache: er(u._preloadCache, u.callClientId) }, function(k) {
8329
- return k.error ? S(k.error) : k.access ? (u._didPreAuth = !0, void p({ access: k.access })) : S(new Error("unknown error in preAuth()"));
8327
+ return this.validateProperties(m), this.properties = H(H({}, this.properties), m), new Promise(function(p, k) {
8328
+ u._preloadCache.inputSettings = u._prepInputSettingsForSharing(u._inputSettings, !1), u.sendMessageToCallMachine({ action: "daily-method-preauth", properties: er(u.properties, u.callClientId), preloadCache: er(u._preloadCache, u.callClientId) }, function(S) {
8329
+ return S.error ? k(S.error) : S.access ? (u._didPreAuth = !0, void p({ access: S.access })) : k(new Error("unknown error in preAuth()"));
8330
8330
  });
8331
8331
  });
8332
8332
  }), function() {
@@ -8336,21 +8336,21 @@ var tp = function() {
8336
8336
  if (this.needsLoad()) {
8337
8337
  if (this._destroyed && (this._logUseAfterDestroy(), this.strictMode)) throw new Error("Use after destroy");
8338
8338
  if (u && (this.validateProperties(u), this.properties = H(H({}, this.properties), u)), !this._callObjectMode && !this.properties.url) throw new Error("can't load iframe meeting because url property isn't set");
8339
- return this._updateCallState(Ro), this.emitDailyJSEvent({ action: Id }), this._callObjectMode ? new Promise(function(p, S) {
8339
+ return this._updateCallState(Ro), this.emitDailyJSEvent({ action: Id }), this._callObjectMode ? new Promise(function(p, k) {
8340
8340
  m._callObjectLoader.cancel();
8341
- var k = Date.now();
8341
+ var S = Date.now();
8342
8342
  m._callObjectLoader.load(m.properties.dailyConfig, function(M) {
8343
- m._bundleLoadTime = M ? "no-op" : Date.now() - k, m._updateCallState($o), M && m.emitDailyJSEvent({ action: Bo }), p();
8343
+ m._bundleLoadTime = M ? "no-op" : Date.now() - S, m._updateCallState($o), M && m.emitDailyJSEvent({ action: Bo }), p();
8344
8344
  }, function(M, O) {
8345
8345
  if (m.emitDailyJSEvent({ action: Rd }), !O) {
8346
8346
  m._updateCallState(_t), m.resetMeetingDependentVars();
8347
8347
  var R = { action: Ho, errorMsg: M.msg, error: { type: "connection-error", msg: "Failed to load call object bundle.", details: { on: "load", sourceError: M, bundleUrl: wn(m.properties.dailyConfig) } } };
8348
- m._maybeSendToSentry(R), m.emitDailyJSEvent(R), S(M.msg);
8348
+ m._maybeSendToSentry(R), m.emitDailyJSEvent(R), k(M.msg);
8349
8349
  }
8350
8350
  });
8351
- }) : (this._iframe.src = yl(this.assembleMeetingUrl(), this.properties.dailyConfig), new Promise(function(p, S) {
8352
- m._loadedCallback = function(k) {
8353
- m._callState !== _t ? (m._updateCallState($o), (m.properties.cssFile || m.properties.cssText) && m.loadCss(m.properties), p()) : S(k);
8351
+ }) : (this._iframe.src = yl(this.assembleMeetingUrl(), this.properties.dailyConfig), new Promise(function(p, k) {
8352
+ m._loadedCallback = function(S) {
8353
+ m._callState !== _t ? (m._updateCallState($o), (m.properties.cssFile || m.properties.cssText) && m.loadCss(m.properties), p()) : k(S);
8354
8354
  };
8355
8355
  }));
8356
8356
  }
@@ -8362,25 +8362,25 @@ var tp = function() {
8362
8362
  var p = "No room URL has been provided";
8363
8363
  return console.error(p), Promise.reject(new Error(p));
8364
8364
  }
8365
- var S = !1;
8365
+ var k = !1;
8366
8366
  if (this.needsLoad()) {
8367
8367
  this.updateIsPreparingToJoin(!0);
8368
8368
  try {
8369
8369
  yield this.load(m);
8370
- } catch (k) {
8371
- return this.updateIsPreparingToJoin(!1), Promise.reject(k);
8370
+ } catch (S) {
8371
+ return this.updateIsPreparingToJoin(!1), Promise.reject(S);
8372
8372
  }
8373
8373
  } else {
8374
- if (S = !(!this.properties.cssFile && !this.properties.cssText), this._didPreAuth) {
8374
+ if (k = !(!this.properties.cssFile && !this.properties.cssText), this._didPreAuth) {
8375
8375
  if (m.url && m.url !== this.properties.url) return console.error("url in join() is different than the one used in preAuth()"), this.updateIsPreparingToJoin(!1), Promise.reject();
8376
8376
  if (m.token && m.token !== this.properties.token) return console.error("token in join() is different than the one used in preAuth()"), this.updateIsPreparingToJoin(!1), Promise.reject();
8377
8377
  }
8378
8378
  if (m.url && !this._callObjectMode && m.url && m.url !== this.properties.url) return console.error("url in join() is different than the one used in load() (".concat(this.properties.url, " -> ").concat(m.url, ")")), this.updateIsPreparingToJoin(!1), Promise.reject();
8379
8379
  this.validateProperties(m), this.properties = H(H({}, this.properties), m);
8380
8380
  }
8381
- return m.showLocalVideo !== void 0 && (this._callObjectMode ? console.error("showLocalVideo is not available in callObject mode") : this._showLocalVideo = !!m.showLocalVideo), m.showParticipantsBar !== void 0 && (this._callObjectMode ? console.error("showParticipantsBar is not available in callObject mode") : this._showParticipantsBar = !!m.showParticipantsBar), this._callState === Ft || this._callState === Oi ? (console.warn("already joined meeting, call leave() before joining again"), void this.updateIsPreparingToJoin(!1)) : (this._updateCallState(Oi, !1), this.emitDailyJSEvent({ action: Bd }), this._preloadCache.inputSettings = this._prepInputSettingsForSharing(this._inputSettings || {}, !1), this.sendMessageToCallMachine({ action: "join-meeting", properties: er(this.properties, this.callClientId), preloadCache: er(this._preloadCache, this.callClientId) }, function(k) {
8382
- k.error && u._joinedCallback && (u._joinedCallback(null, k.error), u._joinedCallback = null);
8383
- }), new Promise(function(k, M) {
8381
+ return m.showLocalVideo !== void 0 && (this._callObjectMode ? console.error("showLocalVideo is not available in callObject mode") : this._showLocalVideo = !!m.showLocalVideo), m.showParticipantsBar !== void 0 && (this._callObjectMode ? console.error("showParticipantsBar is not available in callObject mode") : this._showParticipantsBar = !!m.showParticipantsBar), this._callState === Ft || this._callState === Oi ? (console.warn("already joined meeting, call leave() before joining again"), void this.updateIsPreparingToJoin(!1)) : (this._updateCallState(Oi, !1), this.emitDailyJSEvent({ action: Bd }), this._preloadCache.inputSettings = this._prepInputSettingsForSharing(this._inputSettings || {}, !1), this.sendMessageToCallMachine({ action: "join-meeting", properties: er(this.properties, this.callClientId), preloadCache: er(this._preloadCache, this.callClientId) }, function(S) {
8382
+ S.error && u._joinedCallback && (u._joinedCallback(null, S.error), u._joinedCallback = null);
8383
+ }), new Promise(function(S, M) {
8384
8384
  u._joinedCallback = function(O, R) {
8385
8385
  if (u._callState !== _t) {
8386
8386
  if (R) return u._updateCallState(xt), void M(R);
@@ -8391,7 +8391,7 @@ var tp = function() {
8391
8391
  }
8392
8392
  u._participants[N] = H({}, O[N]), u.toggleParticipantAudioBasedOnNativeAudioFocus();
8393
8393
  }
8394
- S && u.loadCss(u.properties), k(O);
8394
+ k && u.loadCss(u.properties), S(O);
8395
8395
  } else M(R);
8396
8396
  };
8397
8397
  }));
@@ -8422,8 +8422,8 @@ var tp = function() {
8422
8422
  if (m && m !== "cloud" && m !== "cloud-audio-only" && m !== "raw-tracks" && m !== "local") throw new Error("invalid type: ".concat(m, ", allowed values 'cloud', 'cloud-audio-only', 'raw-tracks', or 'local'"));
8423
8423
  this.sendMessageToCallMachine(H({ action: "local-recording-start" }, u));
8424
8424
  } }, { key: "updateRecording", value: function(u) {
8425
- var m = u.layout, p = m === void 0 ? { preset: "default" } : m, S = u.instanceId;
8426
- this.sendMessageToCallMachine({ action: "daily-method-update-recording", layout: p, instanceId: S });
8425
+ var m = u.layout, p = m === void 0 ? { preset: "default" } : m, k = u.instanceId;
8426
+ this.sendMessageToCallMachine({ action: "daily-method-update-recording", layout: p, instanceId: k });
8427
8427
  } }, { key: "stopRecording", value: function() {
8428
8428
  var u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
8429
8429
  this.sendMessageToCallMachine(H({ action: "local-recording-stop" }, u));
@@ -8431,8 +8431,8 @@ var tp = function() {
8431
8431
  var u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
8432
8432
  this.sendMessageToCallMachine(H({ action: "daily-method-start-live-streaming" }, u));
8433
8433
  } }, { key: "updateLiveStreaming", value: function(u) {
8434
- var m = u.layout, p = m === void 0 ? { preset: "default" } : m, S = u.instanceId;
8435
- this.sendMessageToCallMachine({ action: "daily-method-update-live-streaming", layout: p, instanceId: S });
8434
+ var m = u.layout, p = m === void 0 ? { preset: "default" } : m, k = u.instanceId;
8435
+ this.sendMessageToCallMachine({ action: "daily-method-update-live-streaming", layout: p, instanceId: k });
8436
8436
  } }, { key: "addLiveStreamingEndpoints", value: function(u) {
8437
8437
  var m = u.endpoints, p = u.instanceId;
8438
8438
  this.sendMessageToCallMachine({ action: Ko, endpointsOp: Eh, endpoints: m, instanceId: p });
@@ -8448,28 +8448,28 @@ var tp = function() {
8448
8448
  var m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, p = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
8449
8449
  if (u) {
8450
8450
  if (!(u instanceof Array || Array.isArray(u))) throw new Error("encodings must be an Array");
8451
- if (!ka(u.length, 1, 3)) throw new Error("encodings must be an Array with between 1 to ".concat(3, " layers"));
8452
- for (var S = 0; S < u.length; S++) {
8453
- var k = u[S];
8454
- for (var M in this._validateEncodingLayerHasValidProperties(k), k) if (li.includes(M)) {
8455
- if (typeof k[M] != "number") throw new Error("".concat(M, " must be a number"));
8451
+ if (!Sa(u.length, 1, 3)) throw new Error("encodings must be an Array with between 1 to ".concat(3, " layers"));
8452
+ for (var k = 0; k < u.length; k++) {
8453
+ var S = u[k];
8454
+ for (var M in this._validateEncodingLayerHasValidProperties(S), S) if (li.includes(M)) {
8455
+ if (typeof S[M] != "number") throw new Error("".concat(M, " must be a number"));
8456
8456
  if (m) {
8457
8457
  var O = m[M], R = O.min, N = O.max;
8458
- if (!ka(k[M], R, N)) throw new Error("".concat(M, " value not in range. valid range: ").concat(R, " to ").concat(N));
8458
+ if (!Sa(S[M], R, N)) throw new Error("".concat(M, " value not in range. valid range: ").concat(R, " to ").concat(N));
8459
8459
  }
8460
8460
  } else if (!["active", "scalabilityMode"].includes(M)) throw new Error("Invalid key ".concat(M, ", valid keys are:") + Object.values(li));
8461
- if (p && !k.hasOwnProperty("maxBitrate")) throw new Error("maxBitrate is not specified");
8461
+ if (p && !S.hasOwnProperty("maxBitrate")) throw new Error("maxBitrate is not specified");
8462
8462
  }
8463
8463
  }
8464
8464
  } }, { key: "startRemoteMediaPlayer", value: (T = Y(function* (u) {
8465
- var m = this, p = u.url, S = u.settings, k = S === void 0 ? { state: Di.PLAY } : S;
8465
+ var m = this, p = u.url, k = u.settings, S = k === void 0 ? { state: Di.PLAY } : k;
8466
8466
  try {
8467
8467
  (function(M) {
8468
8468
  if (typeof M != "string") throw new Error('url parameter must be "string" type');
8469
- })(p), Sa(k), function(M) {
8469
+ })(p), ka(S), function(M) {
8470
8470
  for (var O in M) if (!ma.includes(O)) throw new Error("Invalid key ".concat(O, ", valid keys are: ").concat(ma));
8471
8471
  M.simulcastEncodings && this.validateSimulcastEncodings(M.simulcastEncodings, Gl, !0);
8472
- }(k);
8472
+ }(S);
8473
8473
  } catch (M) {
8474
8474
  throw console.error("invalid argument Error: ".concat(M)), console.error(`startRemoteMediaPlayer arguments must be of the form:
8475
8475
  { url: "playback url",
@@ -8477,7 +8477,7 @@ var tp = function() {
8477
8477
  {state: "play"|"pause", simulcastEncodings?: [{}] } }`), M;
8478
8478
  }
8479
8479
  return new Promise(function(M, O) {
8480
- m.sendMessageToCallMachine({ action: "daily-method-start-remote-media-player", url: p, settings: k }, function(R) {
8480
+ m.sendMessageToCallMachine({ action: "daily-method-start-remote-media-player", url: p, settings: S }, function(R) {
8481
8481
  R.error ? O({ error: R.error, errorMsg: R.errorMsg }) : M({ session_id: R.session_id, remoteMediaPlayerState: { state: R.state, settings: R.settings } });
8482
8482
  });
8483
8483
  });
@@ -8486,25 +8486,25 @@ var tp = function() {
8486
8486
  }) }, { key: "stopRemoteMediaPlayer", value: (x = Y(function* (u) {
8487
8487
  var m = this;
8488
8488
  if (typeof u != "string") throw new Error(" remotePlayerID must be of type string");
8489
- return new Promise(function(p, S) {
8490
- m.sendMessageToCallMachine({ action: "daily-method-stop-remote-media-player", session_id: u }, function(k) {
8491
- k.error ? S({ error: k.error, errorMsg: k.errorMsg }) : p();
8489
+ return new Promise(function(p, k) {
8490
+ m.sendMessageToCallMachine({ action: "daily-method-stop-remote-media-player", session_id: u }, function(S) {
8491
+ S.error ? k({ error: S.error, errorMsg: S.errorMsg }) : p();
8492
8492
  });
8493
8493
  });
8494
8494
  }), function(u) {
8495
8495
  return x.apply(this, arguments);
8496
8496
  }) }, { key: "updateRemoteMediaPlayer", value: (w = Y(function* (u) {
8497
- var m = this, p = u.session_id, S = u.settings;
8497
+ var m = this, p = u.session_id, k = u.settings;
8498
8498
  try {
8499
- Sa(S);
8500
- } catch (k) {
8501
- throw console.error("invalid argument Error: ".concat(k)), console.error(`updateRemoteMediaPlayer arguments must be of the form:
8499
+ ka(k);
8500
+ } catch (S) {
8501
+ throw console.error("invalid argument Error: ".concat(S)), console.error(`updateRemoteMediaPlayer arguments must be of the form:
8502
8502
  session_id: "participant session",
8503
- { settings?: {state: "play"|"pause"} }`), k;
8503
+ { settings?: {state: "play"|"pause"} }`), S;
8504
8504
  }
8505
- return new Promise(function(k, M) {
8506
- m.sendMessageToCallMachine({ action: "daily-method-update-remote-media-player", session_id: p, settings: S }, function(O) {
8507
- O.error ? M({ error: O.error, errorMsg: O.errorMsg }) : k({ session_id: O.session_id, remoteMediaPlayerState: { state: O.state, settings: O.settings } });
8505
+ return new Promise(function(S, M) {
8506
+ m.sendMessageToCallMachine({ action: "daily-method-update-remote-media-player", session_id: p, settings: k }, function(O) {
8507
+ O.error ? M({ error: O.error, errorMsg: O.errorMsg }) : S({ session_id: O.session_id, remoteMediaPlayerState: { state: O.state, settings: O.settings } });
8508
8508
  });
8509
8509
  });
8510
8510
  }), function(u) {
@@ -8568,8 +8568,8 @@ var tp = function() {
8568
8568
  if (u.userId.length > 36) throw new Error("Error starting dial out: userId length must be less than or equal to 36");
8569
8569
  }
8570
8570
  if (ya(u), u.permissions && u.permissions.canReceive) {
8571
- var S = Le(Wl.validateJSONObject(u.permissions.canReceive), 2), k = S[0], M = S[1];
8572
- if (!k) throw new Error(M);
8571
+ var k = Le(Wl.validateJSONObject(u.permissions.canReceive), 2), S = k[0], M = k[1];
8572
+ if (!S) throw new Error(M);
8573
8573
  }
8574
8574
  if (u.provider) {
8575
8575
  if (u.provider !== "daily") throw new Error("Error: provider can be set only to 'daily', got: ".concat(u.provider));
@@ -8585,17 +8585,17 @@ var tp = function() {
8585
8585
  return v.apply(this, arguments);
8586
8586
  }) }, { key: "stopDialOut", value: function(u) {
8587
8587
  var m = this;
8588
- return ve(this._callState, "stopDialOut()"), new Promise(function(p, S) {
8589
- m.sendMessageToCallMachine(H({ action: "dialout-stop" }, u), function(k) {
8590
- k.error ? S(k.error) : p(k);
8588
+ return ve(this._callState, "stopDialOut()"), new Promise(function(p, k) {
8589
+ m.sendMessageToCallMachine(H({ action: "dialout-stop" }, u), function(S) {
8590
+ S.error ? k(S.error) : p(S);
8591
8591
  });
8592
8592
  });
8593
8593
  } }, { key: "sipCallTransfer", value: (b = Y(function* (u) {
8594
8594
  var m = this;
8595
8595
  if (ve(this._callState, "sipCallTransfer()"), !u) throw new Error("sipCallTransfer() requires a sessionId and toEndPoint");
8596
- return u.useSipRefer = !1, wa(u, "sipCallTransfer"), ya(u), new Promise(function(p, S) {
8597
- m.sendMessageToCallMachine(H({ action: Wo }, u), function(k) {
8598
- k.error ? S(k.error) : p(k);
8596
+ return u.useSipRefer = !1, wa(u, "sipCallTransfer"), ya(u), new Promise(function(p, k) {
8597
+ m.sendMessageToCallMachine(H({ action: Wo }, u), function(S) {
8598
+ S.error ? k(S.error) : p(S);
8599
8599
  });
8600
8600
  });
8601
8601
  }), function(u) {
@@ -8603,9 +8603,9 @@ var tp = function() {
8603
8603
  }) }, { key: "sipRefer", value: (y = Y(function* (u) {
8604
8604
  var m = this;
8605
8605
  if (ve(this._callState, "sipRefer()"), !u) throw new Error("sessionId and toEndPoint are mandatory parameter");
8606
- return u.useSipRefer = !0, wa(u, "sipRefer"), new Promise(function(p, S) {
8607
- m.sendMessageToCallMachine(H({ action: Wo }, u), function(k) {
8608
- k.error ? S(k.error) : p(k);
8606
+ return u.useSipRefer = !0, wa(u, "sipRefer"), new Promise(function(p, k) {
8607
+ m.sendMessageToCallMachine(H({ action: Wo }, u), function(S) {
8608
+ S.error ? k(S.error) : p(S);
8609
8609
  });
8610
8610
  });
8611
8611
  }), function(u) {
@@ -8613,15 +8613,15 @@ var tp = function() {
8613
8613
  }) }, { key: "sendDTMF", value: (g = Y(function* (u) {
8614
8614
  var m = this;
8615
8615
  return ve(this._callState, "sendDTMF()"), function(p) {
8616
- var S = p.sessionId, k = p.tones;
8617
- if (!S || !k) throw new Error("sessionId and tones are mandatory parameter");
8618
- if (typeof S != "string" || typeof k != "string") throw new Error("sessionId and tones should be of string type");
8619
- if (k.length > 20) throw new Error("tones string must be upto 20 characters");
8620
- var M = /[^0-9A-D*#]/g, O = k.match(M);
8616
+ var k = p.sessionId, S = p.tones;
8617
+ if (!k || !S) throw new Error("sessionId and tones are mandatory parameter");
8618
+ if (typeof k != "string" || typeof S != "string") throw new Error("sessionId and tones should be of string type");
8619
+ if (S.length > 20) throw new Error("tones string must be upto 20 characters");
8620
+ var M = /[^0-9A-D*#]/g, O = S.match(M);
8621
8621
  if (O && O[0]) throw new Error("".concat(O[0], " is not valid DTMF tone"));
8622
- }(u), new Promise(function(p, S) {
8623
- m.sendMessageToCallMachine(H({ action: "send-dtmf" }, u), function(k) {
8624
- k.error ? S(k.error) : p(k);
8622
+ }(u), new Promise(function(p, k) {
8623
+ m.sendMessageToCallMachine(H({ action: "send-dtmf" }, u), function(S) {
8624
+ S.error ? k(S.error) : p(S);
8625
8625
  });
8626
8626
  });
8627
8627
  }), function(u) {
@@ -8641,8 +8641,8 @@ var tp = function() {
8641
8641
  return Promise.reject(m);
8642
8642
  }
8643
8643
  return new Promise(function(m, p) {
8644
- u.sendMessageToCallMachine({ action: "test-websocket-connectivity" }, function(S) {
8645
- S.error ? p(S.error) : m(S.results);
8644
+ u.sendMessageToCallMachine({ action: "test-websocket-connectivity" }, function(k) {
8645
+ k.error ? p(k.error) : m(k.results);
8646
8646
  });
8647
8647
  });
8648
8648
  }), function() {
@@ -8654,23 +8654,23 @@ var tp = function() {
8654
8654
  } }, { key: "testCallQuality", value: (h = Y(function* () {
8655
8655
  var u = this;
8656
8656
  le(), Qe(this._callObjectMode, "testCallQuality()"), ln(this._callMachineInitialized, "testCallQuality()", null, !0), ci(this._callState, this._isPreparingToJoin, "testCallQuality()");
8657
- var m = this._testCallAlreadyInProgress, p = function(k) {
8658
- m || (u._testCallInProgress = k);
8657
+ var m = this._testCallAlreadyInProgress, p = function(S) {
8658
+ m || (u._testCallInProgress = S);
8659
8659
  };
8660
8660
  if (p(!0), this.needsLoad()) try {
8661
- var S = this._callState;
8662
- yield this.load(), this._callState = S;
8663
- } catch (k) {
8664
- return p(!1), Promise.reject(k);
8661
+ var k = this._callState;
8662
+ yield this.load(), this._callState = k;
8663
+ } catch (S) {
8664
+ return p(!1), Promise.reject(S);
8665
8665
  }
8666
- return new Promise(function(k) {
8666
+ return new Promise(function(S) {
8667
8667
  u.sendMessageToCallMachine({ action: "test-call-quality", dailyJsVersion: u.properties.dailyJsVersion }, function(M) {
8668
8668
  var O = M.results, R = O.result, N = Ms(O, Xh);
8669
8669
  if (R === "failed") {
8670
8670
  var G, se = H({}, N);
8671
8671
  (G = N.error) !== null && G !== void 0 && G.details ? (N.error.details = JSON.parse(N.error.details), se.error = H(H({}, se.error), {}, { details: H({}, se.error.details) }), se.error.details.duringTest = "testCallQuality") : (se.error = se.error ? H({}, se.error) : {}, se.error.details = { duringTest: "testCallQuality" }), u._maybeSendToSentry(se);
8672
8672
  }
8673
- p(!1), k(H({ result: R }, N));
8673
+ p(!1), S(H({ result: R }, N));
8674
8674
  });
8675
8675
  });
8676
8676
  }), function() {
@@ -8688,14 +8688,14 @@ var tp = function() {
8688
8688
  var m = this;
8689
8689
  if (ui(this._testCallInProgress, "testPeerToPeerCallQuality()"), this.needsLoad()) try {
8690
8690
  yield this.load();
8691
- } catch (k) {
8692
- return Promise.reject(k);
8691
+ } catch (S) {
8692
+ return Promise.reject(S);
8693
8693
  }
8694
- var p = u.videoTrack, S = u.duration;
8694
+ var p = u.videoTrack, k = u.duration;
8695
8695
  if (!this._validateVideoTrackForNetworkTests(p)) throw new Error("Video track error");
8696
- return this._sharedTracks.videoTrackForConnectionQualityTest = p, new Promise(function(k, M) {
8697
- m.sendMessageToCallMachine({ action: "test-p2p-call-quality", duration: S }, function(O) {
8698
- O.error ? M(O.error) : k(O.results);
8696
+ return this._sharedTracks.videoTrackForConnectionQualityTest = p, new Promise(function(S, M) {
8697
+ m.sendMessageToCallMachine({ action: "test-p2p-call-quality", duration: k }, function(O) {
8698
+ O.error ? M(O.error) : S(O.results);
8699
8699
  });
8700
8700
  });
8701
8701
  }), function(u) {
@@ -8712,9 +8712,9 @@ var tp = function() {
8712
8712
  return Promise.reject(p);
8713
8713
  }
8714
8714
  if (!this._validateVideoTrackForNetworkTests(u)) throw new Error("Video track error");
8715
- return this._sharedTracks.videoTrackForNetworkConnectivityTest = u, new Promise(function(p, S) {
8716
- m.sendMessageToCallMachine({ action: "test-network-connectivity" }, function(k) {
8717
- k.error ? S(k.error) : p(k.results);
8715
+ return this._sharedTracks.videoTrackForNetworkConnectivityTest = u, new Promise(function(p, k) {
8716
+ m.sendMessageToCallMachine({ action: "test-network-connectivity" }, function(S) {
8717
+ S.error ? k(S.error) : p(S.results);
8718
8718
  });
8719
8719
  });
8720
8720
  }), function(u) {
@@ -8732,29 +8732,29 @@ var tp = function() {
8732
8732
  var m;
8733
8733
  if (!(((m = Object.keys(u)) === null || m === void 0 ? void 0 : m.length) > 0)) throw new Error("Empty encoding is not allowed. At least one of these valid keys should be specified:" + Object.values(li));
8734
8734
  } }, { key: "_validateVideoSendSettings", value: function(u, m) {
8735
- var p = u === "screenVideo" ? ["default-screen-video", "detail-optimized", "motion-optimized", "motion-and-detail-balanced"] : ["default-video", "bandwidth-optimized", "bandwidth-and-quality-balanced", "quality-optimized", "adaptive-2-layers", "adaptive-3-layers"], S = "Video send settings should be either an object or one of the supported presets: ".concat(p.join());
8735
+ var p = u === "screenVideo" ? ["default-screen-video", "detail-optimized", "motion-optimized", "motion-and-detail-balanced"] : ["default-video", "bandwidth-optimized", "bandwidth-and-quality-balanced", "quality-optimized", "adaptive-2-layers", "adaptive-3-layers"], k = "Video send settings should be either an object or one of the supported presets: ".concat(p.join());
8736
8736
  if (typeof m == "string") {
8737
- if (!p.includes(m)) throw new Error(S);
8737
+ if (!p.includes(m)) throw new Error(k);
8738
8738
  } else {
8739
- if (de(m) !== "object") throw new Error(S);
8739
+ if (de(m) !== "object") throw new Error(k);
8740
8740
  if (!m.maxQuality && !m.encodings && m.allowAdaptiveLayers === void 0) throw new Error("Video send settings must contain at least maxQuality, allowAdaptiveLayers or encodings attribute");
8741
8741
  if (m.maxQuality && ["low", "medium", "high"].indexOf(m.maxQuality) === -1) throw new Error("maxQuality must be either low, medium or high");
8742
8742
  if (m.encodings) {
8743
- var k = !1;
8743
+ var S = !1;
8744
8744
  switch (Object.keys(m.encodings).length) {
8745
8745
  case 1:
8746
- k = !m.encodings.low;
8746
+ S = !m.encodings.low;
8747
8747
  break;
8748
8748
  case 2:
8749
- k = !m.encodings.low || !m.encodings.medium;
8749
+ S = !m.encodings.low || !m.encodings.medium;
8750
8750
  break;
8751
8751
  case 3:
8752
- k = !m.encodings.low || !m.encodings.medium || !m.encodings.high;
8752
+ S = !m.encodings.low || !m.encodings.medium || !m.encodings.high;
8753
8753
  break;
8754
8754
  default:
8755
- k = !0;
8755
+ S = !0;
8756
8756
  }
8757
- if (k) throw new Error("Encodings must be defined as: low, low and medium, or low, medium and high.");
8757
+ if (S) throw new Error("Encodings must be defined as: low, low and medium, or low, medium and high.");
8758
8758
  m.encodings.low && this._validateEncodingLayerHasValidProperties(m.encodings.low), m.encodings.medium && this._validateEncodingLayerHasValidProperties(m.encodings.medium), m.encodings.high && this._validateEncodingLayerHasValidProperties(m.encodings.high);
8759
8759
  }
8760
8760
  }
@@ -8762,14 +8762,14 @@ var tp = function() {
8762
8762
  var m = this;
8763
8763
  if (!u || Object.keys(u).length === 0) throw new Error("Send settings must contain at least information for one track!");
8764
8764
  Object.entries(u).forEach(function(p) {
8765
- var S = Le(p, 2), k = S[0], M = S[1];
8766
- m._validateVideoSendSettings(k, M);
8765
+ var k = Le(p, 2), S = k[0], M = k[1];
8766
+ m._validateVideoSendSettings(S, M);
8767
8767
  });
8768
8768
  } }, { key: "updateSendSettings", value: function(u) {
8769
8769
  var m = this;
8770
- return this.validateUpdateSendSettings(u), this.needsLoad() ? (this._preloadCache.sendSettings = u, { sendSettings: this._preloadCache.sendSettings }) : new Promise(function(p, S) {
8771
- m.sendMessageToCallMachine({ action: "update-send-settings", sendSettings: u }, function(k) {
8772
- k.error ? S(k.error) : p(k.sendSettings);
8770
+ return this.validateUpdateSendSettings(u), this.needsLoad() ? (this._preloadCache.sendSettings = u, { sendSettings: this._preloadCache.sendSettings }) : new Promise(function(p, k) {
8771
+ m.sendMessageToCallMachine({ action: "update-send-settings", sendSettings: u }, function(S) {
8772
+ S.error ? k(S.error) : p(S.sendSettings);
8773
8773
  });
8774
8774
  });
8775
8775
  } }, { key: "getSendSettings", value: function() {
@@ -8795,17 +8795,17 @@ var tp = function() {
8795
8795
  return Jt() === "Firefox" && En().major > 115 && En().major < 123 && (m = m.filter(function(p) {
8796
8796
  return p.kind !== "audiooutput";
8797
8797
  })), { devices: m.map(function(p) {
8798
- var S = JSON.parse(JSON.stringify(p));
8798
+ var k = JSON.parse(JSON.stringify(p));
8799
8799
  if (!ce() && p.kind === "videoinput" && p.getCapabilities) {
8800
- var k, M = p.getCapabilities();
8801
- S.facing = (M == null || (k = M.facingMode) === null || k === void 0 ? void 0 : k.length) >= 1 ? M.facingMode[0] : void 0;
8800
+ var S, M = p.getCapabilities();
8801
+ k.facing = (M == null || (S = M.facingMode) === null || S === void 0 ? void 0 : S.length) >= 1 ? M.facingMode[0] : void 0;
8802
8802
  }
8803
- return S;
8803
+ return k;
8804
8804
  }) };
8805
8805
  }
8806
8806
  return new Promise(function(p) {
8807
- u.sendMessageToCallMachine({ action: "enumerate-devices" }, function(S) {
8808
- p({ devices: S.devices });
8807
+ u.sendMessageToCallMachine({ action: "enumerate-devices" }, function(k) {
8808
+ p({ devices: k.devices });
8809
8809
  });
8810
8810
  });
8811
8811
  }), function() {
@@ -8834,22 +8834,22 @@ var tp = function() {
8834
8834
  return le(), Fe(this._callObjectMode, "setCustomIntegrations()"), ve(this._callState, "setCustomIntegrations()"), nc(u) ? (this.sendMessageToCallMachine({ action: "set-custom-integrations", integrations: u }), this._customIntegrations = u, this) : this;
8835
8835
  } }, { key: "startCustomIntegrations", value: function(u) {
8836
8836
  var m = this;
8837
- if (le(), Fe(this._callObjectMode, "startCustomIntegrations()"), ve(this._callState, "startCustomIntegrations()"), Array.isArray(u) && u.some(function(k) {
8838
- return typeof k != "string";
8837
+ if (le(), Fe(this._callObjectMode, "startCustomIntegrations()"), ve(this._callState, "startCustomIntegrations()"), Array.isArray(u) && u.some(function(S) {
8838
+ return typeof S != "string";
8839
8839
  }) || !Array.isArray(u) && typeof u != "string") return console.error("startCustomIntegrations() only accepts string | string[]"), this;
8840
- var p = typeof u == "string" ? [u] : u, S = p.filter(function(k) {
8841
- return !(k in m._customIntegrations);
8840
+ var p = typeof u == "string" ? [u] : u, k = p.filter(function(S) {
8841
+ return !(S in m._customIntegrations);
8842
8842
  });
8843
- return S.length ? (console.error(`Can't find custom integration(s): "`.concat(S.join(", "), '"')), this) : (this.sendMessageToCallMachine({ action: "start-custom-integrations", ids: p }), this);
8843
+ return k.length ? (console.error(`Can't find custom integration(s): "`.concat(k.join(", "), '"')), this) : (this.sendMessageToCallMachine({ action: "start-custom-integrations", ids: p }), this);
8844
8844
  } }, { key: "stopCustomIntegrations", value: function(u) {
8845
8845
  var m = this;
8846
- if (le(), Fe(this._callObjectMode, "stopCustomIntegrations()"), ve(this._callState, "stopCustomIntegrations()"), Array.isArray(u) && u.some(function(k) {
8847
- return typeof k != "string";
8846
+ if (le(), Fe(this._callObjectMode, "stopCustomIntegrations()"), ve(this._callState, "stopCustomIntegrations()"), Array.isArray(u) && u.some(function(S) {
8847
+ return typeof S != "string";
8848
8848
  }) || !Array.isArray(u) && typeof u != "string") return console.error("stopCustomIntegrations() only accepts string | string[]"), this;
8849
- var p = typeof u == "string" ? [u] : u, S = p.filter(function(k) {
8850
- return !(k in m._customIntegrations);
8849
+ var p = typeof u == "string" ? [u] : u, k = p.filter(function(S) {
8850
+ return !(S in m._customIntegrations);
8851
8851
  });
8852
- return S.length ? (console.error(`Can't find custom integration(s): "`.concat(S.join(", "), '"')), this) : (this.sendMessageToCallMachine({ action: "stop-custom-integrations", ids: p }), this);
8852
+ return k.length ? (console.error(`Can't find custom integration(s): "`.concat(k.join(", "), '"')), this) : (this.sendMessageToCallMachine({ action: "stop-custom-integrations", ids: p }), this);
8853
8853
  } }, { key: "customTrayButtons", value: function() {
8854
8854
  return Fe(this._callObjectMode, "customTrayButtons()"), le(), this._customTrayButtons;
8855
8855
  } }, { key: "updateCustomTrayButtons", value: function(u) {
@@ -8858,17 +8858,17 @@ var tp = function() {
8858
8858
  return Fe(this._callObjectMode, "theme()"), this.properties.theme;
8859
8859
  } }, { key: "setTheme", value: function(u) {
8860
8860
  var m = this;
8861
- return Fe(this._callObjectMode, "setTheme()"), new Promise(function(p, S) {
8861
+ return Fe(this._callObjectMode, "setTheme()"), new Promise(function(p, k) {
8862
8862
  try {
8863
8863
  m.validateProperties({ theme: u }), m.properties.theme = H({}, u), m.sendMessageToCallMachine({ action: "set-theme", theme: m.properties.theme });
8864
8864
  try {
8865
8865
  m.emitDailyJSEvent({ action: Pd, theme: m.properties.theme });
8866
- } catch (k) {
8867
- console.log("could not emit 'theme-updated'", k);
8866
+ } catch (S) {
8867
+ console.log("could not emit 'theme-updated'", S);
8868
8868
  }
8869
8869
  p(m.properties.theme);
8870
- } catch (k) {
8871
- S(k);
8870
+ } catch (S) {
8871
+ k(S);
8872
8872
  }
8873
8873
  });
8874
8874
  } }, { key: "requestFullscreen", value: (o = Y(function* () {
@@ -8894,9 +8894,9 @@ var tp = function() {
8894
8894
  return this._callObjectMode ? (console.error("setSidebarView is not available in callObject mode"), this) : (this.sendMessageToCallMachine({ action: "set-sidebar-view", view: u }), this);
8895
8895
  } }, { key: "room", value: (i = Y(function* () {
8896
8896
  var u = this, m = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}).includeRoomConfigDefaults, p = m === void 0 || m;
8897
- return this._accessState.access === ti || this.needsLoad() ? this.properties.url ? { roomUrlPendingJoin: this.properties.url } : null : new Promise(function(S) {
8898
- u.sendMessageToCallMachine({ action: "lib-room-info", includeRoomConfigDefaults: p }, function(k) {
8899
- delete k.action, delete k.callbackStamp, S(k);
8897
+ return this._accessState.access === ti || this.needsLoad() ? this.properties.url ? { roomUrlPendingJoin: this.properties.url } : null : new Promise(function(k) {
8898
+ u.sendMessageToCallMachine({ action: "lib-room-info", includeRoomConfigDefaults: p }, function(S) {
8899
+ delete S.action, delete S.callbackStamp, k(S);
8900
8900
  });
8901
8901
  });
8902
8902
  }), function() {
@@ -8912,9 +8912,9 @@ var tp = function() {
8912
8912
  return r.apply(this, arguments);
8913
8913
  }) }, { key: "setNetworkTopology", value: (t = Y(function* (u) {
8914
8914
  var m = this;
8915
- return le(), ve(this._callState, "setNetworkTopology()"), new Promise(function(p, S) {
8916
- m.sendMessageToCallMachine({ action: "set-network-topology", opts: u }, function(k) {
8917
- k.error ? S({ error: k.error }) : p({ workerId: k.workerId });
8915
+ return le(), ve(this._callState, "setNetworkTopology()"), new Promise(function(p, k) {
8916
+ m.sendMessageToCallMachine({ action: "set-network-topology", opts: u }, function(S) {
8917
+ S.error ? k({ error: S.error }) : p({ workerId: S.workerId });
8918
8918
  });
8919
8919
  });
8920
8920
  }), function(u) {
@@ -8922,8 +8922,8 @@ var tp = function() {
8922
8922
  }) }, { key: "getNetworkTopology", value: (e = Y(function* () {
8923
8923
  var u = this;
8924
8924
  return new Promise(function(m, p) {
8925
- u.needsLoad() && m({ topology: "none" }), u.sendMessageToCallMachine({ action: "get-network-topology" }, function(S) {
8926
- S.error ? p({ error: S.error }) : m({ topology: S.topology });
8925
+ u.needsLoad() && m({ topology: "none" }), u.sendMessageToCallMachine({ action: "get-network-topology" }, function(k) {
8926
+ k.error ? p({ error: k.error }) : m({ topology: k.topology });
8927
8927
  });
8928
8928
  });
8929
8929
  }), function() {
@@ -8940,10 +8940,10 @@ var tp = function() {
8940
8940
  } }, { key: "validateProperties", value: function(u) {
8941
8941
  var m, p;
8942
8942
  if (u != null && (m = u.dailyConfig) !== null && m !== void 0 && m.userMediaAudioConstraints) {
8943
- var S, k;
8943
+ var k, S;
8944
8944
  ce() || console.warn("userMediaAudioConstraints is deprecated. You can override constraints with inputSettings.audio.settings, found in DailyCallOptions.");
8945
8945
  var M = u.inputSettings || {};
8946
- M.audio = ((S = u.inputSettings) === null || S === void 0 ? void 0 : S.audio) || {}, M.audio.settings = ((k = u.inputSettings) === null || k === void 0 || (k = k.audio) === null || k === void 0 ? void 0 : k.settings) || {}, M.audio.settings = H(H({}, M.audio.settings), u.dailyConfig.userMediaAudioConstraints), u.inputSettings = M, delete u.dailyConfig.userMediaAudioConstraints;
8946
+ M.audio = ((k = u.inputSettings) === null || k === void 0 ? void 0 : k.audio) || {}, M.audio.settings = ((S = u.inputSettings) === null || S === void 0 || (S = S.audio) === null || S === void 0 ? void 0 : S.settings) || {}, M.audio.settings = H(H({}, M.audio.settings), u.dailyConfig.userMediaAudioConstraints), u.inputSettings = M, delete u.dailyConfig.userMediaAudioConstraints;
8947
8947
  }
8948
8948
  if (u != null && (p = u.dailyConfig) !== null && p !== void 0 && p.userMediaVideoConstraints) {
8949
8949
  var O, R;
@@ -8955,11 +8955,11 @@ var tp = function() {
8955
8955
  if (Rt[G].validate && !Rt[G].validate(u[G], this)) throw new Error("property '".concat(G, "': ").concat(Rt[G].help));
8956
8956
  } else console.warn("Ignoring unrecognized property '".concat(G, "'")), delete u[G];
8957
8957
  } }, { key: "assembleMeetingUrl", value: function() {
8958
- var u, m, p = H(H({}, this.properties), {}, { emb: this.callClientId, embHref: encodeURIComponent(window.location.href), proxy: (u = this.properties.dailyConfig) !== null && u !== void 0 && u.proxyUrl ? encodeURIComponent((m = this.properties.dailyConfig) === null || m === void 0 ? void 0 : m.proxyUrl) : void 0 }), S = p.url.match(/\?/) ? "&" : "?";
8959
- return p.url + S + Object.keys(Rt).filter(function(k) {
8960
- return Rt[k].queryString && p[k] !== void 0;
8961
- }).map(function(k) {
8962
- return "".concat(Rt[k].queryString, "=").concat(p[k]);
8958
+ var u, m, p = H(H({}, this.properties), {}, { emb: this.callClientId, embHref: encodeURIComponent(window.location.href), proxy: (u = this.properties.dailyConfig) !== null && u !== void 0 && u.proxyUrl ? encodeURIComponent((m = this.properties.dailyConfig) === null || m === void 0 ? void 0 : m.proxyUrl) : void 0 }), k = p.url.match(/\?/) ? "&" : "?";
8959
+ return p.url + k + Object.keys(Rt).filter(function(S) {
8960
+ return Rt[S].queryString && p[S] !== void 0;
8961
+ }).map(function(S) {
8962
+ return "".concat(Rt[S].queryString, "=").concat(p[S]);
8963
8963
  }).join("&");
8964
8964
  } }, { key: "needsLoad", value: function() {
8965
8965
  return [Io, Ro, xt, _t].includes(this._callState);
@@ -8986,24 +8986,24 @@ var tp = function() {
8986
8986
  this._loadedCallback && (this._loadedCallback(), this._loadedCallback = null), this.emitDailyJSEvent(u);
8987
8987
  break;
8988
8988
  case Fd:
8989
- var p, S = H({}, u);
8990
- delete S.internal, this._maxAppMessageSize = ((p = u.internal) === null || p === void 0 ? void 0 : p._maxAppMessageSize) || ri, this._joinedCallback && (this._joinedCallback(u.participants), this._joinedCallback = null), this.emitDailyJSEvent(S);
8989
+ var p, k = H({}, u);
8990
+ delete k.internal, this._maxAppMessageSize = ((p = u.internal) === null || p === void 0 ? void 0 : p._maxAppMessageSize) || ri, this._joinedCallback && (this._joinedCallback(u.participants), this._joinedCallback = null), this.emitDailyJSEvent(k);
8991
8991
  break;
8992
8992
  case Ud:
8993
8993
  case zd:
8994
8994
  if (this._callState === xt) return;
8995
8995
  if (u.participant && u.participant.session_id) {
8996
- var k = u.participant.local ? "local" : u.participant.session_id;
8996
+ var S = u.participant.local ? "local" : u.participant.session_id;
8997
8997
  if (this._callObjectMode) {
8998
8998
  var M = this._callMachine().store;
8999
- ta(u.participant, M), ra(u.participant, M), na(u.participant, this._participants[k], M);
8999
+ ta(u.participant, M), ra(u.participant, M), na(u.participant, this._participants[S], M);
9000
9000
  }
9001
9001
  try {
9002
- this.maybeParticipantTracksStopped(this._participants[k], u.participant), this.maybeParticipantTracksStarted(this._participants[k], u.participant), this.maybeEventRecordingStopped(this._participants[k], u.participant), this.maybeEventRecordingStarted(this._participants[k], u.participant);
9002
+ this.maybeParticipantTracksStopped(this._participants[S], u.participant), this.maybeParticipantTracksStarted(this._participants[S], u.participant), this.maybeEventRecordingStopped(this._participants[S], u.participant), this.maybeEventRecordingStarted(this._participants[S], u.participant);
9003
9003
  } catch (Dc) {
9004
9004
  console.error("track events error", Dc);
9005
9005
  }
9006
- this.compareEqualForParticipantUpdateEvent(u.participant, this._participants[k]) || (this._participants[k] = H({}, u.participant), this.toggleParticipantAudioBasedOnNativeAudioFocus(), this.emitDailyJSEvent(u));
9006
+ this.compareEqualForParticipantUpdateEvent(u.participant, this._participants[S]) || (this._participants[S] = H({}, u.participant), this.toggleParticipantAudioBasedOnNativeAudioFocus(), this.emitDailyJSEvent(u));
9007
9007
  }
9008
9008
  break;
9009
9009
  case Hd:
@@ -9039,8 +9039,8 @@ var tp = function() {
9039
9039
  u.devices && this.emitDailyJSEvent(u);
9040
9040
  break;
9041
9041
  case mh:
9042
- var Pe = u.state, lt = u.threshold, ct = u.quality, ke = Pe.state, ie = Pe.reasons;
9043
- ke === this._network.networkState && Re(ie, this._network.networkStateReasons) && lt === this._network.threshold && ct === this._network.quality || (this._network.networkState = ke, this._network.networkStateReasons = ie, this._network.quality = ct, this._network.threshold = lt, u.networkState = ke, ie.length && (u.networkStateReasons = ie), delete u.state, this.emitDailyJSEvent(u));
9042
+ var Pe = u.state, lt = u.threshold, ct = u.quality, Se = Pe.state, ie = Pe.reasons;
9043
+ Se === this._network.networkState && Re(ie, this._network.networkStateReasons) && lt === this._network.threshold && ct === this._network.quality || (this._network.networkState = Se, this._network.networkStateReasons = ie, this._network.quality = ct, this._network.threshold = lt, u.networkState = Se, ie.length && (u.networkStateReasons = ie), delete u.state, this.emitDailyJSEvent(u));
9044
9044
  break;
9045
9045
  case yh:
9046
9046
  u && u.cpuLoadState && this.emitDailyJSEvent(u);
@@ -9125,8 +9125,8 @@ var tp = function() {
9125
9125
  case bh:
9126
9126
  case sh:
9127
9127
  case wh:
9128
- case Sh:
9129
9128
  case kh:
9129
+ case Sh:
9130
9130
  case xh:
9131
9131
  case zo:
9132
9132
  case _h:
@@ -9159,13 +9159,13 @@ var tp = function() {
9159
9159
  } }, { key: "_trackChanged", value: function(u, m) {
9160
9160
  return (u == null ? void 0 : u.id) !== (m == null ? void 0 : m.id);
9161
9161
  } }, { key: "maybeEventTrackStopped", value: function(u, m, p) {
9162
- var S, k, M = (S = m == null ? void 0 : m.tracks[u]) !== null && S !== void 0 ? S : null, O = (k = p == null ? void 0 : p.tracks[u]) !== null && k !== void 0 ? k : null, R = M == null ? void 0 : M.track;
9162
+ var k, S, M = (k = m == null ? void 0 : m.tracks[u]) !== null && k !== void 0 ? k : null, O = (S = p == null ? void 0 : p.tracks[u]) !== null && S !== void 0 ? S : null, R = M == null ? void 0 : M.track;
9163
9163
  if (R) {
9164
9164
  var N = this._trackStatePlayable(M), G = this._trackStatePlayable(O), se = this._trackChanged(R, O == null ? void 0 : O.track);
9165
9165
  N && (G && !se || this.emitDailyJSEvent({ action: Xd, track: R, participant: p ?? m, type: u }));
9166
9166
  }
9167
9167
  } }, { key: "maybeEventTrackStarted", value: function(u, m, p) {
9168
- var S, k, M = (S = m == null ? void 0 : m.tracks[u]) !== null && S !== void 0 ? S : null, O = (k = p == null ? void 0 : p.tracks[u]) !== null && k !== void 0 ? k : null, R = O == null ? void 0 : O.track;
9168
+ var k, S, M = (k = m == null ? void 0 : m.tracks[u]) !== null && k !== void 0 ? k : null, O = (S = p == null ? void 0 : p.tracks[u]) !== null && S !== void 0 ? S : null, R = O == null ? void 0 : O.track;
9169
9169
  if (R) {
9170
9170
  var N = this._trackStatePlayable(M), G = this._trackStatePlayable(O), se = this._trackChanged(M == null ? void 0 : M.track, R);
9171
9171
  G && (N && !se || this.emitDailyJSEvent({ action: Qd, track: R, participant: p, type: u }));
@@ -9175,8 +9175,8 @@ var tp = function() {
9175
9175
  } }, { key: "maybeParticipantTracksStarted", value: function(u, m) {
9176
9176
  if (m) for (var p in m.tracks) this.maybeEventTrackStarted(p, u, m);
9177
9177
  } }, { key: "compareEqualForRMPUpdateEvent", value: function(u, m) {
9178
- var p, S;
9179
- return u.state === m.state && ((p = u.settings) === null || p === void 0 ? void 0 : p.volume) === ((S = m.settings) === null || S === void 0 ? void 0 : S.volume);
9178
+ var p, k;
9179
+ return u.state === m.state && ((p = u.settings) === null || p === void 0 ? void 0 : p.volume) === ((k = m.settings) === null || k === void 0 ? void 0 : k.volume);
9180
9180
  } }, { key: "emitDailyJSEvent", value: function(u) {
9181
9181
  try {
9182
9182
  u.callClientId = this.callClientId, this.emit(u.action, u);
@@ -9192,11 +9192,11 @@ var tp = function() {
9192
9192
  } }, { key: "_updateCallState", value: function(u) {
9193
9193
  var m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this._isPreparingToJoin;
9194
9194
  if (u !== this._callState || m !== this._isPreparingToJoin) {
9195
- var p = this._callState, S = this._isPreparingToJoin;
9195
+ var p = this._callState, k = this._isPreparingToJoin;
9196
9196
  this._callState = u, this._isPreparingToJoin = m;
9197
- var k = this._callState === Ft;
9198
- this.updateShowAndroidOngoingMeetingNotification(k);
9199
- var M = bn(p, S), O = bn(this._callState, this._isPreparingToJoin);
9197
+ var S = this._callState === Ft;
9198
+ this.updateShowAndroidOngoingMeetingNotification(S);
9199
+ var M = bn(p, k), O = bn(this._callState, this._isPreparingToJoin);
9200
9200
  M !== O && (this.updateKeepDeviceAwake(O), this.updateDeviceAudioMode(O), this.updateNoOpRecordingEnsuringBackgroundContinuity(O));
9201
9201
  }
9202
9202
  } }, { key: "resetMeetingDependentVars", value: function() {
@@ -9210,12 +9210,12 @@ var tp = function() {
9210
9210
  }
9211
9211
  } }, { key: "updateShowAndroidOngoingMeetingNotification", value: function(u) {
9212
9212
  if (ce() && this.nativeUtils().setShowOngoingMeetingNotification) {
9213
- var m, p, S, k;
9213
+ var m, p, k, S;
9214
9214
  if (this.properties.reactNativeConfig && this.properties.reactNativeConfig.androidInCallNotification) {
9215
9215
  var M = this.properties.reactNativeConfig.androidInCallNotification;
9216
- m = M.title, p = M.subtitle, S = M.iconName, k = M.disableForCustomOverride;
9216
+ m = M.title, p = M.subtitle, k = M.iconName, S = M.disableForCustomOverride;
9217
9217
  }
9218
- k && (u = !1), this.nativeUtils().setShowOngoingMeetingNotification(u, m, p, S, this.callClientId);
9218
+ S && (u = !1), this.nativeUtils().setShowOngoingMeetingNotification(u, m, p, k, this.callClientId);
9219
9219
  }
9220
9220
  } }, { key: "updateNoOpRecordingEnsuringBackgroundContinuity", value: function(u) {
9221
9221
  ce() && this.nativeUtils().enableNoOpRecordingEnsuringBackgroundContinuity && this.nativeUtils().enableNoOpRecordingEnsuringBackgroundContinuity(u);
@@ -9224,8 +9224,8 @@ var tp = function() {
9224
9224
  if (ce()) {
9225
9225
  var m = (u = this._callMachine()) === null || u === void 0 || (u = u.store) === null || u === void 0 ? void 0 : u.getState();
9226
9226
  for (var p in m == null ? void 0 : m.streams) {
9227
- var S = m.streams[p];
9228
- S && S.pendingTrack && S.pendingTrack.kind === "audio" && (S.pendingTrack.enabled = this._hasNativeAudioFocus);
9227
+ var k = m.streams[p];
9228
+ k && k.pendingTrack && k.pendingTrack.kind === "audio" && (k.pendingTrack.enabled = this._hasNativeAudioFocus);
9229
9229
  }
9230
9230
  }
9231
9231
  } }, { key: "disableReactNativeAutoDeviceManagement", value: function(u) {
@@ -9255,19 +9255,19 @@ var tp = function() {
9255
9255
  p._callMachineInitialized ? (p.sendMessageToCallMachine({ action: sn, level: "warn", code: this.allowMultipleCallInstances ? 9993 : 9992 }), p._delayDuplicateInstanceLog = !1) : p._delayDuplicateInstanceLog = !0;
9256
9256
  }
9257
9257
  } }, { key: "_maybeSendToSentry", value: function(u) {
9258
- var m, p, S, k;
9258
+ var m, p, k, S;
9259
9259
  if (!((m = u.error) !== null && m !== void 0 && m.type && (![Od, Ad, No].includes(u.error.type) || u.error.type === No && u.error.msg.includes("deleted")))) {
9260
9260
  var M = (p = this.properties) !== null && p !== void 0 && p.url ? new URL(this.properties.url) : void 0, O = "production";
9261
9261
  M && M.host.includes(".staging.daily") && (O = "staging");
9262
9262
  var R, N, G, se, Pe, lt = function(vr) {
9263
9263
  const wr = [Ku(), qu(), yd(), md(), xd(), Cd(), Yu(), _d()];
9264
- return vr.autoSessionTracking !== !1 && wr.push(kd()), wr;
9264
+ return vr.autoSessionTracking !== !1 && wr.push(Sd()), wr;
9265
9265
  }({}).filter(function(vr) {
9266
9266
  return !["BrowserApiErrors", "Breadcrumbs", "GlobalHandlers"].includes(vr.name);
9267
- }), ct = new id({ dsn: "https://f10f1c81e5d44a4098416c0867a8b740@o77906.ingest.sentry.io/168844", transport: cd, stackParser: fd, integrations: lt, environment: O }), ke = new Dt();
9268
- if (ke.setClient(ct), ct.init(), this.session_id && ke.setExtra("sessionId", this.session_id), this.properties) {
9267
+ }), ct = new id({ dsn: "https://f10f1c81e5d44a4098416c0867a8b740@o77906.ingest.sentry.io/168844", transport: cd, stackParser: fd, integrations: lt, environment: O }), Se = new Dt();
9268
+ if (Se.setClient(ct), ct.init(), this.session_id && Se.setExtra("sessionId", this.session_id), this.properties) {
9269
9269
  var ie = H({}, this.properties);
9270
- ie.userName = ie.userName ? "[Filtered]" : void 0, ie.userData = ie.userData ? "[Filtered]" : void 0, ie.token = ie.token ? "[Filtered]" : void 0, ke.setExtra("properties", ie);
9270
+ ie.userName = ie.userName ? "[Filtered]" : void 0, ie.userData = ie.userData ? "[Filtered]" : void 0, ie.token = ie.token ? "[Filtered]" : void 0, Se.setExtra("properties", ie);
9271
9271
  }
9272
9272
  if (M) {
9273
9273
  var Ye = M.searchParams.get("domain");
@@ -9275,11 +9275,11 @@ var tp = function() {
9275
9275
  var yr = M.host.match(/(.*?)\./);
9276
9276
  Ye = yr && yr[1] || "";
9277
9277
  }
9278
- Ye && ke.setTag("domain", Ye);
9278
+ Ye && Se.setTag("domain", Ye);
9279
9279
  }
9280
- u.error && (ke.setTag("fatalErrorType", u.error.type), ke.setExtra("errorDetails", u.error.details), !((R = u.error.details) === null || R === void 0) && R.uri && ke.setTag("serverAddress", u.error.details.uri), !((N = u.error.details) === null || N === void 0) && N.workerGroup && ke.setTag("workerGroup", u.error.details.workerGroup), !((G = u.error.details) === null || G === void 0) && G.geoGroup && ke.setTag("geoGroup", u.error.details.geoGroup), !((se = u.error.details) === null || se === void 0) && se.on && ke.setTag("connectionAttempt", u.error.details.on), (Pe = u.error.details) !== null && Pe !== void 0 && Pe.bundleUrl && (ke.setTag("bundleUrl", u.error.details.bundleUrl), ke.setTag("bundleError", u.error.details.sourceError.type))), ke.setTags({ callMode: this._callObjectMode ? ce() ? "reactNative" : (S = this.properties) !== null && S !== void 0 && (S = S.dailyConfig) !== null && S !== void 0 && (S = S.callMode) !== null && S !== void 0 && S.includes("prebuilt") ? this.properties.dailyConfig.callMode : "custom" : "prebuilt-frame", version: n.version() });
9281
- var Vr = ((k = u.error) === null || k === void 0 ? void 0 : k.msg) || u.errorMsg;
9282
- ke.captureException(new Error(Vr));
9280
+ u.error && (Se.setTag("fatalErrorType", u.error.type), Se.setExtra("errorDetails", u.error.details), !((R = u.error.details) === null || R === void 0) && R.uri && Se.setTag("serverAddress", u.error.details.uri), !((N = u.error.details) === null || N === void 0) && N.workerGroup && Se.setTag("workerGroup", u.error.details.workerGroup), !((G = u.error.details) === null || G === void 0) && G.geoGroup && Se.setTag("geoGroup", u.error.details.geoGroup), !((se = u.error.details) === null || se === void 0) && se.on && Se.setTag("connectionAttempt", u.error.details.on), (Pe = u.error.details) !== null && Pe !== void 0 && Pe.bundleUrl && (Se.setTag("bundleUrl", u.error.details.bundleUrl), Se.setTag("bundleError", u.error.details.sourceError.type))), Se.setTags({ callMode: this._callObjectMode ? ce() ? "reactNative" : (k = this.properties) !== null && k !== void 0 && (k = k.dailyConfig) !== null && k !== void 0 && (k = k.callMode) !== null && k !== void 0 && k.includes("prebuilt") ? this.properties.dailyConfig.callMode : "custom" : "prebuilt-frame", version: n.version() });
9281
+ var Vr = ((S = u.error) === null || S === void 0 ? void 0 : S.msg) || u.errorMsg;
9282
+ Se.captureException(new Error(Vr));
9283
9283
  }
9284
9284
  } }, { key: "_callMachine", value: function() {
9285
9285
  var u;
@@ -9305,16 +9305,16 @@ var tp = function() {
9305
9305
  if (le(), !u || !u.contentWindow || typeof u.src != "string") throw new Error("DailyIframe::Wrap needs an iframe-like first argument");
9306
9306
  return m.layout || (m.customLayout ? m.layout = "custom-v1" : m.layout = "browser"), new n(u, m);
9307
9307
  } }, { key: "createFrame", value: function(u, m) {
9308
- var p, S;
9309
- le(), u && m ? (p = u, S = m) : u && u.append ? (p = u, S = {}) : (p = document.body, S = u || {});
9310
- var k = S.iframeStyle;
9311
- k || (k = p === document.body ? { position: "fixed", border: "1px solid black", backgroundColor: "white", width: "375px", height: "450px", right: "1em", bottom: "1em" } : { border: 0, width: "100%", height: "100%" });
9308
+ var p, k;
9309
+ le(), u && m ? (p = u, k = m) : u && u.append ? (p = u, k = {}) : (p = document.body, k = u || {});
9310
+ var S = k.iframeStyle;
9311
+ S || (S = p === document.body ? { position: "fixed", border: "1px solid black", backgroundColor: "white", width: "375px", height: "450px", right: "1em", bottom: "1em" } : { border: 0, width: "100%", height: "100%" });
9312
9312
  var M = document.createElement("iframe");
9313
- window.navigator && window.navigator.userAgent.match(/Chrome\/61\./) ? M.allow = "microphone, camera" : M.allow = "microphone; camera; autoplay; display-capture; screen-wake-lock", M.style.visibility = "hidden", p.appendChild(M), M.style.visibility = null, Object.keys(k).forEach(function(O) {
9314
- return M.style[O] = k[O];
9315
- }), S.layout || (S.customLayout ? S.layout = "custom-v1" : S.layout = "browser");
9313
+ window.navigator && window.navigator.userAgent.match(/Chrome\/61\./) ? M.allow = "microphone, camera" : M.allow = "microphone; camera; autoplay; display-capture; screen-wake-lock", M.style.visibility = "hidden", p.appendChild(M), M.style.visibility = null, Object.keys(S).forEach(function(O) {
9314
+ return M.style[O] = S[O];
9315
+ }), k.layout || (k.customLayout ? k.layout = "custom-v1" : k.layout = "browser");
9316
9316
  try {
9317
- return new n(M, S);
9317
+ return new n(M, k);
9318
9318
  } catch (O) {
9319
9319
  throw p.removeChild(M), O;
9320
9320
  }
@@ -9335,7 +9335,7 @@ var tp = function() {
9335
9335
  var u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : void 0;
9336
9336
  return u ? It[u] : Object.values(It)[0];
9337
9337
  } }]);
9338
- var e, t, r, i, s, o, a, l, c, d, h, f, g, y, b, v, w, x, T, P, D, B, I, q, Q, Z, z, $, j, ee, U, F, V, Se, fe, ne, _e, qe;
9338
+ var e, t, r, i, s, o, a, l, c, d, h, f, g, y, b, v, w, x, T, P, D, B, I, q, Q, Z, z, $, j, ee, U, F, V, ke, fe, ne, _e, qe;
9339
9339
  }();
9340
9340
  function ya(n) {
9341
9341
  if (n.extension) {
@@ -9409,7 +9409,7 @@ function Fe(n) {
9409
9409
  function le() {
9410
9410
  if (ce()) throw new Error("This daily-js method is not currently supported in React Native");
9411
9411
  }
9412
- function kr() {
9412
+ function Sr() {
9413
9413
  if (!ce()) throw new Error("This daily-js method is only supported in React Native");
9414
9414
  }
9415
9415
  function Yl(n) {
@@ -9512,7 +9512,7 @@ function np(n) {
9512
9512
  return !(r.source !== void 0 && !function(o) {
9513
9513
  if (o.source === "default") return o.type = "default", !0;
9514
9514
  if (o.source instanceof ArrayBuffer) return !0;
9515
- if (Sn(o.source)) return o.type = "url", !!function(c) {
9515
+ if (kn(o.source)) return o.type = "url", !!function(c) {
9516
9516
  var d = new URL(c), h = d.pathname;
9517
9517
  if (d.protocol === "data:") try {
9518
9518
  var f = h.substring(h.indexOf(":") + 1, h.indexOf(";")).split("/")[1];
@@ -9557,7 +9557,7 @@ function rc(n) {
9557
9557
  switch (a) {
9558
9558
  case "iconPath":
9559
9559
  case "iconPathDarkMode":
9560
- if (!Sn(l)) return console.error("customTrayButton ".concat(a, " should be a url.")), !1;
9560
+ if (!kn(l)) return console.error("customTrayButton ".concat(a, " should be a url.")), !1;
9561
9561
  break;
9562
9562
  case "visualState":
9563
9563
  if (!["default", "sidebar-open", "active"].includes(l)) return console.error("customTrayButton ".concat(a, " should be ").concat(c, ". Got: ").concat(l)), !1;
@@ -9590,11 +9590,11 @@ function nc(n) {
9590
9590
  if (typeof d != "string") return t(s, e(c)), !1;
9591
9591
  break;
9592
9592
  case "iconURL":
9593
- if (!Sn(d)) return t(s, "".concat(c, " should be a url")), !1;
9593
+ if (!kn(d)) return t(s, "".concat(c, " should be a url")), !1;
9594
9594
  break;
9595
9595
  case "src":
9596
9596
  if ("srcdoc" in n[s]) return t(s, "cannot have both src and srcdoc"), !1;
9597
- if (!Sn(d)) return t(s, 'src "'.concat(d, '" is not a valid URL')), !1;
9597
+ if (!kn(d)) return t(s, 'src "'.concat(d, '" is not a valid URL')), !1;
9598
9598
  break;
9599
9599
  case "srcdoc":
9600
9600
  if ("src" in n[s]) return t(s, "cannot have both src and srcdoc"), !1;
@@ -9642,7 +9642,7 @@ function wa(n, e) {
9642
9642
  if (i && typeof i != "string") throw new Error("callerId must be of type string");
9643
9643
  if (i && !r.startsWith("+")) throw new Error("callerId is only valid when transferring to a PSTN number");
9644
9644
  }
9645
- function Sa(n) {
9645
+ function ka(n) {
9646
9646
  if (de(n) !== "object") throw new Error('RemoteMediaPlayerSettings: must be "object" type');
9647
9647
  if (n.state && !Object.values(Di).includes(n.state)) throw new Error("Invalid value for RemoteMediaPlayerSettings.state, valid values are: " + JSON.stringify(Di));
9648
9648
  if (n.volume) {
@@ -9650,7 +9650,7 @@ function Sa(n) {
9650
9650
  if (n.volume < 0 || n.volume > 2) throw new Error("RemoteMediaPlayerSettings.volume: must be between 0.0 - 2.0");
9651
9651
  }
9652
9652
  }
9653
- function ka(n, e, t) {
9653
+ function Sa(n, e, t) {
9654
9654
  return !(typeof n != "number" || n < e || n > t);
9655
9655
  }
9656
9656
  function di(n, e) {
@@ -9664,7 +9664,7 @@ function sc(n, e, t, r) {
9664
9664
  }
9665
9665
  var oc = {};
9666
9666
  sc(oc, "DailyRTVIMessageType", () => Bi);
9667
- sc(oc, "DailyTransport", () => kt);
9667
+ sc(oc, "DailyTransport", () => St);
9668
9668
  class et {
9669
9669
  /**
9670
9670
  * Converts Float32Array of amplitude data to ArrayBuffer in Int16Array format
@@ -10876,7 +10876,7 @@ class bp {
10876
10876
  return this._proxy;
10877
10877
  }
10878
10878
  }
10879
- class kt extends hl {
10879
+ class St extends hl {
10880
10880
  constructor(e = {}) {
10881
10881
  var i;
10882
10882
  super(), this._botId = "", this._selectedCam = {}, this._selectedMic = {}, this._selectedSpeaker = {}, this._currentAudioTrack = null, this._audioQueue = [], this._callbacks = {};
@@ -10888,7 +10888,7 @@ class kt extends hl {
10888
10888
  }
10889
10889
  setupRecorder() {
10890
10890
  this._mediaStreamRecorder = new mp({
10891
- sampleRate: kt.RECORDER_SAMPLE_RATE
10891
+ sampleRate: St.RECORDER_SAMPLE_RATE
10892
10892
  });
10893
10893
  }
10894
10894
  handleUserAudioStream(e) {
@@ -10915,7 +10915,7 @@ class kt extends hl {
10915
10915
  const s = new Uint8Array(i);
10916
10916
  return btoa(String.fromCharCode(...s));
10917
10917
  }),
10918
- sampleRate: kt.RECORDER_SAMPLE_RATE,
10918
+ sampleRate: St.RECORDER_SAMPLE_RATE,
10919
10919
  numChannels: 1
10920
10920
  }
10921
10921
  };
@@ -11022,7 +11022,7 @@ class kt extends hl {
11022
11022
  try {
11023
11023
  ae.info("[Daily Transport] Initializing recording"), await this._mediaStreamRecorder.record((r) => {
11024
11024
  this.handleUserAudioStream(r.mono);
11025
- }, kt.RECORDER_CHUNK_SIZE), (t = (e = this._callbacks).onAudioBufferingStarted) == null || t.call(e), ae.info("[Daily Transport] Recording Initialized");
11025
+ }, St.RECORDER_CHUNK_SIZE), (t = (e = this._callbacks).onAudioBufferingStarted) == null || t.call(e), ae.info("[Daily Transport] Recording Initialized");
11026
11026
  } catch (r) {
11027
11027
  r.message.includes("Already recording") || ae.error("Error starting recording", r);
11028
11028
  }
@@ -11213,8 +11213,8 @@ class kt extends hl {
11213
11213
  }
11214
11214
  }
11215
11215
  }
11216
- kt.RECORDER_SAMPLE_RATE = 16e3;
11217
- kt.RECORDER_CHUNK_SIZE = 512;
11216
+ St.RECORDER_SAMPLE_RATE = 16e3;
11217
+ St.RECORDER_CHUNK_SIZE = 512;
11218
11218
  const $t = (n) => ({
11219
11219
  id: n.user_id,
11220
11220
  local: n.local,
@@ -11372,8 +11372,8 @@ const oe = us(!1), Nt = "floe_nudge_state", Ea = "floe_nudge_sound_played", xr =
11372
11372
  if (!U) return;
11373
11373
  const F = new U();
11374
11374
  F.state === "suspended" && F.resume();
11375
- const V = F.currentTime, Se = F.createOscillator(), fe = F.createGain();
11376
- Se.connect(fe), fe.connect(F.destination), Se.frequency.setValueAtTime(659, V), Se.type = "sine", fe.gain.setValueAtTime(0.25, V), fe.gain.exponentialRampToValueAtTime(0.01, V + 0.3), Se.start(V), Se.stop(V + 0.3);
11375
+ const V = F.currentTime, ke = F.createOscillator(), fe = F.createGain();
11376
+ ke.connect(fe), fe.connect(F.destination), ke.frequency.setValueAtTime(659, V), ke.type = "sine", fe.gain.setValueAtTime(0.25, V), fe.gain.exponentialRampToValueAtTime(0.01, V + 0.3), ke.start(V), ke.stop(V + 0.3);
11377
11377
  const ne = F.createOscillator(), _e = F.createGain();
11378
11378
  ne.connect(_e), _e.connect(F.destination), ne.frequency.setValueAtTime(784, V + 0.12), ne.type = "sine", _e.gain.setValueAtTime(0, V), _e.gain.setValueAtTime(0.2, V + 0.12), _e.gain.exponentialRampToValueAtTime(0.01, V + 0.5), ne.start(V + 0.12), ne.stop(V + 0.5);
11379
11379
  const qe = F.createOscillator(), u = F.createGain();
@@ -11531,14 +11531,14 @@ function ue(n, e = "") {
11531
11531
  }, getRegex: () => new RegExp(t, e) };
11532
11532
  return r;
11533
11533
  }
11534
- var Sp = (() => {
11534
+ var kp = (() => {
11535
11535
  try {
11536
11536
  return !!new RegExp("(?<=1)(?<!1)");
11537
11537
  } catch {
11538
11538
  return !1;
11539
11539
  }
11540
- })(), Ne = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (n) => new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}#`), htmlBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}<(?:[a-z].*>|!--)`, "i"), blockquoteBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}>`) }, kp = /^(?:[ \t]*(?:\n|$))+/, xp = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, _p = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, qr = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Cp = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, hs = / {0,3}(?:[*+-]|\d{1,9}[.)])/, uc = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, dc = ue(uc).replace(/bull/g, hs).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Ep = ue(uc).replace(/bull/g, hs).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), ps = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Tp = /^[^\n]+/, gs = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Mp = ue(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", gs).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ap = ue(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, hs).getRegex(), Hn = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", fs = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Op = ue("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", fs).replace("tag", Hn).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), hc = ue(ps).replace("hr", qr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Hn).getRegex(), Dp = ue(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", hc).getRegex(), ms = { blockquote: Dp, code: xp, def: Mp, fences: _p, heading: Cp, hr: qr, html: Op, lheading: dc, list: Ap, newline: kp, paragraph: hc, table: jt, text: Tp }, Ta = ue("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", qr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Hn).getRegex(), Lp = { ...ms, lheading: Ep, table: Ta, paragraph: ue(ps).replace("hr", qr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ta).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Hn).getRegex() }, Pp = { ...ms, html: ue(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", fs).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: jt, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: ue(ps).replace("hr", qr).replace("heading", ` *#{1,6} *[^
11541
- ]`).replace("lheading", dc).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Ip = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Rp = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, pc = /^( {2,}|\\)\n(?!\s*$)/, $p = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, qn = /[\p{P}\p{S}]/u, bs = /[\s\p{P}\p{S}]/u, gc = /[^\s\p{P}\p{S}]/u, Np = ue(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, bs).getRegex(), fc = /(?!~)[\p{P}\p{S}]/u, Bp = /(?!~)[\s\p{P}\p{S}]/u, Fp = /(?:[^\s\p{P}\p{S}]|~)/u, mc = /(?![*_])[\p{P}\p{S}]/u, jp = /(?![*_])[\s\p{P}\p{S}]/u, Up = /(?:[^\s\p{P}\p{S}]|[*_])/u, zp = ue(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Sp ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), bc = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Hp = ue(bc, "u").replace(/punct/g, qn).getRegex(), qp = ue(bc, "u").replace(/punct/g, fc).getRegex(), yc = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Vp = ue(yc, "gu").replace(/notPunctSpace/g, gc).replace(/punctSpace/g, bs).replace(/punct/g, qn).getRegex(), Kp = ue(yc, "gu").replace(/notPunctSpace/g, Fp).replace(/punctSpace/g, Bp).replace(/punct/g, fc).getRegex(), Wp = ue("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, gc).replace(/punctSpace/g, bs).replace(/punct/g, qn).getRegex(), Jp = ue(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, mc).getRegex(), Gp = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", Yp = ue(Gp, "gu").replace(/notPunctSpace/g, Up).replace(/punctSpace/g, jp).replace(/punct/g, mc).getRegex(), Qp = ue(/\\(punct)/, "gu").replace(/punct/g, qn).getRegex(), Xp = ue(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Zp = ue(fs).replace("(?:-->|$)", "-->").getRegex(), eg = ue("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Zp).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), On = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, tg = ue(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", On).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), vc = ue(/^!?\[(label)\]\[(ref)\]/).replace("label", On).replace("ref", gs).getRegex(), wc = ue(/^!?\[(ref)\](?:\[\])?/).replace("ref", gs).getRegex(), rg = ue("reflink|nolink(?!\\()", "g").replace("reflink", vc).replace("nolink", wc).getRegex(), Ma = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, ys = { _backpedal: jt, anyPunctuation: Qp, autolink: Xp, blockSkip: zp, br: pc, code: Rp, del: jt, delLDelim: jt, delRDelim: jt, emStrongLDelim: Hp, emStrongRDelimAst: Vp, emStrongRDelimUnd: Wp, escape: Ip, link: tg, nolink: wc, punctuation: Np, reflink: vc, reflinkSearch: rg, tag: eg, text: $p, url: jt }, ng = { ...ys, link: ue(/^!?\[(label)\]\((.*?)\)/).replace("label", On).getRegex(), reflink: ue(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", On).getRegex() }, Fi = { ...ys, emStrongRDelimAst: Kp, emStrongLDelim: qp, delLDelim: Jp, delRDelim: Yp, url: ue(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Ma).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: ue(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Ma).getRegex() }, ig = { ...Fi, br: ue(pc).replace("{2,}", "*").getRegex(), text: ue(Fi.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, cn = { normal: ms, gfm: Lp, pedantic: Pp }, _r = { normal: ys, gfm: Fi, breaks: ig, pedantic: ng }, sg = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, Aa = (n) => sg[n];
11540
+ })(), Ne = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (n) => new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}#`), htmlBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}<(?:[a-z].*>|!--)`, "i"), blockquoteBeginRegex: (n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}>`) }, Sp = /^(?:[ \t]*(?:\n|$))+/, xp = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, _p = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, qr = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Cp = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, hs = / {0,3}(?:[*+-]|\d{1,9}[.)])/, uc = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, dc = ue(uc).replace(/bull/g, hs).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Ep = ue(uc).replace(/bull/g, hs).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), ps = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Tp = /^[^\n]+/, gs = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Mp = ue(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", gs).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ap = ue(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, hs).getRegex(), Hn = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", fs = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Op = ue("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", fs).replace("tag", Hn).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), hc = ue(ps).replace("hr", qr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Hn).getRegex(), Dp = ue(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", hc).getRegex(), ms = { blockquote: Dp, code: xp, def: Mp, fences: _p, heading: Cp, hr: qr, html: Op, lheading: dc, list: Ap, newline: Sp, paragraph: hc, table: jt, text: Tp }, Ta = ue("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", qr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Hn).getRegex(), Lp = { ...ms, lheading: Ep, table: Ta, paragraph: ue(ps).replace("hr", qr).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Ta).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Hn).getRegex() }, Pp = { ...ms, html: ue(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", fs).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: jt, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: ue(ps).replace("hr", qr).replace("heading", ` *#{1,6} *[^
11541
+ ]`).replace("lheading", dc).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Ip = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Rp = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, pc = /^( {2,}|\\)\n(?!\s*$)/, $p = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, qn = /[\p{P}\p{S}]/u, bs = /[\s\p{P}\p{S}]/u, gc = /[^\s\p{P}\p{S}]/u, Np = ue(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, bs).getRegex(), fc = /(?!~)[\p{P}\p{S}]/u, Bp = /(?!~)[\s\p{P}\p{S}]/u, Fp = /(?:[^\s\p{P}\p{S}]|~)/u, mc = /(?![*_])[\p{P}\p{S}]/u, jp = /(?![*_])[\s\p{P}\p{S}]/u, Up = /(?:[^\s\p{P}\p{S}]|[*_])/u, zp = ue(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", kp ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), bc = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Hp = ue(bc, "u").replace(/punct/g, qn).getRegex(), qp = ue(bc, "u").replace(/punct/g, fc).getRegex(), yc = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Vp = ue(yc, "gu").replace(/notPunctSpace/g, gc).replace(/punctSpace/g, bs).replace(/punct/g, qn).getRegex(), Kp = ue(yc, "gu").replace(/notPunctSpace/g, Fp).replace(/punctSpace/g, Bp).replace(/punct/g, fc).getRegex(), Wp = ue("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, gc).replace(/punctSpace/g, bs).replace(/punct/g, qn).getRegex(), Jp = ue(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, mc).getRegex(), Gp = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", Yp = ue(Gp, "gu").replace(/notPunctSpace/g, Up).replace(/punctSpace/g, jp).replace(/punct/g, mc).getRegex(), Qp = ue(/\\(punct)/, "gu").replace(/punct/g, qn).getRegex(), Xp = ue(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Zp = ue(fs).replace("(?:-->|$)", "-->").getRegex(), eg = ue("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Zp).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), On = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, tg = ue(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", On).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), vc = ue(/^!?\[(label)\]\[(ref)\]/).replace("label", On).replace("ref", gs).getRegex(), wc = ue(/^!?\[(ref)\](?:\[\])?/).replace("ref", gs).getRegex(), rg = ue("reflink|nolink(?!\\()", "g").replace("reflink", vc).replace("nolink", wc).getRegex(), Ma = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, ys = { _backpedal: jt, anyPunctuation: Qp, autolink: Xp, blockSkip: zp, br: pc, code: Rp, del: jt, delLDelim: jt, delRDelim: jt, emStrongLDelim: Hp, emStrongRDelimAst: Vp, emStrongRDelimUnd: Wp, escape: Ip, link: tg, nolink: wc, punctuation: Np, reflink: vc, reflinkSearch: rg, tag: eg, text: $p, url: jt }, ng = { ...ys, link: ue(/^!?\[(label)\]\((.*?)\)/).replace("label", On).getRegex(), reflink: ue(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", On).getRegex() }, Fi = { ...ys, emStrongRDelimAst: Kp, emStrongLDelim: qp, delLDelim: Jp, delRDelim: Yp, url: ue(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Ma).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: ue(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Ma).getRegex() }, ig = { ...Fi, br: ue(pc).replace("{2,}", "*").getRegex(), text: ue(Fi.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, cn = { normal: ms, gfm: Lp, pedantic: Pp }, _r = { normal: ys, gfm: Fi, breaks: ig, pedantic: ng }, sg = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, Aa = (n) => sg[n];
11542
11542
  function ut(n, e) {
11543
11543
  if (e) {
11544
11544
  if (Ne.escapeTest.test(n)) return n.replace(Ne.escapeReplace, Aa);
@@ -12769,7 +12769,7 @@ const dg = ({
12769
12769
  const V = () => {
12770
12770
  var ne;
12771
12771
  F || !Z.trim() || !P || (P(Z.trim()), z(""), (ne = I.current) == null || ne.focus());
12772
- }, Se = () => {
12772
+ }, ke = () => {
12773
12773
  if (e === "connecting")
12774
12774
  return (v == null ? void 0 : v.message) || "Connecting...";
12775
12775
  if (w && t)
@@ -12817,7 +12817,7 @@ const dg = ({
12817
12817
  case "guiding":
12818
12818
  return "#22d3ee";
12819
12819
  case "paused":
12820
- return "#f59e0b";
12820
+ return "#6b7280";
12821
12821
  default:
12822
12822
  return "#6b7280";
12823
12823
  }
@@ -12929,7 +12929,7 @@ const dg = ({
12929
12929
  }
12930
12930
  }
12931
12931
  ),
12932
- Se()
12932
+ ke()
12933
12933
  ]
12934
12934
  }
12935
12935
  )
@@ -13169,8 +13169,8 @@ const dg = ({
13169
13169
  {
13170
13170
  style: {
13171
13171
  padding: "14px 16px",
13172
- background: "rgba(245, 158, 11, 0.1)",
13173
- borderBottom: "1px solid rgba(245, 158, 11, 0.2)",
13172
+ background: "rgba(255, 255, 255, 0.04)",
13173
+ borderBottom: "1px solid rgba(255, 255, 255, 0.06)",
13174
13174
  display: "flex",
13175
13175
  flexDirection: "column",
13176
13176
  alignItems: "center",
@@ -13178,41 +13178,40 @@ const dg = ({
13178
13178
  },
13179
13179
  children: [
13180
13180
  /* @__PURE__ */ te("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
13181
- /* @__PURE__ */ te("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "#f59e0b", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
13181
+ /* @__PURE__ */ te("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "rgba(255, 255, 255, 0.5)", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
13182
13182
  /* @__PURE__ */ A("circle", { cx: "12", cy: "12", r: "10" }),
13183
13183
  /* @__PURE__ */ A("line", { x1: "10", y1: "15", x2: "10", y2: "9" }),
13184
13184
  /* @__PURE__ */ A("line", { x1: "14", y1: "15", x2: "14", y2: "9" })
13185
13185
  ] }),
13186
- /* @__PURE__ */ A("span", { style: { color: "#f59e0b", fontSize: "13px", fontWeight: "600" }, children: "Session Paused" })
13186
+ /* @__PURE__ */ A("span", { style: { color: "rgba(255, 255, 255, 0.7)", fontSize: "12px", fontWeight: "600" }, children: "Session Paused" })
13187
13187
  ] }),
13188
- /* @__PURE__ */ A("div", { style: { color: "rgba(255, 255, 255, 0.5)", fontSize: "12px", textAlign: "center", lineHeight: "1.4" }, children: "You were inactive. Click Resume to continue." }),
13188
+ /* @__PURE__ */ A("div", { style: { color: "rgba(255, 255, 255, 0.4)", fontSize: "11px", textAlign: "center", lineHeight: "1.4" }, children: "You were inactive. Click Resume to continue." }),
13189
13189
  y && /* @__PURE__ */ te(
13190
13190
  "button",
13191
13191
  {
13192
13192
  onClick: y,
13193
13193
  style: {
13194
- padding: "8px 20px",
13195
- background: "linear-gradient(135deg, #f59e0b 0%, #d97706 100%)",
13196
- border: "none",
13194
+ padding: "7px 16px",
13195
+ background: "rgba(255, 255, 255, 0.08)",
13196
+ border: "1px solid rgba(255, 255, 255, 0.12)",
13197
13197
  borderRadius: "8px",
13198
- color: "white",
13199
- fontSize: "13px",
13200
- fontWeight: "600",
13198
+ color: "rgba(255, 255, 255, 0.9)",
13199
+ fontSize: "12px",
13200
+ fontWeight: "500",
13201
13201
  cursor: "pointer",
13202
13202
  display: "flex",
13203
13203
  alignItems: "center",
13204
13204
  gap: "6px",
13205
- boxShadow: "0 4px 12px rgba(245, 158, 11, 0.3)",
13206
13205
  transition: "all 0.2s ease"
13207
13206
  },
13208
13207
  onMouseEnter: (ne) => {
13209
- ne.currentTarget.style.transform = "scale(1.02)";
13208
+ ne.currentTarget.style.background = "rgba(255, 255, 255, 0.14)";
13210
13209
  },
13211
13210
  onMouseLeave: (ne) => {
13212
- ne.currentTarget.style.transform = "scale(1)";
13211
+ ne.currentTarget.style.background = "rgba(255, 255, 255, 0.08)";
13213
13212
  },
13214
13213
  children: [
13215
- /* @__PURE__ */ A("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ A("polygon", { points: "5 3 19 12 5 21 5 3" }) }),
13214
+ /* @__PURE__ */ A("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ A("polygon", { points: "5 3 19 12 5 21 5 3" }) }),
13216
13215
  "Resume"
13217
13216
  ]
13218
13217
  }
@@ -13435,7 +13434,7 @@ const dg = ({
13435
13434
  color: !r && t && e !== "speaking" ? "#ef4444" : "rgba(255, 255, 255, 0.5)",
13436
13435
  letterSpacing: "0.01em"
13437
13436
  },
13438
- children: Se()
13437
+ children: ke()
13439
13438
  }
13440
13439
  )
13441
13440
  ] }) })
@@ -13827,7 +13826,7 @@ const dg = ({
13827
13826
  userTranscript: i == null ? void 0 : i.substring(0, 30)
13828
13827
  });
13829
13828
  }, [n, t, e, s, U, f.length, r, i]);
13830
- const { currentTranscript: V, currentRole: Se } = Ua(() => t === "speaking" && r ? { currentTranscript: r, currentRole: "assistant" } : t === "listening" && i ? { currentTranscript: i, currentRole: "user" } : { currentTranscript: "", currentRole: void 0 }, [t, r, i]), fe = Xe(() => {
13829
+ const { currentTranscript: V, currentRole: ke } = Ua(() => t === "speaking" && r ? { currentTranscript: r, currentRole: "assistant" } : t === "listening" && i ? { currentTranscript: i, currentRole: "user" } : { currentTranscript: "", currentRole: void 0 }, [t, r, i]), fe = Xe(() => {
13831
13830
  F(!0), P == null || P();
13832
13831
  }, [P]), ne = Xe(() => {
13833
13832
  F(!1), T == null || T();
@@ -13858,7 +13857,7 @@ const dg = ({
13858
13857
  voiceEnabled: e,
13859
13858
  messages: f,
13860
13859
  currentTranscript: V,
13861
- currentRole: Se,
13860
+ currentRole: ke,
13862
13861
  screenShareEnabled: s,
13863
13862
  isSpeaking: o || a,
13864
13863
  audioLevels: l,
@@ -13898,7 +13897,7 @@ let Lr = null, Ia = 0;
13898
13897
  function pg() {
13899
13898
  Lr = null;
13900
13899
  }
13901
- function Sc() {
13900
+ function kc() {
13902
13901
  if (Lr && Date.now() - Ia < 500)
13903
13902
  return Lr;
13904
13903
  const n = document.querySelectorAll(
@@ -13939,7 +13938,7 @@ const gg = [
13939
13938
  '[class*="Popover"]:not([aria-hidden="true"])'
13940
13939
  ];
13941
13940
  let un = null, Ra = 0;
13942
- function kc() {
13941
+ function Sc() {
13943
13942
  if (un && Date.now() - Ra < 300)
13944
13943
  return un;
13945
13944
  const n = [], e = /* @__PURE__ */ new Set();
@@ -13962,10 +13961,10 @@ function kc() {
13962
13961
  return un = n, Ra = Date.now(), un;
13963
13962
  }
13964
13963
  function ws(n) {
13965
- return kc().some((t) => t.contains(n));
13964
+ return Sc().some((t) => t.contains(n));
13966
13965
  }
13967
- function Ss(n) {
13968
- const e = Sc();
13966
+ function ks(n) {
13967
+ const e = kc();
13969
13968
  if (e.length === 0) return !0;
13970
13969
  const t = e.some((i) => i.contains(n)), r = e.some((i) => n.contains(i));
13971
13970
  return !!(t || r || ws(n));
@@ -13995,7 +13994,7 @@ function vn(n, e = 10) {
13995
13994
  return !1;
13996
13995
  }
13997
13996
  function xc(n, e = !0) {
13998
- if (n.disabled || n.getAttribute("aria-disabled") === "true" || !Ss(n)) return !1;
13997
+ if (n.disabled || n.getAttribute("aria-disabled") === "true" || !ks(n)) return !1;
13999
13998
  try {
14000
13999
  if (window.getComputedStyle(n).pointerEvents === "none") return !1;
14001
14000
  } catch {
@@ -14165,7 +14164,7 @@ const Ae = class Ae {
14165
14164
  * DOM tree and may be missed by the standard query + visibility filters.
14166
14165
  */
14167
14166
  queryOverlayElements() {
14168
- const e = kc();
14167
+ const e = Sc();
14169
14168
  if (e.length === 0) return [];
14170
14169
  const t = [], r = /* @__PURE__ */ new Set(), i = [
14171
14170
  '[role="option"]',
@@ -14306,7 +14305,7 @@ const Ae = class Ae {
14306
14305
  return !0;
14307
14306
  }
14308
14307
  if (e.getAttribute("aria-hidden") === "true" || !!e.closest('[aria-hidden="true"]')) {
14309
- const a = Sc();
14308
+ const a = kc();
14310
14309
  if (!(a.length > 0 && !a.some((c) => c.contains(e))))
14311
14310
  return !1;
14312
14311
  }
@@ -14394,7 +14393,7 @@ const Ae = class Ae {
14394
14393
  * collapsed accordion. Returns the reason string or null if reachable.
14395
14394
  */
14396
14395
  getBlockedReason(e) {
14397
- return Ss(e) ? yn(e) ? "collapsed-details" : vn(e, 8) ? "collapsed-accordion" : null : "modal";
14396
+ return ks(e) ? yn(e) ? "collapsed-details" : vn(e, 8) ? "collapsed-accordion" : null : "modal";
14398
14397
  }
14399
14398
  processElement(e, t) {
14400
14399
  const r = e.getBoundingClientRect(), i = this.computeAccessibleName(e);
@@ -15669,7 +15668,7 @@ class yg {
15669
15668
  if (["script", "style", "noscript", "template", "svg", "path"].includes(t))
15670
15669
  return !0;
15671
15670
  const r = window.getComputedStyle(e);
15672
- return !!(r.display === "none" || r.visibility === "hidden" || r.opacity === "0" || fg(e) || !Ss(e) || yn(e) || vn(e));
15671
+ return !!(r.display === "none" || r.visibility === "hidden" || r.opacity === "0" || fg(e) || !ks(e) || yn(e) || vn(e));
15673
15672
  }
15674
15673
  /**
15675
15674
  * Initialize a MutationObserver that invalidates the shared modal cache
@@ -15791,7 +15790,7 @@ const vg = [
15791
15790
  "nz-option-container",
15792
15791
  ".cdk-overlay-pane",
15793
15792
  ".cdk-virtual-scroll-content-wrapper"
15794
- ], Sg = [
15793
+ ], kg = [
15795
15794
  '[role="option"]',
15796
15795
  '[class*="option"]:not([class*="singleValue"]):not([class*="placeholder"])',
15797
15796
  "nz-option-item",
@@ -15806,7 +15805,7 @@ const vg = [
15806
15805
  'input[class*="Search"]',
15807
15806
  'input[aria-autocomplete="list"]'
15808
15807
  ];
15809
- function kg(n) {
15808
+ function Sg(n) {
15810
15809
  for (const e of vg)
15811
15810
  try {
15812
15811
  const t = document.querySelector(e);
@@ -15861,7 +15860,7 @@ function Br(n, e) {
15861
15860
  for (const l of a) {
15862
15861
  const c = l;
15863
15862
  if (!e(c) || c.getBoundingClientRect().height < 20) continue;
15864
- const h = l.querySelectorAll(Sg);
15863
+ const h = l.querySelectorAll(kg);
15865
15864
  for (const f of h) {
15866
15865
  const g = f, y = g.className || "";
15867
15866
  if (y.toLowerCase().includes("singlevalue") || y.toLowerCase().includes("placeholder"))
@@ -17201,10 +17200,10 @@ const E = class E {
17201
17200
  for (let U = 0; U < h.snapshotLength; U++) {
17202
17201
  const F = h.snapshotItem(U), V = (F.textContent || "").trim();
17203
17202
  if (V.length === 0) continue;
17204
- const Se = V.toLowerCase(), fe = s.length / Se.length, ne = F.getBoundingClientRect();
17203
+ const ke = V.toLowerCase(), fe = s.length / ke.length, ne = F.getBoundingClientRect();
17205
17204
  if (ne.width === 0 || ne.height === 0 || this.isDropdownDisplayValue(F)) continue;
17206
17205
  let _e = fe;
17207
- if (new RegExp(`\\b${E.escapeRegex(s)}\\b`, "i").test(Se))
17206
+ if (new RegExp(`\\b${E.escapeRegex(s)}\\b`, "i").test(ke))
17208
17207
  _e += 0.5;
17209
17208
  else if (fe < 0.5)
17210
17209
  if (ee) {
@@ -17245,8 +17244,8 @@ const E = class E {
17245
17244
  if ($.length !== 0 && $.includes(s)) {
17246
17245
  const j = s.length / $.length, ee = z.getBoundingClientRect(), U = ee.width * ee.height;
17247
17246
  if (U > 0 && U < 5e5) {
17248
- const F = Math.max(0, 50 - U / 1e4), V = j * 50, Se = F + V;
17249
- Se > b && (b = Se, y = z);
17247
+ const F = Math.max(0, 50 - U / 1e4), V = j * 50, ke = F + V;
17248
+ ke > b && (b = ke, y = z);
17250
17249
  }
17251
17250
  }
17252
17251
  }
@@ -18729,7 +18728,7 @@ class Tg {
18729
18728
  t && t.remove(), this.floeCursor && (this.floeCursor.remove(), this.floeCursor = null), this.cursorHasBeenPositioned = !1, (r = this.container) == null || r.remove(), this.container = null, this.highlightEl = null, this.tooltipElement = null;
18730
18729
  }
18731
18730
  }
18732
- class ks {
18731
+ class Ss {
18733
18732
  constructor(e, t = oe) {
18734
18733
  C(this, "logger");
18735
18734
  C(this, "piiPatterns");
@@ -18894,7 +18893,7 @@ class ks {
18894
18893
  }
18895
18894
  document.body.appendChild(g);
18896
18895
  const y = g.contentDocument;
18897
- if (y.open(), y.write(document.documentElement.outerHTML), y.close(), ks.sanitizeClonedDocument(y), t && o.length > 0) {
18896
+ if (y.open(), y.write(document.documentElement.outerHTML), y.close(), Ss.sanitizeClonedDocument(y), t && o.length > 0) {
18898
18897
  const v = y.createElement("style");
18899
18898
  if (v.textContent = `
18900
18899
  .pii-redacted {
@@ -19765,7 +19764,7 @@ class Ac extends bg {
19765
19764
  localStorage.getItem("floe_text_mode") === "true" && (this.textModeEnabled = !0);
19766
19765
  } catch {
19767
19766
  }
19768
- this.sessionId = this.generateSessionId(), this.overlay = new Tg(this.logger), this.capture = new ks(this.config.redactionPatterns, this.logger), this.actionExecutor = new Eg(this.logger), this.pageTracker = new Mg(this, this.logger), this.domIntrospector = new yg(this.logger), he.setDOMIntrospector(this.domIntrospector), this.accessibleSnapshot = new zi(this.logger), this.batchedActionExecutor = new Dg(this.overlay, this.actionExecutor, this.logger), this.batchedActionExecutor.setDOMIntrospector(this.domIntrospector), window.__onboardingSDK = this, this.logger.log("[OnboardingSDK] Initialized with config:", this.config);
19767
+ this.sessionId = this.generateSessionId(), this.overlay = new Tg(this.logger), this.capture = new Ss(this.config.redactionPatterns, this.logger), this.actionExecutor = new Eg(this.logger), this.pageTracker = new Mg(this, this.logger), this.domIntrospector = new yg(this.logger), he.setDOMIntrospector(this.domIntrospector), this.accessibleSnapshot = new zi(this.logger), this.batchedActionExecutor = new Dg(this.overlay, this.actionExecutor, this.logger), this.batchedActionExecutor.setDOMIntrospector(this.domIntrospector), window.__onboardingSDK = this, this.logger.log("[OnboardingSDK] Initialized with config:", this.config);
19769
19768
  }
19770
19769
  /**
19771
19770
  * Generate unique session ID
@@ -19853,7 +19852,7 @@ class Ac extends bg {
19853
19852
  this.logger.log("[OnboardingSDK] 📍 Initialized in minimized state - user clicks to connect"), this._isMinimized = !0, this.agentState = "idle", this.isInitialized = !0, this.renderReactUI(), this.emit("ready");
19854
19853
  return;
19855
19854
  }
19856
- this.transport = new kt(), this.pipecatClient = new We({
19855
+ this.transport = new St(), this.pipecatClient = new We({
19857
19856
  transport: this.transport,
19858
19857
  enableMic: this.textModeEnabled ? !1 : this.config.enableAudio !== !1,
19859
19858
  enableCam: this.config.enableVideo || !1,
@@ -20075,7 +20074,7 @@ class Ac extends bg {
20075
20074
  * Handle minimize from UI - keeps widget visible but collapsed
20076
20075
  */
20077
20076
  handleMinimize() {
20078
- this._isMinimized = !0, this.logger.log("[OnboardingSDK] UI minimized"), this.renderReactUI(), this.emit("minimized");
20077
+ this._isMinimized = !0, this.planProgress = null, this.logger.log("[OnboardingSDK] UI minimized"), this.renderReactUI(), this.emit("minimized");
20079
20078
  }
20080
20079
  /**
20081
20080
  * Handle expand from UI
@@ -20146,7 +20145,7 @@ class Ac extends bg {
20146
20145
  }
20147
20146
  this.connectInFlight = !0;
20148
20147
  try {
20149
- this.agentState = "connecting", this._isMinimized = !1, this.setConnectionProgress("initializing", "Initializing...", 10), this.transport = new kt(), this.setConnectionProgress("authenticating", "Authenticating...", 30), this.pipecatClient = new We({
20148
+ this.agentState = "connecting", this._isMinimized = !1, this.setConnectionProgress("initializing", "Initializing...", 10), this.transport = new St(), this.setConnectionProgress("authenticating", "Authenticating...", 30), this.pipecatClient = new We({
20150
20149
  transport: this.transport,
20151
20150
  enableMic: this.textModeEnabled ? !1 : this.config.enableAudio !== !1,
20152
20151
  enableCam: this.config.enableVideo || !1,
@@ -20281,7 +20280,7 @@ class Ac extends bg {
20281
20280
  * Stop/end a paused session (disconnect and clear paused state)
20282
20281
  */
20283
20282
  async stopSession() {
20284
- this.logger.log("[OnboardingSDK] Stopping paused session"), this.agentState = "idle", this.pausedSessionId = null, this.pendingResumeSessionId = null, this.isConnected && await this.disconnect(), this.renderReactUI(), this.emit("sessionStopped");
20283
+ this.logger.log("[OnboardingSDK] Stopping paused session"), this.agentState = "idle", this.pausedSessionId = null, this.pendingResumeSessionId = null, this.planProgress = null, this.isConnected ? await this.disconnectAndMinimize() : (this._isMinimized = !0, this.renderReactUI()), this.emit("sessionStopped");
20285
20284
  }
20286
20285
  /**
20287
20286
  * Handle screen share toggle from UI
@@ -21067,7 +21066,7 @@ class Ac extends bg {
21067
21066
  * Delegates to shared dropdown-helpers module.
21068
21067
  */
21069
21068
  isDropdownCurrentlyOpen() {
21070
- return kg(he.isVisible);
21069
+ return Sg(he.isVisible);
21071
21070
  }
21072
21071
  /**
21073
21072
  * Find the search input within or associated with a dropdown.