@sawport/peers-caller 1.0.0-alpha.2 → 1.0.0-alpha.3
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/core/CallMediaStream.d.ts +34 -3
- package/dist/core/CallMediaStream.d.ts.map +1 -1
- package/dist/core/CallParticipant.d.ts +2 -0
- package/dist/core/CallParticipant.d.ts.map +1 -1
- package/dist/core/CallPeerConnection.d.ts +8 -0
- package/dist/core/CallPeerConnection.d.ts.map +1 -1
- package/dist/core/PeersCaller.d.ts.map +1 -1
- package/dist/peers-caller.es.js +1170 -1037
- package/dist/peers-caller.es.js.map +1 -1
- package/dist/peers-caller.umd.js +11 -11
- package/dist/peers-caller.umd.js.map +1 -1
- package/dist/tester/App.d.ts.map +1 -1
- package/dist/tester/components/ConfigPanel.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/peers-caller.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var Eo = Object.defineProperty, Ro = Object.defineProperties;
|
|
2
2
|
var Po = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var tt = Object.getOwnPropertySymbols;
|
|
4
4
|
var un = Object.prototype.hasOwnProperty, fn = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var ne = Math.pow, mt = (n, e, t) => e in n ? Eo(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, He = (n, e) => {
|
|
6
6
|
for (var t in e || (e = {}))
|
|
7
7
|
un.call(e, t) && mt(n, t, e[t]);
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
8
|
+
if (tt)
|
|
9
|
+
for (var t of tt(e))
|
|
10
10
|
fn.call(e, t) && mt(n, t, e[t]);
|
|
11
11
|
return n;
|
|
12
12
|
}, vt = (n, e) => Ro(n, Po(e));
|
|
@@ -14,8 +14,8 @@ var bt = (n, e) => {
|
|
|
14
14
|
var t = {};
|
|
15
15
|
for (var o in n)
|
|
16
16
|
un.call(n, o) && e.indexOf(o) < 0 && (t[o] = n[o]);
|
|
17
|
-
if (n != null &&
|
|
18
|
-
for (var o of
|
|
17
|
+
if (n != null && tt)
|
|
18
|
+
for (var o of tt(n))
|
|
19
19
|
e.indexOf(o) < 0 && fn.call(n, o) && (t[o] = n[o]);
|
|
20
20
|
return t;
|
|
21
21
|
};
|
|
@@ -35,7 +35,7 @@ typeof wt == "undefined" ? globalThis.process = {
|
|
|
35
35
|
setTimeout(() => n(...e), 0);
|
|
36
36
|
});
|
|
37
37
|
typeof globalThis == "undefined" && (globalThis.global = globalThis);
|
|
38
|
-
var Oo = Object.defineProperty, ko = (n, e, t) => e in n ? Oo(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t,
|
|
38
|
+
var Oo = Object.defineProperty, ko = (n, e, t) => e in n ? Oo(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Me = (n, e, t) => ko(n, typeof e != "symbol" ? e + "" : e, t), Ae = (n, e, t) => new Promise((o, l) => {
|
|
39
39
|
var c = (f) => {
|
|
40
40
|
try {
|
|
41
41
|
a(t.next(f));
|
|
@@ -51,9 +51,9 @@ var Oo = Object.defineProperty, ko = (n, e, t) => e in n ? Oo(n, e, { enumerable
|
|
|
51
51
|
}, a = (f) => f.done ? o(f.value) : Promise.resolve(f.value).then(c, E);
|
|
52
52
|
a((t = t.apply(n, e)).next());
|
|
53
53
|
});
|
|
54
|
-
class
|
|
54
|
+
class Mo {
|
|
55
55
|
constructor(e, t, o = "/apis/video-call") {
|
|
56
|
-
|
|
56
|
+
Me(this, "socket", null), Me(this, "serverUrl"), Me(this, "socketPath"), Me(this, "token"), Me(this, "connected", !1), Me(this, "reconnectAttempts", 0), Me(this, "maxReconnectAttempts", 5), this.serverUrl = e, this.token = t, this.socketPath = o;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
59
|
* Connect to the WebSocket server
|
|
@@ -287,7 +287,7 @@ class Bo {
|
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
|
-
var
|
|
290
|
+
var Bo = Object.defineProperty, Lo = (n, e, t) => e in n ? Bo(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Je = (n, e, t) => Lo(n, typeof e != "symbol" ? e + "" : e, t), rt = (n, e, t) => new Promise((o, l) => {
|
|
291
291
|
var c = (f) => {
|
|
292
292
|
try {
|
|
293
293
|
a(t.next(f));
|
|
@@ -305,7 +305,7 @@ var Mo = Object.defineProperty, Lo = (n, e, t) => e in n ? Mo(n, e, { enumerable
|
|
|
305
305
|
});
|
|
306
306
|
class No {
|
|
307
307
|
constructor(e = { video: !0, audio: !0 }) {
|
|
308
|
-
|
|
308
|
+
Je(this, "cameraStream", null), Je(this, "screenStream", null), Je(this, "videoElement", null), Je(this, "constraints"), Je(this, "isScreenShare", !1), this.constraints = e;
|
|
309
309
|
}
|
|
310
310
|
/**
|
|
311
311
|
* Initialize media stream with camera and microphone
|
|
@@ -316,7 +316,9 @@ class No {
|
|
|
316
316
|
return console.log(
|
|
317
317
|
"[CallMediaStream] Initializing media stream with constraints:",
|
|
318
318
|
this.constraints
|
|
319
|
-
), this.
|
|
319
|
+
), this.cameraStream = yield navigator.mediaDevices.getUserMedia(
|
|
320
|
+
this.constraints
|
|
321
|
+
), console.log("[CallMediaStream] Media stream initialized successfully"), this.cameraStream;
|
|
320
322
|
} catch (e) {
|
|
321
323
|
throw console.error(
|
|
322
324
|
"[CallMediaStream] Failed to initialize media stream:",
|
|
@@ -331,14 +333,12 @@ class No {
|
|
|
331
333
|
startScreenShare() {
|
|
332
334
|
return rt(this, arguments, function* (e = { video: !0, audio: !1 }) {
|
|
333
335
|
try {
|
|
334
|
-
console.log("[CallMediaStream] Starting screen share")
|
|
335
|
-
const t = yield navigator.mediaDevices.getDisplayMedia({
|
|
336
|
+
return console.log("[CallMediaStream] Starting screen share"), this.screenStream = yield navigator.mediaDevices.getDisplayMedia({
|
|
336
337
|
video: e.video,
|
|
337
338
|
audio: e.audio
|
|
338
|
-
}),
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
}), console.log("[CallMediaStream] Screen share started successfully"), t;
|
|
339
|
+
}), this.isScreenShare = !0, this.screenStream.getVideoTracks()[0].addEventListener("ended", () => {
|
|
340
|
+
console.log("[CallMediaStream] Screen share ended by user"), this.stopScreenShare();
|
|
341
|
+
}), console.log("[CallMediaStream] Screen share started successfully"), this.screenStream;
|
|
342
342
|
} catch (t) {
|
|
343
343
|
throw console.error("[CallMediaStream] Failed to start screen share:", t), this.handleMediaError(t);
|
|
344
344
|
}
|
|
@@ -347,12 +347,20 @@ class No {
|
|
|
347
347
|
/**
|
|
348
348
|
* Stop screen sharing and revert to camera
|
|
349
349
|
*/
|
|
350
|
-
stopScreenShare(
|
|
350
|
+
stopScreenShare() {
|
|
351
351
|
return rt(this, null, function* () {
|
|
352
352
|
try {
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
353
|
+
if (console.log("[CallMediaStream] Stopping screen share"), this.screenStream && this.isScreenShare && (this.screenStream.getTracks().forEach((e) => e.stop()), this.screenStream = null), !this.cameraStream)
|
|
354
|
+
this.cameraStream = yield this.initialize();
|
|
355
|
+
else {
|
|
356
|
+
const e = this.cameraStream.getVideoTracks();
|
|
357
|
+
(e.length === 0 || e[0].readyState === "ended") && (console.log(
|
|
358
|
+
"[CallMediaStream] Camera stream is inactive, reinitializing"
|
|
359
|
+
), this.cameraStream = yield this.initialize());
|
|
360
|
+
}
|
|
361
|
+
return this.isScreenShare = !1, console.log("[CallMediaStream] Reverted to camera stream"), this.cameraStream;
|
|
362
|
+
} catch (e) {
|
|
363
|
+
throw console.error("[CallMediaStream] Failed to stop screen share:", e), this.handleMediaError(e);
|
|
356
364
|
}
|
|
357
365
|
});
|
|
358
366
|
}
|
|
@@ -360,24 +368,26 @@ class No {
|
|
|
360
368
|
* Toggle audio track
|
|
361
369
|
*/
|
|
362
370
|
toggleAudio(e) {
|
|
363
|
-
|
|
371
|
+
const t = this.getCurrentStream();
|
|
372
|
+
if (!t) {
|
|
364
373
|
console.warn("[CallMediaStream] No stream available for audio toggle");
|
|
365
374
|
return;
|
|
366
375
|
}
|
|
367
|
-
|
|
368
|
-
|
|
376
|
+
t.getAudioTracks().forEach((l) => {
|
|
377
|
+
l.enabled = e;
|
|
369
378
|
}), console.log(`[CallMediaStream] Audio ${e ? "enabled" : "disabled"}`);
|
|
370
379
|
}
|
|
371
380
|
/**
|
|
372
381
|
* Toggle video track
|
|
373
382
|
*/
|
|
374
383
|
toggleVideo(e) {
|
|
375
|
-
|
|
384
|
+
const t = this.getCurrentStream();
|
|
385
|
+
if (!t) {
|
|
376
386
|
console.warn("[CallMediaStream] No stream available for video toggle");
|
|
377
387
|
return;
|
|
378
388
|
}
|
|
379
|
-
|
|
380
|
-
|
|
389
|
+
t.getVideoTracks().forEach((l) => {
|
|
390
|
+
l.enabled = e;
|
|
381
391
|
}), console.log(`[CallMediaStream] Video ${e ? "enabled" : "disabled"}`);
|
|
382
392
|
}
|
|
383
393
|
/**
|
|
@@ -385,25 +395,47 @@ class No {
|
|
|
385
395
|
*/
|
|
386
396
|
createVideoElement() {
|
|
387
397
|
const e = document.createElement("video");
|
|
388
|
-
|
|
398
|
+
e.autoplay = !0, e.playsInline = !0, e.muted = !0;
|
|
399
|
+
const t = this.getCurrentStream();
|
|
400
|
+
return t && (e.srcObject = t), this.videoElement = e, e;
|
|
389
401
|
}
|
|
390
402
|
/**
|
|
391
403
|
* Attach stream to an existing video element
|
|
392
404
|
*/
|
|
393
405
|
attachToVideoElement(e) {
|
|
394
|
-
|
|
406
|
+
const t = this.getCurrentStream();
|
|
407
|
+
t && (e.srcObject = t, this.videoElement = e);
|
|
395
408
|
}
|
|
396
409
|
/**
|
|
397
410
|
* Replace the current stream (useful for switching between camera and screen)
|
|
398
411
|
*/
|
|
399
412
|
replaceStream(e) {
|
|
400
|
-
|
|
413
|
+
const t = this.getCurrentStream();
|
|
414
|
+
t && t.getTracks().forEach((o) => o.stop()), this.isScreenShare ? this.screenStream = e : this.cameraStream = e, this.videoElement && (this.videoElement.srcObject = e), console.log("[CallMediaStream] Stream replaced successfully");
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Get current active stream (screen or camera)
|
|
418
|
+
*/
|
|
419
|
+
getCurrentStream() {
|
|
420
|
+
return this.isScreenShare ? this.screenStream : this.cameraStream;
|
|
401
421
|
}
|
|
402
422
|
/**
|
|
403
|
-
* Get current stream
|
|
423
|
+
* Get current stream (for backward compatibility)
|
|
404
424
|
*/
|
|
405
425
|
getStream() {
|
|
406
|
-
return this.
|
|
426
|
+
return this.getCurrentStream();
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* Get camera stream
|
|
430
|
+
*/
|
|
431
|
+
getCameraStream() {
|
|
432
|
+
return this.cameraStream;
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Get screen stream
|
|
436
|
+
*/
|
|
437
|
+
getScreenStream() {
|
|
438
|
+
return this.screenStream;
|
|
407
439
|
}
|
|
408
440
|
/**
|
|
409
441
|
* Get video element
|
|
@@ -421,42 +453,83 @@ class No {
|
|
|
421
453
|
* Get audio track enabled state
|
|
422
454
|
*/
|
|
423
455
|
isAudioEnabled() {
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
456
|
+
const e = this.getCurrentStream();
|
|
457
|
+
if (!e) return !1;
|
|
458
|
+
const t = e.getAudioTracks();
|
|
459
|
+
return t.length > 0 && t[0].enabled;
|
|
427
460
|
}
|
|
428
461
|
/**
|
|
429
462
|
* Get video track enabled state
|
|
430
463
|
*/
|
|
431
464
|
isVideoEnabled() {
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
465
|
+
const e = this.getCurrentStream();
|
|
466
|
+
if (!e) return !1;
|
|
467
|
+
const t = e.getVideoTracks();
|
|
468
|
+
return t.length > 0 && t[0].enabled;
|
|
435
469
|
}
|
|
436
470
|
/**
|
|
437
471
|
* Get stream information
|
|
438
472
|
*/
|
|
439
473
|
getStreamInfo() {
|
|
440
|
-
|
|
441
|
-
|
|
474
|
+
const e = this.getCurrentStream();
|
|
475
|
+
if (!e) return null;
|
|
476
|
+
const t = e.getVideoTracks(), o = e.getAudioTracks();
|
|
442
477
|
return {
|
|
443
|
-
id:
|
|
444
|
-
videoTracks:
|
|
445
|
-
audioTracks:
|
|
478
|
+
id: e.id,
|
|
479
|
+
videoTracks: t.length,
|
|
480
|
+
audioTracks: o.length,
|
|
446
481
|
isScreenShare: this.isScreenShare,
|
|
447
|
-
videoEnabled:
|
|
448
|
-
audioEnabled:
|
|
449
|
-
videoConstraints:
|
|
450
|
-
audioConstraints:
|
|
482
|
+
videoEnabled: t.length > 0 ? t[0].enabled : !1,
|
|
483
|
+
audioEnabled: o.length > 0 ? o[0].enabled : !1,
|
|
484
|
+
videoConstraints: t.length > 0 ? t[0].getSettings() : null,
|
|
485
|
+
audioConstraints: o.length > 0 ? o[0].getSettings() : null,
|
|
486
|
+
hasCameraStream: !!this.cameraStream,
|
|
487
|
+
hasScreenStream: !!this.screenStream
|
|
451
488
|
};
|
|
452
489
|
}
|
|
490
|
+
/**
|
|
491
|
+
* Get video track from current stream
|
|
492
|
+
*/
|
|
493
|
+
getVideoTrack() {
|
|
494
|
+
const e = this.getCurrentStream();
|
|
495
|
+
if (!e) return null;
|
|
496
|
+
const t = e.getVideoTracks();
|
|
497
|
+
return t.length > 0 ? t[0] : null;
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* Get audio track from current stream
|
|
501
|
+
*/
|
|
502
|
+
getAudioTrack() {
|
|
503
|
+
const e = this.getCurrentStream();
|
|
504
|
+
if (!e) return null;
|
|
505
|
+
const t = e.getAudioTracks();
|
|
506
|
+
return t.length > 0 ? t[0] : null;
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* Get video track from camera stream
|
|
510
|
+
*/
|
|
511
|
+
getCameraVideoTrack() {
|
|
512
|
+
if (!this.cameraStream) return null;
|
|
513
|
+
const e = this.cameraStream.getVideoTracks();
|
|
514
|
+
return e.length > 0 ? e[0] : null;
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* Get video track from screen stream
|
|
518
|
+
*/
|
|
519
|
+
getScreenVideoTrack() {
|
|
520
|
+
if (!this.screenStream) return null;
|
|
521
|
+
const e = this.screenStream.getVideoTracks();
|
|
522
|
+
return e.length > 0 ? e[0] : null;
|
|
523
|
+
}
|
|
453
524
|
/**
|
|
454
525
|
* Stop all tracks and cleanup
|
|
455
526
|
*/
|
|
456
527
|
cleanup() {
|
|
457
|
-
console.log("[CallMediaStream] Cleaning up media stream"), this.
|
|
528
|
+
console.log("[CallMediaStream] Cleaning up media stream"), this.cameraStream && (this.cameraStream.getTracks().forEach((e) => {
|
|
458
529
|
e.stop();
|
|
459
|
-
}), this.
|
|
530
|
+
}), this.cameraStream = null), this.screenStream && (this.screenStream.getTracks().forEach((e) => {
|
|
531
|
+
e.stop();
|
|
532
|
+
}), this.screenStream = null), this.videoElement && (this.videoElement.srcObject = null, this.videoElement = null), this.isScreenShare = !1;
|
|
460
533
|
}
|
|
461
534
|
/**
|
|
462
535
|
* Handle media errors and provide user-friendly messages
|
|
@@ -498,12 +571,12 @@ class No {
|
|
|
498
571
|
function Qr(n) {
|
|
499
572
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
500
573
|
}
|
|
501
|
-
var nt = { exports: {} },
|
|
574
|
+
var nt = { exports: {} }, St, dn;
|
|
502
575
|
function Do() {
|
|
503
|
-
if (dn) return
|
|
576
|
+
if (dn) return St;
|
|
504
577
|
dn = 1;
|
|
505
578
|
var n = 1e3, e = n * 60, t = e * 60, o = t * 24, l = o * 7, c = o * 365.25;
|
|
506
|
-
|
|
579
|
+
St = function(w, A) {
|
|
507
580
|
A = A || {};
|
|
508
581
|
var C = typeof w;
|
|
509
582
|
if (C === "string" && w.length > 0)
|
|
@@ -578,11 +651,11 @@ function Do() {
|
|
|
578
651
|
var y = A >= C * 1.5;
|
|
579
652
|
return Math.round(w / C) + " " + j + (y ? "s" : "");
|
|
580
653
|
}
|
|
581
|
-
return
|
|
654
|
+
return St;
|
|
582
655
|
}
|
|
583
|
-
var
|
|
656
|
+
var _t, hn;
|
|
584
657
|
function Fo() {
|
|
585
|
-
if (hn) return
|
|
658
|
+
if (hn) return _t;
|
|
586
659
|
hn = 1;
|
|
587
660
|
function n(e) {
|
|
588
661
|
o.debug = o, o.default = o, o.coerce = u, o.disable = a, o.enable = c, o.enabled = f, o.humanize = Do(), o.destroy = w, Object.keys(e).forEach((A) => {
|
|
@@ -597,32 +670,32 @@ function Fo() {
|
|
|
597
670
|
o.selectColor = t;
|
|
598
671
|
function o(A) {
|
|
599
672
|
let C, j = null, y, I;
|
|
600
|
-
function
|
|
601
|
-
if (!
|
|
673
|
+
function _(...h) {
|
|
674
|
+
if (!_.enabled)
|
|
602
675
|
return;
|
|
603
|
-
const b =
|
|
604
|
-
b.diff =
|
|
676
|
+
const b = _, P = Number(/* @__PURE__ */ new Date()), S = P - (C || P);
|
|
677
|
+
b.diff = S, b.prev = C, b.curr = P, C = P, h[0] = o.coerce(h[0]), typeof h[0] != "string" && h.unshift("%O");
|
|
605
678
|
let R = 0;
|
|
606
|
-
h[0] = h[0].replace(/%([a-zA-Z%])/g, (
|
|
607
|
-
if (
|
|
679
|
+
h[0] = h[0].replace(/%([a-zA-Z%])/g, (p, B) => {
|
|
680
|
+
if (p === "%%")
|
|
608
681
|
return "%";
|
|
609
682
|
R++;
|
|
610
|
-
const U = o.formatters[
|
|
683
|
+
const U = o.formatters[B];
|
|
611
684
|
if (typeof U == "function") {
|
|
612
685
|
const F = h[R];
|
|
613
|
-
|
|
686
|
+
p = U.call(b, F), h.splice(R, 1), R--;
|
|
614
687
|
}
|
|
615
|
-
return
|
|
688
|
+
return p;
|
|
616
689
|
}), o.formatArgs.call(b, h), (b.log || o.log).apply(b, h);
|
|
617
690
|
}
|
|
618
|
-
return
|
|
691
|
+
return _.namespace = A, _.useColors = o.useColors(), _.color = o.selectColor(A), _.extend = l, _.destroy = o.destroy, Object.defineProperty(_, "enabled", {
|
|
619
692
|
enumerable: !0,
|
|
620
693
|
configurable: !1,
|
|
621
694
|
get: () => j !== null ? j : (y !== o.namespaces && (y = o.namespaces, I = o.enabled(A)), I),
|
|
622
695
|
set: (h) => {
|
|
623
696
|
j = h;
|
|
624
697
|
}
|
|
625
|
-
}), typeof o.init == "function" && o.init(
|
|
698
|
+
}), typeof o.init == "function" && o.init(_), _;
|
|
626
699
|
}
|
|
627
700
|
function l(A, C) {
|
|
628
701
|
const j = o(this.namespace + (typeof C == "undefined" ? ":" : C) + A);
|
|
@@ -635,12 +708,12 @@ function Fo() {
|
|
|
635
708
|
j[0] === "-" ? o.skips.push(j.slice(1)) : o.names.push(j);
|
|
636
709
|
}
|
|
637
710
|
function E(A, C) {
|
|
638
|
-
let j = 0, y = 0, I = -1,
|
|
711
|
+
let j = 0, y = 0, I = -1, _ = 0;
|
|
639
712
|
for (; j < A.length; )
|
|
640
713
|
if (y < C.length && (C[y] === A[j] || C[y] === "*"))
|
|
641
|
-
C[y] === "*" ? (I = y,
|
|
714
|
+
C[y] === "*" ? (I = y, _ = j, y++) : (j++, y++);
|
|
642
715
|
else if (I !== -1)
|
|
643
|
-
y = I + 1,
|
|
716
|
+
y = I + 1, _++, j = _;
|
|
644
717
|
else
|
|
645
718
|
return !1;
|
|
646
719
|
for (; y < C.length && C[y] === "*"; )
|
|
@@ -671,7 +744,7 @@ function Fo() {
|
|
|
671
744
|
}
|
|
672
745
|
return o.enable(o.load()), o;
|
|
673
746
|
}
|
|
674
|
-
return
|
|
747
|
+
return _t = n, _t;
|
|
675
748
|
}
|
|
676
749
|
var pn;
|
|
677
750
|
function jo() {
|
|
@@ -828,7 +901,7 @@ function $o() {
|
|
|
828
901
|
}), Ct;
|
|
829
902
|
}
|
|
830
903
|
var it = { exports: {} }, ot = { exports: {} }, Et = {}, yn;
|
|
831
|
-
function
|
|
904
|
+
function Ke() {
|
|
832
905
|
return yn || (yn = 1, function(n) {
|
|
833
906
|
Object.defineProperties(n, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } });
|
|
834
907
|
var e = {}, t = {};
|
|
@@ -840,64 +913,64 @@ function Ye() {
|
|
|
840
913
|
var P = b.length;
|
|
841
914
|
if (P % 4 > 0)
|
|
842
915
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
843
|
-
var
|
|
844
|
-
|
|
845
|
-
var R =
|
|
846
|
-
return [
|
|
916
|
+
var S = b.indexOf("=");
|
|
917
|
+
S === -1 && (S = P);
|
|
918
|
+
var R = S === P ? 0 : 4 - S % 4;
|
|
919
|
+
return [S, R];
|
|
847
920
|
}
|
|
848
921
|
function w(b) {
|
|
849
|
-
var P = u(b),
|
|
850
|
-
return (
|
|
922
|
+
var P = u(b), S = P[0], R = P[1];
|
|
923
|
+
return (S + R) * 3 / 4 - R;
|
|
851
924
|
}
|
|
852
|
-
function A(b, P,
|
|
853
|
-
return (P +
|
|
925
|
+
function A(b, P, S) {
|
|
926
|
+
return (P + S) * 3 / 4 - S;
|
|
854
927
|
}
|
|
855
928
|
function C(b) {
|
|
856
|
-
var P,
|
|
929
|
+
var P, S = u(b), R = S[0], v = S[1], p = new c(A(b, R, v)), B = 0, U = v > 0 ? R - 4 : R, F;
|
|
857
930
|
for (F = 0; F < U; F += 4)
|
|
858
|
-
P = l[b.charCodeAt(F)] << 18 | l[b.charCodeAt(F + 1)] << 12 | l[b.charCodeAt(F + 2)] << 6 | l[b.charCodeAt(F + 3)],
|
|
859
|
-
return v === 2 && (P = l[b.charCodeAt(F)] << 2 | l[b.charCodeAt(F + 1)] >> 4,
|
|
931
|
+
P = l[b.charCodeAt(F)] << 18 | l[b.charCodeAt(F + 1)] << 12 | l[b.charCodeAt(F + 2)] << 6 | l[b.charCodeAt(F + 3)], p[B++] = P >> 16 & 255, p[B++] = P >> 8 & 255, p[B++] = P & 255;
|
|
932
|
+
return v === 2 && (P = l[b.charCodeAt(F)] << 2 | l[b.charCodeAt(F + 1)] >> 4, p[B++] = P & 255), v === 1 && (P = l[b.charCodeAt(F)] << 10 | l[b.charCodeAt(F + 1)] << 4 | l[b.charCodeAt(F + 2)] >> 2, p[B++] = P >> 8 & 255, p[B++] = P & 255), p;
|
|
860
933
|
}
|
|
861
934
|
function j(b) {
|
|
862
935
|
return o[b >> 18 & 63] + o[b >> 12 & 63] + o[b >> 6 & 63] + o[b & 63];
|
|
863
936
|
}
|
|
864
|
-
function y(b, P,
|
|
865
|
-
for (var R, v = [],
|
|
866
|
-
R = (b[
|
|
937
|
+
function y(b, P, S) {
|
|
938
|
+
for (var R, v = [], p = P; p < S; p += 3)
|
|
939
|
+
R = (b[p] << 16 & 16711680) + (b[p + 1] << 8 & 65280) + (b[p + 2] & 255), v.push(j(R));
|
|
867
940
|
return v.join("");
|
|
868
941
|
}
|
|
869
942
|
function I(b) {
|
|
870
|
-
for (var P,
|
|
871
|
-
v.push(y(b,
|
|
872
|
-
return R === 1 ? (P = b[
|
|
943
|
+
for (var P, S = b.length, R = S % 3, v = [], p = 16383, B = 0, U = S - R; B < U; B += p)
|
|
944
|
+
v.push(y(b, B, B + p > U ? U : B + p));
|
|
945
|
+
return R === 1 ? (P = b[S - 1], v.push(
|
|
873
946
|
o[P >> 2] + o[P << 4 & 63] + "=="
|
|
874
|
-
)) : R === 2 && (P = (b[
|
|
947
|
+
)) : R === 2 && (P = (b[S - 2] << 8) + b[S - 1], v.push(
|
|
875
948
|
o[P >> 10] + o[P >> 4 & 63] + o[P << 2 & 63] + "="
|
|
876
949
|
)), v.join("");
|
|
877
950
|
}
|
|
878
|
-
var
|
|
951
|
+
var _ = {};
|
|
879
952
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
880
|
-
|
|
881
|
-
var
|
|
882
|
-
for (te += ee,
|
|
953
|
+
_.read = function(b, P, S, R, v) {
|
|
954
|
+
var p, B, U = v * 8 - R - 1, F = (1 << U) - 1, J = F >> 1, k = -7, te = S ? v - 1 : 0, ee = S ? -1 : 1, ae = b[P + te];
|
|
955
|
+
for (te += ee, p = ae & (1 << -k) - 1, ae >>= -k, k += U; k > 0; p = p * 256 + b[P + te], te += ee, k -= 8)
|
|
883
956
|
;
|
|
884
|
-
for (
|
|
957
|
+
for (B = p & (1 << -k) - 1, p >>= -k, k += R; k > 0; B = B * 256 + b[P + te], te += ee, k -= 8)
|
|
885
958
|
;
|
|
886
|
-
if (
|
|
887
|
-
|
|
959
|
+
if (p === 0)
|
|
960
|
+
p = 1 - J;
|
|
888
961
|
else {
|
|
889
|
-
if (
|
|
890
|
-
return
|
|
891
|
-
|
|
892
|
-
}
|
|
893
|
-
return (ae ? -1 : 1) *
|
|
894
|
-
},
|
|
895
|
-
var
|
|
896
|
-
for (P = Math.abs(P), isNaN(P) || P === 1 / 0 ? (U = isNaN(P) ? 1 : 0,
|
|
962
|
+
if (p === F)
|
|
963
|
+
return B ? NaN : (ae ? -1 : 1) * (1 / 0);
|
|
964
|
+
B = B + Math.pow(2, R), p = p - J;
|
|
965
|
+
}
|
|
966
|
+
return (ae ? -1 : 1) * B * Math.pow(2, p - R);
|
|
967
|
+
}, _.write = function(b, P, S, R, v, p) {
|
|
968
|
+
var B, U, F, J = p * 8 - v - 1, k = (1 << J) - 1, te = k >> 1, ee = v === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, ae = R ? 0 : p - 1, le = R ? 1 : -1, me = P < 0 || P === 0 && 1 / P < 0 ? 1 : 0;
|
|
969
|
+
for (P = Math.abs(P), isNaN(P) || P === 1 / 0 ? (U = isNaN(P) ? 1 : 0, B = k) : (B = Math.floor(Math.log(P) / Math.LN2), P * (F = Math.pow(2, -B)) < 1 && (B--, F *= 2), B + te >= 1 ? P += ee / F : P += ee * Math.pow(2, 1 - te), P * F >= 2 && (B++, F /= 2), B + te >= k ? (U = 0, B = k) : B + te >= 1 ? (U = (P * F - 1) * Math.pow(2, v), B = B + te) : (U = P * Math.pow(2, te - 1) * Math.pow(2, v), B = 0)); v >= 8; b[S + ae] = U & 255, ae += le, U /= 256, v -= 8)
|
|
897
970
|
;
|
|
898
|
-
for (
|
|
971
|
+
for (B = B << v | U, J += v; J > 0; b[S + ae] = B & 255, ae += le, B /= 256, J -= 8)
|
|
899
972
|
;
|
|
900
|
-
b[
|
|
973
|
+
b[S + ae - le] |= me * 128;
|
|
901
974
|
};
|
|
902
975
|
/*!
|
|
903
976
|
* The buffer module from node.js, for the browser.
|
|
@@ -906,20 +979,20 @@ function Ye() {
|
|
|
906
979
|
* @license MIT
|
|
907
980
|
*/
|
|
908
981
|
(function(b) {
|
|
909
|
-
const P = t,
|
|
982
|
+
const P = t, S = _, R = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
|
|
910
983
|
b.Buffer = k, b.SlowBuffer = L, b.INSPECT_MAX_BYTES = 50;
|
|
911
984
|
const v = 2147483647;
|
|
912
985
|
b.kMaxLength = v;
|
|
913
|
-
const { Uint8Array:
|
|
986
|
+
const { Uint8Array: p, ArrayBuffer: B, SharedArrayBuffer: U } = globalThis;
|
|
914
987
|
k.TYPED_ARRAY_SUPPORT = F(), !k.TYPED_ARRAY_SUPPORT && typeof console != "undefined" && typeof console.error == "function" && console.error(
|
|
915
988
|
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
916
989
|
);
|
|
917
990
|
function F() {
|
|
918
991
|
try {
|
|
919
|
-
const s = new
|
|
992
|
+
const s = new p(1), r = { foo: function() {
|
|
920
993
|
return 42;
|
|
921
994
|
} };
|
|
922
|
-
return Object.setPrototypeOf(r,
|
|
995
|
+
return Object.setPrototypeOf(r, p.prototype), Object.setPrototypeOf(s, r), s.foo() === 42;
|
|
923
996
|
} catch (s) {
|
|
924
997
|
return !1;
|
|
925
998
|
}
|
|
@@ -940,7 +1013,7 @@ function Ye() {
|
|
|
940
1013
|
function J(s) {
|
|
941
1014
|
if (s > v)
|
|
942
1015
|
throw new RangeError('The value "' + s + '" is invalid for option "size"');
|
|
943
|
-
const r = new
|
|
1016
|
+
const r = new p(s);
|
|
944
1017
|
return Object.setPrototypeOf(r, k.prototype), r;
|
|
945
1018
|
}
|
|
946
1019
|
function k(s, r, i) {
|
|
@@ -957,13 +1030,13 @@ function Ye() {
|
|
|
957
1030
|
function te(s, r, i) {
|
|
958
1031
|
if (typeof s == "string")
|
|
959
1032
|
return me(s, r);
|
|
960
|
-
if (
|
|
1033
|
+
if (B.isView(s))
|
|
961
1034
|
return ge(s);
|
|
962
1035
|
if (s == null)
|
|
963
1036
|
throw new TypeError(
|
|
964
1037
|
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof s
|
|
965
1038
|
);
|
|
966
|
-
if (Pe(s,
|
|
1039
|
+
if (Pe(s, B) || s && Pe(s.buffer, B) || typeof U != "undefined" && (Pe(s, U) || s && Pe(s.buffer, U)))
|
|
967
1040
|
return ie(s, r, i);
|
|
968
1041
|
if (typeof s == "number")
|
|
969
1042
|
throw new TypeError(
|
|
@@ -972,7 +1045,7 @@ function Ye() {
|
|
|
972
1045
|
const m = s.valueOf && s.valueOf();
|
|
973
1046
|
if (m != null && m !== s)
|
|
974
1047
|
return k.from(m, r, i);
|
|
975
|
-
const T =
|
|
1048
|
+
const T = Se(s);
|
|
976
1049
|
if (T) return T;
|
|
977
1050
|
if (typeof Symbol != "undefined" && Symbol.toPrimitive != null && typeof s[Symbol.toPrimitive] == "function")
|
|
978
1051
|
return k.from(s[Symbol.toPrimitive]("string"), r, i);
|
|
@@ -982,7 +1055,7 @@ function Ye() {
|
|
|
982
1055
|
}
|
|
983
1056
|
k.from = function(s, r, i) {
|
|
984
1057
|
return te(s, r, i);
|
|
985
|
-
}, Object.setPrototypeOf(k.prototype,
|
|
1058
|
+
}, Object.setPrototypeOf(k.prototype, p.prototype), Object.setPrototypeOf(k, p);
|
|
986
1059
|
function ee(s) {
|
|
987
1060
|
if (typeof s != "number")
|
|
988
1061
|
throw new TypeError('"size" argument must be of type number');
|
|
@@ -1018,8 +1091,8 @@ function Ye() {
|
|
|
1018
1091
|
return i;
|
|
1019
1092
|
}
|
|
1020
1093
|
function ge(s) {
|
|
1021
|
-
if (Pe(s,
|
|
1022
|
-
const r = new
|
|
1094
|
+
if (Pe(s, p)) {
|
|
1095
|
+
const r = new p(s);
|
|
1023
1096
|
return ie(r.buffer, r.byteOffset, r.byteLength);
|
|
1024
1097
|
}
|
|
1025
1098
|
return ce(s);
|
|
@@ -1030,9 +1103,9 @@ function Ye() {
|
|
|
1030
1103
|
if (s.byteLength < r + (i || 0))
|
|
1031
1104
|
throw new RangeError('"length" is outside of buffer bounds');
|
|
1032
1105
|
let m;
|
|
1033
|
-
return r === void 0 && i === void 0 ? m = new
|
|
1106
|
+
return r === void 0 && i === void 0 ? m = new p(s) : i === void 0 ? m = new p(s, r) : m = new p(s, r, i), Object.setPrototypeOf(m, k.prototype), m;
|
|
1034
1107
|
}
|
|
1035
|
-
function
|
|
1108
|
+
function Se(s) {
|
|
1036
1109
|
if (k.isBuffer(s)) {
|
|
1037
1110
|
const r = he(s.length) | 0, i = J(r);
|
|
1038
1111
|
return i.length === 0 || s.copy(i, 0, 0, r), i;
|
|
@@ -1053,7 +1126,7 @@ function Ye() {
|
|
|
1053
1126
|
k.isBuffer = function(r) {
|
|
1054
1127
|
return r != null && r._isBuffer === !0 && r !== k.prototype;
|
|
1055
1128
|
}, k.compare = function(r, i) {
|
|
1056
|
-
if (Pe(r,
|
|
1129
|
+
if (Pe(r, p) && (r = k.from(r, r.offset, r.byteLength)), Pe(i, p) && (i = k.from(i, i.offset, i.byteLength)), !k.isBuffer(r) || !k.isBuffer(i))
|
|
1057
1130
|
throw new TypeError(
|
|
1058
1131
|
'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
|
|
1059
1132
|
);
|
|
@@ -1095,8 +1168,8 @@ function Ye() {
|
|
|
1095
1168
|
let N = 0;
|
|
1096
1169
|
for (m = 0; m < r.length; ++m) {
|
|
1097
1170
|
let W = r[m];
|
|
1098
|
-
if (Pe(W,
|
|
1099
|
-
N + W.length > T.length ? (k.isBuffer(W) || (W = k.from(W)), W.copy(T, N)) :
|
|
1171
|
+
if (Pe(W, p))
|
|
1172
|
+
N + W.length > T.length ? (k.isBuffer(W) || (W = k.from(W)), W.copy(T, N)) : p.prototype.set.call(
|
|
1100
1173
|
T,
|
|
1101
1174
|
W,
|
|
1102
1175
|
N
|
|
@@ -1112,7 +1185,7 @@ function Ye() {
|
|
|
1112
1185
|
function $(s, r) {
|
|
1113
1186
|
if (k.isBuffer(s))
|
|
1114
1187
|
return s.length;
|
|
1115
|
-
if (
|
|
1188
|
+
if (B.isView(s) || Pe(s, B))
|
|
1116
1189
|
return s.byteLength;
|
|
1117
1190
|
if (typeof s != "string")
|
|
1118
1191
|
throw new TypeError(
|
|
@@ -1211,7 +1284,7 @@ function Ye() {
|
|
|
1211
1284
|
const i = b.INSPECT_MAX_BYTES;
|
|
1212
1285
|
return r = this.toString("hex", 0, i).replace(/(.{2})/g, "$1 ").trim(), this.length > i && (r += " ... "), "<Buffer " + r + ">";
|
|
1213
1286
|
}, R && (k.prototype[R] = k.prototype.inspect), k.prototype.compare = function(r, i, m, T, N) {
|
|
1214
|
-
if (Pe(r,
|
|
1287
|
+
if (Pe(r, p) && (r = k.from(r, r.offset, r.byteLength)), !k.isBuffer(r))
|
|
1215
1288
|
throw new TypeError(
|
|
1216
1289
|
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof r
|
|
1217
1290
|
);
|
|
@@ -1233,7 +1306,7 @@ function Ye() {
|
|
|
1233
1306
|
}
|
|
1234
1307
|
return W < Z ? -1 : Z < W ? 1 : 0;
|
|
1235
1308
|
};
|
|
1236
|
-
function
|
|
1309
|
+
function M(s, r, i, m, T) {
|
|
1237
1310
|
if (s.length === 0) return -1;
|
|
1238
1311
|
if (typeof i == "string" ? (m = i, i = 0) : i > 2147483647 ? i = 2147483647 : i < -2147483648 && (i = -2147483648), i = +i, yt(i) && (i = T ? 0 : s.length - 1), i < 0 && (i = s.length + i), i >= s.length) {
|
|
1239
1312
|
if (T) return -1;
|
|
@@ -1244,7 +1317,7 @@ function Ye() {
|
|
|
1244
1317
|
if (typeof r == "string" && (r = k.from(r, m)), k.isBuffer(r))
|
|
1245
1318
|
return r.length === 0 ? -1 : O(s, r, i, m, T);
|
|
1246
1319
|
if (typeof r == "number")
|
|
1247
|
-
return r = r & 255, typeof
|
|
1320
|
+
return r = r & 255, typeof p.prototype.indexOf == "function" ? T ? p.prototype.indexOf.call(s, r, i) : p.prototype.lastIndexOf.call(s, r, i) : O(s, [r], i, m, T);
|
|
1248
1321
|
throw new TypeError("val must be string, number or Buffer");
|
|
1249
1322
|
}
|
|
1250
1323
|
function O(s, r, i, m, T) {
|
|
@@ -1280,9 +1353,9 @@ function Ye() {
|
|
|
1280
1353
|
k.prototype.includes = function(r, i, m) {
|
|
1281
1354
|
return this.indexOf(r, i, m) !== -1;
|
|
1282
1355
|
}, k.prototype.indexOf = function(r, i, m) {
|
|
1283
|
-
return
|
|
1356
|
+
return M(this, r, i, m, !0);
|
|
1284
1357
|
}, k.prototype.lastIndexOf = function(r, i, m) {
|
|
1285
|
-
return
|
|
1358
|
+
return M(this, r, i, m, !1);
|
|
1286
1359
|
};
|
|
1287
1360
|
function D(s, r, i, m) {
|
|
1288
1361
|
i = Number(i) || 0;
|
|
@@ -1298,17 +1371,17 @@ function Ye() {
|
|
|
1298
1371
|
}
|
|
1299
1372
|
return W;
|
|
1300
1373
|
}
|
|
1301
|
-
function G(s, r, i, m) {
|
|
1302
|
-
return Qe(gt(r, s.length - i), s, i, m);
|
|
1303
|
-
}
|
|
1304
1374
|
function V(s, r, i, m) {
|
|
1305
|
-
return
|
|
1375
|
+
return et(gt(r, s.length - i), s, i, m);
|
|
1376
|
+
}
|
|
1377
|
+
function G(s, r, i, m) {
|
|
1378
|
+
return et(wo(r), s, i, m);
|
|
1306
1379
|
}
|
|
1307
1380
|
function d(s, r, i, m) {
|
|
1308
|
-
return
|
|
1381
|
+
return et(cn(r), s, i, m);
|
|
1309
1382
|
}
|
|
1310
|
-
function
|
|
1311
|
-
return
|
|
1383
|
+
function g(s, r, i, m) {
|
|
1384
|
+
return et(So(r, s.length - i), s, i, m);
|
|
1312
1385
|
}
|
|
1313
1386
|
k.prototype.write = function(r, i, m, T) {
|
|
1314
1387
|
if (i === void 0)
|
|
@@ -1332,18 +1405,18 @@ function Ye() {
|
|
|
1332
1405
|
return D(this, r, i, m);
|
|
1333
1406
|
case "utf8":
|
|
1334
1407
|
case "utf-8":
|
|
1335
|
-
return
|
|
1408
|
+
return V(this, r, i, m);
|
|
1336
1409
|
case "ascii":
|
|
1337
1410
|
case "latin1":
|
|
1338
1411
|
case "binary":
|
|
1339
|
-
return
|
|
1412
|
+
return G(this, r, i, m);
|
|
1340
1413
|
case "base64":
|
|
1341
1414
|
return d(this, r, i, m);
|
|
1342
1415
|
case "ucs2":
|
|
1343
1416
|
case "ucs-2":
|
|
1344
1417
|
case "utf16le":
|
|
1345
1418
|
case "utf-16le":
|
|
1346
|
-
return
|
|
1419
|
+
return g(this, r, i, m);
|
|
1347
1420
|
default:
|
|
1348
1421
|
if (W) throw new TypeError("Unknown encoding: " + T);
|
|
1349
1422
|
T = ("" + T).toLowerCase(), W = !0;
|
|
@@ -1416,7 +1489,7 @@ function Ye() {
|
|
|
1416
1489
|
(!r || r < 0) && (r = 0), (!i || i < 0 || i > m) && (i = m);
|
|
1417
1490
|
let T = "";
|
|
1418
1491
|
for (let N = r; N < i; ++N)
|
|
1419
|
-
T +=
|
|
1492
|
+
T += _o[s[N]];
|
|
1420
1493
|
return T;
|
|
1421
1494
|
}
|
|
1422
1495
|
function ye(s, r, i) {
|
|
@@ -1461,13 +1534,13 @@ function Ye() {
|
|
|
1461
1534
|
}, k.prototype.readBigUInt64LE = ke(function(r) {
|
|
1462
1535
|
r = r >>> 0, je(r, "offset");
|
|
1463
1536
|
const i = this[r], m = this[r + 7];
|
|
1464
|
-
(i === void 0 || m === void 0) &&
|
|
1537
|
+
(i === void 0 || m === void 0) && Ge(r, this.length - 8);
|
|
1465
1538
|
const T = i + this[++r] * ne(2, 8) + this[++r] * ne(2, 16) + this[++r] * ne(2, 24), N = this[++r] + this[++r] * ne(2, 8) + this[++r] * ne(2, 16) + m * ne(2, 24);
|
|
1466
1539
|
return BigInt(T) + (BigInt(N) << BigInt(32));
|
|
1467
1540
|
}), k.prototype.readBigUInt64BE = ke(function(r) {
|
|
1468
1541
|
r = r >>> 0, je(r, "offset");
|
|
1469
1542
|
const i = this[r], m = this[r + 7];
|
|
1470
|
-
(i === void 0 || m === void 0) &&
|
|
1543
|
+
(i === void 0 || m === void 0) && Ge(r, this.length - 8);
|
|
1471
1544
|
const T = i * ne(2, 24) + this[++r] * ne(2, 16) + this[++r] * ne(2, 8) + this[++r], N = this[++r] * ne(2, 24) + this[++r] * ne(2, 16) + this[++r] * ne(2, 8) + m;
|
|
1472
1545
|
return (BigInt(T) << BigInt(32)) + BigInt(N);
|
|
1473
1546
|
}), k.prototype.readIntLE = function(r, i, m) {
|
|
@@ -1499,24 +1572,24 @@ function Ye() {
|
|
|
1499
1572
|
}, k.prototype.readBigInt64LE = ke(function(r) {
|
|
1500
1573
|
r = r >>> 0, je(r, "offset");
|
|
1501
1574
|
const i = this[r], m = this[r + 7];
|
|
1502
|
-
(i === void 0 || m === void 0) &&
|
|
1575
|
+
(i === void 0 || m === void 0) && Ge(r, this.length - 8);
|
|
1503
1576
|
const T = this[r + 4] + this[r + 5] * ne(2, 8) + this[r + 6] * ne(2, 16) + (m << 24);
|
|
1504
1577
|
return (BigInt(T) << BigInt(32)) + BigInt(i + this[++r] * ne(2, 8) + this[++r] * ne(2, 16) + this[++r] * ne(2, 24));
|
|
1505
1578
|
}), k.prototype.readBigInt64BE = ke(function(r) {
|
|
1506
1579
|
r = r >>> 0, je(r, "offset");
|
|
1507
1580
|
const i = this[r], m = this[r + 7];
|
|
1508
|
-
(i === void 0 || m === void 0) &&
|
|
1581
|
+
(i === void 0 || m === void 0) && Ge(r, this.length - 8);
|
|
1509
1582
|
const T = (i << 24) + // Overflow
|
|
1510
1583
|
this[++r] * ne(2, 16) + this[++r] * ne(2, 8) + this[++r];
|
|
1511
1584
|
return (BigInt(T) << BigInt(32)) + BigInt(this[++r] * ne(2, 24) + this[++r] * ne(2, 16) + this[++r] * ne(2, 8) + m);
|
|
1512
1585
|
}), k.prototype.readFloatLE = function(r, i) {
|
|
1513
|
-
return r = r >>> 0, i || oe(r, 4, this.length),
|
|
1586
|
+
return r = r >>> 0, i || oe(r, 4, this.length), S.read(this, r, !0, 23, 4);
|
|
1514
1587
|
}, k.prototype.readFloatBE = function(r, i) {
|
|
1515
|
-
return r = r >>> 0, i || oe(r, 4, this.length),
|
|
1588
|
+
return r = r >>> 0, i || oe(r, 4, this.length), S.read(this, r, !1, 23, 4);
|
|
1516
1589
|
}, k.prototype.readDoubleLE = function(r, i) {
|
|
1517
|
-
return r = r >>> 0, i || oe(r, 8, this.length),
|
|
1590
|
+
return r = r >>> 0, i || oe(r, 8, this.length), S.read(this, r, !0, 52, 8);
|
|
1518
1591
|
}, k.prototype.readDoubleBE = function(r, i) {
|
|
1519
|
-
return r = r >>> 0, i || oe(r, 8, this.length),
|
|
1592
|
+
return r = r >>> 0, i || oe(r, 8, this.length), S.read(this, r, !1, 52, 8);
|
|
1520
1593
|
};
|
|
1521
1594
|
function ue(s, r, i, m, T, N) {
|
|
1522
1595
|
if (!k.isBuffer(s)) throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
@@ -1608,7 +1681,7 @@ function Ye() {
|
|
|
1608
1681
|
if (i < 0) throw new RangeError("Index out of range");
|
|
1609
1682
|
}
|
|
1610
1683
|
function Oe(s, r, i, m, T) {
|
|
1611
|
-
return r = +r, i = i >>> 0, T || Fe(s, r, i, 4),
|
|
1684
|
+
return r = +r, i = i >>> 0, T || Fe(s, r, i, 4), S.write(s, r, i, m, 23, 4), i + 4;
|
|
1612
1685
|
}
|
|
1613
1686
|
k.prototype.writeFloatLE = function(r, i, m) {
|
|
1614
1687
|
return Oe(this, r, i, !0, m);
|
|
@@ -1616,7 +1689,7 @@ function Ye() {
|
|
|
1616
1689
|
return Oe(this, r, i, !1, m);
|
|
1617
1690
|
};
|
|
1618
1691
|
function Ie(s, r, i, m, T) {
|
|
1619
|
-
return r = +r, i = i >>> 0, T || Fe(s, r, i, 8),
|
|
1692
|
+
return r = +r, i = i >>> 0, T || Fe(s, r, i, 8), S.write(s, r, i, m, 52, 8), i + 8;
|
|
1620
1693
|
}
|
|
1621
1694
|
k.prototype.writeDoubleLE = function(r, i, m) {
|
|
1622
1695
|
return Ie(this, r, i, !0, m);
|
|
@@ -1631,7 +1704,7 @@ function Ye() {
|
|
|
1631
1704
|
if (T < 0) throw new RangeError("sourceEnd out of bounds");
|
|
1632
1705
|
T > this.length && (T = this.length), r.length - i < T - m && (T = r.length - i + m);
|
|
1633
1706
|
const N = T - m;
|
|
1634
|
-
return this === r && typeof
|
|
1707
|
+
return this === r && typeof p.prototype.copyWithin == "function" ? this.copyWithin(i, m, T) : p.prototype.set.call(
|
|
1635
1708
|
r,
|
|
1636
1709
|
this.subarray(m, T),
|
|
1637
1710
|
i
|
|
@@ -1665,9 +1738,9 @@ function Ye() {
|
|
|
1665
1738
|
}
|
|
1666
1739
|
return this;
|
|
1667
1740
|
};
|
|
1668
|
-
const
|
|
1741
|
+
const _e = {};
|
|
1669
1742
|
function pt(s, r, i) {
|
|
1670
|
-
|
|
1743
|
+
_e[s] = class extends i {
|
|
1671
1744
|
constructor() {
|
|
1672
1745
|
super(), Object.defineProperty(this, "message", {
|
|
1673
1746
|
value: r.apply(this, arguments),
|
|
@@ -1719,22 +1792,22 @@ function Ye() {
|
|
|
1719
1792
|
return `${s.slice(0, i)}${r}`;
|
|
1720
1793
|
}
|
|
1721
1794
|
function mo(s, r, i) {
|
|
1722
|
-
je(r, "offset"), (s[r] === void 0 || s[r + i] === void 0) &&
|
|
1795
|
+
je(r, "offset"), (s[r] === void 0 || s[r + i] === void 0) && Ge(r, s.length - (i + 1));
|
|
1723
1796
|
}
|
|
1724
1797
|
function ln(s, r, i, m, T, N) {
|
|
1725
1798
|
if (s > i || s < r) {
|
|
1726
1799
|
const W = typeof r == "bigint" ? "n" : "";
|
|
1727
1800
|
let Z;
|
|
1728
|
-
throw r === 0 || r === BigInt(0) ? Z = `>= 0${W} and < 2${W} ** ${(N + 1) * 8}${W}` : Z = `>= -(2${W} ** ${(N + 1) * 8 - 1}${W}) and < 2 ** ${(N + 1) * 8 - 1}${W}`, new
|
|
1801
|
+
throw r === 0 || r === BigInt(0) ? Z = `>= 0${W} and < 2${W} ** ${(N + 1) * 8}${W}` : Z = `>= -(2${W} ** ${(N + 1) * 8 - 1}${W}) and < 2 ** ${(N + 1) * 8 - 1}${W}`, new _e.ERR_OUT_OF_RANGE("value", Z, s);
|
|
1729
1802
|
}
|
|
1730
1803
|
mo(m, T, N);
|
|
1731
1804
|
}
|
|
1732
1805
|
function je(s, r) {
|
|
1733
1806
|
if (typeof s != "number")
|
|
1734
|
-
throw new
|
|
1807
|
+
throw new _e.ERR_INVALID_ARG_TYPE(r, "number", s);
|
|
1735
1808
|
}
|
|
1736
|
-
function
|
|
1737
|
-
throw Math.floor(s) !== s ? (je(s, i), new
|
|
1809
|
+
function Ge(s, r, i) {
|
|
1810
|
+
throw Math.floor(s) !== s ? (je(s, i), new _e.ERR_OUT_OF_RANGE("offset", "an integer", s)) : r < 0 ? new _e.ERR_BUFFER_OUT_OF_BOUNDS() : new _e.ERR_OUT_OF_RANGE(
|
|
1738
1811
|
"offset",
|
|
1739
1812
|
`>= 0 and <= ${r}`,
|
|
1740
1813
|
s
|
|
@@ -1807,7 +1880,7 @@ function Ye() {
|
|
|
1807
1880
|
r.push(s.charCodeAt(i) & 255);
|
|
1808
1881
|
return r;
|
|
1809
1882
|
}
|
|
1810
|
-
function
|
|
1883
|
+
function So(s, r) {
|
|
1811
1884
|
let i, m, T;
|
|
1812
1885
|
const N = [];
|
|
1813
1886
|
for (let W = 0; W < s.length && !((r -= 2) < 0); ++W)
|
|
@@ -1817,7 +1890,7 @@ function Ye() {
|
|
|
1817
1890
|
function cn(s) {
|
|
1818
1891
|
return P.toByteArray(bo(s));
|
|
1819
1892
|
}
|
|
1820
|
-
function
|
|
1893
|
+
function et(s, r, i, m) {
|
|
1821
1894
|
let T;
|
|
1822
1895
|
for (T = 0; T < m && !(T + i >= r.length || T >= s.length); ++T)
|
|
1823
1896
|
r[T + i] = s[T];
|
|
@@ -1829,7 +1902,7 @@ function Ye() {
|
|
|
1829
1902
|
function yt(s) {
|
|
1830
1903
|
return s !== s;
|
|
1831
1904
|
}
|
|
1832
|
-
const
|
|
1905
|
+
const _o = function() {
|
|
1833
1906
|
const s = "0123456789abcdef", r = new Array(256);
|
|
1834
1907
|
for (let i = 0; i < 16; ++i) {
|
|
1835
1908
|
const m = i * 16;
|
|
@@ -1853,7 +1926,7 @@ function Ye() {
|
|
|
1853
1926
|
var mn;
|
|
1854
1927
|
function Ki() {
|
|
1855
1928
|
return mn || (mn = 1, function(n, e) {
|
|
1856
|
-
var t =
|
|
1929
|
+
var t = Ke(), o = t.Buffer;
|
|
1857
1930
|
function l(E, a) {
|
|
1858
1931
|
for (var f in E)
|
|
1859
1932
|
a[f] = E[f];
|
|
@@ -1912,16 +1985,16 @@ var at = { exports: {} }, st = { exports: {} }, bn;
|
|
|
1912
1985
|
function en() {
|
|
1913
1986
|
if (bn) return st.exports;
|
|
1914
1987
|
bn = 1;
|
|
1915
|
-
var n = typeof Reflect == "object" ? Reflect : null, e = n && typeof n.apply == "function" ? n.apply : function(R, v,
|
|
1916
|
-
return Function.prototype.apply.call(R, v,
|
|
1988
|
+
var n = typeof Reflect == "object" ? Reflect : null, e = n && typeof n.apply == "function" ? n.apply : function(R, v, p) {
|
|
1989
|
+
return Function.prototype.apply.call(R, v, p);
|
|
1917
1990
|
}, t;
|
|
1918
1991
|
n && typeof n.ownKeys == "function" ? t = n.ownKeys : Object.getOwnPropertySymbols ? t = function(R) {
|
|
1919
1992
|
return Object.getOwnPropertyNames(R).concat(Object.getOwnPropertySymbols(R));
|
|
1920
1993
|
} : t = function(R) {
|
|
1921
1994
|
return Object.getOwnPropertyNames(R);
|
|
1922
1995
|
};
|
|
1923
|
-
function o(
|
|
1924
|
-
console && console.warn && console.warn(
|
|
1996
|
+
function o(S) {
|
|
1997
|
+
console && console.warn && console.warn(S);
|
|
1925
1998
|
}
|
|
1926
1999
|
var l = Number.isNaN || function(R) {
|
|
1927
2000
|
return R !== R;
|
|
@@ -1931,19 +2004,19 @@ function en() {
|
|
|
1931
2004
|
}
|
|
1932
2005
|
st.exports = c, st.exports.once = h, c.EventEmitter = c, c.prototype._events = void 0, c.prototype._eventsCount = 0, c.prototype._maxListeners = void 0;
|
|
1933
2006
|
var E = 10;
|
|
1934
|
-
function a(
|
|
1935
|
-
if (typeof
|
|
1936
|
-
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof
|
|
2007
|
+
function a(S) {
|
|
2008
|
+
if (typeof S != "function")
|
|
2009
|
+
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof S);
|
|
1937
2010
|
}
|
|
1938
2011
|
Object.defineProperty(c, "defaultMaxListeners", {
|
|
1939
2012
|
enumerable: !0,
|
|
1940
2013
|
get: function() {
|
|
1941
2014
|
return E;
|
|
1942
2015
|
},
|
|
1943
|
-
set: function(
|
|
1944
|
-
if (typeof
|
|
1945
|
-
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' +
|
|
1946
|
-
E =
|
|
2016
|
+
set: function(S) {
|
|
2017
|
+
if (typeof S != "number" || S < 0 || l(S))
|
|
2018
|
+
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + S + ".");
|
|
2019
|
+
E = S;
|
|
1947
2020
|
}
|
|
1948
2021
|
}), c.init = function() {
|
|
1949
2022
|
(this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
|
@@ -1952,19 +2025,19 @@ function en() {
|
|
|
1952
2025
|
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + R + ".");
|
|
1953
2026
|
return this._maxListeners = R, this;
|
|
1954
2027
|
};
|
|
1955
|
-
function f(
|
|
1956
|
-
return
|
|
2028
|
+
function f(S) {
|
|
2029
|
+
return S._maxListeners === void 0 ? c.defaultMaxListeners : S._maxListeners;
|
|
1957
2030
|
}
|
|
1958
2031
|
c.prototype.getMaxListeners = function() {
|
|
1959
2032
|
return f(this);
|
|
1960
2033
|
}, c.prototype.emit = function(R) {
|
|
1961
|
-
for (var v = [],
|
|
1962
|
-
var
|
|
2034
|
+
for (var v = [], p = 1; p < arguments.length; p++) v.push(arguments[p]);
|
|
2035
|
+
var B = R === "error", U = this._events;
|
|
1963
2036
|
if (U !== void 0)
|
|
1964
|
-
|
|
1965
|
-
else if (!
|
|
2037
|
+
B = B && U.error === void 0;
|
|
2038
|
+
else if (!B)
|
|
1966
2039
|
return !1;
|
|
1967
|
-
if (
|
|
2040
|
+
if (B) {
|
|
1968
2041
|
var F;
|
|
1969
2042
|
if (v.length > 0 && (F = v[0]), F instanceof Error)
|
|
1970
2043
|
throw F;
|
|
@@ -1977,24 +2050,24 @@ function en() {
|
|
|
1977
2050
|
if (typeof k == "function")
|
|
1978
2051
|
e(k, this, v);
|
|
1979
2052
|
else
|
|
1980
|
-
for (var te = k.length, ee = y(k, te),
|
|
1981
|
-
e(ee[
|
|
2053
|
+
for (var te = k.length, ee = y(k, te), p = 0; p < te; ++p)
|
|
2054
|
+
e(ee[p], this, v);
|
|
1982
2055
|
return !0;
|
|
1983
2056
|
};
|
|
1984
|
-
function u(
|
|
1985
|
-
var
|
|
1986
|
-
if (a(v), U =
|
|
2057
|
+
function u(S, R, v, p) {
|
|
2058
|
+
var B, U, F;
|
|
2059
|
+
if (a(v), U = S._events, U === void 0 ? (U = S._events = /* @__PURE__ */ Object.create(null), S._eventsCount = 0) : (U.newListener !== void 0 && (S.emit(
|
|
1987
2060
|
"newListener",
|
|
1988
2061
|
R,
|
|
1989
2062
|
v.listener ? v.listener : v
|
|
1990
|
-
), U =
|
|
1991
|
-
F = U[R] = v, ++
|
|
1992
|
-
else if (typeof F == "function" ? F = U[R] =
|
|
2063
|
+
), U = S._events), F = U[R]), F === void 0)
|
|
2064
|
+
F = U[R] = v, ++S._eventsCount;
|
|
2065
|
+
else if (typeof F == "function" ? F = U[R] = p ? [v, F] : [F, v] : p ? F.unshift(v) : F.push(v), B = f(S), B > 0 && F.length > B && !F.warned) {
|
|
1993
2066
|
F.warned = !0;
|
|
1994
2067
|
var J = new Error("Possible EventEmitter memory leak detected. " + F.length + " " + String(R) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
1995
|
-
J.name = "MaxListenersExceededWarning", J.emitter =
|
|
2068
|
+
J.name = "MaxListenersExceededWarning", J.emitter = S, J.type = R, J.count = F.length, o(J);
|
|
1996
2069
|
}
|
|
1997
|
-
return
|
|
2070
|
+
return S;
|
|
1998
2071
|
}
|
|
1999
2072
|
c.prototype.addListener = function(R, v) {
|
|
2000
2073
|
return u(this, R, v, !1);
|
|
@@ -2005,70 +2078,70 @@ function en() {
|
|
|
2005
2078
|
if (!this.fired)
|
|
2006
2079
|
return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
2007
2080
|
}
|
|
2008
|
-
function A(
|
|
2009
|
-
var
|
|
2010
|
-
return
|
|
2081
|
+
function A(S, R, v) {
|
|
2082
|
+
var p = { fired: !1, wrapFn: void 0, target: S, type: R, listener: v }, B = w.bind(p);
|
|
2083
|
+
return B.listener = v, p.wrapFn = B, B;
|
|
2011
2084
|
}
|
|
2012
2085
|
c.prototype.once = function(R, v) {
|
|
2013
2086
|
return a(v), this.on(R, A(this, R, v)), this;
|
|
2014
2087
|
}, c.prototype.prependOnceListener = function(R, v) {
|
|
2015
2088
|
return a(v), this.prependListener(R, A(this, R, v)), this;
|
|
2016
2089
|
}, c.prototype.removeListener = function(R, v) {
|
|
2017
|
-
var
|
|
2018
|
-
if (a(v),
|
|
2090
|
+
var p, B, U, F, J;
|
|
2091
|
+
if (a(v), B = this._events, B === void 0)
|
|
2019
2092
|
return this;
|
|
2020
|
-
if (
|
|
2093
|
+
if (p = B[R], p === void 0)
|
|
2021
2094
|
return this;
|
|
2022
|
-
if (
|
|
2023
|
-
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete
|
|
2024
|
-
else if (typeof
|
|
2025
|
-
for (U = -1, F =
|
|
2026
|
-
if (
|
|
2027
|
-
J =
|
|
2095
|
+
if (p === v || p.listener === v)
|
|
2096
|
+
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete B[R], B.removeListener && this.emit("removeListener", R, p.listener || v));
|
|
2097
|
+
else if (typeof p != "function") {
|
|
2098
|
+
for (U = -1, F = p.length - 1; F >= 0; F--)
|
|
2099
|
+
if (p[F] === v || p[F].listener === v) {
|
|
2100
|
+
J = p[F].listener, U = F;
|
|
2028
2101
|
break;
|
|
2029
2102
|
}
|
|
2030
2103
|
if (U < 0)
|
|
2031
2104
|
return this;
|
|
2032
|
-
U === 0 ?
|
|
2105
|
+
U === 0 ? p.shift() : I(p, U), p.length === 1 && (B[R] = p[0]), B.removeListener !== void 0 && this.emit("removeListener", R, J || v);
|
|
2033
2106
|
}
|
|
2034
2107
|
return this;
|
|
2035
2108
|
}, c.prototype.off = c.prototype.removeListener, c.prototype.removeAllListeners = function(R) {
|
|
2036
|
-
var v,
|
|
2037
|
-
if (
|
|
2109
|
+
var v, p, B;
|
|
2110
|
+
if (p = this._events, p === void 0)
|
|
2038
2111
|
return this;
|
|
2039
|
-
if (
|
|
2040
|
-
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) :
|
|
2112
|
+
if (p.removeListener === void 0)
|
|
2113
|
+
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : p[R] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete p[R]), this;
|
|
2041
2114
|
if (arguments.length === 0) {
|
|
2042
|
-
var U = Object.keys(
|
|
2043
|
-
for (
|
|
2044
|
-
F = U[
|
|
2115
|
+
var U = Object.keys(p), F;
|
|
2116
|
+
for (B = 0; B < U.length; ++B)
|
|
2117
|
+
F = U[B], F !== "removeListener" && this.removeAllListeners(F);
|
|
2045
2118
|
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
|
2046
2119
|
}
|
|
2047
|
-
if (v =
|
|
2120
|
+
if (v = p[R], typeof v == "function")
|
|
2048
2121
|
this.removeListener(R, v);
|
|
2049
2122
|
else if (v !== void 0)
|
|
2050
|
-
for (
|
|
2051
|
-
this.removeListener(R, v[
|
|
2123
|
+
for (B = v.length - 1; B >= 0; B--)
|
|
2124
|
+
this.removeListener(R, v[B]);
|
|
2052
2125
|
return this;
|
|
2053
2126
|
};
|
|
2054
|
-
function C(
|
|
2055
|
-
var
|
|
2056
|
-
if (
|
|
2127
|
+
function C(S, R, v) {
|
|
2128
|
+
var p = S._events;
|
|
2129
|
+
if (p === void 0)
|
|
2057
2130
|
return [];
|
|
2058
|
-
var
|
|
2059
|
-
return
|
|
2131
|
+
var B = p[R];
|
|
2132
|
+
return B === void 0 ? [] : typeof B == "function" ? v ? [B.listener || B] : [B] : v ? _(B) : y(B, B.length);
|
|
2060
2133
|
}
|
|
2061
2134
|
c.prototype.listeners = function(R) {
|
|
2062
2135
|
return C(this, R, !0);
|
|
2063
2136
|
}, c.prototype.rawListeners = function(R) {
|
|
2064
2137
|
return C(this, R, !1);
|
|
2065
|
-
}, c.listenerCount = function(
|
|
2066
|
-
return typeof
|
|
2138
|
+
}, c.listenerCount = function(S, R) {
|
|
2139
|
+
return typeof S.listenerCount == "function" ? S.listenerCount(R) : j.call(S, R);
|
|
2067
2140
|
}, c.prototype.listenerCount = j;
|
|
2068
|
-
function j(
|
|
2141
|
+
function j(S) {
|
|
2069
2142
|
var R = this._events;
|
|
2070
2143
|
if (R !== void 0) {
|
|
2071
|
-
var v = R[
|
|
2144
|
+
var v = R[S];
|
|
2072
2145
|
if (typeof v == "function")
|
|
2073
2146
|
return 1;
|
|
2074
2147
|
if (v !== void 0)
|
|
@@ -2079,44 +2152,44 @@ function en() {
|
|
|
2079
2152
|
c.prototype.eventNames = function() {
|
|
2080
2153
|
return this._eventsCount > 0 ? t(this._events) : [];
|
|
2081
2154
|
};
|
|
2082
|
-
function y(
|
|
2083
|
-
for (var v = new Array(R),
|
|
2084
|
-
v[
|
|
2155
|
+
function y(S, R) {
|
|
2156
|
+
for (var v = new Array(R), p = 0; p < R; ++p)
|
|
2157
|
+
v[p] = S[p];
|
|
2085
2158
|
return v;
|
|
2086
2159
|
}
|
|
2087
|
-
function I(
|
|
2088
|
-
for (; R + 1 <
|
|
2089
|
-
|
|
2090
|
-
|
|
2160
|
+
function I(S, R) {
|
|
2161
|
+
for (; R + 1 < S.length; R++)
|
|
2162
|
+
S[R] = S[R + 1];
|
|
2163
|
+
S.pop();
|
|
2091
2164
|
}
|
|
2092
|
-
function S
|
|
2093
|
-
for (var R = new Array(
|
|
2094
|
-
R[v] =
|
|
2165
|
+
function _(S) {
|
|
2166
|
+
for (var R = new Array(S.length), v = 0; v < R.length; ++v)
|
|
2167
|
+
R[v] = S[v].listener || S[v];
|
|
2095
2168
|
return R;
|
|
2096
2169
|
}
|
|
2097
|
-
function h(
|
|
2098
|
-
return new Promise(function(v,
|
|
2099
|
-
function
|
|
2100
|
-
|
|
2170
|
+
function h(S, R) {
|
|
2171
|
+
return new Promise(function(v, p) {
|
|
2172
|
+
function B(F) {
|
|
2173
|
+
S.removeListener(R, U), p(F);
|
|
2101
2174
|
}
|
|
2102
2175
|
function U() {
|
|
2103
|
-
typeof
|
|
2176
|
+
typeof S.removeListener == "function" && S.removeListener("error", B), v([].slice.call(arguments));
|
|
2104
2177
|
}
|
|
2105
|
-
P(
|
|
2178
|
+
P(S, R, U, { once: !0 }), R !== "error" && b(S, B, { once: !0 });
|
|
2106
2179
|
});
|
|
2107
2180
|
}
|
|
2108
|
-
function b(
|
|
2109
|
-
typeof
|
|
2181
|
+
function b(S, R, v) {
|
|
2182
|
+
typeof S.on == "function" && P(S, "error", R, v);
|
|
2110
2183
|
}
|
|
2111
|
-
function P(
|
|
2112
|
-
if (typeof
|
|
2113
|
-
|
|
2114
|
-
else if (typeof
|
|
2115
|
-
|
|
2116
|
-
|
|
2184
|
+
function P(S, R, v, p) {
|
|
2185
|
+
if (typeof S.on == "function")
|
|
2186
|
+
p.once ? S.once(R, v) : S.on(R, v);
|
|
2187
|
+
else if (typeof S.addEventListener == "function")
|
|
2188
|
+
S.addEventListener(R, function B(U) {
|
|
2189
|
+
p.once && S.removeEventListener(R, B), v(U);
|
|
2117
2190
|
});
|
|
2118
2191
|
else
|
|
2119
|
-
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof
|
|
2192
|
+
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof S);
|
|
2120
2193
|
}
|
|
2121
2194
|
return st.exports;
|
|
2122
2195
|
}
|
|
@@ -2124,9 +2197,9 @@ var Rt, wn;
|
|
|
2124
2197
|
function Xi() {
|
|
2125
2198
|
return wn || (wn = 1, Rt = en().EventEmitter), Rt;
|
|
2126
2199
|
}
|
|
2127
|
-
var Pt = {}, At = {}, Tt,
|
|
2200
|
+
var Pt = {}, At = {}, Tt, Sn;
|
|
2128
2201
|
function Zi() {
|
|
2129
|
-
return
|
|
2202
|
+
return Sn || (Sn = 1, Tt = function() {
|
|
2130
2203
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2131
2204
|
return !1;
|
|
2132
2205
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -2154,10 +2227,10 @@ function Zi() {
|
|
|
2154
2227
|
return !0;
|
|
2155
2228
|
}), Tt;
|
|
2156
2229
|
}
|
|
2157
|
-
var It,
|
|
2230
|
+
var It, _n;
|
|
2158
2231
|
function dt() {
|
|
2159
|
-
if (
|
|
2160
|
-
|
|
2232
|
+
if (_n) return It;
|
|
2233
|
+
_n = 1;
|
|
2161
2234
|
var n = Zi();
|
|
2162
2235
|
return It = function() {
|
|
2163
2236
|
return n() && !!Symbol.toStringTag;
|
|
@@ -2171,16 +2244,16 @@ var kt, En;
|
|
|
2171
2244
|
function qo() {
|
|
2172
2245
|
return En || (En = 1, kt = Error), kt;
|
|
2173
2246
|
}
|
|
2174
|
-
var
|
|
2247
|
+
var Mt, Rn;
|
|
2175
2248
|
function xo() {
|
|
2176
|
-
return Rn || (Rn = 1,
|
|
2249
|
+
return Rn || (Rn = 1, Mt = EvalError), Mt;
|
|
2177
2250
|
}
|
|
2178
|
-
var
|
|
2251
|
+
var Bt, Pn;
|
|
2179
2252
|
function Wo() {
|
|
2180
|
-
return Pn || (Pn = 1,
|
|
2253
|
+
return Pn || (Pn = 1, Bt = RangeError), Bt;
|
|
2181
2254
|
}
|
|
2182
2255
|
var Lt, An;
|
|
2183
|
-
function
|
|
2256
|
+
function Vo() {
|
|
2184
2257
|
return An || (An = 1, Lt = ReferenceError), Lt;
|
|
2185
2258
|
}
|
|
2186
2259
|
var Nt, Tn;
|
|
@@ -2188,7 +2261,7 @@ function eo() {
|
|
|
2188
2261
|
return Tn || (Tn = 1, Nt = SyntaxError), Nt;
|
|
2189
2262
|
}
|
|
2190
2263
|
var Dt, In;
|
|
2191
|
-
function
|
|
2264
|
+
function Xe() {
|
|
2192
2265
|
return In || (In = 1, Dt = TypeError), Dt;
|
|
2193
2266
|
}
|
|
2194
2267
|
var Ft, On;
|
|
@@ -2196,16 +2269,16 @@ function zo() {
|
|
|
2196
2269
|
return On || (On = 1, Ft = URIError), Ft;
|
|
2197
2270
|
}
|
|
2198
2271
|
var jt, kn;
|
|
2199
|
-
function
|
|
2272
|
+
function Go() {
|
|
2200
2273
|
return kn || (kn = 1, jt = Math.abs), jt;
|
|
2201
2274
|
}
|
|
2202
|
-
var $t,
|
|
2275
|
+
var $t, Mn;
|
|
2203
2276
|
function Ho() {
|
|
2204
|
-
return
|
|
2277
|
+
return Mn || (Mn = 1, $t = Math.floor), $t;
|
|
2205
2278
|
}
|
|
2206
|
-
var Ut,
|
|
2279
|
+
var Ut, Bn;
|
|
2207
2280
|
function Jo() {
|
|
2208
|
-
return
|
|
2281
|
+
return Bn || (Bn = 1, Ut = Math.max), Ut;
|
|
2209
2282
|
}
|
|
2210
2283
|
var qt, Ln;
|
|
2211
2284
|
function Yo() {
|
|
@@ -2219,11 +2292,11 @@ var Wt, Dn;
|
|
|
2219
2292
|
function Xo() {
|
|
2220
2293
|
return Dn || (Dn = 1, Wt = Math.round), Wt;
|
|
2221
2294
|
}
|
|
2222
|
-
var
|
|
2295
|
+
var Vt, Fn;
|
|
2223
2296
|
function Zo() {
|
|
2224
|
-
return Fn || (Fn = 1,
|
|
2297
|
+
return Fn || (Fn = 1, Vt = Number.isNaN || function(e) {
|
|
2225
2298
|
return e !== e;
|
|
2226
|
-
}),
|
|
2299
|
+
}), Vt;
|
|
2227
2300
|
}
|
|
2228
2301
|
var zt, jn;
|
|
2229
2302
|
function Qo() {
|
|
@@ -2234,9 +2307,9 @@ function Qo() {
|
|
|
2234
2307
|
return n(t) || t === 0 ? t : t < 0 ? -1 : 1;
|
|
2235
2308
|
}, zt;
|
|
2236
2309
|
}
|
|
2237
|
-
var
|
|
2310
|
+
var Gt, $n;
|
|
2238
2311
|
function ea() {
|
|
2239
|
-
return $n || ($n = 1,
|
|
2312
|
+
return $n || ($n = 1, Gt = Object.getOwnPropertyDescriptor), Gt;
|
|
2240
2313
|
}
|
|
2241
2314
|
var Ht, Un;
|
|
2242
2315
|
function We() {
|
|
@@ -2277,10 +2350,10 @@ var Kt, Wn;
|
|
|
2277
2350
|
function to() {
|
|
2278
2351
|
return Wn || (Wn = 1, Kt = typeof Reflect != "undefined" && Reflect.getPrototypeOf || null), Kt;
|
|
2279
2352
|
}
|
|
2280
|
-
var Xt,
|
|
2353
|
+
var Xt, Vn;
|
|
2281
2354
|
function ro() {
|
|
2282
|
-
if (
|
|
2283
|
-
|
|
2355
|
+
if (Vn) return Xt;
|
|
2356
|
+
Vn = 1;
|
|
2284
2357
|
var n = /* @__PURE__ */ Qi();
|
|
2285
2358
|
return Xt = n.getPrototypeOf || null, Xt;
|
|
2286
2359
|
}
|
|
@@ -2322,17 +2395,17 @@ function ra() {
|
|
|
2322
2395
|
}, j = t(0, u.length - w.length), y = [], I = 0; I < j; I++)
|
|
2323
2396
|
y[I] = "$" + I;
|
|
2324
2397
|
if (A = Function("binder", "return function (" + E(y, ",") + "){ return binder.apply(this,arguments); }")(C), u.prototype) {
|
|
2325
|
-
var
|
|
2398
|
+
var _ = function() {
|
|
2326
2399
|
};
|
|
2327
|
-
|
|
2400
|
+
_.prototype = u.prototype, A.prototype = new _(), _.prototype = null;
|
|
2328
2401
|
}
|
|
2329
2402
|
return A;
|
|
2330
2403
|
}, Zt;
|
|
2331
2404
|
}
|
|
2332
|
-
var Qt,
|
|
2333
|
-
function
|
|
2334
|
-
if (
|
|
2335
|
-
|
|
2405
|
+
var Qt, Gn;
|
|
2406
|
+
function Ze() {
|
|
2407
|
+
if (Gn) return Qt;
|
|
2408
|
+
Gn = 1;
|
|
2336
2409
|
var n = ra();
|
|
2337
2410
|
return Qt = Function.prototype.bind || n, Qt;
|
|
2338
2411
|
}
|
|
@@ -2352,14 +2425,14 @@ var nr, Kn;
|
|
|
2352
2425
|
function no() {
|
|
2353
2426
|
if (Kn) return nr;
|
|
2354
2427
|
Kn = 1;
|
|
2355
|
-
var n =
|
|
2428
|
+
var n = Ze(), e = rn(), t = tn(), o = na();
|
|
2356
2429
|
return nr = o || n.call(t, e), nr;
|
|
2357
2430
|
}
|
|
2358
2431
|
var ir, Xn;
|
|
2359
2432
|
function nn() {
|
|
2360
2433
|
if (Xn) return ir;
|
|
2361
2434
|
Xn = 1;
|
|
2362
|
-
var n =
|
|
2435
|
+
var n = Ze(), e = /* @__PURE__ */ Xe(), t = tn(), o = no();
|
|
2363
2436
|
return ir = function(c) {
|
|
2364
2437
|
if (c.length < 1 || typeof c[0] != "function")
|
|
2365
2438
|
throw new e("a function is required");
|
|
@@ -2409,36 +2482,36 @@ var sr, ei;
|
|
|
2409
2482
|
function io() {
|
|
2410
2483
|
if (ei) return sr;
|
|
2411
2484
|
ei = 1;
|
|
2412
|
-
var n = Function.prototype.call, e = Object.prototype.hasOwnProperty, t =
|
|
2485
|
+
var n = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = Ze();
|
|
2413
2486
|
return sr = t.call(n, e), sr;
|
|
2414
2487
|
}
|
|
2415
2488
|
var lr, ti;
|
|
2416
2489
|
function oo() {
|
|
2417
2490
|
if (ti) return lr;
|
|
2418
2491
|
ti = 1;
|
|
2419
|
-
var n, e = /* @__PURE__ */ Qi(), t = /* @__PURE__ */ qo(), o = /* @__PURE__ */ xo(), l = /* @__PURE__ */ Wo(), c = /* @__PURE__ */
|
|
2492
|
+
var n, e = /* @__PURE__ */ Qi(), t = /* @__PURE__ */ qo(), o = /* @__PURE__ */ xo(), l = /* @__PURE__ */ Wo(), c = /* @__PURE__ */ Vo(), E = /* @__PURE__ */ eo(), a = /* @__PURE__ */ Xe(), f = /* @__PURE__ */ zo(), u = /* @__PURE__ */ Go(), w = /* @__PURE__ */ Ho(), A = /* @__PURE__ */ Jo(), C = /* @__PURE__ */ Yo(), j = /* @__PURE__ */ Ko(), y = /* @__PURE__ */ Xo(), I = /* @__PURE__ */ Qo(), _ = Function, h = function(D) {
|
|
2420
2493
|
try {
|
|
2421
|
-
return
|
|
2422
|
-
} catch (
|
|
2494
|
+
return _('"use strict"; return (' + D + ").constructor;")();
|
|
2495
|
+
} catch (V) {
|
|
2423
2496
|
}
|
|
2424
|
-
}, b = /* @__PURE__ */ We(), P = /* @__PURE__ */ ht(),
|
|
2497
|
+
}, b = /* @__PURE__ */ We(), P = /* @__PURE__ */ ht(), S = function() {
|
|
2425
2498
|
throw new a();
|
|
2426
2499
|
}, R = b ? function() {
|
|
2427
2500
|
try {
|
|
2428
|
-
return arguments.callee,
|
|
2501
|
+
return arguments.callee, S;
|
|
2429
2502
|
} catch (D) {
|
|
2430
2503
|
try {
|
|
2431
2504
|
return b(arguments, "callee").get;
|
|
2432
|
-
} catch (
|
|
2433
|
-
return
|
|
2505
|
+
} catch (V) {
|
|
2506
|
+
return S;
|
|
2434
2507
|
}
|
|
2435
2508
|
}
|
|
2436
|
-
}() :
|
|
2509
|
+
}() : S, v = ta()(), p = on(), B = ro(), U = to(), F = rn(), J = tn(), k = {}, te = typeof Uint8Array == "undefined" || !p ? n : p(Uint8Array), ee = {
|
|
2437
2510
|
__proto__: null,
|
|
2438
2511
|
"%AggregateError%": typeof AggregateError == "undefined" ? n : AggregateError,
|
|
2439
2512
|
"%Array%": Array,
|
|
2440
2513
|
"%ArrayBuffer%": typeof ArrayBuffer == "undefined" ? n : ArrayBuffer,
|
|
2441
|
-
"%ArrayIteratorPrototype%": v &&
|
|
2514
|
+
"%ArrayIteratorPrototype%": v && p ? p([][Symbol.iterator]()) : n,
|
|
2442
2515
|
"%AsyncFromSyncIteratorPrototype%": n,
|
|
2443
2516
|
"%AsyncFunction%": k,
|
|
2444
2517
|
"%AsyncGenerator%": k,
|
|
@@ -2463,17 +2536,17 @@ function oo() {
|
|
|
2463
2536
|
"%Float32Array%": typeof Float32Array == "undefined" ? n : Float32Array,
|
|
2464
2537
|
"%Float64Array%": typeof Float64Array == "undefined" ? n : Float64Array,
|
|
2465
2538
|
"%FinalizationRegistry%": typeof FinalizationRegistry == "undefined" ? n : FinalizationRegistry,
|
|
2466
|
-
"%Function%":
|
|
2539
|
+
"%Function%": _,
|
|
2467
2540
|
"%GeneratorFunction%": k,
|
|
2468
2541
|
"%Int8Array%": typeof Int8Array == "undefined" ? n : Int8Array,
|
|
2469
2542
|
"%Int16Array%": typeof Int16Array == "undefined" ? n : Int16Array,
|
|
2470
2543
|
"%Int32Array%": typeof Int32Array == "undefined" ? n : Int32Array,
|
|
2471
2544
|
"%isFinite%": isFinite,
|
|
2472
2545
|
"%isNaN%": isNaN,
|
|
2473
|
-
"%IteratorPrototype%": v &&
|
|
2546
|
+
"%IteratorPrototype%": v && p ? p(p([][Symbol.iterator]())) : n,
|
|
2474
2547
|
"%JSON%": typeof JSON == "object" ? JSON : n,
|
|
2475
2548
|
"%Map%": typeof Map == "undefined" ? n : Map,
|
|
2476
|
-
"%MapIteratorPrototype%": typeof Map == "undefined" || !v || !
|
|
2549
|
+
"%MapIteratorPrototype%": typeof Map == "undefined" || !v || !p ? n : p((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
2477
2550
|
"%Math%": Math,
|
|
2478
2551
|
"%Number%": Number,
|
|
2479
2552
|
"%Object%": e,
|
|
@@ -2487,10 +2560,10 @@ function oo() {
|
|
|
2487
2560
|
"%Reflect%": typeof Reflect == "undefined" ? n : Reflect,
|
|
2488
2561
|
"%RegExp%": RegExp,
|
|
2489
2562
|
"%Set%": typeof Set == "undefined" ? n : Set,
|
|
2490
|
-
"%SetIteratorPrototype%": typeof Set == "undefined" || !v || !
|
|
2563
|
+
"%SetIteratorPrototype%": typeof Set == "undefined" || !v || !p ? n : p((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
2491
2564
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer == "undefined" ? n : SharedArrayBuffer,
|
|
2492
2565
|
"%String%": String,
|
|
2493
|
-
"%StringIteratorPrototype%": v &&
|
|
2566
|
+
"%StringIteratorPrototype%": v && p ? p(""[Symbol.iterator]()) : n,
|
|
2494
2567
|
"%Symbol%": v ? Symbol : n,
|
|
2495
2568
|
"%SyntaxError%": E,
|
|
2496
2569
|
"%ThrowTypeError%": R,
|
|
@@ -2507,7 +2580,7 @@ function oo() {
|
|
|
2507
2580
|
"%Function.prototype.call%": J,
|
|
2508
2581
|
"%Function.prototype.apply%": F,
|
|
2509
2582
|
"%Object.defineProperty%": P,
|
|
2510
|
-
"%Object.getPrototypeOf%":
|
|
2583
|
+
"%Object.getPrototypeOf%": B,
|
|
2511
2584
|
"%Math.abs%": u,
|
|
2512
2585
|
"%Math.floor%": w,
|
|
2513
2586
|
"%Math.max%": A,
|
|
@@ -2517,29 +2590,29 @@ function oo() {
|
|
|
2517
2590
|
"%Math.sign%": I,
|
|
2518
2591
|
"%Reflect.getPrototypeOf%": U
|
|
2519
2592
|
};
|
|
2520
|
-
if (
|
|
2593
|
+
if (p)
|
|
2521
2594
|
try {
|
|
2522
2595
|
null.error;
|
|
2523
2596
|
} catch (D) {
|
|
2524
|
-
var ae =
|
|
2597
|
+
var ae = p(p(D));
|
|
2525
2598
|
ee["%Error.prototype%"] = ae;
|
|
2526
2599
|
}
|
|
2527
|
-
var le = function D(
|
|
2528
|
-
var
|
|
2529
|
-
if (
|
|
2530
|
-
|
|
2531
|
-
else if (
|
|
2532
|
-
|
|
2533
|
-
else if (
|
|
2534
|
-
|
|
2535
|
-
else if (
|
|
2600
|
+
var le = function D(V) {
|
|
2601
|
+
var G;
|
|
2602
|
+
if (V === "%AsyncFunction%")
|
|
2603
|
+
G = h("async function () {}");
|
|
2604
|
+
else if (V === "%GeneratorFunction%")
|
|
2605
|
+
G = h("function* () {}");
|
|
2606
|
+
else if (V === "%AsyncGeneratorFunction%")
|
|
2607
|
+
G = h("async function* () {}");
|
|
2608
|
+
else if (V === "%AsyncGenerator%") {
|
|
2536
2609
|
var d = D("%AsyncGeneratorFunction%");
|
|
2537
|
-
d && (
|
|
2538
|
-
} else if (
|
|
2539
|
-
var
|
|
2540
|
-
|
|
2610
|
+
d && (G = d.prototype);
|
|
2611
|
+
} else if (V === "%AsyncIteratorPrototype%") {
|
|
2612
|
+
var g = D("%AsyncGenerator%");
|
|
2613
|
+
g && p && (G = p(g.prototype));
|
|
2541
2614
|
}
|
|
2542
|
-
return ee[
|
|
2615
|
+
return ee[V] = G, G;
|
|
2543
2616
|
}, me = {
|
|
2544
2617
|
__proto__: null,
|
|
2545
2618
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
@@ -2593,49 +2666,49 @@ function oo() {
|
|
|
2593
2666
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2594
2667
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2595
2668
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2596
|
-
}, ce =
|
|
2597
|
-
var
|
|
2598
|
-
if (
|
|
2669
|
+
}, ce = Ze(), ge = /* @__PURE__ */ io(), ie = ce.call(J, Array.prototype.concat), Se = ce.call(F, Array.prototype.splice), he = ce.call(J, String.prototype.replace), L = ce.call(J, String.prototype.slice), $ = ce.call(J, RegExp.prototype.exec), z = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Y = /\\(\\)?/g, M = function(V) {
|
|
2670
|
+
var G = L(V, 0, 1), d = L(V, -1);
|
|
2671
|
+
if (G === "%" && d !== "%")
|
|
2599
2672
|
throw new E("invalid intrinsic syntax, expected closing `%`");
|
|
2600
|
-
if (d === "%" &&
|
|
2673
|
+
if (d === "%" && G !== "%")
|
|
2601
2674
|
throw new E("invalid intrinsic syntax, expected opening `%`");
|
|
2602
|
-
var
|
|
2603
|
-
return he(
|
|
2604
|
-
|
|
2605
|
-
}),
|
|
2606
|
-
}, O = function(
|
|
2607
|
-
var d =
|
|
2608
|
-
if (ge(me, d) && (
|
|
2675
|
+
var g = [];
|
|
2676
|
+
return he(V, z, function(x, H, K, X) {
|
|
2677
|
+
g[g.length] = K ? he(X, Y, "$1") : H || x;
|
|
2678
|
+
}), g;
|
|
2679
|
+
}, O = function(V, G) {
|
|
2680
|
+
var d = V, g;
|
|
2681
|
+
if (ge(me, d) && (g = me[d], d = "%" + g[0] + "%"), ge(ee, d)) {
|
|
2609
2682
|
var x = ee[d];
|
|
2610
|
-
if (x === k && (x = le(d)), typeof x == "undefined" && !
|
|
2611
|
-
throw new a("intrinsic " +
|
|
2683
|
+
if (x === k && (x = le(d)), typeof x == "undefined" && !G)
|
|
2684
|
+
throw new a("intrinsic " + V + " exists, but is not available. Please file an issue!");
|
|
2612
2685
|
return {
|
|
2613
|
-
alias:
|
|
2686
|
+
alias: g,
|
|
2614
2687
|
name: d,
|
|
2615
2688
|
value: x
|
|
2616
2689
|
};
|
|
2617
2690
|
}
|
|
2618
|
-
throw new E("intrinsic " +
|
|
2691
|
+
throw new E("intrinsic " + V + " does not exist!");
|
|
2619
2692
|
};
|
|
2620
|
-
return lr = function(
|
|
2621
|
-
if (typeof
|
|
2693
|
+
return lr = function(V, G) {
|
|
2694
|
+
if (typeof V != "string" || V.length === 0)
|
|
2622
2695
|
throw new a("intrinsic name must be a non-empty string");
|
|
2623
|
-
if (arguments.length > 1 && typeof
|
|
2696
|
+
if (arguments.length > 1 && typeof G != "boolean")
|
|
2624
2697
|
throw new a('"allowMissing" argument must be a boolean');
|
|
2625
|
-
if ($(/^%?[^%]*%?$/,
|
|
2698
|
+
if ($(/^%?[^%]*%?$/, V) === null)
|
|
2626
2699
|
throw new E("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2627
|
-
var d =
|
|
2628
|
-
Q && (
|
|
2700
|
+
var d = M(V), g = d.length > 0 ? d[0] : "", x = O("%" + g + "%", G), H = x.name, K = x.value, X = !1, Q = x.alias;
|
|
2701
|
+
Q && (g = Q[0], Se(d, ie([0, 1], Q)));
|
|
2629
2702
|
for (var q = 1, ve = !0; q < d.length; q += 1) {
|
|
2630
2703
|
var ye = d[q], oe = L(ye, 0, 1), ue = L(ye, -1);
|
|
2631
2704
|
if ((oe === '"' || oe === "'" || oe === "`" || ue === '"' || ue === "'" || ue === "`") && oe !== ue)
|
|
2632
2705
|
throw new E("property names with quotes must have matching quotes");
|
|
2633
|
-
if ((ye === "constructor" || !ve) && (X = !0),
|
|
2706
|
+
if ((ye === "constructor" || !ve) && (X = !0), g += "." + ye, H = "%" + g + "%", ge(ee, H))
|
|
2634
2707
|
K = ee[H];
|
|
2635
2708
|
else if (K != null) {
|
|
2636
2709
|
if (!(ye in K)) {
|
|
2637
|
-
if (!
|
|
2638
|
-
throw new a("base intrinsic for " +
|
|
2710
|
+
if (!G)
|
|
2711
|
+
throw new a("base intrinsic for " + V + " exists, but the property is not available.");
|
|
2639
2712
|
return;
|
|
2640
2713
|
}
|
|
2641
2714
|
if (b && q + 1 >= d.length) {
|
|
@@ -2650,7 +2723,7 @@ function oo() {
|
|
|
2650
2723
|
}, lr;
|
|
2651
2724
|
}
|
|
2652
2725
|
var cr, ri;
|
|
2653
|
-
function
|
|
2726
|
+
function Qe() {
|
|
2654
2727
|
if (ri) return cr;
|
|
2655
2728
|
ri = 1;
|
|
2656
2729
|
var n = /* @__PURE__ */ oo(), e = nn(), t = e([n("%String.prototype.indexOf%")]);
|
|
@@ -2669,7 +2742,7 @@ var ur, ni;
|
|
|
2669
2742
|
function oa() {
|
|
2670
2743
|
if (ni) return ur;
|
|
2671
2744
|
ni = 1;
|
|
2672
|
-
var n = dt()(), e = /* @__PURE__ */
|
|
2745
|
+
var n = dt()(), e = /* @__PURE__ */ Qe(), t = e("Object.prototype.toString"), o = function(a) {
|
|
2673
2746
|
return n && a && typeof a == "object" && Symbol.toStringTag in a ? !1 : t(a) === "[object Arguments]";
|
|
2674
2747
|
}, l = function(a) {
|
|
2675
2748
|
return o(a) ? !0 : a !== null && typeof a == "object" && "length" in a && typeof a.length == "number" && a.length >= 0 && t(a) !== "[object Array]" && "callee" in a && t(a.callee) === "[object Function]";
|
|
@@ -2682,7 +2755,7 @@ var fr, ii;
|
|
|
2682
2755
|
function aa() {
|
|
2683
2756
|
if (ii) return fr;
|
|
2684
2757
|
ii = 1;
|
|
2685
|
-
var n = /* @__PURE__ */
|
|
2758
|
+
var n = /* @__PURE__ */ Qe(), e = dt()(), t = /* @__PURE__ */ io(), o = /* @__PURE__ */ We(), l;
|
|
2686
2759
|
if (e) {
|
|
2687
2760
|
var c = n("RegExp.prototype.exec"), E = {}, a = function() {
|
|
2688
2761
|
throw E;
|
|
@@ -2726,7 +2799,7 @@ var dr, oi;
|
|
|
2726
2799
|
function sa() {
|
|
2727
2800
|
if (oi) return dr;
|
|
2728
2801
|
oi = 1;
|
|
2729
|
-
var n = /* @__PURE__ */
|
|
2802
|
+
var n = /* @__PURE__ */ Qe(), e = aa(), t = n("RegExp.prototype.exec"), o = /* @__PURE__ */ Xe();
|
|
2730
2803
|
return dr = function(c) {
|
|
2731
2804
|
if (!e(c))
|
|
2732
2805
|
throw new o("`regex` must be a RegExp");
|
|
@@ -2739,7 +2812,7 @@ var hr, ai;
|
|
|
2739
2812
|
function la() {
|
|
2740
2813
|
if (ai) return hr;
|
|
2741
2814
|
ai = 1;
|
|
2742
|
-
var n = /* @__PURE__ */
|
|
2815
|
+
var n = /* @__PURE__ */ Qe(), e = /* @__PURE__ */ sa(), t = e(/^\s*(?:function)?\*/), o = dt()(), l = on(), c = n("Object.prototype.toString"), E = n("Function.prototype.toString"), a = function() {
|
|
2743
2816
|
if (!o)
|
|
2744
2817
|
return !1;
|
|
2745
2818
|
try {
|
|
@@ -2789,46 +2862,46 @@ function ca() {
|
|
|
2789
2862
|
e = null;
|
|
2790
2863
|
var l = /^\s*class\b/, c = function(P) {
|
|
2791
2864
|
try {
|
|
2792
|
-
var
|
|
2793
|
-
return l.test(
|
|
2865
|
+
var S = n.call(P);
|
|
2866
|
+
return l.test(S);
|
|
2794
2867
|
} catch (R) {
|
|
2795
2868
|
return !1;
|
|
2796
2869
|
}
|
|
2797
2870
|
}, E = function(P) {
|
|
2798
2871
|
try {
|
|
2799
2872
|
return c(P) ? !1 : (n.call(P), !0);
|
|
2800
|
-
} catch (
|
|
2873
|
+
} catch (S) {
|
|
2801
2874
|
return !1;
|
|
2802
2875
|
}
|
|
2803
|
-
}, a = Object.prototype.toString, f = "[object Object]", u = "[object Function]", w = "[object GeneratorFunction]", A = "[object HTMLAllCollection]", C = "[object HTML document.all class]", j = "[object HTMLCollection]", y = typeof Symbol == "function" && !!Symbol.toStringTag, I = !(0 in [,]),
|
|
2876
|
+
}, a = Object.prototype.toString, f = "[object Object]", u = "[object Function]", w = "[object GeneratorFunction]", A = "[object HTMLAllCollection]", C = "[object HTML document.all class]", j = "[object HTMLCollection]", y = typeof Symbol == "function" && !!Symbol.toStringTag, I = !(0 in [,]), _ = function() {
|
|
2804
2877
|
return !1;
|
|
2805
2878
|
};
|
|
2806
2879
|
if (typeof document == "object") {
|
|
2807
2880
|
var h = document.all;
|
|
2808
|
-
a.call(h) === a.call(document.all) && (
|
|
2881
|
+
a.call(h) === a.call(document.all) && (_ = function(P) {
|
|
2809
2882
|
if ((I || !P) && (typeof P == "undefined" || typeof P == "object"))
|
|
2810
2883
|
try {
|
|
2811
|
-
var
|
|
2812
|
-
return (
|
|
2884
|
+
var S = a.call(P);
|
|
2885
|
+
return (S === A || S === C || S === j || S === f) && P("") == null;
|
|
2813
2886
|
} catch (R) {
|
|
2814
2887
|
}
|
|
2815
2888
|
return !1;
|
|
2816
2889
|
});
|
|
2817
2890
|
}
|
|
2818
2891
|
return pr = e ? function(P) {
|
|
2819
|
-
if (
|
|
2892
|
+
if (_(P))
|
|
2820
2893
|
return !0;
|
|
2821
2894
|
if (!P || typeof P != "function" && typeof P != "object")
|
|
2822
2895
|
return !1;
|
|
2823
2896
|
try {
|
|
2824
2897
|
e(P, null, t);
|
|
2825
|
-
} catch (
|
|
2826
|
-
if (
|
|
2898
|
+
} catch (S) {
|
|
2899
|
+
if (S !== o)
|
|
2827
2900
|
return !1;
|
|
2828
2901
|
}
|
|
2829
2902
|
return !c(P) && E(P);
|
|
2830
2903
|
} : function(P) {
|
|
2831
|
-
if (
|
|
2904
|
+
if (_(P))
|
|
2832
2905
|
return !0;
|
|
2833
2906
|
if (!P || typeof P != "function" && typeof P != "object")
|
|
2834
2907
|
return !1;
|
|
@@ -2836,8 +2909,8 @@ function ca() {
|
|
|
2836
2909
|
return E(P);
|
|
2837
2910
|
if (c(P))
|
|
2838
2911
|
return !1;
|
|
2839
|
-
var
|
|
2840
|
-
return
|
|
2912
|
+
var S = a.call(P);
|
|
2913
|
+
return S !== u && S !== w && !/^\[object HTML/.test(S) ? !1 : E(P);
|
|
2841
2914
|
}, pr;
|
|
2842
2915
|
}
|
|
2843
2916
|
var gr, li;
|
|
@@ -2896,7 +2969,7 @@ var vr = { exports: {} }, br, fi;
|
|
|
2896
2969
|
function ha() {
|
|
2897
2970
|
if (fi) return br;
|
|
2898
2971
|
fi = 1;
|
|
2899
|
-
var n = /* @__PURE__ */ ht(), e = /* @__PURE__ */ eo(), t = /* @__PURE__ */
|
|
2972
|
+
var n = /* @__PURE__ */ ht(), e = /* @__PURE__ */ eo(), t = /* @__PURE__ */ Xe(), o = /* @__PURE__ */ We();
|
|
2900
2973
|
return br = function(c, E, a) {
|
|
2901
2974
|
if (!c || typeof c != "object" && typeof c != "function")
|
|
2902
2975
|
throw new t("`obj` must be an object or a function`");
|
|
@@ -2941,12 +3014,12 @@ function pa() {
|
|
|
2941
3014
|
}
|
|
2942
3015
|
}, wr = e, wr;
|
|
2943
3016
|
}
|
|
2944
|
-
var
|
|
3017
|
+
var Sr, hi;
|
|
2945
3018
|
function ga() {
|
|
2946
|
-
if (hi) return
|
|
3019
|
+
if (hi) return Sr;
|
|
2947
3020
|
hi = 1;
|
|
2948
|
-
var n = /* @__PURE__ */ oo(), e = /* @__PURE__ */ ha(), t = /* @__PURE__ */ pa()(), o = /* @__PURE__ */ We(), l = /* @__PURE__ */
|
|
2949
|
-
return
|
|
3021
|
+
var n = /* @__PURE__ */ oo(), e = /* @__PURE__ */ ha(), t = /* @__PURE__ */ pa()(), o = /* @__PURE__ */ We(), l = /* @__PURE__ */ Xe(), c = n("%Math.floor%");
|
|
3022
|
+
return Sr = function(a, f) {
|
|
2950
3023
|
if (typeof a != "function")
|
|
2951
3024
|
throw new l("`fn` is not a function");
|
|
2952
3025
|
if (typeof f != "number" || f < 0 || f > 4294967295 || c(f) !== f)
|
|
@@ -2969,16 +3042,16 @@ function ga() {
|
|
|
2969
3042
|
"length",
|
|
2970
3043
|
f
|
|
2971
3044
|
)), a;
|
|
2972
|
-
},
|
|
3045
|
+
}, Sr;
|
|
2973
3046
|
}
|
|
2974
|
-
var
|
|
3047
|
+
var _r, pi;
|
|
2975
3048
|
function ya() {
|
|
2976
|
-
if (pi) return
|
|
3049
|
+
if (pi) return _r;
|
|
2977
3050
|
pi = 1;
|
|
2978
|
-
var n =
|
|
2979
|
-
return
|
|
3051
|
+
var n = Ze(), e = rn(), t = no();
|
|
3052
|
+
return _r = function() {
|
|
2980
3053
|
return t(n, e, arguments);
|
|
2981
|
-
},
|
|
3054
|
+
}, _r;
|
|
2982
3055
|
}
|
|
2983
3056
|
var gi;
|
|
2984
3057
|
function ma() {
|
|
@@ -2998,16 +3071,16 @@ var Cr, yi;
|
|
|
2998
3071
|
function ao() {
|
|
2999
3072
|
if (yi) return Cr;
|
|
3000
3073
|
yi = 1;
|
|
3001
|
-
var n = ua(), e = /* @__PURE__ */ da(), t = ma(), o = /* @__PURE__ */
|
|
3002
|
-
for (var b = 0; b <
|
|
3003
|
-
if (
|
|
3074
|
+
var n = ua(), e = /* @__PURE__ */ da(), t = ma(), o = /* @__PURE__ */ Qe(), l = /* @__PURE__ */ We(), c = on(), E = o("Object.prototype.toString"), a = dt()(), f = globalThis, u = e(), w = o("String.prototype.slice"), A = o("Array.prototype.indexOf", !0) || function(_, h) {
|
|
3075
|
+
for (var b = 0; b < _.length; b += 1)
|
|
3076
|
+
if (_[b] === h)
|
|
3004
3077
|
return b;
|
|
3005
3078
|
return -1;
|
|
3006
3079
|
}, C = { __proto__: null };
|
|
3007
3080
|
a && l && c ? n(u, function(I) {
|
|
3008
|
-
var
|
|
3009
|
-
if (Symbol.toStringTag in
|
|
3010
|
-
var h = c(
|
|
3081
|
+
var _ = new f[I]();
|
|
3082
|
+
if (Symbol.toStringTag in _ && c) {
|
|
3083
|
+
var h = c(_), b = l(h, Symbol.toStringTag);
|
|
3011
3084
|
if (!b && h) {
|
|
3012
3085
|
var P = c(h);
|
|
3013
3086
|
b = l(P, Symbol.toStringTag);
|
|
@@ -3015,7 +3088,7 @@ function ao() {
|
|
|
3015
3088
|
C["$" + I] = t(b.get);
|
|
3016
3089
|
}
|
|
3017
3090
|
}) : n(u, function(I) {
|
|
3018
|
-
var
|
|
3091
|
+
var _ = new f[I](), h = _.slice || _.set;
|
|
3019
3092
|
h && (C[
|
|
3020
3093
|
/** @type {`$${import('.').TypedArrayName}`} */
|
|
3021
3094
|
"$" + I
|
|
@@ -3023,7 +3096,7 @@ function ao() {
|
|
|
3023
3096
|
// @ts-expect-error TODO FIXME
|
|
3024
3097
|
t(h));
|
|
3025
3098
|
});
|
|
3026
|
-
var j = function(
|
|
3099
|
+
var j = function(_) {
|
|
3027
3100
|
var h = !1;
|
|
3028
3101
|
return n(
|
|
3029
3102
|
/** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */
|
|
@@ -3032,13 +3105,13 @@ function ao() {
|
|
|
3032
3105
|
function(b, P) {
|
|
3033
3106
|
if (!h)
|
|
3034
3107
|
try {
|
|
3035
|
-
"$" + b(
|
|
3108
|
+
"$" + b(_) === P && (h = /** @type {import('.').TypedArrayName} */
|
|
3036
3109
|
w(P, 1));
|
|
3037
|
-
} catch (
|
|
3110
|
+
} catch (S) {
|
|
3038
3111
|
}
|
|
3039
3112
|
}
|
|
3040
3113
|
), h;
|
|
3041
|
-
}, y = function(
|
|
3114
|
+
}, y = function(_) {
|
|
3042
3115
|
var h = !1;
|
|
3043
3116
|
return n(
|
|
3044
3117
|
/** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */
|
|
@@ -3047,21 +3120,21 @@ function ao() {
|
|
|
3047
3120
|
function(b, P) {
|
|
3048
3121
|
if (!h)
|
|
3049
3122
|
try {
|
|
3050
|
-
b(
|
|
3123
|
+
b(_), h = /** @type {import('.').TypedArrayName} */
|
|
3051
3124
|
w(P, 1);
|
|
3052
|
-
} catch (
|
|
3125
|
+
} catch (S) {
|
|
3053
3126
|
}
|
|
3054
3127
|
}
|
|
3055
3128
|
), h;
|
|
3056
3129
|
};
|
|
3057
|
-
return Cr = function(
|
|
3058
|
-
if (!
|
|
3130
|
+
return Cr = function(_) {
|
|
3131
|
+
if (!_ || typeof _ != "object")
|
|
3059
3132
|
return !1;
|
|
3060
3133
|
if (!a) {
|
|
3061
|
-
var h = w(E(
|
|
3062
|
-
return A(u, h) > -1 ? h : h !== "Object" ? !1 : y(
|
|
3134
|
+
var h = w(E(_), 8, -1);
|
|
3135
|
+
return A(u, h) > -1 ? h : h !== "Object" ? !1 : y(_);
|
|
3063
3136
|
}
|
|
3064
|
-
return l ? j(
|
|
3137
|
+
return l ? j(_) : null;
|
|
3065
3138
|
}, Cr;
|
|
3066
3139
|
}
|
|
3067
3140
|
var Er, mi;
|
|
@@ -3099,10 +3172,10 @@ function ba() {
|
|
|
3099
3172
|
return typeof Promise != "undefined" && q instanceof Promise || q !== null && typeof q == "object" && typeof q.then == "function" && typeof q.catch == "function";
|
|
3100
3173
|
}
|
|
3101
3174
|
n.isPromise = I;
|
|
3102
|
-
function
|
|
3175
|
+
function _(q) {
|
|
3103
3176
|
return typeof ArrayBuffer != "undefined" && ArrayBuffer.isView ? ArrayBuffer.isView(q) : l(q) || L(q);
|
|
3104
3177
|
}
|
|
3105
|
-
n.isArrayBufferView =
|
|
3178
|
+
n.isArrayBufferView = _;
|
|
3106
3179
|
function h(q) {
|
|
3107
3180
|
return o(q) === "Uint8Array";
|
|
3108
3181
|
}
|
|
@@ -3115,10 +3188,10 @@ function ba() {
|
|
|
3115
3188
|
return o(q) === "Uint16Array";
|
|
3116
3189
|
}
|
|
3117
3190
|
n.isUint16Array = P;
|
|
3118
|
-
function
|
|
3191
|
+
function S(q) {
|
|
3119
3192
|
return o(q) === "Uint32Array";
|
|
3120
3193
|
}
|
|
3121
|
-
n.isUint32Array =
|
|
3194
|
+
n.isUint32Array = S;
|
|
3122
3195
|
function R(q) {
|
|
3123
3196
|
return o(q) === "Int8Array";
|
|
3124
3197
|
}
|
|
@@ -3127,14 +3200,14 @@ function ba() {
|
|
|
3127
3200
|
return o(q) === "Int16Array";
|
|
3128
3201
|
}
|
|
3129
3202
|
n.isInt16Array = v;
|
|
3130
|
-
function
|
|
3203
|
+
function p(q) {
|
|
3131
3204
|
return o(q) === "Int32Array";
|
|
3132
3205
|
}
|
|
3133
|
-
n.isInt32Array =
|
|
3134
|
-
function
|
|
3206
|
+
n.isInt32Array = p;
|
|
3207
|
+
function B(q) {
|
|
3135
3208
|
return o(q) === "Float32Array";
|
|
3136
3209
|
}
|
|
3137
|
-
n.isFloat32Array =
|
|
3210
|
+
n.isFloat32Array = B;
|
|
3138
3211
|
function U(q) {
|
|
3139
3212
|
return o(q) === "Float64Array";
|
|
3140
3213
|
}
|
|
@@ -3183,10 +3256,10 @@ function ba() {
|
|
|
3183
3256
|
return f(q) === "[object ArrayBuffer]";
|
|
3184
3257
|
}
|
|
3185
3258
|
ie.working = typeof ArrayBuffer != "undefined" && ie(new ArrayBuffer());
|
|
3186
|
-
function
|
|
3259
|
+
function Se(q) {
|
|
3187
3260
|
return typeof ArrayBuffer == "undefined" ? !1 : ie.working ? ie(q) : q instanceof ArrayBuffer;
|
|
3188
3261
|
}
|
|
3189
|
-
n.isArrayBuffer =
|
|
3262
|
+
n.isArrayBuffer = Se;
|
|
3190
3263
|
function he(q) {
|
|
3191
3264
|
return f(q) === "[object DataView]";
|
|
3192
3265
|
}
|
|
@@ -3203,10 +3276,10 @@ function ba() {
|
|
|
3203
3276
|
return typeof $ == "undefined" ? !1 : (typeof z.working == "undefined" && (z.working = z(new $())), z.working ? z(q) : q instanceof $);
|
|
3204
3277
|
}
|
|
3205
3278
|
n.isSharedArrayBuffer = Y;
|
|
3206
|
-
function
|
|
3279
|
+
function M(q) {
|
|
3207
3280
|
return f(q) === "[object AsyncFunction]";
|
|
3208
3281
|
}
|
|
3209
|
-
n.isAsyncFunction =
|
|
3282
|
+
n.isAsyncFunction = M;
|
|
3210
3283
|
function O(q) {
|
|
3211
3284
|
return f(q) === "[object Map Iterator]";
|
|
3212
3285
|
}
|
|
@@ -3215,22 +3288,22 @@ function ba() {
|
|
|
3215
3288
|
return f(q) === "[object Set Iterator]";
|
|
3216
3289
|
}
|
|
3217
3290
|
n.isSetIterator = D;
|
|
3218
|
-
function
|
|
3291
|
+
function V(q) {
|
|
3219
3292
|
return f(q) === "[object Generator]";
|
|
3220
3293
|
}
|
|
3221
|
-
n.isGeneratorObject =
|
|
3222
|
-
function
|
|
3294
|
+
n.isGeneratorObject = V;
|
|
3295
|
+
function G(q) {
|
|
3223
3296
|
return f(q) === "[object WebAssembly.Module]";
|
|
3224
3297
|
}
|
|
3225
|
-
n.isWebAssemblyCompiledModule =
|
|
3298
|
+
n.isWebAssemblyCompiledModule = G;
|
|
3226
3299
|
function d(q) {
|
|
3227
3300
|
return y(q, u);
|
|
3228
3301
|
}
|
|
3229
3302
|
n.isNumberObject = d;
|
|
3230
|
-
function
|
|
3303
|
+
function g(q) {
|
|
3231
3304
|
return y(q, w);
|
|
3232
3305
|
}
|
|
3233
|
-
n.isStringObject =
|
|
3306
|
+
n.isStringObject = g;
|
|
3234
3307
|
function x(q) {
|
|
3235
3308
|
return y(q, A);
|
|
3236
3309
|
}
|
|
@@ -3244,11 +3317,11 @@ function ba() {
|
|
|
3244
3317
|
}
|
|
3245
3318
|
n.isSymbolObject = K;
|
|
3246
3319
|
function X(q) {
|
|
3247
|
-
return d(q) ||
|
|
3320
|
+
return d(q) || g(q) || x(q) || H(q) || K(q);
|
|
3248
3321
|
}
|
|
3249
3322
|
n.isBoxedPrimitive = X;
|
|
3250
3323
|
function Q(q) {
|
|
3251
|
-
return typeof Uint8Array != "undefined" && (
|
|
3324
|
+
return typeof Uint8Array != "undefined" && (Se(q) || Y(q));
|
|
3252
3325
|
}
|
|
3253
3326
|
n.isAnyArrayBuffer = Q, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(q) {
|
|
3254
3327
|
Object.defineProperty(n, q, {
|
|
@@ -3267,7 +3340,7 @@ function wa() {
|
|
|
3267
3340
|
}), Rr;
|
|
3268
3341
|
}
|
|
3269
3342
|
var lt = { exports: {} }, wi;
|
|
3270
|
-
function
|
|
3343
|
+
function Ve() {
|
|
3271
3344
|
return wi || (wi = 1, typeof Object.create == "function" ? lt.exports = function(e, t) {
|
|
3272
3345
|
t && (e.super_ = t, e.prototype = Object.create(t.prototype, {
|
|
3273
3346
|
constructor: {
|
|
@@ -3286,12 +3359,12 @@ function Ge() {
|
|
|
3286
3359
|
}
|
|
3287
3360
|
}), lt.exports;
|
|
3288
3361
|
}
|
|
3289
|
-
var
|
|
3362
|
+
var Si;
|
|
3290
3363
|
function so() {
|
|
3291
|
-
return
|
|
3364
|
+
return Si || (Si = 1, function(n) {
|
|
3292
3365
|
var e = { env: {} }, t = Object.getOwnPropertyDescriptors || function($) {
|
|
3293
|
-
for (var z = Object.keys($), Y = {},
|
|
3294
|
-
Y[z[
|
|
3366
|
+
for (var z = Object.keys($), Y = {}, M = 0; M < z.length; M++)
|
|
3367
|
+
Y[z[M]] = Object.getOwnPropertyDescriptor($, z[M]);
|
|
3295
3368
|
return Y;
|
|
3296
3369
|
}, o = /%[sdj%]/g;
|
|
3297
3370
|
n.format = function(L) {
|
|
@@ -3300,10 +3373,10 @@ function so() {
|
|
|
3300
3373
|
$.push(a(arguments[z]));
|
|
3301
3374
|
return $.join(" ");
|
|
3302
3375
|
}
|
|
3303
|
-
for (var z = 1, Y = arguments,
|
|
3304
|
-
if (
|
|
3305
|
-
if (z >=
|
|
3306
|
-
switch (
|
|
3376
|
+
for (var z = 1, Y = arguments, M = Y.length, O = String(L).replace(o, function(V) {
|
|
3377
|
+
if (V === "%%") return "%";
|
|
3378
|
+
if (z >= M) return V;
|
|
3379
|
+
switch (V) {
|
|
3307
3380
|
case "%s":
|
|
3308
3381
|
return String(Y[z++]);
|
|
3309
3382
|
case "%d":
|
|
@@ -3311,13 +3384,13 @@ function so() {
|
|
|
3311
3384
|
case "%j":
|
|
3312
3385
|
try {
|
|
3313
3386
|
return JSON.stringify(Y[z++]);
|
|
3314
|
-
} catch (
|
|
3387
|
+
} catch (G) {
|
|
3315
3388
|
return "[Circular]";
|
|
3316
3389
|
}
|
|
3317
3390
|
default:
|
|
3318
|
-
return
|
|
3391
|
+
return V;
|
|
3319
3392
|
}
|
|
3320
|
-
}), D = Y[z]; z <
|
|
3393
|
+
}), D = Y[z]; z < M; D = Y[++z])
|
|
3321
3394
|
P(D) || !F(D) ? O += " " + D : O += " " + a(D);
|
|
3322
3395
|
return O;
|
|
3323
3396
|
}, n.deprecate = function(L, $) {
|
|
@@ -3361,7 +3434,7 @@ function so() {
|
|
|
3361
3434
|
seen: [],
|
|
3362
3435
|
stylize: u
|
|
3363
3436
|
};
|
|
3364
|
-
return arguments.length >= 3 && (z.depth = arguments[2]), arguments.length >= 4 && (z.colors = arguments[3]), b($) ? z.showHidden = $ : $ && n._extend(z, $),
|
|
3437
|
+
return arguments.length >= 3 && (z.depth = arguments[2]), arguments.length >= 4 && (z.colors = arguments[3]), b($) ? z.showHidden = $ : $ && n._extend(z, $), B(z.showHidden) && (z.showHidden = !1), B(z.depth) && (z.depth = 2), B(z.colors) && (z.colors = !1), B(z.customInspect) && (z.customInspect = !0), z.colors && (z.stylize = f), A(z, L, z.depth);
|
|
3365
3438
|
}
|
|
3366
3439
|
n.inspect = a, a.colors = {
|
|
3367
3440
|
bold: [1, 22],
|
|
@@ -3408,16 +3481,16 @@ function so() {
|
|
|
3408
3481
|
var Y = $.inspect(z, L);
|
|
3409
3482
|
return v(Y) || (Y = A(L, Y, z)), Y;
|
|
3410
3483
|
}
|
|
3411
|
-
var
|
|
3412
|
-
if (
|
|
3413
|
-
return
|
|
3484
|
+
var M = C(L, $);
|
|
3485
|
+
if (M)
|
|
3486
|
+
return M;
|
|
3414
3487
|
var O = Object.keys($), D = w(O);
|
|
3415
3488
|
if (L.showHidden && (O = Object.getOwnPropertyNames($)), k($) && (O.indexOf("message") >= 0 || O.indexOf("description") >= 0))
|
|
3416
3489
|
return j($);
|
|
3417
3490
|
if (O.length === 0) {
|
|
3418
3491
|
if (te($)) {
|
|
3419
|
-
var
|
|
3420
|
-
return L.stylize("[Function" +
|
|
3492
|
+
var V = $.name ? ": " + $.name : "";
|
|
3493
|
+
return L.stylize("[Function" + V + "]", "special");
|
|
3421
3494
|
}
|
|
3422
3495
|
if (U($))
|
|
3423
3496
|
return L.stylize(RegExp.prototype.toString.call($), "regexp");
|
|
@@ -3426,23 +3499,23 @@ function so() {
|
|
|
3426
3499
|
if (k($))
|
|
3427
3500
|
return j($);
|
|
3428
3501
|
}
|
|
3429
|
-
var
|
|
3430
|
-
if (h($) && (d = !0,
|
|
3502
|
+
var G = "", d = !1, g = ["{", "}"];
|
|
3503
|
+
if (h($) && (d = !0, g = ["[", "]"]), te($)) {
|
|
3431
3504
|
var x = $.name ? ": " + $.name : "";
|
|
3432
|
-
|
|
3505
|
+
G = " [Function" + x + "]";
|
|
3433
3506
|
}
|
|
3434
|
-
if (U($) && (
|
|
3435
|
-
return
|
|
3507
|
+
if (U($) && (G = " " + RegExp.prototype.toString.call($)), J($) && (G = " " + Date.prototype.toUTCString.call($)), k($) && (G = " " + j($)), O.length === 0 && (!d || $.length == 0))
|
|
3508
|
+
return g[0] + G + g[1];
|
|
3436
3509
|
if (z < 0)
|
|
3437
3510
|
return U($) ? L.stylize(RegExp.prototype.toString.call($), "regexp") : L.stylize("[Object]", "special");
|
|
3438
3511
|
L.seen.push($);
|
|
3439
3512
|
var H;
|
|
3440
3513
|
return d ? H = y(L, $, z, D, O) : H = O.map(function(K) {
|
|
3441
3514
|
return I(L, $, z, D, K, d);
|
|
3442
|
-
}), L.seen.pop(),
|
|
3515
|
+
}), L.seen.pop(), _(H, G, g);
|
|
3443
3516
|
}
|
|
3444
3517
|
function C(L, $) {
|
|
3445
|
-
if (
|
|
3518
|
+
if (B($))
|
|
3446
3519
|
return L.stylize("undefined", "undefined");
|
|
3447
3520
|
if (v($)) {
|
|
3448
3521
|
var z = "'" + JSON.stringify($).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
|
|
@@ -3458,8 +3531,8 @@ function so() {
|
|
|
3458
3531
|
function j(L) {
|
|
3459
3532
|
return "[" + Error.prototype.toString.call(L) + "]";
|
|
3460
3533
|
}
|
|
3461
|
-
function y(L, $, z, Y,
|
|
3462
|
-
for (var O = [], D = 0,
|
|
3534
|
+
function y(L, $, z, Y, M) {
|
|
3535
|
+
for (var O = [], D = 0, V = $.length; D < V; ++D)
|
|
3463
3536
|
ge($, String(D)) ? O.push(I(
|
|
3464
3537
|
L,
|
|
3465
3538
|
$,
|
|
@@ -3468,40 +3541,40 @@ function so() {
|
|
|
3468
3541
|
String(D),
|
|
3469
3542
|
!0
|
|
3470
3543
|
)) : O.push("");
|
|
3471
|
-
return
|
|
3472
|
-
|
|
3544
|
+
return M.forEach(function(G) {
|
|
3545
|
+
G.match(/^\d+$/) || O.push(I(
|
|
3473
3546
|
L,
|
|
3474
3547
|
$,
|
|
3475
3548
|
z,
|
|
3476
3549
|
Y,
|
|
3477
|
-
|
|
3550
|
+
G,
|
|
3478
3551
|
!0
|
|
3479
3552
|
));
|
|
3480
3553
|
}), O;
|
|
3481
3554
|
}
|
|
3482
|
-
function I(L, $, z, Y,
|
|
3483
|
-
var D,
|
|
3484
|
-
if (
|
|
3485
|
-
`) > -1 && (O ?
|
|
3555
|
+
function I(L, $, z, Y, M, O) {
|
|
3556
|
+
var D, V, G;
|
|
3557
|
+
if (G = Object.getOwnPropertyDescriptor($, M) || { value: $[M] }, G.get ? G.set ? V = L.stylize("[Getter/Setter]", "special") : V = L.stylize("[Getter]", "special") : G.set && (V = L.stylize("[Setter]", "special")), ge(Y, M) || (D = "[" + M + "]"), V || (L.seen.indexOf(G.value) < 0 ? (P(z) ? V = A(L, G.value, null) : V = A(L, G.value, z - 1), V.indexOf(`
|
|
3558
|
+
`) > -1 && (O ? V = V.split(`
|
|
3486
3559
|
`).map(function(d) {
|
|
3487
3560
|
return " " + d;
|
|
3488
3561
|
}).join(`
|
|
3489
|
-
`).slice(2) :
|
|
3490
|
-
` +
|
|
3562
|
+
`).slice(2) : V = `
|
|
3563
|
+
` + V.split(`
|
|
3491
3564
|
`).map(function(d) {
|
|
3492
3565
|
return " " + d;
|
|
3493
3566
|
}).join(`
|
|
3494
|
-
`))) :
|
|
3495
|
-
if (O &&
|
|
3496
|
-
return
|
|
3497
|
-
D = JSON.stringify("" +
|
|
3567
|
+
`))) : V = L.stylize("[Circular]", "special")), B(D)) {
|
|
3568
|
+
if (O && M.match(/^\d+$/))
|
|
3569
|
+
return V;
|
|
3570
|
+
D = JSON.stringify("" + M), D.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (D = D.slice(1, -1), D = L.stylize(D, "name")) : (D = D.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), D = L.stylize(D, "string"));
|
|
3498
3571
|
}
|
|
3499
|
-
return D + ": " +
|
|
3572
|
+
return D + ": " + V;
|
|
3500
3573
|
}
|
|
3501
|
-
function
|
|
3502
|
-
var Y = L.reduce(function(
|
|
3574
|
+
function _(L, $, z) {
|
|
3575
|
+
var Y = L.reduce(function(M, O) {
|
|
3503
3576
|
return O.indexOf(`
|
|
3504
|
-
`) >= 0,
|
|
3577
|
+
`) >= 0, M + O.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
3505
3578
|
}, 0);
|
|
3506
3579
|
return Y > 60 ? z[0] + ($ === "" ? "" : $ + `
|
|
3507
3580
|
`) + " " + L.join(`,
|
|
@@ -3520,10 +3593,10 @@ function so() {
|
|
|
3520
3593
|
return L === null;
|
|
3521
3594
|
}
|
|
3522
3595
|
n.isNull = P;
|
|
3523
|
-
function
|
|
3596
|
+
function S(L) {
|
|
3524
3597
|
return L == null;
|
|
3525
3598
|
}
|
|
3526
|
-
n.isNullOrUndefined =
|
|
3599
|
+
n.isNullOrUndefined = S;
|
|
3527
3600
|
function R(L) {
|
|
3528
3601
|
return typeof L == "number";
|
|
3529
3602
|
}
|
|
@@ -3532,14 +3605,14 @@ function so() {
|
|
|
3532
3605
|
return typeof L == "string";
|
|
3533
3606
|
}
|
|
3534
3607
|
n.isString = v;
|
|
3535
|
-
function
|
|
3608
|
+
function p(L) {
|
|
3536
3609
|
return typeof L == "symbol";
|
|
3537
3610
|
}
|
|
3538
|
-
n.isSymbol =
|
|
3539
|
-
function
|
|
3611
|
+
n.isSymbol = p;
|
|
3612
|
+
function B(L) {
|
|
3540
3613
|
return L === void 0;
|
|
3541
3614
|
}
|
|
3542
|
-
n.isUndefined =
|
|
3615
|
+
n.isUndefined = B;
|
|
3543
3616
|
function U(L) {
|
|
3544
3617
|
return F(L) && ae(L) === "[object RegExp]";
|
|
3545
3618
|
}
|
|
@@ -3595,7 +3668,7 @@ function so() {
|
|
|
3595
3668
|
}
|
|
3596
3669
|
n.log = function() {
|
|
3597
3670
|
console.log("%s - %s", ce(), n.format.apply(n, arguments));
|
|
3598
|
-
}, n.inherits =
|
|
3671
|
+
}, n.inherits = Ve(), n._extend = function(L, $) {
|
|
3599
3672
|
if (!$ || !F($)) return L;
|
|
3600
3673
|
for (var z = Object.keys($), Y = z.length; Y--; )
|
|
3601
3674
|
L[z[Y]] = $[z[Y]];
|
|
@@ -3620,17 +3693,17 @@ function so() {
|
|
|
3620
3693
|
}), z;
|
|
3621
3694
|
}
|
|
3622
3695
|
function z() {
|
|
3623
|
-
for (var Y,
|
|
3624
|
-
Y =
|
|
3625
|
-
}), D = [],
|
|
3626
|
-
D.push(arguments[
|
|
3627
|
-
D.push(function(
|
|
3628
|
-
|
|
3696
|
+
for (var Y, M, O = new Promise(function(G, d) {
|
|
3697
|
+
Y = G, M = d;
|
|
3698
|
+
}), D = [], V = 0; V < arguments.length; V++)
|
|
3699
|
+
D.push(arguments[V]);
|
|
3700
|
+
D.push(function(G, d) {
|
|
3701
|
+
G ? M(G) : Y(d);
|
|
3629
3702
|
});
|
|
3630
3703
|
try {
|
|
3631
3704
|
$.apply(this, D);
|
|
3632
|
-
} catch (
|
|
3633
|
-
|
|
3705
|
+
} catch (G) {
|
|
3706
|
+
M(G);
|
|
3634
3707
|
}
|
|
3635
3708
|
return O;
|
|
3636
3709
|
}
|
|
@@ -3644,7 +3717,7 @@ function so() {
|
|
|
3644
3717
|
t($)
|
|
3645
3718
|
);
|
|
3646
3719
|
}, n.promisify.custom = ie;
|
|
3647
|
-
function
|
|
3720
|
+
function Se(L, $) {
|
|
3648
3721
|
if (!L) {
|
|
3649
3722
|
var z = new Error("Promise was rejected with a falsy value");
|
|
3650
3723
|
z.reason = L, L = z;
|
|
@@ -3657,18 +3730,18 @@ function so() {
|
|
|
3657
3730
|
function $() {
|
|
3658
3731
|
for (var z = [], Y = 0; Y < arguments.length; Y++)
|
|
3659
3732
|
z.push(arguments[Y]);
|
|
3660
|
-
var
|
|
3661
|
-
if (typeof
|
|
3733
|
+
var M = z.pop();
|
|
3734
|
+
if (typeof M != "function")
|
|
3662
3735
|
throw new TypeError("The last argument must be of type Function");
|
|
3663
3736
|
var O = this, D = function() {
|
|
3664
|
-
return
|
|
3737
|
+
return M.apply(O, arguments);
|
|
3665
3738
|
};
|
|
3666
3739
|
L.apply(this, z).then(
|
|
3667
|
-
function(
|
|
3668
|
-
e.nextTick(D.bind(null, null,
|
|
3740
|
+
function(V) {
|
|
3741
|
+
e.nextTick(D.bind(null, null, V));
|
|
3669
3742
|
},
|
|
3670
|
-
function(
|
|
3671
|
-
e.nextTick(
|
|
3743
|
+
function(V) {
|
|
3744
|
+
e.nextTick(Se.bind(null, V, D));
|
|
3672
3745
|
}
|
|
3673
3746
|
);
|
|
3674
3747
|
}
|
|
@@ -3680,45 +3753,45 @@ function so() {
|
|
|
3680
3753
|
n.callbackify = he;
|
|
3681
3754
|
}(Pt)), Pt;
|
|
3682
3755
|
}
|
|
3683
|
-
var Pr,
|
|
3684
|
-
function
|
|
3685
|
-
if (
|
|
3686
|
-
|
|
3756
|
+
var Pr, _i;
|
|
3757
|
+
function Sa() {
|
|
3758
|
+
if (_i) return Pr;
|
|
3759
|
+
_i = 1;
|
|
3687
3760
|
function n(y, I) {
|
|
3688
|
-
var
|
|
3761
|
+
var _ = Object.keys(y);
|
|
3689
3762
|
if (Object.getOwnPropertySymbols) {
|
|
3690
3763
|
var h = Object.getOwnPropertySymbols(y);
|
|
3691
3764
|
I && (h = h.filter(function(b) {
|
|
3692
3765
|
return Object.getOwnPropertyDescriptor(y, b).enumerable;
|
|
3693
|
-
})),
|
|
3766
|
+
})), _.push.apply(_, h);
|
|
3694
3767
|
}
|
|
3695
|
-
return
|
|
3768
|
+
return _;
|
|
3696
3769
|
}
|
|
3697
3770
|
function e(y) {
|
|
3698
3771
|
for (var I = 1; I < arguments.length; I++) {
|
|
3699
|
-
var
|
|
3700
|
-
I % 2 ? n(Object(
|
|
3701
|
-
t(y, h,
|
|
3702
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(y, Object.getOwnPropertyDescriptors(
|
|
3703
|
-
Object.defineProperty(y, h, Object.getOwnPropertyDescriptor(
|
|
3772
|
+
var _ = arguments[I] != null ? arguments[I] : {};
|
|
3773
|
+
I % 2 ? n(Object(_), !0).forEach(function(h) {
|
|
3774
|
+
t(y, h, _[h]);
|
|
3775
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(y, Object.getOwnPropertyDescriptors(_)) : n(Object(_)).forEach(function(h) {
|
|
3776
|
+
Object.defineProperty(y, h, Object.getOwnPropertyDescriptor(_, h));
|
|
3704
3777
|
});
|
|
3705
3778
|
}
|
|
3706
3779
|
return y;
|
|
3707
3780
|
}
|
|
3708
|
-
function t(y, I,
|
|
3709
|
-
return I = E(I), I in y ? Object.defineProperty(y, I, { value:
|
|
3781
|
+
function t(y, I, _) {
|
|
3782
|
+
return I = E(I), I in y ? Object.defineProperty(y, I, { value: _, enumerable: !0, configurable: !0, writable: !0 }) : y[I] = _, y;
|
|
3710
3783
|
}
|
|
3711
3784
|
function o(y, I) {
|
|
3712
3785
|
if (!(y instanceof I))
|
|
3713
3786
|
throw new TypeError("Cannot call a class as a function");
|
|
3714
3787
|
}
|
|
3715
3788
|
function l(y, I) {
|
|
3716
|
-
for (var
|
|
3717
|
-
var h = I[
|
|
3789
|
+
for (var _ = 0; _ < I.length; _++) {
|
|
3790
|
+
var h = I[_];
|
|
3718
3791
|
h.enumerable = h.enumerable || !1, h.configurable = !0, "value" in h && (h.writable = !0), Object.defineProperty(y, E(h.key), h);
|
|
3719
3792
|
}
|
|
3720
3793
|
}
|
|
3721
|
-
function c(y, I,
|
|
3794
|
+
function c(y, I, _) {
|
|
3722
3795
|
return I && l(y.prototype, I), Object.defineProperty(y, "prototype", { writable: !1 }), y;
|
|
3723
3796
|
}
|
|
3724
3797
|
function E(y) {
|
|
@@ -3727,17 +3800,17 @@ function _a() {
|
|
|
3727
3800
|
}
|
|
3728
3801
|
function a(y, I) {
|
|
3729
3802
|
if (typeof y != "object" || y === null) return y;
|
|
3730
|
-
var
|
|
3731
|
-
if (
|
|
3732
|
-
var h =
|
|
3803
|
+
var _ = y[Symbol.toPrimitive];
|
|
3804
|
+
if (_ !== void 0) {
|
|
3805
|
+
var h = _.call(y, I);
|
|
3733
3806
|
if (typeof h != "object") return h;
|
|
3734
3807
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3735
3808
|
}
|
|
3736
3809
|
return String(y);
|
|
3737
3810
|
}
|
|
3738
|
-
var f =
|
|
3739
|
-
function j(y, I,
|
|
3740
|
-
u.prototype.copy.call(y, I,
|
|
3811
|
+
var f = Ke(), u = f.Buffer, w = so(), A = w.inspect, C = A && A.custom || "inspect";
|
|
3812
|
+
function j(y, I, _) {
|
|
3813
|
+
u.prototype.copy.call(y, I, _);
|
|
3741
3814
|
}
|
|
3742
3815
|
return Pr = /* @__PURE__ */ function() {
|
|
3743
3816
|
function y() {
|
|
@@ -3745,18 +3818,18 @@ function _a() {
|
|
|
3745
3818
|
}
|
|
3746
3819
|
return c(y, [{
|
|
3747
3820
|
key: "push",
|
|
3748
|
-
value: function(
|
|
3821
|
+
value: function(_) {
|
|
3749
3822
|
var h = {
|
|
3750
|
-
data:
|
|
3823
|
+
data: _,
|
|
3751
3824
|
next: null
|
|
3752
3825
|
};
|
|
3753
3826
|
this.length > 0 ? this.tail.next = h : this.head = h, this.tail = h, ++this.length;
|
|
3754
3827
|
}
|
|
3755
3828
|
}, {
|
|
3756
3829
|
key: "unshift",
|
|
3757
|
-
value: function(
|
|
3830
|
+
value: function(_) {
|
|
3758
3831
|
var h = {
|
|
3759
|
-
data:
|
|
3832
|
+
data: _,
|
|
3760
3833
|
next: this.head
|
|
3761
3834
|
};
|
|
3762
3835
|
this.length === 0 && (this.tail = h), this.head = h, ++this.length;
|
|
@@ -3765,8 +3838,8 @@ function _a() {
|
|
|
3765
3838
|
key: "shift",
|
|
3766
3839
|
value: function() {
|
|
3767
3840
|
if (this.length !== 0) {
|
|
3768
|
-
var
|
|
3769
|
-
return this.length === 1 ? this.head = this.tail = null : this.head = this.head.next, --this.length,
|
|
3841
|
+
var _ = this.head.data;
|
|
3842
|
+
return this.length === 1 ? this.head = this.tail = null : this.head = this.head.next, --this.length, _;
|
|
3770
3843
|
}
|
|
3771
3844
|
}
|
|
3772
3845
|
}, {
|
|
@@ -3776,25 +3849,25 @@ function _a() {
|
|
|
3776
3849
|
}
|
|
3777
3850
|
}, {
|
|
3778
3851
|
key: "join",
|
|
3779
|
-
value: function(
|
|
3852
|
+
value: function(_) {
|
|
3780
3853
|
if (this.length === 0) return "";
|
|
3781
|
-
for (var h = this.head, b = "" + h.data; h = h.next; ) b +=
|
|
3854
|
+
for (var h = this.head, b = "" + h.data; h = h.next; ) b += _ + h.data;
|
|
3782
3855
|
return b;
|
|
3783
3856
|
}
|
|
3784
3857
|
}, {
|
|
3785
3858
|
key: "concat",
|
|
3786
|
-
value: function(
|
|
3859
|
+
value: function(_) {
|
|
3787
3860
|
if (this.length === 0) return u.alloc(0);
|
|
3788
|
-
for (var h = u.allocUnsafe(
|
|
3861
|
+
for (var h = u.allocUnsafe(_ >>> 0), b = this.head, P = 0; b; )
|
|
3789
3862
|
j(b.data, h, P), P += b.data.length, b = b.next;
|
|
3790
3863
|
return h;
|
|
3791
3864
|
}
|
|
3792
3865
|
// Consumes a specified amount of bytes or characters from the buffered data.
|
|
3793
3866
|
}, {
|
|
3794
3867
|
key: "consume",
|
|
3795
|
-
value: function(
|
|
3868
|
+
value: function(_, h) {
|
|
3796
3869
|
var b;
|
|
3797
|
-
return
|
|
3870
|
+
return _ < this.head.data.length ? (b = this.head.data.slice(0, _), this.head.data = this.head.data.slice(_)) : _ === this.head.data.length ? b = this.shift() : b = h ? this._getString(_) : this._getBuffer(_), b;
|
|
3798
3871
|
}
|
|
3799
3872
|
}, {
|
|
3800
3873
|
key: "first",
|
|
@@ -3804,12 +3877,12 @@ function _a() {
|
|
|
3804
3877
|
// Consumes a specified amount of characters from the buffered data.
|
|
3805
3878
|
}, {
|
|
3806
3879
|
key: "_getString",
|
|
3807
|
-
value: function(
|
|
3880
|
+
value: function(_) {
|
|
3808
3881
|
var h = this.head, b = 1, P = h.data;
|
|
3809
|
-
for (
|
|
3810
|
-
var
|
|
3811
|
-
if (R ===
|
|
3812
|
-
R ===
|
|
3882
|
+
for (_ -= P.length; h = h.next; ) {
|
|
3883
|
+
var S = h.data, R = _ > S.length ? S.length : _;
|
|
3884
|
+
if (R === S.length ? P += S : P += S.slice(0, _), _ -= R, _ === 0) {
|
|
3885
|
+
R === S.length ? (++b, h.next ? this.head = h.next : this.head = this.tail = null) : (this.head = h, h.data = S.slice(R));
|
|
3813
3886
|
break;
|
|
3814
3887
|
}
|
|
3815
3888
|
++b;
|
|
@@ -3819,12 +3892,12 @@ function _a() {
|
|
|
3819
3892
|
// Consumes a specified amount of bytes from the buffered data.
|
|
3820
3893
|
}, {
|
|
3821
3894
|
key: "_getBuffer",
|
|
3822
|
-
value: function(
|
|
3823
|
-
var h = u.allocUnsafe(
|
|
3824
|
-
for (b.data.copy(h),
|
|
3825
|
-
var
|
|
3826
|
-
if (
|
|
3827
|
-
R ===
|
|
3895
|
+
value: function(_) {
|
|
3896
|
+
var h = u.allocUnsafe(_), b = this.head, P = 1;
|
|
3897
|
+
for (b.data.copy(h), _ -= b.data.length; b = b.next; ) {
|
|
3898
|
+
var S = b.data, R = _ > S.length ? S.length : _;
|
|
3899
|
+
if (S.copy(h, h.length - _, 0, R), _ -= R, _ === 0) {
|
|
3900
|
+
R === S.length ? (++P, b.next ? this.head = b.next : this.head = this.tail = null) : (this.head = b, b.data = S.slice(R));
|
|
3828
3901
|
break;
|
|
3829
3902
|
}
|
|
3830
3903
|
++P;
|
|
@@ -3834,7 +3907,7 @@ function _a() {
|
|
|
3834
3907
|
// Make sure the linked list only shows the minimal necessary information.
|
|
3835
3908
|
}, {
|
|
3836
3909
|
key: C,
|
|
3837
|
-
value: function(
|
|
3910
|
+
value: function(_, h) {
|
|
3838
3911
|
return A(this, e(e({}, h), {}, {
|
|
3839
3912
|
// Only inspect one level.
|
|
3840
3913
|
depth: 0,
|
|
@@ -3893,8 +3966,8 @@ function ze() {
|
|
|
3893
3966
|
}
|
|
3894
3967
|
var A = /* @__PURE__ */ function(C) {
|
|
3895
3968
|
n(j, C);
|
|
3896
|
-
function j(y, I,
|
|
3897
|
-
return C.call(this, w(y, I,
|
|
3969
|
+
function j(y, I, _) {
|
|
3970
|
+
return C.call(this, w(y, I, _)) || this;
|
|
3898
3971
|
}
|
|
3899
3972
|
return j;
|
|
3900
3973
|
}(u);
|
|
@@ -3963,7 +4036,7 @@ function co() {
|
|
|
3963
4036
|
}, Ir;
|
|
3964
4037
|
}
|
|
3965
4038
|
var Or, Pi;
|
|
3966
|
-
function
|
|
4039
|
+
function _a() {
|
|
3967
4040
|
if (Pi) return Or;
|
|
3968
4041
|
Pi = 1, Or = n;
|
|
3969
4042
|
function n(t, o) {
|
|
@@ -3997,84 +4070,84 @@ function uo() {
|
|
|
3997
4070
|
Ai = 1;
|
|
3998
4071
|
var n = { env: {} };
|
|
3999
4072
|
kr = U;
|
|
4000
|
-
function e(
|
|
4073
|
+
function e(M) {
|
|
4001
4074
|
var O = this;
|
|
4002
4075
|
this.next = null, this.entry = null, this.finish = function() {
|
|
4003
|
-
Y(O,
|
|
4076
|
+
Y(O, M);
|
|
4004
4077
|
};
|
|
4005
4078
|
}
|
|
4006
4079
|
var t;
|
|
4007
|
-
U.WritableState =
|
|
4080
|
+
U.WritableState = p;
|
|
4008
4081
|
var o = {
|
|
4009
|
-
deprecate:
|
|
4010
|
-
}, l = Xi(), c =
|
|
4082
|
+
deprecate: _a()
|
|
4083
|
+
}, l = Xi(), c = Ke().Buffer, E = (typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof self != "undefined" ? self : {}).Uint8Array || function() {
|
|
4011
4084
|
};
|
|
4012
|
-
function a(
|
|
4013
|
-
return c.from(
|
|
4085
|
+
function a(M) {
|
|
4086
|
+
return c.from(M);
|
|
4014
4087
|
}
|
|
4015
|
-
function f(
|
|
4016
|
-
return c.isBuffer(
|
|
4088
|
+
function f(M) {
|
|
4089
|
+
return c.isBuffer(M) || M instanceof E;
|
|
4017
4090
|
}
|
|
4018
|
-
var u = lo(), w = co(), A = w.getHighWaterMark, C = ze().codes, j = C.ERR_INVALID_ARG_TYPE, y = C.ERR_METHOD_NOT_IMPLEMENTED, I = C.ERR_MULTIPLE_CALLBACK,
|
|
4019
|
-
|
|
4091
|
+
var u = lo(), w = co(), A = w.getHighWaterMark, C = ze().codes, j = C.ERR_INVALID_ARG_TYPE, y = C.ERR_METHOD_NOT_IMPLEMENTED, I = C.ERR_MULTIPLE_CALLBACK, _ = C.ERR_STREAM_CANNOT_PIPE, h = C.ERR_STREAM_DESTROYED, b = C.ERR_STREAM_NULL_VALUES, P = C.ERR_STREAM_WRITE_AFTER_END, S = C.ERR_UNKNOWN_ENCODING, R = u.errorOrDestroy;
|
|
4092
|
+
Ve()(U, l);
|
|
4020
4093
|
function v() {
|
|
4021
4094
|
}
|
|
4022
|
-
function
|
|
4023
|
-
t = t || xe(),
|
|
4024
|
-
var
|
|
4025
|
-
this.decodeStrings = !
|
|
4026
|
-
me(O,
|
|
4027
|
-
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose =
|
|
4095
|
+
function p(M, O, D) {
|
|
4096
|
+
t = t || xe(), M = M || {}, typeof D != "boolean" && (D = O instanceof t), this.objectMode = !!M.objectMode, D && (this.objectMode = this.objectMode || !!M.writableObjectMode), this.highWaterMark = A(this, M, "writableHighWaterMark", D), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
|
|
4097
|
+
var V = M.decodeStrings === !1;
|
|
4098
|
+
this.decodeStrings = !V, this.defaultEncoding = M.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(G) {
|
|
4099
|
+
me(O, G);
|
|
4100
|
+
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = M.emitClose !== !1, this.autoDestroy = !!M.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new e(this);
|
|
4028
4101
|
}
|
|
4029
|
-
|
|
4102
|
+
p.prototype.getBuffer = function() {
|
|
4030
4103
|
for (var O = this.bufferedRequest, D = []; O; )
|
|
4031
4104
|
D.push(O), O = O.next;
|
|
4032
4105
|
return D;
|
|
4033
4106
|
}, function() {
|
|
4034
4107
|
try {
|
|
4035
|
-
Object.defineProperty(
|
|
4108
|
+
Object.defineProperty(p.prototype, "buffer", {
|
|
4036
4109
|
get: o.deprecate(function() {
|
|
4037
4110
|
return this.getBuffer();
|
|
4038
4111
|
}, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003")
|
|
4039
4112
|
});
|
|
4040
|
-
} catch (
|
|
4113
|
+
} catch (M) {
|
|
4041
4114
|
}
|
|
4042
4115
|
}();
|
|
4043
|
-
var
|
|
4044
|
-
typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (
|
|
4116
|
+
var B;
|
|
4117
|
+
typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (B = Function.prototype[Symbol.hasInstance], Object.defineProperty(U, Symbol.hasInstance, {
|
|
4045
4118
|
value: function(O) {
|
|
4046
|
-
return
|
|
4119
|
+
return B.call(this, O) ? !0 : this !== U ? !1 : O && O._writableState instanceof p;
|
|
4047
4120
|
}
|
|
4048
|
-
})) :
|
|
4121
|
+
})) : B = function(O) {
|
|
4049
4122
|
return O instanceof this;
|
|
4050
4123
|
};
|
|
4051
|
-
function U(
|
|
4124
|
+
function U(M) {
|
|
4052
4125
|
t = t || xe();
|
|
4053
4126
|
var O = this instanceof t;
|
|
4054
|
-
if (!O && !
|
|
4055
|
-
this._writableState = new
|
|
4127
|
+
if (!O && !B.call(U, this)) return new U(M);
|
|
4128
|
+
this._writableState = new p(M, this, O), this.writable = !0, M && (typeof M.write == "function" && (this._write = M.write), typeof M.writev == "function" && (this._writev = M.writev), typeof M.destroy == "function" && (this._destroy = M.destroy), typeof M.final == "function" && (this._final = M.final)), l.call(this);
|
|
4056
4129
|
}
|
|
4057
4130
|
U.prototype.pipe = function() {
|
|
4058
|
-
R(this, new
|
|
4131
|
+
R(this, new _());
|
|
4059
4132
|
};
|
|
4060
|
-
function F(
|
|
4133
|
+
function F(M, O) {
|
|
4061
4134
|
var D = new P();
|
|
4062
|
-
R(
|
|
4135
|
+
R(M, D), n.nextTick(O, D);
|
|
4063
4136
|
}
|
|
4064
|
-
function J(
|
|
4065
|
-
var
|
|
4066
|
-
return D === null ?
|
|
4137
|
+
function J(M, O, D, V) {
|
|
4138
|
+
var G;
|
|
4139
|
+
return D === null ? G = new b() : typeof D != "string" && !O.objectMode && (G = new j("chunk", ["string", "Buffer"], D)), G ? (R(M, G), n.nextTick(V, G), !1) : !0;
|
|
4067
4140
|
}
|
|
4068
|
-
U.prototype.write = function(
|
|
4069
|
-
var
|
|
4070
|
-
return d && !c.isBuffer(
|
|
4141
|
+
U.prototype.write = function(M, O, D) {
|
|
4142
|
+
var V = this._writableState, G = !1, d = !V.objectMode && f(M);
|
|
4143
|
+
return d && !c.isBuffer(M) && (M = a(M)), typeof O == "function" && (D = O, O = null), d ? O = "buffer" : O || (O = V.defaultEncoding), typeof D != "function" && (D = v), V.ending ? F(this, D) : (d || J(this, V, M, D)) && (V.pendingcb++, G = te(this, V, d, M, O, D)), G;
|
|
4071
4144
|
}, U.prototype.cork = function() {
|
|
4072
4145
|
this._writableState.corked++;
|
|
4073
4146
|
}, U.prototype.uncork = function() {
|
|
4074
|
-
var
|
|
4075
|
-
|
|
4147
|
+
var M = this._writableState;
|
|
4148
|
+
M.corked && (M.corked--, !M.writing && !M.corked && !M.bufferProcessing && M.bufferedRequest && ie(this, M));
|
|
4076
4149
|
}, U.prototype.setDefaultEncoding = function(O) {
|
|
4077
|
-
if (typeof O == "string" && (O = O.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((O + "").toLowerCase()) > -1)) throw new
|
|
4150
|
+
if (typeof O == "string" && (O = O.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((O + "").toLowerCase()) > -1)) throw new S(O);
|
|
4078
4151
|
return this._writableState.defaultEncoding = O, this;
|
|
4079
4152
|
}, Object.defineProperty(U.prototype, "writableBuffer", {
|
|
4080
4153
|
// making it explicit this property is not enumerable
|
|
@@ -4085,8 +4158,8 @@ function uo() {
|
|
|
4085
4158
|
return this._writableState && this._writableState.getBuffer();
|
|
4086
4159
|
}
|
|
4087
4160
|
});
|
|
4088
|
-
function k(
|
|
4089
|
-
return !
|
|
4161
|
+
function k(M, O, D) {
|
|
4162
|
+
return !M.objectMode && M.decodeStrings !== !1 && typeof O == "string" && (O = c.from(O, D)), O;
|
|
4090
4163
|
}
|
|
4091
4164
|
Object.defineProperty(U.prototype, "writableHighWaterMark", {
|
|
4092
4165
|
// making it explicit this property is not enumerable
|
|
@@ -4097,75 +4170,75 @@ function uo() {
|
|
|
4097
4170
|
return this._writableState.highWaterMark;
|
|
4098
4171
|
}
|
|
4099
4172
|
});
|
|
4100
|
-
function te(
|
|
4173
|
+
function te(M, O, D, V, G, d) {
|
|
4101
4174
|
if (!D) {
|
|
4102
|
-
var
|
|
4103
|
-
|
|
4175
|
+
var g = k(O, V, G);
|
|
4176
|
+
V !== g && (D = !0, G = "buffer", V = g);
|
|
4104
4177
|
}
|
|
4105
|
-
var x = O.objectMode ? 1 :
|
|
4178
|
+
var x = O.objectMode ? 1 : V.length;
|
|
4106
4179
|
O.length += x;
|
|
4107
4180
|
var H = O.length < O.highWaterMark;
|
|
4108
4181
|
if (H || (O.needDrain = !0), O.writing || O.corked) {
|
|
4109
4182
|
var K = O.lastBufferedRequest;
|
|
4110
4183
|
O.lastBufferedRequest = {
|
|
4111
|
-
chunk:
|
|
4112
|
-
encoding:
|
|
4184
|
+
chunk: V,
|
|
4185
|
+
encoding: G,
|
|
4113
4186
|
isBuf: D,
|
|
4114
4187
|
callback: d,
|
|
4115
4188
|
next: null
|
|
4116
4189
|
}, K ? K.next = O.lastBufferedRequest : O.bufferedRequest = O.lastBufferedRequest, O.bufferedRequestCount += 1;
|
|
4117
4190
|
} else
|
|
4118
|
-
ee(
|
|
4191
|
+
ee(M, O, !1, x, V, G, d);
|
|
4119
4192
|
return H;
|
|
4120
4193
|
}
|
|
4121
|
-
function ee(
|
|
4122
|
-
O.writelen =
|
|
4194
|
+
function ee(M, O, D, V, G, d, g) {
|
|
4195
|
+
O.writelen = V, O.writecb = g, O.writing = !0, O.sync = !0, O.destroyed ? O.onwrite(new h("write")) : D ? M._writev(G, O.onwrite) : M._write(G, d, O.onwrite), O.sync = !1;
|
|
4123
4196
|
}
|
|
4124
|
-
function ae(
|
|
4125
|
-
--O.pendingcb, D ? (n.nextTick(
|
|
4197
|
+
function ae(M, O, D, V, G) {
|
|
4198
|
+
--O.pendingcb, D ? (n.nextTick(G, V), n.nextTick($, M, O), M._writableState.errorEmitted = !0, R(M, V)) : (G(V), M._writableState.errorEmitted = !0, R(M, V), $(M, O));
|
|
4126
4199
|
}
|
|
4127
|
-
function le(
|
|
4128
|
-
|
|
4200
|
+
function le(M) {
|
|
4201
|
+
M.writing = !1, M.writecb = null, M.length -= M.writelen, M.writelen = 0;
|
|
4129
4202
|
}
|
|
4130
|
-
function me(
|
|
4131
|
-
var D =
|
|
4132
|
-
if (typeof
|
|
4133
|
-
if (le(D), O) ae(
|
|
4203
|
+
function me(M, O) {
|
|
4204
|
+
var D = M._writableState, V = D.sync, G = D.writecb;
|
|
4205
|
+
if (typeof G != "function") throw new I();
|
|
4206
|
+
if (le(D), O) ae(M, D, V, O, G);
|
|
4134
4207
|
else {
|
|
4135
|
-
var d =
|
|
4136
|
-
!d && !D.corked && !D.bufferProcessing && D.bufferedRequest && ie(
|
|
4208
|
+
var d = Se(D) || M.destroyed;
|
|
4209
|
+
!d && !D.corked && !D.bufferProcessing && D.bufferedRequest && ie(M, D), V ? n.nextTick(ce, M, D, d, G) : ce(M, D, d, G);
|
|
4137
4210
|
}
|
|
4138
4211
|
}
|
|
4139
|
-
function ce(
|
|
4140
|
-
D || ge(
|
|
4212
|
+
function ce(M, O, D, V) {
|
|
4213
|
+
D || ge(M, O), O.pendingcb--, V(), $(M, O);
|
|
4141
4214
|
}
|
|
4142
|
-
function ge(
|
|
4143
|
-
O.length === 0 && O.needDrain && (O.needDrain = !1,
|
|
4215
|
+
function ge(M, O) {
|
|
4216
|
+
O.length === 0 && O.needDrain && (O.needDrain = !1, M.emit("drain"));
|
|
4144
4217
|
}
|
|
4145
|
-
function ie(
|
|
4218
|
+
function ie(M, O) {
|
|
4146
4219
|
O.bufferProcessing = !0;
|
|
4147
4220
|
var D = O.bufferedRequest;
|
|
4148
|
-
if (
|
|
4149
|
-
var
|
|
4221
|
+
if (M._writev && D && D.next) {
|
|
4222
|
+
var V = O.bufferedRequestCount, G = new Array(V), d = O.corkedRequestsFree;
|
|
4150
4223
|
d.entry = D;
|
|
4151
|
-
for (var
|
|
4152
|
-
|
|
4153
|
-
|
|
4224
|
+
for (var g = 0, x = !0; D; )
|
|
4225
|
+
G[g] = D, D.isBuf || (x = !1), D = D.next, g += 1;
|
|
4226
|
+
G.allBuffers = x, ee(M, O, !0, O.length, G, "", d.finish), O.pendingcb++, O.lastBufferedRequest = null, d.next ? (O.corkedRequestsFree = d.next, d.next = null) : O.corkedRequestsFree = new e(O), O.bufferedRequestCount = 0;
|
|
4154
4227
|
} else {
|
|
4155
4228
|
for (; D; ) {
|
|
4156
4229
|
var H = D.chunk, K = D.encoding, X = D.callback, Q = O.objectMode ? 1 : H.length;
|
|
4157
|
-
if (ee(
|
|
4230
|
+
if (ee(M, O, !1, Q, H, K, X), D = D.next, O.bufferedRequestCount--, O.writing)
|
|
4158
4231
|
break;
|
|
4159
4232
|
}
|
|
4160
4233
|
D === null && (O.lastBufferedRequest = null);
|
|
4161
4234
|
}
|
|
4162
4235
|
O.bufferedRequest = D, O.bufferProcessing = !1;
|
|
4163
4236
|
}
|
|
4164
|
-
U.prototype._write = function(
|
|
4237
|
+
U.prototype._write = function(M, O, D) {
|
|
4165
4238
|
D(new y("_write()"));
|
|
4166
|
-
}, U.prototype._writev = null, U.prototype.end = function(
|
|
4167
|
-
var
|
|
4168
|
-
return typeof
|
|
4239
|
+
}, U.prototype._writev = null, U.prototype.end = function(M, O, D) {
|
|
4240
|
+
var V = this._writableState;
|
|
4241
|
+
return typeof M == "function" ? (D = M, M = null, O = null) : typeof O == "function" && (D = O, O = null), M != null && this.write(M, O), V.corked && (V.corked = 1, this.uncork()), V.ending || z(this, V, D), this;
|
|
4169
4242
|
}, Object.defineProperty(U.prototype, "writableLength", {
|
|
4170
4243
|
// making it explicit this property is not enumerable
|
|
4171
4244
|
// because otherwise some prototype manipulation in
|
|
@@ -4175,35 +4248,35 @@ function uo() {
|
|
|
4175
4248
|
return this._writableState.length;
|
|
4176
4249
|
}
|
|
4177
4250
|
});
|
|
4178
|
-
function
|
|
4179
|
-
return
|
|
4251
|
+
function Se(M) {
|
|
4252
|
+
return M.ending && M.length === 0 && M.bufferedRequest === null && !M.finished && !M.writing;
|
|
4180
4253
|
}
|
|
4181
|
-
function he(
|
|
4182
|
-
|
|
4183
|
-
O.pendingcb--, D && R(
|
|
4254
|
+
function he(M, O) {
|
|
4255
|
+
M._final(function(D) {
|
|
4256
|
+
O.pendingcb--, D && R(M, D), O.prefinished = !0, M.emit("prefinish"), $(M, O);
|
|
4184
4257
|
});
|
|
4185
4258
|
}
|
|
4186
|
-
function L(
|
|
4187
|
-
!O.prefinished && !O.finalCalled && (typeof
|
|
4259
|
+
function L(M, O) {
|
|
4260
|
+
!O.prefinished && !O.finalCalled && (typeof M._final == "function" && !O.destroyed ? (O.pendingcb++, O.finalCalled = !0, n.nextTick(he, M, O)) : (O.prefinished = !0, M.emit("prefinish")));
|
|
4188
4261
|
}
|
|
4189
|
-
function $(
|
|
4190
|
-
var D =
|
|
4191
|
-
if (D && (L(
|
|
4192
|
-
var
|
|
4193
|
-
(!
|
|
4262
|
+
function $(M, O) {
|
|
4263
|
+
var D = Se(O);
|
|
4264
|
+
if (D && (L(M, O), O.pendingcb === 0 && (O.finished = !0, M.emit("finish"), O.autoDestroy))) {
|
|
4265
|
+
var V = M._readableState;
|
|
4266
|
+
(!V || V.autoDestroy && V.endEmitted) && M.destroy();
|
|
4194
4267
|
}
|
|
4195
4268
|
return D;
|
|
4196
4269
|
}
|
|
4197
|
-
function z(
|
|
4198
|
-
O.ending = !0, $(
|
|
4270
|
+
function z(M, O, D) {
|
|
4271
|
+
O.ending = !0, $(M, O), D && (O.finished ? n.nextTick(D) : M.once("finish", D)), O.ended = !0, M.writable = !1;
|
|
4199
4272
|
}
|
|
4200
|
-
function Y(
|
|
4201
|
-
var
|
|
4202
|
-
for (
|
|
4203
|
-
var
|
|
4204
|
-
O.pendingcb--,
|
|
4273
|
+
function Y(M, O, D) {
|
|
4274
|
+
var V = M.entry;
|
|
4275
|
+
for (M.entry = null; V; ) {
|
|
4276
|
+
var G = V.callback;
|
|
4277
|
+
O.pendingcb--, G(D), V = V.next;
|
|
4205
4278
|
}
|
|
4206
|
-
O.corkedRequestsFree.next =
|
|
4279
|
+
O.corkedRequestsFree.next = M;
|
|
4207
4280
|
}
|
|
4208
4281
|
return Object.defineProperty(U.prototype, "destroyed", {
|
|
4209
4282
|
// making it explicit this property is not enumerable
|
|
@@ -4216,22 +4289,22 @@ function uo() {
|
|
|
4216
4289
|
set: function(O) {
|
|
4217
4290
|
this._writableState && (this._writableState.destroyed = O);
|
|
4218
4291
|
}
|
|
4219
|
-
}), U.prototype.destroy = u.destroy, U.prototype._undestroy = u.undestroy, U.prototype._destroy = function(
|
|
4220
|
-
O(
|
|
4292
|
+
}), U.prototype.destroy = u.destroy, U.prototype._undestroy = u.undestroy, U.prototype._destroy = function(M, O) {
|
|
4293
|
+
O(M);
|
|
4221
4294
|
}, kr;
|
|
4222
4295
|
}
|
|
4223
|
-
var
|
|
4296
|
+
var Mr, Ti;
|
|
4224
4297
|
function xe() {
|
|
4225
|
-
if (Ti) return
|
|
4298
|
+
if (Ti) return Mr;
|
|
4226
4299
|
Ti = 1;
|
|
4227
4300
|
var n = { env: {} }, e = Object.keys || function(w) {
|
|
4228
4301
|
var A = [];
|
|
4229
4302
|
for (var C in w) A.push(C);
|
|
4230
4303
|
return A;
|
|
4231
4304
|
};
|
|
4232
|
-
|
|
4305
|
+
Mr = a;
|
|
4233
4306
|
var t = fo(), o = uo();
|
|
4234
|
-
|
|
4307
|
+
Ve()(a, t);
|
|
4235
4308
|
for (var l = e(o.prototype), c = 0; c < l.length; c++) {
|
|
4236
4309
|
var E = l[c];
|
|
4237
4310
|
a.prototype[E] || (a.prototype[E] = o.prototype[E]);
|
|
@@ -4282,11 +4355,11 @@ function xe() {
|
|
|
4282
4355
|
set: function(A) {
|
|
4283
4356
|
this._readableState === void 0 || this._writableState === void 0 || (this._readableState.destroyed = A, this._writableState.destroyed = A);
|
|
4284
4357
|
}
|
|
4285
|
-
}),
|
|
4358
|
+
}), Mr;
|
|
4286
4359
|
}
|
|
4287
|
-
var
|
|
4360
|
+
var Br = {}, Ii;
|
|
4288
4361
|
function Oi() {
|
|
4289
|
-
if (Ii) return
|
|
4362
|
+
if (Ii) return Br;
|
|
4290
4363
|
Ii = 1;
|
|
4291
4364
|
var n = Ki().Buffer, e = n.isEncoding || function(h) {
|
|
4292
4365
|
switch (h = "" + h, h && h.toLowerCase()) {
|
|
@@ -4335,7 +4408,7 @@ function Oi() {
|
|
|
4335
4408
|
if (typeof b != "string" && (n.isEncoding === e || !e(h))) throw new Error("Unknown encoding: " + h);
|
|
4336
4409
|
return b || h;
|
|
4337
4410
|
}
|
|
4338
|
-
|
|
4411
|
+
Br.StringDecoder = l;
|
|
4339
4412
|
function l(h) {
|
|
4340
4413
|
this.encoding = o(h);
|
|
4341
4414
|
var b;
|
|
@@ -4350,7 +4423,7 @@ function Oi() {
|
|
|
4350
4423
|
this.text = j, this.end = y, b = 3;
|
|
4351
4424
|
break;
|
|
4352
4425
|
default:
|
|
4353
|
-
this.write = I, this.end =
|
|
4426
|
+
this.write = I, this.end = _;
|
|
4354
4427
|
return;
|
|
4355
4428
|
}
|
|
4356
4429
|
this.lastNeed = 0, this.lastTotal = 0, this.lastChar = n.allocUnsafe(b);
|
|
@@ -4373,10 +4446,10 @@ function Oi() {
|
|
|
4373
4446
|
return h <= 127 ? 0 : h >> 5 === 6 ? 2 : h >> 4 === 14 ? 3 : h >> 3 === 30 ? 4 : h >> 6 === 2 ? -1 : -2;
|
|
4374
4447
|
}
|
|
4375
4448
|
function E(h, b, P) {
|
|
4376
|
-
var
|
|
4377
|
-
if (
|
|
4378
|
-
var R = c(b[
|
|
4379
|
-
return R >= 0 ? (R > 0 && (h.lastNeed = R - 1), R) : --
|
|
4449
|
+
var S = b.length - 1;
|
|
4450
|
+
if (S < P) return 0;
|
|
4451
|
+
var R = c(b[S]);
|
|
4452
|
+
return R >= 0 ? (R > 0 && (h.lastNeed = R - 1), R) : --S < P || R === -2 ? 0 : (R = c(b[S]), R >= 0 ? (R > 0 && (h.lastNeed = R - 2), R) : --S < P || R === -2 ? 0 : (R = c(b[S]), R >= 0 ? (R > 0 && (R === 2 ? R = 0 : h.lastNeed = R - 3), R) : 0));
|
|
4380
4453
|
}
|
|
4381
4454
|
function a(h, b, P) {
|
|
4382
4455
|
if ((b[0] & 192) !== 128)
|
|
@@ -4399,8 +4472,8 @@ function Oi() {
|
|
|
4399
4472
|
var P = E(this, h, b);
|
|
4400
4473
|
if (!this.lastNeed) return h.toString("utf8", b);
|
|
4401
4474
|
this.lastTotal = P;
|
|
4402
|
-
var
|
|
4403
|
-
return h.copy(this.lastChar, 0,
|
|
4475
|
+
var S = h.length - (P - this.lastNeed);
|
|
4476
|
+
return h.copy(this.lastChar, 0, S), h.toString("utf8", b, S);
|
|
4404
4477
|
}
|
|
4405
4478
|
function w(h) {
|
|
4406
4479
|
var b = h && h.length ? this.write(h) : "";
|
|
@@ -4410,8 +4483,8 @@ function Oi() {
|
|
|
4410
4483
|
if ((h.length - b) % 2 === 0) {
|
|
4411
4484
|
var P = h.toString("utf16le", b);
|
|
4412
4485
|
if (P) {
|
|
4413
|
-
var
|
|
4414
|
-
if (
|
|
4486
|
+
var S = P.charCodeAt(P.length - 1);
|
|
4487
|
+
if (S >= 55296 && S <= 56319)
|
|
4415
4488
|
return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = h[h.length - 2], this.lastChar[1] = h[h.length - 1], P.slice(0, -1);
|
|
4416
4489
|
}
|
|
4417
4490
|
return P;
|
|
@@ -4437,10 +4510,10 @@ function Oi() {
|
|
|
4437
4510
|
function I(h) {
|
|
4438
4511
|
return h.toString(this.encoding);
|
|
4439
4512
|
}
|
|
4440
|
-
function
|
|
4513
|
+
function _(h) {
|
|
4441
4514
|
return h && h.length ? this.write(h) : "";
|
|
4442
4515
|
}
|
|
4443
|
-
return
|
|
4516
|
+
return Br;
|
|
4444
4517
|
}
|
|
4445
4518
|
var Lr, ki;
|
|
4446
4519
|
function an() {
|
|
@@ -4474,7 +4547,7 @@ function an() {
|
|
|
4474
4547
|
f = !1, j = !0, u || a.call(c);
|
|
4475
4548
|
}, I = function(P) {
|
|
4476
4549
|
a.call(c, P);
|
|
4477
|
-
},
|
|
4550
|
+
}, _ = function() {
|
|
4478
4551
|
var P;
|
|
4479
4552
|
if (f && !j)
|
|
4480
4553
|
return (!c._readableState || !c._readableState.ended) && (P = new n()), a.call(c, P);
|
|
@@ -4483,60 +4556,60 @@ function an() {
|
|
|
4483
4556
|
}, h = function() {
|
|
4484
4557
|
c.req.on("finish", C);
|
|
4485
4558
|
};
|
|
4486
|
-
return o(c) ? (c.on("complete", C), c.on("abort",
|
|
4487
|
-
c.removeListener("complete", C), c.removeListener("abort",
|
|
4559
|
+
return o(c) ? (c.on("complete", C), c.on("abort", _), c.req ? h() : c.on("request", h)) : u && !c._writableState && (c.on("end", w), c.on("close", w)), c.on("end", y), c.on("finish", C), E.error !== !1 && c.on("error", I), c.on("close", _), function() {
|
|
4560
|
+
c.removeListener("complete", C), c.removeListener("abort", _), c.removeListener("request", h), c.req && c.req.removeListener("finish", C), c.removeListener("end", w), c.removeListener("close", w), c.removeListener("finish", C), c.removeListener("end", y), c.removeListener("error", I), c.removeListener("close", _);
|
|
4488
4561
|
};
|
|
4489
4562
|
}
|
|
4490
4563
|
return Lr = l, Lr;
|
|
4491
4564
|
}
|
|
4492
|
-
var Nr,
|
|
4565
|
+
var Nr, Mi;
|
|
4493
4566
|
function Ca() {
|
|
4494
|
-
if (
|
|
4495
|
-
|
|
4567
|
+
if (Mi) return Nr;
|
|
4568
|
+
Mi = 1;
|
|
4496
4569
|
var n = { env: {} }, e;
|
|
4497
|
-
function t(
|
|
4498
|
-
return R = o(R), R in
|
|
4570
|
+
function t(S, R, v) {
|
|
4571
|
+
return R = o(R), R in S ? Object.defineProperty(S, R, { value: v, enumerable: !0, configurable: !0, writable: !0 }) : S[R] = v, S;
|
|
4499
4572
|
}
|
|
4500
|
-
function o(
|
|
4501
|
-
var R = l(
|
|
4573
|
+
function o(S) {
|
|
4574
|
+
var R = l(S, "string");
|
|
4502
4575
|
return typeof R == "symbol" ? R : String(R);
|
|
4503
4576
|
}
|
|
4504
|
-
function l(
|
|
4505
|
-
if (typeof
|
|
4506
|
-
var v =
|
|
4577
|
+
function l(S, R) {
|
|
4578
|
+
if (typeof S != "object" || S === null) return S;
|
|
4579
|
+
var v = S[Symbol.toPrimitive];
|
|
4507
4580
|
if (v !== void 0) {
|
|
4508
|
-
var
|
|
4509
|
-
if (typeof
|
|
4581
|
+
var p = v.call(S, R);
|
|
4582
|
+
if (typeof p != "object") return p;
|
|
4510
4583
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
4511
4584
|
}
|
|
4512
|
-
return (R === "string" ? String : Number)(
|
|
4585
|
+
return (R === "string" ? String : Number)(S);
|
|
4513
4586
|
}
|
|
4514
4587
|
var c = an(), E = Symbol("lastResolve"), a = Symbol("lastReject"), f = Symbol("error"), u = Symbol("ended"), w = Symbol("lastPromise"), A = Symbol("handlePromise"), C = Symbol("stream");
|
|
4515
|
-
function j(
|
|
4588
|
+
function j(S, R) {
|
|
4516
4589
|
return {
|
|
4517
|
-
value:
|
|
4590
|
+
value: S,
|
|
4518
4591
|
done: R
|
|
4519
4592
|
};
|
|
4520
4593
|
}
|
|
4521
|
-
function y(
|
|
4522
|
-
var R =
|
|
4594
|
+
function y(S) {
|
|
4595
|
+
var R = S[E];
|
|
4523
4596
|
if (R !== null) {
|
|
4524
|
-
var v =
|
|
4525
|
-
v !== null && (
|
|
4597
|
+
var v = S[C].read();
|
|
4598
|
+
v !== null && (S[w] = null, S[E] = null, S[a] = null, R(j(v, !1)));
|
|
4526
4599
|
}
|
|
4527
4600
|
}
|
|
4528
|
-
function I(
|
|
4529
|
-
n.nextTick(y,
|
|
4601
|
+
function I(S) {
|
|
4602
|
+
n.nextTick(y, S);
|
|
4530
4603
|
}
|
|
4531
|
-
function S
|
|
4532
|
-
return function(v,
|
|
4533
|
-
|
|
4604
|
+
function _(S, R) {
|
|
4605
|
+
return function(v, p) {
|
|
4606
|
+
S.then(function() {
|
|
4534
4607
|
if (R[u]) {
|
|
4535
4608
|
v(j(void 0, !0));
|
|
4536
4609
|
return;
|
|
4537
4610
|
}
|
|
4538
|
-
R[A](v,
|
|
4539
|
-
},
|
|
4611
|
+
R[A](v, p);
|
|
4612
|
+
}, p);
|
|
4540
4613
|
};
|
|
4541
4614
|
}
|
|
4542
4615
|
var h = Object.getPrototypeOf(function() {
|
|
@@ -4556,32 +4629,32 @@ function Ca() {
|
|
|
4556
4629
|
R[f] ? J(R[f]) : F(j(void 0, !0));
|
|
4557
4630
|
});
|
|
4558
4631
|
});
|
|
4559
|
-
var
|
|
4560
|
-
if (
|
|
4561
|
-
|
|
4632
|
+
var p = this[w], B;
|
|
4633
|
+
if (p)
|
|
4634
|
+
B = new Promise(_(p, this));
|
|
4562
4635
|
else {
|
|
4563
4636
|
var U = this[C].read();
|
|
4564
4637
|
if (U !== null)
|
|
4565
4638
|
return Promise.resolve(j(U, !1));
|
|
4566
|
-
|
|
4639
|
+
B = new Promise(this[A]);
|
|
4567
4640
|
}
|
|
4568
|
-
return this[w] =
|
|
4641
|
+
return this[w] = B, B;
|
|
4569
4642
|
}
|
|
4570
4643
|
}, t(e, Symbol.asyncIterator, function() {
|
|
4571
4644
|
return this;
|
|
4572
4645
|
}), t(e, "return", function() {
|
|
4573
4646
|
var R = this;
|
|
4574
|
-
return new Promise(function(v,
|
|
4575
|
-
R[C].destroy(null, function(
|
|
4576
|
-
if (
|
|
4577
|
-
|
|
4647
|
+
return new Promise(function(v, p) {
|
|
4648
|
+
R[C].destroy(null, function(B) {
|
|
4649
|
+
if (B) {
|
|
4650
|
+
p(B);
|
|
4578
4651
|
return;
|
|
4579
4652
|
}
|
|
4580
4653
|
v(j(void 0, !0));
|
|
4581
4654
|
});
|
|
4582
4655
|
});
|
|
4583
4656
|
}), e), h), P = function(R) {
|
|
4584
|
-
var v,
|
|
4657
|
+
var v, p = Object.create(b, (v = {}, t(v, C, {
|
|
4585
4658
|
value: R,
|
|
4586
4659
|
writable: !0
|
|
4587
4660
|
}), t(v, E, {
|
|
@@ -4598,26 +4671,26 @@ function Ca() {
|
|
|
4598
4671
|
writable: !0
|
|
4599
4672
|
}), t(v, A, {
|
|
4600
4673
|
value: function(U, F) {
|
|
4601
|
-
var J =
|
|
4602
|
-
J ? (
|
|
4674
|
+
var J = p[C].read();
|
|
4675
|
+
J ? (p[w] = null, p[E] = null, p[a] = null, U(j(J, !1))) : (p[E] = U, p[a] = F);
|
|
4603
4676
|
},
|
|
4604
4677
|
writable: !0
|
|
4605
4678
|
}), v));
|
|
4606
|
-
return
|
|
4607
|
-
if (
|
|
4608
|
-
var U =
|
|
4609
|
-
U !== null && (
|
|
4679
|
+
return p[w] = null, c(R, function(B) {
|
|
4680
|
+
if (B && B.code !== "ERR_STREAM_PREMATURE_CLOSE") {
|
|
4681
|
+
var U = p[a];
|
|
4682
|
+
U !== null && (p[w] = null, p[E] = null, p[a] = null, U(B)), p[f] = B;
|
|
4610
4683
|
return;
|
|
4611
4684
|
}
|
|
4612
|
-
var F =
|
|
4613
|
-
F !== null && (
|
|
4614
|
-
}), R.on("readable", I.bind(null,
|
|
4685
|
+
var F = p[E];
|
|
4686
|
+
F !== null && (p[w] = null, p[E] = null, p[a] = null, F(j(void 0, !0))), p[u] = !0;
|
|
4687
|
+
}), R.on("readable", I.bind(null, p)), p;
|
|
4615
4688
|
};
|
|
4616
4689
|
return Nr = P, Nr;
|
|
4617
4690
|
}
|
|
4618
|
-
var Dr,
|
|
4691
|
+
var Dr, Bi;
|
|
4619
4692
|
function Ea() {
|
|
4620
|
-
return
|
|
4693
|
+
return Bi || (Bi = 1, Dr = function() {
|
|
4621
4694
|
throw new Error("Readable.from is not available in the browser");
|
|
4622
4695
|
}), Dr;
|
|
4623
4696
|
}
|
|
@@ -4629,9 +4702,9 @@ function fo() {
|
|
|
4629
4702
|
Fr = F;
|
|
4630
4703
|
var e;
|
|
4631
4704
|
F.ReadableState = U, en().EventEmitter;
|
|
4632
|
-
var t = function(
|
|
4633
|
-
return
|
|
4634
|
-
}, o = Xi(), l =
|
|
4705
|
+
var t = function(g, x) {
|
|
4706
|
+
return g.listeners(x).length;
|
|
4707
|
+
}, o = Xi(), l = Ke().Buffer, c = (typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof self != "undefined" ? self : {}).Uint8Array || function() {
|
|
4635
4708
|
};
|
|
4636
4709
|
function E(d) {
|
|
4637
4710
|
return l.from(d);
|
|
@@ -4642,20 +4715,20 @@ function fo() {
|
|
|
4642
4715
|
var f = so(), u;
|
|
4643
4716
|
f && f.debuglog ? u = f.debuglog("stream") : u = function() {
|
|
4644
4717
|
};
|
|
4645
|
-
var w =
|
|
4646
|
-
|
|
4647
|
-
var v = A.errorOrDestroy,
|
|
4648
|
-
function
|
|
4649
|
-
if (typeof d.prependListener == "function") return d.prependListener(
|
|
4650
|
-
!d._events || !d._events[
|
|
4718
|
+
var w = Sa(), A = lo(), C = co(), j = C.getHighWaterMark, y = ze().codes, I = y.ERR_INVALID_ARG_TYPE, _ = y.ERR_STREAM_PUSH_AFTER_EOF, h = y.ERR_METHOD_NOT_IMPLEMENTED, b = y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, P, S, R;
|
|
4719
|
+
Ve()(F, o);
|
|
4720
|
+
var v = A.errorOrDestroy, p = ["error", "close", "destroy", "pause", "resume"];
|
|
4721
|
+
function B(d, g, x) {
|
|
4722
|
+
if (typeof d.prependListener == "function") return d.prependListener(g, x);
|
|
4723
|
+
!d._events || !d._events[g] ? d.on(g, x) : Array.isArray(d._events[g]) ? d._events[g].unshift(x) : d._events[g] = [x, d._events[g]];
|
|
4651
4724
|
}
|
|
4652
|
-
function U(d,
|
|
4653
|
-
e = e || xe(), d = d || {}, typeof x != "boolean" && (x =
|
|
4725
|
+
function U(d, g, x) {
|
|
4726
|
+
e = e || xe(), d = d || {}, typeof x != "boolean" && (x = g instanceof e), this.objectMode = !!d.objectMode, x && (this.objectMode = this.objectMode || !!d.readableObjectMode), this.highWaterMark = j(this, d, "readableHighWaterMark", x), this.buffer = new w(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = d.emitClose !== !1, this.autoDestroy = !!d.autoDestroy, this.destroyed = !1, this.defaultEncoding = d.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, d.encoding && (P || (P = Oi().StringDecoder), this.decoder = new P(d.encoding), this.encoding = d.encoding);
|
|
4654
4727
|
}
|
|
4655
4728
|
function F(d) {
|
|
4656
4729
|
if (e = e || xe(), !(this instanceof F)) return new F(d);
|
|
4657
|
-
var
|
|
4658
|
-
this._readableState = new U(d, this,
|
|
4730
|
+
var g = this instanceof e;
|
|
4731
|
+
this._readableState = new U(d, this, g), this.readable = !0, d && (typeof d.read == "function" && (this._read = d.read), typeof d.destroy == "function" && (this._destroy = d.destroy)), o.call(this);
|
|
4659
4732
|
}
|
|
4660
4733
|
Object.defineProperty(F.prototype, "destroyed", {
|
|
4661
4734
|
// making it explicit this property is not enumerable
|
|
@@ -4665,107 +4738,107 @@ function fo() {
|
|
|
4665
4738
|
get: function() {
|
|
4666
4739
|
return this._readableState === void 0 ? !1 : this._readableState.destroyed;
|
|
4667
4740
|
},
|
|
4668
|
-
set: function(
|
|
4669
|
-
this._readableState && (this._readableState.destroyed =
|
|
4741
|
+
set: function(g) {
|
|
4742
|
+
this._readableState && (this._readableState.destroyed = g);
|
|
4670
4743
|
}
|
|
4671
|
-
}), F.prototype.destroy = A.destroy, F.prototype._undestroy = A.undestroy, F.prototype._destroy = function(d,
|
|
4672
|
-
|
|
4673
|
-
}, F.prototype.push = function(d,
|
|
4744
|
+
}), F.prototype.destroy = A.destroy, F.prototype._undestroy = A.undestroy, F.prototype._destroy = function(d, g) {
|
|
4745
|
+
g(d);
|
|
4746
|
+
}, F.prototype.push = function(d, g) {
|
|
4674
4747
|
var x = this._readableState, H;
|
|
4675
|
-
return x.objectMode ? H = !0 : typeof d == "string" && (
|
|
4748
|
+
return x.objectMode ? H = !0 : typeof d == "string" && (g = g || x.defaultEncoding, g !== x.encoding && (d = l.from(d, g), g = ""), H = !0), J(this, d, g, !1, H);
|
|
4676
4749
|
}, F.prototype.unshift = function(d) {
|
|
4677
4750
|
return J(this, d, null, !0, !1);
|
|
4678
4751
|
};
|
|
4679
|
-
function J(d,
|
|
4680
|
-
u("readableAddChunk",
|
|
4752
|
+
function J(d, g, x, H, K) {
|
|
4753
|
+
u("readableAddChunk", g);
|
|
4681
4754
|
var X = d._readableState;
|
|
4682
|
-
if (
|
|
4755
|
+
if (g === null)
|
|
4683
4756
|
X.reading = !1, me(d, X);
|
|
4684
4757
|
else {
|
|
4685
4758
|
var Q;
|
|
4686
|
-
if (K || (Q = te(X,
|
|
4759
|
+
if (K || (Q = te(X, g)), Q)
|
|
4687
4760
|
v(d, Q);
|
|
4688
|
-
else if (X.objectMode ||
|
|
4689
|
-
if (typeof
|
|
4690
|
-
X.endEmitted ? v(d, new b()) : k(d, X,
|
|
4761
|
+
else if (X.objectMode || g && g.length > 0)
|
|
4762
|
+
if (typeof g != "string" && !X.objectMode && Object.getPrototypeOf(g) !== l.prototype && (g = E(g)), H)
|
|
4763
|
+
X.endEmitted ? v(d, new b()) : k(d, X, g, !0);
|
|
4691
4764
|
else if (X.ended)
|
|
4692
|
-
v(d, new
|
|
4765
|
+
v(d, new _());
|
|
4693
4766
|
else {
|
|
4694
4767
|
if (X.destroyed)
|
|
4695
4768
|
return !1;
|
|
4696
|
-
X.reading = !1, X.decoder && !x ? (
|
|
4769
|
+
X.reading = !1, X.decoder && !x ? (g = X.decoder.write(g), X.objectMode || g.length !== 0 ? k(d, X, g, !1) : ie(d, X)) : k(d, X, g, !1);
|
|
4697
4770
|
}
|
|
4698
4771
|
else H || (X.reading = !1, ie(d, X));
|
|
4699
4772
|
}
|
|
4700
4773
|
return !X.ended && (X.length < X.highWaterMark || X.length === 0);
|
|
4701
4774
|
}
|
|
4702
|
-
function k(d,
|
|
4703
|
-
|
|
4775
|
+
function k(d, g, x, H) {
|
|
4776
|
+
g.flowing && g.length === 0 && !g.sync ? (g.awaitDrain = 0, d.emit("data", x)) : (g.length += g.objectMode ? 1 : x.length, H ? g.buffer.unshift(x) : g.buffer.push(x), g.needReadable && ce(d)), ie(d, g);
|
|
4704
4777
|
}
|
|
4705
|
-
function te(d,
|
|
4778
|
+
function te(d, g) {
|
|
4706
4779
|
var x;
|
|
4707
|
-
return !a(
|
|
4780
|
+
return !a(g) && typeof g != "string" && g !== void 0 && !d.objectMode && (x = new I("chunk", ["string", "Buffer", "Uint8Array"], g)), x;
|
|
4708
4781
|
}
|
|
4709
4782
|
F.prototype.isPaused = function() {
|
|
4710
4783
|
return this._readableState.flowing === !1;
|
|
4711
4784
|
}, F.prototype.setEncoding = function(d) {
|
|
4712
4785
|
P || (P = Oi().StringDecoder);
|
|
4713
|
-
var
|
|
4714
|
-
this._readableState.decoder =
|
|
4786
|
+
var g = new P(d);
|
|
4787
|
+
this._readableState.decoder = g, this._readableState.encoding = this._readableState.decoder.encoding;
|
|
4715
4788
|
for (var x = this._readableState.buffer.head, H = ""; x !== null; )
|
|
4716
|
-
H +=
|
|
4789
|
+
H += g.write(x.data), x = x.next;
|
|
4717
4790
|
return this._readableState.buffer.clear(), H !== "" && this._readableState.buffer.push(H), this._readableState.length = H.length, this;
|
|
4718
4791
|
};
|
|
4719
4792
|
var ee = 1073741824;
|
|
4720
4793
|
function ae(d) {
|
|
4721
4794
|
return d >= ee ? d = ee : (d--, d |= d >>> 1, d |= d >>> 2, d |= d >>> 4, d |= d >>> 8, d |= d >>> 16, d++), d;
|
|
4722
4795
|
}
|
|
4723
|
-
function le(d,
|
|
4724
|
-
return d <= 0 ||
|
|
4796
|
+
function le(d, g) {
|
|
4797
|
+
return d <= 0 || g.length === 0 && g.ended ? 0 : g.objectMode ? 1 : d !== d ? g.flowing && g.length ? g.buffer.head.data.length : g.length : (d > g.highWaterMark && (g.highWaterMark = ae(d)), d <= g.length ? d : g.ended ? g.length : (g.needReadable = !0, 0));
|
|
4725
4798
|
}
|
|
4726
4799
|
F.prototype.read = function(d) {
|
|
4727
4800
|
u("read", d), d = parseInt(d, 10);
|
|
4728
|
-
var
|
|
4729
|
-
if (d !== 0 && (
|
|
4730
|
-
return u("read: emitReadable",
|
|
4731
|
-
if (d = le(d,
|
|
4732
|
-
return
|
|
4733
|
-
var H =
|
|
4734
|
-
u("need readable", H), (
|
|
4801
|
+
var g = this._readableState, x = d;
|
|
4802
|
+
if (d !== 0 && (g.emittedReadable = !1), d === 0 && g.needReadable && ((g.highWaterMark !== 0 ? g.length >= g.highWaterMark : g.length > 0) || g.ended))
|
|
4803
|
+
return u("read: emitReadable", g.length, g.ended), g.length === 0 && g.ended ? D(this) : ce(this), null;
|
|
4804
|
+
if (d = le(d, g), d === 0 && g.ended)
|
|
4805
|
+
return g.length === 0 && D(this), null;
|
|
4806
|
+
var H = g.needReadable;
|
|
4807
|
+
u("need readable", H), (g.length === 0 || g.length - d < g.highWaterMark) && (H = !0, u("length less than watermark", H)), g.ended || g.reading ? (H = !1, u("reading or ended", H)) : H && (u("do read"), g.reading = !0, g.sync = !0, g.length === 0 && (g.needReadable = !0), this._read(g.highWaterMark), g.sync = !1, g.reading || (d = le(x, g)));
|
|
4735
4808
|
var K;
|
|
4736
|
-
return d > 0 ? K = O(d,
|
|
4809
|
+
return d > 0 ? K = O(d, g) : K = null, K === null ? (g.needReadable = g.length <= g.highWaterMark, d = 0) : (g.length -= d, g.awaitDrain = 0), g.length === 0 && (g.ended || (g.needReadable = !0), x !== d && g.ended && D(this)), K !== null && this.emit("data", K), K;
|
|
4737
4810
|
};
|
|
4738
|
-
function me(d,
|
|
4739
|
-
if (u("onEofChunk"), !
|
|
4740
|
-
if (
|
|
4741
|
-
var x =
|
|
4742
|
-
x && x.length && (
|
|
4811
|
+
function me(d, g) {
|
|
4812
|
+
if (u("onEofChunk"), !g.ended) {
|
|
4813
|
+
if (g.decoder) {
|
|
4814
|
+
var x = g.decoder.end();
|
|
4815
|
+
x && x.length && (g.buffer.push(x), g.length += g.objectMode ? 1 : x.length);
|
|
4743
4816
|
}
|
|
4744
|
-
|
|
4817
|
+
g.ended = !0, g.sync ? ce(d) : (g.needReadable = !1, g.emittedReadable || (g.emittedReadable = !0, ge(d)));
|
|
4745
4818
|
}
|
|
4746
4819
|
}
|
|
4747
4820
|
function ce(d) {
|
|
4748
|
-
var
|
|
4749
|
-
u("emitReadable",
|
|
4821
|
+
var g = d._readableState;
|
|
4822
|
+
u("emitReadable", g.needReadable, g.emittedReadable), g.needReadable = !1, g.emittedReadable || (u("emitReadable", g.flowing), g.emittedReadable = !0, n.nextTick(ge, d));
|
|
4750
4823
|
}
|
|
4751
4824
|
function ge(d) {
|
|
4752
|
-
var
|
|
4753
|
-
u("emitReadable_",
|
|
4825
|
+
var g = d._readableState;
|
|
4826
|
+
u("emitReadable_", g.destroyed, g.length, g.ended), !g.destroyed && (g.length || g.ended) && (d.emit("readable"), g.emittedReadable = !1), g.needReadable = !g.flowing && !g.ended && g.length <= g.highWaterMark, M(d);
|
|
4754
4827
|
}
|
|
4755
|
-
function ie(d,
|
|
4756
|
-
|
|
4828
|
+
function ie(d, g) {
|
|
4829
|
+
g.readingMore || (g.readingMore = !0, n.nextTick(Se, d, g));
|
|
4757
4830
|
}
|
|
4758
|
-
function
|
|
4759
|
-
for (; !
|
|
4760
|
-
var x =
|
|
4761
|
-
if (u("maybeReadMore read 0"), d.read(0), x ===
|
|
4831
|
+
function Se(d, g) {
|
|
4832
|
+
for (; !g.reading && !g.ended && (g.length < g.highWaterMark || g.flowing && g.length === 0); ) {
|
|
4833
|
+
var x = g.length;
|
|
4834
|
+
if (u("maybeReadMore read 0"), d.read(0), x === g.length)
|
|
4762
4835
|
break;
|
|
4763
4836
|
}
|
|
4764
|
-
|
|
4837
|
+
g.readingMore = !1;
|
|
4765
4838
|
}
|
|
4766
4839
|
F.prototype._read = function(d) {
|
|
4767
4840
|
v(this, new h("_read()"));
|
|
4768
|
-
}, F.prototype.pipe = function(d,
|
|
4841
|
+
}, F.prototype.pipe = function(d, g) {
|
|
4769
4842
|
var x = this, H = this._readableState;
|
|
4770
4843
|
switch (H.pipesCount) {
|
|
4771
4844
|
case 0:
|
|
@@ -4778,11 +4851,11 @@ function fo() {
|
|
|
4778
4851
|
H.pipes.push(d);
|
|
4779
4852
|
break;
|
|
4780
4853
|
}
|
|
4781
|
-
H.pipesCount += 1, u("pipe count=%d opts=%j", H.pipesCount,
|
|
4782
|
-
var K = (!
|
|
4854
|
+
H.pipesCount += 1, u("pipe count=%d opts=%j", H.pipesCount, g);
|
|
4855
|
+
var K = (!g || g.end !== !1) && d !== n.stdout && d !== n.stderr, X = K ? q : Oe;
|
|
4783
4856
|
H.endEmitted ? n.nextTick(X) : x.once("end", X), d.on("unpipe", Q);
|
|
4784
|
-
function Q(Ie,
|
|
4785
|
-
u("onunpipe"), Ie === x &&
|
|
4857
|
+
function Q(Ie, _e) {
|
|
4858
|
+
u("onunpipe"), Ie === x && _e && _e.hasUnpiped === !1 && (_e.hasUnpiped = !0, oe());
|
|
4786
4859
|
}
|
|
4787
4860
|
function q() {
|
|
4788
4861
|
u("onend"), d.end();
|
|
@@ -4796,13 +4869,13 @@ function fo() {
|
|
|
4796
4869
|
x.on("data", ue);
|
|
4797
4870
|
function ue(Ie) {
|
|
4798
4871
|
u("ondata");
|
|
4799
|
-
var
|
|
4800
|
-
u("dest.write",
|
|
4872
|
+
var _e = d.write(Ie);
|
|
4873
|
+
u("dest.write", _e), _e === !1 && ((H.pipesCount === 1 && H.pipes === d || H.pipesCount > 1 && G(H.pipes, d) !== -1) && !ye && (u("false write response, pause", H.awaitDrain), H.awaitDrain++), x.pause());
|
|
4801
4874
|
}
|
|
4802
4875
|
function Ce(Ie) {
|
|
4803
4876
|
u("onerror", Ie), Oe(), d.removeListener("error", Ce), t(d, "error") === 0 && v(d, Ie);
|
|
4804
4877
|
}
|
|
4805
|
-
|
|
4878
|
+
B(d, "error", Ce);
|
|
4806
4879
|
function De() {
|
|
4807
4880
|
d.removeListener("finish", Fe), Oe();
|
|
4808
4881
|
}
|
|
@@ -4819,39 +4892,39 @@ function fo() {
|
|
|
4819
4892
|
function he(d) {
|
|
4820
4893
|
return function() {
|
|
4821
4894
|
var x = d._readableState;
|
|
4822
|
-
u("pipeOnDrain", x.awaitDrain), x.awaitDrain && x.awaitDrain--, x.awaitDrain === 0 && t(d, "data") && (x.flowing = !0,
|
|
4895
|
+
u("pipeOnDrain", x.awaitDrain), x.awaitDrain && x.awaitDrain--, x.awaitDrain === 0 && t(d, "data") && (x.flowing = !0, M(d));
|
|
4823
4896
|
};
|
|
4824
4897
|
}
|
|
4825
4898
|
F.prototype.unpipe = function(d) {
|
|
4826
|
-
var
|
|
4899
|
+
var g = this._readableState, x = {
|
|
4827
4900
|
hasUnpiped: !1
|
|
4828
4901
|
};
|
|
4829
|
-
if (
|
|
4830
|
-
if (
|
|
4831
|
-
return d && d !==
|
|
4902
|
+
if (g.pipesCount === 0) return this;
|
|
4903
|
+
if (g.pipesCount === 1)
|
|
4904
|
+
return d && d !== g.pipes ? this : (d || (d = g.pipes), g.pipes = null, g.pipesCount = 0, g.flowing = !1, d && d.emit("unpipe", this, x), this);
|
|
4832
4905
|
if (!d) {
|
|
4833
|
-
var H =
|
|
4834
|
-
|
|
4906
|
+
var H = g.pipes, K = g.pipesCount;
|
|
4907
|
+
g.pipes = null, g.pipesCount = 0, g.flowing = !1;
|
|
4835
4908
|
for (var X = 0; X < K; X++) H[X].emit("unpipe", this, {
|
|
4836
4909
|
hasUnpiped: !1
|
|
4837
4910
|
});
|
|
4838
4911
|
return this;
|
|
4839
4912
|
}
|
|
4840
|
-
var Q =
|
|
4841
|
-
return Q === -1 ? this : (
|
|
4842
|
-
}, F.prototype.on = function(d,
|
|
4843
|
-
var x = o.prototype.on.call(this, d,
|
|
4913
|
+
var Q = G(g.pipes, d);
|
|
4914
|
+
return Q === -1 ? this : (g.pipes.splice(Q, 1), g.pipesCount -= 1, g.pipesCount === 1 && (g.pipes = g.pipes[0]), d.emit("unpipe", this, x), this);
|
|
4915
|
+
}, F.prototype.on = function(d, g) {
|
|
4916
|
+
var x = o.prototype.on.call(this, d, g), H = this._readableState;
|
|
4844
4917
|
return d === "data" ? (H.readableListening = this.listenerCount("readable") > 0, H.flowing !== !1 && this.resume()) : d === "readable" && !H.endEmitted && !H.readableListening && (H.readableListening = H.needReadable = !0, H.flowing = !1, H.emittedReadable = !1, u("on readable", H.length, H.reading), H.length ? ce(this) : H.reading || n.nextTick($, this)), x;
|
|
4845
|
-
}, F.prototype.addListener = F.prototype.on, F.prototype.removeListener = function(d,
|
|
4846
|
-
var x = o.prototype.removeListener.call(this, d,
|
|
4918
|
+
}, F.prototype.addListener = F.prototype.on, F.prototype.removeListener = function(d, g) {
|
|
4919
|
+
var x = o.prototype.removeListener.call(this, d, g);
|
|
4847
4920
|
return d === "readable" && n.nextTick(L, this), x;
|
|
4848
4921
|
}, F.prototype.removeAllListeners = function(d) {
|
|
4849
|
-
var
|
|
4850
|
-
return (d === "readable" || d === void 0) && n.nextTick(L, this),
|
|
4922
|
+
var g = o.prototype.removeAllListeners.apply(this, arguments);
|
|
4923
|
+
return (d === "readable" || d === void 0) && n.nextTick(L, this), g;
|
|
4851
4924
|
};
|
|
4852
4925
|
function L(d) {
|
|
4853
|
-
var
|
|
4854
|
-
|
|
4926
|
+
var g = d._readableState;
|
|
4927
|
+
g.readableListening = d.listenerCount("readable") > 0, g.resumeScheduled && !g.paused ? g.flowing = !0 : d.listenerCount("data") > 0 && d.resume();
|
|
4855
4928
|
}
|
|
4856
4929
|
function $(d) {
|
|
4857
4930
|
u("readable nexttick read 0"), d.read(0);
|
|
@@ -4860,30 +4933,30 @@ function fo() {
|
|
|
4860
4933
|
var d = this._readableState;
|
|
4861
4934
|
return d.flowing || (u("resume"), d.flowing = !d.readableListening, z(this, d)), d.paused = !1, this;
|
|
4862
4935
|
};
|
|
4863
|
-
function z(d,
|
|
4864
|
-
|
|
4936
|
+
function z(d, g) {
|
|
4937
|
+
g.resumeScheduled || (g.resumeScheduled = !0, n.nextTick(Y, d, g));
|
|
4865
4938
|
}
|
|
4866
|
-
function Y(d,
|
|
4867
|
-
u("resume",
|
|
4939
|
+
function Y(d, g) {
|
|
4940
|
+
u("resume", g.reading), g.reading || d.read(0), g.resumeScheduled = !1, d.emit("resume"), M(d), g.flowing && !g.reading && d.read(0);
|
|
4868
4941
|
}
|
|
4869
4942
|
F.prototype.pause = function() {
|
|
4870
4943
|
return u("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (u("pause"), this._readableState.flowing = !1, this.emit("pause")), this._readableState.paused = !0, this;
|
|
4871
4944
|
};
|
|
4872
|
-
function
|
|
4873
|
-
var
|
|
4874
|
-
for (u("flow",
|
|
4945
|
+
function M(d) {
|
|
4946
|
+
var g = d._readableState;
|
|
4947
|
+
for (u("flow", g.flowing); g.flowing && d.read() !== null; ) ;
|
|
4875
4948
|
}
|
|
4876
4949
|
F.prototype.wrap = function(d) {
|
|
4877
|
-
var
|
|
4950
|
+
var g = this, x = this._readableState, H = !1;
|
|
4878
4951
|
d.on("end", function() {
|
|
4879
4952
|
if (u("wrapped end"), x.decoder && !x.ended) {
|
|
4880
4953
|
var Q = x.decoder.end();
|
|
4881
|
-
Q && Q.length &&
|
|
4954
|
+
Q && Q.length && g.push(Q);
|
|
4882
4955
|
}
|
|
4883
|
-
|
|
4956
|
+
g.push(null);
|
|
4884
4957
|
}), d.on("data", function(Q) {
|
|
4885
4958
|
if (u("wrapped data"), x.decoder && (Q = x.decoder.write(Q)), !(x.objectMode && Q == null) && !(!x.objectMode && (!Q || !Q.length))) {
|
|
4886
|
-
var q =
|
|
4959
|
+
var q = g.push(Q);
|
|
4887
4960
|
q || (H = !0, d.pause());
|
|
4888
4961
|
}
|
|
4889
4962
|
});
|
|
@@ -4893,13 +4966,13 @@ function fo() {
|
|
|
4893
4966
|
return d[q].apply(d, arguments);
|
|
4894
4967
|
};
|
|
4895
4968
|
}(K));
|
|
4896
|
-
for (var X = 0; X <
|
|
4897
|
-
d.on(
|
|
4969
|
+
for (var X = 0; X < p.length; X++)
|
|
4970
|
+
d.on(p[X], this.emit.bind(this, p[X]));
|
|
4898
4971
|
return this._read = function(Q) {
|
|
4899
4972
|
u("wrapped _read", Q), H && (H = !1, d.resume());
|
|
4900
4973
|
}, this;
|
|
4901
4974
|
}, typeof Symbol == "function" && (F.prototype[Symbol.asyncIterator] = function() {
|
|
4902
|
-
return
|
|
4975
|
+
return S === void 0 && (S = Ca()), S(this);
|
|
4903
4976
|
}), Object.defineProperty(F.prototype, "readableHighWaterMark", {
|
|
4904
4977
|
// making it explicit this property is not enumerable
|
|
4905
4978
|
// because otherwise some prototype manipulation in
|
|
@@ -4924,8 +4997,8 @@ function fo() {
|
|
|
4924
4997
|
get: function() {
|
|
4925
4998
|
return this._readableState.flowing;
|
|
4926
4999
|
},
|
|
4927
|
-
set: function(
|
|
4928
|
-
this._readableState && (this._readableState.flowing =
|
|
5000
|
+
set: function(g) {
|
|
5001
|
+
this._readableState && (this._readableState.flowing = g);
|
|
4929
5002
|
}
|
|
4930
5003
|
}), F._fromList = O, Object.defineProperty(F.prototype, "readableLength", {
|
|
4931
5004
|
// making it explicit this property is not enumerable
|
|
@@ -4936,27 +5009,27 @@ function fo() {
|
|
|
4936
5009
|
return this._readableState.length;
|
|
4937
5010
|
}
|
|
4938
5011
|
});
|
|
4939
|
-
function O(d,
|
|
4940
|
-
if (
|
|
5012
|
+
function O(d, g) {
|
|
5013
|
+
if (g.length === 0) return null;
|
|
4941
5014
|
var x;
|
|
4942
|
-
return
|
|
5015
|
+
return g.objectMode ? x = g.buffer.shift() : !d || d >= g.length ? (g.decoder ? x = g.buffer.join("") : g.buffer.length === 1 ? x = g.buffer.first() : x = g.buffer.concat(g.length), g.buffer.clear()) : x = g.buffer.consume(d, g.decoder), x;
|
|
4943
5016
|
}
|
|
4944
5017
|
function D(d) {
|
|
4945
|
-
var
|
|
4946
|
-
u("endReadable",
|
|
5018
|
+
var g = d._readableState;
|
|
5019
|
+
u("endReadable", g.endEmitted), g.endEmitted || (g.ended = !0, n.nextTick(V, g, d));
|
|
4947
5020
|
}
|
|
4948
|
-
function
|
|
4949
|
-
if (u("endReadableNT", d.endEmitted, d.length), !d.endEmitted && d.length === 0 && (d.endEmitted = !0,
|
|
4950
|
-
var x =
|
|
4951
|
-
(!x || x.autoDestroy && x.finished) &&
|
|
5021
|
+
function V(d, g) {
|
|
5022
|
+
if (u("endReadableNT", d.endEmitted, d.length), !d.endEmitted && d.length === 0 && (d.endEmitted = !0, g.readable = !1, g.emit("end"), d.autoDestroy)) {
|
|
5023
|
+
var x = g._writableState;
|
|
5024
|
+
(!x || x.autoDestroy && x.finished) && g.destroy();
|
|
4952
5025
|
}
|
|
4953
5026
|
}
|
|
4954
|
-
typeof Symbol == "function" && (F.from = function(d,
|
|
4955
|
-
return R === void 0 && (R = Ea()), R(F, d,
|
|
5027
|
+
typeof Symbol == "function" && (F.from = function(d, g) {
|
|
5028
|
+
return R === void 0 && (R = Ea()), R(F, d, g);
|
|
4956
5029
|
});
|
|
4957
|
-
function
|
|
5030
|
+
function G(d, g) {
|
|
4958
5031
|
for (var x = 0, H = d.length; x < H; x++)
|
|
4959
|
-
if (d[x] ===
|
|
5032
|
+
if (d[x] === g) return x;
|
|
4960
5033
|
return -1;
|
|
4961
5034
|
}
|
|
4962
5035
|
return Fr;
|
|
@@ -4966,7 +5039,7 @@ function ho() {
|
|
|
4966
5039
|
if (Ni) return jr;
|
|
4967
5040
|
Ni = 1, jr = a;
|
|
4968
5041
|
var n = ze().codes, e = n.ERR_METHOD_NOT_IMPLEMENTED, t = n.ERR_MULTIPLE_CALLBACK, o = n.ERR_TRANSFORM_ALREADY_TRANSFORMING, l = n.ERR_TRANSFORM_WITH_LENGTH_0, c = xe();
|
|
4969
|
-
|
|
5042
|
+
Ve()(a, c);
|
|
4970
5043
|
function E(w, A) {
|
|
4971
5044
|
var C = this._transformState;
|
|
4972
5045
|
C.transforming = !1;
|
|
@@ -5025,7 +5098,7 @@ function Ra() {
|
|
|
5025
5098
|
if (Di) return $r;
|
|
5026
5099
|
Di = 1, $r = e;
|
|
5027
5100
|
var n = ho();
|
|
5028
|
-
|
|
5101
|
+
Ve()(e, n);
|
|
5029
5102
|
function e(t) {
|
|
5030
5103
|
if (!(this instanceof e)) return new e(t);
|
|
5031
5104
|
n.call(this, t);
|
|
@@ -5054,19 +5127,19 @@ function Pa() {
|
|
|
5054
5127
|
}
|
|
5055
5128
|
function a(C, j, y, I) {
|
|
5056
5129
|
I = e(I);
|
|
5057
|
-
var
|
|
5130
|
+
var _ = !1;
|
|
5058
5131
|
C.on("close", function() {
|
|
5059
|
-
|
|
5132
|
+
_ = !0;
|
|
5060
5133
|
}), n === void 0 && (n = an()), n(C, {
|
|
5061
5134
|
readable: j,
|
|
5062
5135
|
writable: y
|
|
5063
5136
|
}, function(b) {
|
|
5064
5137
|
if (b) return I(b);
|
|
5065
|
-
|
|
5138
|
+
_ = !0, I();
|
|
5066
5139
|
});
|
|
5067
5140
|
var h = !1;
|
|
5068
5141
|
return function(b) {
|
|
5069
|
-
if (!
|
|
5142
|
+
if (!_ && !h) {
|
|
5070
5143
|
if (h = !0, E(C)) return C.abort();
|
|
5071
5144
|
if (typeof C.destroy == "function") return C.destroy();
|
|
5072
5145
|
I(b || new l("pipe"));
|
|
@@ -5088,10 +5161,10 @@ function Pa() {
|
|
|
5088
5161
|
var I = w(j);
|
|
5089
5162
|
if (Array.isArray(j[0]) && (j = j[0]), j.length < 2)
|
|
5090
5163
|
throw new o("streams");
|
|
5091
|
-
var
|
|
5092
|
-
var
|
|
5093
|
-
return a(b,
|
|
5094
|
-
|
|
5164
|
+
var _, h = j.map(function(b, P) {
|
|
5165
|
+
var S = P < j.length - 1, R = P > 0;
|
|
5166
|
+
return a(b, S, R, function(v) {
|
|
5167
|
+
_ || (_ = v), v && h.forEach(f), !S && (h.forEach(f), I(_));
|
|
5095
5168
|
});
|
|
5096
5169
|
});
|
|
5097
5170
|
return j.reduce(u);
|
|
@@ -5147,7 +5220,7 @@ var Wr, qi;
|
|
|
5147
5220
|
function Oa() {
|
|
5148
5221
|
if (qi) return Wr;
|
|
5149
5222
|
qi = 1;
|
|
5150
|
-
const n = jo()("simple-peer"), e = $o(), t = Uo(), o = Aa(), l = Ta(), c = Ia(), { Buffer: E } =
|
|
5223
|
+
const n = jo()("simple-peer"), e = $o(), t = Uo(), o = Aa(), l = Ta(), c = Ia(), { Buffer: E } = Ke(), a = 64 * 1024, f = 5 * 1e3, u = 5 * 1e3;
|
|
5151
5224
|
function w(j) {
|
|
5152
5225
|
return j.replace(/a=ice-options:trickle\s\n/g, "");
|
|
5153
5226
|
}
|
|
@@ -5222,8 +5295,8 @@ function Oa() {
|
|
|
5222
5295
|
}
|
|
5223
5296
|
_addIceCandidate(y) {
|
|
5224
5297
|
const I = new this._wrtc.RTCIceCandidate(y);
|
|
5225
|
-
this._pc.addIceCandidate(I).catch((
|
|
5226
|
-
!I.address || I.address.endsWith(".local") ? A("Ignoring unsupported ICE candidate.") : this.destroy(c(
|
|
5298
|
+
this._pc.addIceCandidate(I).catch((_) => {
|
|
5299
|
+
!I.address || I.address.endsWith(".local") ? A("Ignoring unsupported ICE candidate.") : this.destroy(c(_, "ERR_ADD_ICE_CANDIDATE"));
|
|
5227
5300
|
});
|
|
5228
5301
|
}
|
|
5229
5302
|
/**
|
|
@@ -5247,8 +5320,8 @@ function Oa() {
|
|
|
5247
5320
|
if (this._debug("addTransceiver()"), this.initiator)
|
|
5248
5321
|
try {
|
|
5249
5322
|
this._pc.addTransceiver(y, I), this._needsNegotiation();
|
|
5250
|
-
} catch (
|
|
5251
|
-
this.destroy(c(
|
|
5323
|
+
} catch (_) {
|
|
5324
|
+
this.destroy(c(_, "ERR_ADD_TRANSCEIVER"));
|
|
5252
5325
|
}
|
|
5253
5326
|
else
|
|
5254
5327
|
this.emit("signal", {
|
|
@@ -5279,10 +5352,10 @@ function Oa() {
|
|
|
5279
5352
|
if (this.destroying) return;
|
|
5280
5353
|
if (this.destroyed) throw c(new Error("cannot addTrack after peer is destroyed"), "ERR_DESTROYED");
|
|
5281
5354
|
this._debug("addTrack()");
|
|
5282
|
-
const
|
|
5283
|
-
let h =
|
|
5355
|
+
const _ = this._senderMap.get(y) || /* @__PURE__ */ new Map();
|
|
5356
|
+
let h = _.get(I);
|
|
5284
5357
|
if (!h)
|
|
5285
|
-
h = this._pc.addTrack(y, I),
|
|
5358
|
+
h = this._pc.addTrack(y, I), _.set(I, h), this._senderMap.set(y, _), this._needsNegotiation();
|
|
5286
5359
|
else throw h.removed ? c(new Error("Track has been removed. You should enable/disable tracks that you want to re-add."), "ERR_SENDER_REMOVED") : c(new Error("Track has already been added to that stream."), "ERR_SENDER_ALREADY_ADDED");
|
|
5287
5360
|
}
|
|
5288
5361
|
/**
|
|
@@ -5291,11 +5364,11 @@ function Oa() {
|
|
|
5291
5364
|
* @param {MediaStreamTrack} newTrack
|
|
5292
5365
|
* @param {MediaStream} stream
|
|
5293
5366
|
*/
|
|
5294
|
-
replaceTrack(y, I,
|
|
5367
|
+
replaceTrack(y, I, _) {
|
|
5295
5368
|
if (this.destroying) return;
|
|
5296
5369
|
if (this.destroyed) throw c(new Error("cannot replaceTrack after peer is destroyed"), "ERR_DESTROYED");
|
|
5297
5370
|
this._debug("replaceTrack()");
|
|
5298
|
-
const h = this._senderMap.get(y), b = h ? h.get(
|
|
5371
|
+
const h = this._senderMap.get(y), b = h ? h.get(_) : null;
|
|
5299
5372
|
if (!b)
|
|
5300
5373
|
throw c(new Error("Cannot replace track that was never added."), "ERR_TRACK_NOT_ADDED");
|
|
5301
5374
|
I && this._senderMap.set(I, h), b.replaceTrack != null ? b.replaceTrack(I) : this.destroy(c(new Error("replaceTrack is not supported in this browser"), "ERR_UNSUPPORTED_REPLACETRACK"));
|
|
@@ -5309,7 +5382,7 @@ function Oa() {
|
|
|
5309
5382
|
if (this.destroying) return;
|
|
5310
5383
|
if (this.destroyed) throw c(new Error("cannot removeTrack after peer is destroyed"), "ERR_DESTROYED");
|
|
5311
5384
|
this._debug("removeSender()");
|
|
5312
|
-
const
|
|
5385
|
+
const _ = this._senderMap.get(y), h = _ ? _.get(I) : null;
|
|
5313
5386
|
if (!h)
|
|
5314
5387
|
throw c(new Error("Cannot remove track that was never added."), "ERR_TRACK_NOT_ADDED");
|
|
5315
5388
|
try {
|
|
@@ -5360,14 +5433,14 @@ function Oa() {
|
|
|
5360
5433
|
if (this.destroyed = !0, this.destroying = !1, this._debug("destroy (error: %s)", y && (y.message || y)), this.readable = this.writable = !1, this._readableState.ended || this.push(null), this._writableState.finished || this.end(), this._connected = !1, this._pcReady = !1, this._channelReady = !1, this._remoteTracks = null, this._remoteStreams = null, this._senderMap = null, clearInterval(this._closingInterval), this._closingInterval = null, clearInterval(this._interval), this._interval = null, this._chunk = null, this._cb = null, this._onFinishBound && this.removeListener("finish", this._onFinishBound), this._onFinishBound = null, this._channel) {
|
|
5361
5434
|
try {
|
|
5362
5435
|
this._channel.close();
|
|
5363
|
-
} catch (
|
|
5436
|
+
} catch (_) {
|
|
5364
5437
|
}
|
|
5365
5438
|
this._channel.onmessage = null, this._channel.onopen = null, this._channel.onclose = null, this._channel.onerror = null;
|
|
5366
5439
|
}
|
|
5367
5440
|
if (this._pc) {
|
|
5368
5441
|
try {
|
|
5369
5442
|
this._pc.close();
|
|
5370
|
-
} catch (
|
|
5443
|
+
} catch (_) {
|
|
5371
5444
|
}
|
|
5372
5445
|
this._pc.oniceconnectionstatechange = null, this._pc.onicegatheringstatechange = null, this._pc.onsignalingstatechange = null, this._pc.onicecandidate = null, this._pc.ontrack = null, this._pc.ondatachannel = null;
|
|
5373
5446
|
}
|
|
@@ -5377,16 +5450,16 @@ function Oa() {
|
|
|
5377
5450
|
_setupData(y) {
|
|
5378
5451
|
if (!y.channel)
|
|
5379
5452
|
return this.destroy(c(new Error("Data channel event is missing `channel` property"), "ERR_DATA_CHANNEL"));
|
|
5380
|
-
this._channel = y.channel, this._channel.binaryType = "arraybuffer", typeof this._channel.bufferedAmountLowThreshold == "number" && (this._channel.bufferedAmountLowThreshold = a), this.channelName = this._channel.label, this._channel.onmessage = (
|
|
5381
|
-
this._onChannelMessage(
|
|
5453
|
+
this._channel = y.channel, this._channel.binaryType = "arraybuffer", typeof this._channel.bufferedAmountLowThreshold == "number" && (this._channel.bufferedAmountLowThreshold = a), this.channelName = this._channel.label, this._channel.onmessage = (_) => {
|
|
5454
|
+
this._onChannelMessage(_);
|
|
5382
5455
|
}, this._channel.onbufferedamountlow = () => {
|
|
5383
5456
|
this._onChannelBufferedAmountLow();
|
|
5384
5457
|
}, this._channel.onopen = () => {
|
|
5385
5458
|
this._onChannelOpen();
|
|
5386
5459
|
}, this._channel.onclose = () => {
|
|
5387
5460
|
this._onChannelClose();
|
|
5388
|
-
}, this._channel.onerror = (
|
|
5389
|
-
const h =
|
|
5461
|
+
}, this._channel.onerror = (_) => {
|
|
5462
|
+
const h = _.error instanceof Error ? _.error : new Error(`Datachannel error: ${_.message} ${_.filename}:${_.lineno}:${_.colno}`);
|
|
5390
5463
|
this.destroy(c(h, "ERR_DATA_CHANNEL"));
|
|
5391
5464
|
};
|
|
5392
5465
|
let I = !1;
|
|
@@ -5396,17 +5469,17 @@ function Oa() {
|
|
|
5396
5469
|
}
|
|
5397
5470
|
_read() {
|
|
5398
5471
|
}
|
|
5399
|
-
_write(y, I,
|
|
5400
|
-
if (this.destroyed) return
|
|
5472
|
+
_write(y, I, _) {
|
|
5473
|
+
if (this.destroyed) return _(c(new Error("cannot write after peer is destroyed"), "ERR_DATA_CHANNEL"));
|
|
5401
5474
|
if (this._connected) {
|
|
5402
5475
|
try {
|
|
5403
5476
|
this.send(y);
|
|
5404
5477
|
} catch (h) {
|
|
5405
5478
|
return this.destroy(c(h, "ERR_DATA_CHANNEL"));
|
|
5406
5479
|
}
|
|
5407
|
-
this._channel.bufferedAmount > a ? (this._debug("start backpressure: bufferedAmount %d", this._channel.bufferedAmount), this._cb =
|
|
5480
|
+
this._channel.bufferedAmount > a ? (this._debug("start backpressure: bufferedAmount %d", this._channel.bufferedAmount), this._cb = _) : _(null);
|
|
5408
5481
|
} else
|
|
5409
|
-
this._debug("write before connect"), this._chunk = y, this._cb =
|
|
5482
|
+
this._debug("write before connect"), this._chunk = y, this._cb = _;
|
|
5410
5483
|
}
|
|
5411
5484
|
// When stream finishes writing, close socket. Half open connections are not
|
|
5412
5485
|
// supported.
|
|
@@ -5433,12 +5506,12 @@ function Oa() {
|
|
|
5433
5506
|
type: b.type,
|
|
5434
5507
|
sdp: b.sdp
|
|
5435
5508
|
});
|
|
5436
|
-
},
|
|
5509
|
+
}, _ = () => {
|
|
5437
5510
|
this._debug("createOffer success"), !this.destroyed && (this.trickle || this._iceComplete ? I() : this.once("_iceComplete", I));
|
|
5438
5511
|
}, h = (b) => {
|
|
5439
5512
|
this.destroy(c(b, "ERR_SET_LOCAL_DESCRIPTION"));
|
|
5440
5513
|
};
|
|
5441
|
-
this._pc.setLocalDescription(y).then(
|
|
5514
|
+
this._pc.setLocalDescription(y).then(_).catch(h);
|
|
5442
5515
|
}).catch((y) => {
|
|
5443
5516
|
this.destroy(c(y, "ERR_CREATE_OFFER"));
|
|
5444
5517
|
});
|
|
@@ -5459,12 +5532,12 @@ function Oa() {
|
|
|
5459
5532
|
type: b.type,
|
|
5460
5533
|
sdp: b.sdp
|
|
5461
5534
|
}), this.initiator || this._requestMissingTransceivers();
|
|
5462
|
-
},
|
|
5535
|
+
}, _ = () => {
|
|
5463
5536
|
this.destroyed || (this.trickle || this._iceComplete ? I() : this.once("_iceComplete", I));
|
|
5464
5537
|
}, h = (b) => {
|
|
5465
5538
|
this.destroy(c(b, "ERR_SET_LOCAL_DESCRIPTION"));
|
|
5466
5539
|
};
|
|
5467
|
-
this._pc.setLocalDescription(y).then(
|
|
5540
|
+
this._pc.setLocalDescription(y).then(_).catch(h);
|
|
5468
5541
|
}).catch((y) => {
|
|
5469
5542
|
this.destroy(c(y, "ERR_CREATE_ANSWER"));
|
|
5470
5543
|
});
|
|
@@ -5482,43 +5555,43 @@ function Oa() {
|
|
|
5482
5555
|
), this.emit("iceStateChange", y, I), (y === "connected" || y === "completed") && (this._pcReady = !0, this._maybeReady()), y === "failed" && this.destroy(c(new Error("Ice connection failed."), "ERR_ICE_CONNECTION_FAILURE")), y === "closed" && this.destroy(c(new Error("Ice connection closed."), "ERR_ICE_CONNECTION_CLOSED"));
|
|
5483
5556
|
}
|
|
5484
5557
|
getStats(y) {
|
|
5485
|
-
const I = (
|
|
5486
|
-
Object.assign(
|
|
5487
|
-
}),
|
|
5488
|
-
this._pc.getStats.length === 0 || this._isReactNativeWebrtc ? this._pc.getStats().then((
|
|
5558
|
+
const I = (_) => (Object.prototype.toString.call(_.values) === "[object Array]" && _.values.forEach((h) => {
|
|
5559
|
+
Object.assign(_, h);
|
|
5560
|
+
}), _);
|
|
5561
|
+
this._pc.getStats.length === 0 || this._isReactNativeWebrtc ? this._pc.getStats().then((_) => {
|
|
5489
5562
|
const h = [];
|
|
5490
|
-
|
|
5563
|
+
_.forEach((b) => {
|
|
5491
5564
|
h.push(I(b));
|
|
5492
5565
|
}), y(null, h);
|
|
5493
|
-
}, (
|
|
5566
|
+
}, (_) => y(_)) : this._pc.getStats.length > 0 ? this._pc.getStats((_) => {
|
|
5494
5567
|
if (this.destroyed) return;
|
|
5495
5568
|
const h = [];
|
|
5496
|
-
|
|
5569
|
+
_.result().forEach((b) => {
|
|
5497
5570
|
const P = {};
|
|
5498
|
-
b.names().forEach((
|
|
5499
|
-
P[
|
|
5571
|
+
b.names().forEach((S) => {
|
|
5572
|
+
P[S] = b.stat(S);
|
|
5500
5573
|
}), P.id = b.id, P.type = b.type, P.timestamp = b.timestamp, h.push(I(P));
|
|
5501
5574
|
}), y(null, h);
|
|
5502
|
-
}, (
|
|
5575
|
+
}, (_) => y(_)) : y(null, []);
|
|
5503
5576
|
}
|
|
5504
5577
|
_maybeReady() {
|
|
5505
5578
|
if (this._debug("maybeReady pc %s channel %s", this._pcReady, this._channelReady), this._connected || this._connecting || !this._pcReady || !this._channelReady) return;
|
|
5506
5579
|
this._connecting = !0;
|
|
5507
5580
|
const y = () => {
|
|
5508
|
-
this.destroyed || this.getStats((I,
|
|
5581
|
+
this.destroyed || this.getStats((I, _) => {
|
|
5509
5582
|
if (this.destroyed) return;
|
|
5510
|
-
I && (
|
|
5583
|
+
I && (_ = []);
|
|
5511
5584
|
const h = {}, b = {}, P = {};
|
|
5512
|
-
let
|
|
5513
|
-
|
|
5585
|
+
let S = !1;
|
|
5586
|
+
_.forEach((v) => {
|
|
5514
5587
|
(v.type === "remotecandidate" || v.type === "remote-candidate") && (h[v.id] = v), (v.type === "localcandidate" || v.type === "local-candidate") && (b[v.id] = v), (v.type === "candidatepair" || v.type === "candidate-pair") && (P[v.id] = v);
|
|
5515
5588
|
});
|
|
5516
5589
|
const R = (v) => {
|
|
5517
|
-
|
|
5518
|
-
let
|
|
5519
|
-
|
|
5520
|
-
let
|
|
5521
|
-
|
|
5590
|
+
S = !0;
|
|
5591
|
+
let p = b[v.localCandidateId];
|
|
5592
|
+
p && (p.ip || p.address) ? (this.localAddress = p.ip || p.address, this.localPort = Number(p.port)) : p && p.ipAddress ? (this.localAddress = p.ipAddress, this.localPort = Number(p.portNumber)) : typeof v.googLocalAddress == "string" && (p = v.googLocalAddress.split(":"), this.localAddress = p[0], this.localPort = Number(p[1])), this.localAddress && (this.localFamily = this.localAddress.includes(":") ? "IPv6" : "IPv4");
|
|
5593
|
+
let B = h[v.remoteCandidateId];
|
|
5594
|
+
B && (B.ip || B.address) ? (this.remoteAddress = B.ip || B.address, this.remotePort = Number(B.port)) : B && B.ipAddress ? (this.remoteAddress = B.ipAddress, this.remotePort = Number(B.portNumber)) : typeof v.googRemoteAddress == "string" && (B = v.googRemoteAddress.split(":"), this.remoteAddress = B[0], this.remotePort = Number(B[1])), this.remoteAddress && (this.remoteFamily = this.remoteAddress.includes(":") ? "IPv6" : "IPv4"), this._debug(
|
|
5522
5595
|
"connect local: %s:%s remote: %s:%s",
|
|
5523
5596
|
this.localAddress,
|
|
5524
5597
|
this.localPort,
|
|
@@ -5526,9 +5599,9 @@ function Oa() {
|
|
|
5526
5599
|
this.remotePort
|
|
5527
5600
|
);
|
|
5528
5601
|
};
|
|
5529
|
-
if (
|
|
5602
|
+
if (_.forEach((v) => {
|
|
5530
5603
|
v.type === "transport" && v.selectedCandidatePairId && R(P[v.selectedCandidatePairId]), (v.type === "googCandidatePair" && v.googActiveConnection === "true" || (v.type === "candidatepair" || v.type === "candidate-pair") && v.selected) && R(v);
|
|
5531
|
-
}), !
|
|
5604
|
+
}), !S && (!Object.keys(P).length || Object.keys(b).length)) {
|
|
5532
5605
|
setTimeout(y, 100);
|
|
5533
5606
|
return;
|
|
5534
5607
|
} else
|
|
@@ -5536,8 +5609,8 @@ function Oa() {
|
|
|
5536
5609
|
if (this._chunk) {
|
|
5537
5610
|
try {
|
|
5538
5611
|
this.send(this._chunk);
|
|
5539
|
-
} catch (
|
|
5540
|
-
return this.destroy(c(
|
|
5612
|
+
} catch (p) {
|
|
5613
|
+
return this.destroy(c(p, "ERR_DATA_CHANNEL"));
|
|
5541
5614
|
}
|
|
5542
5615
|
this._chunk = null, this._debug('sent chunk from "write before connect"');
|
|
5543
5616
|
const v = this._cb;
|
|
@@ -5588,7 +5661,7 @@ function Oa() {
|
|
|
5588
5661
|
this._debug("on track"), this.emit("track", y.track, I), this._remoteTracks.push({
|
|
5589
5662
|
track: y.track,
|
|
5590
5663
|
stream: I
|
|
5591
|
-
}), !this._remoteStreams.some((
|
|
5664
|
+
}), !this._remoteStreams.some((_) => _.id === I.id) && (this._remoteStreams.push(I), l(() => {
|
|
5592
5665
|
this._debug("on stream"), this.emit("stream", I);
|
|
5593
5666
|
}));
|
|
5594
5667
|
});
|
|
@@ -5611,8 +5684,8 @@ function Oa() {
|
|
|
5611
5684
|
}, C.channelConfig = {}, Wr = C, Wr;
|
|
5612
5685
|
}
|
|
5613
5686
|
var ka = Oa();
|
|
5614
|
-
const
|
|
5615
|
-
var
|
|
5687
|
+
const Ma = /* @__PURE__ */ Qr(ka);
|
|
5688
|
+
var Ba = Object.defineProperty, La = (n, e, t) => e in n ? Ba(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Be = (n, e, t) => La(n, typeof e != "symbol" ? e + "" : e, t), Vr = (n, e, t) => new Promise((o, l) => {
|
|
5616
5689
|
var c = (f) => {
|
|
5617
5690
|
try {
|
|
5618
5691
|
a(t.next(f));
|
|
@@ -5630,13 +5703,13 @@ var Ma = Object.defineProperty, La = (n, e, t) => e in n ? Ma(n, e, { enumerable
|
|
|
5630
5703
|
});
|
|
5631
5704
|
class Na {
|
|
5632
5705
|
constructor(e, t, o = {}) {
|
|
5633
|
-
|
|
5706
|
+
Be(this, "peer", null), Be(this, "config"), Be(this, "events"), Be(this, "connectionState", "new"), Be(this, "isInitiator"), Be(this, "remoteUserId"), Be(this, "localStream", null), this.remoteUserId = e, this.config = t, this.events = o, this.isInitiator = t.initiator || !1;
|
|
5634
5707
|
}
|
|
5635
5708
|
/**
|
|
5636
5709
|
* Create and initialize the peer connection
|
|
5637
5710
|
*/
|
|
5638
5711
|
createConnection(e) {
|
|
5639
|
-
return
|
|
5712
|
+
return Vr(this, null, function* () {
|
|
5640
5713
|
try {
|
|
5641
5714
|
console.log(
|
|
5642
5715
|
`[CallPeerConnection] Creating connection to ${this.remoteUserId}, initiator: ${this.isInitiator}`
|
|
@@ -5649,7 +5722,7 @@ class Na {
|
|
|
5649
5722
|
iceServers: this.config.iceServers
|
|
5650
5723
|
}
|
|
5651
5724
|
};
|
|
5652
|
-
this.peer = new
|
|
5725
|
+
this.peer = new Ma(t), this.setupPeerEventListeners(), console.log(
|
|
5653
5726
|
`[CallPeerConnection] Peer connection created for ${this.remoteUserId}`
|
|
5654
5727
|
);
|
|
5655
5728
|
} catch (t) {
|
|
@@ -5736,17 +5809,49 @@ class Na {
|
|
|
5736
5809
|
);
|
|
5737
5810
|
return;
|
|
5738
5811
|
}
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
`[CallPeerConnection]
|
|
5812
|
+
if (!this.localStream) {
|
|
5813
|
+
console.error(
|
|
5814
|
+
`[CallPeerConnection] Cannot replace track for ${this.remoteUserId}: no local stream`
|
|
5742
5815
|
);
|
|
5743
|
-
|
|
5816
|
+
return;
|
|
5817
|
+
}
|
|
5818
|
+
if (e.kind !== t.kind) {
|
|
5744
5819
|
console.error(
|
|
5820
|
+
`[CallPeerConnection] Cannot replace track for ${this.remoteUserId}: track kinds don't match (${e.kind} vs ${t.kind})`
|
|
5821
|
+
);
|
|
5822
|
+
return;
|
|
5823
|
+
}
|
|
5824
|
+
const E = this.localStream.getTracks().some((a) => a.id === e.id);
|
|
5825
|
+
E || console.warn(
|
|
5826
|
+
`[CallPeerConnection] Old track not found in local stream for ${this.remoteUserId}, attempting replacement anyway`
|
|
5827
|
+
);
|
|
5828
|
+
try {
|
|
5829
|
+
this.peer.replaceTrack(e, t, this.localStream), E && this.localStream.removeTrack(e), this.localStream.addTrack(t), console.log(
|
|
5830
|
+
`[CallPeerConnection] ${t.kind} track replaced for ${this.remoteUserId} (${e.id} -> ${t.id})`
|
|
5831
|
+
);
|
|
5832
|
+
} catch (a) {
|
|
5833
|
+
throw console.error(
|
|
5745
5834
|
`[CallPeerConnection] Failed to replace track for ${this.remoteUserId}:`,
|
|
5746
|
-
|
|
5747
|
-
), (l = (o = this.events).onError) == null || l.call(o,
|
|
5835
|
+
a
|
|
5836
|
+
), (l = (o = this.events).onError) == null || l.call(o, a), a;
|
|
5748
5837
|
}
|
|
5749
5838
|
}
|
|
5839
|
+
/**
|
|
5840
|
+
* Get video track from local stream
|
|
5841
|
+
*/
|
|
5842
|
+
getVideoTrack() {
|
|
5843
|
+
if (!this.localStream) return null;
|
|
5844
|
+
const e = this.localStream.getVideoTracks();
|
|
5845
|
+
return e.length > 0 ? e[0] : null;
|
|
5846
|
+
}
|
|
5847
|
+
/**
|
|
5848
|
+
* Get audio track from local stream
|
|
5849
|
+
*/
|
|
5850
|
+
getAudioTrack() {
|
|
5851
|
+
if (!this.localStream) return null;
|
|
5852
|
+
const e = this.localStream.getAudioTracks();
|
|
5853
|
+
return e.length > 0 ? e[0] : null;
|
|
5854
|
+
}
|
|
5750
5855
|
/**
|
|
5751
5856
|
* Send data through the data channel
|
|
5752
5857
|
*/
|
|
@@ -5777,7 +5882,7 @@ class Na {
|
|
|
5777
5882
|
* Set bandwidth limits
|
|
5778
5883
|
*/
|
|
5779
5884
|
setBandwidthLimit(e) {
|
|
5780
|
-
return
|
|
5885
|
+
return Vr(this, null, function* () {
|
|
5781
5886
|
if (!this.peer) {
|
|
5782
5887
|
console.warn(
|
|
5783
5888
|
`[CallPeerConnection] Cannot set bandwidth for ${this.remoteUserId}: peer connection not available`
|
|
@@ -5821,7 +5926,7 @@ class Na {
|
|
|
5821
5926
|
* Get connection statistics
|
|
5822
5927
|
*/
|
|
5823
5928
|
getStats() {
|
|
5824
|
-
return
|
|
5929
|
+
return Vr(this, null, function* () {
|
|
5825
5930
|
if (!this.peer)
|
|
5826
5931
|
return null;
|
|
5827
5932
|
try {
|
|
@@ -5936,8 +6041,8 @@ class Na {
|
|
|
5936
6041
|
};
|
|
5937
6042
|
}
|
|
5938
6043
|
}
|
|
5939
|
-
const xi = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 },
|
|
5940
|
-
const e =
|
|
6044
|
+
const xi = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Ye = /* @__PURE__ */ new Map(), ct = (n) => {
|
|
6045
|
+
const e = Ye.get(n);
|
|
5941
6046
|
return e ? Object.fromEntries(
|
|
5942
6047
|
Object.entries(e.stores).map(([t, o]) => [t, o.getState()])
|
|
5943
6048
|
) : {};
|
|
@@ -5947,18 +6052,18 @@ const xi = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Je
|
|
|
5947
6052
|
type: "untracked",
|
|
5948
6053
|
connection: e.connect(t)
|
|
5949
6054
|
};
|
|
5950
|
-
const o =
|
|
6055
|
+
const o = Ye.get(t.name);
|
|
5951
6056
|
if (o)
|
|
5952
6057
|
return He({ type: "tracked", store: n }, o);
|
|
5953
6058
|
const l = {
|
|
5954
6059
|
connection: e.connect(t),
|
|
5955
6060
|
stores: {}
|
|
5956
6061
|
};
|
|
5957
|
-
return
|
|
6062
|
+
return Ye.set(t.name, l), He({ type: "tracked", store: n }, l);
|
|
5958
6063
|
}, Fa = (n, e) => {
|
|
5959
6064
|
if (e === void 0) return;
|
|
5960
|
-
const t =
|
|
5961
|
-
t && (delete t.stores[e], Object.keys(t.stores).length === 0 &&
|
|
6065
|
+
const t = Ye.get(n);
|
|
6066
|
+
t && (delete t.stores[e], Object.keys(t.stores).length === 0 && Ye.delete(n));
|
|
5962
6067
|
}, ja = (n) => {
|
|
5963
6068
|
var e, t;
|
|
5964
6069
|
if (!n) return;
|
|
@@ -5978,22 +6083,22 @@ const xi = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Je
|
|
|
5978
6083
|
}
|
|
5979
6084
|
if (!u)
|
|
5980
6085
|
return n(t, o, l);
|
|
5981
|
-
const
|
|
6086
|
+
const _ = Da(a, u, f), { connection: w } = _, A = bt(_, ["connection"]);
|
|
5982
6087
|
let C = !0;
|
|
5983
6088
|
l.setState = (h, b, P) => {
|
|
5984
|
-
const
|
|
5985
|
-
if (!C) return
|
|
6089
|
+
const S = t(h, b);
|
|
6090
|
+
if (!C) return S;
|
|
5986
6091
|
const R = P === void 0 ? {
|
|
5987
6092
|
type: E || ja(new Error().stack) || "anonymous"
|
|
5988
6093
|
} : typeof P == "string" ? { type: P } : P;
|
|
5989
|
-
return a === void 0 ? (w == null || w.send(R, o()),
|
|
6094
|
+
return a === void 0 ? (w == null || w.send(R, o()), S) : (w == null || w.send(
|
|
5990
6095
|
vt(He({}, R), {
|
|
5991
6096
|
type: `${a}/${R.type}`
|
|
5992
6097
|
}),
|
|
5993
6098
|
vt(He({}, ct(f.name)), {
|
|
5994
6099
|
[a]: l.getState()
|
|
5995
6100
|
})
|
|
5996
|
-
),
|
|
6101
|
+
), S);
|
|
5997
6102
|
}, l.devtools = {
|
|
5998
6103
|
cleanup: () => {
|
|
5999
6104
|
w && typeof w.unsubscribe == "function" && w.unsubscribe(), Fa(f.name, a);
|
|
@@ -6044,10 +6149,10 @@ const xi = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Je
|
|
|
6044
6149
|
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
|
|
6045
6150
|
`
|
|
6046
6151
|
);
|
|
6047
|
-
const
|
|
6048
|
-
if (
|
|
6152
|
+
const S = P.state[a];
|
|
6153
|
+
if (S == null)
|
|
6049
6154
|
return;
|
|
6050
|
-
JSON.stringify(l.getState()) !== JSON.stringify(
|
|
6155
|
+
JSON.stringify(l.getState()) !== JSON.stringify(S) && j(S);
|
|
6051
6156
|
return;
|
|
6052
6157
|
}
|
|
6053
6158
|
l.dispatchFromDevtools && typeof l.dispatch == "function" && l.dispatch(P);
|
|
@@ -6081,9 +6186,9 @@ const xi = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Je
|
|
|
6081
6186
|
JSON.stringify(l.getState()) !== JSON.stringify(P[a]) && j(P[a]);
|
|
6082
6187
|
});
|
|
6083
6188
|
case "IMPORT_STATE": {
|
|
6084
|
-
const { nextLiftedState: P } = h.payload,
|
|
6085
|
-
if (!
|
|
6086
|
-
j(a === void 0 ?
|
|
6189
|
+
const { nextLiftedState: P } = h.payload, S = (b = P.computedStates.slice(-1)[0]) == null ? void 0 : b.state;
|
|
6190
|
+
if (!S) return;
|
|
6191
|
+
j(a === void 0 ? S : S[a]), w == null || w.send(
|
|
6087
6192
|
null,
|
|
6088
6193
|
// FIXME no-any
|
|
6089
6194
|
P
|
|
@@ -6108,14 +6213,14 @@ const xi = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Je
|
|
|
6108
6213
|
}
|
|
6109
6214
|
t !== void 0 && e(t);
|
|
6110
6215
|
};
|
|
6111
|
-
var qa = { env: {} }, xa = Object.defineProperty, Wa = Object.defineProperties,
|
|
6216
|
+
var qa = { env: {} }, xa = Object.defineProperty, Wa = Object.defineProperties, Va = Object.getOwnPropertyDescriptors, ft = Object.getOwnPropertySymbols, po = Object.prototype.hasOwnProperty, go = Object.prototype.propertyIsEnumerable, Wi = (n, e, t) => e in n ? xa(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Le = (n, e) => {
|
|
6112
6217
|
for (var t in e || (e = {}))
|
|
6113
6218
|
po.call(e, t) && Wi(n, t, e[t]);
|
|
6114
6219
|
if (ft)
|
|
6115
6220
|
for (var t of ft(e))
|
|
6116
6221
|
go.call(e, t) && Wi(n, t, e[t]);
|
|
6117
6222
|
return n;
|
|
6118
|
-
},
|
|
6223
|
+
}, Gr = (n, e) => Wa(n, Va(e)), za = (n) => typeof n == "symbol" ? n : n + "", Ga = (n, e) => {
|
|
6119
6224
|
var t = {};
|
|
6120
6225
|
for (var o in n)
|
|
6121
6226
|
po.call(n, o) && e.indexOf(o) < 0 && (t[o] = n[o]);
|
|
@@ -6124,7 +6229,7 @@ var qa = { env: {} }, xa = Object.defineProperty, Wa = Object.defineProperties,
|
|
|
6124
6229
|
e.indexOf(o) < 0 && go.call(n, o) && (t[o] = n[o]);
|
|
6125
6230
|
return t;
|
|
6126
6231
|
};
|
|
6127
|
-
const
|
|
6232
|
+
const Vi = {
|
|
6128
6233
|
roomId: "",
|
|
6129
6234
|
participants: {},
|
|
6130
6235
|
localParticipant: null,
|
|
@@ -6138,14 +6243,14 @@ const Gi = {
|
|
|
6138
6243
|
callStatusError: null
|
|
6139
6244
|
}, we = To()(
|
|
6140
6245
|
Ua(
|
|
6141
|
-
(n) =>
|
|
6246
|
+
(n) => Gr(Le({}, Vi), {
|
|
6142
6247
|
// Room management
|
|
6143
6248
|
setRoomId: (e) => n({ roomId: e }, !1, "setRoomId"),
|
|
6144
6249
|
// Participant management
|
|
6145
6250
|
setLocalParticipant: (e) => n({ localParticipant: e }, !1, "setLocalParticipant"),
|
|
6146
6251
|
addParticipant: (e) => n(
|
|
6147
6252
|
(t) => ({
|
|
6148
|
-
participants:
|
|
6253
|
+
participants: Gr(Le({}, t.participants), {
|
|
6149
6254
|
[e.userId]: e
|
|
6150
6255
|
})
|
|
6151
6256
|
}),
|
|
@@ -6155,14 +6260,14 @@ const Gi = {
|
|
|
6155
6260
|
removeParticipant: (e) => n(
|
|
6156
6261
|
(t) => {
|
|
6157
6262
|
const o = t.participants, { [e]: l } = o;
|
|
6158
|
-
return { participants:
|
|
6263
|
+
return { participants: Ga(o, [za(e)]) };
|
|
6159
6264
|
},
|
|
6160
6265
|
!1,
|
|
6161
6266
|
"removeParticipant"
|
|
6162
6267
|
),
|
|
6163
6268
|
updateParticipant: (e, t) => n(
|
|
6164
6269
|
(o) => ({
|
|
6165
|
-
participants:
|
|
6270
|
+
participants: Gr(Le({}, o.participants), {
|
|
6166
6271
|
[e]: o.participants[e] ? Le(Le({}, o.participants[e]), t) : Le({
|
|
6167
6272
|
userId: e,
|
|
6168
6273
|
videoOn: !0,
|
|
@@ -6189,14 +6294,14 @@ const Gi = {
|
|
|
6189
6294
|
setCallStatusLoading: (e) => n({ callStatusLoading: e }, !1, "setCallStatusLoading"),
|
|
6190
6295
|
setCallStatusError: (e) => n({ callStatusError: e }, !1, "setCallStatusError"),
|
|
6191
6296
|
// Reset store
|
|
6192
|
-
resetCall: () => n(Le({},
|
|
6297
|
+
resetCall: () => n(Le({}, Vi), !1, "resetCall")
|
|
6193
6298
|
}),
|
|
6194
6299
|
{
|
|
6195
6300
|
name: "peers-caller-store",
|
|
6196
6301
|
enabled: qa.env.NODE_ENV === "development"
|
|
6197
6302
|
}
|
|
6198
6303
|
)
|
|
6199
|
-
), Ts = (n) => n.participants, Ha = (n) => Object.keys(n.participants).length, Is = (n) => n.localParticipant, Os = (n) => n.callStatus, ks = (n) => n.callStatus === "connected",
|
|
6304
|
+
), Ts = (n) => n.participants, Ha = (n) => Object.keys(n.participants).length, Is = (n) => n.localParticipant, Os = (n) => n.callStatus, ks = (n) => n.callStatus === "connected", Ms = (n) => n.error, Bs = (n) => n.callStatusInfo, Ls = (n) => n.callStatusLoading, Ns = (n) => n.callStatusError, Ds = (n) => {
|
|
6200
6305
|
var e;
|
|
6201
6306
|
return ((e = n.callStatusInfo) == null ? void 0 : e.canJoin) || !1;
|
|
6202
6307
|
}, Fs = (n) => {
|
|
@@ -6249,7 +6354,7 @@ var Za = Object.defineProperty, Qa = Object.defineProperties, es = Object.getOwn
|
|
|
6249
6354
|
}, a = (f) => f.done ? o(f.value) : Promise.resolve(f.value).then(c, E);
|
|
6250
6355
|
a((t = t.apply(n, e)).next());
|
|
6251
6356
|
});
|
|
6252
|
-
class
|
|
6357
|
+
class Gi extends yo {
|
|
6253
6358
|
constructor(e, t = {}, o = !1) {
|
|
6254
6359
|
super(we), $e(this, "userId"), $e(this, "mediaStream", null), $e(this, "peerConnections", /* @__PURE__ */ new Map()), $e(this, "remoteStreams", /* @__PURE__ */ new Map()), $e(this, "isLocalParticipant", !1), $e(this, "callbacks"), this.userId = e, this.callbacks = t, this.isLocalParticipant = o;
|
|
6255
6360
|
const l = {
|
|
@@ -6382,10 +6487,14 @@ class Vi extends yo {
|
|
|
6382
6487
|
if (!this.mediaStream)
|
|
6383
6488
|
throw new Error("Media stream not initialized");
|
|
6384
6489
|
console.log(`[CallParticipant] Starting screen share for ${this.userId}`);
|
|
6385
|
-
const o = yield this.mediaStream.startScreenShare();
|
|
6386
|
-
|
|
6387
|
-
|
|
6388
|
-
|
|
6490
|
+
const o = yield this.mediaStream.startScreenShare(), l = this.mediaStream.getScreenVideoTrack(), c = this.mediaStream.getCameraVideoTrack();
|
|
6491
|
+
if (!l)
|
|
6492
|
+
throw new Error("Failed to get screen video track");
|
|
6493
|
+
for (const [E, a] of this.peerConnections)
|
|
6494
|
+
c ? (a.replaceTrack(c, l), console.log(
|
|
6495
|
+
`[CallParticipant] Screen video track replaced for connection with ${E}`
|
|
6496
|
+
)) : console.warn(
|
|
6497
|
+
`[CallParticipant] No camera video track to replace for ${E}`
|
|
6389
6498
|
);
|
|
6390
6499
|
this.updateState({
|
|
6391
6500
|
screenSharing: !0,
|
|
@@ -6411,15 +6520,37 @@ class Vi extends yo {
|
|
|
6411
6520
|
if (!this.mediaStream)
|
|
6412
6521
|
throw new Error("Media stream not initialized");
|
|
6413
6522
|
console.log(`[CallParticipant] Stopping screen share for ${this.userId}`);
|
|
6414
|
-
const o =
|
|
6415
|
-
|
|
6416
|
-
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
this.
|
|
6523
|
+
const o = this.mediaStream.getScreenVideoTrack();
|
|
6524
|
+
console.log(
|
|
6525
|
+
"[CallParticipant] Screen video track found:",
|
|
6526
|
+
!!o
|
|
6527
|
+
);
|
|
6528
|
+
const l = yield this.mediaStream.stopScreenShare(), c = this.mediaStream.getCameraVideoTrack();
|
|
6529
|
+
if (console.log("[CallParticipant] Camera stream:", !!l), console.log("[CallParticipant] Camera video track:", !!c), !c)
|
|
6530
|
+
throw new Error("Failed to get camera video track");
|
|
6531
|
+
for (const [E, a] of this.peerConnections)
|
|
6532
|
+
try {
|
|
6533
|
+
o && c ? (a.replaceTrack(o, c), console.log(
|
|
6534
|
+
`[CallParticipant] Camera video track restored for connection with ${E}`
|
|
6535
|
+
)) : (console.log(
|
|
6536
|
+
`[CallParticipant] Updating entire stream for connection with ${E}`
|
|
6537
|
+
), a.addStream(l));
|
|
6538
|
+
} catch (f) {
|
|
6539
|
+
console.warn(
|
|
6540
|
+
`[CallParticipant] Failed to replace track for ${E}, trying stream replacement:`,
|
|
6541
|
+
f
|
|
6542
|
+
);
|
|
6543
|
+
}
|
|
6544
|
+
if (this.updateState({
|
|
6420
6545
|
screenSharing: !1,
|
|
6421
|
-
stream:
|
|
6422
|
-
}),
|
|
6546
|
+
stream: l
|
|
6547
|
+
}), this.isLocalParticipant && this.mediaStream) {
|
|
6548
|
+
const E = this.mediaStream.getVideoElement();
|
|
6549
|
+
E && (E.srcObject = l, console.log(
|
|
6550
|
+
`[CallParticipant] Updated local video element for ${this.userId}`
|
|
6551
|
+
));
|
|
6552
|
+
}
|
|
6553
|
+
console.log(
|
|
6423
6554
|
`[CallParticipant] Screen sharing stopped for ${this.userId}`
|
|
6424
6555
|
);
|
|
6425
6556
|
} catch (o) {
|
|
@@ -6565,9 +6696,9 @@ function is() {
|
|
|
6565
6696
|
}
|
|
6566
6697
|
}
|
|
6567
6698
|
}, document.createElement = document.captureStream = document.mozCaptureStream = function() {
|
|
6568
|
-
var
|
|
6699
|
+
var p = {
|
|
6569
6700
|
getContext: function() {
|
|
6570
|
-
return
|
|
6701
|
+
return p;
|
|
6571
6702
|
},
|
|
6572
6703
|
play: function() {
|
|
6573
6704
|
},
|
|
@@ -6580,7 +6711,7 @@ function is() {
|
|
|
6580
6711
|
},
|
|
6581
6712
|
style: {}
|
|
6582
6713
|
};
|
|
6583
|
-
return
|
|
6714
|
+
return p;
|
|
6584
6715
|
}, v.HTMLVideoElement = function() {
|
|
6585
6716
|
}), typeof location == "undefined" && (v.location = {
|
|
6586
6717
|
protocol: "file:",
|
|
@@ -6612,100 +6743,100 @@ function is() {
|
|
|
6612
6743
|
});
|
|
6613
6744
|
var j = {};
|
|
6614
6745
|
typeof w != "undefined" ? j.AudioContext = w : typeof webkitAudioContext != "undefined" && (j.AudioContext = webkitAudioContext);
|
|
6615
|
-
function y(v,
|
|
6616
|
-
"srcObject" in
|
|
6746
|
+
function y(v, p) {
|
|
6747
|
+
"srcObject" in p ? p.srcObject = v : "mozSrcObject" in p ? p.mozSrcObject = v : p.srcObject = v;
|
|
6617
6748
|
}
|
|
6618
6749
|
this.startDrawingFrames = function() {
|
|
6619
6750
|
I();
|
|
6620
6751
|
};
|
|
6621
6752
|
function I() {
|
|
6622
6753
|
if (!E) {
|
|
6623
|
-
var v = c.length,
|
|
6754
|
+
var v = c.length, p = !1, B = [];
|
|
6624
6755
|
if (c.forEach(function(F) {
|
|
6625
|
-
F.stream || (F.stream = {}), F.stream.fullcanvas ?
|
|
6626
|
-
}),
|
|
6627
|
-
a.width =
|
|
6628
|
-
else if (
|
|
6629
|
-
a.width = v > 1 ?
|
|
6756
|
+
F.stream || (F.stream = {}), F.stream.fullcanvas ? p = F : B.push(F);
|
|
6757
|
+
}), p)
|
|
6758
|
+
a.width = p.stream.width, a.height = p.stream.height;
|
|
6759
|
+
else if (B.length) {
|
|
6760
|
+
a.width = v > 1 ? B[0].width * 2 : B[0].width;
|
|
6630
6761
|
var U = 1;
|
|
6631
|
-
(v === 3 || v === 4) && (U = 2), (v === 5 || v === 6) && (U = 3), (v === 7 || v === 8) && (U = 4), (v === 9 || v === 10) && (U = 5), a.height =
|
|
6762
|
+
(v === 3 || v === 4) && (U = 2), (v === 5 || v === 6) && (U = 3), (v === 7 || v === 8) && (U = 4), (v === 9 || v === 10) && (U = 5), a.height = B[0].height * U;
|
|
6632
6763
|
} else
|
|
6633
6764
|
a.width = u.width || 360, a.height = u.height || 240;
|
|
6634
|
-
|
|
6635
|
-
|
|
6765
|
+
p && p instanceof HTMLVideoElement && _(p), B.forEach(function(F, J) {
|
|
6766
|
+
_(F, J);
|
|
6636
6767
|
}), setTimeout(I, u.frameInterval);
|
|
6637
6768
|
}
|
|
6638
6769
|
}
|
|
6639
|
-
function
|
|
6770
|
+
function _(v, p) {
|
|
6640
6771
|
if (!E) {
|
|
6641
|
-
var
|
|
6642
|
-
|
|
6772
|
+
var B = 0, U = 0, F = v.width, J = v.height;
|
|
6773
|
+
p === 1 && (B = v.width), p === 2 && (U = v.height), p === 3 && (B = v.width, U = v.height), p === 4 && (U = v.height * 2), p === 5 && (B = v.width, U = v.height * 2), p === 6 && (U = v.height * 3), p === 7 && (B = v.width, U = v.height * 3), typeof v.stream.left != "undefined" && (B = v.stream.left), typeof v.stream.top != "undefined" && (U = v.stream.top), typeof v.stream.width != "undefined" && (F = v.stream.width), typeof v.stream.height != "undefined" && (J = v.stream.height), f.drawImage(v, B, U, F, J), typeof v.stream.onRender == "function" && v.stream.onRender(f, B, U, F, J, p);
|
|
6643
6774
|
}
|
|
6644
6775
|
}
|
|
6645
6776
|
function h() {
|
|
6646
6777
|
E = !1;
|
|
6647
|
-
var v = b(),
|
|
6648
|
-
return
|
|
6649
|
-
return
|
|
6650
|
-
}).forEach(function(
|
|
6651
|
-
v.addTrack(
|
|
6652
|
-
}), t.forEach(function(
|
|
6653
|
-
|
|
6778
|
+
var v = b(), p = P();
|
|
6779
|
+
return p && p.getTracks().filter(function(B) {
|
|
6780
|
+
return B.kind === "audio";
|
|
6781
|
+
}).forEach(function(B) {
|
|
6782
|
+
v.addTrack(B);
|
|
6783
|
+
}), t.forEach(function(B) {
|
|
6784
|
+
B.fullcanvas;
|
|
6654
6785
|
}), v;
|
|
6655
6786
|
}
|
|
6656
6787
|
function b() {
|
|
6657
6788
|
R();
|
|
6658
6789
|
var v;
|
|
6659
6790
|
"captureStream" in a ? v = a.captureStream() : "mozCaptureStream" in a ? v = a.mozCaptureStream() : u.disableLogs || console.error("Upgrade to latest Chrome or otherwise enable this flag: chrome://flags/#enable-experimental-web-platform-features");
|
|
6660
|
-
var
|
|
6661
|
-
return v.getTracks().filter(function(
|
|
6662
|
-
return
|
|
6663
|
-
}).forEach(function(
|
|
6664
|
-
|
|
6665
|
-
}), a.stream =
|
|
6791
|
+
var p = new C();
|
|
6792
|
+
return v.getTracks().filter(function(B) {
|
|
6793
|
+
return B.kind === "video";
|
|
6794
|
+
}).forEach(function(B) {
|
|
6795
|
+
p.addTrack(B);
|
|
6796
|
+
}), a.stream = p, p;
|
|
6666
6797
|
}
|
|
6667
6798
|
function P() {
|
|
6668
6799
|
j.AudioContextConstructor || (j.AudioContextConstructor = new j.AudioContext()), u.audioContext = j.AudioContextConstructor, u.audioSources = [], u.useGainNode === !0 && (u.gainNode = u.audioContext.createGain(), u.gainNode.connect(u.audioContext.destination), u.gainNode.gain.value = 0);
|
|
6669
6800
|
var v = 0;
|
|
6670
|
-
if (t.forEach(function(
|
|
6671
|
-
if (
|
|
6801
|
+
if (t.forEach(function(p) {
|
|
6802
|
+
if (p.getTracks().filter(function(U) {
|
|
6672
6803
|
return U.kind === "audio";
|
|
6673
6804
|
}).length) {
|
|
6674
6805
|
v++;
|
|
6675
|
-
var
|
|
6676
|
-
u.useGainNode === !0 &&
|
|
6806
|
+
var B = u.audioContext.createMediaStreamSource(p);
|
|
6807
|
+
u.useGainNode === !0 && B.connect(u.gainNode), u.audioSources.push(B);
|
|
6677
6808
|
}
|
|
6678
6809
|
}), !!v)
|
|
6679
|
-
return u.audioDestination = u.audioContext.createMediaStreamDestination(), u.audioSources.forEach(function(
|
|
6680
|
-
|
|
6810
|
+
return u.audioDestination = u.audioContext.createMediaStreamDestination(), u.audioSources.forEach(function(p) {
|
|
6811
|
+
p.connect(u.audioDestination);
|
|
6681
6812
|
}), u.audioDestination.stream;
|
|
6682
6813
|
}
|
|
6683
|
-
function
|
|
6684
|
-
var
|
|
6685
|
-
return y(v,
|
|
6814
|
+
function S(v) {
|
|
6815
|
+
var p = document.createElement("video");
|
|
6816
|
+
return y(v, p), p.className = o, p.muted = !0, p.volume = 0, p.width = v.width || u.width || 360, p.height = v.height || u.height || 240, p.play(), p;
|
|
6686
6817
|
}
|
|
6687
6818
|
this.appendStreams = function(v) {
|
|
6688
6819
|
if (!v)
|
|
6689
6820
|
throw "First parameter is required.";
|
|
6690
|
-
v instanceof Array || (v = [v]), v.forEach(function(
|
|
6691
|
-
var
|
|
6692
|
-
if (
|
|
6821
|
+
v instanceof Array || (v = [v]), v.forEach(function(p) {
|
|
6822
|
+
var B = new C();
|
|
6823
|
+
if (p.getTracks().filter(function(J) {
|
|
6693
6824
|
return J.kind === "video";
|
|
6694
6825
|
}).length) {
|
|
6695
|
-
var U =
|
|
6696
|
-
U.stream =
|
|
6826
|
+
var U = S(p);
|
|
6827
|
+
U.stream = p, c.push(U), B.addTrack(p.getTracks().filter(function(J) {
|
|
6697
6828
|
return J.kind === "video";
|
|
6698
6829
|
})[0]);
|
|
6699
6830
|
}
|
|
6700
|
-
if (
|
|
6831
|
+
if (p.getTracks().filter(function(J) {
|
|
6701
6832
|
return J.kind === "audio";
|
|
6702
6833
|
}).length) {
|
|
6703
|
-
var F = u.audioContext.createMediaStreamSource(
|
|
6704
|
-
u.audioDestination = u.audioContext.createMediaStreamDestination(), F.connect(u.audioDestination),
|
|
6834
|
+
var F = u.audioContext.createMediaStreamSource(p);
|
|
6835
|
+
u.audioDestination = u.audioContext.createMediaStreamDestination(), F.connect(u.audioDestination), B.addTrack(u.audioDestination.stream.getTracks().filter(function(J) {
|
|
6705
6836
|
return J.kind === "audio";
|
|
6706
6837
|
})[0]);
|
|
6707
6838
|
}
|
|
6708
|
-
t.push(
|
|
6839
|
+
t.push(B);
|
|
6709
6840
|
});
|
|
6710
6841
|
}, this.releaseStreams = function() {
|
|
6711
6842
|
c = [], E = !0, u.gainNode && (u.gainNode.disconnect(), u.gainNode = null), u.audioSources.length && (u.audioSources.forEach(function(v) {
|
|
@@ -6715,12 +6846,12 @@ function is() {
|
|
|
6715
6846
|
v && !(v instanceof Array) && (v = [v]), R(v);
|
|
6716
6847
|
};
|
|
6717
6848
|
function R(v) {
|
|
6718
|
-
c = [], v = v || t, v.forEach(function(
|
|
6719
|
-
if (
|
|
6849
|
+
c = [], v = v || t, v.forEach(function(p) {
|
|
6850
|
+
if (p.getTracks().filter(function(U) {
|
|
6720
6851
|
return U.kind === "video";
|
|
6721
6852
|
}).length) {
|
|
6722
|
-
var
|
|
6723
|
-
|
|
6853
|
+
var B = S(p);
|
|
6854
|
+
B.stream = p, c.push(B);
|
|
6724
6855
|
}
|
|
6725
6856
|
});
|
|
6726
6857
|
}
|
|
@@ -6934,7 +7065,7 @@ var gs = Object.defineProperty, ys = Object.defineProperties, ms = Object.getOwn
|
|
|
6934
7065
|
for (var t of Yi(e))
|
|
6935
7066
|
bs.call(e, t) && Zr(n, t, e[t]);
|
|
6936
7067
|
return n;
|
|
6937
|
-
},
|
|
7068
|
+
}, Ss = (n, e) => ys(n, ms(e)), Re = (n, e, t) => Zr(n, typeof e != "symbol" ? e + "" : e, t), pe = (n, e, t) => new Promise((o, l) => {
|
|
6938
7069
|
var c = (f) => {
|
|
6939
7070
|
try {
|
|
6940
7071
|
a(t.next(f));
|
|
@@ -6950,11 +7081,11 @@ var gs = Object.defineProperty, ys = Object.defineProperties, ms = Object.getOwn
|
|
|
6950
7081
|
}, a = (f) => f.done ? o(f.value) : Promise.resolve(f.value).then(c, E);
|
|
6951
7082
|
a((t = t.apply(n, e)).next());
|
|
6952
7083
|
});
|
|
6953
|
-
class
|
|
7084
|
+
class _s extends yo {
|
|
6954
7085
|
constructor(e, t = {}) {
|
|
6955
7086
|
if (super(we), Re(this, "config"), Re(this, "callbacks"), Re(this, "socket"), Re(this, "localParticipant", null), Re(this, "participants", /* @__PURE__ */ new Map()), Re(this, "recorder", null), Re(this, "iceServers", []), Re(this, "isInitialized", !1), Re(this, "listenersSetup", !1), Re(this, "roomId"), Re(this, "eventListeners", /* @__PURE__ */ new Map()), this.roomId = e.roomId, !this.roomId)
|
|
6956
7087
|
throw new Error("roomId must be provided in config");
|
|
6957
|
-
this.config =
|
|
7088
|
+
this.config = Ss(ws({
|
|
6958
7089
|
maxParticipants: 4,
|
|
6959
7090
|
debug: !1,
|
|
6960
7091
|
socketPath: "/apis/video-call",
|
|
@@ -6962,7 +7093,7 @@ class Ss extends yo {
|
|
|
6962
7093
|
}, e), {
|
|
6963
7094
|
roomId: this.roomId
|
|
6964
7095
|
// Ensure roomId is set
|
|
6965
|
-
}), this.callbacks = t, this.socket = new
|
|
7096
|
+
}), this.callbacks = t, this.socket = new Mo(
|
|
6966
7097
|
this.config.socketUrl,
|
|
6967
7098
|
this.config.token,
|
|
6968
7099
|
this.config.socketPath
|
|
@@ -7263,17 +7394,13 @@ class Ss extends yo {
|
|
|
7263
7394
|
*/
|
|
7264
7395
|
initializeLocalParticipant() {
|
|
7265
7396
|
return pe(this, null, function* () {
|
|
7266
|
-
this.localParticipant = new
|
|
7397
|
+
this.localParticipant = new Gi(
|
|
7267
7398
|
this.config.userId,
|
|
7268
7399
|
{
|
|
7269
|
-
onStateChanged: () => {
|
|
7270
|
-
},
|
|
7271
7400
|
onSignal: (e, t, o) => {
|
|
7272
7401
|
this.forwardSignalToServer(e, t, o);
|
|
7273
7402
|
},
|
|
7274
|
-
onError: (e) =>
|
|
7275
|
-
this.handleError("UNKNOWN_ERROR", e.message);
|
|
7276
|
-
}
|
|
7403
|
+
onError: (e) => this.handleError("UNKNOWN_ERROR", e.message)
|
|
7277
7404
|
},
|
|
7278
7405
|
!0
|
|
7279
7406
|
// isLocalParticipant = true
|
|
@@ -7291,19 +7418,19 @@ class Ss extends yo {
|
|
|
7291
7418
|
return;
|
|
7292
7419
|
}
|
|
7293
7420
|
this.cleanupSocketListeners(), console.log("[PeersCaller] Setting up socket listeners...");
|
|
7294
|
-
const e = (
|
|
7295
|
-
this.handleParticipantJoined(
|
|
7421
|
+
const e = (_) => {
|
|
7422
|
+
this.handleParticipantJoined(_.userId);
|
|
7296
7423
|
};
|
|
7297
7424
|
this.socket.on("call.participant.joined", e), this.eventListeners.set(
|
|
7298
7425
|
"call.participant.joined",
|
|
7299
7426
|
e
|
|
7300
7427
|
);
|
|
7301
|
-
const t = (
|
|
7302
|
-
this.handleParticipantLeft(
|
|
7428
|
+
const t = (_) => {
|
|
7429
|
+
this.handleParticipantLeft(_.userId);
|
|
7303
7430
|
};
|
|
7304
7431
|
this.socket.on("call.participant.left", t), this.eventListeners.set("call.participant.left", t);
|
|
7305
|
-
const o = (
|
|
7306
|
-
|
|
7432
|
+
const o = (_) => {
|
|
7433
|
+
_.participants.forEach((h) => {
|
|
7307
7434
|
h !== this.config.userId && this.handleParticipantJoined(h);
|
|
7308
7435
|
});
|
|
7309
7436
|
};
|
|
@@ -7312,52 +7439,52 @@ class Ss extends yo {
|
|
|
7312
7439
|
this.state.setIsCalling(!1);
|
|
7313
7440
|
};
|
|
7314
7441
|
this.socket.on("call.left", l), this.eventListeners.set("call.left", l);
|
|
7315
|
-
const c = (
|
|
7442
|
+
const c = (_) => {
|
|
7316
7443
|
var h, b;
|
|
7317
|
-
console.error("[PeersCaller] Server error:",
|
|
7444
|
+
console.error("[PeersCaller] Server error:", _), (b = (h = this.callbacks).onError) == null || b.call(h, _.error, _.message);
|
|
7318
7445
|
};
|
|
7319
7446
|
this.socket.on("call.error", c), this.eventListeners.set("call.error", c);
|
|
7320
|
-
const E = (
|
|
7321
|
-
this.handleOffer(
|
|
7447
|
+
const E = (_) => {
|
|
7448
|
+
this.handleOffer(_.from, _.offer);
|
|
7322
7449
|
};
|
|
7323
7450
|
this.socket.on("call.offer", E), this.eventListeners.set("call.offer", E);
|
|
7324
|
-
const a = (
|
|
7325
|
-
this.handleAnswer(
|
|
7451
|
+
const a = (_) => {
|
|
7452
|
+
this.handleAnswer(_.from, _.answer);
|
|
7326
7453
|
};
|
|
7327
7454
|
this.socket.on("call.answer", a), this.eventListeners.set("call.answer", a);
|
|
7328
|
-
const f = (
|
|
7329
|
-
this.handleCandidate(
|
|
7455
|
+
const f = (_) => {
|
|
7456
|
+
this.handleCandidate(_.from, _.candidate);
|
|
7330
7457
|
};
|
|
7331
7458
|
this.socket.on("call.candidate", f), this.eventListeners.set("call.candidate", f);
|
|
7332
|
-
const u = (
|
|
7333
|
-
this.handleParticipantStateUpdate(
|
|
7459
|
+
const u = (_) => {
|
|
7460
|
+
this.handleParticipantStateUpdate(_.from, _.state);
|
|
7334
7461
|
};
|
|
7335
7462
|
this.socket.on("call.state", u), this.eventListeners.set("call.state", u);
|
|
7336
|
-
const w = (
|
|
7337
|
-
this.handleCallEnded(
|
|
7463
|
+
const w = (_) => {
|
|
7464
|
+
this.handleCallEnded(_);
|
|
7338
7465
|
};
|
|
7339
7466
|
this.socket.on("call.ended", w), this.eventListeners.set("call.ended", w);
|
|
7340
|
-
const A = (
|
|
7341
|
-
this.handleCallStatusChanged(
|
|
7467
|
+
const A = (_) => {
|
|
7468
|
+
this.handleCallStatusChanged(_);
|
|
7342
7469
|
};
|
|
7343
7470
|
this.socket.on("call.status.changed", A), this.eventListeners.set("call.status.changed", A);
|
|
7344
|
-
const C = (
|
|
7345
|
-
console.log("[PeersCaller] Recording started:",
|
|
7471
|
+
const C = (_) => {
|
|
7472
|
+
console.log("[PeersCaller] Recording started:", _.recordingId), this.state.setIsRecording(!0);
|
|
7346
7473
|
};
|
|
7347
7474
|
this.socket.on("call.recording.start", C), this.eventListeners.set("call.recording.start", C);
|
|
7348
|
-
const j = (
|
|
7349
|
-
console.log("[PeersCaller] Recording chunk received:",
|
|
7475
|
+
const j = (_) => {
|
|
7476
|
+
console.log("[PeersCaller] Recording chunk received:", _);
|
|
7350
7477
|
};
|
|
7351
7478
|
this.socket.on("call.recording.chunk.received", j), this.eventListeners.set(
|
|
7352
7479
|
"call.recording.chunk.received",
|
|
7353
7480
|
j
|
|
7354
7481
|
);
|
|
7355
|
-
const y = (
|
|
7356
|
-
console.log("[PeersCaller] Recording ended:",
|
|
7482
|
+
const y = (_) => {
|
|
7483
|
+
console.log("[PeersCaller] Recording ended:", _.recordingId), this.state.setIsRecording(!1);
|
|
7357
7484
|
};
|
|
7358
7485
|
this.socket.on("call.recording.end", y), this.eventListeners.set("call.recording.end", y);
|
|
7359
|
-
const I = (
|
|
7360
|
-
console.log("[PeersCaller] Transcript received:",
|
|
7486
|
+
const I = (_) => {
|
|
7487
|
+
console.log("[PeersCaller] Transcript received:", _);
|
|
7361
7488
|
};
|
|
7362
7489
|
this.socket.on("call.transcript", I), this.eventListeners.set("call.transcript", I), this.listenersSetup = !0, console.log("[PeersCaller] Socket listeners set up successfully");
|
|
7363
7490
|
}
|
|
@@ -7386,7 +7513,7 @@ class Ss extends yo {
|
|
|
7386
7513
|
return;
|
|
7387
7514
|
}
|
|
7388
7515
|
console.log(`[PeersCaller] Participant ${e} joined`);
|
|
7389
|
-
const l = new
|
|
7516
|
+
const l = new Gi(
|
|
7390
7517
|
e,
|
|
7391
7518
|
{
|
|
7392
7519
|
onStreamReceived: (a, f) => {
|
|
@@ -7612,13 +7739,11 @@ class Ss extends yo {
|
|
|
7612
7739
|
), console.log("[PeersCaller] Using default ICE servers");
|
|
7613
7740
|
return;
|
|
7614
7741
|
}
|
|
7615
|
-
e.iceServers && e.iceServers.length > 0 ?
|
|
7616
|
-
`[PeersCaller] Successfully fetched ${e.iceServers.length} ICE servers from backend for room ${this.roomId}`
|
|
7617
|
-
)) : console.log(
|
|
7742
|
+
e.iceServers && e.iceServers.length > 0 ? this.iceServers = e.iceServers : console.log(
|
|
7618
7743
|
"[PeersCaller] No ICE servers received from backend, using defaults"
|
|
7619
7744
|
);
|
|
7620
7745
|
} catch (e) {
|
|
7621
|
-
console.warn("[PeersCaller] Error fetching ICE servers:", e)
|
|
7746
|
+
console.warn("[PeersCaller] Error fetching ICE servers:", e);
|
|
7622
7747
|
}
|
|
7623
7748
|
});
|
|
7624
7749
|
}
|
|
@@ -7644,8 +7769,16 @@ class Ss extends yo {
|
|
|
7644
7769
|
this.config.roomId
|
|
7645
7770
|
);
|
|
7646
7771
|
break;
|
|
7772
|
+
case "renegotiate":
|
|
7773
|
+
console.log(
|
|
7774
|
+
`[PeersCaller] Renegotiation signal from ${e} to ${t} - handled locally`
|
|
7775
|
+
);
|
|
7776
|
+
break;
|
|
7647
7777
|
default:
|
|
7648
|
-
console.warn(
|
|
7778
|
+
console.warn(
|
|
7779
|
+
`[PeersCaller] Unknown signal type: ${o.type} - this may indicate a new signal type that needs handling`
|
|
7780
|
+
), this.config.debug && console.log("[PeersCaller] Unknown signal data:", o);
|
|
7781
|
+
break;
|
|
7649
7782
|
}
|
|
7650
7783
|
} catch (l) {
|
|
7651
7784
|
console.error(
|
|
@@ -7672,45 +7805,45 @@ var Te = (n, e, t) => new Promise((o, l) => {
|
|
|
7672
7805
|
a((t = t.apply(n, e)).next());
|
|
7673
7806
|
});
|
|
7674
7807
|
function qs(n) {
|
|
7675
|
-
const [e, t] = Ne(null), [o, l] = Ne(!1), c = Io(!1), E = we
|
|
7676
|
-
we((
|
|
7677
|
-
), f = we((
|
|
7808
|
+
const [e, t] = Ne(null), [o, l] = Ne(!1), c = Io(!1), E = we((p) => p), a = Object.values(
|
|
7809
|
+
we((p) => p.participants)
|
|
7810
|
+
), f = we((p) => p.localParticipant), u = we((p) => p.callStatus === "connected"), w = we((p) => p.isRecording), A = we((p) => p.error), C = be(() => Te(null, null, function* () {
|
|
7678
7811
|
if (!(c.current || e))
|
|
7679
7812
|
try {
|
|
7680
7813
|
c.current = !0;
|
|
7681
|
-
const
|
|
7682
|
-
yield
|
|
7683
|
-
} catch (
|
|
7684
|
-
throw console.error("[useVideoCall] Failed to initialize:",
|
|
7814
|
+
const p = new _s(n, n.callbacks);
|
|
7815
|
+
yield p.initialize(), t(p), l(!0);
|
|
7816
|
+
} catch (p) {
|
|
7817
|
+
throw console.error("[useVideoCall] Failed to initialize:", p), c.current = !1, p;
|
|
7685
7818
|
}
|
|
7686
7819
|
}), [n, e]), j = be(
|
|
7687
|
-
(
|
|
7820
|
+
(p) => Te(null, null, function* () {
|
|
7688
7821
|
if (!e) {
|
|
7689
7822
|
yield C();
|
|
7690
7823
|
return;
|
|
7691
7824
|
}
|
|
7692
|
-
return e.startCall(
|
|
7825
|
+
return e.startCall(p);
|
|
7693
7826
|
}),
|
|
7694
7827
|
[e, C]
|
|
7695
7828
|
), y = be(
|
|
7696
|
-
(
|
|
7829
|
+
(p) => Te(null, null, function* () {
|
|
7697
7830
|
if (!e) {
|
|
7698
7831
|
yield C();
|
|
7699
7832
|
return;
|
|
7700
7833
|
}
|
|
7701
|
-
return e.joinCall(
|
|
7834
|
+
return e.joinCall(p);
|
|
7702
7835
|
}),
|
|
7703
7836
|
[e, C]
|
|
7704
7837
|
), I = be(() => {
|
|
7705
7838
|
e == null || e.endCall();
|
|
7706
|
-
}, [e]),
|
|
7707
|
-
(
|
|
7708
|
-
e == null || e.toggleAudio(
|
|
7839
|
+
}, [e]), _ = be(
|
|
7840
|
+
(p) => {
|
|
7841
|
+
e == null || e.toggleAudio(p);
|
|
7709
7842
|
},
|
|
7710
7843
|
[e]
|
|
7711
7844
|
), h = be(
|
|
7712
|
-
(
|
|
7713
|
-
e == null || e.toggleVideo(
|
|
7845
|
+
(p) => {
|
|
7846
|
+
e == null || e.toggleVideo(p);
|
|
7714
7847
|
},
|
|
7715
7848
|
[e]
|
|
7716
7849
|
), b = be(() => Te(null, null, function* () {
|
|
@@ -7719,10 +7852,10 @@ function qs(n) {
|
|
|
7719
7852
|
}), [e]), P = be(() => Te(null, null, function* () {
|
|
7720
7853
|
if (!e) throw new Error("PeersCaller not initialized");
|
|
7721
7854
|
return e.stopScreenShare();
|
|
7722
|
-
}), [e]),
|
|
7723
|
-
(
|
|
7855
|
+
}), [e]), S = be(
|
|
7856
|
+
(p) => Te(null, null, function* () {
|
|
7724
7857
|
if (!e) throw new Error("PeersCaller not initialized");
|
|
7725
|
-
return e.startRecording(
|
|
7858
|
+
return e.startRecording(p);
|
|
7726
7859
|
}),
|
|
7727
7860
|
[e]
|
|
7728
7861
|
), R = be(() => Te(null, null, function* () {
|
|
@@ -7742,12 +7875,12 @@ function qs(n) {
|
|
|
7742
7875
|
joinCall: y,
|
|
7743
7876
|
endCall: I,
|
|
7744
7877
|
// Media controls
|
|
7745
|
-
toggleAudio:
|
|
7878
|
+
toggleAudio: _,
|
|
7746
7879
|
toggleVideo: h,
|
|
7747
7880
|
startScreenShare: b,
|
|
7748
7881
|
stopScreenShare: P,
|
|
7749
7882
|
// Recording
|
|
7750
|
-
startRecording:
|
|
7883
|
+
startRecording: S,
|
|
7751
7884
|
stopRecording: R,
|
|
7752
7885
|
// State
|
|
7753
7886
|
callState: E,
|
|
@@ -7799,7 +7932,7 @@ function Ws() {
|
|
|
7799
7932
|
hasError: !!n.error
|
|
7800
7933
|
};
|
|
7801
7934
|
}
|
|
7802
|
-
function
|
|
7935
|
+
function Vs() {
|
|
7803
7936
|
const [n, e] = Ne({ videoDevices: [], audioDevices: [] }), [t, o] = Ne({ camera: null, microphone: null }), l = be(() => Te(null, null, function* () {
|
|
7804
7937
|
try {
|
|
7805
7938
|
const a = yield navigator.mediaDevices.enumerateDevices();
|
|
@@ -7882,7 +8015,7 @@ function zs() {
|
|
|
7882
8015
|
unsupportedFeatures: Object.entries(n).filter(([, t]) => !t).map(([t]) => t)
|
|
7883
8016
|
};
|
|
7884
8017
|
}
|
|
7885
|
-
function
|
|
8018
|
+
function Gs(n = "") {
|
|
7886
8019
|
const e = Date.now().toString(36), t = Math.random().toString(36).substring(2, 8);
|
|
7887
8020
|
return n ? `${n}_${e}_${t}` : `${e}_${t}`;
|
|
7888
8021
|
}
|
|
@@ -7928,16 +8061,16 @@ function Qs() {
|
|
|
7928
8061
|
}
|
|
7929
8062
|
export {
|
|
7930
8063
|
No as CallMediaStream,
|
|
7931
|
-
|
|
8064
|
+
Gi as CallParticipant,
|
|
7932
8065
|
Na as CallPeerConnection,
|
|
7933
8066
|
ps as CallRecorder,
|
|
7934
|
-
|
|
7935
|
-
|
|
8067
|
+
Mo as CallSocket,
|
|
8068
|
+
_s as PeersCaller,
|
|
7936
8069
|
Us as canAcceptMoreParticipants,
|
|
7937
8070
|
Xs as checkWebRTCSupport,
|
|
7938
8071
|
Ks as formatError,
|
|
7939
8072
|
Ys as formatMediaConstraints,
|
|
7940
|
-
|
|
8073
|
+
Gs as generateId,
|
|
7941
8074
|
Hs as generatePeerId,
|
|
7942
8075
|
Qs as getDefaultIceServers,
|
|
7943
8076
|
Ja as getParticipant,
|
|
@@ -7947,10 +8080,10 @@ export {
|
|
|
7947
8080
|
Zs as isWebRTCSupported,
|
|
7948
8081
|
Os as selectCallStatus,
|
|
7949
8082
|
Ns as selectCallStatusError,
|
|
7950
|
-
|
|
8083
|
+
Bs as selectCallStatusInfo,
|
|
7951
8084
|
Ls as selectCallStatusLoading,
|
|
7952
8085
|
Ds as selectCanJoinCall,
|
|
7953
|
-
|
|
8086
|
+
Ms as selectError,
|
|
7954
8087
|
Fs as selectIsCallActive,
|
|
7955
8088
|
ks as selectIsConnected,
|
|
7956
8089
|
Is as selectLocalParticipant,
|
|
@@ -7959,7 +8092,7 @@ export {
|
|
|
7959
8092
|
zs as useBrowserSupport,
|
|
7960
8093
|
Ws as useCallState,
|
|
7961
8094
|
we as useCallStore,
|
|
7962
|
-
|
|
8095
|
+
Vs as useMediaDevices,
|
|
7963
8096
|
xs as useParticipantVideo,
|
|
7964
8097
|
qs as useVideoCall
|
|
7965
8098
|
};
|