@jsenv/core 36.2.0 → 36.3.0

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 (124) hide show
  1. package/dist/babel_helpers/AsyncGenerator/AsyncGenerator.js +45 -35
  2. package/dist/babel_helpers/AwaitValue/AwaitValue.js +3 -3
  3. package/dist/babel_helpers/applyDecoratedDescriptor/applyDecoratedDescriptor.js +13 -13
  4. package/dist/babel_helpers/applyDecs/applyDecs.js +227 -42
  5. package/dist/babel_helpers/applyDecs2203/applyDecs2203.js +559 -418
  6. package/dist/babel_helpers/applyDecs2203R/applyDecs2203R.js +235 -87
  7. package/dist/babel_helpers/applyDecs2301/applyDecs2301.js +591 -456
  8. package/dist/babel_helpers/applyDecs2305/applyDecs2305.js +681 -0
  9. package/dist/babel_helpers/arrayLikeToArray/arrayLikeToArray.js +5 -5
  10. package/dist/babel_helpers/arrayWithHoles/arrayWithHoles.js +3 -3
  11. package/dist/babel_helpers/arrayWithoutHoles/arrayWithoutHoles.js +4 -4
  12. package/dist/babel_helpers/assertThisInitialized/assertThisInitialized.js +4 -4
  13. package/dist/babel_helpers/asyncGeneratorDelegate/asyncGeneratorDelegate.js +12 -4
  14. package/dist/babel_helpers/asyncIterator/asyncIterator.js +13 -11
  15. package/dist/babel_helpers/asyncToGenerator/asyncToGenerator.js +18 -17
  16. package/dist/babel_helpers/awaitAsyncGenerator/awaitAsyncGenerator.js +2 -1
  17. package/dist/babel_helpers/checkInRHS/checkInRHS.js +8 -5
  18. package/dist/babel_helpers/classApplyDescriptorDestructureSet/classApplyDescriptorDestructureSet.js +7 -7
  19. package/dist/babel_helpers/classApplyDescriptorGet/classApplyDescriptorGet.js +3 -3
  20. package/dist/babel_helpers/classApplyDescriptorSet/classApplyDescriptorSet.js +4 -4
  21. package/dist/babel_helpers/classCallCheck/classCallCheck.js +2 -2
  22. package/dist/babel_helpers/classCheckPrivateStaticAccess/classCheckPrivateStaticAccess.js +2 -2
  23. package/dist/babel_helpers/classCheckPrivateStaticFieldDescriptor/classCheckPrivateStaticFieldDescriptor.js +2 -2
  24. package/dist/babel_helpers/classExtractFieldDescriptor/classExtractFieldDescriptor.js +3 -3
  25. package/dist/babel_helpers/classNameTDZError/classNameTDZError.js +2 -2
  26. package/dist/babel_helpers/classPrivateFieldDestructureSet/classPrivateFieldDestructureSet.js +6 -5
  27. package/dist/babel_helpers/classPrivateFieldGet/classPrivateFieldGet.js +6 -5
  28. package/dist/babel_helpers/classPrivateFieldLooseBase/classPrivateFieldLooseBase.js +3 -3
  29. package/dist/babel_helpers/classPrivateFieldLooseKey/classPrivateFieldLooseKey.js +3 -3
  30. package/dist/babel_helpers/classPrivateFieldSet/classPrivateFieldSet.js +7 -6
  31. package/dist/babel_helpers/classPrivateMethodGet/classPrivateMethodGet.js +3 -3
  32. package/dist/babel_helpers/classPrivateMethodSet/classPrivateMethodSet.js +2 -2
  33. package/dist/babel_helpers/classStaticPrivateFieldSpecGet/classStaticPrivateFieldSpecGet.js +8 -7
  34. package/dist/babel_helpers/classStaticPrivateFieldSpecSet/classStaticPrivateFieldSpecSet.js +15 -9
  35. package/dist/babel_helpers/classStaticPrivateMethodGet/classStaticPrivateMethodGet.js +5 -4
  36. package/dist/babel_helpers/classStaticPrivateMethodSet/classStaticPrivateMethodSet.js +2 -2
  37. package/dist/babel_helpers/construct/construct.js +10 -9
  38. package/dist/babel_helpers/createClass/createClass.js +2 -3
  39. package/dist/babel_helpers/createForOfIteratorHelper/createForOfIteratorHelper.js +30 -29
  40. package/dist/babel_helpers/createForOfIteratorHelperLoose/createForOfIteratorHelperLoose.js +18 -16
  41. package/dist/babel_helpers/createRawReactElement/createRawReactElement.js +23 -17
  42. package/dist/babel_helpers/createSuper/createSuper.js +14 -12
  43. package/dist/babel_helpers/decorate/decorate.js +242 -210
  44. package/dist/babel_helpers/defaults/defaults.js +6 -6
  45. package/dist/babel_helpers/defineAccessor/defineAccessor.js +1 -4
  46. package/dist/babel_helpers/defineEnumerableProperties/defineEnumerableProperties.js +12 -12
  47. package/dist/babel_helpers/defineProperty/defineProperty.js +7 -6
  48. package/dist/babel_helpers/extends/extends.js +5 -4
  49. package/dist/babel_helpers/get/get.js +2 -1
  50. package/dist/babel_helpers/getPrototypeOf/getPrototypeOf.js +4 -3
  51. package/dist/babel_helpers/inherits/inherits.js +3 -4
  52. package/dist/babel_helpers/inheritsLoose/inheritsLoose.js +6 -5
  53. package/dist/babel_helpers/initializerDefineProperty/initializerDefineProperty.js +4 -4
  54. package/dist/babel_helpers/initializerWarningHelper/initializerWarningHelper.js +5 -2
  55. package/dist/babel_helpers/instanceof/instanceof.js +3 -3
  56. package/dist/babel_helpers/interopRequireDefault/interopRequireDefault.js +2 -4
  57. package/dist/babel_helpers/interopRequireWildcard/interopRequireWildcard.js +19 -21
  58. package/dist/babel_helpers/isNativeFunction/isNativeFunction.js +2 -2
  59. package/dist/babel_helpers/isNativeReflectConstruct/isNativeReflectConstruct.js +7 -7
  60. package/dist/babel_helpers/iterableToArray/iterableToArray.js +6 -2
  61. package/dist/babel_helpers/iterableToArrayLimit/iterableToArrayLimit.js +6 -1
  62. package/dist/babel_helpers/iterableToArrayLimitLoose/iterableToArrayLimitLoose.js +6 -2
  63. package/dist/babel_helpers/jsx/jsx.js +14 -7
  64. package/dist/babel_helpers/maybeArrayLike/maybeArrayLike.js +6 -5
  65. package/dist/babel_helpers/newArrowCheck/newArrowCheck.js +2 -2
  66. package/dist/babel_helpers/nonIterableRest/nonIterableRest.js +5 -3
  67. package/dist/babel_helpers/nonIterableSpread/nonIterableSpread.js +5 -3
  68. package/dist/babel_helpers/objectDestructuringEmpty/objectDestructuringEmpty.js +2 -2
  69. package/dist/babel_helpers/objectSpread/objectSpread.js +15 -12
  70. package/dist/babel_helpers/objectSpread2/objectSpread2.js +7 -2
  71. package/dist/babel_helpers/objectWithoutProperties/objectWithoutProperties.js +15 -13
  72. package/dist/babel_helpers/objectWithoutPropertiesLoose/objectWithoutPropertiesLoose.js +11 -11
  73. package/dist/babel_helpers/possibleConstructorReturn/possibleConstructorReturn.js +7 -6
  74. package/dist/babel_helpers/readOnlyError/readOnlyError.js +2 -2
  75. package/dist/babel_helpers/regeneratorRuntime/regeneratorRuntime.js +124 -73
  76. package/dist/babel_helpers/set/set.js +23 -20
  77. package/dist/babel_helpers/setPrototypeOf/setPrototypeOf.js +6 -5
  78. package/dist/babel_helpers/skipFirstGeneratorNext/skipFirstGeneratorNext.js +5 -5
  79. package/dist/babel_helpers/slicedToArray/slicedToArray.js +10 -5
  80. package/dist/babel_helpers/slicedToArrayLoose/slicedToArrayLoose.js +12 -6
  81. package/dist/babel_helpers/superPropBase/superPropBase.js +6 -5
  82. package/dist/babel_helpers/taggedTemplateLiteral/taggedTemplateLiteral.js +7 -7
  83. package/dist/babel_helpers/taggedTemplateLiteralLoose/taggedTemplateLiteralLoose.js +4 -4
  84. package/dist/babel_helpers/tdz/tdz.js +2 -2
  85. package/dist/babel_helpers/temporalRef/temporalRef.js +5 -4
  86. package/dist/babel_helpers/temporalUndefined/temporalUndefined.js +1 -1
  87. package/dist/babel_helpers/toArray/toArray.js +10 -5
  88. package/dist/babel_helpers/toConsumableArray/toConsumableArray.js +10 -5
  89. package/dist/babel_helpers/toPrimitive/toPrimitive.js +7 -7
  90. package/dist/babel_helpers/toPropertyKey/toPropertyKey.js +5 -4
  91. package/dist/babel_helpers/typeof/typeof.js +14 -5
  92. package/dist/babel_helpers/unsupportedIterableToArray/unsupportedIterableToArray.js +10 -8
  93. package/dist/babel_helpers/wrapAsyncGenerator/wrapAsyncGenerator.js +5 -4
  94. package/dist/babel_helpers/wrapNativeSuper/wrapNativeSuper.js +17 -15
  95. package/dist/babel_helpers/wrapRegExp/wrapRegExp.js +19 -8
  96. package/dist/babel_helpers/writeOnlyError/writeOnlyError.js +2 -2
  97. package/dist/js/autoreload.js +148 -133
  98. package/dist/js/import_meta_hot.js +19 -13
  99. package/dist/js/inline_content.js +1 -3
  100. package/dist/js/new_stylesheet.js +119 -60
  101. package/dist/js/regenerator_runtime.js +204 -102
  102. package/dist/js/ribbon.js +11 -6
  103. package/dist/js/server_events_client.js +122 -98
  104. package/dist/js/ws.js +968 -265
  105. package/dist/jsenv_core.js +8513 -6162
  106. package/package.json +9 -9
  107. package/src/build/build.js +497 -486
  108. package/src/build/version_mappings_injection.js +21 -44
  109. package/src/kitchen/errors.js +2 -2
  110. package/src/kitchen/fetched_content_compliance.js +6 -2
  111. package/src/kitchen/kitchen.js +285 -80
  112. package/src/kitchen/prepend_content.js +135 -0
  113. package/src/kitchen/url_graph/url_graph_visitor.js +99 -0
  114. package/src/kitchen/url_graph/url_info_transformations.js +140 -21
  115. package/src/kitchen/url_graph.js +59 -29
  116. package/src/plugins/autoreload/jsenv_plugin_hmr.js +1 -2
  117. package/src/plugins/import_meta_hot/jsenv_plugin_import_meta_hot.js +2 -2
  118. package/src/plugins/importmap/jsenv_plugin_importmap.js +2 -2
  119. package/src/plugins/inlining/jsenv_plugin_inlining_as_data_url.js +1 -1
  120. package/src/plugins/reference_analysis/html/jsenv_plugin_html_reference_analysis.js +44 -23
  121. package/src/plugins/reference_analysis/js/jsenv_plugin_js_reference_analysis.js +2 -1
  122. package/dist/js/global_this_js_classic.js +0 -24
  123. package/dist/js/global_this_js_module.js +0 -20
  124. package/src/build/graph_utils.js +0 -34
