@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,204 +2,31 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var _toArray = require('@babel/runtime/helpers/toArray');
6
+ var _getClassName = require('babel-plugin-react-css-modules/dist/browser/getClassName');
5
7
  var React = require('react');
6
8
  var PropTypes = require('prop-types');
7
9
  var components = require('@quintype/components');
10
+ require('@babel/runtime/helpers/asyncToGenerator');
11
+ var _typeof = require('@babel/runtime/helpers/typeof');
12
+ require('@babel/runtime/regenerator');
13
+ var lodash = require('lodash');
8
14
  var Timeago = require('react-timeago');
9
15
  var dateFnsTz = require('date-fns-tz');
16
+ var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
10
17
  var reactRedux = require('react-redux');
18
+ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
11
19
 
12
20
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
21
 
22
+ var _toArray__default = /*#__PURE__*/_interopDefaultLegacy(_toArray);
23
+ var _getClassName__default = /*#__PURE__*/_interopDefaultLegacy(_getClassName);
14
24
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
15
25
  var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
26
+ var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof);
16
27
  var Timeago__default = /*#__PURE__*/_interopDefaultLegacy(Timeago);
17
-
18
- function _arrayWithHoles(arr) {
19
- if (Array.isArray(arr)) return arr;
20
- }
21
-
22
- function _iterableToArray(iter) {
23
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
24
- }
25
-
26
- function _arrayLikeToArray(arr, len) {
27
- if (len == null || len > arr.length) len = arr.length;
28
-
29
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
30
- arr2[i] = arr[i];
31
- }
32
-
33
- return arr2;
34
- }
35
-
36
- function _unsupportedIterableToArray(o, minLen) {
37
- if (!o) return;
38
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
39
- var n = Object.prototype.toString.call(o).slice(8, -1);
40
- if (n === "Object" && o.constructor) n = o.constructor.name;
41
- if (n === "Map" || n === "Set") return Array.from(o);
42
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
43
- }
44
-
45
- function _nonIterableRest() {
46
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
47
- }
48
-
49
- function _toArray(arr) {
50
- return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
51
- }
52
-
53
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
54
-
55
- function getDefaultExportFromCjs (x) {
56
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
57
- }
58
-
59
- function createCommonjsModule(fn) {
60
- var module = { exports: {} };
61
- return fn(module, module.exports), module.exports;
62
- }
63
-
64
- var optionsDefaults_1 = createCommonjsModule(function (module, exports) {
65
-
66
- Object.defineProperty(exports, "__esModule", {
67
- value: true
68
- });
69
- exports["default"] = void 0;
70
- var optionsDefaults = {
71
- attributeNames: {
72
- styleName: 'className'
73
- },
74
- generateScopedName: '[path]___[name]__[local]___[hash:base64:5]',
75
- handleMissingStyleName: 'throw'
76
- };
77
- var _default = optionsDefaults;
78
- exports["default"] = _default;
79
-
80
-
81
- });
82
-
83
- var getClassName = createCommonjsModule(function (module, exports) {
84
-
85
- Object.defineProperty(exports, "__esModule", {
86
- value: true
87
- });
88
- exports["default"] = void 0;
89
-
90
- var _optionsDefaults = _interopRequireDefault(optionsDefaults_1);
91
-
92
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
93
-
94
- var isNamespacedStyleName = function isNamespacedStyleName(styleName) {
95
- return styleName.indexOf('.') !== -1;
96
- };
97
-
98
- var handleError = function handleError(message, handleMissingStyleName) {
99
- if (handleMissingStyleName === 'throw') {
100
- throw new Error(message);
101
- } else if (handleMissingStyleName === 'warn') {
102
- // eslint-disable-next-line no-console
103
- console.warn(message);
104
- }
105
-
106
- return null;
107
- };
108
-
109
- var getClassNameForNamespacedStyleName = function getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
110
- // Note:
111
- // Do not use the desctructing syntax with Babel.
112
- // Desctructing adds _slicedToArray helper.
113
- var styleNameParts = styleName.split('.');
114
- var importName = styleNameParts[0];
115
- var moduleName = styleNameParts[1];
116
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
117
-
118
- if (!moduleName) {
119
- return handleError('Invalid style name: ' + styleName, handleMissingStyleName);
120
- }
121
-
122
- if (!styleModuleImportMap[importName]) {
123
- return handleError('CSS module import does not exist: ' + importName, handleMissingStyleName);
124
- }
125
-
126
- if (!styleModuleImportMap[importName][moduleName]) {
127
- return handleError('CSS module does not exist: ' + moduleName, handleMissingStyleName);
128
- }
129
-
130
- return styleModuleImportMap[importName][moduleName];
131
- };
132
-
133
- var getClassNameFromMultipleImports = function getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
134
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
135
- var importKeysWithMatches = Object.keys(styleModuleImportMap).map(function (importKey) {
136
- return styleModuleImportMap[importKey][styleName] && importKey;
137
- }).filter(function (importKey) {
138
- return importKey;
139
- });
140
-
141
- if (importKeysWithMatches.length > 1) {
142
- 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');
143
- }
144
-
145
- if (importKeysWithMatches.length === 0) {
146
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
147
- }
148
-
149
- return styleModuleImportMap[importKeysWithMatches[0]][styleName];
150
- };
151
-
152
- var _default = function _default(styleNameValue, styleModuleImportMap, options) {
153
- var styleModuleImportMapKeys = Object.keys(styleModuleImportMap);
154
-
155
- var _ref = options || {},
156
- _ref$handleMissingSty = _ref.handleMissingStyleName,
157
- handleMissingStyleName = _ref$handleMissingSty === void 0 ? _optionsDefaults["default"].handleMissingStyleName : _ref$handleMissingSty,
158
- _ref$autoResolveMulti = _ref.autoResolveMultipleImports,
159
- autoResolveMultipleImports = _ref$autoResolveMulti === void 0 ? _optionsDefaults["default"].autoResolveMultipleImports : _ref$autoResolveMulti;
160
-
161
- if (!styleNameValue) {
162
- return '';
163
- }
164
-
165
- return styleNameValue.split(' ').filter(function (styleName) {
166
- return styleName;
167
- }).map(function (styleName) {
168
- if (isNamespacedStyleName(styleName)) {
169
- return getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleName);
170
- }
171
-
172
- if (styleModuleImportMapKeys.length === 0) {
173
- throw new Error('Cannot use styleName attribute for style name \'' + styleName + '\' without importing at least one stylesheet.');
174
- }
175
-
176
- if (styleModuleImportMapKeys.length > 1) {
177
- if (!autoResolveMultipleImports) {
178
- throw new Error('Cannot use anonymous style name \'' + styleName + '\' with more than one stylesheet import without setting \'autoResolveMultipleImports\' to true.');
179
- }
180
-
181
- return getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleName);
182
- }
183
-
184
- var styleModuleMap = styleModuleImportMap[styleModuleImportMapKeys[0]];
185
-
186
- if (!styleModuleMap[styleName]) {
187
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
188
- }
189
-
190
- return styleModuleMap[styleName];
191
- }).filter(function (className) {
192
- // Remove any styles which could not be found (if handleMissingStyleName === 'ignore')
193
- return className;
194
- }).join(' ');
195
- };
196
-
197
- exports["default"] = _default;
198
-
199
-
200
- });
201
-
202
- var _getClassName = /*@__PURE__*/getDefaultExportFromCjs(getClassName);
28
+ var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray);
29
+ var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
203
30
 
204
31
  var StateContext = /*#__PURE__*/React.createContext(); // eslint-disable-next-line react/display-name
205
32
 
@@ -218,2321 +45,6 @@ var useStateValue = function useStateValue() {
218
45
  return React.useContext(StateContext);
219
46
  };
220
47
 
