@genpact/genome.mfe.mgtwin-app 1.1.334-alpha → 1.1.335-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. package/dist/{AssessmentAMA-0bd56c86.mjs → AssessmentAMA-77879961.mjs} +4 -4
  2. package/dist/{AssessmentSimulation-f1a2a2fd.mjs → AssessmentSimulation-8c7f6d37.mjs} +442 -421
  3. package/dist/{EditSkillAdminData-8ec9d6d1.mjs → EditSkillAdminData-a60df47f.mjs} +2 -2
  4. package/dist/{EditSkillData-9bae2ea2.mjs → EditSkillData-7cd63c04.mjs} +2 -2
  5. package/dist/{HomeView-abe908c6.mjs → HomeView-4b9a9899.mjs} +5 -5
  6. package/dist/{Loading-b6235612.mjs → Loading-67bec750.mjs} +1 -1
  7. package/dist/{LoadingSimulation-3bad9122.mjs → LoadingSimulation-cf50d262.mjs} +1 -1
  8. package/dist/{Modal-b1fa5450.mjs → Modal-58db3acb.mjs} +1 -1
  9. package/dist/{PaperAirplaneIcon-3cf8bb48.mjs → PaperAirplaneIcon-38b9f316.mjs} +1 -1
  10. package/dist/{PromptTesting-5539725e.mjs → PromptTesting-5dbd9814.mjs} +3 -3
  11. package/dist/{SkillAutomation-e66cfd2d.mjs → SkillAutomation-bda8c9c7.mjs} +3 -3
  12. package/dist/{SkillData-d4bffa31.mjs → SkillData-bd44a6be.mjs} +3 -3
  13. package/dist/{Testcase-fd73186c.mjs → Testcase-ac672c60.mjs} +3 -3
  14. package/dist/{UnderMaintenance-62a65aa3.mjs → UnderMaintenance-1c77f1ec.mjs} +1 -1
  15. package/dist/{VoiceTestcase-34d267dd.mjs → VoiceTestcase-0887635a.mjs} +52 -52
  16. package/dist/{XMarkIcon-f626c953.mjs → XMarkIcon-933bd730.mjs} +1 -1
  17. package/dist/{api-344eaaaa.mjs → api-6f243fe1.mjs} +1 -1
  18. package/dist/{main-09820a10.mjs → main-b8626228.mjs} +1441 -1441
  19. package/dist/mgtwin.es.min.js +1 -1
  20. package/dist/mgtwin.umd.min.js +14 -14
  21. package/dist/style.css +1 -1
  22. package/dist/{voiceServices-e96f2c1c.mjs → voiceServices-15a48bfb.mjs} +114 -114
  23. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
- import { r as Ee, k as xc, u as Uc, C as Wc, q as jn } from "./main-09820a10.mjs";
2
- import { g as Vc } from "./api-344eaaaa.mjs";
1
+ import { r as Ie, k as xc, u as Uc, C as Wc, q as jn } from "./main-b8626228.mjs";
2
+ import { g as Vc } from "./api-6f243fe1.mjs";
3
3
  import { c as k, a as Bd } from "./_commonjsHelpers-92157f1b.mjs";
4
- const Om = Ee(""), ao = xc(), vt = Uc(), Me = Ee(!1), qd = "Xb7hH8MSUJpSbSDYk0k2", Fd = Ee("");
4
+ const Om = Ie(""), ao = xc(), it = Uc(), Pe = Ie(!1), qd = "Xb7hH8MSUJpSbSDYk0k2", Fd = Ie("");
5
5
  let An = [];
6
- const Hc = Ee(!1);
7
- let ct = !1, ne = null, De = null, de = null, tt, rt, kn, lt;
6
+ const Hc = Ie(!1);
7
+ let pt = !1, ne = null, De = null, de = null, tt, rt, kn, vt;
8
8
  Wc(async () => {
9
- console.log("Mounted voiceService11Labs"), vt.authToken = await $c();
9
+ console.log("Mounted voiceService11Labs"), it.authToken = await $c();
10
10
  });
