@babel/runtime
Advanced tools
Comparing version 7.16.3 to 7.23.8
@@ -8,11 +8,8 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { | ||
desc.configurable = !!desc.configurable; | ||
if ('value' in desc || desc.initializer) { | ||
desc.writable = true; | ||
} | ||
desc = decorators.slice().reverse().reduce(function (desc, decorator) { | ||
return decorator(target, property, desc) || desc; | ||
}, desc); | ||
if (context && desc.initializer !== void 0) { | ||
@@ -22,3 +19,2 @@ desc.value = desc.initializer ? desc.initializer.call(context) : void 0; | ||
} | ||
if (desc.initializer === void 0) { | ||
@@ -28,7 +24,4 @@ Object.defineProperty(target, property, desc); | ||
} | ||
return desc; | ||
} | ||
module.exports = _applyDecoratedDescriptor; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _applyDecoratedDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports; |
function _arrayLikeToArray(arr, len) { | ||
if (len == null || len > arr.length) len = arr.length; | ||
for (var i = 0, arr2 = new Array(len); i < len; i++) { | ||
arr2[i] = arr[i]; | ||
} | ||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; | ||
return arr2; | ||
} | ||
module.exports = _arrayLikeToArray; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
function _arrayWithHoles(arr) { | ||
if (Array.isArray(arr)) return arr; | ||
} | ||
module.exports = _arrayWithHoles; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var arrayLikeToArray = require("./arrayLikeToArray.js"); | ||
function _arrayWithoutHoles(arr) { | ||
if (Array.isArray(arr)) return arrayLikeToArray(arr); | ||
} | ||
module.exports = _arrayWithoutHoles; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -5,7 +5,4 @@ function _assertThisInitialized(self) { | ||
} | ||
return self; | ||
} | ||
module.exports = _assertThisInitialized; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -1,99 +0,64 @@ | ||
var AwaitValue = require("./AwaitValue.js"); | ||
function AsyncGenerator(gen) { | ||
var front, back; | ||
function send(key, arg) { | ||
return new Promise(function (resolve, reject) { | ||
var request = { | ||
key: key, | ||
arg: arg, | ||
resolve: resolve, | ||
reject: reject, | ||
next: null | ||
}; | ||
if (back) { | ||
back = back.next = request; | ||
} else { | ||
front = back = request; | ||
resume(key, arg); | ||
} | ||
}); | ||
} | ||
function resume(key, arg) { | ||
var OverloadYield = require("./OverloadYield.js"); | ||
function AsyncGenerator(e) { | ||
var r, t; | ||
function resume(r, t) { | ||
try { | ||
var result = gen[key](arg); | ||
var value = result.value; | ||
var wrappedAwait = value instanceof AwaitValue; | ||
Promise.resolve(wrappedAwait ? value.wrapped : value).then(function (arg) { | ||
if (wrappedAwait) { | ||
resume(key === "return" ? "return" : "next", arg); | ||
return; | ||
var n = e[r](t), | ||
o = n.value, | ||
u = o instanceof OverloadYield; | ||
Promise.resolve(u ? o.v : o).then(function (t) { | ||
if (u) { | ||
var i = "return" === r ? "return" : "next"; | ||
if (!o.k || t.done) return resume(i, t); | ||
t = e[i](t).value; | ||
} | ||
settle(result.done ? "return" : "normal", arg); | ||
}, function (err) { | ||
resume("throw", err); | ||
settle(n.done ? "return" : "normal", t); | ||
}, function (e) { | ||
resume("throw", e); | ||
}); | ||
} catch (err) { | ||
settle("throw", err); | ||
} catch (e) { | ||
settle("throw", e); | ||
} | ||
} | ||
function settle(type, value) { | ||
switch (type) { | ||
function settle(e, n) { | ||
switch (e) { | ||
case "return": | ||
front.resolve({ | ||
value: value, | ||
done: true | ||
r.resolve({ | ||
value: n, | ||
done: !0 | ||
}); | ||
break; | ||
case "throw": | ||
front.reject(value); | ||
r.reject(n); | ||
break; | ||
default: | ||
front.resolve({ | ||
value: value, | ||
done: false | ||
r.resolve({ | ||
value: n, | ||
done: !1 | ||
}); | ||
break; | ||
} | ||
front = front.next; | ||
if (front) { | ||
resume(front.key, front.arg); | ||
} else { | ||
back = null; | ||
} | ||
(r = r.next) ? resume(r.key, r.arg) : t = null; | ||
} | ||
this._invoke = send; | ||
if (typeof gen["return"] !== "function") { | ||
this["return"] = undefined; | ||
} | ||
this._invoke = function (e, n) { | ||
return new Promise(function (o, u) { | ||
var i = { | ||
key: e, | ||
arg: n, | ||
resolve: o, | ||
reject: u, | ||
next: null | ||
}; | ||
t ? t = t.next = i : (r = t = i, resume(e, n)); | ||
}); | ||
}, "function" != typeof e["return"] && (this["return"] = void 0); | ||
} | ||
AsyncGenerator.prototype[typeof Symbol === "function" && Symbol.asyncIterator || "@@asyncIterator"] = function () { | ||
AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator || "@@asyncIterator"] = function () { | ||
return this; | ||
}, AsyncGenerator.prototype.next = function (e) { | ||
return this._invoke("next", e); | ||
}, AsyncGenerator.prototype["throw"] = function (e) { | ||
return this._invoke("throw", e); | ||
}, AsyncGenerator.prototype["return"] = function (e) { | ||
return this._invoke("return", e); | ||
}; | ||
AsyncGenerator.prototype.next = function (arg) { | ||
return this._invoke("next", arg); | ||
}; | ||
AsyncGenerator.prototype["throw"] = function (arg) { | ||
return this._invoke("throw", arg); | ||
}; | ||
AsyncGenerator.prototype["return"] = function (arg) { | ||
return this._invoke("return", arg); | ||
}; | ||
module.exports = AsyncGenerator; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = AsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -1,57 +0,24 @@ | ||
function _asyncGeneratorDelegate(inner, awaitWrap) { | ||
var iter = {}, | ||
waiting = false; | ||
function pump(key, value) { | ||
waiting = true; | ||
value = new Promise(function (resolve) { | ||
resolve(inner[key](value)); | ||
}); | ||
return { | ||
done: false, | ||
value: awaitWrap(value) | ||
var OverloadYield = require("./OverloadYield.js"); | ||
function _asyncGeneratorDelegate(t) { | ||
var e = {}, | ||
n = !1; | ||
function pump(e, r) { | ||
return n = !0, r = new Promise(function (n) { | ||
n(t[e](r)); | ||
}), { | ||
done: !1, | ||
value: new OverloadYield(r, 1) | ||
}; | ||
} | ||
; | ||
iter[typeof Symbol !== "undefined" && Symbol.iterator || "@@iterator"] = function () { | ||
return e["undefined" != typeof Symbol && Symbol.iterator || "@@iterator"] = function () { | ||
return this; | ||
}; | ||
iter.next = function (value) { | ||
if (waiting) { | ||
waiting = false; | ||
return value; | ||
} | ||
return pump("next", value); | ||
}; | ||
if (typeof inner["throw"] === "function") { | ||
iter["throw"] = function (value) { | ||
if (waiting) { | ||
waiting = false; | ||
throw value; | ||
} | ||
return pump("throw", value); | ||
}; | ||
} | ||
if (typeof inner["return"] === "function") { | ||
iter["return"] = function (value) { | ||
if (waiting) { | ||
waiting = false; | ||
return value; | ||
} | ||
return pump("return", value); | ||
}; | ||
} | ||
return iter; | ||
}, e.next = function (t) { | ||
return n ? (n = !1, t) : pump("next", t); | ||
}, "function" == typeof t["throw"] && (e["throw"] = function (t) { | ||
if (n) throw n = !1, t; | ||
return pump("throw", t); | ||
}), "function" == typeof t["return"] && (e["return"] = function (t) { | ||
return n ? (n = !1, t) : pump("return", t); | ||
}), e; | ||
} | ||
module.exports = _asyncGeneratorDelegate; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _asyncGeneratorDelegate, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -1,35 +0,27 @@ | ||
function _asyncIterator(iterable) { | ||
var method, | ||
async, | ||
sync, | ||
retry = 2; | ||
if (typeof Symbol !== "undefined") { | ||
async = Symbol.asyncIterator; | ||
sync = Symbol.iterator; | ||
function _asyncIterator(r) { | ||
var n, | ||
t, | ||
o, | ||
e = 2; | ||
for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) { | ||
if (t && null != (n = r[t])) return n.call(r); | ||
if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r)); | ||
t = "@@asyncIterator", o = "@@iterator"; | ||
} | ||
while (retry--) { | ||
if (async && (method = iterable[async]) != null) { | ||
return method.call(iterable); | ||
} | ||
if (sync && (method = iterable[sync]) != null) { | ||
return new AsyncFromSyncIterator(method.call(iterable)); | ||
} | ||
async = "@@asyncIterator"; | ||
sync = "@@iterator"; | ||
} | ||
throw new TypeError("Object is not async iterable"); | ||
} | ||
function AsyncFromSyncIterator(s) { | ||
AsyncFromSyncIterator = function AsyncFromSyncIterator(s) { | ||
this.s = s; | ||
this.n = s.next; | ||
}; | ||
AsyncFromSyncIterator.prototype = { | ||
function AsyncFromSyncIterator(r) { | ||
function AsyncFromSyncIteratorContinuation(r) { | ||
if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); | ||
var n = r.done; | ||
return Promise.resolve(r.value).then(function (r) { | ||
return { | ||
value: r, | ||
done: n | ||
}; | ||
}); | ||
} | ||
return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) { | ||
this.s = r, this.n = r.next; | ||
}, AsyncFromSyncIterator.prototype = { | ||
s: null, | ||
@@ -40,39 +32,15 @@ n: null, | ||
}, | ||
"return": function _return(value) { | ||
var ret = this.s["return"]; | ||
if (ret === undefined) { | ||
return Promise.resolve({ | ||
value: value, | ||
done: true | ||
}); | ||
} | ||
return AsyncFromSyncIteratorContinuation(ret.apply(this.s, arguments)); | ||
"return": function _return(r) { | ||
var n = this.s["return"]; | ||
return void 0 === n ? Promise.resolve({ | ||
value: r, | ||
done: !0 | ||
}) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); | ||
}, | ||
"throw": function _throw(value) { | ||
var thr = this.s["return"]; | ||
if (thr === undefined) return Promise.reject(value); | ||
return AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments)); | ||
"throw": function _throw(r) { | ||
var n = this.s["return"]; | ||
return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); | ||
} | ||
}; | ||
function AsyncFromSyncIteratorContinuation(r) { | ||
if (Object(r) !== r) { | ||
return Promise.reject(new TypeError(r + " is not an object.")); | ||
} | ||
var done = r.done; | ||
return Promise.resolve(r.value).then(function (value) { | ||
return { | ||
value: value, | ||
done: done | ||
}; | ||
}); | ||
} | ||
return new AsyncFromSyncIterator(s); | ||
}, new AsyncFromSyncIterator(r); | ||
} | ||
module.exports = _asyncIterator; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _asyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -9,3 +9,2 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { | ||
} | ||
if (info.done) { | ||
@@ -17,18 +16,14 @@ resolve(value); | ||
} | ||
function _asyncToGenerator(fn) { | ||
return function () { | ||
var self = this, | ||
args = arguments; | ||
args = arguments; | ||
return new Promise(function (resolve, reject) { | ||
var gen = fn.apply(self, args); | ||
function _next(value) { | ||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); | ||
} | ||
function _throw(err) { | ||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); | ||
} | ||
_next(undefined); | ||
@@ -38,4 +33,2 @@ }); | ||
} | ||
module.exports = _asyncToGenerator; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -1,8 +0,5 @@ | ||
var AwaitValue = require("./AwaitValue.js"); | ||
function _awaitAsyncGenerator(value) { | ||
return new AwaitValue(value); | ||
var OverloadYield = require("./OverloadYield.js"); | ||
function _awaitAsyncGenerator(e) { | ||
return new OverloadYield(e, 0); | ||
} | ||
module.exports = _awaitAsyncGenerator; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _awaitAsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; |
function _AwaitValue(value) { | ||
this.wrapped = value; | ||
} | ||
module.exports = _AwaitValue; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _AwaitValue, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -6,4 +6,2 @@ function _checkPrivateRedeclaration(obj, privateCollection) { | ||
} | ||
module.exports = _checkPrivateRedeclaration; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _checkPrivateRedeclaration, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -8,6 +8,4 @@ function _classApplyDescriptorDestructureSet(receiver, descriptor) { | ||
} | ||
}; | ||
} | ||
return descriptor.__destrObj; | ||
@@ -18,8 +16,5 @@ } else { | ||
} | ||
return descriptor; | ||
} | ||
} | ||
module.exports = _classApplyDescriptorDestructureSet; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classApplyDescriptorDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -5,7 +5,4 @@ function _classApplyDescriptorGet(receiver, descriptor) { | ||
} | ||
return descriptor.value; | ||
} | ||
module.exports = _classApplyDescriptorGet; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classApplyDescriptorGet, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -8,8 +8,5 @@ function _classApplyDescriptorSet(receiver, descriptor, value) { | ||
} | ||
descriptor.value = value; | ||
} | ||
} | ||
module.exports = _classApplyDescriptorSet; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classApplyDescriptorSet, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -6,4 +6,2 @@ function _classCallCheck(instance, Constructor) { | ||
} | ||
module.exports = _classCallCheck; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -6,4 +6,2 @@ function _classCheckPrivateStaticAccess(receiver, classConstructor) { | ||
} | ||
module.exports = _classCheckPrivateStaticAccess; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classCheckPrivateStaticAccess, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -6,4 +6,2 @@ function _classCheckPrivateStaticFieldDescriptor(descriptor, action) { | ||
} | ||
module.exports = _classCheckPrivateStaticFieldDescriptor; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classCheckPrivateStaticFieldDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -5,7 +5,4 @@ function _classExtractFieldDescriptor(receiver, privateMap, action) { | ||
} | ||
return privateMap.get(receiver); | ||
} | ||
module.exports = _classExtractFieldDescriptor; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classExtractFieldDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports; |
function _classNameTDZError(name) { | ||
throw new Error("Class \"" + name + "\" cannot be referenced in computed property keys."); | ||
throw new ReferenceError("Class \"" + name + "\" cannot be referenced in computed property keys."); | ||
} | ||
module.exports = _classNameTDZError; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classNameTDZError, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var classApplyDescriptorDestructureSet = require("./classApplyDescriptorDestructureSet.js"); | ||
var classExtractFieldDescriptor = require("./classExtractFieldDescriptor.js"); | ||
function _classPrivateFieldDestructureSet(receiver, privateMap) { | ||
@@ -9,4 +7,2 @@ var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set"); | ||
} | ||
module.exports = _classPrivateFieldDestructureSet; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classPrivateFieldDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var classApplyDescriptorGet = require("./classApplyDescriptorGet.js"); | ||
var classExtractFieldDescriptor = require("./classExtractFieldDescriptor.js"); | ||
function _classPrivateFieldGet(receiver, privateMap) { | ||
@@ -9,4 +7,2 @@ var descriptor = classExtractFieldDescriptor(receiver, privateMap, "get"); | ||
} | ||
module.exports = _classPrivateFieldGet; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classPrivateFieldGet, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var checkPrivateRedeclaration = require("./checkPrivateRedeclaration.js"); | ||
function _classPrivateFieldInitSpec(obj, privateMap, value) { | ||
@@ -7,4 +6,2 @@ checkPrivateRedeclaration(obj, privateMap); | ||
} | ||
module.exports = _classPrivateFieldInitSpec; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classPrivateFieldInitSpec, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -5,7 +5,4 @@ function _classPrivateFieldBase(receiver, privateKey) { | ||
} | ||
return receiver; | ||
} | ||
module.exports = _classPrivateFieldBase; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classPrivateFieldBase, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var id = 0; | ||
function _classPrivateFieldKey(name) { | ||
return "__private_" + id++ + "_" + name; | ||
} | ||
module.exports = _classPrivateFieldKey; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classPrivateFieldKey, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var classApplyDescriptorSet = require("./classApplyDescriptorSet.js"); | ||
var classExtractFieldDescriptor = require("./classExtractFieldDescriptor.js"); | ||
function _classPrivateFieldSet(receiver, privateMap, value) { | ||
@@ -10,4 +8,2 @@ var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set"); | ||
} | ||
module.exports = _classPrivateFieldSet; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classPrivateFieldSet, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -5,7 +5,4 @@ function _classPrivateMethodGet(receiver, privateSet, fn) { | ||
} | ||
return fn; | ||
} | ||
module.exports = _classPrivateMethodGet; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classPrivateMethodGet, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var checkPrivateRedeclaration = require("./checkPrivateRedeclaration.js"); | ||
function _classPrivateMethodInitSpec(obj, privateSet) { | ||
@@ -7,4 +6,2 @@ checkPrivateRedeclaration(obj, privateSet); | ||
} | ||
module.exports = _classPrivateMethodInitSpec; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classPrivateMethodInitSpec, module.exports.__esModule = true, module.exports["default"] = module.exports; |
function _classPrivateMethodSet() { | ||
throw new TypeError("attempted to reassign private method"); | ||
} | ||
module.exports = _classPrivateMethodSet; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classPrivateMethodSet, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var classApplyDescriptorDestructureSet = require("./classApplyDescriptorDestructureSet.js"); | ||
var classCheckPrivateStaticAccess = require("./classCheckPrivateStaticAccess.js"); | ||
var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js"); | ||
function _classStaticPrivateFieldDestructureSet(receiver, classConstructor, descriptor) { | ||
@@ -12,4 +9,2 @@ classCheckPrivateStaticAccess(receiver, classConstructor); | ||
} | ||
module.exports = _classStaticPrivateFieldDestructureSet; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classStaticPrivateFieldDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var classApplyDescriptorGet = require("./classApplyDescriptorGet.js"); | ||
var classCheckPrivateStaticAccess = require("./classCheckPrivateStaticAccess.js"); | ||
var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js"); | ||
function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) { | ||
@@ -12,4 +9,2 @@ classCheckPrivateStaticAccess(receiver, classConstructor); | ||
} | ||
module.exports = _classStaticPrivateFieldSpecGet; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classStaticPrivateFieldSpecGet, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var classApplyDescriptorSet = require("./classApplyDescriptorSet.js"); | ||
var classCheckPrivateStaticAccess = require("./classCheckPrivateStaticAccess.js"); | ||
var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js"); | ||
function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) { | ||
@@ -13,4 +10,2 @@ classCheckPrivateStaticAccess(receiver, classConstructor); | ||
} | ||
module.exports = _classStaticPrivateFieldSpecSet; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classStaticPrivateFieldSpecSet, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var classCheckPrivateStaticAccess = require("./classCheckPrivateStaticAccess.js"); | ||
function _classStaticPrivateMethodGet(receiver, classConstructor, method) { | ||
@@ -7,4 +6,2 @@ classCheckPrivateStaticAccess(receiver, classConstructor); | ||
} | ||
module.exports = _classStaticPrivateMethodGet; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classStaticPrivateMethodGet, module.exports.__esModule = true, module.exports["default"] = module.exports; |
function _classStaticPrivateMethodSet() { | ||
throw new TypeError("attempted to set read only static private field"); | ||
} | ||
module.exports = _classStaticPrivateMethodSet; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _classStaticPrivateMethodSet, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var setPrototypeOf = require("./setPrototypeOf.js"); | ||
var isNativeReflectConstruct = require("./isNativeReflectConstruct.js"); | ||
function _construct(Parent, args, Class) { | ||
if (isNativeReflectConstruct()) { | ||
module.exports = _construct = Reflect.construct; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
} else { | ||
module.exports = _construct = function _construct(Parent, args, Class) { | ||
var a = [null]; | ||
a.push.apply(a, args); | ||
var Constructor = Function.bind.apply(Parent, a); | ||
var instance = new Constructor(); | ||
if (Class) setPrototypeOf(instance, Class.prototype); | ||
return instance; | ||
}; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
} | ||
return _construct.apply(null, arguments); | ||
function _construct(t, e, r) { | ||
if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); | ||
var o = [null]; | ||
o.push.apply(o, e); | ||
var p = new (t.bind.apply(t, o))(); | ||
return r && setPrototypeOf(p, r.prototype), p; | ||
} | ||
module.exports = _construct; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -0,1 +1,2 @@ | ||
var toPropertyKey = require("./toPropertyKey.js"); | ||
function _defineProperties(target, props) { | ||
@@ -7,13 +8,13 @@ for (var i = 0; i < props.length; i++) { | ||
if ("value" in descriptor) descriptor.writable = true; | ||
Object.defineProperty(target, descriptor.key, descriptor); | ||
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor); | ||
} | ||
} | ||
function _createClass(Constructor, protoProps, staticProps) { | ||
if (protoProps) _defineProperties(Constructor.prototype, protoProps); | ||
if (staticProps) _defineProperties(Constructor, staticProps); | ||
Object.defineProperty(Constructor, "prototype", { | ||
writable: false | ||
}); | ||
return Constructor; | ||
} | ||
module.exports = _createClass; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); | ||
function _createForOfIteratorHelper(o, allowArrayLike) { | ||
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; | ||
if (!it) { | ||
@@ -10,5 +8,3 @@ if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { | ||
var i = 0; | ||
var F = function F() {}; | ||
return { | ||
@@ -31,9 +27,7 @@ s: F, | ||
} | ||
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | ||
} | ||
var normalCompletion = true, | ||
didErr = false, | ||
err; | ||
didErr = false, | ||
err; | ||
return { | ||
@@ -61,4 +55,2 @@ s: function s() { | ||
} | ||
module.exports = _createForOfIteratorHelper; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _createForOfIteratorHelper, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); | ||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { | ||
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; | ||
if (it) return (it = it.call(o)).next.bind(it); | ||
if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { | ||
@@ -20,7 +18,4 @@ if (it) o = it; | ||
} | ||
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | ||
} | ||
module.exports = _createForOfIteratorHelperLoose; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _createForOfIteratorHelperLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var getPrototypeOf = require("./getPrototypeOf.js"); | ||
var isNativeReflectConstruct = require("./isNativeReflectConstruct.js"); | ||
var possibleConstructorReturn = require("./possibleConstructorReturn.js"); | ||
function _createSuper(Derived) { | ||
@@ -11,4 +8,3 @@ var hasNativeReflectConstruct = isNativeReflectConstruct(); | ||
var Super = getPrototypeOf(Derived), | ||
result; | ||
result; | ||
if (hasNativeReflectConstruct) { | ||
@@ -20,8 +16,5 @@ var NewTarget = getPrototypeOf(this).constructor; | ||
} | ||
return possibleConstructorReturn(this, result); | ||
}; | ||
} | ||
module.exports = _createSuper; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _createSuper, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var toArray = require("./toArray.js"); | ||
var toPropertyKey = require("./toPropertyKey.js"); | ||
function _decorate(decorators, factory, superClass, mixins) { | ||
var api = _getDecoratorsApi(); | ||
if (mixins) { | ||
@@ -13,3 +10,2 @@ for (var i = 0; i < mixins.length; i++) { | ||
} | ||
var r = factory(function initialize(O) { | ||
@@ -22,3 +18,2 @@ api.initializeInstanceElements(O, decorated.elements); | ||
} | ||
function _getDecoratorsApi() { | ||
@@ -28,3 +23,2 @@ _getDecoratorsApi = function _getDecoratorsApi() { | ||
}; | ||
var api = { | ||
@@ -46,3 +40,2 @@ elementsDefinitionOrder: [["method"], ["field"]], | ||
var placement = element.placement; | ||
if (element.kind === kind && (placement === "static" || placement === "prototype")) { | ||
@@ -57,3 +50,2 @@ var receiver = placement === "static" ? F : proto; | ||
var descriptor = element.descriptor; | ||
if (element.kind === "field") { | ||
@@ -68,3 +60,2 @@ var initializer = element.initializer; | ||
} | ||
Object.defineProperty(receiver, element.key, descriptor); | ||
@@ -90,3 +81,2 @@ }, | ||
}, this); | ||
if (!decorators) { | ||
@@ -98,3 +88,2 @@ return { | ||
} | ||
var result = this.decorateConstructor(newElements, decorators); | ||
@@ -107,7 +96,5 @@ finishers.push.apply(finishers, result.finishers); | ||
var keys = placements[element.placement]; | ||
if (!silent && keys.indexOf(element.key) !== -1) { | ||
throw new TypeError("Duplicated element (" + element.key + ")"); | ||
} | ||
keys.push(element.key); | ||
@@ -118,3 +105,2 @@ }, | ||
var finishers = []; | ||
for (var decorators = element.decorators, i = decorators.length - 1; i >= 0; i--) { | ||
@@ -127,9 +113,6 @@ var keys = placements[element.placement]; | ||
this.addElementPlacement(element, placements); | ||
if (elementFinisherExtras.finisher) { | ||
finishers.push(elementFinisherExtras.finisher); | ||
} | ||
var newExtras = elementFinisherExtras.extras; | ||
if (newExtras) { | ||
@@ -139,7 +122,5 @@ for (var j = 0; j < newExtras.length; j++) { | ||
} | ||
extras.push.apply(extras, newExtras); | ||
} | ||
} | ||
return { | ||
@@ -153,14 +134,10 @@ element: element, | ||
var finishers = []; | ||
for (var i = decorators.length - 1; i >= 0; i--) { | ||
var obj = this.fromClassDescriptor(elements); | ||
var elementsAndFinisher = this.toClassDescriptor((0, decorators[i])(obj) || obj); | ||
if (elementsAndFinisher.finisher !== undefined) { | ||
finishers.push(elementsAndFinisher.finisher); | ||
} | ||
if (elementsAndFinisher.elements !== undefined) { | ||
elements = elementsAndFinisher.elements; | ||
for (var j = 0; j < elements.length - 1; j++) { | ||
@@ -175,3 +152,2 @@ for (var k = j + 1; k < elements.length; k++) { | ||
} | ||
return { | ||
@@ -208,14 +184,10 @@ elements: elements, | ||
var kind = String(elementObject.kind); | ||
if (kind !== "method" && kind !== "field") { | ||
throw new TypeError('An element descriptor\'s .kind property must be either "method" or' + ' "field", but a decorator created an element descriptor with' + ' .kind "' + kind + '"'); | ||
} | ||
var key = toPropertyKey(elementObject.key); | ||
var placement = String(elementObject.placement); | ||
if (placement !== "static" && placement !== "prototype" && placement !== "own") { | ||
throw new TypeError('An element descriptor\'s .placement property must be one of "static",' + ' "prototype" or "own", but a decorator created an element descriptor' + ' with .placement "' + placement + '"'); | ||
} | ||
var descriptor = elementObject.descriptor; | ||
@@ -229,3 +201,2 @@ this.disallowProperty(elementObject, "elements", "An element descriptor"); | ||
}; | ||
if (kind !== "field") { | ||
@@ -239,3 +210,2 @@ this.disallowProperty(elementObject, "initializer", "A method descriptor"); | ||
} | ||
return element; | ||
@@ -245,5 +215,3 @@ }, | ||
var element = this.toElementDescriptor(elementObject); | ||
var finisher = _optionalCallableProperty(elementObject, "finisher"); | ||
var extras = this.toElementDescriptors(elementObject.extras); | ||
@@ -270,7 +238,5 @@ return { | ||
var kind = String(obj.kind); | ||
if (kind !== "class") { | ||
throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator' + ' created a class descriptor with .kind "' + kind + '"'); | ||
} | ||
this.disallowProperty(obj, "key", "A class descriptor"); | ||
@@ -281,5 +247,3 @@ this.disallowProperty(obj, "placement", "A class descriptor"); | ||
this.disallowProperty(obj, "extras", "A class descriptor"); | ||
var finisher = _optionalCallableProperty(obj, "finisher"); | ||
var elements = this.toElementDescriptors(obj.elements); | ||
@@ -294,3 +258,2 @@ return { | ||
var newConstructor = (0, finishers[i])(constructor); | ||
if (newConstructor !== undefined) { | ||
@@ -300,7 +263,5 @@ if (typeof newConstructor !== "function") { | ||
} | ||
constructor = newConstructor; | ||
} | ||
} | ||
return constructor; | ||
@@ -316,7 +277,5 @@ }, | ||
} | ||
function _createElementDescriptor(def) { | ||
var key = toPropertyKey(def.key); | ||
var descriptor; | ||
if (def.kind === "method") { | ||
@@ -348,3 +307,2 @@ descriptor = { | ||
} | ||
var element = { | ||
@@ -360,3 +318,2 @@ kind: def.kind === "field" ? "field" : "method", | ||
} | ||
function _coalesceGetterSetter(element, other) { | ||
@@ -369,14 +326,10 @@ if (element.descriptor.get !== undefined) { | ||
} | ||
function _coalesceClassElements(elements) { | ||
var newElements = []; | ||
var isSameElement = function isSameElement(other) { | ||
return other.kind === "method" && other.key === element.key && other.placement === element.placement; | ||
}; | ||
for (var i = 0; i < elements.length; i++) { | ||
var element = elements[i]; | ||
var other; | ||
if (element.kind === "method" && (other = newElements.find(isSameElement))) { | ||
@@ -387,3 +340,2 @@ if (_isDataDescriptor(element.descriptor) || _isDataDescriptor(other.descriptor)) { | ||
} | ||
other.descriptor = element.descriptor; | ||
@@ -395,6 +347,4 @@ } else { | ||
} | ||
other.decorators = element.decorators; | ||
} | ||
_coalesceGetterSetter(element, other); | ||
@@ -406,25 +356,17 @@ } | ||
} | ||
return newElements; | ||
} | ||
function _hasDecorators(element) { | ||
return element.decorators && element.decorators.length; | ||
} | ||
function _isDataDescriptor(desc) { | ||
return desc !== undefined && !(desc.value === undefined && desc.writable === undefined); | ||
} | ||
function _optionalCallableProperty(obj, name) { | ||
var value = obj[name]; | ||
if (value !== undefined && typeof value !== "function") { | ||
throw new TypeError("Expected '" + name + "' to be a function"); | ||
} | ||
return value; | ||
} | ||
module.exports = _decorate; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _decorate, module.exports.__esModule = true, module.exports["default"] = module.exports; |
function _defaults(obj, defaults) { | ||
var keys = Object.getOwnPropertyNames(defaults); | ||
for (var i = 0; i < keys.length; i++) { | ||
var key = keys[i]; | ||
var value = Object.getOwnPropertyDescriptor(defaults, key); | ||
if (value && value.configurable && obj[key] === undefined) { | ||
@@ -12,7 +10,4 @@ Object.defineProperty(obj, key, value); | ||
} | ||
return obj; | ||
} | ||
module.exports = _defaults; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _defaults, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -8,6 +8,4 @@ function _defineEnumerableProperties(obj, descs) { | ||
} | ||
if (Object.getOwnPropertySymbols) { | ||
var objectSymbols = Object.getOwnPropertySymbols(descs); | ||
for (var i = 0; i < objectSymbols.length; i++) { | ||
@@ -21,7 +19,4 @@ var sym = objectSymbols[i]; | ||
} | ||
return obj; | ||
} | ||
module.exports = _defineEnumerableProperties; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _defineEnumerableProperties, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -0,2 +1,4 @@ | ||
var toPropertyKey = require("./toPropertyKey.js"); | ||
function _defineProperty(obj, key, value) { | ||
key = toPropertyKey(key); | ||
if (key in obj) { | ||
@@ -12,7 +14,4 @@ Object.defineProperty(obj, key, { | ||
} | ||
return obj; | ||
} | ||
module.exports = _defineProperty; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -8,11 +8,8 @@ export default function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { | ||
desc.configurable = !!desc.configurable; | ||
if ('value' in desc || desc.initializer) { | ||
desc.writable = true; | ||
} | ||
desc = decorators.slice().reverse().reduce(function (desc, decorator) { | ||
return decorator(target, property, desc) || desc; | ||
}, desc); | ||
if (context && desc.initializer !== void 0) { | ||
@@ -22,3 +19,2 @@ desc.value = desc.initializer ? desc.initializer.call(context) : void 0; | ||
} | ||
if (desc.initializer === void 0) { | ||
@@ -28,4 +24,3 @@ Object.defineProperty(target, property, desc); | ||
} | ||
return desc; | ||
} |
export default function _arrayLikeToArray(arr, len) { | ||
if (len == null || len > arr.length) len = arr.length; | ||
for (var i = 0, arr2 = new Array(len); i < len; i++) { | ||
arr2[i] = arr[i]; | ||
} | ||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; | ||
return arr2; | ||
} |
@@ -5,4 +5,3 @@ export default function _assertThisInitialized(self) { | ||
} | ||
return self; | ||
} |
@@ -1,95 +0,63 @@ | ||
import AwaitValue from "./AwaitValue.js"; | ||
export default function AsyncGenerator(gen) { | ||
var front, back; | ||
function send(key, arg) { | ||
return new Promise(function (resolve, reject) { | ||
var request = { | ||
key: key, | ||
arg: arg, | ||
resolve: resolve, | ||
reject: reject, | ||
next: null | ||
}; | ||
if (back) { | ||
back = back.next = request; | ||
} else { | ||
front = back = request; | ||
resume(key, arg); | ||
} | ||
}); | ||
} | ||
function resume(key, arg) { | ||
import OverloadYield from "./OverloadYield.js"; | ||
export default function AsyncGenerator(e) { | ||
var r, t; | ||
function resume(r, t) { | ||
try { | ||
var result = gen[key](arg); | ||
var value = result.value; | ||
var wrappedAwait = value instanceof AwaitValue; | ||
Promise.resolve(wrappedAwait ? value.wrapped : value).then(function (arg) { | ||
if (wrappedAwait) { | ||
resume(key === "return" ? "return" : "next", arg); | ||
return; | ||
var n = e[r](t), | ||
o = n.value, | ||
u = o instanceof OverloadYield; | ||
Promise.resolve(u ? o.v : o).then(function (t) { | ||
if (u) { | ||
var i = "return" === r ? "return" : "next"; | ||
if (!o.k || t.done) return resume(i, t); | ||
t = e[i](t).value; | ||
} | ||
settle(result.done ? "return" : "normal", arg); | ||
}, function (err) { | ||
resume("throw", err); | ||
settle(n.done ? "return" : "normal", t); | ||
}, function (e) { | ||
resume("throw", e); | ||
}); | ||
} catch (err) { | ||
settle("throw", err); | ||
} catch (e) { | ||
settle("throw", e); | ||
} | ||
} | ||
function settle(type, value) { | ||
switch (type) { | ||
function settle(e, n) { | ||
switch (e) { | ||
case "return": | ||
front.resolve({ | ||
value: value, | ||
done: true | ||
r.resolve({ | ||
value: n, | ||
done: !0 | ||
}); | ||
break; | ||
case "throw": | ||
front.reject(value); | ||
r.reject(n); | ||
break; | ||
default: | ||
front.resolve({ | ||
value: value, | ||
done: false | ||
r.resolve({ | ||
value: n, | ||
done: !1 | ||
}); | ||
break; | ||
} | ||
front = front.next; | ||
if (front) { | ||
resume(front.key, front.arg); | ||
} else { | ||
back = null; | ||
} | ||
(r = r.next) ? resume(r.key, r.arg) : t = null; | ||
} | ||
this._invoke = send; | ||
if (typeof gen["return"] !== "function") { | ||
this["return"] = undefined; | ||
} | ||
this._invoke = function (e, n) { | ||
return new Promise(function (o, u) { | ||
var i = { | ||
key: e, | ||
arg: n, | ||
resolve: o, | ||
reject: u, | ||
next: null | ||
}; | ||
t ? t = t.next = i : (r = t = i, resume(e, n)); | ||
}); | ||
}, "function" != typeof e["return"] && (this["return"] = void 0); | ||
} | ||
AsyncGenerator.prototype[typeof Symbol === "function" && Symbol.asyncIterator || "@@asyncIterator"] = function () { | ||
AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator || "@@asyncIterator"] = function () { | ||
return this; | ||
}; | ||
AsyncGenerator.prototype.next = function (arg) { | ||
return this._invoke("next", arg); | ||
}; | ||
AsyncGenerator.prototype["throw"] = function (arg) { | ||
return this._invoke("throw", arg); | ||
}; | ||
AsyncGenerator.prototype["return"] = function (arg) { | ||
return this._invoke("return", arg); | ||
}, AsyncGenerator.prototype.next = function (e) { | ||
return this._invoke("next", e); | ||
}, AsyncGenerator.prototype["throw"] = function (e) { | ||
return this._invoke("throw", e); | ||
}, AsyncGenerator.prototype["return"] = function (e) { | ||
return this._invoke("return", e); | ||
}; |
@@ -1,54 +0,23 @@ | ||
export default function _asyncGeneratorDelegate(inner, awaitWrap) { | ||
var iter = {}, | ||
waiting = false; | ||
function pump(key, value) { | ||
waiting = true; | ||
value = new Promise(function (resolve) { | ||
resolve(inner[key](value)); | ||
}); | ||
return { | ||
done: false, | ||
value: awaitWrap(value) | ||
import OverloadYield from "./OverloadYield.js"; | ||
export default function _asyncGeneratorDelegate(t) { | ||
var e = {}, | ||
n = !1; | ||
function pump(e, r) { | ||
return n = !0, r = new Promise(function (n) { | ||
n(t[e](r)); | ||
}), { | ||
done: !1, | ||
value: new OverloadYield(r, 1) | ||
}; | ||
} | ||
; | ||
iter[typeof Symbol !== "undefined" && Symbol.iterator || "@@iterator"] = function () { | ||
return e["undefined" != typeof Symbol && Symbol.iterator || "@@iterator"] = function () { | ||
return this; | ||
}; | ||
iter.next = function (value) { | ||
if (waiting) { | ||
waiting = false; | ||
return value; | ||
} | ||
return pump("next", value); | ||
}; | ||
if (typeof inner["throw"] === "function") { | ||
iter["throw"] = function (value) { | ||
if (waiting) { | ||
waiting = false; | ||
throw value; | ||
} | ||
return pump("throw", value); | ||
}; | ||
} | ||
if (typeof inner["return"] === "function") { | ||
iter["return"] = function (value) { | ||
if (waiting) { | ||
waiting = false; | ||
return value; | ||
} | ||
return pump("return", value); | ||
}; | ||
} | ||
return iter; | ||
}, e.next = function (t) { | ||
return n ? (n = !1, t) : pump("next", t); | ||
}, "function" == typeof t["throw"] && (e["throw"] = function (t) { | ||
if (n) throw n = !1, t; | ||
return pump("throw", t); | ||
}), "function" == typeof t["return"] && (e["return"] = function (t) { | ||
return n ? (n = !1, t) : pump("return", t); | ||
}), e; | ||
} |
@@ -1,35 +0,27 @@ | ||
export default function _asyncIterator(iterable) { | ||
var method, | ||
async, | ||
sync, | ||
retry = 2; | ||
if (typeof Symbol !== "undefined") { | ||
async = Symbol.asyncIterator; | ||
sync = Symbol.iterator; | ||
export default function _asyncIterator(r) { | ||
var n, | ||
t, | ||
o, | ||
e = 2; | ||
for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) { | ||
if (t && null != (n = r[t])) return n.call(r); | ||
if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r)); | ||
t = "@@asyncIterator", o = "@@iterator"; | ||
} | ||
while (retry--) { | ||
if (async && (method = iterable[async]) != null) { | ||
return method.call(iterable); | ||
} | ||
if (sync && (method = iterable[sync]) != null) { | ||
return new AsyncFromSyncIterator(method.call(iterable)); | ||
} | ||
async = "@@asyncIterator"; | ||
sync = "@@iterator"; | ||
} | ||
throw new TypeError("Object is not async iterable"); | ||
} | ||
function AsyncFromSyncIterator(s) { | ||
AsyncFromSyncIterator = function AsyncFromSyncIterator(s) { | ||
this.s = s; | ||
this.n = s.next; | ||
}; | ||
AsyncFromSyncIterator.prototype = { | ||
function AsyncFromSyncIterator(r) { | ||
function AsyncFromSyncIteratorContinuation(r) { | ||
if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); | ||
var n = r.done; | ||
return Promise.resolve(r.value).then(function (r) { | ||
return { | ||
value: r, | ||
done: n | ||
}; | ||
}); | ||
} | ||
return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) { | ||
this.s = r, this.n = r.next; | ||
}, AsyncFromSyncIterator.prototype = { | ||
s: null, | ||
@@ -40,36 +32,14 @@ n: null, | ||
}, | ||
"return": function _return(value) { | ||
var ret = this.s["return"]; | ||
if (ret === undefined) { | ||
return Promise.resolve({ | ||
value: value, | ||
done: true | ||
}); | ||
} | ||
return AsyncFromSyncIteratorContinuation(ret.apply(this.s, arguments)); | ||
"return": function _return(r) { | ||
var n = this.s["return"]; | ||
return void 0 === n ? Promise.resolve({ | ||
value: r, | ||
done: !0 | ||
}) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); | ||
}, | ||
"throw": function _throw(value) { | ||
var thr = this.s["return"]; | ||
if (thr === undefined) return Promise.reject(value); | ||
return AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments)); | ||
"throw": function _throw(r) { | ||
var n = this.s["return"]; | ||
return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); | ||
} | ||
}; | ||
function AsyncFromSyncIteratorContinuation(r) { | ||
if (Object(r) !== r) { | ||
return Promise.reject(new TypeError(r + " is not an object.")); | ||
} | ||
var done = r.done; | ||
return Promise.resolve(r.value).then(function (value) { | ||
return { | ||
value: value, | ||
done: done | ||
}; | ||
}); | ||
} | ||
return new AsyncFromSyncIterator(s); | ||
}, new AsyncFromSyncIterator(r); | ||
} |
@@ -9,3 +9,2 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { | ||
} | ||
if (info.done) { | ||
@@ -17,18 +16,14 @@ resolve(value); | ||
} | ||
export default function _asyncToGenerator(fn) { | ||
return function () { | ||
var self = this, | ||
args = arguments; | ||
args = arguments; | ||
return new Promise(function (resolve, reject) { | ||
var gen = fn.apply(self, args); | ||
function _next(value) { | ||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); | ||
} | ||
function _throw(err) { | ||
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); | ||
} | ||
_next(undefined); | ||
@@ -35,0 +30,0 @@ }); |
@@ -1,4 +0,4 @@ | ||
import AwaitValue from "./AwaitValue.js"; | ||
export default function _awaitAsyncGenerator(value) { | ||
return new AwaitValue(value); | ||
import OverloadYield from "./OverloadYield.js"; | ||
export default function _awaitAsyncGenerator(e) { | ||
return new OverloadYield(e, 0); | ||
} |
@@ -8,6 +8,4 @@ export default function _classApplyDescriptorDestructureSet(receiver, descriptor) { | ||
} | ||
}; | ||
} | ||
return descriptor.__destrObj; | ||
@@ -18,5 +16,4 @@ } else { | ||
} | ||
return descriptor; | ||
} | ||
} |
@@ -5,4 +5,3 @@ export default function _classApplyDescriptorGet(receiver, descriptor) { | ||
} | ||
return descriptor.value; | ||
} |
@@ -8,5 +8,4 @@ export default function _classApplyDescriptorSet(receiver, descriptor, value) { | ||
} | ||
descriptor.value = value; | ||
} | ||
} |
@@ -5,4 +5,3 @@ export default function _classExtractFieldDescriptor(receiver, privateMap, action) { | ||
} | ||
return privateMap.get(receiver); | ||
} |
export default function _classNameTDZError(name) { | ||
throw new Error("Class \"" + name + "\" cannot be referenced in computed property keys."); | ||
throw new ReferenceError("Class \"" + name + "\" cannot be referenced in computed property keys."); | ||
} |
@@ -5,4 +5,3 @@ export default function _classPrivateFieldBase(receiver, privateKey) { | ||
} | ||
return receiver; | ||
} |
@@ -5,4 +5,3 @@ export default function _classPrivateMethodGet(receiver, privateSet, fn) { | ||
} | ||
return fn; | ||
} |
import setPrototypeOf from "./setPrototypeOf.js"; | ||
import isNativeReflectConstruct from "./isNativeReflectConstruct.js"; | ||
export default function _construct(Parent, args, Class) { | ||
if (isNativeReflectConstruct()) { | ||
_construct = Reflect.construct; | ||
} else { | ||
_construct = function _construct(Parent, args, Class) { | ||
var a = [null]; | ||
a.push.apply(a, args); | ||
var Constructor = Function.bind.apply(Parent, a); | ||
var instance = new Constructor(); | ||
if (Class) setPrototypeOf(instance, Class.prototype); | ||
return instance; | ||
}; | ||
} | ||
return _construct.apply(null, arguments); | ||
export default function _construct(t, e, r) { | ||
if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); | ||
var o = [null]; | ||
o.push.apply(o, e); | ||
var p = new (t.bind.apply(t, o))(); | ||
return r && setPrototypeOf(p, r.prototype), p; | ||
} |
@@ -0,1 +1,2 @@ | ||
import toPropertyKey from "./toPropertyKey.js"; | ||
function _defineProperties(target, props) { | ||
@@ -7,10 +8,12 @@ for (var i = 0; i < props.length; i++) { | ||
if ("value" in descriptor) descriptor.writable = true; | ||
Object.defineProperty(target, descriptor.key, descriptor); | ||
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor); | ||
} | ||
} | ||
export default function _createClass(Constructor, protoProps, staticProps) { | ||
if (protoProps) _defineProperties(Constructor.prototype, protoProps); | ||
if (staticProps) _defineProperties(Constructor, staticProps); | ||
Object.defineProperty(Constructor, "prototype", { | ||
writable: false | ||
}); | ||
return Constructor; | ||
} |
import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; | ||
export default function _createForOfIteratorHelper(o, allowArrayLike) { | ||
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; | ||
if (!it) { | ||
@@ -9,5 +8,3 @@ if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { | ||
var i = 0; | ||
var F = function F() {}; | ||
return { | ||
@@ -30,9 +27,7 @@ s: F, | ||
} | ||
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | ||
} | ||
var normalCompletion = true, | ||
didErr = false, | ||
err; | ||
didErr = false, | ||
err; | ||
return { | ||
@@ -39,0 +34,0 @@ s: function s() { |
@@ -5,3 +5,2 @@ import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; | ||
if (it) return (it = it.call(o)).next.bind(it); | ||
if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { | ||
@@ -20,4 +19,3 @@ if (it) o = it; | ||
} | ||
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | ||
} |
@@ -8,4 +8,3 @@ import getPrototypeOf from "./getPrototypeOf.js"; | ||
var Super = getPrototypeOf(Derived), | ||
result; | ||
result; | ||
if (hasNativeReflectConstruct) { | ||
@@ -17,5 +16,4 @@ var NewTarget = getPrototypeOf(this).constructor; | ||
} | ||
return possibleConstructorReturn(this, result); | ||
}; | ||
} |
@@ -5,3 +5,2 @@ import toArray from "./toArray.js"; | ||
var api = _getDecoratorsApi(); | ||
if (mixins) { | ||
@@ -12,3 +11,2 @@ for (var i = 0; i < mixins.length; i++) { | ||
} | ||
var r = factory(function initialize(O) { | ||
@@ -21,3 +19,2 @@ api.initializeInstanceElements(O, decorated.elements); | ||
} | ||
function _getDecoratorsApi() { | ||
@@ -27,3 +24,2 @@ _getDecoratorsApi = function _getDecoratorsApi() { | ||
}; | ||
var api = { | ||
@@ -45,3 +41,2 @@ elementsDefinitionOrder: [["method"], ["field"]], | ||
var placement = element.placement; | ||
if (element.kind === kind && (placement === "static" || placement === "prototype")) { | ||
@@ -56,3 +51,2 @@ var receiver = placement === "static" ? F : proto; | ||
var descriptor = element.descriptor; | ||
if (element.kind === "field") { | ||
@@ -67,3 +61,2 @@ var initializer = element.initializer; | ||
} | ||
Object.defineProperty(receiver, element.key, descriptor); | ||
@@ -89,3 +82,2 @@ }, | ||
}, this); | ||
if (!decorators) { | ||
@@ -97,3 +89,2 @@ return { | ||
} | ||
var result = this.decorateConstructor(newElements, decorators); | ||
@@ -106,7 +97,5 @@ finishers.push.apply(finishers, result.finishers); | ||
var keys = placements[element.placement]; | ||
if (!silent && keys.indexOf(element.key) !== -1) { | ||
throw new TypeError("Duplicated element (" + element.key + ")"); | ||
} | ||
keys.push(element.key); | ||
@@ -117,3 +106,2 @@ }, | ||
var finishers = []; | ||
for (var decorators = element.decorators, i = decorators.length - 1; i >= 0; i--) { | ||
@@ -126,9 +114,6 @@ var keys = placements[element.placement]; | ||
this.addElementPlacement(element, placements); | ||
if (elementFinisherExtras.finisher) { | ||
finishers.push(elementFinisherExtras.finisher); | ||
} | ||
var newExtras = elementFinisherExtras.extras; | ||
if (newExtras) { | ||
@@ -138,7 +123,5 @@ for (var j = 0; j < newExtras.length; j++) { | ||
} | ||
extras.push.apply(extras, newExtras); | ||
} | ||
} | ||
return { | ||
@@ -152,14 +135,10 @@ element: element, | ||
var finishers = []; | ||
for (var i = decorators.length - 1; i >= 0; i--) { | ||
var obj = this.fromClassDescriptor(elements); | ||
var elementsAndFinisher = this.toClassDescriptor((0, decorators[i])(obj) || obj); | ||
if (elementsAndFinisher.finisher !== undefined) { | ||
finishers.push(elementsAndFinisher.finisher); | ||
} | ||
if (elementsAndFinisher.elements !== undefined) { | ||
elements = elementsAndFinisher.elements; | ||
for (var j = 0; j < elements.length - 1; j++) { | ||
@@ -174,3 +153,2 @@ for (var k = j + 1; k < elements.length; k++) { | ||
} | ||
return { | ||
@@ -207,14 +185,10 @@ elements: elements, | ||
var kind = String(elementObject.kind); | ||
if (kind !== "method" && kind !== "field") { | ||
throw new TypeError('An element descriptor\'s .kind property must be either "method" or' + ' "field", but a decorator created an element descriptor with' + ' .kind "' + kind + '"'); | ||
} | ||
var key = toPropertyKey(elementObject.key); | ||
var placement = String(elementObject.placement); | ||
if (placement !== "static" && placement !== "prototype" && placement !== "own") { | ||
throw new TypeError('An element descriptor\'s .placement property must be one of "static",' + ' "prototype" or "own", but a decorator created an element descriptor' + ' with .placement "' + placement + '"'); | ||
} | ||
var descriptor = elementObject.descriptor; | ||
@@ -228,3 +202,2 @@ this.disallowProperty(elementObject, "elements", "An element descriptor"); | ||
}; | ||
if (kind !== "field") { | ||
@@ -238,3 +211,2 @@ this.disallowProperty(elementObject, "initializer", "A method descriptor"); | ||
} | ||
return element; | ||
@@ -244,5 +216,3 @@ }, | ||
var element = this.toElementDescriptor(elementObject); | ||
var finisher = _optionalCallableProperty(elementObject, "finisher"); | ||
var extras = this.toElementDescriptors(elementObject.extras); | ||
@@ -269,7 +239,5 @@ return { | ||
var kind = String(obj.kind); | ||
if (kind !== "class") { | ||
throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator' + ' created a class descriptor with .kind "' + kind + '"'); | ||
} | ||
this.disallowProperty(obj, "key", "A class descriptor"); | ||
@@ -280,5 +248,3 @@ this.disallowProperty(obj, "placement", "A class descriptor"); | ||
this.disallowProperty(obj, "extras", "A class descriptor"); | ||
var finisher = _optionalCallableProperty(obj, "finisher"); | ||
var elements = this.toElementDescriptors(obj.elements); | ||
@@ -293,3 +259,2 @@ return { | ||
var newConstructor = (0, finishers[i])(constructor); | ||
if (newConstructor !== undefined) { | ||
@@ -299,7 +264,5 @@ if (typeof newConstructor !== "function") { | ||
} | ||
constructor = newConstructor; | ||
} | ||
} | ||
return constructor; | ||
@@ -315,7 +278,5 @@ }, | ||
} | ||
function _createElementDescriptor(def) { | ||
var key = toPropertyKey(def.key); | ||
var descriptor; | ||
if (def.kind === "method") { | ||
@@ -347,3 +308,2 @@ descriptor = { | ||
} | ||
var element = { | ||
@@ -359,3 +319,2 @@ kind: def.kind === "field" ? "field" : "method", | ||
} | ||
function _coalesceGetterSetter(element, other) { | ||
@@ -368,14 +327,10 @@ if (element.descriptor.get !== undefined) { | ||
} | ||
function _coalesceClassElements(elements) { | ||
var newElements = []; | ||
var isSameElement = function isSameElement(other) { | ||
return other.kind === "method" && other.key === element.key && other.placement === element.placement; | ||
}; | ||
for (var i = 0; i < elements.length; i++) { | ||
var element = elements[i]; | ||
var other; | ||
if (element.kind === "method" && (other = newElements.find(isSameElement))) { | ||
@@ -386,3 +341,2 @@ if (_isDataDescriptor(element.descriptor) || _isDataDescriptor(other.descriptor)) { | ||
} | ||
other.descriptor = element.descriptor; | ||
@@ -394,6 +348,4 @@ } else { | ||
} | ||
other.decorators = element.decorators; | ||
} | ||
_coalesceGetterSetter(element, other); | ||
@@ -405,22 +357,16 @@ } | ||
} | ||
return newElements; | ||
} | ||
function _hasDecorators(element) { | ||
return element.decorators && element.decorators.length; | ||
} | ||
function _isDataDescriptor(desc) { | ||
return desc !== undefined && !(desc.value === undefined && desc.writable === undefined); | ||
} | ||
function _optionalCallableProperty(obj, name) { | ||
var value = obj[name]; | ||
if (value !== undefined && typeof value !== "function") { | ||
throw new TypeError("Expected '" + name + "' to be a function"); | ||
} | ||
return value; | ||
} |
export default function _defaults(obj, defaults) { | ||
var keys = Object.getOwnPropertyNames(defaults); | ||
for (var i = 0; i < keys.length; i++) { | ||
var key = keys[i]; | ||
var value = Object.getOwnPropertyDescriptor(defaults, key); | ||
if (value && value.configurable && obj[key] === undefined) { | ||
@@ -12,4 +10,3 @@ Object.defineProperty(obj, key, value); | ||
} | ||
return obj; | ||
} |
@@ -8,6 +8,4 @@ export default function _defineEnumerableProperties(obj, descs) { | ||
} | ||
if (Object.getOwnPropertySymbols) { | ||
var objectSymbols = Object.getOwnPropertySymbols(descs); | ||
for (var i = 0; i < objectSymbols.length; i++) { | ||
@@ -21,4 +19,3 @@ var sym = objectSymbols[i]; | ||
} | ||
return obj; | ||
} |
@@ -0,2 +1,4 @@ | ||
import toPropertyKey from "./toPropertyKey.js"; | ||
export default function _defineProperty(obj, key, value) { | ||
key = toPropertyKey(key); | ||
if (key in obj) { | ||
@@ -12,4 +14,3 @@ Object.defineProperty(obj, key, { | ||
} | ||
return obj; | ||
} |
export default function _extends() { | ||
_extends = Object.assign || function (target) { | ||
_extends = Object.assign ? Object.assign.bind() : function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
@@ -12,7 +11,5 @@ if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
} | ||
return target; | ||
}; | ||
return _extends.apply(this, arguments); | ||
} |
import superPropBase from "./superPropBase.js"; | ||
export default function _get() { | ||
if (typeof Reflect !== "undefined" && Reflect.get) { | ||
_get = Reflect.get; | ||
_get = Reflect.get.bind(); | ||
} else { | ||
@@ -10,12 +10,9 @@ _get = function _get(target, property, receiver) { | ||
var desc = Object.getOwnPropertyDescriptor(base, property); | ||
if (desc.get) { | ||
return desc.get.call(arguments.length < 3 ? target : receiver); | ||
} | ||
return desc.value; | ||
}; | ||
} | ||
return _get.apply(this, arguments); | ||
} |
export default function _getPrototypeOf(o) { | ||
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { | ||
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { | ||
return o.__proto__ || Object.getPrototypeOf(o); | ||
@@ -4,0 +4,0 @@ }; |
@@ -6,3 +6,2 @@ import setPrototypeOf from "./setPrototypeOf.js"; | ||
} | ||
subClass.prototype = Object.create(superClass && superClass.prototype, { | ||
@@ -15,3 +14,6 @@ constructor: { | ||
}); | ||
Object.defineProperty(subClass, "prototype", { | ||
writable: false | ||
}); | ||
if (superClass) setPrototypeOf(subClass, superClass); | ||
} |
export default function _initializerWarningHelper(descriptor, context) { | ||
throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); | ||
throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); | ||
} |
@@ -1,51 +0,26 @@ | ||
import _typeof from "@babel/runtime/helpers/typeof"; | ||
function _getRequireWildcardCache(nodeInterop) { | ||
if (typeof WeakMap !== "function") return null; | ||
var cacheBabelInterop = new WeakMap(); | ||
var cacheNodeInterop = new WeakMap(); | ||
return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { | ||
return nodeInterop ? cacheNodeInterop : cacheBabelInterop; | ||
})(nodeInterop); | ||
import _typeof from "./typeof.js"; | ||
function _getRequireWildcardCache(e) { | ||
if ("function" != typeof WeakMap) return null; | ||
var r = new WeakMap(), | ||
t = new WeakMap(); | ||
return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { | ||
return e ? t : r; | ||
})(e); | ||
} | ||
export default function _interopRequireWildcard(obj, nodeInterop) { | ||
if (!nodeInterop && obj && obj.__esModule) { | ||
return obj; | ||
export default function _interopRequireWildcard(e, r) { | ||
if (!r && e && e.__esModule) return e; | ||
if (null === e || "object" != _typeof(e) && "function" != typeof e) return { | ||
"default": e | ||
}; | ||
var t = _getRequireWildcardCache(r); | ||
if (t && t.has(e)) return t.get(e); | ||
var n = { | ||
__proto__: null | ||
}, | ||
a = Object.defineProperty && Object.getOwnPropertyDescriptor; | ||
for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { | ||
var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; | ||
i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; | ||
} | ||
if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { | ||
return { | ||
"default": obj | ||
}; | ||
} | ||
var cache = _getRequireWildcardCache(nodeInterop); | ||
if (cache && cache.has(obj)) { | ||
return cache.get(obj); | ||
} | ||
var newObj = {}; | ||
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; | ||
for (var key in obj) { | ||
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { | ||
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; | ||
if (desc && (desc.get || desc.set)) { | ||
Object.defineProperty(newObj, key, desc); | ||
} else { | ||
newObj[key] = obj[key]; | ||
} | ||
} | ||
} | ||
newObj["default"] = obj; | ||
if (cache) { | ||
cache.set(obj, newObj); | ||
} | ||
return newObj; | ||
return n["default"] = e, t && t.set(e, n), n; | ||
} |
export default function _isNativeFunction(fn) { | ||
return Function.toString.call(fn).indexOf("[native code]") !== -1; | ||
try { | ||
return Function.toString.call(fn).indexOf("[native code]") !== -1; | ||
} catch (e) { | ||
return typeof fn === "function"; | ||
} | ||
} |
export default function _isNativeReflectConstruct() { | ||
if (typeof Reflect === "undefined" || !Reflect.construct) return false; | ||
if (Reflect.construct.sham) return false; | ||
if (typeof Proxy === "function") return true; | ||
try { | ||
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | ||
return true; | ||
} catch (e) { | ||
return false; | ||
} | ||
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | ||
} catch (t) {} | ||
return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { | ||
return !!t; | ||
})(); | ||
} |
@@ -1,29 +0,27 @@ | ||
export default function _iterableToArrayLimit(arr, i) { | ||
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; | ||
if (_i == null) return; | ||
var _arr = []; | ||
var _n = true; | ||
var _d = false; | ||
var _s, _e; | ||
try { | ||
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { | ||
_arr.push(_s.value); | ||
if (i && _arr.length === i) break; | ||
} | ||
} catch (err) { | ||
_d = true; | ||
_e = err; | ||
} finally { | ||
export default function _iterableToArrayLimit(r, l) { | ||
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | ||
if (null != t) { | ||
var e, | ||
n, | ||
i, | ||
u, | ||
a = [], | ||
f = !0, | ||
o = !1; | ||
try { | ||
if (!_n && _i["return"] != null) _i["return"](); | ||
if (i = (t = t.call(r)).next, 0 === l) { | ||
if (Object(t) !== t) return; | ||
f = !1; | ||
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); | ||
} catch (r) { | ||
o = !0, n = r; | ||
} finally { | ||
if (_d) throw _e; | ||
try { | ||
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; | ||
} finally { | ||
if (o) throw n; | ||
} | ||
} | ||
return a; | ||
} | ||
return _arr; | ||
} |
@@ -1,14 +0,9 @@ | ||
export default function _iterableToArrayLimitLoose(arr, i) { | ||
var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); | ||
if (_i == null) return; | ||
var _arr = []; | ||
for (_i = _i.call(arr), _step; !(_step = _i.next()).done;) { | ||
_arr.push(_step.value); | ||
if (i && _arr.length === i) break; | ||
export default function _iterableToArrayLimitLoose(e, r) { | ||
var t = e && ("undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"]); | ||
if (null != t) { | ||
var o, | ||
l = []; | ||
for (t = t.call(e); e.length < r && !(o = t.next()).done;) l.push(o.value); | ||
return l; | ||
} | ||
return _arr; | ||
} |
var REACT_ELEMENT_TYPE; | ||
export default function _createRawReactElement(type, props, key, children) { | ||
if (!REACT_ELEMENT_TYPE) { | ||
REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol["for"] && Symbol["for"]("react.element") || 0xeac7; | ||
export default function _createRawReactElement(e, r, E, l) { | ||
REACT_ELEMENT_TYPE || (REACT_ELEMENT_TYPE = "function" == typeof Symbol && Symbol["for"] && Symbol["for"]("react.element") || 60103); | ||
var o = e && e.defaultProps, | ||
n = arguments.length - 3; | ||
if (r || 0 === n || (r = { | ||
children: void 0 | ||
}), 1 === n) r.children = l;else if (n > 1) { | ||
for (var t = new Array(n), f = 0; f < n; f++) t[f] = arguments[f + 3]; | ||
r.children = t; | ||
} | ||
var defaultProps = type && type.defaultProps; | ||
var childrenLength = arguments.length - 3; | ||
if (!props && childrenLength !== 0) { | ||
props = { | ||
children: void 0 | ||
}; | ||
} | ||
if (childrenLength === 1) { | ||
props.children = children; | ||
} else if (childrenLength > 1) { | ||
var childArray = new Array(childrenLength); | ||
for (var i = 0; i < childrenLength; i++) { | ||
childArray[i] = arguments[i + 3]; | ||
} | ||
props.children = childArray; | ||
} | ||
if (props && defaultProps) { | ||
for (var propName in defaultProps) { | ||
if (props[propName] === void 0) { | ||
props[propName] = defaultProps[propName]; | ||
} | ||
} | ||
} else if (!props) { | ||
props = defaultProps || {}; | ||
} | ||
if (r && o) for (var i in o) void 0 === r[i] && (r[i] = o[i]);else r || (r = o || {}); | ||
return { | ||
$$typeof: REACT_ELEMENT_TYPE, | ||
type: type, | ||
key: key === undefined ? null : "" + key, | ||
type: e, | ||
key: void 0 === E ? null : "" + E, | ||
ref: null, | ||
props: props, | ||
props: r, | ||
_owner: null | ||
}; | ||
} |
@@ -7,4 +7,3 @@ import arrayLikeToArray from "./arrayLikeToArray.js"; | ||
} | ||
return next(arr, i); | ||
} |
export default function _objectDestructuringEmpty(obj) { | ||
if (obj == null) throw new TypeError("Cannot destructure undefined"); | ||
if (obj == null) throw new TypeError("Cannot destructure " + obj); | ||
} |
@@ -6,3 +6,2 @@ import defineProperty from "./defineProperty.js"; | ||
var ownKeys = Object.keys(source); | ||
if (typeof Object.getOwnPropertySymbols === 'function') { | ||
@@ -13,3 +12,2 @@ ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function (sym) { | ||
} | ||
ownKeys.forEach(function (key) { | ||
@@ -19,4 +17,3 @@ defineProperty(target, key, source[key]); | ||
} | ||
return target; | ||
} |
import defineProperty from "./defineProperty.js"; | ||
function ownKeys(object, enumerableOnly) { | ||
var keys = Object.keys(object); | ||
function ownKeys(e, r) { | ||
var t = Object.keys(e); | ||
if (Object.getOwnPropertySymbols) { | ||
var symbols = Object.getOwnPropertySymbols(object); | ||
if (enumerableOnly) { | ||
symbols = symbols.filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(object, sym).enumerable; | ||
}); | ||
} | ||
keys.push.apply(keys, symbols); | ||
var o = Object.getOwnPropertySymbols(e); | ||
r && (o = o.filter(function (r) { | ||
return Object.getOwnPropertyDescriptor(e, r).enumerable; | ||
})), t.push.apply(t, o); | ||
} | ||
return keys; | ||
return t; | ||
} | ||
export default function _objectSpread2(target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
if (i % 2) { | ||
ownKeys(Object(source), true).forEach(function (key) { | ||
defineProperty(target, key, source[key]); | ||
}); | ||
} else if (Object.getOwnPropertyDescriptors) { | ||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); | ||
} else { | ||
ownKeys(Object(source)).forEach(function (key) { | ||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
}); | ||
} | ||
export default function _objectSpread2(e) { | ||
for (var r = 1; r < arguments.length; r++) { | ||
var t = null != arguments[r] ? arguments[r] : {}; | ||
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { | ||
defineProperty(e, r, t[r]); | ||
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { | ||
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); | ||
}); | ||
} | ||
return target; | ||
return e; | ||
} |
@@ -6,6 +6,4 @@ import objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose.js"; | ||
var key, i; | ||
if (Object.getOwnPropertySymbols) { | ||
var sourceSymbolKeys = Object.getOwnPropertySymbols(source); | ||
for (i = 0; i < sourceSymbolKeys.length; i++) { | ||
@@ -18,4 +16,3 @@ key = sourceSymbolKeys[i]; | ||
} | ||
return target; | ||
} |
@@ -6,3 +6,2 @@ export default function _objectWithoutPropertiesLoose(source, excluded) { | ||
var key, i; | ||
for (i = 0; i < sourceKeys.length; i++) { | ||
@@ -13,4 +12,3 @@ key = sourceKeys[i]; | ||
} | ||
return target; | ||
} |
@@ -1,2 +0,2 @@ | ||
import _typeof from "@babel/runtime/helpers/typeof"; | ||
import _typeof from "./typeof.js"; | ||
import assertThisInitialized from "./assertThisInitialized.js"; | ||
@@ -9,4 +9,3 @@ export default function _possibleConstructorReturn(self, call) { | ||
} | ||
return assertThisInitialized(self); | ||
} |
import superPropBase from "./superPropBase.js"; | ||
import defineProperty from "./defineProperty.js"; | ||
function set(target, property, value, receiver) { | ||
@@ -11,6 +10,4 @@ if (typeof Reflect !== "undefined" && Reflect.set) { | ||
var desc; | ||
if (base) { | ||
desc = Object.getOwnPropertyDescriptor(base, property); | ||
if (desc.set) { | ||
@@ -23,5 +20,3 @@ desc.set.call(receiver, value); | ||
} | ||
desc = Object.getOwnPropertyDescriptor(receiver, property); | ||
if (desc) { | ||
@@ -31,3 +26,2 @@ if (!desc.writable) { | ||
} | ||
desc.value = value; | ||
@@ -38,18 +32,13 @@ Object.defineProperty(receiver, property, desc); | ||
} | ||
return true; | ||
}; | ||
} | ||
return set(target, property, value, receiver); | ||
} | ||
export default function _set(target, property, value, receiver, isStrict) { | ||
var s = set(target, property, value, receiver || target); | ||
if (!s && isStrict) { | ||
throw new Error('failed to set property'); | ||
throw new TypeError('failed to set property'); | ||
} | ||
return value; | ||
} |
export default function _setPrototypeOf(o, p) { | ||
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { | ||
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { | ||
o.__proto__ = p; | ||
return o; | ||
}; | ||
return _setPrototypeOf(o, p); | ||
} |
@@ -7,4 +7,3 @@ import getPrototypeOf from "./getPrototypeOf.js"; | ||
} | ||
return object; | ||
} |
@@ -5,3 +5,2 @@ export default function _taggedTemplateLiteral(strings, raw) { | ||
} | ||
return Object.freeze(Object.defineProperties(strings, { | ||
@@ -8,0 +7,0 @@ raw: { |
@@ -5,5 +5,4 @@ export default function _taggedTemplateLiteralLoose(strings, raw) { | ||
} | ||
strings.raw = raw; | ||
return strings; | ||
} |
@@ -1,13 +0,11 @@ | ||
import _typeof from "@babel/runtime/helpers/typeof"; | ||
export default function _toPrimitive(input, hint) { | ||
if (_typeof(input) !== "object" || input === null) return input; | ||
var prim = input[Symbol.toPrimitive]; | ||
if (prim !== undefined) { | ||
var res = prim.call(input, hint || "default"); | ||
if (_typeof(res) !== "object") return res; | ||
import _typeof from "./typeof.js"; | ||
export default function toPrimitive(t, r) { | ||
if ("object" != _typeof(t) || !t) return t; | ||
var e = t[Symbol.toPrimitive]; | ||
if (void 0 !== e) { | ||
var i = e.call(t, r || "default"); | ||
if ("object" != _typeof(i)) return i; | ||
throw new TypeError("@@toPrimitive must return a primitive value."); | ||
} | ||
return (hint === "string" ? String : Number)(input); | ||
return ("string" === r ? String : Number)(t); | ||
} |
@@ -1,6 +0,6 @@ | ||
import _typeof from "@babel/runtime/helpers/typeof"; | ||
import _typeof from "./typeof.js"; | ||
import toPrimitive from "./toPrimitive.js"; | ||
export default function _toPropertyKey(arg) { | ||
var key = toPrimitive(arg, "string"); | ||
return _typeof(key) === "symbol" ? key : String(key); | ||
export default function toPropertyKey(t) { | ||
var i = toPrimitive(t, "string"); | ||
return "symbol" == _typeof(i) ? i : String(i); | ||
} |
@@ -1,15 +0,9 @@ | ||
export default function _typeof(obj) { | ||
export default function _typeof(o) { | ||
"@babel/helpers - typeof"; | ||
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { | ||
_typeof = function _typeof(obj) { | ||
return typeof obj; | ||
}; | ||
} else { | ||
_typeof = function _typeof(obj) { | ||
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; | ||
}; | ||
} | ||
return _typeof(obj); | ||
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { | ||
return typeof o; | ||
} : function (o) { | ||
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | ||
}, _typeof(o); | ||
} |
@@ -7,20 +7,14 @@ import getPrototypeOf from "./getPrototypeOf.js"; | ||
var _cache = typeof Map === "function" ? new Map() : undefined; | ||
_wrapNativeSuper = function _wrapNativeSuper(Class) { | ||
if (Class === null || !isNativeFunction(Class)) return Class; | ||
if (typeof Class !== "function") { | ||
throw new TypeError("Super expression must either be null or a function"); | ||
} | ||
if (typeof _cache !== "undefined") { | ||
if (_cache.has(Class)) return _cache.get(Class); | ||
_cache.set(Class, Wrapper); | ||
} | ||
function Wrapper() { | ||
return construct(Class, arguments, getPrototypeOf(this).constructor); | ||
} | ||
Wrapper.prototype = Object.create(Class.prototype, { | ||
@@ -36,4 +30,3 @@ constructor: { | ||
}; | ||
return _wrapNativeSuper(Class); | ||
} |
@@ -1,65 +0,50 @@ | ||
import _typeof from "@babel/runtime/helpers/typeof"; | ||
import _typeof from "./typeof.js"; | ||
import setPrototypeOf from "./setPrototypeOf.js"; | ||
import inherits from "./inherits.js"; | ||
export default function _wrapRegExp() { | ||
_wrapRegExp = function _wrapRegExp(re, groups) { | ||
return new BabelRegExp(re, undefined, groups); | ||
_wrapRegExp = function _wrapRegExp(e, r) { | ||
return new BabelRegExp(e, void 0, r); | ||
}; | ||
var _super = RegExp.prototype; | ||
var _groups = new WeakMap(); | ||
function BabelRegExp(re, flags, groups) { | ||
var _this = new RegExp(re, flags); | ||
_groups.set(_this, groups || _groups.get(re)); | ||
return setPrototypeOf(_this, BabelRegExp.prototype); | ||
var e = RegExp.prototype, | ||
r = new WeakMap(); | ||
function BabelRegExp(e, t, p) { | ||
var o = new RegExp(e, t); | ||
return r.set(o, p || r.get(e)), setPrototypeOf(o, BabelRegExp.prototype); | ||
} | ||
inherits(BabelRegExp, RegExp); | ||
BabelRegExp.prototype.exec = function (str) { | ||
var result = _super.exec.call(this, str); | ||
if (result) result.groups = buildGroups(result, this); | ||
return result; | ||
}; | ||
BabelRegExp.prototype[Symbol.replace] = function (str, substitution) { | ||
if (typeof substitution === "string") { | ||
var groups = _groups.get(this); | ||
return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) { | ||
return "$" + groups[name]; | ||
function buildGroups(e, t) { | ||
var p = r.get(t); | ||
return Object.keys(p).reduce(function (r, t) { | ||
var o = p[t]; | ||
if ("number" == typeof o) r[t] = e[o];else { | ||
for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; | ||
r[t] = e[o[i]]; | ||
} | ||
return r; | ||
}, Object.create(null)); | ||
} | ||
return inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { | ||
var t = e.exec.call(this, r); | ||
if (t) { | ||
t.groups = buildGroups(t, this); | ||
var p = t.indices; | ||
p && (p.groups = buildGroups(p, this)); | ||
} | ||
return t; | ||
}, BabelRegExp.prototype[Symbol.replace] = function (t, p) { | ||
if ("string" == typeof p) { | ||
var o = r.get(this); | ||
return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)>/g, function (e, r) { | ||
var t = o[r]; | ||
return "$" + (Array.isArray(t) ? t.join("$") : t); | ||
})); | ||
} else if (typeof substitution === "function") { | ||
var _this = this; | ||
return _super[Symbol.replace].call(this, str, function () { | ||
var args = arguments; | ||
if (_typeof(args[args.length - 1]) !== "object") { | ||
args = [].slice.call(args); | ||
args.push(buildGroups(args, _this)); | ||
} | ||
return substitution.apply(this, args); | ||
} | ||
if ("function" == typeof p) { | ||
var i = this; | ||
return e[Symbol.replace].call(this, t, function () { | ||
var e = arguments; | ||
return "object" != _typeof(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); | ||
}); | ||
} else { | ||
return _super[Symbol.replace].call(this, str, substitution); | ||
} | ||
}; | ||
function buildGroups(result, re) { | ||
var g = _groups.get(re); | ||
return Object.keys(g).reduce(function (groups, name) { | ||
groups[name] = result[g[name]]; | ||
return groups; | ||
}, Object.create(null)); | ||
} | ||
return _wrapRegExp.apply(this, arguments); | ||
return e[Symbol.replace].call(this, t, p); | ||
}, _wrapRegExp.apply(this, arguments); | ||
} |
function _extends() { | ||
module.exports = _extends = Object.assign || function (target) { | ||
module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
@@ -12,11 +11,6 @@ if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
} | ||
return target; | ||
}; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
}, module.exports.__esModule = true, module.exports["default"] = module.exports; | ||
return _extends.apply(this, arguments); | ||
} | ||
module.exports = _extends; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var superPropBase = require("./superPropBase.js"); | ||
function _get() { | ||
if (typeof Reflect !== "undefined" && Reflect.get) { | ||
module.exports = _get = Reflect.get; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _get = Reflect.get.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports; | ||
} else { | ||
@@ -12,17 +10,10 @@ module.exports = _get = function _get(target, property, receiver) { | ||
var desc = Object.getOwnPropertyDescriptor(base, property); | ||
if (desc.get) { | ||
return desc.get.call(arguments.length < 3 ? target : receiver); | ||
} | ||
return desc.value; | ||
}; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
}, module.exports.__esModule = true, module.exports["default"] = module.exports; | ||
} | ||
return _get.apply(this, arguments); | ||
} | ||
module.exports = _get; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports; |
function _getPrototypeOf(o) { | ||
module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { | ||
module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { | ||
return o.__proto__ || Object.getPrototypeOf(o); | ||
}; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
}, module.exports.__esModule = true, module.exports["default"] = module.exports; | ||
return _getPrototypeOf(o); | ||
} | ||
module.exports = _getPrototypeOf; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var setPrototypeOf = require("./setPrototypeOf.js"); | ||
function _inherits(subClass, superClass) { | ||
@@ -7,3 +6,2 @@ if (typeof superClass !== "function" && superClass !== null) { | ||
} | ||
subClass.prototype = Object.create(superClass && superClass.prototype, { | ||
@@ -16,6 +14,7 @@ constructor: { | ||
}); | ||
Object.defineProperty(subClass, "prototype", { | ||
writable: false | ||
}); | ||
if (superClass) setPrototypeOf(subClass, superClass); | ||
} | ||
module.exports = _inherits; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var setPrototypeOf = require("./setPrototypeOf.js"); | ||
function _inheritsLoose(subClass, superClass) { | ||
@@ -8,4 +7,2 @@ subClass.prototype = Object.create(superClass.prototype); | ||
} | ||
module.exports = _inheritsLoose; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _inheritsLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -10,4 +10,2 @@ function _initializerDefineProperty(target, property, descriptor, context) { | ||
} | ||
module.exports = _initializerDefineProperty; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _initializerDefineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; |
function _initializerWarningHelper(descriptor, context) { | ||
throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); | ||
throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); | ||
} | ||
module.exports = _initializerWarningHelper; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _initializerWarningHelper, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -8,4 +8,2 @@ function _instanceof(left, right) { | ||
} | ||
module.exports = _instanceof; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _instanceof, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -6,4 +6,2 @@ function _interopRequireDefault(obj) { | ||
} | ||
module.exports = _interopRequireDefault; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -1,54 +0,27 @@ | ||
var _typeof = require("@babel/runtime/helpers/typeof")["default"]; | ||
function _getRequireWildcardCache(nodeInterop) { | ||
if (typeof WeakMap !== "function") return null; | ||
var cacheBabelInterop = new WeakMap(); | ||
var cacheNodeInterop = new WeakMap(); | ||
return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { | ||
return nodeInterop ? cacheNodeInterop : cacheBabelInterop; | ||
})(nodeInterop); | ||
var _typeof = require("./typeof.js")["default"]; | ||
function _getRequireWildcardCache(e) { | ||
if ("function" != typeof WeakMap) return null; | ||
var r = new WeakMap(), | ||
t = new WeakMap(); | ||
return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { | ||
return e ? t : r; | ||
})(e); | ||
} | ||
function _interopRequireWildcard(obj, nodeInterop) { | ||
if (!nodeInterop && obj && obj.__esModule) { | ||
return obj; | ||
function _interopRequireWildcard(e, r) { | ||
if (!r && e && e.__esModule) return e; | ||
if (null === e || "object" != _typeof(e) && "function" != typeof e) return { | ||
"default": e | ||
}; | ||
var t = _getRequireWildcardCache(r); | ||
if (t && t.has(e)) return t.get(e); | ||
var n = { | ||
__proto__: null | ||
}, | ||
a = Object.defineProperty && Object.getOwnPropertyDescriptor; | ||
for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { | ||
var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; | ||
i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; | ||
} | ||
if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { | ||
return { | ||
"default": obj | ||
}; | ||
} | ||
var cache = _getRequireWildcardCache(nodeInterop); | ||
if (cache && cache.has(obj)) { | ||
return cache.get(obj); | ||
} | ||
var newObj = {}; | ||
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; | ||
for (var key in obj) { | ||
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { | ||
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; | ||
if (desc && (desc.get || desc.set)) { | ||
Object.defineProperty(newObj, key, desc); | ||
} else { | ||
newObj[key] = obj[key]; | ||
} | ||
} | ||
} | ||
newObj["default"] = obj; | ||
if (cache) { | ||
cache.set(obj, newObj); | ||
} | ||
return newObj; | ||
return n["default"] = e, t && t.set(e, n), n; | ||
} | ||
module.exports = _interopRequireWildcard; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _interopRequireWildcard, module.exports.__esModule = true, module.exports["default"] = module.exports; |
function _isNativeFunction(fn) { | ||
return Function.toString.call(fn).indexOf("[native code]") !== -1; | ||
try { | ||
return Function.toString.call(fn).indexOf("[native code]") !== -1; | ||
} catch (e) { | ||
return typeof fn === "function"; | ||
} | ||
} | ||
module.exports = _isNativeFunction; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports; |
function _isNativeReflectConstruct() { | ||
if (typeof Reflect === "undefined" || !Reflect.construct) return false; | ||
if (Reflect.construct.sham) return false; | ||
if (typeof Proxy === "function") return true; | ||
try { | ||
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | ||
return true; | ||
} catch (e) { | ||
return false; | ||
} | ||
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | ||
} catch (t) {} | ||
return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() { | ||
return !!t; | ||
}, module.exports.__esModule = true, module.exports["default"] = module.exports)(); | ||
} | ||
module.exports = _isNativeReflectConstruct; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports; |
function _iterableToArray(iter) { | ||
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); | ||
} | ||
module.exports = _iterableToArray; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -1,32 +0,28 @@ | ||
function _iterableToArrayLimit(arr, i) { | ||
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; | ||
if (_i == null) return; | ||
var _arr = []; | ||
var _n = true; | ||
var _d = false; | ||
var _s, _e; | ||
try { | ||
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { | ||
_arr.push(_s.value); | ||
if (i && _arr.length === i) break; | ||
} | ||
} catch (err) { | ||
_d = true; | ||
_e = err; | ||
} finally { | ||
function _iterableToArrayLimit(r, l) { | ||
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | ||
if (null != t) { | ||
var e, | ||
n, | ||
i, | ||
u, | ||
a = [], | ||
f = !0, | ||
o = !1; | ||
try { | ||
if (!_n && _i["return"] != null) _i["return"](); | ||
if (i = (t = t.call(r)).next, 0 === l) { | ||
if (Object(t) !== t) return; | ||
f = !1; | ||
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); | ||
} catch (r) { | ||
o = !0, n = r; | ||
} finally { | ||
if (_d) throw _e; | ||
try { | ||
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; | ||
} finally { | ||
if (o) throw n; | ||
} | ||
} | ||
return a; | ||
} | ||
return _arr; | ||
} | ||
module.exports = _iterableToArrayLimit; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -1,17 +0,10 @@ | ||
function _iterableToArrayLimitLoose(arr, i) { | ||
var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); | ||
if (_i == null) return; | ||
var _arr = []; | ||
for (_i = _i.call(arr), _step; !(_step = _i.next()).done;) { | ||
_arr.push(_step.value); | ||
if (i && _arr.length === i) break; | ||
function _iterableToArrayLimitLoose(e, r) { | ||
var t = e && ("undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"]); | ||
if (null != t) { | ||
var o, | ||
l = []; | ||
for (t = t.call(e); e.length < r && !(o = t.next()).done;) l.push(o.value); | ||
return l; | ||
} | ||
return _arr; | ||
} | ||
module.exports = _iterableToArrayLimitLoose; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _iterableToArrayLimitLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var REACT_ELEMENT_TYPE; | ||
function _createRawReactElement(type, props, key, children) { | ||
if (!REACT_ELEMENT_TYPE) { | ||
REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol["for"] && Symbol["for"]("react.element") || 0xeac7; | ||
function _createRawReactElement(e, r, E, l) { | ||
REACT_ELEMENT_TYPE || (REACT_ELEMENT_TYPE = "function" == typeof Symbol && Symbol["for"] && Symbol["for"]("react.element") || 60103); | ||
var o = e && e.defaultProps, | ||
n = arguments.length - 3; | ||
if (r || 0 === n || (r = { | ||
children: void 0 | ||
}), 1 === n) r.children = l;else if (n > 1) { | ||
for (var t = new Array(n), f = 0; f < n; f++) t[f] = arguments[f + 3]; | ||
r.children = t; | ||
} | ||
var defaultProps = type && type.defaultProps; | ||
var childrenLength = arguments.length - 3; | ||
if (!props && childrenLength !== 0) { | ||
props = { | ||
children: void 0 | ||
}; | ||
} | ||
if (childrenLength === 1) { | ||
props.children = children; | ||
} else if (childrenLength > 1) { | ||
var childArray = new Array(childrenLength); | ||
for (var i = 0; i < childrenLength; i++) { | ||
childArray[i] = arguments[i + 3]; | ||
} | ||
props.children = childArray; | ||
} | ||
if (props && defaultProps) { | ||
for (var propName in defaultProps) { | ||
if (props[propName] === void 0) { | ||
props[propName] = defaultProps[propName]; | ||
} | ||
} | ||
} else if (!props) { | ||
props = defaultProps || {}; | ||
} | ||
if (r && o) for (var i in o) void 0 === r[i] && (r[i] = o[i]);else r || (r = o || {}); | ||
return { | ||
$$typeof: REACT_ELEMENT_TYPE, | ||
type: type, | ||
key: key === undefined ? null : "" + key, | ||
type: e, | ||
key: void 0 === E ? null : "" + E, | ||
ref: null, | ||
props: props, | ||
props: r, | ||
_owner: null | ||
}; | ||
} | ||
module.exports = _createRawReactElement; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _createRawReactElement, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var arrayLikeToArray = require("./arrayLikeToArray.js"); | ||
function _maybeArrayLike(next, arr, i) { | ||
@@ -8,7 +7,4 @@ if (arr && !Array.isArray(arr) && typeof arr.length === "number") { | ||
} | ||
return next(arr, i); | ||
} | ||
module.exports = _maybeArrayLike; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _maybeArrayLike, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -6,4 +6,2 @@ function _newArrowCheck(innerThis, boundThis) { | ||
} | ||
module.exports = _newArrowCheck; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _newArrowCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; |
function _nonIterableRest() { | ||
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | ||
} | ||
module.exports = _nonIterableRest; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports; |
function _nonIterableSpread() { | ||
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | ||
} | ||
module.exports = _nonIterableSpread; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports; |
function _objectDestructuringEmpty(obj) { | ||
if (obj == null) throw new TypeError("Cannot destructure undefined"); | ||
if (obj == null) throw new TypeError("Cannot destructure " + obj); | ||
} | ||
module.exports = _objectDestructuringEmpty; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _objectDestructuringEmpty, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var defineProperty = require("./defineProperty.js"); | ||
function _objectSpread(target) { | ||
@@ -7,3 +6,2 @@ for (var i = 1; i < arguments.length; i++) { | ||
var ownKeys = Object.keys(source); | ||
if (typeof Object.getOwnPropertySymbols === 'function') { | ||
@@ -14,3 +12,2 @@ ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function (sym) { | ||
} | ||
ownKeys.forEach(function (key) { | ||
@@ -20,7 +17,4 @@ defineProperty(target, key, source[key]); | ||
} | ||
return target; | ||
} | ||
module.exports = _objectSpread; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _objectSpread, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var defineProperty = require("./defineProperty.js"); | ||
function ownKeys(object, enumerableOnly) { | ||
var keys = Object.keys(object); | ||
function ownKeys(e, r) { | ||
var t = Object.keys(e); | ||
if (Object.getOwnPropertySymbols) { | ||
var symbols = Object.getOwnPropertySymbols(object); | ||
if (enumerableOnly) { | ||
symbols = symbols.filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(object, sym).enumerable; | ||
}); | ||
} | ||
keys.push.apply(keys, symbols); | ||
var o = Object.getOwnPropertySymbols(e); | ||
r && (o = o.filter(function (r) { | ||
return Object.getOwnPropertyDescriptor(e, r).enumerable; | ||
})), t.push.apply(t, o); | ||
} | ||
return keys; | ||
return t; | ||
} | ||
function _objectSpread2(target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
if (i % 2) { | ||
ownKeys(Object(source), true).forEach(function (key) { | ||
defineProperty(target, key, source[key]); | ||
}); | ||
} else if (Object.getOwnPropertyDescriptors) { | ||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); | ||
} else { | ||
ownKeys(Object(source)).forEach(function (key) { | ||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
}); | ||
} | ||
function _objectSpread2(e) { | ||
for (var r = 1; r < arguments.length; r++) { | ||
var t = null != arguments[r] ? arguments[r] : {}; | ||
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { | ||
defineProperty(e, r, t[r]); | ||
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { | ||
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); | ||
}); | ||
} | ||
return target; | ||
return e; | ||
} | ||
module.exports = _objectSpread2; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _objectSpread2, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var objectWithoutPropertiesLoose = require("./objectWithoutPropertiesLoose.js"); | ||
function _objectWithoutProperties(source, excluded) { | ||
@@ -7,6 +6,4 @@ if (source == null) return {}; | ||
var key, i; | ||
if (Object.getOwnPropertySymbols) { | ||
var sourceSymbolKeys = Object.getOwnPropertySymbols(source); | ||
for (i = 0; i < sourceSymbolKeys.length; i++) { | ||
@@ -19,7 +16,4 @@ key = sourceSymbolKeys[i]; | ||
} | ||
return target; | ||
} | ||
module.exports = _objectWithoutProperties; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -6,3 +6,2 @@ function _objectWithoutPropertiesLoose(source, excluded) { | ||
var key, i; | ||
for (i = 0; i < sourceKeys.length; i++) { | ||
@@ -13,7 +12,4 @@ key = sourceKeys[i]; | ||
} | ||
return target; | ||
} | ||
module.exports = _objectWithoutPropertiesLoose; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -1,5 +0,3 @@ | ||
var _typeof = require("@babel/runtime/helpers/typeof")["default"]; | ||
var _typeof = require("./typeof.js")["default"]; | ||
var assertThisInitialized = require("./assertThisInitialized.js"); | ||
function _possibleConstructorReturn(self, call) { | ||
@@ -11,7 +9,4 @@ if (call && (_typeof(call) === "object" || typeof call === "function")) { | ||
} | ||
return assertThisInitialized(self); | ||
} | ||
module.exports = _possibleConstructorReturn; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; |
function _readOnlyError(name) { | ||
throw new TypeError("\"" + name + "\" is read-only"); | ||
} | ||
module.exports = _readOnlyError; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _readOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var superPropBase = require("./superPropBase.js"); | ||
var defineProperty = require("./defineProperty.js"); | ||
function set(target, property, value, receiver) { | ||
@@ -12,6 +10,4 @@ if (typeof Reflect !== "undefined" && Reflect.set) { | ||
var desc; | ||
if (base) { | ||
desc = Object.getOwnPropertyDescriptor(base, property); | ||
if (desc.set) { | ||
@@ -24,5 +20,3 @@ desc.set.call(receiver, value); | ||
} | ||
desc = Object.getOwnPropertyDescriptor(receiver, property); | ||
if (desc) { | ||
@@ -32,3 +26,2 @@ if (!desc.writable) { | ||
} | ||
desc.value = value; | ||
@@ -39,21 +32,14 @@ Object.defineProperty(receiver, property, desc); | ||
} | ||
return true; | ||
}; | ||
} | ||
return set(target, property, value, receiver); | ||
} | ||
function _set(target, property, value, receiver, isStrict) { | ||
var s = set(target, property, value, receiver || target); | ||
if (!s && isStrict) { | ||
throw new Error('failed to set property'); | ||
throw new TypeError('failed to set property'); | ||
} | ||
return value; | ||
} | ||
module.exports = _set; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _set, module.exports.__esModule = true, module.exports["default"] = module.exports; |
function _setPrototypeOf(o, p) { | ||
module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { | ||
module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { | ||
o.__proto__ = p; | ||
return o; | ||
}; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
}, module.exports.__esModule = true, module.exports["default"] = module.exports; | ||
return _setPrototypeOf(o, p); | ||
} | ||
module.exports = _setPrototypeOf; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -8,4 +8,2 @@ function _skipFirstGeneratorNext(fn) { | ||
} | ||
module.exports = _skipFirstGeneratorNext; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _skipFirstGeneratorNext, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var arrayWithHoles = require("./arrayWithHoles.js"); | ||
var iterableToArrayLimit = require("./iterableToArrayLimit.js"); | ||
var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); | ||
var nonIterableRest = require("./nonIterableRest.js"); | ||
function _slicedToArray(arr, i) { | ||
return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); | ||
} | ||
module.exports = _slicedToArray; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var arrayWithHoles = require("./arrayWithHoles.js"); | ||
var iterableToArrayLimitLoose = require("./iterableToArrayLimitLoose.js"); | ||
var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); | ||
var nonIterableRest = require("./nonIterableRest.js"); | ||
function _slicedToArrayLoose(arr, i) { | ||
return arrayWithHoles(arr) || iterableToArrayLimitLoose(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); | ||
} | ||
module.exports = _slicedToArrayLoose; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _slicedToArrayLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var getPrototypeOf = require("./getPrototypeOf.js"); | ||
function _superPropBase(object, property) { | ||
@@ -8,7 +7,4 @@ while (!Object.prototype.hasOwnProperty.call(object, property)) { | ||
} | ||
return object; | ||
} | ||
module.exports = _superPropBase; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -5,3 +5,2 @@ function _taggedTemplateLiteral(strings, raw) { | ||
} | ||
return Object.freeze(Object.defineProperties(strings, { | ||
@@ -13,4 +12,2 @@ raw: { | ||
} | ||
module.exports = _taggedTemplateLiteral; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _taggedTemplateLiteral, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -5,8 +5,5 @@ function _taggedTemplateLiteralLoose(strings, raw) { | ||
} | ||
strings.raw = raw; | ||
return strings; | ||
} | ||
module.exports = _taggedTemplateLiteralLoose; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _taggedTemplateLiteralLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; |
function _tdzError(name) { | ||
throw new ReferenceError(name + " is not defined - temporal dead zone"); | ||
} | ||
module.exports = _tdzError; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _tdzError, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var temporalUndefined = require("./temporalUndefined.js"); | ||
var tdz = require("./tdz.js"); | ||
function _temporalRef(val, name) { | ||
return val === temporalUndefined ? tdz(name) : val; | ||
} | ||
module.exports = _temporalRef; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _temporalRef, module.exports.__esModule = true, module.exports["default"] = module.exports; |
function _temporalUndefined() {} | ||
module.exports = _temporalUndefined; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _temporalUndefined, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var arrayWithHoles = require("./arrayWithHoles.js"); | ||
var iterableToArray = require("./iterableToArray.js"); | ||
var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); | ||
var nonIterableRest = require("./nonIterableRest.js"); | ||
function _toArray(arr) { | ||
return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest(); | ||
} | ||
module.exports = _toArray; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var arrayWithoutHoles = require("./arrayWithoutHoles.js"); | ||
var iterableToArray = require("./iterableToArray.js"); | ||
var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); | ||
var nonIterableSpread = require("./nonIterableSpread.js"); | ||
function _toConsumableArray(arr) { | ||
return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread(); | ||
} | ||
module.exports = _toConsumableArray; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -1,17 +0,12 @@ | ||
var _typeof = require("@babel/runtime/helpers/typeof")["default"]; | ||
function _toPrimitive(input, hint) { | ||
if (_typeof(input) !== "object" || input === null) return input; | ||
var prim = input[Symbol.toPrimitive]; | ||
if (prim !== undefined) { | ||
var res = prim.call(input, hint || "default"); | ||
if (_typeof(res) !== "object") return res; | ||
var _typeof = require("./typeof.js")["default"]; | ||
function toPrimitive(t, r) { | ||
if ("object" != _typeof(t) || !t) return t; | ||
var e = t[Symbol.toPrimitive]; | ||
if (void 0 !== e) { | ||
var i = e.call(t, r || "default"); | ||
if ("object" != _typeof(i)) return i; | ||
throw new TypeError("@@toPrimitive must return a primitive value."); | ||
} | ||
return (hint === "string" ? String : Number)(input); | ||
return ("string" === r ? String : Number)(t); | ||
} | ||
module.exports = _toPrimitive; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -1,11 +0,7 @@ | ||
var _typeof = require("@babel/runtime/helpers/typeof")["default"]; | ||
var _typeof = require("./typeof.js")["default"]; | ||
var toPrimitive = require("./toPrimitive.js"); | ||
function _toPropertyKey(arg) { | ||
var key = toPrimitive(arg, "string"); | ||
return _typeof(key) === "symbol" ? key : String(key); | ||
function toPropertyKey(t) { | ||
var i = toPrimitive(t, "string"); | ||
return "symbol" == _typeof(i) ? i : String(i); | ||
} | ||
module.exports = _toPropertyKey; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -1,22 +0,10 @@ | ||
function _typeof(obj) { | ||
function _typeof(o) { | ||
"@babel/helpers - typeof"; | ||
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { | ||
module.exports = _typeof = function _typeof(obj) { | ||
return typeof obj; | ||
}; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
} else { | ||
module.exports = _typeof = function _typeof(obj) { | ||
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; | ||
}; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
} | ||
return _typeof(obj); | ||
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { | ||
return typeof o; | ||
} : function (o) { | ||
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | ||
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o); | ||
} | ||
module.exports = _typeof; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var arrayLikeToArray = require("./arrayLikeToArray.js"); | ||
function _unsupportedIterableToArray(o, minLen) { | ||
@@ -11,4 +10,2 @@ if (!o) return; | ||
} | ||
module.exports = _unsupportedIterableToArray; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var AsyncGenerator = require("./AsyncGenerator.js"); | ||
function _wrapAsyncGenerator(fn) { | ||
@@ -8,4 +7,2 @@ return function () { | ||
} | ||
module.exports = _wrapAsyncGenerator; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _wrapAsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; |
var getPrototypeOf = require("./getPrototypeOf.js"); | ||
var setPrototypeOf = require("./setPrototypeOf.js"); | ||
var isNativeFunction = require("./isNativeFunction.js"); | ||
var construct = require("./construct.js"); | ||
function _wrapNativeSuper(Class) { | ||
var _cache = typeof Map === "function" ? new Map() : undefined; | ||
module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) { | ||
if (Class === null || !isNativeFunction(Class)) return Class; | ||
if (typeof Class !== "function") { | ||
throw new TypeError("Super expression must either be null or a function"); | ||
} | ||
if (typeof _cache !== "undefined") { | ||
if (_cache.has(Class)) return _cache.get(Class); | ||
_cache.set(Class, Wrapper); | ||
} | ||
function Wrapper() { | ||
return construct(Class, arguments, getPrototypeOf(this).constructor); | ||
} | ||
Wrapper.prototype = Object.create(Class.prototype, { | ||
@@ -38,9 +28,5 @@ constructor: { | ||
return setPrototypeOf(Wrapper, Class); | ||
}; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
}, module.exports.__esModule = true, module.exports["default"] = module.exports; | ||
return _wrapNativeSuper(Class); | ||
} | ||
module.exports = _wrapNativeSuper; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports; |
@@ -1,72 +0,51 @@ | ||
var _typeof = require("@babel/runtime/helpers/typeof")["default"]; | ||
var _typeof = require("./typeof.js")["default"]; | ||
var setPrototypeOf = require("./setPrototypeOf.js"); | ||
var inherits = require("./inherits.js"); | ||
function _wrapRegExp() { | ||
module.exports = _wrapRegExp = function _wrapRegExp(re, groups) { | ||
return new BabelRegExp(re, undefined, groups); | ||
}; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
var _super = RegExp.prototype; | ||
var _groups = new WeakMap(); | ||
function BabelRegExp(re, flags, groups) { | ||
var _this = new RegExp(re, flags); | ||
_groups.set(_this, groups || _groups.get(re)); | ||
return setPrototypeOf(_this, BabelRegExp.prototype); | ||
module.exports = _wrapRegExp = function _wrapRegExp(e, r) { | ||
return new BabelRegExp(e, void 0, r); | ||
}, module.exports.__esModule = true, module.exports["default"] = module.exports; | ||
var e = RegExp.prototype, | ||
r = new WeakMap(); | ||
function BabelRegExp(e, t, p) { | ||
var o = new RegExp(e, t); | ||
return r.set(o, p || r.get(e)), setPrototypeOf(o, BabelRegExp.prototype); | ||
} | ||
inherits(BabelRegExp, RegExp); | ||
BabelRegExp.prototype.exec = function (str) { | ||
var result = _super.exec.call(this, str); | ||
if (result) result.groups = buildGroups(result, this); | ||
return result; | ||
}; | ||
BabelRegExp.prototype[Symbol.replace] = function (str, substitution) { | ||
if (typeof substitution === "string") { | ||
var groups = _groups.get(this); | ||
return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) { | ||
return "$" + groups[name]; | ||
function buildGroups(e, t) { | ||
var p = r.get(t); | ||
return Object.keys(p).reduce(function (r, t) { | ||
var o = p[t]; | ||
if ("number" == typeof o) r[t] = e[o];else { | ||
for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++; | ||
r[t] = e[o[i]]; | ||
} | ||
return r; | ||
}, Object.create(null)); | ||
} | ||
return inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) { | ||
var t = e.exec.call(this, r); | ||
if (t) { | ||
t.groups = buildGroups(t, this); | ||
var p = t.indices; | ||
p && (p.groups = buildGroups(p, this)); | ||
} | ||
return t; | ||
}, BabelRegExp.prototype[Symbol.replace] = function (t, p) { | ||
if ("string" == typeof p) { | ||
var o = r.get(this); | ||
return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)>/g, function (e, r) { | ||
var t = o[r]; | ||
return "$" + (Array.isArray(t) ? t.join("$") : t); | ||
})); | ||
} else if (typeof substitution === "function") { | ||
var _this = this; | ||
return _super[Symbol.replace].call(this, str, function () { | ||
var args = arguments; | ||
if (_typeof(args[args.length - 1]) !== "object") { | ||
args = [].slice.call(args); | ||
args.push(buildGroups(args, _this)); | ||
} | ||
return substitution.apply(this, args); | ||
} | ||
if ("function" == typeof p) { | ||
var i = this; | ||
return e[Symbol.replace].call(this, t, function () { | ||
var e = arguments; | ||
return "object" != _typeof(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e); | ||
}); | ||
} else { | ||
return _super[Symbol.replace].call(this, str, substitution); | ||
} | ||
}; | ||
function buildGroups(result, re) { | ||
var g = _groups.get(re); | ||
return Object.keys(g).reduce(function (groups, name) { | ||
groups[name] = result[g[name]]; | ||
return groups; | ||
}, Object.create(null)); | ||
} | ||
return _wrapRegExp.apply(this, arguments); | ||
return e[Symbol.replace].call(this, t, p); | ||
}, _wrapRegExp.apply(this, arguments); | ||
} | ||
module.exports = _wrapRegExp; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _wrapRegExp, module.exports.__esModule = true, module.exports["default"] = module.exports; |
function _writeOnlyError(name) { | ||
throw new TypeError("\"" + name + "\" is write-only"); | ||
} | ||
module.exports = _writeOnlyError; | ||
module.exports["default"] = module.exports, module.exports.__esModule = true; | ||
module.exports = _writeOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports; |
331
package.json
{ | ||
"name": "@babel/runtime", | ||
"version": "7.16.3", | ||
"version": "7.23.8", | ||
"description": "babel's modular runtime helpers", | ||
@@ -17,5 +17,77 @@ "license": "MIT", | ||
"dependencies": { | ||
"regenerator-runtime": "^0.13.4" | ||
"regenerator-runtime": "^0.14.0" | ||
}, | ||
"exports": { | ||
"./helpers/AsyncGenerator": [ | ||
{ | ||
"node": "./helpers/AsyncGenerator.js", | ||
"import": "./helpers/esm/AsyncGenerator.js", | ||
"default": "./helpers/AsyncGenerator.js" | ||
}, | ||
"./helpers/AsyncGenerator.js" | ||
], | ||
"./helpers/esm/AsyncGenerator": "./helpers/esm/AsyncGenerator.js", | ||
"./helpers/OverloadYield": [ | ||
{ | ||
"node": "./helpers/OverloadYield.js", | ||
"import": "./helpers/esm/OverloadYield.js", | ||
"default": "./helpers/OverloadYield.js" | ||
}, | ||
"./helpers/OverloadYield.js" | ||
], | ||
"./helpers/esm/OverloadYield": "./helpers/esm/OverloadYield.js", | ||
"./helpers/applyDecs": [ | ||
{ | ||
"node": "./helpers/applyDecs.js", | ||
"import": "./helpers/esm/applyDecs.js", | ||
"default": "./helpers/applyDecs.js" | ||
}, | ||
"./helpers/applyDecs.js" | ||
], | ||
"./helpers/esm/applyDecs": "./helpers/esm/applyDecs.js", | ||
"./helpers/applyDecs2203": [ | ||
{ | ||
"node": "./helpers/applyDecs2203.js", | ||
"import": "./helpers/esm/applyDecs2203.js", | ||
"default": "./helpers/applyDecs2203.js" | ||
}, | ||
"./helpers/applyDecs2203.js" | ||
], | ||
"./helpers/esm/applyDecs2203": "./helpers/esm/applyDecs2203.js", | ||
"./helpers/applyDecs2203R": [ | ||
{ | ||
"node": "./helpers/applyDecs2203R.js", | ||
"import": "./helpers/esm/applyDecs2203R.js", | ||
"default": "./helpers/applyDecs2203R.js" | ||
}, | ||
"./helpers/applyDecs2203R.js" | ||
], | ||
"./helpers/esm/applyDecs2203R": "./helpers/esm/applyDecs2203R.js", | ||
"./helpers/applyDecs2301": [ | ||
{ | ||
"node": "./helpers/applyDecs2301.js", | ||
"import": "./helpers/esm/applyDecs2301.js", | ||
"default": "./helpers/applyDecs2301.js" | ||
}, | ||
"./helpers/applyDecs2301.js" | ||
], | ||
"./helpers/esm/applyDecs2301": "./helpers/esm/applyDecs2301.js", | ||
"./helpers/applyDecs2305": [ | ||
{ | ||
"node": "./helpers/applyDecs2305.js", | ||
"import": "./helpers/esm/applyDecs2305.js", | ||
"default": "./helpers/applyDecs2305.js" | ||
}, | ||
"./helpers/applyDecs2305.js" | ||
], | ||
"./helpers/esm/applyDecs2305": "./helpers/esm/applyDecs2305.js", | ||
"./helpers/asyncGeneratorDelegate": [ | ||
{ | ||
"node": "./helpers/asyncGeneratorDelegate.js", | ||
"import": "./helpers/esm/asyncGeneratorDelegate.js", | ||
"default": "./helpers/asyncGeneratorDelegate.js" | ||
}, | ||
"./helpers/asyncGeneratorDelegate.js" | ||
], | ||
"./helpers/esm/asyncGeneratorDelegate": "./helpers/esm/asyncGeneratorDelegate.js", | ||
"./helpers/asyncIterator": [ | ||
@@ -30,2 +102,101 @@ { | ||
"./helpers/esm/asyncIterator": "./helpers/esm/asyncIterator.js", | ||
"./helpers/awaitAsyncGenerator": [ | ||
{ | ||
"node": "./helpers/awaitAsyncGenerator.js", | ||
"import": "./helpers/esm/awaitAsyncGenerator.js", | ||
"default": "./helpers/awaitAsyncGenerator.js" | ||
}, | ||
"./helpers/awaitAsyncGenerator.js" | ||
], | ||
"./helpers/esm/awaitAsyncGenerator": "./helpers/esm/awaitAsyncGenerator.js", | ||
"./helpers/callSuper": [ | ||
{ | ||
"node": "./helpers/callSuper.js", | ||
"import": "./helpers/esm/callSuper.js", | ||
"default": "./helpers/callSuper.js" | ||
}, | ||
"./helpers/callSuper.js" | ||
], | ||
"./helpers/esm/callSuper": "./helpers/esm/callSuper.js", | ||
"./helpers/checkInRHS": [ | ||
{ | ||
"node": "./helpers/checkInRHS.js", | ||
"import": "./helpers/esm/checkInRHS.js", | ||
"default": "./helpers/checkInRHS.js" | ||
}, | ||
"./helpers/checkInRHS.js" | ||
], | ||
"./helpers/esm/checkInRHS": "./helpers/esm/checkInRHS.js", | ||
"./helpers/construct": [ | ||
{ | ||
"node": "./helpers/construct.js", | ||
"import": "./helpers/esm/construct.js", | ||
"default": "./helpers/construct.js" | ||
}, | ||
"./helpers/construct.js" | ||
], | ||
"./helpers/esm/construct": "./helpers/esm/construct.js", | ||
"./helpers/defineAccessor": [ | ||
{ | ||
"node": "./helpers/defineAccessor.js", | ||
"import": "./helpers/esm/defineAccessor.js", | ||
"default": "./helpers/defineAccessor.js" | ||
}, | ||
"./helpers/defineAccessor.js" | ||
], | ||
"./helpers/esm/defineAccessor": "./helpers/esm/defineAccessor.js", | ||
"./helpers/dispose": [ | ||
{ | ||
"node": "./helpers/dispose.js", | ||
"import": "./helpers/esm/dispose.js", | ||
"default": "./helpers/dispose.js" | ||
}, | ||
"./helpers/dispose.js" | ||
], | ||
"./helpers/esm/dispose": "./helpers/esm/dispose.js", | ||
"./helpers/importDeferProxy": [ | ||
{ | ||
"node": "./helpers/importDeferProxy.js", | ||
"import": "./helpers/esm/importDeferProxy.js", | ||
"default": "./helpers/importDeferProxy.js" | ||
}, | ||
"./helpers/importDeferProxy.js" | ||
], | ||
"./helpers/esm/importDeferProxy": "./helpers/esm/importDeferProxy.js", | ||
"./helpers/interopRequireWildcard": [ | ||
{ | ||
"node": "./helpers/interopRequireWildcard.js", | ||
"import": "./helpers/esm/interopRequireWildcard.js", | ||
"default": "./helpers/interopRequireWildcard.js" | ||
}, | ||
"./helpers/interopRequireWildcard.js" | ||
], | ||
"./helpers/esm/interopRequireWildcard": "./helpers/esm/interopRequireWildcard.js", | ||
"./helpers/isNativeReflectConstruct": [ | ||
{ | ||
"node": "./helpers/isNativeReflectConstruct.js", | ||
"import": "./helpers/esm/isNativeReflectConstruct.js", | ||
"default": "./helpers/isNativeReflectConstruct.js" | ||
}, | ||
"./helpers/isNativeReflectConstruct.js" | ||
], | ||
"./helpers/esm/isNativeReflectConstruct": "./helpers/esm/isNativeReflectConstruct.js", | ||
"./helpers/iterableToArrayLimit": [ | ||
{ | ||
"node": "./helpers/iterableToArrayLimit.js", | ||
"import": "./helpers/esm/iterableToArrayLimit.js", | ||
"default": "./helpers/iterableToArrayLimit.js" | ||
}, | ||
"./helpers/iterableToArrayLimit.js" | ||
], | ||
"./helpers/esm/iterableToArrayLimit": "./helpers/esm/iterableToArrayLimit.js", | ||
"./helpers/iterableToArrayLimitLoose": [ | ||
{ | ||
"node": "./helpers/iterableToArrayLimitLoose.js", | ||
"import": "./helpers/esm/iterableToArrayLimitLoose.js", | ||
"default": "./helpers/iterableToArrayLimitLoose.js" | ||
}, | ||
"./helpers/iterableToArrayLimitLoose.js" | ||
], | ||
"./helpers/esm/iterableToArrayLimitLoose": "./helpers/esm/iterableToArrayLimitLoose.js", | ||
"./helpers/jsx": [ | ||
@@ -49,2 +220,38 @@ { | ||
"./helpers/esm/objectSpread2": "./helpers/esm/objectSpread2.js", | ||
"./helpers/regeneratorRuntime": [ | ||
{ | ||
"node": "./helpers/regeneratorRuntime.js", | ||
"import": "./helpers/esm/regeneratorRuntime.js", | ||
"default": "./helpers/regeneratorRuntime.js" | ||
}, | ||
"./helpers/regeneratorRuntime.js" | ||
], | ||
"./helpers/esm/regeneratorRuntime": "./helpers/esm/regeneratorRuntime.js", | ||
"./helpers/setFunctionName": [ | ||
{ | ||
"node": "./helpers/setFunctionName.js", | ||
"import": "./helpers/esm/setFunctionName.js", | ||
"default": "./helpers/setFunctionName.js" | ||
}, | ||
"./helpers/setFunctionName.js" | ||
], | ||
"./helpers/esm/setFunctionName": "./helpers/esm/setFunctionName.js", | ||
"./helpers/toPrimitive": [ | ||
{ | ||
"node": "./helpers/toPrimitive.js", | ||
"import": "./helpers/esm/toPrimitive.js", | ||
"default": "./helpers/toPrimitive.js" | ||
}, | ||
"./helpers/toPrimitive.js" | ||
], | ||
"./helpers/esm/toPrimitive": "./helpers/esm/toPrimitive.js", | ||
"./helpers/toPropertyKey": [ | ||
{ | ||
"node": "./helpers/toPropertyKey.js", | ||
"import": "./helpers/esm/toPropertyKey.js", | ||
"default": "./helpers/toPropertyKey.js" | ||
}, | ||
"./helpers/toPropertyKey.js" | ||
], | ||
"./helpers/esm/toPropertyKey": "./helpers/esm/toPropertyKey.js", | ||
"./helpers/typeof": [ | ||
@@ -59,2 +266,11 @@ { | ||
"./helpers/esm/typeof": "./helpers/esm/typeof.js", | ||
"./helpers/using": [ | ||
{ | ||
"node": "./helpers/using.js", | ||
"import": "./helpers/esm/using.js", | ||
"default": "./helpers/using.js" | ||
}, | ||
"./helpers/using.js" | ||
], | ||
"./helpers/esm/using": "./helpers/esm/using.js", | ||
"./helpers/wrapRegExp": [ | ||
@@ -78,11 +294,2 @@ { | ||
"./helpers/esm/AwaitValue": "./helpers/esm/AwaitValue.js", | ||
"./helpers/AsyncGenerator": [ | ||
{ | ||
"node": "./helpers/AsyncGenerator.js", | ||
"import": "./helpers/esm/AsyncGenerator.js", | ||
"default": "./helpers/AsyncGenerator.js" | ||
}, | ||
"./helpers/AsyncGenerator.js" | ||
], | ||
"./helpers/esm/AsyncGenerator": "./helpers/esm/AsyncGenerator.js", | ||
"./helpers/wrapAsyncGenerator": [ | ||
@@ -97,20 +304,2 @@ { | ||
"./helpers/esm/wrapAsyncGenerator": "./helpers/esm/wrapAsyncGenerator.js", | ||
"./helpers/awaitAsyncGenerator": [ | ||
{ | ||
"node": "./helpers/awaitAsyncGenerator.js", | ||
"import": "./helpers/esm/awaitAsyncGenerator.js", | ||
"default": "./helpers/awaitAsyncGenerator.js" | ||
}, | ||
"./helpers/awaitAsyncGenerator.js" | ||
], | ||
"./helpers/esm/awaitAsyncGenerator": "./helpers/esm/awaitAsyncGenerator.js", | ||
"./helpers/asyncGeneratorDelegate": [ | ||
{ | ||
"node": "./helpers/asyncGeneratorDelegate.js", | ||
"import": "./helpers/esm/asyncGeneratorDelegate.js", | ||
"default": "./helpers/asyncGeneratorDelegate.js" | ||
}, | ||
"./helpers/asyncGeneratorDelegate.js" | ||
], | ||
"./helpers/esm/asyncGeneratorDelegate": "./helpers/esm/asyncGeneratorDelegate.js", | ||
"./helpers/asyncToGenerator": [ | ||
@@ -224,20 +413,2 @@ { | ||
"./helpers/esm/setPrototypeOf": "./helpers/esm/setPrototypeOf.js", | ||
"./helpers/isNativeReflectConstruct": [ | ||
{ | ||
"node": "./helpers/isNativeReflectConstruct.js", | ||
"import": "./helpers/esm/isNativeReflectConstruct.js", | ||
"default": "./helpers/isNativeReflectConstruct.js" | ||
}, | ||
"./helpers/isNativeReflectConstruct.js" | ||
], | ||
"./helpers/esm/isNativeReflectConstruct": "./helpers/esm/isNativeReflectConstruct.js", | ||
"./helpers/construct": [ | ||
{ | ||
"node": "./helpers/construct.js", | ||
"import": "./helpers/esm/construct.js", | ||
"default": "./helpers/construct.js" | ||
}, | ||
"./helpers/construct.js" | ||
], | ||
"./helpers/esm/construct": "./helpers/esm/construct.js", | ||
"./helpers/isNativeFunction": [ | ||
@@ -279,11 +450,2 @@ { | ||
"./helpers/esm/interopRequireDefault": "./helpers/esm/interopRequireDefault.js", | ||
"./helpers/interopRequireWildcard": [ | ||
{ | ||
"node": "./helpers/interopRequireWildcard.js", | ||
"import": "./helpers/esm/interopRequireWildcard.js", | ||
"default": "./helpers/interopRequireWildcard.js" | ||
}, | ||
"./helpers/interopRequireWildcard.js" | ||
], | ||
"./helpers/esm/interopRequireWildcard": "./helpers/esm/interopRequireWildcard.js", | ||
"./helpers/newArrowCheck": [ | ||
@@ -523,20 +685,2 @@ { | ||
"./helpers/esm/iterableToArray": "./helpers/esm/iterableToArray.js", | ||
"./helpers/iterableToArrayLimit": [ | ||
{ | ||
"node": "./helpers/iterableToArrayLimit.js", | ||
"import": "./helpers/esm/iterableToArrayLimit.js", | ||
"default": "./helpers/iterableToArrayLimit.js" | ||
}, | ||
"./helpers/iterableToArrayLimit.js" | ||
], | ||
"./helpers/esm/iterableToArrayLimit": "./helpers/esm/iterableToArrayLimit.js", | ||
"./helpers/iterableToArrayLimitLoose": [ | ||
{ | ||
"node": "./helpers/iterableToArrayLimitLoose.js", | ||
"import": "./helpers/esm/iterableToArrayLimitLoose.js", | ||
"default": "./helpers/iterableToArrayLimitLoose.js" | ||
}, | ||
"./helpers/iterableToArrayLimitLoose.js" | ||
], | ||
"./helpers/esm/iterableToArrayLimitLoose": "./helpers/esm/iterableToArrayLimitLoose.js", | ||
"./helpers/unsupportedIterableToArray": [ | ||
@@ -605,20 +749,2 @@ { | ||
"./helpers/esm/skipFirstGeneratorNext": "./helpers/esm/skipFirstGeneratorNext.js", | ||
"./helpers/toPrimitive": [ | ||
{ | ||
"node": "./helpers/toPrimitive.js", | ||
"import": "./helpers/esm/toPrimitive.js", | ||
"default": "./helpers/toPrimitive.js" | ||
}, | ||
"./helpers/toPrimitive.js" | ||
], | ||
"./helpers/esm/toPrimitive": "./helpers/esm/toPrimitive.js", | ||
"./helpers/toPropertyKey": [ | ||
{ | ||
"node": "./helpers/toPropertyKey.js", | ||
"import": "./helpers/esm/toPropertyKey.js", | ||
"default": "./helpers/toPropertyKey.js" | ||
}, | ||
"./helpers/toPropertyKey.js" | ||
], | ||
"./helpers/esm/toPropertyKey": "./helpers/esm/toPropertyKey.js", | ||
"./helpers/initializerWarningHelper": [ | ||
@@ -849,2 +975,20 @@ { | ||
"./helpers/esm/classPrivateMethodSet": "./helpers/esm/classPrivateMethodSet.js", | ||
"./helpers/identity": [ | ||
{ | ||
"node": "./helpers/identity.js", | ||
"import": "./helpers/esm/identity.js", | ||
"default": "./helpers/identity.js" | ||
}, | ||
"./helpers/identity.js" | ||
], | ||
"./helpers/esm/identity": "./helpers/esm/identity.js", | ||
"./helpers/nullishReceiverError": [ | ||
{ | ||
"node": "./helpers/nullishReceiverError.js", | ||
"import": "./helpers/esm/nullishReceiverError.js", | ||
"default": "./helpers/nullishReceiverError.js" | ||
}, | ||
"./helpers/nullishReceiverError.js" | ||
], | ||
"./helpers/esm/nullishReceiverError": "./helpers/esm/nullishReceiverError.js", | ||
"./package": "./package.json", | ||
@@ -858,3 +1002,4 @@ "./package.json": "./package.json", | ||
"node": ">=6.9.0" | ||
} | ||
}, | ||
"type": "commonjs" | ||
} |
@@ -5,3 +5,3 @@ # @babel/runtime | ||
See our website [@babel/runtime](https://babeljs.io/docs/en/babel-runtime) for more information. | ||
See our website [@babel/runtime](https://babeljs.io/docs/babel-runtime) for more information. | ||
@@ -19,3 +19,3 @@ ## Install | ||
```sh | ||
yarn add @babel/runtime | ||
yarn add @babel/runtime | ||
``` |
@@ -1,1 +0,15 @@ | ||
module.exports = require("regenerator-runtime"); | ||
// TODO(Babel 8): Remove this file. | ||
var runtime = require("../helpers/regeneratorRuntime")(); | ||
module.exports = runtime; | ||
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736= | ||
try { | ||
regeneratorRuntime = runtime; | ||
} catch (accidentalStrictMode) { | ||
if (typeof globalThis === "object") { | ||
globalThis.regeneratorRuntime = runtime; | ||
} else { | ||
Function("r", "regeneratorRuntime = r")(runtime); | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
245977
219
5394
1
+ Addedregenerator-runtime@0.14.1(transitive)
- Removedregenerator-runtime@0.13.11(transitive)
Updatedregenerator-runtime@^0.14.0