@mjhls/mjh-framework 1.0.673-article-series-v4 → 1.0.673
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/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +9 -10
- package/dist/cjs/AD300x250x600.js +9 -10
- package/dist/cjs/AD728x90.js +10 -11
- package/dist/cjs/ADFloatingFooter.js +11 -12
- package/dist/cjs/ADFooter.js +8 -9
- package/dist/cjs/ADGutter.js +11 -12
- package/dist/cjs/{ADInfeed-bc591de7.js → ADInfeed-9735aff2.js} +9 -11
- package/dist/cjs/ADSkyscraper.js +11 -12
- package/dist/cjs/ADSponsoredResources.js +11 -12
- package/dist/cjs/ADWebcast.js +11 -12
- package/dist/cjs/ADWelcome.js +15 -16
- package/dist/cjs/{ADlgInfeed-4b713637.js → ADlgInfeed-6bd11848.js} +6 -7
- package/dist/cjs/AccordionPanel.js +22 -24
- package/dist/cjs/AdSlot.js +13 -14
- package/dist/cjs/AdSlotsProvider.js +5 -6
- package/dist/cjs/AlphabeticList.js +15 -16
- package/dist/cjs/ArticleCarousel.js +8 -9
- package/dist/cjs/ArticleSeriesListing.js +37 -38
- package/dist/cjs/Auth.js +593 -430
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-bb831b74.js} +12 -13
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-88f69acd.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +21 -23
- package/dist/cjs/CMEDeck.js +61 -61
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +19 -22
- package/dist/cjs/Column3.js +32 -35
- package/dist/cjs/ConferenceArticleCard.js +18 -19
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +73 -77
- package/dist/cjs/DeckQueue.js +69 -73
- package/dist/cjs/{Dfp-fa2c6aad.js → Dfp-b2bc3b97.js} +20 -21
- package/dist/cjs/EventsDeck.js +116 -123
- package/dist/cjs/ExternalResources.js +43 -44
- package/dist/cjs/Feature.js +24 -26
- package/dist/cjs/ForbesHero.js +33 -34
- package/dist/cjs/GridContent.js +149 -153
- package/dist/cjs/GridHero.js +34 -35
- package/dist/cjs/GroupDeck.js +39 -40
- package/dist/cjs/HamMagazine.js +114 -119
- package/dist/cjs/Header.js +11 -13
- package/dist/cjs/Hero.js +10 -11
- package/dist/cjs/HighlightenVideo.js +16 -17
- package/dist/cjs/HorizontalHero.js +24 -25
- package/dist/cjs/IssueContentDeck.js +64 -69
- package/dist/cjs/IssueDeck.js +59 -64
- package/dist/cjs/IssueLanding.js +17 -18
- package/dist/cjs/LeftNav.js +20 -22
- package/dist/cjs/MasterDeck.js +49 -50
- package/dist/cjs/NavDvm.js +63 -68
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +116 -121
- package/dist/cjs/NavNative.js +95 -103
- package/dist/cjs/NavNormal.js +36 -41
- package/dist/cjs/OncliveHero.js +18 -18
- package/dist/cjs/OncliveLargeHero.js +58 -59
- package/dist/cjs/PageFilter.js +8 -9
- package/dist/cjs/PartnerDetailListing.js +71 -1269
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +13 -15
- package/dist/cjs/PublicationDeck.js +58 -63
- package/dist/cjs/PublicationLanding.js +48 -52
- package/dist/cjs/QueueDeckExpanded.js +219 -219
- package/dist/cjs/RecentNews.js +22 -23
- package/dist/cjs/RelatedContent.js +21 -22
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +12 -16
- package/dist/cjs/SideFooter.js +23 -24
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-fde6c921.js → SocialSearchComponent-962b1344.js} +32 -36
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +54 -59
- package/dist/cjs/TemplateNormal.js +35 -36
- package/dist/cjs/ThumbnailCard.js +17 -19
- package/dist/cjs/Ustream.js +20 -21
- package/dist/cjs/VerticalHero.js +16 -17
- package/dist/cjs/VideoSeriesCard.js +24 -25
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesListing.js +51 -52
- package/dist/cjs/View.js +180 -184
- package/dist/cjs/YahooHero.js +29 -30
- package/dist/cjs/YoutubeGroup.js +52 -53
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-156bd4d6.js} +8 -10
- package/dist/cjs/getRelatedArticle.js +5 -354
- package/dist/cjs/getSerializers.js +9 -9
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-44481153.js → index-2d0a4911.js} +8 -9
- package/dist/cjs/{index-6367b7bf.js → index-5be2866f.js} +17 -16
- package/dist/cjs/{index-14681913.js → index-c190d704.js} +350 -360
- package/dist/cjs/{index-8a3fb0bc.js → index-da796b8c.js} +10 -12
- package/dist/cjs/{index.es-f3e47207.js → index.es-ab3f2690.js} +11 -28
- package/dist/cjs/{index.esm-3b9b8952.js → index.esm-66ffa47a.js} +9 -4
- package/dist/cjs/{index.esm-61650d1a.js → index.esm-876ca9ff.js} +12 -5
- package/dist/cjs/{index.esm-dd489d02.js → index.esm-fe549f9c.js} +20 -20
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +32 -31
- package/dist/cjs/{inherits-87492b40.js → inherits-513d81cd.js} +4 -4
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-9499b3ef.js → main-b6c96c8d.js} +43 -48
- package/dist/cjs/{moment-ca3bd9fb.js → moment-66a6a284.js} +8 -10
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-f7f48f71.js} +11 -12
- package/dist/cjs/{typeof-9d7f610f.js → typeof-725500bc.js} +1 -1
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{visibility-sensor-8b54af99.js → visibility-sensor-0c45a583.js} +5 -7
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +7 -7
- package/dist/esm/AD300x250x600.js +7 -7
- package/dist/esm/AD728x90.js +8 -8
- package/dist/esm/ADFloatingFooter.js +9 -9
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -9
- package/dist/esm/{ADInfeed-d1777980.js → ADInfeed-9140aa7d.js} +5 -5
- package/dist/esm/ADSkyscraper.js +9 -9
- package/dist/esm/ADSponsoredResources.js +9 -9
- package/dist/esm/ADWebcast.js +9 -9
- package/dist/esm/ADWelcome.js +13 -13
- package/dist/esm/{ADlgInfeed-84282fe8.js → ADlgInfeed-7656ecd1.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +3 -3
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +6 -6
- package/dist/esm/ArticleSeriesListing.js +32 -32
- package/dist/esm/Auth.js +578 -411
- package/dist/esm/{AuthorComponent-23afa074.js → AuthorComponent-00f13201.js} +10 -10
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-a614acdf.js} +3 -3
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +58 -58
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +12 -12
- package/dist/esm/Column3.js +24 -24
- package/dist/esm/ConferenceArticleCard.js +13 -13
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +53 -53
- package/dist/esm/DeckQueue.js +46 -46
- package/dist/esm/{Dfp-939e8fcf.js → Dfp-8a8fca18.js} +10 -10
- package/dist/esm/EventsDeck.js +66 -66
- package/dist/esm/ExternalResources.js +37 -37
- package/dist/esm/Feature.js +16 -16
- package/dist/esm/ForbesHero.js +27 -27
- package/dist/esm/GridContent.js +110 -110
- package/dist/esm/GridHero.js +28 -28
- package/dist/esm/GroupDeck.js +35 -35
- package/dist/esm/HamMagazine.js +86 -86
- package/dist/esm/Header.js +7 -7
- package/dist/esm/Hero.js +6 -6
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalHero.js +20 -20
- package/dist/esm/IssueContentDeck.js +40 -40
- package/dist/esm/IssueDeck.js +33 -33
- package/dist/esm/IssueLanding.js +15 -15
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +43 -43
- package/dist/esm/NavDvm.js +43 -43
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +90 -90
- package/dist/esm/NavNative.js +70 -70
- package/dist/esm/NavNormal.js +21 -21
- package/dist/esm/OncliveHero.js +14 -13
- package/dist/esm/OncliveLargeHero.js +51 -51
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +67 -1263
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PublicationDeck.js +34 -34
- package/dist/esm/PublicationLanding.js +28 -28
- package/dist/esm/QueueDeckExpanded.js +199 -199
- package/dist/esm/RecentNews.js +18 -18
- package/dist/esm/RelatedContent.js +16 -16
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +5 -5
- package/dist/esm/SideFooter.js +19 -19
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-a13fc98b.js → SocialSearchComponent-75527dfe.js} +23 -23
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +35 -35
- package/dist/esm/TemplateNormal.js +29 -29
- package/dist/esm/ThumbnailCard.js +9 -9
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +12 -12
- package/dist/esm/VideoSeriesCard.js +16 -16
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesListing.js +45 -45
- package/dist/esm/View.js +166 -166
- package/dist/esm/YahooHero.js +24 -24
- package/dist/esm/YoutubeGroup.js +38 -38
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/getRelatedArticle.js +5 -354
- package/dist/esm/getSerializers.js +9 -9
- package/dist/esm/{index-c5fd0af5.js → index-5f9f807a.js} +4 -4
- package/dist/esm/{index-1819118a.js → index-93ec3c59.js} +3 -3
- package/dist/esm/{index-609b2da6.js → index-983cedab.js} +298 -302
- package/dist/esm/{index-c00b0bbb.js → index-d2f90501.js} +17 -16
- package/dist/esm/{index.es-c6222053.js → index.es-938a3a58.js} +9 -25
- package/dist/esm/{index.esm-902766e0.js → index.esm-73e847d2.js} +18 -17
- package/dist/esm/{index.esm-79385203.js → index.esm-85cb09e6.js} +12 -5
- 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.js +27 -26
- package/dist/esm/{inherits-596840e8.js → inherits-7ee3e0c1.js} +1 -1
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/{main-edbd70ac.js → main-0465b2a0.js} +44 -48
- package/dist/esm/{moment-b6f49411.js → moment-12415288.js} +8 -10
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-a7d5c5c7.js} +5 -5
- package/dist/esm/{typeof-ee095d0c.js → typeof-08f2c380.js} +1 -1
- package/dist/esm/{visibility-sensor-082c757b.js → visibility-sensor-0baa4eea.js} +2 -2
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/esm/index-db3bb315.js +0 -207
package/dist/esm/Auth.js
CHANGED
|
@@ -7,7 +7,7 @@ import './core.get-iterator-method-54d2e411.js';
|
|
|
7
7
|
import './_object-pie-71ac75a4.js';
|
|
8
8
|
import { _ as _extends } from './extends-cc5da797.js';
|
|
9
9
|
import './web.dom.iterable-8956f9a5.js';
|
|
10
|
-
import
|
|
10
|
+
import React__default, { useEffect, useState } from 'react';
|
|
11
11
|
import Router from 'next/router';
|
|
12
12
|
import { _ as _JSON$stringify } from './stringify-008c8802.js';
|
|
13
13
|
import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-7021e5df.js';
|
|
@@ -15,7 +15,6 @@ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7c6
|
|
|
15
15
|
import './_set-species-cede29f8.js';
|
|
16
16
|
import { Col, Form, Button, Spinner } from 'react-bootstrap';
|
|
17
17
|
import { u as util } from './util-7700fc59.js';
|
|
18
|
-
import { s as serialize_1, p as parse_1 } from './index-db3bb315.js';
|
|
19
18
|
import useSWR from 'swr';
|
|
20
19
|
import Local from 'passport-local';
|
|
21
20
|
import mysql from 'mysql';
|
|
@@ -57,21 +56,21 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
57
56
|
}
|
|
58
57
|
|
|
59
58
|
if (type == 'text' || type == 'email' || type == 'password' || type == 'number') {
|
|
60
|
-
return
|
|
59
|
+
return React__default.createElement(
|
|
61
60
|
Form.Group,
|
|
62
61
|
_extends({}, opts, { controlId: name }),
|
|
63
|
-
|
|
62
|
+
React__default.createElement(
|
|
64
63
|
Form.Label,
|
|
65
64
|
{ kye: name + '_label' },
|
|
66
65
|
label,
|
|
67
|
-
required &&
|
|
66
|
+
required && React__default.createElement(
|
|
68
67
|
'span',
|
|
69
68
|
{ style: { color: 'red' } },
|
|
70
69
|
'*'
|
|
71
70
|
)
|
|
72
71
|
),
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
React__default.createElement(Form.Control, { key: name + '_' + type, type: type, readOnly: readonly, name: name, placeholder: '', defaultValue: default_value, required: required }),
|
|
73
|
+
React__default.createElement(
|
|
75
74
|
Form.Control.Feedback,
|
|
76
75
|
{ key: name + '_feedback', type: 'invalid' },
|
|
77
76
|
errors[name]
|
|
@@ -79,28 +78,28 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
79
78
|
);
|
|
80
79
|
}
|
|
81
80
|
if (type == 'select') {
|
|
82
|
-
return
|
|
81
|
+
return React__default.createElement(
|
|
83
82
|
Form.Group,
|
|
84
83
|
_extends({}, opts, { key: name, controlId: name }),
|
|
85
|
-
|
|
84
|
+
React__default.createElement(
|
|
86
85
|
Form.Label,
|
|
87
86
|
{ key: name + '_' + label },
|
|
88
87
|
label,
|
|
89
|
-
required &&
|
|
88
|
+
required && React__default.createElement(
|
|
90
89
|
'span',
|
|
91
90
|
{ key: name + '_required_span', style: { color: 'red' } },
|
|
92
91
|
'*'
|
|
93
92
|
)
|
|
94
93
|
),
|
|
95
|
-
|
|
94
|
+
React__default.createElement(
|
|
96
95
|
Form.Control,
|
|
97
96
|
{ key: name + '_select', as: 'select', name: name, required: required, defaultValue: default_value },
|
|
98
|
-
|
|
97
|
+
React__default.createElement('option', { value: '', key: name + '_options_empty' }),
|
|
99
98
|
options.map(function (option, index) {
|
|
100
99
|
var value = option.value ? option.value : option;
|
|
101
100
|
var label = option.label ? option.label : option;
|
|
102
101
|
var key = name + '_options_' + index;
|
|
103
|
-
return
|
|
102
|
+
return React__default.createElement(
|
|
104
103
|
'option',
|
|
105
104
|
{ key: key, value: value },
|
|
106
105
|
label
|
|
@@ -111,25 +110,25 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
111
110
|
}
|
|
112
111
|
|
|
113
112
|
if (type == 'radio' || type == 'checkbox') {
|
|
114
|
-
return
|
|
113
|
+
return React__default.createElement(
|
|
115
114
|
Form.Group,
|
|
116
115
|
opts,
|
|
117
|
-
|
|
116
|
+
React__default.createElement(
|
|
118
117
|
Form.Label,
|
|
119
118
|
null,
|
|
120
119
|
label,
|
|
121
|
-
required &&
|
|
120
|
+
required && React__default.createElement(
|
|
122
121
|
'span',
|
|
123
122
|
{ style: { color: 'red' } },
|
|
124
123
|
'*'
|
|
125
124
|
)
|
|
126
125
|
),
|
|
127
126
|
options.map(function (option, index) {
|
|
128
|
-
return
|
|
127
|
+
return React__default.createElement(
|
|
129
128
|
Form.Check,
|
|
130
129
|
{ type: type, key: index, required: required },
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
React__default.createElement(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 }),
|
|
131
|
+
React__default.createElement(Form.Check.Label, { style: { cursor: 'pointer' }, 'for': name + '_' + index, key: type + '_' + index + '_label', dangerouslySetInnerHTML: { __html: option.label } })
|
|
133
132
|
);
|
|
134
133
|
})
|
|
135
134
|
);
|
|
@@ -336,43 +335,43 @@ var LoginForm = function LoginForm(props) {
|
|
|
336
335
|
loading = _useState4[0],
|
|
337
336
|
setLoading = _useState4[1];
|
|
338
337
|
|
|
339
|
-
return
|
|
338
|
+
return React__default.createElement(
|
|
340
339
|
Form,
|
|
341
340
|
{ className: 'login', onSubmit: handleSubmit },
|
|
342
|
-
|
|
341
|
+
React__default.createElement(
|
|
343
342
|
'h1',
|
|
344
343
|
null,
|
|
345
344
|
'Login'
|
|
346
345
|
),
|
|
347
|
-
|
|
346
|
+
React__default.createElement('hr', null),
|
|
348
347
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
|
|
349
348
|
returnFormField({ name: 'password', label: 'Password', type: 'password', required: true }),
|
|
350
|
-
|
|
351
|
-
|
|
349
|
+
React__default.createElement('hr', null),
|
|
350
|
+
React__default.createElement(
|
|
352
351
|
Form.Row,
|
|
353
352
|
null,
|
|
354
|
-
|
|
353
|
+
React__default.createElement(
|
|
355
354
|
Form.Group,
|
|
356
355
|
{ as: Col },
|
|
357
|
-
|
|
356
|
+
React__default.createElement(
|
|
358
357
|
'a',
|
|
359
358
|
{ href: '/auth/signup' },
|
|
360
359
|
'I don\'t have an account'
|
|
361
360
|
)
|
|
362
361
|
),
|
|
363
|
-
|
|
362
|
+
React__default.createElement(
|
|
364
363
|
Form.Group,
|
|
365
364
|
{ as: Col, className: 'text-right' },
|
|
366
|
-
!loading &&
|
|
365
|
+
!loading && React__default.createElement(
|
|
367
366
|
Button,
|
|
368
367
|
{ type: 'submit' },
|
|
369
368
|
'Login'
|
|
370
369
|
),
|
|
371
|
-
loading &&
|
|
370
|
+
loading && React__default.createElement(
|
|
372
371
|
Button,
|
|
373
372
|
{ variant: 'primary', disabled: true },
|
|
374
|
-
|
|
375
|
-
|
|
373
|
+
React__default.createElement(Spinner, { as: 'span', animation: 'border', role: 'status', 'aria-hidden': 'true', size: 'sm' }),
|
|
374
|
+
React__default.createElement(
|
|
376
375
|
'span',
|
|
377
376
|
{ className: 'sr-only' },
|
|
378
377
|
'Loading...'
|
|
@@ -380,12 +379,12 @@ var LoginForm = function LoginForm(props) {
|
|
|
380
379
|
)
|
|
381
380
|
)
|
|
382
381
|
),
|
|
383
|
-
errorMsg &&
|
|
382
|
+
errorMsg && React__default.createElement(
|
|
384
383
|
'p',
|
|
385
384
|
{ className: 'error' },
|
|
386
385
|
errorMsg
|
|
387
386
|
),
|
|
388
|
-
|
|
387
|
+
React__default.createElement(
|
|
389
388
|
'style',
|
|
390
389
|
{ jsx: 'true'.toString() },
|
|
391
390
|
'\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 '
|
|
@@ -641,29 +640,29 @@ var SignupForm = function SignupForm(props) {
|
|
|
641
640
|
loading = _useState14[0],
|
|
642
641
|
setLoading = _useState14[1];
|
|
643
642
|
|
|
644
|
-
return
|
|
643
|
+
return React__default.createElement(
|
|
645
644
|
Form,
|
|
646
645
|
{ className: 'login', id: 'signupForm', onSubmit: handleSubmit },
|
|
647
|
-
|
|
646
|
+
React__default.createElement(
|
|
648
647
|
'h1',
|
|
649
648
|
null,
|
|
650
649
|
'Sign Up'
|
|
651
650
|
),
|
|
652
|
-
|
|
651
|
+
React__default.createElement('hr', null),
|
|
653
652
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
|
|
654
|
-
|
|
653
|
+
React__default.createElement(
|
|
655
654
|
Form.Row,
|
|
656
655
|
null,
|
|
657
656
|
returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: Col, required: true }),
|
|
658
657
|
returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: Col, required: true })
|
|
659
658
|
),
|
|
660
|
-
|
|
659
|
+
React__default.createElement(
|
|
661
660
|
Form.Row,
|
|
662
661
|
null,
|
|
663
662
|
returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: Col, required: true }),
|
|
664
663
|
returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: Col, required: true })
|
|
665
664
|
),
|
|
666
|
-
|
|
665
|
+
React__default.createElement(
|
|
667
666
|
Form.Row,
|
|
668
667
|
null,
|
|
669
668
|
returnFormField({
|
|
@@ -677,7 +676,7 @@ var SignupForm = function SignupForm(props) {
|
|
|
677
676
|
}),
|
|
678
677
|
countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: Col, options: states })
|
|
679
678
|
),
|
|
680
|
-
|
|
679
|
+
React__default.createElement(
|
|
681
680
|
Form.Row,
|
|
682
681
|
null,
|
|
683
682
|
countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: Col }),
|
|
@@ -724,38 +723,38 @@ var SignupForm = function SignupForm(props) {
|
|
|
724
723
|
required: true,
|
|
725
724
|
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' }]
|
|
726
725
|
}),
|
|
727
|
-
|
|
728
|
-
|
|
726
|
+
React__default.createElement('hr', null),
|
|
727
|
+
React__default.createElement(
|
|
729
728
|
Form.Row,
|
|
730
729
|
null,
|
|
731
|
-
|
|
730
|
+
React__default.createElement(
|
|
732
731
|
Form.Group,
|
|
733
732
|
{ as: Col },
|
|
734
|
-
|
|
733
|
+
React__default.createElement(
|
|
735
734
|
'a',
|
|
736
735
|
{ href: '/auth/login' },
|
|
737
736
|
'I already have an account'
|
|
738
737
|
)
|
|
739
738
|
),
|
|
740
|
-
|
|
739
|
+
React__default.createElement(
|
|
741
740
|
Form.Group,
|
|
742
741
|
{ as: Col, className: 'text-right' },
|
|
743
|
-
!loading &&
|
|
742
|
+
!loading && React__default.createElement(
|
|
744
743
|
Button,
|
|
745
744
|
{ type: 'submit' },
|
|
746
745
|
'Sign Up'
|
|
747
746
|
),
|
|
748
|
-
loading &&
|
|
747
|
+
loading && React__default.createElement(
|
|
749
748
|
Button,
|
|
750
749
|
{ variant: 'primary', disabled: true },
|
|
751
|
-
|
|
750
|
+
React__default.createElement(Spinner, {
|
|
752
751
|
as: 'span',
|
|
753
752
|
animation: 'border',
|
|
754
753
|
role: 'status',
|
|
755
754
|
'aria-hidden': 'true',
|
|
756
755
|
size: 'sm'
|
|
757
756
|
}),
|
|
758
|
-
|
|
757
|
+
React__default.createElement(
|
|
759
758
|
'span',
|
|
760
759
|
{ className: 'sr-only' },
|
|
761
760
|
'Loading...'
|
|
@@ -763,12 +762,12 @@ var SignupForm = function SignupForm(props) {
|
|
|
763
762
|
)
|
|
764
763
|
)
|
|
765
764
|
),
|
|
766
|
-
errorMsg &&
|
|
765
|
+
errorMsg && React__default.createElement(
|
|
767
766
|
'p',
|
|
768
767
|
{ className: 'error' },
|
|
769
768
|
errorMsg
|
|
770
769
|
),
|
|
771
|
-
|
|
770
|
+
React__default.createElement(
|
|
772
771
|
'style',
|
|
773
772
|
{ jsx: 'true'.toString() },
|
|
774
773
|
' \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 '
|
|
@@ -1058,32 +1057,32 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1058
1057
|
loading = _useState18[0],
|
|
1059
1058
|
setLoading = _useState18[1];
|
|
1060
1059
|
|
|
1061
|
-
return
|
|
1060
|
+
return React__default.createElement(
|
|
1062
1061
|
Form,
|
|
1063
1062
|
{ className: 'login', id: 'signupForm', onSubmit: handleSubmit },
|
|
1064
|
-
|
|
1063
|
+
React__default.createElement(
|
|
1065
1064
|
'h1',
|
|
1066
1065
|
null,
|
|
1067
1066
|
'Profile'
|
|
1068
1067
|
),
|
|
1069
|
-
|
|
1070
|
-
userData ?
|
|
1071
|
-
|
|
1068
|
+
React__default.createElement('hr', null),
|
|
1069
|
+
userData ? React__default.createElement(
|
|
1070
|
+
React__default.Fragment,
|
|
1072
1071
|
null,
|
|
1073
1072
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true, readonly: true, default_value: userData.email }),
|
|
1074
|
-
|
|
1073
|
+
React__default.createElement(
|
|
1075
1074
|
Form.Row,
|
|
1076
1075
|
null,
|
|
1077
1076
|
returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: Col, required: false }),
|
|
1078
1077
|
returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: Col, required: false })
|
|
1079
1078
|
),
|
|
1080
|
-
|
|
1079
|
+
React__default.createElement(
|
|
1081
1080
|
Form.Row,
|
|
1082
1081
|
null,
|
|
1083
1082
|
returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: Col, required: true, default_value: userData.shared.first_name }),
|
|
1084
1083
|
returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: Col, required: true, default_value: userData.shared.last_name })
|
|
1085
1084
|
),
|
|
1086
|
-
|
|
1085
|
+
React__default.createElement(
|
|
1087
1086
|
Form.Row,
|
|
1088
1087
|
null,
|
|
1089
1088
|
returnFormField({
|
|
@@ -1098,7 +1097,7 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1098
1097
|
}),
|
|
1099
1098
|
countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: Col, options: states, default_value: userData.shared.state })
|
|
1100
1099
|
),
|
|
1101
|
-
|
|
1100
|
+
React__default.createElement(
|
|
1102
1101
|
Form.Row,
|
|
1103
1102
|
null,
|
|
1104
1103
|
countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: Col, default_value: userData.shared.zip }),
|
|
@@ -1148,29 +1147,29 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1148
1147
|
required: true,
|
|
1149
1148
|
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' }]
|
|
1150
1149
|
}),
|
|
1151
|
-
|
|
1152
|
-
|
|
1150
|
+
React__default.createElement('hr', null),
|
|
1151
|
+
React__default.createElement(
|
|
1153
1152
|
Form.Row,
|
|
1154
1153
|
null,
|
|
1155
|
-
|
|
1154
|
+
React__default.createElement(
|
|
1156
1155
|
Form.Group,
|
|
1157
1156
|
{ as: Col },
|
|
1158
|
-
!loading &&
|
|
1157
|
+
!loading && React__default.createElement(
|
|
1159
1158
|
Button,
|
|
1160
1159
|
{ type: 'submit' },
|
|
1161
1160
|
'Update'
|
|
1162
1161
|
),
|
|
1163
|
-
loading &&
|
|
1162
|
+
loading && React__default.createElement(
|
|
1164
1163
|
Button,
|
|
1165
1164
|
{ variant: 'primary', disabled: true },
|
|
1166
|
-
|
|
1165
|
+
React__default.createElement(Spinner, {
|
|
1167
1166
|
as: 'span',
|
|
1168
1167
|
animation: 'border',
|
|
1169
1168
|
role: 'status',
|
|
1170
1169
|
'aria-hidden': 'true',
|
|
1171
1170
|
size: 'sm'
|
|
1172
1171
|
}),
|
|
1173
|
-
|
|
1172
|
+
React__default.createElement(
|
|
1174
1173
|
'span',
|
|
1175
1174
|
{ className: 'sr-only' },
|
|
1176
1175
|
'Loading...'
|
|
@@ -1178,24 +1177,24 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1178
1177
|
)
|
|
1179
1178
|
)
|
|
1180
1179
|
)
|
|
1181
|
-
) :
|
|
1180
|
+
) : React__default.createElement(Spinner, {
|
|
1182
1181
|
as: 'span',
|
|
1183
1182
|
animation: 'border',
|
|
1184
1183
|
role: 'status',
|
|
1185
1184
|
'aria-hidden': 'true',
|
|
1186
1185
|
size: 'sm'
|
|
1187
1186
|
}),
|
|
1188
|
-
errorMsg &&
|
|
1187
|
+
errorMsg && React__default.createElement(
|
|
1189
1188
|
'p',
|
|
1190
1189
|
{ className: 'error' },
|
|
1191
1190
|
errorMsg
|
|
1192
1191
|
),
|
|
1193
|
-
successMsg &&
|
|
1192
|
+
successMsg && React__default.createElement(
|
|
1194
1193
|
'p',
|
|
1195
1194
|
{ className: 'success' },
|
|
1196
1195
|
successMsg
|
|
1197
1196
|
),
|
|
1198
|
-
|
|
1197
|
+
React__default.createElement(
|
|
1199
1198
|
'style',
|
|
1200
1199
|
{ jsx: 'true'.toString() },
|
|
1201
1200
|
' \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 '
|
|
@@ -1203,6 +1202,207 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1203
1202
|
);
|
|
1204
1203
|
};
|
|
1205
1204
|
|
|
1205
|
+
/*!
|
|
1206
|
+
* cookie
|
|
1207
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
1208
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
1209
|
+
* MIT Licensed
|
|
1210
|
+
*/
|
|
1211
|
+
|
|
1212
|
+
/**
|
|
1213
|
+
* Module exports.
|
|
1214
|
+
* @public
|
|
1215
|
+
*/
|
|
1216
|
+
|
|
1217
|
+
var parse_1 = parse;
|
|
1218
|
+
var serialize_1 = serialize;
|
|
1219
|
+
|
|
1220
|
+
/**
|
|
1221
|
+
* Module variables.
|
|
1222
|
+
* @private
|
|
1223
|
+
*/
|
|
1224
|
+
|
|
1225
|
+
var decode = decodeURIComponent;
|
|
1226
|
+
var encode = encodeURIComponent;
|
|
1227
|
+
var pairSplitRegExp = /; */;
|
|
1228
|
+
|
|
1229
|
+
/**
|
|
1230
|
+
* RegExp to match field-content in RFC 7230 sec 3.2
|
|
1231
|
+
*
|
|
1232
|
+
* field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
|
|
1233
|
+
* field-vchar = VCHAR / obs-text
|
|
1234
|
+
* obs-text = %x80-FF
|
|
1235
|
+
*/
|
|
1236
|
+
|
|
1237
|
+
var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
|
|
1238
|
+
|
|
1239
|
+
/**
|
|
1240
|
+
* Parse a cookie header.
|
|
1241
|
+
*
|
|
1242
|
+
* Parse the given cookie header string into an object
|
|
1243
|
+
* The object has the various cookies as keys(names) => values
|
|
1244
|
+
*
|
|
1245
|
+
* @param {string} str
|
|
1246
|
+
* @param {object} [options]
|
|
1247
|
+
* @return {object}
|
|
1248
|
+
* @public
|
|
1249
|
+
*/
|
|
1250
|
+
|
|
1251
|
+
function parse(str, options) {
|
|
1252
|
+
if (typeof str !== 'string') {
|
|
1253
|
+
throw new TypeError('argument str must be a string');
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
var obj = {};
|
|
1257
|
+
var opt = options || {};
|
|
1258
|
+
var pairs = str.split(pairSplitRegExp);
|
|
1259
|
+
var dec = opt.decode || decode;
|
|
1260
|
+
|
|
1261
|
+
for (var i = 0; i < pairs.length; i++) {
|
|
1262
|
+
var pair = pairs[i];
|
|
1263
|
+
var eq_idx = pair.indexOf('=');
|
|
1264
|
+
|
|
1265
|
+
// skip things that don't look like key=value
|
|
1266
|
+
if (eq_idx < 0) {
|
|
1267
|
+
continue;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
var key = pair.substr(0, eq_idx).trim();
|
|
1271
|
+
var val = pair.substr(++eq_idx, pair.length).trim();
|
|
1272
|
+
|
|
1273
|
+
// quoted values
|
|
1274
|
+
if ('"' == val[0]) {
|
|
1275
|
+
val = val.slice(1, -1);
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
// only assign once
|
|
1279
|
+
if (undefined == obj[key]) {
|
|
1280
|
+
obj[key] = tryDecode(val, dec);
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
return obj;
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
* Serialize data into a cookie header.
|
|
1289
|
+
*
|
|
1290
|
+
* Serialize the a name value pair into a cookie string suitable for
|
|
1291
|
+
* http headers. An optional options object specified cookie parameters.
|
|
1292
|
+
*
|
|
1293
|
+
* serialize('foo', 'bar', { httpOnly: true })
|
|
1294
|
+
* => "foo=bar; httpOnly"
|
|
1295
|
+
*
|
|
1296
|
+
* @param {string} name
|
|
1297
|
+
* @param {string} val
|
|
1298
|
+
* @param {object} [options]
|
|
1299
|
+
* @return {string}
|
|
1300
|
+
* @public
|
|
1301
|
+
*/
|
|
1302
|
+
|
|
1303
|
+
function serialize(name, val, options) {
|
|
1304
|
+
var opt = options || {};
|
|
1305
|
+
var enc = opt.encode || encode;
|
|
1306
|
+
|
|
1307
|
+
if (typeof enc !== 'function') {
|
|
1308
|
+
throw new TypeError('option encode is invalid');
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
if (!fieldContentRegExp.test(name)) {
|
|
1312
|
+
throw new TypeError('argument name is invalid');
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
var value = enc(val);
|
|
1316
|
+
|
|
1317
|
+
if (value && !fieldContentRegExp.test(value)) {
|
|
1318
|
+
throw new TypeError('argument val is invalid');
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
var str = name + '=' + value;
|
|
1322
|
+
|
|
1323
|
+
if (null != opt.maxAge) {
|
|
1324
|
+
var maxAge = opt.maxAge - 0;
|
|
1325
|
+
|
|
1326
|
+
if (isNaN(maxAge) || !isFinite(maxAge)) {
|
|
1327
|
+
throw new TypeError('option maxAge is invalid')
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
str += '; Max-Age=' + Math.floor(maxAge);
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
if (opt.domain) {
|
|
1334
|
+
if (!fieldContentRegExp.test(opt.domain)) {
|
|
1335
|
+
throw new TypeError('option domain is invalid');
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
str += '; Domain=' + opt.domain;
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
if (opt.path) {
|
|
1342
|
+
if (!fieldContentRegExp.test(opt.path)) {
|
|
1343
|
+
throw new TypeError('option path is invalid');
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
str += '; Path=' + opt.path;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
if (opt.expires) {
|
|
1350
|
+
if (typeof opt.expires.toUTCString !== 'function') {
|
|
1351
|
+
throw new TypeError('option expires is invalid');
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
str += '; Expires=' + opt.expires.toUTCString();
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
if (opt.httpOnly) {
|
|
1358
|
+
str += '; HttpOnly';
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
if (opt.secure) {
|
|
1362
|
+
str += '; Secure';
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
if (opt.sameSite) {
|
|
1366
|
+
var sameSite = typeof opt.sameSite === 'string'
|
|
1367
|
+
? opt.sameSite.toLowerCase() : opt.sameSite;
|
|
1368
|
+
|
|
1369
|
+
switch (sameSite) {
|
|
1370
|
+
case true:
|
|
1371
|
+
str += '; SameSite=Strict';
|
|
1372
|
+
break;
|
|
1373
|
+
case 'lax':
|
|
1374
|
+
str += '; SameSite=Lax';
|
|
1375
|
+
break;
|
|
1376
|
+
case 'strict':
|
|
1377
|
+
str += '; SameSite=Strict';
|
|
1378
|
+
break;
|
|
1379
|
+
case 'none':
|
|
1380
|
+
str += '; SameSite=None';
|
|
1381
|
+
break;
|
|
1382
|
+
default:
|
|
1383
|
+
throw new TypeError('option sameSite is invalid');
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
return str;
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
/**
|
|
1391
|
+
* Try decoding a string using a decoding function.
|
|
1392
|
+
*
|
|
1393
|
+
* @param {string} str
|
|
1394
|
+
* @param {function} decode
|
|
1395
|
+
* @private
|
|
1396
|
+
*/
|
|
1397
|
+
|
|
1398
|
+
function tryDecode(str, decode) {
|
|
1399
|
+
try {
|
|
1400
|
+
return decode(str);
|
|
1401
|
+
} catch (e) {
|
|
1402
|
+
return str;
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1206
1406
|
var TOKEN_NAME = 'token';
|
|
1207
1407
|
var MAX_AGE = 60 * 60 * 8; // 8 hours
|
|
1208
1408
|
|
|
@@ -1843,17 +2043,7 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1843
2043
|
if (value != null) {
|
|
1844
2044
|
if ($gOPD && (i + 1) >= parts.length) {
|
|
1845
2045
|
var desc = $gOPD(value, parts[i]);
|
|
1846
|
-
|
|
1847
|
-
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
1848
|
-
}
|
|
1849
|
-
// By convention, when a data property is converted to an accessor
|
|
1850
|
-
// property to emulate a data property that does not suffer from
|
|
1851
|
-
// the override mistake, that accessor's getter is marked with
|
|
1852
|
-
// an `originalValue` property. Here, when we detect this, we
|
|
1853
|
-
// uphold the illusion by pretending to see that original data
|
|
1854
|
-
// property, i.e., returning the value rather than the getter
|
|
1855
|
-
// itself.
|
|
1856
|
-
value = desc && 'get' in desc && !('originalValue' in desc.get) ? desc.get : value[parts[i]];
|
|
2046
|
+
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
1857
2047
|
} else {
|
|
1858
2048
|
value = value[parts[i]];
|
|
1859
2049
|
}
|
|
@@ -1862,42 +2052,18 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
1862
2052
|
return value;
|
|
1863
2053
|
};
|
|
1864
2054
|
|
|
1865
|
-
var
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
2055
|
+
var $Function = GetIntrinsic('%Function%');
|
|
2056
|
+
var $apply = $Function.apply;
|
|
2057
|
+
var $call = $Function.call;
|
|
1869
2058
|
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
1873
|
-
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
|
|
1874
|
-
|
|
1875
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
1876
|
-
|
|
1877
|
-
if ($defineProperty) {
|
|
1878
|
-
try {
|
|
1879
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
1880
|
-
} catch (e) {
|
|
1881
|
-
// IE 8 has a broken defineProperty
|
|
1882
|
-
$defineProperty = null;
|
|
1883
|
-
}
|
|
1884
|
-
}
|
|
1885
|
-
|
|
1886
|
-
module.exports = function callBind() {
|
|
1887
|
-
return $reflectApply(functionBind, $call, arguments);
|
|
2059
|
+
var callBind = function callBind() {
|
|
2060
|
+
return functionBind.apply($call, arguments);
|
|
1888
2061
|
};
|
|
1889
2062
|
|
|
1890
|
-
var
|
|
1891
|
-
return
|
|
2063
|
+
var apply = function applyBind() {
|
|
2064
|
+
return functionBind.apply($apply, arguments);
|
|
1892
2065
|
};
|
|
1893
|
-
|
|
1894
|
-
if ($defineProperty) {
|
|
1895
|
-
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
1896
|
-
} else {
|
|
1897
|
-
module.exports.apply = applyBind;
|
|
1898
|
-
}
|
|
1899
|
-
});
|
|
1900
|
-
var callBind_1 = callBind.apply;
|
|
2066
|
+
callBind.apply = apply;
|
|
1901
2067
|
|
|
1902
2068
|
var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
|
|
1903
2069
|
|
|
@@ -1909,16 +2075,7 @@ var callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
|
1909
2075
|
return intrinsic;
|
|
1910
2076
|
};
|
|
1911
2077
|
|
|
1912
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%'
|
|
1913
|
-
|
|
1914
|
-
if ($defineProperty) {
|
|
1915
|
-
try {
|
|
1916
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
1917
|
-
} catch (e) {
|
|
1918
|
-
// IE 8 has a broken defineProperty
|
|
1919
|
-
$defineProperty = null;
|
|
1920
|
-
}
|
|
1921
|
-
}
|
|
2078
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%');
|
|
1922
2079
|
|
|
1923
2080
|
|
|
1924
2081
|
|
|
@@ -2021,7 +2178,7 @@ var Type = function Type(x) {
|
|
|
2021
2178
|
}
|
|
2022
2179
|
};
|
|
2023
2180
|
|
|
2024
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-
|
|
2181
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-tostring
|
|
2025
2182
|
|
|
2026
2183
|
var Type$1 = function Type$1(x) {
|
|
2027
2184
|
if (typeof x === 'symbol') {
|
|
@@ -2061,277 +2218,6 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
|
2061
2218
|
return obj;
|
|
2062
2219
|
};
|
|
2063
2220
|
|
|
2064
|
-
var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
2065
|
-
if ($gOPD$1) {
|
|
2066
|
-
try {
|
|
2067
|
-
$gOPD$1([], 'length');
|
|
2068
|
-
} catch (e) {
|
|
2069
|
-
// IE 8 has a broken gOPD
|
|
2070
|
-
$gOPD$1 = null;
|
|
2071
|
-
}
|
|
2072
|
-
}
|
|
2073
|
-
|
|
2074
|
-
var getOwnPropertyDescriptor = $gOPD$1;
|
|
2075
|
-
|
|
2076
|
-
var $Array = GetIntrinsic('%Array%');
|
|
2077
|
-
|
|
2078
|
-
// eslint-disable-next-line global-require
|
|
2079
|
-
var toStr$4 = !$Array.isArray && callBound('Object.prototype.toString');
|
|
2080
|
-
|
|
2081
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-isarray
|
|
2082
|
-
|
|
2083
|
-
var IsArray = $Array.isArray || function IsArray(argument) {
|
|
2084
|
-
return toStr$4(argument) === '[object Array]';
|
|
2085
|
-
};
|
|
2086
|
-
|
|
2087
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
2088
|
-
|
|
2089
|
-
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
2090
|
-
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
2091
|
-
};
|
|
2092
|
-
|
|
2093
|
-
var hasSymbols$3 = hasSymbols$1();
|
|
2094
|
-
var hasToStringTag = hasSymbols$3 && typeof Symbol.toStringTag === 'symbol';
|
|
2095
|
-
var hasOwnProperty;
|
|
2096
|
-
var regexExec;
|
|
2097
|
-
var isRegexMarker;
|
|
2098
|
-
var badStringifier;
|
|
2099
|
-
|
|
2100
|
-
if (hasToStringTag) {
|
|
2101
|
-
hasOwnProperty = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
2102
|
-
regexExec = Function.call.bind(RegExp.prototype.exec);
|
|
2103
|
-
isRegexMarker = {};
|
|
2104
|
-
|
|
2105
|
-
var throwRegexMarker = function () {
|
|
2106
|
-
throw isRegexMarker;
|
|
2107
|
-
};
|
|
2108
|
-
badStringifier = {
|
|
2109
|
-
toString: throwRegexMarker,
|
|
2110
|
-
valueOf: throwRegexMarker
|
|
2111
|
-
};
|
|
2112
|
-
|
|
2113
|
-
if (typeof Symbol.toPrimitive === 'symbol') {
|
|
2114
|
-
badStringifier[Symbol.toPrimitive] = throwRegexMarker;
|
|
2115
|
-
}
|
|
2116
|
-
}
|
|
2117
|
-
|
|
2118
|
-
var toStr$5 = Object.prototype.toString;
|
|
2119
|
-
var gOPD = Object.getOwnPropertyDescriptor;
|
|
2120
|
-
var regexClass = '[object RegExp]';
|
|
2121
|
-
|
|
2122
|
-
var isRegex = hasToStringTag
|
|
2123
|
-
// eslint-disable-next-line consistent-return
|
|
2124
|
-
? function isRegex(value) {
|
|
2125
|
-
if (!value || typeof value !== 'object') {
|
|
2126
|
-
return false;
|
|
2127
|
-
}
|
|
2128
|
-
|
|
2129
|
-
var descriptor = gOPD(value, 'lastIndex');
|
|
2130
|
-
var hasLastIndexDataProperty = descriptor && hasOwnProperty(descriptor, 'value');
|
|
2131
|
-
if (!hasLastIndexDataProperty) {
|
|
2132
|
-
return false;
|
|
2133
|
-
}
|
|
2134
|
-
|
|
2135
|
-
try {
|
|
2136
|
-
regexExec(value, badStringifier);
|
|
2137
|
-
} catch (e) {
|
|
2138
|
-
return e === isRegexMarker;
|
|
2139
|
-
}
|
|
2140
|
-
}
|
|
2141
|
-
: function isRegex(value) {
|
|
2142
|
-
// In older browsers, typeof regex incorrectly returns 'function'
|
|
2143
|
-
if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
|
|
2144
|
-
return false;
|
|
2145
|
-
}
|
|
2146
|
-
|
|
2147
|
-
return toStr$5.call(value) === regexClass;
|
|
2148
|
-
};
|
|
2149
|
-
|
|
2150
|
-
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.2
|
|
2151
|
-
|
|
2152
|
-
var ToBoolean = function ToBoolean(value) { return !!value; };
|
|
2153
|
-
|
|
2154
|
-
var $match = GetIntrinsic('%Symbol.match%', true);
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
// https://ecma-international.org/ecma-262/6.0/#sec-isregexp
|
|
2161
|
-
|
|
2162
|
-
var IsRegExp = function IsRegExp(argument) {
|
|
2163
|
-
if (!argument || typeof argument !== 'object') {
|
|
2164
|
-
return false;
|
|
2165
|
-
}
|
|
2166
|
-
if ($match) {
|
|
2167
|
-
var isRegExp = argument[$match];
|
|
2168
|
-
if (typeof isRegExp !== 'undefined') {
|
|
2169
|
-
return ToBoolean(isRegExp);
|
|
2170
|
-
}
|
|
2171
|
-
}
|
|
2172
|
-
return isRegex(argument);
|
|
2173
|
-
};
|
|
2174
|
-
|
|
2175
|
-
var fnToStr = Function.prototype.toString;
|
|
2176
|
-
var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
|
|
2177
|
-
var badArrayLike;
|
|
2178
|
-
var isCallableMarker;
|
|
2179
|
-
if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {
|
|
2180
|
-
try {
|
|
2181
|
-
badArrayLike = Object.defineProperty({}, 'length', {
|
|
2182
|
-
get: function () {
|
|
2183
|
-
throw isCallableMarker;
|
|
2184
|
-
}
|
|
2185
|
-
});
|
|
2186
|
-
isCallableMarker = {};
|
|
2187
|
-
// eslint-disable-next-line no-throw-literal
|
|
2188
|
-
reflectApply(function () { throw 42; }, null, badArrayLike);
|
|
2189
|
-
} catch (_) {
|
|
2190
|
-
if (_ !== isCallableMarker) {
|
|
2191
|
-
reflectApply = null;
|
|
2192
|
-
}
|
|
2193
|
-
}
|
|
2194
|
-
} else {
|
|
2195
|
-
reflectApply = null;
|
|
2196
|
-
}
|
|
2197
|
-
|
|
2198
|
-
var constructorRegex = /^\s*class\b/;
|
|
2199
|
-
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
2200
|
-
try {
|
|
2201
|
-
var fnStr = fnToStr.call(value);
|
|
2202
|
-
return constructorRegex.test(fnStr);
|
|
2203
|
-
} catch (e) {
|
|
2204
|
-
return false; // not a function
|
|
2205
|
-
}
|
|
2206
|
-
};
|
|
2207
|
-
|
|
2208
|
-
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
2209
|
-
try {
|
|
2210
|
-
if (isES6ClassFn(value)) { return false; }
|
|
2211
|
-
fnToStr.call(value);
|
|
2212
|
-
return true;
|
|
2213
|
-
} catch (e) {
|
|
2214
|
-
return false;
|
|
2215
|
-
}
|
|
2216
|
-
};
|
|
2217
|
-
var toStr$6 = Object.prototype.toString;
|
|
2218
|
-
var fnClass = '[object Function]';
|
|
2219
|
-
var genClass = '[object GeneratorFunction]';
|
|
2220
|
-
var hasToStringTag$1 = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2221
|
-
|
|
2222
|
-
var isCallable = reflectApply
|
|
2223
|
-
? function isCallable(value) {
|
|
2224
|
-
if (!value) { return false; }
|
|
2225
|
-
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2226
|
-
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2227
|
-
try {
|
|
2228
|
-
reflectApply(value, null, badArrayLike);
|
|
2229
|
-
} catch (e) {
|
|
2230
|
-
if (e !== isCallableMarker) { return false; }
|
|
2231
|
-
}
|
|
2232
|
-
return !isES6ClassFn(value);
|
|
2233
|
-
}
|
|
2234
|
-
: function isCallable(value) {
|
|
2235
|
-
if (!value) { return false; }
|
|
2236
|
-
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2237
|
-
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2238
|
-
if (hasToStringTag$1) { return tryFunctionObject(value); }
|
|
2239
|
-
if (isES6ClassFn(value)) { return false; }
|
|
2240
|
-
var strClass = toStr$6.call(value);
|
|
2241
|
-
return strClass === fnClass || strClass === genClass;
|
|
2242
|
-
};
|
|
2243
|
-
|
|
2244
|
-
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
2245
|
-
|
|
2246
|
-
var IsCallable = isCallable;
|
|
2247
|
-
|
|
2248
|
-
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
// https://ecma-international.org/ecma-262/5.1/#sec-8.10.5
|
|
2255
|
-
|
|
2256
|
-
var ToPropertyDescriptor = function ToPropertyDescriptor(Obj) {
|
|
2257
|
-
if (Type$1(Obj) !== 'Object') {
|
|
2258
|
-
throw new $TypeError$2('ToPropertyDescriptor requires an object');
|
|
2259
|
-
}
|
|
2260
|
-
|
|
2261
|
-
var desc = {};
|
|
2262
|
-
if (src(Obj, 'enumerable')) {
|
|
2263
|
-
desc['[[Enumerable]]'] = ToBoolean(Obj.enumerable);
|
|
2264
|
-
}
|
|
2265
|
-
if (src(Obj, 'configurable')) {
|
|
2266
|
-
desc['[[Configurable]]'] = ToBoolean(Obj.configurable);
|
|
2267
|
-
}
|
|
2268
|
-
if (src(Obj, 'value')) {
|
|
2269
|
-
desc['[[Value]]'] = Obj.value;
|
|
2270
|
-
}
|
|
2271
|
-
if (src(Obj, 'writable')) {
|
|
2272
|
-
desc['[[Writable]]'] = ToBoolean(Obj.writable);
|
|
2273
|
-
}
|
|
2274
|
-
if (src(Obj, 'get')) {
|
|
2275
|
-
var getter = Obj.get;
|
|
2276
|
-
if (typeof getter !== 'undefined' && !IsCallable(getter)) {
|
|
2277
|
-
throw new $TypeError$2('getter must be a function');
|
|
2278
|
-
}
|
|
2279
|
-
desc['[[Get]]'] = getter;
|
|
2280
|
-
}
|
|
2281
|
-
if (src(Obj, 'set')) {
|
|
2282
|
-
var setter = Obj.set;
|
|
2283
|
-
if (typeof setter !== 'undefined' && !IsCallable(setter)) {
|
|
2284
|
-
throw new $TypeError$2('setter must be a function');
|
|
2285
|
-
}
|
|
2286
|
-
desc['[[Set]]'] = setter;
|
|
2287
|
-
}
|
|
2288
|
-
|
|
2289
|
-
if ((src(desc, '[[Get]]') || src(desc, '[[Set]]')) && (src(desc, '[[Value]]') || src(desc, '[[Writable]]'))) {
|
|
2290
|
-
throw new $TypeError$2('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');
|
|
2291
|
-
}
|
|
2292
|
-
return desc;
|
|
2293
|
-
};
|
|
2294
|
-
|
|
2295
|
-
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
var $isEnumerable$1 = callBound('Object.prototype.propertyIsEnumerable');
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
// https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty
|
|
2310
|
-
|
|
2311
|
-
var OrdinaryGetOwnProperty = function OrdinaryGetOwnProperty(O, P) {
|
|
2312
|
-
if (Type$1(O) !== 'Object') {
|
|
2313
|
-
throw new $TypeError$3('Assertion failed: O must be an Object');
|
|
2314
|
-
}
|
|
2315
|
-
if (!IsPropertyKey(P)) {
|
|
2316
|
-
throw new $TypeError$3('Assertion failed: P must be a Property Key');
|
|
2317
|
-
}
|
|
2318
|
-
if (!src(O, P)) {
|
|
2319
|
-
return void 0;
|
|
2320
|
-
}
|
|
2321
|
-
if (!getOwnPropertyDescriptor) {
|
|
2322
|
-
// ES3 / IE 8 fallback
|
|
2323
|
-
var arrayLength = IsArray(O) && P === 'length';
|
|
2324
|
-
var regexLastIndex = IsRegExp(O) && P === 'lastIndex';
|
|
2325
|
-
return {
|
|
2326
|
-
'[[Configurable]]': !(arrayLength || regexLastIndex),
|
|
2327
|
-
'[[Enumerable]]': $isEnumerable$1(O, P),
|
|
2328
|
-
'[[Value]]': O[P],
|
|
2329
|
-
'[[Writable]]': true
|
|
2330
|
-
};
|
|
2331
|
-
}
|
|
2332
|
-
return ToPropertyDescriptor(getOwnPropertyDescriptor(O, P));
|
|
2333
|
-
};
|
|
2334
|
-
|
|
2335
2221
|
// https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
|
|
2336
2222
|
|
|
2337
2223
|
var IsDataDescriptor = function IsDataDescriptor(Desc) {
|
|
@@ -2365,10 +2251,16 @@ var IsExtensible = $preventExtensions
|
|
|
2365
2251
|
? function IsExtensible(obj) {
|
|
2366
2252
|
return !isPrimitive(obj) && $isExtensible(obj);
|
|
2367
2253
|
}
|
|
2368
|
-
: function IsExtensible(obj) {
|
|
2369
|
-
return
|
|
2254
|
+
: function IsExtensible(obj) { // eslint-disable-line no-unused-vars
|
|
2255
|
+
return true;
|
|
2370
2256
|
};
|
|
2371
2257
|
|
|
2258
|
+
// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
|
|
2259
|
+
|
|
2260
|
+
var IsPropertyKey = function IsPropertyKey(argument) {
|
|
2261
|
+
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
2262
|
+
};
|
|
2263
|
+
|
|
2372
2264
|
var _isNaN = Number.isNaN || function isNaN(a) {
|
|
2373
2265
|
return a !== a;
|
|
2374
2266
|
};
|
|
@@ -2383,8 +2275,8 @@ var SameValue = function SameValue(x, y) {
|
|
|
2383
2275
|
return _isNaN(x) && _isNaN(y);
|
|
2384
2276
|
};
|
|
2385
2277
|
|
|
2386
|
-
var $
|
|
2387
|
-
|
|
2278
|
+
var $gOPD$1 = GetIntrinsic('%Object.getOwnPropertyDescriptor%');
|
|
2279
|
+
var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
2388
2280
|
|
|
2389
2281
|
|
|
2390
2282
|
|
|
@@ -2399,14 +2291,14 @@ var $TypeError$4 = GetIntrinsic('%TypeError%');
|
|
|
2399
2291
|
|
|
2400
2292
|
var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
2401
2293
|
if (Type$1(O) !== 'Object') {
|
|
2402
|
-
throw new $TypeError$
|
|
2294
|
+
throw new $TypeError$2('Assertion failed: Type(O) is not Object');
|
|
2403
2295
|
}
|
|
2404
2296
|
if (!IsPropertyKey(P)) {
|
|
2405
|
-
throw new $TypeError$
|
|
2297
|
+
throw new $TypeError$2('Assertion failed: IsPropertyKey(P) is not true');
|
|
2406
2298
|
}
|
|
2407
|
-
var oldDesc =
|
|
2408
|
-
var extensible =
|
|
2409
|
-
var immutable = oldDesc && (!oldDesc
|
|
2299
|
+
var oldDesc = $gOPD$1(O, P);
|
|
2300
|
+
var extensible = oldDesc || IsExtensible(O);
|
|
2301
|
+
var immutable = oldDesc && (!oldDesc.writable || !oldDesc.configurable);
|
|
2410
2302
|
if (immutable || !extensible) {
|
|
2411
2303
|
return false;
|
|
2412
2304
|
}
|
|
@@ -2425,13 +2317,53 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
|
2425
2317
|
);
|
|
2426
2318
|
};
|
|
2427
2319
|
|
|
2428
|
-
var
|
|
2320
|
+
var fnToStr = Function.prototype.toString;
|
|
2321
|
+
|
|
2322
|
+
var constructorRegex = /^\s*class\b/;
|
|
2323
|
+
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
2324
|
+
try {
|
|
2325
|
+
var fnStr = fnToStr.call(value);
|
|
2326
|
+
return constructorRegex.test(fnStr);
|
|
2327
|
+
} catch (e) {
|
|
2328
|
+
return false; // not a function
|
|
2329
|
+
}
|
|
2330
|
+
};
|
|
2331
|
+
|
|
2332
|
+
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
2333
|
+
try {
|
|
2334
|
+
if (isES6ClassFn(value)) { return false; }
|
|
2335
|
+
fnToStr.call(value);
|
|
2336
|
+
return true;
|
|
2337
|
+
} catch (e) {
|
|
2338
|
+
return false;
|
|
2339
|
+
}
|
|
2340
|
+
};
|
|
2341
|
+
var toStr$4 = Object.prototype.toString;
|
|
2342
|
+
var fnClass = '[object Function]';
|
|
2343
|
+
var genClass = '[object GeneratorFunction]';
|
|
2344
|
+
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
|
|
2345
|
+
|
|
2346
|
+
var isCallable = function isCallable(value) {
|
|
2347
|
+
if (!value) { return false; }
|
|
2348
|
+
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
2349
|
+
if (typeof value === 'function' && !value.prototype) { return true; }
|
|
2350
|
+
if (hasToStringTag) { return tryFunctionObject(value); }
|
|
2351
|
+
if (isES6ClassFn(value)) { return false; }
|
|
2352
|
+
var strClass = toStr$4.call(value);
|
|
2353
|
+
return strClass === fnClass || strClass === genClass;
|
|
2354
|
+
};
|
|
2355
|
+
|
|
2356
|
+
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.11
|
|
2357
|
+
|
|
2358
|
+
var IsCallable = isCallable;
|
|
2359
|
+
|
|
2360
|
+
var $TypeError$3 = GetIntrinsic('%TypeError%');
|
|
2429
2361
|
|
|
2430
2362
|
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
2431
2363
|
|
|
2432
2364
|
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
2433
2365
|
if (value == null) {
|
|
2434
|
-
throw new $TypeError$
|
|
2366
|
+
throw new $TypeError$3(optMessage || ('Cannot call method on ' + value));
|
|
2435
2367
|
}
|
|
2436
2368
|
return value;
|
|
2437
2369
|
};
|
|
@@ -2502,6 +2434,241 @@ defineProperties_1(implementation$2, {
|
|
|
2502
2434
|
|
|
2503
2435
|
var object_getownpropertydescriptors = implementation$2;
|
|
2504
2436
|
|
|
2437
|
+
/* globals
|
|
2438
|
+
Atomics,
|
|
2439
|
+
SharedArrayBuffer,
|
|
2440
|
+
*/
|
|
2441
|
+
|
|
2442
|
+
var undefined$2;
|
|
2443
|
+
|
|
2444
|
+
var $TypeError$4 = TypeError;
|
|
2445
|
+
|
|
2446
|
+
var $gOPD$3 = Object.getOwnPropertyDescriptor;
|
|
2447
|
+
if ($gOPD$3) {
|
|
2448
|
+
try {
|
|
2449
|
+
$gOPD$3({}, '');
|
|
2450
|
+
} catch (e) {
|
|
2451
|
+
$gOPD$3 = null; // this is IE 8, which has a broken gOPD
|
|
2452
|
+
}
|
|
2453
|
+
}
|
|
2454
|
+
|
|
2455
|
+
var throwTypeError$1 = function () { throw new $TypeError$4(); };
|
|
2456
|
+
var ThrowTypeError$1 = $gOPD$3
|
|
2457
|
+
? (function () {
|
|
2458
|
+
try {
|
|
2459
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
2460
|
+
arguments.callee; // IE 8 does not throw here
|
|
2461
|
+
return throwTypeError$1;
|
|
2462
|
+
} catch (calleeThrows) {
|
|
2463
|
+
try {
|
|
2464
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
2465
|
+
return $gOPD$3(arguments, 'callee').get;
|
|
2466
|
+
} catch (gOPDthrows) {
|
|
2467
|
+
return throwTypeError$1;
|
|
2468
|
+
}
|
|
2469
|
+
}
|
|
2470
|
+
}())
|
|
2471
|
+
: throwTypeError$1;
|
|
2472
|
+
|
|
2473
|
+
var hasSymbols$3 = hasSymbols$1();
|
|
2474
|
+
|
|
2475
|
+
var getProto$1 = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
2476
|
+
var generatorFunction$1 = undefined$2;
|
|
2477
|
+
var asyncFunction$1 = undefined$2;
|
|
2478
|
+
var asyncGenFunction$1 = undefined$2;
|
|
2479
|
+
|
|
2480
|
+
var TypedArray$1 = typeof Uint8Array === 'undefined' ? undefined$2 : getProto$1(Uint8Array);
|
|
2481
|
+
|
|
2482
|
+
var INTRINSICS$1 = {
|
|
2483
|
+
'%Array%': Array,
|
|
2484
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer,
|
|
2485
|
+
'%ArrayBufferPrototype%': typeof ArrayBuffer === 'undefined' ? undefined$2 : ArrayBuffer.prototype,
|
|
2486
|
+
'%ArrayIteratorPrototype%': hasSymbols$3 ? getProto$1([][Symbol.iterator]()) : undefined$2,
|
|
2487
|
+
'%ArrayPrototype%': Array.prototype,
|
|
2488
|
+
'%ArrayProto_entries%': Array.prototype.entries,
|
|
2489
|
+
'%ArrayProto_forEach%': Array.prototype.forEach,
|
|
2490
|
+
'%ArrayProto_keys%': Array.prototype.keys,
|
|
2491
|
+
'%ArrayProto_values%': Array.prototype.values,
|
|
2492
|
+
'%AsyncFromSyncIteratorPrototype%': undefined$2,
|
|
2493
|
+
'%AsyncFunction%': asyncFunction$1,
|
|
2494
|
+
'%AsyncFunctionPrototype%': undefined$2,
|
|
2495
|
+
'%AsyncGenerator%': undefined$2,
|
|
2496
|
+
'%AsyncGeneratorFunction%': asyncGenFunction$1,
|
|
2497
|
+
'%AsyncGeneratorPrototype%': undefined$2,
|
|
2498
|
+
'%AsyncIteratorPrototype%': undefined$2,
|
|
2499
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined$2 : Atomics,
|
|
2500
|
+
'%Boolean%': Boolean,
|
|
2501
|
+
'%BooleanPrototype%': Boolean.prototype,
|
|
2502
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined$2 : DataView,
|
|
2503
|
+
'%DataViewPrototype%': typeof DataView === 'undefined' ? undefined$2 : DataView.prototype,
|
|
2504
|
+
'%Date%': Date,
|
|
2505
|
+
'%DatePrototype%': Date.prototype,
|
|
2506
|
+
'%decodeURI%': decodeURI,
|
|
2507
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
2508
|
+
'%encodeURI%': encodeURI,
|
|
2509
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
2510
|
+
'%Error%': Error,
|
|
2511
|
+
'%ErrorPrototype%': Error.prototype,
|
|
2512
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
2513
|
+
'%EvalError%': EvalError,
|
|
2514
|
+
'%EvalErrorPrototype%': EvalError.prototype,
|
|
2515
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array,
|
|
2516
|
+
'%Float32ArrayPrototype%': typeof Float32Array === 'undefined' ? undefined$2 : Float32Array.prototype,
|
|
2517
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array,
|
|
2518
|
+
'%Float64ArrayPrototype%': typeof Float64Array === 'undefined' ? undefined$2 : Float64Array.prototype,
|
|
2519
|
+
'%Function%': Function,
|
|
2520
|
+
'%FunctionPrototype%': Function.prototype,
|
|
2521
|
+
'%Generator%': undefined$2,
|
|
2522
|
+
'%GeneratorFunction%': generatorFunction$1,
|
|
2523
|
+
'%GeneratorPrototype%': undefined$2,
|
|
2524
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array,
|
|
2525
|
+
'%Int8ArrayPrototype%': typeof Int8Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
2526
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$2 : Int16Array,
|
|
2527
|
+
'%Int16ArrayPrototype%': typeof Int16Array === 'undefined' ? undefined$2 : Int8Array.prototype,
|
|
2528
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array,
|
|
2529
|
+
'%Int32ArrayPrototype%': typeof Int32Array === 'undefined' ? undefined$2 : Int32Array.prototype,
|
|
2530
|
+
'%isFinite%': isFinite,
|
|
2531
|
+
'%isNaN%': isNaN,
|
|
2532
|
+
'%IteratorPrototype%': hasSymbols$3 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$2,
|
|
2533
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined$2,
|
|
2534
|
+
'%JSONParse%': typeof JSON === 'object' ? JSON.parse : undefined$2,
|
|
2535
|
+
'%Map%': typeof Map === 'undefined' ? undefined$2 : Map,
|
|
2536
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Map()[Symbol.iterator]()),
|
|
2537
|
+
'%MapPrototype%': typeof Map === 'undefined' ? undefined$2 : Map.prototype,
|
|
2538
|
+
'%Math%': Math,
|
|
2539
|
+
'%Number%': Number,
|
|
2540
|
+
'%NumberPrototype%': Number.prototype,
|
|
2541
|
+
'%Object%': Object,
|
|
2542
|
+
'%ObjectPrototype%': Object.prototype,
|
|
2543
|
+
'%ObjProto_toString%': Object.prototype.toString,
|
|
2544
|
+
'%ObjProto_valueOf%': Object.prototype.valueOf,
|
|
2545
|
+
'%parseFloat%': parseFloat,
|
|
2546
|
+
'%parseInt%': parseInt,
|
|
2547
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined$2 : Promise,
|
|
2548
|
+
'%PromisePrototype%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype,
|
|
2549
|
+
'%PromiseProto_then%': typeof Promise === 'undefined' ? undefined$2 : Promise.prototype.then,
|
|
2550
|
+
'%Promise_all%': typeof Promise === 'undefined' ? undefined$2 : Promise.all,
|
|
2551
|
+
'%Promise_reject%': typeof Promise === 'undefined' ? undefined$2 : Promise.reject,
|
|
2552
|
+
'%Promise_resolve%': typeof Promise === 'undefined' ? undefined$2 : Promise.resolve,
|
|
2553
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined$2 : Proxy,
|
|
2554
|
+
'%RangeError%': RangeError,
|
|
2555
|
+
'%RangeErrorPrototype%': RangeError.prototype,
|
|
2556
|
+
'%ReferenceError%': ReferenceError,
|
|
2557
|
+
'%ReferenceErrorPrototype%': ReferenceError.prototype,
|
|
2558
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined$2 : Reflect,
|
|
2559
|
+
'%RegExp%': RegExp,
|
|
2560
|
+
'%RegExpPrototype%': RegExp.prototype,
|
|
2561
|
+
'%Set%': typeof Set === 'undefined' ? undefined$2 : Set,
|
|
2562
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$3 ? undefined$2 : getProto$1(new Set()[Symbol.iterator]()),
|
|
2563
|
+
'%SetPrototype%': typeof Set === 'undefined' ? undefined$2 : Set.prototype,
|
|
2564
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer,
|
|
2565
|
+
'%SharedArrayBufferPrototype%': typeof SharedArrayBuffer === 'undefined' ? undefined$2 : SharedArrayBuffer.prototype,
|
|
2566
|
+
'%String%': String,
|
|
2567
|
+
'%StringIteratorPrototype%': hasSymbols$3 ? getProto$1(''[Symbol.iterator]()) : undefined$2,
|
|
2568
|
+
'%StringPrototype%': String.prototype,
|
|
2569
|
+
'%Symbol%': hasSymbols$3 ? Symbol : undefined$2,
|
|
2570
|
+
'%SymbolPrototype%': hasSymbols$3 ? Symbol.prototype : undefined$2,
|
|
2571
|
+
'%SyntaxError%': SyntaxError,
|
|
2572
|
+
'%SyntaxErrorPrototype%': SyntaxError.prototype,
|
|
2573
|
+
'%ThrowTypeError%': ThrowTypeError$1,
|
|
2574
|
+
'%TypedArray%': TypedArray$1,
|
|
2575
|
+
'%TypedArrayPrototype%': TypedArray$1 ? TypedArray$1.prototype : undefined$2,
|
|
2576
|
+
'%TypeError%': $TypeError$4,
|
|
2577
|
+
'%TypeErrorPrototype%': $TypeError$4.prototype,
|
|
2578
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array,
|
|
2579
|
+
'%Uint8ArrayPrototype%': typeof Uint8Array === 'undefined' ? undefined$2 : Uint8Array.prototype,
|
|
2580
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray,
|
|
2581
|
+
'%Uint8ClampedArrayPrototype%': typeof Uint8ClampedArray === 'undefined' ? undefined$2 : Uint8ClampedArray.prototype,
|
|
2582
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array,
|
|
2583
|
+
'%Uint16ArrayPrototype%': typeof Uint16Array === 'undefined' ? undefined$2 : Uint16Array.prototype,
|
|
2584
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array,
|
|
2585
|
+
'%Uint32ArrayPrototype%': typeof Uint32Array === 'undefined' ? undefined$2 : Uint32Array.prototype,
|
|
2586
|
+
'%URIError%': URIError,
|
|
2587
|
+
'%URIErrorPrototype%': URIError.prototype,
|
|
2588
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap,
|
|
2589
|
+
'%WeakMapPrototype%': typeof WeakMap === 'undefined' ? undefined$2 : WeakMap.prototype,
|
|
2590
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet,
|
|
2591
|
+
'%WeakSetPrototype%': typeof WeakSet === 'undefined' ? undefined$2 : WeakSet.prototype
|
|
2592
|
+
};
|
|
2593
|
+
|
|
2594
|
+
|
|
2595
|
+
var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
|
|
2596
|
+
|
|
2597
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
2598
|
+
var rePropName$1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
2599
|
+
var reEscapeChar$1 = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
2600
|
+
var stringToPath$1 = function stringToPath(string) {
|
|
2601
|
+
var result = [];
|
|
2602
|
+
$replace$1(string, rePropName$1, function (match, number, quote, subString) {
|
|
2603
|
+
result[result.length] = quote ? $replace$1(subString, reEscapeChar$1, '$1') : (number || match);
|
|
2604
|
+
});
|
|
2605
|
+
return result;
|
|
2606
|
+
};
|
|
2607
|
+
/* end adaptation */
|
|
2608
|
+
|
|
2609
|
+
var getBaseIntrinsic$1 = function getBaseIntrinsic(name, allowMissing) {
|
|
2610
|
+
if (!(name in INTRINSICS$1)) {
|
|
2611
|
+
throw new SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
2612
|
+
}
|
|
2613
|
+
|
|
2614
|
+
// istanbul ignore if // hopefully this is impossible to test :-)
|
|
2615
|
+
if (typeof INTRINSICS$1[name] === 'undefined' && !allowMissing) {
|
|
2616
|
+
throw new $TypeError$4('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
2617
|
+
}
|
|
2618
|
+
|
|
2619
|
+
return INTRINSICS$1[name];
|
|
2620
|
+
};
|
|
2621
|
+
|
|
2622
|
+
var GetIntrinsic$1 = function GetIntrinsic(name, allowMissing) {
|
|
2623
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
2624
|
+
throw new TypeError('intrinsic name must be a non-empty string');
|
|
2625
|
+
}
|
|
2626
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
2627
|
+
throw new TypeError('"allowMissing" argument must be a boolean');
|
|
2628
|
+
}
|
|
2629
|
+
|
|
2630
|
+
var parts = stringToPath$1(name);
|
|
2631
|
+
|
|
2632
|
+
var value = getBaseIntrinsic$1('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing);
|
|
2633
|
+
for (var i = 1; i < parts.length; i += 1) {
|
|
2634
|
+
if (value != null) {
|
|
2635
|
+
if ($gOPD$3 && (i + 1) >= parts.length) {
|
|
2636
|
+
var desc = $gOPD$3(value, parts[i]);
|
|
2637
|
+
if (!allowMissing && !(parts[i] in value)) {
|
|
2638
|
+
throw new $TypeError$4('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
2639
|
+
}
|
|
2640
|
+
value = desc ? (desc.get || desc.value) : value[parts[i]];
|
|
2641
|
+
} else {
|
|
2642
|
+
value = value[parts[i]];
|
|
2643
|
+
}
|
|
2644
|
+
}
|
|
2645
|
+
}
|
|
2646
|
+
return value;
|
|
2647
|
+
};
|
|
2648
|
+
|
|
2649
|
+
var $apply$1 = GetIntrinsic$1('%Function.prototype.apply%');
|
|
2650
|
+
var $call$1 = GetIntrinsic$1('%Function.prototype.call%');
|
|
2651
|
+
var $reflectApply = GetIntrinsic$1('%Reflect.apply%', true) || functionBind.call($call$1, $apply$1);
|
|
2652
|
+
|
|
2653
|
+
var callBind$1 = function callBind() {
|
|
2654
|
+
return $reflectApply(functionBind, $call$1, arguments);
|
|
2655
|
+
};
|
|
2656
|
+
|
|
2657
|
+
var apply$1 = function applyBind() {
|
|
2658
|
+
return $reflectApply(functionBind, $apply$1, arguments);
|
|
2659
|
+
};
|
|
2660
|
+
callBind$1.apply = apply$1;
|
|
2661
|
+
|
|
2662
|
+
var $indexOf$1 = callBind$1(GetIntrinsic$1('String.prototype.indexOf'));
|
|
2663
|
+
|
|
2664
|
+
var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
|
|
2665
|
+
var intrinsic = GetIntrinsic$1(name, !!allowMissing);
|
|
2666
|
+
if (typeof intrinsic === 'function' && $indexOf$1(name, '.prototype.')) {
|
|
2667
|
+
return callBind$1(intrinsic);
|
|
2668
|
+
}
|
|
2669
|
+
return intrinsic;
|
|
2670
|
+
};
|
|
2671
|
+
|
|
2505
2672
|
var isES5$1 = typeof Object.defineProperty === 'function'
|
|
2506
2673
|
&& typeof Object.defineProperties === 'function';
|
|
2507
2674
|
|
|
@@ -2519,9 +2686,9 @@ if (typeof Promise !== 'function') {
|
|
|
2519
2686
|
|
|
2520
2687
|
|
|
2521
2688
|
|
|
2522
|
-
var $slice = callBound('Array.prototype.slice');
|
|
2523
|
-
var $concat$1 = callBound('Array.prototype.concat');
|
|
2524
|
-
var $forEach = callBound('Array.prototype.forEach');
|
|
2689
|
+
var $slice = callBound$1('Array.prototype.slice');
|
|
2690
|
+
var $concat$1 = callBound$1('Array.prototype.concat');
|
|
2691
|
+
var $forEach = callBound$1('Array.prototype.forEach');
|
|
2525
2692
|
|
|
2526
2693
|
var hasSymbols$4 = hasSymbols$1();
|
|
2527
2694
|
|
|
@@ -2837,7 +3004,7 @@ var md5 = createCommonjsModule(function (module) {
|
|
|
2837
3004
|
message = utf8.stringToBytes(message);
|
|
2838
3005
|
else if (isBuffer(message))
|
|
2839
3006
|
message = Array.prototype.slice.call(message, 0);
|
|
2840
|
-
else if (!Array.isArray(message)
|
|
3007
|
+
else if (!Array.isArray(message))
|
|
2841
3008
|
message = message.toString();
|
|
2842
3009
|
// else, assume byte array already
|
|
2843
3010
|
|