forked from daren.hsu/line_push
update
This commit is contained in:
+2
-2
@@ -2,7 +2,7 @@
|
||||
|
||||
> babel's modular runtime helpers
|
||||
|
||||
See our website [@babel/runtime](https://babeljs.io/docs/en/next/babel-runtime.html) for more information.
|
||||
See our website [@babel/runtime](https://babeljs.io/docs/en/babel-runtime) for more information.
|
||||
|
||||
## Install
|
||||
|
||||
@@ -15,5 +15,5 @@ npm install --save @babel/runtime
|
||||
or using yarn:
|
||||
|
||||
```sh
|
||||
yarn add @babel/runtime
|
||||
yarn add @babel/runtime
|
||||
```
|
||||
|
||||
+5
-7
@@ -1,4 +1,4 @@
|
||||
var AwaitValue = require("./AwaitValue");
|
||||
var AwaitValue = require("./AwaitValue.js");
|
||||
|
||||
function AsyncGenerator(gen) {
|
||||
var front, back;
|
||||
@@ -79,11 +79,9 @@ function AsyncGenerator(gen) {
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof Symbol === "function" && Symbol.asyncIterator) {
|
||||
AsyncGenerator.prototype[Symbol.asyncIterator] = function () {
|
||||
return this;
|
||||
};
|
||||
}
|
||||
AsyncGenerator.prototype[typeof Symbol === "function" && Symbol.asyncIterator || "@@asyncIterator"] = function () {
|
||||
return this;
|
||||
};
|
||||
|
||||
AsyncGenerator.prototype.next = function (arg) {
|
||||
return this._invoke("next", arg);
|
||||
@@ -97,4 +95,4 @@ AsyncGenerator.prototype["return"] = function (arg) {
|
||||
return this._invoke("return", arg);
|
||||
};
|
||||
|
||||
module.exports = AsyncGenerator;
|
||||
module.exports = AsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+1
-1
@@ -2,4 +2,4 @@ function _AwaitValue(value) {
|
||||
this.wrapped = value;
|
||||
}
|
||||
|
||||
module.exports = _AwaitValue;
|
||||
module.exports = _AwaitValue, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+1
-1
@@ -27,4 +27,4 @@ function _applyDecoratedDescriptor(target, property, decorators, descriptor, con
|
||||
return desc;
|
||||
}
|
||||
|
||||
module.exports = _applyDecoratedDescriptor;
|
||||
module.exports = _applyDecoratedDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+284
@@ -0,0 +1,284 @@
|
||||
var _typeof = require("./typeof.js")["default"];
|
||||
|
||||
function createMetadataMethodsForProperty(metadataMap, kind, property, decoratorFinishedRef) {
|
||||
return {
|
||||
getMetadata: function getMetadata(key) {
|
||||
assertNotFinished(decoratorFinishedRef, "getMetadata"), assertMetadataKey(key);
|
||||
var metadataForKey = metadataMap[key];
|
||||
if (void 0 !== metadataForKey) if (1 === kind) {
|
||||
var pub = metadataForKey["public"];
|
||||
if (void 0 !== pub) return pub[property];
|
||||
} else if (2 === kind) {
|
||||
var priv = metadataForKey["private"];
|
||||
if (void 0 !== priv) return priv.get(property);
|
||||
} else if (Object.hasOwnProperty.call(metadataForKey, "constructor")) return metadataForKey.constructor;
|
||||
},
|
||||
setMetadata: function setMetadata(key, value) {
|
||||
assertNotFinished(decoratorFinishedRef, "setMetadata"), assertMetadataKey(key);
|
||||
var metadataForKey = metadataMap[key];
|
||||
|
||||
if (void 0 === metadataForKey && (metadataForKey = metadataMap[key] = {}), 1 === kind) {
|
||||
var pub = metadataForKey["public"];
|
||||
void 0 === pub && (pub = metadataForKey["public"] = {}), pub[property] = value;
|
||||
} else if (2 === kind) {
|
||||
var priv = metadataForKey.priv;
|
||||
void 0 === priv && (priv = metadataForKey["private"] = new Map()), priv.set(property, value);
|
||||
} else metadataForKey.constructor = value;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function convertMetadataMapToFinal(obj, metadataMap) {
|
||||
var parentMetadataMap = obj[Symbol.metadata || Symbol["for"]("Symbol.metadata")],
|
||||
metadataKeys = Object.getOwnPropertySymbols(metadataMap);
|
||||
|
||||
if (0 !== metadataKeys.length) {
|
||||
for (var i = 0; i < metadataKeys.length; i++) {
|
||||
var key = metadataKeys[i],
|
||||
metaForKey = metadataMap[key],
|
||||
parentMetaForKey = parentMetadataMap ? parentMetadataMap[key] : null,
|
||||
pub = metaForKey["public"],
|
||||
parentPub = parentMetaForKey ? parentMetaForKey["public"] : null;
|
||||
pub && parentPub && Object.setPrototypeOf(pub, parentPub);
|
||||
var priv = metaForKey["private"];
|
||||
|
||||
if (priv) {
|
||||
var privArr = Array.from(priv.values()),
|
||||
parentPriv = parentMetaForKey ? parentMetaForKey["private"] : null;
|
||||
parentPriv && (privArr = privArr.concat(parentPriv)), metaForKey["private"] = privArr;
|
||||
}
|
||||
|
||||
parentMetaForKey && Object.setPrototypeOf(metaForKey, parentMetaForKey);
|
||||
}
|
||||
|
||||
parentMetadataMap && Object.setPrototypeOf(metadataMap, parentMetadataMap), obj[Symbol.metadata || Symbol["for"]("Symbol.metadata")] = metadataMap;
|
||||
}
|
||||
}
|
||||
|
||||
function createAddInitializerMethod(initializers, decoratorFinishedRef) {
|
||||
return function (initializer) {
|
||||
assertNotFinished(decoratorFinishedRef, "addInitializer"), assertCallable(initializer, "An initializer"), initializers.push(initializer);
|
||||
};
|
||||
}
|
||||
|
||||
function memberDec(dec, name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value) {
|
||||
var kindStr;
|
||||
|
||||
switch (kind) {
|
||||
case 1:
|
||||
kindStr = "accessor";
|
||||
break;
|
||||
|
||||
case 2:
|
||||
kindStr = "method";
|
||||
break;
|
||||
|
||||
case 3:
|
||||
kindStr = "getter";
|
||||
break;
|
||||
|
||||
case 4:
|
||||
kindStr = "setter";
|
||||
break;
|
||||
|
||||
default:
|
||||
kindStr = "field";
|
||||
}
|
||||
|
||||
var metadataKind,
|
||||
metadataName,
|
||||
ctx = {
|
||||
kind: kindStr,
|
||||
name: isPrivate ? "#" + name : name,
|
||||
isStatic: isStatic,
|
||||
isPrivate: isPrivate
|
||||
},
|
||||
decoratorFinishedRef = {
|
||||
v: !1
|
||||
};
|
||||
|
||||
if (0 !== kind && (ctx.addInitializer = createAddInitializerMethod(initializers, decoratorFinishedRef)), isPrivate) {
|
||||
metadataKind = 2, metadataName = Symbol(name);
|
||||
var access = {};
|
||||
0 === kind ? (access.get = desc.get, access.set = desc.set) : 2 === kind ? access.get = function () {
|
||||
return desc.value;
|
||||
} : (1 !== kind && 3 !== kind || (access.get = function () {
|
||||
return desc.get.call(this);
|
||||
}), 1 !== kind && 4 !== kind || (access.set = function (v) {
|
||||
desc.set.call(this, v);
|
||||
})), ctx.access = access;
|
||||
} else metadataKind = 1, metadataName = name;
|
||||
|
||||
try {
|
||||
return dec(value, Object.assign(ctx, createMetadataMethodsForProperty(metadataMap, metadataKind, metadataName, decoratorFinishedRef)));
|
||||
} finally {
|
||||
decoratorFinishedRef.v = !0;
|
||||
}
|
||||
}
|
||||
|
||||
function assertNotFinished(decoratorFinishedRef, fnName) {
|
||||
if (decoratorFinishedRef.v) throw new Error("attempted to call " + fnName + " after decoration was finished");
|
||||
}
|
||||
|
||||
function assertMetadataKey(key) {
|
||||
if ("symbol" != _typeof(key)) throw new TypeError("Metadata keys must be symbols, received: " + key);
|
||||
}
|
||||
|
||||
function assertCallable(fn, hint) {
|
||||
if ("function" != typeof fn) throw new TypeError(hint + " must be a function");
|
||||
}
|
||||
|
||||
function assertValidReturnValue(kind, value) {
|
||||
var type = _typeof(value);
|
||||
|
||||
if (1 === kind) {
|
||||
if ("object" !== type || null === value) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
||||
void 0 !== value.get && assertCallable(value.get, "accessor.get"), void 0 !== value.set && assertCallable(value.set, "accessor.set"), void 0 !== value.init && assertCallable(value.init, "accessor.init"), void 0 !== value.initializer && assertCallable(value.initializer, "accessor.initializer");
|
||||
} else if ("function" !== type) {
|
||||
var hint;
|
||||
throw hint = 0 === kind ? "field" : 10 === kind ? "class" : "method", new TypeError(hint + " decorators must return a function or void 0");
|
||||
}
|
||||
}
|
||||
|
||||
function getInit(desc) {
|
||||
var initializer;
|
||||
return null == (initializer = desc.init) && (initializer = desc.initializer) && "undefined" != typeof console && console.warn(".initializer has been renamed to .init as of March 2022"), initializer;
|
||||
}
|
||||
|
||||
function applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, metadataMap, initializers) {
|
||||
var desc,
|
||||
initializer,
|
||||
value,
|
||||
newValue,
|
||||
get,
|
||||
set,
|
||||
decs = decInfo[0];
|
||||
if (isPrivate ? desc = 0 === kind || 1 === kind ? {
|
||||
get: decInfo[3],
|
||||
set: decInfo[4]
|
||||
} : 3 === kind ? {
|
||||
get: decInfo[3]
|
||||
} : 4 === kind ? {
|
||||
set: decInfo[3]
|
||||
} : {
|
||||
value: decInfo[3]
|
||||
} : 0 !== kind && (desc = Object.getOwnPropertyDescriptor(base, name)), 1 === kind ? value = {
|
||||
get: desc.get,
|
||||
set: desc.set
|
||||
} : 2 === kind ? value = desc.value : 3 === kind ? value = desc.get : 4 === kind && (value = desc.set), "function" == typeof decs) void 0 !== (newValue = memberDec(decs, name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value)) && (assertValidReturnValue(kind, newValue), 0 === kind ? initializer = newValue : 1 === kind ? (initializer = getInit(newValue), get = newValue.get || value.get, set = newValue.set || value.set, value = {
|
||||
get: get,
|
||||
set: set
|
||||
}) : value = newValue);else for (var i = decs.length - 1; i >= 0; i--) {
|
||||
var newInit;
|
||||
if (void 0 !== (newValue = memberDec(decs[i], name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value))) assertValidReturnValue(kind, newValue), 0 === kind ? newInit = newValue : 1 === kind ? (newInit = getInit(newValue), get = newValue.get || value.get, set = newValue.set || value.set, value = {
|
||||
get: get,
|
||||
set: set
|
||||
}) : value = newValue, void 0 !== newInit && (void 0 === initializer ? initializer = newInit : "function" == typeof initializer ? initializer = [initializer, newInit] : initializer.push(newInit));
|
||||
}
|
||||
|
||||
if (0 === kind || 1 === kind) {
|
||||
if (void 0 === initializer) initializer = function initializer(instance, init) {
|
||||
return init;
|
||||
};else if ("function" != typeof initializer) {
|
||||
var ownInitializers = initializer;
|
||||
|
||||
initializer = function initializer(instance, init) {
|
||||
for (var value = init, i = 0; i < ownInitializers.length; i++) {
|
||||
value = ownInitializers[i].call(instance, value);
|
||||
}
|
||||
|
||||
return value;
|
||||
};
|
||||
} else {
|
||||
var originalInitializer = initializer;
|
||||
|
||||
initializer = function initializer(instance, init) {
|
||||
return originalInitializer.call(instance, init);
|
||||
};
|
||||
}
|
||||
ret.push(initializer);
|
||||
}
|
||||
|
||||
0 !== kind && (1 === kind ? (desc.get = value.get, desc.set = value.set) : 2 === kind ? desc.value = value : 3 === kind ? desc.get = value : 4 === kind && (desc.set = value), isPrivate ? 1 === kind ? (ret.push(function (instance, args) {
|
||||
return value.get.call(instance, args);
|
||||
}), ret.push(function (instance, args) {
|
||||
return value.set.call(instance, args);
|
||||
})) : 2 === kind ? ret.push(value) : ret.push(function (instance, args) {
|
||||
return value.call(instance, args);
|
||||
}) : Object.defineProperty(base, name, desc));
|
||||
}
|
||||
|
||||
function applyMemberDecs(ret, Class, protoMetadataMap, staticMetadataMap, decInfos) {
|
||||
for (var protoInitializers, staticInitializers, existingProtoNonFields = new Map(), existingStaticNonFields = new Map(), i = 0; i < decInfos.length; i++) {
|
||||
var decInfo = decInfos[i];
|
||||
|
||||
if (Array.isArray(decInfo)) {
|
||||
var base,
|
||||
metadataMap,
|
||||
initializers,
|
||||
kind = decInfo[1],
|
||||
name = decInfo[2],
|
||||
isPrivate = decInfo.length > 3,
|
||||
isStatic = kind >= 5;
|
||||
|
||||
if (isStatic ? (base = Class, metadataMap = staticMetadataMap, 0 !== (kind -= 5) && (initializers = staticInitializers = staticInitializers || [])) : (base = Class.prototype, metadataMap = protoMetadataMap, 0 !== kind && (initializers = protoInitializers = protoInitializers || [])), 0 !== kind && !isPrivate) {
|
||||
var existingNonFields = isStatic ? existingStaticNonFields : existingProtoNonFields,
|
||||
existingKind = existingNonFields.get(name) || 0;
|
||||
if (!0 === existingKind || 3 === existingKind && 4 !== kind || 4 === existingKind && 3 !== kind) throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + name);
|
||||
!existingKind && kind > 2 ? existingNonFields.set(name, kind) : existingNonFields.set(name, !0);
|
||||
}
|
||||
|
||||
applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, metadataMap, initializers);
|
||||
}
|
||||
}
|
||||
|
||||
pushInitializers(ret, protoInitializers), pushInitializers(ret, staticInitializers);
|
||||
}
|
||||
|
||||
function pushInitializers(ret, initializers) {
|
||||
initializers && ret.push(function (instance) {
|
||||
for (var i = 0; i < initializers.length; i++) {
|
||||
initializers[i].call(instance);
|
||||
}
|
||||
|
||||
return instance;
|
||||
});
|
||||
}
|
||||
|
||||
function applyClassDecs(ret, targetClass, metadataMap, classDecs) {
|
||||
if (classDecs.length > 0) {
|
||||
for (var initializers = [], newClass = targetClass, name = targetClass.name, i = classDecs.length - 1; i >= 0; i--) {
|
||||
var decoratorFinishedRef = {
|
||||
v: !1
|
||||
};
|
||||
|
||||
try {
|
||||
var ctx = Object.assign({
|
||||
kind: "class",
|
||||
name: name,
|
||||
addInitializer: createAddInitializerMethod(initializers, decoratorFinishedRef)
|
||||
}, createMetadataMethodsForProperty(metadataMap, 0, name, decoratorFinishedRef)),
|
||||
nextNewClass = classDecs[i](newClass, ctx);
|
||||
} finally {
|
||||
decoratorFinishedRef.v = !0;
|
||||
}
|
||||
|
||||
void 0 !== nextNewClass && (assertValidReturnValue(10, nextNewClass), newClass = nextNewClass);
|
||||
}
|
||||
|
||||
ret.push(newClass, function () {
|
||||
for (var i = 0; i < initializers.length; i++) {
|
||||
initializers[i].call(newClass);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function applyDecs(targetClass, memberDecs, classDecs) {
|
||||
var ret = [],
|
||||
staticMetadataMap = {},
|
||||
protoMetadataMap = {};
|
||||
return applyMemberDecs(ret, targetClass, protoMetadataMap, staticMetadataMap, memberDecs), convertMetadataMapToFinal(targetClass.prototype, protoMetadataMap), applyClassDecs(ret, targetClass, staticMetadataMap, classDecs), convertMetadataMapToFinal(targetClass, staticMetadataMap), ret;
|
||||
}
|
||||
|
||||
module.exports = applyDecs, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+1
-1
@@ -8,4 +8,4 @@ function _arrayLikeToArray(arr, len) {
|
||||
return arr2;
|
||||
}
|
||||
|
||||
module.exports = _arrayLikeToArray;
|
||||
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+1
-1
@@ -2,4 +2,4 @@ function _arrayWithHoles(arr) {
|
||||
if (Array.isArray(arr)) return arr;
|
||||
}
|
||||
|
||||
module.exports = _arrayWithHoles;
|
||||
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
var arrayLikeToArray = require("./arrayLikeToArray");
|
||||
var arrayLikeToArray = require("./arrayLikeToArray.js");
|
||||
|
||||
function _arrayWithoutHoles(arr) {
|
||||
if (Array.isArray(arr)) return arrayLikeToArray(arr);
|
||||
}
|
||||
|
||||
module.exports = _arrayWithoutHoles;
|
||||
module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+1
-1
@@ -6,4 +6,4 @@ function _assertThisInitialized(self) {
|
||||
return self;
|
||||
}
|
||||
|
||||
module.exports = _assertThisInitialized;
|
||||
module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+4
-6
@@ -15,11 +15,9 @@ function _asyncGeneratorDelegate(inner, awaitWrap) {
|
||||
|
||||
;
|
||||
|
||||
if (typeof Symbol === "function" && Symbol.iterator) {
|
||||
iter[Symbol.iterator] = function () {
|
||||
return this;
|
||||
};
|
||||
}
|
||||
iter[typeof Symbol !== "undefined" && Symbol.iterator || "@@iterator"] = function () {
|
||||
return this;
|
||||
};
|
||||
|
||||
iter.next = function (value) {
|
||||
if (waiting) {
|
||||
@@ -55,4 +53,4 @@ function _asyncGeneratorDelegate(inner, awaitWrap) {
|
||||
return iter;
|
||||
}
|
||||
|
||||
module.exports = _asyncGeneratorDelegate;
|
||||
module.exports = _asyncGeneratorDelegate, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+43
-12
@@ -1,19 +1,50 @@
|
||||
function _asyncIterator(iterable) {
|
||||
var method;
|
||||
var method,
|
||||
async,
|
||||
sync,
|
||||
retry = 2;
|
||||
|
||||
if (typeof Symbol !== "undefined") {
|
||||
if (Symbol.asyncIterator) {
|
||||
method = iterable[Symbol.asyncIterator];
|
||||
if (method != null) return method.call(iterable);
|
||||
}
|
||||
|
||||
if (Symbol.iterator) {
|
||||
method = iterable[Symbol.iterator];
|
||||
if (method != null) return method.call(iterable);
|
||||
}
|
||||
for ("undefined" != typeof Symbol && (async = Symbol.asyncIterator, sync = Symbol.iterator); retry--;) {
|
||||
if (async && null != (method = iterable[async])) return method.call(iterable);
|
||||
if (sync && null != (method = iterable[sync])) return new AsyncFromSyncIterator(method.call(iterable));
|
||||
async = "@@asyncIterator", sync = "@@iterator";
|
||||
}
|
||||
|
||||
throw new TypeError("Object is not async iterable");
|
||||
}
|
||||
|
||||
module.exports = _asyncIterator;
|
||||
function AsyncFromSyncIterator(s) {
|
||||
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 AsyncFromSyncIterator = function AsyncFromSyncIterator(s) {
|
||||
this.s = s, this.n = s.next;
|
||||
}, AsyncFromSyncIterator.prototype = {
|
||||
s: null,
|
||||
n: null,
|
||||
next: function next() {
|
||||
return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments));
|
||||
},
|
||||
"return": function _return(value) {
|
||||
var ret = this.s["return"];
|
||||
return void 0 === ret ? Promise.resolve({
|
||||
value: value,
|
||||
done: !0
|
||||
}) : AsyncFromSyncIteratorContinuation(ret.apply(this.s, arguments));
|
||||
},
|
||||
"throw": function _throw(value) {
|
||||
var thr = this.s["return"];
|
||||
return void 0 === thr ? Promise.reject(value) : AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments));
|
||||
}
|
||||
}, new AsyncFromSyncIterator(s);
|
||||
}
|
||||
|
||||
module.exports = _asyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+1
-1
@@ -34,4 +34,4 @@ function _asyncToGenerator(fn) {
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = _asyncToGenerator;
|
||||
module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
var AwaitValue = require("./AwaitValue");
|
||||
var AwaitValue = require("./AwaitValue.js");
|
||||
|
||||
function _awaitAsyncGenerator(value) {
|
||||
return new AwaitValue(value);
|
||||
}
|
||||
|
||||
module.exports = _awaitAsyncGenerator;
|
||||
module.exports = _awaitAsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
function _checkPrivateRedeclaration(obj, privateCollection) {
|
||||
if (privateCollection.has(obj)) {
|
||||
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = _checkPrivateRedeclaration, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
function _classApplyDescriptorDestructureSet(receiver, descriptor) {
|
||||
if (descriptor.set) {
|
||||
if (!("__destrObj" in descriptor)) {
|
||||
descriptor.__destrObj = {
|
||||
set value(v) {
|
||||
descriptor.set.call(receiver, v);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
return descriptor.__destrObj;
|
||||
} else {
|
||||
if (!descriptor.writable) {
|
||||
throw new TypeError("attempted to set read only private field");
|
||||
}
|
||||
|
||||
return descriptor;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = _classApplyDescriptorDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
function _classApplyDescriptorGet(receiver, descriptor) {
|
||||
if (descriptor.get) {
|
||||
return descriptor.get.call(receiver);
|
||||
}
|
||||
|
||||
return descriptor.value;
|
||||
}
|
||||
|
||||
module.exports = _classApplyDescriptorGet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
function _classApplyDescriptorSet(receiver, descriptor, value) {
|
||||
if (descriptor.set) {
|
||||
descriptor.set.call(receiver, value);
|
||||
} else {
|
||||
if (!descriptor.writable) {
|
||||
throw new TypeError("attempted to set read only private field");
|
||||
}
|
||||
|
||||
descriptor.value = value;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = _classApplyDescriptorSet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+1
-1
@@ -4,4 +4,4 @@ function _classCallCheck(instance, Constructor) {
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = _classCallCheck;
|
||||
module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
function _classCheckPrivateStaticAccess(receiver, classConstructor) {
|
||||
if (receiver !== classConstructor) {
|
||||
throw new TypeError("Private static access of wrong provenance");
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = _classCheckPrivateStaticAccess, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
function _classCheckPrivateStaticFieldDescriptor(descriptor, action) {
|
||||
if (descriptor === undefined) {
|
||||
throw new TypeError("attempted to " + action + " private static field before its declaration");
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = _classCheckPrivateStaticFieldDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
function _classExtractFieldDescriptor(receiver, privateMap, action) {
|
||||
if (!privateMap.has(receiver)) {
|
||||
throw new TypeError("attempted to " + action + " private field on non-instance");
|
||||
}
|
||||
|
||||
return privateMap.get(receiver);
|
||||
}
|
||||
|
||||
module.exports = _classExtractFieldDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+1
-1
@@ -2,4 +2,4 @@ function _classNameTDZError(name) {
|
||||
throw new Error("Class \"" + name + "\" cannot be referenced in computed property keys.");
|
||||
}
|
||||
|
||||
module.exports = _classNameTDZError;
|
||||
module.exports = _classNameTDZError, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+7
-25
@@ -1,28 +1,10 @@
|
||||
var classApplyDescriptorDestructureSet = require("./classApplyDescriptorDestructureSet.js");
|
||||
|
||||
var classExtractFieldDescriptor = require("./classExtractFieldDescriptor.js");
|
||||
|
||||
function _classPrivateFieldDestructureSet(receiver, privateMap) {
|
||||
if (!privateMap.has(receiver)) {
|
||||
throw new TypeError("attempted to set private field on non-instance");
|
||||
}
|
||||
|
||||
var descriptor = privateMap.get(receiver);
|
||||
|
||||
if (descriptor.set) {
|
||||
if (!("__destrObj" in descriptor)) {
|
||||
descriptor.__destrObj = {
|
||||
set value(v) {
|
||||
descriptor.set.call(receiver, v);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
return descriptor.__destrObj;
|
||||
} else {
|
||||
if (!descriptor.writable) {
|
||||
throw new TypeError("attempted to set read only private field");
|
||||
}
|
||||
|
||||
return descriptor;
|
||||
}
|
||||
var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set");
|
||||
return classApplyDescriptorDestructureSet(receiver, descriptor);
|
||||
}
|
||||
|
||||
module.exports = _classPrivateFieldDestructureSet;
|
||||
module.exports = _classPrivateFieldDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+7
-12
@@ -1,15 +1,10 @@
|
||||
var classApplyDescriptorGet = require("./classApplyDescriptorGet.js");
|
||||
|
||||
var classExtractFieldDescriptor = require("./classExtractFieldDescriptor.js");
|
||||
|
||||
function _classPrivateFieldGet(receiver, privateMap) {
|
||||
var descriptor = privateMap.get(receiver);
|
||||
|
||||
if (!descriptor) {
|
||||
throw new TypeError("attempted to get private field on non-instance");
|
||||
}
|
||||
|
||||
if (descriptor.get) {
|
||||
return descriptor.get.call(receiver);
|
||||
}
|
||||
|
||||
return descriptor.value;
|
||||
var descriptor = classExtractFieldDescriptor(receiver, privateMap, "get");
|
||||
return classApplyDescriptorGet(receiver, descriptor);
|
||||
}
|
||||
|
||||
module.exports = _classPrivateFieldGet;
|
||||
module.exports = _classPrivateFieldGet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
var checkPrivateRedeclaration = require("./checkPrivateRedeclaration.js");
|
||||
|
||||
function _classPrivateFieldInitSpec(obj, privateMap, value) {
|
||||
checkPrivateRedeclaration(obj, privateMap);
|
||||
privateMap.set(obj, value);
|
||||
}
|
||||
|
||||
module.exports = _classPrivateFieldInitSpec, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+1
-1
@@ -6,4 +6,4 @@ function _classPrivateFieldBase(receiver, privateKey) {
|
||||
return receiver;
|
||||
}
|
||||
|
||||
module.exports = _classPrivateFieldBase;
|
||||
module.exports = _classPrivateFieldBase, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+1
-1
@@ -4,4 +4,4 @@ function _classPrivateFieldKey(name) {
|
||||
return "__private_" + id++ + "_" + name;
|
||||
}
|
||||
|
||||
module.exports = _classPrivateFieldKey;
|
||||
module.exports = _classPrivateFieldKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+7
-17
@@ -1,21 +1,11 @@
|
||||
var classApplyDescriptorSet = require("./classApplyDescriptorSet.js");
|
||||
|
||||
var classExtractFieldDescriptor = require("./classExtractFieldDescriptor.js");
|
||||
|
||||
function _classPrivateFieldSet(receiver, privateMap, value) {
|
||||
var descriptor = privateMap.get(receiver);
|
||||
|
||||
if (!descriptor) {
|
||||
throw new TypeError("attempted to set private field on non-instance");
|
||||
}
|
||||
|
||||
if (descriptor.set) {
|
||||
descriptor.set.call(receiver, value);
|
||||
} else {
|
||||
if (!descriptor.writable) {
|
||||
throw new TypeError("attempted to set read only private field");
|
||||
}
|
||||
|
||||
descriptor.value = value;
|
||||
}
|
||||
|
||||
var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set");
|
||||
classApplyDescriptorSet(receiver, descriptor, value);
|
||||
return value;
|
||||
}
|
||||
|
||||
module.exports = _classPrivateFieldSet;
|
||||
module.exports = _classPrivateFieldSet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+1
-1
@@ -6,4 +6,4 @@ function _classPrivateMethodGet(receiver, privateSet, fn) {
|
||||
return fn;
|
||||
}
|
||||
|
||||
module.exports = _classPrivateMethodGet;
|
||||
module.exports = _classPrivateMethodGet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
var checkPrivateRedeclaration = require("./checkPrivateRedeclaration.js");
|
||||
|
||||
function _classPrivateMethodInitSpec(obj, privateSet) {
|
||||
checkPrivateRedeclaration(obj, privateSet);
|
||||
privateSet.add(obj);
|
||||
}
|
||||
|
||||
module.exports = _classPrivateMethodInitSpec, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+1
-1
@@ -2,4 +2,4 @@ function _classPrivateMethodSet() {
|
||||
throw new TypeError("attempted to reassign private method");
|
||||
}
|
||||
|
||||
module.exports = _classPrivateMethodSet;
|
||||
module.exports = _classPrivateMethodSet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
var classApplyDescriptorDestructureSet = require("./classApplyDescriptorDestructureSet.js");
|
||||
|
||||
var classCheckPrivateStaticAccess = require("./classCheckPrivateStaticAccess.js");
|
||||
|
||||
var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js");
|
||||
|
||||
function _classStaticPrivateFieldDestructureSet(receiver, classConstructor, descriptor) {
|
||||
classCheckPrivateStaticAccess(receiver, classConstructor);
|
||||
classCheckPrivateStaticFieldDescriptor(descriptor, "set");
|
||||
return classApplyDescriptorDestructureSet(receiver, descriptor);
|
||||
}
|
||||
|
||||
module.exports = _classStaticPrivateFieldDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+10
-10
@@ -1,13 +1,13 @@
|
||||
var classApplyDescriptorGet = require("./classApplyDescriptorGet.js");
|
||||
|
||||
var classCheckPrivateStaticAccess = require("./classCheckPrivateStaticAccess.js");
|
||||
|
||||
var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js");
|
||||
|
||||
function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
|
||||
if (receiver !== classConstructor) {
|
||||
throw new TypeError("Private static access of wrong provenance");
|
||||
}
|
||||
|
||||
if (descriptor.get) {
|
||||
return descriptor.get.call(receiver);
|
||||
}
|
||||
|
||||
return descriptor.value;
|
||||
classCheckPrivateStaticAccess(receiver, classConstructor);
|
||||
classCheckPrivateStaticFieldDescriptor(descriptor, "get");
|
||||
return classApplyDescriptorGet(receiver, descriptor);
|
||||
}
|
||||
|
||||
module.exports = _classStaticPrivateFieldSpecGet;
|
||||
module.exports = _classStaticPrivateFieldSpecGet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+10
-15
@@ -1,19 +1,14 @@
|
||||
var classApplyDescriptorSet = require("./classApplyDescriptorSet.js");
|
||||
|
||||
var classCheckPrivateStaticAccess = require("./classCheckPrivateStaticAccess.js");
|
||||
|
||||
var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js");
|
||||
|
||||
function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) {
|
||||
if (receiver !== classConstructor) {
|
||||
throw new TypeError("Private static access of wrong provenance");
|
||||
}
|
||||
|
||||
if (descriptor.set) {
|
||||
descriptor.set.call(receiver, value);
|
||||
} else {
|
||||
if (!descriptor.writable) {
|
||||
throw new TypeError("attempted to set read only private field");
|
||||
}
|
||||
|
||||
descriptor.value = value;
|
||||
}
|
||||
|
||||
classCheckPrivateStaticAccess(receiver, classConstructor);
|
||||
classCheckPrivateStaticFieldDescriptor(descriptor, "set");
|
||||
classApplyDescriptorSet(receiver, descriptor, value);
|
||||
return value;
|
||||
}
|
||||
|
||||
module.exports = _classStaticPrivateFieldSpecSet;
|
||||
module.exports = _classStaticPrivateFieldSpecSet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+4
-5
@@ -1,9 +1,8 @@
|
||||
function _classStaticPrivateMethodGet(receiver, classConstructor, method) {
|
||||
if (receiver !== classConstructor) {
|
||||
throw new TypeError("Private static access of wrong provenance");
|
||||
}
|
||||
var classCheckPrivateStaticAccess = require("./classCheckPrivateStaticAccess.js");
|
||||
|
||||
function _classStaticPrivateMethodGet(receiver, classConstructor, method) {
|
||||
classCheckPrivateStaticAccess(receiver, classConstructor);
|
||||
return method;
|
||||
}
|
||||
|
||||
module.exports = _classStaticPrivateMethodGet;
|
||||
module.exports = _classStaticPrivateMethodGet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+1
-1
@@ -2,4 +2,4 @@ function _classStaticPrivateMethodSet() {
|
||||
throw new TypeError("attempted to set read only static private field");
|
||||
}
|
||||
|
||||
module.exports = _classStaticPrivateMethodSet;
|
||||
module.exports = _classStaticPrivateMethodSet, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+5
-5
@@ -1,10 +1,10 @@
|
||||
var setPrototypeOf = require("./setPrototypeOf");
|
||||
var setPrototypeOf = require("./setPrototypeOf.js");
|
||||
|
||||
var isNativeReflectConstruct = require("./isNativeReflectConstruct");
|
||||
var isNativeReflectConstruct = require("./isNativeReflectConstruct.js");
|
||||
|
||||
function _construct(Parent, args, Class) {
|
||||
if (isNativeReflectConstruct()) {
|
||||
module.exports = _construct = Reflect.construct;
|
||||
module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
} else {
|
||||
module.exports = _construct = function _construct(Parent, args, Class) {
|
||||
var a = [null];
|
||||
@@ -13,10 +13,10 @@ function _construct(Parent, args, Class) {
|
||||
var instance = new Constructor();
|
||||
if (Class) setPrototypeOf(instance, Class.prototype);
|
||||
return instance;
|
||||
};
|
||||
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
}
|
||||
|
||||
return _construct.apply(null, arguments);
|
||||
}
|
||||
|
||||
module.exports = _construct;
|
||||
module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+4
-1
@@ -11,7 +11,10 @@ function _defineProperties(target, props) {
|
||||
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 = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+5
-5
@@ -1,9 +1,9 @@
|
||||
var unsupportedIterableToArray = require("./unsupportedIterableToArray");
|
||||
var unsupportedIterableToArray = require("./unsupportedIterableToArray.js");
|
||||
|
||||
function _createForOfIteratorHelper(o, allowArrayLike) {
|
||||
var it;
|
||||
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
||||
|
||||
if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
|
||||
if (!it) {
|
||||
if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
||||
if (it) o = it;
|
||||
var i = 0;
|
||||
@@ -36,7 +36,7 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
||||
err;
|
||||
return {
|
||||
s: function s() {
|
||||
it = o[Symbol.iterator]();
|
||||
it = it.call(o);
|
||||
},
|
||||
n: function n() {
|
||||
var step = it.next();
|
||||
@@ -57,4 +57,4 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = _createForOfIteratorHelper;
|
||||
module.exports = _createForOfIteratorHelper, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+16
-20
@@ -1,28 +1,24 @@
|
||||
var unsupportedIterableToArray = require("./unsupportedIterableToArray");
|
||||
var unsupportedIterableToArray = require("./unsupportedIterableToArray.js");
|
||||
|
||||
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
||||
var it;
|
||||
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
||||
if (it) return (it = it.call(o)).next.bind(it);
|
||||
|
||||
if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
|
||||
if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
||||
if (it) o = it;
|
||||
var i = 0;
|
||||
return function () {
|
||||
if (i >= o.length) return {
|
||||
done: true
|
||||
};
|
||||
return {
|
||||
done: false,
|
||||
value: o[i++]
|
||||
};
|
||||
if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
||||
if (it) o = it;
|
||||
var i = 0;
|
||||
return function () {
|
||||
if (i >= o.length) return {
|
||||
done: true
|
||||
};
|
||||
}
|
||||
|
||||
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
return {
|
||||
done: false,
|
||||
value: o[i++]
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
it = o[Symbol.iterator]();
|
||||
return it.next.bind(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 = _createForOfIteratorHelperLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+4
-4
@@ -1,8 +1,8 @@
|
||||
var getPrototypeOf = require("./getPrototypeOf");
|
||||
var getPrototypeOf = require("./getPrototypeOf.js");
|
||||
|
||||
var isNativeReflectConstruct = require("./isNativeReflectConstruct");
|
||||
var isNativeReflectConstruct = require("./isNativeReflectConstruct.js");
|
||||
|
||||
var possibleConstructorReturn = require("./possibleConstructorReturn");
|
||||
var possibleConstructorReturn = require("./possibleConstructorReturn.js");
|
||||
|
||||
function _createSuper(Derived) {
|
||||
var hasNativeReflectConstruct = isNativeReflectConstruct();
|
||||
@@ -21,4 +21,4 @@ function _createSuper(Derived) {
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = _createSuper;
|
||||
module.exports = _createSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
var toArray = require("./toArray");
|
||||
var toArray = require("./toArray.js");
|
||||
|
||||
var toPropertyKey = require("./toPropertyKey");
|
||||
var toPropertyKey = require("./toPropertyKey.js");
|
||||
|
||||
function _decorate(decorators, factory, superClass, mixins) {
|
||||
var api = _getDecoratorsApi();
|
||||
@@ -397,4 +397,4 @@ function _optionalCallableProperty(obj, name) {
|
||||
return value;
|
||||
}
|
||||
|
||||
module.exports = _decorate;
|
||||
module.exports = _decorate, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+1
-1
@@ -13,4 +13,4 @@ function _defaults(obj, defaults) {
|
||||
return obj;
|
||||
}
|
||||
|
||||
module.exports = _defaults;
|
||||
module.exports = _defaults, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+1
-1
@@ -21,4 +21,4 @@ function _defineEnumerableProperties(obj, descs) {
|
||||
return obj;
|
||||
}
|
||||
|
||||
module.exports = _defineEnumerableProperties;
|
||||
module.exports = _defineEnumerableProperties, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+1
-1
@@ -13,4 +13,4 @@ function _defineProperty(obj, key, value) {
|
||||
return obj;
|
||||
}
|
||||
|
||||
module.exports = _defineProperty;
|
||||
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
||||
+4
-6
@@ -1,4 +1,4 @@
|
||||
import AwaitValue from "./AwaitValue";
|
||||
import AwaitValue from "./AwaitValue.js";
|
||||
export default function AsyncGenerator(gen) {
|
||||
var front, back;
|
||||
|
||||
@@ -78,11 +78,9 @@ export default function AsyncGenerator(gen) {
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof Symbol === "function" && Symbol.asyncIterator) {
|
||||
AsyncGenerator.prototype[Symbol.asyncIterator] = function () {
|
||||
return this;
|
||||
};
|
||||
}
|
||||
AsyncGenerator.prototype[typeof Symbol === "function" && Symbol.asyncIterator || "@@asyncIterator"] = function () {
|
||||
return this;
|
||||
};
|
||||
|
||||
AsyncGenerator.prototype.next = function (arg) {
|
||||
return this._invoke("next", arg);
|
||||
|
||||
+282
@@ -0,0 +1,282 @@
|
||||
import _typeof from "./typeof.js";
|
||||
|
||||
function createMetadataMethodsForProperty(metadataMap, kind, property, decoratorFinishedRef) {
|
||||
return {
|
||||
getMetadata: function getMetadata(key) {
|
||||
assertNotFinished(decoratorFinishedRef, "getMetadata"), assertMetadataKey(key);
|
||||
var metadataForKey = metadataMap[key];
|
||||
if (void 0 !== metadataForKey) if (1 === kind) {
|
||||
var pub = metadataForKey["public"];
|
||||
if (void 0 !== pub) return pub[property];
|
||||
} else if (2 === kind) {
|
||||
var priv = metadataForKey["private"];
|
||||
if (void 0 !== priv) return priv.get(property);
|
||||
} else if (Object.hasOwnProperty.call(metadataForKey, "constructor")) return metadataForKey.constructor;
|
||||
},
|
||||
setMetadata: function setMetadata(key, value) {
|
||||
assertNotFinished(decoratorFinishedRef, "setMetadata"), assertMetadataKey(key);
|
||||
var metadataForKey = metadataMap[key];
|
||||
|
||||
if (void 0 === metadataForKey && (metadataForKey = metadataMap[key] = {}), 1 === kind) {
|
||||
var pub = metadataForKey["public"];
|
||||
void 0 === pub && (pub = metadataForKey["public"] = {}), pub[property] = value;
|
||||
} else if (2 === kind) {
|
||||
var priv = metadataForKey.priv;
|
||||
void 0 === priv && (priv = metadataForKey["private"] = new Map()), priv.set(property, value);
|
||||
} else metadataForKey.constructor = value;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function convertMetadataMapToFinal(obj, metadataMap) {
|
||||
var parentMetadataMap = obj[Symbol.metadata || Symbol["for"]("Symbol.metadata")],
|
||||
metadataKeys = Object.getOwnPropertySymbols(metadataMap);
|
||||
|
||||
if (0 !== metadataKeys.length) {
|
||||
for (var i = 0; i < metadataKeys.length; i++) {
|
||||
var key = metadataKeys[i],
|
||||
metaForKey = metadataMap[key],
|
||||
parentMetaForKey = parentMetadataMap ? parentMetadataMap[key] : null,
|
||||
pub = metaForKey["public"],
|
||||
parentPub = parentMetaForKey ? parentMetaForKey["public"] : null;
|
||||
pub && parentPub && Object.setPrototypeOf(pub, parentPub);
|
||||
var priv = metaForKey["private"];
|
||||
|
||||
if (priv) {
|
||||
var privArr = Array.from(priv.values()),
|
||||
parentPriv = parentMetaForKey ? parentMetaForKey["private"] : null;
|
||||
parentPriv && (privArr = privArr.concat(parentPriv)), metaForKey["private"] = privArr;
|
||||
}
|
||||
|
||||
parentMetaForKey && Object.setPrototypeOf(metaForKey, parentMetaForKey);
|
||||
}
|
||||
|
||||
parentMetadataMap && Object.setPrototypeOf(metadataMap, parentMetadataMap), obj[Symbol.metadata || Symbol["for"]("Symbol.metadata")] = metadataMap;
|
||||
}
|
||||
}
|
||||
|
||||
function createAddInitializerMethod(initializers, decoratorFinishedRef) {
|
||||
return function (initializer) {
|
||||
assertNotFinished(decoratorFinishedRef, "addInitializer"), assertCallable(initializer, "An initializer"), initializers.push(initializer);
|
||||
};
|
||||
}
|
||||
|
||||
function memberDec(dec, name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value) {
|
||||
var kindStr;
|
||||
|
||||
switch (kind) {
|
||||
case 1:
|
||||
kindStr = "accessor";
|
||||
break;
|
||||
|
||||
case 2:
|
||||
kindStr = "method";
|
||||
break;
|
||||
|
||||
case 3:
|
||||
kindStr = "getter";
|
||||
break;
|
||||
|
||||
case 4:
|
||||
kindStr = "setter";
|
||||
break;
|
||||
|
||||
default:
|
||||
kindStr = "field";
|
||||
}
|
||||
|
||||
var metadataKind,
|
||||
metadataName,
|
||||
ctx = {
|
||||
kind: kindStr,
|
||||
name: isPrivate ? "#" + name : name,
|
||||
isStatic: isStatic,
|
||||
isPrivate: isPrivate
|
||||
},
|
||||
decoratorFinishedRef = {
|
||||
v: !1
|
||||
};
|
||||
|
||||
if (0 !== kind && (ctx.addInitializer = createAddInitializerMethod(initializers, decoratorFinishedRef)), isPrivate) {
|
||||
metadataKind = 2, metadataName = Symbol(name);
|
||||
var access = {};
|
||||
0 === kind ? (access.get = desc.get, access.set = desc.set) : 2 === kind ? access.get = function () {
|
||||
return desc.value;
|
||||
} : (1 !== kind && 3 !== kind || (access.get = function () {
|
||||
return desc.get.call(this);
|
||||
}), 1 !== kind && 4 !== kind || (access.set = function (v) {
|
||||
desc.set.call(this, v);
|
||||
})), ctx.access = access;
|
||||
} else metadataKind = 1, metadataName = name;
|
||||
|
||||
try {
|
||||
return dec(value, Object.assign(ctx, createMetadataMethodsForProperty(metadataMap, metadataKind, metadataName, decoratorFinishedRef)));
|
||||
} finally {
|
||||
decoratorFinishedRef.v = !0;
|
||||
}
|
||||
}
|
||||
|
||||
function assertNotFinished(decoratorFinishedRef, fnName) {
|
||||
if (decoratorFinishedRef.v) throw new Error("attempted to call " + fnName + " after decoration was finished");
|
||||
}
|
||||
|
||||
function assertMetadataKey(key) {
|
||||
if ("symbol" != _typeof(key)) throw new TypeError("Metadata keys must be symbols, received: " + key);
|
||||
}
|
||||
|
||||
function assertCallable(fn, hint) {
|
||||
if ("function" != typeof fn) throw new TypeError(hint + " must be a function");
|
||||
}
|
||||
|
||||
function assertValidReturnValue(kind, value) {
|
||||
var type = _typeof(value);
|
||||
|
||||
if (1 === kind) {
|
||||
if ("object" !== type || null === value) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
||||
void 0 !== value.get && assertCallable(value.get, "accessor.get"), void 0 !== value.set && assertCallable(value.set, "accessor.set"), void 0 !== value.init && assertCallable(value.init, "accessor.init"), void 0 !== value.initializer && assertCallable(value.initializer, "accessor.initializer");
|
||||
} else if ("function" !== type) {
|
||||
var hint;
|
||||
throw hint = 0 === kind ? "field" : 10 === kind ? "class" : "method", new TypeError(hint + " decorators must return a function or void 0");
|
||||
}
|
||||
}
|
||||
|
||||
function getInit(desc) {
|
||||
var initializer;
|
||||
return null == (initializer = desc.init) && (initializer = desc.initializer) && "undefined" != typeof console && console.warn(".initializer has been renamed to .init as of March 2022"), initializer;
|
||||
}
|
||||
|
||||
function applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, metadataMap, initializers) {
|
||||
var desc,
|
||||
initializer,
|
||||
value,
|
||||
newValue,
|
||||
get,
|
||||
set,
|
||||
decs = decInfo[0];
|
||||
if (isPrivate ? desc = 0 === kind || 1 === kind ? {
|
||||
get: decInfo[3],
|
||||
set: decInfo[4]
|
||||
} : 3 === kind ? {
|
||||
get: decInfo[3]
|
||||
} : 4 === kind ? {
|
||||
set: decInfo[3]
|
||||
} : {
|
||||
value: decInfo[3]
|
||||
} : 0 !== kind && (desc = Object.getOwnPropertyDescriptor(base, name)), 1 === kind ? value = {
|
||||
get: desc.get,
|
||||
set: desc.set
|
||||
} : 2 === kind ? value = desc.value : 3 === kind ? value = desc.get : 4 === kind && (value = desc.set), "function" == typeof decs) void 0 !== (newValue = memberDec(decs, name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value)) && (assertValidReturnValue(kind, newValue), 0 === kind ? initializer = newValue : 1 === kind ? (initializer = getInit(newValue), get = newValue.get || value.get, set = newValue.set || value.set, value = {
|
||||
get: get,
|
||||
set: set
|
||||
}) : value = newValue);else for (var i = decs.length - 1; i >= 0; i--) {
|
||||
var newInit;
|
||||
if (void 0 !== (newValue = memberDec(decs[i], name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value))) assertValidReturnValue(kind, newValue), 0 === kind ? newInit = newValue : 1 === kind ? (newInit = getInit(newValue), get = newValue.get || value.get, set = newValue.set || value.set, value = {
|
||||
get: get,
|
||||
set: set
|
||||
}) : value = newValue, void 0 !== newInit && (void 0 === initializer ? initializer = newInit : "function" == typeof initializer ? initializer = [initializer, newInit] : initializer.push(newInit));
|
||||
}
|
||||
|
||||
if (0 === kind || 1 === kind) {
|
||||
if (void 0 === initializer) initializer = function initializer(instance, init) {
|
||||
return init;
|
||||
};else if ("function" != typeof initializer) {
|
||||
var ownInitializers = initializer;
|
||||
|
||||
initializer = function initializer(instance, init) {
|
||||
for (var value = init, i = 0; i < ownInitializers.length; i++) {
|
||||
value = ownInitializers[i].call(instance, value);
|
||||
}
|
||||
|
||||
return value;
|
||||
};
|
||||
} else {
|
||||
var originalInitializer = initializer;
|
||||
|
||||
initializer = function initializer(instance, init) {
|
||||
return originalInitializer.call(instance, init);
|
||||
};
|
||||
}
|
||||
ret.push(initializer);
|
||||
}
|
||||
|
||||
0 !== kind && (1 === kind ? (desc.get = value.get, desc.set = value.set) : 2 === kind ? desc.value = value : 3 === kind ? desc.get = value : 4 === kind && (desc.set = value), isPrivate ? 1 === kind ? (ret.push(function (instance, args) {
|
||||
return value.get.call(instance, args);
|
||||
}), ret.push(function (instance, args) {
|
||||
return value.set.call(instance, args);
|
||||
})) : 2 === kind ? ret.push(value) : ret.push(function (instance, args) {
|
||||
return value.call(instance, args);
|
||||
}) : Object.defineProperty(base, name, desc));
|
||||
}
|
||||
|
||||
function applyMemberDecs(ret, Class, protoMetadataMap, staticMetadataMap, decInfos) {
|
||||
for (var protoInitializers, staticInitializers, existingProtoNonFields = new Map(), existingStaticNonFields = new Map(), i = 0; i < decInfos.length; i++) {
|
||||
var decInfo = decInfos[i];
|
||||
|
||||
if (Array.isArray(decInfo)) {
|
||||
var base,
|
||||
metadataMap,
|
||||
initializers,
|
||||
kind = decInfo[1],
|
||||
name = decInfo[2],
|
||||
isPrivate = decInfo.length > 3,
|
||||
isStatic = kind >= 5;
|
||||
|
||||
if (isStatic ? (base = Class, metadataMap = staticMetadataMap, 0 !== (kind -= 5) && (initializers = staticInitializers = staticInitializers || [])) : (base = Class.prototype, metadataMap = protoMetadataMap, 0 !== kind && (initializers = protoInitializers = protoInitializers || [])), 0 !== kind && !isPrivate) {
|
||||
var existingNonFields = isStatic ? existingStaticNonFields : existingProtoNonFields,
|
||||
existingKind = existingNonFields.get(name) || 0;
|
||||
if (!0 === existingKind || 3 === existingKind && 4 !== kind || 4 === existingKind && 3 !== kind) throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + name);
|
||||
!existingKind && kind > 2 ? existingNonFields.set(name, kind) : existingNonFields.set(name, !0);
|
||||
}
|
||||
|
||||
applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, metadataMap, initializers);
|
||||
}
|
||||
}
|
||||
|
||||
pushInitializers(ret, protoInitializers), pushInitializers(ret, staticInitializers);
|
||||
}
|
||||
|
||||
function pushInitializers(ret, initializers) {
|
||||
initializers && ret.push(function (instance) {
|
||||
for (var i = 0; i < initializers.length; i++) {
|
||||
initializers[i].call(instance);
|
||||
}
|
||||
|
||||
return instance;
|
||||
});
|
||||
}
|
||||
|
||||
function applyClassDecs(ret, targetClass, metadataMap, classDecs) {
|
||||
if (classDecs.length > 0) {
|
||||
for (var initializers = [], newClass = targetClass, name = targetClass.name, i = classDecs.length - 1; i >= 0; i--) {
|
||||
var decoratorFinishedRef = {
|
||||
v: !1
|
||||
};
|
||||
|
||||
try {
|
||||
var ctx = Object.assign({
|
||||
kind: "class",
|
||||
name: name,
|
||||
addInitializer: createAddInitializerMethod(initializers, decoratorFinishedRef)
|
||||
}, createMetadataMethodsForProperty(metadataMap, 0, name, decoratorFinishedRef)),
|
||||
nextNewClass = classDecs[i](newClass, ctx);
|
||||
} finally {
|
||||
decoratorFinishedRef.v = !0;
|
||||
}
|
||||
|
||||
void 0 !== nextNewClass && (assertValidReturnValue(10, nextNewClass), newClass = nextNewClass);
|
||||
}
|
||||
|
||||
ret.push(newClass, function () {
|
||||
for (var i = 0; i < initializers.length; i++) {
|
||||
initializers[i].call(newClass);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export default function applyDecs(targetClass, memberDecs, classDecs) {
|
||||
var ret = [],
|
||||
staticMetadataMap = {},
|
||||
protoMetadataMap = {};
|
||||
return applyMemberDecs(ret, targetClass, protoMetadataMap, staticMetadataMap, memberDecs), convertMetadataMapToFinal(targetClass.prototype, protoMetadataMap), applyClassDecs(ret, targetClass, staticMetadataMap, classDecs), convertMetadataMapToFinal(targetClass, staticMetadataMap), ret;
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import arrayLikeToArray from "./arrayLikeToArray";
|
||||
import arrayLikeToArray from "./arrayLikeToArray.js";
|
||||
export default function _arrayWithoutHoles(arr) {
|
||||
if (Array.isArray(arr)) return arrayLikeToArray(arr);
|
||||
}
|
||||
+3
-5
@@ -15,11 +15,9 @@ export default function _asyncGeneratorDelegate(inner, awaitWrap) {
|
||||
|
||||
;
|
||||
|
||||
if (typeof Symbol === "function" && Symbol.iterator) {
|
||||
iter[Symbol.iterator] = function () {
|
||||
return this;
|
||||
};
|
||||
}
|
||||
iter[typeof Symbol !== "undefined" && Symbol.iterator || "@@iterator"] = function () {
|
||||
return this;
|
||||
};
|
||||
|
||||
iter.next = function (value) {
|
||||
if (waiting) {
|
||||
|
||||
+42
-11
@@ -1,17 +1,48 @@
|
||||
export default function _asyncIterator(iterable) {
|
||||
var method;
|
||||
var method,
|
||||
async,
|
||||
sync,
|
||||
retry = 2;
|
||||
|
||||
if (typeof Symbol !== "undefined") {
|
||||
if (Symbol.asyncIterator) {
|
||||
method = iterable[Symbol.asyncIterator];
|
||||
if (method != null) return method.call(iterable);
|
||||
}
|
||||
|
||||
if (Symbol.iterator) {
|
||||
method = iterable[Symbol.iterator];
|
||||
if (method != null) return method.call(iterable);
|
||||
}
|
||||
for ("undefined" != typeof Symbol && (async = Symbol.asyncIterator, sync = Symbol.iterator); retry--;) {
|
||||
if (async && null != (method = iterable[async])) return method.call(iterable);
|
||||
if (sync && null != (method = iterable[sync])) return new AsyncFromSyncIterator(method.call(iterable));
|
||||
async = "@@asyncIterator", sync = "@@iterator";
|
||||
}
|
||||
|
||||
throw new TypeError("Object is not async iterable");
|
||||
}
|
||||
|
||||
function AsyncFromSyncIterator(s) {
|
||||
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 AsyncFromSyncIterator = function AsyncFromSyncIterator(s) {
|
||||
this.s = s, this.n = s.next;
|
||||
}, AsyncFromSyncIterator.prototype = {
|
||||
s: null,
|
||||
n: null,
|
||||
next: function next() {
|
||||
return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments));
|
||||
},
|
||||
"return": function _return(value) {
|
||||
var ret = this.s["return"];
|
||||
return void 0 === ret ? Promise.resolve({
|
||||
value: value,
|
||||
done: !0
|
||||
}) : AsyncFromSyncIteratorContinuation(ret.apply(this.s, arguments));
|
||||
},
|
||||
"throw": function _throw(value) {
|
||||
var thr = this.s["return"];
|
||||
return void 0 === thr ? Promise.reject(value) : AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments));
|
||||
}
|
||||
}, new AsyncFromSyncIterator(s);
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import AwaitValue from "./AwaitValue";
|
||||
import AwaitValue from "./AwaitValue.js";
|
||||
export default function _awaitAsyncGenerator(value) {
|
||||
return new AwaitValue(value);
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
export default function _checkPrivateRedeclaration(obj, privateCollection) {
|
||||
if (privateCollection.has(obj)) {
|
||||
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
export default function _classApplyDescriptorDestructureSet(receiver, descriptor) {
|
||||
if (descriptor.set) {
|
||||
if (!("__destrObj" in descriptor)) {
|
||||
descriptor.__destrObj = {
|
||||
set value(v) {
|
||||
descriptor.set.call(receiver, v);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
return descriptor.__destrObj;
|
||||
} else {
|
||||
if (!descriptor.writable) {
|
||||
throw new TypeError("attempted to set read only private field");
|
||||
}
|
||||
|
||||
return descriptor;
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
export default function _classApplyDescriptorGet(receiver, descriptor) {
|
||||
if (descriptor.get) {
|
||||
return descriptor.get.call(receiver);
|
||||
}
|
||||
|
||||
return descriptor.value;
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
export default function _classApplyDescriptorSet(receiver, descriptor, value) {
|
||||
if (descriptor.set) {
|
||||
descriptor.set.call(receiver, value);
|
||||
} else {
|
||||
if (!descriptor.writable) {
|
||||
throw new TypeError("attempted to set read only private field");
|
||||
}
|
||||
|
||||
descriptor.value = value;
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
export default function _classCheckPrivateStaticAccess(receiver, classConstructor) {
|
||||
if (receiver !== classConstructor) {
|
||||
throw new TypeError("Private static access of wrong provenance");
|
||||
}
|
||||
}
|
||||
Generated
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
export default function _classCheckPrivateStaticFieldDescriptor(descriptor, action) {
|
||||
if (descriptor === undefined) {
|
||||
throw new TypeError("attempted to " + action + " private static field before its declaration");
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
export default function _classExtractFieldDescriptor(receiver, privateMap, action) {
|
||||
if (!privateMap.has(receiver)) {
|
||||
throw new TypeError("attempted to " + action + " private field on non-instance");
|
||||
}
|
||||
|
||||
return privateMap.get(receiver);
|
||||
}
|
||||
+4
-24
@@ -1,26 +1,6 @@
|
||||
import classApplyDescriptorDestructureSet from "./classApplyDescriptorDestructureSet.js";
|
||||
import classExtractFieldDescriptor from "./classExtractFieldDescriptor.js";
|
||||
export default function _classPrivateFieldDestructureSet(receiver, privateMap) {
|
||||
if (!privateMap.has(receiver)) {
|
||||
throw new TypeError("attempted to set private field on non-instance");
|
||||
}
|
||||
|
||||
var descriptor = privateMap.get(receiver);
|
||||
|
||||
if (descriptor.set) {
|
||||
if (!("__destrObj" in descriptor)) {
|
||||
descriptor.__destrObj = {
|
||||
set value(v) {
|
||||
descriptor.set.call(receiver, v);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
return descriptor.__destrObj;
|
||||
} else {
|
||||
if (!descriptor.writable) {
|
||||
throw new TypeError("attempted to set read only private field");
|
||||
}
|
||||
|
||||
return descriptor;
|
||||
}
|
||||
var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set");
|
||||
return classApplyDescriptorDestructureSet(receiver, descriptor);
|
||||
}
|
||||
+4
-11
@@ -1,13 +1,6 @@
|
||||
import classApplyDescriptorGet from "./classApplyDescriptorGet.js";
|
||||
import classExtractFieldDescriptor from "./classExtractFieldDescriptor.js";
|
||||
export default function _classPrivateFieldGet(receiver, privateMap) {
|
||||
var descriptor = privateMap.get(receiver);
|
||||
|
||||
if (!descriptor) {
|
||||
throw new TypeError("attempted to get private field on non-instance");
|
||||
}
|
||||
|
||||
if (descriptor.get) {
|
||||
return descriptor.get.call(receiver);
|
||||
}
|
||||
|
||||
return descriptor.value;
|
||||
var descriptor = classExtractFieldDescriptor(receiver, privateMap, "get");
|
||||
return classApplyDescriptorGet(receiver, descriptor);
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import checkPrivateRedeclaration from "./checkPrivateRedeclaration.js";
|
||||
export default function _classPrivateFieldInitSpec(obj, privateMap, value) {
|
||||
checkPrivateRedeclaration(obj, privateMap);
|
||||
privateMap.set(obj, value);
|
||||
}
|
||||
+4
-16
@@ -1,19 +1,7 @@
|
||||
import classApplyDescriptorSet from "./classApplyDescriptorSet.js";
|
||||
import classExtractFieldDescriptor from "./classExtractFieldDescriptor.js";
|
||||
export default function _classPrivateFieldSet(receiver, privateMap, value) {
|
||||
var descriptor = privateMap.get(receiver);
|
||||
|
||||
if (!descriptor) {
|
||||
throw new TypeError("attempted to set private field on non-instance");
|
||||
}
|
||||
|
||||
if (descriptor.set) {
|
||||
descriptor.set.call(receiver, value);
|
||||
} else {
|
||||
if (!descriptor.writable) {
|
||||
throw new TypeError("attempted to set read only private field");
|
||||
}
|
||||
|
||||
descriptor.value = value;
|
||||
}
|
||||
|
||||
var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set");
|
||||
classApplyDescriptorSet(receiver, descriptor, value);
|
||||
return value;
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import checkPrivateRedeclaration from "./checkPrivateRedeclaration.js";
|
||||
export default function _classPrivateMethodInitSpec(obj, privateSet) {
|
||||
checkPrivateRedeclaration(obj, privateSet);
|
||||
privateSet.add(obj);
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import classApplyDescriptorDestructureSet from "./classApplyDescriptorDestructureSet.js";
|
||||
import classCheckPrivateStaticAccess from "./classCheckPrivateStaticAccess.js";
|
||||
import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js";
|
||||
export default function _classStaticPrivateFieldDestructureSet(receiver, classConstructor, descriptor) {
|
||||
classCheckPrivateStaticAccess(receiver, classConstructor);
|
||||
classCheckPrivateStaticFieldDescriptor(descriptor, "set");
|
||||
return classApplyDescriptorDestructureSet(receiver, descriptor);
|
||||
}
|
||||
+6
-9
@@ -1,11 +1,8 @@
|
||||
import classApplyDescriptorGet from "./classApplyDescriptorGet.js";
|
||||
import classCheckPrivateStaticAccess from "./classCheckPrivateStaticAccess.js";
|
||||
import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js";
|
||||
export default function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
|
||||
if (receiver !== classConstructor) {
|
||||
throw new TypeError("Private static access of wrong provenance");
|
||||
}
|
||||
|
||||
if (descriptor.get) {
|
||||
return descriptor.get.call(receiver);
|
||||
}
|
||||
|
||||
return descriptor.value;
|
||||
classCheckPrivateStaticAccess(receiver, classConstructor);
|
||||
classCheckPrivateStaticFieldDescriptor(descriptor, "get");
|
||||
return classApplyDescriptorGet(receiver, descriptor);
|
||||
}
|
||||
+6
-14
@@ -1,17 +1,9 @@
|
||||
import classApplyDescriptorSet from "./classApplyDescriptorSet.js";
|
||||
import classCheckPrivateStaticAccess from "./classCheckPrivateStaticAccess.js";
|
||||
import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js";
|
||||
export default function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) {
|
||||
if (receiver !== classConstructor) {
|
||||
throw new TypeError("Private static access of wrong provenance");
|
||||
}
|
||||
|
||||
if (descriptor.set) {
|
||||
descriptor.set.call(receiver, value);
|
||||
} else {
|
||||
if (!descriptor.writable) {
|
||||
throw new TypeError("attempted to set read only private field");
|
||||
}
|
||||
|
||||
descriptor.value = value;
|
||||
}
|
||||
|
||||
classCheckPrivateStaticAccess(receiver, classConstructor);
|
||||
classCheckPrivateStaticFieldDescriptor(descriptor, "set");
|
||||
classApplyDescriptorSet(receiver, descriptor, value);
|
||||
return value;
|
||||
}
|
||||
+2
-4
@@ -1,7 +1,5 @@
|
||||
import classCheckPrivateStaticAccess from "./classCheckPrivateStaticAccess.js";
|
||||
export default function _classStaticPrivateMethodGet(receiver, classConstructor, method) {
|
||||
if (receiver !== classConstructor) {
|
||||
throw new TypeError("Private static access of wrong provenance");
|
||||
}
|
||||
|
||||
classCheckPrivateStaticAccess(receiver, classConstructor);
|
||||
return method;
|
||||
}
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
import setPrototypeOf from "./setPrototypeOf";
|
||||
import isNativeReflectConstruct from "./isNativeReflectConstruct";
|
||||
import setPrototypeOf from "./setPrototypeOf.js";
|
||||
import isNativeReflectConstruct from "./isNativeReflectConstruct.js";
|
||||
export default function _construct(Parent, args, Class) {
|
||||
if (isNativeReflectConstruct()) {
|
||||
_construct = Reflect.construct;
|
||||
_construct = Reflect.construct.bind();
|
||||
} else {
|
||||
_construct = function _construct(Parent, args, Class) {
|
||||
var a = [null];
|
||||
|
||||
+3
@@ -11,5 +11,8 @@ function _defineProperties(target, props) {
|
||||
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;
|
||||
}
|
||||
+4
-4
@@ -1,8 +1,8 @@
|
||||
import unsupportedIterableToArray from "./unsupportedIterableToArray";
|
||||
import unsupportedIterableToArray from "./unsupportedIterableToArray.js";
|
||||
export default function _createForOfIteratorHelper(o, allowArrayLike) {
|
||||
var it;
|
||||
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
||||
|
||||
if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
|
||||
if (!it) {
|
||||
if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
||||
if (it) o = it;
|
||||
var i = 0;
|
||||
@@ -35,7 +35,7 @@ export default function _createForOfIteratorHelper(o, allowArrayLike) {
|
||||
err;
|
||||
return {
|
||||
s: function s() {
|
||||
it = o[Symbol.iterator]();
|
||||
it = it.call(o);
|
||||
},
|
||||
n: function n() {
|
||||
var step = it.next();
|
||||
|
||||
+15
-19
@@ -1,25 +1,21 @@
|
||||
import unsupportedIterableToArray from "./unsupportedIterableToArray";
|
||||
import unsupportedIterableToArray from "./unsupportedIterableToArray.js";
|
||||
export default function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
||||
var it;
|
||||
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
||||
if (it) return (it = it.call(o)).next.bind(it);
|
||||
|
||||
if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
|
||||
if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
||||
if (it) o = it;
|
||||
var i = 0;
|
||||
return function () {
|
||||
if (i >= o.length) return {
|
||||
done: true
|
||||
};
|
||||
return {
|
||||
done: false,
|
||||
value: o[i++]
|
||||
};
|
||||
if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
||||
if (it) o = it;
|
||||
var i = 0;
|
||||
return function () {
|
||||
if (i >= o.length) return {
|
||||
done: true
|
||||
};
|
||||
}
|
||||
|
||||
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
||||
return {
|
||||
done: false,
|
||||
value: o[i++]
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
it = o[Symbol.iterator]();
|
||||
return it.next.bind(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.");
|
||||
}
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import getPrototypeOf from "./getPrototypeOf";
|
||||
import isNativeReflectConstruct from "./isNativeReflectConstruct";
|
||||
import possibleConstructorReturn from "./possibleConstructorReturn";
|
||||
import getPrototypeOf from "./getPrototypeOf.js";
|
||||
import isNativeReflectConstruct from "./isNativeReflectConstruct.js";
|
||||
import possibleConstructorReturn from "./possibleConstructorReturn.js";
|
||||
export default function _createSuper(Derived) {
|
||||
var hasNativeReflectConstruct = isNativeReflectConstruct();
|
||||
return function _createSuperInternal() {
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import toArray from "./toArray";
|
||||
import toPropertyKey from "./toPropertyKey";
|
||||
import toArray from "./toArray.js";
|
||||
import toPropertyKey from "./toPropertyKey.js";
|
||||
export default function _decorate(decorators, factory, superClass, mixins) {
|
||||
var api = _getDecoratorsApi();
|
||||
|
||||
|
||||
+1
-2
@@ -1,5 +1,5 @@
|
||||
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];
|
||||
|
||||
@@ -12,6 +12,5 @@ export default function _extends() {
|
||||
|
||||
return target;
|
||||
};
|
||||
|
||||
return _extends.apply(this, arguments);
|
||||
}
|
||||
+5
-5
@@ -1,7 +1,7 @@
|
||||
import superPropBase from "./superPropBase";
|
||||
export default function _get(target, property, receiver) {
|
||||
import superPropBase from "./superPropBase.js";
|
||||
export default function _get() {
|
||||
if (typeof Reflect !== "undefined" && Reflect.get) {
|
||||
_get = Reflect.get;
|
||||
_get = Reflect.get.bind();
|
||||
} else {
|
||||
_get = function _get(target, property, receiver) {
|
||||
var base = superPropBase(target, property);
|
||||
@@ -9,12 +9,12 @@ export default function _get(target, property, receiver) {
|
||||
var desc = Object.getOwnPropertyDescriptor(base, property);
|
||||
|
||||
if (desc.get) {
|
||||
return desc.get.call(receiver);
|
||||
return desc.get.call(arguments.length < 3 ? target : receiver);
|
||||
}
|
||||
|
||||
return desc.value;
|
||||
};
|
||||
}
|
||||
|
||||
return _get(target, property, receiver || target);
|
||||
return _get.apply(this, arguments);
|
||||
}
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
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);
|
||||
};
|
||||
return _getPrototypeOf(o);
|
||||
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
export default function _identity(x) {
|
||||
return x;
|
||||
}
|
||||
+4
-1
@@ -1,4 +1,4 @@
|
||||
import setPrototypeOf from "./setPrototypeOf";
|
||||
import setPrototypeOf from "./setPrototypeOf.js";
|
||||
export default function _inherits(subClass, superClass) {
|
||||
if (typeof superClass !== "function" && superClass !== null) {
|
||||
throw new TypeError("Super expression must either be null or a function");
|
||||
@@ -11,5 +11,8 @@ export default function _inherits(subClass, superClass) {
|
||||
configurable: true
|
||||
}
|
||||
});
|
||||
Object.defineProperty(subClass, "prototype", {
|
||||
writable: false
|
||||
});
|
||||
if (superClass) setPrototypeOf(subClass, superClass);
|
||||
}
|
||||
+2
-1
@@ -1,5 +1,6 @@
|
||||
import setPrototypeOf from "./setPrototypeOf.js";
|
||||
export default function _inheritsLoose(subClass, superClass) {
|
||||
subClass.prototype = Object.create(superClass.prototype);
|
||||
subClass.prototype.constructor = subClass;
|
||||
subClass.__proto__ = superClass;
|
||||
setPrototypeOf(subClass, superClass);
|
||||
}
|
||||
+11
-13
@@ -1,18 +1,16 @@
|
||||
import _typeof from "../../helpers/esm/typeof";
|
||||
import _typeof from "./typeof.js";
|
||||
|
||||
function _getRequireWildcardCache() {
|
||||
function _getRequireWildcardCache(nodeInterop) {
|
||||
if (typeof WeakMap !== "function") return null;
|
||||
var cache = new WeakMap();
|
||||
|
||||
_getRequireWildcardCache = function _getRequireWildcardCache() {
|
||||
return cache;
|
||||
};
|
||||
|
||||
return cache;
|
||||
var cacheBabelInterop = new WeakMap();
|
||||
var cacheNodeInterop = new WeakMap();
|
||||
return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
|
||||
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
||||
})(nodeInterop);
|
||||
}
|
||||
|
||||
export default function _interopRequireWildcard(obj) {
|
||||
if (obj && obj.__esModule) {
|
||||
export default function _interopRequireWildcard(obj, nodeInterop) {
|
||||
if (!nodeInterop && obj && obj.__esModule) {
|
||||
return obj;
|
||||
}
|
||||
|
||||
@@ -22,7 +20,7 @@ export default function _interopRequireWildcard(obj) {
|
||||
};
|
||||
}
|
||||
|
||||
var cache = _getRequireWildcardCache();
|
||||
var cache = _getRequireWildcardCache(nodeInterop);
|
||||
|
||||
if (cache && cache.has(obj)) {
|
||||
return cache.get(obj);
|
||||
@@ -32,7 +30,7 @@ export default function _interopRequireWildcard(obj) {
|
||||
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
||||
|
||||
for (var key in obj) {
|
||||
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
||||
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
||||
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
||||
|
||||
if (desc && (desc.get || desc.set)) {
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ export default function _isNativeReflectConstruct() {
|
||||
if (typeof Proxy === "function") return true;
|
||||
|
||||
try {
|
||||
Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
|
||||
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
||||
return true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
export default function _iterableToArray(iter) {
|
||||
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
||||
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
||||
}
|
||||
+6
-3
@@ -1,12 +1,15 @@
|
||||
export default function _iterableToArrayLimit(arr, i) {
|
||||
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
||||
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 _e = undefined;
|
||||
|
||||
var _s, _e;
|
||||
|
||||
try {
|
||||
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
||||
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
||||
_arr.push(_s.value);
|
||||
|
||||
if (i && _arr.length === i) break;
|
||||
|
||||
+4
-2
@@ -1,8 +1,10 @@
|
||||
export default function _iterableToArrayLimitLoose(arr, i) {
|
||||
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
||||
var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
|
||||
|
||||
if (_i == null) return;
|
||||
var _arr = [];
|
||||
|
||||
for (var _iterator = arr[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) {
|
||||
for (_i = _i.call(arr), _step; !(_step = _i.next()).done;) {
|
||||
_arr.push(_step.value);
|
||||
|
||||
if (i && _arr.length === i) break;
|
||||
|
||||
+11
-31
@@ -1,44 +1,24 @@
|
||||
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;
|
||||
}
|
||||
|
||||
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++) {
|
||||
REACT_ELEMENT_TYPE || (REACT_ELEMENT_TYPE = "function" == typeof Symbol && Symbol["for"] && Symbol["for"]("react.element") || 60103);
|
||||
var defaultProps = type && type.defaultProps,
|
||||
childrenLength = arguments.length - 3;
|
||||
if (props || 0 === childrenLength || (props = {
|
||||
children: void 0
|
||||
}), 1 === childrenLength) props.children = children;else if (childrenLength > 1) {
|
||||
for (var childArray = new Array(childrenLength), 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 (props && defaultProps) for (var propName in defaultProps) {
|
||||
void 0 === props[propName] && (props[propName] = defaultProps[propName]);
|
||||
} else props || (props = defaultProps || {});
|
||||
return {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
type: type,
|
||||
key: key === undefined ? null : '' + key,
|
||||
key: void 0 === key ? null : "" + key,
|
||||
ref: null,
|
||||
props: props,
|
||||
_owner: null
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import arrayLikeToArray from "./arrayLikeToArray";
|
||||
import arrayLikeToArray from "./arrayLikeToArray.js";
|
||||
export default function _maybeArrayLike(next, arr, i) {
|
||||
if (arr && !Array.isArray(arr) && typeof arr.length === "number") {
|
||||
var len = arr.length;
|
||||
|
||||
+2
-2
@@ -1,11 +1,11 @@
|
||||
import defineProperty from "./defineProperty";
|
||||
import defineProperty from "./defineProperty.js";
|
||||
export default function _objectSpread(target) {
|
||||
for (var i = 1; i < arguments.length; i++) {
|
||||
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
||||
var ownKeys = Object.keys(source);
|
||||
|
||||
if (typeof Object.getOwnPropertySymbols === 'function') {
|
||||
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
|
||||
ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function (sym) {
|
||||
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
||||
}));
|
||||
}
|
||||
|
||||
+9
-17
@@ -1,14 +1,13 @@
|
||||
import defineProperty from "./defineProperty";
|
||||
import defineProperty from "./defineProperty.js";
|
||||
|
||||
function ownKeys(object, enumerableOnly) {
|
||||
var keys = Object.keys(object);
|
||||
|
||||
if (Object.getOwnPropertySymbols) {
|
||||
var symbols = Object.getOwnPropertySymbols(object);
|
||||
if (enumerableOnly) symbols = symbols.filter(function (sym) {
|
||||
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
||||
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
||||
});
|
||||
keys.push.apply(keys, symbols);
|
||||
})), keys.push.apply(keys, symbols);
|
||||
}
|
||||
|
||||
return keys;
|
||||
@@ -16,19 +15,12 @@ function ownKeys(object, enumerableOnly) {
|
||||
|
||||
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));
|
||||
});
|
||||
}
|
||||
var source = null != arguments[i] ? arguments[i] : {};
|
||||
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
||||
defineProperty(target, key, source[key]);
|
||||
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
||||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
||||
});
|
||||
}
|
||||
|
||||
return target;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose";
|
||||
import objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose.js";
|
||||
export default function _objectWithoutProperties(source, excluded) {
|
||||
if (source == null) return {};
|
||||
var target = objectWithoutPropertiesLoose(source, excluded);
|
||||
|
||||
+4
-2
@@ -1,8 +1,10 @@
|
||||
import _typeof from "../../helpers/esm/typeof";
|
||||
import assertThisInitialized from "./assertThisInitialized";
|
||||
import _typeof from "./typeof.js";
|
||||
import assertThisInitialized from "./assertThisInitialized.js";
|
||||
export default function _possibleConstructorReturn(self, call) {
|
||||
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
||||
return call;
|
||||
} else if (call !== void 0) {
|
||||
throw new TypeError("Derived constructors may only return object or undefined");
|
||||
}
|
||||
|
||||
return assertThisInitialized(self);
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
export default function _readOnlyError(name) {
|
||||
throw new Error("\"" + name + "\" is read-only");
|
||||
throw new TypeError("\"" + name + "\" is read-only");
|
||||
}
|
||||
+352
@@ -0,0 +1,352 @@
|
||||
import _typeof from "./typeof.js";
|
||||
export default function _regeneratorRuntime() {
|
||||
"use strict";
|
||||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
||||
|
||||
_regeneratorRuntime = function _regeneratorRuntime() {
|
||||
return exports;
|
||||
};
|
||||
|
||||
var exports = {},
|
||||
Op = Object.prototype,
|
||||
hasOwn = Op.hasOwnProperty,
|
||||
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
||||
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
||||
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
||||
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
||||
|
||||
function define(obj, key, value) {
|
||||
return Object.defineProperty(obj, key, {
|
||||
value: value,
|
||||
enumerable: !0,
|
||||
configurable: !0,
|
||||
writable: !0
|
||||
}), obj[key];
|
||||
}
|
||||
|
||||
try {
|
||||
define({}, "");
|
||||
} catch (err) {
|
||||
define = function define(obj, key, value) {
|
||||
return obj[key] = value;
|
||||
};
|
||||
}
|
||||
|
||||
function wrap(innerFn, outerFn, self, tryLocsList) {
|
||||
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
||||
generator = Object.create(protoGenerator.prototype),
|
||||
context = new Context(tryLocsList || []);
|
||||
return generator._invoke = function (innerFn, self, context) {
|
||||
var state = "suspendedStart";
|
||||
return function (method, arg) {
|
||||
if ("executing" === state) throw new Error("Generator is already running");
|
||||
|
||||
if ("completed" === state) {
|
||||
if ("throw" === method) throw arg;
|
||||
return doneResult();
|
||||
}
|
||||
|
||||
for (context.method = method, context.arg = arg;;) {
|
||||
var delegate = context.delegate;
|
||||
|
||||
if (delegate) {
|
||||
var delegateResult = maybeInvokeDelegate(delegate, context);
|
||||
|
||||
if (delegateResult) {
|
||||
if (delegateResult === ContinueSentinel) continue;
|
||||
return delegateResult;
|
||||
}
|
||||
}
|
||||
|
||||
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
||||
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
||||
context.dispatchException(context.arg);
|
||||
} else "return" === context.method && context.abrupt("return", context.arg);
|
||||
state = "executing";
|
||||
var record = tryCatch(innerFn, self, context);
|
||||
|
||||
if ("normal" === record.type) {
|
||||
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
||||
return {
|
||||
value: record.arg,
|
||||
done: context.done
|
||||
};
|
||||
}
|
||||
|
||||
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
||||
}
|
||||
};
|
||||
}(innerFn, self, context), generator;
|
||||
}
|
||||
|
||||
function tryCatch(fn, obj, arg) {
|
||||
try {
|
||||
return {
|
||||
type: "normal",
|
||||
arg: fn.call(obj, arg)
|
||||
};
|
||||
} catch (err) {
|
||||
return {
|
||||
type: "throw",
|
||||
arg: err
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
exports.wrap = wrap;
|
||||
var ContinueSentinel = {};
|
||||
|
||||
function Generator() {}
|
||||
|
||||
function GeneratorFunction() {}
|
||||
|
||||
function GeneratorFunctionPrototype() {}
|
||||
|
||||
var IteratorPrototype = {};
|
||||
define(IteratorPrototype, iteratorSymbol, function () {
|
||||
return this;
|
||||
});
|
||||
var getProto = Object.getPrototypeOf,
|
||||
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
||||
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
||||
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
||||
|
||||
function defineIteratorMethods(prototype) {
|
||||
["next", "throw", "return"].forEach(function (method) {
|
||||
define(prototype, method, function (arg) {
|
||||
return this._invoke(method, arg);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function AsyncIterator(generator, PromiseImpl) {
|
||||
function invoke(method, arg, resolve, reject) {
|
||||
var record = tryCatch(generator[method], generator, arg);
|
||||
|
||||
if ("throw" !== record.type) {
|
||||
var result = record.arg,
|
||||
value = result.value;
|
||||
return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
||||
invoke("next", value, resolve, reject);
|
||||
}, function (err) {
|
||||
invoke("throw", err, resolve, reject);
|
||||
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
||||
result.value = unwrapped, resolve(result);
|
||||
}, function (error) {
|
||||
return invoke("throw", error, resolve, reject);
|
||||
});
|
||||
}
|
||||
|
||||
reject(record.arg);
|
||||
}
|
||||
|
||||
var previousPromise;
|
||||
|
||||
this._invoke = function (method, arg) {
|
||||
function callInvokeWithMethodAndArg() {
|
||||
return new PromiseImpl(function (resolve, reject) {
|
||||
invoke(method, arg, resolve, reject);
|
||||
});
|
||||
}
|
||||
|
||||
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
||||
};
|
||||
}
|
||||
|
||||
function maybeInvokeDelegate(delegate, context) {
|
||||
var method = delegate.iterator[context.method];
|
||||
|
||||
if (undefined === method) {
|
||||
if (context.delegate = null, "throw" === context.method) {
|
||||
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
||||
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
||||
}
|
||||
|
||||
return ContinueSentinel;
|
||||
}
|
||||
|
||||
var record = tryCatch(method, delegate.iterator, context.arg);
|
||||
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
||||
var info = record.arg;
|
||||
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
||||
}
|
||||
|
||||
function pushTryEntry(locs) {
|
||||
var entry = {
|
||||
tryLoc: locs[0]
|
||||
};
|
||||
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
||||
}
|
||||
|
||||
function resetTryEntry(entry) {
|
||||
var record = entry.completion || {};
|
||||
record.type = "normal", delete record.arg, entry.completion = record;
|
||||
}
|
||||
|
||||
function Context(tryLocsList) {
|
||||
this.tryEntries = [{
|
||||
tryLoc: "root"
|
||||
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
||||
}
|
||||
|
||||
function values(iterable) {
|
||||
if (iterable) {
|
||||
var iteratorMethod = iterable[iteratorSymbol];
|
||||
if (iteratorMethod) return iteratorMethod.call(iterable);
|
||||
if ("function" == typeof iterable.next) return iterable;
|
||||
|
||||
if (!isNaN(iterable.length)) {
|
||||
var i = -1,
|
||||
next = function next() {
|
||||
for (; ++i < iterable.length;) {
|
||||
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
||||
}
|
||||
|
||||
return next.value = undefined, next.done = !0, next;
|
||||
};
|
||||
|
||||
return next.next = next;
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
next: doneResult
|
||||
};
|
||||
}
|
||||
|
||||
function doneResult() {
|
||||
return {
|
||||
value: undefined,
|
||||
done: !0
|
||||
};
|
||||
}
|
||||
|
||||
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
||||
var ctor = "function" == typeof genFun && genFun.constructor;
|
||||
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
||||
}, exports.mark = function (genFun) {
|
||||
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
||||
}, exports.awrap = function (arg) {
|
||||
return {
|
||||
__await: arg
|
||||
};
|
||||
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
||||
return this;
|
||||
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
||||
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
||||
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
||||
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
||||
return result.done ? result.value : iter.next();
|
||||
});
|
||||
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
||||
return this;
|
||||
}), define(Gp, "toString", function () {
|
||||
return "[object Generator]";
|
||||
}), exports.keys = function (object) {
|
||||
var keys = [];
|
||||
|
||||
for (var key in object) {
|
||||
keys.push(key);
|
||||
}
|
||||
|
||||
return keys.reverse(), function next() {
|
||||
for (; keys.length;) {
|
||||
var key = keys.pop();
|
||||
if (key in object) return next.value = key, next.done = !1, next;
|
||||
}
|
||||
|
||||
return next.done = !0, next;
|
||||
};
|
||||
}, exports.values = values, Context.prototype = {
|
||||
constructor: Context,
|
||||
reset: function reset(skipTempReset) {
|
||||
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
|
||||
"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
||||
}
|
||||
},
|
||||
stop: function stop() {
|
||||
this.done = !0;
|
||||
var rootRecord = this.tryEntries[0].completion;
|
||||
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
||||
return this.rval;
|
||||
},
|
||||
dispatchException: function dispatchException(exception) {
|
||||
if (this.done) throw exception;
|
||||
var context = this;
|
||||
|
||||
function handle(loc, caught) {
|
||||
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
||||
}
|
||||
|
||||
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
||||
var entry = this.tryEntries[i],
|
||||
record = entry.completion;
|
||||
if ("root" === entry.tryLoc) return handle("end");
|
||||
|
||||
if (entry.tryLoc <= this.prev) {
|
||||
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
||||
hasFinally = hasOwn.call(entry, "finallyLoc");
|
||||
|
||||
if (hasCatch && hasFinally) {
|
||||
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
||||
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
||||
} else if (hasCatch) {
|
||||
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
||||
} else {
|
||||
if (!hasFinally) throw new Error("try statement without catch or finally");
|
||||
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
abrupt: function abrupt(type, arg) {
|
||||
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
||||
var entry = this.tryEntries[i];
|
||||
|
||||
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
||||
var finallyEntry = entry;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
||||
var record = finallyEntry ? finallyEntry.completion : {};
|
||||
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
||||
},
|
||||
complete: function complete(record, afterLoc) {
|
||||
if ("throw" === record.type) throw record.arg;
|
||||
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
||||
},
|
||||
finish: function finish(finallyLoc) {
|
||||
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
||||
var entry = this.tryEntries[i];
|
||||
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
||||
}
|
||||
},
|
||||
"catch": function _catch(tryLoc) {
|
||||
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
||||
var entry = this.tryEntries[i];
|
||||
|
||||
if (entry.tryLoc === tryLoc) {
|
||||
var record = entry.completion;
|
||||
|
||||
if ("throw" === record.type) {
|
||||
var thrown = record.arg;
|
||||
resetTryEntry(entry);
|
||||
}
|
||||
|
||||
return thrown;
|
||||
}
|
||||
}
|
||||
|
||||
throw new Error("illegal catch attempt");
|
||||
},
|
||||
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
||||
return this.delegate = {
|
||||
iterator: values(iterable),
|
||||
resultName: resultName,
|
||||
nextLoc: nextLoc
|
||||
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
||||
}
|
||||
}, exports;
|
||||
}
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import superPropBase from "./superPropBase";
|
||||
import defineProperty from "./defineProperty";
|
||||
import superPropBase from "./superPropBase.js";
|
||||
import defineProperty from "./defineProperty.js";
|
||||
|
||||
function set(target, property, value, receiver) {
|
||||
if (typeof Reflect !== "undefined" && Reflect.set) {
|
||||
|
||||
+1
-2
@@ -1,8 +1,7 @@
|
||||
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);
|
||||
}
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
import arrayWithHoles from "./arrayWithHoles";
|
||||
import iterableToArrayLimit from "./iterableToArrayLimit";
|
||||
import unsupportedIterableToArray from "./unsupportedIterableToArray";
|
||||
import nonIterableRest from "./nonIterableRest";
|
||||
import arrayWithHoles from "./arrayWithHoles.js";
|
||||
import iterableToArrayLimit from "./iterableToArrayLimit.js";
|
||||
import unsupportedIterableToArray from "./unsupportedIterableToArray.js";
|
||||
import nonIterableRest from "./nonIterableRest.js";
|
||||
export default function _slicedToArray(arr, i) {
|
||||
return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
|
||||
}
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
import arrayWithHoles from "./arrayWithHoles";
|
||||
import iterableToArrayLimitLoose from "./iterableToArrayLimitLoose";
|
||||
import unsupportedIterableToArray from "./unsupportedIterableToArray";
|
||||
import nonIterableRest from "./nonIterableRest";
|
||||
import arrayWithHoles from "./arrayWithHoles.js";
|
||||
import iterableToArrayLimitLoose from "./iterableToArrayLimitLoose.js";
|
||||
import unsupportedIterableToArray from "./unsupportedIterableToArray.js";
|
||||
import nonIterableRest from "./nonIterableRest.js";
|
||||
export default function _slicedToArrayLoose(arr, i) {
|
||||
return arrayWithHoles(arr) || iterableToArrayLimitLoose(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import getPrototypeOf from "./getPrototypeOf";
|
||||
import getPrototypeOf from "./getPrototypeOf.js";
|
||||
export default function _superPropBase(object, property) {
|
||||
while (!Object.prototype.hasOwnProperty.call(object, property)) {
|
||||
object = getPrototypeOf(object);
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import undef from "./temporalUndefined";
|
||||
import err from "./tdz";
|
||||
import undef from "./temporalUndefined.js";
|
||||
import err from "./tdz.js";
|
||||
export default function _temporalRef(val, name) {
|
||||
return val === undef ? err(name) : val;
|
||||
}
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
import arrayWithHoles from "./arrayWithHoles";
|
||||
import iterableToArray from "./iterableToArray";
|
||||
import unsupportedIterableToArray from "./unsupportedIterableToArray";
|
||||
import nonIterableRest from "./nonIterableRest";
|
||||
import arrayWithHoles from "./arrayWithHoles.js";
|
||||
import iterableToArray from "./iterableToArray.js";
|
||||
import unsupportedIterableToArray from "./unsupportedIterableToArray.js";
|
||||
import nonIterableRest from "./nonIterableRest.js";
|
||||
export default function _toArray(arr) {
|
||||
return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
|
||||
}
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
import arrayWithoutHoles from "./arrayWithoutHoles";
|
||||
import iterableToArray from "./iterableToArray";
|
||||
import unsupportedIterableToArray from "./unsupportedIterableToArray";
|
||||
import nonIterableSpread from "./nonIterableSpread";
|
||||
import arrayWithoutHoles from "./arrayWithoutHoles.js";
|
||||
import iterableToArray from "./iterableToArray.js";
|
||||
import unsupportedIterableToArray from "./unsupportedIterableToArray.js";
|
||||
import nonIterableSpread from "./nonIterableSpread.js";
|
||||
export default function _toConsumableArray(arr) {
|
||||
return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user