@quintype/arrow 3.15.1-perf.3 → 3.15.1-perf.4

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 (166) hide show
  1. package/atoms/Author/index.js +14 -2103
  2. package/atoms/Author/styles.arrow.css +1 -1
  3. package/atoms/AuthorWithTime/index.js +32 -2482
  4. package/atoms/AuthorWithTime/styles.arrow.css +1 -1
  5. package/atoms/CollectionName/index.js +12 -2101
  6. package/atoms/CollectionName/styles.arrow.css +1 -1
  7. package/atoms/ExtendedLoadMore/{index-b22f1843.js → index-0f809dd9.js} +10 -7
  8. package/atoms/ExtendedLoadMore/index-142f015c.js +476 -0
  9. package/atoms/ExtendedLoadMore/{index-bc129cb8.js → index-37a9ccff.js} +18 -10
  10. package/atoms/ExtendedLoadMore/{index-6e083738.js → index-446679c8.js} +20 -12
  11. package/atoms/ExtendedLoadMore/{index-9e0d32b7.js → index-44f97338.js} +19 -9
  12. package/atoms/ExtendedLoadMore/{index-b5936059.js → index-57dd4870.js} +15 -7
  13. package/atoms/ExtendedLoadMore/{index-fee73a14.js → index-66dd4dbd.js} +15 -7
  14. package/atoms/ExtendedLoadMore/{index-5c8eda4a.js → index-8462c597.js} +21 -16
  15. package/atoms/ExtendedLoadMore/{index-3c4ac692.js → index-93cb06d1.js} +42 -51
  16. package/atoms/ExtendedLoadMore/{index-4ddfe28d.js → index-afd44863.js} +6 -4
  17. package/atoms/ExtendedLoadMore/{index-3976fac4.js → index-b5754c5d.js} +20 -14
  18. package/atoms/ExtendedLoadMore/{index-a5c95f84.js → index-bbaf526e.js} +16 -8
  19. package/atoms/ExtendedLoadMore/{index-6ecceae4.js → index-cfb262ef.js} +18 -9
  20. package/atoms/ExtendedLoadMore/index.js +8 -1
  21. package/atoms/ExtendedLoadMore/styles.arrow.css +1 -1
  22. package/atoms/Headline/index.js +14 -2103
  23. package/atoms/Headline/styles.arrow.css +1 -1
  24. package/atoms/HeroImage/index.js +22 -2170
  25. package/atoms/HeroImage/styles.arrow.css +1 -1
  26. package/atoms/LoadmoreButton/index.js +12 -2114
  27. package/atoms/LoadmoreButton/styles.arrow.css +1 -1
  28. package/atoms/ScrollSnap/index.js +17 -2178
  29. package/atoms/ScrollSnap/styles.arrow.css +1 -1
  30. package/atoms/SectionTag/index.js +10 -2099
  31. package/atoms/SectionTag/styles.arrow.css +1 -1
  32. package/atoms/Subheadline/index.js +8 -2097
  33. package/atoms/Subheadline/styles.arrow.css +1 -1
  34. package/atoms/TimeStamp/index.js +13 -2463
  35. package/atoms/TimeStamp/styles.arrow.css +1 -1
  36. package/molecules/KeyEvents/index.js +23 -2545
  37. package/molecules/KeyEvents/styles.arrow.css +1 -1
  38. package/molecules/PageIntroductionCard/index.js +17 -2454
  39. package/molecules/PageIntroductionCard/styles.arrow.css +1 -1
  40. package/molecules/SocialShareTemplate/index.js +144 -2740
  41. package/molecules/SocialShareTemplate/styles.arrow.css +1 -1
  42. package/molecules/StoryCard/index.js +64 -2582
  43. package/molecules/StoryCard/styles.arrow.css +1 -1
  44. package/molecules/StoryElementCard/index.js +123 -2893
  45. package/molecules/StoryElementCard/styles.arrow.css +1 -1
  46. package/molecules/StorycardContent/index.js +45 -2495
  47. package/molecules/StorycardContent/styles.arrow.css +1 -1
  48. package/package.json +1 -1
  49. package/rows/AlternateCollectionFilter/index.js +92 -2659
  50. package/rows/AlternateCollectionFilter/styles.arrow.css +1 -1
  51. package/rows/AsideCollection/index.js +92 -2659
  52. package/rows/AsideCollection/styles.arrow.css +1 -1
  53. package/rows/AstrologyCollection/index.js +89 -2656
  54. package/rows/AstrologyCollection/styles.arrow.css +1 -1
  55. package/rows/AuthorIntroductionCard/index.js +27 -2743
  56. package/rows/AuthorIntroductionCard/styles.arrow.css +1 -1
  57. package/rows/AuthorsList/index.js +34 -2763
  58. package/rows/AuthorsList/styles.arrow.css +1 -1
  59. package/rows/CollectionFilter/index.js +91 -2658
  60. package/rows/CollectionFilter/styles.arrow.css +1 -1
  61. package/rows/ElevenStories/index.js +81 -2612
  62. package/rows/ElevenStories/styles.arrow.css +1 -1
  63. package/rows/FourColFiveStories/index.js +75 -2603
  64. package/rows/FourColFiveStories/styles.arrow.css +1 -1
  65. package/rows/FourColGrid/index.js +92 -2623
  66. package/rows/FourColGrid/styles.arrow.css +1 -1
  67. package/rows/FourColPortraitStories/index.js +91 -2622
  68. package/rows/FourColPortraitStories/styles.arrow.css +1 -1
  69. package/rows/FourColSixteenStories/index.js +80 -2617
  70. package/rows/FourColSixteenStories/styles.arrow.css +1 -1
  71. package/rows/FourColTwelveStories/index.js +72 -2596
  72. package/rows/FourColTwelveStories/styles.arrow.css +1 -1
  73. package/rows/FourStorySlider/index.js +84 -2615
  74. package/rows/FourStorySlider/styles.arrow.css +1 -1
  75. package/rows/FourStorySliderPortrait/index.js +84 -2615
  76. package/rows/FourStorySliderPortrait/styles.arrow.css +1 -1
  77. package/rows/FourTabbedBigStorySlider/index.js +80 -2611
  78. package/rows/FourTabbedBigStorySlider/styles.arrow.css +1 -1
  79. package/rows/FullScreenSlider/index.js +85 -2616
  80. package/rows/FullScreenSlider/styles.arrow.css +1 -1
  81. package/rows/HalfScreenSlider/index.js +81 -2612
  82. package/rows/HalfScreenSlider/styles.arrow.css +1 -1
  83. package/rows/ListComponent/index.js +75 -2606
  84. package/rows/ListComponent/styles.arrow.css +1 -1
  85. package/rows/Listicles/index.js +38 -2235
  86. package/rows/Listicles/styles.arrow.css +1 -1
  87. package/rows/MagazineEditions/index.js +24 -2487
  88. package/rows/MagazineEditions/styles.arrow.css +1 -1
  89. package/rows/MagazineHeaderCard/index.js +26 -2489
  90. package/rows/MagazineHeaderCard/styles.arrow.css +1 -1
  91. package/rows/MagazineWidget/index.js +81 -2612
  92. package/rows/MagazineWidget/styles.arrow.css +1 -1
  93. package/rows/OneColStoryList/index.js +92 -2623
  94. package/rows/OneColStoryList/styles.arrow.css +1 -1
  95. package/rows/OpinionCollection/index.js +61 -2583
  96. package/rows/OpinionCollection/styles.arrow.css +1 -1
  97. package/rows/SixColSixStories/index.js +91 -2622
  98. package/rows/SixColSixStories/styles.arrow.css +1 -1
  99. package/rows/StoryCollection/index.js +92 -2659
  100. package/rows/StoryCollection/styles.arrow.css +1 -1
  101. package/rows/TagIntroductionCard/index.js +9 -1816
  102. package/rows/TagIntroductionCard/styles.arrow.css +1 -1
  103. package/rows/ThreeColFlexStories/index.js +91 -2622
  104. package/rows/ThreeColFlexStories/styles.arrow.css +1 -1
  105. package/rows/ThreeColFourteenStories/index.js +72 -2596
  106. package/rows/ThreeColFourteenStories/styles.arrow.css +1 -1
  107. package/rows/ThreeColGrid/index.js +94 -2625
  108. package/rows/ThreeColGrid/styles.arrow.css +1 -1
  109. package/rows/ThreeColSevenStory/index.js +84 -2615
  110. package/rows/ThreeColSevenStory/styles.arrow.css +1 -1
  111. package/rows/ThreeColSixStories/index.js +76 -2607
  112. package/rows/ThreeColSixStories/styles.arrow.css +1 -1
  113. package/rows/ThreeColTwelveStories/index.js +80 -2617
  114. package/rows/ThreeColTwelveStories/styles.arrow.css +1 -1
  115. package/rows/TwoColFourStories/index.js +78 -2609
  116. package/rows/TwoColFourStories/styles.arrow.css +1 -1
  117. package/rows/TwoColFourStoryHighlight/index.js +80 -2617
  118. package/rows/TwoColFourStoryHighlight/styles.arrow.css +1 -1
  119. package/rows/TwoColSevenStories/index.js +77 -2608
  120. package/rows/TwoColSevenStories/styles.arrow.css +1 -1
  121. package/rows/TwoColSixStories/index.js +82 -2619
  122. package/rows/TwoColSixStories/styles.arrow.css +1 -1
  123. package/rows/TwoColTenStoriesSidebar/index.js +79 -2610
  124. package/rows/TwoColTenStoriesSidebar/styles.arrow.css +1 -1
  125. package/rows/TwoColThreeStories/index.js +75 -2606
  126. package/rows/TwoColThreeStories/styles.arrow.css +1 -1
  127. package/story-elements/AlsoRead/index.js +24 -2170
  128. package/story-elements/AlsoRead/styles.arrow.css +1 -1
  129. package/story-elements/Attachment/index.js +15 -1870
  130. package/story-elements/Attachment/styles.arrow.css +1 -1
  131. package/story-elements/BigFact/index.js +16 -1871
  132. package/story-elements/BigFact/styles.arrow.css +1 -1
  133. package/story-elements/BlockQuote/index.js +20 -2157
  134. package/story-elements/BlockQuote/styles.arrow.css +1 -1
  135. package/story-elements/Blurb/index.js +18 -1932
  136. package/story-elements/Blurb/styles.arrow.css +1 -1
  137. package/story-elements/Image/index.js +42 -2251
  138. package/story-elements/Image/styles.arrow.css +1 -1
  139. package/story-elements/ImageGallery/index.js +45 -2254
  140. package/story-elements/ImageGallery/styles.arrow.css +1 -1
  141. package/story-elements/ImageSlideshow/index.js +48 -2257
  142. package/story-elements/ImageSlideshow/styles.arrow.css +1 -1
  143. package/story-elements/QuestionAnswer/index.js +26 -2163
  144. package/story-elements/QuestionAnswer/styles.arrow.css +1 -1
  145. package/story-elements/Quote/index.js +17 -1872
  146. package/story-elements/Quote/styles.arrow.css +1 -1
  147. package/story-elements/Reference/index.js +15 -1870
  148. package/story-elements/Reference/styles.arrow.css +1 -1
  149. package/story-elements/StoryElement/index.js +12 -1725
  150. package/story-elements/Summary/index.js +18 -1873
  151. package/story-elements/Summary/styles.arrow.css +1 -1
  152. package/story-elements/Text/index.js +16 -2153
  153. package/story-elements/Text/styles.arrow.css +1 -1
  154. package/story-elements/Video/index.js +12 -1725
  155. package/story-elements/Video/styles.arrow.css +1 -1
  156. package/story-templates/ListicleStoryTemplate/index.js +282 -3167
  157. package/story-templates/ListicleStoryTemplate/styles.arrow.css +1 -1
  158. package/story-templates/LiveBlogStoryTemplate/index.js +504 -3389
  159. package/story-templates/LiveBlogStoryTemplate/styles.arrow.css +1 -1
  160. package/story-templates/PhotoStoryTemplate/index.js +287 -3172
  161. package/story-templates/PhotoStoryTemplate/styles.arrow.css +1 -1
  162. package/story-templates/TextStoryTemplate/index.js +416 -3301
  163. package/story-templates/TextStoryTemplate/styles.arrow.css +1 -1
  164. package/story-templates/VideoStoryTemplate/index.js +382 -3267
  165. package/story-templates/VideoStoryTemplate/styles.arrow.css +1 -1
  166. package/atoms/ExtendedLoadMore/index-e7cde739.js +0 -3051
