@mjhls/mjh-framework 1.0.790-filter-test → 1.0.790

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 (253) hide show
  1. package/README.md +170 -170
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +15 -15
  4. package/dist/cjs/AD300x250x600.js +15 -15
  5. package/dist/cjs/AD728x90.js +16 -16
  6. package/dist/cjs/ADFloatingFooter.js +14 -14
  7. package/dist/cjs/ADFooter.js +5 -5
  8. package/dist/cjs/ADGutter.js +14 -14
  9. package/dist/cjs/{ADInfeed-e7aecdf9.js → ADInfeed-1e53d7db.js} +1 -1
  10. package/dist/cjs/ADSkyscraper.js +14 -14
  11. package/dist/cjs/ADSponsoredResources.js +14 -14
  12. package/dist/cjs/ADWebcast.js +14 -14
  13. package/dist/cjs/ADWelcome.js +14 -14
  14. package/dist/cjs/{ADlgInfeed-0941023e.js → ADlgInfeed-2494fd17.js} +1 -1
  15. package/dist/cjs/AccordionPanel.js +5 -5
  16. package/dist/cjs/AdSlot.js +16 -16
  17. package/dist/cjs/AdSlotsProvider.js +10 -10
  18. package/dist/cjs/AlphabeticList.js +9 -9
  19. package/dist/cjs/ArticleCarousel.js +11 -11
  20. package/dist/cjs/ArticleProgramLandingPage.js +25 -24
  21. package/dist/cjs/ArticleSeriesLandingPage.js +24 -24
  22. package/dist/cjs/ArticleSeriesListing.js +17 -17
  23. package/dist/cjs/Auth.js +468 -206
  24. package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-5fa89df5.js} +1 -1
  25. package/dist/cjs/Beam.js +7 -7
  26. package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-eca358e4.js} +34 -34
  27. package/dist/cjs/Breadcrumbs.js +5 -5
  28. package/dist/cjs/CMEDeck.js +14 -14
  29. package/dist/cjs/Column2.js +11 -11
  30. package/dist/cjs/Column3.js +20 -20
  31. package/dist/cjs/ConferenceArticleCard.js +16 -16
  32. package/dist/cjs/DeckContent.js +31 -31
  33. package/dist/cjs/DeckQueue.js +21 -21
  34. package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-6d140494.js} +8 -8
  35. package/dist/cjs/EventsDeck.js +36 -36
  36. package/dist/cjs/ExternalResources.js +26 -25
  37. package/dist/cjs/Feature.js +3 -3
  38. package/dist/cjs/ForbesHero.js +7 -7
  39. package/dist/cjs/GridContent.js +30 -30
  40. package/dist/cjs/GridHero.js +7 -7
  41. package/dist/cjs/GroupDeck.js +9 -9
  42. package/dist/cjs/HamMagazine.js +21 -21
  43. package/dist/cjs/Hero.js +1 -1
  44. package/dist/cjs/HorizontalArticleListing.js +25 -24
  45. package/dist/cjs/HorizontalHero.js +1 -1
  46. package/dist/cjs/IssueContentDeck.js +7 -7
  47. package/dist/cjs/IssueDeck.js +10 -10
  48. package/dist/cjs/IssueLanding.js +49 -49
  49. package/dist/cjs/KMTracker.js +15 -15
  50. package/dist/cjs/LeftNav.js +14 -14
  51. package/dist/cjs/MasterDeck.js +32 -32
  52. package/dist/cjs/MediaSeriesLanding.js +398 -503
  53. package/dist/cjs/NavDvm.js +7 -7
  54. package/dist/cjs/NavMagazine.js +21 -21
  55. package/dist/cjs/NavNative.js +26 -26
  56. package/dist/cjs/NavNormal.js +7 -7
  57. package/dist/cjs/OncliveHero.js +1 -1
  58. package/dist/cjs/OncliveLargeHero.js +7 -7
  59. package/dist/cjs/PageFilter.js +5 -5
  60. package/dist/cjs/PartnerDetailListing.js +29 -28
  61. package/dist/cjs/PopUpModal.js +5 -5
  62. package/dist/cjs/PubSection.js +20 -20
  63. package/dist/cjs/PubToc.js +7 -7
  64. package/dist/cjs/PublicationDeck.js +2 -2
  65. package/dist/cjs/PublicationLanding.js +143 -69
  66. package/dist/cjs/QueueDeckExpanded.js +22 -22
  67. package/dist/cjs/RecentNews.js +1 -1
  68. package/dist/cjs/RelatedContent.js +29 -29
  69. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  70. package/dist/cjs/Search.js +5 -5
  71. package/dist/cjs/Segment.js +6 -6
  72. package/dist/cjs/SeriesListingDeck.js +12 -12
  73. package/dist/cjs/{SeriesSlider-c022ce04.js → SeriesSlider-49577417.js} +12 -12
  74. package/dist/cjs/SideFooter.js +13 -13
  75. package/dist/cjs/{SocialSearchComponent-31afe61f.js → SocialSearchComponent-45c54bed.js} +6 -6
  76. package/dist/cjs/TaxonomyCard.js +5 -5
  77. package/dist/cjs/TaxonomyDescription.js +25 -24
  78. package/dist/cjs/TemplateNormal.js +19 -19
  79. package/dist/cjs/ThumbnailCard.js +1 -1
  80. package/dist/cjs/Ustream.js +7 -7
  81. package/dist/cjs/VerticalHero.js +1 -1
  82. package/dist/cjs/VideoProgramLandingPage.js +25 -24
  83. package/dist/cjs/VideoSeriesCard.js +8 -8
  84. package/dist/cjs/VideoSeriesFilter.js +7 -7
  85. package/dist/cjs/VideoSeriesLandingPage.js +24 -24
  86. package/dist/cjs/VideoSeriesListing.js +17 -17
  87. package/dist/cjs/View.js +39 -38
  88. package/dist/cjs/YahooHero.js +7 -7
  89. package/dist/cjs/YoutubeGroup.js +19 -19
  90. package/dist/cjs/{_is-array-6128bd56.js → _is-array-63ae4740.js} +1 -1
  91. package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-2613ffa1.js} +8 -8
  92. package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
  93. package/dist/cjs/{_object-sap-a175b4a9.js → _object-sap-c5bd707d.js} +1 -1
  94. package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-bec5fcf2.js} +2 -2
  95. package/dist/cjs/{_to-object-6de10e57.js → _to-object-821a2927.js} +4 -4
  96. package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-b6a175bf.js} +30 -30
  97. package/dist/cjs/{core.get-iterator-method-f474eacc.js → core.get-iterator-method-b4615fd3.js} +2 -2
  98. package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
  99. package/dist/cjs/{define-property-c88be878.js → define-property-aff11f8a.js} +6 -6
  100. package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-d6fbb280.js} +1 -1
  101. package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
  102. package/dist/cjs/{es6.string.iterator-c2573ffd.js → es6.string.iterator-20d42c53.js} +5 -5
  103. package/dist/cjs/{extends-29bdbc6d.js → extends-1e24fc8d.js} +7 -8
  104. package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
  105. package/dist/cjs/getRelatedArticle.js +9 -11
  106. package/dist/cjs/getRootDocGroup.js +6 -6
  107. package/dist/cjs/getSerializers.js +25 -24
  108. package/dist/cjs/{getTargeting-45b91c88.js → getTargeting-497b581d.js} +11 -11
  109. package/dist/cjs/getTargeting.js +8 -8
  110. package/dist/cjs/{index-f86bb269.js → index-4d74ffd6.js} +4 -4
  111. package/dist/cjs/{index-70cfabd2.js → index-d450e2d5.js} +88 -338
  112. package/dist/cjs/{index-efca863c.js → index-d48b231c.js} +5 -5
  113. package/dist/cjs/index.js +37 -36
  114. package/dist/cjs/{inherits-c2065b95.js → inherits-2eb23889.js} +19 -22
  115. package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
  116. package/dist/cjs/keys-95c064c9.js +25 -0
  117. package/dist/cjs/{lodash-f0783643.js → lodash-4ef21f0f.js} +9 -57
  118. package/dist/cjs/{main-025fdc78.js → main-dc082238.js} +109 -184
  119. package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-db24842a.js} +14 -14
  120. package/dist/cjs/stringify-01cf47f7.js +17 -0
  121. package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-cf0865fc.js} +9 -9
  122. package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
  123. package/dist/cjs/{typeof-88a668c5.js → typeof-97065d40.js} +34 -34
  124. package/dist/cjs/urlFor.js +1 -1
  125. package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-4480325a.js} +2 -2
  126. package/dist/esm/AD.js +1 -1
  127. package/dist/esm/AD300x250.js +15 -15
  128. package/dist/esm/AD300x250x600.js +15 -15
  129. package/dist/esm/AD728x90.js +16 -16
  130. package/dist/esm/ADFloatingFooter.js +14 -14
  131. package/dist/esm/ADFooter.js +5 -5
  132. package/dist/esm/ADGutter.js +14 -14
  133. package/dist/esm/{ADInfeed-e1e18f87.js → ADInfeed-94817c40.js} +1 -1
  134. package/dist/esm/ADSkyscraper.js +14 -14
  135. package/dist/esm/ADSponsoredResources.js +14 -14
  136. package/dist/esm/ADWebcast.js +14 -14
  137. package/dist/esm/ADWelcome.js +14 -14
  138. package/dist/esm/{ADlgInfeed-c6d2831b.js → ADlgInfeed-6124ee3c.js} +1 -1
  139. package/dist/esm/AccordionPanel.js +5 -5
  140. package/dist/esm/AdSlot.js +16 -16
  141. package/dist/esm/AdSlotsProvider.js +10 -10
  142. package/dist/esm/AlphabeticList.js +9 -9
  143. package/dist/esm/ArticleCarousel.js +11 -11
  144. package/dist/esm/ArticleProgramLandingPage.js +25 -24
  145. package/dist/esm/ArticleSeriesLandingPage.js +24 -24
  146. package/dist/esm/ArticleSeriesListing.js +17 -17
  147. package/dist/esm/Auth.js +469 -207
  148. package/dist/esm/{AuthorComponent-5ae7409f.js → AuthorComponent-c7ff069f.js} +1 -1
  149. package/dist/esm/Beam.js +7 -7
  150. package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-d8cd739c.js} +34 -34
  151. package/dist/esm/Breadcrumbs.js +5 -5
  152. package/dist/esm/CMEDeck.js +14 -14
  153. package/dist/esm/Column2.js +11 -11
  154. package/dist/esm/Column3.js +20 -20
  155. package/dist/esm/ConferenceArticleCard.js +16 -16
  156. package/dist/esm/DeckContent.js +31 -31
  157. package/dist/esm/DeckQueue.js +21 -21
  158. package/dist/esm/{Dfp-a304d96c.js → Dfp-313e4ebe.js} +8 -8
  159. package/dist/esm/EventsDeck.js +36 -36
  160. package/dist/esm/ExternalResources.js +26 -25
  161. package/dist/esm/Feature.js +3 -3
  162. package/dist/esm/ForbesHero.js +7 -7
  163. package/dist/esm/GridContent.js +30 -30
  164. package/dist/esm/GridHero.js +7 -7
  165. package/dist/esm/GroupDeck.js +9 -9
  166. package/dist/esm/HamMagazine.js +21 -21
  167. package/dist/esm/Hero.js +1 -1
  168. package/dist/esm/HorizontalArticleListing.js +25 -24
  169. package/dist/esm/HorizontalHero.js +1 -1
  170. package/dist/esm/IssueContentDeck.js +7 -7
  171. package/dist/esm/IssueDeck.js +10 -10
  172. package/dist/esm/IssueLanding.js +49 -49
  173. package/dist/esm/KMTracker.js +15 -15
  174. package/dist/esm/LeftNav.js +14 -14
  175. package/dist/esm/MasterDeck.js +32 -32
  176. package/dist/esm/MediaSeriesLanding.js +398 -503
  177. package/dist/esm/NavDvm.js +7 -7
  178. package/dist/esm/NavMagazine.js +21 -21
  179. package/dist/esm/NavNative.js +26 -26
  180. package/dist/esm/NavNormal.js +7 -7
  181. package/dist/esm/OncliveHero.js +1 -1
  182. package/dist/esm/OncliveLargeHero.js +7 -7
  183. package/dist/esm/PageFilter.js +5 -5
  184. package/dist/esm/PartnerDetailListing.js +29 -28
  185. package/dist/esm/PopUpModal.js +5 -5
  186. package/dist/esm/PubSection.js +20 -20
  187. package/dist/esm/PubToc.js +7 -7
  188. package/dist/esm/PublicationDeck.js +2 -2
  189. package/dist/esm/PublicationLanding.js +143 -69
  190. package/dist/esm/QueueDeckExpanded.js +22 -22
  191. package/dist/esm/RecentNews.js +1 -1
  192. package/dist/esm/RelatedContent.js +29 -29
  193. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  194. package/dist/esm/Search.js +5 -5
  195. package/dist/esm/Segment.js +6 -6
  196. package/dist/esm/SeriesListingDeck.js +12 -12
  197. package/dist/esm/{SeriesSlider-8414085b.js → SeriesSlider-291e1c9e.js} +12 -12
  198. package/dist/esm/SideFooter.js +13 -13
  199. package/dist/esm/{SocialSearchComponent-116b1d5d.js → SocialSearchComponent-c3216d1a.js} +6 -6
  200. package/dist/esm/TaxonomyCard.js +5 -5
  201. package/dist/esm/TaxonomyDescription.js +25 -24
  202. package/dist/esm/TemplateNormal.js +19 -19
  203. package/dist/esm/ThumbnailCard.js +1 -1
  204. package/dist/esm/Ustream.js +7 -7
  205. package/dist/esm/VerticalHero.js +1 -1
  206. package/dist/esm/VideoProgramLandingPage.js +25 -24
  207. package/dist/esm/VideoSeriesCard.js +8 -8
  208. package/dist/esm/VideoSeriesFilter.js +7 -7
  209. package/dist/esm/VideoSeriesLandingPage.js +24 -24
  210. package/dist/esm/VideoSeriesListing.js +17 -17
  211. package/dist/esm/View.js +39 -38
  212. package/dist/esm/YahooHero.js +7 -7
  213. package/dist/esm/YoutubeGroup.js +19 -19
  214. package/dist/esm/{_is-array-3e99e06e.js → _is-array-674f71ec.js} +1 -1
  215. package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-48516cd3.js} +8 -8
  216. package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
  217. package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-fd3054d0.js} +1 -1
  218. package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-8f409e54.js} +2 -2
  219. package/dist/esm/{_to-object-b50e61c3.js → _to-object-97770c52.js} +4 -4
  220. package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-585841c0.js} +30 -30
  221. package/dist/esm/{core.get-iterator-method-133dfacd.js → core.get-iterator-method-d1d5ed02.js} +2 -2
  222. package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
  223. package/dist/esm/{define-property-fe54dc9f.js → define-property-ec6d528d.js} +6 -6
  224. package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-ea516b15.js} +1 -1
  225. package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
  226. package/dist/esm/{es6.string.iterator-bc33758b.js → es6.string.iterator-aa6068a3.js} +5 -5
  227. package/dist/esm/{extends-60e0e1c6.js → extends-31d65aba.js} +8 -8
  228. package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
  229. package/dist/esm/getRelatedArticle.js +9 -11
  230. package/dist/esm/getRootDocGroup.js +6 -6
  231. package/dist/esm/getSerializers.js +25 -24
  232. package/dist/esm/{getTargeting-d0d71a56.js → getTargeting-2d402d66.js} +11 -11
  233. package/dist/esm/getTargeting.js +8 -8
  234. package/dist/esm/{index-0dbff1d1.js → index-3f5c03b2.js} +5 -5
  235. package/dist/esm/{index-79cfd25c.js → index-ccb770c7.js} +4 -4
  236. package/dist/esm/{index-613fdebe.js → index-f4fe5a50.js} +86 -337
  237. package/dist/esm/index.js +37 -36
  238. package/dist/esm/{inherits-a41fe93f.js → inherits-5906fbea.js} +20 -20
  239. package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
  240. package/dist/esm/{keys-7a3adabf.js → keys-a0b0c7a4.js} +6 -6
  241. package/dist/esm/{lodash-f97fd99a.js → lodash-ad27652f.js} +9 -57
  242. package/dist/esm/{main-b5c5aac1.js → main-1450d277.js} +103 -178
  243. package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-cdeaee08.js} +14 -14
  244. package/dist/esm/stringify-d4839bab.js +15 -0
  245. package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-fa2dcda7.js} +9 -9
  246. package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
  247. package/dist/esm/{typeof-a286cf0c.js → typeof-e9cea9e8.js} +34 -34
  248. package/dist/esm/urlFor.js +1 -1
  249. package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-035980f3.js} +2 -2
  250. package/package.json +108 -108
  251. package/dist/cjs/keys-7f2c2108.js +0 -25
  252. package/dist/cjs/stringify-c9ac1214.js +0 -17
  253. package/dist/esm/stringify-59c8f690.js +0 -15
