@mjhls/mjh-framework 1.0.850-beta.0 → 1.0.850-beta.2
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/QueueDeckExpanded.js +1097 -112
- 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 +5 -7
- package/dist/cjs/faundadb.js +321 -4
- package/dist/cjs/getRelatedArticle.js +21 -438
- package/dist/cjs/getSerializers.js +2 -3
- package/dist/cjs/{index-bc88f898.js → index-4151deb3.js} +587 -15
- package/dist/cjs/index.js +6 -13
- 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/QueueDeckExpanded.js +1098 -113
- package/dist/esm/TaxonomyDescription.js +1 -2
- package/dist/esm/VideoProgramLandingPage.js +1 -2
- package/dist/esm/View.js +2 -4
- package/dist/esm/faundadb.js +319 -2
- package/dist/esm/getRelatedArticle.js +21 -438
- package/dist/esm/getSerializers.js +1 -2
- package/dist/esm/{index-f2a0d400.js → index-d6dc592a.js} +575 -3
- package/dist/esm/index.js +4 -10
- package/package.json +8 -3
- package/dist/cjs/Auth.js +0 -3428
- package/dist/cjs/index-bd6c9f56.js +0 -211
- 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 -3412
- package/dist/esm/index-db3bb315.js +0 -207
- package/dist/esm/inherits-77d5e4fc.js +0 -101
- package/dist/esm/md5-9be0e905.js +0 -321
- package/dist/esm/util-7700fc59.js +0 -574
|
@@ -6,8 +6,8 @@ var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
|
6
6
|
var _toObject = require('./_to-object-329a650b.js');
|
|
7
7
|
var toConsumableArray = require('./toConsumableArray-9a3476fe.js');
|
|
8
8
|
var _extends$1 = require('./extends-0a918631.js');
|
|
9
|
-
var inherits$1 = require('./inherits-
|
|
10
|
-
var _typeof = require('./typeof-725500bc.js');
|
|
9
|
+
var inherits$1$1 = require('./inherits-9953db94.js');
|
|
10
|
+
var _typeof$1 = require('./typeof-725500bc.js');
|
|
11
11
|
var React = require('react');
|
|
12
12
|
var React__default = _interopDefault(React);
|
|
13
13
|
var index = require('./index-98e01cb9.js');
|
|
@@ -32,7 +32,6 @@ var index$3 = require('./index-187c967e.js');
|
|
|
32
32
|
var GroupDeck = require('./GroupDeck.js');
|
|
33
33
|
var reactBootstrap = require('react-bootstrap');
|
|
34
34
|
var index_esm = require('./index.esm-90433435.js');
|
|
35
|
-
var util = require('./util-f2c1b65b.js');
|
|
36
35
|
var brightcoveReactPlayerLoader_es = require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
37
36
|
var Head = _interopDefault(require('next/head'));
|
|
38
37
|
var SocialShare = require('./SocialShare.js');
|
|
@@ -917,6 +916,579 @@ var tty = {
|
|
|
917
916
|
WriteStream: WriteStream
|
|
918
917
|
};
|
|
919
918
|
|
|
919
|
+
var inherits;
|
|
920
|
+
if (typeof Object.create === 'function'){
|
|
921
|
+
inherits = function inherits(ctor, superCtor) {
|
|
922
|
+
// implementation from standard node.js 'util' module
|
|
923
|
+
ctor.super_ = superCtor;
|
|
924
|
+
ctor.prototype = Object.create(superCtor.prototype, {
|
|
925
|
+
constructor: {
|
|
926
|
+
value: ctor,
|
|
927
|
+
enumerable: false,
|
|
928
|
+
writable: true,
|
|
929
|
+
configurable: true
|
|
930
|
+
}
|
|
931
|
+
});
|
|
932
|
+
};
|
|
933
|
+
} else {
|
|
934
|
+
inherits = function inherits(ctor, superCtor) {
|
|
935
|
+
ctor.super_ = superCtor;
|
|
936
|
+
var TempCtor = function () {};
|
|
937
|
+
TempCtor.prototype = superCtor.prototype;
|
|
938
|
+
ctor.prototype = new TempCtor();
|
|
939
|
+
ctor.prototype.constructor = ctor;
|
|
940
|
+
};
|
|
941
|
+
}
|
|
942
|
+
var inherits$1 = inherits;
|
|
943
|
+
|
|
944
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
|
945
|
+
var formatRegExp = /%[sdj%]/g;
|
|
946
|
+
function format(f) {
|
|
947
|
+
if (!isString(f)) {
|
|
948
|
+
var objects = [];
|
|
949
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
950
|
+
objects.push(inspect(arguments[i]));
|
|
951
|
+
}
|
|
952
|
+
return objects.join(' ');
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
var i = 1;
|
|
956
|
+
var args = arguments;
|
|
957
|
+
var len = args.length;
|
|
958
|
+
var str = String(f).replace(formatRegExp, function(x) {
|
|
959
|
+
if (x === '%%') return '%';
|
|
960
|
+
if (i >= len) return x;
|
|
961
|
+
switch (x) {
|
|
962
|
+
case '%s': return String(args[i++]);
|
|
963
|
+
case '%d': return Number(args[i++]);
|
|
964
|
+
case '%j':
|
|
965
|
+
try {
|
|
966
|
+
return JSON.stringify(args[i++]);
|
|
967
|
+
} catch (_) {
|
|
968
|
+
return '[Circular]';
|
|
969
|
+
}
|
|
970
|
+
default:
|
|
971
|
+
return x;
|
|
972
|
+
}
|
|
973
|
+
});
|
|
974
|
+
for (var x = args[i]; i < len; x = args[++i]) {
|
|
975
|
+
if (isNull(x) || !isObject(x)) {
|
|
976
|
+
str += ' ' + x;
|
|
977
|
+
} else {
|
|
978
|
+
str += ' ' + inspect(x);
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
return str;
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
// Mark that a method should not be used.
|
|
985
|
+
// Returns a modified function which warns once by default.
|
|
986
|
+
// If --no-deprecation is set, then it is a no-op.
|
|
987
|
+
function deprecate(fn, msg) {
|
|
988
|
+
// Allow for deprecating things in the process of starting up.
|
|
989
|
+
if (isUndefined(global.process)) {
|
|
990
|
+
return function() {
|
|
991
|
+
return deprecate(fn, msg).apply(this, arguments);
|
|
992
|
+
};
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
var warned = false;
|
|
996
|
+
function deprecated() {
|
|
997
|
+
if (!warned) {
|
|
998
|
+
{
|
|
999
|
+
console.error(msg);
|
|
1000
|
+
}
|
|
1001
|
+
warned = true;
|
|
1002
|
+
}
|
|
1003
|
+
return fn.apply(this, arguments);
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
return deprecated;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
var debugs = {};
|
|
1010
|
+
var debugEnviron;
|
|
1011
|
+
function debuglog(set) {
|
|
1012
|
+
if (isUndefined(debugEnviron))
|
|
1013
|
+
debugEnviron = '';
|
|
1014
|
+
set = set.toUpperCase();
|
|
1015
|
+
if (!debugs[set]) {
|
|
1016
|
+
if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) {
|
|
1017
|
+
var pid = 0;
|
|
1018
|
+
debugs[set] = function() {
|
|
1019
|
+
var msg = format.apply(null, arguments);
|
|
1020
|
+
console.error('%s %d: %s', set, pid, msg);
|
|
1021
|
+
};
|
|
1022
|
+
} else {
|
|
1023
|
+
debugs[set] = function() {};
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
return debugs[set];
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
* Echos the value of a value. Trys to print the value out
|
|
1031
|
+
* in the best way possible given the different types.
|
|
1032
|
+
*
|
|
1033
|
+
* @param {Object} obj The object to print out.
|
|
1034
|
+
* @param {Object} opts Optional options object that alters the output.
|
|
1035
|
+
*/
|
|
1036
|
+
/* legacy: obj, showHidden, depth, colors*/
|
|
1037
|
+
function inspect(obj, opts) {
|
|
1038
|
+
// default options
|
|
1039
|
+
var ctx = {
|
|
1040
|
+
seen: [],
|
|
1041
|
+
stylize: stylizeNoColor
|
|
1042
|
+
};
|
|
1043
|
+
// legacy...
|
|
1044
|
+
if (arguments.length >= 3) ctx.depth = arguments[2];
|
|
1045
|
+
if (arguments.length >= 4) ctx.colors = arguments[3];
|
|
1046
|
+
if (isBoolean(opts)) {
|
|
1047
|
+
// legacy...
|
|
1048
|
+
ctx.showHidden = opts;
|
|
1049
|
+
} else if (opts) {
|
|
1050
|
+
// got an "options" object
|
|
1051
|
+
_extend(ctx, opts);
|
|
1052
|
+
}
|
|
1053
|
+
// set default options
|
|
1054
|
+
if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
|
|
1055
|
+
if (isUndefined(ctx.depth)) ctx.depth = 2;
|
|
1056
|
+
if (isUndefined(ctx.colors)) ctx.colors = false;
|
|
1057
|
+
if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
|
|
1058
|
+
if (ctx.colors) ctx.stylize = stylizeWithColor;
|
|
1059
|
+
return formatValue(ctx, obj, ctx.depth);
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics
|
|
1063
|
+
inspect.colors = {
|
|
1064
|
+
'bold' : [1, 22],
|
|
1065
|
+
'italic' : [3, 23],
|
|
1066
|
+
'underline' : [4, 24],
|
|
1067
|
+
'inverse' : [7, 27],
|
|
1068
|
+
'white' : [37, 39],
|
|
1069
|
+
'grey' : [90, 39],
|
|
1070
|
+
'black' : [30, 39],
|
|
1071
|
+
'blue' : [34, 39],
|
|
1072
|
+
'cyan' : [36, 39],
|
|
1073
|
+
'green' : [32, 39],
|
|
1074
|
+
'magenta' : [35, 39],
|
|
1075
|
+
'red' : [31, 39],
|
|
1076
|
+
'yellow' : [33, 39]
|
|
1077
|
+
};
|
|
1078
|
+
|
|
1079
|
+
// Don't use 'blue' not visible on cmd.exe
|
|
1080
|
+
inspect.styles = {
|
|
1081
|
+
'special': 'cyan',
|
|
1082
|
+
'number': 'yellow',
|
|
1083
|
+
'boolean': 'yellow',
|
|
1084
|
+
'undefined': 'grey',
|
|
1085
|
+
'null': 'bold',
|
|
1086
|
+
'string': 'green',
|
|
1087
|
+
'date': 'magenta',
|
|
1088
|
+
// "name": intentionally not styling
|
|
1089
|
+
'regexp': 'red'
|
|
1090
|
+
};
|
|
1091
|
+
|
|
1092
|
+
|
|
1093
|
+
function stylizeWithColor(str, styleType) {
|
|
1094
|
+
var style = inspect.styles[styleType];
|
|
1095
|
+
|
|
1096
|
+
if (style) {
|
|
1097
|
+
return '\u001b[' + inspect.colors[style][0] + 'm' + str +
|
|
1098
|
+
'\u001b[' + inspect.colors[style][1] + 'm';
|
|
1099
|
+
} else {
|
|
1100
|
+
return str;
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
|
|
1105
|
+
function stylizeNoColor(str, styleType) {
|
|
1106
|
+
return str;
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
function arrayToHash(array) {
|
|
1111
|
+
var hash = {};
|
|
1112
|
+
|
|
1113
|
+
array.forEach(function(val, idx) {
|
|
1114
|
+
hash[val] = true;
|
|
1115
|
+
});
|
|
1116
|
+
|
|
1117
|
+
return hash;
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
|
|
1121
|
+
function formatValue(ctx, value, recurseTimes) {
|
|
1122
|
+
// Provide a hook for user-specified inspect functions.
|
|
1123
|
+
// Check that value is an object with an inspect function on it
|
|
1124
|
+
if (ctx.customInspect &&
|
|
1125
|
+
value &&
|
|
1126
|
+
isFunction(value.inspect) &&
|
|
1127
|
+
// Filter out the util module, it's inspect function is special
|
|
1128
|
+
value.inspect !== inspect &&
|
|
1129
|
+
// Also filter out any prototype objects using the circular check.
|
|
1130
|
+
!(value.constructor && value.constructor.prototype === value)) {
|
|
1131
|
+
var ret = value.inspect(recurseTimes, ctx);
|
|
1132
|
+
if (!isString(ret)) {
|
|
1133
|
+
ret = formatValue(ctx, ret, recurseTimes);
|
|
1134
|
+
}
|
|
1135
|
+
return ret;
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
// Primitive types cannot have properties
|
|
1139
|
+
var primitive = formatPrimitive(ctx, value);
|
|
1140
|
+
if (primitive) {
|
|
1141
|
+
return primitive;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
// Look up the keys of the object.
|
|
1145
|
+
var keys = Object.keys(value);
|
|
1146
|
+
var visibleKeys = arrayToHash(keys);
|
|
1147
|
+
|
|
1148
|
+
if (ctx.showHidden) {
|
|
1149
|
+
keys = Object.getOwnPropertyNames(value);
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
// IE doesn't make error fields non-enumerable
|
|
1153
|
+
// http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx
|
|
1154
|
+
if (isError(value)
|
|
1155
|
+
&& (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {
|
|
1156
|
+
return formatError(value);
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
// Some type of object without properties can be shortcutted.
|
|
1160
|
+
if (keys.length === 0) {
|
|
1161
|
+
if (isFunction(value)) {
|
|
1162
|
+
var name = value.name ? ': ' + value.name : '';
|
|
1163
|
+
return ctx.stylize('[Function' + name + ']', 'special');
|
|
1164
|
+
}
|
|
1165
|
+
if (isRegExp(value)) {
|
|
1166
|
+
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
|
|
1167
|
+
}
|
|
1168
|
+
if (isDate(value)) {
|
|
1169
|
+
return ctx.stylize(Date.prototype.toString.call(value), 'date');
|
|
1170
|
+
}
|
|
1171
|
+
if (isError(value)) {
|
|
1172
|
+
return formatError(value);
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
var base = '', array = false, braces = ['{', '}'];
|
|
1177
|
+
|
|
1178
|
+
// Make Array say that they are Array
|
|
1179
|
+
if (isArray$1(value)) {
|
|
1180
|
+
array = true;
|
|
1181
|
+
braces = ['[', ']'];
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
// Make functions say that they are functions
|
|
1185
|
+
if (isFunction(value)) {
|
|
1186
|
+
var n = value.name ? ': ' + value.name : '';
|
|
1187
|
+
base = ' [Function' + n + ']';
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
// Make RegExps say that they are RegExps
|
|
1191
|
+
if (isRegExp(value)) {
|
|
1192
|
+
base = ' ' + RegExp.prototype.toString.call(value);
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
// Make dates with properties first say the date
|
|
1196
|
+
if (isDate(value)) {
|
|
1197
|
+
base = ' ' + Date.prototype.toUTCString.call(value);
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
// Make error with message first say the error
|
|
1201
|
+
if (isError(value)) {
|
|
1202
|
+
base = ' ' + formatError(value);
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
if (keys.length === 0 && (!array || value.length == 0)) {
|
|
1206
|
+
return braces[0] + base + braces[1];
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
if (recurseTimes < 0) {
|
|
1210
|
+
if (isRegExp(value)) {
|
|
1211
|
+
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
|
|
1212
|
+
} else {
|
|
1213
|
+
return ctx.stylize('[Object]', 'special');
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
ctx.seen.push(value);
|
|
1218
|
+
|
|
1219
|
+
var output;
|
|
1220
|
+
if (array) {
|
|
1221
|
+
output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
|
|
1222
|
+
} else {
|
|
1223
|
+
output = keys.map(function(key) {
|
|
1224
|
+
return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
|
|
1225
|
+
});
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
ctx.seen.pop();
|
|
1229
|
+
|
|
1230
|
+
return reduceToSingleString(output, base, braces);
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
function formatPrimitive(ctx, value) {
|
|
1235
|
+
if (isUndefined(value))
|
|
1236
|
+
return ctx.stylize('undefined', 'undefined');
|
|
1237
|
+
if (isString(value)) {
|
|
1238
|
+
var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '')
|
|
1239
|
+
.replace(/'/g, "\\'")
|
|
1240
|
+
.replace(/\\"/g, '"') + '\'';
|
|
1241
|
+
return ctx.stylize(simple, 'string');
|
|
1242
|
+
}
|
|
1243
|
+
if (isNumber(value))
|
|
1244
|
+
return ctx.stylize('' + value, 'number');
|
|
1245
|
+
if (isBoolean(value))
|
|
1246
|
+
return ctx.stylize('' + value, 'boolean');
|
|
1247
|
+
// For some reason typeof null is "object", so special case here.
|
|
1248
|
+
if (isNull(value))
|
|
1249
|
+
return ctx.stylize('null', 'null');
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
|
|
1253
|
+
function formatError(value) {
|
|
1254
|
+
return '[' + Error.prototype.toString.call(value) + ']';
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
|
|
1258
|
+
function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
|
|
1259
|
+
var output = [];
|
|
1260
|
+
for (var i = 0, l = value.length; i < l; ++i) {
|
|
1261
|
+
if (hasOwnProperty(value, String(i))) {
|
|
1262
|
+
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
|
|
1263
|
+
String(i), true));
|
|
1264
|
+
} else {
|
|
1265
|
+
output.push('');
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
keys.forEach(function(key) {
|
|
1269
|
+
if (!key.match(/^\d+$/)) {
|
|
1270
|
+
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
|
|
1271
|
+
key, true));
|
|
1272
|
+
}
|
|
1273
|
+
});
|
|
1274
|
+
return output;
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
|
|
1278
|
+
function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
|
|
1279
|
+
var name, str, desc;
|
|
1280
|
+
desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
|
|
1281
|
+
if (desc.get) {
|
|
1282
|
+
if (desc.set) {
|
|
1283
|
+
str = ctx.stylize('[Getter/Setter]', 'special');
|
|
1284
|
+
} else {
|
|
1285
|
+
str = ctx.stylize('[Getter]', 'special');
|
|
1286
|
+
}
|
|
1287
|
+
} else {
|
|
1288
|
+
if (desc.set) {
|
|
1289
|
+
str = ctx.stylize('[Setter]', 'special');
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
if (!hasOwnProperty(visibleKeys, key)) {
|
|
1293
|
+
name = '[' + key + ']';
|
|
1294
|
+
}
|
|
1295
|
+
if (!str) {
|
|
1296
|
+
if (ctx.seen.indexOf(desc.value) < 0) {
|
|
1297
|
+
if (isNull(recurseTimes)) {
|
|
1298
|
+
str = formatValue(ctx, desc.value, null);
|
|
1299
|
+
} else {
|
|
1300
|
+
str = formatValue(ctx, desc.value, recurseTimes - 1);
|
|
1301
|
+
}
|
|
1302
|
+
if (str.indexOf('\n') > -1) {
|
|
1303
|
+
if (array) {
|
|
1304
|
+
str = str.split('\n').map(function(line) {
|
|
1305
|
+
return ' ' + line;
|
|
1306
|
+
}).join('\n').substr(2);
|
|
1307
|
+
} else {
|
|
1308
|
+
str = '\n' + str.split('\n').map(function(line) {
|
|
1309
|
+
return ' ' + line;
|
|
1310
|
+
}).join('\n');
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
} else {
|
|
1314
|
+
str = ctx.stylize('[Circular]', 'special');
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
if (isUndefined(name)) {
|
|
1318
|
+
if (array && key.match(/^\d+$/)) {
|
|
1319
|
+
return str;
|
|
1320
|
+
}
|
|
1321
|
+
name = JSON.stringify('' + key);
|
|
1322
|
+
if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
|
|
1323
|
+
name = name.substr(1, name.length - 2);
|
|
1324
|
+
name = ctx.stylize(name, 'name');
|
|
1325
|
+
} else {
|
|
1326
|
+
name = name.replace(/'/g, "\\'")
|
|
1327
|
+
.replace(/\\"/g, '"')
|
|
1328
|
+
.replace(/(^"|"$)/g, "'");
|
|
1329
|
+
name = ctx.stylize(name, 'string');
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
return name + ': ' + str;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
|
|
1337
|
+
function reduceToSingleString(output, base, braces) {
|
|
1338
|
+
var length = output.reduce(function(prev, cur) {
|
|
1339
|
+
if (cur.indexOf('\n') >= 0) ;
|
|
1340
|
+
return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1;
|
|
1341
|
+
}, 0);
|
|
1342
|
+
|
|
1343
|
+
if (length > 60) {
|
|
1344
|
+
return braces[0] +
|
|
1345
|
+
(base === '' ? '' : base + '\n ') +
|
|
1346
|
+
' ' +
|
|
1347
|
+
output.join(',\n ') +
|
|
1348
|
+
' ' +
|
|
1349
|
+
braces[1];
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
|
|
1356
|
+
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
1357
|
+
// because it is fragile and can be easily faked with `Object.create()`.
|
|
1358
|
+
function isArray$1(ar) {
|
|
1359
|
+
return Array.isArray(ar);
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
function isBoolean(arg) {
|
|
1363
|
+
return typeof arg === 'boolean';
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
function isNull(arg) {
|
|
1367
|
+
return arg === null;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
function isNullOrUndefined(arg) {
|
|
1371
|
+
return arg == null;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
function isNumber(arg) {
|
|
1375
|
+
return typeof arg === 'number';
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
function isString(arg) {
|
|
1379
|
+
return typeof arg === 'string';
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
function isSymbol(arg) {
|
|
1383
|
+
return typeof arg === 'symbol';
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
function isUndefined(arg) {
|
|
1387
|
+
return arg === void 0;
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
function isRegExp(re) {
|
|
1391
|
+
return isObject(re) && objectToString(re) === '[object RegExp]';
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
function isObject(arg) {
|
|
1395
|
+
return typeof arg === 'object' && arg !== null;
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
function isDate(d) {
|
|
1399
|
+
return isObject(d) && objectToString(d) === '[object Date]';
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
function isError(e) {
|
|
1403
|
+
return isObject(e) &&
|
|
1404
|
+
(objectToString(e) === '[object Error]' || e instanceof Error);
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
function isFunction(arg) {
|
|
1408
|
+
return typeof arg === 'function';
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
function isPrimitive(arg) {
|
|
1412
|
+
return arg === null ||
|
|
1413
|
+
typeof arg === 'boolean' ||
|
|
1414
|
+
typeof arg === 'number' ||
|
|
1415
|
+
typeof arg === 'string' ||
|
|
1416
|
+
typeof arg === 'symbol' || // ES6 symbol
|
|
1417
|
+
typeof arg === 'undefined';
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
function isBuffer(maybeBuf) {
|
|
1421
|
+
return Buffer.isBuffer(maybeBuf);
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
function objectToString(o) {
|
|
1425
|
+
return Object.prototype.toString.call(o);
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
|
|
1429
|
+
function pad(n) {
|
|
1430
|
+
return n < 10 ? '0' + n.toString(10) : n.toString(10);
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
|
|
1434
|
+
var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',
|
|
1435
|
+
'Oct', 'Nov', 'Dec'];
|
|
1436
|
+
|
|
1437
|
+
// 26 Feb 16:19:34
|
|
1438
|
+
function timestamp() {
|
|
1439
|
+
var d = new Date();
|
|
1440
|
+
var time = [pad(d.getHours()),
|
|
1441
|
+
pad(d.getMinutes()),
|
|
1442
|
+
pad(d.getSeconds())].join(':');
|
|
1443
|
+
return [d.getDate(), months[d.getMonth()], time].join(' ');
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
|
|
1447
|
+
// log is just a thin wrapper to console.log that prepends a timestamp
|
|
1448
|
+
function log() {
|
|
1449
|
+
console.log('%s - %s', timestamp(), format.apply(null, arguments));
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
function _extend(origin, add) {
|
|
1453
|
+
// Don't do anything if add isn't an object
|
|
1454
|
+
if (!add || !isObject(add)) return origin;
|
|
1455
|
+
|
|
1456
|
+
var keys = Object.keys(add);
|
|
1457
|
+
var i = keys.length;
|
|
1458
|
+
while (i--) {
|
|
1459
|
+
origin[keys[i]] = add[keys[i]];
|
|
1460
|
+
}
|
|
1461
|
+
return origin;
|
|
1462
|
+
}
|
|
1463
|
+
function hasOwnProperty(obj, prop) {
|
|
1464
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
var util = {
|
|
1468
|
+
inherits: inherits$1,
|
|
1469
|
+
_extend: _extend,
|
|
1470
|
+
log: log,
|
|
1471
|
+
isBuffer: isBuffer,
|
|
1472
|
+
isPrimitive: isPrimitive,
|
|
1473
|
+
isFunction: isFunction,
|
|
1474
|
+
isError: isError,
|
|
1475
|
+
isDate: isDate,
|
|
1476
|
+
isObject: isObject,
|
|
1477
|
+
isRegExp: isRegExp,
|
|
1478
|
+
isUndefined: isUndefined,
|
|
1479
|
+
isSymbol: isSymbol,
|
|
1480
|
+
isString: isString,
|
|
1481
|
+
isNumber: isNumber,
|
|
1482
|
+
isNullOrUndefined: isNullOrUndefined,
|
|
1483
|
+
isNull: isNull,
|
|
1484
|
+
isBoolean: isBoolean,
|
|
1485
|
+
isArray: isArray$1,
|
|
1486
|
+
inspect: inspect,
|
|
1487
|
+
deprecate: deprecate,
|
|
1488
|
+
format: format,
|
|
1489
|
+
debuglog: debuglog
|
|
1490
|
+
};
|
|
1491
|
+
|
|
920
1492
|
var require$$2 = {};
|
|
921
1493
|
|
|
922
1494
|
var node = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
@@ -983,7 +1555,7 @@ exports.inspectOpts = Object.keys(process.env).filter(function (key) {
|
|
|
983
1555
|
var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
|
|
984
1556
|
|
|
985
1557
|
if (1 !== fd && 2 !== fd) {
|
|
986
|
-
util.
|
|
1558
|
+
util.deprecate(function(){}, 'except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)')();
|
|
987
1559
|
}
|
|
988
1560
|
|
|
989
1561
|
var stream = 1 === fd ? process.stdout :
|
|
@@ -1006,7 +1578,7 @@ function useColors() {
|
|
|
1006
1578
|
|
|
1007
1579
|
exports.formatters.o = function(v) {
|
|
1008
1580
|
this.inspectOpts.colors = this.useColors;
|
|
1009
|
-
return util.
|
|
1581
|
+
return util.inspect(v, this.inspectOpts)
|
|
1010
1582
|
.split('\n').map(function(str) {
|
|
1011
1583
|
return str.trim()
|
|
1012
1584
|
}).join(' ');
|
|
@@ -1018,7 +1590,7 @@ exports.formatters.o = function(v) {
|
|
|
1018
1590
|
|
|
1019
1591
|
exports.formatters.O = function(v) {
|
|
1020
1592
|
this.inspectOpts.colors = this.useColors;
|
|
1021
|
-
return util.
|
|
1593
|
+
return util.inspect(v, this.inspectOpts);
|
|
1022
1594
|
};
|
|
1023
1595
|
|
|
1024
1596
|
/**
|
|
@@ -1048,7 +1620,7 @@ function formatArgs(args) {
|
|
|
1048
1620
|
*/
|
|
1049
1621
|
|
|
1050
1622
|
function log() {
|
|
1051
|
-
return stream.write(util.
|
|
1623
|
+
return stream.write(util.format.apply(util, arguments) + '\n');
|
|
1052
1624
|
}
|
|
1053
1625
|
|
|
1054
1626
|
/**
|
|
@@ -2375,7 +2947,7 @@ var Video = function Video(_ref) {
|
|
|
2375
2947
|
var onVideoSuccess = function onVideoSuccess(success) {
|
|
2376
2948
|
//console.log('success:', success.ref)
|
|
2377
2949
|
var player = success.ref;
|
|
2378
|
-
if (_typeof._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2950
|
+
if (_typeof$1._typeof(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
|
|
2379
2951
|
player.ima3.settings.debug = true;
|
|
2380
2952
|
if (targeting.content_placement && targeting.document_url) {
|
|
2381
2953
|
player.ima3.settings.serverUrl = player.ima3.settings.serverUrl + '&cust_params=' + encodeURIComponent('content_placement=' + targeting.content_placement + '&document_url=' + targeting.document_url);
|
|
@@ -8294,12 +8866,12 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8294
8866
|
};
|
|
8295
8867
|
|
|
8296
8868
|
var InscreenSensor = function (_React$Component) {
|
|
8297
|
-
inherits$1._inherits(InscreenSensor, _React$Component);
|
|
8869
|
+
inherits$1$1._inherits(InscreenSensor, _React$Component);
|
|
8298
8870
|
|
|
8299
8871
|
function InscreenSensor(props) {
|
|
8300
|
-
inherits$1._classCallCheck(this, InscreenSensor);
|
|
8872
|
+
inherits$1$1._classCallCheck(this, InscreenSensor);
|
|
8301
8873
|
|
|
8302
|
-
var _this = inherits$1._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits$1._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8874
|
+
var _this = inherits$1$1._possibleConstructorReturn(this, (InscreenSensor.__proto__ || inherits$1$1._Object$getPrototypeOf(InscreenSensor)).call(this, props));
|
|
8303
8875
|
|
|
8304
8876
|
_this.scrollHandler = function () {
|
|
8305
8877
|
var visible = _this.checkInside();
|
|
@@ -8335,7 +8907,7 @@ var InscreenSensor = function (_React$Component) {
|
|
|
8335
8907
|
return _this;
|
|
8336
8908
|
}
|
|
8337
8909
|
|
|
8338
|
-
inherits$1._createClass(InscreenSensor, [{
|
|
8910
|
+
inherits$1$1._createClass(InscreenSensor, [{
|
|
8339
8911
|
key: 'componentDidMount',
|
|
8340
8912
|
value: function componentDidMount() {
|
|
8341
8913
|
this.visible = this.checkInside();
|
|
@@ -9279,15 +9851,15 @@ var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
|
9279
9851
|
|
|
9280
9852
|
|
|
9281
9853
|
|
|
9282
|
-
var _classCallCheck3 = _interopRequireDefault(inherits$1.classCallCheck);
|
|
9854
|
+
var _classCallCheck3 = _interopRequireDefault(inherits$1$1.classCallCheck);
|
|
9283
9855
|
|
|
9284
9856
|
|
|
9285
9857
|
|
|
9286
|
-
var _possibleConstructorReturn3 = _interopRequireDefault(inherits$1.possibleConstructorReturn);
|
|
9858
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(inherits$1$1.possibleConstructorReturn);
|
|
9287
9859
|
|
|
9288
9860
|
|
|
9289
9861
|
|
|
9290
|
-
var _inherits3 = _interopRequireDefault(inherits$1.inherits);
|
|
9862
|
+
var _inherits3 = _interopRequireDefault(inherits$1$1.inherits);
|
|
9291
9863
|
|
|
9292
9864
|
|
|
9293
9865
|
|