@@ -2,1829 +2,22 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var _getClassName = require('babel-plugin-react-css-modules/dist/browser/getClassName');
5
6
  var React = require('react');
6
7
  var PropTypes = require('prop-types');
8
+ require('@babel/runtime/helpers/asyncToGenerator');
9
+ require('@babel/runtime/helpers/typeof');
10
+ require('@babel/runtime/regenerator');
11
+ require('lodash');
7
12
  require('react-timeago');
8
13
  require('date-fns-tz');
9
14
 
10
15
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
16
 
17
+ var _getClassName__default = /*#__PURE__*/_interopDefaultLegacy(_getClassName);
12
18
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
13
19
  var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
14
20
 
15
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
16
-
17
- function getDefaultExportFromCjs (x) {
18
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
19
- }
20
-
21
- function createCommonjsModule(fn) {
22
- var module = { exports: {} };
23
- return fn(module, module.exports), module.exports;
24
- }
25
-
26
- var optionsDefaults_1 = createCommonjsModule(function (module, exports) {
27
-
28
- Object.defineProperty(exports, "__esModule", {
29
- value: true
30
- });
31
- exports["default"] = void 0;
32
- var optionsDefaults = {
33
- attributeNames: {
34
- styleName: 'className'
35
- },
36
- generateScopedName: '[path]___[name]__[local]___[hash:base64:5]',
37
- handleMissingStyleName: 'throw'
38
- };
39
- var _default = optionsDefaults;
40
- exports["default"] = _default;
41
-
42
-
43
- });
44
-
45
- var getClassName = createCommonjsModule(function (module, exports) {
46
-
47
- Object.defineProperty(exports, "__esModule", {
48
- value: true
49
- });
50
- exports["default"] = void 0;
51
-
52
- var _optionsDefaults = _interopRequireDefault(optionsDefaults_1);
53
-
54
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
55
-
56
- var isNamespacedStyleName = function isNamespacedStyleName(styleName) {
57
- return styleName.indexOf('.') !== -1;
58
- };
59
-
60
- var handleError = function handleError(message, handleMissingStyleName) {
61
- if (handleMissingStyleName === 'throw') {
62
- throw new Error(message);
63
- } else if (handleMissingStyleName === 'warn') {
64
- // eslint-disable-next-line no-console
65
- console.warn(message);
66
- }
67
-
68
- return null;
69
- };
70
-
71
- var getClassNameForNamespacedStyleName = function getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
72
- // Note:
73
- // Do not use the desctructing syntax with Babel.
74
- // Desctructing adds _slicedToArray helper.
75
- var styleNameParts = styleName.split('.');
76
- var importName = styleNameParts[0];
77
- var moduleName = styleNameParts[1];
78
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
79
-
80
- if (!moduleName) {
81
- return handleError('Invalid style name: ' + styleName, handleMissingStyleName);
82
- }
83
-
84
- if (!styleModuleImportMap[importName]) {
85
- return handleError('CSS module import does not exist: ' + importName, handleMissingStyleName);
86
- }
87
-
88
- if (!styleModuleImportMap[importName][moduleName]) {
89
- return handleError('CSS module does not exist: ' + moduleName, handleMissingStyleName);
90
- }
91
-
92
- return styleModuleImportMap[importName][moduleName];
93
- };
94
-
95
- var getClassNameFromMultipleImports = function getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
96
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
97
- var importKeysWithMatches = Object.keys(styleModuleImportMap).map(function (importKey) {
98
- return styleModuleImportMap[importKey][styleName] && importKey;
99
- }).filter(function (importKey) {
100
- return importKey;
101
- });
102
-
103
- if (importKeysWithMatches.length > 1) {
104
- throw new Error('Cannot resolve styleName "' + styleName + '" because it is present in multiple imports:' + '\n\n\t' + importKeysWithMatches.join('\n\t') + '\n\nYou can resolve this by using a named import, e.g:' + '\n\n\timport foo from "' + importKeysWithMatches[0] + '";' + '\n\t<div styleName="foo.' + styleName + '" />' + '\n\n');
105
- }
106
-
107
- if (importKeysWithMatches.length === 0) {
108
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
109
- }
110
-
111
- return styleModuleImportMap[importKeysWithMatches[0]][styleName];
112
- };
113
-
114
- var _default = function _default(styleNameValue, styleModuleImportMap, options) {
115
- var styleModuleImportMapKeys = Object.keys(styleModuleImportMap);
116
-
117
- var _ref = options || {},
118
- _ref$handleMissingSty = _ref.handleMissingStyleName,
119
- handleMissingStyleName = _ref$handleMissingSty === void 0 ? _optionsDefaults["default"].handleMissingStyleName : _ref$handleMissingSty,
120
- _ref$autoResolveMulti = _ref.autoResolveMultipleImports,
121
- autoResolveMultipleImports = _ref$autoResolveMulti === void 0 ? _optionsDefaults["default"].autoResolveMultipleImports : _ref$autoResolveMulti;
122
-
123
- if (!styleNameValue) {
124
- return '';
125
- }
126
-
127
- return styleNameValue.split(' ').filter(function (styleName) {
128
- return styleName;
129
- }).map(function (styleName) {
130
- if (isNamespacedStyleName(styleName)) {
131
- return getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleName);
132
- }
133
-
134
- if (styleModuleImportMapKeys.length === 0) {
135
- throw new Error('Cannot use styleName attribute for style name \'' + styleName + '\' without importing at least one stylesheet.');
136
- }
137
-
138
- if (styleModuleImportMapKeys.length > 1) {
139
- if (!autoResolveMultipleImports) {
140
- throw new Error('Cannot use anonymous style name \'' + styleName + '\' with more than one stylesheet import without setting \'autoResolveMultipleImports\' to true.');
141
- }
142
-
143
- return getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleName);
144
- }
145
-
146
- var styleModuleMap = styleModuleImportMap[styleModuleImportMapKeys[0]];
147
-
148
- if (!styleModuleMap[styleName]) {
149
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
150
- }
151
-
152
- return styleModuleMap[styleName];
153
- }).filter(function (className) {
154
- // Remove any styles which could not be found (if handleMissingStyleName === 'ignore')
155
- return className;
156
- }).join(' ');
157
- };
158
-
159
- exports["default"] = _default;
160
-
161
-
162
- });
163
-
164
- var _getClassName = /*@__PURE__*/getDefaultExportFromCjs(getClassName);
165
-
166
- /**
167
- * Copyright (c) 2014-present, Facebook, Inc.
168
- *
169
- * This source code is licensed under the MIT license found in the
170
- * LICENSE file in the root directory of this source tree.
171
- */
172
-
173
- createCommonjsModule(function (module) {
174
- var runtime = (function (exports) {
175
-
176
- var Op = Object.prototype;
177
- var hasOwn = Op.hasOwnProperty;
178
- var undefined$1; // More compressible than void 0.
179
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
180
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
181
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
182
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
183
-
184
- function define(obj, key, value) {
185
- Object.defineProperty(obj, key, {
186
- value: value,
187
- enumerable: true,
188
- configurable: true,
189
- writable: true
190
- });
191
- return obj[key];
192
- }
193
- try {
194
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
195
- define({}, "");
196
- } catch (err) {
197
- define = function(obj, key, value) {
198
- return obj[key] = value;
199
- };
200
- }
201
-
202
- function wrap(innerFn, outerFn, self, tryLocsList) {
203
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
204
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
205
- var generator = Object.create(protoGenerator.prototype);
206
- var context = new Context(tryLocsList || []);
207
-
208
- // The ._invoke method unifies the implementations of the .next,
209
- // .throw, and .return methods.
210
- generator._invoke = makeInvokeMethod(innerFn, self, context);
211
-
212
- return generator;
213
- }
214
- exports.wrap = wrap;
215
-
216
- // Try/catch helper to minimize deoptimizations. Returns a completion
217
- // record like context.tryEntries[i].completion. This interface could
218
- // have been (and was previously) designed to take a closure to be
219
- // invoked without arguments, but in all the cases we care about we
220
- // already have an existing method we want to call, so there's no need
221
- // to create a new function object. We can even get away with assuming
222
- // the method takes exactly one argument, since that happens to be true
223
- // in every case, so we don't have to touch the arguments object. The
224
- // only additional allocation required is the completion record, which
225
- // has a stable shape and so hopefully should be cheap to allocate.
226
- function tryCatch(fn, obj, arg) {
227
- try {
228
- return { type: "normal", arg: fn.call(obj, arg) };
229
- } catch (err) {
230
- return { type: "throw", arg: err };
231
- }
232
- }
233
-
234
- var GenStateSuspendedStart = "suspendedStart";
235
- var GenStateSuspendedYield = "suspendedYield";
236
- var GenStateExecuting = "executing";
237
- var GenStateCompleted = "completed";
238
-
239
- // Returning this object from the innerFn has the same effect as
240
- // breaking out of the dispatch switch statement.
241
- var ContinueSentinel = {};
242
-
243
- // Dummy constructor functions that we use as the .constructor and
244
- // .constructor.prototype properties for functions that return Generator
245
- // objects. For full spec compliance, you may wish to configure your
246
- // minifier not to mangle the names of these two functions.
247
- function Generator() {}
248
- function GeneratorFunction() {}
249
- function GeneratorFunctionPrototype() {}
250
-
251
- // This is a polyfill for %IteratorPrototype% for environments that
252
- // don't natively support it.
253
- var IteratorPrototype = {};
254
- define(IteratorPrototype, iteratorSymbol, function () {
255
- return this;
256
- });
257
-
258
- var getProto = Object.getPrototypeOf;
259
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
260
- if (NativeIteratorPrototype &&
261
- NativeIteratorPrototype !== Op &&
262
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
263
- // This environment has a native %IteratorPrototype%; use it instead
264
- // of the polyfill.
265
- IteratorPrototype = NativeIteratorPrototype;
266
- }
267
-
268
- var Gp = GeneratorFunctionPrototype.prototype =
269
- Generator.prototype = Object.create(IteratorPrototype);
270
- GeneratorFunction.prototype = GeneratorFunctionPrototype;
271
- define(Gp, "constructor", GeneratorFunctionPrototype);
272
- define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
273
- GeneratorFunction.displayName = define(
274
- GeneratorFunctionPrototype,
275
- toStringTagSymbol,
276
- "GeneratorFunction"
277
- );
278
-
279
- // Helper for defining the .next, .throw, and .return methods of the
280
- // Iterator interface in terms of a single ._invoke method.
281
- function defineIteratorMethods(prototype) {
282
- ["next", "throw", "return"].forEach(function(method) {
283
- define(prototype, method, function(arg) {
284
- return this._invoke(method, arg);
285
- });
286
- });
287
- }
288
-
289
- exports.isGeneratorFunction = function(genFun) {
290
- var ctor = typeof genFun === "function" && genFun.constructor;
291
- return ctor
292
- ? ctor === GeneratorFunction ||
293
- // For the native GeneratorFunction constructor, the best we can
294
- // do is to check its .name property.
295
- (ctor.displayName || ctor.name) === "GeneratorFunction"
296
- : false;
297
- };
298
-
299
- exports.mark = function(genFun) {
300
- if (Object.setPrototypeOf) {
301
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
302
- } else {
303
- genFun.__proto__ = GeneratorFunctionPrototype;
304
- define(genFun, toStringTagSymbol, "GeneratorFunction");
305
- }
306
- genFun.prototype = Object.create(Gp);
307
- return genFun;
308
- };
309
-
310
- // Within the body of any async function, `await x` is transformed to
311
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
312
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
313
- // meant to be awaited.
314
- exports.awrap = function(arg) {
315
- return { __await: arg };
316
- };
317
-
318
- function AsyncIterator(generator, PromiseImpl) {
319
- function invoke(method, arg, resolve, reject) {
320
- var record = tryCatch(generator[method], generator, arg);
321
- if (record.type === "throw") {
322
- reject(record.arg);
323
- } else {
324
- var result = record.arg;
325
- var value = result.value;
326
- if (value &&
327
- typeof value === "object" &&
328
- hasOwn.call(value, "__await")) {
329
- return PromiseImpl.resolve(value.__await).then(function(value) {
330
- invoke("next", value, resolve, reject);
331
- }, function(err) {
332
- invoke("throw", err, resolve, reject);
333
- });
334
- }
335
-
336
- return PromiseImpl.resolve(value).then(function(unwrapped) {
337
- // When a yielded Promise is resolved, its final value becomes
338
- // the .value of the Promise<{value,done}> result for the
339
- // current iteration.
340
- result.value = unwrapped;
341
- resolve(result);
342
- }, function(error) {
343
- // If a rejected Promise was yielded, throw the rejection back
344
- // into the async generator function so it can be handled there.
345
- return invoke("throw", error, resolve, reject);
346
- });
347
- }
348
- }
349
-
350
- var previousPromise;
351
-
352
- function enqueue(method, arg) {
353
- function callInvokeWithMethodAndArg() {
354
- return new PromiseImpl(function(resolve, reject) {
355
- invoke(method, arg, resolve, reject);
356
- });
357
- }
358
-
359
- return previousPromise =
360
- // If enqueue has been called before, then we want to wait until
361
- // all previous Promises have been resolved before calling invoke,
362
- // so that results are always delivered in the correct order. If
363
- // enqueue has not been called before, then it is important to
364
- // call invoke immediately, without waiting on a callback to fire,
365
- // so that the async generator function has the opportunity to do
366
- // any necessary setup in a predictable way. This predictability
367
- // is why the Promise constructor synchronously invokes its
368
- // executor callback, and why async functions synchronously
369
- // execute code before the first await. Since we implement simple
370
- // async functions in terms of async generators, it is especially
371
- // important to get this right, even though it requires care.
372
- previousPromise ? previousPromise.then(
373
- callInvokeWithMethodAndArg,
374
- // Avoid propagating failures to Promises returned by later
375
- // invocations of the iterator.
376
- callInvokeWithMethodAndArg
377
- ) : callInvokeWithMethodAndArg();
378
- }
379
-
380
- // Define the unified helper method that is used to implement .next,
381
- // .throw, and .return (see defineIteratorMethods).
382
- this._invoke = enqueue;
383
- }
384
-
385
- defineIteratorMethods(AsyncIterator.prototype);
386
- define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
387
- return this;
388
- });
389
- exports.AsyncIterator = AsyncIterator;
390
-
391
- // Note that simple async functions are implemented on top of
392
- // AsyncIterator objects; they just return a Promise for the value of
393
- // the final result produced by the iterator.
394
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
395
- if (PromiseImpl === void 0) PromiseImpl = Promise;
396
-
397
- var iter = new AsyncIterator(
398
- wrap(innerFn, outerFn, self, tryLocsList),
399
- PromiseImpl
400
- );
401
-
402
- return exports.isGeneratorFunction(outerFn)
403
- ? iter // If outerFn is a generator, return the full iterator.
404
- : iter.next().then(function(result) {
405
- return result.done ? result.value : iter.next();
406
- });
407
- };
408
-
409
- function makeInvokeMethod(innerFn, self, context) {
410
- var state = GenStateSuspendedStart;
411
-
412
- return function invoke(method, arg) {
413
- if (state === GenStateExecuting) {
414
- throw new Error("Generator is already running");
415
- }
416
-
417
- if (state === GenStateCompleted) {
418
- if (method === "throw") {
419
- throw arg;
420
- }
421
-
422
- // Be forgiving, per 25.3.3.3.3 of the spec:
423
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
424
- return doneResult();
425
- }
426
-
427
- context.method = method;
428
- context.arg = arg;
429
-
430
- while (true) {
431
- var delegate = context.delegate;
432
- if (delegate) {
433
- var delegateResult = maybeInvokeDelegate(delegate, context);
434
- if (delegateResult) {
435
- if (delegateResult === ContinueSentinel) continue;
436
- return delegateResult;
437
- }
438
- }
439
-
440
- if (context.method === "next") {
441
- // Setting context._sent for legacy support of Babel's
442
- // function.sent implementation.
443
- context.sent = context._sent = context.arg;
444
-
445
- } else if (context.method === "throw") {
446
- if (state === GenStateSuspendedStart) {
447
- state = GenStateCompleted;
448
- throw context.arg;
449
- }
450
-
451
- context.dispatchException(context.arg);
452
-
453
- } else if (context.method === "return") {
454
- context.abrupt("return", context.arg);
455
- }
456
-
457
- state = GenStateExecuting;
458
-
459
- var record = tryCatch(innerFn, self, context);
460
- if (record.type === "normal") {
461
- // If an exception is thrown from innerFn, we leave state ===
462
- // GenStateExecuting and loop back for another invocation.
463
- state = context.done
464
- ? GenStateCompleted
465
- : GenStateSuspendedYield;
466
-
467
- if (record.arg === ContinueSentinel) {
468
- continue;
469
- }
470
-
471
- return {
472
- value: record.arg,
473
- done: context.done
474
- };
475
-
476
- } else if (record.type === "throw") {
477
- state = GenStateCompleted;
478
- // Dispatch the exception by looping back around to the
479
- // context.dispatchException(context.arg) call above.
480
- context.method = "throw";
481
- context.arg = record.arg;
482
- }
483
- }
484
- };
485
- }
486
-
487
- // Call delegate.iterator[context.method](context.arg) and handle the
488
- // result, either by returning a { value, done } result from the
489
- // delegate iterator, or by modifying context.method and context.arg,
490
- // setting context.delegate to null, and returning the ContinueSentinel.
491
- function maybeInvokeDelegate(delegate, context) {
492
- var method = delegate.iterator[context.method];
493
- if (method === undefined$1) {
494
- // A .throw or .return when the delegate iterator has no .throw
495
- // method always terminates the yield* loop.
496
- context.delegate = null;
497
-
498
- if (context.method === "throw") {
499
- // Note: ["return"] must be used for ES3 parsing compatibility.
500
- if (delegate.iterator["return"]) {
501
- // If the delegate iterator has a return method, give it a
502
- // chance to clean up.
503
- context.method = "return";
504
- context.arg = undefined$1;
505
- maybeInvokeDelegate(delegate, context);
506
-
507
- if (context.method === "throw") {
508
- // If maybeInvokeDelegate(context) changed context.method from
509
- // "return" to "throw", let that override the TypeError below.
510
- return ContinueSentinel;
511
- }
512
- }
513
-
514
- context.method = "throw";
515
- context.arg = new TypeError(
516
- "The iterator does not provide a 'throw' method");
517
- }
518
-
519
- return ContinueSentinel;
520
- }
521
-
522
- var record = tryCatch(method, delegate.iterator, context.arg);
523
-
524
- if (record.type === "throw") {
525
- context.method = "throw";
526
- context.arg = record.arg;
527
- context.delegate = null;
528
- return ContinueSentinel;
529
- }
530
-
531
- var info = record.arg;
532
-
533
- if (! info) {
534
- context.method = "throw";
535
- context.arg = new TypeError("iterator result is not an object");
536
- context.delegate = null;
537
- return ContinueSentinel;
538
- }
539
-
540
- if (info.done) {
541
- // Assign the result of the finished delegate to the temporary
542
- // variable specified by delegate.resultName (see delegateYield).
543
- context[delegate.resultName] = info.value;
544
-
545
- // Resume execution at the desired location (see delegateYield).
546
- context.next = delegate.nextLoc;
547
-
548
- // If context.method was "throw" but the delegate handled the
549
- // exception, let the outer generator proceed normally. If
550
- // context.method was "next", forget context.arg since it has been
551
- // "consumed" by the delegate iterator. If context.method was
552
- // "return", allow the original .return call to continue in the
553
- // outer generator.
554
- if (context.method !== "return") {
555
- context.method = "next";
556
- context.arg = undefined$1;
557
- }
558
-
559
- } else {
560
- // Re-yield the result returned by the delegate method.
561
- return info;
562
- }
563
-
564
- // The delegate iterator is finished, so forget it and continue with
565
- // the outer generator.
566
- context.delegate = null;
567
- return ContinueSentinel;
568
- }
569
-
570
- // Define Generator.prototype.{next,throw,return} in terms of the
571
- // unified ._invoke helper method.
572
- defineIteratorMethods(Gp);
573
-
574
- define(Gp, toStringTagSymbol, "Generator");
575
-
576
- // A Generator should always return itself as the iterator object when the
577
- // @@iterator function is called on it. Some browsers' implementations of the
578
- // iterator prototype chain incorrectly implement this, causing the Generator
579
- // object to not be returned from this call. This ensures that doesn't happen.
580
- // See https://github.com/facebook/regenerator/issues/274 for more details.
581
- define(Gp, iteratorSymbol, function() {
582
- return this;
583
- });
584
-
585
- define(Gp, "toString", function() {
586
- return "[object Generator]";
587
- });
588
-
589
- function pushTryEntry(locs) {
590
- var entry = { tryLoc: locs[0] };
591
-
592
- if (1 in locs) {
593
- entry.catchLoc = locs[1];
594
- }
595
-
596
- if (2 in locs) {
597
- entry.finallyLoc = locs[2];
598
- entry.afterLoc = locs[3];
599
- }
600
-
601
- this.tryEntries.push(entry);
602
- }
603
-
604
- function resetTryEntry(entry) {
605
- var record = entry.completion || {};
606
- record.type = "normal";
607
- delete record.arg;
608
- entry.completion = record;
609
- }
610
-
611
- function Context(tryLocsList) {
612
- // The root entry object (effectively a try statement without a catch
613
- // or a finally block) gives us a place to store values thrown from
614
- // locations where there is no enclosing try statement.
615
- this.tryEntries = [{ tryLoc: "root" }];
616
- tryLocsList.forEach(pushTryEntry, this);
617
- this.reset(true);
618
- }
619
-
620
- exports.keys = function(object) {
621
- var keys = [];
622
- for (var key in object) {
623
- keys.push(key);
624
- }
625
- keys.reverse();
626
-
627
- // Rather than returning an object with a next method, we keep
628
- // things simple and return the next function itself.
629
- return function next() {
630
- while (keys.length) {
631
- var key = keys.pop();
632
- if (key in object) {
633
- next.value = key;
634
- next.done = false;
635
- return next;
636
- }
637
- }
638
-
639
- // To avoid creating an additional object, we just hang the .value
640
- // and .done properties off the next function object itself. This
641
- // also ensures that the minifier will not anonymize the function.
642
- next.done = true;
643
- return next;
644
- };
645
- };
646
-
647
- function values(iterable) {
648
- if (iterable) {
649
- var iteratorMethod = iterable[iteratorSymbol];
650
- if (iteratorMethod) {
651
- return iteratorMethod.call(iterable);
652
- }
653
-
654
- if (typeof iterable.next === "function") {
655
- return iterable;
656
- }
657
-
658
- if (!isNaN(iterable.length)) {
659
- var i = -1, next = function next() {
660
- while (++i < iterable.length) {
661
- if (hasOwn.call(iterable, i)) {
662
- next.value = iterable[i];
663
- next.done = false;
664
- return next;
665
- }
666
- }
667
-
668
- next.value = undefined$1;
669
- next.done = true;
670
-
671
- return next;
672
- };
673
-
674
- return next.next = next;
675
- }
676
- }
677
-
678
- // Return an iterator with no values.
679
- return { next: doneResult };
680
- }
681
- exports.values = values;
682
-
683
- function doneResult() {
684
- return { value: undefined$1, done: true };
685
- }
686
-
687
- Context.prototype = {
688
- constructor: Context,
689
-
690
- reset: function(skipTempReset) {
691
- this.prev = 0;
692
- this.next = 0;
693
- // Resetting context._sent for legacy support of Babel's
694
- // function.sent implementation.
695
- this.sent = this._sent = undefined$1;
696
- this.done = false;
697
- this.delegate = null;
698
-
699
- this.method = "next";
700
- this.arg = undefined$1;
701
-
702
- this.tryEntries.forEach(resetTryEntry);
703
-
704
- if (!skipTempReset) {
705
- for (var name in this) {
706
- // Not sure about the optimal order of these conditions:
707
- if (name.charAt(0) === "t" &&
708
- hasOwn.call(this, name) &&
709
- !isNaN(+name.slice(1))) {
710
- this[name] = undefined$1;
711
- }
712
- }
713
- }
714
- },
715
-
716
- stop: function() {
717
- this.done = true;
718
-
719
- var rootEntry = this.tryEntries[0];
720
- var rootRecord = rootEntry.completion;
721
- if (rootRecord.type === "throw") {
722
- throw rootRecord.arg;
723
- }
724
-
725
- return this.rval;
726
- },
727
-
728
- dispatchException: function(exception) {
729
- if (this.done) {
730
- throw exception;
731
- }
732
-
733
- var context = this;
734
- function handle(loc, caught) {
735
- record.type = "throw";
736
- record.arg = exception;
737
- context.next = loc;
738
-
739
- if (caught) {
740
- // If the dispatched exception was caught by a catch block,
741
- // then let that catch block handle the exception normally.
742
- context.method = "next";
743
- context.arg = undefined$1;
744
- }
745
-
746
- return !! caught;
747
- }
748
-
749
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
750
- var entry = this.tryEntries[i];
751
- var record = entry.completion;
752
-
753
- if (entry.tryLoc === "root") {
754
- // Exception thrown outside of any try block that could handle
755
- // it, so set the completion value of the entire function to
756
- // throw the exception.
757
- return handle("end");
758
- }
759
-
760
- if (entry.tryLoc <= this.prev) {
761
- var hasCatch = hasOwn.call(entry, "catchLoc");
762
- var hasFinally = hasOwn.call(entry, "finallyLoc");
763
-
764
- if (hasCatch && hasFinally) {
765
- if (this.prev < entry.catchLoc) {
766
- return handle(entry.catchLoc, true);
767
- } else if (this.prev < entry.finallyLoc) {
768
- return handle(entry.finallyLoc);
769
- }
770
-
771
- } else if (hasCatch) {
772
- if (this.prev < entry.catchLoc) {
773
- return handle(entry.catchLoc, true);
774
- }
775
-
776
- } else if (hasFinally) {
777
- if (this.prev < entry.finallyLoc) {
778
- return handle(entry.finallyLoc);
779
- }
780
-
781
- } else {
782
- throw new Error("try statement without catch or finally");
783
- }
784
- }
785
- }
786
- },
787
-
788
- abrupt: function(type, arg) {
789
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
790
- var entry = this.tryEntries[i];
791
- if (entry.tryLoc <= this.prev &&
792
- hasOwn.call(entry, "finallyLoc") &&
793
- this.prev < entry.finallyLoc) {
794
- var finallyEntry = entry;
795
- break;
796
- }
797
- }
798
-
799
- if (finallyEntry &&
800
- (type === "break" ||
801
- type === "continue") &&
802
- finallyEntry.tryLoc <= arg &&
803
- arg <= finallyEntry.finallyLoc) {
804
- // Ignore the finally entry if control is not jumping to a
805
- // location outside the try/catch block.
806
- finallyEntry = null;
807
- }
808
-
809
- var record = finallyEntry ? finallyEntry.completion : {};
810
- record.type = type;
811
- record.arg = arg;
812
-
813
- if (finallyEntry) {
814
- this.method = "next";
815
- this.next = finallyEntry.finallyLoc;
816
- return ContinueSentinel;
817
- }
818
-
819
- return this.complete(record);
820
- },
821
-
822
- complete: function(record, afterLoc) {
823
- if (record.type === "throw") {
824
- throw record.arg;
825
- }
826
-
827
- if (record.type === "break" ||
828
- record.type === "continue") {
829
- this.next = record.arg;
830
- } else if (record.type === "return") {
831
- this.rval = this.arg = record.arg;
832
- this.method = "return";
833
- this.next = "end";
834
- } else if (record.type === "normal" && afterLoc) {
835
- this.next = afterLoc;
836
- }
837
-
838
- return ContinueSentinel;
839
- },
840
-
841
- finish: function(finallyLoc) {
842
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
843
- var entry = this.tryEntries[i];
844
- if (entry.finallyLoc === finallyLoc) {
845
- this.complete(entry.completion, entry.afterLoc);
846
- resetTryEntry(entry);
847
- return ContinueSentinel;
848
- }
849
- }
850
- },
851
-
852
- "catch": function(tryLoc) {
853
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
854
- var entry = this.tryEntries[i];
855
- if (entry.tryLoc === tryLoc) {
856
- var record = entry.completion;
857
- if (record.type === "throw") {
858
- var thrown = record.arg;
859
- resetTryEntry(entry);
860
- }
861
- return thrown;
862
- }
863
- }
864
-
865
- // The context.catch method must only be called with a location
866
- // argument that corresponds to a known catch block.
867
- throw new Error("illegal catch attempt");
868
- },
869
-
870
- delegateYield: function(iterable, resultName, nextLoc) {
871
- this.delegate = {
872
- iterator: values(iterable),
873
- resultName: resultName,
874
- nextLoc: nextLoc
875
- };
876
-
877
- if (this.method === "next") {
878
- // Deliberately forget the last sent value so that we don't
879
- // accidentally pass it on to the delegate.
880
- this.arg = undefined$1;
881
- }
882
-
883
- return ContinueSentinel;
884
- }
885
- };
886
-
887
- // Regardless of whether this script is executing as a CommonJS module
888
- // or not, return the runtime object so that we can declare the variable
889
- // regeneratorRuntime in the outer scope, which allows this module to be
890
- // injected easily by `bin/regenerator --include-runtime script.js`.
891
- return exports;
892
-
893
- }(
894
- // If this script is executing as a CommonJS module, use module.exports
895
- // as the regeneratorRuntime namespace. Otherwise create a new empty
896
- // object. Either way, the resulting object will be used to initialize
897
- // the regeneratorRuntime variable at the top of this file.
898
- module.exports
899
- ));
900
-
901
- try {
902
- regeneratorRuntime = runtime;
903
- } catch (accidentalStrictMode) {
904
- // This module should not be running in strict mode, so the above
905
- // assignment should always work unless something is misconfigured. Just
906
- // in case runtime.js accidentally runs in strict mode, in modern engines
907
- // we can explicitly access globalThis. In older engines we can escape
908
- // strict mode using a global Function call. This could conceivably fail
909
- // if a Content Security Policy forbids using Function, but in that case
910
- // the proper solution is to fix the accidental strict mode problem. If
911
- // you've misconfigured your bundler to force strict mode and applied a
912
- // CSP to forbid Function, and you're not willing to fix either of those
913
- // problems, please detail your unique predicament in a GitHub issue.
914
- if (typeof globalThis === "object") {
915
- globalThis.regeneratorRuntime = runtime;
916
- } else {
917
- Function("r", "regeneratorRuntime = r")(runtime);
918
- }
919
- }
920
- });
921
-
922
- /** Detect free variable `global` from Node.js. */
923
-
924
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
925
-
926
- var _freeGlobal = freeGlobal;
927
-
928
- /** Detect free variable `self`. */
929
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
930
-
931
- /** Used as a reference to the global object. */
932
- var root = _freeGlobal || freeSelf || Function('return this')();
933
-
934
- var _root = root;
935
-
936
- /** Built-in value references. */
937
- var Symbol$1 = _root.Symbol;
938
-
939
- var _Symbol = Symbol$1;
940
-
941
- /** Used for built-in method references. */
942
- var objectProto$4 = Object.prototype;
943
-
944
- /** Used to check objects for own properties. */
945
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
946
-
947
- /**
948
- * Used to resolve the
949
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
950
- * of values.
951
- */
952
- var nativeObjectToString$1 = objectProto$4.toString;
953
-
954
- /** Built-in value references. */
955
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
956
-
957
- /**
958
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
959
- *
960
- * @private
961
- * @param {*} value The value to query.
962
- * @returns {string} Returns the raw `toStringTag`.
963
- */
964
- function getRawTag(value) {
965
- var isOwn = hasOwnProperty$3.call(value, symToStringTag$1),
966
- tag = value[symToStringTag$1];
967
-
968
- try {
969
- value[symToStringTag$1] = undefined;
970
- var unmasked = true;
971
- } catch (e) {}
972
-
973
- var result = nativeObjectToString$1.call(value);
974
- if (unmasked) {
975
- if (isOwn) {
976
- value[symToStringTag$1] = tag;
977
- } else {
978
- delete value[symToStringTag$1];
979
- }
980
- }
981
- return result;
982
- }
983
-
984
- var _getRawTag = getRawTag;
985
-
986
- /** Used for built-in method references. */
987
- var objectProto$3 = Object.prototype;
988
-
989
- /**
990
- * Used to resolve the
991
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
992
- * of values.
993
- */
994
- var nativeObjectToString = objectProto$3.toString;
995
-
996
- /**
997
- * Converts `value` to a string using `Object.prototype.toString`.
998
- *
999
- * @private
1000
- * @param {*} value The value to convert.
1001
- * @returns {string} Returns the converted string.
1002
- */
1003
- function objectToString(value) {
1004
- return nativeObjectToString.call(value);
1005
- }
1006
-
1007
- var _objectToString = objectToString;
1008
-
1009
- /** `Object#toString` result references. */
1010
- var nullTag = '[object Null]',
1011
- undefinedTag = '[object Undefined]';
1012
-
1013
- /** Built-in value references. */
1014
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
1015
-
1016
- /**
1017
- * The base implementation of `getTag` without fallbacks for buggy environments.
1018
- *
1019
- * @private
1020
- * @param {*} value The value to query.
1021
- * @returns {string} Returns the `toStringTag`.
1022
- */
1023
- function baseGetTag(value) {
1024
- if (value == null) {
1025
- return value === undefined ? undefinedTag : nullTag;
1026
- }
1027
- return (symToStringTag && symToStringTag in Object(value))
1028
- ? _getRawTag(value)
1029
- : _objectToString(value);
1030
- }
1031
-
1032
- var _baseGetTag = baseGetTag;
1033
-
1034
- /**
1035
- * Checks if `value` is the
1036
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1037
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1038
- *
1039
- * @static
1040
- * @memberOf _
1041
- * @since 0.1.0
1042
- * @category Lang
1043
- * @param {*} value The value to check.
1044
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1045
- * @example
1046
- *
1047
- * _.isObject({});
1048
- * // => true
1049
- *
1050
- * _.isObject([1, 2, 3]);
1051
- * // => true
1052
- *
1053
- * _.isObject(_.noop);
1054
- * // => true
1055
- *
1056
- * _.isObject(null);
1057
- * // => false
1058
- */
1059
- function isObject(value) {
1060
- var type = typeof value;
1061
- return value != null && (type == 'object' || type == 'function');
1062
- }
1063
-
1064
- var isObject_1 = isObject;
1065
-
1066
- /** `Object#toString` result references. */
1067
- var asyncTag = '[object AsyncFunction]',
1068
- funcTag = '[object Function]',
1069
- genTag = '[object GeneratorFunction]',
1070
- proxyTag = '[object Proxy]';
1071
-
1072
- /**
1073
- * Checks if `value` is classified as a `Function` object.
1074
- *
1075
- * @static
1076
- * @memberOf _
1077
- * @since 0.1.0
1078
- * @category Lang
1079
- * @param {*} value The value to check.
1080
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
1081
- * @example
1082
- *
1083
- * _.isFunction(_);
1084
- * // => true
1085
- *
1086
- * _.isFunction(/abc/);
1087
- * // => false
1088
- */
1089
- function isFunction(value) {
1090
- if (!isObject_1(value)) {
1091
- return false;
1092
- }
1093
- // The use of `Object#toString` avoids issues with the `typeof` operator
1094
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
1095
- var tag = _baseGetTag(value);
1096
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
1097
- }
1098
-
1099
- var isFunction_1 = isFunction;
1100
-
1101
- /** Used to detect overreaching core-js shims. */
1102
- var coreJsData = _root['__core-js_shared__'];
1103
-
1104
- var _coreJsData = coreJsData;
1105
-
1106
- /** Used to detect methods masquerading as native. */
1107
- var maskSrcKey = (function() {
1108
- var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
1109
- return uid ? ('Symbol(src)_1.' + uid) : '';
1110
- }());
1111
-
1112
- /**
1113
- * Checks if `func` has its source masked.
1114
- *
1115
- * @private
1116
- * @param {Function} func The function to check.
1117
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
1118
- */
1119
- function isMasked(func) {
1120
- return !!maskSrcKey && (maskSrcKey in func);
1121
- }
1122
-
1123
- var _isMasked = isMasked;
1124
-
1125
- /** Used for built-in method references. */
1126
- var funcProto$1 = Function.prototype;
1127
-
1128
- /** Used to resolve the decompiled source of functions. */
1129
- var funcToString$1 = funcProto$1.toString;
1130
-
1131
- /**
1132
- * Converts `func` to its source code.
1133
- *
1134
- * @private
1135
- * @param {Function} func The function to convert.
1136
- * @returns {string} Returns the source code.
1137
- */
1138
- function toSource(func) {
1139
- if (func != null) {
1140
- try {
1141
- return funcToString$1.call(func);
1142
- } catch (e) {}
1143
- try {
1144
- return (func + '');
1145
- } catch (e) {}
1146
- }
1147
- return '';
1148
- }
1149
-
1150
- var _toSource = toSource;
1151
-
1152
- /**
1153
- * Used to match `RegExp`
1154
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
1155
- */
1156
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
1157
-
1158
- /** Used to detect host constructors (Safari). */
1159
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
1160
-
1161
- /** Used for built-in method references. */
1162
- var funcProto = Function.prototype,
1163
- objectProto$2 = Object.prototype;
1164
-
1165
- /** Used to resolve the decompiled source of functions. */
1166
- var funcToString = funcProto.toString;
1167
-
1168
- /** Used to check objects for own properties. */
1169
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
1170
-
1171
- /** Used to detect if a method is native. */
1172
- var reIsNative = RegExp('^' +
1173
- funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
1174
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
1175
- );
1176
-
1177
- /**
1178
- * The base implementation of `_.isNative` without bad shim checks.
1179
- *
1180
- * @private
1181
- * @param {*} value The value to check.
1182
- * @returns {boolean} Returns `true` if `value` is a native function,
1183
- * else `false`.
1184
- */
1185
- function baseIsNative(value) {
1186
- if (!isObject_1(value) || _isMasked(value)) {
1187
- return false;
1188
- }
1189
- var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
1190
- return pattern.test(_toSource(value));
1191
- }
1192
-
1193
- var _baseIsNative = baseIsNative;
1194
-
1195
- /**
1196
- * Gets the value at `key` of `object`.
1197
- *
1198
- * @private
1199
- * @param {Object} [object] The object to query.
1200
- * @param {string} key The key of the property to get.
1201
- * @returns {*} Returns the property value.
1202
- */
1203
- function getValue(object, key) {
1204
- return object == null ? undefined : object[key];
1205
- }
1206
-
1207
- var _getValue = getValue;
1208
-
1209
- /**
1210
- * Gets the native function at `key` of `object`.
1211
- *
1212
- * @private
1213
- * @param {Object} object The object to query.
1214
- * @param {string} key The key of the method to get.
1215
- * @returns {*} Returns the function if it's native, else `undefined`.
1216
- */
1217
- function getNative(object, key) {
1218
- var value = _getValue(object, key);
1219
- return _baseIsNative(value) ? value : undefined;
1220
- }
1221
-
1222
- var _getNative = getNative;
1223
-
1224
- /* Built-in method references that are verified to be native. */
1225
- var nativeCreate = _getNative(Object, 'create');
1226
-
1227
- var _nativeCreate = nativeCreate;
1228
-
1229
- /**
1230
- * Removes all key-value entries from the hash.
1231
- *
1232
- * @private
1233
- * @name clear
1234
- * @memberOf Hash
1235
- */
1236
- function hashClear() {
1237
- this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
1238
- this.size = 0;
1239
- }
1240
-
1241
- var _hashClear = hashClear;
1242
-
1243
- /**
1244
- * Removes `key` and its value from the hash.
1245
- *
1246
- * @private
1247
- * @name delete
1248
- * @memberOf Hash
1249
- * @param {Object} hash The hash to modify.
1250
- * @param {string} key The key of the value to remove.
1251
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1252
- */
1253
- function hashDelete(key) {
1254
- var result = this.has(key) && delete this.__data__[key];
1255
- this.size -= result ? 1 : 0;
1256
- return result;
1257
- }
1258
-
1259
- var _hashDelete = hashDelete;
1260
-
1261
- /** Used to stand-in for `undefined` hash values. */
1262
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
1263
-
1264
- /** Used for built-in method references. */
1265
- var objectProto$1 = Object.prototype;
1266
-
1267
- /** Used to check objects for own properties. */
1268
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
1269
-
1270
- /**
1271
- * Gets the hash value for `key`.
1272
- *
1273
- * @private
1274
- * @name get
1275
- * @memberOf Hash
1276
- * @param {string} key The key of the value to get.
1277
- * @returns {*} Returns the entry value.
1278
- */
1279
- function hashGet(key) {
1280
- var data = this.__data__;
1281
- if (_nativeCreate) {
1282
- var result = data[key];
1283
- return result === HASH_UNDEFINED$1 ? undefined : result;
1284
- }
1285
- return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
1286
- }
1287
-
1288
- var _hashGet = hashGet;
1289
-
1290
- /** Used for built-in method references. */
1291
- var objectProto = Object.prototype;
1292
-
1293
- /** Used to check objects for own properties. */
1294
- var hasOwnProperty = objectProto.hasOwnProperty;
1295
-
1296
- /**
1297
- * Checks if a hash value for `key` exists.
1298
- *
1299
- * @private
1300
- * @name has
1301
- * @memberOf Hash
1302
- * @param {string} key The key of the entry to check.
1303
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1304
- */
1305
- function hashHas(key) {
1306
- var data = this.__data__;
1307
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
1308
- }
1309
-
1310
- var _hashHas = hashHas;
1311
-
1312
- /** Used to stand-in for `undefined` hash values. */
1313
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
1314
-
1315
- /**
1316
- * Sets the hash `key` to `value`.
1317
- *
1318
- * @private
1319
- * @name set
1320
- * @memberOf Hash
1321
- * @param {string} key The key of the value to set.
1322
- * @param {*} value The value to set.
1323
- * @returns {Object} Returns the hash instance.
1324
- */
1325
- function hashSet(key, value) {
1326
- var data = this.__data__;
1327
- this.size += this.has(key) ? 0 : 1;
1328
- data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
1329
- return this;
1330
- }
1331
-
1332
- var _hashSet = hashSet;
1333
-
1334
- /**
1335
- * Creates a hash object.
1336
- *
1337
- * @private
1338
- * @constructor
1339
- * @param {Array} [entries] The key-value pairs to cache.
1340
- */
1341
- function Hash(entries) {
1342
- var index = -1,
1343
- length = entries == null ? 0 : entries.length;
1344
-
1345
- this.clear();
1346
- while (++index < length) {
1347
- var entry = entries[index];
1348
- this.set(entry[0], entry[1]);
1349
- }
1350
- }
1351
-
1352
- // Add methods to `Hash`.
1353
- Hash.prototype.clear = _hashClear;
1354
- Hash.prototype['delete'] = _hashDelete;
1355
- Hash.prototype.get = _hashGet;
1356
- Hash.prototype.has = _hashHas;
1357
- Hash.prototype.set = _hashSet;
1358
-
1359
- var _Hash = Hash;
1360
-
1361
- /**
1362
- * Removes all key-value entries from the list cache.
1363
- *
1364
- * @private
1365
- * @name clear
1366
- * @memberOf ListCache
1367
- */
1368
- function listCacheClear() {
1369
- this.__data__ = [];
1370
- this.size = 0;
1371
- }
1372
-
1373
- var _listCacheClear = listCacheClear;
1374
-
1375
- /**
1376
- * Performs a
1377
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
1378
- * comparison between two values to determine if they are equivalent.
1379
- *
1380
- * @static
1381
- * @memberOf _
1382
- * @since 4.0.0
1383
- * @category Lang
1384
- * @param {*} value The value to compare.
1385
- * @param {*} other The other value to compare.
1386
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
1387
- * @example
1388
- *
1389
- * var object = { 'a': 1 };
1390
- * var other = { 'a': 1 };
1391
- *
1392
- * _.eq(object, object);
1393
- * // => true
1394
- *
1395
- * _.eq(object, other);
1396
- * // => false
1397
- *
1398
- * _.eq('a', 'a');
1399
- * // => true
1400
- *
1401
- * _.eq('a', Object('a'));
1402
- * // => false
1403
- *
1404
- * _.eq(NaN, NaN);
1405
- * // => true
1406
- */
1407
- function eq(value, other) {
1408
- return value === other || (value !== value && other !== other);
1409
- }
1410
-
1411
- var eq_1 = eq;
1412
-
1413
- /**
1414
- * Gets the index at which the `key` is found in `array` of key-value pairs.
1415
- *
1416
- * @private
1417
- * @param {Array} array The array to inspect.
1418
- * @param {*} key The key to search for.
1419
- * @returns {number} Returns the index of the matched value, else `-1`.
1420
- */
1421
- function assocIndexOf(array, key) {
1422
- var length = array.length;
1423
- while (length--) {
1424
- if (eq_1(array[length][0], key)) {
1425
- return length;
1426
- }
1427
- }
1428
- return -1;
1429
- }
1430
-
1431
- var _assocIndexOf = assocIndexOf;
1432
-
1433
- /** Used for built-in method references. */
1434
- var arrayProto = Array.prototype;
1435
-
1436
- /** Built-in value references. */
1437
- var splice = arrayProto.splice;
1438
-
1439
- /**
1440
- * Removes `key` and its value from the list cache.
1441
- *
1442
- * @private
1443
- * @name delete
1444
- * @memberOf ListCache
1445
- * @param {string} key The key of the value to remove.
1446
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1447
- */
1448
- function listCacheDelete(key) {
1449
- var data = this.__data__,
1450
- index = _assocIndexOf(data, key);
1451
-
1452
- if (index < 0) {
1453
- return false;
1454
- }
1455
- var lastIndex = data.length - 1;
1456
- if (index == lastIndex) {
1457
- data.pop();
1458
- } else {
1459
- splice.call(data, index, 1);
1460
- }
1461
- --this.size;
1462
- return true;
1463
- }
1464
-
1465
- var _listCacheDelete = listCacheDelete;
1466
-
1467
- /**
1468
- * Gets the list cache value for `key`.
1469
- *
1470
- * @private
1471
- * @name get
1472
- * @memberOf ListCache
1473
- * @param {string} key The key of the value to get.
1474
- * @returns {*} Returns the entry value.
1475
- */
1476
- function listCacheGet(key) {
1477
- var data = this.__data__,
1478
- index = _assocIndexOf(data, key);
1479
-
1480
- return index < 0 ? undefined : data[index][1];
1481
- }
1482
-
1483
- var _listCacheGet = listCacheGet;
1484
-
1485
- /**
1486
- * Checks if a list cache value for `key` exists.
1487
- *
1488
- * @private
1489
- * @name has
1490
- * @memberOf ListCache
1491
- * @param {string} key The key of the entry to check.
1492
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1493
- */
1494
- function listCacheHas(key) {
1495
- return _assocIndexOf(this.__data__, key) > -1;
1496
- }
1497
-
1498
- var _listCacheHas = listCacheHas;
1499
-
1500
- /**
1501
- * Sets the list cache `key` to `value`.
1502
- *
1503
- * @private
1504
- * @name set
1505
- * @memberOf ListCache
1506
- * @param {string} key The key of the value to set.
1507
- * @param {*} value The value to set.
1508
- * @returns {Object} Returns the list cache instance.
1509
- */
1510
- function listCacheSet(key, value) {
1511
- var data = this.__data__,
1512
- index = _assocIndexOf(data, key);
1513
-
1514
- if (index < 0) {
1515
- ++this.size;
1516
- data.push([key, value]);
1517
- } else {
1518
- data[index][1] = value;
1519
- }
1520
- return this;
1521
- }
1522
-
1523
- var _listCacheSet = listCacheSet;
1524
-
1525
- /**
1526
- * Creates an list cache object.
1527
- *
1528
- * @private
1529
- * @constructor
1530
- * @param {Array} [entries] The key-value pairs to cache.
1531
- */
1532
- function ListCache(entries) {
1533
- var index = -1,
1534
- length = entries == null ? 0 : entries.length;
1535
-
1536
- this.clear();
1537
- while (++index < length) {
1538
- var entry = entries[index];
1539
- this.set(entry[0], entry[1]);
1540
- }
1541
- }
1542
-
1543
- // Add methods to `ListCache`.
1544
- ListCache.prototype.clear = _listCacheClear;
1545
- ListCache.prototype['delete'] = _listCacheDelete;
1546
- ListCache.prototype.get = _listCacheGet;
1547
- ListCache.prototype.has = _listCacheHas;
1548
- ListCache.prototype.set = _listCacheSet;
1549
-
1550
- var _ListCache = ListCache;
1551
-
1552
- /* Built-in method references that are verified to be native. */
1553
- var Map = _getNative(_root, 'Map');
1554
-
1555
- var _Map = Map;
1556
-
1557
- /**
1558
- * Removes all key-value entries from the map.
1559
- *
1560
- * @private
1561
- * @name clear
1562
- * @memberOf MapCache
1563
- */
1564
- function mapCacheClear() {
1565
- this.size = 0;
1566
- this.__data__ = {
1567
- 'hash': new _Hash,
1568
- 'map': new (_Map || _ListCache),
1569
- 'string': new _Hash
1570
- };
1571
- }
1572
-
1573
- var _mapCacheClear = mapCacheClear;
1574
-
1575
- /**
1576
- * Checks if `value` is suitable for use as unique object key.
1577
- *
1578
- * @private
1579
- * @param {*} value The value to check.
1580
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1581
- */
1582
- function isKeyable(value) {
1583
- var type = typeof value;
1584
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1585
- ? (value !== '__proto__')
1586
- : (value === null);
1587
- }
1588
-
1589
- var _isKeyable = isKeyable;
1590
-
1591
- /**
1592
- * Gets the data for `map`.
1593
- *
1594
- * @private
1595
- * @param {Object} map The map to query.
1596
- * @param {string} key The reference key.
1597
- * @returns {*} Returns the map data.
1598
- */
1599
- function getMapData(map, key) {
1600
- var data = map.__data__;
1601
- return _isKeyable(key)
1602
- ? data[typeof key == 'string' ? 'string' : 'hash']
1603
- : data.map;
1604
- }
1605
-
1606
- var _getMapData = getMapData;
1607
-
1608
- /**
1609
- * Removes `key` and its value from the map.
1610
- *
1611
- * @private
1612
- * @name delete
1613
- * @memberOf MapCache
1614
- * @param {string} key The key of the value to remove.
1615
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1616
- */
1617
- function mapCacheDelete(key) {
1618
- var result = _getMapData(this, key)['delete'](key);
1619
- this.size -= result ? 1 : 0;
1620
- return result;
1621
- }
1622
-
1623
- var _mapCacheDelete = mapCacheDelete;
1624
-
1625
- /**
1626
- * Gets the map value for `key`.
1627
- *
1628
- * @private
1629
- * @name get
1630
- * @memberOf MapCache
1631
- * @param {string} key The key of the value to get.
1632
- * @returns {*} Returns the entry value.
1633
- */
1634
- function mapCacheGet(key) {
1635
- return _getMapData(this, key).get(key);
1636
- }
1637
-
1638
- var _mapCacheGet = mapCacheGet;
1639
-
1640
- /**
1641
- * Checks if a map value for `key` exists.
1642
- *
1643
- * @private
1644
- * @name has
1645
- * @memberOf MapCache
1646
- * @param {string} key The key of the entry to check.
1647
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1648
- */
1649
- function mapCacheHas(key) {
1650
- return _getMapData(this, key).has(key);
1651
- }
1652
-
1653
- var _mapCacheHas = mapCacheHas;
1654
-
1655
- /**
1656
- * Sets the map `key` to `value`.
1657
- *
1658
- * @private
1659
- * @name set
1660
- * @memberOf MapCache
1661
- * @param {string} key The key of the value to set.
1662
- * @param {*} value The value to set.
1663
- * @returns {Object} Returns the map cache instance.
1664
- */
1665
- function mapCacheSet(key, value) {
1666
- var data = _getMapData(this, key),
1667
- size = data.size;
1668
-
1669
- data.set(key, value);
1670
- this.size += data.size == size ? 0 : 1;
1671
- return this;
1672
- }
1673
-
1674
- var _mapCacheSet = mapCacheSet;
1675
-
1676
- /**
1677
- * Creates a map cache object to store key-value pairs.
1678
- *
1679
- * @private
1680
- * @constructor
1681
- * @param {Array} [entries] The key-value pairs to cache.
1682
- */
1683
- function MapCache(entries) {
1684
- var index = -1,
1685
- length = entries == null ? 0 : entries.length;
1686
-
1687
- this.clear();
1688
- while (++index < length) {
1689
- var entry = entries[index];
1690
- this.set(entry[0], entry[1]);
1691
- }
1692
- }
1693
-
1694
- // Add methods to `MapCache`.
1695
- MapCache.prototype.clear = _mapCacheClear;
1696
- MapCache.prototype['delete'] = _mapCacheDelete;
1697
- MapCache.prototype.get = _mapCacheGet;
1698
- MapCache.prototype.has = _mapCacheHas;
1699
- MapCache.prototype.set = _mapCacheSet;
1700
-
1701
- var _MapCache = MapCache;
1702
-
1703
- /** Error message constants. */
1704
- var FUNC_ERROR_TEXT = 'Expected a function';
1705
-
1706
- /**
1707
- * Creates a function that memoizes the result of `func`. If `resolver` is
1708
- * provided, it determines the cache key for storing the result based on the
1709
- * arguments provided to the memoized function. By default, the first argument
1710
- * provided to the memoized function is used as the map cache key. The `func`
1711
- * is invoked with the `this` binding of the memoized function.
1712
- *
1713
- * **Note:** The cache is exposed as the `cache` property on the memoized
1714
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
1715
- * constructor with one whose instances implement the
1716
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
1717
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
1718
- *
1719
- * @static
1720
- * @memberOf _
1721
- * @since 0.1.0
1722
- * @category Function
1723
- * @param {Function} func The function to have its output memoized.
1724
- * @param {Function} [resolver] The function to resolve the cache key.
1725
- * @returns {Function} Returns the new memoized function.
1726
- * @example
1727
- *
1728
- * var object = { 'a': 1, 'b': 2 };
1729
- * var other = { 'c': 3, 'd': 4 };
1730
- *
1731
- * var values = _.memoize(_.values);
1732
- * values(object);
1733
- * // => [1, 2]
1734
- *
1735
- * values(other);
1736
- * // => [3, 4]
1737
- *
1738
- * object.a = 2;
1739
- * values(object);
1740
- * // => [1, 2]
1741
- *
1742
- * // Modify the result cache.
1743
- * values.cache.set(object, ['a', 'b']);
1744
- * values(object);
1745
- * // => ['a', 'b']
1746
- *
1747
- * // Replace `_.memoize.Cache`.
1748
- * _.memoize.Cache = WeakMap;
1749
- */
1750
- function memoize(func, resolver) {
1751
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
1752
- throw new TypeError(FUNC_ERROR_TEXT);
1753
- }
1754
- var memoized = function() {
1755
- var args = arguments,
1756
- key = resolver ? resolver.apply(this, args) : args[0],
1757
- cache = memoized.cache;
1758
-
1759
- if (cache.has(key)) {
1760
- return cache.get(key);
1761
- }
1762
- var result = func.apply(this, args);
1763
- memoized.cache = cache.set(key, result) || cache;
1764
- return result;
1765
- };
1766
- memoized.cache = new (memoize.Cache || _MapCache);
1767
- return memoized;
1768
- }
1769
-
1770
- // Expose `MapCache`.
1771
- memoize.Cache = _MapCache;
1772
-
1773
- var memoize_1 = memoize;
1774
-
1775
- /** Used as the maximum memoize cache size. */
1776
- var MAX_MEMOIZE_SIZE = 500;
1777
-
1778
- /**
1779
- * A specialized version of `_.memoize` which clears the memoized function's
1780
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
1781
- *
1782
- * @private
1783
- * @param {Function} func The function to have its output memoized.
1784
- * @returns {Function} Returns the new memoized function.
1785
- */
1786
- function memoizeCapped(func) {
1787
- var result = memoize_1(func, function(key) {
1788
- if (cache.size === MAX_MEMOIZE_SIZE) {
1789
- cache.clear();
1790
- }
1791
- return key;
1792
- });
1793
-
1794
- var cache = result.cache;
1795
- return result;
1796
- }
1797
-
1798
- var _memoizeCapped = memoizeCapped;
1799
-
1800
- /** Used to match property names within property paths. */
1801
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
1802
-
1803
- /** Used to match backslashes in property paths. */
1804
- var reEscapeChar = /\\(\\)?/g;
1805
-
1806
- /**
1807
- * Converts `string` to a property path array.
1808
- *
1809
- * @private
1810
- * @param {string} string The string to convert.
1811
- * @returns {Array} Returns the property path array.
1812
- */
1813
- _memoizeCapped(function(string) {
1814
- var result = [];
1815
- if (string.charCodeAt(0) === 46 /* . */) {
1816
- result.push('');
1817
- }
1818
- string.replace(rePropName, function(match, number, quote, subString) {
1819
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
1820
- });
1821
- return result;
1822
- });
1823
-
1824
- /** Used to convert symbols to primitives and strings. */
1825
- var symbolProto = _Symbol ? _Symbol.prototype : undefined;
1826
- symbolProto ? symbolProto.toString : undefined;
1827
-
1828
21
  var hexToRGB = function hexToRGB(hex) {
1829
22
  var r = parseInt(hex.slice(1, 3), 16);
1830
23
  var g = parseInt(hex.slice(3, 5), 16);
@@ -1890,11 +83,11 @@ var TagIntroductionCard = function TagIntroductionCard(_ref) {
1890
83
  backgroundColor: theme,
1891
84
  color: textColor
1892
85
  },
1893
- className: "full-width-with-padding arrow-component " + _getClassName("wrapper ".concat(textColor), _styleModuleImportMap)
86
+ className: "full-width-with-padding arrow-component " + _getClassName__default["default"]("wrapper ".concat(textColor), _styleModuleImportMap)
1894
87
  }, /*#__PURE__*/React__default["default"].createElement("h1", {
1895
- className: _getClassName(textColor, _styleModuleImportMap)
88
+ className: _getClassName__default["default"](textColor, _styleModuleImportMap)
1896
89
  }, tagName), /*#__PURE__*/React__default["default"].createElement("div", {
1897
- className: _getClassName("description ".concat(textColor), _styleModuleImportMap)
90
+ className: _getClassName__default["default"]("description ".concat(textColor), _styleModuleImportMap)
1898
91
  }, tagDescription));
1899
92
  };
1900
93
  TagIntroductionCard.propTypes = {