@@ -16,9 +16,11 @@ export default function _regeneratorRuntime() {
16
16
  var exports = {};
17
17
  var Op = Object.prototype;
18
18
  var hasOwn = Op.hasOwnProperty;
19
- var defineProperty = Object.defineProperty || function (obj, key, desc) {
20
- obj[key] = desc.value;
21
- };
19
+ var defineProperty =
20
+ Object.defineProperty ||
21
+ function (obj, key, desc) {
22
+ obj[key] = desc.value;
23
+ };
22
24
  var undefined; // More compressible than void 0.
23
25
  var $Symbol = typeof Symbol === "function" ? Symbol : {};
24
26
  var iteratorSymbol = $Symbol.iterator || "@@iterator";
@@ -29,7 +31,7 @@ export default function _regeneratorRuntime() {
29
31
  value: value,
30
32
  enumerable: true,
31
33
  configurable: true,
32
- writable: true
34
+ writable: true,
33
35
  });
34
36
  return obj[key];
35
37
  }
@@ -38,19 +40,20 @@ export default function _regeneratorRuntime() {
38
40
  define({}, "");
39
41
  } catch (err) {
40
42
  define = function (obj, key, value) {
41
- return obj[key] = value;
43
+ return (obj[key] = value);
42
44
  };
43
45
  }
