@mjhls/mjh-framework 1.0.1056 → 1.0.1058

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.
Files changed (182) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AD300x250.js +1 -1
  3. package/dist/cjs/AD300x250x600.js +1 -1
  4. package/dist/cjs/AD728x90.js +1 -1
  5. package/dist/cjs/ADFloatingFooter.js +1 -1
  6. package/dist/cjs/ADGutter.js +1 -1
  7. package/dist/cjs/{ADInfeed-98ee4120.js → ADInfeed-0519664d.js} +1 -1
  8. package/dist/cjs/ADSkyscraper.js +1 -1
  9. package/dist/cjs/ADSponsoredResources.js +1 -1
  10. package/dist/cjs/ADWebcast.js +1 -1
  11. package/dist/cjs/ADWelcome.js +1 -1
  12. package/dist/cjs/{ADlgInfeed-55df7d69.js → ADlgInfeed-e544ac1c.js} +1 -1
  13. package/dist/cjs/AdSlot.js +1 -1
  14. package/dist/cjs/AdSlotsProvider.js +1 -1
  15. package/dist/cjs/AlgoliaSearch.js +91 -63
  16. package/dist/cjs/ArticleCarousel.js +1 -1
  17. package/dist/cjs/ArticleProgramLandingPage.js +3 -4
  18. package/dist/cjs/ArticleSeriesLandingPage.js +3 -3
  19. package/dist/cjs/ArticleSeriesListing.js +1 -1
  20. package/dist/cjs/AuthWrapper.js +294 -1476
  21. package/dist/cjs/CEDeckSupabase.js +2 -2
  22. package/dist/cjs/CMEDeck.js +1 -1
  23. package/dist/cjs/Column3.js +1 -1
  24. package/dist/cjs/ConferenceArticleCard.js +15 -15
  25. package/dist/cjs/ContentCardPaginated.js +3 -3
  26. package/dist/cjs/DeckContent.js +11 -11
  27. package/dist/cjs/DeckQueue.js +2 -2
  28. package/dist/cjs/DeckQueuePaginated.js +2 -2
  29. package/dist/cjs/EventsDeck.js +18 -18
  30. package/dist/cjs/ExternalResources.js +3 -4
  31. package/dist/cjs/Feature.js +1 -1
  32. package/dist/cjs/GridContent.js +4 -4
  33. package/dist/cjs/GridContentPaginated.js +4 -4
  34. package/dist/cjs/GridHero.js +1 -1
  35. package/dist/cjs/HamMagazine.js +11 -11
  36. package/dist/cjs/HealthCareProfessionalModal.js +1 -1
  37. package/dist/cjs/Hero.js +1 -1
  38. package/dist/cjs/HorizontalArticleListing.js +3 -4
  39. package/dist/cjs/{ImageSlider-984a697b.js → ImageSlider-62a43659.js} +149 -92
  40. package/dist/cjs/IssueLanding.js +34 -35
  41. package/dist/cjs/KMTracker.js +15 -15
  42. package/dist/cjs/LeftNav.js +1 -1
  43. package/dist/cjs/MasterDeck.js +11 -11
  44. package/dist/cjs/MasterDeckPaginated.js +11 -11
  45. package/dist/cjs/{MediaSeriesCard-6c1bfd9c.js → MediaSeriesCard-3cf661c7.js} +2 -2
  46. package/dist/cjs/MediaSeriesLanding.js +13 -14
  47. package/dist/cjs/MediaSeriesLandingPaginated.js +13 -14
  48. package/dist/cjs/NavMagazine.js +12 -12
  49. package/dist/cjs/NavNative.js +10 -10
  50. package/dist/cjs/OncliveLargeHero.js +1 -1
  51. package/dist/cjs/PartnerDetailListing.js +6 -8
  52. package/dist/cjs/PartnerDetailListingPaginated.js +6 -8
  53. package/dist/cjs/PodcastsLanding.js +6 -7
  54. package/dist/cjs/PubSection.js +4 -4
  55. package/dist/cjs/PublicationLanding.js +26 -26
  56. package/dist/cjs/QueueDeckExpanded.js +4 -4
  57. package/dist/cjs/QueueDeckExpandedPaginated.js +4 -4
  58. package/dist/cjs/RelatedContent.js +28 -28
  59. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  60. package/dist/cjs/SeriesListingDeck.js +2 -2
  61. package/dist/cjs/{SeriesSlider-086a8319.js → SeriesSlider-edcb8e4b.js} +5 -5
  62. package/dist/cjs/SideFooter.js +2 -2
  63. package/dist/cjs/{SocialSearchComponent-d7e5d3a6.js → SocialSearchComponent-e9ec9c63.js} +1 -1
  64. package/dist/cjs/TaxonomyDescription.js +3 -4
  65. package/dist/cjs/TemplateNormal.js +2 -2
  66. package/dist/cjs/ThumbnailCard.js +1 -1
  67. package/dist/cjs/{Tooltip-96fe6ef6.js → Tooltip-980a1d1a.js} +108 -264
  68. package/dist/cjs/Ustream.js +1 -1
  69. package/dist/cjs/VideoProgramLandingPage.js +3 -4
  70. package/dist/cjs/VideoSeriesCard.js +1 -1
  71. package/dist/cjs/VideoSeriesLandingPage.js +3 -3
  72. package/dist/cjs/VideoSeriesListing.js +1 -1
  73. package/dist/cjs/View.js +7 -9
  74. package/dist/cjs/YahooHero.js +1 -1
  75. package/dist/cjs/YoutubeGroup.js +5 -5
  76. package/dist/cjs/{entities-df1aed86.js → entities-3f9d0f2f.js} +0 -4
  77. package/dist/cjs/faundadb.js +321 -4
  78. package/dist/cjs/getRelatedArticle.js +211 -6
  79. package/dist/cjs/getSerializers.js +3 -4
  80. package/dist/cjs/{getTargeting-5b954783.js → getTargeting-45ffbee8.js} +9 -9
  81. package/dist/cjs/getTargeting.js +1 -1
  82. package/dist/cjs/{index-50be6759.js → index-8041a4eb.js} +9 -15
  83. package/dist/cjs/{index-46b24f52.js → index-c19999b7.js} +598 -15
  84. package/dist/cjs/index.js +10 -20
  85. package/dist/cjs/{main-ae8472f3.js → main-47be4f9f.js} +9 -4
  86. package/dist/esm/AD300x250.js +1 -1
  87. package/dist/esm/AD300x250x600.js +1 -1
  88. package/dist/esm/AD728x90.js +1 -1
  89. package/dist/esm/ADFloatingFooter.js +1 -1
  90. package/dist/esm/ADGutter.js +1 -1
  91. package/dist/esm/{ADInfeed-6d0c0856.js → ADInfeed-c3f5613e.js} +1 -1
  92. package/dist/esm/ADSkyscraper.js +1 -1
  93. package/dist/esm/ADSponsoredResources.js +1 -1
  94. package/dist/esm/ADWebcast.js +1 -1
  95. package/dist/esm/ADWelcome.js +1 -1
  96. package/dist/esm/{ADlgInfeed-93bc2250.js → ADlgInfeed-2b148f3f.js} +1 -1
  97. package/dist/esm/AdSlot.js +1 -1
  98. package/dist/esm/AdSlotsProvider.js +1 -1
  99. package/dist/esm/AlgoliaSearch.js +91 -63
  100. package/dist/esm/ArticleCarousel.js +1 -1
  101. package/dist/esm/ArticleProgramLandingPage.js +3 -4
  102. package/dist/esm/ArticleSeriesLandingPage.js +3 -3
  103. package/dist/esm/ArticleSeriesListing.js +1 -1
  104. package/dist/esm/AuthWrapper.js +288 -1470
  105. package/dist/esm/CEDeckSupabase.js +2 -2
  106. package/dist/esm/CMEDeck.js +1 -1
  107. package/dist/esm/Column3.js +1 -1
  108. package/dist/esm/ConferenceArticleCard.js +15 -15
  109. package/dist/esm/ContentCardPaginated.js +3 -3
  110. package/dist/esm/DeckContent.js +11 -11
  111. package/dist/esm/DeckQueue.js +2 -2
  112. package/dist/esm/DeckQueuePaginated.js +2 -2
  113. package/dist/esm/EventsDeck.js +18 -18
  114. package/dist/esm/ExternalResources.js +3 -4
  115. package/dist/esm/Feature.js +1 -1
  116. package/dist/esm/GridContent.js +4 -4
  117. package/dist/esm/GridContentPaginated.js +4 -4
  118. package/dist/esm/GridHero.js +1 -1
  119. package/dist/esm/HamMagazine.js +11 -11
  120. package/dist/esm/HealthCareProfessionalModal.js +1 -1
  121. package/dist/esm/Hero.js +1 -1
  122. package/dist/esm/HorizontalArticleListing.js +3 -4
  123. package/dist/esm/{ImageSlider-497e9c88.js → ImageSlider-aea3a615.js} +67 -10
  124. package/dist/esm/IssueLanding.js +34 -35
  125. package/dist/esm/KMTracker.js +15 -15
  126. package/dist/esm/LeftNav.js +1 -1
  127. package/dist/esm/MasterDeck.js +11 -11
  128. package/dist/esm/MasterDeckPaginated.js +11 -11
  129. package/dist/esm/{MediaSeriesCard-ed860bcf.js → MediaSeriesCard-52a2e1ca.js} +2 -2
  130. package/dist/esm/MediaSeriesLanding.js +13 -14
  131. package/dist/esm/MediaSeriesLandingPaginated.js +13 -14
  132. package/dist/esm/NavMagazine.js +12 -12
  133. package/dist/esm/NavNative.js +10 -10
  134. package/dist/esm/OncliveLargeHero.js +1 -1
  135. package/dist/esm/PartnerDetailListing.js +6 -8
  136. package/dist/esm/PartnerDetailListingPaginated.js +6 -8
  137. package/dist/esm/PodcastsLanding.js +6 -7
  138. package/dist/esm/PubSection.js +4 -4
  139. package/dist/esm/PublicationLanding.js +26 -26
  140. package/dist/esm/QueueDeckExpanded.js +4 -4
  141. package/dist/esm/QueueDeckExpandedPaginated.js +4 -4
  142. package/dist/esm/RelatedContent.js +28 -28
  143. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  144. package/dist/esm/SeriesListingDeck.js +2 -2
  145. package/dist/esm/{SeriesSlider-a6b1d617.js → SeriesSlider-2e83e861.js} +5 -5
  146. package/dist/esm/SideFooter.js +2 -2
  147. package/dist/esm/{SocialSearchComponent-6065bff2.js → SocialSearchComponent-020f9e81.js} +1 -1
  148. package/dist/esm/TaxonomyDescription.js +3 -4
  149. package/dist/esm/TemplateNormal.js +2 -2
  150. package/dist/esm/ThumbnailCard.js +1 -1
  151. package/dist/esm/{Tooltip-bc98d17e.js → Tooltip-51957f7c.js} +108 -264
  152. package/dist/esm/Ustream.js +1 -1
  153. package/dist/esm/VideoProgramLandingPage.js +3 -4
  154. package/dist/esm/VideoSeriesCard.js +1 -1
  155. package/dist/esm/VideoSeriesLandingPage.js +3 -3
  156. package/dist/esm/VideoSeriesListing.js +1 -1
  157. package/dist/esm/View.js +7 -9
  158. package/dist/esm/YahooHero.js +1 -1
  159. package/dist/esm/YoutubeGroup.js +5 -5
  160. package/dist/esm/{entities-6d9154b4.js → entities-932b50cf.js} +0 -4
  161. package/dist/esm/faundadb.js +319 -2
  162. package/dist/esm/getRelatedArticle.js +206 -1
  163. package/dist/esm/getSerializers.js +3 -4
  164. package/dist/esm/{getTargeting-5a281334.js → getTargeting-a569a9cc.js} +9 -9
  165. package/dist/esm/getTargeting.js +1 -1
  166. package/dist/esm/{index-d3b5043e.js → index-588abaff.js} +588 -5
  167. package/dist/esm/{index-98ca9cec.js → index-67e1773f.js} +9 -15
  168. package/dist/esm/index.js +10 -19
  169. package/dist/esm/{main-754d4992.js → main-f97773b2.js} +9 -4
  170. package/package.json +116 -116
  171. package/dist/cjs/Auth.js +0 -3682
  172. package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
  173. package/dist/cjs/index-bd6c9f56.js +0 -211
  174. package/dist/cjs/md5-e1ca5797.js +0 -323
  175. package/dist/cjs/typeof-1358762e.js +0 -33
  176. package/dist/cjs/util-93a37fd0.js +0 -587
  177. package/dist/esm/Auth.js +0 -3661
  178. package/dist/esm/defineProperty-23a8f8cd.js +0 -68
  179. package/dist/esm/index-db3bb315.js +0 -207
  180. package/dist/esm/md5-4e42248e.js +0 -321
  181. package/dist/esm/typeof-2f07d0e8.js +0 -30
  182. package/dist/esm/util-8ed16d48.js +0 -585
