@quintype/arrow 3.15.1-fallback-support.1 → 3.15.1-perf.1

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