iss-library-digital-video-v3 0.7.4 → 0.7.5-hotfix.1

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.
@@ -1,4 +1,4 @@
1
- import { ref as b, reactive as Oe, computed as UA, watch as ve, onMounted as Ie, onBeforeUnmount as Ge, createElementBlock as Te, openBlock as Ue, withDirectives as yA, createElementVNode as YA, vShow as JA } from "vue";
1
+ import { ref as F, reactive as Oe, computed as yA, watch as ve, onMounted as Ie, onBeforeUnmount as Te, createElementBlock as Ge, openBlock as Ue, createElementVNode as YA, normalizeClass as JA } from "vue";
2
2
  var gA, ye = new Uint8Array(16);
3
3
  function Ye() {
4
4
  if (!gA && (gA = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), !gA))
@@ -10,8 +10,8 @@ function ze(A) {
10
10
  return typeof A == "string" && Je.test(A);
11
11
  }
12
12
  var Z = [];
13
- for (var MA = 0; MA < 256; ++MA)
14
- Z.push((MA + 256).toString(16).substr(1));
13
+ for (var pA = 0; pA < 256; ++pA)
14
+ Z.push((pA + 256).toString(16).substr(1));
15
15
  function Pe(A) {
16
16
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, t = (Z[A[e + 0]] + Z[A[e + 1]] + Z[A[e + 2]] + Z[A[e + 3]] + "-" + Z[A[e + 4]] + Z[A[e + 5]] + "-" + Z[A[e + 6]] + Z[A[e + 7]] + "-" + Z[A[e + 8]] + Z[A[e + 9]] + "-" + Z[A[e + 10]] + Z[A[e + 11]] + Z[A[e + 12]] + Z[A[e + 13]] + Z[A[e + 14]] + Z[A[e + 15]]).toLowerCase();
17
17
  if (!ze(t))
@@ -145,22 +145,22 @@ function ne(A, e) {
145
145
  return A.apply(e, arguments);
146
146
  };
147
147
  }
148
- const { toString: Le } = Object.prototype, { getPrototypeOf: vA } = Object, { iterator: dA, toStringTag: oe } = Symbol, QA = /* @__PURE__ */ ((A) => (e) => {
148
+ const { toString: Le } = Object.prototype, { getPrototypeOf: IA } = Object, { iterator: dA, toStringTag: oe } = Symbol, QA = /* @__PURE__ */ ((A) => (e) => {
149
149
  const t = Le.call(e);
150
150
  return A[t] || (A[t] = t.slice(8, -1).toLowerCase());
151
- })(/* @__PURE__ */ Object.create(null)), J = (A) => (A = A.toLowerCase(), (e) => QA(e) === A), DA = (A) => (e) => typeof e === A, { isArray: K } = Array, j = DA("undefined");
151
+ })(/* @__PURE__ */ Object.create(null)), J = (A) => (A = A.toLowerCase(), (e) => QA(e) === A), DA = (A) => (e) => typeof e === A, { isArray: _ } = Array, K = DA("undefined");
152
152
  function rA(A) {
153
- return A !== null && !j(A) && A.constructor !== null && !j(A.constructor) && G(A.constructor.isBuffer) && A.constructor.isBuffer(A);
153
+ return A !== null && !K(A) && A.constructor !== null && !K(A.constructor) && T(A.constructor.isBuffer) && A.constructor.isBuffer(A);
154
154
  }
155
155
  const re = J("ArrayBuffer");
156
156
  function xe(A) {
157
157
  let e;
158
158
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(A) : e = A && A.buffer && re(A.buffer), e;
159
159
  }
160
- const qe = DA("string"), G = DA("function"), se = DA("number"), sA = (A) => A !== null && typeof A == "object", je = (A) => A === !0 || A === !1, wA = (A) => {
160
+ const qe = DA("string"), T = DA("function"), se = DA("number"), sA = (A) => A !== null && typeof A == "object", je = (A) => A === !0 || A === !1, wA = (A) => {
161
161
  if (QA(A) !== "object")
162
162
  return !1;
163
- const e = vA(A);
163
+ const e = IA(A);
164
164
  return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(oe in A) && !(dA in A);
165
165
  }, Ke = (A) => {
166
166
  if (!sA(A) || rA(A))
@@ -170,16 +170,16 @@ const qe = DA("string"), G = DA("function"), se = DA("number"), sA = (A) => A !=
170
170
  } catch {
171
171
  return !1;
172
172
  }
173
- }, _e = J("Date"), $e = J("File"), At = J("Blob"), et = J("FileList"), tt = (A) => sA(A) && G(A.pipe), nt = (A) => {
173
+ }, _e = J("Date"), $e = J("File"), At = J("Blob"), et = J("FileList"), tt = (A) => sA(A) && T(A.pipe), nt = (A) => {
174
174
  let e;
175
- return A && (typeof FormData == "function" && A instanceof FormData || G(A.append) && ((e = QA(A)) === "formdata" || // detect form-data instance
176
- e === "object" && G(A.toString) && A.toString() === "[object FormData]"));
175
+ return A && (typeof FormData == "function" && A instanceof FormData || T(A.append) && ((e = QA(A)) === "formdata" || // detect form-data instance
176
+ e === "object" && T(A.toString) && A.toString() === "[object FormData]"));
177
177
  }, ot = J("URLSearchParams"), [rt, st, Bt, at] = ["ReadableStream", "Request", "Response", "Headers"].map(J), it = (A) => A.trim ? A.trim() : A.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
