@genpact/genome.mfe.mgtwin-app 1.1.329-alpha → 1.1.331-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.
- package/dist/{AssessmentAMA-265050f2.mjs → AssessmentAMA-b7f1dc07.mjs} +17 -17
- package/dist/{AssessmentSimulation-3a087e23.mjs → AssessmentSimulation-f4f7d228.mjs} +406 -410
- package/dist/{EditSkillAdminData-5e9f9068.mjs → EditSkillAdminData-eca176a3.mjs} +2 -2
- package/dist/{EditSkillData-95626c99.mjs → EditSkillData-c11d414c.mjs} +2 -2
- package/dist/{HomeView-53364137.mjs → HomeView-7d13fc06.mjs} +11 -8
- package/dist/{Loading-3be77584.mjs → Loading-3d87bdd5.mjs} +1 -1
- package/dist/{LoadingSimulation-6e1608c1.mjs → LoadingSimulation-49d326d5.mjs} +1 -1
- package/dist/{Modal-8a04d494.mjs → Modal-e1c3112e.mjs} +1 -1
- package/dist/{PaperAirplaneIcon-e7f1ad92.mjs → PaperAirplaneIcon-e4297e42.mjs} +1 -1
- package/dist/{PromptTesting-f67667d6.mjs → PromptTesting-f05194e8.mjs} +3 -3
- package/dist/{SkillAutomation-12a16283.mjs → SkillAutomation-d9f9a281.mjs} +3 -3
- package/dist/{SkillData-5be389be.mjs → SkillData-24e45820.mjs} +3 -3
- package/dist/{Testcase-d78f9a85.mjs → Testcase-23654952.mjs} +3 -3
- package/dist/{UnderMaintenance-fd350fa8.mjs → UnderMaintenance-85977afd.mjs} +1 -1
- package/dist/{_commonjsHelpers-a3546faf.mjs → _commonjsHelpers-a5ceb984.mjs} +1 -1
- package/dist/{api-05b4a7bc.mjs → api-db9215cd.mjs} +1 -1
- package/dist/{main-dfd042f1.mjs → main-beb91815.mjs} +1116 -1115
- package/dist/mgtwin.es.min.js +1 -1
- package/dist/mgtwin.umd.min.js +10 -10
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as Sl, a as up, L as Cl } from "./LoadingSimulation-
|
|
2
|
-
import { _ as yl, a as pp, Q as
|
|
3
|
-
import { d as _e, r as
|
|
1
|
+
import { _ as Sl, a as up, L as Cl } from "./LoadingSimulation-49d326d5.mjs";
|
|
2
|
+
import { _ as yl, a as pp, Q as zt, M as ba } from "./Modal-e1c3112e.mjs";
|
|
3
|
+
import { d as _e, r as b, H as jt, o as D, c as k, a as P, u as Ne, y as Uo, h as ye, s as dp, t as Xe, b as O, f as Pe, i as ge, I as Qi, F as Ho, e as Wo, w as Yo, J as Pl, p as Kn, g as Jn, G as es, C as Wt, z as Rl, K as El, k as Vt, q as Ie, n as Lt, m as lp, L as hp, l as wl } from "./main-beb91815.mjs";
|
|
4
4
|
import { _ as $t } from "./_plugin-vue_export-helper-dad06003.mjs";
|
|
5
|
-
import { g as qn, p as Hn } from "./api-
|
|
6
|
-
import { c as q, a as Al, r as Il } from "./_commonjsHelpers-
|
|
5
|
+
import { g as qn, p as Hn } from "./api-db9215cd.mjs";
|
|
6
|
+
import { c as q, a as Al, r as Il } from "./_commonjsHelpers-a5ceb984.mjs";
|
|
7
7
|
import "./loadernew-ac153a51.mjs";
|
|
8
8
|
const _l = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#021c42] md:pr-6 lg:pr-6" }, Tl = ["href"], bl = /* @__PURE__ */ P("img", {
|
|
9
9
|
class: "h-11 w-auto cursor-pointer",
|
|
@@ -20,8 +20,8 @@ const _l = { class: "flex h-14 w-full flex-1 items-center justify-between bg-[#0
|
|
|
20
20
|
], Nl = /* @__PURE__ */ _e({
|
|
21
21
|
__name: "headerSimulation",
|
|
22
22
|
setup(t) {
|
|
23
|
-
const e =
|
|
24
|
-
return
|
|
23
|
+
const e = b(""), r = b("");
|
|
24
|
+
return jt === "prod" ? e.value = "https://genome.genpact.com" : e.value = "https://genome-dev.genpact.com", jt === "prod" ? r.value = "https://genome.genpact.com/#aiguru" : r.value = "https://genome-dev.genpact.com/#aiguru", (i, u) => (D(), k("nav", _l, [
|
|
25
25
|
P("a", {
|
|
26
26
|
class: "px-2 md:px-0 lg:px-0",
|
|
27
27
|
href: e.value,
|
|
@@ -81,12 +81,8 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
81
81
|
__name: "greetingsSimulation",
|
|
82
82
|
emits: ["callQuestion"],
|
|
83
83
|
setup(t, { emit: e }) {
|
|
84
|
-
const r = Ne()
|
|
85
|
-
|
|
86
|
-
const i = _(!1);
|
|
87
|
-
_(!1), _(!0);
|
|
88
|
-
const u = () => {
|
|
89
|
-
r.simulationSkill === "7bd03cb6-79ad-4e2a-8a8b-88dc16147369" ? (r.question = "Let's start", r.beginFlag = !1, i.value = !0) : r.beginFlag = !1;
|
|
84
|
+
const r = Ne(), i = b(!1), u = () => {
|
|
85
|
+
r.simulationSkill === "7bd03cb6-79ad-4e2a-8a8b-88dc16147369" ? (r.question = "Let's start", r.beginFlag = !1, i.value = !0) : (r.beginFlag = !1, r.question = "Let's start", e("callQuestion"));
|
|
90
86
|
}, a = `Hi, get ready to test your ${r.skillNameForSimulation || "Unknown"} knowledge! Here’s what to expect:`, o = ` Hi ${r.learnerName || "Expert"}, and welcome!`, n = ` Hi, ${r.learnerName || "Expert"}. Get ready to test your ${r.skillNameForSimulation || "Unknown"} knowledge! Here’s what to expect:`, s = Uo(() => ["32b7d6d8-f7a8-40a0-ab84-8784f25897ef"].includes(r.simulationSkill) ? a : ["7bd03cb6-79ad-4e2a-8a8b-88dc16147369"].includes(r.simulationSkill) ? o : n), c = `Hi, get ready to test your ${r.skillNameForSimulation || "Unknown"} knowledge! Here’s what to expect:`, p = ` AI Guru will ask you a few questions on '${r.skillNameForSimulation.trim() || "Unknown"} '. Please provide detailed and thoughtful answers to the best of your knowledge. At the end, you'll receive a feedback, outlining your strengths and improvement areas.`, d = Uo(() => ["32b7d6d8-f7a8-40a0-ab84-8784f25897ef"].includes(r.simulationSkill) ? c : ["7bd03cb6-79ad-4e2a-8a8b-88dc16147369"].includes(r.simulationSkill) ? Wl : p);
|
|
91
87
|
return (l, h) => (D(), k("section", null, [
|
|
92
88
|
ye(pp, { "is-visible": i.value }, {
|
|
@@ -122,7 +118,7 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
122
118
|
Hl
|
|
123
119
|
]));
|
|
124
120
|
}
|
|
125
|
-
}), $l = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAB9AH0DASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD36medEDgypn/eFLL/AKl8f3TXzJofh/xD458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j6Mt95f9nhQXI+/ivR6KAKGlaVa6VZQ29tbxRlI1RmRAu4gYyav0UUAf/9k=", vp = (t) => (Kn("data-v-cc5db4a2"), t = t(), Jn(), t), Kl = { class: "fontFormattingAMA flex items-end justify-start py-2" }, Jl = { class: "line-break w-full bg-gray-100 p-3 text-sm text-black md:text-[15px] rounded-lg" }, Gl = ["innerHTML"], Ql = ["innerHTML"], Xl = {
|
|
126
122
|
key: 0,
|
|
127
123
|
class: "py-4"
|
|
128
124
|
}, Zl = { class: "fontFormattingAMA px-2 py-1.5 md:px-6" }, Yl = ["value", "disabled", "name"], eh = {
|
|
@@ -180,7 +176,7 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
180
176
|
},
|
|
181
177
|
emits: ["char-typed"],
|
|
182
178
|
setup(t, { emit: e }) {
|
|
183
|
-
const r = t, i =
|
|
179
|
+
const r = t, i = b([]), u = b(!1), a = Ne(), o = b("");
|
|
184
180
|
let n = [], s = "";
|
|
185
181
|
const c = async () => {
|
|
186
182
|
n = s.split(""), o.value = "";
|
|
@@ -269,11 +265,11 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
269
265
|
P("div", Jl, [
|
|
270
266
|
O(a).simulationSkill === "7bd03cb6-79ad-4e2a-8a8b-88dc16147369" && O(a).showVoiceComponent === !0 && O(a).conversations.length - 1 === r.ansId && !r.answer.includes("BEGIN ROLE PLAY") ? (D(), k("span", {
|
|
271
267
|
key: 0,
|
|
272
|
-
class: "fontFormattingAMA",
|
|
268
|
+
class: "fontFormattingAMA answer-link",
|
|
273
269
|
innerHTML: o.value
|
|
274
270
|
}, null, 8, Gl)) : (D(), k("span", {
|
|
275
271
|
key: 1,
|
|
276
|
-
class: "fontFormattingAMA",
|
|
272
|
+
class: "fontFormattingAMA answer-link",
|
|
277
273
|
innerHTML: d.value
|
|
278
274
|
}, null, 8, Ql)),
|
|
279
275
|
P("div", null, [
|
|
@@ -329,7 +325,7 @@ This is a role-play simulation designed to mirror real-world scenarios. Just fol
|
|
|
329
325
|
]));
|
|
330
326
|
}
|
|
331
327
|
});
|
|
332
|
-
const lh = /* @__PURE__ */ $t(dh, [["__scopeId", "data-v-
|
|
328
|
+
const lh = /* @__PURE__ */ $t(dh, [["__scopeId", "data-v-cc5db4a2"]]), hh = { class: "flex justify-end items-end py-3" }, vh = { class: "max-w-[80%]" }, fh = { class: "fontFormattingAMA w-fit text-[0.8125rem] md:text-[0.9375rem] text-white bg-genpact-blue-box leading-6 p-3 rounded-lg" }, gh = /* @__PURE__ */ _e({
|
|
333
329
|
__name: "learnerSimulation",
|
|
334
330
|
props: {
|
|
335
331
|
question: {
|
|
@@ -355,7 +351,7 @@ const lh = /* @__PURE__ */ $t(dh, [["__scopeId", "data-v-57dd7b71"]]), hh = { cl
|
|
|
355
351
|
], -1)), Rh = /* @__PURE__ */ es('<div class="block w-full max-w-full items-stretch" data-v-347ad6de><div class="flex animate-pulse items-start justify-start space-x-4" data-v-347ad6de><div class="flex-1 space-y-6 py-1" data-v-347ad6de><div class="h-2 w-full rounded bg-gray-300" data-v-347ad6de></div><div class="space-y-3" data-v-347ad6de><div class="grid grid-cols-3 gap-4" data-v-347ad6de><div class="col-span-2 h-2 rounded bg-gray-300" data-v-347ad6de></div><div class="col-span-1 h-2 rounded bg-gray-300" data-v-347ad6de></div></div><div class="h-2 rounded bg-gray-300" data-v-347ad6de></div></div></div></div></div>', 1), Eh = /* @__PURE__ */ _e({
|
|
356
352
|
__name: "LoadingResponse",
|
|
357
353
|
setup(t) {
|
|
358
|
-
const e =
|
|
354
|
+
const e = b("Generating response"), r = b([
|
|
359
355
|
"This may take a few seconds",
|
|
360
356
|
"Fetching the best response for you",
|
|
361
357
|
"Thinking... give me a moment",
|
|
@@ -398,12 +394,12 @@ const wh = /* @__PURE__ */ $t(Eh, [["__scopeId", "data-v-347ad6de"]]), Ah = { cl
|
|
|
398
394
|
}, kh = /* @__PURE__ */ _e({
|
|
399
395
|
__name: "conversationSimulation",
|
|
400
396
|
setup(t) {
|
|
401
|
-
let e =
|
|
397
|
+
let e = b(""), r = b("");
|
|
402
398
|
e.value = '<a style="color:#00AECF;"', r.value = '<ul style="list-style: disc !important; margin-left: 3.5rem !important; padding: 0;"';
|
|
403
|
-
const i = Ne(), u =
|
|
399
|
+
const i = Ne(), u = b(), a = () => {
|
|
404
400
|
u.value.scrollTo(0, u.value.scrollHeight);
|
|
405
401
|
};
|
|
406
|
-
return
|
|
402
|
+
return Wt(() => {
|
|
407
403
|
var s;
|
|
408
404
|
const o = document.getElementsByName("askQuestion"), n = Array.from(o);
|
|
409
405
|
o.length && ((s = n == null ? void 0 : n.pop()) == null || s.scrollIntoView({ behavior: "smooth", block: "center" })), window.addEventListener("custom-event", a);
|
|
@@ -458,10 +454,10 @@ const wh = /* @__PURE__ */ $t(Eh, [["__scopeId", "data-v-347ad6de"]]), Ah = { cl
|
|
|
458
454
|
});
|
|
459
455
|
const Nh = /* @__PURE__ */ $t(kh, [["__scopeId", "data-v-c14e6f9c"]]);
|
|
460
456
|
Ne();
|
|
461
|
-
const Ma =
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
457
|
+
const Ma = Vt(), Ot = b(!1), xn = b("");
|
|
458
|
+
b("");
|
|
459
|
+
b("");
|
|
460
|
+
Wt(() => {
|
|
465
461
|
console.log("Mounted voiceService11Labs");
|
|
466
462
|
});
|
|
467
463
|
const zh = async () => {
|
|
@@ -479,18 +475,18 @@ const zh = async () => {
|
|
|
479
475
|
};
|
|
480
476
|
let Xi;
|
|
481
477
|
const jh = "Xb7hH8MSUJpSbSDYk0k2";
|
|
482
|
-
|
|
483
|
-
const Lh =
|
|
478
|
+
b(!1);
|
|
479
|
+
const Lh = b("");
|
|
484
480
|
let Hi = [];
|
|
485
|
-
const fp =
|
|
486
|
-
let
|
|
487
|
-
|
|
488
|
-
let Pt, Rt,
|
|
481
|
+
const fp = b(!1);
|
|
482
|
+
let _t = !1, fe = null, Fn = null, He = null;
|
|
483
|
+
b("");
|
|
484
|
+
let Pt, Rt, kt, Nt;
|
|
489
485
|
function Vo() {
|
|
490
|
-
|
|
486
|
+
Nt && Nt.disconnect(), Rt && Rt.disconnect(), console.log("microphone outside->", kt), kt && (console.log("microphone->", kt), console.log("Stopping microphone connection"), kt.disconnect()), Pt && Pt.close();
|
|
491
487
|
}
|
|
492
488
|
function xh(t, e = 0.09) {
|
|
493
|
-
console.log("monitorMicDuringTTS called with threshold:", e), Pt = new (window.AudioContext || window.webkitAudioContext)(), Rt = Pt.createAnalyser(),
|
|
489
|
+
console.log("monitorMicDuringTTS called with threshold:", e), Pt = new (window.AudioContext || window.webkitAudioContext)(), Rt = Pt.createAnalyser(), kt = Pt.createMediaStreamSource(Fn), Nt = Pt.createScriptProcessor(2048, 1, 1), kt.connect(Rt), Rt.connect(Nt), Nt.connect(Pt.destination), Nt.onaudioprocess = () => {
|
|
494
490
|
const r = new Uint8Array(Rt.frequencyBinCount);
|
|
495
491
|
Rt.getByteFrequencyData(r);
|
|
496
492
|
const i = r.reduce((u, a) => u + a) / r.length;
|
|
@@ -498,7 +494,7 @@ function xh(t, e = 0.09) {
|
|
|
498
494
|
};
|
|
499
495
|
}
|
|
500
496
|
async function $o() {
|
|
501
|
-
fp.value = !0,
|
|
497
|
+
fp.value = !0, Ot.value = !0, console.log("Starting voice recognition with ElevenLabs"), fe && fe.pause(), Fn = await navigator.mediaDevices.getUserMedia({ audio: !0 }), await Bh();
|
|
502
498
|
}
|
|
503
499
|
async function Bh() {
|
|
504
500
|
if (!Fn)
|
|
@@ -535,7 +531,7 @@ async function Fh(t) {
|
|
|
535
531
|
return r.ok ? (i == null ? void 0 : i.text) || "[No transcription result]" : (console.error("Transcription error:", i), "[Error in transcription]");
|
|
536
532
|
}
|
|
537
533
|
async function Uh(t) {
|
|
538
|
-
console.log("speakText11Labs called with text:", t), Xi = await zh(), fe && fe.pause(),
|
|
534
|
+
console.log("speakText11Labs called with text:", t), Xi = await zh(), fe && fe.pause(), _t = !0;
|
|
539
535
|
const r = await (await fetch(`https://api.elevenlabs.io/v1/text-to-speech/${jh}`, {
|
|
540
536
|
method: "POST",
|
|
541
537
|
headers: {
|
|
@@ -554,13 +550,13 @@ async function Uh(t) {
|
|
|
554
550
|
})).blob(), i = URL.createObjectURL(r);
|
|
555
551
|
return fe = new Audio(i), new Promise((u) => {
|
|
556
552
|
fe && (fe.onended = async () => {
|
|
557
|
-
|
|
558
|
-
}, fe.play(), console.log("Audio is playing:",
|
|
559
|
-
fe && (fe.pause(), fe.currentTime = 0),
|
|
553
|
+
_t = !1, console.log("Audio is playing:", _t), Ot.value ? (console.log("micEnabled before calling startrecognition:", Ot.value), u(await $o())) : u();
|
|
554
|
+
}, fe.play(), console.log("Audio is playing:", _t), console.log("micEnabled:", Ot.value), Ot.value && xh(() => {
|
|
555
|
+
fe && (fe.pause(), fe.currentTime = 0), _t = !1, console.log("monitorMicDuringTTS:", _t), console.log("micEnabled before calling startrecognition:", Ot.value), $o();
|
|
560
556
|
}));
|
|
561
557
|
});
|
|
562
558
|
}
|
|
563
|
-
var De = {}, Co = {}, ts = {}, yo = {},
|
|
559
|
+
var De = {}, Co = {}, ts = {}, yo = {}, J = {}, Kt = {}, we = {}, gp = {}, rs = {}, ns = {};
|
|
564
560
|
Object.defineProperty(ns, "__esModule", {
|
|
565
561
|
value: !0
|
|
566
562
|
});
|
|
@@ -572,17 +568,17 @@ function Wh() {
|
|
|
572
568
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
573
569
|
return Wi(Hh);
|
|
574
570
|
}
|
|
575
|
-
var et = {},
|
|
571
|
+
var et = {}, wt = {}, is = {};
|
|
576
572
|
Object.defineProperty(is, "__esModule", {
|
|
577
573
|
value: !0
|
|
578
574
|
});
|
|
579
575
|
is.default = void 0;
|
|
580
576
|
var Vh = /^(?:[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;
|
|
581
577
|
is.default = Vh;
|
|
582
|
-
Object.defineProperty(
|
|
578
|
+
Object.defineProperty(wt, "__esModule", {
|
|
583
579
|
value: !0
|
|
584
580
|
});
|
|
585
|
-
|
|
581
|
+
wt.default = void 0;
|
|
586
582
|
var $h = Kh(is);
|
|
587
583
|
function Kh(t) {
|
|
588
584
|
return t && t.__esModule ? t : { default: t };
|
|
@@ -591,13 +587,13 @@ function Jh(t) {
|
|
|
591
587
|
return typeof t == "string" && $h.default.test(t);
|
|
592
588
|
}
|
|
593
589
|
var Gh = Jh;
|
|
594
|
-
|
|
590
|
+
wt.default = Gh;
|
|
595
591
|
Object.defineProperty(et, "__esModule", {
|
|
596
592
|
value: !0
|
|
597
593
|
});
|
|
598
594
|
et.default = void 0;
|
|
599
595
|
et.unsafeStringify = mp;
|
|
600
|
-
var Qh = Xh(
|
|
596
|
+
var Qh = Xh(wt);
|
|
601
597
|
function Xh(t) {
|
|
602
598
|
return t && t.__esModule ? t : { default: t };
|
|
603
599
|
}
|
|
@@ -653,7 +649,7 @@ Object.defineProperty(Gn, "__esModule", {
|
|
|
653
649
|
value: !0
|
|
654
650
|
});
|
|
655
651
|
Gn.default = void 0;
|
|
656
|
-
var sv = ov(
|
|
652
|
+
var sv = ov(wt);
|
|
657
653
|
function ov(t) {
|
|
658
654
|
return t && t.__esModule ? t : { default: t };
|
|
659
655
|
}
|
|
@@ -736,7 +732,7 @@ function gv(t, e) {
|
|
|
736
732
|
let r = 1732584193, i = -271733879, u = -1732584194, a = 271733878;
|
|
737
733
|
for (let o = 0; o < t.length; o += 16) {
|
|
738
734
|
const n = r, s = i, c = u, p = a;
|
|
739
|
-
r =
|
|
735
|
+
r = ce(r, i, u, a, t[o], 7, -680876936), a = ce(a, r, i, u, t[o + 1], 12, -389564586), u = ce(u, a, r, i, t[o + 2], 17, 606105819), i = ce(i, u, a, r, t[o + 3], 22, -1044525330), r = ce(r, i, u, a, t[o + 4], 7, -176418897), a = ce(a, r, i, u, t[o + 5], 12, 1200080426), u = ce(u, a, r, i, t[o + 6], 17, -1473231341), i = ce(i, u, a, r, t[o + 7], 22, -45705983), r = ce(r, i, u, a, t[o + 8], 7, 1770035416), a = ce(a, r, i, u, t[o + 9], 12, -1958414417), u = ce(u, a, r, i, t[o + 10], 17, -42063), i = ce(i, u, a, r, t[o + 11], 22, -1990404162), r = ce(r, i, u, a, t[o + 12], 7, 1804603682), a = ce(a, r, i, u, t[o + 13], 12, -40341101), u = ce(u, a, r, i, t[o + 14], 17, -1502002290), i = ce(i, u, a, r, t[o + 15], 22, 1236535329), r = ue(r, i, u, a, t[o + 1], 5, -165796510), a = ue(a, r, i, u, t[o + 6], 9, -1069501632), u = ue(u, a, r, i, t[o + 11], 14, 643717713), i = ue(i, u, a, r, t[o], 20, -373897302), r = ue(r, i, u, a, t[o + 5], 5, -701558691), a = ue(a, r, i, u, t[o + 10], 9, 38016083), u = ue(u, a, r, i, t[o + 15], 14, -660478335), i = ue(i, u, a, r, t[o + 4], 20, -405537848), r = ue(r, i, u, a, t[o + 9], 5, 568446438), a = ue(a, r, i, u, t[o + 14], 9, -1019803690), u = ue(u, a, r, i, t[o + 3], 14, -187363961), i = ue(i, u, a, r, t[o + 8], 20, 1163531501), r = ue(r, i, u, a, t[o + 13], 5, -1444681467), a = ue(a, r, i, u, t[o + 2], 9, -51403784), u = ue(u, a, r, i, t[o + 7], 14, 1735328473), i = ue(i, u, a, r, t[o + 12], 20, -1926607734), r = pe(r, i, u, a, t[o + 5], 4, -378558), a = pe(a, r, i, u, t[o + 8], 11, -2022574463), u = pe(u, a, r, i, t[o + 11], 16, 1839030562), i = pe(i, u, a, r, t[o + 14], 23, -35309556), r = pe(r, i, u, a, t[o + 1], 4, -1530992060), a = pe(a, r, i, u, t[o + 4], 11, 1272893353), u = pe(u, a, r, i, t[o + 7], 16, -155497632), i = pe(i, u, a, r, t[o + 10], 23, -1094730640), r = pe(r, i, u, a, t[o + 13], 4, 681279174), a = pe(a, r, i, u, t[o], 11, -358537222), u = pe(u, a, r, i, t[o + 3], 16, -722521979), i = pe(i, u, a, r, t[o + 6], 23, 76029189), r = pe(r, i, u, a, t[o + 9], 4, -640364487), a = pe(a, r, i, u, t[o + 12], 11, -421815835), u = pe(u, a, r, i, t[o + 15], 16, 530742520), i = pe(i, u, a, r, t[o + 2], 23, -995338651), r = de(r, i, u, a, t[o], 6, -198630844), a = de(a, r, i, u, t[o + 7], 10, 1126891415), u = de(u, a, r, i, t[o + 14], 15, -1416354905), i = de(i, u, a, r, t[o + 5], 21, -57434055), r = de(r, i, u, a, t[o + 12], 6, 1700485571), a = de(a, r, i, u, t[o + 3], 10, -1894986606), u = de(u, a, r, i, t[o + 10], 15, -1051523), i = de(i, u, a, r, t[o + 1], 21, -2054922799), r = de(r, i, u, a, t[o + 8], 6, 1873313359), a = de(a, r, i, u, t[o + 15], 10, -30611744), u = de(u, a, r, i, t[o + 6], 15, -1560198380), i = de(i, u, a, r, t[o + 13], 21, 1309151649), r = de(r, i, u, a, t[o + 4], 6, -145523070), a = de(a, r, i, u, t[o + 11], 10, -1120210379), u = de(u, a, r, i, t[o + 2], 15, 718787259), i = de(i, u, a, r, t[o + 9], 21, -343485551), r = Ge(r, n), i = Ge(i, s), u = Ge(u, c), a = Ge(a, p);
|
|
740
736
|
}
|
|
741
737
|
return [r, i, u, a];
|
|
742
738
|
}
|
|
@@ -758,16 +754,16 @@ function Sv(t, e) {
|
|
|
758
754
|
function as(t, e, r, i, u, a) {
|
|
759
755
|
return Ge(Sv(Ge(Ge(e, t), Ge(i, a)), u), r);
|
|
760
756
|
}
|
|
761
|
-
function
|
|
757
|
+
function ce(t, e, r, i, u, a, o) {
|
|
762
758
|
return as(e & r | ~e & i, t, e, u, a, o);
|
|
763
759
|
}
|
|
764
|
-
function
|
|
760
|
+
function ue(t, e, r, i, u, a, o) {
|
|
765
761
|
return as(e & i | r & ~i, t, e, u, a, o);
|
|
766
762
|
}
|
|
767
|
-
function
|
|
763
|
+
function pe(t, e, r, i, u, a, o) {
|
|
768
764
|
return as(e ^ r ^ i, t, e, u, a, o);
|
|
769
765
|
}
|
|
770
|
-
function
|
|
766
|
+
function de(t, e, r, i, u, a, o) {
|
|
771
767
|
return as(r ^ (e | ~i), t, e, u, a, o);
|
|
772
768
|
}
|
|
773
769
|
var Cv = vv;
|
|
@@ -894,7 +890,7 @@ Object.defineProperty(hs, "__esModule", {
|
|
|
894
890
|
value: !0
|
|
895
891
|
});
|
|
896
892
|
hs.default = void 0;
|
|
897
|
-
var xv = Bv(
|
|
893
|
+
var xv = Bv(wt);
|
|
898
894
|
function Bv(t) {
|
|
899
895
|
return t && t.__esModule ? t : { default: t };
|
|
900
896
|
}
|
|
@@ -954,7 +950,7 @@ hs.default = Fv;
|
|
|
954
950
|
return o.default;
|
|
955
951
|
}
|
|
956
952
|
});
|
|
957
|
-
var e = p(rs), r = p(ss), i = p(cs), u = p(ps), a = p(ls), o = p(hs), n = p(
|
|
953
|
+
var e = p(rs), r = p(ss), i = p(cs), u = p(ps), a = p(ls), o = p(hs), n = p(wt), s = p(et), c = p(Gn);
|
|
958
954
|
function p(d) {
|
|
959
955
|
return d && d.__esModule ? d : { default: d };
|
|
960
956
|
}
|
|
@@ -993,8 +989,8 @@ we.createNoDashGuid = Hv;
|
|
|
993
989
|
}
|
|
994
990
|
t.PlatformEvent = r;
|
|
995
991
|
})(Kt);
|
|
996
|
-
Object.defineProperty(
|
|
997
|
-
|
|
992
|
+
Object.defineProperty(J, "__esModule", { value: !0 });
|
|
993
|
+
J.AudioStreamNodeErrorEvent = J.AudioStreamNodeDetachedEvent = J.AudioStreamNodeAttachedEvent = J.AudioStreamNodeAttachingEvent = J.AudioStreamNodeEvent = J.AudioSourceErrorEvent = J.AudioSourceOffEvent = J.AudioSourceReadyEvent = J.AudioSourceInitializingEvent = J.AudioSourceEvent = void 0;
|
|
998
994
|
const Ko = Kt;
|
|
999
995
|
class Jt extends Ko.PlatformEvent {
|
|
1000
996
|
constructor(e, r, i = Ko.EventType.Info) {
|
|
@@ -1004,25 +1000,25 @@ class Jt extends Ko.PlatformEvent {
|
|
|
1004
1000
|
return this.privAudioSourceId;
|
|
1005
1001
|
}
|
|
1006
1002
|
}
|
|
1007
|
-
|
|
1003
|
+
J.AudioSourceEvent = Jt;
|
|
1008
1004
|
class Wv extends Jt {
|
|
1009
1005
|
constructor(e) {
|
|
1010
1006
|
super("AudioSourceInitializingEvent", e);
|
|
1011
1007
|
}
|
|
1012
1008
|
}
|
|
1013
|
-
|
|
1009
|
+
J.AudioSourceInitializingEvent = Wv;
|
|
1014
1010
|
class Vv extends Jt {
|
|
1015
1011
|
constructor(e) {
|
|
1016
1012
|
super("AudioSourceReadyEvent", e);
|
|
1017
1013
|
}
|
|
1018
1014
|
}
|
|
1019
|
-
|
|
1015
|
+
J.AudioSourceReadyEvent = Vv;
|
|
1020
1016
|
class $v extends Jt {
|
|
1021
1017
|
constructor(e) {
|
|
1022
1018
|
super("AudioSourceOffEvent", e);
|
|
1023
1019
|
}
|
|
1024
1020
|
}
|
|
1025
|
-
|
|
1021
|
+
J.AudioSourceOffEvent = $v;
|
|
1026
1022
|
class Kv extends Jt {
|
|
1027
1023
|
constructor(e, r) {
|
|
1028
1024
|
super("AudioSourceErrorEvent", e, Ko.EventType.Error), this.privError = r;
|
|
@@ -1031,7 +1027,7 @@ class Kv extends Jt {
|
|
|
1031
1027
|
return this.privError;
|
|
1032
1028
|
}
|
|
1033
1029
|
}
|
|
1034
|
-
|
|
1030
|
+
J.AudioSourceErrorEvent = Kv;
|
|
1035
1031
|
class Qn extends Jt {
|
|
1036
1032
|
constructor(e, r, i) {
|
|
1037
1033
|
super(e, r), this.privAudioNodeId = i;
|
|
@@ -1040,25 +1036,25 @@ class Qn extends Jt {
|
|
|
1040
1036
|
return this.privAudioNodeId;
|
|
1041
1037
|
}
|
|
1042
1038
|
}
|
|
1043
|
-
|
|
1039
|
+
J.AudioStreamNodeEvent = Qn;
|
|
1044
1040
|
class Jv extends Qn {
|
|
1045
1041
|
constructor(e, r) {
|
|
1046
1042
|
super("AudioStreamNodeAttachingEvent", e, r);
|
|
1047
1043
|
}
|
|
1048
1044
|
}
|
|
1049
|
-
|
|
1045
|
+
J.AudioStreamNodeAttachingEvent = Jv;
|
|
1050
1046
|
class Gv extends Qn {
|
|
1051
1047
|
constructor(e, r) {
|
|
1052
1048
|
super("AudioStreamNodeAttachedEvent", e, r);
|
|
1053
1049
|
}
|
|
1054
1050
|
}
|
|
1055
|
-
|
|
1051
|
+
J.AudioStreamNodeAttachedEvent = Gv;
|
|
1056
1052
|
class Qv extends Qn {
|
|
1057
1053
|
constructor(e, r) {
|
|
1058
1054
|
super("AudioStreamNodeDetachedEvent", e, r);
|
|
1059
1055
|
}
|
|
1060
1056
|
}
|
|
1061
|
-
|
|
1057
|
+
J.AudioStreamNodeDetachedEvent = Qv;
|
|
1062
1058
|
class Xv extends Qn {
|
|
1063
1059
|
constructor(e, r, i) {
|
|
1064
1060
|
super("AudioStreamNodeErrorEvent", e, r), this.privError = i;
|
|
@@ -1067,10 +1063,10 @@ class Xv extends Qn {
|
|
|
1067
1063
|
return this.privError;
|
|
1068
1064
|
}
|
|
1069
1065
|
}
|
|
1070
|
-
|
|
1071
|
-
var
|
|
1072
|
-
Object.defineProperty(
|
|
1073
|
-
|
|
1066
|
+
J.AudioStreamNodeErrorEvent = Xv;
|
|
1067
|
+
var G = {};
|
|
1068
|
+
Object.defineProperty(G, "__esModule", { value: !0 });
|
|
1069
|
+
G.ConnectionRedirectEvent = G.ConnectionMessageSentEvent = G.ConnectionMessageReceivedEvent = G.ConnectionEstablishErrorEvent = G.ConnectionErrorEvent = G.ConnectionClosedEvent = G.ConnectionEstablishedEvent = G.ConnectionStartEvent = G.ConnectionEvent = G.ServiceEvent = void 0;
|
|
1074
1070
|
const Ye = Kt;
|
|
1075
1071
|
class Zv extends Ye.PlatformEvent {
|
|
1076
1072
|
constructor(e, r, i = Ye.EventType.Info) {
|
|
@@ -1080,7 +1076,7 @@ class Zv extends Ye.PlatformEvent {
|
|
|
1080
1076
|
return this.privJsonResult;
|
|
1081
1077
|
}
|
|
1082
1078
|
}
|
|
1083
|
-
|
|
1079
|
+
G.ServiceEvent = Zv;
|
|
1084
1080
|
class qe extends Ye.PlatformEvent {
|
|
1085
1081
|
constructor(e, r, i = Ye.EventType.Info) {
|
|
1086
1082
|
super(e, i), this.privConnectionId = r;
|
|
@@ -1089,7 +1085,7 @@ class qe extends Ye.PlatformEvent {
|
|
|
1089
1085
|
return this.privConnectionId;
|
|
1090
1086
|
}
|
|
1091
1087
|
}
|
|
1092
|
-
|
|
1088
|
+
G.ConnectionEvent = qe;
|
|
1093
1089
|
class Yv extends qe {
|
|
1094
1090
|
constructor(e, r, i) {
|
|
1095
1091
|
super("ConnectionStartEvent", e), this.privUri = r, this.privHeaders = i;
|
|
@@ -1101,13 +1097,13 @@ class Yv extends qe {
|
|
|
1101
1097
|
return this.privHeaders;
|
|
1102
1098
|
}
|
|
1103
1099
|
}
|
|
1104
|
-
|
|
1100
|
+
G.ConnectionStartEvent = Yv;
|
|
1105
1101
|
class ef extends qe {
|
|
1106
1102
|
constructor(e) {
|
|
1107
1103
|
super("ConnectionEstablishedEvent", e);
|
|
1108
1104
|
}
|
|
1109
1105
|
}
|
|
1110
|
-
|
|
1106
|
+
G.ConnectionEstablishedEvent = ef;
|
|
1111
1107
|
class tf extends qe {
|
|
1112
1108
|
constructor(e, r, i) {
|
|
1113
1109
|
super("ConnectionClosedEvent", e, Ye.EventType.Debug), this.privReason = i, this.privStatusCode = r;
|
|
@@ -1119,7 +1115,7 @@ class tf extends qe {
|
|
|
1119
1115
|
return this.privStatusCode;
|
|
1120
1116
|
}
|
|
1121
1117
|
}
|
|
1122
|
-
|
|
1118
|
+
G.ConnectionClosedEvent = tf;
|
|
1123
1119
|
class rf extends qe {
|
|
1124
1120
|
constructor(e, r, i) {
|
|
1125
1121
|
super("ConnectionErrorEvent", e, Ye.EventType.Debug), this.privMessage = r, this.privType = i;
|
|
@@ -1131,7 +1127,7 @@ class rf extends qe {
|
|
|
1131
1127
|
return this.privType;
|
|
1132
1128
|
}
|
|
1133
1129
|
}
|
|
1134
|
-
|
|
1130
|
+
G.ConnectionErrorEvent = rf;
|
|
1135
1131
|
class nf extends qe {
|
|
1136
1132
|
constructor(e, r, i) {
|
|
1137
1133
|
super("ConnectionEstablishErrorEvent", e, Ye.EventType.Error), this.privStatusCode = r, this.privReason = i;
|
|
@@ -1143,7 +1139,7 @@ class nf extends qe {
|
|
|
1143
1139
|
return this.privStatusCode;
|
|
1144
1140
|
}
|
|
1145
1141
|
}
|
|
1146
|
-
|
|
1142
|
+
G.ConnectionEstablishErrorEvent = nf;
|
|
1147
1143
|
class sf extends qe {
|
|
1148
1144
|
constructor(e, r, i) {
|
|
1149
1145
|
super("ConnectionMessageReceivedEvent", e), this.privNetworkReceivedTime = r, this.privMessage = i;
|
|
@@ -1155,7 +1151,7 @@ class sf extends qe {
|
|
|
1155
1151
|
return this.privMessage;
|
|
1156
1152
|
}
|
|
1157
1153
|
}
|
|
1158
|
-
|
|
1154
|
+
G.ConnectionMessageReceivedEvent = sf;
|
|
1159
1155
|
class of extends qe {
|
|
1160
1156
|
constructor(e, r, i) {
|
|
1161
1157
|
super("ConnectionMessageSentEvent", e), this.privNetworkSentTime = r, this.privMessage = i;
|
|
@@ -1167,7 +1163,7 @@ class of extends qe {
|
|
|
1167
1163
|
return this.privMessage;
|
|
1168
1164
|
}
|
|
1169
1165
|
}
|
|
1170
|
-
|
|
1166
|
+
G.ConnectionMessageSentEvent = of;
|
|
1171
1167
|
class af extends qe {
|
|
1172
1168
|
constructor(e, r, i, u) {
|
|
1173
1169
|
super("ConnectionRedirectEvent", e, Ye.EventType.Info), this.privRedirectUrl = r, this.privOriginalUrl = i, this.privContext = u;
|
|
@@ -1182,7 +1178,7 @@ class af extends qe {
|
|
|
1182
1178
|
return this.privContext;
|
|
1183
1179
|
}
|
|
1184
1180
|
}
|
|
1185
|
-
|
|
1181
|
+
G.ConnectionRedirectEvent = af;
|
|
1186
1182
|
var ea = {}, ie = {};
|
|
1187
1183
|
Object.defineProperty(ie, "__esModule", { value: !0 });
|
|
1188
1184
|
ie.ObjectDisposedError = ie.InvalidOperationError = ie.ArgumentNullError = void 0;
|
|
@@ -1939,12 +1935,12 @@ Object.defineProperty(jp, "__esModule", { value: !0 });
|
|
|
1939
1935
|
var Ps = {};
|
|
1940
1936
|
Object.defineProperty(Ps, "__esModule", { value: !0 });
|
|
1941
1937
|
Ps.Timeout = void 0;
|
|
1942
|
-
class
|
|
1938
|
+
class le {
|
|
1943
1939
|
static load() {
|
|
1944
1940
|
const e = /* @__PURE__ */ new Map([[0, () => {
|
|
1945
1941
|
}]]), r = /* @__PURE__ */ new Map(), u = "data:text/javascript;base64," + btoa(`!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=14)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return d}));const r=new Map,o=new Map,i=e=>{const t=r.get(e);if(void 0===t)throw new Error('There is no interval scheduled with the given id "'.concat(e,'".'));clearTimeout(t),r.delete(e)},u=e=>{const t=o.get(e);if(void 0===t)throw new Error('There is no timeout scheduled with the given id "'.concat(e,'".'));clearTimeout(t),o.delete(e)},f=(e,t)=>{let n,r;if("performance"in self){const o=performance.now();n=o,r=e-Math.max(0,o-t)}else n=Date.now(),r=e;return{expected:n+r,remainingDelay:r}},c=(e,t,n,r)=>{const o="performance"in self?performance.now():Date.now();o>n?postMessage({id:null,method:"call",params:{timerId:t}}):e.set(t,setTimeout(c,n-o,e,t,n))},a=(e,t,n)=>{const{expected:o,remainingDelay:i}=f(e,n);r.set(t,setTimeout(c,i,r,t,o))},d=(e,t,n)=>{const{expected:r,remainingDelay:i}=f(e,n);o.set(t,setTimeout(c,i,o,t,r))}},function(e,t,n){"use strict";n.r(t);var r=n(2);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var i=n(3);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var u=n(4);for(var o in u)"default"!==o&&function(e){n.d(t,e,(function(){return u[e]}))}(o);var f=n(5);for(var o in f)"default"!==o&&function(e){n.d(t,e,(function(){return f[e]}))}(o);var c=n(6);for(var o in c)"default"!==o&&function(e){n.d(t,e,(function(){return c[e]}))}(o);var a=n(7);for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);var d=n(8);for(var o in d)"default"!==o&&function(e){n.d(t,e,(function(){return d[e]}))}(o);var s=n(9);for(var o in s)"default"!==o&&function(e){n.d(t,e,(function(){return s[e]}))}(o)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(11);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var i=n(12);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var u=n(13);for(var o in u)"default"!==o&&function(e){n.d(t,e,(function(){return u[e]}))}(o)},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(1);for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);var u=n(10);for(var i in u)"default"!==i&&function(e){n.d(t,e,(function(){return u[e]}))}(i);addEventListener("message",({data:e})=>{try{if("clear"===e.method){const{id:t,params:{timerId:n}}=e;Object(r.b)(n),postMessage({error:null,id:t})}else{if("set"!==e.method)throw new Error('The given method "'.concat(e.method,'" is not supported'));{const{params:{delay:t,now:n,timerId:o}}=e;Object(r.d)(t,o,n)}}}catch(t){postMessage({error:{message:t.message},id:e.id,result:null})}})}]);`), a = new Worker(u);
|
|
1946
1942
|
return a.addEventListener("message", ({ data: s }) => {
|
|
1947
|
-
if (
|
|
1943
|
+
if (le.isCallNotification(s)) {
|
|
1948
1944
|
const { params: { timerId: c } } = s, p = e.get(c);
|
|
1949
1945
|
if (typeof p == "number") {
|
|
1950
1946
|
const d = r.get(p);
|
|
@@ -1954,7 +1950,7 @@ class de {
|
|
|
1954
1950
|
p(), e.delete(c);
|
|
1955
1951
|
else
|
|
1956
1952
|
throw new Error("The timer is in an undefined state.");
|
|
1957
|
-
} else if (
|
|
1953
|
+
} else if (le.isClearResponse(s)) {
|
|
1958
1954
|
const { id: c } = s, p = r.get(c);
|
|
1959
1955
|
if (p === void 0)
|
|
1960
1956
|
throw new Error("The timer is in an undefined state.");
|
|
@@ -1987,7 +1983,7 @@ class de {
|
|
|
1987
1983
|
};
|
|
1988
1984
|
}
|
|
1989
1985
|
static loadWorkerTimers() {
|
|
1990
|
-
return () => (
|
|
1986
|
+
return () => (le.workerTimers !== null || (le.workerTimers = le.load()), le.workerTimers);
|
|
1991
1987
|
}
|
|
1992
1988
|
static isCallNotification(e) {
|
|
1993
1989
|
return e.method !== void 0 && e.method === "call";
|
|
@@ -1996,11 +1992,11 @@ class de {
|
|
|
1996
1992
|
return e.error === null && typeof e.id == "number";
|
|
1997
1993
|
}
|
|
1998
1994
|
}
|
|
1999
|
-
Ps.Timeout =
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
1995
|
+
Ps.Timeout = le;
|
|
1996
|
+
le.workerTimers = null;
|
|
1997
|
+
le.clearTimeout = (t) => le.timers().clearTimeout(t);
|
|
1998
|
+
le.setTimeout = (t, e) => le.timers().setTimeout(t, e);
|
|
1999
|
+
le.timers = le.loadWorkerTimers();
|
|
2004
2000
|
var F = {};
|
|
2005
2001
|
Object.defineProperty(F, "__esModule", { value: !0 });
|
|
2006
2002
|
F.OCSPCacheUpdateErrorEvent = F.OCSPResponseRetrievedEvent = F.OCSPCacheFetchErrorEvent = F.OCSPVerificationFailedEvent = F.OCSPCacheHitEvent = F.OCSPCacheEntryNeedsRefreshEvent = F.OCSPCacheEntryExpiredEvent = F.OCSPWSUpgradeStartedEvent = F.OCSPStapleReceivedEvent = F.OCSPCacheUpdateCompleteEvent = F.OCSPDiskCacheStoreEvent = F.OCSPMemoryCacheStoreEvent = F.OCSPCacheUpdateNeededEvent = F.OCSPDiskCacheHitEvent = F.OCSPCacheMissEvent = F.OCSPMemoryCacheHitEvent = F.OCSPEvent = void 0;
|
|
@@ -2136,7 +2132,7 @@ function M() {
|
|
|
2136
2132
|
for (var o in u)
|
|
2137
2133
|
o !== "default" && !Object.prototype.hasOwnProperty.call(a, o) && e(a, u, o);
|
|
2138
2134
|
};
|
|
2139
|
-
Object.defineProperty(t, "__esModule", { value: !0 }), t.TranslationStatus = void 0, r(
|
|
2135
|
+
Object.defineProperty(t, "__esModule", { value: !0 }), t.TranslationStatus = void 0, r(J, t), r(G, t), r(ea, t), r(vs, t), r(fs, t), r(Et, t), r(ie, t), r(gs, t), r(Xn, t), r(we, t), r(Ip, t), r(_p, t), r(Tp, t), r(bp, t), r(Mp, t), r(Op, t), r(Dp, t), r(kp, t), r(Np, t), r(zp, t), r(Zn, t), r(Kt, t), r(ta, t), r(Yn, t), r(ms, t), r(Ss, t), r(Cs, t);
|
|
2140
2136
|
var i = ys;
|
|
2141
2137
|
Object.defineProperty(t, "TranslationStatus", { enumerable: !0, get: function() {
|
|
2142
2138
|
return i.TranslationStatus;
|
|
@@ -2241,7 +2237,7 @@ var rr = {}, _o = {}, Es = {};
|
|
|
2241
2237
|
const Gf = {}, Qf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2242
2238
|
__proto__: null,
|
|
2243
2239
|
default: Gf
|
|
2244
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2240
|
+
}, Symbol.toStringTag, { value: "Module" })), At = /* @__PURE__ */ Al(Qf);
|
|
2245
2241
|
var ra = {};
|
|
2246
2242
|
(function(t) {
|
|
2247
2243
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.LogLevel = void 0;
|
|
@@ -2314,7 +2310,7 @@ var Xf = q && q.__createBinding || (Object.create ? function(t, e, r, i) {
|
|
|
2314
2310
|
};
|
|
2315
2311
|
Object.defineProperty(Es, "__esModule", { value: !0 });
|
|
2316
2312
|
Es.ConsoleLoggingListener = void 0;
|
|
2317
|
-
const Ha = Yf(
|
|
2313
|
+
const Ha = Yf(At), nr = ra, eg = z;
|
|
2318
2314
|
class tg {
|
|
2319
2315
|
constructor(e = nr.LogLevel.None) {
|
|
2320
2316
|
this.privLogPath = void 0, this.privEnableConsoleOutput = !0, this.privLogLevelFilter = e;
|
|
@@ -2875,7 +2871,7 @@ var As = {}, ei = {}, og = q && q.__createBinding || (Object.create ? function(t
|
|
|
2875
2871
|
};
|
|
2876
2872
|
Object.defineProperty(ei, "__esModule", { value: !0 });
|
|
2877
2873
|
ei.WebsocketMessageAdapter = void 0;
|
|
2878
|
-
const cg = qp(
|
|
2874
|
+
const cg = qp(At), ug = qp(At), pg = na(At), dg = na(At), lg = na(At), hg = Z, j = M();
|
|
2879
2875
|
class $n {
|
|
2880
2876
|
constructor(e, r, i, u, a, o) {
|
|
2881
2877
|
if (!e)
|
|
@@ -3195,7 +3191,7 @@ var sr = {}, Mo = {}, ze = {}, ti = {}, Sg = q && q.__createBinding || (Object.c
|
|
|
3195
3191
|
};
|
|
3196
3192
|
Object.defineProperty(ti, "__esModule", { value: !0 });
|
|
3197
3193
|
ti.AudioFileWriter = void 0;
|
|
3198
|
-
const or = yg(
|
|
3194
|
+
const or = yg(At), Oo = z;
|
|
3199
3195
|
class Pg {
|
|
3200
3196
|
constructor(e) {
|
|
3201
3197
|
Oo.Contracts.throwIfNullOrUndefined(or.openSync, `
|
|
@@ -3471,8 +3467,8 @@ var ne = {}, rt = {}, ia = {};
|
|
|
3471
3467
|
})(ia);
|
|
3472
3468
|
Object.defineProperty(rt, "__esModule", { value: !0 });
|
|
3473
3469
|
rt.AudioOutputFormatImpl = void 0;
|
|
3474
|
-
const B = ia,
|
|
3475
|
-
class N extends
|
|
3470
|
+
const B = ia, x = tt;
|
|
3471
|
+
class N extends x.AudioStreamFormatImpl {
|
|
3476
3472
|
/**
|
|
3477
3473
|
* Creates an instance with the given values.
|
|
3478
3474
|
* @constructor
|
|
@@ -3495,88 +3491,88 @@ class N extends L.AudioStreamFormatImpl {
|
|
|
3495
3491
|
static fromSpeechSynthesisOutputFormatString(e) {
|
|
3496
3492
|
switch (e) {
|
|
3497
3493
|
case "raw-8khz-8bit-mono-mulaw":
|
|
3498
|
-
return new N(
|
|
3494
|
+
return new N(x.AudioFormatTag.MuLaw, 1, 8e3, 8e3, 1, 8, e, e, !1);
|
|
3499
3495
|
case "riff-16khz-16kbps-mono-siren":
|
|
3500
|
-
return new N(
|
|
3496
|
+
return new N(x.AudioFormatTag.Siren, 1, 16e3, 2e3, 40, 0, e, "audio-16khz-16kbps-mono-siren", !0);
|
|
3501
3497
|
case "audio-16khz-16kbps-mono-siren":
|
|
3502
|
-
return new N(
|
|
3498
|
+
return new N(x.AudioFormatTag.Siren, 1, 16e3, 2e3, 40, 0, e, e, !1);
|
|
3503
3499
|
case "audio-16khz-32kbitrate-mono-mp3":
|
|
3504
|
-
return new N(
|
|
3500
|
+
return new N(x.AudioFormatTag.MP3, 1, 16e3, 32 << 7, 2, 16, e, e, !1);
|
|
3505
3501
|
case "audio-16khz-128kbitrate-mono-mp3":
|
|
3506
|
-
return new N(
|
|
3502
|
+
return new N(x.AudioFormatTag.MP3, 1, 16e3, 128 << 7, 2, 16, e, e, !1);
|
|
3507
3503
|
case "audio-16khz-64kbitrate-mono-mp3":
|
|
3508
|
-
return new N(
|
|
3504
|
+
return new N(x.AudioFormatTag.MP3, 1, 16e3, 64 << 7, 2, 16, e, e, !1);
|
|
3509
3505
|
case "audio-24khz-48kbitrate-mono-mp3":
|
|
3510
|
-
return new N(
|
|
3506
|
+
return new N(x.AudioFormatTag.MP3, 1, 24e3, 48 << 7, 2, 16, e, e, !1);
|
|
3511
3507
|
case "audio-24khz-96kbitrate-mono-mp3":
|
|
3512
|
-
return new N(
|
|
3508
|
+
return new N(x.AudioFormatTag.MP3, 1, 24e3, 96 << 7, 2, 16, e, e, !1);
|
|
3513
3509
|
case "audio-24khz-160kbitrate-mono-mp3":
|
|
3514
|
-
return new N(
|
|
3510
|
+
return new N(x.AudioFormatTag.MP3, 1, 24e3, 160 << 7, 2, 16, e, e, !1);
|
|
3515
3511
|
case "raw-16khz-16bit-mono-truesilk":
|
|
3516
|
-
return new N(
|
|
3512
|
+
return new N(x.AudioFormatTag.SILKSkype, 1, 16e3, 32e3, 2, 16, e, e, !1);
|
|
3517
3513
|
case "riff-8khz-16bit-mono-pcm":
|
|
3518
|
-
return new N(
|
|
3514
|
+
return new N(x.AudioFormatTag.PCM, 1, 8e3, 16e3, 2, 16, e, "raw-8khz-16bit-mono-pcm", !0);
|
|
3519
3515
|
case "riff-24khz-16bit-mono-pcm":
|
|
3520
|
-
return new N(
|
|
3516
|
+
return new N(x.AudioFormatTag.PCM, 1, 24e3, 48e3, 2, 16, e, "raw-24khz-16bit-mono-pcm", !0);
|
|
3521
3517
|
case "riff-8khz-8bit-mono-mulaw":
|
|
3522
|
-
return new N(
|
|
3518
|
+
return new N(x.AudioFormatTag.MuLaw, 1, 8e3, 8e3, 1, 8, e, "raw-8khz-8bit-mono-mulaw", !0);
|
|
3523
3519
|
case "raw-16khz-16bit-mono-pcm":
|
|
3524
|
-
return new N(
|
|
3520
|
+
return new N(x.AudioFormatTag.PCM, 1, 16e3, 32e3, 2, 16, e, "raw-16khz-16bit-mono-pcm", !1);
|
|
3525
3521
|
case "raw-24khz-16bit-mono-pcm":
|
|
3526
|
-
return new N(
|
|
3522
|
+
return new N(x.AudioFormatTag.PCM, 1, 24e3, 48e3, 2, 16, e, "raw-24khz-16bit-mono-pcm", !1);
|
|
3527
3523
|
case "raw-8khz-16bit-mono-pcm":
|
|
3528
|
-
return new N(
|
|
3524
|
+
return new N(x.AudioFormatTag.PCM, 1, 8e3, 16e3, 2, 16, e, "raw-8khz-16bit-mono-pcm", !1);
|
|
3529
3525
|
case "ogg-16khz-16bit-mono-opus":
|
|
3530
|
-
return new N(
|
|
3526
|
+
return new N(x.AudioFormatTag.OGG_OPUS, 1, 16e3, 8192, 2, 16, e, e, !1);
|
|
3531
3527
|
case "ogg-24khz-16bit-mono-opus":
|
|
3532
|
-
return new N(
|
|
3528
|
+
return new N(x.AudioFormatTag.OGG_OPUS, 1, 24e3, 8192, 2, 16, e, e, !1);
|
|
3533
3529
|
case "raw-48khz-16bit-mono-pcm":
|
|
3534
|
-
return new N(
|
|
3530
|
+
return new N(x.AudioFormatTag.PCM, 1, 48e3, 96e3, 2, 16, e, "raw-48khz-16bit-mono-pcm", !1);
|
|
3535
3531
|
case "riff-48khz-16bit-mono-pcm":
|
|
3536
|
-
return new N(
|
|
3532
|
+
return new N(x.AudioFormatTag.PCM, 1, 48e3, 96e3, 2, 16, e, "raw-48khz-16bit-mono-pcm", !0);
|
|
3537
3533
|
case "audio-48khz-96kbitrate-mono-mp3":
|
|
3538
|
-
return new N(
|
|
3534
|
+
return new N(x.AudioFormatTag.MP3, 1, 48e3, 96 << 7, 2, 16, e, e, !1);
|
|
3539
3535
|
case "audio-48khz-192kbitrate-mono-mp3":
|
|
3540
|
-
return new N(
|
|
3536
|
+
return new N(x.AudioFormatTag.MP3, 1, 48e3, 192 << 7, 2, 16, e, e, !1);
|
|
3541
3537
|
case "ogg-48khz-16bit-mono-opus":
|
|
3542
|
-
return new N(
|
|
3538
|
+
return new N(x.AudioFormatTag.OGG_OPUS, 1, 48e3, 12e3, 2, 16, e, e, !1);
|
|
3543
3539
|
case "webm-16khz-16bit-mono-opus":
|
|
3544
|
-
return new N(
|
|
3540
|
+
return new N(x.AudioFormatTag.WEBM_OPUS, 1, 16e3, 4e3, 2, 16, e, e, !1);
|
|
3545
3541
|
case "webm-24khz-16bit-mono-opus":
|
|
3546
|
-
return new N(
|
|
3542
|
+
return new N(x.AudioFormatTag.WEBM_OPUS, 1, 24e3, 6e3, 2, 16, e, e, !1);
|
|
3547
3543
|
case "webm-24khz-16bit-24kbps-mono-opus":
|
|
3548
|
-
return new N(
|
|
3544
|
+
return new N(x.AudioFormatTag.WEBM_OPUS, 1, 24e3, 3e3, 2, 16, e, e, !1);
|
|
3549
3545
|
case "audio-16khz-16bit-32kbps-mono-opus":
|
|
3550
|
-
return new N(
|
|
3546
|
+
return new N(x.AudioFormatTag.OPUS, 1, 16e3, 4e3, 2, 16, e, e, !1);
|
|
3551
3547
|
case "audio-24khz-16bit-48kbps-mono-opus":
|
|
3552
|
-
return new N(
|
|
3548
|
+
return new N(x.AudioFormatTag.OPUS, 1, 24e3, 6e3, 2, 16, e, e, !1);
|
|
3553
3549
|
case "audio-24khz-16bit-24kbps-mono-opus":
|
|
3554
|
-
return new N(
|
|
3550
|
+
return new N(x.AudioFormatTag.OPUS, 1, 24e3, 3e3, 2, 16, e, e, !1);
|
|
3555
3551
|
case "audio-24khz-16bit-mono-flac":
|
|
3556
|
-
return new N(
|
|
3552
|
+
return new N(x.AudioFormatTag.FLAC, 1, 24e3, 24e3, 2, 16, e, e, !1);
|
|
3557
3553
|
case "audio-48khz-16bit-mono-flac":
|
|
3558
|
-
return new N(
|
|
3554
|
+
return new N(x.AudioFormatTag.FLAC, 1, 48e3, 3e4, 2, 16, e, e, !1);
|
|
3559
3555
|
case "raw-24khz-16bit-mono-truesilk":
|
|
3560
|
-
return new N(
|
|
3556
|
+
return new N(x.AudioFormatTag.SILKSkype, 1, 24e3, 48e3, 2, 16, e, e, !1);
|
|
3561
3557
|
case "raw-8khz-8bit-mono-alaw":
|
|
3562
|
-
return new N(
|
|
3558
|
+
return new N(x.AudioFormatTag.ALaw, 1, 8e3, 8e3, 1, 8, e, e, !1);
|
|
3563
3559
|
case "riff-8khz-8bit-mono-alaw":
|
|
3564
|
-
return new N(
|
|
3560
|
+
return new N(x.AudioFormatTag.ALaw, 1, 8e3, 8e3, 1, 8, e, "raw-8khz-8bit-mono-alaw", !0);
|
|
3565
3561
|
case "raw-22050hz-16bit-mono-pcm":
|
|
3566
|
-
return new N(
|
|
3562
|
+
return new N(x.AudioFormatTag.PCM, 1, 22050, 44100, 2, 16, e, e, !1);
|
|
3567
3563
|
case "riff-22050hz-16bit-mono-pcm":
|
|
3568
|
-
return new N(
|
|
3564
|
+
return new N(x.AudioFormatTag.PCM, 1, 22050, 44100, 2, 16, e, "raw-22050hz-16bit-mono-pcm", !0);
|
|
3569
3565
|
case "raw-44100hz-16bit-mono-pcm":
|
|
3570
|
-
return new N(
|
|
3566
|
+
return new N(x.AudioFormatTag.PCM, 1, 44100, 88200, 2, 16, e, e, !1);
|
|
3571
3567
|
case "riff-44100hz-16bit-mono-pcm":
|
|
3572
|
-
return new N(
|
|
3568
|
+
return new N(x.AudioFormatTag.PCM, 1, 44100, 88200, 2, 16, e, "raw-44100hz-16bit-mono-pcm", !0);
|
|
3573
3569
|
case "amr-wb-16000h":
|
|
3574
|
-
return new N(
|
|
3570
|
+
return new N(x.AudioFormatTag.AMR_WB, 1, 16e3, 3052, 2, 16, e, e, !1);
|
|
3575
3571
|
case "g722-16khz-64kbps":
|
|
3576
|
-
return new N(
|
|
3572
|
+
return new N(x.AudioFormatTag.G722, 1, 16e3, 8e3, 2, 16, e, e, !1);
|
|
3577
3573
|
case "riff-16khz-16bit-mono-pcm":
|
|
3578
3574
|
default:
|
|
3579
|
-
return new N(
|
|
3575
|
+
return new N(x.AudioFormatTag.PCM, 1, 16e3, 32e3, 2, 16, "riff-16khz-16bit-mono-pcm", "raw-16khz-16bit-mono-pcm", !0);
|
|
3580
3576
|
}
|
|
3581
3577
|
}
|
|
3582
3578
|
static getDefaultOutputFormat() {
|
|
@@ -4455,10 +4451,10 @@ function Dg() {
|
|
|
4455
4451
|
};
|
|
4456
4452
|
return pr.IntentRecognitionResult = e, pr;
|
|
4457
4453
|
}
|
|
4458
|
-
var
|
|
4459
|
-
Object.defineProperty(
|
|
4460
|
-
|
|
4461
|
-
const
|
|
4454
|
+
var xt = {};
|
|
4455
|
+
Object.defineProperty(xt, "__esModule", { value: !0 });
|
|
4456
|
+
xt.LanguageUnderstandingModelImpl = xt.LanguageUnderstandingModel = void 0;
|
|
4457
|
+
const Tt = z;
|
|
4462
4458
|
class Gp {
|
|
4463
4459
|
/**
|
|
4464
4460
|
* Creates and initializes a new instance
|
|
@@ -4475,7 +4471,7 @@ class Gp {
|
|
|
4475
4471
|
* @returns {LanguageUnderstandingModel} The language understanding model being created.
|
|
4476
4472
|
*/
|
|
4477
4473
|
static fromEndpoint(e) {
|
|
4478
|
-
|
|
4474
|
+
Tt.Contracts.throwIfNull(e, "uri"), Tt.Contracts.throwIfNullOrWhitespace(e.hostname, "uri");
|
|
4479
4475
|
const r = new Ki(), i = e.host.indexOf(".");
|
|
4480
4476
|
if (i === -1)
|
|
4481
4477
|
throw new Error("Could not determine region from endpoint");
|
|
@@ -4496,7 +4492,7 @@ class Gp {
|
|
|
4496
4492
|
* @returns {LanguageUnderstandingModel} The language understanding model being created.
|
|
4497
4493
|
*/
|
|
4498
4494
|
static fromAppId(e) {
|
|
4499
|
-
|
|
4495
|
+
Tt.Contracts.throwIfNullOrWhitespace(e, "appId");
|
|
4500
4496
|
const r = new Ki();
|
|
4501
4497
|
return r.appId = e, r;
|
|
4502
4498
|
}
|
|
@@ -4515,15 +4511,15 @@ class Gp {
|
|
|
4515
4511
|
* @returns {LanguageUnderstandingModel} The language understanding model being created.
|
|
4516
4512
|
*/
|
|
4517
4513
|
static fromSubscription(e, r, i) {
|
|
4518
|
-
|
|
4514
|
+
Tt.Contracts.throwIfNullOrWhitespace(e, "subscriptionKey"), Tt.Contracts.throwIfNullOrWhitespace(r, "appId"), Tt.Contracts.throwIfNullOrWhitespace(i, "region");
|
|
4519
4515
|
const u = new Ki();
|
|
4520
4516
|
return u.appId = r, u.region = i, u.subscriptionKey = e, u;
|
|
4521
4517
|
}
|
|
4522
4518
|
}
|
|
4523
|
-
|
|
4519
|
+
xt.LanguageUnderstandingModel = Gp;
|
|
4524
4520
|
class Ki extends Gp {
|
|
4525
4521
|
}
|
|
4526
|
-
|
|
4522
|
+
xt.LanguageUnderstandingModelImpl = Ki;
|
|
4527
4523
|
var je = {}, Ya;
|
|
4528
4524
|
function kg() {
|
|
4529
4525
|
if (Ya)
|
|
@@ -6938,32 +6934,32 @@ function Yg() {
|
|
|
6938
6934
|
var Mr = {}, Or = {}, Dr = {}, be = {};
|
|
6939
6935
|
Object.defineProperty(be, "__esModule", { value: !0 });
|
|
6940
6936
|
be.QueryParameterNames = void 0;
|
|
6941
|
-
class
|
|
6942
|
-
}
|
|
6943
|
-
be.QueryParameterNames =
|
|
6944
|
-
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6937
|
+
class $ {
|
|
6938
|
+
}
|
|
6939
|
+
be.QueryParameterNames = $;
|
|
6940
|
+
$.BotId = "botid";
|
|
6941
|
+
$.CustomSpeechDeploymentId = "cid";
|
|
6942
|
+
$.CustomVoiceDeploymentId = "deploymentId";
|
|
6943
|
+
$.EnableAudioLogging = "storeAudio";
|
|
6944
|
+
$.EnableLanguageId = "lidEnabled";
|
|
6945
|
+
$.EnableWordLevelTimestamps = "wordLevelTimestamps";
|
|
6946
|
+
$.EndSilenceTimeoutMs = "endSilenceTimeoutMs";
|
|
6947
|
+
$.SegmentationSilenceTimeoutMs = "segmentationSilenceTimeoutMs";
|
|
6948
|
+
$.SegmentationMaximumTimeMs = "segmentationMaximumTimeMs";
|
|
6949
|
+
$.SegmentationStrategy = "segmentationStrategy";
|
|
6950
|
+
$.Format = "format";
|
|
6951
|
+
$.InitialSilenceTimeoutMs = "initialSilenceTimeoutMs";
|
|
6952
|
+
$.Language = "language";
|
|
6953
|
+
$.Profanity = "profanity";
|
|
6954
|
+
$.RequestBotStatusMessages = "enableBotMessageStatus";
|
|
6955
|
+
$.StableIntermediateThreshold = "stableIntermediateThreshold";
|
|
6956
|
+
$.StableTranslation = "stableTranslation";
|
|
6957
|
+
$.TestHooks = "testhooks";
|
|
6958
|
+
$.Postprocessing = "postprocessing";
|
|
6959
|
+
$.CtsMeetingId = "meetingId";
|
|
6960
|
+
$.CtsDeviceId = "deviceId";
|
|
6961
|
+
$.CtsIsParticipant = "isParticipant";
|
|
6962
|
+
$.EnableAvatar = "enableTalkingAvatar";
|
|
6967
6963
|
var Ec;
|
|
6968
6964
|
function Me() {
|
|
6969
6965
|
if (Ec)
|
|
@@ -7039,7 +7035,7 @@ function em() {
|
|
|
7039
7035
|
p.token != null && p.token !== "" && (y[p.headerName] = p.token);
|
|
7040
7036
|
let w = c.parameters.getProperty(r.PropertyId.SpeechServiceConnection_Endpoint, "");
|
|
7041
7037
|
if (!w) {
|
|
7042
|
-
const
|
|
7038
|
+
const _ = i.ConnectionFactoryBase.getHostSuffix(v), R = c.parameters.getProperty(r.PropertyId.SpeechServiceConnection_Host, `wss://${v}.${n.BaseUrl}${_}`);
|
|
7043
7039
|
w = `${R.endsWith("/") ? R : R + "/"}${S}${n.ApiKey}/${C}`;
|
|
7044
7040
|
}
|
|
7045
7041
|
this.setCommonUrlParams(c, f, w);
|
|
@@ -8918,9 +8914,9 @@ function Am() {
|
|
|
8918
8914
|
if (h) {
|
|
8919
8915
|
f = p.parameters.getProperty(i.PropertyId.SpeechServiceConnection_Endpoint), f || (f = "wss://" + p.parameters.getProperty(i.PropertyId.SpeechServiceConnection_Host, "transcribe.{region}.cts.speech{hostSuffix}") + "{path}"), f = e.StringUtils.formatString(f, m);
|
|
8920
8916
|
const w = new URL(f);
|
|
8921
|
-
w.searchParams.forEach((
|
|
8922
|
-
S[R] =
|
|
8923
|
-
}), new n.TranscriberConnectionFactory().setQueryParams(S, p, f), S[a.QueryParameterNames.CtsMeetingId] = m[a.QueryParameterNames.CtsMeetingId], S[a.QueryParameterNames.CtsDeviceId] = m[a.QueryParameterNames.CtsDeviceId], v.isHost || (S[a.QueryParameterNames.CtsIsParticipant] = ""), a.QueryParameterNames.Format in S || (S[a.QueryParameterNames.Format] = "simple"), w.searchParams.forEach((
|
|
8917
|
+
w.searchParams.forEach((_, R) => {
|
|
8918
|
+
S[R] = _;
|
|
8919
|
+
}), new n.TranscriberConnectionFactory().setQueryParams(S, p, f), S[a.QueryParameterNames.CtsMeetingId] = m[a.QueryParameterNames.CtsMeetingId], S[a.QueryParameterNames.CtsDeviceId] = m[a.QueryParameterNames.CtsDeviceId], v.isHost || (S[a.QueryParameterNames.CtsIsParticipant] = ""), a.QueryParameterNames.Format in S || (S[a.QueryParameterNames.Format] = "simple"), w.searchParams.forEach((_, R) => {
|
|
8924
8920
|
w.searchParams.set(R, S[R]), delete S[R];
|
|
8925
8921
|
}), f = w.toString();
|
|
8926
8922
|
} else {
|
|
@@ -11756,15 +11752,15 @@ function Gm() {
|
|
|
11756
11752
|
};
|
|
11757
11753
|
return nn.AvatarSynthesizer = n, nn;
|
|
11758
11754
|
}
|
|
11759
|
-
var
|
|
11760
|
-
Object.defineProperty(
|
|
11761
|
-
|
|
11755
|
+
var Bt = {};
|
|
11756
|
+
Object.defineProperty(Bt, "__esModule", { value: !0 });
|
|
11757
|
+
Bt.AvatarVideoFormat = Bt.Coordinate = void 0;
|
|
11762
11758
|
class Qm {
|
|
11763
11759
|
constructor(e, r) {
|
|
11764
11760
|
this.x = e, this.y = r;
|
|
11765
11761
|
}
|
|
11766
11762
|
}
|
|
11767
|
-
|
|
11763
|
+
Bt.Coordinate = Qm;
|
|
11768
11764
|
class Xm {
|
|
11769
11765
|
/**
|
|
11770
11766
|
* Creates and initializes an instance of this class.
|
|
@@ -11787,7 +11783,7 @@ class Xm {
|
|
|
11787
11783
|
};
|
|
11788
11784
|
}
|
|
11789
11785
|
}
|
|
11790
|
-
|
|
11786
|
+
Bt.AvatarVideoFormat = Xm;
|
|
11791
11787
|
var on = {}, pu;
|
|
11792
11788
|
function Zm() {
|
|
11793
11789
|
if (pu)
|
|
@@ -11922,7 +11918,7 @@ function E() {
|
|
|
11922
11918
|
Object.defineProperty(t, "IntentRecognitionResult", { enumerable: !0, get: function() {
|
|
11923
11919
|
return g.IntentRecognitionResult;
|
|
11924
11920
|
} });
|
|
11925
|
-
var m =
|
|
11921
|
+
var m = xt;
|
|
11926
11922
|
Object.defineProperty(t, "LanguageUnderstandingModel", { enumerable: !0, get: function() {
|
|
11927
11923
|
return m.LanguageUnderstandingModel;
|
|
11928
11924
|
} });
|
|
@@ -11954,9 +11950,9 @@ function E() {
|
|
|
11954
11950
|
Object.defineProperty(t, "TranslationSynthesisResult", { enumerable: !0, get: function() {
|
|
11955
11951
|
return A.TranslationSynthesisResult;
|
|
11956
11952
|
} });
|
|
11957
|
-
var
|
|
11953
|
+
var _ = Zp;
|
|
11958
11954
|
Object.defineProperty(t, "ResultReason", { enumerable: !0, get: function() {
|
|
11959
|
-
return
|
|
11955
|
+
return _.ResultReason;
|
|
11960
11956
|
} });
|
|
11961
11957
|
var R = xg();
|
|
11962
11958
|
Object.defineProperty(t, "SpeechConfig", { enumerable: !0, get: function() {
|
|
@@ -11964,27 +11960,27 @@ function E() {
|
|
|
11964
11960
|
} }), Object.defineProperty(t, "SpeechConfigImpl", { enumerable: !0, get: function() {
|
|
11965
11961
|
return R.SpeechConfigImpl;
|
|
11966
11962
|
} });
|
|
11967
|
-
var
|
|
11963
|
+
var L = Bg();
|
|
11968
11964
|
Object.defineProperty(t, "SpeechTranslationConfig", { enumerable: !0, get: function() {
|
|
11969
|
-
return
|
|
11965
|
+
return L.SpeechTranslationConfig;
|
|
11970
11966
|
} }), Object.defineProperty(t, "SpeechTranslationConfigImpl", { enumerable: !0, get: function() {
|
|
11971
|
-
return
|
|
11967
|
+
return L.SpeechTranslationConfigImpl;
|
|
11972
11968
|
} });
|
|
11973
11969
|
var U = ed();
|
|
11974
11970
|
Object.defineProperty(t, "PropertyCollection", { enumerable: !0, get: function() {
|
|
11975
11971
|
return U.PropertyCollection;
|
|
11976
11972
|
} });
|
|
11977
|
-
var
|
|
11973
|
+
var H = ks;
|
|
11978
11974
|
Object.defineProperty(t, "PropertyId", { enumerable: !0, get: function() {
|
|
11979
|
-
return
|
|
11975
|
+
return H.PropertyId;
|
|
11980
11976
|
} });
|
|
11981
|
-
var
|
|
11977
|
+
var ae = qg();
|
|
11982
11978
|
Object.defineProperty(t, "Recognizer", { enumerable: !0, get: function() {
|
|
11983
|
-
return
|
|
11979
|
+
return ae.Recognizer;
|
|
11984
11980
|
} });
|
|
11985
|
-
var
|
|
11981
|
+
var V = Fg();
|
|
11986
11982
|
Object.defineProperty(t, "SpeechRecognizer", { enumerable: !0, get: function() {
|
|
11987
|
-
return
|
|
11983
|
+
return V.SpeechRecognizer;
|
|
11988
11984
|
} });
|
|
11989
11985
|
var Ae = Ug();
|
|
11990
11986
|
Object.defineProperty(t, "IntentRecognizer", { enumerable: !0, get: function() {
|
|
@@ -11994,9 +11990,9 @@ function E() {
|
|
|
11994
11990
|
Object.defineProperty(t, "VoiceProfileType", { enumerable: !0, get: function() {
|
|
11995
11991
|
return Q.VoiceProfileType;
|
|
11996
11992
|
} });
|
|
11997
|
-
var
|
|
11993
|
+
var K = Hg();
|
|
11998
11994
|
Object.defineProperty(t, "TranslationRecognizer", { enumerable: !0, get: function() {
|
|
11999
|
-
return
|
|
11995
|
+
return K.TranslationRecognizer;
|
|
12000
11996
|
} });
|
|
12001
11997
|
var it = Wg();
|
|
12002
11998
|
Object.defineProperty(t, "Translations", { enumerable: !0, get: function() {
|
|
@@ -12138,13 +12134,13 @@ function E() {
|
|
|
12138
12134
|
Object.defineProperty(t, "SourceLanguageConfig", { enumerable: !0, get: function() {
|
|
12139
12135
|
return xi.SourceLanguageConfig;
|
|
12140
12136
|
} });
|
|
12141
|
-
var
|
|
12137
|
+
var It = mm();
|
|
12142
12138
|
Object.defineProperty(t, "SpeakerRecognitionResult", { enumerable: !0, get: function() {
|
|
12143
|
-
return
|
|
12139
|
+
return It.SpeakerRecognitionResult;
|
|
12144
12140
|
} }), Object.defineProperty(t, "SpeakerRecognitionResultType", { enumerable: !0, get: function() {
|
|
12145
|
-
return
|
|
12141
|
+
return It.SpeakerRecognitionResultType;
|
|
12146
12142
|
} }), Object.defineProperty(t, "SpeakerRecognitionCancellationDetails", { enumerable: !0, get: function() {
|
|
12147
|
-
return
|
|
12143
|
+
return It.SpeakerRecognitionCancellationDetails;
|
|
12148
12144
|
} });
|
|
12149
12145
|
var ee = la();
|
|
12150
12146
|
Object.defineProperty(t, "Conversation", { enumerable: !0, get: function() {
|
|
@@ -12188,9 +12184,9 @@ function E() {
|
|
|
12188
12184
|
Object.defineProperty(t, "SpeechSynthesizer", { enumerable: !0, get: function() {
|
|
12189
12185
|
return Fi.SpeechSynthesizer;
|
|
12190
12186
|
} });
|
|
12191
|
-
var
|
|
12187
|
+
var T = Ws;
|
|
12192
12188
|
Object.defineProperty(t, "SynthesisResult", { enumerable: !0, get: function() {
|
|
12193
|
-
return
|
|
12189
|
+
return T.SynthesisResult;
|
|
12194
12190
|
} });
|
|
12195
12191
|
var Ue = zm();
|
|
12196
12192
|
Object.defineProperty(t, "SpeechSynthesisResult", { enumerable: !0, get: function() {
|
|
@@ -12204,9 +12200,9 @@ function E() {
|
|
|
12204
12200
|
Object.defineProperty(t, "SpeechSynthesisWordBoundaryEventArgs", { enumerable: !0, get: function() {
|
|
12205
12201
|
return Ui.SpeechSynthesisWordBoundaryEventArgs;
|
|
12206
12202
|
} });
|
|
12207
|
-
var
|
|
12203
|
+
var W = Ks;
|
|
12208
12204
|
Object.defineProperty(t, "SpeechSynthesisBookmarkEventArgs", { enumerable: !0, get: function() {
|
|
12209
|
-
return
|
|
12205
|
+
return W.SpeechSynthesisBookmarkEventArgs;
|
|
12210
12206
|
} });
|
|
12211
12207
|
var tl = Js;
|
|
12212
12208
|
Object.defineProperty(t, "SpeechSynthesisVisemeEventArgs", { enumerable: !0, get: function() {
|
|
@@ -12272,7 +12268,7 @@ function E() {
|
|
|
12272
12268
|
Object.defineProperty(t, "AvatarSynthesizer", { enumerable: !0, get: function() {
|
|
12273
12269
|
return vl.AvatarSynthesizer;
|
|
12274
12270
|
} });
|
|
12275
|
-
var Ta =
|
|
12271
|
+
var Ta = Bt;
|
|
12276
12272
|
Object.defineProperty(t, "AvatarVideoFormat", { enumerable: !0, get: function() {
|
|
12277
12273
|
return Ta.AvatarVideoFormat;
|
|
12278
12274
|
} }), Object.defineProperty(t, "Coordinate", { enumerable: !0, get: function() {
|
|
@@ -12853,9 +12849,9 @@ function cS() {
|
|
|
12853
12849
|
throw new e.ArgumentNullError("audioSource");
|
|
12854
12850
|
if (!y)
|
|
12855
12851
|
throw new e.ArgumentNullError("recognizerConfig");
|
|
12856
|
-
this.privEnableSpeakerId = y.isSpeakerDiarizationEnabled, this.privMustReportEndOfStream = !1, this.privAuthentication = f, this.privConnectionFactory = S, this.privAudioSource = C, this.privRecognizerConfig = y, this.privIsDisposed = !1, this.privRecognizer = w, this.privRequestSession = new i.RequestSession(this.privAudioSource.id()), this.privConnectionEvents = new e.EventSource(), this.privServiceEvents = new e.EventSource(), this.privDynamicGrammar = new i.DynamicGrammarBuilder(), this.privSpeechContext = new i.SpeechContext(this.privDynamicGrammar), this.privAgentConfig = new i.AgentConfig(), this.privRecognizerConfig.parameters.getProperty(r.PropertyId.WebWorkerLoadType, "on").toLowerCase() === "on" && typeof Blob < "u" && typeof Worker < "u" ? this.privSetTimeout = e.Timeout.setTimeout : (typeof window < "u" && (this.privSetTimeout = window.setTimeout.bind(window)), typeof globalThis < "u" && (this.privSetTimeout = globalThis.setTimeout.bind(globalThis))), this.connectionEvents.attach((
|
|
12857
|
-
if (
|
|
12858
|
-
const R =
|
|
12852
|
+
this.privEnableSpeakerId = y.isSpeakerDiarizationEnabled, this.privMustReportEndOfStream = !1, this.privAuthentication = f, this.privConnectionFactory = S, this.privAudioSource = C, this.privRecognizerConfig = y, this.privIsDisposed = !1, this.privRecognizer = w, this.privRequestSession = new i.RequestSession(this.privAudioSource.id()), this.privConnectionEvents = new e.EventSource(), this.privServiceEvents = new e.EventSource(), this.privDynamicGrammar = new i.DynamicGrammarBuilder(), this.privSpeechContext = new i.SpeechContext(this.privDynamicGrammar), this.privAgentConfig = new i.AgentConfig(), this.privRecognizerConfig.parameters.getProperty(r.PropertyId.WebWorkerLoadType, "on").toLowerCase() === "on" && typeof Blob < "u" && typeof Worker < "u" ? this.privSetTimeout = e.Timeout.setTimeout : (typeof window < "u" && (this.privSetTimeout = window.setTimeout.bind(window)), typeof globalThis < "u" && (this.privSetTimeout = globalThis.setTimeout.bind(globalThis))), this.connectionEvents.attach((_) => {
|
|
12853
|
+
if (_.name === "ConnectionClosedEvent") {
|
|
12854
|
+
const R = _;
|
|
12859
12855
|
(R.statusCode === 1003 || R.statusCode === 1007 || R.statusCode === 1002 || R.statusCode === 4e3 || this.privRequestSession.numConnectionAttempts > this.privRecognizerConfig.maxRetryCount) && this.cancelRecognitionLocal(r.CancellationReason.Error, R.statusCode === 1007 ? r.CancellationErrorCode.BadRequestParameters : r.CancellationErrorCode.ConnectionFailure, `${R.reason} websocket error code: ${R.statusCode}`);
|
|
12860
12856
|
}
|
|
12861
12857
|
}), this.privEnableSpeakerId && (this.privDiarizationSessionId = (0, e.createNoDashGuid)());
|
|
@@ -12873,11 +12869,11 @@ function cS() {
|
|
|
12873
12869
|
},
|
|
12874
12870
|
targetLanguages: S
|
|
12875
12871
|
}, y !== void 0 && (this.privSpeechContext.getContext().translation.category = y), C !== void 0) {
|
|
12876
|
-
const
|
|
12872
|
+
const _ = {};
|
|
12877
12873
|
for (const R of S)
|
|
12878
|
-
|
|
12874
|
+
_[R] = C;
|
|
12879
12875
|
this.privSpeechContext.getContext().synthesis = {
|
|
12880
|
-
defaultVoices:
|
|
12876
|
+
defaultVoices: _
|
|
12881
12877
|
};
|
|
12882
12878
|
}
|
|
12883
12879
|
const A = this.privSpeechContext.getContext().phraseDetection || {};
|
|
@@ -13017,8 +13013,8 @@ function cS() {
|
|
|
13017
13013
|
const y = this.connectImpl();
|
|
13018
13014
|
let w;
|
|
13019
13015
|
try {
|
|
13020
|
-
const R = await this.audioSource.attach(this.privRequestSession.audioNodeId),
|
|
13021
|
-
this.privIsLiveAudio = U.type && U.type === i.type.Microphones, w = new t.ReplayableAudioNode(R,
|
|
13016
|
+
const R = await this.audioSource.attach(this.privRequestSession.audioNodeId), L = await this.audioSource.format, U = await this.audioSource.deviceInfo;
|
|
13017
|
+
this.privIsLiveAudio = U.type && U.type === i.type.Microphones, w = new t.ReplayableAudioNode(R, L.avgBytesPerSec), await this.privRequestSession.onAudioSourceAttachCompleted(w, !1), this.privRecognizerConfig.SpeechServiceConfig.Context.audio = { source: U };
|
|
13022
13018
|
} catch (R) {
|
|
13023
13019
|
throw await this.privRequestSession.onStopRecognizing(), R;
|
|
13024
13020
|
}
|
|
@@ -13121,14 +13117,14 @@ function cS() {
|
|
|
13121
13117
|
case "speech.enddetected":
|
|
13122
13118
|
let A;
|
|
13123
13119
|
C.textBody.length > 0 ? A = C.textBody : A = "{ Offset: 0 }";
|
|
13124
|
-
const
|
|
13120
|
+
const _ = i.SpeechDetected.fromJSON(A, this.privRequestSession.currentTurnAudioOffset), R = new r.RecognitionEventArgs(_.Offset + this.privRequestSession.currentTurnAudioOffset, this.privRequestSession.sessionId);
|
|
13125
13121
|
this.privRecognizer.speechEndDetected && this.privRecognizer.speechEndDetected(this.privRecognizer, R);
|
|
13126
13122
|
break;
|
|
13127
13123
|
case "turn.end":
|
|
13128
13124
|
await this.sendTelemetryData(), this.privRequestSession.isSpeechEnded && this.privMustReportEndOfStream && (this.privMustReportEndOfStream = !1, await this.cancelRecognitionLocal(r.CancellationReason.EndOfStream, r.CancellationErrorCode.NoError, void 0));
|
|
13129
|
-
const
|
|
13125
|
+
const L = new r.SessionEventArgs(this.privRequestSession.sessionId);
|
|
13130
13126
|
if (await this.privRequestSession.onServiceTurnEndResponse(this.privRecognizerConfig.isContinuousRecognition), !this.privRecognizerConfig.isContinuousRecognition || this.privRequestSession.isSpeechEnded || !this.privRequestSession.isRecognizing) {
|
|
13131
|
-
this.privRecognizer.sessionStopped && this.privRecognizer.sessionStopped(this.privRecognizer,
|
|
13127
|
+
this.privRecognizer.sessionStopped && this.privRecognizer.sessionStopped(this.privRecognizer, L);
|
|
13132
13128
|
return;
|
|
13133
13129
|
} else
|
|
13134
13130
|
f = await this.fetchConnection(), await this.sendPrePayloadJSON(f);
|
|
@@ -13213,23 +13209,23 @@ function cS() {
|
|
|
13213
13209
|
const S = await this.audioSource.format;
|
|
13214
13210
|
this.privAverageBytesPerMs = S.avgBytesPerSec / 1e3;
|
|
13215
13211
|
let C = Date.now();
|
|
13216
|
-
const y = this.privRecognizerConfig.parameters.getProperty("SPEECH-TransmitLengthBeforThrottleMs", "5000"), w = S.avgBytesPerSec / 1e3 * parseInt(y, 10), A = this.privRequestSession.recogNumber,
|
|
13212
|
+
const y = this.privRecognizerConfig.parameters.getProperty("SPEECH-TransmitLengthBeforThrottleMs", "5000"), w = S.avgBytesPerSec / 1e3 * parseInt(y, 10), A = this.privRequestSession.recogNumber, _ = async () => {
|
|
13217
13213
|
if (!this.privIsDisposed && !this.privRequestSession.isSpeechEnded && this.privRequestSession.isRecognizing && this.privRequestSession.recogNumber === A) {
|
|
13218
|
-
const R = await this.fetchConnection(),
|
|
13214
|
+
const R = await this.fetchConnection(), L = await f.read();
|
|
13219
13215
|
if (this.privRequestSession.isSpeechEnded)
|
|
13220
13216
|
return;
|
|
13221
|
-
let U,
|
|
13222
|
-
if (!
|
|
13217
|
+
let U, H;
|
|
13218
|
+
if (!L || L.isEnd ? (U = null, H = 0) : (U = L.buffer, this.privRequestSession.onAudioSent(U.byteLength), w >= this.privRequestSession.bytesSent ? H = 0 : H = Math.max(0, C - Date.now())), H !== 0 && await this.delay(H), U !== null && (C = Date.now() + U.byteLength * 1e3 / (S.avgBytesPerSec * 2)), !this.privIsDisposed && !this.privRequestSession.isSpeechEnded && this.privRequestSession.isRecognizing && this.privRequestSession.recogNumber === A)
|
|
13223
13219
|
if (R.send(new u.SpeechConnectionMessage(e.MessageType.Binary, "audio", this.privRequestSession.requestId, null, U)).catch(() => {
|
|
13224
13220
|
this.privRequestSession.onServiceTurnEndResponse(this.privRecognizerConfig.isContinuousRecognition).catch(() => {
|
|
13225
13221
|
});
|
|
13226
|
-
}),
|
|
13222
|
+
}), L != null && L.isEnd)
|
|
13227
13223
|
this.privIsLiveAudio || this.privRequestSession.onSpeechEnded();
|
|
13228
13224
|
else
|
|
13229
|
-
return
|
|
13225
|
+
return _();
|
|
13230
13226
|
}
|
|
13231
13227
|
};
|
|
13232
|
-
return
|
|
13228
|
+
return _();
|
|
13233
13229
|
}
|
|
13234
13230
|
async retryableConnect() {
|
|
13235
13231
|
let f = !1;
|
|
@@ -13241,13 +13237,13 @@ function cS() {
|
|
|
13241
13237
|
this.privRequestSession.onRetryConnection();
|
|
13242
13238
|
const A = await (f ? this.privAuthentication.fetchOnExpiry(this.privAuthFetchEventId) : this.privAuthentication.fetch(this.privAuthFetchEventId));
|
|
13243
13239
|
await this.privRequestSession.onAuthCompleted(!1);
|
|
13244
|
-
const
|
|
13245
|
-
this.privRequestSession.listenForServiceTelemetry(
|
|
13246
|
-
this.connectionEvents.onEvent(
|
|
13240
|
+
const _ = await this.privConnectionFactory.create(this.privRecognizerConfig, A, this.privConnectionId);
|
|
13241
|
+
this.privRequestSession.listenForServiceTelemetry(_.events), _.events.attach((L) => {
|
|
13242
|
+
this.connectionEvents.onEvent(L);
|
|
13247
13243
|
});
|
|
13248
|
-
const R = await
|
|
13244
|
+
const R = await _.open();
|
|
13249
13245
|
if (R.statusCode === 200)
|
|
13250
|
-
return await this.privRequestSession.onConnectionEstablishCompleted(R.statusCode), Promise.resolve(
|
|
13246
|
+
return await this.privRequestSession.onConnectionEstablishCompleted(R.statusCode), Promise.resolve(_);
|
|
13251
13247
|
R.statusCode === 1006 && (f = !0), C = R.statusCode, y = R.reason;
|
|
13252
13248
|
}
|
|
13253
13249
|
return await this.privRequestSession.onConnectionEstablishCompleted(C, y), Promise.reject(`Unable to contact server. StatusCode: ${C}, ${this.privRecognizerConfig.parameters.getProperty(r.PropertyId.SpeechServiceConnection_Endpoint)} Reason: ${y}`);
|
|
@@ -13503,8 +13499,8 @@ function lS() {
|
|
|
13503
13499
|
let h = p.parameters.getProperty(r.PropertyId.SpeechServiceConnection_Endpoint, void 0);
|
|
13504
13500
|
const v = p.parameters.getProperty(r.PropertyId.SpeechServiceConnection_Region, void 0), g = i.ConnectionFactoryBase.getHostSuffix(v), m = p.parameters.getProperty(r.PropertyId.SpeechServiceConnection_Host, "wss://" + v + ".stt.speech" + g), f = {}, S = p.parameters.getProperty(r.PropertyId.SpeechServiceConnection_EndpointId, void 0), C = p.parameters.getProperty(r.PropertyId.SpeechServiceConnection_RecoLanguage, void 0);
|
|
13505
13501
|
if (S ? (!h || h.search(o.QueryParameterNames.CustomSpeechDeploymentId) === -1) && (f[o.QueryParameterNames.CustomSpeechDeploymentId] = S) : C && (!h || h.search(o.QueryParameterNames.Language) === -1) && (f[o.QueryParameterNames.Language] = C), (!h || h.search(o.QueryParameterNames.Format) === -1) && (f[o.QueryParameterNames.Format] = p.parameters.getProperty(e.OutputFormatPropertyName, r.OutputFormat[r.OutputFormat.Simple]).toLowerCase()), p.autoDetectSourceLanguages !== void 0 && (f[o.QueryParameterNames.EnableLanguageId] = "true"), this.setCommonUrlParams(p, f, h), h) {
|
|
13506
|
-
const R = new URL(h),
|
|
13507
|
-
(
|
|
13502
|
+
const R = new URL(h), L = R.pathname;
|
|
13503
|
+
(L === "" || L === "/") && (R.pathname = this.universalUri + p.recognitionEndpointVersion, h = await i.ConnectionFactoryBase.getRedirectUrlFromEndpoint(R.toString()));
|
|
13508
13504
|
}
|
|
13509
13505
|
if (!h)
|
|
13510
13506
|
switch (p.recognitionMode) {
|
|
@@ -13520,8 +13516,8 @@ function lS() {
|
|
|
13520
13516
|
}
|
|
13521
13517
|
const y = {};
|
|
13522
13518
|
d.token !== void 0 && d.token !== "" && (y[d.headerName] = d.token), y[a.HeaderNames.ConnectionId] = l, y.connectionId = l;
|
|
13523
|
-
const w = p.parameters.getProperty("SPEECH-EnableWebsocketCompression", "false") === "true", A = new t.WebsocketConnection(h, f, y, new u.WebsocketMessageFormatter(), t.ProxyInfo.fromRecognizerConfig(p), w, l),
|
|
13524
|
-
return p.parameters.setProperty(r.PropertyId.SpeechServiceConnection_Url,
|
|
13519
|
+
const w = p.parameters.getProperty("SPEECH-EnableWebsocketCompression", "false") === "true", A = new t.WebsocketConnection(h, f, y, new u.WebsocketMessageFormatter(), t.ProxyInfo.fromRecognizerConfig(p), w, l), _ = A.uri;
|
|
13520
|
+
return p.parameters.setProperty(r.PropertyId.SpeechServiceConnection_Url, _), A;
|
|
13525
13521
|
}
|
|
13526
13522
|
};
|
|
13527
13523
|
return pn.SpeechConnectionFactory = s, pn;
|
|
@@ -13540,8 +13536,8 @@ function hS() {
|
|
|
13540
13536
|
let l = c.parameters.getProperty(e.PropertyId.SpeechServiceConnection_Endpoint, void 0);
|
|
13541
13537
|
const h = c.parameters.getProperty(e.PropertyId.SpeechServiceConnection_Region, void 0), v = i.ConnectionFactoryBase.getHostSuffix(h), g = c.parameters.getProperty(e.PropertyId.SpeechServiceConnection_Host, "wss://" + h + ".stt.speech" + v), m = {}, f = c.parameters.getProperty(e.PropertyId.SpeechServiceConnection_EndpointId, void 0), S = c.parameters.getProperty(e.PropertyId.SpeechServiceConnection_RecoLanguage, void 0);
|
|
13542
13538
|
if (f ? (!l || l.search(o.QueryParameterNames.CustomSpeechDeploymentId) === -1) && (m[o.QueryParameterNames.CustomSpeechDeploymentId] = f) : S && (!l || l.search(o.QueryParameterNames.Language) === -1) && (m[o.QueryParameterNames.Language] = S), c.autoDetectSourceLanguages !== void 0 && (m[o.QueryParameterNames.EnableLanguageId] = "true"), this.setV2UrlParams(c, m, l), l) {
|
|
13543
|
-
const
|
|
13544
|
-
(R === "" || R === "/") && (
|
|
13539
|
+
const _ = new URL(l), R = _.pathname;
|
|
13540
|
+
(R === "" || R === "/") && (_.pathname = this.universalUri, l = await i.ConnectionFactoryBase.getRedirectUrlFromEndpoint(_.toString()));
|
|
13545
13541
|
}
|
|
13546
13542
|
l || (l = `${g}${this.universalUri}`);
|
|
13547
13543
|
const C = {};
|
|
@@ -14849,10 +14845,10 @@ class TS {
|
|
|
14849
14845
|
so.ServiceTelemetryListener = TS;
|
|
14850
14846
|
Object.defineProperty(io, "__esModule", { value: !0 });
|
|
14851
14847
|
io.RequestSession = void 0;
|
|
14852
|
-
const
|
|
14848
|
+
const bt = M(), $i = Qs, bS = so;
|
|
14853
14849
|
class MS {
|
|
14854
14850
|
constructor(e) {
|
|
14855
|
-
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,
|
|
14851
|
+
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, bt.createNoDashGuid)(), this.privAudioNodeId = (0, bt.createNoDashGuid)(), this.privTurnDeferral = new bt.Deferred(), this.privTurnDeferral.resolve();
|
|
14856
14852
|
}
|
|
14857
14853
|
get sessionId() {
|
|
14858
14854
|
return this.privSessionId;
|
|
@@ -14918,11 +14914,11 @@ class MS {
|
|
|
14918
14914
|
this.privTurnDeferral.resolve(), !e || this.isSpeechEnded ? (await this.onComplete(), this.privInTurn = !1) : (this.privTurnStartAudioOffset = this.privLastRecoOffset, this.privAudioNode.replay());
|
|
14919
14915
|
}
|
|
14920
14916
|
onSpeechContext() {
|
|
14921
|
-
this.privRequestId = (0,
|
|
14917
|
+
this.privRequestId = (0, bt.createNoDashGuid)();
|
|
14922
14918
|
}
|
|
14923
14919
|
onServiceTurnStartResponse() {
|
|
14924
14920
|
this.privTurnDeferral && this.privInTurn && (this.privTurnDeferral.reject("Another turn started before current completed."), this.privTurnDeferral.promise.then().catch(() => {
|
|
14925
|
-
})), this.privInTurn = !0, this.privTurnDeferral = new
|
|
14921
|
+
})), this.privInTurn = !0, this.privTurnDeferral = new bt.Deferred();
|
|
14926
14922
|
}
|
|
14927
14923
|
onHypothesis(e) {
|
|
14928
14924
|
this.privHypothesisReceived || (this.privHypothesisReceived = !0, this.privServiceTelemetryListener.hypothesisReceived(this.privAudioNode.findTimeAtOffset(e)));
|
|
@@ -14958,7 +14954,7 @@ class MS {
|
|
|
14958
14954
|
this.privIsSpeechEnded = !0;
|
|
14959
14955
|
}
|
|
14960
14956
|
onEvent(e) {
|
|
14961
|
-
this.privServiceTelemetryListener && this.privServiceTelemetryListener.onEvent(e),
|
|
14957
|
+
this.privServiceTelemetryListener && this.privServiceTelemetryListener.onEvent(e), bt.Events.instance.onEvent(e);
|
|
14962
14958
|
}
|
|
14963
14959
|
async onComplete() {
|
|
14964
14960
|
this.privIsRecognizing && (this.privIsRecognizing = !1, await this.detachAudioNode());
|
|
@@ -15206,10 +15202,10 @@ function FS() {
|
|
|
15206
15202
|
case "speech.phrase":
|
|
15207
15203
|
const S = o.SimpleSpeechPhrase.fromJSON(h.textBody, this.privRequestSession.currentTurnAudioOffset);
|
|
15208
15204
|
if (this.privRequestSession.onPhraseRecognized(S.Offset + S.Duration), S.RecognitionStatus !== o.RecognitionStatus.TooManyRequests && S.RecognitionStatus !== o.RecognitionStatus.Error) {
|
|
15209
|
-
const
|
|
15210
|
-
if (this.privLastResult =
|
|
15205
|
+
const _ = this.fireEventForResult(S, v);
|
|
15206
|
+
if (this.privLastResult = _.result, this.privDialogServiceConnector.recognized)
|
|
15211
15207
|
try {
|
|
15212
|
-
this.privDialogServiceConnector.recognized(this.privDialogServiceConnector,
|
|
15208
|
+
this.privDialogServiceConnector.recognized(this.privDialogServiceConnector, _);
|
|
15213
15209
|
} catch {
|
|
15214
15210
|
}
|
|
15215
15211
|
}
|
|
@@ -15239,7 +15235,7 @@ function FS() {
|
|
|
15239
15235
|
break;
|
|
15240
15236
|
case "audio":
|
|
15241
15237
|
{
|
|
15242
|
-
const
|
|
15238
|
+
const _ = h.requestId.toUpperCase(), R = this.privTurnStateManager.GetTurn(_);
|
|
15243
15239
|
try {
|
|
15244
15240
|
h.binaryBody ? R.audioStream.write(h.binaryBody) : R.endAudioStream();
|
|
15245
15241
|
} catch {
|
|
@@ -15327,8 +15323,8 @@ function FS() {
|
|
|
15327
15323
|
switch (C.path.toLowerCase()) {
|
|
15328
15324
|
case "turn.start":
|
|
15329
15325
|
{
|
|
15330
|
-
const U = C.requestId.toUpperCase(),
|
|
15331
|
-
U !==
|
|
15326
|
+
const U = C.requestId.toUpperCase(), H = this.privRequestSession.requestId.toUpperCase();
|
|
15327
|
+
U !== H ? this.privTurnStateManager.StartTurn(U) : this.privRequestSession.onServiceTurnStartResponse();
|
|
15332
15328
|
}
|
|
15333
15329
|
break;
|
|
15334
15330
|
case "speech.startdetected":
|
|
@@ -15336,25 +15332,25 @@ function FS() {
|
|
|
15336
15332
|
this.privRecognizer.speechStartDetected && this.privRecognizer.speechStartDetected(this.privRecognizer, A);
|
|
15337
15333
|
break;
|
|
15338
15334
|
case "speech.enddetected":
|
|
15339
|
-
let
|
|
15340
|
-
C.textBody.length > 0 ?
|
|
15341
|
-
const R = o.SpeechDetected.fromJSON(
|
|
15335
|
+
let _;
|
|
15336
|
+
C.textBody.length > 0 ? _ = C.textBody : _ = "{ Offset: 0 }";
|
|
15337
|
+
const R = o.SpeechDetected.fromJSON(_, this.privRequestSession.currentTurnAudioOffset);
|
|
15342
15338
|
this.privRequestSession.onServiceRecognized(R.Offset);
|
|
15343
|
-
const
|
|
15344
|
-
this.privRecognizer.speechEndDetected && this.privRecognizer.speechEndDetected(this.privRecognizer,
|
|
15339
|
+
const L = new u.RecognitionEventArgs(R.Offset, this.privRequestSession.sessionId);
|
|
15340
|
+
this.privRecognizer.speechEndDetected && this.privRecognizer.speechEndDetected(this.privRecognizer, L);
|
|
15345
15341
|
break;
|
|
15346
15342
|
case "turn.end":
|
|
15347
15343
|
{
|
|
15348
|
-
const U = C.requestId.toUpperCase(),
|
|
15349
|
-
if (U !==
|
|
15344
|
+
const U = C.requestId.toUpperCase(), H = this.privRequestSession.requestId.toUpperCase();
|
|
15345
|
+
if (U !== H)
|
|
15350
15346
|
this.privTurnStateManager.CompleteTurn(U);
|
|
15351
15347
|
else {
|
|
15352
|
-
const
|
|
15353
|
-
if (await this.privRequestSession.onServiceTurnEndResponse(!1), (!this.privRecognizerConfig.isContinuousRecognition || this.privRequestSession.isSpeechEnded || !this.privRequestSession.isRecognizing) && this.privRecognizer.sessionStopped && this.privRecognizer.sessionStopped(this.privRecognizer,
|
|
15348
|
+
const ae = new u.SessionEventArgs(this.privRequestSession.sessionId);
|
|
15349
|
+
if (await this.privRequestSession.onServiceTurnEndResponse(!1), (!this.privRecognizerConfig.isContinuousRecognition || this.privRequestSession.isSpeechEnded || !this.privRequestSession.isRecognizing) && this.privRecognizer.sessionStopped && this.privRecognizer.sessionStopped(this.privRecognizer, ae), this.privSuccessCallback && this.privLastResult) {
|
|
15354
15350
|
try {
|
|
15355
15351
|
this.privSuccessCallback(this.privLastResult), this.privLastResult = null;
|
|
15356
|
-
} catch (
|
|
15357
|
-
this.privErrorCallback && this.privErrorCallback(
|
|
15352
|
+
} catch (V) {
|
|
15353
|
+
this.privErrorCallback && this.privErrorCallback(V);
|
|
15358
15354
|
}
|
|
15359
15355
|
this.privSuccessCallback = void 0, this.privErrorCallback = void 0;
|
|
15360
15356
|
}
|
|
@@ -15493,37 +15489,37 @@ var Lo = {}, An = {}, Qt = {};
|
|
|
15493
15489
|
Object.defineProperty(Qt, "__esModule", { value: !0 });
|
|
15494
15490
|
Qt.ConversationConnectionConfig = void 0;
|
|
15495
15491
|
const HS = si;
|
|
15496
|
-
class
|
|
15492
|
+
class he extends HS.RestConfigBase {
|
|
15497
15493
|
static get host() {
|
|
15498
|
-
return
|
|
15494
|
+
return he.privHost;
|
|
15499
15495
|
}
|
|
15500
15496
|
static get apiVersion() {
|
|
15501
|
-
return
|
|
15497
|
+
return he.privApiVersion;
|
|
15502
15498
|
}
|
|
15503
15499
|
static get clientAppId() {
|
|
15504
|
-
return
|
|
15500
|
+
return he.privClientAppId;
|
|
15505
15501
|
}
|
|
15506
15502
|
static get defaultLanguageCode() {
|
|
15507
|
-
return
|
|
15503
|
+
return he.privDefaultLanguageCode;
|
|
15508
15504
|
}
|
|
15509
15505
|
static get restPath() {
|
|
15510
|
-
return
|
|
15506
|
+
return he.privRestPath;
|
|
15511
15507
|
}
|
|
15512
15508
|
static get webSocketPath() {
|
|
15513
|
-
return
|
|
15509
|
+
return he.privWebSocketPath;
|
|
15514
15510
|
}
|
|
15515
15511
|
static get transcriptionEventKeys() {
|
|
15516
|
-
return
|
|
15512
|
+
return he.privTranscriptionEventKeys;
|
|
15517
15513
|
}
|
|
15518
15514
|
}
|
|
15519
|
-
Qt.ConversationConnectionConfig =
|
|
15520
|
-
|
|
15521
|
-
|
|
15522
|
-
|
|
15523
|
-
|
|
15524
|
-
|
|
15525
|
-
|
|
15526
|
-
|
|
15515
|
+
Qt.ConversationConnectionConfig = he;
|
|
15516
|
+
he.privHost = "dev.microsofttranslator.com";
|
|
15517
|
+
he.privRestPath = "/capito/room";
|
|
15518
|
+
he.privApiVersion = "2.0";
|
|
15519
|
+
he.privDefaultLanguageCode = "en-US";
|
|
15520
|
+
he.privClientAppId = "FC539C22-1767-4F1F-84BC-B4D811114F15";
|
|
15521
|
+
he.privWebSocketPath = "/capito/translate";
|
|
15522
|
+
he.privTranscriptionEventKeys = ["iCalUid", "callId", "organizer", "FLAC", "MTUri", "DifferentiateGuestSpeakers", "audiorecording", "Threadid", "OrganizerMri", "OrganizerTenantId", "UserToken"];
|
|
15527
15523
|
var Bu;
|
|
15528
15524
|
function WS() {
|
|
15529
15525
|
if (Bu)
|
|
@@ -15557,9 +15553,9 @@ function WS() {
|
|
|
15557
15553
|
const A = t.RestMessageAdapter.extractHeaderValue(this.privRequestParams.requestId, w.headers);
|
|
15558
15554
|
if (!w.ok) {
|
|
15559
15555
|
if (c) {
|
|
15560
|
-
let R = this.privErrors.invalidCreateJoinConversationResponse.replace("{status}", w.status.toString()),
|
|
15556
|
+
let R = this.privErrors.invalidCreateJoinConversationResponse.replace("{status}", w.status.toString()), L;
|
|
15561
15557
|
try {
|
|
15562
|
-
|
|
15558
|
+
L = JSON.parse(w.data), R += ` [${L.error.code}: ${L.error.message}]`;
|
|
15563
15559
|
} catch {
|
|
15564
15560
|
R += ` [${w.data}]`;
|
|
15565
15561
|
}
|
|
@@ -15567,10 +15563,10 @@ function WS() {
|
|
|
15567
15563
|
}
|
|
15568
15564
|
return;
|
|
15569
15565
|
}
|
|
15570
|
-
const
|
|
15571
|
-
if (
|
|
15566
|
+
const _ = JSON.parse(w.data);
|
|
15567
|
+
if (_ && (_.requestId = A), s) {
|
|
15572
15568
|
try {
|
|
15573
|
-
s(
|
|
15569
|
+
s(_);
|
|
15574
15570
|
} catch (R) {
|
|
15575
15571
|
c && c(R);
|
|
15576
15572
|
}
|
|
@@ -15938,9 +15934,9 @@ class Pa {
|
|
|
15938
15934
|
}
|
|
15939
15935
|
}
|
|
15940
15936
|
vo.CommandResponsePayload = Pa;
|
|
15941
|
-
var
|
|
15942
|
-
Object.defineProperty(
|
|
15943
|
-
|
|
15937
|
+
var qt = {};
|
|
15938
|
+
Object.defineProperty(qt, "__esModule", { value: !0 });
|
|
15939
|
+
qt.ParticipantPayloadResponse = qt.ParticipantsListPayloadResponse = void 0;
|
|
15944
15940
|
const ZS = (t) => JSON.parse(t), YS = (t) => JSON.parse(t);
|
|
15945
15941
|
class Ra {
|
|
15946
15942
|
constructor(e) {
|
|
@@ -15983,7 +15979,7 @@ class Ra {
|
|
|
15983
15979
|
return new Ra(e);
|
|
15984
15980
|
}
|
|
15985
15981
|
}
|
|
15986
|
-
|
|
15982
|
+
qt.ParticipantsListPayloadResponse = Ra;
|
|
15987
15983
|
class Ea {
|
|
15988
15984
|
constructor(e) {
|
|
15989
15985
|
this.privParticipantPayloadResponse = YS(e);
|
|
@@ -16013,10 +16009,10 @@ class Ea {
|
|
|
16013
16009
|
return new Ea(e);
|
|
16014
16010
|
}
|
|
16015
16011
|
}
|
|
16016
|
-
|
|
16017
|
-
var
|
|
16018
|
-
Object.defineProperty(
|
|
16019
|
-
|
|
16012
|
+
qt.ParticipantPayloadResponse = Ea;
|
|
16013
|
+
var Ft = {};
|
|
16014
|
+
Object.defineProperty(Ft, "__esModule", { value: !0 });
|
|
16015
|
+
Ft.TextResponsePayload = Ft.SpeechResponsePayload = void 0;
|
|
16020
16016
|
const eC = (t) => JSON.parse(t), tC = (t) => JSON.parse(t);
|
|
16021
16017
|
class wa {
|
|
16022
16018
|
constructor(e) {
|
|
@@ -16056,7 +16052,7 @@ class wa {
|
|
|
16056
16052
|
return new wa(e);
|
|
16057
16053
|
}
|
|
16058
16054
|
}
|
|
16059
|
-
|
|
16055
|
+
Ft.SpeechResponsePayload = wa;
|
|
16060
16056
|
class Aa {
|
|
16061
16057
|
constructor(e) {
|
|
16062
16058
|
this.privTextResponse = tC(e);
|
|
@@ -16092,20 +16088,20 @@ class Aa {
|
|
|
16092
16088
|
return new Aa(e);
|
|
16093
16089
|
}
|
|
16094
16090
|
}
|
|
16095
|
-
|
|
16091
|
+
Ft.TextResponsePayload = Aa;
|
|
16096
16092
|
(function(t) {
|
|
16097
16093
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.TextResponsePayload = t.SpeechResponsePayload = t.ParticipantPayloadResponse = t.ParticipantsListPayloadResponse = t.CommandResponsePayload = void 0;
|
|
16098
16094
|
var e = vo;
|
|
16099
16095
|
Object.defineProperty(t, "CommandResponsePayload", { enumerable: !0, get: function() {
|
|
16100
16096
|
return e.CommandResponsePayload;
|
|
16101
16097
|
} });
|
|
16102
|
-
var r =
|
|
16098
|
+
var r = qt;
|
|
16103
16099
|
Object.defineProperty(t, "ParticipantsListPayloadResponse", { enumerable: !0, get: function() {
|
|
16104
16100
|
return r.ParticipantsListPayloadResponse;
|
|
16105
16101
|
} }), Object.defineProperty(t, "ParticipantPayloadResponse", { enumerable: !0, get: function() {
|
|
16106
16102
|
return r.ParticipantPayloadResponse;
|
|
16107
16103
|
} });
|
|
16108
|
-
var i =
|
|
16104
|
+
var i = Ft;
|
|
16109
16105
|
Object.defineProperty(t, "SpeechResponsePayload", { enumerable: !0, get: function() {
|
|
16110
16106
|
return i.SpeechResponsePayload;
|
|
16111
16107
|
} }), Object.defineProperty(t, "TextResponsePayload", { enumerable: !0, get: function() {
|
|
@@ -16180,16 +16176,16 @@ function rC() {
|
|
|
16180
16176
|
const m = n.CommandResponsePayload.fromJSON(l.textBody);
|
|
16181
16177
|
switch (m.command.toLowerCase()) {
|
|
16182
16178
|
case "participantlist":
|
|
16183
|
-
const A = n.ParticipantsListPayloadResponse.fromJSON(l.textBody),
|
|
16184
|
-
avatar:
|
|
16185
|
-
displayName:
|
|
16186
|
-
id:
|
|
16187
|
-
isHost:
|
|
16188
|
-
isMuted:
|
|
16189
|
-
isUsingTts:
|
|
16190
|
-
preferredLanguage:
|
|
16179
|
+
const A = n.ParticipantsListPayloadResponse.fromJSON(l.textBody), _ = A.participants.map((V) => ({
|
|
16180
|
+
avatar: V.avatar,
|
|
16181
|
+
displayName: V.nickname,
|
|
16182
|
+
id: V.participantId,
|
|
16183
|
+
isHost: V.ishost,
|
|
16184
|
+
isMuted: V.ismuted,
|
|
16185
|
+
isUsingTts: V.usetts,
|
|
16186
|
+
preferredLanguage: V.locale
|
|
16191
16187
|
}));
|
|
16192
|
-
this.privConversationServiceConnector.participantsListReceived && this.privConversationServiceConnector.participantsListReceived(this.privConversationServiceConnector, new a.ParticipantsListEventArgs(A.roomid, A.token, A.translateTo, A.profanityFilter, A.roomProfanityFilter, A.roomLocked, A.muteAll,
|
|
16188
|
+
this.privConversationServiceConnector.participantsListReceived && this.privConversationServiceConnector.participantsListReceived(this.privConversationServiceConnector, new a.ParticipantsListEventArgs(A.roomid, A.token, A.translateTo, A.profanityFilter, A.roomProfanityFilter, A.roomLocked, A.muteAll, _, h));
|
|
16193
16189
|
break;
|
|
16194
16190
|
case "settranslatetolanguages":
|
|
16195
16191
|
this.privConversationServiceConnector.participantUpdateCommandReceived && this.privConversationServiceConnector.participantUpdateCommandReceived(this.privConversationServiceConnector, new a.ParticipantAttributeEventArgs(m.participantId, o.ConversationTranslatorCommandTypes.setTranslateToLanguages, m.value, h));
|
|
@@ -16216,7 +16212,7 @@ function rC() {
|
|
|
16216
16212
|
this.privConversationServiceConnector.participantUpdateCommandReceived && this.privConversationServiceConnector.participantUpdateCommandReceived(this.privConversationServiceConnector, new a.ParticipantAttributeEventArgs(m.participantId, o.ConversationTranslatorCommandTypes.changeNickname, m.value, h));
|
|
16217
16213
|
break;
|
|
16218
16214
|
case "joinsession":
|
|
16219
|
-
const R = n.ParticipantPayloadResponse.fromJSON(l.textBody),
|
|
16215
|
+
const R = n.ParticipantPayloadResponse.fromJSON(l.textBody), L = {
|
|
16220
16216
|
avatar: R.avatar,
|
|
16221
16217
|
displayName: R.nickname,
|
|
16222
16218
|
id: R.participantId,
|
|
@@ -16225,7 +16221,7 @@ function rC() {
|
|
|
16225
16221
|
isUsingTts: R.usetts,
|
|
16226
16222
|
preferredLanguage: R.locale
|
|
16227
16223
|
};
|
|
16228
|
-
this.privConversationServiceConnector.participantJoinCommandReceived && this.privConversationServiceConnector.participantJoinCommandReceived(this.privConversationServiceConnector, new a.ParticipantEventArgs(
|
|
16224
|
+
this.privConversationServiceConnector.participantJoinCommandReceived && this.privConversationServiceConnector.participantJoinCommandReceived(this.privConversationServiceConnector, new a.ParticipantEventArgs(L, h));
|
|
16229
16225
|
break;
|
|
16230
16226
|
case "leavesession":
|
|
16231
16227
|
const U = {
|
|
@@ -16234,19 +16230,19 @@ function rC() {
|
|
|
16234
16230
|
this.privConversationServiceConnector.participantLeaveCommandReceived && this.privConversationServiceConnector.participantLeaveCommandReceived(this.privConversationServiceConnector, new a.ParticipantEventArgs(U, h));
|
|
16235
16231
|
break;
|
|
16236
16232
|
case "disconnectsession":
|
|
16237
|
-
const
|
|
16233
|
+
const H = {
|
|
16238
16234
|
id: m.participantId
|
|
16239
16235
|
};
|
|
16240
16236
|
break;
|
|
16241
16237
|
case "token":
|
|
16242
|
-
const
|
|
16243
|
-
const
|
|
16244
|
-
return Promise.resolve(
|
|
16238
|
+
const ae = new r.CognitiveTokenAuthentication(() => {
|
|
16239
|
+
const V = m.token;
|
|
16240
|
+
return Promise.resolve(V);
|
|
16245
16241
|
}, () => {
|
|
16246
|
-
const
|
|
16247
|
-
return Promise.resolve(
|
|
16242
|
+
const V = m.token;
|
|
16243
|
+
return Promise.resolve(V);
|
|
16248
16244
|
});
|
|
16249
|
-
this.authentication =
|
|
16245
|
+
this.authentication = ae, this.privConversationServiceConnector.onToken(ae);
|
|
16250
16246
|
break;
|
|
16251
16247
|
default:
|
|
16252
16248
|
break;
|
|
@@ -17755,15 +17751,15 @@ function EC(t, e, r) {
|
|
|
17755
17751
|
}
|
|
17756
17752
|
return CC(i);
|
|
17757
17753
|
}
|
|
17758
|
-
const
|
|
17754
|
+
const Ut = Vt(), op = Ne(), Mt = b(""), yt = b(""), Ke = b(""), Ce = b(""), el = b("");
|
|
17759
17755
|
let Je = null;
|
|
17760
17756
|
const ap = 4e3;
|
|
17761
|
-
|
|
17757
|
+
Wt(async () => {
|
|
17762
17758
|
await _a();
|
|
17763
17759
|
});
|
|
17764
|
-
let X = null,
|
|
17765
|
-
const
|
|
17766
|
-
Oe && Oe.mute(), X && (X.close(), X = null),
|
|
17760
|
+
let X = null, Dt = null, Oe = null, Gi = null;
|
|
17761
|
+
const Ht = () => {
|
|
17762
|
+
Oe && Oe.mute(), X && (X.close(), X = null), Dt = null;
|
|
17767
17763
|
}, _a = async () => {
|
|
17768
17764
|
var t, e, r;
|
|
17769
17765
|
try {
|
|
@@ -17772,9 +17768,9 @@ const Wt = () => {
|
|
|
17772
17768
|
} catch (i) {
|
|
17773
17769
|
if (console.error(i), Ie.isAxiosError(i)) {
|
|
17774
17770
|
const u = i;
|
|
17775
|
-
console.log("Error found!"), console.error((e = u.response) == null ? void 0 : e.data),
|
|
17771
|
+
console.log("Error found!"), console.error((e = u.response) == null ? void 0 : e.data), Ut.setError(((r = u.response) == null ? void 0 : r.data).message);
|
|
17776
17772
|
} else
|
|
17777
|
-
|
|
17773
|
+
Ut.setError("There was an issue while fetching data");
|
|
17778
17774
|
}
|
|
17779
17775
|
}, Fo = () => {
|
|
17780
17776
|
Je && clearTimeout(Je), Gi && (Gi.stopContinuousRecognitionAsync(
|
|
@@ -17786,23 +17782,23 @@ const Wt = () => {
|
|
|
17786
17782
|
), Gi = null);
|
|
17787
17783
|
}, wC = async (t) => {
|
|
17788
17784
|
const e = await _a();
|
|
17789
|
-
return await
|
|
17785
|
+
return await Ht(), new Promise((r, i) => {
|
|
17790
17786
|
const u = De.SpeechConfig.fromAuthorizationToken(e, "eastus2");
|
|
17791
17787
|
u.speechSynthesisVoiceName = "en-US-EmmaMultilingualNeural", Oe = new De.SpeakerAudioDestination();
|
|
17792
17788
|
const a = De.AudioConfig.fromSpeakerOutput(Oe);
|
|
17793
17789
|
X = new De.SpeechSynthesizer(u, a);
|
|
17794
17790
|
const o = EC();
|
|
17795
|
-
|
|
17791
|
+
Dt = o, X.speakTextAsync(
|
|
17796
17792
|
t,
|
|
17797
17793
|
(n) => {
|
|
17798
|
-
if (o !==
|
|
17794
|
+
if (o !== Dt)
|
|
17799
17795
|
return Oe == null || Oe.mute(), X == null || X.close(), X = null, r();
|
|
17800
|
-
n.reason === De.ResultReason.SynthesizingAudioCompleted ? r() : i(new Error("Speech synthesis failed")), X == null || X.close(), X = null,
|
|
17796
|
+
n.reason === De.ResultReason.SynthesizingAudioCompleted ? r() : i(new Error("Speech synthesis failed")), X == null || X.close(), X = null, Dt = null;
|
|
17801
17797
|
},
|
|
17802
17798
|
(n) => {
|
|
17803
|
-
if (o !==
|
|
17799
|
+
if (o !== Dt)
|
|
17804
17800
|
return Oe == null || Oe.mute(), X == null || X.close(), X = null, r();
|
|
17805
|
-
X == null || X.close(), X = null,
|
|
17801
|
+
X == null || X.close(), X = null, Dt = null, i(n);
|
|
17806
17802
|
}
|
|
17807
17803
|
);
|
|
17808
17804
|
});
|
|
@@ -17810,9 +17806,9 @@ const Wt = () => {
|
|
|
17810
17806
|
const e = await _a(), r = De.SpeechConfig.fromAuthorizationToken(e, "eastus2");
|
|
17811
17807
|
r.speechRecognitionLanguage = "en-US";
|
|
17812
17808
|
const i = De.AudioConfig.fromDefaultMicrophoneInput(), u = new De.SpeechRecognizer(r, i);
|
|
17813
|
-
return Gi = u,
|
|
17814
|
-
o.result.text && o.result.text.trim() && (
|
|
17815
|
-
|
|
17809
|
+
return Gi = u, Mt.value = "", yt.value = "", u.recognizing = (a, o) => {
|
|
17810
|
+
o.result.text && o.result.text.trim() && (Mt.value = o.result.text.trim(), Ht(), op.userspeaking = !0, op.userSpeechText = (yt.value ? yt.value + " " : "") + Mt.value, Ce.value = "user", Je && clearTimeout(Je), Je = setTimeout(() => {
|
|
17811
|
+
Mt.value && (t(Mt.value.trim()), Mt.value = "");
|
|
17816
17812
|
}, ap));
|
|
17817
17813
|
}, u.recognized = (a, o) => {
|
|
17818
17814
|
o.result.reason === De.ResultReason.RecognizedSpeech && o.result.text && o.result.text.trim() && (yt.value += " " + o.result.text.trim(), Je && clearTimeout(Je), Je = setTimeout(() => {
|
|
@@ -17825,27 +17821,27 @@ const Wt = () => {
|
|
|
17825
17821
|
var t, e;
|
|
17826
17822
|
Ke.value = "", el.value = "";
|
|
17827
17823
|
try {
|
|
17828
|
-
|
|
17824
|
+
Ht(), await AC((r) => {
|
|
17829
17825
|
r && (Ke.value = r);
|
|
17830
17826
|
});
|
|
17831
17827
|
} catch (r) {
|
|
17832
17828
|
if (console.error(r), Ie.isAxiosError(r)) {
|
|
17833
17829
|
const i = r;
|
|
17834
|
-
console.log("Error found!"), console.error((t = i.response) == null ? void 0 : t.data),
|
|
17830
|
+
console.log("Error found!"), console.error((t = i.response) == null ? void 0 : t.data), Ut.setError(((e = i.response) == null ? void 0 : e.data).message);
|
|
17835
17831
|
} else
|
|
17836
|
-
|
|
17832
|
+
Ut.setError("There was an issue while fetching data");
|
|
17837
17833
|
}
|
|
17838
17834
|
}, cp = async (t) => {
|
|
17839
17835
|
var e, r;
|
|
17840
17836
|
el.value = "";
|
|
17841
17837
|
try {
|
|
17842
|
-
(Ce.value == "user" || Ce.value == "listening") &&
|
|
17838
|
+
(Ce.value == "user" || Ce.value == "listening") && Ht(), await wC(t);
|
|
17843
17839
|
} catch (i) {
|
|
17844
17840
|
if (console.error(i), Ie.isAxiosError(i)) {
|
|
17845
17841
|
const u = i;
|
|
17846
|
-
console.log("Error found!"), console.error((e = u.response) == null ? void 0 : e.data),
|
|
17842
|
+
console.log("Error found!"), console.error((e = u.response) == null ? void 0 : e.data), Ut.setError(((r = u.response) == null ? void 0 : r.data).message);
|
|
17847
17843
|
} else
|
|
17848
|
-
|
|
17844
|
+
Ut.setError("There was an issue while fetching data");
|
|
17849
17845
|
}
|
|
17850
17846
|
}, _C = { class: "flex items-center gap-4 py-2 rounded-full z-10" }, TC = {
|
|
17851
17847
|
key: 0,
|
|
@@ -17903,10 +17899,10 @@ const Wt = () => {
|
|
|
17903
17899
|
], WC = /* @__PURE__ */ _e({
|
|
17904
17900
|
__name: "NewVoiceConversation",
|
|
17905
17901
|
setup(t) {
|
|
17906
|
-
const e = Ne(), r =
|
|
17907
|
-
u.value === !1 ? e.elevenLabs ? (console.log("mic enabled true 11labs"), u.value = !0, $o(), Ce.value = "user", a.value = "Turn off mic") : (console.log("mic enabled true"), u.value = !0,
|
|
17902
|
+
const e = Ne(), r = Vt(), i = b(""), u = b(!1), a = b("Turn on mic"), o = () => {
|
|
17903
|
+
u.value === !1 ? e.elevenLabs ? (console.log("mic enabled true 11labs"), u.value = !0, $o(), Ce.value = "user", a.value = "Turn off mic") : (console.log("mic enabled true"), u.value = !0, Ht(), IC(), Ce.value = "user", a.value = "Turn off mic") : e.elevenLabs ? (console.log("mic enabled false"), Vo(), u.value = !1, a.value = "Turn on mic") : (console.log("mic enabled false"), Fo(), u.value = !1, a.value = "Turn on mic");
|
|
17908
17904
|
}, n = () => {
|
|
17909
|
-
e.elevenLabs ? (console.log("closeConversation 11 labs"), Vo(), Ce.value = "none", u.value = !1) : (console.log("closeConversation"), Fo(),
|
|
17905
|
+
e.elevenLabs ? (console.log("closeConversation 11 labs"), Vo(), Ce.value = "none", u.value = !1) : (console.log("closeConversation"), Fo(), Ht(), Ce.value = "none", u.value = !1);
|
|
17910
17906
|
}, s = async () => {
|
|
17911
17907
|
var c, p, d, l, h, v;
|
|
17912
17908
|
try {
|
|
@@ -17971,7 +17967,7 @@ const Wt = () => {
|
|
|
17971
17967
|
])
|
|
17972
17968
|
])) : O(Ce) === "listening" ? (D(), k("div", jC, xC)) : Pe("", !0),
|
|
17973
17969
|
P("div", {
|
|
17974
|
-
class:
|
|
17970
|
+
class: Lt([u.value ? "" : "animate-pulse", "tooltip"])
|
|
17975
17971
|
}, [
|
|
17976
17972
|
P("span", BC, Xe(a.value), 1),
|
|
17977
17973
|
u.value ? (D(), k("button", {
|
|
@@ -17992,7 +17988,7 @@ const Wt = () => {
|
|
|
17992
17988
|
])
|
|
17993
17989
|
]));
|
|
17994
17990
|
}
|
|
17995
|
-
}), nt = (t) => (Kn("data-v-
|
|
17991
|
+
}), nt = (t) => (Kn("data-v-3e7d283f"), t = t(), Jn(), t), VC = { class: "z-3 absolute bottom-0 mt-4 w-full bg-white px-2 md:px-6" }, $C = { class: "py-2" }, KC = { class: "flex" }, JC = { class: "z-1 relative w-full" }, GC = { class: "flex justify-between my-2 w-full" }, QC = /* @__PURE__ */ nt(() => /* @__PURE__ */ P("div", null, null, -1)), XC = {
|
|
17996
17992
|
key: 0,
|
|
17997
17993
|
class: "flex justify-center bg-genpact-darkest-blue px-4 rounded-full"
|
|
17998
17994
|
}, ZC = { class: "relative w-full" }, YC = { class: "absolute inset-y-0 left-0 flex items-center pl-3" }, ey = { class: "tooltip" }, ty = /* @__PURE__ */ nt(() => /* @__PURE__ */ P("span", { class: "tooltiptext text-genpact-darkest-teal" }, "Restart", -1)), ry = /* @__PURE__ */ nt(() => /* @__PURE__ */ P("path", {
|
|
@@ -18025,56 +18021,56 @@ const Wt = () => {
|
|
|
18025
18021
|
], -1)), my = /* @__PURE__ */ _e({
|
|
18026
18022
|
__name: "NewQuestionSimulation",
|
|
18027
18023
|
setup(t, { expose: e }) {
|
|
18028
|
-
const r = Ne(), i =
|
|
18024
|
+
const r = Ne(), i = Vt(), u = b(""), a = b("");
|
|
18029
18025
|
r.question = "";
|
|
18030
|
-
const o =
|
|
18031
|
-
a.value = r.recognizedText,
|
|
18026
|
+
const o = b(null), n = b(!1), s = b(zt), c = b(!1), p = b(0);
|
|
18027
|
+
a.value = r.recognizedText, Wt(() => {
|
|
18032
18028
|
o.value.focus();
|
|
18033
18029
|
});
|
|
18034
|
-
const
|
|
18030
|
+
const d = () => {
|
|
18035
18031
|
window.location.reload();
|
|
18036
|
-
},
|
|
18037
|
-
const
|
|
18038
|
-
s.value =
|
|
18039
|
-
},
|
|
18040
|
-
var
|
|
18032
|
+
}, l = (v) => {
|
|
18033
|
+
const g = v.length;
|
|
18034
|
+
s.value = zt - g, n.value = g >= zt;
|
|
18035
|
+
}, h = async () => {
|
|
18036
|
+
var v, g, m, f, S, C, y, w, A, _;
|
|
18041
18037
|
try {
|
|
18042
18038
|
if (r.question.trim().length < 1) {
|
|
18043
18039
|
console.log("Please enter answer!");
|
|
18044
18040
|
return;
|
|
18045
18041
|
}
|
|
18046
18042
|
c.value = !0, r.dotLoader = !0;
|
|
18047
|
-
const
|
|
18043
|
+
const R = {
|
|
18048
18044
|
question: r.question || r.recognizedText
|
|
18049
18045
|
};
|
|
18050
|
-
r.conversations.push(
|
|
18051
|
-
const
|
|
18052
|
-
|
|
18053
|
-
const
|
|
18046
|
+
r.conversations.push(R);
|
|
18047
|
+
const L = b("");
|
|
18048
|
+
L.value = r.question || r.recognizedText, r.question = "";
|
|
18049
|
+
const U = {
|
|
18054
18050
|
ohr_id: u.value,
|
|
18055
18051
|
past_messages: r.past_messages,
|
|
18056
|
-
question:
|
|
18052
|
+
question: L.value || r.recognizedText,
|
|
18057
18053
|
bandCode: r.band_code,
|
|
18058
18054
|
userGenomeFunction: r.genomeFunctionValue,
|
|
18059
18055
|
userGenomeRole: r.genomeRoleValue,
|
|
18060
18056
|
skillId: r.simulationSkill || "937e84ef-e95d-4327-9afe-e7be2bf420eb"
|
|
18061
|
-
},
|
|
18062
|
-
if (
|
|
18057
|
+
}, H = await Hn("/sqlTest", U);
|
|
18058
|
+
if (p.value += (g = (v = H.data) == null ? void 0 : v.body) == null ? void 0 : g.totalTokenCount, console.log("Token Count:", p.value), u.value = (f = (m = H.data) == null ? void 0 : m.body) == null ? void 0 : f.ohr, ((C = (S = H == null ? void 0 : H.data) == null ? void 0 : S.body) == null ? void 0 : C.answer) === "") {
|
|
18063
18059
|
console.log("in the if case calling api again");
|
|
18064
|
-
const
|
|
18065
|
-
r.addConversation((
|
|
18060
|
+
const V = await Hn("/sqlTest", U);
|
|
18061
|
+
r.addConversation((y = V.data) == null ? void 0 : y.body, "new");
|
|
18066
18062
|
} else
|
|
18067
|
-
console.log("in the else case"), r.addConversation((
|
|
18063
|
+
console.log("in the else case"), r.addConversation((w = H.data) == null ? void 0 : w.body, "new");
|
|
18068
18064
|
c.value = !1, r.dotLoader = !1, r.recognizedText = "";
|
|
18069
|
-
} catch (
|
|
18070
|
-
if (console.error(
|
|
18071
|
-
const
|
|
18072
|
-
console.log("Error found!"), console.error((
|
|
18065
|
+
} catch (R) {
|
|
18066
|
+
if (console.error(R), r.dotLoader = !1, Ie.isAxiosError(R)) {
|
|
18067
|
+
const L = R;
|
|
18068
|
+
console.log("Error found!"), console.error((A = L.response) == null ? void 0 : A.data), i.setError(((_ = L.response) == null ? void 0 : _.data).message);
|
|
18073
18069
|
} else
|
|
18074
18070
|
i.setError("There was an issue, please contact helpmate");
|
|
18075
18071
|
}
|
|
18076
18072
|
};
|
|
18077
|
-
return e({ sendQuestion:
|
|
18073
|
+
return e({ sendQuestion: h }), (v, g) => (D(), k("div", VC, [
|
|
18078
18074
|
P("div", $C, [
|
|
18079
18075
|
P("div", KC, [
|
|
18080
18076
|
P("div", JC, [
|
|
@@ -18089,7 +18085,7 @@ const Wt = () => {
|
|
|
18089
18085
|
P("div", ey, [
|
|
18090
18086
|
ty,
|
|
18091
18087
|
(D(), k("svg", {
|
|
18092
|
-
onClick:
|
|
18088
|
+
onClick: d,
|
|
18093
18089
|
class: "ml-2 h-7 w-7 rounded",
|
|
18094
18090
|
id: "newTopicDisable",
|
|
18095
18091
|
width: "7",
|
|
@@ -18105,11 +18101,11 @@ const Wt = () => {
|
|
|
18105
18101
|
c.value ? (D(), k("div", py, hy)) : (D(), k("div", oy, [
|
|
18106
18102
|
(D(), k("svg", {
|
|
18107
18103
|
disabled: O(r).beginFlag === !0,
|
|
18108
|
-
class:
|
|
18104
|
+
class: Lt([
|
|
18109
18105
|
O(r).beginFlag === !0 ? "cursor-not-allowed text-gray-600" : "cursor-pointer",
|
|
18110
18106
|
"bi bi-send ml-2 h-7 w-7 rotate-45 rounded"
|
|
18111
18107
|
]),
|
|
18112
|
-
onClick:
|
|
18108
|
+
onClick: g[0] || (g[0] = (m) => O(r).searchBoxdisable === !1 || O(r).beginFlag === !0 ? "" : h()),
|
|
18113
18109
|
xmlns: "http://www.w3.org/2000/svg",
|
|
18114
18110
|
fill: "currentColor",
|
|
18115
18111
|
viewBox: "0 0 16 16"
|
|
@@ -18119,15 +18115,15 @@ const Wt = () => {
|
|
|
18119
18115
|
P("div", vy, [
|
|
18120
18116
|
Yo(P("input", {
|
|
18121
18117
|
onKeyup: [
|
|
18122
|
-
|
|
18123
|
-
|
|
18118
|
+
g[1] || (g[1] = hp((m) => c.value ? "" : h(), ["enter"])),
|
|
18119
|
+
g[3] || (g[3] = (m) => l(O(r).question))
|
|
18124
18120
|
],
|
|
18125
18121
|
disabled: O(r).beginFlag === !0 || O(r).searchBoxdisable === !1,
|
|
18126
|
-
class:
|
|
18122
|
+
class: Lt([
|
|
18127
18123
|
O(r).beginFlag === !0 || O(r).searchBoxdisable === !1 ? "cursor-not-allowed bg-[#e5e7eb]" : "bg-white",
|
|
18128
18124
|
"fontFormattingAMA rounded-lg flex w-full border border-genpact-darkest-teal py-[18px] px-[70px]"
|
|
18129
18125
|
]),
|
|
18130
|
-
"onUpdate:modelValue":
|
|
18126
|
+
"onUpdate:modelValue": g[2] || (g[2] = (m) => O(r).question = m),
|
|
18131
18127
|
placeholder: "Write your answer here...",
|
|
18132
18128
|
type: "text",
|
|
18133
18129
|
ref_key: "AiSearch",
|
|
@@ -18144,7 +18140,7 @@ const Wt = () => {
|
|
|
18144
18140
|
]));
|
|
18145
18141
|
}
|
|
18146
18142
|
});
|
|
18147
|
-
const Sy = /* @__PURE__ */ $t(my, [["__scopeId", "data-v-
|
|
18143
|
+
const Sy = /* @__PURE__ */ $t(my, [["__scopeId", "data-v-3e7d283f"]]), go = (t) => (Kn("data-v-6c0980b5"), t = t(), Jn(), t), Cy = { class: "z-3 absolute bottom-0 mt-4 w-full bg-white px-2 md:px-6" }, yy = { class: "py-2" }, Py = { class: "flex" }, Ry = { class: "z-1 relative w-full" }, Ey = { class: "relative w-full" }, wy = { class: "absolute inset-y-0 right-0 flex items-center md:pr-8 pr-3" }, Ay = { key: 0 }, Iy = ["disabled"], _y = /* @__PURE__ */ go(() => /* @__PURE__ */ P("path", { d: "M15.854.146a.5.5 0 0 1 .11.54l-5.819 14.547a.75.75 0 0 1-1.329.124l-3.178-4.995L.643 7.184a.75.75 0 0 1 .124-1.33L15.314.037a.5.5 0 0 1 .54.11ZM6.636 10.07l2.761 4.338L14.13 2.576 6.636 10.07Zm6.787-8.201L1.591 6.602l4.339 2.76 7.494-7.493Z" }, null, -1)), Ty = [
|
|
18148
18144
|
_y
|
|
18149
18145
|
], by = {
|
|
18150
18146
|
key: 1,
|
|
@@ -18161,15 +18157,15 @@ const Sy = /* @__PURE__ */ $t(my, [["__scopeId", "data-v-dd2e329e"]]), go = (t)
|
|
|
18161
18157
|
], -1)), jy = /* @__PURE__ */ _e({
|
|
18162
18158
|
__name: "NewMDMQuestionSimulation",
|
|
18163
18159
|
setup(t) {
|
|
18164
|
-
const e = Ne(), r =
|
|
18160
|
+
const e = Ne(), r = Vt(), i = b("");
|
|
18165
18161
|
e.question = "";
|
|
18166
|
-
const u =
|
|
18167
|
-
i.value = e.recognizedText,
|
|
18162
|
+
const u = b(null), a = b(!1), o = b(zt), n = b(!1);
|
|
18163
|
+
i.value = e.recognizedText, Wt(() => {
|
|
18168
18164
|
u.value.focus();
|
|
18169
18165
|
});
|
|
18170
18166
|
const s = (p) => {
|
|
18171
18167
|
const d = p.length;
|
|
18172
|
-
o.value =
|
|
18168
|
+
o.value = zt - d, a.value = d >= zt;
|
|
18173
18169
|
}, c = async () => {
|
|
18174
18170
|
var p, d, l;
|
|
18175
18171
|
console.log("options fdsfdscdzxfsdv", e.recognizedText);
|
|
@@ -18183,7 +18179,7 @@ const Sy = /* @__PURE__ */ $t(my, [["__scopeId", "data-v-dd2e329e"]]), go = (t)
|
|
|
18183
18179
|
question: e.question || e.recognizedText
|
|
18184
18180
|
};
|
|
18185
18181
|
console.log("ques", h), e.conversations.push(h);
|
|
18186
|
-
const v =
|
|
18182
|
+
const v = b("");
|
|
18187
18183
|
v.value = e.question || e.recognizedText, e.question = "";
|
|
18188
18184
|
const g = {
|
|
18189
18185
|
assessmentId: e.simulationSkill,
|
|
@@ -18200,7 +18196,7 @@ const Sy = /* @__PURE__ */ $t(my, [["__scopeId", "data-v-dd2e329e"]]), go = (t)
|
|
|
18200
18196
|
};
|
|
18201
18197
|
console.log("Payload for MDM1==> ", g);
|
|
18202
18198
|
let m;
|
|
18203
|
-
|
|
18199
|
+
jt === "prod" ? m = "/ManualExportActivity" : m = "/fetchCompletionDemo";
|
|
18204
18200
|
const f = await Hn(m, g);
|
|
18205
18201
|
e.addConversation((p = f.data) == null ? void 0 : p.body, "new"), n.value = !1, e.dotLoader = !1, e.recognizedText = "";
|
|
18206
18202
|
} catch (h) {
|
|
@@ -18220,7 +18216,7 @@ const Sy = /* @__PURE__ */ $t(my, [["__scopeId", "data-v-dd2e329e"]]), go = (t)
|
|
|
18220
18216
|
n.value ? (D(), k("div", by, Dy)) : (D(), k("div", Ay, [
|
|
18221
18217
|
(D(), k("svg", {
|
|
18222
18218
|
disabled: O(e).beginFlag === !0,
|
|
18223
|
-
class:
|
|
18219
|
+
class: Lt([
|
|
18224
18220
|
O(e).beginFlag === !0 ? "cursor-not-allowed text-gray-600" : "cursor-pointer",
|
|
18225
18221
|
"bi bi-send ml-2 h-7 w-7 rotate-45 rounded"
|
|
18226
18222
|
]),
|
|
@@ -18238,7 +18234,7 @@ const Sy = /* @__PURE__ */ $t(my, [["__scopeId", "data-v-dd2e329e"]]), go = (t)
|
|
|
18238
18234
|
d[3] || (d[3] = (l) => s(O(e).question))
|
|
18239
18235
|
],
|
|
18240
18236
|
disabled: O(e).beginFlag === !0 || O(e).searchBoxdisable === !1,
|
|
18241
|
-
class:
|
|
18237
|
+
class: Lt([
|
|
18242
18238
|
O(e).beginFlag === !0 || O(e).searchBoxdisable === !1 ? "cursor-not-allowed bg-[#e5e7eb]" : "bg-white",
|
|
18243
18239
|
"fontFormattingAMA rounded-lg flex w-full border border-genpact-darkest-teal py-[18px] pl-[30px] pr-[70px]"
|
|
18244
18240
|
]),
|
|
@@ -18259,7 +18255,7 @@ const Sy = /* @__PURE__ */ $t(my, [["__scopeId", "data-v-dd2e329e"]]), go = (t)
|
|
|
18259
18255
|
]));
|
|
18260
18256
|
}
|
|
18261
18257
|
});
|
|
18262
|
-
const Ly = /* @__PURE__ */ $t(jy, [["__scopeId", "data-v-6c0980b5"]]), ai = (t) => (Kn("data-v-
|
|
18258
|
+
const Ly = /* @__PURE__ */ $t(jy, [["__scopeId", "data-v-6c0980b5"]]), ai = (t) => (Kn("data-v-2f3d502d"), t = t(), Jn(), t), xy = { class: "max-h-screen overflow-auto md:p-6 p-3 text-[#161916]" }, By = {
|
|
18263
18259
|
key: 0,
|
|
18264
18260
|
class: "flex flex-col items-center justify-center gap-4"
|
|
18265
18261
|
}, qy = /* @__PURE__ */ ai(() => /* @__PURE__ */ P("div", { class: "text-2xl font-[700]" }, "Assessment Access Required", -1)), Fy = /* @__PURE__ */ ai(() => /* @__PURE__ */ P("h3", { className: "text-lg font-medium my-6 text-center text-gray-500" }, " You don't have access to this assessment. Please contact to administrator ", -1)), Uy = [
|
|
@@ -18283,54 +18279,54 @@ const Ly = /* @__PURE__ */ $t(jy, [["__scopeId", "data-v-6c0980b5"]]), ai = (t)
|
|
|
18283
18279
|
}, tP = /* @__PURE__ */ _e({
|
|
18284
18280
|
__name: "AssessmentSimulation",
|
|
18285
18281
|
setup(t) {
|
|
18286
|
-
const e =
|
|
18287
|
-
|
|
18288
|
-
const u = Ne(), a =
|
|
18282
|
+
const e = b(!0), r = b(!1), i = b(!1);
|
|
18283
|
+
b(!1), b(!1);
|
|
18284
|
+
const u = Ne(), a = Vt(), o = b(""), n = b(""), s = b(""), c = b(""), p = localStorage.getItem("accessToken");
|
|
18289
18285
|
let d = "";
|
|
18290
|
-
const l =
|
|
18286
|
+
const l = b("");
|
|
18291
18287
|
let h = "", v = "";
|
|
18292
|
-
const g =
|
|
18288
|
+
const g = b(), m = b(!1), f = new URL(window.location.href), S = f.searchParams.get("skillId") || f.searchParams.get("assessmentId");
|
|
18293
18289
|
n.value = f.searchParams.get("mode") ?? "", u.simulationSkill = S ?? "";
|
|
18294
18290
|
const C = ["703331197", "703380812", "703331909", "703363051", "703319578"];
|
|
18295
|
-
|
|
18291
|
+
Wt(async () => {
|
|
18296
18292
|
e.value = !0, await y(), await A();
|
|
18297
18293
|
});
|
|
18298
18294
|
const y = async () => {
|
|
18299
|
-
var R,
|
|
18295
|
+
var R, L, U, H, ae, V, Ae;
|
|
18300
18296
|
try {
|
|
18301
18297
|
const Q = await qn(
|
|
18302
18298
|
`/getLearnerData?forSimulation=true&skillForSimulation=${u.simulationSkill}`
|
|
18303
18299
|
);
|
|
18304
|
-
u.initialize(Q.data), u.assessmentQuestion || (console.log("getAssessmentDetails========================>"), await w()), e.value = !1, u.simulationSkill === "937e84ef-e95d-4327-9afe-e7be2bf420eb" ? u.skillNameForSimulation = "GenpactNext" : u.simulationSkill === "32b7d6d8-f7a8-40a0-ab84-8784f25897ea" || u.simulationSkill === "32b7d6d8-f7a8-40a0-ab84-8784f25897ef" ? u.skillNameForSimulation = "Agentic AI" : u.simulationSkill === "7bd03cb6-79ad-4e2a-8a8b-88dc16147369" && (u.skillNameForSimulation = "
|
|
18300
|
+
u.initialize(Q.data), u.assessmentQuestion || (console.log("getAssessmentDetails========================>"), await w()), e.value = !1, u.simulationSkill === "937e84ef-e95d-4327-9afe-e7be2bf420eb" ? u.skillNameForSimulation = "GenpactNext" : u.simulationSkill === "32b7d6d8-f7a8-40a0-ab84-8784f25897ea" || u.simulationSkill === "32b7d6d8-f7a8-40a0-ab84-8784f25897ef" ? u.skillNameForSimulation = "Agentic AI" : u.simulationSkill === "7bd03cb6-79ad-4e2a-8a8b-88dc16147369" ? u.skillNameForSimulation = "Data" : u.simulationSkill === "25f8e44f-b83e-42d6-a168-b0e1fb83b26a" && (u.skillNameForSimulation = "SLDP Simulation");
|
|
18305
18301
|
} catch (Q) {
|
|
18306
18302
|
if (console.error(Q), e.value = !1, Ie.isAxiosError(Q) && ((R = Q.response) != null && R.status) || Q && typeof Q == "object" && "response" in Q && Q.response && typeof Q.response == "object" && "status" in Q.response && Q.response.status) {
|
|
18307
|
-
const
|
|
18308
|
-
if (console.log("Error found!"), console.error((
|
|
18309
|
-
c.value = (
|
|
18303
|
+
const K = Q;
|
|
18304
|
+
if (console.log("Error found!"), console.error((L = K.response) == null ? void 0 : L.data), ((U = K.response) == null ? void 0 : U.status) === 424 || ((H = K.response) == null ? void 0 : H.status) === 425 || ((ae = K.response) == null ? void 0 : ae.status) === 400) {
|
|
18305
|
+
c.value = (V = K.response) == null ? void 0 : V.status, console.log("errorCode value", c.value), i.value = !0;
|
|
18310
18306
|
return;
|
|
18311
18307
|
}
|
|
18312
|
-
a.setError(((Ae =
|
|
18308
|
+
a.setError(((Ae = K.response) == null ? void 0 : Ae.data).message);
|
|
18313
18309
|
} else
|
|
18314
18310
|
a.setError("There was an issue, please contact helpmate");
|
|
18315
18311
|
}
|
|
18316
18312
|
}, w = async () => {
|
|
18317
|
-
var R,
|
|
18313
|
+
var R, L, U, H, ae, V, Ae, Q, K, it, ci, ui, pi, di, li, hi, vi, fi, gi, mi, Si, Ci, yi, Pi, Ri, Ei, wi, Ai, Ii, _i, Ti, bi, Mi, Xt, Zt, Oi, Di, ki, Ni, zi, ji, Li, xi, It, ee, Bi, qi, Fi;
|
|
18318
18314
|
console.log("Start getAssessmentDetails");
|
|
18319
18315
|
try {
|
|
18320
|
-
|
|
18321
|
-
const
|
|
18322
|
-
o.value = (
|
|
18323
|
-
const Ue = (mi = (gi =
|
|
18324
|
-
if (u.mcqType = (Ci = (Si =
|
|
18316
|
+
jt === "prod" ? d = `https://api-v2.genpact.com/api/my-profile/assessment-master/getAssessmentDetailsById?id=${u.simulationSkill}` : d = `https://api-v2-dev.genpact.com/api/my-profile/assessment-master/getAssessmentDetailsById?id=${u.simulationSkill}`;
|
|
18317
|
+
const T = await qn(d);
|
|
18318
|
+
o.value = (L = (R = T == null ? void 0 : T.data) == null ? void 0 : R.data) == null ? void 0 : L.name, u.skillNameForSimulation = o.value, u.generatedPrompt = (H = (U = T == null ? void 0 : T.data) == null ? void 0 : U.data) == null ? void 0 : H.generatedPrompt, u.assessmentType = (V = (ae = T == null ? void 0 : T.data) == null ? void 0 : ae.data) == null ? void 0 : V.assessmentType, s.value = (Q = (Ae = T == null ? void 0 : T.data) == null ? void 0 : Ae.data) == null ? void 0 : Q.status, m.value = (it = (K = T == null ? void 0 : T.data) == null ? void 0 : K.data) == null ? void 0 : it.editMode, u.empSeniority = (ui = (ci = T == null ? void 0 : T.data) == null ? void 0 : ci.data) == null ? void 0 : ui.empSeniority, u.functionRole = (di = (pi = T == null ? void 0 : T.data) == null ? void 0 : pi.data) == null ? void 0 : di.functionRole, h = (hi = (li = T == null ? void 0 : T.data) == null ? void 0 : li.data) == null ? void 0 : hi.accessBand, v = (fi = (vi = T == null ? void 0 : T.data) == null ? void 0 : vi.data) == null ? void 0 : fi.accessOhrList;
|
|
18319
|
+
const Ue = (mi = (gi = T == null ? void 0 : T.data) == null ? void 0 : gi.data) == null ? void 0 : mi.createdBy;
|
|
18320
|
+
if (u.mcqType = (Ci = (Si = T == null ? void 0 : T.data) == null ? void 0 : Si.data) == null ? void 0 : Ci.mcqTypes, u.storeFinalFeedback = (Pi = (yi = T == null ? void 0 : T.data) == null ? void 0 : yi.data) == null ? void 0 : Pi.storeFinalFeedback, u.storeFinalScore = (Ei = (Ri = T == null ? void 0 : T.data) == null ? void 0 : Ri.data) == null ? void 0 : Ei.storeFinalScore, s.value === "inactive")
|
|
18325
18321
|
r.value = !0;
|
|
18326
18322
|
else if (s.value === "draft")
|
|
18327
18323
|
n.value !== ba.DRAFT && (r.value = !0);
|
|
18328
18324
|
else if (s.value === "active" && m.value && n.value === ba.DRAFT) {
|
|
18329
|
-
|
|
18330
|
-
const
|
|
18331
|
-
u.generatedPrompt = (Ai = (wi =
|
|
18325
|
+
jt === "prod" ? d = `https://api-v2.genpact.com/api/my-profile/assessment-master/getDraftAssessmentDetailsById?assessmentId=${u.simulationSkill}` : d = `https://api-v2-dev.genpact.com/api/my-profile/assessment-master/getDraftAssessmentDetailsById?assessmentId=${u.simulationSkill}`;
|
|
18326
|
+
const W = await qn(d);
|
|
18327
|
+
u.generatedPrompt = (Ai = (wi = W == null ? void 0 : W.data) == null ? void 0 : wi.data) == null ? void 0 : Ai.generatedPrompt, u.assessmentType = (_i = (Ii = W == null ? void 0 : W.data) == null ? void 0 : Ii.data) == null ? void 0 : _i.assessmentType, u.empSeniority = (bi = (Ti = W == null ? void 0 : W.data) == null ? void 0 : Ti.data) == null ? void 0 : bi.empSeniority, u.functionRole = (Xt = (Mi = W == null ? void 0 : W.data) == null ? void 0 : Mi.data) == null ? void 0 : Xt.functionRole, u.storeFinalFeedback = (Oi = (Zt = W == null ? void 0 : W.data) == null ? void 0 : Zt.data) == null ? void 0 : Oi.storeFinalFeedback, u.storeFinalScore = (ki = (Di = W == null ? void 0 : W.data) == null ? void 0 : Di.data) == null ? void 0 : ki.storeFinalScore, h = (zi = (Ni = W == null ? void 0 : W.data) == null ? void 0 : Ni.data) == null ? void 0 : zi.accessBand, v = (Li = (ji = W == null ? void 0 : W.data) == null ? void 0 : ji.data) == null ? void 0 : Li.accessOhrList;
|
|
18332
18328
|
}
|
|
18333
|
-
const mo = u == null ? void 0 : u.band_code, Ui = (xi = h == null ? void 0 : h.split(",")) == null ? void 0 : xi.map((
|
|
18329
|
+
const mo = u == null ? void 0 : u.band_code, Ui = (xi = h == null ? void 0 : h.split(",")) == null ? void 0 : xi.map((W) => W.trim());
|
|
18334
18330
|
if (Ue === (u == null ? void 0 : u.ohr) || C.includes(u == null ? void 0 : u.ohr))
|
|
18335
18331
|
console.log("User has access to this assessment.");
|
|
18336
18332
|
else {
|
|
@@ -18356,9 +18352,9 @@ const Ly = /* @__PURE__ */ $t(jy, [["__scopeId", "data-v-6c0980b5"]]), ai = (t)
|
|
|
18356
18352
|
};
|
|
18357
18353
|
}
|
|
18358
18354
|
console.log("end getAssessmentDetails");
|
|
18359
|
-
} catch (
|
|
18360
|
-
if (console.error(
|
|
18361
|
-
const Ue =
|
|
18355
|
+
} catch (T) {
|
|
18356
|
+
if (console.error(T), e.value = !1, Ie.isAxiosError(T) && ((It = T.response) != null && It.status) || T && typeof T == "object" && "response" in T && T.response && typeof T.response == "object" && "status" in T.response && T.response.status) {
|
|
18357
|
+
const Ue = T;
|
|
18362
18358
|
if (console.log("Error found!"), console.error((ee = Ue.response) == null ? void 0 : ee.data), ((Bi = Ue.response) == null ? void 0 : Bi.status) === 424 || ((qi = Ue.response) == null ? void 0 : qi.status) === 425) {
|
|
18363
18359
|
i.value = !0;
|
|
18364
18360
|
return;
|
|
@@ -18368,10 +18364,10 @@ const Ly = /* @__PURE__ */ $t(jy, [["__scopeId", "data-v-6c0980b5"]]), ai = (t)
|
|
|
18368
18364
|
a.setError("There was an issue, please contact helpmate");
|
|
18369
18365
|
}
|
|
18370
18366
|
}, A = async () => {
|
|
18371
|
-
var R,
|
|
18367
|
+
var R, L, U, H, ae, V, Ae, Q;
|
|
18372
18368
|
try {
|
|
18373
|
-
|
|
18374
|
-
const
|
|
18369
|
+
jt === "prod" ? l.value = "https://api-v2.genpact.com/api/delphi/v2/myprofile" : l.value = "https://api-v2-dev.genpact.com/api/delphi/v2/myprofile";
|
|
18370
|
+
const K = await Ie({
|
|
18375
18371
|
url: l.value,
|
|
18376
18372
|
headers: {
|
|
18377
18373
|
authorization: `Bearer ${p}`,
|
|
@@ -18379,19 +18375,19 @@ const Ly = /* @__PURE__ */ $t(jy, [["__scopeId", "data-v-6c0980b5"]]), ai = (t)
|
|
|
18379
18375
|
},
|
|
18380
18376
|
method: "get"
|
|
18381
18377
|
});
|
|
18382
|
-
u.genomeFunctionValue = (U = (
|
|
18383
|
-
} catch (
|
|
18384
|
-
if (console.error(
|
|
18385
|
-
const it =
|
|
18378
|
+
u.genomeFunctionValue = (U = (L = (R = K == null ? void 0 : K.data) == null ? void 0 : R.role_function) == null ? void 0 : L.function) == null ? void 0 : U.name, u.genomeRoleValue = (V = (ae = (H = K == null ? void 0 : K.data) == null ? void 0 : H.role_function) == null ? void 0 : ae.role) == null ? void 0 : V.name;
|
|
18379
|
+
} catch (K) {
|
|
18380
|
+
if (console.error(K), e.value = !1, Ie.isAxiosError(K)) {
|
|
18381
|
+
const it = K;
|
|
18386
18382
|
console.log("Error found!"), console.error((Ae = it.response) == null ? void 0 : Ae.data), a.setError(((Q = it.response) == null ? void 0 : Q.data).message);
|
|
18387
18383
|
} else
|
|
18388
18384
|
a.setError("There was an issue, please contact helpmate");
|
|
18389
18385
|
}
|
|
18390
|
-
},
|
|
18386
|
+
}, _ = () => {
|
|
18391
18387
|
var R;
|
|
18392
18388
|
(R = g.value) == null || R.sendQuestion();
|
|
18393
18389
|
};
|
|
18394
|
-
return (R,
|
|
18390
|
+
return (R, L) => (D(), k("section", null, [
|
|
18395
18391
|
ye(pp, { "is-visible": i.value }, {
|
|
18396
18392
|
default: dp(() => [
|
|
18397
18393
|
P("div", xy, [
|
|
@@ -18410,9 +18406,9 @@ const Ly = /* @__PURE__ */ $t(jy, [["__scopeId", "data-v-6c0980b5"]]), ai = (t)
|
|
|
18410
18406
|
P("div", Qy, [
|
|
18411
18407
|
P("div", Xy, [
|
|
18412
18408
|
P("div", Zy, [
|
|
18413
|
-
ye(Nh, { onCallQuestion:
|
|
18409
|
+
ye(Nh, { onCallQuestion: _ }),
|
|
18414
18410
|
P("div", {
|
|
18415
|
-
class:
|
|
18411
|
+
class: Lt(O(u).showVoiceComponent === !0 ? "mt-[160px]" : "mt-[120px]")
|
|
18416
18412
|
}, null, 2)
|
|
18417
18413
|
]),
|
|
18418
18414
|
O(u).assessmentQuestion ? (D(), k("div", Yy, [
|
|
@@ -18430,7 +18426,7 @@ const Ly = /* @__PURE__ */ $t(jy, [["__scopeId", "data-v-6c0980b5"]]), ai = (t)
|
|
|
18430
18426
|
]));
|
|
18431
18427
|
}
|
|
18432
18428
|
});
|
|
18433
|
-
const MR = /* @__PURE__ */ $t(tP, [["__scopeId", "data-v-
|
|
18429
|
+
const MR = /* @__PURE__ */ $t(tP, [["__scopeId", "data-v-2f3d502d"]]);
|
|
18434
18430
|
export {
|
|
18435
18431
|
MR as default
|
|
18436
18432
|
};
|