diff --git a/js/bundle_test.go b/js/bundle_test.go index 14028f3f2bd..46cc510fe4d 100644 --- a/js/bundle_test.go +++ b/js/bundle_test.go @@ -114,12 +114,17 @@ func TestNewBundle(t *testing.T) { } }) t.Run("CompatibilityMode", func(t *testing.T) { + compatibilityTestSrc := ` + module.exports.default = function() {}; + if ([[1,2],[3,4]].flatten()[4] == 4) { + throw Error("Array.flatten doesn't work") + } + ` t.Run("Extended/ok/CoreJS", func(t *testing.T) { rtOpts := lib.RuntimeOptions{ CompatibilityMode: null.StringFrom(lib.CompatibilityModeExtended.String()), } - _, err := getSimpleBundle(t, "/script.js", - `module.exports.default = function() {}; new Promise(function(resolve, reject){});`, rtOpts) + _, err := getSimpleBundle(t, "/script.js", compatibilityTestSrc, rtOpts) assert.NoError(t, err) }) @@ -156,8 +161,8 @@ func TestNewBundle(t *testing.T) { // some ES2015 objects polyfilled by core.js are not supported { "CoreJS", "base", - `module.exports.default = function() {}; new Promise(function(resolve, reject){});`, - "ReferenceError: Promise is not defined at file:///script.js:1:45(5)", + compatibilityTestSrc, + "TypeError: Object has no member 'flatten' at file:///script.js:3:28(14)", }, } diff --git a/js/lib/core-js/_an-instance.js b/js/lib/core-js/_an-instance.js deleted file mode 100644 index c0a5f9200c1..00000000000 --- a/js/lib/core-js/_an-instance.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = function (it, Constructor, name, forbiddenField) { - if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) { - throw TypeError(name + ': incorrect invocation!'); - } return it; -}; diff --git a/js/lib/core-js/_array-methods.js b/js/lib/core-js/_array-methods.js deleted file mode 100644 index ae7f447da3c..00000000000 --- a/js/lib/core-js/_array-methods.js +++ /dev/null @@ -1,44 +0,0 @@ -// 0 -> Array#forEach -// 1 -> Array#map -// 2 -> Array#filter -// 3 -> Array#some -// 4 -> Array#every -// 5 -> Array#find -// 6 -> Array#findIndex -var ctx = require('./_ctx'); -var IObject = require('./_iobject'); -var toObject = require('./_to-object'); -var toLength = require('./_to-length'); -var asc = require('./_array-species-create'); -module.exports = function (TYPE, $create) { - var IS_MAP = TYPE == 1; - var IS_FILTER = TYPE == 2; - var IS_SOME = TYPE == 3; - var IS_EVERY = TYPE == 4; - var IS_FIND_INDEX = TYPE == 6; - var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; - var create = $create || asc; - return function ($this, callbackfn, that) { - var O = toObject($this); - var self = IObject(O); - var f = ctx(callbackfn, that, 3); - var length = toLength(self.length); - var index = 0; - var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined; - var val, res; - for (;length > index; index++) if (NO_HOLES || index in self) { - val = self[index]; - res = f(val, index, O); - if (TYPE) { - if (IS_MAP) result[index] = res; // map - else if (res) switch (TYPE) { - case 3: return true; // some - case 5: return val; // find - case 6: return index; // findIndex - case 2: result.push(val); // filter - } else if (IS_EVERY) return false; // every - } - } - return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result; - }; -}; diff --git a/js/lib/core-js/_collection-strong.js b/js/lib/core-js/_collection-strong.js deleted file mode 100644 index 68ce63f0e06..00000000000 --- a/js/lib/core-js/_collection-strong.js +++ /dev/null @@ -1,144 +0,0 @@ -'use strict'; -var dP = require('./_object-dp').f; -var create = require('./_object-create'); -var redefineAll = require('./_redefine-all'); -var ctx = require('./_ctx'); -var anInstance = require('./_an-instance'); -var forOf = require('./_for-of'); -var $iterDefine = require('./_iter-define'); -var step = require('./_iter-step'); -var setSpecies = require('./_set-species'); -var DESCRIPTORS = require('./_descriptors'); -var fastKey = require('./_meta').fastKey; -var validate = require('./_validate-collection'); -var SIZE = DESCRIPTORS ? '_s' : 'size'; - -var getEntry = function (that, key) { - // fast case - var index = fastKey(key); - var entry; - if (index !== 'F') return that._i[index]; - // frozen object case - for (entry = that._f; entry; entry = entry.n) { - if (entry.k == key) return entry; - } -}; - -module.exports = { - getConstructor: function (wrapper, NAME, IS_MAP, ADDER) { - var C = wrapper(function (that, iterable) { - anInstance(that, C, NAME, '_i'); - that._t = NAME; // collection type - that._i = create(null); // index - that._f = undefined; // first entry - that._l = undefined; // last entry - that[SIZE] = 0; // size - if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); - }); - redefineAll(C.prototype, { - // 23.1.3.1 Map.prototype.clear() - // 23.2.3.2 Set.prototype.clear() - clear: function clear() { - for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) { - entry.r = true; - if (entry.p) entry.p = entry.p.n = undefined; - delete data[entry.i]; - } - that._f = that._l = undefined; - that[SIZE] = 0; - }, - // 23.1.3.3 Map.prototype.delete(key) - // 23.2.3.4 Set.prototype.delete(value) - 'delete': function (key) { - var that = validate(this, NAME); - var entry = getEntry(that, key); - if (entry) { - var next = entry.n; - var prev = entry.p; - delete that._i[entry.i]; - entry.r = true; - if (prev) prev.n = next; - if (next) next.p = prev; - if (that._f == entry) that._f = next; - if (that._l == entry) that._l = prev; - that[SIZE]--; - } return !!entry; - }, - // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined) - // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined) - forEach: function forEach(callbackfn /* , that = undefined */) { - validate(this, NAME); - var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3); - var entry; - while (entry = entry ? entry.n : this._f) { - f(entry.v, entry.k, this); - // revert to the last existing entry - while (entry && entry.r) entry = entry.p; - } - }, - // 23.1.3.7 Map.prototype.has(key) - // 23.2.3.7 Set.prototype.has(value) - has: function has(key) { - return !!getEntry(validate(this, NAME), key); - } - }); - if (DESCRIPTORS) dP(C.prototype, 'size', { - get: function () { - return validate(this, NAME)[SIZE]; - } - }); - return C; - }, - def: function (that, key, value) { - var entry = getEntry(that, key); - var prev, index; - // change existing entry - if (entry) { - entry.v = value; - // create new entry - } else { - that._l = entry = { - i: index = fastKey(key, true), // <- index - k: key, // <- key - v: value, // <- value - p: prev = that._l, // <- previous entry - n: undefined, // <- next entry - r: false // <- removed - }; - if (!that._f) that._f = entry; - if (prev) prev.n = entry; - that[SIZE]++; - // add to index - if (index !== 'F') that._i[index] = entry; - } return that; - }, - getEntry: getEntry, - setStrong: function (C, NAME, IS_MAP) { - // add .keys, .values, .entries, [@@iterator] - // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11 - $iterDefine(C, NAME, function (iterated, kind) { - this._t = validate(iterated, NAME); // target - this._k = kind; // kind - this._l = undefined; // previous - }, function () { - var that = this; - var kind = that._k; - var entry = that._l; - // revert to the last existing entry - while (entry && entry.r) entry = entry.p; - // get next entry - if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) { - // or finish the iteration - that._t = undefined; - return step(1); - } - // return step by kind - if (kind == 'keys') return step(0, entry.k); - if (kind == 'values') return step(0, entry.v); - return step(0, [entry.k, entry.v]); - }, IS_MAP ? 'entries' : 'values', !IS_MAP, true); - - // add [@@species], 23.1.2.2, 23.2.2.2 - setSpecies(NAME); - } -}; diff --git a/js/lib/core-js/_collection-to-json.js b/js/lib/core-js/_collection-to-json.js deleted file mode 100644 index a6ee0029a42..00000000000 --- a/js/lib/core-js/_collection-to-json.js +++ /dev/null @@ -1,9 +0,0 @@ -// https://github.com/DavidBruant/Map-Set.prototype.toJSON -var classof = require('./_classof'); -var from = require('./_array-from-iterable'); -module.exports = function (NAME) { - return function toJSON() { - if (classof(this) != NAME) throw TypeError(NAME + "#toJSON isn't generic"); - return from(this); - }; -}; diff --git a/js/lib/core-js/_collection-weak.js b/js/lib/core-js/_collection-weak.js deleted file mode 100644 index 04d3af5afe5..00000000000 --- a/js/lib/core-js/_collection-weak.js +++ /dev/null @@ -1,85 +0,0 @@ -'use strict'; -var redefineAll = require('./_redefine-all'); -var getWeak = require('./_meta').getWeak; -var anObject = require('./_an-object'); -var isObject = require('./_is-object'); -var anInstance = require('./_an-instance'); -var forOf = require('./_for-of'); -var createArrayMethod = require('./_array-methods'); -var $has = require('./_has'); -var validate = require('./_validate-collection'); -var arrayFind = createArrayMethod(5); -var arrayFindIndex = createArrayMethod(6); -var id = 0; - -// fallback for uncaught frozen keys -var uncaughtFrozenStore = function (that) { - return that._l || (that._l = new UncaughtFrozenStore()); -}; -var UncaughtFrozenStore = function () { - this.a = []; -}; -var findUncaughtFrozen = function (store, key) { - return arrayFind(store.a, function (it) { - return it[0] === key; - }); -}; -UncaughtFrozenStore.prototype = { - get: function (key) { - var entry = findUncaughtFrozen(this, key); - if (entry) return entry[1]; - }, - has: function (key) { - return !!findUncaughtFrozen(this, key); - }, - set: function (key, value) { - var entry = findUncaughtFrozen(this, key); - if (entry) entry[1] = value; - else this.a.push([key, value]); - }, - 'delete': function (key) { - var index = arrayFindIndex(this.a, function (it) { - return it[0] === key; - }); - if (~index) this.a.splice(index, 1); - return !!~index; - } -}; - -module.exports = { - getConstructor: function (wrapper, NAME, IS_MAP, ADDER) { - var C = wrapper(function (that, iterable) { - anInstance(that, C, NAME, '_i'); - that._t = NAME; // collection type - that._i = id++; // collection id - that._l = undefined; // leak store for uncaught frozen objects - if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); - }); - redefineAll(C.prototype, { - // 23.3.3.2 WeakMap.prototype.delete(key) - // 23.4.3.3 WeakSet.prototype.delete(value) - 'delete': function (key) { - if (!isObject(key)) return false; - var data = getWeak(key); - if (data === true) return uncaughtFrozenStore(validate(this, NAME))['delete'](key); - return data && $has(data, this._i) && delete data[this._i]; - }, - // 23.3.3.4 WeakMap.prototype.has(key) - // 23.4.3.4 WeakSet.prototype.has(value) - has: function has(key) { - if (!isObject(key)) return false; - var data = getWeak(key); - if (data === true) return uncaughtFrozenStore(validate(this, NAME)).has(key); - return data && $has(data, this._i); - } - }); - return C; - }, - def: function (that, key, value) { - var data = getWeak(anObject(key), true); - if (data === true) uncaughtFrozenStore(that).set(key, value); - else data[that._i] = value; - return that; - }, - ufstore: uncaughtFrozenStore -}; diff --git a/js/lib/core-js/_collection.js b/js/lib/core-js/_collection.js deleted file mode 100644 index 767dde50682..00000000000 --- a/js/lib/core-js/_collection.js +++ /dev/null @@ -1,85 +0,0 @@ -'use strict'; -var global = require('./_global'); -var $export = require('./_export'); -var redefine = require('./_redefine'); -var redefineAll = require('./_redefine-all'); -var meta = require('./_meta'); -var forOf = require('./_for-of'); -var anInstance = require('./_an-instance'); -var isObject = require('./_is-object'); -var fails = require('./_fails'); -var $iterDetect = require('./_iter-detect'); -var setToStringTag = require('./_set-to-string-tag'); -var inheritIfRequired = require('./_inherit-if-required'); - -module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) { - var Base = global[NAME]; - var C = Base; - var ADDER = IS_MAP ? 'set' : 'add'; - var proto = C && C.prototype; - var O = {}; - var fixMethod = function (KEY) { - var fn = proto[KEY]; - redefine(proto, KEY, - KEY == 'delete' ? function (a) { - return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a); - } : KEY == 'has' ? function has(a) { - return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a); - } : KEY == 'get' ? function get(a) { - return IS_WEAK && !isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : a); - } : KEY == 'add' ? function add(a) { fn.call(this, a === 0 ? 0 : a); return this; } - : function set(a, b) { fn.call(this, a === 0 ? 0 : a, b); return this; } - ); - }; - if (typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () { - new C().entries().next(); - }))) { - // create collection constructor - C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER); - redefineAll(C.prototype, methods); - meta.NEED = true; - } else { - var instance = new C(); - // early implementations not supports chaining - var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance; - // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false - var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); }); - // most early implementations doesn't supports iterables, most modern - not close it correctly - var ACCEPT_ITERABLES = $iterDetect(function (iter) { new C(iter); }); // eslint-disable-line no-new - // for early implementations -0 and +0 not the same - var BUGGY_ZERO = !IS_WEAK && fails(function () { - // V8 ~ Chromium 42- fails only with 5+ elements - var $instance = new C(); - var index = 5; - while (index--) $instance[ADDER](index, index); - return !$instance.has(-0); - }); - if (!ACCEPT_ITERABLES) { - C = wrapper(function (target, iterable) { - anInstance(target, C, NAME); - var that = inheritIfRequired(new Base(), target, C); - if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); - return that; - }); - C.prototype = proto; - proto.constructor = C; - } - if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) { - fixMethod('delete'); - fixMethod('has'); - IS_MAP && fixMethod('get'); - } - if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER); - // weak collections should not contains .clear method - if (IS_WEAK && proto.clear) delete proto.clear; - } - - setToStringTag(C, NAME); - - O[NAME] = C; - $export($export.G + $export.W + $export.F * (C != Base), O); - - if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP); - - return C; -}; diff --git a/js/lib/core-js/_dom-create.js b/js/lib/core-js/_dom-create.js deleted file mode 100644 index 39ca2569d70..00000000000 --- a/js/lib/core-js/_dom-create.js +++ /dev/null @@ -1,7 +0,0 @@ -var isObject = require('./_is-object'); -var document = require('./_global').document; -// typeof document.createElement is 'object' in old IE -var is = isObject(document) && isObject(document.createElement); -module.exports = function (it) { - return is ? document.createElement(it) : {}; -}; diff --git a/js/lib/core-js/_html.js b/js/lib/core-js/_html.js deleted file mode 100644 index 7daff14ca8e..00000000000 --- a/js/lib/core-js/_html.js +++ /dev/null @@ -1,2 +0,0 @@ -var document = require('./_global').document; -module.exports = document && document.documentElement; diff --git a/js/lib/core-js/_inherit-if-required.js b/js/lib/core-js/_inherit-if-required.js deleted file mode 100644 index b95fcd98454..00000000000 --- a/js/lib/core-js/_inherit-if-required.js +++ /dev/null @@ -1,9 +0,0 @@ -var isObject = require('./_is-object'); -var setPrototypeOf = require('./_set-proto').set; -module.exports = function (that, target, C) { - var S = target.constructor; - var P; - if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) { - setPrototypeOf(that, P); - } return that; -}; diff --git a/js/lib/core-js/_invoke.js b/js/lib/core-js/_invoke.js deleted file mode 100644 index 6cccebdc12e..00000000000 --- a/js/lib/core-js/_invoke.js +++ /dev/null @@ -1,16 +0,0 @@ -// fast apply, http://jsperf.lnkit.com/fast-apply/5 -module.exports = function (fn, args, that) { - var un = that === undefined; - switch (args.length) { - case 0: return un ? fn() - : fn.call(that); - case 1: return un ? fn(args[0]) - : fn.call(that, args[0]); - case 2: return un ? fn(args[0], args[1]) - : fn.call(that, args[0], args[1]); - case 3: return un ? fn(args[0], args[1], args[2]) - : fn.call(that, args[0], args[1], args[2]); - case 4: return un ? fn(args[0], args[1], args[2], args[3]) - : fn.call(that, args[0], args[1], args[2], args[3]); - } return fn.apply(that, args); -}; diff --git a/js/lib/core-js/_iter-define.js b/js/lib/core-js/_iter-define.js deleted file mode 100644 index 8f68107d8e9..00000000000 --- a/js/lib/core-js/_iter-define.js +++ /dev/null @@ -1,70 +0,0 @@ -'use strict'; -var LIBRARY = require('./_library'); -var $export = require('./_export'); -var redefine = require('./_redefine'); -var hide = require('./_hide'); -var has = require('./_has'); -var Iterators = require('./_iterators'); -var $iterCreate = require('./_iter-create'); -var setToStringTag = require('./_set-to-string-tag'); -var getPrototypeOf = require('./_object-gpo'); -var ITERATOR = require('./_wks')('iterator'); -var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` -var FF_ITERATOR = '@@iterator'; -var KEYS = 'keys'; -var VALUES = 'values'; - -var returnThis = function () { return this; }; - -module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { - $iterCreate(Constructor, NAME, next); - var getMethod = function (kind) { - if (!BUGGY && kind in proto) return proto[kind]; - switch (kind) { - case KEYS: return function keys() { return new Constructor(this, kind); }; - case VALUES: return function values() { return new Constructor(this, kind); }; - } return function entries() { return new Constructor(this, kind); }; - }; - var TAG = NAME + ' Iterator'; - var DEF_VALUES = DEFAULT == VALUES; - var VALUES_BUG = false; - var proto = Base.prototype; - var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; - var $default = $native || getMethod(DEFAULT); - var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; - var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; - var methods, key, IteratorPrototype; - // Fix native - if ($anyNative) { - IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); - if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { - // Set @@toStringTag to native iterators - setToStringTag(IteratorPrototype, TAG, true); - // fix for some old engines - if (!LIBRARY && !has(IteratorPrototype, ITERATOR)) hide(IteratorPrototype, ITERATOR, returnThis); - } - } - // fix Array#{values, @@iterator}.name in V8 / FF - if (DEF_VALUES && $native && $native.name !== VALUES) { - VALUES_BUG = true; - $default = function values() { return $native.call(this); }; - } - // Define iterator - if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { - hide(proto, ITERATOR, $default); - } - // Plug for library - Iterators[NAME] = $default; - Iterators[TAG] = returnThis; - if (DEFAULT) { - methods = { - values: DEF_VALUES ? $default : getMethod(VALUES), - keys: IS_SET ? $default : getMethod(KEYS), - entries: $entries - }; - if (FORCED) for (key in methods) { - if (!(key in proto)) redefine(proto, key, methods[key]); - } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); - } - return methods; -}; diff --git a/js/lib/core-js/_iter-detect.js b/js/lib/core-js/_iter-detect.js deleted file mode 100644 index 5cb34973ce9..00000000000 --- a/js/lib/core-js/_iter-detect.js +++ /dev/null @@ -1,22 +0,0 @@ -var ITERATOR = require('./_wks')('iterator'); -var SAFE_CLOSING = false; - -try { - var riter = [7][ITERATOR](); - riter['return'] = function () { SAFE_CLOSING = true; }; - // eslint-disable-next-line no-throw-literal - Array.from(riter, function () { throw 2; }); -} catch (e) { /* empty */ } - -module.exports = function (exec, skipClosing) { - if (!skipClosing && !SAFE_CLOSING) return false; - var safe = false; - try { - var arr = [7]; - var iter = arr[ITERATOR](); - iter.next = function () { return { done: safe = true }; }; - arr[ITERATOR] = function () { return iter; }; - exec(arr); - } catch (e) { /* empty */ } - return safe; -}; diff --git a/js/lib/core-js/_iter-step.js b/js/lib/core-js/_iter-step.js deleted file mode 100644 index b0691c883d9..00000000000 --- a/js/lib/core-js/_iter-step.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = function (done, value) { - return { value: value, done: !!done }; -}; diff --git a/js/lib/core-js/_meta.js b/js/lib/core-js/_meta.js deleted file mode 100644 index 2d4b3257999..00000000000 --- a/js/lib/core-js/_meta.js +++ /dev/null @@ -1,53 +0,0 @@ -var META = require('./_uid')('meta'); -var isObject = require('./_is-object'); -var has = require('./_has'); -var setDesc = require('./_object-dp').f; -var id = 0; -var isExtensible = Object.isExtensible || function () { - return true; -}; -var FREEZE = !require('./_fails')(function () { - return isExtensible(Object.preventExtensions({})); -}); -var setMeta = function (it) { - setDesc(it, META, { value: { - i: 'O' + ++id, // object ID - w: {} // weak collections IDs - } }); -}; -var fastKey = function (it, create) { - // return primitive with prefix - if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; - if (!has(it, META)) { - // can't set metadata to uncaught frozen object - if (!isExtensible(it)) return 'F'; - // not necessary to add metadata - if (!create) return 'E'; - // add missing metadata - setMeta(it); - // return object ID - } return it[META].i; -}; -var getWeak = function (it, create) { - if (!has(it, META)) { - // can't set metadata to uncaught frozen object - if (!isExtensible(it)) return true; - // not necessary to add metadata - if (!create) return false; - // add missing metadata - setMeta(it); - // return hash weak collections IDs - } return it[META].w; -}; -// add metadata on freeze-family methods calling -var onFreeze = function (it) { - if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it); - return it; -}; -var meta = module.exports = { - KEY: META, - NEED: false, - fastKey: fastKey, - getWeak: getWeak, - onFreeze: onFreeze -}; diff --git a/js/lib/core-js/_microtask.js b/js/lib/core-js/_microtask.js deleted file mode 100644 index 8a90f7d2ea9..00000000000 --- a/js/lib/core-js/_microtask.js +++ /dev/null @@ -1,68 +0,0 @@ -var global = require('./_global'); -var macrotask = require('./_task').set; -var Observer = global.MutationObserver || global.WebKitMutationObserver; -var process = global.process; -var Promise = global.Promise; -var isNode = require('./_cof')(process) == 'process'; - -module.exports = function () { - var head, last, notify; - - var flush = function () { - var parent, fn; - if (isNode && (parent = process.domain)) parent.exit(); - while (head) { - fn = head.fn; - head = head.next; - try { - fn(); - } catch (e) { - if (head) notify(); - else last = undefined; - throw e; - } - } last = undefined; - if (parent) parent.enter(); - }; - - // Node.js - if (isNode) { - notify = function () { - process.nextTick(flush); - }; - // browsers with MutationObserver - } else if (Observer) { - var toggle = true; - var node = document.createTextNode(''); - new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new - notify = function () { - node.data = toggle = !toggle; - }; - // environments with maybe non-completely correct, but existent Promise - } else if (Promise && Promise.resolve) { - var promise = Promise.resolve(); - notify = function () { - promise.then(flush); - }; - // for other environments - macrotask based on: - // - setImmediate - // - MessageChannel - // - window.postMessag - // - onreadystatechange - // - setTimeout - } else { - notify = function () { - // strange IE + webpack dev server bug - use .call(global) - macrotask.call(global, flush); - }; - } - - return function (fn) { - var task = { fn: fn, next: undefined }; - if (last) last.next = task; - if (!head) { - head = task; - notify(); - } last = task; - }; -}; diff --git a/js/lib/core-js/_new-promise-capability.js b/js/lib/core-js/_new-promise-capability.js deleted file mode 100644 index 82b74a33150..00000000000 --- a/js/lib/core-js/_new-promise-capability.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; -// 25.4.1.5 NewPromiseCapability(C) -var aFunction = require('./_a-function'); - -function PromiseCapability(C) { - var resolve, reject; - this.promise = new C(function ($$resolve, $$reject) { - if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor'); - resolve = $$resolve; - reject = $$reject; - }); - this.resolve = aFunction(resolve); - this.reject = aFunction(reject); -} - -module.exports.f = function (C) { - return new PromiseCapability(C); -}; diff --git a/js/lib/core-js/_object-assign.js b/js/lib/core-js/_object-assign.js deleted file mode 100644 index 7d4943a2a9b..00000000000 --- a/js/lib/core-js/_object-assign.js +++ /dev/null @@ -1,34 +0,0 @@ -'use strict'; -// 19.1.2.1 Object.assign(target, source, ...) -var getKeys = require('./_object-keys'); -var gOPS = require('./_object-gops'); -var pIE = require('./_object-pie'); -var toObject = require('./_to-object'); -var IObject = require('./_iobject'); -var $assign = Object.assign; - -// should work with symbols and should have deterministic property order (V8 bug) -module.exports = !$assign || require('./_fails')(function () { - var A = {}; - var B = {}; - // eslint-disable-next-line no-undef - var S = Symbol(); - var K = 'abcdefghijklmnopqrst'; - A[S] = 7; - K.split('').forEach(function (k) { B[k] = k; }); - return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; -}) ? function assign(target, source) { // eslint-disable-line no-unused-vars - var T = toObject(target); - var aLen = arguments.length; - var index = 1; - var getSymbols = gOPS.f; - var isEnum = pIE.f; - while (aLen > index) { - var S = IObject(arguments[index++]); - var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S); - var length = keys.length; - var j = 0; - var key; - while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key]; - } return T; -} : $assign; diff --git a/js/lib/core-js/_perform.js b/js/lib/core-js/_perform.js deleted file mode 100644 index bfc7b296da9..00000000000 --- a/js/lib/core-js/_perform.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = function (exec) { - try { - return { e: false, v: exec() }; - } catch (e) { - return { e: true, v: e }; - } -}; diff --git a/js/lib/core-js/_promise-resolve.js b/js/lib/core-js/_promise-resolve.js deleted file mode 100644 index c3cac7646da..00000000000 --- a/js/lib/core-js/_promise-resolve.js +++ /dev/null @@ -1,12 +0,0 @@ -var anObject = require('./_an-object'); -var isObject = require('./_is-object'); -var newPromiseCapability = require('./_new-promise-capability'); - -module.exports = function (C, x) { - anObject(C); - if (isObject(x) && x.constructor === C) return x; - var promiseCapability = newPromiseCapability.f(C); - var resolve = promiseCapability.resolve; - resolve(x); - return promiseCapability.promise; -}; diff --git a/js/lib/core-js/_redefine-all.js b/js/lib/core-js/_redefine-all.js deleted file mode 100644 index dcf7944f57a..00000000000 --- a/js/lib/core-js/_redefine-all.js +++ /dev/null @@ -1,5 +0,0 @@ -var redefine = require('./_redefine'); -module.exports = function (target, src, safe) { - for (var key in src) redefine(target, key, src[key], safe); - return target; -}; diff --git a/js/lib/core-js/_set-collection-from.js b/js/lib/core-js/_set-collection-from.js deleted file mode 100644 index d5001f93e99..00000000000 --- a/js/lib/core-js/_set-collection-from.js +++ /dev/null @@ -1,28 +0,0 @@ -'use strict'; -// https://tc39.github.io/proposal-setmap-offrom/ -var $export = require('./_export'); -var aFunction = require('./_a-function'); -var ctx = require('./_ctx'); -var forOf = require('./_for-of'); - -module.exports = function (COLLECTION) { - $export($export.S, COLLECTION, { from: function from(source /* , mapFn, thisArg */) { - var mapFn = arguments[1]; - var mapping, A, n, cb; - aFunction(this); - mapping = mapFn !== undefined; - if (mapping) aFunction(mapFn); - if (source == undefined) return new this(); - A = []; - if (mapping) { - n = 0; - cb = ctx(mapFn, arguments[2], 2); - forOf(source, false, function (nextItem) { - A.push(cb(nextItem, n++)); - }); - } else { - forOf(source, false, A.push, A); - } - return new this(A); - } }); -}; diff --git a/js/lib/core-js/_set-collection-of.js b/js/lib/core-js/_set-collection-of.js deleted file mode 100644 index dfb25800e76..00000000000 --- a/js/lib/core-js/_set-collection-of.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; -// https://tc39.github.io/proposal-setmap-offrom/ -var $export = require('./_export'); - -module.exports = function (COLLECTION) { - $export($export.S, COLLECTION, { of: function of() { - var length = arguments.length; - var A = Array(length); - while (length--) A[length] = arguments[length]; - return new this(A); - } }); -}; diff --git a/js/lib/core-js/_set-proto.js b/js/lib/core-js/_set-proto.js deleted file mode 100644 index c1990622ec9..00000000000 --- a/js/lib/core-js/_set-proto.js +++ /dev/null @@ -1,25 +0,0 @@ -// Works with __proto__ only. Old v8 can't work with null proto objects. -/* eslint-disable no-proto */ -var isObject = require('./_is-object'); -var anObject = require('./_an-object'); -var check = function (O, proto) { - anObject(O); - if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); -}; -module.exports = { - set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line - function (test, buggy, set) { - try { - set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2); - set(test, []); - buggy = !(test instanceof Array); - } catch (e) { buggy = true; } - return function setPrototypeOf(O, proto) { - check(O, proto); - if (buggy) O.__proto__ = proto; - else set(O, proto); - return O; - }; - }({}, false) : undefined), - check: check -}; diff --git a/js/lib/core-js/_set-species.js b/js/lib/core-js/_set-species.js deleted file mode 100644 index 2d505d2aa62..00000000000 --- a/js/lib/core-js/_set-species.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; -var global = require('./_global'); -var dP = require('./_object-dp'); -var DESCRIPTORS = require('./_descriptors'); -var SPECIES = require('./_wks')('species'); - -module.exports = function (KEY) { - var C = global[KEY]; - if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, { - configurable: true, - get: function () { return this; } - }); -}; diff --git a/js/lib/core-js/_species-constructor.js b/js/lib/core-js/_species-constructor.js deleted file mode 100644 index 0cb4ffb8fc8..00000000000 --- a/js/lib/core-js/_species-constructor.js +++ /dev/null @@ -1,9 +0,0 @@ -// 7.3.20 SpeciesConstructor(O, defaultConstructor) -var anObject = require('./_an-object'); -var aFunction = require('./_a-function'); -var SPECIES = require('./_wks')('species'); -module.exports = function (O, D) { - var C = anObject(O).constructor; - var S; - return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S); -}; diff --git a/js/lib/core-js/_string-at.js b/js/lib/core-js/_string-at.js deleted file mode 100644 index 88d66bd18eb..00000000000 --- a/js/lib/core-js/_string-at.js +++ /dev/null @@ -1,17 +0,0 @@ -var toInteger = require('./_to-integer'); -var defined = require('./_defined'); -// true -> String#at -// false -> String#codePointAt -module.exports = function (TO_STRING) { - return function (that, pos) { - var s = String(defined(that)); - var i = toInteger(pos); - var l = s.length; - var a, b; - if (i < 0 || i >= l) return TO_STRING ? '' : undefined; - a = s.charCodeAt(i); - return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff - ? TO_STRING ? s.charAt(i) : a - : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; - }; -}; diff --git a/js/lib/core-js/_string-pad.js b/js/lib/core-js/_string-pad.js deleted file mode 100644 index ceb6077f055..00000000000 --- a/js/lib/core-js/_string-pad.js +++ /dev/null @@ -1,16 +0,0 @@ -// https://github.com/tc39/proposal-string-pad-start-end -var toLength = require('./_to-length'); -var repeat = require('./_string-repeat'); -var defined = require('./_defined'); - -module.exports = function (that, maxLength, fillString, left) { - var S = String(defined(that)); - var stringLength = S.length; - var fillStr = fillString === undefined ? ' ' : String(fillString); - var intMaxLength = toLength(maxLength); - if (intMaxLength <= stringLength || fillStr == '') return S; - var fillLen = intMaxLength - stringLength; - var stringFiller = repeat.call(fillStr, Math.ceil(fillLen / fillStr.length)); - if (stringFiller.length > fillLen) stringFiller = stringFiller.slice(0, fillLen); - return left ? stringFiller + S : S + stringFiller; -}; diff --git a/js/lib/core-js/_string-repeat.js b/js/lib/core-js/_string-repeat.js deleted file mode 100644 index a69b9626b7d..00000000000 --- a/js/lib/core-js/_string-repeat.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; -var toInteger = require('./_to-integer'); -var defined = require('./_defined'); - -module.exports = function repeat(count) { - var str = String(defined(this)); - var res = ''; - var n = toInteger(count); - if (n < 0 || n == Infinity) throw RangeError("Count can't be negative"); - for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) res += str; - return res; -}; diff --git a/js/lib/core-js/_task.js b/js/lib/core-js/_task.js deleted file mode 100644 index 8777a6e28ba..00000000000 --- a/js/lib/core-js/_task.js +++ /dev/null @@ -1,84 +0,0 @@ -var ctx = require('./_ctx'); -var invoke = require('./_invoke'); -var html = require('./_html'); -var cel = require('./_dom-create'); -var global = require('./_global'); -var process = global.process; -var setTask = global.setImmediate; -var clearTask = global.clearImmediate; -var MessageChannel = global.MessageChannel; -var Dispatch = global.Dispatch; -var counter = 0; -var queue = {}; -var ONREADYSTATECHANGE = 'onreadystatechange'; -var defer, channel, port; -var run = function () { - var id = +this; - // eslint-disable-next-line no-prototype-builtins - if (queue.hasOwnProperty(id)) { - var fn = queue[id]; - delete queue[id]; - fn(); - } -}; -var listener = function (event) { - run.call(event.data); -}; -// Node.js 0.9+ & IE10+ has setImmediate, otherwise: -if (!setTask || !clearTask) { - setTask = function setImmediate(fn) { - var args = []; - var i = 1; - while (arguments.length > i) args.push(arguments[i++]); - queue[++counter] = function () { - // eslint-disable-next-line no-new-func - invoke(typeof fn == 'function' ? fn : Function(fn), args); - }; - defer(counter); - return counter; - }; - clearTask = function clearImmediate(id) { - delete queue[id]; - }; - // Node.js 0.8- - if (require('./_cof')(process) == 'process') { - defer = function (id) { - process.nextTick(ctx(run, id, 1)); - }; - // Sphere (JS game engine) Dispatch API - } else if (Dispatch && Dispatch.now) { - defer = function (id) { - Dispatch.now(ctx(run, id, 1)); - }; - // Browsers with MessageChannel, includes WebWorkers - } else if (MessageChannel) { - channel = new MessageChannel(); - port = channel.port2; - channel.port1.onmessage = listener; - defer = ctx(port.postMessage, port, 1); - // Browsers with postMessage, skip WebWorkers - // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' - } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) { - defer = function (id) { - global.postMessage(id + '', '*'); - }; - global.addEventListener('message', listener, false); - // IE8- - } else if (ONREADYSTATECHANGE in cel('script')) { - defer = function (id) { - html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () { - html.removeChild(this); - run.call(id); - }; - }; - // Rest old browsers - } else { - defer = function (id) { - setTimeout(ctx(run, id, 1), 0); - }; - } -} -module.exports = { - set: setTask, - clear: clearTask -}; diff --git a/js/lib/core-js/_validate-collection.js b/js/lib/core-js/_validate-collection.js deleted file mode 100644 index cec1ceff722..00000000000 --- a/js/lib/core-js/_validate-collection.js +++ /dev/null @@ -1,5 +0,0 @@ -var isObject = require('./_is-object'); -module.exports = function (it, TYPE) { - if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!'); - return it; -}; diff --git a/js/lib/core-js/_wks-define.js b/js/lib/core-js/_wks-define.js deleted file mode 100644 index 7284d6adaf5..00000000000 --- a/js/lib/core-js/_wks-define.js +++ /dev/null @@ -1,9 +0,0 @@ -var global = require('./_global'); -var core = require('./_core'); -var LIBRARY = require('./_library'); -var wksExt = require('./_wks-ext'); -var defineProperty = require('./_object-dp').f; -module.exports = function (name) { - var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); - if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); -}; diff --git a/js/lib/core-js/_wks-ext.js b/js/lib/core-js/_wks-ext.js deleted file mode 100644 index 13bd83b16a1..00000000000 --- a/js/lib/core-js/_wks-ext.js +++ /dev/null @@ -1 +0,0 @@ -exports.f = require('./_wks'); diff --git a/js/lib/core-js/es6.map.js b/js/lib/core-js/es6.map.js deleted file mode 100644 index a282f0222c7..00000000000 --- a/js/lib/core-js/es6.map.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict'; -var strong = require('./_collection-strong'); -var validate = require('./_validate-collection'); -var MAP = 'Map'; - -// 23.1 Map Objects -module.exports = require('./_collection')(MAP, function (get) { - return function Map() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; -}, { - // 23.1.3.6 Map.prototype.get(key) - get: function get(key) { - var entry = strong.getEntry(validate(this, MAP), key); - return entry && entry.v; - }, - // 23.1.3.9 Map.prototype.set(key, value) - set: function set(key, value) { - return strong.def(validate(this, MAP), key === 0 ? 0 : key, value); - } -}, strong, true); diff --git a/js/lib/core-js/es6.promise.js b/js/lib/core-js/es6.promise.js deleted file mode 100644 index 4315f6faaee..00000000000 --- a/js/lib/core-js/es6.promise.js +++ /dev/null @@ -1,280 +0,0 @@ -'use strict'; -var LIBRARY = require('./_library'); -var global = require('./_global'); -var ctx = require('./_ctx'); -var classof = require('./_classof'); -var $export = require('./_export'); -var isObject = require('./_is-object'); -var aFunction = require('./_a-function'); -var anInstance = require('./_an-instance'); -var forOf = require('./_for-of'); -var speciesConstructor = require('./_species-constructor'); -var task = require('./_task').set; -var microtask = require('./_microtask')(); -var newPromiseCapabilityModule = require('./_new-promise-capability'); -var perform = require('./_perform'); -var promiseResolve = require('./_promise-resolve'); -var PROMISE = 'Promise'; -var TypeError = global.TypeError; -var process = global.process; -var $Promise = global[PROMISE]; -var isNode = classof(process) == 'process'; -var empty = function () { /* empty */ }; -var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper; -var newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f; - -var USE_NATIVE = !!function () { - try { - // correct subclassing with @@species support - var promise = $Promise.resolve(1); - var FakePromise = (promise.constructor = {})[require('./_wks')('species')] = function (exec) { - exec(empty, empty); - }; - // unhandled rejections tracking support, NodeJS Promise without it fails @@species test - return (isNode || typeof PromiseRejectionEvent == 'function') && promise.then(empty) instanceof FakePromise; - } catch (e) { /* empty */ } -}(); - -// helpers -var isThenable = function (it) { - var then; - return isObject(it) && typeof (then = it.then) == 'function' ? then : false; -}; -var notify = function (promise, isReject) { - if (promise._n) return; - promise._n = true; - var chain = promise._c; - microtask(function () { - var value = promise._v; - var ok = promise._s == 1; - var i = 0; - var run = function (reaction) { - var handler = ok ? reaction.ok : reaction.fail; - var resolve = reaction.resolve; - var reject = reaction.reject; - var domain = reaction.domain; - var result, then; - try { - if (handler) { - if (!ok) { - if (promise._h == 2) onHandleUnhandled(promise); - promise._h = 1; - } - if (handler === true) result = value; - else { - if (domain) domain.enter(); - result = handler(value); - if (domain) domain.exit(); - } - if (result === reaction.promise) { - reject(TypeError('Promise-chain cycle')); - } else if (then = isThenable(result)) { - then.call(result, resolve, reject); - } else resolve(result); - } else reject(value); - } catch (e) { - reject(e); - } - }; - while (chain.length > i) run(chain[i++]); // variable length - can't use forEach - promise._c = []; - promise._n = false; - if (isReject && !promise._h) onUnhandled(promise); - }); -}; -var onUnhandled = function (promise) { - task.call(global, function () { - var value = promise._v; - var unhandled = isUnhandled(promise); - var result, handler, console; - if (unhandled) { - result = perform(function () { - if (isNode) { - process.emit('unhandledRejection', value, promise); - } else if (handler = global.onunhandledrejection) { - handler({ promise: promise, reason: value }); - } else if ((console = global.console) && console.error) { - console.error('Unhandled promise rejection', value); - } - }); - // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should - promise._h = isNode || isUnhandled(promise) ? 2 : 1; - } promise._a = undefined; - if (unhandled && result.e) throw result.v; - }); -}; -var isUnhandled = function (promise) { - if (promise._h == 1) return false; - var chain = promise._a || promise._c; - var i = 0; - var reaction; - while (chain.length > i) { - reaction = chain[i++]; - if (reaction.fail || !isUnhandled(reaction.promise)) return false; - } return true; -}; -var onHandleUnhandled = function (promise) { - task.call(global, function () { - var handler; - if (isNode) { - process.emit('rejectionHandled', promise); - } else if (handler = global.onrejectionhandled) { - handler({ promise: promise, reason: promise._v }); - } - }); -}; -var $reject = function (value) { - var promise = this; - if (promise._d) return; - promise._d = true; - promise = promise._w || promise; // unwrap - promise._v = value; - promise._s = 2; - if (!promise._a) promise._a = promise._c.slice(); - notify(promise, true); -}; -var $resolve = function (value) { - var promise = this; - var then; - if (promise._d) return; - promise._d = true; - promise = promise._w || promise; // unwrap - try { - if (promise === value) throw TypeError("Promise can't be resolved itself"); - if (then = isThenable(value)) { - microtask(function () { - var wrapper = { _w: promise, _d: false }; // wrap - try { - then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1)); - } catch (e) { - $reject.call(wrapper, e); - } - }); - } else { - promise._v = value; - promise._s = 1; - notify(promise, false); - } - } catch (e) { - $reject.call({ _w: promise, _d: false }, e); // wrap - } -}; - -// constructor polyfill -if (!USE_NATIVE) { - // 25.4.3.1 Promise(executor) - $Promise = function Promise(executor) { - anInstance(this, $Promise, PROMISE, '_h'); - aFunction(executor); - Internal.call(this); - try { - executor(ctx($resolve, this, 1), ctx($reject, this, 1)); - } catch (err) { - $reject.call(this, err); - } - }; - // eslint-disable-next-line no-unused-vars - Internal = function Promise(executor) { - this._c = []; // <- awaiting reactions - this._a = undefined; // <- checked in isUnhandled reactions - this._s = 0; // <- state - this._d = false; // <- done - this._v = undefined; // <- value - this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled - this._n = false; // <- notify - }; - Internal.prototype = require('./_redefine-all')($Promise.prototype, { - // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected) - then: function then(onFulfilled, onRejected) { - var reaction = newPromiseCapability(speciesConstructor(this, $Promise)); - reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true; - reaction.fail = typeof onRejected == 'function' && onRejected; - reaction.domain = isNode ? process.domain : undefined; - this._c.push(reaction); - if (this._a) this._a.push(reaction); - if (this._s) notify(this, false); - return reaction.promise; - }, - // 25.4.5.1 Promise.prototype.catch(onRejected) - 'catch': function (onRejected) { - return this.then(undefined, onRejected); - } - }); - OwnPromiseCapability = function () { - var promise = new Internal(); - this.promise = promise; - this.resolve = ctx($resolve, promise, 1); - this.reject = ctx($reject, promise, 1); - }; - newPromiseCapabilityModule.f = newPromiseCapability = function (C) { - return C === $Promise || C === Wrapper - ? new OwnPromiseCapability(C) - : newGenericPromiseCapability(C); - }; -} - -$export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise }); -require('./_set-to-string-tag')($Promise, PROMISE); -require('./_set-species')(PROMISE); -Wrapper = require('./_core')[PROMISE]; - -// statics -$export($export.S + $export.F * !USE_NATIVE, PROMISE, { - // 25.4.4.5 Promise.reject(r) - reject: function reject(r) { - var capability = newPromiseCapability(this); - var $$reject = capability.reject; - $$reject(r); - return capability.promise; - } -}); -$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, { - // 25.4.4.6 Promise.resolve(x) - resolve: function resolve(x) { - return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x); - } -}); -$export($export.S + $export.F * !(USE_NATIVE && require('./_iter-detect')(function (iter) { - $Promise.all(iter)['catch'](empty); -})), PROMISE, { - // 25.4.4.1 Promise.all(iterable) - all: function all(iterable) { - var C = this; - var capability = newPromiseCapability(C); - var resolve = capability.resolve; - var reject = capability.reject; - var result = perform(function () { - var values = []; - var index = 0; - var remaining = 1; - forOf(iterable, false, function (promise) { - var $index = index++; - var alreadyCalled = false; - values.push(undefined); - remaining++; - C.resolve(promise).then(function (value) { - if (alreadyCalled) return; - alreadyCalled = true; - values[$index] = value; - --remaining || resolve(values); - }, reject); - }); - --remaining || resolve(values); - }); - if (result.e) reject(result.v); - return capability.promise; - }, - // 25.4.4.4 Promise.race(iterable) - race: function race(iterable) { - var C = this; - var capability = newPromiseCapability(C); - var reject = capability.reject; - var result = perform(function () { - forOf(iterable, false, function (promise) { - C.resolve(promise).then(capability.resolve, reject); - }); - }); - if (result.e) reject(result.v); - return capability.promise; - } -}); diff --git a/js/lib/core-js/es6.set.js b/js/lib/core-js/es6.set.js deleted file mode 100644 index 55b8bdd89b6..00000000000 --- a/js/lib/core-js/es6.set.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; -var strong = require('./_collection-strong'); -var validate = require('./_validate-collection'); -var SET = 'Set'; - -// 23.2 Set Objects -module.exports = require('./_collection')(SET, function (get) { - return function Set() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; -}, { - // 23.2.3.1 Set.prototype.add(value) - add: function add(value) { - return strong.def(validate(this, SET), value = value === 0 ? 0 : value, value); - } -}, strong); diff --git a/js/lib/core-js/es6.weak-map.js b/js/lib/core-js/es6.weak-map.js deleted file mode 100644 index f21556d7c96..00000000000 --- a/js/lib/core-js/es6.weak-map.js +++ /dev/null @@ -1,59 +0,0 @@ -'use strict'; -var each = require('./_array-methods')(0); -var redefine = require('./_redefine'); -var meta = require('./_meta'); -var assign = require('./_object-assign'); -var weak = require('./_collection-weak'); -var isObject = require('./_is-object'); -var fails = require('./_fails'); -var validate = require('./_validate-collection'); -var WEAK_MAP = 'WeakMap'; -var getWeak = meta.getWeak; -var isExtensible = Object.isExtensible; -var uncaughtFrozenStore = weak.ufstore; -var tmp = {}; -var InternalMap; - -var wrapper = function (get) { - return function WeakMap() { - return get(this, arguments.length > 0 ? arguments[0] : undefined); - }; -}; - -var methods = { - // 23.3.3.3 WeakMap.prototype.get(key) - get: function get(key) { - if (isObject(key)) { - var data = getWeak(key); - if (data === true) return uncaughtFrozenStore(validate(this, WEAK_MAP)).get(key); - return data ? data[this._i] : undefined; - } - }, - // 23.3.3.5 WeakMap.prototype.set(key, value) - set: function set(key, value) { - return weak.def(validate(this, WEAK_MAP), key, value); - } -}; - -// 23.3 WeakMap Objects -var $WeakMap = module.exports = require('./_collection')(WEAK_MAP, wrapper, methods, weak, true, true); - -// IE11 WeakMap frozen keys fix -if (fails(function () { return new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7; })) { - InternalMap = weak.getConstructor(wrapper, WEAK_MAP); - assign(InternalMap.prototype, methods); - meta.NEED = true; - each(['delete', 'has', 'get', 'set'], function (key) { - var proto = $WeakMap.prototype; - var method = proto[key]; - redefine(proto, key, function (a, b) { - // store frozen objects on internal weakmap shim - if (isObject(a) && !isExtensible(a)) { - if (!this._f) this._f = new InternalMap(); - var result = this._f[key](a, b); - return key == 'set' ? this : result; - // store all the rest on native weakmap - } return method.call(this, a, b); - }); - }); -} diff --git a/js/lib/core-js/es7.asap.js b/js/lib/core-js/es7.asap.js deleted file mode 100644 index d36f7c76087..00000000000 --- a/js/lib/core-js/es7.asap.js +++ /dev/null @@ -1,12 +0,0 @@ -// https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-09/sept-25.md#510-globalasap-for-enqueuing-a-microtask -var $export = require('./_export'); -var microtask = require('./_microtask')(); -var process = require('./_global').process; -var isNode = require('./_cof')(process) == 'process'; - -$export($export.G, { - asap: function asap(fn) { - var domain = isNode && process.domain; - microtask(domain ? domain.bind(fn) : fn); - } -}); diff --git a/js/lib/core-js/es7.error.is-error.js b/js/lib/core-js/es7.error.is-error.js deleted file mode 100644 index ba94f5d1374..00000000000 --- a/js/lib/core-js/es7.error.is-error.js +++ /dev/null @@ -1,9 +0,0 @@ -// https://github.com/ljharb/proposal-is-error -var $export = require('./_export'); -var cof = require('./_cof'); - -$export($export.S, 'Error', { - isError: function isError(it) { - return cof(it) === 'Error'; - } -}); diff --git a/js/lib/core-js/es7.global.js b/js/lib/core-js/es7.global.js deleted file mode 100644 index a315fd43002..00000000000 --- a/js/lib/core-js/es7.global.js +++ /dev/null @@ -1,4 +0,0 @@ -// https://github.com/tc39/proposal-global -var $export = require('./_export'); - -$export($export.G, { global: require('./_global') }); diff --git a/js/lib/core-js/es7.map.from.js b/js/lib/core-js/es7.map.from.js deleted file mode 100644 index a60573704e6..00000000000 --- a/js/lib/core-js/es7.map.from.js +++ /dev/null @@ -1,2 +0,0 @@ -// https://tc39.github.io/proposal-setmap-offrom/#sec-map.from -require('./_set-collection-from')('Map'); diff --git a/js/lib/core-js/es7.map.of.js b/js/lib/core-js/es7.map.of.js deleted file mode 100644 index a2bf1fef707..00000000000 --- a/js/lib/core-js/es7.map.of.js +++ /dev/null @@ -1,2 +0,0 @@ -// https://tc39.github.io/proposal-setmap-offrom/#sec-map.of -require('./_set-collection-of')('Map'); diff --git a/js/lib/core-js/es7.map.to-json.js b/js/lib/core-js/es7.map.to-json.js deleted file mode 100644 index 95a3569fa42..00000000000 --- a/js/lib/core-js/es7.map.to-json.js +++ /dev/null @@ -1,4 +0,0 @@ -// https://github.com/DavidBruant/Map-Set.prototype.toJSON -var $export = require('./_export'); - -$export($export.P + $export.R, 'Map', { toJSON: require('./_collection-to-json')('Map') }); diff --git a/js/lib/core-js/es7.observable.js b/js/lib/core-js/es7.observable.js deleted file mode 100644 index 7bab53d0846..00000000000 --- a/js/lib/core-js/es7.observable.js +++ /dev/null @@ -1,199 +0,0 @@ -'use strict'; -// https://github.com/zenparsing/es-observable -var $export = require('./_export'); -var global = require('./_global'); -var core = require('./_core'); -var microtask = require('./_microtask')(); -var OBSERVABLE = require('./_wks')('observable'); -var aFunction = require('./_a-function'); -var anObject = require('./_an-object'); -var anInstance = require('./_an-instance'); -var redefineAll = require('./_redefine-all'); -var hide = require('./_hide'); -var forOf = require('./_for-of'); -var RETURN = forOf.RETURN; - -var getMethod = function (fn) { - return fn == null ? undefined : aFunction(fn); -}; - -var cleanupSubscription = function (subscription) { - var cleanup = subscription._c; - if (cleanup) { - subscription._c = undefined; - cleanup(); - } -}; - -var subscriptionClosed = function (subscription) { - return subscription._o === undefined; -}; - -var closeSubscription = function (subscription) { - if (!subscriptionClosed(subscription)) { - subscription._o = undefined; - cleanupSubscription(subscription); - } -}; - -var Subscription = function (observer, subscriber) { - anObject(observer); - this._c = undefined; - this._o = observer; - observer = new SubscriptionObserver(this); - try { - var cleanup = subscriber(observer); - var subscription = cleanup; - if (cleanup != null) { - if (typeof cleanup.unsubscribe === 'function') cleanup = function () { subscription.unsubscribe(); }; - else aFunction(cleanup); - this._c = cleanup; - } - } catch (e) { - observer.error(e); - return; - } if (subscriptionClosed(this)) cleanupSubscription(this); -}; - -Subscription.prototype = redefineAll({}, { - unsubscribe: function unsubscribe() { closeSubscription(this); } -}); - -var SubscriptionObserver = function (subscription) { - this._s = subscription; -}; - -SubscriptionObserver.prototype = redefineAll({}, { - next: function next(value) { - var subscription = this._s; - if (!subscriptionClosed(subscription)) { - var observer = subscription._o; - try { - var m = getMethod(observer.next); - if (m) return m.call(observer, value); - } catch (e) { - try { - closeSubscription(subscription); - } finally { - throw e; - } - } - } - }, - error: function error(value) { - var subscription = this._s; - if (subscriptionClosed(subscription)) throw value; - var observer = subscription._o; - subscription._o = undefined; - try { - var m = getMethod(observer.error); - if (!m) throw value; - value = m.call(observer, value); - } catch (e) { - try { - cleanupSubscription(subscription); - } finally { - throw e; - } - } cleanupSubscription(subscription); - return value; - }, - complete: function complete(value) { - var subscription = this._s; - if (!subscriptionClosed(subscription)) { - var observer = subscription._o; - subscription._o = undefined; - try { - var m = getMethod(observer.complete); - value = m ? m.call(observer, value) : undefined; - } catch (e) { - try { - cleanupSubscription(subscription); - } finally { - throw e; - } - } cleanupSubscription(subscription); - return value; - } - } -}); - -var $Observable = function Observable(subscriber) { - anInstance(this, $Observable, 'Observable', '_f')._f = aFunction(subscriber); -}; - -redefineAll($Observable.prototype, { - subscribe: function subscribe(observer) { - return new Subscription(observer, this._f); - }, - forEach: function forEach(fn) { - var that = this; - return new (core.Promise || global.Promise)(function (resolve, reject) { - aFunction(fn); - var subscription = that.subscribe({ - next: function (value) { - try { - return fn(value); - } catch (e) { - reject(e); - subscription.unsubscribe(); - } - }, - error: reject, - complete: resolve - }); - }); - } -}); - -redefineAll($Observable, { - from: function from(x) { - var C = typeof this === 'function' ? this : $Observable; - var method = getMethod(anObject(x)[OBSERVABLE]); - if (method) { - var observable = anObject(method.call(x)); - return observable.constructor === C ? observable : new C(function (observer) { - return observable.subscribe(observer); - }); - } - return new C(function (observer) { - var done = false; - microtask(function () { - if (!done) { - try { - if (forOf(x, false, function (it) { - observer.next(it); - if (done) return RETURN; - }) === RETURN) return; - } catch (e) { - if (done) throw e; - observer.error(e); - return; - } observer.complete(); - } - }); - return function () { done = true; }; - }); - }, - of: function of() { - for (var i = 0, l = arguments.length, items = Array(l); i < l;) items[i] = arguments[i++]; - return new (typeof this === 'function' ? this : $Observable)(function (observer) { - var done = false; - microtask(function () { - if (!done) { - for (var j = 0; j < items.length; ++j) { - observer.next(items[j]); - if (done) return; - } observer.complete(); - } - }); - return function () { done = true; }; - }); - } -}); - -hide($Observable.prototype, OBSERVABLE, function () { return this; }); - -$export($export.G, { Observable: $Observable }); - -require('./_set-species')('Observable'); diff --git a/js/lib/core-js/es7.promise.finally.js b/js/lib/core-js/es7.promise.finally.js deleted file mode 100644 index fa04b63998f..00000000000 --- a/js/lib/core-js/es7.promise.finally.js +++ /dev/null @@ -1,20 +0,0 @@ -// https://github.com/tc39/proposal-promise-finally -'use strict'; -var $export = require('./_export'); -var core = require('./_core'); -var global = require('./_global'); -var speciesConstructor = require('./_species-constructor'); -var promiseResolve = require('./_promise-resolve'); - -$export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) { - var C = speciesConstructor(this, core.Promise || global.Promise); - var isFunction = typeof onFinally == 'function'; - return this.then( - isFunction ? function (x) { - return promiseResolve(C, onFinally()).then(function () { return x; }); - } : onFinally, - isFunction ? function (e) { - return promiseResolve(C, onFinally()).then(function () { throw e; }); - } : onFinally - ); -} }); diff --git a/js/lib/core-js/es7.promise.try.js b/js/lib/core-js/es7.promise.try.js deleted file mode 100644 index e8163720b67..00000000000 --- a/js/lib/core-js/es7.promise.try.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; -// https://github.com/tc39/proposal-promise-try -var $export = require('./_export'); -var newPromiseCapability = require('./_new-promise-capability'); -var perform = require('./_perform'); - -$export($export.S, 'Promise', { 'try': function (callbackfn) { - var promiseCapability = newPromiseCapability.f(this); - var result = perform(callbackfn); - (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v); - return promiseCapability.promise; -} }); diff --git a/js/lib/core-js/es7.set.from.js b/js/lib/core-js/es7.set.from.js deleted file mode 100644 index 26542b6644f..00000000000 --- a/js/lib/core-js/es7.set.from.js +++ /dev/null @@ -1,2 +0,0 @@ -// https://tc39.github.io/proposal-setmap-offrom/#sec-set.from -require('./_set-collection-from')('Set'); diff --git a/js/lib/core-js/es7.set.of.js b/js/lib/core-js/es7.set.of.js deleted file mode 100644 index 2a50ad911a8..00000000000 --- a/js/lib/core-js/es7.set.of.js +++ /dev/null @@ -1,2 +0,0 @@ -// https://tc39.github.io/proposal-setmap-offrom/#sec-set.of -require('./_set-collection-of')('Set'); diff --git a/js/lib/core-js/es7.set.to-json.js b/js/lib/core-js/es7.set.to-json.js deleted file mode 100644 index 95cbcfa51b5..00000000000 --- a/js/lib/core-js/es7.set.to-json.js +++ /dev/null @@ -1,4 +0,0 @@ -// https://github.com/DavidBruant/Map-Set.prototype.toJSON -var $export = require('./_export'); - -$export($export.P + $export.R, 'Set', { toJSON: require('./_collection-to-json')('Set') }); diff --git a/js/lib/core-js/es7.string.at.js b/js/lib/core-js/es7.string.at.js deleted file mode 100644 index 8b3ab98db42..00000000000 --- a/js/lib/core-js/es7.string.at.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; -// https://github.com/mathiasbynens/String.prototype.at -var $export = require('./_export'); -var $at = require('./_string-at')(true); - -$export($export.P, 'String', { - at: function at(pos) { - return $at(this, pos); - } -}); diff --git a/js/lib/core-js/es7.string.pad-end.js b/js/lib/core-js/es7.string.pad-end.js deleted file mode 100644 index b8ed042f9be..00000000000 --- a/js/lib/core-js/es7.string.pad-end.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; -// https://github.com/tc39/proposal-string-pad-start-end -var $export = require('./_export'); -var $pad = require('./_string-pad'); - -$export($export.P, 'String', { - padEnd: function padEnd(maxLength /* , fillString = ' ' */) { - return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, false); - } -}); diff --git a/js/lib/core-js/es7.string.pad-start.js b/js/lib/core-js/es7.string.pad-start.js deleted file mode 100644 index 3173d469043..00000000000 --- a/js/lib/core-js/es7.string.pad-start.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; -// https://github.com/tc39/proposal-string-pad-start-end -var $export = require('./_export'); -var $pad = require('./_string-pad'); - -$export($export.P, 'String', { - padStart: function padStart(maxLength /* , fillString = ' ' */) { - return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, true); - } -}); diff --git a/js/lib/core-js/es7.symbol.async-iterator.js b/js/lib/core-js/es7.symbol.async-iterator.js deleted file mode 100644 index f56dc2a8eb7..00000000000 --- a/js/lib/core-js/es7.symbol.async-iterator.js +++ /dev/null @@ -1 +0,0 @@ -require('./_wks-define')('asyncIterator'); diff --git a/js/lib/core-js/es7.symbol.observable.js b/js/lib/core-js/es7.symbol.observable.js deleted file mode 100644 index fc9a23761a4..00000000000 --- a/js/lib/core-js/es7.symbol.observable.js +++ /dev/null @@ -1 +0,0 @@ -require('./_wks-define')('observable'); diff --git a/js/lib/core-js/es7.system.global.js b/js/lib/core-js/es7.system.global.js deleted file mode 100644 index 310a802ada3..00000000000 --- a/js/lib/core-js/es7.system.global.js +++ /dev/null @@ -1,4 +0,0 @@ -// https://github.com/tc39/proposal-global -var $export = require('./_export'); - -$export($export.S, 'System', { global: require('./_global') }); diff --git a/js/lib/core-js/es7.weak-map.from.js b/js/lib/core-js/es7.weak-map.from.js deleted file mode 100644 index 1a013657613..00000000000 --- a/js/lib/core-js/es7.weak-map.from.js +++ /dev/null @@ -1,2 +0,0 @@ -// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from -require('./_set-collection-from')('WeakMap'); diff --git a/js/lib/core-js/es7.weak-map.of.js b/js/lib/core-js/es7.weak-map.of.js deleted file mode 100644 index 52c3f66dfce..00000000000 --- a/js/lib/core-js/es7.weak-map.of.js +++ /dev/null @@ -1,2 +0,0 @@ -// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of -require('./_set-collection-of')('WeakMap'); diff --git a/js/lib/core-js/es7.weak-set.from.js b/js/lib/core-js/es7.weak-set.from.js deleted file mode 100644 index 493e5bee032..00000000000 --- a/js/lib/core-js/es7.weak-set.from.js +++ /dev/null @@ -1,2 +0,0 @@ -// https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.from -require('./_set-collection-from')('WeakSet'); diff --git a/js/lib/core-js/es7.weak-set.of.js b/js/lib/core-js/es7.weak-set.of.js deleted file mode 100644 index 5941e72aab9..00000000000 --- a/js/lib/core-js/es7.weak-set.of.js +++ /dev/null @@ -1,2 +0,0 @@ -// https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.of -require('./_set-collection-of')('WeakSet'); diff --git a/js/lib/lib.go b/js/lib/lib.go index 658fbd287b2..48e01d0206f 100644 --- a/js/lib/lib.go +++ b/js/lib/lib.go @@ -38,39 +38,22 @@ func init() { var list = []string{ "_add-to-unscopables.js", "_a-function.js", - "_an-instance.js", "_an-object.js", "_array-from-iterable.js", "_array-includes.js", - "_array-methods.js", "_array-species-constructor.js", "_array-species-create.js", "_classof.js", "_cof.js", - "_collection.js", - "_collection-strong.js", - "_collection-to-json.js", - "_collection-weak.js", "core.get-iterator-method.js", "_core.js", "_create-property.js", "_ctx.js", "_defined.js", "_descriptors.js", - "_dom-create.js", "_enum-bug-keys.js", - "es6.map.js", - "es6.promise.js", - "es6.set.js", - "es6.weak-map.js", "es7.array.flat-map.js", "es7.array.flatten.js", - "es7.asap.js", - "es7.error.is-error.js", - "es7.global.js", - "es7.map.from.js", - "es7.map.of.js", - "es7.map.to-json.js", "es7.object.define-getter.js", "es7.object.define-setter.js", "es7.object.entries.js", @@ -78,9 +61,6 @@ func init() { "es7.object.lookup-getter.js", "es7.object.lookup-setter.js", "es7.object.values.js", - "es7.observable.js", - "es7.promise.finally.js", - "es7.promise.try.js", "es7.reflect.define-metadata.js", "es7.reflect.delete-metadata.js", "es7.reflect.get-metadata.js", @@ -90,22 +70,9 @@ func init() { "es7.reflect.has-metadata.js", "es7.reflect.has-own-metadata.js", "es7.reflect.metadata.js", - "es7.set.from.js", - "es7.set.of.js", - "es7.set.to-json.js", - "es7.string.at.js", "es7.string.match-all.js", - "es7.string.pad-end.js", - "es7.string.pad-start.js", "es7.string.trim-left.js", "es7.string.trim-right.js", - "es7.symbol.async-iterator.js", - "es7.symbol.observable.js", - "es7.system.global.js", - "es7.weak-map.from.js", - "es7.weak-map.of.js", - "es7.weak-set.from.js", - "es7.weak-set.of.js", "_export.js", "_fails.js", "_flags.js", @@ -114,10 +81,7 @@ func init() { "_global.js", "_has.js", "_hide.js", - "_html.js", "_ie8-dom-define.js", - "_inherit-if-required.js", - "_invoke.js", "_iobject.js", "_is-array-iter.js", "_is-array.js", @@ -126,15 +90,8 @@ func init() { "_iterators.js", "_iter-call.js", "_iter-create.js", - "_iter-define.js", - "_iter-detect.js", - "_iter-step.js", "_library.js", "_metadata.js", - "_meta.js", - "_microtask.js", - "_new-promise-capability.js", - "_object-assign.js", "_object-create.js", "_object-dp.js", "_object-dps.js", @@ -148,25 +105,13 @@ func init() { "_object-pie.js", "_object-to-array.js", "_own-keys.js", - "_perform.js", - "_promise-resolve.js", "_property-desc.js", - "_redefine-all.js", "_redefine.js", - "_set-collection-from.js", - "_set-collection-of.js", - "_set-proto.js", - "_set-species.js", "_set-to-string-tag.js", "_shared.js", "_shared-key.js", - "_species-constructor.js", - "_string-at.js", - "_string-pad.js", - "_string-repeat.js", "_string-trim.js", "_string-ws.js", - "_task.js", "_to-absolute-index.js", "_to-integer.js", "_to-iobject.js", @@ -174,9 +119,6 @@ func init() { "_to-object.js", "_to-primitive.js", "_uid.js", - "_validate-collection.js", - "_wks-define.js", - "_wks-ext.js", "_wks.js", } compiled = make(map[string]*goja.Program, len(list)) @@ -198,6 +140,15 @@ func AddPolyfills(rt *goja.Runtime) error { // Cache of loaded programs and files. modules := make(map[string]*goja.Object) rt.Set("require", func(str string) (goja.Value, error) { + switch str { + case "./es6.set": + return rt.RunScript("es6.set.js", "Set") + case "./es6.map": + return rt.RunScript("es6.map.js", "Map") + + case "./es6.weak-map": + return rt.RunScript("es6.weak-map.js", "WeakMap") + } // fmt.Println(str) filename := path.Join(pwd, str) + ".js" @@ -234,17 +185,17 @@ func AddPolyfills(rt *goja.Runtime) error { }() _, err := rt.RunScript("core-js.shim.js", ` -require('es6.promise'); +// require('es6.promise'); // async require('es7.array.flat-map'); -require('es7.array.flatten'); -require('es7.string.at'); -require('es7.string.pad-start'); -require('es7.string.pad-end'); -require('es7.string.trim-left'); -require('es7.string.trim-right'); +require('es7.array.flatten'); // this is now called flat, so maybe drop it +// require('es7.string.at'); // it is in es2020 but is with completely different semantics +//require('es7.string.pad-start'); // in goja +// require('es7.string.pad-end'); // in goja +require('es7.string.trim-left'); // this can probably be very easily added ... it is basically alias for trimStart +require('es7.string.trim-right'); // same as above require('es7.string.match-all'); -require('es7.symbol.async-iterator'); -require('es7.symbol.observable'); +// require('es7.symbol.async-iterator'); // async +// require('es7.symbol.observable'); // async require('es7.object.get-own-property-descriptors'); require('es7.object.values'); require('es7.object.entries'); @@ -252,21 +203,21 @@ require('es7.object.define-getter'); require('es7.object.define-setter'); require('es7.object.lookup-getter'); require('es7.object.lookup-setter'); -require('es7.map.to-json'); -require('es7.set.to-json'); -require('es7.map.of'); -require('es7.set.of'); -require('es7.weak-map.of'); -require('es7.weak-set.of'); -require('es7.map.from'); -require('es7.set.from'); -require('es7.weak-map.from'); -require('es7.weak-set.from'); -require('es7.global'); -require('es7.system.global'); -require('es7.error.is-error'); -require('es7.promise.finally'); -require('es7.promise.try'); +// require('es7.map.to-json'); // All of this are dropped +// require('es7.set.to-json'); +// require('es7.map.of'); +// require('es7.set.of'); +// require('es7.weak-map.of'); +// require('es7.weak-set.of'); +// require('es7.map.from'); +// require('es7.set.from'); +// require('es7.weak-map.from'); +// require('es7.weak-set.from'); +// require('es7.global'); // is now globalThis, goja has globasl +// require('es7.system.global'); // dropped .. I think +// require('es7.error.is-error'); // dropped +// require('es7.promise.finally'); // async +// require('es7.promise.try'); // async require('es7.reflect.define-metadata'); require('es7.reflect.delete-metadata'); require('es7.reflect.get-metadata'); @@ -276,8 +227,8 @@ require('es7.reflect.get-own-metadata-keys'); require('es7.reflect.has-metadata'); require('es7.reflect.has-own-metadata'); require('es7.reflect.metadata'); -require('es7.asap'); -require('es7.observable'); +// require('es7.asap'); // async +// require('es7.observable'); // async `) if err != nil { return err @@ -287,14 +238,14 @@ require('es7.observable'); var notNeeded []string rice.MustFindBox("core-js").Walk("", func(path string, info os.FileInfo, err error) error { if !info.IsDir() { - if _, ok := programs[path]; !ok { + if _, ok := modules[path]; !ok { notNeeded = append(notNeeded, path) } } return nil }) fmt.Println(notNeeded) - */ + //*/ return nil } diff --git a/js/lib/rice-box.go b/js/lib/rice-box.go index 5150b2e1c2e..a38dc5fa9b4 100644 --- a/js/lib/rice-box.go +++ b/js/lib/rice-box.go @@ -12,1004 +12,598 @@ func init() { // define files file2 := &embedded.EmbeddedFile{ Filename: "_a-function.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n"), } file3 := &embedded.EmbeddedFile{ Filename: "_add-to-unscopables.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("// 22.1.3.31 Array.prototype[@@unscopables]\nvar UNSCOPABLES = require('./_wks')('unscopables');\nvar ArrayProto = Array.prototype;\nif (ArrayProto[UNSCOPABLES] == undefined) require('./_hide')(ArrayProto, UNSCOPABLES, {});\nmodule.exports = function (key) {\n ArrayProto[UNSCOPABLES][key] = true;\n};\n"), } file4 := &embedded.EmbeddedFile{ - Filename: "_an-instance.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("module.exports = function (it, Constructor, name, forbiddenField) {\n if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {\n throw TypeError(name + ': incorrect invocation!');\n } return it;\n};\n"), - } - file5 := &embedded.EmbeddedFile{ Filename: "_an-object.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n"), } - file6 := &embedded.EmbeddedFile{ + file5 := &embedded.EmbeddedFile{ Filename: "_array-from-iterable.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var forOf = require('./_for-of');\n\nmodule.exports = function (iter, ITERATOR) {\n var result = [];\n forOf(iter, false, result.push, result, ITERATOR);\n return result;\n};\n"), } - file7 := &embedded.EmbeddedFile{ + file6 := &embedded.EmbeddedFile{ Filename: "_array-includes.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n"), } - file8 := &embedded.EmbeddedFile{ - Filename: "_array-methods.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx = require('./_ctx');\nvar IObject = require('./_iobject');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar asc = require('./_array-species-create');\nmodule.exports = function (TYPE, $create) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n var create = $create || asc;\n return function ($this, callbackfn, that) {\n var O = toObject($this);\n var self = IObject(O);\n var f = ctx(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var val, res;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n val = self[index];\n res = f(val, index, O);\n if (TYPE) {\n if (IS_MAP) result[index] = res; // map\n else if (res) switch (TYPE) {\n case 3: return true; // some\n case 5: return val; // find\n case 6: return index; // findIndex\n case 2: result.push(val); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;\n };\n};\n"), - } - file9 := &embedded.EmbeddedFile{ + file7 := &embedded.EmbeddedFile{ Filename: "_array-species-constructor.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var isObject = require('./_is-object');\nvar isArray = require('./_is-array');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (original) {\n var C;\n if (isArray(original)) {\n C = original.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? Array : C;\n};\n"), } - filea := &embedded.EmbeddedFile{ + file8 := &embedded.EmbeddedFile{ Filename: "_array-species-create.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar speciesConstructor = require('./_array-species-constructor');\n\nmodule.exports = function (original, length) {\n return new (speciesConstructor(original))(length);\n};\n"), } - fileb := &embedded.EmbeddedFile{ + file9 := &embedded.EmbeddedFile{ Filename: "_classof.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = require('./_cof');\nvar TAG = require('./_wks')('toStringTag');\n// ES3 wrong here\nvar ARG = cof(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (e) { /* empty */ }\n};\n\nmodule.exports = function (it) {\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n"), } - filec := &embedded.EmbeddedFile{ + filea := &embedded.EmbeddedFile{ Filename: "_cof.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n"), } - filed := &embedded.EmbeddedFile{ - Filename: "_collection-strong.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("'use strict';\nvar dP = require('./_object-dp').f;\nvar create = require('./_object-create');\nvar redefineAll = require('./_redefine-all');\nvar ctx = require('./_ctx');\nvar anInstance = require('./_an-instance');\nvar forOf = require('./_for-of');\nvar $iterDefine = require('./_iter-define');\nvar step = require('./_iter-step');\nvar setSpecies = require('./_set-species');\nvar DESCRIPTORS = require('./_descriptors');\nvar fastKey = require('./_meta').fastKey;\nvar validate = require('./_validate-collection');\nvar SIZE = DESCRIPTORS ? '_s' : 'size';\n\nvar getEntry = function (that, key) {\n // fast case\n var index = fastKey(key);\n var entry;\n if (index !== 'F') return that._i[index];\n // frozen object case\n for (entry = that._f; entry; entry = entry.n) {\n if (entry.k == key) return entry;\n }\n};\n\nmodule.exports = {\n getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {\n var C = wrapper(function (that, iterable) {\n anInstance(that, C, NAME, '_i');\n that._t = NAME; // collection type\n that._i = create(null); // index\n that._f = undefined; // first entry\n that._l = undefined; // last entry\n that[SIZE] = 0; // size\n if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);\n });\n redefineAll(C.prototype, {\n // 23.1.3.1 Map.prototype.clear()\n // 23.2.3.2 Set.prototype.clear()\n clear: function clear() {\n for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) {\n entry.r = true;\n if (entry.p) entry.p = entry.p.n = undefined;\n delete data[entry.i];\n }\n that._f = that._l = undefined;\n that[SIZE] = 0;\n },\n // 23.1.3.3 Map.prototype.delete(key)\n // 23.2.3.4 Set.prototype.delete(value)\n 'delete': function (key) {\n var that = validate(this, NAME);\n var entry = getEntry(that, key);\n if (entry) {\n var next = entry.n;\n var prev = entry.p;\n delete that._i[entry.i];\n entry.r = true;\n if (prev) prev.n = next;\n if (next) next.p = prev;\n if (that._f == entry) that._f = next;\n if (that._l == entry) that._l = prev;\n that[SIZE]--;\n } return !!entry;\n },\n // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)\n // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)\n forEach: function forEach(callbackfn /* , that = undefined */) {\n validate(this, NAME);\n var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);\n var entry;\n while (entry = entry ? entry.n : this._f) {\n f(entry.v, entry.k, this);\n // revert to the last existing entry\n while (entry && entry.r) entry = entry.p;\n }\n },\n // 23.1.3.7 Map.prototype.has(key)\n // 23.2.3.7 Set.prototype.has(value)\n has: function has(key) {\n return !!getEntry(validate(this, NAME), key);\n }\n });\n if (DESCRIPTORS) dP(C.prototype, 'size', {\n get: function () {\n return validate(this, NAME)[SIZE];\n }\n });\n return C;\n },\n def: function (that, key, value) {\n var entry = getEntry(that, key);\n var prev, index;\n // change existing entry\n if (entry) {\n entry.v = value;\n // create new entry\n } else {\n that._l = entry = {\n i: index = fastKey(key, true), // <- index\n k: key, // <- key\n v: value, // <- value\n p: prev = that._l, // <- previous entry\n n: undefined, // <- next entry\n r: false // <- removed\n };\n if (!that._f) that._f = entry;\n if (prev) prev.n = entry;\n that[SIZE]++;\n // add to index\n if (index !== 'F') that._i[index] = entry;\n } return that;\n },\n getEntry: getEntry,\n setStrong: function (C, NAME, IS_MAP) {\n // add .keys, .values, .entries, [@@iterator]\n // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11\n $iterDefine(C, NAME, function (iterated, kind) {\n this._t = validate(iterated, NAME); // target\n this._k = kind; // kind\n this._l = undefined; // previous\n }, function () {\n var that = this;\n var kind = that._k;\n var entry = that._l;\n // revert to the last existing entry\n while (entry && entry.r) entry = entry.p;\n // get next entry\n if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) {\n // or finish the iteration\n that._t = undefined;\n return step(1);\n }\n // return step by kind\n if (kind == 'keys') return step(0, entry.k);\n if (kind == 'values') return step(0, entry.v);\n return step(0, [entry.k, entry.v]);\n }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n\n // add [@@species], 23.1.2.2, 23.2.2.2\n setSpecies(NAME);\n }\n};\n"), - } - filee := &embedded.EmbeddedFile{ - Filename: "_collection-to-json.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar classof = require('./_classof');\nvar from = require('./_array-from-iterable');\nmodule.exports = function (NAME) {\n return function toJSON() {\n if (classof(this) != NAME) throw TypeError(NAME + \"#toJSON isn't generic\");\n return from(this);\n };\n};\n"), - } - filef := &embedded.EmbeddedFile{ - Filename: "_collection-weak.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("'use strict';\nvar redefineAll = require('./_redefine-all');\nvar getWeak = require('./_meta').getWeak;\nvar anObject = require('./_an-object');\nvar isObject = require('./_is-object');\nvar anInstance = require('./_an-instance');\nvar forOf = require('./_for-of');\nvar createArrayMethod = require('./_array-methods');\nvar $has = require('./_has');\nvar validate = require('./_validate-collection');\nvar arrayFind = createArrayMethod(5);\nvar arrayFindIndex = createArrayMethod(6);\nvar id = 0;\n\n// fallback for uncaught frozen keys\nvar uncaughtFrozenStore = function (that) {\n return that._l || (that._l = new UncaughtFrozenStore());\n};\nvar UncaughtFrozenStore = function () {\n this.a = [];\n};\nvar findUncaughtFrozen = function (store, key) {\n return arrayFind(store.a, function (it) {\n return it[0] === key;\n });\n};\nUncaughtFrozenStore.prototype = {\n get: function (key) {\n var entry = findUncaughtFrozen(this, key);\n if (entry) return entry[1];\n },\n has: function (key) {\n return !!findUncaughtFrozen(this, key);\n },\n set: function (key, value) {\n var entry = findUncaughtFrozen(this, key);\n if (entry) entry[1] = value;\n else this.a.push([key, value]);\n },\n 'delete': function (key) {\n var index = arrayFindIndex(this.a, function (it) {\n return it[0] === key;\n });\n if (~index) this.a.splice(index, 1);\n return !!~index;\n }\n};\n\nmodule.exports = {\n getConstructor: function (wrapper, NAME, IS_MAP, ADDER) {\n var C = wrapper(function (that, iterable) {\n anInstance(that, C, NAME, '_i');\n that._t = NAME; // collection type\n that._i = id++; // collection id\n that._l = undefined; // leak store for uncaught frozen objects\n if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);\n });\n redefineAll(C.prototype, {\n // 23.3.3.2 WeakMap.prototype.delete(key)\n // 23.4.3.3 WeakSet.prototype.delete(value)\n 'delete': function (key) {\n if (!isObject(key)) return false;\n var data = getWeak(key);\n if (data === true) return uncaughtFrozenStore(validate(this, NAME))['delete'](key);\n return data && $has(data, this._i) && delete data[this._i];\n },\n // 23.3.3.4 WeakMap.prototype.has(key)\n // 23.4.3.4 WeakSet.prototype.has(value)\n has: function has(key) {\n if (!isObject(key)) return false;\n var data = getWeak(key);\n if (data === true) return uncaughtFrozenStore(validate(this, NAME)).has(key);\n return data && $has(data, this._i);\n }\n });\n return C;\n },\n def: function (that, key, value) {\n var data = getWeak(anObject(key), true);\n if (data === true) uncaughtFrozenStore(that).set(key, value);\n else data[that._i] = value;\n return that;\n },\n ufstore: uncaughtFrozenStore\n};\n"), - } - fileg := &embedded.EmbeddedFile{ - Filename: "_collection.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("'use strict';\nvar global = require('./_global');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar redefineAll = require('./_redefine-all');\nvar meta = require('./_meta');\nvar forOf = require('./_for-of');\nvar anInstance = require('./_an-instance');\nvar isObject = require('./_is-object');\nvar fails = require('./_fails');\nvar $iterDetect = require('./_iter-detect');\nvar setToStringTag = require('./_set-to-string-tag');\nvar inheritIfRequired = require('./_inherit-if-required');\n\nmodule.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {\n var Base = global[NAME];\n var C = Base;\n var ADDER = IS_MAP ? 'set' : 'add';\n var proto = C && C.prototype;\n var O = {};\n var fixMethod = function (KEY) {\n var fn = proto[KEY];\n redefine(proto, KEY,\n KEY == 'delete' ? function (a) {\n return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);\n } : KEY == 'has' ? function has(a) {\n return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);\n } : KEY == 'get' ? function get(a) {\n return IS_WEAK && !isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : a);\n } : KEY == 'add' ? function add(a) { fn.call(this, a === 0 ? 0 : a); return this; }\n : function set(a, b) { fn.call(this, a === 0 ? 0 : a, b); return this; }\n );\n };\n if (typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () {\n new C().entries().next();\n }))) {\n // create collection constructor\n C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);\n redefineAll(C.prototype, methods);\n meta.NEED = true;\n } else {\n var instance = new C();\n // early implementations not supports chaining\n var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;\n // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false\n var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });\n // most early implementations doesn't supports iterables, most modern - not close it correctly\n var ACCEPT_ITERABLES = $iterDetect(function (iter) { new C(iter); }); // eslint-disable-line no-new\n // for early implementations -0 and +0 not the same\n var BUGGY_ZERO = !IS_WEAK && fails(function () {\n // V8 ~ Chromium 42- fails only with 5+ elements\n var $instance = new C();\n var index = 5;\n while (index--) $instance[ADDER](index, index);\n return !$instance.has(-0);\n });\n if (!ACCEPT_ITERABLES) {\n C = wrapper(function (target, iterable) {\n anInstance(target, C, NAME);\n var that = inheritIfRequired(new Base(), target, C);\n if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that);\n return that;\n });\n C.prototype = proto;\n proto.constructor = C;\n }\n if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {\n fixMethod('delete');\n fixMethod('has');\n IS_MAP && fixMethod('get');\n }\n if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);\n // weak collections should not contains .clear method\n if (IS_WEAK && proto.clear) delete proto.clear;\n }\n\n setToStringTag(C, NAME);\n\n O[NAME] = C;\n $export($export.G + $export.W + $export.F * (C != Base), O);\n\n if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP);\n\n return C;\n};\n"), - } - fileh := &embedded.EmbeddedFile{ + fileb := &embedded.EmbeddedFile{ Filename: "_core.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var core = module.exports = { version: '2.5.1' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n"), } - filei := &embedded.EmbeddedFile{ + filec := &embedded.EmbeddedFile{ Filename: "_create-property.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("'use strict';\nvar $defineProperty = require('./_object-dp');\nvar createDesc = require('./_property-desc');\n\nmodule.exports = function (object, index, value) {\n if (index in object) $defineProperty.f(object, index, createDesc(0, value));\n else object[index] = value;\n};\n"), } - filej := &embedded.EmbeddedFile{ + filed := &embedded.EmbeddedFile{ Filename: "_ctx.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n"), } - filek := &embedded.EmbeddedFile{ + filee := &embedded.EmbeddedFile{ Filename: "_defined.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n"), } - filel := &embedded.EmbeddedFile{ + filef := &embedded.EmbeddedFile{ Filename: "_descriptors.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n"), } - filem := &embedded.EmbeddedFile{ - Filename: "_dom-create.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n"), - } - filen := &embedded.EmbeddedFile{ + fileg := &embedded.EmbeddedFile{ Filename: "_enum-bug-keys.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n"), } - fileo := &embedded.EmbeddedFile{ + fileh := &embedded.EmbeddedFile{ Filename: "_export.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var global = require('./_global');\nvar core = require('./_core');\nvar hide = require('./_hide');\nvar redefine = require('./_redefine');\nvar ctx = require('./_ctx');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n"), } - filep := &embedded.EmbeddedFile{ + filei := &embedded.EmbeddedFile{ Filename: "_fails.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n"), } - fileq := &embedded.EmbeddedFile{ + filej := &embedded.EmbeddedFile{ Filename: "_flags.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("'use strict';\n// 21.2.5.3 get RegExp.prototype.flags\nvar anObject = require('./_an-object');\nmodule.exports = function () {\n var that = anObject(this);\n var result = '';\n if (that.global) result += 'g';\n if (that.ignoreCase) result += 'i';\n if (that.multiline) result += 'm';\n if (that.unicode) result += 'u';\n if (that.sticky) result += 'y';\n return result;\n};\n"), } - filer := &embedded.EmbeddedFile{ + filek := &embedded.EmbeddedFile{ Filename: "_flatten-into-array.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("'use strict';\n// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray\nvar isArray = require('./_is-array');\nvar isObject = require('./_is-object');\nvar toLength = require('./_to-length');\nvar ctx = require('./_ctx');\nvar IS_CONCAT_SPREADABLE = require('./_wks')('isConcatSpreadable');\n\nfunction flattenIntoArray(target, original, source, sourceLen, start, depth, mapper, thisArg) {\n var targetIndex = start;\n var sourceIndex = 0;\n var mapFn = mapper ? ctx(mapper, thisArg, 3) : false;\n var element, spreadable;\n\n while (sourceIndex < sourceLen) {\n if (sourceIndex in source) {\n element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];\n\n spreadable = false;\n if (isObject(element)) {\n spreadable = element[IS_CONCAT_SPREADABLE];\n spreadable = spreadable !== undefined ? !!spreadable : isArray(element);\n }\n\n if (spreadable && depth > 0) {\n targetIndex = flattenIntoArray(target, original, element, toLength(element.length), targetIndex, depth - 1) - 1;\n } else {\n if (targetIndex >= 0x1fffffffffffff) throw TypeError();\n target[targetIndex] = element;\n }\n\n targetIndex++;\n }\n sourceIndex++;\n }\n return targetIndex;\n}\n\nmodule.exports = flattenIntoArray;\n"), } - files := &embedded.EmbeddedFile{ + filel := &embedded.EmbeddedFile{ Filename: "_for-of.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var ctx = require('./_ctx');\nvar call = require('./_iter-call');\nvar isArrayIter = require('./_is-array-iter');\nvar anObject = require('./_an-object');\nvar toLength = require('./_to-length');\nvar getIterFn = require('./core.get-iterator-method');\nvar BREAK = {};\nvar RETURN = {};\nvar exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {\n var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);\n var f = ctx(fn, that, entries ? 2 : 1);\n var index = 0;\n var length, step, iterator, result;\n if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');\n // fast case for arrays with default iterator\n if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {\n result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n if (result === BREAK || result === RETURN) return result;\n } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {\n result = call(iterator, f, step.value, entries);\n if (result === BREAK || result === RETURN) return result;\n }\n};\nexports.BREAK = BREAK;\nexports.RETURN = RETURN;\n"), } - filet := &embedded.EmbeddedFile{ + filem := &embedded.EmbeddedFile{ Filename: "_global.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n"), } - fileu := &embedded.EmbeddedFile{ + filen := &embedded.EmbeddedFile{ Filename: "_has.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n"), } - filev := &embedded.EmbeddedFile{ + fileo := &embedded.EmbeddedFile{ Filename: "_hide.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n"), } - filew := &embedded.EmbeddedFile{ - Filename: "_html.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n"), - } - filex := &embedded.EmbeddedFile{ + filep := &embedded.EmbeddedFile{ Filename: "_ie8-dom-define.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n"), } - filey := &embedded.EmbeddedFile{ - Filename: "_inherit-if-required.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("var isObject = require('./_is-object');\nvar setPrototypeOf = require('./_set-proto').set;\nmodule.exports = function (that, target, C) {\n var S = target.constructor;\n var P;\n if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {\n setPrototypeOf(that, P);\n } return that;\n};\n"), - } - filez := &embedded.EmbeddedFile{ - Filename: "_invoke.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function (fn, args, that) {\n var un = that === undefined;\n switch (args.length) {\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n"), - } - file10 := &embedded.EmbeddedFile{ + fileq := &embedded.EmbeddedFile{ Filename: "_iobject.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n"), } - file11 := &embedded.EmbeddedFile{ + filer := &embedded.EmbeddedFile{ Filename: "_is-array-iter.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("// check on default Array iterator\nvar Iterators = require('./_iterators');\nvar ITERATOR = require('./_wks')('iterator');\nvar ArrayProto = Array.prototype;\n\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\n"), } - file12 := &embedded.EmbeddedFile{ + files := &embedded.EmbeddedFile{ Filename: "_is-array.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n"), } - file13 := &embedded.EmbeddedFile{ + filet := &embedded.EmbeddedFile{ Filename: "_is-object.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n"), } - file14 := &embedded.EmbeddedFile{ + fileu := &embedded.EmbeddedFile{ Filename: "_is-regexp.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("// 7.2.8 IsRegExp(argument)\nvar isObject = require('./_is-object');\nvar cof = require('./_cof');\nvar MATCH = require('./_wks')('match');\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');\n};\n"), } - file15 := &embedded.EmbeddedFile{ + filev := &embedded.EmbeddedFile{ Filename: "_iter-call.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("// call something on iterator step with safe closing on error\nvar anObject = require('./_an-object');\nmodule.exports = function (iterator, fn, value, entries) {\n try {\n return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch (e) {\n var ret = iterator['return'];\n if (ret !== undefined) anObject(ret.call(iterator));\n throw e;\n }\n};\n"), } - file16 := &embedded.EmbeddedFile{ + filew := &embedded.EmbeddedFile{ Filename: "_iter-create.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("'use strict';\nvar create = require('./_object-create');\nvar descriptor = require('./_property-desc');\nvar setToStringTag = require('./_set-to-string-tag');\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; });\n\nmodule.exports = function (Constructor, NAME, next) {\n Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n"), } - file17 := &embedded.EmbeddedFile{ - Filename: "_iter-define.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("'use strict';\nvar LIBRARY = require('./_library');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar Iterators = require('./_iterators');\nvar $iterCreate = require('./_iter-create');\nvar setToStringTag = require('./_set-to-string-tag');\nvar getPrototypeOf = require('./_object-gpo');\nvar ITERATOR = require('./_wks')('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n $iterCreate(Constructor, NAME, next);\n var getMethod = function (kind) {\n if (!BUGGY && kind in proto) return proto[kind];\n switch (kind) {\n case KEYS: return function keys() { return new Constructor(this, kind); };\n case VALUES: return function values() { return new Constructor(this, kind); };\n } return function entries() { return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator';\n var DEF_VALUES = DEFAULT == VALUES;\n var VALUES_BUG = false;\n var proto = Base.prototype;\n var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n var $default = $native || getMethod(DEFAULT);\n var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n var methods, key, IteratorPrototype;\n // Fix native\n if ($anyNative) {\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));\n if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if (!LIBRARY && !has(IteratorPrototype, ITERATOR)) hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEF_VALUES && $native && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() { return $native.call(this); };\n }\n // Define iterator\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if (FORCED) for (key in methods) {\n if (!(key in proto)) redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n"), - } - file18 := &embedded.EmbeddedFile{ - Filename: "_iter-detect.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("var ITERATOR = require('./_wks')('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var riter = [7][ITERATOR]();\n riter['return'] = function () { SAFE_CLOSING = true; };\n // eslint-disable-next-line no-throw-literal\n Array.from(riter, function () { throw 2; });\n} catch (e) { /* empty */ }\n\nmodule.exports = function (exec, skipClosing) {\n if (!skipClosing && !SAFE_CLOSING) return false;\n var safe = false;\n try {\n var arr = [7];\n var iter = arr[ITERATOR]();\n iter.next = function () { return { done: safe = true }; };\n arr[ITERATOR] = function () { return iter; };\n exec(arr);\n } catch (e) { /* empty */ }\n return safe;\n};\n"), - } - file19 := &embedded.EmbeddedFile{ - Filename: "_iter-step.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("module.exports = function (done, value) {\n return { value: value, done: !!done };\n};\n"), - } - file1a := &embedded.EmbeddedFile{ + filex := &embedded.EmbeddedFile{ Filename: "_iterators.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("module.exports = {};\n"), } - file1b := &embedded.EmbeddedFile{ + filey := &embedded.EmbeddedFile{ Filename: "_library.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("module.exports = false;\n"), } - file1c := &embedded.EmbeddedFile{ - Filename: "_meta.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("var META = require('./_uid')('meta');\nvar isObject = require('./_is-object');\nvar has = require('./_has');\nvar setDesc = require('./_object-dp').f;\nvar id = 0;\nvar isExtensible = Object.isExtensible || function () {\n return true;\n};\nvar FREEZE = !require('./_fails')(function () {\n return isExtensible(Object.preventExtensions({}));\n});\nvar setMeta = function (it) {\n setDesc(it, META, { value: {\n i: 'O' + ++id, // object ID\n w: {} // weak collections IDs\n } });\n};\nvar fastKey = function (it, create) {\n // return primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMeta(it);\n // return object ID\n } return it[META].i;\n};\nvar getWeak = function (it, create) {\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMeta(it);\n // return hash weak collections IDs\n } return it[META].w;\n};\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);\n return it;\n};\nvar meta = module.exports = {\n KEY: META,\n NEED: false,\n fastKey: fastKey,\n getWeak: getWeak,\n onFreeze: onFreeze\n};\n"), - } - file1d := &embedded.EmbeddedFile{ + filez := &embedded.EmbeddedFile{ Filename: "_metadata.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605883563, 0), Content: string("var Map = require('./es6.map');\nvar $export = require('./_export');\nvar shared = require('./_shared')('metadata');\nvar store = shared.store || (shared.store = new (require('./es6.weak-map'))());\n\nvar getOrCreateMetadataMap = function (target, targetKey, create) {\n var targetMetadata = store.get(target);\n if (!targetMetadata) {\n if (!create) return undefined;\n store.set(target, targetMetadata = new Map());\n }\n var keyMetadata = targetMetadata.get(targetKey);\n if (!keyMetadata) {\n if (!create) return undefined;\n targetMetadata.set(targetKey, keyMetadata = new Map());\n } return keyMetadata;\n};\nvar ordinaryHasOwnMetadata = function (MetadataKey, O, P) {\n var metadataMap = getOrCreateMetadataMap(O, P, false);\n return metadataMap === undefined ? false : metadataMap.has(MetadataKey);\n};\nvar ordinaryGetOwnMetadata = function (MetadataKey, O, P) {\n var metadataMap = getOrCreateMetadataMap(O, P, false);\n return metadataMap === undefined ? undefined : metadataMap.get(MetadataKey);\n};\nvar ordinaryDefineOwnMetadata = function (MetadataKey, MetadataValue, O, P) {\n getOrCreateMetadataMap(O, P, true).set(MetadataKey, MetadataValue);\n};\nvar ordinaryOwnMetadataKeys = function (target, targetKey) {\n var metadataMap = getOrCreateMetadataMap(target, targetKey, false);\n var keys = [];\n if (metadataMap) metadataMap.forEach(function (_, key) { keys.push(key); });\n return keys;\n};\nvar toMetaKey = function (it) {\n return it === undefined || typeof it == 'symbol' ? it : String(it);\n};\nvar exp = function (O) {\n $export($export.S, 'Reflect', O);\n};\n\nmodule.exports = {\n store: store,\n map: getOrCreateMetadataMap,\n has: ordinaryHasOwnMetadata,\n get: ordinaryGetOwnMetadata,\n set: ordinaryDefineOwnMetadata,\n keys: ordinaryOwnMetadataKeys,\n key: toMetaKey,\n exp: exp\n};\n"), } - file1e := &embedded.EmbeddedFile{ - Filename: "_microtask.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("var global = require('./_global');\nvar macrotask = require('./_task').set;\nvar Observer = global.MutationObserver || global.WebKitMutationObserver;\nvar process = global.process;\nvar Promise = global.Promise;\nvar isNode = require('./_cof')(process) == 'process';\n\nmodule.exports = function () {\n var head, last, notify;\n\n var flush = function () {\n var parent, fn;\n if (isNode && (parent = process.domain)) parent.exit();\n while (head) {\n fn = head.fn;\n head = head.next;\n try {\n fn();\n } catch (e) {\n if (head) notify();\n else last = undefined;\n throw e;\n }\n } last = undefined;\n if (parent) parent.enter();\n };\n\n // Node.js\n if (isNode) {\n notify = function () {\n process.nextTick(flush);\n };\n // browsers with MutationObserver\n } else if (Observer) {\n var toggle = true;\n var node = document.createTextNode('');\n new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (Promise && Promise.resolve) {\n var promise = Promise.resolve();\n notify = function () {\n promise.then(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessag\n // - onreadystatechange\n // - setTimeout\n } else {\n notify = function () {\n // strange IE + webpack dev server bug - use .call(global)\n macrotask.call(global, flush);\n };\n }\n\n return function (fn) {\n var task = { fn: fn, next: undefined };\n if (last) last.next = task;\n if (!head) {\n head = task;\n notify();\n } last = task;\n };\n};\n"), - } - file1f := &embedded.EmbeddedFile{ - Filename: "_new-promise-capability.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("'use strict';\n// 25.4.1.5 NewPromiseCapability(C)\nvar aFunction = require('./_a-function');\n\nfunction PromiseCapability(C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aFunction(resolve);\n this.reject = aFunction(reject);\n}\n\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n"), - } - file1g := &embedded.EmbeddedFile{ - Filename: "_object-assign.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];\n } return T;\n} : $assign;\n"), - } - file1h := &embedded.EmbeddedFile{ + file10 := &embedded.EmbeddedFile{ Filename: "_object-create.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n"), } - file1i := &embedded.EmbeddedFile{ + file11 := &embedded.EmbeddedFile{ Filename: "_object-dp.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n"), } - file1j := &embedded.EmbeddedFile{ + file12 := &embedded.EmbeddedFile{ Filename: "_object-dps.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n"), } - file1k := &embedded.EmbeddedFile{ + file13 := &embedded.EmbeddedFile{ Filename: "_object-forced-pam.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("'use strict';\n// Forced replacement prototype accessors methods\nmodule.exports = require('./_library') || !require('./_fails')(function () {\n var K = Math.random();\n // In FF throws only define methods\n // eslint-disable-next-line no-undef, no-useless-call\n __defineSetter__.call(null, K, function () { /* empty */ });\n delete require('./_global')[K];\n});\n"), } - file1l := &embedded.EmbeddedFile{ + file14 := &embedded.EmbeddedFile{ Filename: "_object-gopd.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n"), } - file1m := &embedded.EmbeddedFile{ + file15 := &embedded.EmbeddedFile{ Filename: "_object-gopn.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n"), } - file1n := &embedded.EmbeddedFile{ + file16 := &embedded.EmbeddedFile{ Filename: "_object-gops.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("exports.f = Object.getOwnPropertySymbols;\n"), } - file1o := &embedded.EmbeddedFile{ + file17 := &embedded.EmbeddedFile{ Filename: "_object-gpo.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = require('./_has');\nvar toObject = require('./_to-object');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n"), } - file1p := &embedded.EmbeddedFile{ + file18 := &embedded.EmbeddedFile{ Filename: "_object-keys-internal.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n"), } - file1q := &embedded.EmbeddedFile{ + file19 := &embedded.EmbeddedFile{ Filename: "_object-keys.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n"), } - file1r := &embedded.EmbeddedFile{ + file1a := &embedded.EmbeddedFile{ Filename: "_object-pie.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("exports.f = {}.propertyIsEnumerable;\n"), } - file1s := &embedded.EmbeddedFile{ + file1b := &embedded.EmbeddedFile{ Filename: "_object-to-array.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var getKeys = require('./_object-keys');\nvar toIObject = require('./_to-iobject');\nvar isEnum = require('./_object-pie').f;\nmodule.exports = function (isEntries) {\n return function (it) {\n var O = toIObject(it);\n var keys = getKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) if (isEnum.call(O, key = keys[i++])) {\n result.push(isEntries ? [key, O[key]] : O[key]);\n } return result;\n };\n};\n"), } - file1t := &embedded.EmbeddedFile{ + file1c := &embedded.EmbeddedFile{ Filename: "_own-keys.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("// all object keys, includes non-enumerable and symbols\nvar gOPN = require('./_object-gopn');\nvar gOPS = require('./_object-gops');\nvar anObject = require('./_an-object');\nvar Reflect = require('./_global').Reflect;\nmodule.exports = Reflect && Reflect.ownKeys || function ownKeys(it) {\n var keys = gOPN.f(anObject(it));\n var getSymbols = gOPS.f;\n return getSymbols ? keys.concat(getSymbols(it)) : keys;\n};\n"), } - file1u := &embedded.EmbeddedFile{ - Filename: "_perform.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("module.exports = function (exec) {\n try {\n return { e: false, v: exec() };\n } catch (e) {\n return { e: true, v: e };\n }\n};\n"), - } - file1v := &embedded.EmbeddedFile{ - Filename: "_promise-resolve.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("var anObject = require('./_an-object');\nvar isObject = require('./_is-object');\nvar newPromiseCapability = require('./_new-promise-capability');\n\nmodule.exports = function (C, x) {\n anObject(C);\n if (isObject(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n"), - } - file1w := &embedded.EmbeddedFile{ + file1d := &embedded.EmbeddedFile{ Filename: "_property-desc.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n"), } - file1x := &embedded.EmbeddedFile{ - Filename: "_redefine-all.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("var redefine = require('./_redefine');\nmodule.exports = function (target, src, safe) {\n for (var key in src) redefine(target, key, src[key], safe);\n return target;\n};\n"), - } - file1y := &embedded.EmbeddedFile{ + file1e := &embedded.EmbeddedFile{ Filename: "_redefine.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var global = require('./_global');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar SRC = require('./_uid')('src');\nvar TO_STRING = 'toString';\nvar $toString = Function[TO_STRING];\nvar TPL = ('' + $toString).split(TO_STRING);\n\nrequire('./_core').inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n"), } - file1z := &embedded.EmbeddedFile{ - Filename: "_set-collection-from.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("'use strict';\n// https://tc39.github.io/proposal-setmap-offrom/\nvar $export = require('./_export');\nvar aFunction = require('./_a-function');\nvar ctx = require('./_ctx');\nvar forOf = require('./_for-of');\n\nmodule.exports = function (COLLECTION) {\n $export($export.S, COLLECTION, { from: function from(source /* , mapFn, thisArg */) {\n var mapFn = arguments[1];\n var mapping, A, n, cb;\n aFunction(this);\n mapping = mapFn !== undefined;\n if (mapping) aFunction(mapFn);\n if (source == undefined) return new this();\n A = [];\n if (mapping) {\n n = 0;\n cb = ctx(mapFn, arguments[2], 2);\n forOf(source, false, function (nextItem) {\n A.push(cb(nextItem, n++));\n });\n } else {\n forOf(source, false, A.push, A);\n }\n return new this(A);\n } });\n};\n"), - } - file20 := &embedded.EmbeddedFile{ - Filename: "_set-collection-of.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("'use strict';\n// https://tc39.github.io/proposal-setmap-offrom/\nvar $export = require('./_export');\n\nmodule.exports = function (COLLECTION) {\n $export($export.S, COLLECTION, { of: function of() {\n var length = arguments.length;\n var A = Array(length);\n while (length--) A[length] = arguments[length];\n return new this(A);\n } });\n};\n"), - } - file21 := &embedded.EmbeddedFile{ - Filename: "_set-proto.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = require('./_is-object');\nvar anObject = require('./_an-object');\nvar check = function (O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function (test, buggy, set) {\n try {\n set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) { buggy = true; }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy) O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n"), - } - file22 := &embedded.EmbeddedFile{ - Filename: "_set-species.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("'use strict';\nvar global = require('./_global');\nvar dP = require('./_object-dp');\nvar DESCRIPTORS = require('./_descriptors');\nvar SPECIES = require('./_wks')('species');\n\nmodule.exports = function (KEY) {\n var C = global[KEY];\n if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n};\n"), - } - file23 := &embedded.EmbeddedFile{ + file1f := &embedded.EmbeddedFile{ Filename: "_set-to-string-tag.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var def = require('./_object-dp').f;\nvar has = require('./_has');\nvar TAG = require('./_wks')('toStringTag');\n\nmodule.exports = function (it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });\n};\n"), } - file24 := &embedded.EmbeddedFile{ + file1g := &embedded.EmbeddedFile{ Filename: "_shared-key.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n"), } - file25 := &embedded.EmbeddedFile{ + file1h := &embedded.EmbeddedFile{ Filename: "_shared.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\nmodule.exports = function (key) {\n return store[key] || (store[key] = {});\n};\n"), } - file26 := &embedded.EmbeddedFile{ - Filename: "_species-constructor.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("// 7.3.20 SpeciesConstructor(O, defaultConstructor)\nvar anObject = require('./_an-object');\nvar aFunction = require('./_a-function');\nvar SPECIES = require('./_wks')('species');\nmodule.exports = function (O, D) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);\n};\n"), - } - file27 := &embedded.EmbeddedFile{ - Filename: "_string-at.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("var toInteger = require('./_to-integer');\nvar defined = require('./_defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function (TO_STRING) {\n return function (that, pos) {\n var s = String(defined(that));\n var i = toInteger(pos);\n var l = s.length;\n var a, b;\n if (i < 0 || i >= l) return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n"), - } - file28 := &embedded.EmbeddedFile{ - Filename: "_string-pad.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("// https://github.com/tc39/proposal-string-pad-start-end\nvar toLength = require('./_to-length');\nvar repeat = require('./_string-repeat');\nvar defined = require('./_defined');\n\nmodule.exports = function (that, maxLength, fillString, left) {\n var S = String(defined(that));\n var stringLength = S.length;\n var fillStr = fillString === undefined ? ' ' : String(fillString);\n var intMaxLength = toLength(maxLength);\n if (intMaxLength <= stringLength || fillStr == '') return S;\n var fillLen = intMaxLength - stringLength;\n var stringFiller = repeat.call(fillStr, Math.ceil(fillLen / fillStr.length));\n if (stringFiller.length > fillLen) stringFiller = stringFiller.slice(0, fillLen);\n return left ? stringFiller + S : S + stringFiller;\n};\n"), - } - file29 := &embedded.EmbeddedFile{ - Filename: "_string-repeat.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("'use strict';\nvar toInteger = require('./_to-integer');\nvar defined = require('./_defined');\n\nmodule.exports = function repeat(count) {\n var str = String(defined(this));\n var res = '';\n var n = toInteger(count);\n if (n < 0 || n == Infinity) throw RangeError(\"Count can't be negative\");\n for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) res += str;\n return res;\n};\n"), - } - file2a := &embedded.EmbeddedFile{ + file1i := &embedded.EmbeddedFile{ Filename: "_string-trim.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var $export = require('./_export');\nvar defined = require('./_defined');\nvar fails = require('./_fails');\nvar spaces = require('./_string-ws');\nvar space = '[' + spaces + ']';\nvar non = '\\u200b\\u0085';\nvar ltrim = RegExp('^' + space + space + '*');\nvar rtrim = RegExp(space + space + '*$');\n\nvar exporter = function (KEY, exec, ALIAS) {\n var exp = {};\n var FORCE = fails(function () {\n return !!spaces[KEY]() || non[KEY]() != non;\n });\n var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];\n if (ALIAS) exp[ALIAS] = fn;\n $export($export.P + $export.F * FORCE, 'String', exp);\n};\n\n// 1 -> String#trimLeft\n// 2 -> String#trimRight\n// 3 -> String#trim\nvar trim = exporter.trim = function (string, TYPE) {\n string = String(defined(string));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n};\n\nmodule.exports = exporter;\n"), } - file2b := &embedded.EmbeddedFile{ + file1j := &embedded.EmbeddedFile{ Filename: "_string-ws.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("module.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n"), } - file2c := &embedded.EmbeddedFile{ - Filename: "_task.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("var ctx = require('./_ctx');\nvar invoke = require('./_invoke');\nvar html = require('./_html');\nvar cel = require('./_dom-create');\nvar global = require('./_global');\nvar process = global.process;\nvar setTask = global.setImmediate;\nvar clearTask = global.clearImmediate;\nvar MessageChannel = global.MessageChannel;\nvar Dispatch = global.Dispatch;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar defer, channel, port;\nvar run = function () {\n var id = +this;\n // eslint-disable-next-line no-prototype-builtins\n if (queue.hasOwnProperty(id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\nvar listener = function (event) {\n run.call(event.data);\n};\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!setTask || !clearTask) {\n setTask = function setImmediate(fn) {\n var args = [];\n var i = 1;\n while (arguments.length > i) args.push(arguments[i++]);\n queue[++counter] = function () {\n // eslint-disable-next-line no-new-func\n invoke(typeof fn == 'function' ? fn : Function(fn), args);\n };\n defer(counter);\n return counter;\n };\n clearTask = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (require('./_cof')(process) == 'process') {\n defer = function (id) {\n process.nextTick(ctx(run, id, 1));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(ctx(run, id, 1));\n };\n // Browsers with MessageChannel, includes WebWorkers\n } else if (MessageChannel) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = listener;\n defer = ctx(port.postMessage, port, 1);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) {\n defer = function (id) {\n global.postMessage(id + '', '*');\n };\n global.addEventListener('message', listener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in cel('script')) {\n defer = function (id) {\n html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run.call(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(ctx(run, id, 1), 0);\n };\n }\n}\nmodule.exports = {\n set: setTask,\n clear: clearTask\n};\n"), - } - file2d := &embedded.EmbeddedFile{ + file1k := &embedded.EmbeddedFile{ Filename: "_to-absolute-index.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n"), } - file2e := &embedded.EmbeddedFile{ + file1l := &embedded.EmbeddedFile{ Filename: "_to-integer.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n"), } - file2f := &embedded.EmbeddedFile{ + file1m := &embedded.EmbeddedFile{ Filename: "_to-iobject.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n"), } - file2g := &embedded.EmbeddedFile{ + file1n := &embedded.EmbeddedFile{ Filename: "_to-length.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n"), } - file2h := &embedded.EmbeddedFile{ + file1o := &embedded.EmbeddedFile{ Filename: "_to-object.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n"), } - file2i := &embedded.EmbeddedFile{ + file1p := &embedded.EmbeddedFile{ Filename: "_to-primitive.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n"), } - file2j := &embedded.EmbeddedFile{ + file1q := &embedded.EmbeddedFile{ Filename: "_uid.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n"), } - file2k := &embedded.EmbeddedFile{ - Filename: "_validate-collection.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("var isObject = require('./_is-object');\nmodule.exports = function (it, TYPE) {\n if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!');\n return it;\n};\n"), - } - file2l := &embedded.EmbeddedFile{ - Filename: "_wks-define.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("var global = require('./_global');\nvar core = require('./_core');\nvar LIBRARY = require('./_library');\nvar wksExt = require('./_wks-ext');\nvar defineProperty = require('./_object-dp').f;\nmodule.exports = function (name) {\n var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});\n if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });\n};\n"), - } - file2m := &embedded.EmbeddedFile{ - Filename: "_wks-ext.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("exports.f = require('./_wks');\n"), - } - file2n := &embedded.EmbeddedFile{ + file1r := &embedded.EmbeddedFile{ Filename: "_wks.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n"), } - file2o := &embedded.EmbeddedFile{ + file1s := &embedded.EmbeddedFile{ Filename: "core.get-iterator-method.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var classof = require('./_classof');\nvar ITERATOR = require('./_wks')('iterator');\nvar Iterators = require('./_iterators');\nmodule.exports = require('./_core').getIteratorMethod = function (it) {\n if (it != undefined) return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n"), } - file2p := &embedded.EmbeddedFile{ - Filename: "es6.map.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("'use strict';\nvar strong = require('./_collection-strong');\nvar validate = require('./_validate-collection');\nvar MAP = 'Map';\n\n// 23.1 Map Objects\nmodule.exports = require('./_collection')(MAP, function (get) {\n return function Map() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n}, {\n // 23.1.3.6 Map.prototype.get(key)\n get: function get(key) {\n var entry = strong.getEntry(validate(this, MAP), key);\n return entry && entry.v;\n },\n // 23.1.3.9 Map.prototype.set(key, value)\n set: function set(key, value) {\n return strong.def(validate(this, MAP), key === 0 ? 0 : key, value);\n }\n}, strong, true);\n"), - } - file2q := &embedded.EmbeddedFile{ - Filename: "es6.promise.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("'use strict';\nvar LIBRARY = require('./_library');\nvar global = require('./_global');\nvar ctx = require('./_ctx');\nvar classof = require('./_classof');\nvar $export = require('./_export');\nvar isObject = require('./_is-object');\nvar aFunction = require('./_a-function');\nvar anInstance = require('./_an-instance');\nvar forOf = require('./_for-of');\nvar speciesConstructor = require('./_species-constructor');\nvar task = require('./_task').set;\nvar microtask = require('./_microtask')();\nvar newPromiseCapabilityModule = require('./_new-promise-capability');\nvar perform = require('./_perform');\nvar promiseResolve = require('./_promise-resolve');\nvar PROMISE = 'Promise';\nvar TypeError = global.TypeError;\nvar process = global.process;\nvar $Promise = global[PROMISE];\nvar isNode = classof(process) == 'process';\nvar empty = function () { /* empty */ };\nvar Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;\nvar newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f;\n\nvar USE_NATIVE = !!function () {\n try {\n // correct subclassing with @@species support\n var promise = $Promise.resolve(1);\n var FakePromise = (promise.constructor = {})[require('./_wks')('species')] = function (exec) {\n exec(empty, empty);\n };\n // unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n return (isNode || typeof PromiseRejectionEvent == 'function') && promise.then(empty) instanceof FakePromise;\n } catch (e) { /* empty */ }\n}();\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && typeof (then = it.then) == 'function' ? then : false;\n};\nvar notify = function (promise, isReject) {\n if (promise._n) return;\n promise._n = true;\n var chain = promise._c;\n microtask(function () {\n var value = promise._v;\n var ok = promise._s == 1;\n var i = 0;\n var run = function (reaction) {\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then;\n try {\n if (handler) {\n if (!ok) {\n if (promise._h == 2) onHandleUnhandled(promise);\n promise._h = 1;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value);\n if (domain) domain.exit();\n }\n if (result === reaction.promise) {\n reject(TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n then.call(result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (e) {\n reject(e);\n }\n };\n while (chain.length > i) run(chain[i++]); // variable length - can't use forEach\n promise._c = [];\n promise._n = false;\n if (isReject && !promise._h) onUnhandled(promise);\n });\n};\nvar onUnhandled = function (promise) {\n task.call(global, function () {\n var value = promise._v;\n var unhandled = isUnhandled(promise);\n var result, handler, console;\n if (unhandled) {\n result = perform(function () {\n if (isNode) {\n process.emit('unhandledRejection', value, promise);\n } else if (handler = global.onunhandledrejection) {\n handler({ promise: promise, reason: value });\n } else if ((console = global.console) && console.error) {\n console.error('Unhandled promise rejection', value);\n }\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n promise._h = isNode || isUnhandled(promise) ? 2 : 1;\n } promise._a = undefined;\n if (unhandled && result.e) throw result.v;\n });\n};\nvar isUnhandled = function (promise) {\n if (promise._h == 1) return false;\n var chain = promise._a || promise._c;\n var i = 0;\n var reaction;\n while (chain.length > i) {\n reaction = chain[i++];\n if (reaction.fail || !isUnhandled(reaction.promise)) return false;\n } return true;\n};\nvar onHandleUnhandled = function (promise) {\n task.call(global, function () {\n var handler;\n if (isNode) {\n process.emit('rejectionHandled', promise);\n } else if (handler = global.onrejectionhandled) {\n handler({ promise: promise, reason: promise._v });\n }\n });\n};\nvar $reject = function (value) {\n var promise = this;\n if (promise._d) return;\n promise._d = true;\n promise = promise._w || promise; // unwrap\n promise._v = value;\n promise._s = 2;\n if (!promise._a) promise._a = promise._c.slice();\n notify(promise, true);\n};\nvar $resolve = function (value) {\n var promise = this;\n var then;\n if (promise._d) return;\n promise._d = true;\n promise = promise._w || promise; // unwrap\n try {\n if (promise === value) throw TypeError(\"Promise can't be resolved itself\");\n if (then = isThenable(value)) {\n microtask(function () {\n var wrapper = { _w: promise, _d: false }; // wrap\n try {\n then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));\n } catch (e) {\n $reject.call(wrapper, e);\n }\n });\n } else {\n promise._v = value;\n promise._s = 1;\n notify(promise, false);\n }\n } catch (e) {\n $reject.call({ _w: promise, _d: false }, e); // wrap\n }\n};\n\n// constructor polyfill\nif (!USE_NATIVE) {\n // 25.4.3.1 Promise(executor)\n $Promise = function Promise(executor) {\n anInstance(this, $Promise, PROMISE, '_h');\n aFunction(executor);\n Internal.call(this);\n try {\n executor(ctx($resolve, this, 1), ctx($reject, this, 1));\n } catch (err) {\n $reject.call(this, err);\n }\n };\n // eslint-disable-next-line no-unused-vars\n Internal = function Promise(executor) {\n this._c = []; // <- awaiting reactions\n this._a = undefined; // <- checked in isUnhandled reactions\n this._s = 0; // <- state\n this._d = false; // <- done\n this._v = undefined; // <- value\n this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled\n this._n = false; // <- notify\n };\n Internal.prototype = require('./_redefine-all')($Promise.prototype, {\n // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)\n then: function then(onFulfilled, onRejected) {\n var reaction = newPromiseCapability(speciesConstructor(this, $Promise));\n reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;\n reaction.fail = typeof onRejected == 'function' && onRejected;\n reaction.domain = isNode ? process.domain : undefined;\n this._c.push(reaction);\n if (this._a) this._a.push(reaction);\n if (this._s) notify(this, false);\n return reaction.promise;\n },\n // 25.4.5.1 Promise.prototype.catch(onRejected)\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n });\n OwnPromiseCapability = function () {\n var promise = new Internal();\n this.promise = promise;\n this.resolve = ctx($resolve, promise, 1);\n this.reject = ctx($reject, promise, 1);\n };\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === $Promise || C === Wrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise });\nrequire('./_set-to-string-tag')($Promise, PROMISE);\nrequire('./_set-species')(PROMISE);\nWrapper = require('./_core')[PROMISE];\n\n// statics\n$export($export.S + $export.F * !USE_NATIVE, PROMISE, {\n // 25.4.4.5 Promise.reject(r)\n reject: function reject(r) {\n var capability = newPromiseCapability(this);\n var $$reject = capability.reject;\n $$reject(r);\n return capability.promise;\n }\n});\n$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {\n // 25.4.4.6 Promise.resolve(x)\n resolve: function resolve(x) {\n return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x);\n }\n});\n$export($export.S + $export.F * !(USE_NATIVE && require('./_iter-detect')(function (iter) {\n $Promise.all(iter)['catch'](empty);\n})), PROMISE, {\n // 25.4.4.1 Promise.all(iterable)\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var values = [];\n var index = 0;\n var remaining = 1;\n forOf(iterable, false, function (promise) {\n var $index = index++;\n var alreadyCalled = false;\n values.push(undefined);\n remaining++;\n C.resolve(promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[$index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.e) reject(result.v);\n return capability.promise;\n },\n // 25.4.4.4 Promise.race(iterable)\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var reject = capability.reject;\n var result = perform(function () {\n forOf(iterable, false, function (promise) {\n C.resolve(promise).then(capability.resolve, reject);\n });\n });\n if (result.e) reject(result.v);\n return capability.promise;\n }\n});\n"), - } - file2r := &embedded.EmbeddedFile{ - Filename: "es6.set.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("'use strict';\nvar strong = require('./_collection-strong');\nvar validate = require('./_validate-collection');\nvar SET = 'Set';\n\n// 23.2 Set Objects\nmodule.exports = require('./_collection')(SET, function (get) {\n return function Set() { return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n}, {\n // 23.2.3.1 Set.prototype.add(value)\n add: function add(value) {\n return strong.def(validate(this, SET), value = value === 0 ? 0 : value, value);\n }\n}, strong);\n"), - } - file2s := &embedded.EmbeddedFile{ - Filename: "es6.weak-map.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("'use strict';\nvar each = require('./_array-methods')(0);\nvar redefine = require('./_redefine');\nvar meta = require('./_meta');\nvar assign = require('./_object-assign');\nvar weak = require('./_collection-weak');\nvar isObject = require('./_is-object');\nvar fails = require('./_fails');\nvar validate = require('./_validate-collection');\nvar WEAK_MAP = 'WeakMap';\nvar getWeak = meta.getWeak;\nvar isExtensible = Object.isExtensible;\nvar uncaughtFrozenStore = weak.ufstore;\nvar tmp = {};\nvar InternalMap;\n\nvar wrapper = function (get) {\n return function WeakMap() {\n return get(this, arguments.length > 0 ? arguments[0] : undefined);\n };\n};\n\nvar methods = {\n // 23.3.3.3 WeakMap.prototype.get(key)\n get: function get(key) {\n if (isObject(key)) {\n var data = getWeak(key);\n if (data === true) return uncaughtFrozenStore(validate(this, WEAK_MAP)).get(key);\n return data ? data[this._i] : undefined;\n }\n },\n // 23.3.3.5 WeakMap.prototype.set(key, value)\n set: function set(key, value) {\n return weak.def(validate(this, WEAK_MAP), key, value);\n }\n};\n\n// 23.3 WeakMap Objects\nvar $WeakMap = module.exports = require('./_collection')(WEAK_MAP, wrapper, methods, weak, true, true);\n\n// IE11 WeakMap frozen keys fix\nif (fails(function () { return new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7; })) {\n InternalMap = weak.getConstructor(wrapper, WEAK_MAP);\n assign(InternalMap.prototype, methods);\n meta.NEED = true;\n each(['delete', 'has', 'get', 'set'], function (key) {\n var proto = $WeakMap.prototype;\n var method = proto[key];\n redefine(proto, key, function (a, b) {\n // store frozen objects on internal weakmap shim\n if (isObject(a) && !isExtensible(a)) {\n if (!this._f) this._f = new InternalMap();\n var result = this._f[key](a, b);\n return key == 'set' ? this : result;\n // store all the rest on native weakmap\n } return method.call(this, a, b);\n });\n });\n}\n"), - } - file2t := &embedded.EmbeddedFile{ + file1t := &embedded.EmbeddedFile{ Filename: "es7.array.flat-map.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("'use strict';\n// https://tc39.github.io/proposal-flatMap/#sec-Array.prototype.flatMap\nvar $export = require('./_export');\nvar flattenIntoArray = require('./_flatten-into-array');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar aFunction = require('./_a-function');\nvar arraySpeciesCreate = require('./_array-species-create');\n\n$export($export.P, 'Array', {\n flatMap: function flatMap(callbackfn /* , thisArg */) {\n var O = toObject(this);\n var sourceLen, A;\n aFunction(callbackfn);\n sourceLen = toLength(O.length);\n A = arraySpeciesCreate(O, 0);\n flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments[1]);\n return A;\n }\n});\n\nrequire('./_add-to-unscopables')('flatMap');\n"), } - file2u := &embedded.EmbeddedFile{ + file1u := &embedded.EmbeddedFile{ Filename: "es7.array.flatten.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("'use strict';\n// https://tc39.github.io/proposal-flatMap/#sec-Array.prototype.flatten\nvar $export = require('./_export');\nvar flattenIntoArray = require('./_flatten-into-array');\nvar toObject = require('./_to-object');\nvar toLength = require('./_to-length');\nvar toInteger = require('./_to-integer');\nvar arraySpeciesCreate = require('./_array-species-create');\n\n$export($export.P, 'Array', {\n flatten: function flatten(/* depthArg = 1 */) {\n var depthArg = arguments[0];\n var O = toObject(this);\n var sourceLen = toLength(O.length);\n var A = arraySpeciesCreate(O, 0);\n flattenIntoArray(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toInteger(depthArg));\n return A;\n }\n});\n\nrequire('./_add-to-unscopables')('flatten');\n"), } - file2v := &embedded.EmbeddedFile{ - Filename: "es7.asap.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("// https://github.com/rwaldron/tc39-notes/blob/master/es6/2014-09/sept-25.md#510-globalasap-for-enqueuing-a-microtask\nvar $export = require('./_export');\nvar microtask = require('./_microtask')();\nvar process = require('./_global').process;\nvar isNode = require('./_cof')(process) == 'process';\n\n$export($export.G, {\n asap: function asap(fn) {\n var domain = isNode && process.domain;\n microtask(domain ? domain.bind(fn) : fn);\n }\n});\n"), - } - file2w := &embedded.EmbeddedFile{ - Filename: "es7.error.is-error.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("// https://github.com/ljharb/proposal-is-error\nvar $export = require('./_export');\nvar cof = require('./_cof');\n\n$export($export.S, 'Error', {\n isError: function isError(it) {\n return cof(it) === 'Error';\n }\n});\n"), - } - file2x := &embedded.EmbeddedFile{ - Filename: "es7.global.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("// https://github.com/tc39/proposal-global\nvar $export = require('./_export');\n\n$export($export.G, { global: require('./_global') });\n"), - } - file2y := &embedded.EmbeddedFile{ - Filename: "es7.map.from.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("// https://tc39.github.io/proposal-setmap-offrom/#sec-map.from\nrequire('./_set-collection-from')('Map');\n"), - } - file2z := &embedded.EmbeddedFile{ - Filename: "es7.map.of.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("// https://tc39.github.io/proposal-setmap-offrom/#sec-map.of\nrequire('./_set-collection-of')('Map');\n"), - } - file30 := &embedded.EmbeddedFile{ - Filename: "es7.map.to-json.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar $export = require('./_export');\n\n$export($export.P + $export.R, 'Map', { toJSON: require('./_collection-to-json')('Map') });\n"), - } - file31 := &embedded.EmbeddedFile{ + file1v := &embedded.EmbeddedFile{ Filename: "es7.object.define-getter.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("'use strict';\nvar $export = require('./_export');\nvar toObject = require('./_to-object');\nvar aFunction = require('./_a-function');\nvar $defineProperty = require('./_object-dp');\n\n// B.2.2.2 Object.prototype.__defineGetter__(P, getter)\nrequire('./_descriptors') && $export($export.P + require('./_object-forced-pam'), 'Object', {\n __defineGetter__: function __defineGetter__(P, getter) {\n $defineProperty.f(toObject(this), P, { get: aFunction(getter), enumerable: true, configurable: true });\n }\n});\n"), } - file32 := &embedded.EmbeddedFile{ + file1w := &embedded.EmbeddedFile{ Filename: "es7.object.define-setter.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("'use strict';\nvar $export = require('./_export');\nvar toObject = require('./_to-object');\nvar aFunction = require('./_a-function');\nvar $defineProperty = require('./_object-dp');\n\n// B.2.2.3 Object.prototype.__defineSetter__(P, setter)\nrequire('./_descriptors') && $export($export.P + require('./_object-forced-pam'), 'Object', {\n __defineSetter__: function __defineSetter__(P, setter) {\n $defineProperty.f(toObject(this), P, { set: aFunction(setter), enumerable: true, configurable: true });\n }\n});\n"), } - file33 := &embedded.EmbeddedFile{ + file1x := &embedded.EmbeddedFile{ Filename: "es7.object.entries.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("// https://github.com/tc39/proposal-object-values-entries\nvar $export = require('./_export');\nvar $entries = require('./_object-to-array')(true);\n\n$export($export.S, 'Object', {\n entries: function entries(it) {\n return $entries(it);\n }\n});\n"), } - file34 := &embedded.EmbeddedFile{ + file1y := &embedded.EmbeddedFile{ Filename: "es7.object.get-own-property-descriptors.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("// https://github.com/tc39/proposal-object-getownpropertydescriptors\nvar $export = require('./_export');\nvar ownKeys = require('./_own-keys');\nvar toIObject = require('./_to-iobject');\nvar gOPD = require('./_object-gopd');\nvar createProperty = require('./_create-property');\n\n$export($export.S, 'Object', {\n getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {\n var O = toIObject(object);\n var getDesc = gOPD.f;\n var keys = ownKeys(O);\n var result = {};\n var i = 0;\n var key, desc;\n while (keys.length > i) {\n desc = getDesc(O, key = keys[i++]);\n if (desc !== undefined) createProperty(result, key, desc);\n }\n return result;\n }\n});\n"), } - file35 := &embedded.EmbeddedFile{ + file1z := &embedded.EmbeddedFile{ Filename: "es7.object.lookup-getter.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("'use strict';\nvar $export = require('./_export');\nvar toObject = require('./_to-object');\nvar toPrimitive = require('./_to-primitive');\nvar getPrototypeOf = require('./_object-gpo');\nvar getOwnPropertyDescriptor = require('./_object-gopd').f;\n\n// B.2.2.4 Object.prototype.__lookupGetter__(P)\nrequire('./_descriptors') && $export($export.P + require('./_object-forced-pam'), 'Object', {\n __lookupGetter__: function __lookupGetter__(P) {\n var O = toObject(this);\n var K = toPrimitive(P, true);\n var D;\n do {\n if (D = getOwnPropertyDescriptor(O, K)) return D.get;\n } while (O = getPrototypeOf(O));\n }\n});\n"), } - file36 := &embedded.EmbeddedFile{ + file20 := &embedded.EmbeddedFile{ Filename: "es7.object.lookup-setter.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("'use strict';\nvar $export = require('./_export');\nvar toObject = require('./_to-object');\nvar toPrimitive = require('./_to-primitive');\nvar getPrototypeOf = require('./_object-gpo');\nvar getOwnPropertyDescriptor = require('./_object-gopd').f;\n\n// B.2.2.5 Object.prototype.__lookupSetter__(P)\nrequire('./_descriptors') && $export($export.P + require('./_object-forced-pam'), 'Object', {\n __lookupSetter__: function __lookupSetter__(P) {\n var O = toObject(this);\n var K = toPrimitive(P, true);\n var D;\n do {\n if (D = getOwnPropertyDescriptor(O, K)) return D.set;\n } while (O = getPrototypeOf(O));\n }\n});\n"), } - file37 := &embedded.EmbeddedFile{ + file21 := &embedded.EmbeddedFile{ Filename: "es7.object.values.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("// https://github.com/tc39/proposal-object-values-entries\nvar $export = require('./_export');\nvar $values = require('./_object-to-array')(false);\n\n$export($export.S, 'Object', {\n values: function values(it) {\n return $values(it);\n }\n});\n"), } - file38 := &embedded.EmbeddedFile{ - Filename: "es7.observable.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("'use strict';\n// https://github.com/zenparsing/es-observable\nvar $export = require('./_export');\nvar global = require('./_global');\nvar core = require('./_core');\nvar microtask = require('./_microtask')();\nvar OBSERVABLE = require('./_wks')('observable');\nvar aFunction = require('./_a-function');\nvar anObject = require('./_an-object');\nvar anInstance = require('./_an-instance');\nvar redefineAll = require('./_redefine-all');\nvar hide = require('./_hide');\nvar forOf = require('./_for-of');\nvar RETURN = forOf.RETURN;\n\nvar getMethod = function (fn) {\n return fn == null ? undefined : aFunction(fn);\n};\n\nvar cleanupSubscription = function (subscription) {\n var cleanup = subscription._c;\n if (cleanup) {\n subscription._c = undefined;\n cleanup();\n }\n};\n\nvar subscriptionClosed = function (subscription) {\n return subscription._o === undefined;\n};\n\nvar closeSubscription = function (subscription) {\n if (!subscriptionClosed(subscription)) {\n subscription._o = undefined;\n cleanupSubscription(subscription);\n }\n};\n\nvar Subscription = function (observer, subscriber) {\n anObject(observer);\n this._c = undefined;\n this._o = observer;\n observer = new SubscriptionObserver(this);\n try {\n var cleanup = subscriber(observer);\n var subscription = cleanup;\n if (cleanup != null) {\n if (typeof cleanup.unsubscribe === 'function') cleanup = function () { subscription.unsubscribe(); };\n else aFunction(cleanup);\n this._c = cleanup;\n }\n } catch (e) {\n observer.error(e);\n return;\n } if (subscriptionClosed(this)) cleanupSubscription(this);\n};\n\nSubscription.prototype = redefineAll({}, {\n unsubscribe: function unsubscribe() { closeSubscription(this); }\n});\n\nvar SubscriptionObserver = function (subscription) {\n this._s = subscription;\n};\n\nSubscriptionObserver.prototype = redefineAll({}, {\n next: function next(value) {\n var subscription = this._s;\n if (!subscriptionClosed(subscription)) {\n var observer = subscription._o;\n try {\n var m = getMethod(observer.next);\n if (m) return m.call(observer, value);\n } catch (e) {\n try {\n closeSubscription(subscription);\n } finally {\n throw e;\n }\n }\n }\n },\n error: function error(value) {\n var subscription = this._s;\n if (subscriptionClosed(subscription)) throw value;\n var observer = subscription._o;\n subscription._o = undefined;\n try {\n var m = getMethod(observer.error);\n if (!m) throw value;\n value = m.call(observer, value);\n } catch (e) {\n try {\n cleanupSubscription(subscription);\n } finally {\n throw e;\n }\n } cleanupSubscription(subscription);\n return value;\n },\n complete: function complete(value) {\n var subscription = this._s;\n if (!subscriptionClosed(subscription)) {\n var observer = subscription._o;\n subscription._o = undefined;\n try {\n var m = getMethod(observer.complete);\n value = m ? m.call(observer, value) : undefined;\n } catch (e) {\n try {\n cleanupSubscription(subscription);\n } finally {\n throw e;\n }\n } cleanupSubscription(subscription);\n return value;\n }\n }\n});\n\nvar $Observable = function Observable(subscriber) {\n anInstance(this, $Observable, 'Observable', '_f')._f = aFunction(subscriber);\n};\n\nredefineAll($Observable.prototype, {\n subscribe: function subscribe(observer) {\n return new Subscription(observer, this._f);\n },\n forEach: function forEach(fn) {\n var that = this;\n return new (core.Promise || global.Promise)(function (resolve, reject) {\n aFunction(fn);\n var subscription = that.subscribe({\n next: function (value) {\n try {\n return fn(value);\n } catch (e) {\n reject(e);\n subscription.unsubscribe();\n }\n },\n error: reject,\n complete: resolve\n });\n });\n }\n});\n\nredefineAll($Observable, {\n from: function from(x) {\n var C = typeof this === 'function' ? this : $Observable;\n var method = getMethod(anObject(x)[OBSERVABLE]);\n if (method) {\n var observable = anObject(method.call(x));\n return observable.constructor === C ? observable : new C(function (observer) {\n return observable.subscribe(observer);\n });\n }\n return new C(function (observer) {\n var done = false;\n microtask(function () {\n if (!done) {\n try {\n if (forOf(x, false, function (it) {\n observer.next(it);\n if (done) return RETURN;\n }) === RETURN) return;\n } catch (e) {\n if (done) throw e;\n observer.error(e);\n return;\n } observer.complete();\n }\n });\n return function () { done = true; };\n });\n },\n of: function of() {\n for (var i = 0, l = arguments.length, items = Array(l); i < l;) items[i] = arguments[i++];\n return new (typeof this === 'function' ? this : $Observable)(function (observer) {\n var done = false;\n microtask(function () {\n if (!done) {\n for (var j = 0; j < items.length; ++j) {\n observer.next(items[j]);\n if (done) return;\n } observer.complete();\n }\n });\n return function () { done = true; };\n });\n }\n});\n\nhide($Observable.prototype, OBSERVABLE, function () { return this; });\n\n$export($export.G, { Observable: $Observable });\n\nrequire('./_set-species')('Observable');\n"), - } - file39 := &embedded.EmbeddedFile{ - Filename: "es7.promise.finally.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("// https://github.com/tc39/proposal-promise-finally\n'use strict';\nvar $export = require('./_export');\nvar core = require('./_core');\nvar global = require('./_global');\nvar speciesConstructor = require('./_species-constructor');\nvar promiseResolve = require('./_promise-resolve');\n\n$export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) {\n var C = speciesConstructor(this, core.Promise || global.Promise);\n var isFunction = typeof onFinally == 'function';\n return this.then(\n isFunction ? function (x) {\n return promiseResolve(C, onFinally()).then(function () { return x; });\n } : onFinally,\n isFunction ? function (e) {\n return promiseResolve(C, onFinally()).then(function () { throw e; });\n } : onFinally\n );\n} });\n"), - } - file3a := &embedded.EmbeddedFile{ - Filename: "es7.promise.try.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("'use strict';\n// https://github.com/tc39/proposal-promise-try\nvar $export = require('./_export');\nvar newPromiseCapability = require('./_new-promise-capability');\nvar perform = require('./_perform');\n\n$export($export.S, 'Promise', { 'try': function (callbackfn) {\n var promiseCapability = newPromiseCapability.f(this);\n var result = perform(callbackfn);\n (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v);\n return promiseCapability.promise;\n} });\n"), - } - file3b := &embedded.EmbeddedFile{ + file22 := &embedded.EmbeddedFile{ Filename: "es7.reflect.define-metadata.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var metadata = require('./_metadata');\nvar anObject = require('./_an-object');\nvar toMetaKey = metadata.key;\nvar ordinaryDefineOwnMetadata = metadata.set;\n\nmetadata.exp({ defineMetadata: function defineMetadata(metadataKey, metadataValue, target, targetKey) {\n ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), toMetaKey(targetKey));\n} });\n"), } - file3c := &embedded.EmbeddedFile{ + file23 := &embedded.EmbeddedFile{ Filename: "es7.reflect.delete-metadata.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var metadata = require('./_metadata');\nvar anObject = require('./_an-object');\nvar toMetaKey = metadata.key;\nvar getOrCreateMetadataMap = metadata.map;\nvar store = metadata.store;\n\nmetadata.exp({ deleteMetadata: function deleteMetadata(metadataKey, target /* , targetKey */) {\n var targetKey = arguments.length < 3 ? undefined : toMetaKey(arguments[2]);\n var metadataMap = getOrCreateMetadataMap(anObject(target), targetKey, false);\n if (metadataMap === undefined || !metadataMap['delete'](metadataKey)) return false;\n if (metadataMap.size) return true;\n var targetMetadata = store.get(target);\n targetMetadata['delete'](targetKey);\n return !!targetMetadata.size || store['delete'](target);\n} });\n"), } - file3d := &embedded.EmbeddedFile{ + file24 := &embedded.EmbeddedFile{ Filename: "es7.reflect.get-metadata-keys.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605883563, 0), Content: string("var Set = require('./es6.set');\nvar from = require('./_array-from-iterable');\nvar metadata = require('./_metadata');\nvar anObject = require('./_an-object');\nvar getPrototypeOf = require('./_object-gpo');\nvar ordinaryOwnMetadataKeys = metadata.keys;\nvar toMetaKey = metadata.key;\n\nvar ordinaryMetadataKeys = function (O, P) {\n var oKeys = ordinaryOwnMetadataKeys(O, P);\n var parent = getPrototypeOf(O);\n if (parent === null) return oKeys;\n var pKeys = ordinaryMetadataKeys(parent, P);\n return pKeys.length ? oKeys.length ? from(new Set(oKeys.concat(pKeys))) : pKeys : oKeys;\n};\n\nmetadata.exp({ getMetadataKeys: function getMetadataKeys(target /* , targetKey */) {\n return ordinaryMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1]));\n} });\n"), } - file3e := &embedded.EmbeddedFile{ + file25 := &embedded.EmbeddedFile{ Filename: "es7.reflect.get-metadata.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var metadata = require('./_metadata');\nvar anObject = require('./_an-object');\nvar getPrototypeOf = require('./_object-gpo');\nvar ordinaryHasOwnMetadata = metadata.has;\nvar ordinaryGetOwnMetadata = metadata.get;\nvar toMetaKey = metadata.key;\n\nvar ordinaryGetMetadata = function (MetadataKey, O, P) {\n var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P);\n if (hasOwn) return ordinaryGetOwnMetadata(MetadataKey, O, P);\n var parent = getPrototypeOf(O);\n return parent !== null ? ordinaryGetMetadata(MetadataKey, parent, P) : undefined;\n};\n\nmetadata.exp({ getMetadata: function getMetadata(metadataKey, target /* , targetKey */) {\n return ordinaryGetMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2]));\n} });\n"), } - file3f := &embedded.EmbeddedFile{ + file26 := &embedded.EmbeddedFile{ Filename: "es7.reflect.get-own-metadata-keys.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var metadata = require('./_metadata');\nvar anObject = require('./_an-object');\nvar ordinaryOwnMetadataKeys = metadata.keys;\nvar toMetaKey = metadata.key;\n\nmetadata.exp({ getOwnMetadataKeys: function getOwnMetadataKeys(target /* , targetKey */) {\n return ordinaryOwnMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1]));\n} });\n"), } - file3g := &embedded.EmbeddedFile{ + file27 := &embedded.EmbeddedFile{ Filename: "es7.reflect.get-own-metadata.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var metadata = require('./_metadata');\nvar anObject = require('./_an-object');\nvar ordinaryGetOwnMetadata = metadata.get;\nvar toMetaKey = metadata.key;\n\nmetadata.exp({ getOwnMetadata: function getOwnMetadata(metadataKey, target /* , targetKey */) {\n return ordinaryGetOwnMetadata(metadataKey, anObject(target)\n , arguments.length < 3 ? undefined : toMetaKey(arguments[2]));\n} });\n"), } - file3h := &embedded.EmbeddedFile{ + file28 := &embedded.EmbeddedFile{ Filename: "es7.reflect.has-metadata.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var metadata = require('./_metadata');\nvar anObject = require('./_an-object');\nvar getPrototypeOf = require('./_object-gpo');\nvar ordinaryHasOwnMetadata = metadata.has;\nvar toMetaKey = metadata.key;\n\nvar ordinaryHasMetadata = function (MetadataKey, O, P) {\n var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P);\n if (hasOwn) return true;\n var parent = getPrototypeOf(O);\n return parent !== null ? ordinaryHasMetadata(MetadataKey, parent, P) : false;\n};\n\nmetadata.exp({ hasMetadata: function hasMetadata(metadataKey, target /* , targetKey */) {\n return ordinaryHasMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2]));\n} });\n"), } - file3i := &embedded.EmbeddedFile{ + file29 := &embedded.EmbeddedFile{ Filename: "es7.reflect.has-own-metadata.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var metadata = require('./_metadata');\nvar anObject = require('./_an-object');\nvar ordinaryHasOwnMetadata = metadata.has;\nvar toMetaKey = metadata.key;\n\nmetadata.exp({ hasOwnMetadata: function hasOwnMetadata(metadataKey, target /* , targetKey */) {\n return ordinaryHasOwnMetadata(metadataKey, anObject(target)\n , arguments.length < 3 ? undefined : toMetaKey(arguments[2]));\n} });\n"), } - file3j := &embedded.EmbeddedFile{ + file2a := &embedded.EmbeddedFile{ Filename: "es7.reflect.metadata.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("var $metadata = require('./_metadata');\nvar anObject = require('./_an-object');\nvar aFunction = require('./_a-function');\nvar toMetaKey = $metadata.key;\nvar ordinaryDefineOwnMetadata = $metadata.set;\n\n$metadata.exp({ metadata: function metadata(metadataKey, metadataValue) {\n return function decorator(target, targetKey) {\n ordinaryDefineOwnMetadata(\n metadataKey, metadataValue,\n (targetKey !== undefined ? anObject : aFunction)(target),\n toMetaKey(targetKey)\n );\n };\n} });\n"), } - file3k := &embedded.EmbeddedFile{ - Filename: "es7.set.from.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("// https://tc39.github.io/proposal-setmap-offrom/#sec-set.from\nrequire('./_set-collection-from')('Set');\n"), - } - file3l := &embedded.EmbeddedFile{ - Filename: "es7.set.of.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("// https://tc39.github.io/proposal-setmap-offrom/#sec-set.of\nrequire('./_set-collection-of')('Set');\n"), - } - file3m := &embedded.EmbeddedFile{ - Filename: "es7.set.to-json.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar $export = require('./_export');\n\n$export($export.P + $export.R, 'Set', { toJSON: require('./_collection-to-json')('Set') });\n"), - } - file3n := &embedded.EmbeddedFile{ - Filename: "es7.string.at.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("'use strict';\n// https://github.com/mathiasbynens/String.prototype.at\nvar $export = require('./_export');\nvar $at = require('./_string-at')(true);\n\n$export($export.P, 'String', {\n at: function at(pos) {\n return $at(this, pos);\n }\n});\n"), - } - file3o := &embedded.EmbeddedFile{ + file2b := &embedded.EmbeddedFile{ Filename: "es7.string.match-all.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("'use strict';\n// https://tc39.github.io/String.prototype.matchAll/\nvar $export = require('./_export');\nvar defined = require('./_defined');\nvar toLength = require('./_to-length');\nvar isRegExp = require('./_is-regexp');\nvar getFlags = require('./_flags');\nvar RegExpProto = RegExp.prototype;\n\nvar $RegExpStringIterator = function (regexp, string) {\n this._r = regexp;\n this._s = string;\n};\n\nrequire('./_iter-create')($RegExpStringIterator, 'RegExp String', function next() {\n var match = this._r.exec(this._s);\n return { value: match, done: match === null };\n});\n\n$export($export.P, 'String', {\n matchAll: function matchAll(regexp) {\n defined(this);\n if (!isRegExp(regexp)) throw TypeError(regexp + ' is not a regexp!');\n var S = String(this);\n var flags = 'flags' in RegExpProto ? String(regexp.flags) : getFlags.call(regexp);\n var rx = new RegExp(regexp.source, ~flags.indexOf('g') ? flags : 'g' + flags);\n rx.lastIndex = toLength(regexp.lastIndex);\n return new $RegExpStringIterator(rx, S);\n }\n});\n"), } - file3p := &embedded.EmbeddedFile{ - Filename: "es7.string.pad-end.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("'use strict';\n// https://github.com/tc39/proposal-string-pad-start-end\nvar $export = require('./_export');\nvar $pad = require('./_string-pad');\n\n$export($export.P, 'String', {\n padEnd: function padEnd(maxLength /* , fillString = ' ' */) {\n return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, false);\n }\n});\n"), - } - file3q := &embedded.EmbeddedFile{ - Filename: "es7.string.pad-start.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("'use strict';\n// https://github.com/tc39/proposal-string-pad-start-end\nvar $export = require('./_export');\nvar $pad = require('./_string-pad');\n\n$export($export.P, 'String', {\n padStart: function padStart(maxLength /* , fillString = ' ' */) {\n return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, true);\n }\n});\n"), - } - file3r := &embedded.EmbeddedFile{ + file2c := &embedded.EmbeddedFile{ Filename: "es7.string.trim-left.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("'use strict';\n// https://github.com/sebmarkbage/ecmascript-string-left-right-trim\nrequire('./_string-trim')('trimLeft', function ($trim) {\n return function trimLeft() {\n return $trim(this, 1);\n };\n}, 'trimStart');\n"), } - file3s := &embedded.EmbeddedFile{ + file2d := &embedded.EmbeddedFile{ Filename: "es7.string.trim-right.js", - FileModTime: time.Unix(1605797754, 0), + FileModTime: time.Unix(1605865564, 0), Content: string("'use strict';\n// https://github.com/sebmarkbage/ecmascript-string-left-right-trim\nrequire('./_string-trim')('trimRight', function ($trim) {\n return function trimRight() {\n return $trim(this, 2);\n };\n}, 'trimEnd');\n"), } - file3t := &embedded.EmbeddedFile{ - Filename: "es7.symbol.async-iterator.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("require('./_wks-define')('asyncIterator');\n"), - } - file3u := &embedded.EmbeddedFile{ - Filename: "es7.symbol.observable.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("require('./_wks-define')('observable');\n"), - } - file3v := &embedded.EmbeddedFile{ - Filename: "es7.system.global.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("// https://github.com/tc39/proposal-global\nvar $export = require('./_export');\n\n$export($export.S, 'System', { global: require('./_global') });\n"), - } - file3w := &embedded.EmbeddedFile{ - Filename: "es7.weak-map.from.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from\nrequire('./_set-collection-from')('WeakMap');\n"), - } - file3x := &embedded.EmbeddedFile{ - Filename: "es7.weak-map.of.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of\nrequire('./_set-collection-of')('WeakMap');\n"), - } - file3y := &embedded.EmbeddedFile{ - Filename: "es7.weak-set.from.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("// https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.from\nrequire('./_set-collection-from')('WeakSet');\n"), - } - file3z := &embedded.EmbeddedFile{ - Filename: "es7.weak-set.of.js", - FileModTime: time.Unix(1605797754, 0), - - Content: string("// https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.of\nrequire('./_set-collection-of')('WeakSet');\n"), - } // define dirs dir1 := &embedded.EmbeddedDir{ Filename: "", - DirModTime: time.Unix(1605797780, 0), + DirModTime: time.Unix(1605889417, 0), ChildFiles: []*embedded.EmbeddedFile{ file2, // "_a-function.js" file3, // "_add-to-unscopables.js" - file4, // "_an-instance.js" - file5, // "_an-object.js" - file6, // "_array-from-iterable.js" - file7, // "_array-includes.js" - file8, // "_array-methods.js" - file9, // "_array-species-constructor.js" - filea, // "_array-species-create.js" - fileb, // "_classof.js" - filec, // "_cof.js" - filed, // "_collection-strong.js" - filee, // "_collection-to-json.js" - filef, // "_collection-weak.js" - fileg, // "_collection.js" - fileh, // "_core.js" - filei, // "_create-property.js" - filej, // "_ctx.js" - filek, // "_defined.js" - filel, // "_descriptors.js" - filem, // "_dom-create.js" - filen, // "_enum-bug-keys.js" - fileo, // "_export.js" - filep, // "_fails.js" - fileq, // "_flags.js" - filer, // "_flatten-into-array.js" - files, // "_for-of.js" - filet, // "_global.js" - fileu, // "_has.js" - filev, // "_hide.js" - filew, // "_html.js" - filex, // "_ie8-dom-define.js" - filey, // "_inherit-if-required.js" - filez, // "_invoke.js" - file10, // "_iobject.js" - file11, // "_is-array-iter.js" - file12, // "_is-array.js" - file13, // "_is-object.js" - file14, // "_is-regexp.js" - file15, // "_iter-call.js" - file16, // "_iter-create.js" - file17, // "_iter-define.js" - file18, // "_iter-detect.js" - file19, // "_iter-step.js" - file1a, // "_iterators.js" - file1b, // "_library.js" - file1c, // "_meta.js" - file1d, // "_metadata.js" - file1e, // "_microtask.js" - file1f, // "_new-promise-capability.js" - file1g, // "_object-assign.js" - file1h, // "_object-create.js" - file1i, // "_object-dp.js" - file1j, // "_object-dps.js" - file1k, // "_object-forced-pam.js" - file1l, // "_object-gopd.js" - file1m, // "_object-gopn.js" - file1n, // "_object-gops.js" - file1o, // "_object-gpo.js" - file1p, // "_object-keys-internal.js" - file1q, // "_object-keys.js" - file1r, // "_object-pie.js" - file1s, // "_object-to-array.js" - file1t, // "_own-keys.js" - file1u, // "_perform.js" - file1v, // "_promise-resolve.js" - file1w, // "_property-desc.js" - file1x, // "_redefine-all.js" - file1y, // "_redefine.js" - file1z, // "_set-collection-from.js" - file20, // "_set-collection-of.js" - file21, // "_set-proto.js" - file22, // "_set-species.js" - file23, // "_set-to-string-tag.js" - file24, // "_shared-key.js" - file25, // "_shared.js" - file26, // "_species-constructor.js" - file27, // "_string-at.js" - file28, // "_string-pad.js" - file29, // "_string-repeat.js" - file2a, // "_string-trim.js" - file2b, // "_string-ws.js" - file2c, // "_task.js" - file2d, // "_to-absolute-index.js" - file2e, // "_to-integer.js" - file2f, // "_to-iobject.js" - file2g, // "_to-length.js" - file2h, // "_to-object.js" - file2i, // "_to-primitive.js" - file2j, // "_uid.js" - file2k, // "_validate-collection.js" - file2l, // "_wks-define.js" - file2m, // "_wks-ext.js" - file2n, // "_wks.js" - file2o, // "core.get-iterator-method.js" - file2p, // "es6.map.js" - file2q, // "es6.promise.js" - file2r, // "es6.set.js" - file2s, // "es6.weak-map.js" - file2t, // "es7.array.flat-map.js" - file2u, // "es7.array.flatten.js" - file2v, // "es7.asap.js" - file2w, // "es7.error.is-error.js" - file2x, // "es7.global.js" - file2y, // "es7.map.from.js" - file2z, // "es7.map.of.js" - file30, // "es7.map.to-json.js" - file31, // "es7.object.define-getter.js" - file32, // "es7.object.define-setter.js" - file33, // "es7.object.entries.js" - file34, // "es7.object.get-own-property-descriptors.js" - file35, // "es7.object.lookup-getter.js" - file36, // "es7.object.lookup-setter.js" - file37, // "es7.object.values.js" - file38, // "es7.observable.js" - file39, // "es7.promise.finally.js" - file3a, // "es7.promise.try.js" - file3b, // "es7.reflect.define-metadata.js" - file3c, // "es7.reflect.delete-metadata.js" - file3d, // "es7.reflect.get-metadata-keys.js" - file3e, // "es7.reflect.get-metadata.js" - file3f, // "es7.reflect.get-own-metadata-keys.js" - file3g, // "es7.reflect.get-own-metadata.js" - file3h, // "es7.reflect.has-metadata.js" - file3i, // "es7.reflect.has-own-metadata.js" - file3j, // "es7.reflect.metadata.js" - file3k, // "es7.set.from.js" - file3l, // "es7.set.of.js" - file3m, // "es7.set.to-json.js" - file3n, // "es7.string.at.js" - file3o, // "es7.string.match-all.js" - file3p, // "es7.string.pad-end.js" - file3q, // "es7.string.pad-start.js" - file3r, // "es7.string.trim-left.js" - file3s, // "es7.string.trim-right.js" - file3t, // "es7.symbol.async-iterator.js" - file3u, // "es7.symbol.observable.js" - file3v, // "es7.system.global.js" - file3w, // "es7.weak-map.from.js" - file3x, // "es7.weak-map.of.js" - file3y, // "es7.weak-set.from.js" - file3z, // "es7.weak-set.of.js" + file4, // "_an-object.js" + file5, // "_array-from-iterable.js" + file6, // "_array-includes.js" + file7, // "_array-species-constructor.js" + file8, // "_array-species-create.js" + file9, // "_classof.js" + filea, // "_cof.js" + fileb, // "_core.js" + filec, // "_create-property.js" + filed, // "_ctx.js" + filee, // "_defined.js" + filef, // "_descriptors.js" + fileg, // "_enum-bug-keys.js" + fileh, // "_export.js" + filei, // "_fails.js" + filej, // "_flags.js" + filek, // "_flatten-into-array.js" + filel, // "_for-of.js" + filem, // "_global.js" + filen, // "_has.js" + fileo, // "_hide.js" + filep, // "_ie8-dom-define.js" + fileq, // "_iobject.js" + filer, // "_is-array-iter.js" + files, // "_is-array.js" + filet, // "_is-object.js" + fileu, // "_is-regexp.js" + filev, // "_iter-call.js" + filew, // "_iter-create.js" + filex, // "_iterators.js" + filey, // "_library.js" + filez, // "_metadata.js" + file10, // "_object-create.js" + file11, // "_object-dp.js" + file12, // "_object-dps.js" + file13, // "_object-forced-pam.js" + file14, // "_object-gopd.js" + file15, // "_object-gopn.js" + file16, // "_object-gops.js" + file17, // "_object-gpo.js" + file18, // "_object-keys-internal.js" + file19, // "_object-keys.js" + file1a, // "_object-pie.js" + file1b, // "_object-to-array.js" + file1c, // "_own-keys.js" + file1d, // "_property-desc.js" + file1e, // "_redefine.js" + file1f, // "_set-to-string-tag.js" + file1g, // "_shared-key.js" + file1h, // "_shared.js" + file1i, // "_string-trim.js" + file1j, // "_string-ws.js" + file1k, // "_to-absolute-index.js" + file1l, // "_to-integer.js" + file1m, // "_to-iobject.js" + file1n, // "_to-length.js" + file1o, // "_to-object.js" + file1p, // "_to-primitive.js" + file1q, // "_uid.js" + file1r, // "_wks.js" + file1s, // "core.get-iterator-method.js" + file1t, // "es7.array.flat-map.js" + file1u, // "es7.array.flatten.js" + file1v, // "es7.object.define-getter.js" + file1w, // "es7.object.define-setter.js" + file1x, // "es7.object.entries.js" + file1y, // "es7.object.get-own-property-descriptors.js" + file1z, // "es7.object.lookup-getter.js" + file20, // "es7.object.lookup-setter.js" + file21, // "es7.object.values.js" + file22, // "es7.reflect.define-metadata.js" + file23, // "es7.reflect.delete-metadata.js" + file24, // "es7.reflect.get-metadata-keys.js" + file25, // "es7.reflect.get-metadata.js" + file26, // "es7.reflect.get-own-metadata-keys.js" + file27, // "es7.reflect.get-own-metadata.js" + file28, // "es7.reflect.has-metadata.js" + file29, // "es7.reflect.has-own-metadata.js" + file2a, // "es7.reflect.metadata.js" + file2b, // "es7.string.match-all.js" + file2c, // "es7.string.trim-left.js" + file2d, // "es7.string.trim-right.js" }, } @@ -1020,153 +614,95 @@ func init() { // register embeddedBox embedded.RegisterEmbeddedBox(`core-js`, &embedded.EmbeddedBox{ Name: `core-js`, - Time: time.Unix(1605797780, 0), + Time: time.Unix(1605889417, 0), Dirs: map[string]*embedded.EmbeddedDir{ "": dir1, }, Files: map[string]*embedded.EmbeddedFile{ "_a-function.js": file2, "_add-to-unscopables.js": file3, - "_an-instance.js": file4, - "_an-object.js": file5, - "_array-from-iterable.js": file6, - "_array-includes.js": file7, - "_array-methods.js": file8, - "_array-species-constructor.js": file9, - "_array-species-create.js": filea, - "_classof.js": fileb, - "_cof.js": filec, - "_collection-strong.js": filed, - "_collection-to-json.js": filee, - "_collection-weak.js": filef, - "_collection.js": fileg, - "_core.js": fileh, - "_create-property.js": filei, - "_ctx.js": filej, - "_defined.js": filek, - "_descriptors.js": filel, - "_dom-create.js": filem, - "_enum-bug-keys.js": filen, - "_export.js": fileo, - "_fails.js": filep, - "_flags.js": fileq, - "_flatten-into-array.js": filer, - "_for-of.js": files, - "_global.js": filet, - "_has.js": fileu, - "_hide.js": filev, - "_html.js": filew, - "_ie8-dom-define.js": filex, - "_inherit-if-required.js": filey, - "_invoke.js": filez, - "_iobject.js": file10, - "_is-array-iter.js": file11, - "_is-array.js": file12, - "_is-object.js": file13, - "_is-regexp.js": file14, - "_iter-call.js": file15, - "_iter-create.js": file16, - "_iter-define.js": file17, - "_iter-detect.js": file18, - "_iter-step.js": file19, - "_iterators.js": file1a, - "_library.js": file1b, - "_meta.js": file1c, - "_metadata.js": file1d, - "_microtask.js": file1e, - "_new-promise-capability.js": file1f, - "_object-assign.js": file1g, - "_object-create.js": file1h, - "_object-dp.js": file1i, - "_object-dps.js": file1j, - "_object-forced-pam.js": file1k, - "_object-gopd.js": file1l, - "_object-gopn.js": file1m, - "_object-gops.js": file1n, - "_object-gpo.js": file1o, - "_object-keys-internal.js": file1p, - "_object-keys.js": file1q, - "_object-pie.js": file1r, - "_object-to-array.js": file1s, - "_own-keys.js": file1t, - "_perform.js": file1u, - "_promise-resolve.js": file1v, - "_property-desc.js": file1w, - "_redefine-all.js": file1x, - "_redefine.js": file1y, - "_set-collection-from.js": file1z, - "_set-collection-of.js": file20, - "_set-proto.js": file21, - "_set-species.js": file22, - "_set-to-string-tag.js": file23, - "_shared-key.js": file24, - "_shared.js": file25, - "_species-constructor.js": file26, - "_string-at.js": file27, - "_string-pad.js": file28, - "_string-repeat.js": file29, - "_string-trim.js": file2a, - "_string-ws.js": file2b, - "_task.js": file2c, - "_to-absolute-index.js": file2d, - "_to-integer.js": file2e, - "_to-iobject.js": file2f, - "_to-length.js": file2g, - "_to-object.js": file2h, - "_to-primitive.js": file2i, - "_uid.js": file2j, - "_validate-collection.js": file2k, - "_wks-define.js": file2l, - "_wks-ext.js": file2m, - "_wks.js": file2n, - "core.get-iterator-method.js": file2o, - "es6.map.js": file2p, - "es6.promise.js": file2q, - "es6.set.js": file2r, - "es6.weak-map.js": file2s, - "es7.array.flat-map.js": file2t, - "es7.array.flatten.js": file2u, - "es7.asap.js": file2v, - "es7.error.is-error.js": file2w, - "es7.global.js": file2x, - "es7.map.from.js": file2y, - "es7.map.of.js": file2z, - "es7.map.to-json.js": file30, - "es7.object.define-getter.js": file31, - "es7.object.define-setter.js": file32, - "es7.object.entries.js": file33, - "es7.object.get-own-property-descriptors.js": file34, - "es7.object.lookup-getter.js": file35, - "es7.object.lookup-setter.js": file36, - "es7.object.values.js": file37, - "es7.observable.js": file38, - "es7.promise.finally.js": file39, - "es7.promise.try.js": file3a, - "es7.reflect.define-metadata.js": file3b, - "es7.reflect.delete-metadata.js": file3c, - "es7.reflect.get-metadata-keys.js": file3d, - "es7.reflect.get-metadata.js": file3e, - "es7.reflect.get-own-metadata-keys.js": file3f, - "es7.reflect.get-own-metadata.js": file3g, - "es7.reflect.has-metadata.js": file3h, - "es7.reflect.has-own-metadata.js": file3i, - "es7.reflect.metadata.js": file3j, - "es7.set.from.js": file3k, - "es7.set.of.js": file3l, - "es7.set.to-json.js": file3m, - "es7.string.at.js": file3n, - "es7.string.match-all.js": file3o, - "es7.string.pad-end.js": file3p, - "es7.string.pad-start.js": file3q, - "es7.string.trim-left.js": file3r, - "es7.string.trim-right.js": file3s, - "es7.symbol.async-iterator.js": file3t, - "es7.symbol.observable.js": file3u, - "es7.system.global.js": file3v, - "es7.weak-map.from.js": file3w, - "es7.weak-map.of.js": file3x, - "es7.weak-set.from.js": file3y, - "es7.weak-set.of.js": file3z, + "_an-object.js": file4, + "_array-from-iterable.js": file5, + "_array-includes.js": file6, + "_array-species-constructor.js": file7, + "_array-species-create.js": file8, + "_classof.js": file9, + "_cof.js": filea, + "_core.js": fileb, + "_create-property.js": filec, + "_ctx.js": filed, + "_defined.js": filee, + "_descriptors.js": filef, + "_enum-bug-keys.js": fileg, + "_export.js": fileh, + "_fails.js": filei, + "_flags.js": filej, + "_flatten-into-array.js": filek, + "_for-of.js": filel, + "_global.js": filem, + "_has.js": filen, + "_hide.js": fileo, + "_ie8-dom-define.js": filep, + "_iobject.js": fileq, + "_is-array-iter.js": filer, + "_is-array.js": files, + "_is-object.js": filet, + "_is-regexp.js": fileu, + "_iter-call.js": filev, + "_iter-create.js": filew, + "_iterators.js": filex, + "_library.js": filey, + "_metadata.js": filez, + "_object-create.js": file10, + "_object-dp.js": file11, + "_object-dps.js": file12, + "_object-forced-pam.js": file13, + "_object-gopd.js": file14, + "_object-gopn.js": file15, + "_object-gops.js": file16, + "_object-gpo.js": file17, + "_object-keys-internal.js": file18, + "_object-keys.js": file19, + "_object-pie.js": file1a, + "_object-to-array.js": file1b, + "_own-keys.js": file1c, + "_property-desc.js": file1d, + "_redefine.js": file1e, + "_set-to-string-tag.js": file1f, + "_shared-key.js": file1g, + "_shared.js": file1h, + "_string-trim.js": file1i, + "_string-ws.js": file1j, + "_to-absolute-index.js": file1k, + "_to-integer.js": file1l, + "_to-iobject.js": file1m, + "_to-length.js": file1n, + "_to-object.js": file1o, + "_to-primitive.js": file1p, + "_uid.js": file1q, + "_wks.js": file1r, + "core.get-iterator-method.js": file1s, + "es7.array.flat-map.js": file1t, + "es7.array.flatten.js": file1u, + "es7.object.define-getter.js": file1v, + "es7.object.define-setter.js": file1w, + "es7.object.entries.js": file1x, + "es7.object.get-own-property-descriptors.js": file1y, + "es7.object.lookup-getter.js": file1z, + "es7.object.lookup-setter.js": file20, + "es7.object.values.js": file21, + "es7.reflect.define-metadata.js": file22, + "es7.reflect.delete-metadata.js": file23, + "es7.reflect.get-metadata-keys.js": file24, + "es7.reflect.get-metadata.js": file25, + "es7.reflect.get-own-metadata-keys.js": file26, + "es7.reflect.get-own-metadata.js": file27, + "es7.reflect.has-metadata.js": file28, + "es7.reflect.has-own-metadata.js": file29, + "es7.reflect.metadata.js": file2a, + "es7.string.match-all.js": file2b, + "es7.string.trim-left.js": file2c, + "es7.string.trim-right.js": file2d, }, }) }