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