@mjhls/mjh-framework 1.0.672 → 1.0.673-article-series
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 +10 -9
- package/dist/cjs/AD300x250.js +10 -9
- package/dist/cjs/AD300x250x600.js +10 -9
- package/dist/cjs/AD728x90.js +11 -10
- package/dist/cjs/ADFloatingFooter.js +12 -11
- package/dist/cjs/ADFooter.js +9 -8
- package/dist/cjs/ADGutter.js +12 -11
- package/dist/cjs/{ADInfeed-9735aff2.js → ADInfeed-bc591de7.js} +11 -9
- package/dist/cjs/ADSkyscraper.js +12 -11
- package/dist/cjs/ADSponsoredResources.js +12 -11
- package/dist/cjs/ADWebcast.js +12 -11
- package/dist/cjs/ADWelcome.js +16 -15
- package/dist/cjs/{ADlgInfeed-6bd11848.js → ADlgInfeed-4b713637.js} +7 -6
- package/dist/cjs/AccordionPanel.js +24 -22
- package/dist/cjs/AdSlot.js +14 -13
- package/dist/cjs/AdSlotsProvider.js +6 -5
- package/dist/cjs/AlphabeticList.js +16 -15
- package/dist/cjs/ArticleCarousel.js +9 -8
- package/dist/cjs/ArticleSeriesListing.js +38 -37
- package/dist/cjs/Auth.js +430 -593
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-ac8972ce.js} +13 -12
- package/dist/cjs/{BlockContent-88f69acd.js → BlockContent-8b494587.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +23 -21
- package/dist/cjs/CMEDeck.js +61 -61
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +22 -19
- package/dist/cjs/Column3.js +35 -32
- package/dist/cjs/ConferenceArticleCard.js +19 -18
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +77 -73
- package/dist/cjs/DeckQueue.js +73 -69
- package/dist/cjs/{Dfp-b2bc3b97.js → Dfp-fa2c6aad.js} +21 -20
- package/dist/cjs/EventsDeck.js +123 -116
- package/dist/cjs/ExternalResources.js +44 -43
- package/dist/cjs/Feature.js +26 -24
- package/dist/cjs/ForbesHero.js +34 -33
- package/dist/cjs/GridContent.js +153 -149
- package/dist/cjs/GridHero.js +35 -34
- package/dist/cjs/GroupDeck.js +40 -39
- package/dist/cjs/HamMagazine.js +119 -114
- package/dist/cjs/Header.js +13 -11
- package/dist/cjs/Hero.js +11 -10
- package/dist/cjs/HighlightenVideo.js +17 -16
- package/dist/cjs/HorizontalHero.js +25 -24
- package/dist/cjs/IssueContentDeck.js +69 -64
- package/dist/cjs/IssueDeck.js +64 -59
- package/dist/cjs/IssueLanding.js +18 -17
- package/dist/cjs/LeftNav.js +22 -20
- package/dist/cjs/MasterDeck.js +50 -49
- package/dist/cjs/NavDvm.js +68 -63
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +121 -116
- package/dist/cjs/NavNative.js +103 -95
- package/dist/cjs/NavNormal.js +41 -36
- package/dist/cjs/OncliveHero.js +18 -18
- package/dist/cjs/OncliveLargeHero.js +59 -58
- package/dist/cjs/PageFilter.js +9 -8
- package/dist/cjs/PartnerDetailListing.js +1269 -71
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +15 -13
- package/dist/cjs/PublicationDeck.js +63 -58
- package/dist/cjs/PublicationLanding.js +52 -48
- package/dist/cjs/QueueDeckExpanded.js +219 -219
- package/dist/cjs/RecentNews.js +23 -22
- package/dist/cjs/RelatedContent.js +22 -21
- package/dist/cjs/RelatedTopicsDropdown.js +22 -19
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +16 -12
- package/dist/cjs/SideFooter.js +24 -23
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-962b1344.js → SocialSearchComponent-fde6c921.js} +36 -32
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +59 -54
- package/dist/cjs/TemplateNormal.js +36 -35
- package/dist/cjs/ThumbnailCard.js +19 -17
- package/dist/cjs/Ustream.js +21 -20
- package/dist/cjs/VerticalHero.js +17 -16
- package/dist/cjs/VideoSeriesCard.js +25 -24
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesListing.js +52 -51
- package/dist/cjs/View.js +183 -179
- package/dist/cjs/YahooHero.js +30 -29
- package/dist/cjs/YoutubeGroup.js +53 -52
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-5c98aec7.js} +10 -8
- package/dist/cjs/getRelatedArticle.js +354 -5
- package/dist/cjs/getSerializers.js +9 -9
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-c190d704.js → index-06016cad.js} +361 -351
- package/dist/cjs/{index-2d0a4911.js → index-44481153.js} +9 -8
- package/dist/cjs/{index-5be2866f.js → index-6367b7bf.js} +16 -17
- package/dist/cjs/{index-da796b8c.js → index-8a3fb0bc.js} +12 -10
- package/dist/cjs/index-bd6c9f56.js +211 -0
- package/dist/cjs/{index.es-ab3f2690.js → index.es-f3e47207.js} +28 -11
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-66ffa47a.js → index.esm-3b9b8952.js} +4 -9
- package/dist/cjs/{index.esm-876ca9ff.js → index.esm-61650d1a.js} +5 -12
- package/dist/cjs/{index.esm-fe549f9c.js → index.esm-dd489d02.js} +20 -20
- package/dist/cjs/index.js +31 -32
- package/dist/cjs/{inherits-513d81cd.js → inherits-87492b40.js} +4 -4
- package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
- package/dist/cjs/{main-b6c96c8d.js → main-9499b3ef.js} +48 -43
- package/dist/cjs/{moment-66a6a284.js → moment-ca3bd9fb.js} +10 -8
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-07939b41.js} +12 -11
- package/dist/cjs/{typeof-725500bc.js → typeof-9d7f610f.js} +1 -1
- package/dist/cjs/urlFor.js +2 -2
- package/dist/cjs/{visibility-sensor-0c45a583.js → visibility-sensor-8b54af99.js} +7 -5
- 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-9140aa7d.js → ADInfeed-d1777980.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-7656ecd1.js → ADlgInfeed-84282fe8.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 +411 -578
- package/dist/esm/{AuthorComponent-00f13201.js → AuthorComponent-23afa074.js} +10 -10
- package/dist/esm/{BlockContent-a614acdf.js → BlockContent-d05b5b23.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-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +53 -53
- package/dist/esm/DeckQueue.js +46 -46
- package/dist/esm/{Dfp-8a8fca18.js → Dfp-939e8fcf.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-e27bd93b.js → NavFooter-c29526b7.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 +13 -14
- package/dist/esm/OncliveLargeHero.js +51 -51
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +1263 -67
- 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-75527dfe.js → SocialSearchComponent-a13fc98b.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 +165 -165
- package/dist/esm/YahooHero.js +24 -24
- package/dist/esm/YoutubeGroup.js +38 -38
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-4abff0b1.js} +7 -6
- package/dist/esm/getRelatedArticle.js +354 -5
- package/dist/esm/getSerializers.js +9 -9
- package/dist/esm/{index-93ec3c59.js → index-1819118a.js} +3 -3
- package/dist/esm/{index-983cedab.js → index-45bca0c4.js} +303 -299
- package/dist/esm/{index-d2f90501.js → index-c00b0bbb.js} +16 -17
- package/dist/esm/{index-5f9f807a.js → index-c5fd0af5.js} +4 -4
- package/dist/esm/index-db3bb315.js +207 -0
- package/dist/esm/{index.es-938a3a58.js → index.es-c6222053.js} +25 -9
- package/dist/esm/{index.esm-85cb09e6.js → index.esm-79385203.js} +5 -12
- package/dist/esm/{index.esm-73e847d2.js → index.esm-902766e0.js} +17 -18
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-b08f4b04.js → index.esm-d6f88d94.js} +4 -9
- package/dist/esm/index.js +26 -27
- package/dist/esm/{inherits-7ee3e0c1.js → inherits-596840e8.js} +1 -1
- package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
- package/dist/esm/{main-0465b2a0.js → main-edbd70ac.js} +48 -44
- package/dist/esm/{moment-12415288.js → moment-b6f49411.js} +10 -8
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-3822f1ce.js} +5 -5
- package/dist/esm/{typeof-08f2c380.js → typeof-ee095d0c.js} +1 -1
- package/dist/esm/{visibility-sensor-0baa4eea.js → visibility-sensor-082c757b.js} +2 -2
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
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, { 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,6 +15,7 @@ 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';
|
|
18
19
|
import useSWR from 'swr';
|
|
19
20
|
import Local from 'passport-local';
|
|
20
21
|
import mysql from 'mysql';
|
|
@@ -56,21 +57,21 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
if (type == 'text' || type == 'email' || type == 'password' || type == 'number') {
|
|
59
|
-
return
|
|
60
|
+
return React.createElement(
|
|
60
61
|
Form.Group,
|
|
61
62
|
_extends({}, opts, { controlId: name }),
|
|
62
|
-
|
|
63
|
+
React.createElement(
|
|
63
64
|
Form.Label,
|
|
64
65
|
{ kye: name + '_label' },
|
|
65
66
|
label,
|
|
66
|
-
required &&
|
|
67
|
+
required && React.createElement(
|
|
67
68
|
'span',
|
|
68
69
|
{ style: { color: 'red' } },
|
|
69
70
|
'*'
|
|
70
71
|
)
|
|
71
72
|
),
|
|
72
|
-
|
|
73
|
-
|
|
73
|
+
React.createElement(Form.Control, { key: name + '_' + type, type: type, readOnly: readonly, name: name, placeholder: '', defaultValue: default_value, required: required }),
|
|
74
|
+
React.createElement(
|
|
74
75
|
Form.Control.Feedback,
|
|
75
76
|
{ key: name + '_feedback', type: 'invalid' },
|
|
76
77
|
errors[name]
|
|
@@ -78,28 +79,28 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
78
79
|
);
|
|
79
80
|
}
|
|
80
81
|
if (type == 'select') {
|
|
81
|
-
return
|
|
82
|
+
return React.createElement(
|
|
82
83
|
Form.Group,
|
|
83
84
|
_extends({}, opts, { key: name, controlId: name }),
|
|
84
|
-
|
|
85
|
+
React.createElement(
|
|
85
86
|
Form.Label,
|
|
86
87
|
{ key: name + '_' + label },
|
|
87
88
|
label,
|
|
88
|
-
required &&
|
|
89
|
+
required && React.createElement(
|
|
89
90
|
'span',
|
|
90
91
|
{ key: name + '_required_span', style: { color: 'red' } },
|
|
91
92
|
'*'
|
|
92
93
|
)
|
|
93
94
|
),
|
|
94
|
-
|
|
95
|
+
React.createElement(
|
|
95
96
|
Form.Control,
|
|
96
97
|
{ key: name + '_select', as: 'select', name: name, required: required, defaultValue: default_value },
|
|
97
|
-
|
|
98
|
+
React.createElement('option', { value: '', key: name + '_options_empty' }),
|
|
98
99
|
options.map(function (option, index) {
|
|
99
100
|
var value = option.value ? option.value : option;
|
|
100
101
|
var label = option.label ? option.label : option;
|
|
101
102
|
var key = name + '_options_' + index;
|
|
102
|
-
return
|
|
103
|
+
return React.createElement(
|
|
103
104
|
'option',
|
|
104
105
|
{ key: key, value: value },
|
|
105
106
|
label
|
|
@@ -110,25 +111,25 @@ var returnFormField = function returnFormField(_ref) {
|
|
|
110
111
|
}
|
|
111
112
|
|
|
112
113
|
if (type == 'radio' || type == 'checkbox') {
|
|
113
|
-
return
|
|
114
|
+
return React.createElement(
|
|
114
115
|
Form.Group,
|
|
115
116
|
opts,
|
|
116
|
-
|
|
117
|
+
React.createElement(
|
|
117
118
|
Form.Label,
|
|
118
119
|
null,
|
|
119
120
|
label,
|
|
120
|
-
required &&
|
|
121
|
+
required && React.createElement(
|
|
121
122
|
'span',
|
|
122
123
|
{ style: { color: 'red' } },
|
|
123
124
|
'*'
|
|
124
125
|
)
|
|
125
126
|
),
|
|
126
127
|
options.map(function (option, index) {
|
|
127
|
-
return
|
|
128
|
+
return React.createElement(
|
|
128
129
|
Form.Check,
|
|
129
130
|
{ type: type, key: index, required: required },
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
React.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 }),
|
|
132
|
+
React.createElement(Form.Check.Label, { style: { cursor: 'pointer' }, 'for': name + '_' + index, key: type + '_' + index + '_label', dangerouslySetInnerHTML: { __html: option.label } })
|
|
132
133
|
);
|
|
133
134
|
})
|
|
134
135
|
);
|
|
@@ -335,43 +336,43 @@ var LoginForm = function LoginForm(props) {
|
|
|
335
336
|
loading = _useState4[0],
|
|
336
337
|
setLoading = _useState4[1];
|
|
337
338
|
|
|
338
|
-
return
|
|
339
|
+
return React.createElement(
|
|
339
340
|
Form,
|
|
340
341
|
{ className: 'login', onSubmit: handleSubmit },
|
|
341
|
-
|
|
342
|
+
React.createElement(
|
|
342
343
|
'h1',
|
|
343
344
|
null,
|
|
344
345
|
'Login'
|
|
345
346
|
),
|
|
346
|
-
|
|
347
|
+
React.createElement('hr', null),
|
|
347
348
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
|
|
348
349
|
returnFormField({ name: 'password', label: 'Password', type: 'password', required: true }),
|
|
349
|
-
|
|
350
|
-
|
|
350
|
+
React.createElement('hr', null),
|
|
351
|
+
React.createElement(
|
|
351
352
|
Form.Row,
|
|
352
353
|
null,
|
|
353
|
-
|
|
354
|
+
React.createElement(
|
|
354
355
|
Form.Group,
|
|
355
356
|
{ as: Col },
|
|
356
|
-
|
|
357
|
+
React.createElement(
|
|
357
358
|
'a',
|
|
358
359
|
{ href: '/auth/signup' },
|
|
359
360
|
'I don\'t have an account'
|
|
360
361
|
)
|
|
361
362
|
),
|
|
362
|
-
|
|
363
|
+
React.createElement(
|
|
363
364
|
Form.Group,
|
|
364
365
|
{ as: Col, className: 'text-right' },
|
|
365
|
-
!loading &&
|
|
366
|
+
!loading && React.createElement(
|
|
366
367
|
Button,
|
|
367
368
|
{ type: 'submit' },
|
|
368
369
|
'Login'
|
|
369
370
|
),
|
|
370
|
-
loading &&
|
|
371
|
+
loading && React.createElement(
|
|
371
372
|
Button,
|
|
372
373
|
{ variant: 'primary', disabled: true },
|
|
373
|
-
|
|
374
|
-
|
|
374
|
+
React.createElement(Spinner, { as: 'span', animation: 'border', role: 'status', 'aria-hidden': 'true', size: 'sm' }),
|
|
375
|
+
React.createElement(
|
|
375
376
|
'span',
|
|
376
377
|
{ className: 'sr-only' },
|
|
377
378
|
'Loading...'
|
|
@@ -379,12 +380,12 @@ var LoginForm = function LoginForm(props) {
|
|
|
379
380
|
)
|
|
380
381
|
)
|
|
381
382
|
),
|
|
382
|
-
errorMsg &&
|
|
383
|
+
errorMsg && React.createElement(
|
|
383
384
|
'p',
|
|
384
385
|
{ className: 'error' },
|
|
385
386
|
errorMsg
|
|
386
387
|
),
|
|
387
|
-
|
|
388
|
+
React.createElement(
|
|
388
389
|
'style',
|
|
389
390
|
{ jsx: 'true'.toString() },
|
|
390
391
|
'\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 '
|
|
@@ -640,29 +641,29 @@ var SignupForm = function SignupForm(props) {
|
|
|
640
641
|
loading = _useState14[0],
|
|
641
642
|
setLoading = _useState14[1];
|
|
642
643
|
|
|
643
|
-
return
|
|
644
|
+
return React.createElement(
|
|
644
645
|
Form,
|
|
645
646
|
{ className: 'login', id: 'signupForm', onSubmit: handleSubmit },
|
|
646
|
-
|
|
647
|
+
React.createElement(
|
|
647
648
|
'h1',
|
|
648
649
|
null,
|
|
649
650
|
'Sign Up'
|
|
650
651
|
),
|
|
651
|
-
|
|
652
|
+
React.createElement('hr', null),
|
|
652
653
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true }),
|
|
653
|
-
|
|
654
|
+
React.createElement(
|
|
654
655
|
Form.Row,
|
|
655
656
|
null,
|
|
656
657
|
returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: Col, required: true }),
|
|
657
658
|
returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: Col, required: true })
|
|
658
659
|
),
|
|
659
|
-
|
|
660
|
+
React.createElement(
|
|
660
661
|
Form.Row,
|
|
661
662
|
null,
|
|
662
663
|
returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: Col, required: true }),
|
|
663
664
|
returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: Col, required: true })
|
|
664
665
|
),
|
|
665
|
-
|
|
666
|
+
React.createElement(
|
|
666
667
|
Form.Row,
|
|
667
668
|
null,
|
|
668
669
|
returnFormField({
|
|
@@ -676,7 +677,7 @@ var SignupForm = function SignupForm(props) {
|
|
|
676
677
|
}),
|
|
677
678
|
countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: Col, options: states })
|
|
678
679
|
),
|
|
679
|
-
|
|
680
|
+
React.createElement(
|
|
680
681
|
Form.Row,
|
|
681
682
|
null,
|
|
682
683
|
countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: Col }),
|
|
@@ -723,38 +724,38 @@ var SignupForm = function SignupForm(props) {
|
|
|
723
724
|
required: true,
|
|
724
725
|
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' }]
|
|
725
726
|
}),
|
|
726
|
-
|
|
727
|
-
|
|
727
|
+
React.createElement('hr', null),
|
|
728
|
+
React.createElement(
|
|
728
729
|
Form.Row,
|
|
729
730
|
null,
|
|
730
|
-
|
|
731
|
+
React.createElement(
|
|
731
732
|
Form.Group,
|
|
732
733
|
{ as: Col },
|
|
733
|
-
|
|
734
|
+
React.createElement(
|
|
734
735
|
'a',
|
|
735
736
|
{ href: '/auth/login' },
|
|
736
737
|
'I already have an account'
|
|
737
738
|
)
|
|
738
739
|
),
|
|
739
|
-
|
|
740
|
+
React.createElement(
|
|
740
741
|
Form.Group,
|
|
741
742
|
{ as: Col, className: 'text-right' },
|
|
742
|
-
!loading &&
|
|
743
|
+
!loading && React.createElement(
|
|
743
744
|
Button,
|
|
744
745
|
{ type: 'submit' },
|
|
745
746
|
'Sign Up'
|
|
746
747
|
),
|
|
747
|
-
loading &&
|
|
748
|
+
loading && React.createElement(
|
|
748
749
|
Button,
|
|
749
750
|
{ variant: 'primary', disabled: true },
|
|
750
|
-
|
|
751
|
+
React.createElement(Spinner, {
|
|
751
752
|
as: 'span',
|
|
752
753
|
animation: 'border',
|
|
753
754
|
role: 'status',
|
|
754
755
|
'aria-hidden': 'true',
|
|
755
756
|
size: 'sm'
|
|
756
757
|
}),
|
|
757
|
-
|
|
758
|
+
React.createElement(
|
|
758
759
|
'span',
|
|
759
760
|
{ className: 'sr-only' },
|
|
760
761
|
'Loading...'
|
|
@@ -762,12 +763,12 @@ var SignupForm = function SignupForm(props) {
|
|
|
762
763
|
)
|
|
763
764
|
)
|
|
764
765
|
),
|
|
765
|
-
errorMsg &&
|
|
766
|
+
errorMsg && React.createElement(
|
|
766
767
|
'p',
|
|
767
768
|
{ className: 'error' },
|
|
768
769
|
errorMsg
|
|
769
770
|
),
|
|
770
|
-
|
|
771
|
+
React.createElement(
|
|
771
772
|
'style',
|
|
772
773
|
{ jsx: 'true'.toString() },
|
|
773
774
|
' \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 '
|
|
@@ -1057,32 +1058,32 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1057
1058
|
loading = _useState18[0],
|
|
1058
1059
|
setLoading = _useState18[1];
|
|
1059
1060
|
|
|
1060
|
-
return
|
|
1061
|
+
return React.createElement(
|
|
1061
1062
|
Form,
|
|
1062
1063
|
{ className: 'login', id: 'signupForm', onSubmit: handleSubmit },
|
|
1063
|
-
|
|
1064
|
+
React.createElement(
|
|
1064
1065
|
'h1',
|
|
1065
1066
|
null,
|
|
1066
1067
|
'Profile'
|
|
1067
1068
|
),
|
|
1068
|
-
|
|
1069
|
-
userData ?
|
|
1070
|
-
|
|
1069
|
+
React.createElement('hr', null),
|
|
1070
|
+
userData ? React.createElement(
|
|
1071
|
+
React.Fragment,
|
|
1071
1072
|
null,
|
|
1072
1073
|
returnFormField({ name: 'email', label: 'Email', type: 'email', required: true, readonly: true, default_value: userData.email }),
|
|
1073
|
-
|
|
1074
|
+
React.createElement(
|
|
1074
1075
|
Form.Row,
|
|
1075
1076
|
null,
|
|
1076
1077
|
returnFormField({ name: 'password', label: 'Password', type: 'password', groupType: Col, required: false }),
|
|
1077
1078
|
returnFormField({ name: 'rpassword', label: 'Retype Password', type: 'password', groupType: Col, required: false })
|
|
1078
1079
|
),
|
|
1079
|
-
|
|
1080
|
+
React.createElement(
|
|
1080
1081
|
Form.Row,
|
|
1081
1082
|
null,
|
|
1082
1083
|
returnFormField({ name: 'first_name', label: 'First Name', type: 'text', groupType: Col, required: true, default_value: userData.shared.first_name }),
|
|
1083
1084
|
returnFormField({ name: 'last_name', label: 'Last Name', type: 'text', groupType: Col, required: true, default_value: userData.shared.last_name })
|
|
1084
1085
|
),
|
|
1085
|
-
|
|
1086
|
+
React.createElement(
|
|
1086
1087
|
Form.Row,
|
|
1087
1088
|
null,
|
|
1088
1089
|
returnFormField({
|
|
@@ -1097,7 +1098,7 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1097
1098
|
}),
|
|
1098
1099
|
countryUS && returnFormField({ name: 'state', label: 'State', type: 'select', required: true, groupType: Col, options: states, default_value: userData.shared.state })
|
|
1099
1100
|
),
|
|
1100
|
-
|
|
1101
|
+
React.createElement(
|
|
1101
1102
|
Form.Row,
|
|
1102
1103
|
null,
|
|
1103
1104
|
countryUS && returnFormField({ name: 'zip', label: 'Working Zip Code', type: 'text', required: true, groupType: Col, default_value: userData.shared.zip }),
|
|
@@ -1147,29 +1148,29 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1147
1148
|
required: true,
|
|
1148
1149
|
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' }]
|
|
1149
1150
|
}),
|
|
1150
|
-
|
|
1151
|
-
|
|
1151
|
+
React.createElement('hr', null),
|
|
1152
|
+
React.createElement(
|
|
1152
1153
|
Form.Row,
|
|
1153
1154
|
null,
|
|
1154
|
-
|
|
1155
|
+
React.createElement(
|
|
1155
1156
|
Form.Group,
|
|
1156
1157
|
{ as: Col },
|
|
1157
|
-
!loading &&
|
|
1158
|
+
!loading && React.createElement(
|
|
1158
1159
|
Button,
|
|
1159
1160
|
{ type: 'submit' },
|
|
1160
1161
|
'Update'
|
|
1161
1162
|
),
|
|
1162
|
-
loading &&
|
|
1163
|
+
loading && React.createElement(
|
|
1163
1164
|
Button,
|
|
1164
1165
|
{ variant: 'primary', disabled: true },
|
|
1165
|
-
|
|
1166
|
+
React.createElement(Spinner, {
|
|
1166
1167
|
as: 'span',
|
|
1167
1168
|
animation: 'border',
|
|
1168
1169
|
role: 'status',
|
|
1169
1170
|
'aria-hidden': 'true',
|
|
1170
1171
|
size: 'sm'
|
|
1171
1172
|
}),
|
|
1172
|
-
|
|
1173
|
+
React.createElement(
|
|
1173
1174
|
'span',
|
|
1174
1175
|
{ className: 'sr-only' },
|
|
1175
1176
|
'Loading...'
|
|
@@ -1177,24 +1178,24 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1177
1178
|
)
|
|
1178
1179
|
)
|
|
1179
1180
|
)
|
|
1180
|
-
) :
|
|
1181
|
+
) : React.createElement(Spinner, {
|
|
1181
1182
|
as: 'span',
|
|
1182
1183
|
animation: 'border',
|
|
1183
1184
|
role: 'status',
|
|
1184
1185
|
'aria-hidden': 'true',
|
|
1185
1186
|
size: 'sm'
|
|
1186
1187
|
}),
|
|
1187
|
-
errorMsg &&
|
|
1188
|
+
errorMsg && React.createElement(
|
|
1188
1189
|
'p',
|
|
1189
1190
|
{ className: 'error' },
|
|
1190
1191
|
errorMsg
|
|
1191
1192
|
),
|
|
1192
|
-
successMsg &&
|
|
1193
|
+
successMsg && React.createElement(
|
|
1193
1194
|
'p',
|
|
1194
1195
|
{ className: 'success' },
|
|
1195
1196
|
successMsg
|
|
1196
1197
|
),
|
|
1197
|
-
|
|
1198
|
+
React.createElement(
|
|
1198
1199
|
'style',
|
|
1199
1200
|
{ jsx: 'true'.toString() },
|
|
1200
1201
|
' \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 '
|
|
@@ -1202,207 +1203,6 @@ var SignupForm$1 = function SignupForm(props) {
|
|
|
1202
1203
|
);
|
|
1203
1204
|
};
|
|
1204
1205
|
|
|
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
|
-
|
|
1406
1206
|
var TOKEN_NAME = 'token';
|
|
1407
1207
|
var MAX_AGE = 60 * 60 * 8; // 8 hours
|
|
1408
1208
|
|
|
@@ -2043,7 +1843,17 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
2043
1843
|
if (value != null) {
|
|
2044
1844
|
if ($gOPD && (i + 1) >= parts.length) {
|
|
2045
1845
|
var desc = $gOPD(value, parts[i]);
|
|
2046
|
-
|
|
1846
|
+
if (!allowMissing && !(parts[i] in value)) {
|
|
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]];
|
|
2047
1857
|
} else {
|
|
2048
1858
|
value = value[parts[i]];
|
|
2049
1859
|
}
|
|
@@ -2052,18 +1862,42 @@ var GetIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
|
2052
1862
|
return value;
|
|
2053
1863
|
};
|
|
2054
1864
|
|
|
2055
|
-
var
|
|
2056
|
-
|
|
2057
|
-
|
|
1865
|
+
var callBind = createCommonjsModule(function (module) {
|
|
1866
|
+
|
|
1867
|
+
|
|
1868
|
+
|
|
2058
1869
|
|
|
2059
|
-
|
|
2060
|
-
|
|
1870
|
+
|
|
1871
|
+
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
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);
|
|
2061
1888
|
};
|
|
2062
1889
|
|
|
2063
|
-
var
|
|
2064
|
-
return functionBind
|
|
1890
|
+
var applyBind = function applyBind() {
|
|
1891
|
+
return $reflectApply(functionBind, $apply, arguments);
|
|
2065
1892
|
};
|
|
2066
|
-
|
|
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;
|
|
2067
1901
|
|
|
2068
1902
|
var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
|
|
2069
1903
|
|
|
@@ -2075,7 +1909,16 @@ var callBound = function callBoundIntrinsic(name, allowMissing) {
|
|
|
2075
1909
|
return intrinsic;
|
|
2076
1910
|
};
|
|
2077
1911
|
|
|
2078
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%');
|
|
1912
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
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
|
+
}
|
|
2079
1922
|
|
|
2080
1923
|
|
|
2081
1924
|
|
|
@@ -2178,7 +2021,7 @@ var Type = function Type(x) {
|
|
|
2178
2021
|
}
|
|
2179
2022
|
};
|
|
2180
2023
|
|
|
2181
|
-
// https://
|
|
2024
|
+
// https://ecma-international.org/ecma-262/6.0/#sec-ecmascript-data-types-and-values
|
|
2182
2025
|
|
|
2183
2026
|
var Type$1 = function Type$1(x) {
|
|
2184
2027
|
if (typeof x === 'symbol') {
|
|
@@ -2218,6 +2061,277 @@ var FromPropertyDescriptor = function FromPropertyDescriptor(Desc) {
|
|
|
2218
2061
|
return obj;
|
|
2219
2062
|
};
|
|
2220
2063
|
|
|
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
|
+
|
|
2221
2335
|
// https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
|
|
2222
2336
|
|
|
2223
2337
|
var IsDataDescriptor = function IsDataDescriptor(Desc) {
|
|
@@ -2251,16 +2365,10 @@ var IsExtensible = $preventExtensions
|
|
|
2251
2365
|
? function IsExtensible(obj) {
|
|
2252
2366
|
return !isPrimitive(obj) && $isExtensible(obj);
|
|
2253
2367
|
}
|
|
2254
|
-
: function IsExtensible(obj) {
|
|
2255
|
-
return
|
|
2368
|
+
: function IsExtensible(obj) {
|
|
2369
|
+
return !isPrimitive(obj);
|
|
2256
2370
|
};
|
|
2257
2371
|
|
|
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
|
-
|
|
2264
2372
|
var _isNaN = Number.isNaN || function isNaN(a) {
|
|
2265
2373
|
return a !== a;
|
|
2266
2374
|
};
|
|
@@ -2275,8 +2383,8 @@ var SameValue = function SameValue(x, y) {
|
|
|
2275
2383
|
return _isNaN(x) && _isNaN(y);
|
|
2276
2384
|
};
|
|
2277
2385
|
|
|
2278
|
-
var $
|
|
2279
|
-
|
|
2386
|
+
var $TypeError$4 = GetIntrinsic('%TypeError%');
|
|
2387
|
+
|
|
2280
2388
|
|
|
2281
2389
|
|
|
2282
2390
|
|
|
@@ -2291,14 +2399,14 @@ var $TypeError$2 = GetIntrinsic('%TypeError%');
|
|
|
2291
2399
|
|
|
2292
2400
|
var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
2293
2401
|
if (Type$1(O) !== 'Object') {
|
|
2294
|
-
throw new $TypeError$
|
|
2402
|
+
throw new $TypeError$4('Assertion failed: Type(O) is not Object');
|
|
2295
2403
|
}
|
|
2296
2404
|
if (!IsPropertyKey(P)) {
|
|
2297
|
-
throw new $TypeError$
|
|
2405
|
+
throw new $TypeError$4('Assertion failed: IsPropertyKey(P) is not true');
|
|
2298
2406
|
}
|
|
2299
|
-
var oldDesc =
|
|
2300
|
-
var extensible = oldDesc || IsExtensible(O);
|
|
2301
|
-
var immutable = oldDesc && (!oldDesc
|
|
2407
|
+
var oldDesc = OrdinaryGetOwnProperty(O, P);
|
|
2408
|
+
var extensible = !oldDesc || IsExtensible(O);
|
|
2409
|
+
var immutable = oldDesc && (!oldDesc['[[Writable]]'] || !oldDesc['[[Configurable]]']);
|
|
2302
2410
|
if (immutable || !extensible) {
|
|
2303
2411
|
return false;
|
|
2304
2412
|
}
|
|
@@ -2317,53 +2425,13 @@ var CreateDataProperty = function CreateDataProperty(O, P, V) {
|
|
|
2317
2425
|
);
|
|
2318
2426
|
};
|
|
2319
2427
|
|
|
2320
|
-
var
|
|
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%');
|
|
2428
|
+
var $TypeError$5 = GetIntrinsic('%TypeError%');
|
|
2361
2429
|
|
|
2362
2430
|
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
|
|
2363
2431
|
|
|
2364
2432
|
var CheckObjectCoercible = function CheckObjectCoercible(value, optMessage) {
|
|
2365
2433
|
if (value == null) {
|
|
2366
|
-
throw new $TypeError$
|
|
2434
|
+
throw new $TypeError$5(optMessage || ('Cannot call method on ' + value));
|
|
2367
2435
|
}
|
|
2368
2436
|
return value;
|
|
2369
2437
|
};
|
|
@@ -2434,241 +2502,6 @@ defineProperties_1(implementation$2, {
|
|
|
2434
2502
|
|
|
2435
2503
|
var object_getownpropertydescriptors = implementation$2;
|
|
2436
2504
|
|
|
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
|
-
|
|
2672
2505
|
var isES5$1 = typeof Object.defineProperty === 'function'
|
|
2673
2506
|
&& typeof Object.defineProperties === 'function';
|
|
2674
2507
|
|
|
@@ -2686,9 +2519,9 @@ if (typeof Promise !== 'function') {
|
|
|
2686
2519
|
|
|
2687
2520
|
|
|
2688
2521
|
|
|
2689
|
-
var $slice = callBound
|
|
2690
|
-
var $concat$1 = callBound
|
|
2691
|
-
var $forEach = callBound
|
|
2522
|
+
var $slice = callBound('Array.prototype.slice');
|
|
2523
|
+
var $concat$1 = callBound('Array.prototype.concat');
|
|
2524
|
+
var $forEach = callBound('Array.prototype.forEach');
|
|
2692
2525
|
|
|
2693
2526
|
var hasSymbols$4 = hasSymbols$1();
|
|
2694
2527
|
|
|
@@ -3004,7 +2837,7 @@ var md5 = createCommonjsModule(function (module) {
|
|
|
3004
2837
|
message = utf8.stringToBytes(message);
|
|
3005
2838
|
else if (isBuffer(message))
|
|
3006
2839
|
message = Array.prototype.slice.call(message, 0);
|
|
3007
|
-
else if (!Array.isArray(message))
|
|
2840
|
+
else if (!Array.isArray(message) && message.constructor !== Uint8Array)
|
|
3008
2841
|
message = message.toString();
|
|
3009
2842
|
// else, assume byte array already
|
|
3010
2843
|
|