UNPKG

vis-graph3d

Version:

Create interactive, animated 3d graphs. Surfaces, lines, dots and block styling out of the box.

1,491 lines (1,227 loc) 683 kB
/** * vis-graph3d * https://visjs.github.io/vis-graph3d/ * * Create interactive, animated 3d graphs. Surfaces, lines, dots and block styling out of the box. * * @version 6.0.6 * @date 2023-11-24T17:25:32.843Z * * @copyright (c) 2011-2017 Almende B.V, http://almende.com * @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs * * @license * vis.js is dual licensed under both * * 1. The Apache 2.0 License * http://www.apache.org/licenses/LICENSE-2.0 * * and * * 2. The MIT License * http://opensource.org/licenses/MIT * * vis.js may be distributed under either license. */ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; function getDefaultExportFromCjs (x) { return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; } function getAugmentedNamespace(n) { if (n.__esModule) return n; var f = n.default; if (typeof f == "function") { var a = function a () { if (this instanceof a) { return Reflect.construct(f, arguments, this.constructor); } return f.apply(this, arguments); }; a.prototype = f.prototype; } else a = {}; Object.defineProperty(a, '__esModule', {value: true}); Object.keys(n).forEach(function (k) { var d = Object.getOwnPropertyDescriptor(n, k); Object.defineProperty(a, k, d.get ? d : { enumerable: true, get: function () { return n[k]; } }); }); return a; } var repo = {}; var fails$y = function (exec) { try { return !!exec(); } catch (error) { return true; } }; var fails$x = fails$y; var functionBindNative = !fails$x(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'); }); var NATIVE_BIND$4 = functionBindNative; var FunctionPrototype$4 = Function.prototype; var call$k = FunctionPrototype$4.call; var uncurryThisWithBind = NATIVE_BIND$4 && FunctionPrototype$4.bind.bind(call$k, call$k); var functionUncurryThis = NATIVE_BIND$4 ? uncurryThisWithBind : function (fn) { return function () { return call$k.apply(fn, arguments); }; }; var ceil = Math.ceil; var floor$1 = Math.floor; // `Math.trunc` method // https://tc39.es/ecma262/#sec-math.trunc // eslint-disable-next-line es/no-math-trunc -- safe var mathTrunc = Math.trunc || function trunc(x) { var n = +x; return (n > 0 ? floor$1 : ceil)(n); }; var trunc = mathTrunc; // `ToIntegerOrInfinity` abstract operation // https://tc39.es/ecma262/#sec-tointegerorinfinity var toIntegerOrInfinity$4 = function (argument) { var number = +argument; // eslint-disable-next-line no-self-compare -- NaN check return number !== number || number === 0 ? 0 : trunc(number); }; var check = function (it) { return it && it.Math === Math && it; }; // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 var global$r = // 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 commonjsGlobal == 'object' && commonjsGlobal) || // eslint-disable-next-line no-new-func -- fallback (function () { return this; })() || commonjsGlobal || Function('return this')(); var shared$7 = {exports: {}}; var isPure = true; var global$q = global$r; // eslint-disable-next-line es/no-object-defineproperty -- safe var defineProperty$f = Object.defineProperty; var defineGlobalProperty$1 = function (key, value) { try { defineProperty$f(global$q, key, { value: value, configurable: true, writable: true }); } catch (error) { global$q[key] = value; } return value; }; var global$p = global$r; var defineGlobalProperty = defineGlobalProperty$1; var SHARED = '__core-js_shared__'; var store$3 = global$p[SHARED] || defineGlobalProperty(SHARED, {}); var sharedStore = store$3; var store$2 = sharedStore; (shared$7.exports = function (key, value) { return store$2[key] || (store$2[key] = value !== undefined ? value : {}); })('versions', []).push({ version: '3.33.2', mode: 'pure' , copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', license: 'https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE', source: 'https://github.com/zloirock/core-js' }); var sharedExports = shared$7.exports; // we can't use just `it == null` since of `document.all` special case // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec var isNullOrUndefined$6 = function (it) { return it === null || it === undefined; }; var isNullOrUndefined$5 = isNullOrUndefined$6; var $TypeError$h = TypeError; // `RequireObjectCoercible` abstract operation // https://tc39.es/ecma262/#sec-requireobjectcoercible var requireObjectCoercible$5 = function (it) { if (isNullOrUndefined$5(it)) throw new $TypeError$h("Can't call method on " + it); return it; }; var requireObjectCoercible$4 = requireObjectCoercible$5; var $Object$4 = Object; // `ToObject` abstract operation // https://tc39.es/ecma262/#sec-toobject var toObject$f = function (argument) { return $Object$4(requireObjectCoercible$4(argument)); }; var uncurryThis$x = functionUncurryThis; var toObject$e = toObject$f; var hasOwnProperty = uncurryThis$x({}.hasOwnProperty); // `HasOwnProperty` abstract operation // https://tc39.es/ecma262/#sec-hasownproperty // eslint-disable-next-line es/no-object-hasown -- safe var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) { return hasOwnProperty(toObject$e(it), key); }; var uncurryThis$w = functionUncurryThis; var id$1 = 0; var postfix = Math.random(); var toString$d = uncurryThis$w(1.0.toString); var uid$4 = function (key) { return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$d(++id$1 + postfix, 36); }; var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || ''; var global$o = global$r; var userAgent$5 = engineUserAgent; var process$3 = global$o.process; var Deno$1 = global$o.Deno; var versions = process$3 && process$3.versions || Deno$1 && Deno$1.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$5) { match = userAgent$5.match(/Edge\/(\d+)/); if (!match || match[1] >= 74) { match = userAgent$5.match(/Chrome\/(\d+)/); if (match) version = +match[1]; } } var engineV8Version = version; /* eslint-disable es/no-symbol -- required for testing */ var V8_VERSION$3 = engineV8Version; var fails$w = fails$y; var global$n = global$r; var $String$5 = global$n.String; // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$w(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$5(symbol) || !(Object(symbol) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances !Symbol.sham && V8_VERSION$3 && V8_VERSION$3 < 41; }); /* eslint-disable es/no-symbol -- required for testing */ var NATIVE_SYMBOL$5 = symbolConstructorDetection; var useSymbolAsUid = NATIVE_SYMBOL$5 && !Symbol.sham && typeof Symbol.iterator == 'symbol'; var global$m = global$r; var shared$6 = sharedExports; var hasOwn$j = hasOwnProperty_1; var uid$3 = uid$4; var NATIVE_SYMBOL$4 = symbolConstructorDetection; var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; var Symbol$5 = global$m.Symbol; var WellKnownSymbolsStore$2 = shared$6('wks'); var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$5['for'] || Symbol$5 : Symbol$5 && Symbol$5.withoutSetter || uid$3; var wellKnownSymbol$p = function (name) { if (!hasOwn$j(WellKnownSymbolsStore$2, name)) { WellKnownSymbolsStore$2[name] = NATIVE_SYMBOL$4 && hasOwn$j(Symbol$5, name) ? Symbol$5[name] : createWellKnownSymbol('Symbol.' + name); } return WellKnownSymbolsStore$2[name]; }; var wellKnownSymbol$o = wellKnownSymbol$p; var TO_STRING_TAG$4 = wellKnownSymbol$o('toStringTag'); var test$2 = {}; test$2[TO_STRING_TAG$4] = 'z'; var toStringTagSupport = String(test$2) === '[object z]'; var documentAll$2 = typeof document == 'object' && document.all; // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined; var documentAll_1 = { all: documentAll$2, IS_HTMLDDA: IS_HTMLDDA }; var $documentAll$1 = documentAll_1; var documentAll$1 = $documentAll$1.all; // `IsCallable` abstract operation // https://tc39.es/ecma262/#sec-iscallable var isCallable$m = $documentAll$1.IS_HTMLDDA ? function (argument) { return typeof argument == 'function' || argument === documentAll$1; } : function (argument) { return typeof argument == 'function'; }; var uncurryThis$v = functionUncurryThis; var toString$c = uncurryThis$v({}.toString); var stringSlice$1 = uncurryThis$v(''.slice); var classofRaw$2 = function (it) { return stringSlice$1(toString$c(it), 8, -1); }; var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport; var isCallable$l = isCallable$m; var classofRaw$1 = classofRaw$2; var wellKnownSymbol$n = wellKnownSymbol$p; var TO_STRING_TAG$3 = wellKnownSymbol$n('toStringTag'); var $Object$3 = Object; // ES3 wrong here var CORRECT_ARGUMENTS = classofRaw$1(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` var classof$g = TO_STRING_TAG_SUPPORT$2 ? classofRaw$1 : function (it) { var O, tag, result; return it === undefined ? 'Undefined' : it === null ? 'Null' // @@toStringTag case : typeof (tag = tryGet(O = $Object$3(it), TO_STRING_TAG$3)) == 'string' ? tag // builtinTag case : CORRECT_ARGUMENTS ? classofRaw$1(O) // ES3 arguments fallback : (result = classofRaw$1(O)) === 'Object' && isCallable$l(O.callee) ? 'Arguments' : result; }; var classof$f = classof$g; var $String$4 = String; var toString$b = function (argument) { if (classof$f(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string'); return $String$4(argument); }; var uncurryThis$u = functionUncurryThis; var toIntegerOrInfinity$3 = toIntegerOrInfinity$4; var toString$a = toString$b; var requireObjectCoercible$3 = requireObjectCoercible$5; var charAt$3 = uncurryThis$u(''.charAt); var charCodeAt$1 = uncurryThis$u(''.charCodeAt); var stringSlice = uncurryThis$u(''.slice); var createMethod$5 = function (CONVERT_TO_STRING) { return function ($this, pos) { var S = toString$a(requireObjectCoercible$3($this)); var position = toIntegerOrInfinity$3(pos); var size = S.length; var first, second; if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined; first = charCodeAt$1(S, position); return first < 0xD800 || first > 0xDBFF || position + 1 === size || (second = charCodeAt$1(S, position + 1)) < 0xDC00 || second > 0xDFFF ? CONVERT_TO_STRING ? charAt$3(S, position) : first : CONVERT_TO_STRING ? stringSlice(S, position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000; }; }; var stringMultibyte = { // `String.prototype.codePointAt` method // https://tc39.es/ecma262/#sec-string.prototype.codepointat codeAt: createMethod$5(false), // `String.prototype.at` method // https://github.com/mathiasbynens/String.prototype.at charAt: createMethod$5(true) }; var global$l = global$r; var isCallable$k = isCallable$m; var WeakMap$1 = global$l.WeakMap; var weakMapBasicDetection = isCallable$k(WeakMap$1) && /native code/.test(String(WeakMap$1)); var isCallable$j = isCallable$m; var $documentAll = documentAll_1; var documentAll = $documentAll.all; var isObject$j = $documentAll.IS_HTMLDDA ? function (it) { return typeof it == 'object' ? it !== null : isCallable$j(it) || it === documentAll; } : function (it) { return typeof it == 'object' ? it !== null : isCallable$j(it); }; var fails$v = fails$y; // Detect IE8's incomplete defineProperty implementation var descriptors = !fails$v(function () { // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7; }); var objectDefineProperty = {}; var global$k = global$r; var isObject$i = isObject$j; var document$3 = global$k.document; // typeof document.createElement is 'object' in old IE var EXISTS$1 = isObject$i(document$3) && isObject$i(document$3.createElement); var documentCreateElement$1 = function (it) { return EXISTS$1 ? document$3.createElement(it) : {}; }; var DESCRIPTORS$i = descriptors; var fails$u = fails$y; var createElement$1 = documentCreateElement$1; // Thanks to IE8 for its funny defineProperty var ie8DomDefine = !DESCRIPTORS$i && !fails$u(function () { // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty(createElement$1('div'), 'a', { get: function () { return 7; } }).a !== 7; }); var DESCRIPTORS$h = descriptors; var fails$t = fails$y; // V8 ~ Chrome 36- // https://bugs.chromium.org/p/v8/issues/detail?id=3334 var v8PrototypeDefineBug = DESCRIPTORS$h && fails$t(function () { // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty(function () { /* empty */ }, 'prototype', { value: 42, writable: false }).prototype !== 42; }); var isObject$h = isObject$j; var $String$3 = String; var $TypeError$g = TypeError; // `Assert: Type(argument) is Object` var anObject$d = function (argument) { if (isObject$h(argument)) return argument; throw new $TypeError$g($String$3(argument) + ' is not an object'); }; var NATIVE_BIND$3 = functionBindNative; var call$j = Function.prototype.call; var functionCall = NATIVE_BIND$3 ? call$j.bind(call$j) : function () { return call$j.apply(call$j, arguments); }; var path$v = {}; var path$u = path$v; var global$j = global$r; var isCallable$i = isCallable$m; var aFunction = function (variable) { return isCallable$i(variable) ? variable : undefined; }; var getBuiltIn$f = function (namespace, method) { return arguments.length < 2 ? aFunction(path$u[namespace]) || aFunction(global$j[namespace]) : path$u[namespace] && path$u[namespace][method] || global$j[namespace] && global$j[namespace][method]; }; var uncurryThis$t = functionUncurryThis; var objectIsPrototypeOf = uncurryThis$t({}.isPrototypeOf); var getBuiltIn$e = getBuiltIn$f; var isCallable$h = isCallable$m; var isPrototypeOf$n = objectIsPrototypeOf; var USE_SYMBOL_AS_UID = useSymbolAsUid; var $Object$2 = Object; var isSymbol$5 = USE_SYMBOL_AS_UID ? function (it) { return typeof it == 'symbol'; } : function (it) { var $Symbol = getBuiltIn$e('Symbol'); return isCallable$h($Symbol) && isPrototypeOf$n($Symbol.prototype, $Object$2(it)); }; var $String$2 = String; var tryToString$6 = function (argument) { try { return $String$2(argument); } catch (error) { return 'Object'; } }; var isCallable$g = isCallable$m; var tryToString$5 = tryToString$6; var $TypeError$f = TypeError; // `Assert: IsCallable(argument) is true` var aCallable$e = function (argument) { if (isCallable$g(argument)) return argument; throw new $TypeError$f(tryToString$5(argument) + ' is not a function'); }; var aCallable$d = aCallable$e; var isNullOrUndefined$4 = isNullOrUndefined$6; // `GetMethod` abstract operation // https://tc39.es/ecma262/#sec-getmethod var getMethod$3 = function (V, P) { var func = V[P]; return isNullOrUndefined$4(func) ? undefined : aCallable$d(func); }; var call$i = functionCall; var isCallable$f = isCallable$m; var isObject$g = isObject$j; var $TypeError$e = TypeError; // `OrdinaryToPrimitive` abstract operation // https://tc39.es/ecma262/#sec-ordinarytoprimitive var ordinaryToPrimitive$1 = function (input, pref) { var fn, val; if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$g(val = call$i(fn, input))) return val; if (isCallable$f(fn = input.valueOf) && !isObject$g(val = call$i(fn, input))) return val; if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$g(val = call$i(fn, input))) return val; throw new $TypeError$e("Can't convert object to primitive value"); }; var call$h = functionCall; var isObject$f = isObject$j; var isSymbol$4 = isSymbol$5; var getMethod$2 = getMethod$3; var ordinaryToPrimitive = ordinaryToPrimitive$1; var wellKnownSymbol$m = wellKnownSymbol$p; var $TypeError$d = TypeError; var TO_PRIMITIVE = wellKnownSymbol$m('toPrimitive'); // `ToPrimitive` abstract operation // https://tc39.es/ecma262/#sec-toprimitive var toPrimitive$6 = function (input, pref) { if (!isObject$f(input) || isSymbol$4(input)) return input; var exoticToPrim = getMethod$2(input, TO_PRIMITIVE); var result; if (exoticToPrim) { if (pref === undefined) pref = 'default'; result = call$h(exoticToPrim, input, pref); if (!isObject$f(result) || isSymbol$4(result)) return result; throw new $TypeError$d("Can't convert object to primitive value"); } if (pref === undefined) pref = 'number'; return ordinaryToPrimitive(input, pref); }; var toPrimitive$5 = toPrimitive$6; var isSymbol$3 = isSymbol$5; // `ToPropertyKey` abstract operation // https://tc39.es/ecma262/#sec-topropertykey var toPropertyKey$4 = function (argument) { var key = toPrimitive$5(argument, 'string'); return isSymbol$3(key) ? key : key + ''; }; var DESCRIPTORS$g = descriptors; var IE8_DOM_DEFINE$1 = ie8DomDefine; var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug; var anObject$c = anObject$d; var toPropertyKey$3 = toPropertyKey$4; var $TypeError$c = TypeError; // eslint-disable-next-line es/no-object-defineproperty -- safe var $defineProperty$1 = Object.defineProperty; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var $getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor; var ENUMERABLE = 'enumerable'; var CONFIGURABLE$1 = 'configurable'; var WRITABLE = 'writable'; // `Object.defineProperty` method // https://tc39.es/ecma262/#sec-object.defineproperty objectDefineProperty.f = DESCRIPTORS$g ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) { anObject$c(O); P = toPropertyKey$3(P); anObject$c(Attributes); if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { var current = $getOwnPropertyDescriptor$2(O, P); if (current && current[WRITABLE]) { O[P] = Attributes.value; Attributes = { configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1], enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE], writable: false }; } } return $defineProperty$1(O, P, Attributes); } : $defineProperty$1 : function defineProperty(O, P, Attributes) { anObject$c(O); P = toPropertyKey$3(P); anObject$c(Attributes); if (IE8_DOM_DEFINE$1) try { return $defineProperty$1(O, P, Attributes); } catch (error) { /* empty */ } if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$c('Accessors not supported'); if ('value' in Attributes) O[P] = Attributes.value; return O; }; var createPropertyDescriptor$7 = function (bitmap, value) { return { enumerable: !(bitmap & 1), configurable: !(bitmap & 2), writable: !(bitmap & 4), value: value }; }; var DESCRIPTORS$f = descriptors; var definePropertyModule$4 = objectDefineProperty; var createPropertyDescriptor$6 = createPropertyDescriptor$7; var createNonEnumerableProperty$9 = DESCRIPTORS$f ? function (object, key, value) { return definePropertyModule$4.f(object, key, createPropertyDescriptor$6(1, value)); } : function (object, key, value) { object[key] = value; return object; }; var shared$5 = sharedExports; var uid$2 = uid$4; var keys$7 = shared$5('keys'); var sharedKey$4 = function (key) { return keys$7[key] || (keys$7[key] = uid$2(key)); }; var hiddenKeys$6 = {}; var NATIVE_WEAK_MAP = weakMapBasicDetection; var global$i = global$r; var isObject$e = isObject$j; var createNonEnumerableProperty$8 = createNonEnumerableProperty$9; var hasOwn$i = hasOwnProperty_1; var shared$4 = sharedStore; var sharedKey$3 = sharedKey$4; var hiddenKeys$5 = hiddenKeys$6; var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; var TypeError$3 = global$i.TypeError; var WeakMap = global$i.WeakMap; var set$4, get, has; var enforce = function (it) { return has(it) ? get(it) : set$4(it, {}); }; var getterFor = function (TYPE) { return function (it) { var state; if (!isObject$e(it) || (state = get(it)).type !== TYPE) { throw new TypeError$3('Incompatible receiver, ' + TYPE + ' required'); } return state; }; }; if (NATIVE_WEAK_MAP || shared$4.state) { var store$1 = shared$4.state || (shared$4.state = new WeakMap()); /* eslint-disable no-self-assign -- prototype methods protection */ store$1.get = store$1.get; store$1.has = store$1.has; store$1.set = store$1.set; /* eslint-enable no-self-assign -- prototype methods protection */ set$4 = function (it, metadata) { if (store$1.has(it)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED); metadata.facade = it; store$1.set(it, metadata); return metadata; }; get = function (it) { return store$1.get(it) || {}; }; has = function (it) { return store$1.has(it); }; } else { var STATE = sharedKey$3('state'); hiddenKeys$5[STATE] = true; set$4 = function (it, metadata) { if (hasOwn$i(it, STATE)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED); metadata.facade = it; createNonEnumerableProperty$8(it, STATE, metadata); return metadata; }; get = function (it) { return hasOwn$i(it, STATE) ? it[STATE] : {}; }; has = function (it) { return hasOwn$i(it, STATE); }; } var internalState = { set: set$4, get: get, has: has, enforce: enforce, getterFor: getterFor }; var NATIVE_BIND$2 = functionBindNative; var FunctionPrototype$3 = Function.prototype; var apply$6 = FunctionPrototype$3.apply; var call$g = FunctionPrototype$3.call; // eslint-disable-next-line es/no-reflect -- safe var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$2 ? call$g.bind(apply$6) : function () { return call$g.apply(apply$6, arguments); }); var classofRaw = classofRaw$2; var uncurryThis$s = functionUncurryThis; var functionUncurryThisClause = 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$s(fn); }; var objectGetOwnPropertyDescriptor = {}; var objectPropertyIsEnumerable = {}; var $propertyIsEnumerable$2 = {}.propertyIsEnumerable; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var getOwnPropertyDescriptor$7 = Object.getOwnPropertyDescriptor; // Nashorn ~ JDK8 bug var NASHORN_BUG = getOwnPropertyDescriptor$7 && !$propertyIsEnumerable$2.call({ 1: 2 }, 1); // `Object.prototype.propertyIsEnumerable` method implementation // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) { var descriptor = getOwnPropertyDescriptor$7(this, V); return !!descriptor && descriptor.enumerable; } : $propertyIsEnumerable$2; var uncurryThis$r = functionUncurryThis; var fails$s = fails$y; var classof$e = classofRaw$2; var $Object$1 = Object; var split = uncurryThis$r(''.split); // fallback for non-array-like ES3 and non-enumerable old V8 strings var indexedObject = fails$s(function () { // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 // eslint-disable-next-line no-prototype-builtins -- safe return !$Object$1('z').propertyIsEnumerable(0); }) ? function (it) { return classof$e(it) === 'String' ? split(it, '') : $Object$1(it); } : $Object$1; // toObject with fallback for non-array-like ES3 strings var IndexedObject$3 = indexedObject; var requireObjectCoercible$2 = requireObjectCoercible$5; var toIndexedObject$b = function (it) { return IndexedObject$3(requireObjectCoercible$2(it)); }; var DESCRIPTORS$e = descriptors; var call$f = functionCall; var propertyIsEnumerableModule$2 = objectPropertyIsEnumerable; var createPropertyDescriptor$5 = createPropertyDescriptor$7; var toIndexedObject$a = toIndexedObject$b; var toPropertyKey$2 = toPropertyKey$4; var hasOwn$h = hasOwnProperty_1; var IE8_DOM_DEFINE = ie8DomDefine; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; // `Object.getOwnPropertyDescriptor` method // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor objectGetOwnPropertyDescriptor.f = DESCRIPTORS$e ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) { O = toIndexedObject$a(O); P = toPropertyKey$2(P); if (IE8_DOM_DEFINE) try { return $getOwnPropertyDescriptor$1(O, P); } catch (error) { /* empty */ } if (hasOwn$h(O, P)) return createPropertyDescriptor$5(!call$f(propertyIsEnumerableModule$2.f, O, P), O[P]); }; var fails$r = fails$y; var isCallable$e = isCallable$m; var replacement = /#|\.prototype\./; var isForced$2 = function (feature, detection) { var value = data[normalize(feature)]; return value === POLYFILL ? true : value === NATIVE ? false : isCallable$e(detection) ? fails$r(detection) : !!detection; }; var normalize = isForced$2.normalize = function (string) { return String(string).replace(replacement, '.').toLowerCase(); }; var data = isForced$2.data = {}; var NATIVE = isForced$2.NATIVE = 'N'; var POLYFILL = isForced$2.POLYFILL = 'P'; var isForced_1 = isForced$2; var uncurryThis$q = functionUncurryThisClause; var aCallable$c = aCallable$e; var NATIVE_BIND$1 = functionBindNative; var bind$i = uncurryThis$q(uncurryThis$q.bind); // optional / simple context binding var functionBindContext = function (fn, that) { aCallable$c(fn); return that === undefined ? fn : NATIVE_BIND$1 ? bind$i(fn, that) : function (/* ...args */) { return fn.apply(that, arguments); }; }; var global$h = global$r; var apply$5 = functionApply; var uncurryThis$p = functionUncurryThisClause; var isCallable$d = isCallable$m; var getOwnPropertyDescriptor$6 = objectGetOwnPropertyDescriptor.f; var isForced$1 = isForced_1; var path$t = path$v; var bind$h = functionBindContext; var createNonEnumerableProperty$7 = createNonEnumerableProperty$9; var hasOwn$g = hasOwnProperty_1; var wrapConstructor = function (NativeConstructor) { var Wrapper = function (a, b, c) { if (this instanceof Wrapper) { switch (arguments.length) { case 0: return new NativeConstructor(); case 1: return new NativeConstructor(a); case 2: return new NativeConstructor(a, b); } return new NativeConstructor(a, b, c); } return apply$5(NativeConstructor, this, arguments); }; Wrapper.prototype = NativeConstructor.prototype; return Wrapper; }; /* 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 */ var _export = function (options, source) { var TARGET = options.target; var GLOBAL = options.global; var STATIC = options.stat; var PROTO = options.proto; var nativeSource = GLOBAL ? global$h : STATIC ? global$h[TARGET] : (global$h[TARGET] || {}).prototype; var target = GLOBAL ? path$t : path$t[TARGET] || createNonEnumerableProperty$7(path$t, TARGET, {})[TARGET]; var targetPrototype = target.prototype; var FORCED, USE_NATIVE, VIRTUAL_PROTOTYPE; var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor; for (key in source) { FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); // contains in native USE_NATIVE = !FORCED && nativeSource && hasOwn$g(nativeSource, key); targetProperty = target[key]; if (USE_NATIVE) if (options.dontCallGetSet) { descriptor = getOwnPropertyDescriptor$6(nativeSource, key); nativeProperty = descriptor && descriptor.value; } else nativeProperty = nativeSource[key]; // export native or implementation sourceProperty = (USE_NATIVE && nativeProperty) ? nativeProperty : source[key]; if (USE_NATIVE && typeof targetProperty == typeof sourceProperty) continue; // bind methods to global for calling from export context if (options.bind && USE_NATIVE) resultProperty = bind$h(sourceProperty, global$h); // wrap global constructors for prevent changes in this version else if (options.wrap && USE_NATIVE) resultProperty = wrapConstructor(sourceProperty); // make static versions for prototype methods else if (PROTO && isCallable$d(sourceProperty)) resultProperty = uncurryThis$p(sourceProperty); // default case else resultProperty = sourceProperty; // add a flag to not completely full polyfills if (options.sham || (sourceProperty && sourceProperty.sham) || (targetProperty && targetProperty.sham)) { createNonEnumerableProperty$7(resultProperty, 'sham', true); } createNonEnumerableProperty$7(target, key, resultProperty); if (PROTO) { VIRTUAL_PROTOTYPE = TARGET + 'Prototype'; if (!hasOwn$g(path$t, VIRTUAL_PROTOTYPE)) { createNonEnumerableProperty$7(path$t, VIRTUAL_PROTOTYPE, {}); } // export virtual prototype methods createNonEnumerableProperty$7(path$t[VIRTUAL_PROTOTYPE], key, sourceProperty); // export real prototype methods if (options.real && targetPrototype && (FORCED || !targetPrototype[key])) { createNonEnumerableProperty$7(targetPrototype, key, sourceProperty); } } } }; var DESCRIPTORS$d = descriptors; var hasOwn$f = hasOwnProperty_1; var FunctionPrototype$2 = Function.prototype; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var getDescriptor = DESCRIPTORS$d && Object.getOwnPropertyDescriptor; var EXISTS = hasOwn$f(FunctionPrototype$2, 'name'); // additional protection from minified / mangled / dropped function names var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something'; var CONFIGURABLE = EXISTS && (!DESCRIPTORS$d || (DESCRIPTORS$d && getDescriptor(FunctionPrototype$2, 'name').configurable)); var functionName = { EXISTS: EXISTS, PROPER: PROPER, CONFIGURABLE: CONFIGURABLE }; var objectDefineProperties = {}; var toIntegerOrInfinity$2 = toIntegerOrInfinity$4; var max$3 = Math.max; var min$2 = 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). var toAbsoluteIndex$5 = function (index, length) { var integer = toIntegerOrInfinity$2(index); return integer < 0 ? max$3(integer + length, 0) : min$2(integer, length); }; var toIntegerOrInfinity$1 = toIntegerOrInfinity$4; var min$1 = Math.min; // `ToLength` abstract operation // https://tc39.es/ecma262/#sec-tolength var toLength$1 = function (argument) { return argument > 0 ? min$1(toIntegerOrInfinity$1(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 }; var toLength = toLength$1; // `LengthOfArrayLike` abstract operation // https://tc39.es/ecma262/#sec-lengthofarraylike var lengthOfArrayLike$e = function (obj) { return toLength(obj.length); }; var toIndexedObject$9 = toIndexedObject$b; var toAbsoluteIndex$4 = toAbsoluteIndex$5; var lengthOfArrayLike$d = lengthOfArrayLike$e; // `Array.prototype.{ indexOf, includes }` methods implementation var createMethod$4 = function (IS_INCLUDES) { return function ($this, el, fromIndex) { var O = toIndexedObject$9($this); var length = lengthOfArrayLike$d(O); var index = toAbsoluteIndex$4(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; }; }; var arrayIncludes = { // `Array.prototype.includes` method // https://tc39.es/ecma262/#sec-array.prototype.includes includes: createMethod$4(true), // `Array.prototype.indexOf` method // https://tc39.es/ecma262/#sec-array.prototype.indexof indexOf: createMethod$4(false) }; var uncurryThis$o = functionUncurryThis; var hasOwn$e = hasOwnProperty_1; var toIndexedObject$8 = toIndexedObject$b; var indexOf$4 = arrayIncludes.indexOf; var hiddenKeys$4 = hiddenKeys$6; var push$d = uncurryThis$o([].push); var objectKeysInternal = function (object, names) { var O = toIndexedObject$8(object); var i = 0; var result = []; var key; for (key in O) !hasOwn$e(hiddenKeys$4, key) && hasOwn$e(O, key) && push$d(result, key); // Don't enum bug & hidden keys while (names.length > i) if (hasOwn$e(O, key = names[i++])) { ~indexOf$4(result, key) || push$d(result, key); } return result; }; // IE8- don't enum bug keys var enumBugKeys$3 = [ 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf' ]; var internalObjectKeys$1 = objectKeysInternal; var enumBugKeys$2 = enumBugKeys$3; // `Object.keys` method // https://tc39.es/ecma262/#sec-object.keys // eslint-disable-next-line es/no-object-keys -- safe var objectKeys$4 = Object.keys || function keys(O) { return internalObjectKeys$1(O, enumBugKeys$2); }; var DESCRIPTORS$c = descriptors; var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug; var definePropertyModule$3 = objectDefineProperty; var anObject$b = anObject$d; var toIndexedObject$7 = toIndexedObject$b; var objectKeys$3 = objectKeys$4; // `Object.defineProperties` method // https://tc39.es/ecma262/#sec-object.defineproperties // eslint-disable-next-line es/no-object-defineproperties -- safe objectDefineProperties.f = DESCRIPTORS$c && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) { anObject$b(O); var props = toIndexedObject$7(Properties); var keys = objectKeys$3(Properties); var length = keys.length; var index = 0; var key; while (length > index) definePropertyModule$3.f(O, key = keys[index++], props[key]); return O; }; var getBuiltIn$d = getBuiltIn$f; var html$2 = getBuiltIn$d('document', 'documentElement'); /* global ActiveXObject -- old IE, WSH */ var anObject$a = anObject$d; var definePropertiesModule$1 = objectDefineProperties; var enumBugKeys$1 = enumBugKeys$3; var hiddenKeys$3 = hiddenKeys$6; var html$1 = html$2; var documentCreateElement = documentCreateElement$1; var sharedKey$2 = sharedKey$4; var GT = '>'; var LT = '<'; var PROTOTYPE$1 = 'prototype'; var SCRIPT = 'script'; var IE_PROTO$1 = sharedKey$2('IE_PROTO'); var EmptyConstructor = function () { /* empty */ }; var scriptTag = function (content) { return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT; }; // Create object with fake `null` prototype: use ActiveX Object with cleared prototype var NullProtoObjectViaActiveX = function (activeXDocument) { activeXDocument.write(scriptTag('')); activeXDocument.close(); var temp = activeXDocument.parentWindow.Object; activeXDocument = null; // avoid memory leak return temp; }; // Create object with fake `null` prototype: use iframe Object with cleared prototype var NullProtoObjectViaIFrame = function () { // Thrash, waste and sodomy: IE GC bug var iframe = documentCreateElement('iframe'); var JS = 'java' + SCRIPT + ':'; var iframeDocument; iframe.style.display = 'none'; html$1.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$1.length; while (length--) delete NullProtoObject[PROTOTYPE$1][enumBugKeys$1[length]]; return NullProtoObject(); }; hiddenKeys$3[IE_PROTO$1] = true; // `Object.create` method // https://tc39.es/ecma262/#sec-object.create // eslint-disable-next-line es/no-object-create -- safe var objectCreate = Object.create || function create(O, Properties) { var result; if (O !== null) { EmptyConstructor[PROTOTYPE$1] = anObject$a(O); result = new EmptyConstructor(); EmptyConstructor[PROTOTYPE$1] = null; // add "__proto__" for Object.getPrototypeOf polyfill result[IE_PROTO$1] = O; } else result = NullProtoObject(); return Properties === undefined ? result : definePropertiesModule$1.f(result, Properties); }; var fails$q = fails$y; var correctPrototypeGetter = !fails$q(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; }); var hasOwn$d = hasOwnProperty_1; var isCallable$c = isCallable$m; var toObject$d = toObject$f; var sharedKey$1 = sharedKey$4; var CORRECT_PROTOTYPE_GETTER$1 = correctPrototypeGetter; var IE_PROTO = sharedKey$1('IE_PROTO'); var $Object = Object; var ObjectPrototype$2 = $Object.prototype; // `Object.getPrototypeOf` method // https://tc39.es/ecma262/#sec-object.getprototypeof // eslint-disable-next-line es/no-object-getprototypeof -- safe var objectGetPrototypeOf$1 = CORRECT_PROTOTYPE_GETTER$1 ? $Object.getPrototypeOf : function (O) { var object = toObject$d(O); if (hasOwn$d(object, IE_PROTO)) return object[IE_PROTO]; var constructor = object.constructor; if (isCallable$c(constructor) && object instanceof constructor) { return constructor.prototype; } return object instanceof $Object ? ObjectPrototype$2 : null; }; var createNonEnumerableProperty$6 = createNonEnumerableProperty$9; var defineBuiltIn$6 = function (target, key, value, options) { if (options && options.enumerable) target[key] = value; else createNonEnumerableProperty$6(target, key, value); return target; }; var fails$p = fails$y; var isCallable$b = isCallable$m; var isObject$d = isObject$j; var create$b = objectCreate; var getPrototypeOf$8 = objectGetPrototypeOf$1; var defineBuiltIn$5 = defineBuiltIn$6; var wellKnownSymbol$l = wellKnownSymbol$p; var ITERATOR$6 = wellKnownSymbol$l('iterator'); var BUGGY_SAFARI_ITERATORS$1 = false; // `%IteratorPrototype%` object // https://tc39.es/ecma262/#sec-%iteratorprototype%-object var IteratorPrototype$1, 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$1 = true; else { PrototypeOfArrayIteratorPrototype = getPrototypeOf$8(getPrototypeOf$8(arrayIterator)); if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$1 = PrototypeOfArrayIteratorPrototype; } } var NEW_ITERATOR_PROTOTYPE = !isObject$d(IteratorPrototype$1) || fails$p(function () { var test = {}; // FF44- legacy iterators case return IteratorPrototype$1[ITERATOR$6].call(test) !== test; }); if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$1 = {}; else IteratorPrototype$1 = create$b(IteratorPrototype$1); // `%IteratorPrototype%[@@iterator]()` method // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator if (!isCallable$b(IteratorPrototype$1[ITERATOR$6])) { defineBuiltIn$5(IteratorPrototype$1, ITERATOR$6, function () { return this; }); } var iteratorsCore = { IteratorPrototype: IteratorPrototype$1, BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1 }; var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport; var classof$d = classof$g; // `Object.prototype.toString` method implementation // https://tc39.es/ecma262/#sec-object.prototype.tostring var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() { return '[object ' + classof$d(this) + ']'; }; var TO_STRING_TAG_SUPPORT = toStringTagSupport; var defineProperty$e = objectDefineProperty.f; var createNonEnumerableProperty$5 = createNonEnumerableProperty$9; var hasOwn$c = hasOwnProperty_1; var toString$9 = objectToString; var wellKnownSymbol$k = wellKnownSymbol$p; var TO_STRING_TAG$2 = wellKnownSymbol$k('toStringTag'); var setToStringTag$7 = function (it, TAG, STATIC, SET_METHOD) { if (it) { var target = STATIC ? it : it.prototype; if (!hasOwn$c(target, TO_STRING_TAG$2)) { defineProperty$e(target, TO_STRING_TAG$2, { configurable: true, value: TAG }); } if (SET_METHOD && !TO_STRING_TAG_SUPPORT) { createNonEnumerableProperty$5(target, 'toString', toString$9); } } }; var iterators = {}; var IteratorPrototype = iteratorsCore.IteratorPrototype; var create$a = objectCreate; var createPropertyDescriptor$4 = createPropertyDescriptor$7; var setToStringTag$6 = setToStringTag$7; var Iterators$5 = iterators; var returnThis$1 = function () { return this; }; var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) { var TO_STRING_TAG = NAME + ' Iterator'; IteratorConstructor.prototype = create$a(IteratorPrototype, { next: createPropertyDescriptor$4(+!ENUMERABLE_NEXT, next) }); setToStringTag$6(IteratorConstructor, TO_STRING_TAG, false, true); Iterators$5[TO_STRING_TAG] = returnThis$1; return IteratorConstructor; }; var uncurryThis$n = functionUncurryThis; var aCallable$b = aCallable$e; var functionUncurryThisAccessor = function (object, key, method) { try { // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe return uncurryThis$n(aCallable$b(Object.getOwnPropertyDescriptor(object, key)[method])); } catch (error) { /* empty */ } }; var isCallable$a = isCallable$m; var $String$1 = String; var $TypeError$b = TypeError; var aPossiblePrototype$1 = function (argument) { if (typeof argument == 'object' || isCallable$a(argument)) return argument; throw new $TypeError$b("Can't set " + $String$1(argument) + ' as a prototype'); }; /* eslint-disable no-proto -- safe */ var uncurryThisAccessor = functionUncurryThisAccessor; var anObject$9 = anObject$d; var aPossiblePrototype = aPossiblePrototype$1; // `Object.setPrototypeOf` method // https://tc39.es/ecma262/#sec-object.setprototypeof // Works with __proto__ only. Old v8 can't work with null proto objects. // eslint-disable-next-line es/no-object-setprototypeof -- safe var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () { var CORRECT_SETTER = false; var test = {}; var setter; try { setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set'); setter(test, []); CORRECT_SETTER = test instanceof Array; } catch (error) { /* empty */ } return function setPrototypeOf(O, proto) { anObject$9(O); aPossiblePrototype(proto); if (CORRECT_SETTER) setter(O, proto); else O.__proto__ = proto; return O; }; }() : undefined); var $$_ = _export; var call$e = functionCall; var FunctionName = functionName; var createIteratorConstructor = iteratorCreateConstructor; var getPrototypeOf$7 = objectGetPrototypeOf$1; var setToStringTag$5 = setToStringTag$7; var defineBuiltIn$4 = defineBuiltIn$6; var wellKnownSymbol$j = wellKnownSymbol$p; var Iterators$4 = iterators; var IteratorsCore = iteratorsCore; var PROPER_FUNCTION_NAME = FunctionName.PROPER; FunctionName.CONFIGURABLE; IteratorsCore.IteratorPrototype; var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS; var ITERATOR$5 = wellKnownSymbol$j('iterator'); var KEYS = 'keys'; var VALUES = 'values'; var ENTRIES = 'entries'; var returnThis = function () { return this; }; var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) { createIteratorConstructor(IteratorConstructor, NAME, next); var getIterationMethod = function (KIND) { if (KIND === DEFAULT && defaultIterator) return defaultIterator; if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND]; switch (KIND) { case KEYS: return function keys() { return new IteratorConstructor(this, KIND); }; case VALUES: return function values() { return new IteratorConstructor(this, KIND); }; case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); }; } return function () { return new IteratorConstructor(this); }; }; var TO_STRING_TAG = NAME + ' Iterator'; var INCORRECT_VALUES_NAME = false; var IterablePrototype = Iterable.prototype; var nativeIterator = IterablePrototype[ITERATOR$5] || IterablePrototype['@@iterator'] || DEFAULT && IterablePrototype[DEFAULT]; var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT); var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator; var CurrentIteratorPrototype, methods, KEY; // fix native if (anyNativeIterator) { CurrentIteratorPrototype = getPrototypeOf$7(anyNativeIterator.call(new Iterable())); if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) { // Set @@toStringTag to native iterators setToStringTag$5(CurrentIteratorPrototype, TO_STRING_TAG, true, true); Iterators$4[TO_STRING_TAG] = returnThis; } } // fix Array.prototype.{ values, @@iterator }.name in V8 / FF if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) { { INCORRECT_VALUES_NAME = true; defaultIterator = function values() { return call$e(nativeIterator, this); }; } } // export additional methods if (DEFAULT) { methods = { values: getIterationMethod(VALUES), keys: IS_SET ? defaultIterator : getIterationMethod(KEYS), entries: getIterationMethod(ENTRIES) }; if (FORCED) for (KEY in methods) { if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) { defineBuiltIn$4(IterablePrototype, KEY, methods[KEY]); } } else $$_({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods); } // define iterator if ((FORCED) && IterablePrototype[ITERATOR$5] !== defaultIterator) { defineBuiltIn$4(IterablePrototype, ITERATOR$5, defaultIterator, { name: DEFAULT }); } Iterators$4[NAME] = defaultIterator; return methods; }; // `CreateIterResultObject` abstract operation // https://tc39.es/ecma262/#sec-createiterresultobject var createIterResultObject$3 = function (value, done) { return { value: value, done: done }; }; var charAt$2 = stringMultibyte.charAt; var toString$8 = toString$b; var InternalStateModule$5 = internalState; var defineIterator$2 = iteratorDefine; var create