@mjhls/mjh-framework 1.0.1082 → 1.0.1083

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.
Files changed (178) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD300x250.js +1 -1
  3. package/dist/cjs/AD300x250x600.js +1 -1
  4. package/dist/cjs/AD728x90.js +1 -1
  5. package/dist/cjs/ADFloatingFooter.js +1 -1
  6. package/dist/cjs/ADGutter.js +1 -1
  7. package/dist/cjs/{ADInfeed-98ee4120.js → ADInfeed-2530b9b0.js} +1 -1
  8. package/dist/cjs/ADSkyscraper.js +1 -1
  9. package/dist/cjs/ADSponsoredResources.js +1 -1
  10. package/dist/cjs/ADWebcast.js +1 -1
  11. package/dist/cjs/ADWelcome.js +1 -1
  12. package/dist/cjs/{ADlgInfeed-55df7d69.js → ADlgInfeed-df49ed95.js} +1 -1
  13. package/dist/cjs/AdSlot.js +1 -1
  14. package/dist/cjs/AdSlotsProvider.js +1 -1
  15. package/dist/cjs/AlgoliaSearch.js +532 -248
  16. package/dist/cjs/ArticleCarousel.js +1 -1
  17. package/dist/cjs/ArticleProgramLandingPage.js +4 -4
  18. package/dist/cjs/ArticleSeriesLandingPage.js +4 -4
  19. package/dist/cjs/ArticleSeriesListing.js +2 -2
  20. package/dist/cjs/AuthWrapper.js +266 -642
  21. package/dist/cjs/CEDeckSupabase.js +2 -6
  22. package/dist/cjs/CMEDeck.js +2 -6
  23. package/dist/cjs/Column3.js +1 -1
  24. package/dist/cjs/ConferenceArticleCard.js +1 -1
  25. package/dist/cjs/ContentCardPaginated.js +3 -3
  26. package/dist/cjs/DeckContent.js +3 -3
  27. package/dist/cjs/DeckQueue.js +2 -2
  28. package/dist/cjs/DeckQueuePaginated.js +2 -2
  29. package/dist/cjs/EventsDeck.js +3 -3
  30. package/dist/cjs/ExternalResources.js +5 -5
  31. package/dist/cjs/Feature.js +1 -1
  32. package/dist/cjs/ForbesHero.js +1 -1
  33. package/dist/cjs/GridContent.js +4 -4
  34. package/dist/cjs/GridContentPaginated.js +4 -4
  35. package/dist/cjs/GridHero.js +1 -1
  36. package/dist/cjs/HamMagazine.js +2 -2
  37. package/dist/cjs/HighlightenVideo.js +1 -1
  38. package/dist/cjs/HorizontalArticleListing.js +4 -4
  39. package/dist/cjs/HorizontalHero.js +1 -1
  40. package/dist/cjs/{ImageSlider-984a697b.js → ImageSlider-d65bc9c8.js} +156 -116
  41. package/dist/cjs/IssueContentDeck.js +1 -1
  42. package/dist/cjs/IssueLanding.js +6 -6
  43. package/dist/cjs/LeftNav.js +1 -1
  44. package/dist/cjs/MasterDeck.js +4 -4
  45. package/dist/cjs/MasterDeckPaginated.js +3 -3
  46. package/dist/cjs/MediaSeriesCard.js +4 -4
  47. package/dist/cjs/MediaSeriesLanding.js +9 -9
  48. package/dist/cjs/MediaSeriesLandingPaginated.js +9 -9
  49. package/dist/cjs/NavMagazine.js +2 -2
  50. package/dist/cjs/NavNative.js +1 -1
  51. package/dist/cjs/OncliveHero.js +1 -1
  52. package/dist/cjs/OncliveLargeHero.js +1 -1
  53. package/dist/cjs/PartnerDetailListing.js +7 -8
  54. package/dist/cjs/PartnerDetailListingPaginated.js +7 -8
  55. package/dist/cjs/PodcastsLanding.js +7 -7
  56. package/dist/cjs/PtceDeck.js +1 -1
  57. package/dist/cjs/PubSection.js +4 -4
  58. package/dist/cjs/QueueDeckExpanded.js +4 -4
  59. package/dist/cjs/QueueDeckExpandedPaginated.js +4 -4
  60. package/dist/cjs/RelatedContent.js +1 -1
  61. package/dist/cjs/SeriesListingDeck.js +2 -2
  62. package/dist/cjs/{SeriesSlider-086a8319.js → SeriesSlider-a8b51591.js} +1 -1
  63. package/dist/cjs/{SocialSearchComponent-d7e5d3a6.js → SocialSearchComponent-9d272141.js} +1 -1
  64. package/dist/cjs/TaxonomyDescription.js +4 -4
  65. package/dist/cjs/TemplateNormal.js +2 -2
  66. package/dist/cjs/{Tooltip-96fe6ef6.js → Tooltip-66c1a867.js} +159 -85
  67. package/dist/cjs/Ustream.js +1 -1
  68. package/dist/cjs/VerticalHero.js +1 -1
  69. package/dist/cjs/VideoProgramLandingPage.js +4 -4
  70. package/dist/cjs/VideoSeriesCard.js +1 -1
  71. package/dist/cjs/VideoSeriesLandingPage.js +4 -4
  72. package/dist/cjs/VideoSeriesListing.js +2 -2
  73. package/dist/cjs/View.js +30 -16
  74. package/dist/cjs/YahooHero.js +1 -1
  75. package/dist/cjs/YoutubeGroup.js +1 -1
  76. package/dist/cjs/{brightcove-react-player-loader.es-4c7825a1.js → brightcove-react-player-loader.es-35faab67.js} +3 -3
  77. package/dist/cjs/getRelatedArticle.js +33 -15
  78. package/dist/cjs/getSerializers.js +4 -4
  79. package/dist/cjs/{index-4fdedd6a.js → index-1d905301.js} +234 -15
  80. package/dist/cjs/index-4d21663c.js +1573 -0
  81. package/dist/cjs/{index-50be6759.js → index-9ec837cc.js} +9 -25
  82. package/dist/cjs/index.js +11 -13
  83. package/dist/cjs/{main-ae8472f3.js → main-812888f1.js} +1 -1
  84. package/dist/cjs/{moment-aca40de1.js → moment-f730814d.js} +95 -80
  85. package/dist/cjs/timeDifferenceCalc.js +1 -1
  86. package/dist/esm/AD300x250.js +1 -1
  87. package/dist/esm/AD300x250x600.js +1 -1
  88. package/dist/esm/AD728x90.js +1 -1
  89. package/dist/esm/ADFloatingFooter.js +1 -1
  90. package/dist/esm/ADGutter.js +1 -1
  91. package/dist/esm/{ADInfeed-41bba2c6.js → ADInfeed-92953c60.js} +1 -1
  92. package/dist/esm/ADSkyscraper.js +1 -1
  93. package/dist/esm/ADSponsoredResources.js +1 -1
  94. package/dist/esm/ADWebcast.js +1 -1
  95. package/dist/esm/ADWelcome.js +1 -1
  96. package/dist/esm/{ADlgInfeed-3c717ece.js → ADlgInfeed-338ff48c.js} +1 -1
  97. package/dist/esm/AdSlot.js +1 -1
  98. package/dist/esm/AdSlotsProvider.js +1 -1
  99. package/dist/esm/AlgoliaSearch.js +531 -247
  100. package/dist/esm/ArticleCarousel.js +1 -1
  101. package/dist/esm/ArticleProgramLandingPage.js +4 -4
  102. package/dist/esm/ArticleSeriesLandingPage.js +4 -4
  103. package/dist/esm/ArticleSeriesListing.js +2 -2
  104. package/dist/esm/AuthWrapper.js +263 -639
  105. package/dist/esm/CEDeckSupabase.js +2 -6
  106. package/dist/esm/CMEDeck.js +2 -6
  107. package/dist/esm/Column3.js +1 -1
  108. package/dist/esm/ConferenceArticleCard.js +1 -1
  109. package/dist/esm/ContentCardPaginated.js +3 -3
  110. package/dist/esm/DeckContent.js +3 -3
  111. package/dist/esm/DeckQueue.js +2 -2
  112. package/dist/esm/DeckQueuePaginated.js +2 -2
  113. package/dist/esm/EventsDeck.js +3 -3
  114. package/dist/esm/ExternalResources.js +5 -5
  115. package/dist/esm/Feature.js +1 -1
  116. package/dist/esm/ForbesHero.js +1 -1
  117. package/dist/esm/GridContent.js +4 -4
  118. package/dist/esm/GridContentPaginated.js +4 -4
  119. package/dist/esm/GridHero.js +1 -1
  120. package/dist/esm/HamMagazine.js +2 -2
  121. package/dist/esm/HighlightenVideo.js +1 -1
  122. package/dist/esm/HorizontalArticleListing.js +4 -4
  123. package/dist/esm/HorizontalHero.js +1 -1
  124. package/dist/esm/{ImageSlider-9250ddc9.js → ImageSlider-801685f8.js} +157 -117
  125. package/dist/esm/IssueContentDeck.js +1 -1
  126. package/dist/esm/IssueLanding.js +6 -6
  127. package/dist/esm/LeftNav.js +1 -1
  128. package/dist/esm/MasterDeck.js +4 -4
  129. package/dist/esm/MasterDeckPaginated.js +3 -3
  130. package/dist/esm/MediaSeriesCard.js +4 -4
  131. package/dist/esm/MediaSeriesLanding.js +9 -9
  132. package/dist/esm/MediaSeriesLandingPaginated.js +9 -9
  133. package/dist/esm/NavMagazine.js +2 -2
  134. package/dist/esm/NavNative.js +1 -1
  135. package/dist/esm/OncliveHero.js +1 -1
  136. package/dist/esm/OncliveLargeHero.js +1 -1
  137. package/dist/esm/Pagination-9fe9f61d.js +1 -1
  138. package/dist/esm/PartnerDetailListing.js +7 -8
  139. package/dist/esm/PartnerDetailListingPaginated.js +7 -8
  140. package/dist/esm/PodcastsLanding.js +7 -7
  141. package/dist/esm/PtceDeck.js +1 -1
  142. package/dist/esm/PubSection.js +4 -4
  143. package/dist/esm/QueueDeckExpanded.js +4 -4
  144. package/dist/esm/QueueDeckExpandedPaginated.js +4 -4
  145. package/dist/esm/RelatedContent.js +1 -1
  146. package/dist/esm/SeriesListingDeck.js +2 -2
  147. package/dist/esm/{SeriesSlider-acbdf4c9.js → SeriesSlider-5757414b.js} +1 -1
  148. package/dist/esm/{SocialSearchComponent-9e65c8d6.js → SocialSearchComponent-98bfc990.js} +1 -1
  149. package/dist/esm/TaxonomyDescription.js +4 -4
  150. package/dist/esm/TemplateNormal.js +2 -2
  151. package/dist/esm/{Tooltip-bc98d17e.js → Tooltip-0b3b4558.js} +318 -244
  152. package/dist/esm/Ustream.js +1 -1
  153. package/dist/esm/VerticalHero.js +1 -1
  154. package/dist/esm/VideoProgramLandingPage.js +4 -4
  155. package/dist/esm/VideoSeriesCard.js +1 -1
  156. package/dist/esm/VideoSeriesLandingPage.js +4 -4
  157. package/dist/esm/VideoSeriesListing.js +2 -2
  158. package/dist/esm/View.js +30 -16
  159. package/dist/esm/YahooHero.js +1 -1
  160. package/dist/esm/YoutubeGroup.js +1 -1
  161. package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-a2422c4b.js} +3 -3
  162. package/dist/esm/getRelatedArticle.js +34 -16
  163. package/dist/esm/getSerializers.js +4 -4
  164. package/dist/esm/{index-98ca9cec.js → index-0ce54f8a.js} +10 -25
  165. package/dist/esm/{index-de2bb37c.js → index-517a7573.js} +234 -15
  166. package/dist/esm/index-887c1f5e.js +1571 -0
  167. package/dist/esm/index.js +11 -13
  168. package/dist/esm/{main-754d4992.js → main-dde1592e.js} +1 -1
  169. package/dist/esm/{moment-bc12cb97.js → moment-48faeb9c.js} +95 -80
  170. package/dist/esm/timeDifferenceCalc.js +1 -1
  171. package/dist/esm/visibility-sensor-72fd8f8b.js +1 -1
  172. package/package.json +1 -1
  173. package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
  174. package/dist/cjs/index-96c331fd.js +0 -1572
  175. package/dist/cjs/typeof-1358762e.js +0 -33
  176. package/dist/esm/defineProperty-23a8f8cd.js +0 -68
  177. package/dist/esm/index-30a6257d.js +0 -1570
  178. package/dist/esm/typeof-2f07d0e8.js +0 -30