44
46
  function wrap(innerFn, outerFn, self, tryLocsList) {
45
47
  // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
46
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
48
+ var protoGenerator =
49
+ outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
47
50
  var generator = Object.create(protoGenerator.prototype);
48
51
  var context = new Context(tryLocsList || []);
49
52
 
50
53
  // The ._invoke method unifies the implementations of the .next,
51
54
  // .throw, and .return methods.
52
55
  defineProperty(generator, "_invoke", {
53
- value: makeInvokeMethod(innerFn, self, context)
56
+ value: makeInvokeMethod(innerFn, self, context),
54
57
  });
55
58
  return generator;
56
59
  }
@@ -70,12 +73,12 @@ export default function _regeneratorRuntime() {
70
73
  try {
71
74
  return {
72
75
  type: "normal",
73
- arg: fn.call(obj, arg)
76
+ arg: fn.call(obj, arg),
74
77
  };
75
78
  } catch (err) {
76
79
  return {
77
80
  type: "throw",
78
- arg: err
81
+ arg: err,
79
82
  };
80
83
  }
81
84
  }
@@ -104,22 +107,33 @@ export default function _regeneratorRuntime() {
104
107
  });
105
108
  var getProto = Object.getPrototypeOf;
106
109
  var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
107
- if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
110
+ if (
111
+ NativeIteratorPrototype &&
112
+ NativeIteratorPrototype !== Op &&
113
+ hasOwn.call(NativeIteratorPrototype, iteratorSymbol)
114
+ ) {
108
115
  // This environment has a native %IteratorPrototype%; use it instead
109
116
  // of the polyfill.
110
117
  IteratorPrototype = NativeIteratorPrototype;
111
118
  }