@@ -1,51 +1,52 @@
1
- import { _ as _defineProperty } from './defineProperty-f5ff6f5a.js';
2
- import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
3
- import { _ as _typeof } from './typeof-a286cf0c.js';
4
- import { _ as _extends$1 } from './extends-60e0e1c6.js';
5
- import { _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
1
+ import { _ as _defineProperty } from './defineProperty-ea516b15.js';
2
+ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-585841c0.js';
3
+ import { _ as _extends$1 } from './extends-31d65aba.js';
4
+ import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
6
5
  import React, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
7
6
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
8
7
  import PropTypes from 'prop-types';
9
8
  import ReactDOM from 'react-dom';
10
9
  import Link from 'next/link';
10
+ import './iconBase-602d52fe.js';
11
11
  import MasterDeck from './MasterDeck.js';
12
+ import { _ as _typeof } from './typeof-e9cea9e8.js';
12
13
  import { L as LazyLoad } from './index-35bdcc81.js';
13
- import { i as imageUrlBuilder } from './index-0dbff1d1.js';
14
+ import { i as imageUrlBuilder } from './index-3f5c03b2.js';
14
15
  import { m as moment } from './moment-bc12cb97.js';
15
16
  import { s as styleInject } from './style-inject.es-1f59c1d0.js';
16
- import { B as BlockContent } from './BlockContent-52cf21c5.js';
17
- import { g as getSerializers } from './index-613fdebe.js';
18
- import './define-property-fe54dc9f.js';
19
- import './_to-object-b50e61c3.js';
20
- import './es6.string.iterator-bc33758b.js';
21
- import './web.dom.iterable-4109ff68.js';
17
+ import { B as BlockContent } from './BlockContent-d8cd739c.js';
18
+ import { g as getSerializers } from './index-f4fe5a50.js';
19
+ import './define-property-ec6d528d.js';
20
+ import './_to-object-97770c52.js';
21
+ import './es6.string.iterator-aa6068a3.js';
22
+ import './web.dom.iterable-035980f3.js';
22
23
  import './_library-528f1934.js';
23
- import './core.get-iterator-method-133dfacd.js';
24
- import './_iter-detect-7e5e5ce2.js';
25
- import './_is-array-3e99e06e.js';
26
- import './_object-pie-133f504a.js';
27
- import './toConsumableArray-6d9a4616.js';
28
- import './inherits-a41fe93f.js';
29
- import './_object-sap-f353c2a9.js';
24
+ import './core.get-iterator-method-d1d5ed02.js';
25
+ import './_iter-detect-48516cd3.js';
26
+ import './_object-pie-33c40e79.js';
27
+ import './toConsumableArray-fa2dcda7.js';
28
+ import './inherits-5906fbea.js';
29
+ import './_object-sap-fd3054d0.js';
30
30
  import './index-888f9253.js';
31
31
  import 'react-bootstrap/Container';
32
32
  import 'react-bootstrap/Row';
33
33
  import 'react-bootstrap/Col';
34
34
  import 'react-bootstrap/Card';
35
35
  import 'next/router';
36
- import './lodash-f97fd99a.js';
37
- import './debounce-533d9748.js';
38
- import './isSymbol-a7e9aafe.js';
39
- import './toNumber-5aeba6e7.js';
36
+ import './lodash-ad27652f.js';
37
+ import './debounce-9207d8ee.js';
38
+ import './isSymbol-1981418f.js';
39
+ import './toNumber-2f7a84cd.js';
40
40
  import './index.es-c6222053.js';
41
41
  import './visibility-sensor-f40c2564.js';
42
- import './ADlgInfeed-c6d2831b.js';
42
+ import './ADlgInfeed-6124ee3c.js';
43
43
  import './AdSlot.js';
44
44
  import './Beam.js';
45
- import './stringify-59c8f690.js';
45
+ import './stringify-d4839bab.js';
46
46
  import './Segment.js';
47
- import './main-b5c5aac1.js';
48
- import './ADInfeed-e1e18f87.js';
47
+ import './main-1450d277.js';
48
+ import './ADInfeed-94817c40.js';
49
+ import './_is-array-674f71ec.js';
49
50
  import 'react-bootstrap';
50
51
  import './index-c7e2ac95.js';
51
52
  import './util-3ab476bf.js';
@@ -55,13 +56,13 @@ import './smoothscroll-fa4e3f8c.js';
55
56
  import './SocialShare.js';
56
57
  import 'next/head';
57
58
  import 'react-share';
58
- import './_object-to-array-0f197f89.js';
59
+ import './_object-to-array-8f409e54.js';
59
60
  import 'react-bootstrap/Pagination';
60
61
  import 'react-bootstrap/Button';
61
62
  import './entities-932b50cf.js';
62
63
  import './index.esm-3fdda599.js';
63
- import './iconBase-602d52fe.js';
64
64
  import 'react-bootstrap/Figure';
65
+ import 'react-script-tag';
65
66
 
66
67
  function _extends() {
67
68
  _extends = Object.assign || function (target) {
@@ -284,11 +285,11 @@ var makeEventKey = function makeEventKey(eventKey, href) {
284
285
  return href || null;
285
286
  };
286
287
 
287
- var context$2 = React.createContext(null);
288
- context$2.displayName = 'AccordionContext';
288
+ var context = React.createContext(null);
289
+ context.displayName = 'AccordionContext';
289
290
 
290
291
  function useAccordionToggle(eventKey, onClick) {
291
- var contextEventKey = useContext(context$2);
292
+ var contextEventKey = useContext(context);
292
293
  var onSelect = useContext(SelectableContext);
293
294
  return function (e) {
294
295
  /*
@@ -320,16 +321,16 @@ var AccordionToggle = React.forwardRef(function (_ref, ref) {
320
321
  }, props), children);
321
322
  });
322
323
 
323
- function ownerDocument$1(node) {
324
+ function ownerDocument(node) {
324
325
  return node && node.ownerDocument || document;
325
326
  }
326
327
 
327
328
  function ownerWindow(node) {
328
- var doc = ownerDocument$1(node);
329
+ var doc = ownerDocument(node);
329
330
  return doc && doc.defaultView || window;
330
331
  }
331
332
 
332
- function getComputedStyle$2(node, psuedoElement) {
333
+ function getComputedStyle$1(node, psuedoElement) {
333
334
  return ownerWindow(node).getComputedStyle(node, psuedoElement);
334
335
  }
335
336
 
@@ -358,7 +359,7 @@ function style(node, property) {
358
359
  var transforms = '';
359
360
 
360
361
  if (typeof property === 'string') {
361
- return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$2(node).getPropertyValue(hyphenateStyleName(property));
362
+ return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$1(node).getPropertyValue(hyphenateStyleName(property));
362
363
  }
363
364
 
364
365
  Object.keys(property).forEach(function (key) {
@@ -1096,7 +1097,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
1096
1097
  onExited: PropTypes.func
1097
1098
  } : {}; // Name the function so it is clearer in the documentation
1098
1099
 
1099
- function noop$5() {}
1100
+ function noop() {}
1100
1101
 
1101
1102
  Transition.defaultProps = {
1102
1103
  in: false,
@@ -1105,12 +1106,12 @@ Transition.defaultProps = {
1105
1106
  appear: false,
1106
1107
  enter: true,
1107
1108
  exit: true,
1108
- onEnter: noop$5,
1109
- onEntering: noop$5,
1110
- onEntered: noop$5,
1111
- onExit: noop$5,
1112
- onExiting: noop$5,
1113
- onExited: noop$5
1109
+ onEnter: noop,
1110
+ onEntering: noop,
1111
+ onEntered: noop,
1112
+ onExit: noop,
1113
+ onExiting: noop,
1114
+ onExited: noop
1114
1115
  };
1115
1116
  Transition.UNMOUNTED = UNMOUNTED;
1116
1117
  Transition.EXITED = EXITED;
@@ -1176,7 +1177,7 @@ function getDefaultDimensionValue(dimension, elem) {
1176
1177
  }
1177
1178
 
1178
1179
  var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse show', _collapseStyles);
1179
- var defaultProps$E = {
1180
+ var defaultProps = {
1180
1181
  in: false,
1181
1182
  timeout: 300,
1182
1183
  mountOnEnter: false,
@@ -1250,14 +1251,14 @@ var Collapse = React.forwardRef(function (_ref, ref) {
1250
1251
  }); // @ts-ignore
1251
1252
 
1252
1253
  // @ts-ignore
1253
- Collapse.defaultProps = defaultProps$E;
1254
+ Collapse.defaultProps = defaultProps;
1254
1255
 
1255
1256
  var AccordionCollapse = React.forwardRef(function (_ref, ref) {
1256
1257
  var children = _ref.children,
1257
1258
  eventKey = _ref.eventKey,
1258
1259
  props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
1259
1260
 
1260
- var contextEventKey = useContext(context$2); // Empty SelectableContext is to prevent elements in the collapse
1261
+ var contextEventKey = useContext(context); // Empty SelectableContext is to prevent elements in the collapse
1261
1262
  // from collapsing the accordion when clicked.
1262
1263
 
1263
1264
  return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
@@ -1283,7 +1284,7 @@ var Accordion = React.forwardRef(function (props, ref) {
1283
1284
  controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
1284
1285
 
1285
1286
  var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
1286
- return /*#__PURE__*/React.createElement(context$2.Provider, {
1287
+ return /*#__PURE__*/React.createElement(context.Provider, {
1287
1288
  value: activeKey || null
1288
1289
  }, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
1289
1290
  value: onSelect || null
@@ -1323,7 +1324,7 @@ function useEventCallback(fn) {
1323
1324
  }
1324
1325
 
1325
1326
  var _fadeStyles;
1326
- var defaultProps$D = {
1327
+ var defaultProps$1 = {
1327
1328
  in: false,
1328
1329
  timeout: 300,
1329
1330
  mountOnEnter: false,
@@ -1351,14 +1352,14 @@ var Fade = React.forwardRef(function (_ref, ref) {
1351
1352
  }));
1352
1353
  });
1353
1354
  });
1354
- Fade.defaultProps = defaultProps$D;
1355
+ Fade.defaultProps = defaultProps$1;
1355
1356
  Fade.displayName = 'Fade';
1356
1357
 
1357
- var propTypes$a = {
1358
+ var propTypes = {
1358
1359
  label: PropTypes.string.isRequired,
1359
1360
  onClick: PropTypes.func
1360
1361
  };
1361
- var defaultProps$C = {
1362
+ var defaultProps$2 = {
1362
1363
  label: 'Close'
1363
1364
  };
1364
1365
  var CloseButton = React.forwardRef(function (_ref, ref) {
@@ -1379,8 +1380,8 @@ var CloseButton = React.forwardRef(function (_ref, ref) {
1379
1380
  }, label));
1380
1381
  });
1381
1382
  CloseButton.displayName = 'CloseButton';
1382
- CloseButton.propTypes = propTypes$a;
1383
- CloseButton.defaultProps = defaultProps$C;
1383
+ CloseButton.propTypes = propTypes;
1384
+ CloseButton.defaultProps = defaultProps$2;
1384
1385
 
1385
1386
  var divWithClassName = (function (className) {
1386
1387
  return React.forwardRef(function (p, ref) {
@@ -1493,15 +1494,15 @@ var SafeAnchor = React.forwardRef(function (_ref, ref) {
1493
1494
  });
1494
1495
  SafeAnchor.displayName = 'SafeAnchor';
1495
1496
 
1496
- var DivStyledAsH4$1 = divWithClassName('h4');
1497
- DivStyledAsH4$1.displayName = 'DivStyledAsH4';
1497
+ var DivStyledAsH4 = divWithClassName('h4');
1498
+ DivStyledAsH4.displayName = 'DivStyledAsH4';
1498
1499
  var AlertHeading = createWithBsPrefix('alert-heading', {
1499
- Component: DivStyledAsH4$1
1500
+ Component: DivStyledAsH4
1500
1501
  });
1501
1502
  var AlertLink = createWithBsPrefix('alert-link', {
1502
1503
  Component: SafeAnchor
1503
1504
  });
1504
- var defaultProps$B = {
1505
+ var defaultProps$3 = {
1505
1506
  show: true,
1506
1507
  transition: Fade,
1507
1508
  closeLabel: 'Close alert'
@@ -1546,11 +1547,11 @@ var Alert = React.forwardRef(function (uncontrolledProps, ref) {
1546
1547
  }), alert);
1547
1548
  });
1548
1549
  Alert.displayName = 'Alert';
1549
- Alert.defaultProps = defaultProps$B;
1550
+ Alert.defaultProps = defaultProps$3;
1550
1551
  Alert.Link = AlertLink;
1551
1552
  Alert.Heading = AlertHeading;
1552
1553
 
1553
- var defaultProps$A = {
1554
+ var defaultProps$4 = {
1554
1555
  pill: false
1555
1556
  };
1556
1557
  var Badge = React.forwardRef(function (_ref, ref) {
@@ -1570,9 +1571,9 @@ var Badge = React.forwardRef(function (_ref, ref) {
1570
1571
  }));
1571
1572
  });
1572
1573
  Badge.displayName = 'Badge';
1573
- Badge.defaultProps = defaultProps$A;
1574
+ Badge.defaultProps = defaultProps$4;
1574
1575
 
1575
- var defaultProps$z = {
1576
+ var defaultProps$5 = {
1576
1577
  active: false,
1577
1578
  linkProps: {}
1578
1579
  };
@@ -1606,9 +1607,9 @@ var BreadcrumbItem = React.forwardRef(function (_ref, ref) {
1606
1607
  }), children));
1607
1608
  });
1608
1609
  BreadcrumbItem.displayName = 'BreadcrumbItem';
1609
- BreadcrumbItem.defaultProps = defaultProps$z;
1610
+ BreadcrumbItem.defaultProps = defaultProps$5;
1610
1611
 
1611
- var defaultProps$y = {
1612
+ var defaultProps$6 = {
1612
1613
  label: 'breadcrumb',
1613
1614
  listProps: {}
1614
1615
  };
@@ -1632,10 +1633,10 @@ var Breadcrumb = React.forwardRef(function (_ref, ref) {
1632
1633
  }), children));
1633
1634
  });
1634
1635
  Breadcrumb.displayName = 'Breadcrumb';
1635
- Breadcrumb.defaultProps = defaultProps$y;
1636
+ Breadcrumb.defaultProps = defaultProps$6;
1636
1637
  Breadcrumb.Item = BreadcrumbItem;
1637
1638
 
1638
- var defaultProps$x = {
1639
+ var defaultProps$7 = {
1639
1640
  variant: 'primary',
1640
1641
  active: false,
1641
1642
  disabled: false
@@ -1678,9 +1679,9 @@ var Button = React.forwardRef(function (_ref, ref) {
1678
1679
  }));
1679
1680
  });
1680
1681
  Button.displayName = 'Button';
1681
- Button.defaultProps = defaultProps$x;
1682
+ Button.defaultProps = defaultProps$7;
1682
1683
 
1683
- var defaultProps$w = {
1684
+ var defaultProps$8 = {
1684
1685
  vertical: false,
1685
1686
  toggle: false,
1686
1687
  role: 'group'
@@ -1704,9 +1705,9 @@ var ButtonGroup = React.forwardRef(function (_ref, ref) {
1704
1705
  }));
1705
1706
  });
1706
1707
  ButtonGroup.displayName = 'ButtonGroup';
1707
- ButtonGroup.defaultProps = defaultProps$w;
1708
+ ButtonGroup.defaultProps = defaultProps$8;
1708
1709
 
1709
- var defaultProps$v = {
1710
+ var defaultProps$9 = {
1710
1711
  role: 'toolbar'
1711
1712
  };
1712
1713
  var ButtonToolbar = React.forwardRef(function (_ref, ref) {
@@ -1721,12 +1722,12 @@ var ButtonToolbar = React.forwardRef(function (_ref, ref) {
1721
1722
  }));
1722
1723
  });
1723
1724
  ButtonToolbar.displayName = 'ButtonToolbar';
1724
- ButtonToolbar.defaultProps = defaultProps$v;
1725
+ ButtonToolbar.defaultProps = defaultProps$9;
1725
1726
 
1726
1727
  var context$1 = React.createContext(null);
1727
1728
  context$1.displayName = 'CardContext';
1728
1729
 
1729
- var defaultProps$u = {
1730
+ var defaultProps$a = {
1730
1731
  variant: null
1731
1732
  };
1732
1733
  var CardImg = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
@@ -1745,7 +1746,7 @@ function (_ref, ref) {
1745
1746
  }, props));
