@cubejs-client/core 1.2.22 → 1.2.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -350,7 +350,7 @@
|
|
|
350
350
|
|
|
351
351
|
// `ToPrimitive` abstract operation
|
|
352
352
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
353
|
-
var toPrimitive = function (input, pref) {
|
|
353
|
+
var toPrimitive$1 = function (input, pref) {
|
|
354
354
|
if (!isObject(input) || isSymbol(input)) return input;
|
|
355
355
|
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
356
356
|
var result;
|
|
@@ -366,8 +366,8 @@
|
|
|
366
366
|
|
|
367
367
|
// `ToPropertyKey` abstract operation
|
|
368
368
|
// https://tc39.es/ecma262/#sec-topropertykey
|
|
369
|
-
var toPropertyKey = function (argument) {
|
|
370
|
-
var key = toPrimitive(argument, 'string');
|
|
369
|
+
var toPropertyKey$1 = function (argument) {
|
|
370
|
+
var key = toPrimitive$1(argument, 'string');
|
|
371
371
|
return isSymbol(key) ? key : key + '';
|
|
372
372
|
};
|
|
373
373
|
|
|
@@ -394,7 +394,7 @@
|
|
|
394
394
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
395
395
|
var f$7 = descriptors ? $getOwnPropertyDescriptor$2 : function getOwnPropertyDescriptor(O, P) {
|
|
396
396
|
O = toIndexedObject(O);
|
|
397
|
-
P = toPropertyKey(P);
|
|
397
|
+
P = toPropertyKey$1(P);
|
|
398
398
|
if (ie8DomDefine) try {
|
|
399
399
|
return $getOwnPropertyDescriptor$2(O, P);
|
|
400
400
|
} catch (error) { /* empty */ }
|
|
@@ -437,7 +437,7 @@
|
|
|
437
437
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
438
438
|
var f$6 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) {
|
|
439
439
|
anObject(O);
|
|
440
|
-
P = toPropertyKey(P);
|
|
440
|
+
P = toPropertyKey$1(P);
|
|
441
441
|
anObject(Attributes);
|
|
442
442
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
443
443
|
var current = $getOwnPropertyDescriptor$1(O, P);
|
|
@@ -452,7 +452,7 @@
|
|
|
452
452
|
} return $defineProperty$1(O, P, Attributes);
|
|
453
453
|
} : $defineProperty$1 : function defineProperty(O, P, Attributes) {
|
|
454
454
|
anObject(O);
|
|
455
|
-
P = toPropertyKey(P);
|
|
455
|
+
P = toPropertyKey$1(P);
|
|
456
456
|
anObject(Attributes);
|
|
457
457
|
if (ie8DomDefine) try {
|
|
458
458
|
return $defineProperty$1(O, P, Attributes);
|
|
@@ -1292,7 +1292,7 @@
|
|
|
1292
1292
|
};
|
|
1293
1293
|
|
|
1294
1294
|
var createProperty = function (object, key, value) {
|
|
1295
|
-
var propertyKey = toPropertyKey(key);
|
|
1295
|
+
var propertyKey = toPropertyKey$1(key);
|
|
1296
1296
|
if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
|
|
1297
1297
|
else object[propertyKey] = value;
|
|
1298
1298
|
};
|
|
@@ -1449,7 +1449,7 @@
|
|
|
1449
1449
|
var $defineProperty = function defineProperty(O, P, Attributes) {
|
|
1450
1450
|
if (O === ObjectPrototype$2) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
|
|
1451
1451
|
anObject(O);
|
|
1452
|
-
var key = toPropertyKey(P);
|
|
1452
|
+
var key = toPropertyKey$1(P);
|
|
1453
1453
|
anObject(Attributes);
|
|
1454
1454
|
if (hasOwnProperty_1(AllSymbols, key)) {
|
|
1455
1455
|
if (!Attributes.enumerable) {
|
|
@@ -1477,7 +1477,7 @@
|
|
|
1477
1477
|
};
|
|
1478
1478
|
|
|
1479
1479
|
var $propertyIsEnumerable$1 = function propertyIsEnumerable(V) {
|
|
1480
|
-
var P = toPropertyKey(V);
|
|
1480
|
+
var P = toPropertyKey$1(V);
|
|
1481
1481
|
var enumerable = functionCall(nativePropertyIsEnumerable, this, P);
|
|
1482
1482
|
if (this === ObjectPrototype$2 && hasOwnProperty_1(AllSymbols, P) && !hasOwnProperty_1(ObjectPrototypeSymbols, P)) return false;
|
|
1483
1483
|
return enumerable || !hasOwnProperty_1(this, P) || !hasOwnProperty_1(AllSymbols, P) || hasOwnProperty_1(this, HIDDEN) && this[HIDDEN][P]
|
|
@@ -1486,7 +1486,7 @@
|
|
|
1486
1486
|
|
|
1487
1487
|
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
|
|
1488
1488
|
var it = toIndexedObject(O);
|
|
1489
|
-
var key = toPropertyKey(P);
|
|
1489
|
+
var key = toPropertyKey$1(P);
|
|
1490
1490
|
if (it === ObjectPrototype$2 && hasOwnProperty_1(AllSymbols, key) && !hasOwnProperty_1(ObjectPrototypeSymbols, key)) return;
|
|
1491
1491
|
var descriptor = nativeGetOwnPropertyDescriptor$1(it, key);
|
|
1492
1492
|
if (descriptor && hasOwnProperty_1(AllSymbols, key) && !(hasOwnProperty_1(it, HIDDEN) && it[HIDDEN][key])) {
|
|
@@ -1806,910 +1806,471 @@
|
|
|
1806
1806
|
defineProperty: defineProperty$3
|
|
1807
1807
|
});
|
|
1808
1808
|
|
|
1809
|
-
function _arrayWithHoles(
|
|
1810
|
-
if (Array.isArray(
|
|
1809
|
+
function _arrayWithHoles(r) {
|
|
1810
|
+
if (Array.isArray(r)) return r;
|
|
1811
1811
|
}
|
|
1812
1812
|
|
|
1813
|
-
function _iterableToArrayLimit(
|
|
1814
|
-
var
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
try {
|
|
1824
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
1825
|
-
_arr.push(_s.value);
|
|
1826
|
-
|
|
1827
|
-
if (i && _arr.length === i) break;
|
|
1828
|
-
}
|
|
1829
|
-
} catch (err) {
|
|
1830
|
-
_d = true;
|
|
1831
|
-
_e = err;
|
|
1832
|
-
} finally {
|
|
1813
|
+
function _iterableToArrayLimit(r, l) {
|
|
1814
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
1815
|
+
if (null != t) {
|
|
1816
|
+
var e,
|
|
1817
|
+
n,
|
|
1818
|
+
i,
|
|
1819
|
+
u,
|
|
1820
|
+
a = [],
|
|
1821
|
+
f = !0,
|
|
1822
|
+
o = !1;
|
|
1833
1823
|
try {
|
|
1834
|
-
if (
|
|
1824
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
1825
|
+
if (Object(t) !== t) return;
|
|
1826
|
+
f = !1;
|
|
1827
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
1828
|
+
} catch (r) {
|
|
1829
|
+
o = !0, n = r;
|
|
1835
1830
|
} finally {
|
|
1836
|
-
|
|
1831
|
+
try {
|
|
1832
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
1833
|
+
} finally {
|
|
1834
|
+
if (o) throw n;
|
|
1835
|
+
}
|
|
1837
1836
|
}
|
|
1837
|
+
return a;
|
|
1838
1838
|
}
|
|
1839
|
-
|
|
1840
|
-
return _arr;
|
|
1841
1839
|
}
|
|
1842
1840
|
|
|
1843
|
-
function _arrayLikeToArray(
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
arr2[i] = arr[i];
|
|
1848
|
-
}
|
|
1849
|
-
|
|
1850
|
-
return arr2;
|
|
1841
|
+
function _arrayLikeToArray(r, a) {
|
|
1842
|
+
(null == a || a > r.length) && (a = r.length);
|
|
1843
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
1844
|
+
return n;
|
|
1851
1845
|
}
|
|
1852
1846
|
|
|
1853
|
-
function _unsupportedIterableToArray(
|
|
1854
|
-
if (
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
1847
|
+
function _unsupportedIterableToArray(r, a) {
|
|
1848
|
+
if (r) {
|
|
1849
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
1850
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
1851
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
1852
|
+
}
|
|
1860
1853
|
}
|
|
1861
1854
|
|
|
1862
1855
|
function _nonIterableRest() {
|
|
1863
1856
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1864
1857
|
}
|
|
1865
1858
|
|
|
1866
|
-
function _slicedToArray(
|
|
1867
|
-
return _arrayWithHoles(
|
|
1868
|
-
}
|
|
1869
|
-
|
|
1870
|
-
function _defineProperty(obj, key, value) {
|
|
1871
|
-
if (key in obj) {
|
|
1872
|
-
Object.defineProperty(obj, key, {
|
|
1873
|
-
value: value,
|
|
1874
|
-
enumerable: true,
|
|
1875
|
-
configurable: true,
|
|
1876
|
-
writable: true
|
|
1877
|
-
});
|
|
1878
|
-
} else {
|
|
1879
|
-
obj[key] = value;
|
|
1880
|
-
}
|
|
1881
|
-
|
|
1882
|
-
return obj;
|
|
1859
|
+
function _slicedToArray(r, e) {
|
|
1860
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
1883
1861
|
}
|
|
1884
1862
|
|
|
1885
|
-
function _typeof(
|
|
1863
|
+
function _typeof(o) {
|
|
1886
1864
|
"@babel/helpers - typeof";
|
|
1887
1865
|
|
|
1888
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
1889
|
-
return typeof
|
|
1890
|
-
} : function (
|
|
1891
|
-
return
|
|
1892
|
-
}, _typeof(
|
|
1866
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
1867
|
+
return typeof o;
|
|
1868
|
+
} : function (o) {
|
|
1869
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
1870
|
+
}, _typeof(o);
|
|
1893
1871
|
}
|
|
1894
1872
|
|
|
1895
|
-
function
|
|
1896
|
-
if (
|
|
1897
|
-
|
|
1873
|
+
function toPrimitive(t, r) {
|
|
1874
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
1875
|
+
var e = t[Symbol.toPrimitive];
|
|
1876
|
+
if (void 0 !== e) {
|
|
1877
|
+
var i = e.call(t, r || "default");
|
|
1878
|
+
if ("object" != _typeof(i)) return i;
|
|
1879
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1898
1880
|
}
|
|
1881
|
+
return ("string" === r ? String : Number)(t);
|
|
1899
1882
|
}
|
|
1900
1883
|
|
|
1901
|
-
function
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
1905
|
-
descriptor.configurable = true;
|
|
1906
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
1907
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
1908
|
-
}
|
|
1884
|
+
function toPropertyKey(t) {
|
|
1885
|
+
var i = toPrimitive(t, "string");
|
|
1886
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
1909
1887
|
}
|
|
1910
1888
|
|
|
1911
|
-
function
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1889
|
+
function _defineProperty(e, r, t) {
|
|
1890
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
1891
|
+
value: t,
|
|
1892
|
+
enumerable: !0,
|
|
1893
|
+
configurable: !0,
|
|
1894
|
+
writable: !0
|
|
1895
|
+
}) : e[r] = t, e;
|
|
1918
1896
|
}
|
|
1919
1897
|
|
|
1920
|
-
function
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
var value = info.value;
|
|
1924
|
-
} catch (error) {
|
|
1925
|
-
reject(error);
|
|
1926
|
-
return;
|
|
1927
|
-
}
|
|
1898
|
+
function _classCallCheck(a, n) {
|
|
1899
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
1900
|
+
}
|
|
1928
1901
|
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1902
|
+
function _defineProperties(e, r) {
|
|
1903
|
+
for (var t = 0; t < r.length; t++) {
|
|
1904
|
+
var o = r[t];
|
|
1905
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
|
|
1933
1906
|
}
|
|
1934
1907
|
}
|
|
1908
|
+
function _createClass(e, r, t) {
|
|
1909
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
1910
|
+
writable: !1
|
|
1911
|
+
}), e;
|
|
1912
|
+
}
|
|
1935
1913
|
|
|
1936
|
-
function
|
|
1914
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
1915
|
+
try {
|
|
1916
|
+
var i = n[a](c),
|
|
1917
|
+
u = i.value;
|
|
1918
|
+
} catch (n) {
|
|
1919
|
+
return void e(n);
|
|
1920
|
+
}
|
|
1921
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
1922
|
+
}
|
|
1923
|
+
function _asyncToGenerator(n) {
|
|
1937
1924
|
return function () {
|
|
1938
|
-
var
|
|
1939
|
-
|
|
1940
|
-
return new Promise(function (
|
|
1941
|
-
var
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
1925
|
+
var t = this,
|
|
1926
|
+
e = arguments;
|
|
1927
|
+
return new Promise(function (r, o) {
|
|
1928
|
+
var a = n.apply(t, e);
|
|
1929
|
+
function _next(n) {
|
|
1930
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
1945
1931
|
}
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
1932
|
+
function _throw(n) {
|
|
1933
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
1949
1934
|
}
|
|
1950
|
-
|
|
1951
|
-
_next(undefined);
|
|
1935
|
+
_next(void 0);
|
|
1952
1936
|
});
|
|
1953
1937
|
};
|
|
1954
1938
|
}
|
|
1955
1939
|
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
* This source code is licensed under the MIT license found in the
|
|
1960
|
-
* LICENSE file in the root directory of this source tree.
|
|
1961
|
-
*/
|
|
1962
|
-
|
|
1963
|
-
var runtime_1 = createCommonjsModule(function (module) {
|
|
1964
|
-
var runtime = (function (exports) {
|
|
1940
|
+
var _typeof_1 = createCommonjsModule(function (module) {
|
|
1941
|
+
function _typeof(o) {
|
|
1942
|
+
"@babel/helpers - typeof";
|
|
1965
1943
|
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1944
|
+
return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
1945
|
+
return typeof o;
|
|
1946
|
+
} : function (o) {
|
|
1947
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
1948
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
|
|
1949
|
+
}
|
|
1950
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1951
|
+
});
|
|
1973
1952
|
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1953
|
+
var regeneratorRuntime$1 = createCommonjsModule(function (module) {
|
|
1954
|
+
var _typeof = _typeof_1["default"];
|
|
1955
|
+
function _regeneratorRuntime() {
|
|
1956
|
+
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
1957
|
+
return e;
|
|
1958
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1959
|
+
var t,
|
|
1960
|
+
e = {},
|
|
1961
|
+
r = Object.prototype,
|
|
1962
|
+
n = r.hasOwnProperty,
|
|
1963
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
1964
|
+
t[e] = r.value;
|
|
1965
|
+
},
|
|
1966
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
1967
|
+
a = i.iterator || "@@iterator",
|
|
1968
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
1969
|
+
u = i.toStringTag || "@@toStringTag";
|
|
1970
|
+
function define(t, e, r) {
|
|
1971
|
+
return Object.defineProperty(t, e, {
|
|
1972
|
+
value: r,
|
|
1973
|
+
enumerable: !0,
|
|
1974
|
+
configurable: !0,
|
|
1975
|
+
writable: !0
|
|
1976
|
+
}), t[e];
|
|
1982
1977
|
}
|
|
1983
1978
|
try {
|
|
1984
|
-
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
1985
1979
|
define({}, "");
|
|
1986
|
-
} catch (
|
|
1987
|
-
define = function(
|
|
1988
|
-
return
|
|
1980
|
+
} catch (t) {
|
|
1981
|
+
define = function define(t, e, r) {
|
|
1982
|
+
return t[e] = r;
|
|
1989
1983
|
};
|
|
1990
1984
|
}
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
// The ._invoke method unifies the implementations of the .next,
|
|
1999
|
-
// .throw, and .return methods.
|
|
2000
|
-
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
2001
|
-
|
|
2002
|
-
return generator;
|
|
1985
|
+
function wrap(t, e, r, n) {
|
|
1986
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
1987
|
+
a = Object.create(i.prototype),
|
|
1988
|
+
c = new Context(n || []);
|
|
1989
|
+
return o(a, "_invoke", {
|
|
1990
|
+
value: makeInvokeMethod(t, r, c)
|
|
1991
|
+
}), a;
|
|
2003
1992
|
}
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
2007
|
-
// record like context.tryEntries[i].completion. This interface could
|
|
2008
|
-
// have been (and was previously) designed to take a closure to be
|
|
2009
|
-
// invoked without arguments, but in all the cases we care about we
|
|
2010
|
-
// already have an existing method we want to call, so there's no need
|
|
2011
|
-
// to create a new function object. We can even get away with assuming
|
|
2012
|
-
// the method takes exactly one argument, since that happens to be true
|
|
2013
|
-
// in every case, so we don't have to touch the arguments object. The
|
|
2014
|
-
// only additional allocation required is the completion record, which
|
|
2015
|
-
// has a stable shape and so hopefully should be cheap to allocate.
|
|
2016
|
-
function tryCatch(fn, obj, arg) {
|
|
1993
|
+
function tryCatch(t, e, r) {
|
|
2017
1994
|
try {
|
|
2018
|
-
return {
|
|
2019
|
-
|
|
2020
|
-
|
|
1995
|
+
return {
|
|
1996
|
+
type: "normal",
|
|
1997
|
+
arg: t.call(e, r)
|
|
1998
|
+
};
|
|
1999
|
+
} catch (t) {
|
|
2000
|
+
return {
|
|
2001
|
+
type: "throw",
|
|
2002
|
+
arg: t
|
|
2003
|
+
};
|
|
2021
2004
|
}
|
|
2022
2005
|
}
|
|
2023
|
-
|
|
2024
|
-
var
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
// Returning this object from the innerFn has the same effect as
|
|
2030
|
-
// breaking out of the dispatch switch statement.
|
|
2031
|
-
var ContinueSentinel = {};
|
|
2032
|
-
|
|
2033
|
-
// Dummy constructor functions that we use as the .constructor and
|
|
2034
|
-
// .constructor.prototype properties for functions that return Generator
|
|
2035
|
-
// objects. For full spec compliance, you may wish to configure your
|
|
2036
|
-
// minifier not to mangle the names of these two functions.
|
|
2006
|
+
e.wrap = wrap;
|
|
2007
|
+
var h = "suspendedStart",
|
|
2008
|
+
l = "suspendedYield",
|
|
2009
|
+
f = "executing",
|
|
2010
|
+
s = "completed",
|
|
2011
|
+
y = {};
|
|
2037
2012
|
function Generator() {}
|
|
2038
2013
|
function GeneratorFunction() {}
|
|
2039
2014
|
function GeneratorFunctionPrototype() {}
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
// don't natively support it.
|
|
2043
|
-
var IteratorPrototype = {};
|
|
2044
|
-
define(IteratorPrototype, iteratorSymbol, function () {
|
|
2015
|
+
var p = {};
|
|
2016
|
+
define(p, a, function () {
|
|
2045
2017
|
return this;
|
|
2046
2018
|
});
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
IteratorPrototype = NativeIteratorPrototype;
|
|
2056
|
-
}
|
|
2057
|
-
|
|
2058
|
-
var Gp = GeneratorFunctionPrototype.prototype =
|
|
2059
|
-
Generator.prototype = Object.create(IteratorPrototype);
|
|
2060
|
-
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
|
2061
|
-
define(Gp, "constructor", GeneratorFunctionPrototype);
|
|
2062
|
-
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
|
2063
|
-
GeneratorFunction.displayName = define(
|
|
2064
|
-
GeneratorFunctionPrototype,
|
|
2065
|
-
toStringTagSymbol,
|
|
2066
|
-
"GeneratorFunction"
|
|
2067
|
-
);
|
|
2068
|
-
|
|
2069
|
-
// Helper for defining the .next, .throw, and .return methods of the
|
|
2070
|
-
// Iterator interface in terms of a single ._invoke method.
|
|
2071
|
-
function defineIteratorMethods(prototype) {
|
|
2072
|
-
["next", "throw", "return"].forEach(function(method) {
|
|
2073
|
-
define(prototype, method, function(arg) {
|
|
2074
|
-
return this._invoke(method, arg);
|
|
2019
|
+
var d = Object.getPrototypeOf,
|
|
2020
|
+
v = d && d(d(values([])));
|
|
2021
|
+
v && v !== r && n.call(v, a) && (p = v);
|
|
2022
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
2023
|
+
function defineIteratorMethods(t) {
|
|
2024
|
+
["next", "throw", "return"].forEach(function (e) {
|
|
2025
|
+
define(t, e, function (t) {
|
|
2026
|
+
return this._invoke(e, t);
|
|
2075
2027
|
});
|
|
2076
2028
|
});
|
|
2077
2029
|
}
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
} else {
|
|
2093
|
-
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
2094
|
-
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
2095
|
-
}
|
|
2096
|
-
genFun.prototype = Object.create(Gp);
|
|
2097
|
-
return genFun;
|
|
2098
|
-
};
|
|
2099
|
-
|
|
2100
|
-
// Within the body of any async function, `await x` is transformed to
|
|
2101
|
-
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
2102
|
-
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
2103
|
-
// meant to be awaited.
|
|
2104
|
-
exports.awrap = function(arg) {
|
|
2105
|
-
return { __await: arg };
|
|
2106
|
-
};
|
|
2107
|
-
|
|
2108
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
2109
|
-
function invoke(method, arg, resolve, reject) {
|
|
2110
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
2111
|
-
if (record.type === "throw") {
|
|
2112
|
-
reject(record.arg);
|
|
2113
|
-
} else {
|
|
2114
|
-
var result = record.arg;
|
|
2115
|
-
var value = result.value;
|
|
2116
|
-
if (value &&
|
|
2117
|
-
typeof value === "object" &&
|
|
2118
|
-
hasOwn.call(value, "__await")) {
|
|
2119
|
-
return PromiseImpl.resolve(value.__await).then(function(value) {
|
|
2120
|
-
invoke("next", value, resolve, reject);
|
|
2121
|
-
}, function(err) {
|
|
2122
|
-
invoke("throw", err, resolve, reject);
|
|
2123
|
-
});
|
|
2124
|
-
}
|
|
2125
|
-
|
|
2126
|
-
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
2127
|
-
// When a yielded Promise is resolved, its final value becomes
|
|
2128
|
-
// the .value of the Promise<{value,done}> result for the
|
|
2129
|
-
// current iteration.
|
|
2130
|
-
result.value = unwrapped;
|
|
2131
|
-
resolve(result);
|
|
2132
|
-
}, function(error) {
|
|
2133
|
-
// If a rejected Promise was yielded, throw the rejection back
|
|
2134
|
-
// into the async generator function so it can be handled there.
|
|
2135
|
-
return invoke("throw", error, resolve, reject);
|
|
2030
|
+
function AsyncIterator(t, e) {
|
|
2031
|
+
function invoke(r, o, i, a) {
|
|
2032
|
+
var c = tryCatch(t[r], t, o);
|
|
2033
|
+
if ("throw" !== c.type) {
|
|
2034
|
+
var u = c.arg,
|
|
2035
|
+
h = u.value;
|
|
2036
|
+
return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
2037
|
+
invoke("next", t, i, a);
|
|
2038
|
+
}, function (t) {
|
|
2039
|
+
invoke("throw", t, i, a);
|
|
2040
|
+
}) : e.resolve(h).then(function (t) {
|
|
2041
|
+
u.value = t, i(u);
|
|
2042
|
+
}, function (t) {
|
|
2043
|
+
return invoke("throw", t, i, a);
|
|
2136
2044
|
});
|
|
2137
2045
|
}
|
|
2046
|
+
a(c.arg);
|
|
2138
2047
|
}
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
});
|
|
2147
|
-
}
|
|
2148
|
-
|
|
2149
|
-
return previousPromise =
|
|
2150
|
-
// If enqueue has been called before, then we want to wait until
|
|
2151
|
-
// all previous Promises have been resolved before calling invoke,
|
|
2152
|
-
// so that results are always delivered in the correct order. If
|
|
2153
|
-
// enqueue has not been called before, then it is important to
|
|
2154
|
-
// call invoke immediately, without waiting on a callback to fire,
|
|
2155
|
-
// so that the async generator function has the opportunity to do
|
|
2156
|
-
// any necessary setup in a predictable way. This predictability
|
|
2157
|
-
// is why the Promise constructor synchronously invokes its
|
|
2158
|
-
// executor callback, and why async functions synchronously
|
|
2159
|
-
// execute code before the first await. Since we implement simple
|
|
2160
|
-
// async functions in terms of async generators, it is especially
|
|
2161
|
-
// important to get this right, even though it requires care.
|
|
2162
|
-
previousPromise ? previousPromise.then(
|
|
2163
|
-
callInvokeWithMethodAndArg,
|
|
2164
|
-
// Avoid propagating failures to Promises returned by later
|
|
2165
|
-
// invocations of the iterator.
|
|
2166
|
-
callInvokeWithMethodAndArg
|
|
2167
|
-
) : callInvokeWithMethodAndArg();
|
|
2168
|
-
}
|
|
2169
|
-
|
|
2170
|
-
// Define the unified helper method that is used to implement .next,
|
|
2171
|
-
// .throw, and .return (see defineIteratorMethods).
|
|
2172
|
-
this._invoke = enqueue;
|
|
2173
|
-
}
|
|
2174
|
-
|
|
2175
|
-
defineIteratorMethods(AsyncIterator.prototype);
|
|
2176
|
-
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
2177
|
-
return this;
|
|
2178
|
-
});
|
|
2179
|
-
exports.AsyncIterator = AsyncIterator;
|
|
2180
|
-
|
|
2181
|
-
// Note that simple async functions are implemented on top of
|
|
2182
|
-
// AsyncIterator objects; they just return a Promise for the value of
|
|
2183
|
-
// the final result produced by the iterator.
|
|
2184
|
-
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
2185
|
-
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
2186
|
-
|
|
2187
|
-
var iter = new AsyncIterator(
|
|
2188
|
-
wrap(innerFn, outerFn, self, tryLocsList),
|
|
2189
|
-
PromiseImpl
|
|
2190
|
-
);
|
|
2191
|
-
|
|
2192
|
-
return exports.isGeneratorFunction(outerFn)
|
|
2193
|
-
? iter // If outerFn is a generator, return the full iterator.
|
|
2194
|
-
: iter.next().then(function(result) {
|
|
2195
|
-
return result.done ? result.value : iter.next();
|
|
2196
|
-
});
|
|
2197
|
-
};
|
|
2198
|
-
|
|
2199
|
-
function makeInvokeMethod(innerFn, self, context) {
|
|
2200
|
-
var state = GenStateSuspendedStart;
|
|
2201
|
-
|
|
2202
|
-
return function invoke(method, arg) {
|
|
2203
|
-
if (state === GenStateExecuting) {
|
|
2204
|
-
throw new Error("Generator is already running");
|
|
2205
|
-
}
|
|
2206
|
-
|
|
2207
|
-
if (state === GenStateCompleted) {
|
|
2208
|
-
if (method === "throw") {
|
|
2209
|
-
throw arg;
|
|
2048
|
+
var r;
|
|
2049
|
+
o(this, "_invoke", {
|
|
2050
|
+
value: function value(t, n) {
|
|
2051
|
+
function callInvokeWithMethodAndArg() {
|
|
2052
|
+
return new e(function (e, r) {
|
|
2053
|
+
invoke(t, n, e, r);
|
|
2054
|
+
});
|
|
2210
2055
|
}
|
|
2211
|
-
|
|
2212
|
-
// Be forgiving, per 25.3.3.3.3 of the spec:
|
|
2213
|
-
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
2214
|
-
return doneResult();
|
|
2056
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
2215
2057
|
}
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
if (state === GenStateSuspendedStart) {
|
|
2237
|
-
state = GenStateCompleted;
|
|
2238
|
-
throw context.arg;
|
|
2058
|
+
});
|
|
2059
|
+
}
|
|
2060
|
+
function makeInvokeMethod(e, r, n) {
|
|
2061
|
+
var o = h;
|
|
2062
|
+
return function (i, a) {
|
|
2063
|
+
if (o === f) throw Error("Generator is already running");
|
|
2064
|
+
if (o === s) {
|
|
2065
|
+
if ("throw" === i) throw a;
|
|
2066
|
+
return {
|
|
2067
|
+
value: t,
|
|
2068
|
+
done: !0
|
|
2069
|
+
};
|
|
2070
|
+
}
|
|
2071
|
+
for (n.method = i, n.arg = a;;) {
|
|
2072
|
+
var c = n.delegate;
|
|
2073
|
+
if (c) {
|
|
2074
|
+
var u = maybeInvokeDelegate(c, n);
|
|
2075
|
+
if (u) {
|
|
2076
|
+
if (u === y) continue;
|
|
2077
|
+
return u;
|
|
2239
2078
|
}
|
|
2240
|
-
|
|
2241
|
-
context.dispatchException(context.arg);
|
|
2242
|
-
|
|
2243
|
-
} else if (context.method === "return") {
|
|
2244
|
-
context.abrupt("return", context.arg);
|
|
2245
2079
|
}
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
? GenStateCompleted
|
|
2255
|
-
: GenStateSuspendedYield;
|
|
2256
|
-
|
|
2257
|
-
if (record.arg === ContinueSentinel) {
|
|
2258
|
-
continue;
|
|
2259
|
-
}
|
|
2260
|
-
|
|
2080
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
2081
|
+
if (o === h) throw o = s, n.arg;
|
|
2082
|
+
n.dispatchException(n.arg);
|
|
2083
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
2084
|
+
o = f;
|
|
2085
|
+
var p = tryCatch(e, r, n);
|
|
2086
|
+
if ("normal" === p.type) {
|
|
2087
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
|
2261
2088
|
return {
|
|
2262
|
-
value:
|
|
2263
|
-
done:
|
|
2089
|
+
value: p.arg,
|
|
2090
|
+
done: n.done
|
|
2264
2091
|
};
|
|
2265
|
-
|
|
2266
|
-
} else if (record.type === "throw") {
|
|
2267
|
-
state = GenStateCompleted;
|
|
2268
|
-
// Dispatch the exception by looping back around to the
|
|
2269
|
-
// context.dispatchException(context.arg) call above.
|
|
2270
|
-
context.method = "throw";
|
|
2271
|
-
context.arg = record.arg;
|
|
2272
2092
|
}
|
|
2093
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
2273
2094
|
}
|
|
2274
2095
|
};
|
|
2275
2096
|
}
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
var
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
// variable specified by delegate.resultName (see delegateYield).
|
|
2333
|
-
context[delegate.resultName] = info.value;
|
|
2334
|
-
|
|
2335
|
-
// Resume execution at the desired location (see delegateYield).
|
|
2336
|
-
context.next = delegate.nextLoc;
|
|
2337
|
-
|
|
2338
|
-
// If context.method was "throw" but the delegate handled the
|
|
2339
|
-
// exception, let the outer generator proceed normally. If
|
|
2340
|
-
// context.method was "next", forget context.arg since it has been
|
|
2341
|
-
// "consumed" by the delegate iterator. If context.method was
|
|
2342
|
-
// "return", allow the original .return call to continue in the
|
|
2343
|
-
// outer generator.
|
|
2344
|
-
if (context.method !== "return") {
|
|
2345
|
-
context.method = "next";
|
|
2346
|
-
context.arg = undefined$1;
|
|
2347
|
-
}
|
|
2348
|
-
|
|
2349
|
-
} else {
|
|
2350
|
-
// Re-yield the result returned by the delegate method.
|
|
2351
|
-
return info;
|
|
2352
|
-
}
|
|
2353
|
-
|
|
2354
|
-
// The delegate iterator is finished, so forget it and continue with
|
|
2355
|
-
// the outer generator.
|
|
2356
|
-
context.delegate = null;
|
|
2357
|
-
return ContinueSentinel;
|
|
2358
|
-
}
|
|
2359
|
-
|
|
2360
|
-
// Define Generator.prototype.{next,throw,return} in terms of the
|
|
2361
|
-
// unified ._invoke helper method.
|
|
2362
|
-
defineIteratorMethods(Gp);
|
|
2363
|
-
|
|
2364
|
-
define(Gp, toStringTagSymbol, "Generator");
|
|
2365
|
-
|
|
2366
|
-
// A Generator should always return itself as the iterator object when the
|
|
2367
|
-
// @@iterator function is called on it. Some browsers' implementations of the
|
|
2368
|
-
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
2369
|
-
// object to not be returned from this call. This ensures that doesn't happen.
|
|
2370
|
-
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
2371
|
-
define(Gp, iteratorSymbol, function() {
|
|
2097
|
+
function maybeInvokeDelegate(e, r) {
|
|
2098
|
+
var n = r.method,
|
|
2099
|
+
o = e.iterator[n];
|
|
2100
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
2101
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
2102
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
2103
|
+
var a = i.arg;
|
|
2104
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
2105
|
+
}
|
|
2106
|
+
function pushTryEntry(t) {
|
|
2107
|
+
var e = {
|
|
2108
|
+
tryLoc: t[0]
|
|
2109
|
+
};
|
|
2110
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
2111
|
+
}
|
|
2112
|
+
function resetTryEntry(t) {
|
|
2113
|
+
var e = t.completion || {};
|
|
2114
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
2115
|
+
}
|
|
2116
|
+
function Context(t) {
|
|
2117
|
+
this.tryEntries = [{
|
|
2118
|
+
tryLoc: "root"
|
|
2119
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
2120
|
+
}
|
|
2121
|
+
function values(e) {
|
|
2122
|
+
if (e || "" === e) {
|
|
2123
|
+
var r = e[a];
|
|
2124
|
+
if (r) return r.call(e);
|
|
2125
|
+
if ("function" == typeof e.next) return e;
|
|
2126
|
+
if (!isNaN(e.length)) {
|
|
2127
|
+
var o = -1,
|
|
2128
|
+
i = function next() {
|
|
2129
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
2130
|
+
return next.value = t, next.done = !0, next;
|
|
2131
|
+
};
|
|
2132
|
+
return i.next = i;
|
|
2133
|
+
}
|
|
2134
|
+
}
|
|
2135
|
+
throw new TypeError(_typeof(e) + " is not iterable");
|
|
2136
|
+
}
|
|
2137
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
2138
|
+
value: GeneratorFunctionPrototype,
|
|
2139
|
+
configurable: !0
|
|
2140
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
2141
|
+
value: GeneratorFunction,
|
|
2142
|
+
configurable: !0
|
|
2143
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
2144
|
+
var e = "function" == typeof t && t.constructor;
|
|
2145
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
2146
|
+
}, e.mark = function (t) {
|
|
2147
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
2148
|
+
}, e.awrap = function (t) {
|
|
2149
|
+
return {
|
|
2150
|
+
__await: t
|
|
2151
|
+
};
|
|
2152
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
2372
2153
|
return this;
|
|
2373
|
-
})
|
|
2374
|
-
|
|
2375
|
-
|
|
2154
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
2155
|
+
void 0 === i && (i = Promise);
|
|
2156
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
2157
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
2158
|
+
return t.done ? t.value : a.next();
|
|
2159
|
+
});
|
|
2160
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
2161
|
+
return this;
|
|
2162
|
+
}), define(g, "toString", function () {
|
|
2376
2163
|
return "[object Generator]";
|
|
2377
|
-
})
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
var
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
entry.finallyLoc = locs[2];
|
|
2388
|
-
entry.afterLoc = locs[3];
|
|
2389
|
-
}
|
|
2390
|
-
|
|
2391
|
-
this.tryEntries.push(entry);
|
|
2392
|
-
}
|
|
2393
|
-
|
|
2394
|
-
function resetTryEntry(entry) {
|
|
2395
|
-
var record = entry.completion || {};
|
|
2396
|
-
record.type = "normal";
|
|
2397
|
-
delete record.arg;
|
|
2398
|
-
entry.completion = record;
|
|
2399
|
-
}
|
|
2400
|
-
|
|
2401
|
-
function Context(tryLocsList) {
|
|
2402
|
-
// The root entry object (effectively a try statement without a catch
|
|
2403
|
-
// or a finally block) gives us a place to store values thrown from
|
|
2404
|
-
// locations where there is no enclosing try statement.
|
|
2405
|
-
this.tryEntries = [{ tryLoc: "root" }];
|
|
2406
|
-
tryLocsList.forEach(pushTryEntry, this);
|
|
2407
|
-
this.reset(true);
|
|
2408
|
-
}
|
|
2409
|
-
|
|
2410
|
-
exports.keys = function(object) {
|
|
2411
|
-
var keys = [];
|
|
2412
|
-
for (var key in object) {
|
|
2413
|
-
keys.push(key);
|
|
2414
|
-
}
|
|
2415
|
-
keys.reverse();
|
|
2416
|
-
|
|
2417
|
-
// Rather than returning an object with a next method, we keep
|
|
2418
|
-
// things simple and return the next function itself.
|
|
2419
|
-
return function next() {
|
|
2420
|
-
while (keys.length) {
|
|
2421
|
-
var key = keys.pop();
|
|
2422
|
-
if (key in object) {
|
|
2423
|
-
next.value = key;
|
|
2424
|
-
next.done = false;
|
|
2425
|
-
return next;
|
|
2426
|
-
}
|
|
2427
|
-
}
|
|
2428
|
-
|
|
2429
|
-
// To avoid creating an additional object, we just hang the .value
|
|
2430
|
-
// and .done properties off the next function object itself. This
|
|
2431
|
-
// also ensures that the minifier will not anonymize the function.
|
|
2432
|
-
next.done = true;
|
|
2433
|
-
return next;
|
|
2164
|
+
}), e.keys = function (t) {
|
|
2165
|
+
var e = Object(t),
|
|
2166
|
+
r = [];
|
|
2167
|
+
for (var n in e) r.push(n);
|
|
2168
|
+
return r.reverse(), function next() {
|
|
2169
|
+
for (; r.length;) {
|
|
2170
|
+
var t = r.pop();
|
|
2171
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
|
2172
|
+
}
|
|
2173
|
+
return next.done = !0, next;
|
|
2434
2174
|
};
|
|
2435
|
-
}
|
|
2436
|
-
|
|
2437
|
-
function values(iterable) {
|
|
2438
|
-
if (iterable) {
|
|
2439
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
2440
|
-
if (iteratorMethod) {
|
|
2441
|
-
return iteratorMethod.call(iterable);
|
|
2442
|
-
}
|
|
2443
|
-
|
|
2444
|
-
if (typeof iterable.next === "function") {
|
|
2445
|
-
return iterable;
|
|
2446
|
-
}
|
|
2447
|
-
|
|
2448
|
-
if (!isNaN(iterable.length)) {
|
|
2449
|
-
var i = -1, next = function next() {
|
|
2450
|
-
while (++i < iterable.length) {
|
|
2451
|
-
if (hasOwn.call(iterable, i)) {
|
|
2452
|
-
next.value = iterable[i];
|
|
2453
|
-
next.done = false;
|
|
2454
|
-
return next;
|
|
2455
|
-
}
|
|
2456
|
-
}
|
|
2457
|
-
|
|
2458
|
-
next.value = undefined$1;
|
|
2459
|
-
next.done = true;
|
|
2460
|
-
|
|
2461
|
-
return next;
|
|
2462
|
-
};
|
|
2463
|
-
|
|
2464
|
-
return next.next = next;
|
|
2465
|
-
}
|
|
2466
|
-
}
|
|
2467
|
-
|
|
2468
|
-
// Return an iterator with no values.
|
|
2469
|
-
return { next: doneResult };
|
|
2470
|
-
}
|
|
2471
|
-
exports.values = values;
|
|
2472
|
-
|
|
2473
|
-
function doneResult() {
|
|
2474
|
-
return { value: undefined$1, done: true };
|
|
2475
|
-
}
|
|
2476
|
-
|
|
2477
|
-
Context.prototype = {
|
|
2175
|
+
}, e.values = values, Context.prototype = {
|
|
2478
2176
|
constructor: Context,
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
this.prev = 0;
|
|
2482
|
-
this.next = 0;
|
|
2483
|
-
// Resetting context._sent for legacy support of Babel's
|
|
2484
|
-
// function.sent implementation.
|
|
2485
|
-
this.sent = this._sent = undefined$1;
|
|
2486
|
-
this.done = false;
|
|
2487
|
-
this.delegate = null;
|
|
2488
|
-
|
|
2489
|
-
this.method = "next";
|
|
2490
|
-
this.arg = undefined$1;
|
|
2491
|
-
|
|
2492
|
-
this.tryEntries.forEach(resetTryEntry);
|
|
2493
|
-
|
|
2494
|
-
if (!skipTempReset) {
|
|
2495
|
-
for (var name in this) {
|
|
2496
|
-
// Not sure about the optimal order of these conditions:
|
|
2497
|
-
if (name.charAt(0) === "t" &&
|
|
2498
|
-
hasOwn.call(this, name) &&
|
|
2499
|
-
!isNaN(+name.slice(1))) {
|
|
2500
|
-
this[name] = undefined$1;
|
|
2501
|
-
}
|
|
2502
|
-
}
|
|
2503
|
-
}
|
|
2177
|
+
reset: function reset(e) {
|
|
2178
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
2504
2179
|
},
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
var rootEntry = this.tryEntries[0];
|
|
2510
|
-
var rootRecord = rootEntry.completion;
|
|
2511
|
-
if (rootRecord.type === "throw") {
|
|
2512
|
-
throw rootRecord.arg;
|
|
2513
|
-
}
|
|
2514
|
-
|
|
2180
|
+
stop: function stop() {
|
|
2181
|
+
this.done = !0;
|
|
2182
|
+
var t = this.tryEntries[0].completion;
|
|
2183
|
+
if ("throw" === t.type) throw t.arg;
|
|
2515
2184
|
return this.rval;
|
|
2516
2185
|
},
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
var
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
return !! caught;
|
|
2537
|
-
}
|
|
2538
|
-
|
|
2539
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
2540
|
-
var entry = this.tryEntries[i];
|
|
2541
|
-
var record = entry.completion;
|
|
2542
|
-
|
|
2543
|
-
if (entry.tryLoc === "root") {
|
|
2544
|
-
// Exception thrown outside of any try block that could handle
|
|
2545
|
-
// it, so set the completion value of the entire function to
|
|
2546
|
-
// throw the exception.
|
|
2547
|
-
return handle("end");
|
|
2548
|
-
}
|
|
2549
|
-
|
|
2550
|
-
if (entry.tryLoc <= this.prev) {
|
|
2551
|
-
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
2552
|
-
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
2553
|
-
|
|
2554
|
-
if (hasCatch && hasFinally) {
|
|
2555
|
-
if (this.prev < entry.catchLoc) {
|
|
2556
|
-
return handle(entry.catchLoc, true);
|
|
2557
|
-
} else if (this.prev < entry.finallyLoc) {
|
|
2558
|
-
return handle(entry.finallyLoc);
|
|
2559
|
-
}
|
|
2560
|
-
|
|
2561
|
-
} else if (hasCatch) {
|
|
2562
|
-
if (this.prev < entry.catchLoc) {
|
|
2563
|
-
return handle(entry.catchLoc, true);
|
|
2564
|
-
}
|
|
2565
|
-
|
|
2566
|
-
} else if (hasFinally) {
|
|
2567
|
-
if (this.prev < entry.finallyLoc) {
|
|
2568
|
-
return handle(entry.finallyLoc);
|
|
2569
|
-
}
|
|
2570
|
-
|
|
2186
|
+
dispatchException: function dispatchException(e) {
|
|
2187
|
+
if (this.done) throw e;
|
|
2188
|
+
var r = this;
|
|
2189
|
+
function handle(n, o) {
|
|
2190
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
2191
|
+
}
|
|
2192
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
2193
|
+
var i = this.tryEntries[o],
|
|
2194
|
+
a = i.completion;
|
|
2195
|
+
if ("root" === i.tryLoc) return handle("end");
|
|
2196
|
+
if (i.tryLoc <= this.prev) {
|
|
2197
|
+
var c = n.call(i, "catchLoc"),
|
|
2198
|
+
u = n.call(i, "finallyLoc");
|
|
2199
|
+
if (c && u) {
|
|
2200
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
2201
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
2202
|
+
} else if (c) {
|
|
2203
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
2571
2204
|
} else {
|
|
2572
|
-
throw
|
|
2205
|
+
if (!u) throw Error("try statement without catch or finally");
|
|
2206
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
2573
2207
|
}
|
|
2574
2208
|
}
|
|
2575
2209
|
}
|
|
2576
2210
|
},
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
hasOwn.call(entry, "finallyLoc") &&
|
|
2583
|
-
this.prev < entry.finallyLoc) {
|
|
2584
|
-
var finallyEntry = entry;
|
|
2211
|
+
abrupt: function abrupt(t, e) {
|
|
2212
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
2213
|
+
var o = this.tryEntries[r];
|
|
2214
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
2215
|
+
var i = o;
|
|
2585
2216
|
break;
|
|
2586
2217
|
}
|
|
2587
2218
|
}
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
type === "continue") &&
|
|
2592
|
-
finallyEntry.tryLoc <= arg &&
|
|
2593
|
-
arg <= finallyEntry.finallyLoc) {
|
|
2594
|
-
// Ignore the finally entry if control is not jumping to a
|
|
2595
|
-
// location outside the try/catch block.
|
|
2596
|
-
finallyEntry = null;
|
|
2597
|
-
}
|
|
2598
|
-
|
|
2599
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
2600
|
-
record.type = type;
|
|
2601
|
-
record.arg = arg;
|
|
2602
|
-
|
|
2603
|
-
if (finallyEntry) {
|
|
2604
|
-
this.method = "next";
|
|
2605
|
-
this.next = finallyEntry.finallyLoc;
|
|
2606
|
-
return ContinueSentinel;
|
|
2607
|
-
}
|
|
2608
|
-
|
|
2609
|
-
return this.complete(record);
|
|
2219
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
2220
|
+
var a = i ? i.completion : {};
|
|
2221
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
2610
2222
|
},
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
throw record.arg;
|
|
2615
|
-
}
|
|
2616
|
-
|
|
2617
|
-
if (record.type === "break" ||
|
|
2618
|
-
record.type === "continue") {
|
|
2619
|
-
this.next = record.arg;
|
|
2620
|
-
} else if (record.type === "return") {
|
|
2621
|
-
this.rval = this.arg = record.arg;
|
|
2622
|
-
this.method = "return";
|
|
2623
|
-
this.next = "end";
|
|
2624
|
-
} else if (record.type === "normal" && afterLoc) {
|
|
2625
|
-
this.next = afterLoc;
|
|
2626
|
-
}
|
|
2627
|
-
|
|
2628
|
-
return ContinueSentinel;
|
|
2223
|
+
complete: function complete(t, e) {
|
|
2224
|
+
if ("throw" === t.type) throw t.arg;
|
|
2225
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
2629
2226
|
},
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
if (entry.finallyLoc === finallyLoc) {
|
|
2635
|
-
this.complete(entry.completion, entry.afterLoc);
|
|
2636
|
-
resetTryEntry(entry);
|
|
2637
|
-
return ContinueSentinel;
|
|
2638
|
-
}
|
|
2227
|
+
finish: function finish(t) {
|
|
2228
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
2229
|
+
var r = this.tryEntries[e];
|
|
2230
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
2639
2231
|
}
|
|
2640
2232
|
},
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
resetTryEntry(entry);
|
|
2233
|
+
"catch": function _catch(t) {
|
|
2234
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
2235
|
+
var r = this.tryEntries[e];
|
|
2236
|
+
if (r.tryLoc === t) {
|
|
2237
|
+
var n = r.completion;
|
|
2238
|
+
if ("throw" === n.type) {
|
|
2239
|
+
var o = n.arg;
|
|
2240
|
+
resetTryEntry(r);
|
|
2650
2241
|
}
|
|
2651
|
-
return
|
|
2242
|
+
return o;
|
|
2652
2243
|
}
|
|
2653
2244
|
}
|
|
2654
|
-
|
|
2655
|
-
// The context.catch method must only be called with a location
|
|
2656
|
-
// argument that corresponds to a known catch block.
|
|
2657
|
-
throw new Error("illegal catch attempt");
|
|
2245
|
+
throw Error("illegal catch attempt");
|
|
2658
2246
|
},
|
|
2247
|
+
delegateYield: function delegateYield(e, r, n) {
|
|
2248
|
+
return this.delegate = {
|
|
2249
|
+
iterator: values(e),
|
|
2250
|
+
resultName: r,
|
|
2251
|
+
nextLoc: n
|
|
2252
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
2253
|
+
}
|
|
2254
|
+
}, e;
|
|
2255
|
+
}
|
|
2256
|
+
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
2257
|
+
});
|
|
2659
2258
|
|
|
2660
|
-
|
|
2661
|
-
this.delegate = {
|
|
2662
|
-
iterator: values(iterable),
|
|
2663
|
-
resultName: resultName,
|
|
2664
|
-
nextLoc: nextLoc
|
|
2665
|
-
};
|
|
2666
|
-
|
|
2667
|
-
if (this.method === "next") {
|
|
2668
|
-
// Deliberately forget the last sent value so that we don't
|
|
2669
|
-
// accidentally pass it on to the delegate.
|
|
2670
|
-
this.arg = undefined$1;
|
|
2671
|
-
}
|
|
2672
|
-
|
|
2673
|
-
return ContinueSentinel;
|
|
2674
|
-
}
|
|
2675
|
-
};
|
|
2676
|
-
|
|
2677
|
-
// Regardless of whether this script is executing as a CommonJS module
|
|
2678
|
-
// or not, return the runtime object so that we can declare the variable
|
|
2679
|
-
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
2680
|
-
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
2681
|
-
return exports;
|
|
2259
|
+
// TODO(Babel 8): Remove this file.
|
|
2682
2260
|
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
2686
|
-
// object. Either way, the resulting object will be used to initialize
|
|
2687
|
-
// the regeneratorRuntime variable at the top of this file.
|
|
2688
|
-
module.exports
|
|
2689
|
-
));
|
|
2261
|
+
var runtime = regeneratorRuntime$1();
|
|
2262
|
+
var regenerator = runtime;
|
|
2690
2263
|
|
|
2264
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
2691
2265
|
try {
|
|
2692
2266
|
regeneratorRuntime = runtime;
|
|
2693
2267
|
} catch (accidentalStrictMode) {
|
|
2694
|
-
// This module should not be running in strict mode, so the above
|
|
2695
|
-
// assignment should always work unless something is misconfigured. Just
|
|
2696
|
-
// in case runtime.js accidentally runs in strict mode, in modern engines
|
|
2697
|
-
// we can explicitly access globalThis. In older engines we can escape
|
|
2698
|
-
// strict mode using a global Function call. This could conceivably fail
|
|
2699
|
-
// if a Content Security Policy forbids using Function, but in that case
|
|
2700
|
-
// the proper solution is to fix the accidental strict mode problem. If
|
|
2701
|
-
// you've misconfigured your bundler to force strict mode and applied a
|
|
2702
|
-
// CSP to forbid Function, and you're not willing to fix either of those
|
|
2703
|
-
// problems, please detail your unique predicament in a GitHub issue.
|
|
2704
2268
|
if (typeof globalThis === "object") {
|
|
2705
2269
|
globalThis.regeneratorRuntime = runtime;
|
|
2706
2270
|
} else {
|
|
2707
2271
|
Function("r", "regeneratorRuntime = r")(runtime);
|
|
2708
2272
|
}
|
|
2709
2273
|
}
|
|
2710
|
-
});
|
|
2711
|
-
|
|
2712
|
-
var regenerator = runtime_1;
|
|
2713
2274
|
|
|
2714
2275
|
var engineIsNode = classofRaw(global$1.process) === 'process';
|
|
2715
2276
|
|
|
@@ -3861,14 +3422,14 @@
|
|
|
3861
3422
|
// `ToNumeric` abstract operation
|
|
3862
3423
|
// https://tc39.es/ecma262/#sec-tonumeric
|
|
3863
3424
|
var toNumeric = function (value) {
|
|
3864
|
-
var primValue = toPrimitive(value, 'number');
|
|
3425
|
+
var primValue = toPrimitive$1(value, 'number');
|
|
3865
3426
|
return typeof primValue == 'bigint' ? primValue : toNumber(primValue);
|
|
3866
3427
|
};
|
|
3867
3428
|
|
|
3868
3429
|
// `ToNumber` abstract operation
|
|
3869
3430
|
// https://tc39.es/ecma262/#sec-tonumber
|
|
3870
3431
|
var toNumber = function (argument) {
|
|
3871
|
-
var it = toPrimitive(argument, 'number');
|
|
3432
|
+
var it = toPrimitive$1(argument, 'number');
|
|
3872
3433
|
var first, third, radix, maxCode, digits, length, index, code;
|
|
3873
3434
|
if (isSymbol(it)) throw new TypeError$2('Cannot convert a Symbol value to a number');
|
|
3874
3435
|
if (typeof it == 'string' && it.length > 2) {
|
|
@@ -4018,54 +3579,42 @@
|
|
|
4018
3579
|
return stringify(rnds);
|
|
4019
3580
|
}
|
|
4020
3581
|
|
|
4021
|
-
function _objectWithoutPropertiesLoose(
|
|
4022
|
-
if (
|
|
4023
|
-
var
|
|
4024
|
-
var
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
4028
|
-
key = sourceKeys[i];
|
|
4029
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
4030
|
-
target[key] = source[key];
|
|
3582
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
3583
|
+
if (null == r) return {};
|
|
3584
|
+
var t = {};
|
|
3585
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
3586
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
3587
|
+
t[n] = r[n];
|
|
4031
3588
|
}
|
|
4032
|
-
|
|
4033
|
-
return target;
|
|
3589
|
+
return t;
|
|
4034
3590
|
}
|
|
4035
3591
|
|
|
4036
|
-
function _objectWithoutProperties(
|
|
4037
|
-
if (
|
|
4038
|
-
var
|
|
4039
|
-
|
|
4040
|
-
|
|
3592
|
+
function _objectWithoutProperties(e, t) {
|
|
3593
|
+
if (null == e) return {};
|
|
3594
|
+
var o,
|
|
3595
|
+
r,
|
|
3596
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
4041
3597
|
if (Object.getOwnPropertySymbols) {
|
|
4042
|
-
var
|
|
4043
|
-
|
|
4044
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
4045
|
-
key = sourceSymbolKeys[i];
|
|
4046
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
4047
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
4048
|
-
target[key] = source[key];
|
|
4049
|
-
}
|
|
3598
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
3599
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
4050
3600
|
}
|
|
4051
|
-
|
|
4052
|
-
return target;
|
|
3601
|
+
return i;
|
|
4053
3602
|
}
|
|
4054
3603
|
|
|
4055
|
-
function _arrayWithoutHoles(
|
|
4056
|
-
if (Array.isArray(
|
|
3604
|
+
function _arrayWithoutHoles(r) {
|
|
3605
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
4057
3606
|
}
|
|
4058
3607
|
|
|
4059
|
-
function _iterableToArray(
|
|
4060
|
-
if (typeof Symbol
|
|
3608
|
+
function _iterableToArray(r) {
|
|
3609
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
4061
3610
|
}
|
|
4062
3611
|
|
|
4063
3612
|
function _nonIterableSpread() {
|
|
4064
3613
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4065
3614
|
}
|
|
4066
3615
|
|
|
4067
|
-
function _toConsumableArray(
|
|
4068
|
-
return _arrayWithoutHoles(
|
|
3616
|
+
function _toConsumableArray(r) {
|
|
3617
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
4069
3618
|
}
|
|
4070
3619
|
|
|
4071
3620
|
var defineProperty$1 = objectDefineProperty.f;
|
|
@@ -11808,124 +11357,88 @@
|
|
|
11808
11357
|
}
|
|
11809
11358
|
});
|
|
11810
11359
|
|
|
11811
|
-
function _setPrototypeOf(
|
|
11812
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
11813
|
-
|
|
11814
|
-
|
|
11815
|
-
};
|
|
11816
|
-
|
|
11817
|
-
return _setPrototypeOf(o, p);
|
|
11360
|
+
function _setPrototypeOf(t, e) {
|
|
11361
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
11362
|
+
return t.__proto__ = e, t;
|
|
11363
|
+
}, _setPrototypeOf(t, e);
|
|
11818
11364
|
}
|
|
11819
11365
|
|
|
11820
|
-
function _inherits(
|
|
11821
|
-
if (typeof
|
|
11822
|
-
|
|
11823
|
-
|
|
11824
|
-
|
|
11825
|
-
|
|
11826
|
-
|
|
11827
|
-
|
|
11828
|
-
|
|
11829
|
-
|
|
11830
|
-
|
|
11831
|
-
}
|
|
11832
|
-
}),
|
|
11833
|
-
writable: false
|
|
11834
|
-
});
|
|
11835
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
11366
|
+
function _inherits(t, e) {
|
|
11367
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
11368
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
11369
|
+
constructor: {
|
|
11370
|
+
value: t,
|
|
11371
|
+
writable: !0,
|
|
11372
|
+
configurable: !0
|
|
11373
|
+
}
|
|
11374
|
+
}), Object.defineProperty(t, "prototype", {
|
|
11375
|
+
writable: !1
|
|
11376
|
+
}), e && _setPrototypeOf(t, e);
|
|
11836
11377
|
}
|
|
11837
11378
|
|
|
11838
|
-
function _assertThisInitialized(
|
|
11839
|
-
if (
|
|
11840
|
-
|
|
11841
|
-
}
|
|
11842
|
-
|
|
11843
|
-
return self;
|
|
11379
|
+
function _assertThisInitialized(e) {
|
|
11380
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
11381
|
+
return e;
|
|
11844
11382
|
}
|
|
11845
11383
|
|
|
11846
|
-
function _possibleConstructorReturn(
|
|
11847
|
-
if (
|
|
11848
|
-
|
|
11849
|
-
|
|
11850
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
11851
|
-
}
|
|
11852
|
-
|
|
11853
|
-
return _assertThisInitialized(self);
|
|
11384
|
+
function _possibleConstructorReturn(t, e) {
|
|
11385
|
+
if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
|
|
11386
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
11387
|
+
return _assertThisInitialized(t);
|
|
11854
11388
|
}
|
|
11855
11389
|
|
|
11856
|
-
function _getPrototypeOf(
|
|
11857
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function
|
|
11858
|
-
return
|
|
11859
|
-
};
|
|
11860
|
-
return _getPrototypeOf(o);
|
|
11390
|
+
function _getPrototypeOf(t) {
|
|
11391
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
11392
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
11393
|
+
}, _getPrototypeOf(t);
|
|
11861
11394
|
}
|
|
11862
11395
|
|
|
11863
|
-
function _isNativeFunction(
|
|
11864
|
-
|
|
11396
|
+
function _isNativeFunction(t) {
|
|
11397
|
+
try {
|
|
11398
|
+
return -1 !== Function.toString.call(t).indexOf("[native code]");
|
|
11399
|
+
} catch (n) {
|
|
11400
|
+
return "function" == typeof t;
|
|
11401
|
+
}
|
|
11865
11402
|
}
|
|
11866
11403
|
|
|
11867
11404
|
function _isNativeReflectConstruct$1() {
|
|
11868
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
11869
|
-
if (Reflect.construct.sham) return false;
|
|
11870
|
-
if (typeof Proxy === "function") return true;
|
|
11871
|
-
|
|
11872
11405
|
try {
|
|
11873
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
11874
|
-
|
|
11875
|
-
|
|
11876
|
-
return
|
|
11877
|
-
}
|
|
11406
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
11407
|
+
} catch (t) {}
|
|
11408
|
+
return (_isNativeReflectConstruct$1 = function _isNativeReflectConstruct() {
|
|
11409
|
+
return !!t;
|
|
11410
|
+
})();
|
|
11878
11411
|
}
|
|
11879
11412
|
|
|
11880
|
-
function _construct(
|
|
11881
|
-
if (_isNativeReflectConstruct$1())
|
|
11882
|
-
|
|
11883
|
-
|
|
11884
|
-
|
|
11885
|
-
|
|
11886
|
-
a.push.apply(a, args);
|
|
11887
|
-
var Constructor = Function.bind.apply(Parent, a);
|
|
11888
|
-
var instance = new Constructor();
|
|
11889
|
-
if (Class) _setPrototypeOf(instance, Class.prototype);
|
|
11890
|
-
return instance;
|
|
11891
|
-
};
|
|
11892
|
-
}
|
|
11893
|
-
|
|
11894
|
-
return _construct.apply(null, arguments);
|
|
11413
|
+
function _construct(t, e, r) {
|
|
11414
|
+
if (_isNativeReflectConstruct$1()) return Reflect.construct.apply(null, arguments);
|
|
11415
|
+
var o = [null];
|
|
11416
|
+
o.push.apply(o, e);
|
|
11417
|
+
var p = new (t.bind.apply(t, o))();
|
|
11418
|
+
return r && _setPrototypeOf(p, r.prototype), p;
|
|
11895
11419
|
}
|
|
11896
11420
|
|
|
11897
|
-
function _wrapNativeSuper(
|
|
11898
|
-
var
|
|
11899
|
-
|
|
11900
|
-
|
|
11901
|
-
if (
|
|
11902
|
-
|
|
11903
|
-
|
|
11904
|
-
|
|
11421
|
+
function _wrapNativeSuper(t) {
|
|
11422
|
+
var r = "function" == typeof Map ? new Map() : void 0;
|
|
11423
|
+
return _wrapNativeSuper = function _wrapNativeSuper(t) {
|
|
11424
|
+
if (null === t || !_isNativeFunction(t)) return t;
|
|
11425
|
+
if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
|
|
11426
|
+
if (void 0 !== r) {
|
|
11427
|
+
if (r.has(t)) return r.get(t);
|
|
11428
|
+
r.set(t, Wrapper);
|
|
11905
11429
|
}
|
|
11906
|
-
|
|
11907
|
-
if (typeof _cache !== "undefined") {
|
|
11908
|
-
if (_cache.has(Class)) return _cache.get(Class);
|
|
11909
|
-
|
|
11910
|
-
_cache.set(Class, Wrapper);
|
|
11911
|
-
}
|
|
11912
|
-
|
|
11913
11430
|
function Wrapper() {
|
|
11914
|
-
return _construct(
|
|
11431
|
+
return _construct(t, arguments, _getPrototypeOf(this).constructor);
|
|
11915
11432
|
}
|
|
11916
|
-
|
|
11917
|
-
Wrapper.prototype = Object.create(Class.prototype, {
|
|
11433
|
+
return Wrapper.prototype = Object.create(t.prototype, {
|
|
11918
11434
|
constructor: {
|
|
11919
11435
|
value: Wrapper,
|
|
11920
|
-
enumerable:
|
|
11921
|
-
writable:
|
|
11922
|
-
configurable:
|
|
11436
|
+
enumerable: !1,
|
|
11437
|
+
writable: !0,
|
|
11438
|
+
configurable: !0
|
|
11923
11439
|
}
|
|
11924
|
-
});
|
|
11925
|
-
|
|
11926
|
-
};
|
|
11927
|
-
|
|
11928
|
-
return _wrapNativeSuper(Class);
|
|
11440
|
+
}), _setPrototypeOf(Wrapper, t);
|
|
11441
|
+
}, _wrapNativeSuper(t);
|
|
11929
11442
|
}
|
|
11930
11443
|
|
|
11931
11444
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|