@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
@@ -1,6 +1,7 @@
1
1
  import { _ as _slicedToArray } from './slicedToArray-72ed566b.js';
2
2
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
3
- import { d as defineProperty, b as asyncToGenerator } from './defineProperty-e8022d1e.js';
3
+ import { a as _typeof_1 } from './typeof-2f07d0e8.js';
4
+ import { d as defineProperty, b as asyncToGenerator } from './defineProperty-23a8f8cd.js';
4
5
  import React__default, { useState, useEffect } from 'react';
5
6
  import { Form } from 'react-bootstrap';
6
7
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
@@ -14,407 +15,777 @@ function _interopRequireDefault(obj) {
14
15
  };
15
16
  }
16
17
 
17
- module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
18
+ module.exports = _interopRequireDefault;
19
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
18
20
  });
19
21
 
20
22
  unwrapExports(interopRequireDefault);
21
23
 
22
- var _typeof_1 = createCommonjsModule(function (module) {
23
- function _typeof(obj) {
24
- "@babel/helpers - typeof";
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
+ */
25
31
 
26
- return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
27
- return typeof obj;
28
- } : function (obj) {
29
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
30
- }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
31
- }
32
-
33
- module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
34
- });
35
-
36
- unwrapExports(_typeof_1);
37
-
38
- var regeneratorRuntime$1 = createCommonjsModule(function (module) {
39
- var _typeof = _typeof_1["default"];
40
-
41
- function _regeneratorRuntime() {
42
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
32
+ var runtime = (function (exports) {
43
33
 
44
- module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
45
- return exports;
46
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
47
- var exports = {},
48
- Op = Object.prototype,
49
- hasOwn = Op.hasOwnProperty,
50
- $Symbol = "function" == typeof Symbol ? Symbol : {},
51
- iteratorSymbol = $Symbol.iterator || "@@iterator",
52
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
53
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
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";
54
41
 
55
42
  function define(obj, key, value) {
56
- return Object.defineProperty(obj, key, {
43
+ Object.defineProperty(obj, key, {
57
44
  value: value,
58
- enumerable: !0,
59
- configurable: !0,
60
- writable: !0
61
- }), obj[key];
45
+ enumerable: true,
46
+ configurable: true,
47
+ writable: true
48
+ });
49
+ return obj[key];
62
50
  }
63
-
64
51
  try {
52
+ // IE 8 has a broken Object.defineProperty that only works on DOM objects.
65
53
  define({}, "");
66
54
  } catch (err) {
67
- define = function define(obj, key, value) {
55
+ define = function(obj, key, value) {
68
56
  return obj[key] = value;
69
57
  };
70
58
  }
71
59
 
72
60
  function wrap(innerFn, outerFn, self, tryLocsList) {
73
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
74
- generator = Object.create(protoGenerator.prototype),
75
- context = new Context(tryLocsList || []);
76
- return generator._invoke = function (innerFn, self, context) {
77
- var state = "suspendedStart";
78
- return function (method, arg) {
79
- if ("executing" === state) throw new Error("Generator is already running");
80
-
81
- if ("completed" === state) {
82
- if ("throw" === method) throw arg;
83
- return doneResult();
84
- }
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 || []);
85
65
 
86
- for (context.method = method, context.arg = arg;;) {
87
- var delegate = context.delegate;
66
+ // The ._invoke method unifies the implementations of the .next,
67
+ // .throw, and .return methods.
68
+ generator._invoke = makeInvokeMethod(innerFn, self, context);
88
69
 
89
- if (delegate) {
90
- var delegateResult = maybeInvokeDelegate(delegate, context);
91
-
92
- if (delegateResult) {
93
- if (delegateResult === ContinueSentinel) continue;
94
- return delegateResult;
95
- }
96
- }
97
-
98
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
99
- if ("suspendedStart" === state) throw state = "completed", context.arg;
100
- context.dispatchException(context.arg);
101
- } else "return" === context.method && context.abrupt("return", context.arg);
102
- state = "executing";
103
- var record = tryCatch(innerFn, self, context);
104
-
105
- if ("normal" === record.type) {
106
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
107
- return {
108
- value: record.arg,
109
- done: context.done
110
- };
111
- }
112
-
113
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
114
- }
115
- };
116
- }(innerFn, self, context), generator;
70
+ return generator;
117
71
  }
72
+ exports.wrap = wrap;
118
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.
119
84
  function tryCatch(fn, obj, arg) {
120
85
  try {
121
- return {
122
- type: "normal",
123
- arg: fn.call(obj, arg)
124
- };
86
+ return { type: "normal", arg: fn.call(obj, arg) };
125
87
  } catch (err) {
126
- return {
127
- type: "throw",
128
- arg: err
129
- };
88
+ return { type: "throw", arg: err };
130
89
  }
131
90
  }
132
91
 
133
- exports.wrap = wrap;
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.
134
99
  var ContinueSentinel = {};
135
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.
136
105
  function Generator() {}
137
-
138
106
  function GeneratorFunction() {}
139
-
140
107
  function GeneratorFunctionPrototype() {}
141
108
 
109
+ // This is a polyfill for %IteratorPrototype% for environments that
110
+ // don't natively support it.
142
111
  var IteratorPrototype = {};
143
112
  define(IteratorPrototype, iteratorSymbol, function () {
144
113
  return this;
145
114
  });
146
- var getProto = Object.getPrototypeOf,
147
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
148
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
149
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
150
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.
151
139
  function defineIteratorMethods(prototype) {
152
- ["next", "throw", "return"].forEach(function (method) {
153
- define(prototype, method, function (arg) {
140
+ ["next", "throw", "return"].forEach(function(method) {
141
+ define(prototype, method, function(arg) {
154
142
  return this._invoke(method, arg);
155
143
  });
156
144
  });
157
145
  }
158
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
+
159
176
  function AsyncIterator(generator, PromiseImpl) {
160
177
  function invoke(method, arg, resolve, reject) {
161
178
  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
+ }
162
193
 
163
- if ("throw" !== record.type) {
164
- var result = record.arg,
165
- value = result.value;
166
- return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
167
- invoke("next", value, resolve, reject);
168
- }, function (err) {
169
- invoke("throw", err, resolve, reject);
170
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
171
- result.value = unwrapped, resolve(result);
172
- }, function (error) {
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.
173
203
  return invoke("throw", error, resolve, reject);
174
204
  });
175
205
  }
176
-
177
- reject(record.arg);
178
206
  }
179
207
 
180
208
  var previousPromise;
181
209
 
182
- this._invoke = function (method, arg) {
210
+ function enqueue(method, arg) {
183
211
  function callInvokeWithMethodAndArg() {
184
- return new PromiseImpl(function (resolve, reject) {
212
+ return new PromiseImpl(function(resolve, reject) {
185
213
  invoke(method, arg, resolve, reject);
186
214
  });
187
215
  }
188
216
 
189
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
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;
241
+ }
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
+ 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
282
+ return doneResult();
283
+ }
284
+
285
+ context.method = method;
286
+ context.arg = arg;
287
+
288
+ while (true) {
289
+ var delegate = context.delegate;
290
+ if (delegate) {
291
+ var delegateResult = maybeInvokeDelegate(delegate, context);
292
+ if (delegateResult) {
293
+ if (delegateResult === ContinueSentinel) continue;
294
+ return delegateResult;
295
+ }
296
+ }
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
+
309
+ context.dispatchException(context.arg);
310
+
311
+ } else if (context.method === "return") {
312
+ context.abrupt("return", context.arg);
313
+ }
314
+
315
+ state = GenStateExecuting;
316
+
317
+ 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
+
329
+ return {
330
+ value: record.arg,
331
+ done: context.done
332
+ };
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
+ }
341
+ }
190
342
  };
191
343
  }
192
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.
193
349
  function maybeInvokeDelegate(delegate, context) {
194
350
  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
+ }
195
371
 
196
- if (undefined === method) {
197
- if (context.delegate = null, "throw" === context.method) {
198
- if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
199
- context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
372
+ context.method = "throw";
373
+ context.arg = new TypeError(
374
+ "The iterator does not provide a 'throw' method");
200
375
  }
201
376
 
202
377
  return ContinueSentinel;
203
378
  }
204
379
 
205
380
  var record = tryCatch(method, delegate.iterator, context.arg);
206
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
381
+
382
+ if (record.type === "throw") {
383
+ context.method = "throw";
384
+ context.arg = record.arg;
385
+ context.delegate = null;
386
+ return ContinueSentinel;
387
+ }
388
+
207
389
  var info = record.arg;
208
- 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);
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;
209
426
  }
210
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
+
211
447
  function pushTryEntry(locs) {
212
- var entry = {
213
- tryLoc: locs[0]
214
- };
215
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
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);
216
460
  }
217
461
 
218
462
  function resetTryEntry(entry) {
219
463
  var record = entry.completion || {};
220
- record.type = "normal", delete record.arg, entry.completion = record;
464
+ record.type = "normal";
465
+ delete record.arg;
466
+ entry.completion = record;
221
467
  }
222
468
 
223
469
  function Context(tryLocsList) {
224
- this.tryEntries = [{
225
- tryLoc: "root"
226
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
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);
227
476
  }
228
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
+
229
505
  function values(iterable) {
230
506
  if (iterable) {
231
507
  var iteratorMethod = iterable[iteratorSymbol];
232
- if (iteratorMethod) return iteratorMethod.call(iterable);
233
- if ("function" == typeof iterable.next) return iterable;
508
+ if (iteratorMethod) {
509
+ return iteratorMethod.call(iterable);
510
+ }
511
+
512
+ if (typeof iterable.next === "function") {
513
+ return iterable;
514
+ }
234
515
 
235
516
  if (!isNaN(iterable.length)) {
236
- var i = -1,
237
- next = function next() {
238
- for (; ++i < iterable.length;) {
239
- if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
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;
523
+ }
240
524
  }
241
525
 
242
- return next.value = undefined, next.done = !0, next;
526
+ next.value = undefined$1;
527
+ next.done = true;
528
+
529
+ return next;
243
530
  };
244
531
 
245
532
  return next.next = next;
246
533
  }
247
534
  }
248
535
 
249
- return {
250
- next: doneResult
251
- };
536
+ // Return an iterator with no values.
537
+ return { next: doneResult };
252
538
  }
539
+ exports.values = values;
253
540
 
254
541
  function doneResult() {
255
- return {
256
- value: undefined,
257
- done: !0
258
- };
542
+ return { value: undefined$1, done: true };
259
543
  }
260
544
 
261
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
262
- var ctor = "function" == typeof genFun && genFun.constructor;
263
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
264
- }, exports.mark = function (genFun) {
265
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
266
- }, exports.awrap = function (arg) {
267
- return {
268
- __await: arg
269
- };
270
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
271
- return this;
272
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
273
- void 0 === PromiseImpl && (PromiseImpl = Promise);
274
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
275
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
276
- return result.done ? result.value : iter.next();
277
- });
278
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
279
- return this;
280
- }), define(Gp, "toString", function () {
281
- return "[object Generator]";
282
- }), exports.keys = function (object) {
283
- var keys = [];
284
-
285
- for (var key in object) {
286
- keys.push(key);
287
- }
545
+ Context.prototype = {
546
+ constructor: Context,
288
547
 
289
- return keys.reverse(), function next() {
290
- for (; keys.length;) {
291
- var key = keys.pop();
292
- if (key in object) return next.value = key, next.done = !1, next;
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
+ }
293
571
  }
572
+ },
294
573
 
295
- return next.done = !0, next;
296
- };
297
- }, exports.values = values, Context.prototype = {
298
- constructor: Context,
299
- reset: function reset(skipTempReset) {
300
- 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) {
301
- "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
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;
302
581
  }
303
- },
304
- stop: function stop() {
305
- this.done = !0;
306
- var rootRecord = this.tryEntries[0].completion;
307
- if ("throw" === rootRecord.type) throw rootRecord.arg;
582
+
308
583
  return this.rval;
309
584
  },
