@mjhls/mjh-framework 1.0.784 → 1.0.785-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.
- package/README.md +1 -1
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +26 -27
- package/dist/cjs/AD300x250x600.js +26 -27
- package/dist/cjs/AD728x90.js +29 -30
- package/dist/cjs/ADFloatingFooter.js +28 -29
- package/dist/cjs/ADFooter.js +14 -15
- package/dist/cjs/ADGutter.js +28 -29
- package/dist/cjs/{ADInfeed-1e53d7db.js → ADInfeed-bb09e44c.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +28 -29
- package/dist/cjs/ADSponsoredResources.js +28 -29
- package/dist/cjs/ADWebcast.js +28 -29
- package/dist/cjs/ADWelcome.js +29 -30
- package/dist/cjs/{ADlgInfeed-2494fd17.js → ADlgInfeed-fa91dbda.js} +10 -11
- package/dist/cjs/AccordionPanel.js +29 -31
- package/dist/cjs/AdSlot.js +31 -32
- package/dist/cjs/AdSlotsProvider.js +15 -16
- package/dist/cjs/AlphabeticList.js +24 -25
- package/dist/cjs/ArticleCarousel.js +23 -24
- package/dist/cjs/ArticleProgramLandingPage.js +55 -56
- package/dist/cjs/ArticleSeriesLandingPage.js +37 -38
- package/dist/cjs/ArticleSeriesListing.js +60 -61
- package/dist/cjs/Auth.js +333 -819
- package/dist/cjs/{AuthorComponent-5fa89df5.js → AuthorComponent-bb831b74.js} +13 -14
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-eca358e4.js → BlockContent-091a991f.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +27 -29
- package/dist/cjs/CMEDeck.js +82 -82
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +32 -35
- package/dist/cjs/Column3.js +54 -57
- package/dist/cjs/ConferenceArticleCard.js +23 -24
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +93 -97
- package/dist/cjs/DeckQueue.js +87 -91
- package/dist/cjs/{Dfp-a17e00fa.js → Dfp-b807d8fa.js} +31 -32
- package/dist/cjs/EventsDeck.js +131 -138
- package/dist/cjs/ExternalResources.js +78 -79
- package/dist/cjs/Feature.js +25 -27
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +177 -181
- package/dist/cjs/GridHero.js +42 -43
- package/dist/cjs/GroupDeck.js +58 -59
- package/dist/cjs/HamMagazine.js +130 -135
- package/dist/cjs/Header.js +14 -14
- package/dist/cjs/Hero.js +12 -13
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +69 -70
- package/dist/cjs/HorizontalHero.js +25 -26
- package/dist/cjs/IssueContentDeck.js +72 -77
- package/dist/cjs/IssueDeck.js +70 -75
- package/dist/cjs/IssueLanding.js +39 -40
- package/dist/cjs/LeftNav.js +35 -37
- package/dist/cjs/MasterDeck.js +69 -70
- package/dist/cjs/MediaSeriesLanding.js +38 -40
- package/dist/cjs/NavDvm.js +74 -79
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +137 -142
- package/dist/cjs/NavNative.js +126 -134
- package/dist/cjs/NavNormal.js +47 -52
- package/dist/cjs/OncliveHero.js +20 -20
- package/dist/cjs/OncliveLargeHero.js +66 -67
- package/dist/cjs/PageFilter.js +14 -15
- package/dist/cjs/PartnerDetailListing.js +105 -106
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +19 -21
- package/dist/cjs/PubSection.js +38 -39
- package/dist/cjs/PubToc.js +15 -16
- package/dist/cjs/PublicationDeck.js +61 -66
- package/dist/cjs/PublicationLanding.js +79 -83
- package/dist/cjs/QueueDeckExpanded.js +291 -291
- package/dist/cjs/RecentNews.js +23 -24
- package/dist/cjs/RelatedContent.js +24 -25
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +18 -22
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +37 -37
- package/dist/cjs/{SeriesSlider-193a2958.js → SeriesSlider-f662f1f5.js} +37 -38
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +34 -35
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-45c54bed.js → SocialSearchComponent-8dd468fd.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +57 -62
- package/dist/cjs/TaxonomyDescription.js +52 -53
- package/dist/cjs/TemplateNormal.js +72 -73
- package/dist/cjs/ThumbnailCard.js +20 -22
- package/dist/cjs/Ustream.js +26 -27
- package/dist/cjs/VerticalHero.js +17 -18
- package/dist/cjs/VideoProgramLandingPage.js +71 -75
- package/dist/cjs/VideoSeriesCard.js +31 -32
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +45 -46
- package/dist/cjs/VideoSeriesListing.js +77 -78
- package/dist/cjs/View.js +256 -259
- package/dist/cjs/YahooHero.js +39 -40
- package/dist/cjs/YoutubeGroup.js +62 -63
- package/dist/cjs/{_is-array-63ae4740.js → _is-array-754e012d.js} +6 -6
- package/dist/cjs/{_iter-detect-2613ffa1.js → _iter-detect-60b2f026.js} +2 -2
- package/dist/cjs/{_object-sap-c5bd707d.js → _object-sap-5e74ba08.js} +1 -1
- package/dist/cjs/{_object-to-array-bec5fcf2.js → _object-to-array-5762f850.js} +1 -1
- package/dist/cjs/{_to-object-821a2927.js → _to-object-329a650b.js} +4 -4
- package/dist/cjs/{asyncToGenerator-b6a175bf.js → asyncToGenerator-140e5f89.js} +7 -7
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-b4615fd3.js → core.get-iterator-method-f62321d4.js} +2 -2
- package/dist/cjs/{define-property-aff11f8a.js → define-property-f4d12f4e.js} +1 -1
- package/dist/cjs/{defineProperty-d6fbb280.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{es6.string.iterator-20d42c53.js → es6.string.iterator-cc0bbaa4.js} +2 -2
- package/dist/cjs/{extends-1e24fc8d.js → extends-0a918631.js} +2 -1
- package/dist/cjs/getRelatedArticle.js +75 -137
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +43 -43
- package/dist/cjs/{getTargeting-497b581d.js → getTargeting-67f12cd7.js} +3 -3
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-2a34c7db.js → index-00d36f50.js} +1208 -944
- package/dist/cjs/{index-4d74ffd6.js → index-3294d3bc.js} +41 -40
- package/dist/cjs/{index-0e4427c8.js → index-8bf6c863.js} +11 -12
- package/dist/cjs/{index-d48b231c.js → index-be0c82be.js} +25 -31
- package/dist/cjs/{index-80f57cff.js → index-da796b8c.js} +15 -17
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +160 -163
- package/dist/cjs/{inherits-2eb23889.js → inherits-452ff02c.js} +8 -5
- package/dist/cjs/{keys-95c064c9.js → keys-a586b7a0.js} +2 -2
- package/dist/cjs/{lodash-4ef21f0f.js → lodash-fc2922d0.js} +23 -72
- package/dist/cjs/{main-dc082238.js → main-02daeefe.js} +80 -116
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-db24842a.js → slicedToArray-8f385299.js} +4 -4
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-01cf47f7.js → stringify-7c5aff47.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-cf0865fc.js → toConsumableArray-9a3476fe.js} +4 -4
- package/dist/cjs/{typeof-97065d40.js → typeof-725500bc.js} +7 -7
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{visibility-sensor-8b54af99.js → visibility-sensor-0c45a583.js} +5 -7
- package/dist/cjs/{web.dom.iterable-4480325a.js → web.dom.iterable-a0e279c1.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +23 -23
- package/dist/esm/AD300x250x600.js +23 -23
- package/dist/esm/AD728x90.js +26 -26
- package/dist/esm/ADFloatingFooter.js +25 -25
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +25 -25
- package/dist/esm/{ADInfeed-94817c40.js → ADInfeed-0b552b0a.js} +9 -9
- package/dist/esm/ADSkyscraper.js +25 -25
- package/dist/esm/ADSponsoredResources.js +25 -25
- package/dist/esm/ADWebcast.js +25 -25
- package/dist/esm/ADWelcome.js +26 -26
- package/dist/esm/{ADlgInfeed-6124ee3c.js → ADlgInfeed-49f41f83.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +22 -22
- package/dist/esm/AdSlotsProvider.js +12 -12
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +52 -52
- package/dist/esm/ArticleSeriesLandingPage.js +34 -34
- package/dist/esm/ArticleSeriesListing.js +55 -55
- package/dist/esm/Auth.js +316 -798
- package/dist/esm/{AuthorComponent-c7ff069f.js → AuthorComponent-34b16174.js} +11 -11
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-d8cd739c.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +78 -78
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +26 -26
- package/dist/esm/Column3.js +47 -47
- package/dist/esm/ConferenceArticleCard.js +19 -19
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +75 -75
- package/dist/esm/DeckQueue.js +65 -65
- package/dist/esm/{Dfp-988dbcaa.js → Dfp-ebc4b22f.js} +21 -21
- package/dist/esm/EventsDeck.js +84 -84
- package/dist/esm/ExternalResources.js +71 -71
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +139 -139
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +46 -46
- package/dist/esm/HamMagazine.js +104 -104
- package/dist/esm/Header.js +10 -8
- package/dist/esm/Hero.js +9 -9
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +66 -66
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +49 -49
- package/dist/esm/IssueDeck.js +46 -46
- package/dist/esm/IssueLanding.js +36 -36
- package/dist/esm/LeftNav.js +31 -31
- package/dist/esm/MasterDeck.js +63 -63
- package/dist/esm/MediaSeriesLanding.js +31 -31
- package/dist/esm/NavDvm.js +56 -56
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +113 -113
- package/dist/esm/NavNative.js +99 -99
- package/dist/esm/NavNormal.js +35 -35
- package/dist/esm/OncliveHero.js +17 -16
- package/dist/esm/OncliveLargeHero.js +59 -59
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +101 -101
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +35 -35
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +38 -38
- package/dist/esm/PublicationLanding.js +54 -54
- package/dist/esm/QueueDeckExpanded.js +271 -271
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +19 -19
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +31 -31
- package/dist/esm/{SeriesSlider-6a1081ff.js → SeriesSlider-9245785f.js} +27 -27
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +30 -30
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-c3216d1a.js → SocialSearchComponent-a2ae84d1.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +41 -41
- package/dist/esm/TaxonomyDescription.js +47 -47
- package/dist/esm/TemplateNormal.js +66 -66
- package/dist/esm/ThumbnailCard.js +13 -13
- package/dist/esm/Ustream.js +23 -23
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +61 -61
- package/dist/esm/VideoSeriesCard.js +24 -24
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +38 -38
- package/dist/esm/VideoSeriesListing.js +71 -71
- package/dist/esm/View.js +240 -239
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +46 -46
- package/dist/esm/{_is-array-674f71ec.js → _is-array-58e95429.js} +6 -6
- package/dist/esm/{_iter-detect-48516cd3.js → _iter-detect-5d49a330.js} +2 -2
- package/dist/esm/{_object-sap-fd3054d0.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-8f409e54.js → _object-to-array-7e804fce.js} +1 -1
- package/dist/esm/{_to-object-97770c52.js → _to-object-a4107da3.js} +5 -5
- package/dist/esm/{asyncToGenerator-585841c0.js → asyncToGenerator-fc1c2e29.js} +7 -7
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/{core.get-iterator-method-d1d5ed02.js → core.get-iterator-method-e1de7503.js} +2 -2
- package/dist/esm/{define-property-ec6d528d.js → define-property-8af5f002.js} +1 -1
- package/dist/esm/{defineProperty-ea516b15.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{es6.string.iterator-aa6068a3.js → es6.string.iterator-c990c18c.js} +3 -3
- package/dist/esm/{extends-31d65aba.js → extends-6f2fcc99.js} +2 -2
- package/dist/esm/getRelatedArticle.js +70 -132
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +43 -43
- package/dist/esm/{getTargeting-2d402d66.js → getTargeting-ed6ebf43.js} +2 -2
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-752d1dae.js → index-5f9f807a.js} +10 -10
- package/dist/esm/{index-f42d71f0.js → index-728dd91f.js} +1151 -880
- package/dist/esm/{index-3f5c03b2.js → index-73819142.js} +25 -31
- package/dist/esm/{index-888f9253.js → index-a9e53f80.js} +6 -6
- package/dist/esm/{index-ccb770c7.js → index-ef6d5dcf.js} +41 -40
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-d6f88d94.js → index.esm-b08f4b04.js} +9 -4
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +129 -129
- package/dist/esm/{inherits-5906fbea.js → inherits-cf8dde54.js} +6 -6
- package/dist/esm/{keys-a0b0c7a4.js → keys-8eda7a5c.js} +2 -2
- package/dist/esm/{lodash-ad27652f.js → lodash-17fdfebb.js} +23 -72
- package/dist/esm/{main-1450d277.js → main-e4a934b2.js} +78 -113
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
- package/dist/esm/{slicedToArray-cdeaee08.js → slicedToArray-641f241f.js} +4 -4
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/{stringify-d4839bab.js → stringify-4330ccdc.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-fa2dcda7.js → toConsumableArray-43aa614d.js} +4 -4
- package/dist/esm/{typeof-e9cea9e8.js → typeof-6435ba1c.js} +7 -7
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{visibility-sensor-082c757b.js → visibility-sensor-0baa4eea.js} +2 -2
- package/dist/esm/{web.dom.iterable-035980f3.js → web.dom.iterable-4439f05a.js} +3 -3
- package/package.json +2 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
package/dist/cjs/Auth.js
CHANGED
|
@@ -2,34 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var slicedToArray = require('./slicedToArray-db24842a.js');
|
|
8
|
-
var React = require('react');
|
|
9
|
-
var Router = require('next/router');
|
|
10
|
-
var _extends = require('./extends-1e24fc8d.js');
|
|
11
|
-
var reactBootstrap = require('react-bootstrap');
|
|
12
|
-
var useSWR = require('swr');
|
|
13
|
-
var index = require('./index-bd6c9f56.js');
|
|
14
|
-
var Local = require('passport-local');
|
|
15
|
-
var mysql = require('mysql');
|
|
16
|
-
var util = require('./util-6f784d85.js');
|
|
5
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
6
|
+
|
|
17
7
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
18
|
-
require('./
|
|
19
|
-
require('./
|
|
20
|
-
require('./web.dom.iterable-4480325a.js');
|
|
8
|
+
require('./_to-object-329a650b.js');
|
|
9
|
+
require('./es6.string.iterator-cc0bbaa4.js');
|
|
21
10
|
require('./_library-dd23b178.js');
|
|
22
|
-
require('./
|
|
23
|
-
require('./
|
|
11
|
+
require('./_iter-detect-60b2f026.js');
|
|
12
|
+
require('./core.get-iterator-method-f62321d4.js');
|
|
24
13
|
require('./_object-pie-68c5bcbc.js');
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
var React__default =
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var
|
|
14
|
+
var _extends$1 = require('./extends-0a918631.js');
|
|
15
|
+
require('./web.dom.iterable-a0e279c1.js');
|
|
16
|
+
var React = require('react');
|
|
17
|
+
var React__default = _interopDefault(React);
|
|
18
|
+
var Router = require('next/router');
|
|
19
|
+
var Router__default = _interopDefault(Router);
|
|
20
|
+
var slicedToArray = require('./slicedToArray-8f385299.js');
|
|
21
|
+
var stringify = require('./stringify-7c5aff47.js');
|
|
22
|
+
var asyncToGenerator = require('./asyncToGenerator-140e5f89.js');
|
|
23
|
+
var reactBootstrap = require('react-bootstrap');
|
|
24
|
+
var util = require('./util-f2c1b65b.js');
|
|
25
|
+
var index$5 = require('./index-bd6c9f56.js');
|
|
26
|
+
var useSWR = _interopDefault(require('swr'));
|
|
27
|
+
var Local = _interopDefault(require('passport-local'));
|
|
28
|
+
var mysql = _interopDefault(require('mysql'));
|
|
33
29
|
|
|
34
30
|
var returnFormField = function returnFormField(_ref) {
|
|
35
31
|
var name = _ref.name,
|
|
@@ -68,21 +64,21 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
68
64
|
}
|
|
69
65
|
|
|
70
66
|
if (type == 'text' || type == 'email' || type == 'password' || type == 'number') {
|
|
71
|
-
return React__default
|
|
67
|
+
return React__default.createElement(
|
|
72
68
|
reactBootstrap.Form.Group,
|
|
73
|
-
_extends._extends({}, opts, { controlId: name }),
|
|
74
|
-
React__default
|
|
69
|
+
_extends$1._extends({}, opts, { controlId: name }),
|
|
70
|
+
React__default.createElement(
|
|
75
71
|
reactBootstrap.Form.Label,
|
|
76
72
|
{ kye: name + '_label' },
|
|
77
73
|
label,
|
|
78
|
-
required && React__default
|
|
74
|
+
required && React__default.createElement(
|
|
79
75
|
'span',
|
|
80
76
|
{ style: { color: 'red' } },
|
|
81
77
|
'*'
|
|
82
78
|
)
|
|
83
79
|
),
|
|
84
|
-
React__default
|
|
85
|
-
React__default
|
|
80
|
+
React__default.createElement(reactBootstrap.Form.Control, { key: name + '_' + type, type: type, readOnly: readonly, name: name, placeholder: '', defaultValue: default_value, required: required }),
|
|
81
|
+
React__default.createElement(
|
|
86
82
|
reactBootstrap.Form.Control.Feedback,
|
|
87
83
|
{ key: name + '_feedback', type: 'invalid' },
|
|
88
84
|
errors[name]
|
|
@@ -90,28 +86,28 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
90
86
|
);
|
|
91
87
|
}
|
|
92
88
|
if (type == 'select') {
|
|
93
|
-
return React__default
|
|
89
|
+
return React__default.createElement(
|
|
94
90
|
reactBootstrap.Form.Group,
|
|
95
|
-
_extends._extends({}, opts, { key: name, controlId: name }),
|
|
96
|
-
React__default
|
|
91
|
+
_extends$1._extends({}, opts, { key: name, controlId: name }),
|
|
92
|
+
React__default.createElement(
|
|
97
93
|
reactBootstrap.Form.Label,
|
|
98
94
|
{ key: name + '_' + label },
|
|
99
95
|
label,
|
|
100
|
-
required && React__default
|
|
96
|
+
required && React__default.createElement(
|
|
101
97
|
'span',
|
|
102
98
|
{ key: name + '_required_span', style: { color: 'red' } },
|
|
103
99
|
'*'
|
|
104
100
|
)
|
|
105
101
|
),
|
|
106
|
-
React__default
|
|
102
|
+
React__default.createElement(
|
|
107
103
|
reactBootstrap.Form.Control,
|
|
108
104
|
{ key: name + '_select', as: 'select', name: name, required: required, defaultValue: default_value },
|
|
109
|
-
React__default
|
|
105
|
+
React__default.createElement('option', { value: '', key: name + '_options_empty' }),
|
|
110
106
|
options.map(function (option, index) {
|
|
111
107
|
var value = option.value ? option.value : option;
|
|
112
108
|
var label = option.label ? option.label : option;
|
|
113
109
|
var key = name + '_options_' + index;
|
|
114
|
-
return React__default
|
|
110
|
+
return React__default.createElement(
|
|
115
111
|
'option',
|
|
116
112
|
{ key: key, value: value },
|
|
117
113
|
label
|
|
@@ -122,25 +118,25 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
122
118
|
}
|
|
123
119
|
|
|
124
120
|
if (type == 'radio' || type == 'checkbox') {
|
|
125
|
-
return React__default
|
|
121
|
+
return React__default.createElement(
|
|
126
122
|
reactBootstrap.Form.Group,
|
|
127
123
|
opts,
|
|
128
|
-
React__default
|
|
124
|
+
React__default.createElement(
|
|
129
125
|
reactBootstrap.Form.Label,
|
|
130
126
|
null,
|
|
131
127
|
label,
|
|
132
|
-
required && React__default
|
|
128
|
+
required && React__default.createElement(
|
|
133
129
|
'span',
|
|
134
130
|
{ style: { color: 'red' } },
|
|
135
131
|
'*'
|
|
136
132
|
)
|
|
137
133
|
),
|
|
138
134
|
options.map(function (option, index) {
|
|
139
|
-
return React__default
|
|
135
|
+
return React__default.createElement(
|
|
140
136
|
reactBootstrap.Form.Check,
|
|
141
137
|
{ type: type, key: index, required: required },
|
|
142
|
-
React__default
|
|
143
|
-
React__default
|
|
138
|
+
React__default.createElement(reactBootstrap.Form.Check.Input, { type: type, key: type + '_' + index + '_input', defaultChecked: default_value ? default_value === option.value : false, name: name, id: name + '_' + index, value: option.value, required: required }),
|
|
139
|
+
React__default.createElement(reactBootstrap.Form.Check.Label, { style: { cursor: 'pointer' }, 'for': name + '_' + index, key: type + '_' + index + '_label', dangerouslySetInnerHTML: { __html: option.label } })
|
|
144
140
|
);
|
|
145
141
|
})
|
|
146
142
|
);
|
|
@@ -226,7 +222,7 @@ function useUser() {
|
|
|
226
222
|
redirectTo = _ref.redirectTo,
|
|
227
223
|
redirectIfFound = _ref.redirectIfFound;
|
|
228
224
|
|
|
229
|
-
var _useSWR =
|
|
225
|
+
var _useSWR = useSWR('/api/auth/user', dataHandler),
|
|
230
226
|
data = _useSWR.data,
|
|
231
227
|
error = _useSWR.error;
|
|
232
228
|
|
|
@@ -241,7 +237,7 @@ function useUser() {
|
|
|
241
237
|
redirectTo && !redirectIfFound && !hasUser ||
|
|
242
238
|
// If redirectIfFound is also set, redirect if the user was found
|
|
243
239
|
redirectIfFound && hasUser) {
|
|
244
|
-
Router__default
|
|
240
|
+
Router__default.push(redirectTo);
|
|
245
241
|
}
|
|
246
242
|
}, [redirectTo, redirectIfFound, finished, hasUser]);
|
|
247
243
|
|
|
@@ -347,43 +343,43 @@ var LoginForm = function LoginForm(props) {
|
|
|
347
343
|
loading = _useState4[0],
|
|
348
344
|
setLoading = _useState4[1];
|
|
349
345
|
|
|
350
|
-
return React__default
|
|
346
|
+
return React__default.createElement(
|
|
351
347
|
reactBootstrap.Form,
|
|
352
348
|
{ className: 'login', onSubmit: handleSubmit },
|
|
353
|
-
React__default
|
|
349
|
+
React__default.createElement(
|
|
354
350
|
'h1',
|
|
355
351
|
null,
|
|
356
352
|
'Login'
|
|
357
353
|
),
|
|
358
|
-
React__default
|
|
354
|
+
React__default.createElement('hr', null),
|
|
359
355
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
|
|
360
356
|
returnFormField({ name: 'password', label: 'Password', type: 'password', required: true }),
|
|
361
|
-
React__default
|
|
362
|
-
React__default
|
|
357
|
+
React__default.createElement('hr', null),
|
|
358
|
+
React__default.createElement(
|
|
363
359
|
reactBootstrap.Form.Row,
|
|
364
360
|
null,
|
|
365
|
-
React__default
|
|
361
|
+
React__default.createElement(
|
|
366
362
|
reactBootstrap.Form.Group,
|
|
367
363
|
{ as: reactBootstrap.Col },
|
|
368
|
-
React__default
|
|
364
|
+
React__default.createElement(
|
|
369
365
|
'a',
|
|
370
366
|
{ href: '/auth/signup' },
|
|
371
367
|
'I don\'t have an account'
|
|
372
368
|
)
|
|
373
369
|
),
|
|
374
|
-
React__default
|
|
370
|
+
React__default.createElement(
|
|
375
371
|
reactBootstrap.Form.Group,
|
|
376
372
|
{ as: reactBootstrap.Col, className: 'text-right' },
|
|
377
|
-
!loading && React__default
|
|
373
|
+
!loading && React__default.createElement(
|
|
378
374
|
reactBootstrap.Button,
|
|
379
375
|
{ type: 'submit' },
|
|
380
376
|
'Login'
|
|
381
377
|
),
|
|
382
|
-
loading && React__default
|
|
378
|
+
loading && React__default.createElement(
|
|
383
379
|
reactBootstrap.Button,
|
|
384
380
|
{ variant: 'primary', disabled: true },
|
|
385
|
-
React__default
|
|
386
|
-
React__default
|
|
381
|
+
React__default.createElement(reactBootstrap.Spinner, { as: 'span', animation: 'border', role: 'status', 'aria-hidden': 'true', size: 'sm' }),
|
|
382
|
+
React__default.createElement(
|
|
387
383
|
'span',
|
|
388
384
|
{ className: 'sr-only' },
|
|
389
385
|
'Loading...'
|
|
@@ -391,12 +387,12 @@ var LoginForm = function LoginForm(props) {
|
|
|
391
387
|
)
|
|
392
388
|
)
|
|
393
389
|
),
|
|
394
|
-
errorMsg && React__default
|
|
390
|
+
errorMsg && React__default.createElement(
|
|
395
391
|
'p',
|
|
396
392
|
{ className: 'error' },
|
|
397
393
|
errorMsg
|
|
398
394
|
),
|
|
399
|
-
React__default
|
|
395
|
+
React__default.createElement(
|
|
400
396
|
'style',
|
|
401
397
|
{ jsx: 'true'.toString() },
|
|
402
398
|
'\n .login {\n margin: 0 auto;\n padding: 1rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n }\n .error {\n color: red;\n margin: 1rem 0 0;\n }\n '
|
|
@@ -652,29 +648,29 @@ var SignupForm = function SignupForm(props) {
|
|
|
652
648
|
loading = _useState14[0],
|
|
653
649
|
setLoading = _useState14[1];
|
|
654
650
|
|
|
655
|
-
return React__default
|
|
651
|
+
return React__default.createElement(
|
|
656
652
|
reactBootstrap.Form,
|
|
657
653
|
{ className: 'login', id: 'signupForm', onSubmit: handleSubmit },
|
|
658
|
-
React__default
|
|
654
|
+
React__default.createElement(
|
|
659
655
|
'h1',
|
|
660
656
|
null,
|
|
661
657
|
'Sign Up'
|
|
662
658
|
),
|
|
663
|
-
React__default
|
|
659
|
+
React__default.createElement('hr', null),
|
|
664
660
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
|
|
665
|
-
React__default
|
|
661
|
+
React__default.createElement(
|
|
666
662
|
reactBootstrap.Form.Row,
|
|
667
663
|
null,
|
|
668
664
|
returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: reactBootstrap.Col, required: true }),
|
|
669
665
|
returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: reactBootstrap.Col, required: true })
|
|
670
666
|
),
|
|
671
|
-
React__default
|
|
667
|
+
React__default.createElement(
|
|
672
668
|
reactBootstrap.Form.Row,
|
|
673
669
|
null,
|
|
674
670
|
returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: reactBootstrap.Col, required: true }),
|
|
675
671
|
returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: reactBootstrap.Col, required: true })
|
|
676
672
|
),
|
|
677
|
-
React__default
|
|
673
|
+
React__default.createElement(
|
|
678
674
|
reactBootstrap.Form.Row,
|
|
679
675
|
null,
|
|
680
676
|
returnFormField({
|
|
@@ -688,7 +684,7 @@ var SignupForm = function SignupForm(props) {
|
|
|
688
684
|
}),
|
|
689
685
|
countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: reactBootstrap.Col, options: states })
|
|
690
686
|
),
|
|
691
|
-
React__default
|
|
687
|
+
React__default.createElement(
|
|
692
688
|
reactBootstrap.Form.Row,
|
|
693
689
|
null,
|
|
694
690
|
countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: reactBootstrap.Col }),
|
|
@@ -735,38 +731,38 @@ var SignupForm = function SignupForm(props) {
|
|
|
735
731
|
required: true,
|
|
736
732
|
options: [{ label: 'By registering you agree to our <a href="/terms" style="color:blue">Terms and Conditions</a> and <a href="/privacy" style="color:blue">Privacy Policy</a> and understand that you will be receiving email communications', value: 'Y' }]
|
|
737
733
|
}),
|
|
738
|
-
React__default
|
|
739
|
-
React__default
|
|
734
|
+
React__default.createElement('hr', null),
|
|
735
|
+
React__default.createElement(
|
|
740
736
|
reactBootstrap.Form.Row,
|
|
741
737
|
null,
|
|
742
|
-
React__default
|
|
738
|
+
React__default.createElement(
|
|
743
739
|
reactBootstrap.Form.Group,
|
|
744
740
|
{ as: reactBootstrap.Col },
|
|
745
|
-
React__default
|
|
741
|
+
React__default.createElement(
|
|
746
742
|
'a',
|
|
747
743
|
{ href: '/auth/login' },
|
|
748
744
|
'I already have an account'
|
|
749
745
|
)
|
|
750
746
|
),
|
|
751
|
-
React__default
|
|
747
|
+
React__default.createElement(
|
|
752
748
|
reactBootstrap.Form.Group,
|
|
753
749
|
{ as: reactBootstrap.Col, className: 'text-right' },
|
|
754
|
-
!loading && React__default
|
|
750
|
+
!loading && React__default.createElement(
|
|
755
751
|
reactBootstrap.Button,
|
|
756
752
|
{ type: 'submit' },
|
|
757
753
|
'Sign Up'
|
|
758
754
|
),
|
|
759
|
-
loading && React__default
|
|
755
|
+
loading && React__default.createElement(
|
|
760
756
|
reactBootstrap.Button,
|
|
761
757
|
{ variant: 'primary', disabled: true },
|
|
762
|
-
React__default
|
|
758
|
+
React__default.createElement(reactBootstrap.Spinner, {
|
|
763
759
|
as: 'span',
|
|
764
760
|
animation: 'border',
|
|
765
761
|
role: 'status',
|
|
766
762
|
'aria-hidden': 'true',
|
|
767
763
|
size: 'sm'
|
|
768
764
|
}),
|
|
769
|
-
React__default
|
|
765
|
+
React__default.createElement(
|
|
770
766
|
'span',
|
|
771
767
|
{ className: 'sr-only' },
|
|
772
768
|
'Loading...'
|
|
@@ -774,12 +770,12 @@ var SignupForm = function SignupForm(props) {
|
|
|
774
770
|
)
|
|
775
771
|
)
|
|
776
772
|
),
|
|
777
|
-
errorMsg && React__default
|
|
773
|
+
errorMsg && React__default.createElement(
|
|
778
774
|
'p',
|
|
779
775
|
{ className: 'error' },
|
|
780
776
|
errorMsg
|
|
781
777
|
),
|
|
782
|
-
React__default
|
|
778
|
+
React__default.createElement(
|
|
783
779
|
'style',
|
|
784
780
|
{ jsx: 'true'.toString() },
|
|
785
781
|
' \n .login {\n margin: 0 auto;\n padding: 1rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n }\n .error {\n color: red;\n margin: 1rem 0 0;\n }\n '
|
|
@@ -1069,32 +1065,32 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1069
1065
|
loading = _useState18[0],
|
|
1070
1066
|
setLoading = _useState18[1];
|
|
1071
1067
|
|
|
1072
|
-
return React__default
|
|
1068
|
+
return React__default.createElement(
|
|
1073
1069
|
reactBootstrap.Form,
|
|
1074
1070
|
{ className: 'login', id: 'signupForm', onSubmit: handleSubmit },
|
|
1075
|
-
React__default
|
|
1071
|
+
React__default.createElement(
|
|
1076
1072
|
'h1',
|
|
1077
1073
|
null,
|
|
1078
1074
|
'Profile'
|
|
1079
1075
|
),
|
|
1080
|
-
React__default
|
|
1081
|
-
userData ? React__default
|
|
1082
|
-
React__default
|
|
1076
|
+
React__default.createElement('hr', null),
|
|
1077
|
+
userData ? React__default.createElement(
|
|
1078
|
+
React__default.Fragment,
|
|
1083
1079
|
null,
|
|
1084
1080
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true, readonly: true, default_value: userData.email }),
|
|
1085
|
-
React__default
|
|
1081
|
+
React__default.createElement(
|
|
1086
1082
|
reactBootstrap.Form.Row,
|
|
1087
1083
|
null,
|
|
1088
1084
|
returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: reactBootstrap.Col, required: false }),
|
|
1089
1085
|
returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: reactBootstrap.Col, required: false })
|
|
1090
1086
|
),
|
|
1091
|
-
React__default
|
|
1087
|
+
React__default.createElement(
|
|
1092
1088
|
reactBootstrap.Form.Row,
|
|
1093
1089
|
null,
|
|
1094
1090
|
returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: reactBootstrap.Col, required: true, default_value: userData.shared.first_name }),
|
|
1095
1091
|
returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: reactBootstrap.Col, required: true, default_value: userData.shared.last_name })
|
|
1096
1092
|
),
|
|
1097
|
-
React__default
|
|
1093
|
+
React__default.createElement(
|
|
1098
1094
|
reactBootstrap.Form.Row,
|
|
1099
1095
|
null,
|
|
1100
1096
|
returnFormField({
|
|
@@ -1109,7 +1105,7 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1109
1105
|
}),
|
|
1110
1106
|
countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: reactBootstrap.Col, options: states, default_value: userData.shared.state })
|
|
1111
1107
|
),
|
|
1112
|
-
React__default
|
|
1108
|
+
React__default.createElement(
|
|
1113
1109
|
reactBootstrap.Form.Row,
|
|
1114
1110
|
null,
|
|
1115
1111
|
countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: reactBootstrap.Col, default_value: userData.shared.zip }),
|
|
@@ -1159,29 +1155,29 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1159
1155
|
required: true,
|
|
1160
1156
|
options: [{ label: 'By registering you agree to our <a href="/terms">Terms and Conditions</a> and <a href="/privacy">Privacy Policy</a> and understand that you will be receiving email communications', value: 'Y' }]
|
|
1161
1157
|
}),
|
|
1162
|
-
React__default
|
|
1163
|
-
React__default
|
|
1158
|
+
React__default.createElement('hr', null),
|
|
1159
|
+
React__default.createElement(
|
|
1164
1160
|
reactBootstrap.Form.Row,
|
|
1165
1161
|
null,
|
|
1166
|
-
React__default
|
|
1162
|
+
React__default.createElement(
|
|
1167
1163
|
reactBootstrap.Form.Group,
|
|
1168
1164
|
{ as: reactBootstrap.Col },
|
|
1169
|
-
!loading && React__default
|
|
1165
|
+
!loading && React__default.createElement(
|
|
1170
1166
|
reactBootstrap.Button,
|
|
1171
1167
|
{ type: 'submit' },
|
|
1172
1168
|
'Update'
|
|
1173
1169
|
),
|
|
1174
|
-
loading && React__default
|
|
1170
|
+
loading && React__default.createElement(
|
|
1175
1171
|
reactBootstrap.Button,
|
|
1176
1172
|
{ variant: 'primary', disabled: true },
|
|
1177
|
-
React__default
|
|
1173
|
+
React__default.createElement(reactBootstrap.Spinner, {
|
|
1178
1174
|
as: 'span',
|
|
1179
1175
|
animation: 'border',
|
|
1180
1176
|
role: 'status',
|
|
1181
1177
|
'aria-hidden': 'true',
|
|
1182
1178
|
size: 'sm'
|
|
1183
1179
|
}),
|
|
1184
|
-
React__default
|
|
1180
|
+
React__default.createElement(
|
|
1185
1181
|
'span',
|
|
1186
1182
|
{ className: 'sr-only' },
|
|
1187
1183
|
'Loading...'
|
|
@@ -1189,24 +1185,24 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1189
1185
|
)
|
|
1190
1186
|
)
|
|
1191
1187
|
)
|
|
1192
|
-
) : React__default
|
|
1188
|
+
) : React__default.createElement(reactBootstrap.Spinner, {
|
|
1193
1189
|
as: 'span',
|
|
1194
1190
|
animation: 'border',
|
|
1195
1191
|
role: 'status',
|
|
1196
1192
|
'aria-hidden': 'true',
|
|
1197
1193
|
size: 'sm'
|
|
1198
1194
|
}),
|
|
1199
|
-
errorMsg && React__default
|
|
1195
|
+
errorMsg && React__default.createElement(
|
|
1200
1196
|
'p',
|
|
1201
1197
|
{ className: 'error' },
|
|
1202
1198
|
errorMsg
|
|
1203
1199
|
),
|
|
1204
|
-
successMsg && React__default
|
|
1200
|
+
successMsg && React__default.createElement(
|
|
1205
1201
|
'p',
|
|
1206
1202
|
{ className: 'success' },
|
|
1207
1203
|
successMsg
|
|
1208
1204
|
),
|
|
1209
|
-
React__default
|
|
1205
|
+
React__default.createElement(
|
|
1210
1206
|
'style',
|
|
1211
1207
|
{ jsx: 'true'.toString() },
|
|
1212
1208
|
' \n .login {\n margin: 0 auto;\n padding: 1rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n }\n .error {\n color: red;\n margin: 1rem 0 0;\n }\n .success {\n color: green;\n margin: 1rem 0 0;\n }\n '
|
|
@@ -1219,7 +1215,7 @@ var MAX_AGE = 60 * 60 * 8; // 8 hours
|
|
|
1219
1215
|
|
|
1220
1216
|
function setTokenCookie(res, token, eKey) {
|
|
1221
1217
|
var cookies_serailized = [];
|
|
1222
|
-
cookies_serailized.push(index.serialize_1(TOKEN_NAME, token, {
|
|
1218
|
+
cookies_serailized.push(index$5.serialize_1(TOKEN_NAME, token, {
|
|
1223
1219
|
//maxAge: MAX_AGE, // we want login cookie to expire when browser
|
|
1224
1220
|
//expires: new Date(Date.now() + MAX_AGE * 1000),
|
|
1225
1221
|
//httpOnly: true,
|
|
@@ -1228,7 +1224,7 @@ function setTokenCookie(res, token, eKey) {
|
|
|
1228
1224
|
//sameSite: 'lax',
|
|
1229
1225
|
}));
|
|
1230
1226
|
|
|
1231
|
-
cookies_serailized.push(index.serialize_1('eKey', eKey, {
|
|
1227
|
+
cookies_serailized.push(index$5.serialize_1('eKey', eKey, {
|
|
1232
1228
|
//maxAge: MAX_AGE, // we want login cookie to expire when browser
|
|
1233
1229
|
//expires: new Date(Date.now() + MAX_AGE * 1000),
|
|
1234
1230
|
//httpOnly: true,
|
|
@@ -1242,12 +1238,12 @@ function setTokenCookie(res, token, eKey) {
|
|
|
1242
1238
|
|
|
1243
1239
|
function removeTokenCookie(res) {
|
|
1244
1240
|
var cookies_serailized = [];
|
|
1245
|
-
cookies_serailized.push(index.serialize_1(TOKEN_NAME, '', {
|
|
1241
|
+
cookies_serailized.push(index$5.serialize_1(TOKEN_NAME, '', {
|
|
1246
1242
|
maxAge: -1,
|
|
1247
1243
|
expires: new Date(Date.now() - MAX_AGE * 1000),
|
|
1248
1244
|
path: '/'
|
|
1249
1245
|
}));
|
|
1250
|
-
cookies_serailized.push(index.serialize_1('eKey', '', {
|
|
1246
|
+
cookies_serailized.push(index$5.serialize_1('eKey', '', {
|
|
1251
1247
|
maxAge: -1,
|
|
1252
1248
|
expires: new Date(Date.now() - MAX_AGE * 1000),
|
|
1253
1249
|
path: '/'
|
|
@@ -1262,7 +1258,7 @@ function parseCookies(req) {
|
|
|
1262
1258
|
|
|
1263
1259
|
// For pages we do need to parse the cookies.
|
|
1264
1260
|
var cookie = req.headers ? req.headers.cookie : null;
|
|
1265
|
-
return index.parse_1(cookie || '');
|
|
1261
|
+
return index$5.parse_1(cookie || '');
|
|
1266
1262
|
}
|
|
1267
1263
|
|
|
1268
1264
|
function getTokenCookie(req) {
|
|
@@ -1548,59 +1544,6 @@ defineProperties.supportsDescriptors = !!supportsDescriptors;
|
|
|
1548
1544
|
|
|
1549
1545
|
var defineProperties_1 = defineProperties;
|
|
1550
1546
|
|
|
1551
|
-
/* eslint no-invalid-this: 1 */
|
|
1552
|
-
|
|
1553
|
-
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
1554
|
-
var slice$1 = Array.prototype.slice;
|
|
1555
|
-
var toStr$3 = Object.prototype.toString;
|
|
1556
|
-
var funcType = '[object Function]';
|
|
1557
|
-
|
|
1558
|
-
var implementation$1 = function bind(that) {
|
|
1559
|
-
var target = this;
|
|
1560
|
-
if (typeof target !== 'function' || toStr$3.call(target) !== funcType) {
|
|
1561
|
-
throw new TypeError(ERROR_MESSAGE + target);
|
|
1562
|
-
}
|
|
1563
|
-
var args = slice$1.call(arguments, 1);
|
|
1564
|
-
|
|
1565
|
-
var bound;
|
|
1566
|
-
var binder = function () {
|
|
1567
|
-
if (this instanceof bound) {
|
|
1568
|
-
var result = target.apply(
|
|
1569
|
-
this,
|
|
1570
|
-
args.concat(slice$1.call(arguments))
|
|
1571
|
-
);
|
|
1572
|
-
if (Object(result) === result) {
|
|
1573
|
-
return result;
|
|
1574
|
-
}
|
|
1575
|
-
return this;
|
|
1576
|
-
} else {
|
|
1577
|
-
return target.apply(
|
|
1578
|
-
that,
|
|
1579
|
-
args.concat(slice$1.call(arguments))
|
|
1580
|
-
);
|
|
1581
|
-
}
|
|
1582
|
-
};
|
|
1583
|
-
|
|
1584
|
-
var boundLength = Math.max(0, target.length - args.length);
|
|
1585
|
-
var boundArgs = [];
|
|
1586
|
-
for (var i = 0; i < boundLength; i++) {
|
|
1587
|
-
boundArgs.push('$' + i);
|
|
1588
|
-
}
|
|
1589
|
-
|
|
1590
|
-
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
1591
|
-
|
|
1592
|
-
if (target.prototype) {
|
|
1593
|
-
var Empty = function Empty() {};
|
|
1594
|
-
Empty.prototype = target.prototype;
|
|
1595
|
-
bound.prototype = new Empty();
|
|
1596
|
-
Empty.prototype = null;
|
|
1597
|
-
}
|
|
1598
|
-
|
|
1599
|
-
return bound;
|
|
1600
|
-
};
|
|
1601
|
-
|
|
1602
|
-
var functionBind = Function.prototype.bind || implementation$1;
|
|
1603
|
-
|
|
1604
1547
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
1605
1548
|
var shams = function hasSymbols() {
|
|
1606
1549
|
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
@@ -1654,21 +1597,68 @@ var hasSymbols$1 = function hasNativeSymbols() {
|
|
|
1654
1597
|
return shams();
|
|
1655
1598
|
};
|
|
1656
1599
|
|
|
1657
|
-
|
|
1600
|
+
/* eslint no-invalid-this: 1 */
|
|
1658
1601
|
|
|
1659
|
-
var
|
|
1602
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
1603
|
+
var slice$1 = Array.prototype.slice;
|
|
1604
|
+
var toStr$3 = Object.prototype.toString;
|
|
1605
|
+
var funcType = '[object Function]';
|
|
1660
1606
|
|
|
1661
|
-
var $
|
|
1662
|
-
var
|
|
1663
|
-
|
|
1607
|
+
var implementation$1 = function bind(that) {
|
|
1608
|
+
var target = this;
|
|
1609
|
+
if (typeof target !== 'function' || toStr$3.call(target) !== funcType) {
|
|
1610
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
1611
|
+
}
|
|
1612
|
+
var args = slice$1.call(arguments, 1);
|
|
1664
1613
|
|
|
1665
|
-
|
|
1666
|
-
var
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1614
|
+
var bound;
|
|
1615
|
+
var binder = function () {
|
|
1616
|
+
if (this instanceof bound) {
|
|
1617
|
+
var result = target.apply(
|
|
1618
|
+
this,
|
|
1619
|
+
args.concat(slice$1.call(arguments))
|
|
1620
|
+
);
|
|
1621
|
+
if (Object(result) === result) {
|
|
1622
|
+
return result;
|
|
1623
|
+
}
|
|
1624
|
+
return this;
|
|
1625
|
+
} else {
|
|
1626
|
+
return target.apply(
|
|
1627
|
+
that,
|
|
1628
|
+
args.concat(slice$1.call(arguments))
|
|
1629
|
+
);
|
|
1630
|
+
}
|
|
1631
|
+
};
|
|
1632
|
+
|
|
1633
|
+
var boundLength = Math.max(0, target.length - args.length);
|
|
1634
|
+
var boundArgs = [];
|
|
1635
|
+
for (var i = 0; i < boundLength; i++) {
|
|
1636
|
+
boundArgs.push('$' + i);
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
1640
|
+
|
|
1641
|
+
if (target.prototype) {
|
|
1642
|
+
var Empty = function Empty() {};
|
|
1643
|
+
Empty.prototype = target.prototype;
|
|
1644
|
+
bound.prototype = new Empty();
|
|
1645
|
+
Empty.prototype = null;
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
return bound;
|
|
1670
1649
|
};
|
|
1671
1650
|
|
|
1651
|
+
var functionBind = Function.prototype.bind || implementation$1;
|
|
1652
|
+
|
|
1653
|
+
/* globals
|
|
1654
|
+
Atomics,
|
|
1655
|
+
SharedArrayBuffer,
|
|
1656
|
+
*/
|
|
1657
|
+
|
|
1658
|
+
var undefined$1;
|
|
1659
|
+
|
|
1660
|
+
var $TypeError = TypeError;
|
|
1661
|
+
|
|
1672
1662
|
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
1673
1663
|
if ($gOPD) {
|
|
1674
1664
|
try {
|
|
@@ -1678,9 +1668,7 @@ if ($gOPD) {
|
|
|
1678
1668
|
}
|
|
1679
1669
|
}
|
|
1680
1670
|
|
|
1681
|
-
var throwTypeError = function () {
|
|
1682
|
-
throw new $TypeError();
|
|
1683
|
-
};
|
|
1671
|
+
var throwTypeError = function () { throw new $TypeError(); };
|
|
1684
1672
|
var ThrowTypeError = $gOPD
|
|
1685
1673
|
? (function () {
|
|
1686
1674
|
try {
|
|
@@ -1701,351 +1689,203 @@ var ThrowTypeError = $gOPD
|
|
|
1701
1689
|
var hasSymbols$2 = hasSymbols$1();
|
|
1702
1690
|
|
|
1703
1691
|
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
1704
|
-
|
|
1705
|
-
var
|
|
1692
|
+
var generatorFunction = undefined$1;
|
|
1693
|
+
var asyncFunction = undefined$1;
|
|
1694
|
+
var asyncGenFunction = undefined$1;
|
|
1706
1695
|
|
|
1707
1696
|
var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
|
|
1708
1697
|
|
|
1709
1698
|
var INTRINSICS = {
|
|
1710
|
-
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
|
|
1711
1699
|
'%Array%': Array,
|
|
1712
1700
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
|
|
1701
|
+
'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer.prototype,
|
|
1713
1702
|
'%ArrayIteratorPrototype%': hasSymbols$2 ? getProto([][Symbol.iterator]()) : undefined$1,
|
|
1703
|
+
'%ArrayPrototype%': Array.prototype,
|
|
1704
|
+
'%ArrayProto_entries%': Array.prototype.entries,
|
|
1705
|
+
'%ArrayProto_forEach%': Array.prototype.forEach,
|
|
1706
|
+
'%ArrayProto_keys%': Array.prototype.keys,
|
|
1707
|
+
'%ArrayProto_values%': Array.prototype.values,
|
|
1714
1708
|
'%AsyncFromSyncIteratorPrototype%': undefined$1,
|
|
1715
|
-
'%AsyncFunction%':
|
|
1716
|
-
'%
|
|
1717
|
-
'%
|
|
1718
|
-
'%
|
|
1709
|
+
'%AsyncFunction%': asyncFunction,
|
|
1710
|
+
'%AsyncFunctionPrototype%': undefined$1,
|
|
1711
|
+
'%AsyncGenerator%': undefined$1,
|
|
1712
|
+
'%AsyncGeneratorFunction%': asyncGenFunction,
|
|
1713
|
+
'%AsyncGeneratorPrototype%': undefined$1,
|
|
1714
|
+
'%AsyncIteratorPrototype%': undefined$1,
|
|
1719
1715
|
'%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
|
|
1720
|
-
'%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
|
|
1721
1716
|
'%Boolean%': Boolean,
|
|
1717
|
+
'%BooleanPrototype%': Boolean.prototype,
|
|
1722
1718
|
'%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
|
|
1719
|
+
'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$1 : DataView.prototype,
|
|
1723
1720
|
'%Date%': Date,
|
|
1721
|
+
'%DatePrototype%': Date.prototype,
|
|
1724
1722
|
'%decodeURI%': decodeURI,
|
|
1725
1723
|
'%decodeURIComponent%': decodeURIComponent,
|
|
1726
1724
|
'%encodeURI%': encodeURI,
|
|
1727
1725
|
'%encodeURIComponent%': encodeURIComponent,
|
|
1728
1726
|
'%Error%': Error,
|
|
1727
|
+
'%ErrorPrototype%': Error.prototype,
|
|
1729
1728
|
'%eval%': eval, // eslint-disable-line no-eval
|
|
1730
1729
|
'%EvalError%': EvalError,
|
|
1730
|
+
'%EvalErrorPrototype%': EvalError.prototype,
|
|
1731
1731
|
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
|
|
1732
|
+
'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array.prototype,
|
|
1732
1733
|
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
|
|
1733
|
-
'%
|
|
1734
|
-
'%Function%':
|
|
1735
|
-
'%
|
|
1734
|
+
'%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array.prototype,
|
|
1735
|
+
'%Function%': Function,
|
|
1736
|
+
'%FunctionPrototype%': Function.prototype,
|
|
1737
|
+
'%Generator%': undefined$1,
|
|
1738
|
+
'%GeneratorFunction%': generatorFunction,
|
|
1739
|
+
'%GeneratorPrototype%': undefined$1,
|
|
1736
1740
|
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
|
|
1741
|
+
'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array.prototype,
|
|
1737
1742
|
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
|
|
1743
|
+
'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$1 : Int8Array.prototype,
|
|
1738
1744
|
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
|
|
1745
|
+
'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array.prototype,
|
|
1739
1746
|
'%isFinite%': isFinite,
|
|
1740
1747
|
'%isNaN%': isNaN,
|
|
1741
1748
|
'%IteratorPrototype%': hasSymbols$2 ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
|
|
1742
1749
|
'%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
|
|
1750
|
+
'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$1,
|
|
1743
1751
|
'%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
|
|
1744
1752
|
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
|
|
1753
|
+
'%MapPrototype%': typeof Map === 'undefined' ? undefined$1 : Map.prototype,
|
|
1745
1754
|
'%Math%': Math,
|
|
1746
1755
|
'%Number%': Number,
|
|
1756
|
+
'%NumberPrototype%': Number.prototype,
|
|
1747
1757
|
'%Object%': Object,
|
|
1758
|
+
'%ObjectPrototype%': Object.prototype,
|
|
1759
|
+
'%ObjProto_toString%': Object.prototype.toString,
|
|
1760
|
+
'%ObjProto_valueOf%': Object.prototype.valueOf,
|
|
1748
1761
|
'%parseFloat%': parseFloat,
|
|
1749
1762
|
'%parseInt%': parseInt,
|
|
1750
1763
|
'%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
|
|
1764
|
+
'%PromisePrototype%': typeof Promise === 'undefined' ? undefined$1 : Promise.prototype,
|
|
1765
|
+
'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$1 : Promise.prototype.then,
|
|
1766
|
+
'%Promise_all%': typeof Promise === 'undefined' ? undefined$1 : Promise.all,
|
|
1767
|
+
'%Promise_reject%': typeof Promise === 'undefined' ? undefined$1 : Promise.reject,
|
|
1768
|
+
'%Promise_resolve%': typeof Promise === 'undefined' ? undefined$1 : Promise.resolve,
|
|
1751
1769
|
'%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
|
|
1752
1770
|
'%RangeError%': RangeError,
|
|
1771
|
+
'%RangeErrorPrototype%': RangeError.prototype,
|
|
1753
1772
|
'%ReferenceError%': ReferenceError,
|
|
1773
|
+
'%ReferenceErrorPrototype%': ReferenceError.prototype,
|
|
1754
1774
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
|
|
1755
1775
|
'%RegExp%': RegExp,
|
|
1776
|
+
'%RegExpPrototype%': RegExp.prototype,
|
|
1756
1777
|
'%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
|
|
1757
1778
|
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$2 ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
|
|
1779
|
+
'%SetPrototype%': typeof Set === 'undefined' ? undefined$1 : Set.prototype,
|
|
1758
1780
|
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
|
|
1781
|
+
'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer.prototype,
|
|
1759
1782
|
'%String%': String,
|
|
1760
1783
|
'%StringIteratorPrototype%': hasSymbols$2 ? getProto(''[Symbol.iterator]()) : undefined$1,
|
|
1784
|
+
'%StringPrototype%': String.prototype,
|
|
1761
1785
|
'%Symbol%': hasSymbols$2 ? Symbol : undefined$1,
|
|
1762
|
-
'%
|
|
1786
|
+
'%SymbolPrototype%': hasSymbols$2 ? Symbol.prototype : undefined$1,
|
|
1787
|
+
'%SyntaxError%': SyntaxError,
|
|
1788
|
+
'%SyntaxErrorPrototype%': SyntaxError.prototype,
|
|
1763
1789
|
'%ThrowTypeError%': ThrowTypeError,
|
|
1764
1790
|
'%TypedArray%': TypedArray,
|
|
1791
|
+
'%TypedArrayPrototype%': TypedArray ? TypedArray.prototype : undefined$1,
|
|
1765
1792
|
'%TypeError%': $TypeError,
|
|
1793
|
+
'%TypeErrorPrototype%': $TypeError.prototype,
|
|
1766
1794
|
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
|
|
1795
|
+
'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array.prototype,
|
|
1767
1796
|
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
|
|
1797
|
+
'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray.prototype,
|
|
1768
1798
|
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
|
|
1799
|
+
'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array.prototype,
|
|
1769
1800
|
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
|
|
1801
|
+
'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array.prototype,
|
|
1770
1802
|
'%URIError%': URIError,
|
|
1803
|
+
'%URIErrorPrototype%': URIError.prototype,
|
|
1771
1804
|
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
|
|
1772
|
-
'%
|
|
1773
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
var doEval = function doEval(name) {
|
|
1777
|
-
var value;
|
|
1778
|
-
if (name === '%AsyncFunction%') {
|
|
1779
|
-
value = getEvalledConstructor('async function () {}');
|
|
1780
|
-
} else if (name === '%GeneratorFunction%') {
|
|
1781
|
-
value = getEvalledConstructor('function* () {}');
|
|
1782
|
-
} else if (name === '%AsyncGeneratorFunction%') {
|
|
1783
|
-
value = getEvalledConstructor('async function* () {}');
|
|
1784
|
-
} else if (name === '%AsyncGenerator%') {
|
|
1785
|
-
var fn = doEval('%AsyncGeneratorFunction%');
|
|
1786
|
-
if (fn) {
|
|
1787
|
-
value = fn.prototype;
|
|
1788
|
-
}
|
|
1789
|
-
} else if (name === '%AsyncIteratorPrototype%') {
|
|
1790
|
-
var gen = doEval('%AsyncGenerator%');
|
|
1791
|
-
if (gen) {
|
|
1792
|
-
value = getProto(gen.prototype);
|
|
1793
|
-
}
|
|
1794
|
-
}
|
|
1795
|
-
|
|
1796
|
-
INTRINSICS[name] = value;
|
|
1797
|
-
|
|
1798
|
-
return value;
|
|
1805
|
+
'%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap.prototype,
|
|
1806
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
|
|
1807
|
+
'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet.prototype
|
|
1799
1808
|
};
|
|
1800
1809
|
|
|
1801
|
-
var LEGACY_ALIASES = {
|
|
1802
|
-
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
1803
|
-
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
1804
|
-
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
1805
|
-
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
1806
|
-
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
1807
|
-
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
1808
|
-
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
1809
|
-
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
1810
|
-
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
1811
|
-
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
1812
|
-
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
1813
|
-
'%DatePrototype%': ['Date', 'prototype'],
|
|
1814
|
-
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
1815
|
-
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
1816
|
-
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
1817
|
-
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
1818
|
-
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
1819
|
-
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
1820
|
-
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
1821
|
-
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
1822
|
-
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
1823
|
-
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
1824
|
-
'%JSONParse%': ['JSON', 'parse'],
|
|
1825
|
-
'%JSONStringify%': ['JSON', 'stringify'],
|
|
1826
|
-
'%MapPrototype%': ['Map', 'prototype'],
|
|
1827
|
-
'%NumberPrototype%': ['Number', 'prototype'],
|
|
1828
|
-
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
1829
|
-
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
1830
|
-
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
1831
|
-
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
1832
|
-
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
1833
|
-
'%Promise_all%': ['Promise', 'all'],
|
|
1834
|
-
'%Promise_reject%': ['Promise', 'reject'],
|
|
1835
|
-
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
1836
|
-
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
1837
|
-
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
1838
|
-
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
1839
|
-
'%SetPrototype%': ['Set', 'prototype'],
|
|
1840
|
-
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
1841
|
-
'%StringPrototype%': ['String', 'prototype'],
|
|
1842
|
-
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
1843
|
-
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
1844
|
-
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
1845
|
-
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
1846
|
-
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
1847
|
-
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
1848
|
-
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
1849
|
-
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
1850
|
-
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
1851
|
-
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
1852
|
-
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
1853
|
-
};
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
1810
|
|
|
1857
|
-
var $concat = functionBind.call(Function.call, Array.prototype.concat);
|
|
1858
|
-
var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
|
|
1859
1811
|
var $replace = functionBind.call(Function.call, String.prototype.replace);
|
|
1860
|
-
var $strSlice = functionBind.call(Function.call, String.prototype.slice);
|
|
1861
1812
|
|
|
1862
1813
|
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
1863
1814
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
1864
1815
|
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
1865
1816
|
var stringToPath = function stringToPath(string) {
|
|
1866
|
-
var first = $strSlice(string, 0, 1);
|
|
1867
|
-
var last = $strSlice(string, -1);
|
|
1868
|
-
if (first === '%' && last !== '%') {
|
|
1869
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
1870
|
-
} else if (last === '%' && first !== '%') {
|
|
1871
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
1872
|
-
}
|
|
1873
1817
|
var result = [];
|
|
1874
1818
|
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
1875
|
-
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
1819
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : (number || match);
|
|
1876
1820
|
});
|
|
1877
1821
|
return result;
|
|
1878
1822
|
};
|
|
1879
1823
|
/* end adaptation */
|
|
1880
1824
|
|
|
1881
1825
|
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
if (src(LEGACY_ALIASES, intrinsicName)) {
|
|
1885
|
-
alias = LEGACY_ALIASES[intrinsicName];
|
|
1886
|
-
intrinsicName = '%' + alias[0] + '%';
|
|
1826
|
+
if (!(name in INTRINSICS)) {
|
|
1827
|
+
throw new SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
1887
1828
|
}
|
|
1888
1829
|
|
|
1889
|
-
if
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
value = doEval(intrinsicName);
|
|
1893
|
-
}
|
|
1894
|
-
if (typeof value === 'undefined' && !allowMissing) {
|
|
1895
|
-
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
1896
|
-
}
|
|
1897
|
-
|
|
1898
|
-
return {
|
|
1899
|
-
alias: alias,
|
|
1900
|
-
name: intrinsicName,
|
|
1901
|
-
value: value
|
|
1902
|
-
};
|
|
1830
|
+
// istanbul ignore if // hopefully this is impossible to test :-)
|
|
1831
|
+
if (typeof INTRINSICS[name] === 'undefined' && !allowMissing) {
|
|
1832
|
+
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
1903
1833
|
}
|
|
1904
1834
|
|
|
1905
|
-
|
|
1835
|
+
return INTRINSICS[name];
|
|
1906
1836
|
};
|
|
1907
1837
|
|
|
1908
|
-
var
|
|
1838
|
+
var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
1909
1839
|
if (typeof name !== 'string' || name.length === 0) {
|
|
1910
|
-
throw new
|
|
1840
|
+
throw new TypeError('intrinsic name must be a non-empty string');
|
|
1911
1841
|
}
|
|
1912
1842
|
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
1913
|
-
throw new
|
|
1843
|
+
throw new TypeError('"allowMissing" argument must be a boolean');
|
|
1914
1844
|
}
|
|
1915
1845
|
|
|
1916
1846
|
var parts = stringToPath(name);
|
|
1917
|
-
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
1918
|
-
|
|
1919
|
-
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
1920
|
-
var intrinsicRealName = intrinsic.name;
|
|
1921
|
-
var value = intrinsic.value;
|
|
1922
|
-
var skipFurtherCaching = false;
|
|
1923
1847
|
|
|
1924
|
-
var
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
$spliceApply(parts, $concat([0, 1], alias));
|
|
1928
|
-
}
|
|
1929
|
-
|
|
1930
|
-
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
1931
|
-
var part = parts[i];
|
|
1932
|
-
var first = $strSlice(part, 0, 1);
|
|
1933
|
-
var last = $strSlice(part, -1);
|
|
1934
|
-
if (
|
|
1935
|
-
(
|
|
1936
|
-
(first === '"' || first === "'" || first === '`')
|
|
1937
|
-
|| (last === '"' || last === "'" || last === '`')
|
|
1938
|
-
)
|
|
1939
|
-
&& first !== last
|
|
1940
|
-
) {
|
|
1941
|
-
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
1942
|
-
}
|
|
1943
|
-
if (part === 'constructor' || !isOwn) {
|
|
1944
|
-
skipFurtherCaching = true;
|
|
1945
|
-
}
|
|
1946
|
-
|
|
1947
|
-
intrinsicBaseName += '.' + part;
|
|
1948
|
-
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
1949
|
-
|
|
1950
|
-
if (src(INTRINSICS, intrinsicRealName)) {
|
|
1951
|
-
value = INTRINSICS[intrinsicRealName];
|
|
1952
|
-
} else if (value != null) {
|
|
1953
|
-
if (!(part in value)) {
|
|
1954
|
-
if (!allowMissing) {
|
|
1955
|
-
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
1956
|
-
}
|
|
1957
|
-
return void undefined$1;
|
|
1958
|
-
}
|
|
1848
|
+
var value = getBaseIntrinsic('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
|
|
1849
|
+
for (var i = 1; i < parts.length; i += 1) {
|
|
1850
|
+
if (value != null) {
|
|
1959
1851
|
if ($gOPD && (i + 1) >= parts.length) {
|
|
1960
|
-
var desc = $gOPD(value,
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
// By convention, when a data property is converted to an accessor
|
|
1964
|
-
// property to emulate a data property that does not suffer from
|
|
1965
|
-
// the override mistake, that accessor's getter is marked with
|
|
1966
|
-
// an `originalValue` property. Here, when we detect this, we
|
|
1967
|
-
// uphold the illusion by pretending to see that original data
|
|
1968
|
-
// property, i.e., returning the value rather than the getter
|
|
1969
|
-
// itself.
|
|
1970
|
-
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
1971
|
-
value = desc.get;
|
|
1972
|
-
} else {
|
|
1973
|
-
value = value[part];
|
|
1852
|
+
var desc = $gOPD(value, parts[i]);
|
|
1853
|
+
if (!allowMissing && !(parts[i] in value)) {
|
|
1854
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
1974
1855
|
}
|
|
1856
|
+
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
1975
1857
|
} else {
|
|
1976
|
-
|
|
1977
|
-
value = value[part];
|
|
1978
|
-
}
|
|
1979
|
-
|
|
1980
|
-
if (isOwn && !skipFurtherCaching) {
|
|
1981
|
-
INTRINSICS[intrinsicRealName] = value;
|
|
1858
|
+
value = value[parts[i]];
|
|
1982
1859
|
}
|
|
1983
1860
|
}
|
|
1984
1861
|
}
|
|
1985
1862
|
return value;
|
|
1986
1863
|
};
|
|
1987
1864
|
|
|
1988
|
-
var
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1865
|
+
var $Function = GetIntrinsic('%Function%');
|
|
1866
|
+
var $apply = $Function.apply;
|
|
1867
|
+
var $call = $Function.call;
|
|
1992
1868
|
|
|
1993
|
-
var
|
|
1994
|
-
|
|
1995
|
-
var $reflectApply = getIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
|
|
1996
|
-
|
|
1997
|
-
var $gOPD = getIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
|
1998
|
-
var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
|
|
1999
|
-
var $max = getIntrinsic('%Math.max%');
|
|
2000
|
-
|
|
2001
|
-
if ($defineProperty) {
|
|
2002
|
-
try {
|
|
2003
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
2004
|
-
} catch (e) {
|
|
2005
|
-
// IE 8 has a broken defineProperty
|
|
2006
|
-
$defineProperty = null;
|
|
2007
|
-
}
|
|
2008
|
-
}
|
|
2009
|
-
|
|
2010
|
-
module.exports = function callBind(originalFunction) {
|
|
2011
|
-
var func = $reflectApply(functionBind, $call, arguments);
|
|
2012
|
-
if ($gOPD && $defineProperty) {
|
|
2013
|
-
var desc = $gOPD(func, 'length');
|
|
2014
|
-
if (desc.configurable) {
|
|
2015
|
-
// original length, plus the receiver, minus any additional arguments (after the receiver)
|
|
2016
|
-
$defineProperty(
|
|
2017
|
-
func,
|
|
2018
|
-
'length',
|
|
2019
|
-
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
2020
|
-
);
|
|
2021
|
-
}
|
|
2022
|
-
}
|
|
2023
|
-
return func;
|
|
1869
|
+
var callBind = function callBind() {
|
|
1870
|
+
return functionBind.apply($call, arguments);
|
|
2024
1871
|
};
|
|
2025
1872
|
|
|
2026
|
-
var
|
|
2027
|
-
return
|
|
1873
|
+
var apply = function applyBind() {
|
|
1874
|
+
return functionBind.apply($apply, arguments);
|
|
2028
1875
|
};
|
|
1876
|
+
callBind.apply = apply;
|
|
2029
1877
|
|
|
2030
|
-
|
|
2031
|
-
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
2032
|
-
} else {
|
|
2033
|
-
module.exports.apply = applyBind;
|
|
2034
|
-
}
|
|
2035
|
-
});
|
|
2036
|
-
callBind.apply;
|
|
2037
|
-
|
|
2038
|
-
var $indexOf = callBind(getIntrinsic('String.prototype.indexOf'));
|
|
1878
|
+
var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
|
|
2039
1879
|
|
|
2040
1880
|
var callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
2041
|
-
var intrinsic =
|
|
2042
|
-
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.')
|
|
1881
|
+
var intrinsic = GetIntrinsic(name, !!allowMissing);
|
|
1882
|
+
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.')) {
|
|
2043
1883
|
return callBind(intrinsic);
|
|
2044
1884
|
}
|
|
2045
1885
|
return intrinsic;
|
|
2046
1886
|
};
|
|
2047
1887
|
|
|
2048
|
-
var $defineProperty =
|
|
1888
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
2049
1889
|
|
|
2050
1890
|
if ($defineProperty) {
|
|
2051
1891
|
try {
|
|
@@ -2087,8 +1927,10 @@ var DefineOwnProperty = function DefineOwnProperty(IsDataDescriptor, SameValue,
|
|
|
2087
1927
|
return true;
|
|
2088
1928
|
};
|
|
2089
1929
|
|
|
2090
|
-
var
|
|
2091
|
-
|
|
1930
|
+
var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
1931
|
+
|
|
1932
|
+
var $TypeError$1 = GetIntrinsic('%TypeError%');
|
|
1933
|
+
var $SyntaxError = GetIntrinsic('%SyntaxError%');
|
|
2092
1934
|
|
|
2093
1935
|
|
|
2094
1936
|
|
|
@@ -2125,14 +1967,14 @@ var predicates = {
|
|
|
2125
1967
|
var assertRecord = function assertRecord(Type, recordType, argumentName, value) {
|
|
2126
1968
|
var predicate = predicates[recordType];
|
|
2127
1969
|
if (typeof predicate !== 'function') {
|
|
2128
|
-
throw new $SyntaxError
|
|
1970
|
+
throw new $SyntaxError('unknown record type: ' + recordType);
|
|
2129
1971
|
}
|
|
2130
1972
|
if (!predicate(Type, value)) {
|
|
2131
1973
|
throw new $TypeError$1(argumentName + ' must be a ' + recordType);
|
|
2132
1974
|
}
|
|
2133
1975
|
};
|
|
2134
1976
|
|
|
2135
|
-
// https://ecma-international.org/ecma-262/5.1/#sec-8
|
|
1977
|
+
// https://www.ecma-international.org/ecma-262/5.1/#sec-8
|
|
2136
1978
|
|
|
2137
1979
|
var Type = function Type(x) {
|
|
2138
1980
|
if (x === null) {
|
|
@@ -2155,19 +1997,16 @@ var Type = function Type(x) {
|
|
|
2155
1997
|
}
|
|
2156
1998
|
};
|
|
2157
1999
|
|
|
2158
|
-
// https://ecma-international.org/ecma-262/
|
|
2000
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-tostring
|
|
2159
2001
|
|
|
2160
2002
|
var Type$1 = function Type$1(x) {
|
|
2161
2003
|
if (typeof x === 'symbol') {
|
|
2162
2004
|
return 'Symbol';
|
|
2163
2005
|
}
|
|
2164
|
-
if (typeof x === 'bigint') {
|
|
2165
|
-
return 'BigInt';
|
|
2166
|
-
}
|
|
2167
2006
|
return Type(x);
|
|
2168
2007
|
};
|
|
2169
2008
|
|
|
2170
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
|
|
2009
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor
|
|
2171
2010
|
|
|
2172
2011
|
var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
2173
2012
|
if (typeof Desc === 'undefined') {
|
|
@@ -2198,7 +2037,7 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
|
2198
2037
|
return obj;
|
|
2199
2038
|
};
|
|
2200
2039
|
|
|
2201
|
-
var $gOPD$1 =
|
|
2040
|
+
var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
2202
2041
|
if ($gOPD$1) {
|
|
2203
2042
|
try {
|
|
2204
2043
|
$gOPD$1([], 'length');
|
|
@@ -2210,85 +2049,65 @@ if ($gOPD$1) {
|
|
|
2210
2049
|
|
|
2211
2050
|
var getOwnPropertyDescriptor = $gOPD$1;
|
|
2212
2051
|
|
|
2213
|
-
var $Array =
|
|
2052
|
+
var $Array = GetIntrinsic('%Array%');
|
|
2214
2053
|
|
|
2215
2054
|
// eslint-disable-next-line global-require
|
|
2216
2055
|
var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
|
|
2217
2056
|
|
|
2218
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-isarray
|
|
2057
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
|
|
2219
2058
|
|
|
2220
2059
|
var IsArray = $Array.isArray || function IsArray(argument) {
|
|
2221
2060
|
return toStr$4(argument) === '[object Array]';
|
|
2222
2061
|
};
|
|
2223
2062
|
|
|
2224
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
2063
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
2225
2064
|
|
|
2226
2065
|
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
2227
2066
|
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
2228
2067
|
};
|
|
2229
2068
|
|
|
2230
|
-
var
|
|
2231
|
-
var
|
|
2232
|
-
var has$1;
|
|
2233
|
-
var $exec;
|
|
2234
|
-
var isRegexMarker;
|
|
2235
|
-
var badStringifier;
|
|
2236
|
-
|
|
2237
|
-
if (hasToStringTag) {
|
|
2238
|
-
has$1 = callBound('Object.prototype.hasOwnProperty');
|
|
2239
|
-
$exec = callBound('RegExp.prototype.exec');
|
|
2240
|
-
isRegexMarker = {};
|
|
2241
|
-
|
|
2242
|
-
var throwRegexMarker = function () {
|
|
2243
|
-
throw isRegexMarker;
|
|
2244
|
-
};
|
|
2245
|
-
badStringifier = {
|
|
2246
|
-
toString: throwRegexMarker,
|
|
2247
|
-
valueOf: throwRegexMarker
|
|
2248
|
-
};
|
|
2069
|
+
var regexExec = RegExp.prototype.exec;
|
|
2070
|
+
var gOPD = Object.getOwnPropertyDescriptor;
|
|
2249
2071
|
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2072
|
+
var tryRegexExecCall = function tryRegexExec(value) {
|
|
2073
|
+
try {
|
|
2074
|
+
var lastIndex = value.lastIndex;
|
|
2075
|
+
value.lastIndex = 0; // eslint-disable-line no-param-reassign
|
|
2254
2076
|
|
|
2255
|
-
|
|
2256
|
-
|
|
2077
|
+
regexExec.call(value);
|
|
2078
|
+
return true;
|
|
2079
|
+
} catch (e) {
|
|
2080
|
+
return false;
|
|
2081
|
+
} finally {
|
|
2082
|
+
value.lastIndex = lastIndex; // eslint-disable-line no-param-reassign
|
|
2083
|
+
}
|
|
2084
|
+
};
|
|
2085
|
+
var toStr$5 = Object.prototype.toString;
|
|
2257
2086
|
var regexClass = '[object RegExp]';
|
|
2087
|
+
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2258
2088
|
|
|
2259
|
-
var isRegex =
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
var descriptor = gOPD(value, 'lastIndex');
|
|
2267
|
-
var hasLastIndexDataProperty = descriptor && has$1(descriptor, 'value');
|
|
2268
|
-
if (!hasLastIndexDataProperty) {
|
|
2269
|
-
return false;
|
|
2270
|
-
}
|
|
2089
|
+
var isRegex = function isRegex(value) {
|
|
2090
|
+
if (!value || typeof value !== 'object') {
|
|
2091
|
+
return false;
|
|
2092
|
+
}
|
|
2093
|
+
if (!hasToStringTag) {
|
|
2094
|
+
return toStr$5.call(value) === regexClass;
|
|
2095
|
+
}
|
|
2271
2096
|
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
}
|
|
2097
|
+
var descriptor = gOPD(value, 'lastIndex');
|
|
2098
|
+
var hasLastIndexDataProperty = descriptor && src(descriptor, 'value');
|
|
2099
|
+
if (!hasLastIndexDataProperty) {
|
|
2100
|
+
return false;
|
|
2277
2101
|
}
|
|
2278
|
-
: function isRegex(value) {
|
|
2279
|
-
// In older browsers, typeof regex incorrectly returns 'function'
|
|
2280
|
-
if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
|
|
2281
|
-
return false;
|
|
2282
|
-
}
|
|
2283
2102
|
|
|
2284
|
-
|
|
2285
|
-
|
|
2103
|
+
return tryRegexExecCall(value);
|
|
2104
|
+
};
|
|
2286
2105
|
|
|
2287
|
-
// http://ecma-international.org/ecma-262/5.1/#sec-9.2
|
|
2106
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
|
|
2288
2107
|
|
|
2289
2108
|
var ToBoolean = function ToBoolean(value) { return !!value; };
|
|
2290
2109
|
|
|
2291
|
-
var $match =
|
|
2110
|
+
var $match = GetIntrinsic('%Symbol.match%', true);
|
|
2292
2111
|
|
|
2293
2112
|
|
|
2294
2113
|
|
|
@@ -2310,27 +2129,6 @@ var IsRegExp = function IsRegExp(argument) {
|
|
|
2310
2129
|
};
|
|
2311
2130
|
|
|
2312
2131
|
var fnToStr = Function.prototype.toString;
|
|
2313
|
-
var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
|
|
2314
|
-
var badArrayLike;
|
|
2315
|
-
var isCallableMarker;
|
|
2316
|
-
if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {
|
|
2317
|
-
try {
|
|
2318
|
-
badArrayLike = Object.defineProperty({}, 'length', {
|
|
2319
|
-
get: function () {
|
|
2320
|
-
throw isCallableMarker;
|
|
2321
|
-
}
|
|
2322
|
-
});
|
|
2323
|
-
isCallableMarker = {};
|
|
2324
|
-
// eslint-disable-next-line no-throw-literal
|
|
2325
|
-
reflectApply(function () { throw 42; }, null, badArrayLike);
|
|
2326
|
-
} catch (_) {
|
|
2327
|
-
if (_ !== isCallableMarker) {
|
|
2328
|
-
reflectApply = null;
|
|
2329
|
-
}
|
|
2330
|
-
}
|
|
2331
|
-
} else {
|
|
2332
|
-
reflectApply = null;
|
|
2333
|
-
}
|
|
2334
2132
|
|
|
2335
2133
|
var constructorRegex = /^\s*class\b/;
|
|
2336
2134
|
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
@@ -2351,42 +2149,26 @@ var tryFunctionObject = function tryFunctionToStr(value) {
|
|
|
2351
2149
|
return false;
|
|
2352
2150
|
}
|
|
2353
2151
|
};
|
|
2354
|
-
var toStr$
|
|
2152
|
+
var toStr$6 = Object.prototype.toString;
|
|
2355
2153
|
var fnClass = '[object Function]';
|
|
2356
2154
|
var genClass = '[object GeneratorFunction]';
|
|
2357
2155
|
var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2358
|
-
/* globals document: false */
|
|
2359
|
-
var documentDotAll = typeof document === 'object' && typeof document.all === 'undefined' && document.all !== undefined ? document.all : {};
|
|
2360
|
-
|
|
2361
|
-
var isCallable = reflectApply
|
|
2362
|
-
? function isCallable(value) {
|
|
2363
|
-
if (value === documentDotAll) { return true; }
|
|
2364
|
-
if (!value) { return false; }
|
|
2365
|
-
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2366
|
-
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2367
|
-
try {
|
|
2368
|
-
reflectApply(value, null, badArrayLike);
|
|
2369
|
-
} catch (e) {
|
|
2370
|
-
if (e !== isCallableMarker) { return false; }
|
|
2371
|
-
}
|
|
2372
|
-
return !isES6ClassFn(value);
|
|
2373
|
-
}
|
|
2374
|
-
: function isCallable(value) {
|
|
2375
|
-
if (value === documentDotAll) { return true; }
|
|
2376
|
-
if (!value) { return false; }
|
|
2377
|
-
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2378
|
-
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2379
|
-
if (hasToStringTag$1) { return tryFunctionObject(value); }
|
|
2380
|
-
if (isES6ClassFn(value)) { return false; }
|
|
2381
|
-
var strClass = toStr$5.call(value);
|
|
2382
|
-
return strClass === fnClass || strClass === genClass;
|
|
2383
|
-
};
|
|
2384
2156
|
|
|
2385
|
-
|
|
2157
|
+
var isCallable = function isCallable(value) {
|
|
2158
|
+
if (!value) { return false; }
|
|
2159
|
+
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2160
|
+
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2161
|
+
if (hasToStringTag$1) { return tryFunctionObject(value); }
|
|
2162
|
+
if (isES6ClassFn(value)) { return false; }
|
|
2163
|
+
var strClass = toStr$6.call(value);
|
|
2164
|
+
return strClass === fnClass || strClass === genClass;
|
|
2165
|
+
};
|
|
2166
|
+
|
|
2167
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
2386
2168
|
|
|
2387
2169
|
var IsCallable = isCallable;
|
|
2388
2170
|
|
|
2389
|
-
var $TypeError$2 =
|
|
2171
|
+
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
2390
2172
|
|
|
2391
2173
|
|
|
2392
2174
|
|
|
@@ -2415,7 +2197,7 @@ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
|
2415
2197
|
if (src(Obj, 'get')) {
|
|
2416
2198
|
var getter = Obj.get;
|
|
2417
2199
|
if (typeof getter !== 'undefined' && !IsCallable(getter)) {
|
|
2418
|
-
throw new
|
|
2200
|
+
throw new TypeError('getter must be a function');
|
|
2419
2201
|
}
|
|
2420
2202
|
desc['[[Get]]'] = getter;
|
|
2421
2203
|
}
|
|
@@ -2433,7 +2215,7 @@ var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
|
2433
2215
|
return desc;
|
|
2434
2216
|
};
|
|
2435
2217
|
|
|
2436
|
-
var $TypeError$3 =
|
|
2218
|
+
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
2437
2219
|
|
|
2438
2220
|
|
|
2439
2221
|
|
|
@@ -2447,7 +2229,7 @@ var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
|
|
|
2447
2229
|
|
|
2448
2230
|
|
|
2449
2231
|
|
|
2450
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
|
|
2232
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
|
|
2451
2233
|
|
|
2452
2234
|
var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
|
|
2453
2235
|
if (Type$1(O) !== 'Object') {
|
|
@@ -2473,7 +2255,7 @@ var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
|
|
|
2473
2255
|
return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
|
|
2474
2256
|
};
|
|
2475
2257
|
|
|
2476
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
|
|
2258
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
|
|
2477
2259
|
|
|
2478
2260
|
var IsDataDescriptor = function IsDataDescriptor(Desc) {
|
|
2479
2261
|
if (typeof Desc === 'undefined') {
|
|
@@ -2493,14 +2275,14 @@ var isPrimitive = function isPrimitive(value) {
|
|
|
2493
2275
|
return value === null || (typeof value !== 'function' && typeof value !== 'object');
|
|
2494
2276
|
};
|
|
2495
2277
|
|
|
2496
|
-
var $Object =
|
|
2278
|
+
var $Object = GetIntrinsic('%Object%');
|
|
2497
2279
|
|
|
2498
2280
|
|
|
2499
2281
|
|
|
2500
2282
|
var $preventExtensions = $Object.preventExtensions;
|
|
2501
2283
|
var $isExtensible = $Object.isExtensible;
|
|
2502
2284
|
|
|
2503
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-isextensible-o
|
|
2285
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-isextensible-o
|
|
2504
2286
|
|
|
2505
2287
|
var IsExtensible = $preventExtensions
|
|
2506
2288
|
? function IsExtensible(obj) {
|
|
@@ -2514,7 +2296,7 @@ var _isNaN = Number.isNaN || function isNaN(a) {
|
|
|
2514
2296
|
return a !== a;
|
|
2515
2297
|
};
|
|
2516
2298
|
|
|
2517
|
-
// http://ecma-international.org/ecma-262/5.1/#sec-9.12
|
|
2299
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.12
|
|
2518
2300
|
|
|
2519
2301
|
var SameValue = function SameValue(x, y) {
|
|
2520
2302
|
if (x === y) { // 0 === -0, but they are not identical.
|
|
@@ -2524,7 +2306,7 @@ var SameValue = function SameValue(x, y) {
|
|
|
2524
2306
|
return _isNaN(x) && _isNaN(y);
|
|
2525
2307
|
};
|
|
2526
2308
|
|
|
2527
|
-
var $TypeError$4 =
|
|
2309
|
+
var $TypeError$4 = GetIntrinsic('%TypeError%');
|
|
2528
2310
|
|
|
2529
2311
|
|
|
2530
2312
|
|
|
@@ -2536,7 +2318,7 @@ var $TypeError$4 = getIntrinsic('%TypeError%');
|
|
|
2536
2318
|
|
|
2537
2319
|
|
|
2538
2320
|
|
|
2539
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-createdataproperty
|
|
2321
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty
|
|
2540
2322
|
|
|
2541
2323
|
var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
2542
2324
|
if (Type$1(O) !== 'Object') {
|
|
@@ -2546,8 +2328,8 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
|
2546
2328
|
throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
|
|
2547
2329
|
}
|
|
2548
2330
|
var oldDesc = OrdinaryGetOwnProperty(O, P);
|
|
2549
|
-
var extensible =
|
|
2550
|
-
var immutable = oldDesc && (!oldDesc
|
|
2331
|
+
var extensible = oldDesc || IsExtensible(O);
|
|
2332
|
+
var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
|
|
2551
2333
|
if (immutable || !extensible) {
|
|
2552
2334
|
return false;
|
|
2553
2335
|
}
|
|
@@ -2566,9 +2348,9 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
|
2566
2348
|
);
|
|
2567
2349
|
};
|
|
2568
2350
|
|
|
2569
|
-
var $TypeError$5 =
|
|
2351
|
+
var $TypeError$5 = GetIntrinsic('%TypeError%');
|
|
2570
2352
|
|
|
2571
|
-
// http://ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
2353
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
2572
2354
|
|
|
2573
2355
|
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
2574
2356
|
if (value == null) {
|
|
@@ -2579,11 +2361,11 @@ var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
|
2579
2361
|
|
|
2580
2362
|
var RequireObjectCoercible = CheckObjectCoercible;
|
|
2581
2363
|
|
|
2582
|
-
var $Object$1 =
|
|
2364
|
+
var $Object$1 = GetIntrinsic('%Object%');
|
|
2583
2365
|
|
|
2584
2366
|
|
|
2585
2367
|
|
|
2586
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-toobject
|
|
2368
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-toobject
|
|
2587
2369
|
|
|
2588
2370
|
var ToObject = function ToObject(value) {
|
|
2589
2371
|
RequireObjectCoercible(value);
|
|
@@ -2593,10 +2375,10 @@ var ToObject = function ToObject(value) {
|
|
|
2593
2375
|
var $gOPD$2 = Object.getOwnPropertyDescriptor;
|
|
2594
2376
|
var $getOwnNames = Object.getOwnPropertyNames;
|
|
2595
2377
|
var $getSymbols = Object.getOwnPropertySymbols;
|
|
2596
|
-
var $concat
|
|
2378
|
+
var $concat = callBound('Array.prototype.concat');
|
|
2597
2379
|
var $reduce = callBound('Array.prototype.reduce');
|
|
2598
2380
|
var getAll = $getSymbols ? function (obj) {
|
|
2599
|
-
return $concat
|
|
2381
|
+
return $concat($getOwnNames(obj), $getSymbols(obj));
|
|
2600
2382
|
} : $getOwnNames;
|
|
2601
2383
|
|
|
2602
2384
|
var isES5 = IsCallable($gOPD$2) && IsCallable($getOwnNames);
|
|
@@ -2635,281 +2417,13 @@ var shim = function shimGetOwnPropertyDescriptors() {
|
|
|
2635
2417
|
return polyfill$1;
|
|
2636
2418
|
};
|
|
2637
2419
|
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
defineProperties_1(bound, {
|
|
2420
|
+
defineProperties_1(implementation$2, {
|
|
2641
2421
|
getPolyfill: polyfill,
|
|
2642
2422
|
implementation: implementation$2,
|
|
2643
2423
|
shim: shim
|
|
2644
2424
|
});
|
|
2645
2425
|
|
|
2646
|
-
var object_getownpropertydescriptors =
|
|
2647
|
-
|
|
2648
|
-
/* globals
|
|
2649
|
-
Atomics,
|
|
2650
|
-
SharedArrayBuffer,
|
|
2651
|
-
*/
|
|
2652
|
-
|
|
2653
|
-
var undefined$2;
|
|
2654
|
-
|
|
2655
|
-
var $TypeError$6 = TypeError;
|
|
2656
|
-
|
|
2657
|
-
var $gOPD$3 = Object.getOwnPropertyDescriptor;
|
|
2658
|
-
if ($gOPD$3) {
|
|
2659
|
-
try {
|
|
2660
|
-
$gOPD$3({}, '');
|
|
2661
|
-
} catch (e) {
|
|
2662
|
-
$gOPD$3 = null; // this is IE 8, which has a broken gOPD
|
|
2663
|
-
}
|
|
2664
|
-
}
|
|
2665
|
-
|
|
2666
|
-
var throwTypeError$1 = function () { throw new $TypeError$6(); };
|
|
2667
|
-
var ThrowTypeError$1 = $gOPD$3
|
|
2668
|
-
? (function () {
|
|
2669
|
-
try {
|
|
2670
|
-
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
2671
|
-
arguments.callee; // IE 8 does not throw here
|
|
2672
|
-
return throwTypeError$1;
|
|
2673
|
-
} catch (calleeThrows) {
|
|
2674
|
-
try {
|
|
2675
|
-
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
2676
|
-
return $gOPD$3(arguments, 'callee').get;
|
|
2677
|
-
} catch (gOPDthrows) {
|
|
2678
|
-
return throwTypeError$1;
|
|
2679
|
-
}
|
|
2680
|
-
}
|
|
2681
|
-
}())
|
|
2682
|
-
: throwTypeError$1;
|
|
2683
|
-
|
|
2684
|
-
var hasSymbols$4 = hasSymbols$1();
|
|
2685
|
-
|
|
2686
|
-
var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
2687
|
-
var generatorFunction = undefined$2;
|
|
2688
|
-
var asyncFunction = undefined$2;
|
|
2689
|
-
var asyncGenFunction = undefined$2;
|
|
2690
|
-
|
|
2691
|
-
var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
|
|
2692
|
-
|
|
2693
|
-
var INTRINSICS$1 = {
|
|
2694
|
-
'%Array%': Array,
|
|
2695
|
-
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
|
|
2696
|
-
'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
|
|
2697
|
-
'%ArrayIteratorPrototype%': hasSymbols$4 ? getProto$1([][Symbol.iterator]()) : undefined$2,
|
|
2698
|
-
'%ArrayPrototype%': Array.prototype,
|
|
2699
|
-
'%ArrayProto_entries%': Array.prototype.entries,
|
|
2700
|
-
'%ArrayProto_forEach%': Array.prototype.forEach,
|
|
2701
|
-
'%ArrayProto_keys%': Array.prototype.keys,
|
|
2702
|
-
'%ArrayProto_values%': Array.prototype.values,
|
|
2703
|
-
'%AsyncFromSyncIteratorPrototype%': undefined$2,
|
|
2704
|
-
'%AsyncFunction%': asyncFunction,
|
|
2705
|
-
'%AsyncFunctionPrototype%': undefined$2,
|
|
2706
|
-
'%AsyncGenerator%': undefined$2,
|
|
2707
|
-
'%AsyncGeneratorFunction%': asyncGenFunction,
|
|
2708
|
-
'%AsyncGeneratorPrototype%': undefined$2,
|
|
2709
|
-
'%AsyncIteratorPrototype%': undefined$2,
|
|
2710
|
-
'%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
|
|
2711
|
-
'%Boolean%': Boolean,
|
|
2712
|
-
'%BooleanPrototype%': Boolean.prototype,
|
|
2713
|
-
'%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
|
|
2714
|
-
'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
|
|
2715
|
-
'%Date%': Date,
|
|
2716
|
-
'%DatePrototype%': Date.prototype,
|
|
2717
|
-
'%decodeURI%': decodeURI,
|
|
2718
|
-
'%decodeURIComponent%': decodeURIComponent,
|
|
2719
|
-
'%encodeURI%': encodeURI,
|
|
2720
|
-
'%encodeURIComponent%': encodeURIComponent,
|
|
2721
|
-
'%Error%': Error,
|
|
2722
|
-
'%ErrorPrototype%': Error.prototype,
|
|
2723
|
-
'%eval%': eval, // eslint-disable-line no-eval
|
|
2724
|
-
'%EvalError%': EvalError,
|
|
2725
|
-
'%EvalErrorPrototype%': EvalError.prototype,
|
|
2726
|
-
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
|
|
2727
|
-
'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
|
|
2728
|
-
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
|
|
2729
|
-
'%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
|
|
2730
|
-
'%Function%': Function,
|
|
2731
|
-
'%FunctionPrototype%': Function.prototype,
|
|
2732
|
-
'%Generator%': undefined$2,
|
|
2733
|
-
'%GeneratorFunction%': generatorFunction,
|
|
2734
|
-
'%GeneratorPrototype%': undefined$2,
|
|
2735
|
-
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
|
|
2736
|
-
'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
2737
|
-
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
|
|
2738
|
-
'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
2739
|
-
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
|
|
2740
|
-
'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
|
|
2741
|
-
'%isFinite%': isFinite,
|
|
2742
|
-
'%isNaN%': isNaN,
|
|
2743
|
-
'%IteratorPrototype%': hasSymbols$4 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
|
|
2744
|
-
'%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
|
|
2745
|
-
'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
|
|
2746
|
-
'%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
|
|
2747
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$4 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
|
|
2748
|
-
'%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
|
|
2749
|
-
'%Math%': Math,
|
|
2750
|
-
'%Number%': Number,
|
|
2751
|
-
'%NumberPrototype%': Number.prototype,
|
|
2752
|
-
'%Object%': Object,
|
|
2753
|
-
'%ObjectPrototype%': Object.prototype,
|
|
2754
|
-
'%ObjProto_toString%': Object.prototype.toString,
|
|
2755
|
-
'%ObjProto_valueOf%': Object.prototype.valueOf,
|
|
2756
|
-
'%parseFloat%': parseFloat,
|
|
2757
|
-
'%parseInt%': parseInt,
|
|
2758
|
-
'%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
|
|
2759
|
-
'%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
|
|
2760
|
-
'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
|
|
2761
|
-
'%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
|
|
2762
|
-
'%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
|
|
2763
|
-
'%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
|
|
2764
|
-
'%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
|
|
2765
|
-
'%RangeError%': RangeError,
|
|
2766
|
-
'%RangeErrorPrototype%': RangeError.prototype,
|
|
2767
|
-
'%ReferenceError%': ReferenceError,
|
|
2768
|
-
'%ReferenceErrorPrototype%': ReferenceError.prototype,
|
|
2769
|
-
'%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
|
|
2770
|
-
'%RegExp%': RegExp,
|
|
2771
|
-
'%RegExpPrototype%': RegExp.prototype,
|
|
2772
|
-
'%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
|
|
2773
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$4 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
|
|
2774
|
-
'%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
|
|
2775
|
-
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
|
|
2776
|
-
'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
|
|
2777
|
-
'%String%': String,
|
|
2778
|
-
'%StringIteratorPrototype%': hasSymbols$4 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
|
|
2779
|
-
'%StringPrototype%': String.prototype,
|
|
2780
|
-
'%Symbol%': hasSymbols$4 ? Symbol : undefined$2,
|
|
2781
|
-
'%SymbolPrototype%': hasSymbols$4 ? Symbol.prototype : undefined$2,
|
|
2782
|
-
'%SyntaxError%': SyntaxError,
|
|
2783
|
-
'%SyntaxErrorPrototype%': SyntaxError.prototype,
|
|
2784
|
-
'%ThrowTypeError%': ThrowTypeError$1,
|
|
2785
|
-
'%TypedArray%': TypedArray$1,
|
|
2786
|
-
'%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
|
|
2787
|
-
'%TypeError%': $TypeError$6,
|
|
2788
|
-
'%TypeErrorPrototype%': $TypeError$6.prototype,
|
|
2789
|
-
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
|
|
2790
|
-
'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
|
|
2791
|
-
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
|
|
2792
|
-
'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
|
|
2793
|
-
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
|
|
2794
|
-
'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
|
|
2795
|
-
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
|
|
2796
|
-
'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
|
|
2797
|
-
'%URIError%': URIError,
|
|
2798
|
-
'%URIErrorPrototype%': URIError.prototype,
|
|
2799
|
-
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
|
|
2800
|
-
'%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
|
|
2801
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
|
|
2802
|
-
'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
|
|
2803
|
-
};
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
|
|
2807
|
-
|
|
2808
|
-
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
2809
|
-
var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
2810
|
-
var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
2811
|
-
var stringToPath$1 = function stringToPath(string) {
|
|
2812
|
-
var result = [];
|
|
2813
|
-
$replace$1(string, rePropName$1, function (match, number, quote, subString) {
|
|
2814
|
-
result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
|
|
2815
|
-
});
|
|
2816
|
-
return result;
|
|
2817
|
-
};
|
|
2818
|
-
/* end adaptation */
|
|
2819
|
-
|
|
2820
|
-
var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
|
|
2821
|
-
if (!(name in INTRINSICS$1)) {
|
|
2822
|
-
throw new SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
2823
|
-
}
|
|
2824
|
-
|
|
2825
|
-
// istanbul ignore if // hopefully this is impossible to test :-)
|
|
2826
|
-
if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
|
|
2827
|
-
throw new $TypeError$6('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
2828
|
-
}
|
|
2829
|
-
|
|
2830
|
-
return INTRINSICS$1[name];
|
|
2831
|
-
};
|
|
2832
|
-
|
|
2833
|
-
var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
2834
|
-
if (typeof name !== 'string' || name.length === 0) {
|
|
2835
|
-
throw new TypeError('intrinsic name must be a non-empty string');
|
|
2836
|
-
}
|
|
2837
|
-
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
2838
|
-
throw new TypeError('"allowMissing" argument must be a boolean');
|
|
2839
|
-
}
|
|
2840
|
-
|
|
2841
|
-
var parts = stringToPath$1(name);
|
|
2842
|
-
|
|
2843
|
-
var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
|
|
2844
|
-
for (var i = 1; i < parts.length; i += 1) {
|
|
2845
|
-
if (value != null) {
|
|
2846
|
-
if ($gOPD$3 && (i + 1) >= parts.length) {
|
|
2847
|
-
var desc = $gOPD$3(value, parts[i]);
|
|
2848
|
-
if (!allowMissing && !(parts[i] in value)) {
|
|
2849
|
-
throw new $TypeError$6('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
2850
|
-
}
|
|
2851
|
-
// By convention, when a data property is converted to an accessor
|
|
2852
|
-
// property to emulate a data property that does not suffer from
|
|
2853
|
-
// the override mistake, that accessor's getter is marked with
|
|
2854
|
-
// an `originalValue` property. Here, when we detect this, we
|
|
2855
|
-
// uphold the illusion by pretending to see that original data
|
|
2856
|
-
// property, i.e., returning the value rather than the getter
|
|
2857
|
-
// itself.
|
|
2858
|
-
value = desc && 'get' in desc && !('originalValue' in desc.get) ? desc.get : value[parts[i]];
|
|
2859
|
-
} else {
|
|
2860
|
-
value = value[parts[i]];
|
|
2861
|
-
}
|
|
2862
|
-
}
|
|
2863
|
-
}
|
|
2864
|
-
return value;
|
|
2865
|
-
};
|
|
2866
|
-
|
|
2867
|
-
var callBind$1 = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
2874
|
-
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
2875
|
-
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
|
|
2876
|
-
|
|
2877
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
2878
|
-
|
|
2879
|
-
if ($defineProperty) {
|
|
2880
|
-
try {
|
|
2881
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
2882
|
-
} catch (e) {
|
|
2883
|
-
// IE 8 has a broken defineProperty
|
|
2884
|
-
$defineProperty = null;
|
|
2885
|
-
}
|
|
2886
|
-
}
|
|
2887
|
-
|
|
2888
|
-
module.exports = function callBind() {
|
|
2889
|
-
return $reflectApply(functionBind, $call, arguments);
|
|
2890
|
-
};
|
|
2891
|
-
|
|
2892
|
-
var applyBind = function applyBind() {
|
|
2893
|
-
return $reflectApply(functionBind, $apply, arguments);
|
|
2894
|
-
};
|
|
2895
|
-
|
|
2896
|
-
if ($defineProperty) {
|
|
2897
|
-
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
2898
|
-
} else {
|
|
2899
|
-
module.exports.apply = applyBind;
|
|
2900
|
-
}
|
|
2901
|
-
});
|
|
2902
|
-
callBind$1.apply;
|
|
2903
|
-
|
|
2904
|
-
var $indexOf$1 = callBind$1(GetIntrinsic('String.prototype.indexOf'));
|
|
2905
|
-
|
|
2906
|
-
var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
|
|
2907
|
-
var intrinsic = GetIntrinsic(name, !!allowMissing);
|
|
2908
|
-
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
|
|
2909
|
-
return callBind$1(intrinsic);
|
|
2910
|
-
}
|
|
2911
|
-
return intrinsic;
|
|
2912
|
-
};
|
|
2426
|
+
var object_getownpropertydescriptors = implementation$2;
|
|
2913
2427
|
|
|
2914
2428
|
var isES5$1 = typeof Object.defineProperty === 'function'
|
|
2915
2429
|
&& typeof Object.defineProperties === 'function';
|
|
@@ -2928,14 +2442,14 @@ if (typeof Promise !== 'function') {
|
|
|
2928
2442
|
|
|
2929
2443
|
|
|
2930
2444
|
|
|
2931
|
-
var $slice = callBound
|
|
2932
|
-
var $concat$
|
|
2933
|
-
var $forEach = callBound
|
|
2445
|
+
var $slice = callBound('Array.prototype.slice');
|
|
2446
|
+
var $concat$1 = callBound('Array.prototype.concat');
|
|
2447
|
+
var $forEach = callBound('Array.prototype.forEach');
|
|
2934
2448
|
|
|
2935
|
-
var hasSymbols$
|
|
2449
|
+
var hasSymbols$3 = hasSymbols$1();
|
|
2936
2450
|
|
|
2937
|
-
var kCustomPromisifiedSymbol = hasSymbols$
|
|
2938
|
-
var kCustomPromisifyArgsSymbol = hasSymbols$
|
|
2451
|
+
var kCustomPromisifiedSymbol = hasSymbols$3 ? Symbol('util.promisify.custom') : null;
|
|
2452
|
+
var kCustomPromisifyArgsSymbol = hasSymbols$3 ? Symbol('customPromisifyArgs') : null;
|
|
2939
2453
|
|
|
2940
2454
|
var implementation$3 = function promisify(orig) {
|
|
2941
2455
|
if (typeof orig !== 'function') {
|
|
@@ -2945,7 +2459,7 @@ var implementation$3 = function promisify(orig) {
|
|
|
2945
2459
|
throw error;
|
|
2946
2460
|
}
|
|
2947
2461
|
|
|
2948
|
-
if (hasSymbols$
|
|
2462
|
+
if (hasSymbols$3 && orig[kCustomPromisifiedSymbol]) {
|
|
2949
2463
|
var customFunction = orig[kCustomPromisifiedSymbol];
|
|
2950
2464
|
if (typeof customFunction !== 'function') {
|
|
2951
2465
|
throw new TypeError('The [util.promisify.custom] property must be a function');
|
|
@@ -2967,7 +2481,7 @@ var implementation$3 = function promisify(orig) {
|
|
|
2967
2481
|
var args = $slice(arguments);
|
|
2968
2482
|
var self = this; // eslint-disable-line no-invalid-this
|
|
2969
2483
|
return new Promise(function (resolve, reject) {
|
|
2970
|
-
orig.apply(self, $concat$
|
|
2484
|
+
orig.apply(self, $concat$1(args, function (err) {
|
|
2971
2485
|
var values = arguments.length > 1 ? $slice(arguments, 1) : [];
|
|
2972
2486
|
if (err) {
|
|
2973
2487
|
reject(err);
|
|
@@ -3052,7 +2566,7 @@ function connect() {
|
|
|
3052
2566
|
};
|
|
3053
2567
|
}
|
|
3054
2568
|
|
|
3055
|
-
var connection =
|
|
2569
|
+
var connection = mysql.createConnection(config);
|
|
3056
2570
|
return {
|
|
3057
2571
|
query: function query(sql, args) {
|
|
3058
2572
|
return util.util.promisify(connection.query).call(connection, sql, args);
|
|
@@ -3246,7 +2760,7 @@ var md5 = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
|
3246
2760
|
message = utf8.stringToBytes(message);
|
|
3247
2761
|
else if (isBuffer(message))
|
|
3248
2762
|
message = Array.prototype.slice.call(message, 0);
|
|
3249
|
-
else if (!Array.isArray(message)
|
|
2763
|
+
else if (!Array.isArray(message))
|
|
3250
2764
|
message = message.toString();
|
|
3251
2765
|
// else, assume byte array already
|
|
3252
2766
|
|
|
@@ -4013,7 +3527,7 @@ var user = /*#__PURE__*/Object.freeze({
|
|
|
4013
3527
|
findUser: findUser$1
|
|
4014
3528
|
});
|
|
4015
3529
|
|
|
4016
|
-
var localStrategy = new
|
|
3530
|
+
var localStrategy = new Local.Strategy({
|
|
4017
3531
|
usernameField: 'email',
|
|
4018
3532
|
passwordField: 'password'
|
|
4019
3533
|
}, function (email, password, done) {
|