@@ -1,7 +1,5 @@
1
1
  import { _ as _slicedToArray } from './slicedToArray-72ed566b.js';
2
2
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
3
- import { a as _typeof_1 } from './typeof-2f07d0e8.js';
4
- import { d as defineProperty, b as asyncToGenerator } from './defineProperty-23a8f8cd.js';
5
3
  import React__default, { useState, useEffect } from 'react';
6
4
  import { Form } from 'react-bootstrap';
7
5
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
@@ -14,278 +12,137 @@ function _interopRequireDefault(obj) {
14
12
  "default": obj
15
13
  };
16
14
  }
17
-
18
- module.exports = _interopRequireDefault;
19
- module.exports["default"] = module.exports, module.exports.__esModule = true;
15
+ module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
20
16
  });
21
17
 
22
18
  unwrapExports(interopRequireDefault);
23
19
 
24
- var runtime_1 = createCommonjsModule(function (module) {
25
- /**
26
- * Copyright (c) 2014-present, Facebook, Inc.
27
- *
28
- * This source code is licensed under the MIT license found in the
29
- * LICENSE file in the root directory of this source tree.
30
- */
31
-
32
- var runtime = (function (exports) {
20
+ var _typeof_1 = createCommonjsModule(function (module) {
21
+ function _typeof(obj) {
22
+ "@babel/helpers - typeof";
33
23
 
34
- var Op = Object.prototype;
35
- var hasOwn = Op.hasOwnProperty;
36
- var undefined$1; // More compressible than void 0.
37
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
38
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
39
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
40
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
24
+ return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
25
+ return typeof obj;
26
+ } : function (obj) {
27
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
28
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
29
+ }
30
+ module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
31
+ });
41
32
 
33
+ unwrapExports(_typeof_1);
34
+
35
+ var regeneratorRuntime$1 = createCommonjsModule(function (module) {
36
+ var _typeof = _typeof_1["default"];
37
+ function _regeneratorRuntime() {
38
+ module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
39
+ return exports;
40
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
41
+ var exports = {},
42
+ Op = Object.prototype,
43
+ hasOwn = Op.hasOwnProperty,
44
+ defineProperty = Object.defineProperty || function (obj, key, desc) {
45
+ obj[key] = desc.value;
46
+ },
47
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
48
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
49
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
50
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
42
51
  function define(obj, key, value) {
43
- Object.defineProperty(obj, key, {
52
+ return Object.defineProperty(obj, key, {
44
53
  value: value,
45
- enumerable: true,
46
- configurable: true,
47
- writable: true
48
- });
49
- return obj[key];
54
+ enumerable: !0,
55
+ configurable: !0,
56
+ writable: !0
57
+ }), obj[key];
50
58
  }
51
59
  try {
52
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
53
60
  define({}, "");
54
61
  } catch (err) {
55
- define = function(obj, key, value) {
62
+ define = function define(obj, key, value) {
56
63
  return obj[key] = value;
57
64
  };
58
65
  }
59
-
60
66
  function wrap(innerFn, outerFn, self, tryLocsList) {
61
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
62
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
63
- var generator = Object.create(protoGenerator.prototype);
64
- var context = new Context(tryLocsList || []);
65
-
66
- // The ._invoke method unifies the implementations of the .next,
67
- // .throw, and .return methods.
68
- generator._invoke = makeInvokeMethod(innerFn, self, context);
69
-
70
- return generator;
67
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
68
+ generator = Object.create(protoGenerator.prototype),
69
+ context = new Context(tryLocsList || []);
70
+ return defineProperty(generator, "_invoke", {
71
+ value: makeInvokeMethod(innerFn, self, context)
72
+ }), generator;
71
73
  }
72
- exports.wrap = wrap;
73
-
74
- // Try/catch helper to minimize deoptimizations. Returns a completion
75
- // record like context.tryEntries[i].completion. This interface could
76
- // have been (and was previously) designed to take a closure to be
77
- // invoked without arguments, but in all the cases we care about we
78
- // already have an existing method we want to call, so there's no need
79
- // to create a new function object. We can even get away with assuming
80
- // the method takes exactly one argument, since that happens to be true
81
- // in every case, so we don't have to touch the arguments object. The
82
- // only additional allocation required is the completion record, which
83
- // has a stable shape and so hopefully should be cheap to allocate.
84
74
  function tryCatch(fn, obj, arg) {
85
75
  try {
86
- return { type: "normal", arg: fn.call(obj, arg) };
76
+ return {
77
+ type: "normal",
78
+ arg: fn.call(obj, arg)
79
+ };
87
80
  } catch (err) {
88
- return { type: "throw", arg: err };
81
+ return {
82
+ type: "throw",
83
+ arg: err
84
+ };
89
85
  }
90
86
  }
91
-
92
- var GenStateSuspendedStart = "suspendedStart";
93
- var GenStateSuspendedYield = "suspendedYield";
94
- var GenStateExecuting = "executing";
95
- var GenStateCompleted = "completed";
96
-
97
- // Returning this object from the innerFn has the same effect as
98
- // breaking out of the dispatch switch statement.
87
+ exports.wrap = wrap;
99
88
  var ContinueSentinel = {};
100
-
101
- // Dummy constructor functions that we use as the .constructor and
102
- // .constructor.prototype properties for functions that return Generator
103
- // objects. For full spec compliance, you may wish to configure your
104
- // minifier not to mangle the names of these two functions.
105
89
  function Generator() {}
106
90
  function GeneratorFunction() {}
107
91
  function GeneratorFunctionPrototype() {}
108
-
109
- // This is a polyfill for %IteratorPrototype% for environments that
110
- // don't natively support it.
111
92
  var IteratorPrototype = {};
112
93
  define(IteratorPrototype, iteratorSymbol, function () {
113
94
  return this;
114
95
  });
115
-
116
- var getProto = Object.getPrototypeOf;
117
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
118
- if (NativeIteratorPrototype &&
119
- NativeIteratorPrototype !== Op &&
120
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
121
- // This environment has a native %IteratorPrototype%; use it instead
122
- // of the polyfill.
123
- IteratorPrototype = NativeIteratorPrototype;
124
- }
125
-
126
- var Gp = GeneratorFunctionPrototype.prototype =
127
- Generator.prototype = Object.create(IteratorPrototype);
128
- GeneratorFunction.prototype = GeneratorFunctionPrototype;
129
- define(Gp, "constructor", GeneratorFunctionPrototype);
130
- define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
131
- GeneratorFunction.displayName = define(
132
- GeneratorFunctionPrototype,
133
- toStringTagSymbol,
134
- "GeneratorFunction"
135
- );
136
-
137
- // Helper for defining the .next, .throw, and .return methods of the
138
- // Iterator interface in terms of a single ._invoke method.
96
+ var getProto = Object.getPrototypeOf,
97
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
98
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
99
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
139
100
  function defineIteratorMethods(prototype) {
140
- ["next", "throw", "return"].forEach(function(method) {
141
- define(prototype, method, function(arg) {
101
+ ["next", "throw", "return"].forEach(function (method) {
102
+ define(prototype, method, function (arg) {
142
103
  return this._invoke(method, arg);
143
104
  });
144
105
  });
145
106
  }
146
-
147
- exports.isGeneratorFunction = function(genFun) {
148
- var ctor = typeof genFun === "function" && genFun.constructor;
149
- return ctor
150
- ? ctor === GeneratorFunction ||
151
- // For the native GeneratorFunction constructor, the best we can
152
- // do is to check its .name property.
153
- (ctor.displayName || ctor.name) === "GeneratorFunction"
154
- : false;
155
- };
156
-
157
- exports.mark = function(genFun) {
158
- if (Object.setPrototypeOf) {
159
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
160
- } else {
161
- genFun.__proto__ = GeneratorFunctionPrototype;
162
- define(genFun, toStringTagSymbol, "GeneratorFunction");
163
- }
164
- genFun.prototype = Object.create(Gp);
165
- return genFun;
166
- };
167
-
168
- // Within the body of any async function, `await x` is transformed to
169
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
170
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
171
- // meant to be awaited.
172
- exports.awrap = function(arg) {
173
- return { __await: arg };
174
- };
175
-
176
107
  function AsyncIterator(generator, PromiseImpl) {
177
108
  function invoke(method, arg, resolve, reject) {
178
109
  var record = tryCatch(generator[method], generator, arg);
179
- if (record.type === "throw") {
180
- reject(record.arg);
181
- } else {
182
- var result = record.arg;
183
- var value = result.value;
184
- if (value &&
185
- typeof value === "object" &&
186
- hasOwn.call(value, "__await")) {
187
- return PromiseImpl.resolve(value.__await).then(function(value) {
188
- invoke("next", value, resolve, reject);
189
- }, function(err) {
190
- invoke("throw", err, resolve, reject);
191
- });
192
- }
193
-
194
- return PromiseImpl.resolve(value).then(function(unwrapped) {
195
- // When a yielded Promise is resolved, its final value becomes
196
- // the .value of the Promise<{value,done}> result for the
197
- // current iteration.
198
- result.value = unwrapped;
199
- resolve(result);
200
- }, function(error) {
201
- // If a rejected Promise was yielded, throw the rejection back
202
- // into the async generator function so it can be handled there.
110
+ if ("throw" !== record.type) {
111
+ var result = record.arg,
112
+ value = result.value;
113
+ return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
114
+ invoke("next", value, resolve, reject);
115
+ }, function (err) {
116
+ invoke("throw", err, resolve, reject);
117
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
118
+ result.value = unwrapped, resolve(result);
119
+ }, function (error) {
203
120
  return invoke("throw", error, resolve, reject);
204
121
  });
205
122
  }
123
+ reject(record.arg);
206
124
  }
207
-
208
125
  var previousPromise;
209
-
210
- function enqueue(method, arg) {
211
- function callInvokeWithMethodAndArg() {
212
- return new PromiseImpl(function(resolve, reject) {
213
- invoke(method, arg, resolve, reject);
214
- });
126
+ defineProperty(this, "_invoke", {
127
+ value: function value(method, arg) {
128
+ function callInvokeWithMethodAndArg() {
129
+ return new PromiseImpl(function (resolve, reject) {
130
+ invoke(method, arg, resolve, reject);
131
+ });
132
+ }
133
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
215
134
  }
216
-
217
- return previousPromise =
218
- // If enqueue has been called before, then we want to wait until
219
- // all previous Promises have been resolved before calling invoke,
220
- // so that results are always delivered in the correct order. If
221
- // enqueue has not been called before, then it is important to
222
- // call invoke immediately, without waiting on a callback to fire,
223
- // so that the async generator function has the opportunity to do
224
- // any necessary setup in a predictable way. This predictability
225
- // is why the Promise constructor synchronously invokes its
226
- // executor callback, and why async functions synchronously
227
- // execute code before the first await. Since we implement simple
228
- // async functions in terms of async generators, it is especially
229
- // important to get this right, even though it requires care.
230
- previousPromise ? previousPromise.then(
231
- callInvokeWithMethodAndArg,
232
- // Avoid propagating failures to Promises returned by later
233
- // invocations of the iterator.
234
- callInvokeWithMethodAndArg
235
- ) : callInvokeWithMethodAndArg();
236
- }
237
-
238
- // Define the unified helper method that is used to implement .next,
239
- // .throw, and .return (see defineIteratorMethods).
240
- this._invoke = enqueue;
135
+ });
241
136
  }
242
-
243
- defineIteratorMethods(AsyncIterator.prototype);
244
- define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
245
- return this;
246
- });
247
- exports.AsyncIterator = AsyncIterator;
248
-
249
- // Note that simple async functions are implemented on top of
250
- // AsyncIterator objects; they just return a Promise for the value of
251
- // the final result produced by the iterator.
252
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
253
- if (PromiseImpl === void 0) PromiseImpl = Promise;
254
-
255
- var iter = new AsyncIterator(
256
- wrap(innerFn, outerFn, self, tryLocsList),
257
- PromiseImpl
258
- );
259
-
260
- return exports.isGeneratorFunction(outerFn)
261
- ? iter // If outerFn is a generator, return the full iterator.
262
- : iter.next().then(function(result) {
263
- return result.done ? result.value : iter.next();
264
- });
265
- };
266
-
267
137
  function makeInvokeMethod(innerFn, self, context) {
268
- var state = GenStateSuspendedStart;
269
-
270
- return function invoke(method, arg) {
271
- if (state === GenStateExecuting) {
272
- throw new Error("Generator is already running");
273
- }
274
-
275
- if (state === GenStateCompleted) {
276
- if (method === "throw") {
277
- throw arg;
278
- }
279
-
280
- // Be forgiving, per 25.3.3.3.3 of the spec:
281
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
138
+ var state = "suspendedStart";
139
+ return function (method, arg) {
140
+ if ("executing" === state) throw new Error("Generator is already running");
141
+ if ("completed" === state) {
142
+ if ("throw" === method) throw arg;
282
143
  return doneResult();
283
144
  }
284
-
285
- context.method = method;
286
- context.arg = arg;
287
-
288
- while (true) {
145
+ for (context.method = method, context.arg = arg;;) {
289
146
  var delegate = context.delegate;
290
147
  if (delegate) {
291
148
  var delegateResult = maybeInvokeDelegate(delegate, context);
@@ -294,498 +151,282 @@ var runtime = (function (exports) {
294
151
  return delegateResult;
295
152
  }
296
153
  }
297
-
298
- if (context.method === "next") {
299
- // Setting context._sent for legacy support of Babel's
300
- // function.sent implementation.
301
- context.sent = context._sent = context.arg;
302
-
303
- } else if (context.method === "throw") {
304
- if (state === GenStateSuspendedStart) {
305
- state = GenStateCompleted;
306
- throw context.arg;
307
- }
308
-
154
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
155
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
309
156
  context.dispatchException(context.arg);
310
-
311
- } else if (context.method === "return") {
312
- context.abrupt("return", context.arg);
313
- }
314
-
315
- state = GenStateExecuting;
316
-
157
+ } else "return" === context.method && context.abrupt("return", context.arg);
158
+ state = "executing";
317
159
  var record = tryCatch(innerFn, self, context);
318
- if (record.type === "normal") {
319
- // If an exception is thrown from innerFn, we leave state ===
320
- // GenStateExecuting and loop back for another invocation.
321
- state = context.done
322
- ? GenStateCompleted
323
- : GenStateSuspendedYield;
324
-
325
- if (record.arg === ContinueSentinel) {
326
- continue;
327
- }
328
-
160
+ if ("normal" === record.type) {
161
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
329
162
  return {
330
163
  value: record.arg,
331
164
  done: context.done
332
165
  };
333
-
334
- } else if (record.type === "throw") {
335
- state = GenStateCompleted;
336
- // Dispatch the exception by looping back around to the
337
- // context.dispatchException(context.arg) call above.
338
- context.method = "throw";
339
- context.arg = record.arg;
340
166
  }
167
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
341
168
  }
342
169
  };
343
170
  }
344
-
345
- // Call delegate.iterator[context.method](context.arg) and handle the
346
- // result, either by returning a { value, done } result from the
347
- // delegate iterator, or by modifying context.method and context.arg,
348
- // setting context.delegate to null, and returning the ContinueSentinel.
349
171
  function maybeInvokeDelegate(delegate, context) {
350
172
  var method = delegate.iterator[context.method];
351
- if (method === undefined$1) {
352
- // A .throw or .return when the delegate iterator has no .throw
353
- // method always terminates the yield* loop.
354
- context.delegate = null;
355
-
356
- if (context.method === "throw") {
357
- // Note: ["return"] must be used for ES3 parsing compatibility.
358
- if (delegate.iterator["return"]) {
359
- // If the delegate iterator has a return method, give it a
360
- // chance to clean up.
361
- context.method = "return";
362
- context.arg = undefined$1;
363
- maybeInvokeDelegate(delegate, context);
364
-
365
- if (context.method === "throw") {
366
- // If maybeInvokeDelegate(context) changed context.method from
367
- // "return" to "throw", let that override the TypeError below.
368
- return ContinueSentinel;
369
- }
370
- }
371
-
372
- context.method = "throw";
373
- context.arg = new TypeError(
374
- "The iterator does not provide a 'throw' method");
173
+ if (undefined === method) {
174
+ if (context.delegate = null, "throw" === context.method) {
175
+ if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
176
+ context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
375
177
  }
376
-
377
178
  return ContinueSentinel;
378
179
  }
379
-
380
180
  var record = tryCatch(method, delegate.iterator, context.arg);
381
-
382
- if (record.type === "throw") {
383
- context.method = "throw";
384
- context.arg = record.arg;
385
- context.delegate = null;
386
- return ContinueSentinel;
387
- }
388
-
181
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
389
182
  var info = record.arg;
390
-
391
- if (! info) {
392
- context.method = "throw";
393
- context.arg = new TypeError("iterator result is not an object");
394
- context.delegate = null;
395
- return ContinueSentinel;
396
- }
397
-
398
- if (info.done) {
399
- // Assign the result of the finished delegate to the temporary
400
- // variable specified by delegate.resultName (see delegateYield).
401
- context[delegate.resultName] = info.value;
402
-
403
- // Resume execution at the desired location (see delegateYield).
404
- context.next = delegate.nextLoc;
405
-
406
- // If context.method was "throw" but the delegate handled the
407
- // exception, let the outer generator proceed normally. If
408
- // context.method was "next", forget context.arg since it has been
409
- // "consumed" by the delegate iterator. If context.method was
410
- // "return", allow the original .return call to continue in the
411
- // outer generator.
412
- if (context.method !== "return") {
413
- context.method = "next";
414
- context.arg = undefined$1;
415
- }
416
-
417
- } else {
418
- // Re-yield the result returned by the delegate method.
419
- return info;
420
- }
421
-
422
- // The delegate iterator is finished, so forget it and continue with
423
- // the outer generator.
424
- context.delegate = null;
425
- return ContinueSentinel;
183
+ return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
426
184
  }
427
-
428
- // Define Generator.prototype.{next,throw,return} in terms of the
429
- // unified ._invoke helper method.
430
- defineIteratorMethods(Gp);
431
-
432
- define(Gp, toStringTagSymbol, "Generator");
433
-
434
- // A Generator should always return itself as the iterator object when the
435
- // @@iterator function is called on it. Some browsers' implementations of the
436
- // iterator prototype chain incorrectly implement this, causing the Generator
437
- // object to not be returned from this call. This ensures that doesn't happen.
438
- // See https://github.com/facebook/regenerator/issues/274 for more details.
439
- define(Gp, iteratorSymbol, function() {
440
- return this;
441
- });
442
-
443
- define(Gp, "toString", function() {
444
- return "[object Generator]";
445
- });
446
-
447
185
  function pushTryEntry(locs) {
448
- var entry = { tryLoc: locs[0] };
449
-
450
- if (1 in locs) {
451
- entry.catchLoc = locs[1];
452
- }
453
-
454
- if (2 in locs) {
455
- entry.finallyLoc = locs[2];
456
- entry.afterLoc = locs[3];
457
- }
458
-
459
- this.tryEntries.push(entry);
186
+ var entry = {
187
+ tryLoc: locs[0]
188
+ };
189
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
460
190
  }
461
-
462
191
  function resetTryEntry(entry) {
463
192
  var record = entry.completion || {};
464
- record.type = "normal";
465
- delete record.arg;
466
- entry.completion = record;
193
+ record.type = "normal", delete record.arg, entry.completion = record;
467
194
  }
468
-
469
195
  function Context(tryLocsList) {
470
- // The root entry object (effectively a try statement without a catch
471
- // or a finally block) gives us a place to store values thrown from
472
- // locations where there is no enclosing try statement.
473
- this.tryEntries = [{ tryLoc: "root" }];
474
- tryLocsList.forEach(pushTryEntry, this);
475
- this.reset(true);
196
+ this.tryEntries = [{
197
+ tryLoc: "root"
198
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
476
199
  }
477
-
478
- exports.keys = function(object) {
479
- var keys = [];
480
- for (var key in object) {
481
- keys.push(key);
482
- }
483
- keys.reverse();
484
-
485
- // Rather than returning an object with a next method, we keep
486
- // things simple and return the next function itself.
487
- return function next() {
488
- while (keys.length) {
489
- var key = keys.pop();
490
- if (key in object) {
491
- next.value = key;
492
- next.done = false;
493
- return next;
494
- }
495
- }
496
-
497
- // To avoid creating an additional object, we just hang the .value
498
- // and .done properties off the next function object itself. This
499
- // also ensures that the minifier will not anonymize the function.
500
- next.done = true;
501
- return next;
502
- };
503
- };
504
-
505
200
  function values(iterable) {
506
201
  if (iterable) {
507
202
  var iteratorMethod = iterable[iteratorSymbol];
508
- if (iteratorMethod) {
509
- return iteratorMethod.call(iterable);
510
- }
511
-
512
- if (typeof iterable.next === "function") {
513
- return iterable;
514
- }
515
-
203
+ if (iteratorMethod) return iteratorMethod.call(iterable);
204
+ if ("function" == typeof iterable.next) return iterable;
516
205
  if (!isNaN(iterable.length)) {
517
- var i = -1, next = function next() {
518
- while (++i < iterable.length) {
519
- if (hasOwn.call(iterable, i)) {
520
- next.value = iterable[i];
521
- next.done = false;
522
- return next;
206
+ var i = -1,
207
+ next = function next() {
208
+ for (; ++i < iterable.length;) {
209
+ if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
523
210
  }
524
- }
525
-
526
- next.value = undefined$1;
527
- next.done = true;
528
-
529
- return next;
530
- };
531
-
211
+ return next.value = undefined, next.done = !0, next;
212
+ };
532
213
  return next.next = next;
533
214
  }
534
215
  }
535
-
536
- // Return an iterator with no values.
537
- return { next: doneResult };
216
+ return {
217
+ next: doneResult
218
+ };
538
219
  }
539
- exports.values = values;
540
-
541
220
  function doneResult() {
542
- return { value: undefined$1, done: true };
221
+ return {
222
+ value: undefined,
223
+ done: !0
224
+ };
543
225
  }
544
-
545
- Context.prototype = {
226
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
227
+ value: GeneratorFunctionPrototype,
228
+ configurable: !0
229
+ }), defineProperty(GeneratorFunctionPrototype, "constructor", {
230
+ value: GeneratorFunction,
231
+ configurable: !0
232
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
233
+ var ctor = "function" == typeof genFun && genFun.constructor;
234
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
235
+ }, exports.mark = function (genFun) {
236
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
237
+ }, exports.awrap = function (arg) {
238
+ return {
239
+ __await: arg
240
+ };
241
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
242
+ return this;
243
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
244
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
245
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
246
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
247
+ return result.done ? result.value : iter.next();
248
+ });
249
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
250
+ return this;
251
+ }), define(Gp, "toString", function () {
252
+ return "[object Generator]";
253
+ }), exports.keys = function (val) {
254
+ var object = Object(val),
255
+ keys = [];
256
+ for (var key in object) {
257
+ keys.push(key);
258
+ }
259
+ return keys.reverse(), function next() {
260
+ for (; keys.length;) {
261
+ var key = keys.pop();
262
+ if (key in object) return next.value = key, next.done = !1, next;
263
+ }
264
+ return next.done = !0, next;
265
+ };
266
+ }, exports.values = values, Context.prototype = {
546
267
  constructor: Context,
547
-
548
- reset: function(skipTempReset) {
549
- this.prev = 0;
550
- this.next = 0;
551
- // Resetting context._sent for legacy support of Babel's
552
- // function.sent implementation.
553
- this.sent = this._sent = undefined$1;
554
- this.done = false;
555
- this.delegate = null;
556
-
557
- this.method = "next";
558
- this.arg = undefined$1;
559
-
560
- this.tryEntries.forEach(resetTryEntry);
561
-
562
- if (!skipTempReset) {
563
- for (var name in this) {
564
- // Not sure about the optimal order of these conditions:
565
- if (name.charAt(0) === "t" &&
566
- hasOwn.call(this, name) &&
567
- !isNaN(+name.slice(1))) {
568
- this[name] = undefined$1;
569
- }
570
- }
268
+ reset: function reset(skipTempReset) {
269
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
270
+ "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
571
271
  }
572
272
  },
573
-
574
- stop: function() {
575
- this.done = true;
576
-
577
- var rootEntry = this.tryEntries[0];
578
- var rootRecord = rootEntry.completion;
579
- if (rootRecord.type === "throw") {
580
- throw rootRecord.arg;
581
- }
582
-
273
+ stop: function stop() {
274
+ this.done = !0;
275
+ var rootRecord = this.tryEntries[0].completion;
276
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
583
277
  return this.rval;
584
278
  },
585
-
586
- dispatchException: function(exception) {
587
- if (this.done) {
588
- throw exception;
589
- }
590
-
279
+ dispatchException: function dispatchException(exception) {
280
+ if (this.done) throw exception;
591
281
  var context = this;
592
282
  function handle(loc, caught) {
593
- record.type = "throw";
594
- record.arg = exception;
595
- context.next = loc;
596
-
597
- if (caught) {
598
- // If the dispatched exception was caught by a catch block,
599
- // then let that catch block handle the exception normally.
600
- context.method = "next";
601
- context.arg = undefined$1;
602
- }
603
-
604
- return !! caught;
283
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
605
284
  }
606
-
607
285
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
608
- var entry = this.tryEntries[i];
609
- var record = entry.completion;
610
-
611
- if (entry.tryLoc === "root") {
612
- // Exception thrown outside of any try block that could handle
613
- // it, so set the completion value of the entire function to
614
- // throw the exception.
615
- return handle("end");
616
- }
617
-
286
+ var entry = this.tryEntries[i],
287
+ record = entry.completion;
288
+ if ("root" === entry.tryLoc) return handle("end");
618
289
  if (entry.tryLoc <= this.prev) {
619
- var hasCatch = hasOwn.call(entry, "catchLoc");
620
- var hasFinally = hasOwn.call(entry, "finallyLoc");
621
-
290
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
291
+ hasFinally = hasOwn.call(entry, "finallyLoc");
622
292
  if (hasCatch && hasFinally) {
623
- if (this.prev < entry.catchLoc) {
624
- return handle(entry.catchLoc, true);
625
- } else if (this.prev < entry.finallyLoc) {
626
- return handle(entry.finallyLoc);
627
- }
628
-
293
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
294
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
629
295
  } else if (hasCatch) {
630
- if (this.prev < entry.catchLoc) {
631
- return handle(entry.catchLoc, true);
632
- }
633
-
634
- } else if (hasFinally) {
635
- if (this.prev < entry.finallyLoc) {
636
- return handle(entry.finallyLoc);
637
- }
638
-
296
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
639
297
  } else {
640
- throw new Error("try statement without catch or finally");
298
+ if (!hasFinally) throw new Error("try statement without catch or finally");
299
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
641
300
  }
642
301
  }
643
302
  }
644
303
  },
645
-
646
- abrupt: function(type, arg) {
304
+ abrupt: function abrupt(type, arg) {
647
305
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
648
306
  var entry = this.tryEntries[i];
649
- if (entry.tryLoc <= this.prev &&
650
- hasOwn.call(entry, "finallyLoc") &&
651
- this.prev < entry.finallyLoc) {
307
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
652
308
  var finallyEntry = entry;
653
309
  break;
654
310
  }
655
311
  }
656
-
657
- if (finallyEntry &&
658
- (type === "break" ||
659
- type === "continue") &&
660
- finallyEntry.tryLoc <= arg &&
661
- arg <= finallyEntry.finallyLoc) {
662
- // Ignore the finally entry if control is not jumping to a
663
- // location outside the try/catch block.
664
- finallyEntry = null;
665
- }
666
-
312
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
667
313
  var record = finallyEntry ? finallyEntry.completion : {};
668
- record.type = type;
669
- record.arg = arg;
670
-
671
- if (finallyEntry) {
672
- this.method = "next";
673
- this.next = finallyEntry.finallyLoc;
674
- return ContinueSentinel;
675
- }
676
-
677
- return this.complete(record);
314
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
678
315
  },
679
-
680
- complete: function(record, afterLoc) {
681
- if (record.type === "throw") {
682
- throw record.arg;
683
- }
684
-
685
- if (record.type === "break" ||
686
- record.type === "continue") {
687
- this.next = record.arg;
688
- } else if (record.type === "return") {
689
- this.rval = this.arg = record.arg;
690
- this.method = "return";
691
- this.next = "end";
692
- } else if (record.type === "normal" && afterLoc) {
693
- this.next = afterLoc;
694
- }
695
-
696
- return ContinueSentinel;
316
+ complete: function complete(record, afterLoc) {
317
+ if ("throw" === record.type) throw record.arg;
318
+ return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
697
319
  },
698
-
699
- finish: function(finallyLoc) {
320
+ finish: function finish(finallyLoc) {
700
321
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
701
322
  var entry = this.tryEntries[i];
702
- if (entry.finallyLoc === finallyLoc) {
703
- this.complete(entry.completion, entry.afterLoc);
704
- resetTryEntry(entry);
705
- return ContinueSentinel;
706
- }
323
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
707
324
  }
708
325
  },
709
-
710
- "catch": function(tryLoc) {
326
+ "catch": function _catch(tryLoc) {
711
327
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
712
328
  var entry = this.tryEntries[i];
713
329
  if (entry.tryLoc === tryLoc) {
714
330
  var record = entry.completion;
715
- if (record.type === "throw") {
331
+ if ("throw" === record.type) {
716
332
  var thrown = record.arg;
717
333
  resetTryEntry(entry);
718
334
  }
719
335
  return thrown;
720
336
  }
721
337
  }
722
-
723
- // The context.catch method must only be called with a location
724
- // argument that corresponds to a known catch block.
725
338
  throw new Error("illegal catch attempt");
726
339
  },
727
-
728
- delegateYield: function(iterable, resultName, nextLoc) {
729
- this.delegate = {
340
+ delegateYield: function delegateYield(iterable, resultName, nextLoc) {
341
+ return this.delegate = {
730
342
  iterator: values(iterable),
731
343
  resultName: resultName,
732
344
  nextLoc: nextLoc
733
- };
734
-
735
- if (this.method === "next") {
736
- // Deliberately forget the last sent value so that we don't
737
- // accidentally pass it on to the delegate.
738
- this.arg = undefined$1;
739
- }
740
-
741
- return ContinueSentinel;
345
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
742
346
  }
743
- };
347
+ }, exports;
348
+ }
349
+ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
350
+ });
351
+
352
+ unwrapExports(regeneratorRuntime$1);
744
353
 
745
- // Regardless of whether this script is executing as a CommonJS module
746
- // or not, return the runtime object so that we can declare the variable
747
- // regeneratorRuntime in the outer scope, which allows this module to be
748
- // injected easily by `bin/regenerator --include-runtime script.js`.
749
- return exports;
354
+ // TODO(Babel 8): Remove this file.
750
355
 
751
- }(
752
- // If this script is executing as a CommonJS module, use module.exports
753
- // as the regeneratorRuntime namespace. Otherwise create a new empty
754
- // object. Either way, the resulting object will be used to initialize
755
- // the regeneratorRuntime variable at the top of this file.
756
- module.exports
757
- ));
356
+ var runtime = regeneratorRuntime$1();
357
+ var regenerator = runtime;
758
358
 
359
+ // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
759
360
  try {
760
361
  regeneratorRuntime = runtime;
761
362
  } catch (accidentalStrictMode) {
762
- // This module should not be running in strict mode, so the above
763
- // assignment should always work unless something is misconfigured. Just
764
- // in case runtime.js accidentally runs in strict mode, in modern engines
765
- // we can explicitly access globalThis. In older engines we can escape
766
- // strict mode using a global Function call. This could conceivably fail
767
- // if a Content Security Policy forbids using Function, but in that case
768
- // the proper solution is to fix the accidental strict mode problem. If
769
- // you've misconfigured your bundler to force strict mode and applied a
770
- // CSP to forbid Function, and you're not willing to fix either of those
771
- // problems, please detail your unique predicament in a GitHub issue.
772
363
  if (typeof globalThis === "object") {
773
364
  globalThis.regeneratorRuntime = runtime;
774
365
  } else {
775
366
  Function("r", "regeneratorRuntime = r")(runtime);
776
367
  }
777
368
  }
369
+
370
+ var defineProperty = createCommonjsModule(function (module) {
371
+ function _defineProperty(obj, key, value) {
372
+ if (key in obj) {
373
+ Object.defineProperty(obj, key, {
374
+ value: value,
375
+ enumerable: true,
376
+ configurable: true,
377
+ writable: true
378
+ });
379
+ } else {
380
+ obj[key] = value;
381
+ }
382
+ return obj;
383
+ }
384
+ module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
778
385
  });
779
386
 
780
- var regenerator = runtime_1;
387
+ unwrapExports(defineProperty);
388
+
389
+ var asyncToGenerator = createCommonjsModule(function (module) {
390
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
391
+ try {
392
+ var info = gen[key](arg);
393
+ var value = info.value;
394
+ } catch (error) {
395
+ reject(error);
396
+ return;
397
+ }
398
+ if (info.done) {
399
+ resolve(value);
400
+ } else {
401
+ Promise.resolve(value).then(_next, _throw);
402
+ }
403
+ }
404
+ function _asyncToGenerator(fn) {
405
+ return function () {
406
+ var self = this,
407
+ args = arguments;
408
+ return new Promise(function (resolve, reject) {
409
+ var gen = fn.apply(self, args);
410
+ function _next(value) {
411
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
412
+ }
413
+ function _throw(err) {
414
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
415
+ }
416
+ _next(undefined);
417
+ });
418
+ };
419
+ }
420
+ module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
421
+ });
422
+
423
+ unwrapExports(asyncToGenerator);
781
424
 
782
425
  var arrayWithHoles = createCommonjsModule(function (module) {
783
426
  function _arrayWithHoles(arr) {
784
427
  if (Array.isArray(arr)) return arr;
785
428
  }
786
-
787
- module.exports = _arrayWithHoles;
788
- module.exports["default"] = module.exports, module.exports.__esModule = true;
429
+ module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
789
430
  });
790
431
 
791
432
  unwrapExports(arrayWithHoles);
@@ -793,18 +434,14 @@ unwrapExports(arrayWithHoles);
793
434
  var iterableToArrayLimit = createCommonjsModule(function (module) {
794
435
  function _iterableToArrayLimit(arr, i) {
795
436
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
796
-
797
437
  if (_i == null) return;
798
438
  var _arr = [];
799
439
  var _n = true;
800
440
  var _d = false;
801
-
802
441
  var _s, _e;
803
-
804
442
  try {
805
443
  for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
806
444
  _arr.push(_s.value);
807
-
808
445
  if (i && _arr.length === i) break;
809
446
  }
810
447
  } catch (err) {
@@ -817,12 +454,9 @@ function _iterableToArrayLimit(arr, i) {
817
454
  if (_d) throw _e;
818
455
  }
819
456
  }
820
-
821
457
  return _arr;
822
458
  }
823
-
824
- module.exports = _iterableToArrayLimit;
825
- module.exports["default"] = module.exports, module.exports.__esModule = true;
459
+ module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
826
460
  });
827
461
 
828
462
  unwrapExports(iterableToArrayLimit);
@@ -830,16 +464,12 @@ unwrapExports(iterableToArrayLimit);
830
464
  var arrayLikeToArray = createCommonjsModule(function (module) {
831
465
  function _arrayLikeToArray(arr, len) {
832
466
  if (len == null || len > arr.length) len = arr.length;
833
-
834
467
  for (var i = 0, arr2 = new Array(len); i < len; i++) {
835
468
  arr2[i] = arr[i];
836
469
  }
837
-
838
470
  return arr2;
839
471
  }
840
-
841
- module.exports = _arrayLikeToArray;
842
- module.exports["default"] = module.exports, module.exports.__esModule = true;
472
+ module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
843
473
  });
844
474
 
845
475
  unwrapExports(arrayLikeToArray);
@@ -853,9 +483,7 @@ function _unsupportedIterableToArray(o, minLen) {
853
483
  if (n === "Map" || n === "Set") return Array.from(o);
854
484
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
855
485
  }
856
-
857
- module.exports = _unsupportedIterableToArray;
858
- module.exports["default"] = module.exports, module.exports.__esModule = true;
486
+ module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
859
487
  });
860
488
 
861
489
  unwrapExports(unsupportedIterableToArray);
@@ -864,9 +492,7 @@ var nonIterableRest = createCommonjsModule(function (module) {
864
492
  function _nonIterableRest() {
865
493
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
866
494
  }
867
-
868
- module.exports = _nonIterableRest;
869
- module.exports["default"] = module.exports, module.exports.__esModule = true;
495
+ module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
870
496
  });
871
497
 
872
498
  unwrapExports(nonIterableRest);
@@ -875,9 +501,7 @@ var slicedToArray = createCommonjsModule(function (module) {
875
501
  function _slicedToArray(arr, i) {
876
502
  return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
877
503
  }
878
-
879
- module.exports = _slicedToArray;
880
- module.exports["default"] = module.exports, module.exports.__esModule = true;
504
+ module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
881
505
  });
882
506
 
883
507
  unwrapExports(slicedToArray);