@kaltura-sdk/avatars 1.16.2 → 1.17.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.
Files changed (20) hide show
  1. package/index.esm.js +722 -382
  2. package/package.json +5 -5
  3. package/src/lib/avatar-client-manager/avatar-client-manager.d.ts +4 -1
  4. package/src/lib/avatar-client-manager/machines/avatar-connection/actions/context/set-progress-bar-data.d.ts +2 -0
  5. package/src/lib/avatar-client-manager/machines/avatar-connection/actions/context/track-pushed-progress-bar.d.ts +2 -0
  6. package/src/lib/avatar-client-manager/machines/avatar-connection/actions/context/track-pushed-stage-content.d.ts +2 -0
  7. package/src/lib/avatar-client-manager/machines/avatar-connection/avatar-connection-machine.d.ts +12 -0
  8. package/src/lib/avatar-client-manager/machines/avatar-connection/guards/is-request-variables-stale.d.ts +4 -0
  9. package/src/lib/avatar-client-manager/machines/avatar-connection/guards/is-stage-variable-stale.d.ts +4 -0
  10. package/src/lib/avatar-client-manager/machines/avatar-connection/states/connected-state.d.ts +5 -1
  11. package/src/lib/avatar-client-manager/machines/avatar-connection/states/connected-states/content-state.d.ts +5 -1
  12. package/src/lib/avatar-client-manager/machines/avatar-connection/types/context.d.ts +5 -1
  13. package/src/lib/avatar-client-manager/machines/avatar-connection/types/events.d.ts +6 -1
  14. package/src/lib/avatar-client-manager/machines/avatar-connection/utils/build-progress-bar-variable.d.ts +3 -0
  15. package/src/lib/avatar-client-manager/machines/avatar-connection/utils/build-stage-variable.d.ts +3 -0
  16. package/src/lib/avatar-client-manager/machines/avatar-connection/utils/index.d.ts +5 -0
  17. package/src/lib/avatar-client-manager/machines/avatar-connection/utils/is-deep-equal.d.ts +1 -0
  18. package/src/lib/avatar-client-manager/machines/avatar-connection/utils/parse-progress-bar.d.ts +2 -0
  19. package/src/lib/avatar-client-manager/machines/avatar-connection/utils/parse-stage-directive.d.ts +2 -0
  20. package/src/lib/avatar-client-manager/machines/avatar-connection/utils/resolve-persistent-content.d.ts +13 -0