178
178
  function BA(A, e, { allOwnKeys: t = !1 } = {}) {
179
179
  if (A === null || typeof A > "u")
180
180
  return;
181
181
  let n, o;
182
- if (typeof A != "object" && (A = [A]), K(A))
182
+ if (typeof A != "object" && (A = [A]), _(A))
183
183
  for (n = 0, o = A.length; n < o; n++)
184
184
  e.call(null, A[n], n, A);
185
185
  else {
@@ -202,18 +202,18 @@ function Be(A, e) {
202
202
  return o;
203
203
  return null;
204
204
  }
205
- const H = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ae = (A) => !j(A) && A !== H;
206
- function bA() {
205
+ const H = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ae = (A) => !K(A) && A !== H;
206
+ function FA() {
207
207
  const { caseless: A, skipUndefined: e } = ae(this) && this || {}, t = {}, n = (o, s) => {
208
208
  const r = A && Be(t, s) || s;
209
- wA(t[r]) && wA(o) ? t[r] = bA(t[r], o) : wA(o) ? t[r] = bA({}, o) : K(o) ? t[r] = o.slice() : (!e || !j(o)) && (t[r] = o);
209
+ wA(t[r]) && wA(o) ? t[r] = FA(t[r], o) : wA(o) ? t[r] = FA({}, o) : _(o) ? t[r] = o.slice() : (!e || !K(o)) && (t[r] = o);
210
210
  };
211
211
  for (let o = 0, s = arguments.length; o < s; o++)
212
212
  arguments[o] && BA(arguments[o], n);
213
213
  return t;
214
214
  }
215
215
  const Et = (A, e, t, { allOwnKeys: n } = {}) => (BA(e, (o, s) => {
216
- t && G(o) ? A[s] = ne(o, t) : A[s] = o;
216
+ t && T(o) ? A[s] = ne(o, t) : A[s] = o;
217
217
  }, { allOwnKeys: n }), A), ct = (A) => (A.charCodeAt(0) === 65279 && (A = A.slice(1)), A), gt = (A, e, t, n) => {
218
218
  A.prototype = Object.create(e.prototype, n), A.prototype.constructor = A, Object.defineProperty(A, "super", {
219
219
  value: e.prototype
@@ -225,7 +225,7 @@ const Et = (A, e, t, { allOwnKeys: n } = {}) => (BA(e, (o, s) => {
225
225
  do {
226
226
  for (o = Object.getOwnPropertyNames(A), s = o.length; s-- > 0; )
227
227
  r = o[s], (!n || n(r, A, e)) && !a[r] && (e[r] = A[r], a[r] = !0);
228
- A = t !== !1 && vA(A);
228
+ A = t !== !1 && IA(A);
229
229
  } while (A && (!t || t(A, e)) && A !== Object.prototype);
230
230
  return e;
231
231
  }, wt = (A, e, t) => {
@@ -234,14 +234,14 @@ const Et = (A, e, t, { allOwnKeys: n } = {}) => (BA(e, (o, s) => {
234
234
  return n !== -1 && n === t;
235
235
  }, ut = (A) => {
236
236
  if (!A) return null;
237
- if (K(A)) return A;
237
+ if (_(A)) return A;
238
238
  let e = A.length;
239
239
  if (!se(e)) return null;
240
240
  const t = new Array(e);
241
241
  for (; e-- > 0; )
242
242
  t[e] = A[e];
243
243
  return t;
244
- }, Ct = /* @__PURE__ */ ((A) => (e) => A && e instanceof A)(typeof Uint8Array < "u" && vA(Uint8Array)), ft = (A, e) => {
244
+ }, Ct = /* @__PURE__ */ ((A) => (e) => A && e instanceof A)(typeof Uint8Array < "u" && IA(Uint8Array)), ft = (A, e) => {
245
245
  const n = (A && A[dA]).call(A);
246
246
  let o;
247
247
  for (; (o = n.next()) && !o.done; ) {
@@ -267,10 +267,10 @@ const Et = (A, e, t, { allOwnKeys: n } = {}) => (BA(e, (o, s) => {
267
267
  }), Object.defineProperties(A, n);
268
268
  }, mt = (A) => {
269
269
  ie(A, (e, t) => {
270
- if (G(A) && ["arguments", "caller", "callee"].indexOf(t) !== -1)
270
+ if (T(A) && ["arguments", "caller", "callee"].indexOf(t) !== -1)
271
271
  return !1;
272
272
  const n = A[t];
273
- if (G(n)) {
273
+ if (T(n)) {
274
274
  if (e.enumerable = !1, "writable" in e) {
275
275
  e.writable = !1;
276
276
  return;
@@ -286,11 +286,11 @@ const Et = (A, e, t, { allOwnKeys: n } = {}) => (BA(e, (o, s) => {
286
286
  t[s] = !0;
287
287
  });
288
288
  };
289
- return K(A) ? n(A) : n(String(A).split(e)), t;
289
+ return _(A) ? n(A) : n(String(A).split(e)), t;
290
290
  }, pt = () => {
291
291
  }, Rt = (A, e) => A != null && Number.isFinite(A = +A) ? A : e;
292
292
  function St(A) {
293
- return !!(A && G(A.append) && A[oe] === "FormData" && A[dA]);
293
+ return !!(A && T(A.append) && A[oe] === "FormData" && A[dA]);
294
294
  }
295
295
  const bt = (A) => {
296
296
  const e = new Array(10), t = (n, o) => {
@@ -301,25 +301,25 @@ const bt = (A) => {
301
301
  return n;
302
302
  if (!("toJSON" in n)) {
303
303
  e[o] = n;
304
- const s = K(n) ? [] : {};
304
+ const s = _(n) ? [] : {};
305
305
  return BA(n, (r, a) => {
306
306
  const g = t(r, o + 1);
307
- !j(g) && (s[a] = g);
307
+ !K(g) && (s[a] = g);
308
308
  }), e[o] = void 0, s;
309
309
  }
310
310
  }
311
311
  return n;
312
312
  };
313
313
  return t(A, 0);
314
- }, Ft = J("AsyncFunction"), Zt = (A) => A && (sA(A) || G(A)) && G(A.then) && G(A.catch), Ee = ((A, e) => A ? setImmediate : e ? ((t, n) => (H.addEventListener("message", ({ source: o, data: s }) => {
314
+ }, Ft = J("AsyncFunction"), Zt = (A) => A && (sA(A) || T(A)) && T(A.then) && T(A.catch), Ee = ((A, e) => A ? setImmediate : e ? ((t, n) => (H.addEventListener("message", ({ source: o, data: s }) => {
315
315
  o === H && s === t && n.length && n.shift()();
316
316
  }, !1), (o) => {
317
317
  n.push(o), H.postMessage(t, "*");
318
318
  }))(`axios@${Math.random()}`, []) : (t) => setTimeout(t))(
319
319
  typeof setImmediate == "function",
320
- G(H.postMessage)
321
- ), kt = typeof queueMicrotask < "u" ? queueMicrotask.bind(H) : typeof process < "u" && process.nextTick || Ee, Ot = (A) => A != null && G(A[dA]), B = {
322
- isArray: K,
320
+ T(H.postMessage)
321
+ ), kt = typeof queueMicrotask < "u" ? queueMicrotask.bind(H) : typeof process < "u" && process.nextTick || Ee, Ot = (A) => A != null && T(A[dA]), B = {
322
+ isArray: _,
323
323
  isArrayBuffer: re,
324
324
  isBuffer: rA,
325
325
  isFormData: nt,
@@ -334,18 +334,18 @@ const bt = (A) => {
334
334
  isRequest: st,
335
335
  isResponse: Bt,
336
336
  isHeaders: at,
337
- isUndefined: j,
337
+ isUndefined: K,
338
338
  isDate: _e,
339
339
  isFile: $e,
340
340
  isBlob: At,
341
341
  isRegExp: ht,
342
- isFunction: G,
342
+ isFunction: T,
343
343
  isStream: tt,
344
344
  isURLSearchParams: ot,
345
345
  isTypedArray: Ct,
346
346
  isFileList: et,
347
347
  forEach: BA,
348
- merge: bA,
348
+ merge: FA,
349
349
  extend: Et,
350
350
  trim: it,
351
351
  stripBOM: ct,
@@ -431,7 +431,7 @@ f.from = (A, e, t, n, o, s) => {
431
431
  return f.call(r, a, g, t, n, o), A && r.cause == null && Object.defineProperty(r, "cause", { value: A, configurable: !0 }), r.name = A && A.name || "Error", s && Object.assign(r, s), r;
432
432
  };
433
433
  const vt = null;
434
- function FA(A) {
434
+ function ZA(A) {
435
435
  return B.isPlainObject(A) || B.isArray(A);
436
436
  }
437
437
  function le(A) {
@@ -443,9 +443,9 @@ function PA(A, e, t) {
443
443
  }).join(t ? "." : "") : e;
444
444
  }
445
445
  function It(A) {
446
- return B.isArray(A) && !A.some(FA);
446
+ return B.isArray(A) && !A.some(ZA);
447
447
  }
448
- const Gt = B.toFlatObject(B, {}, null, function(e) {
448
+ const Tt = B.toFlatObject(B, {}, null, function(e) {
449
449
  return /^is[A-Z]/.test(e);
450
450
  });
451
451
  function hA(A, e, t) {
@@ -472,44 +472,44 @@ function hA(A, e, t) {
472
472
  return B.isArrayBuffer(c) || B.isTypedArray(c) ? g && typeof Blob == "function" ? new Blob([c]) : Buffer.from(c) : c;
473
473
  }
474
474
  function i(c, u, l) {
475
- let D = c;
475
+ let h = c;
476
476
  if (c && !l && typeof c == "object") {
477
477
  if (B.endsWith(u, "{}"))
478
478
  u = n ? u : u.slice(0, -2), c = JSON.stringify(c);
479
- else if (B.isArray(c) && It(c) || (B.isFileList(c) || B.endsWith(u, "[]")) && (D = B.toArray(c)))
480
- return u = le(u), D.forEach(function(M, R) {
481
- !(B.isUndefined(M) || M === null) && e.append(
479
+ else if (B.isArray(c) && It(c) || (B.isFileList(c) || B.endsWith(u, "[]")) && (h = B.toArray(c)))
480
+ return u = le(u), h.forEach(function(m, p) {
481
+ !(B.isUndefined(m) || m === null) && e.append(
482
482
  // eslint-disable-next-line no-nested-ternary
483
- r === !0 ? PA([u], R, s) : r === null ? u : u + "[]",
484
- E(M)
483
+ r === !0 ? PA([u], p, s) : r === null ? u : u + "[]",
484
+ E(m)
485
485
  );
486
486
  }), !1;
487
487
  }
488
- return FA(c) ? !0 : (e.append(PA(l, u, s), E(c)), !1);
488
+ return ZA(c) ? !0 : (e.append(PA(l, u, s), E(c)), !1);
489
489
  }
490
- const w = [], C = Object.assign(Gt, {
490
+ const w = [], C = Object.assign(Tt, {
491
491
  defaultVisitor: i,
492
492
  convertValue: E,
493
- isVisitable: FA
493
+ isVisitable: ZA
494
494
  });
495
- function h(c, u) {
495
+ function D(c, u) {
496
496
  if (!B.isUndefined(c)) {
497
497
  if (w.indexOf(c) !== -1)
498
498
  throw Error("Circular reference detected in " + u.join("."));
499
- w.push(c), B.forEach(c, function(D, S) {
500
- (!(B.isUndefined(D) || D === null) && o.call(
499
+ w.push(c), B.forEach(c, function(h, S) {
500
+ (!(B.isUndefined(h) || h === null) && o.call(
501
501
  e,
502
- D,
502
+ h,
503
503
  B.isString(S) ? S.trim() : S,
504
504
  u,
505
505
  C
506
- )) === !0 && h(D, u ? u.concat(S) : [S]);
506
+ )) === !0 && D(h, u ? u.concat(S) : [S]);
507
507
  }), w.pop();
508
508
  }
509
509
  }
510
510
  if (!B.isObject(A))
511
511
  throw new TypeError("data must be an object");
512
- return h(A), e;
512
+ return D(A), e;
513
513
  }
514
514
  function NA(A) {
515
515
  const e = {
@@ -525,10 +525,10 @@ function NA(A) {
525
525
  return e[n];
526
526
  });
527
527
  }
528
- function IA(A, e) {
528
+ function TA(A, e) {
529
529
  this._pairs = [], A && hA(A, this, e);
530
530
  }
531
- const we = IA.prototype;
531
+ const we = TA.prototype;
532
532
  we.append = function(e, t) {
533
533
  this._pairs.push([e, t]);
534
534
  };
@@ -540,19 +540,19 @@ we.toString = function(e) {
540
540
  return t(o[0]) + "=" + t(o[1]);
541
541
  }, "").join("&");
542
542
  };
543
- function Tt(A) {
543
+ function Gt(A) {
544
544
  return encodeURIComponent(A).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
545
545
  }
546
546
  function ue(A, e, t) {
547
547
  if (!e)
548
548
  return A;
549
- const n = t && t.encode || Tt;
549
+ const n = t && t.encode || Gt;
550
550
  B.isFunction(t) && (t = {
551
551
  serialize: t
552
552
  });
553
553
  const o = t && t.serialize;
554
554
  let s;
555
- if (o ? s = o(e, t) : s = B.isURLSearchParams(e) ? e.toString() : new IA(e, t).toString(n), s) {
555
+ if (o ? s = o(e, t) : s = B.isURLSearchParams(e) ? e.toString() : new TA(e, t).toString(n), s) {
556
556
  const r = A.indexOf("#");
557
557
  r !== -1 && (A = A.slice(0, r)), A += (A.indexOf("?") === -1 ? "?" : "&") + s;
558
558
  }
@@ -616,7 +616,7 @@ const Ce = {
616
616
  silentJSONParsing: !0,
617
617
  forcedJSONParsing: !0,
618
618
  clarifyTimeoutError: !1
619
- }, Ut = typeof URLSearchParams < "u" ? URLSearchParams : IA, yt = typeof FormData < "u" ? FormData : null, Yt = typeof Blob < "u" ? Blob : null, Jt = {
619
+ }, Ut = typeof URLSearchParams < "u" ? URLSearchParams : TA, yt = typeof FormData < "u" ? FormData : null, Yt = typeof Blob < "u" ? Blob : null, Jt = {
620
620
  isBrowser: !0,
621
621
  classes: {
622
622
  URLSearchParams: Ut,
@@ -624,13 +624,13 @@ const Ce = {
624
624
  Blob: Yt
625
625
  },
626
626
  protocols: ["http", "https", "file", "blob", "url", "data"]
627
- }, GA = typeof window < "u" && typeof document < "u", ZA = typeof navigator == "object" && navigator || void 0, zt = GA && (!ZA || ["ReactNative", "NativeScript", "NS"].indexOf(ZA.product) < 0), Pt = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
627
+ }, GA = typeof window < "u" && typeof document < "u", kA = typeof navigator == "object" && navigator || void 0, zt = GA && (!kA || ["ReactNative", "NativeScript", "NS"].indexOf(kA.product) < 0), Pt = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
628
628
  self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Nt = GA && window.location.href || "http://localhost", Vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
629
629
  __proto__: null,
630
630
  hasBrowserEnv: GA,
631
631
  hasStandardBrowserEnv: zt,
632
632
  hasStandardBrowserWebWorkerEnv: Pt,
633
- navigator: ZA,
633
+ navigator: kA,
634
634
  origin: Nt
635
635
  }, Symbol.toStringTag, { value: "Module" })), O = {
636
636
  ...Vt,
@@ -790,7 +790,7 @@ function jt(A) {
790
790
  return e;
791
791
  }
792
792
  const Kt = (A) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(A.trim());
793
- function pA(A, e, t, n, o) {
793
+ function RA(A, e, t, n, o) {
794
794
  if (B.isFunction(n))
795
795
  return n.call(this, e, t);
796
796
  if (o && (e = t), !!B.isString(e)) {
@@ -814,7 +814,7 @@ function $t(A, e) {
814
814
  });
815
815
  });
816
816
  }
817
- let T = class {
817
+ let G = class {
818
818
  constructor(e) {
819
819
  e && this.set(e);
820
820
  }
@@ -864,7 +864,7 @@ let T = class {
864
864
  has(e, t) {
865
865
  if (e = nA(e), e) {
866
866
  const n = B.findKey(this, e);
867
- return !!(n && this[n] !== void 0 && (!t || pA(this, this[n], n, t)));
867
+ return !!(n && this[n] !== void 0 && (!t || RA(this, this[n], n, t)));
868
868
  }
869
869
  return !1;
870
870
  }
@@ -874,7 +874,7 @@ let T = class {
874
874
  function s(r) {
875
875
  if (r = nA(r), r) {
876
876
  const a = B.findKey(n, r);
877
- a && (!t || pA(n, n[a], a, t)) && (delete n[a], o = !0);
877
+ a && (!t || RA(n, n[a], a, t)) && (delete n[a], o = !0);
878
878
  }
879
879
  }
880
880
  return B.isArray(e) ? e.forEach(s) : s(e), o;
@@ -884,7 +884,7 @@ let T = class {
884
884
  let n = t.length, o = !1;
885
885
  for (; n--; ) {
886
886
  const s = t[n];
887
- (!e || pA(this, this[s], s, e, !0)) && (delete this[s], o = !0);
887
+ (!e || RA(this, this[s], s, e, !0)) && (delete this[s], o = !0);
888
888
  }
889
889
  return o;
890
890
  }
@@ -940,8 +940,8 @@ let T = class {
940
940
  return B.isArray(e) ? e.forEach(s) : s(e), this;
941
941
  }
942
942
  };
943
- T.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
944
- B.reduceDescriptors(T.prototype, ({ value: A }, e) => {
943
+ G.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
944
+ B.reduceDescriptors(G.prototype, ({ value: A }, e) => {
945
945
  let t = e[0].toUpperCase() + e.slice(1);
946
946
  return {
947
947
  get: () => A,
@@ -950,9 +950,9 @@ B.reduceDescriptors(T.prototype, ({ value: A }, e) => {
950
950
  }
951
951
  };
952
952
  });
953
- B.freezeMethods(T);
954
- function RA(A, e) {
955
- const t = this || aA, n = e || t, o = T.from(n.headers);
953
+ B.freezeMethods(G);
954
+ function SA(A, e) {
955
+ const t = this || aA, n = e || t, o = G.from(n.headers);
956
956
  let s = n.data;
957
957
  return B.forEach(A, function(a) {
958
958
  s = a.call(t, s, o.normalize(), e ? e.status : void 0);
@@ -961,10 +961,10 @@ function RA(A, e) {
961
961
  function de(A) {
962
962
  return !!(A && A.__CANCEL__);
963
963
  }
964
- function _(A, e, t) {
964
+ function $(A, e, t) {
965
965
  f.call(this, A ?? "canceled", f.ERR_CANCELED, e, t), this.name = "CanceledError";
966
966
  }
967
- B.inherits(_, f, {
967
+ B.inherits($, f, {
968
968
  __CANCEL__: !0
969
969
  });
970
970
  function Qe(A, e, t) {
@@ -993,8 +993,8 @@ function en(A, e) {
993
993
  C += t[w++], w = w % A;
994
994
  if (o = (o + 1) % A, o === s && (s = (s + 1) % A), E - r < e)
995
995
  return;
996
- const h = i && E - i;
997
- return h ? Math.round(C * 1e3 / h) : void 0;
996
+ const D = i && E - i;
997
+ return D ? Math.round(C * 1e3 / D) : void 0;
998
998
  };
999
999
  }
1000
1000
  function tn(A, e) {
@@ -1075,7 +1075,7 @@ function De(A, e, t) {
1075
1075
  let n = !rn(e);
1076
1076
  return A && (n || t == !1) ? sn(A, e) : e;
1077
1077
  }
1078
- const LA = (A) => A instanceof T ? { ...A } : A;
1078
+ const LA = (A) => A instanceof G ? { ...A } : A;
1079
1079
  function x(A, e) {
1080
1080
  e = e || {};
1081
1081
  const t = {};
@@ -1143,7 +1143,7 @@ function x(A, e) {
1143
1143
  const he = (A) => {
1144
1144
  const e = x({}, A);
1145
1145
  let { data: t, withXSRFToken: n, xsrfHeaderName: o, xsrfCookieName: s, headers: r, auth: a } = e;
1146
- if (e.headers = r = T.from(r), e.url = ue(De(e.baseURL, e.url, e.allowAbsoluteUrls), A.params, A.paramsSerializer), a && r.set(
1146
+ if (e.headers = r = G.from(r), e.url = ue(De(e.baseURL, e.url, e.allowAbsoluteUrls), A.params, A.paramsSerializer), a && r.set(
1147
1147
  "Authorization",
1148
1148
  "Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
1149
1149
  ), B.isFormData(t)) {
@@ -1165,23 +1165,23 @@ const he = (A) => {
1165
1165
  return new Promise(function(t, n) {
1166
1166
  const o = he(A);
1167
1167
  let s = o.data;
1168
- const r = T.from(o.headers).normalize();
1169
- let { responseType: a, onUploadProgress: g, onDownloadProgress: E } = o, i, w, C, h, c;
1168
+ const r = G.from(o.headers).normalize();
1169
+ let { responseType: a, onUploadProgress: g, onDownloadProgress: E } = o, i, w, C, D, c;
1170
1170
  function u() {
1171
- h && h(), c && c(), o.cancelToken && o.cancelToken.unsubscribe(i), o.signal && o.signal.removeEventListener("abort", i);
1171
+ D && D(), c && c(), o.cancelToken && o.cancelToken.unsubscribe(i), o.signal && o.signal.removeEventListener("abort", i);
1172
1172
  }
1173
1173
  let l = new XMLHttpRequest();
1174
1174
  l.open(o.method.toUpperCase(), o.url, !0), l.timeout = o.timeout;
1175
- function D() {
1175
+ function h() {
1176
1176
  if (!l)
1177
1177
  return;
1178
- const M = T.from(
1178
+ const m = G.from(
1179
1179
  "getAllResponseHeaders" in l && l.getAllResponseHeaders()
1180
1180
  ), U = {
1181
1181
  data: !a || a === "text" || a === "json" ? l.responseText : l.response,
1182
1182
  status: l.status,
1183
1183
  statusText: l.statusText,
1184
- headers: M,
1184
+ headers: m,
1185
1185
  config: A,
1186
1186
  request: l
1187
1187
  };
@@ -1191,26 +1191,26 @@ const he = (A) => {
1191
1191
  n(v), u();
1192
1192
  }, U), l = null;
1193
1193
  }
1194
- "onloadend" in l ? l.onloadend = D : l.onreadystatechange = function() {
1195
- !l || l.readyState !== 4 || l.status === 0 && !(l.responseURL && l.responseURL.indexOf("file:") === 0) || setTimeout(D);
1194
+ "onloadend" in l ? l.onloadend = h : l.onreadystatechange = function() {
1195
+ !l || l.readyState !== 4 || l.status === 0 && !(l.responseURL && l.responseURL.indexOf("file:") === 0) || setTimeout(h);
1196
1196
  }, l.onabort = function() {
1197
1197
  l && (n(new f("Request aborted", f.ECONNABORTED, A, l)), l = null);
1198
- }, l.onerror = function(R) {
1199
- const U = R && R.message ? R.message : "Network Error", Q = new f(U, f.ERR_NETWORK, A, l);
1200
- Q.event = R || null, n(Q), l = null;
1198
+ }, l.onerror = function(p) {
1199
+ const U = p && p.message ? p.message : "Network Error", Q = new f(U, f.ERR_NETWORK, A, l);
1200
+ Q.event = p || null, n(Q), l = null;
1201
1201
  }, l.ontimeout = function() {
1202
- let R = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1202
+ let p = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1203
1203
  const U = o.transitional || Ce;
1204
- o.timeoutErrorMessage && (R = o.timeoutErrorMessage), n(new f(
1205
- R,
1204
+ o.timeoutErrorMessage && (p = o.timeoutErrorMessage), n(new f(
1205
+ p,
1206
1206
  U.clarifyTimeoutError ? f.ETIMEDOUT : f.ECONNABORTED,
1207
1207
  A,
1208
1208
  l
1209
1209
  )), l = null;
1210
- }, s === void 0 && r.setContentType(null), "setRequestHeader" in l && B.forEach(r.toJSON(), function(R, U) {
1211
- l.setRequestHeader(U, R);
1212
- }), B.isUndefined(o.withCredentials) || (l.withCredentials = !!o.withCredentials), a && a !== "json" && (l.responseType = o.responseType), E && ([C, c] = fA(E, !0), l.addEventListener("progress", C)), g && l.upload && ([w, h] = fA(g), l.upload.addEventListener("progress", w), l.upload.addEventListener("loadend", h)), (o.cancelToken || o.signal) && (i = (M) => {
1213
- l && (n(!M || M.type ? new _(null, A, l) : M), l.abort(), l = null);
1210
+ }, s === void 0 && r.setContentType(null), "setRequestHeader" in l && B.forEach(r.toJSON(), function(p, U) {
1211
+ l.setRequestHeader(U, p);
1212
+ }), B.isUndefined(o.withCredentials) || (l.withCredentials = !!o.withCredentials), a && a !== "json" && (l.responseType = o.responseType), E && ([C, c] = fA(E, !0), l.addEventListener("progress", C)), g && l.upload && ([w, D] = fA(g), l.upload.addEventListener("progress", w), l.upload.addEventListener("loadend", D)), (o.cancelToken || o.signal) && (i = (m) => {
1213
+ l && (n(!m || m.type ? new $(null, A, l) : m), l.abort(), l = null);
1214
1214
  }, o.cancelToken && o.cancelToken.subscribe(i), o.signal && (o.signal.aborted ? i() : o.signal.addEventListener("abort", i)));
1215
1215
  const S = An(o.url);
1216
1216
  if (S && O.protocols.indexOf(S) === -1) {
@@ -1227,7 +1227,7 @@ const he = (A) => {
1227
1227
  if (!o) {
1228
1228
  o = !0, a();
1229
1229
  const i = E instanceof Error ? E : this.reason;
1230
- n.abort(i instanceof f ? i : new _(i instanceof Error ? i.message : i));
1230
+ n.abort(i instanceof f ? i : new $(i instanceof Error ? i.message : i));
1231
1231
  }
1232
1232
  };
1233
1233
  let r = e && setTimeout(() => {
@@ -1333,9 +1333,9 @@ const he = (A) => {
1333
1333
  };
1334
1334
  o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((c) => {
1335
1335
  !w[c] && (w[c] = (u, l) => {
1336
- let D = u && u[c];
1337
- if (D)
1338
- return D.call(u);
1336
+ let h = u && u[c];
1337
+ if (h)
1338
+ return h.call(u);
1339
1339
  throw new f(`Response type '${c}' is not supported`, f.ERR_NOT_SUPPORT, l);
1340
1340
  });
1341
1341
  });
@@ -1353,7 +1353,7 @@ const he = (A) => {
1353
1353
  return c.byteLength;
1354
1354
  if (B.isURLSearchParams(c) && (c = c + ""), B.isString(c))
1355
1355
  return (await g(c)).byteLength;
1356
- }, h = async (c, u) => {
1356
+ }, D = async (c, u) => {
1357
1357
  const l = B.toFiniteNumber(c.getContentLength());
1358
1358
  return l ?? C(u);
1359
1359
  };
@@ -1361,73 +1361,73 @@ const he = (A) => {
1361
1361
  let {
1362
1362
  url: u,
1363
1363
  method: l,
1364
- data: D,
1364
+ data: h,
1365
1365
  signal: S,
1366
- cancelToken: M,
1367
- timeout: R,
1366
+ cancelToken: m,
1367
+ timeout: p,
1368
1368
  onDownloadProgress: U,
1369
1369
  onUploadProgress: Q,
1370
1370
  responseType: v,
1371
- headers: $,
1371
+ headers: AA,
1372
1372
  withCredentials: N = "same-origin",
1373
- fetchOptions: AA
1373
+ fetchOptions: eA
1374
1374
  } = he(c), iA = e || fetch;
1375
1375
  v = v ? (v + "").toLowerCase() : "text";
1376
- let X = En([S, M && M.toAbortSignal()], R), W = null;
1377
- const y = X && X.unsubscribe && (() => {
1376
+ let X = En([S, m && m.toAbortSignal()], p), W = null;
1377
+ const Y = X && X.unsubscribe && (() => {
1378
1378
  X.unsubscribe();
1379
1379
  });
1380
- let eA;
1380
+ let tA;
1381
1381
  try {
1382
- if (Q && E && l !== "get" && l !== "head" && (eA = await h($, D)) !== 0) {
1383
- let Y = new t(u, {
1382
+ if (Q && E && l !== "get" && l !== "head" && (tA = await D(AA, h)) !== 0) {
1383
+ let y = new t(u, {
1384
1384
  method: "POST",
1385
- body: D,
1385
+ body: h,
1386
1386
  duplex: "half"
1387
- }), d;
1388
- if (B.isFormData(D) && (d = Y.headers.get("content-type")) && $.setContentType(d), Y.body) {
1389
- const [F, m] = WA(
1390
- eA,
1387
+ }), V;
1388
+ if (B.isFormData(h) && (V = y.headers.get("content-type")) && AA.setContentType(V), y.body) {
1389
+ const [d, b] = WA(
1390
+ tA,
1391
1391
  fA(HA(Q))
1392
1392
  );
1393
- D = xA(Y.body, qA, F, m);
1393
+ h = xA(y.body, qA, d, b);
1394
1394
  }
1395
1395
  }
1396
1396
  B.isString(N) || (N = N ? "include" : "omit");
1397
1397
  const I = s && "credentials" in t.prototype, EA = {
1398
- ...AA,
1398
+ ...eA,
1399
1399
  signal: X,
1400
1400
  method: l.toUpperCase(),
1401
- headers: $.normalize().toJSON(),
1402
- body: D,
1401
+ headers: AA.normalize().toJSON(),
1402
+ body: h,
1403
1403
  duplex: "half",
1404
1404
  credentials: I ? N : void 0
1405
1405
  };
1406
1406
  W = s && new t(u, EA);
1407
- let z = await (s ? iA(W, AA) : iA(u, EA));
1407
+ let z = await (s ? iA(W, eA) : iA(u, EA));
1408
1408
  const cA = i && (v === "stream" || v === "response");
1409
- if (i && (U || cA && y)) {
1410
- const Y = {};
1411
- ["status", "statusText", "headers"].forEach((V) => {
1412
- Y[V] = z[V];
1409
+ if (i && (U || cA && Y)) {
1410
+ const y = {};
1411
+ ["status", "statusText", "headers"].forEach((R) => {
1412
+ y[R] = z[R];
1413
1413
  });
1414
- const d = B.toFiniteNumber(z.headers.get("content-length")), [F, m] = U && WA(
1415
- d,
1414
+ const V = B.toFiniteNumber(z.headers.get("content-length")), [d, b] = U && WA(
1415
+ V,
1416
1416
  fA(HA(U), !0)
1417
1417
  ) || [];
1418
1418
  z = new n(
1419
- xA(z.body, qA, F, () => {
1420
- m && m(), y && y();
1419
+ xA(z.body, qA, d, () => {
1420
+ b && b(), Y && Y();
1421
1421
  }),
1422
- Y
1422
+ y
1423
1423
  );
1424
1424
  }
1425
1425
  v = v || "text";
1426
- let tA = await w[B.findKey(w, v) || "text"](z, c);
1427
- return !cA && y && y(), await new Promise((Y, d) => {
1428
- Qe(Y, d, {
1429
- data: tA,
1430
- headers: T.from(z.headers),
1426
+ let MA = await w[B.findKey(w, v) || "text"](z, c);
1427
+ return !cA && Y && Y(), await new Promise((y, V) => {
1428
+ Qe(y, V, {
1429
+ data: MA,
1430
+ headers: G.from(z.headers),
1431
1431
  status: z.status,
1432
1432
  statusText: z.statusText,
1433
1433
  config: c,
@@ -1435,7 +1435,7 @@ const he = (A) => {
1435
1435
  });
1436
1436
  });
1437
1437
  } catch (I) {
1438
- throw y && y(), I && I.name === "TypeError" && /Load failed|fetch/i.test(I.message) ? Object.assign(
1438
+ throw Y && Y(), I && I.name === "TypeError" && /Load failed|fetch/i.test(I.message) ? Object.assign(
1439
1439
  new f("Network Error", f.ERR_NETWORK, c, W),
1440
1440
  {
1441
1441
  cause: I.cause || I
@@ -1456,14 +1456,14 @@ const he = (A) => {
1456
1456
  return E;
1457
1457
  };
1458
1458
  me();
1459
- const kA = {
1459
+ const OA = {
1460
1460
  http: vt,
1461
1461
  xhr: an,
1462
1462
  fetch: {
1463
1463
  get: me
1464
1464
  }
1465
1465
  };
1466
- B.forEach(kA, (A, e) => {
1466
+ B.forEach(OA, (A, e) => {
1467
1467
  if (A) {
1468
1468
  try {
1469
1469
  Object.defineProperty(A, "name", { value: e });
@@ -1481,7 +1481,7 @@ const $A = (A) => `- ${A}`, fn = (A) => B.isFunction(A) || A === null || A === !
1481
1481
  for (let r = 0; r < t; r++) {
1482
1482
  n = A[r];
1483
1483
  let a;
1484
- if (o = n, !fn(n) && (o = kA[(a = String(n)).toLowerCase()], o === void 0))
1484
+ if (o = n, !fn(n) && (o = OA[(a = String(n)).toLowerCase()], o === void 0))
1485
1485
  throw new f(`Unknown adapter '${a}'`);
1486
1486
  if (o && (B.isFunction(o) || (o = o.get(e))))
1487
1487
  break;
@@ -1501,28 +1501,28 @@ const $A = (A) => `- ${A}`, fn = (A) => B.isFunction(A) || A === null || A === !
1501
1501
  }
1502
1502
  return o;
1503
1503
  },
1504
- adapters: kA
1504
+ adapters: OA
1505
1505
  };
1506
- function SA(A) {
1506
+ function bA(A) {
1507
1507
  if (A.cancelToken && A.cancelToken.throwIfRequested(), A.signal && A.signal.aborted)
1508
- throw new _(null, A);
1508
+ throw new $(null, A);
1509
1509
  }
1510
1510
  function Ae(A) {
1511
- return SA(A), A.headers = T.from(A.headers), A.data = RA.call(
1511
+ return bA(A), A.headers = G.from(A.headers), A.data = SA.call(
1512
1512
  A,
1513
1513
  A.transformRequest
1514
1514
  ), ["post", "put", "patch"].indexOf(A.method) !== -1 && A.headers.setContentType("application/x-www-form-urlencoded", !1), Me.getAdapter(A.adapter || aA.adapter, A)(A).then(function(n) {
1515
- return SA(A), n.data = RA.call(
1515
+ return bA(A), n.data = SA.call(
1516
1516
  A,
1517
1517
  A.transformResponse,
1518
1518
  n
1519
- ), n.headers = T.from(n.headers), n;
1519
+ ), n.headers = G.from(n.headers), n;
1520
1520
  }, function(n) {
1521
- return de(n) || (SA(A), n && n.response && (n.response.data = RA.call(
1521
+ return de(n) || (bA(A), n && n.response && (n.response.data = SA.call(
1522
1522
  A,
1523
1523
  A.transformResponse,
1524
1524
  n.response
1525
- ), n.response.headers = T.from(n.response.headers))), Promise.reject(n);
1525
+ ), n.response.headers = G.from(n.response.headers))), Promise.reject(n);
1526
1526
  });
1527
1527
  }
1528
1528
  const pe = "1.12.2", mA = {};
@@ -1631,7 +1631,7 @@ let L = class {
1631
1631
  (c) => {
1632
1632
  delete s[c];
1633
1633
  }
1634
- ), t.headers = T.concat(r, s);
1634
+ ), t.headers = G.concat(r, s);
1635
1635
  const a = [];
1636
1636
  let g = !0;
1637
1637
  this.interceptors.request.forEach(function(u) {
@@ -1649,18 +1649,18 @@ let L = class {
1649
1649
  return i;
1650
1650
  }
1651
1651
  C = a.length;
1652
- let h = t;
1652
+ let D = t;
1653
1653
  for (; w < C; ) {
1654
1654
  const c = a[w++], u = a[w++];
1655
1655
  try {
1656
- h = c(h);
1656
+ D = c(D);
1657
1657
  } catch (l) {
1658
1658
  u.call(this, l);
1659
1659
  break;
1660
1660
  }
1661
1661
  }
1662
1662
  try {
1663
- i = Ae.call(this, h);
1663
+ i = Ae.call(this, D);
1664
1664
  } catch (c) {
1665
1665
  return Promise.reject(c);
1666
1666
  }
@@ -1722,7 +1722,7 @@ let Qn = class Re {
1722
1722
  n.unsubscribe(s);
1723
1723
  }, r;
1724
1724
  }, e(function(s, r, a) {
1725
- n.reason || (n.reason = new _(s, r, a), t(n.reason));
1725
+ n.reason || (n.reason = new $(s, r, a), t(n.reason));
1726
1726
  });
1727
1727
  }
1728
1728
  /**
@@ -1779,7 +1779,7 @@ function Dn(A) {
1779
1779
  function hn(A) {
1780
1780
  return B.isObject(A) && A.isAxiosError === !0;
1781
1781
  }
1782
- const OA = {
1782
+ const vA = {
1783
1783
  Continue: 100,
1784
1784
  SwitchingProtocols: 101,
1785
1785
  Processing: 102,
@@ -1844,8 +1844,8 @@ const OA = {
1844
1844
  NotExtended: 510,
1845
1845
  NetworkAuthenticationRequired: 511
1846
1846
  };
1847
- Object.entries(OA).forEach(([A, e]) => {
1848
- OA[e] = A;
1847
+ Object.entries(vA).forEach(([A, e]) => {
1848
+ vA[e] = A;
1849
1849
  });
1850
1850
  function Se(A) {
1851
1851
  const e = new L(A), t = ne(L.prototype.request, e);
@@ -1853,28 +1853,28 @@ function Se(A) {
1853
1853
  return Se(x(A, o));
1854
1854
  }, t;
1855
1855
  }
1856
- const p = Se(aA);
1857
- p.Axios = L;
1858
- p.CanceledError = _;
1859
- p.CancelToken = Qn;
1860
- p.isCancel = de;
1861
- p.VERSION = pe;
1862
- p.toFormData = hA;
1863
- p.AxiosError = f;
1864
- p.Cancel = p.CanceledError;
1865
- p.all = function(e) {
1856
+ const M = Se(aA);
1857
+ M.Axios = L;
1858
+ M.CanceledError = $;
1859
+ M.CancelToken = Qn;
1860
+ M.isCancel = de;
1861
+ M.VERSION = pe;
1862
+ M.toFormData = hA;
1863
+ M.AxiosError = f;
1864
+ M.Cancel = M.CanceledError;
1865
+ M.all = function(e) {
1866
1866
  return Promise.all(e);
1867
1867
  };
1868
- p.spread = Dn;
1869
- p.isAxiosError = hn;
1870
- p.mergeConfig = x;
1871
- p.AxiosHeaders = T;
1872
- p.formToJSON = (A) => fe(B.isHTMLForm(A) ? new FormData(A) : A);
1873
- p.getAdapter = Me.getAdapter;
1874
- p.HttpStatusCode = OA;
1875
- p.default = p;
1868
+ M.spread = Dn;
1869
+ M.isAxiosError = hn;
1870
+ M.mergeConfig = x;
1871
+ M.AxiosHeaders = G;
1872
+ M.formToJSON = (A) => fe(B.isHTMLForm(A) ? new FormData(A) : A);
1873
+ M.getAdapter = Me.getAdapter;
1874
+ M.HttpStatusCode = vA;
1875
+ M.default = M;
1876
1876
  const {
1877
- Axios: Tn,
1877
+ Axios: Gn,
1878
1878
  AxiosError: Un,
1879
1879
  CanceledError: yn,
1880
1880
  isCancel: Yn,
@@ -1890,7 +1890,7 @@ const {
1890
1890
  formToJSON: xn,
1891
1891
  getAdapter: qn,
1892
1892
  mergeConfig: jn
1893
- } = p, mn = "Basic ", be = p.create({
1893
+ } = M, mn = "Basic ", be = M.create({
1894
1894
  timeout: 3e4,
1895
1895
  responseType: "json"
1896
1896
  });
@@ -1933,64 +1933,68 @@ const Mn = "data:video/mp4;base64,AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAA
1933
1933
  },
1934
1934
  emits: ["error", "voice-stop-event"],
1935
1935
  setup(A, { expose: e, emit: t }) {
1936
- const n = t, o = A, s = b(!0), r = b(!1), a = b(null), g = b(""), E = b(""), i = b(!1), w = b(!1), C = b(!1), h = b(0), c = b(0);
1937
- b(!1);
1938
- const u = b(null);
1939
- let l = b(6), D = b(0), S = b(null);
1940
- const M = Oe({
1936
+ const n = t, o = A, s = F(!0), r = F(!1), a = F(null), g = F(""), E = F(""), i = F(!1), w = F(!1), C = F(!1), D = F(0), c = F(0);
1937
+ F(!1);
1938
+ const u = F(null);
1939
+ let l = F(6), h = F(0), S = F(null);
1940
+ const m = Oe({
1941
1941
  mutedVolume: 0,
1942
1942
  playerVolume: 1
1943
- }), R = b("未连接"), U = b([]), Q = b(null), v = UA(() => o.videoClosed), $ = UA(() => o.videoOpened), N = (d, F = "") => {
1944
- Function(`window.console && console.log('${d}', '${F}');`)();
1945
- }, AA = (d, F) => {
1943
+ }), p = F("未连接"), U = F([]), Q = F(null), v = yA(() => o.videoClosed), AA = yA(() => o.videoOpened), N = (d, b = "") => {
1944
+ Function(`window.console && console.log('${d}', '${b}');`)();
1945
+ }, eA = (d, b) => {
1946
1946
  if (Q.value) {
1947
- const m = Q.value.readyState;
1948
- if (m === WebSocket.OPEN) {
1949
- R.value = "已连接";
1947
+ const R = Q.value.readyState;
1948
+ if (R === WebSocket.OPEN) {
1949
+ p.value = "已连接";
1950
1950
  return;
1951
- } else if (m === WebSocket.CONNECTING) {
1952
- R.value = "连接中";
1951
+ } else if (R === WebSocket.CONNECTING) {
1952
+ p.value = "连接中";
1953
1953
  return;
1954
1954
  } else
1955
1955
  Q.value.close();
1956
1956
  }
1957
1957
  Q.value = new WebSocket(o.wsUrl), Q.value.onopen = () => {
1958
- R.value = "已连接", console.log("✅ WebSocket 连接成功"), W();
1959
- }, Q.value.onmessage = (m) => {
1960
- const V = m.data;
1961
- U.value.push(V);
1958
+ p.value = "已连接", console.log("✅ WebSocket 连接成功"), W();
1959
+ }, Q.value.onmessage = (R) => {
1960
+ const q = R.data;
1961
+ U.value.push(q);
1962
1962
  try {
1963
- const k = JSON.parse(V);
1963
+ const k = JSON.parse(q);
1964
1964
  if (k.info && k.info.speaker) {
1965
1965
  if (a.value = o.spkId, !o.spkId) {
1966
- const q = k.info.speaker, TA = Object.keys(q);
1967
- TA.length > 0 && (a.value = TA[0]);
1966
+ const j = k.info.speaker, UA = Object.keys(j);
1967
+ UA.length > 0 && (a.value = UA[0]);
1968
1968
  }
1969
1969
  console.log("spkId::", a.value);
1970
1970
  }
1971
- k.status === 0 && k.info && (i.value = !0, console.log("✅ TTS初始化成功", d), console.log("readingText", F), d !== "init" && y(F || o.content)), k.status === 1 && k.audio && !w.value && z(k.audio), k.status === 2 && console.log("当前执行秒", (/* @__PURE__ */ new Date()).getSeconds());
1971
+ k.status === 0 && k.info && (i.value = !0, console.log("✅ TTS初始化成功", d), console.log("readingText", b), d !== "init" && Y(b || o.content)), k.status === 1 && k.audio && !w.value && z(k.audio), k.status === 2 && console.log("当前执行秒", (/* @__PURE__ */ new Date()).getSeconds());
1972
1972
  } catch (k) {
1973
1973
  console.error("解析消息失败:", k);
1974
1974
  }
1975
- }, Q.value.onclose = (m) => {
1976
- C.value = !1, R.value = `已关闭 (代码: ${m.code})`, console.log("🔌 WebSocket 连接已关闭", m);
1977
- }, Q.value.onerror = (m) => {
1978
- R.value = "发生错误", console.error("❌ WebSocket 错误:", m), n("error", "连接失败: " + m);
1975
+ }, Q.value.onclose = (R) => {
1976
+ C.value = !1, p.value = `已关闭 (代码: ${R.code})`, console.log("🔌 WebSocket 连接已关闭", R);
1977
+ }, Q.value.onerror = (R) => {
1978
+ p.value = "发生错误", console.error("❌ WebSocket 错误:", R), n("error", "连接失败: " + R);
1979
1979
  };
1980
1980
  }, iA = () => {
1981
- r.value = !0, s.value = !1;
1981
+ s.value && (r.value = !0, setTimeout(() => {
1982
+ s.value = !1;
1983
+ }, 200));
1982
1984
  }, X = () => {
1983
- r.value = !1, s.value = !0;
1985
+ r.value && (s.value = !0, setTimeout(() => {
1986
+ r.value = !1;
1987
+ }, 200));
1984
1988
  }, W = () => {
1985
1989
  if (Q.value && Q.value.readyState === WebSocket.OPEN) {
1986
1990
  const d = { task: "tts", signal: "start" };
1987
1991
  Q.value.send(JSON.stringify(d));
1988
1992
  } else
1989
1993
  console.error("请先初始化"), n("error", "请先初始化");
1990
- }, y = (d) => {
1994
+ }, Y = (d) => {
1991
1995
  if (d)
1992
1996
  if (Q.value && Q.value.readyState === WebSocket.OPEN) {
1993
- const F = {
1997
+ const b = {
1994
1998
  synthesis_request: {
1995
1999
  text: d,
1996
2000
  spk_id: a.value
@@ -1998,40 +2002,42 @@ const Mn = "data:video/mp4;base64,AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAA
1998
2002
  conversation_id: g.value,
1999
2003
  state: "keep"
2000
2004
  };
2001
- Q.value.send(JSON.stringify(F));
2005
+ Q.value.send(JSON.stringify(b));
2002
2006
  } else
2003
2007
  console.error("请先初始化"), n("error", "请先初始化");
2004
- }, eA = () => {
2008
+ }, tA = () => {
2005
2009
  if (console.log("关闭连接"), Q.value && Q.value.readyState === WebSocket.OPEN) {
2006
2010
  const d = { task: "tts", signal: "end" };
2007
2011
  Q.value.send(JSON.stringify(d));
2008
2012
  }
2009
- }, I = (d = "init", F) => {
2013
+ }, I = (d = "init", b) => {
2010
2014
  try {
2011
2015
  return u.value = new He({
2012
2016
  encoding: "16bitInt",
2013
2017
  channels: 1,
2014
2018
  sampleRate: 24e3,
2015
2019
  flushTime: 2e3,
2016
- onstatechange: (m, V, k) => {
2020
+ onstatechange: (R, q, k) => {
2017
2021
  console.log("播放状态改变", k);
2018
2022
  },
2019
2023
  onstart: () => {
2020
- console.log("开始播放onstart"), s.value && !w.value && iA(), h.value++;
2024
+ console.log("开始播放onstart"), s.value && !w.value && iA(), D.value++;
2021
2025
  },
2022
- onended: (m, V) => {
2023
- console.log("播放结束onended", m), c.value++, h.value === c.value && (console.log("停止说话了~~~"), X(), setTimeout(() => {
2024
- console.log("停止说话了~~~2::", h.value === c.value), h.value === c.value && n("voice-stop-event", !0);
2025
- }, 1e3));
2026
+ onended: (R, q) => {
2027
+ console.log("播放结束onended", R), c.value++, D.value === c.value && (console.log("停止说话了~~~"), setTimeout(() => {
2028
+ X();
2029
+ }, 200), setTimeout(() => {
2030
+ console.log("停止说话了~~~2::", D.value === c.value), D.value === c.value && n("voice-stop-event", !0);
2031
+ }, 1500));
2026
2032
  }
2027
- }), u.value.volume(M.playerVolume), AA(d, F), !0;
2033
+ }), u.value.volume(m.playerVolume), eA(d, b), !0;
2028
2034
  } catch {
2029
2035
  return n("error", "请先初始化"), !1;
2030
2036
  }
2031
2037
  }, EA = () => {
2032
2038
  if (u.value && i.value)
2033
2039
  try {
2034
- C.value = !0, u.value.volume(M.mutedVolume), eA(), u.value.audioCtx && u.value.destroy(), w.value = !0, E.value = "", X(), i.value = !1, console.log("✅ 音频已停止"), n("voice-stop-event", !0);
2040
+ C.value = !0, u.value.volume(m.mutedVolume), tA(), u.value.audioCtx && u.value.destroy(), w.value = !0, E.value = "", X(), i.value = !1, console.log("✅ 音频已停止"), n("voice-stop-event", !0);
2035
2041
  } catch (d) {
2036
2042
  console.warn("停止音频时发生异常:", d), n("error", "停止音频时发生异常");
2037
2043
  }
@@ -2043,56 +2049,58 @@ const Mn = "data:video/mp4;base64,AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAA
2043
2049
  return;
2044
2050
  }
2045
2051
  d = d.replace(/=+$/, "");
2046
- const F = atob(d), m = F.length, V = new ArrayBuffer(m), k = new Uint8Array(V);
2047
- for (let q = 0; q < m; q++)
2048
- k[q] = F.charCodeAt(q);
2052
+ const b = atob(d), R = b.length, q = new ArrayBuffer(R), k = new Uint8Array(q);
2053
+ for (let j = 0; j < R; j++)
2054
+ k[j] = b.charCodeAt(j);
2049
2055
  u.value.feed(k.buffer), E.value = "";
2050
- }, cA = () => i, tA = (d) => {
2051
- d && ((!u.value || !u.value.audioCtx) && (console.log("正在初始化播放器"), I("data", d)), w.value = !1, h.value = 0, c.value = 0, i.value ? (E.value = "", y(d)) : (console.log("wss未连接,开始连接"), AA(null, d)));
2052
- }, Y = (d) => {
2053
- D.value = 0, S.value && clearInterval(S.value), C.value ? S.value = setInterval(() => {
2054
- N("startReading 开启本地轮训,等待ws链接断开"), D.value++, C.value || (S.value && clearInterval(S.value), tA(d)), D.value > l.value && (N("startReading 已停止轮训 ws 断开无响应 链接异常"), clearInterval(S.value), C.value && (C.value = !1, tA(d)));
2055
- }, 1e3) : (N("组件开始播报"), tA(d));
2056
+ }, cA = () => i, MA = () => ({
2057
+ startTimes: D.value,
2058
+ endTimes: c.value
2059
+ }), y = (d) => {
2060
+ d && ((!u.value || !u.value.audioCtx) && (console.log("正在初始化播放器"), I("data", d)), w.value = !1, D.value = 0, c.value = 0, i.value ? (E.value = "", Y(d)) : (console.log("wss未连接,开始连接"), eA(null, d)));
2061
+ }, V = (d) => {
2062
+ h.value = 0, S.value && clearInterval(S.value), C.value ? S.value = setInterval(() => {
2063
+ N("startReading 开启本地轮训,等待ws链接断开"), h.value++, C.value || (S.value && clearInterval(S.value), y(d)), h.value > l.value && (N("startReading 已停止轮训 ws 断开无响应 链接异常"), clearInterval(S.value), C.value && (C.value = !1, y(d)));
2064
+ }, 1e3) : (N("组件开始播报"), y(d));
2056
2065
  };
2057
2066
  return ve(
2058
2067
  () => o.content,
2059
2068
  async (d) => {
2060
- Y(d);
2069
+ V(d);
2061
2070
  },
2062
2071
  { immediate: !1 }
2063
2072
  ), Ie(async () => {
2064
2073
  g.value = Ne(), I("init");
2065
- }), Ge(() => {
2066
- Q.value && (eA(), u.value && u.value.destroy(), Q.value.close());
2074
+ }), Te(() => {
2075
+ Q.value && (tA(), u.value && u.value.destroy(), Q.value.close());
2067
2076
  }), e({
2068
2077
  initAudioPlayer: I,
2069
2078
  getWssConnectStatus: cA,
2079
+ getStartEndPointer: MA,
2070
2080
  stopAudioPlay: EA,
2071
- startReading: Y
2072
- }), (d, F) => (Ue(), Te("div", Sn, [
2073
- yA(YA("video", {
2081
+ startReading: V
2082
+ }), (d, b) => (Ue(), Ge("div", Sn, [
2083
+ YA("video", {
2084
+ class: JA(["switch-video", { active: s.value }]),
2074
2085
  id: "mouth_closed_media_player",
2075
2086
  src: v.value,
2076
2087
  playsinline: "",
2077
2088
  muted: "",
2078
2089
  loop: "",
2079
2090
  autoplay: ""
2080
- }, null, 8, bn), [
2081
- [JA, s.value]
2082
- ]),
2083
- yA(YA("video", {
2091
+ }, null, 10, bn),
2092
+ YA("video", {
2093
+ class: JA(["switch-video", { active: r.value }]),
2084
2094
  id: "mouth_opened_media_player",
2085
- src: $.value,
2095
+ src: AA.value,
2086
2096
  playsinline: "",
2087
2097
  muted: "",
2088
2098
  loop: "",
2089
2099
  autoplay: ""
2090
- }, null, 8, Fn), [
2091
- [JA, r.value]
2092
- ])
2100
+ }, null, 10, Fn)
2093
2101
  ]));
2094
2102
  }
2095
- }), oA = /* @__PURE__ */ Rn(Zn, [["__scopeId", "data-v-1c15c39a"]]), Fe = "0.7.4", Ze = () => {
2103
+ }), oA = /* @__PURE__ */ Rn(Zn, [["__scopeId", "data-v-3fa1aa7e"]]), Fe = "0.7.5-hotfix.1", Ze = () => {
2096
2104
  Function(`
2097
2105
  window.console && console.log('%c灵犀数字人直播组件 iss-library-digital-video %cV${Fe}', 'color: #3164F6;font-weight: 500;font-size: 12px;', 'color: #999;');
2098
2106
  `)();