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