package/index.esm.js CHANGED
@@ -56,10 +56,10 @@ var functionBindNative = !fails$K(function () {
56
56
 
57
57
  var NATIVE_BIND$3 = functionBindNative;
58
58
 
59
- var call$C = Function.prototype.call;
59
+ var call$D = Function.prototype.call;
60
60
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
61
- var functionCall = NATIVE_BIND$3 ? call$C.bind(call$C) : function () {
62
- return call$C.apply(call$C, arguments);
61
+ var functionCall = NATIVE_BIND$3 ? call$D.bind(call$D) : function () {
62
+ return call$D.apply(call$D, arguments);
63
63
  };
64
64
 
65
65
  var objectPropertyIsEnumerable = {};
@@ -90,13 +90,13 @@ var createPropertyDescriptor$9 = function (bitmap, value) {
90
90
  var NATIVE_BIND$2 = functionBindNative;
91
91
 
92
92
  var FunctionPrototype$2 = Function.prototype;
93
- var call$B = FunctionPrototype$2.call;
93
+ var call$C = FunctionPrototype$2.call;
94
94
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
95
- var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$B, call$B);
95
+ var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$C, call$C);
96
96
 
97
97
  var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
98
98
  return function () {
99
- return call$B.apply(fn, arguments);
99
+ return call$C.apply(fn, arguments);
100
100
  };
101
101
  };
102
102
 
@@ -274,22 +274,22 @@ var tryToString$5 = tryToString$6;
274
274
  var $TypeError$s = TypeError;
275
275
 
276
276
  // `Assert: IsCallable(argument) is true`
277
- var aCallable$k = function (argument) {
277
+ var aCallable$l = function (argument) {
278
278
  if (isCallable$p(argument)) return argument;
279
279
  throw new $TypeError$s(tryToString$5(argument) + ' is not a function');
280
280
  };
281
281
 
282
- var aCallable$j = aCallable$k;
282
+ var aCallable$k = aCallable$l;
283
283
  var isNullOrUndefined$2 = isNullOrUndefined$4;
284
284
 
285
285
  // `GetMethod` abstract operation
286
286
  // https://tc39.es/ecma262/#sec-getmethod
287
287
  var getMethod$7 = function (V, P) {
288
288
  var func = V[P];
289
- return isNullOrUndefined$2(func) ? undefined : aCallable$j(func);
289
+ return isNullOrUndefined$2(func) ? undefined : aCallable$k(func);
290
290
  };
291
291
 
292
- var call$A = functionCall;
292
+ var call$B = functionCall;
293
293
  var isCallable$o = isCallable$t;
294
294
  var isObject$n = isObject$o;
295
295
 
@@ -299,9 +299,9 @@ var $TypeError$r = TypeError;
299
299
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
300
300
  var ordinaryToPrimitive$1 = function (input, pref) {
301
301
  var fn, val;
302
- if (pref === 'string' && isCallable$o(fn = input.toString) && !isObject$n(val = call$A(fn, input))) return val;
303
- if (isCallable$o(fn = input.valueOf) && !isObject$n(val = call$A(fn, input))) return val;
304
- if (pref !== 'string' && isCallable$o(fn = input.toString) && !isObject$n(val = call$A(fn, input))) return val;
302
+ if (pref === 'string' && isCallable$o(fn = input.toString) && !isObject$n(val = call$B(fn, input))) return val;
303
+ if (isCallable$o(fn = input.valueOf) && !isObject$n(val = call$B(fn, input))) return val;
304
+ if (pref !== 'string' && isCallable$o(fn = input.toString) && !isObject$n(val = call$B(fn, input))) return val;
305
305
  throw new $TypeError$r("Can't convert object to primitive value");
306
306
  };
307
307
 
@@ -395,7 +395,7 @@ var wellKnownSymbol$p = function (name) {
395
395
  } return WellKnownSymbolsStore[name];
396
396
  };
397
397
 
398
- var call$z = functionCall;
398
+ var call$A = functionCall;
399
399
  var isObject$m = isObject$o;
400
400
  var isSymbol$3 = isSymbol$4;
401
401
  var getMethod$6 = getMethod$7;
@@ -413,7 +413,7 @@ var toPrimitive$2 = function (input, pref) {
413
413
  var result;
414
414
  if (exoticToPrim) {
415
415
  if (pref === undefined) pref = 'default';
416
- result = call$z(exoticToPrim, input, pref);
416
+ result = call$A(exoticToPrim, input, pref);
417
417
  if (!isObject$m(result) || isSymbol$3(result)) return result;
418
418
  throw new $TypeError$q("Can't convert object to primitive value");
419
419
  }
@@ -455,7 +455,7 @@ var ie8DomDefine = !DESCRIPTORS$w && !fails$H(function () {
455
455
  });
456
456
 
457
457
  var DESCRIPTORS$v = descriptors;
458
- var call$y = functionCall;
458
+ var call$z = functionCall;
459
459
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
460
460
  var createPropertyDescriptor$8 = createPropertyDescriptor$9;
461
461
  var toIndexedObject$5 = toIndexedObject$6;
@@ -474,7 +474,7 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$v ? $getOwnPropertyDescriptor$1 :
474
474
  if (IE8_DOM_DEFINE$1) try {
475
475
  return $getOwnPropertyDescriptor$1(O, P);
476
476
  } catch (error) { /* empty */ }
477
- if (hasOwn$m(O, P)) return createPropertyDescriptor$8(!call$y(propertyIsEnumerableModule$1.f, O, P), O[P]);
477
+ if (hasOwn$m(O, P)) return createPropertyDescriptor$8(!call$z(propertyIsEnumerableModule$1.f, O, P), O[P]);
478
478
  };
479
479
 
480
480
  var objectDefineProperty = {};
@@ -498,7 +498,7 @@ var $String$6 = String;
498
498
  var $TypeError$p = TypeError;
499
499
 
500
500
  // `Assert: Type(argument) is Object`
501
- var anObject$t = function (argument) {
501
+ var anObject$u = function (argument) {
502
502
  if (isObject$k(argument)) return argument;
503
503
  throw new $TypeError$p($String$6(argument) + ' is not an object');
504
504
  };
@@ -506,7 +506,7 @@ var anObject$t = function (argument) {
506
506
  var DESCRIPTORS$t = descriptors;
507
507
  var IE8_DOM_DEFINE = ie8DomDefine;
508
508
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
509
- var anObject$s = anObject$t;
509
+ var anObject$t = anObject$u;
510
510
  var toPropertyKey$1 = toPropertyKey$3;
511
511
 
512
512
  var $TypeError$o = TypeError;
@@ -521,9 +521,9 @@ var WRITABLE = 'writable';
521
521
  // `Object.defineProperty` method
522
522
  // https://tc39.es/ecma262/#sec-object.defineproperty
523
523
  objectDefineProperty.f = DESCRIPTORS$t ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
524
- anObject$s(O);
524
+ anObject$t(O);
525
525
  P = toPropertyKey$1(P);
526
- anObject$s(Attributes);
526
+ anObject$t(Attributes);
527
527
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
528
528
  var current = $getOwnPropertyDescriptor(O, P);
529
529
  if (current && current[WRITABLE]) {
@@ -536,9 +536,9 @@ objectDefineProperty.f = DESCRIPTORS$t ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
536
536
  }
537
537
  } return $defineProperty(O, P, Attributes);
538
538
  } : $defineProperty : function defineProperty(O, P, Attributes) {
539
- anObject$s(O);
539
+ anObject$t(O);
540
540
  P = toPropertyKey$1(P);
541
- anObject$s(Attributes);
541
+ anObject$t(Attributes);
542
542
  if (IE8_DOM_DEFINE) try {
543
543
  return $defineProperty(O, P, Attributes);
544
544
  } catch (error) { /* empty */ }
@@ -908,13 +908,13 @@ var getBuiltIn$d = getBuiltIn$f;
908
908
  var uncurryThis$I = functionUncurryThis;
909
909
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
910
910
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
911
- var anObject$r = anObject$t;
911
+ var anObject$s = anObject$u;
912
912
 
913
913
  var concat$2 = uncurryThis$I([].concat);
914
914
 
915
915
  // all object keys, includes non-enumerable and symbols
916
916
  var ownKeys$1 = getBuiltIn$d('Reflect', 'ownKeys') || function ownKeys(it) {
917
- var keys = getOwnPropertyNamesModule.f(anObject$r(it));
917
+ var keys = getOwnPropertyNamesModule.f(anObject$s(it));
918
918
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
919
919
  return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
920
920
  };
@@ -1087,7 +1087,7 @@ var objectKeys$2 = Object.keys || function keys(O) {
1087
1087
  var DESCRIPTORS$o = descriptors;
1088
1088
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1089
1089
  var definePropertyModule$1 = objectDefineProperty;
1090
- var anObject$q = anObject$t;
1090
+ var anObject$r = anObject$u;
1091
1091
  var toIndexedObject$2 = toIndexedObject$6;
1092
1092
  var objectKeys$1 = objectKeys$2;
1093
1093
 
@@ -1095,7 +1095,7 @@ var objectKeys$1 = objectKeys$2;
1095
1095
  // https://tc39.es/ecma262/#sec-object.defineproperties
1096
1096
  // eslint-disable-next-line es/no-object-defineproperties -- safe
1097
1097
  objectDefineProperties.f = DESCRIPTORS$o && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1098
- anObject$q(O);
1098
+ anObject$r(O);
1099
1099
  var props = toIndexedObject$2(Properties);
1100
1100
  var keys = objectKeys$1(Properties);
1101
1101
  var length = keys.length;
@@ -1110,7 +1110,7 @@ var getBuiltIn$c = getBuiltIn$f;
1110
1110
  var html$2 = getBuiltIn$c('document', 'documentElement');
1111
1111
 
1112
1112
  /* global ActiveXObject -- old IE, WSH */
1113
- var anObject$p = anObject$t;
1113
+ var anObject$q = anObject$u;
1114
1114
  var definePropertiesModule = objectDefineProperties;
1115
1115
  var enumBugKeys = enumBugKeys$3;
1116
1116
  var hiddenKeys = hiddenKeys$4;
@@ -1185,7 +1185,7 @@ hiddenKeys[IE_PROTO] = true;
1185
1185
  var objectCreate = Object.create || function create(O, Properties) {
1186
1186
  var result;
1187
1187
  if (O !== null) {
1188
- EmptyConstructor[PROTOTYPE$1] = anObject$p(O);
1188
+ EmptyConstructor[PROTOTYPE$1] = anObject$q(O);
1189
1189
  result = new EmptyConstructor();
1190
1190
  EmptyConstructor[PROTOTYPE$1] = null;
1191
1191
  // add "__proto__" for Object.getPrototypeOf polyfill
@@ -1240,10 +1240,10 @@ var iteratorsCore = {
1240
1240
  BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1241
1241
  };
1242
1242
 
1243
- var $$V = _export;
1243
+ var $$W = _export;
1244
1244
  var globalThis$I = globalThis_1;
1245
1245
  var anInstance$7 = anInstance$8;
1246
- var anObject$o = anObject$t;
1246
+ var anObject$p = anObject$u;
1247
1247
  var isCallable$g = isCallable$t;
1248
1248
  var getPrototypeOf$3 = objectGetPrototypeOf;
1249
1249
  var defineBuiltInAccessor$d = defineBuiltInAccessor$e;
@@ -1280,7 +1280,7 @@ var defineIteratorPrototypeAccessor = function (key, value) {
1280
1280
  return value;
1281
1281
  },
1282
1282
  set: function (replacement) {
1283
- anObject$o(this);
1283
+ anObject$p(this);
1284
1284
  if (this === IteratorPrototype$3) throw new $TypeError$m("You can't redefine this property");
1285
1285
  if (hasOwn$f(this, key)) this[key] = replacement;
1286
1286
  else createProperty$4(this, key, replacement);
@@ -1299,7 +1299,7 @@ IteratorConstructor.prototype = IteratorPrototype$3;
1299
1299
 
1300
1300
  // `Iterator` constructor
1301
1301
  // https://tc39.es/ecma262/#sec-iterator
1302
- $$V({ global: true, constructor: true, forced: FORCED$d }, {
1302
+ $$W({ global: true, constructor: true, forced: FORCED$d }, {
1303
1303
  Iterator: IteratorConstructor
1304
1304
  });
1305
1305
 
@@ -1314,14 +1314,14 @@ var functionUncurryThisClause = function (fn) {
1314
1314
  };
1315
1315
 
1316
1316
  var uncurryThis$G = functionUncurryThisClause;
1317
- var aCallable$i = aCallable$k;
1317
+ var aCallable$j = aCallable$l;
1318
1318
  var NATIVE_BIND$1 = functionBindNative;
1319
1319
 
1320
1320
  var bind$a = uncurryThis$G(uncurryThis$G.bind);
1321
1321
 
1322
1322
  // optional / simple context binding
1323
1323
  var functionBindContext = function (fn, that) {
1324
- aCallable$i(fn);
1324
+ aCallable$j(fn);
1325
1325
  return that === undefined ? fn : NATIVE_BIND$1 ? bind$a(fn, that) : function (/* ...args */) {
1326
1326
  return fn.apply(that, arguments);
1327
1327
  };
@@ -1393,9 +1393,9 @@ var getIteratorMethod$5 = function (it) {
1393
1393
  || Iterators$3[classof$f(it)];
1394
1394
  };
1395
1395
 
1396
- var call$x = functionCall;
1397
- var aCallable$h = aCallable$k;
1398
- var anObject$n = anObject$t;
1396
+ var call$y = functionCall;
1397
+ var aCallable$i = aCallable$l;
1398
+ var anObject$o = anObject$u;
1399
1399
  var tryToString$4 = tryToString$6;
1400
1400
  var getIteratorMethod$4 = getIteratorMethod$5;
1401
1401
 
@@ -1403,44 +1403,44 @@ var $TypeError$l = TypeError;
1403
1403
 
1404
1404
  var getIterator$4 = function (argument, usingIterator) {
1405
1405
  var iteratorMethod = arguments.length < 2 ? getIteratorMethod$4(argument) : usingIterator;
1406
- if (aCallable$h(iteratorMethod)) return anObject$n(call$x(iteratorMethod, argument));
1406
+ if (aCallable$i(iteratorMethod)) return anObject$o(call$y(iteratorMethod, argument));
1407
1407
  throw new $TypeError$l(tryToString$4(argument) + ' is not iterable');
1408
1408
  };
1409
1409
 
1410
- var call$w = functionCall;
1411
- var anObject$m = anObject$t;
1410
+ var call$x = functionCall;
1411
+ var anObject$n = anObject$u;
1412
1412
  var getMethod$4 = getMethod$7;
1413
1413
 
1414
- var iteratorClose$c = function (iterator, kind, value) {
1414
+ var iteratorClose$d = function (iterator, kind, value) {
1415
1415
  var innerResult, innerError;
1416
- anObject$m(iterator);
1416
+ anObject$n(iterator);
1417
1417
  try {
1418
1418
  innerResult = getMethod$4(iterator, 'return');
1419
1419
  if (!innerResult) {
1420
1420
  if (kind === 'throw') throw value;
1421
1421
  return value;
1422
1422
  }
1423
- innerResult = call$w(innerResult, iterator);
1423
+ innerResult = call$x(innerResult, iterator);
1424
1424
  } catch (error) {
1425
1425
  innerError = true;
1426
1426
  innerResult = error;
1427
1427
  }
1428
1428
  if (kind === 'throw') throw value;
1429
1429
  if (innerError) throw innerResult;
1430
- anObject$m(innerResult);
1430
+ anObject$n(innerResult);
1431
1431
  return value;
1432
1432
  };
1433
1433
 
1434
1434
  var bind$9 = functionBindContext;
1435
- var call$v = functionCall;
1436
- var anObject$l = anObject$t;
1435
+ var call$w = functionCall;
1436
+ var anObject$m = anObject$u;
1437
1437
  var tryToString$3 = tryToString$6;
1438
1438
  var isArrayIteratorMethod$2 = isArrayIteratorMethod$3;
1439
1439
  var lengthOfArrayLike$f = lengthOfArrayLike$h;
1440
1440
  var isPrototypeOf$6 = objectIsPrototypeOf;
1441
1441
  var getIterator$3 = getIterator$4;
1442
1442
  var getIteratorMethod$3 = getIteratorMethod$5;
1443
- var iteratorClose$b = iteratorClose$c;
1443
+ var iteratorClose$c = iteratorClose$d;
1444
1444
 
1445
1445
  var $TypeError$k = TypeError;
1446
1446
 
@@ -1451,7 +1451,7 @@ var Result = function (stopped, result) {
1451
1451
 
1452
1452
  var ResultPrototype = Result.prototype;
1453
1453
 
1454
- var iterate$9 = function (iterable, unboundFunction, options) {
1454
+ var iterate$a = function (iterable, unboundFunction, options) {
1455
1455
  var that = options && options.that;
1456
1456
  var AS_ENTRIES = !!(options && options.AS_ENTRIES);
1457
1457
  var IS_RECORD = !!(options && options.IS_RECORD);
@@ -1461,13 +1461,13 @@ var iterate$9 = function (iterable, unboundFunction, options) {
1461
1461
  var iterator, iterFn, index, length, result, next, step;
1462
1462
 
1463
1463
  var stop = function (condition) {
1464
- if (iterator) iteratorClose$b(iterator, 'normal');
1464
+ if (iterator) iteratorClose$c(iterator, 'normal');
1465
1465
  return new Result(true, condition);
1466
1466
  };
1467
1467
 
1468
1468
  var callFn = function (value) {
1469
1469
  if (AS_ENTRIES) {
1470
- anObject$l(value);
1470
+ anObject$m(value);
1471
1471
  return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
1472
1472
  } return INTERRUPTED ? fn(value, stop) : fn(value);
1473
1473
  };
@@ -1490,11 +1490,11 @@ var iterate$9 = function (iterable, unboundFunction, options) {
1490
1490
  }
1491
1491
 
1492
1492
  next = IS_RECORD ? iterable.next : iterator.next;
1493
- while (!(step = call$v(next, iterator)).done) {
1493
+ while (!(step = call$w(next, iterator)).done) {
1494
1494
  try {
1495
1495
  result = callFn(step.value);
1496
1496
  } catch (error) {
1497
- iteratorClose$b(iterator, 'throw', error);
1497
+ iteratorClose$c(iterator, 'throw', error);
1498
1498
  }
1499
1499
  if (typeof result == 'object' && result && isPrototypeOf$6(ResultPrototype, result)) return result;
1500
1500
  } return new Result(false);
@@ -1502,7 +1502,7 @@ var iterate$9 = function (iterable, unboundFunction, options) {
1502
1502
 
1503
1503
  // `GetIteratorDirect(obj)` abstract operation
1504
1504
  // https://tc39.es/ecma262/#sec-getiteratordirect
1505
- var getIteratorDirect$7 = function (obj) {
1505
+ var getIteratorDirect$8 = function (obj) {
1506
1506
  return {
1507
1507
  iterator: obj,
1508
1508
  next: obj.next,
@@ -1513,7 +1513,7 @@ var getIteratorDirect$7 = function (obj) {
1513
1513
  var globalThis$H = globalThis_1;
1514
1514
 
1515
1515
  // https://github.com/tc39/ecma262/pull/3467
1516
- var iteratorHelperWithoutClosingOnEarlyError$6 = function (METHOD_NAME, ExpectedError) {
1516
+ var iteratorHelperWithoutClosingOnEarlyError$7 = function (METHOD_NAME, ExpectedError) {
1517
1517
  var Iterator = globalThis$H.Iterator;
1518
1518
  var IteratorPrototype = Iterator && Iterator.prototype;
1519
1519
  var method = IteratorPrototype && IteratorPrototype[METHOD_NAME];
@@ -1533,33 +1533,33 @@ var iteratorHelperWithoutClosingOnEarlyError$6 = function (METHOD_NAME, Expected
1533
1533
  if (!CLOSED) return method;
1534
1534
  };
1535
1535
 
1536
- var $$U = _export;
1537
- var call$u = functionCall;
1538
- var iterate$8 = iterate$9;
1539
- var aCallable$g = aCallable$k;
1540
- var anObject$k = anObject$t;
1541
- var getIteratorDirect$6 = getIteratorDirect$7;
1542
- var iteratorClose$a = iteratorClose$c;
1543
- var iteratorHelperWithoutClosingOnEarlyError$5 = iteratorHelperWithoutClosingOnEarlyError$6;
1536
+ var $$V = _export;
1537
+ var call$v = functionCall;
1538
+ var iterate$9 = iterate$a;
1539
+ var aCallable$h = aCallable$l;
1540
+ var anObject$l = anObject$u;
1541
+ var getIteratorDirect$7 = getIteratorDirect$8;
1542
+ var iteratorClose$b = iteratorClose$d;
1543
+ var iteratorHelperWithoutClosingOnEarlyError$6 = iteratorHelperWithoutClosingOnEarlyError$7;
1544
1544
 
1545
- var forEachWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError$5('forEach', TypeError);
1545
+ var forEachWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError$6('forEach', TypeError);
1546
1546
 
1547
1547
  // `Iterator.prototype.forEach` method
1548
1548
  // https://tc39.es/ecma262/#sec-iterator.prototype.foreach
1549
- $$U({ target: 'Iterator', proto: true, real: true, forced: forEachWithoutClosingOnEarlyError }, {
1549
+ $$V({ target: 'Iterator', proto: true, real: true, forced: forEachWithoutClosingOnEarlyError }, {
1550
1550
  forEach: function forEach(fn) {
1551
- anObject$k(this);
1551
+ anObject$l(this);
1552
1552
  try {
1553
- aCallable$g(fn);
1553
+ aCallable$h(fn);
1554
1554
  } catch (error) {
1555
- iteratorClose$a(this, 'throw', error);
1555
+ iteratorClose$b(this, 'throw', error);
1556
1556
  }
1557
1557
 
1558
- if (forEachWithoutClosingOnEarlyError) return call$u(forEachWithoutClosingOnEarlyError, this, fn);
1558
+ if (forEachWithoutClosingOnEarlyError) return call$v(forEachWithoutClosingOnEarlyError, this, fn);
1559
1559
 
1560
- var record = getIteratorDirect$6(this);
1560
+ var record = getIteratorDirect$7(this);
1561
1561
  var counter = 0;
1562
- iterate$8(record, function (value) {
1562
+ iterate$9(record, function (value) {
1563
1563
  fn(value, counter++);
1564
1564
  }, { IS_RECORD: true });
1565
1565
  }
@@ -1597,7 +1597,7 @@ var stringRepeat = function repeat(count) {
1597
1597
  return result;
1598
1598
  };
1599
1599
 
1600
- var $$T = _export;
1600
+ var $$U = _export;
1601
1601
  var uncurryThis$E = functionUncurryThis;
1602
1602
  var toIntegerOrInfinity$8 = toIntegerOrInfinity$c;
1603
1603
  var thisNumberValue = thisNumberValue$1;
@@ -1671,7 +1671,7 @@ var FORCED$c = fails$A(function () {
1671
1671
 
1672
1672
  // `Number.prototype.toFixed` method
1673
1673
  // https://tc39.es/ecma262/#sec-number.prototype.tofixed
1674
- $$T({ target: 'Number', proto: true, forced: FORCED$c }, {
1674
+ $$U({ target: 'Number', proto: true, forced: FORCED$c }, {
1675
1675
  toFixed: function toFixed(fractionDigits) {
1676
1676
  var number = thisNumberValue(this);
1677
1677
  var fractDigits = toIntegerOrInfinity$8(fractionDigits);
@@ -1730,7 +1730,7 @@ $$T({ target: 'Number', proto: true, forced: FORCED$c }, {
1730
1730
 
1731
1731
  var DESCRIPTORS$m = descriptors;
1732
1732
  var uncurryThis$D = functionUncurryThis;
1733
- var call$t = functionCall;
1733
+ var call$u = functionCall;
1734
1734
  var fails$z = fails$M;
1735
1735
  var objectKeys = objectKeys$2;
1736
1736
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
@@ -1781,18 +1781,18 @@ var objectAssign = !$assign || fails$z(function () {
1781
1781
  var key;
1782
1782
  while (length > j) {
1783
1783
  key = keys[j++];
1784
- if (!DESCRIPTORS$m || call$t(propertyIsEnumerable, S, key)) T[key] = S[key];
1784
+ if (!DESCRIPTORS$m || call$u(propertyIsEnumerable, S, key)) T[key] = S[key];
1785
1785
  }
1786
1786
  } return T;
1787
1787
  } : $assign;
1788
1788
 
1789
- var $$S = _export;
1789
+ var $$T = _export;
1790
1790
  var assign$2 = objectAssign;
1791
1791
 
1792
1792
  // `Object.assign` method
1793
1793
  // https://tc39.es/ecma262/#sec-object.assign
1794
1794
  // eslint-disable-next-line es/no-object-assign -- required for testing
1795
- $$S({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign$2 }, {
1795
+ $$T({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign$2 }, {
1796
1796
  assign: assign$2
1797
1797
  });
1798
1798
 
@@ -1843,12 +1843,12 @@ var FLAGS_GETTER_IS_CORRECT = !fails$y(function () {
1843
1843
 
1844
1844
  var regexpFlagsDetection = { correct: FLAGS_GETTER_IS_CORRECT };
1845
1845
 
1846
- var anObject$j = anObject$t;
1846
+ var anObject$k = anObject$u;
1847
1847
 
1848
1848
  // `RegExp.prototype.flags` getter implementation
1849
1849
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1850
1850
  var regexpFlags$1 = function () {
1851
- var that = anObject$j(this);
1851
+ var that = anObject$k(this);
1852
1852
  var result = '';
1853
1853
  if (that.hasIndices) result += 'd';
1854
1854
  if (that.global) result += 'g';
@@ -1861,7 +1861,7 @@ var regexpFlags$1 = function () {
1861
1861
  return result;
1862
1862
  };
1863
1863
 
1864
- var call$s = functionCall;
1864
+ var call$t = functionCall;
1865
1865
  var hasOwn$e = hasOwnProperty_1;
1866
1866
  var isPrototypeOf$5 = objectIsPrototypeOf;
1867
1867
  var regExpFlagsDetection$1 = regexpFlagsDetection;
@@ -1873,13 +1873,13 @@ var regexpGetFlags = regExpFlagsDetection$1.correct ? function (it) {
1873
1873
  return it.flags;
1874
1874
  } : function (it) {
1875
1875
  return (!regExpFlagsDetection$1.correct && isPrototypeOf$5(RegExpPrototype$4, it) && !hasOwn$e(it, 'flags'))
1876
- ? call$s(regExpFlagsGetterImplementation$1, it)
1876
+ ? call$t(regExpFlagsGetterImplementation$1, it)
1877
1877
  : it.flags;
1878
1878
  };
1879
1879
 
1880
1880
  var PROPER_FUNCTION_NAME$3 = functionName.PROPER;
1881
1881
  var defineBuiltIn$c = defineBuiltIn$f;
1882
- var anObject$i = anObject$t;
1882
+ var anObject$j = anObject$u;
1883
1883
  var $toString$2 = toString$k;
1884
1884
  var fails$x = fails$M;
1885
1885
  var getRegExpFlags$2 = regexpGetFlags;
@@ -1896,7 +1896,7 @@ var INCORRECT_NAME = PROPER_FUNCTION_NAME$3 && nativeToString.name !== TO_STRING
1896
1896
  // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
1897
1897
  if (NOT_GENERIC || INCORRECT_NAME) {
1898
1898
  defineBuiltIn$c(RegExpPrototype$3, TO_STRING, function toString() {
1899
- var R = anObject$i(this);
1899
+ var R = anObject$j(this);
1900
1900
  var pattern = $toString$2(R.source);
1901
1901
  var flags = $toString$2(getRegExpFlags$2(R));
1902
1902
  return '/' + pattern + '/' + flags;
@@ -6364,12 +6364,19 @@ const contentState = {
6364
6364
  logger: context.logger
6365
6365
  })
6366
6366
  }],
6367
+ // Re-sync the `avatar_stage` (persistent content only) and `progress_bar`
6368
+ // request variables after any change (agent, user close, host setLocalContent)
6369
+ // so the next turn sees what is on screen.
6370
+ always: {
6371
+ guard: 'isRequestVariablesStale',
6372
+ actions: ['sendUpdateGenieContext', 'trackPushedStageContent', 'trackPushedProgressBar']
6373
+ },
6367
6374
  on: {
6368
6375
  [AvatarConnectionMachineEventTypes.SetContent]: {
6369
6376
  actions: ['setContentData']
6370
6377
  },
6371
6378
  [AvatarConnectionMachineEventTypes.AgentRawTextMessageCompleted]: {
6372
- actions: ['setContentData']
6379
+ actions: ['setContentData', 'setProgressBarData']
6373
6380
  }
6374
6381
  }
6375
6382
  };
@@ -7084,20 +7091,20 @@ var NATIVE_BIND = functionBindNative;
7084
7091
 
7085
7092
  var FunctionPrototype = Function.prototype;
7086
7093
  var apply$6 = FunctionPrototype.apply;
7087
- var call$r = FunctionPrototype.call;
7094
+ var call$s = FunctionPrototype.call;
7088
7095
 
7089
7096
  // eslint-disable-next-line es/no-function-prototype-bind, es/no-reflect -- safe
7090
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$r.bind(apply$6) : function () {
7091
- return call$r.apply(apply$6, arguments);
7097
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$s.bind(apply$6) : function () {
7098
+ return call$s.apply(apply$6, arguments);
7092
7099
  });
7093
7100
 
7094
7101
  var uncurryThis$C = functionUncurryThis;
7095
- var aCallable$f = aCallable$k;
7102
+ var aCallable$g = aCallable$l;
7096
7103
 
7097
7104
  var functionUncurryThisAccessor = function (object, key, method) {
7098
7105
  try {
7099
7106
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
7100
- return uncurryThis$C(aCallable$f(Object.getOwnPropertyDescriptor(object, key)[method]));
7107
+ return uncurryThis$C(aCallable$g(Object.getOwnPropertyDescriptor(object, key)[method]));
7101
7108
  } catch (error) { /* empty */ }
7102
7109
  };
7103
7110
 
@@ -7299,7 +7306,7 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
7299
7306
  };
7300
7307
 
7301
7308
  /* eslint-disable no-unused-vars -- required for functions `.length` */
7302
- var $$R = _export;
7309
+ var $$S = _export;
7303
7310
  var globalThis$F = globalThis_1;
7304
7311
  var apply$5 = functionApply;
7305
7312
  var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
@@ -7314,7 +7321,7 @@ var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
7314
7321
  var O = {};
7315
7322
  // eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
7316
7323
  O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$b);
7317
- $$R({ global: true, constructor: true, arity: 1, forced: FORCED$b }, O);
7324
+ $$S({ global: true, constructor: true, arity: 1, forced: FORCED$b }, O);
7318
7325
  };
7319
7326
 
7320
7327
  var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
@@ -7322,7 +7329,7 @@ var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
7322
7329
  var O = {};
7323
7330
  // eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
7324
7331
  O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$b);
7325
- $$R({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$b }, O);
7332
+ $$S({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$b }, O);
7326
7333
  }
7327
7334
  };
7328
7335
 
@@ -8004,7 +8011,7 @@ var doesNotExceedSafeInteger$2 = function (it) {
8004
8011
  return it;
8005
8012
  };
8006
8013
 
8007
- var $$Q = _export;
8014
+ var $$R = _export;
8008
8015
  var toObject$9 = toObject$d;
8009
8016
  var lengthOfArrayLike$e = lengthOfArrayLike$h;
8010
8017
  var setArrayLength$2 = arraySetLength;
@@ -8030,7 +8037,7 @@ var FORCED$a = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength$1();
8030
8037
 
8031
8038
  // `Array.prototype.push` method
8032
8039
  // https://tc39.es/ecma262/#sec-array.prototype.push
8033
- $$Q({ target: 'Array', proto: true, arity: 1, forced: FORCED$a }, {
8040
+ $$R({ target: 'Array', proto: true, arity: 1, forced: FORCED$a }, {
8034
8041
  // eslint-disable-next-line no-unused-vars -- required for `.length`
8035
8042
  push: function push(item) {
8036
8043
  var O = toObject$9(this);
@@ -8059,13 +8066,13 @@ var createIterResultObject$4 = function (value, done) {
8059
8066
  return { value: value, done: done };
8060
8067
  };
8061
8068
 
8062
- var iteratorClose$9 = iteratorClose$c;
8069
+ var iteratorClose$a = iteratorClose$d;
8063
8070
 
8064
8071
  var iteratorCloseAll$1 = function (iters, kind, value) {
8065
8072
  for (var i = iters.length - 1; i >= 0; i--) {
8066
8073
  if (iters[i] === undefined) continue;
8067
8074
  try {
8068
- value = iteratorClose$9(iters[i].iterator, kind, value);
8075
+ value = iteratorClose$a(iters[i].iterator, kind, value);
8069
8076
  } catch (error) {
8070
8077
  kind = 'throw';
8071
8078
  value = error;
@@ -8075,7 +8082,7 @@ var iteratorCloseAll$1 = function (iters, kind, value) {
8075
8082
  return value;
8076
8083
  };
8077
8084
 
8078
- var call$q = functionCall;
8085
+ var call$r = functionCall;
8079
8086
  var create$7 = objectCreate;
8080
8087
  var createNonEnumerableProperty$7 = createNonEnumerableProperty$d;
8081
8088
  var defineBuiltIns$2 = defineBuiltIns$3;
@@ -8084,7 +8091,7 @@ var InternalStateModule$9 = internalState;
8084
8091
  var getMethod$3 = getMethod$7;
8085
8092
  var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;
8086
8093
  var createIterResultObject$3 = createIterResultObject$4;
8087
- var iteratorClose$8 = iteratorClose$c;
8094
+ var iteratorClose$9 = iteratorClose$d;
8088
8095
  var iteratorCloseAll = iteratorCloseAll$1;
8089
8096
 
8090
8097
  var TO_STRING_TAG$2 = wellKnownSymbol$h('toStringTag');
@@ -8119,19 +8126,19 @@ var createIteratorProxyPrototype = function (IS_ITERATOR) {
8119
8126
  state.done = true;
8120
8127
  if (IS_ITERATOR) {
8121
8128
  var returnMethod = getMethod$3(iterator, 'return');
8122
- return returnMethod ? call$q(returnMethod, iterator) : createIterResultObject$3(undefined, true);
8129
+ return returnMethod ? call$r(returnMethod, iterator) : createIterResultObject$3(undefined, true);
8123
8130
  }
8124
8131
  if (state.inner) try {
8125
- iteratorClose$8(state.inner.iterator, NORMAL);
8132
+ iteratorClose$9(state.inner.iterator, NORMAL);
8126
8133
  } catch (error) {
8127
- return iteratorClose$8(iterator, THROW, error);
8134
+ return iteratorClose$9(iterator, THROW, error);
8128
8135
  }
8129
8136
  if (state.openIters) try {
8130
8137
  iteratorCloseAll(state.openIters, NORMAL);
8131
8138
  } catch (error) {
8132
- return iteratorClose$8(iterator, THROW, error);
8139
+ return iteratorClose$9(iterator, THROW, error);
8133
8140
  }
8134
- if (iterator) iteratorClose$8(iterator, NORMAL);
8141
+ if (iterator) iteratorClose$9(iterator, NORMAL);
8135
8142
  return createIterResultObject$3(undefined, true);
8136
8143
  }
8137
8144
  });
@@ -8161,15 +8168,15 @@ var iteratorCreateProxy = function (nextHandler, IS_ITERATOR, RETURN_HANDLER_RES
8161
8168
  return IteratorProxy;
8162
8169
  };
8163
8170
 
8164
- var anObject$h = anObject$t;
8165
- var iteratorClose$7 = iteratorClose$c;
8171
+ var anObject$i = anObject$u;
8172
+ var iteratorClose$8 = iteratorClose$d;
8166
8173
 
8167
8174
  // call something on iterator step with safe closing on error
8168
8175
  var callWithSafeIterationClosing$3 = function (iterator, fn, value, ENTRIES) {
8169
8176
  try {
8170
- return ENTRIES ? fn(anObject$h(value)[0], value[1]) : fn(value);
8177
+ return ENTRIES ? fn(anObject$i(value)[0], value[1]) : fn(value);
8171
8178
  } catch (error) {
8172
- iteratorClose$7(iterator, 'throw', error);
8179
+ iteratorClose$8(iterator, 'throw', error);
8173
8180
  }
8174
8181
  };
8175
8182
 
@@ -8185,44 +8192,44 @@ var iteratorHelperThrowsOnInvalidIterator$2 = function (methodName, argument) {
8185
8192
  }
8186
8193
  };
8187
8194
 
8188
- var $$P = _export;
8189
- var call$p = functionCall;
8190
- var aCallable$e = aCallable$k;
8191
- var anObject$g = anObject$t;
8192
- var getIteratorDirect$5 = getIteratorDirect$7;
8195
+ var $$Q = _export;
8196
+ var call$q = functionCall;
8197
+ var aCallable$f = aCallable$l;
8198
+ var anObject$h = anObject$u;
8199
+ var getIteratorDirect$6 = getIteratorDirect$8;
8193
8200
  var createIteratorProxy$1 = iteratorCreateProxy;
8194
8201
  var callWithSafeIterationClosing$2 = callWithSafeIterationClosing$3;
8195
- var iteratorClose$6 = iteratorClose$c;
8202
+ var iteratorClose$7 = iteratorClose$d;
8196
8203
  var iteratorHelperThrowsOnInvalidIterator$1 = iteratorHelperThrowsOnInvalidIterator$2;
8197
- var iteratorHelperWithoutClosingOnEarlyError$4 = iteratorHelperWithoutClosingOnEarlyError$6;
8204
+ var iteratorHelperWithoutClosingOnEarlyError$5 = iteratorHelperWithoutClosingOnEarlyError$7;
8198
8205
 
8199
8206
  var MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR = !iteratorHelperThrowsOnInvalidIterator$1('map', function () { /* empty */ });
8200
8207
  var mapWithoutClosingOnEarlyError = !MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR
8201
- && iteratorHelperWithoutClosingOnEarlyError$4('map', TypeError);
8208
+ && iteratorHelperWithoutClosingOnEarlyError$5('map', TypeError);
8202
8209
 
8203
8210
  var FORCED$9 = MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR || mapWithoutClosingOnEarlyError;
8204
8211
 
8205
8212
  var IteratorProxy$1 = createIteratorProxy$1(function () {
8206
8213
  var iterator = this.iterator;
8207
- var result = anObject$g(call$p(this.next, iterator));
8214
+ var result = anObject$h(call$q(this.next, iterator));
8208
8215
  var done = this.done = !!result.done;
8209
8216
  if (!done) return callWithSafeIterationClosing$2(iterator, this.mapper, [result.value, this.counter++], true);
8210
8217
  });
8211
8218
 
8212
8219
  // `Iterator.prototype.map` method
8213
8220
  // https://tc39.es/ecma262/#sec-iterator.prototype.map
8214
- $$P({ target: 'Iterator', proto: true, real: true, forced: FORCED$9 }, {
8221
+ $$Q({ target: 'Iterator', proto: true, real: true, forced: FORCED$9 }, {
8215
8222
  map: function map(mapper) {
8216
- anObject$g(this);
8223
+ anObject$h(this);
8217
8224
  try {
8218
- aCallable$e(mapper);
8225
+ aCallable$f(mapper);
8219
8226
  } catch (error) {
8220
- iteratorClose$6(this, 'throw', error);
8227
+ iteratorClose$7(this, 'throw', error);
8221
8228
  }
8222
8229
 
8223
- if (mapWithoutClosingOnEarlyError) return call$p(mapWithoutClosingOnEarlyError, this, mapper);
8230
+ if (mapWithoutClosingOnEarlyError) return call$q(mapWithoutClosingOnEarlyError, this, mapper);
8224
8231
 
8225
- return new IteratorProxy$1(getIteratorDirect$5(this), {
8232
+ return new IteratorProxy$1(getIteratorDirect$6(this), {
8226
8233
  mapper: mapper
8227
8234
  });
8228
8235
  }
@@ -8386,8 +8393,8 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
8386
8393
  return IteratorConstructor;
8387
8394
  };
8388
8395
 
8389
- var $$O = _export;
8390
- var call$o = functionCall;
8396
+ var $$P = _export;
8397
+ var call$p = functionCall;
8391
8398
  var FunctionName$1 = functionName;
8392
8399
  var isCallable$d = isCallable$t;
8393
8400
  var createIteratorConstructor$1 = iteratorCreateConstructor;
@@ -8459,7 +8466,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
8459
8466
  createNonEnumerableProperty$6(IterablePrototype, 'name', VALUES);
8460
8467
  } else {
8461
8468
  INCORRECT_VALUES_NAME = true;
8462
- defaultIterator = function values() { return call$o(nativeIterator, this); };
8469
+ defaultIterator = function values() { return call$p(nativeIterator, this); };
8463
8470
  }
8464
8471
  }
8465
8472
 
@@ -8474,7 +8481,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
8474
8481
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
8475
8482
  defineBuiltIn$a(IterablePrototype, KEY, methods[KEY]);
8476
8483
  }
8477
- } else $$O({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
8484
+ } else $$P({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
8478
8485
  }
8479
8486
 
8480
8487
  // define iterator
@@ -8603,7 +8610,7 @@ var regexpUnsupportedNcg = fails$s(function () {
8603
8610
 
8604
8611
  /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
8605
8612
  /* eslint-disable regexp/no-useless-quantifier -- testing */
8606
- var call$n = functionCall;
8613
+ var call$o = functionCall;
8607
8614
  var uncurryThis$A = functionUncurryThis;
8608
8615
  var toString$h = toString$k;
8609
8616
  var regexpFlags = regexpFlags$1;
@@ -8625,8 +8632,8 @@ var stringSlice$9 = uncurryThis$A(''.slice);
8625
8632
  var UPDATES_LAST_INDEX_WRONG = (function () {
8626
8633
  var re1 = /a/;
8627
8634
  var re2 = /b*/g;
8628
- call$n(nativeExec, re1, 'a');
8629
- call$n(nativeExec, re2, 'a');
8635
+ call$o(nativeExec, re1, 'a');
8636
+ call$o(nativeExec, re2, 'a');
8630
8637
  return re1.lastIndex !== 0 || re2.lastIndex !== 0;
8631
8638
  })();
8632
8639
 
@@ -8647,14 +8654,14 @@ if (PATCH) {
8647
8654
 
8648
8655
  if (raw) {
8649
8656
  raw.lastIndex = re.lastIndex;
8650
- result = call$n(patchedExec, raw, str);
8657
+ result = call$o(patchedExec, raw, str);
8651
8658
  re.lastIndex = raw.lastIndex;
8652
8659
  return result;
8653
8660
  }
8654
8661
 
8655
8662
  var groups = state.groups;
8656
8663
  var sticky = UNSUPPORTED_Y$2 && re.sticky;
8657
- var flags = call$n(regexpFlags, re);
8664
+ var flags = call$o(regexpFlags, re);
8658
8665
  var source = re.source;
8659
8666
  var charsAdded = 0;
8660
8667
  var strCopy = str;
@@ -8682,7 +8689,7 @@ if (PATCH) {
8682
8689
  }
8683
8690
  if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
8684
8691
 
8685
- match = call$n(nativeExec, sticky ? reCopy : re, strCopy);
8692
+ match = call$o(nativeExec, sticky ? reCopy : re, strCopy);
8686
8693
 
8687
8694
  if (sticky) {
8688
8695
  if (match) {
@@ -8697,7 +8704,7 @@ if (PATCH) {
8697
8704
  if (NPCG_INCLUDED && match && match.length > 1) {
8698
8705
  // Fix browsers whose `exec` methods don't consistently return `undefined`
8699
8706
  // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
8700
- call$n(nativeReplace, match[0], reCopy, function () {
8707
+ call$o(nativeReplace, match[0], reCopy, function () {
8701
8708
  for (i = 1; i < arguments.length - 2; i++) {
8702
8709
  if (arguments[i] === undefined) match[i] = undefined;
8703
8710
  }
@@ -8718,18 +8725,18 @@ if (PATCH) {
8718
8725
 
8719
8726
  var regexpExec$2 = patchedExec;
8720
8727
 
8721
- var $$N = _export;
8728
+ var $$O = _export;
8722
8729
  var exec$a = regexpExec$2;
8723
8730
 
8724
8731
  // `RegExp.prototype.exec` method
8725
8732
  // https://tc39.es/ecma262/#sec-regexp.prototype.exec
8726
- $$N({ target: 'RegExp', proto: true, forced: /./.exec !== exec$a }, {
8733
+ $$O({ target: 'RegExp', proto: true, forced: /./.exec !== exec$a }, {
8727
8734
  exec: exec$a
8728
8735
  });
8729
8736
 
8730
8737
  // TODO: Remove from `core-js@4` since it's moved to entry points
8731
8738
 
8732
- var call$m = functionCall;
8739
+ var call$n = functionCall;
8733
8740
  var defineBuiltIn$9 = defineBuiltIn$f;
8734
8741
  var regexpExec$1 = regexpExec$2;
8735
8742
  var fails$r = fails$M;
@@ -8791,9 +8798,9 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
8791
8798
  // The native String method already delegates to @@method (this
8792
8799
  // polyfilled function), leasing to infinite recursion.
8793
8800
  // We avoid it by directly calling the native @@method method.
8794
- return { done: true, value: call$m(nativeRegExpMethod, regexp, str, arg2) };
8801
+ return { done: true, value: call$n(nativeRegExpMethod, regexp, str, arg2) };
8795
8802
  }
8796
- return { done: true, value: call$m(nativeMethod, str, regexp, arg2) };
8803
+ return { done: true, value: call$n(nativeMethod, str, regexp, arg2) };
8797
8804
  }
8798
8805
  return { done: false };
8799
8806
  });
@@ -8813,8 +8820,8 @@ var sameValue$1 = Object.is || function is(x, y) {
8813
8820
  return x === y ? x !== 0 || 1 / x === 1 / y : x !== x && y !== y;
8814
8821
  };
8815
8822
 
8816
- var call$l = functionCall;
8817
- var anObject$f = anObject$t;
8823
+ var call$m = functionCall;
8824
+ var anObject$g = anObject$u;
8818
8825
  var isCallable$c = isCallable$t;
8819
8826
  var classof$c = classofRaw$2;
8820
8827
  var regexpExec = regexpExec$2;
@@ -8826,17 +8833,17 @@ var $TypeError$g = TypeError;
8826
8833
  var regexpExecAbstract = function (R, S) {
8827
8834
  var exec = R.exec;
8828
8835
  if (isCallable$c(exec)) {
8829
- var result = call$l(exec, R, S);
8830
- if (result !== null) anObject$f(result);
8836
+ var result = call$m(exec, R, S);
8837
+ if (result !== null) anObject$g(result);
8831
8838
  return result;
8832
8839
  }
8833
- if (classof$c(R) === 'RegExp') return call$l(regexpExec, R, S);
8840
+ if (classof$c(R) === 'RegExp') return call$m(regexpExec, R, S);
8834
8841
  throw new $TypeError$g('RegExp#exec called on incompatible receiver');
8835
8842
  };
8836
8843
 
8837
- var call$k = functionCall;
8844
+ var call$l = functionCall;
8838
8845
  var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic;
8839
- var anObject$e = anObject$t;
8846
+ var anObject$f = anObject$u;
8840
8847
  var isObject$d = isObject$o;
8841
8848
  var requireObjectCoercible$6 = requireObjectCoercible$b;
8842
8849
  var sameValue = sameValue$1;
@@ -8852,12 +8859,12 @@ fixRegExpWellKnownSymbolLogic$2('search', function (SEARCH, nativeSearch, maybeC
8852
8859
  function search(regexp) {
8853
8860
  var O = requireObjectCoercible$6(this);
8854
8861
  var searcher = isObject$d(regexp) ? getMethod$2(regexp, SEARCH) : undefined;
8855
- return searcher ? call$k(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString$g(O));
8862
+ return searcher ? call$l(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString$g(O));
8856
8863
  },
8857
8864
  // `RegExp.prototype[@@search]` method
8858
8865
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@search
8859
8866
  function (string) {
8860
- var rx = anObject$e(this);
8867
+ var rx = anObject$f(this);
8861
8868
  var S = toString$g(string);
8862
8869
  var res = maybeCallNative(nativeSearch, rx, S);
8863
8870
 
@@ -8917,13 +8924,13 @@ var stringTrimForced = function (METHOD_NAME) {
8917
8924
  });
8918
8925
  };
8919
8926
 
8920
- var $$M = _export;
8927
+ var $$N = _export;
8921
8928
  var $trim = stringTrim.trim;
8922
8929
  var forcedStringTrimMethod = stringTrimForced;
8923
8930
 
8924
8931
  // `String.prototype.trim` method
8925
8932
  // https://tc39.es/ecma262/#sec-string.prototype.trim
8926
- $$M({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
8933
+ $$N({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
8927
8934
  trim: function trim() {
8928
8935
  return $trim(this);
8929
8936
  }
@@ -9173,7 +9180,7 @@ var isConstructor$3 = !construct || fails$o(function () {
9173
9180
  }) ? isConstructorLegacy : isConstructorModern;
9174
9181
 
9175
9182
  var bind$8 = functionBindContext;
9176
- var call$j = functionCall;
9183
+ var call$k = functionCall;
9177
9184
  var toObject$8 = toObject$d;
9178
9185
  var callWithSafeIterationClosing$1 = callWithSafeIterationClosing$3;
9179
9186
  var isArrayIteratorMethod$1 = isArrayIteratorMethod$3;
@@ -9203,7 +9210,7 @@ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = unde
9203
9210
  result = IS_CONSTRUCTOR ? new this() : [];
9204
9211
  iterator = getIterator$2(O, iteratorMethod);
9205
9212
  next = iterator.next;
9206
- for (;!(step = call$j(next, iterator)).done; index++) {
9213
+ for (;!(step = call$k(next, iterator)).done; index++) {
9207
9214
  value = mapping ? callWithSafeIterationClosing$1(iterator, mapfn, [step.value, index], true) : step.value;
9208
9215
  createProperty$3(result, index, value);
9209
9216
  }
@@ -9411,7 +9418,7 @@ var validateArgumentsLength$5 = function (passed, required) {
9411
9418
  return passed;
9412
9419
  };
9413
9420
 
9414
- var $$L = _export;
9421
+ var $$M = _export;
9415
9422
  var uncurryThis$u = functionUncurryThis;
9416
9423
  var toAbsoluteIndex$2 = toAbsoluteIndex$4;
9417
9424
 
@@ -9426,7 +9433,7 @@ var INCORRECT_LENGTH = !!$fromCodePoint && $fromCodePoint.length !== 1;
9426
9433
 
9427
9434
  // `String.fromCodePoint` method
9428
9435
  // https://tc39.es/ecma262/#sec-string.fromcodepoint
9429
- $$L({ target: 'String', stat: true, arity: 1, forced: INCORRECT_LENGTH }, {
9436
+ $$M({ target: 'String', stat: true, arity: 1, forced: INCORRECT_LENGTH }, {
9430
9437
  // eslint-disable-next-line no-unused-vars -- required for `.length`
9431
9438
  fromCodePoint: function fromCodePoint(x) {
9432
9439
  var elements = [];
@@ -9501,11 +9508,11 @@ var arraySort$1 = sort$1;
9501
9508
  // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
9502
9509
 
9503
9510
 
9504
- var $$K = _export;
9511
+ var $$L = _export;
9505
9512
  var globalThis$z = globalThis_1;
9506
9513
  var safeGetBuiltIn$1 = safeGetBuiltIn$2;
9507
9514
  var getBuiltIn$9 = getBuiltIn$f;
9508
- var call$i = functionCall;
9515
+ var call$j = functionCall;
9509
9516
  var uncurryThis$t = functionUncurryThis;
9510
9517
  var DESCRIPTORS$g = descriptors;
9511
9518
  var USE_NATIVE_URL$1 = urlConstructorDetection;
@@ -9520,7 +9527,7 @@ var isCallable$a = isCallable$t;
9520
9527
  var hasOwn$b = hasOwnProperty_1;
9521
9528
  var bind$7 = functionBindContext;
9522
9529
  var classof$a = classof$g;
9523
- var anObject$d = anObject$t;
9530
+ var anObject$e = anObject$u;
9524
9531
  var isObject$c = isObject$o;
9525
9532
  var $toString$1 = toString$k;
9526
9533
  var create$3 = objectCreate;
@@ -9743,13 +9750,13 @@ URLSearchParamsState.prototype = {
9743
9750
  if (iteratorMethod) {
9744
9751
  iterator = getIterator$1(object, iteratorMethod);
9745
9752
  next = iterator.next;
9746
- while (!(step = call$i(next, iterator)).done) {
9747
- entryIterator = getIterator$1(anObject$d(step.value));
9753
+ while (!(step = call$j(next, iterator)).done) {
9754
+ entryIterator = getIterator$1(anObject$e(step.value));
9748
9755
  entryNext = entryIterator.next;
9749
9756
  if (
9750
- (first = call$i(entryNext, entryIterator)).done ||
9751
- (second = call$i(entryNext, entryIterator)).done ||
9752
- !call$i(entryNext, entryIterator).done
9757
+ (first = call$j(entryNext, entryIterator)).done ||
9758
+ (second = call$j(entryNext, entryIterator)).done ||
9759
+ !call$j(entryNext, entryIterator).done
9753
9760
  ) throw new TypeError$6('Expected sequence with length 2');
9754
9761
  push$7(entries, { key: $toString$1(first.value), value: $toString$1(second.value) });
9755
9762
  }
@@ -9955,7 +9962,7 @@ if (DESCRIPTORS$g) defineBuiltInAccessor$c(URLSearchParamsPrototype$3, 'size', {
9955
9962
 
9956
9963
  setToStringTag$4(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
9957
9964
 
9958
- $$K({ global: true, constructor: true, forced: !USE_NATIVE_URL$1 }, {
9965
+ $$L({ global: true, constructor: true, forced: !USE_NATIVE_URL$1 }, {
9959
9966
  URLSearchParams: URLSearchParamsConstructor
9960
9967
  });
9961
9968
 
@@ -9982,7 +9989,7 @@ if (!USE_NATIVE_URL$1 && isCallable$a(Headers)) {
9982
9989
  };
9983
9990
 
9984
9991
  if (isCallable$a(nativeFetch)) {
9985
- $$K({ global: true, enumerable: true, dontCallGetSet: true, forced: true }, {
9992
+ $$L({ global: true, enumerable: true, dontCallGetSet: true, forced: true }, {
9986
9993
  fetch: function fetch(input /* , init */) {
9987
9994
  return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
9988
9995
  }
@@ -9998,7 +10005,7 @@ if (!USE_NATIVE_URL$1 && isCallable$a(Headers)) {
9998
10005
  RequestPrototype.constructor = RequestConstructor;
9999
10006
  RequestConstructor.prototype = RequestPrototype;
10000
10007
 
10001
- $$K({ global: true, constructor: true, dontCallGetSet: true, forced: true }, {
10008
+ $$L({ global: true, constructor: true, dontCallGetSet: true, forced: true }, {
10002
10009
  Request: RequestConstructor
10003
10010
  });
10004
10011
  }
@@ -10011,7 +10018,7 @@ var web_urlSearchParams_constructor = {
10011
10018
 
10012
10019
  // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
10013
10020
 
10014
- var $$J = _export;
10021
+ var $$K = _export;
10015
10022
  var DESCRIPTORS$f = descriptors;
10016
10023
  var USE_NATIVE_URL = urlConstructorDetection;
10017
10024
  var globalThis$y = globalThis_1;
@@ -11056,18 +11063,18 @@ if (NativeURL) {
11056
11063
 
11057
11064
  setToStringTag$3(URLConstructor, 'URL');
11058
11065
 
11059
- $$J({ global: true, constructor: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS$f }, {
11066
+ $$K({ global: true, constructor: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS$f }, {
11060
11067
  URL: URLConstructor
11061
11068
  });
11062
11069
 
11063
- var $$I = _export;
11064
- var call$h = functionCall;
11070
+ var $$J = _export;
11071
+ var call$i = functionCall;
11065
11072
 
11066
11073
  // `URL.prototype.toJSON` method
11067
11074
  // https://url.spec.whatwg.org/#dom-url-tojson
11068
- $$I({ target: 'URL', proto: true, enumerable: true }, {
11075
+ $$J({ target: 'URL', proto: true, enumerable: true }, {
11069
11076
  toJSON: function toJSON() {
11070
- return call$h(URL.prototype.toString, this);
11077
+ return call$i(URL.prototype.toString, this);
11071
11078
  }
11072
11079
  });
11073
11080
 
@@ -11191,10 +11198,10 @@ function getQueryParam(paramName, options) {
11191
11198
 
11192
11199
  // TODO: Remove from `core-js@4` since it's moved to entry points
11193
11200
 
11194
- var $$H = _export;
11195
- var call$g = functionCall;
11201
+ var $$I = _export;
11202
+ var call$h = functionCall;
11196
11203
  var isCallable$9 = isCallable$t;
11197
- var anObject$c = anObject$t;
11204
+ var anObject$d = anObject$u;
11198
11205
  var toString$a = toString$k;
11199
11206
 
11200
11207
  var DELEGATES_TO_EXEC = function () {
@@ -11211,15 +11218,15 @@ var nativeTest = /./.test;
11211
11218
 
11212
11219
  // `RegExp.prototype.test` method
11213
11220
  // https://tc39.es/ecma262/#sec-regexp.prototype.test
11214
- $$H({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
11221
+ $$I({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
11215
11222
  test: function (S) {
11216
- var R = anObject$c(this);
11223
+ var R = anObject$d(this);
11217
11224
  var string = toString$a(S);
11218
11225
  var exec = R.exec;
11219
- if (!isCallable$9(exec)) return call$g(nativeTest, R, string);
11220
- var result = call$g(exec, R, string);
11226
+ if (!isCallable$9(exec)) return call$h(nativeTest, R, string);
11227
+ var result = call$h(exec, R, string);
11221
11228
  if (result === null) return false;
11222
- anObject$c(result);
11229
+ anObject$d(result);
11223
11230
  return true;
11224
11231
  }
11225
11232
  });
@@ -11248,7 +11255,7 @@ function isMobileDevice() {
11248
11255
  return false;
11249
11256
  }
11250
11257
 
11251
- var $$G = _export;
11258
+ var $$H = _export;
11252
11259
  var DESCRIPTORS$d = descriptors;
11253
11260
  var globalThis$x = globalThis_1;
11254
11261
  var uncurryThis$o = functionUncurryThis;
@@ -11301,12 +11308,12 @@ if (DESCRIPTORS$d && isCallable$8(NativeSymbol) && (!('description' in SymbolPro
11301
11308
  }
11302
11309
  });
11303
11310
 
11304
- $$G({ global: true, constructor: true, forced: true }, {
11311
+ $$H({ global: true, constructor: true, forced: true }, {
11305
11312
  Symbol: SymbolWrapper
11306
11313
  });
11307
11314
  }
11308
11315
 
11309
- var $$F = _export;
11316
+ var $$G = _export;
11310
11317
  var $includes = arrayIncludes.includes;
11311
11318
  var fails$n = fails$M;
11312
11319
  var addToUnscopables = addToUnscopables$2;
@@ -11319,7 +11326,7 @@ var BROKEN_ON_SPARSE = fails$n(function () {
11319
11326
 
11320
11327
  // `Array.prototype.includes` method
11321
11328
  // https://tc39.es/ecma262/#sec-array.prototype.includes
11322
- $$F({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
11329
+ $$G({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
11323
11330
  includes: function includes(el /* , fromIndex = 0 */) {
11324
11331
  return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
11325
11332
  }
@@ -11328,20 +11335,20 @@ $$F({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
11328
11335
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
11329
11336
  addToUnscopables('includes');
11330
11337
 
11331
- var $$E = _export;
11332
- var call$f = functionCall;
11333
- var aCallable$d = aCallable$k;
11334
- var anObject$b = anObject$t;
11335
- var getIteratorDirect$4 = getIteratorDirect$7;
11338
+ var $$F = _export;
11339
+ var call$g = functionCall;
11340
+ var aCallable$e = aCallable$l;
11341
+ var anObject$c = anObject$u;
11342
+ var getIteratorDirect$5 = getIteratorDirect$8;
11336
11343
  var createIteratorProxy = iteratorCreateProxy;
11337
11344
  var callWithSafeIterationClosing = callWithSafeIterationClosing$3;
11338
- var iteratorClose$5 = iteratorClose$c;
11345
+ var iteratorClose$6 = iteratorClose$d;
11339
11346
  var iteratorHelperThrowsOnInvalidIterator = iteratorHelperThrowsOnInvalidIterator$2;
11340
- var iteratorHelperWithoutClosingOnEarlyError$3 = iteratorHelperWithoutClosingOnEarlyError$6;
11347
+ var iteratorHelperWithoutClosingOnEarlyError$4 = iteratorHelperWithoutClosingOnEarlyError$7;
11341
11348
 
11342
11349
  var FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR = !iteratorHelperThrowsOnInvalidIterator('filter', function () { /* empty */ });
11343
11350
  var filterWithoutClosingOnEarlyError = !FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR
11344
- && iteratorHelperWithoutClosingOnEarlyError$3('filter', TypeError);
11351
+ && iteratorHelperWithoutClosingOnEarlyError$4('filter', TypeError);
11345
11352
 
11346
11353
  var FORCED$8 = FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR || filterWithoutClosingOnEarlyError;
11347
11354
 
@@ -11351,7 +11358,7 @@ var IteratorProxy = createIteratorProxy(function () {
11351
11358
  var next = this.next;
11352
11359
  var result, done, value;
11353
11360
  while (true) {
11354
- result = anObject$b(call$f(next, iterator));
11361
+ result = anObject$c(call$g(next, iterator));
11355
11362
  done = this.done = !!result.done;
11356
11363
  if (done) return;
11357
11364
  value = result.value;
@@ -11361,18 +11368,18 @@ var IteratorProxy = createIteratorProxy(function () {
11361
11368
 
11362
11369
  // `Iterator.prototype.filter` method
11363
11370
  // https://tc39.es/ecma262/#sec-iterator.prototype.filter
11364
- $$E({ target: 'Iterator', proto: true, real: true, forced: FORCED$8 }, {
11371
+ $$F({ target: 'Iterator', proto: true, real: true, forced: FORCED$8 }, {
11365
11372
  filter: function filter(predicate) {
11366
- anObject$b(this);
11373
+ anObject$c(this);
11367
11374
  try {
11368
- aCallable$d(predicate);
11375
+ aCallable$e(predicate);
11369
11376
  } catch (error) {
11370
- iteratorClose$5(this, 'throw', error);
11377
+ iteratorClose$6(this, 'throw', error);
11371
11378
  }
11372
11379
 
11373
- if (filterWithoutClosingOnEarlyError) return call$f(filterWithoutClosingOnEarlyError, this, predicate);
11380
+ if (filterWithoutClosingOnEarlyError) return call$g(filterWithoutClosingOnEarlyError, this, predicate);
11374
11381
 
11375
- return new IteratorProxy(getIteratorDirect$4(this), {
11382
+ return new IteratorProxy(getIteratorDirect$5(this), {
11376
11383
  predicate: predicate
11377
11384
  });
11378
11385
  }
@@ -11397,7 +11404,7 @@ var aMap$2 = function (it) {
11397
11404
  return it;
11398
11405
  };
11399
11406
 
11400
- var $$D = _export;
11407
+ var $$E = _export;
11401
11408
  var aMap$1 = aMap$2;
11402
11409
  var MapHelpers$1 = mapHelpers;
11403
11410
  var IS_PURE$1 = isPure;
@@ -11408,7 +11415,7 @@ var set$3 = MapHelpers$1.set;
11408
11415
 
11409
11416
  // `Map.prototype.getOrInsert` method
11410
11417
  // https://github.com/tc39/proposal-upsert
11411
- $$D({ target: 'Map', proto: true, real: true, forced: IS_PURE$1 }, {
11418
+ $$E({ target: 'Map', proto: true, real: true, forced: IS_PURE$1 }, {
11412
11419
  getOrInsert: function getOrInsert(key, value) {
11413
11420
  if (has$7(aMap$1(this), key)) return get$2(this, key);
11414
11421
  set$3(this, key, value);
@@ -11416,8 +11423,8 @@ $$D({ target: 'Map', proto: true, real: true, forced: IS_PURE$1 }, {
11416
11423
  }
11417
11424
  });
11418
11425
 
11419
- var $$C = _export;
11420
- var aCallable$c = aCallable$k;
11426
+ var $$D = _export;
11427
+ var aCallable$d = aCallable$l;
11421
11428
  var aMap = aMap$2;
11422
11429
  var MapHelpers = mapHelpers;
11423
11430
  var IS_PURE = isPure;
@@ -11428,10 +11435,10 @@ var set$2 = MapHelpers.set;
11428
11435
 
11429
11436
  // `Map.prototype.getOrInsertComputed` method
11430
11437
  // https://github.com/tc39/proposal-upsert
11431
- $$C({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {
11438
+ $$D({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {
11432
11439
  getOrInsertComputed: function getOrInsertComputed(key, callbackfn) {
11433
11440
  aMap(this);
11434
- aCallable$c(callbackfn);
11441
+ aCallable$d(callbackfn);
11435
11442
  if (has$6(this, key)) return get$1(this, key);
11436
11443
  // CanonicalizeKeyedCollectionKey
11437
11444
  if (key === 0 && 1 / key === -Infinity) key = 0;
@@ -11441,16 +11448,16 @@ $$C({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {
11441
11448
  }
11442
11449
  });
11443
11450
 
11444
- var $$B = _export;
11445
- var iterate$7 = iterate$9;
11451
+ var $$C = _export;
11452
+ var iterate$8 = iterate$a;
11446
11453
  var createProperty$2 = createProperty$5;
11447
11454
 
11448
11455
  // `Object.fromEntries` method
11449
11456
  // https://tc39.es/ecma262/#sec-object.fromentries
11450
- $$B({ target: 'Object', stat: true }, {
11457
+ $$C({ target: 'Object', stat: true }, {
11451
11458
  fromEntries: function fromEntries(iterable) {
11452
11459
  var obj = {};
11453
- iterate$7(iterable, function (k, v) {
11460
+ iterate$8(iterable, function (k, v) {
11454
11461
  createProperty$2(obj, k, v);
11455
11462
  }, { AS_ENTRIES: true });
11456
11463
  return obj;
@@ -11496,7 +11503,7 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
11496
11503
  } return false;
11497
11504
  };
11498
11505
 
11499
- var $$A = _export;
11506
+ var $$B = _export;
11500
11507
  var uncurryThis$m = functionUncurryThis;
11501
11508
  var notARegExp$1 = notARegexp;
11502
11509
  var requireObjectCoercible$3 = requireObjectCoercible$b;
@@ -11507,7 +11514,7 @@ var stringIndexOf$2 = uncurryThis$m(''.indexOf);
11507
11514
 
11508
11515
  // `String.prototype.includes` method
11509
11516
  // https://tc39.es/ecma262/#sec-string.prototype.includes
11510
- $$A({ target: 'String', proto: true, forced: !correctIsRegExpLogic$1('includes') }, {
11517
+ $$B({ target: 'String', proto: true, forced: !correctIsRegExpLogic$1('includes') }, {
11511
11518
  includes: function includes(searchString /* , position = 0 */) {
11512
11519
  return !!~stringIndexOf$2(
11513
11520
  toString$8(requireObjectCoercible$3(this)),
@@ -11572,11 +11579,11 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
11572
11579
  };
11573
11580
 
11574
11581
  var apply$4 = functionApply;
11575
- var call$e = functionCall;
11582
+ var call$f = functionCall;
11576
11583
  var uncurryThis$k = functionUncurryThis;
11577
11584
  var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
11578
11585
  var fails$m = fails$M;
11579
- var anObject$a = anObject$t;
11586
+ var anObject$b = anObject$u;
11580
11587
  var isCallable$7 = isCallable$t;
11581
11588
  var isObject$a = isObject$o;
11582
11589
  var toIntegerOrInfinity$6 = toIntegerOrInfinity$c;
@@ -11639,13 +11646,13 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
11639
11646
  var O = requireObjectCoercible$2(this);
11640
11647
  var replacer = isObject$a(searchValue) ? getMethod$1(searchValue, REPLACE) : undefined;
11641
11648
  return replacer
11642
- ? call$e(replacer, searchValue, O, replaceValue)
11643
- : call$e(nativeReplace, toString$7(O), searchValue, replaceValue);
11649
+ ? call$f(replacer, searchValue, O, replaceValue)
11650
+ : call$f(nativeReplace, toString$7(O), searchValue, replaceValue);
11644
11651
  },
11645
11652
  // `RegExp.prototype[@@replace]` method
11646
11653
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
11647
11654
  function (string, replaceValue) {
11648
- var rx = anObject$a(this);
11655
+ var rx = anObject$b(this);
11649
11656
  var S = toString$7(string);
11650
11657
 
11651
11658
  if (
@@ -11715,7 +11722,7 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
11715
11722
  ];
11716
11723
  }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
11717
11724
 
11718
- var aCallable$b = aCallable$k;
11725
+ var aCallable$c = aCallable$l;
11719
11726
  var toObject$6 = toObject$d;
11720
11727
  var IndexedObject$2 = indexedObject;
11721
11728
  var lengthOfArrayLike$c = lengthOfArrayLike$h;
@@ -11730,7 +11737,7 @@ var createMethod$2 = function (IS_RIGHT) {
11730
11737
  var O = toObject$6(that);
11731
11738
  var self = IndexedObject$2(O);
11732
11739
  var length = lengthOfArrayLike$c(O);
11733
- aCallable$b(callbackfn);
11740
+ aCallable$c(callbackfn);
11734
11741
  if (length === 0 && argumentsLength < 2) throw new $TypeError$d(REDUCE_EMPTY);
11735
11742
  var index = IS_RIGHT ? length - 1 : 0;
11736
11743
  var i = IS_RIGHT ? -1 : 1;
@@ -11792,7 +11799,7 @@ var ENVIRONMENT$2 = environment;
11792
11799
 
11793
11800
  var environmentIsNode = ENVIRONMENT$2 === 'NODE';
11794
11801
 
11795
- var $$z = _export;
11802
+ var $$A = _export;
11796
11803
  var $reduce = arrayReduce.left;
11797
11804
  var arrayMethodIsStrict$1 = arrayMethodIsStrict$2;
11798
11805
  var CHROME_VERSION = environmentV8Version;
@@ -11805,7 +11812,7 @@ var FORCED$7 = CHROME_BUG || !arrayMethodIsStrict$1('reduce');
11805
11812
 
11806
11813
  // `Array.prototype.reduce` method
11807
11814
  // https://tc39.es/ecma262/#sec-array.prototype.reduce
11808
- $$z({ target: 'Array', proto: true, forced: FORCED$7 }, {
11815
+ $$A({ target: 'Array', proto: true, forced: FORCED$7 }, {
11809
11816
  reduce: function reduce(callbackfn /* , initialValue */) {
11810
11817
  var length = arguments.length;
11811
11818
  return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
@@ -11820,7 +11827,7 @@ var deletePropertyOrThrow$2 = function (O, P) {
11820
11827
  if (!delete O[P]) throw new $TypeError$c('Cannot delete property ' + tryToString$2(P) + ' of ' + tryToString$2(O));
11821
11828
  };
11822
11829
 
11823
- var $$y = _export;
11830
+ var $$z = _export;
11824
11831
  var toObject$5 = toObject$d;
11825
11832
  var lengthOfArrayLike$b = lengthOfArrayLike$h;
11826
11833
  var setArrayLength = arraySetLength;
@@ -11844,7 +11851,7 @@ var FORCED$6 = INCORRECT_RESULT || !properErrorOnNonWritableLength();
11844
11851
 
11845
11852
  // `Array.prototype.unshift` method
11846
11853
  // https://tc39.es/ecma262/#sec-array.prototype.unshift
11847
- $$y({ target: 'Array', proto: true, arity: 1, forced: FORCED$6 }, {
11854
+ $$z({ target: 'Array', proto: true, arity: 1, forced: FORCED$6 }, {
11848
11855
  // eslint-disable-next-line no-unused-vars -- required for `.length`
11849
11856
  unshift: function unshift(item) {
11850
11857
  var O = toObject$5(this);
@@ -12329,7 +12336,7 @@ var setSpecies$4 = function (CONSTRUCTOR_NAME) {
12329
12336
  }
12330
12337
  };
12331
12338
 
12332
- var $$x = _export;
12339
+ var $$y = _export;
12333
12340
  var globalThis$u = globalThis_1;
12334
12341
  var arrayBufferModule = arrayBuffer;
12335
12342
  var setSpecies$3 = setSpecies$4;
@@ -12340,17 +12347,17 @@ var NativeArrayBuffer = globalThis$u[ARRAY_BUFFER];
12340
12347
 
12341
12348
  // `ArrayBuffer` constructor
12342
12349
  // https://tc39.es/ecma262/#sec-arraybuffer-constructor
12343
- $$x({ global: true, constructor: true, forced: NativeArrayBuffer !== ArrayBuffer$6 }, {
12350
+ $$y({ global: true, constructor: true, forced: NativeArrayBuffer !== ArrayBuffer$6 }, {
12344
12351
  ArrayBuffer: ArrayBuffer$6
12345
12352
  });
12346
12353
 
12347
12354
  setSpecies$3(ARRAY_BUFFER);
12348
12355
 
12349
- var $$w = _export;
12356
+ var $$x = _export;
12350
12357
  var uncurryThis$i = functionUncurryThisClause;
12351
12358
  var fails$j = fails$M;
12352
12359
  var ArrayBufferModule$1 = arrayBuffer;
12353
- var anObject$9 = anObject$t;
12360
+ var anObject$a = anObject$u;
12354
12361
  var toAbsoluteIndex = toAbsoluteIndex$4;
12355
12362
  var toLength$3 = toLength$8;
12356
12363
 
@@ -12367,12 +12374,12 @@ var INCORRECT_SLICE = fails$j(function () {
12367
12374
 
12368
12375
  // `ArrayBuffer.prototype.slice` method
12369
12376
  // https://tc39.es/ecma262/#sec-arraybuffer.prototype.slice
12370
- $$w({ target: 'ArrayBuffer', proto: true, unsafe: true, forced: INCORRECT_SLICE }, {
12377
+ $$x({ target: 'ArrayBuffer', proto: true, unsafe: true, forced: INCORRECT_SLICE }, {
12371
12378
  slice: function slice(start, end) {
12372
12379
  if (nativeArrayBufferSlice && end === undefined) {
12373
- return nativeArrayBufferSlice(anObject$9(this), start); // FF fix
12380
+ return nativeArrayBufferSlice(anObject$a(this), start); // FF fix
12374
12381
  }
12375
- var length = anObject$9(this).byteLength;
12382
+ var length = anObject$a(this).byteLength;
12376
12383
  var first = toAbsoluteIndex(start, length);
12377
12384
  var fin = toAbsoluteIndex(end === undefined ? length : end, length);
12378
12385
  var result = new ArrayBuffer$5(toLength$3(fin - first));
@@ -12556,35 +12563,35 @@ var arrayBufferTransfer = (PROPER_STRUCTURED_CLONE_TRANSFER || detachTransferabl
12556
12563
  return newBuffer;
12557
12564
  };
12558
12565
 
12559
- var $$v = _export;
12566
+ var $$w = _export;
12560
12567
  var $transfer$1 = arrayBufferTransfer;
12561
12568
 
12562
12569
  // `ArrayBuffer.prototype.transfer` method
12563
12570
  // https://tc39.es/ecma262/#sec-arraybuffer.prototype.transfer
12564
- if ($transfer$1) $$v({ target: 'ArrayBuffer', proto: true }, {
12571
+ if ($transfer$1) $$w({ target: 'ArrayBuffer', proto: true }, {
12565
12572
  transfer: function transfer() {
12566
12573
  return $transfer$1(this, arguments.length ? arguments[0] : undefined, true);
12567
12574
  }
12568
12575
  });
12569
12576
 
12570
- var $$u = _export;
12577
+ var $$v = _export;
12571
12578
  var $transfer = arrayBufferTransfer;
12572
12579
 
12573
12580
  // `ArrayBuffer.prototype.transferToFixedLength` method
12574
12581
  // https://tc39.es/ecma262/#sec-arraybuffer.prototype.transfertofixedlength
12575
- if ($transfer) $$u({ target: 'ArrayBuffer', proto: true }, {
12582
+ if ($transfer) $$v({ target: 'ArrayBuffer', proto: true }, {
12576
12583
  transferToFixedLength: function transferToFixedLength() {
12577
12584
  return $transfer(this, arguments.length ? arguments[0] : undefined, false);
12578
12585
  }
12579
12586
  });
12580
12587
 
12581
- var $$t = _export;
12582
- var iterate$6 = iterate$9;
12583
- var aCallable$a = aCallable$k;
12584
- var anObject$8 = anObject$t;
12585
- var getIteratorDirect$3 = getIteratorDirect$7;
12586
- var iteratorClose$4 = iteratorClose$c;
12587
- var iteratorHelperWithoutClosingOnEarlyError$2 = iteratorHelperWithoutClosingOnEarlyError$6;
12588
+ var $$u = _export;
12589
+ var iterate$7 = iterate$a;
12590
+ var aCallable$b = aCallable$l;
12591
+ var anObject$9 = anObject$u;
12592
+ var getIteratorDirect$4 = getIteratorDirect$8;
12593
+ var iteratorClose$5 = iteratorClose$d;
12594
+ var iteratorHelperWithoutClosingOnEarlyError$3 = iteratorHelperWithoutClosingOnEarlyError$7;
12588
12595
  var apply$3 = functionApply;
12589
12596
  var fails$h = fails$M;
12590
12597
 
@@ -12596,17 +12603,17 @@ var FAILS_ON_INITIAL_UNDEFINED = fails$h(function () {
12596
12603
  [].keys().reduce(function () { /* empty */ }, undefined);
12597
12604
  });
12598
12605
 
12599
- var reduceWithoutClosingOnEarlyError = !FAILS_ON_INITIAL_UNDEFINED && iteratorHelperWithoutClosingOnEarlyError$2('reduce', $TypeError$a);
12606
+ var reduceWithoutClosingOnEarlyError = !FAILS_ON_INITIAL_UNDEFINED && iteratorHelperWithoutClosingOnEarlyError$3('reduce', $TypeError$a);
12600
12607
 
12601
12608
  // `Iterator.prototype.reduce` method
12602
12609
  // https://tc39.es/ecma262/#sec-iterator.prototype.reduce
12603
- $$t({ target: 'Iterator', proto: true, real: true, forced: FAILS_ON_INITIAL_UNDEFINED || reduceWithoutClosingOnEarlyError }, {
12610
+ $$u({ target: 'Iterator', proto: true, real: true, forced: FAILS_ON_INITIAL_UNDEFINED || reduceWithoutClosingOnEarlyError }, {
12604
12611
  reduce: function reduce(reducer /* , initialValue */) {
12605
- anObject$8(this);
12612
+ anObject$9(this);
12606
12613
  try {
12607
- aCallable$a(reducer);
12614
+ aCallable$b(reducer);
12608
12615
  } catch (error) {
12609
- iteratorClose$4(this, 'throw', error);
12616
+ iteratorClose$5(this, 'throw', error);
12610
12617
  }
12611
12618
 
12612
12619
  var noInitial = arguments.length < 2;
@@ -12614,9 +12621,9 @@ $$t({ target: 'Iterator', proto: true, real: true, forced: FAILS_ON_INITIAL_UNDE
12614
12621
  if (reduceWithoutClosingOnEarlyError) {
12615
12622
  return apply$3(reduceWithoutClosingOnEarlyError, this, noInitial ? [reducer] : [reducer, accumulator]);
12616
12623
  }
12617
- var record = getIteratorDirect$3(this);
12624
+ var record = getIteratorDirect$4(this);
12618
12625
  var counter = 0;
12619
- iterate$6(record, function (value) {
12626
+ iterate$7(record, function (value) {
12620
12627
  if (noInitial) {
12621
12628
  noInitial = false;
12622
12629
  accumulator = value;
@@ -12630,33 +12637,33 @@ $$t({ target: 'Iterator', proto: true, real: true, forced: FAILS_ON_INITIAL_UNDE
12630
12637
  }
12631
12638
  });
12632
12639
 
12633
- var $$s = _export;
12634
- var call$d = functionCall;
12635
- var iterate$5 = iterate$9;
12636
- var aCallable$9 = aCallable$k;
12637
- var anObject$7 = anObject$t;
12638
- var getIteratorDirect$2 = getIteratorDirect$7;
12639
- var iteratorClose$3 = iteratorClose$c;
12640
- var iteratorHelperWithoutClosingOnEarlyError$1 = iteratorHelperWithoutClosingOnEarlyError$6;
12640
+ var $$t = _export;
12641
+ var call$e = functionCall;
12642
+ var iterate$6 = iterate$a;
12643
+ var aCallable$a = aCallable$l;
12644
+ var anObject$8 = anObject$u;
12645
+ var getIteratorDirect$3 = getIteratorDirect$8;
12646
+ var iteratorClose$4 = iteratorClose$d;
12647
+ var iteratorHelperWithoutClosingOnEarlyError$2 = iteratorHelperWithoutClosingOnEarlyError$7;
12641
12648
 
12642
- var someWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError$1('some', TypeError);
12649
+ var someWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError$2('some', TypeError);
12643
12650
 
12644
12651
  // `Iterator.prototype.some` method
12645
12652
  // https://tc39.es/ecma262/#sec-iterator.prototype.some
12646
- $$s({ target: 'Iterator', proto: true, real: true, forced: someWithoutClosingOnEarlyError }, {
12653
+ $$t({ target: 'Iterator', proto: true, real: true, forced: someWithoutClosingOnEarlyError }, {
12647
12654
  some: function some(predicate) {
12648
- anObject$7(this);
12655
+ anObject$8(this);
12649
12656
  try {
12650
- aCallable$9(predicate);
12657
+ aCallable$a(predicate);
12651
12658
  } catch (error) {
12652
- iteratorClose$3(this, 'throw', error);
12659
+ iteratorClose$4(this, 'throw', error);
12653
12660
  }
12654
12661
 
12655
- if (someWithoutClosingOnEarlyError) return call$d(someWithoutClosingOnEarlyError, this, predicate);
12662
+ if (someWithoutClosingOnEarlyError) return call$e(someWithoutClosingOnEarlyError, this, predicate);
12656
12663
 
12657
- var record = getIteratorDirect$2(this);
12664
+ var record = getIteratorDirect$3(this);
12658
12665
  var counter = 0;
12659
- return iterate$5(record, function (value, stop) {
12666
+ return iterate$6(record, function (value, stop) {
12660
12667
  if (predicate(value, counter++)) return stop();
12661
12668
  }, { IS_RECORD: true, INTERRUPTED: true }).stopped;
12662
12669
  }
@@ -12718,12 +12725,12 @@ var parseJsonString = function (source, i) {
12718
12725
  return { value: value, end: i };
12719
12726
  };
12720
12727
 
12721
- var $$r = _export;
12728
+ var $$s = _export;
12722
12729
  var DESCRIPTORS$9 = descriptors;
12723
12730
  var globalThis$n = globalThis_1;
12724
12731
  var getBuiltIn$7 = getBuiltIn$f;
12725
12732
  var uncurryThis$f = functionUncurryThis;
12726
- var call$c = functionCall;
12733
+ var call$d = functionCall;
12727
12734
  var isCallable$6 = isCallable$t;
12728
12735
  var isObject$9 = isObject$o;
12729
12736
  var isArray$2 = isArray$4;
@@ -12790,7 +12797,7 @@ var internalize = function (holder, name, reviver, node) {
12790
12797
  }
12791
12798
  }
12792
12799
  }
12793
- return call$c(reviver, holder, name, val, context);
12800
+ return call$d(reviver, holder, name, val, context);
12794
12801
  };
12795
12802
 
12796
12803
  var internalizeProperty = function (object, key, value) {
@@ -12963,7 +12970,7 @@ var PROPER_BASE_PARSE = NATIVE_SYMBOL$1 && !fails$g(function () {
12963
12970
  // `JSON.parse` method
12964
12971
  // https://tc39.es/ecma262/#sec-json.parse
12965
12972
  // https://github.com/tc39/proposal-json-parse-with-source
12966
- $$r({ target: 'JSON', stat: true, forced: NO_SOURCE_SUPPORT }, {
12973
+ $$s({ target: 'JSON', stat: true, forced: NO_SOURCE_SUPPORT }, {
12967
12974
  parse: function parse(text, reviver) {
12968
12975
  return PROPER_BASE_PARSE && !isCallable$6(reviver) ? nativeParse(text) : $parse(text, reviver);
12969
12976
  }
@@ -12989,10 +12996,10 @@ var nativeRawJson = !fails$f(function () {
12989
12996
  return !JSON.isRawJSON(raw) || JSON.stringify(raw) !== unsafeInt;
12990
12997
  });
12991
12998
 
12992
- var $$q = _export;
12999
+ var $$r = _export;
12993
13000
  var getBuiltIn$6 = getBuiltIn$f;
12994
13001
  var apply$2 = functionApply;
12995
- var call$b = functionCall;
13002
+ var call$c = functionCall;
12996
13003
  var uncurryThis$e = functionUncurryThis;
12997
13004
  var fails$e = fails$M;
12998
13005
  var isArray$1 = isArray$4;
@@ -13046,7 +13053,7 @@ var stringifyWithProperSymbolsConversion = WRONG_SYMBOLS_CONVERSION ? function (
13046
13053
  if (!isCallable$5($replacer) && (it === undefined || isSymbol$1(it))) return; // IE8 returns string on undefined
13047
13054
  args[1] = function (key, value) {
13048
13055
  // some old implementations (like WebKit) could pass numbers as keys
13049
- if (isCallable$5($replacer)) value = call$b($replacer, this, $String$1(key), value);
13056
+ if (isCallable$5($replacer)) value = call$c($replacer, this, $String$1(key), value);
13050
13057
  if (!isSymbol$1(value)) return value;
13051
13058
  };
13052
13059
  return apply$2($stringify, null, args);
@@ -13085,14 +13092,14 @@ var getReplacerFunction = function (replacer) {
13085
13092
  // `JSON.stringify` method
13086
13093
  // https://tc39.es/ecma262/#sec-json.stringify
13087
13094
  // https://github.com/tc39/proposal-json-parse-with-source
13088
- if ($stringify) $$q({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE || !NATIVE_RAW_JSON }, {
13095
+ if ($stringify) $$r({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE || !NATIVE_RAW_JSON }, {
13089
13096
  stringify: function stringify(text, replacer, space) {
13090
13097
  var replacerFunction = getReplacerFunction(replacer);
13091
13098
  var rawStrings = [];
13092
13099
 
13093
13100
  var json = stringifyWithProperSymbolsConversion(text, function (key, value) {
13094
13101
  // some old implementations (like WebKit) could pass numbers as keys
13095
- var v = isCallable$5(replacerFunction) ? call$b(replacerFunction, this, $String$1(key), value) : value;
13102
+ var v = isCallable$5(replacerFunction) ? call$c(replacerFunction, this, $String$1(key), value) : value;
13096
13103
  return !NATIVE_RAW_JSON && isRawJSON(v) ? MARK + (push$2(rawStrings, v.rawJSON) - 1) : v;
13097
13104
  }, space);
13098
13105
 
@@ -13136,7 +13143,7 @@ var aConstructor$2 = function (argument) {
13136
13143
  throw new $TypeError$9(tryToString$1(argument) + ' is not a constructor');
13137
13144
  };
13138
13145
 
13139
- var anObject$6 = anObject$t;
13146
+ var anObject$7 = anObject$u;
13140
13147
  var aConstructor$1 = aConstructor$2;
13141
13148
  var isNullOrUndefined = isNullOrUndefined$4;
13142
13149
  var wellKnownSymbol$5 = wellKnownSymbol$p;
@@ -13146,9 +13153,9 @@ var SPECIES$2 = wellKnownSymbol$5('species');
13146
13153
  // `SpeciesConstructor` abstract operation
13147
13154
  // https://tc39.es/ecma262/#sec-speciesconstructor
13148
13155
  var speciesConstructor$2 = function (O, defaultConstructor) {
13149
- var C = anObject$6(O).constructor;
13156
+ var C = anObject$7(O).constructor;
13150
13157
  var S;
13151
- return C === undefined || isNullOrUndefined(S = anObject$6(C)[SPECIES$2]) ? defaultConstructor : aConstructor$1(S);
13158
+ return C === undefined || isNullOrUndefined(S = anObject$7(C)[SPECIES$2]) ? defaultConstructor : aConstructor$1(S);
13152
13159
  };
13153
13160
 
13154
13161
  var userAgent$4 = environmentUserAgent;
@@ -13448,7 +13455,7 @@ var promiseConstructorDetection = {
13448
13455
 
13449
13456
  var newPromiseCapability$2 = {};
13450
13457
 
13451
- var aCallable$8 = aCallable$k;
13458
+ var aCallable$9 = aCallable$l;
13452
13459
 
13453
13460
  var $TypeError$8 = TypeError;
13454
13461
 
@@ -13459,8 +13466,8 @@ var PromiseCapability = function (C) {
13459
13466
  resolve = $$resolve;
13460
13467
  reject = $$reject;
13461
13468
  });
13462
- this.resolve = aCallable$8(resolve);
13463
- this.reject = aCallable$8(reject);
13469
+ this.resolve = aCallable$9(resolve);
13470
+ this.reject = aCallable$9(reject);
13464
13471
  };
13465
13472
 
13466
13473
  // `NewPromiseCapability` abstract operation
@@ -13469,16 +13476,16 @@ newPromiseCapability$2.f = function (C) {
13469
13476
  return new PromiseCapability(C);
13470
13477
  };
13471
13478
 
13472
- var $$p = _export;
13479
+ var $$q = _export;
13473
13480
  var IS_NODE = environmentIsNode;
13474
13481
  var globalThis$h = globalThis_1;
13475
13482
  var path = path$1;
13476
- var call$a = functionCall;
13483
+ var call$b = functionCall;
13477
13484
  var defineBuiltIn$4 = defineBuiltIn$f;
13478
13485
  var setPrototypeOf$2 = objectSetPrototypeOf;
13479
13486
  var setToStringTag$1 = setToStringTag$8;
13480
13487
  var setSpecies$2 = setSpecies$4;
13481
- var aCallable$7 = aCallable$k;
13488
+ var aCallable$8 = aCallable$l;
13482
13489
  var isCallable$2 = isCallable$t;
13483
13490
  var isObject$7 = isObject$o;
13484
13491
  var anInstance$3 = anInstance$8;
@@ -13551,7 +13558,7 @@ var callReaction = function (reaction, state) {
13551
13558
  if (result === reaction.promise) {
13552
13559
  reject(new TypeError$3('Promise-chain cycle'));
13553
13560
  } else if (then = isThenable(result)) {
13554
- call$a(then, result, resolve, reject);
13561
+ call$b(then, result, resolve, reject);
13555
13562
  } else resolve(result);
13556
13563
  } else reject(value);
13557
13564
  } catch (error) {
@@ -13588,7 +13595,7 @@ var dispatchEvent = function (name, promise, reason) {
13588
13595
  };
13589
13596
 
13590
13597
  var onUnhandled = function (state) {
13591
- call$a(task, globalThis$h, function () {
13598
+ call$b(task, globalThis$h, function () {
13592
13599
  var promise = state.facade;
13593
13600
  var value = state.value;
13594
13601
  var IS_UNHANDLED = isUnhandled(state);
@@ -13611,7 +13618,7 @@ var isUnhandled = function (state) {
13611
13618
  };
13612
13619
 
13613
13620
  var onHandleUnhandled = function (state) {
13614
- call$a(task, globalThis$h, function () {
13621
+ call$b(task, globalThis$h, function () {
13615
13622
  var promise = state.facade;
13616
13623
  if (IS_NODE) {
13617
13624
  process$1.emit('rejectionHandled', promise);
@@ -13645,7 +13652,7 @@ var internalResolve = function (state, value, unwrap) {
13645
13652
  microtask(function () {
13646
13653
  var wrapper = { done: false };
13647
13654
  try {
13648
- call$a(then, value,
13655
+ call$b(then, value,
13649
13656
  bind$3(internalResolve, wrapper, state),
13650
13657
  bind$3(internalReject, wrapper, state)
13651
13658
  );
@@ -13668,8 +13675,8 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
13668
13675
  // 25.4.3.1 Promise(executor)
13669
13676
  PromiseConstructor = function Promise(executor) {
13670
13677
  anInstance$3(this, PromisePrototype);
13671
- aCallable$7(executor);
13672
- call$a(Internal, this);
13678
+ aCallable$8(executor);
13679
+ call$b(Internal, this);
13673
13680
  var state = getInternalPromiseState(this);
13674
13681
  try {
13675
13682
  executor(bind$3(internalResolve, state), bind$3(internalReject, state));
@@ -13732,7 +13739,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
13732
13739
  defineBuiltIn$4(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
13733
13740
  var that = this;
13734
13741
  return new PromiseConstructor(function (resolve, reject) {
13735
- call$a(nativeThen, that, resolve, reject);
13742
+ call$b(nativeThen, that, resolve, reject);
13736
13743
  }).then(onFulfilled, onRejected);
13737
13744
  // https://github.com/zloirock/core-js/issues/640
13738
13745
  }, { unsafe: true });
@@ -13752,7 +13759,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
13752
13759
 
13753
13760
  // `Promise` constructor
13754
13761
  // https://tc39.es/ecma262/#sec-promise-executor
13755
- $$p({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
13762
+ $$q({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
13756
13763
  Promise: PromiseConstructor
13757
13764
  });
13758
13765
 
@@ -13812,32 +13819,32 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
13812
13819
  NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
13813
13820
  });
13814
13821
 
13815
- var $$o = _export;
13816
- var call$9 = functionCall;
13817
- var aCallable$6 = aCallable$k;
13822
+ var $$p = _export;
13823
+ var call$a = functionCall;
13824
+ var aCallable$7 = aCallable$l;
13818
13825
  var newPromiseCapabilityModule$2 = newPromiseCapability$2;
13819
13826
  var perform$1 = perform$3;
13820
- var iterate$4 = iterate$9;
13827
+ var iterate$5 = iterate$a;
13821
13828
  var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
13822
13829
 
13823
13830
  // `Promise.all` method
13824
13831
  // https://tc39.es/ecma262/#sec-promise.all
13825
- $$o({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
13832
+ $$p({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
13826
13833
  all: function all(iterable) {
13827
13834
  var C = this;
13828
13835
  var capability = newPromiseCapabilityModule$2.f(C);
13829
13836
  var resolve = capability.resolve;
13830
13837
  var reject = capability.reject;
13831
13838
  var result = perform$1(function () {
13832
- var $promiseResolve = aCallable$6(C.resolve);
13839
+ var $promiseResolve = aCallable$7(C.resolve);
13833
13840
  var values = [];
13834
13841
  var counter = 0;
13835
13842
  var remaining = 1;
13836
- iterate$4(iterable, function (promise) {
13843
+ iterate$5(iterable, function (promise) {
13837
13844
  var index = counter++;
13838
13845
  var alreadyCalled = false;
13839
13846
  remaining++;
13840
- call$9($promiseResolve, C, promise).then(function (value) {
13847
+ call$a($promiseResolve, C, promise).then(function (value) {
13841
13848
  if (alreadyCalled) return;
13842
13849
  alreadyCalled = true;
13843
13850
  values[index] = value;
@@ -13851,7 +13858,7 @@ $$o({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
13851
13858
  }
13852
13859
  });
13853
13860
 
13854
- var $$n = _export;
13861
+ var $$o = _export;
13855
13862
  var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
13856
13863
  var NativePromiseConstructor = promiseNativeConstructor;
13857
13864
  var getBuiltIn$5 = getBuiltIn$f;
@@ -13862,7 +13869,7 @@ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructo
13862
13869
 
13863
13870
  // `Promise.prototype.catch` method
13864
13871
  // https://tc39.es/ecma262/#sec-promise.prototype.catch
13865
- $$n({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
13872
+ $$o({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
13866
13873
  'catch': function (onRejected) {
13867
13874
  return this.then(undefined, onRejected);
13868
13875
  }
@@ -13876,25 +13883,25 @@ if (isCallable$1(NativePromiseConstructor)) {
13876
13883
  }
13877
13884
  }
13878
13885
 
13879
- var $$m = _export;
13880
- var call$8 = functionCall;
13881
- var aCallable$5 = aCallable$k;
13886
+ var $$n = _export;
13887
+ var call$9 = functionCall;
13888
+ var aCallable$6 = aCallable$l;
13882
13889
  var newPromiseCapabilityModule$1 = newPromiseCapability$2;
13883
13890
  var perform = perform$3;
13884
- var iterate$3 = iterate$9;
13891
+ var iterate$4 = iterate$a;
13885
13892
  var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
13886
13893
 
13887
13894
  // `Promise.race` method
13888
13895
  // https://tc39.es/ecma262/#sec-promise.race
13889
- $$m({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
13896
+ $$n({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
13890
13897
  race: function race(iterable) {
13891
13898
  var C = this;
13892
13899
  var capability = newPromiseCapabilityModule$1.f(C);
13893
13900
  var reject = capability.reject;
13894
13901
  var result = perform(function () {
13895
- var $promiseResolve = aCallable$5(C.resolve);
13896
- iterate$3(iterable, function (promise) {
13897
- call$8($promiseResolve, C, promise).then(capability.resolve, reject);
13902
+ var $promiseResolve = aCallable$6(C.resolve);
13903
+ iterate$4(iterable, function (promise) {
13904
+ call$9($promiseResolve, C, promise).then(capability.resolve, reject);
13898
13905
  });
13899
13906
  });
13900
13907
  if (result.error) reject(result.value);
@@ -13902,13 +13909,13 @@ $$m({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
13902
13909
  }
13903
13910
  });
13904
13911
 
13905
- var $$l = _export;
13912
+ var $$m = _export;
13906
13913
  var newPromiseCapabilityModule = newPromiseCapability$2;
13907
13914
  var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
13908
13915
 
13909
13916
  // `Promise.reject` method
13910
13917
  // https://tc39.es/ecma262/#sec-promise.reject
13911
- $$l({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
13918
+ $$m({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
13912
13919
  reject: function reject(r) {
13913
13920
  var capability = newPromiseCapabilityModule.f(this);
13914
13921
  var capabilityReject = capability.reject;
@@ -13917,12 +13924,12 @@ $$l({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
13917
13924
  }
13918
13925
  });
13919
13926
 
13920
- var anObject$5 = anObject$t;
13927
+ var anObject$6 = anObject$u;
13921
13928
  var isObject$6 = isObject$o;
13922
13929
  var newPromiseCapability = newPromiseCapability$2;
13923
13930
 
13924
13931
  var promiseResolve$1 = function (C, x) {
13925
- anObject$5(C);
13932
+ anObject$6(C);
13926
13933
  if (isObject$6(x) && x.constructor === C) return x;
13927
13934
  var promiseCapability = newPromiseCapability.f(C);
13928
13935
  var resolve = promiseCapability.resolve;
@@ -13930,7 +13937,7 @@ var promiseResolve$1 = function (C, x) {
13930
13937
  return promiseCapability.promise;
13931
13938
  };
13932
13939
 
13933
- var $$k = _export;
13940
+ var $$l = _export;
13934
13941
  var getBuiltIn$4 = getBuiltIn$f;
13935
13942
  var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
13936
13943
  var promiseResolve = promiseResolve$1;
@@ -13939,7 +13946,7 @@ getBuiltIn$4('Promise');
13939
13946
 
13940
13947
  // `Promise.resolve` method
13941
13948
  // https://tc39.es/ecma262/#sec-promise.resolve
13942
- $$k({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
13949
+ $$l({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
13943
13950
  resolve: function resolve(x) {
13944
13951
  return promiseResolve(this, x);
13945
13952
  }
@@ -13961,10 +13968,10 @@ if (DESCRIPTORS$8 && !regExpFlagsDetection.correct) {
13961
13968
  regExpFlagsDetection.correct = true;
13962
13969
  }
13963
13970
 
13964
- var call$7 = functionCall;
13971
+ var call$8 = functionCall;
13965
13972
  var uncurryThis$d = functionUncurryThis;
13966
13973
  var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
13967
- var anObject$4 = anObject$t;
13974
+ var anObject$5 = anObject$u;
13968
13975
  var isObject$5 = isObject$o;
13969
13976
  var requireObjectCoercible$1 = requireObjectCoercible$b;
13970
13977
  var speciesConstructor = speciesConstructor$2;
@@ -14005,7 +14012,7 @@ var BUGGY = 'abbc'.split(/(b)*/)[1] === 'c' ||
14005
14012
  // @@split logic
14006
14013
  fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) {
14007
14014
  var internalSplit = '0'.split(undefined, 0).length ? function (separator, limit) {
14008
- return separator === undefined && limit === 0 ? [] : call$7(nativeSplit, this, separator, limit);
14015
+ return separator === undefined && limit === 0 ? [] : call$8(nativeSplit, this, separator, limit);
14009
14016
  } : nativeSplit;
14010
14017
 
14011
14018
  return [
@@ -14015,8 +14022,8 @@ fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNa
14015
14022
  var O = requireObjectCoercible$1(this);
14016
14023
  var splitter = isObject$5(separator) ? getMethod(separator, SPLIT) : undefined;
14017
14024
  return splitter
14018
- ? call$7(splitter, separator, O, limit)
14019
- : call$7(internalSplit, toString$4(O), separator, limit);
14025
+ ? call$8(splitter, separator, O, limit)
14026
+ : call$8(internalSplit, toString$4(O), separator, limit);
14020
14027
  },
14021
14028
  // `RegExp.prototype[@@split]` method
14022
14029
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@split
@@ -14024,7 +14031,7 @@ fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNa
14024
14031
  // NOTE: This cannot be properly polyfilled in engines that don't support
14025
14032
  // the 'y' flag.
14026
14033
  function (string, limit) {
14027
- var rx = anObject$4(this);
14034
+ var rx = anObject$5(this);
14028
14035
  var S = toString$4(string);
14029
14036
 
14030
14037
  if (!BUGGY) {
@@ -14314,7 +14321,7 @@ var toBigInt$3 = function (argument) {
14314
14321
  };
14315
14322
 
14316
14323
  var bind$2 = functionBindContext;
14317
- var call$6 = functionCall;
14324
+ var call$7 = functionCall;
14318
14325
  var aConstructor = aConstructor$2;
14319
14326
  var toObject$3 = toObject$d;
14320
14327
  var lengthOfArrayLike$8 = lengthOfArrayLike$h;
@@ -14337,7 +14344,7 @@ var typedArrayFrom$1 = function from(source /* , mapfn, thisArg */) {
14337
14344
  iterator = getIterator(O, iteratorMethod);
14338
14345
  next = iterator.next;
14339
14346
  O = [];
14340
- while (!(step = call$6(next, iterator)).done) {
14347
+ while (!(step = call$7(next, iterator)).done) {
14341
14348
  O.push(step.value);
14342
14349
  }
14343
14350
  }
@@ -14446,9 +14453,9 @@ var arrayFromConstructorAndList$2 = function (Constructor, list, $length) {
14446
14453
  return result;
14447
14454
  };
14448
14455
 
14449
- var $$j = _export;
14456
+ var $$k = _export;
14450
14457
  var globalThis$e = globalThis_1;
14451
- var call$5 = functionCall;
14458
+ var call$6 = functionCall;
14452
14459
  var DESCRIPTORS$6 = descriptors;
14453
14460
  var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = typedArrayConstructorsRequireWrappers;
14454
14461
  var ArrayBufferViewCore$a = arrayBufferViewCore;
@@ -14553,7 +14560,7 @@ if (DESCRIPTORS$6) {
14553
14560
  addGetter(TypedArrayPrototype, 'length');
14554
14561
  }
14555
14562
 
14556
- $$j({ target: 'Object', stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS }, {
14563
+ $$k({ target: 'Object', stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS }, {
14557
14564
  getOwnPropertyDescriptor: wrappedGetOwnPropertyDescriptor,
14558
14565
  defineProperty: wrappedDefineProperty
14559
14566
  });
@@ -14616,7 +14623,7 @@ if (DESCRIPTORS$6) {
14616
14623
  } else if (isTypedArray(data)) {
14617
14624
  return arrayFromConstructorAndList$1(TypedArrayConstructor, data);
14618
14625
  } else {
14619
- return call$5(typedArrayFrom, TypedArrayConstructor, data);
14626
+ return call$6(typedArrayFrom, TypedArrayConstructor, data);
14620
14627
  }
14621
14628
  setInternalState$1(that, {
14622
14629
  buffer: buffer,
@@ -14641,7 +14648,7 @@ if (DESCRIPTORS$6) {
14641
14648
  ? new NativeTypedArrayConstructor(data, toOffset$1(typedArrayOffset, BYTES))
14642
14649
  : new NativeTypedArrayConstructor(data);
14643
14650
  if (isTypedArray(data)) return arrayFromConstructorAndList$1(TypedArrayConstructor, data);
14644
- return call$5(typedArrayFrom, TypedArrayConstructor, data);
14651
+ return call$6(typedArrayFrom, TypedArrayConstructor, data);
14645
14652
  }(), dummy, TypedArrayConstructor);
14646
14653
  });
14647
14654
 
@@ -14668,7 +14675,7 @@ if (DESCRIPTORS$6) {
14668
14675
 
14669
14676
  exported[CONSTRUCTOR_NAME] = TypedArrayConstructor;
14670
14677
 
14671
- $$j({ global: true, constructor: true, forced: FORCED, sham: !NATIVE_ARRAY_BUFFER_VIEWS }, exported);
14678
+ $$k({ global: true, constructor: true, forced: FORCED, sham: !NATIVE_ARRAY_BUFFER_VIEWS }, exported);
14672
14679
 
14673
14680
  if (!(BYTES_PER_ELEMENT in TypedArrayConstructor)) {
14674
14681
  createNonEnumerableProperty$1(TypedArrayConstructor, BYTES_PER_ELEMENT, BYTES);
@@ -14715,7 +14722,7 @@ var ArrayBufferViewCore$8 = arrayBufferViewCore;
14715
14722
  var $fill = arrayFill$1;
14716
14723
  var toBigInt$1 = toBigInt$3;
14717
14724
  var classof$2 = classof$g;
14718
- var call$4 = functionCall;
14725
+ var call$5 = functionCall;
14719
14726
  var uncurryThis$c = functionUncurryThis;
14720
14727
  var fails$a = fails$M;
14721
14728
 
@@ -14737,7 +14744,7 @@ exportTypedArrayMethod$8('fill', function fill(value /* , start, end */) {
14737
14744
  var length = arguments.length;
14738
14745
  aTypedArray$8(this);
14739
14746
  var actualValue = slice$1(classof$2(this), 0, 3) === 'Big' ? toBigInt$1(value) : +value;
14740
- return call$4($fill, this, actualValue, length > 1 ? arguments[1] : undefined, length > 2 ? arguments[2] : undefined);
14747
+ return call$5($fill, this, actualValue, length > 1 ? arguments[1] : undefined, length > 2 ? arguments[2] : undefined);
14741
14748
  }, CONVERSION_BUG);
14742
14749
 
14743
14750
  var bind = functionBindContext;
@@ -14800,7 +14807,7 @@ exportTypedArrayMethod$6('findLastIndex', function findLastIndex(predicate /* ,
14800
14807
  });
14801
14808
 
14802
14809
  var globalThis$d = globalThis_1;
14803
- var call$3 = functionCall;
14810
+ var call$4 = functionCall;
14804
14811
  var ArrayBufferViewCore$5 = arrayBufferViewCore;
14805
14812
  var lengthOfArrayLike$3 = lengthOfArrayLike$h;
14806
14813
  var toOffset = toOffset$2;
@@ -14817,7 +14824,7 @@ var exportTypedArrayMethod$5 = ArrayBufferViewCore$5.exportTypedArrayMethod;
14817
14824
  var WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS = !fails$9(function () {
14818
14825
  // eslint-disable-next-line es/no-typed-arrays -- required for testing
14819
14826
  var array = new Uint8ClampedArray(2);
14820
- call$3($set, array, { length: 1, 0: 3 }, 1);
14827
+ call$4($set, array, { length: 1, 0: 3 }, 1);
14821
14828
  return array[1] !== 3;
14822
14829
  });
14823
14830
 
@@ -14835,7 +14842,7 @@ exportTypedArrayMethod$5('set', function set(arrayLike /* , offset */) {
14835
14842
  aTypedArray$5(this);
14836
14843
  var offset = toOffset(arguments.length > 1 ? arguments[1] : undefined, 1);
14837
14844
  var src = toIndexedObject(arrayLike);
14838
- if (WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS) return call$3($set, this, src, offset);
14845
+ if (WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS) return call$4($set, this, src, offset);
14839
14846
  var length = this.length;
14840
14847
  var len = lengthOfArrayLike$3(src);
14841
14848
  var index = 0;
@@ -14862,7 +14869,7 @@ var environmentWebkitVersion = !!webkit && +webkit[1];
14862
14869
  var globalThis$c = globalThis_1;
14863
14870
  var uncurryThis$b = functionUncurryThisClause;
14864
14871
  var fails$8 = fails$M;
14865
- var aCallable$4 = aCallable$k;
14872
+ var aCallable$5 = aCallable$l;
14866
14873
  var internalSort$1 = arraySort$1;
14867
14874
  var ArrayBufferViewCore$4 = arrayBufferViewCore;
14868
14875
  var FF$1 = environmentFfVersion;
@@ -14923,7 +14930,7 @@ var getSortCompare$1 = function (comparefn) {
14923
14930
  // `%TypedArray%.prototype.sort` method
14924
14931
  // https://tc39.es/ecma262/#sec-%typedarray%.prototype.sort
14925
14932
  exportTypedArrayMethod$4('sort', function sort(comparefn) {
14926
- if (comparefn !== undefined) aCallable$4(comparefn);
14933
+ if (comparefn !== undefined) aCallable$5(comparefn);
14927
14934
  if (STABLE_SORT$1) return nativeSort$1(this, comparefn);
14928
14935
 
14929
14936
  return internalSort$1(aTypedArray$4(this), getSortCompare$1(comparefn));
@@ -14981,7 +14988,7 @@ exportTypedArrayMethod$2('toReversed', function toReversed() {
14981
14988
 
14982
14989
  var ArrayBufferViewCore$1 = arrayBufferViewCore;
14983
14990
  var uncurryThis$a = functionUncurryThis;
14984
- var aCallable$3 = aCallable$k;
14991
+ var aCallable$4 = aCallable$l;
14985
14992
  var arrayFromConstructorAndList = arrayFromConstructorAndList$2;
14986
14993
 
14987
14994
  var aTypedArray$1 = ArrayBufferViewCore$1.aTypedArray;
@@ -14992,7 +14999,7 @@ var sort = uncurryThis$a(ArrayBufferViewCore$1.TypedArrayPrototype.sort);
14992
14999
  // `%TypedArray%.prototype.toSorted` method
14993
15000
  // https://tc39.es/ecma262/#sec-%typedarray%.prototype.tosorted
14994
15001
  exportTypedArrayMethod$1('toSorted', function toSorted(compareFn) {
14995
- if (compareFn !== undefined) aCallable$3(compareFn);
15002
+ if (compareFn !== undefined) aCallable$4(compareFn);
14996
15003
  var O = aTypedArray$1(this);
14997
15004
  var A = arrayFromConstructorAndList(getTypedArrayConstructor$1(O), O);
14998
15005
  return sort(A, compareFn);
@@ -15258,7 +15265,7 @@ var anUint8Array$4 = function (argument) {
15258
15265
  throw new $TypeError$3('Argument is not an Uint8Array');
15259
15266
  };
15260
15267
 
15261
- var $$i = _export;
15268
+ var $$j = _export;
15262
15269
  var globalThis$9 = globalThis_1;
15263
15270
  var $fromBase64 = uint8FromBase64;
15264
15271
  var anUint8Array$3 = anUint8Array$4;
@@ -15285,7 +15292,7 @@ var INCORRECT_BEHAVIOR_OR_DOESNT_EXISTS$2 = !Uint8Array$4 || !Uint8Array$4.proto
15285
15292
 
15286
15293
  // `Uint8Array.prototype.setFromBase64` method
15287
15294
  // https://github.com/tc39/proposal-arraybuffer-base64
15288
- if (Uint8Array$4) $$i({ target: 'Uint8Array', proto: true, forced: INCORRECT_BEHAVIOR_OR_DOESNT_EXISTS$2 }, {
15295
+ if (Uint8Array$4) $$j({ target: 'Uint8Array', proto: true, forced: INCORRECT_BEHAVIOR_OR_DOESNT_EXISTS$2 }, {
15289
15296
  setFromBase64: function setFromBase64(string /* , options */) {
15290
15297
  anUint8Array$3(this);
15291
15298
 
@@ -15321,7 +15328,7 @@ var uint8FromHex = function (string, into) {
15321
15328
  return { bytes: bytes, read: read };
15322
15329
  };
15323
15330
 
15324
- var $$h = _export;
15331
+ var $$i = _export;
15325
15332
  var globalThis$7 = globalThis_1;
15326
15333
  var aString = aString$2;
15327
15334
  var anUint8Array$2 = anUint8Array$4;
@@ -15343,7 +15350,7 @@ function throwsOnLengthTrackingView() {
15343
15350
 
15344
15351
  // `Uint8Array.prototype.setFromHex` method
15345
15352
  // https://github.com/tc39/proposal-arraybuffer-base64
15346
- if (globalThis$7.Uint8Array) $$h({ target: 'Uint8Array', proto: true, forced: throwsOnLengthTrackingView() }, {
15353
+ if (globalThis$7.Uint8Array) $$i({ target: 'Uint8Array', proto: true, forced: throwsOnLengthTrackingView() }, {
15347
15354
  setFromHex: function setFromHex(string) {
15348
15355
  anUint8Array$2(this);
15349
15356
  aString(string);
@@ -15353,7 +15360,7 @@ if (globalThis$7.Uint8Array) $$h({ target: 'Uint8Array', proto: true, forced: th
15353
15360
  }
15354
15361
  });
15355
15362
 
15356
- var $$g = _export;
15363
+ var $$h = _export;
15357
15364
  var globalThis$6 = globalThis_1;
15358
15365
  var uncurryThis$7 = functionUncurryThis;
15359
15366
  var anObjectOrUndefined = anObjectOrUndefined$2;
@@ -15380,7 +15387,7 @@ var INCORRECT_BEHAVIOR_OR_DOESNT_EXISTS$1 = !Uint8Array$2 || !Uint8Array$2.proto
15380
15387
 
15381
15388
  // `Uint8Array.prototype.toBase64` method
15382
15389
  // https://github.com/tc39/proposal-arraybuffer-base64
15383
- if (Uint8Array$2) $$g({ target: 'Uint8Array', proto: true, forced: INCORRECT_BEHAVIOR_OR_DOESNT_EXISTS$1 }, {
15390
+ if (Uint8Array$2) $$h({ target: 'Uint8Array', proto: true, forced: INCORRECT_BEHAVIOR_OR_DOESNT_EXISTS$1 }, {
15384
15391
  toBase64: function toBase64(/* options */) {
15385
15392
  var array = anUint8Array$1(this);
15386
15393
  var options = arguments.length ? anObjectOrUndefined(arguments[0]) : undefined;
@@ -15413,7 +15420,7 @@ if (Uint8Array$2) $$g({ target: 'Uint8Array', proto: true, forced: INCORRECT_BEH
15413
15420
  }
15414
15421
  });
15415
15422
 
15416
- var $$f = _export;
15423
+ var $$g = _export;
15417
15424
  var globalThis$5 = globalThis_1;
15418
15425
  var uncurryThis$6 = functionUncurryThis;
15419
15426
  var anUint8Array = anUint8Array$4;
@@ -15434,7 +15441,7 @@ var INCORRECT_BEHAVIOR_OR_DOESNT_EXISTS = !Uint8Array$1 || !Uint8Array$1.prototy
15434
15441
 
15435
15442
  // `Uint8Array.prototype.toHex` method
15436
15443
  // https://github.com/tc39/proposal-arraybuffer-base64
15437
- if (Uint8Array$1) $$f({ target: 'Uint8Array', proto: true, forced: INCORRECT_BEHAVIOR_OR_DOESNT_EXISTS }, {
15444
+ if (Uint8Array$1) $$g({ target: 'Uint8Array', proto: true, forced: INCORRECT_BEHAVIOR_OR_DOESNT_EXISTS }, {
15438
15445
  toHex: function toHex() {
15439
15446
  anUint8Array(this);
15440
15447
  notDetached(this.buffer);
@@ -15447,7 +15454,7 @@ if (Uint8Array$1) $$f({ target: 'Uint8Array', proto: true, forced: INCORRECT_BEH
15447
15454
  }
15448
15455
  });
15449
15456
 
15450
- var $$e = _export;
15457
+ var $$f = _export;
15451
15458
  var globalThis$4 = globalThis_1;
15452
15459
  var defineBuiltInAccessor$2 = defineBuiltInAccessor$e;
15453
15460
  var DESCRIPTORS$5 = descriptors;
@@ -15483,7 +15490,7 @@ try {
15483
15490
  enumerable: true
15484
15491
  });
15485
15492
  }
15486
- } else $$e({ global: true, simple: true, forced: INCORRECT_VALUE }, {
15493
+ } else $$f({ global: true, simple: true, forced: INCORRECT_VALUE }, {
15487
15494
  self: globalThis$4
15488
15495
  });
15489
15496
  } catch (error) { /* empty */ }
@@ -15898,7 +15905,7 @@ function F(t) {
15898
15905
  return new E[['Active'].concat('Object').join('X')]('Microsoft.XMLHTTP');
15899
15906
  } catch (t) {}
15900
15907
  }
15901
- const $$d = 'undefined' != typeof navigator && 'string' == typeof navigator.product && 'reactnative' === navigator.product.toLowerCase();
15908
+ const $$e = 'undefined' != typeof navigator && 'string' == typeof navigator.product && 'reactnative' === navigator.product.toLowerCase();
15902
15909
  class V extends T {
15903
15910
  get name() {
15904
15911
  return 'websocket';
@@ -15906,7 +15913,7 @@ class V extends T {
15906
15913
  doOpen() {
15907
15914
  const t = this.uri(),
15908
15915
  s = this.opts.protocols,
15909
- i = $$d ? {} : O(this.opts, 'agent', 'perMessageDeflate', 'pfx', 'key', 'passphrase', 'cert', 'ca', 'ciphers', 'rejectUnauthorized', 'localAddress', 'protocolVersion', 'origin', 'maxPayload', 'family', 'checkServerIdentity');
15916
+ i = $$e ? {} : O(this.opts, 'agent', 'perMessageDeflate', 'pfx', 'key', 'passphrase', 'cert', 'ca', 'ciphers', 'rejectUnauthorized', 'localAddress', 'protocolVersion', 'origin', 'maxPayload', 'family', 'checkServerIdentity');
15910
15917
  this.opts.extraHeaders && (i.headers = this.opts.extraHeaders);
15911
15918
  try {
15912
15919
  this.ws = this.createSocket(t, s, i);
@@ -15950,7 +15957,7 @@ class V extends T {
15950
15957
  const H = E.WebSocket || E.MozWebSocket;
15951
15958
  class W extends V {
15952
15959
  createSocket(t, s, i) {
15953
- return $$d ? new H(t, s, i) : s ? new H(t, s) : new H(t);
15960
+ return $$e ? new H(t, s, i) : s ? new H(t, s) : new H(t);
15954
15961
  }
15955
15962
  doWrite(t, s) {
15956
15963
  this.ws.send(s);
@@ -17371,12 +17378,12 @@ var numberParseInt = FORCED$4 ? function parseInt(string, radix) {
17371
17378
  return $parseInt$1(S, (radix >>> 0) || (exec$1(hex, S) ? 16 : 10));
17372
17379
  } : $parseInt$1;
17373
17380
 
17374
- var $$c = _export;
17381
+ var $$d = _export;
17375
17382
  var $parseInt = numberParseInt;
17376
17383
 
17377
17384
  // `parseInt` method
17378
17385
  // https://tc39.es/ecma262/#sec-parseint-string-radix
17379
- $$c({ global: true, forced: parseInt !== $parseInt }, {
17386
+ $$d({ global: true, forced: parseInt !== $parseInt }, {
17380
17387
  parseInt: $parseInt
17381
17388
  });
17382
17389
 
@@ -18575,7 +18582,7 @@ const resolveCapabilities = context => {
18575
18582
  });
18576
18583
  };
18577
18584
 
18578
- var $$b = _export;
18585
+ var $$c = _export;
18579
18586
  var uncurryThis$4 = functionUncurryThisClause;
18580
18587
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
18581
18588
  var toLength = toLength$8;
@@ -18596,7 +18603,7 @@ var MDN_POLYFILL_BUG = !CORRECT_IS_REGEXP_LOGIC && !!function () {
18596
18603
 
18597
18604
  // `String.prototype.endsWith` method
18598
18605
  // https://tc39.es/ecma262/#sec-string.prototype.endswith
18599
- $$b({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
18606
+ $$c({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
18600
18607
  endsWith: function endsWith(searchString /* , endPosition = @length */) {
18601
18608
  var that = toString$2(requireObjectCoercible(this));
18602
18609
  notARegExp(searchString);
@@ -18889,10 +18896,199 @@ class ChatBlocksCreator {
18889
18896
  }
18890
18897
  }
18891
18898
 
18899
+ // Agent emits ```stage\naction: clear\n``` — tolerate a bare `clear` too, LLMs drift.
18900
+ const parseStageDirective = text => {
18901
+ const trimmed = text.trim();
18902
+ if (!trimmed) return null;
18903
+ let action = trimmed;
18904
+ try {
18905
+ const parsed = yaml.load(trimmed);
18906
+ if (parsed && typeof parsed === 'object') {
18907
+ action = parsed['action'];
18908
+ }
18909
+ } catch (_a) {
18910
+ // fall through with raw text
18911
+ }
18912
+ return typeof action === 'string' && action.trim().toLowerCase() === 'clear' ? 'clear' : null;
18913
+ };
18914
+
18915
+ const MIN_STEPS = 2;
18916
+ const MAX_STEPS = 12;
18917
+ const parseVisible = value => {
18918
+ if (typeof value === 'boolean') return value;
18919
+ if (typeof value !== 'string') return null;
18920
+ const normalized = value.trim().toLowerCase();
18921
+ if (normalized === 'on' || normalized === 'true') return true;
18922
+ if (normalized === 'off' || normalized === 'false') return false;
18923
+ return null;
18924
+ };
18925
+ // Agent emits ```ui-progress-bar``` with a YAML body. Anything invalid returns null so the
18926
+ // bar the user already sees is kept rather than replaced by a half-understood one.
18927
+ const parseProgressBar = text => {
18928
+ let parsed;
18929
+ try {
18930
+ parsed = yaml.load(text);
18931
+ } catch (_a) {
18932
+ return null;
18933
+ }
18934
+ if (!parsed || typeof parsed !== 'object') return null;
18935
+ const {
18936
+ visible,
18937
+ totalSteps,
18938
+ currentStep,
18939
+ type,
18940
+ variant
18941
+ } = parsed;
18942
+ const isVisible = parseVisible(visible);
18943
+ if (isVisible === null) return null;
18944
+ if (type !== 'dots') return null;
18945
+ if (!Number.isInteger(totalSteps) || totalSteps < MIN_STEPS || totalSteps > MAX_STEPS) {
18946
+ return null;
18947
+ }
18948
+ if (!Number.isInteger(currentStep) || currentStep < 1 || currentStep > totalSteps) {
18949
+ return null;
18950
+ }
18951
+ return Object.assign({
18952
+ visible: isVisible,
18953
+ totalSteps: totalSteps,
18954
+ currentStep: currentStep,
18955
+ type: 'dots'
18956
+ }, typeof variant === 'string' && variant ? {
18957
+ variant
18958
+ } : {});
18959
+ };
18960
+
18961
+ var $$b = _export;
18962
+ var call$3 = functionCall;
18963
+ var iterate$3 = iterate$a;
18964
+ var aCallable$3 = aCallable$l;
18965
+ var anObject$4 = anObject$u;
18966
+ var getIteratorDirect$2 = getIteratorDirect$8;
18967
+ var iteratorClose$3 = iteratorClose$d;
18968
+ var iteratorHelperWithoutClosingOnEarlyError$1 = iteratorHelperWithoutClosingOnEarlyError$7;
18969
+
18970
+ var everyWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError$1('every', TypeError);
18971
+
18972
+ // `Iterator.prototype.every` method
18973
+ // https://tc39.es/ecma262/#sec-iterator.prototype.every
18974
+ $$b({ target: 'Iterator', proto: true, real: true, forced: everyWithoutClosingOnEarlyError }, {
18975
+ every: function every(predicate) {
18976
+ anObject$4(this);
18977
+ try {
18978
+ aCallable$3(predicate);
18979
+ } catch (error) {
18980
+ iteratorClose$3(this, 'throw', error);
18981
+ }
18982
+
18983
+ if (everyWithoutClosingOnEarlyError) return call$3(everyWithoutClosingOnEarlyError, this, predicate);
18984
+
18985
+ var record = getIteratorDirect$2(this);
18986
+ var counter = 0;
18987
+ return !iterate$3(record, function (value, stop) {
18988
+ if (!predicate(value, counter++)) return stop();
18989
+ }, { IS_RECORD: true, INTERRUPTED: true }).stopped;
18990
+ }
18991
+ });
18992
+
18993
+ // Structural equality for YAML-parsed settings (plain JSON values only).
18994
+ const isDeepEqual = (a, b) => {
18995
+ if (a === b) return true;
18996
+ if (typeof a !== 'object' || typeof b !== 'object' || !a || !b) return false;
18997
+ if (Array.isArray(a) !== Array.isArray(b)) return false;
18998
+ const aRecord = a;
18999
+ const bRecord = b;
19000
+ const aKeys = Object.keys(aRecord);
19001
+ if (aKeys.length !== Object.keys(bRecord).length) return false;
19002
+ return aKeys.every(key => Object.prototype.hasOwnProperty.call(bRecord, key) && isDeepEqual(aRecord[key], bRecord[key]));
19003
+ };
19004
+
19005
+ const STAGE_VARIABLE_NAME = 'avatar_stage';
19006
+ const MAX_SETTINGS_LENGTH = 4000;
19007
+ // Serialized as a JSON string: conversation-manager types request_vars as
19008
+ // Record<string, string>, and a string renders cleanly inside `{{avatar_stage}}`.
19009
+ // settings can come from public APIs, so serialization may throw (cycles, BigInt) or yield undefined.
19010
+ const serializeSettings = settings => {
19011
+ var _a;
19012
+ try {
19013
+ return (_a = JSON.stringify(settings)) !== null && _a !== void 0 ? _a : null;
19014
+ } catch (_b) {
19015
+ return null;
19016
+ }
19017
+ };
19018
+ const buildStageVariable = content => {
19019
+ var _a, _b, _c;
19020
+ if (!content) {
19021
+ return JSON.stringify({
19022
+ status: 'empty'
19023
+ });
19024
+ }
19025
+ if (content.type !== 'unisphere-tool' || content.status === 'error') {
19026
+ return JSON.stringify({
19027
+ status: 'error'
19028
+ });
19029
+ }
19030
+ const settings = serializeSettings((_a = content.settings) !== null && _a !== void 0 ? _a : {});
19031
+ const isTruncated = settings === null || settings.length > MAX_SETTINGS_LENGTH;
19032
+ return JSON.stringify(Object.assign({
19033
+ status: 'shown',
19034
+ runtime: content.runtimeName,
19035
+ contentId: content.id,
19036
+ revision: (_b = content.revision) !== null && _b !== void 0 ? _b : 0
19037
+ }, isTruncated ? {
19038
+ settingsTruncated: true
19039
+ } : {
19040
+ settings: (_c = content.settings) !== null && _c !== void 0 ? _c : {}
19041
+ }));
19042
+ };
19043
+
19044
+ const isSameTool = (a, b) => (a === null || a === void 0 ? void 0 : a.type) === 'unisphere-tool' && a.widgetName === b.widgetName && a.runtimeName === b.runtimeName;
19045
+ /**
19046
+ * Persistent-stage reducer for a completed agent message. Returns the current
19047
+ * reference when nothing should change so downstream stores skip the update.
19048
+ * Same tool re-emitted keeps the current block id (React key), so the visual is
19049
+ * updated in place rather than remounted.
19050
+ */
19051
+ const resolvePersistentContent = ({
19052
+ current,
19053
+ incoming,
19054
+ stageDirective
19055
+ }) => {
19056
+ var _a;
19057
+ if (!incoming) {
19058
+ return stageDirective === 'clear' ? null : current;
19059
+ }
19060
+ if (incoming.type !== 'unisphere-tool' || incoming.status !== 'ready' || (current === null || current === void 0 ? void 0 : current.type) !== 'unisphere-tool' || current.status !== 'ready' || !isSameTool(current, incoming)) {
19061
+ return incoming;
19062
+ }
19063
+ if (isDeepEqual(current.settings, incoming.settings)) {
19064
+ return current;
19065
+ }
19066
+ return Object.assign(Object.assign({}, incoming), {
19067
+ id: current.id,
19068
+ revision: ((_a = current.revision) !== null && _a !== void 0 ? _a : 0) + 1
19069
+ });
19070
+ };
19071
+
19072
+ const PROGRESS_BAR_VARIABLE_NAME = 'progress_bar';
19073
+ // Serialized as a JSON string: conversation-manager types request_vars as
19074
+ // Record<string, string>, and a string renders cleanly inside `{{progress_bar}}`.
19075
+ const buildProgressBarVariable = progressBar => {
19076
+ if (!progressBar || !progressBar.visible) {
19077
+ return JSON.stringify({
19078
+ status: 'hidden'
19079
+ });
19080
+ }
19081
+ return JSON.stringify({
19082
+ status: 'shown',
19083
+ currentStep: progressBar.currentStep,
19084
+ totalSteps: progressBar.totalSteps
19085
+ });
19086
+ };
19087
+
18892
19088
  const sendJoinRoom = ({
18893
19089
  context
18894
19090
  }) => {
18895
- var _a;
19091
+ var _a, _b;
18896
19092
  const client = websocketClientManager.getClient(context.externalInfo.serverUrl);
18897
19093
  if (!client) {
18898
19094
  throw new Error('WebSocket client not found');
@@ -18901,18 +19097,24 @@ const sendJoinRoom = ({
18901
19097
  const activeContext = resolveActiveKalturaContext(context);
18902
19098
  const kalturaContextType = resolveActiveContextType(activeContext);
18903
19099
  const capabilities = resolveCapabilities(context);
19100
+ // Seed `progress_bar` so progress-bar-aware skill text is active from turn one.
19101
+ // Persistent content: also seed `avatar_stage` for the same reason.
19102
+ const requestVars = Object.assign(Object.assign(Object.assign({}, context.dynamicVariables), {
19103
+ [PROGRESS_BAR_VARIABLE_NAME]: buildProgressBarVariable(context.progressBar)
19104
+ }), ((_a = context.externalInfo.features) === null || _a === void 0 ? void 0 : _a.persistentContent) ? {
19105
+ [STAGE_VARIABLE_NAME]: buildStageVariable(context.content)
19106
+ } : {});
18904
19107
  client.emit('join', {
18905
19108
  client: context.externalInfo.clientId,
18906
19109
  room: context.externalInfo.roomId,
18907
19110
  channel: context.externalInfo.roomId,
18908
19111
  // keeping 'channel' for backend compatibility during transition
18909
- kaltura: Object.assign(Object.assign(Object.assign({}, kalturaContextType), {
18910
- threadId: (_a = context.threadId) !== null && _a !== void 0 ? _a : context.externalInfo.threadId,
19112
+ kaltura: Object.assign(Object.assign({}, kalturaContextType), {
19113
+ threadId: (_b = context.threadId) !== null && _b !== void 0 ? _b : context.externalInfo.threadId,
18911
19114
  force_experience: 'avatar_only',
18912
- capabilities
18913
- }), context.dynamicVariables ? {
18914
- request_vars: context.dynamicVariables
18915
- } : {}),
19115
+ capabilities,
19116
+ request_vars: requestVars
19117
+ }),
18916
19118
  userAgent: context.userAgent,
18917
19119
  userAgentHints: context.userAgentHints,
18918
19120
  isMobile: context.isMobile,
@@ -19509,12 +19711,12 @@ const shouldAutoJoinSTVPlayer = ({
19509
19711
 
19510
19712
  var $$a = _export;
19511
19713
  var call$2 = functionCall;
19512
- var iterate$2 = iterate$9;
19513
- var aCallable$2 = aCallable$k;
19514
- var anObject$3 = anObject$t;
19515
- var getIteratorDirect$1 = getIteratorDirect$7;
19516
- var iteratorClose$2 = iteratorClose$c;
19517
- var iteratorHelperWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError$6;
19714
+ var iterate$2 = iterate$a;
19715
+ var aCallable$2 = aCallable$l;
19716
+ var anObject$3 = anObject$u;
19717
+ var getIteratorDirect$1 = getIteratorDirect$8;
19718
+ var iteratorClose$2 = iteratorClose$d;
19719
+ var iteratorHelperWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError$7;
19518
19720
 
19519
19721
  var findWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError('find', TypeError);
19520
19722
 
@@ -19543,10 +19745,12 @@ const setContentData = assign$1(({
19543
19745
  context,
19544
19746
  event
19545
19747
  }) => {
19748
+ var _a;
19546
19749
  assertEvent(event, [AvatarConnectionMachineEventTypes.SetContent, AvatarConnectionMachineEventTypes.AgentRawTextMessageCompleted, AvatarConnectionMachineEventTypes.AgentStartSpeechReceived]);
19547
19750
  const {
19548
19751
  logger
19549
19752
  } = context;
19753
+ const isPersistent = ((_a = context.externalInfo.features) === null || _a === void 0 ? void 0 : _a.persistentContent) === true;
19550
19754
  return produce(context, draftContext => {
19551
19755
  if (event.type === AvatarConnectionMachineEventTypes.SetContent) {
19552
19756
  logger.log(`${event.payload ? 'Setting' : 'Unsetting'} content`);
@@ -19555,6 +19759,25 @@ const setContentData = assign$1(({
19555
19759
  }
19556
19760
  if (event.type === AvatarConnectionMachineEventTypes.AgentRawTextMessageCompleted) {
19557
19761
  const contentBlock = event.blocks.find(block => block.type === 'unisphere-tool' || block.type === 'error');
19762
+ if (isPersistent) {
19763
+ const next = resolvePersistentContent({
19764
+ current: context.content,
19765
+ incoming: contentBlock && Object.assign(Object.assign({}, contentBlock), {
19766
+ messageId: event.messageId,
19767
+ speechId: event.speechId
19768
+ }),
19769
+ stageDirective: event.stageDirective
19770
+ });
19771
+ if (next === context.content) {
19772
+ logger.log('Persistent content: keeping current stage content');
19773
+ return;
19774
+ }
19775
+ logger.log('Persistent content: updating stage content', {
19776
+ data: next
19777
+ });
19778
+ draftContext.content = next;
19779
+ return;
19780
+ }
19558
19781
  if (contentBlock) {
19559
19782
  logger.log('Setting content from completed raw text message', {
19560
19783
  data: contentBlock
@@ -19569,7 +19792,7 @@ const setContentData = assign$1(({
19569
19792
  }
19570
19793
  }
19571
19794
  if (event.type === AvatarConnectionMachineEventTypes.AgentStartSpeechReceived) {
19572
- if (event.payload.isNewTurn) {
19795
+ if (event.payload.isNewTurn && !isPersistent) {
19573
19796
  logger.log('Agent started new turn, unsetting content');
19574
19797
  draftContext.content = null;
19575
19798
  }
@@ -19577,6 +19800,39 @@ const setContentData = assign$1(({
19577
19800
  });
19578
19801
  });
19579
19802
 
19803
+ // A message without a progress bar fence leaves the bar as is: the client holds it
19804
+ // between turns, the agent only emits on change.
19805
+ const setProgressBarData = assign$1(({
19806
+ context,
19807
+ event
19808
+ }) => {
19809
+ assertEvent(event, AvatarConnectionMachineEventTypes.AgentRawTextMessageCompleted);
19810
+ const {
19811
+ progressBar
19812
+ } = event;
19813
+ if (!progressBar || isDeepEqual(progressBar, context.progressBar)) {
19814
+ return {};
19815
+ }
19816
+ context.logger.log('Updating progress bar', {
19817
+ data: progressBar
19818
+ });
19819
+ return {
19820
+ progressBar
19821
+ };
19822
+ });
19823
+
19824
+ const trackPushedStageContent = assign$1({
19825
+ pushedStageContent: ({
19826
+ context
19827
+ }) => context.content
19828
+ });
19829
+
19830
+ const trackPushedProgressBar = assign$1({
19831
+ pushedProgressBar: ({
19832
+ context
19833
+ }) => context.progressBar
19834
+ });
19835
+
19580
19836
  const sendAskViaText = ({
19581
19837
  context
19582
19838
  }, params) => {
@@ -19797,11 +20053,11 @@ var setSize = uncurryThisAccessor(SetHelpers$3.proto, 'size', 'get') || function
19797
20053
  return set.size;
19798
20054
  };
19799
20055
 
19800
- var aCallable$1 = aCallable$k;
19801
- var anObject$2 = anObject$t;
20056
+ var aCallable$1 = aCallable$l;
20057
+ var anObject$2 = anObject$u;
19802
20058
  var call = functionCall;
19803
20059
  var toIntegerOrInfinity = toIntegerOrInfinity$c;
19804
- var getIteratorDirect = getIteratorDirect$7;
20060
+ var getIteratorDirect = getIteratorDirect$8;
19805
20061
 
19806
20062
  var INVALID_SIZE = 'Invalid size';
19807
20063
  var $RangeError = RangeError;
@@ -20013,7 +20269,7 @@ var size$2 = setSize;
20013
20269
  var getSetRecord$4 = getSetRecord$7;
20014
20270
  var iterateSet = setIterate;
20015
20271
  var iterateSimple$3 = iterateSimple$7;
20016
- var iteratorClose$1 = iteratorClose$c;
20272
+ var iteratorClose$1 = iteratorClose$d;
20017
20273
 
20018
20274
  // `Set.prototype.isDisjointFrom` method
20019
20275
  // https://tc39.es/ecma262/#sec-set.prototype.isdisjointfrom
@@ -20078,7 +20334,7 @@ var has$1 = setHelpers.has;
20078
20334
  var size = setSize;
20079
20335
  var getSetRecord$2 = getSetRecord$7;
20080
20336
  var iterateSimple$2 = iterateSimple$7;
20081
- var iteratorClose = iteratorClose$c;
20337
+ var iteratorClose = iteratorClose$d;
20082
20338
 
20083
20339
  // `Set.prototype.isSupersetOf` method
20084
20340
  // https://tc39.es/ecma262/#sec-set.prototype.issupersetof
@@ -20206,6 +20462,10 @@ $$3({ target: 'Set', proto: true, real: true, forced: FORCED$1 }, {
20206
20462
  // Only these types contribute blocks to the assembled message.
20207
20463
  // avatar/ think / tool / tool_response / init_response are agent-internal and skipped.
20208
20464
  const ASSEMBLY_TYPES = new Set(['text', 'unisphere-tool', 'error']);
20465
+ // ```stage``` control fence; the server relays unknown fence tags as their own segment type.
20466
+ const STAGE_TYPE = 'stage';
20467
+ // ```ui-progress-bar``` control fence, relayed by the server the same way as `stage`.
20468
+ const PROGRESS_BAR_TYPE = 'ui-progress-bar';
20209
20469
  const source$d = createTinyPubsubEventsSource(websocketMessage, {
20210
20470
  agent_raw_text: {
20211
20471
  schema: agentRawTextSchema
@@ -20220,11 +20480,15 @@ const onAgentRawText = fromCallback(({
20220
20480
  let currentMessageId = null;
20221
20481
  let chatBlocksCreator = new ChatBlocksCreator(input.logger);
20222
20482
  let assembledBlocks = [];
20483
+ // Control-fence text per messageId: streams can interleave, so one message must not overwrite another's.
20484
+ const stageText = new Map();
20485
+ const progressBarText = new Map();
20223
20486
  return createTinyPubsubEventsHandler({
20224
20487
  source: source$d,
20225
20488
  logger: input.logger,
20226
20489
  handlers: {
20227
20490
  agent_raw_text: payload => {
20491
+ var _a, _b;
20228
20492
  try {
20229
20493
  const delta = JSON.parse(payload.delta);
20230
20494
  const result = agentRawTextDeltaSchema.safeParse(delta);
@@ -20257,6 +20521,14 @@ const onAgentRawText = fromCallback(({
20257
20521
  });
20258
20522
  assembledBlocks = [...assembledBlocks, ...newBlocks];
20259
20523
  }
20524
+ if (parsedDelta.type === STAGE_TYPE) {
20525
+ const content = typeof parsedDelta.content === 'string' ? parsedDelta.content : '';
20526
+ stageText.set(parsedDelta.messageId, ((_a = stageText.get(parsedDelta.messageId)) !== null && _a !== void 0 ? _a : '') + content);
20527
+ }
20528
+ if (parsedDelta.type === PROGRESS_BAR_TYPE) {
20529
+ const content = typeof parsedDelta.content === 'string' ? parsedDelta.content : '';
20530
+ progressBarText.set(parsedDelta.messageId, ((_b = progressBarText.get(parsedDelta.messageId)) !== null && _b !== void 0 ? _b : '') + content);
20531
+ }
20260
20532
  // share chunk = message complete
20261
20533
  if (parsedDelta.type === 'share' && parsedDelta.segmentStart && parsedDelta.segmentEnd) {
20262
20534
  // Each streaming block is returned on every chunk update (same id,
@@ -20265,18 +20537,31 @@ const onAgentRawText = fromCallback(({
20265
20537
  for (const block of assembledBlocks) {
20266
20538
  blockMap.set(block.id, block);
20267
20539
  }
20268
- sendBack({
20540
+ const stageFence = stageText.get(parsedDelta.messageId);
20541
+ const stageDirective = stageFence !== undefined ? parseStageDirective(stageFence) : null;
20542
+ const progressBarFence = progressBarText.get(parsedDelta.messageId);
20543
+ const progressBar = progressBarFence !== undefined ? parseProgressBar(progressBarFence) : null;
20544
+ if (progressBarFence !== undefined && !progressBar) {
20545
+ input.logger.warn('agent_raw_text: ignoring invalid ui-progress-bar block');
20546
+ }
20547
+ sendBack(Object.assign(Object.assign({
20269
20548
  type: AvatarConnectionMachineEventTypes.AgentRawTextMessageCompleted,
20270
20549
  messageId: parsedDelta.messageId,
20271
20550
  speechId: payload.speechId,
20272
20551
  blocks: [...blockMap.values()]
20273
- });
20552
+ }, stageDirective ? {
20553
+ stageDirective
20554
+ } : {}), progressBar ? {
20555
+ progressBar
20556
+ } : {}));
20274
20557
  // reset for next message
20275
20558
  currentMessageId = null;
20276
20559
  chatBlocksCreator = new ChatBlocksCreator(input.logger);
20277
20560
  assembledBlocks = [];
20561
+ stageText.delete(parsedDelta.messageId);
20562
+ progressBarText.delete(parsedDelta.messageId);
20278
20563
  }
20279
- } catch (_a) {
20564
+ } catch (_c) {
20280
20565
  // delta is not valid JSON, ignore
20281
20566
  }
20282
20567
  }
@@ -20903,7 +21188,7 @@ const onChatLog = fromCallback(({
20903
21188
 
20904
21189
  var DESCRIPTORS$4 = descriptors;
20905
21190
  var fails$3 = fails$M;
20906
- var anObject$1 = anObject$t;
21191
+ var anObject$1 = anObject$u;
20907
21192
  var normalizeStringArgument$2 = normalizeStringArgument$4;
20908
21193
 
20909
21194
  var nativeErrorToString = Error.prototype.toString;
@@ -20969,7 +21254,7 @@ var defineBuiltIn$1 = defineBuiltIn$f;
20969
21254
  var defineBuiltInAccessor$1 = defineBuiltInAccessor$e;
20970
21255
  var hasOwn$2 = hasOwnProperty_1;
20971
21256
  var anInstance$1 = anInstance$8;
20972
- var anObject = anObject$t;
21257
+ var anObject = anObject$u;
20973
21258
  var errorToString = errorToString$1;
20974
21259
  var normalizeStringArgument$1 = normalizeStringArgument$4;
20975
21260
  var DOMExceptionConstants$1 = domExceptionConstants;
@@ -21544,7 +21829,7 @@ const isAgentTalking = ({
21544
21829
 
21545
21830
  var $ = _export;
21546
21831
  var uncurryThis$1 = functionUncurryThis;
21547
- var aCallable = aCallable$k;
21832
+ var aCallable = aCallable$l;
21548
21833
  var toObject = toObject$d;
21549
21834
  var lengthOfArrayLike = lengthOfArrayLike$h;
21550
21835
  var deletePropertyOrThrow = deletePropertyOrThrow$2;
@@ -22731,24 +23016,46 @@ const setKalturaContextIsActive = assign$1(({
22731
23016
  };
22732
23017
  });
22733
23018
 
23019
+ // request_vars are replaced as a whole on every updateGenieContext, so every push
23020
+ // carries the progress bar variable next to the host variables - otherwise a host
23021
+ // variable update would blank it for the agent.
23022
+ const withProgressBar = (hostVariables, context) => Object.assign(Object.assign({}, hostVariables), {
23023
+ [PROGRESS_BAR_VARIABLE_NAME]: buildProgressBarVariable(context.progressBar)
23024
+ });
23025
+ // conversation-manager replaces context, capabilities and request_vars on every
23026
+ // updateGenieContext, so persistent mode always sends the full snapshot - otherwise
23027
+ // a stage push would wipe host variables and context, and vice versa.
23028
+ const buildFullPayload = context => Object.assign(Object.assign({}, resolveActiveContextType(resolveActiveKalturaContext(context))), {
23029
+ capabilities: resolveCapabilities(context),
23030
+ request_vars: Object.assign(Object.assign({}, withProgressBar(context.dynamicVariables, context)), {
23031
+ [STAGE_VARIABLE_NAME]: buildStageVariable(context.content)
23032
+ })
23033
+ });
22734
23034
  const sendUpdateGenieContext = ({
22735
23035
  context,
22736
23036
  event
22737
23037
  }) => {
23038
+ var _a;
22738
23039
  const client = websocketClientManager.getClient(context.externalInfo.serverUrl);
22739
23040
  if (!client) {
22740
23041
  throw new Error('WebSocket client not found');
22741
23042
  }
22742
23043
  let payload = {};
22743
- if (event.type === AvatarConnectionMachineEventTypes.SetKalturaContextActive) {
23044
+ if ((_a = context.externalInfo.features) === null || _a === void 0 ? void 0 : _a.persistentContent) {
23045
+ payload = buildFullPayload(context);
23046
+ } else if (event.type === AvatarConnectionMachineEventTypes.SetKalturaContextActive) {
22744
23047
  const activeContext = resolveActiveKalturaContext(context);
22745
23048
  payload = Object.assign(Object.assign({}, resolveActiveContextType(activeContext)), {
22746
- capabilities: getAvatarDefaultCapabilities(activeContext)
23049
+ capabilities: getAvatarDefaultCapabilities(activeContext),
23050
+ request_vars: withProgressBar(context.dynamicVariables, context)
22747
23051
  });
22748
- }
22749
- if (event.type === AvatarConnectionMachineEventTypes.SetDynamicVariables) {
23052
+ } else if (event.type === AvatarConnectionMachineEventTypes.SetDynamicVariables) {
23053
+ payload = {
23054
+ request_vars: withProgressBar(event.data, context)
23055
+ };
23056
+ } else {
22750
23057
  payload = {
22751
- request_vars: event.data
23058
+ request_vars: withProgressBar(context.dynamicVariables, context)
22752
23059
  };
22753
23060
  }
22754
23061
  context.logger.log(`Sending updateGenieContext to server with payload:`, {
@@ -23129,6 +23436,25 @@ const hadAvatarTypeInTurn = ({
23129
23436
  return event.hadAvatarType;
23130
23437
  };
23131
23438
 
23439
+ // Reference check is enough: setContentData keeps the same content object when a
23440
+ // turn leaves the stage unchanged, so unchanged turns skip the server round-trip.
23441
+ const isStageVariableStale = ({
23442
+ context
23443
+ }) => {
23444
+ var _a;
23445
+ return ((_a = context.externalInfo.features) === null || _a === void 0 ? void 0 : _a.persistentContent) === true && context.content !== context.pushedStageContent;
23446
+ };
23447
+
23448
+ // Reference check is enough: setProgressBarData keeps the same object when a turn
23449
+ // leaves the bar unchanged, so unchanged turns skip the server round-trip.
23450
+ const isRequestVariablesStale = ({
23451
+ context
23452
+ }) => {
23453
+ return isStageVariableStale({
23454
+ context
23455
+ }) || context.progressBar !== context.pushedProgressBar;
23456
+ };
23457
+
23132
23458
  const hasMoreRecoveryRetries = ({
23133
23459
  context
23134
23460
  }) => context.agentRecoveryRetryCount < MAX_AVATAR_RECOVERY_RETRIES;
@@ -23203,6 +23529,9 @@ const avatarConnectionMachine = setup({
23203
23529
  setClientConfiguration,
23204
23530
  setDisconnectData,
23205
23531
  setContentData,
23532
+ setProgressBarData,
23533
+ trackPushedStageContent,
23534
+ trackPushedProgressBar,
23206
23535
  sendAskViaText,
23207
23536
  sendScreenSharePending,
23208
23537
  sendScreenShareStarted,
@@ -23319,6 +23648,7 @@ const avatarConnectionMachine = setup({
23319
23648
  guards: {
23320
23649
  hasMoreConfigRetries,
23321
23650
  hadAvatarTypeInTurn,
23651
+ isRequestVariablesStale,
23322
23652
  hasMoreRecoveryRetries,
23323
23653
  justExceededRecoveryRetries,
23324
23654
  shouldWaitPlayerReadyState,
@@ -23389,6 +23719,9 @@ const avatarConnectionMachine = setup({
23389
23719
  threadId: null,
23390
23720
  disconnectData: null,
23391
23721
  content: null,
23722
+ pushedStageContent: null,
23723
+ progressBar: null,
23724
+ pushedProgressBar: null,
23392
23725
  chatLog: [],
23393
23726
  clientToolCallLog: [],
23394
23727
  awaitingInternalAskEcho: false,
@@ -23524,6 +23857,7 @@ class ActorManager {
23524
23857
  }
23525
23858
  }
23526
23859
 
23860
+ const _revision = content => (content === null || content === void 0 ? void 0 : content.type) === 'unisphere-tool' && content.status !== 'error' ? content.revision : undefined;
23527
23861
  // Standalone-safe defaults so the manager can be constructed without a
23528
23862
  // Unisphere workspace: callers outside the widget host simply omit these
23529
23863
  // services instead of implementing no-op stubs themselves.
@@ -23612,7 +23946,7 @@ class AvatarClientManager extends ActorManager {
23612
23946
  // proxy exposed as AvatarContentData without an explicit cast (it was
23613
23947
  // hidden behind `StoreBinding<any>` there).
23614
23948
  s => s.context.content, {
23615
- equals: (a, b) => (a === null || a === void 0 ? void 0 : a.id) === (b === null || b === void 0 ? void 0 : b.id)
23949
+ equals: (a, b) => (a === null || a === void 0 ? void 0 : a.id) === (b === null || b === void 0 ? void 0 : b.id) && _revision(a) === _revision(b)
23616
23950
  });
23617
23951
  this._agentData = this._select({
23618
23952
  isTalking: false,
@@ -23656,6 +23990,9 @@ class AvatarClientManager extends ActorManager {
23656
23990
  return (a === null || a === void 0 ? void 0 : a.active) === (b === null || b === void 0 ? void 0 : b.active) && (a === null || a === void 0 ? void 0 : a.analysisReady) === (b === null || b === void 0 ? void 0 : b.analysisReady) && (((_a = a === null || a === void 0 ? void 0 : a.stream) === null || _a === void 0 ? void 0 : _a.id) === ((_b = b === null || b === void 0 ? void 0 : b.stream) === null || _b === void 0 ? void 0 : _b.id) || ((_c = a === null || a === void 0 ? void 0 : a.stream) === null || _c === void 0 ? void 0 : _c.active) !== ((_d = b === null || b === void 0 ? void 0 : b.stream) === null || _d === void 0 ? void 0 : _d.active));
23657
23991
  }
23658
23992
  });
23993
+ this._progressBar = this._select(null, s => s.context.progressBar, {
23994
+ equals: isDeepEqual
23995
+ });
23659
23996
  this._tapToTalkInfo = this._select(null, s => ({
23660
23997
  enabled: s.context.isTapToTalkEnabled,
23661
23998
  active: s.context.isTapToTalkActive,
@@ -24065,6 +24402,9 @@ class AvatarClientManager extends ActorManager {
24065
24402
  // ────────────────────────────────────────────────────────────────────────
24066
24403
  // Public API: screen share
24067
24404
  // ────────────────────────────────────────────────────────────────────────
24405
+ get progressBar() {
24406
+ return this._progressBar.consumer;
24407
+ }
24068
24408
  get screenShareInfo() {
24069
24409
  return this._screenShareInfo.consumer;
24070
24410
  }