221
- function _typeof(obj) {
222
- "@babel/helpers - typeof";
223
-
224
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
225
- return typeof obj;
226
- } : function (obj) {
227
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
228
- }, _typeof(obj);
229
- }
230
-
231
- /**
232
- * Copyright (c) 2014-present, Facebook, Inc.
233
- *
234
- * This source code is licensed under the MIT license found in the
235
- * LICENSE file in the root directory of this source tree.
236
- */
237
-
238
- createCommonjsModule(function (module) {
239
- var runtime = (function (exports) {
240
-
241
- var Op = Object.prototype;
242
- var hasOwn = Op.hasOwnProperty;
243
- var undefined$1; // More compressible than void 0.
244
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
245
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
246
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
247
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
248
-
249
- function define(obj, key, value) {
250
- Object.defineProperty(obj, key, {
251
- value: value,
252
- enumerable: true,
253
- configurable: true,
254
- writable: true
255
- });
256
- return obj[key];
257
- }
258
- try {
259
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
260
- define({}, "");
261
- } catch (err) {
262
- define = function(obj, key, value) {
263
- return obj[key] = value;
264
- };
265
- }
266
-
267
- function wrap(innerFn, outerFn, self, tryLocsList) {
268
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
269
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
270
- var generator = Object.create(protoGenerator.prototype);
271
- var context = new Context(tryLocsList || []);
272
-
273
- // The ._invoke method unifies the implementations of the .next,
274
- // .throw, and .return methods.
275
- generator._invoke = makeInvokeMethod(innerFn, self, context);
276
-
277
- return generator;
278
- }
279
- exports.wrap = wrap;
280
-
281
- // Try/catch helper to minimize deoptimizations. Returns a completion
282
- // record like context.tryEntries[i].completion. This interface could
283
- // have been (and was previously) designed to take a closure to be
284
- // invoked without arguments, but in all the cases we care about we
285
- // already have an existing method we want to call, so there's no need
286
- // to create a new function object. We can even get away with assuming
287
- // the method takes exactly one argument, since that happens to be true
288
- // in every case, so we don't have to touch the arguments object. The
289
- // only additional allocation required is the completion record, which
290
- // has a stable shape and so hopefully should be cheap to allocate.
291
- function tryCatch(fn, obj, arg) {
292
- try {
293
- return { type: "normal", arg: fn.call(obj, arg) };
294
- } catch (err) {
295
- return { type: "throw", arg: err };
296
- }
297
- }
298
-
299
- var GenStateSuspendedStart = "suspendedStart";
300
- var GenStateSuspendedYield = "suspendedYield";
301
- var GenStateExecuting = "executing";
302
- var GenStateCompleted = "completed";
303
-
304
- // Returning this object from the innerFn has the same effect as
305
- // breaking out of the dispatch switch statement.
306
- var ContinueSentinel = {};
307
-
308
- // Dummy constructor functions that we use as the .constructor and
309
- // .constructor.prototype properties for functions that return Generator
310
- // objects. For full spec compliance, you may wish to configure your
311
- // minifier not to mangle the names of these two functions.
312
- function Generator() {}
313
- function GeneratorFunction() {}
314
- function GeneratorFunctionPrototype() {}
315
-
316
- // This is a polyfill for %IteratorPrototype% for environments that
317
- // don't natively support it.
318
- var IteratorPrototype = {};
319
- define(IteratorPrototype, iteratorSymbol, function () {
320
- return this;
321
- });
322
-
323
- var getProto = Object.getPrototypeOf;
324
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
325
- if (NativeIteratorPrototype &&
326
- NativeIteratorPrototype !== Op &&
327
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
328
- // This environment has a native %IteratorPrototype%; use it instead
329
- // of the polyfill.
330
- IteratorPrototype = NativeIteratorPrototype;
331
- }
332
-
333
- var Gp = GeneratorFunctionPrototype.prototype =
334
- Generator.prototype = Object.create(IteratorPrototype);
335
- GeneratorFunction.prototype = GeneratorFunctionPrototype;
336
- define(Gp, "constructor", GeneratorFunctionPrototype);
337
- define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
338
- GeneratorFunction.displayName = define(
339
- GeneratorFunctionPrototype,
340
- toStringTagSymbol,
341
- "GeneratorFunction"
342
- );
343
-
344
- // Helper for defining the .next, .throw, and .return methods of the
345
- // Iterator interface in terms of a single ._invoke method.
346
- function defineIteratorMethods(prototype) {
347
- ["next", "throw", "return"].forEach(function(method) {
348
- define(prototype, method, function(arg) {
349
- return this._invoke(method, arg);
350
- });
351
- });
352
- }
353
-
354
- exports.isGeneratorFunction = function(genFun) {
355
- var ctor = typeof genFun === "function" && genFun.constructor;
356
- return ctor
357
- ? ctor === GeneratorFunction ||
358
- // For the native GeneratorFunction constructor, the best we can
359
- // do is to check its .name property.
360
- (ctor.displayName || ctor.name) === "GeneratorFunction"
361
- : false;
362
- };
363
-
364
- exports.mark = function(genFun) {
365
- if (Object.setPrototypeOf) {
366
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
367
- } else {
368
- genFun.__proto__ = GeneratorFunctionPrototype;
369
- define(genFun, toStringTagSymbol, "GeneratorFunction");
370
- }
371
- genFun.prototype = Object.create(Gp);
372
- return genFun;
373
- };
374
-
375
- // Within the body of any async function, `await x` is transformed to
376
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
377
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
378
- // meant to be awaited.
379
- exports.awrap = function(arg) {
380
- return { __await: arg };
381
- };
382
-
383
- function AsyncIterator(generator, PromiseImpl) {
384
- function invoke(method, arg, resolve, reject) {
385
- var record = tryCatch(generator[method], generator, arg);
386
- if (record.type === "throw") {
387
- reject(record.arg);
388
- } else {
389
- var result = record.arg;
390
- var value = result.value;
391
- if (value &&
392
- typeof value === "object" &&
393
- hasOwn.call(value, "__await")) {
394
- return PromiseImpl.resolve(value.__await).then(function(value) {
395
- invoke("next", value, resolve, reject);
396
- }, function(err) {
397
- invoke("throw", err, resolve, reject);
398
- });
399
- }
400
-
401
- return PromiseImpl.resolve(value).then(function(unwrapped) {
402
- // When a yielded Promise is resolved, its final value becomes
403
- // the .value of the Promise<{value,done}> result for the
404
- // current iteration.
405
- result.value = unwrapped;
406
- resolve(result);
407
- }, function(error) {
408
- // If a rejected Promise was yielded, throw the rejection back
409
- // into the async generator function so it can be handled there.
410
- return invoke("throw", error, resolve, reject);
411
- });
412
- }
413
- }
414
-
415
- var previousPromise;
416
-
417
- function enqueue(method, arg) {
418
- function callInvokeWithMethodAndArg() {
419
- return new PromiseImpl(function(resolve, reject) {
420
- invoke(method, arg, resolve, reject);
421
- });
422
- }
423
-
424
- return previousPromise =
425
- // If enqueue has been called before, then we want to wait until
426
- // all previous Promises have been resolved before calling invoke,
427
- // so that results are always delivered in the correct order. If
428
- // enqueue has not been called before, then it is important to
429
- // call invoke immediately, without waiting on a callback to fire,
430
- // so that the async generator function has the opportunity to do
431
- // any necessary setup in a predictable way. This predictability
432
- // is why the Promise constructor synchronously invokes its
433
- // executor callback, and why async functions synchronously
434
- // execute code before the first await. Since we implement simple
435
- // async functions in terms of async generators, it is especially
436
- // important to get this right, even though it requires care.
437
- previousPromise ? previousPromise.then(
438
- callInvokeWithMethodAndArg,
439
- // Avoid propagating failures to Promises returned by later
440
- // invocations of the iterator.
441
- callInvokeWithMethodAndArg
442
- ) : callInvokeWithMethodAndArg();
443
- }
444
-
445
- // Define the unified helper method that is used to implement .next,
446
- // .throw, and .return (see defineIteratorMethods).
447
- this._invoke = enqueue;
448
- }
449
-
450
- defineIteratorMethods(AsyncIterator.prototype);
451
- define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
452
- return this;
453
- });
454
- exports.AsyncIterator = AsyncIterator;
455
-
456
- // Note that simple async functions are implemented on top of
457
- // AsyncIterator objects; they just return a Promise for the value of
458
- // the final result produced by the iterator.
459
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
460
- if (PromiseImpl === void 0) PromiseImpl = Promise;
461
-
462
- var iter = new AsyncIterator(
463
- wrap(innerFn, outerFn, self, tryLocsList),
464
- PromiseImpl
465
- );
466
-
467
- return exports.isGeneratorFunction(outerFn)
468
- ? iter // If outerFn is a generator, return the full iterator.
469
- : iter.next().then(function(result) {
470
- return result.done ? result.value : iter.next();
471
- });
472
- };
473
-
474
- function makeInvokeMethod(innerFn, self, context) {
475
- var state = GenStateSuspendedStart;
476
-
477
- return function invoke(method, arg) {
478
- if (state === GenStateExecuting) {
479
- throw new Error("Generator is already running");
480
- }
481
-
482
- if (state === GenStateCompleted) {
483
- if (method === "throw") {
484
- throw arg;
485
- }
486
-
487
- // Be forgiving, per 25.3.3.3.3 of the spec:
488
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
489
- return doneResult();
490
- }
491
-
492
- context.method = method;
493
- context.arg = arg;
494
-
495
- while (true) {
496
- var delegate = context.delegate;
497
- if (delegate) {
498
- var delegateResult = maybeInvokeDelegate(delegate, context);
499
- if (delegateResult) {
500
- if (delegateResult === ContinueSentinel) continue;
501
- return delegateResult;
502
- }
503
- }
504
-
505
- if (context.method === "next") {
506
- // Setting context._sent for legacy support of Babel's
507
- // function.sent implementation.
508
- context.sent = context._sent = context.arg;
509
-
510
- } else if (context.method === "throw") {
511
- if (state === GenStateSuspendedStart) {
512
- state = GenStateCompleted;
513
- throw context.arg;
514
- }
515
-
516
- context.dispatchException(context.arg);
517
-
518
- } else if (context.method === "return") {
519
- context.abrupt("return", context.arg);
520
- }
521
-
522
- state = GenStateExecuting;
523
-
524
- var record = tryCatch(innerFn, self, context);
525
- if (record.type === "normal") {
526
- // If an exception is thrown from innerFn, we leave state ===
527
- // GenStateExecuting and loop back for another invocation.
528
- state = context.done
529
- ? GenStateCompleted
530
- : GenStateSuspendedYield;
531
-
532
- if (record.arg === ContinueSentinel) {
533
- continue;
534
- }
535
-
536
- return {
537
- value: record.arg,
538
- done: context.done
539
- };
540
-
541
- } else if (record.type === "throw") {
542
- state = GenStateCompleted;
543
- // Dispatch the exception by looping back around to the
544
- // context.dispatchException(context.arg) call above.
545
- context.method = "throw";
546
- context.arg = record.arg;
547
- }
548
- }
549
- };
550
- }
551
-
552
- // Call delegate.iterator[context.method](context.arg) and handle the
553
- // result, either by returning a { value, done } result from the
554
- // delegate iterator, or by modifying context.method and context.arg,
555
- // setting context.delegate to null, and returning the ContinueSentinel.
556
- function maybeInvokeDelegate(delegate, context) {
557
- var method = delegate.iterator[context.method];
558
- if (method === undefined$1) {
559
- // A .throw or .return when the delegate iterator has no .throw
560
- // method always terminates the yield* loop.
561
- context.delegate = null;
562
-
563
- if (context.method === "throw") {
564
- // Note: ["return"] must be used for ES3 parsing compatibility.
565
- if (delegate.iterator["return"]) {
566
- // If the delegate iterator has a return method, give it a
567
- // chance to clean up.
568
- context.method = "return";
569
- context.arg = undefined$1;
570
- maybeInvokeDelegate(delegate, context);
571
-
572
- if (context.method === "throw") {
573
- // If maybeInvokeDelegate(context) changed context.method from
574
- // "return" to "throw", let that override the TypeError below.
575
- return ContinueSentinel;
576
- }
577
- }
578
-
579
- context.method = "throw";
580
- context.arg = new TypeError(
581
- "The iterator does not provide a 'throw' method");
582
- }
583
-
584
- return ContinueSentinel;
585
- }
586
-
587
- var record = tryCatch(method, delegate.iterator, context.arg);
588
-
589
- if (record.type === "throw") {
590
- context.method = "throw";
591
- context.arg = record.arg;
592
- context.delegate = null;
593
- return ContinueSentinel;
594
- }
595
-
596
- var info = record.arg;
597
-
598
- if (! info) {
599
- context.method = "throw";
600
- context.arg = new TypeError("iterator result is not an object");
601
- context.delegate = null;
602
- return ContinueSentinel;
603
- }
604
-
605
- if (info.done) {
606
- // Assign the result of the finished delegate to the temporary
607
- // variable specified by delegate.resultName (see delegateYield).
608
- context[delegate.resultName] = info.value;
609
-
610
- // Resume execution at the desired location (see delegateYield).
611
- context.next = delegate.nextLoc;
612
-
613
- // If context.method was "throw" but the delegate handled the
614
- // exception, let the outer generator proceed normally. If
615
- // context.method was "next", forget context.arg since it has been
616
- // "consumed" by the delegate iterator. If context.method was
617
- // "return", allow the original .return call to continue in the
618
- // outer generator.
619
- if (context.method !== "return") {
620
- context.method = "next";
621
- context.arg = undefined$1;
622
- }
623
-
624
- } else {
625
- // Re-yield the result returned by the delegate method.
626
- return info;
627
- }
628
-
629
- // The delegate iterator is finished, so forget it and continue with
630
- // the outer generator.
631
- context.delegate = null;
632
- return ContinueSentinel;
633
- }
634
-
635
- // Define Generator.prototype.{next,throw,return} in terms of the
636
- // unified ._invoke helper method.
637
- defineIteratorMethods(Gp);
638
-
639
- define(Gp, toStringTagSymbol, "Generator");
640
-
641
- // A Generator should always return itself as the iterator object when the
642
- // @@iterator function is called on it. Some browsers' implementations of the
643
- // iterator prototype chain incorrectly implement this, causing the Generator
644
- // object to not be returned from this call. This ensures that doesn't happen.
645
- // See https://github.com/facebook/regenerator/issues/274 for more details.
646
- define(Gp, iteratorSymbol, function() {
647
- return this;
648
- });
649
-
650
- define(Gp, "toString", function() {
651
- return "[object Generator]";
652
- });
653
-
654
- function pushTryEntry(locs) {
655
- var entry = { tryLoc: locs[0] };
656
-
657
- if (1 in locs) {
658
- entry.catchLoc = locs[1];
659
- }
660
-
661
- if (2 in locs) {
662
- entry.finallyLoc = locs[2];
663
- entry.afterLoc = locs[3];
664
- }
665
-
666
- this.tryEntries.push(entry);
667
- }
668
-
669
- function resetTryEntry(entry) {
670
- var record = entry.completion || {};
671
- record.type = "normal";
672
- delete record.arg;
673
- entry.completion = record;
674
- }
675
-
676
- function Context(tryLocsList) {
677
- // The root entry object (effectively a try statement without a catch
678
- // or a finally block) gives us a place to store values thrown from
679
- // locations where there is no enclosing try statement.
680
- this.tryEntries = [{ tryLoc: "root" }];
681
- tryLocsList.forEach(pushTryEntry, this);
682
- this.reset(true);
683
- }
684
-
685
- exports.keys = function(object) {
686
- var keys = [];
687
- for (var key in object) {
688
- keys.push(key);
689
- }
690
- keys.reverse();
691
-
692
- // Rather than returning an object with a next method, we keep
693
- // things simple and return the next function itself.
694
- return function next() {
695
- while (keys.length) {
696
- var key = keys.pop();
697
- if (key in object) {
698
- next.value = key;
699
- next.done = false;
700
- return next;
701
- }
702
- }
703
-
704
- // To avoid creating an additional object, we just hang the .value
705
- // and .done properties off the next function object itself. This
706
- // also ensures that the minifier will not anonymize the function.
707
- next.done = true;
708
- return next;
709
- };
710
- };
711
-
712
- function values(iterable) {
713
- if (iterable) {
714
- var iteratorMethod = iterable[iteratorSymbol];
715
- if (iteratorMethod) {
716
- return iteratorMethod.call(iterable);
717
- }
718
-
719
- if (typeof iterable.next === "function") {
720
- return iterable;
721
- }
722
-
723
- if (!isNaN(iterable.length)) {
724
- var i = -1, next = function next() {
725
- while (++i < iterable.length) {
726
- if (hasOwn.call(iterable, i)) {
727
- next.value = iterable[i];
728
- next.done = false;
729
- return next;
730
- }
731
- }
732
-
733
- next.value = undefined$1;
734
- next.done = true;
735
-
736
- return next;
737
- };
738
-
739
- return next.next = next;
740
- }
741
- }
742
-
743
- // Return an iterator with no values.
744
- return { next: doneResult };
745
- }
746
- exports.values = values;
747
-
748
- function doneResult() {
749
- return { value: undefined$1, done: true };
750
- }
751
-
752
- Context.prototype = {
753
- constructor: Context,
754
-
755
- reset: function(skipTempReset) {
756
- this.prev = 0;
757
- this.next = 0;
758
- // Resetting context._sent for legacy support of Babel's
759
- // function.sent implementation.
760
- this.sent = this._sent = undefined$1;
761
- this.done = false;
762
- this.delegate = null;
763
-
764
- this.method = "next";
765
- this.arg = undefined$1;
766
-
767
- this.tryEntries.forEach(resetTryEntry);
768
-
769
- if (!skipTempReset) {
770
- for (var name in this) {
771
- // Not sure about the optimal order of these conditions:
772
- if (name.charAt(0) === "t" &&
773
- hasOwn.call(this, name) &&
774
- !isNaN(+name.slice(1))) {
775
- this[name] = undefined$1;
776
- }
777
- }
778
- }
779
- },
780
-
781
- stop: function() {
782
- this.done = true;
783
-
784
- var rootEntry = this.tryEntries[0];
785
- var rootRecord = rootEntry.completion;
786
- if (rootRecord.type === "throw") {
787
- throw rootRecord.arg;
788
- }
789
-
790
- return this.rval;
791
- },
792
-
793
- dispatchException: function(exception) {
794
- if (this.done) {
795
- throw exception;
796
- }
797
-
798
- var context = this;
799
- function handle(loc, caught) {
800
- record.type = "throw";
801
- record.arg = exception;
802
- context.next = loc;
803
-
804
- if (caught) {
805
- // If the dispatched exception was caught by a catch block,
806
- // then let that catch block handle the exception normally.
807
- context.method = "next";
808
- context.arg = undefined$1;
809
- }
810
-
811
- return !! caught;
812
- }
813
-
814
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
815
- var entry = this.tryEntries[i];
816
- var record = entry.completion;
817
-
818
- if (entry.tryLoc === "root") {
819
- // Exception thrown outside of any try block that could handle
820
- // it, so set the completion value of the entire function to
821
- // throw the exception.
822
- return handle("end");
823
- }
824
-
825
- if (entry.tryLoc <= this.prev) {
826
- var hasCatch = hasOwn.call(entry, "catchLoc");
827
- var hasFinally = hasOwn.call(entry, "finallyLoc");
828
-
829
- if (hasCatch && hasFinally) {
830
- if (this.prev < entry.catchLoc) {
831
- return handle(entry.catchLoc, true);
832
- } else if (this.prev < entry.finallyLoc) {
833
- return handle(entry.finallyLoc);
834
- }
835
-
836
- } else if (hasCatch) {
837
- if (this.prev < entry.catchLoc) {
838
- return handle(entry.catchLoc, true);
839
- }
840
-
841
- } else if (hasFinally) {
842
- if (this.prev < entry.finallyLoc) {
843
- return handle(entry.finallyLoc);
844
- }
845
-
846
- } else {
847
- throw new Error("try statement without catch or finally");
848
- }
849
- }
850
- }
851
- },
852
-
853
- abrupt: function(type, arg) {
854
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
855
- var entry = this.tryEntries[i];
856
- if (entry.tryLoc <= this.prev &&
857
- hasOwn.call(entry, "finallyLoc") &&
858
- this.prev < entry.finallyLoc) {
859
- var finallyEntry = entry;
860
- break;
861
- }
862
- }
863
-
864
- if (finallyEntry &&
865
- (type === "break" ||
866
- type === "continue") &&
867
- finallyEntry.tryLoc <= arg &&
868
- arg <= finallyEntry.finallyLoc) {
869
- // Ignore the finally entry if control is not jumping to a
870
- // location outside the try/catch block.
871
- finallyEntry = null;
872
- }
873
-
874
- var record = finallyEntry ? finallyEntry.completion : {};
875
- record.type = type;
876
- record.arg = arg;
877
-
878
- if (finallyEntry) {
879
- this.method = "next";
880
- this.next = finallyEntry.finallyLoc;
881
- return ContinueSentinel;
882
- }
883
-
884
- return this.complete(record);
885
- },
886
-
887
- complete: function(record, afterLoc) {
888
- if (record.type === "throw") {
889
- throw record.arg;
890
- }
891
-
892
- if (record.type === "break" ||
893
- record.type === "continue") {
894
- this.next = record.arg;
895
- } else if (record.type === "return") {
896
- this.rval = this.arg = record.arg;
897
- this.method = "return";
898
- this.next = "end";
899
- } else if (record.type === "normal" && afterLoc) {
900
- this.next = afterLoc;
901
- }
902
-
903
- return ContinueSentinel;
904
- },
905
-
906
- finish: function(finallyLoc) {
907
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
908
- var entry = this.tryEntries[i];
909
- if (entry.finallyLoc === finallyLoc) {
910
- this.complete(entry.completion, entry.afterLoc);
911
- resetTryEntry(entry);
912
- return ContinueSentinel;
913
- }
914
- }
915
- },
916
-
917
- "catch": function(tryLoc) {
918
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
919
- var entry = this.tryEntries[i];
920
- if (entry.tryLoc === tryLoc) {
921
- var record = entry.completion;
922
- if (record.type === "throw") {
923
- var thrown = record.arg;
924
- resetTryEntry(entry);
925
- }
926
- return thrown;
927
- }
928
- }
929
-
930
- // The context.catch method must only be called with a location
931
- // argument that corresponds to a known catch block.
932
- throw new Error("illegal catch attempt");
933
- },
934
-
935
- delegateYield: function(iterable, resultName, nextLoc) {
936
- this.delegate = {
937
- iterator: values(iterable),
938
- resultName: resultName,
939
- nextLoc: nextLoc
940
- };
941
-
942
- if (this.method === "next") {
943
- // Deliberately forget the last sent value so that we don't
944
- // accidentally pass it on to the delegate.
945
- this.arg = undefined$1;
946
- }
947
-
948
- return ContinueSentinel;
949
- }
950
- };
951
-
952
- // Regardless of whether this script is executing as a CommonJS module
953
- // or not, return the runtime object so that we can declare the variable
954
- // regeneratorRuntime in the outer scope, which allows this module to be
955
- // injected easily by `bin/regenerator --include-runtime script.js`.
956
- return exports;
957
-
958
- }(
959
- // If this script is executing as a CommonJS module, use module.exports
960
- // as the regeneratorRuntime namespace. Otherwise create a new empty
961
- // object. Either way, the resulting object will be used to initialize
962
- // the regeneratorRuntime variable at the top of this file.
963
- module.exports
964
- ));
965
-
966
- try {
967
- regeneratorRuntime = runtime;
968
- } catch (accidentalStrictMode) {
969
- // This module should not be running in strict mode, so the above
970
- // assignment should always work unless something is misconfigured. Just
971
- // in case runtime.js accidentally runs in strict mode, in modern engines
972
- // we can explicitly access globalThis. In older engines we can escape
973
- // strict mode using a global Function call. This could conceivably fail
974
- // if a Content Security Policy forbids using Function, but in that case
975
- // the proper solution is to fix the accidental strict mode problem. If
976
- // you've misconfigured your bundler to force strict mode and applied a
977
- // CSP to forbid Function, and you're not willing to fix either of those
978
- // problems, please detail your unique predicament in a GitHub issue.
979
- if (typeof globalThis === "object") {
980
- globalThis.regeneratorRuntime = runtime;
981
- } else {
982
- Function("r", "regeneratorRuntime = r")(runtime);
983
- }
984
- }
985
- });
986
-
987
- /**
988
- * Checks if `value` is classified as an `Array` object.
989
- *
990
- * @static
991
- * @memberOf _
992
- * @since 0.1.0
993
- * @category Lang
994
- * @param {*} value The value to check.
995
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
996
- * @example
997
- *
998
- * _.isArray([1, 2, 3]);
999
- * // => true
1000
- *
1001
- * _.isArray(document.body.children);
1002
- * // => false
1003
- *
1004
- * _.isArray('abc');
1005
- * // => false
1006
- *
1007
- * _.isArray(_.noop);
1008
- * // => false
1009
- */
1010
- var isArray = Array.isArray;
1011
-
1012
- var isArray_1 = isArray;
1013
-
1014
- /** Detect free variable `global` from Node.js. */
1015
-
1016
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
1017
-
1018
- var _freeGlobal = freeGlobal;
1019
-
1020
- /** Detect free variable `self`. */
1021
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
1022
-
1023
- /** Used as a reference to the global object. */
1024
- var root = _freeGlobal || freeSelf || Function('return this')();
1025
-
1026
- var _root = root;
1027
-
1028
- /** Built-in value references. */
1029
- var Symbol$1 = _root.Symbol;
1030
-
1031
- var _Symbol = Symbol$1;
1032
-
1033
- /** Used for built-in method references. */
1034
- var objectProto$4 = Object.prototype;
1035
-
1036
- /** Used to check objects for own properties. */
1037
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
1038
-
1039
- /**
1040
- * Used to resolve the
1041
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1042
- * of values.
1043
- */
1044
- var nativeObjectToString$1 = objectProto$4.toString;
1045
-
1046
- /** Built-in value references. */
1047
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
1048
-
1049
- /**
1050
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
1051
- *
1052
- * @private
1053
- * @param {*} value The value to query.
1054
- * @returns {string} Returns the raw `toStringTag`.
1055
- */
1056
- function getRawTag(value) {
1057
- var isOwn = hasOwnProperty$3.call(value, symToStringTag$1),
1058
- tag = value[symToStringTag$1];
1059
-
1060
- try {
1061
- value[symToStringTag$1] = undefined;
1062
- var unmasked = true;
1063
- } catch (e) {}
1064
-
1065
- var result = nativeObjectToString$1.call(value);
1066
- if (unmasked) {
1067
- if (isOwn) {
1068
- value[symToStringTag$1] = tag;
1069
- } else {
1070
- delete value[symToStringTag$1];
1071
- }
1072
- }
1073
- return result;
1074
- }
1075
-
1076
- var _getRawTag = getRawTag;
1077
-
1078
- /** Used for built-in method references. */
1079
- var objectProto$3 = Object.prototype;
1080
-
1081
- /**
1082
- * Used to resolve the
1083
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1084
- * of values.
1085
- */
1086
- var nativeObjectToString = objectProto$3.toString;
1087
-
1088
- /**
1089
- * Converts `value` to a string using `Object.prototype.toString`.
1090
- *
1091
- * @private
1092
- * @param {*} value The value to convert.
1093
- * @returns {string} Returns the converted string.
1094
- */
1095
- function objectToString(value) {
1096
- return nativeObjectToString.call(value);
1097
- }
1098
-
1099
- var _objectToString = objectToString;
1100
-
1101
- /** `Object#toString` result references. */
1102
- var nullTag = '[object Null]',
1103
- undefinedTag = '[object Undefined]';
1104
-
1105
- /** Built-in value references. */
1106
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
1107
-
1108
- /**
1109
- * The base implementation of `getTag` without fallbacks for buggy environments.
1110
- *
1111
- * @private
1112
- * @param {*} value The value to query.
1113
- * @returns {string} Returns the `toStringTag`.
1114
- */
1115
- function baseGetTag(value) {
1116
- if (value == null) {
1117
- return value === undefined ? undefinedTag : nullTag;
1118
- }
1119
- return (symToStringTag && symToStringTag in Object(value))
1120
- ? _getRawTag(value)
1121
- : _objectToString(value);
1122
- }
1123
-
1124
- var _baseGetTag = baseGetTag;
1125
-
1126
- /**
1127
- * Checks if `value` is object-like. A value is object-like if it's not `null`
1128
- * and has a `typeof` result of "object".
1129
- *
1130
- * @static
1131
- * @memberOf _
1132
- * @since 4.0.0
1133
- * @category Lang
1134
- * @param {*} value The value to check.
1135
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
1136
- * @example
1137
- *
1138
- * _.isObjectLike({});
1139
- * // => true
1140
- *
1141
- * _.isObjectLike([1, 2, 3]);
1142
- * // => true
1143
- *
1144
- * _.isObjectLike(_.noop);
1145
- * // => false
1146
- *
1147
- * _.isObjectLike(null);
1148
- * // => false
1149
- */
1150
- function isObjectLike(value) {
1151
- return value != null && typeof value == 'object';
1152
- }
1153
-
1154
- var isObjectLike_1 = isObjectLike;
1155
-
1156
- /** `Object#toString` result references. */
1157
- var symbolTag = '[object Symbol]';
1158
-
1159
- /**
1160
- * Checks if `value` is classified as a `Symbol` primitive or object.
1161
- *
1162
- * @static
1163
- * @memberOf _
1164
- * @since 4.0.0
1165
- * @category Lang
1166
- * @param {*} value The value to check.
1167
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
1168
- * @example
1169
- *
1170
- * _.isSymbol(Symbol.iterator);
1171
- * // => true
1172
- *
1173
- * _.isSymbol('abc');
1174
- * // => false
1175
- */
1176
- function isSymbol(value) {
1177
- return typeof value == 'symbol' ||
1178
- (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
1179
- }
1180
-
1181
- var isSymbol_1 = isSymbol;
1182
-
1183
- /** Used to match property names within property paths. */
1184
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
1185
- reIsPlainProp = /^\w*$/;
1186
-
1187
- /**
1188
- * Checks if `value` is a property name and not a property path.
1189
- *
1190
- * @private
1191
- * @param {*} value The value to check.
1192
- * @param {Object} [object] The object to query keys on.
1193
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
1194
- */
1195
- function isKey(value, object) {
1196
- if (isArray_1(value)) {
1197
- return false;
1198
- }
1199
- var type = typeof value;
1200
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
1201
- value == null || isSymbol_1(value)) {
1202
- return true;
1203
- }
1204
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
1205
- (object != null && value in Object(object));
1206
- }
1207
-
1208
- var _isKey = isKey;
1209
-
1210
- /**
1211
- * Checks if `value` is the
1212
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1213
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1214
- *
1215
- * @static
1216
- * @memberOf _
1217
- * @since 0.1.0
1218
- * @category Lang
1219
- * @param {*} value The value to check.
1220
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1221
- * @example
1222
- *
1223
- * _.isObject({});
1224
- * // => true
1225
- *
1226
- * _.isObject([1, 2, 3]);
1227
- * // => true
1228
- *
1229
- * _.isObject(_.noop);
1230
- * // => true
1231
- *
1232
- * _.isObject(null);
1233
- * // => false
1234
- */
1235
- function isObject(value) {
1236
- var type = typeof value;
1237
- return value != null && (type == 'object' || type == 'function');
1238
- }
1239
-
1240
- var isObject_1 = isObject;
1241
-
1242
- /** `Object#toString` result references. */
1243
- var asyncTag = '[object AsyncFunction]',
1244
- funcTag = '[object Function]',
1245
- genTag = '[object GeneratorFunction]',
1246
- proxyTag = '[object Proxy]';
1247
-
1248
- /**
1249
- * Checks if `value` is classified as a `Function` object.
1250
- *
1251
- * @static
1252
- * @memberOf _
1253
- * @since 0.1.0
1254
- * @category Lang
1255
- * @param {*} value The value to check.
1256
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
1257
- * @example
1258
- *
1259
- * _.isFunction(_);
1260
- * // => true
1261
- *
1262
- * _.isFunction(/abc/);
1263
- * // => false
1264
- */
1265
- function isFunction(value) {
1266
- if (!isObject_1(value)) {
1267
- return false;
1268
- }
1269
- // The use of `Object#toString` avoids issues with the `typeof` operator
1270
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
1271
- var tag = _baseGetTag(value);
1272
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
1273
- }
1274
-
1275
- var isFunction_1 = isFunction;
1276
-
1277
- /** Used to detect overreaching core-js shims. */
1278
- var coreJsData = _root['__core-js_shared__'];
1279
-
1280
- var _coreJsData = coreJsData;
1281
-
1282
- /** Used to detect methods masquerading as native. */
1283
- var maskSrcKey = (function() {
1284
- var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
1285
- return uid ? ('Symbol(src)_1.' + uid) : '';
1286
- }());
1287
-
1288
- /**
1289
- * Checks if `func` has its source masked.
1290
- *
1291
- * @private
1292
- * @param {Function} func The function to check.
1293
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
1294
- */
1295
- function isMasked(func) {
1296
- return !!maskSrcKey && (maskSrcKey in func);
1297
- }
1298
-
1299
- var _isMasked = isMasked;
1300
-
1301
- /** Used for built-in method references. */
1302
- var funcProto$1 = Function.prototype;
1303
-
1304
- /** Used to resolve the decompiled source of functions. */
1305
- var funcToString$1 = funcProto$1.toString;
1306
-
1307
- /**
1308
- * Converts `func` to its source code.
1309
- *
1310
- * @private
1311
- * @param {Function} func The function to convert.
1312
- * @returns {string} Returns the source code.
1313
- */
1314
- function toSource(func) {
1315
- if (func != null) {
1316
- try {
1317
- return funcToString$1.call(func);
1318
- } catch (e) {}
1319
- try {
1320
- return (func + '');
1321
- } catch (e) {}
1322
- }
1323
- return '';
1324
- }
1325
-
1326
- var _toSource = toSource;
1327
-
1328
- /**
1329
- * Used to match `RegExp`
1330
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
1331
- */
1332
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
1333
-
1334
- /** Used to detect host constructors (Safari). */
1335
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
1336
-
1337
- /** Used for built-in method references. */
1338
- var funcProto = Function.prototype,
1339
- objectProto$2 = Object.prototype;
1340
-
1341
- /** Used to resolve the decompiled source of functions. */
1342
- var funcToString = funcProto.toString;
1343
-
1344
- /** Used to check objects for own properties. */
1345
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
1346
-
1347
- /** Used to detect if a method is native. */
1348
- var reIsNative = RegExp('^' +
1349
- funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
1350
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
1351
- );
1352
-
1353
- /**
1354
- * The base implementation of `_.isNative` without bad shim checks.
1355
- *
1356
- * @private
1357
- * @param {*} value The value to check.
1358
- * @returns {boolean} Returns `true` if `value` is a native function,
1359
- * else `false`.
1360
- */
1361
- function baseIsNative(value) {
1362
- if (!isObject_1(value) || _isMasked(value)) {
1363
- return false;
1364
- }
1365
- var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
1366
- return pattern.test(_toSource(value));
1367
- }
1368
-
1369
- var _baseIsNative = baseIsNative;
1370
-
1371
- /**
1372
- * Gets the value at `key` of `object`.
1373
- *
1374
- * @private
1375
- * @param {Object} [object] The object to query.
1376
- * @param {string} key The key of the property to get.
1377
- * @returns {*} Returns the property value.
1378
- */
1379
- function getValue(object, key) {
1380
- return object == null ? undefined : object[key];
1381
- }
1382
-
1383
- var _getValue = getValue;
1384
-
1385
- /**
1386
- * Gets the native function at `key` of `object`.
1387
- *
1388
- * @private
1389
- * @param {Object} object The object to query.
1390
- * @param {string} key The key of the method to get.
1391
- * @returns {*} Returns the function if it's native, else `undefined`.
1392
- */
1393
- function getNative(object, key) {
1394
- var value = _getValue(object, key);
1395
- return _baseIsNative(value) ? value : undefined;
1396
- }
1397
-
1398
- var _getNative = getNative;
1399
-
1400
- /* Built-in method references that are verified to be native. */
1401
- var nativeCreate = _getNative(Object, 'create');
1402
-
1403
- var _nativeCreate = nativeCreate;
1404
-
1405
- /**
1406
- * Removes all key-value entries from the hash.
1407
- *
1408
- * @private
1409
- * @name clear
1410
- * @memberOf Hash
1411
- */
1412
- function hashClear() {
1413
- this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
1414
- this.size = 0;
1415
- }
1416
-
1417
- var _hashClear = hashClear;
1418
-
1419
- /**
1420
- * Removes `key` and its value from the hash.
1421
- *
1422
- * @private
1423
- * @name delete
1424
- * @memberOf Hash
1425
- * @param {Object} hash The hash to modify.
1426
- * @param {string} key The key of the value to remove.
1427
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1428
- */
1429
- function hashDelete(key) {
1430
- var result = this.has(key) && delete this.__data__[key];
1431
- this.size -= result ? 1 : 0;
1432
- return result;
1433
- }
1434
-
1435
- var _hashDelete = hashDelete;
1436
-
1437
- /** Used to stand-in for `undefined` hash values. */
1438
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
1439
-
1440
- /** Used for built-in method references. */
1441
- var objectProto$1 = Object.prototype;
1442
-
1443
- /** Used to check objects for own properties. */
1444
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
1445
-
1446
- /**
1447
- * Gets the hash value for `key`.
1448
- *
1449
- * @private
1450
- * @name get
1451
- * @memberOf Hash
1452
- * @param {string} key The key of the value to get.
1453
- * @returns {*} Returns the entry value.
1454
- */
1455
- function hashGet(key) {
1456
- var data = this.__data__;
1457
- if (_nativeCreate) {
1458
- var result = data[key];
1459
- return result === HASH_UNDEFINED$1 ? undefined : result;
1460
- }
1461
- return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
1462
- }
1463
-
1464
- var _hashGet = hashGet;
1465
-
1466
- /** Used for built-in method references. */
1467
- var objectProto = Object.prototype;
1468
-
1469
- /** Used to check objects for own properties. */
1470
- var hasOwnProperty = objectProto.hasOwnProperty;
1471
-
1472
- /**
1473
- * Checks if a hash value for `key` exists.
1474
- *
1475
- * @private
1476
- * @name has
1477
- * @memberOf Hash
1478
- * @param {string} key The key of the entry to check.
1479
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1480
- */
1481
- function hashHas(key) {
1482
- var data = this.__data__;
1483
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
1484
- }
1485
-
1486
- var _hashHas = hashHas;
1487
-
1488
- /** Used to stand-in for `undefined` hash values. */
1489
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
1490
-
1491
- /**
1492
- * Sets the hash `key` to `value`.
1493
- *
1494
- * @private
1495
- * @name set
1496
- * @memberOf Hash
1497
- * @param {string} key The key of the value to set.
1498
- * @param {*} value The value to set.
1499
- * @returns {Object} Returns the hash instance.
1500
- */
1501
- function hashSet(key, value) {
1502
- var data = this.__data__;
1503
- this.size += this.has(key) ? 0 : 1;
1504
- data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
1505
- return this;
1506
- }
1507
-
1508
- var _hashSet = hashSet;
1509
-
1510
- /**
1511
- * Creates a hash object.
1512
- *
1513
- * @private
1514
- * @constructor
1515
- * @param {Array} [entries] The key-value pairs to cache.
1516
- */
1517
- function Hash(entries) {
1518
- var index = -1,
1519
- length = entries == null ? 0 : entries.length;
1520
-
1521
- this.clear();
1522
- while (++index < length) {
1523
- var entry = entries[index];
1524
- this.set(entry[0], entry[1]);
1525
- }
1526
- }
1527
-
1528
- // Add methods to `Hash`.
1529
- Hash.prototype.clear = _hashClear;
1530
- Hash.prototype['delete'] = _hashDelete;
1531
- Hash.prototype.get = _hashGet;
1532
- Hash.prototype.has = _hashHas;
1533
- Hash.prototype.set = _hashSet;
1534
-
1535
- var _Hash = Hash;
1536
-
1537
- /**
1538
- * Removes all key-value entries from the list cache.
1539
- *
1540
- * @private
1541
- * @name clear
1542
- * @memberOf ListCache
1543
- */
1544
- function listCacheClear() {
1545
- this.__data__ = [];
1546
- this.size = 0;
1547
- }
1548
-
1549
- var _listCacheClear = listCacheClear;
1550
-
1551
- /**
1552
- * Performs a
1553
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
1554
- * comparison between two values to determine if they are equivalent.
1555
- *
1556
- * @static
1557
- * @memberOf _
1558
- * @since 4.0.0
1559
- * @category Lang
1560
- * @param {*} value The value to compare.
1561
- * @param {*} other The other value to compare.
1562
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
1563
- * @example
1564
- *
1565
- * var object = { 'a': 1 };
1566
- * var other = { 'a': 1 };
1567
- *
1568
- * _.eq(object, object);
1569
- * // => true
1570
- *
1571
- * _.eq(object, other);
1572
- * // => false
1573
- *
1574
- * _.eq('a', 'a');
1575
- * // => true
1576
- *
1577
- * _.eq('a', Object('a'));
1578
- * // => false
1579
- *
1580
- * _.eq(NaN, NaN);
1581
- * // => true
1582
- */
1583
- function eq(value, other) {
1584
- return value === other || (value !== value && other !== other);
1585
- }
1586
-
1587
- var eq_1 = eq;
1588
-
1589
- /**
1590
- * Gets the index at which the `key` is found in `array` of key-value pairs.
1591
- *
1592
- * @private
1593
- * @param {Array} array The array to inspect.
1594
- * @param {*} key The key to search for.
1595
- * @returns {number} Returns the index of the matched value, else `-1`.
1596
- */
1597
- function assocIndexOf(array, key) {
1598
- var length = array.length;
1599
- while (length--) {
1600
- if (eq_1(array[length][0], key)) {
1601
- return length;
1602
- }
1603
- }
1604
- return -1;
1605
- }
1606
-
1607
- var _assocIndexOf = assocIndexOf;
1608
-
1609
- /** Used for built-in method references. */
1610
- var arrayProto = Array.prototype;
1611
-
1612
- /** Built-in value references. */
1613
- var splice = arrayProto.splice;
1614
-
1615
- /**
1616
- * Removes `key` and its value from the list cache.
1617
- *
1618
- * @private
1619
- * @name delete
1620
- * @memberOf ListCache
1621
- * @param {string} key The key of the value to remove.
1622
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1623
- */
1624
- function listCacheDelete(key) {
1625
- var data = this.__data__,
1626
- index = _assocIndexOf(data, key);
1627
-
1628
- if (index < 0) {
1629
- return false;
1630
- }
1631
- var lastIndex = data.length - 1;
1632
- if (index == lastIndex) {
1633
- data.pop();
1634
- } else {
1635
- splice.call(data, index, 1);
1636
- }
1637
- --this.size;
1638
- return true;
1639
- }
1640
-
1641
- var _listCacheDelete = listCacheDelete;
1642
-
1643
- /**
1644
- * Gets the list cache value for `key`.
1645
- *
1646
- * @private
1647
- * @name get
1648
- * @memberOf ListCache
1649
- * @param {string} key The key of the value to get.
1650
- * @returns {*} Returns the entry value.
1651
- */
1652
- function listCacheGet(key) {
1653
- var data = this.__data__,
1654
- index = _assocIndexOf(data, key);
1655
-
1656
- return index < 0 ? undefined : data[index][1];
1657
- }
1658
-
1659
- var _listCacheGet = listCacheGet;
1660
-
1661
- /**
1662
- * Checks if a list cache value for `key` exists.
1663
- *
1664
- * @private
1665
- * @name has
1666
- * @memberOf ListCache
1667
- * @param {string} key The key of the entry to check.
1668
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1669
- */
1670
- function listCacheHas(key) {
1671
- return _assocIndexOf(this.__data__, key) > -1;
1672
- }
1673
-
1674
- var _listCacheHas = listCacheHas;
1675
-
1676
- /**
1677
- * Sets the list cache `key` to `value`.
1678
- *
1679
- * @private
1680
- * @name set
1681
- * @memberOf ListCache
1682
- * @param {string} key The key of the value to set.
1683
- * @param {*} value The value to set.
1684
- * @returns {Object} Returns the list cache instance.
1685
- */
1686
- function listCacheSet(key, value) {
1687
- var data = this.__data__,
1688
- index = _assocIndexOf(data, key);
1689
-
1690
- if (index < 0) {
1691
- ++this.size;
1692
- data.push([key, value]);
1693
- } else {
1694
- data[index][1] = value;
1695
- }
1696
- return this;
1697
- }
1698
-
1699
- var _listCacheSet = listCacheSet;
1700
-
1701
- /**
1702
- * Creates an list cache object.
1703
- *
1704
- * @private
1705
- * @constructor
1706
- * @param {Array} [entries] The key-value pairs to cache.
1707
- */
1708
- function ListCache(entries) {
1709
- var index = -1,
1710
- length = entries == null ? 0 : entries.length;
1711
-
1712
- this.clear();
1713
- while (++index < length) {
1714
- var entry = entries[index];
1715
- this.set(entry[0], entry[1]);
1716
- }
1717
- }
1718
-
1719
- // Add methods to `ListCache`.
1720
- ListCache.prototype.clear = _listCacheClear;
1721
- ListCache.prototype['delete'] = _listCacheDelete;
1722
- ListCache.prototype.get = _listCacheGet;
1723
- ListCache.prototype.has = _listCacheHas;
1724
- ListCache.prototype.set = _listCacheSet;
1725
-
1726
- var _ListCache = ListCache;
1727
-
1728
- /* Built-in method references that are verified to be native. */
1729
- var Map = _getNative(_root, 'Map');
1730
-
1731
- var _Map = Map;
1732
-
1733
- /**
1734
- * Removes all key-value entries from the map.
1735
- *
1736
- * @private
1737
- * @name clear
1738
- * @memberOf MapCache
1739
- */
1740
- function mapCacheClear() {
1741
- this.size = 0;
1742
- this.__data__ = {
1743
- 'hash': new _Hash,
1744
- 'map': new (_Map || _ListCache),
1745
- 'string': new _Hash
1746
- };
1747
- }
1748
-
1749
- var _mapCacheClear = mapCacheClear;
1750
-
1751
- /**
1752
- * Checks if `value` is suitable for use as unique object key.
1753
- *
1754
- * @private
1755
- * @param {*} value The value to check.
1756
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1757
- */
1758
- function isKeyable(value) {
1759
- var type = typeof value;
1760
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1761
- ? (value !== '__proto__')
1762
- : (value === null);
1763
- }
1764
-
1765
- var _isKeyable = isKeyable;
1766
-
1767
- /**
1768
- * Gets the data for `map`.
1769
- *
1770
- * @private
1771
- * @param {Object} map The map to query.
1772
- * @param {string} key The reference key.
1773
- * @returns {*} Returns the map data.
1774
- */
1775
- function getMapData(map, key) {
1776
- var data = map.__data__;
1777
- return _isKeyable(key)
1778
- ? data[typeof key == 'string' ? 'string' : 'hash']
1779
- : data.map;
1780
- }
1781
-
1782
- var _getMapData = getMapData;
1783
-
1784
- /**
1785
- * Removes `key` and its value from the map.
1786
- *
1787
- * @private
1788
- * @name delete
1789
- * @memberOf MapCache
1790
- * @param {string} key The key of the value to remove.
1791
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1792
- */
1793
- function mapCacheDelete(key) {
1794
- var result = _getMapData(this, key)['delete'](key);
1795
- this.size -= result ? 1 : 0;
1796
- return result;
1797
- }
1798
-
1799
- var _mapCacheDelete = mapCacheDelete;
1800
-
1801
- /**
1802
- * Gets the map value for `key`.
1803
- *
1804
- * @private
1805
- * @name get
1806
- * @memberOf MapCache
1807
- * @param {string} key The key of the value to get.
1808
- * @returns {*} Returns the entry value.
1809
- */
1810
- function mapCacheGet(key) {
1811
- return _getMapData(this, key).get(key);
1812
- }
1813
-
1814
- var _mapCacheGet = mapCacheGet;
1815
-
1816
- /**
1817
- * Checks if a map value for `key` exists.
1818
- *
1819
- * @private
1820
- * @name has
1821
- * @memberOf MapCache
1822
- * @param {string} key The key of the entry to check.
1823
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1824
- */
1825
- function mapCacheHas(key) {
1826
- return _getMapData(this, key).has(key);
1827
- }
1828
-
1829
- var _mapCacheHas = mapCacheHas;
1830
-
1831
- /**
1832
- * Sets the map `key` to `value`.
1833
- *
1834
- * @private
1835
- * @name set
1836
- * @memberOf MapCache
1837
- * @param {string} key The key of the value to set.
1838
- * @param {*} value The value to set.
1839
- * @returns {Object} Returns the map cache instance.
1840
- */
1841
- function mapCacheSet(key, value) {
1842
- var data = _getMapData(this, key),
1843
- size = data.size;
1844
-
1845
- data.set(key, value);
1846
- this.size += data.size == size ? 0 : 1;
1847
- return this;
1848
- }
1849
-
1850
- var _mapCacheSet = mapCacheSet;
1851
-
1852
- /**
1853
- * Creates a map cache object to store key-value pairs.
1854
- *
1855
- * @private
1856
- * @constructor
1857
- * @param {Array} [entries] The key-value pairs to cache.
1858
- */
1859
- function MapCache(entries) {
1860
- var index = -1,
1861
- length = entries == null ? 0 : entries.length;
1862
-
1863
- this.clear();
1864
- while (++index < length) {
1865
- var entry = entries[index];
1866
- this.set(entry[0], entry[1]);
1867
- }
1868
- }
1869
-
1870
- // Add methods to `MapCache`.
1871
- MapCache.prototype.clear = _mapCacheClear;
1872
- MapCache.prototype['delete'] = _mapCacheDelete;
1873
- MapCache.prototype.get = _mapCacheGet;
1874
- MapCache.prototype.has = _mapCacheHas;
1875
- MapCache.prototype.set = _mapCacheSet;
1876
-
1877
- var _MapCache = MapCache;
1878
-
1879
- /** Error message constants. */
1880
- var FUNC_ERROR_TEXT = 'Expected a function';
1881
-
1882
- /**
1883
- * Creates a function that memoizes the result of `func`. If `resolver` is
1884
- * provided, it determines the cache key for storing the result based on the
1885
- * arguments provided to the memoized function. By default, the first argument
1886
- * provided to the memoized function is used as the map cache key. The `func`
1887
- * is invoked with the `this` binding of the memoized function.
1888
- *
1889
- * **Note:** The cache is exposed as the `cache` property on the memoized
1890
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
1891
- * constructor with one whose instances implement the
1892
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
1893
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
1894
- *
1895
- * @static
1896
- * @memberOf _
1897
- * @since 0.1.0
1898
- * @category Function
1899
- * @param {Function} func The function to have its output memoized.
1900
- * @param {Function} [resolver] The function to resolve the cache key.
1901
- * @returns {Function} Returns the new memoized function.
1902
- * @example
1903
- *
1904
- * var object = { 'a': 1, 'b': 2 };
1905
- * var other = { 'c': 3, 'd': 4 };
1906
- *
1907
- * var values = _.memoize(_.values);
1908
- * values(object);
1909
- * // => [1, 2]
1910
- *
1911
- * values(other);
1912
- * // => [3, 4]
1913
- *
1914
- * object.a = 2;
1915
- * values(object);
1916
- * // => [1, 2]
1917
- *
1918
- * // Modify the result cache.
1919
- * values.cache.set(object, ['a', 'b']);
1920
- * values(object);
1921
- * // => ['a', 'b']
1922
- *
1923
- * // Replace `_.memoize.Cache`.
1924
- * _.memoize.Cache = WeakMap;
1925
- */
1926
- function memoize(func, resolver) {
1927
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
1928
- throw new TypeError(FUNC_ERROR_TEXT);
1929
- }
1930
- var memoized = function() {
1931
- var args = arguments,
1932
- key = resolver ? resolver.apply(this, args) : args[0],
1933
- cache = memoized.cache;
1934
-
1935
- if (cache.has(key)) {
1936
- return cache.get(key);
1937
- }
1938
- var result = func.apply(this, args);
1939
- memoized.cache = cache.set(key, result) || cache;
1940
- return result;
1941
- };
1942
- memoized.cache = new (memoize.Cache || _MapCache);
1943
- return memoized;
1944
- }
1945
-
1946
- // Expose `MapCache`.
1947
- memoize.Cache = _MapCache;
1948
-
1949
- var memoize_1 = memoize;
1950
-
1951
- /** Used as the maximum memoize cache size. */
1952
- var MAX_MEMOIZE_SIZE = 500;
1953
-
1954
- /**
1955
- * A specialized version of `_.memoize` which clears the memoized function's
1956
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
1957
- *
1958
- * @private
1959
- * @param {Function} func The function to have its output memoized.
1960
- * @returns {Function} Returns the new memoized function.
1961
- */
1962
- function memoizeCapped(func) {
1963
- var result = memoize_1(func, function(key) {
1964
- if (cache.size === MAX_MEMOIZE_SIZE) {
1965
- cache.clear();
1966
- }
1967
- return key;
1968
- });
1969
-
1970
- var cache = result.cache;
1971
- return result;
1972
- }
1973
-
1974
- var _memoizeCapped = memoizeCapped;
1975
-
1976
- /** Used to match property names within property paths. */
1977
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
1978
-
1979
- /** Used to match backslashes in property paths. */
1980
- var reEscapeChar = /\\(\\)?/g;
1981
-
1982
- /**
1983
- * Converts `string` to a property path array.
1984
- *
1985
- * @private
1986
- * @param {string} string The string to convert.
1987
- * @returns {Array} Returns the property path array.
1988
- */
1989
- var stringToPath = _memoizeCapped(function(string) {
1990
- var result = [];
1991
- if (string.charCodeAt(0) === 46 /* . */) {
1992
- result.push('');
1993
- }
1994
- string.replace(rePropName, function(match, number, quote, subString) {
1995
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
1996
- });
1997
- return result;
1998
- });
1999
-
2000
- var _stringToPath = stringToPath;
2001
-
2002
- /**
2003
- * A specialized version of `_.map` for arrays without support for iteratee
2004
- * shorthands.
2005
- *
2006
- * @private
2007
- * @param {Array} [array] The array to iterate over.
2008
- * @param {Function} iteratee The function invoked per iteration.
2009
- * @returns {Array} Returns the new mapped array.
2010
- */
2011
- function arrayMap(array, iteratee) {
2012
- var index = -1,
2013
- length = array == null ? 0 : array.length,
2014
- result = Array(length);
2015
-
2016
- while (++index < length) {
2017
- result[index] = iteratee(array[index], index, array);
2018
- }
2019
- return result;
2020
- }
2021
-
2022
- var _arrayMap = arrayMap;
2023
-
2024
- /** Used as references for various `Number` constants. */
2025
- var INFINITY$1 = 1 / 0;
2026
-
2027
- /** Used to convert symbols to primitives and strings. */
2028
- var symbolProto = _Symbol ? _Symbol.prototype : undefined,
2029
- symbolToString = symbolProto ? symbolProto.toString : undefined;
2030
-
2031
- /**
2032
- * The base implementation of `_.toString` which doesn't convert nullish
2033
- * values to empty strings.
2034
- *
2035
- * @private
2036
- * @param {*} value The value to process.
2037
- * @returns {string} Returns the string.
2038
- */
2039
- function baseToString(value) {
2040
- // Exit early for strings to avoid a performance hit in some environments.
2041
- if (typeof value == 'string') {
2042
- return value;
2043
- }
2044
- if (isArray_1(value)) {
2045
- // Recursively convert values (susceptible to call stack limits).
2046
- return _arrayMap(value, baseToString) + '';
2047
- }
2048
- if (isSymbol_1(value)) {
2049
- return symbolToString ? symbolToString.call(value) : '';
2050
- }
2051
- var result = (value + '');
2052
- return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
2053
- }
2054
-
2055
- var _baseToString = baseToString;
2056
-
2057
- /**
2058
- * Converts `value` to a string. An empty string is returned for `null`
2059
- * and `undefined` values. The sign of `-0` is preserved.
2060
- *
2061
- * @static
2062
- * @memberOf _
2063
- * @since 4.0.0
2064
- * @category Lang
2065
- * @param {*} value The value to convert.
2066
- * @returns {string} Returns the converted string.
2067
- * @example
2068
- *
2069
- * _.toString(null);
2070
- * // => ''
2071
- *
2072
- * _.toString(-0);
2073
- * // => '-0'
2074
- *
2075
- * _.toString([1, 2, 3]);
2076
- * // => '1,2,3'
2077
- */
2078
- function toString(value) {
2079
- return value == null ? '' : _baseToString(value);
2080
- }
2081
-
2082
- var toString_1 = toString;
2083
-
2084
- /**
2085
- * Casts `value` to a path array if it's not one.
2086
- *
2087
- * @private
2088
- * @param {*} value The value to inspect.
2089
- * @param {Object} [object] The object to query keys on.
2090
- * @returns {Array} Returns the cast property path array.
2091
- */
2092
- function castPath(value, object) {
2093
- if (isArray_1(value)) {
2094
- return value;
2095
- }
2096
- return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
2097
- }
2098
-
2099
- var _castPath = castPath;
2100
-
2101
- /** Used as references for various `Number` constants. */
2102
- var INFINITY = 1 / 0;
2103
-
2104
- /**
2105
- * Converts `value` to a string key if it's not a string or symbol.
2106
- *
2107
- * @private
2108
- * @param {*} value The value to inspect.
2109
- * @returns {string|symbol} Returns the key.
2110
- */
2111
- function toKey(value) {
2112
- if (typeof value == 'string' || isSymbol_1(value)) {
2113
- return value;
2114
- }
2115
- var result = (value + '');
2116
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
2117
- }
2118
-
2119
- var _toKey = toKey;
2120
-
2121
- /**
2122
- * The base implementation of `_.get` without support for default values.
2123
- *
2124
- * @private
2125
- * @param {Object} object The object to query.
2126
- * @param {Array|string} path The path of the property to get.
2127
- * @returns {*} Returns the resolved value.
2128
- */
2129
- function baseGet(object, path) {
2130
- path = _castPath(path, object);
2131
-
2132
- var index = 0,
2133
- length = path.length;
2134
-
2135
- while (object != null && index < length) {
2136
- object = object[_toKey(path[index++])];
2137
- }
2138
- return (index && index == length) ? object : undefined;
2139
- }
2140
-
2141
- var _baseGet = baseGet;
2142
-
2143
- /**
2144
- * Gets the value at `path` of `object`. If the resolved value is
2145
- * `undefined`, the `defaultValue` is returned in its place.
2146
- *
2147
- * @static
2148
- * @memberOf _
2149
- * @since 3.7.0
2150
- * @category Object
2151
- * @param {Object} object The object to query.
2152
- * @param {Array|string} path The path of the property to get.
2153
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
2154
- * @returns {*} Returns the resolved value.
2155
- * @example
2156
- *
2157
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
2158
- *
2159
- * _.get(object, 'a[0].b.c');
2160
- * // => 3
2161
- *
2162
- * _.get(object, ['a', '0', 'b', 'c']);
2163
- * // => 3
2164
- *
2165
- * _.get(object, 'a.b.c', 'default');
2166
- * // => 'default'
2167
- */
2168
- function get(object, path, defaultValue) {
2169
- var result = object == null ? undefined : _baseGet(object, path);
2170
- return result === undefined ? defaultValue : result;
2171
- }
2172
-
2173
- var get_1 = get;
2174
-
2175
- /**
2176
- * A specialized version of `_.reduce` for arrays without support for
2177
- * iteratee shorthands.
2178
- *
2179
- * @private
2180
- * @param {Array} [array] The array to iterate over.
2181
- * @param {Function} iteratee The function invoked per iteration.
2182
- * @param {*} [accumulator] The initial value.
2183
- * @param {boolean} [initAccum] Specify using the first element of `array` as
2184
- * the initial value.
2185
- * @returns {*} Returns the accumulated value.
2186
- */
2187
- function arrayReduce(array, iteratee, accumulator, initAccum) {
2188
- var index = -1,
2189
- length = array == null ? 0 : array.length;
2190
-
2191
- if (initAccum && length) {
2192
- accumulator = array[++index];
2193
- }
2194
- while (++index < length) {
2195
- accumulator = iteratee(accumulator, array[index], index, array);
2196
- }
2197
- return accumulator;
2198
- }
2199
-
2200
- var _arrayReduce = arrayReduce;
2201
-
2202
- /**
2203
- * The base implementation of `_.propertyOf` without support for deep paths.
2204
- *
2205
- * @private
2206
- * @param {Object} object The object to query.
2207
- * @returns {Function} Returns the new accessor function.
2208
- */
2209
- function basePropertyOf(object) {
2210
- return function(key) {
2211
- return object == null ? undefined : object[key];
2212
- };
2213
- }
2214
-
2215
- var _basePropertyOf = basePropertyOf;
2216
-
2217
- /** Used to map Latin Unicode letters to basic Latin letters. */
2218
- var deburredLetters = {
2219
- // Latin-1 Supplement block.
2220
- '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
2221
- '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
2222
- '\xc7': 'C', '\xe7': 'c',
2223
- '\xd0': 'D', '\xf0': 'd',
2224
- '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
2225
- '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
2226
- '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
2227
- '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
2228
- '\xd1': 'N', '\xf1': 'n',
2229
- '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
2230
- '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
2231
- '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
2232
- '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
2233
- '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
2234
- '\xc6': 'Ae', '\xe6': 'ae',
2235
- '\xde': 'Th', '\xfe': 'th',
2236
- '\xdf': 'ss',
2237
- // Latin Extended-A block.
2238
- '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
2239
- '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
2240
- '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
2241
- '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
2242
- '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
2243
- '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
2244
- '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
2245
- '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
2246
- '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
2247
- '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
2248
- '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
2249
- '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
2250
- '\u0134': 'J', '\u0135': 'j',
2251
- '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
2252
- '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
2253
- '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
2254
- '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
2255
- '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
2256
- '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
2257
- '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
2258
- '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
2259
- '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
2260
- '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
2261
- '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
2262
- '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
2263
- '\u0163': 't', '\u0165': 't', '\u0167': 't',
2264
- '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
2265
- '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
2266
- '\u0174': 'W', '\u0175': 'w',
2267
- '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
2268
- '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
2269
- '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
2270
- '\u0132': 'IJ', '\u0133': 'ij',
2271
- '\u0152': 'Oe', '\u0153': 'oe',
2272
- '\u0149': "'n", '\u017f': 's'
2273
- };
2274
-
2275
- /**
2276
- * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
2277
- * letters to basic Latin letters.
2278
- *
2279
- * @private
2280
- * @param {string} letter The matched letter to deburr.
2281
- * @returns {string} Returns the deburred letter.
2282
- */
2283
- var deburrLetter = _basePropertyOf(deburredLetters);
2284
-
2285
- var _deburrLetter = deburrLetter;
2286
-
2287
- /** Used to match Latin Unicode letters (excluding mathematical operators). */
2288
- var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
2289
-
2290
- /** Used to compose unicode character classes. */
2291
- var rsComboMarksRange$1 = '\\u0300-\\u036f',
2292
- reComboHalfMarksRange$1 = '\\ufe20-\\ufe2f',
2293
- rsComboSymbolsRange$1 = '\\u20d0-\\u20ff',
2294
- rsComboRange$1 = rsComboMarksRange$1 + reComboHalfMarksRange$1 + rsComboSymbolsRange$1;
2295
-
2296
- /** Used to compose unicode capture groups. */
2297
- var rsCombo$1 = '[' + rsComboRange$1 + ']';
2298
-
2299
- /**
2300
- * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
2301
- * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
2302
- */
2303
- var reComboMark = RegExp(rsCombo$1, 'g');
2304
-
2305
- /**
2306
- * Deburrs `string` by converting
2307
- * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
2308
- * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
2309
- * letters to basic Latin letters and removing
2310
- * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
2311
- *
2312
- * @static
2313
- * @memberOf _
2314
- * @since 3.0.0
2315
- * @category String
2316
- * @param {string} [string=''] The string to deburr.
2317
- * @returns {string} Returns the deburred string.
2318
- * @example
2319
- *
2320
- * _.deburr('déjà vu');
2321
- * // => 'deja vu'
2322
- */
2323
- function deburr(string) {
2324
- string = toString_1(string);
2325
- return string && string.replace(reLatin, _deburrLetter).replace(reComboMark, '');
2326
- }
2327
-
2328
- var deburr_1 = deburr;
2329
-
2330
- /** Used to match words composed of alphanumeric characters. */
2331
- var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
2332
-
2333
- /**
2334
- * Splits an ASCII `string` into an array of its words.
2335
- *
2336
- * @private
2337
- * @param {string} The string to inspect.
2338
- * @returns {Array} Returns the words of `string`.
2339
- */
2340
- function asciiWords(string) {
2341
- return string.match(reAsciiWord) || [];
2342
- }
2343
-
2344
- var _asciiWords = asciiWords;
2345
-
2346
- /** Used to detect strings that need a more robust regexp to match words. */
2347
- var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
2348
-
2349
- /**
2350
- * Checks if `string` contains a word composed of Unicode symbols.
2351
- *
2352
- * @private
2353
- * @param {string} string The string to inspect.
2354
- * @returns {boolean} Returns `true` if a word is found, else `false`.
2355
- */
2356
- function hasUnicodeWord(string) {
2357
- return reHasUnicodeWord.test(string);
2358
- }
2359
-
2360
- var _hasUnicodeWord = hasUnicodeWord;
2361
-
2362
- /** Used to compose unicode character classes. */
2363
- var rsAstralRange = '\\ud800-\\udfff',
2364
- rsComboMarksRange = '\\u0300-\\u036f',
2365
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
2366
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
2367
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
2368
- rsDingbatRange = '\\u2700-\\u27bf',
2369
- rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
2370
- rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
2371
- rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
2372
- rsPunctuationRange = '\\u2000-\\u206f',
2373
- rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
2374
- rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
2375
- rsVarRange = '\\ufe0e\\ufe0f',
2376
- rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
2377
-
2378
- /** Used to compose unicode capture groups. */
2379
- var rsApos$1 = "['\u2019]",
2380
- rsBreak = '[' + rsBreakRange + ']',
2381
- rsCombo = '[' + rsComboRange + ']',
2382
- rsDigits = '\\d+',
2383
- rsDingbat = '[' + rsDingbatRange + ']',
2384
- rsLower = '[' + rsLowerRange + ']',
2385
- rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
2386
- rsFitz = '\\ud83c[\\udffb-\\udfff]',
2387
- rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
2388
- rsNonAstral = '[^' + rsAstralRange + ']',
2389
- rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
2390
- rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
2391
- rsUpper = '[' + rsUpperRange + ']',
2392
- rsZWJ = '\\u200d';
2393
-
2394
- /** Used to compose unicode regexes. */
2395
- var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
2396
- rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
2397
- rsOptContrLower = '(?:' + rsApos$1 + '(?:d|ll|m|re|s|t|ve))?',
2398
- rsOptContrUpper = '(?:' + rsApos$1 + '(?:D|LL|M|RE|S|T|VE))?',
2399
- reOptMod = rsModifier + '?',
2400
- rsOptVar = '[' + rsVarRange + ']?',
2401
- rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
2402
- rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
2403
- rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
2404
- rsSeq = rsOptVar + reOptMod + rsOptJoin,
2405
- rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq;
2406
-
2407
- /** Used to match complex or compound words. */
2408
- var reUnicodeWord = RegExp([
2409
- rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
2410
- rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
2411
- rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
2412
- rsUpper + '+' + rsOptContrUpper,
2413
- rsOrdUpper,
2414
- rsOrdLower,
2415
- rsDigits,
2416
- rsEmoji
2417
- ].join('|'), 'g');
2418
-
2419
- /**
2420
- * Splits a Unicode `string` into an array of its words.
2421
- *
2422
- * @private
2423
- * @param {string} The string to inspect.
2424
- * @returns {Array} Returns the words of `string`.
2425
- */
2426
- function unicodeWords(string) {
2427
- return string.match(reUnicodeWord) || [];
2428
- }
2429
-
2430
- var _unicodeWords = unicodeWords;
2431
-
2432
- /**
2433
- * Splits `string` into an array of its words.
2434
- *
2435
- * @static
2436
- * @memberOf _
2437
- * @since 3.0.0
2438
- * @category String
2439
- * @param {string} [string=''] The string to inspect.
2440
- * @param {RegExp|string} [pattern] The pattern to match words.
2441
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
2442
- * @returns {Array} Returns the words of `string`.
2443
- * @example
2444
- *
2445
- * _.words('fred, barney, & pebbles');
2446
- * // => ['fred', 'barney', 'pebbles']
2447
- *
2448
- * _.words('fred, barney, & pebbles', /[^, ]+/g);
2449
- * // => ['fred', 'barney', '&', 'pebbles']
2450
- */
2451
- function words(string, pattern, guard) {
2452
- string = toString_1(string);
2453
- pattern = guard ? undefined : pattern;
2454
-
2455
- if (pattern === undefined) {
2456
- return _hasUnicodeWord(string) ? _unicodeWords(string) : _asciiWords(string);
2457
- }
2458
- return string.match(pattern) || [];
2459
- }
2460
-
2461
- var words_1 = words;
2462
-
2463
- /** Used to compose unicode capture groups. */
2464
- var rsApos = "['\u2019]";
2465
-
2466
- /** Used to match apostrophes. */
2467
- var reApos = RegExp(rsApos, 'g');
2468
-
2469
- /**
2470
- * Creates a function like `_.camelCase`.
2471
- *
2472
- * @private
2473
- * @param {Function} callback The function to combine each word.
2474
- * @returns {Function} Returns the new compounder function.
2475
- */
2476
- function createCompounder(callback) {
2477
- return function(string) {
2478
- return _arrayReduce(words_1(deburr_1(string).replace(reApos, '')), callback, '');
2479
- };
2480
- }
2481
-
2482
- var _createCompounder = createCompounder;
2483
-
2484
- /**
2485
- * Converts `string`, as space separated words, to upper case.
2486
- *
2487
- * @static
2488
- * @memberOf _
2489
- * @since 4.0.0
2490
- * @category String
2491
- * @param {string} [string=''] The string to convert.
2492
- * @returns {string} Returns the upper cased string.
2493
- * @example
2494
- *
2495
- * _.upperCase('--foo-bar');
2496
- * // => 'FOO BAR'
2497
- *
2498
- * _.upperCase('fooBar');
2499
- * // => 'FOO BAR'
2500
- *
2501
- * _.upperCase('__foo_bar__');
2502
- * // => 'FOO BAR'
2503
- */
2504
- var upperCase = _createCompounder(function(result, word, index) {
2505
- return result + (index ? ' ' : '') + word.toUpperCase();
2506
- });
2507
-
2508
- var upperCase_1 = upperCase;
2509
-
2510
- /**
2511
- * Converts `string`, as space separated words, to lower case.
2512
- *
2513
- * @static
2514
- * @memberOf _
2515
- * @since 4.0.0
2516
- * @category String
2517
- * @param {string} [string=''] The string to convert.
2518
- * @returns {string} Returns the lower cased string.
2519
- * @example
2520
- *
2521
- * _.lowerCase('--Foo-Bar--');
2522
- * // => 'foo bar'
2523
- *
2524
- * _.lowerCase('fooBar');
2525
- * // => 'foo bar'
2526
- *
2527
- * _.lowerCase('__FOO_BAR__');
2528
- * // => 'foo bar'
2529
- */
2530
- var lowerCase = _createCompounder(function(result, word, index) {
2531
- return result + (index ? ' ' : '') + word.toLowerCase();
2532
- });
2533
-
2534
- var lowerCase_1 = lowerCase;
2535
-
2536
48
  function truncate() {
2537
49
  var string = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
2538
50
  var limit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 60;
@@ -2559,7 +71,7 @@ var timestampToFormat = function timestampToFormat(value, unit, suffix, timestam
2559
71
  var localizedMonth = month;
2560
72
 
2561
73
  if (isUpperCase) {
2562
- localizedMonth = upperCase_1(month);
74
+ localizedMonth = lodash.upperCase(month);
2563
75
  }
2564
76
 
2565
77
  var year = dateTime.getFullYear();
@@ -2572,7 +84,7 @@ var timestampToFormat = function timestampToFormat(value, unit, suffix, timestam
2572
84
  var timetoShow;
2573
85
 
2574
86
  if (localizedMonths) {
2575
- localizedMonth = get_1(localizedMonths, [lowerCase_1(month)]) || month;
87
+ localizedMonth = lodash.get(localizedMonths, [lodash.lowerCase(month)]) || month;
2576
88
  }
2577
89
 
2578
90
  if (localizedMeridiem) {
@@ -2602,17 +114,17 @@ function formatter(value, unit, suffix, date, config) {
2602
114
  var showDateForUnits = ["day", "week", "month", "year"]; // suffix here refers to ago
2603
115
  // unit here refers to seconds, minute, minutes,...
2604
116
 
2605
- var localizedSuffix = get_1(config, ["localizedPublishTime", suffix]) || suffix;
117
+ var localizedSuffix = lodash.get(config, ["localizedPublishTime", suffix]) || suffix;
2606
118
  var localizedUnitOfTime;
2607
119
 
2608
120
  if (unit === "hour" && value > 23 || showDateForUnits.indexOf(unit) !== -1) {
2609
121
  return timestampToFormat(value, unit, suffix, date, config);
2610
122
  } else if (value > 1) {
2611
- localizedUnitOfTime = get_1(config, ["localizedPublishTime", "".concat(unit, "s")]) || "".concat(unit, "s");
123
+ localizedUnitOfTime = lodash.get(config, ["localizedPublishTime", "".concat(unit, "s")]) || "".concat(unit, "s");
2612
124
  return "".concat(value, " ").concat(localizedUnitOfTime, " ").concat(localizedSuffix);
2613
125
  }
2614
126
 
2615
- localizedUnitOfTime = get_1(config, ["localizedPublishTime", unit]) || unit;
127
+ localizedUnitOfTime = lodash.get(config, ["localizedPublishTime", unit]) || unit;
2616
128
  return "".concat(value, " ").concat(localizedUnitOfTime, " ").concat(localizedSuffix, " ");
2617
129
  }
2618
130
 
@@ -2665,10 +177,10 @@ var clientWidths = {
2665
177
  tablet: 1024
2666
178
  };
2667
179
  var clientWidth = function clientWidth(device) {
2668
- var foundDeviceWidth = get_1(clientWidths, device);
180
+ var foundDeviceWidth = lodash.get(clientWidths, device);
2669
181
 
2670
182
  if (foundDeviceWidth) {
2671
- return get_1(global, "document.documentElement.clientWidth") <= foundDeviceWidth;
183
+ return lodash.get(global, "document.documentElement.clientWidth") <= foundDeviceWidth;
2672
184
  }
2673
185
 
2674
186
  return false;
@@ -2698,7 +210,7 @@ var getSlug = function getSlug(collection) {
2698
210
  var isSection = collection.template === "section";
2699
211
 
2700
212
  if (isSection) {
2701
- var sectionId = get_1(collection, ["metadata", "section", "0", "id"], "");
213
+ var sectionId = lodash.get(collection, ["metadata", "section", "0", "id"], "");
2702
214
  var sections = config.sections;
2703
215
  var section = sections && sections.find(function (section) {
2704
216
  return section.id === sectionId;
@@ -2714,11 +226,11 @@ function isExternalStory() {
2714
226
  storyTemplate = _story$storyTemplate === void 0 ? "" : _story$storyTemplate,
2715
227
  _story$metadata = story.metadata,
2716
228
  metadata = _story$metadata === void 0 ? {} : _story$metadata;
2717
- return storyTemplate === "news-elsewhere" ? get_1(metadata, ["reference-url"], "") : "";
229
+ return storyTemplate === "news-elsewhere" ? lodash.get(metadata, ["reference-url"], "") : "";
2718
230
  } // Adds target='_blank' attribute to anchor tags if not present
2719
231
  var isEmpty = function isEmpty(value) {
2720
232
  return value == null || // From standard.js: Always use === - but value == null is allowed to check null || undefined
2721
- _typeof(value) === "object" && Object.entries(value).length === 0 && value.constructor === Object || typeof value === "string" && value.trim().length === 0;
233
+ _typeof__default["default"](value) === "object" && Object.entries(value).length === 0 && value.constructor === Object || typeof value === "string" && value.trim().length === 0;
2722
234
  };
2723
235
  PropTypes__default["default"].shape({
2724
236
  "sketches-host": PropTypes__default["default"].string,
@@ -2732,7 +244,7 @@ PropTypes__default["default"].shape({
2732
244
  });
2733
245
  var getStoryUrl = function getStoryUrl(story) {
2734
246
  var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
2735
- return get_1(story, ["story-template"]) === "news-elsewhere" ? get_1(story, ["metadata", "reference-url"], "") : story.url || defaultValue;
247
+ return lodash.get(story, ["story-template"]) === "news-elsewhere" ? lodash.get(story, ["metadata", "reference-url"], "") : story.url || defaultValue;
2736
248
  };
2737
249
  var navigateTo = function navigateTo(dispatch) {
2738
250
  var url = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
@@ -2790,40 +302,6 @@ var getTimeStamp = function getTimeStamp(date, _formatter) {
2790
302
  });
2791
303
  };
2792
304
 
2793
- function _iterableToArrayLimit(arr, i) {
2794
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
2795
-
2796
- if (_i == null) return;
2797
- var _arr = [];
2798
- var _n = true;
2799
- var _d = false;
2800
-
2801
- var _s, _e;
2802
-
2803
- try {
2804
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
2805
- _arr.push(_s.value);
2806
-
2807
- if (i && _arr.length === i) break;
2808
- }
2809
- } catch (err) {
2810
- _d = true;
2811
- _e = err;
2812
- } finally {
2813
- try {
2814
- if (!_n && _i["return"] != null) _i["return"]();
2815
- } finally {
2816
- if (_d) throw _e;
2817
- }
2818
- }
2819
-
2820
- return _arr;
2821
- }
2822
-
2823
- function _slicedToArray(arr, i) {
2824
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
2825
- }
2826
-
2827
305
  var ImageFallbackIcon = function ImageFallbackIcon(_ref) {
2828
306
  var _ref$width = _ref.width,
2829
307
  width = _ref$width === void 0 ? 40 : _ref$width,
@@ -2964,7 +442,7 @@ var HeroImage = function HeroImage(_ref) {
2964
442
  return null;
2965
443
  } : _config$StoryTemplate;
2966
444
  var showImagePlaceholder = reactRedux.useSelector(function (state) {
2967
- return get_1(state, ["qt", "config", "showPlaceholder"]);
445
+ return lodash.get(state, ["qt", "config", "showPlaceholder"]);
2968
446
  });
2969
447
  var getPlaceholderStyleName = showImagePlaceholder ? "placeholder" : "";
2970
448
  var fullBleed = FullBleed ? "" : "with-padding";
@@ -2973,7 +451,7 @@ var HeroImage = function HeroImage(_ref) {
2973
451
  var heroImageMobClasses = isHorizontalMobile ? "right-padding-mob" : "";
2974
452
 
2975
453
  var getPadding = function getPadding(aspectRatio) {
2976
- var _aspectRatio = _slicedToArray(aspectRatio, 2),
454
+ var _aspectRatio = _slicedToArray__default["default"](aspectRatio, 2),
2977
455
  height = _aspectRatio[0],
2978
456
  width = _aspectRatio[1];
2979
457
 
@@ -2985,7 +463,7 @@ var HeroImage = function HeroImage(_ref) {
2985
463
  return 0;
2986
464
  };
2987
465
 
2988
- var _aspectRatio2 = _slicedToArray(aspectRatio, 2),
466
+ var _aspectRatio2 = _slicedToArray__default["default"](aspectRatio, 2),
2989
467
  mobileAspectRatio = _aspectRatio2[0],
2990
468
  _aspectRatio2$ = _aspectRatio2[1],
2991
469
  desktopAspectRatio = _aspectRatio2$ === void 0 ? mobileAspectRatio : _aspectRatio2$;
@@ -2993,8 +471,8 @@ var HeroImage = function HeroImage(_ref) {
2993
471
  var isMobile = clientWidth("mobile");
2994
472
  var imageAspectRatio = isMobile ? mobileAspectRatio : desktopAspectRatio;
2995
473
  var imagePadding = isMobile ? getPadding(mobileAspectRatio) : getPadding(desktopAspectRatio);
2996
- var slug = get_1(story, ["hero-image-s3-key"]) || get_1(story, ["alternative", "home", "default", "hero-image", "hero-image-s3-key"]);
2997
- var hyperLink = get_1(story, ["hero-image-hyperlink"], "");
474
+ var slug = lodash.get(story, ["hero-image-s3-key"]) || lodash.get(story, ["alternative", "home", "default", "hero-image", "hero-image-s3-key"]);
475
+ var hyperLink = lodash.get(story, ["hero-image-hyperlink"], "");
2998
476
 
2999
477
  var fallbackImage = function fallbackImage() {
3000
478
  if (!slug) {
@@ -3003,7 +481,7 @@ var HeroImage = function HeroImage(_ref) {
3003
481
  style: {
3004
482
  paddingTop: imagePadding + "%"
3005
483
  },
3006
- className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$e)
484
+ className: "arr--responsive-hero-image " + _getClassName__default["default"]("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$e)
3007
485
  }, /*#__PURE__*/React__default["default"].createElement("img", {
3008
486
  className: "qt-image",
3009
487
  "data-src": "".concat(fallbackImageUrl),
@@ -3016,7 +494,7 @@ var HeroImage = function HeroImage(_ref) {
3016
494
  style: {
3017
495
  paddingTop: imagePadding + "%"
3018
496
  },
3019
- className: "arr--fallback-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$e)
497
+ className: "arr--fallback-hero-image " + _getClassName__default["default"]("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$e)
3020
498
  }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3021
499
  storyTemplate: story["story-template"]
3022
500
  }), /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)) : null);
@@ -3026,7 +504,7 @@ var HeroImage = function HeroImage(_ref) {
3026
504
  style: {
3027
505
  paddingTop: imagePadding + "%"
3028
506
  },
3029
- className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$e)
507
+ className: "arr--responsive-hero-image " + _getClassName__default["default"]("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$e)
3030
508
  }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3031
509
  storyTemplate: story["story-template"]
3032
510
  }), /*#__PURE__*/React__default["default"].createElement(components.ResponsiveHeroImage, {
@@ -3045,13 +523,13 @@ var HeroImage = function HeroImage(_ref) {
3045
523
 
3046
524
  return story && (isStoryPageImage ? /*#__PURE__*/React__default["default"].createElement("div", {
3047
525
  "data-test-id": "arr--hero-image",
3048
- className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$e)
526
+ className: "arr--hero-image " + _getClassName__default["default"]("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$e)
3049
527
  }, fallbackImage()) : /*#__PURE__*/React__default["default"].createElement(components.Link, {
3050
528
  "data-test-id": "arr--hero-image",
3051
529
  href: getStoryUrl(story, "/".concat(story.slug)),
3052
530
  externalLink: isExternalStory(story),
3053
531
  "aria-label": "fallback-hero-image",
3054
- className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$e)
532
+ className: "arr--hero-image " + _getClassName__default["default"]("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$e)
3055
533
  }, fallbackImage()));
3056
534
  };
3057
535
  HeroImage.propTypes = {
@@ -3119,7 +597,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
3119
597
  _ref$navigate = _ref.navigate,
3120
598
  navigate = _ref$navigate === void 0 ? true : _ref$navigate;
3121
599
  var collectionTitle = useStateValue() || {};
3122
- var showRowTitle = get_1(collectionTitle, ["showRowTitle"], true);
600
+ var showRowTitle = lodash.get(collectionTitle, ["showRowTitle"], true);
3123
601
  var supportedTemplates = ["borderLeft", "borderBottom", "crossLine", "borderBottomFull"];
3124
602
  var templateStyle = supportedTemplates.includes(collectionNameTemplate) ? " collection-".concat(collectionNameTemplate) : "";
3125
603
  var slug = navigate && collection && getSlug(collection, config) || "";
@@ -3195,7 +673,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
3195
673
  borderBottom: borderBottomFullStyle
3196
674
  },
3197
675
  "data-test-id": "collection-name",
3198
- className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$d)
676
+ className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName__default["default"]("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$d)
3199
677
  }, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
3200
678
  className: "arr-collection-name-border-left collection-name-m_border-left__3_pYw",
3201
679
  style: {
@@ -3232,7 +710,7 @@ CollectionNameBase.defaultProps = {
3232
710
 
3233
711
  function mapStateToProps$1(state) {
3234
712
  return {
3235
- config: get_1(state, ["qt", "config"], {})
713
+ config: lodash.get(state, ["qt", "config"], {})
3236
714
  };
3237
715
  }
3238
716
 
@@ -3472,8 +950,8 @@ var Headline = function Headline(_ref) {
3472
950
  enablePremiumStoryIcon = _premiumStoryIconConf3 === void 0 ? false : _premiumStoryIconConf3,
3473
951
  _premiumStoryIconConf4 = premiumStoryIconConfig.showLiveIcon,
3474
952
  showLiveIcon = _premiumStoryIconConf4 === void 0 ? false : _premiumStoryIconConf4;
3475
- var alternateHeadline = get_1(story, ["alternative", "home", "default", "headline"]);
3476
- var premiumStory = enablePremiumStoryIcon && get_1(story, ["access"]) === "subscription";
953
+ var alternateHeadline = lodash.get(story, ["alternative", "home", "default", "headline"]);
954
+ var premiumStory = enablePremiumStoryIcon && lodash.get(story, ["access"]) === "subscription";
3477
955
  var headline = alternateHeadline || story.headline;
3478
956
  var HeaderTag = "h" + headerLevel;
3479
957
 
@@ -3499,10 +977,10 @@ var Headline = function Headline(_ref) {
3499
977
  var textColor = getTextColor(configData.theme);
3500
978
  var wrapperClass = premiumStory ? "wrapper" : "";
3501
979
  var iconSize = "24px";
3502
- var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !get_1(story, ["metadata", "is-closed"], false);
980
+ var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !lodash.get(story, ["metadata", "is-closed"], false);
3503
981
  return /*#__PURE__*/React__default["default"].createElement("div", {
3504
982
  "data-test-id": "headline",
3505
- className: "arrow-component arr--headline " + _getClassName(wrapperClass, _styleModuleImportMap$c)
983
+ className: "arrow-component arr--headline " + _getClassName__default["default"](wrapperClass, _styleModuleImportMap$c)
3506
984
  }, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
3507
985
  width: iconSize,
3508
986
  height: iconSize,
@@ -3514,9 +992,9 @@ var Headline = function Headline(_ref) {
3514
992
  externalLink: isExternalStory(story),
3515
993
  "aria-label": "headline"
3516
994
  }, /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
3517
- className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$c)
995
+ className: _getClassName__default["default"]("headline ".concat(textColor), _styleModuleImportMap$c)
3518
996
  }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
3519
- className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$c)
997
+ className: _getClassName__default["default"]("headline ".concat(textColor), _styleModuleImportMap$c)
3520
998
  }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline));
3521
999
  };
3522
1000
  Headline.propTypes = {
@@ -3557,9 +1035,9 @@ var SectionTag = function SectionTag(_ref) {
3557
1035
  borderColor = _ref$borderColor === void 0 ? "" : _ref$borderColor,
3558
1036
  isLightTheme = _ref.isLightTheme;
3559
1037
  var config = useStateValue() || {};
3560
- var isSection = get_1(config, ["showSection"], true);
3561
- var templateFromRowContext = get_1(config, ["sectionTagTemplate"]);
3562
- var section = get_1(story, ["sections", 0], "");
1038
+ var isSection = lodash.get(config, ["showSection"], true);
1039
+ var templateFromRowContext = lodash.get(config, ["sectionTagTemplate"]);
1040
+ var section = lodash.get(story, ["sections", 0], "");
3563
1041
  var supportedTemplates = ["borderBottomSml", "borderLeft", "solid"];
3564
1042
  var getUrl = section ? section["section-url"] : "/";
3565
1043
  var colorToApplyContrast = template === "solid" || templateFromRowContext === "solid" ? borderColor : config.theme;
@@ -3581,7 +1059,7 @@ var SectionTag = function SectionTag(_ref) {
3581
1059
  style: {
3582
1060
  backgroundColor: templateStyle.includes("section-solid") ? sectionTagBorderColor : ""
3583
1061
  },
3584
- className: "section-tag arrow-component " + _getClassName("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$b)
1062
+ className: "section-tag arrow-component " + _getClassName__default["default"]("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$b)
3585
1063
  }, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
3586
1064
  className: "section-m_border-left__2oUyp",
3587
1065
  style: {
@@ -3624,13 +1102,13 @@ var TimeStamp = function TimeStamp(_ref) {
3624
1102
  _ref$config = _ref.config,
3625
1103
  config = _ref$config === void 0 ? {} : _ref$config;
3626
1104
  var configState = useStateValue() || {};
3627
- var isTime = get_1(config, ["showTime"], get_1(configState, ["showTime"], true));
1105
+ var isTime = lodash.get(config, ["showTime"], lodash.get(configState, ["showTime"], true));
3628
1106
  var time = story["last-published-at"] || story["first-published-at"];
3629
1107
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3630
1108
  var textColor = getTextColor(configState.theme);
3631
1109
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isTime && /*#__PURE__*/React__default["default"].createElement("div", {
3632
1110
  "data-test-id": "publish-time",
3633
- className: "time arr--publish-time " + _getClassName("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$a)
1111
+ className: "time arr--publish-time " + _getClassName__default["default"]("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$a)
3634
1112
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3635
1113
  className: "timestamp-m_time-wrapper__3O2lM"
3636
1114
  }, getTimeStamp(time, formatter, config))));
@@ -3665,9 +1143,9 @@ var AuthorBase = function AuthorBase(_ref) {
3665
1143
  _ref$config = _ref.config,
3666
1144
  config = _ref$config === void 0 ? {} : _ref$config;
3667
1145
  var configData = useStateValue() || {};
3668
- var isAuthor = get_1(configData, ["showAuthor"], true);
1146
+ var isAuthor = lodash.get(configData, ["showAuthor"], true);
3669
1147
 
3670
- var _get = get_1(story, ["authors", "0"], ""),
1148
+ var _get = lodash.get(story, ["authors", "0"], ""),
3671
1149
  avatarUrl = _get["avatar-url"],
3672
1150
  avatarS3Key = _get["avatar-s3-key"],
3673
1151
  authorName = _get.name,
@@ -3675,7 +1153,7 @@ var AuthorBase = function AuthorBase(_ref) {
3675
1153
 
3676
1154
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3677
1155
  var textColor = getTextColor(configData.theme);
3678
- var mountAt = get_1(config, ["mountAt"], "");
1156
+ var mountAt = lodash.get(config, ["mountAt"], "");
3679
1157
 
3680
1158
  var authorImage = function authorImage(dir) {
3681
1159
  if (!avatarUrl && !avatarS3Key) {
@@ -3684,7 +1162,7 @@ var AuthorBase = function AuthorBase(_ref) {
3684
1162
 
3685
1163
  return /*#__PURE__*/React__default["default"].createElement("div", {
3686
1164
  "data-test-id": "author-image",
3687
- className: _getClassName("author-image ".concat(dir, "-image"), _styleModuleImportMap$9)
1165
+ className: _getClassName__default["default"]("author-image ".concat(dir, "-image"), _styleModuleImportMap$9)
3688
1166
  }, /*#__PURE__*/React__default["default"].createElement("figure", null, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
3689
1167
  slug: avatarS3Key,
3690
1168
  "aspect-ratio": [1, 1],
@@ -3701,7 +1179,7 @@ var AuthorBase = function AuthorBase(_ref) {
3701
1179
  var isPrefix = function isPrefix(dir) {
3702
1180
  if (prefix) {
3703
1181
  return /*#__PURE__*/React__default["default"].createElement("div", {
3704
- className: "arr-author-prefix " + _getClassName("prefix ".concat(textColor), _styleModuleImportMap$9)
1182
+ className: "arr-author-prefix " + _getClassName__default["default"]("prefix ".concat(textColor), _styleModuleImportMap$9)
3705
1183
  }, prefix);
3706
1184
  }
3707
1185
 
@@ -3711,16 +1189,16 @@ var AuthorBase = function AuthorBase(_ref) {
3711
1189
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement(components.Link, {
3712
1190
  href: "".concat(mountAt, "/author/") + slug,
3713
1191
  "aria-label": "author-name",
3714
- className: "author-name arr-author-name arrow-component " + _getClassName("author ".concat(isBottomClasses), _styleModuleImportMap$9)
1192
+ className: "author-name arr-author-name arrow-component " + _getClassName__default["default"]("author ".concat(isBottomClasses), _styleModuleImportMap$9)
3715
1193
  }, isPrefix("ltr"), /*#__PURE__*/React__default["default"].createElement("div", {
3716
1194
  "data-test-id": "author-name",
3717
- className: "author-name " + _getClassName("author-name ".concat(textColor), _styleModuleImportMap$9)
1195
+ className: "author-name " + _getClassName__default["default"]("author-name ".concat(textColor), _styleModuleImportMap$9)
3718
1196
  }, authorName || story["author-name"]), !prefix && isPrefix("rtl")));
3719
1197
  };
3720
1198
 
3721
1199
  function mapStateToProps(state) {
3722
1200
  return {
3723
- config: get_1(state, ["qt", "config"], {})
1201
+ config: lodash.get(state, ["qt", "config"], {})
3724
1202
  };
3725
1203
  }
3726
1204
 
@@ -3757,7 +1235,7 @@ var Dot = function Dot(_ref) {
3757
1235
  _ref$color = _ref.color,
3758
1236
  color = _ref$color === void 0 ? "light" : _ref$color;
3759
1237
  return /*#__PURE__*/React__default["default"].createElement("div", {
3760
- className: _getClassName(color, _styleModuleImportMap$8)
1238
+ className: _getClassName__default["default"](color, _styleModuleImportMap$8)
3761
1239
  }, /*#__PURE__*/React__default["default"].createElement("svg", {
3762
1240
  xmlns: "http://www.w3.org/2000/svg",
3763
1241
  width: width,
@@ -3793,7 +1271,7 @@ var Divider = function Divider(_ref) {
3793
1271
  _ref$color = _ref.color,
3794
1272
  color = _ref$color === void 0 ? "light" : _ref$color;
3795
1273
  return /*#__PURE__*/React__default["default"].createElement("div", {
3796
- className: _getClassName(color, _styleModuleImportMap$7)
1274
+ className: _getClassName__default["default"](color, _styleModuleImportMap$7)
3797
1275
  }, /*#__PURE__*/React__default["default"].createElement("svg", {
3798
1276
  xmlns: "http://www.w3.org/2000/svg",
3799
1277
  width: width,
@@ -3825,14 +1303,14 @@ var ReadTime = function ReadTime(_ref) {
3825
1303
  _ref$isLightTheme = _ref.isLightTheme,
3826
1304
  isLightTheme = _ref$isLightTheme === void 0 ? false : _ref$isLightTheme;
3827
1305
  var config = useStateValue() || {};
3828
- var showReadTime = get_1(config, ["showReadTime"]) || get_1(opts, ["showReadTime"], true);
3829
- var readTime = get_1(story, ["read-time"], 0);
1306
+ var showReadTime = lodash.get(config, ["showReadTime"]) || lodash.get(opts, ["showReadTime"], true);
1307
+ var readTime = lodash.get(story, ["read-time"], 0);
3830
1308
  var textColor = isLightTheme ? "light" : getTextColor(config.theme);
3831
1309
  if (!showReadTime || !readTime) return null;
3832
- var timeToRead = get_1(opts, ["localizedTimeToRead"]) || "min read";
1310
+ var timeToRead = lodash.get(opts, ["localizedTimeToRead"]) || "min read";
3833
1311
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
3834
1312
  "data-test-id": "read-time",
3835
- className: "arrow-component arr--read-time " + _getClassName("read-time-wrapper ".concat(textColor), _styleModuleImportMap$6)
1313
+ className: "arrow-component arr--read-time " + _getClassName__default["default"]("read-time-wrapper ".concat(textColor), _styleModuleImportMap$6)
3836
1314
  }, /*#__PURE__*/React__default["default"].createElement("span", {
3837
1315
  className: "read-time-indicator read-time-m_dot-indicator__3Sqh2"
3838
1316
  }, /*#__PURE__*/React__default["default"].createElement(Dot, {
@@ -3868,9 +1346,9 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3868
1346
  config = _ref$config === void 0 ? {} : _ref$config,
3869
1347
  isLightTheme = _ref.isLightTheme;
3870
1348
  var configState = useStateValue() || {};
3871
- var isAuthor = get_1(config, ["showAuthor"], get_1(configState, ["showAuthor"], true));
3872
- var isTime = get_1(config, ["showTime"], get_1(configState, ["showTime"], true));
3873
- var isReadTime = get_1(configState, ["showReadTime"], true);
1349
+ var isAuthor = lodash.get(config, ["showAuthor"], lodash.get(configState, ["showAuthor"], true));
1350
+ var isTime = lodash.get(config, ["showTime"], lodash.get(configState, ["showTime"], true));
1351
+ var isReadTime = lodash.get(configState, ["showReadTime"], true);
3874
1352
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3875
1353
  var seperatorStyle = separator === "dot" ? "dot" : "dash";
3876
1354
  var textColor = isLightTheme ? "light" : getTextColor(configState.theme);
@@ -3890,7 +1368,7 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3890
1368
  var getTimeStamp = function getTimeStamp() {
3891
1369
  if (!isTime) return null;
3892
1370
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement("span", {
3893
- className: "arr-separator " + _getClassName("".concat(seperatorStyle), _styleModuleImportMap$5)
1371
+ className: "arr-separator " + _getClassName__default["default"]("".concat(seperatorStyle), _styleModuleImportMap$5)
3894
1372
  }, getSeparator()), /*#__PURE__*/React__default["default"].createElement(TimeStamp, {
3895
1373
  story: story,
3896
1374
  config: config
@@ -3902,7 +1380,7 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3902
1380
  };
3903
1381
 
3904
1382
  return /*#__PURE__*/React__default["default"].createElement("div", {
3905
- className: "arr--author-time " + _getClassName("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$5)
1383
+ className: "arr--author-time " + _getClassName__default["default"]("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$5)
3906
1384
  }, isAuthor ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Author, {
3907
1385
  story: story,
3908
1386
  isBottom: true,
@@ -3960,7 +1438,7 @@ var StorycardContent = function StorycardContent(_ref) {
3960
1438
  backgroundColor: theme,
3961
1439
  color: textColor
3962
1440
  },
3963
- className: "arr--content-wrapper " + _getClassName("wrapper ".concat(borderTemplate, " ").concat(horizontalCard), _styleModuleImportMap$4)
1441
+ className: "arr--content-wrapper " + _getClassName__default["default"]("wrapper ".concat(borderTemplate, " ").concat(horizontalCard), _styleModuleImportMap$4)
3964
1442
  }, children || /*#__PURE__*/React__default["default"].createElement(DefaultStoryCardContent, {
3965
1443
  story: story,
3966
1444
  headerLevel: headerLevel,
@@ -4029,7 +1507,7 @@ var Subheadline = function Subheadline(_ref) {
4029
1507
  forceShowAtom = _ref.forceShowAtom,
4030
1508
  showFullContent = _ref.showFullContent;
4031
1509
  var config = useStateValue() || {};
4032
- var subheadline = forceShowAtom || get_1(config, ["showSubheadline"], true);
1510
+ var subheadline = forceShowAtom || lodash.get(config, ["showSubheadline"], true);
4033
1511
  if (!subheadline) return null;
4034
1512
  var textColor = getTextColor(config.theme);
4035
1513
  return /*#__PURE__*/React__default["default"].createElement("div", {
@@ -4037,7 +1515,7 @@ var Subheadline = function Subheadline(_ref) {
4037
1515
  WebkitLineClamp: lineClamp
4038
1516
  },
4039
1517
  "data-test-id": "subheadline",
4040
- className: ("p-alt arr--sub-headline arrow-component ".concat(clazzName) ? "p-alt arr--sub-headline arrow-component ".concat(clazzName) + " " : "") + _getClassName("subheadline ".concat(textColor), _styleModuleImportMap$3)
1518
+ className: ("p-alt arr--sub-headline arrow-component ".concat(clazzName) ? "p-alt arr--sub-headline arrow-component ".concat(clazzName) + " " : "") + _getClassName__default["default"]("subheadline ".concat(textColor), _styleModuleImportMap$3)
4041
1519
  }, showFullContent || typeof lineClamp === "number" ? story.subheadline : truncate(story.subheadline, truncateChars, true));
4042
1520
  };
4043
1521
  Subheadline.propTypes = {
@@ -4129,7 +1607,7 @@ var StoryCard = function StoryCard(_ref) {
4129
1607
  backgroundColor: theme,
4130
1608
  color: textColor
4131
1609
  },
4132
- className: "arr--story-card " + _getClassName("card ".concat(horizontalCardStyle, " ").concat(borderTemplate, " ").concat(textColor, " ").concat(bgImageClasses, " ").concat(bgImgContentOverlapClass, " ").concat(horizontalMobileClasses), _styleModuleImportMap$2)
1610
+ className: "arr--story-card " + _getClassName__default["default"]("card ".concat(horizontalCardStyle, " ").concat(borderTemplate, " ").concat(textColor, " ").concat(bgImageClasses, " ").concat(bgImgContentOverlapClass, " ").concat(horizontalMobileClasses), _styleModuleImportMap$2)
4133
1611
  }, children || defaultStorycard);
4134
1612
  };
4135
1613
 
@@ -4170,7 +1648,7 @@ var DefaultStoryCard = function DefaultStoryCard(_ref2) {
4170
1648
  isHorizontalMobile: isHorizontalMobile,
4171
1649
  aspectRatio: aspectRatio
4172
1650
  }), /*#__PURE__*/React__default["default"].createElement("div", {
4173
- className: "arr--story-content " + _getClassName("content ".concat(alignment), _styleModuleImportMap$2)
1651
+ className: "arr--story-content " + _getClassName__default["default"]("content ".concat(alignment), _styleModuleImportMap$2)
4174
1652
  }, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
4175
1653
  story: story,
4176
1654
  borderColor: SectionTagborderColor
@@ -4248,21 +1726,6 @@ StoryCard.defaultProps = {
4248
1726
  isHorizontalWithImageLast: false
4249
1727
  };
4250
1728
 
4251
- function _defineProperty(obj, key, value) {
4252
- if (key in obj) {
4253
- Object.defineProperty(obj, key, {
4254
- value: value,
4255
- enumerable: true,
4256
- configurable: true,
4257
- writable: true
4258
- });
4259
- } else {
4260
- obj[key] = value;
4261
- }
4262
-
4263
- return obj;
4264
- }
4265
-
4266
1729
  var _styleModuleImportMap$1 = {
4267
1730
  "./load-more.m.css": {
4268
1731
  "button": "load-more-m_button__1mmf1",
@@ -4274,7 +1737,7 @@ var _styleModuleImportMap$1 = {
4274
1737
 
4275
1738
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4276
1739
 
4277
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1740
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4278
1741
  var LoadmoreButton = function LoadmoreButton(_ref) {
4279
1742
  var _ref$config = _ref.config,
4280
1743
  config = _ref$config === void 0 ? {} : _ref$config,
@@ -4298,14 +1761,14 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
4298
1761
  return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
4299
1762
  onClick: onClick,
4300
1763
  "data-test-id": "load-more",
4301
- className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$1)
1764
+ className: "arr--button " + _getClassName__default["default"]("button ".concat(textColor, " default"), _styleModuleImportMap$1)
4302
1765
  }, buttonText) : /*#__PURE__*/React__default["default"].createElement(components.LinkBase, {
4303
1766
  href: slug,
4304
1767
  navigateTo: navigate,
4305
1768
  "data-test-id": "load-more",
4306
1769
  "aria-label": "load-more"
4307
1770
  }, /*#__PURE__*/React__default["default"].createElement("div", {
4308
- className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$1)
1771
+ className: "arr--button " + _getClassName__default["default"]("button ".concat(textColor, " default"), _styleModuleImportMap$1)
4309
1772
  }, buttonText));
4310
1773
  };
4311
1774
  LoadmoreButton.propTypes = {
@@ -4363,13 +1826,13 @@ var TwoColFourStoryHighlightBase = function TwoColFourStoryHighlightBase(_ref) {
4363
1826
  bulletColorType = _config$bulletColorTy === void 0 ? "default" : _config$bulletColorTy;
4364
1827
  var textColor = getTextColor(theme);
4365
1828
 
4366
- var _items = _toArray(items),
1829
+ var _items = _toArray__default["default"](items),
4367
1830
  firstStory = _items[0],
4368
1831
  restStories = _items.slice(1);
4369
1832
 
4370
1833
  var dispatch = reactRedux.useDispatch();
4371
1834
  var qtConfig = reactRedux.useSelector(function (state) {
4372
- return get_1(state, ["qt", "config"], {});
1835
+ return lodash.get(state, ["qt", "config"], {});
4373
1836
  });
4374
1837
  var url = generateNavigateSlug(collection, qtConfig);
4375
1838
  var SectionTagBorderColor = rgbToHex(borderColor);
@@ -4379,7 +1842,7 @@ var TwoColFourStoryHighlightBase = function TwoColFourStoryHighlightBase(_ref) {
4379
1842
  backgroundColor: theme,
4380
1843
  color: textColor
4381
1844
  },
4382
- className: "full-width-with-padding arrow-component arr--two-col-four-story-highlight " + _getClassName("componentWrapper ".concat(showBullet ? "bulletStyle" : ""), _styleModuleImportMap)
1845
+ className: "full-width-with-padding arrow-component arr--two-col-four-story-highlight " + _getClassName__default["default"]("componentWrapper ".concat(showBullet ? "bulletStyle" : ""), _styleModuleImportMap)
4383
1846
  }, /*#__PURE__*/React__default["default"].createElement("div", {
4384
1847
  className: "two-col-four-story-highlight-m_highlightWrapper__1FXMf"
4385
1848
  }, /*#__PURE__*/React__default["default"].createElement(CollectionName, {
@@ -4397,7 +1860,7 @@ var TwoColFourStoryHighlightBase = function TwoColFourStoryHighlightBase(_ref) {
4397
1860
  style: {
4398
1861
  color: customBulletColor
4399
1862
  },
4400
- className: _getClassName("bullet ".concat(bulletColorType === "default" ? textColor : ""), _styleModuleImportMap)
1863
+ className: _getClassName__default["default"]("bullet ".concat(bulletColorType === "default" ? textColor : ""), _styleModuleImportMap)
4401
1864
  }), /*#__PURE__*/React__default["default"].createElement(StoryCard, {
4402
1865
  story: story,
4403
1866
  bgImgContentOverlap: true,