112
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
119
+ var Gp =
120
+ (GeneratorFunctionPrototype.prototype =
121
+ Generator.prototype =
122
+ Object.create(IteratorPrototype));
113
123
  GeneratorFunction.prototype = GeneratorFunctionPrototype;
114
124
  defineProperty(Gp, "constructor", {
115
125
  value: GeneratorFunctionPrototype,
116
- configurable: true
126
+ configurable: true,
117
127
  });
118
128
  defineProperty(GeneratorFunctionPrototype, "constructor", {
119
129
  value: GeneratorFunction,
120
- configurable: true
130
+ configurable: true,
121
131
  });
122
- GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction");
132
+ GeneratorFunction.displayName = define(
133
+ GeneratorFunctionPrototype,
134
+ toStringTagSymbol,
135
+ "GeneratorFunction",
136
+ );
123
137
 
124
138
  // Helper for defining the .next, .throw, and .return methods of the
125
139
  // Iterator interface in terms of a single ._invoke method.
@@ -132,10 +146,12 @@ export default function _regeneratorRuntime() {
132
146
  }
133
147
  exports.isGeneratorFunction = function (genFun) {
134
148
  var ctor = typeof genFun === "function" && genFun.constructor;
135
- return ctor ? ctor === GeneratorFunction ||
136
- // For the native GeneratorFunction constructor, the best we can
137
- // do is to check its .name property.
138
- (ctor.displayName || ctor.name) === "GeneratorFunction" : false;
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;
139
155
  };
140
156
  exports.mark = function (genFun) {
141
157
  if (Object.setPrototypeOf) {
@@ -154,7 +170,7 @@ export default function _regeneratorRuntime() {
154
170
  // meant to be awaited.
155
171
  exports.awrap = function (arg) {
156
172
  return {
157
- __await: arg
173
+ __await: arg,
158
174
  };
159
175
  };
160
176
  function AsyncIterator(generator, PromiseImpl) {
@@ -165,24 +181,34 @@ export default function _regeneratorRuntime() {
165
181
  } else {
166
182
  var result = record.arg;
167
183
  var value = result.value;
168
- if (value && typeof value === "object" && hasOwn.call(value, "__await")) {
169
- return PromiseImpl.resolve(value.__await).then(function (value) {
170
- invoke("next", value, resolve, reject);
171
- }, function (err) {
172
- invoke("throw", err, resolve, reject);
173
- });
184
+ if (
185
+ value &&
186
+ typeof value === "object" &&
187
+ hasOwn.call(value, "__await")
188
+ ) {
189
+ return PromiseImpl.resolve(value.__await).then(
190
+ function (value) {
191
+ invoke("next", value, resolve, reject);
192
+ },
193
+ function (err) {
194
+ invoke("throw", err, resolve, reject);
195
+ },
196
+ );
174
197
  }
175
- return PromiseImpl.resolve(value).then(function (unwrapped) {
176
- // When a yielded Promise is resolved, its final value becomes
177
- // the .value of the Promise<{value,done}> result for the
178
- // current iteration.
179
- result.value = unwrapped;
180
- resolve(result);
181
- }, function (error) {
182
- // If a rejected Promise was yielded, throw the rejection back
183
- // into the async generator function so it can be handled there.
184
- return invoke("throw", error, resolve, reject);
185
- });
198
+ return PromiseImpl.resolve(value).then(
199
+ function (unwrapped) {
200
+ // When a yielded Promise is resolved, its final value becomes
201
+ // the .value of the Promise<{value,done}> result for the
202
+ // current iteration.
203
+ result.value = unwrapped;
204
+ resolve(result);
205
+ },
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.
209
+ return invoke("throw", error, resolve, reject);
210
+ },
211
+ );
186
212
  }
187
213
  }
188
214
  var previousPromise;
@@ -192,29 +218,33 @@ export default function _regeneratorRuntime() {
192
218
  invoke(method, arg, resolve, reject);
193
219
  });
194
220
  }
195
- return previousPromise =
196
- // If enqueue has been called before, then we want to wait until
197
- // all previous Promises have been resolved before calling invoke,
198
- // so that results are always delivered in the correct order. If
199
- // enqueue has not been called before, then it is important to
200
- // call invoke immediately, without waiting on a callback to fire,
201
- // so that the async generator function has the opportunity to do
202
- // any necessary setup in a predictable way. This predictability
203
- // is why the Promise constructor synchronously invokes its
204
- // executor callback, and why async functions synchronously
205
- // execute code before the first await. Since we implement simple
206
- // async functions in terms of async generators, it is especially
207
- // important to get this right, even though it requires care.
208
- previousPromise ? previousPromise.then(callInvokeWithMethodAndArg,
209
- // Avoid propagating failures to Promises returned by later
210
- // invocations of the iterator.
211
- callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
221
+ return (previousPromise =
222
+ // If enqueue has been called before, then we want to wait until
223
+ // all previous Promises have been resolved before calling invoke,
224
+ // so that results are always delivered in the correct order. If
225
+ // enqueue has not been called before, then it is important to
226
+ // call invoke immediately, without waiting on a callback to fire,
227
+ // so that the async generator function has the opportunity to do
228
+ // any necessary setup in a predictable way. This predictability
229
+ // is why the Promise constructor synchronously invokes its
230
+ // executor callback, and why async functions synchronously
231
+ // execute code before the first await. Since we implement simple
232
+ // async functions in terms of async generators, it is especially
233
+ // important to get this right, even though it requires care.
234
+ previousPromise
235
+ ? previousPromise.then(
236
+ callInvokeWithMethodAndArg,
237
+ // Avoid propagating failures to Promises returned by later
238
+ // invocations of the iterator.
239
+ callInvokeWithMethodAndArg,
240
+ )
241
+ : callInvokeWithMethodAndArg());
212
242
  }
213
243
 
214
244
  // Define the unified helper method that is used to implement .next,
215
245
  // .throw, and .return (see defineIteratorMethods).
216
246
  defineProperty(this, "_invoke", {
217
- value: enqueue
247
+ value: enqueue,
218
248
  });
219
249
  }
