@mjhls/mjh-framework 1.0.1005-next12-0002 → 1.0.1005-next12-0003

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 (501) hide show
  1. package/dist/cjs/{AD-e1bb7536.js → AD-898996a0.js} +1 -1
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250-266996c8.js +1 -0
  4. package/dist/cjs/AD300x250.js +1 -1
  5. package/dist/cjs/AD300x250x600-f5ccbeef.js +1 -0
  6. package/dist/cjs/AD300x250x600.js +1 -1
  7. package/dist/cjs/AD728x90-cfaa3590.js +1 -0
  8. package/dist/cjs/AD728x90.js +1 -1
  9. package/dist/cjs/ADFloatingFooter-6a82d5a0.js +1 -0
  10. package/dist/cjs/ADFloatingFooter.js +1 -1
  11. package/dist/cjs/ADFooter-86087810.js +1 -0
  12. package/dist/cjs/ADFooter.js +1 -1
  13. package/dist/cjs/ADGutter-c2fafa7d.js +1 -0
  14. package/dist/cjs/ADGutter.js +1 -1
  15. package/dist/cjs/ADInfeed-f496a8f6.js +1 -0
  16. package/dist/cjs/ADSkyscraper-dcea8c02.js +1 -0
  17. package/dist/cjs/ADSkyscraper.js +1 -1
  18. package/dist/cjs/ADSponsoredResources-b3c41d02.js +1 -0
  19. package/dist/cjs/ADSponsoredResources.js +1 -1
  20. package/dist/cjs/ADWebcast-cd4cb6eb.js +1 -0
  21. package/dist/cjs/ADWebcast.js +1 -1
  22. package/dist/cjs/ADWelcome-62c95f83.js +1 -0
  23. package/dist/cjs/ADWelcome.js +1 -1
  24. package/dist/cjs/ADlgInfeed-01f5ef1b.js +1 -0
  25. package/dist/cjs/AccordionPanel-9a3ea5e9.js +1 -0
  26. package/dist/cjs/AccordionPanel.js +1 -1
  27. package/dist/cjs/AdSlot-d541f28d.js +1 -0
  28. package/dist/cjs/AdSlot.js +1 -1
  29. package/dist/cjs/AdSlotsProvider-2e4f7f6f.js +1 -0
  30. package/dist/cjs/AdSlotsProvider.js +1 -1
  31. package/dist/cjs/AlgoliaSearch-8eab2349.js +1 -0
  32. package/dist/cjs/AlgoliaSearch.js +1 -1
  33. package/dist/cjs/AlphabeticList-a86a341f.js +1 -0
  34. package/dist/cjs/AlphabeticList.js +1 -1
  35. package/dist/cjs/ArticleCarousel-75b7d666.js +1 -0
  36. package/dist/cjs/ArticleCarousel.js +1 -1
  37. package/dist/cjs/ArticleProgramLandingPage-c22f8d23.js +1 -0
  38. package/dist/cjs/ArticleProgramLandingPage.js +1 -1
  39. package/dist/cjs/ArticleSeriesLandingPage-5225aa96.js +1 -0
  40. package/dist/cjs/ArticleSeriesLandingPage.js +1 -1
  41. package/dist/cjs/ArticleSeriesListing-be79214a.js +1 -0
  42. package/dist/cjs/ArticleSeriesListing.js +1 -1
  43. package/dist/cjs/Auth.js +1 -1
  44. package/dist/cjs/AuthWrapper.js +1 -1
  45. package/dist/cjs/AuthorComponent-91032070.js +1 -0
  46. package/dist/cjs/Beam.js +1 -1
  47. package/dist/cjs/Breadcrumbs-ad264db7.js +1 -0
  48. package/dist/cjs/Breadcrumbs.js +1 -1
  49. package/dist/cjs/CMEDeck-c58e524e.js +1 -0
  50. package/dist/cjs/CMEDeck.js +1 -1
  51. package/dist/cjs/{Column2-47fa24ac.js → Column2-739faed9.js} +1 -1
  52. package/dist/cjs/Column2.js +1 -1
  53. package/dist/cjs/{Column3-7407a3a2.js → Column3-fa7c056f.js} +1 -1
  54. package/dist/cjs/Column3.js +1 -1
  55. package/dist/cjs/{ConferenceArticleCard-a48a5eb4.js → ConferenceArticleCard-4f472e4b.js} +1 -1
  56. package/dist/cjs/ConferenceArticleCard.js +1 -1
  57. package/dist/cjs/ContentCard-94a11e61.js +1 -0
  58. package/dist/cjs/ContentCardPaginated.js +1 -1
  59. package/dist/cjs/DeckContent.js +1 -1
  60. package/dist/cjs/DeckQueue.js +1 -1
  61. package/dist/cjs/DeckQueuePaginated.js +1 -1
  62. package/dist/cjs/Dfp-6d5370e2.js +1 -0
  63. package/dist/cjs/DropdownButton-469c179c.js +6 -0
  64. package/dist/cjs/{Dvm-4aab0fca.js → Dvm-d7766f28.js} +1 -1
  65. package/dist/cjs/EventsDeck-6f4dae1e.js +1 -0
  66. package/dist/cjs/EventsDeck.js +1 -1
  67. package/dist/cjs/ExternalResources-e965dd3d.js +1 -0
  68. package/dist/cjs/ExternalResources.js +1 -1
  69. package/dist/cjs/{Feature-4254dfe3.js → Feature-3cf45f11.js} +1 -1
  70. package/dist/cjs/Feature.js +1 -1
  71. package/dist/cjs/{ForbesHero-82c18210.js → ForbesHero-741e751e.js} +1 -1
  72. package/dist/cjs/ForbesHero.js +1 -1
  73. package/dist/cjs/GridContent-ffe6735d.js +1 -0
  74. package/dist/cjs/GridContent.js +1 -1
  75. package/dist/cjs/GridContentPaginated.js +1 -1
  76. package/dist/cjs/{GridHero-c6784d3f.js → GridHero-80338231.js} +1 -1
  77. package/dist/cjs/GridHero.js +1 -1
  78. package/dist/cjs/GroupDeck-f3b67f3d.js +1 -0
  79. package/dist/cjs/GroupDeck.js +1 -1
  80. package/dist/cjs/HamMagazine.js +1 -1
  81. package/dist/cjs/HamburgerNav-ef1d1832.js +1 -0
  82. package/dist/cjs/Hero-43574b9d.js +1 -0
  83. package/dist/cjs/Hero.js +1 -1
  84. package/dist/cjs/{HorizontalArticleListing-4a44f354.js → HorizontalArticleListing-906f5b20.js} +1 -1
  85. package/dist/cjs/HorizontalArticleListing.js +1 -1
  86. package/dist/cjs/{HorizontalHero-c5a3cb7a.js → HorizontalHero-7911527d.js} +1 -1
  87. package/dist/cjs/HorizontalHero.js +1 -1
  88. package/dist/cjs/ImageSlider-1b09bc59.js +1 -0
  89. package/dist/cjs/{IssueContentDeck-48a04696.js → IssueContentDeck-f79e2c82.js} +1 -1
  90. package/dist/cjs/IssueContentDeck.js +1 -1
  91. package/dist/cjs/IssueDeck-e41a10eb.js +1 -0
  92. package/dist/cjs/IssueDeck.js +1 -1
  93. package/dist/cjs/{IssueLanding-06765ae0.js → IssueLanding-89e0e42f.js} +1 -1
  94. package/dist/cjs/IssueLanding.js +1 -1
  95. package/dist/cjs/{LeftNav-c7283941.js → LeftNav-1f40f0cc.js} +1 -1
  96. package/dist/cjs/LeftNav.js +1 -1
  97. package/dist/cjs/Magazine-93dc6beb.js +1 -0
  98. package/dist/cjs/MasterDeck-65dd366b.js +1 -0
  99. package/dist/cjs/MasterDeck.js +1 -1
  100. package/dist/cjs/MasterDeckPaginated.js +1 -1
  101. package/dist/cjs/{MediaSeriesCard-07b6f758.js → MediaSeriesCard-8ae50064.js} +1 -1
  102. package/dist/cjs/MediaSeriesLanding.js +1 -1
  103. package/dist/cjs/MediaSeriesLandingPaginated.js +1 -1
  104. package/dist/cjs/Native-d1a75938.js +1 -0
  105. package/dist/cjs/NavDvm.js +1 -1
  106. package/dist/cjs/NavMagazine.js +1 -1
  107. package/dist/cjs/NavNative.js +1 -1
  108. package/dist/cjs/Normal-1e9c0fa8.js +1 -0
  109. package/dist/cjs/{OncliveHero-5c7454fe.js → OncliveHero-3fb41e1f.js} +1 -1
  110. package/dist/cjs/OncliveHero.js +1 -1
  111. package/dist/cjs/{OncliveLargeHero-46e0a793.js → OncliveLargeHero-c538ea20.js} +1 -1
  112. package/dist/cjs/OncliveLargeHero.js +1 -1
  113. package/dist/cjs/PageFilter-4bb08c20.js +1 -0
  114. package/dist/cjs/PageFilter.js +1 -1
  115. package/dist/cjs/PartnerDetailListing-f849c242.js +1 -0
  116. package/dist/cjs/PartnerDetailListing.js +1 -1
  117. package/dist/cjs/PartnerDetailListingPaginated.js +1 -1
  118. package/dist/cjs/PixelTracking.js +1 -1
  119. package/dist/cjs/PodcastsLanding.js +1 -1
  120. package/dist/cjs/PopUpModal-7cc1667b.js +1 -0
  121. package/dist/cjs/PopUpModal.js +1 -1
  122. package/dist/cjs/PtceDeck.js +1 -1
  123. package/dist/cjs/PubSection-e962964d.js +1 -0
  124. package/dist/cjs/PubSection.js +1 -1
  125. package/dist/cjs/PubToc-e2ff1533.js +1 -0
  126. package/dist/cjs/PubToc.js +1 -1
  127. package/dist/cjs/PublicationDeck-fd0d582f.js +1 -0
  128. package/dist/cjs/PublicationDeck.js +1 -1
  129. package/dist/cjs/{PublicationFeature-0e2014fb.js → PublicationFeature-00d7d119.js} +1 -1
  130. package/dist/cjs/PublicationLanding-a8b90432.js +1 -0
  131. package/dist/cjs/PublicationLanding.js +1 -1
  132. package/dist/cjs/Queue-6872841c.js +1 -0
  133. package/dist/cjs/QueueDeckExpanded-b5dd6cda.js +1 -0
  134. package/dist/cjs/QueueDeckExpanded.js +1 -1
  135. package/dist/cjs/QueueDeckExpandedPaginated.js +1 -1
  136. package/dist/cjs/{RelatedContent-4ac0ceca.js → RelatedContent-fa1fdaf1.js} +1 -1
  137. package/dist/cjs/RelatedContent.js +1 -1
  138. package/dist/cjs/Schema-5c66c5cd.js +1 -0
  139. package/dist/cjs/Schema.js +1 -1
  140. package/dist/cjs/Search.js +1 -1
  141. package/dist/cjs/Segment.js +1 -1
  142. package/dist/cjs/SeriesListingDeck.js +1 -1
  143. package/dist/cjs/SeriesSlider-72fde209.js +1 -0
  144. package/dist/cjs/{SideFooter-17e666a3.js → SideFooter-2b3625c9.js} +1 -1
  145. package/dist/cjs/SideFooter.js +1 -1
  146. package/dist/cjs/SocialSearchComponent-3dc5405e.js +1 -0
  147. package/dist/cjs/{TaxonomyCard-e881cb43.js → TaxonomyCard-ca56a7b2.js} +1 -1
  148. package/dist/cjs/TaxonomyCard.js +1 -1
  149. package/dist/cjs/TaxonomyDescription-becc5cc5.js +1 -0
  150. package/dist/cjs/TaxonomyDescription.js +1 -1
  151. package/dist/cjs/TemplateNormal.js +1 -1
  152. package/dist/cjs/{ThumbnailCard-101f04b8.js → ThumbnailCard-25c9e37b.js} +1 -1
  153. package/dist/cjs/ThumbnailCard.js +1 -1
  154. package/dist/cjs/Ustream-e85bed96.js +1 -0
  155. package/dist/cjs/Ustream.js +1 -1
  156. package/dist/cjs/{VerticalHero-a61b1a2e.js → VerticalHero-ef71262f.js} +1 -1
  157. package/dist/cjs/VerticalHero.js +1 -1
  158. package/dist/cjs/VideoProgramLandingPage-bcef4cda.js +1 -0
  159. package/dist/cjs/VideoProgramLandingPage.js +1 -1
  160. package/dist/cjs/VideoSeriesCard.js +1 -1
  161. package/dist/cjs/VideoSeriesFilter-c45505be.js +1 -0
  162. package/dist/cjs/VideoSeriesFilter.js +1 -1
  163. package/dist/cjs/VideoSeriesLandingPage-7e199b48.js +1 -0
  164. package/dist/cjs/VideoSeriesLandingPage.js +1 -1
  165. package/dist/cjs/VideoSeriesListing-0d8ffc18.js +1 -0
  166. package/dist/cjs/VideoSeriesListing.js +1 -1
  167. package/dist/cjs/View.js +1 -1
  168. package/dist/cjs/{YahooHero-2df6a408.js → YahooHero-5cce225b.js} +1 -1
  169. package/dist/cjs/YahooHero.js +1 -1
  170. package/dist/cjs/YoutubeGroup-d36b3e49.js +1 -0
  171. package/dist/cjs/YoutubeGroup.js +1 -1
  172. package/dist/cjs/beam-6940aa8c.js +1 -0
  173. package/dist/cjs/defineProperty-3cad0327.js +1 -0
  174. package/dist/cjs/entities-6106638a.js +1 -0
  175. package/dist/cjs/extends-f8003900.js +1 -0
  176. package/dist/cjs/faundadb.js +1 -1
  177. package/dist/cjs/getPrototypeOf-e5dabebb.js +1 -0
  178. package/dist/cjs/getPtceActivities.js +1 -1
  179. package/dist/cjs/getRelatedArticle-1008e957.js +1 -0
  180. package/dist/cjs/getRelatedArticle.js +1 -1
  181. package/dist/cjs/getSerializers.js +1 -1
  182. package/dist/cjs/getTargeting-3b9a1da0.js +1 -0
  183. package/dist/cjs/getTargeting.js +1 -1
  184. package/dist/cjs/index-4c0b6033.js +1 -0
  185. package/dist/cjs/index-6e1fba48.js +1 -0
  186. package/dist/cjs/index-83bcf60c.js +1 -0
  187. package/dist/cjs/index-efb74633.js +1 -0
  188. package/dist/cjs/index.js +1 -1
  189. package/dist/cjs/searchForm-2a06a0a6.js +1 -0
  190. package/dist/cjs/segment-lib-1c52764b.js +1 -0
  191. package/dist/cjs/slicedToArray-e6d9072a.js +1 -0
  192. package/dist/cjs/toConsumableArray-bf649f24.js +1 -0
  193. package/dist/cjs/typeof-5f2c4427.js +1 -0
  194. package/dist/cjs/unsupportedIterableToArray-a6f9513d.js +1 -0
  195. package/dist/cjs/urlFor-ca017581.js +1 -0
  196. package/dist/cjs/urlFor.js +1 -1
  197. package/dist/cjs/urlForFile-266cd07c.js +1 -0
  198. package/dist/esm/{AD-8a57f623.js → AD-52252475.js} +1 -1
  199. package/dist/esm/AD.js +1 -1
  200. package/dist/esm/{AD300x250-10ccde99.js → AD300x250-6ba14878.js} +1 -1
  201. package/dist/esm/AD300x250.js +1 -1
  202. package/dist/esm/AD300x250x600-371610a9.js +1 -0
  203. package/dist/esm/AD300x250x600.js +1 -1
  204. package/dist/esm/{AD728x90-2b0e930d.js → AD728x90-22304c6a.js} +1 -1
  205. package/dist/esm/AD728x90.js +1 -1
  206. package/dist/esm/{ADFloatingFooter-f23caacf.js → ADFloatingFooter-57571461.js} +1 -1
  207. package/dist/esm/ADFloatingFooter.js +1 -1
  208. package/dist/esm/{ADFooter-4c20b5fc.js → ADFooter-def97764.js} +1 -1
  209. package/dist/esm/ADFooter.js +1 -1
  210. package/dist/esm/{ADGutter-59cf52e3.js → ADGutter-05ea5a24.js} +1 -1
  211. package/dist/esm/ADGutter.js +1 -1
  212. package/dist/esm/ADInfeed-20197eba.js +1 -0
  213. package/dist/esm/{ADSkyscraper-bfd33e46.js → ADSkyscraper-d992d7aa.js} +1 -1
  214. package/dist/esm/ADSkyscraper.js +1 -1
  215. package/dist/esm/ADSponsoredResources-169c4989.js +1 -0
  216. package/dist/esm/ADSponsoredResources.js +1 -1
  217. package/dist/esm/{ADWebcast-6f27e384.js → ADWebcast-aa6c2a84.js} +1 -1
  218. package/dist/esm/ADWebcast.js +1 -1
  219. package/dist/esm/{ADWelcome-421d5621.js → ADWelcome-be877a73.js} +1 -1
  220. package/dist/esm/ADWelcome.js +1 -1
  221. package/dist/esm/{ADlgInfeed-19d0f057.js → ADlgInfeed-180f8b7e.js} +1 -1
  222. package/dist/esm/{AccordionPanel-123022f0.js → AccordionPanel-4c89ec1e.js} +1 -1
  223. package/dist/esm/AccordionPanel.js +1 -1
  224. package/dist/esm/{AdSlot-16696371.js → AdSlot-7c2daad3.js} +1 -1
  225. package/dist/esm/AdSlot.js +1 -1
  226. package/dist/esm/{AdSlotsProvider-5ead284e.js → AdSlotsProvider-565c5169.js} +1 -1
  227. package/dist/esm/AdSlotsProvider.js +1 -1
  228. package/dist/esm/{AlgoliaSearch-1343b721.js → AlgoliaSearch-a4af9d6e.js} +1 -1
  229. package/dist/esm/AlgoliaSearch.js +1 -1
  230. package/dist/esm/AlphabeticList-fcf0c93c.js +1 -0
  231. package/dist/esm/AlphabeticList.js +1 -1
  232. package/dist/esm/{ArticleCarousel-ba29666c.js → ArticleCarousel-62e593d2.js} +1 -1
  233. package/dist/esm/ArticleCarousel.js +1 -1
  234. package/dist/esm/{ArticleProgramLandingPage-d996da8f.js → ArticleProgramLandingPage-0618efa4.js} +1 -1
  235. package/dist/esm/ArticleProgramLandingPage.js +1 -1
  236. package/dist/esm/ArticleSeriesLandingPage-764a8206.js +1 -0
  237. package/dist/esm/ArticleSeriesLandingPage.js +1 -1
  238. package/dist/esm/{ArticleSeriesListing-22e8f5a6.js → ArticleSeriesListing-017388bd.js} +1 -1
  239. package/dist/esm/ArticleSeriesListing.js +1 -1
  240. package/dist/esm/Auth.js +1 -1
  241. package/dist/esm/AuthWrapper.js +1 -1
  242. package/dist/esm/{AuthorComponent-f3e14fdd.js → AuthorComponent-4bb0a577.js} +1 -1
  243. package/dist/esm/Beam.js +1 -1
  244. package/dist/esm/{Breadcrumbs-8838701e.js → Breadcrumbs-11913dcf.js} +1 -1
  245. package/dist/esm/Breadcrumbs.js +1 -1
  246. package/dist/esm/{CMEDeck-182d8eb7.js → CMEDeck-d11e05c6.js} +1 -1
  247. package/dist/esm/CMEDeck.js +1 -1
  248. package/dist/esm/Column2-216e1b74.js +1 -0
  249. package/dist/esm/Column2.js +1 -1
  250. package/dist/esm/{Column3-94c8661b.js → Column3-0799b8d1.js} +1 -1
  251. package/dist/esm/Column3.js +1 -1
  252. package/dist/esm/{ConferenceArticleCard-c10c5b7f.js → ConferenceArticleCard-c8ebc4c5.js} +1 -1
  253. package/dist/esm/ConferenceArticleCard.js +1 -1
  254. package/dist/esm/{ContentCard-01c2e43a.js → ContentCard-b326f8e0.js} +1 -1
  255. package/dist/esm/ContentCardPaginated.js +1 -1
  256. package/dist/esm/DeckContent.js +1 -1
  257. package/dist/esm/DeckQueue.js +1 -1
  258. package/dist/esm/DeckQueuePaginated.js +1 -1
  259. package/dist/esm/Dfp-5935bfb4.js +1 -0
  260. package/dist/esm/DropdownButton-07c4dfae.js +6 -0
  261. package/dist/esm/{Dvm-138f924d.js → Dvm-f67220c0.js} +1 -1
  262. package/dist/esm/EventsDeck-f0ffda78.js +1 -0
  263. package/dist/esm/EventsDeck.js +1 -1
  264. package/dist/esm/{ExternalResources-e9656681.js → ExternalResources-075e250c.js} +1 -1
  265. package/dist/esm/ExternalResources.js +1 -1
  266. package/dist/esm/{Feature-69a30cea.js → Feature-0c2c0b2d.js} +1 -1
  267. package/dist/esm/Feature.js +1 -1
  268. package/dist/esm/{ForbesHero-0b0a5436.js → ForbesHero-ec644354.js} +1 -1
  269. package/dist/esm/ForbesHero.js +1 -1
  270. package/dist/esm/GridContent-99a1bfc4.js +1 -0
  271. package/dist/esm/GridContent.js +1 -1
  272. package/dist/esm/GridContentPaginated.js +1 -1
  273. package/dist/esm/{GridHero-0d17636c.js → GridHero-fd6a363f.js} +1 -1
  274. package/dist/esm/GridHero.js +1 -1
  275. package/dist/esm/{GroupDeck-4c581822.js → GroupDeck-c173accb.js} +1 -1
  276. package/dist/esm/GroupDeck.js +1 -1
  277. package/dist/esm/HamMagazine.js +1 -1
  278. package/dist/esm/{HamburgerNav-5fcf79ae.js → HamburgerNav-134f2aa6.js} +1 -1
  279. package/dist/esm/Hero-37edbb29.js +1 -0
  280. package/dist/esm/Hero.js +1 -1
  281. package/dist/esm/{HorizontalArticleListing-cccace2e.js → HorizontalArticleListing-820bb4f7.js} +1 -1
  282. package/dist/esm/HorizontalArticleListing.js +1 -1
  283. package/dist/esm/{HorizontalHero-8633a55c.js → HorizontalHero-7576d927.js} +1 -1
  284. package/dist/esm/HorizontalHero.js +1 -1
  285. package/dist/esm/{ImageSlider-c354db50.js → ImageSlider-a0786266.js} +1 -1
  286. package/dist/esm/{IssueContentDeck-915409a7.js → IssueContentDeck-9d771cc2.js} +1 -1
  287. package/dist/esm/IssueContentDeck.js +1 -1
  288. package/dist/esm/{IssueDeck-61a4a550.js → IssueDeck-787f939c.js} +1 -1
  289. package/dist/esm/IssueDeck.js +1 -1
  290. package/dist/esm/{IssueLanding-a59c91ee.js → IssueLanding-0e46e28d.js} +1 -1
  291. package/dist/esm/IssueLanding.js +1 -1
  292. package/dist/esm/LeftNav-b4fa0d0b.js +1 -0
  293. package/dist/esm/LeftNav.js +1 -1
  294. package/dist/esm/{Magazine-7d6e5dcd.js → Magazine-fb80c07a.js} +1 -1
  295. package/dist/esm/MasterDeck-5efbeb73.js +1 -0
  296. package/dist/esm/MasterDeck.js +1 -1
  297. package/dist/esm/MasterDeckPaginated.js +1 -1
  298. package/dist/esm/{MediaSeriesCard-cf72ce87.js → MediaSeriesCard-18ee909f.js} +1 -1
  299. package/dist/esm/MediaSeriesLanding.js +1 -1
  300. package/dist/esm/MediaSeriesLandingPaginated.js +1 -1
  301. package/dist/esm/{Native-bf89940a.js → Native-41cedb31.js} +1 -1
  302. package/dist/esm/NavDvm.js +1 -1
  303. package/dist/esm/NavMagazine.js +1 -1
  304. package/dist/esm/NavNative.js +1 -1
  305. package/dist/esm/{Normal-06895213.js → Normal-28f50540.js} +1 -1
  306. package/dist/esm/{OncliveHero-19794e52.js → OncliveHero-525c9d19.js} +1 -1
  307. package/dist/esm/OncliveHero.js +1 -1
  308. package/dist/esm/{OncliveLargeHero-01d4c10f.js → OncliveLargeHero-219b4577.js} +1 -1
  309. package/dist/esm/OncliveLargeHero.js +1 -1
  310. package/dist/esm/{PageFilter-81144bcb.js → PageFilter-7f97f8ed.js} +1 -1
  311. package/dist/esm/PageFilter.js +1 -1
  312. package/dist/esm/{PartnerDetailListing-429d60e1.js → PartnerDetailListing-7ec391ac.js} +1 -1
  313. package/dist/esm/PartnerDetailListing.js +1 -1
  314. package/dist/esm/PartnerDetailListingPaginated.js +1 -1
  315. package/dist/esm/PixelTracking.js +1 -1
  316. package/dist/esm/PodcastsLanding.js +1 -1
  317. package/dist/esm/{PopUpModal-a2735a23.js → PopUpModal-bf7b6151.js} +1 -1
  318. package/dist/esm/PopUpModal.js +1 -1
  319. package/dist/esm/PtceDeck.js +1 -1
  320. package/dist/esm/{PubSection-3d940b53.js → PubSection-37b37129.js} +1 -1
  321. package/dist/esm/PubSection.js +1 -1
  322. package/dist/esm/{PubToc-52a85696.js → PubToc-af66289b.js} +1 -1
  323. package/dist/esm/PubToc.js +1 -1
  324. package/dist/esm/{PublicationDeck-538d397e.js → PublicationDeck-cbef1029.js} +1 -1
  325. package/dist/esm/PublicationDeck.js +1 -1
  326. package/dist/esm/{PublicationFeature-6deea07c.js → PublicationFeature-13838b92.js} +1 -1
  327. package/dist/esm/{PublicationLanding-48ebce9b.js → PublicationLanding-3d724d91.js} +1 -1
  328. package/dist/esm/PublicationLanding.js +1 -1
  329. package/dist/esm/{Queue-847df47f.js → Queue-bb3f3625.js} +1 -1
  330. package/dist/esm/{QueueDeckExpanded-fdc60f72.js → QueueDeckExpanded-6af47534.js} +1 -1
  331. package/dist/esm/QueueDeckExpanded.js +1 -1
  332. package/dist/esm/QueueDeckExpandedPaginated.js +1 -1
  333. package/dist/esm/{RelatedContent-f3eaad29.js → RelatedContent-85ad1d8e.js} +1 -1
  334. package/dist/esm/RelatedContent.js +1 -1
  335. package/dist/esm/Schema-e0d1fc48.js +1 -0
  336. package/dist/esm/Schema.js +1 -1
  337. package/dist/esm/Search.js +1 -1
  338. package/dist/esm/Segment.js +1 -1
  339. package/dist/esm/SeriesListingDeck.js +1 -1
  340. package/dist/esm/{SeriesSlider-a00cd257.js → SeriesSlider-21d0daf6.js} +1 -1
  341. package/dist/esm/{SideFooter-7cd5abc0.js → SideFooter-2f08df74.js} +1 -1
  342. package/dist/esm/SideFooter.js +1 -1
  343. package/dist/esm/{SocialSearchComponent-e74e11f8.js → SocialSearchComponent-a4fa0609.js} +1 -1
  344. package/dist/esm/{TaxonomyCard-507f5c95.js → TaxonomyCard-f7ac379f.js} +1 -1
  345. package/dist/esm/TaxonomyCard.js +1 -1
  346. package/dist/esm/{TaxonomyDescription-ee6ae52e.js → TaxonomyDescription-32abd442.js} +1 -1
  347. package/dist/esm/TaxonomyDescription.js +1 -1
  348. package/dist/esm/TemplateNormal.js +1 -1
  349. package/dist/esm/ThumbnailCard-8377176b.js +1 -0
  350. package/dist/esm/ThumbnailCard.js +1 -1
  351. package/dist/esm/{Ustream-29dc2277.js → Ustream-2e9965ac.js} +1 -1
  352. package/dist/esm/Ustream.js +1 -1
  353. package/dist/esm/{VerticalHero-ffc93a70.js → VerticalHero-5719a7c4.js} +1 -1
  354. package/dist/esm/VerticalHero.js +1 -1
  355. package/dist/esm/{VideoProgramLandingPage-179db5b2.js → VideoProgramLandingPage-9b20c066.js} +1 -1
  356. package/dist/esm/VideoProgramLandingPage.js +1 -1
  357. package/dist/esm/VideoSeriesCard.js +1 -1
  358. package/dist/esm/{VideoSeriesFilter-b6bd4c07.js → VideoSeriesFilter-2ce9ff0e.js} +1 -1
  359. package/dist/esm/VideoSeriesFilter.js +1 -1
  360. package/dist/esm/{VideoSeriesLandingPage-180a2469.js → VideoSeriesLandingPage-1f6b5f71.js} +1 -1
  361. package/dist/esm/VideoSeriesLandingPage.js +1 -1
  362. package/dist/esm/{VideoSeriesListing-62650a53.js → VideoSeriesListing-72688d44.js} +1 -1
  363. package/dist/esm/VideoSeriesListing.js +1 -1
  364. package/dist/esm/View.js +1 -1
  365. package/dist/esm/{YahooHero-ddfeb2a5.js → YahooHero-96f912cb.js} +1 -1
  366. package/dist/esm/YahooHero.js +1 -1
  367. package/dist/esm/{YoutubeGroup-1dd6f1ba.js → YoutubeGroup-fdd46eeb.js} +1 -1
  368. package/dist/esm/YoutubeGroup.js +1 -1
  369. package/dist/esm/{beam-50a5c4d8.js → beam-cf274172.js} +1 -1
  370. package/dist/esm/defineProperty-9f9de5d0.js +1 -0
  371. package/dist/esm/entities-c5c3079c.js +1 -0
  372. package/dist/esm/extends-464f0b6e.js +1 -0
  373. package/dist/esm/faundadb.js +1 -1
  374. package/dist/esm/getPrototypeOf-5b57bbdd.js +1 -0
  375. package/dist/esm/getPtceActivities.js +1 -1
  376. package/dist/esm/getRelatedArticle-418087a7.js +1 -0
  377. package/dist/esm/getRelatedArticle.js +1 -1
  378. package/dist/esm/getSerializers.js +1 -1
  379. package/dist/esm/getTargeting-6bf24d0e.js +1 -0
  380. package/dist/esm/getTargeting.js +1 -1
  381. package/dist/esm/{index-a96a4f73.js → index-58183fed.js} +1 -1
  382. package/dist/esm/index-663f3f10.js +1 -0
  383. package/dist/esm/index-bfecdbef.js +1 -0
  384. package/dist/esm/{index-24498aa0.js → index-fcd6d5f7.js} +1 -1
  385. package/dist/esm/index.js +1 -1
  386. package/dist/esm/{searchForm-8218e558.js → searchForm-3f3f5af6.js} +1 -1
  387. package/dist/esm/{segment-lib-3a19dbdd.js → segment-lib-563b26a6.js} +1 -1
  388. package/dist/esm/slicedToArray-c92cae3a.js +1 -0
  389. package/dist/esm/toConsumableArray-25e5c43c.js +1 -0
  390. package/dist/esm/typeof-a0b2b621.js +1 -0
  391. package/dist/esm/unsupportedIterableToArray-dc74e326.js +1 -0
  392. package/dist/esm/urlFor-b366f69d.js +1 -0
  393. package/dist/esm/urlFor.js +1 -1
  394. package/dist/esm/urlForFile-272819a6.js +1 -0
  395. package/package.json +1 -1
  396. package/dist/cjs/AD300x250-0bcfcd78.js +0 -1
  397. package/dist/cjs/AD300x250x600-01659df6.js +0 -1
  398. package/dist/cjs/AD728x90-c92f784d.js +0 -1
  399. package/dist/cjs/ADFloatingFooter-f0650a0e.js +0 -1
  400. package/dist/cjs/ADFooter-b3d98c5f.js +0 -1
  401. package/dist/cjs/ADGutter-8451a0e7.js +0 -1
  402. package/dist/cjs/ADInfeed-7019b746.js +0 -1
  403. package/dist/cjs/ADSkyscraper-2db48edc.js +0 -1
  404. package/dist/cjs/ADSponsoredResources-126ab84c.js +0 -1
  405. package/dist/cjs/ADWebcast-26543865.js +0 -1
  406. package/dist/cjs/ADWelcome-6261c769.js +0 -1
  407. package/dist/cjs/ADlgInfeed-42059b30.js +0 -1
  408. package/dist/cjs/AccordionPanel-b018a969.js +0 -1
  409. package/dist/cjs/AdSlot-8a0b4211.js +0 -1
  410. package/dist/cjs/AdSlotsProvider-e06c4b39.js +0 -1
  411. package/dist/cjs/AlgoliaSearch-05bab51c.js +0 -1
  412. package/dist/cjs/AlphabeticList-94ed00ad.js +0 -1
  413. package/dist/cjs/ArticleCarousel-6599cb34.js +0 -1
  414. package/dist/cjs/ArticleProgramLandingPage-2cc43252.js +0 -1
  415. package/dist/cjs/ArticleSeriesLandingPage-4af0758a.js +0 -1
  416. package/dist/cjs/ArticleSeriesListing-476cb622.js +0 -1
  417. package/dist/cjs/AuthorComponent-dd3ac7f5.js +0 -1
  418. package/dist/cjs/Breadcrumbs-10474e7d.js +0 -1
  419. package/dist/cjs/CMEDeck-c7276c4c.js +0 -1
  420. package/dist/cjs/ContentCard-0543793a.js +0 -1
  421. package/dist/cjs/Dfp-eb398ac3.js +0 -1
  422. package/dist/cjs/DropdownButton-3f21ccbf.js +0 -6
  423. package/dist/cjs/EventsDeck-7614cec4.js +0 -1
  424. package/dist/cjs/ExternalResources-c1d4e253.js +0 -1
  425. package/dist/cjs/GridContent-6c8dd8e5.js +0 -1
  426. package/dist/cjs/GroupDeck-6920bcf7.js +0 -1
  427. package/dist/cjs/HamburgerNav-02a13006.js +0 -1
  428. package/dist/cjs/Hero-79a1f7a3.js +0 -1
  429. package/dist/cjs/ImageSlider-d1359f16.js +0 -1
  430. package/dist/cjs/IssueDeck-41ebd17b.js +0 -1
  431. package/dist/cjs/Magazine-0d15b137.js +0 -1
  432. package/dist/cjs/MasterDeck-0e168ac1.js +0 -1
  433. package/dist/cjs/Native-ee78edeb.js +0 -1
  434. package/dist/cjs/Normal-ad14a1b1.js +0 -1
  435. package/dist/cjs/PageFilter-bdffe62b.js +0 -1
  436. package/dist/cjs/PartnerDetailListing-848c514f.js +0 -1
  437. package/dist/cjs/PopUpModal-c1cbf9b6.js +0 -1
  438. package/dist/cjs/PubSection-08e834ca.js +0 -1
  439. package/dist/cjs/PubToc-6e2a3f50.js +0 -1
  440. package/dist/cjs/PublicationDeck-e242bd17.js +0 -1
  441. package/dist/cjs/PublicationLanding-d54d80d4.js +0 -1
  442. package/dist/cjs/Queue-8e0e436f.js +0 -1
  443. package/dist/cjs/QueueDeckExpanded-e420bdec.js +0 -1
  444. package/dist/cjs/Schema-8c138aa8.js +0 -1
  445. package/dist/cjs/SeriesSlider-720871f8.js +0 -1
  446. package/dist/cjs/SocialSearchComponent-dea3dbc8.js +0 -1
  447. package/dist/cjs/TaxonomyDescription-9a13ded6.js +0 -1
  448. package/dist/cjs/Ustream-b7692d0a.js +0 -1
  449. package/dist/cjs/VideoProgramLandingPage-5508836c.js +0 -1
  450. package/dist/cjs/VideoSeriesFilter-9650cf01.js +0 -1
  451. package/dist/cjs/VideoSeriesLandingPage-d1fae653.js +0 -1
  452. package/dist/cjs/VideoSeriesListing-91f5aa6d.js +0 -1
  453. package/dist/cjs/YoutubeGroup-d8a93da0.js +0 -1
  454. package/dist/cjs/beam-aaf6fbe9.js +0 -1
  455. package/dist/cjs/defineProperty-ba7cd53d.js +0 -1
  456. package/dist/cjs/entities-8feddf1d.js +0 -1
  457. package/dist/cjs/extends-5ede7877.js +0 -1
  458. package/dist/cjs/getPrototypeOf-99b1cfd8.js +0 -1
  459. package/dist/cjs/getRelatedArticle-dbed93dc.js +0 -1
  460. package/dist/cjs/getTargeting-a1ecaa0b.js +0 -1
  461. package/dist/cjs/index-14c8083b.js +0 -1
  462. package/dist/cjs/index-3291d44c.js +0 -1
  463. package/dist/cjs/index-5cca2099.js +0 -1
  464. package/dist/cjs/index-66647f61.js +0 -1
  465. package/dist/cjs/searchForm-bb5e3dbf.js +0 -1
  466. package/dist/cjs/segment-lib-7a16e514.js +0 -1
  467. package/dist/cjs/slicedToArray-c9e22c6a.js +0 -1
  468. package/dist/cjs/toConsumableArray-7afb7984.js +0 -1
  469. package/dist/cjs/typeof-a861d137.js +0 -1
  470. package/dist/cjs/unsupportedIterableToArray-294d47a8.js +0 -1
  471. package/dist/cjs/urlFor-86a2f4db.js +0 -1
  472. package/dist/cjs/urlForFile-52afb8e9.js +0 -1
  473. package/dist/esm/AD300x250x600-10e29b3d.js +0 -1
  474. package/dist/esm/ADInfeed-8ce85d87.js +0 -1
  475. package/dist/esm/ADSponsoredResources-0410407c.js +0 -1
  476. package/dist/esm/AlphabeticList-f1ca5612.js +0 -1
  477. package/dist/esm/ArticleSeriesLandingPage-67cda955.js +0 -1
  478. package/dist/esm/Column2-2d42433b.js +0 -1
  479. package/dist/esm/Dfp-c3c626b1.js +0 -1
  480. package/dist/esm/DropdownButton-c4621022.js +0 -6
  481. package/dist/esm/EventsDeck-e5aad41d.js +0 -1
  482. package/dist/esm/GridContent-d8df59ae.js +0 -1
  483. package/dist/esm/Hero-1b663f28.js +0 -1
  484. package/dist/esm/LeftNav-a3852fbe.js +0 -1
  485. package/dist/esm/MasterDeck-41c7cd70.js +0 -1
  486. package/dist/esm/Schema-c7f42de0.js +0 -1
  487. package/dist/esm/ThumbnailCard-b7a3af71.js +0 -1
  488. package/dist/esm/defineProperty-18999f8e.js +0 -1
  489. package/dist/esm/entities-8b138943.js +0 -1
  490. package/dist/esm/extends-e61fd370.js +0 -1
  491. package/dist/esm/getPrototypeOf-a8361cb6.js +0 -1
  492. package/dist/esm/getRelatedArticle-66a08458.js +0 -1
  493. package/dist/esm/getTargeting-eeb7bb6a.js +0 -1
  494. package/dist/esm/index-00bbf2b1.js +0 -1
  495. package/dist/esm/index-541d17f5.js +0 -1
  496. package/dist/esm/slicedToArray-f57adb2c.js +0 -1
  497. package/dist/esm/toConsumableArray-2f86a0c1.js +0 -1
  498. package/dist/esm/typeof-92b42de1.js +0 -1
  499. package/dist/esm/unsupportedIterableToArray-b359dd50.js +0 -1
  500. package/dist/esm/urlFor-649884fa.js +0 -1
  501. package/dist/esm/urlForFile-3b87fb01.js +0 -1