11
11
  const $c = async () => {
12
12
  var t, e, r, i;
@@ -21,16 +21,16 @@ const $c = async () => {
21
21
  ao.setError("There was an issue while fetching data");
22
22
  }
23
23
  }, xd = () => {
24
- lt && lt.disconnect(), rt && rt.disconnect(), kn && kn.disconnect(), tt && tt.close(), de && de.state === "recording" && de.stop(), De && (De.getTracks().forEach((t) => t.stop()), De = null), Me.value = !1;
24
+ vt && vt.disconnect(), rt && rt.disconnect(), kn && kn.disconnect(), tt && tt.close(), de && de.state === "recording" && de.stop(), De && (De.getTracks().forEach((t) => t.stop()), De = null), Pe.value = !1;
25
25
  }, Ud = (t, e = 0.09) => {
26
- console.log("monitorMicDuringTTS called with threshold:", e), tt = new (window.AudioContext || window.webkitAudioContext)(), rt = tt.createAnalyser(), kn = tt.createMediaStreamSource(De), lt = tt.createScriptProcessor(2048, 1, 1), kn.connect(rt), rt.connect(lt), lt.connect(tt.destination), lt.onaudioprocess = () => {
26
+ console.log("monitorMicDuringTTS called with threshold:", e), tt = new (window.AudioContext || window.webkitAudioContext)(), rt = tt.createAnalyser(), kn = tt.createMediaStreamSource(De), vt = tt.createScriptProcessor(2048, 1, 1), kn.connect(rt), rt.connect(vt), vt.connect(tt.destination), vt.onaudioprocess = () => {
27
27
  const r = new Uint8Array(rt.frequencyBinCount);
28
28
  rt.getByteFrequencyData(r);
29
29
  const i = r.reduce((p, a) => p + a) / r.length;
30
30
  console.log("Average volume:", i), console.log("threshold * 100:", e * 100), i > e * 100 && (t(), console.log("onInterrupt", t), xd());
31
31
  };
32
32
  }, co = async () => {
33
- Hc.value = !0, Me.value = !0, console.log("Starting voice recognition with ElevenLabs"), ne && ne.pause(), De = await navigator.mediaDevices.getUserMedia({ audio: !0 }), await Kc();
33
+ Hc.value = !0, Pe.value = !0, console.log("Starting voice recognition with ElevenLabs"), ne && ne.pause(), De = await navigator.mediaDevices.getUserMedia({ audio: !0 }), await Kc();
34
34
  }, Kc = async () => {
35
35
  if (!De)
36
36
  throw new Error("micStream is null");
@@ -38,18 +38,18 @@ const $c = async () => {
38
38
  ne && ne.pause(), t.data.size > 0 && An.push(t.data), console.log("Audio chunk available:", An);
39
39
  }, de.onstop = async () => {
40
40
  const t = new Blob(An, { type: "audio/webm" }), e = await Wd(t);
41
- Fd.value = e, console.log("Transcription:", e), vt.userSpeechText += e, Hc.value = !1, Me.value && await Kc();
41
+ Fd.value = e, console.log("Transcription:", e), it.userSpeechText = it.userSpeechText + e, Hc.value = !1, console.log("micEnabled before stop:", Pe.value), Pe.value && await Kc();
42
42
  }, de.start(), ne && ne.pause(), Vd(De, () => {
43
43
  (de == null ? void 0 : de.state) === "recording" && de.stop();
44
44
  });
45
45
  }, Wd = async (t) => {
46
- console.log("authToken 11labs", vt.authToken);
46
+ console.log("authToken 11labs", it.authToken);
47
47
  const e = new FormData();
48
48
  e.append("file", t, "recording.webm"), e.append("model_id", "scribe_v1");
49
49
  const r = await fetch("https://api.elevenlabs.io/v1/speech-to-text?language_code=eng", {
50
50
  method: "POST",
51
51
  headers: {
52
- "xi-api-key": vt.authToken
52
+ "xi-api-key": it.authToken
53
53
  },
54
54
  body: e
55
55
  }), i = await r.json();
@@ -63,11 +63,11 @@ const $c = async () => {
63
63
  a.getByteFrequencyData(c), c.reduce((d, h) => d + h) / c.length < i * 100 ? performance.now() - o > r && (e(), n.disconnect(), a.disconnect(), s.disconnect(), p.close()) : o = performance.now();
64
64
  };
65
65
  }, Dm = async (t) => {
66
- console.log("speakText11Labs called with text:", t), vt.authToken = await $c(), ne && ne.pause(), ct = !0;
66
+ console.log("speakText11Labs called with text:", t), it.authToken = await $c(), ne && ne.pause(), pt = !0;
67
67
  const r = await (await fetch(`https://api.elevenlabs.io/v1/text-to-speech/${qd}`, {
68
68
  method: "POST",
69
69
  headers: {
70
- "xi-api-key": vt.authToken,
70
+ "xi-api-key": it.authToken,
71
71
  "Content-Type": "application/json"
72
72
  },
73
73
  body: JSON.stringify({
@@ -82,9 +82,9 @@ const $c = async () => {
82
82
  })).blob(), i = URL.createObjectURL(r);
83
83
  return ne = new Audio(i), new Promise((p) => {
84
84
  ne && (ne.onended = async () => {
85
- ct = !1, console.log("Audio is playing:", ct), Me.value ? (console.log("micEnabled before calling startrecognition:", Me.value), p(await co())) : p();
86
- }, ne.play(), console.log("Audio is playing:", ct), console.log("micEnabled:", Me.value), Me.value && Ud(() => {
87
- ne && (ne.pause(), ne.currentTime = 0), ct = !1, console.log("monitorMicDuringTTS:", ct), console.log("micEnabled before calling startrecognition:", Me.value), co();
85
+ pt = !1, console.log("Audio is playing:", pt), Pe.value ? (console.log("micEnabled before calling startrecognition:", Pe.value), p(await co())) : p();
86
+ }, ne.play(), console.log("Audio is playing:", pt), console.log("micEnabled:", Pe.value), Pe.value && Ud(() => {
87
+ ne && (ne.pause(), ne.currentTime = 0), pt = !1, console.log("monitorMicDuringTTS:", pt), console.log("micEnabled before calling startrecognition:", Pe.value), co();
88
88
  }));
89
89
  });
90
90
  };
@@ -100,17 +100,17 @@ function $d() {
100
100
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
101
101
  return wn(Hd);
102
102
  }
103
- var je = {}, st = {}, Fn = {};
103
+ var je = {}, ot = {}, Fn = {};
104
104
  Object.defineProperty(Fn, "__esModule", {
105
105
  value: !0
106
106
  });
107
107
  Fn.default = void 0;
108
108
  var Kd = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
109
109
  Fn.default = Kd;
110
- Object.defineProperty(st, "__esModule", {
110
+ Object.defineProperty(ot, "__esModule", {
111
111
  value: !0
112
112
  });
113
- st.default = void 0;
113
+ ot.default = void 0;
114
114
  var Jd = Gd(Fn);
115
115
  function Gd(t) {
116
116
  return t && t.__esModule ? t : { default: t };
@@ -119,13 +119,13 @@ function Qd(t) {
119
119
  return typeof t == "string" && Jd.default.test(t);
120
120
  }
121
121
  var Xd = Qd;
122
- st.default = Xd;
122
+ ot.default = Xd;
123
123
  Object.defineProperty(je, "__esModule", {
124
124
  value: !0
125
125
  });
126
126
  je.default = void 0;
127
127
  je.unsafeStringify = Gc;
128
- var Zd = Yd(st);
128
+ var Zd = Yd(ot);
129
129
  function Yd(t) {
130
130
  return t && t.__esModule ? t : { default: t };
131
131
  }
@@ -181,7 +181,7 @@ Object.defineProperty(vn, "__esModule", {
181
181
  value: !0
182
182
  });
183
183
  vn.default = void 0;
184
- var ah = ch(st);
184
+ var ah = ch(ot);
185
185
  function ch(t) {
186
186
  return t && t.__esModule ? t : { default: t };
187
187
  }
@@ -422,7 +422,7 @@ Object.defineProperty(Gn, "__esModule", {
422
422
  value: !0
423
423
  });
424
424
  Gn.default = void 0;
425
- var Fh = xh(st);
425
+ var Fh = xh(ot);
426
426
  function xh(t) {
427
427
  return t && t.__esModule ? t : { default: t };
428
428
  }
@@ -482,7 +482,7 @@ Gn.default = Wh;
482
482
  return s.default;
483
483
  }
484
484
  });
485
- var e = u(Bn), r = u(xn), i = u(Vn), p = u($n), a = u(Jn), s = u(Gn), n = u(st), o = u(je), c = u(vn);
485
+ var e = u(Bn), r = u(xn), i = u(Vn), p = u($n), a = u(Jn), s = u(Gn), n = u(ot), o = u(je), c = u(vn);
486
486
  function u(d) {
487
487
  return d && d.__esModule ? d : { default: d };
488
488
  }
@@ -609,7 +609,7 @@ class el extends ze.PlatformEvent {
609
609
  }
610
610
  }
611
611
  q.ServiceEvent = el;
612
- class Ie extends ze.PlatformEvent {
612
+ class Te extends ze.PlatformEvent {
613
613
  constructor(e, r, i = ze.EventType.Info) {
614
614
  super(e, i), this.privConnectionId = r;
615
615
  }
@@ -617,8 +617,8 @@ class Ie extends ze.PlatformEvent {
617
617
  return this.privConnectionId;
618
618
  }
619
619
  }
620
- q.ConnectionEvent = Ie;
621
- class tl extends Ie {
620
+ q.ConnectionEvent = Te;
621
+ class tl extends Te {
622
622
  constructor(e, r, i) {
623
623
  super("ConnectionStartEvent", e), this.privUri = r, this.privHeaders = i;
624
624
  }
@@ -630,13 +630,13 @@ class tl extends Ie {
630
630
  }
631
631
  }
632
632
  q.ConnectionStartEvent = tl;
633
- class rl extends Ie {
633
+ class rl extends Te {
634
634
  constructor(e) {
635
635
  super("ConnectionEstablishedEvent", e);
636
636
  }
637
637
  }
638
638
  q.ConnectionEstablishedEvent = rl;
639
- class nl extends Ie {
639
+ class nl extends Te {
640
640
  constructor(e, r, i) {
641
641
  super("ConnectionClosedEvent", e, ze.EventType.Debug), this.privReason = i, this.privStatusCode = r;
642
642
  }
@@ -648,7 +648,7 @@ class nl extends Ie {
648
648
  }
649
649
  }
650
650
  q.ConnectionClosedEvent = nl;
651
- class il extends Ie {
651
+ class il extends Te {
652
652
  constructor(e, r, i) {
653
653
  super("ConnectionErrorEvent", e, ze.EventType.Debug), this.privMessage = r, this.privType = i;
654
654
  }
@@ -660,7 +660,7 @@ class il extends Ie {
660
660
  }
661
661
  }
662
662
  q.ConnectionErrorEvent = il;
663
- class sl extends Ie {
663
+ class sl extends Te {
664
664
  constructor(e, r, i) {
665
665
  super("ConnectionEstablishErrorEvent", e, ze.EventType.Error), this.privStatusCode = r, this.privReason = i;
666
666
  }
@@ -672,7 +672,7 @@ class sl extends Ie {
672
672
  }
673
673
  }
674
674
  q.ConnectionEstablishErrorEvent = sl;
675
- class ol extends Ie {
675
+ class ol extends Te {
676
676
  constructor(e, r, i) {
677
677
  super("ConnectionMessageReceivedEvent", e), this.privNetworkReceivedTime = r, this.privMessage = i;
678
678
  }
@@ -684,7 +684,7 @@ class ol extends Ie {
684
684
  }
685
685
  }
686
686
  q.ConnectionMessageReceivedEvent = ol;
687
- class al extends Ie {
687
+ class al extends Te {
688
688
  constructor(e, r, i) {
689
689
  super("ConnectionMessageSentEvent", e), this.privNetworkSentTime = r, this.privMessage = i;
690
690
  }
@@ -696,7 +696,7 @@ class al extends Ie {
696
696
  }
697
697
  }
698
698
  q.ConnectionMessageSentEvent = al;
699
- class cl extends Ie {
699
+ class cl extends Te {
700
700
  constructor(e, r, i, p) {
701
701
  super("ConnectionRedirectEvent", e, ze.EventType.Info), this.privRedirectUrl = r, this.privOriginalUrl = i, this.privContext = p;
702
702
  }
@@ -839,16 +839,16 @@ class ll {
839
839
  }
840
840
  }
841
841
  Xn.DeferralMap = ll;
842
- var it = {};
843
- Object.defineProperty(it, "__esModule", { value: !0 });
844
- it.SendingAgentContextMessageEvent = it.DialogEvent = void 0;
842
+ var st = {};
843
+ Object.defineProperty(st, "__esModule", { value: !0 });
844
+ st.SendingAgentContextMessageEvent = st.DialogEvent = void 0;
845
845
  const ho = yt;
846
846
  class np extends ho.PlatformEvent {
847
847
  constructor(e, r = ho.EventType.Info) {
848
848
  super(e, r);
849
849
  }
850
850
  }
851
- it.DialogEvent = np;
851
+ st.DialogEvent = np;
852
852
  class vl extends np {
853
853
  constructor(e) {
854
854
  super("SendingAgentContextMessageEvent"), this.privAgentConfig = e;
@@ -857,7 +857,7 @@ class vl extends np {
857
857
  return this.privAgentConfig;
858
858
  }
859
859
  }
860
- it.SendingAgentContextMessageEvent = vl;
860
+ st.SendingAgentContextMessageEvent = vl;
861
861
  var Zn = {}, gn = {};
862
862
  Object.defineProperty(gn, "__esModule", { value: !0 });
863
863
  gn.EventSource = void 0;
@@ -941,7 +941,7 @@ var mn = {};
941
941
  Object.defineProperty(mn, "__esModule", { value: !0 });
942
942
  mn.List = void 0;
943
943
  const yl = $;
944
- class we {
944
+ class _e {
945
945
  constructor(e) {
946
946
  if (this.privSubscriptionIdCounter = 0, this.privAddSubscriptions = {}, this.privRemoveSubscriptions = {}, this.privDisposedSubscriptions = {}, this.privDisposeReason = null, this.privList = [], e)
947
947
  for (const r of e)
@@ -1028,11 +1028,11 @@ class we {
1028
1028
  const r = [];
1029
1029
  for (let i = 0; i < this.privList.length; i++)
1030
1030
  r.push(e(this.privList[i], i));
1031
- return new we(r);
1031
+ return new _e(r);
1032
1032
  }
1033
1033
  where(e) {
1034
1034
  this.throwIfDisposed();
1035
- const r = new we();
1035
+ const r = new _e();
1036
1036
  for (let i = 0; i < this.privList.length; i++)
1037
1037
  e(this.privList[i], i) && r.add(this.privList[i]);
1038
1038
  return r;
@@ -1040,19 +1040,19 @@ class we {
1040
1040
  orderBy(e) {
1041
1041
  this.throwIfDisposed();
1042
1042
  const i = this.toArray().sort(e);
1043
- return new we(i);
1043
+ return new _e(i);
1044
1044
  }
1045
1045
  orderByDesc(e) {
1046
1046
  return this.throwIfDisposed(), this.orderBy((r, i) => e(i, r));
1047
1047
  }
1048
1048
  clone() {
1049
- return this.throwIfDisposed(), new we(this.toArray());
1049
+ return this.throwIfDisposed(), new _e(this.toArray());
1050
1050
  }
1051
1051
  concat(e) {
1052
- return this.throwIfDisposed(), new we(this.privList.concat(e.toArray()));
1052
+ return this.throwIfDisposed(), new _e(this.privList.concat(e.toArray()));
1053
1053
  }
1054
1054
  concatArray(e) {
1055
- return this.throwIfDisposed(), new we(this.privList.concat(e));
1055
+ return this.throwIfDisposed(), new _e(this.privList.concat(e));
1056
1056
  }
1057
1057
  isDisposed() {
1058
1058
  return this.privList == null;
@@ -1070,7 +1070,7 @@ class we {
1070
1070
  r && e[r]();
1071
1071
  }
1072
1072
  }
1073
- mn.List = we;
1073
+ mn.List = _e;
1074
1074
  var Ms = {};
1075
1075
  (function(t) {
1076
1076
  Object.defineProperty(t, "__esModule", { value: !0 }), t.marshalPromiseToCallbacks = t.Sink = t.Deferred = t.PromiseResultEventSource = t.PromiseResult = t.PromiseState = void 0;
@@ -1664,7 +1664,7 @@ function A() {
1664
1664
  for (var s in p)
1665
1665
  s !== "default" && !Object.prototype.hasOwnProperty.call(a, s) && e(a, p, s);
1666
1666
  };
1667
- Object.defineProperty(t, "__esModule", { value: !0 }), t.TranslationStatus = void 0, r(B, t), r(q, t), r(bs, t), r(Qn, t), r(Xn, t), r(it, t), r($, t), r(Zn, t), r(gn, t), r(ue, t), r(ip, t), r(sp, t), r(op, t), r(ap, t), r(cp, t), r(pp, t), r(up, t), r(dp, t), r(hp, t), r(lp, t), r(mn, t), r(yt, t), r(Ms, t), r(Sn, t), r(Yn, t), r(ei, t), r(ti, t);
1667
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.TranslationStatus = void 0, r(B, t), r(q, t), r(bs, t), r(Qn, t), r(Xn, t), r(st, t), r($, t), r(Zn, t), r(gn, t), r(ue, t), r(ip, t), r(sp, t), r(op, t), r(ap, t), r(cp, t), r(pp, t), r(up, t), r(dp, t), r(hp, t), r(lp, t), r(mn, t), r(yt, t), r(Ms, t), r(Sn, t), r(Yn, t), r(ei, t), r(ti, t);
1668
1668
  var i = ri;
1669
1669
  Object.defineProperty(t, "TranslationStatus", { enumerable: !0, get: function() {
1670
1670
  return i.TranslationStatus;
@@ -1769,7 +1769,7 @@ var wt = {}, cs = {}, si = {};
1769
1769
  const Ql = {}, Xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1770
1770
  __proto__: null,
1771
1771
  default: Ql
1772
- }, Symbol.toStringTag, { value: "Module" })), ot = /* @__PURE__ */ Bd(Xl);
1772
+ }, Symbol.toStringTag, { value: "Module" })), at = /* @__PURE__ */ Bd(Xl);
1773
1773
  var Os = {};
1774
1774
  (function(t) {
1775
1775
  Object.defineProperty(t, "__esModule", { value: !0 }), t.LogLevel = void 0;
@@ -1781,7 +1781,7 @@ var Os = {};
1781
1781
  var b = {};
1782
1782
  Object.defineProperty(b, "__esModule", { value: !0 });
1783
1783
  b.Contracts = void 0;
1784
- class _e {
1784
+ class be {
1785
1785
  static throwIfNullOrUndefined(e, r) {
1786
1786
  if (e == null)
1787
1787
  throw new Error("throwIfNullOrUndefined:" + r);
@@ -1791,15 +1791,15 @@ class _e {
1791
1791
  throw new Error("throwIfNull:" + r);
1792
1792
  }
1793
1793
  static throwIfNullOrWhitespace(e, r) {
1794
- if (_e.throwIfNullOrUndefined(e, r), ("" + e).trim().length < 1)
1794
+ if (be.throwIfNullOrUndefined(e, r), ("" + e).trim().length < 1)
1795
1795
  throw new Error("throwIfNullOrWhitespace:" + r);
1796
1796
  }
1797
1797
  static throwIfNullOrTooLong(e, r, i) {
1798
- if (_e.throwIfNullOrUndefined(e, r), ("" + e).length > i)
1798
+ if (be.throwIfNullOrUndefined(e, r), ("" + e).length > i)
1799
1799
  throw new Error("throwIfNullOrTooLong:" + r + " (more than " + i.toString() + " characters)");
1800
1800
  }
1801
1801
  static throwIfNullOrTooShort(e, r, i) {
1802
- if (_e.throwIfNullOrUndefined(e, r), ("" + e).length < i)
1802
+ if (be.throwIfNullOrUndefined(e, r), ("" + e).length < i)
1803
1803
  throw new Error("throwIfNullOrTooShort:" + r + " (less than " + i.toString() + " characters)");
1804
1804
  }
1805
1805
  static throwIfDisposed(e) {
@@ -1807,20 +1807,20 @@ class _e {
1807
1807
  throw new Error("the object is already disposed");
1808
1808
  }
1809
1809
  static throwIfArrayEmptyOrWhitespace(e, r) {
1810
- if (_e.throwIfNullOrUndefined(e, r), e.length === 0)
1810
+ if (be.throwIfNullOrUndefined(e, r), e.length === 0)
1811
1811
  throw new Error("throwIfArrayEmptyOrWhitespace:" + r);
1812
1812
  for (const i of e)
1813
- _e.throwIfNullOrWhitespace(i, r);
1813
+ be.throwIfNullOrWhitespace(i, r);
1814
1814
  }
1815
1815
  static throwIfFileDoesNotExist(e, r) {
1816
- _e.throwIfNullOrWhitespace(e, r);
1816
+ be.throwIfNullOrWhitespace(e, r);
1817
1817
  }
1818
1818
  static throwIfNotUndefined(e, r) {
1819
1819
  if (e !== void 0)
1820
1820
  throw new Error("throwIfNotUndefined:" + r);
1821
1821
  }
1822
1822
  }
1823
- b.Contracts = _e;
1823
+ b.Contracts = be;
1824
1824
  var Zl = k && k.__createBinding || (Object.create ? function(t, e, r, i) {
1825
1825
  i === void 0 && (i = r), Object.defineProperty(t, i, { enumerable: !0, get: function() {
1826
1826
  return e[r];
@@ -1842,7 +1842,7 @@ var Zl = k && k.__createBinding || (Object.create ? function(t, e, r, i) {
1842
1842
  };
1843
1843
  Object.defineProperty(si, "__esModule", { value: !0 });
1844
1844
  si.ConsoleLoggingListener = void 0;
1845
- const Po = ev(ot), _t = Os, tv = b;
1845
+ const Po = ev(at), _t = Os, tv = b;
1846
1846
  class rv {
1847
1847
  constructor(e = _t.LogLevel.None) {
1848
1848
  this.privLogPath = void 0, this.privEnableConsoleOutput = !0, this.privLogLevelFilter = e;
@@ -2403,7 +2403,7 @@ var ai = {}, Cn = {}, av = k && k.__createBinding || (Object.create ? function(t
2403
2403
  };
2404
2404
  Object.defineProperty(Cn, "__esModule", { value: !0 });
2405
2405
  Cn.WebsocketMessageAdapter = void 0;
2406
- const pv = Sp(ot), uv = Sp(ot), dv = Ds(ot), hv = Ds(ot), lv = Ds(ot), vv = x, M = A();
2406
+ const pv = Sp(at), uv = Sp(at), dv = Ds(at), hv = Ds(at), lv = Ds(at), vv = x, M = A();
2407
2407
  class ln {
2408
2408
  constructor(e, r, i, p, a, s) {
2409
2409
  if (!e)
@@ -2723,7 +2723,7 @@ var Mt = {}, ds = {}, Se = {}, yn = {}, Cv = k && k.__createBinding || (Object.c
2723
2723
  };
2724
2724
  Object.defineProperty(yn, "__esModule", { value: !0 });
2725
2725
  yn.AudioFileWriter = void 0;
2726
- const Ot = Rv(ot), hs = b;
2726
+ const Ot = Rv(at), hs = b;
2727
2727
  class Pv {
2728
2728
  constructor(e) {
2729
2729
  hs.Contracts.throwIfNullOrUndefined(Ot.openSync, `
@@ -3986,7 +3986,7 @@ function kv() {
3986
3986
  var ft = {};
3987
3987
  Object.defineProperty(ft, "__esModule", { value: !0 });
3988
3988
  ft.LanguageUnderstandingModelImpl = ft.LanguageUnderstandingModel = void 0;
3989
- const pt = b;
3989
+ const ut = b;
3990
3990
  class wp {
3991
3991
  /**
3992
3992
  * Creates and initializes a new instance
@@ -4003,7 +4003,7 @@ class wp {
4003
4003
  * @returns {LanguageUnderstandingModel} The language understanding model being created.
4004
4004
  */
4005
4005
  static fromEndpoint(e) {
4006
- pt.Contracts.throwIfNull(e, "uri"), pt.Contracts.throwIfNullOrWhitespace(e.hostname, "uri");
4006
+ ut.Contracts.throwIfNull(e, "uri"), ut.Contracts.throwIfNullOrWhitespace(e.hostname, "uri");
4007
4007
  const r = new Mn(), i = e.host.indexOf(".");
4008
4008
  if (i === -1)
4009
4009
  throw new Error("Could not determine region from endpoint");
@@ -4024,7 +4024,7 @@ class wp {
4024
4024
  * @returns {LanguageUnderstandingModel} The language understanding model being created.
4025
4025
  */
4026
4026
  static fromAppId(e) {
4027
- pt.Contracts.throwIfNullOrWhitespace(e, "appId");
4027
+ ut.Contracts.throwIfNullOrWhitespace(e, "appId");
4028
4028
  const r = new Mn();
4029
4029
  return r.appId = e, r;
4030
4030
  }
@@ -4043,7 +4043,7 @@ class wp {
4043
4043
  * @returns {LanguageUnderstandingModel} The language understanding model being created.
4044
4044
  */
4045
4045
  static fromSubscription(e, r, i) {
4046
- pt.Contracts.throwIfNullOrWhitespace(e, "subscriptionKey"), pt.Contracts.throwIfNullOrWhitespace(r, "appId"), pt.Contracts.throwIfNullOrWhitespace(i, "region");
4046
+ ut.Contracts.throwIfNullOrWhitespace(e, "subscriptionKey"), ut.Contracts.throwIfNullOrWhitespace(r, "appId"), ut.Contracts.throwIfNullOrWhitespace(i, "region");
4047
4047
  const p = new Mn();
4048
4048
  return p.appId = r, p.region = i, p.subscriptionKey = e, p;
4049
4049
  }
@@ -11506,9 +11506,9 @@ function R() {
11506
11506
  Object.defineProperty(t, "PropertyId", { enumerable: !0, get: function() {
11507
11507
  return ce.PropertyId;
11508
11508
  } });
11509
- var at = xv();
11509
+ var ct = xv();
11510
11510
  Object.defineProperty(t, "Recognizer", { enumerable: !0, get: function() {
11511
- return at.Recognizer;
11511
+ return ct.Recognizer;
11512
11512
  } });
11513
11513
  var te = Uv();
11514
11514
  Object.defineProperty(t, "SpeechRecognizer", { enumerable: !0, get: function() {
@@ -12268,9 +12268,9 @@ var Di = {};
12268
12268
  }
12269
12269
  t.RecognitionEndedEvent = o;
12270
12270
  })(Di);
12271
- var Dr = {}, Te = {};
12272
- Object.defineProperty(Te, "__esModule", { value: !0 });
12273
- Te.SpeechConnectionMessage = void 0;
12271
+ var Dr = {}, Ae = {};
12272
+ Object.defineProperty(Ae, "__esModule", { value: !0 });
12273
+ Ae.SpeechConnectionMessage = void 0;
12274
12274
  const gs = A(), ye = x;
12275
12275
  class Vs extends gs.ConnectionMessage {
12276
12276
  constructor(e, r, i, p, a, s, n, o) {
@@ -12308,7 +12308,7 @@ class Vs extends gs.ConnectionMessage {
12308
12308
  return new Vs(e.messageType, r, i, p, e.body, a, s, e.id);
12309
12309
  }
12310
12310
  }
12311
- Te.SpeechConnectionMessage = Vs;
12311
+ Ae.SpeechConnectionMessage = Vs;
12312
12312
  var pu = {};
12313
12313
  (function(t) {
12314
12314
  Object.defineProperty(t, "__esModule", { value: !0 }), t.SegmentationMode = void 0, function(e) {
@@ -12370,7 +12370,7 @@ function ug() {
12370
12370
  if (Qa)
12371
12371
  return Dr;
12372
12372
  Qa = 1, Object.defineProperty(Dr, "__esModule", { value: !0 }), Dr.ServiceRecognizerBase = void 0;
12373
- const t = U(), e = A(), r = R(), i = T(), p = Te, a = pu, s = ae, n = uu, o = du, c = hu, u = lu, d = vu, h = fu, l = gu, f = mu;
12373
+ const t = U(), e = A(), r = R(), i = T(), p = Ae, a = pu, s = ae, n = uu, o = du, c = hu, u = lu, d = vu, h = fu, l = gu, f = mu;
12374
12374
  let g = class pn {
12375
12375
  constructor(v, m, C, y, E) {
12376
12376
  if (this.privConnectionConfigurationPromise = void 0, this.privConnectionPromise = void 0, this.privSetTimeout = setTimeout, this.privIsLiveAudio = !1, this.privAverageBytesPerMs = 0, this.privEnableSpeakerId = !1, this.privExpectContentAssessmentResponse = !1, this.recognizeOverride = void 0, this.recognizeSpeaker = void 0, this.disconnectOverride = void 0, this.receiveMessageOverride = void 0, this.sendPrePayloadJSONOverride = void 0, this.postConnectImplOverride = void 0, this.configConnectionOverride = void 0, this.handleSpeechPhraseMessage = void 0, this.handleSpeechHypothesisMessage = void 0, !v)
@@ -13886,7 +13886,7 @@ function Tg() {
13886
13886
  if (dc)
13887
13887
  return Vr;
13888
13888
  dc = 1, Object.defineProperty(Vr, "__esModule", { value: !0 }), Vr.TranscriptionServiceRecognizer = void 0;
13889
- const t = A(), e = R(), r = T(), i = Te;
13889
+ const t = A(), e = R(), r = T(), i = Ae;
13890
13890
  let p = class extends r.ConversationServiceRecognizer {
13891
13891
  constructor(s, n, o, c, u) {
13892
13892
  super(s, n, o, c, u), this.privTranscriberRecognizer = u, this.sendPrePayloadJSONOverride = (d) => this.sendTranscriptionStartJSON(d), this.privRecognizerConfig.parameters.getProperty(e.PropertyId.SpeechServiceResponse_RequestWordLevelTimestamps) === "true" && this.privSpeechContext.setWordLevelTimings();
@@ -14377,10 +14377,10 @@ class Mg {
14377
14377
  xi.ServiceTelemetryListener = Mg;
14378
14378
  Object.defineProperty(Fi, "__esModule", { value: !0 });
14379
14379
  Fi.RequestSession = void 0;
14380
- const ut = A(), bn = Di, Og = xi;
14380
+ const dt = A(), bn = Di, Og = xi;
14381
14381
  class Dg {
14382
14382
  constructor(e) {
14383
- this.privIsDisposed = !1, this.privDetachables = new Array(), this.privIsAudioNodeDetached = !1, this.privIsRecognizing = !1, this.privIsSpeechEnded = !1, this.privTurnStartAudioOffset = 0, this.privLastRecoOffset = 0, this.privHypothesisReceived = !1, this.privBytesSent = 0, this.privRecognitionBytesSent = 0, this.privRecogNumber = 0, this.privInTurn = !1, this.privConnectionAttempts = 0, this.privAudioSourceId = e, this.privRequestId = (0, ut.createNoDashGuid)(), this.privAudioNodeId = (0, ut.createNoDashGuid)(), this.privTurnDeferral = new ut.Deferred(), this.privTurnDeferral.resolve();
14383
+ this.privIsDisposed = !1, this.privDetachables = new Array(), this.privIsAudioNodeDetached = !1, this.privIsRecognizing = !1, this.privIsSpeechEnded = !1, this.privTurnStartAudioOffset = 0, this.privLastRecoOffset = 0, this.privHypothesisReceived = !1, this.privBytesSent = 0, this.privRecognitionBytesSent = 0, this.privRecogNumber = 0, this.privInTurn = !1, this.privConnectionAttempts = 0, this.privAudioSourceId = e, this.privRequestId = (0, dt.createNoDashGuid)(), this.privAudioNodeId = (0, dt.createNoDashGuid)(), this.privTurnDeferral = new dt.Deferred(), this.privTurnDeferral.resolve();
14384
14384
  }
14385
14385
  get sessionId() {
14386
14386
  return this.privSessionId;
@@ -14446,11 +14446,11 @@ class Dg {
14446
14446
  this.privTurnDeferral.resolve(), !e || this.isSpeechEnded ? (await this.onComplete(), this.privInTurn = !1) : (this.privTurnStartAudioOffset = this.privLastRecoOffset, this.privAudioNode.replay());
14447
14447
  }
14448
14448
  onSpeechContext() {
14449
- this.privRequestId = (0, ut.createNoDashGuid)();
14449
+ this.privRequestId = (0, dt.createNoDashGuid)();
14450
14450
  }
14451
14451
  onServiceTurnStartResponse() {
14452
14452
  this.privTurnDeferral && this.privInTurn && (this.privTurnDeferral.reject("Another turn started before current completed."), this.privTurnDeferral.promise.then().catch(() => {
14453
- })), this.privInTurn = !0, this.privTurnDeferral = new ut.Deferred();
14453
+ })), this.privInTurn = !0, this.privTurnDeferral = new dt.Deferred();
14454
14454
  }
14455
14455
  onHypothesis(e) {
14456
14456
  this.privHypothesisReceived || (this.privHypothesisReceived = !0, this.privServiceTelemetryListener.hypothesisReceived(this.privAudioNode.findTimeAtOffset(e)));
@@ -14486,7 +14486,7 @@ class Dg {
14486
14486
  this.privIsSpeechEnded = !0;
14487
14487
  }
14488
14488
  onEvent(e) {
14489
- this.privServiceTelemetryListener && this.privServiceTelemetryListener.onEvent(e), ut.Events.instance.onEvent(e);
14489
+ this.privServiceTelemetryListener && this.privServiceTelemetryListener.onEvent(e), dt.Events.instance.onEvent(e);
14490
14490
  }
14491
14491
  async onComplete() {
14492
14492
  this.privIsRecognizing && (this.privIsRecognizing = !1, await this.detachAudioNode());
@@ -14510,7 +14510,7 @@ var Ui = {}, Tu = {};
14510
14510
  })(Tu);
14511
14511
  Object.defineProperty(Ui, "__esModule", { value: !0 });
14512
14512
  Ui.SpeechContext = void 0;
14513
- const kg = ae, Ae = Tu;
14513
+ const kg = ae, we = Tu;
14514
14514
  class Ng {
14515
14515
  constructor(e) {
14516
14516
  this.privContext = {}, this.privDynamicGrammar = e;
@@ -14530,9 +14530,9 @@ class Ng {
14530
14530
  }
14531
14531
  }), this.privContext.phraseDetection.enrichment === void 0 && (this.privContext.phraseDetection.enrichment = {
14532
14532
  pronunciationAssessment: {}
14533
- }), this.privContext.phraseDetection.enrichment.pronunciationAssessment = JSON.parse(e) || {}, i && (this.privContext.phraseDetection.mode = kg.RecognitionMode.Conversation), this.setWordLevelTimings(), this.privContext.phraseOutput.detailed.options.push(Ae.PhraseOption.PronunciationAssessment), this.privContext.phraseOutput.detailed.options.indexOf(Ae.PhraseOption.SNR) === -1 && this.privContext.phraseOutput.detailed.options.push(Ae.PhraseOption.SNR), r && (this.privContext.phraseDetection.enrichment.contentAssessment = {
14533
+ }), this.privContext.phraseDetection.enrichment.pronunciationAssessment = JSON.parse(e) || {}, i && (this.privContext.phraseDetection.mode = kg.RecognitionMode.Conversation), this.setWordLevelTimings(), this.privContext.phraseOutput.detailed.options.push(we.PhraseOption.PronunciationAssessment), this.privContext.phraseOutput.detailed.options.indexOf(we.PhraseOption.SNR) === -1 && this.privContext.phraseOutput.detailed.options.push(we.PhraseOption.SNR), r && (this.privContext.phraseDetection.enrichment.contentAssessment = {
14534
14534
  topic: r
14535
- }, this.privContext.phraseOutput.detailed.options.push(Ae.PhraseOption.ContentAssessment));
14535
+ }, this.privContext.phraseOutput.detailed.options.push(we.PhraseOption.ContentAssessment));
14536
14536
  }
14537
14537
  setDetailedOutputFormat() {
14538
14538
  this.privContext.phraseOutput === void 0 && (this.privContext.phraseOutput = {
@@ -14541,7 +14541,7 @@ class Ng {
14541
14541
  }
14542
14542
  }), this.privContext.phraseOutput.detailed === void 0 && (this.privContext.phraseOutput.detailed = {
14543
14543
  options: []
14544
- }), this.privContext.phraseOutput.format = Ae.OutputFormat.Detailed;
14544
+ }), this.privContext.phraseOutput.format = we.OutputFormat.Detailed;
14545
14545
  }
14546
14546
  setWordLevelTimings() {
14547
14547
  this.privContext.phraseOutput === void 0 && (this.privContext.phraseOutput = {
@@ -14550,7 +14550,7 @@ class Ng {
14550
14550
  }
14551
14551
  }), this.privContext.phraseOutput.detailed === void 0 && (this.privContext.phraseOutput.detailed = {
14552
14552
  options: []
14553
- }), this.privContext.phraseOutput.format = Ae.OutputFormat.Detailed, this.privContext.phraseOutput.detailed.options.indexOf(Ae.PhraseOption.WordTimings) === -1 && this.privContext.phraseOutput.detailed.options.push(Ae.PhraseOption.WordTimings);
14553
+ }), this.privContext.phraseOutput.format = we.OutputFormat.Detailed, this.privContext.phraseOutput.detailed.options.indexOf(we.PhraseOption.WordTimings) === -1 && this.privContext.phraseOutput.detailed.options.push(we.PhraseOption.WordTimings);
14554
14554
  }
14555
14555
  setSpeakerDiarizationAudioOffsetMs(e) {
14556
14556
  this.privContext.phraseDetection.speakerDiarization.audioOffsetMs = e;
@@ -14705,7 +14705,7 @@ function Wg() {
14705
14705
  if (mc)
14706
14706
  return Jr;
14707
14707
  mc = 1, Object.defineProperty(Jr, "__esModule", { value: !0 }), Jr.DialogServiceAdapter = void 0;
14708
- const t = U(), e = it, r = A(), i = Be, p = R(), a = Vi, s = T(), n = Gs, o = wu, c = _u, u = Te;
14708
+ const t = U(), e = st, r = A(), i = Be, p = R(), a = Vi, s = T(), n = Gs, o = wu, c = _u, u = Ae;
14709
14709
  let d = class extends s.ServiceRecognizerBase {
14710
14710
  constructor(l, f, g, S, v) {
14711
14711
  super(l, f, g, S, v), this.privEvents = new r.EventSource(), this.privDialogServiceConnector = v, this.receiveMessageOverride = () => this.receiveDialogMessageOverride(), this.privTurnStateManager = new a.DialogServiceTurnStateManager(), this.recognizeOverride = (m, C, y) => this.listenOnce(m, C, y), this.postConnectImplOverride = (m) => this.dialogConnectImpl(m), this.configConnectionOverride = (m) => this.configConnection(m), this.disconnectOverride = () => this.privDisconnect(), this.privDialogAudioSource = g, this.agentConfigSent = !1, this.privLastResult = null, this.connectionEvents.attach((m) => {
@@ -14877,8 +14877,8 @@ function Wg() {
14877
14877
  if (L !== ce)
14878
14878
  this.privTurnStateManager.CompleteTurn(L);
14879
14879
  else {
14880
- const at = new p.SessionEventArgs(this.privRequestSession.sessionId);
14881
- if (await this.privRequestSession.onServiceTurnEndResponse(!1), (!this.privRecognizerConfig.isContinuousRecognition || this.privRequestSession.isSpeechEnded || !this.privRequestSession.isRecognizing) && this.privRecognizer.sessionStopped && this.privRecognizer.sessionStopped(this.privRecognizer, at), this.privSuccessCallback && this.privLastResult) {
14880
+ const ct = new p.SessionEventArgs(this.privRequestSession.sessionId);
14881
+ if (await this.privRequestSession.onServiceTurnEndResponse(!1), (!this.privRecognizerConfig.isContinuousRecognition || this.privRequestSession.isSpeechEnded || !this.privRequestSession.isRecognizing) && this.privRecognizer.sessionStopped && this.privRecognizer.sessionStopped(this.privRecognizer, ct), this.privSuccessCallback && this.privLastResult) {
14882
14882
  try {
14883
14883
  this.privSuccessCallback(this.privLastResult), this.privLastResult = null;
14884
14884
  } catch (te) {
@@ -15352,9 +15352,9 @@ function bu() {
15352
15352
  }
15353
15353
  return re.ConversationReceivedTranslationEventArgs = s, re;
15354
15354
  }
15355
- var Pe = {};
15356
- Object.defineProperty(Pe, "__esModule", { value: !0 });
15357
- Pe.ConversationTranslatorCommandTypes = Pe.ConversationTranslatorMessageTypes = Pe.InternalParticipants = void 0;
15355
+ var Ee = {};
15356
+ Object.defineProperty(Ee, "__esModule", { value: !0 });
15357
+ Ee.ConversationTranslatorCommandTypes = Ee.ConversationTranslatorMessageTypes = Ee.InternalParticipants = void 0;
15358
15358
  class Zg {
15359
15359
  constructor(e = [], r) {
15360
15360
  this.participants = e, this.meId = r;
@@ -15402,8 +15402,8 @@ class Zg {
15402
15402
  return this.getParticipant(this.meId);
15403
15403
  }
15404
15404
  }
15405
- Pe.InternalParticipants = Zg;
15406
- Pe.ConversationTranslatorMessageTypes = {
15405
+ Ee.InternalParticipants = Zg;
15406
+ Ee.ConversationTranslatorMessageTypes = {
15407
15407
  command: "command",
15408
15408
  final: "final",
15409
15409
  info: "info",
@@ -15413,7 +15413,7 @@ Pe.ConversationTranslatorMessageTypes = {
15413
15413
  participantCommand: "participant_command",
15414
15414
  translatedMessage: "translated_message"
15415
15415
  };
15416
- Pe.ConversationTranslatorCommandTypes = {
15416
+ Ee.ConversationTranslatorCommandTypes = {
15417
15417
  changeNickname: "ChangeNickname",
15418
15418
  disconnectSession: "DisconnectSession",
15419
15419
  ejectParticipant: "EjectParticipant",
@@ -15645,7 +15645,7 @@ function im() {
15645
15645
  if (Pc)
15646
15646
  return Xr;
15647
15647
  Pc = 1, Object.defineProperty(Xr, "__esModule", { value: !0 }), Xr.ConversationServiceAdapter = void 0;
15648
- const t = A(), e = R(), r = T(), i = Tn, p = Ji, a = bu(), s = Pe, n = Mu;
15648
+ const t = A(), e = R(), r = T(), i = Tn, p = Ji, a = bu(), s = Ee, n = Mu;
15649
15649
  let o = class extends r.ServiceRecognizerBase {
15650
15650
  constructor(u, d, h, l, f) {
15651
15651
  super(u, d, h, l, f), this.privConnectionConfigPromise = void 0, this.privLastPartialUtteranceId = "", this.privConversationServiceConnector = f, this.privConversationAuthentication = u, this.receiveMessageOverride = () => this.receiveConversationMessageOverride(), this.recognizeOverride = () => this.noOp(), this.postConnectImplOverride = (g) => this.conversationConnectImpl(g), this.configConnectionOverride = () => this.configConnection(), this.disconnectOverride = () => this.privDisconnect(), this.privConversationRequestSession = new p.ConversationRequestSession((0, t.createNoDashGuid)()), this.privConversationConnectionFactory = d, this.privConversationIsDisposed = !1;
@@ -15767,14 +15767,14 @@ function im() {
15767
15767
  };
15768
15768
  break;
15769
15769
  case "token":
15770
- const at = new r.CognitiveTokenAuthentication(() => {
15770
+ const ct = new r.CognitiveTokenAuthentication(() => {
15771
15771
  const te = S.token;
15772
15772
  return Promise.resolve(te);
15773
15773
  }, () => {
15774
15774
  const te = S.token;
15775
15775
  return Promise.resolve(te);
15776
15776
  });
15777
- this.authentication = at, this.privConversationServiceConnector.onToken(at);
15777
+ this.authentication = ct, this.privConversationServiceConnector.onToken(ct);
15778
15778
  break;
15779
15779
  default:
15780
15780
  break;
@@ -16132,7 +16132,7 @@ function am() {
16132
16132
  } }), Object.defineProperty(t, "ParticipantsListEventArgs", { enumerable: !0, get: function() {
16133
16133
  return a.ParticipantsListEventArgs;
16134
16134
  } });
16135
- var s = Pe;
16135
+ var s = Ee;
16136
16136
  Object.defineProperty(t, "ConversationTranslatorCommandTypes", { enumerable: !0, get: function() {
16137
16137
  return s.ConversationTranslatorCommandTypes;
16138
16138
  } }), Object.defineProperty(t, "ConversationTranslatorMessageTypes", { enumerable: !0, get: function() {
@@ -16372,7 +16372,7 @@ function hm() {
16372
16372
  if (_c)
16373
16373
  return en;
16374
16374
  _c = 1, Object.defineProperty(en, "__esModule", { value: !0 }), en.SynthesisAdapterBase = void 0;
16375
- const t = A(), e = R(), r = T(), i = Te;
16375
+ const t = A(), e = R(), r = T(), i = Ae;
16376
16376
  let p = class {
16377
16377
  constructor(s, n, o, c) {
16378
16378
  if (this.speakOverride = void 0, this.receiveMessageOverride = void 0, this.connectImplOverride = void 0, this.configConnectionOverride = void 0, this.privConnectionConfigurationPromise = void 0, !s)
@@ -16859,7 +16859,7 @@ function Cm() {
16859
16859
  if (zc)
16860
16860
  return an;
16861
16861
  zc = 1, Object.defineProperty(an, "__esModule", { value: !0 }), an.SpeakerServiceRecognizer = void 0;
16862
- const t = U(), e = A(), r = R(), i = T(), p = Te;
16862
+ const t = U(), e = A(), r = R(), i = T(), p = Ae;
16863
16863
  let a = class extends i.ServiceRecognizerBase {
16864
16864
  constructor(n, o, c, u, d) {
16865
16865
  super(n, o, c, u, d), this.privSpeakerRecognizer = d, this.privSpeakerAudioSource = c, this.recognizeSpeaker = (h) => this.recognizeSpeakerOnce(h), this.sendPrePayloadJSONOverride = () => this.noOp();
@@ -16932,7 +16932,7 @@ function ym() {
16932
16932
  if (jc)
16933
16933
  return cn;
16934
16934
  jc = 1, Object.defineProperty(cn, "__esModule", { value: !0 }), cn.VoiceServiceRecognizer = void 0;
16935
- const t = U(), e = A(), r = R(), i = T(), p = Te;
16935
+ const t = U(), e = A(), r = R(), i = T(), p = Ae;
16936
16936
  let a = class extends i.ServiceRecognizerBase {
16937
16937
  constructor(n, o, c, u, d) {
16938
16938
  super(n, o, c, u, d), this.privDeferralMap = new e.DeferralMap(), this.privSpeakerAudioSource = c, this.sendPrePayloadJSONOverride = () => this.noOp();
@@ -17283,15 +17283,15 @@ function Tm(t, e, r) {
17283
17283
  }
17284
17284
  return Rm(i);
17285
17285
  }
17286
- const Ct = xc(), nt = Uc(), dt = Ee(""), et = Ee(""), qc = Ee(""), _s = Ee(""), Du = Ee("");
17287
- let be = null;
17286
+ const Ct = xc(), nt = Uc(), ht = Ie(""), et = Ie(""), qc = Ie(""), _s = Ie(""), Du = Ie("");
17287
+ let Me = null;
17288
17288
  const Fc = 4e3;
17289
17289
  Wc(async () => {
17290
17290
  nt.authToken = await ro();
17291
17291
  });
17292
- let F = null, ht = null, fe = null, Dn = null;
17292
+ let F = null, lt = null, fe = null, Dn = null;
17293
17293
  const Xi = () => {
17294
- fe && fe.mute(), F && (F.close(), F = null), ht = null;
17294
+ fe && fe.mute(), F && (F.close(), F = null), lt = null;
17295
17295
  }, ro = async () => {
17296
17296
  var t, e, r;
17297
17297
  try {
@@ -17305,7 +17305,7 @@ const Xi = () => {
17305
17305
  Ct.setError("There was an issue while fetching data");
17306
17306
  }
17307
17307
  }, eC = () => {
17308
- be && clearTimeout(be), Dn && (Dn.stopContinuousRecognitionAsync(
17308
+ Me && clearTimeout(Me), Dn && (Dn.stopContinuousRecognitionAsync(
17309
17309
  () => {
17310
17310
  },
17311
17311
  (t) => {
@@ -17318,17 +17318,17 @@ const Xi = () => {
17318
17318
  const p = ge.AudioConfig.fromSpeakerOutput(fe);
17319
17319
  F = new ge.SpeechSynthesizer(i, p);
17320
17320
  const a = Tm();
17321
- ht = a, F.speakTextAsync(
17321
+ lt = a, F.speakTextAsync(
17322
17322
  t,
17323
17323
  (s) => {
17324
- if (a !== ht)
17324
+ if (a !== lt)
17325
17325
  return fe == null || fe.mute(), F == null || F.close(), F = null, e();
17326
- s.reason === ge.ResultReason.SynthesizingAudioCompleted ? e() : r(new Error("Speech synthesis failed")), F == null || F.close(), F = null, ht = null;
17326
+ s.reason === ge.ResultReason.SynthesizingAudioCompleted ? e() : r(new Error("Speech synthesis failed")), F == null || F.close(), F = null, lt = null;
17327
17327
  },
17328
17328
  (s) => {
17329
- if (a !== ht)
17329
+ if (a !== lt)
17330
17330
  return fe == null || fe.mute(), F == null || F.close(), F = null, e();
17331
- F == null || F.close(), F = null, ht = null, r(s);
17331
+ F == null || F.close(), F = null, lt = null, r(s);
17332
17332
  }
17333
17333
  );
17334
17334
  })), wm = async (t) => {
@@ -17336,12 +17336,12 @@ const Xi = () => {
17336
17336
  const e = ge.SpeechConfig.fromAuthorizationToken(nt.authToken, "eastus2");
17337
17337
  e.speechRecognitionLanguage = "en-US";
17338
17338
  const r = ge.AudioConfig.fromDefaultMicrophoneInput(), i = new ge.SpeechRecognizer(e, r);
17339
- return Dn = i, dt.value = "", et.value = "", i.recognizing = (p, a) => {
17340
- a.result.text && a.result.text.trim() && (dt.value = a.result.text.trim(), Xi(), nt.userspeaking = !0, nt.userSpeechText = (et.value ? et.value + " " : "") + dt.value, _s.value = "user", be && clearTimeout(be), be = setTimeout(() => {
17341
- dt.value && (t(dt.value.trim()), dt.value = "");
17339
+ return Dn = i, ht.value = "", et.value = "", i.recognizing = (p, a) => {
17340
+ a.result.text && a.result.text.trim() && (ht.value = a.result.text.trim(), Xi(), nt.userspeaking = !0, nt.userSpeechText = (et.value ? et.value + " " : "") + ht.value, _s.value = "user", Me && clearTimeout(Me), Me = setTimeout(() => {
17341
+ ht.value && (t(ht.value.trim()), ht.value = "");
17342
17342
  }, Fc));
17343
17343
  }, i.recognized = (p, a) => {
17344
- a.result.reason === ge.ResultReason.RecognizedSpeech && a.result.text && a.result.text.trim() && (et.value += " " + a.result.text.trim(), be && clearTimeout(be), be = setTimeout(() => {
17344
+ a.result.reason === ge.ResultReason.RecognizedSpeech && a.result.text && a.result.text.trim() && (et.value += " " + a.result.text.trim(), Me && clearTimeout(Me), Me = setTimeout(() => {
17345
17345
  et.value && (t(et.value), et.value = "");
17346
17346
  }, Fc));
17347
17347
  }, i.canceled = (p, a) => {
@@ -17384,7 +17384,7 @@ export {
17384
17384
  ro as g,
17385
17385
  $c as h,
17386
17386
  _s as i,
17387
- Me as m,
17387
+ Pe as m,
17388
17388
  rC as p,
17389
17389
  qc as r,
17390
17390
  co as s