310
- dispatchException: function dispatchException(exception) {
311
- if (this.done) throw exception;
312
- var context = this;
313
585
 
586
+ dispatchException: function(exception) {
587
+ if (this.done) {
588
+ throw exception;
589
+ }
590
+
591
+ var context = this;
314
592
  function handle(loc, caught) {
315
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!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;
316
605
  }
317
606
 
318
607
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
319
- var entry = this.tryEntries[i],
320
- record = entry.completion;
321
- if ("root" === entry.tryLoc) return handle("end");
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
+ }
322
617
 
323
618
  if (entry.tryLoc <= this.prev) {
324
- var hasCatch = hasOwn.call(entry, "catchLoc"),
325
- hasFinally = hasOwn.call(entry, "finallyLoc");
619
+ var hasCatch = hasOwn.call(entry, "catchLoc");
620
+ var hasFinally = hasOwn.call(entry, "finallyLoc");
326
621
 
327
622
  if (hasCatch && hasFinally) {
328
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
329
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
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
+
330
629
  } else if (hasCatch) {
331
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
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
+
332
639
  } else {
333
- if (!hasFinally) throw new Error("try statement without catch or finally");
334
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
640
+ throw new Error("try statement without catch or finally");
335
641
  }
336
642
  }
337
643
  }
