@mjhls/mjh-framework 1.0.883-mwn-test-v4 → 1.0.884-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 (317) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD.js +9 -10
  3. package/dist/cjs/AD300x250.js +28 -29
  4. package/dist/cjs/AD300x250x600.js +28 -29
  5. package/dist/cjs/AD728x90.js +31 -32
  6. package/dist/cjs/ADFloatingFooter.js +30 -31
  7. package/dist/cjs/ADFooter.js +12 -13
  8. package/dist/cjs/ADGutter.js +30 -31
  9. package/dist/cjs/{ADInfeed-bce0ba07.js → ADInfeed-2e48af77.js} +13 -15
  10. package/dist/cjs/ADSkyscraper.js +30 -31
  11. package/dist/cjs/ADSponsoredResources.js +30 -31
  12. package/dist/cjs/ADWebcast.js +30 -31
  13. package/dist/cjs/ADWelcome.js +31 -32
  14. package/dist/cjs/{ADlgInfeed-950b414b.js → ADlgInfeed-c39c7131.js} +10 -11
  15. package/dist/cjs/AccordionPanel.js +27 -29
  16. package/dist/cjs/AdSlot.js +31 -32
  17. package/dist/cjs/AdSlotsProvider.js +909 -18
  18. package/dist/cjs/AlgoliaSearch.js +1306 -1490
  19. package/dist/cjs/AlphabeticList.js +23 -24
  20. package/dist/cjs/ArticleCarousel.js +19 -20
  21. package/dist/cjs/ArticleProgramLandingPage.js +60 -61
  22. package/dist/cjs/ArticleSeriesLandingPage.js +40 -41
  23. package/dist/cjs/ArticleSeriesListing.js +59 -60
  24. package/dist/cjs/Auth.js +1504 -680
  25. package/dist/cjs/AuthWrapper.js +419 -1637
  26. package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-02e827ae.js} +13 -14
  27. package/dist/cjs/Beam.js +6 -6
  28. package/dist/cjs/{BlockContent-9ebd251f.js → BlockContent-091a991f.js} +55 -56
  29. package/dist/cjs/Breadcrumbs.js +25 -27
  30. package/dist/cjs/CMEDeck.js +81 -81
  31. package/dist/cjs/Column1.js +11 -14
  32. package/dist/cjs/Column2.js +31 -34
  33. package/dist/cjs/Column3.js +57 -60
  34. package/dist/cjs/ConferenceArticleCard.js +40 -41
  35. package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
  36. package/dist/cjs/DeckContent.js +101 -105
  37. package/dist/cjs/DeckQueue.js +87 -91
  38. package/dist/cjs/{Dfp-9be904d5.js → Dfp-14d2455c.js} +32 -33
  39. package/dist/cjs/EventsDeck.js +150 -157
  40. package/dist/cjs/ExternalResources.js +78 -79
  41. package/dist/cjs/Feature.js +27 -29
  42. package/dist/cjs/ForbesHero.js +40 -41
  43. package/dist/cjs/GridContent.js +231 -236
  44. package/dist/cjs/GridHero.js +42 -43
  45. package/dist/cjs/GroupDeck.js +57 -58
  46. package/dist/cjs/HamMagazine.js +139 -144
  47. package/dist/cjs/Header.js +12 -14
  48. package/dist/cjs/Hero.js +15 -16
  49. package/dist/cjs/HighlightenVideo.js +17 -18
  50. package/dist/cjs/HorizontalArticleListing.js +71 -72
  51. package/dist/cjs/HorizontalHero.js +28 -29
  52. package/dist/cjs/IssueContentDeck.js +71 -76
  53. package/dist/cjs/IssueDeck.js +70 -75
  54. package/dist/cjs/IssueLanding.js +93 -94
  55. package/dist/cjs/KMTracker.js +15 -15
  56. package/dist/cjs/LeftNav.js +37 -39
  57. package/dist/cjs/MasterDeck.js +78 -79
  58. package/dist/cjs/MediaSeriesLanding.js +1138 -1233
  59. package/dist/cjs/NavDvm.js +72 -77
  60. package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
  61. package/dist/cjs/NavMagazine.js +146 -151
  62. package/dist/cjs/NavNative.js +137 -145
  63. package/dist/cjs/OncliveHero.js +22 -22
  64. package/dist/cjs/OncliveLargeHero.js +70 -71
  65. package/dist/cjs/PageFilter.js +12 -13
  66. package/dist/cjs/PartnerDetailListing.js +1463 -289
  67. package/dist/cjs/PdfDownload.js +9 -10
  68. package/dist/cjs/PopUpModal.js +17 -19
  69. package/dist/cjs/PubSection.js +40 -41
  70. package/dist/cjs/PubToc.js +13 -14
  71. package/dist/cjs/PublicationDeck.js +65 -70
  72. package/dist/cjs/PublicationLanding.js +133 -141
  73. package/dist/cjs/QueueDeckExpanded.js +308 -308
  74. package/dist/cjs/RecentNews.js +22 -23
  75. package/dist/cjs/RelatedContent.js +57 -58
  76. package/dist/cjs/RelatedTopicsDropdown.js +29 -32
  77. package/dist/cjs/RolesDeck.js +27 -32
  78. package/dist/cjs/Schema.js +100 -0
  79. package/dist/cjs/Search.js +16 -20
  80. package/dist/cjs/Segment.js +4 -4
  81. package/dist/cjs/SeriesListingDeck.js +36 -36
  82. package/dist/cjs/{SeriesSlider-ba0c5d1a.js → SeriesSlider-49b81b0b.js} +39 -40
  83. package/dist/cjs/SetCookie.js +1 -1
  84. package/dist/cjs/SideFooter.js +36 -37
  85. package/dist/cjs/SocialIcons.js +9 -10
  86. package/dist/cjs/{SocialSearchComponent-4942ddfc.js → SocialSearchComponent-e8477ca3.js} +36 -40
  87. package/dist/cjs/SocialShare.js +29 -31
  88. package/dist/cjs/TaxonomyCard.js +61 -66
  89. package/dist/cjs/TaxonomyDescription.js +53 -54
  90. package/dist/cjs/TemplateNormal.js +72 -73
  91. package/dist/cjs/ThumbnailCard.js +24 -26
  92. package/dist/cjs/Ustream.js +79 -71
  93. package/dist/cjs/VerticalHero.js +19 -20
  94. package/dist/cjs/VideoProgramLandingPage.js +74 -78
  95. package/dist/cjs/VideoSeriesCard.js +32 -33
  96. package/dist/cjs/VideoSeriesFilter.js +16 -16
  97. package/dist/cjs/VideoSeriesLandingPage.js +49 -50
  98. package/dist/cjs/VideoSeriesListing.js +76 -77
  99. package/dist/cjs/View.js +264 -347
  100. package/dist/cjs/YahooHero.js +39 -40
  101. package/dist/cjs/YoutubeGroup.js +67 -68
  102. package/dist/cjs/{_is-array-54228b29.js → _is-array-aa52fa1e.js} +6 -6
  103. package/dist/cjs/{_iter-detect-b1df62f0.js → _iter-detect-05795553.js} +7 -7
  104. package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
  105. package/dist/cjs/{_object-sap-d1978572.js → _object-sap-171b9ea5.js} +1 -1
  106. package/dist/cjs/{_object-to-array-ce86cae7.js → _object-to-array-9bac8737.js} +2 -2
  107. package/dist/cjs/{asyncToGenerator-77821af0.js → asyncToGenerator-df19209d.js} +30 -30
  108. package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
  109. package/dist/cjs/{core.get-iterator-method-5643aa10.js → core.get-iterator-method-f3c44602.js} +35 -35
  110. package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
  111. package/dist/cjs/{define-property-e8404b64.js → define-property-21887c62.js} +6 -6
  112. package/dist/cjs/{defineProperty-9673846a.js → defineProperty-77a37684.js} +1 -1
  113. package/dist/cjs/{entities-df1aed86.js → entities-310b46ee.js} +1 -5
  114. package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
  115. package/dist/cjs/{extends-7c86182f.js → extends-eed4f016.js} +7 -7
  116. package/dist/cjs/faundadb.js +19 -19
  117. package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
  118. package/dist/cjs/getRelatedArticle.js +16 -16
  119. package/dist/cjs/getRootDocGroup.js +6 -6
  120. package/dist/cjs/getSerializers.js +43 -43
  121. package/dist/cjs/getSeriesDetail.js +3 -0
  122. package/dist/cjs/{getTargeting-9d509319.js → getTargeting-8874437b.js} +12 -12
  123. package/dist/cjs/getTargeting.js +6 -6
  124. package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +8 -2
  125. package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
  126. package/dist/cjs/{index-af49d679.js → index-396089c0.js} +1044 -1070
  127. package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
  128. package/dist/cjs/{index-fc2f1ca2.js → index-98e01cb9.js} +12 -13
  129. package/dist/cjs/{index-d48b231c.js → index-be0c82be.js} +25 -31
  130. package/dist/cjs/{index-50be6759.js → index-e2e62963.js} +10 -26
  131. package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
  132. package/dist/cjs/{index.esm-2bb721c8.js → index.esm-4d410430.js} +21 -21
  133. package/dist/cjs/{index.esm-d81454e7.js → index.esm-90433435.js} +18 -6
  134. package/dist/cjs/{index.esm-c1e16606.js → index.esm-e32d3e8e.js} +7 -4
  135. package/dist/cjs/{index.esm-88593816.js → index.esm-ff47db6f.js} +15 -8
  136. package/dist/cjs/index.js +166 -171
  137. package/dist/cjs/inherits-8d29278d.js +110 -0
  138. package/dist/cjs/{inherits-de66ea16.js → inherits-cba9c846.js} +19 -19
  139. package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
  140. package/dist/cjs/{keys-e982b3fa.js → keys-d207942e.js} +6 -6
  141. package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
  142. package/dist/cjs/main-02daeefe.js +862 -0
  143. package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
  144. package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
  145. package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
  146. package/dist/cjs/{slicedToArray-067dd3bc.js → slicedToArray-f6d4eaa8.js} +12 -12
  147. package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
  148. package/dist/cjs/{stringify-f7a37a8d.js → stringify-bbc68047.js} +5 -5
  149. package/dist/cjs/timeDifferenceCalc.js +1 -1
  150. package/dist/cjs/{toConsumableArray-d7797c2b.js → toConsumableArray-c9b8a0d0.js} +7 -7
  151. package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
  152. package/dist/cjs/{typeof-567e31ff.js → typeof-5f52cf64.js} +35 -35
  153. package/dist/cjs/urlFor.js +6 -6
  154. package/dist/cjs/{ustream-api-3819e4aa.js → ustream-api-9ebe112f.js} +4 -4
  155. package/dist/cjs/{util-93a37fd0.js → util-f2c1b65b.js} +1 -12
  156. package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
  157. package/dist/cjs/{web.dom.iterable-d98303e0.js → web.dom.iterable-e34bf324.js} +2 -2
  158. package/dist/esm/AD.js +1 -1
  159. package/dist/esm/AD300x250.js +22 -22
  160. package/dist/esm/AD300x250x600.js +22 -22
  161. package/dist/esm/AD728x90.js +25 -25
  162. package/dist/esm/ADFloatingFooter.js +21 -21
  163. package/dist/esm/ADFooter.js +4 -4
  164. package/dist/esm/ADGutter.js +21 -21
  165. package/dist/esm/{ADInfeed-0a55cd2d.js → ADInfeed-8a038df9.js} +6 -6
  166. package/dist/esm/ADSkyscraper.js +21 -21
  167. package/dist/esm/ADSponsoredResources.js +21 -21
  168. package/dist/esm/ADWebcast.js +21 -21
  169. package/dist/esm/ADWelcome.js +18 -18
  170. package/dist/esm/{ADlgInfeed-013e1f4a.js → ADlgInfeed-cee95aa2.js} +4 -4
  171. package/dist/esm/AccordionPanel.js +6 -6
  172. package/dist/esm/AdSlot.js +20 -20
  173. package/dist/esm/AdSlotsProvider.js +906 -14
  174. package/dist/esm/AlgoliaSearch.js +534 -717
  175. package/dist/esm/AlphabeticList.js +8 -8
  176. package/dist/esm/ArticleCarousel.js +13 -13
  177. package/dist/esm/ArticleProgramLandingPage.js +48 -48
  178. package/dist/esm/ArticleSeriesLandingPage.js +30 -30
  179. package/dist/esm/ArticleSeriesListing.js +32 -32
  180. package/dist/esm/Auth.js +1419 -591
  181. package/dist/esm/AuthWrapper.js +392 -1609
  182. package/dist/esm/{AuthorComponent-11adff02.js → AuthorComponent-e6f95c2f.js} +1 -1
  183. package/dist/esm/Beam.js +6 -6
  184. package/dist/esm/{BlockContent-1e73bd2c.js → BlockContent-e9b4ddcf.js} +34 -34
  185. package/dist/esm/Breadcrumbs.js +5 -5
  186. package/dist/esm/CMEDeck.js +22 -22
  187. package/dist/esm/Column1.js +4 -4
  188. package/dist/esm/Column2.js +19 -19
  189. package/dist/esm/Column3.js +37 -37
  190. package/dist/esm/ConferenceArticleCard.js +25 -25
  191. package/dist/esm/DeckContent.js +55 -55
  192. package/dist/esm/DeckQueue.js +47 -47
  193. package/dist/esm/{Dfp-102f0beb.js → Dfp-f867d061.js} +13 -13
  194. package/dist/esm/EventsDeck.js +65 -65
  195. package/dist/esm/ExternalResources.js +46 -46
  196. package/dist/esm/Feature.js +7 -7
  197. package/dist/esm/ForbesHero.js +10 -10
  198. package/dist/esm/GridContent.js +88 -88
  199. package/dist/esm/GridHero.js +11 -11
  200. package/dist/esm/GroupDeck.js +12 -12
  201. package/dist/esm/HamMagazine.js +37 -37
  202. package/dist/esm/Hero.js +7 -7
  203. package/dist/esm/HighlightenVideo.js +2 -2
  204. package/dist/esm/HorizontalArticleListing.js +46 -46
  205. package/dist/esm/HorizontalHero.js +8 -8
  206. package/dist/esm/IssueContentDeck.js +25 -25
  207. package/dist/esm/IssueDeck.js +35 -35
  208. package/dist/esm/IssueLanding.js +82 -82
  209. package/dist/esm/KMTracker.js +15 -15
  210. package/dist/esm/LeftNav.js +20 -20
  211. package/dist/esm/MasterDeck.js +43 -43
  212. package/dist/esm/MediaSeriesLanding.js +660 -752
  213. package/dist/esm/NavDvm.js +14 -14
  214. package/dist/esm/NavMagazine.js +42 -42
  215. package/dist/esm/NavNative.js +41 -41
  216. package/dist/esm/OncliveHero.js +8 -7
  217. package/dist/esm/OncliveLargeHero.js +11 -11
  218. package/dist/esm/PageFilter.js +4 -4
  219. package/dist/esm/PartnerDetailListing.js +1371 -196
  220. package/dist/esm/PdfDownload.js +2 -2
  221. package/dist/esm/PopUpModal.js +4 -4
  222. package/dist/esm/PubSection.js +32 -32
  223. package/dist/esm/PubToc.js +6 -6
  224. package/dist/esm/PublicationDeck.js +27 -27
  225. package/dist/esm/PublicationLanding.js +74 -78
  226. package/dist/esm/QueueDeckExpanded.js +36 -36
  227. package/dist/esm/RecentNews.js +4 -4
  228. package/dist/esm/RelatedContent.js +38 -38
  229. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  230. package/dist/esm/RolesDeck.js +12 -12
  231. package/dist/esm/Schema.js +95 -0
  232. package/dist/esm/Search.js +6 -6
  233. package/dist/esm/Segment.js +4 -4
  234. package/dist/esm/SeriesListingDeck.js +18 -18
  235. package/dist/esm/{SeriesSlider-45adb8dc.js → SeriesSlider-ce19fa25.js} +14 -14
  236. package/dist/esm/SetCookie.js +1 -1
  237. package/dist/esm/SideFooter.js +15 -15
  238. package/dist/esm/{SocialSearchComponent-8e0fcf66.js → SocialSearchComponent-b5be0e6c.js} +12 -12
  239. package/dist/esm/TaxonomyCard.js +27 -27
  240. package/dist/esm/TaxonomyDescription.js +44 -44
  241. package/dist/esm/TemplateNormal.js +48 -48
  242. package/dist/esm/ThumbnailCard.js +10 -10
  243. package/dist/esm/Ustream.js +72 -63
  244. package/dist/esm/VerticalHero.js +6 -6
  245. package/dist/esm/VideoProgramLandingPage.js +52 -52
  246. package/dist/esm/VideoSeriesCard.js +14 -14
  247. package/dist/esm/VideoSeriesFilter.js +7 -7
  248. package/dist/esm/VideoSeriesLandingPage.js +36 -36
  249. package/dist/esm/VideoSeriesListing.js +33 -33
  250. package/dist/esm/View.js +91 -170
  251. package/dist/esm/YahooHero.js +13 -13
  252. package/dist/esm/YoutubeGroup.js +21 -21
  253. package/dist/esm/{_is-array-8d21b9e3.js → _is-array-4df618a6.js} +6 -6
  254. package/dist/esm/{_iter-detect-98db3b07.js → _iter-detect-130ee549.js} +7 -7
  255. package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
  256. package/dist/esm/{_object-sap-7cee6f84.js → _object-sap-8b8ea5a9.js} +1 -1
  257. package/dist/esm/{_object-to-array-2300e51b.js → _object-to-array-c54dd835.js} +2 -2
  258. package/dist/esm/{asyncToGenerator-5ef104a7.js → asyncToGenerator-7bf8bc4d.js} +30 -30
  259. package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-83f53e4e.js} +4 -5
  260. package/dist/esm/{core.get-iterator-method-ea258bb1.js → core.get-iterator-method-86d4db69.js} +36 -36
  261. package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
  262. package/dist/esm/define-property-6d26cb48.js +18 -0
  263. package/dist/esm/{defineProperty-8c30428f.js → defineProperty-d7d9b577.js} +1 -1
  264. package/dist/esm/{entities-6d9154b4.js → entities-7cc3bf45.js} +1 -5
  265. package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
  266. package/dist/esm/{extends-6d8e3924.js → extends-5b1796d4.js} +7 -7
  267. package/dist/esm/faundadb.js +5 -5
  268. package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
  269. package/dist/esm/getRelatedArticle.js +11 -11
  270. package/dist/esm/getRootDocGroup.js +4 -4
  271. package/dist/esm/getSerializers.js +43 -43
  272. package/dist/esm/getSeriesDetail.js +3 -0
  273. package/dist/esm/{getTargeting-4061f839.js → getTargeting-277c801e.js} +11 -11
  274. package/dist/esm/getTargeting.js +6 -6
  275. package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
  276. package/dist/esm/{index-d7489d39.js → index-0e04b7d7.js} +618 -634
  277. package/dist/esm/{index-f0fc23eb.js → index-41a678ea.js} +4 -4
  278. package/dist/esm/{index-755f2cc2.js → index-5f7e79e7.js} +6 -6
  279. package/dist/esm/{index-3f5c03b2.js → index-73819142.js} +25 -31
  280. package/dist/esm/{index-98ca9cec.js → index-aaa2dae0.js} +11 -26
  281. package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
  282. package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
  283. package/dist/esm/{index.esm-eb1e8e80.js → index.esm-29e48d38.js} +18 -7
  284. package/dist/esm/{index.esm-28aafed6.js → index.esm-cf08bf18.js} +15 -8
  285. package/dist/esm/{index.esm-9b042655.js → index.esm-f8aaeeeb.js} +7 -4
  286. package/dist/esm/{index.esm-37268dca.js → index.esm-fd746768.js} +5 -4
  287. package/dist/esm/index.js +123 -126
  288. package/dist/esm/{inherits-a6ba2ec4.js → inherits-2409637d.js} +18 -18
  289. package/dist/esm/inherits-77d5e4fc.js +101 -0
  290. package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
  291. package/dist/esm/{keys-31dcdb31.js → keys-69989821.js} +6 -6
  292. package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
  293. package/dist/esm/main-c0612122.js +851 -0
  294. package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
  295. package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
  296. package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-a7d5c5c7.js} +16 -16
  297. package/dist/esm/{slicedToArray-6ebcbfea.js → slicedToArray-67a08c9c.js} +12 -12
  298. package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
  299. package/dist/esm/stringify-70b72959.js +15 -0
  300. package/dist/esm/timeDifferenceCalc.js +1 -1
  301. package/dist/esm/{toConsumableArray-f7074d7c.js → toConsumableArray-32282905.js} +7 -7
  302. package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
  303. package/dist/esm/{typeof-e9fc0c5d.js → typeof-c05a82ba.js} +35 -35
  304. package/dist/esm/urlFor.js +4 -4
  305. package/dist/esm/{ustream-api-d3714624.js → ustream-api-4c4fe0ba.js} +4 -4
  306. package/dist/esm/{util-8ed16d48.js → util-7700fc59.js} +1 -12
  307. package/dist/esm/{web.dom.iterable-ab4dea5c.js → web.dom.iterable-f8f967cd.js} +2 -2
  308. package/package.json +111 -111
  309. package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
  310. package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
  311. package/dist/cjs/main-f1c77adb.js +0 -973
  312. package/dist/cjs/typeof-1358762e.js +0 -33
  313. package/dist/esm/define-property-5f1bda73.js +0 -18
  314. package/dist/esm/defineProperty-23a8f8cd.js +0 -68
  315. package/dist/esm/main-1894c974.js +0 -961
  316. package/dist/esm/stringify-2b084bee.js +0 -15
  317. package/dist/esm/typeof-2f07d0e8.js +0 -30
