@cubejs-client/vue3 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.
|
@@ -346,7 +346,7 @@
|
|
|
346
346
|
|
|
347
347
|
// `ToPrimitive` abstract operation
|
|
348
348
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
349
|
-
var toPrimitive = function (input, pref) {
|
|
349
|
+
var toPrimitive$1 = function (input, pref) {
|
|
350
350
|
if (!isObject(input) || isSymbol(input)) return input;
|
|
351
351
|
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
352
352
|
var result;
|
|
@@ -362,8 +362,8 @@
|
|
|
362
362
|
|
|
363
363
|
// `ToPropertyKey` abstract operation
|
|
364
364
|
// https://tc39.es/ecma262/#sec-topropertykey
|
|
365
|
-
var toPropertyKey = function (argument) {
|
|
366
|
-
var key = toPrimitive(argument, 'string');
|
|
365
|
+
var toPropertyKey$1 = function (argument) {
|
|
366
|
+
var key = toPrimitive$1(argument, 'string');
|
|
367
367
|
return isSymbol(key) ? key : key + '';
|
|
368
368
|
};
|
|
369
369
|
|
|
@@ -390,7 +390,7 @@
|
|
|
390
390
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
391
391
|
var f$7 = descriptors ? $getOwnPropertyDescriptor$2 : function getOwnPropertyDescriptor(O, P) {
|
|
392
392
|
O = toIndexedObject(O);
|
|
393
|
-
P = toPropertyKey(P);
|
|
393
|
+
P = toPropertyKey$1(P);
|
|
394
394
|
if (ie8DomDefine) try {
|
|
395
395
|
return $getOwnPropertyDescriptor$2(O, P);
|
|
396
396
|
} catch (error) { /* empty */ }
|
|
@@ -433,7 +433,7 @@
|
|
|
433
433
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
434
434
|
var f$6 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) {
|
|
435
435
|
anObject(O);
|
|
436
|
-
P = toPropertyKey(P);
|
|
436
|
+
P = toPropertyKey$1(P);
|
|
437
437
|
anObject(Attributes);
|
|
438
438
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
439
439
|
var current = $getOwnPropertyDescriptor$1(O, P);
|
|
@@ -448,7 +448,7 @@
|
|
|
448
448
|
} return $defineProperty$1(O, P, Attributes);
|
|
449
449
|
} : $defineProperty$1 : function defineProperty(O, P, Attributes) {
|
|
450
450
|
anObject(O);
|
|
451
|
-
P = toPropertyKey(P);
|
|
451
|
+
P = toPropertyKey$1(P);
|
|
452
452
|
anObject(Attributes);
|
|
453
453
|
if (ie8DomDefine) try {
|
|
454
454
|
return $defineProperty$1(O, P, Attributes);
|
|
@@ -1017,7 +1017,7 @@
|
|
|
1017
1017
|
};
|
|
1018
1018
|
|
|
1019
1019
|
var createProperty = function (object, key, value) {
|
|
1020
|
-
var propertyKey = toPropertyKey(key);
|
|
1020
|
+
var propertyKey = toPropertyKey$1(key);
|
|
1021
1021
|
if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
|
|
1022
1022
|
else object[propertyKey] = value;
|
|
1023
1023
|
};
|
|
@@ -1335,7 +1335,7 @@
|
|
|
1335
1335
|
var $defineProperty = function defineProperty(O, P, Attributes) {
|
|
1336
1336
|
if (O === ObjectPrototype$2) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
|
|
1337
1337
|
anObject(O);
|
|
1338
|
-
var key = toPropertyKey(P);
|
|
1338
|
+
var key = toPropertyKey$1(P);
|
|
1339
1339
|
anObject(Attributes);
|
|
1340
1340
|
if (hasOwnProperty_1(AllSymbols, key)) {
|
|
1341
1341
|
if (!Attributes.enumerable) {
|
|
@@ -1363,7 +1363,7 @@
|
|
|
1363
1363
|
};
|
|
1364
1364
|
|
|
1365
1365
|
var $propertyIsEnumerable$1 = function propertyIsEnumerable(V) {
|
|
1366
|
-
var P = toPropertyKey(V);
|
|
1366
|
+
var P = toPropertyKey$1(V);
|
|
1367
1367
|
var enumerable = functionCall(nativePropertyIsEnumerable, this, P);
|
|
1368
1368
|
if (this === ObjectPrototype$2 && hasOwnProperty_1(AllSymbols, P) && !hasOwnProperty_1(ObjectPrototypeSymbols, P)) return false;
|
|
1369
1369
|
return enumerable || !hasOwnProperty_1(this, P) || !hasOwnProperty_1(AllSymbols, P) || hasOwnProperty_1(this, HIDDEN) && this[HIDDEN][P]
|
|
@@ -1372,7 +1372,7 @@
|
|
|
1372
1372
|
|
|
1373
1373
|
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
|
|
1374
1374
|
var it = toIndexedObject(O);
|
|
1375
|
-
var key = toPropertyKey(P);
|
|
1375
|
+
var key = toPropertyKey$1(P);
|
|
1376
1376
|
if (it === ObjectPrototype$2 && hasOwnProperty_1(AllSymbols, key) && !hasOwnProperty_1(ObjectPrototypeSymbols, key)) return;
|
|
1377
1377
|
var descriptor = nativeGetOwnPropertyDescriptor$1(it, key);
|
|
1378
1378
|
if (descriptor && hasOwnProperty_1(AllSymbols, key) && !(hasOwnProperty_1(it, HIDDEN) && it[HIDDEN][key])) {
|
|
@@ -1776,960 +1776,509 @@
|
|
|
1776
1776
|
}
|
|
1777
1777
|
});
|
|
1778
1778
|
|
|
1779
|
-
function _typeof(
|
|
1779
|
+
function _typeof(o) {
|
|
1780
1780
|
"@babel/helpers - typeof";
|
|
1781
1781
|
|
|
1782
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
1783
|
-
return typeof
|
|
1784
|
-
} : function (
|
|
1785
|
-
return
|
|
1786
|
-
}, _typeof(
|
|
1782
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
1783
|
+
return typeof o;
|
|
1784
|
+
} : function (o) {
|
|
1785
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
1786
|
+
}, _typeof(o);
|
|
1787
1787
|
}
|
|
1788
1788
|
|
|
1789
|
-
function asyncGeneratorStep(
|
|
1789
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
1790
1790
|
try {
|
|
1791
|
-
var
|
|
1792
|
-
|
|
1793
|
-
} catch (
|
|
1794
|
-
|
|
1795
|
-
return;
|
|
1796
|
-
}
|
|
1797
|
-
|
|
1798
|
-
if (info.done) {
|
|
1799
|
-
resolve(value);
|
|
1800
|
-
} else {
|
|
1801
|
-
Promise.resolve(value).then(_next, _throw);
|
|
1791
|
+
var i = n[a](c),
|
|
1792
|
+
u = i.value;
|
|
1793
|
+
} catch (n) {
|
|
1794
|
+
return void e(n);
|
|
1802
1795
|
}
|
|
1796
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
1803
1797
|
}
|
|
1804
|
-
|
|
1805
|
-
function _asyncToGenerator(fn) {
|
|
1798
|
+
function _asyncToGenerator(n) {
|
|
1806
1799
|
return function () {
|
|
1807
|
-
var
|
|
1808
|
-
|
|
1809
|
-
return new Promise(function (
|
|
1810
|
-
var
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
1800
|
+
var t = this,
|
|
1801
|
+
e = arguments;
|
|
1802
|
+
return new Promise(function (r, o) {
|
|
1803
|
+
var a = n.apply(t, e);
|
|
1804
|
+
function _next(n) {
|
|
1805
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
1814
1806
|
}
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
1807
|
+
function _throw(n) {
|
|
1808
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
1818
1809
|
}
|
|
1819
|
-
|
|
1820
|
-
_next(undefined);
|
|
1810
|
+
_next(void 0);
|
|
1821
1811
|
});
|
|
1822
1812
|
};
|
|
1823
1813
|
}
|
|
1824
1814
|
|
|
1825
|
-
function _classCallCheck(
|
|
1826
|
-
if (!(
|
|
1827
|
-
throw new TypeError("Cannot call a class as a function");
|
|
1828
|
-
}
|
|
1815
|
+
function _classCallCheck(a, n) {
|
|
1816
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
1829
1817
|
}
|
|
1830
1818
|
|
|
1831
|
-
function
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
if ("
|
|
1837
|
-
|
|
1819
|
+
function toPrimitive(t, r) {
|
|
1820
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
1821
|
+
var e = t[Symbol.toPrimitive];
|
|
1822
|
+
if (void 0 !== e) {
|
|
1823
|
+
var i = e.call(t, r || "default");
|
|
1824
|
+
if ("object" != _typeof(i)) return i;
|
|
1825
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1838
1826
|
}
|
|
1827
|
+
return ("string" === r ? String : Number)(t);
|
|
1839
1828
|
}
|
|
1840
1829
|
|
|
1841
|
-
function
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
1845
|
-
writable: false
|
|
1846
|
-
});
|
|
1847
|
-
return Constructor;
|
|
1830
|
+
function toPropertyKey(t) {
|
|
1831
|
+
var i = toPrimitive(t, "string");
|
|
1832
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
1848
1833
|
}
|
|
1849
1834
|
|
|
1850
|
-
function
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
arr2[i] = arr[i];
|
|
1835
|
+
function _defineProperties(e, r) {
|
|
1836
|
+
for (var t = 0; t < r.length; t++) {
|
|
1837
|
+
var o = r[t];
|
|
1838
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
|
|
1855
1839
|
}
|
|
1840
|
+
}
|
|
1841
|
+
function _createClass(e, r, t) {
|
|
1842
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
1843
|
+
writable: !1
|
|
1844
|
+
}), e;
|
|
1845
|
+
}
|
|
1856
1846
|
|
|
1857
|
-
|
|
1847
|
+
function _arrayLikeToArray(r, a) {
|
|
1848
|
+
(null == a || a > r.length) && (a = r.length);
|
|
1849
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
1850
|
+
return n;
|
|
1858
1851
|
}
|
|
1859
1852
|
|
|
1860
|
-
function _arrayWithoutHoles(
|
|
1861
|
-
if (Array.isArray(
|
|
1853
|
+
function _arrayWithoutHoles(r) {
|
|
1854
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
1862
1855
|
}
|
|
1863
1856
|
|
|
1864
|
-
function _iterableToArray(
|
|
1865
|
-
if (typeof Symbol
|
|
1857
|
+
function _iterableToArray(r) {
|
|
1858
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
1866
1859
|
}
|
|
1867
1860
|
|
|
1868
|
-
function _unsupportedIterableToArray(
|
|
1869
|
-
if (
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
1861
|
+
function _unsupportedIterableToArray(r, a) {
|
|
1862
|
+
if (r) {
|
|
1863
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
1864
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
1865
|
+
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;
|
|
1866
|
+
}
|
|
1875
1867
|
}
|
|
1876
1868
|
|
|
1877
1869
|
function _nonIterableSpread() {
|
|
1878
1870
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1879
1871
|
}
|
|
1880
1872
|
|
|
1881
|
-
function _toConsumableArray(
|
|
1882
|
-
return _arrayWithoutHoles(
|
|
1873
|
+
function _toConsumableArray(r) {
|
|
1874
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
1883
1875
|
}
|
|
1884
1876
|
|
|
1885
|
-
function _objectWithoutPropertiesLoose(
|
|
1886
|
-
if (
|
|
1887
|
-
var
|
|
1888
|
-
var
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
1892
|
-
key = sourceKeys[i];
|
|
1893
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
1894
|
-
target[key] = source[key];
|
|
1877
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
1878
|
+
if (null == r) return {};
|
|
1879
|
+
var t = {};
|
|
1880
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
1881
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
1882
|
+
t[n] = r[n];
|
|
1895
1883
|
}
|
|
1896
|
-
|
|
1897
|
-
return target;
|
|
1884
|
+
return t;
|
|
1898
1885
|
}
|
|
1899
1886
|
|
|
1900
|
-
function _objectWithoutProperties(
|
|
1901
|
-
if (
|
|
1902
|
-
var
|
|
1903
|
-
|
|
1904
|
-
|
|
1887
|
+
function _objectWithoutProperties(e, t) {
|
|
1888
|
+
if (null == e) return {};
|
|
1889
|
+
var o,
|
|
1890
|
+
r,
|
|
1891
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
1905
1892
|
if (Object.getOwnPropertySymbols) {
|
|
1906
|
-
var
|
|
1907
|
-
|
|
1908
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
1909
|
-
key = sourceSymbolKeys[i];
|
|
1910
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
1911
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
1912
|
-
target[key] = source[key];
|
|
1913
|
-
}
|
|
1893
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
1894
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
1914
1895
|
}
|
|
1915
|
-
|
|
1916
|
-
return target;
|
|
1896
|
+
return i;
|
|
1917
1897
|
}
|
|
1918
1898
|
|
|
1919
|
-
function _arrayWithHoles(
|
|
1920
|
-
if (Array.isArray(
|
|
1899
|
+
function _arrayWithHoles(r) {
|
|
1900
|
+
if (Array.isArray(r)) return r;
|
|
1921
1901
|
}
|
|
1922
1902
|
|
|
1923
|
-
function _iterableToArrayLimit(
|
|
1924
|
-
var
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
try {
|
|
1934
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
1935
|
-
_arr.push(_s.value);
|
|
1936
|
-
|
|
1937
|
-
if (i && _arr.length === i) break;
|
|
1938
|
-
}
|
|
1939
|
-
} catch (err) {
|
|
1940
|
-
_d = true;
|
|
1941
|
-
_e = err;
|
|
1942
|
-
} finally {
|
|
1903
|
+
function _iterableToArrayLimit(r, l) {
|
|
1904
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
1905
|
+
if (null != t) {
|
|
1906
|
+
var e,
|
|
1907
|
+
n,
|
|
1908
|
+
i,
|
|
1909
|
+
u,
|
|
1910
|
+
a = [],
|
|
1911
|
+
f = !0,
|
|
1912
|
+
o = !1;
|
|
1943
1913
|
try {
|
|
1944
|
-
if (
|
|
1914
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
1915
|
+
if (Object(t) !== t) return;
|
|
1916
|
+
f = !1;
|
|
1917
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
1918
|
+
} catch (r) {
|
|
1919
|
+
o = !0, n = r;
|
|
1945
1920
|
} finally {
|
|
1946
|
-
|
|
1921
|
+
try {
|
|
1922
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
1923
|
+
} finally {
|
|
1924
|
+
if (o) throw n;
|
|
1925
|
+
}
|
|
1947
1926
|
}
|
|
1927
|
+
return a;
|
|
1948
1928
|
}
|
|
1949
|
-
|
|
1950
|
-
return _arr;
|
|
1951
1929
|
}
|
|
1952
1930
|
|
|
1953
1931
|
function _nonIterableRest() {
|
|
1954
1932
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1955
1933
|
}
|
|
1956
1934
|
|
|
1957
|
-
function _slicedToArray(
|
|
1958
|
-
return _arrayWithHoles(
|
|
1935
|
+
function _slicedToArray(r, e) {
|
|
1936
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
1959
1937
|
}
|
|
1960
1938
|
|
|
1961
|
-
function _defineProperty(
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
});
|
|
1969
|
-
} else {
|
|
1970
|
-
obj[key] = value;
|
|
1971
|
-
}
|
|
1972
|
-
|
|
1973
|
-
return obj;
|
|
1939
|
+
function _defineProperty(e, r, t) {
|
|
1940
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
1941
|
+
value: t,
|
|
1942
|
+
enumerable: !0,
|
|
1943
|
+
configurable: !0,
|
|
1944
|
+
writable: !0
|
|
1945
|
+
}) : e[r] = t, e;
|
|
1974
1946
|
}
|
|
1975
1947
|
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
* This source code is licensed under the MIT license found in the
|
|
1980
|
-
* LICENSE file in the root directory of this source tree.
|
|
1981
|
-
*/
|
|
1982
|
-
|
|
1983
|
-
var runtime_1 = createCommonjsModule(function (module) {
|
|
1984
|
-
var runtime = (function (exports) {
|
|
1985
|
-
|
|
1986
|
-
var Op = Object.prototype;
|
|
1987
|
-
var hasOwn = Op.hasOwnProperty;
|
|
1988
|
-
var undefined$1; // More compressible than void 0.
|
|
1989
|
-
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
1990
|
-
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
1991
|
-
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
1992
|
-
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
1948
|
+
var _typeof_1 = createCommonjsModule(function (module) {
|
|
1949
|
+
function _typeof(o) {
|
|
1950
|
+
"@babel/helpers - typeof";
|
|
1993
1951
|
|
|
1994
|
-
function
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
1952
|
+
return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
1953
|
+
return typeof o;
|
|
1954
|
+
} : function (o) {
|
|
1955
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
1956
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
|
|
1957
|
+
}
|
|
1958
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1959
|
+
});
|
|
1960
|
+
|
|
1961
|
+
var regeneratorRuntime$1 = createCommonjsModule(function (module) {
|
|
1962
|
+
var _typeof = _typeof_1["default"];
|
|
1963
|
+
function _regeneratorRuntime() {
|
|
1964
|
+
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
1965
|
+
return e;
|
|
1966
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1967
|
+
var t,
|
|
1968
|
+
e = {},
|
|
1969
|
+
r = Object.prototype,
|
|
1970
|
+
n = r.hasOwnProperty,
|
|
1971
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
1972
|
+
t[e] = r.value;
|
|
1973
|
+
},
|
|
1974
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
1975
|
+
a = i.iterator || "@@iterator",
|
|
1976
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
1977
|
+
u = i.toStringTag || "@@toStringTag";
|
|
1978
|
+
function define(t, e, r) {
|
|
1979
|
+
return Object.defineProperty(t, e, {
|
|
1980
|
+
value: r,
|
|
1981
|
+
enumerable: !0,
|
|
1982
|
+
configurable: !0,
|
|
1983
|
+
writable: !0
|
|
1984
|
+
}), t[e];
|
|
2002
1985
|
}
|
|
2003
1986
|
try {
|
|
2004
|
-
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
|
2005
1987
|
define({}, "");
|
|
2006
|
-
} catch (
|
|
2007
|
-
define = function(
|
|
2008
|
-
return
|
|
1988
|
+
} catch (t) {
|
|
1989
|
+
define = function define(t, e, r) {
|
|
1990
|
+
return t[e] = r;
|
|
2009
1991
|
};
|
|
2010
1992
|
}
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
// The ._invoke method unifies the implementations of the .next,
|
|
2019
|
-
// .throw, and .return methods.
|
|
2020
|
-
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
2021
|
-
|
|
2022
|
-
return generator;
|
|
1993
|
+
function wrap(t, e, r, n) {
|
|
1994
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
1995
|
+
a = Object.create(i.prototype),
|
|
1996
|
+
c = new Context(n || []);
|
|
1997
|
+
return o(a, "_invoke", {
|
|
1998
|
+
value: makeInvokeMethod(t, r, c)
|
|
1999
|
+
}), a;
|
|
2023
2000
|
}
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
// Try/catch helper to minimize deoptimizations. Returns a completion
|
|
2027
|
-
// record like context.tryEntries[i].completion. This interface could
|
|
2028
|
-
// have been (and was previously) designed to take a closure to be
|
|
2029
|
-
// invoked without arguments, but in all the cases we care about we
|
|
2030
|
-
// already have an existing method we want to call, so there's no need
|
|
2031
|
-
// to create a new function object. We can even get away with assuming
|
|
2032
|
-
// the method takes exactly one argument, since that happens to be true
|
|
2033
|
-
// in every case, so we don't have to touch the arguments object. The
|
|
2034
|
-
// only additional allocation required is the completion record, which
|
|
2035
|
-
// has a stable shape and so hopefully should be cheap to allocate.
|
|
2036
|
-
function tryCatch(fn, obj, arg) {
|
|
2001
|
+
function tryCatch(t, e, r) {
|
|
2037
2002
|
try {
|
|
2038
|
-
return {
|
|
2039
|
-
|
|
2040
|
-
|
|
2003
|
+
return {
|
|
2004
|
+
type: "normal",
|
|
2005
|
+
arg: t.call(e, r)
|
|
2006
|
+
};
|
|
2007
|
+
} catch (t) {
|
|
2008
|
+
return {
|
|
2009
|
+
type: "throw",
|
|
2010
|
+
arg: t
|
|
2011
|
+
};
|
|
2041
2012
|
}
|
|
2042
2013
|
}
|
|
2043
|
-
|
|
2044
|
-
var
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
// Returning this object from the innerFn has the same effect as
|
|
2050
|
-
// breaking out of the dispatch switch statement.
|
|
2051
|
-
var ContinueSentinel = {};
|
|
2052
|
-
|
|
2053
|
-
// Dummy constructor functions that we use as the .constructor and
|
|
2054
|
-
// .constructor.prototype properties for functions that return Generator
|
|
2055
|
-
// objects. For full spec compliance, you may wish to configure your
|
|
2056
|
-
// minifier not to mangle the names of these two functions.
|
|
2014
|
+
e.wrap = wrap;
|
|
2015
|
+
var h = "suspendedStart",
|
|
2016
|
+
l = "suspendedYield",
|
|
2017
|
+
f = "executing",
|
|
2018
|
+
s = "completed",
|
|
2019
|
+
y = {};
|
|
2057
2020
|
function Generator() {}
|
|
2058
2021
|
function GeneratorFunction() {}
|
|
2059
2022
|
function GeneratorFunctionPrototype() {}
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
// don't natively support it.
|
|
2063
|
-
var IteratorPrototype = {};
|
|
2064
|
-
define(IteratorPrototype, iteratorSymbol, function () {
|
|
2023
|
+
var p = {};
|
|
2024
|
+
define(p, a, function () {
|
|
2065
2025
|
return this;
|
|
2066
2026
|
});
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
IteratorPrototype = NativeIteratorPrototype;
|
|
2076
|
-
}
|
|
2077
|
-
|
|
2078
|
-
var Gp = GeneratorFunctionPrototype.prototype =
|
|
2079
|
-
Generator.prototype = Object.create(IteratorPrototype);
|
|
2080
|
-
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
|
2081
|
-
define(Gp, "constructor", GeneratorFunctionPrototype);
|
|
2082
|
-
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
|
2083
|
-
GeneratorFunction.displayName = define(
|
|
2084
|
-
GeneratorFunctionPrototype,
|
|
2085
|
-
toStringTagSymbol,
|
|
2086
|
-
"GeneratorFunction"
|
|
2087
|
-
);
|
|
2088
|
-
|
|
2089
|
-
// Helper for defining the .next, .throw, and .return methods of the
|
|
2090
|
-
// Iterator interface in terms of a single ._invoke method.
|
|
2091
|
-
function defineIteratorMethods(prototype) {
|
|
2092
|
-
["next", "throw", "return"].forEach(function(method) {
|
|
2093
|
-
define(prototype, method, function(arg) {
|
|
2094
|
-
return this._invoke(method, arg);
|
|
2027
|
+
var d = Object.getPrototypeOf,
|
|
2028
|
+
v = d && d(d(values([])));
|
|
2029
|
+
v && v !== r && n.call(v, a) && (p = v);
|
|
2030
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
2031
|
+
function defineIteratorMethods(t) {
|
|
2032
|
+
["next", "throw", "return"].forEach(function (e) {
|
|
2033
|
+
define(t, e, function (t) {
|
|
2034
|
+
return this._invoke(e, t);
|
|
2095
2035
|
});
|
|
2096
2036
|
});
|
|
2097
2037
|
}
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
} else {
|
|
2113
|
-
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
2114
|
-
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
|
2115
|
-
}
|
|
2116
|
-
genFun.prototype = Object.create(Gp);
|
|
2117
|
-
return genFun;
|
|
2118
|
-
};
|
|
2119
|
-
|
|
2120
|
-
// Within the body of any async function, `await x` is transformed to
|
|
2121
|
-
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
2122
|
-
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
2123
|
-
// meant to be awaited.
|
|
2124
|
-
exports.awrap = function(arg) {
|
|
2125
|
-
return { __await: arg };
|
|
2126
|
-
};
|
|
2127
|
-
|
|
2128
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
2129
|
-
function invoke(method, arg, resolve, reject) {
|
|
2130
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
2131
|
-
if (record.type === "throw") {
|
|
2132
|
-
reject(record.arg);
|
|
2133
|
-
} else {
|
|
2134
|
-
var result = record.arg;
|
|
2135
|
-
var value = result.value;
|
|
2136
|
-
if (value &&
|
|
2137
|
-
typeof value === "object" &&
|
|
2138
|
-
hasOwn.call(value, "__await")) {
|
|
2139
|
-
return PromiseImpl.resolve(value.__await).then(function(value) {
|
|
2140
|
-
invoke("next", value, resolve, reject);
|
|
2141
|
-
}, function(err) {
|
|
2142
|
-
invoke("throw", err, resolve, reject);
|
|
2143
|
-
});
|
|
2144
|
-
}
|
|
2145
|
-
|
|
2146
|
-
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
|
2147
|
-
// When a yielded Promise is resolved, its final value becomes
|
|
2148
|
-
// the .value of the Promise<{value,done}> result for the
|
|
2149
|
-
// current iteration.
|
|
2150
|
-
result.value = unwrapped;
|
|
2151
|
-
resolve(result);
|
|
2152
|
-
}, function(error) {
|
|
2153
|
-
// If a rejected Promise was yielded, throw the rejection back
|
|
2154
|
-
// into the async generator function so it can be handled there.
|
|
2155
|
-
return invoke("throw", error, resolve, reject);
|
|
2038
|
+
function AsyncIterator(t, e) {
|
|
2039
|
+
function invoke(r, o, i, a) {
|
|
2040
|
+
var c = tryCatch(t[r], t, o);
|
|
2041
|
+
if ("throw" !== c.type) {
|
|
2042
|
+
var u = c.arg,
|
|
2043
|
+
h = u.value;
|
|
2044
|
+
return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
2045
|
+
invoke("next", t, i, a);
|
|
2046
|
+
}, function (t) {
|
|
2047
|
+
invoke("throw", t, i, a);
|
|
2048
|
+
}) : e.resolve(h).then(function (t) {
|
|
2049
|
+
u.value = t, i(u);
|
|
2050
|
+
}, function (t) {
|
|
2051
|
+
return invoke("throw", t, i, a);
|
|
2156
2052
|
});
|
|
2157
2053
|
}
|
|
2054
|
+
a(c.arg);
|
|
2158
2055
|
}
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
});
|
|
2167
|
-
}
|
|
2168
|
-
|
|
2169
|
-
return previousPromise =
|
|
2170
|
-
// If enqueue has been called before, then we want to wait until
|
|
2171
|
-
// all previous Promises have been resolved before calling invoke,
|
|
2172
|
-
// so that results are always delivered in the correct order. If
|
|
2173
|
-
// enqueue has not been called before, then it is important to
|
|
2174
|
-
// call invoke immediately, without waiting on a callback to fire,
|
|
2175
|
-
// so that the async generator function has the opportunity to do
|
|
2176
|
-
// any necessary setup in a predictable way. This predictability
|
|
2177
|
-
// is why the Promise constructor synchronously invokes its
|
|
2178
|
-
// executor callback, and why async functions synchronously
|
|
2179
|
-
// execute code before the first await. Since we implement simple
|
|
2180
|
-
// async functions in terms of async generators, it is especially
|
|
2181
|
-
// important to get this right, even though it requires care.
|
|
2182
|
-
previousPromise ? previousPromise.then(
|
|
2183
|
-
callInvokeWithMethodAndArg,
|
|
2184
|
-
// Avoid propagating failures to Promises returned by later
|
|
2185
|
-
// invocations of the iterator.
|
|
2186
|
-
callInvokeWithMethodAndArg
|
|
2187
|
-
) : callInvokeWithMethodAndArg();
|
|
2188
|
-
}
|
|
2189
|
-
|
|
2190
|
-
// Define the unified helper method that is used to implement .next,
|
|
2191
|
-
// .throw, and .return (see defineIteratorMethods).
|
|
2192
|
-
this._invoke = enqueue;
|
|
2193
|
-
}
|
|
2194
|
-
|
|
2195
|
-
defineIteratorMethods(AsyncIterator.prototype);
|
|
2196
|
-
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
2197
|
-
return this;
|
|
2198
|
-
});
|
|
2199
|
-
exports.AsyncIterator = AsyncIterator;
|
|
2200
|
-
|
|
2201
|
-
// Note that simple async functions are implemented on top of
|
|
2202
|
-
// AsyncIterator objects; they just return a Promise for the value of
|
|
2203
|
-
// the final result produced by the iterator.
|
|
2204
|
-
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
2205
|
-
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
2206
|
-
|
|
2207
|
-
var iter = new AsyncIterator(
|
|
2208
|
-
wrap(innerFn, outerFn, self, tryLocsList),
|
|
2209
|
-
PromiseImpl
|
|
2210
|
-
);
|
|
2211
|
-
|
|
2212
|
-
return exports.isGeneratorFunction(outerFn)
|
|
2213
|
-
? iter // If outerFn is a generator, return the full iterator.
|
|
2214
|
-
: iter.next().then(function(result) {
|
|
2215
|
-
return result.done ? result.value : iter.next();
|
|
2216
|
-
});
|
|
2217
|
-
};
|
|
2218
|
-
|
|
2219
|
-
function makeInvokeMethod(innerFn, self, context) {
|
|
2220
|
-
var state = GenStateSuspendedStart;
|
|
2221
|
-
|
|
2222
|
-
return function invoke(method, arg) {
|
|
2223
|
-
if (state === GenStateExecuting) {
|
|
2224
|
-
throw new Error("Generator is already running");
|
|
2225
|
-
}
|
|
2226
|
-
|
|
2227
|
-
if (state === GenStateCompleted) {
|
|
2228
|
-
if (method === "throw") {
|
|
2229
|
-
throw arg;
|
|
2056
|
+
var r;
|
|
2057
|
+
o(this, "_invoke", {
|
|
2058
|
+
value: function value(t, n) {
|
|
2059
|
+
function callInvokeWithMethodAndArg() {
|
|
2060
|
+
return new e(function (e, r) {
|
|
2061
|
+
invoke(t, n, e, r);
|
|
2062
|
+
});
|
|
2230
2063
|
}
|
|
2231
|
-
|
|
2232
|
-
// Be forgiving, per 25.3.3.3.3 of the spec:
|
|
2233
|
-
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
2234
|
-
return doneResult();
|
|
2064
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
2235
2065
|
}
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
if (state === GenStateSuspendedStart) {
|
|
2257
|
-
state = GenStateCompleted;
|
|
2258
|
-
throw context.arg;
|
|
2066
|
+
});
|
|
2067
|
+
}
|
|
2068
|
+
function makeInvokeMethod(e, r, n) {
|
|
2069
|
+
var o = h;
|
|
2070
|
+
return function (i, a) {
|
|
2071
|
+
if (o === f) throw Error("Generator is already running");
|
|
2072
|
+
if (o === s) {
|
|
2073
|
+
if ("throw" === i) throw a;
|
|
2074
|
+
return {
|
|
2075
|
+
value: t,
|
|
2076
|
+
done: !0
|
|
2077
|
+
};
|
|
2078
|
+
}
|
|
2079
|
+
for (n.method = i, n.arg = a;;) {
|
|
2080
|
+
var c = n.delegate;
|
|
2081
|
+
if (c) {
|
|
2082
|
+
var u = maybeInvokeDelegate(c, n);
|
|
2083
|
+
if (u) {
|
|
2084
|
+
if (u === y) continue;
|
|
2085
|
+
return u;
|
|
2259
2086
|
}
|
|
2260
|
-
|
|
2261
|
-
context.dispatchException(context.arg);
|
|
2262
|
-
|
|
2263
|
-
} else if (context.method === "return") {
|
|
2264
|
-
context.abrupt("return", context.arg);
|
|
2265
2087
|
}
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
? GenStateCompleted
|
|
2275
|
-
: GenStateSuspendedYield;
|
|
2276
|
-
|
|
2277
|
-
if (record.arg === ContinueSentinel) {
|
|
2278
|
-
continue;
|
|
2279
|
-
}
|
|
2280
|
-
|
|
2088
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
2089
|
+
if (o === h) throw o = s, n.arg;
|
|
2090
|
+
n.dispatchException(n.arg);
|
|
2091
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
2092
|
+
o = f;
|
|
2093
|
+
var p = tryCatch(e, r, n);
|
|
2094
|
+
if ("normal" === p.type) {
|
|
2095
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
|
2281
2096
|
return {
|
|
2282
|
-
value:
|
|
2283
|
-
done:
|
|
2097
|
+
value: p.arg,
|
|
2098
|
+
done: n.done
|
|
2284
2099
|
};
|
|
2285
|
-
|
|
2286
|
-
} else if (record.type === "throw") {
|
|
2287
|
-
state = GenStateCompleted;
|
|
2288
|
-
// Dispatch the exception by looping back around to the
|
|
2289
|
-
// context.dispatchException(context.arg) call above.
|
|
2290
|
-
context.method = "throw";
|
|
2291
|
-
context.arg = record.arg;
|
|
2292
2100
|
}
|
|
2101
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
2293
2102
|
}
|
|
2294
2103
|
};
|
|
2295
2104
|
}
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
var
|
|
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
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
// variable specified by delegate.resultName (see delegateYield).
|
|
2353
|
-
context[delegate.resultName] = info.value;
|
|
2354
|
-
|
|
2355
|
-
// Resume execution at the desired location (see delegateYield).
|
|
2356
|
-
context.next = delegate.nextLoc;
|
|
2357
|
-
|
|
2358
|
-
// If context.method was "throw" but the delegate handled the
|
|
2359
|
-
// exception, let the outer generator proceed normally. If
|
|
2360
|
-
// context.method was "next", forget context.arg since it has been
|
|
2361
|
-
// "consumed" by the delegate iterator. If context.method was
|
|
2362
|
-
// "return", allow the original .return call to continue in the
|
|
2363
|
-
// outer generator.
|
|
2364
|
-
if (context.method !== "return") {
|
|
2365
|
-
context.method = "next";
|
|
2366
|
-
context.arg = undefined$1;
|
|
2367
|
-
}
|
|
2368
|
-
|
|
2369
|
-
} else {
|
|
2370
|
-
// Re-yield the result returned by the delegate method.
|
|
2371
|
-
return info;
|
|
2372
|
-
}
|
|
2373
|
-
|
|
2374
|
-
// The delegate iterator is finished, so forget it and continue with
|
|
2375
|
-
// the outer generator.
|
|
2376
|
-
context.delegate = null;
|
|
2377
|
-
return ContinueSentinel;
|
|
2378
|
-
}
|
|
2379
|
-
|
|
2380
|
-
// Define Generator.prototype.{next,throw,return} in terms of the
|
|
2381
|
-
// unified ._invoke helper method.
|
|
2382
|
-
defineIteratorMethods(Gp);
|
|
2383
|
-
|
|
2384
|
-
define(Gp, toStringTagSymbol, "Generator");
|
|
2385
|
-
|
|
2386
|
-
// A Generator should always return itself as the iterator object when the
|
|
2387
|
-
// @@iterator function is called on it. Some browsers' implementations of the
|
|
2388
|
-
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
2389
|
-
// object to not be returned from this call. This ensures that doesn't happen.
|
|
2390
|
-
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
2391
|
-
define(Gp, iteratorSymbol, function() {
|
|
2105
|
+
function maybeInvokeDelegate(e, r) {
|
|
2106
|
+
var n = r.method,
|
|
2107
|
+
o = e.iterator[n];
|
|
2108
|
+
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;
|
|
2109
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
2110
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
2111
|
+
var a = i.arg;
|
|
2112
|
+
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);
|
|
2113
|
+
}
|
|
2114
|
+
function pushTryEntry(t) {
|
|
2115
|
+
var e = {
|
|
2116
|
+
tryLoc: t[0]
|
|
2117
|
+
};
|
|
2118
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
2119
|
+
}
|
|
2120
|
+
function resetTryEntry(t) {
|
|
2121
|
+
var e = t.completion || {};
|
|
2122
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
2123
|
+
}
|
|
2124
|
+
function Context(t) {
|
|
2125
|
+
this.tryEntries = [{
|
|
2126
|
+
tryLoc: "root"
|
|
2127
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
2128
|
+
}
|
|
2129
|
+
function values(e) {
|
|
2130
|
+
if (e || "" === e) {
|
|
2131
|
+
var r = e[a];
|
|
2132
|
+
if (r) return r.call(e);
|
|
2133
|
+
if ("function" == typeof e.next) return e;
|
|
2134
|
+
if (!isNaN(e.length)) {
|
|
2135
|
+
var o = -1,
|
|
2136
|
+
i = function next() {
|
|
2137
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
2138
|
+
return next.value = t, next.done = !0, next;
|
|
2139
|
+
};
|
|
2140
|
+
return i.next = i;
|
|
2141
|
+
}
|
|
2142
|
+
}
|
|
2143
|
+
throw new TypeError(_typeof(e) + " is not iterable");
|
|
2144
|
+
}
|
|
2145
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
2146
|
+
value: GeneratorFunctionPrototype,
|
|
2147
|
+
configurable: !0
|
|
2148
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
2149
|
+
value: GeneratorFunction,
|
|
2150
|
+
configurable: !0
|
|
2151
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
2152
|
+
var e = "function" == typeof t && t.constructor;
|
|
2153
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
2154
|
+
}, e.mark = function (t) {
|
|
2155
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
2156
|
+
}, e.awrap = function (t) {
|
|
2157
|
+
return {
|
|
2158
|
+
__await: t
|
|
2159
|
+
};
|
|
2160
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
2392
2161
|
return this;
|
|
2393
|
-
})
|
|
2394
|
-
|
|
2395
|
-
|
|
2162
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
2163
|
+
void 0 === i && (i = Promise);
|
|
2164
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
2165
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
2166
|
+
return t.done ? t.value : a.next();
|
|
2167
|
+
});
|
|
2168
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
2169
|
+
return this;
|
|
2170
|
+
}), define(g, "toString", function () {
|
|
2396
2171
|
return "[object Generator]";
|
|
2397
|
-
})
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
var
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
entry.finallyLoc = locs[2];
|
|
2408
|
-
entry.afterLoc = locs[3];
|
|
2409
|
-
}
|
|
2410
|
-
|
|
2411
|
-
this.tryEntries.push(entry);
|
|
2412
|
-
}
|
|
2413
|
-
|
|
2414
|
-
function resetTryEntry(entry) {
|
|
2415
|
-
var record = entry.completion || {};
|
|
2416
|
-
record.type = "normal";
|
|
2417
|
-
delete record.arg;
|
|
2418
|
-
entry.completion = record;
|
|
2419
|
-
}
|
|
2420
|
-
|
|
2421
|
-
function Context(tryLocsList) {
|
|
2422
|
-
// The root entry object (effectively a try statement without a catch
|
|
2423
|
-
// or a finally block) gives us a place to store values thrown from
|
|
2424
|
-
// locations where there is no enclosing try statement.
|
|
2425
|
-
this.tryEntries = [{ tryLoc: "root" }];
|
|
2426
|
-
tryLocsList.forEach(pushTryEntry, this);
|
|
2427
|
-
this.reset(true);
|
|
2428
|
-
}
|
|
2429
|
-
|
|
2430
|
-
exports.keys = function(object) {
|
|
2431
|
-
var keys = [];
|
|
2432
|
-
for (var key in object) {
|
|
2433
|
-
keys.push(key);
|
|
2434
|
-
}
|
|
2435
|
-
keys.reverse();
|
|
2436
|
-
|
|
2437
|
-
// Rather than returning an object with a next method, we keep
|
|
2438
|
-
// things simple and return the next function itself.
|
|
2439
|
-
return function next() {
|
|
2440
|
-
while (keys.length) {
|
|
2441
|
-
var key = keys.pop();
|
|
2442
|
-
if (key in object) {
|
|
2443
|
-
next.value = key;
|
|
2444
|
-
next.done = false;
|
|
2445
|
-
return next;
|
|
2446
|
-
}
|
|
2447
|
-
}
|
|
2448
|
-
|
|
2449
|
-
// To avoid creating an additional object, we just hang the .value
|
|
2450
|
-
// and .done properties off the next function object itself. This
|
|
2451
|
-
// also ensures that the minifier will not anonymize the function.
|
|
2452
|
-
next.done = true;
|
|
2453
|
-
return next;
|
|
2172
|
+
}), e.keys = function (t) {
|
|
2173
|
+
var e = Object(t),
|
|
2174
|
+
r = [];
|
|
2175
|
+
for (var n in e) r.push(n);
|
|
2176
|
+
return r.reverse(), function next() {
|
|
2177
|
+
for (; r.length;) {
|
|
2178
|
+
var t = r.pop();
|
|
2179
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
|
2180
|
+
}
|
|
2181
|
+
return next.done = !0, next;
|
|
2454
2182
|
};
|
|
2455
|
-
}
|
|
2456
|
-
|
|
2457
|
-
function values(iterable) {
|
|
2458
|
-
if (iterable) {
|
|
2459
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
2460
|
-
if (iteratorMethod) {
|
|
2461
|
-
return iteratorMethod.call(iterable);
|
|
2462
|
-
}
|
|
2463
|
-
|
|
2464
|
-
if (typeof iterable.next === "function") {
|
|
2465
|
-
return iterable;
|
|
2466
|
-
}
|
|
2467
|
-
|
|
2468
|
-
if (!isNaN(iterable.length)) {
|
|
2469
|
-
var i = -1, next = function next() {
|
|
2470
|
-
while (++i < iterable.length) {
|
|
2471
|
-
if (hasOwn.call(iterable, i)) {
|
|
2472
|
-
next.value = iterable[i];
|
|
2473
|
-
next.done = false;
|
|
2474
|
-
return next;
|
|
2475
|
-
}
|
|
2476
|
-
}
|
|
2477
|
-
|
|
2478
|
-
next.value = undefined$1;
|
|
2479
|
-
next.done = true;
|
|
2480
|
-
|
|
2481
|
-
return next;
|
|
2482
|
-
};
|
|
2483
|
-
|
|
2484
|
-
return next.next = next;
|
|
2485
|
-
}
|
|
2486
|
-
}
|
|
2487
|
-
|
|
2488
|
-
// Return an iterator with no values.
|
|
2489
|
-
return { next: doneResult };
|
|
2490
|
-
}
|
|
2491
|
-
exports.values = values;
|
|
2492
|
-
|
|
2493
|
-
function doneResult() {
|
|
2494
|
-
return { value: undefined$1, done: true };
|
|
2495
|
-
}
|
|
2496
|
-
|
|
2497
|
-
Context.prototype = {
|
|
2183
|
+
}, e.values = values, Context.prototype = {
|
|
2498
2184
|
constructor: Context,
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
this.prev = 0;
|
|
2502
|
-
this.next = 0;
|
|
2503
|
-
// Resetting context._sent for legacy support of Babel's
|
|
2504
|
-
// function.sent implementation.
|
|
2505
|
-
this.sent = this._sent = undefined$1;
|
|
2506
|
-
this.done = false;
|
|
2507
|
-
this.delegate = null;
|
|
2508
|
-
|
|
2509
|
-
this.method = "next";
|
|
2510
|
-
this.arg = undefined$1;
|
|
2511
|
-
|
|
2512
|
-
this.tryEntries.forEach(resetTryEntry);
|
|
2513
|
-
|
|
2514
|
-
if (!skipTempReset) {
|
|
2515
|
-
for (var name in this) {
|
|
2516
|
-
// Not sure about the optimal order of these conditions:
|
|
2517
|
-
if (name.charAt(0) === "t" &&
|
|
2518
|
-
hasOwn.call(this, name) &&
|
|
2519
|
-
!isNaN(+name.slice(1))) {
|
|
2520
|
-
this[name] = undefined$1;
|
|
2521
|
-
}
|
|
2522
|
-
}
|
|
2523
|
-
}
|
|
2185
|
+
reset: function reset(e) {
|
|
2186
|
+
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);
|
|
2524
2187
|
},
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
var rootEntry = this.tryEntries[0];
|
|
2530
|
-
var rootRecord = rootEntry.completion;
|
|
2531
|
-
if (rootRecord.type === "throw") {
|
|
2532
|
-
throw rootRecord.arg;
|
|
2533
|
-
}
|
|
2534
|
-
|
|
2188
|
+
stop: function stop() {
|
|
2189
|
+
this.done = !0;
|
|
2190
|
+
var t = this.tryEntries[0].completion;
|
|
2191
|
+
if ("throw" === t.type) throw t.arg;
|
|
2535
2192
|
return this.rval;
|
|
2536
2193
|
},
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
var
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
return !! caught;
|
|
2557
|
-
}
|
|
2558
|
-
|
|
2559
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
2560
|
-
var entry = this.tryEntries[i];
|
|
2561
|
-
var record = entry.completion;
|
|
2562
|
-
|
|
2563
|
-
if (entry.tryLoc === "root") {
|
|
2564
|
-
// Exception thrown outside of any try block that could handle
|
|
2565
|
-
// it, so set the completion value of the entire function to
|
|
2566
|
-
// throw the exception.
|
|
2567
|
-
return handle("end");
|
|
2568
|
-
}
|
|
2569
|
-
|
|
2570
|
-
if (entry.tryLoc <= this.prev) {
|
|
2571
|
-
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
2572
|
-
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
2573
|
-
|
|
2574
|
-
if (hasCatch && hasFinally) {
|
|
2575
|
-
if (this.prev < entry.catchLoc) {
|
|
2576
|
-
return handle(entry.catchLoc, true);
|
|
2577
|
-
} else if (this.prev < entry.finallyLoc) {
|
|
2578
|
-
return handle(entry.finallyLoc);
|
|
2579
|
-
}
|
|
2580
|
-
|
|
2581
|
-
} else if (hasCatch) {
|
|
2582
|
-
if (this.prev < entry.catchLoc) {
|
|
2583
|
-
return handle(entry.catchLoc, true);
|
|
2584
|
-
}
|
|
2585
|
-
|
|
2586
|
-
} else if (hasFinally) {
|
|
2587
|
-
if (this.prev < entry.finallyLoc) {
|
|
2588
|
-
return handle(entry.finallyLoc);
|
|
2589
|
-
}
|
|
2590
|
-
|
|
2194
|
+
dispatchException: function dispatchException(e) {
|
|
2195
|
+
if (this.done) throw e;
|
|
2196
|
+
var r = this;
|
|
2197
|
+
function handle(n, o) {
|
|
2198
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
2199
|
+
}
|
|
2200
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
2201
|
+
var i = this.tryEntries[o],
|
|
2202
|
+
a = i.completion;
|
|
2203
|
+
if ("root" === i.tryLoc) return handle("end");
|
|
2204
|
+
if (i.tryLoc <= this.prev) {
|
|
2205
|
+
var c = n.call(i, "catchLoc"),
|
|
2206
|
+
u = n.call(i, "finallyLoc");
|
|
2207
|
+
if (c && u) {
|
|
2208
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
2209
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
2210
|
+
} else if (c) {
|
|
2211
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
2591
2212
|
} else {
|
|
2592
|
-
throw
|
|
2213
|
+
if (!u) throw Error("try statement without catch or finally");
|
|
2214
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
2593
2215
|
}
|
|
2594
2216
|
}
|
|
2595
2217
|
}
|
|
2596
2218
|
},
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
hasOwn.call(entry, "finallyLoc") &&
|
|
2603
|
-
this.prev < entry.finallyLoc) {
|
|
2604
|
-
var finallyEntry = entry;
|
|
2219
|
+
abrupt: function abrupt(t, e) {
|
|
2220
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
2221
|
+
var o = this.tryEntries[r];
|
|
2222
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
2223
|
+
var i = o;
|
|
2605
2224
|
break;
|
|
2606
2225
|
}
|
|
2607
2226
|
}
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
type === "continue") &&
|
|
2612
|
-
finallyEntry.tryLoc <= arg &&
|
|
2613
|
-
arg <= finallyEntry.finallyLoc) {
|
|
2614
|
-
// Ignore the finally entry if control is not jumping to a
|
|
2615
|
-
// location outside the try/catch block.
|
|
2616
|
-
finallyEntry = null;
|
|
2617
|
-
}
|
|
2618
|
-
|
|
2619
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
2620
|
-
record.type = type;
|
|
2621
|
-
record.arg = arg;
|
|
2622
|
-
|
|
2623
|
-
if (finallyEntry) {
|
|
2624
|
-
this.method = "next";
|
|
2625
|
-
this.next = finallyEntry.finallyLoc;
|
|
2626
|
-
return ContinueSentinel;
|
|
2627
|
-
}
|
|
2628
|
-
|
|
2629
|
-
return this.complete(record);
|
|
2227
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
2228
|
+
var a = i ? i.completion : {};
|
|
2229
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
2630
2230
|
},
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
throw record.arg;
|
|
2635
|
-
}
|
|
2636
|
-
|
|
2637
|
-
if (record.type === "break" ||
|
|
2638
|
-
record.type === "continue") {
|
|
2639
|
-
this.next = record.arg;
|
|
2640
|
-
} else if (record.type === "return") {
|
|
2641
|
-
this.rval = this.arg = record.arg;
|
|
2642
|
-
this.method = "return";
|
|
2643
|
-
this.next = "end";
|
|
2644
|
-
} else if (record.type === "normal" && afterLoc) {
|
|
2645
|
-
this.next = afterLoc;
|
|
2646
|
-
}
|
|
2647
|
-
|
|
2648
|
-
return ContinueSentinel;
|
|
2231
|
+
complete: function complete(t, e) {
|
|
2232
|
+
if ("throw" === t.type) throw t.arg;
|
|
2233
|
+
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;
|
|
2649
2234
|
},
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
if (entry.finallyLoc === finallyLoc) {
|
|
2655
|
-
this.complete(entry.completion, entry.afterLoc);
|
|
2656
|
-
resetTryEntry(entry);
|
|
2657
|
-
return ContinueSentinel;
|
|
2658
|
-
}
|
|
2235
|
+
finish: function finish(t) {
|
|
2236
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
2237
|
+
var r = this.tryEntries[e];
|
|
2238
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
2659
2239
|
}
|
|
2660
2240
|
},
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
resetTryEntry(entry);
|
|
2241
|
+
"catch": function _catch(t) {
|
|
2242
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
2243
|
+
var r = this.tryEntries[e];
|
|
2244
|
+
if (r.tryLoc === t) {
|
|
2245
|
+
var n = r.completion;
|
|
2246
|
+
if ("throw" === n.type) {
|
|
2247
|
+
var o = n.arg;
|
|
2248
|
+
resetTryEntry(r);
|
|
2670
2249
|
}
|
|
2671
|
-
return
|
|
2250
|
+
return o;
|
|
2672
2251
|
}
|
|
2673
2252
|
}
|
|
2674
|
-
|
|
2675
|
-
// The context.catch method must only be called with a location
|
|
2676
|
-
// argument that corresponds to a known catch block.
|
|
2677
|
-
throw new Error("illegal catch attempt");
|
|
2253
|
+
throw Error("illegal catch attempt");
|
|
2678
2254
|
},
|
|
2255
|
+
delegateYield: function delegateYield(e, r, n) {
|
|
2256
|
+
return this.delegate = {
|
|
2257
|
+
iterator: values(e),
|
|
2258
|
+
resultName: r,
|
|
2259
|
+
nextLoc: n
|
|
2260
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
2261
|
+
}
|
|
2262
|
+
}, e;
|
|
2263
|
+
}
|
|
2264
|
+
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
2265
|
+
});
|
|
2679
2266
|
|
|
2680
|
-
|
|
2681
|
-
this.delegate = {
|
|
2682
|
-
iterator: values(iterable),
|
|
2683
|
-
resultName: resultName,
|
|
2684
|
-
nextLoc: nextLoc
|
|
2685
|
-
};
|
|
2686
|
-
|
|
2687
|
-
if (this.method === "next") {
|
|
2688
|
-
// Deliberately forget the last sent value so that we don't
|
|
2689
|
-
// accidentally pass it on to the delegate.
|
|
2690
|
-
this.arg = undefined$1;
|
|
2691
|
-
}
|
|
2692
|
-
|
|
2693
|
-
return ContinueSentinel;
|
|
2694
|
-
}
|
|
2695
|
-
};
|
|
2696
|
-
|
|
2697
|
-
// Regardless of whether this script is executing as a CommonJS module
|
|
2698
|
-
// or not, return the runtime object so that we can declare the variable
|
|
2699
|
-
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
2700
|
-
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
2701
|
-
return exports;
|
|
2267
|
+
// TODO(Babel 8): Remove this file.
|
|
2702
2268
|
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
2706
|
-
// object. Either way, the resulting object will be used to initialize
|
|
2707
|
-
// the regeneratorRuntime variable at the top of this file.
|
|
2708
|
-
module.exports
|
|
2709
|
-
));
|
|
2269
|
+
var runtime = regeneratorRuntime$1();
|
|
2270
|
+
var regenerator = runtime;
|
|
2710
2271
|
|
|
2272
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
2711
2273
|
try {
|
|
2712
2274
|
regeneratorRuntime = runtime;
|
|
2713
2275
|
} catch (accidentalStrictMode) {
|
|
2714
|
-
// This module should not be running in strict mode, so the above
|
|
2715
|
-
// assignment should always work unless something is misconfigured. Just
|
|
2716
|
-
// in case runtime.js accidentally runs in strict mode, in modern engines
|
|
2717
|
-
// we can explicitly access globalThis. In older engines we can escape
|
|
2718
|
-
// strict mode using a global Function call. This could conceivably fail
|
|
2719
|
-
// if a Content Security Policy forbids using Function, but in that case
|
|
2720
|
-
// the proper solution is to fix the accidental strict mode problem. If
|
|
2721
|
-
// you've misconfigured your bundler to force strict mode and applied a
|
|
2722
|
-
// CSP to forbid Function, and you're not willing to fix either of those
|
|
2723
|
-
// problems, please detail your unique predicament in a GitHub issue.
|
|
2724
2276
|
if (typeof globalThis === "object") {
|
|
2725
2277
|
globalThis.regeneratorRuntime = runtime;
|
|
2726
2278
|
} else {
|
|
2727
2279
|
Function("r", "regeneratorRuntime = r")(runtime);
|
|
2728
2280
|
}
|
|
2729
2281
|
}
|
|
2730
|
-
});
|
|
2731
|
-
|
|
2732
|
-
var regenerator = runtime_1;
|
|
2733
2282
|
|
|
2734
2283
|
var SPECIES$5 = wellKnownSymbol('species');
|
|
2735
2284
|
|
|
@@ -5005,14 +4554,14 @@
|
|
|
5005
4554
|
// `ToNumeric` abstract operation
|
|
5006
4555
|
// https://tc39.es/ecma262/#sec-tonumeric
|
|
5007
4556
|
var toNumeric = function (value) {
|
|
5008
|
-
var primValue = toPrimitive(value, 'number');
|
|
4557
|
+
var primValue = toPrimitive$1(value, 'number');
|
|
5009
4558
|
return typeof primValue == 'bigint' ? primValue : toNumber(primValue);
|
|
5010
4559
|
};
|
|
5011
4560
|
|
|
5012
4561
|
// `ToNumber` abstract operation
|
|
5013
4562
|
// https://tc39.es/ecma262/#sec-tonumber
|
|
5014
4563
|
var toNumber = function (argument) {
|
|
5015
|
-
var it = toPrimitive(argument, 'number');
|
|
4564
|
+
var it = toPrimitive$1(argument, 'number');
|
|
5016
4565
|
var first, third, radix, maxCode, digits, length, index, code;
|
|
5017
4566
|
if (isSymbol(it)) throw new TypeError$3('Cannot convert a Symbol value to a number');
|
|
5018
4567
|
if (typeof it == 'string' && it.length > 2) {
|