@unisphere/genie-types 1.8.2 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -1,6 +1,3 @@
1
- import { useContext, useMemo, useState, useRef, useEffect } from 'react';
2
- import { ScopedUnisphereWorkspaceContext } from '@unisphere/runtime-react';
3
-
4
1
  const widgetName = 'unisphere.widget.genie';
5
2
 
6
3
  const integrationsSchema = {
@@ -756,6 +753,11 @@ const avatarRuntimeSettingsSchema = {
756
753
  value: 'string',
757
754
  optional: true
758
755
  },
756
+ noiseReductionEnabled: {
757
+ type: 'primitive',
758
+ value: 'boolean',
759
+ optional: true
760
+ },
759
761
  kaltura: {
760
762
  type: 'object',
761
763
  properties: {
@@ -767,6 +769,21 @@ const avatarRuntimeSettingsSchema = {
767
769
  type: 'primitive',
768
770
  value: 'string',
769
771
  optional: true
772
+ },
773
+ kalturaServerURI: {
774
+ type: 'primitive',
775
+ value: 'string',
776
+ optional: true
777
+ },
778
+ partnerId: {
779
+ type: 'primitive',
780
+ value: 'string',
781
+ optional: true
782
+ },
783
+ uiConfId: {
784
+ type: 'primitive',
785
+ value: 'string',
786
+ optional: true
770
787
  }
771
788
  }
772
789
  }
@@ -830,7 +847,8 @@ var DisconnectReasons;
830
847
  DisconnectReasons["JoinRoomTimeout"] = "JoinRoomTimeout";
831
848
  })(DisconnectReasons || (DisconnectReasons = {}));
832
849
  const isAvatarConnectionProxyInternalType = x => {
833
- return '_directEventToServer' in x && '_webSocket' in x;
850
+ var _a;
851
+ return '_directEventToServer' in x && 'webSocket' in x && typeof ((_a = x.webSocket) === null || _a === void 0 ? void 0 : _a.onChanges) === 'function';
834
852
  };
835
853
 
836
854
  const avatarRuntimeContainedVisualSettingsSchema = {
@@ -861,1653 +879,20 @@ const avatarRuntimeLobbyVisualSettingsSchema = {
861
879
  type: 'primitive',
862
880
  value: 'boolean',
863
881
  optional: true
882
+ },
883
+ threadId: {
884
+ type: 'primitive',
885
+ value: 'string',
886
+ optional: true
887
+ },
888
+ messageId: {
889
+ type: 'primitive',
890
+ value: 'string',
891
+ optional: true
864
892
  }
865
893
  }
866
894
  };
867
895
 