package/dist/esm/Auth.js CHANGED
@@ -1,22 +1,21 @@
1
- import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-5ef104a7.js';
2
- import { _ as _JSON$stringify } from './stringify-2b084bee.js';
3
- import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-6ebcbfea.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-6d8e3924.js';
7
- import { Form, Col, Button, Spinner } from 'react-bootstrap';
8
- import useSWR from 'swr';
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';
13
+ import { Col, Form, Button, Spinner } from 'react-bootstrap';
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-8ed16d48.js';
13
- import { c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
14
- import { m as md5 } from './md5-4e42248e.js';
15
- import './core.get-iterator-method-ea258bb1.js';
16
- import './web.dom.iterable-ab4dea5c.js';
17
- import './_library-528f1934.js';
18
- import './_iter-detect-98db3b07.js';
19
- import './_object-pie-133f504a.js';
18
+ import { m as md5 } from './md5-9be0e905.js';
20
19
 
21
20
  var returnFormField = function returnFormField(_ref) {
22
21
  var name = _ref.name,
@@ -134,7 +133,1056 @@ var returnFormField = function returnFormField(_ref) {
134
133
  }
135
134
  };
136
135
 
137
- 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;
138
1186
 
139
1187
  var dataHandler = function () {
140
1188
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(api_url, body) {
@@ -200,7 +1248,7 @@ var dataHandler = function () {
200
1248
  return _context.stop();
201
1249
  }
202
1250
  }
203
- }, _callee, _this$4, [[0, 20]]);
1251
+ }, _callee, _this, [[0, 20]]);
204
1252
  }));
