@twilio/conversations 2.4.0 → 2.4.1-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -249,7 +249,7 @@ this.Twilio.Conversations = (function (exports) {
249
249
  return IndexedObject$4(requireObjectCoercible$9(it));
250
250
  };
251
251
 
252
- var isObject$p = function (it) {
252
+ var isObject$q = function (it) {
253
253
  return typeof it === 'object' ? it !== null : typeof it === 'function';
254
254
  };
255
255
 
@@ -322,15 +322,15 @@ this.Twilio.Conversations = (function (exports) {
322
322
  return typeof $Symbol == 'function' && Object(it) instanceof $Symbol;
323
323
  };
324
324
 
325
- var isObject$o = isObject$p;
325
+ var isObject$p = isObject$q;
326
326
 
327
327
  // `OrdinaryToPrimitive` abstract operation
328
328
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
329
329
  var ordinaryToPrimitive$1 = function (input, pref) {
330
330
  var fn, val;
331
- if (pref === 'string' && typeof (fn = input.toString) == 'function' && !isObject$o(val = fn.call(input))) return val;
332
- if (typeof (fn = input.valueOf) == 'function' && !isObject$o(val = fn.call(input))) return val;
333
- if (pref !== 'string' && typeof (fn = input.toString) == 'function' && !isObject$o(val = fn.call(input))) return val;
331
+ if (pref === 'string' && typeof (fn = input.toString) == 'function' && !isObject$p(val = fn.call(input))) return val;
332
+ if (typeof (fn = input.valueOf) == 'function' && !isObject$p(val = fn.call(input))) return val;
333
+ if (pref !== 'string' && typeof (fn = input.toString) == 'function' && !isObject$p(val = fn.call(input))) return val;
334
334
  throw TypeError("Can't convert object to primitive value");
335
335
  };
336
336
 
@@ -383,11 +383,11 @@ this.Twilio.Conversations = (function (exports) {
383
383
  return hasOwnProperty.call(toObject$f(it), key);
384
384
  };
385
385
 
386
- var id$1 = 0;
386
+ var id$2 = 0;
387
387
  var postfix = Math.random();
388
388
 
389
389
  var uid$5 = function (key) {
390
- return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id$1 + postfix).toString(36);
390
+ return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id$2 + postfix).toString(36);
391
391
  };
392
392
 
393
393
  var global$y = global$D;
@@ -411,7 +411,7 @@ this.Twilio.Conversations = (function (exports) {
411
411
  } return WellKnownSymbolsStore$1[name];
412
412
  };
413
413
 
414
- var isObject$n = isObject$p;
414
+ var isObject$o = isObject$q;
415
415
  var isSymbol$5 = isSymbol$6;
416
416
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
417
417
  var wellKnownSymbol$r = wellKnownSymbol$s;
@@ -421,13 +421,13 @@ this.Twilio.Conversations = (function (exports) {
421
421
  // `ToPrimitive` abstract operation
422
422
  // https://tc39.es/ecma262/#sec-toprimitive
423
423
  var toPrimitive$2 = function (input, pref) {
424
- if (!isObject$n(input) || isSymbol$5(input)) return input;
424
+ if (!isObject$o(input) || isSymbol$5(input)) return input;
425
425
  var exoticToPrim = input[TO_PRIMITIVE$1];
426
426
  var result;
427
427
  if (exoticToPrim !== undefined) {
428
428
  if (pref === undefined) pref = 'default';
429
429
  result = exoticToPrim.call(input, pref);
430
- if (!isObject$n(result) || isSymbol$5(result)) return result;
430
+ if (!isObject$o(result) || isSymbol$5(result)) return result;
431
431
  throw TypeError("Can't convert object to primitive value");
432
432
  }
433
433
  if (pref === undefined) pref = 'number';
@@ -445,11 +445,11 @@ this.Twilio.Conversations = (function (exports) {
445
445
  };
446
446
 
447
447
  var global$x = global$D;
448
- var isObject$m = isObject$p;
448
+ var isObject$n = isObject$q;
449
449
 
450
450
  var document$3 = global$x.document;
451
451
  // typeof document.createElement is 'object' in old IE
452
- var EXISTS = isObject$m(document$3) && isObject$m(document$3.createElement);
452
+ var EXISTS = isObject$n(document$3) && isObject$n(document$3.createElement);
453
453
 
454
454
  var documentCreateElement$2 = function (it) {
455
455
  return EXISTS ? document$3.createElement(it) : {};
@@ -491,17 +491,17 @@ this.Twilio.Conversations = (function (exports) {
491
491
 
492
492
  var objectDefineProperty = {};
493
493
 
494
- var isObject$l = isObject$p;
494
+ var isObject$m = isObject$q;
495
495
 
496
- var anObject$k = function (it) {
497
- if (!isObject$l(it)) {
496
+ var anObject$l = function (it) {
497
+ if (!isObject$m(it)) {
498
498
  throw TypeError(String(it) + ' is not an object');
499
499
  } return it;
500
500
  };
501
501
 
502
502
  var DESCRIPTORS$g = descriptors;
503
503
  var IE8_DOM_DEFINE = ie8DomDefine;
504
- var anObject$j = anObject$k;
504
+ var anObject$k = anObject$l;
505
505
  var toPropertyKey$3 = toPropertyKey$5;
506
506
 
507
507
  // eslint-disable-next-line es/no-object-defineproperty -- safe
@@ -510,9 +510,9 @@ this.Twilio.Conversations = (function (exports) {
510
510
  // `Object.defineProperty` method
511
511
  // https://tc39.es/ecma262/#sec-object.defineproperty
512
512
  objectDefineProperty.f = DESCRIPTORS$g ? $defineProperty$1 : function defineProperty(O, P, Attributes) {
513
- anObject$j(O);
513
+ anObject$k(O);
514
514
  P = toPropertyKey$3(P);
515
- anObject$j(Attributes);
515
+ anObject$k(Attributes);
516
516
  if (IE8_DOM_DEFINE) try {
517
517
  return $defineProperty$1(O, P, Attributes);
518
518
  } catch (error) { /* empty */ }
@@ -567,7 +567,7 @@ this.Twilio.Conversations = (function (exports) {
567
567
 
568
568
  var NATIVE_WEAK_MAP = nativeWeakMap;
569
569
  var global$v = global$D;
570
- var isObject$k = isObject$p;
570
+ var isObject$l = isObject$q;
571
571
  var createNonEnumerableProperty$b = createNonEnumerableProperty$c;
572
572
  var objectHas = has$g;
573
573
  var shared$2 = sharedStore;
@@ -585,7 +585,7 @@ this.Twilio.Conversations = (function (exports) {
585
585
  var getterFor = function (TYPE) {
586
586
  return function (it) {
587
587
  var state;
588
- if (!isObject$k(it) || (state = get$2(it)).type !== TYPE) {
588
+ if (!isObject$l(it) || (state = get$2(it)).type !== TYPE) {
589
589
  throw TypeError('Incompatible receiver, ' + TYPE + ' required');
590
590
  } return state;
591
591
  };
@@ -638,10 +638,10 @@ this.Twilio.Conversations = (function (exports) {
638
638
  var has$c = has$g;
639
639
  var setGlobal$1 = setGlobal$3;
640
640
  var inspectSource$1 = inspectSource$3;
641
- var InternalStateModule$9 = internalState;
641
+ var InternalStateModule$a = internalState;
642
642
 
643
- var getInternalState$7 = InternalStateModule$9.get;
644
- var enforceInternalState = InternalStateModule$9.enforce;
643
+ var getInternalState$7 = InternalStateModule$a.get;
644
+ var enforceInternalState = InternalStateModule$a.enforce;
645
645
  var TEMPLATE = String(String).split('String');
646
646
 
647
647
  (redefine$d.exports = function (O, key, value, options) {
@@ -790,11 +790,11 @@ this.Twilio.Conversations = (function (exports) {
790
790
  var getBuiltIn$7 = getBuiltIn$a;
791
791
  var getOwnPropertyNamesModule$2 = objectGetOwnPropertyNames;
792
792
  var getOwnPropertySymbolsModule$2 = objectGetOwnPropertySymbols;
793
- var anObject$i = anObject$k;
793
+ var anObject$j = anObject$l;
794
794
 
795
795
  // all object keys, includes non-enumerable and symbols
796
796
  var ownKeys$9 = getBuiltIn$7('Reflect', 'ownKeys') || function ownKeys(it) {
797
- var keys = getOwnPropertyNamesModule$2.f(anObject$i(it));
797
+ var keys = getOwnPropertyNamesModule$2.f(anObject$j(it));
798
798
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$2.f;
799
799
  return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
800
800
  };
@@ -931,14 +931,14 @@ this.Twilio.Conversations = (function (exports) {
931
931
 
932
932
  var DESCRIPTORS$e = descriptors;
933
933
  var definePropertyModule$5 = objectDefineProperty;
934
- var anObject$h = anObject$k;
934
+ var anObject$i = anObject$l;
935
935
  var objectKeys$3 = objectKeys$4;
936
936
 
937
937
  // `Object.defineProperties` method
938
938
  // https://tc39.es/ecma262/#sec-object.defineproperties
939
939
  // eslint-disable-next-line es/no-object-defineproperties -- safe
940
940
  var objectDefineProperties = DESCRIPTORS$e ? Object.defineProperties : function defineProperties(O, Properties) {
941
- anObject$h(O);
941
+ anObject$i(O);
942
942
  var keys = objectKeys$3(Properties);
943
943
  var length = keys.length;
944
944
  var index = 0;
@@ -953,7 +953,7 @@ this.Twilio.Conversations = (function (exports) {
953
953
 
954
954
  /* global ActiveXObject -- old IE, WSH */
955
955
 
956
- var anObject$g = anObject$k;
956
+ var anObject$h = anObject$l;
957
957
  var defineProperties$1 = objectDefineProperties;
958
958
  var enumBugKeys = enumBugKeys$3;
959
959
  var hiddenKeys$2 = hiddenKeys$6;
@@ -1026,7 +1026,7 @@ this.Twilio.Conversations = (function (exports) {
1026
1026
  var objectCreate = Object.create || function create(O, Properties) {
1027
1027
  var result;
1028
1028
  if (O !== null) {
1029
- EmptyConstructor[PROTOTYPE$2] = anObject$g(O);
1029
+ EmptyConstructor[PROTOTYPE$2] = anObject$h(O);
1030
1030
  result = new EmptyConstructor();
1031
1031
  EmptyConstructor[PROTOTYPE$2] = null;
1032
1032
  // add "__proto__" for Object.getPrototypeOf polyfill
@@ -1036,7 +1036,7 @@ this.Twilio.Conversations = (function (exports) {
1036
1036
  };
1037
1037
 
1038
1038
  var aFunction$8 = aFunction$9;
1039
- var isObject$j = isObject$p;
1039
+ var isObject$k = isObject$q;
1040
1040
 
1041
1041
  var slice = [].slice;
1042
1042
  var factories = {};
@@ -1058,15 +1058,15 @@ this.Twilio.Conversations = (function (exports) {
1058
1058
  var args = partArgs.concat(slice.call(arguments));
1059
1059
  return this instanceof boundFunction ? construct$1(fn, args.length, args) : fn.apply(that, args);
1060
1060
  };
1061
- if (isObject$j(fn.prototype)) boundFunction.prototype = fn.prototype;
1061
+ if (isObject$k(fn.prototype)) boundFunction.prototype = fn.prototype;
1062
1062
  return boundFunction;
1063
1063
  };
1064
1064
 
1065
1065
  var $$w = _export;
1066
1066
  var getBuiltIn$5 = getBuiltIn$a;
1067
1067
  var aFunction$7 = aFunction$9;
1068
- var anObject$f = anObject$k;
1069
- var isObject$i = isObject$p;
1068
+ var anObject$g = anObject$l;
1069
+ var isObject$j = isObject$q;
1070
1070
  var create$7 = objectCreate;
1071
1071
  var bind$8 = functionBind;
1072
1072
  var fails$v = fails$B;
@@ -1089,7 +1089,7 @@ this.Twilio.Conversations = (function (exports) {
1089
1089
  $$w({ target: 'Reflect', stat: true, forced: FORCED$9, sham: FORCED$9 }, {
1090
1090
  construct: function construct(Target, args /* , newTarget */) {
1091
1091
  aFunction$7(Target);
1092
- anObject$f(args);
1092
+ anObject$g(args);
1093
1093
  var newTarget = arguments.length < 3 ? Target : aFunction$7(arguments[2]);
1094
1094
  if (ARGS_BUG && !NEW_TARGET_BUG) return nativeConstruct(Target, args, newTarget);
1095
1095
  if (Target == newTarget) {
@@ -1108,9 +1108,9 @@ this.Twilio.Conversations = (function (exports) {
1108
1108
  }
1109
1109
  // with altered newTarget, not support built-in constructors
1110
1110
  var proto = newTarget.prototype;
1111
- var instance = create$7(isObject$i(proto) ? proto : Object.prototype);
1111
+ var instance = create$7(isObject$j(proto) ? proto : Object.prototype);
1112
1112
  var result = Function.apply.call(Target, instance, args);
1113
- return isObject$i(result) ? result : instance;
1113
+ return isObject$j(result) ? result : instance;
1114
1114
  }
1115
1115
  });
1116
1116
 
@@ -1219,7 +1219,7 @@ this.Twilio.Conversations = (function (exports) {
1219
1219
  };
1220
1220
  };
1221
1221
 
1222
- var isObject$h = isObject$p;
1222
+ var isObject$i = isObject$q;
1223
1223
  var isArray$3 = isArray$4;
1224
1224
  var wellKnownSymbol$o = wellKnownSymbol$s;
1225
1225
 
@@ -1233,7 +1233,7 @@ this.Twilio.Conversations = (function (exports) {
1233
1233
  C = originalArray.constructor;
1234
1234
  // cross-realm fallback
1235
1235
  if (typeof C == 'function' && (C === Array || isArray$3(C.prototype))) C = undefined;
1236
- else if (isObject$h(C)) {
1236
+ else if (isObject$i(C)) {
1237
1237
  C = C[SPECIES$6];
1238
1238
  if (C === null) C = undefined;
1239
1239
  }
@@ -1329,9 +1329,9 @@ this.Twilio.Conversations = (function (exports) {
1329
1329
  var fails$t = fails$B;
1330
1330
  var has$7 = has$g;
1331
1331
  var isArray$2 = isArray$4;
1332
- var isObject$g = isObject$p;
1332
+ var isObject$h = isObject$q;
1333
1333
  var isSymbol$2 = isSymbol$6;
1334
- var anObject$e = anObject$k;
1334
+ var anObject$f = anObject$l;
1335
1335
  var toObject$c = toObject$g;
1336
1336
  var toIndexedObject$7 = toIndexedObject$c;
1337
1337
  var toPropertyKey$2 = toPropertyKey$5;
@@ -1355,15 +1355,15 @@ this.Twilio.Conversations = (function (exports) {
1355
1355
  var wrappedWellKnownSymbolModule = wellKnownSymbolWrapped;
1356
1356
  var defineWellKnownSymbol$1 = defineWellKnownSymbol$2;
1357
1357
  var setToStringTag$7 = setToStringTag$9;
1358
- var InternalStateModule$8 = internalState;
1358
+ var InternalStateModule$9 = internalState;
1359
1359
  var $forEach$2 = arrayIteration.forEach;
1360
1360
 
1361
1361
  var HIDDEN = sharedKey$1('hidden');
1362
1362
  var SYMBOL = 'Symbol';
1363
1363
  var PROTOTYPE$1 = 'prototype';
1364
1364
  var TO_PRIMITIVE = wellKnownSymbol$n('toPrimitive');
1365
- var setInternalState$8 = InternalStateModule$8.set;
1366
- var getInternalState$6 = InternalStateModule$8.getterFor(SYMBOL);
1365
+ var setInternalState$9 = InternalStateModule$9.set;
1366
+ var getInternalState$6 = InternalStateModule$9.getterFor(SYMBOL);
1367
1367
  var ObjectPrototype$3 = Object[PROTOTYPE$1];
1368
1368
  var $Symbol$1 = global$q.Symbol;
1369
1369
  var $stringify$1 = getBuiltIn$4('JSON', 'stringify');
@@ -1396,7 +1396,7 @@ this.Twilio.Conversations = (function (exports) {
1396
1396
 
1397
1397
  var wrap$1 = function (tag, description) {
1398
1398
  var symbol = AllSymbols[tag] = nativeObjectCreate($Symbol$1[PROTOTYPE$1]);
1399
- setInternalState$8(symbol, {
1399
+ setInternalState$9(symbol, {
1400
1400
  type: SYMBOL,
1401
1401
  tag: tag,
1402
1402
  description: description
@@ -1407,9 +1407,9 @@ this.Twilio.Conversations = (function (exports) {
1407
1407
 
1408
1408
  var $defineProperty = function defineProperty(O, P, Attributes) {
1409
1409
  if (O === ObjectPrototype$3) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
1410
- anObject$e(O);
1410
+ anObject$f(O);
1411
1411
  var key = toPropertyKey$2(P);
1412
- anObject$e(Attributes);
1412
+ anObject$f(Attributes);
1413
1413
  if (has$7(AllSymbols, key)) {
1414
1414
  if (!Attributes.enumerable) {
1415
1415
  if (!has$7(O, HIDDEN)) nativeDefineProperty$1(O, HIDDEN, createPropertyDescriptor$4(1, {}));
@@ -1422,7 +1422,7 @@ this.Twilio.Conversations = (function (exports) {
1422
1422
  };
1423
1423
 
1424
1424
  var $defineProperties = function defineProperties(O, Properties) {
1425
- anObject$e(O);
1425
+ anObject$f(O);
1426
1426
  var properties = toIndexedObject$7(Properties);
1427
1427
  var keys = objectKeys$2(properties).concat($getOwnPropertySymbols(properties));
1428
1428
  $forEach$2(keys, function (key) {
@@ -1604,7 +1604,7 @@ this.Twilio.Conversations = (function (exports) {
1604
1604
  var $replacer;
1605
1605
  while (arguments.length > index) args.push(arguments[index++]);
1606
1606
  $replacer = replacer;
1607
- if (!isObject$g(replacer) && it === undefined || isSymbol$2(it)) return; // IE8 returns string on undefined
1607
+ if (!isObject$h(replacer) && it === undefined || isSymbol$2(it)) return; // IE8 returns string on undefined
1608
1608
  if (!isArray$2(replacer)) replacer = function (key, value) {
1609
1609
  if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
1610
1610
  if (!isSymbol$2(value)) return value;
@@ -1912,22 +1912,22 @@ this.Twilio.Conversations = (function (exports) {
1912
1912
 
1913
1913
  var redefine$9 = redefine$d.exports;
1914
1914
 
1915
- var redefineAll$4 = function (target, src, options) {
1915
+ var redefineAll$5 = function (target, src, options) {
1916
1916
  for (var key in src) redefine$9(target, key, src[key], options);
1917
1917
  return target;
1918
1918
  };
1919
1919
 
1920
- var isObject$f = isObject$p;
1920
+ var isObject$g = isObject$q;
1921
1921
 
1922
1922
  var aPossiblePrototype$1 = function (it) {
1923
- if (!isObject$f(it) && it !== null) {
1923
+ if (!isObject$g(it) && it !== null) {
1924
1924
  throw TypeError("Can't set " + String(it) + ' as a prototype');
1925
1925
  } return it;
1926
1926
  };
1927
1927
 
1928
1928
  /* eslint-disable no-proto -- safe */
1929
1929
 
1930
- var anObject$d = anObject$k;
1930
+ var anObject$e = anObject$l;
1931
1931
  var aPossiblePrototype = aPossiblePrototype$1;
1932
1932
 
1933
1933
  // `Object.setPrototypeOf` method
@@ -1945,7 +1945,7 @@ this.Twilio.Conversations = (function (exports) {
1945
1945
  CORRECT_SETTER = test instanceof Array;
1946
1946
  } catch (error) { /* empty */ }
1947
1947
  return function setPrototypeOf(O, proto) {
1948
- anObject$d(O);
1948
+ anObject$e(O);
1949
1949
  aPossiblePrototype(proto);
1950
1950
  if (CORRECT_SETTER) setter.call(O, proto);
1951
1951
  else O.__proto__ = proto;
@@ -1972,7 +1972,7 @@ this.Twilio.Conversations = (function (exports) {
1972
1972
  }
1973
1973
  };
1974
1974
 
1975
- var anInstance$7 = function (it, Constructor, name) {
1975
+ var anInstance$8 = function (it, Constructor, name) {
1976
1976
  if (!(it instanceof Constructor)) {
1977
1977
  throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
1978
1978
  } return it;
@@ -2003,21 +2003,21 @@ this.Twilio.Conversations = (function (exports) {
2003
2003
  || Iterators$3[classof$7(it)];
2004
2004
  };
2005
2005
 
2006
- var anObject$c = anObject$k;
2006
+ var anObject$d = anObject$l;
2007
2007
  var getIteratorMethod$4 = getIteratorMethod$5;
2008
2008
 
2009
2009
  var getIterator$4 = function (it, usingIterator) {
2010
2010
  var iteratorMethod = arguments.length < 2 ? getIteratorMethod$4(it) : usingIterator;
2011
2011
  if (typeof iteratorMethod != 'function') {
2012
2012
  throw TypeError(String(it) + ' is not iterable');
2013
- } return anObject$c(iteratorMethod.call(it));
2013
+ } return anObject$d(iteratorMethod.call(it));
2014
2014
  };
2015
2015
 
2016
- var anObject$b = anObject$k;
2016
+ var anObject$c = anObject$l;
2017
2017
 
2018
2018
  var iteratorClose$2 = function (iterator, kind, value) {
2019
2019
  var innerResult, innerError;
2020
- anObject$b(iterator);
2020
+ anObject$c(iterator);
2021
2021
  try {
2022
2022
  innerResult = iterator['return'];
2023
2023
  if (innerResult === undefined) {
@@ -2031,11 +2031,11 @@ this.Twilio.Conversations = (function (exports) {
2031
2031
  }
2032
2032
  if (kind === 'throw') throw value;
2033
2033
  if (innerError) throw innerResult;
2034
- anObject$b(innerResult);
2034
+ anObject$c(innerResult);
2035
2035
  return value;
2036
2036
  };
2037
2037
 
2038
- var anObject$a = anObject$k;
2038
+ var anObject$b = anObject$l;
2039
2039
  var isArrayIteratorMethod$2 = isArrayIteratorMethod$3;
2040
2040
  var toLength$l = toLength$o;
2041
2041
  var bind$6 = functionBindContext;
@@ -2048,7 +2048,7 @@ this.Twilio.Conversations = (function (exports) {
2048
2048
  this.result = result;
2049
2049
  };
2050
2050
 
2051
- var iterate$3 = function (iterable, unboundFunction, options) {
2051
+ var iterate$4 = function (iterable, unboundFunction, options) {
2052
2052
  var that = options && options.that;
2053
2053
  var AS_ENTRIES = !!(options && options.AS_ENTRIES);
2054
2054
  var IS_ITERATOR = !!(options && options.IS_ITERATOR);
@@ -2063,7 +2063,7 @@ this.Twilio.Conversations = (function (exports) {
2063
2063
 
2064
2064
  var callFn = function (value) {
2065
2065
  if (AS_ENTRIES) {
2066
- anObject$a(value);
2066
+ anObject$b(value);
2067
2067
  return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
2068
2068
  } return INTERRUPTED ? fn(value, stop) : fn(value);
2069
2069
  };
@@ -2133,7 +2133,7 @@ this.Twilio.Conversations = (function (exports) {
2133
2133
  return ITERATION_SUPPORT;
2134
2134
  };
2135
2135
 
2136
- var anObject$9 = anObject$k;
2136
+ var anObject$a = anObject$l;
2137
2137
  var aFunction$5 = aFunction$9;
2138
2138
  var wellKnownSymbol$f = wellKnownSymbol$s;
2139
2139
 
@@ -2142,9 +2142,9 @@ this.Twilio.Conversations = (function (exports) {
2142
2142
  // `SpeciesConstructor` abstract operation
2143
2143
  // https://tc39.es/ecma262/#sec-speciesconstructor
2144
2144
  var speciesConstructor$3 = function (O, defaultConstructor) {
2145
- var C = anObject$9(O).constructor;
2145
+ var C = anObject$a(O).constructor;
2146
2146
  var S;
2147
- return C === undefined || (S = anObject$9(C)[SPECIES$3]) == undefined ? defaultConstructor : aFunction$5(S);
2147
+ return C === undefined || (S = anObject$a(C)[SPECIES$3]) == undefined ? defaultConstructor : aFunction$5(S);
2148
2148
  };
2149
2149
 
2150
2150
  var userAgent$4 = engineUserAgent;
@@ -2383,13 +2383,13 @@ this.Twilio.Conversations = (function (exports) {
2383
2383
  return new PromiseCapability(C);
2384
2384
  };
2385
2385
 
2386
- var anObject$8 = anObject$k;
2387
- var isObject$e = isObject$p;
2386
+ var anObject$9 = anObject$l;
2387
+ var isObject$f = isObject$q;
2388
2388
  var newPromiseCapability$1 = newPromiseCapability$2;
2389
2389
 
2390
2390
  var promiseResolve$1 = function (C, x) {
2391
- anObject$8(C);
2392
- if (isObject$e(x) && x.constructor === C) return x;
2391
+ anObject$9(C);
2392
+ if (isObject$f(x) && x.constructor === C) return x;
2393
2393
  var promiseCapability = newPromiseCapability$1.f(C);
2394
2394
  var resolve = promiseCapability.resolve;
2395
2395
  resolve(x);
@@ -2420,15 +2420,15 @@ this.Twilio.Conversations = (function (exports) {
2420
2420
  var getBuiltIn$2 = getBuiltIn$a;
2421
2421
  var NativePromise = nativePromiseConstructor;
2422
2422
  var redefine$8 = redefine$d.exports;
2423
- var redefineAll$3 = redefineAll$4;
2423
+ var redefineAll$4 = redefineAll$5;
2424
2424
  var setPrototypeOf$6 = objectSetPrototypeOf;
2425
2425
  var setToStringTag$6 = setToStringTag$9;
2426
2426
  var setSpecies$3 = setSpecies$4;
2427
- var isObject$d = isObject$p;
2427
+ var isObject$e = isObject$q;
2428
2428
  var aFunction$3 = aFunction$9;
2429
- var anInstance$6 = anInstance$7;
2429
+ var anInstance$7 = anInstance$8;
2430
2430
  var inspectSource = inspectSource$3;
2431
- var iterate$2 = iterate$3;
2431
+ var iterate$3 = iterate$4;
2432
2432
  var checkCorrectnessOfIteration$3 = checkCorrectnessOfIteration$4;
2433
2433
  var speciesConstructor$2 = speciesConstructor$3;
2434
2434
  var task = task$1.set;
@@ -2437,7 +2437,7 @@ this.Twilio.Conversations = (function (exports) {
2437
2437
  var hostReportErrors = hostReportErrors$1;
2438
2438
  var newPromiseCapabilityModule = newPromiseCapability$2;
2439
2439
  var perform = perform$1;
2440
- var InternalStateModule$7 = internalState;
2440
+ var InternalStateModule$8 = internalState;
2441
2441
  var isForced$2 = isForced_1;
2442
2442
  var wellKnownSymbol$e = wellKnownSymbol$s;
2443
2443
  var IS_BROWSER = engineIsBrowser;
@@ -2446,9 +2446,9 @@ this.Twilio.Conversations = (function (exports) {
2446
2446
 
2447
2447
  var SPECIES$2 = wellKnownSymbol$e('species');
2448
2448
  var PROMISE = 'Promise';
2449
- var getInternalState$5 = InternalStateModule$7.get;
2450
- var setInternalState$7 = InternalStateModule$7.set;
2451
- var getInternalPromiseState = InternalStateModule$7.getterFor(PROMISE);
2449
+ var getInternalState$5 = InternalStateModule$8.get;
2450
+ var setInternalState$8 = InternalStateModule$8.set;
2451
+ var getInternalPromiseState = InternalStateModule$8.getterFor(PROMISE);
2452
2452
  var NativePromisePrototype = NativePromise && NativePromise.prototype;
2453
2453
  var PromiseConstructor = NativePromise;
2454
2454
  var PromiseConstructorPrototype = NativePromisePrototype;
@@ -2500,7 +2500,7 @@ this.Twilio.Conversations = (function (exports) {
2500
2500
  // helpers
2501
2501
  var isThenable = function (it) {
2502
2502
  var then;
2503
- return isObject$d(it) && typeof (then = it.then) == 'function' ? then : false;
2503
+ return isObject$e(it) && typeof (then = it.then) == 'function' ? then : false;
2504
2504
  };
2505
2505
 
2506
2506
  var notify = function (state, isReject) {
@@ -2644,7 +2644,7 @@ this.Twilio.Conversations = (function (exports) {
2644
2644
  if (FORCED$7) {
2645
2645
  // 25.4.3.1 Promise(executor)
2646
2646
  PromiseConstructor = function Promise(executor) {
2647
- anInstance$6(this, PromiseConstructor, PROMISE);
2647
+ anInstance$7(this, PromiseConstructor, PROMISE);
2648
2648
  aFunction$3(executor);
2649
2649
  Internal.call(this);
2650
2650
  var state = getInternalState$5(this);
@@ -2657,7 +2657,7 @@ this.Twilio.Conversations = (function (exports) {
2657
2657
  PromiseConstructorPrototype = PromiseConstructor.prototype;
2658
2658
  // eslint-disable-next-line no-unused-vars -- required for `.length`
2659
2659
  Internal = function Promise(executor) {
2660
- setInternalState$7(this, {
2660
+ setInternalState$8(this, {
2661
2661
  type: PROMISE,
2662
2662
  done: false,
2663
2663
  notified: false,
@@ -2668,7 +2668,7 @@ this.Twilio.Conversations = (function (exports) {
2668
2668
  value: undefined
2669
2669
  });
2670
2670
  };
2671
- Internal.prototype = redefineAll$3(PromiseConstructorPrototype, {
2671
+ Internal.prototype = redefineAll$4(PromiseConstructorPrototype, {
2672
2672
  // `Promise.prototype.then` method
2673
2673
  // https://tc39.es/ecma262/#sec-promise.prototype.then
2674
2674
  then: function then(onFulfilled, onRejected) {
@@ -2771,7 +2771,7 @@ this.Twilio.Conversations = (function (exports) {
2771
2771
  var values = [];
2772
2772
  var counter = 0;
2773
2773
  var remaining = 1;
2774
- iterate$2(iterable, function (promise) {
2774
+ iterate$3(iterable, function (promise) {
2775
2775
  var index = counter++;
2776
2776
  var alreadyCalled = false;
2777
2777
  values.push(undefined);
@@ -2796,7 +2796,7 @@ this.Twilio.Conversations = (function (exports) {
2796
2796
  var reject = capability.reject;
2797
2797
  var result = perform(function () {
2798
2798
  var $promiseResolve = aFunction$3(C.resolve);
2799
- iterate$2(iterable, function (promise) {
2799
+ iterate$3(iterable, function (promise) {
2800
2800
  $promiseResolve.call(C, promise).then(capability.resolve, reject);
2801
2801
  });
2802
2802
  });
@@ -3613,7 +3613,7 @@ this.Twilio.Conversations = (function (exports) {
3613
3613
  var $$o = _export;
3614
3614
  var fails$o = fails$B;
3615
3615
  var isArray$1 = isArray$4;
3616
- var isObject$c = isObject$p;
3616
+ var isObject$d = isObject$q;
3617
3617
  var toObject$b = toObject$g;
3618
3618
  var toLength$k = toLength$o;
3619
3619
  var createProperty$3 = createProperty$5;
@@ -3638,7 +3638,7 @@ this.Twilio.Conversations = (function (exports) {
3638
3638
  var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$2('concat');
3639
3639
 
3640
3640
  var isConcatSpreadable = function (O) {
3641
- if (!isObject$c(O)) return false;
3641
+ if (!isObject$d(O)) return false;
3642
3642
  var spreadable = O[IS_CONCAT_SPREADABLE];
3643
3643
  return spreadable !== undefined ? !!spreadable : isArray$1(O);
3644
3644
  };
@@ -3671,13 +3671,13 @@ this.Twilio.Conversations = (function (exports) {
3671
3671
  }
3672
3672
  });
3673
3673
 
3674
- var anObject$7 = anObject$k;
3674
+ var anObject$8 = anObject$l;
3675
3675
  var iteratorClose = iteratorClose$2;
3676
3676
 
3677
3677
  // call something on iterator step with safe closing on error
3678
3678
  var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
3679
3679
  try {
3680
- return ENTRIES ? fn(anObject$7(value)[0], value[1]) : fn(value);
3680
+ return ENTRIES ? fn(anObject$8(value)[0], value[1]) : fn(value);
3681
3681
  } catch (error) {
3682
3682
  iteratorClose(iterator, 'throw', error);
3683
3683
  }
@@ -3947,17 +3947,17 @@ this.Twilio.Conversations = (function (exports) {
3947
3947
 
3948
3948
  var charAt$1 = stringMultibyte.charAt;
3949
3949
  var toString$9 = toString$d;
3950
- var InternalStateModule$6 = internalState;
3950
+ var InternalStateModule$7 = internalState;
3951
3951
  var defineIterator$2 = defineIterator$3;
3952
3952
 
3953
3953
  var STRING_ITERATOR = 'String Iterator';
3954
- var setInternalState$6 = InternalStateModule$6.set;
3955
- var getInternalState$4 = InternalStateModule$6.getterFor(STRING_ITERATOR);
3954
+ var setInternalState$7 = InternalStateModule$7.set;
3955
+ var getInternalState$4 = InternalStateModule$7.getterFor(STRING_ITERATOR);
3956
3956
 
3957
3957
  // `String.prototype[@@iterator]` method
3958
3958
  // https://tc39.es/ecma262/#sec-string.prototype-@@iterator
3959
3959
  defineIterator$2(String, 'String', function (iterated) {
3960
- setInternalState$6(this, {
3960
+ setInternalState$7(this, {
3961
3961
  type: STRING_ITERATOR,
3962
3962
  string: toString$9(iterated),
3963
3963
  index: 0
@@ -4575,12 +4575,12 @@ this.Twilio.Conversations = (function (exports) {
4575
4575
  var toIndexedObject$4 = toIndexedObject$c;
4576
4576
  var addToUnscopables$2 = addToUnscopables$3;
4577
4577
  var Iterators = iterators;
4578
- var InternalStateModule$5 = internalState;
4578
+ var InternalStateModule$6 = internalState;
4579
4579
  var defineIterator$1 = defineIterator$3;
4580
4580
 
4581
4581
  var ARRAY_ITERATOR = 'Array Iterator';
4582
- var setInternalState$5 = InternalStateModule$5.set;
4583
- var getInternalState$3 = InternalStateModule$5.getterFor(ARRAY_ITERATOR);
4582
+ var setInternalState$6 = InternalStateModule$6.set;
4583
+ var getInternalState$3 = InternalStateModule$6.getterFor(ARRAY_ITERATOR);
4584
4584
 
4585
4585
  // `Array.prototype.entries` method
4586
4586
  // https://tc39.es/ecma262/#sec-array.prototype.entries
@@ -4593,7 +4593,7 @@ this.Twilio.Conversations = (function (exports) {
4593
4593
  // `CreateArrayIterator` internal method
4594
4594
  // https://tc39.es/ecma262/#sec-createarrayiterator
4595
4595
  var es_array_iterator = defineIterator$1(Array, 'Array', function (iterated, kind) {
4596
- setInternalState$5(this, {
4596
+ setInternalState$6(this, {
4597
4597
  type: ARRAY_ITERATOR,
4598
4598
  target: toIndexedObject$4(iterated), // target
4599
4599
  index: 0, // next index
@@ -4699,7 +4699,7 @@ this.Twilio.Conversations = (function (exports) {
4699
4699
  });
4700
4700
  }
4701
4701
 
4702
- var isObject$b = isObject$p;
4702
+ var isObject$c = isObject$q;
4703
4703
  var setPrototypeOf$4 = objectSetPrototypeOf;
4704
4704
 
4705
4705
  // makes subclassing work correct for wrapped built-ins
@@ -4711,7 +4711,7 @@ this.Twilio.Conversations = (function (exports) {
4711
4711
  // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
4712
4712
  typeof (NewTarget = dummy.constructor) == 'function' &&
4713
4713
  NewTarget !== Wrapper &&
4714
- isObject$b(NewTargetPrototype = NewTarget.prototype) &&
4714
+ isObject$c(NewTargetPrototype = NewTarget.prototype) &&
4715
4715
  NewTargetPrototype !== Wrapper.prototype
4716
4716
  ) setPrototypeOf$4($this, NewTargetPrototype);
4717
4717
  return $this;
@@ -4833,12 +4833,12 @@ this.Twilio.Conversations = (function (exports) {
4833
4833
  redefine$6(global$g, NUMBER, NumberWrapper);
4834
4834
  }
4835
4835
 
4836
- var anObject$6 = anObject$k;
4836
+ var anObject$7 = anObject$l;
4837
4837
 
4838
4838
  // `RegExp.prototype.flags` getter implementation
4839
4839
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
4840
4840
  var regexpFlags$1 = function () {
4841
- var that = anObject$6(this);
4841
+ var that = anObject$7(this);
4842
4842
  var result = '';
4843
4843
  if (that.global) result += 'g';
4844
4844
  if (that.ignoreCase) result += 'i';
@@ -5161,7 +5161,7 @@ this.Twilio.Conversations = (function (exports) {
5161
5161
 
5162
5162
  var fixRegExpWellKnownSymbolLogic$3 = fixRegexpWellKnownSymbolLogic;
5163
5163
  var fails$f = fails$B;
5164
- var anObject$5 = anObject$k;
5164
+ var anObject$6 = anObject$l;
5165
5165
  var toInteger$6 = toInteger$a;
5166
5166
  var toLength$i = toLength$o;
5167
5167
  var toString$6 = toString$d;
@@ -5222,7 +5222,7 @@ this.Twilio.Conversations = (function (exports) {
5222
5222
  // `RegExp.prototype[@@replace]` method
5223
5223
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
5224
5224
  function (string, replaceValue) {
5225
- var rx = anObject$5(this);
5225
+ var rx = anObject$6(this);
5226
5226
  var S = toString$6(string);
5227
5227
 
5228
5228
  if (
@@ -5397,7 +5397,7 @@ this.Twilio.Conversations = (function (exports) {
5397
5397
  var browser$7 = {};
5398
5398
 
5399
5399
  var $$i = _export;
5400
- var isObject$a = isObject$p;
5400
+ var isObject$b = isObject$q;
5401
5401
  var isArray = isArray$4;
5402
5402
  var toAbsoluteIndex$4 = toAbsoluteIndex$6;
5403
5403
  var toLength$h = toLength$o;
@@ -5428,7 +5428,7 @@ this.Twilio.Conversations = (function (exports) {
5428
5428
  // cross-realm fallback
5429
5429
  if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {
5430
5430
  Constructor = undefined;
5431
- } else if (isObject$a(Constructor)) {
5431
+ } else if (isObject$b(Constructor)) {
5432
5432
  Constructor = Constructor[SPECIES];
5433
5433
  if (Constructor === null) Constructor = undefined;
5434
5434
  }
@@ -5446,7 +5446,7 @@ this.Twilio.Conversations = (function (exports) {
5446
5446
  // TODO: Remove from `core-js@4` since it's moved to entry points
5447
5447
 
5448
5448
  var $$h = _export;
5449
- var isObject$9 = isObject$p;
5449
+ var isObject$a = isObject$q;
5450
5450
 
5451
5451
  var DELEGATES_TO_EXEC = function () {
5452
5452
  var execCalled = false;
@@ -5468,7 +5468,7 @@ this.Twilio.Conversations = (function (exports) {
5468
5468
  return nativeTest.call(this, str);
5469
5469
  }
5470
5470
  var result = this.exec(str);
5471
- if (result !== null && !isObject$9(result)) {
5471
+ if (result !== null && !isObject$a(result)) {
5472
5472
  throw new Error('RegExp exec method returned something other than an Object or null');
5473
5473
  }
5474
5474
  return !!result;
@@ -5479,7 +5479,7 @@ this.Twilio.Conversations = (function (exports) {
5479
5479
  var DESCRIPTORS$8 = descriptors;
5480
5480
  var global$c = global$D;
5481
5481
  var has$4 = has$g;
5482
- var isObject$8 = isObject$p;
5482
+ var isObject$9 = isObject$q;
5483
5483
  var defineProperty$7 = objectDefineProperty.f;
5484
5484
  var copyConstructorProperties = copyConstructorProperties$2;
5485
5485
 
@@ -5510,7 +5510,7 @@ this.Twilio.Conversations = (function (exports) {
5510
5510
  defineProperty$7(symbolPrototype, 'description', {
5511
5511
  configurable: true,
5512
5512
  get: function description() {
5513
- var symbol = isObject$8(this) ? this.valueOf() : this;
5513
+ var symbol = isObject$9(this) ? this.valueOf() : this;
5514
5514
  var string = symbolToString.call(symbol);
5515
5515
  if (has$4(EmptyStringDescriptionStore, symbol)) return '';
5516
5516
  var desc = nativeSymbol ? string.slice(7, -1) : string.replace(regexp, '$1');
@@ -5857,14 +5857,14 @@ this.Twilio.Conversations = (function (exports) {
5857
5857
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
5858
5858
  addToUnscopables$1('includes');
5859
5859
 
5860
- var isObject$7 = isObject$p;
5860
+ var isObject$8 = isObject$q;
5861
5861
 
5862
5862
  var floor$5 = Math.floor;
5863
5863
 
5864
5864
  // `Number.isInteger` method implementation
5865
5865
  // https://tc39.es/ecma262/#sec-number.isinteger
5866
5866
  var isInteger$3 = function isInteger(it) {
5867
- return !isObject$7(it) && isFinite(it) && floor$5(it) === it;
5867
+ return !isObject$8(it) && isFinite(it) && floor$5(it) === it;
5868
5868
  };
5869
5869
 
5870
5870
  var $$e = _export;
@@ -10020,7 +10020,7 @@ this.Twilio.Conversations = (function (exports) {
10020
10020
 
10021
10021
  var $$c = _export;
10022
10022
  var hiddenKeys = hiddenKeys$6;
10023
- var isObject$6 = isObject$p;
10023
+ var isObject$7 = isObject$q;
10024
10024
  var has$3 = has$g;
10025
10025
  var defineProperty$4 = objectDefineProperty.f;
10026
10026
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
@@ -10030,7 +10030,7 @@ this.Twilio.Conversations = (function (exports) {
10030
10030
 
10031
10031
  var REQUIRED = false;
10032
10032
  var METADATA = uid$1('meta');
10033
- var id = 0;
10033
+ var id$1 = 0;
10034
10034
 
10035
10035
  // eslint-disable-next-line es/no-object-isextensible -- safe
10036
10036
  var isExtensible = Object.isExtensible || function () {
@@ -10039,14 +10039,14 @@ this.Twilio.Conversations = (function (exports) {
10039
10039
 
10040
10040
  var setMetadata = function (it) {
10041
10041
  defineProperty$4(it, METADATA, { value: {
10042
- objectID: 'O' + id++, // object ID
10042
+ objectID: 'O' + id$1++, // object ID
10043
10043
  weakData: {} // weak collections IDs
10044
10044
  } });
10045
10045
  };
10046
10046
 
10047
10047
  var fastKey$1 = function (it, create) {
10048
10048
  // return a primitive with prefix
10049
- if (!isObject$6(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
10049
+ if (!isObject$7(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
10050
10050
  if (!has$3(it, METADATA)) {
10051
10051
  // can't set metadata to uncaught frozen object
10052
10052
  if (!isExtensible(it)) return 'F';
@@ -10058,7 +10058,7 @@ this.Twilio.Conversations = (function (exports) {
10058
10058
  } return it[METADATA].objectID;
10059
10059
  };
10060
10060
 
10061
- var getWeakData = function (it, create) {
10061
+ var getWeakData$1 = function (it, create) {
10062
10062
  if (!has$3(it, METADATA)) {
10063
10063
  // can't set metadata to uncaught frozen object
10064
10064
  if (!isExtensible(it)) return true;
@@ -10105,7 +10105,7 @@ this.Twilio.Conversations = (function (exports) {
10105
10105
  var meta = internalMetadata.exports = {
10106
10106
  enable: enable,
10107
10107
  fastKey: fastKey$1,
10108
- getWeakData: getWeakData,
10108
+ getWeakData: getWeakData$1,
10109
10109
  onFreeze: onFreeze$1
10110
10110
  };
10111
10111
 
@@ -10116,15 +10116,15 @@ this.Twilio.Conversations = (function (exports) {
10116
10116
  var isForced = isForced_1;
10117
10117
  var redefine$4 = redefine$d.exports;
10118
10118
  var InternalMetadataModule = internalMetadata.exports;
10119
- var iterate$1 = iterate$3;
10120
- var anInstance$5 = anInstance$7;
10121
- var isObject$5 = isObject$p;
10119
+ var iterate$2 = iterate$4;
10120
+ var anInstance$6 = anInstance$8;
10121
+ var isObject$6 = isObject$q;
10122
10122
  var fails$d = fails$B;
10123
10123
  var checkCorrectnessOfIteration$1 = checkCorrectnessOfIteration$4;
10124
10124
  var setToStringTag$3 = setToStringTag$9;
10125
10125
  var inheritIfRequired$1 = inheritIfRequired$3;
10126
10126
 
10127
- var collection$2 = function (CONSTRUCTOR_NAME, wrapper, common) {
10127
+ var collection$3 = function (CONSTRUCTOR_NAME, wrapper, common) {
10128
10128
  var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;
10129
10129
  var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;
10130
10130
  var ADDER = IS_MAP ? 'set' : 'add';
@@ -10140,11 +10140,11 @@ this.Twilio.Conversations = (function (exports) {
10140
10140
  nativeMethod.call(this, value === 0 ? 0 : value);
10141
10141
  return this;
10142
10142
  } : KEY == 'delete' ? function (key) {
10143
- return IS_WEAK && !isObject$5(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
10143
+ return IS_WEAK && !isObject$6(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
10144
10144
  } : KEY == 'get' ? function get(key) {
10145
- return IS_WEAK && !isObject$5(key) ? undefined : nativeMethod.call(this, key === 0 ? 0 : key);
10145
+ return IS_WEAK && !isObject$6(key) ? undefined : nativeMethod.call(this, key === 0 ? 0 : key);
10146
10146
  } : KEY == 'has' ? function has(key) {
10147
- return IS_WEAK && !isObject$5(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
10147
+ return IS_WEAK && !isObject$6(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
10148
10148
  } : function set(key, value) {
10149
10149
  nativeMethod.call(this, key === 0 ? 0 : key, value);
10150
10150
  return this;
@@ -10183,9 +10183,9 @@ this.Twilio.Conversations = (function (exports) {
10183
10183
 
10184
10184
  if (!ACCEPT_ITERABLES) {
10185
10185
  Constructor = wrapper(function (dummy, iterable) {
10186
- anInstance$5(dummy, Constructor, CONSTRUCTOR_NAME);
10186
+ anInstance$6(dummy, Constructor, CONSTRUCTOR_NAME);
10187
10187
  var that = inheritIfRequired$1(new NativeConstructor(), dummy, Constructor);
10188
- if (iterable != undefined) iterate$1(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
10188
+ if (iterable != undefined) iterate$2(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
10189
10189
  return that;
10190
10190
  });
10191
10191
  Constructor.prototype = NativePrototype;
@@ -10216,24 +10216,24 @@ this.Twilio.Conversations = (function (exports) {
10216
10216
 
10217
10217
  var defineProperty$3 = objectDefineProperty.f;
10218
10218
  var create$2 = objectCreate;
10219
- var redefineAll$2 = redefineAll$4;
10219
+ var redefineAll$3 = redefineAll$5;
10220
10220
  var bind$2 = functionBindContext;
10221
- var anInstance$4 = anInstance$7;
10222
- var iterate = iterate$3;
10221
+ var anInstance$5 = anInstance$8;
10222
+ var iterate$1 = iterate$4;
10223
10223
  var defineIterator = defineIterator$3;
10224
10224
  var setSpecies$2 = setSpecies$4;
10225
10225
  var DESCRIPTORS$5 = descriptors;
10226
10226
  var fastKey = internalMetadata.exports.fastKey;
10227
- var InternalStateModule$4 = internalState;
10227
+ var InternalStateModule$5 = internalState;
10228
10228
 
10229
- var setInternalState$4 = InternalStateModule$4.set;
10230
- var internalStateGetterFor = InternalStateModule$4.getterFor;
10229
+ var setInternalState$5 = InternalStateModule$5.set;
10230
+ var internalStateGetterFor$1 = InternalStateModule$5.getterFor;
10231
10231
 
10232
10232
  var collectionStrong$2 = {
10233
10233
  getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
10234
10234
  var C = wrapper(function (that, iterable) {
10235
- anInstance$4(that, C, CONSTRUCTOR_NAME);
10236
- setInternalState$4(that, {
10235
+ anInstance$5(that, C, CONSTRUCTOR_NAME);
10236
+ setInternalState$5(that, {
10237
10237
  type: CONSTRUCTOR_NAME,
10238
10238
  index: create$2(null),
10239
10239
  first: undefined,
@@ -10241,10 +10241,10 @@ this.Twilio.Conversations = (function (exports) {
10241
10241
  size: 0
10242
10242
  });
10243
10243
  if (!DESCRIPTORS$5) that.size = 0;
10244
- if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
10244
+ if (iterable != undefined) iterate$1(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
10245
10245
  });
10246
10246
 
10247
- var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
10247
+ var getInternalState = internalStateGetterFor$1(CONSTRUCTOR_NAME);
10248
10248
 
10249
10249
  var define = function (that, key, value) {
10250
10250
  var state = getInternalState(that);
@@ -10284,7 +10284,7 @@ this.Twilio.Conversations = (function (exports) {
10284
10284
  }
10285
10285
  };
10286
10286
 
10287
- redefineAll$2(C.prototype, {
10287
+ redefineAll$3(C.prototype, {
10288
10288
  // `{ Map, Set }.prototype.clear()` methods
10289
10289
  // https://tc39.es/ecma262/#sec-map.prototype.clear
10290
10290
  // https://tc39.es/ecma262/#sec-set.prototype.clear
@@ -10344,7 +10344,7 @@ this.Twilio.Conversations = (function (exports) {
10344
10344
  }
10345
10345
  });
10346
10346
 
10347
- redefineAll$2(C.prototype, IS_MAP ? {
10347
+ redefineAll$3(C.prototype, IS_MAP ? {
10348
10348
  // `Map.prototype.get(key)` method
10349
10349
  // https://tc39.es/ecma262/#sec-map.prototype.get
10350
10350
  get: function get(key) {
@@ -10372,8 +10372,8 @@ this.Twilio.Conversations = (function (exports) {
10372
10372
  },
10373
10373
  setStrong: function (C, CONSTRUCTOR_NAME, IS_MAP) {
10374
10374
  var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';
10375
- var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);
10376
- var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);
10375
+ var getInternalCollectionState = internalStateGetterFor$1(CONSTRUCTOR_NAME);
10376
+ var getInternalIteratorState = internalStateGetterFor$1(ITERATOR_NAME);
10377
10377
  // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods
10378
10378
  // https://tc39.es/ecma262/#sec-map.prototype.entries
10379
10379
  // https://tc39.es/ecma262/#sec-map.prototype.keys
@@ -10384,7 +10384,7 @@ this.Twilio.Conversations = (function (exports) {
10384
10384
  // https://tc39.es/ecma262/#sec-set.prototype.values
10385
10385
  // https://tc39.es/ecma262/#sec-set.prototype-@@iterator
10386
10386
  defineIterator(C, CONSTRUCTOR_NAME, function (iterated, kind) {
10387
- setInternalState$4(this, {
10387
+ setInternalState$5(this, {
10388
10388
  type: ITERATOR_NAME,
10389
10389
  target: iterated,
10390
10390
  state: getInternalCollectionState(iterated),
@@ -10416,12 +10416,12 @@ this.Twilio.Conversations = (function (exports) {
10416
10416
  }
10417
10417
  };
10418
10418
 
10419
- var collection$1 = collection$2;
10419
+ var collection$2 = collection$3;
10420
10420
  var collectionStrong$1 = collectionStrong$2;
10421
10421
 
10422
10422
  // `Map` constructor
10423
10423
  // https://tc39.es/ecma262/#sec-map-objects
10424
- collection$1('Map', function (init) {
10424
+ collection$2('Map', function (init) {
10425
10425
  return function Map() { return init(this, arguments.length ? arguments[0] : undefined); };
10426
10426
  }, collectionStrong$1);
10427
10427
 
@@ -11553,7 +11553,7 @@ this.Twilio.Conversations = (function (exports) {
11553
11553
  var require$$8 = /*@__PURE__*/getAugmentedNamespace(regenerator);
11554
11554
 
11555
11555
  var redefine$3 = redefine$d.exports;
11556
- var anObject$4 = anObject$k;
11556
+ var anObject$5 = anObject$l;
11557
11557
  var $toString$2 = toString$d;
11558
11558
  var fails$c = fails$B;
11559
11559
  var flags = regexpFlags$1;
@@ -11570,7 +11570,7 @@ this.Twilio.Conversations = (function (exports) {
11570
11570
  // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
11571
11571
  if (NOT_GENERIC || INCORRECT_NAME) {
11572
11572
  redefine$3(RegExp.prototype, TO_STRING, function toString() {
11573
- var R = anObject$4(this);
11573
+ var R = anObject$5(this);
11574
11574
  var p = $toString$2(R.source);
11575
11575
  var rf = R.flags;
11576
11576
  var f = $toString$2(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype) ? flags.call(R) : rf);
@@ -11578,12 +11578,12 @@ this.Twilio.Conversations = (function (exports) {
11578
11578
  }, { unsafe: true });
11579
11579
  }
11580
11580
 
11581
- var collection = collection$2;
11581
+ var collection$1 = collection$3;
11582
11582
  var collectionStrong = collectionStrong$2;
11583
11583
 
11584
11584
  // `Set` constructor
11585
11585
  // https://tc39.es/ecma262/#sec-set-objects
11586
- collection('Set', function (init) {
11586
+ collection$1('Set', function (init) {
11587
11587
  return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };
11588
11588
  }, collectionStrong);
11589
11589
 
@@ -12521,7 +12521,7 @@ this.Twilio.Conversations = (function (exports) {
12521
12521
  var NATIVE_ARRAY_BUFFER$1 = arrayBufferNative;
12522
12522
  var DESCRIPTORS$4 = descriptors;
12523
12523
  var global$a = global$D;
12524
- var isObject$4 = isObject$p;
12524
+ var isObject$5 = isObject$q;
12525
12525
  var has$2 = has$g;
12526
12526
  var classof$3 = classof$9;
12527
12527
  var createNonEnumerableProperty$2 = createNonEnumerableProperty$c;
@@ -12567,7 +12567,7 @@ this.Twilio.Conversations = (function (exports) {
12567
12567
  };
12568
12568
 
12569
12569
  var isView = function isView(it) {
12570
- if (!isObject$4(it)) return false;
12570
+ if (!isObject$5(it)) return false;
12571
12571
  var klass = classof$3(it);
12572
12572
  return klass === 'DataView'
12573
12573
  || has$2(TypedArrayConstructorsList, klass)
@@ -12575,7 +12575,7 @@ this.Twilio.Conversations = (function (exports) {
12575
12575
  };
12576
12576
 
12577
12577
  var isTypedArray$1 = function (it) {
12578
- if (!isObject$4(it)) return false;
12578
+ if (!isObject$5(it)) return false;
12579
12579
  var klass = classof$3(it);
12580
12580
  return has$2(TypedArrayConstructorsList, klass)
12581
12581
  || has$2(BigIntArrayConstructorsList, klass);
@@ -12670,7 +12670,7 @@ this.Twilio.Conversations = (function (exports) {
12670
12670
  if (DESCRIPTORS$4 && !has$2(TypedArrayPrototype$1, TO_STRING_TAG)) {
12671
12671
  TYPED_ARRAY_TAG_REQIRED = true;
12672
12672
  defineProperty$2(TypedArrayPrototype$1, TO_STRING_TAG, { get: function () {
12673
- return isObject$4(this) ? this[TYPED_ARRAY_TAG$1] : undefined;
12673
+ return isObject$5(this) ? this[TYPED_ARRAY_TAG$1] : undefined;
12674
12674
  } });
12675
12675
  for (NAME in TypedArrayConstructorsList) if (global$a[NAME]) {
12676
12676
  createNonEnumerableProperty$2(global$a[NAME], TYPED_ARRAY_TAG$1, NAME);
@@ -12836,9 +12836,9 @@ this.Twilio.Conversations = (function (exports) {
12836
12836
  var DESCRIPTORS$3 = descriptors;
12837
12837
  var NATIVE_ARRAY_BUFFER = arrayBufferNative;
12838
12838
  var createNonEnumerableProperty$1 = createNonEnumerableProperty$c;
12839
- var redefineAll$1 = redefineAll$4;
12839
+ var redefineAll$2 = redefineAll$5;
12840
12840
  var fails$a = fails$B;
12841
- var anInstance$3 = anInstance$7;
12841
+ var anInstance$4 = anInstance$8;
12842
12842
  var toInteger$4 = toInteger$a;
12843
12843
  var toLength$e = toLength$o;
12844
12844
  var toIndex$1 = toIndex$2;
@@ -12849,10 +12849,10 @@ this.Twilio.Conversations = (function (exports) {
12849
12849
  var defineProperty$1 = objectDefineProperty.f;
12850
12850
  var arrayFill = arrayFill$1;
12851
12851
  var setToStringTag$2 = setToStringTag$9;
12852
- var InternalStateModule$3 = internalState;
12852
+ var InternalStateModule$4 = internalState;
12853
12853
 
12854
- var getInternalState$1 = InternalStateModule$3.get;
12855
- var setInternalState$3 = InternalStateModule$3.set;
12854
+ var getInternalState$1 = InternalStateModule$4.get;
12855
+ var setInternalState$4 = InternalStateModule$4.set;
12856
12856
  var ARRAY_BUFFER$1 = 'ArrayBuffer';
12857
12857
  var DATA_VIEW = 'DataView';
12858
12858
  var PROTOTYPE = 'prototype';
@@ -12918,9 +12918,9 @@ this.Twilio.Conversations = (function (exports) {
12918
12918
 
12919
12919
  if (!NATIVE_ARRAY_BUFFER) {
12920
12920
  $ArrayBuffer = function ArrayBuffer(length) {
12921
- anInstance$3(this, $ArrayBuffer, ARRAY_BUFFER$1);
12921
+ anInstance$4(this, $ArrayBuffer, ARRAY_BUFFER$1);
12922
12922
  var byteLength = toIndex$1(length);
12923
- setInternalState$3(this, {
12923
+ setInternalState$4(this, {
12924
12924
  bytes: arrayFill.call(new Array(byteLength), 0),
12925
12925
  byteLength: byteLength
12926
12926
  });
@@ -12928,14 +12928,14 @@ this.Twilio.Conversations = (function (exports) {
12928
12928
  };
12929
12929
 
12930
12930
  $DataView = function DataView(buffer, byteOffset, byteLength) {
12931
- anInstance$3(this, $DataView, DATA_VIEW);
12932
- anInstance$3(buffer, $ArrayBuffer, DATA_VIEW);
12931
+ anInstance$4(this, $DataView, DATA_VIEW);
12932
+ anInstance$4(buffer, $ArrayBuffer, DATA_VIEW);
12933
12933
  var bufferLength = getInternalState$1(buffer).byteLength;
12934
12934
  var offset = toInteger$4(byteOffset);
12935
12935
  if (offset < 0 || offset > bufferLength) throw RangeError$2('Wrong offset');
12936
12936
  byteLength = byteLength === undefined ? bufferLength - offset : toLength$e(byteLength);
12937
12937
  if (offset + byteLength > bufferLength) throw RangeError$2(WRONG_LENGTH$1);
12938
- setInternalState$3(this, {
12938
+ setInternalState$4(this, {
12939
12939
  buffer: buffer,
12940
12940
  byteLength: byteLength,
12941
12941
  byteOffset: offset
@@ -12954,7 +12954,7 @@ this.Twilio.Conversations = (function (exports) {
12954
12954
  addGetter$1($DataView, 'byteOffset');
12955
12955
  }
12956
12956
 
12957
- redefineAll$1($DataView[PROTOTYPE], {
12957
+ redefineAll$2($DataView[PROTOTYPE], {
12958
12958
  getInt8: function getInt8(byteOffset) {
12959
12959
  return get(this, 1, byteOffset)[0] << 24 >> 24;
12960
12960
  },
@@ -13020,7 +13020,7 @@ this.Twilio.Conversations = (function (exports) {
13020
13020
  })) {
13021
13021
  /* eslint-enable no-new -- required for testing */
13022
13022
  $ArrayBuffer = function ArrayBuffer(length) {
13023
- anInstance$3(this, $ArrayBuffer);
13023
+ anInstance$4(this, $ArrayBuffer);
13024
13024
  return new NativeArrayBuffer$1(toIndex$1(length));
13025
13025
  };
13026
13026
  var ArrayBufferPrototype = $ArrayBuffer[PROTOTYPE] = NativeArrayBuffer$1[PROTOTYPE];
@@ -13042,7 +13042,7 @@ this.Twilio.Conversations = (function (exports) {
13042
13042
  var $setInt8 = $DataViewPrototype.setInt8;
13043
13043
  testView.setInt8(0, 2147483648);
13044
13044
  testView.setInt8(1, 2147483649);
13045
- if (testView.getInt8(0) || !testView.getInt8(1)) redefineAll$1($DataViewPrototype, {
13045
+ if (testView.getInt8(0) || !testView.getInt8(1)) redefineAll$2($DataViewPrototype, {
13046
13046
  setInt8: function setInt8(byteOffset, value) {
13047
13047
  $setInt8.call(this, byteOffset, value << 24 >> 24);
13048
13048
  },
@@ -13116,7 +13116,7 @@ this.Twilio.Conversations = (function (exports) {
13116
13116
  var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = typedArrayConstructorsRequireWrappers;
13117
13117
  var ArrayBufferViewCore$o = arrayBufferViewCore;
13118
13118
  var ArrayBufferModule = arrayBuffer;
13119
- var anInstance$2 = anInstance$7;
13119
+ var anInstance$3 = anInstance$8;
13120
13120
  var createPropertyDescriptor$1 = createPropertyDescriptor$7;
13121
13121
  var createNonEnumerableProperty = createNonEnumerableProperty$c;
13122
13122
  var isInteger$1 = isInteger$3;
@@ -13126,7 +13126,7 @@ this.Twilio.Conversations = (function (exports) {
13126
13126
  var toPropertyKey = toPropertyKey$5;
13127
13127
  var has$1 = has$g;
13128
13128
  var classof$2 = classof$9;
13129
- var isObject$3 = isObject$p;
13129
+ var isObject$4 = isObject$q;
13130
13130
  var isSymbol = isSymbol$6;
13131
13131
  var create$1 = objectCreate;
13132
13132
  var setPrototypeOf = objectSetPrototypeOf;
@@ -13136,11 +13136,11 @@ this.Twilio.Conversations = (function (exports) {
13136
13136
  var setSpecies$1 = setSpecies$4;
13137
13137
  var definePropertyModule = objectDefineProperty;
13138
13138
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
13139
- var InternalStateModule$2 = internalState;
13139
+ var InternalStateModule$3 = internalState;
13140
13140
  var inheritIfRequired = inheritIfRequired$3;
13141
13141
 
13142
- var getInternalState = InternalStateModule$2.get;
13143
- var setInternalState$2 = InternalStateModule$2.set;
13142
+ var getInternalState = InternalStateModule$3.get;
13143
+ var setInternalState$3 = InternalStateModule$3.set;
13144
13144
  var nativeDefineProperty = definePropertyModule.f;
13145
13145
  var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
13146
13146
  var round = Math.round;
@@ -13194,7 +13194,7 @@ this.Twilio.Conversations = (function (exports) {
13194
13194
  var wrappedDefineProperty = function defineProperty(target, key, descriptor) {
13195
13195
  key = toPropertyKey(key);
13196
13196
  if (isTypedArrayIndex(target, key)
13197
- && isObject$3(descriptor)
13197
+ && isObject$4(descriptor)
13198
13198
  && has$1(descriptor, 'value')
13199
13199
  && !has$1(descriptor, 'get')
13200
13200
  && !has$1(descriptor, 'set')
@@ -13258,11 +13258,11 @@ this.Twilio.Conversations = (function (exports) {
13258
13258
 
13259
13259
  if (!NATIVE_ARRAY_BUFFER_VIEWS) {
13260
13260
  TypedArrayConstructor = wrapper(function (that, data, offset, $length) {
13261
- anInstance$2(that, TypedArrayConstructor, CONSTRUCTOR_NAME);
13261
+ anInstance$3(that, TypedArrayConstructor, CONSTRUCTOR_NAME);
13262
13262
  var index = 0;
13263
13263
  var byteOffset = 0;
13264
13264
  var buffer, byteLength, length;
13265
- if (!isObject$3(data)) {
13265
+ if (!isObject$4(data)) {
13266
13266
  length = toIndex(data);
13267
13267
  byteLength = length * BYTES;
13268
13268
  buffer = new ArrayBuffer$2(byteLength);
@@ -13284,7 +13284,7 @@ this.Twilio.Conversations = (function (exports) {
13284
13284
  } else {
13285
13285
  return typedArrayFrom.call(TypedArrayConstructor, data);
13286
13286
  }
13287
- setInternalState$2(that, {
13287
+ setInternalState$3(that, {
13288
13288
  buffer: buffer,
13289
13289
  byteOffset: byteOffset,
13290
13290
  byteLength: byteLength,
@@ -13298,9 +13298,9 @@ this.Twilio.Conversations = (function (exports) {
13298
13298
  TypedArrayConstructorPrototype = TypedArrayConstructor.prototype = create$1(TypedArrayPrototype);
13299
13299
  } else if (TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS) {
13300
13300
  TypedArrayConstructor = wrapper(function (dummy, data, typedArrayOffset, $length) {
13301
- anInstance$2(dummy, TypedArrayConstructor, CONSTRUCTOR_NAME);
13301
+ anInstance$3(dummy, TypedArrayConstructor, CONSTRUCTOR_NAME);
13302
13302
  return inheritIfRequired(function () {
13303
- if (!isObject$3(data)) return new NativeTypedArrayConstructor(toIndex(data));
13303
+ if (!isObject$4(data)) return new NativeTypedArrayConstructor(toIndex(data));
13304
13304
  if (isArrayBuffer(data)) return $length !== undefined
13305
13305
  ? new NativeTypedArrayConstructor(data, toOffset$1(typedArrayOffset, BYTES), $length)
13306
13306
  : typedArrayOffset !== undefined
@@ -13999,7 +13999,7 @@ this.Twilio.Conversations = (function (exports) {
13999
13999
  // https://tc39.es/ecma262/#sec-%typedarray%.prototype.tostring
14000
14000
  exportTypedArrayMethod$1('toString', arrayToString, IS_NOT_ARRAY_METHOD);
14001
14001
 
14002
- var isObject$2 = isObject$p;
14002
+ var isObject$3 = isObject$q;
14003
14003
  var classof$1 = classofRaw$1;
14004
14004
  var wellKnownSymbol$3 = wellKnownSymbol$s;
14005
14005
 
@@ -14009,12 +14009,12 @@ this.Twilio.Conversations = (function (exports) {
14009
14009
  // https://tc39.es/ecma262/#sec-isregexp
14010
14010
  var isRegexp = function (it) {
14011
14011
  var isRegExp;
14012
- return isObject$2(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$1(it) == 'RegExp');
14012
+ return isObject$3(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$1(it) == 'RegExp');
14013
14013
  };
14014
14014
 
14015
14015
  var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic;
14016
14016
  var isRegExp$1 = isRegexp;
14017
- var anObject$3 = anObject$k;
14017
+ var anObject$4 = anObject$l;
14018
14018
  var requireObjectCoercible$4 = requireObjectCoercible$a;
14019
14019
  var speciesConstructor = speciesConstructor$3;
14020
14020
  var advanceStringIndex$1 = advanceStringIndex$3;
@@ -14112,7 +14112,7 @@ this.Twilio.Conversations = (function (exports) {
14112
14112
  // NOTE: This cannot be properly polyfilled in engines that don't support
14113
14113
  // the 'y' flag.
14114
14114
  function (string, limit) {
14115
- var rx = anObject$3(this);
14115
+ var rx = anObject$4(this);
14116
14116
  var S = toString$5(string);
14117
14117
  var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
14118
14118
 
@@ -15447,7 +15447,7 @@ this.Twilio.Conversations = (function (exports) {
15447
15447
  })(platform$1, platform$1.exports);
15448
15448
 
15449
15449
  var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
15450
- var anObject$2 = anObject$k;
15450
+ var anObject$3 = anObject$l;
15451
15451
  var toLength$4 = toLength$o;
15452
15452
  var toString$4 = toString$d;
15453
15453
  var requireObjectCoercible$3 = requireObjectCoercible$a;
@@ -15467,7 +15467,7 @@ this.Twilio.Conversations = (function (exports) {
15467
15467
  // `RegExp.prototype[@@match]` method
15468
15468
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@match
15469
15469
  function (string) {
15470
- var rx = anObject$2(this);
15470
+ var rx = anObject$3(this);
15471
15471
  var S = toString$4(string);
15472
15472
  var res = maybeCallNative(nativeMatch, rx, S);
15473
15473
 
@@ -15500,7 +15500,7 @@ this.Twilio.Conversations = (function (exports) {
15500
15500
  };
15501
15501
 
15502
15502
  var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
15503
- var anObject$1 = anObject$k;
15503
+ var anObject$2 = anObject$l;
15504
15504
  var requireObjectCoercible$2 = requireObjectCoercible$a;
15505
15505
  var sameValue = sameValue$1;
15506
15506
  var toString$3 = toString$d;
@@ -15519,7 +15519,7 @@ this.Twilio.Conversations = (function (exports) {
15519
15519
  // `RegExp.prototype[@@search]` method
15520
15520
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@search
15521
15521
  function (string) {
15522
- var rx = anObject$1(this);
15522
+ var rx = anObject$2(this);
15523
15523
  var S = toString$3(string);
15524
15524
  var res = maybeCallNative(nativeSearch, rx, S);
15525
15525
 
@@ -32349,16 +32349,16 @@ this.Twilio.Conversations = (function (exports) {
32349
32349
  var getBuiltIn = getBuiltIn$a;
32350
32350
  var USE_NATIVE_URL$1 = nativeUrl;
32351
32351
  var redefine$1 = redefine$d.exports;
32352
- var redefineAll = redefineAll$4;
32352
+ var redefineAll$1 = redefineAll$5;
32353
32353
  var setToStringTag$1 = setToStringTag$9;
32354
32354
  var createIteratorConstructor = createIteratorConstructor$2;
32355
- var InternalStateModule$1 = internalState;
32356
- var anInstance$1 = anInstance$7;
32355
+ var InternalStateModule$2 = internalState;
32356
+ var anInstance$2 = anInstance$8;
32357
32357
  var hasOwn = has$g;
32358
32358
  var bind = functionBindContext;
32359
32359
  var classof = classof$9;
32360
- var anObject = anObject$k;
32361
- var isObject$1 = isObject$p;
32360
+ var anObject$1 = anObject$l;
32361
+ var isObject$2 = isObject$q;
32362
32362
  var $toString$1 = toString$d;
32363
32363
  var create = objectCreate;
32364
32364
  var createPropertyDescriptor = createPropertyDescriptor$7;
@@ -32373,9 +32373,9 @@ this.Twilio.Conversations = (function (exports) {
32373
32373
  var ITERATOR = wellKnownSymbol('iterator');
32374
32374
  var URL_SEARCH_PARAMS = 'URLSearchParams';
32375
32375
  var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
32376
- var setInternalState$1 = InternalStateModule$1.set;
32377
- var getInternalParamsState = InternalStateModule$1.getterFor(URL_SEARCH_PARAMS);
32378
- var getInternalIteratorState = InternalStateModule$1.getterFor(URL_SEARCH_PARAMS_ITERATOR);
32376
+ var setInternalState$2 = InternalStateModule$2.set;
32377
+ var getInternalParamsState = InternalStateModule$2.getterFor(URL_SEARCH_PARAMS);
32378
+ var getInternalIteratorState = InternalStateModule$2.getterFor(URL_SEARCH_PARAMS_ITERATOR);
32379
32379
 
32380
32380
  var plus = /\+/g;
32381
32381
  var sequences = Array(4);
@@ -32405,7 +32405,7 @@ this.Twilio.Conversations = (function (exports) {
32405
32405
  }
32406
32406
  };
32407
32407
 
32408
- var find = /[!'()~]|%20/g;
32408
+ var find$1 = /[!'()~]|%20/g;
32409
32409
 
32410
32410
  var replace = {
32411
32411
  '!': '%21',
@@ -32421,7 +32421,7 @@ this.Twilio.Conversations = (function (exports) {
32421
32421
  };
32422
32422
 
32423
32423
  var serialize = function (it) {
32424
- return encodeURIComponent(it).replace(find, replacer);
32424
+ return encodeURIComponent(it).replace(find$1, replacer);
32425
32425
  };
32426
32426
 
32427
32427
  var parseSearchParams = function (result, query) {
@@ -32452,7 +32452,7 @@ this.Twilio.Conversations = (function (exports) {
32452
32452
  };
32453
32453
 
32454
32454
  var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
32455
- setInternalState$1(this, {
32455
+ setInternalState$2(this, {
32456
32456
  type: URL_SEARCH_PARAMS_ITERATOR,
32457
32457
  iterator: getIterator(getInternalParamsState(params).entries),
32458
32458
  kind: kind
@@ -32470,13 +32470,13 @@ this.Twilio.Conversations = (function (exports) {
32470
32470
  // `URLSearchParams` constructor
32471
32471
  // https://url.spec.whatwg.org/#interface-urlsearchparams
32472
32472
  var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
32473
- anInstance$1(this, URLSearchParamsConstructor, URL_SEARCH_PARAMS);
32473
+ anInstance$2(this, URLSearchParamsConstructor, URL_SEARCH_PARAMS);
32474
32474
  var init = arguments.length > 0 ? arguments[0] : undefined;
32475
32475
  var that = this;
32476
32476
  var entries = [];
32477
32477
  var iteratorMethod, iterator, next, step, entryIterator, entryNext, first, second, key;
32478
32478
 
32479
- setInternalState$1(that, {
32479
+ setInternalState$2(that, {
32480
32480
  type: URL_SEARCH_PARAMS,
32481
32481
  entries: entries,
32482
32482
  updateURL: function () { /* empty */ },
@@ -32484,13 +32484,13 @@ this.Twilio.Conversations = (function (exports) {
32484
32484
  });
32485
32485
 
32486
32486
  if (init !== undefined) {
32487
- if (isObject$1(init)) {
32487
+ if (isObject$2(init)) {
32488
32488
  iteratorMethod = getIteratorMethod(init);
32489
32489
  if (typeof iteratorMethod === 'function') {
32490
32490
  iterator = getIterator(init, iteratorMethod);
32491
32491
  next = iterator.next;
32492
32492
  while (!(step = next.call(iterator)).done) {
32493
- entryIterator = getIterator(anObject(step.value));
32493
+ entryIterator = getIterator(anObject$1(step.value));
32494
32494
  entryNext = entryIterator.next;
32495
32495
  if (
32496
32496
  (first = entryNext.call(entryIterator)).done ||
@@ -32511,7 +32511,7 @@ this.Twilio.Conversations = (function (exports) {
32511
32511
 
32512
32512
  var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
32513
32513
 
32514
- redefineAll(URLSearchParamsPrototype, {
32514
+ redefineAll$1(URLSearchParamsPrototype, {
32515
32515
  // `URLSearchParams.prototype.append` method
32516
32516
  // https://url.spec.whatwg.org/#dom-urlsearchparams-append
32517
32517
  append: function append(name, value) {
@@ -32666,7 +32666,7 @@ this.Twilio.Conversations = (function (exports) {
32666
32666
  // Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
32667
32667
  if (!USE_NATIVE_URL$1 && typeof Headers == 'function') {
32668
32668
  var wrapRequestOptions = function (init) {
32669
- if (isObject$1(init)) {
32669
+ if (isObject$2(init)) {
32670
32670
  var body = init.body;
32671
32671
  var headers;
32672
32672
  if (classof(body) === URL_SEARCH_PARAMS) {
@@ -32692,7 +32692,7 @@ this.Twilio.Conversations = (function (exports) {
32692
32692
 
32693
32693
  if (typeof NativeRequest == 'function') {
32694
32694
  var RequestConstructor = function Request(input /* , init */) {
32695
- anInstance$1(this, RequestConstructor, 'Request');
32695
+ anInstance$2(this, RequestConstructor, 'Request');
32696
32696
  return new NativeRequest(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
32697
32697
  };
32698
32698
 
@@ -32718,7 +32718,7 @@ this.Twilio.Conversations = (function (exports) {
32718
32718
  var global$2 = global$D;
32719
32719
  var defineProperties = objectDefineProperties;
32720
32720
  var redefine = redefine$d.exports;
32721
- var anInstance = anInstance$7;
32721
+ var anInstance$1 = anInstance$8;
32722
32722
  var has = has$g;
32723
32723
  var assign = objectAssign;
32724
32724
  var arrayFrom = arrayFrom$1;
@@ -32727,13 +32727,13 @@ this.Twilio.Conversations = (function (exports) {
32727
32727
  var $toString = toString$d;
32728
32728
  var setToStringTag = setToStringTag$9;
32729
32729
  var URLSearchParamsModule = web_urlSearchParams;
32730
- var InternalStateModule = internalState;
32730
+ var InternalStateModule$1 = internalState;
32731
32731
 
32732
32732
  var NativeURL = global$2.URL;
32733
32733
  var URLSearchParams$1 = URLSearchParamsModule.URLSearchParams;
32734
32734
  var getInternalSearchParamsState = URLSearchParamsModule.getState;
32735
- var setInternalState = InternalStateModule.set;
32736
- var getInternalURLState = InternalStateModule.getterFor('URL');
32735
+ var setInternalState$1 = InternalStateModule$1.set;
32736
+ var getInternalURLState = InternalStateModule$1.getterFor('URL');
32737
32737
  var floor = Math.floor;
32738
32738
  var pow = Math.pow;
32739
32739
 
@@ -33445,10 +33445,10 @@ this.Twilio.Conversations = (function (exports) {
33445
33445
  // `URL` constructor
33446
33446
  // https://url.spec.whatwg.org/#url-class
33447
33447
  var URLConstructor = function URL(url /* , base */) {
33448
- var that = anInstance(this, URLConstructor, 'URL');
33448
+ var that = anInstance$1(this, URLConstructor, 'URL');
33449
33449
  var base = arguments.length > 1 ? arguments[1] : undefined;
33450
33450
  var urlString = $toString(url);
33451
- var state = setInternalState(that, { type: 'URL' });
33451
+ var state = setInternalState$1(that, { type: 'URL' });
33452
33452
  var baseState, failure;
33453
33453
  if (base !== undefined) {
33454
33454
  if (base instanceof URLConstructor) baseState = getInternalURLState(base);
@@ -34433,6 +34433,24 @@ this.Twilio.Conversations = (function (exports) {
34433
34433
  isMultipartUpstream: (_data$is_multipart_up = data.is_multipart_upstream) !== null && _data$is_multipart_up !== void 0 ? _data$is_multipart_up : false
34434
34434
  };
34435
34435
  }
34436
+ /**
34437
+ * @internal
34438
+ * This payload is compatible with Conversations' media object _state().
34439
+ */
34440
+
34441
+ }, {
34442
+ key: "_state",
34443
+ value: function _state() {
34444
+ var _this$state$filename;
34445
+
34446
+ return {
34447
+ sid: this.state.sid,
34448
+ category: this.state.category,
34449
+ filename: (_this$state$filename = this.state.filename) !== null && _this$state$filename !== void 0 ? _this$state$filename : null,
34450
+ contentType: this.state.contentType,
34451
+ size: this.state.size
34452
+ };
34453
+ }
34436
34454
  }]);
34437
34455
 
34438
34456
  return Media;
@@ -34867,7 +34885,7 @@ this.Twilio.Conversations = (function (exports) {
34867
34885
  return Network;
34868
34886
  }();
34869
34887
 
34870
- var version = "0.6.5";
34888
+ var version = "0.6.6-rc.1";
34871
34889
 
34872
34890
  var _class;
34873
34891
 
@@ -36215,6 +36233,141 @@ this.Twilio.Conversations = (function (exports) {
36215
36233
  }
36216
36234
  });
36217
36235
 
36236
+ var redefineAll = redefineAll$5;
36237
+ var getWeakData = internalMetadata.exports.getWeakData;
36238
+ var anObject = anObject$l;
36239
+ var isObject$1 = isObject$q;
36240
+ var anInstance = anInstance$8;
36241
+ var iterate = iterate$4;
36242
+ var ArrayIterationModule = arrayIteration;
36243
+ var $has = has$g;
36244
+ var InternalStateModule = internalState;
36245
+
36246
+ var setInternalState = InternalStateModule.set;
36247
+ var internalStateGetterFor = InternalStateModule.getterFor;
36248
+ var find = ArrayIterationModule.find;
36249
+ var findIndex = ArrayIterationModule.findIndex;
36250
+ var id = 0;
36251
+
36252
+ // fallback for uncaught frozen keys
36253
+ var uncaughtFrozenStore = function (store) {
36254
+ return store.frozen || (store.frozen = new UncaughtFrozenStore());
36255
+ };
36256
+
36257
+ var UncaughtFrozenStore = function () {
36258
+ this.entries = [];
36259
+ };
36260
+
36261
+ var findUncaughtFrozen = function (store, key) {
36262
+ return find(store.entries, function (it) {
36263
+ return it[0] === key;
36264
+ });
36265
+ };
36266
+
36267
+ UncaughtFrozenStore.prototype = {
36268
+ get: function (key) {
36269
+ var entry = findUncaughtFrozen(this, key);
36270
+ if (entry) return entry[1];
36271
+ },
36272
+ has: function (key) {
36273
+ return !!findUncaughtFrozen(this, key);
36274
+ },
36275
+ set: function (key, value) {
36276
+ var entry = findUncaughtFrozen(this, key);
36277
+ if (entry) entry[1] = value;
36278
+ else this.entries.push([key, value]);
36279
+ },
36280
+ 'delete': function (key) {
36281
+ var index = findIndex(this.entries, function (it) {
36282
+ return it[0] === key;
36283
+ });
36284
+ if (~index) this.entries.splice(index, 1);
36285
+ return !!~index;
36286
+ }
36287
+ };
36288
+
36289
+ var collectionWeak$1 = {
36290
+ getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
36291
+ var C = wrapper(function (that, iterable) {
36292
+ anInstance(that, C, CONSTRUCTOR_NAME);
36293
+ setInternalState(that, {
36294
+ type: CONSTRUCTOR_NAME,
36295
+ id: id++,
36296
+ frozen: undefined
36297
+ });
36298
+ if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
36299
+ });
36300
+
36301
+ var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
36302
+
36303
+ var define = function (that, key, value) {
36304
+ var state = getInternalState(that);
36305
+ var data = getWeakData(anObject(key), true);
36306
+ if (data === true) uncaughtFrozenStore(state).set(key, value);
36307
+ else data[state.id] = value;
36308
+ return that;
36309
+ };
36310
+
36311
+ redefineAll(C.prototype, {
36312
+ // `{ WeakMap, WeakSet }.prototype.delete(key)` methods
36313
+ // https://tc39.es/ecma262/#sec-weakmap.prototype.delete
36314
+ // https://tc39.es/ecma262/#sec-weakset.prototype.delete
36315
+ 'delete': function (key) {
36316
+ var state = getInternalState(this);
36317
+ if (!isObject$1(key)) return false;
36318
+ var data = getWeakData(key);
36319
+ if (data === true) return uncaughtFrozenStore(state)['delete'](key);
36320
+ return data && $has(data, state.id) && delete data[state.id];
36321
+ },
36322
+ // `{ WeakMap, WeakSet }.prototype.has(key)` methods
36323
+ // https://tc39.es/ecma262/#sec-weakmap.prototype.has
36324
+ // https://tc39.es/ecma262/#sec-weakset.prototype.has
36325
+ has: function has(key) {
36326
+ var state = getInternalState(this);
36327
+ if (!isObject$1(key)) return false;
36328
+ var data = getWeakData(key);
36329
+ if (data === true) return uncaughtFrozenStore(state).has(key);
36330
+ return data && $has(data, state.id);
36331
+ }
36332
+ });
36333
+
36334
+ redefineAll(C.prototype, IS_MAP ? {
36335
+ // `WeakMap.prototype.get(key)` method
36336
+ // https://tc39.es/ecma262/#sec-weakmap.prototype.get
36337
+ get: function get(key) {
36338
+ var state = getInternalState(this);
36339
+ if (isObject$1(key)) {
36340
+ var data = getWeakData(key);
36341
+ if (data === true) return uncaughtFrozenStore(state).get(key);
36342
+ return data ? data[state.id] : undefined;
36343
+ }
36344
+ },
36345
+ // `WeakMap.prototype.set(key, value)` method
36346
+ // https://tc39.es/ecma262/#sec-weakmap.prototype.set
36347
+ set: function set(key, value) {
36348
+ return define(this, key, value);
36349
+ }
36350
+ } : {
36351
+ // `WeakSet.prototype.add(value)` method
36352
+ // https://tc39.es/ecma262/#sec-weakset.prototype.add
36353
+ add: function add(value) {
36354
+ return define(this, value, true);
36355
+ }
36356
+ });
36357
+
36358
+ return C;
36359
+ }
36360
+ };
36361
+
36362
+ var collection = collection$3;
36363
+ var collectionWeak = collectionWeak$1;
36364
+
36365
+ // `WeakSet` constructor
36366
+ // https://tc39.es/ecma262/#sec-weakset-constructor
36367
+ collection('WeakSet', function (init) {
36368
+ return function WeakSet() { return init(this, arguments.length ? arguments[0] : undefined); };
36369
+ }, collectionWeak);
36370
+
36218
36371
  /**
36219
36372
  * Represents a media information for a message in a conversation.
36220
36373
  */
@@ -36224,6 +36377,8 @@ this.Twilio.Conversations = (function (exports) {
36224
36377
  * @internal
36225
36378
  */
36226
36379
  function Media(data, services) {
36380
+ var _data$filename;
36381
+
36227
36382
  _classCallCheck$4(this, Media);
36228
36383
 
36229
36384
  _defineProperty$3(this, "mcsMedia", null);
@@ -36237,7 +36392,7 @@ this.Twilio.Conversations = (function (exports) {
36237
36392
  this.state = {
36238
36393
  sid: data.sid,
36239
36394
  category: data.category,
36240
- filename: data.filename,
36395
+ filename: (_data$filename = data.filename) !== null && _data$filename !== void 0 ? _data$filename : null,
36241
36396
  contentType: data.contentType,
36242
36397
  size: data.size
36243
36398
  };
@@ -36310,10 +36465,12 @@ this.Twilio.Conversations = (function (exports) {
36310
36465
  while (1) {
36311
36466
  switch (_context.prev = _context.next) {
36312
36467
  case 0:
36313
- fetchMediaRequest = _this._fetchMcsMedia();
36468
+ fetchMediaRequest = _this.mcsMedia ? undefined : _this._fetchMcsMedia();
36314
36469
  contentUrlRequest = (_this$mcsMedia = _this.mcsMedia) === null || _this$mcsMedia === void 0 ? void 0 : _this$mcsMedia.getContentUrl();
36315
36470
  onCancel(function () {
36316
- fetchMediaRequest.cancel();
36471
+ if (fetchMediaRequest) {
36472
+ fetchMediaRequest.cancel();
36473
+ }
36317
36474
 
36318
36475
  if (contentUrlRequest) {
36319
36476
  contentUrlRequest.cancel();
@@ -36321,7 +36478,7 @@ this.Twilio.Conversations = (function (exports) {
36321
36478
  });
36322
36479
  _context.prev = 3;
36323
36480
 
36324
- if (_this.mcsMedia) {
36481
+ if (contentUrlRequest) {
36325
36482
  _context.next = 9;
36326
36483
  break;
36327
36484
  }
@@ -36331,7 +36488,7 @@ this.Twilio.Conversations = (function (exports) {
36331
36488
 
36332
36489
  case 7:
36333
36490
  mcsMedia = _context.sent;
36334
- contentUrlRequest = mcsMedia.getContentUrl();
36491
+ contentUrlRequest = mcsMedia === null || mcsMedia === void 0 ? void 0 : mcsMedia.getContentUrl();
36335
36492
 
36336
36493
  case 9:
36337
36494
  _context.t0 = resolve;
@@ -36388,13 +36545,11 @@ this.Twilio.Conversations = (function (exports) {
36388
36545
  while (1) {
36389
36546
  switch (_context2.prev = _context2.next) {
36390
36547
  case 0:
36391
- request = _this2.services.mcsClient.get(_this2.state.sid);
36392
-
36393
- if (!_this2.services.mcsClient) {
36394
- _context2.next = 14;
36395
- break;
36548
+ if (_this2.services.mcsClient === null) {
36549
+ reject(new Error("Media Content Service is unavailable"));
36396
36550
  }
36397
36551
 
36552
+ request = _this2.services.mcsClient.get(_this2.state.sid);
36398
36553
  onCancel(function () {
36399
36554
  return request.cancel();
36400
36555
  });
@@ -36404,27 +36559,22 @@ this.Twilio.Conversations = (function (exports) {
36404
36559
 
36405
36560
  case 6:
36406
36561
  _this2.mcsMedia = _context2.sent;
36562
+ _this2.state = _this2.mcsMedia._state();
36407
36563
  resolve(_this2.mcsMedia);
36408
- _context2.next = 13;
36564
+ _context2.next = 14;
36409
36565
  break;
36410
36566
 
36411
- case 10:
36412
- _context2.prev = 10;
36567
+ case 11:
36568
+ _context2.prev = 11;
36413
36569
  _context2.t0 = _context2["catch"](3);
36414
36570
  reject(_context2.t0);
36415
36571
 
36416
- case 13:
36417
- return _context2.abrupt("return");
36418
-
36419
36572
  case 14:
36420
- reject(new Error("Media Content Service is unavailable"));
36421
-
36422
- case 15:
36423
36573
  case "end":
36424
36574
  return _context2.stop();
36425
36575
  }
36426
36576
  }
36427
- }, _callee2, null, [[3, 10]]);
36577
+ }, _callee2, null, [[3, 11]]);
36428
36578
  }));
36429
36579
 
36430
36580
  return function (_x4, _x5, _x6) {
@@ -36432,6 +36582,15 @@ this.Twilio.Conversations = (function (exports) {
36432
36582
  };
36433
36583
  }());
36434
36584
  }
36585
+ /**
36586
+ * @internal
36587
+ */
36588
+
36589
+ }, {
36590
+ key: "_state",
36591
+ value: function _state() {
36592
+ return this.state;
36593
+ }
36435
36594
  }]);
36436
36595
 
36437
36596
  return Media;
@@ -36985,6 +37144,12 @@ this.Twilio.Conversations = (function (exports) {
36985
37144
  function _createSuper$6(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$7(); return function _createSuperInternal() { var Super = _getPrototypeOf$4(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$4(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$4(this, result); }; }
36986
37145
 
36987
37146
  function _isNativeReflectConstruct$7() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
37147
+
37148
+ function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
37149
+
37150
+ function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
37151
+
37152
+ function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
36988
37153
  var log$3 = Logger.scope("Message");
36989
37154
 
36990
37155
  var XHR = // eslint-disable-next-line @typescript-eslint/no-var-requires
@@ -36994,6 +37159,10 @@ this.Twilio.Conversations = (function (exports) {
36994
37159
  */
36995
37160
 
36996
37161
 
37162
+ var _wrapMedia = /*#__PURE__*/new WeakSet();
37163
+
37164
+ var _assignMedias = /*#__PURE__*/new WeakSet();
37165
+
36997
37166
  var Message = /*#__PURE__*/function (_ReplayEventEmitter) {
36998
37167
  _inherits$4(Message, _ReplayEventEmitter);
36999
37168
 
@@ -37007,13 +37176,18 @@ this.Twilio.Conversations = (function (exports) {
37007
37176
  * @internal
37008
37177
  */
37009
37178
  function Message(index, data, conversation, links, configuration, services) {
37010
- var _data$text, _data$lastUpdatedBy, _data$type, _data$memberSid, _data$channelMetadata;
37179
+ var _data$text, _data$lastUpdatedBy, _data$type, _data$memberSid, _data$channelMetadata, _data$medias, _data$media;
37011
37180
 
37012
37181
  var _this;
37013
37182
 
37014
37183
  _classCallCheck$4(this, Message);
37015
37184
 
37016
37185
  _this = _super.call(this);
37186
+
37187
+ _classPrivateMethodInitSpec(_assertThisInitialized$3(_this), _assignMedias);
37188
+
37189
+ _classPrivateMethodInitSpec(_assertThisInitialized$3(_this), _wrapMedia);
37190
+
37017
37191
  _this.conversation = conversation;
37018
37192
  _this.links = links;
37019
37193
  _this.configuration = configuration;
@@ -37030,27 +37204,17 @@ this.Twilio.Conversations = (function (exports) {
37030
37204
  lastUpdatedBy: (_data$lastUpdatedBy = data.lastUpdatedBy) !== null && _data$lastUpdatedBy !== void 0 ? _data$lastUpdatedBy : null,
37031
37205
  attributes: parseAttributes(data.attributes, "Got malformed attributes for the message ".concat(data.sid), log$3),
37032
37206
  type: (_data$type = data.type) !== null && _data$type !== void 0 ? _data$type : "text",
37033
- media: data.type === "media" && data.media ? new Media(data.media, _this.services) : null,
37034
- medias: data.type === "media" && data.medias ? data.medias.map(function (m) {
37035
- return new Media(m, _this.services);
37036
- }) : data.type === "media" && data.media && !data.medias ? [new Media(_objectSpread$4(_objectSpread$4({}, data.media), {}, {
37037
- category: "media"
37038
- }), _this.services)] : null,
37207
+ media: null,
37208
+ medias: null,
37039
37209
  participantSid: (_data$memberSid = data.memberSid) !== null && _data$memberSid !== void 0 ? _data$memberSid : null,
37040
37210
  aggregatedDeliveryReceipt: data.delivery ? new AggregatedDeliveryReceipt(data.delivery) : null,
37041
37211
  hasChannelMetadata: (_data$channelMetadata = data.channelMetadata) !== null && _data$channelMetadata !== void 0 ? _data$channelMetadata : false
37042
37212
  };
37213
+
37214
+ _classPrivateMethodGet(_assertThisInitialized$3(_this), _assignMedias, _assignMedias2).call(_assertThisInitialized$3(_this), (_data$medias = data.medias) !== null && _data$medias !== void 0 ? _data$medias : null, (_data$media = data.media) !== null && _data$media !== void 0 ? _data$media : null);
37215
+
37043
37216
  return _this;
37044
37217
  }
37045
- /**
37046
- * Fired when the properties or the body of the message has been updated.
37047
- *
37048
- * Parameters:
37049
- * 1. object `data` - info object provided with the event. It has the following properties:
37050
- * * {@link Message} message - the message in question
37051
- * * {@link MessageUpdateReason}[] updateReasons - array of reasons for the update
37052
- */
37053
-
37054
37218
 
37055
37219
  _createClass$4(Message, [{
37056
37220
  key: "sid",
@@ -37261,6 +37425,12 @@ this.Twilio.Conversations = (function (exports) {
37261
37425
  }, {
37262
37426
  key: "_update",
37263
37427
  value: function _update(data) {
37428
+ var _data$medias2,
37429
+ _this2 = this,
37430
+ _this$state$medias2,
37431
+ _classPrivateMethodGe2,
37432
+ _this$state$media;
37433
+
37264
37434
  var updateReasons = [];
37265
37435
 
37266
37436
  if ((data.text || typeof data.text === "string") && data.text !== this.state.body) {
@@ -37313,6 +37483,29 @@ this.Twilio.Conversations = (function (exports) {
37313
37483
 
37314
37484
  updateReasons.push("deliveryReceipt");
37315
37485
  }
37486
+ } // @fixme: This is a fairly heavy check.
37487
+ // Map data back and forth to perform a necessary field massage.
37488
+
37489
+
37490
+ var input = ((_data$medias2 = data.medias) !== null && _data$medias2 !== void 0 ? _data$medias2 : []).map(function (value) {
37491
+ var _classPrivateMethodGe;
37492
+
37493
+ return (_classPrivateMethodGe = _classPrivateMethodGet(_this2, _wrapMedia, _wrapMedia2).call(_this2, value)) === null || _classPrivateMethodGe === void 0 ? void 0 : _classPrivateMethodGe._state();
37494
+ }).filter(function (el) {
37495
+ return !(el === null);
37496
+ });
37497
+ var current = ((_this$state$medias2 = this.state.medias) !== null && _this$state$medias2 !== void 0 ? _this$state$medias2 : []).map(function (value) {
37498
+ return value._state();
37499
+ }).filter(function (el) {
37500
+ return !(el === null);
37501
+ });
37502
+
37503
+ if (!isEqual(input, current) || !isEqual((_classPrivateMethodGe2 = _classPrivateMethodGet(this, _wrapMedia, _wrapMedia2).call(this, data.media)) === null || _classPrivateMethodGe2 === void 0 ? void 0 : _classPrivateMethodGe2._state(), (_this$state$media = this.state.media) === null || _this$state$media === void 0 ? void 0 : _this$state$media._state())) {
37504
+ var _data$medias3, _data$media2;
37505
+
37506
+ _classPrivateMethodGet(this, _assignMedias, _assignMedias2).call(this, (_data$medias3 = data.medias) !== null && _data$medias3 !== void 0 ? _data$medias3 : null, (_data$media2 = data.media) !== null && _data$media2 !== void 0 ? _data$media2 : null);
37507
+
37508
+ updateReasons.push("media");
37316
37509
  }
37317
37510
 
37318
37511
  if (updateReasons.length > 0) {
@@ -37330,7 +37523,7 @@ this.Twilio.Conversations = (function (exports) {
37330
37523
  key: "getParticipant",
37331
37524
  value: function () {
37332
37525
  var _getParticipant = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function _callee() {
37333
- var _this2 = this;
37526
+ var _this3 = this;
37334
37527
 
37335
37528
  var participant, errorMesage;
37336
37529
  return _regeneratorRuntime$1.wrap(function _callee$(_context) {
@@ -37346,7 +37539,7 @@ this.Twilio.Conversations = (function (exports) {
37346
37539
 
37347
37540
  _context.next = 4;
37348
37541
  return this.conversation.getParticipantBySid(this.state.participantSid).catch(function () {
37349
- log$3.debug("Participant with sid \"".concat(_this2.participantSid, "\" not found for message ").concat(_this2.sid));
37542
+ log$3.debug("Participant with sid \"".concat(_this3.participantSid, "\" not found for message ").concat(_this3.sid));
37350
37543
  return null;
37351
37544
  });
37352
37545
 
@@ -37361,7 +37554,7 @@ this.Twilio.Conversations = (function (exports) {
37361
37554
 
37362
37555
  _context.next = 8;
37363
37556
  return this.conversation.getParticipantByIdentity(this.state.author).catch(function () {
37364
- log$3.debug("Participant with identity \"".concat(_this2.author, "\" not found for message ").concat(_this2.sid));
37557
+ log$3.debug("Participant with identity \"".concat(_this3.author, "\" not found for message ").concat(_this3.sid));
37365
37558
  return null;
37366
37559
  });
37367
37560
 
@@ -37576,7 +37769,7 @@ this.Twilio.Conversations = (function (exports) {
37576
37769
  key: "attachTemporaryUrlsFor",
37577
37770
  value: function () {
37578
37771
  var _attachTemporaryUrlsFor = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function _callee6(contentSet) {
37579
- var _this3 = this;
37772
+ var _this4 = this;
37580
37773
 
37581
37774
  var sids;
37582
37775
  return _regeneratorRuntime$1.wrap(function _callee6$(_context6) {
@@ -37599,7 +37792,7 @@ this.Twilio.Conversations = (function (exports) {
37599
37792
 
37600
37793
  case 4:
37601
37794
  return _context6.abrupt("return", _context6.sent.map(function (item) {
37602
- return new Media(item, _this3.services);
37795
+ return new Media(item, _this4.services);
37603
37796
  }));
37604
37797
 
37605
37798
  case 7:
@@ -37642,7 +37835,7 @@ this.Twilio.Conversations = (function (exports) {
37642
37835
  }, {
37643
37836
  key: "getTemporaryContentUrlsForMediaSids",
37644
37837
  value: function getTemporaryContentUrlsForMediaSids(mediaSids) {
37645
- var _this4 = this;
37838
+ var _this5 = this;
37646
37839
 
37647
37840
  return new browser$1.CancellablePromise( /*#__PURE__*/function () {
37648
37841
  var _ref = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function _callee7(resolve, reject, onCancel) {
@@ -37651,9 +37844,9 @@ this.Twilio.Conversations = (function (exports) {
37651
37844
  while (1) {
37652
37845
  switch (_context7.prev = _context7.next) {
37653
37846
  case 0:
37654
- mediaGetRequest = _this4.services.mcsClient.mediaSetGetContentUrls(mediaSids !== null && mediaSids !== void 0 ? mediaSids : []);
37847
+ mediaGetRequest = _this5.services.mcsClient.mediaSetGetContentUrls(mediaSids !== null && mediaSids !== void 0 ? mediaSids : []);
37655
37848
 
37656
- if (!(!_this4.services.mcsClient || !mediaSids)) {
37849
+ if (!(!_this5.services.mcsClient || !mediaSids)) {
37657
37850
  _context7.next = 4;
37658
37851
  break;
37659
37852
  }
@@ -37712,7 +37905,7 @@ this.Twilio.Conversations = (function (exports) {
37712
37905
  key: "_getDetailedDeliveryReceiptsPaginator",
37713
37906
  value: function () {
37714
37907
  var _getDetailedDeliveryReceiptsPaginator2 = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function _callee8(options) {
37715
- var _this5 = this;
37908
+ var _this6 = this;
37716
37909
 
37717
37910
  var messagesReceiptsUrl, url, response;
37718
37911
  return _regeneratorRuntime$1.wrap(function _callee8$(_context8) {
@@ -37729,7 +37922,7 @@ this.Twilio.Conversations = (function (exports) {
37729
37922
  return _context8.abrupt("return", new RestPaginator(response.body.delivery_receipts.map(function (x) {
37730
37923
  return new DetailedDeliveryReceipt(x);
37731
37924
  }), function (pageToken, pageSize) {
37732
- return _this5._getDetailedDeliveryReceiptsPaginator({
37925
+ return _this6._getDetailedDeliveryReceiptsPaginator({
37733
37926
  pageToken: pageToken,
37734
37927
  pageSize: pageSize
37735
37928
  });
@@ -37757,7 +37950,7 @@ this.Twilio.Conversations = (function (exports) {
37757
37950
  }, {
37758
37951
  key: "getContentData",
37759
37952
  value: function getContentData() {
37760
- var _this6 = this;
37953
+ var _this7 = this;
37761
37954
 
37762
37955
  return new browser$1.CancellablePromise( /*#__PURE__*/function () {
37763
37956
  var _ref2 = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function _callee9(resolve, reject, onCancel) {
@@ -37766,7 +37959,7 @@ this.Twilio.Conversations = (function (exports) {
37766
37959
  while (1) {
37767
37960
  switch (_context9.prev = _context9.next) {
37768
37961
  case 0:
37769
- if (!(_this6.state.contentSid === null)) {
37962
+ if (!(_this7.state.contentSid === null)) {
37770
37963
  _context9.next = 3;
37771
37964
  break;
37772
37965
  }
@@ -37775,7 +37968,7 @@ this.Twilio.Conversations = (function (exports) {
37775
37968
  return _context9.abrupt("return");
37776
37969
 
37777
37970
  case 3:
37778
- bodies = _this6.getMediaByCategories(["body"]);
37971
+ bodies = _this7.getMediaByCategories(["body"]);
37779
37972
 
37780
37973
  if (!(bodies === null)) {
37781
37974
  _context9.next = 7;
@@ -37936,6 +38129,28 @@ this.Twilio.Conversations = (function (exports) {
37936
38129
  return Message;
37937
38130
  }(ReplayEventEmitter_1);
37938
38131
 
38132
+ function _wrapMedia2(media) {
38133
+ var category = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
38134
+ return media ? category ? new Media(_objectSpread$4(_objectSpread$4({}, media), {}, {
38135
+ category: category
38136
+ }), this.services) : new Media(media, this.services) : null;
38137
+ }
38138
+
38139
+ function _assignMedias2(medias, media) {
38140
+ var _this8 = this;
38141
+
38142
+ this.state.media = _classPrivateMethodGet(this, _wrapMedia, _wrapMedia2).call(this, media); // eslint-disable-next-line @typescript-eslint/ban-ts-comment
38143
+ // @ts-ignore
38144
+
38145
+ this.state.medias = medias ? medias.map(function (m) {
38146
+ return _classPrivateMethodGet(_this8, _wrapMedia, _wrapMedia2).call(_this8, m);
38147
+ }).filter(function (el) {
38148
+ return el !== null;
38149
+ }) : media && !medias ? [_classPrivateMethodGet(this, _wrapMedia, _wrapMedia2).call(this, media, "media")].filter(function (el) {
38150
+ return el !== null;
38151
+ }) : null;
38152
+ }
38153
+
37939
38154
  _defineProperty$3(Message, "updated", "updated");
37940
38155
 
37941
38156
  __decorate$1([deprecated_1("getMediaByCategory", "getMediaByCategories"), __metadata$1("design:type", Function), __metadata$1("design:paramtypes", [Array]), __metadata$1("design:returntype", Array)], Message.prototype, "getMediaByCategory", null);
@@ -42014,7 +42229,7 @@ this.Twilio.Conversations = (function (exports) {
42014
42229
  this.data = data.data || {};
42015
42230
  });
42016
42231
 
42017
- var version = "2.4.0";
42232
+ var version = "2.4.1-rc.1";
42018
42233
 
42019
42234
  function _isNativeFunction(fn) {
42020
42235
  return Function.toString.call(fn).indexOf("[native code]") !== -1;
@@ -42357,7 +42572,7 @@ this.Twilio.Conversations = (function (exports) {
42357
42572
  var $ = _export;
42358
42573
  var FREEZING = freezing;
42359
42574
  var fails = fails$B;
42360
- var isObject = isObject$p;
42575
+ var isObject = isObject$q;
42361
42576
  var onFreeze = internalMetadata.exports.onFreeze;
42362
42577
 
42363
42578
  // eslint-disable-next-line es/no-object-freeze -- safe