@@ -7,10 +7,9 @@ import Router, { useRouter } from 'next/router';
7
7
  import { g as getYoutubeId } from './index-c7e2ac95.js';
8
8
  import PropTypes from 'prop-types';
9
9
  import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
10
- import { u as util } from './util-8ed16d48.js';
11
10
  import './Beam.js';
12
11
  import Segment from './Segment.js';
13
- import { f as main_18, b as main_42, m as main_43 } from './main-754d4992.js';
12
+ import { f as main_18, b as main_42, m as main_43 } from './main-f97773b2.js';
14
13
  import { B as BlockContent } from './BlockContent-1e73bd2c.js';
15
14
  import { _ as _extends, b as _extends$1 } from './extends-1559c147.js';
16
15
  import { u as urlForFile } from './urlForFile-f6485737.js';
@@ -31,12 +30,12 @@ import { m as moment } from './moment-bc12cb97.js';
31
30
  import SocialShare from './SocialShare.js';
32
31
  import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
33
32
  import Pagination from 'react-bootstrap/Pagination';
34
- import { h as html_decode_1 } from './entities-6d9154b4.js';
33
+ import { h as html_decode_1 } from './entities-932b50cf.js';
35
34
  import DFPAdSlot from './AdSlot.js';
36
35
  import Row$1 from 'react-bootstrap/Row';