868
- const useGetWidgetService = serviceName => {
869
- const {
870
- unisphereWorkspace
871
- } = useContext(ScopedUnisphereWorkspaceContext);
872
- return useMemo(() => {
873
- return (unisphereWorkspace === null || unisphereWorkspace === void 0 ? void 0 : unisphereWorkspace.getService(serviceName)) || null;
874
- }, [serviceName, unisphereWorkspace]);
875
- };
876
-
877
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
878
-
879
- var fails$a = function (exec) {
880
- try {
881
- return !!exec();
882
- } catch (error) {
883
- return true;
884
- }
885
- };
886
-
887
- var fails$9 = fails$a;
888
-
889
- var functionBindNative = !fails$9(function () {
890
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
891
- var test = (function () { /* empty */ }).bind();
892
- // eslint-disable-next-line no-prototype-builtins -- safe
893
- return typeof test != 'function' || test.hasOwnProperty('prototype');
894
- });
895
-
896
- var NATIVE_BIND$1 = functionBindNative;
897
-
898
- var FunctionPrototype$1 = Function.prototype;
899
- var call$5 = FunctionPrototype$1.call;
900
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
901
- var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$5, call$5);
902
-
903
- var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
904
- return function () {
905
- return call$5.apply(fn, arguments);
906
- };
907
- };
908
-
909
- var uncurryThis$9 = functionUncurryThis;
910
-
911
- var toString$1 = uncurryThis$9({}.toString);
912
- var stringSlice$1 = uncurryThis$9(''.slice);
913
-
914
- var classofRaw = function (it) {
915
- return stringSlice$1(toString$1(it), 8, -1);
916
- };
917
-
918
- var uncurryThis$8 = functionUncurryThis;
919
- var fails$8 = fails$a;
920
- var classof = classofRaw;
921
-
922
- var $Object$3 = Object;
923
- var split = uncurryThis$8(''.split);
924
-
925
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
926
- var indexedObject = fails$8(function () {
927
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
928
- // eslint-disable-next-line no-prototype-builtins -- safe
929
- return !$Object$3('z').propertyIsEnumerable(0);
930
- }) ? function (it) {
931
- return classof(it) === 'String' ? split(it, '') : $Object$3(it);
932
- } : $Object$3;
933
-
934
- // we can't use just `it == null` since of `document.all` special case
935
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
936
- var isNullOrUndefined$2 = function (it) {
937
- return it === null || it === undefined;
938
- };
939
-
940
- var isNullOrUndefined$1 = isNullOrUndefined$2;
941
-
942
- var $TypeError$6 = TypeError;
943
-
944
- // `RequireObjectCoercible` abstract operation
945
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
946
- var requireObjectCoercible$3 = function (it) {
947
- if (isNullOrUndefined$1(it)) throw new $TypeError$6("Can't call method on " + it);
948
- return it;
949
- };
950
-
951
- // toObject with fallback for non-array-like ES3 strings
952
- var IndexedObject = indexedObject;
953
- var requireObjectCoercible$2 = requireObjectCoercible$3;
954
-
955
- var toIndexedObject$5 = function (it) {
956
- return IndexedObject(requireObjectCoercible$2(it));
957
- };
958
-
959
- var check = function (it) {
960
- return it && it.Math === Math && it;
961
- };
962
-
963
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
964
- var globalThis_1 =
965
- // eslint-disable-next-line es/no-global-this -- safe
966
- check(typeof globalThis == 'object' && globalThis) ||
967
- check(typeof window == 'object' && window) ||
968
- // eslint-disable-next-line no-restricted-globals -- safe
969
- check(typeof self == 'object' && self) ||
970
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
971
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
972
- // eslint-disable-next-line no-new-func -- fallback
973
- (function () { return this; })() || Function('return this')();
974
-
975
- var sharedStore = {exports: {}};
976
-
977
- var globalThis$c = globalThis_1;
978
-
979
- // eslint-disable-next-line es/no-object-defineproperty -- safe
980
- var defineProperty$4 = Object.defineProperty;
981
-
982
- var defineGlobalProperty$3 = function (key, value) {
983
- try {
984
- defineProperty$4(globalThis$c, key, { value: value, configurable: true, writable: true });
985
- } catch (error) {
986
- globalThis$c[key] = value;
987
- } return value;
988
- };
989
-
990
- var globalThis$b = globalThis_1;
991
- var defineGlobalProperty$2 = defineGlobalProperty$3;
992
-
993
- var SHARED = '__core-js_shared__';
994
- var store$3 = sharedStore.exports = globalThis$b[SHARED] || defineGlobalProperty$2(SHARED, {});
995
-
996
- (store$3.versions || (store$3.versions = [])).push({
997
- version: '3.48.0',
998
- mode: 'global',
999
- copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
1000
- license: 'https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE',
1001
- source: 'https://github.com/zloirock/core-js'
1002
- });
1003
-
1004
- var sharedStoreExports = sharedStore.exports;
1005
-
1006
- var store$2 = sharedStoreExports;
1007
-
1008
- var shared$3 = function (key, value) {
1009
- return store$2[key] || (store$2[key] = value || {});
1010
- };
1011
-
1012
- var requireObjectCoercible$1 = requireObjectCoercible$3;
1013
-
1014
- var $Object$2 = Object;
1015
-
1016
- // `ToObject` abstract operation
1017
- // https://tc39.es/ecma262/#sec-toobject
1018
- var toObject$2 = function (argument) {
1019
- return $Object$2(requireObjectCoercible$1(argument));
1020
- };
1021
-
1022
- var uncurryThis$7 = functionUncurryThis;
1023
- var toObject$1 = toObject$2;
1024
-
1025
- var hasOwnProperty = uncurryThis$7({}.hasOwnProperty);
1026
-
1027
- // `HasOwnProperty` abstract operation
1028
- // https://tc39.es/ecma262/#sec-hasownproperty
1029
- // eslint-disable-next-line es/no-object-hasown -- safe
1030
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
1031
- return hasOwnProperty(toObject$1(it), key);
1032
- };
1033
-
1034
- var uncurryThis$6 = functionUncurryThis;
1035
-
1036
- var id = 0;
1037
- var postfix = Math.random();
1038
- var toString = uncurryThis$6(1.1.toString);
1039
-
1040
- var uid$2 = function (key) {
1041
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
1042
- };
1043
-
1044
- var globalThis$a = globalThis_1;
1045
-
1046
- var navigator = globalThis$a.navigator;
1047
- var userAgent$1 = navigator && navigator.userAgent;
1048
-
1049
- var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
1050
-
1051
- var globalThis$9 = globalThis_1;
1052
- var userAgent = environmentUserAgent;
1053
-
1054
- var process = globalThis$9.process;
1055
- var Deno = globalThis$9.Deno;
1056
- var versions = process && process.versions || Deno && Deno.version;
1057
- var v8 = versions && versions.v8;
1058
- var match, version;
1059
-
1060
- if (v8) {
1061
- match = v8.split('.');
1062
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
1063
- // but their correct versions are not interesting for us
1064
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
1065
- }
1066
-
1067
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
1068
- // so check `userAgent` even if `.v8` exists, but 0
1069
- if (!version && userAgent) {
1070
- match = userAgent.match(/Edge\/(\d+)/);
1071
- if (!match || match[1] >= 74) {
1072
- match = userAgent.match(/Chrome\/(\d+)/);
1073
- if (match) version = +match[1];
1074
- }
1075
- }
1076
-
1077
- var environmentV8Version = version;
1078
-
1079
- /* eslint-disable es/no-symbol -- required for testing */
1080
- var V8_VERSION = environmentV8Version;
1081
- var fails$7 = fails$a;
1082
- var globalThis$8 = globalThis_1;
1083
-
1084
- var $String$4 = globalThis$8.String;
1085
-
1086
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
1087
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () {
1088
- var symbol = Symbol('symbol detection');
1089
- // Chrome 38 Symbol has incorrect toString conversion
1090
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
1091
- // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
1092
- // of course, fail.
1093
- return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
1094
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
1095
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
1096
- });
1097
-
1098
- /* eslint-disable es/no-symbol -- required for testing */
1099
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
1100
-
1101
- var useSymbolAsUid = NATIVE_SYMBOL$1 &&
1102
- !Symbol.sham &&
1103
- typeof Symbol.iterator == 'symbol';
1104
-
1105
- var globalThis$7 = globalThis_1;
1106
- var shared$2 = shared$3;
1107
- var hasOwn$8 = hasOwnProperty_1;
1108
- var uid$1 = uid$2;
1109
- var NATIVE_SYMBOL = symbolConstructorDetection;
1110
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
1111
-
1112
- var Symbol$1 = globalThis$7.Symbol;
1113
- var WellKnownSymbolsStore = shared$2('wks');
1114
- var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
1115
-
1116
- var wellKnownSymbol$6 = function (name) {
1117
- if (!hasOwn$8(WellKnownSymbolsStore, name)) {
1118
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
1119
- ? Symbol$1[name]
1120
- : createWellKnownSymbol('Symbol.' + name);
1121
- } return WellKnownSymbolsStore[name];
1122
- };
1123
-
1124
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
1125
- var documentAll = typeof document == 'object' && document.all;
1126
-
1127
- // `IsCallable` abstract operation
1128
- // https://tc39.es/ecma262/#sec-iscallable
1129
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
1130
- var isCallable$d = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
1131
- return typeof argument == 'function' || argument === documentAll;
1132
- } : function (argument) {
1133
- return typeof argument == 'function';
1134
- };
1135
-
1136
- var isCallable$c = isCallable$d;
1137
-
1138
- var isObject$8 = function (it) {
1139
- return typeof it == 'object' ? it !== null : isCallable$c(it);
1140
- };
1141
-
1142
- var isObject$7 = isObject$8;
1143
-
1144
- var $String$3 = String;
1145
- var $TypeError$5 = TypeError;
1146
-
1147
- // `Assert: Type(argument) is Object`
1148
- var anObject$4 = function (argument) {
1149
- if (isObject$7(argument)) return argument;
1150
- throw new $TypeError$5($String$3(argument) + ' is not an object');
1151
- };
1152
-
1153
- var objectDefineProperties = {};
1154
-
1155
- var fails$6 = fails$a;
1156
-
1157
- // Detect IE8's incomplete defineProperty implementation
1158
- var descriptors = !fails$6(function () {
1159
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1160
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
1161
- });
1162
-
1163
- var DESCRIPTORS$8 = descriptors;
1164
- var fails$5 = fails$a;
1165
-
1166
- // V8 ~ Chrome 36-
1167
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
1168
- var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$5(function () {
1169
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1170
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
1171
- value: 42,
1172
- writable: false
1173
- }).prototype !== 42;
1174
- });
1175
-
1176
- var objectDefineProperty = {};
1177
-
1178
- var globalThis$6 = globalThis_1;
1179
- var isObject$6 = isObject$8;
1180
-
1181
- var document$1 = globalThis$6.document;
1182
- // typeof document.createElement is 'object' in old IE
1183
- var EXISTS$1 = isObject$6(document$1) && isObject$6(document$1.createElement);
1184
-
1185
- var documentCreateElement$2 = function (it) {
1186
- return EXISTS$1 ? document$1.createElement(it) : {};
1187
- };
1188
-
1189
- var DESCRIPTORS$7 = descriptors;
1190
- var fails$4 = fails$a;
1191
- var createElement = documentCreateElement$2;
1192
-
1193
- // Thanks to IE8 for its funny defineProperty
1194
- var ie8DomDefine = !DESCRIPTORS$7 && !fails$4(function () {
1195
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1196
- return Object.defineProperty(createElement('div'), 'a', {
1197
- get: function () { return 7; }
1198
- }).a !== 7;
1199
- });
1200
-
1201
- var NATIVE_BIND = functionBindNative;
1202
-
1203
- var call$4 = Function.prototype.call;
1204
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
1205
- var functionCall = NATIVE_BIND ? call$4.bind(call$4) : function () {
1206
- return call$4.apply(call$4, arguments);
1207
- };
1208
-
1209
- var globalThis$5 = globalThis_1;
1210
- var isCallable$b = isCallable$d;
1211
-
1212
- var aFunction = function (argument) {
1213
- return isCallable$b(argument) ? argument : undefined;
1214
- };
1215
-
1216
- var getBuiltIn$3 = function (namespace, method) {
1217
- return arguments.length < 2 ? aFunction(globalThis$5[namespace]) : globalThis$5[namespace] && globalThis$5[namespace][method];
1218
- };
1219
-
1220
- var uncurryThis$5 = functionUncurryThis;
1221
-
1222
- var objectIsPrototypeOf = uncurryThis$5({}.isPrototypeOf);
1223
-
1224
- var getBuiltIn$2 = getBuiltIn$3;
1225
- var isCallable$a = isCallable$d;
1226
- var isPrototypeOf = objectIsPrototypeOf;
1227
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
1228
-
1229
- var $Object$1 = Object;
1230
-
1231
- var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
1232
- return typeof it == 'symbol';
1233
- } : function (it) {
1234
- var $Symbol = getBuiltIn$2('Symbol');
1235
- return isCallable$a($Symbol) && isPrototypeOf($Symbol.prototype, $Object$1(it));
1236
- };
1237
-
1238
- var $String$2 = String;
1239
-
1240
- var tryToString$1 = function (argument) {
1241
- try {
1242
- return $String$2(argument);
1243
- } catch (error) {
1244
- return 'Object';
1245
- }
1246
- };
1247
-
1248
- var isCallable$9 = isCallable$d;
1249
- var tryToString = tryToString$1;
1250
-
1251
- var $TypeError$4 = TypeError;
1252
-
1253
- // `Assert: IsCallable(argument) is true`
1254
- var aCallable$2 = function (argument) {
1255
- if (isCallable$9(argument)) return argument;
1256
- throw new $TypeError$4(tryToString(argument) + ' is not a function');
1257
- };
1258
-
1259
- var aCallable$1 = aCallable$2;
1260
- var isNullOrUndefined = isNullOrUndefined$2;
1261
-
1262
- // `GetMethod` abstract operation
1263
- // https://tc39.es/ecma262/#sec-getmethod
1264
- var getMethod$1 = function (V, P) {
1265
- var func = V[P];
1266
- return isNullOrUndefined(func) ? undefined : aCallable$1(func);
1267
- };
1268
-
1269
- var call$3 = functionCall;
1270
- var isCallable$8 = isCallable$d;
1271
- var isObject$5 = isObject$8;
1272
-
1273
- var $TypeError$3 = TypeError;
1274
-
1275
- // `OrdinaryToPrimitive` abstract operation
1276
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
1277
- var ordinaryToPrimitive$1 = function (input, pref) {
1278
- var fn, val;
1279
- if (pref === 'string' && isCallable$8(fn = input.toString) && !isObject$5(val = call$3(fn, input))) return val;
1280
- if (isCallable$8(fn = input.valueOf) && !isObject$5(val = call$3(fn, input))) return val;
1281
- if (pref !== 'string' && isCallable$8(fn = input.toString) && !isObject$5(val = call$3(fn, input))) return val;
1282
- throw new $TypeError$3("Can't convert object to primitive value");
1283
- };
1284
-
1285
- var call$2 = functionCall;
1286
- var isObject$4 = isObject$8;
1287
- var isSymbol$1 = isSymbol$2;
1288
- var getMethod = getMethod$1;
1289
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
1290
- var wellKnownSymbol$5 = wellKnownSymbol$6;
1291
-
1292
- var $TypeError$2 = TypeError;
1293
- var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
1294
-
1295
- // `ToPrimitive` abstract operation
1296
- // https://tc39.es/ecma262/#sec-toprimitive
1297
- var toPrimitive$1 = function (input, pref) {
1298
- if (!isObject$4(input) || isSymbol$1(input)) return input;
1299
- var exoticToPrim = getMethod(input, TO_PRIMITIVE);
1300
- var result;
1301
- if (exoticToPrim) {
1302
- if (pref === undefined) pref = 'default';
1303
- result = call$2(exoticToPrim, input, pref);
1304
- if (!isObject$4(result) || isSymbol$1(result)) return result;
1305
- throw new $TypeError$2("Can't convert object to primitive value");
1306
- }
1307
- if (pref === undefined) pref = 'number';
1308
- return ordinaryToPrimitive(input, pref);
1309
- };
1310
-
1311
- var toPrimitive = toPrimitive$1;
1312
- var isSymbol = isSymbol$2;
1313
-
1314
- // `ToPropertyKey` abstract operation
1315
- // https://tc39.es/ecma262/#sec-topropertykey
1316
- var toPropertyKey$2 = function (argument) {
1317
- var key = toPrimitive(argument, 'string');
1318
- return isSymbol(key) ? key : key + '';
1319
- };
1320
-
1321
- var DESCRIPTORS$6 = descriptors;
1322
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
1323
- var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
1324
- var anObject$3 = anObject$4;
1325
- var toPropertyKey$1 = toPropertyKey$2;
1326
-
1327
- var $TypeError$1 = TypeError;
1328
- // eslint-disable-next-line es/no-object-defineproperty -- safe
1329
- var $defineProperty = Object.defineProperty;
1330
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1331
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
1332
- var ENUMERABLE = 'enumerable';
1333
- var CONFIGURABLE$1 = 'configurable';
1334
- var WRITABLE = 'writable';
1335
-
1336
- // `Object.defineProperty` method
1337
- // https://tc39.es/ecma262/#sec-object.defineproperty
1338
- objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
1339
- anObject$3(O);
1340
- P = toPropertyKey$1(P);
1341
- anObject$3(Attributes);
1342
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
1343
- var current = $getOwnPropertyDescriptor$1(O, P);
1344
- if (current && current[WRITABLE]) {
1345
- O[P] = Attributes.value;
1346
- Attributes = {
1347
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
1348
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
1349
- writable: false
1350
- };
1351
- }
1352
- } return $defineProperty(O, P, Attributes);
1353
- } : $defineProperty : function defineProperty(O, P, Attributes) {
1354
- anObject$3(O);
1355
- P = toPropertyKey$1(P);
1356
- anObject$3(Attributes);
1357
- if (IE8_DOM_DEFINE$1) try {
1358
- return $defineProperty(O, P, Attributes);
1359
- } catch (error) { /* empty */ }
1360
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$1('Accessors not supported');
1361
- if ('value' in Attributes) O[P] = Attributes.value;
1362
- return O;
1363
- };
1364
-
1365
- var ceil = Math.ceil;
1366
- var floor = Math.floor;
1367
-
1368
- // `Math.trunc` method
1369
- // https://tc39.es/ecma262/#sec-math.trunc
1370
- // eslint-disable-next-line es/no-math-trunc -- safe
1371
- var mathTrunc = Math.trunc || function trunc(x) {
1372
- var n = +x;
1373
- return (n > 0 ? floor : ceil)(n);
1374
- };
1375
-
1376
- var trunc = mathTrunc;
1377
-
1378
- // `ToIntegerOrInfinity` abstract operation
1379
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
1380
- var toIntegerOrInfinity$2 = function (argument) {
1381
- var number = +argument;
1382
- // eslint-disable-next-line no-self-compare -- NaN check
1383
- return number !== number || number === 0 ? 0 : trunc(number);
1384
- };
1385
-
1386
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
1387
-
1388
- var max = Math.max;
1389
- var min$1 = Math.min;
1390
-
1391
- // Helper for a popular repeating case of the spec:
1392
- // Let integer be ? ToInteger(index).
1393
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
1394
- var toAbsoluteIndex$1 = function (index, length) {
1395
- var integer = toIntegerOrInfinity$1(index);
1396
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
1397
- };
1398
-
1399
- var toIntegerOrInfinity = toIntegerOrInfinity$2;
1400
-
1401
- var min = Math.min;
1402
-
1403
- // `ToLength` abstract operation
1404
- // https://tc39.es/ecma262/#sec-tolength
1405
- var toLength$1 = function (argument) {
1406
- var len = toIntegerOrInfinity(argument);
1407
- return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
1408
- };
1409
-
1410
- var toLength = toLength$1;
1411
-
1412
- // `LengthOfArrayLike` abstract operation
1413
- // https://tc39.es/ecma262/#sec-lengthofarraylike
1414
- var lengthOfArrayLike$1 = function (obj) {
1415
- return toLength(obj.length);
1416
- };
1417
-
1418
- var toIndexedObject$4 = toIndexedObject$5;
1419
- var toAbsoluteIndex = toAbsoluteIndex$1;
1420
- var lengthOfArrayLike = lengthOfArrayLike$1;
1421
-
1422
- // `Array.prototype.{ indexOf, includes }` methods implementation
1423
- var createMethod = function (IS_INCLUDES) {
1424
- return function ($this, el, fromIndex) {
1425
- var O = toIndexedObject$4($this);
1426
- var length = lengthOfArrayLike(O);
1427
- if (length === 0) return !IS_INCLUDES && -1;
1428
- var index = toAbsoluteIndex(fromIndex, length);
1429
- var value;
1430
- // Array#includes uses SameValueZero equality algorithm
1431
- // eslint-disable-next-line no-self-compare -- NaN check
1432
- if (IS_INCLUDES && el !== el) while (length > index) {
1433
- value = O[index++];
1434
- // eslint-disable-next-line no-self-compare -- NaN check
1435
- if (value !== value) return true;
1436
- // Array#indexOf ignores holes, Array#includes - not
1437
- } else for (;length > index; index++) {
1438
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
1439
- } return !IS_INCLUDES && -1;
1440
- };
1441
- };
1442
-
1443
- var arrayIncludes = {
1444
- // `Array.prototype.indexOf` method
1445
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
1446
- indexOf: createMethod(false)
1447
- };
1448
-
1449
- var hiddenKeys$4 = {};
1450
-
1451
- var uncurryThis$4 = functionUncurryThis;
1452
- var hasOwn$7 = hasOwnProperty_1;
1453
- var toIndexedObject$3 = toIndexedObject$5;
1454
- var indexOf = arrayIncludes.indexOf;
1455
- var hiddenKeys$3 = hiddenKeys$4;
1456
-
1457
- var push = uncurryThis$4([].push);
1458
-
1459
- var objectKeysInternal = function (object, names) {
1460
- var O = toIndexedObject$3(object);
1461
- var i = 0;
1462
- var result = [];
1463
- var key;
1464
- for (key in O) !hasOwn$7(hiddenKeys$3, key) && hasOwn$7(O, key) && push(result, key);
1465
- // Don't enum bug & hidden keys
1466
- while (names.length > i) if (hasOwn$7(O, key = names[i++])) {
1467
- ~indexOf(result, key) || push(result, key);
1468
- }
1469
- return result;
1470
- };
1471
-
1472
- // IE8- don't enum bug keys
1473
- var enumBugKeys$3 = [
1474
- 'constructor',
1475
- 'hasOwnProperty',
1476
- 'isPrototypeOf',
1477
- 'propertyIsEnumerable',
1478
- 'toLocaleString',
1479
- 'toString',
1480
- 'valueOf'
1481
- ];
1482
-
1483
- var internalObjectKeys$1 = objectKeysInternal;
1484
- var enumBugKeys$2 = enumBugKeys$3;
1485
-
1486
- // `Object.keys` method
1487
- // https://tc39.es/ecma262/#sec-object.keys
1488
- // eslint-disable-next-line es/no-object-keys -- safe
1489
- var objectKeys$1 = Object.keys || function keys(O) {
1490
- return internalObjectKeys$1(O, enumBugKeys$2);
1491
- };
1492
-
1493
- var DESCRIPTORS$5 = descriptors;
1494
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1495
- var definePropertyModule$3 = objectDefineProperty;
1496
- var anObject$2 = anObject$4;
1497
- var toIndexedObject$2 = toIndexedObject$5;
1498
- var objectKeys = objectKeys$1;
1499
-
1500
- // `Object.defineProperties` method
1501
- // https://tc39.es/ecma262/#sec-object.defineproperties
1502
- // eslint-disable-next-line es/no-object-defineproperties -- safe
1503
- objectDefineProperties.f = DESCRIPTORS$5 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1504
- anObject$2(O);
1505
- var props = toIndexedObject$2(Properties);
1506
- var keys = objectKeys(Properties);
1507
- var length = keys.length;
1508
- var index = 0;
1509
- var key;
1510
- while (length > index) definePropertyModule$3.f(O, key = keys[index++], props[key]);
1511
- return O;
1512
- };
1513
-
1514
- var getBuiltIn$1 = getBuiltIn$3;
1515
-
1516
- var html$1 = getBuiltIn$1('document', 'documentElement');
1517
-
1518
- var shared$1 = shared$3;
1519
- var uid = uid$2;
1520
-
1521
- var keys = shared$1('keys');
1522
-
1523
- var sharedKey$3 = function (key) {
1524
- return keys[key] || (keys[key] = uid(key));
1525
- };
1526
-
1527
- /* global ActiveXObject -- old IE, WSH */
1528
- var anObject$1 = anObject$4;
1529
- var definePropertiesModule = objectDefineProperties;
1530
- var enumBugKeys$1 = enumBugKeys$3;
1531
- var hiddenKeys$2 = hiddenKeys$4;
1532
- var html = html$1;
1533
- var documentCreateElement$1 = documentCreateElement$2;
1534
- var sharedKey$2 = sharedKey$3;
1535
-
1536
- var GT = '>';
1537
- var LT = '<';
1538
- var PROTOTYPE = 'prototype';
1539
- var SCRIPT = 'script';
1540
- var IE_PROTO$1 = sharedKey$2('IE_PROTO');
1541
-
1542
- var EmptyConstructor = function () { /* empty */ };
1543
-
1544
- var scriptTag = function (content) {
1545
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1546
- };
1547
-
1548
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1549
- var NullProtoObjectViaActiveX = function (activeXDocument) {
1550
- activeXDocument.write(scriptTag(''));
1551
- activeXDocument.close();
1552
- var temp = activeXDocument.parentWindow.Object;
1553
- // eslint-disable-next-line no-useless-assignment -- avoid memory leak
1554
- activeXDocument = null;
1555
- return temp;
1556
- };
1557
-
1558
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
1559
- var NullProtoObjectViaIFrame = function () {
1560
- // Thrash, waste and sodomy: IE GC bug
1561
- var iframe = documentCreateElement$1('iframe');
1562
- var JS = 'java' + SCRIPT + ':';
1563
- var iframeDocument;
1564
- iframe.style.display = 'none';
1565
- html.appendChild(iframe);
1566
- // https://github.com/zloirock/core-js/issues/475
1567
- iframe.src = String(JS);
1568
- iframeDocument = iframe.contentWindow.document;
1569
- iframeDocument.open();
1570
- iframeDocument.write(scriptTag('document.F=Object'));
1571
- iframeDocument.close();
1572
- return iframeDocument.F;
1573
- };
1574
-
1575
- // Check for document.domain and active x support
1576
- // No need to use active x approach when document.domain is not set
1577
- // see https://github.com/es-shims/es5-shim/issues/150
1578
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1579
- // avoid IE GC bug
1580
- var activeXDocument;
1581
- var NullProtoObject = function () {
1582
- try {
1583
- activeXDocument = new ActiveXObject('htmlfile');
1584
- } catch (error) { /* ignore */ }
1585
- NullProtoObject = typeof document != 'undefined'
1586
- ? document.domain && activeXDocument
1587
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1588
- : NullProtoObjectViaIFrame()
1589
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
1590
- var length = enumBugKeys$1.length;
1591
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys$1[length]];
1592
- return NullProtoObject();
1593
- };
1594
-
1595
- hiddenKeys$2[IE_PROTO$1] = true;
1596
-
1597
- // `Object.create` method
1598
- // https://tc39.es/ecma262/#sec-object.create
1599
- // eslint-disable-next-line es/no-object-create -- safe
1600
- var objectCreate = Object.create || function create(O, Properties) {
1601
- var result;
1602
- if (O !== null) {
1603
- EmptyConstructor[PROTOTYPE] = anObject$1(O);
1604
- result = new EmptyConstructor();
1605
- EmptyConstructor[PROTOTYPE] = null;
1606
- // add "__proto__" for Object.getPrototypeOf polyfill
1607
- result[IE_PROTO$1] = O;
1608
- } else result = NullProtoObject();
1609
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1610
- };
1611
-
1612
- var wellKnownSymbol$4 = wellKnownSymbol$6;
1613
- var create$1 = objectCreate;
1614
- var defineProperty$3 = objectDefineProperty.f;
1615
-
1616
- var UNSCOPABLES = wellKnownSymbol$4('unscopables');
1617
- var ArrayPrototype = Array.prototype;
1618
-
1619
- // Array.prototype[@@unscopables]
1620
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1621
- if (ArrayPrototype[UNSCOPABLES] === undefined) {
1622
- defineProperty$3(ArrayPrototype, UNSCOPABLES, {
1623
- configurable: true,
1624
- value: create$1(null)
1625
- });
1626
- }
1627
-
1628
- // add a key to Array.prototype[@@unscopables]
1629
- var addToUnscopables$1 = function (key) {
1630
- ArrayPrototype[UNSCOPABLES][key] = true;
1631
- };
1632
-
1633
- var iterators = {};
1634
-
1635
- var globalThis$4 = globalThis_1;
1636
- var isCallable$7 = isCallable$d;
1637
-
1638
- var WeakMap$1 = globalThis$4.WeakMap;
1639
-
1640
- var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
1641
-
1642
- var createPropertyDescriptor$3 = function (bitmap, value) {
1643
- return {
1644
- enumerable: !(bitmap & 1),
1645
- configurable: !(bitmap & 2),
1646
- writable: !(bitmap & 4),
1647
- value: value
1648
- };
1649
- };
1650
-
1651
- var DESCRIPTORS$4 = descriptors;
1652
- var definePropertyModule$2 = objectDefineProperty;
1653
- var createPropertyDescriptor$2 = createPropertyDescriptor$3;
1654
-
1655
- var createNonEnumerableProperty$4 = DESCRIPTORS$4 ? function (object, key, value) {
1656
- return definePropertyModule$2.f(object, key, createPropertyDescriptor$2(1, value));
1657
- } : function (object, key, value) {
1658
- object[key] = value;
1659
- return object;
1660
- };
1661
-
1662
- var NATIVE_WEAK_MAP = weakMapBasicDetection;
1663
- var globalThis$3 = globalThis_1;
1664
- var isObject$3 = isObject$8;
1665
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
1666
- var hasOwn$6 = hasOwnProperty_1;
1667
- var shared = sharedStoreExports;
1668
- var sharedKey$1 = sharedKey$3;
1669
- var hiddenKeys$1 = hiddenKeys$4;
1670
-
1671
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
1672
- var TypeError$1 = globalThis$3.TypeError;
1673
- var WeakMap = globalThis$3.WeakMap;
1674
- var set, get, has;
1675
-
1676
- var enforce = function (it) {
1677
- return has(it) ? get(it) : set(it, {});
1678
- };
1679
-
1680
- var getterFor = function (TYPE) {
1681
- return function (it) {
1682
- var state;
1683
- if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
1684
- throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
1685
- } return state;
1686
- };
1687
- };
1688
-
1689
- if (NATIVE_WEAK_MAP || shared.state) {
1690
- var store$1 = shared.state || (shared.state = new WeakMap());
1691
- /* eslint-disable no-self-assign -- prototype methods protection */
1692
- store$1.get = store$1.get;
1693
- store$1.has = store$1.has;
1694
- store$1.set = store$1.set;
1695
- /* eslint-enable no-self-assign -- prototype methods protection */
1696
- set = function (it, metadata) {
1697
- if (store$1.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
1698
- metadata.facade = it;
1699
- store$1.set(it, metadata);
1700
- return metadata;
1701
- };
1702
- get = function (it) {
1703
- return store$1.get(it) || {};
1704
- };
1705
- has = function (it) {
1706
- return store$1.has(it);
1707
- };
1708
- } else {
1709
- var STATE = sharedKey$1('state');
1710
- hiddenKeys$1[STATE] = true;
1711
- set = function (it, metadata) {
1712
- if (hasOwn$6(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
1713
- metadata.facade = it;
1714
- createNonEnumerableProperty$3(it, STATE, metadata);
1715
- return metadata;
1716
- };
1717
- get = function (it) {
1718
- return hasOwn$6(it, STATE) ? it[STATE] : {};
1719
- };
1720
- has = function (it) {
1721
- return hasOwn$6(it, STATE);
1722
- };
1723
- }
1724
-
1725
- var internalState = {
1726
- set: set,
1727
- get: get,
1728
- has: has,
1729
- enforce: enforce,
1730
- getterFor: getterFor
1731
- };
1732
-
1733
- var objectGetOwnPropertyDescriptor = {};
1734
-
1735
- var objectPropertyIsEnumerable = {};
1736
-
1737
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
1738
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1739
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
1740
-
1741
- // Nashorn ~ JDK8 bug
1742
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
1743
-
1744
- // `Object.prototype.propertyIsEnumerable` method implementation
1745
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
1746
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
1747
- var descriptor = getOwnPropertyDescriptor$1(this, V);
1748
- return !!descriptor && descriptor.enumerable;
1749
- } : $propertyIsEnumerable;
1750
-
1751
- var DESCRIPTORS$3 = descriptors;
1752
- var call$1 = functionCall;
1753
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1754
- var createPropertyDescriptor$1 = createPropertyDescriptor$3;
1755
- var toIndexedObject$1 = toIndexedObject$5;
1756
- var toPropertyKey = toPropertyKey$2;
1757
- var hasOwn$5 = hasOwnProperty_1;
1758
- var IE8_DOM_DEFINE = ie8DomDefine;
1759
-
1760
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1761
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1762
-
1763
- // `Object.getOwnPropertyDescriptor` method
1764
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
1765
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$3 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
1766
- O = toIndexedObject$1(O);
1767
- P = toPropertyKey(P);
1768
- if (IE8_DOM_DEFINE) try {
1769
- return $getOwnPropertyDescriptor(O, P);
1770
- } catch (error) { /* empty */ }
1771
- if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$1(propertyIsEnumerableModule.f, O, P), O[P]);
1772
- };
1773
-
1774
- var makeBuiltIn$2 = {exports: {}};
1775
-
1776
- var DESCRIPTORS$2 = descriptors;
1777
- var hasOwn$4 = hasOwnProperty_1;
1778
-
1779
- var FunctionPrototype = Function.prototype;
1780
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1781
- var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
1782
-
1783
- var EXISTS = hasOwn$4(FunctionPrototype, 'name');
1784
- // additional protection from minified / mangled / dropped function names
1785
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
1786
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype, 'name').configurable));
1787
-
1788
- var functionName = {
1789
- PROPER: PROPER,
1790
- CONFIGURABLE: CONFIGURABLE
1791
- };
1792
-
1793
- var uncurryThis$3 = functionUncurryThis;
1794
- var isCallable$6 = isCallable$d;
1795
- var store = sharedStoreExports;
1796
-
1797
- var functionToString = uncurryThis$3(Function.toString);
1798
-
1799
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
1800
- if (!isCallable$6(store.inspectSource)) {
1801
- store.inspectSource = function (it) {
1802
- return functionToString(it);
1803
- };
1804
- }
1805
-
1806
- var inspectSource$1 = store.inspectSource;
1807
-
1808
- var uncurryThis$2 = functionUncurryThis;
1809
- var fails$3 = fails$a;
1810
- var isCallable$5 = isCallable$d;
1811
- var hasOwn$3 = hasOwnProperty_1;
1812
- var DESCRIPTORS$1 = descriptors;
1813
- var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
1814
- var inspectSource = inspectSource$1;
1815
- var InternalStateModule$1 = internalState;
1816
-
1817
- var enforceInternalState = InternalStateModule$1.enforce;
1818
- var getInternalState$1 = InternalStateModule$1.get;
1819
- var $String$1 = String;
1820
- // eslint-disable-next-line es/no-object-defineproperty -- safe
1821
- var defineProperty$2 = Object.defineProperty;
1822
- var stringSlice = uncurryThis$2(''.slice);
1823
- var replace = uncurryThis$2(''.replace);
1824
- var join = uncurryThis$2([].join);
1825
-
1826
- var CONFIGURABLE_LENGTH = DESCRIPTORS$1 && !fails$3(function () {
1827
- return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
1828
- });
1829
-
1830
- var TEMPLATE = String(String).split('String');
1831
-
1832
- var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
1833
- if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
1834
- name = '[' + replace($String$1(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
1835
- }
1836
- if (options && options.getter) name = 'get ' + name;
1837
- if (options && options.setter) name = 'set ' + name;
1838
- if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
1839
- if (DESCRIPTORS$1) defineProperty$2(value, 'name', { value: name, configurable: true });
1840
- else value.name = name;
1841
- }
1842
- if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) {
1843
- defineProperty$2(value, 'length', { value: options.arity });
1844
- }
1845
- try {
1846
- if (options && hasOwn$3(options, 'constructor') && options.constructor) {
1847
- if (DESCRIPTORS$1) defineProperty$2(value, 'prototype', { writable: false });
1848
- // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
1849
- } else if (value.prototype) value.prototype = undefined;
1850
- } catch (error) { /* empty */ }
1851
- var state = enforceInternalState(value);
1852
- if (!hasOwn$3(state, 'source')) {
1853
- state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
1854
- } return value;
1855
- };
1856
-
1857
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
1858
- // eslint-disable-next-line no-extend-native -- required
1859
- Function.prototype.toString = makeBuiltIn$1(function toString() {
1860
- return isCallable$5(this) && getInternalState$1(this).source || inspectSource(this);
1861
- }, 'toString');
1862
-
1863
- var makeBuiltInExports = makeBuiltIn$2.exports;
1864
-
1865
- var isCallable$4 = isCallable$d;
1866
- var definePropertyModule$1 = objectDefineProperty;
1867
- var makeBuiltIn = makeBuiltInExports;
1868
- var defineGlobalProperty$1 = defineGlobalProperty$3;
1869
-
1870
- var defineBuiltIn$3 = function (O, key, value, options) {
1871
- if (!options) options = {};
1872
- var simple = options.enumerable;
1873
- var name = options.name !== undefined ? options.name : key;
1874
- if (isCallable$4(value)) makeBuiltIn(value, name, options);
1875
- if (options.global) {
1876
- if (simple) O[key] = value;
1877
- else defineGlobalProperty$1(key, value);
1878
- } else {
1879
- try {
1880
- if (!options.unsafe) delete O[key];
1881
- else if (O[key]) simple = true;
1882
- } catch (error) { /* empty */ }
1883
- if (simple) O[key] = value;
1884
- else definePropertyModule$1.f(O, key, {
1885
- value: value,
1886
- enumerable: false,
1887
- configurable: !options.nonConfigurable,
1888
- writable: !options.nonWritable
1889
- });
1890
- } return O;
1891
- };
1892
-
1893
- var objectGetOwnPropertyNames = {};
1894
-
1895
- var internalObjectKeys = objectKeysInternal;
1896
- var enumBugKeys = enumBugKeys$3;
1897
-
1898
- var hiddenKeys = enumBugKeys.concat('length', 'prototype');
1899
-
1900
- // `Object.getOwnPropertyNames` method
1901
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
1902
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1903
- objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1904
- return internalObjectKeys(O, hiddenKeys);
1905
- };
1906
-
1907
- var objectGetOwnPropertySymbols = {};
1908
-
1909
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1910
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1911
-
1912
- var getBuiltIn = getBuiltIn$3;
1913
- var uncurryThis$1 = functionUncurryThis;
1914
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1915
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1916
- var anObject = anObject$4;
1917
-
1918
- var concat = uncurryThis$1([].concat);
1919
-
1920
- // all object keys, includes non-enumerable and symbols
1921
- var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
1922
- var keys = getOwnPropertyNamesModule.f(anObject(it));
1923
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1924
- return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
1925
- };
1926
-
1927
- var hasOwn$2 = hasOwnProperty_1;
1928
- var ownKeys = ownKeys$1;
1929
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1930
- var definePropertyModule = objectDefineProperty;
1931
-
1932
- var copyConstructorProperties$1 = function (target, source, exceptions) {
1933
- var keys = ownKeys(source);
1934
- var defineProperty = definePropertyModule.f;
1935
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1936
- for (var i = 0; i < keys.length; i++) {
1937
- var key = keys[i];
1938
- if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
1939
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1940
- }
1941
- }
1942
- };
1943
-
1944
- var fails$2 = fails$a;
1945
- var isCallable$3 = isCallable$d;
1946
-
1947
- var replacement = /#|\.prototype\./;
1948
-
1949
- var isForced$1 = function (feature, detection) {
1950
- var value = data[normalize(feature)];
1951
- return value === POLYFILL ? true
1952
- : value === NATIVE ? false
1953
- : isCallable$3(detection) ? fails$2(detection)
1954
- : !!detection;
1955
- };
1956
-
1957
- var normalize = isForced$1.normalize = function (string) {
1958
- return String(string).replace(replacement, '.').toLowerCase();
1959
- };
1960
-
1961
- var data = isForced$1.data = {};
1962
- var NATIVE = isForced$1.NATIVE = 'N';
1963
- var POLYFILL = isForced$1.POLYFILL = 'P';
1964
-
1965
- var isForced_1 = isForced$1;
1966
-
1967
- var globalThis$2 = globalThis_1;
1968
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1969
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
1970
- var defineBuiltIn$2 = defineBuiltIn$3;
1971
- var defineGlobalProperty = defineGlobalProperty$3;
1972
- var copyConstructorProperties = copyConstructorProperties$1;
1973
- var isForced = isForced_1;
1974
-
1975
- /*
1976
- options.target - name of the target object
1977
- options.global - target is the global object
1978
- options.stat - export as static methods of target
1979
- options.proto - export as prototype methods of target
1980
- options.real - real prototype method for the `pure` version
1981
- options.forced - export even if the native feature is available
1982
- options.bind - bind methods to the target, required for the `pure` version
1983
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1984
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
1985
- options.sham - add a flag to not completely full polyfills
1986
- options.enumerable - export as enumerable property
1987
- options.dontCallGetSet - prevent calling a getter on target
1988
- options.name - the .name of the function if it does not match the key
1989
- */
1990
- var _export = function (options, source) {
1991
- var TARGET = options.target;
1992
- var GLOBAL = options.global;
1993
- var STATIC = options.stat;
1994
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1995
- if (GLOBAL) {
1996
- target = globalThis$2;
1997
- } else if (STATIC) {
1998
- target = globalThis$2[TARGET] || defineGlobalProperty(TARGET, {});
1999
- } else {
2000
- target = globalThis$2[TARGET] && globalThis$2[TARGET].prototype;
2001
- }
2002
- if (target) for (key in source) {
2003
- sourceProperty = source[key];
2004
- if (options.dontCallGetSet) {
2005
- descriptor = getOwnPropertyDescriptor(target, key);
2006
- targetProperty = descriptor && descriptor.value;
2007
- } else targetProperty = target[key];
2008
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
2009
- // contained in target
2010
- if (!FORCED && targetProperty !== undefined) {
2011
- if (typeof sourceProperty == typeof targetProperty) continue;
2012
- copyConstructorProperties(sourceProperty, targetProperty);
2013
- }
2014
- // add a flag to not completely full polyfills
2015
- if (options.sham || (targetProperty && targetProperty.sham)) {
2016
- createNonEnumerableProperty$2(sourceProperty, 'sham', true);
2017
- }
2018
- defineBuiltIn$2(target, key, sourceProperty, options);
2019
- }
2020
- };
2021
-
2022
- var fails$1 = fails$a;
2023
-
2024
- var correctPrototypeGetter = !fails$1(function () {
2025
- function F() { /* empty */ }
2026
- F.prototype.constructor = null;
2027
- // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
2028
- return Object.getPrototypeOf(new F()) !== F.prototype;
2029
- });
2030
-
2031
- var hasOwn$1 = hasOwnProperty_1;
2032
- var isCallable$2 = isCallable$d;
2033
- var toObject = toObject$2;
2034
- var sharedKey = sharedKey$3;
2035
- var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
2036
-
2037
- var IE_PROTO = sharedKey('IE_PROTO');
2038
- var $Object = Object;
2039
- var ObjectPrototype = $Object.prototype;
2040
-
2041
- // `Object.getPrototypeOf` method
2042
- // https://tc39.es/ecma262/#sec-object.getprototypeof
2043
- // eslint-disable-next-line es/no-object-getprototypeof -- safe
2044
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
2045
- var object = toObject(O);
2046
- if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
2047
- var constructor = object.constructor;
2048
- if (isCallable$2(constructor) && object instanceof constructor) {
2049
- return constructor.prototype;
2050
- } return object instanceof $Object ? ObjectPrototype : null;
2051
- };
2052
-
2053
- var fails = fails$a;
2054
- var isCallable$1 = isCallable$d;
2055
- var isObject$2 = isObject$8;
2056
- var getPrototypeOf$1 = objectGetPrototypeOf;
2057
- var defineBuiltIn$1 = defineBuiltIn$3;
2058
- var wellKnownSymbol$3 = wellKnownSymbol$6;
2059
-
2060
- var ITERATOR$2 = wellKnownSymbol$3('iterator');
2061
- var BUGGY_SAFARI_ITERATORS$1 = false;
2062
-
2063
- // `%IteratorPrototype%` object
2064
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
2065
- var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
2066
-
2067
- /* eslint-disable es/no-array-prototype-keys -- safe */
2068
- if ([].keys) {
2069
- arrayIterator = [].keys();
2070
- // Safari 8 has buggy iterators w/o `next`
2071
- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
2072
- else {
2073
- PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
2074
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
2075
- }
2076
- }
2077
-
2078
- var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails(function () {
2079
- var test = {};
2080
- // FF44- legacy iterators case
2081
- return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
2082
- });
2083
-
2084
- if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
2085
-
2086
- // `%IteratorPrototype%[@@iterator]()` method
2087
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
2088
- if (!isCallable$1(IteratorPrototype$2[ITERATOR$2])) {
2089
- defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
2090
- return this;
2091
- });
2092
- }
2093
-
2094
- var iteratorsCore = {
2095
- IteratorPrototype: IteratorPrototype$2,
2096
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
2097
- };
2098
-
2099
- var defineProperty$1 = objectDefineProperty.f;
2100
- var hasOwn = hasOwnProperty_1;
2101
- var wellKnownSymbol$2 = wellKnownSymbol$6;
2102
-
2103
- var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
2104
-
2105
- var setToStringTag$3 = function (target, TAG, STATIC) {
2106
- if (target && !STATIC) target = target.prototype;
2107
- if (target && !hasOwn(target, TO_STRING_TAG)) {
2108
- defineProperty$1(target, TO_STRING_TAG, { configurable: true, value: TAG });
2109
- }
2110
- };
2111
-
2112
- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
2113
- var create = objectCreate;
2114
- var createPropertyDescriptor = createPropertyDescriptor$3;
2115
- var setToStringTag$2 = setToStringTag$3;
2116
- var Iterators$2 = iterators;
2117
-
2118
- var returnThis$1 = function () { return this; };
2119
-
2120
- var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
2121
- var TO_STRING_TAG = NAME + ' Iterator';
2122
- IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
2123
- setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
2124
- Iterators$2[TO_STRING_TAG] = returnThis$1;
2125
- return IteratorConstructor;
2126
- };
2127
-
2128
- var uncurryThis = functionUncurryThis;
2129
- var aCallable = aCallable$2;
2130
-
2131
- var functionUncurryThisAccessor = function (object, key, method) {
2132
- try {
2133
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2134
- return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
2135
- } catch (error) { /* empty */ }
2136
- };
2137
-
2138
- var isObject$1 = isObject$8;
2139
-
2140
- var isPossiblePrototype$1 = function (argument) {
2141
- return isObject$1(argument) || argument === null;
2142
- };
2143
-
2144
- var isPossiblePrototype = isPossiblePrototype$1;
2145
-
2146
- var $String = String;
2147
- var $TypeError = TypeError;
2148
-
2149
- var aPossiblePrototype$1 = function (argument) {
2150
- if (isPossiblePrototype(argument)) return argument;
2151
- throw new $TypeError("Can't set " + $String(argument) + ' as a prototype');
2152
- };
2153
-
2154
- /* eslint-disable no-proto -- safe */
2155
- var uncurryThisAccessor = functionUncurryThisAccessor;
2156
- var isObject = isObject$8;
2157
- var requireObjectCoercible = requireObjectCoercible$3;
2158
- var aPossiblePrototype = aPossiblePrototype$1;
2159
-
2160
- // `Object.setPrototypeOf` method
2161
- // https://tc39.es/ecma262/#sec-object.setprototypeof
2162
- // Works with __proto__ only. Old v8 can't work with null proto objects.
2163
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
2164
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
2165
- var CORRECT_SETTER = false;
2166
- var test = {};
2167
- var setter;
2168
- try {
2169
- setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
2170
- setter(test, []);
2171
- CORRECT_SETTER = test instanceof Array;
2172
- } catch (error) { /* empty */ }
2173
- return function setPrototypeOf(O, proto) {
2174
- requireObjectCoercible(O);
2175
- aPossiblePrototype(proto);
2176
- if (!isObject(O)) return O;
2177
- if (CORRECT_SETTER) setter(O, proto);
2178
- else O.__proto__ = proto;
2179
- return O;
2180
- };
2181
- }() : undefined);
2182
-
2183
- var $ = _export;
2184
- var call = functionCall;
2185
- var FunctionName = functionName;
2186
- var isCallable = isCallable$d;
2187
- var createIteratorConstructor = iteratorCreateConstructor;
2188
- var getPrototypeOf = objectGetPrototypeOf;
2189
- var setPrototypeOf = objectSetPrototypeOf;
2190
- var setToStringTag$1 = setToStringTag$3;
2191
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
2192
- var defineBuiltIn = defineBuiltIn$3;
2193
- var wellKnownSymbol$1 = wellKnownSymbol$6;
2194
- var Iterators$1 = iterators;
2195
- var IteratorsCore = iteratorsCore;
2196
-
2197
- var PROPER_FUNCTION_NAME = FunctionName.PROPER;
2198
- var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
2199
- var IteratorPrototype = IteratorsCore.IteratorPrototype;
2200
- var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
2201
- var ITERATOR$1 = wellKnownSymbol$1('iterator');
2202
- var KEYS = 'keys';
2203
- var VALUES = 'values';
2204
- var ENTRIES = 'entries';
2205
-
2206
- var returnThis = function () { return this; };
2207
-
2208
- var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
2209
- createIteratorConstructor(IteratorConstructor, NAME, next);
2210
-
2211
- var getIterationMethod = function (KIND) {
2212
- if (KIND === DEFAULT && defaultIterator) return defaultIterator;
2213
- if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
2214
-
2215
- switch (KIND) {
2216
- case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
2217
- case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
2218
- case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
2219
- }
2220
-
2221
- return function () { return new IteratorConstructor(this); };
2222
- };
2223
-
2224
- var TO_STRING_TAG = NAME + ' Iterator';
2225
- var INCORRECT_VALUES_NAME = false;
2226
- var IterablePrototype = Iterable.prototype;
2227
- var nativeIterator = IterablePrototype[ITERATOR$1]
2228
- || IterablePrototype['@@iterator']
2229
- || DEFAULT && IterablePrototype[DEFAULT];
2230
- var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
2231
- var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
2232
- var CurrentIteratorPrototype, methods, KEY;
2233
-
2234
- // fix native
2235
- if (anyNativeIterator) {
2236
- CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
2237
- if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
2238
- if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
2239
- if (setPrototypeOf) {
2240
- setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
2241
- } else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
2242
- defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
2243
- }
2244
- }
2245
- // Set @@toStringTag to native iterators
2246
- setToStringTag$1(CurrentIteratorPrototype, TO_STRING_TAG, true);
2247
- }
2248
- }
2249
-
2250
- // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
2251
- if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
2252
- if (CONFIGURABLE_FUNCTION_NAME) {
2253
- createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
2254
- } else {
2255
- INCORRECT_VALUES_NAME = true;
2256
- defaultIterator = function values() { return call(nativeIterator, this); };
2257
- }
2258
- }
2259
-
2260
- // export additional methods
2261
- if (DEFAULT) {
2262
- methods = {
2263
- values: getIterationMethod(VALUES),
2264
- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
2265
- entries: getIterationMethod(ENTRIES)
2266
- };
2267
- if (FORCED) for (KEY in methods) {
2268
- if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
2269
- defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
2270
- }
2271
- } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
2272
- }
2273
-
2274
- // define iterator
2275
- if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
2276
- defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
2277
- }
2278
- Iterators$1[NAME] = defaultIterator;
2279
-
2280
- return methods;
2281
- };
2282
-
2283
- // `CreateIterResultObject` abstract operation
2284
- // https://tc39.es/ecma262/#sec-createiterresultobject
2285
- var createIterResultObject$1 = function (value, done) {
2286
- return { value: value, done: done };
2287
- };
2288
-
2289
- var toIndexedObject = toIndexedObject$5;
2290
- var addToUnscopables = addToUnscopables$1;
2291
- var Iterators = iterators;
2292
- var InternalStateModule = internalState;
2293
- var defineProperty = objectDefineProperty.f;
2294
- var defineIterator = iteratorDefine;
2295
- var createIterResultObject = createIterResultObject$1;
2296
- var DESCRIPTORS = descriptors;
2297
-
2298
- var ARRAY_ITERATOR = 'Array Iterator';
2299
- var setInternalState = InternalStateModule.set;
2300
- var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
2301
-
2302
- // `Array.prototype.entries` method
2303
- // https://tc39.es/ecma262/#sec-array.prototype.entries
2304
- // `Array.prototype.keys` method
2305
- // https://tc39.es/ecma262/#sec-array.prototype.keys
2306
- // `Array.prototype.values` method
2307
- // https://tc39.es/ecma262/#sec-array.prototype.values
2308
- // `Array.prototype[@@iterator]` method
2309
- // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
2310
- // `CreateArrayIterator` internal method
2311
- // https://tc39.es/ecma262/#sec-createarrayiterator
2312
- var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
2313
- setInternalState(this, {
2314
- type: ARRAY_ITERATOR,
2315
- target: toIndexedObject(iterated), // target
2316
- index: 0, // next index
2317
- kind: kind // kind
2318
- });
2319
- // `%ArrayIteratorPrototype%.next` method
2320
- // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
2321
- }, function () {
2322
- var state = getInternalState(this);
2323
- var target = state.target;
2324
- var index = state.index++;
2325
- if (!target || index >= target.length) {
2326
- state.target = null;
2327
- return createIterResultObject(undefined, true);
2328
- }
2329
- switch (state.kind) {
2330
- case 'keys': return createIterResultObject(index, false);
2331
- case 'values': return createIterResultObject(target[index], false);
2332
- } return createIterResultObject([index, target[index]], false);
2333
- }, 'values');
2334
-
2335
- // argumentsList[@@iterator] is %ArrayProto_values%
2336
- // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
2337
- // https://tc39.es/ecma262/#sec-createmappedargumentsobject
2338
- var values = Iterators.Arguments = Iterators.Array;
2339
-
2340
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2341
- addToUnscopables('keys');
2342
- addToUnscopables('values');
2343
- addToUnscopables('entries');
2344
-
2345
- // V8 ~ Chrome 45- bug
2346
- if (DESCRIPTORS && values.name !== 'values') try {
2347
- defineProperty(values, 'name', { value: 'values' });
2348
- } catch (error) { /* empty */ }
2349
-
2350
- // iterable DOM collections
2351
- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
2352
- var domIterables = {
2353
- CSSRuleList: 0,
2354
- CSSStyleDeclaration: 0,
2355
- CSSValueList: 0,
2356
- ClientRectList: 0,
2357
- DOMRectList: 0,
2358
- DOMStringList: 0,
2359
- DOMTokenList: 1,
2360
- DataTransferItemList: 0,
2361
- FileList: 0,
2362
- HTMLAllCollection: 0,
2363
- HTMLCollection: 0,
2364
- HTMLFormElement: 0,
2365
- HTMLSelectElement: 0,
2366
- MediaList: 0,
2367
- MimeTypeArray: 0,
2368
- NamedNodeMap: 0,
2369
- NodeList: 1,
2370
- PaintRequestList: 0,
2371
- Plugin: 0,
2372
- PluginArray: 0,
2373
- SVGLengthList: 0,
2374
- SVGNumberList: 0,
2375
- SVGPathSegList: 0,
2376
- SVGPointList: 0,
2377
- SVGStringList: 0,
2378
- SVGTransformList: 0,
2379
- SourceBufferList: 0,
2380
- StyleSheetList: 0,
2381
- TextTrackCueList: 0,
2382
- TextTrackList: 0,
2383
- TouchList: 0
2384
- };
2385
-
2386
- // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
2387
- var documentCreateElement = documentCreateElement$2;
2388
-
2389
- var classList = documentCreateElement('span').classList;
2390
- var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
2391
-
2392
- var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
2393
-
2394
- var globalThis$1 = globalThis_1;
2395
- var DOMIterables = domIterables;
2396
- var DOMTokenListPrototype = domTokenListPrototype;
2397
- var ArrayIteratorMethods = es_array_iterator;
2398
- var createNonEnumerableProperty = createNonEnumerableProperty$4;
2399
- var setToStringTag = setToStringTag$3;
2400
- var wellKnownSymbol = wellKnownSymbol$6;
2401
-
2402
- var ITERATOR = wellKnownSymbol('iterator');
2403
- var ArrayValues = ArrayIteratorMethods.values;
2404
-
2405
- var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
2406
- if (CollectionPrototype) {
2407
- // some Chrome versions have non-configurable methods on DOMTokenList
2408
- if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
2409
- createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
2410
- } catch (error) {
2411
- CollectionPrototype[ITERATOR] = ArrayValues;
2412
- }
2413
- setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
2414
- if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
2415
- // some Chrome versions have non-configurable methods on DOMTokenList
2416
- if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
2417
- createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
2418
- } catch (error) {
2419
- CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
2420
- }
2421
- }
2422
- }
2423
- };
2424
-
2425
- for (var COLLECTION_NAME in DOMIterables) {
2426
- handlePrototype(globalThis$1[COLLECTION_NAME] && globalThis$1[COLLECTION_NAME].prototype, COLLECTION_NAME);
2427
- }
2428
-
2429
- handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
2430
-
2431
- function useWatchTinyDataStorage(storage, options) {
2432
- var _a;
2433
- const initialValue = storage ? storage.getData() : undefined;
2434
- const [value, setValue] = useState(() => initialValue);
2435
- const valueRef = useRef(initialValue);
2436
- const equals = (_a = options === null || options === void 0 ? void 0 : options.equals) !== null && _a !== void 0 ? _a : isEqual;
2437
- // keep ref in sync with latest value
2438
- valueRef.current = value;
2439
- useEffect(() => {
2440
- if (!storage) {
2441
- return;
2442
- }
2443
- const current = storage.getData();
2444
- if (!equals(current, valueRef.current)) {
2445
- setValue(current);
2446
- }
2447
- const unsubscribe = storage.onChanges(data => {
2448
- const nextValue = data;
2449
- if (!equals(nextValue, valueRef.current)) {
2450
- setValue(nextValue);
2451
- }
2452
- });
2453
- return () => {
2454
- unsubscribe === null || unsubscribe === void 0 ? void 0 : unsubscribe();
2455
- };
2456
- }, [storage, equals]);
2457
- return value;
2458
- }
2459
- const isObjectLike = value => {
2460
- return typeof value === 'object' && value !== null;
2461
- };
2462
- const isEqual = (a, b) => {
2463
- if (a === b) {
2464
- return true;
2465
- }
2466
- const aIsObj = isObjectLike(a);
2467
- const bIsObj = isObjectLike(b);
2468
- // If one is object-like and the other isn't, they're different
2469
- if (aIsObj !== bIsObj) {
2470
- return false;
2471
- }
2472
- // For non-object (number, string, boolean, undefined, symbol, bigint, function),
2473
- // strict equality above already handled true; reaching here means they're different
2474
- if (!aIsObj || !bIsObj) {
2475
- return false;
2476
- }
2477
- // Arrays: compare length + each element with structural comparison
2478
- if (Array.isArray(a) || Array.isArray(b)) {
2479
- if (!Array.isArray(a) || !Array.isArray(b)) {
2480
- return false;
2481
- }
2482
- if (a.length !== b.length) {
2483
- return false;
2484
- }
2485
- for (let i = 0; i < a.length; i++) {
2486
- if (!isEqual(a[i], b[i])) {
2487
- return false;
2488
- }
2489
- }
2490
- return true;
2491
- }
2492
- // Plain objects: keys + values comparison
2493
- const aObj = a;
2494
- const bObj = b;
2495
- const aKeys = Object.keys(aObj);
2496
- const bKeys = Object.keys(bObj);
2497
- if (aKeys.length !== bKeys.length) {
2498
- return false;
2499
- }
2500
- for (const key of aKeys) {
2501
- if (!Object.prototype.hasOwnProperty.call(bObj, key)) {
2502
- return false;
2503
- }
2504
- if (!isEqual(aObj[key], bObj[key])) {
2505
- return false;
2506
- }
2507
- }
2508
- return true;
2509
- };
2510
-
2511
896
  const adminRuntimeSettingsSchema = {
2512
897
  type: 'object',
2513
898
  properties: {
@@ -2656,4 +1041,106 @@ const summaryToolRuntimeGenieAnswerVisualSettingsSchema = {
2656
1041
  }
2657
1042
  };
2658
1043
 
2659
- export { AdminDemoRuntimeName, AdminRuntimeName, AgentUnavailabilityReasons, AnswerModelEnum, AnswerTypeEnum, ApplicationRuntimeName, AvatarConnectionStatus, AvatarRuntimeName, AvatarStatus, ChatRuntimeName, DeviceType, DisconnectReasons, FlashcardsToolRuntimeName, FollowupsToolRuntimeName, SourcesToolRuntimeName, SummaryToolRuntimeName, adminDemoRuntimeSettingsSchema, adminRuntimeSettingsSchema, applicationRuntimeSettingsSchema, avatarRuntimeChatVisualSettingsSchema, avatarRuntimeContainedVisualSettingsSchema, avatarRuntimeLobbyVisualSettingsSchema, avatarRuntimeSettingsSchema, bannerVisualSettingsSchema, blockVisualContextSchema, chatCustomizationSchema, chatRuntimePlayerPluginSettingsSchema, chatRuntimeSettingsSchema, flashcardsToolRuntimeSettingsSchema, followupsToolRuntimeAvatarVisualSettingsSchema, followupsToolRuntimeGenieAnswerVisualSettingsSchema, followupsToolRuntimeSettingsSchema, genieAnswerVisualSettingsSchema, getSourceUrlSchema, integrationsSchema, isAvatarConnectionProxyInternalType, pageVisualSettingsSchema, popupVisualSettingsSchema, shareUrlSchema, sourcesToolRuntimeGenieAnswerVisualSettingsSchema, sourcesToolRuntimeSettingsSchema, summaryToolRuntimeGenieAnswerVisualSettingsSchema, summaryToolRuntimeSettingsSchema, useGetWidgetService, useWatchTinyDataStorage, widgetName };
1044
+ const Nvidia2026EventToolRuntimeName = 'nvidia-2026-event-tool';
1045
+ const nvidia2026EventToolRuntimeSettingsSchema = {
1046
+ type: 'object',
1047
+ properties: {
1048
+ schemaVersion: {
1049
+ type: 'literal',
1050
+ value: '1',
1051
+ optional: true
1052
+ }
1053
+ }
1054
+ };
1055
+
1056
+ const KalturaVideoPlayerToolRuntimeName = 'kaltura-video-player-tool';
1057
+ const kalturaVideoPlayerToolRuntimeSettingsSchema = {
1058
+ type: 'object',
1059
+ properties: {
1060
+ kalturaServerURI: {
1061
+ type: 'primitive',
1062
+ value: 'string'
1063
+ },
1064
+ partnerId: {
1065
+ type: 'primitive',
1066
+ value: 'string'
1067
+ },
1068
+ uiConfId: {
1069
+ type: 'primitive',
1070
+ value: 'string'
1071
+ },
1072
+ ks: {
1073
+ type: 'primitive',
1074
+ value: 'string'
1075
+ }
1076
+ }
1077
+ };
1078
+
1079
+ const kalturaVideoPlayerToolRuntimeGenieAnswerVisualSettingsSchema = {
1080
+ type: 'object',
1081
+ properties: {
1082
+ id: {
1083
+ type: 'primitive',
1084
+ value: 'string'
1085
+ }
1086
+ }
1087
+ };
1088
+
1089
+ const GtcAgendaToolRuntimeName = 'gtc-agenda-tool';
1090
+ const gtcAgendaToolRuntimeSettingsSchema = {
1091
+ type: 'object',
1092
+ properties: {
1093
+ schemaVersion: {
1094
+ type: 'literal',
1095
+ value: '1',
1096
+ optional: true
1097
+ }
1098
+ }
1099
+ };
1100
+
1101
+ const gtcAgendaToolRuntimeGenieAnswerVisualSettingsSchema = {
1102
+ type: 'object',
1103
+ properties: {
1104
+ id: {
1105
+ type: 'primitive',
1106
+ value: 'string'
1107
+ }
1108
+ }
1109
+ };
1110
+
1111
+ const GtcAgendaListToolRuntimeName = 'gtc-agenda-list-tool';
1112
+ const gtcAgendaListToolRuntimeSettingsSchema = {
1113
+ type: 'object',
1114
+ properties: {
1115
+ schemaVersion: {
1116
+ type: 'literal',
1117
+ value: '1',
1118
+ optional: true
1119
+ }
1120
+ }
1121
+ };
1122
+
1123
+ const gtcAgendaListToolRuntimeGenieAnswerVisualSettingsSchema = {
1124
+ type: 'object',
1125
+ properties: {
1126
+ schemaVersion: {
1127
+ type: 'literal',
1128
+ value: '1',
1129
+ optional: true
1130
+ },
1131
+ sessions: {
1132
+ type: 'array',
1133
+ items: {
1134
+ type: 'object',
1135
+ properties: {
1136
+ id: {
1137
+ type: 'primitive',
1138
+ value: 'string'
1139
+ }
1140
+ }
1141
+ }
1142
+ }
1143
+ }
1144
+ };
1145
+
1146
+ export { AdminDemoRuntimeName, AdminRuntimeName, AgentUnavailabilityReasons, AnswerModelEnum, AnswerTypeEnum, ApplicationRuntimeName, AvatarConnectionStatus, AvatarRuntimeName, AvatarStatus, ChatRuntimeName, DeviceType, DisconnectReasons, FlashcardsToolRuntimeName, FollowupsToolRuntimeName, GtcAgendaListToolRuntimeName, GtcAgendaToolRuntimeName, KalturaVideoPlayerToolRuntimeName, Nvidia2026EventToolRuntimeName, SourcesToolRuntimeName, SummaryToolRuntimeName, adminDemoRuntimeSettingsSchema, adminRuntimeSettingsSchema, applicationRuntimeSettingsSchema, avatarRuntimeChatVisualSettingsSchema, avatarRuntimeContainedVisualSettingsSchema, avatarRuntimeLobbyVisualSettingsSchema, avatarRuntimeSettingsSchema, bannerVisualSettingsSchema, blockVisualContextSchema, chatCustomizationSchema, chatRuntimePlayerPluginSettingsSchema, chatRuntimeSettingsSchema, flashcardsToolRuntimeSettingsSchema, followupsToolRuntimeAvatarVisualSettingsSchema, followupsToolRuntimeGenieAnswerVisualSettingsSchema, followupsToolRuntimeSettingsSchema, genieAnswerVisualSettingsSchema, getSourceUrlSchema, gtcAgendaListToolRuntimeGenieAnswerVisualSettingsSchema, gtcAgendaListToolRuntimeSettingsSchema, gtcAgendaToolRuntimeGenieAnswerVisualSettingsSchema, gtcAgendaToolRuntimeSettingsSchema, integrationsSchema, isAvatarConnectionProxyInternalType, kalturaVideoPlayerToolRuntimeGenieAnswerVisualSettingsSchema, kalturaVideoPlayerToolRuntimeSettingsSchema, nvidia2026EventToolRuntimeSettingsSchema, pageVisualSettingsSchema, popupVisualSettingsSchema, shareUrlSchema, sourcesToolRuntimeGenieAnswerVisualSettingsSchema, sourcesToolRuntimeSettingsSchema, summaryToolRuntimeGenieAnswerVisualSettingsSchema, summaryToolRuntimeSettingsSchema, widgetName };