@vaadin-component-factory/vcf-pdf-viewer 0.9.4 → 1.0.2

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