338
644
  },
339
- abrupt: function abrupt(type, arg) {
645
+
646
+ abrupt: function(type, arg) {
340
647
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
341
648
  var entry = this.tryEntries[i];
342
-
343
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
649
+ if (entry.tryLoc <= this.prev &&
650
+ hasOwn.call(entry, "finallyLoc") &&
651
+ this.prev < entry.finallyLoc) {
344
652
  var finallyEntry = entry;
345
653
  break;
346
654
  }
347
655
  }
348
656
 
349
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
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
+
350
667
  var record = finallyEntry ? finallyEntry.completion : {};
351
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
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);
352
678
  },
353
- complete: function complete(record, afterLoc) {
354
- if ("throw" === record.type) throw record.arg;
355
- 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;
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;
356
697
  },
357
- finish: function finish(finallyLoc) {
698
+
699
+ finish: function(finallyLoc) {
358
700
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
359
701
  var entry = this.tryEntries[i];
360
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
702
+ if (entry.finallyLoc === finallyLoc) {
703
+ this.complete(entry.completion, entry.afterLoc);
704
+ resetTryEntry(entry);
705
+ return ContinueSentinel;
706
+ }
361
707
  }
362
708
  },
363
- "catch": function _catch(tryLoc) {
709
+
710
+ "catch": function(tryLoc) {
364
711
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
365
712
  var entry = this.tryEntries[i];
366
-
367
713
  if (entry.tryLoc === tryLoc) {
368
714
  var record = entry.completion;
369
-
370
- if ("throw" === record.type) {
715
+ if (record.type === "throw") {
371
716
  var thrown = record.arg;
372
717
  resetTryEntry(entry);
373
718
  }
374
-
375
719
  return thrown;
376
720
  }
377
721
  }
378
722
 
723
+ // The context.catch method must only be called with a location
724
+ // argument that corresponds to a known catch block.
379
725
  throw new Error("illegal catch attempt");
380
726
  },
381
- delegateYield: function delegateYield(iterable, resultName, nextLoc) {
382
- return this.delegate = {
727
+
728
+ delegateYield: function(iterable, resultName, nextLoc) {
729
+ this.delegate = {
383
730
  iterator: values(iterable),
384
731
  resultName: resultName,
385
732
  nextLoc: nextLoc
386
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
387
- }
388
- }, exports;
389
- }
733
+ };
390
734
 
391
- module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
392
- });
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
+ }
393
740
 