37
36
  import Col$1 from 'react-bootstrap/Col';
38
37
  import Head from 'next/head';
39
- import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-d21b4ef9.js';
38
+ import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits$2 } from './inherits-d21b4ef9.js';
40
39
  import { c as IoIosArrowDropupCircle } from './index.esm-eb1e8e80.js';
41
40
  import Figure$2 from 'react-bootstrap/Figure';
42
41
  import OverlayTrigger from 'react-bootstrap/OverlayTrigger';
@@ -912,6 +911,590 @@ var tty = {
912
911
  WriteStream: WriteStream
913
912
  };
914
913
 
914
+ // shim for using process in browser
915
+
916
+ // from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js
917
+ var performance = global.performance || {};
918
+ performance.now ||
919
+ performance.mozNow ||
920
+ performance.msNow ||
921
+ performance.oNow ||
922
+ performance.webkitNow ||
923
+ function(){ return (new Date()).getTime() };
924
+
925
+ var inherits;
926
+ if (typeof Object.create === 'function'){
927
+ inherits = function inherits(ctor, superCtor) {
928
+ // implementation from standard node.js 'util' module
929
+ ctor.super_ = superCtor;
930
+ ctor.prototype = Object.create(superCtor.prototype, {
931
+ constructor: {
932
+ value: ctor,
933
+ enumerable: false,
934
+ writable: true,
935
+ configurable: true
936
+ }
937
+ });
938
+ };
939
+ } else {
940
+ inherits = function inherits(ctor, superCtor) {
941
+ ctor.super_ = superCtor;
942
+ var TempCtor = function () {};
943
+ TempCtor.prototype = superCtor.prototype;
944
+ ctor.prototype = new TempCtor();
945
+ ctor.prototype.constructor = ctor;
946
+ };
947
+ }
948
+ var inherits$1 = inherits;
949
+
950
+ // Copyright Joyent, Inc. and other Node contributors.
951
+ var formatRegExp = /%[sdj%]/g;
952
+ function format(f) {
953
+ if (!isString(f)) {
954
+ var objects = [];
955
+ for (var i = 0; i < arguments.length; i++) {
956
+ objects.push(inspect(arguments[i]));
957
+ }
958
+ return objects.join(' ');
959
+ }
960
+
961
+ var i = 1;
962
+ var args = arguments;
963
+ var len = args.length;
964
+ var str = String(f).replace(formatRegExp, function(x) {
965
+ if (x === '%%') return '%';
966
+ if (i >= len) return x;
967
+ switch (x) {
968
+ case '%s': return String(args[i++]);
969
+ case '%d': return Number(args[i++]);
970
+ case '%j':
971
+ try {
972
+ return JSON.stringify(args[i++]);
973
+ } catch (_) {
974
+ return '[Circular]';
975
+ }
976
+ default:
977
+ return x;
978
+ }
979
+ });
980
+ for (var x = args[i]; i < len; x = args[++i]) {
981
+ if (isNull(x) || !isObject(x)) {
982
+ str += ' ' + x;
983
+ } else {
984
+ str += ' ' + inspect(x);
985
+ }
986
+ }
987
+ return str;
988
+ }
989
+
990
+ // Mark that a method should not be used.
991
+ // Returns a modified function which warns once by default.
992
+ // If --no-deprecation is set, then it is a no-op.
993
+ function deprecate(fn, msg) {
994
+ // Allow for deprecating things in the process of starting up.
995
+ if (isUndefined(global.process)) {
996
+ return function() {
997
+ return deprecate(fn, msg).apply(this, arguments);
998
+ };
999
+ }
1000
+
1001
+ var warned = false;
1002
+ function deprecated() {
1003
+ if (!warned) {
1004
+ {
1005
+ console.error(msg);
1006
+ }
1007
+ warned = true;
1008
+ }
1009
+ return fn.apply(this, arguments);
1010
+ }
1011
+
1012
+ return deprecated;
1013
+ }
1014
+
1015
+ var debugs = {};
1016
+ var debugEnviron;
1017
+ function debuglog(set) {
1018
+ if (isUndefined(debugEnviron))
1019
+ debugEnviron = '';
1020
+ set = set.toUpperCase();
1021
+ if (!debugs[set]) {
1022
+ if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) {
1023
+ var pid = 0;
1024
+ debugs[set] = function() {
1025
+ var msg = format.apply(null, arguments);
1026
+ console.error('%s %d: %s', set, pid, msg);
1027
+ };
1028
+ } else {
1029
+ debugs[set] = function() {};
1030
+ }
1031
+ }
1032
+ return debugs[set];
1033
+ }
1034
+
1035
+ /**
1036
+ * Echos the value of a value. Trys to print the value out
1037
+ * in the best way possible given the different types.
1038
+ *
1039
+ * @param {Object} obj The object to print out.
1040
+ * @param {Object} opts Optional options object that alters the output.
1041
+ */
1042
+ /* legacy: obj, showHidden, depth, colors*/
1043
+ function inspect(obj, opts) {
1044
+ // default options
1045
+ var ctx = {
1046
+ seen: [],
1047
+ stylize: stylizeNoColor
1048
+ };
1049
+ // legacy...
1050
+ if (arguments.length >= 3) ctx.depth = arguments[2];
1051
+ if (arguments.length >= 4) ctx.colors = arguments[3];
1052
+ if (isBoolean(opts)) {
1053
+ // legacy...
1054
+ ctx.showHidden = opts;
1055
+ } else if (opts) {
1056
+ // got an "options" object
1057
+ _extend(ctx, opts);
1058
+ }
1059
+ // set default options
1060
+ if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
1061
+ if (isUndefined(ctx.depth)) ctx.depth = 2;
1062
+ if (isUndefined(ctx.colors)) ctx.colors = false;
1063
+ if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
1064
+ if (ctx.colors) ctx.stylize = stylizeWithColor;
1065
+ return formatValue(ctx, obj, ctx.depth);
1066
+ }
1067
+
1068
+ // http://en.wikipedia.org/wiki/ANSI_escape_code#graphics
1069
+ inspect.colors = {
1070
+ 'bold' : [1, 22],
1071
+ 'italic' : [3, 23],
1072
+ 'underline' : [4, 24],
1073
+ 'inverse' : [7, 27],
1074
+ 'white' : [37, 39],
1075
+ 'grey' : [90, 39],
1076
+ 'black' : [30, 39],
1077
+ 'blue' : [34, 39],
1078
+ 'cyan' : [36, 39],
1079
+ 'green' : [32, 39],
1080
+ 'magenta' : [35, 39],
1081
+ 'red' : [31, 39],
1082
+ 'yellow' : [33, 39]
1083
+ };
1084
+
1085
+ // Don't use 'blue' not visible on cmd.exe
1086
+ inspect.styles = {
1087
+ 'special': 'cyan',
1088
+ 'number': 'yellow',
1089
+ 'boolean': 'yellow',
1090
+ 'undefined': 'grey',
1091
+ 'null': 'bold',
1092
+ 'string': 'green',
1093
+ 'date': 'magenta',
1094
+ // "name": intentionally not styling
1095
+ 'regexp': 'red'
1096
+ };
1097
+
1098
+
1099
+ function stylizeWithColor(str, styleType) {
1100
+ var style = inspect.styles[styleType];
1101
+
1102
+ if (style) {
1103
+ return '\u001b[' + inspect.colors[style][0] + 'm' + str +
1104
+ '\u001b[' + inspect.colors[style][1] + 'm';
1105
+ } else {
1106
+ return str;
1107
+ }
1108
+ }
1109
+
1110
+
1111
+ function stylizeNoColor(str, styleType) {
1112
+ return str;
1113
+ }
1114
+
1115
+
1116
+ function arrayToHash(array) {
1117
+ var hash = {};
1118
+
1119
+ array.forEach(function(val, idx) {
1120
+ hash[val] = true;
1121
+ });
1122
+
1123
+ return hash;
1124
+ }
1125
+
1126
+
1127
+ function formatValue(ctx, value, recurseTimes) {
1128
+ // Provide a hook for user-specified inspect functions.
1129
+ // Check that value is an object with an inspect function on it
1130
+ if (ctx.customInspect &&
1131
+ value &&
1132
+ isFunction(value.inspect) &&
1133
+ // Filter out the util module, it's inspect function is special
1134
+ value.inspect !== inspect &&
1135
+ // Also filter out any prototype objects using the circular check.
1136
+ !(value.constructor && value.constructor.prototype === value)) {
1137
+ var ret = value.inspect(recurseTimes, ctx);
1138
+ if (!isString(ret)) {
1139
+ ret = formatValue(ctx, ret, recurseTimes);
1140
+ }
1141
+ return ret;
1142
+ }
1143
+
1144
+ // Primitive types cannot have properties
1145
+ var primitive = formatPrimitive(ctx, value);
1146
+ if (primitive) {
1147
+ return primitive;
1148
+ }
1149
+
1150
+ // Look up the keys of the object.
1151
+ var keys = Object.keys(value);
1152
+ var visibleKeys = arrayToHash(keys);
1153
+
1154
+ if (ctx.showHidden) {
1155
+ keys = Object.getOwnPropertyNames(value);
1156
+ }
1157
+
1158
+ // IE doesn't make error fields non-enumerable
1159
+ // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx
1160
+ if (isError(value)
1161
+ && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {
1162
+ return formatError(value);
1163
+ }
1164
+
1165
+ // Some type of object without properties can be shortcutted.
1166
+ if (keys.length === 0) {
1167
+ if (isFunction(value)) {
1168
+ var name = value.name ? ': ' + value.name : '';
1169
+ return ctx.stylize('[Function' + name + ']', 'special');
1170
+ }
1171
+ if (isRegExp(value)) {
1172
+ return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
1173
+ }
1174
+ if (isDate(value)) {
1175
+ return ctx.stylize(Date.prototype.toString.call(value), 'date');
1176
+ }
1177
+ if (isError(value)) {
1178
+ return formatError(value);
1179
+ }
1180
+ }
1181
+
1182
+ var base = '', array = false, braces = ['{', '}'];
1183
+
1184
+ // Make Array say that they are Array
1185
+ if (isArray(value)) {
1186
+ array = true;
1187
+ braces = ['[', ']'];
1188
+ }
1189
+
1190
+ // Make functions say that they are functions
1191
+ if (isFunction(value)) {
1192
+ var n = value.name ? ': ' + value.name : '';
1193
+ base = ' [Function' + n + ']';
1194
+ }
1195
+
1196
+ // Make RegExps say that they are RegExps
1197
+ if (isRegExp(value)) {
1198
+ base = ' ' + RegExp.prototype.toString.call(value);
1199
+ }
1200
+
1201
+ // Make dates with properties first say the date
1202
+ if (isDate(value)) {
1203
+ base = ' ' + Date.prototype.toUTCString.call(value);
1204
+ }
1205
+
1206
+ // Make error with message first say the error
1207
+ if (isError(value)) {
1208
+ base = ' ' + formatError(value);
1209
+ }
1210
+
1211
+ if (keys.length === 0 && (!array || value.length == 0)) {
1212
+ return braces[0] + base + braces[1];
1213
+ }
1214
+
1215
+ if (recurseTimes < 0) {
1216
+ if (isRegExp(value)) {
1217
+ return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
1218
+ } else {
1219
+ return ctx.stylize('[Object]', 'special');
1220
+ }
1221
+ }
1222
+
1223
+ ctx.seen.push(value);
1224
+
1225
+ var output;
1226
+ if (array) {
1227
+ output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
1228
+ } else {
1229
+ output = keys.map(function(key) {
1230
+ return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
1231
+ });
1232
+ }
1233
+
1234
+ ctx.seen.pop();
1235
+
1236
+ return reduceToSingleString(output, base, braces);
1237
+ }
1238
+
1239
+
1240
+ function formatPrimitive(ctx, value) {
1241
+ if (isUndefined(value))
1242
+ return ctx.stylize('undefined', 'undefined');
1243
+ if (isString(value)) {
1244
+ var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '')
1245
+ .replace(/'/g, "\\'")
1246
+ .replace(/\\"/g, '"') + '\'';
1247
+ return ctx.stylize(simple, 'string');
1248
+ }
1249
+ if (isNumber(value))
1250
+ return ctx.stylize('' + value, 'number');
1251
+ if (isBoolean(value))
1252
+ return ctx.stylize('' + value, 'boolean');
1253
+ // For some reason typeof null is "object", so special case here.
1254
+ if (isNull(value))
1255
+ return ctx.stylize('null', 'null');
1256
+ }
1257
+
1258
+
1259
+ function formatError(value) {
1260
+ return '[' + Error.prototype.toString.call(value) + ']';
1261
+ }
1262
+
1263
+
1264
+ function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
1265
+ var output = [];
1266
+ for (var i = 0, l = value.length; i < l; ++i) {
1267
+ if (hasOwnProperty(value, String(i))) {
1268
+ output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
1269
+ String(i), true));
1270
+ } else {
1271
+ output.push('');
1272
+ }
1273
+ }
1274
+ keys.forEach(function(key) {
1275
+ if (!key.match(/^\d+$/)) {
1276
+ output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
1277
+ key, true));
1278
+ }
1279
+ });
1280
+ return output;
1281
+ }
1282
+
1283
+
1284
+ function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
1285
+ var name, str, desc;
1286
+ desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
1287
+ if (desc.get) {
1288
+ if (desc.set) {
1289
+ str = ctx.stylize('[Getter/Setter]', 'special');
1290
+ } else {
1291
+ str = ctx.stylize('[Getter]', 'special');
1292
+ }
1293
+ } else {
1294
+ if (desc.set) {
1295
+ str = ctx.stylize('[Setter]', 'special');
1296
+ }
1297
+ }
1298
+ if (!hasOwnProperty(visibleKeys, key)) {
1299
+ name = '[' + key + ']';
1300
+ }
1301
+ if (!str) {
1302
+ if (ctx.seen.indexOf(desc.value) < 0) {
1303
+ if (isNull(recurseTimes)) {
1304
+ str = formatValue(ctx, desc.value, null);
1305
+ } else {
1306
+ str = formatValue(ctx, desc.value, recurseTimes - 1);
1307
+ }
1308
+ if (str.indexOf('\n') > -1) {
1309
+ if (array) {
1310
+ str = str.split('\n').map(function(line) {
1311
+ return ' ' + line;
1312
+ }).join('\n').substr(2);
1313
+ } else {
1314
+ str = '\n' + str.split('\n').map(function(line) {
1315
+ return ' ' + line;
1316
+ }).join('\n');
1317
+ }
1318
+ }
1319
+ } else {
1320
+ str = ctx.stylize('[Circular]', 'special');
1321
+ }
1322
+ }
1323
+ if (isUndefined(name)) {
1324
+ if (array && key.match(/^\d+$/)) {
1325
+ return str;
1326
+ }
1327
+ name = JSON.stringify('' + key);
1328
+ if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
1329
+ name = name.substr(1, name.length - 2);
1330
+ name = ctx.stylize(name, 'name');
1331
+ } else {
1332
+ name = name.replace(/'/g, "\\'")
1333
+ .replace(/\\"/g, '"')
1334
+ .replace(/(^"|"$)/g, "'");
1335
+ name = ctx.stylize(name, 'string');
1336
+ }
1337
+ }
1338
+
1339
+ return name + ': ' + str;
1340
+ }
1341
+
1342
+
1343
+ function reduceToSingleString(output, base, braces) {
1344
+ var length = output.reduce(function(prev, cur) {
1345
+ if (cur.indexOf('\n') >= 0) ;
1346
+ return prev + cur.replace(/\u001b\[\d\d?m/g, '').length + 1;
1347
+ }, 0);
1348
+
1349
+ if (length > 60) {
1350
+ return braces[0] +
1351
+ (base === '' ? '' : base + '\n ') +
1352
+ ' ' +
1353
+ output.join(',\n ') +
1354
+ ' ' +
1355
+ braces[1];
1356
+ }
1357
+
1358
+ return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];
1359
+ }
1360
+
1361
+
1362
+ // NOTE: These type checking functions intentionally don't use `instanceof`
1363
+ // because it is fragile and can be easily faked with `Object.create()`.
1364
+ function isArray(ar) {
1365
+ return Array.isArray(ar);
1366
+ }
1367
+
1368
+ function isBoolean(arg) {
1369
+ return typeof arg === 'boolean';
1370
+ }
1371
+
1372
+ function isNull(arg) {
1373
+ return arg === null;
1374
+ }
1375
+
1376
+ function isNullOrUndefined(arg) {
1377
+ return arg == null;
1378
+ }
1379
+
1380
+ function isNumber(arg) {
1381
+ return typeof arg === 'number';
1382
+ }
1383
+
1384
+ function isString(arg) {
1385
+ return typeof arg === 'string';
1386
+ }
1387
+
1388
+ function isSymbol(arg) {
1389
+ return typeof arg === 'symbol';
1390
+ }
1391
+
1392
+ function isUndefined(arg) {
1393
+ return arg === void 0;
1394
+ }
1395
+
1396
+ function isRegExp(re) {
1397
+ return isObject(re) && objectToString(re) === '[object RegExp]';
1398
+ }
1399
+
1400
+ function isObject(arg) {
1401
+ return typeof arg === 'object' && arg !== null;
1402
+ }
1403
+
1404
+ function isDate(d) {
1405
+ return isObject(d) && objectToString(d) === '[object Date]';
1406
+ }
1407
+
1408
+ function isError(e) {
1409
+ return isObject(e) &&
1410
+ (objectToString(e) === '[object Error]' || e instanceof Error);
1411
+ }
1412
+
1413
+ function isFunction(arg) {
1414
+ return typeof arg === 'function';
1415
+ }
1416
+
1417
+ function isPrimitive(arg) {
1418
+ return arg === null ||
1419
+ typeof arg === 'boolean' ||
1420
+ typeof arg === 'number' ||
1421
+ typeof arg === 'string' ||
1422
+ typeof arg === 'symbol' || // ES6 symbol
1423
+ typeof arg === 'undefined';
1424
+ }
1425
+
1426
+ function isBuffer(maybeBuf) {
1427
+ return Buffer.isBuffer(maybeBuf);
1428
+ }
1429
+
1430
+ function objectToString(o) {
1431
+ return Object.prototype.toString.call(o);
1432
+ }
1433
+
1434
+
1435
+ function pad(n) {
1436
+ return n < 10 ? '0' + n.toString(10) : n.toString(10);
1437
+ }
1438
+
1439
+
1440
+ var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',
1441
+ 'Oct', 'Nov', 'Dec'];
1442
+
1443
+ // 26 Feb 16:19:34
1444
+ function timestamp() {
1445
+ var d = new Date();
1446
+ var time = [pad(d.getHours()),
1447
+ pad(d.getMinutes()),
1448
+ pad(d.getSeconds())].join(':');
1449
+ return [d.getDate(), months[d.getMonth()], time].join(' ');
1450
+ }
1451
+
1452
+
1453
+ // log is just a thin wrapper to console.log that prepends a timestamp
1454
+ function log() {
1455
+ console.log('%s - %s', timestamp(), format.apply(null, arguments));
1456
+ }
1457
+
1458
+ function _extend(origin, add) {
1459
+ // Don't do anything if add isn't an object
1460
+ if (!add || !isObject(add)) return origin;
1461
+
1462
+ var keys = Object.keys(add);
1463
+ var i = keys.length;
1464
+ while (i--) {
1465
+ origin[keys[i]] = add[keys[i]];
1466
+ }
1467
+ return origin;
1468
+ }
1469
+ function hasOwnProperty(obj, prop) {
1470
+ return Object.prototype.hasOwnProperty.call(obj, prop);
1471
+ }
1472
+
1473
+ var util = {
1474
+ inherits: inherits$1,
1475
+ _extend: _extend,
1476
+ log: log,
1477
+ isBuffer: isBuffer,
1478
+ isPrimitive: isPrimitive,
1479
+ isFunction: isFunction,
1480
+ isError: isError,
1481
+ isDate: isDate,
1482
+ isObject: isObject,
1483
+ isRegExp: isRegExp,
1484
+ isUndefined: isUndefined,
1485
+ isSymbol: isSymbol,
1486
+ isString: isString,
1487
+ isNumber: isNumber,
1488
+ isNullOrUndefined: isNullOrUndefined,
1489
+ isNull: isNull,
1490
+ isBoolean: isBoolean,
1491
+ isArray: isArray,
1492
+ inspect: inspect,
1493
+ deprecate: deprecate,
1494
+ format: format,
1495
+ debuglog: debuglog
1496
+ };
1497
+
915
1498
  var require$$2 = {};