1746
1747
  });
1747
1748
  CardImg.displayName = 'CardImg';
1748
- CardImg.defaultProps = defaultProps$u;
1749
+ CardImg.defaultProps = defaultProps$a;
1749
1750
 
1750
1751
  var DivStyledAsH5 = divWithClassName('h5');
1751
1752
  var DivStyledAsH6 = divWithClassName('h6');
@@ -1765,7 +1766,7 @@ var CardText = createWithBsPrefix('card-text', {
1765
1766
  var CardHeader = createWithBsPrefix('card-header');
1766
1767
  var CardFooter = createWithBsPrefix('card-footer');
1767
1768
  var CardImgOverlay = createWithBsPrefix('card-img-overlay');
1768
- var defaultProps$t = {
1769
+ var defaultProps$b = {
1769
1770
  body: false
1770
1771
  };
1771
1772
  var Card = React.forwardRef(function (_ref, ref) {
@@ -1798,7 +1799,7 @@ var Card = React.forwardRef(function (_ref, ref) {
1798
1799
  React.createElement(CardBody, null, children) : children));
1799
1800
  });
1800
1801
  Card.displayName = 'Card';
1801
- Card.defaultProps = defaultProps$t;
1802
+ Card.defaultProps = defaultProps$b;
1802
1803
  Card.Img = CardImg;
1803
1804
  Card.Title = CardTitle;
1804
1805
  Card.Subtitle = CardSubtitle;
@@ -2033,7 +2034,7 @@ function forEach(children, func) {
2033
2034
  }
2034
2035
 
2035
2036
  var SWIPE_THRESHOLD = 40;
2036
- var propTypes$9 = {
2037
+ var propTypes$1 = {
2037
2038
  /**
2038
2039
  * @default 'carousel'
2039
2040
  */
@@ -2135,7 +2136,7 @@ var propTypes$9 = {
2135
2136
  */
2136
2137
  nextLabel: PropTypes.string
2137
2138
  };
2138
- var defaultProps$s = {
2139
+ var defaultProps$c = {
2139
2140
  slide: true,
2140
2141
  fade: false,
2141
2142
  controls: true,
@@ -2505,12 +2506,12 @@ function CarouselFunc(uncontrolledProps, ref) {
2505
2506
 
2506
2507
  var Carousel = React.forwardRef(CarouselFunc);
2507
2508
  Carousel.displayName = 'Carousel';
2508
- Carousel.propTypes = propTypes$9;
2509
- Carousel.defaultProps = defaultProps$s;
2509
+ Carousel.propTypes = propTypes$1;
2510
+ Carousel.defaultProps = defaultProps$c;
2510
2511
  Carousel.Caption = CarouselCaption;
2511
2512
  Carousel.Item = CarouselItem;
2512
2513
 
2513
- var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
2514
+ var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
2514
2515
  var Col = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
2515
2516
  function (_ref, ref) {
2516
2517
  var bsPrefix = _ref.bsPrefix,
@@ -2522,7 +2523,7 @@ function (_ref, ref) {
2522
2523
  var prefix = useBootstrapPrefix(bsPrefix, 'col');
2523
2524
  var spans = [];
2524
2525
  var classes = [];
2525
- DEVICE_SIZES$1.forEach(function (brkPoint) {
2526
+ DEVICE_SIZES.forEach(function (brkPoint) {
2526
2527
  var propValue = props[brkPoint];
2527
2528
  delete props[brkPoint];
2528
2529
  var span;
@@ -2703,50 +2704,21 @@ function getBasePlacement(placement) {
2703
2704
  return placement.split('-')[0];
2704
2705
  }
2705
2706
 
2706
- function getBoundingClientRect(element) {
2707
- var rect = element.getBoundingClientRect();
2708
- return {
2709
- width: rect.width,
2710
- height: rect.height,
2711
- top: rect.top,
2712
- right: rect.right,
2713
- bottom: rect.bottom,
2714
- left: rect.left,
2715
- x: rect.left,
2716
- y: rect.top
2717
- };
2718
- }
2719
-
2707
+ // Returns the layout rect of an element relative to its offsetParent. Layout
2720
2708
  // means it doesn't take into account transforms.
2721
-
2722
2709
  function getLayoutRect(element) {
2723
- var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
2724
- // Fixes https://github.com/popperjs/popper-core/issues/1223
2725
-
2726
- var width = element.offsetWidth;
2727
- var height = element.offsetHeight;
2728
-
2729
- if (Math.abs(clientRect.width - width) <= 1) {
2730
- width = clientRect.width;
2731
- }
2732
-
2733
- if (Math.abs(clientRect.height - height) <= 1) {
2734
- height = clientRect.height;
2735
- }
2736
-
2737
2710
  return {
2738
2711
  x: element.offsetLeft,
2739
2712
  y: element.offsetTop,
2740
- width: width,
2741
- height: height
2713
+ width: element.offsetWidth,
2714
+ height: element.offsetHeight
2742
2715
  };
2743
2716
  }
2744
2717
 
2745
- function getWindow(node) {
2746
- if (node == null) {
2747
- return window;
2748
- }
2718
+ /*:: import type { Window } from '../types'; */
2749
2719
 
2720
+ /*:: declare function getWindow(node: Node | Window): Window; */
2721
+ function getWindow(node) {
2750
2722
  if (node.toString() !== '[object Window]') {
2751
2723
  var ownerDocument = node.ownerDocument;
2752
2724
  return ownerDocument ? ownerDocument.defaultView || window : window;
@@ -2755,27 +2727,31 @@ function getWindow(node) {
2755
2727
  return node;
2756
2728
  }
2757
2729
 
2730
+ /*:: declare function isElement(node: mixed): boolean %checks(node instanceof
2731
+ Element); */
2732
+
2758
2733
  function isElement(node) {
2759
2734
  var OwnElement = getWindow(node).Element;
2760
2735
  return node instanceof OwnElement || node instanceof Element;
2761
2736
  }
2737
+ /*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
2738
+ HTMLElement); */
2739
+
2762
2740
 
2763
2741
  function isHTMLElement(node) {
2764
2742
  var OwnElement = getWindow(node).HTMLElement;
2765
2743
  return node instanceof OwnElement || node instanceof HTMLElement;
2766
2744
  }
2745
+ /*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
2746
+ ShadowRoot); */
2767
2747
 
2768
- function isShadowRoot(node) {
2769
- // IE 11 has no ShadowRoot
2770
- if (typeof ShadowRoot === 'undefined') {
2771
- return false;
2772
- }
2773
2748
 
2749
+ function isShadowRoot(node) {
2774
2750
  var OwnElement = getWindow(node).ShadowRoot;
2775
2751
  return node instanceof OwnElement || node instanceof ShadowRoot;
2776
2752
  }
2777
2753
 
2778
- function contains$1(parent, child) {
2754
+ function contains(parent, child) {
2779
2755
  var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
2780
2756
 
2781
2757
  if (parent.contains(child)) {
@@ -2802,7 +2778,7 @@ function getNodeName(element) {
2802
2778
  return element ? (element.nodeName || '').toLowerCase() : null;
2803
2779
  }
2804
2780
 
2805
- function getComputedStyle$1(element) {
2781
+ function getComputedStyle$2(element) {
2806
2782
  return getWindow(element).getComputedStyle(element);
2807
2783
  }
2808
2784
 
@@ -2825,8 +2801,9 @@ function getParentNode(element) {
2825
2801
  // $FlowFixMe[incompatible-return]
2826
2802
  // $FlowFixMe[prop-missing]
2827
2803
  element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
2828
- element.parentNode || ( // DOM Element detected
2829
- isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
2804
+ element.parentNode || // DOM Element detected
2805
+ // $FlowFixMe[incompatible-return]: need a better way to handle this...
2806
+ element.host || // ShadowRoot detected
2830
2807
  // $FlowFixMe[incompatible-call]: HTMLElement is a Node
2831
2808
  getDocumentElement(element) // fallback
2832
2809
 
@@ -2835,25 +2812,33 @@ function getParentNode(element) {
2835
2812
 
2836
2813
  function getTrueOffsetParent(element) {
2837
2814
  if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
2838
- getComputedStyle$1(element).position === 'fixed') {
2815
+ getComputedStyle$2(element).position === 'fixed') {
2839
2816
  return null;
2840
2817
  }
2841
2818
 
2842
- return element.offsetParent;
2819
+ var offsetParent = element.offsetParent;
2820
+
2821
+ if (offsetParent) {
2822
+ var html = getDocumentElement(offsetParent);
2823
+
2824
+ if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
2825
+ return html;
2826
+ }
2827
+ }
2828
+
2829
+ return offsetParent;
2843
2830
  } // `.offsetParent` reports `null` for fixed elements, while absolute elements
2844
2831
  // return the containing block
2845
2832
 
2846
2833
 
2847
2834
  function getContainingBlock(element) {
2848
- var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
2849
2835
  var currentNode = getParentNode(element);
2850
2836
 
2851
2837
  while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
2852
- var css = getComputedStyle$1(currentNode); // This is non-exhaustive but covers the most common CSS properties that
2838
+ var css = getComputedStyle$2(currentNode); // This is non-exhaustive but covers the most common CSS properties that
2853
2839
  // create a containing block.
2854
- // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
2855
2840
 
2856
- if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {
2841
+ if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {
2857
2842
  return currentNode;
2858
2843
  } else {
2859
2844
  currentNode = currentNode.parentNode;
@@ -2869,11 +2854,11 @@ function getOffsetParent(element) {
2869
2854
  var window = getWindow(element);
2870
2855
  var offsetParent = getTrueOffsetParent(element);
2871
2856
 
2872
- while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
2857
+ while (offsetParent && isTableElement(offsetParent) && getComputedStyle$2(offsetParent).position === 'static') {
2873
2858
  offsetParent = getTrueOffsetParent(offsetParent);
2874
2859
  }
2875
2860
 
2876
- if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static')) {
2861
+ if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static') {
2877
2862
  return window;
2878
2863
  }
2879
2864
 
@@ -2884,12 +2869,8 @@ function getMainAxisFromPlacement(placement) {
2884
2869
  return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
2885
2870
  }
2886
2871
 
2887
- var max = Math.max;
2888
- var min = Math.min;
2889
- var round = Math.round;
2890
-
2891
- function within(min$1, value, max$1) {
2892
- return max(min$1, min(value, max$1));
2872
+ function within(min, value, max) {
2873
+ return Math.max(min, Math.min(value, max));
2893
2874
  }
2894
2875
 
2895
2876
  function getFreshSideObject() {
@@ -2902,7 +2883,7 @@ function getFreshSideObject() {
2902
2883
  }
2903
2884
 
2904
2885
  function mergePaddingObject(paddingObject) {
2905
- return Object.assign({}, getFreshSideObject(), paddingObject);
2886
+ return Object.assign(Object.assign({}, getFreshSideObject()), paddingObject);
2906
2887
  }
2907
2888
 
2908
2889
  function expandToHashMap(value, keys) {
@@ -2912,19 +2893,11 @@ function expandToHashMap(value, keys) {
2912
2893
  }, {});
2913
2894
  }
2914
2895
 
2915
- var toPaddingObject = function toPaddingObject(padding, state) {
2916
- padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
2917
- placement: state.placement
2918
- })) : padding;
2919
- return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
2920
- };
2921
-
2922
2896
  function arrow(_ref) {
2923
2897
  var _state$modifiersData$;
2924
2898
 
2925
2899
  var state = _ref.state,
2926
- name = _ref.name,
2927
- options = _ref.options;
2900
+ name = _ref.name;
2928
2901
  var arrowElement = state.elements.arrow;
2929
2902
  var popperOffsets = state.modifiersData.popperOffsets;
2930
2903
  var basePlacement = getBasePlacement(state.placement);
@@ -2936,7 +2909,7 @@ function arrow(_ref) {
2936
2909
  return;
2937
2910
  }
2938
2911
 
2939
- var paddingObject = toPaddingObject(options.padding, state);
2912
+ var paddingObject = state.modifiersData[name + "#persistent"].padding;
2940
2913
  var arrowRect = getLayoutRect(arrowElement);
2941
2914
  var minProp = axis === 'y' ? top : left;
2942
2915
  var maxProp = axis === 'y' ? bottom : right;
@@ -2956,11 +2929,14 @@ function arrow(_ref) {
2956
2929
  state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
2957
2930
  }
2958
2931
 
2959
- function effect$1(_ref2) {
2932
+ function effect(_ref2) {
2960
2933
  var state = _ref2.state,
2961
- options = _ref2.options;
2934
+ options = _ref2.options,
2935
+ name = _ref2.name;
2962
2936
  var _options$element = options.element,
2963
- arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
2937
+ arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element,
2938
+ _options$padding = options.padding,
2939
+ padding = _options$padding === void 0 ? 0 : _options$padding;
2964
2940
 
2965
2941
  if (arrowElement == null) {
2966
2942
  return;
@@ -2981,7 +2957,7 @@ function effect$1(_ref2) {
2981
2957
  }
2982
2958
  }
2983
2959
 
2984
- if (!contains$1(state.elements.popper, arrowElement)) {
2960
+ if (!contains(state.elements.popper, arrowElement)) {
2985
2961
  if (process.env.NODE_ENV !== "production") {
2986
2962
  console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
2987
2963
  }
@@ -2990,6 +2966,9 @@ function effect$1(_ref2) {
2990
2966
  }
2991
2967
 
2992
2968
  state.elements.arrow = arrowElement;
2969
+ state.modifiersData[name + "#persistent"] = {
2970
+ padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
2971
+ };
2993
2972
  } // eslint-disable-next-line import/no-unused-modules
2994
2973
 
2995
2974
 
@@ -2998,7 +2977,7 @@ var arrow$1 = {
2998
2977
  enabled: true,
2999
2978
  phase: 'main',
3000
2979
  fn: arrow,
3001
- effect: effect$1,
2980
+ effect: effect,
3002
2981
  requires: ['popperOffsets'],
3003
2982
  requiresIfExists: ['preventOverflow']
3004
2983
  };
@@ -3018,8 +2997,8 @@ function roundOffsetsByDPR(_ref) {
3018
2997
  var win = window;
3019
2998
  var dpr = win.devicePixelRatio || 1;
3020
2999
  return {
3021
- x: round(round(x * dpr) / dpr) || 0,
3022
- y: round(round(y * dpr) / dpr) || 0
3000
+ x: Math.round(x * dpr) / dpr || 0,
3001
+ y: Math.round(y * dpr) / dpr || 0
3023
3002
  };
3024
3003
  }
3025
3004
 
@@ -3035,7 +3014,7 @@ function mapToStyles(_ref2) {
3035
3014
  adaptive = _ref2.adaptive,
3036
3015
  roundOffsets = _ref2.roundOffsets;
3037
3016
 
3038
- var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
3017
+ var _ref3 = roundOffsets ? roundOffsetsByDPR(offsets) : offsets,
3039
3018
  _ref3$x = _ref3.x,
3040
3019
  x = _ref3$x === void 0 ? 0 : _ref3$x,
3041
3020
  _ref3$y = _ref3.y,
@@ -3049,32 +3028,23 @@ function mapToStyles(_ref2) {
3049
3028
 
3050
3029
  if (adaptive) {
3051
3030
  var offsetParent = getOffsetParent(popper);
3052
- var heightProp = 'clientHeight';
3053
- var widthProp = 'clientWidth';
3054
3031
 
3055
3032
  if (offsetParent === getWindow(popper)) {
3056
3033
  offsetParent = getDocumentElement(popper);
3057
-
3058
- if (getComputedStyle$1(offsetParent).position !== 'static') {
3059
- heightProp = 'scrollHeight';
3060
- widthProp = 'scrollWidth';
3061
- }
3062
3034
  } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
3063
3035
 
3036
+ /*:: offsetParent = (offsetParent: Element); */
3064
3037
 
3065
- offsetParent = offsetParent;
3066
3038
 
3067
3039
  if (placement === top) {
3068
- sideY = bottom; // $FlowFixMe[prop-missing]
3069
-
3070
- y -= offsetParent[heightProp] - popperRect.height;
3040
+ sideY = bottom;
3041
+ y -= offsetParent.clientHeight - popperRect.height;
3071
3042
  y *= gpuAcceleration ? 1 : -1;
3072
3043
  }
3073
3044
 
3074
3045
  if (placement === left) {
3075
- sideX = right; // $FlowFixMe[prop-missing]
3076
-
3077
- x -= offsetParent[widthProp] - popperRect.width;
3046
+ sideX = right;
3047
+ x -= offsetParent.clientWidth - popperRect.width;
3078
3048
  x *= gpuAcceleration ? 1 : -1;
3079
3049
  }
3080
3050
  }
@@ -3086,10 +3056,10 @@ function mapToStyles(_ref2) {
3086
3056
  if (gpuAcceleration) {
3087
3057
  var _Object$assign;
3088
3058
 
3089
- return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
3059
+ return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
3090
3060
  }
3091
3061
 
3092
- return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
3062
+ return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
3093
3063
  }
3094
3064
 
3095
3065
  function computeStyles(_ref4) {
@@ -3103,7 +3073,7 @@ function computeStyles(_ref4) {
3103
3073
  roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
3104
3074
 
3105
3075
  if (process.env.NODE_ENV !== "production") {
3106
- var transitionProperty = getComputedStyle$1(state.elements.popper).transitionProperty || '';
3076
+ var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
3107
3077
 
3108
3078
  if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
3109
3079
  return transitionProperty.indexOf(property) >= 0;
@@ -3120,7 +3090,7 @@ function computeStyles(_ref4) {
3120
3090
  };
3121
3091
 
3122
3092
  if (state.modifiersData.popperOffsets != null) {
3123
- state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
3093
+ state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
3124
3094
  offsets: state.modifiersData.popperOffsets,
3125
3095
  position: state.options.strategy,
3126
3096
  adaptive: adaptive,
@@ -3129,7 +3099,7 @@ function computeStyles(_ref4) {
3129
3099
  }
3130
3100
 
3131
3101
  if (state.modifiersData.arrow != null) {
3132
- state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
3102
+ state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
3133
3103
  offsets: state.modifiersData.arrow,
3134
3104
  position: 'absolute',
3135
3105
  adaptive: false,
@@ -3137,7 +3107,7 @@ function computeStyles(_ref4) {
3137
3107
  })));
3138
3108
  }
3139
3109
 
3140
- state.attributes.popper = Object.assign({}, state.attributes.popper, {
3110
+ state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
3141
3111
  'data-popper-placement': state.placement
3142
3112
  });
3143
3113
  } // eslint-disable-next-line import/no-unused-modules
@@ -3155,7 +3125,7 @@ var passive = {
3155
3125
  passive: true
3156
3126
  };
3157
3127
 
3158
- function effect(_ref) {
3128
+ function effect$1(_ref) {
3159
3129
  var state = _ref.state,
3160
3130
  instance = _ref.instance,
3161
3131
  options = _ref.options;
@@ -3195,11 +3165,11 @@ var eventListeners = {
3195
3165
  enabled: true,
3196
3166
  phase: 'write',
3197
3167
  fn: function fn() {},
3198
- effect: effect,
3168
+ effect: effect$1,
3199
3169
  data: {}
3200
3170
  };
3201
3171
 
3202
- var hash$1 = {
3172
+ var hash = {
3203
3173
  left: 'right',
3204
3174
  right: 'left',
3205
3175
  bottom: 'top',
@@ -3207,20 +3177,34 @@ var hash$1 = {
3207
3177
  };
3208
3178
  function getOppositePlacement(placement) {
3209
3179
  return placement.replace(/left|right|bottom|top/g, function (matched) {
3210
- return hash$1[matched];
3180
+ return hash[matched];
3211
3181
  });
3212
3182
  }
3213
3183
 
3214
- var hash = {
3184
+ var hash$1 = {
3215
3185
  start: 'end',
3216
3186
  end: 'start'
3217
3187
  };
3218
3188
  function getOppositeVariationPlacement(placement) {
3219
3189
  return placement.replace(/start|end/g, function (matched) {
3220
- return hash[matched];
3190
+ return hash$1[matched];
3221
3191
  });
3222
3192
  }
3223
3193
 
3194
+ function getBoundingClientRect(element) {
3195
+ var rect = element.getBoundingClientRect();
3196
+ return {
3197
+ width: rect.width,
3198
+ height: rect.height,
3199
+ top: rect.top,
3200
+ right: rect.right,
3201
+ bottom: rect.bottom,
3202
+ left: rect.left,
3203
+ x: rect.left,
3204
+ y: rect.top
3205
+ };
3206
+ }
3207
+
3224
3208
  function getWindowScroll(node) {
3225
3209
  var win = getWindow(node);
3226
3210
  var scrollLeft = win.pageXOffset;
@@ -3283,18 +3267,16 @@ function getViewportRect(element) {
3283
3267
  // of the `<html>` and `<body>` rect bounds if horizontally scrollable
3284
3268
 
3285
3269
  function getDocumentRect(element) {
3286
- var _element$ownerDocumen;
3287
-
3288
3270
  var html = getDocumentElement(element);
3289
3271
  var winScroll = getWindowScroll(element);
3290
- var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
3291
- var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
3292
- var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
3272
+ var body = element.ownerDocument.body;
3273
+ var width = Math.max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
3274
+ var height = Math.max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
3293
3275
  var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
3294
3276
  var y = -winScroll.scrollTop;
3295
3277
 
3296
- if (getComputedStyle$1(body || html).direction === 'rtl') {
3297
- x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
3278
+ if (getComputedStyle$2(body || html).direction === 'rtl') {
3279
+ x += Math.max(html.clientWidth, body ? body.clientWidth : 0) - width;
3298
3280
  }
3299
3281
 
3300
3282
  return {
@@ -3307,7 +3289,7 @@ function getDocumentRect(element) {
3307
3289
 
3308
3290
  function isScrollParent(element) {
3309
3291
  // Firefox wants us to check `-x` and `-y` variations as well
3310
- var _getComputedStyle = getComputedStyle$1(element),
3292
+ var _getComputedStyle = getComputedStyle$2(element),
3311
3293
  overflow = _getComputedStyle.overflow,
3312
3294
  overflowX = _getComputedStyle.overflowX,
3313
3295
  overflowY = _getComputedStyle.overflowY;
@@ -3336,14 +3318,12 @@ reference element's position.
3336
3318
  */
3337
3319
 
3338
3320
  function listScrollParents(element, list) {
3339
- var _element$ownerDocumen;
3340
-
3341
3321
  if (list === void 0) {
3342
3322
  list = [];
3343
3323
  }
3344
3324
 
3345
3325
  var scrollParent = getScrollParent(element);
3346
- var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
3326
+ var isBody = getNodeName(scrollParent) === 'body';
3347
3327
  var win = getWindow(scrollParent);
3348
3328
  var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
3349
3329
  var updatedList = list.concat(target);
@@ -3352,7 +3332,7 @@ function listScrollParents(element, list) {
3352
3332
  }
3353
3333
 
3354
3334
  function rectToClientRect(rect) {
3355
- return Object.assign({}, rect, {
3335
+ return Object.assign(Object.assign({}, rect), {}, {
3356
3336
  left: rect.x,
3357
3337
  top: rect.y,
3358
3338
  right: rect.x + rect.width,
@@ -3382,7 +3362,7 @@ function getClientRectFromMixedType(element, clippingParent) {
3382
3362
 
3383
3363
  function getClippingParents(element) {
3384
3364
  var clippingParents = listScrollParents(getParentNode(element));
3385
- var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$1(element).position) >= 0;
3365
+ var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$2(element).position) >= 0;
3386
3366
  var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
3387
3367
 
3388
3368
  if (!isElement(clipperElement)) {
@@ -3391,7 +3371,7 @@ function getClippingParents(element) {
3391
3371
 
3392
3372
 
3393
3373
  return clippingParents.filter(function (clippingParent) {
3394
- return isElement(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
3374
+ return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
3395
3375
  });
3396
3376
  } // Gets the maximum area that the element is visible in due to any number of
3397
3377
  // clipping parents
@@ -3403,10 +3383,10 @@ function getClippingRect(element, boundary, rootBoundary) {
3403
3383
  var firstClippingParent = clippingParents[0];
3404
3384
  var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
3405
3385
  var rect = getClientRectFromMixedType(element, clippingParent);
3406
- accRect.top = max(rect.top, accRect.top);
3407
- accRect.right = min(rect.right, accRect.right);
3408
- accRect.bottom = min(rect.bottom, accRect.bottom);
3409
- accRect.left = max(rect.left, accRect.left);
3386
+ accRect.top = Math.max(rect.top, accRect.top);
3387
+ accRect.right = Math.min(rect.right, accRect.right);
3388
+ accRect.bottom = Math.min(rect.bottom, accRect.bottom);
3389
+ accRect.left = Math.max(rect.left, accRect.left);
3410
3390
  return accRect;
3411
3391
  }, getClientRectFromMixedType(element, firstClippingParent));
3412
3392
  clippingRect.width = clippingRect.right - clippingRect.left;
@@ -3516,7 +3496,7 @@ function detectOverflow(state, options) {
3516
3496
  strategy: 'absolute',
3517
3497
  placement: placement
3518
3498
  });
3519
- var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
3499
+ var popperClientRect = rectToClientRect(Object.assign(Object.assign({}, popperRect), popperOffsets));
3520
3500
  var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
3521
3501
  // 0 or negative = within the clipping rect
3522
3502
 
@@ -3540,6 +3520,9 @@ function detectOverflow(state, options) {
3540
3520
  return overflowOffsets;
3541
3521
  }
3542
3522
 
3523
+ /*:: type OverflowsMap = { [ComputedPlacement]: number }; */
3524
+
3525
+ /*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
3543
3526
  function computeAutoPlacement(state, options) {
3544
3527
  if (options === void 0) {
3545
3528
  options = {};
@@ -3768,7 +3751,7 @@ function hide(_ref) {
3768
3751
  isReferenceHidden: isReferenceHidden,
3769
3752
  hasPopperEscaped: hasPopperEscaped
3770
3753
  };
3771
- state.attributes.popper = Object.assign({}, state.attributes.popper, {
3754
+ state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
3772
3755
  'data-popper-reference-hidden': isReferenceHidden,
3773
3756
  'data-popper-escaped': hasPopperEscaped
3774
3757
  });
@@ -3787,7 +3770,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
3787
3770
  var basePlacement = getBasePlacement(placement);
3788
3771
  var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
3789
3772
 
3790
- var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
3773
+ var _ref = typeof offset === 'function' ? offset(Object.assign(Object.assign({}, rects), {}, {
3791
3774
  placement: placement
3792
3775
  })) : offset,
3793
3776
  skidding = _ref[0],
@@ -3893,7 +3876,7 @@ function preventOverflow(_ref) {
3893
3876
  var popperOffsets = state.modifiersData.popperOffsets;
3894
3877
  var referenceRect = state.rects.reference;
3895
3878
  var popperRect = state.rects.popper;
3896
- var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
3879
+ var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(Object.assign({}, state.rects), {}, {
3897
3880
  placement: state.placement
3898
3881
  })) : tetherOffset;
3899
3882
  var data = {
@@ -3905,13 +3888,13 @@ function preventOverflow(_ref) {
3905
3888
  return;
3906
3889
  }
3907
3890
 
3908
- if (checkMainAxis || checkAltAxis) {
3891
+ if (checkMainAxis) {
3909
3892
  var mainSide = mainAxis === 'y' ? top : left;
3910
3893
  var altSide = mainAxis === 'y' ? bottom : right;
3911
3894
  var len = mainAxis === 'y' ? 'height' : 'width';
3912
3895
  var offset = popperOffsets[mainAxis];
3913
- var min$1 = popperOffsets[mainAxis] + overflow[mainSide];
3914
- var max$1 = popperOffsets[mainAxis] - overflow[altSide];
3896
+ var min = popperOffsets[mainAxis] + overflow[mainSide];
3897
+ var max = popperOffsets[mainAxis] - overflow[altSide];
3915
3898
  var additive = tether ? -popperRect[len] / 2 : 0;
3916
3899
  var minLen = variation === start ? referenceRect[len] : popperRect[len];
3917
3900
  var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
@@ -3938,29 +3921,26 @@ function preventOverflow(_ref) {
3938
3921
  var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
3939
3922
  var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
3940
3923
  var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
3924
+ var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
3925
+ popperOffsets[mainAxis] = preventedOffset;
3926
+ data[mainAxis] = preventedOffset - offset;
3927
+ }
3941
3928
 
3942
- if (checkMainAxis) {
3943
- var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
3944
- popperOffsets[mainAxis] = preventedOffset;
3945
- data[mainAxis] = preventedOffset - offset;
3946
- }
3947
-
3948
- if (checkAltAxis) {
3949
- var _mainSide = mainAxis === 'x' ? top : left;
3929
+ if (checkAltAxis) {
3930
+ var _mainSide = mainAxis === 'x' ? top : left;
3950
3931
 
3951
- var _altSide = mainAxis === 'x' ? bottom : right;
3932
+ var _altSide = mainAxis === 'x' ? bottom : right;
3952
3933
 
3953
- var _offset = popperOffsets[altAxis];
3934
+ var _offset = popperOffsets[altAxis];
3954
3935
 
3955
- var _min = _offset + overflow[_mainSide];
3936
+ var _min = _offset + overflow[_mainSide];
3956
3937
 
3957
- var _max = _offset - overflow[_altSide];
3938
+ var _max = _offset - overflow[_altSide];
3958
3939
 
3959
- var _preventedOffset = within(tether ? min(_min, tetherMin) : _min, _offset, tether ? max(_max, tetherMax) : _max);
3940
+ var _preventedOffset = within(_min, _offset, _max);
3960
3941
 
3961
- popperOffsets[altAxis] = _preventedOffset;
3962
- data[altAxis] = _preventedOffset - _offset;
3963
- }
3942
+ popperOffsets[altAxis] = _preventedOffset;
3943
+ data[altAxis] = _preventedOffset - _offset;
3964
3944
  }
3965
3945
 
3966
3946
  state.modifiersData[name] = data;
@@ -4191,9 +4171,9 @@ function uniqueBy(arr, fn) {
4191
4171
  function mergeByName(modifiers) {
4192
4172
  var merged = modifiers.reduce(function (merged, current) {
4193
4173
  var existing = merged[current.name];
4194
- merged[current.name] = existing ? Object.assign({}, existing, current, {
4195
- options: Object.assign({}, existing.options, current.options),
4196
- data: Object.assign({}, existing.data, current.data)
4174
+ merged[current.name] = existing ? Object.assign(Object.assign(Object.assign({}, existing), current), {}, {
4175
+ options: Object.assign(Object.assign({}, existing.options), current.options),
4176
+ data: Object.assign(Object.assign({}, existing.data), current.data)
4197
4177
  }) : current;
4198
4178
  return merged;
4199
4179
  }, {}); // IE11 does not support Object.values
@@ -4239,7 +4219,7 @@ function popperGenerator(generatorOptions) {
4239
4219
  var state = {
4240
4220
  placement: 'bottom',
4241
4221
  orderedModifiers: [],
4242
- options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
4222
+ options: Object.assign(Object.assign({}, DEFAULT_OPTIONS), defaultOptions),
4243
4223
  modifiersData: {},
4244
4224
  elements: {
4245
4225
  reference: reference,
@@ -4254,7 +4234,7 @@ function popperGenerator(generatorOptions) {
4254
4234
  state: state,
4255
4235
  setOptions: function setOptions(options) {
4256
4236
  cleanupModifierEffects();
4257
- state.options = Object.assign({}, defaultOptions, state.options, options);
4237
+ state.options = Object.assign(Object.assign(Object.assign({}, defaultOptions), state.options), options);
4258
4238
  state.scrollParents = {
4259
4239
  reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
4260
4240
  popper: listScrollParents(popper)
@@ -4286,7 +4266,7 @@ function popperGenerator(generatorOptions) {
4286
4266
  }
4287
4267
  }
4288
4268
 
4289
- var _getComputedStyle = getComputedStyle$1(popper),
4269
+ var _getComputedStyle = getComputedStyle$2(popper),
4290
4270
  marginTop = _getComputedStyle.marginTop,
4291
4271
  marginRight = _getComputedStyle.marginRight,
4292
4272
  marginBottom = _getComputedStyle.marginBottom,
@@ -4626,7 +4606,7 @@ function usePopper(referenceElement, popperElement, _temp) {
4626
4606
  /* eslint-disable no-bitwise, no-cond-assign */
4627
4607
  // HTML DOM and SVG DOM may have different support levels,
4628
4608
  // so we need to check on context instead of a document root element.
4629
- function contains(context, node) {
4609
+ function contains$1(context, node) {
4630
4610
  if (context.contains) return context.contains(node);
4631
4611
  if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
4632
4612
  }
@@ -4700,13 +4680,13 @@ function safeFindDOMNode(componentOrElement) {
4700
4680
  return componentOrElement != null ? componentOrElement : null;
4701
4681
  }
4702
4682
 
4703
- var ownerDocument = (function (componentOrElement) {
4704
- return ownerDocument$1(safeFindDOMNode(componentOrElement));
4683
+ var ownerDocument$1 = (function (componentOrElement) {
4684
+ return ownerDocument(safeFindDOMNode(componentOrElement));
4705
4685
  });
4706
4686
 
4707
4687
  var escapeKeyCode = 27;
4708
4688
 
4709
- var noop$4 = function noop() {};
4689
+ var noop$1 = function noop() {};
4710
4690
 
4711
4691
  function isLeftClickEvent(event) {
4712
4692
  return event.button === 0;
@@ -4739,11 +4719,11 @@ function useRootClose(ref, onRootClose, _temp) {
4739
4719
  clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;
4740
4720
 
4741
4721
  var preventMouseRootCloseRef = useRef(false);
4742
- var onClose = onRootClose || noop$4;
4722
+ var onClose = onRootClose || noop$1;
4743
4723
  var handleMouseCapture = useCallback(function (e) {
4744
4724
  var currentTarget = getRefTarget(ref);
4745
4725
  warning_1(!!currentTarget, 'RootClose captured a close event but does not have a ref to compare it to. ' + 'useRootClose(), should be passed a ref that resolves to a DOM node');
4746
- preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target);
4726
+ preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains$1(currentTarget, e.target);
4747
4727
  }, [ref]);
4748
4728
  var handleMouse = useEventCallback(function (e) {
4749
4729
  if (!preventMouseRootCloseRef.current) {
@@ -4760,7 +4740,7 @@ function useRootClose(ref, onRootClose, _temp) {
4760
4740
  // https://github.com/facebook/react/issues/20074
4761
4741
 
4762
4742
  var currentEvent = window.event;
4763
- var doc = ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
4743
+ var doc = ownerDocument$1(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
4764
4744
  // avoid false positives in the contains() check below if the target DOM
4765
4745
  // element is removed in the React mouse callback.
4766
4746
 
@@ -4787,7 +4767,7 @@ function useRootClose(ref, onRootClose, _temp) {
4787
4767
 
4788
4768
  if ('ontouchstart' in doc.documentElement) {
4789
4769
  mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {
4790
- return listen(el, 'mousemove', noop$4);
4770
+ return listen(el, 'mousemove', noop$1);
4791
4771
  });
4792
4772
  }
4793
4773
 
@@ -4869,7 +4849,7 @@ function mergeOptionsWithPopperConfig(_ref) {
4869
4849
  });
4870
4850
  }
4871
4851
 
4872
- var noop$3 = function noop() {};
4852
+ var noop$2 = function noop() {};
4873
4853
  /**
4874
4854
  * @memberOf Dropdown
4875
4855
  * @param {object} options
@@ -4937,7 +4917,7 @@ function useDropdownMenu(options) {
4937
4917
 
4938
4918
  var menu;
4939
4919
  var menuProps = {
4940
- ref: setMenu || noop$3,
4920
+ ref: setMenu || noop$2,
4941
4921
  'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
4942
4922
  };
4943
4923
  var childArgs = {
@@ -4970,7 +4950,7 @@ function useDropdownMenu(options) {
4970
4950
  });
4971
4951
  return menu;
4972
4952
  }
4973
- var propTypes$8 = {
4953
+ var propTypes$2 = {
4974
4954
  /**
4975
4955
  * A render prop that returns a Menu element. The `props`
4976
4956
  * argument should spread through to **a component that can accept a ref**.
@@ -5027,7 +5007,7 @@ var propTypes$8 = {
5027
5007
  */
5028
5008
  rootCloseEvent: PropTypes.string
5029
5009
  };
5030
- var defaultProps$r = {
5010
+ var defaultProps$d = {
5031
5011
  usePopper: true
5032
5012
  };
5033
5013
 
@@ -5037,7 +5017,7 @@ var defaultProps$r = {
5037
5017
  * @displayName DropdownMenu
5038
5018
  * @memberOf Dropdown
5039
5019
  */
5040
- function DropdownMenu$1(_ref2) {
5020
+ function DropdownMenu(_ref2) {
5041
5021
  var children = _ref2.children,
5042
5022
  options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
5043
5023
 
@@ -5045,11 +5025,11 @@ function DropdownMenu$1(_ref2) {
5045
5025
  return /*#__PURE__*/React.createElement(React.Fragment, null, args.hasShown ? children(args) : null);
5046
5026
  }
5047
5027
 
5048
- DropdownMenu$1.displayName = 'ReactOverlaysDropdownMenu';
5049
- DropdownMenu$1.propTypes = propTypes$8;
5050
- DropdownMenu$1.defaultProps = defaultProps$r;
5028
+ DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
5029
+ DropdownMenu.propTypes = propTypes$2;
5030
+ DropdownMenu.defaultProps = defaultProps$d;
5051
5031
 
5052
- var noop$2 = function noop() {};
5032
+ var noop$3 = function noop() {};
5053
5033
  /**
5054
5034
  * Wires up Dropdown toggle functionality, returning a set a props to attach
5055
5035
  * to the element that functions as the dropdown toggle (generally a button).
@@ -5063,11 +5043,11 @@ function useDropdownToggle() {
5063
5043
  _ref$show = _ref.show,
5064
5044
  show = _ref$show === void 0 ? false : _ref$show,
5065
5045
  _ref$toggle = _ref.toggle,
5066
- toggle = _ref$toggle === void 0 ? noop$2 : _ref$toggle,
5046
+ toggle = _ref$toggle === void 0 ? noop$3 : _ref$toggle,
5067
5047
  setToggle = _ref.setToggle;
5068
5048
 
5069
5049
  return [{
5070
- ref: setToggle || noop$2,
5050
+ ref: setToggle || noop$3,
5071
5051
  'aria-haspopup': true,
5072
5052
  'aria-expanded': !!show
5073
5053
  }, {
@@ -5075,7 +5055,7 @@ function useDropdownToggle() {
5075
5055
  toggle: toggle
5076
5056
  }];
5077
5057
  }
5078
- var propTypes$7 = {
5058
+ var propTypes$3 = {
5079
5059
  /**
5080
5060
  * A render prop that returns a Toggle element. The `props`
5081
5061
  * argument should spread through to **a component that can accept a ref**. Use
@@ -5100,7 +5080,7 @@ var propTypes$7 = {
5100
5080
  * @displayName DropdownToggle
5101
5081
  * @memberOf Dropdown
5102
5082
  */
5103
- function DropdownToggle$1(_ref2) {
5083
+ function DropdownToggle(_ref2) {
5104
5084
  var children = _ref2.children;
5105
5085
 
5106
5086
  var _useDropdownToggle = useDropdownToggle(),
@@ -5116,10 +5096,10 @@ function DropdownToggle$1(_ref2) {
5116
5096
  }));
5117
5097
  }
5118
5098
 
5119
- DropdownToggle$1.displayName = 'ReactOverlaysDropdownToggle';
5120
- DropdownToggle$1.propTypes = propTypes$7;
5099
+ DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
5100
+ DropdownToggle.propTypes = propTypes$3;
5121
5101
 
5122
- var propTypes$6 = {
5102
+ var propTypes$4 = {
5123
5103
  /**
5124
5104
  * A render prop that returns the root dropdown element. The `props`
5125
5105
  * argument should spread through to an element containing _both_ the
@@ -5191,7 +5171,7 @@ var propTypes$6 = {
5191
5171
  /**
5192
5172
  * @displayName Dropdown
5193
5173
  */
5194
- function Dropdown$1(_ref) {
5174
+ function Dropdown(_ref) {
5195
5175
  var drop = _ref.drop,
5196
5176
  alignEnd = _ref.alignEnd,
5197
5177
  defaultShow = _ref.defaultShow,
@@ -5333,15 +5313,15 @@ function Dropdown$1(_ref) {
5333
5313
  }));
5334
5314
  }
5335
5315
 
5336
- Dropdown$1.displayName = 'ReactOverlaysDropdown';
5337
- Dropdown$1.propTypes = propTypes$6;
5338
- Dropdown$1.Menu = DropdownMenu$1;
5339
- Dropdown$1.Toggle = DropdownToggle$1;
5316
+ Dropdown.displayName = 'ReactOverlaysDropdown';
5317
+ Dropdown.propTypes = propTypes$4;
5318
+ Dropdown.Menu = DropdownMenu;
5319
+ Dropdown.Toggle = DropdownToggle;
5340
5320
 
5341
5321
  var NavContext = React.createContext(null);
5342
5322
  NavContext.displayName = 'NavContext';
5343
5323
 
5344
- var defaultProps$q = {
5324
+ var defaultProps$e = {
5345
5325
  as: SafeAnchor,
5346
5326
  disabled: false
5347
5327
  };
@@ -5390,7 +5370,7 @@ var DropdownItem = React.forwardRef(function (_ref, ref) {
5390
5370
  );
5391
5371
  });
5392
5372
  DropdownItem.displayName = 'DropdownItem';
5393
- DropdownItem.defaultProps = defaultProps$q;
5373
+ DropdownItem.defaultProps = defaultProps$e;
5394
5374
 
5395
5375
  var toFnRef = function toFnRef(ref) {
5396
5376
  return !ref || typeof ref === 'function' ? ref : function (value) {
@@ -5429,8 +5409,8 @@ function useMergedRefs(refA, refB) {
5429
5409
  }, [refA, refB]);
5430
5410
  }
5431
5411
 
5432
- var context = React.createContext(null);
5433
- context.displayName = 'NavbarContext';
5412
+ var context$2 = React.createContext(null);
5413
+ context$2.displayName = 'NavbarContext';
5434
5414
 
5435
5415
  function useWrappedRefWithWarning(ref, componentName) {
5436
5416
  // @ts-ignore
@@ -5551,13 +5531,13 @@ var alignPropType = PropTypes.oneOfType([alignDirection, PropTypes.shape({
5551
5531
  }), PropTypes.shape({
5552
5532
  xl: alignDirection
5553
5533
  })]);
5554
- var defaultProps$p = {
5534
+ var defaultProps$f = {
5555
5535
  align: 'left',
5556
5536
  alignRight: false,
5557
5537
  flip: true
5558
5538
  }; // TODO: remove this hack
5559
5539
 
5560
- var DropdownMenu = React.forwardRef(function (_ref, ref) {
5540
+ var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
5561
5541
  var bsPrefix = _ref.bsPrefix,
5562
5542
  className = _ref.className,
5563
5543
  align = _ref.align,
@@ -5571,7 +5551,7 @@ var DropdownMenu = React.forwardRef(function (_ref, ref) {
5571
5551
  popperConfig = _ref.popperConfig,
5572
5552
  props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
5573
5553
 
5574
- var isNavbar = useContext(context);
5554
+ var isNavbar = useContext(context$2);
5575
5555
  var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
5576
5556
 
5577
5557
  var _usePopperMarginModif = usePopperMarginModifiers(),
@@ -5636,8 +5616,8 @@ var DropdownMenu = React.forwardRef(function (_ref, ref) {
5636
5616
  className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
5637
5617
  }));
5638
5618
  });
5639
- DropdownMenu.displayName = 'DropdownMenu';
5640
- DropdownMenu.defaultProps = defaultProps$p;
5619
+ DropdownMenu$1.displayName = 'DropdownMenu';
5620
+ DropdownMenu$1.defaultProps = defaultProps$f;
5641
5621
 
5642
5622
  var isRequiredForA11y_1 = createCommonjsModule(function (module, exports) {
5643
5623
 
@@ -5666,7 +5646,7 @@ module.exports = exports['default'];
5666
5646
 
5667
5647
  unwrapExports(isRequiredForA11y_1);
5668
5648
 
5669
- var DropdownToggle = React.forwardRef(function (_ref, ref) {
5649
+ var DropdownToggle$1 = React.forwardRef(function (_ref, ref) {
5670
5650
  var bsPrefix = _ref.bsPrefix,
5671
5651
  split = _ref.split,
5672
5652
  className = _ref.className,
@@ -5693,7 +5673,7 @@ var DropdownToggle = React.forwardRef(function (_ref, ref) {
5693
5673
  className: classnames(className, prefix, split && prefix + "-split")
5694
5674
  }, toggleProps, props));
5695
5675
  });
5696
- DropdownToggle.displayName = 'DropdownToggle';
5676
+ DropdownToggle$1.displayName = 'DropdownToggle';
5697
5677
 
5698
5678
  var DropdownHeader = createWithBsPrefix('dropdown-header', {
5699
5679
  defaultProps: {
@@ -5708,10 +5688,10 @@ var DropdownDivider = createWithBsPrefix('dropdown-divider', {
5708
5688
  var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
5709
5689
  Component: 'span'
5710
5690
  });
5711
- var defaultProps$o = {
5691
+ var defaultProps$g = {
5712
5692
  navbar: false
5713
5693
  };
5714
- var Dropdown = React.forwardRef(function (pProps, ref) {
5694
+ var Dropdown$1 = React.forwardRef(function (pProps, ref) {
5715
5695
  var _useUncontrolled = useUncontrolled(pProps, {
5716
5696
  show: 'onToggle'
5717
5697
  }),
@@ -5750,7 +5730,7 @@ var Dropdown = React.forwardRef(function (pProps, ref) {
5750
5730
  });
5751
5731
  return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
5752
5732
  value: handleSelect
5753
- }, /*#__PURE__*/React.createElement(Dropdown$1, {
5733
+ }, /*#__PURE__*/React.createElement(Dropdown, {
5754
5734
  drop: drop,
5755
5735
  show: show,
5756
5736
  alignEnd: alignRight,
@@ -5765,14 +5745,14 @@ var Dropdown = React.forwardRef(function (pProps, ref) {
5765
5745
  }));
5766
5746
  }));
5767
5747
  });
5768
- Dropdown.displayName = 'Dropdown';
5769
- Dropdown.defaultProps = defaultProps$o;
5770
- Dropdown.Divider = DropdownDivider;
5771
- Dropdown.Header = DropdownHeader;
5772
- Dropdown.Item = DropdownItem;
5773
- Dropdown.ItemText = DropdownItemText;
5774
- Dropdown.Menu = DropdownMenu;
5775
- Dropdown.Toggle = DropdownToggle;
5748
+ Dropdown$1.displayName = 'Dropdown';
5749
+ Dropdown$1.defaultProps = defaultProps$g;
5750
+ Dropdown$1.Divider = DropdownDivider;
5751
+ Dropdown$1.Header = DropdownHeader;
5752
+ Dropdown$1.Item = DropdownItem;
5753
+ Dropdown$1.ItemText = DropdownItemText;
5754
+ Dropdown$1.Menu = DropdownMenu$1;
5755
+ Dropdown$1.Toggle = DropdownToggle$1;
5776
5756
 
5777
5757
  var propTypes$5 = {
5778
5758
  /**
@@ -5849,16 +5829,16 @@ var DropdownButton = React.forwardRef(function (_ref, ref) {
5849
5829
  id = _ref.id,
5850
5830
  props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
5851
5831
 
5852
- return /*#__PURE__*/React.createElement(Dropdown, _extends({
5832
+ return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
5853
5833
  ref: ref
5854
- }, props), /*#__PURE__*/React.createElement(DropdownToggle, {
5834
+ }, props), /*#__PURE__*/React.createElement(DropdownToggle$1, {
5855
5835
  id: id,
5856
5836
  href: href,
5857
5837
  size: size,
5858
5838
  variant: variant,
5859
5839
  disabled: disabled,
5860
5840
  childBsPrefix: bsPrefix
5861
- }, title), /*#__PURE__*/React.createElement(DropdownMenu, {
5841
+ }, title), /*#__PURE__*/React.createElement(DropdownMenu$1, {
5862
5842
  align: menuAlign,
5863
5843
  role: menuRole,
5864
5844
  renderOnMount: renderMenuOnMount,
@@ -5961,7 +5941,7 @@ module.exports = exports['default'];
5961
5941
 
5962
5942
  unwrapExports(all_1);
5963
5943
 
5964
- var propTypes$4 = {
5944
+ var propTypes$6 = {
5965
5945
  /**
5966
5946
  * Specify whether the feedback is for valid or invalid fields
5967
5947
  *
@@ -5990,7 +5970,7 @@ function (_ref, ref) {
5990
5970
  }));
5991
5971
  });
5992
5972
  Feedback.displayName = 'Feedback';
5993
- Feedback.propTypes = propTypes$4;
5973
+ Feedback.propTypes = propTypes$6;
5994
5974
 
5995
5975
  var FormContext = React.createContext({
5996
5976
  controlId: undefined
@@ -6340,7 +6320,7 @@ var FormGroup = React.forwardRef(function (_ref, ref) {
6340
6320
  });
6341
6321
  FormGroup.displayName = 'FormGroup';
6342
6322
 
6343
- var defaultProps$n = {
6323
+ var defaultProps$h = {
6344
6324
  column: false,
6345
6325
  srOnly: false
6346
6326
  };
@@ -6379,7 +6359,7 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
6379
6359
  );
6380
6360
  });
6381
6361
  FormLabel.displayName = 'FormLabel';
6382
- FormLabel.defaultProps = defaultProps$n;
6362
+ FormLabel.defaultProps = defaultProps$h;
6383
6363
 
6384
6364
  var FormText = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
6385
6365
  function (_ref, ref) {
@@ -6409,7 +6389,7 @@ Switch.Input = FormCheck.Input;
6409
6389
  Switch.Label = FormCheck.Label;
6410
6390
 
6411
6391
  var FormRow = createWithBsPrefix('form-row');
6412
- var defaultProps$m = {
6392
+ var defaultProps$i = {
6413
6393
  inline: false
6414
6394
  };
6415
6395
  var FormImpl = React.forwardRef(function (_ref, ref) {
@@ -6428,7 +6408,7 @@ var FormImpl = React.forwardRef(function (_ref, ref) {
6428
6408
  }));
6429
6409
  });
6430
6410
  FormImpl.displayName = 'Form';
6431
- FormImpl.defaultProps = defaultProps$m;
6411
+ FormImpl.defaultProps = defaultProps$i;
6432
6412
  FormImpl.Row = FormRow;
6433
6413
  FormImpl.Group = FormGroup;
6434
6414
  FormImpl.Control = FormControl$1;
@@ -6438,7 +6418,7 @@ FormImpl.Switch = Switch;
6438
6418
  FormImpl.Label = FormLabel;
6439
6419
  FormImpl.Text = FormText;
6440
6420
 
6441
- var defaultProps$l = {
6421
+ var defaultProps$j = {
6442
6422
  fluid: false
6443
6423
  };
6444
6424
  var Container = React.forwardRef(function (_ref, ref) {
@@ -6458,9 +6438,9 @@ var Container = React.forwardRef(function (_ref, ref) {
6458
6438
  }));
6459
6439
  });
6460
6440
  Container.displayName = 'Container';
6461
- Container.defaultProps = defaultProps$l;
6441
+ Container.defaultProps = defaultProps$j;
6462
6442
 
6463
- var propTypes$3 = {
6443
+ var propTypes$7 = {
6464
6444
  /**
6465
6445
  * @default 'img'
6466
6446
  */
@@ -6513,7 +6493,7 @@ var Image = React.forwardRef(function (_ref, ref) {
6513
6493
  Image.displayName = 'Image';
6514
6494
  Image.defaultProps = defaultProps$k;
6515
6495
 
6516
- var defaultProps$j = {
6496
+ var defaultProps$l = {
6517
6497
  fluid: true
6518
6498
  };
6519
6499
  var FigureImage = React.forwardRef(function (_ref, ref) {
@@ -6527,8 +6507,8 @@ var FigureImage = React.forwardRef(function (_ref, ref) {
6527
6507
  }));
6528
6508
  });
6529
6509
  FigureImage.displayName = 'FigureImage';
6530
- FigureImage.propTypes = propTypes$3;
6531
- FigureImage.defaultProps = defaultProps$j;
6510
+ FigureImage.propTypes = propTypes$7;
6511
+ FigureImage.defaultProps = defaultProps$l;
6532
6512
 
6533
6513
  var FigureCaption = createWithBsPrefix('figure-caption', {
6534
6514
  Component: 'figcaption'
@@ -6591,7 +6571,7 @@ _extends({}, InputGroup, {
6591
6571
  Prepend: InputGroupPrepend
6592
6572
  });
6593
6573
 
6594
- var defaultProps$i = {
6574
+ var defaultProps$m = {
6595
6575
  fluid: false
6596
6576
  };
6597
6577
  var Jumbotron = React.forwardRef(function (_ref, ref) {
@@ -6612,13 +6592,13 @@ var Jumbotron = React.forwardRef(function (_ref, ref) {
6612
6592
  className: classnames(className, classes)
6613
6593
  }));
6614
6594
  });
6615
- Jumbotron.defaultProps = defaultProps$i;
6595
+ Jumbotron.defaultProps = defaultProps$m;
6616
6596
  Jumbotron.displayName = 'Jumbotron';
6617
6597
 
6618
6598
  var TabContext = React.createContext(null);
6619
6599
 
6620
6600
  // eslint-disable-next-line @typescript-eslint/no-empty-function
6621
- var noop$1 = function noop() {};
6601
+ var noop$4 = function noop() {};
6622
6602
 
6623
6603
  var AbstractNav = React.forwardRef(function (_ref, ref) {
6624
6604
  var _ref$as = _ref.as,
@@ -6708,8 +6688,8 @@ var AbstractNav = React.forwardRef(function (_ref, ref) {
6708
6688
  role: role,
6709
6689
  // used by NavLink to determine it's role
6710
6690
  activeKey: makeEventKey(activeKey),
6711
- getControlledId: getControlledId || noop$1,
6712
- getControllerId: getControllerId || noop$1
6691
+ getControlledId: getControlledId || noop$4,
6692
+ getControllerId: getControllerId || noop$4
6713
6693
  }
6714
6694
  }, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
6715
6695
  onKeyDown: handleKeyDown,
@@ -6718,7 +6698,7 @@ var AbstractNav = React.forwardRef(function (_ref, ref) {
6718
6698
  }))));
6719
6699
  });
6720
6700
 
6721
- var defaultProps$h = {
6701
+ var defaultProps$n = {
6722
6702
  disabled: false
6723
6703
  };
6724
6704
  var AbstractNavItem = React.forwardRef(function (_ref, ref) {
@@ -6764,9 +6744,9 @@ var AbstractNavItem = React.forwardRef(function (_ref, ref) {
6764
6744
  className: classnames(className, isActive && 'active')
6765
6745
  }));
6766
6746
  });
6767
- AbstractNavItem.defaultProps = defaultProps$h;
6747
+ AbstractNavItem.defaultProps = defaultProps$n;
6768
6748
 
6769
- var defaultProps$g = {
6749
+ var defaultProps$o = {
6770
6750
  variant: undefined,
6771
6751
  active: false,
6772
6752
  disabled: false
@@ -6804,10 +6784,10 @@ var ListGroupItem = React.forwardRef(function (_ref, ref) {
6804
6784
  className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
6805
6785
  }));
6806
6786
  });
6807
- ListGroupItem.defaultProps = defaultProps$g;
6787
+ ListGroupItem.defaultProps = defaultProps$o;
6808
6788
  ListGroupItem.displayName = 'ListGroupItem';
6809
6789
 
6810
- var defaultProps$f = {
6790
+ var defaultProps$p = {
6811
6791
  variant: undefined,
6812
6792
  horizontal: undefined
6813
6793
  };
@@ -6840,7 +6820,7 @@ var ListGroup = React.forwardRef(function (props, ref) {
6840
6820
  className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
6841
6821
  }));
6842
6822
  });
6843
- ListGroup.defaultProps = defaultProps$f;
6823
+ ListGroup.defaultProps = defaultProps$p;
6844
6824
  ListGroup.displayName = 'ListGroup';
6845
6825
  ListGroup.Item = ListGroupItem;
6846
6826
 
@@ -6889,7 +6869,7 @@ function scrollbarSize(recalc) {
6889
6869
 
6890
6870
  function activeElement(doc) {
6891
6871
  if (doc === void 0) {
6892
- doc = ownerDocument$1();
6872
+ doc = ownerDocument();
6893
6873
  }
6894
6874
 
6895
6875
  // Support: IE 9 only
@@ -6939,7 +6919,7 @@ function isBody(node) {
6939
6919
  }
6940
6920
 
6941
6921
  function bodyIsOverflowing(node) {
6942
- var doc = isWindow(node) ? ownerDocument$1() : ownerDocument$1(node);
6922
+ var doc = isWindow(node) ? ownerDocument() : ownerDocument(node);
6943
6923
  var win = isWindow(node) || doc.defaultView;
6944
6924
  return doc.body.clientWidth < win.innerWidth;
6945
6925
  }
@@ -7151,7 +7131,7 @@ var resolveContainerRef = function resolveContainerRef(ref) {
7151
7131
  var _ref;
7152
7132
 
7153
7133
  if (typeof document === 'undefined') return null;
7154
- if (ref == null) return ownerDocument$1().body;
7134
+ if (ref == null) return ownerDocument().body;
7155
7135
  if (typeof ref === 'function') ref = ref();
7156
7136
  if (ref && 'current' in ref) ref = ref.current;
7157
7137
  if ((_ref = ref) == null ? void 0 : _ref.nodeType) return ref || null;
@@ -7184,11 +7164,11 @@ function useWaitForDOMRef(ref, onResolved) {
7184
7164
  return resolvedRef;
7185
7165
  }
7186
7166
 
7187
- var manager$1;
7167
+ var manager;
7188
7168
 
7189
7169
  function getManager() {
7190
- if (!manager$1) manager$1 = new ModalManager();
7191
- return manager$1;
7170
+ if (!manager) manager = new ModalManager();
7171
+ return manager;
7192
7172
  }
7193
7173
 
7194
7174
  function useModalManager(provided) {
@@ -7216,7 +7196,7 @@ function useModalManager(provided) {
7216
7196
  });
7217
7197
  }
7218
7198
 
7219
- var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
7199
+ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
7220
7200
  var _ref$show = _ref.show,
7221
7201
  show = _ref$show === void 0 ? false : _ref$show,
7222
7202
  _ref$role = _ref.role,
@@ -7300,7 +7280,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
7300
7280
  if (autoFocus) {
7301
7281
  var currentActiveElement = activeElement(document);
7302
7282
 
7303
- if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
7283
+ if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
7304
7284
  lastFocusRef.current = currentActiveElement;
7305
7285
  modal.dialog.focus();
7306
7286
  }
@@ -7346,7 +7326,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
7346
7326
 
7347
7327
  var currentActiveElement = activeElement();
7348
7328
 
7349
- if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
7329
+ if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
7350
7330
  modal.dialog.focus();
7351
7331
  }
7352
7332
  });
@@ -7437,7 +7417,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
7437
7417
 
7438
7418
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(React.Fragment, null, backdropElement, dialog), container));
7439
7419
  });
7440
- var propTypes$2 = {
7420
+ var propTypes$8 = {
7441
7421
  /**
7442
7422
  * Set the visibility of the Modal
7443
7423
  */
@@ -7593,9 +7573,9 @@ var propTypes$2 = {
7593
7573
  */
7594
7574
  manager: PropTypes.instanceOf(ModalManager)
7595
7575
  };
7596
- Modal$1.displayName = 'Modal';
7597
- Modal$1.propTypes = propTypes$2;
7598
- var BaseModal = Object.assign(Modal$1, {
7576
+ Modal.displayName = 'Modal';
7577
+ Modal.propTypes = propTypes$8;
7578
+ var BaseModal = Object.assign(Modal, {
7599
7579
  Manager: ModalManager
7600
7580
  });
7601
7581
 
@@ -7702,7 +7682,7 @@ ModalDialog.displayName = 'ModalDialog';
7702
7682
 
7703
7683
  var ModalFooter = createWithBsPrefix('modal-footer');
7704
7684
 
7705
- var defaultProps$e = {
7685
+ var defaultProps$q = {
7706
7686
  closeLabel: 'Close',
7707
7687
  closeButton: false
7708
7688
  };
@@ -7731,15 +7711,15 @@ var ModalHeader = React.forwardRef(function (_ref, ref) {
7731
7711
  }));
7732
7712
  });
7733
7713
  ModalHeader.displayName = 'ModalHeader';
7734
- ModalHeader.defaultProps = defaultProps$e;
7714
+ ModalHeader.defaultProps = defaultProps$q;
7735
7715
 
7736
- var DivStyledAsH4 = divWithClassName('h4');
7716
+ var DivStyledAsH4$1 = divWithClassName('h4');
7737
7717
  var ModalTitle = createWithBsPrefix('modal-title', {
7738
- Component: DivStyledAsH4
7718
+ Component: DivStyledAsH4$1
7739
7719
  });
7740
7720
 
7741
- var manager;
7742
- var defaultProps$d = {
7721
+ var manager$1;
7722
+ var defaultProps$r = {
7743
7723
  show: false,
7744
7724
  backdrop: true,
7745
7725
  keyboard: true,
@@ -7761,7 +7741,7 @@ function BackdropTransition(props) {
7761
7741
  /* eslint-enable no-use-before-define */
7762
7742
 
7763
7743
 
7764
- var Modal = React.forwardRef(function (_ref, ref) {
7744
+ var Modal$1 = React.forwardRef(function (_ref, ref) {
7765
7745
  var bsPrefix = _ref.bsPrefix,
7766
7746
  className = _ref.className,
7767
7747
  style = _ref.style,
@@ -7827,14 +7807,14 @@ var Modal = React.forwardRef(function (_ref, ref) {
7827
7807
 
7828
7808
  function getModalManager() {
7829
7809
  if (propsManager) return propsManager;
7830
- if (!manager) manager = new BootstrapModalManager();
7831
- return manager;
7810
+ if (!manager$1) manager$1 = new BootstrapModalManager();
7811
+ return manager$1;
7832
7812
  }
7833
7813
 
7834
7814
  function updateDialogStyle(node) {
7835
7815
  if (!canUseDOM) return;
7836
7816
  var containerIsOverflowing = getModalManager().isContainerOverflowing(modal);
7837
- var modalIsOverflowing = node.scrollHeight > ownerDocument$1(node).documentElement.clientHeight;
7817
+ var modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;
7838
7818
  setStyle({
7839
7819
  paddingRight: containerIsOverflowing && !modalIsOverflowing ? scrollbarSize() : undefined,
7840
7820
  paddingLeft: !containerIsOverflowing && modalIsOverflowing ? scrollbarSize() : undefined
@@ -8015,15 +7995,15 @@ var Modal = React.forwardRef(function (_ref, ref) {
8015
7995
  renderDialog: renderDialog
8016
7996
  }));
8017
7997
  });
8018
- Modal.displayName = 'Modal';
8019
- Modal.defaultProps = defaultProps$d;
8020
- Modal.Body = ModalBody;
8021
- Modal.Header = ModalHeader;
8022
- Modal.Title = ModalTitle;
8023
- Modal.Footer = ModalFooter;
8024
- Modal.Dialog = ModalDialog;
8025
- Modal.TRANSITION_DURATION = 300;
8026
- Modal.BACKDROP_TRANSITION_DURATION = 150;
7998
+ Modal$1.displayName = 'Modal';
7999
+ Modal$1.defaultProps = defaultProps$r;
8000
+ Modal$1.Body = ModalBody;
8001
+ Modal$1.Header = ModalHeader;
8002
+ Modal$1.Title = ModalTitle;
8003
+ Modal$1.Footer = ModalFooter;
8004
+ Modal$1.Dialog = ModalDialog;
8005
+ Modal$1.TRANSITION_DURATION = 300;
8006
+ Modal$1.BACKDROP_TRANSITION_DURATION = 150;
8027
8007
 
8028
8008
  var NavItem = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
8029
8009
  function (_ref, ref) {
@@ -8042,7 +8022,7 @@ function (_ref, ref) {
8042
8022
  });
8043
8023
  NavItem.displayName = 'NavItem';
8044
8024
 
8045
- var defaultProps$c = {
8025
+ var defaultProps$s = {
8046
8026
  disabled: false,
8047
8027
  as: SafeAnchor
8048
8028
  };
@@ -8068,9 +8048,9 @@ var NavLink = React.forwardRef(function (_ref, ref) {
8068
8048
  }));
8069
8049
  });
8070
8050
  NavLink.displayName = 'NavLink';
8071
- NavLink.defaultProps = defaultProps$c;
8051
+ NavLink.defaultProps = defaultProps$s;
8072
8052
 
8073
- var defaultProps$b = {
8053
+ var defaultProps$t = {
8074
8054
  justify: false,
8075
8055
  fill: false
8076
8056
  };
@@ -8096,7 +8076,7 @@ var Nav = React.forwardRef(function (uncontrolledProps, ref) {
8096
8076
  var navbarBsPrefix;
8097
8077
  var cardHeaderBsPrefix;
8098
8078
  var isNavbar = false;
8099
- var navbarContext = useContext(context);
8079
+ var navbarContext = useContext(context$2);
8100
8080
  var cardContext = useContext(context$1);
8101
8081
 
8102
8082
  if (navbarContext) {
@@ -8114,7 +8094,7 @@ var Nav = React.forwardRef(function (uncontrolledProps, ref) {
8114
8094
  }, props), children);
8115
8095
  });
8116
8096
  Nav.displayName = 'Nav';
8117
- Nav.defaultProps = defaultProps$b;
8097
+ Nav.defaultProps = defaultProps$t;
8118
8098
  Nav.Item = NavItem;
8119
8099
  Nav.Link = NavLink;
8120
8100
 
@@ -8139,7 +8119,7 @@ var NavbarCollapse = React.forwardRef(function (_ref, ref) {
8139
8119
  props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
8140
8120
 
8141
8121
  bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
8142
- return /*#__PURE__*/React.createElement(context.Consumer, null, function (context) {
8122
+ return /*#__PURE__*/React.createElement(context$2.Consumer, null, function (context) {
8143
8123
  return /*#__PURE__*/React.createElement(Collapse, _extends({
8144
8124
  in: !!(context && context.expanded)
8145
8125
  }, props), /*#__PURE__*/React.createElement("div", {
@@ -8150,7 +8130,7 @@ var NavbarCollapse = React.forwardRef(function (_ref, ref) {
8150
8130
  });
8151
8131
  NavbarCollapse.displayName = 'NavbarCollapse';
8152
8132
 
8153
- var defaultProps$a = {
8133
+ var defaultProps$u = {
8154
8134
  label: 'Toggle navigation'
8155
8135
  };
8156
8136
  var NavbarToggle = React.forwardRef(function (_ref, ref) {
@@ -8165,7 +8145,7 @@ var NavbarToggle = React.forwardRef(function (_ref, ref) {
8165
8145
 
8166
8146
  bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
8167
8147
 
8168
- var _ref2 = useContext(context) || {},
8148
+ var _ref2 = useContext(context$2) || {},
8169
8149
  onToggle = _ref2.onToggle,
8170
8150
  expanded = _ref2.expanded;
8171
8151
 
@@ -8188,12 +8168,12 @@ var NavbarToggle = React.forwardRef(function (_ref, ref) {
8188
8168
  }));
8189
8169
  });
8190
8170
  NavbarToggle.displayName = 'NavbarToggle';
8191
- NavbarToggle.defaultProps = defaultProps$a;
8171
+ NavbarToggle.defaultProps = defaultProps$u;
8192
8172
 
8193
8173
  var NavbarText = createWithBsPrefix('navbar-text', {
8194
8174
  Component: 'span'
8195
8175
  });
8196
- var defaultProps$9 = {
8176
+ var defaultProps$v = {
8197
8177
  expand: true,
8198
8178
  variant: 'light',
8199
8179
  collapseOnSelect: false
@@ -8246,7 +8226,7 @@ var Navbar = React.forwardRef(function (props, ref) {
8246
8226
  expanded: !!expanded
8247
8227
  };
8248
8228
  }, [bsPrefix, expanded, _onToggle]);
8249
- return /*#__PURE__*/React.createElement(context.Provider, {
8229
+ return /*#__PURE__*/React.createElement(context$2.Provider, {
8250
8230
  value: navbarContext
8251
8231
  }, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
8252
8232
  value: handleCollapse
@@ -8256,14 +8236,14 @@ var Navbar = React.forwardRef(function (props, ref) {
8256
8236
  className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
8257
8237
  }), children)));
8258
8238
  });
8259
- Navbar.defaultProps = defaultProps$9;
8239
+ Navbar.defaultProps = defaultProps$v;
8260
8240
  Navbar.displayName = 'Navbar';
8261
8241
  Navbar.Brand = NavbarBrand;
8262
8242
  Navbar.Toggle = NavbarToggle;
8263
8243
  Navbar.Collapse = NavbarCollapse;
8264
8244
  Navbar.Text = NavbarText;
8265
8245
 
8266
- var propTypes$1 = {
8246
+ var propTypes$9 = {
8267
8247
  /**
8268
8248
  * An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
8269
8249
  * @type {string|number}
@@ -8311,29 +8291,29 @@ var NavDropdown = React.forwardRef(function (_ref, ref) {
8311
8291
  renderMenuOnMount = _ref.renderMenuOnMount,
8312
8292
  props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
8313
8293
 
8314
- return /*#__PURE__*/React.createElement(Dropdown, _extends({
8294
+ return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
8315
8295
  ref: ref
8316
8296
  }, props, {
8317
8297
  as: NavItem
8318
- }), /*#__PURE__*/React.createElement(Dropdown.Toggle, {
8298
+ }), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
8319
8299
  id: id,
8320
8300
  eventKey: null,
8321
8301
  active: active,
8322
8302
  disabled: disabled,
8323
8303
  childBsPrefix: bsPrefix,
8324
8304
  as: NavLink
8325
- }, title), /*#__PURE__*/React.createElement(Dropdown.Menu, {
8305
+ }, title), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
8326
8306
  role: menuRole,
8327
8307
  renderOnMount: renderMenuOnMount,
8328
8308
  rootCloseEvent: rootCloseEvent
8329
8309
  }, children));
8330
8310
  });
8331
8311
  NavDropdown.displayName = 'NavDropdown';
8332
- NavDropdown.propTypes = propTypes$1;
8333
- NavDropdown.Item = Dropdown.Item;
8334
- NavDropdown.ItemText = Dropdown.ItemText;
8335
- NavDropdown.Divider = Dropdown.Divider;
8336
- NavDropdown.Header = Dropdown.Header;
8312
+ NavDropdown.propTypes = propTypes$9;
8313
+ NavDropdown.Item = Dropdown$1.Item;
8314
+ NavDropdown.ItemText = Dropdown$1.ItemText;
8315
+ NavDropdown.Divider = Dropdown$1.Divider;
8316
+ NavDropdown.Header = Dropdown$1.Header;
8337
8317
 
8338
8318
  /**
8339
8319
  * Built on top of `Popper.js`, the overlay component is
@@ -8590,7 +8570,7 @@ Overlay.propTypes = {
8590
8570
  return RefHolder;
8591
8571
  })(React.Component);
8592
8572
 
8593
- var defaultProps$8 = {
8573
+ var defaultProps$w = {
8594
8574
  active: false,
8595
8575
  disabled: false,
8596
8576
  activeLabel: '(current)'
@@ -8619,7 +8599,7 @@ var PageItem = React.forwardRef(function (_ref, ref) {
8619
8599
  className: "sr-only"
8620
8600
  }, activeLabel)));
8621
8601
  });
8622
- PageItem.defaultProps = defaultProps$8;
8602
+ PageItem.defaultProps = defaultProps$w;
8623
8603
  PageItem.displayName = 'PageItem';
8624
8604
 
8625
8605
  function createButton(name, defaultValue, label) {
@@ -8709,7 +8689,7 @@ var PopoverContent = React.forwardRef(function (_ref, ref) {
8709
8689
  }), children);
8710
8690
  });
8711
8691
 
8712
- var defaultProps$7 = {
8692
+ var defaultProps$x = {
8713
8693
  placement: 'right'
8714
8694
  };
8715
8695
  var Popover = React.forwardRef(function (_ref, ref) {
@@ -8739,13 +8719,13 @@ var Popover = React.forwardRef(function (_ref, ref) {
8739
8719
  className: "arrow"
8740
8720
  }, arrowProps)), content ? /*#__PURE__*/React.createElement(PopoverContent, null, children) : children);
8741
8721
  });
8742
- Popover.defaultProps = defaultProps$7;
8722
+ Popover.defaultProps = defaultProps$x;
8743
8723
  Popover.Title = PopoverTitle;
8744
8724
  Popover.Content = PopoverContent;
8745
8725
 
8746
8726
  var ROUND_PRECISION = 1000;
8747
8727
 
8748
- var defaultProps$6 = {
8728
+ var defaultProps$y = {
8749
8729
  min: 0,
8750
8730
  max: 100,
8751
8731
  animated: false,
@@ -8835,9 +8815,9 @@ var ProgressBar = React.forwardRef(function (_ref2, ref) {
8835
8815
  }, ref));
8836
8816
  });
8837
8817
  ProgressBar.displayName = 'ProgressBar';
8838
- ProgressBar.defaultProps = defaultProps$6;
8818
+ ProgressBar.defaultProps = defaultProps$y;
8839
8819
 
8840
- var defaultProps$5 = {
8820
+ var defaultProps$z = {
8841
8821
  aspectRatio: '1by1'
8842
8822
  };
8843
8823
  var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
@@ -8857,10 +8837,10 @@ var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
8857
8837
  className: classnames(child.props.className, decoratedBsPrefix + "-item")
8858
8838
  }));
8859
8839
  });
8860
- ResponsiveEmbed.defaultProps = defaultProps$5;
8840
+ ResponsiveEmbed.defaultProps = defaultProps$z;
8861
8841
 
8862
- var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
8863
- var defaultProps$4 = {
8842
+ var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
8843
+ var defaultProps$A = {
8864
8844
  noGutters: false
8865
8845
  };
8866
8846
  var Row = React.forwardRef(function (_ref, ref) {
@@ -8874,7 +8854,7 @@ var Row = React.forwardRef(function (_ref, ref) {
8874
8854
  var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
8875
8855
  var sizePrefix = decoratedBsPrefix + "-cols";
8876
8856
  var classes = [];
8877
- DEVICE_SIZES.forEach(function (brkPoint) {
8857
+ DEVICE_SIZES$1.forEach(function (brkPoint) {
8878
8858
  var propValue = props[brkPoint];
8879
8859
  delete props[brkPoint];
8880
8860
  var cols;
@@ -8895,7 +8875,7 @@ var Row = React.forwardRef(function (_ref, ref) {
8895
8875
  }));
8896
8876
  });
8897
8877
  Row.displayName = 'Row';
8898
- Row.defaultProps = defaultProps$4;
8878
+ Row.defaultProps = defaultProps$A;
8899
8879
 
8900
8880
  var Spinner = React.forwardRef(function (_ref, ref) {
8901
8881
  var bsPrefix = _ref.bsPrefix,
@@ -8918,7 +8898,7 @@ var Spinner = React.forwardRef(function (_ref, ref) {
8918
8898
  });
8919
8899
  Spinner.displayName = 'Spinner';
8920
8900
 
8921
- var propTypes = {
8901
+ var propTypes$a = {
8922
8902
  /**
8923
8903
  * An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
8924
8904
  * @type {string|number}
@@ -8980,7 +8960,7 @@ var propTypes = {
8980
8960
  /** @ignore */
8981
8961
  size: PropTypes.string
8982
8962
  };
8983
- var defaultProps$3 = {
8963
+ var defaultProps$B = {
8984
8964
  toggleLabel: 'Toggle dropdown',
8985
8965
  type: 'button'
8986
8966
  };
@@ -9002,7 +8982,7 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
9002
8982
  rootCloseEvent = _ref.rootCloseEvent,
9003
8983
  props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
9004
8984
 
9005
- return /*#__PURE__*/React.createElement(Dropdown, _extends({
8985
+ return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
9006
8986
  ref: ref
9007
8987
  }, props, {
9008
8988
  as: ButtonGroup
@@ -9015,7 +8995,7 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
9015
8995
  target: target,
9016
8996
  onClick: onClick,
9017
8997
  type: type
9018
- }, title), /*#__PURE__*/React.createElement(Dropdown.Toggle, {
8998
+ }, title), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
9019
8999
  split: true,
9020
9000
  id: id ? id.toString() : undefined,
9021
9001
  size: size,
@@ -9024,15 +9004,15 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
9024
9004
  childBsPrefix: bsPrefix
9025
9005
  }, /*#__PURE__*/React.createElement("span", {
9026
9006
  className: "sr-only"
9027
- }, toggleLabel)), /*#__PURE__*/React.createElement(Dropdown.Menu, {
9007
+ }, toggleLabel)), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
9028
9008
  align: menuAlign,
9029
9009
  role: menuRole,
9030
9010
  renderOnMount: renderMenuOnMount,
9031
9011
  rootCloseEvent: rootCloseEvent
9032
9012
  }, children));
9033
9013
  });
9034
- SplitButton.propTypes = propTypes;
9035
- SplitButton.defaultProps = defaultProps$3;
9014
+ SplitButton.propTypes = propTypes$a;
9015
+ SplitButton.defaultProps = defaultProps$B;
9036
9016
  SplitButton.displayName = 'SplitButton';
9037
9017
 
9038
9018
  var TabContainer = function TabContainer(props) {
@@ -9221,7 +9201,7 @@ var ToastContext = React.createContext({
9221
9201
  onClose: function onClose() {}
9222
9202
  });
9223
9203
 
9224
- var defaultProps$2 = {
9204
+ var defaultProps$C = {
9225
9205
  closeLabel: 'Close',
9226
9206
  closeButton: true
9227
9207
  };
@@ -9252,7 +9232,7 @@ var ToastHeader = React.forwardRef(function (_ref, ref) {
9252
9232
  }));
9253
9233
  });
9254
9234
  ToastHeader.displayName = 'ToastHeader';
9255
- ToastHeader.defaultProps = defaultProps$2;
9235
+ ToastHeader.defaultProps = defaultProps$C;
9256
9236
 
9257
9237
  var ToastBody = createWithBsPrefix('toast-body');
9258
9238
 
@@ -9319,7 +9299,7 @@ Object.assign(Toast, {
9319
9299
  Header: ToastHeader
9320
9300
  });
9321
9301
 
9322
- var noop = function noop() {
9302
+ var noop$5 = function noop() {
9323
9303
  return undefined;
9324
9304
  };
9325
9305
 
@@ -9361,12 +9341,12 @@ var ToggleButton = React.forwardRef(function (_ref, ref) {
9361
9341
  disabled: !!disabled,
9362
9342
  onFocus: handleFocus,
9363
9343
  onBlur: handleBlur,
9364
- onChange: onChange || noop
9344
+ onChange: onChange || noop$5
9365
9345
  }), children);
9366
9346
  });
9367
9347
  ToggleButton.displayName = 'ToggleButton';
9368
9348
 
9369
- var defaultProps$1 = {
9349
+ var defaultProps$D = {
9370
9350
  type: 'radio',
9371
9351
  vertical: false
9372
9352
  };
@@ -9429,10 +9409,10 @@ var ToggleButtonGroup = React.forwardRef(function (props, ref) {
9429
9409
  });
9430
9410
  }));
9431
9411
  });
9432
- ToggleButtonGroup.defaultProps = defaultProps$1;
9412
+ ToggleButtonGroup.defaultProps = defaultProps$D;
9433
9413
  ToggleButtonGroup.Button = ToggleButton;
9434
9414
 
9435
- var defaultProps = {
9415
+ var defaultProps$E = {
9436
9416
  placement: 'right'
9437
9417
  };
9438
9418
  var Tooltip = React.forwardRef(function (_ref, ref) {
@@ -9463,10 +9443,10 @@ var Tooltip = React.forwardRef(function (_ref, ref) {
9463
9443
  className: bsPrefix + "-inner"
9464
9444
  }, children));
9465
9445
  });
9466
- Tooltip.defaultProps = defaultProps;
9446
+ Tooltip.defaultProps = defaultProps$E;
9467
9447
  Tooltip.displayName = 'Tooltip';
9468
9448
 
9469
- var css = ".MediaSeriesCard-module_article__SAFYK {\n width: 100%;\n margin: 0 0 1rem 0;\n}\n.MediaSeriesCard-module_article__SAFYK a {\n display: flex;\n width: 100%;\n color: #000000;\n}\n.MediaSeriesCard-module_thumb__3jRAU {\n width: 25%;\n}\n.MediaSeriesCard-module_thumb__3jRAU img {\n width: 100%;\n height: auto;\n}\n.MediaSeriesCard-module_info__3L7_o {\n width: 75%;\n font-size: 1rem;\n}\n.MediaSeriesCard-module_info__3L7_o h2 {\n font-weight: bold;\n font-size: 1.25rem;\n margin: 0;\n}\n.MediaSeriesCard-module_published__E4oiz {\n color: #6d6d6d;\n margin: 0;\n}\n.MediaSeriesCard-module_summary__1xanh {\n margin: 0.5rem 0 0 0;\n}\n.MediaSeriesCard-module_author__e5fuR {\n margin: 0;\n}\n.MediaSeriesCard-module_author__e5fuR span {\n color: #6d6d6d;\n}\n.MediaSeriesCard-module_name__2m5KY {\n font-size: 1.3rem;\n font-weight: bold;\n}\n@media only screen and (max-width: 568px) {\n .MediaSeriesCard-module_article__SAFYK {\n margin: 1rem 0;\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n }\n .MediaSeriesCard-module_article__SAFYK a {\n flex-direction: column;\n align-items: center;\n }\n .MediaSeriesCard-module_thumb__3jRAU {\n overflow: hidden;\n width: 100%;\n margin-bottom: 1rem;\n }\n .MediaSeriesCard-module_thumb__3jRAU img{\n border-radius: 10px 10px 0 0; \n }\n .MediaSeriesCard-module_thumb__3jRAU figure {\n margin: 0;\n }\n .MediaSeriesCard-module_info__3L7_o {\n width: 90%;\n padding: 0rem !important;\n }\n .MediaSeriesCard-module_info__3L7_o h2 {\n font-size: 1rem;\n }\n .MediaSeriesCard-module_name__2m5KY {\n font-size: 1rem;\n \n }\n}\n";
9449
+ var css = ".MediaSeriesCard-module_article__SAFYK {\r\n width: 100%;\r\n margin: 0 0 1rem 0;\r\n}\r\n.MediaSeriesCard-module_article__SAFYK a {\r\n display: flex;\r\n width: 100%;\r\n color: #000000;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU {\r\n width: 25%;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU img {\r\n width: 100%;\r\n height: auto;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o {\r\n width: 75%;\r\n font-size: 1rem;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o h2 {\r\n font-weight: bold;\r\n font-size: 1.25rem;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_published__E4oiz {\r\n color: #6d6d6d;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_summary__1xanh {\r\n margin: 0.5rem 0 0 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR {\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR span {\r\n color: #6d6d6d;\r\n}\r\n.MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1.3rem;\r\n font-weight: bold;\r\n}\r\n@media only screen and (max-width: 568px) {\r\n .MediaSeriesCard-module_article__SAFYK {\r\n margin: 1rem 0;\r\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\r\n }\r\n .MediaSeriesCard-module_article__SAFYK a {\r\n flex-direction: column;\r\n align-items: center;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU {\r\n overflow: hidden;\r\n width: 100%;\r\n margin-bottom: 1rem;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU img{\r\n border-radius: 10px 10px 0 0; \r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU figure {\r\n margin: 0;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o {\r\n width: 90%;\r\n padding: 0rem !important;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o h2 {\r\n font-size: 1rem;\r\n }\r\n .MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1rem;\r\n \r\n }\r\n}\r\n";
9470
9450
  var styles = { "article": "MediaSeriesCard-module_article__SAFYK", "thumb": "MediaSeriesCard-module_thumb__3jRAU", "info": "MediaSeriesCard-module_info__3L7_o", "published": "MediaSeriesCard-module_published__E4oiz", "summary": "MediaSeriesCard-module_summary__1xanh", "author": "MediaSeriesCard-module_author__e5fuR", "name": "MediaSeriesCard-module_name__2m5KY" };
9471
9451
  styleInject(css);
9472
9452
 
@@ -9554,30 +9534,30 @@ var Filter = function Filter(_ref) {
9554
9534
  _useState6 = _slicedToArray(_useState5, 2),
9555
9535
  grandChildData = _useState6[0],
9556
9536
  setGrandChildData = _useState6[1];
9557
- /*
9558
- {parent: showAll,
9559
- chidlren: show selected from parent,
9560
- grandchildren: show selected from children
9561
- }
9537
+ /*
9538
+ {parent: showAll,
9539
+ chidlren: show selected from parent,
9540
+ grandchildren: show selected from children
9541
+ }
9562
9542
  */
9563
9543
 
9564
9544
 
9565
9545
  useEffect(function () {
9566
9546
  if (filterData.length < 2) {
9567
- setChildData({ name: null, data: filterData[0].children, _id: filterData[0]._id });
9547
+ setChildData({ name: null, data: filterData[0].children });
9568
9548
  } else {
9569
9549
  setParentData({ name: null, data: filterData });
9570
9550
  }
9571
9551
  }, []);
9572
9552
 
9573
9553
  var handleFilterSelect = function handleFilterSelect(group, type) {
9554
+
9574
9555
  if (type === 'parent') {
9575
9556
  setParentData(function (prevState) {
9576
9557
  return _extends$1({}, prevState, { name: group.name ? group.name : null });
9577
9558
  });
9578
9559
  if (group && group.children && group.children.length > 0) {
9579
- setChildData({ data: group.children, _id: group._id });
9580
- setFilterTopicID(group._id);
9560
+ setChildData({ data: group.children });
9581
9561
  } else {
9582
9562
  //handle filter
9583
9563
  setChildData(null);
@@ -9587,17 +9567,10 @@ var Filter = function Filter(_ref) {
9587
9567
  }
9588
9568
  if (type === 'child') {
9589
9569
  setChildData(function (prevState) {
9590
- return _extends$1({}, prevState, { name: group.name ? group.name : null, _id: group._id });
9570
+ return _extends$1({}, prevState, { name: group.name ? group.name : null });
9591
9571
  });
9592
9572
  if (group && group.grandchildren && group.grandchildren.length > 0) {
9593
- setGrandChildData({ data: group.grandchildren, _id: group._id });
9594
- setFilterTopicID(group._id);
9595
- var topics = [];
9596
- topics.push(group._id);
9597
- group.grandchildren.forEach(function (topic) {
9598
- topics.push(topic._id);
9599
- });
9600
- setFilterTopicID(topics);
9573
+ setGrandChildData({ data: group.grandchildren });
9601
9574
  } else {
9602
9575
  //handle filter
9603
9576
  setGrandChildData(null);
@@ -9606,19 +9579,10 @@ var Filter = function Filter(_ref) {
9606
9579
  }
9607
9580
  if (type === 'grandchild') {
9608
9581
  setGrandChildData(function (prevState) {
9609
- return _extends$1({}, prevState, { name: group.name ? group.name : 'All', _id: group._id });
9582
+ return _extends$1({}, prevState, { name: group.name ? group.name : null });
9610
9583
  });
9611
9584
  //handle filter
9612
- if (!group._id) {
9613
- var _topics = [];
9614
- _topics.push(childData._id);
9615
- grandChildData.data.forEach(function (topic) {
9616
- _topics.push(topic._id);
9617
- });
9618
- setFilterTopicID(_topics);
9619
- } else {
9620
- setFilterTopicID([group._id, childData._id]);
9621
- }
9585
+ setFilterTopicID(group._id ? group._id : 'all');
9622
9586
  }
9623
9587
  };
9624
9588
 
@@ -9629,16 +9593,15 @@ var Filter = function Filter(_ref) {
9629
9593
  DropdownButton,
9630
9594
  { drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
9631
9595
  React.createElement(
9632
- Dropdown.Item,
9596
+ Dropdown$1.Item,
9633
9597
  { onSelect: function onSelect() {
9634
9598
  return handleFilterSelect({}, 'parent');
9635
9599
  } },
9636
9600
  'All'
9637
9601
  ),
9638
9602
  parentData.data.map(function (docGroup) {
9639
- if (!docGroup._id) return null;
9640
9603
  return React.createElement(
9641
- Dropdown.Item,
9604
+ Dropdown$1.Item,
9642
9605
  { key: docGroup._id, onSelect: function onSelect() {
9643
9606
  return handleFilterSelect(docGroup, 'parent');
9644
9607
  } },
@@ -9649,17 +9612,16 @@ var Filter = function Filter(_ref) {
9649
9612
  childData && React.createElement(
9650
9613
  DropdownButton,
9651
9614
  { drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
9652
- React.createElement(
9653
- Dropdown.Item,
9615
+ !parentData && React.createElement(
9616
+ Dropdown$1.Item,
9654
9617
  { onSelect: function onSelect() {
9655
9618
  return handleFilterSelect({}, 'child');
9656
9619
  } },
9657
9620
  'All'
9658
9621
  ),
9659
9622
  childData.data.map(function (docGroup) {
9660
- if (!docGroup._id) return null;
9661
9623
  return React.createElement(
9662
- Dropdown.Item,
9624
+ Dropdown$1.Item,
9663
9625
  { key: docGroup._id, onSelect: function onSelect() {
9664
9626
  return handleFilterSelect(docGroup, 'child');
9665
9627
  } },
@@ -9670,17 +9632,16 @@ var Filter = function Filter(_ref) {
9670
9632
  grandChildData && React.createElement(
9671
9633
  DropdownButton,
9672
9634
  { drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
9673
- React.createElement(
9674
- Dropdown.Item,
9635
+ !childData && React.createElement(
9636
+ Dropdown$1.Item,
9675
9637
  { onSelect: function onSelect() {
9676
9638
  return handleFilterSelect({}, 'grandchild');
9677
9639
  } },
9678
9640
  'All'
9679
9641
  ),
9680
9642
  grandChildData.data.map(function (docGroup) {
9681
- if (!docGroup._id) return null;
9682
9643
  return React.createElement(
9683
- Dropdown.Item,
9644
+ Dropdown$1.Item,
9684
9645
  { key: docGroup._id, onSelect: function onSelect() {
9685
9646
  return handleFilterSelect(docGroup, 'grandchild');
9686
9647
  } },
@@ -9731,40 +9692,25 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
9731
9692
 
9732
9693
  var fetchFilteredData = function () {
9733
9694
  var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
9734
- var newParams, filterQuery, x, seriesQuery, newData;
9695
+ var newParams, filterQuery, seriesQuery, newData;
9735
9696
  return regenerator.wrap(function _callee$(_context) {
9736
9697
  while (1) {
9737
9698
  switch (_context.prev = _context.next) {
9738
9699
  case 0:
9739
9700
  newParams = _extends$1({}, params, { from: 0, to: 10 });
9740
- filterQuery = void 0;
9741
-
9742
- if ((typeof filterTopicID === 'undefined' ? 'undefined' : _typeof(filterTopicID)) == 'object') {
9743
- filterQuery = '&& (';
9744
- for (x = 0; x < filterTopicID.length; x++) {
9745
- filterQuery = filterQuery + (' references(\'' + filterTopicID[x] + '\') ');
9746
- if (x == filterTopicID.length - 1) {
9747
- filterQuery = filterQuery + ' )';
9748
- } else {
9749
- filterQuery = filterQuery + ' || ';
9750
- }
9751
- }
9752
- } else {
9753
- filterQuery = filterTopicID !== 'all' ? ' && references(\'' + filterTopicID + '\')' : '';
9754
- }
9755
-
9701
+ filterQuery = filterTopicID !== 'all' ? '&& references(\'' + filterTopicID + '\')' : '';
9756
9702
  seriesQuery = '*[_type == \'documentGroup\' && references(\'' + docGroupID + '\') ' + filterQuery + ' && isSeries != false && isShow != false && defined(published) && dateTime(published) <= dateTime(now())] | order(published desc) [$from...$to] {\n _id,\n name,\n identifier,\n published,\n thumbnail,\n description,\n topicMapping[]->,\n \'pageNumber\': ' + currentPage + ',\n \'parentUrl\': \'' + parentUrl + '\'\n }';
9757
- _context.next = 6;
9703
+ _context.next = 5;
9758
9704
  return client.fetch(seriesQuery, newParams);
9759
9705
 
9760
- case 6:
9706
+ case 5:
9761
9707
  newData = _context.sent;
9762
9708
 
9763
9709
  setParams(newParams);
9764
9710
  setQuery(seriesQuery);
9765
9711
  setSeriesData(newData);
9766
9712
 
9767
- case 10:
9713
+ case 9:
9768
9714
  case 'end':
9769
9715
  return _context.stop();
9770
9716
  }
@@ -9835,7 +9781,7 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
9835
9781
 
9836
9782
  MediaSeriesLanding.getInitialData = function () {
9837
9783
  var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(ctx, client, cache) {
9838
- var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
9784
+ var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, taxonomyFilter;
9839
9785
  return regenerator.wrap(function _callee2$(_context2) {
9840
9786
  while (1) {
9841
9787
  switch (_context2.prev = _context2.next) {
@@ -9864,70 +9810,19 @@ MediaSeriesLanding.getInitialData = function () {
9864
9810
  case 13:
9865
9811
  seriesData = _context2.sent;
9866
9812
  _context2.next = 16;
9867
- return client.fetch('*[_type == \'documentGroup\' && references(\'' + docGroupID._id + '\') && isSeries != false && isShow != false && defined(published) && dateTime(published) <= dateTime(now()) ] {\n topicMapping[]->\n }');
9868
-
9869
- case 16:
9870
- allSeries = _context2.sent;
9871
-
9872
- //Take all series topicMapping and put in an array
9873
- buildUsedTopicsArray = function buildUsedTopicsArray(seriesArray) {
9874
- var usedTopics = [];
9875
- for (var x = 0; x < seriesArray.length; x++) {
9876
- if (seriesArray[x].topicMapping) {
9877
- seriesArray[x].topicMapping.forEach(function (topic) {
9878
- if (!usedTopics.includes(topic._id)) {
9879
- usedTopics.push(topic._id);
9880
- }
9881
- });
9882
- }
9883
- }
9884
- return usedTopics;
9885
- };
9886
-
9887
- usedTopics = buildUsedTopicsArray(allSeries);
9888
- _context2.next = 21;
9889
9813
  return client.fetch('\n *[_type == \'taxonomy\' && !defined(parent) && isMainTopic]{\n _id,\n identifier,\n name,\n "children": *[_type == \'taxonomy\' && references(^._id)]{\n _id,\n name,\n identifier,\n "grandchildren": *[_type == \'taxonomy\' && references(^._id)]\n }\t\n }');
9890
9814
 
9891
- case 21:
9815
+ case 16:
9892
9816
  taxonomyFilter = _context2.sent;
9893
9817
 
9894
9818
 
9895
- taxonomyFilter.forEach(function (topic) {
9896
- if (topic.children) {
9897
- topic.children.forEach(function (child) {
9898
- if (child.grandchildren) {
9899
- child.grandchildren = child.grandchildren.filter(function (grandchild) {
9900
- if (!usedTopics.includes(grandchild._id)) {
9901
- return false;
9902
- }
9903
- return true;
9904
- });
9905
- }
9906
- if (!usedTopics.includes(child._id) || !child.grandchildren) {
9907
- child._id = null;
9908
- child.name = null;
9909
- }
9910
- });
9911
- }
9912
- });
9913
-
9914
9819
  if (currentPage > 1 && seriesData.length === 0) {
9915
9820
  statusCode = 404;
9916
9821
  }
9917
9822
 
9918
- return _context2.abrupt('return', _defineProperty({
9919
- seriesData: seriesData,
9920
- query: seriesQuery,
9921
- params: params,
9922
- currentPage: currentPage,
9923
- taxonomyFilter: taxonomyFilter,
9924
- identifier: identifier,
9925
- docGroupID: docGroupID._id,
9926
- parentUrl: identifier,
9927
- statusCode: statusCode
9928
- }, 'taxonomyFilter', taxonomyFilter));
9929
-
9930
- case 25:
9823
+ return _context2.abrupt('return', _defineProperty({ seriesData: seriesData, query: seriesQuery, params: params, currentPage: currentPage, taxonomyFilter: taxonomyFilter, identifier: identifier, docGroupID: docGroupID._id, parentUrl: identifier, statusCode: statusCode }, 'taxonomyFilter', taxonomyFilter));
9824
+
9825
+ case 19:
9931
9826
  case 'end':
9932
9827
  return _context2.stop();
9933
9828
  }