394
- unwrapExports(regeneratorRuntime$1);
741
+ return ContinueSentinel;
742
+ }
743
+ };
395
744
 
396
- // TODO(Babel 8): Remove this file.
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;
397
750
 
398
- var runtime = regeneratorRuntime$1();
399
- var regenerator = runtime;
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
+ ));
400
758
 
401
- // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
402
759
  try {
403
760
  regeneratorRuntime = runtime;
404
761
  } 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.
405
772
  if (typeof globalThis === "object") {
406
773
  globalThis.regeneratorRuntime = runtime;
407
774
  } else {
408
775
  Function("r", "regeneratorRuntime = r")(runtime);
409
776
  }
410
777
  }
778
+ });
779
+
780
+ var regenerator = runtime_1;
411
781
 
412
782
  var arrayWithHoles = createCommonjsModule(function (module) {
413
783
  function _arrayWithHoles(arr) {
414
784
  if (Array.isArray(arr)) return arr;
415
785
  }
416
786
 
417
- module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
787
+ module.exports = _arrayWithHoles;
788
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
418
789
  });
419
790
 
420
791
  unwrapExports(arrayWithHoles);
@@ -450,7 +821,8 @@ function _iterableToArrayLimit(arr, i) {
450
821
  return _arr;
451
822
  }
452
823
 
453
- module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
824
+ module.exports = _iterableToArrayLimit;
825
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
454
826
  });
455
827
 
456
828
  unwrapExports(iterableToArrayLimit);
@@ -466,7 +838,8 @@ function _arrayLikeToArray(arr, len) {
466
838
  return arr2;
467
839
  }
468
840
 
469
- module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
841
+ module.exports = _arrayLikeToArray;
842
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
470
843
  });
471
844
 
472
845
  unwrapExports(arrayLikeToArray);
@@ -481,7 +854,8 @@ function _unsupportedIterableToArray(o, minLen) {
481
854
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
482
855
  }
483
856
 
484
- module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
857
+ module.exports = _unsupportedIterableToArray;
858
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
485
859
  });
486
860
 
487
861
  unwrapExports(unsupportedIterableToArray);
@@ -491,7 +865,8 @@ function _nonIterableRest() {
491
865
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
492
866
  }
493
867
 
494
- module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
868
+ module.exports = _nonIterableRest;
869
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
495
870
  });
496
871
 
497
872
  unwrapExports(nonIterableRest);
@@ -501,7 +876,8 @@ function _slicedToArray(arr, i) {
501
876
  return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
502
877
  }
503
878
 
504
- module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
879
+ module.exports = _slicedToArray;
880
+ module.exports["default"] = module.exports, module.exports.__esModule = true;
505
881
  });
506
882
 
507
883
  unwrapExports(slicedToArray);