genesys-cloud-streaming-client 19.4.1-develop.11 → 19.4.1-develop.13

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.
@@ -3096,7 +3096,7 @@ var INSPECT_MAX_BYTES = 50;
3096
3096
  * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
3097
3097
  * get the Object implementation, which is slower but behaves correctly.
3098
3098
  */
3099
- Buffer$1.TYPED_ARRAY_SUPPORT = global$1.TYPED_ARRAY_SUPPORT !== undefined
3099
+ Buffer.TYPED_ARRAY_SUPPORT = global$1.TYPED_ARRAY_SUPPORT !== undefined
3100
3100
  ? global$1.TYPED_ARRAY_SUPPORT
3101
3101
  : true;
3102
3102
 
@@ -3106,7 +3106,7 @@ Buffer$1.TYPED_ARRAY_SUPPORT = global$1.TYPED_ARRAY_SUPPORT !== undefined
3106
3106
  kMaxLength();
3107
3107
 
3108
3108
  function kMaxLength () {
3109
- return Buffer$1.TYPED_ARRAY_SUPPORT
3109
+ return Buffer.TYPED_ARRAY_SUPPORT
3110
3110
  ? 0x7fffffff
3111
3111
  : 0x3fffffff
3112
3112
  }
@@ -3115,14 +3115,14 @@ function createBuffer (that, length) {
3115
3115
  if (kMaxLength() < length) {
3116
3116
  throw new RangeError('Invalid typed array length')
3117
3117
  }
3118
- if (Buffer$1.TYPED_ARRAY_SUPPORT) {
3118
+ if (Buffer.TYPED_ARRAY_SUPPORT) {
3119
3119
  // Return an augmented `Uint8Array` instance, for best performance
3120
3120
  that = new Uint8Array(length);
3121
- that.__proto__ = Buffer$1.prototype;
3121
+ that.__proto__ = Buffer.prototype;
3122
3122
  } else {
3123
3123
  // Fallback: Return an object instance of the Buffer class
3124
3124
  if (that === null) {
3125
- that = new Buffer$1(length);
3125
+ that = new Buffer(length);
3126
3126
  }
3127
3127
  that.length = length;
3128
3128
  }
@@ -3140,9 +3140,9 @@ function createBuffer (that, length) {
3140
3140
  * The `Uint8Array` prototype remains unmodified.
3141
3141
  */
3142
3142
 
3143
- function Buffer$1 (arg, encodingOrOffset, length) {
3144
- if (!Buffer$1.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer$1)) {
3145
- return new Buffer$1(arg, encodingOrOffset, length)
3143
+ function Buffer (arg, encodingOrOffset, length) {
3144
+ if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
3145
+ return new Buffer(arg, encodingOrOffset, length)
3146
3146
  }
3147
3147
 
3148
3148
  // Common case.
@@ -3157,11 +3157,11 @@ function Buffer$1 (arg, encodingOrOffset, length) {
3157
3157
  return from(this, arg, encodingOrOffset, length)
3158
3158
  }
3159
3159
 
3160
- Buffer$1.poolSize = 8192; // not used by this implementation
3160
+ Buffer.poolSize = 8192; // not used by this implementation
3161
3161
 
3162
3162
  // TODO: Legacy, not needed anymore. Remove in next major version.
3163
- Buffer$1._augment = function (arr) {
3164
- arr.__proto__ = Buffer$1.prototype;
3163
+ Buffer._augment = function (arr) {
3164
+ arr.__proto__ = Buffer.prototype;
3165
3165
  return arr
3166
3166
  };
3167
3167
 
@@ -3189,13 +3189,13 @@ function from (that, value, encodingOrOffset, length) {
3189
3189
  * Buffer.from(buffer)
3190
3190
  * Buffer.from(arrayBuffer[, byteOffset[, length]])
3191
3191
  **/
3192
- Buffer$1.from = function (value, encodingOrOffset, length) {
3192
+ Buffer.from = function (value, encodingOrOffset, length) {
3193
3193
  return from(null, value, encodingOrOffset, length)
3194
3194
  };
3195
3195
 
3196
- if (Buffer$1.TYPED_ARRAY_SUPPORT) {
3197
- Buffer$1.prototype.__proto__ = Uint8Array.prototype;
3198
- Buffer$1.__proto__ = Uint8Array;
3196
+ if (Buffer.TYPED_ARRAY_SUPPORT) {
3197
+ Buffer.prototype.__proto__ = Uint8Array.prototype;
3198
+ Buffer.__proto__ = Uint8Array;
3199
3199
  }
3200
3200
 
3201
3201
  function assertSize (size) {
@@ -3226,14 +3226,14 @@ function alloc (that, size, fill, encoding) {
3226
3226
  * Creates a new filled Buffer instance.
3227
3227
  * alloc(size[, fill[, encoding]])
3228
3228
  **/
3229
- Buffer$1.alloc = function (size, fill, encoding) {
3229
+ Buffer.alloc = function (size, fill, encoding) {
3230
3230
  return alloc(null, size, fill, encoding)
3231
3231
  };
3232
3232
 
3233
3233
  function allocUnsafe (that, size) {
3234
3234
  assertSize(size);
3235
3235
  that = createBuffer(that, size < 0 ? 0 : checked(size) | 0);
3236
- if (!Buffer$1.TYPED_ARRAY_SUPPORT) {
3236
+ if (!Buffer.TYPED_ARRAY_SUPPORT) {
3237
3237
  for (var i = 0; i < size; ++i) {
3238
3238
  that[i] = 0;
3239
3239
  }
@@ -3244,13 +3244,13 @@ function allocUnsafe (that, size) {
3244
3244
  /**
3245
3245
  * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
3246
3246
  * */
3247
- Buffer$1.allocUnsafe = function (size) {
3247
+ Buffer.allocUnsafe = function (size) {
3248
3248
  return allocUnsafe(null, size)
3249
3249
  };
3250
3250
  /**
3251
3251
  * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
3252
3252
  */
3253
- Buffer$1.allocUnsafeSlow = function (size) {
3253
+ Buffer.allocUnsafeSlow = function (size) {
3254
3254
  return allocUnsafe(null, size)
3255
3255
  };
3256
3256
 
@@ -3259,7 +3259,7 @@ function fromString (that, string, encoding) {
3259
3259
  encoding = 'utf8';
3260
3260
  }
3261
3261
 
3262
- if (!Buffer$1.isEncoding(encoding)) {
3262
+ if (!Buffer.isEncoding(encoding)) {
3263
3263
  throw new TypeError('"encoding" must be a valid string encoding')
3264
3264
  }
3265
3265
 
@@ -3306,10 +3306,10 @@ function fromArrayBuffer (that, array, byteOffset, length) {
3306
3306
  array = new Uint8Array(array, byteOffset, length);
3307
3307
  }
3308
3308
 
3309
- if (Buffer$1.TYPED_ARRAY_SUPPORT) {
3309
+ if (Buffer.TYPED_ARRAY_SUPPORT) {
3310
3310
  // Return an augmented `Uint8Array` instance, for best performance
3311
3311
  that = array;
3312
- that.__proto__ = Buffer$1.prototype;
3312
+ that.__proto__ = Buffer.prototype;
3313
3313
  } else {
3314
3314
  // Fallback: Return an object instance of the Buffer class
3315
3315
  that = fromArrayLike(that, array);
@@ -3356,12 +3356,12 @@ function checked (length) {
3356
3356
  }
3357
3357
  return length | 0
3358
3358
  }
3359
- Buffer$1.isBuffer = isBuffer;
3359
+ Buffer.isBuffer = isBuffer;
3360
3360
  function internalIsBuffer (b) {
3361
3361
  return !!(b != null && b._isBuffer)
3362
3362
  }
3363
3363
 
3364
- Buffer$1.compare = function compare (a, b) {
3364
+ Buffer.compare = function compare (a, b) {
3365
3365
  if (!internalIsBuffer(a) || !internalIsBuffer(b)) {
3366
3366
  throw new TypeError('Arguments must be Buffers')
3367
3367
  }
@@ -3384,7 +3384,7 @@ Buffer$1.compare = function compare (a, b) {
3384
3384
  return 0
3385
3385
  };
3386
3386
 
3387
- Buffer$1.isEncoding = function isEncoding (encoding) {
3387
+ Buffer.isEncoding = function isEncoding (encoding) {
3388
3388
  switch (String(encoding).toLowerCase()) {
3389
3389
  case 'hex':
3390
3390
  case 'utf8':
@@ -3403,13 +3403,13 @@ Buffer$1.isEncoding = function isEncoding (encoding) {
3403
3403
  }
3404
3404
  };
3405
3405
 
3406
- Buffer$1.concat = function concat (list, length) {
3406
+ Buffer.concat = function concat (list, length) {
3407
3407
  if (!isArray(list)) {
3408
3408
  throw new TypeError('"list" argument must be an Array of Buffers')
3409
3409
  }
3410
3410
 
3411
3411
  if (list.length === 0) {
3412
- return Buffer$1.alloc(0)
3412
+ return Buffer.alloc(0)
3413
3413
  }
3414
3414
 
3415
3415
  var i;
@@ -3420,7 +3420,7 @@ Buffer$1.concat = function concat (list, length) {
3420
3420
  }
3421
3421
  }
3422
3422
 
3423
- var buffer = Buffer$1.allocUnsafe(length);
3423
+ var buffer = Buffer.allocUnsafe(length);
3424
3424
  var pos = 0;
3425
3425
  for (i = 0; i < list.length; ++i) {
3426
3426
  var buf = list[i];
@@ -3476,7 +3476,7 @@ function byteLength$1 (string, encoding) {
3476
3476
  }
3477
3477
  }
3478
3478
  }
3479
- Buffer$1.byteLength = byteLength$1;
3479
+ Buffer.byteLength = byteLength$1;
3480
3480
 
3481
3481
  function slowToString (encoding, start, end) {
3482
3482
  var loweredCase = false;
@@ -3550,7 +3550,7 @@ function slowToString (encoding, start, end) {
3550
3550
 
3551
3551
  // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
3552
3552
  // Buffer instances.
3553
- Buffer$1.prototype._isBuffer = true;
3553
+ Buffer.prototype._isBuffer = true;
3554
3554
 
3555
3555
  function swap (b, n, m) {
3556
3556
  var i = b[n];
@@ -3558,7 +3558,7 @@ function swap (b, n, m) {
3558
3558
  b[m] = i;
3559
3559
  }
3560
3560
 
3561
- Buffer$1.prototype.swap16 = function swap16 () {
3561
+ Buffer.prototype.swap16 = function swap16 () {
3562
3562
  var len = this.length;
3563
3563
  if (len % 2 !== 0) {
3564
3564
  throw new RangeError('Buffer size must be a multiple of 16-bits')
@@ -3569,7 +3569,7 @@ Buffer$1.prototype.swap16 = function swap16 () {
3569
3569
  return this
3570
3570
  };
3571
3571
 
3572
- Buffer$1.prototype.swap32 = function swap32 () {
3572
+ Buffer.prototype.swap32 = function swap32 () {
3573
3573
  var len = this.length;
3574
3574
  if (len % 4 !== 0) {
3575
3575
  throw new RangeError('Buffer size must be a multiple of 32-bits')
@@ -3581,7 +3581,7 @@ Buffer$1.prototype.swap32 = function swap32 () {
3581
3581
  return this
3582
3582
  };
3583
3583
 
3584
- Buffer$1.prototype.swap64 = function swap64 () {
3584
+ Buffer.prototype.swap64 = function swap64 () {
3585
3585
  var len = this.length;
3586
3586
  if (len % 8 !== 0) {
3587
3587
  throw new RangeError('Buffer size must be a multiple of 64-bits')
@@ -3595,20 +3595,20 @@ Buffer$1.prototype.swap64 = function swap64 () {
3595
3595
  return this
3596
3596
  };
3597
3597
 
3598
- Buffer$1.prototype.toString = function toString () {
3598
+ Buffer.prototype.toString = function toString () {
3599
3599
  var length = this.length | 0;
3600
3600
  if (length === 0) return ''
3601
3601
  if (arguments.length === 0) return utf8Slice(this, 0, length)
3602
3602
  return slowToString.apply(this, arguments)
3603
3603
  };
3604
3604
 
3605
- Buffer$1.prototype.equals = function equals (b) {
3605
+ Buffer.prototype.equals = function equals (b) {
3606
3606
  if (!internalIsBuffer(b)) throw new TypeError('Argument must be a Buffer')
3607
3607
  if (this === b) return true
3608
- return Buffer$1.compare(this, b) === 0
3608
+ return Buffer.compare(this, b) === 0
3609
3609
  };
3610
3610
 
3611
- Buffer$1.prototype.inspect = function inspect () {
3611
+ Buffer.prototype.inspect = function inspect () {
3612
3612
  var str = '';
3613
3613
  var max = INSPECT_MAX_BYTES;
3614
3614
  if (this.length > 0) {
@@ -3618,7 +3618,7 @@ Buffer$1.prototype.inspect = function inspect () {
3618
3618
  return '<Buffer ' + str + '>'
3619
3619
  };
3620
3620
 
3621
- Buffer$1.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
3621
+ Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
3622
3622
  if (!internalIsBuffer(target)) {
3623
3623
  throw new TypeError('Argument must be a Buffer')
3624
3624
  }
@@ -3717,7 +3717,7 @@ function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
3717
3717
 
3718
3718
  // Normalize val
3719
3719
  if (typeof val === 'string') {
3720
- val = Buffer$1.from(val, encoding);
3720
+ val = Buffer.from(val, encoding);
3721
3721
  }
3722
3722
 
3723
3723
  // Finally, search either indexOf (if dir is true) or lastIndexOf
@@ -3729,7 +3729,7 @@ function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
3729
3729
  return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
3730
3730
  } else if (typeof val === 'number') {
3731
3731
  val = val & 0xFF; // Search for a byte value [0-255]
3732
- if (Buffer$1.TYPED_ARRAY_SUPPORT &&
3732
+ if (Buffer.TYPED_ARRAY_SUPPORT &&
3733
3733
  typeof Uint8Array.prototype.indexOf === 'function') {
3734
3734
  if (dir) {
3735
3735
  return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
@@ -3799,15 +3799,15 @@ function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
3799
3799
  return -1
3800
3800
  }
3801
3801
 
3802
- Buffer$1.prototype.includes = function includes (val, byteOffset, encoding) {
3802
+ Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
3803
3803
  return this.indexOf(val, byteOffset, encoding) !== -1
3804
3804
  };
3805
3805
 
3806
- Buffer$1.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
3806
+ Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
3807
3807
  return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
3808
3808
  };
3809
3809
 
3810
- Buffer$1.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
3810
+ Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
3811
3811
  return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
3812
3812
  };
3813
3813
 
@@ -3858,7 +3858,7 @@ function ucs2Write (buf, string, offset, length) {
3858
3858
  return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
3859
3859
  }
3860
3860
 
3861
- Buffer$1.prototype.write = function write (string, offset, length, encoding) {
3861
+ Buffer.prototype.write = function write (string, offset, length, encoding) {
3862
3862
  // Buffer#write(string)
3863
3863
  if (offset === undefined) {
3864
3864
  encoding = 'utf8';
@@ -3930,7 +3930,7 @@ Buffer$1.prototype.write = function write (string, offset, length, encoding) {
3930
3930
  }
3931
3931
  };
3932
3932
 
3933
- Buffer$1.prototype.toJSON = function toJSON () {
3933
+ Buffer.prototype.toJSON = function toJSON () {
3934
3934
  return {
3935
3935
  type: 'Buffer',
3936
3936
  data: Array.prototype.slice.call(this._arr || this, 0)
@@ -4083,7 +4083,7 @@ function utf16leSlice (buf, start, end) {
4083
4083
  return res
4084
4084
  }
4085
4085
 
4086
- Buffer$1.prototype.slice = function slice (start, end) {
4086
+ Buffer.prototype.slice = function slice (start, end) {
4087
4087
  var len = this.length;
4088
4088
  start = ~~start;
4089
4089
  end = end === undefined ? len : ~~end;
@@ -4105,12 +4105,12 @@ Buffer$1.prototype.slice = function slice (start, end) {
4105
4105
  if (end < start) end = start;
4106
4106
 
4107
4107
  var newBuf;
4108
- if (Buffer$1.TYPED_ARRAY_SUPPORT) {
4108
+ if (Buffer.TYPED_ARRAY_SUPPORT) {
4109
4109
  newBuf = this.subarray(start, end);
4110
- newBuf.__proto__ = Buffer$1.prototype;
4110
+ newBuf.__proto__ = Buffer.prototype;
4111
4111
  } else {
4112
4112
  var sliceLen = end - start;
4113
- newBuf = new Buffer$1(sliceLen, undefined);
4113
+ newBuf = new Buffer(sliceLen, undefined);
4114
4114
  for (var i = 0; i < sliceLen; ++i) {
4115
4115
  newBuf[i] = this[i + start];
4116
4116
  }
@@ -4127,7 +4127,7 @@ function checkOffset (offset, ext, length) {
4127
4127
  if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
4128
4128
  }
4129
4129
 
4130
- Buffer$1.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
4130
+ Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
4131
4131
  offset = offset | 0;
4132
4132
  byteLength = byteLength | 0;
4133
4133
  if (!noAssert) checkOffset(offset, byteLength, this.length);
@@ -4142,7 +4142,7 @@ Buffer$1.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAsser
4142
4142
  return val
4143
4143
  };
4144
4144
 
4145
- Buffer$1.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
4145
+ Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
4146
4146
  offset = offset | 0;
4147
4147
  byteLength = byteLength | 0;
4148
4148
  if (!noAssert) {
@@ -4158,22 +4158,22 @@ Buffer$1.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAsser
4158
4158
  return val
4159
4159
  };
4160
4160
 
4161
- Buffer$1.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
4161
+ Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
4162
4162
  if (!noAssert) checkOffset(offset, 1, this.length);
4163
4163
  return this[offset]
4164
4164
  };
4165
4165
 
4166
- Buffer$1.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
4166
+ Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
4167
4167
  if (!noAssert) checkOffset(offset, 2, this.length);
4168
4168
  return this[offset] | (this[offset + 1] << 8)
4169
4169
  };
4170
4170
 
4171
- Buffer$1.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
4171
+ Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
4172
4172
  if (!noAssert) checkOffset(offset, 2, this.length);
4173
4173
  return (this[offset] << 8) | this[offset + 1]
4174
4174
  };
4175
4175
 
4176
- Buffer$1.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
4176
+ Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
4177
4177
  if (!noAssert) checkOffset(offset, 4, this.length);
4178
4178
 
4179
4179
  return ((this[offset]) |
@@ -4182,7 +4182,7 @@ Buffer$1.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
4182
4182
  (this[offset + 3] * 0x1000000)
4183
4183
  };
4184
4184
 
4185
- Buffer$1.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
4185
+ Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
4186
4186
  if (!noAssert) checkOffset(offset, 4, this.length);
4187
4187
 
4188
4188
  return (this[offset] * 0x1000000) +
@@ -4191,7 +4191,7 @@ Buffer$1.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
4191
4191
  this[offset + 3])
4192
4192
  };
4193
4193
 
4194
- Buffer$1.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
4194
+ Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
4195
4195
  offset = offset | 0;
4196
4196
  byteLength = byteLength | 0;
4197
4197
  if (!noAssert) checkOffset(offset, byteLength, this.length);
@@ -4209,7 +4209,7 @@ Buffer$1.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert)
4209
4209
  return val
4210
4210
  };
4211
4211
 
4212
- Buffer$1.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
4212
+ Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
4213
4213
  offset = offset | 0;
4214
4214
  byteLength = byteLength | 0;
4215
4215
  if (!noAssert) checkOffset(offset, byteLength, this.length);
@@ -4227,25 +4227,25 @@ Buffer$1.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert)
4227
4227
  return val
4228
4228
  };
4229
4229
 
4230
- Buffer$1.prototype.readInt8 = function readInt8 (offset, noAssert) {
4230
+ Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
4231
4231
  if (!noAssert) checkOffset(offset, 1, this.length);
4232
4232
  if (!(this[offset] & 0x80)) return (this[offset])
4233
4233
  return ((0xff - this[offset] + 1) * -1)
4234
4234
  };
4235
4235
 
4236
- Buffer$1.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
4236
+ Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
4237
4237
  if (!noAssert) checkOffset(offset, 2, this.length);
4238
4238
  var val = this[offset] | (this[offset + 1] << 8);
4239
4239
  return (val & 0x8000) ? val | 0xFFFF0000 : val
4240
4240
  };
4241
4241
 
4242
- Buffer$1.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
4242
+ Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
4243
4243
  if (!noAssert) checkOffset(offset, 2, this.length);
4244
4244
  var val = this[offset + 1] | (this[offset] << 8);
4245
4245
  return (val & 0x8000) ? val | 0xFFFF0000 : val
4246
4246
  };
4247
4247
 
4248
- Buffer$1.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
4248
+ Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
4249
4249
  if (!noAssert) checkOffset(offset, 4, this.length);
4250
4250
 
4251
4251
  return (this[offset]) |
@@ -4254,7 +4254,7 @@ Buffer$1.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
4254
4254
  (this[offset + 3] << 24)
4255
4255
  };
4256
4256
 
4257
- Buffer$1.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
4257
+ Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
4258
4258
  if (!noAssert) checkOffset(offset, 4, this.length);
4259
4259
 
4260
4260
  return (this[offset] << 24) |
@@ -4263,22 +4263,22 @@ Buffer$1.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
4263
4263
  (this[offset + 3])
4264
4264
  };
4265
4265
 
4266
- Buffer$1.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
4266
+ Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
4267
4267
  if (!noAssert) checkOffset(offset, 4, this.length);
4268
4268
  return read(this, offset, true, 23, 4)
4269
4269
  };
4270
4270
 
4271
- Buffer$1.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
4271
+ Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
4272
4272
  if (!noAssert) checkOffset(offset, 4, this.length);
4273
4273
  return read(this, offset, false, 23, 4)
4274
4274
  };
4275
4275
 
4276
- Buffer$1.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
4276
+ Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
4277
4277
  if (!noAssert) checkOffset(offset, 8, this.length);
4278
4278
  return read(this, offset, true, 52, 8)
4279
4279
  };
4280
4280
 
4281
- Buffer$1.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
4281
+ Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
4282
4282
  if (!noAssert) checkOffset(offset, 8, this.length);
4283
4283
  return read(this, offset, false, 52, 8)
4284
4284
  };
@@ -4289,7 +4289,7 @@ function checkInt (buf, value, offset, ext, max, min) {
4289
4289
  if (offset + ext > buf.length) throw new RangeError('Index out of range')
4290
4290
  }
4291
4291
 
4292
- Buffer$1.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
4292
+ Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
4293
4293
  value = +value;
4294
4294
  offset = offset | 0;
4295
4295
  byteLength = byteLength | 0;
@@ -4308,7 +4308,7 @@ Buffer$1.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength
4308
4308
  return offset + byteLength
4309
4309
  };
4310
4310
 
4311
- Buffer$1.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
4311
+ Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
4312
4312
  value = +value;
4313
4313
  offset = offset | 0;
4314
4314
  byteLength = byteLength | 0;
@@ -4327,11 +4327,11 @@ Buffer$1.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength
4327
4327
  return offset + byteLength
4328
4328
  };
4329
4329
 
4330
- Buffer$1.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
4330
+ Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
4331
4331
  value = +value;
4332
4332
  offset = offset | 0;
4333
4333
  if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0);
4334
- if (!Buffer$1.TYPED_ARRAY_SUPPORT) value = Math.floor(value);
4334
+ if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value);
4335
4335
  this[offset] = (value & 0xff);
4336
4336
  return offset + 1
4337
4337
  };
@@ -4344,11 +4344,11 @@ function objectWriteUInt16 (buf, value, offset, littleEndian) {
4344
4344
  }
4345
4345
  }
4346
4346
 
4347
- Buffer$1.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
4347
+ Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
4348
4348
  value = +value;
4349
4349
  offset = offset | 0;
4350
4350
  if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0);
4351
- if (Buffer$1.TYPED_ARRAY_SUPPORT) {
4351
+ if (Buffer.TYPED_ARRAY_SUPPORT) {
4352
4352
  this[offset] = (value & 0xff);
4353
4353
  this[offset + 1] = (value >>> 8);
4354
4354
  } else {
@@ -4357,11 +4357,11 @@ Buffer$1.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAsse
4357
4357
  return offset + 2
4358
4358
  };
4359
4359
 
4360
- Buffer$1.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
4360
+ Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
4361
4361
  value = +value;
4362
4362
  offset = offset | 0;
4363
4363
  if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0);
4364
- if (Buffer$1.TYPED_ARRAY_SUPPORT) {
4364
+ if (Buffer.TYPED_ARRAY_SUPPORT) {
4365
4365
  this[offset] = (value >>> 8);
4366
4366
  this[offset + 1] = (value & 0xff);
4367
4367
  } else {
@@ -4377,11 +4377,11 @@ function objectWriteUInt32 (buf, value, offset, littleEndian) {
4377
4377
  }
4378
4378
  }
4379
4379
 
4380
- Buffer$1.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
4380
+ Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
4381
4381
  value = +value;
4382
4382
  offset = offset | 0;
4383
4383
  if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0);
4384
- if (Buffer$1.TYPED_ARRAY_SUPPORT) {
4384
+ if (Buffer.TYPED_ARRAY_SUPPORT) {
4385
4385
  this[offset + 3] = (value >>> 24);
4386
4386
  this[offset + 2] = (value >>> 16);
4387
4387
  this[offset + 1] = (value >>> 8);
@@ -4392,11 +4392,11 @@ Buffer$1.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAsse
4392
4392
  return offset + 4
4393
4393
  };
4394
4394
 
4395
- Buffer$1.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
4395
+ Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
4396
4396
  value = +value;
4397
4397
  offset = offset | 0;
4398
4398
  if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0);
4399
- if (Buffer$1.TYPED_ARRAY_SUPPORT) {
4399
+ if (Buffer.TYPED_ARRAY_SUPPORT) {
4400
4400
  this[offset] = (value >>> 24);
4401
4401
  this[offset + 1] = (value >>> 16);
4402
4402
  this[offset + 2] = (value >>> 8);
@@ -4407,7 +4407,7 @@ Buffer$1.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAsse
4407
4407
  return offset + 4
4408
4408
  };
4409
4409
 
4410
- Buffer$1.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
4410
+ Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
4411
4411
  value = +value;
4412
4412
  offset = offset | 0;
4413
4413
  if (!noAssert) {
@@ -4430,7 +4430,7 @@ Buffer$1.prototype.writeIntLE = function writeIntLE (value, offset, byteLength,
4430
4430
  return offset + byteLength
4431
4431
  };
4432
4432
 
4433
- Buffer$1.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
4433
+ Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
4434
4434
  value = +value;
4435
4435
  offset = offset | 0;
4436
4436
  if (!noAssert) {
@@ -4453,21 +4453,21 @@ Buffer$1.prototype.writeIntBE = function writeIntBE (value, offset, byteLength,
4453
4453
  return offset + byteLength
4454
4454
  };
4455
4455
 
4456
- Buffer$1.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
4456
+ Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
4457
4457
  value = +value;
4458
4458
  offset = offset | 0;
4459
4459
  if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80);
4460
- if (!Buffer$1.TYPED_ARRAY_SUPPORT) value = Math.floor(value);
4460
+ if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value);
4461
4461
  if (value < 0) value = 0xff + value + 1;
4462
4462
  this[offset] = (value & 0xff);
4463
4463
  return offset + 1
4464
4464
  };
4465
4465
 
4466
- Buffer$1.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
4466
+ Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
4467
4467
  value = +value;
4468
4468
  offset = offset | 0;
4469
4469
  if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000);
4470
- if (Buffer$1.TYPED_ARRAY_SUPPORT) {
4470
+ if (Buffer.TYPED_ARRAY_SUPPORT) {
4471
4471
  this[offset] = (value & 0xff);
4472
4472
  this[offset + 1] = (value >>> 8);
4473
4473
  } else {
@@ -4476,11 +4476,11 @@ Buffer$1.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert
4476
4476
  return offset + 2
4477
4477
  };
4478
4478
 
4479
- Buffer$1.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
4479
+ Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
4480
4480
  value = +value;
4481
4481
  offset = offset | 0;
4482
4482
  if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000);
4483
- if (Buffer$1.TYPED_ARRAY_SUPPORT) {
4483
+ if (Buffer.TYPED_ARRAY_SUPPORT) {
4484
4484
  this[offset] = (value >>> 8);
4485
4485
  this[offset + 1] = (value & 0xff);
4486
4486
  } else {
@@ -4489,11 +4489,11 @@ Buffer$1.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert
4489
4489
  return offset + 2
4490
4490
  };
4491
4491
 
4492
- Buffer$1.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
4492
+ Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
4493
4493
  value = +value;
4494
4494
  offset = offset | 0;
4495
4495
  if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000);
4496
- if (Buffer$1.TYPED_ARRAY_SUPPORT) {
4496
+ if (Buffer.TYPED_ARRAY_SUPPORT) {
4497
4497
  this[offset] = (value & 0xff);
4498
4498
  this[offset + 1] = (value >>> 8);
4499
4499
  this[offset + 2] = (value >>> 16);
@@ -4504,12 +4504,12 @@ Buffer$1.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert
4504
4504
  return offset + 4
4505
4505
  };
4506
4506
 
4507
- Buffer$1.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
4507
+ Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
4508
4508
  value = +value;
4509
4509
  offset = offset | 0;
4510
4510
  if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000);
4511
4511
  if (value < 0) value = 0xffffffff + value + 1;
4512
- if (Buffer$1.TYPED_ARRAY_SUPPORT) {
4512
+ if (Buffer.TYPED_ARRAY_SUPPORT) {
4513
4513
  this[offset] = (value >>> 24);
4514
4514
  this[offset + 1] = (value >>> 16);
4515
4515
  this[offset + 2] = (value >>> 8);
@@ -4533,11 +4533,11 @@ function writeFloat (buf, value, offset, littleEndian, noAssert) {
4533
4533
  return offset + 4
4534
4534
  }
4535
4535
 
4536
- Buffer$1.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
4536
+ Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
4537
4537
  return writeFloat(this, value, offset, true, noAssert)
4538
4538
  };
4539
4539
 
4540
- Buffer$1.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
4540
+ Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
4541
4541
  return writeFloat(this, value, offset, false, noAssert)
4542
4542
  };
4543
4543
 
@@ -4549,16 +4549,16 @@ function writeDouble (buf, value, offset, littleEndian, noAssert) {
4549
4549
  return offset + 8
4550
4550
  }
4551
4551
 
4552
- Buffer$1.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
4552
+ Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
4553
4553
  return writeDouble(this, value, offset, true, noAssert)
4554
4554
  };
4555
4555
 
4556
- Buffer$1.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
4556
+ Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
4557
4557
  return writeDouble(this, value, offset, false, noAssert)
4558
4558
  };
4559
4559
 
4560
4560
  // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
4561
- Buffer$1.prototype.copy = function copy (target, targetStart, start, end) {
4561
+ Buffer.prototype.copy = function copy (target, targetStart, start, end) {
4562
4562
  if (!start) start = 0;
4563
4563
  if (!end && end !== 0) end = this.length;
4564
4564
  if (targetStart >= target.length) targetStart = target.length;
@@ -4590,7 +4590,7 @@ Buffer$1.prototype.copy = function copy (target, targetStart, start, end) {
4590
4590
  for (i = len - 1; i >= 0; --i) {
4591
4591
  target[i + targetStart] = this[i + start];
4592
4592
  }
4593
- } else if (len < 1000 || !Buffer$1.TYPED_ARRAY_SUPPORT) {
4593
+ } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
4594
4594
  // ascending copy from start
4595
4595
  for (i = 0; i < len; ++i) {
4596
4596
  target[i + targetStart] = this[i + start];
@@ -4610,7 +4610,7 @@ Buffer$1.prototype.copy = function copy (target, targetStart, start, end) {
4610
4610
  // buffer.fill(number[, offset[, end]])
4611
4611
  // buffer.fill(buffer[, offset[, end]])
4612
4612
  // buffer.fill(string[, offset[, end]][, encoding])
4613
- Buffer$1.prototype.fill = function fill (val, start, end, encoding) {
4613
+ Buffer.prototype.fill = function fill (val, start, end, encoding) {
4614
4614
  // Handle string cases:
4615
4615
  if (typeof val === 'string') {
4616
4616
  if (typeof start === 'string') {
@@ -4630,7 +4630,7 @@ Buffer$1.prototype.fill = function fill (val, start, end, encoding) {
4630
4630
  if (encoding !== undefined && typeof encoding !== 'string') {
4631
4631
  throw new TypeError('encoding must be a string')
4632
4632
  }
4633
- if (typeof encoding === 'string' && !Buffer$1.isEncoding(encoding)) {
4633
+ if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
4634
4634
  throw new TypeError('Unknown encoding: ' + encoding)
4635
4635
  }
4636
4636
  } else if (typeof val === 'number') {
@@ -4659,7 +4659,7 @@ Buffer$1.prototype.fill = function fill (val, start, end, encoding) {
4659
4659
  } else {
4660
4660
  var bytes = internalIsBuffer(val)
4661
4661
  ? val
4662
- : utf8ToBytes(new Buffer$1(val, encoding).toString());
4662
+ : utf8ToBytes(new Buffer(val, encoding).toString());
4663
4663
  var len = bytes.length;
4664
4664
  for (i = 0; i < end - start; ++i) {
4665
4665
  this[i + start] = bytes[i % len];
@@ -5067,7 +5067,7 @@ function toFormData$1(obj, formData, options) {
5067
5067
  }
5068
5068
 
5069
5069
  if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
5070
- return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer$1.from(value);
5070
+ return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);
5071
5071
  }
5072
5072
 
5073
5073
  return value;
@@ -10997,7 +10997,7 @@ class LogUploader {
10997
10997
  while (queueItem = this.sendQueue.shift()) {
10998
10998
  promises.push(this.postLogsToEndpointInstantly(queueItem.requestParams, { saveOnFailure: true }));
10999
10999
  }
11000
- /* don't want this to be async because this is called from the window 'unload' event */
11000
+ /* don't want this to be async because this is called from the document 'visibilitychange' event */
11001
11001
  return promises;
11002
11002
  }
11003
11003
  resetSendQueue() {
@@ -11161,7 +11161,11 @@ class ServerLogger {
11161
11161
  this.isInitialized = true;
11162
11162
  this.debounceLogUploadTime = logger.config.uploadDebounceTime || DEFAULT_UPLOAD_DEBOUNCE;
11163
11163
  this.logUploader = getOrCreateLogUploader(logger.config.url, logger.config.debugMode, logger.config.useUniqueLogUploader, logger.config.customHeaders);
11164
- window.addEventListener('unload', this.sendAllLogsInstantly.bind(this));
11164
+ document.addEventListener('visibilitychange', () => {
11165
+ if (document.visibilityState === 'hidden') {
11166
+ this.sendAllLogsInstantly();
11167
+ }
11168
+ });
11165
11169
  /* when we stop server logging, we need to clear everything out */
11166
11170
  this.logger.on('onStop', (_reason) => {
11167
11171
  this.debug('`onStop` received. Clearing logBuffer and sendQueue', {
@@ -11240,7 +11244,7 @@ class ServerLogger {
11240
11244
  this.sendLogsToServer();
11241
11245
  }
11242
11246
  sendAllLogsInstantly() {
11243
- /* don't want this to be async because this is called from the window 'unload' event */
11247
+ /* don't want this to be async because this is called from the document 'visibilitychange' event */
11244
11248
  /* this will send any queued up requests */
11245
11249
  return this.logUploader.sendEntireQueue()
11246
11250
  .concat(
@@ -11554,7 +11558,7 @@ class Logger extends EventEmitter {
11554
11558
  }
11555
11559
  }
11556
11560
  /* eslint-disable @typescript-eslint/naming-convention */
11557
- Logger.VERSION = '4.2.17';
11561
+ Logger.VERSION = '4.2.18';
11558
11562
 
11559
11563
  /* istanbul ignore file */
11560
11564
  if (!commonjsGlobal) {
@@ -11651,6 +11655,7 @@ var SessionTypes;
11651
11655
  SessionTypes["collaborateVideo"] = "collaborateVideo";
11652
11656
  SessionTypes["acdScreenShare"] = "screenShare";
11653
11657
  SessionTypes["screenRecording"] = "screenRecording";
11658
+ SessionTypes["liveScreenMonitoring"] = "liveScreenMonitoring";
11654
11659
  SessionTypes["unknown"] = "unknown";
11655
11660
  })(SessionTypes || (SessionTypes = {}));
11656
11661
 
@@ -11722,6 +11727,9 @@ const isAcdJid = function (jid) {
11722
11727
  const isScreenRecordingJid = function (jid) {
11723
11728
  return jid.startsWith('screenrecording-') && !isSoftphoneJid(jid);
11724
11729
  };
11730
+ const isLiveScreenMonitoringJid = function (jid) {
11731
+ return jid.startsWith('livemonitor-') && !isSoftphoneJid(jid);
11732
+ };
11725
11733
  const isSoftphoneJid = function (jid) {
11726
11734
  if (!jid) {
11727
11735
  return false;
@@ -12176,6 +12184,7 @@ class Notifications {
12176
12184
  return this.xmppUnsubscribe(topic);
12177
12185
  }
12178
12186
  bulkSubscribe(topics, options = { replace: false, force: false }, priorities = {}) {
12187
+ var _a;
12179
12188
  return __awaiter$4(this, void 0, void 0, function* () {
12180
12189
  this.setTopicPriorities(priorities);
12181
12190
  let toSubscribe = mergeAndDedup(topics, []);
@@ -12192,29 +12201,38 @@ class Notifications {
12192
12201
  if (response && response.data && 'entities' in response.data && Array.isArray(response.data.entities)) {
12193
12202
  topicResponseEntities = response.data.entities;
12194
12203
  }
12195
- const topicResponsesById = {};
12204
+ const result = {};
12196
12205
  for (const topicEntity of topicResponseEntities) {
12197
- topicResponsesById[topicEntity.id] = topicEntity;
12206
+ const { id, state, rejectionReason } = topicEntity;
12207
+ result[id] = { topic: id, state, rejectionReason };
12208
+ // If response entity is a combined topic ID like "a.b?c&d" include individualized topic IDs
12209
+ // as keys in the map. This could either point to the same result as the combined topic ID
12210
+ // or to a specific result for that individual topic if backend provides a specific result.
12211
+ // Example: caller asked to subscribe "a.b?c&d" but user lacks permission for topic "a.b.d"
12212
+ // In this case, API response will include "a.b?c&d" as success along with "a.b.d" as failure.
12213
+ if (id.includes('?')) {
12214
+ for (const individualTopic of splitIntoIndividualTopics(id)) {
12215
+ const hasIndividualTopicResult = result.hasOwnProperty(individualTopic);
12216
+ // Only use the combined topic result for this individual topic ID if there isn't already
12217
+ // a result for the individual topic itself. Exact topic result takes precedence.
12218
+ if (!hasIndividualTopicResult) {
12219
+ result[individualTopic] = result[id];
12220
+ }
12221
+ }
12222
+ }
12198
12223
  }
12199
- const result = {};
12200
12224
  if (options.replace) {
12201
12225
  this.bulkSubscriptions = {};
12202
12226
  }
12203
12227
  topics.forEach(topic => {
12204
12228
  this.bulkSubscriptions[topic] = true;
12205
- if (this.enablePartialBulkResubscribe) {
12206
- if (topic in topicResponsesById) {
12207
- const { state, rejectionReason } = topicResponsesById[topic];
12208
- result[topic] = { topic, state, rejectionReason };
12209
- }
12210
- else {
12211
- result[topic] = { topic, state: 'Unknown' };
12212
- }
12213
- }
12214
- else {
12215
- result[topic] = { topic, state: 'Permitted' };
12216
- }
12217
12229
  });
12230
+ // Add a fallback result for any topic in the toSubscribe list that isn't already in result.
12231
+ // With partial bulk resubscribe enabled missing result means "Unknown" state but when not
12232
+ // enabled the fallback is "Permitted" for backward compatibility (success response means OK).
12233
+ for (const topic of toSubscribe) {
12234
+ (_a = result[topic]) !== null && _a !== void 0 ? _a : (result[topic] = { topic, state: this.enablePartialBulkResubscribe ? 'Unknown' : 'Permitted' });
12235
+ }
12218
12236
  return result;
12219
12237
  });
12220
12238
  }
@@ -18743,135 +18761,150 @@ util$2.inherits = function inherits(ctor, superCtor) {
18743
18761
 
18744
18762
  var BufferList = {};
18745
18763
 
18746
- var Buffer = buffer.Buffer;
18747
- function copyBuffer(src, target, offset) {
18748
- src.copy(target, offset);
18749
- }
18750
- BufferList.BufferList = class BufferList {
18751
- constructor() {
18752
- this.head = null;
18753
- this.tail = null;
18754
- this.length = 0;
18755
- }
18756
- push(v) {
18757
- var entry = { data: v, next: null };
18758
- if (this.length > 0)
18759
- this.tail.next = entry;
18760
- else
18761
- this.head = entry;
18762
- this.tail = entry;
18763
- ++this.length;
18764
- }
18765
- unshift(v) {
18766
- var entry = { data: v, next: this.head };
18767
- if (this.length === 0)
18768
- this.tail = entry;
18769
- this.head = entry;
18770
- ++this.length;
18771
- }
18772
- shift() {
18773
- if (this.length === 0)
18774
- return;
18775
- var ret = this.head.data;
18776
- if (this.length === 1)
18777
- this.head = this.tail = null;
18778
- else
18779
- this.head = this.head.next;
18780
- --this.length;
18781
- return ret;
18782
- }
18783
- clear() {
18784
- this.head = this.tail = null;
18785
- this.length = 0;
18786
- }
18787
- join(s) {
18788
- if (this.length === 0)
18789
- return '';
18790
- var p = this.head;
18791
- var ret = '' + p.data;
18792
- while ((p = p.next)) {
18793
- ret += s + p.data;
18794
- }
18795
- return ret;
18796
- }
18797
- concat(n) {
18798
- if (this.length === 0)
18799
- return Buffer.alloc(0);
18800
- if (this.length === 1)
18801
- return this.head.data;
18802
- var ret = Buffer.allocUnsafe(n >>> 0);
18803
- var p = this.head;
18804
- var i = 0;
18805
- while (p) {
18806
- copyBuffer(p.data, ret, i);
18807
- i += p.data.length;
18808
- p = p.next;
18809
- }
18810
- return ret;
18811
- }
18812
- };
18764
+ var hasRequiredBufferList;
18813
18765
 
18814
- /*<replacement>*/
18815
- var pna = process$1;
18816
- /*</replacement>*/
18817
- // undocumented cb() API, needed for core, not for public API
18818
- function destroy(err, cb) {
18819
- var _this = this;
18820
- var readableDestroyed = this._readableState && this._readableState.destroyed;
18821
- var writableDestroyed = this._writableState && this._writableState.destroyed;
18822
- if (readableDestroyed || writableDestroyed) {
18823
- if (cb) {
18824
- cb(err);
18825
- }
18826
- else if (err && (!this._writableState || !this._writableState.errorEmitted)) {
18827
- pna.nextTick(emitErrorNT, this, err);
18828
- }
18829
- return this;
18830
- }
18831
- // we set destroyed to true before firing error callbacks in order
18832
- // to make it re-entrance safe in case destroy() is called within callbacks
18833
- if (this._readableState) {
18834
- this._readableState.destroyed = true;
18835
- }
18836
- // if this is a duplex stream mark the writable part as destroyed as well
18837
- if (this._writableState) {
18838
- this._writableState.destroyed = true;
18839
- }
18840
- this._destroy(err || null, function (err) {
18841
- if (!cb && err) {
18842
- pna.nextTick(emitErrorNT, _this, err);
18843
- if (_this._writableState) {
18844
- _this._writableState.errorEmitted = true;
18845
- }
18846
- }
18847
- else if (cb) {
18848
- cb(err);
18849
- }
18850
- });
18851
- return this;
18852
- }
18853
- function undestroy() {
18854
- if (this._readableState) {
18855
- this._readableState.destroyed = false;
18856
- this._readableState.reading = false;
18857
- this._readableState.ended = false;
18858
- this._readableState.endEmitted = false;
18859
- }
18860
- if (this._writableState) {
18861
- this._writableState.destroyed = false;
18862
- this._writableState.ended = false;
18863
- this._writableState.ending = false;
18864
- this._writableState.finished = false;
18865
- this._writableState.errorEmitted = false;
18866
- }
18766
+ function requireBufferList () {
18767
+ if (hasRequiredBufferList) return BufferList;
18768
+ hasRequiredBufferList = 1;
18769
+ var Buffer = buffer.Buffer;
18770
+ function copyBuffer(src, target, offset) {
18771
+ src.copy(target, offset);
18772
+ }
18773
+ BufferList.BufferList = class BufferList {
18774
+ constructor() {
18775
+ this.head = null;
18776
+ this.tail = null;
18777
+ this.length = 0;
18778
+ }
18779
+ push(v) {
18780
+ var entry = { data: v, next: null };
18781
+ if (this.length > 0)
18782
+ this.tail.next = entry;
18783
+ else
18784
+ this.head = entry;
18785
+ this.tail = entry;
18786
+ ++this.length;
18787
+ }
18788
+ unshift(v) {
18789
+ var entry = { data: v, next: this.head };
18790
+ if (this.length === 0)
18791
+ this.tail = entry;
18792
+ this.head = entry;
18793
+ ++this.length;
18794
+ }
18795
+ shift() {
18796
+ if (this.length === 0)
18797
+ return;
18798
+ var ret = this.head.data;
18799
+ if (this.length === 1)
18800
+ this.head = this.tail = null;
18801
+ else
18802
+ this.head = this.head.next;
18803
+ --this.length;
18804
+ return ret;
18805
+ }
18806
+ clear() {
18807
+ this.head = this.tail = null;
18808
+ this.length = 0;
18809
+ }
18810
+ join(s) {
18811
+ if (this.length === 0)
18812
+ return '';
18813
+ var p = this.head;
18814
+ var ret = '' + p.data;
18815
+ while ((p = p.next)) {
18816
+ ret += s + p.data;
18817
+ }
18818
+ return ret;
18819
+ }
18820
+ concat(n) {
18821
+ if (this.length === 0)
18822
+ return Buffer.alloc(0);
18823
+ if (this.length === 1)
18824
+ return this.head.data;
18825
+ var ret = Buffer.allocUnsafe(n >>> 0);
18826
+ var p = this.head;
18827
+ var i = 0;
18828
+ while (p) {
18829
+ copyBuffer(p.data, ret, i);
18830
+ i += p.data.length;
18831
+ p = p.next;
18832
+ }
18833
+ return ret;
18834
+ }
18835
+ };
18836
+ return BufferList;
18867
18837
  }
18868
- function emitErrorNT(self, err) {
18869
- self.emit('error', err);
18838
+
18839
+ var destroy_1;
18840
+ var hasRequiredDestroy;
18841
+
18842
+ function requireDestroy () {
18843
+ if (hasRequiredDestroy) return destroy_1;
18844
+ hasRequiredDestroy = 1;
18845
+ /*<replacement>*/
18846
+ var pna = process$1;
18847
+ /*</replacement>*/
18848
+ // undocumented cb() API, needed for core, not for public API
18849
+ function destroy(err, cb) {
18850
+ var _this = this;
18851
+ var readableDestroyed = this._readableState && this._readableState.destroyed;
18852
+ var writableDestroyed = this._writableState && this._writableState.destroyed;
18853
+ if (readableDestroyed || writableDestroyed) {
18854
+ if (cb) {
18855
+ cb(err);
18856
+ }
18857
+ else if (err && (!this._writableState || !this._writableState.errorEmitted)) {
18858
+ pna.nextTick(emitErrorNT, this, err);
18859
+ }
18860
+ return this;
18861
+ }
18862
+ // we set destroyed to true before firing error callbacks in order
18863
+ // to make it re-entrance safe in case destroy() is called within callbacks
18864
+ if (this._readableState) {
18865
+ this._readableState.destroyed = true;
18866
+ }
18867
+ // if this is a duplex stream mark the writable part as destroyed as well
18868
+ if (this._writableState) {
18869
+ this._writableState.destroyed = true;
18870
+ }
18871
+ this._destroy(err || null, function (err) {
18872
+ if (!cb && err) {
18873
+ pna.nextTick(emitErrorNT, _this, err);
18874
+ if (_this._writableState) {
18875
+ _this._writableState.errorEmitted = true;
18876
+ }
18877
+ }
18878
+ else if (cb) {
18879
+ cb(err);
18880
+ }
18881
+ });
18882
+ return this;
18883
+ }
18884
+ function undestroy() {
18885
+ if (this._readableState) {
18886
+ this._readableState.destroyed = false;
18887
+ this._readableState.reading = false;
18888
+ this._readableState.ended = false;
18889
+ this._readableState.endEmitted = false;
18890
+ }
18891
+ if (this._writableState) {
18892
+ this._writableState.destroyed = false;
18893
+ this._writableState.ended = false;
18894
+ this._writableState.ending = false;
18895
+ this._writableState.finished = false;
18896
+ this._writableState.errorEmitted = false;
18897
+ }
18898
+ }
18899
+ function emitErrorNT(self, err) {
18900
+ self.emit('error', err);
18901
+ }
18902
+ destroy_1 = {
18903
+ destroy: destroy,
18904
+ undestroy: undestroy
18905
+ };
18906
+ return destroy_1;
18870
18907
  }
18871
- var destroy_1 = {
18872
- destroy: destroy,
18873
- undestroy: undestroy
18874
- };
18875
18908
 
18876
18909
  var _stream_writable;
18877
18910
  var hasRequired_stream_writable;
@@ -18917,7 +18950,7 @@ function require_stream_writable () {
18917
18950
  return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;
18918
18951
  }
18919
18952
  /*</replacement>*/
18920
- var destroyImpl = destroy_1;
18953
+ var destroyImpl = requireDestroy();
18921
18954
  util.inherits(Writable, Stream);
18922
18955
  function nop() { }
18923
18956
  function WritableState(options, stream) {
@@ -19921,8 +19954,8 @@ function require_stream_readable () {
19921
19954
  /*<replacement>*/
19922
19955
  var debug = function () { };
19923
19956
  /*</replacement>*/
19924
- var BufferList$1 = BufferList.BufferList;
19925
- var destroyImpl = destroy_1;
19957
+ var BufferList = requireBufferList().BufferList;
19958
+ var destroyImpl = requireDestroy();
19926
19959
  var StringDecoder;
19927
19960
  util.inherits(Readable, Stream);
19928
19961
  var kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];
@@ -19972,7 +20005,7 @@ function require_stream_readable () {
19972
20005
  // A linked list is used to store data chunks instead of an array because the
19973
20006
  // linked list can remove elements from the beginning faster than
19974
20007
  // array.shift()
19975
- this.buffer = new BufferList$1();
20008
+ this.buffer = new BufferList();
19976
20009
  this.length = 0;
19977
20010
  this.pipes = null;
19978
20011
  this.pipesCount = 0;
@@ -35915,6 +35948,9 @@ class WebrtcExtension extends EventEmitter {
35915
35948
  else if (isScreenRecordingJid(jid)) {
35916
35949
  return SessionTypes.screenRecording;
35917
35950
  }
35951
+ else if (isLiveScreenMonitoringJid(jid)) {
35952
+ return SessionTypes.liveScreenMonitoring;
35953
+ }
35918
35954
  else if (isSoftphoneJid(jid)) {
35919
35955
  return SessionTypes.softphone;
35920
35956
  }