@@ -1 +1 @@
1
- import{_ as e,r as t}from"./index-00bbf2b1.js";import{_ as n}from"./extends-e61fd370.js";import{_ as r}from"./defineProperty-18999f8e.js";import{_ as a}from"./slicedToArray-f57adb2c.js";import i,{useState as o,useRef as c,useEffect as l,forwardRef as s}from"react";import m from"next/head";import{useRouter as d}from"next/router";import{_ as u}from"./toConsumableArray-2f86a0c1.js";import p from"moment";import f from"@sanity/block-content-to-react";import{isMobileOnly as h}from"react-device-detect";import g from"react-bootstrap/Form";import y from"react-bootstrap/FormControl";import b from"react-bootstrap/Button";import _ from"react-visibility-sensor";import{a as v}from"./SocialShare-9cc43665.js";import{r as x,g as w}from"./index-24498aa0.js";import{D as E}from"./AdSlot-16696371.js";import{S as A}from"./SeriesSlider-a00cd257.js";import{a as S,b as k}from"./getTargeting-eeb7bb6a.js";import{a as N}from"./getKeywords-2512775a.js";import{u as R}from"./urlFor-649884fa.js";import{u as T}from"./urlForFile-3b87fb01.js";import{_ as I}from"./typeof-92b42de1.js";import{FaMinus as D,FaPlus as C}from"react-icons/fa";import{s as P}from"./style-inject.es-1f59c1d0.js";import{DiscussionEmbed as j}from"disqus-react";import{a as G}from"./Schema-c7f42de0.js";import O from"file-saver";import{PixelTrackingArticle as M}from"./PixelTracking.js";import V from"react-infinite-scroll-component";import{DFPManager as q}from"react-dfp";import{a as F}from"./getRelatedArticle-66a08458.js";import{a as L}from"./getQuery-bfc0390c.js";import{a as U}from"./getSeriesDetail-aef9680c.js";var z=function(e){return!!(e.summary&&e.summary.length>0)&&e.summary},B=function(e){return e?!e.path||!e.path.includes("/")||e.parent&&e.parent.parent?e.path&&e.path.includes("/")&&e.parent&&e.parent.parent?e.path.includes(e.parent.identifier.current)?"/".concat(e.parent.parent.identifier.current,"/").concat(e.path):"/".concat(e.parent.parent.identifier.current,"/").concat(e.parent.identifier.current,"/").concat(e.path):(e.parent&&(t="/"+e.parent.identifier.current,e.parent.parent&&e.parent.parent.name&&(t="/"+e.parent.parent.identifier.current+t)),t=void 0!==t?t+"/"+e.path:"/"+e.path):"/"+e.path:null;var t},H=function(e){var t=e.article,n=e.client,r=null,a=!1;if(t.documentGroup&&!0===t.documentGroup.hideThumbnail&&(a=!0),t.documentGroup&&!1!==t.documentGroup.isShow&&!0!==t.documentGroup.isSeries&&(r=t.documentGroup),!t.documentGroup&&t.documentGroupMapping)for(var o=0;o<t.documentGroupMapping.length;o++)if(!1!==t.documentGroupMapping[o].isShow&&!0!==t.documentGroupMapping[o].isSeries){r=t.documentGroupMapping[o];break}if(!r)return null;var c=function(e){var t;return e?(e.parent&&(t=e.parent.name,e.parent.parent&&e.parent.parent.name&&(t=e.parent.parent.name+" | "+t)),(t=void 0!==t?t+" | <b>"+e.name+"</b>":"<b>"+e.name+"</b>")&&void 0!==t?t:null):null}(r),l=B(r),s=!1;return r.thumbnail&&(s=R({client:n,source:r.thumbnail})),i.createElement("a",{href:l,className:"doc-group",style:{display:"flex",flexDirection:"column",padding:"0 1rem",justifyContent:s?"center":"flex-start",alignItems:"center"}},s&&!a&&i.createElement("img",{style:{maxWidth:"220px",maxHeight:"100px",marginTop:"1rem"},src:s,alt:c}),(a||!s)&&i.createElement("p",{style:{maxWidth:"315px",margin:"0",color:"var(--primary)",textAlign:s?"center":h?"left":"right",marginTop:".25rem"},dangerouslySetInnerHTML:{__html:c}}),h&&!s&&i.createElement("style",{jsx:"true"},"\n a.doc-group {\n display: block !important;\n padding: 0 !important;\n }\n "))};function W(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var J=function(e){var t=[];if("object"===I(e)){var n,r=W(e);try{for(r.s();!(n=r.n()).done;){var a=n.value;("block"===a._type&&a.children.some((function(e){return e.text.trim().length>0}))&&"bullet"!==a.listItem&&"number"!==a.listItem&&"normal"===a.style||"figure"===a._type)&&t.push(e.indexOf(a))}}catch(e){r.e(e)}finally{r.f()}}return t},Q=function(e){var t=e.children,n=o(!1),r=a(n,2),s=r[0],m=r[1],d=o(!1),u=a(d,2),p=u[0],f=u[1],h=c();l((function(){if(s){var e="5rem",t=document.getElementsByTagName("header");t&&t.length>0&&(e="".concat(t[0].offsetHeight,"px")),h.current.style.maxHeight="calc(100% - ".concat(e,")"),h.current.style.overflowY="scroll"}else h.current.style.maxHeight="",h.current.style.overflowY=""}),[s]),l((function(){var e=function(){var e=document.getElementById("article__block"),t=document.getElementById("isi"),n=e.getBoundingClientRect().bottom-window.innerHeight;n<30&&!t.classList.contains("in-view")&&f(!0),n>60&&t.classList.contains("in-view")&&f(!1)};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}}),[]),l((function(){var e=document.getElementById("isi");p&&(g(!0),e.classList.add("in-view"),s&&m(!1)),p||(g(!1),e.classList.remove("in-view"))}),[p]);var g=function(e){var t=document.getElementById("isiToggle"),n=document.getElementById("isiContent"),r=document.getElementById("isi");e?(r.style.bottom="-200px",setTimeout((function(){r.style.maxHeight="unset",r.style.position="relative",r.style.boxShadow="none",r.style.zIndex="1",r.style.marginTop="-25rem",r.style.marginBottom="15rem",t.style.display="none",n.style.padding="0"}),300)):e||(r.style.marginBottom="0",r.style.maxHeight="12rem",r.style.position="fixed",r.style.boxShadow="0 0 1rem 0 rgba(0, 0, 0, 0.5)",r.style.zIndex="99999",t.style.display="block",n.style.padding="1rem",setTimeout((function(){r.style.bottom="0",r.style.marginTop="0"}),300))};return i.createElement(i.Fragment,null,i.createElement("div",{id:"isi",ref:h},i.createElement("div",{id:"isiContent"},i.createElement("div",{onClick:function(){return m((function(e){return!e}))},id:"isiToggle"},s?i.createElement("p",null,"Close ",i.createElement(D,null)):i.createElement("p",null,"See More ",i.createElement(C,null))),t)),i.createElement("style",{jsx:!0},"\n #isi {\n position: fixed;\n z-index: 9999999;\n bottom: 0;\n left: 0;\n max-height: 12rem;\n background-color: #ffffff;\n overflow-x: hidden;\n overflow-y: hidden;\n width: 100%;\n box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.5);\n transition: bottom .5s ease , margin-top .3s, max-height .2s;\n }\n #isiContent {\n width: 100%;\n max-width: 1000px;\n margin-left: auto;\n margin-right: auto;\n position: relative;\n padding: 1rem;\n font-size: 1rem;\n }\n #isi::-webkit-scrollbar {\n display: none;\n }\n #isiToggle {\n position: absolute;\n top: 0;\n right: 0;\n padding: 1rem;\n font-weight: bold;\n cursor: pointer;\n font-size: 1rem;\n }\n #isiToggle p {\n margin: 0;\n }\n "))},K={mediaContainer:"RelatedArticles-module_mediaContainer__10h9k",mediaCard:"RelatedArticles-module_mediaCard__3wQbn",cardTitle:"RelatedArticles-module_cardTitle__3P-Ib",authorListing:"RelatedArticles-module_authorListing__1EFg4","text-muted":"RelatedArticles-module_text-muted__3b0zX",cardDate:"RelatedArticles-module_cardDate__1wOR5",imgWrapper:"RelatedArticles-module_imgWrapper__5Jx_4"};P(".RelatedArticles-module_mediaContainer__10h9k {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n margin: 0 -1rem;\n}\n.RelatedArticles-module_mediaCard__3wQbn {\n margin: 0 1rem 1rem;\n width: calc(33% - 1rem);\n display: column;\n flex-direction: row;\n margin-bottom: 0.75rem;\n padding-bottom: 0.75rem;\n border-bottom: none;\n}\n.RelatedArticles-module_mediaCard__3wQbn:last-child {\n border-bottom: none;\n}\n.RelatedArticles-module_cardTitle__3P-Ib {\n font-weight: bold;\n color: #252525;\n margin-bottom: 0.25rem;\n font-size: 15px;\n}\n.RelatedArticles-module_authorListing__1EFg4 span.RelatedArticles-module_text-muted__3b0zX {\n color: #000;\n font-weight: bold;\n}\n.RelatedArticles-module_cardDate__1wOR5 {\n color: var(--dark);\n display: block;\n background: #fff !important;\n margin-bottom: 0;\n}\n.RelatedArticles-module_imgWrapper__5Jx_4 {\n display: block;\n text-align: center;\n margin-bottom: 0.5rem;\n}\n.RelatedArticles-module_imgWrapper__5Jx_4 img {\n height: 135px;\n width: 100%;\n object-fit: cover;\n object-position: center;\n}\n@media screen and (max-width: 1064px) {\n}\n@media screen and (max-width: 968px) {\n .RelatedArticles-module_mediaContainer__10h9k {\n flex-wrap: wrap;\n }\n .RelatedArticles-module_imgWrapper__5Jx_4 {\n display: none;\n }\n .RelatedArticles-module_mediaCard__3wQbn {\n width: 100%;\n margin-bottom: 0.5rem;\n padding: 0;\n }\n .RelatedArticles-module_cardTitle__3P-Ib {\n font-size: 0.75rem;\n margin-bottom: 0;\n }\n}\n");var X=function(e){var t=e.articles,n=e.client,r=e.fallbackImage,a=e.showRelatedArticleFallbackImage,o=void 0===a||a;return t&&0!=t.length&&t[0]?i.createElement("div",{className:K.mediaContainer},t.map((function(e,t){if(e&&e.url&&e.url.current)return i.createElement("div",{id:"related-card",key:t,className:K.mediaCard},i.createElement("a",{className:K.imgWrapper,href:"/view/".concat(e.url?e.url.current:"")},e.thumbnail?i.createElement("img",{style:{objectFit:"cover",objectPosition:"center"},src:e.thumbnail&&R({client:n,source:e.thumbnail.asset,imageWidth:250}),alt:e.title}):i.createElement(i.Fragment,null,r&&o&&i.createElement("img",{src:r,alt:"website logo",style:{objectFit:"contain"}}))),i.createElement("div",{className:K.mediaBody},i.createElement("a",{href:"/view/".concat(e.url?e.url.current:"")},i.createElement("div",{className:K.cardTitle},e.title))))}))):null},Z=function(e){var t=!0;return!0===e.showSocialShare?t:!1===e.showSocialShare?t=!1:(e.content_placement&&e.content_placement.length>0&&e.content_placement.forEach((function(e){!1===e.showSocialShare&&(t=!1)})),e.authorDetails&&e.authorDetails.length>0&&e.authorDetails.forEach((function(e){!1===e.showSocialShare&&(t=!1)})),e.documentGroup&&e.documentGroup.length>0&&e.documentGroup.forEach((function(e){!1===e.showSocialShare&&(t=!1)})),e.documentGroupMapping&&e.documentGroupMapping.length>0&&e.documentGroupMapping.forEach((function(e){!1===e.showSocialShare&&(t=!1)})),t)},$="RecommendedArticles-module_recommendTitle__2kUji",ee="RecommendedArticles-module_recommendContainer__sZukI",te="RecommendedArticles-module_recommendTop__1_yqw",ne="RecommendedArticles-module_recommendTopImg__1b9gu",re="RecommendedArticles-module_recommendTopBody__-13FI",ae="RecommendedArticles-module_topTitle__2EafN",ie="RecommendedArticles-module_topBody__2_VNi",oe="RecommendedArticles-module_topLink__2RnXu",ce="RecommendedArticles-module_smContainer__4byBO",le="RecommendedArticles-module_smImage__TYZGY",se="RecommendedArticles-module_title__3q1ud",me="RecommendedArticles-module_category__2jRto";P(".RecommendedArticles-module_recommendTitle__2kUji {\n border-bottom: 2px solid var(--secondary-blue);\n font-size: 1.5rem;\n font-weight: bold;\n color: #0d335a;\n padding: 0.5rem;\n}\n.RecommendedArticles-module_recommendContainer__sZukI {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n margin: 0 -0.5rem;\n}\n.RecommendedArticles-module_recommendTop__1_yqw {\n margin: 0.5rem;\n width: 100%;\n flex-basis: 100%;\n display: flex;\n\n}\n.RecommendedArticles-module_recommendTopImg__1b9gu {\n min-width: 55%;\n width: 55%;\n height: 100%;\n}\n.RecommendedArticles-module_recommendTopImg__1b9gu img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n.RecommendedArticles-module_recommendTopBody__-13FI {\n margin-left: 1rem;\n line-height: 1.3;\n color: #121212;\n display: flex;\n flex-direction: column;\n}\n.RecommendedArticles-module_topTitle__2EafN {\n font-size: 25px;\n font-weight: bold;\n margin-bottom: 0.5rem;\n}\n.RecommendedArticles-module_topBody__2_VNi {\n font-size: 19px;\n margin-bottom: 0.5rem;\n}\n.RecommendedArticles-module_topLink__2RnXu {\n font-size: 19px;\n color: rgb(43, 43, 151);\n text-decoration: underline;\n margin-top: auto;\n}\n.RecommendedArticles-module_smContainer__4byBO {\n width: calc(25% - 1rem);\n margin: 0 0.5rem;\n}\n.RecommendedArticles-module_smImage__TYZGY img {\n width: 100%;\n}\n.RecommendedArticles-module_title__3q1ud {\n margin-top: 1rem;\n line-height: 1.2;\n color: #121212;\n}\n.RecommendedArticles-module_category__2jRto {\n text-transform: uppercase;\n font-size: 16px;\n letter-spacing: 2px;\n margin: 0.25rem 0;\n}\n\n/* media query */\n\n@media screen and (max-width: 1399px) {\n .RecommendedArticles-module_topTitle__2EafN {\n font-size: 21px;\n }\n .RecommendedArticles-module_topBody__2_VNi {\n font-size: 15px;\n }\n}\n@media screen and (max-width: 1191px) {\n .RecommendedArticles-module_topTitle__2EafN {\n font-size: 23px;\n }\n .RecommendedArticles-module_topBody__2_VNi,\n .RecommendedArticles-module_topLink__2RnXu {\n font-size: 17px;\n }\n}\n@media screen and (max-width: 968px) {\n .RecommendedArticles-module_topTitle__2EafN {\n font-size: 18px;\n }\n .RecommendedArticles-module_topBody__2_VNi,\n .RecommendedArticles-module_topLink__2RnXu {\n font-size: 15px;\n }\n}\n@media screen and (max-width: 768px) {\n .RecommendedArticles-module_recommendTop__1_yqw {\n flex-direction: column;\n }\n .RecommendedArticles-module_recommendTopImg__1b9gu,\n .RecommendedArticles-module_recommendTopBody__-13FI {\n width: 100%;\n margin: 0;\n }\n .RecommendedArticles-module_recommendTopBody__-13FI {\n margin-bottom: 1rem;\n }\n .RecommendedArticles-module_smContainer__4byBO {\n width: calc(50% - 1rem);\n }\n}");var de=function(e){var t=e.article,n=e.cpModificationRequired,r=t.content_placement,a=t.documentGroupMapping,o=t.issueGroup;if(r&&r.length>0||a&&a.length>0){var c=[];if(a&&a.length>0&&a.forEach((function(e){if(!1===e.isShow||e.excludeRelatedContents)return null;e.parent&&(c=[].concat(u(c),[{label:e.name,href:n?B(e):e.parent.identifier&&e.parent.identifier.current&&!e.path.includes("/")?"/".concat(e.parent.identifier.current,"/").concat(e.path):"/".concat(e.path)}]))})),r&&r.length>0&&r.filter((function(e){return"news"!==e.path})).forEach((function(e){if(e.excludeRelatedContents)return null;var t=n?S(e):e.path,r="/".concat(t);c=[].concat(u(c),[{label:e.name,href:r}])})),o&&o.name&&o.identifier&&o.identifier.current&&o.parent&&o.parent.identifier&&o.parent.identifier.current){var l=e.Settings.issueMapping,s=void 0===l?"/publications":l;c=[].concat(u(c),[{label:o.name,href:"".concat(s,"/").concat(o.parent.identifier.current,"/").concat(o.identifier.current)}])}return c&&c.length>0?i.createElement("div",null,c.map((function(e,t){if(e&&e.href&&e.label)return i.createElement("span",{key:e.label,className:"related-link"},i.createElement("a",{className:"related-links",style:{color:"blue"},href:e.href},e.label),i.createElement("style",{jsx:"true"},"\n .related-link:not(:first-child):before {\n content: ' | ';\n }\n "))}))):null}return null},ue=function(n){var r=n.article,s=n.client,m=n.index,d=void 0===m?0:m,u=n.cpModificationRequired,p=n.emailList,f=n.articleRecsQuery,h=o(!1),g=a(h,2),y=g[0],b=g[1],_=o([]),v=a(_,2),x=v[0],w=v[1],E=o("loading"),A=a(E,2),S=A[0],k=A[1],N=5*d,T=c(!1),I={videos:"video",articles:"article",podcasts:"podcast"},D=r.content_placement.filter((function(e){return!0===e.usedForRecommendations})).map((function(e){return e.name})).sort();return l((function(){try{if(!y)return;D.length>0&&analytics.track("Article Category Viewed",{"categories.$":JSON.stringify(D)});var n=function(){var n=e(t.mark((function e(){var n,i,o,c,l,m,d,u,h,g,y,b,_,v,x,E,A,S,R,I,D,C;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=analytics.user().anonymousId(),!(i=analytics.user().traits())||!i.email){e.next=11;break}o=0;case 4:if(!(o<p.length)){e.next=11;break}if(i.email!==p[o].email){e.next=8;break}return T.current=!0,e.abrupt("break",11);case 8:o++,e.next=4;break;case 11:return e.next=13,fetch("/api/getSegmentProfile",{method:"POST",body:JSON.stringify({anonymousId:n})});case 13:return c=e.sent,e.next=16,c.json();case 16:if(l=e.sent,!(T.current||l&&l.traits)){e.next=54;break}return m=function(e){if(!e)return"";var t=" && ( ";return e.forEach((function(e,n){t+=0===n?"name == '".concat(e,"'"):" || name == '".concat(e,"'")})),t+=" )"},d=l.traits.most_frequent_article_category?JSON.parse(l.traits.most_frequent_article_category):null,e.next=22,s.fetch("*[_type == 'contentCategory' && name == 'Articles'][0]{_id}");case 22:return u=e.sent,e.next=25,s.fetch("*[_type == 'contentCategory' && name == 'Videos'][0]{_id}");case 25:return h=e.sent,e.next=28,s.fetch("*[_type == 'contentCategory' && name == 'Podcasts'][0]{_id}");case 28:return g=e.sent,e.next=31,s.fetch("*[_type == 'taxonomy' ".concat(m(d),"]"));case 31:return y=e.sent,b="",y.forEach((function(e,t){b+=0===t?" && ( references('".concat(e._id,"')"):" || references('".concat(e._id,"')")})),b+=" )",_="*[_type == 'article'\n && !(_id in path(\"drafts.**\"))\n && defined(title)\n && defined(url)\n && is_visible == true \n && passwordLock != true\n && references('".concat(u._id,"')\n ").concat(b,"\n && defined(published)\n && _id != $id\n && dateTime(published) <= dateTime(now())] | order(published desc) [").concat(N,"...").concat(N+5,"] {\n ...,\n title,\n thumbnail,\n url,\n contentCategory->,\n published,\n }"),v="*[_type == 'article'\n && !(_id in path(\"drafts.**\"))\n && defined(title)\n && defined(url)\n && is_visible == true \n && passwordLock != true\n && references('".concat(h._id,"')\n ").concat(b,"\n && defined(published)\n && _id != $id\n && dateTime(published) <= dateTime(now())] | order(published desc) [").concat(N,"...").concat(N+1,"] {\n ...,\n title,\n thumbnail,\n url,\n contentCategory->,\n published,\n }"),x="*[_type == 'article'\n && !(_id in path(\"drafts.**\"))\n && defined(title)\n && defined(url)\n && is_visible == true \n && passwordLock != true\n && references('".concat(g._id,"')\n ").concat(b,"\n && defined(published)\n && _id != $id\n && dateTime(published) <= dateTime(now())] | order(published desc) [").concat(N,"...").concat(N+2,"] {\n ...,\n title,\n thumbnail,\n url,\n contentCategory->,\n published,\n }"),E={id:r._id},e.next=41,Promise.all([s.fetch(_,E),s.fetch(v,E),s.fetch(x,E),s.fetch(f)]);case 41:if(A=e.sent,S=a(A,4),R=S[0],I=S[1],D=S[2],C=S[3],0===R.length&&k("failed"),!T.current||!C){e.next=51;break}return w(C),e.abrupt("return");case 51:R&&!T.current&&(I[0]&&R[2]&&(R[2]=I[0]),I[1]&&R[4]&&(R[4]=I[1]),D[0]&&R[3]&&(R[3]=D[0]),w(R)),e.next=55;break;case 54:k("failed");case 55:case"end":return e.stop()}}),e)})));return function(){return n.apply(this,arguments)}}();n()}catch(e){console.log(e),k("failed")}}),[y]),l((function(){x&&x.length>0&&k("loaded")}),[x]),l((function(){try{analytics.ready((function(){b((function(){return"loaded"}))}))}catch(e){console.log(e),k("failed")}}),[]),i.createElement("div",{id:"recommended",style:{minHeight:"150px"}},"loaded"===S&&i.createElement(i.Fragment,null,i.createElement("h4",{className:$},"Recommended For You"),i.createElement("div",{className:ee,id:"recommendedContent"},x.map((function(e,t){return 0===t?i.createElement("div",{key:e._id+"-".concat(t),className:te},i.createElement("div",{className:ne},i.createElement("a",{href:"/view/".concat(e.url.current,"?utm_source=website&utm_medium=dynamic_content&utm_campaign=in_feed_unit")},i.createElement("img",{src:R({source:e.thumbnail,client:s,imageHeight:306,imageWidth:544})}))),i.createElement("div",{className:re},i.createElement("div",{className:ae},e.title),i.createElement("p",{className:ie},e.summary),i.createElement("a",{href:"/view/".concat(e.url.current,"?utm_source=website&utm_medium=dynamic_content&utm_campaign=in_feed_unit"),className:oe},">> ","Read Article"))):i.createElement("div",{key:e._id+"-".concat(t),className:ce},i.createElement("div",{className:me},I&&I[e.contentCategory.name]&&I[e.contentCategory.name.toLowerCase()]?I[e.contentCategory.name.toLowerCase()]:e.contentCategory.name),i.createElement("a",{href:"/view/".concat(e.url.current,"?utm_source=website&utm_medium=dynamic_content&utm_campaign=in_feed_unit")},i.createElement("div",{className:le},i.createElement("img",{src:R({source:e.thumbnail,client:s,imageHeight:270,imageWidth:480})})),i.createElement("div",{className:se},e.title)))})))),"failed"===S&&i.createElement("section",{id:"related-content-section",className:"my-1"},(r.relatedArticle||de({article:r}))&&i.createElement("p",{className:"mb-0"},i.createElement("b",null,"Related Content:")),i.createElement(de,{article:r,cpModificationRequired:u,Settings:n.Settings}),i.createElement("div",{className:"pt-2"},i.createElement(X,{articles:r.relatedArticle,client:s,fallbackImage:n.Settings.logo,showRelatedArticleFallbackImage:n.showRelatedArticleFallbackImage}))))},pe=function(e){for(var t=0;t<e.length;t++)if(e[t].isSeries)return e[t];return!1};function fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function he(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ge=i.memo(s((function(r,c){var s=r.article,d=r.Ads,I=r.showRelatedArticles,D=r.hideFBShare,C=void 0!==D&&D,P=r.hidePinterestShare,V=void 0!==P&&P,q=r.onChangeArticle,F=r.showSocialShare,L=void 0===F||F,U=r.client,W=r.pageview,Y=r.videoAccountIDs,K=r.drupalLeadSettings,$=r.currentPage,ee=r.showAuthorDetails,te=void 0!==ee&&ee,ne=r.audioAutoplay,re=r.article,ae=re.title,ie=re.passwordLock,oe=void 0!==ie&&ie,ce=re.authorDetails,le=re.pageNumber,se=re.published,me=re.showPublished,de=void 0===me||me,fe=re.body,ge=re.thumbnail,ye=re.content_placement,be=re.url,_e=(be=void 0===be?{current:""}:be).current,ve=re.issue,xe=re.source,we=re.documentGroupMapping,Ee=re.issueGroup,Ae=re.showIsi,Se=re.isi,ke=re.display_summary,Ne=void 0===ke||ke,Re=r.regionalPages,Te=r.nationalPage,Ie=r.ISIContent,De=r.shareOptions,Ce=r.cpModificationRequired,Pe=r.authorPrefix,je=r.lgContextAd,Ge=void 0!==je&&je,Oe=r.queueData,Me=r.sponsoredFlag,Ve=void 0!==Me&&Me,qe=r.authorImgHeight,Fe=void 0===qe?270:qe,Le=r.refreshFlag,Ue=void 0!==Le&&Le,ze=r.disqusConfig,Be=r.showDisqus,He=r.downloadCitation,We=void 0!==He&&He,Ye=r.useSegmentRecommendedArticles,Je=void 0!==Ye&&Ye,Qe=r.showIssueNameOnly,Ke=r.showPageNumber,Xe=r.emailList,Ze=r.articleRecs,$e=r.sliderData,et=!1,tt="*[_type == 'article' && url.current in ";s&&s.documentGroup&&!0===s.documentGroup.disableEpisodeNumber&&(et=!0);var nt,rt=!et,at=k(r);(s&&s.documentGroup&&!0===s.documentGroup.hideSeriesSlider&&($e=null),Ze&&Ze.forEach((function(e,t){tt=0===t?tt.concat("['".concat(e,"', ")):t===Ze.length-1?tt.concat("'".concat(e,"']]")):tt.concat("'".concat(e,"', "))})),$e)&&($e.forEach((function(e,t){e.url.current===r.article.url.current&&(nt=t+1)})),nt&&$e[nt]&&(s.nextVideo=$e[nt].url.current));L&&(L=Z(r.article)),Ve&&(s.contextualVideoAD=!1,s.contextualAD=!1,I=!1),s.disableRelatedContent&&(I=!1),!Ve&&d.getVideoContextualAD&&(s.contextualVideoAD=d.getVideoContextualAD(k(r,"in-context_video"))),!Ve&&d.getNativeContextualAD&&(s.contextualAD=d.getNativeContextualAD(k(r,"native-ad")));var it=o(null),ot=a(it,2),ct=ot[0],lt=ot[1],st=o(!1),mt=a(st,2),dt=mt[0],ut=mt[1],pt=z(r.article),ft=o(1),ht=a(ft,2),gt=ht[0],yt=ht[1],bt=o(""),_t=a(bt,2),vt=_t[0],xt=_t[1],wt=o(fe),Et=a(wt,2),At=Et[0],St=Et[1],kt=o(0),Nt=a(kt,2),Rt=Nt[0],Tt=Nt[1],It=o(0===r.index),Dt=a(It,2),Ct=Dt[0],Pt=Dt[1];l((function(){Tt(window.innerHeight)}),[]);var jt=function(e){var t=e.url.current;return!(!Re&&!Te)&&(Re.includes(t)||Te===t)},Gt=function(){return s.abstract&&s.abstract.map((function(e){if(e.children)return e.children.map((function(e){if("span"===e._type)return e.text}))})).join(" ")},Ot=function(){var e=function(){var e="TY - JOUR\n";return ve&&(s.title&&(e+="TI - ".concat(s.title,"\n"),e+="T1 - ".concat(s.title,"\n")),ce&&ce.length&&ce.map((function(t,n){return e+="AU - ".concat(t.firstName&&t.lastName?"".concat(t.lastName,", ").concat(t.firstName):"".concat(t.displayName),"\n")})),ve.publication&&ve.publication.name&&(e+="T2 - ".concat(ve.publication.name,"\n"),e+="JF - ".concat(ve.publication.name,"\n")),ve.name&&(e+="T3 - ".concat(ve.name,"\n")),ve.abbreviatedJournal&&(e+="JO - ".concat(ve.abbreviatedJournal,"\n")),s.abstract&&(e+="AB - ".concat(Gt(),"\n")),s.abstract&&(e+="N2 - ".concat(Gt(),"\n")),ve.issueNumber&&(e+="IS - ".concat(ve.issueNumber,"\n")),e+="PB - MJH Life Sciences\n",ve.year&&(e+="PY - ".concat(ve.year,"\n")),ve.volume&&(e+="VL - ".concat(ve.volume,"\n")),ve.url&&(e+="L1 - ".concat(ve.url,"\n")),De&&De.shareBaseUrl&&(e+="L2 - ".concat(De.shareBaseUrl+_e,"\n"),e+="UR - ".concat(De.shareBaseUrl+_e,"\n")),r.Website&&(e+="LK - https://".concat(r.Website.liveDomain,"\n")),ve.isbn_issn&&(e+="SN - ".concat(ve.isbn_issn,"\n")),le&&(le.includes("-")?(e+="SP - ".concat(le.split("-")[0],"\n"),e+="EP - ".concat(le.split("-")[1],"\n")):e+="SP - ".concat(le,"\n")),s.published&&(e+="Y1 - ".concat(p(se).format("DD-MMMM-YYYY"),"\n")),e+="Y2 - ".concat(p().format("DD-MMMM-YYYY"),"\n")),e+="ER -\n"}(),t=new File([e],"citation-".concat(_e,".ris"),{type:"application/x-research-info-systems;charset=utf-8"});O.saveAs(t,"citation-".concat(_e,".ris"))},Mt=function(){if(ye&&ye.length>0||we&&we.length>0){var e=[];if(we&&we.length>0&&we.forEach((function(t){if(!1===t.isShow||t.excludeRelatedContents)return null;t.parent&&(e=[].concat(u(e),[{label:t.name,href:Ce?B(t):t.parent.identifier&&t.parent.identifier.current&&!t.path.includes("/")?"/".concat(t.parent.identifier.current,"/").concat(t.path):"/".concat(t.path)}]))})),ye&&ye.length>0&&ye.filter((function(e){return"news"!==e.path})).forEach((function(t){if(t.excludeRelatedContents)return null;var n=Ce?S(t):t.path,r="/".concat(n);e=[].concat(u(e),[{label:t.name,href:r}])})),Ee&&Ee.name&&Ee.identifier&&Ee.identifier.current&&Ee.parent&&Ee.parent.identifier&&Ee.parent.identifier.current){var t=r.Settings.issueMapping,n=void 0===t?"/publications":t;e=[].concat(u(e),[{label:Ee.name,href:"".concat(n,"/").concat(Ee.parent.identifier.current,"/").concat(Ee.identifier.current)}])}return e&&e.length>0?i.createElement("div",null,e.map((function(e,t){if(e&&e.href&&e.label)return i.createElement("span",{key:t,className:"related-link"},i.createElement("a",{className:"related-links",style:{color:"blue"},href:e.href},e.label),i.createElement("style",{jsx:"true"},"\n .related-link:not(:first-child):before {\n content: ' | ';\n }\n "))}))):null}return null},Vt=i.memo((function(){return i.createElement("div",null,Je?i.createElement(ue,{client:U,article:s,index:r.index,Settings:r.Settings,showRelatedArticleFallbackImage:r.showRelatedArticleFallbackImage,cpModificationRequired:Ce,emailList:Xe,articleRecsQuery:tt}):i.createElement("section",{id:"related-content-section",className:"my-1"},(s.relatedArticle||Mt())&&i.createElement("p",{className:"mb-0"},i.createElement("b",null,"Related Content:")),i.createElement(Mt,null),i.createElement("div",{className:"pt-2"},i.createElement(X,{articles:s.relatedArticle,client:U,fallbackImage:r.Settings.logo,showRelatedArticleFallbackImage:r.showRelatedArticleFallbackImage}))))}));function qt(e,t){return Ft.apply(this,arguments)}function Ft(){return(Ft=e(t.mark((function e(n,a){var i,o;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/polls/vote",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({articleId:r.article._id,nodeKey:n,selectedChoice:a,body:At})});case 2:if(!(i=e.sent).ok){e.next=11;break}return e.next=6,i.json();case 6:o=e.sent,St(o.body),console.log("Voted successfully"),e.next=12;break;case 11:console.log("Unable to vote!");case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Lt=function(e,t,a){var o=e.body,c=J(o),l=Ut(s),m=!1;if((s.documentGroup&&s.documentGroup.isSeries||!s.documentGroup&&s.documentGroupMapping&&pe(s.documentGroupMapping))&&(m=!0),c.length>=2&&o.length>3&&e.contextualAD&&e.contextualVideoAD){e=he(he({},e),{},{contextualAD:he(he({},e.contextualAD),{},{slotId:"".concat(e.contextualAD.slotId||"contextual_ad","-").concat(e._id)}),contextualVideoAD:he(he({},e.contextualVideoAD),{},{slotId:"".concat(e.contextualVideoAD.slotId||"in-context_video","-").concat(e._id)})});var d=c.length%2?Math.round(c.length/2):c.length/2+1;l.hasVideo&&(d=l.videoIndex);return i.createElement(i.Fragment,null,i.createElement(f,n({serializers:w(U,W,Y,qt,!0,K,$,m,ct,null,s.Ads,at,s,t,Pe,a,ne),blocks:u(At.slice(0,d)),imageOptions:{w:320,h:240,fit:"max"}},U.config())),i.createElement("span",{className:"clearfix"}),m&&$e&&l.hasVideo&&i.createElement(A,{dataset:$e,client:U,nowPlaying:s.title,displayEpisodeNumber:rt}),i.createElement("div",{id:"contextual-native-ad-".concat(e._id),className:"contextual-native-ad"},i.createElement(E,n({},e.contextualAD,{refreshFlag:Ue}))),i.createElement("style",{jsx:"true"},"\n .contextual-native-ad {\n margin-bottom: 1rem;\n }\n "),i.createElement("span",{className:"clearfix"}),i.createElement("div",{id:"contextual-video-ad-".concat(e._id),className:"contextual-video-ad"},i.createElement(E,n({},e.contextualVideoAD,{refreshFlag:Ue,checkIsAdFound:function(t){if(t)lt(!0);else{var n=document.getElementById("contextual-video-ad-".concat(e._id));n.style.height="0%",n.style.width="0%",n.style.display="none",lt(!1)}}}))),i.createElement(f,n({serializers:w(U,W,Y,qt,!0,K,$,m,null,null,s.Ads,at,s,t,Pe,a,ne),blocks:u(At.slice(d)),imageOptions:{w:320,h:240,fit:"max"}},U.config())))}if(c.length>=2&&o.length>=3&&e.contextualAD&&!e.contextualVideoAD){e=he(he({},e),{},{contextualAD:he(he({},e.contextualAD),{},{slotId:"".concat(e.contextualAD.slotId||"contextual_ad","-").concat(e._id),className:"ADFluid",targeting:k(r,"native-ad"),sizes:Ge?[[728,90],"fluid",[300,100]]:["fluid",[300,100]],sizeMapping:Ge?[{viewport:[1400,0],sizes:[[728,90],"fluid",[300,100]]},{viewport:[0,0],sizes:["fluid",[300,100]]}]:[{viewport:[0,0],sizes:["fluid",[300,100]]}]})});var p=c.length%2?Math.round(c.length/2):c.length/2+1;return l.hasVideo&&(p=l.videoIndex),i.createElement(i.Fragment,null,i.createElement(f,n({serializers:w(U,W,Y,qt,!0,K,$,m,ct,null,s.Ads,at,s,t,Pe,a,ne),blocks:u(At.slice(0,p)),imageOptions:{w:320,h:240,fit:"max"}},U.config())),ct&&i.createElement("span",{className:"clearfix"}),m&&$e&&l.hasVideo&&i.createElement(A,{dataset:$e,client:U,nowPlaying:s.title,displayEpisodeNumber:rt}),(dt||Oe&&1===Oe.length||!r.infiniteScroll)&&i.createElement(i.Fragment,null,i.createElement("div",{id:"contextual-native-ad-".concat(e._id),className:"contextual-native-ad"},i.createElement(E,n({},e.contextualAD,{refreshFlag:Ue}))),i.createElement("style",{jsx:"true"},"\n .contextual-native-ad {\n margin-bottom: 1rem;\n }\n ")),ct&&i.createElement("span",{className:"clearfix"}),i.createElement(f,n({serializers:w(U,W,Y,qt,!0,K,$,m,null,null,s.Ads,at,s,t,Pe,a,ne),blocks:u(At.slice(p)),imageOptions:{w:320,h:240,fit:"max"}},U.config())))}if(c.length>=2&&o.length>3&&e.contextualVideoAD&&!e.contextualAD){e=he(he({},e),{},{contextualVideoAD:he(he({},e.contextualVideoAD),{},{slotId:"".concat(e.contextualVideoAD.slotId||"in-context_video","-").concat(e._id)})});var h=c.length%2?Math.round(c.length/2):c.length/2+1;l.hasVideo&&(h=l.videoIndex);return i.createElement(i.Fragment,null,i.createElement(f,n({serializers:w(U,W,Y,qt,!0,K,$,m,ct,null,s.Ads,at,s,t,Pe,a,ne),blocks:u(At.slice(0,h)),imageOptions:{w:320,h:240,fit:"max"}},U.config())),i.createElement("span",{className:"clearfix"}),m&&$e&&l.hasVideo&&i.createElement(A,{dataset:$e,client:U,nowPlaying:s.title,displayEpisodeNumber:rt}),i.createElement("div",{id:"contextual-video-ad-".concat(e._id),className:"contextual-video-ad"},i.createElement(E,n({},e.contextualVideoAD,{refreshFlag:Ue,checkIsAdFound:function(t){if(t)o&&o[1]&&"figure"===o[1]._type&&lt(!0);else{var n=document.getElementById("contextual-video-ad-".concat(e._id));n.style.height="0%",n.style.width="0%",n.style.display="none",lt(!1)}}}))),i.createElement(f,n({serializers:w(U,W,Y,qt,!0,K,$,m,null,null,s.Ads,at,s,t,Pe,a,ne),blocks:u(At.slice(h)),imageOptions:{w:320,h:240,fit:"max"}},U.config())))}var g=c.length%2?Math.round(c.length/2):c.length/2+1;return l.hasVideo&&(g=l.videoIndex),i.createElement("div",null,i.createElement(f,n({serializers:w(U,W,Y,qt,!0,K,$,m,!1,null,s.Ads,at,s,t,Pe,a,ne),blocks:s.documentGroup&&s.documentGroup.isSeries?u(At.slice(0,g)):At,imageOptions:{w:320,h:240,fit:"max"}},U.config())),m&&$e&&l.hasVideo&&i.createElement(A,{dataset:$e,client:U,nowPlaying:s.title,displayEpisodeNumber:rt}),s.documentGroup&&s.documentGroup.isSeries&&i.createElement(f,n({serializers:w(U,W,Y,qt,!0,K,$,m,null,null,s.Ads,at,s,t,Pe,a,ne),blocks:u(At.slice(g)),imageOptions:{w:320,h:240,fit:"max"}},U.config())))},Ut=function(e){var t={hasVideo:!1,videoIndex:0};if(!e||!e.body)return!1;for(var n=0;n<e.body.length;n++){var r=e.body[n];"video"!=r._type&&"youtube"!=r._type&&"audio"!=r._type||(t.hasVideo=!0,t.videoIndex=n+1)}return t},zt=function(){var e=De.shareVia,t=De.shareSubject,a=De.twitterSiteName,o=De.shareImageDefault,l=De.shareBaseUrl+r.article.url.current,d=s.title,u=s.summary,g=ge&&ge.asset?R({client:r.client,source:ge.asset}):o,y=r.Website&&r.Website.title?r.Website.title:"",E=N(r.article).join(","),S={shareTitle:d,shareSiteName:r.cache.siteSettingCache.name,shareSummary:u,shareUrl:l,shareImage:g,shareVia:r.Settings.title,shareKeywords:E};r.infiniteScroll||(q=function(){return null});var k,D=function(e){if(!e||!e.body)return!1;for(var t=0;t<e.body.length;t++)if("youtubeGallery"===e.body[t]._type)return!0;return!1}(s),P=function(e,t){if(!e)return null;var n=null;return e.forEach((function(e,r){e.title===t.title&&(n=r+1)})),n}($e,r.article),O=!1,F="",z=Ut(s),B=function(e){if(!e||!e.body)return!1;for(var t=0;t<e.body.length;t++)if("formassembly"===e.body[t]._type)return!0;return!1}(s);return s.documentGroup&&s.documentGroup.isSeries&&(O=!0,F=s.documentGroup.name),!s.documentGroup&&s.documentGroupMapping&&pe(s.documentGroupMapping)&&(O=!0,F=pe(s.documentGroupMapping).name),i.createElement(i.Fragment,null,i.createElement(_,{partialVisibility:!0,offset:{bottom:20,top:Rt&&Rt},onChange:function(e){if(e&&!Ct){var t=he(he({},at),{},{category:s&&s.category?s.category.name:""});q(_e,S,t),ut((function(){return!0}))}Ct&&Pt(!1)}},i.createElement("div",{id:"article__block",style:{position:"relative"},ref:c},i.createElement(M,{article:s,infiniteScroll:r.infiniteScroll}),i.createElement("div",{className:"video-detail",style:{marginBottom:jt(r.article)||Ae&&Array.isArray(Se)&&Se.length>0?"15rem":0}},ve&&i.createElement(m,null,s.title&&i.createElement("meta",{name:"citation_title",content:s.title}),se&&i.createElement("meta",{name:"citation_date",content:p(se).format("LL")}),ve.year&&i.createElement("meta",{name:"citation_year",content:ve.year}),ve.isbn_issn&&i.createElement("meta",{name:"citation_isbn",content:ve.isbn_issn}),s.abstract&&i.createElement("meta",{name:"citation_abstract",content:Gt()}),i.createElement("meta",{name:"citation_author",content:(k="",ce&&ce.length>0&&ce.map((function(e){e.lastName&&e.firstName?k+="".concat(e.lastName,",").concat(e.firstName,";"):e.displayName&&(k+="".concat(e.displayName,";"))})),k)}),ve.pdf&&i.createElement("meta",{name:"citation_pdf_url",content:T({asset:ve.pdf})})),D&&Lt(s,S,Fe),!D&&i.createElement("div",null,O&&i.createElement("p",{style:{fontSize:"14px"}},et?"".concat(F):"".concat(F," - Episode ").concat(P)),i.createElement("h1",{className:"page-title",style:{fontSize:"1.9rem"}},ae)),i.createElement("div",{className:"mb-3 doc-group-container",style:{display:"flex",justifyContent:"space-between",alignItems:"flex-end"}},i.createElement("style",{jsx:"true"},"\n .social-ris-container {\n display: flex;\n justify-content: space-between;\n }\n @media screen and (max-width: 468px) {\n .video-detail .doc-group-container {\n flex-direction: column;\n align-items: flex-start !important;\n }\n .video-detail .doc-group {\n margin-top: 2rem;\n width: calc(100vw - 45px);\n align-items: center;\n }\n .video-detail .doc-group img,\n .doc-group p {\n max-width: calc(100vw - 45px) !important;\n }\n .social-ris-container {\n flex-direction: column;\n }\n }\n .author-details-img {\n margin-right: 10px;\n max-height: 250px;\n min-height: 150px;\n max-width: 250px;\n min-width: 150px;\n width: 100%;\n height: 100%;\n object-fit: contain;\n }\n .author-details-img-container {\n text-align: center;\n }\n .author-details-col {\n padding-left: 25px;\n }\n .left-wrap {\n width: 100%;\n }\n "),i.createElement("div",{className:"left-wrap"},!D&&!B&&de&&i.createElement("div",null,i.createElement("time",{className:"meta-date",dateTime:p(se).utc().format(p.HTML5_FMT.DATETIME_LOCAL_MS)},p(se).format("LL"))),i.createElement("div",{className:"mb-3"},!D&&ce&&ce.map((function(e,t){return i.createElement("span",{key:t},x(e.displayName,e.url,t,ce.length,Pe,e.biography&&function(e){if(e)return i.createElement(f,n({serializers:w(U,W,Y,qt,!0,K,$,!1,ct),blocks:[e]},U.config()))}(e.biography[0]),e.profileImage&&R({client:r.client,source:e.profileImage,imageHeight:Fe}),te))})),i.createElement("div",null,xe&&i.createElement("p",{style:{display:"inline-block",padding:"0 .25rem",color:"var(--franchise-primary, #484848)",borderRadius:"2px",fontWeight:"bold",border:"2px solid var(--franchise-primary, #484848)"},className:"source-label"},xe)),ve&&i.createElement("div",{className:"volume-issue"},ve.publication&&ve.publication.name&&i.createElement("span",{className:"mb-0-pub"},i.createElement("b",null,ve.publication.name),","," "),ve.name&&void 0===Qe||ve.name&&!1===Qe?i.createElement("span",{className:"mb-0"},ve.name,", "):null,ve.volume&&i.createElement("span",null,"Volume "+ve.volume,", "),ve.issueNumber&&i.createElement("span",null," Issue "+ve.issueNumber)),le&&Ke||le&&void 0===Ke?i.createElement("div",{className:"article-pageNumber"},"Pages: "+le):null),i.createElement("div",{className:"social-ris-container"},!D&&L&&i.createElement("p",null,i.createElement(v,{shareUrl:l,shareTitle:d,shareVia:e,shareSummary:u,shareSubject:t,shareImage:g,size:32,siteName:y,twitterSiteName:a,disableMeta:!0,hidePinterest:V,hideFacebook:C})),ve&&We&&(!ve.hasOwnProperty("show_download_ris_button")||!1!==ve.show_download_ris_button)&&(!ve.publication||!ve.publication.hasOwnProperty("show_download_ris_button")||!1!==ve.publication.show_download_ris_button)&&i.createElement(b,{className:"ris-download-button",onClick:function(){return Ot()}},"Download RIS"))),i.createElement("div",null,i.createElement(H,{article:r.article,client:r.client}))),!D&&pt&&Ne&&i.createElement("p",null,i.createElement("em",null,pt)),i.createElement("div",{className:"ad-box",style:{textAlign:"center"}},h&&!Ve&&r.article.Ads&&r.article.Ads.length>0&&r.article.Ads.map((function(e,t){if(0===t)return i.createElement("div",{key:t,id:"addid-".concat(t),style:{display:"flex",flex:"1 0 auto",justifyContent:"center",alignItems:"center",textAlign:"center"}},e.component)}))),i.createElement("div",{className:"block-content mt-3"},!D&&Lt(s,S),i.createElement("div",{className:"clearfix"}),i.createElement("noscript",null,i.createElement("div",{style:{display:"flex",justifyContent:"center"},className:"series-links"},r.article.seriesDetail&&r.article.seriesDetail.prevUrl&&i.createElement("a",{className:"mx-3",href:r.article.seriesDetail.prevUrl},"Previous ",r.article.seriesDetail.type),r.article.seriesDetail&&r.article.seriesDetail.nextUrl&&i.createElement("a",{className:"mx-3",href:r.article.seriesDetail.nextUrl},"Next ",r.article.seriesDetail.type))),i.createElement("div",{className:"downloads-container"},ve&&ve.pdf&&i.createElement("a",{rel:"noopener",href:T({asset:ve.pdf}),target:"_blank",title:"Download issue"},i.createElement("img",{style:{margin:"1rem",maxHeight:"40px",maxWidth:"40px"},src:"/download.png",alt:"download issue"}),"Download Issue : ",ve.name))),i.createElement("div",{className:"clearfix",style:{minHeight:"1px"}}),s.documentGroup&&s.documentGroup.isSeries&&$e&&!z.hasVideo&&i.createElement("div",null,!1,i.createElement(A,{dataset:$e,client:U,nowPlaying:s.title,displayEpisodeNumber:rt})),I&&!Ae&&i.createElement(Vt,null),ze&&Be&&i.createElement("div",{id:"disqusContainer"},i.createElement(j,{shortname:ze.shortname,config:{url:ze.url,identifier:ze.identifier,title:ze.title}}))),function(e){var t=e.url.current;return Re&&Ie&&Re.includes(t)?i.createElement(Ie,null):Te===t&&Ie?i.createElement(Ie,{national:!0}):null}(r.article))),Ae&&Array.isArray(Se)&&Se.length>0&&i.createElement(Q,null,i.createElement(f,{serializers:w(U,W,Y,qt,!0,K,$,!1,!1,null,s.Ads,at),blocks:Se})),h&&!Ve&&r.article.Ads&&r.article.Ads.length>0&&r.article.Ads.map((function(e,t){if(t>0)return i.createElement("div",{key:t,id:"addid-".concat(t)},e.component)})),i.createElement("noscript",null,r.infiniteScroll&&r.article.relatedArticle&&r.article.relatedArticle[0]&&r.article.relatedArticle[0].url&&r.article.relatedArticle[0].url.current&&i.createElement("div",{style:{textAlign:"center"}},i.createElement("a",{href:"/view/".concat(r.article.relatedArticle[0].url.current)},"Related Article ",">>>"))),r.infiniteScroll&&i.createElement("hr",{className:"article-seperater mb-5 mt-3"}),i.createElement(G,{article:r.article,Website:r.Website,client:r.client}))};return oe?2===gt?zt():i.createElement(i.Fragment,null,i.createElement(m,null,i.createElement("meta",{name:"googlebot",content:"noindex"})),i.createElement("div",{className:"mt-5",style:{display:"flex",justifyContent:"center",alignItems:"center"}},i.createElement(g,{inline:!0,onSubmit:function(e){e.preventDefault()}},i.createElement(y,{type:"text",className:"mr-sm-2",value:vt,onChange:function(e){return xt(e.target.value)},placeholder:"Password"}),i.createElement(b,{variant:"primary",onClick:function(){vt===r.article.password?yt(2):alert("Incorrect Password")}},"Submit")))):zt()})),(function(e,t){return e.article._id===t.article._id})),ye=ge,be=function(r){var c=d(),s=r.prevUrl,m=void 0===s?"/":s,p=r.Ads,f=r.maxListLength,g=void 0===f?10:f,y=r.cpModificationRequired,b=void 0!==y&&y,_=r.authorPrefix,v=void 0===_?"authors":_,x=r.showRelatedArticles,w=r.canonicalTag,E=r.disablePrevUrlCheckContentPlacement,A=void 0!==E&&E,S=o(0),N=a(S,2),R=N[0],T=N[1];l((function(){T((function(){return window.innerHeight}));var e=function(){return!(window.innerWidth==screen.width&&window.innerHeight==screen.height)&&T((function(){return window.innerHeight}))};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]);var I,D,C=o([(I=Object.assign({},r.article),D=k(r),I.Ads=p.getRightItems(D),I)]),P=a(C,2),j=P[0],G=P[1],O=o(j[0]._id),M=a(O,2),L=M[0],U=M[1];l((function(){setTimeout((function(){(window.innerHeight?document.body.offsetHeight>window.innerHeight:document.documentElement.scrollHeight>document.documentElement.offsetHeight||document.body.scrollHeight>document.body.offsetHeight)||z()}),1e3)}),[j.length]);var z=function(){var n=e(t.mark((function e(){var n,a,i,o,c;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(j&&j.length<g)){e.next=27;break}return n=j.length-1,a=null,e.prev=3,e.next=6,F(null,r.client,r.article,m,n);case 6:a=e.sent,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(3),console.error(e.t0);case 12:if(!a||!a._id){e.next=27;break}return i=j.length+1,o=i+2,e.prev=15,e.next=18,F(null,r.client,r.article,m,"".concat(i,"..").concat(o));case 18:a.relatedArticle=e.sent,e.next=24;break;case 21:e.prev=21,e.t1=e.catch(15),console.error(e.t1);case 24:c=k({article:a,cpModificationRequired:b,prevUrl:m,disablePrevUrlCheckContentPlacement:A}),a.Ads=p.getRightItems(c),G([].concat(u(j),[a]));case 27:case"end":return e.stop()}}),e,null,[[3,9],[15,21]])})));return function(){return n.apply(this,arguments)}}(),B=c&&c.asPath,H=r.cache.seoManager&&r.cache.seoManager.filter((function(e){return e.urlSeo==B})),W=H&&1==H.length&&H[0].metaDescription,Y=H&&1==H.length&&H[0].metaTitle,J=function(e,t,n){var a,i,o,c="/view/".concat(e),l=j.find((function(t){return t.url.current===e}));U((function(){return l._id})),window.history.pushState({page:e},t.shareTitle,c),W&&Y&&B==c?(a=W,i=Y,o=t,document.title=i,document.querySelector('meta[name="description"]')&&document.querySelector('meta[name="description"]').setAttribute("content",a),document.querySelector('meta[name="keywords"]').setAttribute("content",o.shareKeywords),document.querySelector('meta[property="og:url"]').setAttribute("content",o.shareUrl),document.querySelector('meta[property="og:title"]').setAttribute("content",i),document.querySelector('meta[property="og:site_name"]').setAttribute("content",o.shareVia),document.querySelector('meta[property="og:description"]').setAttribute("content",a),document.querySelector('meta[name="twitter:title"]').setAttribute("content",i),document.querySelector('meta[name="twitter:image"]').setAttribute("content",o.shareImage),document.querySelector('meta[name="twitter:site"]').setAttribute("content",o.shareVia),document.querySelector('meta[name="twitter:description"]')&&document.querySelector('meta[name="twitter:description"]').setAttribute("content",a),w&&document.querySelector('link[rel="canonical"]').setAttribute("href",o.shareUrl)):function(e){document.title=e.shareTitle,document.querySelector('meta[name="description"]')&&document.querySelector('meta[name="description"]').setAttribute("content",e.shareSummary),document.querySelector('meta[name="keywords"]').setAttribute("content",e.shareKeywords),document.querySelector('meta[property="og:url"]').setAttribute("content",e.shareUrl),document.querySelector('meta[property="og:title"]').setAttribute("content",e.shareTitle),document.querySelector('meta[property="og:site_name"]').setAttribute("content",e.shareVia),document.querySelector('meta[property="og:description"]').setAttribute("content",e.shareSummary),document.querySelector('meta[name="twitter:title"]').setAttribute("content",e.shareTitle),document.querySelector('meta[name="twitter:image"]').setAttribute("content",e.shareImage),document.querySelector('meta[name="twitter:site"]').setAttribute("content",e.shareVia),document.querySelector('meta[name="twitter:description"]')&&document.querySelector('meta[name="twitter:description"]').setAttribute("content",e.shareSummary),w&&document.querySelector('link[rel="canonical"]').setAttribute("href",e.shareUrl)}(t),r.setCustomDimensions&&r.setCustomDimensions(l,"200",m,""),r.pageview&&r.pageview(c,null,n),r.gtagSetCustomDimensions&&r.gtagSetCustomDimensions(l,"200",m,"",!0),function(e){var t=j.find((function(t){return t.url.current===e})),n=k({article:t,cpModificationRequired:b,position:r.position,prevUrl:m,disablePrevUrlCheckContentPlacement:A});if(h||q.getGoogletag().then((function(e){window.googletag&&e.pubadsReady&&(e.pubads().getSlots().forEach((function(e){var t=e.getTargeting("pos");e.clearTargeting(),Object.keys(n).forEach((function(t){e.setTargeting(t,n[t])})),e.setTargeting("pos",t)})),q.refresh())})),h){var a="";q.getGoogletag().then((function(e){window.googletag&&e.pubadsReady&&(e.pubads().getSlots().forEach((function(e){var t=e.getTargeting("pos");"top-mobile"==t&&(a=e.getSlotId().getDomId(),e.clearTargeting(),Object.keys(n).forEach((function(t){e.setTargeting(t,n[t])})),e.setTargeting("pos",t))})),q.refresh(a))}))}}(e)};return i.createElement(V,{dataLength:j.length,next:z,scrollThreshold:"40%",hasMore:!0,style:{overflow:"hidden"}},j.map((function(e,t){return i.createElement(i.Fragment,{key:t},i.createElement(ye,n({},r,{containerHeight:R,onChangeArticle:J,authorPrfix:v,article:e,cpModificationRequired:b,active:L===e._id,queueData:j,showRelatedArticles:x,index:t,showPageNumber:e.issueGroup&&e.issueGroup.parent?e.issueGroup.parent.showPageNumber:null,showIssueNameOnly:e.issueGroup&&e.issueGroup.parent?e.issueGroup.parent.showIssueNameOnly:null})))})))};function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xe=function(e){var t=d(),r=e.shareOptions,c=e.article,s=e.article,u=s.hideComments,p=s.content_placement,f=e.sponsoredFlag,h=void 0!==f&&f;e.sponsoredTaxonomies;var g=e.Ads,y=e.setCustomDimensions,b=e.gtagSetCustomDimensions,_=e.statusCode,v=e.prevUrl,x=e.pageview,w=e.showRelatedArticles,E=void 0!==w&&w,A=e.canonicalTag,S=void 0===A||A,R=e.infiniteScrollFlag,T=void 0===R||R,I=e.emailList,D=e.articleRecs,C=e.article,P=C.passwordLock,j=void 0!==P&&P;C.description;var G=C.title,O=C.seriesShareOptions,M=o(0),V=a(M,2),q=V[0],F=V[1];l((function(){if(x&&y){var n,r=ve(ve({},k(e)),{},{category:c&&c.category?c.category.name:""});return function e(){void 0!==window.GA_INITIALIZED?(y(c,_,v,""),x(t.asPath,null,r)):n=setTimeout(e,1e3)}(),function(){clearTimeout(n)}}if(b){var a;return function e(){void 0!==window.GA_INITIALIZED?b(c,_,v,"",!1):a=setTimeout(e,1e3)}(),function(){clearTimeout(a)}}}),[]);var L=!1,U=!1;c.documentGroup&&c.documentGroup.isSeries&&(U=!0),!c.documentGroup&&c.documentGroupMapping&&pe(c.documentGroupMapping)&&(U=!0);var z=function(e){if(!e||!e.body)return!1;for(var t=0;t<e.body.length;t++){if("articleSeries"===e.body[t]._type||"slideshows"===e.body[t]._type||"quiz"===e.body[t]._type)return!0;if(void 0!==e.body[t].videos)return L=!0,!0}return!1}(e.article),B=Array.isArray(p)&&p.some((function(e){return!0===e.showComments}))||!1===u,H=["Articles","Videos","Podcasts"].includes(c.category.name)&&c.taxonomyMapping&&!0!==c.passwordLock&&!z&&!c.ExcludeFromInfiniteScroll&&!h&&T&&!c.showIsi&&!U&&!B;if(["Articles","Videos","Podcasts"].includes(c.category.name)&&(G=null),H||G||(G=e.article?e.article.title:""),!H){var W=k(e);c.Ads=g.getRightItems(W),!h&&g.getVideoContextualAD&&(c.contextualVideoAD=g.getVideoContextualAD(k(e,"in-context_video"))),!h&&g.getNativeContextualAD&&(c.contextualAD=g.getNativeContextualAD(k(e,"native-ad")))}l((function(){t.asPath&&t.asPath.length>0&&t.asPath.includes("?")&&t.asPath.split("?")[1].split("&").forEach((function(e){e.includes("page=")?F(e.split("=")[1]):F(0)})),t.asPath.includes("page=")||0===q||F(0)}),[t]);var Y=O&&O.seriesSummary?"".concat(O.seriesSummary).concat(q>0?" | Page ".concat(q):""):c.seo&&c.seo.meta_description?"".concat(c.seo.meta_description).concat(q>0?" | Page ".concat(q):""):r.shareSummary?"".concat(r.shareSummary).concat(q>0?" | Page ".concat(q):""):"".concat(q>0?"Page ".concat(q):"");L&&(Y=O&&O.seriesSummary?"".concat(O.seriesSummary).concat(q>0?" | Page ".concat(q):""):"");var J=t&&t.asPath,Q=e.cache.seoManager&&e.cache.seoManager.filter((function(e){return e.urlSeo==J})),K=Q&&1==Q.length&&Q[0].metaDescription,X=Q&&1==Q.length&&Q[0].metaTitle;return i.createElement(i.Fragment,null,i.createElement(m,null,i.createElement("title",{key:"title"},X?"".concat(X).concat(q>0?" | Page ".concat(q):""):O&&O.seriesTitle?"".concat(O.seriesTitle).concat(q>0?" | Page ".concat(q):""):c&&c.seo&&c.seo.seo_title?"".concat(c.seo.seo_title).concat(q>0?" | Page ".concat(q):""):"".concat(c.title).concat(q>0?" | Page ".concat(q):"")),K?i.createElement("meta",{name:"description",key:"description",content:K}):Y&&i.createElement("meta",{name:"description",key:"description",content:Y}),i.createElement("meta",{name:"keywords",content:N(c).join(","),key:"keywords"}),j&&i.createElement("meta",{name:"robots",content:"noindex, nofollow"}),i.createElement("meta",{property:"og:url",content:O&&O.seriesUrl?r.shareUrl+O.seriesUrl:r.shareUrl,key:"og:url"}),i.createElement("meta",{property:"og:title",content:X?"".concat(X).concat(q>0?" | Page ".concat(q):""):O&&O.seriesTitle?"".concat(O.seriesTitle).concat(q>0?" | Page ".concat(q):""):c.seo&&c.seo.seo_title?"".concat(c.seo.seo_title).concat(q>0?" | Page ".concat(q):""):"".concat(r.shareTitle).concat(q>0?" | Page ".concat(q):""),key:"og:title"}),i.createElement("meta",{property:"og:image",content:O&&O.seriesThumbnail?O.seriesThumbnail:r.shareImage,key:"og:image"}),i.createElement("meta",{property:"og:site_name",content:e.Settings.title,key:"og:site_name"}),K?i.createElement("meta",{property:"og:description",key:"og:description",content:K}):Y&&i.createElement("meta",{property:"og:description",key:"og:description",content:Y}),i.createElement("meta",{name:"twitter:card",content:"summary",key:"twitter:card"}),i.createElement("meta",{name:"twitter:title",content:X?"".concat(X).concat(q>0?" | Page ".concat(q):""):O&&O.seriesTitle?"".concat(O.seriesTitle).concat(q>0?" | Page ".concat(q):""):c.seo&&c.seo.seo_title?"".concat(c.seo.seo_title).concat(q>0?" | Page ".concat(q):""):"".concat(r.shareTitle).concat(q>0?" | Page ".concat(q):""),key:"twitter:title"}),i.createElement("meta",{name:"twitter:image",content:O&&O.seriesThumbnail?O.seriesThumbnail:r.shareImage,key:"twitter:image"}),i.createElement("meta",{name:"twitter:site",content:"@".concat(e.Settings.title),key:"twitter:site"}),K?i.createElement("meta",{name:"twitter:description",key:"twitter:description",content:K}):Y&&i.createElement("meta",{name:"twitter:description",key:"twitter:description",content:Y}),S&&i.createElement("link",{rel:"canonical",href:O&&O.seriesUrl?r.shareUrl+O.seriesUrl:r.shareUrl,key:"canonical"}),i.createElement("noscript",null,e.article.seriesDetail&&e.article.seriesDetail.prevUrl&&i.createElement("link",{rel:"prev",href:e.article.seriesDetail.prevUrl}),e.article.seriesDetail&&e.article.seriesDetail.nextUrl&&i.createElement("link",{rel:"next",href:e.article.seriesDetail.nextUrl}))),H?i.createElement(be,n({infiniteScroll:!0,showRelatedArticles:E,canonicalTag:S,checkSponsered:!0,Ads:e.WAds,onVote:function(){},sponsoredTaxonomies:[]},e)):i.createElement(ye,n({infiniteScroll:!1,showRelatedArticles:E,showDisqus:B,emailList:I,articleRecs:D},e,{showIssueNameOnly:c.issueGroup&&c.issueGroup.parent?c.issueGroup.parent.showIssueNameOnly:null,showPageNumber:c.issueGroup&&c.issueGroup.parent?c.issueGroup.parent.showPageNumber:null})))};xe.returnGetInitialProps=function(){var n=e(t.mark((function e(n,r,a,i,o){var c,l,s,m,d,u,p,f,h,g,y=arguments;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=y.length>5&&void 0!==y[5]?y[5]:null,e.next=3,i.fetch(L("article"),{url:n});case 3:if(l=e.sent,console.log("article url current",n),s=L("related"),l.seriesDetail=U(l,a),m=[],d=200,l&&l._id&&l.body||(d=404),!l.documentGroup||!l.documentGroup.isSeries){e.next=17;break}return e.next=13,i.fetch('*[!(_id in path("drafts.**")) \n && _type == "article"\n && defined(title)\n && references(\''.concat(l.documentGroup._id,"')\n && is_visible == true\n && defined(published)\n && dateTime(published) <= dateTime(now())\n ] | order(published asc) {\n title,\n thumbnail,\n url,\n published\n }"));case 13:u=e.sent,m=u,e.next=22;break;case 17:if(!(l.documentGroupMapping&&l.documentGroupMapping[0]&&l.documentGroupMapping[0].isSeries)){e.next=22;break}return e.next=20,i.fetch('*[!(_id in path("drafts.**")) \n && _type == "article"\n && defined(title)\n && references(\''.concat(l.documentGroupMapping[0]._id,"')\n && is_visible == true\n && defined(published)\n && dateTime(published) <= dateTime(now())\n ] | order(published asc) {\n title,\n thumbnail,\n url,\n published\n }"));case 20:p=e.sent,m=p;case 22:if(f=c.query.seriesArticle,((h=void 0!==f&&f)||a)&&l.body&&l.body.map((function(e){"articleSeries"===e._type&&e.articles&&e.articles.length>0&&e.articles.map((function(e){if(e.param.current===h){var t={seriesUrl:"?seriesArticle=".concat(h),seriesTitle:e.title,seriesSummary:e.summary,seriesThumbnail:e.thumbnail&&e.thumbnail.asset?R({client:i,source:e.thumbnail.asset}):null};l.seriesShareOptions=t}})),"youtubeGallery"===e._type&&e.videos&&e.videos.length>0&&e.videos.map((function(e,t){if(t+1===Number(a)){var n={seriesUrl:"?seriesVid=".concat(a),seriesTitle:e.title,seriesSummary:e.intro,seriesThumbnail:e.thumbnail&&e.thumbnail.asset?R({client:i,source:e.thumbnail.asset}):null};l.seriesShareOptions=n}}))})),g=!1,l&&l.content_placement&&l.content_placement.forEach((function(e){e.disableAds&&(g=!0)})),l.category&&l.category.disableAds&&(g=!0),!l.disableRelatedContent){e.next=32;break}l.relatedArticle=null,e.next=36;break;case 32:if(!l){e.next=36;break}return e.next=35,F(c,i,l,r,"0..2");case 35:l.relatedArticle=e.sent;case 36:return e.abrupt("return",{url:n,sao:o,statusCode:d,prevUrl:r,relatedArticleQuery:s,article:l,sliderData:m,sponsoredFlag:g});case 37:case"end":return e.stop()}}),e)})));return function(e,t,r,a,i){return n.apply(this,arguments)}}();var we=Object.freeze({__proto__:null,default:xe});export{xe as V,we as i};
1
+ import{a as e,r as t}from"./index-663f3f10.js";import{_ as n}from"./extends-464f0b6e.js";import{d as r}from"./defineProperty-9f9de5d0.js";import{s as a}from"./slicedToArray-c92cae3a.js";import i,{useState as o,useRef as c,useEffect as l,forwardRef as s}from"react";import m from"next/head";import{useRouter as d}from"next/router";import{t as u}from"./toConsumableArray-25e5c43c.js";import p from"moment";import f from"@sanity/block-content-to-react";import{isMobileOnly as h}from"react-device-detect";import g from"react-bootstrap/Form";import y from"react-bootstrap/FormControl";import b from"react-bootstrap/Button";import _ from"react-visibility-sensor";import{a as v}from"./SocialShare-9cc43665.js";import{r as x,g as w}from"./index-fcd6d5f7.js";import{D as E}from"./AdSlot-7c2daad3.js";import{S as A}from"./SeriesSlider-21d0daf6.js";import{a as S,b as k}from"./getTargeting-6bf24d0e.js";import{a as N}from"./getKeywords-2512775a.js";import{u as R}from"./urlFor-b366f69d.js";import{u as T}from"./urlForFile-272819a6.js";import{_ as I}from"./typeof-a0b2b621.js";import{FaMinus as D,FaPlus as C}from"react-icons/fa";import{s as P}from"./style-inject.es-1f59c1d0.js";import{DiscussionEmbed as j}from"disqus-react";import{a as G}from"./Schema-e0d1fc48.js";import O from"file-saver";import{PixelTrackingArticle as M}from"./PixelTracking.js";import V from"react-infinite-scroll-component";import{DFPManager as q}from"react-dfp";import{a as F}from"./getRelatedArticle-418087a7.js";import{a as L}from"./getQuery-bfc0390c.js";import{a as U}from"./getSeriesDetail-aef9680c.js";var z=function(e){return!!(e.summary&&e.summary.length>0)&&e.summary},B=function(e){return e?!e.path||!e.path.includes("/")||e.parent&&e.parent.parent?e.path&&e.path.includes("/")&&e.parent&&e.parent.parent?e.path.includes(e.parent.identifier.current)?"/".concat(e.parent.parent.identifier.current,"/").concat(e.path):"/".concat(e.parent.parent.identifier.current,"/").concat(e.parent.identifier.current,"/").concat(e.path):(e.parent&&(t="/"+e.parent.identifier.current,e.parent.parent&&e.parent.parent.name&&(t="/"+e.parent.parent.identifier.current+t)),t=void 0!==t?t+"/"+e.path:"/"+e.path):"/"+e.path:null;var t},H=function(e){var t=e.article,n=e.client,r=null,a=!1;if(t.documentGroup&&!0===t.documentGroup.hideThumbnail&&(a=!0),t.documentGroup&&!1!==t.documentGroup.isShow&&!0!==t.documentGroup.isSeries&&(r=t.documentGroup),!t.documentGroup&&t.documentGroupMapping)for(var o=0;o<t.documentGroupMapping.length;o++)if(!1!==t.documentGroupMapping[o].isShow&&!0!==t.documentGroupMapping[o].isSeries){r=t.documentGroupMapping[o];break}if(!r)return null;var c=function(e){var t;return e?(e.parent&&(t=e.parent.name,e.parent.parent&&e.parent.parent.name&&(t=e.parent.parent.name+" | "+t)),(t=void 0!==t?t+" | <b>"+e.name+"</b>":"<b>"+e.name+"</b>")&&void 0!==t?t:null):null}(r),l=B(r),s=!1;return r.thumbnail&&(s=R({client:n,source:r.thumbnail})),i.createElement("a",{href:l,className:"doc-group",style:{display:"flex",flexDirection:"column",padding:"0 1rem",justifyContent:s?"center":"flex-start",alignItems:"center"}},s&&!a&&i.createElement("img",{style:{maxWidth:"220px",maxHeight:"100px",marginTop:"1rem"},src:s,alt:c}),(a||!s)&&i.createElement("p",{style:{maxWidth:"315px",margin:"0",color:"var(--primary)",textAlign:s?"center":h?"left":"right",marginTop:".25rem"},dangerouslySetInnerHTML:{__html:c}}),h&&!s&&i.createElement("style",{jsx:"true"},"\n a.doc-group {\n display: block !important;\n padding: 0 !important;\n }\n "))};function W(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw i}}}}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var J=function(e){var t=[];if("object"===I(e)){var n,r=W(e);try{for(r.s();!(n=r.n()).done;){var a=n.value;("block"===a._type&&a.children.some((function(e){return e.text.trim().length>0}))&&"bullet"!==a.listItem&&"number"!==a.listItem&&"normal"===a.style||"figure"===a._type)&&t.push(e.indexOf(a))}}catch(e){r.e(e)}finally{r.f()}}return t},Q=function(e){var t=e.children,n=o(!1),r=a(n,2),s=r[0],m=r[1],d=o(!1),u=a(d,2),p=u[0],f=u[1],h=c();l((function(){if(s){var e="5rem",t=document.getElementsByTagName("header");t&&t.length>0&&(e="".concat(t[0].offsetHeight,"px")),h.current.style.maxHeight="calc(100% - ".concat(e,")"),h.current.style.overflowY="scroll"}else h.current.style.maxHeight="",h.current.style.overflowY=""}),[s]),l((function(){var e=function(){var e=document.getElementById("article__block"),t=document.getElementById("isi"),n=e.getBoundingClientRect().bottom-window.innerHeight;n<30&&!t.classList.contains("in-view")&&f(!0),n>60&&t.classList.contains("in-view")&&f(!1)};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}}),[]),l((function(){var e=document.getElementById("isi");p&&(g(!0),e.classList.add("in-view"),s&&m(!1)),p||(g(!1),e.classList.remove("in-view"))}),[p]);var g=function(e){var t=document.getElementById("isiToggle"),n=document.getElementById("isiContent"),r=document.getElementById("isi");e?(r.style.bottom="-200px",setTimeout((function(){r.style.maxHeight="unset",r.style.position="relative",r.style.boxShadow="none",r.style.zIndex="1",r.style.marginTop="-25rem",r.style.marginBottom="15rem",t.style.display="none",n.style.padding="0"}),300)):e||(r.style.marginBottom="0",r.style.maxHeight="12rem",r.style.position="fixed",r.style.boxShadow="0 0 1rem 0 rgba(0, 0, 0, 0.5)",r.style.zIndex="99999",t.style.display="block",n.style.padding="1rem",setTimeout((function(){r.style.bottom="0",r.style.marginTop="0"}),300))};return i.createElement(i.Fragment,null,i.createElement("div",{id:"isi",ref:h},i.createElement("div",{id:"isiContent"},i.createElement("div",{onClick:function(){return m((function(e){return!e}))},id:"isiToggle"},s?i.createElement("p",null,"Close ",i.createElement(D,null)):i.createElement("p",null,"See More ",i.createElement(C,null))),t)),i.createElement("style",{jsx:!0},"\n #isi {\n position: fixed;\n z-index: 9999999;\n bottom: 0;\n left: 0;\n max-height: 12rem;\n background-color: #ffffff;\n overflow-x: hidden;\n overflow-y: hidden;\n width: 100%;\n box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.5);\n transition: bottom .5s ease , margin-top .3s, max-height .2s;\n }\n #isiContent {\n width: 100%;\n max-width: 1000px;\n margin-left: auto;\n margin-right: auto;\n position: relative;\n padding: 1rem;\n font-size: 1rem;\n }\n #isi::-webkit-scrollbar {\n display: none;\n }\n #isiToggle {\n position: absolute;\n top: 0;\n right: 0;\n padding: 1rem;\n font-weight: bold;\n cursor: pointer;\n font-size: 1rem;\n }\n #isiToggle p {\n margin: 0;\n }\n "))},K={mediaContainer:"RelatedArticles-module_mediaContainer__10h9k",mediaCard:"RelatedArticles-module_mediaCard__3wQbn",cardTitle:"RelatedArticles-module_cardTitle__3P-Ib",authorListing:"RelatedArticles-module_authorListing__1EFg4","text-muted":"RelatedArticles-module_text-muted__3b0zX",cardDate:"RelatedArticles-module_cardDate__1wOR5",imgWrapper:"RelatedArticles-module_imgWrapper__5Jx_4"};P(".RelatedArticles-module_mediaContainer__10h9k {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n margin: 0 -1rem;\n}\n.RelatedArticles-module_mediaCard__3wQbn {\n margin: 0 1rem 1rem;\n width: calc(33% - 1rem);\n display: column;\n flex-direction: row;\n margin-bottom: 0.75rem;\n padding-bottom: 0.75rem;\n border-bottom: none;\n}\n.RelatedArticles-module_mediaCard__3wQbn:last-child {\n border-bottom: none;\n}\n.RelatedArticles-module_cardTitle__3P-Ib {\n font-weight: bold;\n color: #252525;\n margin-bottom: 0.25rem;\n font-size: 15px;\n}\n.RelatedArticles-module_authorListing__1EFg4 span.RelatedArticles-module_text-muted__3b0zX {\n color: #000;\n font-weight: bold;\n}\n.RelatedArticles-module_cardDate__1wOR5 {\n color: var(--dark);\n display: block;\n background: #fff !important;\n margin-bottom: 0;\n}\n.RelatedArticles-module_imgWrapper__5Jx_4 {\n display: block;\n text-align: center;\n margin-bottom: 0.5rem;\n}\n.RelatedArticles-module_imgWrapper__5Jx_4 img {\n height: 135px;\n width: 100%;\n object-fit: cover;\n object-position: center;\n}\n@media screen and (max-width: 1064px) {\n}\n@media screen and (max-width: 968px) {\n .RelatedArticles-module_mediaContainer__10h9k {\n flex-wrap: wrap;\n }\n .RelatedArticles-module_imgWrapper__5Jx_4 {\n display: none;\n }\n .RelatedArticles-module_mediaCard__3wQbn {\n width: 100%;\n margin-bottom: 0.5rem;\n padding: 0;\n }\n .RelatedArticles-module_cardTitle__3P-Ib {\n font-size: 0.75rem;\n margin-bottom: 0;\n }\n}\n");var X=function(e){var t=e.articles,n=e.client,r=e.fallbackImage,a=e.showRelatedArticleFallbackImage,o=void 0===a||a;return t&&0!=t.length&&t[0]?i.createElement("div",{className:K.mediaContainer},t.map((function(e,t){if(e&&e.url&&e.url.current)return i.createElement("div",{id:"related-card",key:t,className:K.mediaCard},i.createElement("a",{className:K.imgWrapper,href:"/view/".concat(e.url?e.url.current:"")},e.thumbnail?i.createElement("img",{style:{objectFit:"cover",objectPosition:"center"},src:e.thumbnail&&R({client:n,source:e.thumbnail.asset,imageWidth:250}),alt:e.title}):i.createElement(i.Fragment,null,r&&o&&i.createElement("img",{src:r,alt:"website logo",style:{objectFit:"contain"}}))),i.createElement("div",{className:K.mediaBody},i.createElement("a",{href:"/view/".concat(e.url?e.url.current:"")},i.createElement("div",{className:K.cardTitle},e.title))))}))):null},Z=function(e){var t=!0;return!0===e.showSocialShare?t:!1===e.showSocialShare?t=!1:(e.content_placement&&e.content_placement.length>0&&e.content_placement.forEach((function(e){!1===e.showSocialShare&&(t=!1)})),e.authorDetails&&e.authorDetails.length>0&&e.authorDetails.forEach((function(e){!1===e.showSocialShare&&(t=!1)})),e.documentGroup&&e.documentGroup.length>0&&e.documentGroup.forEach((function(e){!1===e.showSocialShare&&(t=!1)})),e.documentGroupMapping&&e.documentGroupMapping.length>0&&e.documentGroupMapping.forEach((function(e){!1===e.showSocialShare&&(t=!1)})),t)},$="RecommendedArticles-module_recommendTitle__2kUji",ee="RecommendedArticles-module_recommendContainer__sZukI",te="RecommendedArticles-module_recommendTop__1_yqw",ne="RecommendedArticles-module_recommendTopImg__1b9gu",re="RecommendedArticles-module_recommendTopBody__-13FI",ae="RecommendedArticles-module_topTitle__2EafN",ie="RecommendedArticles-module_topBody__2_VNi",oe="RecommendedArticles-module_topLink__2RnXu",ce="RecommendedArticles-module_smContainer__4byBO",le="RecommendedArticles-module_smImage__TYZGY",se="RecommendedArticles-module_title__3q1ud",me="RecommendedArticles-module_category__2jRto";P(".RecommendedArticles-module_recommendTitle__2kUji {\n border-bottom: 2px solid var(--secondary-blue);\n font-size: 1.5rem;\n font-weight: bold;\n color: #0d335a;\n padding: 0.5rem;\n}\n.RecommendedArticles-module_recommendContainer__sZukI {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n margin: 0 -0.5rem;\n}\n.RecommendedArticles-module_recommendTop__1_yqw {\n margin: 0.5rem;\n width: 100%;\n flex-basis: 100%;\n display: flex;\n\n}\n.RecommendedArticles-module_recommendTopImg__1b9gu {\n min-width: 55%;\n width: 55%;\n height: 100%;\n}\n.RecommendedArticles-module_recommendTopImg__1b9gu img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n.RecommendedArticles-module_recommendTopBody__-13FI {\n margin-left: 1rem;\n line-height: 1.3;\n color: #121212;\n display: flex;\n flex-direction: column;\n}\n.RecommendedArticles-module_topTitle__2EafN {\n font-size: 25px;\n font-weight: bold;\n margin-bottom: 0.5rem;\n}\n.RecommendedArticles-module_topBody__2_VNi {\n font-size: 19px;\n margin-bottom: 0.5rem;\n}\n.RecommendedArticles-module_topLink__2RnXu {\n font-size: 19px;\n color: rgb(43, 43, 151);\n text-decoration: underline;\n margin-top: auto;\n}\n.RecommendedArticles-module_smContainer__4byBO {\n width: calc(25% - 1rem);\n margin: 0 0.5rem;\n}\n.RecommendedArticles-module_smImage__TYZGY img {\n width: 100%;\n}\n.RecommendedArticles-module_title__3q1ud {\n margin-top: 1rem;\n line-height: 1.2;\n color: #121212;\n}\n.RecommendedArticles-module_category__2jRto {\n text-transform: uppercase;\n font-size: 16px;\n letter-spacing: 2px;\n margin: 0.25rem 0;\n}\n\n/* media query */\n\n@media screen and (max-width: 1399px) {\n .RecommendedArticles-module_topTitle__2EafN {\n font-size: 21px;\n }\n .RecommendedArticles-module_topBody__2_VNi {\n font-size: 15px;\n }\n}\n@media screen and (max-width: 1191px) {\n .RecommendedArticles-module_topTitle__2EafN {\n font-size: 23px;\n }\n .RecommendedArticles-module_topBody__2_VNi,\n .RecommendedArticles-module_topLink__2RnXu {\n font-size: 17px;\n }\n}\n@media screen and (max-width: 968px) {\n .RecommendedArticles-module_topTitle__2EafN {\n font-size: 18px;\n }\n .RecommendedArticles-module_topBody__2_VNi,\n .RecommendedArticles-module_topLink__2RnXu {\n font-size: 15px;\n }\n}\n@media screen and (max-width: 768px) {\n .RecommendedArticles-module_recommendTop__1_yqw {\n flex-direction: column;\n }\n .RecommendedArticles-module_recommendTopImg__1b9gu,\n .RecommendedArticles-module_recommendTopBody__-13FI {\n width: 100%;\n margin: 0;\n }\n .RecommendedArticles-module_recommendTopBody__-13FI {\n margin-bottom: 1rem;\n }\n .RecommendedArticles-module_smContainer__4byBO {\n width: calc(50% - 1rem);\n }\n}");var de=function(e){var t=e.article,n=e.cpModificationRequired,r=t.content_placement,a=t.documentGroupMapping,o=t.issueGroup;if(r&&r.length>0||a&&a.length>0){var c=[];if(a&&a.length>0&&a.forEach((function(e){if(!1===e.isShow||e.excludeRelatedContents)return null;e.parent&&(c=[].concat(u(c),[{label:e.name,href:n?B(e):e.parent.identifier&&e.parent.identifier.current&&!e.path.includes("/")?"/".concat(e.parent.identifier.current,"/").concat(e.path):"/".concat(e.path)}]))})),r&&r.length>0&&r.filter((function(e){return"news"!==e.path})).forEach((function(e){if(e.excludeRelatedContents)return null;var t=n?S(e):e.path,r="/".concat(t);c=[].concat(u(c),[{label:e.name,href:r}])})),o&&o.name&&o.identifier&&o.identifier.current&&o.parent&&o.parent.identifier&&o.parent.identifier.current){var l=e.Settings.issueMapping,s=void 0===l?"/publications":l;c=[].concat(u(c),[{label:o.name,href:"".concat(s,"/").concat(o.parent.identifier.current,"/").concat(o.identifier.current)}])}return c&&c.length>0?i.createElement("div",null,c.map((function(e,t){if(e&&e.href&&e.label)return i.createElement("span",{key:e.label,className:"related-link"},i.createElement("a",{className:"related-links",style:{color:"blue"},href:e.href},e.label),i.createElement("style",{jsx:"true"},"\n .related-link:not(:first-child):before {\n content: ' | ';\n }\n "))}))):null}return null},ue=function(n){var r=n.article,s=n.client,m=n.index,d=void 0===m?0:m,u=n.cpModificationRequired,p=n.emailList,f=n.articleRecsQuery,h=o(!1),g=a(h,2),y=g[0],b=g[1],_=o([]),v=a(_,2),x=v[0],w=v[1],E=o("loading"),A=a(E,2),S=A[0],k=A[1],N=5*d,T=c(!1),I={videos:"video",articles:"article",podcasts:"podcast"},D=r.content_placement.filter((function(e){return!0===e.usedForRecommendations})).map((function(e){return e.name})).sort();return l((function(){try{if(!y)return;D.length>0&&analytics.track("Article Category Viewed",{"categories.$":JSON.stringify(D)});var n=function(){var n=e(t.mark((function e(){var n,i,o,c,l,m,d,u,h,g,y,b,_,v,x,E,A,S,R,I,D,C;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=analytics.user().anonymousId(),!(i=analytics.user().traits())||!i.email){e.next=11;break}o=0;case 4:if(!(o<p.length)){e.next=11;break}if(i.email!==p[o].email){e.next=8;break}return T.current=!0,e.abrupt("break",11);case 8:o++,e.next=4;break;case 11:return e.next=13,fetch("/api/getSegmentProfile",{method:"POST",body:JSON.stringify({anonymousId:n})});case 13:return c=e.sent,e.next=16,c.json();case 16:if(l=e.sent,!(T.current||l&&l.traits)){e.next=54;break}return m=function(e){if(!e)return"";var t=" && ( ";return e.forEach((function(e,n){t+=0===n?"name == '".concat(e,"'"):" || name == '".concat(e,"'")})),t+=" )"},d=l.traits.most_frequent_article_category?JSON.parse(l.traits.most_frequent_article_category):null,e.next=22,s.fetch("*[_type == 'contentCategory' && name == 'Articles'][0]{_id}");case 22:return u=e.sent,e.next=25,s.fetch("*[_type == 'contentCategory' && name == 'Videos'][0]{_id}");case 25:return h=e.sent,e.next=28,s.fetch("*[_type == 'contentCategory' && name == 'Podcasts'][0]{_id}");case 28:return g=e.sent,e.next=31,s.fetch("*[_type == 'taxonomy' ".concat(m(d),"]"));case 31:return y=e.sent,b="",y.forEach((function(e,t){b+=0===t?" && ( references('".concat(e._id,"')"):" || references('".concat(e._id,"')")})),b+=" )",_="*[_type == 'article'\n && !(_id in path(\"drafts.**\"))\n && defined(title)\n && defined(url)\n && is_visible == true \n && passwordLock != true\n && references('".concat(u._id,"')\n ").concat(b,"\n && defined(published)\n && _id != $id\n && dateTime(published) <= dateTime(now())] | order(published desc) [").concat(N,"...").concat(N+5,"] {\n ...,\n title,\n thumbnail,\n url,\n contentCategory->,\n published,\n }"),v="*[_type == 'article'\n && !(_id in path(\"drafts.**\"))\n && defined(title)\n && defined(url)\n && is_visible == true \n && passwordLock != true\n && references('".concat(h._id,"')\n ").concat(b,"\n && defined(published)\n && _id != $id\n && dateTime(published) <= dateTime(now())] | order(published desc) [").concat(N,"...").concat(N+1,"] {\n ...,\n title,\n thumbnail,\n url,\n contentCategory->,\n published,\n }"),x="*[_type == 'article'\n && !(_id in path(\"drafts.**\"))\n && defined(title)\n && defined(url)\n && is_visible == true \n && passwordLock != true\n && references('".concat(g._id,"')\n ").concat(b,"\n && defined(published)\n && _id != $id\n && dateTime(published) <= dateTime(now())] | order(published desc) [").concat(N,"...").concat(N+2,"] {\n ...,\n title,\n thumbnail,\n url,\n contentCategory->,\n published,\n }"),E={id:r._id},e.next=41,Promise.all([s.fetch(_,E),s.fetch(v,E),s.fetch(x,E),s.fetch(f)]);case 41:if(A=e.sent,S=a(A,4),R=S[0],I=S[1],D=S[2],C=S[3],0===R.length&&k("failed"),!T.current||!C){e.next=51;break}return w(C),e.abrupt("return");case 51:R&&!T.current&&(I[0]&&R[2]&&(R[2]=I[0]),I[1]&&R[4]&&(R[4]=I[1]),D[0]&&R[3]&&(R[3]=D[0]),w(R)),e.next=55;break;case 54:k("failed");case 55:case"end":return e.stop()}}),e)})));return function(){return n.apply(this,arguments)}}();n()}catch(e){console.log(e),k("failed")}}),[y]),l((function(){x&&x.length>0&&k("loaded")}),[x]),l((function(){try{analytics.ready((function(){b((function(){return"loaded"}))}))}catch(e){console.log(e),k("failed")}}),[]),i.createElement("div",{id:"recommended",style:{minHeight:"150px"}},"loaded"===S&&i.createElement(i.Fragment,null,i.createElement("h4",{className:$},"Recommended For You"),i.createElement("div",{className:ee,id:"recommendedContent"},x.map((function(e,t){return 0===t?i.createElement("div",{key:e._id+"-".concat(t),className:te},i.createElement("div",{className:ne},i.createElement("a",{href:"/view/".concat(e.url.current,"?utm_source=website&utm_medium=dynamic_content&utm_campaign=in_feed_unit")},i.createElement("img",{src:R({source:e.thumbnail,client:s,imageHeight:306,imageWidth:544})}))),i.createElement("div",{className:re},i.createElement("div",{className:ae},e.title),i.createElement("p",{className:ie},e.summary),i.createElement("a",{href:"/view/".concat(e.url.current,"?utm_source=website&utm_medium=dynamic_content&utm_campaign=in_feed_unit"),className:oe},">> ","Read Article"))):i.createElement("div",{key:e._id+"-".concat(t),className:ce},i.createElement("div",{className:me},I&&I[e.contentCategory.name]&&I[e.contentCategory.name.toLowerCase()]?I[e.contentCategory.name.toLowerCase()]:e.contentCategory.name),i.createElement("a",{href:"/view/".concat(e.url.current,"?utm_source=website&utm_medium=dynamic_content&utm_campaign=in_feed_unit")},i.createElement("div",{className:le},i.createElement("img",{src:R({source:e.thumbnail,client:s,imageHeight:270,imageWidth:480})})),i.createElement("div",{className:se},e.title)))})))),"failed"===S&&i.createElement("section",{id:"related-content-section",className:"my-1"},(r.relatedArticle||de({article:r}))&&i.createElement("p",{className:"mb-0"},i.createElement("b",null,"Related Content:")),i.createElement(de,{article:r,cpModificationRequired:u,Settings:n.Settings}),i.createElement("div",{className:"pt-2"},i.createElement(X,{articles:r.relatedArticle,client:s,fallbackImage:n.Settings.logo,showRelatedArticleFallbackImage:n.showRelatedArticleFallbackImage}))))},pe=function(e){for(var t=0;t<e.length;t++)if(e[t].isSeries)return e[t];return!1};function fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function he(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ge=i.memo(s((function(r,c){var s=r.article,d=r.Ads,I=r.showRelatedArticles,D=r.hideFBShare,C=void 0!==D&&D,P=r.hidePinterestShare,V=void 0!==P&&P,q=r.onChangeArticle,F=r.showSocialShare,L=void 0===F||F,U=r.client,W=r.pageview,Y=r.videoAccountIDs,K=r.drupalLeadSettings,$=r.currentPage,ee=r.showAuthorDetails,te=void 0!==ee&&ee,ne=r.audioAutoplay,re=r.article,ae=re.title,ie=re.passwordLock,oe=void 0!==ie&&ie,ce=re.authorDetails,le=re.pageNumber,se=re.published,me=re.showPublished,de=void 0===me||me,fe=re.body,ge=re.thumbnail,ye=re.content_placement,be=re.url,_e=(be=void 0===be?{current:""}:be).current,ve=re.issue,xe=re.source,we=re.documentGroupMapping,Ee=re.issueGroup,Ae=re.showIsi,Se=re.isi,ke=re.display_summary,Ne=void 0===ke||ke,Re=r.regionalPages,Te=r.nationalPage,Ie=r.ISIContent,De=r.shareOptions,Ce=r.cpModificationRequired,Pe=r.authorPrefix,je=r.lgContextAd,Ge=void 0!==je&&je,Oe=r.queueData,Me=r.sponsoredFlag,Ve=void 0!==Me&&Me,qe=r.authorImgHeight,Fe=void 0===qe?270:qe,Le=r.refreshFlag,Ue=void 0!==Le&&Le,ze=r.disqusConfig,Be=r.showDisqus,He=r.downloadCitation,We=void 0!==He&&He,Ye=r.useSegmentRecommendedArticles,Je=void 0!==Ye&&Ye,Qe=r.showIssueNameOnly,Ke=r.showPageNumber,Xe=r.emailList,Ze=r.articleRecs,$e=r.sliderData,et=!1,tt="*[_type == 'article' && url.current in ";s&&s.documentGroup&&!0===s.documentGroup.disableEpisodeNumber&&(et=!0);var nt,rt=!et,at=k(r);(s&&s.documentGroup&&!0===s.documentGroup.hideSeriesSlider&&($e=null),Ze&&Ze.forEach((function(e,t){tt=0===t?tt.concat("['".concat(e,"', ")):t===Ze.length-1?tt.concat("'".concat(e,"']]")):tt.concat("'".concat(e,"', "))})),$e)&&($e.forEach((function(e,t){e.url.current===r.article.url.current&&(nt=t+1)})),nt&&$e[nt]&&(s.nextVideo=$e[nt].url.current));L&&(L=Z(r.article)),Ve&&(s.contextualVideoAD=!1,s.contextualAD=!1,I=!1),s.disableRelatedContent&&(I=!1),!Ve&&d.getVideoContextualAD&&(s.contextualVideoAD=d.getVideoContextualAD(k(r,"in-context_video"))),!Ve&&d.getNativeContextualAD&&(s.contextualAD=d.getNativeContextualAD(k(r,"native-ad")));var it=o(null),ot=a(it,2),ct=ot[0],lt=ot[1],st=o(!1),mt=a(st,2),dt=mt[0],ut=mt[1],pt=z(r.article),ft=o(1),ht=a(ft,2),gt=ht[0],yt=ht[1],bt=o(""),_t=a(bt,2),vt=_t[0],xt=_t[1],wt=o(fe),Et=a(wt,2),At=Et[0],St=Et[1],kt=o(0),Nt=a(kt,2),Rt=Nt[0],Tt=Nt[1],It=o(0===r.index),Dt=a(It,2),Ct=Dt[0],Pt=Dt[1];l((function(){Tt(window.innerHeight)}),[]);var jt=function(e){var t=e.url.current;return!(!Re&&!Te)&&(Re.includes(t)||Te===t)},Gt=function(){return s.abstract&&s.abstract.map((function(e){if(e.children)return e.children.map((function(e){if("span"===e._type)return e.text}))})).join(" ")},Ot=function(){var e=function(){var e="TY - JOUR\n";return ve&&(s.title&&(e+="TI - ".concat(s.title,"\n"),e+="T1 - ".concat(s.title,"\n")),ce&&ce.length&&ce.map((function(t,n){return e+="AU - ".concat(t.firstName&&t.lastName?"".concat(t.lastName,", ").concat(t.firstName):"".concat(t.displayName),"\n")})),ve.publication&&ve.publication.name&&(e+="T2 - ".concat(ve.publication.name,"\n"),e+="JF - ".concat(ve.publication.name,"\n")),ve.name&&(e+="T3 - ".concat(ve.name,"\n")),ve.abbreviatedJournal&&(e+="JO - ".concat(ve.abbreviatedJournal,"\n")),s.abstract&&(e+="AB - ".concat(Gt(),"\n")),s.abstract&&(e+="N2 - ".concat(Gt(),"\n")),ve.issueNumber&&(e+="IS - ".concat(ve.issueNumber,"\n")),e+="PB - MJH Life Sciences\n",ve.year&&(e+="PY - ".concat(ve.year,"\n")),ve.volume&&(e+="VL - ".concat(ve.volume,"\n")),ve.url&&(e+="L1 - ".concat(ve.url,"\n")),De&&De.shareBaseUrl&&(e+="L2 - ".concat(De.shareBaseUrl+_e,"\n"),e+="UR - ".concat(De.shareBaseUrl+_e,"\n")),r.Website&&(e+="LK - https://".concat(r.Website.liveDomain,"\n")),ve.isbn_issn&&(e+="SN - ".concat(ve.isbn_issn,"\n")),le&&(le.includes("-")?(e+="SP - ".concat(le.split("-")[0],"\n"),e+="EP - ".concat(le.split("-")[1],"\n")):e+="SP - ".concat(le,"\n")),s.published&&(e+="Y1 - ".concat(p(se).format("DD-MMMM-YYYY"),"\n")),e+="Y2 - ".concat(p().format("DD-MMMM-YYYY"),"\n")),e+="ER -\n"}(),t=new File([e],"citation-".concat(_e,".ris"),{type:"application/x-research-info-systems;charset=utf-8"});O.saveAs(t,"citation-".concat(_e,".ris"))},Mt=function(){if(ye&&ye.length>0||we&&we.length>0){var e=[];if(we&&we.length>0&&we.forEach((function(t){if(!1===t.isShow||t.excludeRelatedContents)return null;t.parent&&(e=[].concat(u(e),[{label:t.name,href:Ce?B(t):t.parent.identifier&&t.parent.identifier.current&&!t.path.includes("/")?"/".concat(t.parent.identifier.current,"/").concat(t.path):"/".concat(t.path)}]))})),ye&&ye.length>0&&ye.filter((function(e){return"news"!==e.path})).forEach((function(t){if(t.excludeRelatedContents)return null;var n=Ce?S(t):t.path,r="/".concat(n);e=[].concat(u(e),[{label:t.name,href:r}])})),Ee&&Ee.name&&Ee.identifier&&Ee.identifier.current&&Ee.parent&&Ee.parent.identifier&&Ee.parent.identifier.current){var t=r.Settings.issueMapping,n=void 0===t?"/publications":t;e=[].concat(u(e),[{label:Ee.name,href:"".concat(n,"/").concat(Ee.parent.identifier.current,"/").concat(Ee.identifier.current)}])}return e&&e.length>0?i.createElement("div",null,e.map((function(e,t){if(e&&e.href&&e.label)return i.createElement("span",{key:t,className:"related-link"},i.createElement("a",{className:"related-links",style:{color:"blue"},href:e.href},e.label),i.createElement("style",{jsx:"true"},"\n .related-link:not(:first-child):before {\n content: ' | ';\n }\n "))}))):null}return null},Vt=i.memo((function(){return i.createElement("div",null,Je?i.createElement(ue,{client:U,article:s,index:r.index,Settings:r.Settings,showRelatedArticleFallbackImage:r.showRelatedArticleFallbackImage,cpModificationRequired:Ce,emailList:Xe,articleRecsQuery:tt}):i.createElement("section",{id:"related-content-section",className:"my-1"},(s.relatedArticle||Mt())&&i.createElement("p",{className:"mb-0"},i.createElement("b",null,"Related Content:")),i.createElement(Mt,null),i.createElement("div",{className:"pt-2"},i.createElement(X,{articles:s.relatedArticle,client:U,fallbackImage:r.Settings.logo,showRelatedArticleFallbackImage:r.showRelatedArticleFallbackImage}))))}));function qt(e,t){return Ft.apply(this,arguments)}function Ft(){return(Ft=e(t.mark((function e(n,a){var i,o;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/polls/vote",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({articleId:r.article._id,nodeKey:n,selectedChoice:a,body:At})});case 2:if(!(i=e.sent).ok){e.next=11;break}return e.next=6,i.json();case 6:o=e.sent,St(o.body),console.log("Voted successfully"),e.next=12;break;case 11:console.log("Unable to vote!");case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Lt=function(e,t,a){var o=e.body,c=J(o),l=Ut(s),m=!1;if((s.documentGroup&&s.documentGroup.isSeries||!s.documentGroup&&s.documentGroupMapping&&pe(s.documentGroupMapping))&&(m=!0),c.length>=2&&o.length>3&&e.contextualAD&&e.contextualVideoAD){e=he(he({},e),{},{contextualAD:he(he({},e.contextualAD),{},{slotId:"".concat(e.contextualAD.slotId||"contextual_ad","-").concat(e._id)}),contextualVideoAD:he(he({},e.contextualVideoAD),{},{slotId:"".concat(e.contextualVideoAD.slotId||"in-context_video","-").concat(e._id)})});var d=c.length%2?Math.round(c.length/2):c.length/2+1;l.hasVideo&&(d=l.videoIndex);return i.createElement(i.Fragment,null,i.createElement(f,n({serializers:w(U,W,Y,qt,!0,K,$,m,ct,null,s.Ads,at,s,t,Pe,a,ne),blocks:u(At.slice(0,d)),imageOptions:{w:320,h:240,fit:"max"}},U.config())),i.createElement("span",{className:"clearfix"}),m&&$e&&l.hasVideo&&i.createElement(A,{dataset:$e,client:U,nowPlaying:s.title,displayEpisodeNumber:rt}),i.createElement("div",{id:"contextual-native-ad-".concat(e._id),className:"contextual-native-ad"},i.createElement(E,n({},e.contextualAD,{refreshFlag:Ue}))),i.createElement("style",{jsx:"true"},"\n .contextual-native-ad {\n margin-bottom: 1rem;\n }\n "),i.createElement("span",{className:"clearfix"}),i.createElement("div",{id:"contextual-video-ad-".concat(e._id),className:"contextual-video-ad"},i.createElement(E,n({},e.contextualVideoAD,{refreshFlag:Ue,checkIsAdFound:function(t){if(t)lt(!0);else{var n=document.getElementById("contextual-video-ad-".concat(e._id));n.style.height="0%",n.style.width="0%",n.style.display="none",lt(!1)}}}))),i.createElement(f,n({serializers:w(U,W,Y,qt,!0,K,$,m,null,null,s.Ads,at,s,t,Pe,a,ne),blocks:u(At.slice(d)),imageOptions:{w:320,h:240,fit:"max"}},U.config())))}if(c.length>=2&&o.length>=3&&e.contextualAD&&!e.contextualVideoAD){e=he(he({},e),{},{contextualAD:he(he({},e.contextualAD),{},{slotId:"".concat(e.contextualAD.slotId||"contextual_ad","-").concat(e._id),className:"ADFluid",targeting:k(r,"native-ad"),sizes:Ge?[[728,90],"fluid",[300,100]]:["fluid",[300,100]],sizeMapping:Ge?[{viewport:[1400,0],sizes:[[728,90],"fluid",[300,100]]},{viewport:[0,0],sizes:["fluid",[300,100]]}]:[{viewport:[0,0],sizes:["fluid",[300,100]]}]})});var p=c.length%2?Math.round(c.length/2):c.length/2+1;return l.hasVideo&&(p=l.videoIndex),i.createElement(i.Fragment,null,i.createElement(f,n({serializers:w(U,W,Y,qt,!0,K,$,m,ct,null,s.Ads,at,s,t,Pe,a,ne),blocks:u(At.slice(0,p)),imageOptions:{w:320,h:240,fit:"max"}},U.config())),ct&&i.createElement("span",{className:"clearfix"}),m&&$e&&l.hasVideo&&i.createElement(A,{dataset:$e,client:U,nowPlaying:s.title,displayEpisodeNumber:rt}),(dt||Oe&&1===Oe.length||!r.infiniteScroll)&&i.createElement(i.Fragment,null,i.createElement("div",{id:"contextual-native-ad-".concat(e._id),className:"contextual-native-ad"},i.createElement(E,n({},e.contextualAD,{refreshFlag:Ue}))),i.createElement("style",{jsx:"true"},"\n .contextual-native-ad {\n margin-bottom: 1rem;\n }\n ")),ct&&i.createElement("span",{className:"clearfix"}),i.createElement(f,n({serializers:w(U,W,Y,qt,!0,K,$,m,null,null,s.Ads,at,s,t,Pe,a,ne),blocks:u(At.slice(p)),imageOptions:{w:320,h:240,fit:"max"}},U.config())))}if(c.length>=2&&o.length>3&&e.contextualVideoAD&&!e.contextualAD){e=he(he({},e),{},{contextualVideoAD:he(he({},e.contextualVideoAD),{},{slotId:"".concat(e.contextualVideoAD.slotId||"in-context_video","-").concat(e._id)})});var h=c.length%2?Math.round(c.length/2):c.length/2+1;l.hasVideo&&(h=l.videoIndex);return i.createElement(i.Fragment,null,i.createElement(f,n({serializers:w(U,W,Y,qt,!0,K,$,m,ct,null,s.Ads,at,s,t,Pe,a,ne),blocks:u(At.slice(0,h)),imageOptions:{w:320,h:240,fit:"max"}},U.config())),i.createElement("span",{className:"clearfix"}),m&&$e&&l.hasVideo&&i.createElement(A,{dataset:$e,client:U,nowPlaying:s.title,displayEpisodeNumber:rt}),i.createElement("div",{id:"contextual-video-ad-".concat(e._id),className:"contextual-video-ad"},i.createElement(E,n({},e.contextualVideoAD,{refreshFlag:Ue,checkIsAdFound:function(t){if(t)o&&o[1]&&"figure"===o[1]._type&&lt(!0);else{var n=document.getElementById("contextual-video-ad-".concat(e._id));n.style.height="0%",n.style.width="0%",n.style.display="none",lt(!1)}}}))),i.createElement(f,n({serializers:w(U,W,Y,qt,!0,K,$,m,null,null,s.Ads,at,s,t,Pe,a,ne),blocks:u(At.slice(h)),imageOptions:{w:320,h:240,fit:"max"}},U.config())))}var g=c.length%2?Math.round(c.length/2):c.length/2+1;return l.hasVideo&&(g=l.videoIndex),i.createElement("div",null,i.createElement(f,n({serializers:w(U,W,Y,qt,!0,K,$,m,!1,null,s.Ads,at,s,t,Pe,a,ne),blocks:s.documentGroup&&s.documentGroup.isSeries?u(At.slice(0,g)):At,imageOptions:{w:320,h:240,fit:"max"}},U.config())),m&&$e&&l.hasVideo&&i.createElement(A,{dataset:$e,client:U,nowPlaying:s.title,displayEpisodeNumber:rt}),s.documentGroup&&s.documentGroup.isSeries&&i.createElement(f,n({serializers:w(U,W,Y,qt,!0,K,$,m,null,null,s.Ads,at,s,t,Pe,a,ne),blocks:u(At.slice(g)),imageOptions:{w:320,h:240,fit:"max"}},U.config())))},Ut=function(e){var t={hasVideo:!1,videoIndex:0};if(!e||!e.body)return!1;for(var n=0;n<e.body.length;n++){var r=e.body[n];"video"!=r._type&&"youtube"!=r._type&&"audio"!=r._type||(t.hasVideo=!0,t.videoIndex=n+1)}return t},zt=function(){var e=De.shareVia,t=De.shareSubject,a=De.twitterSiteName,o=De.shareImageDefault,l=De.shareBaseUrl+r.article.url.current,d=s.title,u=s.summary,g=ge&&ge.asset?R({client:r.client,source:ge.asset}):o,y=r.Website&&r.Website.title?r.Website.title:"",E=N(r.article).join(","),S={shareTitle:d,shareSiteName:r.cache.siteSettingCache.name,shareSummary:u,shareUrl:l,shareImage:g,shareVia:r.Settings.title,shareKeywords:E};r.infiniteScroll||(q=function(){return null});var k,D=function(e){if(!e||!e.body)return!1;for(var t=0;t<e.body.length;t++)if("youtubeGallery"===e.body[t]._type)return!0;return!1}(s),P=function(e,t){if(!e)return null;var n=null;return e.forEach((function(e,r){e.title===t.title&&(n=r+1)})),n}($e,r.article),O=!1,F="",z=Ut(s),B=function(e){if(!e||!e.body)return!1;for(var t=0;t<e.body.length;t++)if("formassembly"===e.body[t]._type)return!0;return!1}(s);return s.documentGroup&&s.documentGroup.isSeries&&(O=!0,F=s.documentGroup.name),!s.documentGroup&&s.documentGroupMapping&&pe(s.documentGroupMapping)&&(O=!0,F=pe(s.documentGroupMapping).name),i.createElement(i.Fragment,null,i.createElement(_,{partialVisibility:!0,offset:{bottom:20,top:Rt&&Rt},onChange:function(e){if(e&&!Ct){var t=he(he({},at),{},{category:s&&s.category?s.category.name:""});q(_e,S,t),ut((function(){return!0}))}Ct&&Pt(!1)}},i.createElement("div",{id:"article__block",style:{position:"relative"},ref:c},i.createElement(M,{article:s,infiniteScroll:r.infiniteScroll}),i.createElement("div",{className:"video-detail",style:{marginBottom:jt(r.article)||Ae&&Array.isArray(Se)&&Se.length>0?"15rem":0}},ve&&i.createElement(m,null,s.title&&i.createElement("meta",{name:"citation_title",content:s.title}),se&&i.createElement("meta",{name:"citation_date",content:p(se).format("LL")}),ve.year&&i.createElement("meta",{name:"citation_year",content:ve.year}),ve.isbn_issn&&i.createElement("meta",{name:"citation_isbn",content:ve.isbn_issn}),s.abstract&&i.createElement("meta",{name:"citation_abstract",content:Gt()}),i.createElement("meta",{name:"citation_author",content:(k="",ce&&ce.length>0&&ce.map((function(e){e.lastName&&e.firstName?k+="".concat(e.lastName,",").concat(e.firstName,";"):e.displayName&&(k+="".concat(e.displayName,";"))})),k)}),ve.pdf&&i.createElement("meta",{name:"citation_pdf_url",content:T({asset:ve.pdf})})),D&&Lt(s,S,Fe),!D&&i.createElement("div",null,O&&i.createElement("p",{style:{fontSize:"14px"}},et?"".concat(F):"".concat(F," - Episode ").concat(P)),i.createElement("h1",{className:"page-title",style:{fontSize:"1.9rem"}},ae)),i.createElement("div",{className:"mb-3 doc-group-container",style:{display:"flex",justifyContent:"space-between",alignItems:"flex-end"}},i.createElement("style",{jsx:"true"},"\n .social-ris-container {\n display: flex;\n justify-content: space-between;\n }\n @media screen and (max-width: 468px) {\n .video-detail .doc-group-container {\n flex-direction: column;\n align-items: flex-start !important;\n }\n .video-detail .doc-group {\n margin-top: 2rem;\n width: calc(100vw - 45px);\n align-items: center;\n }\n .video-detail .doc-group img,\n .doc-group p {\n max-width: calc(100vw - 45px) !important;\n }\n .social-ris-container {\n flex-direction: column;\n }\n }\n .author-details-img {\n margin-right: 10px;\n max-height: 250px;\n min-height: 150px;\n max-width: 250px;\n min-width: 150px;\n width: 100%;\n height: 100%;\n object-fit: contain;\n }\n .author-details-img-container {\n text-align: center;\n }\n .author-details-col {\n padding-left: 25px;\n }\n .left-wrap {\n width: 100%;\n }\n "),i.createElement("div",{className:"left-wrap"},!D&&!B&&de&&i.createElement("div",null,i.createElement("time",{className:"meta-date",dateTime:p(se).utc().format(p.HTML5_FMT.DATETIME_LOCAL_MS)},p(se).format("LL"))),i.createElement("div",{className:"mb-3"},!D&&ce&&ce.map((function(e,t){return i.createElement("span",{key:t},x(e.displayName,e.url,t,ce.length,Pe,e.biography&&function(e){if(e)return i.createElement(f,n({serializers:w(U,W,Y,qt,!0,K,$,!1,ct),blocks:[e]},U.config()))}(e.biography[0]),e.profileImage&&R({client:r.client,source:e.profileImage,imageHeight:Fe}),te))})),i.createElement("div",null,xe&&i.createElement("p",{style:{display:"inline-block",padding:"0 .25rem",color:"var(--franchise-primary, #484848)",borderRadius:"2px",fontWeight:"bold",border:"2px solid var(--franchise-primary, #484848)"},className:"source-label"},xe)),ve&&i.createElement("div",{className:"volume-issue"},ve.publication&&ve.publication.name&&i.createElement("span",{className:"mb-0-pub"},i.createElement("b",null,ve.publication.name),","," "),ve.name&&void 0===Qe||ve.name&&!1===Qe?i.createElement("span",{className:"mb-0"},ve.name,", "):null,ve.volume&&i.createElement("span",null,"Volume "+ve.volume,", "),ve.issueNumber&&i.createElement("span",null," Issue "+ve.issueNumber)),le&&Ke||le&&void 0===Ke?i.createElement("div",{className:"article-pageNumber"},"Pages: "+le):null),i.createElement("div",{className:"social-ris-container"},!D&&L&&i.createElement("p",null,i.createElement(v,{shareUrl:l,shareTitle:d,shareVia:e,shareSummary:u,shareSubject:t,shareImage:g,size:32,siteName:y,twitterSiteName:a,disableMeta:!0,hidePinterest:V,hideFacebook:C})),ve&&We&&(!ve.hasOwnProperty("show_download_ris_button")||!1!==ve.show_download_ris_button)&&(!ve.publication||!ve.publication.hasOwnProperty("show_download_ris_button")||!1!==ve.publication.show_download_ris_button)&&i.createElement(b,{className:"ris-download-button",onClick:function(){return Ot()}},"Download RIS"))),i.createElement("div",null,i.createElement(H,{article:r.article,client:r.client}))),!D&&pt&&Ne&&i.createElement("p",null,i.createElement("em",null,pt)),i.createElement("div",{className:"ad-box",style:{textAlign:"center"}},h&&!Ve&&r.article.Ads&&r.article.Ads.length>0&&r.article.Ads.map((function(e,t){if(0===t)return i.createElement("div",{key:t,id:"addid-".concat(t),style:{display:"flex",flex:"1 0 auto",justifyContent:"center",alignItems:"center",textAlign:"center"}},e.component)}))),i.createElement("div",{className:"block-content mt-3"},!D&&Lt(s,S),i.createElement("div",{className:"clearfix"}),i.createElement("noscript",null,i.createElement("div",{style:{display:"flex",justifyContent:"center"},className:"series-links"},r.article.seriesDetail&&r.article.seriesDetail.prevUrl&&i.createElement("a",{className:"mx-3",href:r.article.seriesDetail.prevUrl},"Previous ",r.article.seriesDetail.type),r.article.seriesDetail&&r.article.seriesDetail.nextUrl&&i.createElement("a",{className:"mx-3",href:r.article.seriesDetail.nextUrl},"Next ",r.article.seriesDetail.type))),i.createElement("div",{className:"downloads-container"},ve&&ve.pdf&&i.createElement("a",{rel:"noopener",href:T({asset:ve.pdf}),target:"_blank",title:"Download issue"},i.createElement("img",{style:{margin:"1rem",maxHeight:"40px",maxWidth:"40px"},src:"/download.png",alt:"download issue"}),"Download Issue : ",ve.name))),i.createElement("div",{className:"clearfix",style:{minHeight:"1px"}}),s.documentGroup&&s.documentGroup.isSeries&&$e&&!z.hasVideo&&i.createElement("div",null,!1,i.createElement(A,{dataset:$e,client:U,nowPlaying:s.title,displayEpisodeNumber:rt})),I&&!Ae&&i.createElement(Vt,null),ze&&Be&&i.createElement("div",{id:"disqusContainer"},i.createElement(j,{shortname:ze.shortname,config:{url:ze.url,identifier:ze.identifier,title:ze.title}}))),function(e){var t=e.url.current;return Re&&Ie&&Re.includes(t)?i.createElement(Ie,null):Te===t&&Ie?i.createElement(Ie,{national:!0}):null}(r.article))),Ae&&Array.isArray(Se)&&Se.length>0&&i.createElement(Q,null,i.createElement(f,{serializers:w(U,W,Y,qt,!0,K,$,!1,!1,null,s.Ads,at),blocks:Se})),h&&!Ve&&r.article.Ads&&r.article.Ads.length>0&&r.article.Ads.map((function(e,t){if(t>0)return i.createElement("div",{key:t,id:"addid-".concat(t)},e.component)})),i.createElement("noscript",null,r.infiniteScroll&&r.article.relatedArticle&&r.article.relatedArticle[0]&&r.article.relatedArticle[0].url&&r.article.relatedArticle[0].url.current&&i.createElement("div",{style:{textAlign:"center"}},i.createElement("a",{href:"/view/".concat(r.article.relatedArticle[0].url.current)},"Related Article ",">>>"))),r.infiniteScroll&&i.createElement("hr",{className:"article-seperater mb-5 mt-3"}),i.createElement(G,{article:r.article,Website:r.Website,client:r.client}))};return oe?2===gt?zt():i.createElement(i.Fragment,null,i.createElement(m,null,i.createElement("meta",{name:"googlebot",content:"noindex"})),i.createElement("div",{className:"mt-5",style:{display:"flex",justifyContent:"center",alignItems:"center"}},i.createElement(g,{inline:!0,onSubmit:function(e){e.preventDefault()}},i.createElement(y,{type:"text",className:"mr-sm-2",value:vt,onChange:function(e){return xt(e.target.value)},placeholder:"Password"}),i.createElement(b,{variant:"primary",onClick:function(){vt===r.article.password?yt(2):alert("Incorrect Password")}},"Submit")))):zt()})),(function(e,t){return e.article._id===t.article._id})),ye=ge,be=function(r){var c=d(),s=r.prevUrl,m=void 0===s?"/":s,p=r.Ads,f=r.maxListLength,g=void 0===f?10:f,y=r.cpModificationRequired,b=void 0!==y&&y,_=r.authorPrefix,v=void 0===_?"authors":_,x=r.showRelatedArticles,w=r.canonicalTag,E=r.disablePrevUrlCheckContentPlacement,A=void 0!==E&&E,S=o(0),N=a(S,2),R=N[0],T=N[1];l((function(){T((function(){return window.innerHeight}));var e=function(){return!(window.innerWidth==screen.width&&window.innerHeight==screen.height)&&T((function(){return window.innerHeight}))};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]);var I,D,C=o([(I=Object.assign({},r.article),D=k(r),I.Ads=p.getRightItems(D),I)]),P=a(C,2),j=P[0],G=P[1],O=o(j[0]._id),M=a(O,2),L=M[0],U=M[1];l((function(){setTimeout((function(){(window.innerHeight?document.body.offsetHeight>window.innerHeight:document.documentElement.scrollHeight>document.documentElement.offsetHeight||document.body.scrollHeight>document.body.offsetHeight)||z()}),1e3)}),[j.length]);var z=function(){var n=e(t.mark((function e(){var n,a,i,o,c;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(j&&j.length<g)){e.next=27;break}return n=j.length-1,a=null,e.prev=3,e.next=6,F(null,r.client,r.article,m,n);case 6:a=e.sent,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(3),console.error(e.t0);case 12:if(!a||!a._id){e.next=27;break}return i=j.length+1,o=i+2,e.prev=15,e.next=18,F(null,r.client,r.article,m,"".concat(i,"..").concat(o));case 18:a.relatedArticle=e.sent,e.next=24;break;case 21:e.prev=21,e.t1=e.catch(15),console.error(e.t1);case 24:c=k({article:a,cpModificationRequired:b,prevUrl:m,disablePrevUrlCheckContentPlacement:A}),a.Ads=p.getRightItems(c),G([].concat(u(j),[a]));case 27:case"end":return e.stop()}}),e,null,[[3,9],[15,21]])})));return function(){return n.apply(this,arguments)}}(),B=c&&c.asPath,H=r.cache.seoManager&&r.cache.seoManager.filter((function(e){return e.urlSeo==B})),W=H&&1==H.length&&H[0].metaDescription,Y=H&&1==H.length&&H[0].metaTitle,J=function(e,t,n){var a,i,o,c="/view/".concat(e),l=j.find((function(t){return t.url.current===e}));U((function(){return l._id})),window.history.pushState({page:e},t.shareTitle,c),W&&Y&&B==c?(a=W,i=Y,o=t,document.title=i,document.querySelector('meta[name="description"]')&&document.querySelector('meta[name="description"]').setAttribute("content",a),document.querySelector('meta[name="keywords"]').setAttribute("content",o.shareKeywords),document.querySelector('meta[property="og:url"]').setAttribute("content",o.shareUrl),document.querySelector('meta[property="og:title"]').setAttribute("content",i),document.querySelector('meta[property="og:site_name"]').setAttribute("content",o.shareVia),document.querySelector('meta[property="og:description"]').setAttribute("content",a),document.querySelector('meta[name="twitter:title"]').setAttribute("content",i),document.querySelector('meta[name="twitter:image"]').setAttribute("content",o.shareImage),document.querySelector('meta[name="twitter:site"]').setAttribute("content",o.shareVia),document.querySelector('meta[name="twitter:description"]')&&document.querySelector('meta[name="twitter:description"]').setAttribute("content",a),w&&document.querySelector('link[rel="canonical"]').setAttribute("href",o.shareUrl)):function(e){document.title=e.shareTitle,document.querySelector('meta[name="description"]')&&document.querySelector('meta[name="description"]').setAttribute("content",e.shareSummary),document.querySelector('meta[name="keywords"]').setAttribute("content",e.shareKeywords),document.querySelector('meta[property="og:url"]').setAttribute("content",e.shareUrl),document.querySelector('meta[property="og:title"]').setAttribute("content",e.shareTitle),document.querySelector('meta[property="og:site_name"]').setAttribute("content",e.shareVia),document.querySelector('meta[property="og:description"]').setAttribute("content",e.shareSummary),document.querySelector('meta[name="twitter:title"]').setAttribute("content",e.shareTitle),document.querySelector('meta[name="twitter:image"]').setAttribute("content",e.shareImage),document.querySelector('meta[name="twitter:site"]').setAttribute("content",e.shareVia),document.querySelector('meta[name="twitter:description"]')&&document.querySelector('meta[name="twitter:description"]').setAttribute("content",e.shareSummary),w&&document.querySelector('link[rel="canonical"]').setAttribute("href",e.shareUrl)}(t),r.setCustomDimensions&&r.setCustomDimensions(l,"200",m,""),r.pageview&&r.pageview(c,null,n),r.gtagSetCustomDimensions&&r.gtagSetCustomDimensions(l,"200",m,"",!0),function(e){var t=j.find((function(t){return t.url.current===e})),n=k({article:t,cpModificationRequired:b,position:r.position,prevUrl:m,disablePrevUrlCheckContentPlacement:A});if(h||q.getGoogletag().then((function(e){window.googletag&&e.pubadsReady&&(e.pubads().getSlots().forEach((function(e){var t=e.getTargeting("pos");e.clearTargeting(),Object.keys(n).forEach((function(t){e.setTargeting(t,n[t])})),e.setTargeting("pos",t)})),q.refresh())})),h){var a="";q.getGoogletag().then((function(e){window.googletag&&e.pubadsReady&&(e.pubads().getSlots().forEach((function(e){var t=e.getTargeting("pos");"top-mobile"==t&&(a=e.getSlotId().getDomId(),e.clearTargeting(),Object.keys(n).forEach((function(t){e.setTargeting(t,n[t])})),e.setTargeting("pos",t))})),q.refresh(a))}))}}(e)};return i.createElement(V,{dataLength:j.length,next:z,scrollThreshold:"40%",hasMore:!0,style:{overflow:"hidden"}},j.map((function(e,t){return i.createElement(i.Fragment,{key:t},i.createElement(ye,n({},r,{containerHeight:R,onChangeArticle:J,authorPrfix:v,article:e,cpModificationRequired:b,active:L===e._id,queueData:j,showRelatedArticles:x,index:t,showPageNumber:e.issueGroup&&e.issueGroup.parent?e.issueGroup.parent.showPageNumber:null,showIssueNameOnly:e.issueGroup&&e.issueGroup.parent?e.issueGroup.parent.showIssueNameOnly:null})))})))};function _e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xe=function(e){var t=d(),r=e.shareOptions,c=e.article,s=e.article,u=s.hideComments,p=s.content_placement,f=e.sponsoredFlag,h=void 0!==f&&f;e.sponsoredTaxonomies;var g=e.Ads,y=e.setCustomDimensions,b=e.gtagSetCustomDimensions,_=e.statusCode,v=e.prevUrl,x=e.pageview,w=e.showRelatedArticles,E=void 0!==w&&w,A=e.canonicalTag,S=void 0===A||A,R=e.infiniteScrollFlag,T=void 0===R||R,I=e.emailList,D=e.articleRecs,C=e.article,P=C.passwordLock,j=void 0!==P&&P;C.description;var G=C.title,O=C.seriesShareOptions,M=o(0),V=a(M,2),q=V[0],F=V[1];l((function(){if(x&&y){var n,r=ve(ve({},k(e)),{},{category:c&&c.category?c.category.name:""});return function e(){void 0!==window.GA_INITIALIZED?(y(c,_,v,""),x(t.asPath,null,r)):n=setTimeout(e,1e3)}(),function(){clearTimeout(n)}}if(b){var a;return function e(){void 0!==window.GA_INITIALIZED?b(c,_,v,"",!1):a=setTimeout(e,1e3)}(),function(){clearTimeout(a)}}}),[]);var L=!1,U=!1;c.documentGroup&&c.documentGroup.isSeries&&(U=!0),!c.documentGroup&&c.documentGroupMapping&&pe(c.documentGroupMapping)&&(U=!0);var z=function(e){if(!e||!e.body)return!1;for(var t=0;t<e.body.length;t++){if("articleSeries"===e.body[t]._type||"slideshows"===e.body[t]._type||"quiz"===e.body[t]._type)return!0;if(void 0!==e.body[t].videos)return L=!0,!0}return!1}(e.article),B=Array.isArray(p)&&p.some((function(e){return!0===e.showComments}))||!1===u,H=["Articles","Videos","Podcasts"].includes(c.category.name)&&c.taxonomyMapping&&!0!==c.passwordLock&&!z&&!c.ExcludeFromInfiniteScroll&&!h&&T&&!c.showIsi&&!U&&!B;if(["Articles","Videos","Podcasts"].includes(c.category.name)&&(G=null),H||G||(G=e.article?e.article.title:""),!H){var W=k(e);c.Ads=g.getRightItems(W),!h&&g.getVideoContextualAD&&(c.contextualVideoAD=g.getVideoContextualAD(k(e,"in-context_video"))),!h&&g.getNativeContextualAD&&(c.contextualAD=g.getNativeContextualAD(k(e,"native-ad")))}l((function(){t.asPath&&t.asPath.length>0&&t.asPath.includes("?")&&t.asPath.split("?")[1].split("&").forEach((function(e){e.includes("page=")?F(e.split("=")[1]):F(0)})),t.asPath.includes("page=")||0===q||F(0)}),[t]);var Y=O&&O.seriesSummary?"".concat(O.seriesSummary).concat(q>0?" | Page ".concat(q):""):c.seo&&c.seo.meta_description?"".concat(c.seo.meta_description).concat(q>0?" | Page ".concat(q):""):r.shareSummary?"".concat(r.shareSummary).concat(q>0?" | Page ".concat(q):""):"".concat(q>0?"Page ".concat(q):"");L&&(Y=O&&O.seriesSummary?"".concat(O.seriesSummary).concat(q>0?" | Page ".concat(q):""):"");var J=t&&t.asPath,Q=e.cache.seoManager&&e.cache.seoManager.filter((function(e){return e.urlSeo==J})),K=Q&&1==Q.length&&Q[0].metaDescription,X=Q&&1==Q.length&&Q[0].metaTitle;return i.createElement(i.Fragment,null,i.createElement(m,null,i.createElement("title",{key:"title"},X?"".concat(X).concat(q>0?" | Page ".concat(q):""):O&&O.seriesTitle?"".concat(O.seriesTitle).concat(q>0?" | Page ".concat(q):""):c&&c.seo&&c.seo.seo_title?"".concat(c.seo.seo_title).concat(q>0?" | Page ".concat(q):""):"".concat(c.title).concat(q>0?" | Page ".concat(q):"")),K?i.createElement("meta",{name:"description",key:"description",content:K}):Y&&i.createElement("meta",{name:"description",key:"description",content:Y}),i.createElement("meta",{name:"keywords",content:N(c).join(","),key:"keywords"}),j&&i.createElement("meta",{name:"robots",content:"noindex, nofollow"}),i.createElement("meta",{property:"og:url",content:O&&O.seriesUrl?r.shareUrl+O.seriesUrl:r.shareUrl,key:"og:url"}),i.createElement("meta",{property:"og:title",content:X?"".concat(X).concat(q>0?" | Page ".concat(q):""):O&&O.seriesTitle?"".concat(O.seriesTitle).concat(q>0?" | Page ".concat(q):""):c.seo&&c.seo.seo_title?"".concat(c.seo.seo_title).concat(q>0?" | Page ".concat(q):""):"".concat(r.shareTitle).concat(q>0?" | Page ".concat(q):""),key:"og:title"}),i.createElement("meta",{property:"og:image",content:O&&O.seriesThumbnail?O.seriesThumbnail:r.shareImage,key:"og:image"}),i.createElement("meta",{property:"og:site_name",content:e.Settings.title,key:"og:site_name"}),K?i.createElement("meta",{property:"og:description",key:"og:description",content:K}):Y&&i.createElement("meta",{property:"og:description",key:"og:description",content:Y}),i.createElement("meta",{name:"twitter:card",content:"summary",key:"twitter:card"}),i.createElement("meta",{name:"twitter:title",content:X?"".concat(X).concat(q>0?" | Page ".concat(q):""):O&&O.seriesTitle?"".concat(O.seriesTitle).concat(q>0?" | Page ".concat(q):""):c.seo&&c.seo.seo_title?"".concat(c.seo.seo_title).concat(q>0?" | Page ".concat(q):""):"".concat(r.shareTitle).concat(q>0?" | Page ".concat(q):""),key:"twitter:title"}),i.createElement("meta",{name:"twitter:image",content:O&&O.seriesThumbnail?O.seriesThumbnail:r.shareImage,key:"twitter:image"}),i.createElement("meta",{name:"twitter:site",content:"@".concat(e.Settings.title),key:"twitter:site"}),K?i.createElement("meta",{name:"twitter:description",key:"twitter:description",content:K}):Y&&i.createElement("meta",{name:"twitter:description",key:"twitter:description",content:Y}),S&&i.createElement("link",{rel:"canonical",href:O&&O.seriesUrl?r.shareUrl+O.seriesUrl:r.shareUrl,key:"canonical"}),i.createElement("noscript",null,e.article.seriesDetail&&e.article.seriesDetail.prevUrl&&i.createElement("link",{rel:"prev",href:e.article.seriesDetail.prevUrl}),e.article.seriesDetail&&e.article.seriesDetail.nextUrl&&i.createElement("link",{rel:"next",href:e.article.seriesDetail.nextUrl}))),H?i.createElement(be,n({infiniteScroll:!0,showRelatedArticles:E,canonicalTag:S,checkSponsered:!0,Ads:e.WAds,onVote:function(){},sponsoredTaxonomies:[]},e)):i.createElement(ye,n({infiniteScroll:!1,showRelatedArticles:E,showDisqus:B,emailList:I,articleRecs:D},e,{showIssueNameOnly:c.issueGroup&&c.issueGroup.parent?c.issueGroup.parent.showIssueNameOnly:null,showPageNumber:c.issueGroup&&c.issueGroup.parent?c.issueGroup.parent.showPageNumber:null})))};xe.returnGetInitialProps=function(){var n=e(t.mark((function e(n,r,a,i,o){var c,l,s,m,d,u,p,f,h,g,y=arguments;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=y.length>5&&void 0!==y[5]?y[5]:null,e.next=3,i.fetch(L("article"),{url:n});case 3:if(l=e.sent,console.log("article url current",n),s=L("related"),l.seriesDetail=U(l,a),m=[],d=200,l&&l._id&&l.body||(d=404),!l.documentGroup||!l.documentGroup.isSeries){e.next=17;break}return e.next=13,i.fetch('*[!(_id in path("drafts.**")) \n && _type == "article"\n && defined(title)\n && references(\''.concat(l.documentGroup._id,"')\n && is_visible == true\n && defined(published)\n && dateTime(published) <= dateTime(now())\n ] | order(published asc) {\n title,\n thumbnail,\n url,\n published\n }"));case 13:u=e.sent,m=u,e.next=22;break;case 17:if(!(l.documentGroupMapping&&l.documentGroupMapping[0]&&l.documentGroupMapping[0].isSeries)){e.next=22;break}return e.next=20,i.fetch('*[!(_id in path("drafts.**")) \n && _type == "article"\n && defined(title)\n && references(\''.concat(l.documentGroupMapping[0]._id,"')\n && is_visible == true\n && defined(published)\n && dateTime(published) <= dateTime(now())\n ] | order(published asc) {\n title,\n thumbnail,\n url,\n published\n }"));case 20:p=e.sent,m=p;case 22:if(f=c.query.seriesArticle,((h=void 0!==f&&f)||a)&&l.body&&l.body.map((function(e){"articleSeries"===e._type&&e.articles&&e.articles.length>0&&e.articles.map((function(e){if(e.param.current===h){var t={seriesUrl:"?seriesArticle=".concat(h),seriesTitle:e.title,seriesSummary:e.summary,seriesThumbnail:e.thumbnail&&e.thumbnail.asset?R({client:i,source:e.thumbnail.asset}):null};l.seriesShareOptions=t}})),"youtubeGallery"===e._type&&e.videos&&e.videos.length>0&&e.videos.map((function(e,t){if(t+1===Number(a)){var n={seriesUrl:"?seriesVid=".concat(a),seriesTitle:e.title,seriesSummary:e.intro,seriesThumbnail:e.thumbnail&&e.thumbnail.asset?R({client:i,source:e.thumbnail.asset}):null};l.seriesShareOptions=n}}))})),g=!1,l&&l.content_placement&&l.content_placement.forEach((function(e){e.disableAds&&(g=!0)})),l.category&&l.category.disableAds&&(g=!0),!l.disableRelatedContent){e.next=32;break}l.relatedArticle=null,e.next=36;break;case 32:if(!l){e.next=36;break}return e.next=35,F(c,i,l,r,"0..2");case 35:l.relatedArticle=e.sent;case 36:return e.abrupt("return",{url:n,sao:o,statusCode:d,prevUrl:r,relatedArticleQuery:s,article:l,sliderData:m,sponsoredFlag:g});case 37:case"end":return e.stop()}}),e)})));return function(e,t,r,a,i){return n.apply(this,arguments)}}();var we=Object.freeze({__proto__:null,default:xe});export{xe as V,we as i};
@@ -0,0 +1 @@
1
+ function t(t,r,e,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void e(t)}c.done?r(u):Promise.resolve(u).then(n,o)}var r=function(r){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=r.apply(e,n);function c(r){t(a,o,i,c,u,"next",r)}function u(r){t(a,o,i,c,u,"throw",r)}c(void 0)}))}},e={exports:{}};!function(t){var r=function(t){var r,e=Object.prototype,n=e.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{u({},"")}catch(t){u=function(t,r,e){return t[r]=e}}function h(t,r,e,n){var o=r&&r.prototype instanceof d?r:d,i=Object.create(o.prototype),a=new G(n||[]);return i._invoke=function(t,r,e){var n=s;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===y){if("throw"===o)throw i;return P()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=j(a,e);if(c){if(c===v)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===s)throw n=y,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=p;var u=f(t,r,e);if("normal"===u.type){if(n=e.done?y:l,u.arg===v)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n=y,e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=h;var s="suspendedStart",l="suspendedYield",p="executing",y="completed",v={};function d(){}function g(){}function m(){}var w={};u(w,i,(function(){return this}));var x=Object.getPrototypeOf,L=x&&x(x(N([])));L&&L!==e&&n.call(L,i)&&(w=L);var b=m.prototype=d.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(r){u(t,r,(function(t){return this._invoke(r,t)}))}))}function _(t,r){function e(o,i,a,c){var u=f(t[o],t,i);if("throw"!==u.type){var h=u.arg,s=h.value;return s&&"object"==typeof s&&n.call(s,"__await")?r.resolve(s.__await).then((function(t){e("next",t,a,c)}),(function(t){e("throw",t,a,c)})):r.resolve(s).then((function(t){h.value=t,a(h)}),(function(t){return e("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,n){function i(){return new r((function(r,o){e(t,n,r,o)}))}return o=o?o.then(i,i):i()}}function j(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,j(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,v;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,v):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function O(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function k(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function G(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function N(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o<t.length;)if(n.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=r,e.done=!0,e};return a.next=a}}return{next:P}}function P(){return{value:r,done:!0}}return g.prototype=m,u(b,"constructor",m),u(m,"constructor",g),g.displayName=u(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===g||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},E(_.prototype),u(_.prototype,a,(function(){return this})),t.AsyncIterator=_,t.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new _(h(r,e,n,o),i);return t.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(b),u(b,c,"Generator"),u(b,i,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,G.prototype={constructor:G,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(n,o){return c.type="throw",c.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),h=n.call(a,"finallyLoc");if(u&&h){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!h)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),v},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),k(e),v}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;k(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:N(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),v}},t}(t.exports);try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}(e);var n=e.exports;export{r as a,n as r};
@@ -0,0 +1 @@
1
+ import{g as e}from"./_commonjsHelpers-57e89916.js";import{a as r,r as t}from"./index-663f3f10.js";import{s as n}from"./slicedToArray-c92cae3a.js";import a,{useEffect as o,useState as i}from"react";import{_ as u}from"./extends-464f0b6e.js";import{Form as c,Col as l,Button as s,Spinner as p}from"react-bootstrap";import f from"next/router";import y from"swr";import{serialize as d,parse as m}from"cookie";import h from"passport-local";import b from"mysql";import g from"util";import w from"md5";function v(e,r){return r.forEach((function(r){r&&"string"!=typeof r&&!Array.isArray(r)&&Object.keys(r).forEach((function(t){if("default"!==t&&!(t in e)){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}))})),Object.freeze(e)}var S={},E=function(e){var r=e.name,t=e.label,n=e.type,o=e.required,i=void 0!==o&&o,s=e.readonly,p=void 0!==s&&s,f=e.options,y=void 0===f?null:f,d=e.groupType,m=void 0===d?"":d,h=e.errors,b=void 0===h?{}:h,g=e.handleChanged,w=void 0===g?null:g,v=e.default_value,S=void 0===v?null:v,E=[];return m&&(E.as=m,m===l&&(E.xs=12,E.md=6)),w&&(E.onChange=w),p&&(E.readOnly=p),"text"==n||"email"==n||"password"==n||"number"==n?a.createElement(c.Group,u({},E,{controlId:r}),a.createElement(c.Label,{kye:"".concat(r,"_label")},t,i&&a.createElement("span",{style:{color:"red"}},"*")),a.createElement(c.Control,{key:"".concat(r,"_").concat(n),type:n,readOnly:p,name:r,placeholder:"",defaultValue:S,required:i}),a.createElement(c.Control.Feedback,{key:"".concat(r,"_feedback"),type:"invalid"},b[r])):"select"==n?a.createElement(c.Group,u({},E,{key:r,controlId:r}),a.createElement(c.Label,{key:"".concat(r,"_").concat(t)},t,i&&a.createElement("span",{key:"".concat(r,"_required_span"),style:{color:"red"}},"*")),a.createElement(c.Control,{key:"".concat(r,"_select"),as:"select",name:r,required:i,defaultValue:S},a.createElement("option",{value:"",key:"".concat(r,"_options_empty")}),y.map((function(e,t){var n=e.value?e.value:e,o=e.label?e.label:e,i="".concat(r,"_options_").concat(t);return a.createElement("option",{key:i,value:n},o)})))):"radio"==n||"checkbox"==n?a.createElement(c.Group,E,a.createElement(c.Label,null,t,i&&a.createElement("span",{style:{color:"red"}},"*")),y.map((function(e,t){return a.createElement(c.Check,{type:n,key:t,required:i},a.createElement(c.Check.Input,{type:n,key:"".concat(n,"_").concat(t,"_input"),defaultChecked:!!S&&S===e.value,name:r,id:"".concat(r,"_").concat(t),value:e.value,required:i}),a.createElement(c.Check.Label,{style:{cursor:"pointer"},for:"".concat(r,"_").concat(t),key:"".concat(n,"_").concat(t,"_label"),dangerouslySetInnerHTML:{__html:e.label}}))}))):void 0},P=function(){var e=r(t.mark((function e(r,n){var a,o;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});case 3:if(200!==(a=e.sent).status){e.next=13;break}return e.next=7,a.json();case 7:if(!(o=e.sent).error){e.next=10;break}throw new Error(o.error);case 10:return e.abrupt("return",o.data);case 13:return e.t0=Error,e.next=16,a.text();case 16:throw e.t1=e.sent,new e.t0(e.t1);case 18:e.next=24;break;case 20:return e.prev=20,e.t2=e.catch(0),console.error("data handler failed : ".concat(r),e.t2),e.abrupt("return",null);case 24:case"end":return e.stop()}}),e,null,[[0,20]])})));return function(r,t){return e.apply(this,arguments)}}();function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.redirectTo,t=e.redirectIfFound,n=y("/api/auth/user",P),a=n.data,i=n.error,u=a,c=Boolean(a),l=Boolean(u);return o((function(){r&&c&&(r&&!t&&!l||t&&l)&&f.push(r)}),[r,t,c,l]),i?null:u}var A=Object.freeze({__proto__:null,useUser:x}),_=e(Object.freeze({__proto__:null,default:function(e){var u=e.callbackUrl,f=void 0===u?"/":u;o((function(){e.user&&(window.location.href="/auth/profile")}),[]),x("/auth/profile",!0);var y=i(""),d=n(y,2),m=d[0],h=d[1],b=i(!1),g=n(b,2),w=g[0],v=g[1];function S(){return(S=r(t.mark((function e(r){var n,a;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return event.preventDefault(),m&&h(""),v(!0),n={email:r.currentTarget.email.value,password:r.currentTarget.password.value},e.prev=4,e.next=7,fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});case 7:if(a=e.sent,v(!1),200!==a.status){e.next=13;break}window.location.href=f,e.next=18;break;case 13:return e.t0=Error,e.next=16,a.text();case 16:throw e.t1=e.sent,new e.t0(e.t1);case 18:e.next=23;break;case 20:e.prev=20,e.t2=e.catch(4),h(e.t2.message);case 23:case"end":return e.stop()}}),e,null,[[4,20]])})))).apply(this,arguments)}return a.createElement(c,{className:"login",onSubmit:function(e){return S.apply(this,arguments)}},a.createElement("h1",null,"Login"),a.createElement("hr",null),E({name:"email",label:"Email",type:"email",required:!0}),E({name:"password",label:"Password",type:"password",required:!0}),a.createElement("hr",null),a.createElement(c.Row,null,a.createElement(c.Group,{as:l},a.createElement("a",{href:"/auth/signup"},"I don't have an account")),a.createElement(c.Group,{as:l,className:"text-right"},!w&&a.createElement(s,{type:"submit"},"Login"),w&&a.createElement(s,{variant:"primary",disabled:!0},a.createElement(p,{as:"span",animation:"border",role:"status","aria-hidden":"true",size:"sm"}),a.createElement("span",{className:"sr-only"},"Loading...")))),m&&a.createElement("p",{className:"error"},m),a.createElement("style",{jsx:"true".toString()},"\n .login {\n margin: 0 auto;\n padding: 1rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n }\n .error {\n color: red;\n margin: 1rem 0 0;\n }\n "))}})),k=["United States","Afghanistan","Albania","Algeria","American Samoa","Andorra","Angola","Anguilla","Antarctica","Antigua and Barbuda","Argentina","Armenia","Aruba","Australia","Austria","Azerbaijan","Bahamas (the)","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bermuda","Bhutan","Bolivia (Plurinational State of)","Bonaire, Sint Eustatius and Saba","Bosnia and Herzegovina","Botswana","Bouvet Island","Brazil","British Indian Ocean Territory (the)","Brunei Darussalam","Bulgaria","Burkina Faso","Burundi","Cabo Verde","Cambodia","Cameroon","Canada","Cayman Islands (the)","Central African Republic (the)","Chad","Chile","China","Christmas Island","Cocos (Keeling) Islands (the)","Colombia","Comoros (the)","Congo (the Democratic Republic of the)","Congo (the)","Cook Islands (the)","Costa Rica","Croatia","Cuba","Curaçao","Cyprus","Czechia","Côte d'Ivoire","Denmark","Djibouti","Dominica","Dominican Republic (the)","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Eswatini","Ethiopia","Falkland Islands (the) [Malvinas]","Faroe Islands (the)","Fiji","Finland","France","French Guiana","French Polynesia","French Southern Territories (the)","Gabon","Gambia (the)","Georgia","Germany","Ghana","Gibraltar","Greece","Greenland","Grenada","Guadeloupe","Guam","Guatemala","Guernsey","Guinea","Guinea-Bissau","Guyana","Haiti","Heard Island and McDonald Islands","Holy See (the)","Honduras","Hong Kong","Hungary","Iceland","India","Indonesia","Iran (Islamic Republic of)","Iraq","Ireland","Isle of Man","Israel","Italy","Jamaica","Japan","Jersey","Jordan","Kazakhstan","Kenya","Kiribati","Korea (the Democratic People's Republic of)","Korea (the Republic of)","Kuwait","Kyrgyzstan","Lao People's Democratic Republic (the)","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macao","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands (the)","Martinique","Mauritania","Mauritius","Mayotte","Mexico","Micronesia (Federated States of)","Moldova (the Republic of)","Monaco","Mongolia","Montenegro","Montserrat","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands (the)","New Caledonia","New Zealand","Nicaragua","Niger (the)","Nigeria","Niue","Norfolk Island","Northern Mariana Islands (the)","Norway","Oman","Pakistan","Palau","Palestine, State of","Panama","Papua New Guinea","Paraguay","Peru","Philippines (the)","Pitcairn","Poland","Portugal","Puerto Rico","Qatar","Republic of North Macedonia","Romania","Russian Federation (the)","Rwanda","Réunion","Saint Barthélemy","Saint Helena, Ascension and Tristan da Cunha","Saint Kitts and Nevis","Saint Lucia","Saint Martin (French part)","Saint Pierre and Miquelon","Saint Vincent and the Grenadines","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Sint Maarten (Dutch part)","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Georgia and the South Sandwich Islands","South Sudan","Spain","Sri Lanka","Sudan (the)","Suriname","Svalbard and Jan Mayen","Sweden","Switzerland","Syrian Arab Republic","Taiwan (Province of China)","Tajikistan","Tanzania, United Republic of","Thailand","Timor-Leste","Togo","Tokelau","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Turks and Caicos Islands (the)","Tuvalu","Uganda","Ukraine","United Arab Emirates (the)","United Kingdom of Great Britain and Northern Ireland (the)","United States Minor Outlying Islands (the)","Uruguay","Uzbekistan","Vanuatu","Venezuela (Bolivarian Republic of)","Viet Nam","Virgin Islands (British)","Virgin Islands (U.S.)","Wallis and Futuna","Western Sahara","Yemen","Zambia","Zimbabwe","Åland Islands"],O=["AL","AK","AS","AZ","AR","CA","CO","CT","DE","DC","FM","FL","GA","GU","HI","ID","IL","IN","IA","KS","KY","LA","ME","MH","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","MP","OH","OK","OR","PW","PA","PR","RI","SC","SD","TN","TX","UT","VT","VI","VA","WA","WV","WI","WY"];function j(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,r){if(!e)return;if("string"==typeof e)return I(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return I(e,r)}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){u=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(u)throw o}}}}function I(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}var T=e(Object.freeze({__proto__:null,default:function(e){var u=i(""),f=n(u,2),y=f[0],d=f[1],m=i(!1),h=n(m,2),b=h[0],g=h[1],w=i([]),v=n(w,2),S=v[0],x=v[1],A=i([]),_=n(A,2),I=_[0],T=_[1],C=function(){var e=r(t.mark((function e(){var r,n;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P("/api/auth/data",{action:"get-occupation",type:"Healthcare"});case 2:return r=e.sent,e.next=5,P("/api/auth/data",{action:"get-occupation",type:"Non-Healthcare"});case 5:n=e.sent,x(r),T(n);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();o((function(){e.user?window.location.href="/auth/profile":C()}),[]);var F=i(!0),N=n(F,2),R=N[0],q=N[1],M=i(null),U=n(M,2),D=U[0],G=U[1],B=function(){var e=r(t.mark((function e(r){var n,a;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.target.value,e.next=3,P("/api/auth/data",{action:"get-fields",occupation:n});case 3:a=e.sent,G(a);case 5:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),z=i(!1),L=n(z,2),V=L[0],W=L[1];function $(){return($=r(t.mark((function e(r){var n,a,o,i,u,c;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:event.preventDefault(),W(!0),y&&d(""),n=new FormData(r.currentTarget),a={},o=j(n.keys());try{for(o.s();!(i=o.n()).done;)u=i.value,a[u]=n.get(u)}catch(e){o.e(e)}finally{o.f()}return e.prev=7,e.next=10,fetch("/api/auth/signup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});case 10:if(c=e.sent,W(!1),200!==c.status){e.next=16;break}window.location.href="/",e.next=21;break;case 16:return e.t0=Error,e.next=19,c.text();case 19:throw e.t1=e.sent,new e.t0(e.t1);case 21:e.next=26;break;case 23:e.prev=23,e.t2=e.catch(7),d(e.t2.message);case 26:case"end":return e.stop()}}),e,null,[[7,23]])})))).apply(this,arguments)}return a.createElement(c,{className:"login",id:"signupForm",onSubmit:function(e){return $.apply(this,arguments)}},a.createElement("h1",null,"Sign Up"),a.createElement("hr",null),E({name:"email",label:"Email",type:"email",required:!0}),a.createElement(c.Row,null,E({name:"password",label:"Password",type:"password",groupType:l,required:!0}),E({name:"rpassword",label:"Retype Password",type:"password",groupType:l,required:!0})),a.createElement(c.Row,null,E({name:"first_name",label:"First Name",type:"text",groupType:l,required:!0}),E({name:"last_name",label:"Last Name",type:"text",groupType:l,required:!0})),a.createElement(c.Row,null,E({name:"country",label:"Country",type:"select",required:!0,groupType:l,options:k,handleChanged:function(e){"United States"===e.target.value?g(!0):g(!1)}}),b&&E({name:"state",label:"State",type:"select",required:!0,groupType:l,options:O})),a.createElement(c.Row,null,b&&E({name:"zip",label:"Working Zip Code",type:"text",required:!0,groupType:l}),b&&E({name:"phone",label:"Phone",type:"text",required:!0,groupType:l})),E({name:"healthcare_professional",label:"Are You a Health Care Professional?",type:"radio",required:!0,options:[{value:"Y",label:"Yes",checked:!0},{value:"N",label:"No",checked:!1}],handleChanged:function(e){"Y"===e.target.value?q(!0):q(!1),document.getElementById("occupation").value="",G(null)},default_value:"Y"}),R&&E({name:"occupation",label:"Occupation",type:"select",required:!0,options:S,handleChanged:B}),!R&&E({name:"occupation",label:"Non Provider Role",type:"select",required:!0,options:I,handleChanged:B}),D&&D.map((function(e){return E({name:e.name,label:e.label,type:e.type,required:1===e.required,options:e.options})})),E({name:"agree",label:"Terms & Conditions | Privacy Policy",type:"checkbox",required:!0,options:[{label:'By registering you agree to our <a href="/terms" style="color:blue">Terms and Conditions</a> and <a href="/privacy" style="color:blue">Privacy Policy</a> and understand that you will be receiving email communications',value:"Y"}]}),a.createElement("hr",null),a.createElement(c.Row,null,a.createElement(c.Group,{as:l},a.createElement("a",{href:"/auth/login"},"I already have an account")),a.createElement(c.Group,{as:l,className:"text-right"},!V&&a.createElement(s,{type:"submit"},"Sign Up"),V&&a.createElement(s,{variant:"primary",disabled:!0},a.createElement(p,{as:"span",animation:"border",role:"status","aria-hidden":"true",size:"sm"}),a.createElement("span",{className:"sr-only"},"Loading...")))),y&&a.createElement("p",{className:"error"},y),a.createElement("style",{jsx:"true".toString()}," \n .login {\n margin: 0 auto;\n padding: 1rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n }\n .error {\n color: red;\n margin: 1rem 0 0;\n }\n "))}}));function C(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,r){if(!e)return;if("string"==typeof e)return F(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return F(e,r)}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){u=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(u)throw o}}}}function F(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}var N=Object.freeze({__proto__:null,default:function(e){var u=i(""),f=n(u,2),y=f[0],d=f[1],m=i(!1),h=n(m,2),b=h[0],g=h[1],w=i([]),v=n(w,2),S=v[0],x=v[1],A=i([]),_=n(A,2),j=_[0],I=_[1],T=i(null),F=n(T,2),N=F[0],R=F[1],q=e.user,M=function(){var e=r(t.mark((function e(){var r,n,a,o;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P("/api/auth/data",{action:"get-occupation",type:"Healthcare"});case 2:return r=e.sent,e.next=5,P("/api/auth/data",{action:"get-occupation",type:"Non-Healthcare"});case 5:return n=e.sent,a=r.find((function(e){return e.value===q.shared.occupation_id})),q.shared.healthcare_professional=a?"Y":"N",x(r),I(n),R(q),"United States"===q.shared.country?g(!0):g(!1),e.next=14,P("/api/auth/data",{action:"get-fields",occupation:q.shared.occupation_id});case 14:o=e.sent,W(o);case 16:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();o((function(){q?M():window.location.href="/auth/login"}),[]);var U=i(!0),D=n(U,2),G=D[0],B=D[1],z=i(null),L=n(z,2),V=L[0],W=L[1],$=function(){var e=r(t.mark((function e(r){var n,a;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.target.value,e.next=3,P("/api/auth/data",{action:"get-fields",occupation:n});case 3:a=e.sent,W(a);case 5:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),H=i(""),K=n(H,2),Y=K[0],J=K[1],Z=i(!1),X=n(Z,2),Q=X[0],ee=X[1];function re(){return(re=r(t.mark((function e(r){var n,a,o,i,u,c;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:event.preventDefault(),d(""),J(""),ee(!0),n=new FormData(r.currentTarget),a={},o=C(n.keys());try{for(o.s();!(i=o.n()).done;)u=i.value,a[u]=n.get(u)}catch(e){o.e(e)}finally{o.f()}return a.user_id=N.id,e.prev=9,e.next=12,fetch("/api/auth/profile",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});case 12:if(c=e.sent,ee(!1),200!==c.status){e.next=18;break}J("Your request has been processed successfully!"),e.next=23;break;case 18:return e.t0=Error,e.next=21,c.text();case 21:throw e.t1=e.sent,new e.t0(e.t1);case 23:e.next=28;break;case 25:e.prev=25,e.t2=e.catch(9),d(e.t2.message);case 28:case"end":return e.stop()}}),e,null,[[9,25]])})))).apply(this,arguments)}return a.createElement(c,{className:"login",id:"signupForm",onSubmit:function(e){return re.apply(this,arguments)}},a.createElement("h1",null,"Profile"),a.createElement("hr",null),N?a.createElement(a.Fragment,null,E({name:"email",label:"Email",type:"email",required:!0,readonly:!0,default_value:N.email}),a.createElement(c.Row,null,E({name:"password",label:"Password",type:"password",groupType:l,required:!1}),E({name:"rpassword",label:"Retype Password",type:"password",groupType:l,required:!1})),a.createElement(c.Row,null,E({name:"first_name",label:"First Name",type:"text",groupType:l,required:!0,default_value:N.shared.first_name}),E({name:"last_name",label:"Last Name",type:"text",groupType:l,required:!0,default_value:N.shared.last_name})),a.createElement(c.Row,null,E({name:"country",label:"Country",type:"select",required:!0,groupType:l,options:k,handleChanged:function(e){"United States"===e.target.value?g(!0):g(!1)},default_value:N.shared.country}),b&&E({name:"state",label:"State",type:"select",required:!0,groupType:l,options:O,default_value:N.shared.state})),a.createElement(c.Row,null,b&&E({name:"zip",label:"Working Zip Code",type:"text",required:!0,groupType:l,default_value:N.shared.zip}),b&&E({name:"phone",label:"Phone",type:"text",required:!0,groupType:l,default_value:N.shared.phone})),E({name:"healthcare_professional",label:"Are You a Health Care Professional?",type:"radio",required:!0,options:[{value:"Y",label:"Yes",checked:!0},{value:"N",label:"No",checked:!1}],default_value:N.shared.healthcare_professional,handleChanged:function(e){"Y"===e.target.value?B(!0):B(!1),document.getElementById("occupation").value="",W(null)}}),G&&E({name:"occupation",label:"Occupation",type:"select",required:!0,options:S,handleChanged:$,default_value:N.shared.occupation_id}),!G&&E({name:"occupation",label:"Non Provider Role",type:"select",required:!0,options:j,handleChanged:$,default_value:N.shared.occupation_id}),V&&V.map((function(e){return E({name:e.name,label:e.label,type:e.type,required:1===e.required,options:e.options,default_value:N.shared[e.name]})})),E({name:"agree",label:"Terms & Conditions | Privacy Policy",type:"checkbox",required:!0,options:[{label:'By registering you agree to our <a href="/terms">Terms and Conditions</a> and <a href="/privacy">Privacy Policy</a> and understand that you will be receiving email communications',value:"Y"}]}),a.createElement("hr",null),a.createElement(c.Row,null,a.createElement(c.Group,{as:l},!Q&&a.createElement(s,{type:"submit"},"Update"),Q&&a.createElement(s,{variant:"primary",disabled:!0},a.createElement(p,{as:"span",animation:"border",role:"status","aria-hidden":"true",size:"sm"}),a.createElement("span",{className:"sr-only"},"Loading..."))))):a.createElement(p,{as:"span",animation:"border",role:"status","aria-hidden":"true",size:"sm"}),y&&a.createElement("p",{className:"error"},y),Y&&a.createElement("p",{className:"success"},Y),a.createElement("style",{jsx:"true".toString()}," \n .login {\n margin: 0 auto;\n padding: 1rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n }\n .error {\n color: red;\n margin: 1rem 0 0;\n }\n .success {\n color: green;\n margin: 1rem 0 0;\n }\n "))}}),R=e(N);function q(e){if(e.cookies)return e.cookies;var r=e.headers?e.headers.cookie:null;return m(r||"")}function M(e){return q(e).token}var U=e(Object.freeze({__proto__:null,setTokenCookie:function(e,r,t){var n=[];n.push(d("token",r,{path:"/"})),n.push(d("eKey",t,{path:"/"})),e.setHeader("Set-Cookie",n)},removeTokenCookie:function(e){var r=[];r.push(d("token","",{maxAge:-1,expires:new Date(Date.now()-288e5),path:"/"})),r.push(d("eKey","",{maxAge:-1,expires:new Date(Date.now()-288e5),path:"/"})),e.setHeader("Set-Cookie",r)},parseCookies:q,getTokenCookie:M})),D=e(A);function G(){return(G=r(t.mark((function e(r){var n,a;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=M(r))){e.next=4;break}return a=new Buffer(n,"base64"),e.abrupt("return",JSON.parse(a.toString("utf8")));case 4:return e.abrupt("return",null);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var B,z=e(Object.freeze({__proto__:null,encryptSession:function(e){return new Buffer(JSON.stringify(e)).toString("base64")},getSession:function(e){return G.apply(this,arguments)}})),L=Object.prototype.toString,V=function(e){var r=L.call(e),t="[object Arguments]"===r;return t||(t="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===L.call(e.callee)),t};if(!Object.keys){var W=Object.prototype.hasOwnProperty,$=Object.prototype.toString,H=V,K=Object.prototype.propertyIsEnumerable,Y=!K.call({toString:null},"toString"),J=K.call((function(){}),"prototype"),Z=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],X=function(e){var r=e.constructor;return r&&r.prototype===e},Q={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},ee=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!Q["$"+e]&&W.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{X(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();B=function(e){var r=null!==e&&"object"==typeof e,t="[object Function]"===$.call(e),n=H(e),a=r&&"[object String]"===$.call(e),o=[];if(!r&&!t&&!n)throw new TypeError("Object.keys called on a non-object");var i=J&&t;if(a&&e.length>0&&!W.call(e,0))for(var u=0;u<e.length;++u)o.push(String(u));if(n&&e.length>0)for(var c=0;c<e.length;++c)o.push(String(c));else for(var l in e)i&&"prototype"===l||!W.call(e,l)||o.push(String(l));if(Y)for(var s=function(e){if("undefined"==typeof window||!ee)return X(e);try{return X(e)}catch(e){return!1}}(e),p=0;p<Z.length;++p)s&&"constructor"===Z[p]||!W.call(e,Z[p])||o.push(Z[p]);return o}}var re=B,te=Array.prototype.slice,ne=V,ae=Object.keys,oe=ae?function(e){return ae(e)}:re,ie=Object.keys;oe.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return ne(e)?ie(te.call(e)):ie(e)})}else Object.keys=oe;return Object.keys||oe};var ue=oe,ce="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),le=Object.prototype.toString,se=Array.prototype.concat,pe=Object.defineProperty,fe=pe&&function(){var e={};try{for(var r in pe(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),ye=function(e,r,t,n){var a;(!(r in e)||"function"==typeof(a=n)&&"[object Function]"===le.call(a)&&n())&&(fe?pe(e,r,{configurable:!0,enumerable:!1,value:t,writable:!0}):e[r]=t)},de=function(e,r){var t=arguments.length>2?arguments[2]:{},n=ue(r);ce&&(n=se.call(n,Object.getOwnPropertySymbols(r)));for(var a=0;a<n.length;a+=1)ye(e,n[a],r[n[a]],t[n[a]])};de.supportsDescriptors=!!fe;var me=de,he={exports:{}},be={exports:{}},ge="Function.prototype.bind called on incompatible ",we=Array.prototype.slice,ve=Object.prototype.toString,Se=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==ve.call(r))throw new TypeError(ge+r);for(var t,n=we.call(arguments,1),a=function(){if(this instanceof t){var a=r.apply(this,n.concat(we.call(arguments)));return Object(a)===a?a:this}return r.apply(e,n.concat(we.call(arguments)))},o=Math.max(0,r.length-n.length),i=[],u=0;u<o;u++)i.push("$"+u);if(t=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var c=function(){};c.prototype=r.prototype,t.prototype=new c,c.prototype=null}return t},Ee=Function.prototype.bind||Se,Pe=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},r=Symbol("test"),t=Object(r);if("string"==typeof r)return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;for(r in e[r]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==r)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,r);if(42!==a.value||!0!==a.enumerable)return!1}return!0},xe="undefined"!=typeof Symbol&&Symbol,Ae=Pe,_e=function(){return"function"==typeof xe&&("function"==typeof Symbol&&("symbol"==typeof xe("foo")&&("symbol"==typeof Symbol("bar")&&Ae())))},ke=Ee.call(Function.call,Object.prototype.hasOwnProperty),Oe=SyntaxError,je=Function,Ie=TypeError,Te=function(e){try{return je('"use strict"; return ('+e+").constructor;")()}catch(e){}},Ce=Object.getOwnPropertyDescriptor;if(Ce)try{Ce({},"")}catch(e){Ce=null}var Fe=function(){throw new Ie},Ne=Ce?function(){try{return Fe}catch(e){try{return Ce(arguments,"callee").get}catch(e){return Fe}}}():Fe,Re=_e(),qe=Object.getPrototypeOf||function(e){return e.__proto__},Me={},Ue="undefined"==typeof Uint8Array?undefined:qe(Uint8Array),De={"%AggregateError%":"undefined"==typeof AggregateError?undefined:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?undefined:ArrayBuffer,"%ArrayIteratorPrototype%":Re?qe([][Symbol.iterator]()):undefined,"%AsyncFromSyncIteratorPrototype%":undefined,"%AsyncFunction%":Me,"%AsyncGenerator%":Me,"%AsyncGeneratorFunction%":Me,"%AsyncIteratorPrototype%":Me,"%Atomics%":"undefined"==typeof Atomics?undefined:Atomics,"%BigInt%":"undefined"==typeof BigInt?undefined:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?undefined:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?undefined:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?undefined:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?undefined:FinalizationRegistry,"%Function%":je,"%GeneratorFunction%":Me,"%Int8Array%":"undefined"==typeof Int8Array?undefined:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?undefined:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?undefined:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Re?qe(qe([][Symbol.iterator]())):undefined,"%JSON%":"object"==typeof JSON?JSON:undefined,"%Map%":"undefined"==typeof Map?undefined:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Re?qe((new Map)[Symbol.iterator]()):undefined,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?undefined:Promise,"%Proxy%":"undefined"==typeof Proxy?undefined:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?undefined:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?undefined:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Re?qe((new Set)[Symbol.iterator]()):undefined,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?undefined:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Re?qe(""[Symbol.iterator]()):undefined,"%Symbol%":Re?Symbol:undefined,"%SyntaxError%":Oe,"%ThrowTypeError%":Ne,"%TypedArray%":Ue,"%TypeError%":Ie,"%Uint8Array%":"undefined"==typeof Uint8Array?undefined:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?undefined:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?undefined:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?undefined:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?undefined:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?undefined:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?undefined:WeakSet},Ge=function e(r){var t;if("%AsyncFunction%"===r)t=Te("async function () {}");else if("%GeneratorFunction%"===r)t=Te("function* () {}");else if("%AsyncGeneratorFunction%"===r)t=Te("async function* () {}");else if("%AsyncGenerator%"===r){var n=e("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if("%AsyncIteratorPrototype%"===r){var a=e("%AsyncGenerator%");a&&(t=qe(a.prototype))}return De[r]=t,t},Be={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ze=Ee,Le=ke,Ve=ze.call(Function.call,Array.prototype.concat),We=ze.call(Function.apply,Array.prototype.splice),$e=ze.call(Function.call,String.prototype.replace),He=ze.call(Function.call,String.prototype.slice),Ke=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ye=/\\(\\)?/g,Je=function(e){var r=He(e,0,1),t=He(e,-1);if("%"===r&&"%"!==t)throw new Oe("invalid intrinsic syntax, expected closing `%`");if("%"===t&&"%"!==r)throw new Oe("invalid intrinsic syntax, expected opening `%`");var n=[];return $e(e,Ke,(function(e,r,t,a){n[n.length]=t?$e(a,Ye,"$1"):r||e})),n},Ze=function(e,r){var t,n=e;if(Le(Be,n)&&(n="%"+(t=Be[n])[0]+"%"),Le(De,n)){var a=De[n];if(a===Me&&(a=Ge(n)),void 0===a&&!r)throw new Ie("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:t,name:n,value:a}}throw new Oe("intrinsic "+e+" does not exist!")},Xe=function(e,r){if("string"!=typeof e||0===e.length)throw new Ie("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof r)throw new Ie('"allowMissing" argument must be a boolean');var t=Je(e),n=t.length>0?t[0]:"",a=Ze("%"+n+"%",r),o=a.name,i=a.value,u=!1,c=a.alias;c&&(n=c[0],We(t,Ve([0,1],c)));for(var l=1,s=!0;l<t.length;l+=1){var p=t[l],f=He(p,0,1),y=He(p,-1);if(('"'===f||"'"===f||"`"===f||'"'===y||"'"===y||"`"===y)&&f!==y)throw new Oe("property names with quotes must have matching quotes");if("constructor"!==p&&s||(u=!0),Le(De,o="%"+(n+="."+p)+"%"))i=De[o];else if(null!=i){if(!(p in i)){if(!r)throw new Ie("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ce&&l+1>=t.length){var d=Ce(i,p);i=(s=!!d)&&"get"in d&&!("originalValue"in d.get)?d.get:i[p]}else s=Le(i,p),i=i[p];s&&!u&&(De[o]=i)}}return i};!function(e){var r=Ee,t=Xe,n=t("%Function.prototype.apply%"),a=t("%Function.prototype.call%"),o=t("%Reflect.apply%",!0)||r.call(a,n),i=t("%Object.getOwnPropertyDescriptor%",!0),u=t("%Object.defineProperty%",!0),c=t("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=o(r,a,arguments);if(i&&u){var n=i(t,"length");n.configurable&&u(t,"length",{value:1+c(0,e.length-(arguments.length-1))})}return t};var l=function(){return o(r,n,arguments)};u?u(e.exports,"apply",{value:l}):e.exports.apply=l}(be);var Qe=Xe,er=be.exports,rr=er(Qe("String.prototype.indexOf")),tr=function(e,r){var t=Qe(e,!!r);return"function"==typeof t&&rr(e,".prototype.")>-1?er(t):t},nr=Xe("%Array%"),ar=!nr.isArray&&tr("Object.prototype.toString"),or=nr.isArray||function(e){return"[object Array]"===ar(e)},ir=Xe("%Object.defineProperty%",!0);if(ir)try{ir({},"a",{value:1})}catch(e){ir=null}var ur=Object.defineProperty&&0===Object.defineProperty([],"length",{value:1}).length,cr=ur&&or,lr=tr("Object.prototype.propertyIsEnumerable"),sr=Xe,pr=sr("%TypeError%"),fr=sr("%SyntaxError%"),yr=ke,dr={"Property Descriptor":function(e,r){if("Object"!==e(r))return!1;var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in r)if(yr(r,n)&&!t[n])return!1;var a=yr(r,"[[Value]]"),o=yr(r,"[[Get]]")||yr(r,"[[Set]]");if(a&&o)throw new pr("Property Descriptors may not be both accessor and data descriptors");return!0}},mr=function(e,r,t,n){var a=dr[r];if("function"!=typeof a)throw new fr("unknown record type: "+r);if(!a(e,n))throw new pr(t+" must be a "+r)},hr=function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},br=function(e){return"symbol"==typeof e?"Symbol":"bigint"==typeof e?"BigInt":hr(e)},gr=mr,wr=br,vr=Xe("%Object.getOwnPropertyDescriptor%",!0);if(vr)try{vr([],"length")}catch(e){vr=null}var Sr,Er,Pr,xr,Ar=vr,_r=Xe("%Array%"),kr=!_r.isArray&&tr("Object.prototype.toString"),Or=_r.isArray||function(e){return"[object Array]"===kr(e)},jr=function(e){return"string"==typeof e||"symbol"==typeof e},Ir=tr,Tr=Pe()&&!!Symbol.toStringTag;if(Tr){Sr=Ir("Object.prototype.hasOwnProperty"),Er=Ir("RegExp.prototype.exec"),Pr={};var Cr=function(){throw Pr};xr={toString:Cr,valueOf:Cr},"symbol"==typeof Symbol.toPrimitive&&(xr[Symbol.toPrimitive]=Cr)}var Fr,Nr,Rr=Ir("Object.prototype.toString"),qr=Object.getOwnPropertyDescriptor,Mr=Tr?function(e){if(!e||"object"!=typeof e)return!1;var r=qr(e,"lastIndex");if(!(r&&Sr(r,"value")))return!1;try{Er(e,xr)}catch(e){return e===Pr}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===Rr(e)},Ur=function(e){return!!e},Dr=Xe("%Symbol.match%",!0),Gr=Mr,Br=Ur,zr=Function.prototype.toString,Lr="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof Lr&&"function"==typeof Object.defineProperty)try{Fr=Object.defineProperty({},"length",{get:function(){throw Nr}}),Nr={},Lr((function(){throw 42}),null,Fr)}catch(e){e!==Nr&&(Lr=null)}else Lr=null;var Vr=/^\s*class\b/,Wr=function(e){try{var r=zr.call(e);return Vr.test(r)}catch(e){return!1}},$r=Object.prototype.toString,Hr="function"==typeof Symbol&&!!Symbol.toStringTag,Kr="object"==typeof document&&void 0===document.all&&void 0!==document.all?document.all:{},Yr=Lr?function(e){if(e===Kr)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{Lr(e,null,Fr)}catch(e){if(e!==Nr)return!1}return!Wr(e)}:function(e){if(e===Kr)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(Hr)return function(e){try{return!Wr(e)&&(zr.call(e),!0)}catch(e){return!1}}(e);if(Wr(e))return!1;var r=$r.call(e);return"[object Function]"===r||"[object GeneratorFunction]"===r},Jr=ke,Zr=Xe("%TypeError%"),Xr=br,Qr=Ur,et=Yr,rt=Ar,tt=Xe("%TypeError%"),nt=tr("Object.prototype.propertyIsEnumerable"),at=ke,ot=Or,it=jr,ut=function(e){if(!e||"object"!=typeof e)return!1;if(Dr){var r=e[Dr];if(void 0!==r)return Br(r)}return Gr(e)},ct=function(e){if("Object"!==Xr(e))throw new Zr("ToPropertyDescriptor requires an object");var r={};if(Jr(e,"enumerable")&&(r["[[Enumerable]]"]=Qr(e.enumerable)),Jr(e,"configurable")&&(r["[[Configurable]]"]=Qr(e.configurable)),Jr(e,"value")&&(r["[[Value]]"]=e.value),Jr(e,"writable")&&(r["[[Writable]]"]=Qr(e.writable)),Jr(e,"get")){var t=e.get;if(void 0!==t&&!et(t))throw new Zr("getter must be a function");r["[[Get]]"]=t}if(Jr(e,"set")){var n=e.set;if(void 0!==n&&!et(n))throw new Zr("setter must be a function");r["[[Set]]"]=n}if((Jr(r,"[[Get]]")||Jr(r,"[[Set]]"))&&(Jr(r,"[[Value]]")||Jr(r,"[[Writable]]")))throw new Zr("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return r},lt=br,st=ke,pt=mr,ft=br,yt=Xe("%Object%"),dt=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e},mt=yt.preventExtensions,ht=yt.isExtensible,bt=mt?function(e){return!dt(e)&&ht(e)}:function(e){return!dt(e)},gt=Number.isNaN||function(e){return e!=e},wt=Xe("%TypeError%"),vt=function(e,r,t,n,a,o){if(!ir){if(!e(o))return!1;if(!o["[[Configurable]]"]||!o["[[Writable]]"])return!1;if(a in n&&lr(n,a)!==!!o["[[Enumerable]]"])return!1;var i=o["[[Value]]"];return n[a]=i,r(n[a],i)}return ur&&"length"===a&&"[[Value]]"in o&&cr(n)&&n.length!==o["[[Value]]"]?(n.length=o["[[Value]]"],n.length===o["[[Value]]"]):(ir(n,a,t(o)),!0)},St=function(e){if(void 0===e)return e;gr(wr,"Property Descriptor","Desc",e);var r={};return"[[Value]]"in e&&(r.value=e["[[Value]]"]),"[[Writable]]"in e&&(r.writable=e["[[Writable]]"]),"[[Get]]"in e&&(r.get=e["[[Get]]"]),"[[Set]]"in e&&(r.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(r.enumerable=e["[[Enumerable]]"]),"[[Configurable]]"in e&&(r.configurable=e["[[Configurable]]"]),r},Et=function(e,r){if("Object"!==lt(e))throw new tt("Assertion failed: O must be an Object");if(!it(r))throw new tt("Assertion failed: P must be a Property Key");if(at(e,r)){if(!rt){var t=ot(e)&&"length"===r,n=ut(e)&&"lastIndex"===r;return{"[[Configurable]]":!(t||n),"[[Enumerable]]":nt(e,r),"[[Value]]":e[r],"[[Writable]]":!0}}return ct(rt(e,r))}},Pt=function(e){return void 0!==e&&(pt(ft,"Property Descriptor","Desc",e),!(!st(e,"[[Value]]")&&!st(e,"[[Writable]]")))},xt=bt,At=jr,_t=function(e,r){return e===r?0!==e||1/e==1/r:gt(e)&&gt(r)},kt=br,Ot=Xe("%TypeError%"),jt=function(e,r){if(null==e)throw new Ot(r||"Cannot call method on "+e);return e},It=Xe("%Object%"),Tt=jt,Ct=function(e,r,t){if("Object"!==kt(e))throw new wt("Assertion failed: Type(O) is not Object");if(!At(r))throw new wt("Assertion failed: IsPropertyKey(P) is not true");var n=Et(e,r),a=!n||xt(e);return!(n&&(!n["[[Writable]]"]||!n["[[Configurable]]"])||!a)&&vt(Pt,_t,St,e,r,{"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":t,"[[Writable]]":!0})},Ft=Yr,Nt=jt,Rt=function(e){return Tt(e),It(e)},qt=tr,Mt=Object.getOwnPropertyDescriptor,Ut=Object.getOwnPropertyNames,Dt=Object.getOwnPropertySymbols,Gt=qt("Array.prototype.concat"),Bt=qt("Array.prototype.reduce"),zt=Dt?function(e){return Gt(Ut(e),Dt(e))}:Ut,Lt=Ft(Mt)&&Ft(Ut),Vt=function(e){if(Nt(e),!Lt)throw new TypeError("getOwnPropertyDescriptors requires Object.getOwnPropertyDescriptor");var r=Rt(e);return Bt(zt(r),(function(e,t){var n=Mt(r,t);return void 0!==n&&Ct(e,t,n),e}),{})},Wt=Vt,$t=function(){return"function"==typeof Object.getOwnPropertyDescriptors?Object.getOwnPropertyDescriptors:Wt},Ht=$t,Kt=me,Yt=me,Jt=Vt,Zt=$t,Xt=function(){var e=Ht();return Kt(Object,{getOwnPropertyDescriptors:e},{getOwnPropertyDescriptors:function(){return Object.getOwnPropertyDescriptors!==e}}),e},Qt=(0,be.exports)(Zt(),Object);Yt(Qt,{getPolyfill:Zt,implementation:Jt,shim:Xt});var en=Qt,rn=tr,tn="function"==typeof Object.defineProperty&&"function"==typeof Object.defineProperties,nn=[].__proto__===Array.prototype;if(!tn||!nn)throw new TypeError("util.promisify requires a true ES5 environment, that also supports `__proto__`");var an=en;if("function"!=typeof Promise)throw new TypeError("`Promise` must be globally available for util.promisify to work.");var on=rn,un=on("Array.prototype.slice"),cn=on("Array.prototype.concat"),ln=on("Array.prototype.forEach"),sn=_e(),pn=sn?Symbol("util.promisify.custom"):null,fn=sn?Symbol("customPromisifyArgs"):null;he.exports=function(e){if("function"!=typeof e){var r=new TypeError('The "original" argument must be of type function');throw r.name="TypeError [ERR_INVALID_ARG_TYPE]",r.code="ERR_INVALID_ARG_TYPE",r}if(sn&&e[pn]){var t=e[pn];if("function"!=typeof t)throw new TypeError("The [util.promisify.custom] property must be a function");return Object.defineProperty(t,pn,{configurable:!0,enumerable:!1,value:t,writable:!1}),t}var n=e[fn],a=function(){var r=un(arguments),t=this;return new Promise((function(a,o){e.apply(t,cn(r,(function(e){var r=arguments.length>1?un(arguments,1):[];if(e)o(e);else if(void 0!==n&&r.length>1){var t={};ln(n,(function(e,n){t[e]=r[n]})),a(t)}else a(r[0])})))}))};return a.__proto__=e.__proto__,Object.defineProperty(a,pn,{configurable:!0,enumerable:!1,value:a,writable:!1}),Object.defineProperties(a,an(e))},he.exports.custom=pn,he.exports.customPromisifyArgs=fn;var yn=g,dn=he.exports,mn=function(){return"function"==typeof yn.promisify?yn.promisify:dn},hn=g,bn=mn,gn=me,wn=g,vn=he.exports,Sn=mn,En=Sn(),Pn=function(){var e=bn();return e!==hn.promisify&&Object.defineProperty(hn,"promisify",{configurable:!0,enumerable:!0,value:e,writable:!0}),e},xn=function(e){return En.apply(wn,arguments)};gn(xn,{custom:En.custom,customPromisifyArgs:En.customPromisifyArgs,getPolyfill:Sn,implementation:vn,shim:Pn});var An=b,_n=g;xn.shim();var kn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e||(e={host:"sanity-datasource.cluster-crao688bsrdh.us-east-1.rds.amazonaws.com",user:"nasp",password:"uRNkF9SkfXQs6AKK",database:"user"});var r=An.createConnection(e);return{query:function(e,t){return _n.promisify(r.query).call(r,e,t)},beginTransaction:function(){return _n.promisify(r.beginTransaction).call(r)},commit:function(){return _n.promisify(r.commit).call(r)},rollback:function(){return _n.promisify(r.rollback).call(r)},close:function(){return _n.promisify(r.end).call(r)}}},On=kn,jn={host:"sanity-datasource.cluster-crao688bsrdh.us-east-1.rds.amazonaws.com",user:"nasp",password:"uRNkF9SkfXQs6AKK",database:"user"};function In(e){return Tn.apply(this,arguments)}function Tn(){return Tn=r(t.mark((function e(r){var n,a,o,i,u,c,l,s,p=arguments;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=p.length>1&&void 0!==p[1]?p[1]:null,a=null,e.prev=2,a=On(jn),o="\n select * \n from user \n where trim(lower(email)) = ?\n ",e.next=7,a.query(o,[r.toLowerCase().trim()]);case 7:if(i=e.sent,u=i.length>0?i[0]:null){e.next=11;break}throw new Error("Invalid credential provided");case 11:if(!n){e.next=16;break}if(c=w(n),c===u.password){e.next=16;break}throw new Error("Password doesn't match");case 16:return o="\n select * \n from user_shared \n where user_id = ?\n ",e.next=19,a.query(o,[u.id]);case 19:return i=e.sent,l=i.length>0?i[0]:null,u.shared=l,o="\n select id \n from occupation \n where name = ?\n ",e.next=25,a.query(o,[l.occupation]);case 25:return i=e.sent,s=i.length>0?i[0].id:"",u.shared.occupation_id=s,e.next=30,a.close();case 30:return e.abrupt("return",{error:"",user:u});case 33:if(e.prev=33,e.t0=e.catch(2),!a){e.next=38;break}return e.next=38,a.close();case 38:return e.abrupt("return",{error:e.t0.message,user:null});case 39:case"end":return e.stop()}}),e,null,[[2,33]])}))),Tn.apply(this,arguments)}function Cn(e){return Fn.apply(this,arguments)}function Fn(){return Fn=r(t.mark((function e(r){var n,a,o,i,u,c,l,s;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=null,e.prev=1,Nn(r),n=On(jn),e.next=6,n.beginTransaction();case 6:if(r.user_id){e.next=8;break}throw new Error("Please provide user ID");case 8:return r.email=r.email.toLowerCase().trim(),a="\n select * \n from user \n where lower(trim(email)) = ?\n and id != ?\n ",e.next=12,n.query(a,[r.email,r.user_id]);case 12:if(!((o=e.sent)&&o.length>0)){e.next=15;break}throw new Error("Email already taken");case 15:if(!r.password){e.next=23;break}return i=w(r.password),a="\n update user \n set password = ?\n where user_id = ?\n ",e.next=20,n.query(a,[i,r.user_id]);case 20:if((o=e.sent)&&!(o.affectedRows<1)){e.next=23;break}throw new Error("Failed to update password");case 23:return a="show columns from user_shared",e.next=26,n.query(a);case 26:for(u=e.sent,c=0;c<u.length;c++)l=u[c].Field,void 0===r[l]&&(r[l]="");return a="\n update user_shared\n set \n first_name = ?,\n last_name = ?,\n country = ?,\n city = ?,\n state = ?,\n zip = ?,\n phone = ?,\n occupation = ?,\n primary_specialty = ?,\n area_of_practice = ?,\n work_place = ?,\n graduation_year = ?,\n medical_school = ?,\n npi = ?,\n role = ?,\n updated = current_timestamp\n where user_id = ?\n ",e.next=31,Rn(n,r.occupation);case 31:return s=e.sent,e.next=34,n.query(a,[r.first_name,r.last_name,r.country,r.city,r.state,r.zip,r.phone,s,r.primary_specialty,r.area_of_practice,r.work_place,r.graduation_year,r.medical_school,r.npi,r.role,r.user_id]);case 34:if((o=e.sent)&&!(o.affectedRows<1)){e.next=37;break}throw new Error("Failed to update user shared information record");case 37:return e.next=39,n.commit();case 39:return e.next=41,n.close();case 41:return n=null,e.abrupt("return",{error:"",user:In(r.email)});case 45:if(e.prev=45,e.t0=e.catch(1),console.log("error:",e.t0),!n){e.next=53;break}return e.next=51,n.rollback();case 51:return e.next=53,n.close();case 53:return e.abrupt("return",{error:e.t0.message,user:null});case 54:case"end":return e.stop()}}),e,null,[[1,45]])}))),Fn.apply(this,arguments)}var Nn=function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e.email)throw new Error("Email is required");if(r&&!e.password)throw new Error("Password is required");if(e.password&&e.password!==e.rpassword)throw new Error("Password does not match");if(!e.first_name)throw new Error("First name is required");if(!e.last_name)throw new Error("Last name is required");if(!e.country)throw new Error("Country is required");if("United States"===e.country){if(!e.state)throw new Error("State is required");if(!e.zip)throw new Error("Zip code is required");if(!e.phone)throw new Error("Phone is required")}},Rn=function(){var e=r(t.mark((function e(r,n){var a;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"\n select name\n from occupation \n where id = ?\n ",e.next=3,r.query("\n select name\n from occupation \n where id = ?\n ",[n]);case 3:if(!((a=e.sent)&&a.length>0)){e.next=6;break}return e.abrupt("return",a[0].name);case 6:throw new Error("Failed to get occupation name by ID: ".concat(n));case 7:case"end":return e.stop()}}),e)})));return function(r,t){return e.apply(this,arguments)}}();function qn(e){return Mn.apply(this,arguments)}function Mn(){return Mn=r(t.mark((function e(r){var n,a,o,i,u,c,l,s,p;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=null,e.prev=1,Nn(r,!0),n=On(jn),e.next=6,n.beginTransaction();case 6:return r.email=r.email.toLowerCase().trim(),a="\n select * \n from user \n where lower(trim(email)) = ?\n ",e.next=10,n.query(a,[r.email]);case 10:if(!((o=e.sent)&&o.length>0)){e.next=13;break}throw new Error("User already exists");case 13:return i=w(r.password),a="\n insert into user ( \n email, password, created\n ) values (\n ?, ?, current_timestamp\n )\n ",e.next=17,n.query(a,[r.email,i]);case 17:if((o=e.sent)&&!(o.insertId<1)){e.next=20;break}throw new Error("Failed to create user");case 20:return a="show columns from user_shared",e.next=23,n.query(a);case 23:for(u=e.sent,c=0;c<u.length;c++)l=u[c].Field,void 0===r[l]&&(r[l]="");return s=o.insertId,a="\n insert into user_shared (\n user_id, first_name, last_name, country, city, state, zip, phone, \n occupation, primary_specialty, area_of_practice, work_place, graduation_year, medical_school, \n npi, role, updated \n ) values (\n ?, ?, ?, ?, ?, ?, ?, ?,\n ?, ?, ?, ?, ?, ?,\n ?, ?, current_timestamp\n )\n ",e.next=29,Rn(n,r.occupation);case 29:return p=e.sent,e.next=32,n.query(a,[s,r.first_name,r.last_name,r.country,r.city,r.state,r.zip,r.phone,p,r.primary_specialty,r.area_of_practice,r.work_place,r.graduation_year,r.medical_school,r.npi,r.role]);case 32:if((o=e.sent)&&!(o.affectedRows<1)){e.next=35;break}throw new Error("Failed to create user shared information record");case 35:return e.next=37,n.commit();case 37:return e.next=39,n.close();case 39:return e.abrupt("return",{error:"",user:In(r.email)});case 42:if(e.prev=42,e.t0=e.catch(1),!n){e.next=49;break}return e.next=47,n.rollback();case 47:return e.next=49,n.close();case 49:return e.abrupt("return",{error:e.t0.message,user:null});case 50:case"end":return e.stop()}}),e,null,[[1,42]])}))),Mn.apply(this,arguments)}function Un(){return Un=r(t.mark((function e(r){var n;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,qn(r);case 2:if(!(n=e.sent).error){e.next=5;break}throw new Error(n.error);case 5:return e.abrupt("return",n.user);case 6:case"end":return e.stop()}}),e)}))),Un.apply(this,arguments)}function Dn(){return Dn=r(t.mark((function e(r){var n;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Cn(r);case 2:if(!(n=e.sent).error){e.next=5;break}throw new Error(n.error);case 5:return e.abrupt("return",n.user);case 6:case"end":return e.stop()}}),e)}))),Dn.apply(this,arguments)}function Gn(e){return Bn.apply(this,arguments)}function Bn(){return(Bn=r(t.mark((function e(r){var n,a,o;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.email,a=r.password,e.next=3,In(n,a);case 3:if(!(o=e.sent).error){e.next=6;break}throw new Error(o.error);case 6:return e.abrupt("return",o.user);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var zn=Object.freeze({__proto__:null,createUser:function(e){return Un.apply(this,arguments)},updateUser:function(e){return Dn.apply(this,arguments)},findUser:Gn}),Ln=new h.Strategy({usernameField:"email",passwordField:"password"},(function(e,r,t){Gn({email:e,password:r}).then((function(e){t(null,e)})).catch((function(e){t(e)}))})),Vn=e(Object.freeze({__proto__:null,localStrategy:Ln})),Wn=e(zn),$n={host:"sanity-datasource.cluster-crao688bsrdh.us-east-1.rds.amazonaws.com",user:"nasp",password:"uRNkF9SkfXQs6AKK",database:"user"},Hn=function(){var e=r(t.mark((function e(r){var n,a;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=On($n),"\n select name as label, id as value\n from occupation\n where type = ?\n ",e.next=4,n.query("\n select name as label, id as value\n from occupation\n where type = ?\n ",[r]);case 4:return a=e.sent,e.next=7,n.close();case 7:return e.abrupt("return",a);case 8:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),Kn=function(){var e=r(t.mark((function e(r){var n,a,o,i,u;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=On($n),"\n select * \n from field\n where occupation_id = ?\n order by sorting\n ",e.next=4,n.query("\n select * \n from field\n where occupation_id = ?\n order by sorting\n ",[r]);case 4:a=e.sent,o=0;case 6:if(!(o<a.length)){e.next=17;break}if("select"!==(i=a[o]).type){e.next=14;break}return"\n select * \n from options\n where list_id = ?\n order by sorting\n ",e.next=12,n.query("\n select * \n from options\n where list_id = ?\n order by sorting\n ",[i.list_id]);case 12:u=e.sent,i.options=u||[];case 14:o++,e.next=6;break;case 17:return e.next=19,n.close();case 19:return e.abrupt("return",a);case 20:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}();function Yn(){return Yn=r(t.mark((function e(r,n){var a,o,i,u;return t.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,a=r.body.action,o=null,e.t0=a,e.next="get-occupation"===e.t0?6:"get-fields"===e.t0?11:16;break;case 6:return i=r.body.type,e.next=9,Hn(i);case 9:case 14:return o=e.sent,e.abrupt("break",17);case 11:return u=r.body.occupation,e.next=14,Kn(u);case 16:throw new Error("Invalid action: ".concat(a));case 17:return e.abrupt("return",n.json({error:"",data:o}));case 20:return e.prev=20,e.t1=e.catch(0),e.abrupt("return",n.json({error:e.t1.message,data:null}));case 23:case"end":return e.stop()}}),e,null,[[0,20]])}))),Yn.apply(this,arguments)}var Jn=_,Zn=T,Xn=R,Qn=U,ea=D,ra=z,ta=Vn,na=Wn,aa=e(Object.freeze({__proto__:null,default:function(e,r){return Yn.apply(this,arguments)}})),oa=S.LoginForm=Jn,ia=S.SignupForm=Zn,ua=S.ProfileForm=Xn,ca=S.AuthCookies=Qn,la=S.AuthHooks=ea,sa=S.Iron=ra,pa=S.PassportLocal=ta,fa=S.User=na,ya=S.ProcessData=aa,da=Object.freeze(v({__proto__:null,default:S,LoginForm:oa,SignupForm:ia,ProfileForm:ua,AuthCookies:ca,AuthHooks:la,Iron:sa,PassportLocal:pa,User:fa,ProcessData:ya},[S]));export{ca as A,sa as I,oa as L,ua as P,ia as S,fa as U,S as a,la as b,pa as c,ya as d,da as i};