916
1499
 
917
1500
  var node = createCommonjsModule(function (module, exports) {
@@ -10087,7 +10670,7 @@ var _possibleConstructorReturn3 = _interopRequireDefault(possibleConstructorRetu
10087
10670
 
10088
10671
 
10089
10672
 
10090
- var _inherits3 = _interopRequireDefault(inherits);
10673
+ var _inherits3 = _interopRequireDefault(inherits$2);
10091
10674
 
10092
10675
 
10093
10676
 
@@ -44,7 +44,7 @@ function _setPrototypeOf(o, p) {
44
44
 
45
45
  var classnames = createCommonjsModule(function (module) {
46
46
  /*!
47
- Copyright (c) 2018 Jed Watson.
47
+ Copyright (c) 2017 Jed Watson.
48
48
  Licensed under the MIT License (MIT), see
49
49
  http://jedwatson.github.io/classnames
50
50
  */
@@ -54,7 +54,7 @@ var classnames = createCommonjsModule(function (module) {
54
54
 
55
55
  var hasOwn = {}.hasOwnProperty;
56
56
 
57
- function classNames() {
57
+ function classNames () {
58
58
  var classes = [];
59
59
 
60
60
  for (var i = 0; i < arguments.length; i++) {
@@ -65,22 +65,16 @@ var classnames = createCommonjsModule(function (module) {
65
65
 
66
66
  if (argType === 'string' || argType === 'number') {
67
67
  classes.push(arg);
68
- } else if (Array.isArray(arg)) {
69
- if (arg.length) {
70
- var inner = classNames.apply(null, arg);
71
- if (inner) {
72
- classes.push(inner);
73
- }
68
+ } else if (Array.isArray(arg) && arg.length) {
69
+ var inner = classNames.apply(null, arg);
70
+ if (inner) {
71
+ classes.push(inner);
74
72
  }
75
73
  } else if (argType === 'object') {
76
- if (arg.toString === Object.prototype.toString) {
77
- for (var key in arg) {
78
- if (hasOwn.call(arg, key) && arg[key]) {
79
- classes.push(key);
80
- }
74
+ for (var key in arg) {
75
+ if (hasOwn.call(arg, key) && arg[key]) {
76
+ classes.push(key);
81
77
  }
82
- } else {
83
- classes.push(arg.toString());
84
78
  }
85
79
  }
86
80
  }