813 return EXISTS ? document.createElement(it) : {}; |
952 return EXISTS ? document.createElement(it) : {}; |
814 }; |
953 }; |
815 |
954 |
816 |
955 |
817 /***/ }), |
956 /***/ }), |
818 /* 40 */ |
957 /* 42 */ |
819 /***/ (function(module, exports, __webpack_require__) { |
958 /***/ (function(module, exports, __webpack_require__) { |
|
959 |
|
960 "use strict"; |
820 |
961 |
821 var DESCRIPTORS = __webpack_require__(5); |
962 var DESCRIPTORS = __webpack_require__(5); |
822 var definePropertyModule = __webpack_require__(41); |
963 var definePropertyModule = __webpack_require__(43); |
823 var createPropertyDescriptor = __webpack_require__(9); |
964 var createPropertyDescriptor = __webpack_require__(10); |
824 |
965 |
825 module.exports = DESCRIPTORS ? function (object, key, value) { |
966 module.exports = DESCRIPTORS ? function (object, key, value) { |
826 return definePropertyModule.f(object, key, createPropertyDescriptor(1, value)); |
967 return definePropertyModule.f(object, key, createPropertyDescriptor(1, value)); |
827 } : function (object, key, value) { |
968 } : function (object, key, value) { |
828 object[key] = value; |
969 object[key] = value; |
829 return object; |
970 return object; |
830 }; |
971 }; |
831 |
972 |
832 |
973 |
833 /***/ }), |
974 /***/ }), |
834 /* 41 */ |
975 /* 43 */ |
835 /***/ (function(module, exports, __webpack_require__) { |
976 /***/ (function(module, exports, __webpack_require__) { |
836 |
977 |
837 var global = __webpack_require__(3); |
978 "use strict"; |
|
979 |
838 var DESCRIPTORS = __webpack_require__(5); |
980 var DESCRIPTORS = __webpack_require__(5); |
839 var IE8_DOM_DEFINE = __webpack_require__(38); |
981 var IE8_DOM_DEFINE = __webpack_require__(40); |
840 var anObject = __webpack_require__(42); |
982 var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(44); |
841 var toPropertyKey = __webpack_require__(15); |
983 var anObject = __webpack_require__(45); |
842 |
984 var toPropertyKey = __webpack_require__(17); |
843 var TypeError = global.TypeError; |
985 |
|
986 var $TypeError = TypeError; |
844 // eslint-disable-next-line es/no-object-defineproperty -- safe |
987 // eslint-disable-next-line es/no-object-defineproperty -- safe |
845 var $defineProperty = Object.defineProperty; |
988 var $defineProperty = Object.defineProperty; |
|
989 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe |
|
990 var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; |
|
991 var ENUMERABLE = 'enumerable'; |
|
992 var CONFIGURABLE = 'configurable'; |
|
993 var WRITABLE = 'writable'; |
846 |
994 |
847 // `Object.defineProperty` method |
995 // `Object.defineProperty` method |
848 // https://tc39.es/ecma262/#sec-object.defineproperty |
996 // https://tc39.es/ecma262/#sec-object.defineproperty |
849 exports.f = DESCRIPTORS ? $defineProperty : function defineProperty(O, P, Attributes) { |
997 exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) { |
|
998 anObject(O); |
|
999 P = toPropertyKey(P); |
|
1000 anObject(Attributes); |
|
1001 if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { |
|
1002 var current = $getOwnPropertyDescriptor(O, P); |
|
1003 if (current && current[WRITABLE]) { |
|
1004 O[P] = Attributes.value; |
|
1005 Attributes = { |
|
1006 configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE], |
|
1007 enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE], |
|
1008 writable: false |
|
1009 }; |
|
1010 } |
|
1011 } return $defineProperty(O, P, Attributes); |
|
1012 } : $defineProperty : function defineProperty(O, P, Attributes) { |
850 anObject(O); |
1013 anObject(O); |
851 P = toPropertyKey(P); |
1014 P = toPropertyKey(P); |
852 anObject(Attributes); |
1015 anObject(Attributes); |
853 if (IE8_DOM_DEFINE) try { |
1016 if (IE8_DOM_DEFINE) try { |
854 return $defineProperty(O, P, Attributes); |
1017 return $defineProperty(O, P, Attributes); |
855 } catch (error) { /* empty */ } |
1018 } catch (error) { /* empty */ } |
856 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported'); |
1019 if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported'); |
857 if ('value' in Attributes) O[P] = Attributes.value; |
1020 if ('value' in Attributes) O[P] = Attributes.value; |
858 return O; |
1021 return O; |
859 }; |
1022 }; |
860 |
1023 |
861 |
1024 |
862 /***/ }), |
1025 /***/ }), |
863 /* 42 */ |
1026 /* 44 */ |
864 /***/ (function(module, exports, __webpack_require__) { |
1027 /***/ (function(module, exports, __webpack_require__) { |
865 |
1028 |
866 var global = __webpack_require__(3); |
1029 "use strict"; |
867 var isObject = __webpack_require__(17); |
1030 |
868 |
1031 var DESCRIPTORS = __webpack_require__(5); |
869 var String = global.String; |
1032 var fails = __webpack_require__(6); |
870 var TypeError = global.TypeError; |
1033 |
|
1034 // V8 ~ Chrome 36- |
|
1035 // https://bugs.chromium.org/p/v8/issues/detail?id=3334 |
|
1036 module.exports = DESCRIPTORS && fails(function () { |
|
1037 // eslint-disable-next-line es/no-object-defineproperty -- required for testing |
|
1038 return Object.defineProperty(function () { /* empty */ }, 'prototype', { |
|
1039 value: 42, |
|
1040 writable: false |
|
1041 }).prototype !== 42; |
|
1042 }); |
|
1043 |
|
1044 |
|
1045 /***/ }), |
|
1046 /* 45 */ |
|
1047 /***/ (function(module, exports, __webpack_require__) { |
|
1048 |
|
1049 "use strict"; |
|
1050 |
|
1051 var isObject = __webpack_require__(19); |
|
1052 |
|
1053 var $String = String; |
|
1054 var $TypeError = TypeError; |
871 |
1055 |
872 // `Assert: Type(argument) is Object` |
1056 // `Assert: Type(argument) is Object` |
873 module.exports = function (argument) { |
1057 module.exports = function (argument) { |
874 if (isObject(argument)) return argument; |
1058 if (isObject(argument)) return argument; |
875 throw TypeError(String(argument) + ' is not an object'); |
1059 throw new $TypeError($String(argument) + ' is not an object'); |
876 }; |
1060 }; |
877 |
1061 |
878 |
1062 |
879 /***/ }), |
1063 /***/ }), |
880 /* 43 */ |
1064 /* 46 */ |
881 /***/ (function(module, exports, __webpack_require__) { |
1065 /***/ (function(module, exports, __webpack_require__) { |
882 |
1066 |
883 var global = __webpack_require__(3); |
1067 "use strict"; |
884 var isCallable = __webpack_require__(18); |
1068 |
885 var hasOwn = __webpack_require__(35); |
1069 var isCallable = __webpack_require__(20); |
886 var createNonEnumerableProperty = __webpack_require__(40); |
1070 var definePropertyModule = __webpack_require__(43); |
887 var setGlobal = __webpack_require__(34); |
1071 var makeBuiltIn = __webpack_require__(47); |
888 var inspectSource = __webpack_require__(44); |
1072 var defineGlobalProperty = __webpack_require__(36); |
889 var InternalStateModule = __webpack_require__(45); |
1073 |
890 var CONFIGURABLE_FUNCTION_NAME = __webpack_require__(49).CONFIGURABLE; |
1074 module.exports = function (O, key, value, options) { |
891 |
1075 if (!options) options = {}; |
|
1076 var simple = options.enumerable; |
|
1077 var name = options.name !== undefined ? options.name : key; |
|
1078 if (isCallable(value)) makeBuiltIn(value, name, options); |
|
1079 if (options.global) { |
|
1080 if (simple) O[key] = value; |
|
1081 else defineGlobalProperty(key, value); |
|
1082 } else { |
|
1083 try { |
|
1084 if (!options.unsafe) delete O[key]; |
|
1085 else if (O[key]) simple = true; |
|
1086 } catch (error) { /* empty */ } |
|
1087 if (simple) O[key] = value; |
|
1088 else definePropertyModule.f(O, key, { |
|
1089 value: value, |
|
1090 enumerable: false, |
|
1091 configurable: !options.nonConfigurable, |
|
1092 writable: !options.nonWritable |
|
1093 }); |
|
1094 } return O; |
|
1095 }; |
|
1096 |
|
1097 |
|
1098 /***/ }), |
|
1099 /* 47 */ |
|
1100 /***/ (function(module, exports, __webpack_require__) { |
|
1101 |
|
1102 "use strict"; |
|
1103 |
|
1104 var uncurryThis = __webpack_require__(13); |
|
1105 var fails = __webpack_require__(6); |
|
1106 var isCallable = __webpack_require__(20); |
|
1107 var hasOwn = __webpack_require__(37); |
|
1108 var DESCRIPTORS = __webpack_require__(5); |
|
1109 var CONFIGURABLE_FUNCTION_NAME = __webpack_require__(48).CONFIGURABLE; |
|
1110 var inspectSource = __webpack_require__(49); |
|
1111 var InternalStateModule = __webpack_require__(50); |
|
1112 |
|
1113 var enforceInternalState = InternalStateModule.enforce; |
892 var getInternalState = InternalStateModule.get; |
1114 var getInternalState = InternalStateModule.get; |
893 var enforceInternalState = InternalStateModule.enforce; |
1115 var $String = String; |
|
1116 // eslint-disable-next-line es/no-object-defineproperty -- safe |
|
1117 var defineProperty = Object.defineProperty; |
|
1118 var stringSlice = uncurryThis(''.slice); |
|
1119 var replace = uncurryThis(''.replace); |
|
1120 var join = uncurryThis([].join); |
|
1121 |
|
1122 var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () { |
|
1123 return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8; |
|
1124 }); |
|
1125 |
894 var TEMPLATE = String(String).split('String'); |
1126 var TEMPLATE = String(String).split('String'); |
895 |
1127 |
896 (module.exports = function (O, key, value, options) { |
1128 var makeBuiltIn = module.exports = function (value, name, options) { |
897 var unsafe = options ? !!options.unsafe : false; |
1129 if (stringSlice($String(name), 0, 7) === 'Symbol(') { |
898 var simple = options ? !!options.enumerable : false; |
1130 name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']'; |
899 var noTargetGet = options ? !!options.noTargetGet : false; |
1131 } |
900 var name = options && options.name !== undefined ? options.name : key; |
1132 if (options && options.getter) name = 'get ' + name; |
901 var state; |
1133 if (options && options.setter) name = 'set ' + name; |
902 if (isCallable(value)) { |
1134 if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) { |
903 if (String(name).slice(0, 7) === 'Symbol(') { |
1135 if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true }); |
904 name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']'; |
1136 else value.name = name; |
905 } |
1137 } |
906 if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) { |
1138 if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) { |
907 createNonEnumerableProperty(value, 'name', name); |
1139 defineProperty(value, 'length', { value: options.arity }); |
908 } |
1140 } |
909 state = enforceInternalState(value); |
1141 try { |
910 if (!state.source) { |
1142 if (options && hasOwn(options, 'constructor') && options.constructor) { |
911 state.source = TEMPLATE.join(typeof name == 'string' ? name : ''); |
1143 if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false }); |
912 } |
1144 // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable |
913 } |
1145 } else if (value.prototype) value.prototype = undefined; |
914 if (O === global) { |
1146 } catch (error) { /* empty */ } |
915 if (simple) O[key] = value; |
1147 var state = enforceInternalState(value); |
916 else setGlobal(key, value); |
1148 if (!hasOwn(state, 'source')) { |
917 return; |
1149 state.source = join(TEMPLATE, typeof name == 'string' ? name : ''); |
918 } else if (!unsafe) { |
1150 } return value; |
919 delete O[key]; |
1151 }; |
920 } else if (!noTargetGet && O[key]) { |
1152 |
921 simple = true; |
|
922 } |
|
923 if (simple) O[key] = value; |
|
924 else createNonEnumerableProperty(O, key, value); |
|
925 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative |
1153 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative |
926 })(Function.prototype, 'toString', function toString() { |
1154 // eslint-disable-next-line no-extend-native -- required |
|
1155 Function.prototype.toString = makeBuiltIn(function toString() { |
927 return isCallable(this) && getInternalState(this).source || inspectSource(this); |
1156 return isCallable(this) && getInternalState(this).source || inspectSource(this); |
928 }); |
1157 }, 'toString'); |
929 |
1158 |
930 |
1159 |
931 /***/ }), |
1160 /***/ }), |
932 /* 44 */ |
1161 /* 48 */ |
933 /***/ (function(module, exports, __webpack_require__) { |
1162 /***/ (function(module, exports, __webpack_require__) { |
934 |
1163 |
935 var uncurryThis = __webpack_require__(12); |
1164 "use strict"; |
936 var isCallable = __webpack_require__(18); |
1165 |
937 var store = __webpack_require__(33); |
1166 var DESCRIPTORS = __webpack_require__(5); |
|
1167 var hasOwn = __webpack_require__(37); |
|
1168 |
|
1169 var FunctionPrototype = Function.prototype; |
|
1170 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe |
|
1171 var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor; |
|
1172 |
|
1173 var EXISTS = hasOwn(FunctionPrototype, 'name'); |
|
1174 // additional protection from minified / mangled / dropped function names |
|
1175 var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something'; |
|
1176 var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable)); |
|
1177 |
|
1178 module.exports = { |
|
1179 EXISTS: EXISTS, |
|
1180 PROPER: PROPER, |
|
1181 CONFIGURABLE: CONFIGURABLE |
|
1182 }; |
|
1183 |
|
1184 |
|
1185 /***/ }), |
|
1186 /* 49 */ |
|
1187 /***/ (function(module, exports, __webpack_require__) { |
|
1188 |
|
1189 "use strict"; |
|
1190 |
|
1191 var uncurryThis = __webpack_require__(13); |
|
1192 var isCallable = __webpack_require__(20); |
|
1193 var store = __webpack_require__(35); |
938 |
1194 |
939 var functionToString = uncurryThis(Function.toString); |
1195 var functionToString = uncurryThis(Function.toString); |
940 |
1196 |
941 // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper |
1197 // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper |
942 if (!isCallable(store.inspectSource)) { |
1198 if (!isCallable(store.inspectSource)) { |
1453 return O; |
1854 return O; |
1454 }; |
1855 }; |
1455 |
1856 |
1456 |
1857 |
1457 /***/ }), |
1858 /***/ }), |
1458 /* 65 */ |
1859 /* 75 */ |
1459 /***/ (function(module, exports, __webpack_require__) { |
1860 /***/ (function(module, exports, __webpack_require__) { |
1460 |
1861 |
1461 var internalObjectKeys = __webpack_require__(53); |
1862 "use strict"; |
1462 var enumBugKeys = __webpack_require__(59); |
1863 |
|
1864 var internalObjectKeys = __webpack_require__(57); |
|
1865 var enumBugKeys = __webpack_require__(64); |
1463 |
1866 |
1464 // `Object.keys` method |
1867 // `Object.keys` method |
1465 // https://tc39.es/ecma262/#sec-object.keys |
1868 // https://tc39.es/ecma262/#sec-object.keys |
1466 // eslint-disable-next-line es/no-object-keys -- safe |
1869 // eslint-disable-next-line es/no-object-keys -- safe |
1467 module.exports = Object.keys || function keys(O) { |
1870 module.exports = Object.keys || function keys(O) { |
1468 return internalObjectKeys(O, enumBugKeys); |
1871 return internalObjectKeys(O, enumBugKeys); |
1469 }; |
1872 }; |
1470 |
1873 |
1471 |
1874 |
1472 /***/ }), |
1875 /***/ }), |
1473 /* 66 */ |
1876 /* 76 */ |
1474 /***/ (function(module, exports, __webpack_require__) { |
1877 /***/ (function(module, exports, __webpack_require__) { |
1475 |
1878 |
1476 var getBuiltIn = __webpack_require__(20); |
1879 "use strict"; |
|
1880 |
|
1881 var getBuiltIn = __webpack_require__(22); |
1477 |
1882 |
1478 module.exports = getBuiltIn('document', 'documentElement'); |
1883 module.exports = getBuiltIn('document', 'documentElement'); |
1479 |
1884 |
1480 |
1885 |
1481 /***/ }), |
1886 /***/ }), |
1482 /* 67 */ |
1887 /* 77 */ |
1483 /***/ (function(module, exports, __webpack_require__) { |
1888 /***/ (function(module, exports, __webpack_require__) { |
|
1889 |
|
1890 "use strict"; |
1484 |
1891 |
1485 var $ = __webpack_require__(2); |
1892 var $ = __webpack_require__(2); |
1486 var hasOwn = __webpack_require__(35); |
1893 var uncurryThis = __webpack_require__(13); |
1487 |
1894 var aCallable = __webpack_require__(29); |
1488 // `Object.hasOwn` method |
1895 var toIndexedObject = __webpack_require__(11); |
1489 // https://github.com/tc39/proposal-accessible-object-hasownproperty |
1896 var arrayFromConstructorAndList = __webpack_require__(78); |
1490 $({ target: 'Object', stat: true }, { |
1897 var getBuiltInPrototypeMethod = __webpack_require__(79); |
1491 hasOwn: hasOwn |
1898 var addToUnscopables = __webpack_require__(72); |
|
1899 |
|
1900 var $Array = Array; |
|
1901 var sort = uncurryThis(getBuiltInPrototypeMethod('Array', 'sort')); |
|
1902 |
|
1903 // `Array.prototype.toSorted` method |
|
1904 // https://tc39.es/ecma262/#sec-array.prototype.tosorted |
|
1905 $({ target: 'Array', proto: true }, { |
|
1906 toSorted: function toSorted(compareFn) { |
|
1907 if (compareFn !== undefined) aCallable(compareFn); |
|
1908 var O = toIndexedObject(this); |
|
1909 var A = arrayFromConstructorAndList($Array, O); |
|
1910 return sort(A, compareFn); |
|
1911 } |
1492 }); |
1912 }); |
1493 |
1913 |
1494 |
1914 addToUnscopables('toSorted'); |
1495 /***/ }), |
1915 |
1496 /* 68 */ |
1916 |
|
1917 /***/ }), |
|
1918 /* 78 */ |
|
1919 /***/ (function(module, exports, __webpack_require__) { |
|
1920 |
|
1921 "use strict"; |
|
1922 |
|
1923 var lengthOfArrayLike = __webpack_require__(62); |
|
1924 |
|
1925 module.exports = function (Constructor, list, $length) { |
|
1926 var index = 0; |
|
1927 var length = arguments.length > 2 ? $length : lengthOfArrayLike(list); |
|
1928 var result = new Constructor(length); |
|
1929 while (length > index) result[index] = list[index++]; |
|
1930 return result; |
|
1931 }; |
|
1932 |
|
1933 |
|
1934 /***/ }), |
|
1935 /* 79 */ |
|
1936 /***/ (function(module, exports, __webpack_require__) { |
|
1937 |
|
1938 "use strict"; |
|
1939 |
|
1940 var global = __webpack_require__(3); |
|
1941 |
|
1942 module.exports = function (CONSTRUCTOR, METHOD) { |
|
1943 var Constructor = global[CONSTRUCTOR]; |
|
1944 var Prototype = Constructor && Constructor.prototype; |
|
1945 return Prototype && Prototype[METHOD]; |
|
1946 }; |
|
1947 |
|
1948 |
|
1949 /***/ }), |
|
1950 /* 80 */ |
1497 /***/ (function(module, exports, __webpack_require__) { |
1951 /***/ (function(module, exports, __webpack_require__) { |
1498 |
1952 |
1499 "use strict"; |
1953 "use strict"; |
1500 |
1954 |
1501 var $ = __webpack_require__(2); |
1955 var $ = __webpack_require__(2); |
1502 var uncurryThis = __webpack_require__(12); |
1956 var addToUnscopables = __webpack_require__(72); |
1503 var requireObjectCoercible = __webpack_require__(14); |
1957 var doesNotExceedSafeInteger = __webpack_require__(69); |
1504 var toIntegerOrInfinity = __webpack_require__(56); |
1958 var lengthOfArrayLike = __webpack_require__(62); |
1505 var toString = __webpack_require__(69); |
1959 var toAbsoluteIndex = __webpack_require__(59); |
1506 var fails = __webpack_require__(6); |
1960 var toIndexedObject = __webpack_require__(11); |
1507 |
1961 var toIntegerOrInfinity = __webpack_require__(60); |
1508 var charAt = uncurryThis(''.charAt); |
1962 |
1509 |
1963 var $Array = Array; |
1510 var FORCED = fails(function () { |
1964 var max = Math.max; |
1511 return '𠮷'.at(0) !== '\uD842'; |
1965 var min = Math.min; |
|
1966 |
|
1967 // `Array.prototype.toSpliced` method |
|
1968 // https://tc39.es/ecma262/#sec-array.prototype.tospliced |
|
1969 $({ target: 'Array', proto: true }, { |
|
1970 toSpliced: function toSpliced(start, deleteCount /* , ...items */) { |
|
1971 var O = toIndexedObject(this); |
|
1972 var len = lengthOfArrayLike(O); |
|
1973 var actualStart = toAbsoluteIndex(start, len); |
|
1974 var argumentsLength = arguments.length; |
|
1975 var k = 0; |
|
1976 var insertCount, actualDeleteCount, newLen, A; |
|
1977 if (argumentsLength === 0) { |
|
1978 insertCount = actualDeleteCount = 0; |
|
1979 } else if (argumentsLength === 1) { |
|
1980 insertCount = 0; |
|
1981 actualDeleteCount = len - actualStart; |
|
1982 } else { |
|
1983 insertCount = argumentsLength - 2; |
|
1984 actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart); |
|
1985 } |
|
1986 newLen = doesNotExceedSafeInteger(len + insertCount - actualDeleteCount); |
|
1987 A = $Array(newLen); |
|
1988 |
|
1989 for (; k < actualStart; k++) A[k] = O[k]; |
|
1990 for (; k < actualStart + insertCount; k++) A[k] = arguments[k - actualStart + 2]; |
|
1991 for (; k < newLen; k++) A[k] = O[k + actualDeleteCount - insertCount]; |
|
1992 |
|
1993 return A; |
|
1994 } |
1512 }); |
1995 }); |
1513 |
1996 |
1514 // `String.prototype.at` method |
1997 addToUnscopables('toSpliced'); |
1515 // https://github.com/tc39/proposal-relative-indexing-method |
1998 |
1516 $({ target: 'String', proto: true, forced: FORCED }, { |
1999 |
1517 at: function at(index) { |
2000 /***/ }), |
1518 var S = toString(requireObjectCoercible(this)); |
2001 /* 81 */ |
1519 var len = S.length; |
2002 /***/ (function(module, exports, __webpack_require__) { |
1520 var relativeIndex = toIntegerOrInfinity(index); |
2003 |
1521 var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex; |
2004 "use strict"; |
1522 return (k < 0 || k >= len) ? undefined : charAt(S, k); |
2005 |
|
2006 var $ = __webpack_require__(2); |
|
2007 var arrayWith = __webpack_require__(82); |
|
2008 var toIndexedObject = __webpack_require__(11); |
|
2009 |
|
2010 var $Array = Array; |
|
2011 |
|
2012 // `Array.prototype.with` method |
|
2013 // https://tc39.es/ecma262/#sec-array.prototype.with |
|
2014 $({ target: 'Array', proto: true }, { |
|
2015 'with': function (index, value) { |
|
2016 return arrayWith(toIndexedObject(this), $Array, index, value); |
1523 } |
2017 } |
1524 }); |
2018 }); |
1525 |
2019 |
1526 |
2020 |
1527 /***/ }), |
2021 /***/ }), |
1528 /* 69 */ |
2022 /* 82 */ |
1529 /***/ (function(module, exports, __webpack_require__) { |
2023 /***/ (function(module, exports, __webpack_require__) { |
1530 |
2024 |
1531 var global = __webpack_require__(3); |
2025 "use strict"; |
1532 var classof = __webpack_require__(70); |
2026 |
1533 |
2027 var lengthOfArrayLike = __webpack_require__(62); |
1534 var String = global.String; |
2028 var toIntegerOrInfinity = __webpack_require__(60); |
1535 |
2029 |
1536 module.exports = function (argument) { |
2030 var $RangeError = RangeError; |
1537 if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string'); |
2031 |
1538 return String(argument); |
2032 // https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.with |
1539 }; |
2033 // https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.with |
1540 |
2034 module.exports = function (O, C, index, value) { |
1541 |
2035 var len = lengthOfArrayLike(O); |
1542 /***/ }), |
2036 var relativeIndex = toIntegerOrInfinity(index); |
1543 /* 70 */ |
2037 var actualIndex = relativeIndex < 0 ? len + relativeIndex : relativeIndex; |
1544 /***/ (function(module, exports, __webpack_require__) { |
2038 if (actualIndex >= len || actualIndex < 0) throw new $RangeError('Incorrect index'); |
1545 |
2039 var A = new C(len); |
1546 var global = __webpack_require__(3); |
2040 var k = 0; |
1547 var TO_STRING_TAG_SUPPORT = __webpack_require__(71); |
2041 for (; k < len; k++) A[k] = k === actualIndex ? value : O[k]; |
1548 var isCallable = __webpack_require__(18); |
2042 return A; |
1549 var classofRaw = __webpack_require__(13); |
2043 }; |
1550 var wellKnownSymbol = __webpack_require__(30); |
2044 |
|
2045 |
|
2046 /***/ }), |
|
2047 /* 83 */ |
|
2048 /***/ (function(module, exports, __webpack_require__) { |
|
2049 |
|
2050 "use strict"; |
|
2051 |
|
2052 var $ = __webpack_require__(2); |
|
2053 var uncurryThis = __webpack_require__(13); |
|
2054 var aCallable = __webpack_require__(29); |
|
2055 var requireObjectCoercible = __webpack_require__(15); |
|
2056 var iterate = __webpack_require__(84); |
|
2057 var MapHelpers = __webpack_require__(94); |
|
2058 var IS_PURE = __webpack_require__(34); |
|
2059 |
|
2060 var Map = MapHelpers.Map; |
|
2061 var has = MapHelpers.has; |
|
2062 var get = MapHelpers.get; |
|
2063 var set = MapHelpers.set; |
|
2064 var push = uncurryThis([].push); |
|
2065 |
|
2066 // `Map.groupBy` method |
|
2067 // https://github.com/tc39/proposal-array-grouping |
|
2068 $({ target: 'Map', stat: true, forced: IS_PURE }, { |
|
2069 groupBy: function groupBy(items, callbackfn) { |
|
2070 requireObjectCoercible(items); |
|
2071 aCallable(callbackfn); |
|
2072 var map = new Map(); |
|
2073 var k = 0; |
|
2074 iterate(items, function (value) { |
|
2075 var key = callbackfn(value, k++); |
|
2076 if (!has(map, key)) set(map, key, [value]); |
|
2077 else push(get(map, key), value); |
|
2078 }); |
|
2079 return map; |
|
2080 } |
|
2081 }); |
|
2082 |
|
2083 |
|
2084 /***/ }), |
|
2085 /* 84 */ |
|
2086 /***/ (function(module, exports, __webpack_require__) { |
|
2087 |
|
2088 "use strict"; |
|
2089 |
|
2090 var bind = __webpack_require__(85); |
|
2091 var call = __webpack_require__(7); |
|
2092 var anObject = __webpack_require__(45); |
|
2093 var tryToString = __webpack_require__(30); |
|
2094 var isArrayIteratorMethod = __webpack_require__(87); |
|
2095 var lengthOfArrayLike = __webpack_require__(62); |
|
2096 var isPrototypeOf = __webpack_require__(23); |
|
2097 var getIterator = __webpack_require__(89); |
|
2098 var getIteratorMethod = __webpack_require__(90); |
|
2099 var iteratorClose = __webpack_require__(93); |
|
2100 |
|
2101 var $TypeError = TypeError; |
|
2102 |
|
2103 var Result = function (stopped, result) { |
|
2104 this.stopped = stopped; |
|
2105 this.result = result; |
|
2106 }; |
|
2107 |
|
2108 var ResultPrototype = Result.prototype; |
|
2109 |
|
2110 module.exports = function (iterable, unboundFunction, options) { |
|
2111 var that = options && options.that; |
|
2112 var AS_ENTRIES = !!(options && options.AS_ENTRIES); |
|
2113 var IS_RECORD = !!(options && options.IS_RECORD); |
|
2114 var IS_ITERATOR = !!(options && options.IS_ITERATOR); |
|
2115 var INTERRUPTED = !!(options && options.INTERRUPTED); |
|
2116 var fn = bind(unboundFunction, that); |
|
2117 var iterator, iterFn, index, length, result, next, step; |
|
2118 |
|
2119 var stop = function (condition) { |
|
2120 if (iterator) iteratorClose(iterator, 'normal', condition); |
|
2121 return new Result(true, condition); |
|
2122 }; |
|
2123 |
|
2124 var callFn = function (value) { |
|
2125 if (AS_ENTRIES) { |
|
2126 anObject(value); |
|
2127 return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]); |
|
2128 } return INTERRUPTED ? fn(value, stop) : fn(value); |
|
2129 }; |
|
2130 |
|
2131 if (IS_RECORD) { |
|
2132 iterator = iterable.iterator; |
|
2133 } else if (IS_ITERATOR) { |
|
2134 iterator = iterable; |
|
2135 } else { |
|
2136 iterFn = getIteratorMethod(iterable); |
|
2137 if (!iterFn) throw new $TypeError(tryToString(iterable) + ' is not iterable'); |
|
2138 // optimisation for array iterators |
|
2139 if (isArrayIteratorMethod(iterFn)) { |
|
2140 for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) { |
|
2141 result = callFn(iterable[index]); |
|
2142 if (result && isPrototypeOf(ResultPrototype, result)) return result; |
|
2143 } return new Result(false); |
|
2144 } |
|
2145 iterator = getIterator(iterable, iterFn); |
|
2146 } |
|
2147 |
|
2148 next = IS_RECORD ? iterable.next : iterator.next; |
|
2149 while (!(step = call(next, iterator)).done) { |
|
2150 try { |
|
2151 result = callFn(step.value); |
|
2152 } catch (error) { |
|
2153 iteratorClose(iterator, 'throw', error); |
|
2154 } |
|
2155 if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result; |
|
2156 } return new Result(false); |
|
2157 }; |
|
2158 |
|
2159 |
|
2160 /***/ }), |
|
2161 /* 85 */ |
|
2162 /***/ (function(module, exports, __webpack_require__) { |
|
2163 |
|
2164 "use strict"; |
|
2165 |
|
2166 var uncurryThis = __webpack_require__(86); |
|
2167 var aCallable = __webpack_require__(29); |
|
2168 var NATIVE_BIND = __webpack_require__(8); |
|
2169 |
|
2170 var bind = uncurryThis(uncurryThis.bind); |
|
2171 |
|
2172 // optional / simple context binding |
|
2173 module.exports = function (fn, that) { |
|
2174 aCallable(fn); |
|
2175 return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) { |
|
2176 return fn.apply(that, arguments); |
|
2177 }; |
|
2178 }; |
|
2179 |
|
2180 |
|
2181 /***/ }), |
|
2182 /* 86 */ |
|
2183 /***/ (function(module, exports, __webpack_require__) { |
|
2184 |
|
2185 "use strict"; |
|
2186 |
|
2187 var classofRaw = __webpack_require__(14); |
|
2188 var uncurryThis = __webpack_require__(13); |
|
2189 |
|
2190 module.exports = function (fn) { |
|
2191 // Nashorn bug: |
|
2192 // https://github.com/zloirock/core-js/issues/1128 |
|
2193 // https://github.com/zloirock/core-js/issues/1130 |
|
2194 if (classofRaw(fn) === 'Function') return uncurryThis(fn); |
|
2195 }; |
|
2196 |
|
2197 |
|
2198 /***/ }), |
|
2199 /* 87 */ |
|
2200 /***/ (function(module, exports, __webpack_require__) { |
|
2201 |
|
2202 "use strict"; |
|
2203 |
|
2204 var wellKnownSymbol = __webpack_require__(32); |
|
2205 var Iterators = __webpack_require__(88); |
|
2206 |
|
2207 var ITERATOR = wellKnownSymbol('iterator'); |
|
2208 var ArrayPrototype = Array.prototype; |
|
2209 |
|
2210 // check on default Array iterator |
|
2211 module.exports = function (it) { |
|
2212 return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it); |
|
2213 }; |
|
2214 |
|
2215 |
|
2216 /***/ }), |
|
2217 /* 88 */ |
|
2218 /***/ (function(module, exports, __webpack_require__) { |
|
2219 |
|
2220 "use strict"; |
|
2221 |
|
2222 module.exports = {}; |
|
2223 |
|
2224 |
|
2225 /***/ }), |
|
2226 /* 89 */ |
|
2227 /***/ (function(module, exports, __webpack_require__) { |
|
2228 |
|
2229 "use strict"; |
|
2230 |
|
2231 var call = __webpack_require__(7); |
|
2232 var aCallable = __webpack_require__(29); |
|
2233 var anObject = __webpack_require__(45); |
|
2234 var tryToString = __webpack_require__(30); |
|
2235 var getIteratorMethod = __webpack_require__(90); |
|
2236 |
|
2237 var $TypeError = TypeError; |
|
2238 |
|
2239 module.exports = function (argument, usingIterator) { |
|
2240 var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator; |
|
2241 if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument)); |
|
2242 throw new $TypeError(tryToString(argument) + ' is not iterable'); |
|
2243 }; |
|
2244 |
|
2245 |
|
2246 /***/ }), |
|
2247 /* 90 */ |
|
2248 /***/ (function(module, exports, __webpack_require__) { |
|
2249 |
|
2250 "use strict"; |
|
2251 |
|
2252 var classof = __webpack_require__(91); |
|
2253 var getMethod = __webpack_require__(28); |
|
2254 var isNullOrUndefined = __webpack_require__(16); |
|
2255 var Iterators = __webpack_require__(88); |
|
2256 var wellKnownSymbol = __webpack_require__(32); |
|
2257 |
|
2258 var ITERATOR = wellKnownSymbol('iterator'); |
|
2259 |
|
2260 module.exports = function (it) { |
|
2261 if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR) |
|
2262 || getMethod(it, '@@iterator') |
|
2263 || Iterators[classof(it)]; |
|
2264 }; |
|
2265 |
|
2266 |
|
2267 /***/ }), |
|
2268 /* 91 */ |
|
2269 /***/ (function(module, exports, __webpack_require__) { |
|
2270 |
|
2271 "use strict"; |
|
2272 |
|
2273 var TO_STRING_TAG_SUPPORT = __webpack_require__(92); |
|
2274 var isCallable = __webpack_require__(20); |
|
2275 var classofRaw = __webpack_require__(14); |
|
2276 var wellKnownSymbol = __webpack_require__(32); |
1551 |
2277 |
1552 var TO_STRING_TAG = wellKnownSymbol('toStringTag'); |
2278 var TO_STRING_TAG = wellKnownSymbol('toStringTag'); |
1553 var Object = global.Object; |
2279 var $Object = Object; |
1554 |
2280 |
1555 // ES3 wrong here |
2281 // ES3 wrong here |
1556 var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments'; |
2282 var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments'; |
1557 |
2283 |
1558 // fallback for IE11 Script Access Denied error |
2284 // fallback for IE11 Script Access Denied error |
1559 var tryGet = function (it, key) { |
2285 var tryGet = function (it, key) { |
1560 try { |
2286 try { |
1561 return it[key]; |
2287 return it[key]; |
1565 // getting tag from ES6+ `Object.prototype.toString` |
2291 // getting tag from ES6+ `Object.prototype.toString` |
1566 module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) { |
2292 module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) { |
1567 var O, tag, result; |
2293 var O, tag, result; |
1568 return it === undefined ? 'Undefined' : it === null ? 'Null' |
2294 return it === undefined ? 'Undefined' : it === null ? 'Null' |
1569 // @@toStringTag case |
2295 // @@toStringTag case |
1570 : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag |
2296 : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag |
1571 // builtinTag case |
2297 // builtinTag case |
1572 : CORRECT_ARGUMENTS ? classofRaw(O) |
2298 : CORRECT_ARGUMENTS ? classofRaw(O) |
1573 // ES3 arguments fallback |
2299 // ES3 arguments fallback |
1574 : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result; |
2300 : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result; |
1575 }; |
2301 }; |
1576 |
2302 |
1577 |
2303 |
1578 /***/ }), |
2304 /***/ }), |
1579 /* 71 */ |
2305 /* 92 */ |
1580 /***/ (function(module, exports, __webpack_require__) { |
2306 /***/ (function(module, exports, __webpack_require__) { |
1581 |
2307 |
1582 var wellKnownSymbol = __webpack_require__(30); |
2308 "use strict"; |
|
2309 |
|
2310 var wellKnownSymbol = __webpack_require__(32); |
1583 |
2311 |
1584 var TO_STRING_TAG = wellKnownSymbol('toStringTag'); |
2312 var TO_STRING_TAG = wellKnownSymbol('toStringTag'); |
1585 var test = {}; |
2313 var test = {}; |
1586 |
2314 |
1587 test[TO_STRING_TAG] = 'z'; |
2315 test[TO_STRING_TAG] = 'z'; |
1588 |
2316 |
1589 module.exports = String(test) === '[object z]'; |
2317 module.exports = String(test) === '[object z]'; |
1590 |
2318 |
1591 |
2319 |
1592 /***/ }), |
2320 /***/ }), |
1593 /* 72 */ |
2321 /* 93 */ |
1594 /***/ (function(module, exports, __webpack_require__) { |
2322 /***/ (function(module, exports, __webpack_require__) { |
1595 |
2323 |
1596 "use strict"; |
2324 "use strict"; |
1597 |
2325 |
1598 var ArrayBufferViewCore = __webpack_require__(73); |
2326 var call = __webpack_require__(7); |
1599 var lengthOfArrayLike = __webpack_require__(57); |
2327 var anObject = __webpack_require__(45); |
1600 var toIntegerOrInfinity = __webpack_require__(56); |
2328 var getMethod = __webpack_require__(28); |
|
2329 |
|
2330 module.exports = function (iterator, kind, value) { |
|
2331 var innerResult, innerError; |
|
2332 anObject(iterator); |
|
2333 try { |
|
2334 innerResult = getMethod(iterator, 'return'); |
|
2335 if (!innerResult) { |
|
2336 if (kind === 'throw') throw value; |
|
2337 return value; |
|
2338 } |
|
2339 innerResult = call(innerResult, iterator); |
|
2340 } catch (error) { |
|
2341 innerError = true; |
|
2342 innerResult = error; |
|
2343 } |
|
2344 if (kind === 'throw') throw value; |
|
2345 if (innerError) throw innerResult; |
|
2346 anObject(innerResult); |
|
2347 return value; |
|
2348 }; |
|
2349 |
|
2350 |
|
2351 /***/ }), |
|
2352 /* 94 */ |
|
2353 /***/ (function(module, exports, __webpack_require__) { |
|
2354 |
|
2355 "use strict"; |
|
2356 |
|
2357 var uncurryThis = __webpack_require__(13); |
|
2358 |
|
2359 // eslint-disable-next-line es/no-map -- safe |
|
2360 var MapPrototype = Map.prototype; |
|
2361 |
|
2362 module.exports = { |
|
2363 // eslint-disable-next-line es/no-map -- safe |
|
2364 Map: Map, |
|
2365 set: uncurryThis(MapPrototype.set), |
|
2366 get: uncurryThis(MapPrototype.get), |
|
2367 has: uncurryThis(MapPrototype.has), |
|
2368 remove: uncurryThis(MapPrototype['delete']), |
|
2369 proto: MapPrototype |
|
2370 }; |
|
2371 |
|
2372 |
|
2373 /***/ }), |
|
2374 /* 95 */ |
|
2375 /***/ (function(module, exports, __webpack_require__) { |
|
2376 |
|
2377 "use strict"; |
|
2378 |
|
2379 var $ = __webpack_require__(2); |
|
2380 var getBuiltIn = __webpack_require__(22); |
|
2381 var uncurryThis = __webpack_require__(13); |
|
2382 var aCallable = __webpack_require__(29); |
|
2383 var requireObjectCoercible = __webpack_require__(15); |
|
2384 var toPropertyKey = __webpack_require__(17); |
|
2385 var iterate = __webpack_require__(84); |
|
2386 |
|
2387 var create = getBuiltIn('Object', 'create'); |
|
2388 var push = uncurryThis([].push); |
|
2389 |
|
2390 // `Object.groupBy` method |
|
2391 // https://github.com/tc39/proposal-array-grouping |
|
2392 $({ target: 'Object', stat: true }, { |
|
2393 groupBy: function groupBy(items, callbackfn) { |
|
2394 requireObjectCoercible(items); |
|
2395 aCallable(callbackfn); |
|
2396 var obj = create(null); |
|
2397 var k = 0; |
|
2398 iterate(items, function (value) { |
|
2399 var key = toPropertyKey(callbackfn(value, k++)); |
|
2400 // in some IE versions, `hasOwnProperty` returns incorrect result on integer keys |
|
2401 // but since it's a `null` prototype object, we can safely use `in` |
|
2402 if (key in obj) push(obj[key], value); |
|
2403 else obj[key] = [value]; |
|
2404 }); |
|
2405 return obj; |
|
2406 } |
|
2407 }); |
|
2408 |
|
2409 |
|
2410 /***/ }), |
|
2411 /* 96 */ |
|
2412 /***/ (function(module, exports, __webpack_require__) { |
|
2413 |
|
2414 "use strict"; |
|
2415 |
|
2416 var $ = __webpack_require__(2); |
|
2417 var newPromiseCapabilityModule = __webpack_require__(97); |
|
2418 |
|
2419 // `Promise.withResolvers` method |
|
2420 // https://github.com/tc39/proposal-promise-with-resolvers |
|
2421 $({ target: 'Promise', stat: true }, { |
|
2422 withResolvers: function withResolvers() { |
|
2423 var promiseCapability = newPromiseCapabilityModule.f(this); |
|
2424 return { |
|
2425 promise: promiseCapability.promise, |
|
2426 resolve: promiseCapability.resolve, |
|
2427 reject: promiseCapability.reject |
|
2428 }; |
|
2429 } |
|
2430 }); |
|
2431 |
|
2432 |
|
2433 /***/ }), |
|
2434 /* 97 */ |
|
2435 /***/ (function(module, exports, __webpack_require__) { |
|
2436 |
|
2437 "use strict"; |
|
2438 |
|
2439 var aCallable = __webpack_require__(29); |
|
2440 |
|
2441 var $TypeError = TypeError; |
|
2442 |
|
2443 var PromiseCapability = function (C) { |
|
2444 var resolve, reject; |
|
2445 this.promise = new C(function ($$resolve, $$reject) { |
|
2446 if (resolve !== undefined || reject !== undefined) throw new $TypeError('Bad Promise constructor'); |
|
2447 resolve = $$resolve; |
|
2448 reject = $$reject; |
|
2449 }); |
|
2450 this.resolve = aCallable(resolve); |
|
2451 this.reject = aCallable(reject); |
|
2452 }; |
|
2453 |
|
2454 // `NewPromiseCapability` abstract operation |
|
2455 // https://tc39.es/ecma262/#sec-newpromisecapability |
|
2456 module.exports.f = function (C) { |
|
2457 return new PromiseCapability(C); |
|
2458 }; |
|
2459 |
|
2460 |
|
2461 /***/ }), |
|
2462 /* 98 */ |
|
2463 /***/ (function(module, exports, __webpack_require__) { |
|
2464 |
|
2465 "use strict"; |
|
2466 |
|
2467 var global = __webpack_require__(3); |
|
2468 var DESCRIPTORS = __webpack_require__(5); |
|
2469 var defineBuiltInAccessor = __webpack_require__(99); |
|
2470 var regExpFlags = __webpack_require__(100); |
|
2471 var fails = __webpack_require__(6); |
|
2472 |
|
2473 // babel-minify and Closure Compiler transpiles RegExp('.', 'd') -> /./d and it causes SyntaxError |
|
2474 var RegExp = global.RegExp; |
|
2475 var RegExpPrototype = RegExp.prototype; |
|
2476 |
|
2477 var FORCED = DESCRIPTORS && fails(function () { |
|
2478 var INDICES_SUPPORT = true; |
|
2479 try { |
|
2480 RegExp('.', 'd'); |
|
2481 } catch (error) { |
|
2482 INDICES_SUPPORT = false; |
|
2483 } |
|
2484 |
|
2485 var O = {}; |
|
2486 // modern V8 bug |
|
2487 var calls = ''; |
|
2488 var expected = INDICES_SUPPORT ? 'dgimsy' : 'gimsy'; |
|
2489 |
|
2490 var addGetter = function (key, chr) { |
|
2491 // eslint-disable-next-line es/no-object-defineproperty -- safe |
|
2492 Object.defineProperty(O, key, { get: function () { |
|
2493 calls += chr; |
|
2494 return true; |
|
2495 } }); |
|
2496 }; |
|
2497 |
|
2498 var pairs = { |
|
2499 dotAll: 's', |
|
2500 global: 'g', |
|
2501 ignoreCase: 'i', |
|
2502 multiline: 'm', |
|
2503 sticky: 'y' |
|
2504 }; |
|
2505 |
|
2506 if (INDICES_SUPPORT) pairs.hasIndices = 'd'; |
|
2507 |
|
2508 for (var key in pairs) addGetter(key, pairs[key]); |
|
2509 |
|
2510 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe |
|
2511 var result = Object.getOwnPropertyDescriptor(RegExpPrototype, 'flags').get.call(O); |
|
2512 |
|
2513 return result !== expected || calls !== expected; |
|
2514 }); |
|
2515 |
|
2516 // `RegExp.prototype.flags` getter |
|
2517 // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags |
|
2518 if (FORCED) defineBuiltInAccessor(RegExpPrototype, 'flags', { |
|
2519 configurable: true, |
|
2520 get: regExpFlags |
|
2521 }); |
|
2522 |
|
2523 |
|
2524 /***/ }), |
|
2525 /* 99 */ |
|
2526 /***/ (function(module, exports, __webpack_require__) { |
|
2527 |
|
2528 "use strict"; |
|
2529 |
|
2530 var makeBuiltIn = __webpack_require__(47); |
|
2531 var defineProperty = __webpack_require__(43); |
|
2532 |
|
2533 module.exports = function (target, name, descriptor) { |
|
2534 if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true }); |
|
2535 if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true }); |
|
2536 return defineProperty.f(target, name, descriptor); |
|
2537 }; |
|
2538 |
|
2539 |
|
2540 /***/ }), |
|
2541 /* 100 */ |
|
2542 /***/ (function(module, exports, __webpack_require__) { |
|
2543 |
|
2544 "use strict"; |
|
2545 |
|
2546 var anObject = __webpack_require__(45); |
|
2547 |
|
2548 // `RegExp.prototype.flags` getter implementation |
|
2549 // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags |
|
2550 module.exports = function () { |
|
2551 var that = anObject(this); |
|
2552 var result = ''; |
|
2553 if (that.hasIndices) result += 'd'; |
|
2554 if (that.global) result += 'g'; |
|
2555 if (that.ignoreCase) result += 'i'; |
|
2556 if (that.multiline) result += 'm'; |
|
2557 if (that.dotAll) result += 's'; |
|
2558 if (that.unicode) result += 'u'; |
|
2559 if (that.unicodeSets) result += 'v'; |
|
2560 if (that.sticky) result += 'y'; |
|
2561 return result; |
|
2562 }; |
|
2563 |
|
2564 |
|
2565 /***/ }), |
|
2566 /* 101 */ |
|
2567 /***/ (function(module, exports, __webpack_require__) { |
|
2568 |
|
2569 "use strict"; |
|
2570 |
|
2571 var $ = __webpack_require__(2); |
|
2572 var uncurryThis = __webpack_require__(13); |
|
2573 var requireObjectCoercible = __webpack_require__(15); |
|
2574 var toString = __webpack_require__(102); |
|
2575 |
|
2576 var charCodeAt = uncurryThis(''.charCodeAt); |
|
2577 |
|
2578 // `String.prototype.isWellFormed` method |
|
2579 // https://github.com/tc39/proposal-is-usv-string |
|
2580 $({ target: 'String', proto: true }, { |
|
2581 isWellFormed: function isWellFormed() { |
|
2582 var S = toString(requireObjectCoercible(this)); |
|
2583 var length = S.length; |
|
2584 for (var i = 0; i < length; i++) { |
|
2585 var charCode = charCodeAt(S, i); |
|
2586 // single UTF-16 code unit |
|
2587 if ((charCode & 0xF800) !== 0xD800) continue; |
|
2588 // unpaired surrogate |
|
2589 if (charCode >= 0xDC00 || ++i >= length || (charCodeAt(S, i) & 0xFC00) !== 0xDC00) return false; |
|
2590 } return true; |
|
2591 } |
|
2592 }); |
|
2593 |
|
2594 |
|
2595 /***/ }), |
|
2596 /* 102 */ |
|
2597 /***/ (function(module, exports, __webpack_require__) { |
|
2598 |
|
2599 "use strict"; |
|
2600 |
|
2601 var classof = __webpack_require__(91); |
|
2602 |
|
2603 var $String = String; |
|
2604 |
|
2605 module.exports = function (argument) { |
|
2606 if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string'); |
|
2607 return $String(argument); |
|
2608 }; |
|
2609 |
|
2610 |
|
2611 /***/ }), |
|
2612 /* 103 */ |
|
2613 /***/ (function(module, exports, __webpack_require__) { |
|
2614 |
|
2615 "use strict"; |
|
2616 |
|
2617 var $ = __webpack_require__(2); |
|
2618 var call = __webpack_require__(7); |
|
2619 var uncurryThis = __webpack_require__(13); |
|
2620 var requireObjectCoercible = __webpack_require__(15); |
|
2621 var toString = __webpack_require__(102); |
|
2622 var fails = __webpack_require__(6); |
|
2623 |
|
2624 var $Array = Array; |
|
2625 var charAt = uncurryThis(''.charAt); |
|
2626 var charCodeAt = uncurryThis(''.charCodeAt); |
|
2627 var join = uncurryThis([].join); |
|
2628 // eslint-disable-next-line es/no-string-prototype-iswellformed-towellformed -- safe |
|
2629 var $toWellFormed = ''.toWellFormed; |
|
2630 var REPLACEMENT_CHARACTER = '\uFFFD'; |
|
2631 |
|
2632 // Safari bug |
|
2633 var TO_STRING_CONVERSION_BUG = $toWellFormed && fails(function () { |
|
2634 return call($toWellFormed, 1) !== '1'; |
|
2635 }); |
|
2636 |
|
2637 // `String.prototype.toWellFormed` method |
|
2638 // https://github.com/tc39/proposal-is-usv-string |
|
2639 $({ target: 'String', proto: true, forced: TO_STRING_CONVERSION_BUG }, { |
|
2640 toWellFormed: function toWellFormed() { |
|
2641 var S = toString(requireObjectCoercible(this)); |
|
2642 if (TO_STRING_CONVERSION_BUG) return call($toWellFormed, S); |
|
2643 var length = S.length; |
|
2644 var result = $Array(length); |
|
2645 for (var i = 0; i < length; i++) { |
|
2646 var charCode = charCodeAt(S, i); |
|
2647 // single UTF-16 code unit |
|
2648 if ((charCode & 0xF800) !== 0xD800) result[i] = charAt(S, i); |
|
2649 // unpaired surrogate |
|
2650 else if (charCode >= 0xDC00 || i + 1 >= length || (charCodeAt(S, i + 1) & 0xFC00) !== 0xDC00) result[i] = REPLACEMENT_CHARACTER; |
|
2651 // surrogate pair |
|
2652 else { |
|
2653 result[i] = charAt(S, i); |
|
2654 result[++i] = charAt(S, i); |
|
2655 } |
|
2656 } return join(result, ''); |
|
2657 } |
|
2658 }); |
|
2659 |
|
2660 |
|
2661 /***/ }), |
|
2662 /* 104 */ |
|
2663 /***/ (function(module, exports, __webpack_require__) { |
|
2664 |
|
2665 "use strict"; |
|
2666 |
|
2667 var arrayToReversed = __webpack_require__(71); |
|
2668 var ArrayBufferViewCore = __webpack_require__(105); |
1601 |
2669 |
1602 var aTypedArray = ArrayBufferViewCore.aTypedArray; |
2670 var aTypedArray = ArrayBufferViewCore.aTypedArray; |
1603 var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; |
2671 var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; |
1604 |
2672 var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor; |
1605 // `%TypedArray%.prototype.at` method |
2673 |
1606 // https://github.com/tc39/proposal-relative-indexing-method |
2674 // `%TypedArray%.prototype.toReversed` method |
1607 exportTypedArrayMethod('at', function at(index) { |
2675 // https://tc39.es/ecma262/#sec-%typedarray%.prototype.toreversed |
1608 var O = aTypedArray(this); |
2676 exportTypedArrayMethod('toReversed', function toReversed() { |
1609 var len = lengthOfArrayLike(O); |
2677 return arrayToReversed(aTypedArray(this), getTypedArrayConstructor(this)); |
1610 var relativeIndex = toIntegerOrInfinity(index); |
|
1611 var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex; |
|
1612 return (k < 0 || k >= len) ? undefined : O[k]; |
|
1613 }); |
2678 }); |
1614 |
2679 |
1615 |
2680 |
1616 /***/ }), |
2681 /***/ }), |
1617 /* 73 */ |
2682 /* 105 */ |
1618 /***/ (function(module, exports, __webpack_require__) { |
2683 /***/ (function(module, exports, __webpack_require__) { |
1619 |
2684 |
1620 "use strict"; |
2685 "use strict"; |
1621 |
2686 |
1622 var NATIVE_ARRAY_BUFFER = __webpack_require__(74); |
2687 var NATIVE_ARRAY_BUFFER = __webpack_require__(106); |
1623 var DESCRIPTORS = __webpack_require__(5); |
2688 var DESCRIPTORS = __webpack_require__(5); |
1624 var global = __webpack_require__(3); |
2689 var global = __webpack_require__(3); |
1625 var isCallable = __webpack_require__(18); |
2690 var isCallable = __webpack_require__(20); |
1626 var isObject = __webpack_require__(17); |
2691 var isObject = __webpack_require__(19); |
1627 var hasOwn = __webpack_require__(35); |
2692 var hasOwn = __webpack_require__(37); |
1628 var classof = __webpack_require__(70); |
2693 var classof = __webpack_require__(91); |
1629 var tryToString = __webpack_require__(28); |
2694 var tryToString = __webpack_require__(30); |
1630 var createNonEnumerableProperty = __webpack_require__(40); |
2695 var createNonEnumerableProperty = __webpack_require__(42); |
1631 var redefine = __webpack_require__(43); |
2696 var defineBuiltIn = __webpack_require__(46); |
1632 var defineProperty = __webpack_require__(41).f; |
2697 var defineBuiltInAccessor = __webpack_require__(99); |
1633 var isPrototypeOf = __webpack_require__(21); |
2698 var isPrototypeOf = __webpack_require__(23); |
1634 var getPrototypeOf = __webpack_require__(75); |
2699 var getPrototypeOf = __webpack_require__(107); |
1635 var setPrototypeOf = __webpack_require__(77); |
2700 var setPrototypeOf = __webpack_require__(109); |
1636 var wellKnownSymbol = __webpack_require__(30); |
2701 var wellKnownSymbol = __webpack_require__(32); |
1637 var uid = __webpack_require__(37); |
2702 var uid = __webpack_require__(39); |
1638 |
2703 var InternalStateModule = __webpack_require__(50); |
|
2704 |
|
2705 var enforceInternalState = InternalStateModule.enforce; |
|
2706 var getInternalState = InternalStateModule.get; |
1639 var Int8Array = global.Int8Array; |
2707 var Int8Array = global.Int8Array; |
1640 var Int8ArrayPrototype = Int8Array && Int8Array.prototype; |
2708 var Int8ArrayPrototype = Int8Array && Int8Array.prototype; |
1641 var Uint8ClampedArray = global.Uint8ClampedArray; |
2709 var Uint8ClampedArray = global.Uint8ClampedArray; |
1642 var Uint8ClampedArrayPrototype = Uint8ClampedArray && Uint8ClampedArray.prototype; |
2710 var Uint8ClampedArrayPrototype = Uint8ClampedArray && Uint8ClampedArray.prototype; |
1643 var TypedArray = Int8Array && getPrototypeOf(Int8Array); |
2711 var TypedArray = Int8Array && getPrototypeOf(Int8Array); |
1876 }; |
2966 }; |
1877 }() : undefined); |
2967 }() : undefined); |
1878 |
2968 |
1879 |
2969 |
1880 /***/ }), |
2970 /***/ }), |
1881 /* 78 */ |
2971 /* 110 */ |
1882 /***/ (function(module, exports, __webpack_require__) { |
2972 /***/ (function(module, exports, __webpack_require__) { |
1883 |
2973 |
1884 var global = __webpack_require__(3); |
2974 "use strict"; |
1885 var isCallable = __webpack_require__(18); |
2975 |
1886 |
2976 var uncurryThis = __webpack_require__(13); |
1887 var String = global.String; |
2977 var aCallable = __webpack_require__(29); |
1888 var TypeError = global.TypeError; |
2978 |
|
2979 module.exports = function (object, key, method) { |
|
2980 try { |
|
2981 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe |
|
2982 return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method])); |
|
2983 } catch (error) { /* empty */ } |
|
2984 }; |
|
2985 |
|
2986 |
|
2987 /***/ }), |
|
2988 /* 111 */ |
|
2989 /***/ (function(module, exports, __webpack_require__) { |
|
2990 |
|
2991 "use strict"; |
|
2992 |
|
2993 var isPossiblePrototype = __webpack_require__(112); |
|
2994 |
|
2995 var $String = String; |
|
2996 var $TypeError = TypeError; |
1889 |
2997 |
1890 module.exports = function (argument) { |
2998 module.exports = function (argument) { |
1891 if (typeof argument == 'object' || isCallable(argument)) return argument; |
2999 if (isPossiblePrototype(argument)) return argument; |
1892 throw TypeError("Can't set " + String(argument) + ' as a prototype'); |
3000 throw new $TypeError("Can't set " + $String(argument) + ' as a prototype'); |
1893 }; |
3001 }; |
1894 |
3002 |
1895 |
3003 |
1896 /***/ }), |
3004 /***/ }), |
1897 /* 79 */ |
3005 /* 112 */ |
1898 /***/ (function(module, exports, __webpack_require__) { |
3006 /***/ (function(module, exports, __webpack_require__) { |
1899 |
3007 |
1900 "use strict"; |
3008 "use strict"; |
1901 |
3009 |
1902 var global = __webpack_require__(3); |
3010 var isObject = __webpack_require__(19); |
1903 var uncurryThis = __webpack_require__(12); |
3011 |
1904 var fails = __webpack_require__(6); |
3012 module.exports = function (argument) { |
1905 var aCallable = __webpack_require__(27); |
3013 return isObject(argument) || argument === null; |
1906 var internalSort = __webpack_require__(80); |
3014 }; |
1907 var ArrayBufferViewCore = __webpack_require__(73); |
3015 |
1908 var FF = __webpack_require__(82); |
3016 |
1909 var IE_OR_EDGE = __webpack_require__(83); |
3017 /***/ }), |
1910 var V8 = __webpack_require__(24); |
3018 /* 113 */ |
1911 var WEBKIT = __webpack_require__(84); |
3019 /***/ (function(module, exports, __webpack_require__) { |
1912 |
3020 |
1913 var Array = global.Array; |
3021 "use strict"; |
|
3022 |
|
3023 var ArrayBufferViewCore = __webpack_require__(105); |
|
3024 var uncurryThis = __webpack_require__(13); |
|
3025 var aCallable = __webpack_require__(29); |
|
3026 var arrayFromConstructorAndList = __webpack_require__(78); |
|
3027 |
1914 var aTypedArray = ArrayBufferViewCore.aTypedArray; |
3028 var aTypedArray = ArrayBufferViewCore.aTypedArray; |
|
3029 var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor; |
1915 var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; |
3030 var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; |
1916 var Uint16Array = global.Uint16Array; |
3031 var sort = uncurryThis(ArrayBufferViewCore.TypedArrayPrototype.sort); |
1917 var un$Sort = Uint16Array && uncurryThis(Uint16Array.prototype.sort); |
3032 |
1918 |
3033 // `%TypedArray%.prototype.toSorted` method |
1919 // WebKit |
3034 // https://tc39.es/ecma262/#sec-%typedarray%.prototype.tosorted |
1920 var ACCEPT_INCORRECT_ARGUMENTS = !!un$Sort && !(fails(function () { |
3035 exportTypedArrayMethod('toSorted', function toSorted(compareFn) { |
1921 un$Sort(new Uint16Array(2), null); |
3036 if (compareFn !== undefined) aCallable(compareFn); |
1922 }) && fails(function () { |
3037 var O = aTypedArray(this); |
1923 un$Sort(new Uint16Array(2), {}); |
3038 var A = arrayFromConstructorAndList(getTypedArrayConstructor(O), O); |
1924 })); |
3039 return sort(A, compareFn); |
1925 |
|
1926 var STABLE_SORT = !!un$Sort && !fails(function () { |
|
1927 // feature detection can be too slow, so check engines versions |
|
1928 if (V8) return V8 < 74; |
|
1929 if (FF) return FF < 67; |
|
1930 if (IE_OR_EDGE) return true; |
|
1931 if (WEBKIT) return WEBKIT < 602; |
|
1932 |
|
1933 var array = new Uint16Array(516); |
|
1934 var expected = Array(516); |
|
1935 var index, mod; |
|
1936 |
|
1937 for (index = 0; index < 516; index++) { |
|
1938 mod = index % 4; |
|
1939 array[index] = 515 - index; |
|
1940 expected[index] = index - 2 * mod + 3; |
|
1941 } |
|
1942 |
|
1943 un$Sort(array, function (a, b) { |
|
1944 return (a / 4 | 0) - (b / 4 | 0); |
|
1945 }); |
|
1946 |
|
1947 for (index = 0; index < 516; index++) { |
|
1948 if (array[index] !== expected[index]) return true; |
|
1949 } |
|
1950 }); |
3040 }); |
1951 |
3041 |
1952 var getSortCompare = function (comparefn) { |
3042 |
1953 return function (x, y) { |
3043 /***/ }), |
1954 if (comparefn !== undefined) return +comparefn(x, y) || 0; |
3044 /* 114 */ |
1955 // eslint-disable-next-line no-self-compare -- NaN check |
3045 /***/ (function(module, exports, __webpack_require__) { |
1956 if (y !== y) return -1; |
3046 |
1957 // eslint-disable-next-line no-self-compare -- NaN check |
3047 "use strict"; |
1958 if (x !== x) return 1; |
3048 |
1959 if (x === 0 && y === 0) return 1 / x > 0 && 1 / y < 0 ? 1 : -1; |
3049 var arrayWith = __webpack_require__(82); |
1960 return x > y; |
3050 var ArrayBufferViewCore = __webpack_require__(105); |
1961 }; |
3051 var isBigIntArray = __webpack_require__(115); |
1962 }; |
3052 var toIntegerOrInfinity = __webpack_require__(60); |
1963 |
3053 var toBigInt = __webpack_require__(116); |
1964 // `%TypedArray%.prototype.sort` method |
3054 |
1965 // https://tc39.es/ecma262/#sec-%typedarray%.prototype.sort |
3055 var aTypedArray = ArrayBufferViewCore.aTypedArray; |
1966 exportTypedArrayMethod('sort', function sort(comparefn) { |
3056 var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor; |
1967 if (comparefn !== undefined) aCallable(comparefn); |
3057 var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; |
1968 if (STABLE_SORT) return un$Sort(this, comparefn); |
3058 |
1969 |
3059 var PROPER_ORDER = !!function () { |
1970 return internalSort(aTypedArray(this), getSortCompare(comparefn)); |
3060 try { |
1971 }, !STABLE_SORT || ACCEPT_INCORRECT_ARGUMENTS); |
3061 // eslint-disable-next-line no-throw-literal, es/no-typed-arrays, es/no-array-prototype-with -- required for testing |
1972 |
3062 new Int8Array(1)['with'](2, { valueOf: function () { throw 8; } }); |
1973 |
3063 } catch (error) { |
1974 /***/ }), |
3064 // some early implementations, like WebKit, does not follow the final semantic |
1975 /* 80 */ |
3065 // https://github.com/tc39/proposal-change-array-by-copy/pull/86 |
1976 /***/ (function(module, exports, __webpack_require__) { |
3066 return error === 8; |
1977 |
3067 } |
1978 var arraySlice = __webpack_require__(81); |
3068 }(); |
1979 |
3069 |
1980 var floor = Math.floor; |
3070 // `%TypedArray%.prototype.with` method |
1981 |
3071 // https://tc39.es/ecma262/#sec-%typedarray%.prototype.with |
1982 var mergeSort = function (array, comparefn) { |
3072 exportTypedArrayMethod('with', { 'with': function (index, value) { |
1983 var length = array.length; |
3073 var O = aTypedArray(this); |
1984 var middle = floor(length / 2); |
3074 var relativeIndex = toIntegerOrInfinity(index); |
1985 return length < 8 ? insertionSort(array, comparefn) : merge( |
3075 var actualValue = isBigIntArray(O) ? toBigInt(value) : +value; |
1986 array, |
3076 return arrayWith(O, getTypedArrayConstructor(O), relativeIndex, actualValue); |
1987 mergeSort(arraySlice(array, 0, middle), comparefn), |
3077 } }['with'], !PROPER_ORDER); |
1988 mergeSort(arraySlice(array, middle), comparefn), |
3078 |
1989 comparefn |
3079 |
1990 ); |
3080 /***/ }), |
1991 }; |
3081 /* 115 */ |
1992 |
3082 /***/ (function(module, exports, __webpack_require__) { |
1993 var insertionSort = function (array, comparefn) { |
3083 |
1994 var length = array.length; |
3084 "use strict"; |
1995 var i = 1; |
3085 |
1996 var element, j; |
3086 var classof = __webpack_require__(91); |
1997 |
3087 |
1998 while (i < length) { |
3088 module.exports = function (it) { |
1999 j = i; |
3089 var klass = classof(it); |
2000 element = array[i]; |
3090 return klass === 'BigInt64Array' || klass === 'BigUint64Array'; |
2001 while (j && comparefn(array[j - 1], element) > 0) { |
3091 }; |
2002 array[j] = array[--j]; |
3092 |
2003 } |
3093 |
2004 if (j !== i++) array[j] = element; |
3094 /***/ }), |
2005 } return array; |
3095 /* 116 */ |
2006 }; |
3096 /***/ (function(module, exports, __webpack_require__) { |
2007 |
3097 |
2008 var merge = function (array, left, right, comparefn) { |
3098 "use strict"; |
2009 var llength = left.length; |
3099 |
2010 var rlength = right.length; |
3100 var toPrimitive = __webpack_require__(18); |
2011 var lindex = 0; |
3101 |
2012 var rindex = 0; |
3102 var $TypeError = TypeError; |
2013 |
3103 |
2014 while (lindex < llength || rindex < rlength) { |
3104 // `ToBigInt` abstract operation |
2015 array[lindex + rindex] = (lindex < llength && rindex < rlength) |
3105 // https://tc39.es/ecma262/#sec-tobigint |
2016 ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++] |
3106 module.exports = function (argument) { |
2017 : lindex < llength ? left[lindex++] : right[rindex++]; |
3107 var prim = toPrimitive(argument, 'number'); |
2018 } return array; |
3108 if (typeof prim == 'number') throw new $TypeError("Can't convert number to bigint"); |
2019 }; |
3109 // eslint-disable-next-line es/no-bigint -- safe |
2020 |
3110 return BigInt(prim); |
2021 module.exports = mergeSort; |
3111 }; |
2022 |
3112 |
2023 |
3113 |
2024 /***/ }), |
3114 /***/ }), |
2025 /* 81 */ |
3115 /* 117 */ |
2026 /***/ (function(module, exports, __webpack_require__) { |
3116 /***/ (function(module, exports, __webpack_require__) { |
2027 |
3117 |
2028 var uncurryThis = __webpack_require__(12); |
3118 "use strict"; |
2029 |
|
2030 module.exports = uncurryThis([].slice); |
|
2031 |
|
2032 |
|
2033 /***/ }), |
|
2034 /* 82 */ |
|
2035 /***/ (function(module, exports, __webpack_require__) { |
|
2036 |
|
2037 var userAgent = __webpack_require__(25); |
|
2038 |
|
2039 var firefox = userAgent.match(/firefox\/(\d+)/i); |
|
2040 |
|
2041 module.exports = !!firefox && +firefox[1]; |
|
2042 |
|
2043 |
|
2044 /***/ }), |
|
2045 /* 83 */ |
|
2046 /***/ (function(module, exports, __webpack_require__) { |
|
2047 |
|
2048 var UA = __webpack_require__(25); |
|
2049 |
|
2050 module.exports = /MSIE|Trident/.test(UA); |
|
2051 |
|
2052 |
|
2053 /***/ }), |
|
2054 /* 84 */ |
|
2055 /***/ (function(module, exports, __webpack_require__) { |
|
2056 |
|
2057 var userAgent = __webpack_require__(25); |
|
2058 |
|
2059 var webkit = userAgent.match(/AppleWebKit\/(\d+)\./); |
|
2060 |
|
2061 module.exports = !!webkit && +webkit[1]; |
|
2062 |
|
2063 |
|
2064 /***/ }), |
|
2065 /* 85 */ |
|
2066 /***/ (function(module, exports, __webpack_require__) { |
|
2067 |
3119 |
2068 var $ = __webpack_require__(2); |
3120 var $ = __webpack_require__(2); |
2069 var global = __webpack_require__(3); |
3121 var global = __webpack_require__(3); |
2070 var task = __webpack_require__(86); |
3122 var getBuiltIn = __webpack_require__(22); |
2071 |
3123 var createPropertyDescriptor = __webpack_require__(10); |
2072 var FORCED = !global.setImmediate || !global.clearImmediate; |
3124 var defineProperty = __webpack_require__(43).f; |
2073 |
3125 var hasOwn = __webpack_require__(37); |
2074 // http://w3c.github.io/setImmediate/ |
3126 var anInstance = __webpack_require__(118); |
2075 $({ global: true, bind: true, enumerable: true, forced: FORCED }, { |
3127 var inheritIfRequired = __webpack_require__(119); |
2076 // `setImmediate` method |
3128 var normalizeStringArgument = __webpack_require__(120); |
2077 // http://w3c.github.io/setImmediate/#si-setImmediate |
3129 var DOMExceptionConstants = __webpack_require__(121); |
2078 setImmediate: task.set, |
3130 var clearErrorStack = __webpack_require__(122); |
2079 // `clearImmediate` method |
3131 var DESCRIPTORS = __webpack_require__(5); |
2080 // http://w3c.github.io/setImmediate/#si-clearImmediate |
3132 var IS_PURE = __webpack_require__(34); |
2081 clearImmediate: task.clear |
3133 |
|
3134 var DOM_EXCEPTION = 'DOMException'; |
|
3135 var Error = getBuiltIn('Error'); |
|
3136 var NativeDOMException = getBuiltIn(DOM_EXCEPTION); |
|
3137 |
|
3138 var $DOMException = function DOMException() { |
|
3139 anInstance(this, DOMExceptionPrototype); |
|
3140 var argumentsLength = arguments.length; |
|
3141 var message = normalizeStringArgument(argumentsLength < 1 ? undefined : arguments[0]); |
|
3142 var name = normalizeStringArgument(argumentsLength < 2 ? undefined : arguments[1], 'Error'); |
|
3143 var that = new NativeDOMException(message, name); |
|
3144 var error = new Error(message); |
|
3145 error.name = DOM_EXCEPTION; |
|
3146 defineProperty(that, 'stack', createPropertyDescriptor(1, clearErrorStack(error.stack, 1))); |
|
3147 inheritIfRequired(that, this, $DOMException); |
|
3148 return that; |
|
3149 }; |
|
3150 |
|
3151 var DOMExceptionPrototype = $DOMException.prototype = NativeDOMException.prototype; |
|
3152 |
|
3153 var ERROR_HAS_STACK = 'stack' in new Error(DOM_EXCEPTION); |
|
3154 var DOM_EXCEPTION_HAS_STACK = 'stack' in new NativeDOMException(1, 2); |
|
3155 |
|
3156 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe |
|
3157 var descriptor = NativeDOMException && DESCRIPTORS && Object.getOwnPropertyDescriptor(global, DOM_EXCEPTION); |
|
3158 |
|
3159 // Bun ~ 0.1.1 DOMException have incorrect descriptor and we can't redefine it |
|
3160 // https://github.com/Jarred-Sumner/bun/issues/399 |
|
3161 var BUGGY_DESCRIPTOR = !!descriptor && !(descriptor.writable && descriptor.configurable); |
|
3162 |
|
3163 var FORCED_CONSTRUCTOR = ERROR_HAS_STACK && !BUGGY_DESCRIPTOR && !DOM_EXCEPTION_HAS_STACK; |
|
3164 |
|
3165 // `DOMException` constructor patch for `.stack` where it's required |
|
3166 // https://webidl.spec.whatwg.org/#es-DOMException-specialness |
|
3167 $({ global: true, constructor: true, forced: IS_PURE || FORCED_CONSTRUCTOR }, { // TODO: fix export logic |
|
3168 DOMException: FORCED_CONSTRUCTOR ? $DOMException : NativeDOMException |
2082 }); |
3169 }); |
2083 |
3170 |
2084 |
3171 var PolyfilledDOMException = getBuiltIn(DOM_EXCEPTION); |
2085 /***/ }), |
3172 var PolyfilledDOMExceptionPrototype = PolyfilledDOMException.prototype; |
2086 /* 86 */ |
3173 |
2087 /***/ (function(module, exports, __webpack_require__) { |
3174 if (PolyfilledDOMExceptionPrototype.constructor !== PolyfilledDOMException) { |
2088 |
3175 if (!IS_PURE) { |
|
3176 defineProperty(PolyfilledDOMExceptionPrototype, 'constructor', createPropertyDescriptor(1, PolyfilledDOMException)); |
|
3177 } |
|
3178 |
|
3179 for (var key in DOMExceptionConstants) if (hasOwn(DOMExceptionConstants, key)) { |
|
3180 var constant = DOMExceptionConstants[key]; |
|
3181 var constantName = constant.s; |
|
3182 if (!hasOwn(PolyfilledDOMException, constantName)) { |
|
3183 defineProperty(PolyfilledDOMException, constantName, createPropertyDescriptor(6, constant.c)); |
|
3184 } |
|
3185 } |
|
3186 } |
|
3187 |
|
3188 |
|
3189 /***/ }), |
|
3190 /* 118 */ |
|
3191 /***/ (function(module, exports, __webpack_require__) { |
|
3192 |
|
3193 "use strict"; |
|
3194 |
|
3195 var isPrototypeOf = __webpack_require__(23); |
|
3196 |
|
3197 var $TypeError = TypeError; |
|
3198 |
|
3199 module.exports = function (it, Prototype) { |
|
3200 if (isPrototypeOf(Prototype, it)) return it; |
|
3201 throw new $TypeError('Incorrect invocation'); |
|
3202 }; |
|
3203 |
|
3204 |
|
3205 /***/ }), |
|
3206 /* 119 */ |
|
3207 /***/ (function(module, exports, __webpack_require__) { |
|
3208 |
|
3209 "use strict"; |
|
3210 |
|
3211 var isCallable = __webpack_require__(20); |
|
3212 var isObject = __webpack_require__(19); |
|
3213 var setPrototypeOf = __webpack_require__(109); |
|
3214 |
|
3215 // makes subclassing work correct for wrapped built-ins |
|
3216 module.exports = function ($this, dummy, Wrapper) { |
|
3217 var NewTarget, NewTargetPrototype; |
|
3218 if ( |
|
3219 // it can work only with native `setPrototypeOf` |
|
3220 setPrototypeOf && |
|
3221 // we haven't completely correct pre-ES6 way for getting `new.target`, so use this |
|
3222 isCallable(NewTarget = dummy.constructor) && |
|
3223 NewTarget !== Wrapper && |
|
3224 isObject(NewTargetPrototype = NewTarget.prototype) && |
|
3225 NewTargetPrototype !== Wrapper.prototype |
|
3226 ) setPrototypeOf($this, NewTargetPrototype); |
|
3227 return $this; |
|
3228 }; |
|
3229 |
|
3230 |
|
3231 /***/ }), |
|
3232 /* 120 */ |
|
3233 /***/ (function(module, exports, __webpack_require__) { |
|
3234 |
|
3235 "use strict"; |
|
3236 |
|
3237 var toString = __webpack_require__(102); |
|
3238 |
|
3239 module.exports = function (argument, $default) { |
|
3240 return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument); |
|
3241 }; |
|
3242 |
|
3243 |
|
3244 /***/ }), |
|
3245 /* 121 */ |
|
3246 /***/ (function(module, exports, __webpack_require__) { |
|
3247 |
|
3248 "use strict"; |
|
3249 |
|
3250 module.exports = { |
|
3251 IndexSizeError: { s: 'INDEX_SIZE_ERR', c: 1, m: 1 }, |
|
3252 DOMStringSizeError: { s: 'DOMSTRING_SIZE_ERR', c: 2, m: 0 }, |
|
3253 HierarchyRequestError: { s: 'HIERARCHY_REQUEST_ERR', c: 3, m: 1 }, |
|
3254 WrongDocumentError: { s: 'WRONG_DOCUMENT_ERR', c: 4, m: 1 }, |
|
3255 InvalidCharacterError: { s: 'INVALID_CHARACTER_ERR', c: 5, m: 1 }, |
|
3256 NoDataAllowedError: { s: 'NO_DATA_ALLOWED_ERR', c: 6, m: 0 }, |
|
3257 NoModificationAllowedError: { s: 'NO_MODIFICATION_ALLOWED_ERR', c: 7, m: 1 }, |
|
3258 NotFoundError: { s: 'NOT_FOUND_ERR', c: 8, m: 1 }, |
|
3259 NotSupportedError: { s: 'NOT_SUPPORTED_ERR', c: 9, m: 1 }, |
|
3260 InUseAttributeError: { s: 'INUSE_ATTRIBUTE_ERR', c: 10, m: 1 }, |
|
3261 InvalidStateError: { s: 'INVALID_STATE_ERR', c: 11, m: 1 }, |
|
3262 SyntaxError: { s: 'SYNTAX_ERR', c: 12, m: 1 }, |
|
3263 InvalidModificationError: { s: 'INVALID_MODIFICATION_ERR', c: 13, m: 1 }, |
|
3264 NamespaceError: { s: 'NAMESPACE_ERR', c: 14, m: 1 }, |
|
3265 InvalidAccessError: { s: 'INVALID_ACCESS_ERR', c: 15, m: 1 }, |
|
3266 ValidationError: { s: 'VALIDATION_ERR', c: 16, m: 0 }, |
|
3267 TypeMismatchError: { s: 'TYPE_MISMATCH_ERR', c: 17, m: 1 }, |
|
3268 SecurityError: { s: 'SECURITY_ERR', c: 18, m: 1 }, |
|
3269 NetworkError: { s: 'NETWORK_ERR', c: 19, m: 1 }, |
|
3270 AbortError: { s: 'ABORT_ERR', c: 20, m: 1 }, |
|
3271 URLMismatchError: { s: 'URL_MISMATCH_ERR', c: 21, m: 1 }, |
|
3272 QuotaExceededError: { s: 'QUOTA_EXCEEDED_ERR', c: 22, m: 1 }, |
|
3273 TimeoutError: { s: 'TIMEOUT_ERR', c: 23, m: 1 }, |
|
3274 InvalidNodeTypeError: { s: 'INVALID_NODE_TYPE_ERR', c: 24, m: 1 }, |
|
3275 DataCloneError: { s: 'DATA_CLONE_ERR', c: 25, m: 1 } |
|
3276 }; |
|
3277 |
|
3278 |
|
3279 /***/ }), |
|
3280 /* 122 */ |
|
3281 /***/ (function(module, exports, __webpack_require__) { |
|
3282 |
|
3283 "use strict"; |
|
3284 |
|
3285 var uncurryThis = __webpack_require__(13); |
|
3286 |
|
3287 var $Error = Error; |
|
3288 var replace = uncurryThis(''.replace); |
|
3289 |
|
3290 var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd'); |
|
3291 // eslint-disable-next-line redos/no-vulnerable -- safe |
|
3292 var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/; |
|
3293 var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST); |
|
3294 |
|
3295 module.exports = function (stack, dropEntries) { |
|
3296 if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) { |
|
3297 while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, ''); |
|
3298 } return stack; |
|
3299 }; |
|
3300 |
|
3301 |
|
3302 /***/ }), |
|
3303 /* 123 */ |
|
3304 /***/ (function(module, exports, __webpack_require__) { |
|
3305 |
|
3306 "use strict"; |
|
3307 |
|
3308 var IS_PURE = __webpack_require__(34); |
|
3309 var $ = __webpack_require__(2); |
2089 var global = __webpack_require__(3); |
3310 var global = __webpack_require__(3); |
2090 var apply = __webpack_require__(87); |
3311 var getBuiltIn = __webpack_require__(22); |
2091 var bind = __webpack_require__(88); |
3312 var uncurryThis = __webpack_require__(13); |
2092 var isCallable = __webpack_require__(18); |
|
2093 var hasOwn = __webpack_require__(35); |
|
2094 var fails = __webpack_require__(6); |
3313 var fails = __webpack_require__(6); |
2095 var html = __webpack_require__(66); |
3314 var uid = __webpack_require__(39); |
2096 var arraySlice = __webpack_require__(81); |
3315 var isCallable = __webpack_require__(20); |
2097 var createElement = __webpack_require__(39); |
3316 var isConstructor = __webpack_require__(124); |
2098 var IS_IOS = __webpack_require__(89); |
3317 var isNullOrUndefined = __webpack_require__(16); |
2099 var IS_NODE = __webpack_require__(90); |
3318 var isObject = __webpack_require__(19); |
2100 |
3319 var isSymbol = __webpack_require__(21); |
2101 var set = global.setImmediate; |
3320 var iterate = __webpack_require__(84); |
2102 var clear = global.clearImmediate; |
3321 var anObject = __webpack_require__(45); |
2103 var process = global.process; |
3322 var classof = __webpack_require__(91); |
2104 var Dispatch = global.Dispatch; |
3323 var hasOwn = __webpack_require__(37); |
2105 var Function = global.Function; |
3324 var createProperty = __webpack_require__(125); |
2106 var MessageChannel = global.MessageChannel; |
3325 var createNonEnumerableProperty = __webpack_require__(42); |
2107 var String = global.String; |
3326 var lengthOfArrayLike = __webpack_require__(62); |
2108 var counter = 0; |
3327 var validateArgumentsLength = __webpack_require__(126); |
2109 var queue = {}; |
3328 var getRegExpFlags = __webpack_require__(127); |
2110 var ONREADYSTATECHANGE = 'onreadystatechange'; |
3329 var MapHelpers = __webpack_require__(94); |
2111 var location, defer, channel, port; |
3330 var SetHelpers = __webpack_require__(128); |
2112 |
3331 var setIterate = __webpack_require__(129); |
2113 try { |
3332 var detachTransferable = __webpack_require__(131); |
2114 // Deno throws a ReferenceError on `location` access without `--location` flag |
3333 var ERROR_STACK_INSTALLABLE = __webpack_require__(137); |
2115 location = global.location; |
3334 var PROPER_STRUCTURED_CLONE_TRANSFER = __webpack_require__(134); |
|
3335 |
|
3336 var Object = global.Object; |
|
3337 var Array = global.Array; |
|
3338 var Date = global.Date; |
|
3339 var Error = global.Error; |
|
3340 var TypeError = global.TypeError; |
|
3341 var PerformanceMark = global.PerformanceMark; |
|
3342 var DOMException = getBuiltIn('DOMException'); |
|
3343 var Map = MapHelpers.Map; |
|
3344 var mapHas = MapHelpers.has; |
|
3345 var mapGet = MapHelpers.get; |
|
3346 var mapSet = MapHelpers.set; |
|
3347 var Set = SetHelpers.Set; |
|
3348 var setAdd = SetHelpers.add; |
|
3349 var setHas = SetHelpers.has; |
|
3350 var objectKeys = getBuiltIn('Object', 'keys'); |
|
3351 var push = uncurryThis([].push); |
|
3352 var thisBooleanValue = uncurryThis(true.valueOf); |
|
3353 var thisNumberValue = uncurryThis(1.0.valueOf); |
|
3354 var thisStringValue = uncurryThis(''.valueOf); |
|
3355 var thisTimeValue = uncurryThis(Date.prototype.getTime); |
|
3356 var PERFORMANCE_MARK = uid('structuredClone'); |
|
3357 var DATA_CLONE_ERROR = 'DataCloneError'; |
|
3358 var TRANSFERRING = 'Transferring'; |
|
3359 |
|
3360 var checkBasicSemantic = function (structuredCloneImplementation) { |
|
3361 return !fails(function () { |
|
3362 var set1 = new global.Set([7]); |
|
3363 var set2 = structuredCloneImplementation(set1); |
|
3364 var number = structuredCloneImplementation(Object(7)); |
|
3365 return set2 === set1 || !set2.has(7) || !isObject(number) || +number !== 7; |
|
3366 }) && structuredCloneImplementation; |
|
3367 }; |
|
3368 |
|
3369 var checkErrorsCloning = function (structuredCloneImplementation, $Error) { |
|
3370 return !fails(function () { |
|
3371 var error = new $Error(); |
|
3372 var test = structuredCloneImplementation({ a: error, b: error }); |
|
3373 return !(test && test.a === test.b && test.a instanceof $Error && test.a.stack === error.stack); |
|
3374 }); |
|
3375 }; |
|
3376 |
|
3377 // https://github.com/whatwg/html/pull/5749 |
|
3378 var checkNewErrorsCloningSemantic = function (structuredCloneImplementation) { |
|
3379 return !fails(function () { |
|
3380 var test = structuredCloneImplementation(new global.AggregateError([1], PERFORMANCE_MARK, { cause: 3 })); |
|
3381 return test.name !== 'AggregateError' || test.errors[0] !== 1 || test.message !== PERFORMANCE_MARK || test.cause !== 3; |
|
3382 }); |
|
3383 }; |
|
3384 |
|
3385 // FF94+, Safari 15.4+, Chrome 98+, NodeJS 17.0+, Deno 1.13+ |
|
3386 // FF<103 and Safari implementations can't clone errors |
|
3387 // https://bugzilla.mozilla.org/show_bug.cgi?id=1556604 |
|
3388 // FF103 can clone errors, but `.stack` of clone is an empty string |
|
3389 // https://bugzilla.mozilla.org/show_bug.cgi?id=1778762 |
|
3390 // FF104+ fixed it on usual errors, but not on DOMExceptions |
|
3391 // https://bugzilla.mozilla.org/show_bug.cgi?id=1777321 |
|
3392 // Chrome <102 returns `null` if cloned object contains multiple references to one error |
|
3393 // https://bugs.chromium.org/p/v8/issues/detail?id=12542 |
|
3394 // NodeJS implementation can't clone DOMExceptions |
|
3395 // https://github.com/nodejs/node/issues/41038 |
|
3396 // only FF103+ supports new (html/5749) error cloning semantic |
|
3397 var nativeStructuredClone = global.structuredClone; |
|
3398 |
|
3399 var FORCED_REPLACEMENT = IS_PURE |
|
3400 || !checkErrorsCloning(nativeStructuredClone, Error) |
|
3401 || !checkErrorsCloning(nativeStructuredClone, DOMException) |
|
3402 || !checkNewErrorsCloningSemantic(nativeStructuredClone); |
|
3403 |
|
3404 // Chrome 82+, Safari 14.1+, Deno 1.11+ |
|
3405 // Chrome 78-81 implementation swaps `.name` and `.message` of cloned `DOMException` |
|
3406 // Chrome returns `null` if cloned object contains multiple references to one error |
|
3407 // Safari 14.1 implementation doesn't clone some `RegExp` flags, so requires a workaround |
|
3408 // Safari implementation can't clone errors |
|
3409 // Deno 1.2-1.10 implementations too naive |
|
3410 // NodeJS 16.0+ does not have `PerformanceMark` constructor |
|
3411 // NodeJS <17.2 structured cloning implementation from `performance.mark` is too naive |
|
3412 // and can't clone, for example, `RegExp` or some boxed primitives |
|
3413 // https://github.com/nodejs/node/issues/40840 |
|
3414 // no one of those implementations supports new (html/5749) error cloning semantic |
|
3415 var structuredCloneFromMark = !nativeStructuredClone && checkBasicSemantic(function (value) { |
|
3416 return new PerformanceMark(PERFORMANCE_MARK, { detail: value }).detail; |
|
3417 }); |
|
3418 |
|
3419 var nativeRestrictedStructuredClone = checkBasicSemantic(nativeStructuredClone) || structuredCloneFromMark; |
|
3420 |
|
3421 var throwUncloneable = function (type) { |
|
3422 throw new DOMException('Uncloneable type: ' + type, DATA_CLONE_ERROR); |
|
3423 }; |
|
3424 |
|
3425 var throwUnpolyfillable = function (type, action) { |
|
3426 throw new DOMException((action || 'Cloning') + ' of ' + type + ' cannot be properly polyfilled in this engine', DATA_CLONE_ERROR); |
|
3427 }; |
|
3428 |
|
3429 var tryNativeRestrictedStructuredClone = function (value, type) { |
|
3430 if (!nativeRestrictedStructuredClone) throwUnpolyfillable(type); |
|
3431 return nativeRestrictedStructuredClone(value); |
|
3432 }; |
|
3433 |
|
3434 var createDataTransfer = function () { |
|
3435 var dataTransfer; |
|
3436 try { |
|
3437 dataTransfer = new global.DataTransfer(); |
|
3438 } catch (error) { |
|
3439 try { |
|
3440 dataTransfer = new global.ClipboardEvent('').clipboardData; |
|
3441 } catch (error2) { /* empty */ } |
|
3442 } |
|
3443 return dataTransfer && dataTransfer.items && dataTransfer.files ? dataTransfer : null; |
|
3444 }; |
|
3445 |
|
3446 var cloneBuffer = function (value, map, $type) { |
|
3447 if (mapHas(map, value)) return mapGet(map, value); |
|
3448 |
|
3449 var type = $type || classof(value); |
|
3450 var clone, length, options, source, target, i; |
|
3451 |
|
3452 if (type === 'SharedArrayBuffer') { |
|
3453 if (nativeRestrictedStructuredClone) clone = nativeRestrictedStructuredClone(value); |
|
3454 // SharedArrayBuffer should use shared memory, we can't polyfill it, so return the original |
|
3455 else clone = value; |
|
3456 } else { |
|
3457 var DataView = global.DataView; |
|
3458 |
|
3459 // `ArrayBuffer#slice` is not available in IE10 |
|
3460 // `ArrayBuffer#slice` and `DataView` are not available in old FF |
|
3461 if (!DataView && !isCallable(value.slice)) throwUnpolyfillable('ArrayBuffer'); |
|
3462 // detached buffers throws in `DataView` and `.slice` |
|
3463 try { |
|
3464 if (isCallable(value.slice) && !value.resizable) { |
|
3465 clone = value.slice(0); |
|
3466 } else { |
|
3467 length = value.byteLength; |
|
3468 options = 'maxByteLength' in value ? { maxByteLength: value.maxByteLength } : undefined; |
|
3469 // eslint-disable-next-line es/no-resizable-and-growable-arraybuffers -- safe |
|
3470 clone = new ArrayBuffer(length, options); |
|
3471 source = new DataView(value); |
|
3472 target = new DataView(clone); |
|
3473 for (i = 0; i < length; i++) { |
|
3474 target.setUint8(i, source.getUint8(i)); |
|
3475 } |
|
3476 } |
|
3477 } catch (error) { |
|
3478 throw new DOMException('ArrayBuffer is detached', DATA_CLONE_ERROR); |
|
3479 } |
|
3480 } |
|
3481 |
|
3482 mapSet(map, value, clone); |
|
3483 |
|
3484 return clone; |
|
3485 }; |
|
3486 |
|
3487 var cloneView = function (value, type, offset, length, map) { |
|
3488 var C = global[type]; |
|
3489 // in some old engines like Safari 9, typeof C is 'object' |
|
3490 // on Uint8ClampedArray or some other constructors |
|
3491 if (!isObject(C)) throwUnpolyfillable(type); |
|
3492 return new C(cloneBuffer(value.buffer, map), offset, length); |
|
3493 }; |
|
3494 |
|
3495 var structuredCloneInternal = function (value, map) { |
|
3496 if (isSymbol(value)) throwUncloneable('Symbol'); |
|
3497 if (!isObject(value)) return value; |
|
3498 // effectively preserves circular references |
|
3499 if (map) { |
|
3500 if (mapHas(map, value)) return mapGet(map, value); |
|
3501 } else map = new Map(); |
|
3502 |
|
3503 var type = classof(value); |
|
3504 var C, name, cloned, dataTransfer, i, length, keys, key; |
|
3505 |
|
3506 switch (type) { |
|
3507 case 'Array': |
|
3508 cloned = Array(lengthOfArrayLike(value)); |
|
3509 break; |
|
3510 case 'Object': |
|
3511 cloned = {}; |
|
3512 break; |
|
3513 case 'Map': |
|
3514 cloned = new Map(); |
|
3515 break; |
|
3516 case 'Set': |
|
3517 cloned = new Set(); |
|
3518 break; |
|
3519 case 'RegExp': |
|
3520 // in this block because of a Safari 14.1 bug |
|
3521 // old FF does not clone regexes passed to the constructor, so get the source and flags directly |
|
3522 cloned = new RegExp(value.source, getRegExpFlags(value)); |
|
3523 break; |
|
3524 case 'Error': |
|
3525 name = value.name; |
|
3526 switch (name) { |
|
3527 case 'AggregateError': |
|
3528 cloned = new (getBuiltIn(name))([]); |
|
3529 break; |
|
3530 case 'EvalError': |
|
3531 case 'RangeError': |
|
3532 case 'ReferenceError': |
|
3533 case 'SuppressedError': |
|
3534 case 'SyntaxError': |
|
3535 case 'TypeError': |
|
3536 case 'URIError': |
|
3537 cloned = new (getBuiltIn(name))(); |
|
3538 break; |
|
3539 case 'CompileError': |
|
3540 case 'LinkError': |
|
3541 case 'RuntimeError': |
|
3542 cloned = new (getBuiltIn('WebAssembly', name))(); |
|
3543 break; |
|
3544 default: |
|
3545 cloned = new Error(); |
|
3546 } |
|
3547 break; |
|
3548 case 'DOMException': |
|
3549 cloned = new DOMException(value.message, value.name); |
|
3550 break; |
|
3551 case 'ArrayBuffer': |
|
3552 case 'SharedArrayBuffer': |
|
3553 cloned = cloneBuffer(value, map, type); |
|
3554 break; |
|
3555 case 'DataView': |
|
3556 case 'Int8Array': |
|
3557 case 'Uint8Array': |
|
3558 case 'Uint8ClampedArray': |
|
3559 case 'Int16Array': |
|
3560 case 'Uint16Array': |
|
3561 case 'Int32Array': |
|
3562 case 'Uint32Array': |
|
3563 case 'Float16Array': |
|
3564 case 'Float32Array': |
|
3565 case 'Float64Array': |
|
3566 case 'BigInt64Array': |
|
3567 case 'BigUint64Array': |
|
3568 length = type === 'DataView' ? value.byteLength : value.length; |
|
3569 cloned = cloneView(value, type, value.byteOffset, length, map); |
|
3570 break; |
|
3571 case 'DOMQuad': |
|
3572 try { |
|
3573 cloned = new DOMQuad( |
|
3574 structuredCloneInternal(value.p1, map), |
|
3575 structuredCloneInternal(value.p2, map), |
|
3576 structuredCloneInternal(value.p3, map), |
|
3577 structuredCloneInternal(value.p4, map) |
|
3578 ); |
|
3579 } catch (error) { |
|
3580 cloned = tryNativeRestrictedStructuredClone(value, type); |
|
3581 } |
|
3582 break; |
|
3583 case 'File': |
|
3584 if (nativeRestrictedStructuredClone) try { |
|
3585 cloned = nativeRestrictedStructuredClone(value); |
|
3586 // NodeJS 20.0.0 bug, https://github.com/nodejs/node/issues/47612 |
|
3587 if (classof(cloned) !== type) cloned = undefined; |
|
3588 } catch (error) { /* empty */ } |
|
3589 if (!cloned) try { |
|
3590 cloned = new File([value], value.name, value); |
|
3591 } catch (error) { /* empty */ } |
|
3592 if (!cloned) throwUnpolyfillable(type); |
|
3593 break; |
|
3594 case 'FileList': |
|
3595 dataTransfer = createDataTransfer(); |
|
3596 if (dataTransfer) { |
|
3597 for (i = 0, length = lengthOfArrayLike(value); i < length; i++) { |
|
3598 dataTransfer.items.add(structuredCloneInternal(value[i], map)); |
|
3599 } |
|
3600 cloned = dataTransfer.files; |
|
3601 } else cloned = tryNativeRestrictedStructuredClone(value, type); |
|
3602 break; |
|
3603 case 'ImageData': |
|
3604 // Safari 9 ImageData is a constructor, but typeof ImageData is 'object' |
|
3605 try { |
|
3606 cloned = new ImageData( |
|
3607 structuredCloneInternal(value.data, map), |
|
3608 value.width, |
|
3609 value.height, |
|
3610 { colorSpace: value.colorSpace } |
|
3611 ); |
|
3612 } catch (error) { |
|
3613 cloned = tryNativeRestrictedStructuredClone(value, type); |
|
3614 } break; |
|
3615 default: |
|
3616 if (nativeRestrictedStructuredClone) { |
|
3617 cloned = nativeRestrictedStructuredClone(value); |
|
3618 } else switch (type) { |
|
3619 case 'BigInt': |
|
3620 // can be a 3rd party polyfill |
|
3621 cloned = Object(value.valueOf()); |
|
3622 break; |
|
3623 case 'Boolean': |
|
3624 cloned = Object(thisBooleanValue(value)); |
|
3625 break; |
|
3626 case 'Number': |
|
3627 cloned = Object(thisNumberValue(value)); |
|
3628 break; |
|
3629 case 'String': |
|
3630 cloned = Object(thisStringValue(value)); |
|
3631 break; |
|
3632 case 'Date': |
|
3633 cloned = new Date(thisTimeValue(value)); |
|
3634 break; |
|
3635 case 'Blob': |
|
3636 try { |
|
3637 cloned = value.slice(0, value.size, value.type); |
|
3638 } catch (error) { |
|
3639 throwUnpolyfillable(type); |
|
3640 } break; |
|
3641 case 'DOMPoint': |
|
3642 case 'DOMPointReadOnly': |
|
3643 C = global[type]; |
|
3644 try { |
|
3645 cloned = C.fromPoint |
|
3646 ? C.fromPoint(value) |
|
3647 : new C(value.x, value.y, value.z, value.w); |
|
3648 } catch (error) { |
|
3649 throwUnpolyfillable(type); |
|
3650 } break; |
|
3651 case 'DOMRect': |
|
3652 case 'DOMRectReadOnly': |
|
3653 C = global[type]; |
|
3654 try { |
|
3655 cloned = C.fromRect |
|
3656 ? C.fromRect(value) |
|
3657 : new C(value.x, value.y, value.width, value.height); |
|
3658 } catch (error) { |
|
3659 throwUnpolyfillable(type); |
|
3660 } break; |
|
3661 case 'DOMMatrix': |
|
3662 case 'DOMMatrixReadOnly': |
|
3663 C = global[type]; |
|
3664 try { |
|
3665 cloned = C.fromMatrix |
|
3666 ? C.fromMatrix(value) |
|
3667 : new C(value); |
|
3668 } catch (error) { |
|
3669 throwUnpolyfillable(type); |
|
3670 } break; |
|
3671 case 'AudioData': |
|
3672 case 'VideoFrame': |
|
3673 if (!isCallable(value.clone)) throwUnpolyfillable(type); |
|
3674 try { |
|
3675 cloned = value.clone(); |
|
3676 } catch (error) { |
|
3677 throwUncloneable(type); |
|
3678 } break; |
|
3679 case 'CropTarget': |
|
3680 case 'CryptoKey': |
|
3681 case 'FileSystemDirectoryHandle': |
|
3682 case 'FileSystemFileHandle': |
|
3683 case 'FileSystemHandle': |
|
3684 case 'GPUCompilationInfo': |
|
3685 case 'GPUCompilationMessage': |
|
3686 case 'ImageBitmap': |
|
3687 case 'RTCCertificate': |
|
3688 case 'WebAssembly.Module': |
|
3689 throwUnpolyfillable(type); |
|
3690 // break omitted |
|
3691 default: |
|
3692 throwUncloneable(type); |
|
3693 } |
|
3694 } |
|
3695 |
|
3696 mapSet(map, value, cloned); |
|
3697 |
|
3698 switch (type) { |
|
3699 case 'Array': |
|
3700 case 'Object': |
|
3701 keys = objectKeys(value); |
|
3702 for (i = 0, length = lengthOfArrayLike(keys); i < length; i++) { |
|
3703 key = keys[i]; |
|
3704 createProperty(cloned, key, structuredCloneInternal(value[key], map)); |
|
3705 } break; |
|
3706 case 'Map': |
|
3707 value.forEach(function (v, k) { |
|
3708 mapSet(cloned, structuredCloneInternal(k, map), structuredCloneInternal(v, map)); |
|
3709 }); |
|
3710 break; |
|
3711 case 'Set': |
|
3712 value.forEach(function (v) { |
|
3713 setAdd(cloned, structuredCloneInternal(v, map)); |
|
3714 }); |
|
3715 break; |
|
3716 case 'Error': |
|
3717 createNonEnumerableProperty(cloned, 'message', structuredCloneInternal(value.message, map)); |
|
3718 if (hasOwn(value, 'cause')) { |
|
3719 createNonEnumerableProperty(cloned, 'cause', structuredCloneInternal(value.cause, map)); |
|
3720 } |
|
3721 if (name === 'AggregateError') { |
|
3722 cloned.errors = structuredCloneInternal(value.errors, map); |
|
3723 } else if (name === 'SuppressedError') { |
|
3724 cloned.error = structuredCloneInternal(value.error, map); |
|
3725 cloned.suppressed = structuredCloneInternal(value.suppressed, map); |
|
3726 } // break omitted |
|
3727 case 'DOMException': |
|
3728 if (ERROR_STACK_INSTALLABLE) { |
|
3729 createNonEnumerableProperty(cloned, 'stack', structuredCloneInternal(value.stack, map)); |
|
3730 } |
|
3731 } |
|
3732 |
|
3733 return cloned; |
|
3734 }; |
|
3735 |
|
3736 var tryToTransfer = function (rawTransfer, map) { |
|
3737 if (!isObject(rawTransfer)) throw new TypeError('Transfer option cannot be converted to a sequence'); |
|
3738 |
|
3739 var transfer = []; |
|
3740 |
|
3741 iterate(rawTransfer, function (value) { |
|
3742 push(transfer, anObject(value)); |
|
3743 }); |
|
3744 |
|
3745 var i = 0; |
|
3746 var length = lengthOfArrayLike(transfer); |
|
3747 var buffers = new Set(); |
|
3748 var value, type, C, transferred, canvas, context; |
|
3749 |
|
3750 while (i < length) { |
|
3751 value = transfer[i++]; |
|
3752 |
|
3753 type = classof(value); |
|
3754 |
|
3755 if (type === 'ArrayBuffer' ? setHas(buffers, value) : mapHas(map, value)) { |
|
3756 throw new DOMException('Duplicate transferable', DATA_CLONE_ERROR); |
|
3757 } |
|
3758 |
|
3759 if (type === 'ArrayBuffer') { |
|
3760 setAdd(buffers, value); |
|
3761 continue; |
|
3762 } |
|
3763 |
|
3764 if (PROPER_STRUCTURED_CLONE_TRANSFER) { |
|
3765 transferred = nativeStructuredClone(value, { transfer: [value] }); |
|
3766 } else switch (type) { |
|
3767 case 'ImageBitmap': |
|
3768 C = global.OffscreenCanvas; |
|
3769 if (!isConstructor(C)) throwUnpolyfillable(type, TRANSFERRING); |
|
3770 try { |
|
3771 canvas = new C(value.width, value.height); |
|
3772 context = canvas.getContext('bitmaprenderer'); |
|
3773 context.transferFromImageBitmap(value); |
|
3774 transferred = canvas.transferToImageBitmap(); |
|
3775 } catch (error) { /* empty */ } |
|
3776 break; |
|
3777 case 'AudioData': |
|
3778 case 'VideoFrame': |
|
3779 if (!isCallable(value.clone) || !isCallable(value.close)) throwUnpolyfillable(type, TRANSFERRING); |
|
3780 try { |
|
3781 transferred = value.clone(); |
|
3782 value.close(); |
|
3783 } catch (error) { /* empty */ } |
|
3784 break; |
|
3785 case 'MediaSourceHandle': |
|
3786 case 'MessagePort': |
|
3787 case 'OffscreenCanvas': |
|
3788 case 'ReadableStream': |
|
3789 case 'TransformStream': |
|
3790 case 'WritableStream': |
|
3791 throwUnpolyfillable(type, TRANSFERRING); |
|
3792 } |
|
3793 |
|
3794 if (transferred === undefined) throw new DOMException('This object cannot be transferred: ' + type, DATA_CLONE_ERROR); |
|
3795 |
|
3796 mapSet(map, value, transferred); |
|
3797 } |
|
3798 |
|
3799 return buffers; |
|
3800 }; |
|
3801 |
|
3802 var detachBuffers = function (buffers) { |
|
3803 setIterate(buffers, function (buffer) { |
|
3804 if (PROPER_STRUCTURED_CLONE_TRANSFER) { |
|
3805 nativeRestrictedStructuredClone(buffer, { transfer: [buffer] }); |
|
3806 } else if (isCallable(buffer.transfer)) { |
|
3807 buffer.transfer(); |
|
3808 } else if (detachTransferable) { |
|
3809 detachTransferable(buffer); |
|
3810 } else { |
|
3811 throwUnpolyfillable('ArrayBuffer', TRANSFERRING); |
|
3812 } |
|
3813 }); |
|
3814 }; |
|
3815 |
|
3816 // `structuredClone` method |
|
3817 // https://html.spec.whatwg.org/multipage/structured-data.html#dom-structuredclone |
|
3818 $({ global: true, enumerable: true, sham: !PROPER_STRUCTURED_CLONE_TRANSFER, forced: FORCED_REPLACEMENT }, { |
|
3819 structuredClone: function structuredClone(value /* , { transfer } */) { |
|
3820 var options = validateArgumentsLength(arguments.length, 1) > 1 && !isNullOrUndefined(arguments[1]) ? anObject(arguments[1]) : undefined; |
|
3821 var transfer = options ? options.transfer : undefined; |
|
3822 var map, buffers; |
|
3823 |
|
3824 if (transfer !== undefined) { |
|
3825 map = new Map(); |
|
3826 buffers = tryToTransfer(transfer, map); |
|
3827 } |
|
3828 |
|
3829 var clone = structuredCloneInternal(value, map); |
|
3830 |
|
3831 // since of an issue with cloning views of transferred buffers, we a forced to detach them later |
|
3832 // https://github.com/zloirock/core-js/issues/1265 |
|
3833 if (buffers) detachBuffers(buffers); |
|
3834 |
|
3835 return clone; |
|
3836 } |
|
3837 }); |
|
3838 |
|
3839 |
|
3840 /***/ }), |
|
3841 /* 124 */ |
|
3842 /***/ (function(module, exports, __webpack_require__) { |
|
3843 |
|
3844 "use strict"; |
|
3845 |
|
3846 var uncurryThis = __webpack_require__(13); |
|
3847 var fails = __webpack_require__(6); |
|
3848 var isCallable = __webpack_require__(20); |
|
3849 var classof = __webpack_require__(91); |
|
3850 var getBuiltIn = __webpack_require__(22); |
|
3851 var inspectSource = __webpack_require__(49); |
|
3852 |
|
3853 var noop = function () { /* empty */ }; |
|
3854 var construct = getBuiltIn('Reflect', 'construct'); |
|
3855 var constructorRegExp = /^\s*(?:class|function)\b/; |
|
3856 var exec = uncurryThis(constructorRegExp.exec); |
|
3857 var INCORRECT_TO_STRING = !constructorRegExp.test(noop); |
|
3858 |
|
3859 var isConstructorModern = function isConstructor(argument) { |
|
3860 if (!isCallable(argument)) return false; |
|
3861 try { |
|
3862 construct(noop, [], argument); |
|
3863 return true; |
|
3864 } catch (error) { |
|
3865 return false; |
|
3866 } |
|
3867 }; |
|
3868 |
|
3869 var isConstructorLegacy = function isConstructor(argument) { |
|
3870 if (!isCallable(argument)) return false; |
|
3871 switch (classof(argument)) { |
|
3872 case 'AsyncFunction': |
|
3873 case 'GeneratorFunction': |
|
3874 case 'AsyncGeneratorFunction': return false; |
|
3875 } |
|
3876 try { |
|
3877 // we can't check .prototype since constructors produced by .bind haven't it |
|
3878 // `Function#toString` throws on some built-it function in some legacy engines |
|
3879 // (for example, `DOMQuad` and similar in FF41-) |
|
3880 return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument)); |
|
3881 } catch (error) { |
|
3882 return true; |
|
3883 } |
|
3884 }; |
|
3885 |
|
3886 isConstructorLegacy.sham = true; |
|
3887 |
|
3888 // `IsConstructor` abstract operation |
|
3889 // https://tc39.es/ecma262/#sec-isconstructor |
|
3890 module.exports = !construct || fails(function () { |
|
3891 var called; |
|
3892 return isConstructorModern(isConstructorModern.call) |
|
3893 || !isConstructorModern(Object) |
|
3894 || !isConstructorModern(function () { called = true; }) |
|
3895 || called; |
|
3896 }) ? isConstructorLegacy : isConstructorModern; |
|
3897 |
|
3898 |
|
3899 /***/ }), |
|
3900 /* 125 */ |
|
3901 /***/ (function(module, exports, __webpack_require__) { |
|
3902 |
|
3903 "use strict"; |
|
3904 |
|
3905 var toPropertyKey = __webpack_require__(17); |
|
3906 var definePropertyModule = __webpack_require__(43); |
|
3907 var createPropertyDescriptor = __webpack_require__(10); |
|
3908 |
|
3909 module.exports = function (object, key, value) { |
|
3910 var propertyKey = toPropertyKey(key); |
|
3911 if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value)); |
|
3912 else object[propertyKey] = value; |
|
3913 }; |
|
3914 |
|
3915 |
|
3916 /***/ }), |
|
3917 /* 126 */ |
|
3918 /***/ (function(module, exports, __webpack_require__) { |
|
3919 |
|
3920 "use strict"; |
|
3921 |
|
3922 var $TypeError = TypeError; |
|
3923 |
|
3924 module.exports = function (passed, required) { |
|
3925 if (passed < required) throw new $TypeError('Not enough arguments'); |
|
3926 return passed; |
|
3927 }; |
|
3928 |
|
3929 |
|
3930 /***/ }), |
|
3931 /* 127 */ |
|
3932 /***/ (function(module, exports, __webpack_require__) { |
|
3933 |
|
3934 "use strict"; |
|
3935 |
|
3936 var call = __webpack_require__(7); |
|
3937 var hasOwn = __webpack_require__(37); |
|
3938 var isPrototypeOf = __webpack_require__(23); |
|
3939 var regExpFlags = __webpack_require__(100); |
|
3940 |
|
3941 var RegExpPrototype = RegExp.prototype; |
|
3942 |
|
3943 module.exports = function (R) { |
|
3944 var flags = R.flags; |
|
3945 return flags === undefined && !('flags' in RegExpPrototype) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype, R) |
|
3946 ? call(regExpFlags, R) : flags; |
|
3947 }; |
|
3948 |
|
3949 |
|
3950 /***/ }), |
|
3951 /* 128 */ |
|
3952 /***/ (function(module, exports, __webpack_require__) { |
|
3953 |
|
3954 "use strict"; |
|
3955 |
|
3956 var uncurryThis = __webpack_require__(13); |
|
3957 |
|
3958 // eslint-disable-next-line es/no-set -- safe |
|
3959 var SetPrototype = Set.prototype; |
|
3960 |
|
3961 module.exports = { |
|
3962 // eslint-disable-next-line es/no-set -- safe |
|
3963 Set: Set, |
|
3964 add: uncurryThis(SetPrototype.add), |
|
3965 has: uncurryThis(SetPrototype.has), |
|
3966 remove: uncurryThis(SetPrototype['delete']), |
|
3967 proto: SetPrototype |
|
3968 }; |
|
3969 |
|
3970 |
|
3971 /***/ }), |
|
3972 /* 129 */ |
|
3973 /***/ (function(module, exports, __webpack_require__) { |
|
3974 |
|
3975 "use strict"; |
|
3976 |
|
3977 var uncurryThis = __webpack_require__(13); |
|
3978 var iterateSimple = __webpack_require__(130); |
|
3979 var SetHelpers = __webpack_require__(128); |
|
3980 |
|
3981 var Set = SetHelpers.Set; |
|
3982 var SetPrototype = SetHelpers.proto; |
|
3983 var forEach = uncurryThis(SetPrototype.forEach); |
|
3984 var keys = uncurryThis(SetPrototype.keys); |
|
3985 var next = keys(new Set()).next; |
|
3986 |
|
3987 module.exports = function (set, fn, interruptible) { |
|
3988 return interruptible ? iterateSimple({ iterator: keys(set), next: next }, fn) : forEach(set, fn); |
|
3989 }; |
|
3990 |
|
3991 |
|
3992 /***/ }), |
|
3993 /* 130 */ |
|
3994 /***/ (function(module, exports, __webpack_require__) { |
|
3995 |
|
3996 "use strict"; |
|
3997 |
|
3998 var call = __webpack_require__(7); |
|
3999 |
|
4000 module.exports = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) { |
|
4001 var iterator = ITERATOR_INSTEAD_OF_RECORD ? record : record.iterator; |
|
4002 var next = record.next; |
|
4003 var step, result; |
|
4004 while (!(step = call(next, iterator)).done) { |
|
4005 result = fn(step.value); |
|
4006 if (result !== undefined) return result; |
|
4007 } |
|
4008 }; |
|
4009 |
|
4010 |
|
4011 /***/ }), |
|
4012 /* 131 */ |
|
4013 /***/ (function(module, exports, __webpack_require__) { |
|
4014 |
|
4015 "use strict"; |
|
4016 |
|
4017 var global = __webpack_require__(3); |
|
4018 var tryNodeRequire = __webpack_require__(132); |
|
4019 var PROPER_STRUCTURED_CLONE_TRANSFER = __webpack_require__(134); |
|
4020 |
|
4021 var structuredClone = global.structuredClone; |
|
4022 var $ArrayBuffer = global.ArrayBuffer; |
|
4023 var $MessageChannel = global.MessageChannel; |
|
4024 var detach = false; |
|
4025 var WorkerThreads, channel, buffer, $detach; |
|
4026 |
|
4027 if (PROPER_STRUCTURED_CLONE_TRANSFER) { |
|
4028 detach = function (transferable) { |
|
4029 structuredClone(transferable, { transfer: [transferable] }); |
|
4030 }; |
|
4031 } else if ($ArrayBuffer) try { |
|
4032 if (!$MessageChannel) { |
|
4033 WorkerThreads = tryNodeRequire('worker_threads'); |
|
4034 if (WorkerThreads) $MessageChannel = WorkerThreads.MessageChannel; |
|
4035 } |
|
4036 |
|
4037 if ($MessageChannel) { |
|
4038 channel = new $MessageChannel(); |
|
4039 buffer = new $ArrayBuffer(2); |
|
4040 |
|
4041 $detach = function (transferable) { |
|
4042 channel.port1.postMessage(null, [transferable]); |
|
4043 }; |
|
4044 |
|
4045 if (buffer.byteLength === 2) { |
|
4046 $detach(buffer); |
|
4047 if (buffer.byteLength === 0) detach = $detach; |
|
4048 } |
|
4049 } |
2116 } catch (error) { /* empty */ } |
4050 } catch (error) { /* empty */ } |
2117 |
4051 |
2118 var run = function (id) { |
4052 module.exports = detach; |
2119 if (hasOwn(queue, id)) { |
4053 |
2120 var fn = queue[id]; |
4054 |
2121 delete queue[id]; |
4055 /***/ }), |
2122 fn(); |
4056 /* 132 */ |
2123 } |
4057 /***/ (function(module, exports, __webpack_require__) { |
2124 }; |
4058 |
2125 |
4059 "use strict"; |
2126 var runner = function (id) { |
4060 |
2127 return function () { |
4061 var IS_NODE = __webpack_require__(133); |
2128 run(id); |
4062 |
2129 }; |
4063 module.exports = function (name) { |
2130 }; |
4064 try { |
2131 |
4065 // eslint-disable-next-line no-new-func -- safe |
2132 var listener = function (event) { |
4066 if (IS_NODE) return Function('return require("' + name + '")')(); |
2133 run(event.data); |
4067 } catch (error) { /* empty */ } |
2134 }; |
4068 }; |
2135 |
4069 |
2136 var post = function (id) { |
4070 |
2137 // old engines have not location.origin |
4071 /***/ }), |
2138 global.postMessage(String(id), location.protocol + '//' + location.host); |
4072 /* 133 */ |
2139 }; |
4073 /***/ (function(module, exports, __webpack_require__) { |
2140 |
4074 |
2141 // Node.js 0.9+ & IE10+ has setImmediate, otherwise: |
4075 "use strict"; |
2142 if (!set || !clear) { |
4076 |
2143 set = function setImmediate(fn) { |
4077 var global = __webpack_require__(3); |
2144 var args = arraySlice(arguments, 1); |
4078 var classof = __webpack_require__(14); |
2145 queue[++counter] = function () { |
4079 |
2146 apply(isCallable(fn) ? fn : Function(fn), undefined, args); |
4080 module.exports = classof(global.process) === 'process'; |
2147 }; |
4081 |
2148 defer(counter); |
4082 |
2149 return counter; |
4083 /***/ }), |
2150 }; |
4084 /* 134 */ |
2151 clear = function clearImmediate(id) { |
4085 /***/ (function(module, exports, __webpack_require__) { |
2152 delete queue[id]; |
4086 |
2153 }; |
4087 "use strict"; |
2154 // Node.js 0.8- |
4088 |
2155 if (IS_NODE) { |
4089 var global = __webpack_require__(3); |
2156 defer = function (id) { |
4090 var fails = __webpack_require__(6); |
2157 process.nextTick(runner(id)); |
4091 var V8 = __webpack_require__(26); |
2158 }; |
4092 var IS_BROWSER = __webpack_require__(135); |
2159 // Sphere (JS game engine) Dispatch API |
4093 var IS_DENO = __webpack_require__(136); |
2160 } else if (Dispatch && Dispatch.now) { |
4094 var IS_NODE = __webpack_require__(133); |
2161 defer = function (id) { |
4095 |
2162 Dispatch.now(runner(id)); |
4096 var structuredClone = global.structuredClone; |
2163 }; |
4097 |
2164 // Browsers with MessageChannel, includes WebWorkers |
4098 module.exports = !!structuredClone && !fails(function () { |
2165 // except iOS - https://github.com/zloirock/core-js/issues/624 |
4099 // prevent V8 ArrayBufferDetaching protector cell invalidation and performance degradation |
2166 } else if (MessageChannel && !IS_IOS) { |
4100 // https://github.com/zloirock/core-js/issues/679 |
2167 channel = new MessageChannel(); |
4101 if ((IS_DENO && V8 > 92) || (IS_NODE && V8 > 94) || (IS_BROWSER && V8 > 97)) return false; |
2168 port = channel.port2; |
4102 var buffer = new ArrayBuffer(8); |
2169 channel.port1.onmessage = listener; |
4103 var clone = structuredClone(buffer, { transfer: [buffer] }); |
2170 defer = bind(port.postMessage, port); |
4104 return buffer.byteLength !== 0 || clone.byteLength !== 8; |
2171 // Browsers with postMessage, skip WebWorkers |
4105 }); |
2172 // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' |
4106 |
2173 } else if ( |
4107 |
2174 global.addEventListener && |
4108 /***/ }), |
2175 isCallable(global.postMessage) && |
4109 /* 135 */ |
2176 !global.importScripts && |
4110 /***/ (function(module, exports, __webpack_require__) { |
2177 location && location.protocol !== 'file:' && |
4111 |
2178 !fails(post) |
4112 "use strict"; |
2179 ) { |
4113 |
2180 defer = post; |
4114 var IS_DENO = __webpack_require__(136); |
2181 global.addEventListener('message', listener, false); |
4115 var IS_NODE = __webpack_require__(133); |
2182 // IE8- |
4116 |
2183 } else if (ONREADYSTATECHANGE in createElement('script')) { |
4117 module.exports = !IS_DENO && !IS_NODE |
2184 defer = function (id) { |
4118 && typeof window == 'object' |
2185 html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () { |
4119 && typeof document == 'object'; |
2186 html.removeChild(this); |
4120 |
2187 run(id); |
4121 |
2188 }; |
4122 /***/ }), |
2189 }; |
4123 /* 136 */ |
2190 // Rest old browsers |
4124 /***/ (function(module, exports, __webpack_require__) { |
2191 } else { |
4125 |
2192 defer = function (id) { |
4126 "use strict"; |
2193 setTimeout(runner(id), 0); |
4127 |
2194 }; |
4128 /* global Deno -- Deno case */ |
2195 } |
4129 module.exports = typeof Deno == 'object' && Deno && typeof Deno.version == 'object'; |
|
4130 |
|
4131 |
|
4132 /***/ }), |
|
4133 /* 137 */ |
|
4134 /***/ (function(module, exports, __webpack_require__) { |
|
4135 |
|
4136 "use strict"; |
|
4137 |
|
4138 var fails = __webpack_require__(6); |
|
4139 var createPropertyDescriptor = __webpack_require__(10); |
|
4140 |
|
4141 module.exports = !fails(function () { |
|
4142 var error = new Error('a'); |
|
4143 if (!('stack' in error)) return true; |
|
4144 // eslint-disable-next-line es/no-object-defineproperty -- safe |
|
4145 Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7)); |
|
4146 return error.stack !== 7; |
|
4147 }); |
|
4148 |
|
4149 |
|
4150 /***/ }), |
|
4151 /* 138 */ |
|
4152 /***/ (function(module, exports, __webpack_require__) { |
|
4153 |
|
4154 "use strict"; |
|
4155 |
|
4156 var $ = __webpack_require__(2); |
|
4157 var getBuiltIn = __webpack_require__(22); |
|
4158 var fails = __webpack_require__(6); |
|
4159 var validateArgumentsLength = __webpack_require__(126); |
|
4160 var toString = __webpack_require__(102); |
|
4161 var USE_NATIVE_URL = __webpack_require__(139); |
|
4162 |
|
4163 var URL = getBuiltIn('URL'); |
|
4164 |
|
4165 // https://github.com/nodejs/node/issues/47505 |
|
4166 // https://github.com/denoland/deno/issues/18893 |
|
4167 var THROWS_WITHOUT_ARGUMENTS = USE_NATIVE_URL && fails(function () { |
|
4168 URL.canParse(); |
|
4169 }); |
|
4170 |
|
4171 // `URL.canParse` method |
|
4172 // https://url.spec.whatwg.org/#dom-url-canparse |
|
4173 $({ target: 'URL', stat: true, forced: !THROWS_WITHOUT_ARGUMENTS }, { |
|
4174 canParse: function canParse(url) { |
|
4175 var length = validateArgumentsLength(arguments.length, 1); |
|
4176 var urlString = toString(url); |
|
4177 var base = length < 2 || arguments[1] === undefined ? undefined : toString(arguments[1]); |
|
4178 try { |
|
4179 return !!new URL(urlString, base); |
|
4180 } catch (error) { |
|
4181 return false; |
|
4182 } |
|
4183 } |
|
4184 }); |
|
4185 |
|
4186 |
|
4187 /***/ }), |
|
4188 /* 139 */ |
|
4189 /***/ (function(module, exports, __webpack_require__) { |
|
4190 |
|
4191 "use strict"; |
|
4192 |
|
4193 var fails = __webpack_require__(6); |
|
4194 var wellKnownSymbol = __webpack_require__(32); |
|
4195 var DESCRIPTORS = __webpack_require__(5); |
|
4196 var IS_PURE = __webpack_require__(34); |
|
4197 |
|
4198 var ITERATOR = wellKnownSymbol('iterator'); |
|
4199 |
|
4200 module.exports = !fails(function () { |
|
4201 // eslint-disable-next-line unicorn/relative-url-style -- required for testing |
|
4202 var url = new URL('b?a=1&b=2&c=3', 'http://a'); |
|
4203 var params = url.searchParams; |
|
4204 var params2 = new URLSearchParams('a=1&a=2&b=3'); |
|
4205 var result = ''; |
|
4206 url.pathname = 'c%20d'; |
|
4207 params.forEach(function (value, key) { |
|
4208 params['delete']('b'); |
|
4209 result += key + value; |
|
4210 }); |
|
4211 params2['delete']('a', 2); |
|
4212 // `undefined` case is a Chromium 117 bug |
|
4213 // https://bugs.chromium.org/p/v8/issues/detail?id=14222 |
|
4214 params2['delete']('b', undefined); |
|
4215 return (IS_PURE && (!url.toJSON || !params2.has('a', 1) || params2.has('a', 2) || !params2.has('a', undefined) || params2.has('b'))) |
|
4216 || (!params.size && (IS_PURE || !DESCRIPTORS)) |
|
4217 || !params.sort |
|
4218 || url.href !== 'http://a/c%20d?a=1&c=3' |
|
4219 || params.get('c') !== '3' |
|
4220 || String(new URLSearchParams('?a=1')) !== 'a=1' |
|
4221 || !params[ITERATOR] |
|
4222 // throws in Edge |
|
4223 || new URL('https://a@b').username !== 'a' |
|
4224 || new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b' |
|
4225 // not punycoded in Edge |
|
4226 || new URL('http://тест').host !== 'xn--e1aybc' |
|
4227 // not escaped in Chrome 62- |
|
4228 || new URL('http://a#б').hash !== '#%D0%B1' |
|
4229 // fails in Chrome 66- |
|
4230 || result !== 'a1c3' |
|
4231 // throws in Safari |
|
4232 || new URL('http://x', undefined).host !== 'x'; |
|
4233 }); |
|
4234 |
|
4235 |
|
4236 /***/ }), |
|
4237 /* 140 */ |
|
4238 /***/ (function(module, exports, __webpack_require__) { |
|
4239 |
|
4240 "use strict"; |
|
4241 |
|
4242 var defineBuiltIn = __webpack_require__(46); |
|
4243 var uncurryThis = __webpack_require__(13); |
|
4244 var toString = __webpack_require__(102); |
|
4245 var validateArgumentsLength = __webpack_require__(126); |
|
4246 |
|
4247 var $URLSearchParams = URLSearchParams; |
|
4248 var URLSearchParamsPrototype = $URLSearchParams.prototype; |
|
4249 var append = uncurryThis(URLSearchParamsPrototype.append); |
|
4250 var $delete = uncurryThis(URLSearchParamsPrototype['delete']); |
|
4251 var forEach = uncurryThis(URLSearchParamsPrototype.forEach); |
|
4252 var push = uncurryThis([].push); |
|
4253 var params = new $URLSearchParams('a=1&a=2&b=3'); |
|
4254 |
|
4255 params['delete']('a', 1); |
|
4256 // `undefined` case is a Chromium 117 bug |
|
4257 // https://bugs.chromium.org/p/v8/issues/detail?id=14222 |
|
4258 params['delete']('b', undefined); |
|
4259 |
|
4260 if (params + '' !== 'a=2') { |
|
4261 defineBuiltIn(URLSearchParamsPrototype, 'delete', function (name /* , value */) { |
|
4262 var length = arguments.length; |
|
4263 var $value = length < 2 ? undefined : arguments[1]; |
|
4264 if (length && $value === undefined) return $delete(this, name); |
|
4265 var entries = []; |
|
4266 forEach(this, function (v, k) { // also validates `this` |
|
4267 push(entries, { key: k, value: v }); |
|
4268 }); |
|
4269 validateArgumentsLength(length, 1); |
|
4270 var key = toString(name); |
|
4271 var value = toString($value); |
|
4272 var index = 0; |
|
4273 var dindex = 0; |
|
4274 var found = false; |
|
4275 var entriesLength = entries.length; |
|
4276 var entry; |
|
4277 while (index < entriesLength) { |
|
4278 entry = entries[index++]; |
|
4279 if (found || entry.key === key) { |
|
4280 found = true; |
|
4281 $delete(this, entry.key); |
|
4282 } else dindex++; |
|
4283 } |
|
4284 while (dindex < entriesLength) { |
|
4285 entry = entries[dindex++]; |
|
4286 if (!(entry.key === key && entry.value === value)) append(this, entry.key, entry.value); |
|
4287 } |
|
4288 }, { enumerable: true, unsafe: true }); |
2196 } |
4289 } |
2197 |
4290 |
2198 module.exports = { |
4291 |
2199 set: set, |
4292 /***/ }), |
2200 clear: clear |
4293 /* 141 */ |
2201 }; |
4294 /***/ (function(module, exports, __webpack_require__) { |
2202 |
4295 |
2203 |
4296 "use strict"; |
2204 /***/ }), |
4297 |
2205 /* 87 */ |
4298 var defineBuiltIn = __webpack_require__(46); |
2206 /***/ (function(module, exports) { |
4299 var uncurryThis = __webpack_require__(13); |
2207 |
4300 var toString = __webpack_require__(102); |
2208 var FunctionPrototype = Function.prototype; |
4301 var validateArgumentsLength = __webpack_require__(126); |
2209 var apply = FunctionPrototype.apply; |
4302 |
2210 var bind = FunctionPrototype.bind; |
4303 var $URLSearchParams = URLSearchParams; |
2211 var call = FunctionPrototype.call; |
4304 var URLSearchParamsPrototype = $URLSearchParams.prototype; |
2212 |
4305 var getAll = uncurryThis(URLSearchParamsPrototype.getAll); |
2213 // eslint-disable-next-line es/no-reflect -- safe |
4306 var $has = uncurryThis(URLSearchParamsPrototype.has); |
2214 module.exports = typeof Reflect == 'object' && Reflect.apply || (bind ? call.bind(apply) : function () { |
4307 var params = new $URLSearchParams('a=1'); |
2215 return call.apply(apply, arguments); |
4308 |
2216 }); |
4309 // `undefined` case is a Chromium 117 bug |
2217 |
4310 // https://bugs.chromium.org/p/v8/issues/detail?id=14222 |
2218 |
4311 if (params.has('a', 2) || !params.has('a', undefined)) { |
2219 /***/ }), |
4312 defineBuiltIn(URLSearchParamsPrototype, 'has', function has(name /* , value */) { |
2220 /* 88 */ |
4313 var length = arguments.length; |
2221 /***/ (function(module, exports, __webpack_require__) { |
4314 var $value = length < 2 ? undefined : arguments[1]; |
2222 |
4315 if (length && $value === undefined) return $has(this, name); |
2223 var uncurryThis = __webpack_require__(12); |
4316 var values = getAll(this, name); // also validates `this` |
2224 var aCallable = __webpack_require__(27); |
4317 validateArgumentsLength(length, 1); |
2225 |
4318 var value = toString($value); |
2226 var bind = uncurryThis(uncurryThis.bind); |
4319 var index = 0; |
2227 |
4320 while (index < values.length) { |
2228 // optional / simple context binding |
4321 if (values[index++] === value) return true; |
2229 module.exports = function (fn, that) { |
4322 } return false; |
2230 aCallable(fn); |
4323 }, { enumerable: true, unsafe: true }); |
2231 return that === undefined ? fn : bind ? bind(fn, that) : function (/* ...args */) { |
4324 } |
2232 return fn.apply(that, arguments); |
4325 |
2233 }; |
4326 |
2234 }; |
4327 /***/ }), |
2235 |
4328 /* 142 */ |
2236 |
4329 /***/ (function(module, exports, __webpack_require__) { |
2237 /***/ }), |
4330 |
2238 /* 89 */ |
4331 "use strict"; |
2239 /***/ (function(module, exports, __webpack_require__) { |
4332 |
2240 |
4333 var DESCRIPTORS = __webpack_require__(5); |
2241 var userAgent = __webpack_require__(25); |
4334 var uncurryThis = __webpack_require__(13); |
2242 |
4335 var defineBuiltInAccessor = __webpack_require__(99); |
2243 module.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent); |
4336 |
2244 |
4337 var URLSearchParamsPrototype = URLSearchParams.prototype; |
2245 |
4338 var forEach = uncurryThis(URLSearchParamsPrototype.forEach); |
2246 /***/ }), |
4339 |
2247 /* 90 */ |
4340 // `URLSearchParams.prototype.size` getter |
2248 /***/ (function(module, exports, __webpack_require__) { |
4341 // https://github.com/whatwg/url/pull/734 |
2249 |
4342 if (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) { |
2250 var classof = __webpack_require__(13); |
4343 defineBuiltInAccessor(URLSearchParamsPrototype, 'size', { |
2251 var global = __webpack_require__(3); |
4344 get: function size() { |
2252 |
4345 var count = 0; |
2253 module.exports = classof(global.process) == 'process'; |
4346 forEach(this, function () { count++; }); |
|
4347 return count; |
|
4348 }, |
|
4349 configurable: true, |
|
4350 enumerable: true |
|
4351 }); |
|
4352 } |
2254 |
4353 |
2255 |
4354 |
2256 /***/ }) |
4355 /***/ }) |
2257 /******/ ]); }(); |
4356 /******/ ]); }(); |