5757 lines
176 KiB
JavaScript
5757 lines
176 KiB
JavaScript
(function webpackUniversalModuleDefinition(root, factory) {
|
||
if(typeof exports === 'object' && typeof module === 'object')
|
||
module.exports = factory();
|
||
else if(typeof define === 'function' && define.amd)
|
||
define([], factory);
|
||
else {
|
||
var a = factory();
|
||
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
||
}
|
||
})(self, function() {
|
||
return /******/ (function() { // webpackBootstrap
|
||
/******/ var __webpack_modules__ = ({
|
||
|
||
/***/ 9662:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var isCallable = __webpack_require__(614);
|
||
var tryToString = __webpack_require__(6330);
|
||
|
||
// `Assert: IsCallable(argument) is true`
|
||
module.exports = function (argument) {
|
||
if (isCallable(argument)) return argument;
|
||
throw TypeError(tryToString(argument) + ' is not a function');
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 9483:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var isConstructor = __webpack_require__(4411);
|
||
var tryToString = __webpack_require__(6330);
|
||
|
||
// `Assert: IsConstructor(argument) is true`
|
||
module.exports = function (argument) {
|
||
if (isConstructor(argument)) return argument;
|
||
throw TypeError(tryToString(argument) + ' is not a constructor');
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 6077:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var isCallable = __webpack_require__(614);
|
||
|
||
module.exports = function (argument) {
|
||
if (typeof argument === 'object' || isCallable(argument)) return argument;
|
||
throw TypeError("Can't set " + String(argument) + ' as a prototype');
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 1223:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var wellKnownSymbol = __webpack_require__(5112);
|
||
var create = __webpack_require__(30);
|
||
var definePropertyModule = __webpack_require__(3070);
|
||
|
||
var UNSCOPABLES = wellKnownSymbol('unscopables');
|
||
var ArrayPrototype = Array.prototype;
|
||
|
||
// Array.prototype[@@unscopables]
|
||
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
||
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
||
definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
|
||
configurable: true,
|
||
value: create(null)
|
||
});
|
||
}
|
||
|
||
// add a key to Array.prototype[@@unscopables]
|
||
module.exports = function (key) {
|
||
ArrayPrototype[UNSCOPABLES][key] = true;
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 1530:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
var charAt = __webpack_require__(8710).charAt;
|
||
|
||
// `AdvanceStringIndex` abstract operation
|
||
// https://tc39.es/ecma262/#sec-advancestringindex
|
||
module.exports = function (S, index, unicode) {
|
||
return index + (unicode ? charAt(S, index).length : 1);
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 787:
|
||
/***/ (function(module) {
|
||
|
||
module.exports = function (it, Constructor, name) {
|
||
if (it instanceof Constructor) return it;
|
||
throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 9670:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var isObject = __webpack_require__(111);
|
||
|
||
// `Assert: Type(argument) is Object`
|
||
module.exports = function (argument) {
|
||
if (isObject(argument)) return argument;
|
||
throw TypeError(String(argument) + ' is not an object');
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 8533:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
var $forEach = __webpack_require__(2092).forEach;
|
||
var arrayMethodIsStrict = __webpack_require__(9341);
|
||
|
||
var STRICT_METHOD = arrayMethodIsStrict('forEach');
|
||
|
||
// `Array.prototype.forEach` method implementation
|
||
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
||
module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
|
||
return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
||
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
||
} : [].forEach;
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 8457:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
var bind = __webpack_require__(9974);
|
||
var toObject = __webpack_require__(7908);
|
||
var callWithSafeIterationClosing = __webpack_require__(3411);
|
||
var isArrayIteratorMethod = __webpack_require__(7659);
|
||
var isConstructor = __webpack_require__(4411);
|
||
var lengthOfArrayLike = __webpack_require__(6244);
|
||
var createProperty = __webpack_require__(6135);
|
||
var getIterator = __webpack_require__(8554);
|
||
var getIteratorMethod = __webpack_require__(1246);
|
||
|
||
// `Array.from` method implementation
|
||
// https://tc39.es/ecma262/#sec-array.from
|
||
module.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
|
||
var O = toObject(arrayLike);
|
||
var IS_CONSTRUCTOR = isConstructor(this);
|
||
var argumentsLength = arguments.length;
|
||
var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
|
||
var mapping = mapfn !== undefined;
|
||
if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2);
|
||
var iteratorMethod = getIteratorMethod(O);
|
||
var index = 0;
|
||
var length, result, step, iterator, next, value;
|
||
// if the target is not iterable or it's an array with the default iterator - use a simple case
|
||
if (iteratorMethod && !(this == Array && isArrayIteratorMethod(iteratorMethod))) {
|
||
iterator = getIterator(O, iteratorMethod);
|
||
next = iterator.next;
|
||
result = IS_CONSTRUCTOR ? new this() : [];
|
||
for (;!(step = next.call(iterator)).done; index++) {
|
||
value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
|
||
createProperty(result, index, value);
|
||
}
|
||
} else {
|
||
length = lengthOfArrayLike(O);
|
||
result = IS_CONSTRUCTOR ? new this(length) : Array(length);
|
||
for (;length > index; index++) {
|
||
value = mapping ? mapfn(O[index], index) : O[index];
|
||
createProperty(result, index, value);
|
||
}
|
||
}
|
||
result.length = index;
|
||
return result;
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 1318:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var toIndexedObject = __webpack_require__(5656);
|
||
var toAbsoluteIndex = __webpack_require__(1400);
|
||
var lengthOfArrayLike = __webpack_require__(6244);
|
||
|
||
// `Array.prototype.{ indexOf, includes }` methods implementation
|
||
var createMethod = function (IS_INCLUDES) {
|
||
return function ($this, el, fromIndex) {
|
||
var O = toIndexedObject($this);
|
||
var length = lengthOfArrayLike(O);
|
||
var index = toAbsoluteIndex(fromIndex, length);
|
||
var value;
|
||
// Array#includes uses SameValueZero equality algorithm
|
||
// eslint-disable-next-line no-self-compare -- NaN check
|
||
if (IS_INCLUDES && el != el) while (length > index) {
|
||
value = O[index++];
|
||
// eslint-disable-next-line no-self-compare -- NaN check
|
||
if (value != value) return true;
|
||
// Array#indexOf ignores holes, Array#includes - not
|
||
} else for (;length > index; index++) {
|
||
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
||
} return !IS_INCLUDES && -1;
|
||
};
|
||
};
|
||
|
||
module.exports = {
|
||
// `Array.prototype.includes` method
|
||
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
||
includes: createMethod(true),
|
||
// `Array.prototype.indexOf` method
|
||
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
||
indexOf: createMethod(false)
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 2092:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var bind = __webpack_require__(9974);
|
||
var IndexedObject = __webpack_require__(8361);
|
||
var toObject = __webpack_require__(7908);
|
||
var lengthOfArrayLike = __webpack_require__(6244);
|
||
var arraySpeciesCreate = __webpack_require__(5417);
|
||
|
||
var push = [].push;
|
||
|
||
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
||
var createMethod = function (TYPE) {
|
||
var IS_MAP = TYPE == 1;
|
||
var IS_FILTER = TYPE == 2;
|
||
var IS_SOME = TYPE == 3;
|
||
var IS_EVERY = TYPE == 4;
|
||
var IS_FIND_INDEX = TYPE == 6;
|
||
var IS_FILTER_REJECT = TYPE == 7;
|
||
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
||
return function ($this, callbackfn, that, specificCreate) {
|
||
var O = toObject($this);
|
||
var self = IndexedObject(O);
|
||
var boundFunction = bind(callbackfn, that, 3);
|
||
var length = lengthOfArrayLike(self);
|
||
var index = 0;
|
||
var create = specificCreate || arraySpeciesCreate;
|
||
var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
|
||
var value, result;
|
||
for (;length > index; index++) if (NO_HOLES || index in self) {
|
||
value = self[index];
|
||
result = boundFunction(value, index, O);
|
||
if (TYPE) {
|
||
if (IS_MAP) target[index] = result; // map
|
||
else if (result) switch (TYPE) {
|
||
case 3: return true; // some
|
||
case 5: return value; // find
|
||
case 6: return index; // findIndex
|
||
case 2: push.call(target, value); // filter
|
||
} else switch (TYPE) {
|
||
case 4: return false; // every
|
||
case 7: push.call(target, value); // filterReject
|
||
}
|
||
}
|
||
}
|
||
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
|
||
};
|
||
};
|
||
|
||
module.exports = {
|
||
// `Array.prototype.forEach` method
|
||
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
||
forEach: createMethod(0),
|
||
// `Array.prototype.map` method
|
||
// https://tc39.es/ecma262/#sec-array.prototype.map
|
||
map: createMethod(1),
|
||
// `Array.prototype.filter` method
|
||
// https://tc39.es/ecma262/#sec-array.prototype.filter
|
||
filter: createMethod(2),
|
||
// `Array.prototype.some` method
|
||
// https://tc39.es/ecma262/#sec-array.prototype.some
|
||
some: createMethod(3),
|
||
// `Array.prototype.every` method
|
||
// https://tc39.es/ecma262/#sec-array.prototype.every
|
||
every: createMethod(4),
|
||
// `Array.prototype.find` method
|
||
// https://tc39.es/ecma262/#sec-array.prototype.find
|
||
find: createMethod(5),
|
||
// `Array.prototype.findIndex` method
|
||
// https://tc39.es/ecma262/#sec-array.prototype.findIndex
|
||
findIndex: createMethod(6),
|
||
// `Array.prototype.filterReject` method
|
||
// https://github.com/tc39/proposal-array-filtering
|
||
filterReject: createMethod(7)
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 1194:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var fails = __webpack_require__(7293);
|
||
var wellKnownSymbol = __webpack_require__(5112);
|
||
var V8_VERSION = __webpack_require__(7392);
|
||
|
||
var SPECIES = wellKnownSymbol('species');
|
||
|
||
module.exports = function (METHOD_NAME) {
|
||
// We can't use this feature detection in V8 since it causes
|
||
// deoptimization and serious performance degradation
|
||
// https://github.com/zloirock/core-js/issues/677
|
||
return V8_VERSION >= 51 || !fails(function () {
|
||
var array = [];
|
||
var constructor = array.constructor = {};
|
||
constructor[SPECIES] = function () {
|
||
return { foo: 1 };
|
||
};
|
||
return array[METHOD_NAME](Boolean).foo !== 1;
|
||
});
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 9341:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
var fails = __webpack_require__(7293);
|
||
|
||
module.exports = function (METHOD_NAME, argument) {
|
||
var method = [][METHOD_NAME];
|
||
return !!method && fails(function () {
|
||
// eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing
|
||
method.call(null, argument || function () { throw 1; }, 1);
|
||
});
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 7475:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var isArray = __webpack_require__(3157);
|
||
var isConstructor = __webpack_require__(4411);
|
||
var isObject = __webpack_require__(111);
|
||
var wellKnownSymbol = __webpack_require__(5112);
|
||
|
||
var SPECIES = wellKnownSymbol('species');
|
||
|
||
// a part of `ArraySpeciesCreate` abstract operation
|
||
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
||
module.exports = function (originalArray) {
|
||
var C;
|
||
if (isArray(originalArray)) {
|
||
C = originalArray.constructor;
|
||
// cross-realm fallback
|
||
if (isConstructor(C) && (C === Array || isArray(C.prototype))) C = undefined;
|
||
else if (isObject(C)) {
|
||
C = C[SPECIES];
|
||
if (C === null) C = undefined;
|
||
}
|
||
} return C === undefined ? Array : C;
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 5417:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var arraySpeciesConstructor = __webpack_require__(7475);
|
||
|
||
// `ArraySpeciesCreate` abstract operation
|
||
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
||
module.exports = function (originalArray, length) {
|
||
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 3411:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var anObject = __webpack_require__(9670);
|
||
var iteratorClose = __webpack_require__(9212);
|
||
|
||
// call something on iterator step with safe closing on error
|
||
module.exports = function (iterator, fn, value, ENTRIES) {
|
||
try {
|
||
return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
|
||
} catch (error) {
|
||
iteratorClose(iterator, 'throw', error);
|
||
}
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 7072:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var wellKnownSymbol = __webpack_require__(5112);
|
||
|
||
var ITERATOR = wellKnownSymbol('iterator');
|
||
var SAFE_CLOSING = false;
|
||
|
||
try {
|
||
var called = 0;
|
||
var iteratorWithReturn = {
|
||
next: function () {
|
||
return { done: !!called++ };
|
||
},
|
||
'return': function () {
|
||
SAFE_CLOSING = true;
|
||
}
|
||
};
|
||
iteratorWithReturn[ITERATOR] = function () {
|
||
return this;
|
||
};
|
||
// eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
|
||
Array.from(iteratorWithReturn, function () { throw 2; });
|
||
} catch (error) { /* empty */ }
|
||
|
||
module.exports = function (exec, SKIP_CLOSING) {
|
||
if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
|
||
var ITERATION_SUPPORT = false;
|
||
try {
|
||
var object = {};
|
||
object[ITERATOR] = function () {
|
||
return {
|
||
next: function () {
|
||
return { done: ITERATION_SUPPORT = true };
|
||
}
|
||
};
|
||
};
|
||
exec(object);
|
||
} catch (error) { /* empty */ }
|
||
return ITERATION_SUPPORT;
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 4326:
|
||
/***/ (function(module) {
|
||
|
||
var toString = {}.toString;
|
||
|
||
module.exports = function (it) {
|
||
return toString.call(it).slice(8, -1);
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 648:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var TO_STRING_TAG_SUPPORT = __webpack_require__(1694);
|
||
var isCallable = __webpack_require__(614);
|
||
var classofRaw = __webpack_require__(4326);
|
||
var wellKnownSymbol = __webpack_require__(5112);
|
||
|
||
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
||
// ES3 wrong here
|
||
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
||
|
||
// fallback for IE11 Script Access Denied error
|
||
var tryGet = function (it, key) {
|
||
try {
|
||
return it[key];
|
||
} catch (error) { /* empty */ }
|
||
};
|
||
|
||
// getting tag from ES6+ `Object.prototype.toString`
|
||
module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
||
var O, tag, result;
|
||
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
||
// @@toStringTag case
|
||
: typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag
|
||
// builtinTag case
|
||
: CORRECT_ARGUMENTS ? classofRaw(O)
|
||
// ES3 arguments fallback
|
||
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 9920:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var hasOwn = __webpack_require__(2597);
|
||
var ownKeys = __webpack_require__(3887);
|
||
var getOwnPropertyDescriptorModule = __webpack_require__(1236);
|
||
var definePropertyModule = __webpack_require__(3070);
|
||
|
||
module.exports = function (target, source) {
|
||
var keys = ownKeys(source);
|
||
var defineProperty = definePropertyModule.f;
|
||
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
||
for (var i = 0; i < keys.length; i++) {
|
||
var key = keys[i];
|
||
if (!hasOwn(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
||
}
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 964:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var wellKnownSymbol = __webpack_require__(5112);
|
||
|
||
var MATCH = wellKnownSymbol('match');
|
||
|
||
module.exports = function (METHOD_NAME) {
|
||
var regexp = /./;
|
||
try {
|
||
'/./'[METHOD_NAME](regexp);
|
||
} catch (error1) {
|
||
try {
|
||
regexp[MATCH] = false;
|
||
return '/./'[METHOD_NAME](regexp);
|
||
} catch (error2) { /* empty */ }
|
||
} return false;
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 8544:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var fails = __webpack_require__(7293);
|
||
|
||
module.exports = !fails(function () {
|
||
function F() { /* empty */ }
|
||
F.prototype.constructor = null;
|
||
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
||
return Object.getPrototypeOf(new F()) !== F.prototype;
|
||
});
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 4994:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
var IteratorPrototype = __webpack_require__(3383).IteratorPrototype;
|
||
var create = __webpack_require__(30);
|
||
var createPropertyDescriptor = __webpack_require__(9114);
|
||
var setToStringTag = __webpack_require__(8003);
|
||
var Iterators = __webpack_require__(7497);
|
||
|
||
var returnThis = function () { return this; };
|
||
|
||
module.exports = function (IteratorConstructor, NAME, next) {
|
||
var TO_STRING_TAG = NAME + ' Iterator';
|
||
IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(1, next) });
|
||
setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
|
||
Iterators[TO_STRING_TAG] = returnThis;
|
||
return IteratorConstructor;
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 8880:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var DESCRIPTORS = __webpack_require__(9781);
|
||
var definePropertyModule = __webpack_require__(3070);
|
||
var createPropertyDescriptor = __webpack_require__(9114);
|
||
|
||
module.exports = DESCRIPTORS ? function (object, key, value) {
|
||
return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
|
||
} : function (object, key, value) {
|
||
object[key] = value;
|
||
return object;
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 9114:
|
||
/***/ (function(module) {
|
||
|
||
module.exports = function (bitmap, value) {
|
||
return {
|
||
enumerable: !(bitmap & 1),
|
||
configurable: !(bitmap & 2),
|
||
writable: !(bitmap & 4),
|
||
value: value
|
||
};
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 6135:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
var toPropertyKey = __webpack_require__(4948);
|
||
var definePropertyModule = __webpack_require__(3070);
|
||
var createPropertyDescriptor = __webpack_require__(9114);
|
||
|
||
module.exports = function (object, key, value) {
|
||
var propertyKey = toPropertyKey(key);
|
||
if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
|
||
else object[propertyKey] = value;
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 654:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
var $ = __webpack_require__(2109);
|
||
var IS_PURE = __webpack_require__(1913);
|
||
var FunctionName = __webpack_require__(6530);
|
||
var isCallable = __webpack_require__(614);
|
||
var createIteratorConstructor = __webpack_require__(4994);
|
||
var getPrototypeOf = __webpack_require__(9518);
|
||
var setPrototypeOf = __webpack_require__(7674);
|
||
var setToStringTag = __webpack_require__(8003);
|
||
var createNonEnumerableProperty = __webpack_require__(8880);
|
||
var redefine = __webpack_require__(1320);
|
||
var wellKnownSymbol = __webpack_require__(5112);
|
||
var Iterators = __webpack_require__(7497);
|
||
var IteratorsCore = __webpack_require__(3383);
|
||
|
||
var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
||
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
||
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
||
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
||
var ITERATOR = wellKnownSymbol('iterator');
|
||
var KEYS = 'keys';
|
||
var VALUES = 'values';
|
||
var ENTRIES = 'entries';
|
||
|
||
var returnThis = function () { return this; };
|
||
|
||
module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
||
createIteratorConstructor(IteratorConstructor, NAME, next);
|
||
|
||
var getIterationMethod = function (KIND) {
|
||
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
||
if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
|
||
switch (KIND) {
|
||
case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
|
||
case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
|
||
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
|
||
} return function () { return new IteratorConstructor(this); };
|
||
};
|
||
|
||
var TO_STRING_TAG = NAME + ' Iterator';
|
||
var INCORRECT_VALUES_NAME = false;
|
||
var IterablePrototype = Iterable.prototype;
|
||
var nativeIterator = IterablePrototype[ITERATOR]
|
||
|| IterablePrototype['@@iterator']
|
||
|| DEFAULT && IterablePrototype[DEFAULT];
|
||
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
||
var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
||
var CurrentIteratorPrototype, methods, KEY;
|
||
|
||
// fix native
|
||
if (anyNativeIterator) {
|
||
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
||
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
||
if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
||
if (setPrototypeOf) {
|
||
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
||
} else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {
|
||
redefine(CurrentIteratorPrototype, ITERATOR, returnThis);
|
||
}
|
||
}
|
||
// Set @@toStringTag to native iterators
|
||
setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
|
||
if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;
|
||
}
|
||
}
|
||
|
||
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
||
if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
||
if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {
|
||
createNonEnumerableProperty(IterablePrototype, 'name', VALUES);
|
||
} else {
|
||
INCORRECT_VALUES_NAME = true;
|
||
defaultIterator = function values() { return nativeIterator.call(this); };
|
||
}
|
||
}
|
||
|
||
// export additional methods
|
||
if (DEFAULT) {
|
||
methods = {
|
||
values: getIterationMethod(VALUES),
|
||
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
|
||
entries: getIterationMethod(ENTRIES)
|
||
};
|
||
if (FORCED) for (KEY in methods) {
|
||
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
||
redefine(IterablePrototype, KEY, methods[KEY]);
|
||
}
|
||
} else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
||
}
|
||
|
||
// define iterator
|
||
if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {
|
||
redefine(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });
|
||
}
|
||
Iterators[NAME] = defaultIterator;
|
||
|
||
return methods;
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 7235:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var path = __webpack_require__(857);
|
||
var hasOwn = __webpack_require__(2597);
|
||
var wrappedWellKnownSymbolModule = __webpack_require__(6061);
|
||
var defineProperty = __webpack_require__(3070).f;
|
||
|
||
module.exports = function (NAME) {
|
||
var Symbol = path.Symbol || (path.Symbol = {});
|
||
if (!hasOwn(Symbol, NAME)) defineProperty(Symbol, NAME, {
|
||
value: wrappedWellKnownSymbolModule.f(NAME)
|
||
});
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 9781:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var fails = __webpack_require__(7293);
|
||
|
||
// Detect IE8's incomplete defineProperty implementation
|
||
module.exports = !fails(function () {
|
||
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
||
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
||
});
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 317:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var global = __webpack_require__(7854);
|
||
var isObject = __webpack_require__(111);
|
||
|
||
var document = global.document;
|
||
// typeof document.createElement is 'object' in old IE
|
||
var EXISTS = isObject(document) && isObject(document.createElement);
|
||
|
||
module.exports = function (it) {
|
||
return EXISTS ? document.createElement(it) : {};
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 8324:
|
||
/***/ (function(module) {
|
||
|
||
// iterable DOM collections
|
||
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
|
||
module.exports = {
|
||
CSSRuleList: 0,
|
||
CSSStyleDeclaration: 0,
|
||
CSSValueList: 0,
|
||
ClientRectList: 0,
|
||
DOMRectList: 0,
|
||
DOMStringList: 0,
|
||
DOMTokenList: 1,
|
||
DataTransferItemList: 0,
|
||
FileList: 0,
|
||
HTMLAllCollection: 0,
|
||
HTMLCollection: 0,
|
||
HTMLFormElement: 0,
|
||
HTMLSelectElement: 0,
|
||
MediaList: 0,
|
||
MimeTypeArray: 0,
|
||
NamedNodeMap: 0,
|
||
NodeList: 1,
|
||
PaintRequestList: 0,
|
||
Plugin: 0,
|
||
PluginArray: 0,
|
||
SVGLengthList: 0,
|
||
SVGNumberList: 0,
|
||
SVGPathSegList: 0,
|
||
SVGPointList: 0,
|
||
SVGStringList: 0,
|
||
SVGTransformList: 0,
|
||
SourceBufferList: 0,
|
||
StyleSheetList: 0,
|
||
TextTrackCueList: 0,
|
||
TextTrackList: 0,
|
||
TouchList: 0
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 8509:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
|
||
var documentCreateElement = __webpack_require__(317);
|
||
|
||
var classList = documentCreateElement('span').classList;
|
||
var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;
|
||
|
||
module.exports = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 8113:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var getBuiltIn = __webpack_require__(5005);
|
||
|
||
module.exports = getBuiltIn('navigator', 'userAgent') || '';
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 7392:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var global = __webpack_require__(7854);
|
||
var userAgent = __webpack_require__(8113);
|
||
|
||
var process = global.process;
|
||
var Deno = global.Deno;
|
||
var versions = process && process.versions || Deno && Deno.version;
|
||
var v8 = versions && versions.v8;
|
||
var match, version;
|
||
|
||
if (v8) {
|
||
match = v8.split('.');
|
||
version = match[0] < 4 ? 1 : match[0] + match[1];
|
||
} else if (userAgent) {
|
||
match = userAgent.match(/Edge\/(\d+)/);
|
||
if (!match || match[1] >= 74) {
|
||
match = userAgent.match(/Chrome\/(\d+)/);
|
||
if (match) version = match[1];
|
||
}
|
||
}
|
||
|
||
module.exports = version && +version;
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 748:
|
||
/***/ (function(module) {
|
||
|
||
// IE8- don't enum bug keys
|
||
module.exports = [
|
||
'constructor',
|
||
'hasOwnProperty',
|
||
'isPrototypeOf',
|
||
'propertyIsEnumerable',
|
||
'toLocaleString',
|
||
'toString',
|
||
'valueOf'
|
||
];
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 2109:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var global = __webpack_require__(7854);
|
||
var getOwnPropertyDescriptor = __webpack_require__(1236).f;
|
||
var createNonEnumerableProperty = __webpack_require__(8880);
|
||
var redefine = __webpack_require__(1320);
|
||
var setGlobal = __webpack_require__(3505);
|
||
var copyConstructorProperties = __webpack_require__(9920);
|
||
var isForced = __webpack_require__(4705);
|
||
|
||
/*
|
||
options.target - name of the target object
|
||
options.global - target is the global object
|
||
options.stat - export as static methods of target
|
||
options.proto - export as prototype methods of target
|
||
options.real - real prototype method for the `pure` version
|
||
options.forced - export even if the native feature is available
|
||
options.bind - bind methods to the target, required for the `pure` version
|
||
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
||
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
||
options.sham - add a flag to not completely full polyfills
|
||
options.enumerable - export as enumerable property
|
||
options.noTargetGet - prevent calling a getter on target
|
||
options.name - the .name of the function if it does not match the key
|
||
*/
|
||
module.exports = function (options, source) {
|
||
var TARGET = options.target;
|
||
var GLOBAL = options.global;
|
||
var STATIC = options.stat;
|
||
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
||
if (GLOBAL) {
|
||
target = global;
|
||
} else if (STATIC) {
|
||
target = global[TARGET] || setGlobal(TARGET, {});
|
||
} else {
|
||
target = (global[TARGET] || {}).prototype;
|
||
}
|
||
if (target) for (key in source) {
|
||
sourceProperty = source[key];
|
||
if (options.noTargetGet) {
|
||
descriptor = getOwnPropertyDescriptor(target, key);
|
||
targetProperty = descriptor && descriptor.value;
|
||
} else targetProperty = target[key];
|
||
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
||
// contained in target
|
||
if (!FORCED && targetProperty !== undefined) {
|
||
if (typeof sourceProperty === typeof targetProperty) continue;
|
||
copyConstructorProperties(sourceProperty, targetProperty);
|
||
}
|
||
// add a flag to not completely full polyfills
|
||
if (options.sham || (targetProperty && targetProperty.sham)) {
|
||
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
||
}
|
||
// extend global
|
||
redefine(target, key, sourceProperty, options);
|
||
}
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 7293:
|
||
/***/ (function(module) {
|
||
|
||
module.exports = function (exec) {
|
||
try {
|
||
return !!exec();
|
||
} catch (error) {
|
||
return true;
|
||
}
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 7007:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
// TODO: Remove from `core-js@4` since it's moved to entry points
|
||
__webpack_require__(4916);
|
||
var redefine = __webpack_require__(1320);
|
||
var regexpExec = __webpack_require__(2261);
|
||
var fails = __webpack_require__(7293);
|
||
var wellKnownSymbol = __webpack_require__(5112);
|
||
var createNonEnumerableProperty = __webpack_require__(8880);
|
||
|
||
var SPECIES = wellKnownSymbol('species');
|
||
var RegExpPrototype = RegExp.prototype;
|
||
|
||
module.exports = function (KEY, exec, FORCED, SHAM) {
|
||
var SYMBOL = wellKnownSymbol(KEY);
|
||
|
||
var DELEGATES_TO_SYMBOL = !fails(function () {
|
||
// String methods call symbol-named RegEp methods
|
||
var O = {};
|
||
O[SYMBOL] = function () { return 7; };
|
||
return ''[KEY](O) != 7;
|
||
});
|
||
|
||
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
|
||
// Symbol-named RegExp methods call .exec
|
||
var execCalled = false;
|
||
var re = /a/;
|
||
|
||
if (KEY === 'split') {
|
||
// We can't use real regex here since it causes deoptimization
|
||
// and serious performance degradation in V8
|
||
// https://github.com/zloirock/core-js/issues/306
|
||
re = {};
|
||
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
||
// a new one. We need to return the patched regex when creating the new one.
|
||
re.constructor = {};
|
||
re.constructor[SPECIES] = function () { return re; };
|
||
re.flags = '';
|
||
re[SYMBOL] = /./[SYMBOL];
|
||
}
|
||
|
||
re.exec = function () { execCalled = true; return null; };
|
||
|
||
re[SYMBOL]('');
|
||
return !execCalled;
|
||
});
|
||
|
||
if (
|
||
!DELEGATES_TO_SYMBOL ||
|
||
!DELEGATES_TO_EXEC ||
|
||
FORCED
|
||
) {
|
||
var nativeRegExpMethod = /./[SYMBOL];
|
||
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
||
var $exec = regexp.exec;
|
||
if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
|
||
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
||
// The native String method already delegates to @@method (this
|
||
// polyfilled function), leasing to infinite recursion.
|
||
// We avoid it by directly calling the native @@method method.
|
||
return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
|
||
}
|
||
return { done: true, value: nativeMethod.call(str, regexp, arg2) };
|
||
}
|
||
return { done: false };
|
||
});
|
||
|
||
redefine(String.prototype, KEY, methods[0]);
|
||
redefine(RegExpPrototype, SYMBOL, methods[1]);
|
||
}
|
||
|
||
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 9974:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var aCallable = __webpack_require__(9662);
|
||
|
||
// optional / simple context binding
|
||
module.exports = function (fn, that, length) {
|
||
aCallable(fn);
|
||
if (that === undefined) return fn;
|
||
switch (length) {
|
||
case 0: return function () {
|
||
return fn.call(that);
|
||
};
|
||
case 1: return function (a) {
|
||
return fn.call(that, a);
|
||
};
|
||
case 2: return function (a, b) {
|
||
return fn.call(that, a, b);
|
||
};
|
||
case 3: return function (a, b, c) {
|
||
return fn.call(that, a, b, c);
|
||
};
|
||
}
|
||
return function (/* ...args */) {
|
||
return fn.apply(that, arguments);
|
||
};
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 6530:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var DESCRIPTORS = __webpack_require__(9781);
|
||
var hasOwn = __webpack_require__(2597);
|
||
|
||
var FunctionPrototype = Function.prototype;
|
||
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
||
var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
|
||
|
||
var EXISTS = hasOwn(FunctionPrototype, 'name');
|
||
// additional protection from minified / mangled / dropped function names
|
||
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
||
var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
|
||
|
||
module.exports = {
|
||
EXISTS: EXISTS,
|
||
PROPER: PROPER,
|
||
CONFIGURABLE: CONFIGURABLE
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 5005:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var global = __webpack_require__(7854);
|
||
var isCallable = __webpack_require__(614);
|
||
|
||
var aFunction = function (argument) {
|
||
return isCallable(argument) ? argument : undefined;
|
||
};
|
||
|
||
module.exports = function (namespace, method) {
|
||
return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 1246:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var classof = __webpack_require__(648);
|
||
var getMethod = __webpack_require__(8173);
|
||
var Iterators = __webpack_require__(7497);
|
||
var wellKnownSymbol = __webpack_require__(5112);
|
||
|
||
var ITERATOR = wellKnownSymbol('iterator');
|
||
|
||
module.exports = function (it) {
|
||
if (it != undefined) return getMethod(it, ITERATOR)
|
||
|| getMethod(it, '@@iterator')
|
||
|| Iterators[classof(it)];
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 8554:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var aCallable = __webpack_require__(9662);
|
||
var anObject = __webpack_require__(9670);
|
||
var getIteratorMethod = __webpack_require__(1246);
|
||
|
||
module.exports = function (argument, usingIterator) {
|
||
var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
|
||
if (aCallable(iteratorMethod)) return anObject(iteratorMethod.call(argument));
|
||
throw TypeError(String(argument) + ' is not iterable');
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 8173:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var aCallable = __webpack_require__(9662);
|
||
|
||
// `GetMethod` abstract operation
|
||
// https://tc39.es/ecma262/#sec-getmethod
|
||
module.exports = function (V, P) {
|
||
var func = V[P];
|
||
return func == null ? undefined : aCallable(func);
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 7854:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var check = function (it) {
|
||
return it && it.Math == Math && it;
|
||
};
|
||
|
||
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
||
module.exports =
|
||
// eslint-disable-next-line es/no-global-this -- safe
|
||
check(typeof globalThis == 'object' && globalThis) ||
|
||
check(typeof window == 'object' && window) ||
|
||
// eslint-disable-next-line no-restricted-globals -- safe
|
||
check(typeof self == 'object' && self) ||
|
||
check(typeof __webpack_require__.g == 'object' && __webpack_require__.g) ||
|
||
// eslint-disable-next-line no-new-func -- fallback
|
||
(function () { return this; })() || Function('return this')();
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 2597:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var toObject = __webpack_require__(7908);
|
||
|
||
var hasOwnProperty = {}.hasOwnProperty;
|
||
|
||
// `HasOwnProperty` abstract operation
|
||
// https://tc39.es/ecma262/#sec-hasownproperty
|
||
module.exports = Object.hasOwn || function hasOwn(it, key) {
|
||
return hasOwnProperty.call(toObject(it), key);
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 3501:
|
||
/***/ (function(module) {
|
||
|
||
module.exports = {};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 490:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var getBuiltIn = __webpack_require__(5005);
|
||
|
||
module.exports = getBuiltIn('document', 'documentElement');
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 4664:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var DESCRIPTORS = __webpack_require__(9781);
|
||
var fails = __webpack_require__(7293);
|
||
var createElement = __webpack_require__(317);
|
||
|
||
// Thank's IE8 for his funny defineProperty
|
||
module.exports = !DESCRIPTORS && !fails(function () {
|
||
// eslint-disable-next-line es/no-object-defineproperty -- requied for testing
|
||
return Object.defineProperty(createElement('div'), 'a', {
|
||
get: function () { return 7; }
|
||
}).a != 7;
|
||
});
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 8361:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var fails = __webpack_require__(7293);
|
||
var classof = __webpack_require__(4326);
|
||
|
||
var split = ''.split;
|
||
|
||
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
||
module.exports = fails(function () {
|
||
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
||
// eslint-disable-next-line no-prototype-builtins -- safe
|
||
return !Object('z').propertyIsEnumerable(0);
|
||
}) ? function (it) {
|
||
return classof(it) == 'String' ? split.call(it, '') : Object(it);
|
||
} : Object;
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 9587:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var isCallable = __webpack_require__(614);
|
||
var isObject = __webpack_require__(111);
|
||
var setPrototypeOf = __webpack_require__(7674);
|
||
|
||
// makes subclassing work correct for wrapped built-ins
|
||
module.exports = function ($this, dummy, Wrapper) {
|
||
var NewTarget, NewTargetPrototype;
|
||
if (
|
||
// it can work only with native `setPrototypeOf`
|
||
setPrototypeOf &&
|
||
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
||
isCallable(NewTarget = dummy.constructor) &&
|
||
NewTarget !== Wrapper &&
|
||
isObject(NewTargetPrototype = NewTarget.prototype) &&
|
||
NewTargetPrototype !== Wrapper.prototype
|
||
) setPrototypeOf($this, NewTargetPrototype);
|
||
return $this;
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 2788:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var isCallable = __webpack_require__(614);
|
||
var store = __webpack_require__(5465);
|
||
|
||
var functionToString = Function.toString;
|
||
|
||
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
||
if (!isCallable(store.inspectSource)) {
|
||
store.inspectSource = function (it) {
|
||
return functionToString.call(it);
|
||
};
|
||
}
|
||
|
||
module.exports = store.inspectSource;
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 9909:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var NATIVE_WEAK_MAP = __webpack_require__(8536);
|
||
var global = __webpack_require__(7854);
|
||
var isObject = __webpack_require__(111);
|
||
var createNonEnumerableProperty = __webpack_require__(8880);
|
||
var hasOwn = __webpack_require__(2597);
|
||
var shared = __webpack_require__(5465);
|
||
var sharedKey = __webpack_require__(6200);
|
||
var hiddenKeys = __webpack_require__(3501);
|
||
|
||
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
||
var WeakMap = global.WeakMap;
|
||
var set, get, has;
|
||
|
||
var enforce = function (it) {
|
||
return has(it) ? get(it) : set(it, {});
|
||
};
|
||
|
||
var getterFor = function (TYPE) {
|
||
return function (it) {
|
||
var state;
|
||
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
||
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
||
} return state;
|
||
};
|
||
};
|
||
|
||
if (NATIVE_WEAK_MAP || shared.state) {
|
||
var store = shared.state || (shared.state = new WeakMap());
|
||
var wmget = store.get;
|
||
var wmhas = store.has;
|
||
var wmset = store.set;
|
||
set = function (it, metadata) {
|
||
if (wmhas.call(store, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
|
||
metadata.facade = it;
|
||
wmset.call(store, it, metadata);
|
||
return metadata;
|
||
};
|
||
get = function (it) {
|
||
return wmget.call(store, it) || {};
|
||
};
|
||
has = function (it) {
|
||
return wmhas.call(store, it);
|
||
};
|
||
} else {
|
||
var STATE = sharedKey('state');
|
||
hiddenKeys[STATE] = true;
|
||
set = function (it, metadata) {
|
||
if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
|
||
metadata.facade = it;
|
||
createNonEnumerableProperty(it, STATE, metadata);
|
||
return metadata;
|
||
};
|
||
get = function (it) {
|
||
return hasOwn(it, STATE) ? it[STATE] : {};
|
||
};
|
||
has = function (it) {
|
||
return hasOwn(it, STATE);
|
||
};
|
||
}
|
||
|
||
module.exports = {
|
||
set: set,
|
||
get: get,
|
||
has: has,
|
||
enforce: enforce,
|
||
getterFor: getterFor
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 7659:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var wellKnownSymbol = __webpack_require__(5112);
|
||
var Iterators = __webpack_require__(7497);
|
||
|
||
var ITERATOR = wellKnownSymbol('iterator');
|
||
var ArrayPrototype = Array.prototype;
|
||
|
||
// check on default Array iterator
|
||
module.exports = function (it) {
|
||
return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 3157:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var classof = __webpack_require__(4326);
|
||
|
||
// `IsArray` abstract operation
|
||
// https://tc39.es/ecma262/#sec-isarray
|
||
// eslint-disable-next-line es/no-array-isarray -- safe
|
||
module.exports = Array.isArray || function isArray(argument) {
|
||
return classof(argument) == 'Array';
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 614:
|
||
/***/ (function(module) {
|
||
|
||
// `IsCallable` abstract operation
|
||
// https://tc39.es/ecma262/#sec-iscallable
|
||
module.exports = function (argument) {
|
||
return typeof argument === 'function';
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 4411:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var fails = __webpack_require__(7293);
|
||
var isCallable = __webpack_require__(614);
|
||
var classof = __webpack_require__(648);
|
||
var getBuiltIn = __webpack_require__(5005);
|
||
var inspectSource = __webpack_require__(2788);
|
||
|
||
var empty = [];
|
||
var construct = getBuiltIn('Reflect', 'construct');
|
||
var constructorRegExp = /^\s*(?:class|function)\b/;
|
||
var exec = constructorRegExp.exec;
|
||
var INCORRECT_TO_STRING = !constructorRegExp.exec(function () { /* empty */ });
|
||
|
||
var isConstructorModern = function (argument) {
|
||
if (!isCallable(argument)) return false;
|
||
try {
|
||
construct(Object, empty, argument);
|
||
return true;
|
||
} catch (error) {
|
||
return false;
|
||
}
|
||
};
|
||
|
||
var isConstructorLegacy = function (argument) {
|
||
if (!isCallable(argument)) return false;
|
||
switch (classof(argument)) {
|
||
case 'AsyncFunction':
|
||
case 'GeneratorFunction':
|
||
case 'AsyncGeneratorFunction': return false;
|
||
// we can't check .prototype since constructors produced by .bind haven't it
|
||
} return INCORRECT_TO_STRING || !!exec.call(constructorRegExp, inspectSource(argument));
|
||
};
|
||
|
||
// `IsConstructor` abstract operation
|
||
// https://tc39.es/ecma262/#sec-isconstructor
|
||
module.exports = !construct || fails(function () {
|
||
var called;
|
||
return isConstructorModern(isConstructorModern.call)
|
||
|| !isConstructorModern(Object)
|
||
|| !isConstructorModern(function () { called = true; })
|
||
|| called;
|
||
}) ? isConstructorLegacy : isConstructorModern;
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 4705:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var fails = __webpack_require__(7293);
|
||
var isCallable = __webpack_require__(614);
|
||
|
||
var replacement = /#|\.prototype\./;
|
||
|
||
var isForced = function (feature, detection) {
|
||
var value = data[normalize(feature)];
|
||
return value == POLYFILL ? true
|
||
: value == NATIVE ? false
|
||
: isCallable(detection) ? fails(detection)
|
||
: !!detection;
|
||
};
|
||
|
||
var normalize = isForced.normalize = function (string) {
|
||
return String(string).replace(replacement, '.').toLowerCase();
|
||
};
|
||
|
||
var data = isForced.data = {};
|
||
var NATIVE = isForced.NATIVE = 'N';
|
||
var POLYFILL = isForced.POLYFILL = 'P';
|
||
|
||
module.exports = isForced;
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 111:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var isCallable = __webpack_require__(614);
|
||
|
||
module.exports = function (it) {
|
||
return typeof it === 'object' ? it !== null : isCallable(it);
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 1913:
|
||
/***/ (function(module) {
|
||
|
||
module.exports = false;
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 7850:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var isObject = __webpack_require__(111);
|
||
var classof = __webpack_require__(4326);
|
||
var wellKnownSymbol = __webpack_require__(5112);
|
||
|
||
var MATCH = wellKnownSymbol('match');
|
||
|
||
// `IsRegExp` abstract operation
|
||
// https://tc39.es/ecma262/#sec-isregexp
|
||
module.exports = function (it) {
|
||
var isRegExp;
|
||
return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 2190:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var isCallable = __webpack_require__(614);
|
||
var getBuiltIn = __webpack_require__(5005);
|
||
var USE_SYMBOL_AS_UID = __webpack_require__(3307);
|
||
|
||
module.exports = USE_SYMBOL_AS_UID ? function (it) {
|
||
return typeof it == 'symbol';
|
||
} : function (it) {
|
||
var $Symbol = getBuiltIn('Symbol');
|
||
return isCallable($Symbol) && Object(it) instanceof $Symbol;
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 9212:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var anObject = __webpack_require__(9670);
|
||
var getMethod = __webpack_require__(8173);
|
||
|
||
module.exports = function (iterator, kind, value) {
|
||
var innerResult, innerError;
|
||
anObject(iterator);
|
||
try {
|
||
innerResult = getMethod(iterator, 'return');
|
||
if (!innerResult) {
|
||
if (kind === 'throw') throw value;
|
||
return value;
|
||
}
|
||
innerResult = innerResult.call(iterator);
|
||
} catch (error) {
|
||
innerError = true;
|
||
innerResult = error;
|
||
}
|
||
if (kind === 'throw') throw value;
|
||
if (innerError) throw innerResult;
|
||
anObject(innerResult);
|
||
return value;
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 3383:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
var fails = __webpack_require__(7293);
|
||
var isCallable = __webpack_require__(614);
|
||
var create = __webpack_require__(30);
|
||
var getPrototypeOf = __webpack_require__(9518);
|
||
var redefine = __webpack_require__(1320);
|
||
var wellKnownSymbol = __webpack_require__(5112);
|
||
var IS_PURE = __webpack_require__(1913);
|
||
|
||
var ITERATOR = wellKnownSymbol('iterator');
|
||
var BUGGY_SAFARI_ITERATORS = false;
|
||
|
||
// `%IteratorPrototype%` object
|
||
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
||
var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
||
|
||
/* eslint-disable es/no-array-prototype-keys -- safe */
|
||
if ([].keys) {
|
||
arrayIterator = [].keys();
|
||
// Safari 8 has buggy iterators w/o `next`
|
||
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
|
||
else {
|
||
PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));
|
||
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
|
||
}
|
||
}
|
||
|
||
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype == undefined || fails(function () {
|
||
var test = {};
|
||
// FF44- legacy iterators case
|
||
return IteratorPrototype[ITERATOR].call(test) !== test;
|
||
});
|
||
|
||
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};
|
||
else if (IS_PURE) IteratorPrototype = create(IteratorPrototype);
|
||
|
||
// `%IteratorPrototype%[@@iterator]()` method
|
||
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
||
if (!isCallable(IteratorPrototype[ITERATOR])) {
|
||
redefine(IteratorPrototype, ITERATOR, function () {
|
||
return this;
|
||
});
|
||
}
|
||
|
||
module.exports = {
|
||
IteratorPrototype: IteratorPrototype,
|
||
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 7497:
|
||
/***/ (function(module) {
|
||
|
||
module.exports = {};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 6244:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var toLength = __webpack_require__(7466);
|
||
|
||
// `LengthOfArrayLike` abstract operation
|
||
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
||
module.exports = function (obj) {
|
||
return toLength(obj.length);
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 133:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
/* eslint-disable es/no-symbol -- required for testing */
|
||
var V8_VERSION = __webpack_require__(7392);
|
||
var fails = __webpack_require__(7293);
|
||
|
||
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
||
module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
|
||
var symbol = Symbol();
|
||
// Chrome 38 Symbol has incorrect toString conversion
|
||
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
||
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
||
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
||
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
||
});
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 590:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var fails = __webpack_require__(7293);
|
||
var wellKnownSymbol = __webpack_require__(5112);
|
||
var IS_PURE = __webpack_require__(1913);
|
||
|
||
var ITERATOR = wellKnownSymbol('iterator');
|
||
|
||
module.exports = !fails(function () {
|
||
var url = new URL('b?a=1&b=2&c=3', 'http://a');
|
||
var searchParams = url.searchParams;
|
||
var result = '';
|
||
url.pathname = 'c%20d';
|
||
searchParams.forEach(function (value, key) {
|
||
searchParams['delete']('b');
|
||
result += key + value;
|
||
});
|
||
return (IS_PURE && !url.toJSON)
|
||
|| !searchParams.sort
|
||
|| url.href !== 'http://a/c%20d?a=1&c=3'
|
||
|| searchParams.get('c') !== '3'
|
||
|| String(new URLSearchParams('?a=1')) !== 'a=1'
|
||
|| !searchParams[ITERATOR]
|
||
// throws in Edge
|
||
|| new URL('https://a@b').username !== 'a'
|
||
|| new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'
|
||
// not punycoded in Edge
|
||
|| new URL('http://тест').host !== 'xn--e1aybc'
|
||
// not escaped in Chrome 62-
|
||
|| new URL('http://a#б').hash !== '#%D0%B1'
|
||
// fails in Chrome 66-
|
||
|| result !== 'a1c3'
|
||
// throws in Safari
|
||
|| new URL('http://x', undefined).host !== 'x';
|
||
});
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 8536:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var global = __webpack_require__(7854);
|
||
var isCallable = __webpack_require__(614);
|
||
var inspectSource = __webpack_require__(2788);
|
||
|
||
var WeakMap = global.WeakMap;
|
||
|
||
module.exports = isCallable(WeakMap) && /native code/.test(inspectSource(WeakMap));
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 929:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var isRegExp = __webpack_require__(7850);
|
||
|
||
module.exports = function (it) {
|
||
if (isRegExp(it)) {
|
||
throw TypeError("The method doesn't accept regular expressions");
|
||
} return it;
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 30:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
/* global ActiveXObject -- old IE, WSH */
|
||
var anObject = __webpack_require__(9670);
|
||
var defineProperties = __webpack_require__(6048);
|
||
var enumBugKeys = __webpack_require__(748);
|
||
var hiddenKeys = __webpack_require__(3501);
|
||
var html = __webpack_require__(490);
|
||
var documentCreateElement = __webpack_require__(317);
|
||
var sharedKey = __webpack_require__(6200);
|
||
|
||
var GT = '>';
|
||
var LT = '<';
|
||
var PROTOTYPE = 'prototype';
|
||
var SCRIPT = 'script';
|
||
var IE_PROTO = sharedKey('IE_PROTO');
|
||
|
||
var EmptyConstructor = function () { /* empty */ };
|
||
|
||
var scriptTag = function (content) {
|
||
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
||
};
|
||
|
||
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
||
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
||
activeXDocument.write(scriptTag(''));
|
||
activeXDocument.close();
|
||
var temp = activeXDocument.parentWindow.Object;
|
||
activeXDocument = null; // avoid memory leak
|
||
return temp;
|
||
};
|
||
|
||
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
||
var NullProtoObjectViaIFrame = function () {
|
||
// Thrash, waste and sodomy: IE GC bug
|
||
var iframe = documentCreateElement('iframe');
|
||
var JS = 'java' + SCRIPT + ':';
|
||
var iframeDocument;
|
||
iframe.style.display = 'none';
|
||
html.appendChild(iframe);
|
||
// https://github.com/zloirock/core-js/issues/475
|
||
iframe.src = String(JS);
|
||
iframeDocument = iframe.contentWindow.document;
|
||
iframeDocument.open();
|
||
iframeDocument.write(scriptTag('document.F=Object'));
|
||
iframeDocument.close();
|
||
return iframeDocument.F;
|
||
};
|
||
|
||
// Check for document.domain and active x support
|
||
// No need to use active x approach when document.domain is not set
|
||
// see https://github.com/es-shims/es5-shim/issues/150
|
||
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
||
// avoid IE GC bug
|
||
var activeXDocument;
|
||
var NullProtoObject = function () {
|
||
try {
|
||
activeXDocument = new ActiveXObject('htmlfile');
|
||
} catch (error) { /* ignore */ }
|
||
NullProtoObject = typeof document != 'undefined'
|
||
? document.domain && activeXDocument
|
||
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
||
: NullProtoObjectViaIFrame()
|
||
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
||
var length = enumBugKeys.length;
|
||
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
||
return NullProtoObject();
|
||
};
|
||
|
||
hiddenKeys[IE_PROTO] = true;
|
||
|
||
// `Object.create` method
|
||
// https://tc39.es/ecma262/#sec-object.create
|
||
module.exports = Object.create || function create(O, Properties) {
|
||
var result;
|
||
if (O !== null) {
|
||
EmptyConstructor[PROTOTYPE] = anObject(O);
|
||
result = new EmptyConstructor();
|
||
EmptyConstructor[PROTOTYPE] = null;
|
||
// add "__proto__" for Object.getPrototypeOf polyfill
|
||
result[IE_PROTO] = O;
|
||
} else result = NullProtoObject();
|
||
return Properties === undefined ? result : defineProperties(result, Properties);
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 6048:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var DESCRIPTORS = __webpack_require__(9781);
|
||
var definePropertyModule = __webpack_require__(3070);
|
||
var anObject = __webpack_require__(9670);
|
||
var objectKeys = __webpack_require__(1956);
|
||
|
||
// `Object.defineProperties` method
|
||
// https://tc39.es/ecma262/#sec-object.defineproperties
|
||
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
||
module.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {
|
||
anObject(O);
|
||
var keys = objectKeys(Properties);
|
||
var length = keys.length;
|
||
var index = 0;
|
||
var key;
|
||
while (length > index) definePropertyModule.f(O, key = keys[index++], Properties[key]);
|
||
return O;
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 3070:
|
||
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
||
|
||
var DESCRIPTORS = __webpack_require__(9781);
|
||
var IE8_DOM_DEFINE = __webpack_require__(4664);
|
||
var anObject = __webpack_require__(9670);
|
||
var toPropertyKey = __webpack_require__(4948);
|
||
|
||
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
||
var $defineProperty = Object.defineProperty;
|
||
|
||
// `Object.defineProperty` method
|
||
// https://tc39.es/ecma262/#sec-object.defineproperty
|
||
exports.f = DESCRIPTORS ? $defineProperty : function defineProperty(O, P, Attributes) {
|
||
anObject(O);
|
||
P = toPropertyKey(P);
|
||
anObject(Attributes);
|
||
if (IE8_DOM_DEFINE) try {
|
||
return $defineProperty(O, P, Attributes);
|
||
} catch (error) { /* empty */ }
|
||
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
||
if ('value' in Attributes) O[P] = Attributes.value;
|
||
return O;
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 1236:
|
||
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
||
|
||
var DESCRIPTORS = __webpack_require__(9781);
|
||
var propertyIsEnumerableModule = __webpack_require__(5296);
|
||
var createPropertyDescriptor = __webpack_require__(9114);
|
||
var toIndexedObject = __webpack_require__(5656);
|
||
var toPropertyKey = __webpack_require__(4948);
|
||
var hasOwn = __webpack_require__(2597);
|
||
var IE8_DOM_DEFINE = __webpack_require__(4664);
|
||
|
||
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
||
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
||
|
||
// `Object.getOwnPropertyDescriptor` method
|
||
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
||
exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
||
O = toIndexedObject(O);
|
||
P = toPropertyKey(P);
|
||
if (IE8_DOM_DEFINE) try {
|
||
return $getOwnPropertyDescriptor(O, P);
|
||
} catch (error) { /* empty */ }
|
||
if (hasOwn(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 1156:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
/* eslint-disable es/no-object-getownpropertynames -- safe */
|
||
var toIndexedObject = __webpack_require__(5656);
|
||
var $getOwnPropertyNames = __webpack_require__(8006).f;
|
||
|
||
var toString = {}.toString;
|
||
|
||
var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
|
||
? Object.getOwnPropertyNames(window) : [];
|
||
|
||
var getWindowNames = function (it) {
|
||
try {
|
||
return $getOwnPropertyNames(it);
|
||
} catch (error) {
|
||
return windowNames.slice();
|
||
}
|
||
};
|
||
|
||
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
|
||
module.exports.f = function getOwnPropertyNames(it) {
|
||
return windowNames && toString.call(it) == '[object Window]'
|
||
? getWindowNames(it)
|
||
: $getOwnPropertyNames(toIndexedObject(it));
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 8006:
|
||
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
||
|
||
var internalObjectKeys = __webpack_require__(6324);
|
||
var enumBugKeys = __webpack_require__(748);
|
||
|
||
var hiddenKeys = enumBugKeys.concat('length', 'prototype');
|
||
|
||
// `Object.getOwnPropertyNames` method
|
||
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
||
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
||
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
||
return internalObjectKeys(O, hiddenKeys);
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 5181:
|
||
/***/ (function(__unused_webpack_module, exports) {
|
||
|
||
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
||
exports.f = Object.getOwnPropertySymbols;
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 9518:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var hasOwn = __webpack_require__(2597);
|
||
var isCallable = __webpack_require__(614);
|
||
var toObject = __webpack_require__(7908);
|
||
var sharedKey = __webpack_require__(6200);
|
||
var CORRECT_PROTOTYPE_GETTER = __webpack_require__(8544);
|
||
|
||
var IE_PROTO = sharedKey('IE_PROTO');
|
||
var ObjectPrototype = Object.prototype;
|
||
|
||
// `Object.getPrototypeOf` method
|
||
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
||
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
||
module.exports = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) {
|
||
var object = toObject(O);
|
||
if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];
|
||
var constructor = object.constructor;
|
||
if (isCallable(constructor) && object instanceof constructor) {
|
||
return constructor.prototype;
|
||
} return object instanceof Object ? ObjectPrototype : null;
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 6324:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var hasOwn = __webpack_require__(2597);
|
||
var toIndexedObject = __webpack_require__(5656);
|
||
var indexOf = __webpack_require__(1318).indexOf;
|
||
var hiddenKeys = __webpack_require__(3501);
|
||
|
||
module.exports = function (object, names) {
|
||
var O = toIndexedObject(object);
|
||
var i = 0;
|
||
var result = [];
|
||
var key;
|
||
for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && result.push(key);
|
||
// Don't enum bug & hidden keys
|
||
while (names.length > i) if (hasOwn(O, key = names[i++])) {
|
||
~indexOf(result, key) || result.push(key);
|
||
}
|
||
return result;
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 1956:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var internalObjectKeys = __webpack_require__(6324);
|
||
var enumBugKeys = __webpack_require__(748);
|
||
|
||
// `Object.keys` method
|
||
// https://tc39.es/ecma262/#sec-object.keys
|
||
// eslint-disable-next-line es/no-object-keys -- safe
|
||
module.exports = Object.keys || function keys(O) {
|
||
return internalObjectKeys(O, enumBugKeys);
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 5296:
|
||
/***/ (function(__unused_webpack_module, exports) {
|
||
|
||
"use strict";
|
||
|
||
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
||
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
||
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
||
|
||
// Nashorn ~ JDK8 bug
|
||
var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
||
|
||
// `Object.prototype.propertyIsEnumerable` method implementation
|
||
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
||
exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
||
var descriptor = getOwnPropertyDescriptor(this, V);
|
||
return !!descriptor && descriptor.enumerable;
|
||
} : $propertyIsEnumerable;
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 7674:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
/* eslint-disable no-proto -- safe */
|
||
var anObject = __webpack_require__(9670);
|
||
var aPossiblePrototype = __webpack_require__(6077);
|
||
|
||
// `Object.setPrototypeOf` method
|
||
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
||
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
||
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
||
module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
||
var CORRECT_SETTER = false;
|
||
var test = {};
|
||
var setter;
|
||
try {
|
||
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
||
setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
|
||
setter.call(test, []);
|
||
CORRECT_SETTER = test instanceof Array;
|
||
} catch (error) { /* empty */ }
|
||
return function setPrototypeOf(O, proto) {
|
||
anObject(O);
|
||
aPossiblePrototype(proto);
|
||
if (CORRECT_SETTER) setter.call(O, proto);
|
||
else O.__proto__ = proto;
|
||
return O;
|
||
};
|
||
}() : undefined);
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 288:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
var TO_STRING_TAG_SUPPORT = __webpack_require__(1694);
|
||
var classof = __webpack_require__(648);
|
||
|
||
// `Object.prototype.toString` method implementation
|
||
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
||
module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
|
||
return '[object ' + classof(this) + ']';
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 2140:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var isCallable = __webpack_require__(614);
|
||
var isObject = __webpack_require__(111);
|
||
|
||
// `OrdinaryToPrimitive` abstract operation
|
||
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
||
module.exports = function (input, pref) {
|
||
var fn, val;
|
||
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = fn.call(input))) return val;
|
||
if (isCallable(fn = input.valueOf) && !isObject(val = fn.call(input))) return val;
|
||
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = fn.call(input))) return val;
|
||
throw TypeError("Can't convert object to primitive value");
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 3887:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var getBuiltIn = __webpack_require__(5005);
|
||
var getOwnPropertyNamesModule = __webpack_require__(8006);
|
||
var getOwnPropertySymbolsModule = __webpack_require__(5181);
|
||
var anObject = __webpack_require__(9670);
|
||
|
||
// all object keys, includes non-enumerable and symbols
|
||
module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
||
var keys = getOwnPropertyNamesModule.f(anObject(it));
|
||
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
||
return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 857:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var global = __webpack_require__(7854);
|
||
|
||
module.exports = global;
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 248:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var redefine = __webpack_require__(1320);
|
||
|
||
module.exports = function (target, src, options) {
|
||
for (var key in src) redefine(target, key, src[key], options);
|
||
return target;
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 1320:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var global = __webpack_require__(7854);
|
||
var isCallable = __webpack_require__(614);
|
||
var hasOwn = __webpack_require__(2597);
|
||
var createNonEnumerableProperty = __webpack_require__(8880);
|
||
var setGlobal = __webpack_require__(3505);
|
||
var inspectSource = __webpack_require__(2788);
|
||
var InternalStateModule = __webpack_require__(9909);
|
||
var CONFIGURABLE_FUNCTION_NAME = __webpack_require__(6530).CONFIGURABLE;
|
||
|
||
var getInternalState = InternalStateModule.get;
|
||
var enforceInternalState = InternalStateModule.enforce;
|
||
var TEMPLATE = String(String).split('String');
|
||
|
||
(module.exports = function (O, key, value, options) {
|
||
var unsafe = options ? !!options.unsafe : false;
|
||
var simple = options ? !!options.enumerable : false;
|
||
var noTargetGet = options ? !!options.noTargetGet : false;
|
||
var name = options && options.name !== undefined ? options.name : key;
|
||
var state;
|
||
if (isCallable(value)) {
|
||
if (String(name).slice(0, 7) === 'Symbol(') {
|
||
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
||
}
|
||
if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
||
createNonEnumerableProperty(value, 'name', name);
|
||
}
|
||
state = enforceInternalState(value);
|
||
if (!state.source) {
|
||
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
||
}
|
||
}
|
||
if (O === global) {
|
||
if (simple) O[key] = value;
|
||
else setGlobal(key, value);
|
||
return;
|
||
} else if (!unsafe) {
|
||
delete O[key];
|
||
} else if (!noTargetGet && O[key]) {
|
||
simple = true;
|
||
}
|
||
if (simple) O[key] = value;
|
||
else createNonEnumerableProperty(O, key, value);
|
||
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
||
})(Function.prototype, 'toString', function toString() {
|
||
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
||
});
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 7651:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var anObject = __webpack_require__(9670);
|
||
var isCallable = __webpack_require__(614);
|
||
var classof = __webpack_require__(4326);
|
||
var regexpExec = __webpack_require__(2261);
|
||
|
||
// `RegExpExec` abstract operation
|
||
// https://tc39.es/ecma262/#sec-regexpexec
|
||
module.exports = function (R, S) {
|
||
var exec = R.exec;
|
||
if (isCallable(exec)) {
|
||
var result = exec.call(R, S);
|
||
if (result !== null) anObject(result);
|
||
return result;
|
||
}
|
||
if (classof(R) === 'RegExp') return regexpExec.call(R, S);
|
||
throw TypeError('RegExp#exec called on incompatible receiver');
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 2261:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
||
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
||
var toString = __webpack_require__(1340);
|
||
var regexpFlags = __webpack_require__(7066);
|
||
var stickyHelpers = __webpack_require__(2999);
|
||
var shared = __webpack_require__(2309);
|
||
var create = __webpack_require__(30);
|
||
var getInternalState = __webpack_require__(9909).get;
|
||
var UNSUPPORTED_DOT_ALL = __webpack_require__(9441);
|
||
var UNSUPPORTED_NCG = __webpack_require__(7168);
|
||
|
||
var nativeExec = RegExp.prototype.exec;
|
||
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
||
|
||
var patchedExec = nativeExec;
|
||
|
||
var UPDATES_LAST_INDEX_WRONG = (function () {
|
||
var re1 = /a/;
|
||
var re2 = /b*/g;
|
||
nativeExec.call(re1, 'a');
|
||
nativeExec.call(re2, 'a');
|
||
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
||
})();
|
||
|
||
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y || stickyHelpers.BROKEN_CARET;
|
||
|
||
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
||
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
||
|
||
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
||
|
||
if (PATCH) {
|
||
// eslint-disable-next-line max-statements -- TODO
|
||
patchedExec = function exec(string) {
|
||
var re = this;
|
||
var state = getInternalState(re);
|
||
var str = toString(string);
|
||
var raw = state.raw;
|
||
var result, reCopy, lastIndex, match, i, object, group;
|
||
|
||
if (raw) {
|
||
raw.lastIndex = re.lastIndex;
|
||
result = patchedExec.call(raw, str);
|
||
re.lastIndex = raw.lastIndex;
|
||
return result;
|
||
}
|
||
|
||
var groups = state.groups;
|
||
var sticky = UNSUPPORTED_Y && re.sticky;
|
||
var flags = regexpFlags.call(re);
|
||
var source = re.source;
|
||
var charsAdded = 0;
|
||
var strCopy = str;
|
||
|
||
if (sticky) {
|
||
flags = flags.replace('y', '');
|
||
if (flags.indexOf('g') === -1) {
|
||
flags += 'g';
|
||
}
|
||
|
||
strCopy = str.slice(re.lastIndex);
|
||
// Support anchored sticky behavior.
|
||
if (re.lastIndex > 0 && (!re.multiline || re.multiline && str.charAt(re.lastIndex - 1) !== '\n')) {
|
||
source = '(?: ' + source + ')';
|
||
strCopy = ' ' + strCopy;
|
||
charsAdded++;
|
||
}
|
||
// ^(? + rx + ) is needed, in combination with some str slicing, to
|
||
// simulate the 'y' flag.
|
||
reCopy = new RegExp('^(?:' + source + ')', flags);
|
||
}
|
||
|
||
if (NPCG_INCLUDED) {
|
||
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
||
}
|
||
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
||
|
||
match = nativeExec.call(sticky ? reCopy : re, strCopy);
|
||
|
||
if (sticky) {
|
||
if (match) {
|
||
match.input = match.input.slice(charsAdded);
|
||
match[0] = match[0].slice(charsAdded);
|
||
match.index = re.lastIndex;
|
||
re.lastIndex += match[0].length;
|
||
} else re.lastIndex = 0;
|
||
} else if (UPDATES_LAST_INDEX_WRONG && match) {
|
||
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
||
}
|
||
if (NPCG_INCLUDED && match && match.length > 1) {
|
||
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
||
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
||
nativeReplace.call(match[0], reCopy, function () {
|
||
for (i = 1; i < arguments.length - 2; i++) {
|
||
if (arguments[i] === undefined) match[i] = undefined;
|
||
}
|
||
});
|
||
}
|
||
|
||
if (match && groups) {
|
||
match.groups = object = create(null);
|
||
for (i = 0; i < groups.length; i++) {
|
||
group = groups[i];
|
||
object[group[0]] = match[group[1]];
|
||
}
|
||
}
|
||
|
||
return match;
|
||
};
|
||
}
|
||
|
||
module.exports = patchedExec;
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 7066:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
var anObject = __webpack_require__(9670);
|
||
|
||
// `RegExp.prototype.flags` getter implementation
|
||
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
||
module.exports = function () {
|
||
var that = anObject(this);
|
||
var result = '';
|
||
if (that.global) result += 'g';
|
||
if (that.ignoreCase) result += 'i';
|
||
if (that.multiline) result += 'm';
|
||
if (that.dotAll) result += 's';
|
||
if (that.unicode) result += 'u';
|
||
if (that.sticky) result += 'y';
|
||
return result;
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 2999:
|
||
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
||
|
||
var fails = __webpack_require__(7293);
|
||
var global = __webpack_require__(7854);
|
||
|
||
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
||
var $RegExp = global.RegExp;
|
||
|
||
exports.UNSUPPORTED_Y = fails(function () {
|
||
var re = $RegExp('a', 'y');
|
||
re.lastIndex = 2;
|
||
return re.exec('abcd') != null;
|
||
});
|
||
|
||
exports.BROKEN_CARET = fails(function () {
|
||
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
||
var re = $RegExp('^r', 'gy');
|
||
re.lastIndex = 2;
|
||
return re.exec('str') != null;
|
||
});
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 9441:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var fails = __webpack_require__(7293);
|
||
var global = __webpack_require__(7854);
|
||
|
||
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
||
var $RegExp = global.RegExp;
|
||
|
||
module.exports = fails(function () {
|
||
var re = $RegExp('.', 's');
|
||
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
||
});
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 7168:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var fails = __webpack_require__(7293);
|
||
var global = __webpack_require__(7854);
|
||
|
||
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
||
var $RegExp = global.RegExp;
|
||
|
||
module.exports = fails(function () {
|
||
var re = $RegExp('(?<a>b)', 'g');
|
||
return re.exec('b').groups.a !== 'b' ||
|
||
'b'.replace(re, '$<a>c') !== 'bc';
|
||
});
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 4488:
|
||
/***/ (function(module) {
|
||
|
||
// `RequireObjectCoercible` abstract operation
|
||
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
||
module.exports = function (it) {
|
||
if (it == undefined) throw TypeError("Can't call method on " + it);
|
||
return it;
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 3505:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var global = __webpack_require__(7854);
|
||
|
||
module.exports = function (key, value) {
|
||
try {
|
||
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
||
Object.defineProperty(global, key, { value: value, configurable: true, writable: true });
|
||
} catch (error) {
|
||
global[key] = value;
|
||
} return value;
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 6340:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
var getBuiltIn = __webpack_require__(5005);
|
||
var definePropertyModule = __webpack_require__(3070);
|
||
var wellKnownSymbol = __webpack_require__(5112);
|
||
var DESCRIPTORS = __webpack_require__(9781);
|
||
|
||
var SPECIES = wellKnownSymbol('species');
|
||
|
||
module.exports = function (CONSTRUCTOR_NAME) {
|
||
var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
|
||
var defineProperty = definePropertyModule.f;
|
||
|
||
if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
|
||
defineProperty(Constructor, SPECIES, {
|
||
configurable: true,
|
||
get: function () { return this; }
|
||
});
|
||
}
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 8003:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var defineProperty = __webpack_require__(3070).f;
|
||
var hasOwn = __webpack_require__(2597);
|
||
var wellKnownSymbol = __webpack_require__(5112);
|
||
|
||
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
||
|
||
module.exports = function (it, TAG, STATIC) {
|
||
if (it && !hasOwn(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
|
||
defineProperty(it, TO_STRING_TAG, { configurable: true, value: TAG });
|
||
}
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 6200:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var shared = __webpack_require__(2309);
|
||
var uid = __webpack_require__(9711);
|
||
|
||
var keys = shared('keys');
|
||
|
||
module.exports = function (key) {
|
||
return keys[key] || (keys[key] = uid(key));
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 5465:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var global = __webpack_require__(7854);
|
||
var setGlobal = __webpack_require__(3505);
|
||
|
||
var SHARED = '__core-js_shared__';
|
||
var store = global[SHARED] || setGlobal(SHARED, {});
|
||
|
||
module.exports = store;
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 2309:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var IS_PURE = __webpack_require__(1913);
|
||
var store = __webpack_require__(5465);
|
||
|
||
(module.exports = function (key, value) {
|
||
return store[key] || (store[key] = value !== undefined ? value : {});
|
||
})('versions', []).push({
|
||
version: '3.18.2',
|
||
mode: IS_PURE ? 'pure' : 'global',
|
||
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
||
});
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 6707:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var anObject = __webpack_require__(9670);
|
||
var aConstructor = __webpack_require__(9483);
|
||
var wellKnownSymbol = __webpack_require__(5112);
|
||
|
||
var SPECIES = wellKnownSymbol('species');
|
||
|
||
// `SpeciesConstructor` abstract operation
|
||
// https://tc39.es/ecma262/#sec-speciesconstructor
|
||
module.exports = function (O, defaultConstructor) {
|
||
var C = anObject(O).constructor;
|
||
var S;
|
||
return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aConstructor(S);
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 8710:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var toIntegerOrInfinity = __webpack_require__(9303);
|
||
var toString = __webpack_require__(1340);
|
||
var requireObjectCoercible = __webpack_require__(4488);
|
||
|
||
var createMethod = function (CONVERT_TO_STRING) {
|
||
return function ($this, pos) {
|
||
var S = toString(requireObjectCoercible($this));
|
||
var position = toIntegerOrInfinity(pos);
|
||
var size = S.length;
|
||
var first, second;
|
||
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
||
first = S.charCodeAt(position);
|
||
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
||
|| (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
|
||
? CONVERT_TO_STRING ? S.charAt(position) : first
|
||
: CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
||
};
|
||
};
|
||
|
||
module.exports = {
|
||
// `String.prototype.codePointAt` method
|
||
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
||
codeAt: createMethod(false),
|
||
// `String.prototype.at` method
|
||
// https://github.com/mathiasbynens/String.prototype.at
|
||
charAt: createMethod(true)
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 6091:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var PROPER_FUNCTION_NAME = __webpack_require__(6530).PROPER;
|
||
var fails = __webpack_require__(7293);
|
||
var whitespaces = __webpack_require__(1361);
|
||
|
||
var non = '\u200B\u0085\u180E';
|
||
|
||
// check that a method works with the correct list
|
||
// of whitespaces and has a correct name
|
||
module.exports = function (METHOD_NAME) {
|
||
return fails(function () {
|
||
return !!whitespaces[METHOD_NAME]()
|
||
|| non[METHOD_NAME]() !== non
|
||
|| (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
|
||
});
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 3111:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var requireObjectCoercible = __webpack_require__(4488);
|
||
var toString = __webpack_require__(1340);
|
||
var whitespaces = __webpack_require__(1361);
|
||
|
||
var whitespace = '[' + whitespaces + ']';
|
||
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
||
var rtrim = RegExp(whitespace + whitespace + '*$');
|
||
|
||
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
||
var createMethod = function (TYPE) {
|
||
return function ($this) {
|
||
var string = toString(requireObjectCoercible($this));
|
||
if (TYPE & 1) string = string.replace(ltrim, '');
|
||
if (TYPE & 2) string = string.replace(rtrim, '');
|
||
return string;
|
||
};
|
||
};
|
||
|
||
module.exports = {
|
||
// `String.prototype.{ trimLeft, trimStart }` methods
|
||
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
||
start: createMethod(1),
|
||
// `String.prototype.{ trimRight, trimEnd }` methods
|
||
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
||
end: createMethod(2),
|
||
// `String.prototype.trim` method
|
||
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
||
trim: createMethod(3)
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 1400:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var toIntegerOrInfinity = __webpack_require__(9303);
|
||
|
||
var max = Math.max;
|
||
var min = Math.min;
|
||
|
||
// Helper for a popular repeating case of the spec:
|
||
// Let integer be ? ToInteger(index).
|
||
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
||
module.exports = function (index, length) {
|
||
var integer = toIntegerOrInfinity(index);
|
||
return integer < 0 ? max(integer + length, 0) : min(integer, length);
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 5656:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
// toObject with fallback for non-array-like ES3 strings
|
||
var IndexedObject = __webpack_require__(8361);
|
||
var requireObjectCoercible = __webpack_require__(4488);
|
||
|
||
module.exports = function (it) {
|
||
return IndexedObject(requireObjectCoercible(it));
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 9303:
|
||
/***/ (function(module) {
|
||
|
||
var ceil = Math.ceil;
|
||
var floor = Math.floor;
|
||
|
||
// `ToIntegerOrInfinity` abstract operation
|
||
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
||
module.exports = function (argument) {
|
||
var number = +argument;
|
||
// eslint-disable-next-line no-self-compare -- safe
|
||
return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 7466:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var toIntegerOrInfinity = __webpack_require__(9303);
|
||
|
||
var min = Math.min;
|
||
|
||
// `ToLength` abstract operation
|
||
// https://tc39.es/ecma262/#sec-tolength
|
||
module.exports = function (argument) {
|
||
return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 7908:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var requireObjectCoercible = __webpack_require__(4488);
|
||
|
||
// `ToObject` abstract operation
|
||
// https://tc39.es/ecma262/#sec-toobject
|
||
module.exports = function (argument) {
|
||
return Object(requireObjectCoercible(argument));
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 7593:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var isObject = __webpack_require__(111);
|
||
var isSymbol = __webpack_require__(2190);
|
||
var getMethod = __webpack_require__(8173);
|
||
var ordinaryToPrimitive = __webpack_require__(2140);
|
||
var wellKnownSymbol = __webpack_require__(5112);
|
||
|
||
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
||
|
||
// `ToPrimitive` abstract operation
|
||
// https://tc39.es/ecma262/#sec-toprimitive
|
||
module.exports = function (input, pref) {
|
||
if (!isObject(input) || isSymbol(input)) return input;
|
||
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
||
var result;
|
||
if (exoticToPrim) {
|
||
if (pref === undefined) pref = 'default';
|
||
result = exoticToPrim.call(input, pref);
|
||
if (!isObject(result) || isSymbol(result)) return result;
|
||
throw TypeError("Can't convert object to primitive value");
|
||
}
|
||
if (pref === undefined) pref = 'number';
|
||
return ordinaryToPrimitive(input, pref);
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 4948:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var toPrimitive = __webpack_require__(7593);
|
||
var isSymbol = __webpack_require__(2190);
|
||
|
||
// `ToPropertyKey` abstract operation
|
||
// https://tc39.es/ecma262/#sec-topropertykey
|
||
module.exports = function (argument) {
|
||
var key = toPrimitive(argument, 'string');
|
||
return isSymbol(key) ? key : String(key);
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 1694:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var wellKnownSymbol = __webpack_require__(5112);
|
||
|
||
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
||
var test = {};
|
||
|
||
test[TO_STRING_TAG] = 'z';
|
||
|
||
module.exports = String(test) === '[object z]';
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 1340:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var classof = __webpack_require__(648);
|
||
|
||
module.exports = function (argument) {
|
||
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
||
return String(argument);
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 6330:
|
||
/***/ (function(module) {
|
||
|
||
module.exports = function (argument) {
|
||
try {
|
||
return String(argument);
|
||
} catch (error) {
|
||
return 'Object';
|
||
}
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 9711:
|
||
/***/ (function(module) {
|
||
|
||
var id = 0;
|
||
var postfix = Math.random();
|
||
|
||
module.exports = function (key) {
|
||
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 3307:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
/* eslint-disable es/no-symbol -- required for testing */
|
||
var NATIVE_SYMBOL = __webpack_require__(133);
|
||
|
||
module.exports = NATIVE_SYMBOL
|
||
&& !Symbol.sham
|
||
&& typeof Symbol.iterator == 'symbol';
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 6061:
|
||
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
||
|
||
var wellKnownSymbol = __webpack_require__(5112);
|
||
|
||
exports.f = wellKnownSymbol;
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 5112:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var global = __webpack_require__(7854);
|
||
var shared = __webpack_require__(2309);
|
||
var hasOwn = __webpack_require__(2597);
|
||
var uid = __webpack_require__(9711);
|
||
var NATIVE_SYMBOL = __webpack_require__(133);
|
||
var USE_SYMBOL_AS_UID = __webpack_require__(3307);
|
||
|
||
var WellKnownSymbolsStore = shared('wks');
|
||
var Symbol = global.Symbol;
|
||
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;
|
||
|
||
module.exports = function (name) {
|
||
if (!hasOwn(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
||
if (NATIVE_SYMBOL && hasOwn(Symbol, name)) {
|
||
WellKnownSymbolsStore[name] = Symbol[name];
|
||
} else {
|
||
WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
|
||
}
|
||
} return WellKnownSymbolsStore[name];
|
||
};
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 1361:
|
||
/***/ (function(module) {
|
||
|
||
// a string of all valid unicode whitespaces
|
||
module.exports = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
||
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 7327:
|
||
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
var $ = __webpack_require__(2109);
|
||
var $filter = __webpack_require__(2092).filter;
|
||
var arrayMethodHasSpeciesSupport = __webpack_require__(1194);
|
||
|
||
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
|
||
|
||
// `Array.prototype.filter` method
|
||
// https://tc39.es/ecma262/#sec-array.prototype.filter
|
||
// with adding support of @@species
|
||
$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
||
filter: function filter(callbackfn /* , thisArg */) {
|
||
return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
||
}
|
||
});
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 1038:
|
||
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var $ = __webpack_require__(2109);
|
||
var from = __webpack_require__(8457);
|
||
var checkCorrectnessOfIteration = __webpack_require__(7072);
|
||
|
||
var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {
|
||
// eslint-disable-next-line es/no-array-from -- required for testing
|
||
Array.from(iterable);
|
||
});
|
||
|
||
// `Array.from` method
|
||
// https://tc39.es/ecma262/#sec-array.from
|
||
$({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {
|
||
from: from
|
||
});
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 699:
|
||
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
var $ = __webpack_require__(2109);
|
||
var $includes = __webpack_require__(1318).includes;
|
||
var addToUnscopables = __webpack_require__(1223);
|
||
|
||
// `Array.prototype.includes` method
|
||
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
||
$({ target: 'Array', proto: true }, {
|
||
includes: function includes(el /* , fromIndex = 0 */) {
|
||
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
||
}
|
||
});
|
||
|
||
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
||
addToUnscopables('includes');
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 6992:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
var toIndexedObject = __webpack_require__(5656);
|
||
var addToUnscopables = __webpack_require__(1223);
|
||
var Iterators = __webpack_require__(7497);
|
||
var InternalStateModule = __webpack_require__(9909);
|
||
var defineIterator = __webpack_require__(654);
|
||
|
||
var ARRAY_ITERATOR = 'Array Iterator';
|
||
var setInternalState = InternalStateModule.set;
|
||
var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
|
||
|
||
// `Array.prototype.entries` method
|
||
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
||
// `Array.prototype.keys` method
|
||
// https://tc39.es/ecma262/#sec-array.prototype.keys
|
||
// `Array.prototype.values` method
|
||
// https://tc39.es/ecma262/#sec-array.prototype.values
|
||
// `Array.prototype[@@iterator]` method
|
||
// https://tc39.es/ecma262/#sec-array.prototype-@@iterator
|
||
// `CreateArrayIterator` internal method
|
||
// https://tc39.es/ecma262/#sec-createarrayiterator
|
||
module.exports = defineIterator(Array, 'Array', function (iterated, kind) {
|
||
setInternalState(this, {
|
||
type: ARRAY_ITERATOR,
|
||
target: toIndexedObject(iterated), // target
|
||
index: 0, // next index
|
||
kind: kind // kind
|
||
});
|
||
// `%ArrayIteratorPrototype%.next` method
|
||
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
||
}, function () {
|
||
var state = getInternalState(this);
|
||
var target = state.target;
|
||
var kind = state.kind;
|
||
var index = state.index++;
|
||
if (!target || index >= target.length) {
|
||
state.target = undefined;
|
||
return { value: undefined, done: true };
|
||
}
|
||
if (kind == 'keys') return { value: index, done: false };
|
||
if (kind == 'values') return { value: target[index], done: false };
|
||
return { value: [index, target[index]], done: false };
|
||
}, 'values');
|
||
|
||
// argumentsList[@@iterator] is %ArrayProto_values%
|
||
// https://tc39.es/ecma262/#sec-createunmappedargumentsobject
|
||
// https://tc39.es/ecma262/#sec-createmappedargumentsobject
|
||
Iterators.Arguments = Iterators.Array;
|
||
|
||
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
||
addToUnscopables('keys');
|
||
addToUnscopables('values');
|
||
addToUnscopables('entries');
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 9600:
|
||
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
var $ = __webpack_require__(2109);
|
||
var IndexedObject = __webpack_require__(8361);
|
||
var toIndexedObject = __webpack_require__(5656);
|
||
var arrayMethodIsStrict = __webpack_require__(9341);
|
||
|
||
var nativeJoin = [].join;
|
||
|
||
var ES3_STRINGS = IndexedObject != Object;
|
||
var STRICT_METHOD = arrayMethodIsStrict('join', ',');
|
||
|
||
// `Array.prototype.join` method
|
||
// https://tc39.es/ecma262/#sec-array.prototype.join
|
||
$({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {
|
||
join: function join(separator) {
|
||
return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator);
|
||
}
|
||
});
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 249:
|
||
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
var $ = __webpack_require__(2109);
|
||
var $map = __webpack_require__(2092).map;
|
||
var arrayMethodHasSpeciesSupport = __webpack_require__(1194);
|
||
|
||
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');
|
||
|
||
// `Array.prototype.map` method
|
||
// https://tc39.es/ecma262/#sec-array.prototype.map
|
||
// with adding support of @@species
|
||
$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
||
map: function map(callbackfn /* , thisArg */) {
|
||
return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
||
}
|
||
});
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 7042:
|
||
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
var $ = __webpack_require__(2109);
|
||
var isArray = __webpack_require__(3157);
|
||
var isConstructor = __webpack_require__(4411);
|
||
var isObject = __webpack_require__(111);
|
||
var toAbsoluteIndex = __webpack_require__(1400);
|
||
var lengthOfArrayLike = __webpack_require__(6244);
|
||
var toIndexedObject = __webpack_require__(5656);
|
||
var createProperty = __webpack_require__(6135);
|
||
var wellKnownSymbol = __webpack_require__(5112);
|
||
var arrayMethodHasSpeciesSupport = __webpack_require__(1194);
|
||
|
||
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');
|
||
|
||
var SPECIES = wellKnownSymbol('species');
|
||
var nativeSlice = [].slice;
|
||
var max = Math.max;
|
||
|
||
// `Array.prototype.slice` method
|
||
// https://tc39.es/ecma262/#sec-array.prototype.slice
|
||
// fallback for not array-like ES3 strings and DOM objects
|
||
$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
||
slice: function slice(start, end) {
|
||
var O = toIndexedObject(this);
|
||
var length = lengthOfArrayLike(O);
|
||
var k = toAbsoluteIndex(start, length);
|
||
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
||
// inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
|
||
var Constructor, result, n;
|
||
if (isArray(O)) {
|
||
Constructor = O.constructor;
|
||
// cross-realm fallback
|
||
if (isConstructor(Constructor) && (Constructor === Array || isArray(Constructor.prototype))) {
|
||
Constructor = undefined;
|
||
} else if (isObject(Constructor)) {
|
||
Constructor = Constructor[SPECIES];
|
||
if (Constructor === null) Constructor = undefined;
|
||
}
|
||
if (Constructor === Array || Constructor === undefined) {
|
||
return nativeSlice.call(O, k, fin);
|
||
}
|
||
}
|
||
result = new (Constructor === undefined ? Array : Constructor)(max(fin - k, 0));
|
||
for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
|
||
result.length = n;
|
||
return result;
|
||
}
|
||
});
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 8309:
|
||
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var DESCRIPTORS = __webpack_require__(9781);
|
||
var FUNCTION_NAME_EXISTS = __webpack_require__(6530).EXISTS;
|
||
var defineProperty = __webpack_require__(3070).f;
|
||
|
||
var FunctionPrototype = Function.prototype;
|
||
var FunctionPrototypeToString = FunctionPrototype.toString;
|
||
var nameRE = /^\s*function ([^ (]*)/;
|
||
var NAME = 'name';
|
||
|
||
// Function instances `.name` property
|
||
// https://tc39.es/ecma262/#sec-function-instances-name
|
||
if (DESCRIPTORS && !FUNCTION_NAME_EXISTS) {
|
||
defineProperty(FunctionPrototype, NAME, {
|
||
configurable: true,
|
||
get: function () {
|
||
try {
|
||
return FunctionPrototypeToString.call(this).match(nameRE)[1];
|
||
} catch (error) {
|
||
return '';
|
||
}
|
||
}
|
||
});
|
||
}
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 5003:
|
||
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var $ = __webpack_require__(2109);
|
||
var fails = __webpack_require__(7293);
|
||
var toIndexedObject = __webpack_require__(5656);
|
||
var nativeGetOwnPropertyDescriptor = __webpack_require__(1236).f;
|
||
var DESCRIPTORS = __webpack_require__(9781);
|
||
|
||
var FAILS_ON_PRIMITIVES = fails(function () { nativeGetOwnPropertyDescriptor(1); });
|
||
var FORCED = !DESCRIPTORS || FAILS_ON_PRIMITIVES;
|
||
|
||
// `Object.getOwnPropertyDescriptor` method
|
||
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
||
$({ target: 'Object', stat: true, forced: FORCED, sham: !DESCRIPTORS }, {
|
||
getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {
|
||
return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key);
|
||
}
|
||
});
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 9337:
|
||
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var $ = __webpack_require__(2109);
|
||
var DESCRIPTORS = __webpack_require__(9781);
|
||
var ownKeys = __webpack_require__(3887);
|
||
var toIndexedObject = __webpack_require__(5656);
|
||
var getOwnPropertyDescriptorModule = __webpack_require__(1236);
|
||
var createProperty = __webpack_require__(6135);
|
||
|
||
// `Object.getOwnPropertyDescriptors` method
|
||
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptors
|
||
$({ target: 'Object', stat: true, sham: !DESCRIPTORS }, {
|
||
getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
|
||
var O = toIndexedObject(object);
|
||
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
||
var keys = ownKeys(O);
|
||
var result = {};
|
||
var index = 0;
|
||
var key, descriptor;
|
||
while (keys.length > index) {
|
||
descriptor = getOwnPropertyDescriptor(O, key = keys[index++]);
|
||
if (descriptor !== undefined) createProperty(result, key, descriptor);
|
||
}
|
||
return result;
|
||
}
|
||
});
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 7941:
|
||
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var $ = __webpack_require__(2109);
|
||
var toObject = __webpack_require__(7908);
|
||
var nativeKeys = __webpack_require__(1956);
|
||
var fails = __webpack_require__(7293);
|
||
|
||
var FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });
|
||
|
||
// `Object.keys` method
|
||
// https://tc39.es/ecma262/#sec-object.keys
|
||
$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
|
||
keys: function keys(it) {
|
||
return nativeKeys(toObject(it));
|
||
}
|
||
});
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 1539:
|
||
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var TO_STRING_TAG_SUPPORT = __webpack_require__(1694);
|
||
var redefine = __webpack_require__(1320);
|
||
var toString = __webpack_require__(288);
|
||
|
||
// `Object.prototype.toString` method
|
||
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
||
if (!TO_STRING_TAG_SUPPORT) {
|
||
redefine(Object.prototype, 'toString', toString, { unsafe: true });
|
||
}
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 4603:
|
||
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var DESCRIPTORS = __webpack_require__(9781);
|
||
var global = __webpack_require__(7854);
|
||
var isForced = __webpack_require__(4705);
|
||
var inheritIfRequired = __webpack_require__(9587);
|
||
var createNonEnumerableProperty = __webpack_require__(8880);
|
||
var defineProperty = __webpack_require__(3070).f;
|
||
var getOwnPropertyNames = __webpack_require__(8006).f;
|
||
var isRegExp = __webpack_require__(7850);
|
||
var toString = __webpack_require__(1340);
|
||
var getFlags = __webpack_require__(7066);
|
||
var stickyHelpers = __webpack_require__(2999);
|
||
var redefine = __webpack_require__(1320);
|
||
var fails = __webpack_require__(7293);
|
||
var hasOwn = __webpack_require__(2597);
|
||
var enforceInternalState = __webpack_require__(9909).enforce;
|
||
var setSpecies = __webpack_require__(6340);
|
||
var wellKnownSymbol = __webpack_require__(5112);
|
||
var UNSUPPORTED_DOT_ALL = __webpack_require__(9441);
|
||
var UNSUPPORTED_NCG = __webpack_require__(7168);
|
||
|
||
var MATCH = wellKnownSymbol('match');
|
||
var NativeRegExp = global.RegExp;
|
||
var RegExpPrototype = NativeRegExp.prototype;
|
||
// TODO: Use only propper RegExpIdentifierName
|
||
var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/;
|
||
var re1 = /a/g;
|
||
var re2 = /a/g;
|
||
|
||
// "new" should create a new object, old webkit bug
|
||
var CORRECT_NEW = new NativeRegExp(re1) !== re1;
|
||
|
||
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
|
||
|
||
var BASE_FORCED = DESCRIPTORS &&
|
||
(!CORRECT_NEW || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG || fails(function () {
|
||
re2[MATCH] = false;
|
||
// RegExp constructor can alter flags and IsRegExp works correct with @@match
|
||
return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i';
|
||
}));
|
||
|
||
var handleDotAll = function (string) {
|
||
var length = string.length;
|
||
var index = 0;
|
||
var result = '';
|
||
var brackets = false;
|
||
var chr;
|
||
for (; index <= length; index++) {
|
||
chr = string.charAt(index);
|
||
if (chr === '\\') {
|
||
result += chr + string.charAt(++index);
|
||
continue;
|
||
}
|
||
if (!brackets && chr === '.') {
|
||
result += '[\\s\\S]';
|
||
} else {
|
||
if (chr === '[') {
|
||
brackets = true;
|
||
} else if (chr === ']') {
|
||
brackets = false;
|
||
} result += chr;
|
||
}
|
||
} return result;
|
||
};
|
||
|
||
var handleNCG = function (string) {
|
||
var length = string.length;
|
||
var index = 0;
|
||
var result = '';
|
||
var named = [];
|
||
var names = {};
|
||
var brackets = false;
|
||
var ncg = false;
|
||
var groupid = 0;
|
||
var groupname = '';
|
||
var chr;
|
||
for (; index <= length; index++) {
|
||
chr = string.charAt(index);
|
||
if (chr === '\\') {
|
||
chr = chr + string.charAt(++index);
|
||
} else if (chr === ']') {
|
||
brackets = false;
|
||
} else if (!brackets) switch (true) {
|
||
case chr === '[':
|
||
brackets = true;
|
||
break;
|
||
case chr === '(':
|
||
if (IS_NCG.test(string.slice(index + 1))) {
|
||
index += 2;
|
||
ncg = true;
|
||
}
|
||
result += chr;
|
||
groupid++;
|
||
continue;
|
||
case chr === '>' && ncg:
|
||
if (groupname === '' || hasOwn(names, groupname)) {
|
||
throw new SyntaxError('Invalid capture group name');
|
||
}
|
||
names[groupname] = true;
|
||
named.push([groupname, groupid]);
|
||
ncg = false;
|
||
groupname = '';
|
||
continue;
|
||
}
|
||
if (ncg) groupname += chr;
|
||
else result += chr;
|
||
} return [result, named];
|
||
};
|
||
|
||
// `RegExp` constructor
|
||
// https://tc39.es/ecma262/#sec-regexp-constructor
|
||
if (isForced('RegExp', BASE_FORCED)) {
|
||
var RegExpWrapper = function RegExp(pattern, flags) {
|
||
var thisIsRegExp = this instanceof RegExpWrapper;
|
||
var patternIsRegExp = isRegExp(pattern);
|
||
var flagsAreUndefined = flags === undefined;
|
||
var groups = [];
|
||
var rawPattern = pattern;
|
||
var rawFlags, dotAll, sticky, handled, result, state;
|
||
|
||
if (!thisIsRegExp && patternIsRegExp && flagsAreUndefined && pattern.constructor === RegExpWrapper) {
|
||
return pattern;
|
||
}
|
||
|
||
if (patternIsRegExp || pattern instanceof RegExpWrapper) {
|
||
pattern = pattern.source;
|
||
if (flagsAreUndefined) flags = 'flags' in rawPattern ? rawPattern.flags : getFlags.call(rawPattern);
|
||
}
|
||
|
||
pattern = pattern === undefined ? '' : toString(pattern);
|
||
flags = flags === undefined ? '' : toString(flags);
|
||
rawPattern = pattern;
|
||
|
||
if (UNSUPPORTED_DOT_ALL && 'dotAll' in re1) {
|
||
dotAll = !!flags && flags.indexOf('s') > -1;
|
||
if (dotAll) flags = flags.replace(/s/g, '');
|
||
}
|
||
|
||
rawFlags = flags;
|
||
|
||
if (UNSUPPORTED_Y && 'sticky' in re1) {
|
||
sticky = !!flags && flags.indexOf('y') > -1;
|
||
if (sticky) flags = flags.replace(/y/g, '');
|
||
}
|
||
|
||
if (UNSUPPORTED_NCG) {
|
||
handled = handleNCG(pattern);
|
||
pattern = handled[0];
|
||
groups = handled[1];
|
||
}
|
||
|
||
result = inheritIfRequired(NativeRegExp(pattern, flags), thisIsRegExp ? this : RegExpPrototype, RegExpWrapper);
|
||
|
||
if (dotAll || sticky || groups.length) {
|
||
state = enforceInternalState(result);
|
||
if (dotAll) {
|
||
state.dotAll = true;
|
||
state.raw = RegExpWrapper(handleDotAll(pattern), rawFlags);
|
||
}
|
||
if (sticky) state.sticky = true;
|
||
if (groups.length) state.groups = groups;
|
||
}
|
||
|
||
if (pattern !== rawPattern) try {
|
||
// fails in old engines, but we have no alternatives for unsupported regex syntax
|
||
createNonEnumerableProperty(result, 'source', rawPattern === '' ? '(?:)' : rawPattern);
|
||
} catch (error) { /* empty */ }
|
||
|
||
return result;
|
||
};
|
||
|
||
var proxy = function (key) {
|
||
key in RegExpWrapper || defineProperty(RegExpWrapper, key, {
|
||
configurable: true,
|
||
get: function () { return NativeRegExp[key]; },
|
||
set: function (it) { NativeRegExp[key] = it; }
|
||
});
|
||
};
|
||
|
||
for (var keys = getOwnPropertyNames(NativeRegExp), index = 0; keys.length > index;) {
|
||
proxy(keys[index++]);
|
||
}
|
||
|
||
RegExpPrototype.constructor = RegExpWrapper;
|
||
RegExpWrapper.prototype = RegExpPrototype;
|
||
redefine(global, 'RegExp', RegExpWrapper);
|
||
}
|
||
|
||
// https://tc39.es/ecma262/#sec-get-regexp-@@species
|
||
setSpecies('RegExp');
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 4916:
|
||
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
var $ = __webpack_require__(2109);
|
||
var exec = __webpack_require__(2261);
|
||
|
||
// `RegExp.prototype.exec` method
|
||
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
||
$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
||
exec: exec
|
||
});
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 9714:
|
||
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
var PROPER_FUNCTION_NAME = __webpack_require__(6530).PROPER;
|
||
var redefine = __webpack_require__(1320);
|
||
var anObject = __webpack_require__(9670);
|
||
var $toString = __webpack_require__(1340);
|
||
var fails = __webpack_require__(7293);
|
||
var flags = __webpack_require__(7066);
|
||
|
||
var TO_STRING = 'toString';
|
||
var RegExpPrototype = RegExp.prototype;
|
||
var nativeToString = RegExpPrototype[TO_STRING];
|
||
|
||
var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
||
// FF44- RegExp#toString has a wrong name
|
||
var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING;
|
||
|
||
// `RegExp.prototype.toString` method
|
||
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
||
if (NOT_GENERIC || INCORRECT_NAME) {
|
||
redefine(RegExp.prototype, TO_STRING, function toString() {
|
||
var R = anObject(this);
|
||
var p = $toString(R.source);
|
||
var rf = R.flags;
|
||
var f = $toString(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype) ? flags.call(R) : rf);
|
||
return '/' + p + '/' + f;
|
||
}, { unsafe: true });
|
||
}
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 23:
|
||
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
var $ = __webpack_require__(2109);
|
||
var notARegExp = __webpack_require__(929);
|
||
var requireObjectCoercible = __webpack_require__(4488);
|
||
var toString = __webpack_require__(1340);
|
||
var correctIsRegExpLogic = __webpack_require__(964);
|
||
|
||
// `String.prototype.includes` method
|
||
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
||
$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
||
includes: function includes(searchString /* , position = 0 */) {
|
||
return !!~toString(requireObjectCoercible(this))
|
||
.indexOf(toString(notARegExp(searchString)), arguments.length > 1 ? arguments[1] : undefined);
|
||
}
|
||
});
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 8783:
|
||
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
var charAt = __webpack_require__(8710).charAt;
|
||
var toString = __webpack_require__(1340);
|
||
var InternalStateModule = __webpack_require__(9909);
|
||
var defineIterator = __webpack_require__(654);
|
||
|
||
var STRING_ITERATOR = 'String Iterator';
|
||
var setInternalState = InternalStateModule.set;
|
||
var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);
|
||
|
||
// `String.prototype[@@iterator]` method
|
||
// https://tc39.es/ecma262/#sec-string.prototype-@@iterator
|
||
defineIterator(String, 'String', function (iterated) {
|
||
setInternalState(this, {
|
||
type: STRING_ITERATOR,
|
||
string: toString(iterated),
|
||
index: 0
|
||
});
|
||
// `%StringIteratorPrototype%.next` method
|
||
// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next
|
||
}, function next() {
|
||
var state = getInternalState(this);
|
||
var string = state.string;
|
||
var index = state.index;
|
||
var point;
|
||
if (index >= string.length) return { value: undefined, done: true };
|
||
point = charAt(string, index);
|
||
state.index += point.length;
|
||
return { value: point, done: false };
|
||
});
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 6373:
|
||
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
/* eslint-disable es/no-string-prototype-matchall -- safe */
|
||
var $ = __webpack_require__(2109);
|
||
var createIteratorConstructor = __webpack_require__(4994);
|
||
var requireObjectCoercible = __webpack_require__(4488);
|
||
var toLength = __webpack_require__(7466);
|
||
var toString = __webpack_require__(1340);
|
||
var anObject = __webpack_require__(9670);
|
||
var classof = __webpack_require__(4326);
|
||
var isRegExp = __webpack_require__(7850);
|
||
var getRegExpFlags = __webpack_require__(7066);
|
||
var getMethod = __webpack_require__(8173);
|
||
var redefine = __webpack_require__(1320);
|
||
var fails = __webpack_require__(7293);
|
||
var wellKnownSymbol = __webpack_require__(5112);
|
||
var speciesConstructor = __webpack_require__(6707);
|
||
var advanceStringIndex = __webpack_require__(1530);
|
||
var regExpExec = __webpack_require__(7651);
|
||
var InternalStateModule = __webpack_require__(9909);
|
||
var IS_PURE = __webpack_require__(1913);
|
||
|
||
var MATCH_ALL = wellKnownSymbol('matchAll');
|
||
var REGEXP_STRING = 'RegExp String';
|
||
var REGEXP_STRING_ITERATOR = REGEXP_STRING + ' Iterator';
|
||
var setInternalState = InternalStateModule.set;
|
||
var getInternalState = InternalStateModule.getterFor(REGEXP_STRING_ITERATOR);
|
||
var RegExpPrototype = RegExp.prototype;
|
||
var nativeMatchAll = ''.matchAll;
|
||
|
||
var WORKS_WITH_NON_GLOBAL_REGEX = !!nativeMatchAll && !fails(function () {
|
||
'a'.matchAll(/./);
|
||
});
|
||
|
||
// eslint-disable-next-line max-len -- ignore
|
||
var $RegExpStringIterator = createIteratorConstructor(function RegExpStringIterator(regexp, string, global, fullUnicode) {
|
||
setInternalState(this, {
|
||
type: REGEXP_STRING_ITERATOR,
|
||
regexp: regexp,
|
||
string: string,
|
||
global: global,
|
||
unicode: fullUnicode,
|
||
done: false
|
||
});
|
||
}, REGEXP_STRING, function next() {
|
||
var state = getInternalState(this);
|
||
if (state.done) return { value: undefined, done: true };
|
||
var R = state.regexp;
|
||
var S = state.string;
|
||
var match = regExpExec(R, S);
|
||
if (match === null) return { value: undefined, done: state.done = true };
|
||
if (state.global) {
|
||
if (toString(match[0]) === '') R.lastIndex = advanceStringIndex(S, toLength(R.lastIndex), state.unicode);
|
||
return { value: match, done: false };
|
||
}
|
||
state.done = true;
|
||
return { value: match, done: false };
|
||
});
|
||
|
||
var $matchAll = function (string) {
|
||
var R = anObject(this);
|
||
var S = toString(string);
|
||
var C, flagsValue, flags, matcher, global, fullUnicode;
|
||
C = speciesConstructor(R, RegExp);
|
||
flagsValue = R.flags;
|
||
if (flagsValue === undefined && R instanceof RegExp && !('flags' in RegExpPrototype)) {
|
||
flagsValue = getRegExpFlags.call(R);
|
||
}
|
||
flags = flagsValue === undefined ? '' : toString(flagsValue);
|
||
matcher = new C(C === RegExp ? R.source : R, flags);
|
||
global = !!~flags.indexOf('g');
|
||
fullUnicode = !!~flags.indexOf('u');
|
||
matcher.lastIndex = toLength(R.lastIndex);
|
||
return new $RegExpStringIterator(matcher, S, global, fullUnicode);
|
||
};
|
||
|
||
// `String.prototype.matchAll` method
|
||
// https://tc39.es/ecma262/#sec-string.prototype.matchall
|
||
$({ target: 'String', proto: true, forced: WORKS_WITH_NON_GLOBAL_REGEX }, {
|
||
matchAll: function matchAll(regexp) {
|
||
var O = requireObjectCoercible(this);
|
||
var flags, S, matcher, rx;
|
||
if (regexp != null) {
|
||
if (isRegExp(regexp)) {
|
||
flags = toString(requireObjectCoercible('flags' in RegExpPrototype
|
||
? regexp.flags
|
||
: getRegExpFlags.call(regexp)
|
||
));
|
||
if (!~flags.indexOf('g')) throw TypeError('`.matchAll` does not allow non-global regexes');
|
||
}
|
||
if (WORKS_WITH_NON_GLOBAL_REGEX) return nativeMatchAll.apply(O, arguments);
|
||
matcher = getMethod(regexp, MATCH_ALL);
|
||
if (matcher === undefined && IS_PURE && classof(regexp) == 'RegExp') matcher = $matchAll;
|
||
if (matcher) return matcher.call(regexp, O);
|
||
} else if (WORKS_WITH_NON_GLOBAL_REGEX) return nativeMatchAll.apply(O, arguments);
|
||
S = toString(O);
|
||
rx = new RegExp(regexp, 'g');
|
||
return IS_PURE ? $matchAll.call(rx, S) : rx[MATCH_ALL](S);
|
||
}
|
||
});
|
||
|
||
IS_PURE || MATCH_ALL in RegExpPrototype || redefine(RegExpPrototype, MATCH_ALL, $matchAll);
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 3123:
|
||
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
var fixRegExpWellKnownSymbolLogic = __webpack_require__(7007);
|
||
var isRegExp = __webpack_require__(7850);
|
||
var anObject = __webpack_require__(9670);
|
||
var requireObjectCoercible = __webpack_require__(4488);
|
||
var speciesConstructor = __webpack_require__(6707);
|
||
var advanceStringIndex = __webpack_require__(1530);
|
||
var toLength = __webpack_require__(7466);
|
||
var toString = __webpack_require__(1340);
|
||
var getMethod = __webpack_require__(8173);
|
||
var callRegExpExec = __webpack_require__(7651);
|
||
var regexpExec = __webpack_require__(2261);
|
||
var stickyHelpers = __webpack_require__(2999);
|
||
var fails = __webpack_require__(7293);
|
||
|
||
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
|
||
var arrayPush = [].push;
|
||
var min = Math.min;
|
||
var MAX_UINT32 = 0xFFFFFFFF;
|
||
|
||
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
|
||
// Weex JS has frozen built-in prototypes, so use try / catch wrapper
|
||
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
|
||
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
||
var re = /(?:)/;
|
||
var originalExec = re.exec;
|
||
re.exec = function () { return originalExec.apply(this, arguments); };
|
||
var result = 'ab'.split(re);
|
||
return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
|
||
});
|
||
|
||
// @@split logic
|
||
fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) {
|
||
var internalSplit;
|
||
if (
|
||
'abbc'.split(/(b)*/)[1] == 'c' ||
|
||
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
||
'test'.split(/(?:)/, -1).length != 4 ||
|
||
'ab'.split(/(?:ab)*/).length != 2 ||
|
||
'.'.split(/(.?)(.?)/).length != 4 ||
|
||
// eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
|
||
'.'.split(/()()/).length > 1 ||
|
||
''.split(/.?/).length
|
||
) {
|
||
// based on es5-shim implementation, need to rework it
|
||
internalSplit = function (separator, limit) {
|
||
var string = toString(requireObjectCoercible(this));
|
||
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
||
if (lim === 0) return [];
|
||
if (separator === undefined) return [string];
|
||
// If `separator` is not a regex, use native split
|
||
if (!isRegExp(separator)) {
|
||
return nativeSplit.call(string, separator, lim);
|
||
}
|
||
var output = [];
|
||
var flags = (separator.ignoreCase ? 'i' : '') +
|
||
(separator.multiline ? 'm' : '') +
|
||
(separator.unicode ? 'u' : '') +
|
||
(separator.sticky ? 'y' : '');
|
||
var lastLastIndex = 0;
|
||
// Make `global` and avoid `lastIndex` issues by working with a copy
|
||
var separatorCopy = new RegExp(separator.source, flags + 'g');
|
||
var match, lastIndex, lastLength;
|
||
while (match = regexpExec.call(separatorCopy, string)) {
|
||
lastIndex = separatorCopy.lastIndex;
|
||
if (lastIndex > lastLastIndex) {
|
||
output.push(string.slice(lastLastIndex, match.index));
|
||
if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1));
|
||
lastLength = match[0].length;
|
||
lastLastIndex = lastIndex;
|
||
if (output.length >= lim) break;
|
||
}
|
||
if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
|
||
}
|
||
if (lastLastIndex === string.length) {
|
||
if (lastLength || !separatorCopy.test('')) output.push('');
|
||
} else output.push(string.slice(lastLastIndex));
|
||
return output.length > lim ? output.slice(0, lim) : output;
|
||
};
|
||
// Chakra, V8
|
||
} else if ('0'.split(undefined, 0).length) {
|
||
internalSplit = function (separator, limit) {
|
||
return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit);
|
||
};
|
||
} else internalSplit = nativeSplit;
|
||
|
||
return [
|
||
// `String.prototype.split` method
|
||
// https://tc39.es/ecma262/#sec-string.prototype.split
|
||
function split(separator, limit) {
|
||
var O = requireObjectCoercible(this);
|
||
var splitter = separator == undefined ? undefined : getMethod(separator, SPLIT);
|
||
return splitter
|
||
? splitter.call(separator, O, limit)
|
||
: internalSplit.call(toString(O), separator, limit);
|
||
},
|
||
// `RegExp.prototype[@@split]` method
|
||
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
||
//
|
||
// NOTE: This cannot be properly polyfilled in engines that don't support
|
||
// the 'y' flag.
|
||
function (string, limit) {
|
||
var rx = anObject(this);
|
||
var S = toString(string);
|
||
var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
|
||
|
||
if (res.done) return res.value;
|
||
|
||
var C = speciesConstructor(rx, RegExp);
|
||
|
||
var unicodeMatching = rx.unicode;
|
||
var flags = (rx.ignoreCase ? 'i' : '') +
|
||
(rx.multiline ? 'm' : '') +
|
||
(rx.unicode ? 'u' : '') +
|
||
(UNSUPPORTED_Y ? 'g' : 'y');
|
||
|
||
// ^(? + rx + ) is needed, in combination with some S slicing, to
|
||
// simulate the 'y' flag.
|
||
var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
|
||
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
||
if (lim === 0) return [];
|
||
if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
|
||
var p = 0;
|
||
var q = 0;
|
||
var A = [];
|
||
while (q < S.length) {
|
||
splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
|
||
var z = callRegExpExec(splitter, UNSUPPORTED_Y ? S.slice(q) : S);
|
||
var e;
|
||
if (
|
||
z === null ||
|
||
(e = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p
|
||
) {
|
||
q = advanceStringIndex(S, q, unicodeMatching);
|
||
} else {
|
||
A.push(S.slice(p, q));
|
||
if (A.length === lim) return A;
|
||
for (var i = 1; i <= z.length - 1; i++) {
|
||
A.push(z[i]);
|
||
if (A.length === lim) return A;
|
||
}
|
||
q = p = e;
|
||
}
|
||
}
|
||
A.push(S.slice(p));
|
||
return A;
|
||
}
|
||
];
|
||
}, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 3210:
|
||
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
var $ = __webpack_require__(2109);
|
||
var $trim = __webpack_require__(3111).trim;
|
||
var forcedStringTrimMethod = __webpack_require__(6091);
|
||
|
||
// `String.prototype.trim` method
|
||
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
||
$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
|
||
trim: function trim() {
|
||
return $trim(this);
|
||
}
|
||
});
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 1817:
|
||
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
// `Symbol.prototype.description` getter
|
||
// https://tc39.es/ecma262/#sec-symbol.prototype.description
|
||
|
||
var $ = __webpack_require__(2109);
|
||
var DESCRIPTORS = __webpack_require__(9781);
|
||
var global = __webpack_require__(7854);
|
||
var hasOwn = __webpack_require__(2597);
|
||
var isCallable = __webpack_require__(614);
|
||
var isObject = __webpack_require__(111);
|
||
var defineProperty = __webpack_require__(3070).f;
|
||
var copyConstructorProperties = __webpack_require__(9920);
|
||
|
||
var NativeSymbol = global.Symbol;
|
||
|
||
if (DESCRIPTORS && isCallable(NativeSymbol) && (!('description' in NativeSymbol.prototype) ||
|
||
// Safari 12 bug
|
||
NativeSymbol().description !== undefined
|
||
)) {
|
||
var EmptyStringDescriptionStore = {};
|
||
// wrap Symbol constructor for correct work with undefined description
|
||
var SymbolWrapper = function Symbol() {
|
||
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
|
||
var result = this instanceof SymbolWrapper
|
||
? new NativeSymbol(description)
|
||
// in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
|
||
: description === undefined ? NativeSymbol() : NativeSymbol(description);
|
||
if (description === '') EmptyStringDescriptionStore[result] = true;
|
||
return result;
|
||
};
|
||
copyConstructorProperties(SymbolWrapper, NativeSymbol);
|
||
var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
|
||
symbolPrototype.constructor = SymbolWrapper;
|
||
|
||
var symbolToString = symbolPrototype.toString;
|
||
var nativeSymbol = String(NativeSymbol('test')) == 'Symbol(test)';
|
||
var regexp = /^Symbol\((.*)\)[^)]+$/;
|
||
defineProperty(symbolPrototype, 'description', {
|
||
configurable: true,
|
||
get: function description() {
|
||
var symbol = isObject(this) ? this.valueOf() : this;
|
||
var string = symbolToString.call(symbol);
|
||
if (hasOwn(EmptyStringDescriptionStore, symbol)) return '';
|
||
var desc = nativeSymbol ? string.slice(7, -1) : string.replace(regexp, '$1');
|
||
return desc === '' ? undefined : desc;
|
||
}
|
||
});
|
||
|
||
$({ global: true, forced: true }, {
|
||
Symbol: SymbolWrapper
|
||
});
|
||
}
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 2165:
|
||
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var defineWellKnownSymbol = __webpack_require__(7235);
|
||
|
||
// `Symbol.iterator` well-known symbol
|
||
// https://tc39.es/ecma262/#sec-symbol.iterator
|
||
defineWellKnownSymbol('iterator');
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 2526:
|
||
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
var $ = __webpack_require__(2109);
|
||
var global = __webpack_require__(7854);
|
||
var getBuiltIn = __webpack_require__(5005);
|
||
var IS_PURE = __webpack_require__(1913);
|
||
var DESCRIPTORS = __webpack_require__(9781);
|
||
var NATIVE_SYMBOL = __webpack_require__(133);
|
||
var fails = __webpack_require__(7293);
|
||
var hasOwn = __webpack_require__(2597);
|
||
var isArray = __webpack_require__(3157);
|
||
var isCallable = __webpack_require__(614);
|
||
var isObject = __webpack_require__(111);
|
||
var isSymbol = __webpack_require__(2190);
|
||
var anObject = __webpack_require__(9670);
|
||
var toObject = __webpack_require__(7908);
|
||
var toIndexedObject = __webpack_require__(5656);
|
||
var toPropertyKey = __webpack_require__(4948);
|
||
var $toString = __webpack_require__(1340);
|
||
var createPropertyDescriptor = __webpack_require__(9114);
|
||
var nativeObjectCreate = __webpack_require__(30);
|
||
var objectKeys = __webpack_require__(1956);
|
||
var getOwnPropertyNamesModule = __webpack_require__(8006);
|
||
var getOwnPropertyNamesExternal = __webpack_require__(1156);
|
||
var getOwnPropertySymbolsModule = __webpack_require__(5181);
|
||
var getOwnPropertyDescriptorModule = __webpack_require__(1236);
|
||
var definePropertyModule = __webpack_require__(3070);
|
||
var propertyIsEnumerableModule = __webpack_require__(5296);
|
||
var redefine = __webpack_require__(1320);
|
||
var shared = __webpack_require__(2309);
|
||
var sharedKey = __webpack_require__(6200);
|
||
var hiddenKeys = __webpack_require__(3501);
|
||
var uid = __webpack_require__(9711);
|
||
var wellKnownSymbol = __webpack_require__(5112);
|
||
var wrappedWellKnownSymbolModule = __webpack_require__(6061);
|
||
var defineWellKnownSymbol = __webpack_require__(7235);
|
||
var setToStringTag = __webpack_require__(8003);
|
||
var InternalStateModule = __webpack_require__(9909);
|
||
var $forEach = __webpack_require__(2092).forEach;
|
||
|
||
var HIDDEN = sharedKey('hidden');
|
||
var SYMBOL = 'Symbol';
|
||
var PROTOTYPE = 'prototype';
|
||
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
||
var setInternalState = InternalStateModule.set;
|
||
var getInternalState = InternalStateModule.getterFor(SYMBOL);
|
||
var ObjectPrototype = Object[PROTOTYPE];
|
||
var $Symbol = global.Symbol;
|
||
var $stringify = getBuiltIn('JSON', 'stringify');
|
||
var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
||
var nativeDefineProperty = definePropertyModule.f;
|
||
var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;
|
||
var nativePropertyIsEnumerable = propertyIsEnumerableModule.f;
|
||
var AllSymbols = shared('symbols');
|
||
var ObjectPrototypeSymbols = shared('op-symbols');
|
||
var StringToSymbolRegistry = shared('string-to-symbol-registry');
|
||
var SymbolToStringRegistry = shared('symbol-to-string-registry');
|
||
var WellKnownSymbolsStore = shared('wks');
|
||
var QObject = global.QObject;
|
||
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
|
||
var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
|
||
|
||
// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
|
||
var setSymbolDescriptor = DESCRIPTORS && fails(function () {
|
||
return nativeObjectCreate(nativeDefineProperty({}, 'a', {
|
||
get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }
|
||
})).a != 7;
|
||
}) ? function (O, P, Attributes) {
|
||
var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P);
|
||
if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];
|
||
nativeDefineProperty(O, P, Attributes);
|
||
if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
|
||
nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);
|
||
}
|
||
} : nativeDefineProperty;
|
||
|
||
var wrap = function (tag, description) {
|
||
var symbol = AllSymbols[tag] = nativeObjectCreate($Symbol[PROTOTYPE]);
|
||
setInternalState(symbol, {
|
||
type: SYMBOL,
|
||
tag: tag,
|
||
description: description
|
||
});
|
||
if (!DESCRIPTORS) symbol.description = description;
|
||
return symbol;
|
||
};
|
||
|
||
var $defineProperty = function defineProperty(O, P, Attributes) {
|
||
if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
|
||
anObject(O);
|
||
var key = toPropertyKey(P);
|
||
anObject(Attributes);
|
||
if (hasOwn(AllSymbols, key)) {
|
||
if (!Attributes.enumerable) {
|
||
if (!hasOwn(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {}));
|
||
O[HIDDEN][key] = true;
|
||
} else {
|
||
if (hasOwn(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
|
||
Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
|
||
} return setSymbolDescriptor(O, key, Attributes);
|
||
} return nativeDefineProperty(O, key, Attributes);
|
||
};
|
||
|
||
var $defineProperties = function defineProperties(O, Properties) {
|
||
anObject(O);
|
||
var properties = toIndexedObject(Properties);
|
||
var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
|
||
$forEach(keys, function (key) {
|
||
if (!DESCRIPTORS || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);
|
||
});
|
||
return O;
|
||
};
|
||
|
||
var $create = function create(O, Properties) {
|
||
return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);
|
||
};
|
||
|
||
var $propertyIsEnumerable = function propertyIsEnumerable(V) {
|
||
var P = toPropertyKey(V);
|
||
var enumerable = nativePropertyIsEnumerable.call(this, P);
|
||
if (this === ObjectPrototype && hasOwn(AllSymbols, P) && !hasOwn(ObjectPrototypeSymbols, P)) return false;
|
||
return enumerable || !hasOwn(this, P) || !hasOwn(AllSymbols, P) || hasOwn(this, HIDDEN) && this[HIDDEN][P]
|
||
? enumerable : true;
|
||
};
|
||
|
||
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
|
||
var it = toIndexedObject(O);
|
||
var key = toPropertyKey(P);
|
||
if (it === ObjectPrototype && hasOwn(AllSymbols, key) && !hasOwn(ObjectPrototypeSymbols, key)) return;
|
||
var descriptor = nativeGetOwnPropertyDescriptor(it, key);
|
||
if (descriptor && hasOwn(AllSymbols, key) && !(hasOwn(it, HIDDEN) && it[HIDDEN][key])) {
|
||
descriptor.enumerable = true;
|
||
}
|
||
return descriptor;
|
||
};
|
||
|
||
var $getOwnPropertyNames = function getOwnPropertyNames(O) {
|
||
var names = nativeGetOwnPropertyNames(toIndexedObject(O));
|
||
var result = [];
|
||
$forEach(names, function (key) {
|
||
if (!hasOwn(AllSymbols, key) && !hasOwn(hiddenKeys, key)) result.push(key);
|
||
});
|
||
return result;
|
||
};
|
||
|
||
var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
|
||
var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
|
||
var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
|
||
var result = [];
|
||
$forEach(names, function (key) {
|
||
if (hasOwn(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || hasOwn(ObjectPrototype, key))) {
|
||
result.push(AllSymbols[key]);
|
||
}
|
||
});
|
||
return result;
|
||
};
|
||
|
||
// `Symbol` constructor
|
||
// https://tc39.es/ecma262/#sec-symbol-constructor
|
||
if (!NATIVE_SYMBOL) {
|
||
$Symbol = function Symbol() {
|
||
if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');
|
||
var description = !arguments.length || arguments[0] === undefined ? undefined : $toString(arguments[0]);
|
||
var tag = uid(description);
|
||
var setter = function (value) {
|
||
if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);
|
||
if (hasOwn(this, HIDDEN) && hasOwn(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
|
||
setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
|
||
};
|
||
if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
|
||
return wrap(tag, description);
|
||
};
|
||
|
||
redefine($Symbol[PROTOTYPE], 'toString', function toString() {
|
||
return getInternalState(this).tag;
|
||
});
|
||
|
||
redefine($Symbol, 'withoutSetter', function (description) {
|
||
return wrap(uid(description), description);
|
||
});
|
||
|
||
propertyIsEnumerableModule.f = $propertyIsEnumerable;
|
||
definePropertyModule.f = $defineProperty;
|
||
getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;
|
||
getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;
|
||
getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;
|
||
|
||
wrappedWellKnownSymbolModule.f = function (name) {
|
||
return wrap(wellKnownSymbol(name), name);
|
||
};
|
||
|
||
if (DESCRIPTORS) {
|
||
// https://github.com/tc39/proposal-Symbol-description
|
||
nativeDefineProperty($Symbol[PROTOTYPE], 'description', {
|
||
configurable: true,
|
||
get: function description() {
|
||
return getInternalState(this).description;
|
||
}
|
||
});
|
||
if (!IS_PURE) {
|
||
redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
|
||
}
|
||
}
|
||
}
|
||
|
||
$({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {
|
||
Symbol: $Symbol
|
||
});
|
||
|
||
$forEach(objectKeys(WellKnownSymbolsStore), function (name) {
|
||
defineWellKnownSymbol(name);
|
||
});
|
||
|
||
$({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
|
||
// `Symbol.for` method
|
||
// https://tc39.es/ecma262/#sec-symbol.for
|
||
'for': function (key) {
|
||
var string = $toString(key);
|
||
if (hasOwn(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
|
||
var symbol = $Symbol(string);
|
||
StringToSymbolRegistry[string] = symbol;
|
||
SymbolToStringRegistry[symbol] = string;
|
||
return symbol;
|
||
},
|
||
// `Symbol.keyFor` method
|
||
// https://tc39.es/ecma262/#sec-symbol.keyfor
|
||
keyFor: function keyFor(sym) {
|
||
if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
|
||
if (hasOwn(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
|
||
},
|
||
useSetter: function () { USE_SETTER = true; },
|
||
useSimple: function () { USE_SETTER = false; }
|
||
});
|
||
|
||
$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, {
|
||
// `Object.create` method
|
||
// https://tc39.es/ecma262/#sec-object.create
|
||
create: $create,
|
||
// `Object.defineProperty` method
|
||
// https://tc39.es/ecma262/#sec-object.defineproperty
|
||
defineProperty: $defineProperty,
|
||
// `Object.defineProperties` method
|
||
// https://tc39.es/ecma262/#sec-object.defineproperties
|
||
defineProperties: $defineProperties,
|
||
// `Object.getOwnPropertyDescriptor` method
|
||
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptors
|
||
getOwnPropertyDescriptor: $getOwnPropertyDescriptor
|
||
});
|
||
|
||
$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {
|
||
// `Object.getOwnPropertyNames` method
|
||
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
||
getOwnPropertyNames: $getOwnPropertyNames,
|
||
// `Object.getOwnPropertySymbols` method
|
||
// https://tc39.es/ecma262/#sec-object.getownpropertysymbols
|
||
getOwnPropertySymbols: $getOwnPropertySymbols
|
||
});
|
||
|
||
// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
|
||
// https://bugs.chromium.org/p/v8/issues/detail?id=3443
|
||
$({ target: 'Object', stat: true, forced: fails(function () { getOwnPropertySymbolsModule.f(1); }) }, {
|
||
getOwnPropertySymbols: function getOwnPropertySymbols(it) {
|
||
return getOwnPropertySymbolsModule.f(toObject(it));
|
||
}
|
||
});
|
||
|
||
// `JSON.stringify` method behavior with symbols
|
||
// https://tc39.es/ecma262/#sec-json.stringify
|
||
if ($stringify) {
|
||
var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails(function () {
|
||
var symbol = $Symbol();
|
||
// MS Edge converts symbol values to JSON as {}
|
||
return $stringify([symbol]) != '[null]'
|
||
// WebKit converts symbol values to JSON as null
|
||
|| $stringify({ a: symbol }) != '{}'
|
||
// V8 throws on boxed symbols
|
||
|| $stringify(Object(symbol)) != '{}';
|
||
});
|
||
|
||
$({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
|
||
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
||
stringify: function stringify(it, replacer, space) {
|
||
var args = [it];
|
||
var index = 1;
|
||
var $replacer;
|
||
while (arguments.length > index) args.push(arguments[index++]);
|
||
$replacer = replacer;
|
||
if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
|
||
if (!isArray(replacer)) replacer = function (key, value) {
|
||
if (isCallable($replacer)) value = $replacer.call(this, key, value);
|
||
if (!isSymbol(value)) return value;
|
||
};
|
||
args[1] = replacer;
|
||
return $stringify.apply(null, args);
|
||
}
|
||
});
|
||
}
|
||
|
||
// `Symbol.prototype[@@toPrimitive]` method
|
||
// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
|
||
if (!$Symbol[PROTOTYPE][TO_PRIMITIVE]) {
|
||
var valueOf = $Symbol[PROTOTYPE].valueOf;
|
||
redefine($Symbol[PROTOTYPE], TO_PRIMITIVE, function () {
|
||
return valueOf.apply(this, arguments);
|
||
});
|
||
}
|
||
// `Symbol.prototype[@@toStringTag]` property
|
||
// https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag
|
||
setToStringTag($Symbol, SYMBOL);
|
||
|
||
hiddenKeys[HIDDEN] = true;
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 4747:
|
||
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var global = __webpack_require__(7854);
|
||
var DOMIterables = __webpack_require__(8324);
|
||
var DOMTokenListPrototype = __webpack_require__(8509);
|
||
var forEach = __webpack_require__(8533);
|
||
var createNonEnumerableProperty = __webpack_require__(8880);
|
||
|
||
var handlePrototype = function (CollectionPrototype) {
|
||
// some Chrome versions have non-configurable methods on DOMTokenList
|
||
if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
|
||
createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
|
||
} catch (error) {
|
||
CollectionPrototype.forEach = forEach;
|
||
}
|
||
};
|
||
|
||
for (var COLLECTION_NAME in DOMIterables) {
|
||
if (DOMIterables[COLLECTION_NAME]) {
|
||
handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype);
|
||
}
|
||
}
|
||
|
||
handlePrototype(DOMTokenListPrototype);
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 3948:
|
||
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
var global = __webpack_require__(7854);
|
||
var DOMIterables = __webpack_require__(8324);
|
||
var DOMTokenListPrototype = __webpack_require__(8509);
|
||
var ArrayIteratorMethods = __webpack_require__(6992);
|
||
var createNonEnumerableProperty = __webpack_require__(8880);
|
||
var wellKnownSymbol = __webpack_require__(5112);
|
||
|
||
var ITERATOR = wellKnownSymbol('iterator');
|
||
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
||
var ArrayValues = ArrayIteratorMethods.values;
|
||
|
||
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
||
if (CollectionPrototype) {
|
||
// some Chrome versions have non-configurable methods on DOMTokenList
|
||
if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
|
||
createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
|
||
} catch (error) {
|
||
CollectionPrototype[ITERATOR] = ArrayValues;
|
||
}
|
||
if (!CollectionPrototype[TO_STRING_TAG]) {
|
||
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
|
||
}
|
||
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
||
// some Chrome versions have non-configurable methods on DOMTokenList
|
||
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
||
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
||
} catch (error) {
|
||
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
||
}
|
||
}
|
||
}
|
||
};
|
||
|
||
for (var COLLECTION_NAME in DOMIterables) {
|
||
handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
||
}
|
||
|
||
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
||
|
||
|
||
/***/ }),
|
||
|
||
/***/ 637:
|
||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
"use strict";
|
||
|
||
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
||
__webpack_require__(6992);
|
||
var $ = __webpack_require__(2109);
|
||
var getBuiltIn = __webpack_require__(5005);
|
||
var USE_NATIVE_URL = __webpack_require__(590);
|
||
var redefine = __webpack_require__(1320);
|
||
var redefineAll = __webpack_require__(248);
|
||
var setToStringTag = __webpack_require__(8003);
|
||
var createIteratorConstructor = __webpack_require__(4994);
|
||
var InternalStateModule = __webpack_require__(9909);
|
||
var anInstance = __webpack_require__(787);
|
||
var isCallable = __webpack_require__(614);
|
||
var hasOwn = __webpack_require__(2597);
|
||
var bind = __webpack_require__(9974);
|
||
var classof = __webpack_require__(648);
|
||
var anObject = __webpack_require__(9670);
|
||
var isObject = __webpack_require__(111);
|
||
var $toString = __webpack_require__(1340);
|
||
var create = __webpack_require__(30);
|
||
var createPropertyDescriptor = __webpack_require__(9114);
|
||
var getIterator = __webpack_require__(8554);
|
||
var getIteratorMethod = __webpack_require__(1246);
|
||
var wellKnownSymbol = __webpack_require__(5112);
|
||
|
||
var nativeFetch = getBuiltIn('fetch');
|
||
var NativeRequest = getBuiltIn('Request');
|
||
var RequestPrototype = NativeRequest && NativeRequest.prototype;
|
||
var Headers = getBuiltIn('Headers');
|
||
var ITERATOR = wellKnownSymbol('iterator');
|
||
var URL_SEARCH_PARAMS = 'URLSearchParams';
|
||
var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
|
||
var setInternalState = InternalStateModule.set;
|
||
var getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS);
|
||
var getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR);
|
||
|
||
var plus = /\+/g;
|
||
var sequences = Array(4);
|
||
|
||
var percentSequence = function (bytes) {
|
||
return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp('((?:%[\\da-f]{2}){' + bytes + '})', 'gi'));
|
||
};
|
||
|
||
var percentDecode = function (sequence) {
|
||
try {
|
||
return decodeURIComponent(sequence);
|
||
} catch (error) {
|
||
return sequence;
|
||
}
|
||
};
|
||
|
||
var deserialize = function (it) {
|
||
var result = it.replace(plus, ' ');
|
||
var bytes = 4;
|
||
try {
|
||
return decodeURIComponent(result);
|
||
} catch (error) {
|
||
while (bytes) {
|
||
result = result.replace(percentSequence(bytes--), percentDecode);
|
||
}
|
||
return result;
|
||
}
|
||
};
|
||
|
||
var find = /[!'()~]|%20/g;
|
||
|
||
var replace = {
|
||
'!': '%21',
|
||
"'": '%27',
|
||
'(': '%28',
|
||
')': '%29',
|
||
'~': '%7E',
|
||
'%20': '+'
|
||
};
|
||
|
||
var replacer = function (match) {
|
||
return replace[match];
|
||
};
|
||
|
||
var serialize = function (it) {
|
||
return encodeURIComponent(it).replace(find, replacer);
|
||
};
|
||
|
||
var parseSearchParams = function (result, query) {
|
||
if (query) {
|
||
var attributes = query.split('&');
|
||
var index = 0;
|
||
var attribute, entry;
|
||
while (index < attributes.length) {
|
||
attribute = attributes[index++];
|
||
if (attribute.length) {
|
||
entry = attribute.split('=');
|
||
result.push({
|
||
key: deserialize(entry.shift()),
|
||
value: deserialize(entry.join('='))
|
||
});
|
||
}
|
||
}
|
||
}
|
||
};
|
||
|
||
var updateSearchParams = function (query) {
|
||
this.entries.length = 0;
|
||
parseSearchParams(this.entries, query);
|
||
};
|
||
|
||
var validateArgumentsLength = function (passed, required) {
|
||
if (passed < required) throw TypeError('Not enough arguments');
|
||
};
|
||
|
||
var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
|
||
setInternalState(this, {
|
||
type: URL_SEARCH_PARAMS_ITERATOR,
|
||
iterator: getIterator(getInternalParamsState(params).entries),
|
||
kind: kind
|
||
});
|
||
}, 'Iterator', function next() {
|
||
var state = getInternalIteratorState(this);
|
||
var kind = state.kind;
|
||
var step = state.iterator.next();
|
||
var entry = step.value;
|
||
if (!step.done) {
|
||
step.value = kind === 'keys' ? entry.key : kind === 'values' ? entry.value : [entry.key, entry.value];
|
||
} return step;
|
||
});
|
||
|
||
// `URLSearchParams` constructor
|
||
// https://url.spec.whatwg.org/#interface-urlsearchparams
|
||
var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
|
||
anInstance(this, URLSearchParamsConstructor, URL_SEARCH_PARAMS);
|
||
var init = arguments.length > 0 ? arguments[0] : undefined;
|
||
var that = this;
|
||
var entries = [];
|
||
var iteratorMethod, iterator, next, step, entryIterator, entryNext, first, second, key;
|
||
|
||
setInternalState(that, {
|
||
type: URL_SEARCH_PARAMS,
|
||
entries: entries,
|
||
updateURL: function () { /* empty */ },
|
||
updateSearchParams: updateSearchParams
|
||
});
|
||
|
||
if (init !== undefined) {
|
||
if (isObject(init)) {
|
||
iteratorMethod = getIteratorMethod(init);
|
||
if (iteratorMethod) {
|
||
iterator = getIterator(init, iteratorMethod);
|
||
next = iterator.next;
|
||
while (!(step = next.call(iterator)).done) {
|
||
entryIterator = getIterator(anObject(step.value));
|
||
entryNext = entryIterator.next;
|
||
if (
|
||
(first = entryNext.call(entryIterator)).done ||
|
||
(second = entryNext.call(entryIterator)).done ||
|
||
!entryNext.call(entryIterator).done
|
||
) throw TypeError('Expected sequence with length 2');
|
||
entries.push({ key: $toString(first.value), value: $toString(second.value) });
|
||
}
|
||
} else for (key in init) if (hasOwn(init, key)) entries.push({ key: key, value: $toString(init[key]) });
|
||
} else {
|
||
parseSearchParams(
|
||
entries,
|
||
typeof init === 'string' ? init.charAt(0) === '?' ? init.slice(1) : init : $toString(init)
|
||
);
|
||
}
|
||
}
|
||
};
|
||
|
||
var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
|
||
|
||
redefineAll(URLSearchParamsPrototype, {
|
||
// `URLSearchParams.prototype.append` method
|
||
// https://url.spec.whatwg.org/#dom-urlsearchparams-append
|
||
append: function append(name, value) {
|
||
validateArgumentsLength(arguments.length, 2);
|
||
var state = getInternalParamsState(this);
|
||
state.entries.push({ key: $toString(name), value: $toString(value) });
|
||
state.updateURL();
|
||
},
|
||
// `URLSearchParams.prototype.delete` method
|
||
// https://url.spec.whatwg.org/#dom-urlsearchparams-delete
|
||
'delete': function (name) {
|
||
validateArgumentsLength(arguments.length, 1);
|
||
var state = getInternalParamsState(this);
|
||
var entries = state.entries;
|
||
var key = $toString(name);
|
||
var index = 0;
|
||
while (index < entries.length) {
|
||
if (entries[index].key === key) entries.splice(index, 1);
|
||
else index++;
|
||
}
|
||
state.updateURL();
|
||
},
|
||
// `URLSearchParams.prototype.get` method
|
||
// https://url.spec.whatwg.org/#dom-urlsearchparams-get
|
||
get: function get(name) {
|
||
validateArgumentsLength(arguments.length, 1);
|
||
var entries = getInternalParamsState(this).entries;
|
||
var key = $toString(name);
|
||
var index = 0;
|
||
for (; index < entries.length; index++) {
|
||
if (entries[index].key === key) return entries[index].value;
|
||
}
|
||
return null;
|
||
},
|
||
// `URLSearchParams.prototype.getAll` method
|
||
// https://url.spec.whatwg.org/#dom-urlsearchparams-getall
|
||
getAll: function getAll(name) {
|
||
validateArgumentsLength(arguments.length, 1);
|
||
var entries = getInternalParamsState(this).entries;
|
||
var key = $toString(name);
|
||
var result = [];
|
||
var index = 0;
|
||
for (; index < entries.length; index++) {
|
||
if (entries[index].key === key) result.push(entries[index].value);
|
||
}
|
||
return result;
|
||
},
|
||
// `URLSearchParams.prototype.has` method
|
||
// https://url.spec.whatwg.org/#dom-urlsearchparams-has
|
||
has: function has(name) {
|
||
validateArgumentsLength(arguments.length, 1);
|
||
var entries = getInternalParamsState(this).entries;
|
||
var key = $toString(name);
|
||
var index = 0;
|
||
while (index < entries.length) {
|
||
if (entries[index++].key === key) return true;
|
||
}
|
||
return false;
|
||
},
|
||
// `URLSearchParams.prototype.set` method
|
||
// https://url.spec.whatwg.org/#dom-urlsearchparams-set
|
||
set: function set(name, value) {
|
||
validateArgumentsLength(arguments.length, 1);
|
||
var state = getInternalParamsState(this);
|
||
var entries = state.entries;
|
||
var found = false;
|
||
var key = $toString(name);
|
||
var val = $toString(value);
|
||
var index = 0;
|
||
var entry;
|
||
for (; index < entries.length; index++) {
|
||
entry = entries[index];
|
||
if (entry.key === key) {
|
||
if (found) entries.splice(index--, 1);
|
||
else {
|
||
found = true;
|
||
entry.value = val;
|
||
}
|
||
}
|
||
}
|
||
if (!found) entries.push({ key: key, value: val });
|
||
state.updateURL();
|
||
},
|
||
// `URLSearchParams.prototype.sort` method
|
||
// https://url.spec.whatwg.org/#dom-urlsearchparams-sort
|
||
sort: function sort() {
|
||
var state = getInternalParamsState(this);
|
||
var entries = state.entries;
|
||
// Array#sort is not stable in some engines
|
||
var slice = entries.slice();
|
||
var entry, entriesIndex, sliceIndex;
|
||
entries.length = 0;
|
||
for (sliceIndex = 0; sliceIndex < slice.length; sliceIndex++) {
|
||
entry = slice[sliceIndex];
|
||
for (entriesIndex = 0; entriesIndex < sliceIndex; entriesIndex++) {
|
||
if (entries[entriesIndex].key > entry.key) {
|
||
entries.splice(entriesIndex, 0, entry);
|
||
break;
|
||
}
|
||
}
|
||
if (entriesIndex === sliceIndex) entries.push(entry);
|
||
}
|
||
state.updateURL();
|
||
},
|
||
// `URLSearchParams.prototype.forEach` method
|
||
forEach: function forEach(callback /* , thisArg */) {
|
||
var entries = getInternalParamsState(this).entries;
|
||
var boundFunction = bind(callback, arguments.length > 1 ? arguments[1] : undefined, 3);
|
||
var index = 0;
|
||
var entry;
|
||
while (index < entries.length) {
|
||
entry = entries[index++];
|
||
boundFunction(entry.value, entry.key, this);
|
||
}
|
||
},
|
||
// `URLSearchParams.prototype.keys` method
|
||
keys: function keys() {
|
||
return new URLSearchParamsIterator(this, 'keys');
|
||
},
|
||
// `URLSearchParams.prototype.values` method
|
||
values: function values() {
|
||
return new URLSearchParamsIterator(this, 'values');
|
||
},
|
||
// `URLSearchParams.prototype.entries` method
|
||
entries: function entries() {
|
||
return new URLSearchParamsIterator(this, 'entries');
|
||
}
|
||
}, { enumerable: true });
|
||
|
||
// `URLSearchParams.prototype[@@iterator]` method
|
||
redefine(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });
|
||
|
||
// `URLSearchParams.prototype.toString` method
|
||
// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
|
||
redefine(URLSearchParamsPrototype, 'toString', function toString() {
|
||
var entries = getInternalParamsState(this).entries;
|
||
var result = [];
|
||
var index = 0;
|
||
var entry;
|
||
while (index < entries.length) {
|
||
entry = entries[index++];
|
||
result.push(serialize(entry.key) + '=' + serialize(entry.value));
|
||
} return result.join('&');
|
||
}, { enumerable: true });
|
||
|
||
setToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
|
||
|
||
$({ global: true, forced: !USE_NATIVE_URL }, {
|
||
URLSearchParams: URLSearchParamsConstructor
|
||
});
|
||
|
||
// Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
|
||
if (!USE_NATIVE_URL && isCallable(Headers)) {
|
||
var wrapRequestOptions = function (init) {
|
||
if (isObject(init)) {
|
||
var body = init.body;
|
||
var headers;
|
||
if (classof(body) === URL_SEARCH_PARAMS) {
|
||
headers = init.headers ? new Headers(init.headers) : new Headers();
|
||
if (!headers.has('content-type')) {
|
||
headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
|
||
}
|
||
return create(init, {
|
||
body: createPropertyDescriptor(0, String(body)),
|
||
headers: createPropertyDescriptor(0, headers)
|
||
});
|
||
}
|
||
} return init;
|
||
};
|
||
|
||
if (isCallable(nativeFetch)) {
|
||
$({ global: true, enumerable: true, forced: true }, {
|
||
fetch: function fetch(input /* , init */) {
|
||
return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
|
||
}
|
||
});
|
||
}
|
||
|
||
if (isCallable(NativeRequest)) {
|
||
var RequestConstructor = function Request(input /* , init */) {
|
||
anInstance(this, RequestConstructor, 'Request');
|
||
return new NativeRequest(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
|
||
};
|
||
|
||
RequestPrototype.constructor = RequestConstructor;
|
||
RequestConstructor.prototype = RequestPrototype;
|
||
|
||
$({ global: true, forced: true }, {
|
||
Request: RequestConstructor
|
||
});
|
||
}
|
||
}
|
||
|
||
module.exports = {
|
||
URLSearchParams: URLSearchParamsConstructor,
|
||
getState: getInternalParamsState
|
||
};
|
||
|
||
|
||
/***/ })
|
||
|
||
/******/ });
|
||
/************************************************************************/
|
||
/******/ // The module cache
|
||
/******/ var __webpack_module_cache__ = {};
|
||
/******/
|
||
/******/ // The require function
|
||
/******/ function __webpack_require__(moduleId) {
|
||
/******/ // Check if module is in cache
|
||
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
||
/******/ if (cachedModule !== undefined) {
|
||
/******/ return cachedModule.exports;
|
||
/******/ }
|
||
/******/ // Create a new module (and put it into the cache)
|
||
/******/ var module = __webpack_module_cache__[moduleId] = {
|
||
/******/ // no module.id needed
|
||
/******/ // no module.loaded needed
|
||
/******/ exports: {}
|
||
/******/ };
|
||
/******/
|
||
/******/ // Execute the module function
|
||
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
||
/******/
|
||
/******/ // Return the exports of the module
|
||
/******/ return module.exports;
|
||
/******/ }
|
||
/******/
|
||
/************************************************************************/
|
||
/******/ /* webpack/runtime/define property getters */
|
||
/******/ !function() {
|
||
/******/ // define getter functions for harmony exports
|
||
/******/ __webpack_require__.d = function(exports, definition) {
|
||
/******/ for(var key in definition) {
|
||
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
||
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
||
/******/ }
|
||
/******/ }
|
||
/******/ };
|
||
/******/ }();
|
||
/******/
|
||
/******/ /* webpack/runtime/global */
|
||
/******/ !function() {
|
||
/******/ __webpack_require__.g = (function() {
|
||
/******/ if (typeof globalThis === 'object') return globalThis;
|
||
/******/ try {
|
||
/******/ return this || new Function('return this')();
|
||
/******/ } catch (e) {
|
||
/******/ if (typeof window === 'object') return window;
|
||
/******/ }
|
||
/******/ })();
|
||
/******/ }();
|
||
/******/
|
||
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
||
/******/ !function() {
|
||
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
||
/******/ }();
|
||
/******/
|
||
/******/ /* webpack/runtime/make namespace object */
|
||
/******/ !function() {
|
||
/******/ // define __esModule on exports
|
||
/******/ __webpack_require__.r = function(exports) {
|
||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||
/******/ }
|
||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||
/******/ };
|
||
/******/ }();
|
||
/******/
|
||
/************************************************************************/
|
||
var __webpack_exports__ = {};
|
||
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
|
||
!function() {
|
||
"use strict";
|
||
// ESM COMPAT FLAG
|
||
__webpack_require__.r(__webpack_exports__);
|
||
|
||
// EXPORTS
|
||
__webpack_require__.d(__webpack_exports__, {
|
||
"SimpleComplete": function() { return /* reexport */ SimpleComplete; },
|
||
"default": function() { return /* binding */ simplecomplete; }
|
||
});
|
||
|
||
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
|
||
var web_dom_collections_for_each = __webpack_require__(4747);
|
||
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
||
var es_array_from = __webpack_require__(1038);
|
||
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js
|
||
var es_string_iterator = __webpack_require__(8783);
|
||
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
|
||
var es_string_trim = __webpack_require__(3210);
|
||
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
|
||
var es_array_iterator = __webpack_require__(6992);
|
||
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
||
var es_object_to_string = __webpack_require__(1539);
|
||
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
|
||
var web_dom_collections_iterator = __webpack_require__(3948);
|
||
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.js
|
||
var web_url_search_params = __webpack_require__(637);
|
||
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
|
||
var es_object_keys = __webpack_require__(7941);
|
||
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
|
||
var es_regexp_to_string = __webpack_require__(9714);
|
||
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
||
var es_array_includes = __webpack_require__(699);
|
||
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
||
var es_string_includes = __webpack_require__(23);
|
||
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
|
||
var es_array_map = __webpack_require__(249);
|
||
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
||
var es_function_name = __webpack_require__(8309);
|
||
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.constructor.js
|
||
var es_regexp_constructor = __webpack_require__(4603);
|
||
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
||
var es_regexp_exec = __webpack_require__(4916);
|
||
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match-all.js
|
||
var es_string_match_all = __webpack_require__(6373);
|
||
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.join.js
|
||
var es_array_join = __webpack_require__(9600);
|
||
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js
|
||
var es_string_split = __webpack_require__(3123);
|
||
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
|
||
var es_symbol = __webpack_require__(2526);
|
||
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
||
var es_array_filter = __webpack_require__(7327);
|
||
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-descriptor.js
|
||
var es_object_get_own_property_descriptor = __webpack_require__(5003);
|
||
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-descriptors.js
|
||
var es_object_get_own_property_descriptors = __webpack_require__(9337);
|
||
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.description.js
|
||
var es_symbol_description = __webpack_require__(1817);
|
||
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.iterator.js
|
||
var es_symbol_iterator = __webpack_require__(2165);
|
||
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js
|
||
var es_array_slice = __webpack_require__(7042);
|
||
;// CONCATENATED MODULE: ./src/simplecomplete/utils/contentloaded.js
|
||
/*
|
||
* contentloaded.js
|
||
*
|
||
* Author: Diego Perini (diego.perini at gmail.com)
|
||
* Summary: cross-browser wrapper for DOMContentLoaded
|
||
* Updated: 20101020
|
||
* License: MIT
|
||
* Version: 1.2
|
||
*
|
||
* URL:
|
||
* http://javascript.nwbox.com/ContentLoaded/
|
||
* http://javascript.nwbox.com/ContentLoaded/MIT-LICENSE
|
||
*/
|
||
function contentLoaded(win, fn) {
|
||
var done = false;
|
||
var top = true;
|
||
var doc = win.document;
|
||
var root = doc.documentElement;
|
||
var add = doc.addEventListener ? "addEventListener" : "attachEvent";
|
||
var rem = doc.addEventListener ? "removeEventListener" : "detachEvent";
|
||
var pre = doc.addEventListener ? "" : "on";
|
||
|
||
var init = function init(e) {
|
||
if (e.type === "readystatechange" && doc.readyState !== "complete") {
|
||
return;
|
||
}
|
||
|
||
(e.type === "load" ? win : doc)[rem](pre + e.type, init, false);
|
||
|
||
if (!done && (done = true)) {
|
||
return fn.call(win, e.type || e);
|
||
}
|
||
};
|
||
|
||
var poll = function poll() {
|
||
try {
|
||
root.doScroll("left");
|
||
} catch (e) {
|
||
setTimeout(poll, 50);
|
||
return;
|
||
}
|
||
|
||
return init("poll");
|
||
};
|
||
|
||
if (doc.readyState !== "complete") {
|
||
if (doc.createEventObject && root.doScroll) {
|
||
try {
|
||
top = !win.frameElement;
|
||
} catch (error) {}
|
||
|
||
if (top) {
|
||
poll();
|
||
}
|
||
}
|
||
|
||
doc[add](pre + "DOMContentLoaded", init, false);
|
||
doc[add](pre + "readystatechange", init, false);
|
||
return win[add](pre + "load", init, false);
|
||
}
|
||
}
|
||
;// CONCATENATED MODULE: ./src/simplecomplete/options.js
|
||
var defaultOptions = {
|
||
url: null,
|
||
method: 'GET',
|
||
headers: null,
|
||
delay: 300,
|
||
timeout: 30,
|
||
multiple: false,
|
||
paramName: 'q',
|
||
debug: false,
|
||
minLength: null,
|
||
placeholder: 'Search',
|
||
blankable: false,
|
||
// ui stuff and options/settings
|
||
params: function params() {},
|
||
init: function init() {},
|
||
error: function error() {},
|
||
// user interaction
|
||
focus: function focus() {},
|
||
// user clicks input
|
||
blur: function blur() {},
|
||
// user leaves input
|
||
onInput: function onInput() {},
|
||
// user starts input
|
||
keydown: function keydown() {},
|
||
// user presses a key
|
||
keyup: function keyup() {},
|
||
// user releases a key
|
||
select: function select() {},
|
||
// user clicks an element
|
||
reset: function reset() {},
|
||
// user resets the element to its initial state
|
||
// data handling
|
||
onBeforeRequest: function onBeforeRequest(xhr, headers, urlParams, formData) {},
|
||
// before the request to the url is sent
|
||
onResponse: function onResponse(data, xhr) {},
|
||
// server sends a response
|
||
onTimeout: function onTimeout(xhr) {},
|
||
// if the request times out
|
||
onErrorResponse: function onErrorResponse(err, xhr) {},
|
||
// server error
|
||
onParseResponse: function onParseResponse() {},
|
||
// parses an item from response
|
||
onParseItems: function onParseItems(data) {
|
||
data = [];
|
||
},
|
||
onParseItem: function onParseItem(data) {},
|
||
onRenderItem: function onRenderItem(out, data) {
|
||
return out;
|
||
} // renders an item from response
|
||
|
||
};
|
||
/* harmony default export */ var simplecomplete_options = (defaultOptions);
|
||
;// CONCATENATED MODULE: ./src/simplecomplete/simplecomplete.js
|
||
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
||
|
||
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
||
|
||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
||
|
||
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
||
|
||
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
||
|
||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
||
|
||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
||
|
||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
||
|
||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||
|
||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||
|
||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||
|
||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||
|
||
|
||
|
||
|
||
var SimpleComplete = /*#__PURE__*/function () {
|
||
function SimpleComplete(el) {
|
||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
||
|
||
_classCallCheck(this, SimpleComplete);
|
||
|
||
this.results = null;
|
||
this.query = null;
|
||
this.launchedRequest = null;
|
||
this.options = _objectSpread(_objectSpread({}, simplecomplete_options), options || {});
|
||
|
||
if ('string' === typeof el) {
|
||
var els = document.querySelectorAll(el);
|
||
|
||
if (els && els.length > 0) {
|
||
els.forEach(function (el) {
|
||
if (!SimpleComplete.instances) {
|
||
SimpleComplete.instances = [];
|
||
}
|
||
|
||
SimpleComplete.instances.push(new SimpleComplete(el, options));
|
||
});
|
||
}
|
||
} else {
|
||
this.element = el;
|
||
|
||
if (this.element.simplecomplete) {
|
||
throw new Error('nope');
|
||
}
|
||
|
||
this.element.simplecomplete = this;
|
||
this.hideOrigin();
|
||
this.initDOM();
|
||
this.initEvents();
|
||
this.updateLabel();
|
||
}
|
||
}
|
||
|
||
_createClass(SimpleComplete, [{
|
||
key: "hideOrigin",
|
||
value: function hideOrigin() {
|
||
if (!this.options.debug) {
|
||
this.element.style.width = '1px';
|
||
this.element.style.height = '1px';
|
||
this.element.style.position = 'absolute';
|
||
this.element.style.left = "".concat(-window.innerWidth * 99, "px");
|
||
this.element.style.top = '0';
|
||
} else {
|
||
this.element.style.border = 'solid 3px red';
|
||
this.element.style.marginTop = '1em';
|
||
this.element.style.marginBottom = '1em';
|
||
}
|
||
}
|
||
}, {
|
||
key: "initDOM",
|
||
value: function initDOM() {
|
||
this.parentNode = this.element.parentNode;
|
||
this.wrapper = SimpleComplete.createElement('DIV', {
|
||
classes: 'simplecomplete'
|
||
});
|
||
|
||
if (this.options.blankable) {
|
||
this.wrapper.classList.add('is-blankable');
|
||
}
|
||
|
||
if (this.isMultiple()) {
|
||
this.wrapper.classList.add('is-multiple');
|
||
}
|
||
|
||
if (this.isSelectElement()) {
|
||
this.wrapper.classList.add('is-select');
|
||
}
|
||
|
||
var inputWrapper = SimpleComplete.createElement('DIV', {
|
||
classes: 'simplecomplete__input'
|
||
});
|
||
this.fakeInput = SimpleComplete.createElement('DIV', {
|
||
classes: 'simplecomplete__input-field'
|
||
});
|
||
this.cancelInputBtn = SimpleComplete.createElement('A', {
|
||
classes: 'simplecomplete__input-cancel'
|
||
});
|
||
this.cancelInputBtn.addEventListener('click', function (e) {
|
||
e.preventDefault();
|
||
e.stopPropagation();
|
||
document.body.dispatchEvent(new Event('click'));
|
||
});
|
||
inputWrapper.appendChild(this.fakeInput);
|
||
inputWrapper.appendChild(this.cancelInputBtn);
|
||
this.currentValue = SimpleComplete.createElement('DIV', {
|
||
classes: 'simplecomplete__value'
|
||
});
|
||
this.wrapper.appendChild(this.currentValue);
|
||
this.wrapper.appendChild(inputWrapper); // render results
|
||
|
||
var resultsWrapper = SimpleComplete.createElement('DIV', {
|
||
classes: 'simplecomplete__results'
|
||
});
|
||
this.resultsList = SimpleComplete.createElement('DIV', {
|
||
classes: 'simplecomplete__results-list'
|
||
});
|
||
resultsWrapper.appendChild(this.resultsList);
|
||
this.wrapper.appendChild(resultsWrapper); // insert wrapper into parentnode of element
|
||
|
||
this.element.parentNode.insertBefore(this.wrapper, this.element.nextSibling);
|
||
this.onResults(Array.from(this.element.options || []));
|
||
}
|
||
}, {
|
||
key: "initEvents",
|
||
value: function initEvents() {
|
||
var _this = this;
|
||
|
||
this.element.addEventListener('focus', function (e) {
|
||
e.preventDefault();
|
||
|
||
_this.onFocus();
|
||
});
|
||
this.wrapper.addEventListener('click', this.onFocus.bind(this));
|
||
this.currentValue.addEventListener('click', this.onFocus.bind(this));
|
||
this.fakeInput.addEventListener('keydown', function (e) {
|
||
switch (e.keyCode) {
|
||
case SimpleComplete.KEYS.TAB:
|
||
case SimpleComplete.KEYS.ENTER:
|
||
e.preventDefault();
|
||
return false;
|
||
}
|
||
});
|
||
this.fakeInput.addEventListener('keyup', this.onInput.bind(this));
|
||
}
|
||
}, {
|
||
key: "onInput",
|
||
value: function onInput(e) {
|
||
if (this.launchedRequest) {
|
||
window.clearTimeout(this.launchedRequest);
|
||
}
|
||
|
||
switch (e.keyCode) {
|
||
case SimpleComplete.KEYS.ENTER:
|
||
this.onSend();
|
||
|
||
case SimpleComplete.KEYS.TAB:
|
||
e.preventDefault();
|
||
return false;
|
||
}
|
||
|
||
this.query = e.target.textContent.trim();
|
||
this.launchedRequest = window.setTimeout(this.onSend.bind(this), this.options.delay || 300);
|
||
this.onResults();
|
||
}
|
||
}, {
|
||
key: "finishRequest",
|
||
value: function finishRequest(xhr) {
|
||
this.wrapper.classList.remove('is-busy');
|
||
}
|
||
}, {
|
||
key: "sendRequest",
|
||
value: function sendRequest() {
|
||
var _this2 = this;
|
||
|
||
var _cb = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
||
|
||
var headers = _objectSpread({
|
||
Accept: 'application/json',
|
||
'Cache-Control': 'no-cache',
|
||
'X-Requested-With': 'XMLHttpRequest'
|
||
}, this.options.headers || {});
|
||
|
||
var params = _objectSpread({}, this.options.params || {});
|
||
|
||
params[this.options.paramName || 'q'] = this.query;
|
||
var formData = new FormData();
|
||
var urlParams = new URLSearchParams();
|
||
var target = this.options.url;
|
||
var xhr = SimpleComplete.client;
|
||
xhr.abort();
|
||
xhr.addEventListener('load', function (e) {
|
||
_this2.finishRequest(xhr);
|
||
|
||
_this2.handleResponse(xhr, params, formData, e);
|
||
});
|
||
xhr.addEventListener('timeout', function (e) {
|
||
_this2.finishRequest(xhr);
|
||
|
||
_this2.options.onTimeout(xhr);
|
||
});
|
||
xhr.addEventListener('error', function (e) {
|
||
_this2.finishRequest(xhr);
|
||
|
||
_this2.options.onErrorResponse(e, xhr);
|
||
});
|
||
Object.keys(params).forEach(function (_key) {
|
||
urlParams.set(_key, params[_key]);
|
||
formData.append(_key, params[_key]);
|
||
});
|
||
this.options.onBeforeRequest(xhr, headers, urlParams, formData);
|
||
target += "?".concat(urlParams.toString());
|
||
xhr.open(this.options.method || 'GET', target);
|
||
|
||
if (xhr.readyState != 1) {
|
||
console.log(xhr.readyState);
|
||
this.onError('xhr_not_ready');
|
||
return;
|
||
}
|
||
|
||
Object.keys(headers).forEach(function (_key) {
|
||
return xhr.setRequestHeader(_key, headers[_key]);
|
||
});
|
||
SimpleComplete.timeout = (this.options.timeout || 30) * 1000;
|
||
xhr.send(formData);
|
||
}
|
||
}, {
|
||
key: "handleResponse",
|
||
value: function handleResponse(xhr, params, formData, e) {
|
||
var response = xhr.responseText || null;
|
||
var err = null;
|
||
|
||
if (response && xhr.getResponseHeader('Content-Type').includes("application/json")) {
|
||
try {
|
||
response = JSON.parse(response);
|
||
this.options.onParseResponse(response);
|
||
|
||
if (!Array.isArray(response)) {
|
||
throw new Error('simplecomplete.errors.no_array_response');
|
||
} else {
|
||
console.log(response);
|
||
}
|
||
} catch (_e) {
|
||
err = _e;
|
||
this.options.onParseResponse(response);
|
||
}
|
||
}
|
||
|
||
if (!(200 <= xhr.status && xhr.status < 300)) {
|
||
this.onError('simplecomplete.errors.xhr_wrong_status');
|
||
} else {
|
||
var data = this.options.onResponse(response, xhr);
|
||
this.onResults(response.data || response);
|
||
}
|
||
}
|
||
}, {
|
||
key: "onSend",
|
||
value: function onSend() {
|
||
var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
||
|
||
if (!this.query || this.options.minLength > 0 && this.query.length < this.options.minLength) {
|
||
this.onError('simplecomplete.errors.min-length');
|
||
} else {
|
||
if (this.wrapper.classList.contains('is-busy')) {
|
||
this.queued = true;
|
||
} else if (this.options.url) {
|
||
this.wrapper.classList.add('is-busy');
|
||
this.sendRequest(function (xhr) {
|
||
console.log('DONE', xhr);
|
||
});
|
||
/*window.setTimeout(() => {
|
||
this.wrapper.classList.remove('is-busy')
|
||
if(this.queued) {
|
||
this.queued = false
|
||
this.onSend ()
|
||
}
|
||
}, 3000)*/
|
||
}
|
||
}
|
||
}
|
||
}, {
|
||
key: "isMultiple",
|
||
value: function isMultiple() {
|
||
return this.element.multiple || false;
|
||
}
|
||
}, {
|
||
key: "deselectOption",
|
||
value: function deselectOption(_val) {
|
||
var _opts = Array.from(this.element.selectedOptions);
|
||
|
||
for (var _key in _opts) {
|
||
var o = _opts[_key];
|
||
|
||
if (o.value == _val) {
|
||
o.selected = false;
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
}, {
|
||
key: "selectOption",
|
||
value: function selectOption(_val) {
|
||
var _opts = Array.from(this.element.options);
|
||
|
||
for (var _key in _opts) {
|
||
var o = _opts[_key];
|
||
|
||
if (o.value == _val) {
|
||
o.selected = true;
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
}, {
|
||
key: "updateValue",
|
||
value: function updateValue() {
|
||
var _val = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
||
|
||
if (_val !== null || this.options.blankable) {
|
||
if (this.isMultiple()) {
|
||
if (this.isSelected(_val)) {
|
||
this.deselectOption(_val);
|
||
} else {
|
||
this.selectOption(_val);
|
||
}
|
||
} else {
|
||
this.element.value = _val;
|
||
}
|
||
}
|
||
|
||
this.updateLabel();
|
||
this.onResults();
|
||
}
|
||
}, {
|
||
key: "isSelectElement",
|
||
value: function isSelectElement() {
|
||
return (this.element.tagName || false) && 'SELECT' == this.element.tagName;
|
||
}
|
||
}, {
|
||
key: "updateLabel",
|
||
value: function updateLabel() {
|
||
var _this3 = this;
|
||
|
||
this.currentValue.classList.remove('is-empty');
|
||
this.currentValue.innerHTML = '';
|
||
|
||
if (this.isMultiple() || this.isSelectElement()) {
|
||
var _opts = Array.from(this.element.selectedOptions);
|
||
|
||
for (var _key in _opts) {
|
||
var o = _opts[_key];
|
||
var badge = SimpleComplete.createElement('SPAN', {
|
||
classes: 'selected-option'
|
||
});
|
||
badge.textContent = o.textContent;
|
||
badge.dataset.value = o.value;
|
||
|
||
if (this.isMultiple() || this.options.blankable) {
|
||
badge.addEventListener('click', function (e) {
|
||
e.preventDefault();
|
||
e.stopPropagation();
|
||
|
||
_this3.deselectOption(e.target.dataset.value);
|
||
|
||
_this3.updateValue();
|
||
});
|
||
}
|
||
|
||
this.currentValue.appendChild(badge);
|
||
}
|
||
}
|
||
|
||
if (!this.currentValue.childNodes.length) {
|
||
var placeholder = this.element.value || this.element.getAttribute('placeholder') || this.element.dataset.placeholder || this.options.placeholder || 'Search';
|
||
|
||
if (this.isSelectElement()) {
|
||
var _badge = SimpleComplete.createElement('SPAN', {
|
||
classes: 'empty-item'
|
||
});
|
||
|
||
_badge.textContent = placeholder;
|
||
this.currentValue.appendChild(_badge);
|
||
} else {
|
||
this.currentValue.textContent = placeholder;
|
||
}
|
||
|
||
if (placeholder == this.options.placeholder) {
|
||
this.currentValue.classList.add('is-empty');
|
||
}
|
||
}
|
||
}
|
||
}, {
|
||
key: "onError",
|
||
value: function onError(key) {
|
||
console.log(key);
|
||
}
|
||
}, {
|
||
key: "onFocus",
|
||
value: function onFocus(e) {
|
||
var _this4 = this;
|
||
|
||
if (e) {
|
||
e.stopPropagation();
|
||
}
|
||
|
||
document.body.dispatchEvent(new Event('click'));
|
||
this.wrapper.classList.add('active');
|
||
|
||
if (this.results.length > 0) {
|
||
this.wrapper.classList.add('has-results');
|
||
}
|
||
|
||
this.currentValue.classList.add('hide');
|
||
this.fakeInput.setAttribute('contenteditable', true);
|
||
this.fakeInput.focus();
|
||
this.options.focus();
|
||
document.body.addEventListener('click', function (e) {
|
||
_this4.onBlur();
|
||
}, {
|
||
once: true
|
||
});
|
||
}
|
||
}, {
|
||
key: "onBlur",
|
||
value: function onBlur() {
|
||
this.query = null;
|
||
this.fakeInput.textContent = '';
|
||
this.wrapper.classList.remove('active');
|
||
this.currentValue.classList.remove('hide');
|
||
this.fakeInput.setAttribute('contenteditable', false);
|
||
this.wrapper.classList.remove('has-results');
|
||
this.onResults();
|
||
this.options.blur();
|
||
}
|
||
}, {
|
||
key: "onSelect",
|
||
value: function onSelect(_val) {
|
||
this.updateValue(_val);
|
||
document.body.dispatchEvent(new Event('click'));
|
||
}
|
||
}, {
|
||
key: "onResults",
|
||
value: function onResults() {
|
||
var _this5 = this;
|
||
|
||
var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
||
|
||
try {
|
||
if (data !== null) {
|
||
if (!Array.isArray(data)) {
|
||
this.onError('simplecomplete.errors.data_invalid');
|
||
return;
|
||
}
|
||
|
||
this.options.onParseItems(data);
|
||
this.results = data.map(function (res) {
|
||
var item = _this5.options.onParseItem(res) || res;
|
||
|
||
switch (_typeof(item)) {
|
||
case 'string':
|
||
item = {
|
||
value: item,
|
||
label: item
|
||
};
|
||
break;
|
||
|
||
case 'object':
|
||
item = {
|
||
value: item.id || item.value,
|
||
label: item.label || item.name
|
||
};
|
||
break;
|
||
|
||
default:
|
||
if (Array.isArray(item) && item.length > 0) {
|
||
item = {
|
||
value: item[0],
|
||
label: item[item.length - 1]
|
||
};
|
||
} else {
|
||
throw new Error('simplecomplete.errors.invalid response item');
|
||
}
|
||
|
||
break;
|
||
}
|
||
|
||
return item;
|
||
});
|
||
|
||
if (this.results && this.isSelectElement()) {
|
||
_toConsumableArray(this.element.options).forEach(function (option) {
|
||
if (!_this5.isSelected(option.value)) {
|
||
option.remove();
|
||
}
|
||
});
|
||
|
||
this.results.forEach(function (item) {
|
||
var option = SimpleComplete.createElement('OPTION');
|
||
option.value = item.value || item.id;
|
||
option.textContent = item.label || item.name || item;
|
||
|
||
if (!_this5.isSelected(option.value)) {
|
||
_this5.element.appendChild(option);
|
||
}
|
||
});
|
||
}
|
||
}
|
||
|
||
if (this.results && this.resultsList) {
|
||
this.resultsList.innerHTML = '';
|
||
|
||
if (this.isSelectElement()) {
|
||
_toConsumableArray(this.element.options).forEach(function (option) {
|
||
_this5.resultsList.appendChild(_this5.renderOption({
|
||
value: option.value,
|
||
label: option.textContent
|
||
}));
|
||
});
|
||
} else {
|
||
this.results.forEach(function (res) {
|
||
return _this5.resultsList.appendChild(_this5.renderOption(res));
|
||
});
|
||
}
|
||
|
||
if (!this.resultsList.childNodes.length) {
|
||
var emptyNode = SimpleComplete.createElement('DIV', {
|
||
classes: 'simplecomplete__results-list-empty'
|
||
});
|
||
emptyNode.textContent = this.options.emptyText || 'No results';
|
||
this.resultsList.appendChild(emptyNode);
|
||
}
|
||
}
|
||
} catch (err) {
|
||
this.onError(err);
|
||
}
|
||
}
|
||
}, {
|
||
key: "isSelected",
|
||
value: function isSelected(_val) {
|
||
var opts = Array.from(this.element.selectedOptions || []);
|
||
|
||
for (var _index = 0; _index < opts.length; _index++) {
|
||
var option = opts[_index];
|
||
|
||
if (option.value == _val) {
|
||
return true;
|
||
}
|
||
}
|
||
|
||
return this.element.value == _val || false;
|
||
}
|
||
}, {
|
||
key: "renderOption",
|
||
value: function renderOption(data) {
|
||
var _this6 = this;
|
||
|
||
var _out = SimpleComplete.createElement('A', {
|
||
classes: 'simplecomplete__results-list-item'
|
||
});
|
||
|
||
if (this.isSelected(data.value)) {
|
||
_out.classList.add('selected');
|
||
}
|
||
|
||
if (data.disabled) {
|
||
_out.classList.add('disabled');
|
||
}
|
||
|
||
if (!this.isSelected(data.value) || this.isMultiple()) {
|
||
_out.addEventListener('click', function (e) {
|
||
e.preventDefault();
|
||
e.stopPropagation();
|
||
|
||
if (!data.disabled) {
|
||
_this6.onSelect(data.value);
|
||
}
|
||
});
|
||
} // cut the label and mark the search term in the label if the search term is set
|
||
|
||
|
||
if (!!this.query) {
|
||
var regexp = new RegExp(this.query, 'gi');
|
||
var label = data.label;
|
||
var check = label.matchAll(regexp);
|
||
|
||
if (check) {
|
||
var hightlightSpan = SimpleComplete.createElement('SPAN', {
|
||
classes: 'highlight'
|
||
});
|
||
var offset = 0;
|
||
|
||
_toConsumableArray(check).forEach(function (res) {
|
||
hightlightSpan.textContent = res[0];
|
||
var parts = [label.substr(0, res.index), hightlightSpan.outerHTML, label.substr(offset + res.index + res[0].length, label.length + offset)];
|
||
offset += hightlightSpan.outerHTML.length;
|
||
label = parts.join('');
|
||
});
|
||
}
|
||
|
||
_out.innerHTML = label;
|
||
} else {
|
||
_out.textContent = data.label;
|
||
}
|
||
|
||
try {
|
||
return this.options.onRenderItem(_out, data);
|
||
} catch (err) {
|
||
return _out;
|
||
}
|
||
}
|
||
}], [{
|
||
key: "initClass",
|
||
value: function initClass() {
|
||
this.prototype.events = [];
|
||
window.contentloaded = contentLoaded;
|
||
}
|
||
}]);
|
||
|
||
return SimpleComplete;
|
||
}();
|
||
|
||
_defineProperty(SimpleComplete, "KEYS", {
|
||
ENTER: 13,
|
||
TAB: 9
|
||
});
|
||
|
||
_defineProperty(SimpleComplete, "client", new XMLHttpRequest());
|
||
|
||
|
||
SimpleComplete.initClass();
|
||
SimpleComplete.version = 'dev';
|
||
SimpleComplete.options = {};
|
||
SimpleComplete.instances = [];
|
||
SimpleComplete.autoDiscover = true;
|
||
|
||
SimpleComplete.discover = function () {
|
||
var inputs = document.querySelectorAll('[data-sc]');
|
||
var res = [];
|
||
|
||
if (inputs && inputs.length > 0) {
|
||
inputs.forEach(function (_in) {
|
||
var options = {
|
||
url: _in.dataset.sc || null,
|
||
paramName: _in.dataset.param || simplecomplete_options.paramName,
|
||
minLength: _in.dataset.minLength !== null ? _in.dataset.minLength : null,
|
||
blankable: _in.dataset.blankable || false
|
||
};
|
||
res.push(new SimpleComplete(_in, options));
|
||
});
|
||
}
|
||
|
||
return res;
|
||
};
|
||
|
||
SimpleComplete.createElement = function (tag) {
|
||
var options = arguments[1] || {};
|
||
options = _objectSpread({
|
||
id: null,
|
||
classes: null,
|
||
attributes: null,
|
||
styles: null,
|
||
data: null
|
||
}, options);
|
||
var el = document.createElement(tag);
|
||
|
||
if (el) {
|
||
if (options.styles) {
|
||
el.styles = options.styles;
|
||
}
|
||
|
||
if (options.classes) {
|
||
if ('string' == typeof options.classes) {
|
||
options.classes = options.classes.split(' ');
|
||
}
|
||
|
||
options.classes.forEach(function (_class) {
|
||
return el.classList.add(_class);
|
||
});
|
||
}
|
||
|
||
if (options.attributes) {
|
||
Object.keys(options.attributes).forEach(function (_key) {
|
||
return el.setAttribute(_key, options.attributes[_key]);
|
||
});
|
||
}
|
||
|
||
if (options.data) {
|
||
Object.keys(options.data).forEach(function (_key) {
|
||
el.dataset[_key] = options.data[_key];
|
||
});
|
||
}
|
||
}
|
||
|
||
return el;
|
||
};
|
||
|
||
SimpleComplete.getElement = function (el, name) {
|
||
var $el = null;
|
||
|
||
if (document.querySelectorAll) {
|
||
$el = document.querySelector(el);
|
||
} else if (!!el.nodeType) {
|
||
$el = el;
|
||
}
|
||
|
||
if (!$el) {
|
||
throw new Error('');
|
||
}
|
||
|
||
return $el;
|
||
};
|
||
|
||
SimpleComplete.__autoDiscoverFunc = function () {
|
||
if (SimpleComplete.autoDiscover) {
|
||
return SimpleComplete.discover();
|
||
}
|
||
};
|
||
|
||
contentLoaded(window, SimpleComplete.__autoDiscoverFunc);
|
||
|
||
;// CONCATENATED MODULE: ./src/simplecomplete/index.js
|
||
/// Make SimpleComplete a global variable.
|
||
|
||
window.SimpleComplete = SimpleComplete;
|
||
/* harmony default export */ var simplecomplete = (SimpleComplete);
|
||
|
||
}();
|
||
/******/ return __webpack_exports__;
|
||
/******/ })()
|
||
;
|
||
}); |