@mjhls/mjh-framework 1.0.703 → 1.0.704-beta-v2

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 (266) hide show
  1. package/dist/cjs/AD.js +1 -1
  2. package/dist/cjs/AD300x250.js +17 -19
  3. package/dist/cjs/AD300x250x600.js +17 -19
  4. package/dist/cjs/AD728x90.js +18 -20
  5. package/dist/cjs/ADFloatingFooter.js +16 -18
  6. package/dist/cjs/ADFooter.js +5 -5
  7. package/dist/cjs/ADGutter.js +16 -18
  8. package/dist/cjs/{ADInfeed-ede153e2.js → ADInfeed-38066a36.js} +2 -2
  9. package/dist/cjs/ADSkyscraper.js +16 -18
  10. package/dist/cjs/ADSponsoredResources.js +16 -18
  11. package/dist/cjs/ADWebcast.js +16 -18
  12. package/dist/cjs/ADWelcome.js +17 -19
  13. package/dist/cjs/{ADlgInfeed-6a121a0d.js → ADlgInfeed-d95c9027.js} +2 -2
  14. package/dist/cjs/AccordionPanel.js +6 -6
  15. package/dist/cjs/AdSlot.js +17 -19
  16. package/dist/cjs/AdSlotsProvider.js +2 -4
  17. package/dist/cjs/AlphabeticList.js +9 -9
  18. package/dist/cjs/ArticleCarousel.js +13 -16
  19. package/dist/cjs/ArticleSeriesListing.js +24 -27
  20. package/dist/cjs/Auth.js +280 -762
  21. package/dist/cjs/{AuthorComponent-d19285ed.js → AuthorComponent-bb831b74.js} +1 -1
  22. package/dist/cjs/Beam.js +19 -19
  23. package/dist/cjs/{BlockContent-e53217a7.js → BlockContent-80b15fac.js} +25 -23
  24. package/dist/cjs/Breadcrumbs.js +5 -5
  25. package/dist/cjs/BrowseVideosListing.js +14 -17
  26. package/dist/cjs/CMEDeck.js +23 -26
  27. package/dist/cjs/Column2.js +13 -15
  28. package/dist/cjs/Column3.js +22 -24
  29. package/dist/cjs/ConferenceArticleCard.js +2 -2
  30. package/dist/cjs/DeckContent.js +30 -33
  31. package/dist/cjs/DeckQueue.js +29 -32
  32. package/dist/cjs/{Dfp-13ff07b4.js → Dfp-390337bf.js} +10 -13
  33. package/dist/cjs/EventsDeck.js +34 -35
  34. package/dist/cjs/ExternalResources.js +32 -35
  35. package/dist/cjs/Feature.js +3 -4
  36. package/dist/cjs/ForbesHero.js +9 -12
  37. package/dist/cjs/GridContent.js +42 -45
  38. package/dist/cjs/GridHero.js +9 -12
  39. package/dist/cjs/GroupDeck.js +13 -13
  40. package/dist/cjs/HamMagazine.js +17 -19
  41. package/dist/cjs/Hero.js +1 -1
  42. package/dist/cjs/HighlightenVideo.js +1 -1
  43. package/dist/cjs/HorizontalHero.js +3 -3
  44. package/dist/cjs/IssueContentDeck.js +9 -12
  45. package/dist/cjs/IssueDeck.js +12 -15
  46. package/dist/cjs/IssueLanding.js +26 -29
  47. package/dist/cjs/LeftNav.js +16 -18
  48. package/dist/cjs/MasterDeck.js +34 -37
  49. package/dist/cjs/NavDvm.js +9 -9
  50. package/dist/cjs/NavMagazine.js +17 -19
  51. package/dist/cjs/NavNative.js +14 -16
  52. package/dist/cjs/NavNormal.js +10 -10
  53. package/dist/cjs/OncliveHero.js +3 -2
  54. package/dist/cjs/OncliveLargeHero.js +9 -12
  55. package/dist/cjs/PageFilter.js +5 -5
  56. package/dist/cjs/PartnerDetailListing.js +38 -41
  57. package/dist/cjs/PdfDownload.js +1 -1
  58. package/dist/cjs/PopUpModal.js +5 -5
  59. package/dist/cjs/PublicationDeck.js +5 -8
  60. package/dist/cjs/PublicationLanding.js +57 -60
  61. package/dist/cjs/QueueDeckExpanded.js +33 -36
  62. package/dist/cjs/RecentNews.js +3 -3
  63. package/dist/cjs/RelatedContent.js +3 -6
  64. package/dist/cjs/Search.js +5 -5
  65. package/dist/cjs/Segment.js +20 -20
  66. package/dist/cjs/SetCookie.js +2 -2
  67. package/dist/cjs/SideFooter.js +14 -16
  68. package/dist/cjs/{SocialSearchComponent-1ef1e6fb.js → SocialSearchComponent-56d49a1a.js} +7 -7
  69. package/dist/cjs/TaxonomyCard.js +7 -10
  70. package/dist/cjs/TemplateNormal.js +31 -33
  71. package/dist/cjs/ThumbnailCard.js +2 -5
  72. package/dist/cjs/Ustream.js +9 -10
  73. package/dist/cjs/VerticalHero.js +2 -2
  74. package/dist/cjs/VideoSeriesCard.js +10 -13
  75. package/dist/cjs/VideoSeriesFilter.js +11 -11
  76. package/dist/cjs/VideoSeriesListing.js +24 -27
  77. package/dist/cjs/View.js +46 -49
  78. package/dist/cjs/YahooHero.js +9 -12
  79. package/dist/cjs/YoutubeGroup.js +14 -17
  80. package/dist/cjs/{_is-array-a82382b4.js → _is-array-754e012d.js} +11 -11
  81. package/dist/cjs/{_iter-detect-671c90bd.js → _iter-detect-60b2f026.js} +10 -10
  82. package/dist/cjs/{_library-4360b4e4.js → _library-dd23b178.js} +1 -1
  83. package/dist/cjs/{_object-pie-6bed508e.js → _object-pie-68c5bcbc.js} +2 -2
  84. package/dist/cjs/_object-sap-5e74ba08.js +16 -0
  85. package/dist/cjs/{_set-species-47156c42.js → _set-species-f92c67c5.js} +17 -17
  86. package/dist/cjs/{_export-a917dedd.js → _to-object-329a650b.js} +31 -31
  87. package/dist/cjs/{asyncToGenerator-fd8e35e7.js → asyncToGenerator-533d476a.js} +69 -69
  88. package/dist/cjs/{brightcove-react-player-loader.es-05029198.js → brightcove-react-player-loader.es-156bd4d6.js} +3 -4
  89. package/dist/cjs/core.get-iterator-method-f62321d4.js +39 -0
  90. package/dist/cjs/{debounce-fb3a46a9.js → debounce-eb287781.js} +7 -7
  91. package/dist/cjs/{define-property-9b6df20e.js → define-property-f4d12f4e.js} +4 -4
  92. package/dist/cjs/{defineProperty-d3c0cfc0.js → defineProperty-55548b25.js} +2 -2
  93. package/dist/cjs/{es6.string.iterator-e5f4ce45.js → es6.string.iterator-cc0bbaa4.js} +34 -34
  94. package/dist/cjs/{extends-5fde0677.js → extends-60837c34.js} +11 -11
  95. package/dist/cjs/{get-70ef997d.js → get-68c52cb1.js} +11 -11
  96. package/dist/cjs/getRelatedArticle.js +72 -134
  97. package/dist/cjs/getSerializers.js +30 -33
  98. package/dist/cjs/{getTargeting-5ca9bfaf.js → getTargeting-fee8c429.js} +2 -2
  99. package/dist/cjs/getTargeting.js +8 -8
  100. package/dist/cjs/{index-d7577df6.js → index-099d45ae.js} +16 -12
  101. package/dist/cjs/{index-949261b4.js → index-3294d3bc.js} +19 -18
  102. package/dist/cjs/{index-ff69979f.js → index-39beccb3.js} +21 -26
  103. package/dist/cjs/{index-b1ee7cd9.js → index-58dae365.js} +329 -335
  104. package/dist/cjs/{index-29e3f3a9.js → index-da796b8c.js} +12 -11
  105. package/dist/cjs/{index.es-e9d84959.js → index.es-9110add6.js} +5 -23
  106. package/dist/cjs/{index.esm-8a8fa078.js → index.esm-4d410430.js} +4 -3
  107. package/dist/cjs/{index.esm-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
  108. package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
  109. package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
  110. package/dist/cjs/index.js +54 -57
  111. package/dist/cjs/{inherits-02a27fbf.js → inherits-513d81cd.js} +16 -16
  112. package/dist/cjs/{isSymbol-a0d5eb50.js → isSymbol-04666465.js} +5 -5
  113. package/dist/cjs/{js.cookie-e4684873.js → js.cookie-a511c430.js} +1 -1
  114. package/dist/cjs/{keys-1a65eb47.js → keys-a586b7a0.js} +5 -5
  115. package/dist/cjs/{lodash-257df6c4.js → lodash-7fd85bcf.js} +1 -1
  116. package/dist/cjs/{main-1442052b.js → main-03ffa84c.js} +57 -90
  117. package/dist/cjs/{moment-29403f08.js → moment-575fe24c.js} +8 -11
  118. package/dist/cjs/{react-social-icons-5604d0d1.js → react-social-icons-f7f48f71.js} +13 -11
  119. package/dist/cjs/{slicedToArray-d0ac47b9.js → slicedToArray-8f385299.js} +10 -10
  120. package/dist/cjs/{smoothscroll-03c20c7d.js → smoothscroll-95231a70.js} +1 -1
  121. package/dist/cjs/{stringify-e064b7d0.js → stringify-7c5aff47.js} +2 -2
  122. package/dist/cjs/timeDifferenceCalc.js +1 -1
  123. package/dist/cjs/{toConsumableArray-d47f0c64.js → toConsumableArray-9a3476fe.js} +13 -13
  124. package/dist/cjs/{typeof-5763a25b.js → typeof-725500bc.js} +84 -84
  125. package/dist/cjs/urlFor.js +1 -1
  126. package/dist/cjs/{visibility-sensor-ede0bc7b.js → visibility-sensor-0c45a583.js} +6 -5
  127. package/dist/cjs/{web.dom.iterable-cd8a9ccb.js → web.dom.iterable-a0e279c1.js} +10 -10
  128. package/dist/esm/AD.js +1 -1
  129. package/dist/esm/AD300x250.js +19 -21
  130. package/dist/esm/AD300x250x600.js +19 -21
  131. package/dist/esm/AD728x90.js +20 -22
  132. package/dist/esm/ADFloatingFooter.js +18 -20
  133. package/dist/esm/ADFooter.js +5 -5
  134. package/dist/esm/ADGutter.js +18 -20
  135. package/dist/esm/{ADInfeed-d890d5ca.js → ADInfeed-7b1b2fcb.js} +4 -4
  136. package/dist/esm/ADSkyscraper.js +18 -20
  137. package/dist/esm/ADSponsoredResources.js +18 -20
  138. package/dist/esm/ADWebcast.js +18 -20
  139. package/dist/esm/ADWelcome.js +19 -21
  140. package/dist/esm/{ADlgInfeed-1d006b36.js → ADlgInfeed-2afe92e6.js} +4 -4
  141. package/dist/esm/AccordionPanel.js +6 -6
  142. package/dist/esm/AdSlot.js +17 -19
  143. package/dist/esm/AdSlotsProvider.js +2 -4
  144. package/dist/esm/AlphabeticList.js +9 -9
  145. package/dist/esm/ArticleCarousel.js +13 -16
  146. package/dist/esm/ArticleSeriesListing.js +24 -27
  147. package/dist/esm/Auth.js +280 -762
  148. package/dist/esm/{AuthorComponent-8ffb1deb.js → AuthorComponent-00f13201.js} +1 -1
  149. package/dist/esm/Beam.js +19 -19
  150. package/dist/esm/{BlockContent-e6f64e62.js → BlockContent-c409aca5.js} +21 -23
  151. package/dist/esm/Breadcrumbs.js +5 -5
  152. package/dist/esm/BrowseVideosListing.js +14 -17
  153. package/dist/esm/CMEDeck.js +23 -26
  154. package/dist/esm/Column2.js +13 -15
  155. package/dist/esm/Column3.js +22 -24
  156. package/dist/esm/ConferenceArticleCard.js +2 -2
  157. package/dist/esm/DeckContent.js +30 -33
  158. package/dist/esm/DeckQueue.js +29 -32
  159. package/dist/esm/{Dfp-7db56716.js → Dfp-741c01be.js} +10 -13
  160. package/dist/esm/EventsDeck.js +34 -35
  161. package/dist/esm/ExternalResources.js +32 -35
  162. package/dist/esm/Feature.js +3 -4
  163. package/dist/esm/ForbesHero.js +9 -12
  164. package/dist/esm/GridContent.js +42 -45
  165. package/dist/esm/GridHero.js +9 -12
  166. package/dist/esm/GroupDeck.js +13 -13
  167. package/dist/esm/HamMagazine.js +17 -19
  168. package/dist/esm/Hero.js +1 -1
  169. package/dist/esm/HighlightenVideo.js +1 -1
  170. package/dist/esm/HorizontalHero.js +3 -3
  171. package/dist/esm/IssueContentDeck.js +9 -12
  172. package/dist/esm/IssueDeck.js +12 -15
  173. package/dist/esm/IssueLanding.js +26 -29
  174. package/dist/esm/LeftNav.js +16 -18
  175. package/dist/esm/MasterDeck.js +34 -37
  176. package/dist/esm/NavDvm.js +9 -9
  177. package/dist/esm/NavMagazine.js +17 -19
  178. package/dist/esm/NavNative.js +14 -16
  179. package/dist/esm/NavNormal.js +10 -10
  180. package/dist/esm/OncliveHero.js +3 -2
  181. package/dist/esm/OncliveLargeHero.js +9 -12
  182. package/dist/esm/PageFilter.js +5 -5
  183. package/dist/esm/PartnerDetailListing.js +38 -41
  184. package/dist/esm/PdfDownload.js +1 -1
  185. package/dist/esm/PopUpModal.js +5 -5
  186. package/dist/esm/PublicationDeck.js +5 -8
  187. package/dist/esm/PublicationLanding.js +57 -60
  188. package/dist/esm/QueueDeckExpanded.js +33 -36
  189. package/dist/esm/RecentNews.js +3 -3
  190. package/dist/esm/RelatedContent.js +3 -6
  191. package/dist/esm/Search.js +5 -5
  192. package/dist/esm/Segment.js +20 -20
  193. package/dist/esm/SetCookie.js +2 -2
  194. package/dist/esm/SideFooter.js +14 -16
  195. package/dist/esm/{SocialSearchComponent-4eae0149.js → SocialSearchComponent-677ed3bd.js} +7 -7
  196. package/dist/esm/TaxonomyCard.js +7 -10
  197. package/dist/esm/TemplateNormal.js +33 -35
  198. package/dist/esm/ThumbnailCard.js +2 -5
  199. package/dist/esm/Ustream.js +9 -10
  200. package/dist/esm/VerticalHero.js +2 -2
  201. package/dist/esm/VideoSeriesCard.js +10 -13
  202. package/dist/esm/VideoSeriesFilter.js +11 -11
  203. package/dist/esm/VideoSeriesListing.js +24 -27
  204. package/dist/esm/View.js +51 -54
  205. package/dist/esm/YahooHero.js +9 -12
  206. package/dist/esm/YoutubeGroup.js +14 -17
  207. package/dist/esm/{_is-array-5bea6006.js → _is-array-49698029.js} +10 -10
  208. package/dist/esm/{_iter-detect-65720de7.js → _iter-detect-59409a32.js} +8 -8
  209. package/dist/esm/_library-528f1934.js +3 -0
  210. package/dist/esm/{_object-pie-8e2f6c3a.js → _object-pie-71ac75a4.js} +1 -1
  211. package/dist/esm/_object-sap-4d59d5bd.js +14 -0
  212. package/dist/esm/{_set-species-26ee5c2a.js → _set-species-cede29f8.js} +14 -14
  213. package/dist/esm/{_export-f7ec2adf.js → _to-object-ded78eb9.js} +3 -3
  214. package/dist/esm/{asyncToGenerator-0c61f551.js → asyncToGenerator-7c654f36.js} +69 -69
  215. package/dist/esm/{brightcove-react-player-loader.es-e761d404.js → brightcove-react-player-loader.es-83f53e4e.js} +3 -4
  216. package/dist/esm/core.get-iterator-method-54d2e411.js +36 -0
  217. package/dist/esm/{debounce-7b569c00.js → debounce-1a993acf.js} +6 -6
  218. package/dist/esm/{define-property-7a40a451.js → define-property-de3fc946.js} +4 -4
  219. package/dist/esm/{defineProperty-a2ac5d3d.js → defineProperty-b798470d.js} +2 -2
  220. package/dist/esm/{es6.string.iterator-13b94db0.js → es6.string.iterator-9b2af4a5.js} +27 -27
  221. package/dist/esm/{extends-8e0228d5.js → extends-cc5da797.js} +11 -11
  222. package/dist/esm/{get-bb2155d5.js → get-5ee14cda.js} +10 -10
  223. package/dist/esm/getRelatedArticle.js +72 -134
  224. package/dist/esm/getSerializers.js +30 -33
  225. package/dist/esm/{getTargeting-d97a1e83.js → getTargeting-2acdec91.js} +2 -2
  226. package/dist/esm/getTargeting.js +8 -8
  227. package/dist/esm/{index-f7fdcc91.js → index-3849e3fe.js} +21 -26
  228. package/dist/esm/{index-17490425.js → index-3f4dd6f2.js} +12 -12
  229. package/dist/esm/{index-a4e850af.js → index-5f9f807a.js} +8 -11
  230. package/dist/esm/{index-4540328d.js → index-7779a6df.js} +332 -338
  231. package/dist/esm/{index-1295881c.js → index-ef6d5dcf.js} +17 -16
  232. package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
  233. package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
  234. package/dist/esm/{index.esm-d6f88d94.js → index.esm-b08f4b04.js} +9 -4
  235. package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
  236. package/dist/esm/{index.esm-4838a32e.js → index.esm-fd746768.js} +4 -3
  237. package/dist/esm/index.js +54 -57
  238. package/dist/esm/{inherits-d1948b66.js → inherits-7ee3e0c1.js} +16 -16
  239. package/dist/esm/{isSymbol-2b7f6e65.js → isSymbol-807e927e.js} +1 -1
  240. package/dist/esm/{js.cookie-2ce24ab0.js → js.cookie-6874175c.js} +1 -1
  241. package/dist/esm/{keys-e091cb65.js → keys-fc2d4c34.js} +5 -5
  242. package/dist/esm/{lodash-2b866578.js → lodash-ec8c6b48.js} +1 -1
  243. package/dist/esm/{main-140f99b4.js → main-35ff7b4f.js} +52 -88
  244. package/dist/esm/{moment-8797a4d3.js → moment-e2f9b20c.js} +9 -11
  245. package/dist/esm/{react-social-icons-40e8d28f.js → react-social-icons-a7d5c5c7.js} +9 -11
  246. package/dist/esm/{slicedToArray-8818fe95.js → slicedToArray-7021e5df.js} +10 -10
  247. package/dist/esm/{stringify-dedf4a20.js → stringify-008c8802.js} +2 -2
  248. package/dist/esm/timeDifferenceCalc.js +1 -1
  249. package/dist/esm/{toConsumableArray-02217419.js → toConsumableArray-725434a0.js} +13 -13
  250. package/dist/esm/{typeof-a10a5616.js → typeof-08f2c380.js} +85 -85
  251. package/dist/esm/urlFor.js +1 -1
  252. package/dist/esm/{visibility-sensor-7b6316cf.js → visibility-sensor-0baa4eea.js} +3 -5
  253. package/dist/esm/{web.dom.iterable-c3ba4d37.js → web.dom.iterable-8956f9a5.js} +10 -10
  254. package/package.json +3 -3
  255. package/dist/cjs/_object-sap-947ef6fb.js +0 -16
  256. package/dist/cjs/_prop-types_commonjs-external-1a8c9893.js +0 -10
  257. package/dist/cjs/_react-dom_commonjs-external-3c49a59a.js +0 -9
  258. package/dist/cjs/_react_commonjs-external-58b78ee1.js +0 -10
  259. package/dist/cjs/core.get-iterator-method-07b02ac3.js +0 -39
  260. package/dist/esm/_library-90219a8d.js +0 -3
  261. package/dist/esm/_object-sap-146241c9.js +0 -14
  262. package/dist/esm/_prop-types_commonjs-external-9481d338.js +0 -5
  263. package/dist/esm/_react-dom_commonjs-external-f1a1ac81.js +0 -5
  264. package/dist/esm/_react_commonjs-external-22b61490.js +0 -5
  265. package/dist/esm/core.get-iterator-method-dbbb346b.js +0 -36
  266. /package/dist/esm/{smoothscroll-2d74941c.js → smoothscroll-4b699764.js} +0 -0
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
4
- var defineProperty$1 = require('./define-property-9b6df20e.js');
4
+ var defineProperty$1 = require('./define-property-f4d12f4e.js');
5
5
 
6
6
  var defineProperty = _commonjsHelpers.createCommonjsModule(function (module, exports) {
7
7
 
@@ -9,7 +9,7 @@ exports.__esModule = true;
9
9
 
10
10
 
11
11
 
12
- var _defineProperty2 = _interopRequireDefault(defineProperty$1._defineProperty);
12
+ var _defineProperty2 = _interopRequireDefault(defineProperty$1.defineProperty);
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
 
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
3
  var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
4
- var _export = require('./_export-a917dedd.js');
4
+ var _toObject = require('./_to-object-329a650b.js');
5
5
 
6
6
  // true -> String#at
7
7
  // false -> String#codePointAt
8
8
  var _stringAt = function (TO_STRING) {
9
9
  return function (that, pos) {
10
- var s = String(_export.defined(that));
11
- var i = _export.toInteger(pos);
10
+ var s = String(_toObject._defined(that));
11
+ var i = _toObject._toInteger(pos);
12
12
  var l = s.length;
13
13
  var a, b;
14
14
  if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
@@ -19,36 +19,36 @@ var _stringAt = function (TO_STRING) {
19
19
  };
20
20
  };
21
21
 
22
- var _redefine = _export.hide;
22
+ var _redefine = _toObject._hide;
23
23
 
24
24
  var _iterators = {};
25
25
 
26
- var _objectDps = _export.DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {
27
- _export.anObject(O);
28
- var keys = _export.$keys(Properties);
26
+ var _objectDps = _toObject._descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
27
+ _toObject._anObject(O);
28
+ var keys = _toObject._objectKeys(Properties);
29
29
  var length = keys.length;
30
30
  var i = 0;
31
31
  var P;
32
- while (length > i) _export.require$$0.f(O, P = keys[i++], Properties[P]);
32
+ while (length > i) _toObject._objectDp.f(O, P = keys[i++], Properties[P]);
33
33
  return O;
34
34
  };
35
35
 
36
- var document = _export.global.document;
36
+ var document = _toObject._global.document;
37
37
  var _html = document && document.documentElement;
38
38
 
39
39
  // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
40
40
 
41
41
 
42
42
 
43
- var IE_PROTO = _export.require$$0$2('IE_PROTO');
43
+ var IE_PROTO = _toObject._sharedKey('IE_PROTO');
44
44
  var Empty = function () { /* empty */ };
45
45
  var PROTOTYPE = 'prototype';
46
46
 
47
47
  // Create object with fake `null` prototype: use iframe Object with cleared prototype
48
48
  var createDict = function () {
49
49
  // Thrash, waste and sodomy: IE GC bug
50
- var iframe = _export.cel('iframe');
51
- var i = _export.require$$0$1.length;
50
+ var iframe = _toObject._domCreate('iframe');
51
+ var i = _toObject._enumBugKeys.length;
52
52
  var lt = '<';
53
53
  var gt = '>';
54
54
  var iframeDocument;
@@ -62,14 +62,14 @@ var createDict = function () {
62
62
  iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
63
63
  iframeDocument.close();
64
64
  createDict = iframeDocument.F;
65
- while (i--) delete createDict[PROTOTYPE][_export.require$$0$1[i]];
65
+ while (i--) delete createDict[PROTOTYPE][_toObject._enumBugKeys[i]];
66
66
  return createDict();
67
67
  };
68
68
 
69
69
  var _objectCreate = Object.create || function create(O, Properties) {
70
70
  var result;
71
71
  if (O !== null) {
72
- Empty[PROTOTYPE] = _export.anObject(O);
72
+ Empty[PROTOTYPE] = _toObject._anObject(O);
73
73
  result = new Empty();
74
74
  Empty[PROTOTYPE] = null;
75
75
  // add "__proto__" for Object.getPrototypeOf polyfill
@@ -79,46 +79,46 @@ var _objectCreate = Object.create || function create(O, Properties) {
79
79
  };
80
80
 
81
81
  var _wks = _commonjsHelpers.createCommonjsModule(function (module) {
82
- var store = _export.shared('wks');
82
+ var store = _toObject._shared('wks');
83
83
 
84
- var Symbol = _export.global.Symbol;
84
+ var Symbol = _toObject._global.Symbol;
85
85
  var USE_SYMBOL = typeof Symbol == 'function';
86
86
 
87
87
  var $exports = module.exports = function (name) {
88
88
  return store[name] || (store[name] =
89
- USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : _export.uid)('Symbol.' + name));
89
+ USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : _toObject._uid)('Symbol.' + name));
90
90
  };
91
91
 
92
92
  $exports.store = store;
93
93
  });
94
94
 
95
- var def = _export.require$$0.f;
95
+ var def = _toObject._objectDp.f;
96
96
 
97
97
  var TAG = _wks('toStringTag');
98
98
 
99
99
  var _setToStringTag = function (it, tag, stat) {
100
- if (it && !_export.has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
100
+ if (it && !_toObject._has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
101
101
  };
102
102
 
103
103
  var IteratorPrototype = {};
104
104
 
105
105
  // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
106
- _export.hide(IteratorPrototype, _wks('iterator'), function () { return this; });
106
+ _toObject._hide(IteratorPrototype, _wks('iterator'), function () { return this; });
107
107
 
108
108
  var _iterCreate = function (Constructor, NAME, next) {
109
- Constructor.prototype = _objectCreate(IteratorPrototype, { next: _export.createDesc(1, next) });
109
+ Constructor.prototype = _objectCreate(IteratorPrototype, { next: _toObject._propertyDesc(1, next) });
110
110
  _setToStringTag(Constructor, NAME + ' Iterator');
111
111
  };
112
112
 
113
113
  // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
114
114
 
115
115
 
116
- var IE_PROTO$1 = _export.require$$0$2('IE_PROTO');
116
+ var IE_PROTO$1 = _toObject._sharedKey('IE_PROTO');
117
117
  var ObjectProto = Object.prototype;
118
118
 
119
119
  var _objectGpo = Object.getPrototypeOf || function (O) {
120
- O = _export.toObject(O);
121
- if (_export.has(O, IE_PROTO$1)) return O[IE_PROTO$1];
120
+ O = _toObject._toObject(O);
121
+ if (_toObject._has(O, IE_PROTO$1)) return O[IE_PROTO$1];
122
122
  if (typeof O.constructor == 'function' && O instanceof O.constructor) {
123
123
  return O.constructor.prototype;
124
124
  } return O instanceof Object ? ObjectProto : null;
@@ -165,7 +165,7 @@ var _iterDefine = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORC
165
165
  }
166
166
  // Define iterator
167
167
  if (( FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
168
- _export.hide(proto, ITERATOR, $default);
168
+ _toObject._hide(proto, ITERATOR, $default);
169
169
  }
170
170
  // Plug for library
171
171
  _iterators[NAME] = $default;
@@ -178,7 +178,7 @@ var _iterDefine = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORC
178
178
  };
179
179
  if (FORCED) for (key in methods) {
180
180
  if (!(key in proto)) _redefine(proto, key, methods[key]);
181
- } else _export.$export(_export.$export.P + _export.$export.F * (BUGGY || VALUES_BUG), NAME, methods);
181
+ } else _toObject._export(_toObject._export.P + _toObject._export.F * (BUGGY || VALUES_BUG), NAME, methods);
182
182
  }
183
183
  return methods;
184
184
  };
@@ -200,11 +200,11 @@ _iterDefine(String, 'String', function (iterated) {
200
200
  return { value: point, done: false };
201
201
  });
202
202
 
203
- exports.$getPrototypeOf = _objectGpo;
204
- exports.$iterDefine = _iterDefine;
205
- exports.Iterators = _iterators;
206
- exports.create = _objectCreate;
207
- exports.html = _html;
208
- exports.redefine = _redefine;
209
- exports.require$$0 = _wks;
210
- exports.setToStringTag = _setToStringTag;
203
+ exports._html = _html;
204
+ exports._iterDefine = _iterDefine;
205
+ exports._iterators = _iterators;
206
+ exports._objectCreate = _objectCreate;
207
+ exports._objectGpo = _objectGpo;
208
+ exports._redefine = _redefine;
209
+ exports._setToStringTag = _setToStringTag;
210
+ exports._wks = _wks;
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
4
- var _export = require('./_export-a917dedd.js');
5
- var _objectPie = require('./_object-pie-6bed508e.js');
4
+ var _toObject = require('./_to-object-329a650b.js');
5
+ var _objectPie = require('./_object-pie-68c5bcbc.js');
6
6
 
7
7
  // 19.1.2.1 Object.assign(target, source, ...)
8
8
 
@@ -14,7 +14,7 @@ var _objectPie = require('./_object-pie-6bed508e.js');
14
14
  var $assign = Object.assign;
15
15
 
16
16
  // should work with symbols and should have deterministic property order (V8 bug)
17
- var _objectAssign = !$assign || _export.fails(function () {
17
+ var _objectAssign = !$assign || _toObject._fails(function () {
18
18
  var A = {};
19
19
  var B = {};
20
20
  // eslint-disable-next-line no-undef
@@ -24,20 +24,20 @@ var _objectAssign = !$assign || _export.fails(function () {
24
24
  K.split('').forEach(function (k) { B[k] = k; });
25
25
  return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
26
26
  }) ? function assign(target, source) { // eslint-disable-line no-unused-vars
27
- var T = _export.toObject(target);
27
+ var T = _toObject._toObject(target);
28
28
  var aLen = arguments.length;
29
29
  var index = 1;
30
- var getSymbols = _objectPie.$GOPS.f;
31
- var isEnum = _objectPie.require$$0.f;
30
+ var getSymbols = _objectPie._objectGops.f;
31
+ var isEnum = _objectPie._objectPie.f;
32
32
  while (aLen > index) {
33
- var S = _export.IObject(arguments[index++]);
34
- var keys = getSymbols ? _export.$keys(S).concat(getSymbols(S)) : _export.$keys(S);
33
+ var S = _toObject._iobject(arguments[index++]);
34
+ var keys = getSymbols ? _toObject._objectKeys(S).concat(getSymbols(S)) : _toObject._objectKeys(S);
35
35
  var length = keys.length;
36
36
  var j = 0;
37
37
  var key;
38
38
  while (length > j) {
39
39
  key = keys[j++];
40
- if (!_export.DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key];
40
+ if (!_toObject._descriptors || isEnum.call(S, key)) T[key] = S[key];
41
41
  }
42
42
  } return T;
43
43
  } : $assign;
@@ -45,9 +45,9 @@ var _objectAssign = !$assign || _export.fails(function () {
45
45
  // 19.1.3.1 Object.assign(target, source)
46
46
 
47
47
 
48
- _export.$export(_export.$export.S + _export.$export.F, 'Object', { assign: _objectAssign });
48
+ _toObject._export(_toObject._export.S + _toObject._export.F, 'Object', { assign: _objectAssign });
49
49
 
50
- var assign = _export.require$$7.Object.assign;
50
+ var assign = _toObject._core.Object.assign;
51
51
 
52
52
  var assign$1 = _commonjsHelpers.createCommonjsModule(function (module) {
53
53
  module.exports = { "default": assign, __esModule: true };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var isSymbol = require('./isSymbol-a0d5eb50.js');
3
+ var isSymbol = require('./isSymbol-04666465.js');
4
4
 
5
5
  /**
6
6
  * Checks if `value` is classified as an `Array` object.
@@ -47,7 +47,7 @@ function isKey(value, object) {
47
47
  }
48
48
  var type = typeof value;
49
49
  if (type == 'number' || type == 'symbol' || type == 'boolean' ||
50
- value == null || isSymbol.isSymbol(value)) {
50
+ value == null || isSymbol.isSymbol_1(value)) {
51
51
  return true;
52
52
  }
53
53
  return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
@@ -80,19 +80,19 @@ var asyncTag = '[object AsyncFunction]',
80
80
  * // => false
81
81
  */
82
82
  function isFunction(value) {
83
- if (!isSymbol.isObject(value)) {
83
+ if (!isSymbol.isObject_1(value)) {
84
84
  return false;
85
85
  }
86
86
  // The use of `Object#toString` avoids issues with the `typeof` operator
87
87
  // in Safari 9 which returns 'object' for typed arrays and other constructors.
88
- var tag = isSymbol.baseGetTag(value);
88
+ var tag = isSymbol._baseGetTag(value);
89
89
  return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
90
90
  }
91
91
 
92
92
  var isFunction_1 = isFunction;
93
93
 
94
94
  /** Used to detect overreaching core-js shims. */
95
- var coreJsData = isSymbol.root['__core-js_shared__'];
95
+ var coreJsData = isSymbol._root['__core-js_shared__'];
96
96
 
97
97
  var _coreJsData = coreJsData;
98
98
 
@@ -176,7 +176,7 @@ var reIsNative = RegExp('^' +
176
176
  * else `false`.
177
177
  */
178
178
  function baseIsNative(value) {
179
- if (!isSymbol.isObject(value) || _isMasked(value)) {
179
+ if (!isSymbol.isObject_1(value) || _isMasked(value)) {
180
180
  return false;
181
181
  }
182
182
  var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
@@ -543,7 +543,7 @@ ListCache.prototype.set = _listCacheSet;
543
543
  var _ListCache = ListCache;
544
544
 
545
545
  /* Built-in method references that are verified to be native. */
546
- var Map = _getNative(isSymbol.root, 'Map');
546
+ var Map = _getNative(isSymbol._root, 'Map');
547
547
 
548
548
  var _Map = Map;
549
549
 
@@ -842,7 +842,7 @@ var _arrayMap = arrayMap;
842
842
  var INFINITY = 1 / 0;
843
843
 
844
844
  /** Used to convert symbols to primitives and strings. */
845
- var symbolProto = isSymbol.Symbol ? isSymbol.Symbol.prototype : undefined,
845
+ var symbolProto = isSymbol._Symbol ? isSymbol._Symbol.prototype : undefined,
846
846
  symbolToString = symbolProto ? symbolProto.toString : undefined;
847
847
 
848
848
  /**
@@ -862,7 +862,7 @@ function baseToString(value) {
862
862
  // Recursively convert values (susceptible to call stack limits).
863
863
  return _arrayMap(value, baseToString) + '';
864
864
  }
865
- if (isSymbol.isSymbol(value)) {
865
+ if (isSymbol.isSymbol_1(value)) {
866
866
  return symbolToString ? symbolToString.call(value) : '';
867
867
  }
868
868
  var result = (value + '');
@@ -926,7 +926,7 @@ var INFINITY$1 = 1 / 0;
926
926
  * @returns {string|symbol} Returns the key.
927
927
  */
928
928
  function toKey(value) {
929
- if (typeof value == 'string' || isSymbol.isSymbol(value)) {
929
+ if (typeof value == 'string' || isSymbol.isSymbol_1(value)) {
930
930
  return value;
931
931
  }
932
932
  var result = (value + '');
@@ -989,4 +989,4 @@ function get(object, path, defaultValue) {
989
989
 
990
990
  var get_1 = get;
991
991
 
992
- exports.get = get_1;
992
+ exports.get_1 = get_1;
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
3
  var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
4
- require('./_export-a917dedd.js');
5
- require('./es6.string.iterator-e5f4ce45.js');
6
- require('./_library-4360b4e4.js');
7
- require('./_iter-detect-671c90bd.js');
8
- require('./core.get-iterator-method-07b02ac3.js');
9
- require('./web.dom.iterable-cd8a9ccb.js');
10
- var asyncToGenerator = require('./asyncToGenerator-fd8e35e7.js');
11
- require('./_set-species-47156c42.js');
4
+ require('./_to-object-329a650b.js');
5
+ require('./es6.string.iterator-cc0bbaa4.js');
6
+ require('./_library-dd23b178.js');
7
+ require('./_iter-detect-60b2f026.js');
8
+ require('./core.get-iterator-method-f62321d4.js');
9
+ require('./web.dom.iterable-a0e279c1.js');
10
+ var asyncToGenerator = require('./asyncToGenerator-533d476a.js');
11
+ require('./_set-species-f92c67c5.js');
12
12
  var index$4 = require('./index-bd6c9f56.js');
13
13
  var getQuery = require('./getQuery.js');
14
14
 
@@ -32,18 +32,9 @@ function parseString(setCookieValue, options) {
32
32
  ? Object.assign({}, defaultParseOptions, options)
33
33
  : defaultParseOptions;
34
34
 
35
- try {
36
- value = options.decodeValues ? decodeURIComponent(value) : value; // decode cookie value
37
- } catch (e) {
38
- console.error(
39
- `set-cookie-parser encountered an error while decoding a cookie with value '${value}'. Set options.decodeValues to false to disable this feature.`,
40
- e
41
- );
42
- }
43
-
44
35
  var cookie = {
45
36
  name: name, // grab everything before the first =
46
- value: value,
37
+ value: options.decodeValues ? decodeURIComponent(value) : value, // decode cookie value
47
38
  };
48
39
 
49
40
  parts.forEach(function (part) {
@@ -214,7 +205,7 @@ setCookie.parse = parse_1;
214
205
  setCookie.parseString = parseString_1;
215
206
  setCookie.splitCookiesString = splitCookiesString_1;
216
207
 
217
- var utils = _commonjsHelpers.createCommonjsModule(function (module, exports) {
208
+ var dist = _commonjsHelpers.createCommonjsModule(function (module, exports) {
218
209
  var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
219
210
  __assign = Object.assign || function(t) {
220
211
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -227,33 +218,10 @@ var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlob
227
218
  return __assign.apply(this, arguments);
228
219
  };
229
220
  Object.defineProperty(exports, "__esModule", { value: true });
230
- exports.areCookiesEqual = exports.hasSameProperties = exports.createCookie = exports.isBrowser = void 0;
231
- /**
232
- * Tells whether we are in a browser or server.
233
- */
234
- function isBrowser() {
235
- return typeof window !== 'undefined';
236
- }
237
- exports.isBrowser = isBrowser;
238
- /**
239
- * Create an instance of the Cookie interface
240
- */
241
- function createCookie(name, value, options) {
242
- var sameSite = options.sameSite;
243
- if (sameSite === true) {
244
- sameSite = 'strict';
245
- }
246
- if (sameSite === undefined || sameSite === false) {
247
- sameSite = 'lax';
248
- }
249
- var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
250
- delete cookieToSet.encode;
251
- return __assign({ name: name, value: value }, cookieToSet);
252
- }
253
- exports.createCookie = createCookie;
254
- /**
255
- * Tells whether given objects have the same properties.
256
- */
221
+ exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
222
+
223
+
224
+ var isBrowser = function () { return typeof window !== 'undefined'; };
257
225
  function hasSameProperties(a, b) {
258
226
  var aProps = Object.getOwnPropertyNames(a);
259
227
  var bProps = Object.getOwnPropertyNames(b);
@@ -268,9 +236,8 @@ function hasSameProperties(a, b) {
268
236
  }
269
237
  return true;
270
238
  }
271
- exports.hasSameProperties = hasSameProperties;
272
239
  /**
273
- * Compare the cookie and return true if the cookies have equivalent
240
+ * Compare the cookie and return true if the cookies has equivalent
274
241
  * options and the cookies would be overwritten in the browser storage.
275
242
  *
276
243
  * @param a first Cookie for comparison
@@ -283,109 +250,71 @@ function areCookiesEqual(a, b) {
283
250
  }
284
251
  return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
285
252
  }
286
- exports.areCookiesEqual = areCookiesEqual;
287
- /* Functions */
288
-
289
- });
290
-
291
- _commonjsHelpers.unwrapExports(utils);
292
- var utils_1 = utils.areCookiesEqual;
293
- var utils_2 = utils.hasSameProperties;
294
- var utils_3 = utils.createCookie;
295
- var utils_4 = utils.isBrowser;
296
-
297
- var dist = _commonjsHelpers.createCommonjsModule(function (module, exports) {
298
- var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
299
- __assign = Object.assign || function(t) {
300
- for (var s, i = 1, n = arguments.length; i < n; i++) {
301
- s = arguments[i];
302
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
303
- t[p] = s[p];
304
- }
305
- return t;
306
- };
307
- return __assign.apply(this, arguments);
308
- };
309
- Object.defineProperty(exports, "__esModule", { value: true });
310
- exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
311
-
312
-
313
-
314
253
  /**
254
+ * Create an instance of the Cookie interface
255
+ *
256
+ * @param name name of the Cookie
257
+ * @param value value of the Cookie
258
+ * @param options Cookie options
259
+ */
260
+ function createCookie(name, value, options) {
261
+ var sameSite = options.sameSite;
262
+ if (sameSite === true) {
263
+ sameSite = 'strict';
264
+ }
265
+ if (sameSite === undefined || sameSite === false) {
266
+ sameSite = 'lax';
267
+ }
268
+ var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
269
+ delete cookieToSet.encode;
270
+ return __assign({ name: name, value: value }, cookieToSet);
271
+ }
272
+ /**
273
+ *
315
274
  * Parses cookies.
316
275
  *
317
- * @param ctx NextJS page or API context, express context, null or undefined.
318
- * @param options Options that we pass down to `cookie` library.
276
+ * @param ctx
277
+ * @param options
319
278
  */
320
279
  function parseCookies(ctx, options) {
321
- var _a, _b;
322
- if ((_b = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.req) === null || _a === void 0 ? void 0 : _a.headers) === null || _b === void 0 ? void 0 : _b.cookie) {
280
+ if (ctx && ctx.req && ctx.req.headers && ctx.req.headers.cookie) {
323
281
  return index$4.cookie.parse(ctx.req.headers.cookie, options);
324
282
  }
325
- if (utils.isBrowser()) {
283
+ if (isBrowser()) {
326
284
  return index$4.cookie.parse(document.cookie, options);
327
285
  }
328
286
  return {};
329
287
  }
330
288
  exports.parseCookies = parseCookies;
331
289
  /**
290
+ *
332
291
  * Sets a cookie.
333
292
  *
334
- * @param ctx NextJS page or API context, express context, null or undefined.
335
- * @param name The name of your cookie.
336
- * @param value The value of your cookie.
337
- * @param options Options that we pass down to `cookie` library.
293
+ * @param ctx
294
+ * @param name
295
+ * @param value
296
+ * @param options
338
297
  */
339
298
  function setCookie$1(ctx, name, value, options) {
340
- var _a, _b;
341
- if (options === void 0) { options = {}; }
342
- // SSR
343
- if (((_a = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _a === void 0 ? void 0 : _a.getHeader) && ctx.res.setHeader) {
344
- // Check if response has finished and warn about it.
345
- if ((_b = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _b === void 0 ? void 0 : _b.finished) {
346
- console.warn("Not setting \"" + name + "\" cookie. Response has finished.");
347
- console.warn("You should set cookie before res.send()");
348
- return {};
349
- }
350
- /**
351
- * Load existing cookies from the header and parse them.
352
- */
299
+ if (ctx && ctx.res && ctx.res.getHeader && ctx.res.setHeader) {
353
300
  var cookies = ctx.res.getHeader('Set-Cookie') || [];
354
301
  if (typeof cookies === 'string')
355
302
  cookies = [cookies];
356
303
  if (typeof cookies === 'number')
357
304
  cookies = [];
358
- /**
359
- * Parse cookies but ignore values - we've already encoded
360
- * them in the previous call.
361
- */
362
- var parsedCookies = setCookie.parse(cookies, {
363
- decodeValues: false,
364
- });
365
- /**
366
- * We create the new cookie and make sure that none of
367
- * the existing cookies match it.
368
- */
369
- var newCookie_1 = utils.createCookie(name, value, options);
305
+ var parsedCookies = setCookie.parse(cookies);
370
306
  var cookiesToSet_1 = [];
371
307
  parsedCookies.forEach(function (parsedCookie) {
372
- if (!utils.areCookiesEqual(parsedCookie, newCookie_1)) {
373
- /**
374
- * We serialize the cookie back to the original format
375
- * if it isn't the same as the new one.
376
- */
377
- var serializedCookie = index$4.cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({
378
- // we prevent reencoding by default, but you might override it
379
- encode: function (val) { return val; } }, parsedCookie));
380
- cookiesToSet_1.push(serializedCookie);
308
+ if (!areCookiesEqual(parsedCookie, createCookie(name, value, options))) {
309
+ cookiesToSet_1.push(index$4.cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({ encode: function (val) { return val; } }, parsedCookie)));
381
310
  }
382
311
  });
383
312
  cookiesToSet_1.push(index$4.cookie.serialize(name, value, options));
384
- // Update the header.
385
- ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
313
+ if (!ctx.res.finished) {
314
+ ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
315
+ }
386
316
  }
387
- // Browser
388
- if (utils.isBrowser()) {
317
+ if (isBrowser()) {
389
318
  if (options && options.httpOnly) {
390
319
  throw new Error('Can not set a httpOnly cookie in the browser.');
391
320
  }
@@ -395,21 +324,30 @@ function setCookie$1(ctx, name, value, options) {
395
324
  }
396
325
  exports.setCookie = setCookie$1;
397
326
  /**
327
+ *
398
328
  * Destroys a cookie with a particular name.
399
329
  *
400
- * @param ctx NextJS page or API context, express context, null or undefined.
401
- * @param name Cookie name.
402
- * @param options Options that we pass down to `cookie` library.
330
+ * @param ctx
331
+ * @param name
332
+ * @param options
403
333
  */
404
334
  function destroyCookie(ctx, name, options) {
405
- /**
406
- * We forward the request destroy to setCookie function
407
- * as it is the same function with modified maxAge value.
408
- */
409
- return setCookie$1(ctx, name, '', __assign(__assign({}, (options || {})), { maxAge: -1 }));
335
+ var opts = __assign(__assign({}, (options || {})), { maxAge: -1 });
336
+ if (ctx && ctx.res && ctx.res.setHeader && ctx.res.getHeader) {
337
+ var cookies = ctx.res.getHeader('Set-Cookie') || [];
338
+ if (typeof cookies === 'string')
339
+ cookies = [cookies];
340
+ if (typeof cookies === 'number')
341
+ cookies = [];
342
+ cookies.push(index$4.cookie.serialize(name, '', opts));
343
+ ctx.res.setHeader('Set-Cookie', cookies);
344
+ }
345
+ if (isBrowser()) {
346
+ document.cookie = index$4.cookie.serialize(name, '', opts);
347
+ }
348
+ return {};
410
349
  }
411
350
  exports.destroyCookie = destroyCookie;
412
- /* Utility Exports */
413
351
  exports.default = {
414
352
  set: setCookie$1,
415
353
  get: parseCookies,
@@ -426,7 +364,7 @@ var dist_3 = dist.parseCookies;
426
364
  var _this = undefined;
427
365
 
428
366
  var getRelatedArticle = function () {
429
- var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator._regeneratorRuntime.mark(function _callee() {
367
+ var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee() {
430
368
  var ctx = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
431
369
  var client = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
432
370
  var article = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
@@ -435,7 +373,7 @@ var getRelatedArticle = function () {
435
373
 
436
374
  var _article$url, url, documentGroupMapping, issueGroup, content_placement, references, params, articles, filters, cookies, prevSlugs, query;
437
375
 
438
- return asyncToGenerator._regeneratorRuntime.wrap(function _callee$(_context) {
376
+ return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
439
377
  while (1) {
440
378
  switch (_context.prev = _context.next) {
441
379
  case 0: