@mjhls/mjh-framework 1.0.864 → 1.0.866-beta.0

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 (319) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +9 -10
  3. package/dist/cjs/AD300x250.js +28 -30
  4. package/dist/cjs/AD300x250x600.js +28 -30
  5. package/dist/cjs/AD728x90.js +31 -33
  6. package/dist/cjs/ADFloatingFooter.js +30 -32
  7. package/dist/cjs/ADFooter.js +12 -15
  8. package/dist/cjs/ADGutter.js +30 -32
  9. package/dist/cjs/{ADInfeed-f8324b70.js → ADInfeed-7c09edba.js} +13 -15
  10. package/dist/cjs/ADSkyscraper.js +30 -32
  11. package/dist/cjs/ADSponsoredResources.js +30 -32
  12. package/dist/cjs/ADWebcast.js +30 -32
  13. package/dist/cjs/ADWelcome.js +31 -33
  14. package/dist/cjs/{ADlgInfeed-98d7c699.js → ADlgInfeed-2e7effc7.js} +10 -11
  15. package/dist/cjs/AccordionPanel.js +27 -31
  16. package/dist/cjs/AdSlot.js +33 -35
  17. package/dist/cjs/AdSlotsProvider.js +910 -20
  18. package/dist/cjs/AlgoliaSearch.js +14023 -60
  19. package/dist/cjs/AlphabeticList.js +23 -26
  20. package/dist/cjs/ArticleCarousel.js +19 -25
  21. package/dist/cjs/ArticleProgramLandingPage.js +60 -62
  22. package/dist/cjs/ArticleSeriesLandingPage.js +41 -43
  23. package/dist/cjs/ArticleSeriesListing.js +60 -62
  24. package/dist/cjs/Auth.js +1504 -682
  25. package/dist/cjs/AuthWrapper.js +266 -310
  26. package/dist/cjs/{AuthorComponent-c21aac7f.js → AuthorComponent-02e827ae.js} +13 -14
  27. package/dist/cjs/Beam.js +6 -8
  28. package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-091a991f.js} +55 -56
  29. package/dist/cjs/Breadcrumbs.js +25 -29
  30. package/dist/cjs/CMEDeck.js +82 -83
  31. package/dist/cjs/Column1.js +11 -14
  32. package/dist/cjs/Column2.js +31 -36
  33. package/dist/cjs/Column3.js +57 -61
  34. package/dist/cjs/ConferenceArticleCard.js +25 -23
  35. package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
  36. package/dist/cjs/DeckContent.js +94 -99
  37. package/dist/cjs/DeckQueue.js +88 -92
  38. package/dist/cjs/{Dfp-3f0ed4c8.js → Dfp-14d2455c.js} +32 -34
  39. package/dist/cjs/EventsDeck.js +134 -143
  40. package/dist/cjs/ExternalResources.js +78 -80
  41. package/dist/cjs/Feature.js +27 -26
  42. package/dist/cjs/ForbesHero.js +40 -43
  43. package/dist/cjs/GridContent.js +232 -238
  44. package/dist/cjs/GridHero.js +42 -45
  45. package/dist/cjs/GroupDeck.js +57 -60
  46. package/dist/cjs/HamMagazine.js +130 -137
  47. package/dist/cjs/Header.js +12 -14
  48. package/dist/cjs/Hero.js +15 -13
  49. package/dist/cjs/HighlightenVideo.js +17 -18
  50. package/dist/cjs/HorizontalArticleListing.js +70 -72
  51. package/dist/cjs/HorizontalHero.js +28 -26
  52. package/dist/cjs/IssueContentDeck.js +71 -78
  53. package/dist/cjs/IssueDeck.js +70 -77
  54. package/dist/cjs/IssueLanding.js +65 -67
  55. package/dist/cjs/LeftNav.js +37 -40
  56. package/dist/cjs/MasterDeck.js +70 -72
  57. package/dist/cjs/MediaSeriesLanding.js +1093 -1186
  58. package/dist/cjs/NavDvm.js +72 -79
  59. package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
  60. package/dist/cjs/NavMagazine.js +136 -143
  61. package/dist/cjs/NavNative.js +128 -138
  62. package/dist/cjs/OncliveHero.js +22 -19
  63. package/dist/cjs/OncliveLargeHero.js +70 -73
  64. package/dist/cjs/PageFilter.js +12 -15
  65. package/dist/cjs/PartnerDetailListing.js +3917 -118
  66. package/dist/cjs/PdfDownload.js +9 -10
  67. package/dist/cjs/PopUpModal.js +17 -21
  68. package/dist/cjs/PubSection.js +41 -43
  69. package/dist/cjs/PubToc.js +13 -16
  70. package/dist/cjs/PublicationDeck.js +65 -67
  71. package/dist/cjs/PublicationLanding.js +129 -135
  72. package/dist/cjs/QueueDeckExpanded.js +309 -310
  73. package/dist/cjs/RecentNews.js +22 -23
  74. package/dist/cjs/RelatedContent.js +29 -27
  75. package/dist/cjs/RelatedTopicsDropdown.js +19 -22
  76. package/dist/cjs/RolesDeck.js +27 -32
  77. package/dist/cjs/Search.js +16 -22
  78. package/dist/cjs/Segment.js +4 -6
  79. package/dist/cjs/SeriesListingDeck.js +37 -38
  80. package/dist/cjs/{SeriesSlider-e3e8ead7.js → SeriesSlider-49b81b0b.js} +35 -36
  81. package/dist/cjs/SetCookie.js +1 -1
  82. package/dist/cjs/SideFooter.js +34 -37
  83. package/dist/cjs/SocialIcons.js +9 -10
  84. package/dist/cjs/{SocialSearchComponent-948138c7.js → SocialSearchComponent-650f6101.js} +36 -40
  85. package/dist/cjs/SocialShare.js +29 -31
  86. package/dist/cjs/TaxonomyCard.js +61 -64
  87. package/dist/cjs/TaxonomyDescription.js +53 -55
  88. package/dist/cjs/TemplateNormal.js +72 -74
  89. package/dist/cjs/ThumbnailCard.js +24 -23
  90. package/dist/cjs/Ustream.js +28 -31
  91. package/dist/cjs/VerticalHero.js +19 -17
  92. package/dist/cjs/VideoProgramLandingPage.js +74 -79
  93. package/dist/cjs/VideoSeriesCard.js +31 -32
  94. package/dist/cjs/VideoSeriesFilter.js +16 -18
  95. package/dist/cjs/VideoSeriesLandingPage.js +50 -52
  96. package/dist/cjs/VideoSeriesListing.js +77 -79
  97. package/dist/cjs/View.js +281 -284
  98. package/dist/cjs/YahooHero.js +39 -42
  99. package/dist/cjs/YoutubeGroup.js +73 -82
  100. package/dist/cjs/{_is-array-6128bd56.js → _is-array-aa52fa1e.js} +14 -14
  101. package/dist/cjs/{_iter-detect-55a5657a.js → _iter-detect-05795553.js} +9 -10
  102. package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
  103. package/dist/cjs/_object-sap-171b9ea5.js +16 -0
  104. package/dist/cjs/{_object-to-array-8fe5a54f.js → _object-to-array-9bac8737.js} +5 -5
  105. package/dist/cjs/{asyncToGenerator-58c289d9.js → asyncToGenerator-df19209d.js} +82 -84
  106. package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
  107. package/dist/cjs/{_to-object-6de10e57.js → core.get-iterator-method-f3c44602.js} +247 -11
  108. package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
  109. package/dist/cjs/define-property-21887c62.js +20 -0
  110. package/dist/cjs/{defineProperty-0cb76d99.js → defineProperty-77a37684.js} +1 -1
  111. package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
  112. package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
  113. package/dist/cjs/events-1b438fe7.js +469 -0
  114. package/dist/cjs/{extends-29bdbc6d.js → extends-eed4f016.js} +13 -13
  115. package/dist/cjs/faundadb.js +19 -21
  116. package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
  117. package/dist/cjs/getQuery.js +2 -2
  118. package/dist/cjs/getRelatedArticle.js +18 -20
  119. package/dist/cjs/getRootDocGroup.js +6 -8
  120. package/dist/cjs/getSerializers.js +44 -45
  121. package/dist/cjs/{getTargeting-32d1c2e4.js → getTargeting-8874437b.js} +3 -3
  122. package/dist/cjs/getTargeting.js +6 -8
  123. package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +8 -2
  124. package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
  125. package/dist/cjs/{index-32097c80.js → index-59af05c4.js} +1089 -1094
  126. package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
  127. package/dist/cjs/{index-0e4427c8.js → index-98e01cb9.js} +13 -479
  128. package/dist/cjs/{index-efca863c.js → index-be0c82be.js} +30 -36
  129. package/dist/cjs/index-e2e62963.js +89 -0
  130. package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
  131. package/dist/cjs/{index.esm-2bb721c8.js → index.esm-4d410430.js} +21 -21
  132. package/dist/cjs/{index.esm-00a6aade.js → index.esm-90433435.js} +16 -7
  133. package/dist/cjs/{index.esm-c1e16606.js → index.esm-e32d3e8e.js} +7 -4
  134. package/dist/cjs/{index.esm-f27f80d9.js → index.esm-ff47db6f.js} +13 -6
  135. package/dist/cjs/index.js +164 -171
  136. package/dist/cjs/inherits-8d29278d.js +110 -0
  137. package/dist/cjs/{inherits-c2065b95.js → inherits-cba9c846.js} +26 -27
  138. package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
  139. package/dist/cjs/keys-d207942e.js +25 -0
  140. package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
  141. package/dist/cjs/main-02daeefe.js +862 -0
  142. package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
  143. package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
  144. package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
  145. package/dist/cjs/{slicedToArray-5d1bc3b3.js → slicedToArray-f6d4eaa8.js} +17 -19
  146. package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
  147. package/dist/cjs/stringify-bbc68047.js +17 -0
  148. package/dist/cjs/timeDifferenceCalc.js +1 -1
  149. package/dist/cjs/{toConsumableArray-ddb70795.js → toConsumableArray-c9b8a0d0.js} +12 -14
  150. package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
  151. package/dist/cjs/{typeof-88a668c5.js → typeof-5f52cf64.js} +97 -98
  152. package/dist/cjs/urlFor.js +21 -4
  153. package/dist/cjs/{ustream-api-b2b9092f.js → ustream-api-9ebe112f.js} +4 -4
  154. package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
  155. package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
  156. package/dist/cjs/{web.dom.iterable-46657b5c.js → web.dom.iterable-e34bf324.js} +8 -9
  157. package/dist/esm/AD.js +1 -1
  158. package/dist/esm/AD300x250.js +22 -23
  159. package/dist/esm/AD300x250x600.js +22 -23
  160. package/dist/esm/AD728x90.js +25 -26
  161. package/dist/esm/ADFloatingFooter.js +21 -22
  162. package/dist/esm/ADFooter.js +4 -6
  163. package/dist/esm/ADGutter.js +21 -22
  164. package/dist/esm/{ADInfeed-a71a3972.js → ADInfeed-bfd129d9.js} +6 -6
  165. package/dist/esm/ADSkyscraper.js +21 -22
  166. package/dist/esm/ADSponsoredResources.js +21 -22
  167. package/dist/esm/ADWebcast.js +21 -22
  168. package/dist/esm/ADWelcome.js +18 -19
  169. package/dist/esm/{ADlgInfeed-d94f1437.js → ADlgInfeed-0489335b.js} +4 -4
  170. package/dist/esm/AccordionPanel.js +6 -8
  171. package/dist/esm/AdSlot.js +22 -23
  172. package/dist/esm/AdSlotsProvider.js +907 -16
  173. package/dist/esm/AlgoliaSearch.js +13993 -29
  174. package/dist/esm/AlphabeticList.js +8 -10
  175. package/dist/esm/ArticleCarousel.js +13 -18
  176. package/dist/esm/ArticleProgramLandingPage.js +48 -49
  177. package/dist/esm/ArticleSeriesLandingPage.js +31 -32
  178. package/dist/esm/ArticleSeriesListing.js +33 -34
  179. package/dist/esm/Auth.js +1418 -592
  180. package/dist/esm/AuthWrapper.js +244 -287
  181. package/dist/esm/{AuthorComponent-30aeba69.js → AuthorComponent-e6f95c2f.js} +1 -1
  182. package/dist/esm/Beam.js +6 -8
  183. package/dist/esm/{BlockContent-c99c9a8d.js → BlockContent-e9b4ddcf.js} +34 -34
  184. package/dist/esm/Breadcrumbs.js +5 -7
  185. package/dist/esm/CMEDeck.js +23 -24
  186. package/dist/esm/Column1.js +4 -4
  187. package/dist/esm/Column2.js +19 -21
  188. package/dist/esm/Column3.js +37 -38
  189. package/dist/esm/ConferenceArticleCard.js +10 -7
  190. package/dist/esm/DeckContent.js +48 -49
  191. package/dist/esm/DeckQueue.js +48 -48
  192. package/dist/esm/{Dfp-be030f2a.js → Dfp-f867d061.js} +13 -14
  193. package/dist/esm/EventsDeck.js +48 -50
  194. package/dist/esm/ExternalResources.js +46 -47
  195. package/dist/esm/Feature.js +7 -4
  196. package/dist/esm/ForbesHero.js +10 -12
  197. package/dist/esm/GridContent.js +89 -90
  198. package/dist/esm/GridHero.js +11 -13
  199. package/dist/esm/GroupDeck.js +12 -14
  200. package/dist/esm/HamMagazine.js +28 -30
  201. package/dist/esm/Hero.js +7 -4
  202. package/dist/esm/HighlightenVideo.js +2 -2
  203. package/dist/esm/HorizontalArticleListing.js +45 -46
  204. package/dist/esm/HorizontalHero.js +8 -5
  205. package/dist/esm/IssueContentDeck.js +25 -27
  206. package/dist/esm/IssueDeck.js +35 -37
  207. package/dist/esm/IssueLanding.js +54 -55
  208. package/dist/esm/LeftNav.js +20 -21
  209. package/dist/esm/MasterDeck.js +35 -36
  210. package/dist/esm/MediaSeriesLanding.js +643 -733
  211. package/dist/esm/NavDvm.js +14 -16
  212. package/dist/esm/NavMagazine.js +32 -34
  213. package/dist/esm/NavNative.js +32 -34
  214. package/dist/esm/OncliveHero.js +8 -4
  215. package/dist/esm/OncliveLargeHero.js +11 -13
  216. package/dist/esm/PageFilter.js +4 -6
  217. package/dist/esm/PartnerDetailListing.js +3863 -64
  218. package/dist/esm/PdfDownload.js +2 -2
  219. package/dist/esm/PopUpModal.js +4 -6
  220. package/dist/esm/PubSection.js +33 -34
  221. package/dist/esm/PubToc.js +6 -8
  222. package/dist/esm/PublicationDeck.js +27 -24
  223. package/dist/esm/PublicationLanding.js +47 -49
  224. package/dist/esm/QueueDeckExpanded.js +37 -38
  225. package/dist/esm/RecentNews.js +4 -4
  226. package/dist/esm/RelatedContent.js +10 -7
  227. package/dist/esm/RolesDeck.js +12 -12
  228. package/dist/esm/Search.js +6 -8
  229. package/dist/esm/Segment.js +4 -6
  230. package/dist/esm/SeriesListingDeck.js +19 -20
  231. package/dist/esm/{SeriesSlider-ae17159f.js → SeriesSlider-d555a1d2.js} +10 -10
  232. package/dist/esm/SetCookie.js +1 -1
  233. package/dist/esm/SideFooter.js +13 -15
  234. package/dist/esm/{SocialSearchComponent-db963c3e.js → SocialSearchComponent-d7dec0c2.js} +12 -12
  235. package/dist/esm/TaxonomyCard.js +27 -25
  236. package/dist/esm/TaxonomyDescription.js +44 -45
  237. package/dist/esm/TemplateNormal.js +48 -49
  238. package/dist/esm/ThumbnailCard.js +10 -7
  239. package/dist/esm/Ustream.js +12 -14
  240. package/dist/esm/VerticalHero.js +6 -3
  241. package/dist/esm/VideoProgramLandingPage.js +52 -53
  242. package/dist/esm/VideoSeriesCard.js +13 -13
  243. package/dist/esm/VideoSeriesFilter.js +7 -9
  244. package/dist/esm/VideoSeriesLandingPage.js +37 -38
  245. package/dist/esm/VideoSeriesListing.js +34 -35
  246. package/dist/esm/View.js +109 -108
  247. package/dist/esm/YahooHero.js +13 -15
  248. package/dist/esm/YoutubeGroup.js +35 -43
  249. package/dist/esm/{_is-array-3e99e06e.js → _is-array-4df618a6.js} +6 -6
  250. package/dist/esm/{_iter-detect-7e5e5ce2.js → _iter-detect-130ee549.js} +7 -8
  251. package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
  252. package/dist/esm/{_object-sap-f353c2a9.js → _object-sap-8b8ea5a9.js} +1 -1
  253. package/dist/esm/{_object-to-array-0f197f89.js → _object-to-array-c54dd835.js} +2 -2
  254. package/dist/esm/{asyncToGenerator-7f8f9219.js → asyncToGenerator-7bf8bc4d.js} +30 -32
  255. package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-83f53e4e.js} +4 -5
  256. package/dist/esm/{_to-object-b50e61c3.js → core.get-iterator-method-86d4db69.js} +238 -9
  257. package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
  258. package/dist/esm/define-property-6d26cb48.js +18 -0
  259. package/dist/esm/{defineProperty-f5ff6f5a.js → defineProperty-d7d9b577.js} +1 -1
  260. package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
  261. package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
  262. package/dist/esm/events-6c3a7a63.js +467 -0
  263. package/dist/esm/{extends-60e0e1c6.js → extends-5b1796d4.js} +7 -7
  264. package/dist/esm/faundadb.js +5 -7
  265. package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
  266. package/dist/esm/getQuery.js +2 -2
  267. package/dist/esm/getRelatedArticle.js +12 -14
  268. package/dist/esm/getRootDocGroup.js +4 -6
  269. package/dist/esm/getSerializers.js +44 -45
  270. package/dist/esm/{getTargeting-cf2724e3.js → getTargeting-277c801e.js} +2 -2
  271. package/dist/esm/getTargeting.js +6 -8
  272. package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
  273. package/dist/esm/{index-5cc7b406.js → index-41a678ea.js} +4 -469
  274. package/dist/esm/{index-755f2cc2.js → index-5f7e79e7.js} +6 -6
  275. package/dist/esm/{index-0dbff1d1.js → index-73819142.js} +30 -36
  276. package/dist/esm/index-aaa2dae0.js +85 -0
  277. package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
  278. package/dist/esm/{index-5e84f9cd.js → index-efc23b2b.js} +664 -659
  279. package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
  280. package/dist/esm/{index.esm-f6156a57.js → index.esm-29e48d38.js} +16 -7
  281. package/dist/esm/{index.esm-d4932dea.js → index.esm-cf08bf18.js} +13 -6
  282. package/dist/esm/{index.esm-9b042655.js → index.esm-f8aaeeeb.js} +7 -4
  283. package/dist/esm/{index.esm-37268dca.js → index.esm-fd746768.js} +5 -4
  284. package/dist/esm/index.js +122 -126
  285. package/dist/esm/{inherits-a41fe93f.js → inherits-2409637d.js} +18 -19
  286. package/dist/esm/inherits-77d5e4fc.js +101 -0
  287. package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
  288. package/dist/esm/keys-69989821.js +23 -0
  289. package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
  290. package/dist/esm/main-e4a934b2.js +851 -0
  291. package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
  292. package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
  293. package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-a7d5c5c7.js} +16 -16
  294. package/dist/esm/{slicedToArray-be2f7a22.js → slicedToArray-67a08c9c.js} +12 -14
  295. package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
  296. package/dist/esm/stringify-70b72959.js +15 -0
  297. package/dist/esm/timeDifferenceCalc.js +1 -1
  298. package/dist/esm/{toConsumableArray-6d9a4616.js → toConsumableArray-32282905.js} +7 -9
  299. package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
  300. package/dist/esm/{typeof-a286cf0c.js → typeof-c05a82ba.js} +35 -36
  301. package/dist/esm/urlFor.js +19 -2
  302. package/dist/esm/{ustream-api-33a866b6.js → ustream-api-4c4fe0ba.js} +4 -4
  303. package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
  304. package/dist/esm/{web.dom.iterable-4109ff68.js → web.dom.iterable-f8f967cd.js} +2 -3
  305. package/package.json +1 -1
  306. package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
  307. package/dist/cjs/_object-sap-a175b4a9.js +0 -16
  308. package/dist/cjs/core.get-iterator-method-f474eacc.js +0 -39
  309. package/dist/cjs/define-property-c88be878.js +0 -20
  310. package/dist/cjs/es6.string.iterator-c2573ffd.js +0 -210
  311. package/dist/cjs/keys-7f2c2108.js +0 -25
  312. package/dist/cjs/main-f1c77adb.js +0 -973
  313. package/dist/cjs/stringify-c9ac1214.js +0 -17
  314. package/dist/esm/core.get-iterator-method-133dfacd.js +0 -36
  315. package/dist/esm/define-property-fe54dc9f.js +0 -18
  316. package/dist/esm/es6.string.iterator-bc33758b.js +0 -201
  317. package/dist/esm/keys-7a3adabf.js +0 -23
  318. package/dist/esm/main-d4165069.js +0 -961
  319. package/dist/esm/stringify-59c8f690.js +0 -15
package/dist/esm/Auth.js CHANGED
@@ -1,24 +1,21 @@
1
- import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
2
- import { _ as _JSON$stringify } from './stringify-59c8f690.js';
3
- import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-be2f7a22.js';
4
- import React__default, { useEffect, useState } from 'react';
1
+ import { a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
2
+ import './core.get-iterator-method-86d4db69.js';
3
+ import './_library-528f1934.js';
4
+ import './_iter-detect-130ee549.js';
5
+ import './_object-pie-33c40e79.js';
6
+ import { _ as _extends } from './extends-5b1796d4.js';
7
+ import './web.dom.iterable-f8f967cd.js';
8
+ import React__default, { useEffect, useLayoutEffect, createContext, useContext, useRef, useDebugValue, useState, useCallback, useMemo } from 'react';
5
9
  import Router from 'next/router';
6
- import { _ as _extends } from './extends-60e0e1c6.js';
10
+ import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-67a08c9c.js';
11
+ import { _ as _JSON$stringify } from './stringify-70b72959.js';
12
+ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7bf8bc4d.js';
7
13
  import { Col, Form, Button, Spinner } from 'react-bootstrap';
8
- import useSWR from 'swr';
14
+ import { u as util } from './util-7700fc59.js';
9
15
  import { s as serialize_1, p as parse_1 } from './index-db3bb315.js';
10
16
  import Local from 'passport-local';
11
17
  import mysql from 'mysql';
12
- import { u as util } from './util-3ab476bf.js';
13
- import { c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
14
- import { m as md5 } from './md5-4e42248e.js';
15
- import './es6.string.iterator-bc33758b.js';
16
- import './_to-object-b50e61c3.js';
17
- import './web.dom.iterable-4109ff68.js';
18
- import './_library-528f1934.js';
19
- import './core.get-iterator-method-133dfacd.js';
20
- import './_iter-detect-7e5e5ce2.js';
21
- import './_object-pie-133f504a.js';
18
+ import { m as md5 } from './md5-9be0e905.js';
22
19
 
23
20
  var returnFormField = function returnFormField(_ref) {
24
21
  var name = _ref.name,
@@ -136,7 +133,1056 @@ var returnFormField = function returnFormField(_ref) {
136
133
  }
137
134
  };
138
135
 
139
- var _this$4 = undefined;
136
+ var has = Object.prototype.hasOwnProperty;
137
+
138
+ function dequal(foo, bar) {
139
+ var ctor, len;
140
+ if (foo === bar) return true;
141
+
142
+ if (foo && bar && (ctor=foo.constructor) === bar.constructor) {
143
+ if (ctor === Date) return foo.getTime() === bar.getTime();
144
+ if (ctor === RegExp) return foo.toString() === bar.toString();
145
+
146
+ if (ctor === Array) {
147
+ if ((len=foo.length) === bar.length) {
148
+ while (len-- && dequal(foo[len], bar[len]));
149
+ }
150
+ return len === -1;
151
+ }
152
+
153
+ if (!ctor || typeof foo === 'object') {
154
+ len = 0;
155
+ for (ctor in foo) {
156
+ if (has.call(foo, ctor) && ++len && !has.call(bar, ctor)) return false;
157
+ if (!(ctor in bar) || !dequal(foo[ctor], bar[ctor])) return false;
158
+ }
159
+ return Object.keys(bar).length === len;
160
+ }
161
+ }
162
+
163
+ return foo !== foo && bar !== bar;
164
+ }
165
+
166
+ // use WeakMap to store the object->key mapping
167
+ // so the objects can be garbage collected.
168
+ // WeakMap uses a hashtable under the hood, so the lookup
169
+ // complexity is almost O(1).
170
+ var table = new WeakMap();
171
+ // counter of the key
172
+ var counter = 0;
173
+ // hashes an array of objects and returns a string
174
+ function hash(args) {
175
+ if (!args.length)
176
+ return '';
177
+ var key = 'arg';
178
+ for (var i = 0; i < args.length; ++i) {
179
+ if (args[i] === null) {
180
+ key += '@null';
181
+ continue;
182
+ }
183
+ var _hash = void 0;
184
+ if (typeof args[i] !== 'object' && typeof args[i] !== 'function') {
185
+ // need to consider the case that args[i] is a string:
186
+ // args[i] _hash
187
+ // "undefined" -> '"undefined"'
188
+ // undefined -> 'undefined'
189
+ // 123 -> '123'
190
+ // "null" -> '"null"'
191
+ if (typeof args[i] === 'string') {
192
+ _hash = '"' + args[i] + '"';
193
+ }
194
+ else {
195
+ _hash = String(args[i]);
196
+ }
197
+ }
198
+ else {
199
+ if (!table.has(args[i])) {
200
+ _hash = counter;
201
+ table.set(args[i], counter++);
202
+ }
203
+ else {
204
+ _hash = table.get(args[i]);
205
+ }
206
+ }
207
+ key += '@' + _hash;
208
+ }
209
+ return key;
210
+ }
211
+
212
+ var Cache = /** @class */ (function () {
213
+ function Cache(initialData) {
214
+ if (initialData === void 0) { initialData = {}; }
215
+ this.cache = new Map(Object.entries(initialData));
216
+ this.subs = [];
217
+ }
218
+ Cache.prototype.get = function (key) {
219
+ var _key = this.serializeKey(key)[0];
220
+ return this.cache.get(_key);
221
+ };
222
+ Cache.prototype.set = function (key, value) {
223
+ var _key = this.serializeKey(key)[0];
224
+ this.cache.set(_key, value);
225
+ this.notify();
226
+ };
227
+ Cache.prototype.keys = function () {
228
+ return Array.from(this.cache.keys());
229
+ };
230
+ Cache.prototype.has = function (key) {
231
+ var _key = this.serializeKey(key)[0];
232
+ return this.cache.has(_key);
233
+ };
234
+ Cache.prototype.clear = function () {
235
+ this.cache.clear();
236
+ this.notify();
237
+ };
238
+ Cache.prototype.delete = function (key) {
239
+ var _key = this.serializeKey(key)[0];
240
+ this.cache.delete(_key);
241
+ this.notify();
242
+ };
243
+ // TODO: introduce namespace for the cache
244
+ Cache.prototype.serializeKey = function (key) {
245
+ var args = null;
246
+ if (typeof key === 'function') {
247
+ try {
248
+ key = key();
249
+ }
250
+ catch (err) {
251
+ // dependencies not ready
252
+ key = '';
253
+ }
254
+ }
255
+ if (Array.isArray(key)) {
256
+ // args array
257
+ args = key;
258
+ key = hash(key);
259
+ }
260
+ else {
261
+ // convert null to ''
262
+ key = String(key || '');
263
+ }
264
+ var errorKey = key ? 'err@' + key : '';
265
+ var isValidatingKey = key ? 'validating@' + key : '';
266
+ return [key, args, errorKey, isValidatingKey];
267
+ };
268
+ Cache.prototype.subscribe = function (listener) {
269
+ var _this = this;
270
+ if (typeof listener !== 'function') {
271
+ throw new Error('Expected the listener to be a function.');
272
+ }
273
+ var isSubscribed = true;
274
+ this.subs.push(listener);
275
+ return function () {
276
+ if (!isSubscribed)
277
+ return;
278
+ isSubscribed = false;
279
+ var index = _this.subs.indexOf(listener);
280
+ if (index > -1) {
281
+ _this.subs[index] = _this.subs[_this.subs.length - 1];
282
+ _this.subs.length--;
283
+ }
284
+ };
285
+ };
286
+ // Notify Cache subscribers about a change in the cache
287
+ Cache.prototype.notify = function () {
288
+ for (var _i = 0, _a = this.subs; _i < _a.length; _i++) {
289
+ var listener = _a[_i];
290
+ listener();
291
+ }
292
+ };
293
+ return Cache;
294
+ }());
295
+
296
+ /**
297
+ * Due to bug https://bugs.chromium.org/p/chromium/issues/detail?id=678075,
298
+ * it's not reliable to detect if the browser is currently online or offline
299
+ * based on `navigator.onLine`.
300
+ * As a work around, we always assume it's online on first load, and change
301
+ * the status upon `online` or `offline` events.
302
+ */
303
+ var online = true;
304
+ var isOnline = function () { return online; };
305
+ var isDocumentVisible = function () {
306
+ if (typeof document !== 'undefined' &&
307
+ document.visibilityState !== undefined) {
308
+ return document.visibilityState !== 'hidden';
309
+ }
310
+ // always assume it's visible
311
+ return true;
312
+ };
313
+ var fetcher = function (url) { return fetch(url).then(function (res) { return res.json(); }); };
314
+ var registerOnFocus = function (cb) {
315
+ if (typeof window !== 'undefined' &&
316
+ window.addEventListener !== undefined &&
317
+ typeof document !== 'undefined' &&
318
+ document.addEventListener !== undefined) {
319
+ // focus revalidate
320
+ document.addEventListener('visibilitychange', function () { return cb(); }, false);
321
+ window.addEventListener('focus', function () { return cb(); }, false);
322
+ }
323
+ };
324
+ var registerOnReconnect = function (cb) {
325
+ if (typeof window !== 'undefined' && window.addEventListener !== undefined) {
326
+ // reconnect revalidate
327
+ window.addEventListener('online', function () {
328
+ online = true;
329
+ cb();
330
+ }, false);
331
+ // nothing to revalidate, just update the status
332
+ window.addEventListener('offline', function () { return (online = false); }, false);
333
+ }
334
+ };
335
+ var webPreset = {
336
+ isOnline: isOnline,
337
+ isDocumentVisible: isDocumentVisible,
338
+ fetcher: fetcher,
339
+ registerOnFocus: registerOnFocus,
340
+ registerOnReconnect: registerOnReconnect
341
+ };
342
+
343
+ var __assign = (undefined && undefined.__assign) || function () {
344
+ __assign = Object.assign || function(t) {
345
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
346
+ s = arguments[i];
347
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
348
+ t[p] = s[p];
349
+ }
350
+ return t;
351
+ };
352
+ return __assign.apply(this, arguments);
353
+ };
354
+ // cache
355
+ var cache = new Cache();
356
+ // error retry
357
+ function onErrorRetry(_, __, config, revalidate, opts) {
358
+ if (!config.isDocumentVisible()) {
359
+ // if it's hidden, stop
360
+ // it will auto revalidate when focus
361
+ return;
362
+ }
363
+ if (typeof config.errorRetryCount === 'number' &&
364
+ opts.retryCount > config.errorRetryCount) {
365
+ return;
366
+ }
367
+ // exponential backoff
368
+ var count = Math.min(opts.retryCount, 8);
369
+ var timeout = ~~((Math.random() + 0.5) * (1 << count)) * config.errorRetryInterval;
370
+ setTimeout(revalidate, timeout, opts);
371
+ }
372
+ // client side: need to adjust the config
373
+ // based on the browser status
374
+ // slow connection (<= 70Kbps)
375
+ var slowConnection = typeof window !== 'undefined' &&
376
+ // @ts-ignore
377
+ navigator['connection'] &&
378
+ // @ts-ignore
379
+ ['slow-2g', '2g'].indexOf(navigator['connection'].effectiveType) !== -1;
380
+ // config
381
+ var defaultConfig = __assign({
382
+ // events
383
+ onLoadingSlow: function () { }, onSuccess: function () { }, onError: function () { }, onErrorRetry: onErrorRetry, errorRetryInterval: (slowConnection ? 10 : 5) * 1000, focusThrottleInterval: 5 * 1000, dedupingInterval: 2 * 1000, loadingTimeout: (slowConnection ? 5 : 3) * 1000, refreshInterval: 0, revalidateOnFocus: true, revalidateOnReconnect: true, refreshWhenHidden: false, refreshWhenOffline: false, shouldRetryOnError: true, suspense: false, compare: dequal, isPaused: function () { return false; } }, webPreset);
384
+
385
+ var IS_SERVER = typeof window === 'undefined' ||
386
+ // @ts-ignore
387
+ !!(typeof Deno !== 'undefined' && Deno && Deno.version && Deno.version.deno);
388
+ // polyfill for requestAnimationFrame
389
+ var rAF = IS_SERVER
390
+ ? null
391
+ : window['requestAnimationFrame']
392
+ ? function (f) { return window['requestAnimationFrame'](f); }
393
+ : function (f) { return setTimeout(f, 1); };
394
+ // React currently throws a warning when using useLayoutEffect on the server.
395
+ // To get around it, we can conditionally useEffect on the server (no-op) and
396
+ // useLayoutEffect in the browser.
397
+ var useIsomorphicLayoutEffect = IS_SERVER ? useEffect : useLayoutEffect;
398
+
399
+ var SWRConfigContext = createContext({});
400
+ SWRConfigContext.displayName = 'SWRConfigContext';
401
+
402
+ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
403
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
404
+ return new (P || (P = Promise))(function (resolve, reject) {
405
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
406
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
407
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
408
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
409
+ });
410
+ };
411
+ var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
412
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
413
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
414
+ function verb(n) { return function (v) { return step([n, v]); }; }
415
+ function step(op) {
416
+ if (f) throw new TypeError("Generator is already executing.");
417
+ while (_) try {
418
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
419
+ if (y = 0, t) op = [op[0] & 2, t.value];
420
+ switch (op[0]) {
421
+ case 0: case 1: t = op; break;
422
+ case 4: _.label++; return { value: op[1], done: false };
423
+ case 5: _.label++; y = op[1]; op = [0]; continue;
424
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
425
+ default:
426
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
427
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
428
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
429
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
430
+ if (t[2]) _.ops.pop();
431
+ _.trys.pop(); continue;
432
+ }
433
+ op = body.call(thisArg, _);
434
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
435
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
436
+ }
437
+ };
438
+ // global state managers
439
+ var CONCURRENT_PROMISES = {};
440
+ var CONCURRENT_PROMISES_TS = {};
441
+ var FOCUS_REVALIDATORS = {};
442
+ var RECONNECT_REVALIDATORS = {};
443
+ var CACHE_REVALIDATORS = {};
444
+ var MUTATION_TS = {};
445
+ var MUTATION_END_TS = {};
446
+ // generate strictly increasing timestamps
447
+ var now = (function () {
448
+ var ts = 0;
449
+ return function () { return ++ts; };
450
+ })();
451
+ // setup DOM events listeners for `focus` and `reconnect` actions
452
+ if (!IS_SERVER) {
453
+ var revalidate_1 = function (revalidators) {
454
+ if (!defaultConfig.isDocumentVisible() || !defaultConfig.isOnline())
455
+ return;
456
+ for (var key in revalidators) {
457
+ if (revalidators[key][0])
458
+ revalidators[key][0]();
459
+ }
460
+ };
461
+ if (typeof defaultConfig.registerOnFocus === 'function') {
462
+ defaultConfig.registerOnFocus(function () { return revalidate_1(FOCUS_REVALIDATORS); });
463
+ }
464
+ if (typeof defaultConfig.registerOnReconnect === 'function') {
465
+ defaultConfig.registerOnReconnect(function () { return revalidate_1(RECONNECT_REVALIDATORS); });
466
+ }
467
+ }
468
+ var trigger = function (_key, shouldRevalidate) {
469
+ if (shouldRevalidate === void 0) { shouldRevalidate = true; }
470
+ // we are ignoring the second argument which correspond to the arguments
471
+ // the fetcher will receive when key is an array
472
+ var _a = cache.serializeKey(_key), key = _a[0], keyErr = _a[2], keyValidating = _a[3];
473
+ if (!key)
474
+ return Promise.resolve();
475
+ var updaters = CACHE_REVALIDATORS[key];
476
+ if (key && updaters) {
477
+ var currentData = cache.get(key);
478
+ var currentError = cache.get(keyErr);
479
+ var currentIsValidating = cache.get(keyValidating);
480
+ var promises = [];
481
+ for (var i = 0; i < updaters.length; ++i) {
482
+ promises.push(updaters[i](shouldRevalidate, currentData, currentError, currentIsValidating, i > 0));
483
+ }
484
+ // return new updated value
485
+ return Promise.all(promises).then(function () { return cache.get(key); });
486
+ }
487
+ return Promise.resolve(cache.get(key));
488
+ };
489
+ var broadcastState = function (key, data, error, isValidating) {
490
+ var updaters = CACHE_REVALIDATORS[key];
491
+ if (key && updaters) {
492
+ for (var i = 0; i < updaters.length; ++i) {
493
+ updaters[i](false, data, error, isValidating);
494
+ }
495
+ }
496
+ };
497
+ var mutate = function (_key, _data, shouldRevalidate) {
498
+ if (shouldRevalidate === void 0) { shouldRevalidate = true; }
499
+ return __awaiter(void 0, void 0, void 0, function () {
500
+ var _a, key, keyErr, beforeMutationTs, beforeConcurrentPromisesTs, data, error, isAsyncMutation, err_1, shouldAbort, updaters, promises, i;
501
+ return __generator(this, function (_b) {
502
+ switch (_b.label) {
503
+ case 0:
504
+ _a = cache.serializeKey(_key), key = _a[0], keyErr = _a[2];
505
+ if (!key)
506
+ return [2 /*return*/];
507
+ // if there is no new data to update, let's just revalidate the key
508
+ if (typeof _data === 'undefined')
509
+ return [2 /*return*/, trigger(_key, shouldRevalidate)
510
+ // update global timestamps
511
+ ];
512
+ // update global timestamps
513
+ MUTATION_TS[key] = now() - 1;
514
+ MUTATION_END_TS[key] = 0;
515
+ beforeMutationTs = MUTATION_TS[key];
516
+ beforeConcurrentPromisesTs = CONCURRENT_PROMISES_TS[key];
517
+ isAsyncMutation = false;
518
+ if (_data && typeof _data === 'function') {
519
+ // `_data` is a function, call it passing current cache value
520
+ try {
521
+ _data = _data(cache.get(key));
522
+ }
523
+ catch (err) {
524
+ // if `_data` function throws an error synchronously, it shouldn't be cached
525
+ _data = undefined;
526
+ error = err;
527
+ }
528
+ }
529
+ if (!(_data && typeof _data.then === 'function')) return [3 /*break*/, 5];
530
+ // `_data` is a promise
531
+ isAsyncMutation = true;
532
+ _b.label = 1;
533
+ case 1:
534
+ _b.trys.push([1, 3, , 4]);
535
+ return [4 /*yield*/, _data];
536
+ case 2:
537
+ data = _b.sent();
538
+ return [3 /*break*/, 4];
539
+ case 3:
540
+ err_1 = _b.sent();
541
+ error = err_1;
542
+ return [3 /*break*/, 4];
543
+ case 4: return [3 /*break*/, 6];
544
+ case 5:
545
+ data = _data;
546
+ _b.label = 6;
547
+ case 6:
548
+ shouldAbort = function () {
549
+ // check if other mutations have occurred since we've started this mutation
550
+ if (beforeMutationTs !== MUTATION_TS[key] ||
551
+ beforeConcurrentPromisesTs !== CONCURRENT_PROMISES_TS[key]) {
552
+ if (error)
553
+ throw error;
554
+ return true;
555
+ }
556
+ };
557
+ // if there's a race we don't update cache or broadcast change, just return the data
558
+ if (shouldAbort())
559
+ return [2 /*return*/, data];
560
+ if (typeof data !== 'undefined') {
561
+ // update cached data
562
+ cache.set(key, data);
563
+ }
564
+ // always update or reset the error
565
+ cache.set(keyErr, error);
566
+ // reset the timestamp to mark the mutation has ended
567
+ MUTATION_END_TS[key] = now() - 1;
568
+ if (!isAsyncMutation) {
569
+ // we skip broadcasting if there's another mutation happened synchronously
570
+ if (shouldAbort())
571
+ return [2 /*return*/, data];
572
+ }
573
+ updaters = CACHE_REVALIDATORS[key];
574
+ if (updaters) {
575
+ promises = [];
576
+ for (i = 0; i < updaters.length; ++i) {
577
+ promises.push(updaters[i](!!shouldRevalidate, data, error, undefined, i > 0));
578
+ }
579
+ // return new updated value
580
+ return [2 /*return*/, Promise.all(promises).then(function () {
581
+ if (error)
582
+ throw error;
583
+ return cache.get(key);
584
+ })];
585
+ }
586
+ // throw error or return data to be used by caller of mutate
587
+ if (error)
588
+ throw error;
589
+ return [2 /*return*/, data];
590
+ }
591
+ });
592
+ });
593
+ };
594
+ function useSWR() {
595
+ var _this = this;
596
+ var args = [];
597
+ for (var _i = 0; _i < arguments.length; _i++) {
598
+ args[_i] = arguments[_i];
599
+ }
600
+ var _key = args[0];
601
+ var config = Object.assign({}, defaultConfig, useContext(SWRConfigContext), args.length > 2
602
+ ? args[2]
603
+ : args.length === 2 && typeof args[1] === 'object'
604
+ ? args[1]
605
+ : {});
606
+ // in typescript args.length > 2 is not same as args.lenth === 3
607
+ // we do a safe type assertion here
608
+ // args.length === 3
609
+ var fn = (args.length > 2
610
+ ? args[1]
611
+ : args.length === 2 && typeof args[1] === 'function'
612
+ ? args[1]
613
+ : /**
614
+ pass fn as null will disable revalidate
615
+ https://paco.sh/blog/shared-hook-state-with-swr
616
+ */
617
+ args[1] === null
618
+ ? args[1]
619
+ : config.fetcher);
620
+ // we assume `key` as the identifier of the request
621
+ // `key` can change but `fn` shouldn't
622
+ // (because `revalidate` only depends on `key`)
623
+ // `keyErr` is the cache key for error objects
624
+ var _a = cache.serializeKey(_key), key = _a[0], fnArgs = _a[1], keyErr = _a[2], keyValidating = _a[3];
625
+ var configRef = useRef(config);
626
+ useIsomorphicLayoutEffect(function () {
627
+ configRef.current = config;
628
+ });
629
+ var willRevalidateOnMount = function () {
630
+ return (config.revalidateOnMount ||
631
+ (!config.initialData && config.revalidateOnMount === undefined));
632
+ };
633
+ var resolveData = function () {
634
+ var cachedData = cache.get(key);
635
+ return typeof cachedData === 'undefined' ? config.initialData : cachedData;
636
+ };
637
+ var resolveIsValidating = function () {
638
+ return !!cache.get(keyValidating) || (key && willRevalidateOnMount());
639
+ };
640
+ var initialData = resolveData();
641
+ var initialError = cache.get(keyErr);
642
+ var initialIsValidating = resolveIsValidating();
643
+ // if a state is accessed (data, error or isValidating),
644
+ // we add the state to dependencies so if the state is
645
+ // updated in the future, we can trigger a rerender
646
+ var stateDependencies = useRef({
647
+ data: false,
648
+ error: false,
649
+ isValidating: false
650
+ });
651
+ var stateRef = useRef({
652
+ data: initialData,
653
+ error: initialError,
654
+ isValidating: initialIsValidating
655
+ });
656
+ // display the data label in the React DevTools next to SWR hooks
657
+ useDebugValue(stateRef.current.data);
658
+ var rerender = useState({})[1];
659
+ var dispatch = useCallback(function (payload) {
660
+ var shouldUpdateState = false;
661
+ for (var k in payload) {
662
+ // @ts-ignore
663
+ if (stateRef.current[k] === payload[k]) {
664
+ continue;
665
+ }
666
+ // @ts-ignore
667
+ stateRef.current[k] = payload[k];
668
+ // @ts-ignore
669
+ if (stateDependencies.current[k]) {
670
+ shouldUpdateState = true;
671
+ }
672
+ }
673
+ if (shouldUpdateState) {
674
+ // if component is unmounted, should skip rerender
675
+ // if component is not mounted, should skip rerender
676
+ if (unmountedRef.current || !initialMountedRef.current)
677
+ return;
678
+ rerender({});
679
+ }
680
+ },
681
+ // config.suspense isn't allowed to change during the lifecycle
682
+ // eslint-disable-next-line react-hooks/exhaustive-deps
683
+ []);
684
+ // error ref inside revalidate (is last request errored?)
685
+ var unmountedRef = useRef(false);
686
+ var keyRef = useRef(key);
687
+ // check if component is mounted in suspense mode
688
+ var initialMountedRef = useRef(false);
689
+ // do unmount check for callbacks
690
+ var eventsCallback = useCallback(function (event) {
691
+ var _a;
692
+ var params = [];
693
+ for (var _i = 1; _i < arguments.length; _i++) {
694
+ params[_i - 1] = arguments[_i];
695
+ }
696
+ if (unmountedRef.current)
697
+ return;
698
+ if (!initialMountedRef.current)
699
+ return;
700
+ if (key !== keyRef.current)
701
+ return;
702
+ // @ts-ignore
703
+ (_a = configRef.current)[event].apply(_a, params);
704
+ }, [key]);
705
+ var boundMutate = useCallback(function (data, shouldRevalidate) {
706
+ return mutate(keyRef.current, data, shouldRevalidate);
707
+ }, []);
708
+ var addRevalidator = function (revalidators, callback) {
709
+ if (!revalidators[key]) {
710
+ revalidators[key] = [callback];
711
+ }
712
+ else {
713
+ revalidators[key].push(callback);
714
+ }
715
+ return function () {
716
+ var keyedRevalidators = revalidators[key];
717
+ var index = keyedRevalidators.indexOf(callback);
718
+ if (index >= 0) {
719
+ // O(1): faster than splice
720
+ keyedRevalidators[index] =
721
+ keyedRevalidators[keyedRevalidators.length - 1];
722
+ keyedRevalidators.pop();
723
+ }
724
+ };
725
+ };
726
+ // start a revalidation
727
+ var revalidate = useCallback(function (revalidateOpts) {
728
+ if (revalidateOpts === void 0) { revalidateOpts = {}; }
729
+ return __awaiter(_this, void 0, void 0, function () {
730
+ var _a, retryCount, _b, dedupe, loading, shouldDeduping, newData, startAt, newState, err_2;
731
+ return __generator(this, function (_c) {
732
+ switch (_c.label) {
733
+ case 0:
734
+ if (!key || !fn)
735
+ return [2 /*return*/, false];
736
+ if (unmountedRef.current)
737
+ return [2 /*return*/, false];
738
+ if (configRef.current.isPaused())
739
+ return [2 /*return*/, false];
740
+ _a = revalidateOpts.retryCount, retryCount = _a === void 0 ? 0 : _a, _b = revalidateOpts.dedupe, dedupe = _b === void 0 ? false : _b;
741
+ loading = true;
742
+ shouldDeduping = typeof CONCURRENT_PROMISES[key] !== 'undefined' && dedupe;
743
+ _c.label = 1;
744
+ case 1:
745
+ _c.trys.push([1, 6, , 7]);
746
+ dispatch({
747
+ isValidating: true
748
+ });
749
+ cache.set(keyValidating, true);
750
+ if (!shouldDeduping) {
751
+ // also update other hooks
752
+ broadcastState(key, stateRef.current.data, stateRef.current.error, true);
753
+ }
754
+ newData = void 0;
755
+ startAt = void 0;
756
+ if (!shouldDeduping) return [3 /*break*/, 3];
757
+ // there's already an ongoing request,
758
+ // this one needs to be deduplicated.
759
+ startAt = CONCURRENT_PROMISES_TS[key];
760
+ return [4 /*yield*/, CONCURRENT_PROMISES[key]];
761
+ case 2:
762
+ newData = _c.sent();
763
+ return [3 /*break*/, 5];
764
+ case 3:
765
+ // if no cache being rendered currently (it shows a blank page),
766
+ // we trigger the loading slow event.
767
+ if (config.loadingTimeout && !cache.get(key)) {
768
+ setTimeout(function () {
769
+ if (loading)
770
+ eventsCallback('onLoadingSlow', key, config);
771
+ }, config.loadingTimeout);
772
+ }
773
+ if (fnArgs !== null) {
774
+ CONCURRENT_PROMISES[key] = fn.apply(void 0, fnArgs);
775
+ }
776
+ else {
777
+ CONCURRENT_PROMISES[key] = fn(key);
778
+ }
779
+ CONCURRENT_PROMISES_TS[key] = startAt = now();
780
+ return [4 /*yield*/, CONCURRENT_PROMISES[key]];
781
+ case 4:
782
+ newData = _c.sent();
783
+ setTimeout(function () {
784
+ delete CONCURRENT_PROMISES[key];
785
+ delete CONCURRENT_PROMISES_TS[key];
786
+ }, config.dedupingInterval);
787
+ // trigger the success event,
788
+ // only do this for the original request.
789
+ eventsCallback('onSuccess', newData, key, config);
790
+ _c.label = 5;
791
+ case 5:
792
+ // if there're other ongoing request(s), started after the current one,
793
+ // we need to ignore the current one to avoid possible race conditions:
794
+ // req1------------------>res1 (current one)
795
+ // req2---------------->res2
796
+ // the request that fired later will always be kept.
797
+ if (CONCURRENT_PROMISES_TS[key] > startAt) {
798
+ return [2 /*return*/, false];
799
+ }
800
+ // if there're other mutations(s), overlapped with the current revalidation:
801
+ // case 1:
802
+ // req------------------>res
803
+ // mutate------>end
804
+ // case 2:
805
+ // req------------>res
806
+ // mutate------>end
807
+ // case 3:
808
+ // req------------------>res
809
+ // mutate-------...---------->
810
+ // we have to ignore the revalidation result (res) because it's no longer fresh.
811
+ // meanwhile, a new revalidation should be triggered when the mutation ends.
812
+ if (MUTATION_TS[key] &&
813
+ // case 1
814
+ (startAt <= MUTATION_TS[key] ||
815
+ // case 2
816
+ startAt <= MUTATION_END_TS[key] ||
817
+ // case 3
818
+ MUTATION_END_TS[key] === 0)) {
819
+ dispatch({ isValidating: false });
820
+ return [2 /*return*/, false];
821
+ }
822
+ cache.set(keyErr, undefined);
823
+ cache.set(keyValidating, false);
824
+ newState = {
825
+ isValidating: false
826
+ };
827
+ if (typeof stateRef.current.error !== 'undefined') {
828
+ // we don't have an error
829
+ newState.error = undefined;
830
+ }
831
+ if (!config.compare(stateRef.current.data, newData)) {
832
+ // deep compare to avoid extra re-render
833
+ // data changed
834
+ newState.data = newData;
835
+ }
836
+ if (!config.compare(cache.get(key), newData)) {
837
+ cache.set(key, newData);
838
+ }
839
+ // merge the new state
840
+ dispatch(newState);
841
+ if (!shouldDeduping) {
842
+ // also update other hooks
843
+ broadcastState(key, newData, newState.error, false);
844
+ }
845
+ return [3 /*break*/, 7];
846
+ case 6:
847
+ err_2 = _c.sent();
848
+ delete CONCURRENT_PROMISES[key];
849
+ delete CONCURRENT_PROMISES_TS[key];
850
+ if (configRef.current.isPaused()) {
851
+ dispatch({
852
+ isValidating: false
853
+ });
854
+ return [2 /*return*/, false];
855
+ }
856
+ cache.set(keyErr, err_2);
857
+ // get a new error
858
+ // don't use deep equal for errors
859
+ if (stateRef.current.error !== err_2) {
860
+ // we keep the stale data
861
+ dispatch({
862
+ isValidating: false,
863
+ error: err_2
864
+ });
865
+ if (!shouldDeduping) {
866
+ // also broadcast to update other hooks
867
+ broadcastState(key, undefined, err_2, false);
868
+ }
869
+ }
870
+ // events and retry
871
+ eventsCallback('onError', err_2, key, config);
872
+ if (config.shouldRetryOnError) {
873
+ // when retrying, we always enable deduping
874
+ eventsCallback('onErrorRetry', err_2, key, config, revalidate, {
875
+ retryCount: retryCount + 1,
876
+ dedupe: true
877
+ });
878
+ }
879
+ return [3 /*break*/, 7];
880
+ case 7:
881
+ loading = false;
882
+ return [2 /*return*/, true];
883
+ }
884
+ });
885
+ });
886
+ },
887
+ // dispatch is immutable, and `eventsCallback`, `fnArgs`, `keyErr`, and `keyValidating` are based on `key`,
888
+ // so we can them from the deps array.
889
+ //
890
+ // FIXME:
891
+ // `fn` and `config` might be changed during the lifecycle,
892
+ // but they might be changed every render like this.
893
+ // useSWR('key', () => fetch('/api/'), { suspense: true })
894
+ // So we omit the values from the deps array
895
+ // even though it might cause unexpected behaviors.
896
+ // eslint-disable-next-line react-hooks/exhaustive-deps
897
+ [key]);
898
+ // mounted (client side rendering)
899
+ useIsomorphicLayoutEffect(function () {
900
+ if (!key)
901
+ return undefined;
902
+ // after `key` updates, we need to mark it as mounted
903
+ unmountedRef.current = false;
904
+ var isUpdating = initialMountedRef.current;
905
+ initialMountedRef.current = true;
906
+ // after the component is mounted (hydrated),
907
+ // we need to update the data from the cache
908
+ // and trigger a revalidation
909
+ var currentHookData = stateRef.current.data;
910
+ var latestKeyedData = resolveData();
911
+ // update the state if the key changed (not the inital render) or cache updated
912
+ keyRef.current = key;
913
+ if (!config.compare(currentHookData, latestKeyedData)) {
914
+ dispatch({ data: latestKeyedData });
915
+ }
916
+ // revalidate with deduping
917
+ var softRevalidate = function () { return revalidate({ dedupe: true }); };
918
+ // trigger a revalidation
919
+ if (isUpdating || willRevalidateOnMount()) {
920
+ if (typeof latestKeyedData !== 'undefined' && !IS_SERVER) {
921
+ // delay revalidate if there's cache
922
+ // to not block the rendering
923
+ // @ts-ignore it's safe to use requestAnimationFrame in browser
924
+ rAF(softRevalidate);
925
+ }
926
+ else {
927
+ softRevalidate();
928
+ }
929
+ }
930
+ var pending = false;
931
+ var onFocus = function () {
932
+ if (pending || !configRef.current.revalidateOnFocus)
933
+ return;
934
+ pending = true;
935
+ softRevalidate();
936
+ setTimeout(function () { return (pending = false); }, configRef.current.focusThrottleInterval);
937
+ };
938
+ var onReconnect = function () {
939
+ if (configRef.current.revalidateOnReconnect) {
940
+ softRevalidate();
941
+ }
942
+ };
943
+ // register global cache update listener
944
+ var onUpdate = function (shouldRevalidate, updatedData, updatedError, updatedIsValidating, dedupe) {
945
+ if (shouldRevalidate === void 0) { shouldRevalidate = true; }
946
+ if (dedupe === void 0) { dedupe = true; }
947
+ // update hook state
948
+ var newState = {};
949
+ var needUpdate = false;
950
+ if (typeof updatedData !== 'undefined' &&
951
+ !config.compare(stateRef.current.data, updatedData)) {
952
+ newState.data = updatedData;
953
+ needUpdate = true;
954
+ }
955
+ // always update error
956
+ // because it can be `undefined`
957
+ if (stateRef.current.error !== updatedError) {
958
+ newState.error = updatedError;
959
+ needUpdate = true;
960
+ }
961
+ if (typeof updatedIsValidating !== 'undefined' &&
962
+ stateRef.current.isValidating !== updatedIsValidating) {
963
+ newState.isValidating = updatedIsValidating;
964
+ needUpdate = true;
965
+ }
966
+ if (needUpdate) {
967
+ dispatch(newState);
968
+ }
969
+ if (shouldRevalidate) {
970
+ if (dedupe) {
971
+ return softRevalidate();
972
+ }
973
+ else {
974
+ return revalidate();
975
+ }
976
+ }
977
+ return false;
978
+ };
979
+ var unsubFocus = addRevalidator(FOCUS_REVALIDATORS, onFocus);
980
+ var unsubReconnect = addRevalidator(RECONNECT_REVALIDATORS, onReconnect);
981
+ var unsubUpdate = addRevalidator(CACHE_REVALIDATORS, onUpdate);
982
+ return function () {
983
+ // cleanup
984
+ dispatch = function () { return null; };
985
+ // mark it as unmounted
986
+ unmountedRef.current = true;
987
+ unsubFocus();
988
+ unsubReconnect();
989
+ unsubUpdate();
990
+ };
991
+ }, [key, revalidate]);
992
+ useIsomorphicLayoutEffect(function () {
993
+ var timer = null;
994
+ var tick = function () { return __awaiter(_this, void 0, void 0, function () {
995
+ return __generator(this, function (_a) {
996
+ switch (_a.label) {
997
+ case 0:
998
+ if (!(!stateRef.current.error &&
999
+ (configRef.current.refreshWhenHidden ||
1000
+ configRef.current.isDocumentVisible()) &&
1001
+ (configRef.current.refreshWhenOffline || configRef.current.isOnline()))) return [3 /*break*/, 2];
1002
+ // only revalidate when the page is visible
1003
+ // if API request errored, we stop polling in this round
1004
+ // and let the error retry function handle it
1005
+ return [4 /*yield*/, revalidate({ dedupe: true })];
1006
+ case 1:
1007
+ // only revalidate when the page is visible
1008
+ // if API request errored, we stop polling in this round
1009
+ // and let the error retry function handle it
1010
+ _a.sent();
1011
+ _a.label = 2;
1012
+ case 2:
1013
+ // Read the latest refreshInterval
1014
+ if (configRef.current.refreshInterval && timer) {
1015
+ timer = setTimeout(tick, configRef.current.refreshInterval);
1016
+ }
1017
+ return [2 /*return*/];
1018
+ }
1019
+ });
1020
+ }); };
1021
+ if (configRef.current.refreshInterval) {
1022
+ timer = setTimeout(tick, configRef.current.refreshInterval);
1023
+ }
1024
+ return function () {
1025
+ if (timer) {
1026
+ clearTimeout(timer);
1027
+ timer = null;
1028
+ }
1029
+ };
1030
+ }, [
1031
+ config.refreshInterval,
1032
+ config.refreshWhenHidden,
1033
+ config.refreshWhenOffline,
1034
+ revalidate
1035
+ ]);
1036
+ // suspense
1037
+ var latestData;
1038
+ var latestError;
1039
+ if (config.suspense) {
1040
+ // in suspense mode, we can't return empty state
1041
+ // (it should be suspended)
1042
+ // try to get data and error from cache
1043
+ latestData = cache.get(key);
1044
+ latestError = cache.get(keyErr);
1045
+ if (typeof latestData === 'undefined') {
1046
+ latestData = initialData;
1047
+ }
1048
+ if (typeof latestError === 'undefined') {
1049
+ latestError = initialError;
1050
+ }
1051
+ if (typeof latestData === 'undefined' &&
1052
+ typeof latestError === 'undefined') {
1053
+ // need to start the request if it hasn't
1054
+ if (!CONCURRENT_PROMISES[key]) {
1055
+ // trigger revalidate immediately
1056
+ // to get the promise
1057
+ // in this revalidate, should not rerender
1058
+ revalidate();
1059
+ }
1060
+ if (CONCURRENT_PROMISES[key] &&
1061
+ typeof CONCURRENT_PROMISES[key].then === 'function') {
1062
+ // if it is a promise
1063
+ throw CONCURRENT_PROMISES[key];
1064
+ }
1065
+ // it's a value, return it directly (override)
1066
+ latestData = CONCURRENT_PROMISES[key];
1067
+ }
1068
+ if (typeof latestData === 'undefined' && latestError) {
1069
+ // in suspense mode, throw error if there's no content
1070
+ throw latestError;
1071
+ }
1072
+ }
1073
+ // define returned state
1074
+ // can be memorized since the state is a ref
1075
+ var memoizedState = useMemo(function () {
1076
+ // revalidate will be deprecated in the 1.x release
1077
+ // because mutate() covers the same use case of revalidate().
1078
+ // This remains only for backward compatibility
1079
+ var state = { revalidate: revalidate, mutate: boundMutate };
1080
+ Object.defineProperties(state, {
1081
+ error: {
1082
+ // `key` might be changed in the upcoming hook re-render,
1083
+ // but the previous state will stay
1084
+ // so we need to match the latest key and data (fallback to `initialData`)
1085
+ get: function () {
1086
+ stateDependencies.current.error = true;
1087
+ if (config.suspense) {
1088
+ return latestError;
1089
+ }
1090
+ return keyRef.current === key ? stateRef.current.error : initialError;
1091
+ },
1092
+ enumerable: true
1093
+ },
1094
+ data: {
1095
+ get: function () {
1096
+ stateDependencies.current.data = true;
1097
+ if (config.suspense) {
1098
+ return latestData;
1099
+ }
1100
+ return keyRef.current === key ? stateRef.current.data : initialData;
1101
+ },
1102
+ enumerable: true
1103
+ },
1104
+ isValidating: {
1105
+ get: function () {
1106
+ stateDependencies.current.isValidating = true;
1107
+ return key ? stateRef.current.isValidating : false;
1108
+ },
1109
+ enumerable: true
1110
+ }
1111
+ });
1112
+ return state;
1113
+ // `config.suspense` isn't allowed to change during the lifecycle.
1114
+ // `boundMutate` is immutable, and the immutability of `revalidate` depends on `key`
1115
+ // so we can omit them from the deps array,
1116
+ // but we put it to enable react-hooks/exhaustive-deps rule.
1117
+ // `initialData` and `initialError` are not initial values
1118
+ // because they are changed during the lifecycle
1119
+ // so we should add them in the deps array.
1120
+ }, [
1121
+ revalidate,
1122
+ initialData,
1123
+ initialError,
1124
+ boundMutate,
1125
+ key,
1126
+ config.suspense,
1127
+ latestError,
1128
+ latestData
1129
+ ]);
1130
+ return memoizedState;
1131
+ }
1132
+ Object.defineProperty(SWRConfigContext.Provider, 'default', {
1133
+ value: defaultConfig
1134
+ });
1135
+ var SWRConfig = SWRConfigContext.Provider;
1136
+
1137
+ var __awaiter$1 = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
1138
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
1139
+ return new (P || (P = Promise))(function (resolve, reject) {
1140
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
1141
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
1142
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
1143
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
1144
+ });
1145
+ };
1146
+ var __generator$1 = (undefined && undefined.__generator) || function (thisArg, body) {
1147
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
1148
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
1149
+ function verb(n) { return function (v) { return step([n, v]); }; }
1150
+ function step(op) {
1151
+ if (f) throw new TypeError("Generator is already executing.");
1152
+ while (_) try {
1153
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
1154
+ if (y = 0, t) op = [op[0] & 2, t.value];
1155
+ switch (op[0]) {
1156
+ case 0: case 1: t = op; break;
1157
+ case 4: _.label++; return { value: op[1], done: false };
1158
+ case 5: _.label++; y = op[1]; op = [0]; continue;
1159
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
1160
+ default:
1161
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
1162
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
1163
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
1164
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
1165
+ if (t[2]) _.ops.pop();
1166
+ _.trys.pop(); continue;
1167
+ }
1168
+ op = body.call(thisArg, _);
1169
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
1170
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
1171
+ }
1172
+ };
1173
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
1174
+ var t = {};
1175
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1176
+ t[p] = s[p];
1177
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
1178
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1179
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1180
+ t[p[i]] = s[p[i]];
1181
+ }
1182
+ return t;
1183
+ };
1184
+
1185
+ var _this = undefined;
140
1186
 
141
1187
  var dataHandler = function () {
142
1188
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(api_url, body) {
@@ -202,7 +1248,7 @@ var dataHandler = function () {
202
1248
  return _context.stop();
203
1249
  }
204
1250
  }
205
- }, _callee, _this$4, [[0, 20]]);
1251
+ }, _callee, _this, [[0, 20]]);
206
1252
  }));
207
1253
 
208
1254
  return function dataHandler(_x, _x2) {
@@ -398,9 +1444,9 @@ var countries = ["United States", "Afghanistan", "Albania", "Algeria", "American
398
1444
 
399
1445
  var states = ['AL', 'AK', 'AS', 'AZ', 'AR', 'CA', 'CO', 'CT', 'DE', 'DC', 'FM', 'FL', 'GA', 'GU', 'HI', 'ID', 'IL', 'IN', 'IA', 'KS', 'KY', 'LA', 'ME', 'MH', 'MD', 'MA', 'MI', 'MN', 'MS', 'MO', 'MT', 'NE', 'NV', 'NH', 'NJ', 'NM', 'NY', 'NC', 'ND', 'MP', 'OH', 'OK', 'OR', 'PW', 'PA', 'PR', 'RI', 'SC', 'SD', 'TN', 'TX', 'UT', 'VT', 'VI', 'VA', 'WA', 'WV', 'WI', 'WY'];
400
1446
 
401
- var _this$3 = undefined;
1447
+ var _this$1 = undefined;
402
1448
 
403
- var SignupForm$1 = function SignupForm(props) {
1449
+ var SignupForm = function SignupForm(props) {
404
1450
  var handleSubmit = function () {
405
1451
  var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee3(e) {
406
1452
  var formData, body, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, key, res;
@@ -561,7 +1607,7 @@ var SignupForm$1 = function SignupForm(props) {
561
1607
  return _context.stop();
562
1608
  }
563
1609
  }
564
- }, _callee, _this$3);
1610
+ }, _callee, _this$1);
565
1611
  }));