220
250
  defineIteratorMethods(AsyncIterator.prototype);
@@ -228,11 +258,15 @@ export default function _regeneratorRuntime() {
228
258
  // the final result produced by the iterator.
229
259
  exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
230
260
  if (PromiseImpl === void 0) PromiseImpl = Promise;
231
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
232
- return exports.isGeneratorFunction(outerFn) ? iter // If outerFn is a generator, return the full iterator.
233
- : iter.next().then(function (result) {
234
- return result.done ? result.value : iter.next();
235
- });
261
+ var iter = new AsyncIterator(
262
+ wrap(innerFn, outerFn, self, tryLocsList),
263
+ PromiseImpl,
264
+ );
265
+ return exports.isGeneratorFunction(outerFn)
266
+ ? iter // If outerFn is a generator, return the full iterator.
267
+ : iter.next().then(function (result) {
268
+ return result.done ? result.value : iter.next();
269
+ });
236
270
  };
237
271
  function makeInvokeMethod(innerFn, self, context) {
238
272
  var state = GenStateSuspendedStart;
@@ -284,7 +318,7 @@ export default function _regeneratorRuntime() {
284
318
  }
285
319
  return {
286
320
  value: record.arg,
287
- done: context.done
321
+ done: context.done,
288
322
  };
289
323
  } else if (record.type === "throw") {
290
324
  state = GenStateCompleted;
@@ -325,7 +359,9 @@ export default function _regeneratorRuntime() {
325
359
  }
326
360
  if (methodName !== "return") {
327
361
  context.method = "throw";
328
- context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method");
362
+ context.arg = new TypeError(
363
+ "The iterator does not provide a '" + methodName + "' method",
364
+ );
329
365
  }
330
366
  return ContinueSentinel;
331
367
  }
@@ -390,7 +426,7 @@ export default function _regeneratorRuntime() {
390
426
  });
391
427
  function pushTryEntry(locs) {
392
428
  var entry = {
393
- tryLoc: locs[0]
429
+ tryLoc: locs[0],
394
430
  };
395
431
  if (1 in locs) {
396
432
  entry.catchLoc = locs[1];
@@ -411,9 +447,11 @@ export default function _regeneratorRuntime() {
411
447
  // The root entry object (effectively a try statement without a catch
412
448
  // or a finally block) gives us a place to store values thrown from
413
449
  // locations where there is no enclosing try statement.
414
- this.tryEntries = [{
415
- tryLoc: "root"
416
- }];
450
+ this.tryEntries = [
451
+ {
452
+ tryLoc: "root",
453
+ },
454
+ ];
417
455
  tryLocsList.forEach(pushTryEntry, this);
418
456
  this.reset(true);
419
457
  }
@@ -467,20 +505,20 @@ export default function _regeneratorRuntime() {
467
505
  next.done = true;
468
506
  return next;
469
507
  };
470
- return next.next = next;
508
+ return (next.next = next);
471
509
  }
472
510
  }
473
511
 
474
512
  // Return an iterator with no values.
475
513
  return {
476
- next: doneResult
514
+ next: doneResult,
477
515
  };
478
516
  }
