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