566
1612
 
567
1613
  return function loadInitData() {
@@ -628,7 +1674,7 @@ var SignupForm$1 = function SignupForm(props) {
628
1674
  return _context2.stop();
629
1675
  }
630
1676
  }
631
- }, _callee2, _this$3);
1677
+ }, _callee2, _this$1);
632
1678
  }));
633
1679
 
634
1680
  return function handleOccupationChanged(_x) {
@@ -778,7 +1824,7 @@ var SignupForm$1 = function SignupForm(props) {
778
1824
 
779
1825
  var _this$2 = undefined;
780
1826
 
781
- var SignupForm = function SignupForm(props) {
1827
+ var SignupForm$1 = function SignupForm(props) {
782
1828
  var handleSubmit = function () {
783
1829
  var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee3(e) {
784
1830
  var formData, body, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, key, res;
@@ -1313,10 +2359,10 @@ var iron = /*#__PURE__*/Object.freeze({
1313
2359
  getSession: getSession
1314
2360
  });
1315
2361
 
1316
- var toStr$5 = Object.prototype.toString;
2362
+ var toStr = Object.prototype.toString;
1317
2363
 
1318
2364
  var isArguments = function isArguments(value) {
1319
- var str = toStr$5.call(value);
2365
+ var str = toStr.call(value);
1320
2366
  var isArgs = str === '[object Arguments]';
1321
2367
  if (!isArgs) {
1322
2368
  isArgs = str !== '[object Array]' &&
@@ -1324,16 +2370,16 @@ var isArguments = function isArguments(value) {
1324
2370
  typeof value === 'object' &&
1325
2371
  typeof value.length === 'number' &&
1326
2372
  value.length >= 0 &&
1327
- toStr$5.call(value.callee) === '[object Function]';
2373
+ toStr.call(value.callee) === '[object Function]';
1328
2374
  }
1329
2375
  return isArgs;
1330
2376
  };
1331
2377
 
1332
- var keysShim$1;
2378
+ var keysShim;
1333
2379
  if (!Object.keys) {
1334
2380
  // modified from https://github.com/es-shims/es5-shim
1335
2381
  var has$1 = Object.prototype.hasOwnProperty;
1336
- var toStr$4 = Object.prototype.toString;
2382
+ var toStr$1 = Object.prototype.toString;
1337
2383
  var isArgs = isArguments; // eslint-disable-line global-require
1338
2384
  var isEnumerable = Object.prototype.propertyIsEnumerable;
1339
2385
  var hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString');
@@ -1406,11 +2452,11 @@ if (!Object.keys) {
1406
2452
  }
1407
2453
  };
1408
2454
 
1409
- keysShim$1 = function keys(object) {
2455
+ keysShim = function keys(object) {
1410
2456
  var isObject = object !== null && typeof object === 'object';
1411
- var isFunction = toStr$4.call(object) === '[object Function]';
2457
+ var isFunction = toStr$1.call(object) === '[object Function]';
1412
2458
  var isArguments = isArgs(object);
1413
- var isString = isObject && toStr$4.call(object) === '[object String]';
2459
+ var isString = isObject && toStr$1.call(object) === '[object String]';
1414
2460
  var theKeys = [];
1415
2461
 
1416
2462
  if (!isObject && !isFunction && !isArguments) {
@@ -1448,17 +2494,17 @@ if (!Object.keys) {
1448
2494
  return theKeys;
1449
2495
  };
1450
2496
  }
1451
- var implementation$3 = keysShim$1;
2497
+ var implementation = keysShim;
1452
2498
 
1453
- var slice$1 = Array.prototype.slice;
2499
+ var slice = Array.prototype.slice;
1454
2500
 
1455
2501
 
1456
2502
  var origKeys = Object.keys;
1457
- var keysShim = origKeys ? function keys(o) { return origKeys(o); } : implementation$3;
2503
+ var keysShim$1 = origKeys ? function keys(o) { return origKeys(o); } : implementation;
1458
2504
 
1459
2505
  var originalKeys = Object.keys;
1460
2506
 
1461
- keysShim.shim = function shimObjectKeys() {
2507
+ keysShim$1.shim = function shimObjectKeys() {
1462
2508
  if (Object.keys) {
1463
2509
  var keysWorksWithArguments = (function () {
1464
2510
  // Safari 5.0 bug
@@ -1468,27 +2514,27 @@ keysShim.shim = function shimObjectKeys() {
1468
2514
  if (!keysWorksWithArguments) {
1469
2515
  Object.keys = function keys(object) { // eslint-disable-line func-name-matching
1470
2516
  if (isArguments(object)) {
1471
- return originalKeys(slice$1.call(object));
2517
+ return originalKeys(slice.call(object));
1472
2518
  }
1473
2519
  return originalKeys(object);
1474
2520
  };
1475
2521
  }
1476
2522
  } else {
1477
- Object.keys = keysShim;
2523
+ Object.keys = keysShim$1;
1478
2524
  }
1479
- return Object.keys || keysShim;
2525
+ return Object.keys || keysShim$1;
1480
2526
  };
1481
2527
 
1482
- var objectKeys = keysShim;
2528
+ var objectKeys = keysShim$1;
1483
2529
 
1484
- var hasSymbols$4 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
2530
+ var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
1485
2531
 
1486
- var toStr$3 = Object.prototype.toString;
2532
+ var toStr$2 = Object.prototype.toString;
1487
2533
  var concat = Array.prototype.concat;
1488
2534
  var origDefineProperty = Object.defineProperty;
1489
2535
 
1490
2536
  var isFunction = function (fn) {
1491
- return typeof fn === 'function' && toStr$3.call(fn) === '[object Function]';
2537
+ return typeof fn === 'function' && toStr$2.call(fn) === '[object Function]';
1492
2538
  };
1493
2539
 
1494
2540
  var arePropertyDescriptorsSupported = function () {
@@ -1525,7 +2571,7 @@ var defineProperty = function (object, name, value, predicate) {
1525
2571
  var defineProperties = function (object, map) {
1526
2572
  var predicates = arguments.length > 2 ? arguments[2] : {};
1527
2573
  var props = objectKeys(map);
1528
- if (hasSymbols$4) {
2574
+ if (hasSymbols) {
1529
2575
  props = concat.call(props, Object.getOwnPropertySymbols(map));
1530
2576
  }
1531
2577
  for (var i = 0; i < props.length; i += 1) {
@@ -1537,59 +2583,6 @@ defineProperties.supportsDescriptors = !!supportsDescriptors;
1537
2583
 
1538
2584
  var defineProperties_1 = defineProperties;
1539
2585
 
1540
- /* eslint no-invalid-this: 1 */
1541
-
1542
- var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
1543
- var slice = Array.prototype.slice;
1544
- var toStr$2 = Object.prototype.toString;
1545
- var funcType = '[object Function]';
1546
-
1547
- var implementation$2 = function bind(that) {
1548
- var target = this;
1549
- if (typeof target !== 'function' || toStr$2.call(target) !== funcType) {
1550
- throw new TypeError(ERROR_MESSAGE + target);
1551
- }
1552
- var args = slice.call(arguments, 1);
1553
-
1554
- var bound;
1555
- var binder = function () {
1556
- if (this instanceof bound) {
1557
- var result = target.apply(
1558
- this,
1559
- args.concat(slice.call(arguments))
1560
- );
1561
- if (Object(result) === result) {
1562
- return result;
1563
- }
1564
- return this;
1565
- } else {
1566
- return target.apply(
1567
- that,
1568
- args.concat(slice.call(arguments))
1569
- );
1570
- }
1571
- };
1572
-
1573
- var boundLength = Math.max(0, target.length - args.length);
1574
- var boundArgs = [];
1575
- for (var i = 0; i < boundLength; i++) {
1576
- boundArgs.push('$' + i);
1577
- }
1578
-
1579
- bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
1580
-
1581
- if (target.prototype) {
1582
- var Empty = function Empty() {};
1583
- Empty.prototype = target.prototype;
1584
- bound.prototype = new Empty();
1585
- Empty.prototype = null;
1586
- }
1587
-
1588
- return bound;
1589
- };
1590
-
1591
- var functionBind = Function.prototype.bind || implementation$2;
1592
-
1593
2586
  /* eslint complexity: [2, 18], max-statements: [2, 33] */
1594
2587
  var shams = function hasSymbols() {
1595
2588
  if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
@@ -1613,7 +2606,7 @@ var shams = function hasSymbols() {
1613
2606
 
1614
2607
  var symVal = 42;
1615
2608
  obj[sym] = symVal;
1616
- for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
2609
+ for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax
1617
2610
  if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
1618
2611
 
1619
2612
  if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
@@ -1631,10 +2624,10 @@ var shams = function hasSymbols() {
1631
2624
  return true;
1632
2625
  };
1633
2626
 
1634
- var origSymbol = typeof Symbol !== 'undefined' && Symbol;
2627
+ var origSymbol = commonjsGlobal.Symbol;
1635
2628
 
1636
2629
 
1637
- var hasSymbols$3 = function hasNativeSymbols() {
2630
+ var hasSymbols$1 = function hasNativeSymbols() {
1638
2631
  if (typeof origSymbol !== 'function') { return false; }
1639
2632
  if (typeof Symbol !== 'function') { return false; }
1640
2633
  if (typeof origSymbol('foo') !== 'symbol') { return false; }
@@ -1643,34 +2636,79 @@ var hasSymbols$3 = function hasNativeSymbols() {
1643
2636
  return shams();
1644
2637
  };
1645
2638
 
1646
- var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
2639
+ /* eslint no-invalid-this: 1 */
1647
2640
 
1648
- var undefined$1;
2641
+ var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
2642
+ var slice$1 = Array.prototype.slice;
2643
+ var toStr$3 = Object.prototype.toString;
2644
+ var funcType = '[object Function]';
1649
2645
 
1650
- var $SyntaxError$1 = SyntaxError;
1651
- var $Function = Function;
1652
- var $TypeError$5 = TypeError;
2646
+ var implementation$1 = function bind(that) {
2647
+ var target = this;
2648
+ if (typeof target !== 'function' || toStr$3.call(target) !== funcType) {
2649
+ throw new TypeError(ERROR_MESSAGE + target);
2650
+ }
2651
+ var args = slice$1.call(arguments, 1);
1653
2652
 
1654
- // eslint-disable-next-line consistent-return
1655
- var getEvalledConstructor = function (expressionSyntax) {
1656
- try {
1657
- return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
1658
- } catch (e) {}
2653
+ var bound;
2654
+ var binder = function () {
2655
+ if (this instanceof bound) {
2656
+ var result = target.apply(
2657
+ this,
2658
+ args.concat(slice$1.call(arguments))
2659
+ );
2660
+ if (Object(result) === result) {
2661
+ return result;
2662
+ }
2663
+ return this;
2664
+ } else {
2665
+ return target.apply(
2666
+ that,
2667
+ args.concat(slice$1.call(arguments))
2668
+ );
2669
+ }
2670
+ };
2671
+
2672
+ var boundLength = Math.max(0, target.length - args.length);
2673
+ var boundArgs = [];
2674
+ for (var i = 0; i < boundLength; i++) {
2675
+ boundArgs.push('$' + i);
2676
+ }
2677
+
2678
+ bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
2679
+
2680
+ if (target.prototype) {
2681
+ var Empty = function Empty() {};
2682
+ Empty.prototype = target.prototype;
2683
+ bound.prototype = new Empty();
2684
+ Empty.prototype = null;
2685
+ }
2686
+
2687
+ return bound;
1659
2688
  };
1660
2689
 
1661
- var $gOPD$2 = Object.getOwnPropertyDescriptor;
1662
- if ($gOPD$2) {
2690
+ var functionBind = Function.prototype.bind || implementation$1;
2691
+
2692
+ /* globals
2693
+ Atomics,
2694
+ SharedArrayBuffer,
2695
+ */
2696
+
2697
+ var undefined$1;
2698
+
2699
+ var $TypeError = TypeError;
2700
+
2701
+ var $gOPD = Object.getOwnPropertyDescriptor;
2702
+ if ($gOPD) {
1663
2703
  try {
1664
- $gOPD$2({}, '');
2704
+ $gOPD({}, '');
1665
2705
  } catch (e) {
1666
- $gOPD$2 = null; // this is IE 8, which has a broken gOPD
2706
+ $gOPD = null; // this is IE 8, which has a broken gOPD
1667
2707
  }
1668
2708
  }
1669
2709
 
1670
- var throwTypeError = function () {
1671
- throw new $TypeError$5();
1672
- };
1673
- var ThrowTypeError = $gOPD$2
2710
+ var throwTypeError = function () { throw new $TypeError(); };
2711
+ var ThrowTypeError = $gOPD
1674
2712
  ? (function () {
1675
2713
  try {
1676
2714
  // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
@@ -1679,7 +2717,7 @@ var ThrowTypeError = $gOPD$2
1679
2717
  } catch (calleeThrows) {
1680
2718
  try {
1681
2719
  // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
1682
- return $gOPD$2(arguments, 'callee').get;
2720
+ return $gOPD(arguments, 'callee').get;
1683
2721
  } catch (gOPDthrows) {
1684
2722
  return throwTypeError;
1685
2723
  }
@@ -1687,354 +2725,206 @@ var ThrowTypeError = $gOPD$2
1687
2725
  }())
1688
2726
  : throwTypeError;
1689
2727
 
1690
- var hasSymbols$2 = hasSymbols$3();
2728
+ var hasSymbols$2 = hasSymbols$1();
1691
2729
 
1692
2730
  var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
1693
-
1694
- var needsEval = {};
2731
+ var generatorFunction = undefined$1;
2732
+ var asyncFunction = undefined$1;
2733
+ var asyncGenFunction = undefined$1;
1695
2734
 
1696
2735
  var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
1697
2736
 
1698
2737
  var INTRINSICS = {
1699
- '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
1700
2738
  '%Array%': Array,
1701
2739
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
2740
+ '%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer.prototype,
1702
2741
  '%ArrayIteratorPrototype%': hasSymbols$2 ? getProto([][Symbol.iterator]()) : undefined$1,
2742
+ '%ArrayPrototype%': Array.prototype,
2743
+ '%ArrayProto_entries%': Array.prototype.entries,
2744
+ '%ArrayProto_forEach%': Array.prototype.forEach,
2745
+ '%ArrayProto_keys%': Array.prototype.keys,
2746
+ '%ArrayProto_values%': Array.prototype.values,
1703
2747
  '%AsyncFromSyncIteratorPrototype%': undefined$1,
1704
- '%AsyncFunction%': needsEval,
1705
- '%AsyncGenerator%': needsEval,
1706
- '%AsyncGeneratorFunction%': needsEval,
1707
- '%AsyncIteratorPrototype%': needsEval,
2748
+ '%AsyncFunction%': asyncFunction,
2749
+ '%AsyncFunctionPrototype%': undefined$1,
2750
+ '%AsyncGenerator%': undefined$1,
2751
+ '%AsyncGeneratorFunction%': asyncGenFunction,
2752
+ '%AsyncGeneratorPrototype%': undefined$1,
2753
+ '%AsyncIteratorPrototype%': undefined$1,
1708
2754
  '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
1709
- '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
1710
2755
  '%Boolean%': Boolean,
2756
+ '%BooleanPrototype%': Boolean.prototype,
1711
2757
  '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
2758
+ '%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$1 : DataView.prototype,
1712
2759
  '%Date%': Date,
2760
+ '%DatePrototype%': Date.prototype,
1713
2761
  '%decodeURI%': decodeURI,
1714
2762
  '%decodeURIComponent%': decodeURIComponent,
1715
2763
  '%encodeURI%': encodeURI,
1716
2764
  '%encodeURIComponent%': encodeURIComponent,
1717
2765
  '%Error%': Error,
2766
+ '%ErrorPrototype%': Error.prototype,
1718
2767
  '%eval%': eval, // eslint-disable-line no-eval
1719
2768
  '%EvalError%': EvalError,
2769
+ '%EvalErrorPrototype%': EvalError.prototype,
1720
2770
  '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
2771
+ '%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array.prototype,
1721
2772
  '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
1722
- '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
1723
- '%Function%': $Function,
1724
- '%GeneratorFunction%': needsEval,
2773
+ '%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array.prototype,
2774
+ '%Function%': Function,
2775
+ '%FunctionPrototype%': Function.prototype,
2776
+ '%Generator%': undefined$1,
2777
+ '%GeneratorFunction%': generatorFunction,
2778
+ '%GeneratorPrototype%': undefined$1,
1725
2779
  '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
2780
+ '%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array.prototype,
1726
2781
  '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
2782
+ '%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$1 : Int8Array.prototype,
1727
2783
  '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
2784
+ '%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array.prototype,
1728
2785
  '%isFinite%': isFinite,
1729
2786
  '%isNaN%': isNaN,
1730
2787
  '%IteratorPrototype%': hasSymbols$2 ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
1731
2788
  '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
2789
+ '%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$1,
1732
2790
  '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
1733
2791
  '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
2792
+ '%MapPrototype%': typeof Map === 'undefined' ? undefined$1 : Map.prototype,
1734
2793
  '%Math%': Math,
1735
2794
  '%Number%': Number,
2795
+ '%NumberPrototype%': Number.prototype,
1736
2796
  '%Object%': Object,
2797
+ '%ObjectPrototype%': Object.prototype,
2798
+ '%ObjProto_toString%': Object.prototype.toString,
2799
+ '%ObjProto_valueOf%': Object.prototype.valueOf,
1737
2800
  '%parseFloat%': parseFloat,
1738
2801
  '%parseInt%': parseInt,
1739
2802
  '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
2803
+ '%PromisePrototype%': typeof Promise === 'undefined' ? undefined$1 : Promise.prototype,
2804
+ '%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$1 : Promise.prototype.then,
2805
+ '%Promise_all%': typeof Promise === 'undefined' ? undefined$1 : Promise.all,
2806
+ '%Promise_reject%': typeof Promise === 'undefined' ? undefined$1 : Promise.reject,
2807
+ '%Promise_resolve%': typeof Promise === 'undefined' ? undefined$1 : Promise.resolve,
1740
2808
  '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
1741
2809
  '%RangeError%': RangeError,
2810
+ '%RangeErrorPrototype%': RangeError.prototype,
1742
2811
  '%ReferenceError%': ReferenceError,
2812
+ '%ReferenceErrorPrototype%': ReferenceError.prototype,
1743
2813
  '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
1744
2814
  '%RegExp%': RegExp,
2815
+ '%RegExpPrototype%': RegExp.prototype,
1745
2816
  '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
1746
2817
  '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
2818
+ '%SetPrototype%': typeof Set === 'undefined' ? undefined$1 : Set.prototype,
1747
2819
  '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
2820
+ '%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer.prototype,
1748
2821
  '%String%': String,
1749
2822
  '%StringIteratorPrototype%': hasSymbols$2 ? getProto(''[Symbol.iterator]()) : undefined$1,
2823
+ '%StringPrototype%': String.prototype,
1750
2824
  '%Symbol%': hasSymbols$2 ? Symbol : undefined$1,
1751
- '%SyntaxError%': $SyntaxError$1,
2825
+ '%SymbolPrototype%': hasSymbols$2 ? Symbol.prototype : undefined$1,
2826
+ '%SyntaxError%': SyntaxError,
2827
+ '%SyntaxErrorPrototype%': SyntaxError.prototype,
1752
2828
  '%ThrowTypeError%': ThrowTypeError,
1753
2829
  '%TypedArray%': TypedArray,
1754
- '%TypeError%': $TypeError$5,
2830
+ '%TypedArrayPrototype%': TypedArray ? TypedArray.prototype : undefined$1,
2831
+ '%TypeError%': $TypeError,
2832
+ '%TypeErrorPrototype%': $TypeError.prototype,
1755
2833
  '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
2834
+ '%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array.prototype,
1756
2835
  '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
2836
+ '%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray.prototype,
1757
2837
  '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
2838
+ '%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array.prototype,
1758
2839
  '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
2840
+ '%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array.prototype,
1759
2841
  '%URIError%': URIError,
2842
+ '%URIErrorPrototype%': URIError.prototype,
1760
2843
  '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
1761
- '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
1762
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
1763
- };
1764
-
1765
- var doEval = function doEval(name) {
1766
- var value;
1767
- if (name === '%AsyncFunction%') {
1768
- value = getEvalledConstructor('async function () {}');
1769
- } else if (name === '%GeneratorFunction%') {
1770
- value = getEvalledConstructor('function* () {}');
1771
- } else if (name === '%AsyncGeneratorFunction%') {
1772
- value = getEvalledConstructor('async function* () {}');
1773
- } else if (name === '%AsyncGenerator%') {
1774
- var fn = doEval('%AsyncGeneratorFunction%');
1775
- if (fn) {
1776
- value = fn.prototype;
1777
- }
1778
- } else if (name === '%AsyncIteratorPrototype%') {
1779
- var gen = doEval('%AsyncGenerator%');
1780
- if (gen) {
1781
- value = getProto(gen.prototype);
1782
- }
1783
- }
1784
-
1785
- INTRINSICS[name] = value;
1786
-
1787
- return value;
2844
+ '%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap.prototype,
2845
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
2846
+ '%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet.prototype
1788
2847
  };
1789
2848
 
1790
- var LEGACY_ALIASES = {
1791
- '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
1792
- '%ArrayPrototype%': ['Array', 'prototype'],
1793
- '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
1794
- '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
1795
- '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
1796
- '%ArrayProto_values%': ['Array', 'prototype', 'values'],
1797
- '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
1798
- '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
1799
- '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
1800
- '%BooleanPrototype%': ['Boolean', 'prototype'],
1801
- '%DataViewPrototype%': ['DataView', 'prototype'],
1802
- '%DatePrototype%': ['Date', 'prototype'],
1803
- '%ErrorPrototype%': ['Error', 'prototype'],
1804
- '%EvalErrorPrototype%': ['EvalError', 'prototype'],
1805
- '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
1806
- '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
1807
- '%FunctionPrototype%': ['Function', 'prototype'],
1808
- '%Generator%': ['GeneratorFunction', 'prototype'],
1809
- '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
1810
- '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
1811
- '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
1812
- '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
1813
- '%JSONParse%': ['JSON', 'parse'],
1814
- '%JSONStringify%': ['JSON', 'stringify'],
1815
- '%MapPrototype%': ['Map', 'prototype'],
1816
- '%NumberPrototype%': ['Number', 'prototype'],
1817
- '%ObjectPrototype%': ['Object', 'prototype'],
1818
- '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
1819
- '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
1820
- '%PromisePrototype%': ['Promise', 'prototype'],
1821
- '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
1822
- '%Promise_all%': ['Promise', 'all'],
1823
- '%Promise_reject%': ['Promise', 'reject'],
1824
- '%Promise_resolve%': ['Promise', 'resolve'],
1825
- '%RangeErrorPrototype%': ['RangeError', 'prototype'],
1826
- '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
1827
- '%RegExpPrototype%': ['RegExp', 'prototype'],
1828
- '%SetPrototype%': ['Set', 'prototype'],
1829
- '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
1830
- '%StringPrototype%': ['String', 'prototype'],
1831
- '%SymbolPrototype%': ['Symbol', 'prototype'],
1832
- '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
1833
- '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
1834
- '%TypeErrorPrototype%': ['TypeError', 'prototype'],
1835
- '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
1836
- '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
1837
- '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
1838
- '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
1839
- '%URIErrorPrototype%': ['URIError', 'prototype'],
1840
- '%WeakMapPrototype%': ['WeakMap', 'prototype'],
1841
- '%WeakSetPrototype%': ['WeakSet', 'prototype']
1842
- };
1843
-
1844
-
1845
-
1846
- var $concat$2 = functionBind.call(Function.call, Array.prototype.concat);
1847
- var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
2849
+
1848
2850
  var $replace = functionBind.call(Function.call, String.prototype.replace);
1849
- var $strSlice = functionBind.call(Function.call, String.prototype.slice);
1850
2851
 
1851
2852
  /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
1852
2853
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
1853
2854
  var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
1854
2855
  var stringToPath = function stringToPath(string) {
1855
- var first = $strSlice(string, 0, 1);
1856
- var last = $strSlice(string, -1);
1857
- if (first === '%' && last !== '%') {
1858
- throw new $SyntaxError$1('invalid intrinsic syntax, expected closing `%`');
1859
- } else if (last === '%' && first !== '%') {
1860
- throw new $SyntaxError$1('invalid intrinsic syntax, expected opening `%`');
1861
- }
1862
2856
  var result = [];
1863
2857
  $replace(string, rePropName, function (match, number, quote, subString) {
1864
- result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
2858
+ result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : (number || match);
1865
2859
  });
1866
2860
  return result;
1867
2861
  };
1868
2862
  /* end adaptation */
1869
2863
 
1870
2864
  var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
1871
- var intrinsicName = name;
1872
- var alias;
1873
- if (src(LEGACY_ALIASES, intrinsicName)) {
1874
- alias = LEGACY_ALIASES[intrinsicName];
1875
- intrinsicName = '%' + alias[0] + '%';
2865
+ if (!(name in INTRINSICS)) {
2866
+ throw new SyntaxError('intrinsic ' + name + ' does not exist!');
1876
2867
  }
1877
2868
 
1878
- if (src(INTRINSICS, intrinsicName)) {
1879
- var value = INTRINSICS[intrinsicName];
1880
- if (value === needsEval) {
1881
- value = doEval(intrinsicName);
1882
- }
1883
- if (typeof value === 'undefined' && !allowMissing) {
1884
- throw new $TypeError$5('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
1885
- }
1886
-
1887
- return {
1888
- alias: alias,
1889
- name: intrinsicName,
1890
- value: value
1891
- };
2869
+ // istanbul ignore if // hopefully this is impossible to test :-)
2870
+ if (typeof INTRINSICS[name] === 'undefined' && !allowMissing) {
2871
+ throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
1892
2872
  }
1893
2873
 
1894
- throw new $SyntaxError$1('intrinsic ' + name + ' does not exist!');
2874
+ return INTRINSICS[name];
1895
2875
  };
1896
2876
 
1897
- var getIntrinsic = function GetIntrinsic(name, allowMissing) {
2877
+ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
1898
2878
  if (typeof name !== 'string' || name.length === 0) {
1899
- throw new $TypeError$5('intrinsic name must be a non-empty string');
2879
+ throw new TypeError('intrinsic name must be a non-empty string');
1900
2880
  }
1901
2881
  if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
1902
- throw new $TypeError$5('"allowMissing" argument must be a boolean');
2882
+ throw new TypeError('"allowMissing" argument must be a boolean');
1903
2883
  }
1904
2884
 
1905
2885
  var parts = stringToPath(name);
1906
- var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
1907
-
1908
- var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
1909
- var intrinsicRealName = intrinsic.name;
1910
- var value = intrinsic.value;
1911
- var skipFurtherCaching = false;
1912
-
1913
- var alias = intrinsic.alias;
1914
- if (alias) {
1915
- intrinsicBaseName = alias[0];
1916
- $spliceApply(parts, $concat$2([0, 1], alias));
1917
- }
1918
-
1919
- for (var i = 1, isOwn = true; i < parts.length; i += 1) {
1920
- var part = parts[i];
1921
- var first = $strSlice(part, 0, 1);
1922
- var last = $strSlice(part, -1);
1923
- if (
1924
- (
1925
- (first === '"' || first === "'" || first === '`')
1926
- || (last === '"' || last === "'" || last === '`')
1927
- )
1928
- && first !== last
1929
- ) {
1930
- throw new $SyntaxError$1('property names with quotes must have matching quotes');
1931
- }
1932
- if (part === 'constructor' || !isOwn) {
1933
- skipFurtherCaching = true;
1934
- }
1935
-
1936
- intrinsicBaseName += '.' + part;
1937
- intrinsicRealName = '%' + intrinsicBaseName + '%';
1938
2886
 
1939
- if (src(INTRINSICS, intrinsicRealName)) {
1940
- value = INTRINSICS[intrinsicRealName];
1941
- } else if (value != null) {
1942
- if (!(part in value)) {
1943
- if (!allowMissing) {
1944
- throw new $TypeError$5('base intrinsic for ' + name + ' exists, but the property is not available.');
1945
- }
1946
- return void undefined$1;
1947
- }
1948
- if ($gOPD$2 && (i + 1) >= parts.length) {
1949
- var desc = $gOPD$2(value, part);
1950
- isOwn = !!desc;
1951
-
1952
- // By convention, when a data property is converted to an accessor
1953
- // property to emulate a data property that does not suffer from
1954
- // the override mistake, that accessor's getter is marked with
1955
- // an `originalValue` property. Here, when we detect this, we
1956
- // uphold the illusion by pretending to see that original data
1957
- // property, i.e., returning the value rather than the getter
1958
- // itself.
1959
- if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
1960
- value = desc.get;
1961
- } else {
1962
- value = value[part];
2887
+ var value = getBaseIntrinsic('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
2888
+ for (var i = 1; i < parts.length; i += 1) {
2889
+ if (value != null) {
2890
+ if ($gOPD && (i + 1) >= parts.length) {
2891
+ var desc = $gOPD(value, parts[i]);
2892
+ if (!allowMissing && !(parts[i] in value)) {
2893
+ throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
1963
2894
  }
2895
+ value = desc ? (desc.get || desc.value) : value[parts[i]];
1964
2896
  } else {
1965
- isOwn = src(value, part);
1966
- value = value[part];
1967
- }
1968
-
1969
- if (isOwn && !skipFurtherCaching) {
1970
- INTRINSICS[intrinsicRealName] = value;
2897
+ value = value[parts[i]];
1971
2898
  }
1972
2899
  }
1973
2900
  }
1974
2901
  return value;
1975
2902
  };
1976
2903
 
1977
- var callBind = createCommonjsModule(function (module) {
1978
-
2904
+ var $Function = GetIntrinsic('%Function%');
2905
+ var $apply = $Function.apply;
2906
+ var $call = $Function.call;
1979
2907
 
1980
-
1981
-
1982
- var $apply = getIntrinsic('%Function.prototype.apply%');
1983
- var $call = getIntrinsic('%Function.prototype.call%');
1984
- var $reflectApply = getIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
1985
-
1986
- var $gOPD = getIntrinsic('%Object.getOwnPropertyDescriptor%', true);
1987
- var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
1988
- var $max = getIntrinsic('%Math.max%');
1989
-
1990
- if ($defineProperty) {
1991
- try {
1992
- $defineProperty({}, 'a', { value: 1 });
1993
- } catch (e) {
1994
- // IE 8 has a broken defineProperty
1995
- $defineProperty = null;
1996
- }
1997
- }
1998
-
1999
- module.exports = function callBind(originalFunction) {
2000
- var func = $reflectApply(functionBind, $call, arguments);
2001
- if ($gOPD && $defineProperty) {
2002
- var desc = $gOPD(func, 'length');
2003
- if (desc.configurable) {
2004
- // original length, plus the receiver, minus any additional arguments (after the receiver)
2005
- $defineProperty(
2006
- func,
2007
- 'length',
2008
- { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
2009
- );
2010
- }
2011
- }
2012
- return func;
2908
+ var callBind = function callBind() {
2909
+ return functionBind.apply($call, arguments);
2013
2910
  };
2014
2911
 
2015
- var applyBind = function applyBind() {
2016
- return $reflectApply(functionBind, $apply, arguments);
2912
+ var apply = function applyBind() {
2913
+ return functionBind.apply($apply, arguments);
2017
2914
  };
2915
+ callBind.apply = apply;
2018
2916
 
2019
- if ($defineProperty) {
2020
- $defineProperty(module.exports, 'apply', { value: applyBind });
2021
- } else {
2022
- module.exports.apply = applyBind;
2023
- }
2024
- });
2025
- callBind.apply;
2026
-
2027
- var $indexOf = callBind(getIntrinsic('String.prototype.indexOf'));
2917
+ var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
2028
2918
 
2029
- var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
2030
- var intrinsic = getIntrinsic(name, !!allowMissing);
2031
- if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
2919
+ var callBound = function callBoundIntrinsic(name, allowMissing) {
2920
+ var intrinsic = GetIntrinsic(name, !!allowMissing);
2921
+ if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.')) {
2032
2922
  return callBind(intrinsic);
2033
2923
  }
2034
2924
  return intrinsic;
2035
2925
  };
2036
2926
 
2037
- var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
2927
+ var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
2038
2928
 
2039
2929
  if ($defineProperty) {
2040
2930
  try {
@@ -2047,7 +2937,7 @@ if ($defineProperty) {
2047
2937
 
2048
2938
 
2049
2939
 
2050
- var $isEnumerable$1 = callBound$1('Object.prototype.propertyIsEnumerable');
2940
+ var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable');
2051
2941
 
2052
2942
  // eslint-disable-next-line max-params
2053
2943
  var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, desc) {
@@ -2061,7 +2951,7 @@ var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue,
2061
2951
  }
2062
2952
 
2063
2953
  // fallback for ES3
2064
- if (P in O && $isEnumerable$1(O, P) !== !!desc['[[Enumerable]]']) {
2954
+ if (P in O && $isEnumerable(O, P) !== !!desc['[[Enumerable]]']) {
2065
2955
  // a non-enumerable existing property
2066
2956
  return false;
2067
2957
  }
@@ -2076,13 +2966,15 @@ var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue,
2076
2966
  return true;
2077
2967
  };
2078
2968
 
2079
- var $TypeError$4 = getIntrinsic('%TypeError%');
2080
- var $SyntaxError = getIntrinsic('%SyntaxError%');
2969
+ var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
2970
+
2971
+ var $TypeError$1 = GetIntrinsic('%TypeError%');
2972
+ var $SyntaxError = GetIntrinsic('%SyntaxError%');
2081
2973
 
2082
2974
 
2083
2975
 
2084
2976
  var predicates = {
2085
- // https://262.ecma-international.org/6.0/#sec-property-descriptor-specification-type
2977
+ // https://ecma-international.org/ecma-262/6.0/#sec-property-descriptor-specification-type
2086
2978
  'Property Descriptor': function isPropertyDescriptor(Type, Desc) {
2087
2979
  if (Type(Desc) !== 'Object') {
2088
2980
  return false;
@@ -2105,7 +2997,7 @@ var predicates = {
2105
2997
  var isData = src(Desc, '[[Value]]');
2106
2998
  var IsAccessor = src(Desc, '[[Get]]') || src(Desc, '[[Set]]');
2107
2999
  if (isData && IsAccessor) {
2108
- throw new $TypeError$4('Property Descriptors may not be both accessor and data descriptors');
3000
+ throw new $TypeError$1('Property Descriptors may not be both accessor and data descriptors');
2109
3001
  }
2110
3002
  return true;
2111
3003
  }
@@ -2117,13 +3009,13 @@ var assertRecord = function assertRecord(Type, recordType, argumentName, value)
2117
3009
  throw new $SyntaxError('unknown record type: ' + recordType);
2118
3010
  }
2119
3011
  if (!predicate(Type, value)) {
2120
- throw new $TypeError$4(argumentName + ' must be a ' + recordType);
3012
+ throw new $TypeError$1(argumentName + ' must be a ' + recordType);
2121
3013
  }
2122
3014
  };
2123
3015
 
2124
- // https://262.ecma-international.org/5.1/#sec-8
3016
+ // https://www.ecma-international.org/ecma-262/5.1/#sec-8
2125
3017
 
2126
- var Type$1 = function Type(x) {
3018
+ var Type = function Type(x) {
2127
3019
  if (x === null) {
2128
3020
  return 'Null';
2129
3021
  }
@@ -2144,26 +3036,23 @@ var Type$1 = function Type(x) {
2144
3036
  }
2145
3037
  };
2146
3038
 
2147
- // https://262.ecma-international.org/11.0/#sec-ecmascript-data-types-and-values
3039
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-tostring
2148
3040
 
2149
- var Type = function Type(x) {
3041
+ var Type$1 = function Type$1(x) {
2150
3042
  if (typeof x === 'symbol') {
2151
3043
  return 'Symbol';
2152
3044
  }
2153
- if (typeof x === 'bigint') {
2154
- return 'BigInt';
2155
- }
2156
- return Type$1(x);
3045
+ return Type(x);
2157
3046
  };
2158
3047
 
2159
- // https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
3048
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
2160
3049
 
2161
3050
  var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
2162
3051
  if (typeof Desc === 'undefined') {
2163
3052
  return Desc;
2164
3053
  }
2165
3054
 
2166
- assertRecord(Type, 'Property Descriptor', 'Desc', Desc);
3055
+ assertRecord(Type$1, 'Property Descriptor', 'Desc', Desc);
2167
3056
 
2168
3057
  var obj = {};
2169
3058
  if ('[[Value]]' in Desc) {
@@ -2187,7 +3076,7 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
2187
3076
  return obj;
2188
3077
  };
2189
3078
 
2190
- var $gOPD$1 = getIntrinsic('%Object.getOwnPropertyDescriptor%');
3079
+ var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
2191
3080
  if ($gOPD$1) {
2192
3081
  try {
2193
3082
  $gOPD$1([], 'length');
@@ -2199,85 +3088,65 @@ if ($gOPD$1) {
2199
3088
 
2200
3089
  var getOwnPropertyDescriptor = $gOPD$1;
2201
3090
 
2202
- var $Array = getIntrinsic('%Array%');
3091
+ var $Array = GetIntrinsic('%Array%');
2203
3092
 
2204
3093
  // eslint-disable-next-line global-require
2205
- var toStr$1 = !$Array.isArray && callBound$1('Object.prototype.toString');
3094
+ var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
2206
3095
 
2207
- // https://ecma-international.org/ecma-262/6.0/#sec-isarray
3096
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
2208
3097
 
2209
3098
  var IsArray = $Array.isArray || function IsArray(argument) {
2210
- return toStr$1(argument) === '[object Array]';
3099
+ return toStr$4(argument) === '[object Array]';
2211
3100
  };
2212
3101
 
2213
- // https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey
3102
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
2214
3103
 
2215
3104
  var IsPropertyKey = function IsPropertyKey(argument) {
2216
3105
  return typeof argument === 'string' || typeof argument === 'symbol';
2217
3106
  };
2218
3107
 
2219
- var hasSymbols$1 = hasSymbols$3();
2220
- var hasToStringTag$1 = hasSymbols$1 && typeof Symbol.toStringTag === 'symbol';
2221
- var has;
2222
- var $exec;
2223
- var isRegexMarker;
2224
- var badStringifier;
2225
-
2226
- if (hasToStringTag$1) {
2227
- has = callBound$1('Object.prototype.hasOwnProperty');
2228
- $exec = callBound$1('RegExp.prototype.exec');
2229
- isRegexMarker = {};
3108
+ var regexExec = RegExp.prototype.exec;
3109
+ var gOPD = Object.getOwnPropertyDescriptor;
2230
3110
 
2231
- var throwRegexMarker = function () {
2232
- throw isRegexMarker;
2233
- };
2234
- badStringifier = {
2235
- toString: throwRegexMarker,
2236
- valueOf: throwRegexMarker
2237
- };
3111
+ var tryRegexExecCall = function tryRegexExec(value) {
3112
+ try {
3113
+ var lastIndex = value.lastIndex;
3114
+ value.lastIndex = 0; // eslint-disable-line no-param-reassign
2238
3115
 
2239
- if (typeof Symbol.toPrimitive === 'symbol') {
2240
- badStringifier[Symbol.toPrimitive] = throwRegexMarker;
3116
+ regexExec.call(value);
3117
+ return true;
3118
+ } catch (e) {
3119
+ return false;
3120
+ } finally {
3121
+ value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
2241
3122
  }
2242
- }
2243
-
2244
- var $toString = callBound$1('Object.prototype.toString');
2245
- var gOPD = Object.getOwnPropertyDescriptor;
3123
+ };
3124
+ var toStr$5 = Object.prototype.toString;
2246
3125
  var regexClass = '[object RegExp]';
3126
+ var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
2247
3127
 
2248
- var isRegex = hasToStringTag$1
2249
- // eslint-disable-next-line consistent-return
2250
- ? function isRegex(value) {
2251
- if (!value || typeof value !== 'object') {
2252
- return false;
2253
- }
2254
-
2255
- var descriptor = gOPD(value, 'lastIndex');
2256
- var hasLastIndexDataProperty = descriptor && has(descriptor, 'value');
2257
- if (!hasLastIndexDataProperty) {
2258
- return false;
2259
- }
3128
+ var isRegex = function isRegex(value) {
3129
+ if (!value || typeof value !== 'object') {
3130
+ return false;
3131
+ }
3132
+ if (!hasToStringTag) {
3133
+ return toStr$5.call(value) === regexClass;
3134
+ }
2260
3135
 
2261
- try {
2262
- $exec(value, badStringifier);
2263
- } catch (e) {
2264
- return e === isRegexMarker;
2265
- }
3136
+ var descriptor = gOPD(value, 'lastIndex');
3137
+ var hasLastIndexDataProperty = descriptor && src(descriptor, 'value');
3138
+ if (!hasLastIndexDataProperty) {
3139
+ return false;
2266
3140
  }
2267
- : function isRegex(value) {
2268
- // In older browsers, typeof regex incorrectly returns 'function'
2269
- if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
2270
- return false;
2271
- }
2272
3141
 
2273
- return $toString(value) === regexClass;
2274
- };
3142
+ return tryRegexExecCall(value);
3143
+ };
2275
3144
 
2276
- // http://262.ecma-international.org/5.1/#sec-9.2
3145
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
2277
3146
 
2278
3147
  var ToBoolean = function ToBoolean(value) { return !!value; };
2279
3148
 
2280
- var $match = getIntrinsic('%Symbol.match%', true);
3149
+ var $match = GetIntrinsic('%Symbol.match%', true);
2281
3150
 
2282
3151
 
2283
3152
 
@@ -2299,27 +3168,6 @@ var IsRegExp = function IsRegExp(argument) {
2299
3168
  };
2300
3169
 
2301
3170
  var fnToStr = Function.prototype.toString;
2302
- var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
2303
- var badArrayLike;
2304
- var isCallableMarker;
2305
- if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {
2306
- try {
2307
- badArrayLike = Object.defineProperty({}, 'length', {
2308
- get: function () {
2309
- throw isCallableMarker;
2310
- }
2311
- });
2312
- isCallableMarker = {};
2313
- // eslint-disable-next-line no-throw-literal
2314
- reflectApply(function () { throw 42; }, null, badArrayLike);
2315
- } catch (_) {
2316
- if (_ !== isCallableMarker) {
2317
- reflectApply = null;
2318
- }
2319
- }
2320
- } else {
2321
- reflectApply = null;
2322
- }
2323
3171
 
2324
3172
  var constructorRegex = /^\s*class\b/;
2325
3173
  var isES6ClassFn = function isES6ClassFunction(value) {
@@ -2340,52 +3188,36 @@ var tryFunctionObject = function tryFunctionToStr(value) {
2340
3188
  return false;
2341
3189
  }
2342
3190
  };
2343
- var toStr = Object.prototype.toString;
3191
+ var toStr$6 = Object.prototype.toString;
2344
3192
  var fnClass = '[object Function]';
2345
3193
  var genClass = '[object GeneratorFunction]';
2346
- var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
2347
- /* globals document: false */
2348
- var documentDotAll = typeof document === 'object' && typeof document.all === 'undefined' && document.all !== undefined ? document.all : {};
2349
-
2350
- var isCallable = reflectApply
2351
- ? function isCallable(value) {
2352
- if (value === documentDotAll) { return true; }
2353
- if (!value) { return false; }
2354
- if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2355
- if (typeof value === 'function' && !value.prototype) { return true; }
2356
- try {
2357
- reflectApply(value, null, badArrayLike);
2358
- } catch (e) {
2359
- if (e !== isCallableMarker) { return false; }
2360
- }
2361
- return !isES6ClassFn(value);
2362
- }
2363
- : function isCallable(value) {
2364
- if (value === documentDotAll) { return true; }
2365
- if (!value) { return false; }
2366
- if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2367
- if (typeof value === 'function' && !value.prototype) { return true; }
2368
- if (hasToStringTag) { return tryFunctionObject(value); }
2369
- if (isES6ClassFn(value)) { return false; }
2370
- var strClass = toStr.call(value);
2371
- return strClass === fnClass || strClass === genClass;
2372
- };
3194
+ var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
3195
+
3196
+ var isCallable = function isCallable(value) {
3197
+ if (!value) { return false; }
3198
+ if (typeof value !== 'function' && typeof value !== 'object') { return false; }
3199
+ if (typeof value === 'function' && !value.prototype) { return true; }
3200
+ if (hasToStringTag$1) { return tryFunctionObject(value); }
3201
+ if (isES6ClassFn(value)) { return false; }
3202
+ var strClass = toStr$6.call(value);
3203
+ return strClass === fnClass || strClass === genClass;
3204
+ };
2373
3205
 
2374
- // http://262.ecma-international.org/5.1/#sec-9.11
3206
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
2375
3207
 
2376
3208
  var IsCallable = isCallable;
2377
3209
 
2378
- var $TypeError$3 = getIntrinsic('%TypeError%');
3210
+ var $TypeError$2 = GetIntrinsic('%TypeError%');
2379
3211
 
2380
3212
 
2381
3213
 
2382
3214
 
2383
3215
 
2384
- // https://262.ecma-international.org/5.1/#sec-8.10.5
3216
+ // https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
2385
3217
 
2386
3218
  var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
2387
- if (Type(Obj) !== 'Object') {
2388
- throw new $TypeError$3('ToPropertyDescriptor requires an object');
3219
+ if (Type$1(Obj) !== 'Object') {
3220
+ throw new $TypeError$2('ToPropertyDescriptor requires an object');
2389
3221
  }
2390
3222
 
2391
3223
  var desc = {};
@@ -2404,29 +3236,29 @@ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
2404
3236
  if (src(Obj, 'get')) {
2405
3237
  var getter = Obj.get;
2406
3238
  if (typeof getter !== 'undefined' && !IsCallable(getter)) {
2407
- throw new $TypeError$3('getter must be a function');
3239
+ throw new TypeError('getter must be a function');
2408
3240
  }
2409
3241
  desc['[[Get]]'] = getter;
2410
3242
  }
2411
3243
  if (src(Obj, 'set')) {
2412
3244
  var setter = Obj.set;
2413
3245
  if (typeof setter !== 'undefined' && !IsCallable(setter)) {
2414
- throw new $TypeError$3('setter must be a function');
3246
+ throw new $TypeError$2('setter must be a function');
2415
3247
  }
2416
3248
  desc['[[Set]]'] = setter;
2417
3249
  }
2418
3250
 
2419
3251
  if ((src(desc, '[[Get]]') || src(desc, '[[Set]]')) && (src(desc, '[[Value]]') || src(desc, '[[Writable]]'))) {
2420
- throw new $TypeError$3('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
3252
+ throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
2421
3253
  }
2422
3254
  return desc;
2423
3255
  };
2424
3256
 
2425
- var $TypeError$2 = getIntrinsic('%TypeError%');
3257
+ var $TypeError$3 = GetIntrinsic('%TypeError%');
2426
3258
 
2427
3259
 
2428
3260
 
2429
- var $isEnumerable = callBound$1('Object.prototype.propertyIsEnumerable');
3261
+ var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
2430
3262
 
2431
3263
 
2432
3264
 
@@ -2436,14 +3268,14 @@ var $isEnumerable = callBound$1('Object.prototype.propertyIsEnumerable');
2436
3268
 
2437
3269
 
2438
3270
 
2439
- // https://ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
3271
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
2440
3272
 
2441
3273
  var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
2442
- if (Type(O) !== 'Object') {
2443
- throw new $TypeError$2('Assertion failed: O must be an Object');
3274
+ if (Type$1(O) !== 'Object') {
3275
+ throw new $TypeError$3('Assertion failed: O must be an Object');
2444
3276
  }
2445
3277
  if (!IsPropertyKey(P)) {
2446
- throw new $TypeError$2('Assertion failed: P must be a Property Key');
3278
+ throw new $TypeError$3('Assertion failed: P must be a Property Key');
2447
3279
  }
2448
3280
  if (!src(O, P)) {
2449
3281
  return void 0;
@@ -2454,7 +3286,7 @@ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
2454
3286
  var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
2455
3287
  return {
2456
3288
  '[[Configurable]]': !(arrayLength || regexLastIndex),
2457
- '[[Enumerable]]': $isEnumerable(O, P),
3289
+ '[[Enumerable]]': $isEnumerable$1(O, P),
2458
3290
  '[[Value]]': O[P],
2459
3291
  '[[Writable]]': true
2460
3292
  };
@@ -2462,14 +3294,14 @@ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
2462
3294
  return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
2463
3295
  };
2464
3296
 
2465
- // https://ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
3297
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
2466
3298
 
2467
3299
  var IsDataDescriptor = function IsDataDescriptor(Desc) {
2468
3300
  if (typeof Desc === 'undefined') {
2469
3301
  return false;
2470
3302
  }
2471
3303
 
2472
- assertRecord(Type, 'Property Descriptor', 'Desc', Desc);
3304
+ assertRecord(Type$1, 'Property Descriptor', 'Desc', Desc);
2473
3305
 
2474
3306
  if (!src(Desc, '[[Value]]') && !src(Desc, '[[Writable]]')) {
2475
3307
  return false;
@@ -2482,14 +3314,14 @@ var isPrimitive = function isPrimitive(value) {
2482
3314
  return value === null || (typeof value !== 'function' && typeof value !== 'object');
2483
3315
  };
2484
3316
 
2485
- var $Object$1 = getIntrinsic('%Object%');
3317
+ var $Object = GetIntrinsic('%Object%');
2486
3318
 
2487
3319
 
2488
3320
 
2489
- var $preventExtensions = $Object$1.preventExtensions;
2490
- var $isExtensible = $Object$1.isExtensible;
3321
+ var $preventExtensions = $Object.preventExtensions;
3322
+ var $isExtensible = $Object.isExtensible;
2491
3323
 
2492
- // https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o
3324
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-isextensible-o
2493
3325
 
2494
3326
  var IsExtensible = $preventExtensions
2495
3327
  ? function IsExtensible(obj) {
@@ -2503,7 +3335,7 @@ var _isNaN = Number.isNaN || function isNaN(a) {
2503
3335
  return a !== a;
2504
3336
  };
2505
3337
 
2506
- // http://262.ecma-international.org/5.1/#sec-9.12
3338
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.12
2507
3339
 
2508
3340
  var SameValue = function SameValue(x, y) {
2509
3341
  if (x === y) { // 0 === -0, but they are not identical.
@@ -2513,7 +3345,7 @@ var SameValue = function SameValue(x, y) {
2513
3345
  return _isNaN(x) && _isNaN(y);
2514
3346
  };
2515
3347
 
2516
- var $TypeError$1 = getIntrinsic('%TypeError%');
3348
+ var $TypeError$4 = GetIntrinsic('%TypeError%');
2517
3349
 
2518
3350
 
2519
3351
 
@@ -2525,18 +3357,18 @@ var $TypeError$1 = getIntrinsic('%TypeError%');
2525
3357
 
2526
3358
 
2527
3359
 
2528
- // https://ecma-international.org/ecma-262/6.0/#sec-createdataproperty
3360
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty
2529
3361
 
2530
3362
  var CreateDataProperty = function CreateDataProperty(O, P, V) {
2531
- if (Type(O) !== 'Object') {
2532
- throw new $TypeError$1('Assertion failed: Type(O) is not Object');
3363
+ if (Type$1(O) !== 'Object') {
3364
+ throw new $TypeError$4('Assertion failed: Type(O) is not Object');
2533
3365
  }
2534
3366
  if (!IsPropertyKey(P)) {
2535
- throw new $TypeError$1('Assertion failed: IsPropertyKey(P) is not true');
3367
+ throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
2536
3368
  }
2537
3369
  var oldDesc = OrdinaryGetOwnProperty(O, P);
2538
- var extensible = !oldDesc || IsExtensible(O);
2539
- var immutable = oldDesc && (!oldDesc['[[Writable]]'] || !oldDesc['[[Configurable]]']);
3370
+ var extensible = oldDesc || IsExtensible(O);
3371
+ var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
2540
3372
  if (immutable || !extensible) {
2541
3373
  return false;
2542
3374
  }
@@ -2555,44 +3387,44 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
2555
3387
  );
2556
3388
  };
2557
3389
 
2558
- var $TypeError = getIntrinsic('%TypeError%');
3390
+ var $TypeError$5 = GetIntrinsic('%TypeError%');
2559
3391
 
2560
- // http://262.ecma-international.org/5.1/#sec-9.10
3392
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
2561
3393
 
2562
3394
  var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
2563
3395
  if (value == null) {
2564
- throw new $TypeError(optMessage || ('Cannot call method on ' + value));
3396
+ throw new $TypeError$5(optMessage || ('Cannot call method on ' + value));
2565
3397
  }
2566
3398
  return value;
2567
3399
  };
2568
3400
 
2569
3401
  var RequireObjectCoercible = CheckObjectCoercible;
2570
3402
 
2571
- var $Object = getIntrinsic('%Object%');
3403
+ var $Object$1 = GetIntrinsic('%Object%');
2572
3404
 
2573
3405
 
2574
3406
 
2575
- // https://ecma-international.org/ecma-262/6.0/#sec-toobject
3407
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-toobject
2576
3408
 
2577
3409
  var ToObject = function ToObject(value) {
2578
3410
  RequireObjectCoercible(value);
2579
- return $Object(value);
3411
+ return $Object$1(value);
2580
3412
  };
2581
3413
 
2582
- var $gOPD = Object.getOwnPropertyDescriptor;
3414
+ var $gOPD$2 = Object.getOwnPropertyDescriptor;
2583
3415
  var $getOwnNames = Object.getOwnPropertyNames;
2584
3416
  var $getSymbols = Object.getOwnPropertySymbols;
2585
- var $concat$1 = callBound$1('Array.prototype.concat');
2586
- var $reduce = callBound$1('Array.prototype.reduce');
3417
+ var $concat = callBound('Array.prototype.concat');
3418
+ var $reduce = callBound('Array.prototype.reduce');
2587
3419
  var getAll = $getSymbols ? function (obj) {
2588
- return $concat$1($getOwnNames(obj), $getSymbols(obj));
3420
+ return $concat($getOwnNames(obj), $getSymbols(obj));
2589
3421
  } : $getOwnNames;
2590
3422
 
2591
- var isES5$1 = IsCallable($gOPD) && IsCallable($getOwnNames);
3423
+ var isES5 = IsCallable($gOPD$2) && IsCallable($getOwnNames);
2592
3424
 
2593
- var implementation$1 = function getOwnPropertyDescriptors(value) {
3425
+ var implementation$2 = function getOwnPropertyDescriptors(value) {
2594
3426
  RequireObjectCoercible(value);
2595
- if (!isES5$1) {
3427
+ if (!isES5) {
2596
3428
  throw new TypeError('getOwnPropertyDescriptors requires Object.getOwnPropertyDescriptor');
2597
3429
  }
2598
3430
 
@@ -2600,7 +3432,7 @@ var implementation$1 = function getOwnPropertyDescriptors(value) {
2600
3432
  return $reduce(
2601
3433
  getAll(O),
2602
3434
  function (acc, key) {
2603
- var descriptor = $gOPD(O, key);
3435
+ var descriptor = $gOPD$2(O, key);
2604
3436
  if (typeof descriptor !== 'undefined') {
2605
3437
  CreateDataProperty(acc, key, descriptor);
2606
3438
  }
@@ -2610,40 +3442,34 @@ var implementation$1 = function getOwnPropertyDescriptors(value) {
2610
3442
  );
2611
3443
  };
2612
3444
 
2613
- var polyfill$2 = function getPolyfill() {
2614
- return typeof Object.getOwnPropertyDescriptors === 'function' ? Object.getOwnPropertyDescriptors : implementation$1;
3445
+ var polyfill = function getPolyfill() {
3446
+ return typeof Object.getOwnPropertyDescriptors === 'function' ? Object.getOwnPropertyDescriptors : implementation$2;
2615
3447
  };
2616
3448
 
2617
- var shim$1 = function shimGetOwnPropertyDescriptors() {
2618
- var polyfill = polyfill$2();
3449
+ var shim = function shimGetOwnPropertyDescriptors() {
3450
+ var polyfill$1 = polyfill();
2619
3451
  defineProperties_1(
2620
3452
  Object,
2621
- { getOwnPropertyDescriptors: polyfill },
2622
- { getOwnPropertyDescriptors: function () { return Object.getOwnPropertyDescriptors !== polyfill; } }
3453
+ { getOwnPropertyDescriptors: polyfill$1 },
3454
+ { getOwnPropertyDescriptors: function () { return Object.getOwnPropertyDescriptors !== polyfill$1; } }
2623
3455
  );
2624
- return polyfill;
3456
+ return polyfill$1;
2625
3457
  };
2626
3458
 
2627
- var bound = callBind(polyfill$2(), Object);
2628
-
2629
- defineProperties_1(bound, {
2630
- getPolyfill: polyfill$2,
2631
- implementation: implementation$1,
2632
- shim: shim$1
3459
+ defineProperties_1(implementation$2, {
3460
+ getPolyfill: polyfill,
3461
+ implementation: implementation$2,
3462
+ shim: shim
2633
3463
  });
2634
3464
 
2635
- var object_getownpropertydescriptors = bound;
2636
-
2637
- // TODO; semver-major: remove
3465
+ var object_getownpropertydescriptors = implementation$2;
2638
3466
 
2639
- var callBound = callBound$1;
2640
-
2641
- var isES5 = typeof Object.defineProperty === 'function'
3467
+ var isES5$1 = typeof Object.defineProperty === 'function'
2642
3468
  && typeof Object.defineProperties === 'function';
2643
3469
 
2644
3470
  var hasProto = [].__proto__ === Array.prototype; // eslint-disable-line no-proto
2645
3471
 
2646
- if (!isES5 || !hasProto) {
3472
+ if (!isES5$1 || !hasProto) {
2647
3473
  throw new TypeError('util.promisify requires a true ES5 environment, that also supports `__proto__`');
2648
3474
  }
2649
3475
 
@@ -2656,15 +3482,15 @@ if (typeof Promise !== 'function') {
2656
3482
 
2657
3483
 
2658
3484
  var $slice = callBound('Array.prototype.slice');
2659
- var $concat = callBound('Array.prototype.concat');
3485
+ var $concat$1 = callBound('Array.prototype.concat');
2660
3486
  var $forEach = callBound('Array.prototype.forEach');
2661
3487
 
2662
- var hasSymbols = hasSymbols$3();
3488
+ var hasSymbols$3 = hasSymbols$1();
2663
3489
 
2664
- var kCustomPromisifiedSymbol = hasSymbols ? Symbol('util.promisify.custom') : null;
2665
- var kCustomPromisifyArgsSymbol = hasSymbols ? Symbol('customPromisifyArgs') : null;
3490
+ var kCustomPromisifiedSymbol = hasSymbols$3 ? Symbol('util.promisify.custom') : null;
3491
+ var kCustomPromisifyArgsSymbol = hasSymbols$3 ? Symbol('customPromisifyArgs') : null;
2666
3492
 
2667
- var implementation = function promisify(orig) {
3493
+ var implementation$3 = function promisify(orig) {
2668
3494
  if (typeof orig !== 'function') {
2669
3495
  var error = new TypeError('The "original" argument must be of type function');
2670
3496
  error.name = 'TypeError [ERR_INVALID_ARG_TYPE]';
@@ -2672,7 +3498,7 @@ var implementation = function promisify(orig) {
2672
3498
  throw error;
2673
3499
  }
2674
3500
 
2675
- if (hasSymbols && orig[kCustomPromisifiedSymbol]) {
3501
+ if (hasSymbols$3 && orig[kCustomPromisifiedSymbol]) {
2676
3502
  var customFunction = orig[kCustomPromisifiedSymbol];
2677
3503
  if (typeof customFunction !== 'function') {
2678
3504
  throw new TypeError('The [util.promisify.custom] property must be a function');
@@ -2694,7 +3520,7 @@ var implementation = function promisify(orig) {
2694
3520
  var args = $slice(arguments);
2695
3521
  var self = this; // eslint-disable-line no-invalid-this
2696
3522
  return new Promise(function (resolve, reject) {
2697
- orig.apply(self, $concat(args, function (err) {
3523
+ orig.apply(self, $concat$1(args, function (err) {
2698
3524
  var values = arguments.length > 1 ? $slice(arguments, 1) : [];
2699
3525
  if (err) {
2700
3526
  reject(err);
@@ -2724,17 +3550,17 @@ var implementation = function promisify(orig) {
2724
3550
 
2725
3551
  var custom = kCustomPromisifiedSymbol;
2726
3552
  var customPromisifyArgs = kCustomPromisifyArgsSymbol;
2727
- implementation.custom = custom;
2728
- implementation.customPromisifyArgs = customPromisifyArgs;
3553
+ implementation$3.custom = custom;
3554
+ implementation$3.customPromisifyArgs = customPromisifyArgs;
2729
3555
 
2730
3556
  var polyfill$1 = function getPolyfill() {
2731
3557
  if (typeof util.promisify === 'function') {
2732
3558
  return util.promisify;
2733
3559
  }
2734
- return implementation;
3560
+ return implementation$3;
2735
3561
  };
2736
3562
 
2737
- var shim = function shimUtilPromisify() {
3563
+ var shim$1 = function shimUtilPromisify() {
2738
3564
  var polyfill = polyfill$1();
2739
3565
  if (polyfill !== util.promisify) {
2740
3566
  Object.defineProperty(util, 'promisify', {
@@ -2747,20 +3573,20 @@ var shim = function shimUtilPromisify() {
2747
3573
  return polyfill;
2748
3574
  };
2749
3575
 
2750
- var polyfill = polyfill$1();
3576
+ var polyfill$2 = polyfill$1();
2751
3577
 
2752
3578
 
2753
3579
  /* eslint-disable no-unused-vars */
2754
3580
  var boundPromisify = function promisify(orig) {
2755
3581
  /* eslint-enable no-unused-vars */
2756
- return polyfill.apply(util, arguments);
3582
+ return polyfill$2.apply(util, arguments);
2757
3583
  };
2758
3584
  defineProperties_1(boundPromisify, {
2759
- custom: polyfill.custom,
2760
- customPromisifyArgs: polyfill.customPromisifyArgs,
3585
+ custom: polyfill$2.custom,
3586
+ customPromisifyArgs: polyfill$2.customPromisifyArgs,
2761
3587
  getPolyfill: polyfill$1,
2762
- implementation: implementation,
2763
- shim: shim
3588
+ implementation: implementation$3,
3589
+ shim: shim$1
2764
3590
  });
2765
3591
 
2766
3592
  var util_promisify = boundPromisify;
@@ -2801,16 +3627,16 @@ function connect() {
2801
3627
 
2802
3628
  var db = connect;
2803
3629
 
2804
- var _this$1 = undefined;
3630
+ var _this$3 = undefined;
2805
3631
 
2806
- var config$1 = {
3632
+ var config = {
2807
3633
  host: 'sanity-datasource.cluster-crao688bsrdh.us-east-1.rds.amazonaws.com',
2808
3634
  user: 'nasp',
2809
3635
  password: 'uRNkF9SkfXQs6AKK',
2810
3636
  database: 'user'
2811
3637
  };
2812
3638
 
2813
- var findUser$1 = function () {
3639
+ var findUser = function () {
2814
3640
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(email) {
2815
3641
  var password = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
2816
3642
  var db$1, query, res, user, hash, passwordsMatch, user_shared, occupation_id;
@@ -2822,7 +3648,7 @@ var findUser$1 = function () {
2822
3648
  _context.prev = 1;
2823
3649
 
2824
3650
 
2825
- db$1 = db(config$1);
3651
+ db$1 = db(config);
2826
3652
 
2827
3653
  query = '\n select * \n from user \n where trim(lower(email)) = ?\n ';
2828
3654
  _context.next = 6;
@@ -2918,7 +3744,7 @@ var findUser$1 = function () {
2918
3744
  };
2919
3745
  }();
2920
3746
 
2921
- var updateUser$1 = function () {
3747
+ var updateUser = function () {
2922
3748
  var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(data) {
2923
3749
  var db$1, query, res, hash, columns, i, column, occupation_name;
2924
3750
  return regenerator.wrap(function _callee2$(_context2) {
@@ -2931,7 +3757,7 @@ var updateUser$1 = function () {
2931
3757
 
2932
3758
  validateUserData(data);
2933
3759
 
2934
- db$1 = db(config$1);
3760
+ db$1 = db(config);
2935
3761
 
2936
3762
  _context2.next = 6;
2937
3763
  return db$1.beginTransaction();
@@ -3038,7 +3864,7 @@ var updateUser$1 = function () {
3038
3864
 
3039
3865
  return _context2.abrupt('return', {
3040
3866
  error: '',
3041
- user: findUser$1(data.email)
3867
+ user: findUser(data.email)
3042
3868
  });
3043
3869
 
3044
3870
  case 45:
@@ -3150,7 +3976,7 @@ var getOccupationNameById = function () {
3150
3976
  return _context3.stop();
3151
3977
  }
3152
3978
  }
3153
- }, _callee3, _this$1);
3979
+ }, _callee3, _this$3);
3154
3980
  }));
3155
3981
 
3156
3982
  return function getOccupationNameById(_x5, _x6) {
@@ -3158,7 +3984,7 @@ var getOccupationNameById = function () {
3158
3984
  };
3159
3985
  }();
3160
3986
 
3161
- var createUser$1 = function () {
3987
+ var createUser = function () {
3162
3988
  var _ref4 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee4(data) {
3163
3989
  var db$1, query, res, hash, columns, i, column, user_id, occupation_name;
3164
3990
  return regenerator.wrap(function _callee4$(_context4) {
@@ -3171,7 +3997,7 @@ var createUser$1 = function () {
3171
3997
 
3172
3998
  validateUserData(data, true);
3173
3999
 
3174
- db$1 = db(config$1);
4000
+ db$1 = db(config);
3175
4001
 
3176
4002
  _context4.next = 6;
3177
4003
  return db$1.beginTransaction();
@@ -3267,7 +4093,7 @@ var createUser$1 = function () {
3267
4093
  case 39:
3268
4094
  return _context4.abrupt('return', {
3269
4095
  error: '',
3270
- user: findUser$1(data.email)
4096
+ user: findUser(data.email)
3271
4097
  });
3272
4098
 
3273
4099
  case 42:
@@ -3305,7 +4131,7 @@ var createUser$1 = function () {
3305
4131
  };
3306
4132
  }();
3307
4133
 
3308
- var createUser = function () {
4134
+ var createUser$1 = function () {
3309
4135
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(data) {
3310
4136
  var res;
3311
4137
  return regenerator.wrap(function _callee$(_context) {
@@ -3313,7 +4139,7 @@ var createUser = function () {
3313
4139
  switch (_context.prev = _context.next) {
3314
4140
  case 0:
3315
4141
  _context.next = 2;
3316
- return createUser$1(data);
4142
+ return createUser(data);
3317
4143
 
3318
4144
  case 2:
3319
4145
  res = _context.sent;
@@ -3341,7 +4167,7 @@ var createUser = function () {
3341
4167
  };
3342
4168
  }();
3343
4169
 
3344
- var updateUser = function () {
4170
+ var updateUser$1 = function () {
3345
4171
  var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(data) {
3346
4172
  var res;
3347
4173
  return regenerator.wrap(function _callee2$(_context2) {
@@ -3349,7 +4175,7 @@ var updateUser = function () {
3349
4175
  switch (_context2.prev = _context2.next) {
3350
4176
  case 0:
3351
4177
  _context2.next = 2;
3352
- return updateUser$1(data);
4178
+ return updateUser(data);
3353
4179
 
3354
4180
  case 2:
3355
4181
  res = _context2.sent;
@@ -3377,7 +4203,7 @@ var updateUser = function () {
3377
4203
  };
3378
4204
  }();
3379
4205
 
3380
- var findUser = function () {
4206
+ var findUser$1 = function () {
3381
4207
  var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee3(_ref4) {
3382
4208
  var email = _ref4.email,
3383
4209
  password = _ref4.password;
@@ -3387,7 +4213,7 @@ var findUser = function () {
3387
4213
  switch (_context3.prev = _context3.next) {
3388
4214
  case 0:
3389
4215
  _context3.next = 2;
3390
- return findUser$1(email, password);
4216
+ return findUser(email, password);
3391
4217
 
3392
4218
  case 2:
3393
4219
  res = _context3.sent;
@@ -3417,9 +4243,9 @@ var findUser = function () {
3417
4243
 
3418
4244
  var user = /*#__PURE__*/Object.freeze({
3419
4245
  __proto__: null,
3420
- createUser: createUser,
3421
- updateUser: updateUser,
3422
- findUser: findUser
4246
+ createUser: createUser$1,
4247
+ updateUser: updateUser$1,
4248
+ findUser: findUser$1
3423
4249
  });
3424
4250
 
3425
4251
  var localStrategy = new Local.Strategy({
@@ -3427,7 +4253,7 @@ var localStrategy = new Local.Strategy({
3427
4253
  passwordField: 'password'
3428
4254
  }, function (email, password, done) {
3429
4255
 
3430
- findUser({ email: email, password: password }).then(function (user) {
4256
+ findUser$1({ email: email, password: password }).then(function (user) {
3431
4257
  done(null, user);
3432
4258
  }).catch(function (error) {
3433
4259
  done(error);
@@ -3439,9 +4265,9 @@ var passportLocal = /*#__PURE__*/Object.freeze({
3439
4265
  localStrategy: localStrategy
3440
4266
  });
3441
4267
 
3442
- var _this = undefined;
4268
+ var _this$4 = undefined;
3443
4269
 
3444
- var config = {
4270
+ var config$1 = {
3445
4271
  host: 'sanity-datasource.cluster-crao688bsrdh.us-east-1.rds.amazonaws.com',
3446
4272
  user: 'nasp',
3447
4273
  password: 'uRNkF9SkfXQs6AKK',
@@ -3455,7 +4281,7 @@ var getOccupation = function () {
3455
4281
  while (1) {
3456
4282
  switch (_context.prev = _context.next) {
3457
4283
  case 0:
3458
- db$1 = db(config);
4284
+ db$1 = db(config$1);
3459
4285
  query = '\n select name as label, id as value\n from occupation\n where type = ?\n ';
3460
4286
  _context.next = 4;
3461
4287
  return db$1.query(query, [type]);
@@ -3473,7 +4299,7 @@ var getOccupation = function () {
3473
4299
  return _context.stop();
3474
4300
  }
3475
4301
  }
3476
- }, _callee, _this);
4302
+ }, _callee, _this$4);
3477
4303
  }));
3478
4304
 
3479
4305
  return function getOccupation(_x) {
@@ -3488,7 +4314,7 @@ var getFieldsAndOptions = function () {
3488
4314
  while (1) {
3489
4315
  switch (_context2.prev = _context2.next) {
3490
4316
  case 0:
3491
- db$1 = db(config);
4317
+ db$1 = db(config$1);
3492
4318
  query = '\n select * \n from field\n where occupation_id = ?\n order by sorting\n ';
3493
4319
  _context2.next = 4;
3494
4320
  return db$1.query(query, [occupation]);
@@ -3536,7 +4362,7 @@ var getFieldsAndOptions = function () {
3536
4362
  return _context2.stop();
3537
4363
  }
3538
4364
  }
3539
- }, _callee2, _this);
4365
+ }, _callee2, _this$4);
3540
4366
  }));
3541
4367
 
3542
4368
  return function getFieldsAndOptions(_x2) {
@@ -3607,8 +4433,8 @@ var ProcessData = (function () {
3607
4433
  })();
3608
4434
 
3609
4435
  var LoginForm_1 = LoginForm;
3610
- var SignupForm_1 = SignupForm$1;
3611
- var ProfileForm_1 = SignupForm;
4436
+ var SignupForm_1 = SignupForm;
4437
+ var ProfileForm_1 = SignupForm$1;
3612
4438
  var AuthCookies_1 = authCookies;
3613
4439
  var AuthHooks_1 = hooks;
3614
4440
  var Iron_1 = iron;