@twilio/conversations 2.4.0-rc.2 → 2.4.1-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/builds/browser.js +99 -31
- package/builds/browser.js.map +1 -1
- package/builds/lib.d.ts +7 -2
- package/builds/lib.js +99 -31
- package/builds/lib.js.map +1 -1
- package/builds/twilio-conversations.js +449 -238
- package/builds/twilio-conversations.min.js +1 -1
- package/dist/media.js +10 -1
- package/dist/media.js.map +1 -1
- package/dist/message.js +36 -11
- package/dist/message.js.map +1 -1
- package/dist/node_modules/tslib/tslib.es6.js +7 -0
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
- package/dist/packages/conversations/package.json.js +1 -1
- package/docs/index.html +4 -4
- package/docs/modules.html +3 -3
- package/package.json +8 -8
@@ -249,7 +249,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
249
249
|
return IndexedObject$4(requireObjectCoercible$9(it));
|
250
250
|
};
|
251
251
|
|
252
|
-
var isObject$
|
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$
|
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$
|
332
|
-
if (typeof (fn = input.valueOf) == 'function' && !isObject$
|
333
|
-
if (pref !== 'string' && typeof (fn = input.toString) == 'function' && !isObject$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
494
|
+
var isObject$m = isObject$q;
|
495
495
|
|
496
|
-
var anObject$
|
497
|
-
if (!isObject$
|
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$
|
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$
|
513
|
+
anObject$k(O);
|
514
514
|
P = toPropertyKey$3(P);
|
515
|
-
anObject$
|
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$
|
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$
|
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$
|
641
|
+
var InternalStateModule$a = internalState;
|
642
642
|
|
643
|
-
var getInternalState$7 = InternalStateModule$
|
644
|
-
var enforceInternalState = InternalStateModule$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
1069
|
-
var isObject$
|
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$
|
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$
|
1111
|
+
var instance = create$7(isObject$j(proto) ? proto : Object.prototype);
|
1112
1112
|
var result = Function.apply.call(Target, instance, args);
|
1113
|
-
return isObject$
|
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$
|
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$
|
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$
|
1332
|
+
var isObject$h = isObject$q;
|
1333
1333
|
var isSymbol$2 = isSymbol$6;
|
1334
|
-
var anObject$
|
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$
|
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$
|
1366
|
-
var getInternalState$6 = InternalStateModule$
|
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$
|
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$
|
1410
|
+
anObject$f(O);
|
1411
1411
|
var key = toPropertyKey$2(P);
|
1412
|
-
anObject$
|
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$
|
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$
|
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$
|
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$
|
1920
|
+
var isObject$g = isObject$q;
|
1921
1921
|
|
1922
1922
|
var aPossiblePrototype$1 = function (it) {
|
1923
|
-
if (!isObject$
|
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$
|
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$
|
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$
|
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$
|
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$
|
2013
|
+
} return anObject$d(iteratorMethod.call(it));
|
2014
2014
|
};
|
2015
2015
|
|
2016
|
-
var anObject$
|
2016
|
+
var anObject$c = anObject$l;
|
2017
2017
|
|
2018
2018
|
var iteratorClose$2 = function (iterator, kind, value) {
|
2019
2019
|
var innerResult, innerError;
|
2020
|
-
anObject$
|
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$
|
2034
|
+
anObject$c(innerResult);
|
2035
2035
|
return value;
|
2036
2036
|
};
|
2037
2037
|
|
2038
|
-
var anObject$
|
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$
|
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$
|
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$
|
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$
|
2145
|
+
var C = anObject$a(O).constructor;
|
2146
2146
|
var S;
|
2147
|
-
return C === undefined || (S = anObject$
|
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$
|
2387
|
-
var isObject$
|
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$
|
2392
|
-
if (isObject$
|
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$
|
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$
|
2427
|
+
var isObject$e = isObject$q;
|
2428
2428
|
var aFunction$3 = aFunction$9;
|
2429
|
-
var anInstance$
|
2429
|
+
var anInstance$7 = anInstance$8;
|
2430
2430
|
var inspectSource = inspectSource$3;
|
2431
|
-
var iterate$
|
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$
|
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$
|
2450
|
-
var setInternalState$
|
2451
|
-
var getInternalPromiseState = InternalStateModule$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
3950
|
+
var InternalStateModule$7 = internalState;
|
3951
3951
|
var defineIterator$2 = defineIterator$3;
|
3952
3952
|
|
3953
3953
|
var STRING_ITERATOR = 'String Iterator';
|
3954
|
-
var setInternalState$
|
3955
|
-
var getInternalState$4 = InternalStateModule$
|
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$
|
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$
|
4578
|
+
var InternalStateModule$6 = internalState;
|
4579
4579
|
var defineIterator$1 = defineIterator$3;
|
4580
4580
|
|
4581
4581
|
var ARRAY_ITERATOR = 'Array Iterator';
|
4582
|
-
var setInternalState$
|
4583
|
-
var getInternalState$3 = InternalStateModule$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
10120
|
-
var anInstance$
|
10121
|
-
var isObject$
|
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$
|
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$
|
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$
|
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$
|
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$
|
10186
|
+
anInstance$6(dummy, Constructor, CONSTRUCTOR_NAME);
|
10187
10187
|
var that = inheritIfRequired$1(new NativeConstructor(), dummy, Constructor);
|
10188
|
-
if (iterable != undefined) iterate$
|
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$
|
10219
|
+
var redefineAll$3 = redefineAll$5;
|
10220
10220
|
var bind$2 = functionBindContext;
|
10221
|
-
var anInstance$
|
10222
|
-
var iterate = iterate$
|
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$
|
10227
|
+
var InternalStateModule$5 = internalState;
|
10228
10228
|
|
10229
|
-
var setInternalState$
|
10230
|
-
var internalStateGetterFor = InternalStateModule$
|
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$
|
10236
|
-
setInternalState$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
12839
|
+
var redefineAll$2 = redefineAll$5;
|
12840
12840
|
var fails$a = fails$B;
|
12841
|
-
var anInstance$
|
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$
|
12852
|
+
var InternalStateModule$4 = internalState;
|
12853
12853
|
|
12854
|
-
var getInternalState$1 = InternalStateModule$
|
12855
|
-
var setInternalState$
|
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$
|
12921
|
+
anInstance$4(this, $ArrayBuffer, ARRAY_BUFFER$1);
|
12922
12922
|
var byteLength = toIndex$1(length);
|
12923
|
-
setInternalState$
|
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$
|
12932
|
-
anInstance$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
13139
|
+
var InternalStateModule$3 = internalState;
|
13140
13140
|
var inheritIfRequired = inheritIfRequired$3;
|
13141
13141
|
|
13142
|
-
var getInternalState = InternalStateModule$
|
13143
|
-
var setInternalState$
|
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$
|
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$
|
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$
|
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$
|
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$
|
13301
|
+
anInstance$3(dummy, TypedArrayConstructor, CONSTRUCTOR_NAME);
|
13302
13302
|
return inheritIfRequired(function () {
|
13303
|
-
if (!isObject$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
32352
|
+
var redefineAll$1 = redefineAll$5;
|
32353
32353
|
var setToStringTag$1 = setToStringTag$9;
|
32354
32354
|
var createIteratorConstructor = createIteratorConstructor$2;
|
32355
|
-
var InternalStateModule$
|
32356
|
-
var anInstance$
|
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$
|
32361
|
-
var isObject$
|
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$
|
32377
|
-
var getInternalParamsState = InternalStateModule$
|
32378
|
-
var getInternalIteratorState = InternalStateModule$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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$
|
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,15 @@ 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
|
+
*/
|
34439
|
+
|
34440
|
+
}, {
|
34441
|
+
key: "_state",
|
34442
|
+
value: function _state() {
|
34443
|
+
return this.state;
|
34444
|
+
}
|
34436
34445
|
}]);
|
34437
34446
|
|
34438
34447
|
return Media;
|
@@ -34867,7 +34876,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
34867
34876
|
return Network;
|
34868
34877
|
}();
|
34869
34878
|
|
34870
|
-
var version = "0.6.
|
34879
|
+
var version = "0.6.6-rc.0";
|
34871
34880
|
|
34872
34881
|
var _class;
|
34873
34882
|
|
@@ -36215,6 +36224,141 @@ this.Twilio.Conversations = (function (exports) {
|
|
36215
36224
|
}
|
36216
36225
|
});
|
36217
36226
|
|
36227
|
+
var redefineAll = redefineAll$5;
|
36228
|
+
var getWeakData = internalMetadata.exports.getWeakData;
|
36229
|
+
var anObject = anObject$l;
|
36230
|
+
var isObject$1 = isObject$q;
|
36231
|
+
var anInstance = anInstance$8;
|
36232
|
+
var iterate = iterate$4;
|
36233
|
+
var ArrayIterationModule = arrayIteration;
|
36234
|
+
var $has = has$g;
|
36235
|
+
var InternalStateModule = internalState;
|
36236
|
+
|
36237
|
+
var setInternalState = InternalStateModule.set;
|
36238
|
+
var internalStateGetterFor = InternalStateModule.getterFor;
|
36239
|
+
var find = ArrayIterationModule.find;
|
36240
|
+
var findIndex = ArrayIterationModule.findIndex;
|
36241
|
+
var id = 0;
|
36242
|
+
|
36243
|
+
// fallback for uncaught frozen keys
|
36244
|
+
var uncaughtFrozenStore = function (store) {
|
36245
|
+
return store.frozen || (store.frozen = new UncaughtFrozenStore());
|
36246
|
+
};
|
36247
|
+
|
36248
|
+
var UncaughtFrozenStore = function () {
|
36249
|
+
this.entries = [];
|
36250
|
+
};
|
36251
|
+
|
36252
|
+
var findUncaughtFrozen = function (store, key) {
|
36253
|
+
return find(store.entries, function (it) {
|
36254
|
+
return it[0] === key;
|
36255
|
+
});
|
36256
|
+
};
|
36257
|
+
|
36258
|
+
UncaughtFrozenStore.prototype = {
|
36259
|
+
get: function (key) {
|
36260
|
+
var entry = findUncaughtFrozen(this, key);
|
36261
|
+
if (entry) return entry[1];
|
36262
|
+
},
|
36263
|
+
has: function (key) {
|
36264
|
+
return !!findUncaughtFrozen(this, key);
|
36265
|
+
},
|
36266
|
+
set: function (key, value) {
|
36267
|
+
var entry = findUncaughtFrozen(this, key);
|
36268
|
+
if (entry) entry[1] = value;
|
36269
|
+
else this.entries.push([key, value]);
|
36270
|
+
},
|
36271
|
+
'delete': function (key) {
|
36272
|
+
var index = findIndex(this.entries, function (it) {
|
36273
|
+
return it[0] === key;
|
36274
|
+
});
|
36275
|
+
if (~index) this.entries.splice(index, 1);
|
36276
|
+
return !!~index;
|
36277
|
+
}
|
36278
|
+
};
|
36279
|
+
|
36280
|
+
var collectionWeak$1 = {
|
36281
|
+
getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
|
36282
|
+
var C = wrapper(function (that, iterable) {
|
36283
|
+
anInstance(that, C, CONSTRUCTOR_NAME);
|
36284
|
+
setInternalState(that, {
|
36285
|
+
type: CONSTRUCTOR_NAME,
|
36286
|
+
id: id++,
|
36287
|
+
frozen: undefined
|
36288
|
+
});
|
36289
|
+
if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });
|
36290
|
+
});
|
36291
|
+
|
36292
|
+
var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
|
36293
|
+
|
36294
|
+
var define = function (that, key, value) {
|
36295
|
+
var state = getInternalState(that);
|
36296
|
+
var data = getWeakData(anObject(key), true);
|
36297
|
+
if (data === true) uncaughtFrozenStore(state).set(key, value);
|
36298
|
+
else data[state.id] = value;
|
36299
|
+
return that;
|
36300
|
+
};
|
36301
|
+
|
36302
|
+
redefineAll(C.prototype, {
|
36303
|
+
// `{ WeakMap, WeakSet }.prototype.delete(key)` methods
|
36304
|
+
// https://tc39.es/ecma262/#sec-weakmap.prototype.delete
|
36305
|
+
// https://tc39.es/ecma262/#sec-weakset.prototype.delete
|
36306
|
+
'delete': function (key) {
|
36307
|
+
var state = getInternalState(this);
|
36308
|
+
if (!isObject$1(key)) return false;
|
36309
|
+
var data = getWeakData(key);
|
36310
|
+
if (data === true) return uncaughtFrozenStore(state)['delete'](key);
|
36311
|
+
return data && $has(data, state.id) && delete data[state.id];
|
36312
|
+
},
|
36313
|
+
// `{ WeakMap, WeakSet }.prototype.has(key)` methods
|
36314
|
+
// https://tc39.es/ecma262/#sec-weakmap.prototype.has
|
36315
|
+
// https://tc39.es/ecma262/#sec-weakset.prototype.has
|
36316
|
+
has: function has(key) {
|
36317
|
+
var state = getInternalState(this);
|
36318
|
+
if (!isObject$1(key)) return false;
|
36319
|
+
var data = getWeakData(key);
|
36320
|
+
if (data === true) return uncaughtFrozenStore(state).has(key);
|
36321
|
+
return data && $has(data, state.id);
|
36322
|
+
}
|
36323
|
+
});
|
36324
|
+
|
36325
|
+
redefineAll(C.prototype, IS_MAP ? {
|
36326
|
+
// `WeakMap.prototype.get(key)` method
|
36327
|
+
// https://tc39.es/ecma262/#sec-weakmap.prototype.get
|
36328
|
+
get: function get(key) {
|
36329
|
+
var state = getInternalState(this);
|
36330
|
+
if (isObject$1(key)) {
|
36331
|
+
var data = getWeakData(key);
|
36332
|
+
if (data === true) return uncaughtFrozenStore(state).get(key);
|
36333
|
+
return data ? data[state.id] : undefined;
|
36334
|
+
}
|
36335
|
+
},
|
36336
|
+
// `WeakMap.prototype.set(key, value)` method
|
36337
|
+
// https://tc39.es/ecma262/#sec-weakmap.prototype.set
|
36338
|
+
set: function set(key, value) {
|
36339
|
+
return define(this, key, value);
|
36340
|
+
}
|
36341
|
+
} : {
|
36342
|
+
// `WeakSet.prototype.add(value)` method
|
36343
|
+
// https://tc39.es/ecma262/#sec-weakset.prototype.add
|
36344
|
+
add: function add(value) {
|
36345
|
+
return define(this, value, true);
|
36346
|
+
}
|
36347
|
+
});
|
36348
|
+
|
36349
|
+
return C;
|
36350
|
+
}
|
36351
|
+
};
|
36352
|
+
|
36353
|
+
var collection = collection$3;
|
36354
|
+
var collectionWeak = collectionWeak$1;
|
36355
|
+
|
36356
|
+
// `WeakSet` constructor
|
36357
|
+
// https://tc39.es/ecma262/#sec-weakset-constructor
|
36358
|
+
collection('WeakSet', function (init) {
|
36359
|
+
return function WeakSet() { return init(this, arguments.length ? arguments[0] : undefined); };
|
36360
|
+
}, collectionWeak);
|
36361
|
+
|
36218
36362
|
/**
|
36219
36363
|
* Represents a media information for a message in a conversation.
|
36220
36364
|
*/
|
@@ -36224,6 +36368,8 @@ this.Twilio.Conversations = (function (exports) {
|
|
36224
36368
|
* @internal
|
36225
36369
|
*/
|
36226
36370
|
function Media(data, services) {
|
36371
|
+
var _data$filename;
|
36372
|
+
|
36227
36373
|
_classCallCheck$4(this, Media);
|
36228
36374
|
|
36229
36375
|
_defineProperty$3(this, "mcsMedia", null);
|
@@ -36237,7 +36383,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
36237
36383
|
this.state = {
|
36238
36384
|
sid: data.sid,
|
36239
36385
|
category: data.category,
|
36240
|
-
filename: data.filename,
|
36386
|
+
filename: (_data$filename = data.filename) !== null && _data$filename !== void 0 ? _data$filename : null,
|
36241
36387
|
contentType: data.contentType,
|
36242
36388
|
size: data.size
|
36243
36389
|
};
|
@@ -36432,6 +36578,15 @@ this.Twilio.Conversations = (function (exports) {
|
|
36432
36578
|
};
|
36433
36579
|
}());
|
36434
36580
|
}
|
36581
|
+
/**
|
36582
|
+
* @internal
|
36583
|
+
*/
|
36584
|
+
|
36585
|
+
}, {
|
36586
|
+
key: "_state",
|
36587
|
+
value: function _state() {
|
36588
|
+
return this.mcsMedia ? this.mcsMedia._state() : this.state;
|
36589
|
+
}
|
36435
36590
|
}]);
|
36436
36591
|
|
36437
36592
|
return Media;
|
@@ -36985,6 +37140,12 @@ this.Twilio.Conversations = (function (exports) {
|
|
36985
37140
|
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
37141
|
|
36987
37142
|
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; } }
|
37143
|
+
|
37144
|
+
function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
|
37145
|
+
|
37146
|
+
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
37147
|
+
|
37148
|
+
function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; }
|
36988
37149
|
var log$3 = Logger.scope("Message");
|
36989
37150
|
|
36990
37151
|
var XHR = // eslint-disable-next-line @typescript-eslint/no-var-requires
|
@@ -36994,6 +37155,10 @@ this.Twilio.Conversations = (function (exports) {
|
|
36994
37155
|
*/
|
36995
37156
|
|
36996
37157
|
|
37158
|
+
var _wrapMedia = /*#__PURE__*/new WeakSet();
|
37159
|
+
|
37160
|
+
var _assignMedias = /*#__PURE__*/new WeakSet();
|
37161
|
+
|
36997
37162
|
var Message = /*#__PURE__*/function (_ReplayEventEmitter) {
|
36998
37163
|
_inherits$4(Message, _ReplayEventEmitter);
|
36999
37164
|
|
@@ -37007,13 +37172,18 @@ this.Twilio.Conversations = (function (exports) {
|
|
37007
37172
|
* @internal
|
37008
37173
|
*/
|
37009
37174
|
function Message(index, data, conversation, links, configuration, services) {
|
37010
|
-
var _data$text, _data$lastUpdatedBy, _data$type, _data$memberSid, _data$channelMetadata;
|
37175
|
+
var _data$text, _data$lastUpdatedBy, _data$type, _data$memberSid, _data$channelMetadata, _data$medias, _data$media;
|
37011
37176
|
|
37012
37177
|
var _this;
|
37013
37178
|
|
37014
37179
|
_classCallCheck$4(this, Message);
|
37015
37180
|
|
37016
37181
|
_this = _super.call(this);
|
37182
|
+
|
37183
|
+
_classPrivateMethodInitSpec(_assertThisInitialized$3(_this), _assignMedias);
|
37184
|
+
|
37185
|
+
_classPrivateMethodInitSpec(_assertThisInitialized$3(_this), _wrapMedia);
|
37186
|
+
|
37017
37187
|
_this.conversation = conversation;
|
37018
37188
|
_this.links = links;
|
37019
37189
|
_this.configuration = configuration;
|
@@ -37030,27 +37200,17 @@ this.Twilio.Conversations = (function (exports) {
|
|
37030
37200
|
lastUpdatedBy: (_data$lastUpdatedBy = data.lastUpdatedBy) !== null && _data$lastUpdatedBy !== void 0 ? _data$lastUpdatedBy : null,
|
37031
37201
|
attributes: parseAttributes(data.attributes, "Got malformed attributes for the message ".concat(data.sid), log$3),
|
37032
37202
|
type: (_data$type = data.type) !== null && _data$type !== void 0 ? _data$type : "text",
|
37033
|
-
media:
|
37034
|
-
medias:
|
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,
|
37203
|
+
media: null,
|
37204
|
+
medias: null,
|
37039
37205
|
participantSid: (_data$memberSid = data.memberSid) !== null && _data$memberSid !== void 0 ? _data$memberSid : null,
|
37040
37206
|
aggregatedDeliveryReceipt: data.delivery ? new AggregatedDeliveryReceipt(data.delivery) : null,
|
37041
37207
|
hasChannelMetadata: (_data$channelMetadata = data.channelMetadata) !== null && _data$channelMetadata !== void 0 ? _data$channelMetadata : false
|
37042
37208
|
};
|
37209
|
+
|
37210
|
+
_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);
|
37211
|
+
|
37043
37212
|
return _this;
|
37044
37213
|
}
|
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
37214
|
|
37055
37215
|
_createClass$4(Message, [{
|
37056
37216
|
key: "sid",
|
@@ -37261,6 +37421,12 @@ this.Twilio.Conversations = (function (exports) {
|
|
37261
37421
|
}, {
|
37262
37422
|
key: "_update",
|
37263
37423
|
value: function _update(data) {
|
37424
|
+
var _data$medias2,
|
37425
|
+
_this2 = this,
|
37426
|
+
_this$state$medias2,
|
37427
|
+
_classPrivateMethodGe2,
|
37428
|
+
_this$state$media;
|
37429
|
+
|
37264
37430
|
var updateReasons = [];
|
37265
37431
|
|
37266
37432
|
if ((data.text || typeof data.text === "string") && data.text !== this.state.body) {
|
@@ -37313,6 +37479,29 @@ this.Twilio.Conversations = (function (exports) {
|
|
37313
37479
|
|
37314
37480
|
updateReasons.push("deliveryReceipt");
|
37315
37481
|
}
|
37482
|
+
} // @fixme: This is a fairly heavy check.
|
37483
|
+
// Map data back and forth to perform a necessary field massage.
|
37484
|
+
|
37485
|
+
|
37486
|
+
var input = ((_data$medias2 = data.medias) !== null && _data$medias2 !== void 0 ? _data$medias2 : []).map(function (value) {
|
37487
|
+
var _classPrivateMethodGe;
|
37488
|
+
|
37489
|
+
return (_classPrivateMethodGe = _classPrivateMethodGet(_this2, _wrapMedia, _wrapMedia2).call(_this2, value)) === null || _classPrivateMethodGe === void 0 ? void 0 : _classPrivateMethodGe._state();
|
37490
|
+
}).filter(function (el) {
|
37491
|
+
return !(el === null);
|
37492
|
+
});
|
37493
|
+
var current = ((_this$state$medias2 = this.state.medias) !== null && _this$state$medias2 !== void 0 ? _this$state$medias2 : []).map(function (value) {
|
37494
|
+
return value._state();
|
37495
|
+
}).filter(function (el) {
|
37496
|
+
return !(el === null);
|
37497
|
+
});
|
37498
|
+
|
37499
|
+
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())) {
|
37500
|
+
var _data$medias3, _data$media2;
|
37501
|
+
|
37502
|
+
_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);
|
37503
|
+
|
37504
|
+
updateReasons.push("media");
|
37316
37505
|
}
|
37317
37506
|
|
37318
37507
|
if (updateReasons.length > 0) {
|
@@ -37330,7 +37519,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
37330
37519
|
key: "getParticipant",
|
37331
37520
|
value: function () {
|
37332
37521
|
var _getParticipant = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function _callee() {
|
37333
|
-
var
|
37522
|
+
var _this3 = this;
|
37334
37523
|
|
37335
37524
|
var participant, errorMesage;
|
37336
37525
|
return _regeneratorRuntime$1.wrap(function _callee$(_context) {
|
@@ -37346,7 +37535,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
37346
37535
|
|
37347
37536
|
_context.next = 4;
|
37348
37537
|
return this.conversation.getParticipantBySid(this.state.participantSid).catch(function () {
|
37349
|
-
log$3.debug("Participant with sid \"".concat(
|
37538
|
+
log$3.debug("Participant with sid \"".concat(_this3.participantSid, "\" not found for message ").concat(_this3.sid));
|
37350
37539
|
return null;
|
37351
37540
|
});
|
37352
37541
|
|
@@ -37361,7 +37550,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
37361
37550
|
|
37362
37551
|
_context.next = 8;
|
37363
37552
|
return this.conversation.getParticipantByIdentity(this.state.author).catch(function () {
|
37364
|
-
log$3.debug("Participant with identity \"".concat(
|
37553
|
+
log$3.debug("Participant with identity \"".concat(_this3.author, "\" not found for message ").concat(_this3.sid));
|
37365
37554
|
return null;
|
37366
37555
|
});
|
37367
37556
|
|
@@ -37576,7 +37765,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
37576
37765
|
key: "attachTemporaryUrlsFor",
|
37577
37766
|
value: function () {
|
37578
37767
|
var _attachTemporaryUrlsFor = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function _callee6(contentSet) {
|
37579
|
-
var
|
37768
|
+
var _this4 = this;
|
37580
37769
|
|
37581
37770
|
var sids;
|
37582
37771
|
return _regeneratorRuntime$1.wrap(function _callee6$(_context6) {
|
@@ -37599,7 +37788,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
37599
37788
|
|
37600
37789
|
case 4:
|
37601
37790
|
return _context6.abrupt("return", _context6.sent.map(function (item) {
|
37602
|
-
return new Media(item,
|
37791
|
+
return new Media(item, _this4.services);
|
37603
37792
|
}));
|
37604
37793
|
|
37605
37794
|
case 7:
|
@@ -37642,7 +37831,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
37642
37831
|
}, {
|
37643
37832
|
key: "getTemporaryContentUrlsForMediaSids",
|
37644
37833
|
value: function getTemporaryContentUrlsForMediaSids(mediaSids) {
|
37645
|
-
var
|
37834
|
+
var _this5 = this;
|
37646
37835
|
|
37647
37836
|
return new browser$1.CancellablePromise( /*#__PURE__*/function () {
|
37648
37837
|
var _ref = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function _callee7(resolve, reject, onCancel) {
|
@@ -37651,9 +37840,9 @@ this.Twilio.Conversations = (function (exports) {
|
|
37651
37840
|
while (1) {
|
37652
37841
|
switch (_context7.prev = _context7.next) {
|
37653
37842
|
case 0:
|
37654
|
-
mediaGetRequest =
|
37843
|
+
mediaGetRequest = _this5.services.mcsClient.mediaSetGetContentUrls(mediaSids !== null && mediaSids !== void 0 ? mediaSids : []);
|
37655
37844
|
|
37656
|
-
if (!(!
|
37845
|
+
if (!(!_this5.services.mcsClient || !mediaSids)) {
|
37657
37846
|
_context7.next = 4;
|
37658
37847
|
break;
|
37659
37848
|
}
|
@@ -37712,7 +37901,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
37712
37901
|
key: "_getDetailedDeliveryReceiptsPaginator",
|
37713
37902
|
value: function () {
|
37714
37903
|
var _getDetailedDeliveryReceiptsPaginator2 = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function _callee8(options) {
|
37715
|
-
var
|
37904
|
+
var _this6 = this;
|
37716
37905
|
|
37717
37906
|
var messagesReceiptsUrl, url, response;
|
37718
37907
|
return _regeneratorRuntime$1.wrap(function _callee8$(_context8) {
|
@@ -37729,7 +37918,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
37729
37918
|
return _context8.abrupt("return", new RestPaginator(response.body.delivery_receipts.map(function (x) {
|
37730
37919
|
return new DetailedDeliveryReceipt(x);
|
37731
37920
|
}), function (pageToken, pageSize) {
|
37732
|
-
return
|
37921
|
+
return _this6._getDetailedDeliveryReceiptsPaginator({
|
37733
37922
|
pageToken: pageToken,
|
37734
37923
|
pageSize: pageSize
|
37735
37924
|
});
|
@@ -37757,7 +37946,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
37757
37946
|
}, {
|
37758
37947
|
key: "getContentData",
|
37759
37948
|
value: function getContentData() {
|
37760
|
-
var
|
37949
|
+
var _this7 = this;
|
37761
37950
|
|
37762
37951
|
return new browser$1.CancellablePromise( /*#__PURE__*/function () {
|
37763
37952
|
var _ref2 = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function _callee9(resolve, reject, onCancel) {
|
@@ -37766,7 +37955,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
37766
37955
|
while (1) {
|
37767
37956
|
switch (_context9.prev = _context9.next) {
|
37768
37957
|
case 0:
|
37769
|
-
if (!(
|
37958
|
+
if (!(_this7.state.contentSid === null)) {
|
37770
37959
|
_context9.next = 3;
|
37771
37960
|
break;
|
37772
37961
|
}
|
@@ -37775,7 +37964,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
37775
37964
|
return _context9.abrupt("return");
|
37776
37965
|
|
37777
37966
|
case 3:
|
37778
|
-
bodies =
|
37967
|
+
bodies = _this7.getMediaByCategories(["body"]);
|
37779
37968
|
|
37780
37969
|
if (!(bodies === null)) {
|
37781
37970
|
_context9.next = 7;
|
@@ -37936,6 +38125,28 @@ this.Twilio.Conversations = (function (exports) {
|
|
37936
38125
|
return Message;
|
37937
38126
|
}(ReplayEventEmitter_1);
|
37938
38127
|
|
38128
|
+
function _wrapMedia2(media) {
|
38129
|
+
var category = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
38130
|
+
return media ? category ? new Media(_objectSpread$4(_objectSpread$4({}, media), {}, {
|
38131
|
+
category: category
|
38132
|
+
}), this.services) : new Media(media, this.services) : null;
|
38133
|
+
}
|
38134
|
+
|
38135
|
+
function _assignMedias2(medias, media) {
|
38136
|
+
var _this8 = this;
|
38137
|
+
|
38138
|
+
this.state.media = _classPrivateMethodGet(this, _wrapMedia, _wrapMedia2).call(this, media); // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
38139
|
+
// @ts-ignore
|
38140
|
+
|
38141
|
+
this.state.medias = medias ? medias.map(function (m) {
|
38142
|
+
return _classPrivateMethodGet(_this8, _wrapMedia, _wrapMedia2).call(_this8, m);
|
38143
|
+
}).filter(function (el) {
|
38144
|
+
return el !== null;
|
38145
|
+
}) : media && !medias ? [_classPrivateMethodGet(this, _wrapMedia, _wrapMedia2).call(this, media, "media")].filter(function (el) {
|
38146
|
+
return el !== null;
|
38147
|
+
}) : null;
|
38148
|
+
}
|
38149
|
+
|
37939
38150
|
_defineProperty$3(Message, "updated", "updated");
|
37940
38151
|
|
37941
38152
|
__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 +42225,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
42014
42225
|
this.data = data.data || {};
|
42015
42226
|
});
|
42016
42227
|
|
42017
|
-
var version = "2.4.
|
42228
|
+
var version = "2.4.1-rc.0";
|
42018
42229
|
|
42019
42230
|
function _isNativeFunction(fn) {
|
42020
42231
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
@@ -42357,7 +42568,7 @@ this.Twilio.Conversations = (function (exports) {
|
|
42357
42568
|
var $ = _export;
|
42358
42569
|
var FREEZING = freezing;
|
42359
42570
|
var fails = fails$B;
|
42360
|
-
var isObject = isObject$
|
42571
|
+
var isObject = isObject$q;
|
42361
42572
|
var onFreeze = internalMetadata.exports.onFreeze;
|
42362
42573
|
|
42363
42574
|
// eslint-disable-next-line es/no-object-freeze -- safe
|