mirror of
https://github.com/proelements/proelements.git
synced 2026-05-05 17:15:58 +00:00
3240 lines
130 KiB
JavaScript
3240 lines
130 KiB
JavaScript
/*! pro-elements - v4.0.0 - 28-04-2026 */
|
||
/******/ (() => { // webpackBootstrap
|
||
/******/ "use strict";
|
||
/******/ var __webpack_modules__ = ({
|
||
|
||
/***/ "../node_modules/core-js/internals/a-callable.js"
|
||
/*!*******************************************************!*\
|
||
!*** ../node_modules/core-js/internals/a-callable.js ***!
|
||
\*******************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var isCallable = __webpack_require__(/*! ../internals/is-callable */ "../node_modules/core-js/internals/is-callable.js");
|
||
var tryToString = __webpack_require__(/*! ../internals/try-to-string */ "../node_modules/core-js/internals/try-to-string.js");
|
||
|
||
var $TypeError = TypeError;
|
||
|
||
// `Assert: IsCallable(argument) is true`
|
||
module.exports = function (argument) {
|
||
if (isCallable(argument)) return argument;
|
||
throw new $TypeError(tryToString(argument) + ' is not a function');
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/an-instance.js"
|
||
/*!********************************************************!*\
|
||
!*** ../node_modules/core-js/internals/an-instance.js ***!
|
||
\********************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var isPrototypeOf = __webpack_require__(/*! ../internals/object-is-prototype-of */ "../node_modules/core-js/internals/object-is-prototype-of.js");
|
||
|
||
var $TypeError = TypeError;
|
||
|
||
module.exports = function (it, Prototype) {
|
||
if (isPrototypeOf(Prototype, it)) return it;
|
||
throw new $TypeError('Incorrect invocation');
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/an-object.js"
|
||
/*!******************************************************!*\
|
||
!*** ../node_modules/core-js/internals/an-object.js ***!
|
||
\******************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var isObject = __webpack_require__(/*! ../internals/is-object */ "../node_modules/core-js/internals/is-object.js");
|
||
|
||
var $String = String;
|
||
var $TypeError = TypeError;
|
||
|
||
// `Assert: Type(argument) is Object`
|
||
module.exports = function (argument) {
|
||
if (isObject(argument)) return argument;
|
||
throw new $TypeError($String(argument) + ' is not an object');
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/array-includes.js"
|
||
/*!***********************************************************!*\
|
||
!*** ../node_modules/core-js/internals/array-includes.js ***!
|
||
\***********************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var toIndexedObject = __webpack_require__(/*! ../internals/to-indexed-object */ "../node_modules/core-js/internals/to-indexed-object.js");
|
||
var toAbsoluteIndex = __webpack_require__(/*! ../internals/to-absolute-index */ "../node_modules/core-js/internals/to-absolute-index.js");
|
||
var lengthOfArrayLike = __webpack_require__(/*! ../internals/length-of-array-like */ "../node_modules/core-js/internals/length-of-array-like.js");
|
||
|
||
// `Array.prototype.{ indexOf, includes }` methods implementation
|
||
var createMethod = function (IS_INCLUDES) {
|
||
return function ($this, el, fromIndex) {
|
||
var O = toIndexedObject($this);
|
||
var length = lengthOfArrayLike(O);
|
||
if (length === 0) return !IS_INCLUDES && -1;
|
||
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)
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/call-with-safe-iteration-closing.js"
|
||
/*!*****************************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/call-with-safe-iteration-closing.js ***!
|
||
\*****************************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var anObject = __webpack_require__(/*! ../internals/an-object */ "../node_modules/core-js/internals/an-object.js");
|
||
var iteratorClose = __webpack_require__(/*! ../internals/iterator-close */ "../node_modules/core-js/internals/iterator-close.js");
|
||
|
||
// 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);
|
||
}
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/classof-raw.js"
|
||
/*!********************************************************!*\
|
||
!*** ../node_modules/core-js/internals/classof-raw.js ***!
|
||
\********************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "../node_modules/core-js/internals/function-uncurry-this.js");
|
||
|
||
var toString = uncurryThis({}.toString);
|
||
var stringSlice = uncurryThis(''.slice);
|
||
|
||
module.exports = function (it) {
|
||
return stringSlice(toString(it), 8, -1);
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/classof.js"
|
||
/*!****************************************************!*\
|
||
!*** ../node_modules/core-js/internals/classof.js ***!
|
||
\****************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var TO_STRING_TAG_SUPPORT = __webpack_require__(/*! ../internals/to-string-tag-support */ "../node_modules/core-js/internals/to-string-tag-support.js");
|
||
var isCallable = __webpack_require__(/*! ../internals/is-callable */ "../node_modules/core-js/internals/is-callable.js");
|
||
var classofRaw = __webpack_require__(/*! ../internals/classof-raw */ "../node_modules/core-js/internals/classof-raw.js");
|
||
var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "../node_modules/core-js/internals/well-known-symbol.js");
|
||
|
||
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
||
var $Object = Object;
|
||
|
||
// 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;
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/copy-constructor-properties.js"
|
||
/*!************************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/copy-constructor-properties.js ***!
|
||
\************************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "../node_modules/core-js/internals/has-own-property.js");
|
||
var ownKeys = __webpack_require__(/*! ../internals/own-keys */ "../node_modules/core-js/internals/own-keys.js");
|
||
var getOwnPropertyDescriptorModule = __webpack_require__(/*! ../internals/object-get-own-property-descriptor */ "../node_modules/core-js/internals/object-get-own-property-descriptor.js");
|
||
var definePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ "../node_modules/core-js/internals/object-define-property.js");
|
||
|
||
module.exports = function (target, source, exceptions) {
|
||
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) && !(exceptions && hasOwn(exceptions, key))) {
|
||
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
||
}
|
||
}
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/correct-prototype-getter.js"
|
||
/*!*********************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/correct-prototype-getter.js ***!
|
||
\*********************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var fails = __webpack_require__(/*! ../internals/fails */ "../node_modules/core-js/internals/fails.js");
|
||
|
||
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;
|
||
});
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/create-iter-result-object.js"
|
||
/*!**********************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/create-iter-result-object.js ***!
|
||
\**********************************************************************/
|
||
(module) {
|
||
|
||
|
||
// `CreateIterResultObject` abstract operation
|
||
// https://tc39.es/ecma262/#sec-createiterresultobject
|
||
module.exports = function (value, done) {
|
||
return { value: value, done: done };
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/create-non-enumerable-property.js"
|
||
/*!***************************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/create-non-enumerable-property.js ***!
|
||
\***************************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "../node_modules/core-js/internals/descriptors.js");
|
||
var definePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ "../node_modules/core-js/internals/object-define-property.js");
|
||
var createPropertyDescriptor = __webpack_require__(/*! ../internals/create-property-descriptor */ "../node_modules/core-js/internals/create-property-descriptor.js");
|
||
|
||
module.exports = DESCRIPTORS ? function (object, key, value) {
|
||
return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
|
||
} : function (object, key, value) {
|
||
object[key] = value;
|
||
return object;
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/create-property-descriptor.js"
|
||
/*!***********************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/create-property-descriptor.js ***!
|
||
\***********************************************************************/
|
||
(module) {
|
||
|
||
|
||
module.exports = function (bitmap, value) {
|
||
return {
|
||
enumerable: !(bitmap & 1),
|
||
configurable: !(bitmap & 2),
|
||
writable: !(bitmap & 4),
|
||
value: value
|
||
};
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/create-property.js"
|
||
/*!************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/create-property.js ***!
|
||
\************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "../node_modules/core-js/internals/descriptors.js");
|
||
var definePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ "../node_modules/core-js/internals/object-define-property.js");
|
||
var createPropertyDescriptor = __webpack_require__(/*! ../internals/create-property-descriptor */ "../node_modules/core-js/internals/create-property-descriptor.js");
|
||
|
||
module.exports = function (object, key, value) {
|
||
if (DESCRIPTORS) definePropertyModule.f(object, key, createPropertyDescriptor(0, value));
|
||
else object[key] = value;
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/define-built-in-accessor.js"
|
||
/*!*********************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/define-built-in-accessor.js ***!
|
||
\*********************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var makeBuiltIn = __webpack_require__(/*! ../internals/make-built-in */ "../node_modules/core-js/internals/make-built-in.js");
|
||
var defineProperty = __webpack_require__(/*! ../internals/object-define-property */ "../node_modules/core-js/internals/object-define-property.js");
|
||
|
||
module.exports = function (target, name, descriptor) {
|
||
if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
|
||
if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
|
||
return defineProperty.f(target, name, descriptor);
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/define-built-in.js"
|
||
/*!************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/define-built-in.js ***!
|
||
\************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var isCallable = __webpack_require__(/*! ../internals/is-callable */ "../node_modules/core-js/internals/is-callable.js");
|
||
var definePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ "../node_modules/core-js/internals/object-define-property.js");
|
||
var makeBuiltIn = __webpack_require__(/*! ../internals/make-built-in */ "../node_modules/core-js/internals/make-built-in.js");
|
||
var defineGlobalProperty = __webpack_require__(/*! ../internals/define-global-property */ "../node_modules/core-js/internals/define-global-property.js");
|
||
|
||
module.exports = function (O, key, value, options) {
|
||
if (!options) options = {};
|
||
var simple = options.enumerable;
|
||
var name = options.name !== undefined ? options.name : key;
|
||
if (isCallable(value)) makeBuiltIn(value, name, options);
|
||
if (options.global) {
|
||
if (simple) O[key] = value;
|
||
else defineGlobalProperty(key, value);
|
||
} else {
|
||
try {
|
||
if (!options.unsafe) delete O[key];
|
||
else if (O[key]) simple = true;
|
||
} catch (error) { /* empty */ }
|
||
if (simple) O[key] = value;
|
||
else definePropertyModule.f(O, key, {
|
||
value: value,
|
||
enumerable: false,
|
||
configurable: !options.nonConfigurable,
|
||
writable: !options.nonWritable
|
||
});
|
||
} return O;
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/define-built-ins.js"
|
||
/*!*************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/define-built-ins.js ***!
|
||
\*************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var defineBuiltIn = __webpack_require__(/*! ../internals/define-built-in */ "../node_modules/core-js/internals/define-built-in.js");
|
||
|
||
module.exports = function (target, src, options) {
|
||
for (var key in src) defineBuiltIn(target, key, src[key], options);
|
||
return target;
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/define-global-property.js"
|
||
/*!*******************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/define-global-property.js ***!
|
||
\*******************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var globalThis = __webpack_require__(/*! ../internals/global-this */ "../node_modules/core-js/internals/global-this.js");
|
||
|
||
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
||
var defineProperty = Object.defineProperty;
|
||
|
||
module.exports = function (key, value) {
|
||
try {
|
||
defineProperty(globalThis, key, { value: value, configurable: true, writable: true });
|
||
} catch (error) {
|
||
globalThis[key] = value;
|
||
} return value;
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/descriptors.js"
|
||
/*!********************************************************!*\
|
||
!*** ../node_modules/core-js/internals/descriptors.js ***!
|
||
\********************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var fails = __webpack_require__(/*! ../internals/fails */ "../node_modules/core-js/internals/fails.js");
|
||
|
||
// 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;
|
||
});
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/document-create-element.js"
|
||
/*!********************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/document-create-element.js ***!
|
||
\********************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var globalThis = __webpack_require__(/*! ../internals/global-this */ "../node_modules/core-js/internals/global-this.js");
|
||
var isObject = __webpack_require__(/*! ../internals/is-object */ "../node_modules/core-js/internals/is-object.js");
|
||
|
||
var document = globalThis.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) : {};
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/enum-bug-keys.js"
|
||
/*!**********************************************************!*\
|
||
!*** ../node_modules/core-js/internals/enum-bug-keys.js ***!
|
||
\**********************************************************/
|
||
(module) {
|
||
|
||
|
||
// IE8- don't enum bug keys
|
||
module.exports = [
|
||
'constructor',
|
||
'hasOwnProperty',
|
||
'isPrototypeOf',
|
||
'propertyIsEnumerable',
|
||
'toLocaleString',
|
||
'toString',
|
||
'valueOf'
|
||
];
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/environment-user-agent.js"
|
||
/*!*******************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/environment-user-agent.js ***!
|
||
\*******************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var globalThis = __webpack_require__(/*! ../internals/global-this */ "../node_modules/core-js/internals/global-this.js");
|
||
|
||
var navigator = globalThis.navigator;
|
||
var userAgent = navigator && navigator.userAgent;
|
||
|
||
module.exports = userAgent ? String(userAgent) : '';
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/environment-v8-version.js"
|
||
/*!*******************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/environment-v8-version.js ***!
|
||
\*******************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var globalThis = __webpack_require__(/*! ../internals/global-this */ "../node_modules/core-js/internals/global-this.js");
|
||
var userAgent = __webpack_require__(/*! ../internals/environment-user-agent */ "../node_modules/core-js/internals/environment-user-agent.js");
|
||
|
||
var process = globalThis.process;
|
||
var Deno = globalThis.Deno;
|
||
var versions = process && process.versions || Deno && Deno.version;
|
||
var v8 = versions && versions.v8;
|
||
var match, version;
|
||
|
||
if (v8) {
|
||
match = v8.split('.');
|
||
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
||
// but their correct versions are not interesting for us
|
||
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
||
}
|
||
|
||
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
||
// so check `userAgent` even if `.v8` exists, but 0
|
||
if (!version && userAgent) {
|
||
match = userAgent.match(/Edge\/(\d+)/);
|
||
if (!match || match[1] >= 74) {
|
||
match = userAgent.match(/Chrome\/(\d+)/);
|
||
if (match) version = +match[1];
|
||
}
|
||
}
|
||
|
||
module.exports = version;
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/export.js"
|
||
/*!***************************************************!*\
|
||
!*** ../node_modules/core-js/internals/export.js ***!
|
||
\***************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var globalThis = __webpack_require__(/*! ../internals/global-this */ "../node_modules/core-js/internals/global-this.js");
|
||
var getOwnPropertyDescriptor = (__webpack_require__(/*! ../internals/object-get-own-property-descriptor */ "../node_modules/core-js/internals/object-get-own-property-descriptor.js").f);
|
||
var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "../node_modules/core-js/internals/create-non-enumerable-property.js");
|
||
var defineBuiltIn = __webpack_require__(/*! ../internals/define-built-in */ "../node_modules/core-js/internals/define-built-in.js");
|
||
var defineGlobalProperty = __webpack_require__(/*! ../internals/define-global-property */ "../node_modules/core-js/internals/define-global-property.js");
|
||
var copyConstructorProperties = __webpack_require__(/*! ../internals/copy-constructor-properties */ "../node_modules/core-js/internals/copy-constructor-properties.js");
|
||
var isForced = __webpack_require__(/*! ../internals/is-forced */ "../node_modules/core-js/internals/is-forced.js");
|
||
|
||
/*
|
||
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.dontCallGetSet - 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 = globalThis;
|
||
} else if (STATIC) {
|
||
target = globalThis[TARGET] || defineGlobalProperty(TARGET, {});
|
||
} else {
|
||
target = globalThis[TARGET] && globalThis[TARGET].prototype;
|
||
}
|
||
if (target) for (key in source) {
|
||
sourceProperty = source[key];
|
||
if (options.dontCallGetSet) {
|
||
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);
|
||
}
|
||
defineBuiltIn(target, key, sourceProperty, options);
|
||
}
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/fails.js"
|
||
/*!**************************************************!*\
|
||
!*** ../node_modules/core-js/internals/fails.js ***!
|
||
\**************************************************/
|
||
(module) {
|
||
|
||
|
||
module.exports = function (exec) {
|
||
try {
|
||
return !!exec();
|
||
} catch (error) {
|
||
return true;
|
||
}
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/function-bind-context.js"
|
||
/*!******************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/function-bind-context.js ***!
|
||
\******************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this-clause */ "../node_modules/core-js/internals/function-uncurry-this-clause.js");
|
||
var aCallable = __webpack_require__(/*! ../internals/a-callable */ "../node_modules/core-js/internals/a-callable.js");
|
||
var NATIVE_BIND = __webpack_require__(/*! ../internals/function-bind-native */ "../node_modules/core-js/internals/function-bind-native.js");
|
||
|
||
var bind = uncurryThis(uncurryThis.bind);
|
||
|
||
// optional / simple context binding
|
||
module.exports = function (fn, that) {
|
||
aCallable(fn);
|
||
return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {
|
||
return fn.apply(that, arguments);
|
||
};
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/function-bind-native.js"
|
||
/*!*****************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/function-bind-native.js ***!
|
||
\*****************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var fails = __webpack_require__(/*! ../internals/fails */ "../node_modules/core-js/internals/fails.js");
|
||
|
||
module.exports = !fails(function () {
|
||
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
||
var test = (function () { /* empty */ }).bind();
|
||
// eslint-disable-next-line no-prototype-builtins -- safe
|
||
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
||
});
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/function-call.js"
|
||
/*!**********************************************************!*\
|
||
!*** ../node_modules/core-js/internals/function-call.js ***!
|
||
\**********************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var NATIVE_BIND = __webpack_require__(/*! ../internals/function-bind-native */ "../node_modules/core-js/internals/function-bind-native.js");
|
||
|
||
var call = Function.prototype.call;
|
||
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
||
module.exports = NATIVE_BIND ? call.bind(call) : function () {
|
||
return call.apply(call, arguments);
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/function-name.js"
|
||
/*!**********************************************************!*\
|
||
!*** ../node_modules/core-js/internals/function-name.js ***!
|
||
\**********************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "../node_modules/core-js/internals/descriptors.js");
|
||
var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "../node_modules/core-js/internals/has-own-property.js");
|
||
|
||
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
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/function-uncurry-this-clause.js"
|
||
/*!*************************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/function-uncurry-this-clause.js ***!
|
||
\*************************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var classofRaw = __webpack_require__(/*! ../internals/classof-raw */ "../node_modules/core-js/internals/classof-raw.js");
|
||
var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "../node_modules/core-js/internals/function-uncurry-this.js");
|
||
|
||
module.exports = function (fn) {
|
||
// Nashorn bug:
|
||
// https://github.com/zloirock/core-js/issues/1128
|
||
// https://github.com/zloirock/core-js/issues/1130
|
||
if (classofRaw(fn) === 'Function') return uncurryThis(fn);
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/function-uncurry-this.js"
|
||
/*!******************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/function-uncurry-this.js ***!
|
||
\******************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var NATIVE_BIND = __webpack_require__(/*! ../internals/function-bind-native */ "../node_modules/core-js/internals/function-bind-native.js");
|
||
|
||
var FunctionPrototype = Function.prototype;
|
||
var call = FunctionPrototype.call;
|
||
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
||
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
|
||
|
||
module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
||
return function () {
|
||
return call.apply(fn, arguments);
|
||
};
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/get-built-in.js"
|
||
/*!*********************************************************!*\
|
||
!*** ../node_modules/core-js/internals/get-built-in.js ***!
|
||
\*********************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var globalThis = __webpack_require__(/*! ../internals/global-this */ "../node_modules/core-js/internals/global-this.js");
|
||
var isCallable = __webpack_require__(/*! ../internals/is-callable */ "../node_modules/core-js/internals/is-callable.js");
|
||
|
||
var aFunction = function (argument) {
|
||
return isCallable(argument) ? argument : undefined;
|
||
};
|
||
|
||
module.exports = function (namespace, method) {
|
||
return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method];
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/get-iterator-direct.js"
|
||
/*!****************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/get-iterator-direct.js ***!
|
||
\****************************************************************/
|
||
(module) {
|
||
|
||
|
||
// `GetIteratorDirect(obj)` abstract operation
|
||
// https://tc39.es/ecma262/#sec-getiteratordirect
|
||
module.exports = function (obj) {
|
||
return {
|
||
iterator: obj,
|
||
next: obj.next,
|
||
done: false
|
||
};
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/get-iterator-method.js"
|
||
/*!****************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/get-iterator-method.js ***!
|
||
\****************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var classof = __webpack_require__(/*! ../internals/classof */ "../node_modules/core-js/internals/classof.js");
|
||
var getMethod = __webpack_require__(/*! ../internals/get-method */ "../node_modules/core-js/internals/get-method.js");
|
||
var isNullOrUndefined = __webpack_require__(/*! ../internals/is-null-or-undefined */ "../node_modules/core-js/internals/is-null-or-undefined.js");
|
||
var Iterators = __webpack_require__(/*! ../internals/iterators */ "../node_modules/core-js/internals/iterators.js");
|
||
var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "../node_modules/core-js/internals/well-known-symbol.js");
|
||
|
||
var ITERATOR = wellKnownSymbol('iterator');
|
||
|
||
module.exports = function (it) {
|
||
if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)
|
||
|| getMethod(it, '@@iterator')
|
||
|| Iterators[classof(it)];
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/get-iterator.js"
|
||
/*!*********************************************************!*\
|
||
!*** ../node_modules/core-js/internals/get-iterator.js ***!
|
||
\*********************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var call = __webpack_require__(/*! ../internals/function-call */ "../node_modules/core-js/internals/function-call.js");
|
||
var aCallable = __webpack_require__(/*! ../internals/a-callable */ "../node_modules/core-js/internals/a-callable.js");
|
||
var anObject = __webpack_require__(/*! ../internals/an-object */ "../node_modules/core-js/internals/an-object.js");
|
||
var tryToString = __webpack_require__(/*! ../internals/try-to-string */ "../node_modules/core-js/internals/try-to-string.js");
|
||
var getIteratorMethod = __webpack_require__(/*! ../internals/get-iterator-method */ "../node_modules/core-js/internals/get-iterator-method.js");
|
||
|
||
var $TypeError = TypeError;
|
||
|
||
module.exports = function (argument, usingIterator) {
|
||
var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;
|
||
if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));
|
||
throw new $TypeError(tryToString(argument) + ' is not iterable');
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/get-method.js"
|
||
/*!*******************************************************!*\
|
||
!*** ../node_modules/core-js/internals/get-method.js ***!
|
||
\*******************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var aCallable = __webpack_require__(/*! ../internals/a-callable */ "../node_modules/core-js/internals/a-callable.js");
|
||
var isNullOrUndefined = __webpack_require__(/*! ../internals/is-null-or-undefined */ "../node_modules/core-js/internals/is-null-or-undefined.js");
|
||
|
||
// `GetMethod` abstract operation
|
||
// https://tc39.es/ecma262/#sec-getmethod
|
||
module.exports = function (V, P) {
|
||
var func = V[P];
|
||
return isNullOrUndefined(func) ? undefined : aCallable(func);
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/global-this.js"
|
||
/*!********************************************************!*\
|
||
!*** ../node_modules/core-js/internals/global-this.js ***!
|
||
\********************************************************/
|
||
(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) ||
|
||
check(typeof this == 'object' && this) ||
|
||
// eslint-disable-next-line no-new-func -- fallback
|
||
(function () { return this; })() || Function('return this')();
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/has-own-property.js"
|
||
/*!*************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/has-own-property.js ***!
|
||
\*************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "../node_modules/core-js/internals/function-uncurry-this.js");
|
||
var toObject = __webpack_require__(/*! ../internals/to-object */ "../node_modules/core-js/internals/to-object.js");
|
||
|
||
var hasOwnProperty = uncurryThis({}.hasOwnProperty);
|
||
|
||
// `HasOwnProperty` abstract operation
|
||
// https://tc39.es/ecma262/#sec-hasownproperty
|
||
// eslint-disable-next-line es/no-object-hasown -- safe
|
||
module.exports = Object.hasOwn || function hasOwn(it, key) {
|
||
return hasOwnProperty(toObject(it), key);
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/hidden-keys.js"
|
||
/*!********************************************************!*\
|
||
!*** ../node_modules/core-js/internals/hidden-keys.js ***!
|
||
\********************************************************/
|
||
(module) {
|
||
|
||
|
||
module.exports = {};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/html.js"
|
||
/*!*************************************************!*\
|
||
!*** ../node_modules/core-js/internals/html.js ***!
|
||
\*************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ "../node_modules/core-js/internals/get-built-in.js");
|
||
|
||
module.exports = getBuiltIn('document', 'documentElement');
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/ie8-dom-define.js"
|
||
/*!***********************************************************!*\
|
||
!*** ../node_modules/core-js/internals/ie8-dom-define.js ***!
|
||
\***********************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "../node_modules/core-js/internals/descriptors.js");
|
||
var fails = __webpack_require__(/*! ../internals/fails */ "../node_modules/core-js/internals/fails.js");
|
||
var createElement = __webpack_require__(/*! ../internals/document-create-element */ "../node_modules/core-js/internals/document-create-element.js");
|
||
|
||
// Thanks to IE8 for its funny defineProperty
|
||
module.exports = !DESCRIPTORS && !fails(function () {
|
||
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
||
return Object.defineProperty(createElement('div'), 'a', {
|
||
get: function () { return 7; }
|
||
}).a !== 7;
|
||
});
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/indexed-object.js"
|
||
/*!***********************************************************!*\
|
||
!*** ../node_modules/core-js/internals/indexed-object.js ***!
|
||
\***********************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "../node_modules/core-js/internals/function-uncurry-this.js");
|
||
var fails = __webpack_require__(/*! ../internals/fails */ "../node_modules/core-js/internals/fails.js");
|
||
var classof = __webpack_require__(/*! ../internals/classof-raw */ "../node_modules/core-js/internals/classof-raw.js");
|
||
|
||
var $Object = Object;
|
||
var split = uncurryThis(''.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(it, '') : $Object(it);
|
||
} : $Object;
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/inspect-source.js"
|
||
/*!***********************************************************!*\
|
||
!*** ../node_modules/core-js/internals/inspect-source.js ***!
|
||
\***********************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "../node_modules/core-js/internals/function-uncurry-this.js");
|
||
var isCallable = __webpack_require__(/*! ../internals/is-callable */ "../node_modules/core-js/internals/is-callable.js");
|
||
var store = __webpack_require__(/*! ../internals/shared-store */ "../node_modules/core-js/internals/shared-store.js");
|
||
|
||
var functionToString = uncurryThis(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(it);
|
||
};
|
||
}
|
||
|
||
module.exports = store.inspectSource;
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/internal-state.js"
|
||
/*!***********************************************************!*\
|
||
!*** ../node_modules/core-js/internals/internal-state.js ***!
|
||
\***********************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var NATIVE_WEAK_MAP = __webpack_require__(/*! ../internals/weak-map-basic-detection */ "../node_modules/core-js/internals/weak-map-basic-detection.js");
|
||
var globalThis = __webpack_require__(/*! ../internals/global-this */ "../node_modules/core-js/internals/global-this.js");
|
||
var isObject = __webpack_require__(/*! ../internals/is-object */ "../node_modules/core-js/internals/is-object.js");
|
||
var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "../node_modules/core-js/internals/create-non-enumerable-property.js");
|
||
var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "../node_modules/core-js/internals/has-own-property.js");
|
||
var shared = __webpack_require__(/*! ../internals/shared-store */ "../node_modules/core-js/internals/shared-store.js");
|
||
var sharedKey = __webpack_require__(/*! ../internals/shared-key */ "../node_modules/core-js/internals/shared-key.js");
|
||
var hiddenKeys = __webpack_require__(/*! ../internals/hidden-keys */ "../node_modules/core-js/internals/hidden-keys.js");
|
||
|
||
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
||
var TypeError = globalThis.TypeError;
|
||
var WeakMap = globalThis.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 new TypeError('Incompatible receiver, ' + TYPE + ' required');
|
||
} return state;
|
||
};
|
||
};
|
||
|
||
if (NATIVE_WEAK_MAP || shared.state) {
|
||
var store = shared.state || (shared.state = new WeakMap());
|
||
/* eslint-disable no-self-assign -- prototype methods protection */
|
||
store.get = store.get;
|
||
store.has = store.has;
|
||
store.set = store.set;
|
||
/* eslint-enable no-self-assign -- prototype methods protection */
|
||
set = function (it, metadata) {
|
||
if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
|
||
metadata.facade = it;
|
||
store.set(it, metadata);
|
||
return metadata;
|
||
};
|
||
get = function (it) {
|
||
return store.get(it) || {};
|
||
};
|
||
has = function (it) {
|
||
return store.has(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
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/is-array-iterator-method.js"
|
||
/*!*********************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/is-array-iterator-method.js ***!
|
||
\*********************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "../node_modules/core-js/internals/well-known-symbol.js");
|
||
var Iterators = __webpack_require__(/*! ../internals/iterators */ "../node_modules/core-js/internals/iterators.js");
|
||
|
||
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);
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/is-callable.js"
|
||
/*!********************************************************!*\
|
||
!*** ../node_modules/core-js/internals/is-callable.js ***!
|
||
\********************************************************/
|
||
(module) {
|
||
|
||
|
||
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
||
var documentAll = typeof document == 'object' && document.all;
|
||
|
||
// `IsCallable` abstract operation
|
||
// https://tc39.es/ecma262/#sec-iscallable
|
||
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
||
module.exports = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
||
return typeof argument == 'function' || argument === documentAll;
|
||
} : function (argument) {
|
||
return typeof argument == 'function';
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/is-forced.js"
|
||
/*!******************************************************!*\
|
||
!*** ../node_modules/core-js/internals/is-forced.js ***!
|
||
\******************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var fails = __webpack_require__(/*! ../internals/fails */ "../node_modules/core-js/internals/fails.js");
|
||
var isCallable = __webpack_require__(/*! ../internals/is-callable */ "../node_modules/core-js/internals/is-callable.js");
|
||
|
||
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;
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/is-null-or-undefined.js"
|
||
/*!*****************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/is-null-or-undefined.js ***!
|
||
\*****************************************************************/
|
||
(module) {
|
||
|
||
|
||
// we can't use just `it == null` since of `document.all` special case
|
||
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
||
module.exports = function (it) {
|
||
return it === null || it === undefined;
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/is-object.js"
|
||
/*!******************************************************!*\
|
||
!*** ../node_modules/core-js/internals/is-object.js ***!
|
||
\******************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var isCallable = __webpack_require__(/*! ../internals/is-callable */ "../node_modules/core-js/internals/is-callable.js");
|
||
|
||
module.exports = function (it) {
|
||
return typeof it == 'object' ? it !== null : isCallable(it);
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/is-pure.js"
|
||
/*!****************************************************!*\
|
||
!*** ../node_modules/core-js/internals/is-pure.js ***!
|
||
\****************************************************/
|
||
(module) {
|
||
|
||
|
||
module.exports = false;
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/is-symbol.js"
|
||
/*!******************************************************!*\
|
||
!*** ../node_modules/core-js/internals/is-symbol.js ***!
|
||
\******************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ "../node_modules/core-js/internals/get-built-in.js");
|
||
var isCallable = __webpack_require__(/*! ../internals/is-callable */ "../node_modules/core-js/internals/is-callable.js");
|
||
var isPrototypeOf = __webpack_require__(/*! ../internals/object-is-prototype-of */ "../node_modules/core-js/internals/object-is-prototype-of.js");
|
||
var USE_SYMBOL_AS_UID = __webpack_require__(/*! ../internals/use-symbol-as-uid */ "../node_modules/core-js/internals/use-symbol-as-uid.js");
|
||
|
||
var $Object = Object;
|
||
|
||
module.exports = USE_SYMBOL_AS_UID ? function (it) {
|
||
return typeof it == 'symbol';
|
||
} : function (it) {
|
||
var $Symbol = getBuiltIn('Symbol');
|
||
return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/iterate.js"
|
||
/*!****************************************************!*\
|
||
!*** ../node_modules/core-js/internals/iterate.js ***!
|
||
\****************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var bind = __webpack_require__(/*! ../internals/function-bind-context */ "../node_modules/core-js/internals/function-bind-context.js");
|
||
var call = __webpack_require__(/*! ../internals/function-call */ "../node_modules/core-js/internals/function-call.js");
|
||
var anObject = __webpack_require__(/*! ../internals/an-object */ "../node_modules/core-js/internals/an-object.js");
|
||
var tryToString = __webpack_require__(/*! ../internals/try-to-string */ "../node_modules/core-js/internals/try-to-string.js");
|
||
var isArrayIteratorMethod = __webpack_require__(/*! ../internals/is-array-iterator-method */ "../node_modules/core-js/internals/is-array-iterator-method.js");
|
||
var lengthOfArrayLike = __webpack_require__(/*! ../internals/length-of-array-like */ "../node_modules/core-js/internals/length-of-array-like.js");
|
||
var isPrototypeOf = __webpack_require__(/*! ../internals/object-is-prototype-of */ "../node_modules/core-js/internals/object-is-prototype-of.js");
|
||
var getIterator = __webpack_require__(/*! ../internals/get-iterator */ "../node_modules/core-js/internals/get-iterator.js");
|
||
var getIteratorMethod = __webpack_require__(/*! ../internals/get-iterator-method */ "../node_modules/core-js/internals/get-iterator-method.js");
|
||
var iteratorClose = __webpack_require__(/*! ../internals/iterator-close */ "../node_modules/core-js/internals/iterator-close.js");
|
||
|
||
var $TypeError = TypeError;
|
||
|
||
var Result = function (stopped, result) {
|
||
this.stopped = stopped;
|
||
this.result = result;
|
||
};
|
||
|
||
var ResultPrototype = Result.prototype;
|
||
|
||
module.exports = function (iterable, unboundFunction, options) {
|
||
var that = options && options.that;
|
||
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
||
var IS_RECORD = !!(options && options.IS_RECORD);
|
||
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
||
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
||
var fn = bind(unboundFunction, that);
|
||
var iterator, iterFn, index, length, result, next, step;
|
||
|
||
var stop = function (condition) {
|
||
if (iterator) iteratorClose(iterator, 'normal');
|
||
return new Result(true, condition);
|
||
};
|
||
|
||
var callFn = function (value) {
|
||
if (AS_ENTRIES) {
|
||
anObject(value);
|
||
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
||
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
||
};
|
||
|
||
if (IS_RECORD) {
|
||
iterator = iterable.iterator;
|
||
} else if (IS_ITERATOR) {
|
||
iterator = iterable;
|
||
} else {
|
||
iterFn = getIteratorMethod(iterable);
|
||
if (!iterFn) throw new $TypeError(tryToString(iterable) + ' is not iterable');
|
||
// optimisation for array iterators
|
||
if (isArrayIteratorMethod(iterFn)) {
|
||
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
||
result = callFn(iterable[index]);
|
||
if (result && isPrototypeOf(ResultPrototype, result)) return result;
|
||
} return new Result(false);
|
||
}
|
||
iterator = getIterator(iterable, iterFn);
|
||
}
|
||
|
||
next = IS_RECORD ? iterable.next : iterator.next;
|
||
while (!(step = call(next, iterator)).done) {
|
||
try {
|
||
result = callFn(step.value);
|
||
} catch (error) {
|
||
iteratorClose(iterator, 'throw', error);
|
||
}
|
||
if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
|
||
} return new Result(false);
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/iterator-close-all.js"
|
||
/*!***************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/iterator-close-all.js ***!
|
||
\***************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var iteratorClose = __webpack_require__(/*! ../internals/iterator-close */ "../node_modules/core-js/internals/iterator-close.js");
|
||
|
||
module.exports = function (iters, kind, value) {
|
||
for (var i = iters.length - 1; i >= 0; i--) {
|
||
if (iters[i] === undefined) continue;
|
||
try {
|
||
value = iteratorClose(iters[i].iterator, kind, value);
|
||
} catch (error) {
|
||
kind = 'throw';
|
||
value = error;
|
||
}
|
||
}
|
||
if (kind === 'throw') throw value;
|
||
return value;
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/iterator-close.js"
|
||
/*!***********************************************************!*\
|
||
!*** ../node_modules/core-js/internals/iterator-close.js ***!
|
||
\***********************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var call = __webpack_require__(/*! ../internals/function-call */ "../node_modules/core-js/internals/function-call.js");
|
||
var anObject = __webpack_require__(/*! ../internals/an-object */ "../node_modules/core-js/internals/an-object.js");
|
||
var getMethod = __webpack_require__(/*! ../internals/get-method */ "../node_modules/core-js/internals/get-method.js");
|
||
|
||
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 = call(innerResult, iterator);
|
||
} catch (error) {
|
||
innerError = true;
|
||
innerResult = error;
|
||
}
|
||
if (kind === 'throw') throw value;
|
||
if (innerError) throw innerResult;
|
||
anObject(innerResult);
|
||
return value;
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/iterator-create-proxy.js"
|
||
/*!******************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/iterator-create-proxy.js ***!
|
||
\******************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var call = __webpack_require__(/*! ../internals/function-call */ "../node_modules/core-js/internals/function-call.js");
|
||
var create = __webpack_require__(/*! ../internals/object-create */ "../node_modules/core-js/internals/object-create.js");
|
||
var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "../node_modules/core-js/internals/create-non-enumerable-property.js");
|
||
var defineBuiltIns = __webpack_require__(/*! ../internals/define-built-ins */ "../node_modules/core-js/internals/define-built-ins.js");
|
||
var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "../node_modules/core-js/internals/well-known-symbol.js");
|
||
var InternalStateModule = __webpack_require__(/*! ../internals/internal-state */ "../node_modules/core-js/internals/internal-state.js");
|
||
var getMethod = __webpack_require__(/*! ../internals/get-method */ "../node_modules/core-js/internals/get-method.js");
|
||
var IteratorPrototype = (__webpack_require__(/*! ../internals/iterators-core */ "../node_modules/core-js/internals/iterators-core.js").IteratorPrototype);
|
||
var createIterResultObject = __webpack_require__(/*! ../internals/create-iter-result-object */ "../node_modules/core-js/internals/create-iter-result-object.js");
|
||
var iteratorClose = __webpack_require__(/*! ../internals/iterator-close */ "../node_modules/core-js/internals/iterator-close.js");
|
||
var iteratorCloseAll = __webpack_require__(/*! ../internals/iterator-close-all */ "../node_modules/core-js/internals/iterator-close-all.js");
|
||
|
||
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
||
var ITERATOR_HELPER = 'IteratorHelper';
|
||
var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
|
||
var NORMAL = 'normal';
|
||
var THROW = 'throw';
|
||
var setInternalState = InternalStateModule.set;
|
||
|
||
var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
||
var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
|
||
|
||
return defineBuiltIns(create(IteratorPrototype), {
|
||
next: function next() {
|
||
var state = getInternalState(this);
|
||
// for simplification:
|
||
// for `%WrapForValidIteratorPrototype%.next` or with `state.returnHandlerResult` our `nextHandler` returns `IterResultObject`
|
||
// for `%IteratorHelperPrototype%.next` - just a value
|
||
if (IS_ITERATOR) return state.nextHandler();
|
||
if (state.done) return createIterResultObject(undefined, true);
|
||
try {
|
||
var result = state.nextHandler();
|
||
return state.returnHandlerResult ? result : createIterResultObject(result, state.done);
|
||
} catch (error) {
|
||
state.done = true;
|
||
throw error;
|
||
}
|
||
},
|
||
'return': function () {
|
||
var state = getInternalState(this);
|
||
var iterator = state.iterator;
|
||
state.done = true;
|
||
if (IS_ITERATOR) {
|
||
var returnMethod = getMethod(iterator, 'return');
|
||
return returnMethod ? call(returnMethod, iterator) : createIterResultObject(undefined, true);
|
||
}
|
||
if (state.inner) try {
|
||
iteratorClose(state.inner.iterator, NORMAL);
|
||
} catch (error) {
|
||
return iteratorClose(iterator, THROW, error);
|
||
}
|
||
if (state.openIters) try {
|
||
iteratorCloseAll(state.openIters, NORMAL);
|
||
} catch (error) {
|
||
return iteratorClose(iterator, THROW, error);
|
||
}
|
||
if (iterator) iteratorClose(iterator, NORMAL);
|
||
return createIterResultObject(undefined, true);
|
||
}
|
||
});
|
||
};
|
||
|
||
var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
|
||
var IteratorHelperPrototype = createIteratorProxyPrototype(false);
|
||
|
||
createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper');
|
||
|
||
module.exports = function (nextHandler, IS_ITERATOR, RETURN_HANDLER_RESULT) {
|
||
var IteratorProxy = function Iterator(record, state) {
|
||
if (state) {
|
||
state.iterator = record.iterator;
|
||
state.next = record.next;
|
||
} else state = record;
|
||
state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
|
||
state.returnHandlerResult = !!RETURN_HANDLER_RESULT;
|
||
state.nextHandler = nextHandler;
|
||
state.counter = 0;
|
||
state.done = false;
|
||
setInternalState(this, state);
|
||
};
|
||
|
||
IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
|
||
|
||
return IteratorProxy;
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/iterator-helper-throws-on-invalid-iterator.js"
|
||
/*!***************************************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/iterator-helper-throws-on-invalid-iterator.js ***!
|
||
\***************************************************************************************/
|
||
(module) {
|
||
|
||
|
||
// Should throw an error on invalid iterator
|
||
// https://issues.chromium.org/issues/336839115
|
||
module.exports = function (methodName, argument) {
|
||
// eslint-disable-next-line es/no-iterator -- required for testing
|
||
var method = typeof Iterator == 'function' && Iterator.prototype[methodName];
|
||
if (method) try {
|
||
method.call({ next: null }, argument).next();
|
||
} catch (error) {
|
||
return true;
|
||
}
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/iterator-helper-without-closing-on-early-error.js"
|
||
/*!*******************************************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/iterator-helper-without-closing-on-early-error.js ***!
|
||
\*******************************************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var globalThis = __webpack_require__(/*! ../internals/global-this */ "../node_modules/core-js/internals/global-this.js");
|
||
|
||
// https://github.com/tc39/ecma262/pull/3467
|
||
module.exports = function (METHOD_NAME, ExpectedError) {
|
||
var Iterator = globalThis.Iterator;
|
||
var IteratorPrototype = Iterator && Iterator.prototype;
|
||
var method = IteratorPrototype && IteratorPrototype[METHOD_NAME];
|
||
|
||
var CLOSED = false;
|
||
|
||
if (method) try {
|
||
method.call({
|
||
next: function () { return { done: true }; },
|
||
'return': function () { CLOSED = true; }
|
||
}, -1);
|
||
} catch (error) {
|
||
// https://bugs.webkit.org/show_bug.cgi?id=291195
|
||
if (!(error instanceof ExpectedError)) CLOSED = false;
|
||
}
|
||
|
||
if (!CLOSED) return method;
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/iterators-core.js"
|
||
/*!***********************************************************!*\
|
||
!*** ../node_modules/core-js/internals/iterators-core.js ***!
|
||
\***********************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var fails = __webpack_require__(/*! ../internals/fails */ "../node_modules/core-js/internals/fails.js");
|
||
var isCallable = __webpack_require__(/*! ../internals/is-callable */ "../node_modules/core-js/internals/is-callable.js");
|
||
var isObject = __webpack_require__(/*! ../internals/is-object */ "../node_modules/core-js/internals/is-object.js");
|
||
var create = __webpack_require__(/*! ../internals/object-create */ "../node_modules/core-js/internals/object-create.js");
|
||
var getPrototypeOf = __webpack_require__(/*! ../internals/object-get-prototype-of */ "../node_modules/core-js/internals/object-get-prototype-of.js");
|
||
var defineBuiltIn = __webpack_require__(/*! ../internals/define-built-in */ "../node_modules/core-js/internals/define-built-in.js");
|
||
var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "../node_modules/core-js/internals/well-known-symbol.js");
|
||
var IS_PURE = __webpack_require__(/*! ../internals/is-pure */ "../node_modules/core-js/internals/is-pure.js");
|
||
|
||
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 = !isObject(IteratorPrototype) || 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])) {
|
||
defineBuiltIn(IteratorPrototype, ITERATOR, function () {
|
||
return this;
|
||
});
|
||
}
|
||
|
||
module.exports = {
|
||
IteratorPrototype: IteratorPrototype,
|
||
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/iterators.js"
|
||
/*!******************************************************!*\
|
||
!*** ../node_modules/core-js/internals/iterators.js ***!
|
||
\******************************************************/
|
||
(module) {
|
||
|
||
|
||
module.exports = {};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/length-of-array-like.js"
|
||
/*!*****************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/length-of-array-like.js ***!
|
||
\*****************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var toLength = __webpack_require__(/*! ../internals/to-length */ "../node_modules/core-js/internals/to-length.js");
|
||
|
||
// `LengthOfArrayLike` abstract operation
|
||
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
||
module.exports = function (obj) {
|
||
return toLength(obj.length);
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/make-built-in.js"
|
||
/*!**********************************************************!*\
|
||
!*** ../node_modules/core-js/internals/make-built-in.js ***!
|
||
\**********************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "../node_modules/core-js/internals/function-uncurry-this.js");
|
||
var fails = __webpack_require__(/*! ../internals/fails */ "../node_modules/core-js/internals/fails.js");
|
||
var isCallable = __webpack_require__(/*! ../internals/is-callable */ "../node_modules/core-js/internals/is-callable.js");
|
||
var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "../node_modules/core-js/internals/has-own-property.js");
|
||
var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "../node_modules/core-js/internals/descriptors.js");
|
||
var CONFIGURABLE_FUNCTION_NAME = (__webpack_require__(/*! ../internals/function-name */ "../node_modules/core-js/internals/function-name.js").CONFIGURABLE);
|
||
var inspectSource = __webpack_require__(/*! ../internals/inspect-source */ "../node_modules/core-js/internals/inspect-source.js");
|
||
var InternalStateModule = __webpack_require__(/*! ../internals/internal-state */ "../node_modules/core-js/internals/internal-state.js");
|
||
|
||
var enforceInternalState = InternalStateModule.enforce;
|
||
var getInternalState = InternalStateModule.get;
|
||
var $String = String;
|
||
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
||
var defineProperty = Object.defineProperty;
|
||
var stringSlice = uncurryThis(''.slice);
|
||
var replace = uncurryThis(''.replace);
|
||
var join = uncurryThis([].join);
|
||
|
||
var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
|
||
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
||
});
|
||
|
||
var TEMPLATE = String(String).split('String');
|
||
|
||
var makeBuiltIn = module.exports = function (value, name, options) {
|
||
if (stringSlice($String(name), 0, 7) === 'Symbol(') {
|
||
name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
||
}
|
||
if (options && options.getter) name = 'get ' + name;
|
||
if (options && options.setter) name = 'set ' + name;
|
||
if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
||
if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
|
||
else value.name = name;
|
||
}
|
||
if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
|
||
defineProperty(value, 'length', { value: options.arity });
|
||
}
|
||
try {
|
||
if (options && hasOwn(options, 'constructor') && options.constructor) {
|
||
if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
|
||
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
||
} else if (value.prototype) value.prototype = undefined;
|
||
} catch (error) { /* empty */ }
|
||
var state = enforceInternalState(value);
|
||
if (!hasOwn(state, 'source')) {
|
||
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
||
} return value;
|
||
};
|
||
|
||
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
||
// eslint-disable-next-line no-extend-native -- required
|
||
Function.prototype.toString = makeBuiltIn(function toString() {
|
||
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
||
}, 'toString');
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/math-trunc.js"
|
||
/*!*******************************************************!*\
|
||
!*** ../node_modules/core-js/internals/math-trunc.js ***!
|
||
\*******************************************************/
|
||
(module) {
|
||
|
||
|
||
var ceil = Math.ceil;
|
||
var floor = Math.floor;
|
||
|
||
// `Math.trunc` method
|
||
// https://tc39.es/ecma262/#sec-math.trunc
|
||
// eslint-disable-next-line es/no-math-trunc -- safe
|
||
module.exports = Math.trunc || function trunc(x) {
|
||
var n = +x;
|
||
return (n > 0 ? floor : ceil)(n);
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/object-create.js"
|
||
/*!**********************************************************!*\
|
||
!*** ../node_modules/core-js/internals/object-create.js ***!
|
||
\**********************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
/* global ActiveXObject -- old IE, WSH */
|
||
var anObject = __webpack_require__(/*! ../internals/an-object */ "../node_modules/core-js/internals/an-object.js");
|
||
var definePropertiesModule = __webpack_require__(/*! ../internals/object-define-properties */ "../node_modules/core-js/internals/object-define-properties.js");
|
||
var enumBugKeys = __webpack_require__(/*! ../internals/enum-bug-keys */ "../node_modules/core-js/internals/enum-bug-keys.js");
|
||
var hiddenKeys = __webpack_require__(/*! ../internals/hidden-keys */ "../node_modules/core-js/internals/hidden-keys.js");
|
||
var html = __webpack_require__(/*! ../internals/html */ "../node_modules/core-js/internals/html.js");
|
||
var documentCreateElement = __webpack_require__(/*! ../internals/document-create-element */ "../node_modules/core-js/internals/document-create-element.js");
|
||
var sharedKey = __webpack_require__(/*! ../internals/shared-key */ "../node_modules/core-js/internals/shared-key.js");
|
||
|
||
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;
|
||
// eslint-disable-next-line no-useless-assignment -- avoid memory leak
|
||
activeXDocument = null;
|
||
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
|
||
// eslint-disable-next-line es/no-object-create -- safe
|
||
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 : definePropertiesModule.f(result, Properties);
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/object-define-properties.js"
|
||
/*!*********************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/object-define-properties.js ***!
|
||
\*********************************************************************/
|
||
(__unused_webpack_module, exports, __webpack_require__) {
|
||
|
||
|
||
var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "../node_modules/core-js/internals/descriptors.js");
|
||
var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(/*! ../internals/v8-prototype-define-bug */ "../node_modules/core-js/internals/v8-prototype-define-bug.js");
|
||
var definePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ "../node_modules/core-js/internals/object-define-property.js");
|
||
var anObject = __webpack_require__(/*! ../internals/an-object */ "../node_modules/core-js/internals/an-object.js");
|
||
var toIndexedObject = __webpack_require__(/*! ../internals/to-indexed-object */ "../node_modules/core-js/internals/to-indexed-object.js");
|
||
var objectKeys = __webpack_require__(/*! ../internals/object-keys */ "../node_modules/core-js/internals/object-keys.js");
|
||
|
||
// `Object.defineProperties` method
|
||
// https://tc39.es/ecma262/#sec-object.defineproperties
|
||
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
||
exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
||
anObject(O);
|
||
var props = toIndexedObject(Properties);
|
||
var keys = objectKeys(Properties);
|
||
var length = keys.length;
|
||
var index = 0;
|
||
var key;
|
||
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
||
return O;
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/object-define-property.js"
|
||
/*!*******************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/object-define-property.js ***!
|
||
\*******************************************************************/
|
||
(__unused_webpack_module, exports, __webpack_require__) {
|
||
|
||
|
||
var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "../node_modules/core-js/internals/descriptors.js");
|
||
var IE8_DOM_DEFINE = __webpack_require__(/*! ../internals/ie8-dom-define */ "../node_modules/core-js/internals/ie8-dom-define.js");
|
||
var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(/*! ../internals/v8-prototype-define-bug */ "../node_modules/core-js/internals/v8-prototype-define-bug.js");
|
||
var anObject = __webpack_require__(/*! ../internals/an-object */ "../node_modules/core-js/internals/an-object.js");
|
||
var toPropertyKey = __webpack_require__(/*! ../internals/to-property-key */ "../node_modules/core-js/internals/to-property-key.js");
|
||
|
||
var $TypeError = TypeError;
|
||
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
||
var $defineProperty = Object.defineProperty;
|
||
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
||
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
||
var ENUMERABLE = 'enumerable';
|
||
var CONFIGURABLE = 'configurable';
|
||
var WRITABLE = 'writable';
|
||
|
||
// `Object.defineProperty` method
|
||
// https://tc39.es/ecma262/#sec-object.defineproperty
|
||
exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
|
||
anObject(O);
|
||
P = toPropertyKey(P);
|
||
anObject(Attributes);
|
||
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
||
var current = $getOwnPropertyDescriptor(O, P);
|
||
if (current && current[WRITABLE]) {
|
||
O[P] = Attributes.value;
|
||
Attributes = {
|
||
configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
|
||
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
||
writable: false
|
||
};
|
||
}
|
||
} return $defineProperty(O, P, Attributes);
|
||
} : $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 new $TypeError('Accessors not supported');
|
||
if ('value' in Attributes) O[P] = Attributes.value;
|
||
return O;
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/object-get-own-property-descriptor.js"
|
||
/*!*******************************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/object-get-own-property-descriptor.js ***!
|
||
\*******************************************************************************/
|
||
(__unused_webpack_module, exports, __webpack_require__) {
|
||
|
||
|
||
var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "../node_modules/core-js/internals/descriptors.js");
|
||
var call = __webpack_require__(/*! ../internals/function-call */ "../node_modules/core-js/internals/function-call.js");
|
||
var propertyIsEnumerableModule = __webpack_require__(/*! ../internals/object-property-is-enumerable */ "../node_modules/core-js/internals/object-property-is-enumerable.js");
|
||
var createPropertyDescriptor = __webpack_require__(/*! ../internals/create-property-descriptor */ "../node_modules/core-js/internals/create-property-descriptor.js");
|
||
var toIndexedObject = __webpack_require__(/*! ../internals/to-indexed-object */ "../node_modules/core-js/internals/to-indexed-object.js");
|
||
var toPropertyKey = __webpack_require__(/*! ../internals/to-property-key */ "../node_modules/core-js/internals/to-property-key.js");
|
||
var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "../node_modules/core-js/internals/has-own-property.js");
|
||
var IE8_DOM_DEFINE = __webpack_require__(/*! ../internals/ie8-dom-define */ "../node_modules/core-js/internals/ie8-dom-define.js");
|
||
|
||
// 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(!call(propertyIsEnumerableModule.f, O, P), O[P]);
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/object-get-own-property-names.js"
|
||
/*!**************************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/object-get-own-property-names.js ***!
|
||
\**************************************************************************/
|
||
(__unused_webpack_module, exports, __webpack_require__) {
|
||
|
||
|
||
var internalObjectKeys = __webpack_require__(/*! ../internals/object-keys-internal */ "../node_modules/core-js/internals/object-keys-internal.js");
|
||
var enumBugKeys = __webpack_require__(/*! ../internals/enum-bug-keys */ "../node_modules/core-js/internals/enum-bug-keys.js");
|
||
|
||
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);
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/object-get-own-property-symbols.js"
|
||
/*!****************************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/object-get-own-property-symbols.js ***!
|
||
\****************************************************************************/
|
||
(__unused_webpack_module, exports) {
|
||
|
||
|
||
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
||
exports.f = Object.getOwnPropertySymbols;
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/object-get-prototype-of.js"
|
||
/*!********************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/object-get-prototype-of.js ***!
|
||
\********************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "../node_modules/core-js/internals/has-own-property.js");
|
||
var isCallable = __webpack_require__(/*! ../internals/is-callable */ "../node_modules/core-js/internals/is-callable.js");
|
||
var toObject = __webpack_require__(/*! ../internals/to-object */ "../node_modules/core-js/internals/to-object.js");
|
||
var sharedKey = __webpack_require__(/*! ../internals/shared-key */ "../node_modules/core-js/internals/shared-key.js");
|
||
var CORRECT_PROTOTYPE_GETTER = __webpack_require__(/*! ../internals/correct-prototype-getter */ "../node_modules/core-js/internals/correct-prototype-getter.js");
|
||
|
||
var IE_PROTO = sharedKey('IE_PROTO');
|
||
var $Object = Object;
|
||
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;
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/object-is-prototype-of.js"
|
||
/*!*******************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/object-is-prototype-of.js ***!
|
||
\*******************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "../node_modules/core-js/internals/function-uncurry-this.js");
|
||
|
||
module.exports = uncurryThis({}.isPrototypeOf);
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/object-keys-internal.js"
|
||
/*!*****************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/object-keys-internal.js ***!
|
||
\*****************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "../node_modules/core-js/internals/function-uncurry-this.js");
|
||
var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "../node_modules/core-js/internals/has-own-property.js");
|
||
var toIndexedObject = __webpack_require__(/*! ../internals/to-indexed-object */ "../node_modules/core-js/internals/to-indexed-object.js");
|
||
var indexOf = (__webpack_require__(/*! ../internals/array-includes */ "../node_modules/core-js/internals/array-includes.js").indexOf);
|
||
var hiddenKeys = __webpack_require__(/*! ../internals/hidden-keys */ "../node_modules/core-js/internals/hidden-keys.js");
|
||
|
||
var push = uncurryThis([].push);
|
||
|
||
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) && push(result, key);
|
||
// Don't enum bug & hidden keys
|
||
while (names.length > i) if (hasOwn(O, key = names[i++])) {
|
||
~indexOf(result, key) || push(result, key);
|
||
}
|
||
return result;
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/object-keys.js"
|
||
/*!********************************************************!*\
|
||
!*** ../node_modules/core-js/internals/object-keys.js ***!
|
||
\********************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var internalObjectKeys = __webpack_require__(/*! ../internals/object-keys-internal */ "../node_modules/core-js/internals/object-keys-internal.js");
|
||
var enumBugKeys = __webpack_require__(/*! ../internals/enum-bug-keys */ "../node_modules/core-js/internals/enum-bug-keys.js");
|
||
|
||
// `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);
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/object-property-is-enumerable.js"
|
||
/*!**************************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/object-property-is-enumerable.js ***!
|
||
\**************************************************************************/
|
||
(__unused_webpack_module, exports) {
|
||
|
||
|
||
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;
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/ordinary-to-primitive.js"
|
||
/*!******************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/ordinary-to-primitive.js ***!
|
||
\******************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var call = __webpack_require__(/*! ../internals/function-call */ "../node_modules/core-js/internals/function-call.js");
|
||
var isCallable = __webpack_require__(/*! ../internals/is-callable */ "../node_modules/core-js/internals/is-callable.js");
|
||
var isObject = __webpack_require__(/*! ../internals/is-object */ "../node_modules/core-js/internals/is-object.js");
|
||
|
||
var $TypeError = TypeError;
|
||
|
||
// `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 = call(fn, input))) return val;
|
||
if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;
|
||
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
|
||
throw new $TypeError("Can't convert object to primitive value");
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/own-keys.js"
|
||
/*!*****************************************************!*\
|
||
!*** ../node_modules/core-js/internals/own-keys.js ***!
|
||
\*****************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ "../node_modules/core-js/internals/get-built-in.js");
|
||
var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "../node_modules/core-js/internals/function-uncurry-this.js");
|
||
var getOwnPropertyNamesModule = __webpack_require__(/*! ../internals/object-get-own-property-names */ "../node_modules/core-js/internals/object-get-own-property-names.js");
|
||
var getOwnPropertySymbolsModule = __webpack_require__(/*! ../internals/object-get-own-property-symbols */ "../node_modules/core-js/internals/object-get-own-property-symbols.js");
|
||
var anObject = __webpack_require__(/*! ../internals/an-object */ "../node_modules/core-js/internals/an-object.js");
|
||
|
||
var concat = uncurryThis([].concat);
|
||
|
||
// 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 ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/require-object-coercible.js"
|
||
/*!*********************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/require-object-coercible.js ***!
|
||
\*********************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var isNullOrUndefined = __webpack_require__(/*! ../internals/is-null-or-undefined */ "../node_modules/core-js/internals/is-null-or-undefined.js");
|
||
|
||
var $TypeError = TypeError;
|
||
|
||
// `RequireObjectCoercible` abstract operation
|
||
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
||
module.exports = function (it) {
|
||
if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
|
||
return it;
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/shared-key.js"
|
||
/*!*******************************************************!*\
|
||
!*** ../node_modules/core-js/internals/shared-key.js ***!
|
||
\*******************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var shared = __webpack_require__(/*! ../internals/shared */ "../node_modules/core-js/internals/shared.js");
|
||
var uid = __webpack_require__(/*! ../internals/uid */ "../node_modules/core-js/internals/uid.js");
|
||
|
||
var keys = shared('keys');
|
||
|
||
module.exports = function (key) {
|
||
return keys[key] || (keys[key] = uid(key));
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/shared-store.js"
|
||
/*!*********************************************************!*\
|
||
!*** ../node_modules/core-js/internals/shared-store.js ***!
|
||
\*********************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var IS_PURE = __webpack_require__(/*! ../internals/is-pure */ "../node_modules/core-js/internals/is-pure.js");
|
||
var globalThis = __webpack_require__(/*! ../internals/global-this */ "../node_modules/core-js/internals/global-this.js");
|
||
var defineGlobalProperty = __webpack_require__(/*! ../internals/define-global-property */ "../node_modules/core-js/internals/define-global-property.js");
|
||
|
||
var SHARED = '__core-js_shared__';
|
||
var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
|
||
|
||
(store.versions || (store.versions = [])).push({
|
||
version: '3.48.0',
|
||
mode: IS_PURE ? 'pure' : 'global',
|
||
copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
|
||
license: 'https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE',
|
||
source: 'https://github.com/zloirock/core-js'
|
||
});
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/shared.js"
|
||
/*!***************************************************!*\
|
||
!*** ../node_modules/core-js/internals/shared.js ***!
|
||
\***************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var store = __webpack_require__(/*! ../internals/shared-store */ "../node_modules/core-js/internals/shared-store.js");
|
||
|
||
module.exports = function (key, value) {
|
||
return store[key] || (store[key] = value || {});
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/symbol-constructor-detection.js"
|
||
/*!*************************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/symbol-constructor-detection.js ***!
|
||
\*************************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
/* eslint-disable es/no-symbol -- required for testing */
|
||
var V8_VERSION = __webpack_require__(/*! ../internals/environment-v8-version */ "../node_modules/core-js/internals/environment-v8-version.js");
|
||
var fails = __webpack_require__(/*! ../internals/fails */ "../node_modules/core-js/internals/fails.js");
|
||
var globalThis = __webpack_require__(/*! ../internals/global-this */ "../node_modules/core-js/internals/global-this.js");
|
||
|
||
var $String = globalThis.String;
|
||
|
||
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
||
module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
|
||
var symbol = Symbol('symbol detection');
|
||
// Chrome 38 Symbol has incorrect toString conversion
|
||
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
||
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
||
// of course, fail.
|
||
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;
|
||
});
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/to-absolute-index.js"
|
||
/*!**************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/to-absolute-index.js ***!
|
||
\**************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var toIntegerOrInfinity = __webpack_require__(/*! ../internals/to-integer-or-infinity */ "../node_modules/core-js/internals/to-integer-or-infinity.js");
|
||
|
||
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);
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/to-indexed-object.js"
|
||
/*!**************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/to-indexed-object.js ***!
|
||
\**************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
// toObject with fallback for non-array-like ES3 strings
|
||
var IndexedObject = __webpack_require__(/*! ../internals/indexed-object */ "../node_modules/core-js/internals/indexed-object.js");
|
||
var requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ "../node_modules/core-js/internals/require-object-coercible.js");
|
||
|
||
module.exports = function (it) {
|
||
return IndexedObject(requireObjectCoercible(it));
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/to-integer-or-infinity.js"
|
||
/*!*******************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/to-integer-or-infinity.js ***!
|
||
\*******************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var trunc = __webpack_require__(/*! ../internals/math-trunc */ "../node_modules/core-js/internals/math-trunc.js");
|
||
|
||
// `ToIntegerOrInfinity` abstract operation
|
||
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
||
module.exports = function (argument) {
|
||
var number = +argument;
|
||
// eslint-disable-next-line no-self-compare -- NaN check
|
||
return number !== number || number === 0 ? 0 : trunc(number);
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/to-length.js"
|
||
/*!******************************************************!*\
|
||
!*** ../node_modules/core-js/internals/to-length.js ***!
|
||
\******************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var toIntegerOrInfinity = __webpack_require__(/*! ../internals/to-integer-or-infinity */ "../node_modules/core-js/internals/to-integer-or-infinity.js");
|
||
|
||
var min = Math.min;
|
||
|
||
// `ToLength` abstract operation
|
||
// https://tc39.es/ecma262/#sec-tolength
|
||
module.exports = function (argument) {
|
||
var len = toIntegerOrInfinity(argument);
|
||
return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/to-object.js"
|
||
/*!******************************************************!*\
|
||
!*** ../node_modules/core-js/internals/to-object.js ***!
|
||
\******************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ "../node_modules/core-js/internals/require-object-coercible.js");
|
||
|
||
var $Object = Object;
|
||
|
||
// `ToObject` abstract operation
|
||
// https://tc39.es/ecma262/#sec-toobject
|
||
module.exports = function (argument) {
|
||
return $Object(requireObjectCoercible(argument));
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/to-primitive.js"
|
||
/*!*********************************************************!*\
|
||
!*** ../node_modules/core-js/internals/to-primitive.js ***!
|
||
\*********************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var call = __webpack_require__(/*! ../internals/function-call */ "../node_modules/core-js/internals/function-call.js");
|
||
var isObject = __webpack_require__(/*! ../internals/is-object */ "../node_modules/core-js/internals/is-object.js");
|
||
var isSymbol = __webpack_require__(/*! ../internals/is-symbol */ "../node_modules/core-js/internals/is-symbol.js");
|
||
var getMethod = __webpack_require__(/*! ../internals/get-method */ "../node_modules/core-js/internals/get-method.js");
|
||
var ordinaryToPrimitive = __webpack_require__(/*! ../internals/ordinary-to-primitive */ "../node_modules/core-js/internals/ordinary-to-primitive.js");
|
||
var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "../node_modules/core-js/internals/well-known-symbol.js");
|
||
|
||
var $TypeError = TypeError;
|
||
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 = call(exoticToPrim, input, pref);
|
||
if (!isObject(result) || isSymbol(result)) return result;
|
||
throw new $TypeError("Can't convert object to primitive value");
|
||
}
|
||
if (pref === undefined) pref = 'number';
|
||
return ordinaryToPrimitive(input, pref);
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/to-property-key.js"
|
||
/*!************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/to-property-key.js ***!
|
||
\************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var toPrimitive = __webpack_require__(/*! ../internals/to-primitive */ "../node_modules/core-js/internals/to-primitive.js");
|
||
var isSymbol = __webpack_require__(/*! ../internals/is-symbol */ "../node_modules/core-js/internals/is-symbol.js");
|
||
|
||
// `ToPropertyKey` abstract operation
|
||
// https://tc39.es/ecma262/#sec-topropertykey
|
||
module.exports = function (argument) {
|
||
var key = toPrimitive(argument, 'string');
|
||
return isSymbol(key) ? key : key + '';
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/to-string-tag-support.js"
|
||
/*!******************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/to-string-tag-support.js ***!
|
||
\******************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "../node_modules/core-js/internals/well-known-symbol.js");
|
||
|
||
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
||
var test = {};
|
||
// eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
|
||
test[TO_STRING_TAG] = 'z';
|
||
|
||
module.exports = String(test) === '[object z]';
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/try-to-string.js"
|
||
/*!**********************************************************!*\
|
||
!*** ../node_modules/core-js/internals/try-to-string.js ***!
|
||
\**********************************************************/
|
||
(module) {
|
||
|
||
|
||
var $String = String;
|
||
|
||
module.exports = function (argument) {
|
||
try {
|
||
return $String(argument);
|
||
} catch (error) {
|
||
return 'Object';
|
||
}
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/uid.js"
|
||
/*!************************************************!*\
|
||
!*** ../node_modules/core-js/internals/uid.js ***!
|
||
\************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "../node_modules/core-js/internals/function-uncurry-this.js");
|
||
|
||
var id = 0;
|
||
var postfix = Math.random();
|
||
var toString = uncurryThis(1.1.toString);
|
||
|
||
module.exports = function (key) {
|
||
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/use-symbol-as-uid.js"
|
||
/*!**************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/use-symbol-as-uid.js ***!
|
||
\**************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
/* eslint-disable es/no-symbol -- required for testing */
|
||
var NATIVE_SYMBOL = __webpack_require__(/*! ../internals/symbol-constructor-detection */ "../node_modules/core-js/internals/symbol-constructor-detection.js");
|
||
|
||
module.exports = NATIVE_SYMBOL &&
|
||
!Symbol.sham &&
|
||
typeof Symbol.iterator == 'symbol';
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/v8-prototype-define-bug.js"
|
||
/*!********************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/v8-prototype-define-bug.js ***!
|
||
\********************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "../node_modules/core-js/internals/descriptors.js");
|
||
var fails = __webpack_require__(/*! ../internals/fails */ "../node_modules/core-js/internals/fails.js");
|
||
|
||
// V8 ~ Chrome 36-
|
||
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
||
module.exports = DESCRIPTORS && fails(function () {
|
||
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
||
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
||
value: 42,
|
||
writable: false
|
||
}).prototype !== 42;
|
||
});
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/weak-map-basic-detection.js"
|
||
/*!*********************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/weak-map-basic-detection.js ***!
|
||
\*********************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var globalThis = __webpack_require__(/*! ../internals/global-this */ "../node_modules/core-js/internals/global-this.js");
|
||
var isCallable = __webpack_require__(/*! ../internals/is-callable */ "../node_modules/core-js/internals/is-callable.js");
|
||
|
||
var WeakMap = globalThis.WeakMap;
|
||
|
||
module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/internals/well-known-symbol.js"
|
||
/*!**************************************************************!*\
|
||
!*** ../node_modules/core-js/internals/well-known-symbol.js ***!
|
||
\**************************************************************/
|
||
(module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var globalThis = __webpack_require__(/*! ../internals/global-this */ "../node_modules/core-js/internals/global-this.js");
|
||
var shared = __webpack_require__(/*! ../internals/shared */ "../node_modules/core-js/internals/shared.js");
|
||
var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "../node_modules/core-js/internals/has-own-property.js");
|
||
var uid = __webpack_require__(/*! ../internals/uid */ "../node_modules/core-js/internals/uid.js");
|
||
var NATIVE_SYMBOL = __webpack_require__(/*! ../internals/symbol-constructor-detection */ "../node_modules/core-js/internals/symbol-constructor-detection.js");
|
||
var USE_SYMBOL_AS_UID = __webpack_require__(/*! ../internals/use-symbol-as-uid */ "../node_modules/core-js/internals/use-symbol-as-uid.js");
|
||
|
||
var Symbol = globalThis.Symbol;
|
||
var WellKnownSymbolsStore = shared('wks');
|
||
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;
|
||
|
||
module.exports = function (name) {
|
||
if (!hasOwn(WellKnownSymbolsStore, name)) {
|
||
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)
|
||
? Symbol[name]
|
||
: createWellKnownSymbol('Symbol.' + name);
|
||
} return WellKnownSymbolsStore[name];
|
||
};
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/modules/es.iterator.constructor.js"
|
||
/*!******************************************************************!*\
|
||
!*** ../node_modules/core-js/modules/es.iterator.constructor.js ***!
|
||
\******************************************************************/
|
||
(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var $ = __webpack_require__(/*! ../internals/export */ "../node_modules/core-js/internals/export.js");
|
||
var globalThis = __webpack_require__(/*! ../internals/global-this */ "../node_modules/core-js/internals/global-this.js");
|
||
var anInstance = __webpack_require__(/*! ../internals/an-instance */ "../node_modules/core-js/internals/an-instance.js");
|
||
var anObject = __webpack_require__(/*! ../internals/an-object */ "../node_modules/core-js/internals/an-object.js");
|
||
var isCallable = __webpack_require__(/*! ../internals/is-callable */ "../node_modules/core-js/internals/is-callable.js");
|
||
var getPrototypeOf = __webpack_require__(/*! ../internals/object-get-prototype-of */ "../node_modules/core-js/internals/object-get-prototype-of.js");
|
||
var defineBuiltInAccessor = __webpack_require__(/*! ../internals/define-built-in-accessor */ "../node_modules/core-js/internals/define-built-in-accessor.js");
|
||
var createProperty = __webpack_require__(/*! ../internals/create-property */ "../node_modules/core-js/internals/create-property.js");
|
||
var fails = __webpack_require__(/*! ../internals/fails */ "../node_modules/core-js/internals/fails.js");
|
||
var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "../node_modules/core-js/internals/has-own-property.js");
|
||
var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "../node_modules/core-js/internals/well-known-symbol.js");
|
||
var IteratorPrototype = (__webpack_require__(/*! ../internals/iterators-core */ "../node_modules/core-js/internals/iterators-core.js").IteratorPrototype);
|
||
var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "../node_modules/core-js/internals/descriptors.js");
|
||
var IS_PURE = __webpack_require__(/*! ../internals/is-pure */ "../node_modules/core-js/internals/is-pure.js");
|
||
|
||
var CONSTRUCTOR = 'constructor';
|
||
var ITERATOR = 'Iterator';
|
||
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
||
|
||
var $TypeError = TypeError;
|
||
var NativeIterator = globalThis[ITERATOR];
|
||
|
||
// FF56- have non-standard global helper `Iterator`
|
||
var FORCED = IS_PURE
|
||
|| !isCallable(NativeIterator)
|
||
|| NativeIterator.prototype !== IteratorPrototype
|
||
// FF44- non-standard `Iterator` passes previous tests
|
||
|| !fails(function () { NativeIterator({}); });
|
||
|
||
var IteratorConstructor = function Iterator() {
|
||
anInstance(this, IteratorPrototype);
|
||
if (getPrototypeOf(this) === IteratorPrototype) throw new $TypeError('Abstract class Iterator not directly constructable');
|
||
};
|
||
|
||
var defineIteratorPrototypeAccessor = function (key, value) {
|
||
if (DESCRIPTORS) {
|
||
defineBuiltInAccessor(IteratorPrototype, key, {
|
||
configurable: true,
|
||
get: function () {
|
||
return value;
|
||
},
|
||
set: function (replacement) {
|
||
anObject(this);
|
||
if (this === IteratorPrototype) throw new $TypeError("You can't redefine this property");
|
||
if (hasOwn(this, key)) this[key] = replacement;
|
||
else createProperty(this, key, replacement);
|
||
}
|
||
});
|
||
} else IteratorPrototype[key] = value;
|
||
};
|
||
|
||
if (!hasOwn(IteratorPrototype, TO_STRING_TAG)) defineIteratorPrototypeAccessor(TO_STRING_TAG, ITERATOR);
|
||
|
||
if (FORCED || !hasOwn(IteratorPrototype, CONSTRUCTOR) || IteratorPrototype[CONSTRUCTOR] === Object) {
|
||
defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
|
||
}
|
||
|
||
IteratorConstructor.prototype = IteratorPrototype;
|
||
|
||
// `Iterator` constructor
|
||
// https://tc39.es/ecma262/#sec-iterator
|
||
$({ global: true, constructor: true, forced: FORCED }, {
|
||
Iterator: IteratorConstructor
|
||
});
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/modules/es.iterator.filter.js"
|
||
/*!*************************************************************!*\
|
||
!*** ../node_modules/core-js/modules/es.iterator.filter.js ***!
|
||
\*************************************************************/
|
||
(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var $ = __webpack_require__(/*! ../internals/export */ "../node_modules/core-js/internals/export.js");
|
||
var call = __webpack_require__(/*! ../internals/function-call */ "../node_modules/core-js/internals/function-call.js");
|
||
var aCallable = __webpack_require__(/*! ../internals/a-callable */ "../node_modules/core-js/internals/a-callable.js");
|
||
var anObject = __webpack_require__(/*! ../internals/an-object */ "../node_modules/core-js/internals/an-object.js");
|
||
var getIteratorDirect = __webpack_require__(/*! ../internals/get-iterator-direct */ "../node_modules/core-js/internals/get-iterator-direct.js");
|
||
var createIteratorProxy = __webpack_require__(/*! ../internals/iterator-create-proxy */ "../node_modules/core-js/internals/iterator-create-proxy.js");
|
||
var callWithSafeIterationClosing = __webpack_require__(/*! ../internals/call-with-safe-iteration-closing */ "../node_modules/core-js/internals/call-with-safe-iteration-closing.js");
|
||
var IS_PURE = __webpack_require__(/*! ../internals/is-pure */ "../node_modules/core-js/internals/is-pure.js");
|
||
var iteratorClose = __webpack_require__(/*! ../internals/iterator-close */ "../node_modules/core-js/internals/iterator-close.js");
|
||
var iteratorHelperThrowsOnInvalidIterator = __webpack_require__(/*! ../internals/iterator-helper-throws-on-invalid-iterator */ "../node_modules/core-js/internals/iterator-helper-throws-on-invalid-iterator.js");
|
||
var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(/*! ../internals/iterator-helper-without-closing-on-early-error */ "../node_modules/core-js/internals/iterator-helper-without-closing-on-early-error.js");
|
||
|
||
var FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR = !IS_PURE && !iteratorHelperThrowsOnInvalidIterator('filter', function () { /* empty */ });
|
||
var filterWithoutClosingOnEarlyError = !IS_PURE && !FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR
|
||
&& iteratorHelperWithoutClosingOnEarlyError('filter', TypeError);
|
||
|
||
var FORCED = IS_PURE || FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR || filterWithoutClosingOnEarlyError;
|
||
|
||
var IteratorProxy = createIteratorProxy(function () {
|
||
var iterator = this.iterator;
|
||
var predicate = this.predicate;
|
||
var next = this.next;
|
||
var result, done, value;
|
||
while (true) {
|
||
result = anObject(call(next, iterator));
|
||
done = this.done = !!result.done;
|
||
if (done) return;
|
||
value = result.value;
|
||
if (callWithSafeIterationClosing(iterator, predicate, [value, this.counter++], true)) return value;
|
||
}
|
||
});
|
||
|
||
// `Iterator.prototype.filter` method
|
||
// https://tc39.es/ecma262/#sec-iterator.prototype.filter
|
||
$({ target: 'Iterator', proto: true, real: true, forced: FORCED }, {
|
||
filter: function filter(predicate) {
|
||
anObject(this);
|
||
try {
|
||
aCallable(predicate);
|
||
} catch (error) {
|
||
iteratorClose(this, 'throw', error);
|
||
}
|
||
|
||
if (filterWithoutClosingOnEarlyError) return call(filterWithoutClosingOnEarlyError, this, predicate);
|
||
|
||
return new IteratorProxy(getIteratorDirect(this), {
|
||
predicate: predicate
|
||
});
|
||
}
|
||
});
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/modules/es.iterator.find.js"
|
||
/*!***********************************************************!*\
|
||
!*** ../node_modules/core-js/modules/es.iterator.find.js ***!
|
||
\***********************************************************/
|
||
(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var $ = __webpack_require__(/*! ../internals/export */ "../node_modules/core-js/internals/export.js");
|
||
var call = __webpack_require__(/*! ../internals/function-call */ "../node_modules/core-js/internals/function-call.js");
|
||
var iterate = __webpack_require__(/*! ../internals/iterate */ "../node_modules/core-js/internals/iterate.js");
|
||
var aCallable = __webpack_require__(/*! ../internals/a-callable */ "../node_modules/core-js/internals/a-callable.js");
|
||
var anObject = __webpack_require__(/*! ../internals/an-object */ "../node_modules/core-js/internals/an-object.js");
|
||
var getIteratorDirect = __webpack_require__(/*! ../internals/get-iterator-direct */ "../node_modules/core-js/internals/get-iterator-direct.js");
|
||
var iteratorClose = __webpack_require__(/*! ../internals/iterator-close */ "../node_modules/core-js/internals/iterator-close.js");
|
||
var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(/*! ../internals/iterator-helper-without-closing-on-early-error */ "../node_modules/core-js/internals/iterator-helper-without-closing-on-early-error.js");
|
||
|
||
var findWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError('find', TypeError);
|
||
|
||
// `Iterator.prototype.find` method
|
||
// https://tc39.es/ecma262/#sec-iterator.prototype.find
|
||
$({ target: 'Iterator', proto: true, real: true, forced: findWithoutClosingOnEarlyError }, {
|
||
find: function find(predicate) {
|
||
anObject(this);
|
||
try {
|
||
aCallable(predicate);
|
||
} catch (error) {
|
||
iteratorClose(this, 'throw', error);
|
||
}
|
||
|
||
if (findWithoutClosingOnEarlyError) return call(findWithoutClosingOnEarlyError, this, predicate);
|
||
|
||
var record = getIteratorDirect(this);
|
||
var counter = 0;
|
||
return iterate(record, function (value, stop) {
|
||
if (predicate(value, counter++)) return stop(value);
|
||
}, { IS_RECORD: true, INTERRUPTED: true }).result;
|
||
}
|
||
});
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/modules/es.iterator.map.js"
|
||
/*!**********************************************************!*\
|
||
!*** ../node_modules/core-js/modules/es.iterator.map.js ***!
|
||
\**********************************************************/
|
||
(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
var $ = __webpack_require__(/*! ../internals/export */ "../node_modules/core-js/internals/export.js");
|
||
var call = __webpack_require__(/*! ../internals/function-call */ "../node_modules/core-js/internals/function-call.js");
|
||
var aCallable = __webpack_require__(/*! ../internals/a-callable */ "../node_modules/core-js/internals/a-callable.js");
|
||
var anObject = __webpack_require__(/*! ../internals/an-object */ "../node_modules/core-js/internals/an-object.js");
|
||
var getIteratorDirect = __webpack_require__(/*! ../internals/get-iterator-direct */ "../node_modules/core-js/internals/get-iterator-direct.js");
|
||
var createIteratorProxy = __webpack_require__(/*! ../internals/iterator-create-proxy */ "../node_modules/core-js/internals/iterator-create-proxy.js");
|
||
var callWithSafeIterationClosing = __webpack_require__(/*! ../internals/call-with-safe-iteration-closing */ "../node_modules/core-js/internals/call-with-safe-iteration-closing.js");
|
||
var iteratorClose = __webpack_require__(/*! ../internals/iterator-close */ "../node_modules/core-js/internals/iterator-close.js");
|
||
var iteratorHelperThrowsOnInvalidIterator = __webpack_require__(/*! ../internals/iterator-helper-throws-on-invalid-iterator */ "../node_modules/core-js/internals/iterator-helper-throws-on-invalid-iterator.js");
|
||
var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(/*! ../internals/iterator-helper-without-closing-on-early-error */ "../node_modules/core-js/internals/iterator-helper-without-closing-on-early-error.js");
|
||
var IS_PURE = __webpack_require__(/*! ../internals/is-pure */ "../node_modules/core-js/internals/is-pure.js");
|
||
|
||
var MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR = !IS_PURE && !iteratorHelperThrowsOnInvalidIterator('map', function () { /* empty */ });
|
||
var mapWithoutClosingOnEarlyError = !IS_PURE && !MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR
|
||
&& iteratorHelperWithoutClosingOnEarlyError('map', TypeError);
|
||
|
||
var FORCED = IS_PURE || MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR || mapWithoutClosingOnEarlyError;
|
||
|
||
var IteratorProxy = createIteratorProxy(function () {
|
||
var iterator = this.iterator;
|
||
var result = anObject(call(this.next, iterator));
|
||
var done = this.done = !!result.done;
|
||
if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
|
||
});
|
||
|
||
// `Iterator.prototype.map` method
|
||
// https://tc39.es/ecma262/#sec-iterator.prototype.map
|
||
$({ target: 'Iterator', proto: true, real: true, forced: FORCED }, {
|
||
map: function map(mapper) {
|
||
anObject(this);
|
||
try {
|
||
aCallable(mapper);
|
||
} catch (error) {
|
||
iteratorClose(this, 'throw', error);
|
||
}
|
||
|
||
if (mapWithoutClosingOnEarlyError) return call(mapWithoutClosingOnEarlyError, this, mapper);
|
||
|
||
return new IteratorProxy(getIteratorDirect(this), {
|
||
mapper: mapper
|
||
});
|
||
}
|
||
});
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/modules/esnext.iterator.constructor.js"
|
||
/*!**********************************************************************!*\
|
||
!*** ../node_modules/core-js/modules/esnext.iterator.constructor.js ***!
|
||
\**********************************************************************/
|
||
(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
// TODO: Remove from `core-js@4`
|
||
__webpack_require__(/*! ../modules/es.iterator.constructor */ "../node_modules/core-js/modules/es.iterator.constructor.js");
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/modules/esnext.iterator.filter.js"
|
||
/*!*****************************************************************!*\
|
||
!*** ../node_modules/core-js/modules/esnext.iterator.filter.js ***!
|
||
\*****************************************************************/
|
||
(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
// TODO: Remove from `core-js@4`
|
||
__webpack_require__(/*! ../modules/es.iterator.filter */ "../node_modules/core-js/modules/es.iterator.filter.js");
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/modules/esnext.iterator.find.js"
|
||
/*!***************************************************************!*\
|
||
!*** ../node_modules/core-js/modules/esnext.iterator.find.js ***!
|
||
\***************************************************************/
|
||
(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
// TODO: Remove from `core-js@4`
|
||
__webpack_require__(/*! ../modules/es.iterator.find */ "../node_modules/core-js/modules/es.iterator.find.js");
|
||
|
||
|
||
/***/ },
|
||
|
||
/***/ "../node_modules/core-js/modules/esnext.iterator.map.js"
|
||
/*!**************************************************************!*\
|
||
!*** ../node_modules/core-js/modules/esnext.iterator.map.js ***!
|
||
\**************************************************************/
|
||
(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
||
|
||
|
||
// TODO: Remove from `core-js@4`
|
||
__webpack_require__(/*! ../modules/es.iterator.map */ "../node_modules/core-js/modules/es.iterator.map.js");
|
||
|
||
|
||
/***/ }
|
||
|
||
/******/ });
|
||
/************************************************************************/
|
||
/******/ // 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
|
||
/******/ if (!(moduleId in __webpack_modules__)) {
|
||
/******/ delete __webpack_module_cache__[moduleId];
|
||
/******/ var e = new Error("Cannot find module '" + moduleId + "'");
|
||
/******/ e.code = 'MODULE_NOT_FOUND';
|
||
/******/ throw e;
|
||
/******/ }
|
||
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||
/******/
|
||
/******/ // Return the exports of the module
|
||
/******/ return module.exports;
|
||
/******/ }
|
||
/******/
|
||
/************************************************************************/
|
||
/******/ /* webpack/runtime/global */
|
||
/******/ (() => {
|
||
/******/ __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;
|
||
/******/ }
|
||
/******/ })();
|
||
/******/ })();
|
||
/******/
|
||
/************************************************************************/
|
||
var __webpack_exports__ = {};
|
||
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
|
||
(() => {
|
||
/*!**************************************************************!*\
|
||
!*** ../modules/screenshots/assets/js/preview/screenshot.js ***!
|
||
\**************************************************************/
|
||
|
||
|
||
__webpack_require__(/*! core-js/modules/esnext.iterator.constructor.js */ "../node_modules/core-js/modules/esnext.iterator.constructor.js");
|
||
__webpack_require__(/*! core-js/modules/esnext.iterator.filter.js */ "../node_modules/core-js/modules/esnext.iterator.filter.js");
|
||
__webpack_require__(/*! core-js/modules/esnext.iterator.find.js */ "../node_modules/core-js/modules/esnext.iterator.find.js");
|
||
__webpack_require__(/*! core-js/modules/esnext.iterator.map.js */ "../node_modules/core-js/modules/esnext.iterator.map.js");
|
||
/* global ElementorScreenshotConfig */
|
||
class Screenshot extends elementorModules.ViewModule {
|
||
getDefaultSettings() {
|
||
return {
|
||
empty_content_headline: 'Empty Content.',
|
||
crop: {
|
||
width: 1200,
|
||
height: 1500
|
||
},
|
||
excluded_external_css_urls: ['https://kit-pro.fontawesome.com'],
|
||
external_images_urls: ['https://i.ytimg.com' // Youtube images domain.
|
||
],
|
||
timeout: 15000,
|
||
// Wait until screenshot taken or fail in 15 secs.
|
||
render_timeout: 5000,
|
||
// Wait until all the element will be loaded or 5 sec and then take screenshot.
|
||
timerLabel: null,
|
||
timer_label: `${ElementorScreenshotConfig.post_id} - timer`,
|
||
image_placeholder: 'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=',
|
||
isDebug: elementorCommonConfig.isElementorDebug,
|
||
isDebugSvg: false,
|
||
...ElementorScreenshotConfig
|
||
};
|
||
}
|
||
getDefaultElements() {
|
||
const $elementor = jQuery(ElementorScreenshotConfig.selector);
|
||
const $sections = $elementor.find('.elementor-section-wrap > .elementor-section, .elementor > .elementor-section');
|
||
return {
|
||
$elementor,
|
||
$sections,
|
||
$firstSection: $sections.first(),
|
||
$notElementorElements: elementorCommon.elements.$body.find('> *:not(style, link)').not($elementor),
|
||
$head: jQuery('head')
|
||
};
|
||
}
|
||
onInit() {
|
||
super.onInit();
|
||
this.log('Screenshot init', 'time');
|
||
|
||
/**
|
||
* Hold the timeout timer
|
||
*
|
||
* @type {number|null}
|
||
*/
|
||
this.timeoutTimer = setTimeout(this.screenshotFailed.bind(this), this.getSettings('timeout'));
|
||
return this.captureScreenshot();
|
||
}
|
||
|
||
/**
|
||
* The main method for this class.
|
||
*/
|
||
captureScreenshot() {
|
||
if (!this.elements.$elementor.length) {
|
||
elementorCommon.helpers.consoleWarn('Screenshots: The content of this page is empty, the module will create a fake conent just for this screenshot.');
|
||
this.createFakeContent();
|
||
}
|
||
this.removeUnnecessaryElements();
|
||
this.handleIFrames();
|
||
this.removeFirstSectionMargin();
|
||
this.handleLinks();
|
||
this.loadExternalCss();
|
||
this.loadExternalImages();
|
||
return Promise.resolve().then(this.createImage.bind(this)).then(this.createImageElement.bind(this)).then(this.cropCanvas.bind(this)).then(this.save.bind(this)).then(this.screenshotSucceed.bind(this)).catch(this.screenshotFailed.bind(this));
|
||
}
|
||
|
||
/**
|
||
* Fake content for documents that dont have any content.
|
||
*/
|
||
createFakeContent() {
|
||
this.elements.$elementor = jQuery('<div>').css({
|
||
height: this.getSettings('crop.height'),
|
||
width: this.getSettings('crop.width'),
|
||
display: 'flex',
|
||
alignItems: 'center',
|
||
justifyContent: 'center'
|
||
});
|
||
this.elements.$elementor.append(jQuery('<h1>').css({
|
||
fontSize: '85px'
|
||
}).html(this.getSettings('empty_content_headline')));
|
||
document.body.prepend(this.elements.$elementor);
|
||
}
|
||
|
||
/**
|
||
* CSS from another server cannot be loaded with the current dom to image library.
|
||
* this method take all the links from another domain and proxy them.
|
||
*/
|
||
loadExternalCss() {
|
||
const excludedUrls = [this.getSettings('home_url'), ...this.getSettings('excluded_external_css_urls')];
|
||
const notSelector = excludedUrls.map(url => `[href^="${url}"]`).join(', ');
|
||
jQuery('link').not(notSelector).each((index, el) => {
|
||
const $link = jQuery(el),
|
||
$newLink = $link.clone();
|
||
$newLink.attr('href', this.getScreenshotProxyUrl($link.attr('href')));
|
||
this.elements.$head.append($newLink);
|
||
$link.remove();
|
||
});
|
||
}
|
||
|
||
/**
|
||
* Make a proxy to images urls that has some problems with cross origin (like youtube).
|
||
*/
|
||
loadExternalImages() {
|
||
const selector = this.getSettings('external_images_urls').map(url => `img[src^="${url}"]`).join(', ');
|
||
jQuery(selector).each((index, el) => {
|
||
const $img = jQuery(el);
|
||
$img.attr('src', this.getScreenshotProxyUrl($img.attr('src')));
|
||
});
|
||
}
|
||
|
||
/**
|
||
* Html to images libraries can not snapshot IFrames
|
||
* this method convert all the IFrames to some other elements.
|
||
*/
|
||
handleIFrames() {
|
||
this.elements.$elementor.find('iframe').each((index, el) => {
|
||
const $iframe = jQuery(el),
|
||
$iframeMask = jQuery('<div />', {
|
||
css: {
|
||
background: 'gray',
|
||
width: $iframe.width(),
|
||
height: $iframe.height()
|
||
}
|
||
});
|
||
$iframe.before($iframeMask);
|
||
$iframe.remove();
|
||
});
|
||
}
|
||
|
||
/**
|
||
* Remove all the sections that should not be in the screenshot.
|
||
*/
|
||
removeUnnecessaryElements() {
|
||
let currentHeight = 0;
|
||
this.elements.$sections.filter((index, el) => {
|
||
let shouldBeRemoved = false;
|
||
if (currentHeight >= this.getSettings('crop.height')) {
|
||
shouldBeRemoved = true;
|
||
}
|
||
currentHeight += jQuery(el).outerHeight();
|
||
return shouldBeRemoved;
|
||
}).each((index, el) => {
|
||
el.remove();
|
||
});
|
||
|
||
// Some 3rd party plugins inject elements into the dom, so this method removes all
|
||
// the elements that was injected, to make sure that it capture a screenshot only of the post itself.
|
||
this.elements.$notElementorElements.remove();
|
||
}
|
||
|
||
/**
|
||
* Some urls make some problems to the svg parser.
|
||
* this method convert all the urls to just '/'.
|
||
*/
|
||
handleLinks() {
|
||
elementorCommon.elements.$body.find('a').attr('href', '/');
|
||
}
|
||
|
||
/**
|
||
* Remove unnecessary margin from the first element of the post (singles and footers).
|
||
*/
|
||
removeFirstSectionMargin() {
|
||
this.elements.$firstSection.css({
|
||
marginTop: 0
|
||
});
|
||
}
|
||
|
||
/**
|
||
* Creates a png image.
|
||
*
|
||
* @return {Promise<unknown>} URI containing image data
|
||
*/
|
||
createImage() {
|
||
const pageLoadedPromise = new Promise(resolve => {
|
||
window.addEventListener('load', () => {
|
||
resolve();
|
||
});
|
||
});
|
||
const timeOutPromise = new Promise(resolve => {
|
||
setTimeout(() => {
|
||
resolve();
|
||
}, this.getSettings('render_timeout'));
|
||
});
|
||
return Promise.race([pageLoadedPromise, timeOutPromise]).then(() => {
|
||
this.log('Start creating screenshot.');
|
||
if (this.getSettings('isDebugSvg')) {
|
||
domtoimage.toSvg(document.body, {
|
||
imagePlaceholder: this.getSettings('image_placeholder')
|
||
}).then(svg => this.download(svg));
|
||
return Promise.reject('Debug SVG.');
|
||
}
|
||
|
||
// TODO: Extract to util function.
|
||
const isSafari = /^((?!chrome|android).)*safari/i.test(window.userAgent);
|
||
|
||
// Safari browser has some problems with the images that dom-to-images
|
||
// library creates, so in this specific case the screenshot uses html2canvas.
|
||
// Note that dom-to-image creates more accurate screenshot in "not safari" browsers.
|
||
if (isSafari) {
|
||
this.log('Creating screenshot with "html2canvas"');
|
||
return html2canvas(document.body).then(canvas => {
|
||
return canvas.toDataURL('image/png');
|
||
});
|
||
}
|
||
this.log('Creating screenshot with "dom-to-image"');
|
||
return domtoimage.toPng(document.body, {
|
||
imagePlaceholder: this.getSettings('image_placeholder')
|
||
});
|
||
});
|
||
}
|
||
|
||
/**
|
||
* Download a uri, use for debugging the svg that created from dom to image libraries.
|
||
*
|
||
* @param {string} uri
|
||
*/
|
||
download(uri) {
|
||
const $link = jQuery('<a/>', {
|
||
href: uri,
|
||
download: 'debugSvg.svg',
|
||
html: 'Download SVG'
|
||
});
|
||
elementorCommon.elements.$body.append($link);
|
||
$link.trigger('click');
|
||
}
|
||
|
||
/**
|
||
* Creates fake image element to get the size of the image later on.
|
||
*
|
||
* @param {string} dataUrl
|
||
* @return {Promise<HTMLImageElement>} Image Element
|
||
*/
|
||
createImageElement(dataUrl) {
|
||
const image = new Image();
|
||
image.src = dataUrl;
|
||
return new Promise(resolve => {
|
||
image.onload = () => resolve(image);
|
||
});
|
||
}
|
||
|
||
/**
|
||
* Crop the image to requested sizes.
|
||
*
|
||
* @param {HTMLImageElement} image
|
||
* @return {Promise<unknown>} Canvas
|
||
*/
|
||
cropCanvas(image) {
|
||
const width = this.getSettings('crop.width');
|
||
const height = this.getSettings('crop.height');
|
||
const cropCanvas = document.createElement('canvas'),
|
||
cropContext = cropCanvas.getContext('2d'),
|
||
ratio = width / image.width;
|
||
cropCanvas.width = width;
|
||
cropCanvas.height = height > image.height ? image.height : height;
|
||
cropContext.drawImage(image, 0, 0, image.width, image.height, 0, 0, image.width * ratio, image.height * ratio);
|
||
return Promise.resolve(cropCanvas);
|
||
}
|
||
|
||
/**
|
||
* Send the image to the server.
|
||
*
|
||
* @param {HTMLCanvasElement} canvas
|
||
* @return {Promise<unknown>} Screenshot URL
|
||
*/
|
||
save(canvas) {
|
||
return new Promise((resolve, reject) => {
|
||
elementorCommon.ajax.addRequest('screenshot_save', {
|
||
data: {
|
||
post_id: this.getSettings('post_id'),
|
||
screenshot: canvas.toDataURL('image/png')
|
||
},
|
||
success: url => {
|
||
this.log(`Screenshot created: ${encodeURI(url)}`);
|
||
resolve(url);
|
||
},
|
||
error: () => {
|
||
this.log('Failed to create screenshot.');
|
||
reject();
|
||
}
|
||
});
|
||
});
|
||
}
|
||
|
||
/**
|
||
* Mark this post screenshot as failed.
|
||
*/
|
||
markAsFailed() {
|
||
return new Promise((resolve, reject) => {
|
||
elementorCommon.ajax.addRequest('screenshot_failed', {
|
||
data: {
|
||
post_id: this.getSettings('post_id')
|
||
},
|
||
success: () => {
|
||
this.log(`Marked as failed.`);
|
||
resolve();
|
||
},
|
||
error: () => {
|
||
this.log('Failed to mark this screenshot as failed.');
|
||
reject();
|
||
}
|
||
});
|
||
});
|
||
}
|
||
|
||
/**
|
||
* @param {string} url
|
||
* @return {string} Screenshot Proxy URL
|
||
*/
|
||
getScreenshotProxyUrl(url) {
|
||
return `${this.getSettings('home_url')}?screenshot_proxy&nonce=${this.getSettings('nonce')}&href=${url}`;
|
||
}
|
||
|
||
/**
|
||
* Notify that the screenshot has been succeed.
|
||
*
|
||
* @param {string} imageUrl
|
||
*/
|
||
screenshotSucceed(imageUrl) {
|
||
this.screenshotDone(true, imageUrl);
|
||
}
|
||
|
||
/**
|
||
* Notify that the screenshot has been failed.
|
||
*
|
||
* @param {Error} e
|
||
*/
|
||
screenshotFailed(e) {
|
||
this.log(e, null);
|
||
this.markAsFailed().then(() => this.screenshotDone(false));
|
||
}
|
||
|
||
/**
|
||
* Final method of the screenshot.
|
||
*
|
||
* @param {boolean} success
|
||
* @param {string} imageUrl
|
||
*/
|
||
screenshotDone(success, imageUrl = null) {
|
||
clearTimeout(this.timeoutTimer);
|
||
this.timeoutTimer = null;
|
||
|
||
// Send the message to the parent window and not to the top.
|
||
// e.g: The `Theme builder` is loaded into an iFrame so the message of the screenshot
|
||
// should be sent to the `Theme builder` window and not to the top window.
|
||
window.parent.postMessage({
|
||
name: 'capture-screenshot-done',
|
||
success,
|
||
id: this.getSettings('post_id'),
|
||
imageUrl
|
||
}, '*');
|
||
this.log(`Screenshot ${success ? 'Succeed' : 'Failed'}.`, 'timeEnd');
|
||
}
|
||
|
||
/**
|
||
* Log messages for debugging.
|
||
*
|
||
* @param {any} message
|
||
* @param {string?} timerMethod
|
||
*/
|
||
log(message, timerMethod = 'timeLog') {
|
||
if (!this.getSettings('isDebug')) {
|
||
return;
|
||
}
|
||
|
||
// eslint-disable-next-line no-console
|
||
console.log('string' === typeof message ? `${this.getSettings('post_id')} - ${message}` : message);
|
||
if (timerMethod) {
|
||
// eslint-disable-next-line no-console
|
||
console[timerMethod](this.getSettings('timer_label'));
|
||
}
|
||
}
|
||
}
|
||
jQuery(() => {
|
||
new Screenshot();
|
||
});
|
||
})();
|
||
|
||
/******/ })()
|
||
;
|
||
//# sourceMappingURL=screenshot.js.map
|