@mjhls/mjh-framework 1.0.1082-rl-v2 → 1.0.1082

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