205
1253
 
206
1254
  return function dataHandler(_x, _x2) {
@@ -396,9 +1444,9 @@ var countries = ["United States", "Afghanistan", "Albania", "Algeria", "American
396
1444
 
397
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'];
398
1446
 
399
- var _this$3 = undefined;
1447
+ var _this$1 = undefined;
400
1448
 
401
- var SignupForm$1 = function SignupForm(props) {
1449
+ var SignupForm = function SignupForm(props) {
402
1450
  var handleSubmit = function () {
403
1451
  var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee3(e) {
404
1452
  var formData, body, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, key, res;
@@ -559,7 +1607,7 @@ var SignupForm$1 = function SignupForm(props) {
559
1607
  return _context.stop();
560
1608
  }
561
1609
  }
562
- }, _callee, _this$3);
1610
+ }, _callee, _this$1);
563
1611
  }));
564
1612
 
565
1613
  return function loadInitData() {
@@ -626,7 +1674,7 @@ var SignupForm$1 = function SignupForm(props) {
626
1674
  return _context2.stop();
627
1675
  }
628
1676
  }
629
- }, _callee2, _this$3);
1677
+ }, _callee2, _this$1);
630
1678
  }));
631
1679
 
632
1680
  return function handleOccupationChanged(_x) {
@@ -776,7 +1824,7 @@ var SignupForm$1 = function SignupForm(props) {
776
1824
 
777
1825
  var _this$2 = undefined;
778
1826
 
779
- var SignupForm = function SignupForm(props) {
1827
+ var SignupForm$1 = function SignupForm(props) {
780
1828
  var handleSubmit = function () {
781
1829
  var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee3(e) {
782
1830
  var formData, body, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, key, res;
@@ -1311,10 +2359,10 @@ var iron = /*#__PURE__*/Object.freeze({
1311
2359
  getSession: getSession
1312
2360
  });
1313
2361
 
1314
- var toStr$5 = Object.prototype.toString;
2362
+ var toStr = Object.prototype.toString;
1315
2363
 
1316
2364
  var isArguments = function isArguments(value) {
1317
- var str = toStr$5.call(value);
2365
+ var str = toStr.call(value);
1318
2366
  var isArgs = str === '[object Arguments]';
1319
2367
  if (!isArgs) {
1320
2368
  isArgs = str !== '[object Array]' &&
@@ -1322,16 +2370,16 @@ var isArguments = function isArguments(value) {
1322
2370
  typeof value === 'object' &&
1323
2371
  typeof value.length === 'number' &&
1324
2372
  value.length >= 0 &&
1325
- toStr$5.call(value.callee) === '[object Function]';
2373
+ toStr.call(value.callee) === '[object Function]';
1326
2374
  }
1327
2375
  return isArgs;
1328
2376
  };
1329
2377
 
1330
- var keysShim$1;
2378
+ var keysShim;
1331
2379
  if (!Object.keys) {
1332
2380
  // modified from https://github.com/es-shims/es5-shim
1333
2381
  var has$1 = Object.prototype.hasOwnProperty;
1334
- var toStr$4 = Object.prototype.toString;
2382
+ var toStr$1 = Object.prototype.toString;
1335
2383
  var isArgs = isArguments; // eslint-disable-line global-require
1336
2384
  var isEnumerable = Object.prototype.propertyIsEnumerable;
1337
2385
  var hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString');
@@ -1404,11 +2452,11 @@ if (!Object.keys) {
1404
2452
  }
1405
2453
  };
1406
2454
 
1407
- keysShim$1 = function keys(object) {
2455
+ keysShim = function keys(object) {
1408
2456
  var isObject = object !== null && typeof object === 'object';
1409
- var isFunction = toStr$4.call(object) === '[object Function]';
2457
+ var isFunction = toStr$1.call(object) === '[object Function]';
1410
2458
  var isArguments = isArgs(object);
1411
- var isString = isObject && toStr$4.call(object) === '[object String]';
2459
+ var isString = isObject && toStr$1.call(object) === '[object String]';
1412
2460
  var theKeys = [];
1413
2461
 
1414
2462
  if (!isObject && !isFunction && !isArguments) {
@@ -1446,17 +2494,17 @@ if (!Object.keys) {
1446
2494
  return theKeys;
1447
2495
  };
1448
2496
  }
1449
- var implementation$3 = keysShim$1;
2497
+ var implementation = keysShim;
1450
2498
 
1451
- var slice$1 = Array.prototype.slice;
2499
+ var slice = Array.prototype.slice;
1452
2500
 
1453
2501
 
1454
2502
  var origKeys = Object.keys;
1455
- var keysShim = origKeys ? function keys(o) { return origKeys(o); } : implementation$3;
2503
+ var keysShim$1 = origKeys ? function keys(o) { return origKeys(o); } : implementation;
1456
2504
 
1457
2505
  var originalKeys = Object.keys;
1458
2506
 
1459
- keysShim.shim = function shimObjectKeys() {
2507
+ keysShim$1.shim = function shimObjectKeys() {
1460
2508
  if (Object.keys) {
1461
2509
  var keysWorksWithArguments = (function () {
1462
2510
  // Safari 5.0 bug
@@ -1466,27 +2514,27 @@ keysShim.shim = function shimObjectKeys() {
1466
2514
  if (!keysWorksWithArguments) {
1467
2515
  Object.keys = function keys(object) { // eslint-disable-line func-name-matching
1468
2516
  if (isArguments(object)) {
1469
- return originalKeys(slice$1.call(object));
2517
+ return originalKeys(slice.call(object));
1470
2518
  }
1471
2519
  return originalKeys(object);
1472
2520
  };
1473
2521
  }
1474
2522
  } else {
1475
- Object.keys = keysShim;
2523
+ Object.keys = keysShim$1;
1476
2524
  }
1477
- return Object.keys || keysShim;
2525
+ return Object.keys || keysShim$1;
1478
2526
  };
1479
2527
 
1480
- var objectKeys = keysShim;
2528
+ var objectKeys = keysShim$1;
1481
2529
 
1482
- var hasSymbols$4 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
2530
+ var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
1483
2531
 
1484
- var toStr$3 = Object.prototype.toString;
2532
+ var toStr$2 = Object.prototype.toString;
1485
2533
  var concat = Array.prototype.concat;
1486
2534
  var origDefineProperty = Object.defineProperty;
1487
2535
 
1488
2536
  var isFunction = function (fn) {
1489
- return typeof fn === 'function' && toStr$3.call(fn) === '[object Function]';
2537
+ return typeof fn === 'function' && toStr$2.call(fn) === '[object Function]';
1490
2538
  };
1491
2539
 
1492
2540
  var arePropertyDescriptorsSupported = function () {
@@ -1523,7 +2571,7 @@ var defineProperty = function (object, name, value, predicate) {
1523
2571
  var defineProperties = function (object, map) {
1524
2572
  var predicates = arguments.length > 2 ? arguments[2] : {};
1525
2573
  var props = objectKeys(map);
1526
- if (hasSymbols$4) {
2574
+ if (hasSymbols) {
1527
2575
  props = concat.call(props, Object.getOwnPropertySymbols(map));
1528
2576
  }
1529
2577
  for (var i = 0; i < props.length; i += 1) {
@@ -1535,59 +2583,6 @@ defineProperties.supportsDescriptors = !!supportsDescriptors;
1535
2583
 
1536
2584
  var defineProperties_1 = defineProperties;
1537
2585
 
1538
- /* eslint no-invalid-this: 1 */
1539
-
1540
- var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
1541
- var slice = Array.prototype.slice;
1542
- var toStr$2 = Object.prototype.toString;
1543
- var funcType = '[object Function]';
1544
-
1545
- var implementation$2 = function bind(that) {
1546
- var target = this;
1547
- if (typeof target !== 'function' || toStr$2.call(target) !== funcType) {
1548
- throw new TypeError(ERROR_MESSAGE + target);
1549
- }
1550
- var args = slice.call(arguments, 1);
1551
-
1552
- var bound;
1553
- var binder = function () {
1554
- if (this instanceof bound) {
1555
- var result = target.apply(
1556
- this,
1557
- args.concat(slice.call(arguments))
1558
- );
1559
- if (Object(result) === result) {
1560
- return result;
1561
- }
1562
- return this;
1563
- } else {
1564
- return target.apply(
1565
- that,
1566
- args.concat(slice.call(arguments))
1567
- );
1568
- }
1569
- };
1570
-
1571
- var boundLength = Math.max(0, target.length - args.length);
1572
- var boundArgs = [];
1573
- for (var i = 0; i < boundLength; i++) {
1574
- boundArgs.push('$' + i);
1575
- }
1576
-
1577
- bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
1578
-
1579
- if (target.prototype) {
1580
- var Empty = function Empty() {};
1581
- Empty.prototype = target.prototype;
1582
- bound.prototype = new Empty();
1583
- Empty.prototype = null;
1584
- }
1585
-
1586
- return bound;
1587
- };
1588
-
1589
- var functionBind = Function.prototype.bind || implementation$2;
1590
-
1591
2586
  /* eslint complexity: [2, 18], max-statements: [2, 33] */
1592
2587
  var shams = function hasSymbols() {
1593
2588
  if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
@@ -1611,7 +2606,7 @@ var shams = function hasSymbols() {
1611
2606
 
1612
2607
  var symVal = 42;
1613
2608
  obj[sym] = symVal;
1614
- 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
1615
2610
  if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
1616
2611
 
1617
2612
  if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
@@ -1629,10 +2624,10 @@ var shams = function hasSymbols() {
1629
2624
  return true;
1630
2625
  };
1631
2626
 
1632
- var origSymbol = typeof Symbol !== 'undefined' && Symbol;
2627
+ var origSymbol = commonjsGlobal.Symbol;
1633
2628
 
1634
2629
 
1635
- var hasSymbols$3 = function hasNativeSymbols() {
2630
+ var hasSymbols$1 = function hasNativeSymbols() {
1636
2631
  if (typeof origSymbol !== 'function') { return false; }
1637
2632
  if (typeof Symbol !== 'function') { return false; }
1638
2633
  if (typeof origSymbol('foo') !== 'symbol') { return false; }
@@ -1641,34 +2636,79 @@ var hasSymbols$3 = function hasNativeSymbols() {
1641
2636
  return shams();
1642
2637
  };
1643
2638
 
1644
- var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
2639
+ /* eslint no-invalid-this: 1 */
1645
2640
 
1646
- 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]';
1647
2645
 
1648
- var $SyntaxError$1 = SyntaxError;
1649
- var $Function = Function;
1650
- 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);
1651
2652
 
1652
- // eslint-disable-next-line consistent-return
1653
- var getEvalledConstructor = function (expressionSyntax) {
1654
- try {
1655
- return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
1656
- } 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;
1657
2688
  };
1658
2689
 
1659
- var $gOPD$2 = Object.getOwnPropertyDescriptor;
1660
- 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) {
1661
2703
  try {
1662
- $gOPD$2({}, '');
2704
+ $gOPD({}, '');
1663
2705
  } catch (e) {
1664
- $gOPD$2 = null; // this is IE 8, which has a broken gOPD
2706
+ $gOPD = null; // this is IE 8, which has a broken gOPD
1665
2707
  }
1666
2708
  }
1667
2709
 
1668
- var throwTypeError = function () {
1669
- throw new $TypeError$5();
1670
- };
1671
- var ThrowTypeError = $gOPD$2
2710
+ var throwTypeError = function () { throw new $TypeError(); };
2711
+ var ThrowTypeError = $gOPD
1672
2712
  ? (function () {
1673
2713
  try {
1674
2714
  // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
@@ -1677,7 +2717,7 @@ var ThrowTypeError = $gOPD$2
1677
2717
  } catch (calleeThrows) {
1678
2718
  try {
1679
2719
  // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
1680
- return $gOPD$2(arguments, 'callee').get;
2720
+ return $gOPD(arguments, 'callee').get;
1681
2721
  } catch (gOPDthrows) {
1682
2722
  return throwTypeError;
1683
2723
  }
@@ -1685,354 +2725,206 @@ var ThrowTypeError = $gOPD$2
1685
2725
  }())
1686
2726
  : throwTypeError;
1687
2727
 
1688
- var hasSymbols$2 = hasSymbols$3();
2728
+ var hasSymbols$2 = hasSymbols$1();
1689
2729
 
1690
2730
  var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
1691
-
1692
- var needsEval = {};
2731
+ var generatorFunction = undefined$1;
2732
+ var asyncFunction = undefined$1;
2733
+ var asyncGenFunction = undefined$1;
1693
2734
 
1694
2735
  var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
1695
2736
 
1696
2737
  var INTRINSICS = {
1697
- '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
1698
2738
  '%Array%': Array,
1699
2739
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
2740
+ '%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer.prototype,
1700
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,
1701
2747
  '%AsyncFromSyncIteratorPrototype%': undefined$1,
1702
- '%AsyncFunction%': needsEval,
1703
- '%AsyncGenerator%': needsEval,
1704
- '%AsyncGeneratorFunction%': needsEval,
1705
- '%AsyncIteratorPrototype%': needsEval,
2748
+ '%AsyncFunction%': asyncFunction,
2749
+ '%AsyncFunctionPrototype%': undefined$1,
2750
+ '%AsyncGenerator%': undefined$1,
2751
+ '%AsyncGeneratorFunction%': asyncGenFunction,
2752
+ '%AsyncGeneratorPrototype%': undefined$1,
2753
+ '%AsyncIteratorPrototype%': undefined$1,
1706
2754
  '%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
1707
- '%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
1708
2755
  '%Boolean%': Boolean,
2756
+ '%BooleanPrototype%': Boolean.prototype,
1709
2757
  '%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
2758
+ '%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$1 : DataView.prototype,
1710
2759
  '%Date%': Date,
2760
+ '%DatePrototype%': Date.prototype,
1711
2761
  '%decodeURI%': decodeURI,
1712
2762
  '%decodeURIComponent%': decodeURIComponent,
1713
2763
  '%encodeURI%': encodeURI,
1714
2764
  '%encodeURIComponent%': encodeURIComponent,
1715
2765
  '%Error%': Error,
2766
+ '%ErrorPrototype%': Error.prototype,
1716
2767
  '%eval%': eval, // eslint-disable-line no-eval
1717
2768
  '%EvalError%': EvalError,
2769
+ '%EvalErrorPrototype%': EvalError.prototype,
1718
2770
  '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
2771
+ '%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array.prototype,
1719
2772
  '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
1720
- '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
1721
- '%Function%': $Function,
1722
- '%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,
1723
2779
  '%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
2780
+ '%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array.prototype,
1724
2781
  '%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
2782
+ '%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$1 : Int8Array.prototype,
1725
2783
  '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
2784
+ '%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array.prototype,
1726
2785
  '%isFinite%': isFinite,
1727
2786
  '%isNaN%': isNaN,
1728
2787
  '%IteratorPrototype%': hasSymbols$2 ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
1729
2788
  '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
2789
+ '%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$1,
1730
2790
  '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
1731
2791
  '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
2792
+ '%MapPrototype%': typeof Map === 'undefined' ? undefined$1 : Map.prototype,
1732
2793
  '%Math%': Math,
1733
2794
  '%Number%': Number,
2795
+ '%NumberPrototype%': Number.prototype,
1734
2796
  '%Object%': Object,
2797
+ '%ObjectPrototype%': Object.prototype,
2798
+ '%ObjProto_toString%': Object.prototype.toString,
2799
+ '%ObjProto_valueOf%': Object.prototype.valueOf,
1735
2800
  '%parseFloat%': parseFloat,
1736
2801
  '%parseInt%': parseInt,
1737
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,
1738
2808
  '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
1739
2809
  '%RangeError%': RangeError,
2810
+ '%RangeErrorPrototype%': RangeError.prototype,
1740
2811
  '%ReferenceError%': ReferenceError,
2812
+ '%ReferenceErrorPrototype%': ReferenceError.prototype,
1741
2813
  '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
1742
2814
  '%RegExp%': RegExp,
2815
+ '%RegExpPrototype%': RegExp.prototype,
1743
2816
  '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
1744
2817
  '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
2818
+ '%SetPrototype%': typeof Set === 'undefined' ? undefined$1 : Set.prototype,
1745
2819
  '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
2820
+ '%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer.prototype,
1746
2821
  '%String%': String,
1747
2822
  '%StringIteratorPrototype%': hasSymbols$2 ? getProto(''[Symbol.iterator]()) : undefined$1,
2823
+ '%StringPrototype%': String.prototype,
1748
2824
  '%Symbol%': hasSymbols$2 ? Symbol : undefined$1,
1749
- '%SyntaxError%': $SyntaxError$1,
2825
+ '%SymbolPrototype%': hasSymbols$2 ? Symbol.prototype : undefined$1,
2826
+ '%SyntaxError%': SyntaxError,
2827
+ '%SyntaxErrorPrototype%': SyntaxError.prototype,
1750
2828
  '%ThrowTypeError%': ThrowTypeError,
1751
2829
  '%TypedArray%': TypedArray,
1752
- '%TypeError%': $TypeError$5,
2830
+ '%TypedArrayPrototype%': TypedArray ? TypedArray.prototype : undefined$1,
2831
+ '%TypeError%': $TypeError,
2832
+ '%TypeErrorPrototype%': $TypeError.prototype,
1753
2833
  '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
2834
+ '%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array.prototype,
1754
2835
  '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
2836
+ '%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray.prototype,
1755
2837
  '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
2838
+ '%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array.prototype,
1756
2839
  '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
2840
+ '%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array.prototype,
1757
2841
  '%URIError%': URIError,
2842
+ '%URIErrorPrototype%': URIError.prototype,
1758
2843
  '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
1759
- '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
1760
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
1761
- };
1762
-
1763
- var doEval = function doEval(name) {
1764
- var value;
1765
- if (name === '%AsyncFunction%') {
1766
- value = getEvalledConstructor('async function () {}');
1767
- } else if (name === '%GeneratorFunction%') {
1768
- value = getEvalledConstructor('function* () {}');
1769
- } else if (name === '%AsyncGeneratorFunction%') {
1770
- value = getEvalledConstructor('async function* () {}');
1771
- } else if (name === '%AsyncGenerator%') {
1772
- var fn = doEval('%AsyncGeneratorFunction%');
1773
- if (fn) {
1774
- value = fn.prototype;
1775
- }
1776
- } else if (name === '%AsyncIteratorPrototype%') {
1777
- var gen = doEval('%AsyncGenerator%');
1778
- if (gen) {
1779
- value = getProto(gen.prototype);
1780
- }
1781
- }
1782
-
1783
- INTRINSICS[name] = value;
1784
-
1785
- 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
1786
2847
  };
1787
2848
 
1788
- var LEGACY_ALIASES = {
1789
- '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
1790
- '%ArrayPrototype%': ['Array', 'prototype'],
1791
- '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
1792
- '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
1793
- '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
1794
- '%ArrayProto_values%': ['Array', 'prototype', 'values'],
1795
- '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
1796
- '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
1797
- '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
1798
- '%BooleanPrototype%': ['Boolean', 'prototype'],
1799
- '%DataViewPrototype%': ['DataView', 'prototype'],
1800
- '%DatePrototype%': ['Date', 'prototype'],
1801
- '%ErrorPrototype%': ['Error', 'prototype'],
1802
- '%EvalErrorPrototype%': ['EvalError', 'prototype'],
1803
- '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
1804
- '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
1805
- '%FunctionPrototype%': ['Function', 'prototype'],
1806
- '%Generator%': ['GeneratorFunction', 'prototype'],
1807
- '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
1808
- '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
1809
- '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
1810
- '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
1811
- '%JSONParse%': ['JSON', 'parse'],
1812
- '%JSONStringify%': ['JSON', 'stringify'],
1813
- '%MapPrototype%': ['Map', 'prototype'],
1814
- '%NumberPrototype%': ['Number', 'prototype'],
1815
- '%ObjectPrototype%': ['Object', 'prototype'],
1816
- '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
1817
- '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
1818
- '%PromisePrototype%': ['Promise', 'prototype'],
1819
- '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
1820
- '%Promise_all%': ['Promise', 'all'],
1821
- '%Promise_reject%': ['Promise', 'reject'],
1822
- '%Promise_resolve%': ['Promise', 'resolve'],
1823
- '%RangeErrorPrototype%': ['RangeError', 'prototype'],
1824
- '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
1825
- '%RegExpPrototype%': ['RegExp', 'prototype'],
1826
- '%SetPrototype%': ['Set', 'prototype'],
1827
- '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
1828
- '%StringPrototype%': ['String', 'prototype'],
1829
- '%SymbolPrototype%': ['Symbol', 'prototype'],
1830
- '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
1831
- '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
1832
- '%TypeErrorPrototype%': ['TypeError', 'prototype'],
1833
- '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
1834
- '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
1835
- '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
1836
- '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
1837
- '%URIErrorPrototype%': ['URIError', 'prototype'],
1838
- '%WeakMapPrototype%': ['WeakMap', 'prototype'],
1839
- '%WeakSetPrototype%': ['WeakSet', 'prototype']
1840
- };
1841
-
1842
-
1843
-
1844
- var $concat$2 = functionBind.call(Function.call, Array.prototype.concat);
1845
- var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
2849
+
1846
2850
  var $replace = functionBind.call(Function.call, String.prototype.replace);
1847
- var $strSlice = functionBind.call(Function.call, String.prototype.slice);
1848
2851
 
1849
2852
  /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
1850
2853
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
1851
2854
  var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
1852
2855
  var stringToPath = function stringToPath(string) {
1853
- var first = $strSlice(string, 0, 1);
1854
- var last = $strSlice(string, -1);
1855
- if (first === '%' && last !== '%') {
1856
- throw new $SyntaxError$1('invalid intrinsic syntax, expected closing `%`');
1857
- } else if (last === '%' && first !== '%') {
1858
- throw new $SyntaxError$1('invalid intrinsic syntax, expected opening `%`');
1859
- }
1860
2856
  var result = [];
1861
2857
  $replace(string, rePropName, function (match, number, quote, subString) {
1862
- result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
2858
+ result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : (number || match);
1863
2859
  });
1864
2860
  return result;
1865
2861
  };
1866
2862
  /* end adaptation */
1867
2863
 
1868
2864
  var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
1869
- var intrinsicName = name;
1870
- var alias;
1871
- if (src(LEGACY_ALIASES, intrinsicName)) {
1872
- alias = LEGACY_ALIASES[intrinsicName];
1873
- intrinsicName = '%' + alias[0] + '%';
2865
+ if (!(name in INTRINSICS)) {
2866
+ throw new SyntaxError('intrinsic ' + name + ' does not exist!');
1874
2867
  }
1875
2868
 
1876
- if (src(INTRINSICS, intrinsicName)) {
1877
- var value = INTRINSICS[intrinsicName];
1878
- if (value === needsEval) {
1879
- value = doEval(intrinsicName);
1880
- }
1881
- if (typeof value === 'undefined' && !allowMissing) {
1882
- throw new $TypeError$5('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
1883
- }
1884
-
1885
- return {
1886
- alias: alias,
1887
- name: intrinsicName,
1888
- value: value
1889
- };
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!');
1890
2872
  }
1891
2873
 
1892
- throw new $SyntaxError$1('intrinsic ' + name + ' does not exist!');
2874
+ return INTRINSICS[name];
1893
2875
  };
1894
2876
 
1895
- var getIntrinsic = function GetIntrinsic(name, allowMissing) {
2877
+ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
1896
2878
  if (typeof name !== 'string' || name.length === 0) {
1897
- throw new $TypeError$5('intrinsic name must be a non-empty string');
2879
+ throw new TypeError('intrinsic name must be a non-empty string');
1898
2880
  }
1899
2881
  if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
1900
- throw new $TypeError$5('"allowMissing" argument must be a boolean');
2882
+ throw new TypeError('"allowMissing" argument must be a boolean');
1901
2883
  }
1902
2884
 
1903
2885
  var parts = stringToPath(name);
1904
- var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
1905
-
1906
- var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
1907
- var intrinsicRealName = intrinsic.name;
1908
- var value = intrinsic.value;
1909
- var skipFurtherCaching = false;
1910
-
1911
- var alias = intrinsic.alias;
1912
- if (alias) {
1913
- intrinsicBaseName = alias[0];
1914
- $spliceApply(parts, $concat$2([0, 1], alias));
1915
- }
1916
-
1917
- for (var i = 1, isOwn = true; i < parts.length; i += 1) {
1918
- var part = parts[i];
1919
- var first = $strSlice(part, 0, 1);
1920
- var last = $strSlice(part, -1);
1921
- if (
1922
- (
1923
- (first === '"' || first === "'" || first === '`')
1924
- || (last === '"' || last === "'" || last === '`')
1925
- )
1926
- && first !== last
1927
- ) {
1928
- throw new $SyntaxError$1('property names with quotes must have matching quotes');
1929
- }
1930
- if (part === 'constructor' || !isOwn) {
1931
- skipFurtherCaching = true;
1932
- }
1933
-
1934
- intrinsicBaseName += '.' + part;
1935
- intrinsicRealName = '%' + intrinsicBaseName + '%';
1936
2886
 
1937
- if (src(INTRINSICS, intrinsicRealName)) {
1938
- value = INTRINSICS[intrinsicRealName];
1939
- } else if (value != null) {
1940
- if (!(part in value)) {
1941
- if (!allowMissing) {
1942
- throw new $TypeError$5('base intrinsic for ' + name + ' exists, but the property is not available.');
1943
- }
1944
- return void undefined$1;
1945
- }
1946
- if ($gOPD$2 && (i + 1) >= parts.length) {
1947
- var desc = $gOPD$2(value, part);
1948
- isOwn = !!desc;
1949
-
1950
- // By convention, when a data property is converted to an accessor
1951
- // property to emulate a data property that does not suffer from
1952
- // the override mistake, that accessor's getter is marked with
1953
- // an `originalValue` property. Here, when we detect this, we
1954
- // uphold the illusion by pretending to see that original data
1955
- // property, i.e., returning the value rather than the getter
1956
- // itself.
1957
- if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
1958
- value = desc.get;
1959
- } else {
1960
- 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.');
1961
2894
  }
2895
+ value = desc ? (desc.get || desc.value) : value[parts[i]];
1962
2896
  } else {
1963
- isOwn = src(value, part);
1964
- value = value[part];
1965
- }
1966
-
1967
- if (isOwn && !skipFurtherCaching) {
1968
- INTRINSICS[intrinsicRealName] = value;
2897
+ value = value[parts[i]];
1969
2898
  }
1970
2899
  }
1971
2900
  }
1972
2901
  return value;
1973
2902
  };
1974
2903
 
1975
- var callBind = createCommonjsModule(function (module) {
1976
-
2904
+ var $Function = GetIntrinsic('%Function%');
2905
+ var $apply = $Function.apply;
2906
+ var $call = $Function.call;
1977
2907
 
1978
-
1979
-
1980
- var $apply = getIntrinsic('%Function.prototype.apply%');
1981
- var $call = getIntrinsic('%Function.prototype.call%');
1982
- var $reflectApply = getIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
1983
-
1984
- var $gOPD = getIntrinsic('%Object.getOwnPropertyDescriptor%', true);
1985
- var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
1986
- var $max = getIntrinsic('%Math.max%');
1987
-
1988
- if ($defineProperty) {
1989
- try {
1990
- $defineProperty({}, 'a', { value: 1 });
1991
- } catch (e) {
1992
- // IE 8 has a broken defineProperty
1993
- $defineProperty = null;
1994
- }
1995
- }
1996
-
1997
- module.exports = function callBind(originalFunction) {
1998
- var func = $reflectApply(functionBind, $call, arguments);
1999
- if ($gOPD && $defineProperty) {
2000
- var desc = $gOPD(func, 'length');
2001
- if (desc.configurable) {
2002
- // original length, plus the receiver, minus any additional arguments (after the receiver)
2003
- $defineProperty(
2004
- func,
2005
- 'length',
2006
- { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
2007
- );
2008
- }
2009
- }
2010
- return func;
2908
+ var callBind = function callBind() {
2909
+ return functionBind.apply($call, arguments);
2011
2910
  };
2012
2911
 
2013
- var applyBind = function applyBind() {
2014
- return $reflectApply(functionBind, $apply, arguments);
2912
+ var apply = function applyBind() {
2913
+ return functionBind.apply($apply, arguments);
2015
2914
  };
2915
+ callBind.apply = apply;
2016
2916
 
2017
- if ($defineProperty) {
2018
- $defineProperty(module.exports, 'apply', { value: applyBind });
2019
- } else {
2020
- module.exports.apply = applyBind;
2021
- }
2022
- });
2023
- callBind.apply;
2024
-
2025
- var $indexOf = callBind(getIntrinsic('String.prototype.indexOf'));
2917
+ var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
2026
2918
 
2027
- var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
2028
- var intrinsic = getIntrinsic(name, !!allowMissing);
2029
- 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.')) {
2030
2922
  return callBind(intrinsic);
2031
2923
  }
2032
2924
  return intrinsic;
2033
2925
  };
2034
2926
 
2035
- var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
2927
+ var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
2036
2928
 
2037
2929
  if ($defineProperty) {
2038
2930
  try {
@@ -2045,7 +2937,7 @@ if ($defineProperty) {
2045
2937
 
2046
2938
 
2047
2939
 
2048
- var $isEnumerable$1 = callBound$1('Object.prototype.propertyIsEnumerable');
2940
+ var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable');
2049
2941
 
2050
2942
  // eslint-disable-next-line max-params
2051
2943
  var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue, FromPropertyDescriptor, O, P, desc) {
@@ -2059,7 +2951,7 @@ var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue,
2059
2951
  }
2060
2952
 
2061
2953
  // fallback for ES3
2062
- if (P in O && $isEnumerable$1(O, P) !== !!desc['[[Enumerable]]']) {
2954
+ if (P in O && $isEnumerable(O, P) !== !!desc['[[Enumerable]]']) {
2063
2955
  // a non-enumerable existing property
2064
2956
  return false;
2065
2957
  }
@@ -2074,13 +2966,15 @@ var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue,
2074
2966
  return true;
2075
2967
  };
2076
2968
 
2077
- var $TypeError$4 = getIntrinsic('%TypeError%');
2078
- 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%');
2079
2973
 
2080
2974
 
2081
2975
 
2082
2976
  var predicates = {
2083
- // 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
2084
2978
  'Property Descriptor': function isPropertyDescriptor(Type, Desc) {
2085
2979
  if (Type(Desc) !== 'Object') {
2086
2980
  return false;
@@ -2103,7 +2997,7 @@ var predicates = {
2103
2997
  var isData = src(Desc, '[[Value]]');
2104
2998
  var IsAccessor = src(Desc, '[[Get]]') || src(Desc, '[[Set]]');
2105
2999
  if (isData && IsAccessor) {
2106
- 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');
2107
3001
  }
2108
3002
  return true;
2109
3003
  }
@@ -2115,13 +3009,13 @@ var assertRecord = function assertRecord(Type, recordType, argumentName, value)
2115
3009
  throw new $SyntaxError('unknown record type: ' + recordType);
2116
3010
  }
2117
3011
  if (!predicate(Type, value)) {
2118
- throw new $TypeError$4(argumentName + ' must be a ' + recordType);
3012
+ throw new $TypeError$1(argumentName + ' must be a ' + recordType);
2119
3013
  }
2120
3014
  };
2121
3015
 
2122
- // https://262.ecma-international.org/5.1/#sec-8
3016
+ // https://www.ecma-international.org/ecma-262/5.1/#sec-8
2123
3017
 
2124
- var Type$1 = function Type(x) {
3018
+ var Type = function Type(x) {
2125
3019
  if (x === null) {
2126
3020
  return 'Null';
2127
3021
  }
@@ -2142,26 +3036,23 @@ var Type$1 = function Type(x) {
2142
3036
  }
2143
3037
  };
2144
3038
 
2145
- // 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
2146
3040
 
2147
- var Type = function Type(x) {
3041
+ var Type$1 = function Type$1(x) {
2148
3042
  if (typeof x === 'symbol') {
2149
3043
  return 'Symbol';
2150
3044
  }
2151
- if (typeof x === 'bigint') {
2152
- return 'BigInt';
2153
- }
2154
- return Type$1(x);
3045
+ return Type(x);
2155
3046
  };
2156
3047
 
2157
- // https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
3048
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
2158
3049
 
2159
3050
  var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
2160
3051
  if (typeof Desc === 'undefined') {
2161
3052
  return Desc;
2162
3053
  }
2163
3054
 
2164
- assertRecord(Type, 'Property Descriptor', 'Desc', Desc);
3055
+ assertRecord(Type$1, 'Property Descriptor', 'Desc', Desc);
2165
3056
 
2166
3057
  var obj = {};
2167
3058
  if ('[[Value]]' in Desc) {
@@ -2185,7 +3076,7 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
2185
3076
  return obj;
2186
3077
  };
2187
3078
 
2188
- var $gOPD$1 = getIntrinsic('%Object.getOwnPropertyDescriptor%');
3079
+ var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
2189
3080
  if ($gOPD$1) {
2190
3081
  try {
2191
3082
  $gOPD$1([], 'length');
@@ -2197,85 +3088,65 @@ if ($gOPD$1) {
2197
3088
 
2198
3089
  var getOwnPropertyDescriptor = $gOPD$1;
2199
3090
 
2200
- var $Array = getIntrinsic('%Array%');
3091
+ var $Array = GetIntrinsic('%Array%');
2201
3092
 
2202
3093
  // eslint-disable-next-line global-require
2203
- var toStr$1 = !$Array.isArray && callBound$1('Object.prototype.toString');
3094
+ var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
2204
3095
 
2205
- // https://ecma-international.org/ecma-262/6.0/#sec-isarray
3096
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
2206
3097
 
2207
3098
  var IsArray = $Array.isArray || function IsArray(argument) {
2208
- return toStr$1(argument) === '[object Array]';
3099
+ return toStr$4(argument) === '[object Array]';
2209
3100
  };
2210
3101
 
2211
- // https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey
3102
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
2212
3103
 
2213
3104
  var IsPropertyKey = function IsPropertyKey(argument) {
2214
3105
  return typeof argument === 'string' || typeof argument === 'symbol';
2215
3106
  };
2216
3107
 
2217
- var hasSymbols$1 = shams();
2218
- var hasToStringTag$1 = hasSymbols$1 && !!Symbol.toStringTag;
2219
- var has;
2220
- var $exec;
2221
- var isRegexMarker;
2222
- var badStringifier;
2223
-
2224
- if (hasToStringTag$1) {
2225
- has = callBound$1('Object.prototype.hasOwnProperty');
2226
- $exec = callBound$1('RegExp.prototype.exec');
2227
- isRegexMarker = {};
3108
+ var regexExec = RegExp.prototype.exec;
3109
+ var gOPD = Object.getOwnPropertyDescriptor;
2228
3110
 
2229
- var throwRegexMarker = function () {
2230
- throw isRegexMarker;
2231
- };
2232
- badStringifier = {
2233
- toString: throwRegexMarker,
2234
- valueOf: throwRegexMarker
2235
- };
3111
+ var tryRegexExecCall = function tryRegexExec(value) {
3112
+ try {
3113
+ var lastIndex = value.lastIndex;
3114
+ value.lastIndex = 0; // eslint-disable-line no-param-reassign
2236
3115
 
2237
- if (typeof Symbol.toPrimitive === 'symbol') {
2238
- 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
2239
3122
  }
2240
- }
2241
-
2242
- var $toString = callBound$1('Object.prototype.toString');
2243
- var gOPD = Object.getOwnPropertyDescriptor;
3123
+ };
3124
+ var toStr$5 = Object.prototype.toString;
2244
3125
  var regexClass = '[object RegExp]';
3126
+ var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
2245
3127
 
2246
- var isRegex = hasToStringTag$1
2247
- // eslint-disable-next-line consistent-return
2248
- ? function isRegex(value) {
2249
- if (!value || typeof value !== 'object') {
2250
- return false;
2251
- }
2252
-
2253
- var descriptor = gOPD(value, 'lastIndex');
2254
- var hasLastIndexDataProperty = descriptor && has(descriptor, 'value');
2255
- if (!hasLastIndexDataProperty) {
2256
- return false;
2257
- }
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
+ }
2258
3135
 
2259
- try {
2260
- $exec(value, badStringifier);
2261
- } catch (e) {
2262
- return e === isRegexMarker;
2263
- }
3136
+ var descriptor = gOPD(value, 'lastIndex');
3137
+ var hasLastIndexDataProperty = descriptor && src(descriptor, 'value');
3138
+ if (!hasLastIndexDataProperty) {
3139
+ return false;
2264
3140
  }
2265
- : function isRegex(value) {
2266
- // In older browsers, typeof regex incorrectly returns 'function'
2267
- if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
2268
- return false;
2269
- }
2270
3141
 
2271
- return $toString(value) === regexClass;
2272
- };
3142
+ return tryRegexExecCall(value);
3143
+ };
2273
3144
 
2274
- // http://262.ecma-international.org/5.1/#sec-9.2
3145
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
2275
3146
 
2276
3147
  var ToBoolean = function ToBoolean(value) { return !!value; };
2277
3148
 
2278
- var $match = getIntrinsic('%Symbol.match%', true);
3149
+ var $match = GetIntrinsic('%Symbol.match%', true);
2279
3150
 
2280
3151
 
2281
3152
 
@@ -2297,27 +3168,6 @@ var IsRegExp = function IsRegExp(argument) {
2297
3168
  };
2298
3169
 
2299
3170
  var fnToStr = Function.prototype.toString;
2300
- var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
2301
- var badArrayLike;
2302
- var isCallableMarker;
2303
- if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {
2304
- try {
2305
- badArrayLike = Object.defineProperty({}, 'length', {
2306
- get: function () {
2307
- throw isCallableMarker;
2308
- }
2309
- });
2310
- isCallableMarker = {};
2311
- // eslint-disable-next-line no-throw-literal
2312
- reflectApply(function () { throw 42; }, null, badArrayLike);
2313
- } catch (_) {
2314
- if (_ !== isCallableMarker) {
2315
- reflectApply = null;
2316
- }
2317
- }
2318
- } else {
2319
- reflectApply = null;
2320
- }
2321
3171
 
2322
3172
  var constructorRegex = /^\s*class\b/;
2323
3173
  var isES6ClassFn = function isES6ClassFunction(value) {
@@ -2338,52 +3188,36 @@ var tryFunctionObject = function tryFunctionToStr(value) {
2338
3188
  return false;
2339
3189
  }
2340
3190
  };
2341
- var toStr = Object.prototype.toString;
3191
+ var toStr$6 = Object.prototype.toString;
2342
3192
  var fnClass = '[object Function]';
2343
3193
  var genClass = '[object GeneratorFunction]';
2344
- var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
2345
- /* globals document: false */
2346
- var documentDotAll = typeof document === 'object' && typeof document.all === 'undefined' && document.all !== undefined ? document.all : {};
2347
-
2348
- var isCallable = reflectApply
2349
- ? function isCallable(value) {
2350
- if (value === documentDotAll) { return true; }
2351
- if (!value) { return false; }
2352
- if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2353
- if (typeof value === 'function' && !value.prototype) { return true; }
2354
- try {
2355
- reflectApply(value, null, badArrayLike);
2356
- } catch (e) {
2357
- if (e !== isCallableMarker) { return false; }
2358
- }
2359
- return !isES6ClassFn(value);
2360
- }
2361
- : function isCallable(value) {
2362
- if (value === documentDotAll) { return true; }
2363
- if (!value) { return false; }
2364
- if (typeof value !== 'function' && typeof value !== 'object') { return false; }
2365
- if (typeof value === 'function' && !value.prototype) { return true; }
2366
- if (hasToStringTag) { return tryFunctionObject(value); }
2367
- if (isES6ClassFn(value)) { return false; }
2368
- var strClass = toStr.call(value);
2369
- return strClass === fnClass || strClass === genClass;
2370
- };
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
+ };
2371
3205
 
2372
- // http://262.ecma-international.org/5.1/#sec-9.11
3206
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
2373
3207
 
2374
3208
  var IsCallable = isCallable;
2375
3209
 
2376
- var $TypeError$3 = getIntrinsic('%TypeError%');
3210
+ var $TypeError$2 = GetIntrinsic('%TypeError%');
2377
3211
 
2378
3212
 
2379
3213
 
2380
3214
 
2381
3215
 
2382
- // https://262.ecma-international.org/5.1/#sec-8.10.5
3216
+ // https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
2383
3217
 
2384
3218
  var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
2385
- if (Type(Obj) !== 'Object') {
2386
- throw new $TypeError$3('ToPropertyDescriptor requires an object');
3219
+ if (Type$1(Obj) !== 'Object') {
3220
+ throw new $TypeError$2('ToPropertyDescriptor requires an object');
2387
3221
  }
2388
3222
 
2389
3223
  var desc = {};
@@ -2402,29 +3236,29 @@ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
2402
3236
  if (src(Obj, 'get')) {
2403
3237
  var getter = Obj.get;
2404
3238
  if (typeof getter !== 'undefined' && !IsCallable(getter)) {
2405
- throw new $TypeError$3('getter must be a function');
3239
+ throw new TypeError('getter must be a function');
2406
3240
  }
2407
3241
  desc['[[Get]]'] = getter;
2408
3242
  }
2409
3243
  if (src(Obj, 'set')) {
2410
3244
  var setter = Obj.set;
2411
3245
  if (typeof setter !== 'undefined' && !IsCallable(setter)) {
2412
- throw new $TypeError$3('setter must be a function');
3246
+ throw new $TypeError$2('setter must be a function');
2413
3247
  }
2414
3248
  desc['[[Set]]'] = setter;
2415
3249
  }
2416
3250
 
2417
3251
  if ((src(desc, '[[Get]]') || src(desc, '[[Set]]')) && (src(desc, '[[Value]]') || src(desc, '[[Writable]]'))) {
2418
- 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');
2419
3253
  }
2420
3254
  return desc;
2421
3255
  };
2422
3256
 
2423
- var $TypeError$2 = getIntrinsic('%TypeError%');
3257
+ var $TypeError$3 = GetIntrinsic('%TypeError%');
2424
3258
 
2425
3259
 
2426
3260
 
2427
- var $isEnumerable = callBound$1('Object.prototype.propertyIsEnumerable');
3261
+ var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
2428
3262
 
2429
3263
 
2430
3264
 
@@ -2434,14 +3268,14 @@ var $isEnumerable = callBound$1('Object.prototype.propertyIsEnumerable');
2434
3268
 
2435
3269
 
2436
3270
 
2437
- // https://ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
3271
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
2438
3272
 
2439
3273
  var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
2440
- if (Type(O) !== 'Object') {
2441
- 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');
2442
3276
  }
2443
3277
  if (!IsPropertyKey(P)) {
2444
- 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');
2445
3279
  }
2446
3280
  if (!src(O, P)) {
2447
3281
  return void 0;
@@ -2452,7 +3286,7 @@ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
2452
3286
  var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
2453
3287
  return {
2454
3288
  '[[Configurable]]': !(arrayLength || regexLastIndex),
2455
- '[[Enumerable]]': $isEnumerable(O, P),
3289
+ '[[Enumerable]]': $isEnumerable$1(O, P),
2456
3290
  '[[Value]]': O[P],
2457
3291
  '[[Writable]]': true
2458
3292
  };
@@ -2460,14 +3294,14 @@ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
2460
3294
  return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
2461
3295
  };
2462
3296
 
2463
- // https://ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
3297
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
2464
3298
 
2465
3299
  var IsDataDescriptor = function IsDataDescriptor(Desc) {
2466
3300
  if (typeof Desc === 'undefined') {
2467
3301
  return false;
2468
3302
  }
2469
3303
 
2470
- assertRecord(Type, 'Property Descriptor', 'Desc', Desc);
3304
+ assertRecord(Type$1, 'Property Descriptor', 'Desc', Desc);
2471
3305
 
2472
3306
  if (!src(Desc, '[[Value]]') && !src(Desc, '[[Writable]]')) {
2473
3307
  return false;
@@ -2480,14 +3314,14 @@ var isPrimitive = function isPrimitive(value) {
2480
3314
  return value === null || (typeof value !== 'function' && typeof value !== 'object');
2481
3315
  };
2482
3316
 
2483
- var $Object$1 = getIntrinsic('%Object%');
3317
+ var $Object = GetIntrinsic('%Object%');
2484
3318
 
2485
3319
 
2486
3320
 
2487
- var $preventExtensions = $Object$1.preventExtensions;
2488
- var $isExtensible = $Object$1.isExtensible;
3321
+ var $preventExtensions = $Object.preventExtensions;
3322
+ var $isExtensible = $Object.isExtensible;
2489
3323
 
2490
- // https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o
3324
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-isextensible-o
2491
3325
 
2492
3326
  var IsExtensible = $preventExtensions
2493
3327
  ? function IsExtensible(obj) {
@@ -2501,7 +3335,7 @@ var _isNaN = Number.isNaN || function isNaN(a) {
2501
3335
  return a !== a;
2502
3336
  };
2503
3337
 
2504
- // http://262.ecma-international.org/5.1/#sec-9.12
3338
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.12
2505
3339
 
2506
3340
  var SameValue = function SameValue(x, y) {
2507
3341
  if (x === y) { // 0 === -0, but they are not identical.
@@ -2511,7 +3345,7 @@ var SameValue = function SameValue(x, y) {
2511
3345
  return _isNaN(x) && _isNaN(y);
2512
3346
  };
2513
3347
 
2514
- var $TypeError$1 = getIntrinsic('%TypeError%');
3348
+ var $TypeError$4 = GetIntrinsic('%TypeError%');
2515
3349
 
2516
3350
 
2517
3351
 
@@ -2523,18 +3357,18 @@ var $TypeError$1 = getIntrinsic('%TypeError%');
2523
3357
 
2524
3358
 
2525
3359
 
2526
- // https://ecma-international.org/ecma-262/6.0/#sec-createdataproperty
3360
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty
2527
3361
 
2528
3362
  var CreateDataProperty = function CreateDataProperty(O, P, V) {
2529
- if (Type(O) !== 'Object') {
2530
- 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');
2531
3365
  }
2532
3366
  if (!IsPropertyKey(P)) {
2533
- throw new $TypeError$1('Assertion failed: IsPropertyKey(P) is not true');
3367
+ throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
2534
3368
  }
2535
3369
  var oldDesc = OrdinaryGetOwnProperty(O, P);
2536
- var extensible = !oldDesc || IsExtensible(O);
2537
- var immutable = oldDesc && (!oldDesc['[[Writable]]'] || !oldDesc['[[Configurable]]']);
3370
+ var extensible = oldDesc || IsExtensible(O);
3371
+ var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
2538
3372
  if (immutable || !extensible) {
2539
3373
  return false;
2540
3374
  }
@@ -2553,44 +3387,44 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
2553
3387
  );
2554
3388
  };
2555
3389
 
2556
- var $TypeError = getIntrinsic('%TypeError%');
3390
+ var $TypeError$5 = GetIntrinsic('%TypeError%');
2557
3391
 
2558
- // http://262.ecma-international.org/5.1/#sec-9.10
3392
+ // http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
2559
3393
 
2560
3394
  var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
2561
3395
  if (value == null) {
2562
- throw new $TypeError(optMessage || ('Cannot call method on ' + value));
3396
+ throw new $TypeError$5(optMessage || ('Cannot call method on ' + value));
2563
3397
  }
2564
3398
  return value;
2565
3399
  };
2566
3400
 
2567
3401
  var RequireObjectCoercible = CheckObjectCoercible;
2568
3402
 
2569
- var $Object = getIntrinsic('%Object%');
3403
+ var $Object$1 = GetIntrinsic('%Object%');
2570
3404
 
2571
3405
 
2572
3406
 
2573
- // https://ecma-international.org/ecma-262/6.0/#sec-toobject
3407
+ // https://www.ecma-international.org/ecma-262/6.0/#sec-toobject
2574
3408
 
2575
3409
  var ToObject = function ToObject(value) {
2576
3410
  RequireObjectCoercible(value);
2577
- return $Object(value);
3411
+ return $Object$1(value);
2578
3412
  };
2579
3413
 
2580
- var $gOPD = Object.getOwnPropertyDescriptor;
3414
+ var $gOPD$2 = Object.getOwnPropertyDescriptor;
2581
3415
  var $getOwnNames = Object.getOwnPropertyNames;
2582
3416
  var $getSymbols = Object.getOwnPropertySymbols;
2583
- var $concat$1 = callBound$1('Array.prototype.concat');
2584
- var $reduce = callBound$1('Array.prototype.reduce');
3417
+ var $concat = callBound('Array.prototype.concat');
3418
+ var $reduce = callBound('Array.prototype.reduce');
2585
3419
  var getAll = $getSymbols ? function (obj) {
2586
- return $concat$1($getOwnNames(obj), $getSymbols(obj));
3420
+ return $concat($getOwnNames(obj), $getSymbols(obj));
2587
3421
  } : $getOwnNames;
2588
3422
 
2589
- var isES5$1 = IsCallable($gOPD) && IsCallable($getOwnNames);
3423
+ var isES5 = IsCallable($gOPD$2) && IsCallable($getOwnNames);
2590
3424
 
2591
- var implementation$1 = function getOwnPropertyDescriptors(value) {
3425
+ var implementation$2 = function getOwnPropertyDescriptors(value) {
2592
3426
  RequireObjectCoercible(value);
2593
- if (!isES5$1) {
3427
+ if (!isES5) {
2594
3428
  throw new TypeError('getOwnPropertyDescriptors requires Object.getOwnPropertyDescriptor');
2595
3429
  }
2596
3430
 
@@ -2598,7 +3432,7 @@ var implementation$1 = function getOwnPropertyDescriptors(value) {
2598
3432
  return $reduce(
2599
3433
  getAll(O),
2600
3434
  function (acc, key) {
2601
- var descriptor = $gOPD(O, key);
3435
+ var descriptor = $gOPD$2(O, key);
2602
3436
  if (typeof descriptor !== 'undefined') {
2603
3437
  CreateDataProperty(acc, key, descriptor);
2604
3438
  }
@@ -2608,40 +3442,34 @@ var implementation$1 = function getOwnPropertyDescriptors(value) {
2608
3442
  );
2609
3443
  };
2610
3444
 
2611
- var polyfill$2 = function getPolyfill() {
2612
- return typeof Object.getOwnPropertyDescriptors === 'function' ? Object.getOwnPropertyDescriptors : implementation$1;
3445
+ var polyfill = function getPolyfill() {
3446
+ return typeof Object.getOwnPropertyDescriptors === 'function' ? Object.getOwnPropertyDescriptors : implementation$2;
2613
3447
  };
2614
3448
 
2615
- var shim$1 = function shimGetOwnPropertyDescriptors() {
2616
- var polyfill = polyfill$2();
3449
+ var shim = function shimGetOwnPropertyDescriptors() {
3450
+ var polyfill$1 = polyfill();
2617
3451
  defineProperties_1(
2618
3452
  Object,
2619
- { getOwnPropertyDescriptors: polyfill },
2620
- { getOwnPropertyDescriptors: function () { return Object.getOwnPropertyDescriptors !== polyfill; } }
3453
+ { getOwnPropertyDescriptors: polyfill$1 },
3454
+ { getOwnPropertyDescriptors: function () { return Object.getOwnPropertyDescriptors !== polyfill$1; } }
2621
3455
  );
2622
- return polyfill;
3456
+ return polyfill$1;
2623
3457
  };
2624
3458
 
2625
- var bound = callBind(polyfill$2(), Object);
2626
-
2627
- defineProperties_1(bound, {
2628
- getPolyfill: polyfill$2,
2629
- implementation: implementation$1,
2630
- shim: shim$1
3459
+ defineProperties_1(implementation$2, {
3460
+ getPolyfill: polyfill,
3461
+ implementation: implementation$2,
3462
+ shim: shim
2631
3463
  });
2632
3464
 
2633
- var object_getownpropertydescriptors = bound;
2634
-
2635
- // TODO; semver-major: remove
3465
+ var object_getownpropertydescriptors = implementation$2;
2636
3466
 
2637
- var callBound = callBound$1;
2638
-
2639
- var isES5 = typeof Object.defineProperty === 'function'
3467
+ var isES5$1 = typeof Object.defineProperty === 'function'
2640
3468
  && typeof Object.defineProperties === 'function';
2641
3469
 
2642
3470
  var hasProto = [].__proto__ === Array.prototype; // eslint-disable-line no-proto
2643
3471
 
2644
- if (!isES5 || !hasProto) {
3472
+ if (!isES5$1 || !hasProto) {
2645
3473
  throw new TypeError('util.promisify requires a true ES5 environment, that also supports `__proto__`');
2646
3474
  }
2647
3475
 
@@ -2654,15 +3482,15 @@ if (typeof Promise !== 'function') {
2654
3482
 
2655
3483
 
2656
3484
  var $slice = callBound('Array.prototype.slice');
2657
- var $concat = callBound('Array.prototype.concat');
3485
+ var $concat$1 = callBound('Array.prototype.concat');
2658
3486
  var $forEach = callBound('Array.prototype.forEach');
2659
3487
 
2660
- var hasSymbols = hasSymbols$3();
3488
+ var hasSymbols$3 = hasSymbols$1();
2661
3489
 
2662
- var kCustomPromisifiedSymbol = hasSymbols ? Symbol('util.promisify.custom') : null;
2663
- var kCustomPromisifyArgsSymbol = hasSymbols ? Symbol('customPromisifyArgs') : null;
3490
+ var kCustomPromisifiedSymbol = hasSymbols$3 ? Symbol('util.promisify.custom') : null;
3491
+ var kCustomPromisifyArgsSymbol = hasSymbols$3 ? Symbol('customPromisifyArgs') : null;
2664
3492
 
2665
- var implementation = function promisify(orig) {
3493
+ var implementation$3 = function promisify(orig) {
2666
3494
  if (typeof orig !== 'function') {
2667
3495
  var error = new TypeError('The "original" argument must be of type function');
2668
3496
  error.name = 'TypeError [ERR_INVALID_ARG_TYPE]';
@@ -2670,7 +3498,7 @@ var implementation = function promisify(orig) {
2670
3498
  throw error;
2671
3499
  }
2672
3500
 
2673
- if (hasSymbols && orig[kCustomPromisifiedSymbol]) {
3501
+ if (hasSymbols$3 && orig[kCustomPromisifiedSymbol]) {
2674
3502
  var customFunction = orig[kCustomPromisifiedSymbol];
2675
3503
  if (typeof customFunction !== 'function') {
2676
3504
  throw new TypeError('The [util.promisify.custom] property must be a function');
@@ -2692,7 +3520,7 @@ var implementation = function promisify(orig) {
2692
3520
  var args = $slice(arguments);
2693
3521
  var self = this; // eslint-disable-line no-invalid-this
2694
3522
  return new Promise(function (resolve, reject) {
2695
- orig.apply(self, $concat(args, function (err) {
3523
+ orig.apply(self, $concat$1(args, function (err) {
2696
3524
  var values = arguments.length > 1 ? $slice(arguments, 1) : [];
2697
3525
  if (err) {
2698
3526
  reject(err);
@@ -2722,17 +3550,17 @@ var implementation = function promisify(orig) {
2722
3550
 
2723
3551
  var custom = kCustomPromisifiedSymbol;
2724
3552
  var customPromisifyArgs = kCustomPromisifyArgsSymbol;
2725
- implementation.custom = custom;
2726
- implementation.customPromisifyArgs = customPromisifyArgs;
3553
+ implementation$3.custom = custom;
3554
+ implementation$3.customPromisifyArgs = customPromisifyArgs;
2727
3555
 
2728
3556
  var polyfill$1 = function getPolyfill() {
2729
3557
  if (typeof util.promisify === 'function') {
2730
3558
  return util.promisify;
2731
3559
  }
2732
- return implementation;
3560
+ return implementation$3;
2733
3561
  };
2734
3562
 
2735
- var shim = function shimUtilPromisify() {
3563
+ var shim$1 = function shimUtilPromisify() {
2736
3564
  var polyfill = polyfill$1();
2737
3565
  if (polyfill !== util.promisify) {
2738
3566
  Object.defineProperty(util, 'promisify', {
@@ -2745,20 +3573,20 @@ var shim = function shimUtilPromisify() {
2745
3573
  return polyfill;
2746
3574
  };
2747
3575
 
2748
- var polyfill = polyfill$1();
3576
+ var polyfill$2 = polyfill$1();
2749
3577
 
2750
3578
 
2751
3579
  /* eslint-disable no-unused-vars */
2752
3580
  var boundPromisify = function promisify(orig) {
2753
3581
  /* eslint-enable no-unused-vars */
2754
- return polyfill.apply(util, arguments);
3582
+ return polyfill$2.apply(util, arguments);
2755
3583
  };
2756
3584
  defineProperties_1(boundPromisify, {
2757
- custom: polyfill.custom,
2758
- customPromisifyArgs: polyfill.customPromisifyArgs,
3585
+ custom: polyfill$2.custom,
3586
+ customPromisifyArgs: polyfill$2.customPromisifyArgs,
2759
3587
  getPolyfill: polyfill$1,
2760
- implementation: implementation,
2761
- shim: shim
3588
+ implementation: implementation$3,
3589
+ shim: shim$1
2762
3590
  });
2763
3591
 
2764
3592
  var util_promisify = boundPromisify;
@@ -2799,16 +3627,16 @@ function connect() {
2799
3627
 
2800
3628
  var db = connect;
2801
3629
 
2802
- var _this$1 = undefined;
3630
+ var _this$3 = undefined;
2803
3631
 
2804
- var config$1 = {
3632
+ var config = {
2805
3633
  host: 'sanity-datasource.cluster-crao688bsrdh.us-east-1.rds.amazonaws.com',
2806
3634
  user: 'nasp',
2807
3635
  password: 'uRNkF9SkfXQs6AKK',
2808
3636
  database: 'user'
2809
3637
  };
2810
3638
 
2811
- var findUser$1 = function () {
3639
+ var findUser = function () {
2812
3640
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(email) {
2813
3641
  var password = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
2814
3642
  var db$1, query, res, user, hash, passwordsMatch, user_shared, occupation_id;
@@ -2820,7 +3648,7 @@ var findUser$1 = function () {
2820
3648
  _context.prev = 1;
2821
3649
 
2822
3650
 
2823
- db$1 = db(config$1);
3651
+ db$1 = db(config);
2824
3652
 
2825
3653
  query = '\n select * \n from user \n where trim(lower(email)) = ?\n ';
2826
3654
  _context.next = 6;
@@ -2916,7 +3744,7 @@ var findUser$1 = function () {
2916
3744
  };
2917
3745
  }();
2918
3746
 
2919
- var updateUser$1 = function () {
3747
+ var updateUser = function () {
2920
3748
  var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(data) {
2921
3749
  var db$1, query, res, hash, columns, i, column, occupation_name;
2922
3750
  return regenerator.wrap(function _callee2$(_context2) {
@@ -2929,7 +3757,7 @@ var updateUser$1 = function () {
2929
3757
 
2930
3758
  validateUserData(data);
2931
3759
 
2932
- db$1 = db(config$1);
3760
+ db$1 = db(config);
2933
3761
 
2934
3762
  _context2.next = 6;
2935
3763
  return db$1.beginTransaction();
@@ -3036,7 +3864,7 @@ var updateUser$1 = function () {
3036
3864
 
3037
3865
  return _context2.abrupt('return', {
3038
3866
  error: '',
3039
- user: findUser$1(data.email)
3867
+ user: findUser(data.email)
3040
3868
  });
3041
3869
 
3042
3870
  case 45:
@@ -3148,7 +3976,7 @@ var getOccupationNameById = function () {
3148
3976
  return _context3.stop();
3149
3977
  }
3150
3978
  }
3151
- }, _callee3, _this$1);
3979
+ }, _callee3, _this$3);
3152
3980
  }));
3153
3981
 
3154
3982
  return function getOccupationNameById(_x5, _x6) {
@@ -3156,7 +3984,7 @@ var getOccupationNameById = function () {
3156
3984
  };
3157
3985
  }();
3158
3986
 
3159
- var createUser$1 = function () {
3987
+ var createUser = function () {
3160
3988
  var _ref4 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee4(data) {
3161
3989
  var db$1, query, res, hash, columns, i, column, user_id, occupation_name;
3162
3990
  return regenerator.wrap(function _callee4$(_context4) {
@@ -3169,7 +3997,7 @@ var createUser$1 = function () {
3169
3997
 
3170
3998
  validateUserData(data, true);
3171
3999
 
3172
- db$1 = db(config$1);
4000
+ db$1 = db(config);
3173
4001
 
3174
4002
  _context4.next = 6;
3175
4003
  return db$1.beginTransaction();
@@ -3265,7 +4093,7 @@ var createUser$1 = function () {
3265
4093
  case 39:
3266
4094
  return _context4.abrupt('return', {
3267
4095
  error: '',
3268
- user: findUser$1(data.email)
4096
+ user: findUser(data.email)
3269
4097
  });
3270
4098
 
3271
4099
  case 42:
@@ -3303,7 +4131,7 @@ var createUser$1 = function () {
3303
4131
  };
3304
4132
  }();
3305
4133
 
3306
- var createUser = function () {
4134
+ var createUser$1 = function () {
3307
4135
  var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(data) {
3308
4136
  var res;
3309
4137
  return regenerator.wrap(function _callee$(_context) {
@@ -3311,7 +4139,7 @@ var createUser = function () {
3311
4139
  switch (_context.prev = _context.next) {
3312
4140
  case 0:
3313
4141
  _context.next = 2;
3314
- return createUser$1(data);
4142
+ return createUser(data);
3315
4143
 
3316
4144
  case 2:
3317
4145
  res = _context.sent;
@@ -3339,7 +4167,7 @@ var createUser = function () {
3339
4167
  };
3340
4168
  }();
3341
4169
 
3342
- var updateUser = function () {
4170
+ var updateUser$1 = function () {
3343
4171
  var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(data) {
3344
4172
  var res;
3345
4173
  return regenerator.wrap(function _callee2$(_context2) {
@@ -3347,7 +4175,7 @@ var updateUser = function () {
3347
4175
  switch (_context2.prev = _context2.next) {
3348
4176
  case 0:
3349
4177
  _context2.next = 2;
3350
- return updateUser$1(data);
4178
+ return updateUser(data);
3351
4179
 
3352
4180
  case 2:
3353
4181
  res = _context2.sent;
@@ -3375,7 +4203,7 @@ var updateUser = function () {
3375
4203
  };
3376
4204
  }();
3377
4205
 
3378
- var findUser = function () {
4206
+ var findUser$1 = function () {
3379
4207
  var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee3(_ref4) {
3380
4208
  var email = _ref4.email,
3381
4209
  password = _ref4.password;
@@ -3385,7 +4213,7 @@ var findUser = function () {
3385
4213
  switch (_context3.prev = _context3.next) {
3386
4214
  case 0:
3387
4215
  _context3.next = 2;
3388
- return findUser$1(email, password);
4216
+ return findUser(email, password);
3389
4217
 
3390
4218
  case 2:
3391
4219
  res = _context3.sent;
@@ -3415,9 +4243,9 @@ var findUser = function () {
3415
4243
 
3416
4244
  var user = /*#__PURE__*/Object.freeze({
3417
4245
  __proto__: null,
3418
- createUser: createUser,
3419
- updateUser: updateUser,
3420
- findUser: findUser
4246
+ createUser: createUser$1,
4247
+ updateUser: updateUser$1,
4248
+ findUser: findUser$1
3421
4249
  });
3422
4250
 
3423
4251
  var localStrategy = new Local.Strategy({
@@ -3425,7 +4253,7 @@ var localStrategy = new Local.Strategy({
3425
4253
  passwordField: 'password'
3426
4254
  }, function (email, password, done) {
3427
4255
 
3428
- findUser({ email: email, password: password }).then(function (user) {
4256
+ findUser$1({ email: email, password: password }).then(function (user) {
3429
4257
  done(null, user);
3430
4258
  }).catch(function (error) {
3431
4259
  done(error);
@@ -3437,9 +4265,9 @@ var passportLocal = /*#__PURE__*/Object.freeze({
3437
4265
  localStrategy: localStrategy
3438
4266
  });
3439
4267
 
3440
- var _this = undefined;
4268
+ var _this$4 = undefined;
3441
4269
 
3442
- var config = {
4270
+ var config$1 = {
3443
4271
  host: 'sanity-datasource.cluster-crao688bsrdh.us-east-1.rds.amazonaws.com',
3444
4272
  user: 'nasp',
3445
4273
  password: 'uRNkF9SkfXQs6AKK',
@@ -3453,7 +4281,7 @@ var getOccupation = function () {
3453
4281
  while (1) {
3454
4282
  switch (_context.prev = _context.next) {
3455
4283
  case 0:
3456
- db$1 = db(config);
4284
+ db$1 = db(config$1);
3457
4285
  query = '\n select name as label, id as value\n from occupation\n where type = ?\n ';
3458
4286
  _context.next = 4;
3459
4287
  return db$1.query(query, [type]);
@@ -3471,7 +4299,7 @@ var getOccupation = function () {
3471
4299
  return _context.stop();
3472
4300
  }
3473
4301
  }
3474
- }, _callee, _this);
4302
+ }, _callee, _this$4);
3475
4303
  }));
3476
4304
 
3477
4305
  return function getOccupation(_x) {
@@ -3486,7 +4314,7 @@ var getFieldsAndOptions = function () {
3486
4314
  while (1) {
3487
4315
  switch (_context2.prev = _context2.next) {
3488
4316
  case 0:
3489
- db$1 = db(config);
4317
+ db$1 = db(config$1);
3490
4318
  query = '\n select * \n from field\n where occupation_id = ?\n order by sorting\n ';
3491
4319
  _context2.next = 4;
3492
4320
  return db$1.query(query, [occupation]);
@@ -3534,7 +4362,7 @@ var getFieldsAndOptions = function () {
3534
4362
  return _context2.stop();
3535
4363
  }
3536
4364
  }
3537
- }, _callee2, _this);
4365
+ }, _callee2, _this$4);
3538
4366
  }));
3539
4367
 
3540
4368
  return function getFieldsAndOptions(_x2) {
@@ -3605,8 +4433,8 @@ var ProcessData = (function () {
3605
4433
  })();
3606
4434
 
3607
4435
  var LoginForm_1 = LoginForm;
3608
- var SignupForm_1 = SignupForm$1;
3609
- var ProfileForm_1 = SignupForm;
4436
+ var SignupForm_1 = SignupForm;
4437
+ var ProfileForm_1 = SignupForm$1;
3610
4438
  var AuthCookies_1 = authCookies;
3611
4439
  var AuthHooks_1 = hooks;
3612
4440
  var Iron_1 = iron;