@cubejs-client/core 1.2.21 → 1.2.23

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(arr) {
1810
- if (Array.isArray(arr)) return arr;
1809
+ function _arrayWithHoles(r) {
1810
+ if (Array.isArray(r)) return r;
1811
1811
  }
1812
1812
 
1813
- function _iterableToArrayLimit(arr, i) {
1814
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
1815
-
1816
- if (_i == null) return;
1817
- var _arr = [];
1818
- var _n = true;
1819
- var _d = false;
1820
-
1821
- var _s, _e;
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 (!_n && _i["return"] != null) _i["return"]();
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
- if (_d) throw _e;
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(arr, len) {
1844
- if (len == null || len > arr.length) len = arr.length;
1845
-
1846
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
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(o, minLen) {
1854
- if (!o) return;
1855
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
1856
- var n = Object.prototype.toString.call(o).slice(8, -1);
1857
- if (n === "Object" && o.constructor) n = o.constructor.name;
1858
- if (n === "Map" || n === "Set") return Array.from(o);
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(arr, i) {
1867
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
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(obj) {
1863
+ function _typeof(o) {
1886
1864
  "@babel/helpers - typeof";
1887
1865
 
1888
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1889
- return typeof obj;
1890
- } : function (obj) {
1891
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1892
- }, _typeof(obj);
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 _classCallCheck(instance, Constructor) {
1896
- if (!(instance instanceof Constructor)) {
1897
- throw new TypeError("Cannot call a class as a function");
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 _defineProperties(target, props) {
1902
- for (var i = 0; i < props.length; i++) {
1903
- var descriptor = props[i];
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 _createClass(Constructor, protoProps, staticProps) {
1912
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
1913
- if (staticProps) _defineProperties(Constructor, staticProps);
1914
- Object.defineProperty(Constructor, "prototype", {
1915
- writable: false
1916
- });
1917
- return Constructor;
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 asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
1921
- try {
1922
- var info = gen[key](arg);
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
- if (info.done) {
1930
- resolve(value);
1931
- } else {
1932
- Promise.resolve(value).then(_next, _throw);
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 _asyncToGenerator(fn) {
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 self = this,
1939
- args = arguments;
1940
- return new Promise(function (resolve, reject) {
1941
- var gen = fn.apply(self, args);
1942
-
1943
- function _next(value) {
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
- function _throw(err) {
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
- * Copyright (c) 2014-present, Facebook, Inc.
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
- var Op = Object.prototype;
1967
- var hasOwn = Op.hasOwnProperty;
1968
- var undefined$1; // More compressible than void 0.
1969
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
1970
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
1971
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
1972
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
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
- function define(obj, key, value) {
1975
- Object.defineProperty(obj, key, {
1976
- value: value,
1977
- enumerable: true,
1978
- configurable: true,
1979
- writable: true
1980
- });
1981
- return obj[key];
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 (err) {
1987
- define = function(obj, key, value) {
1988
- return obj[key] = value;
1980
+ } catch (t) {
1981
+ define = function define(t, e, r) {
1982
+ return t[e] = r;
1989
1983
  };
1990
1984
  }
1991
-
1992
- function wrap(innerFn, outerFn, self, tryLocsList) {
1993
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
1994
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
1995
- var generator = Object.create(protoGenerator.prototype);
1996
- var context = new Context(tryLocsList || []);
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
- exports.wrap = wrap;
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 { type: "normal", arg: fn.call(obj, arg) };
2019
- } catch (err) {
2020
- return { type: "throw", arg: err };
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 GenStateSuspendedStart = "suspendedStart";
2025
- var GenStateSuspendedYield = "suspendedYield";
2026
- var GenStateExecuting = "executing";
2027
- var GenStateCompleted = "completed";
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
- // This is a polyfill for %IteratorPrototype% for environments that
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
- var getProto = Object.getPrototypeOf;
2049
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
2050
- if (NativeIteratorPrototype &&
2051
- NativeIteratorPrototype !== Op &&
2052
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
2053
- // This environment has a native %IteratorPrototype%; use it instead
2054
- // of the polyfill.
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
- exports.isGeneratorFunction = function(genFun) {
2080
- var ctor = typeof genFun === "function" && genFun.constructor;
2081
- return ctor
2082
- ? ctor === GeneratorFunction ||
2083
- // For the native GeneratorFunction constructor, the best we can
2084
- // do is to check its .name property.
2085
- (ctor.displayName || ctor.name) === "GeneratorFunction"
2086
- : false;
2087
- };
2088
-
2089
- exports.mark = function(genFun) {
2090
- if (Object.setPrototypeOf) {
2091
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
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
- var previousPromise;
2141
-
2142
- function enqueue(method, arg) {
2143
- function callInvokeWithMethodAndArg() {
2144
- return new PromiseImpl(function(resolve, reject) {
2145
- invoke(method, arg, resolve, reject);
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
- context.method = method;
2218
- context.arg = arg;
2219
-
2220
- while (true) {
2221
- var delegate = context.delegate;
2222
- if (delegate) {
2223
- var delegateResult = maybeInvokeDelegate(delegate, context);
2224
- if (delegateResult) {
2225
- if (delegateResult === ContinueSentinel) continue;
2226
- return delegateResult;
2227
- }
2228
- }
2229
-
2230
- if (context.method === "next") {
2231
- // Setting context._sent for legacy support of Babel's
2232
- // function.sent implementation.
2233
- context.sent = context._sent = context.arg;
2234
-
2235
- } else if (context.method === "throw") {
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
- state = GenStateExecuting;
2248
-
2249
- var record = tryCatch(innerFn, self, context);
2250
- if (record.type === "normal") {
2251
- // If an exception is thrown from innerFn, we leave state ===
2252
- // GenStateExecuting and loop back for another invocation.
2253
- state = context.done
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: record.arg,
2263
- done: context.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
- // Call delegate.iterator[context.method](context.arg) and handle the
2278
- // result, either by returning a { value, done } result from the
2279
- // delegate iterator, or by modifying context.method and context.arg,
2280
- // setting context.delegate to null, and returning the ContinueSentinel.
2281
- function maybeInvokeDelegate(delegate, context) {
2282
- var method = delegate.iterator[context.method];
2283
- if (method === undefined$1) {
2284
- // A .throw or .return when the delegate iterator has no .throw
2285
- // method always terminates the yield* loop.
2286
- context.delegate = null;
2287
-
2288
- if (context.method === "throw") {
2289
- // Note: ["return"] must be used for ES3 parsing compatibility.
2290
- if (delegate.iterator["return"]) {
2291
- // If the delegate iterator has a return method, give it a
2292
- // chance to clean up.
2293
- context.method = "return";
2294
- context.arg = undefined$1;
2295
- maybeInvokeDelegate(delegate, context);
2296
-
2297
- if (context.method === "throw") {
2298
- // If maybeInvokeDelegate(context) changed context.method from
2299
- // "return" to "throw", let that override the TypeError below.
2300
- return ContinueSentinel;
2301
- }
2302
- }
2303
-
2304
- context.method = "throw";
2305
- context.arg = new TypeError(
2306
- "The iterator does not provide a 'throw' method");
2307
- }
2308
-
2309
- return ContinueSentinel;
2310
- }
2311
-
2312
- var record = tryCatch(method, delegate.iterator, context.arg);
2313
-
2314
- if (record.type === "throw") {
2315
- context.method = "throw";
2316
- context.arg = record.arg;
2317
- context.delegate = null;
2318
- return ContinueSentinel;
2319
- }
2320
-
2321
- var info = record.arg;
2322
-
2323
- if (! info) {
2324
- context.method = "throw";
2325
- context.arg = new TypeError("iterator result is not an object");
2326
- context.delegate = null;
2327
- return ContinueSentinel;
2328
- }
2329
-
2330
- if (info.done) {
2331
- // Assign the result of the finished delegate to the temporary
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
- define(Gp, "toString", function() {
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
- function pushTryEntry(locs) {
2380
- var entry = { tryLoc: locs[0] };
2381
-
2382
- if (1 in locs) {
2383
- entry.catchLoc = locs[1];
2384
- }
2385
-
2386
- if (2 in locs) {
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
- reset: function(skipTempReset) {
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
- stop: function() {
2507
- this.done = true;
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
- dispatchException: function(exception) {
2519
- if (this.done) {
2520
- throw exception;
2521
- }
2522
-
2523
- var context = this;
2524
- function handle(loc, caught) {
2525
- record.type = "throw";
2526
- record.arg = exception;
2527
- context.next = loc;
2528
-
2529
- if (caught) {
2530
- // If the dispatched exception was caught by a catch block,
2531
- // then let that catch block handle the exception normally.
2532
- context.method = "next";
2533
- context.arg = undefined$1;
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 new Error("try statement without catch or finally");
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
- abrupt: function(type, arg) {
2579
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2580
- var entry = this.tryEntries[i];
2581
- if (entry.tryLoc <= this.prev &&
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
- if (finallyEntry &&
2590
- (type === "break" ||
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
- complete: function(record, afterLoc) {
2613
- if (record.type === "throw") {
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
- finish: function(finallyLoc) {
2632
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2633
- var entry = this.tryEntries[i];
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
- "catch": function(tryLoc) {
2643
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2644
- var entry = this.tryEntries[i];
2645
- if (entry.tryLoc === tryLoc) {
2646
- var record = entry.completion;
2647
- if (record.type === "throw") {
2648
- var thrown = record.arg;
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 thrown;
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
- delegateYield: function(iterable, resultName, nextLoc) {
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
- // If this script is executing as a CommonJS module, use module.exports
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(source, excluded) {
4022
- if (source == null) return {};
4023
- var target = {};
4024
- var sourceKeys = Object.keys(source);
4025
- var key, i;
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(source, excluded) {
4037
- if (source == null) return {};
4038
- var target = _objectWithoutPropertiesLoose(source, excluded);
4039
- var key, i;
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 sourceSymbolKeys = Object.getOwnPropertySymbols(source);
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(arr) {
4056
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
3604
+ function _arrayWithoutHoles(r) {
3605
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
4057
3606
  }
4058
3607
 
4059
- function _iterableToArray(iter) {
4060
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
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(arr) {
4068
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
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(o, p) {
11812
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
11813
- o.__proto__ = p;
11814
- return o;
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(subClass, superClass) {
11821
- if (typeof superClass !== "function" && superClass !== null) {
11822
- throw new TypeError("Super expression must either be null or a function");
11823
- }
11824
-
11825
- Object.defineProperty(subClass, "prototype", {
11826
- value: Object.create(superClass && superClass.prototype, {
11827
- constructor: {
11828
- value: subClass,
11829
- writable: true,
11830
- configurable: true
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(self) {
11839
- if (self === void 0) {
11840
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
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(self, call) {
11847
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
11848
- return call;
11849
- } else if (call !== void 0) {
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(o) {
11857
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
11858
- return o.__proto__ || Object.getPrototypeOf(o);
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(fn) {
11864
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
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
- return true;
11875
- } catch (e) {
11876
- return false;
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(Parent, args, Class) {
11881
- if (_isNativeReflectConstruct$1()) {
11882
- _construct = Reflect.construct;
11883
- } else {
11884
- _construct = function _construct(Parent, args, Class) {
11885
- var a = [null];
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(Class) {
11898
- var _cache = typeof Map === "function" ? new Map() : undefined;
11899
-
11900
- _wrapNativeSuper = function _wrapNativeSuper(Class) {
11901
- if (Class === null || !_isNativeFunction(Class)) return Class;
11902
-
11903
- if (typeof Class !== "function") {
11904
- throw new TypeError("Super expression must either be null or a function");
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(Class, arguments, _getPrototypeOf(this).constructor);
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: false,
11921
- writable: true,
11922
- configurable: true
11436
+ enumerable: !1,
11437
+ writable: !0,
11438
+ configurable: !0
11923
11439
  }
11924
- });
11925
- return _setPrototypeOf(Wrapper, Class);
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); }; }