@mjhls/mjh-framework 1.0.844-beta.0 → 1.0.844-beta.1
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/AdSlotsProvider.js +2 -895
- package/dist/cjs/AlgoliaSearch.js +336 -237
- package/dist/cjs/ArticleProgramLandingPage.js +2 -3
- package/dist/cjs/ArticleSeriesLandingPage.js +1 -1
- package/dist/cjs/ArticleSeriesListing.js +1 -1
- package/dist/cjs/DeckContent.js +1 -1
- package/dist/cjs/DeckQueue.js +1 -1
- package/dist/cjs/ExternalResources.js +2 -3
- package/dist/cjs/GridContent.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +2 -3
- package/dist/cjs/IssueLanding.js +2 -3
- package/dist/cjs/MasterDeck.js +1 -1
- package/dist/cjs/MediaSeriesLanding.js +5 -6
- package/dist/cjs/PartnerDetailListing.js +6 -1105
- package/dist/cjs/TaxonomyDescription.js +2 -3
- package/dist/cjs/VideoProgramLandingPage.js +2 -3
- package/dist/cjs/VideoSeriesCard.js +2 -2
- package/dist/cjs/VideoSeriesLandingPage.js +3 -3
- package/dist/cjs/VideoSeriesListing.js +1 -1
- package/dist/cjs/View.js +4 -6
- package/dist/cjs/faundadb.js +321 -4
- package/dist/cjs/getRelatedArticle.js +20 -24
- package/dist/cjs/getSerializers.js +2 -3
- package/dist/cjs/{index-45f8b70b.js → index-a8b50ae3.js} +615 -27
- package/dist/cjs/index.js +4 -11
- package/dist/cjs/{inherits-452ff02c.js → inherits-9953db94.js} +4 -4
- package/dist/esm/AdSlotsProvider.js +6 -898
- package/dist/esm/AlgoliaSearch.js +100 -1
- package/dist/esm/ArticleProgramLandingPage.js +1 -2
- package/dist/esm/ExternalResources.js +1 -2
- package/dist/esm/HorizontalArticleListing.js +1 -2
- package/dist/esm/IssueLanding.js +1 -2
- package/dist/esm/MediaSeriesLanding.js +1 -2
- package/dist/esm/PartnerDetailListing.js +5 -1103
- package/dist/esm/TaxonomyDescription.js +1 -2
- package/dist/esm/VideoProgramLandingPage.js +1 -2
- package/dist/esm/View.js +1 -3
- package/dist/esm/faundadb.js +319 -2
- package/dist/esm/getRelatedArticle.js +20 -24
- package/dist/esm/getSerializers.js +1 -2
- package/dist/esm/{index-ea86ff20.js → index-1ecf523d.js} +603 -15
- package/dist/esm/index.js +3 -9
- package/package.json +6 -2
- package/dist/cjs/Auth.js +0 -3628
- package/dist/cjs/inherits-8d29278d.js +0 -110
- package/dist/cjs/md5-5039b1a6.js +0 -323
- package/dist/cjs/util-f2c1b65b.js +0 -576
- package/dist/esm/Auth.js +0 -3612
- package/dist/esm/inherits-77d5e4fc.js +0 -101
- package/dist/esm/md5-9be0e905.js +0 -321
- package/dist/esm/util-7700fc59.js +0 -574
|
@@ -44,8 +44,7 @@ import './GroupDeck.js';
|
|
|
44
44
|
import 'react-bootstrap';
|
|
45
45
|
import './iconBase-602d52fe.js';
|
|
46
46
|
import './index.esm-29e48d38.js';
|
|
47
|
-
import { g as getSerializers } from './index-
|
|
48
|
-
import './util-7700fc59.js';
|
|
47
|
+
import { g as getSerializers } from './index-1ecf523d.js';
|
|
49
48
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
50
49
|
import Head from 'next/head';
|
|
51
50
|
import 'react-share';
|
|
@@ -49,8 +49,7 @@ import 'react-bootstrap';
|
|
|
49
49
|
import './iconBase-602d52fe.js';
|
|
50
50
|
import './index.esm-29e48d38.js';
|
|
51
51
|
import VideoSeriesListing from './VideoSeriesListing.js';
|
|
52
|
-
import { g as getSerializers } from './index-
|
|
53
|
-
import './util-7700fc59.js';
|
|
52
|
+
import { g as getSerializers } from './index-1ecf523d.js';
|
|
54
53
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
55
54
|
import 'next/head';
|
|
56
55
|
import 'react-share';
|
package/dist/esm/View.js
CHANGED
|
@@ -46,8 +46,7 @@ import './GroupDeck.js';
|
|
|
46
46
|
import 'react-bootstrap';
|
|
47
47
|
import './iconBase-602d52fe.js';
|
|
48
48
|
import './index.esm-29e48d38.js';
|
|
49
|
-
import { r as renderAuthor, g as getSerializers } from './index-
|
|
50
|
-
import './util-7700fc59.js';
|
|
49
|
+
import { r as renderAuthor, g as getSerializers } from './index-1ecf523d.js';
|
|
51
50
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
52
51
|
import Head from 'next/head';
|
|
53
52
|
import 'react-share';
|
|
@@ -61,7 +60,6 @@ import { _ as _Object$keys } from './keys-8eda7a5c.js';
|
|
|
61
60
|
import 'react-bootstrap/Dropdown';
|
|
62
61
|
import { b as FaMinus, c as FaPlus } from './index.esm-cf08bf18.js';
|
|
63
62
|
import getSeriesDetail from './getSeriesDetail.js';
|
|
64
|
-
import 'nookies';
|
|
65
63
|
import getQuery from './getQuery.js';
|
|
66
64
|
import getRelatedArticle from './getRelatedArticle.js';
|
|
67
65
|
import { S as SeriesSlider } from './SeriesSlider-a866bb21.js';
|
package/dist/esm/faundadb.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './_commonjsHelpers-0c4b6f40.js';
|
|
1
|
+
import { c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import './_to-object-a4107da3.js';
|
|
3
3
|
import './es6.string.iterator-c990c18c.js';
|
|
4
4
|
import './_library-528f1934.js';
|
|
@@ -6,7 +6,324 @@ import './_iter-detect-5d49a330.js';
|
|
|
6
6
|
import './core.get-iterator-method-e1de7503.js';
|
|
7
7
|
import './web.dom.iterable-4439f05a.js';
|
|
8
8
|
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
9
|
-
|
|
9
|
+
|
|
10
|
+
var crypt = createCommonjsModule(function (module) {
|
|
11
|
+
(function() {
|
|
12
|
+
var base64map
|
|
13
|
+
= 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
|
|
14
|
+
|
|
15
|
+
crypt = {
|
|
16
|
+
// Bit-wise rotation left
|
|
17
|
+
rotl: function(n, b) {
|
|
18
|
+
return (n << b) | (n >>> (32 - b));
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
// Bit-wise rotation right
|
|
22
|
+
rotr: function(n, b) {
|
|
23
|
+
return (n << (32 - b)) | (n >>> b);
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
// Swap big-endian to little-endian and vice versa
|
|
27
|
+
endian: function(n) {
|
|
28
|
+
// If number given, swap endian
|
|
29
|
+
if (n.constructor == Number) {
|
|
30
|
+
return crypt.rotl(n, 8) & 0x00FF00FF | crypt.rotl(n, 24) & 0xFF00FF00;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// Else, assume array and swap all items
|
|
34
|
+
for (var i = 0; i < n.length; i++)
|
|
35
|
+
n[i] = crypt.endian(n[i]);
|
|
36
|
+
return n;
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
// Generate an array of any length of random bytes
|
|
40
|
+
randomBytes: function(n) {
|
|
41
|
+
for (var bytes = []; n > 0; n--)
|
|
42
|
+
bytes.push(Math.floor(Math.random() * 256));
|
|
43
|
+
return bytes;
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
// Convert a byte array to big-endian 32-bit words
|
|
47
|
+
bytesToWords: function(bytes) {
|
|
48
|
+
for (var words = [], i = 0, b = 0; i < bytes.length; i++, b += 8)
|
|
49
|
+
words[b >>> 5] |= bytes[i] << (24 - b % 32);
|
|
50
|
+
return words;
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
// Convert big-endian 32-bit words to a byte array
|
|
54
|
+
wordsToBytes: function(words) {
|
|
55
|
+
for (var bytes = [], b = 0; b < words.length * 32; b += 8)
|
|
56
|
+
bytes.push((words[b >>> 5] >>> (24 - b % 32)) & 0xFF);
|
|
57
|
+
return bytes;
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
// Convert a byte array to a hex string
|
|
61
|
+
bytesToHex: function(bytes) {
|
|
62
|
+
for (var hex = [], i = 0; i < bytes.length; i++) {
|
|
63
|
+
hex.push((bytes[i] >>> 4).toString(16));
|
|
64
|
+
hex.push((bytes[i] & 0xF).toString(16));
|
|
65
|
+
}
|
|
66
|
+
return hex.join('');
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
// Convert a hex string to a byte array
|
|
70
|
+
hexToBytes: function(hex) {
|
|
71
|
+
for (var bytes = [], c = 0; c < hex.length; c += 2)
|
|
72
|
+
bytes.push(parseInt(hex.substr(c, 2), 16));
|
|
73
|
+
return bytes;
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
// Convert a byte array to a base-64 string
|
|
77
|
+
bytesToBase64: function(bytes) {
|
|
78
|
+
for (var base64 = [], i = 0; i < bytes.length; i += 3) {
|
|
79
|
+
var triplet = (bytes[i] << 16) | (bytes[i + 1] << 8) | bytes[i + 2];
|
|
80
|
+
for (var j = 0; j < 4; j++)
|
|
81
|
+
if (i * 8 + j * 6 <= bytes.length * 8)
|
|
82
|
+
base64.push(base64map.charAt((triplet >>> 6 * (3 - j)) & 0x3F));
|
|
83
|
+
else
|
|
84
|
+
base64.push('=');
|
|
85
|
+
}
|
|
86
|
+
return base64.join('');
|
|
87
|
+
},
|
|
88
|
+
|
|
89
|
+
// Convert a base-64 string to a byte array
|
|
90
|
+
base64ToBytes: function(base64) {
|
|
91
|
+
// Remove non-base-64 characters
|
|
92
|
+
base64 = base64.replace(/[^A-Z0-9+\/]/ig, '');
|
|
93
|
+
|
|
94
|
+
for (var bytes = [], i = 0, imod4 = 0; i < base64.length;
|
|
95
|
+
imod4 = ++i % 4) {
|
|
96
|
+
if (imod4 == 0) continue;
|
|
97
|
+
bytes.push(((base64map.indexOf(base64.charAt(i - 1))
|
|
98
|
+
& (Math.pow(2, -2 * imod4 + 8) - 1)) << (imod4 * 2))
|
|
99
|
+
| (base64map.indexOf(base64.charAt(i)) >>> (6 - imod4 * 2)));
|
|
100
|
+
}
|
|
101
|
+
return bytes;
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
module.exports = crypt;
|
|
106
|
+
})();
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
var charenc = {
|
|
110
|
+
// UTF-8 encoding
|
|
111
|
+
utf8: {
|
|
112
|
+
// Convert a string to a byte array
|
|
113
|
+
stringToBytes: function(str) {
|
|
114
|
+
return charenc.bin.stringToBytes(unescape(encodeURIComponent(str)));
|
|
115
|
+
},
|
|
116
|
+
|
|
117
|
+
// Convert a byte array to a string
|
|
118
|
+
bytesToString: function(bytes) {
|
|
119
|
+
return decodeURIComponent(escape(charenc.bin.bytesToString(bytes)));
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
|
|
123
|
+
// Binary encoding
|
|
124
|
+
bin: {
|
|
125
|
+
// Convert a string to a byte array
|
|
126
|
+
stringToBytes: function(str) {
|
|
127
|
+
for (var bytes = [], i = 0; i < str.length; i++)
|
|
128
|
+
bytes.push(str.charCodeAt(i) & 0xFF);
|
|
129
|
+
return bytes;
|
|
130
|
+
},
|
|
131
|
+
|
|
132
|
+
// Convert a byte array to a string
|
|
133
|
+
bytesToString: function(bytes) {
|
|
134
|
+
for (var str = [], i = 0; i < bytes.length; i++)
|
|
135
|
+
str.push(String.fromCharCode(bytes[i]));
|
|
136
|
+
return str.join('');
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
var charenc_1 = charenc;
|
|
142
|
+
|
|
143
|
+
/*!
|
|
144
|
+
* Determine if an object is a Buffer
|
|
145
|
+
*
|
|
146
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
147
|
+
* @license MIT
|
|
148
|
+
*/
|
|
149
|
+
|
|
150
|
+
// The _isBuffer check is for Safari 5-7 support, because it's missing
|
|
151
|
+
// Object.prototype.constructor. Remove this eventually
|
|
152
|
+
var isBuffer_1 = function (obj) {
|
|
153
|
+
return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer)
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
function isBuffer (obj) {
|
|
157
|
+
return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// For Node v0.10 support. Remove this eventually.
|
|
161
|
+
function isSlowBuffer (obj) {
|
|
162
|
+
return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
var md5 = createCommonjsModule(function (module) {
|
|
166
|
+
(function(){
|
|
167
|
+
var crypt$1 = crypt,
|
|
168
|
+
utf8 = charenc_1.utf8,
|
|
169
|
+
isBuffer = isBuffer_1,
|
|
170
|
+
bin = charenc_1.bin,
|
|
171
|
+
|
|
172
|
+
// The core
|
|
173
|
+
md5 = function (message, options) {
|
|
174
|
+
// Convert to byte array
|
|
175
|
+
if (message.constructor == String)
|
|
176
|
+
if (options && options.encoding === 'binary')
|
|
177
|
+
message = bin.stringToBytes(message);
|
|
178
|
+
else
|
|
179
|
+
message = utf8.stringToBytes(message);
|
|
180
|
+
else if (isBuffer(message))
|
|
181
|
+
message = Array.prototype.slice.call(message, 0);
|
|
182
|
+
else if (!Array.isArray(message))
|
|
183
|
+
message = message.toString();
|
|
184
|
+
// else, assume byte array already
|
|
185
|
+
|
|
186
|
+
var m = crypt$1.bytesToWords(message),
|
|
187
|
+
l = message.length * 8,
|
|
188
|
+
a = 1732584193,
|
|
189
|
+
b = -271733879,
|
|
190
|
+
c = -1732584194,
|
|
191
|
+
d = 271733878;
|
|
192
|
+
|
|
193
|
+
// Swap endian
|
|
194
|
+
for (var i = 0; i < m.length; i++) {
|
|
195
|
+
m[i] = ((m[i] << 8) | (m[i] >>> 24)) & 0x00FF00FF |
|
|
196
|
+
((m[i] << 24) | (m[i] >>> 8)) & 0xFF00FF00;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// Padding
|
|
200
|
+
m[l >>> 5] |= 0x80 << (l % 32);
|
|
201
|
+
m[(((l + 64) >>> 9) << 4) + 14] = l;
|
|
202
|
+
|
|
203
|
+
// Method shortcuts
|
|
204
|
+
var FF = md5._ff,
|
|
205
|
+
GG = md5._gg,
|
|
206
|
+
HH = md5._hh,
|
|
207
|
+
II = md5._ii;
|
|
208
|
+
|
|
209
|
+
for (var i = 0; i < m.length; i += 16) {
|
|
210
|
+
|
|
211
|
+
var aa = a,
|
|
212
|
+
bb = b,
|
|
213
|
+
cc = c,
|
|
214
|
+
dd = d;
|
|
215
|
+
|
|
216
|
+
a = FF(a, b, c, d, m[i+ 0], 7, -680876936);
|
|
217
|
+
d = FF(d, a, b, c, m[i+ 1], 12, -389564586);
|
|
218
|
+
c = FF(c, d, a, b, m[i+ 2], 17, 606105819);
|
|
219
|
+
b = FF(b, c, d, a, m[i+ 3], 22, -1044525330);
|
|
220
|
+
a = FF(a, b, c, d, m[i+ 4], 7, -176418897);
|
|
221
|
+
d = FF(d, a, b, c, m[i+ 5], 12, 1200080426);
|
|
222
|
+
c = FF(c, d, a, b, m[i+ 6], 17, -1473231341);
|
|
223
|
+
b = FF(b, c, d, a, m[i+ 7], 22, -45705983);
|
|
224
|
+
a = FF(a, b, c, d, m[i+ 8], 7, 1770035416);
|
|
225
|
+
d = FF(d, a, b, c, m[i+ 9], 12, -1958414417);
|
|
226
|
+
c = FF(c, d, a, b, m[i+10], 17, -42063);
|
|
227
|
+
b = FF(b, c, d, a, m[i+11], 22, -1990404162);
|
|
228
|
+
a = FF(a, b, c, d, m[i+12], 7, 1804603682);
|
|
229
|
+
d = FF(d, a, b, c, m[i+13], 12, -40341101);
|
|
230
|
+
c = FF(c, d, a, b, m[i+14], 17, -1502002290);
|
|
231
|
+
b = FF(b, c, d, a, m[i+15], 22, 1236535329);
|
|
232
|
+
|
|
233
|
+
a = GG(a, b, c, d, m[i+ 1], 5, -165796510);
|
|
234
|
+
d = GG(d, a, b, c, m[i+ 6], 9, -1069501632);
|
|
235
|
+
c = GG(c, d, a, b, m[i+11], 14, 643717713);
|
|
236
|
+
b = GG(b, c, d, a, m[i+ 0], 20, -373897302);
|
|
237
|
+
a = GG(a, b, c, d, m[i+ 5], 5, -701558691);
|
|
238
|
+
d = GG(d, a, b, c, m[i+10], 9, 38016083);
|
|
239
|
+
c = GG(c, d, a, b, m[i+15], 14, -660478335);
|
|
240
|
+
b = GG(b, c, d, a, m[i+ 4], 20, -405537848);
|
|
241
|
+
a = GG(a, b, c, d, m[i+ 9], 5, 568446438);
|
|
242
|
+
d = GG(d, a, b, c, m[i+14], 9, -1019803690);
|
|
243
|
+
c = GG(c, d, a, b, m[i+ 3], 14, -187363961);
|
|
244
|
+
b = GG(b, c, d, a, m[i+ 8], 20, 1163531501);
|
|
245
|
+
a = GG(a, b, c, d, m[i+13], 5, -1444681467);
|
|
246
|
+
d = GG(d, a, b, c, m[i+ 2], 9, -51403784);
|
|
247
|
+
c = GG(c, d, a, b, m[i+ 7], 14, 1735328473);
|
|
248
|
+
b = GG(b, c, d, a, m[i+12], 20, -1926607734);
|
|
249
|
+
|
|
250
|
+
a = HH(a, b, c, d, m[i+ 5], 4, -378558);
|
|
251
|
+
d = HH(d, a, b, c, m[i+ 8], 11, -2022574463);
|
|
252
|
+
c = HH(c, d, a, b, m[i+11], 16, 1839030562);
|
|
253
|
+
b = HH(b, c, d, a, m[i+14], 23, -35309556);
|
|
254
|
+
a = HH(a, b, c, d, m[i+ 1], 4, -1530992060);
|
|
255
|
+
d = HH(d, a, b, c, m[i+ 4], 11, 1272893353);
|
|
256
|
+
c = HH(c, d, a, b, m[i+ 7], 16, -155497632);
|
|
257
|
+
b = HH(b, c, d, a, m[i+10], 23, -1094730640);
|
|
258
|
+
a = HH(a, b, c, d, m[i+13], 4, 681279174);
|
|
259
|
+
d = HH(d, a, b, c, m[i+ 0], 11, -358537222);
|
|
260
|
+
c = HH(c, d, a, b, m[i+ 3], 16, -722521979);
|
|
261
|
+
b = HH(b, c, d, a, m[i+ 6], 23, 76029189);
|
|
262
|
+
a = HH(a, b, c, d, m[i+ 9], 4, -640364487);
|
|
263
|
+
d = HH(d, a, b, c, m[i+12], 11, -421815835);
|
|
264
|
+
c = HH(c, d, a, b, m[i+15], 16, 530742520);
|
|
265
|
+
b = HH(b, c, d, a, m[i+ 2], 23, -995338651);
|
|
266
|
+
|
|
267
|
+
a = II(a, b, c, d, m[i+ 0], 6, -198630844);
|
|
268
|
+
d = II(d, a, b, c, m[i+ 7], 10, 1126891415);
|
|
269
|
+
c = II(c, d, a, b, m[i+14], 15, -1416354905);
|
|
270
|
+
b = II(b, c, d, a, m[i+ 5], 21, -57434055);
|
|
271
|
+
a = II(a, b, c, d, m[i+12], 6, 1700485571);
|
|
272
|
+
d = II(d, a, b, c, m[i+ 3], 10, -1894986606);
|
|
273
|
+
c = II(c, d, a, b, m[i+10], 15, -1051523);
|
|
274
|
+
b = II(b, c, d, a, m[i+ 1], 21, -2054922799);
|
|
275
|
+
a = II(a, b, c, d, m[i+ 8], 6, 1873313359);
|
|
276
|
+
d = II(d, a, b, c, m[i+15], 10, -30611744);
|
|
277
|
+
c = II(c, d, a, b, m[i+ 6], 15, -1560198380);
|
|
278
|
+
b = II(b, c, d, a, m[i+13], 21, 1309151649);
|
|
279
|
+
a = II(a, b, c, d, m[i+ 4], 6, -145523070);
|
|
280
|
+
d = II(d, a, b, c, m[i+11], 10, -1120210379);
|
|
281
|
+
c = II(c, d, a, b, m[i+ 2], 15, 718787259);
|
|
282
|
+
b = II(b, c, d, a, m[i+ 9], 21, -343485551);
|
|
283
|
+
|
|
284
|
+
a = (a + aa) >>> 0;
|
|
285
|
+
b = (b + bb) >>> 0;
|
|
286
|
+
c = (c + cc) >>> 0;
|
|
287
|
+
d = (d + dd) >>> 0;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
return crypt$1.endian([a, b, c, d]);
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
// Auxiliary functions
|
|
294
|
+
md5._ff = function (a, b, c, d, x, s, t) {
|
|
295
|
+
var n = a + (b & c | ~b & d) + (x >>> 0) + t;
|
|
296
|
+
return ((n << s) | (n >>> (32 - s))) + b;
|
|
297
|
+
};
|
|
298
|
+
md5._gg = function (a, b, c, d, x, s, t) {
|
|
299
|
+
var n = a + (b & d | c & ~d) + (x >>> 0) + t;
|
|
300
|
+
return ((n << s) | (n >>> (32 - s))) + b;
|
|
301
|
+
};
|
|
302
|
+
md5._hh = function (a, b, c, d, x, s, t) {
|
|
303
|
+
var n = a + (b ^ c ^ d) + (x >>> 0) + t;
|
|
304
|
+
return ((n << s) | (n >>> (32 - s))) + b;
|
|
305
|
+
};
|
|
306
|
+
md5._ii = function (a, b, c, d, x, s, t) {
|
|
307
|
+
var n = a + (c ^ (b | ~d)) + (x >>> 0) + t;
|
|
308
|
+
return ((n << s) | (n >>> (32 - s))) + b;
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
// Package private blocksize
|
|
312
|
+
md5._blocksize = 16;
|
|
313
|
+
md5._digestsize = 16;
|
|
314
|
+
|
|
315
|
+
module.exports = function (message, options) {
|
|
316
|
+
if (message === undefined || message === null)
|
|
317
|
+
throw new Error('Illegal argument ' + message);
|
|
318
|
+
|
|
319
|
+
var digestbytes = crypt$1.wordsToBytes(md5(message, options));
|
|
320
|
+
return options && options.asBytes ? digestbytes :
|
|
321
|
+
options && options.asString ? bin.bytesToString(digestbytes) :
|
|
322
|
+
crypt$1.bytesToHex(digestbytes);
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
})();
|
|
326
|
+
});
|
|
10
327
|
|
|
11
328
|
var encrypt = function () {
|
|
12
329
|
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(password) {
|
|
@@ -6,20 +6,18 @@ import './_iter-detect-5d49a330.js';
|
|
|
6
6
|
import './core.get-iterator-method-e1de7503.js';
|
|
7
7
|
import './web.dom.iterable-4439f05a.js';
|
|
8
8
|
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
9
|
-
import { parseCookies, setCookie } from 'nookies';
|
|
10
9
|
import getQuery from './getQuery.js';
|
|
11
10
|
|
|
12
11
|
var _this = undefined;
|
|
13
12
|
|
|
14
13
|
var getRelatedArticle = function () {
|
|
15
14
|
var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
|
|
16
|
-
var ctx = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
17
15
|
var client = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
18
16
|
var article = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
19
17
|
var prevUrl = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '/';
|
|
20
18
|
var articleCount = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
|
|
21
19
|
|
|
22
|
-
var _article$url, url, documentGroupMapping, issueGroup, content_placement, references, params, articles, filters,
|
|
20
|
+
var _article$url, url, documentGroupMapping, issueGroup, content_placement, references, params, articles, filters, query;
|
|
23
21
|
|
|
24
22
|
return regenerator.wrap(function _callee$(_context) {
|
|
25
23
|
while (1) {
|
|
@@ -77,48 +75,46 @@ var getRelatedArticle = function () {
|
|
|
77
75
|
articles = null;
|
|
78
76
|
|
|
79
77
|
if (!(references && references.length > 0)) {
|
|
80
|
-
_context.next =
|
|
78
|
+
_context.next = 23;
|
|
81
79
|
break;
|
|
82
80
|
}
|
|
83
81
|
|
|
84
82
|
filters = '&& references("' + references.join('","') + '") ';
|
|
85
83
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
} else setCookie(ctx, 'prevSlugs', '"' + url + '"', {});
|
|
95
|
-
}
|
|
84
|
+
// if (ctx && url) {
|
|
85
|
+
// const cookies = parseCookies(ctx)
|
|
86
|
+
// let prevSlugs = cookies['prevSlugs']
|
|
87
|
+
// if (!!prevSlugs) {
|
|
88
|
+
// if (!prevSlugs.includes(url)) setCookie(ctx, 'prevSlugs', `${prevSlugs},"${url}"`, {})
|
|
89
|
+
// filters = `${filters} && !(url.current in [${prevSlugs}])`
|
|
90
|
+
// } else setCookie(ctx, 'prevSlugs', `"${url}"`, {})
|
|
91
|
+
// }
|
|
96
92
|
|
|
97
93
|
query = getQuery('related', filters, '', articleCount).replace('&& taxonomyMapping[]._ref in $taxonomy', '');
|
|
98
|
-
_context.prev =
|
|
99
|
-
_context.next =
|
|
94
|
+
_context.prev = 14;
|
|
95
|
+
_context.next = 17;
|
|
100
96
|
return client.fetch(query, params);
|
|
101
97
|
|
|
102
|
-
case
|
|
98
|
+
case 17:
|
|
103
99
|
articles = _context.sent;
|
|
104
|
-
_context.next =
|
|
100
|
+
_context.next = 23;
|
|
105
101
|
break;
|
|
106
102
|
|
|
107
|
-
case
|
|
108
|
-
_context.prev =
|
|
109
|
-
_context.t0 = _context['catch'](
|
|
103
|
+
case 20:
|
|
104
|
+
_context.prev = 20;
|
|
105
|
+
_context.t0 = _context['catch'](14);
|
|
110
106
|
|
|
111
107
|
console.error(_context.t0);
|
|
112
108
|
|
|
113
|
-
case
|
|
109
|
+
case 23:
|
|
114
110
|
return _context.abrupt('return', articles);
|
|
115
111
|
|
|
116
|
-
case
|
|
112
|
+
case 24:
|
|
117
113
|
case 'end':
|
|
118
114
|
return _context.stop();
|
|
119
115
|
}
|
|
120
116
|
}
|
|
121
|
-
}, _callee, _this, [[
|
|
117
|
+
}, _callee, _this, [[14, 20]]);
|
|
122
118
|
}));
|
|
123
119
|
|
|
124
120
|
return function getRelatedArticle() {
|
|
@@ -44,8 +44,7 @@ import './GroupDeck.js';
|
|
|
44
44
|
import 'react-bootstrap';
|
|
45
45
|
import './iconBase-602d52fe.js';
|
|
46
46
|
import './index.esm-29e48d38.js';
|
|
47
|
-
export { g as default } from './index-
|
|
48
|
-
import './util-7700fc59.js';
|
|
47
|
+
export { g as default } from './index-1ecf523d.js';
|
|
49
48
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
50
49
|
import 'next/head';
|
|
51
50
|
import 'react-share';
|