479
517
  exports.values = values;
480
518
  function doneResult() {
481
519
  return {
482
520
  value: undefined,
483
- done: true
521
+ done: true,
484
522
  };
485
523
  }
486
524
  Context.prototype = {
@@ -499,7 +537,11 @@ export default function _regeneratorRuntime() {
499
537
  if (!skipTempReset) {
500
538
  for (var name in this) {
501
539
  // Not sure about the optimal order of these conditions:
502
- if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) {
540
+ if (
541
+ name.charAt(0) === "t" &&
542
+ hasOwn.call(this, name) &&
543
+ !isNaN(+name.slice(1))
544
+ ) {
503
545
  this[name] = undefined;
504
546
  }
505
547
  }
@@ -566,12 +608,21 @@ export default function _regeneratorRuntime() {
566
608
  abrupt: function (type, arg) {
567
609
  for (var i = this.tryEntries.length - 1; i >= 0; --i) {
568
610
  var entry = this.tryEntries[i];
569
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
611
+ if (
612
+ entry.tryLoc <= this.prev &&
613
+ hasOwn.call(entry, "finallyLoc") &&
614
+ this.prev < entry.finallyLoc
615
+ ) {
570
616
  var finallyEntry = entry;
571
617
  break;
572
618
  }
573
619
  }
574
- if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) {
620
+ if (
621
+ finallyEntry &&
622
+ (type === "break" || type === "continue") &&
623
+ finallyEntry.tryLoc <= arg &&
624
+ arg <= finallyEntry.finallyLoc
625
+ ) {
575
626
  // Ignore the finally entry if control is not jumping to a
576
627
  // location outside the try/catch block.
577
628
  finallyEntry = null;
@@ -632,7 +683,7 @@ export default function _regeneratorRuntime() {
632
683
  this.delegate = {
633
684
  iterator: values(iterable),
634
685
  resultName: resultName,
635
- nextLoc: nextLoc
686
+ nextLoc: nextLoc,
636
687
  };
637
688
  if (this.method === "next") {
638
689
  // Deliberately forget the last sent value so that we don't
@@ -640,7 +691,7 @@ export default function _regeneratorRuntime() {
640
691
  this.arg = undefined;
641
692
  }
642
693
  return ContinueSentinel;
643
- }
694
+ },
644
695
  };
645
696
 
646
697
  // Regardless of whether this script is executing as a CommonJS module
@@ -1,41 +1,44 @@
1
- import superPropBase from "../superPropBase/superPropBase.js";
2
- import defineProperty from "../defineProperty/defineProperty.js";
1
+ import superPropBase from "../superPropBase/superPropBase.js"
2
+ import defineProperty from "../defineProperty/defineProperty.js"
3
+
3
4
  function reflectSetPolyfill(target, property, value, receiver) {
4
- var base = superPropBase(target, property);
5
- var desc;
5
+ var base = superPropBase(target, property)
6
+ var desc
6
7
  if (base) {
7
- desc = Object.getOwnPropertyDescriptor(base, property);
8
+ desc = Object.getOwnPropertyDescriptor(base, property)
8
9
  if (desc.set) {
9
- desc.set.call(receiver, value);
10
- return true;
10
+ desc.set.call(receiver, value)
11
+ return true
11
12
  } else if (!desc.writable) {
12
13
  // Both getter and non-writable fall into this.
13
- return false;
14
+ return false
14
15
  }
15
16
  }
16
17
  // Without a super that defines the property, spec boils down to
17
18
  // "define on receiver" for some reason.
18
- desc = Object.getOwnPropertyDescriptor(receiver, property);
19
+ desc = Object.getOwnPropertyDescriptor(receiver, property)
19
20
  if (desc) {
20
21
  if (!desc.writable) {
21
22
  // Setter, getter, and non-writable fall into this.
22
- return false;
23
+ return false
23
24
  }
24
- desc.value = value;
25
- Object.defineProperty(receiver, property, desc);
25
+ desc.value = value
26
+ Object.defineProperty(receiver, property, desc)
26
27
  } else {
27
28
  // Avoid setters that may be defined on Sub's prototype, but not on
28
29
  // the instance.
29
- defineProperty(receiver, property, value);
30
+ defineProperty(receiver, property, value)
30
31
  }
31
- return true;
32
+ return true
32
33
  }
33
- var reflectSet = typeof Reflect !== "undefined" && Reflect.set ? Reflect.set : reflectSetPolyfill;
34
- export default ((target, property, value, receiver, isStrict) => {
34
+
35
+ var reflectSet = typeof Reflect !== "undefined" && Reflect.set ? Reflect.set : reflectSetPolyfill
36
+
37
+ export default (target, property, value, receiver, isStrict) => {
35
38
  // eslint-disable-next-line no-obj-calls
36
- var s = reflectSet(target, property, value, receiver || target);
39
+ var s = reflectSet(target, property, value, receiver || target)
37
40
  if (!s && isStrict) {
38
- throw new TypeError("failed to set property");
41
+ throw new TypeError("failed to set property")
39
42
  }
40
- return value;
41
- });
43
+ return value
44
+ }
@@ -1,5 +1,6 @@
1
- export default Object.setPrototypeOf ? Object.setPrototypeOf.bind() : (o, p) => {
2
- // eslint-disable-next-line no-proto
3
- o.__proto__ = p;
4
- return o;
5
- };
1
+ export default Object.setPrototypeOf ? Object.setPrototypeOf.bind() :
2
+ ((o, p) => {
3
+ // eslint-disable-next-line no-proto
4
+ o.__proto__ = p
5
+ return o
6
+ })
@@ -1,8 +1,8 @@
1
1
  export default function (fn) {
2
2
  return function () {
3
3
  // eslint-disable-next-line prefer-rest-params
4
- var it = fn.apply(this, arguments);
5
- it.next();
6
- return it;
7
- };
8
- }
4
+ var it = fn.apply(this, arguments)
5
+ it.next()
6
+ return it
7
+ }
8
+ }
@@ -1,5 +1,10 @@
1
- import arrayWithHoles from "../arrayWithHoles/arrayWithHoles.js";
2
- import iterableToArrayLimit from "../iterableToArrayLimit/iterableToArrayLimit.js";
3
- import unsupportedIterableToArray from "../unsupportedIterableToArray/unsupportedIterableToArray.js";
4
- import nonIterableRest from "../nonIterableRest/nonIterableRest.js";
5
- export default ((arr, i) => arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest());
1
+ import arrayWithHoles from "../arrayWithHoles/arrayWithHoles.js"
2
+ import iterableToArrayLimit from "../iterableToArrayLimit/iterableToArrayLimit.js"
3
+ import unsupportedIterableToArray from "../unsupportedIterableToArray/unsupportedIterableToArray.js"
4
+ import nonIterableRest from "../nonIterableRest/nonIterableRest.js"
5
+
6
+ export default (arr, i) =>
7
+ arrayWithHoles(arr) ||
8
+ iterableToArrayLimit(arr, i) ||
9
+ unsupportedIterableToArray(arr, i) ||
10
+ nonIterableRest()
@@ -1,7 +1,13 @@
1
- import arrayWithHoles from "../arrayWithHoles/arrayWithHoles.js";
2
- import iterableToArrayLimitLoose from "../iterableToArrayLimitLoose/iterableToArrayLimitLoose.js";
3
- import unsupportedIterableToArray from "../unsupportedIterableToArray/unsupportedIterableToArray.js";
4
- import nonIterableRest from "../nonIterableRest/nonIterableRest.js";
1
+ import arrayWithHoles from "../arrayWithHoles/arrayWithHoles.js"
2
+ import iterableToArrayLimitLoose from "../iterableToArrayLimitLoose/iterableToArrayLimitLoose.js"
3
+ import unsupportedIterableToArray from "../unsupportedIterableToArray/unsupportedIterableToArray.js"
4
+ import nonIterableRest from "../nonIterableRest/nonIterableRest.js"
5
+
5
6
  export default function (arr, i) {
6
- return arrayWithHoles(arr) || iterableToArrayLimitLoose(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
7
- }
7
+ return (
8
+ arrayWithHoles(arr) ||
9
+ iterableToArrayLimitLoose(arr, i) ||
10
+ unsupportedIterableToArray(arr, i) ||
11
+ nonIterableRest()
12
+ )
13
+ }
@@ -1,9 +1,10 @@
1
- import getPrototypeOf from "../getPrototypeOf/getPrototypeOf.js";
1
+ import getPrototypeOf from "../getPrototypeOf/getPrototypeOf.js"
2
+
2
3
  export default function (object, property) {
3
4
  // Yes, this throws if object is null to being with, that's on purpose.
4
5
  while (!Object.prototype.hasOwnProperty.call(object, property)) {
5
- object = getPrototypeOf(object);
6
- if (object === null) break;
6
+ object = getPrototypeOf(object)
7
+ if (object === null) break
7
8
  }
8
- return object;
9
- }
9
+ return object
10
+ }
@@ -1,10 +1,10 @@
1
1
  export default function (strings, raw) {
2
2
  if (!raw) {
3
- raw = strings.slice(0);
3
+ raw = strings.slice(0)
4
4
  }
5
- return Object.freeze(Object.defineProperties(strings, {
6
- raw: {
7
- value: Object.freeze(raw)
8
- }
9
- }));
10
- }
5
+ return Object.freeze(
6
+ Object.defineProperties(strings, {
7
+ raw: { value: Object.freeze(raw) },
8
+ }),
9
+ )
10
+ }
@@ -1,7 +1,7 @@
1
1
  export default function (strings, raw) {
2
2
  if (!raw) {
3
- raw = strings.slice(0);
3
+ raw = strings.slice(0)
4
4
  }
5
- strings.raw = raw;
6
- return strings;
7
- }
5
+ strings.raw = raw
6
+ return strings
7
+ }
@@ -1,4 +1,4 @@
1
1
  export default function _tdzError(name) {
2
2
  // eslint-disable-next-line prefer-template
3
- throw new ReferenceError(name + " is not defined - temporal dead zone");
4
- }
3
+ throw new ReferenceError(name + " is not defined - temporal dead zone")
4
+ }
@@ -1,5 +1,6 @@
1
- import undef from "../temporalUndefined/temporalUndefined.js";
2
- import err from "../tdz/tdz.js";
1
+ import undef from "../temporalUndefined/temporalUndefined.js"
2
+ import err from "../tdz/tdz.js"
3
+
3
4
  export default function (val, name) {
4
- return val === undef ? err(name) : val;
5
- }
5
+ return val === undef ? err(name) : val
6
+ }
@@ -1,3 +1,3 @@
1
1
  // This function isn't mean to be called, but to be used as a reference.
2
2
  // We can't use a normal object because it isn't hoisted.
3
- export default function () {}
3
+ export default function () {}
@@ -1,5 +1,10 @@
1
- import arrayWithHoles from "../arrayWithHoles/arrayWithHoles.js";
2
- import iterableToArray from "../iterableToArray/iterableToArray.js";
3
- import unsupportedIterableToArray from "../unsupportedIterableToArray/unsupportedIterableToArray.js";
4
- import nonIterableRest from "../nonIterableRest/nonIterableRest.js";
5
- export default (arr => arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest());
1
+ import arrayWithHoles from "../arrayWithHoles/arrayWithHoles.js"
2
+ import iterableToArray from "../iterableToArray/iterableToArray.js"
3
+ import unsupportedIterableToArray from "../unsupportedIterableToArray/unsupportedIterableToArray.js"
4
+ import nonIterableRest from "../nonIterableRest/nonIterableRest.js"
5
+
6
+ export default (arr) =>
7
+ arrayWithHoles(arr) ||
8
+ iterableToArray(arr) ||
9
+ unsupportedIterableToArray(arr) ||
10
+ nonIterableRest()
@@ -1,5 +1,10 @@
1
- import arrayWithoutHoles from "../arrayWithoutHoles/arrayWithoutHoles.js";
2
- import iterableToArray from "../iterableToArray/iterableToArray.js";
3
- import unsupportedIterableToArray from "../unsupportedIterableToArray/unsupportedIterableToArray.js";
4
- import nonIterableSpread from "../nonIterableSpread/nonIterableSpread.js";
5
- export default (arr => arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread());
1
+ import arrayWithoutHoles from "../arrayWithoutHoles/arrayWithoutHoles.js"
2
+ import iterableToArray from "../iterableToArray/iterableToArray.js"
3
+ import unsupportedIterableToArray from "../unsupportedIterableToArray/unsupportedIterableToArray.js"
4
+ import nonIterableSpread from "../nonIterableSpread/nonIterableSpread.js"
5
+
6
+ export default (arr) =>
7
+ arrayWithoutHoles(arr) ||
8
+ iterableToArray(arr) ||
9
+ unsupportedIterableToArray(arr) ||
10
+ nonIterableSpread()
@@ -1,10 +1,10 @@
1
1
  export default function (input, hint /* : "default" | "string" | "number" | void */) {
2
- if (typeof input !== "object" || input === null) return input;
3
- var prim = input[Symbol.toPrimitive];
2
+ if (typeof input !== "object" || input === null) return input
3
+ var prim = input[Symbol.toPrimitive]
4
4
  if (prim !== undefined) {
5
- var res = prim.call(input, hint || "default");
6
- if (typeof res !== "object") return res;
7
- throw new TypeError("@@toPrimitive must return a primitive value.");
5
+ var res = prim.call(input, hint || "default")
6
+ if (typeof res !== "object") return res
7
+ throw new TypeError("@@toPrimitive must return a primitive value.")
8
8
  }
9
- return (hint === "string" ? String : Number)(input);
10
- }
9
+ return (hint === "string" ? String : Number)(input)
10
+ }
@@ -1,5 +1,6 @@
1
- import toPrimitive from "../toPrimitive/toPrimitive.js";
1
+ import toPrimitive from "../toPrimitive/toPrimitive.js"
2
+
2
3
  export default function (arg) {
3
- var key = toPrimitive(arg, "string");
4
- return typeof key === "symbol" ? key : String(key);
5
- }
4
+ var key = toPrimitive(arg, "string")
5
+ return typeof key === "symbol" ? key : String(key)
6
+ }