@mjhls/mjh-framework 1.0.27 → 1.0.29
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 +170 -170
- package/dist/index.es.js +1301 -145
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1299 -144
- package/dist/index.js.map +1 -1
- package/package.json +77 -76
package/dist/index.js
CHANGED
|
@@ -701,7 +701,7 @@ var DeckContent = function (_React$Component) {
|
|
|
701
701
|
|
|
702
702
|
|
|
703
703
|
return React__default.createElement(
|
|
704
|
-
'
|
|
704
|
+
'div',
|
|
705
705
|
{ className: 'contentDeck' },
|
|
706
706
|
autoScroll ? React__default.createElement(
|
|
707
707
|
React__default.Fragment,
|
|
@@ -749,9 +749,1205 @@ var DeckContent = function (_React$Component) {
|
|
|
749
749
|
)
|
|
750
750
|
);
|
|
751
751
|
}
|
|
752
|
-
}]);
|
|
753
|
-
return DeckContent;
|
|
754
|
-
}(React__default.Component);
|
|
752
|
+
}]);
|
|
753
|
+
return DeckContent;
|
|
754
|
+
}(React__default.Component);
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* Checks if `value` is classified as an `Array` object.
|
|
758
|
+
*
|
|
759
|
+
* @static
|
|
760
|
+
* @memberOf _
|
|
761
|
+
* @since 0.1.0
|
|
762
|
+
* @category Lang
|
|
763
|
+
* @param {*} value The value to check.
|
|
764
|
+
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
765
|
+
* @example
|
|
766
|
+
*
|
|
767
|
+
* _.isArray([1, 2, 3]);
|
|
768
|
+
* // => true
|
|
769
|
+
*
|
|
770
|
+
* _.isArray(document.body.children);
|
|
771
|
+
* // => false
|
|
772
|
+
*
|
|
773
|
+
* _.isArray('abc');
|
|
774
|
+
* // => false
|
|
775
|
+
*
|
|
776
|
+
* _.isArray(_.noop);
|
|
777
|
+
* // => false
|
|
778
|
+
*/
|
|
779
|
+
var isArray = Array.isArray;
|
|
780
|
+
|
|
781
|
+
var isArray_1 = isArray;
|
|
782
|
+
|
|
783
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
784
|
+
|
|
785
|
+
function unwrapExports (x) {
|
|
786
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
function createCommonjsModule(fn, module) {
|
|
790
|
+
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
/** Detect free variable `global` from Node.js. */
|
|
794
|
+
var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
795
|
+
|
|
796
|
+
var _freeGlobal = freeGlobal;
|
|
797
|
+
|
|
798
|
+
/** Detect free variable `self`. */
|
|
799
|
+
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
800
|
+
|
|
801
|
+
/** Used as a reference to the global object. */
|
|
802
|
+
var root = _freeGlobal || freeSelf || Function('return this')();
|
|
803
|
+
|
|
804
|
+
var _root = root;
|
|
805
|
+
|
|
806
|
+
/** Built-in value references. */
|
|
807
|
+
var Symbol$1 = _root.Symbol;
|
|
808
|
+
|
|
809
|
+
var _Symbol = Symbol$1;
|
|
810
|
+
|
|
811
|
+
/** Used for built-in method references. */
|
|
812
|
+
var objectProto = Object.prototype;
|
|
813
|
+
|
|
814
|
+
/** Used to check objects for own properties. */
|
|
815
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* Used to resolve the
|
|
819
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
820
|
+
* of values.
|
|
821
|
+
*/
|
|
822
|
+
var nativeObjectToString = objectProto.toString;
|
|
823
|
+
|
|
824
|
+
/** Built-in value references. */
|
|
825
|
+
var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
829
|
+
*
|
|
830
|
+
* @private
|
|
831
|
+
* @param {*} value The value to query.
|
|
832
|
+
* @returns {string} Returns the raw `toStringTag`.
|
|
833
|
+
*/
|
|
834
|
+
function getRawTag(value) {
|
|
835
|
+
var isOwn = hasOwnProperty.call(value, symToStringTag),
|
|
836
|
+
tag = value[symToStringTag];
|
|
837
|
+
|
|
838
|
+
try {
|
|
839
|
+
value[symToStringTag] = undefined;
|
|
840
|
+
} catch (e) {}
|
|
841
|
+
|
|
842
|
+
var result = nativeObjectToString.call(value);
|
|
843
|
+
{
|
|
844
|
+
if (isOwn) {
|
|
845
|
+
value[symToStringTag] = tag;
|
|
846
|
+
} else {
|
|
847
|
+
delete value[symToStringTag];
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
return result;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
var _getRawTag = getRawTag;
|
|
854
|
+
|
|
855
|
+
/** Used for built-in method references. */
|
|
856
|
+
var objectProto$1 = Object.prototype;
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* Used to resolve the
|
|
860
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
861
|
+
* of values.
|
|
862
|
+
*/
|
|
863
|
+
var nativeObjectToString$1 = objectProto$1.toString;
|
|
864
|
+
|
|
865
|
+
/**
|
|
866
|
+
* Converts `value` to a string using `Object.prototype.toString`.
|
|
867
|
+
*
|
|
868
|
+
* @private
|
|
869
|
+
* @param {*} value The value to convert.
|
|
870
|
+
* @returns {string} Returns the converted string.
|
|
871
|
+
*/
|
|
872
|
+
function objectToString(value) {
|
|
873
|
+
return nativeObjectToString$1.call(value);
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
var _objectToString = objectToString;
|
|
877
|
+
|
|
878
|
+
/** `Object#toString` result references. */
|
|
879
|
+
var nullTag = '[object Null]',
|
|
880
|
+
undefinedTag = '[object Undefined]';
|
|
881
|
+
|
|
882
|
+
/** Built-in value references. */
|
|
883
|
+
var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
|
|
884
|
+
|
|
885
|
+
/**
|
|
886
|
+
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
887
|
+
*
|
|
888
|
+
* @private
|
|
889
|
+
* @param {*} value The value to query.
|
|
890
|
+
* @returns {string} Returns the `toStringTag`.
|
|
891
|
+
*/
|
|
892
|
+
function baseGetTag(value) {
|
|
893
|
+
if (value == null) {
|
|
894
|
+
return value === undefined ? undefinedTag : nullTag;
|
|
895
|
+
}
|
|
896
|
+
return (symToStringTag$1 && symToStringTag$1 in Object(value))
|
|
897
|
+
? _getRawTag(value)
|
|
898
|
+
: _objectToString(value);
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
var _baseGetTag = baseGetTag;
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
905
|
+
* and has a `typeof` result of "object".
|
|
906
|
+
*
|
|
907
|
+
* @static
|
|
908
|
+
* @memberOf _
|
|
909
|
+
* @since 4.0.0
|
|
910
|
+
* @category Lang
|
|
911
|
+
* @param {*} value The value to check.
|
|
912
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
913
|
+
* @example
|
|
914
|
+
*
|
|
915
|
+
* _.isObjectLike({});
|
|
916
|
+
* // => true
|
|
917
|
+
*
|
|
918
|
+
* _.isObjectLike([1, 2, 3]);
|
|
919
|
+
* // => true
|
|
920
|
+
*
|
|
921
|
+
* _.isObjectLike(_.noop);
|
|
922
|
+
* // => false
|
|
923
|
+
*
|
|
924
|
+
* _.isObjectLike(null);
|
|
925
|
+
* // => false
|
|
926
|
+
*/
|
|
927
|
+
function isObjectLike(value) {
|
|
928
|
+
return value != null && typeof value == 'object';
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
var isObjectLike_1 = isObjectLike;
|
|
932
|
+
|
|
933
|
+
/** `Object#toString` result references. */
|
|
934
|
+
var symbolTag = '[object Symbol]';
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
938
|
+
*
|
|
939
|
+
* @static
|
|
940
|
+
* @memberOf _
|
|
941
|
+
* @since 4.0.0
|
|
942
|
+
* @category Lang
|
|
943
|
+
* @param {*} value The value to check.
|
|
944
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
945
|
+
* @example
|
|
946
|
+
*
|
|
947
|
+
* _.isSymbol(Symbol.iterator);
|
|
948
|
+
* // => true
|
|
949
|
+
*
|
|
950
|
+
* _.isSymbol('abc');
|
|
951
|
+
* // => false
|
|
952
|
+
*/
|
|
953
|
+
function isSymbol(value) {
|
|
954
|
+
return typeof value == 'symbol' ||
|
|
955
|
+
(isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
var isSymbol_1 = isSymbol;
|
|
959
|
+
|
|
960
|
+
/** Used to match property names within property paths. */
|
|
961
|
+
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
|
962
|
+
reIsPlainProp = /^\w*$/;
|
|
963
|
+
|
|
964
|
+
/**
|
|
965
|
+
* Checks if `value` is a property name and not a property path.
|
|
966
|
+
*
|
|
967
|
+
* @private
|
|
968
|
+
* @param {*} value The value to check.
|
|
969
|
+
* @param {Object} [object] The object to query keys on.
|
|
970
|
+
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
971
|
+
*/
|
|
972
|
+
function isKey(value, object) {
|
|
973
|
+
if (isArray_1(value)) {
|
|
974
|
+
return false;
|
|
975
|
+
}
|
|
976
|
+
var type = typeof value;
|
|
977
|
+
if (type == 'number' || type == 'symbol' || type == 'boolean' ||
|
|
978
|
+
value == null || isSymbol_1(value)) {
|
|
979
|
+
return true;
|
|
980
|
+
}
|
|
981
|
+
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
|
|
982
|
+
(object != null && value in Object(object));
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
var _isKey = isKey;
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* Checks if `value` is the
|
|
989
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
990
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
991
|
+
*
|
|
992
|
+
* @static
|
|
993
|
+
* @memberOf _
|
|
994
|
+
* @since 0.1.0
|
|
995
|
+
* @category Lang
|
|
996
|
+
* @param {*} value The value to check.
|
|
997
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
998
|
+
* @example
|
|
999
|
+
*
|
|
1000
|
+
* _.isObject({});
|
|
1001
|
+
* // => true
|
|
1002
|
+
*
|
|
1003
|
+
* _.isObject([1, 2, 3]);
|
|
1004
|
+
* // => true
|
|
1005
|
+
*
|
|
1006
|
+
* _.isObject(_.noop);
|
|
1007
|
+
* // => true
|
|
1008
|
+
*
|
|
1009
|
+
* _.isObject(null);
|
|
1010
|
+
* // => false
|
|
1011
|
+
*/
|
|
1012
|
+
function isObject(value) {
|
|
1013
|
+
var type = typeof value;
|
|
1014
|
+
return value != null && (type == 'object' || type == 'function');
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
var isObject_1 = isObject;
|
|
1018
|
+
|
|
1019
|
+
/** `Object#toString` result references. */
|
|
1020
|
+
var asyncTag = '[object AsyncFunction]',
|
|
1021
|
+
funcTag = '[object Function]',
|
|
1022
|
+
genTag = '[object GeneratorFunction]',
|
|
1023
|
+
proxyTag = '[object Proxy]';
|
|
1024
|
+
|
|
1025
|
+
/**
|
|
1026
|
+
* Checks if `value` is classified as a `Function` object.
|
|
1027
|
+
*
|
|
1028
|
+
* @static
|
|
1029
|
+
* @memberOf _
|
|
1030
|
+
* @since 0.1.0
|
|
1031
|
+
* @category Lang
|
|
1032
|
+
* @param {*} value The value to check.
|
|
1033
|
+
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
1034
|
+
* @example
|
|
1035
|
+
*
|
|
1036
|
+
* _.isFunction(_);
|
|
1037
|
+
* // => true
|
|
1038
|
+
*
|
|
1039
|
+
* _.isFunction(/abc/);
|
|
1040
|
+
* // => false
|
|
1041
|
+
*/
|
|
1042
|
+
function isFunction(value) {
|
|
1043
|
+
if (!isObject_1(value)) {
|
|
1044
|
+
return false;
|
|
1045
|
+
}
|
|
1046
|
+
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
1047
|
+
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
1048
|
+
var tag = _baseGetTag(value);
|
|
1049
|
+
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
var isFunction_1 = isFunction;
|
|
1053
|
+
|
|
1054
|
+
/** Used to detect overreaching core-js shims. */
|
|
1055
|
+
var coreJsData = _root['__core-js_shared__'];
|
|
1056
|
+
|
|
1057
|
+
var _coreJsData = coreJsData;
|
|
1058
|
+
|
|
1059
|
+
/** Used to detect methods masquerading as native. */
|
|
1060
|
+
var maskSrcKey = (function() {
|
|
1061
|
+
var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
|
|
1062
|
+
return uid ? ('Symbol(src)_1.' + uid) : '';
|
|
1063
|
+
}());
|
|
1064
|
+
|
|
1065
|
+
/**
|
|
1066
|
+
* Checks if `func` has its source masked.
|
|
1067
|
+
*
|
|
1068
|
+
* @private
|
|
1069
|
+
* @param {Function} func The function to check.
|
|
1070
|
+
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
1071
|
+
*/
|
|
1072
|
+
function isMasked(func) {
|
|
1073
|
+
return !!maskSrcKey && (maskSrcKey in func);
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
var _isMasked = isMasked;
|
|
1077
|
+
|
|
1078
|
+
/** Used for built-in method references. */
|
|
1079
|
+
var funcProto = Function.prototype;
|
|
1080
|
+
|
|
1081
|
+
/** Used to resolve the decompiled source of functions. */
|
|
1082
|
+
var funcToString = funcProto.toString;
|
|
1083
|
+
|
|
1084
|
+
/**
|
|
1085
|
+
* Converts `func` to its source code.
|
|
1086
|
+
*
|
|
1087
|
+
* @private
|
|
1088
|
+
* @param {Function} func The function to convert.
|
|
1089
|
+
* @returns {string} Returns the source code.
|
|
1090
|
+
*/
|
|
1091
|
+
function toSource(func) {
|
|
1092
|
+
if (func != null) {
|
|
1093
|
+
try {
|
|
1094
|
+
return funcToString.call(func);
|
|
1095
|
+
} catch (e) {}
|
|
1096
|
+
try {
|
|
1097
|
+
return (func + '');
|
|
1098
|
+
} catch (e) {}
|
|
1099
|
+
}
|
|
1100
|
+
return '';
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
var _toSource = toSource;
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* Used to match `RegExp`
|
|
1107
|
+
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
1108
|
+
*/
|
|
1109
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
1110
|
+
|
|
1111
|
+
/** Used to detect host constructors (Safari). */
|
|
1112
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
1113
|
+
|
|
1114
|
+
/** Used for built-in method references. */
|
|
1115
|
+
var funcProto$1 = Function.prototype,
|
|
1116
|
+
objectProto$2 = Object.prototype;
|
|
1117
|
+
|
|
1118
|
+
/** Used to resolve the decompiled source of functions. */
|
|
1119
|
+
var funcToString$1 = funcProto$1.toString;
|
|
1120
|
+
|
|
1121
|
+
/** Used to check objects for own properties. */
|
|
1122
|
+
var hasOwnProperty$1 = objectProto$2.hasOwnProperty;
|
|
1123
|
+
|
|
1124
|
+
/** Used to detect if a method is native. */
|
|
1125
|
+
var reIsNative = RegExp('^' +
|
|
1126
|
+
funcToString$1.call(hasOwnProperty$1).replace(reRegExpChar, '\\$&')
|
|
1127
|
+
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
1128
|
+
);
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* The base implementation of `_.isNative` without bad shim checks.
|
|
1132
|
+
*
|
|
1133
|
+
* @private
|
|
1134
|
+
* @param {*} value The value to check.
|
|
1135
|
+
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
1136
|
+
* else `false`.
|
|
1137
|
+
*/
|
|
1138
|
+
function baseIsNative(value) {
|
|
1139
|
+
if (!isObject_1(value) || _isMasked(value)) {
|
|
1140
|
+
return false;
|
|
1141
|
+
}
|
|
1142
|
+
var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
|
|
1143
|
+
return pattern.test(_toSource(value));
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
var _baseIsNative = baseIsNative;
|
|
1147
|
+
|
|
1148
|
+
/**
|
|
1149
|
+
* Gets the value at `key` of `object`.
|
|
1150
|
+
*
|
|
1151
|
+
* @private
|
|
1152
|
+
* @param {Object} [object] The object to query.
|
|
1153
|
+
* @param {string} key The key of the property to get.
|
|
1154
|
+
* @returns {*} Returns the property value.
|
|
1155
|
+
*/
|
|
1156
|
+
function getValue(object, key) {
|
|
1157
|
+
return object == null ? undefined : object[key];
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
var _getValue = getValue;
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* Gets the native function at `key` of `object`.
|
|
1164
|
+
*
|
|
1165
|
+
* @private
|
|
1166
|
+
* @param {Object} object The object to query.
|
|
1167
|
+
* @param {string} key The key of the method to get.
|
|
1168
|
+
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
1169
|
+
*/
|
|
1170
|
+
function getNative(object, key) {
|
|
1171
|
+
var value = _getValue(object, key);
|
|
1172
|
+
return _baseIsNative(value) ? value : undefined;
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
var _getNative = getNative;
|
|
1176
|
+
|
|
1177
|
+
/* Built-in method references that are verified to be native. */
|
|
1178
|
+
var nativeCreate = _getNative(Object, 'create');
|
|
1179
|
+
|
|
1180
|
+
var _nativeCreate = nativeCreate;
|
|
1181
|
+
|
|
1182
|
+
/**
|
|
1183
|
+
* Removes all key-value entries from the hash.
|
|
1184
|
+
*
|
|
1185
|
+
* @private
|
|
1186
|
+
* @name clear
|
|
1187
|
+
* @memberOf Hash
|
|
1188
|
+
*/
|
|
1189
|
+
function hashClear() {
|
|
1190
|
+
this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
|
|
1191
|
+
this.size = 0;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
var _hashClear = hashClear;
|
|
1195
|
+
|
|
1196
|
+
/**
|
|
1197
|
+
* Removes `key` and its value from the hash.
|
|
1198
|
+
*
|
|
1199
|
+
* @private
|
|
1200
|
+
* @name delete
|
|
1201
|
+
* @memberOf Hash
|
|
1202
|
+
* @param {Object} hash The hash to modify.
|
|
1203
|
+
* @param {string} key The key of the value to remove.
|
|
1204
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1205
|
+
*/
|
|
1206
|
+
function hashDelete(key) {
|
|
1207
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
1208
|
+
this.size -= result ? 1 : 0;
|
|
1209
|
+
return result;
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
var _hashDelete = hashDelete;
|
|
1213
|
+
|
|
1214
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
1215
|
+
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
1216
|
+
|
|
1217
|
+
/** Used for built-in method references. */
|
|
1218
|
+
var objectProto$3 = Object.prototype;
|
|
1219
|
+
|
|
1220
|
+
/** Used to check objects for own properties. */
|
|
1221
|
+
var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
|
|
1222
|
+
|
|
1223
|
+
/**
|
|
1224
|
+
* Gets the hash value for `key`.
|
|
1225
|
+
*
|
|
1226
|
+
* @private
|
|
1227
|
+
* @name get
|
|
1228
|
+
* @memberOf Hash
|
|
1229
|
+
* @param {string} key The key of the value to get.
|
|
1230
|
+
* @returns {*} Returns the entry value.
|
|
1231
|
+
*/
|
|
1232
|
+
function hashGet(key) {
|
|
1233
|
+
var data = this.__data__;
|
|
1234
|
+
if (_nativeCreate) {
|
|
1235
|
+
var result = data[key];
|
|
1236
|
+
return result === HASH_UNDEFINED ? undefined : result;
|
|
1237
|
+
}
|
|
1238
|
+
return hasOwnProperty$2.call(data, key) ? data[key] : undefined;
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
var _hashGet = hashGet;
|
|
1242
|
+
|
|
1243
|
+
/** Used for built-in method references. */
|
|
1244
|
+
var objectProto$4 = Object.prototype;
|
|
1245
|
+
|
|
1246
|
+
/** Used to check objects for own properties. */
|
|
1247
|
+
var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
|
|
1248
|
+
|
|
1249
|
+
/**
|
|
1250
|
+
* Checks if a hash value for `key` exists.
|
|
1251
|
+
*
|
|
1252
|
+
* @private
|
|
1253
|
+
* @name has
|
|
1254
|
+
* @memberOf Hash
|
|
1255
|
+
* @param {string} key The key of the entry to check.
|
|
1256
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1257
|
+
*/
|
|
1258
|
+
function hashHas(key) {
|
|
1259
|
+
var data = this.__data__;
|
|
1260
|
+
return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$3.call(data, key);
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
var _hashHas = hashHas;
|
|
1264
|
+
|
|
1265
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
1266
|
+
var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
|
|
1267
|
+
|
|
1268
|
+
/**
|
|
1269
|
+
* Sets the hash `key` to `value`.
|
|
1270
|
+
*
|
|
1271
|
+
* @private
|
|
1272
|
+
* @name set
|
|
1273
|
+
* @memberOf Hash
|
|
1274
|
+
* @param {string} key The key of the value to set.
|
|
1275
|
+
* @param {*} value The value to set.
|
|
1276
|
+
* @returns {Object} Returns the hash instance.
|
|
1277
|
+
*/
|
|
1278
|
+
function hashSet(key, value) {
|
|
1279
|
+
var data = this.__data__;
|
|
1280
|
+
this.size += this.has(key) ? 0 : 1;
|
|
1281
|
+
data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED$1 : value;
|
|
1282
|
+
return this;
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
var _hashSet = hashSet;
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
* Creates a hash object.
|
|
1289
|
+
*
|
|
1290
|
+
* @private
|
|
1291
|
+
* @constructor
|
|
1292
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
1293
|
+
*/
|
|
1294
|
+
function Hash(entries) {
|
|
1295
|
+
var index = -1,
|
|
1296
|
+
length = entries == null ? 0 : entries.length;
|
|
1297
|
+
|
|
1298
|
+
this.clear();
|
|
1299
|
+
while (++index < length) {
|
|
1300
|
+
var entry = entries[index];
|
|
1301
|
+
this.set(entry[0], entry[1]);
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
// Add methods to `Hash`.
|
|
1306
|
+
Hash.prototype.clear = _hashClear;
|
|
1307
|
+
Hash.prototype['delete'] = _hashDelete;
|
|
1308
|
+
Hash.prototype.get = _hashGet;
|
|
1309
|
+
Hash.prototype.has = _hashHas;
|
|
1310
|
+
Hash.prototype.set = _hashSet;
|
|
1311
|
+
|
|
1312
|
+
var _Hash = Hash;
|
|
1313
|
+
|
|
1314
|
+
/**
|
|
1315
|
+
* Removes all key-value entries from the list cache.
|
|
1316
|
+
*
|
|
1317
|
+
* @private
|
|
1318
|
+
* @name clear
|
|
1319
|
+
* @memberOf ListCache
|
|
1320
|
+
*/
|
|
1321
|
+
function listCacheClear() {
|
|
1322
|
+
this.__data__ = [];
|
|
1323
|
+
this.size = 0;
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
var _listCacheClear = listCacheClear;
|
|
1327
|
+
|
|
1328
|
+
/**
|
|
1329
|
+
* Performs a
|
|
1330
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
1331
|
+
* comparison between two values to determine if they are equivalent.
|
|
1332
|
+
*
|
|
1333
|
+
* @static
|
|
1334
|
+
* @memberOf _
|
|
1335
|
+
* @since 4.0.0
|
|
1336
|
+
* @category Lang
|
|
1337
|
+
* @param {*} value The value to compare.
|
|
1338
|
+
* @param {*} other The other value to compare.
|
|
1339
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
1340
|
+
* @example
|
|
1341
|
+
*
|
|
1342
|
+
* var object = { 'a': 1 };
|
|
1343
|
+
* var other = { 'a': 1 };
|
|
1344
|
+
*
|
|
1345
|
+
* _.eq(object, object);
|
|
1346
|
+
* // => true
|
|
1347
|
+
*
|
|
1348
|
+
* _.eq(object, other);
|
|
1349
|
+
* // => false
|
|
1350
|
+
*
|
|
1351
|
+
* _.eq('a', 'a');
|
|
1352
|
+
* // => true
|
|
1353
|
+
*
|
|
1354
|
+
* _.eq('a', Object('a'));
|
|
1355
|
+
* // => false
|
|
1356
|
+
*
|
|
1357
|
+
* _.eq(NaN, NaN);
|
|
1358
|
+
* // => true
|
|
1359
|
+
*/
|
|
1360
|
+
function eq(value, other) {
|
|
1361
|
+
return value === other || (value !== value && other !== other);
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
var eq_1 = eq;
|
|
1365
|
+
|
|
1366
|
+
/**
|
|
1367
|
+
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
1368
|
+
*
|
|
1369
|
+
* @private
|
|
1370
|
+
* @param {Array} array The array to inspect.
|
|
1371
|
+
* @param {*} key The key to search for.
|
|
1372
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
1373
|
+
*/
|
|
1374
|
+
function assocIndexOf(array, key) {
|
|
1375
|
+
var length = array.length;
|
|
1376
|
+
while (length--) {
|
|
1377
|
+
if (eq_1(array[length][0], key)) {
|
|
1378
|
+
return length;
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
return -1;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
var _assocIndexOf = assocIndexOf;
|
|
1385
|
+
|
|
1386
|
+
/** Used for built-in method references. */
|
|
1387
|
+
var arrayProto = Array.prototype;
|
|
1388
|
+
|
|
1389
|
+
/** Built-in value references. */
|
|
1390
|
+
var splice = arrayProto.splice;
|
|
1391
|
+
|
|
1392
|
+
/**
|
|
1393
|
+
* Removes `key` and its value from the list cache.
|
|
1394
|
+
*
|
|
1395
|
+
* @private
|
|
1396
|
+
* @name delete
|
|
1397
|
+
* @memberOf ListCache
|
|
1398
|
+
* @param {string} key The key of the value to remove.
|
|
1399
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1400
|
+
*/
|
|
1401
|
+
function listCacheDelete(key) {
|
|
1402
|
+
var data = this.__data__,
|
|
1403
|
+
index = _assocIndexOf(data, key);
|
|
1404
|
+
|
|
1405
|
+
if (index < 0) {
|
|
1406
|
+
return false;
|
|
1407
|
+
}
|
|
1408
|
+
var lastIndex = data.length - 1;
|
|
1409
|
+
if (index == lastIndex) {
|
|
1410
|
+
data.pop();
|
|
1411
|
+
} else {
|
|
1412
|
+
splice.call(data, index, 1);
|
|
1413
|
+
}
|
|
1414
|
+
--this.size;
|
|
1415
|
+
return true;
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
var _listCacheDelete = listCacheDelete;
|
|
1419
|
+
|
|
1420
|
+
/**
|
|
1421
|
+
* Gets the list cache value for `key`.
|
|
1422
|
+
*
|
|
1423
|
+
* @private
|
|
1424
|
+
* @name get
|
|
1425
|
+
* @memberOf ListCache
|
|
1426
|
+
* @param {string} key The key of the value to get.
|
|
1427
|
+
* @returns {*} Returns the entry value.
|
|
1428
|
+
*/
|
|
1429
|
+
function listCacheGet(key) {
|
|
1430
|
+
var data = this.__data__,
|
|
1431
|
+
index = _assocIndexOf(data, key);
|
|
1432
|
+
|
|
1433
|
+
return index < 0 ? undefined : data[index][1];
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
var _listCacheGet = listCacheGet;
|
|
1437
|
+
|
|
1438
|
+
/**
|
|
1439
|
+
* Checks if a list cache value for `key` exists.
|
|
1440
|
+
*
|
|
1441
|
+
* @private
|
|
1442
|
+
* @name has
|
|
1443
|
+
* @memberOf ListCache
|
|
1444
|
+
* @param {string} key The key of the entry to check.
|
|
1445
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1446
|
+
*/
|
|
1447
|
+
function listCacheHas(key) {
|
|
1448
|
+
return _assocIndexOf(this.__data__, key) > -1;
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
var _listCacheHas = listCacheHas;
|
|
1452
|
+
|
|
1453
|
+
/**
|
|
1454
|
+
* Sets the list cache `key` to `value`.
|
|
1455
|
+
*
|
|
1456
|
+
* @private
|
|
1457
|
+
* @name set
|
|
1458
|
+
* @memberOf ListCache
|
|
1459
|
+
* @param {string} key The key of the value to set.
|
|
1460
|
+
* @param {*} value The value to set.
|
|
1461
|
+
* @returns {Object} Returns the list cache instance.
|
|
1462
|
+
*/
|
|
1463
|
+
function listCacheSet(key, value) {
|
|
1464
|
+
var data = this.__data__,
|
|
1465
|
+
index = _assocIndexOf(data, key);
|
|
1466
|
+
|
|
1467
|
+
if (index < 0) {
|
|
1468
|
+
++this.size;
|
|
1469
|
+
data.push([key, value]);
|
|
1470
|
+
} else {
|
|
1471
|
+
data[index][1] = value;
|
|
1472
|
+
}
|
|
1473
|
+
return this;
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
var _listCacheSet = listCacheSet;
|
|
1477
|
+
|
|
1478
|
+
/**
|
|
1479
|
+
* Creates an list cache object.
|
|
1480
|
+
*
|
|
1481
|
+
* @private
|
|
1482
|
+
* @constructor
|
|
1483
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
1484
|
+
*/
|
|
1485
|
+
function ListCache(entries) {
|
|
1486
|
+
var index = -1,
|
|
1487
|
+
length = entries == null ? 0 : entries.length;
|
|
1488
|
+
|
|
1489
|
+
this.clear();
|
|
1490
|
+
while (++index < length) {
|
|
1491
|
+
var entry = entries[index];
|
|
1492
|
+
this.set(entry[0], entry[1]);
|
|
1493
|
+
}
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
// Add methods to `ListCache`.
|
|
1497
|
+
ListCache.prototype.clear = _listCacheClear;
|
|
1498
|
+
ListCache.prototype['delete'] = _listCacheDelete;
|
|
1499
|
+
ListCache.prototype.get = _listCacheGet;
|
|
1500
|
+
ListCache.prototype.has = _listCacheHas;
|
|
1501
|
+
ListCache.prototype.set = _listCacheSet;
|
|
1502
|
+
|
|
1503
|
+
var _ListCache = ListCache;
|
|
1504
|
+
|
|
1505
|
+
/* Built-in method references that are verified to be native. */
|
|
1506
|
+
var Map = _getNative(_root, 'Map');
|
|
1507
|
+
|
|
1508
|
+
var _Map = Map;
|
|
1509
|
+
|
|
1510
|
+
/**
|
|
1511
|
+
* Removes all key-value entries from the map.
|
|
1512
|
+
*
|
|
1513
|
+
* @private
|
|
1514
|
+
* @name clear
|
|
1515
|
+
* @memberOf MapCache
|
|
1516
|
+
*/
|
|
1517
|
+
function mapCacheClear() {
|
|
1518
|
+
this.size = 0;
|
|
1519
|
+
this.__data__ = {
|
|
1520
|
+
'hash': new _Hash,
|
|
1521
|
+
'map': new (_Map || _ListCache),
|
|
1522
|
+
'string': new _Hash
|
|
1523
|
+
};
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
var _mapCacheClear = mapCacheClear;
|
|
1527
|
+
|
|
1528
|
+
/**
|
|
1529
|
+
* Checks if `value` is suitable for use as unique object key.
|
|
1530
|
+
*
|
|
1531
|
+
* @private
|
|
1532
|
+
* @param {*} value The value to check.
|
|
1533
|
+
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
1534
|
+
*/
|
|
1535
|
+
function isKeyable(value) {
|
|
1536
|
+
var type = typeof value;
|
|
1537
|
+
return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
|
|
1538
|
+
? (value !== '__proto__')
|
|
1539
|
+
: (value === null);
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
var _isKeyable = isKeyable;
|
|
1543
|
+
|
|
1544
|
+
/**
|
|
1545
|
+
* Gets the data for `map`.
|
|
1546
|
+
*
|
|
1547
|
+
* @private
|
|
1548
|
+
* @param {Object} map The map to query.
|
|
1549
|
+
* @param {string} key The reference key.
|
|
1550
|
+
* @returns {*} Returns the map data.
|
|
1551
|
+
*/
|
|
1552
|
+
function getMapData(map, key) {
|
|
1553
|
+
var data = map.__data__;
|
|
1554
|
+
return _isKeyable(key)
|
|
1555
|
+
? data[typeof key == 'string' ? 'string' : 'hash']
|
|
1556
|
+
: data.map;
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
var _getMapData = getMapData;
|
|
1560
|
+
|
|
1561
|
+
/**
|
|
1562
|
+
* Removes `key` and its value from the map.
|
|
1563
|
+
*
|
|
1564
|
+
* @private
|
|
1565
|
+
* @name delete
|
|
1566
|
+
* @memberOf MapCache
|
|
1567
|
+
* @param {string} key The key of the value to remove.
|
|
1568
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1569
|
+
*/
|
|
1570
|
+
function mapCacheDelete(key) {
|
|
1571
|
+
var result = _getMapData(this, key)['delete'](key);
|
|
1572
|
+
this.size -= result ? 1 : 0;
|
|
1573
|
+
return result;
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
var _mapCacheDelete = mapCacheDelete;
|
|
1577
|
+
|
|
1578
|
+
/**
|
|
1579
|
+
* Gets the map value for `key`.
|
|
1580
|
+
*
|
|
1581
|
+
* @private
|
|
1582
|
+
* @name get
|
|
1583
|
+
* @memberOf MapCache
|
|
1584
|
+
* @param {string} key The key of the value to get.
|
|
1585
|
+
* @returns {*} Returns the entry value.
|
|
1586
|
+
*/
|
|
1587
|
+
function mapCacheGet(key) {
|
|
1588
|
+
return _getMapData(this, key).get(key);
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
var _mapCacheGet = mapCacheGet;
|
|
1592
|
+
|
|
1593
|
+
/**
|
|
1594
|
+
* Checks if a map value for `key` exists.
|
|
1595
|
+
*
|
|
1596
|
+
* @private
|
|
1597
|
+
* @name has
|
|
1598
|
+
* @memberOf MapCache
|
|
1599
|
+
* @param {string} key The key of the entry to check.
|
|
1600
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1601
|
+
*/
|
|
1602
|
+
function mapCacheHas(key) {
|
|
1603
|
+
return _getMapData(this, key).has(key);
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
var _mapCacheHas = mapCacheHas;
|
|
1607
|
+
|
|
1608
|
+
/**
|
|
1609
|
+
* Sets the map `key` to `value`.
|
|
1610
|
+
*
|
|
1611
|
+
* @private
|
|
1612
|
+
* @name set
|
|
1613
|
+
* @memberOf MapCache
|
|
1614
|
+
* @param {string} key The key of the value to set.
|
|
1615
|
+
* @param {*} value The value to set.
|
|
1616
|
+
* @returns {Object} Returns the map cache instance.
|
|
1617
|
+
*/
|
|
1618
|
+
function mapCacheSet(key, value) {
|
|
1619
|
+
var data = _getMapData(this, key),
|
|
1620
|
+
size = data.size;
|
|
1621
|
+
|
|
1622
|
+
data.set(key, value);
|
|
1623
|
+
this.size += data.size == size ? 0 : 1;
|
|
1624
|
+
return this;
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
var _mapCacheSet = mapCacheSet;
|
|
1628
|
+
|
|
1629
|
+
/**
|
|
1630
|
+
* Creates a map cache object to store key-value pairs.
|
|
1631
|
+
*
|
|
1632
|
+
* @private
|
|
1633
|
+
* @constructor
|
|
1634
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
1635
|
+
*/
|
|
1636
|
+
function MapCache(entries) {
|
|
1637
|
+
var index = -1,
|
|
1638
|
+
length = entries == null ? 0 : entries.length;
|
|
1639
|
+
|
|
1640
|
+
this.clear();
|
|
1641
|
+
while (++index < length) {
|
|
1642
|
+
var entry = entries[index];
|
|
1643
|
+
this.set(entry[0], entry[1]);
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1647
|
+
// Add methods to `MapCache`.
|
|
1648
|
+
MapCache.prototype.clear = _mapCacheClear;
|
|
1649
|
+
MapCache.prototype['delete'] = _mapCacheDelete;
|
|
1650
|
+
MapCache.prototype.get = _mapCacheGet;
|
|
1651
|
+
MapCache.prototype.has = _mapCacheHas;
|
|
1652
|
+
MapCache.prototype.set = _mapCacheSet;
|
|
1653
|
+
|
|
1654
|
+
var _MapCache = MapCache;
|
|
1655
|
+
|
|
1656
|
+
/** Error message constants. */
|
|
1657
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* Creates a function that memoizes the result of `func`. If `resolver` is
|
|
1661
|
+
* provided, it determines the cache key for storing the result based on the
|
|
1662
|
+
* arguments provided to the memoized function. By default, the first argument
|
|
1663
|
+
* provided to the memoized function is used as the map cache key. The `func`
|
|
1664
|
+
* is invoked with the `this` binding of the memoized function.
|
|
1665
|
+
*
|
|
1666
|
+
* **Note:** The cache is exposed as the `cache` property on the memoized
|
|
1667
|
+
* function. Its creation may be customized by replacing the `_.memoize.Cache`
|
|
1668
|
+
* constructor with one whose instances implement the
|
|
1669
|
+
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
|
|
1670
|
+
* method interface of `clear`, `delete`, `get`, `has`, and `set`.
|
|
1671
|
+
*
|
|
1672
|
+
* @static
|
|
1673
|
+
* @memberOf _
|
|
1674
|
+
* @since 0.1.0
|
|
1675
|
+
* @category Function
|
|
1676
|
+
* @param {Function} func The function to have its output memoized.
|
|
1677
|
+
* @param {Function} [resolver] The function to resolve the cache key.
|
|
1678
|
+
* @returns {Function} Returns the new memoized function.
|
|
1679
|
+
* @example
|
|
1680
|
+
*
|
|
1681
|
+
* var object = { 'a': 1, 'b': 2 };
|
|
1682
|
+
* var other = { 'c': 3, 'd': 4 };
|
|
1683
|
+
*
|
|
1684
|
+
* var values = _.memoize(_.values);
|
|
1685
|
+
* values(object);
|
|
1686
|
+
* // => [1, 2]
|
|
1687
|
+
*
|
|
1688
|
+
* values(other);
|
|
1689
|
+
* // => [3, 4]
|
|
1690
|
+
*
|
|
1691
|
+
* object.a = 2;
|
|
1692
|
+
* values(object);
|
|
1693
|
+
* // => [1, 2]
|
|
1694
|
+
*
|
|
1695
|
+
* // Modify the result cache.
|
|
1696
|
+
* values.cache.set(object, ['a', 'b']);
|
|
1697
|
+
* values(object);
|
|
1698
|
+
* // => ['a', 'b']
|
|
1699
|
+
*
|
|
1700
|
+
* // Replace `_.memoize.Cache`.
|
|
1701
|
+
* _.memoize.Cache = WeakMap;
|
|
1702
|
+
*/
|
|
1703
|
+
function memoize(func, resolver) {
|
|
1704
|
+
if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
|
|
1705
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
1706
|
+
}
|
|
1707
|
+
var memoized = function() {
|
|
1708
|
+
var args = arguments,
|
|
1709
|
+
key = resolver ? resolver.apply(this, args) : args[0],
|
|
1710
|
+
cache = memoized.cache;
|
|
1711
|
+
|
|
1712
|
+
if (cache.has(key)) {
|
|
1713
|
+
return cache.get(key);
|
|
1714
|
+
}
|
|
1715
|
+
var result = func.apply(this, args);
|
|
1716
|
+
memoized.cache = cache.set(key, result) || cache;
|
|
1717
|
+
return result;
|
|
1718
|
+
};
|
|
1719
|
+
memoized.cache = new (memoize.Cache || _MapCache);
|
|
1720
|
+
return memoized;
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
// Expose `MapCache`.
|
|
1724
|
+
memoize.Cache = _MapCache;
|
|
1725
|
+
|
|
1726
|
+
var memoize_1 = memoize;
|
|
1727
|
+
|
|
1728
|
+
/** Used as the maximum memoize cache size. */
|
|
1729
|
+
var MAX_MEMOIZE_SIZE = 500;
|
|
1730
|
+
|
|
1731
|
+
/**
|
|
1732
|
+
* A specialized version of `_.memoize` which clears the memoized function's
|
|
1733
|
+
* cache when it exceeds `MAX_MEMOIZE_SIZE`.
|
|
1734
|
+
*
|
|
1735
|
+
* @private
|
|
1736
|
+
* @param {Function} func The function to have its output memoized.
|
|
1737
|
+
* @returns {Function} Returns the new memoized function.
|
|
1738
|
+
*/
|
|
1739
|
+
function memoizeCapped(func) {
|
|
1740
|
+
var result = memoize_1(func, function(key) {
|
|
1741
|
+
if (cache.size === MAX_MEMOIZE_SIZE) {
|
|
1742
|
+
cache.clear();
|
|
1743
|
+
}
|
|
1744
|
+
return key;
|
|
1745
|
+
});
|
|
1746
|
+
|
|
1747
|
+
var cache = result.cache;
|
|
1748
|
+
return result;
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
var _memoizeCapped = memoizeCapped;
|
|
1752
|
+
|
|
1753
|
+
/** Used to match property names within property paths. */
|
|
1754
|
+
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
1755
|
+
|
|
1756
|
+
/** Used to match backslashes in property paths. */
|
|
1757
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
1758
|
+
|
|
1759
|
+
/**
|
|
1760
|
+
* Converts `string` to a property path array.
|
|
1761
|
+
*
|
|
1762
|
+
* @private
|
|
1763
|
+
* @param {string} string The string to convert.
|
|
1764
|
+
* @returns {Array} Returns the property path array.
|
|
1765
|
+
*/
|
|
1766
|
+
var stringToPath = _memoizeCapped(function(string) {
|
|
1767
|
+
var result = [];
|
|
1768
|
+
if (string.charCodeAt(0) === 46 /* . */) {
|
|
1769
|
+
result.push('');
|
|
1770
|
+
}
|
|
1771
|
+
string.replace(rePropName, function(match, number, quote, subString) {
|
|
1772
|
+
result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
|
|
1773
|
+
});
|
|
1774
|
+
return result;
|
|
1775
|
+
});
|
|
1776
|
+
|
|
1777
|
+
var _stringToPath = stringToPath;
|
|
1778
|
+
|
|
1779
|
+
/**
|
|
1780
|
+
* A specialized version of `_.map` for arrays without support for iteratee
|
|
1781
|
+
* shorthands.
|
|
1782
|
+
*
|
|
1783
|
+
* @private
|
|
1784
|
+
* @param {Array} [array] The array to iterate over.
|
|
1785
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
1786
|
+
* @returns {Array} Returns the new mapped array.
|
|
1787
|
+
*/
|
|
1788
|
+
function arrayMap(array, iteratee) {
|
|
1789
|
+
var index = -1,
|
|
1790
|
+
length = array == null ? 0 : array.length,
|
|
1791
|
+
result = Array(length);
|
|
1792
|
+
|
|
1793
|
+
while (++index < length) {
|
|
1794
|
+
result[index] = iteratee(array[index], index, array);
|
|
1795
|
+
}
|
|
1796
|
+
return result;
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1799
|
+
var _arrayMap = arrayMap;
|
|
1800
|
+
|
|
1801
|
+
/** Used as references for various `Number` constants. */
|
|
1802
|
+
var INFINITY = 1 / 0;
|
|
1803
|
+
|
|
1804
|
+
/** Used to convert symbols to primitives and strings. */
|
|
1805
|
+
var symbolProto = _Symbol ? _Symbol.prototype : undefined,
|
|
1806
|
+
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
1807
|
+
|
|
1808
|
+
/**
|
|
1809
|
+
* The base implementation of `_.toString` which doesn't convert nullish
|
|
1810
|
+
* values to empty strings.
|
|
1811
|
+
*
|
|
1812
|
+
* @private
|
|
1813
|
+
* @param {*} value The value to process.
|
|
1814
|
+
* @returns {string} Returns the string.
|
|
1815
|
+
*/
|
|
1816
|
+
function baseToString(value) {
|
|
1817
|
+
// Exit early for strings to avoid a performance hit in some environments.
|
|
1818
|
+
if (typeof value == 'string') {
|
|
1819
|
+
return value;
|
|
1820
|
+
}
|
|
1821
|
+
if (isArray_1(value)) {
|
|
1822
|
+
// Recursively convert values (susceptible to call stack limits).
|
|
1823
|
+
return _arrayMap(value, baseToString) + '';
|
|
1824
|
+
}
|
|
1825
|
+
if (isSymbol_1(value)) {
|
|
1826
|
+
return symbolToString ? symbolToString.call(value) : '';
|
|
1827
|
+
}
|
|
1828
|
+
var result = (value + '');
|
|
1829
|
+
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
var _baseToString = baseToString;
|
|
1833
|
+
|
|
1834
|
+
/**
|
|
1835
|
+
* Converts `value` to a string. An empty string is returned for `null`
|
|
1836
|
+
* and `undefined` values. The sign of `-0` is preserved.
|
|
1837
|
+
*
|
|
1838
|
+
* @static
|
|
1839
|
+
* @memberOf _
|
|
1840
|
+
* @since 4.0.0
|
|
1841
|
+
* @category Lang
|
|
1842
|
+
* @param {*} value The value to convert.
|
|
1843
|
+
* @returns {string} Returns the converted string.
|
|
1844
|
+
* @example
|
|
1845
|
+
*
|
|
1846
|
+
* _.toString(null);
|
|
1847
|
+
* // => ''
|
|
1848
|
+
*
|
|
1849
|
+
* _.toString(-0);
|
|
1850
|
+
* // => '-0'
|
|
1851
|
+
*
|
|
1852
|
+
* _.toString([1, 2, 3]);
|
|
1853
|
+
* // => '1,2,3'
|
|
1854
|
+
*/
|
|
1855
|
+
function toString(value) {
|
|
1856
|
+
return value == null ? '' : _baseToString(value);
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
var toString_1 = toString;
|
|
1860
|
+
|
|
1861
|
+
/**
|
|
1862
|
+
* Casts `value` to a path array if it's not one.
|
|
1863
|
+
*
|
|
1864
|
+
* @private
|
|
1865
|
+
* @param {*} value The value to inspect.
|
|
1866
|
+
* @param {Object} [object] The object to query keys on.
|
|
1867
|
+
* @returns {Array} Returns the cast property path array.
|
|
1868
|
+
*/
|
|
1869
|
+
function castPath(value, object) {
|
|
1870
|
+
if (isArray_1(value)) {
|
|
1871
|
+
return value;
|
|
1872
|
+
}
|
|
1873
|
+
return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1876
|
+
var _castPath = castPath;
|
|
1877
|
+
|
|
1878
|
+
/** Used as references for various `Number` constants. */
|
|
1879
|
+
var INFINITY$1 = 1 / 0;
|
|
1880
|
+
|
|
1881
|
+
/**
|
|
1882
|
+
* Converts `value` to a string key if it's not a string or symbol.
|
|
1883
|
+
*
|
|
1884
|
+
* @private
|
|
1885
|
+
* @param {*} value The value to inspect.
|
|
1886
|
+
* @returns {string|symbol} Returns the key.
|
|
1887
|
+
*/
|
|
1888
|
+
function toKey(value) {
|
|
1889
|
+
if (typeof value == 'string' || isSymbol_1(value)) {
|
|
1890
|
+
return value;
|
|
1891
|
+
}
|
|
1892
|
+
var result = (value + '');
|
|
1893
|
+
return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1896
|
+
var _toKey = toKey;
|
|
1897
|
+
|
|
1898
|
+
/**
|
|
1899
|
+
* The base implementation of `_.get` without support for default values.
|
|
1900
|
+
*
|
|
1901
|
+
* @private
|
|
1902
|
+
* @param {Object} object The object to query.
|
|
1903
|
+
* @param {Array|string} path The path of the property to get.
|
|
1904
|
+
* @returns {*} Returns the resolved value.
|
|
1905
|
+
*/
|
|
1906
|
+
function baseGet(object, path) {
|
|
1907
|
+
path = _castPath(path, object);
|
|
1908
|
+
|
|
1909
|
+
var index = 0,
|
|
1910
|
+
length = path.length;
|
|
1911
|
+
|
|
1912
|
+
while (object != null && index < length) {
|
|
1913
|
+
object = object[_toKey(path[index++])];
|
|
1914
|
+
}
|
|
1915
|
+
return (index && index == length) ? object : undefined;
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1918
|
+
var _baseGet = baseGet;
|
|
1919
|
+
|
|
1920
|
+
/**
|
|
1921
|
+
* Gets the value at `path` of `object`. If the resolved value is
|
|
1922
|
+
* `undefined`, the `defaultValue` is returned in its place.
|
|
1923
|
+
*
|
|
1924
|
+
* @static
|
|
1925
|
+
* @memberOf _
|
|
1926
|
+
* @since 3.7.0
|
|
1927
|
+
* @category Object
|
|
1928
|
+
* @param {Object} object The object to query.
|
|
1929
|
+
* @param {Array|string} path The path of the property to get.
|
|
1930
|
+
* @param {*} [defaultValue] The value returned for `undefined` resolved values.
|
|
1931
|
+
* @returns {*} Returns the resolved value.
|
|
1932
|
+
* @example
|
|
1933
|
+
*
|
|
1934
|
+
* var object = { 'a': [{ 'b': { 'c': 3 } }] };
|
|
1935
|
+
*
|
|
1936
|
+
* _.get(object, 'a[0].b.c');
|
|
1937
|
+
* // => 3
|
|
1938
|
+
*
|
|
1939
|
+
* _.get(object, ['a', '0', 'b', 'c']);
|
|
1940
|
+
* // => 3
|
|
1941
|
+
*
|
|
1942
|
+
* _.get(object, 'a.b.c', 'default');
|
|
1943
|
+
* // => 'default'
|
|
1944
|
+
*/
|
|
1945
|
+
function get$1(object, path, defaultValue) {
|
|
1946
|
+
var result = object == null ? undefined : _baseGet(object, path);
|
|
1947
|
+
return result === undefined ? defaultValue : result;
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1950
|
+
var get_1 = get$1;
|
|
755
1951
|
|
|
756
1952
|
var DeckQueue = function (_React$Component) {
|
|
757
1953
|
inherits(DeckQueue, _React$Component);
|
|
@@ -797,7 +1993,6 @@ var DeckQueue = function (_React$Component) {
|
|
|
797
1993
|
|
|
798
1994
|
var params = { from: from, to: to };
|
|
799
1995
|
var queryUpdated = query.replace('$from', params.from).replace('$to', params.to);
|
|
800
|
-
// const query = '*[_type == "article" && defined(title) && defined(thumbnail)][$from...$to] { title, summary, thumbnail { asset-> }, url }'
|
|
801
1996
|
|
|
802
1997
|
if (_this.pointer && _this.pointerArray) {
|
|
803
1998
|
var pointer = _this.pointer;
|
|
@@ -842,12 +2037,11 @@ var DeckQueue = function (_React$Component) {
|
|
|
842
2037
|
var mode = variant && variant === 'right' ? 'row-reverse' : 'row';
|
|
843
2038
|
var lgVar = Math.floor(12 / columns);
|
|
844
2039
|
|
|
845
|
-
console.log(this.state.from, this.state.to);
|
|
846
|
-
|
|
847
2040
|
return React__default.createElement(
|
|
848
2041
|
Row,
|
|
849
2042
|
null,
|
|
850
2043
|
this.state.data && this.state.data.map(function (row, index) {
|
|
2044
|
+
var thumbnailURL = get_1(row, 'thumbnail.asset.url', _this2.props.defaultImage);
|
|
851
2045
|
return React__default.createElement(
|
|
852
2046
|
Col,
|
|
853
2047
|
{ md: 12, lg: lgVar, style: { display: 'flex', flex: '1 0 auto' } },
|
|
@@ -866,7 +2060,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
866
2060
|
React__default.createElement(
|
|
867
2061
|
Col,
|
|
868
2062
|
{ md: 12, lg: 4 },
|
|
869
|
-
React__default.createElement(Card.Img, { variant: 'top', src:
|
|
2063
|
+
React__default.createElement(Card.Img, { variant: 'top', src: thumbnailURL })
|
|
870
2064
|
),
|
|
871
2065
|
React__default.createElement(
|
|
872
2066
|
Col,
|
|
@@ -907,7 +2101,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
907
2101
|
|
|
908
2102
|
|
|
909
2103
|
return React__default.createElement(
|
|
910
|
-
'
|
|
2104
|
+
'div',
|
|
911
2105
|
{ className: 'contentDeck' },
|
|
912
2106
|
autoScroll ? React__default.createElement(
|
|
913
2107
|
InfiniteScroll,
|
|
@@ -979,7 +2173,8 @@ var ThumbnailCard = function ThumbnailCard(_ref) {
|
|
|
979
2173
|
var TaxonomyCard = function TaxonomyCard(props) {
|
|
980
2174
|
var columns = props.columns,
|
|
981
2175
|
variant = props.variant,
|
|
982
|
-
data = props.dataRecord
|
|
2176
|
+
data = props.dataRecord,
|
|
2177
|
+
defaultImage = props.defaultImage;
|
|
983
2178
|
|
|
984
2179
|
|
|
985
2180
|
var mode = variant && variant === 'bottom' ? 'column-reverse' : 'column';
|
|
@@ -1001,6 +2196,7 @@ var TaxonomyCard = function TaxonomyCard(props) {
|
|
|
1001
2196
|
} else {
|
|
1002
2197
|
lgVar = 6;
|
|
1003
2198
|
}
|
|
2199
|
+
var thumbnailURL = get_1(row, 'thumbnail.asset.url', defaultImage);
|
|
1004
2200
|
|
|
1005
2201
|
return React__default.createElement(
|
|
1006
2202
|
Col,
|
|
@@ -1012,15 +2208,37 @@ var TaxonomyCard = function TaxonomyCard(props) {
|
|
|
1012
2208
|
Card.Body,
|
|
1013
2209
|
null,
|
|
1014
2210
|
React__default.createElement(
|
|
1015
|
-
|
|
1016
|
-
|
|
2211
|
+
Row,
|
|
2212
|
+
null,
|
|
2213
|
+
thumbnailURL && React__default.createElement(
|
|
2214
|
+
Col,
|
|
2215
|
+
null,
|
|
2216
|
+
React__default.createElement(Card.Img, { variant: 'top', src: thumbnailURL })
|
|
2217
|
+
),
|
|
1017
2218
|
React__default.createElement(
|
|
1018
|
-
|
|
2219
|
+
Col,
|
|
1019
2220
|
null,
|
|
1020
|
-
React__default.createElement(
|
|
2221
|
+
row.url ? React__default.createElement(
|
|
2222
|
+
Link,
|
|
2223
|
+
{ href: row.url, as: row.url },
|
|
2224
|
+
React__default.createElement(
|
|
2225
|
+
'a',
|
|
2226
|
+
null,
|
|
2227
|
+
React__default.createElement(
|
|
2228
|
+
Card.Title,
|
|
2229
|
+
null,
|
|
2230
|
+
row.name
|
|
2231
|
+
)
|
|
2232
|
+
)
|
|
2233
|
+
) : React__default.createElement(
|
|
1021
2234
|
Card.Title,
|
|
1022
2235
|
null,
|
|
1023
2236
|
row.name
|
|
2237
|
+
),
|
|
2238
|
+
React__default.createElement(
|
|
2239
|
+
Card.Text,
|
|
2240
|
+
null,
|
|
2241
|
+
row.summary
|
|
1024
2242
|
)
|
|
1025
2243
|
)
|
|
1026
2244
|
)
|
|
@@ -1109,7 +2327,7 @@ var LeftNav = function LeftNav(props) {
|
|
|
1109
2327
|
row.subQuery && row.subQuery.map(function (subRow, subIndex) {
|
|
1110
2328
|
if (subIndex === 0) {
|
|
1111
2329
|
return React__default.createElement(
|
|
1112
|
-
|
|
2330
|
+
React__default.Fragment,
|
|
1113
2331
|
{ key: subIndex },
|
|
1114
2332
|
React__default.createElement(
|
|
1115
2333
|
ListGroup.Item,
|
|
@@ -1132,7 +2350,7 @@ var LeftNav = function LeftNav(props) {
|
|
|
1132
2350
|
);
|
|
1133
2351
|
} else {
|
|
1134
2352
|
return React__default.createElement(
|
|
1135
|
-
|
|
2353
|
+
React__default.Fragment,
|
|
1136
2354
|
{ key: subIndex },
|
|
1137
2355
|
React__default.createElement(
|
|
1138
2356
|
ListGroup.Item,
|
|
@@ -1737,8 +2955,7 @@ var Search$1 = router.withRouter(Search);
|
|
|
1737
2955
|
|
|
1738
2956
|
var NavDvm = function NavDvm(props) {
|
|
1739
2957
|
var logo = props.logo,
|
|
1740
|
-
dataObject = props.dataObject
|
|
1741
|
-
subNavHeads = props.subNavHeads;
|
|
2958
|
+
dataObject = props.dataObject;
|
|
1742
2959
|
|
|
1743
2960
|
|
|
1744
2961
|
return React__default.createElement(
|
|
@@ -1746,53 +2963,34 @@ var NavDvm = function NavDvm(props) {
|
|
|
1746
2963
|
null,
|
|
1747
2964
|
React__default.createElement(
|
|
1748
2965
|
Navbar,
|
|
1749
|
-
{ expand: 'md'
|
|
2966
|
+
{ expand: 'md' },
|
|
1750
2967
|
React__default.createElement(
|
|
1751
2968
|
Container,
|
|
1752
|
-
|
|
2969
|
+
null,
|
|
2970
|
+
React__default.createElement(Nav, { className: 'justify-content-start leftHeader' }),
|
|
1753
2971
|
React__default.createElement(
|
|
1754
|
-
|
|
1755
|
-
{ className: '
|
|
2972
|
+
Nav,
|
|
2973
|
+
{ className: 'justify-content-center', style: { margin: '0 auto' } },
|
|
1756
2974
|
React__default.createElement(
|
|
1757
|
-
|
|
1758
|
-
|
|
2975
|
+
Nav.Item,
|
|
2976
|
+
null,
|
|
1759
2977
|
React__default.createElement(
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
React__default.createElement(
|
|
2978
|
+
Link,
|
|
2979
|
+
{ href: '/' },
|
|
2980
|
+
React__default.createElement(
|
|
2981
|
+
'a',
|
|
2982
|
+
null,
|
|
2983
|
+
React__default.createElement('img', { src: logo, style: { height: '55px' } })
|
|
2984
|
+
)
|
|
1763
2985
|
)
|
|
1764
|
-
),
|
|
1765
|
-
React__default.createElement(
|
|
1766
|
-
'div',
|
|
1767
|
-
{ className: ' ml-4 d-flex align-items-center' },
|
|
1768
|
-
React__default.createElement(Search$1, { btnText: 'Search' })
|
|
1769
2986
|
)
|
|
1770
2987
|
),
|
|
1771
|
-
React__default.createElement(
|
|
1772
|
-
'div',
|
|
1773
|
-
{ className: 'login-right-wrapper w-50 my-3', style: { background: 'linear-gradient(to right,#104676,#01ABB5)' } },
|
|
1774
|
-
React__default.createElement(
|
|
1775
|
-
'div',
|
|
1776
|
-
{ className: 'row' },
|
|
1777
|
-
subNavHeads && subNavHeads.map(function (item, index) {
|
|
1778
|
-
return React__default.createElement(
|
|
1779
|
-
'div',
|
|
1780
|
-
{ key: index, className: 'col-3 py-1', style: { fontSize: '12px' } },
|
|
1781
|
-
React__default.createElement(
|
|
1782
|
-
'span',
|
|
1783
|
-
{ style: { color: '#fff' } },
|
|
1784
|
-
item.name,
|
|
1785
|
-
' '
|
|
1786
|
-
)
|
|
1787
|
-
);
|
|
1788
|
-
})
|
|
1789
|
-
)
|
|
1790
|
-
)
|
|
2988
|
+
React__default.createElement(Nav, { className: 'justify-content-end rightHeader' })
|
|
1791
2989
|
)
|
|
1792
2990
|
),
|
|
1793
2991
|
React__default.createElement(
|
|
1794
2992
|
Navbar,
|
|
1795
|
-
{ variant: 'dark',
|
|
2993
|
+
{ variant: 'dark', expand: 'lg', bg: 'primary' },
|
|
1796
2994
|
React__default.createElement(
|
|
1797
2995
|
Container,
|
|
1798
2996
|
null,
|
|
@@ -1814,10 +3012,10 @@ var NavDvm = function NavDvm(props) {
|
|
|
1814
3012
|
} else {
|
|
1815
3013
|
return React__default.createElement(
|
|
1816
3014
|
Link,
|
|
1817
|
-
{ href: ddRow.url },
|
|
3015
|
+
{ key: subIndex, href: ddRow.url || '#' },
|
|
1818
3016
|
React__default.createElement(
|
|
1819
3017
|
'a',
|
|
1820
|
-
{
|
|
3018
|
+
{ className: 'dropdown-item' },
|
|
1821
3019
|
ddRow.name
|
|
1822
3020
|
)
|
|
1823
3021
|
);
|
|
@@ -1825,34 +3023,27 @@ var NavDvm = function NavDvm(props) {
|
|
|
1825
3023
|
})
|
|
1826
3024
|
);
|
|
1827
3025
|
} else {
|
|
3026
|
+
// Link default
|
|
3027
|
+
// return <Nav.Link href={row.url} key={index}>{row.name}</Nav.Link>
|
|
1828
3028
|
return React__default.createElement(
|
|
1829
3029
|
Link,
|
|
1830
|
-
{ href: row.url },
|
|
3030
|
+
{ key: index, href: row.url },
|
|
1831
3031
|
React__default.createElement(
|
|
1832
3032
|
'a',
|
|
1833
|
-
{
|
|
3033
|
+
{ className: 'nav-link' },
|
|
1834
3034
|
row.name
|
|
1835
3035
|
)
|
|
1836
3036
|
);
|
|
1837
3037
|
}
|
|
1838
3038
|
})
|
|
1839
|
-
)
|
|
3039
|
+
),
|
|
3040
|
+
React__default.createElement(Search$1, null)
|
|
1840
3041
|
)
|
|
1841
3042
|
)
|
|
1842
3043
|
)
|
|
1843
3044
|
);
|
|
1844
3045
|
};
|
|
1845
3046
|
|
|
1846
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
1847
|
-
|
|
1848
|
-
function unwrapExports (x) {
|
|
1849
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
1850
|
-
}
|
|
1851
|
-
|
|
1852
|
-
function createCommonjsModule(fn, module) {
|
|
1853
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
1854
|
-
}
|
|
1855
|
-
|
|
1856
3047
|
var domain;
|
|
1857
3048
|
|
|
1858
3049
|
// This constructor is used to store event handlers. Instantiating this is
|
|
@@ -3643,20 +4834,23 @@ var FigureComponent = function FigureComponent(_ref) {
|
|
|
3643
4834
|
var caption = _ref.caption,
|
|
3644
4835
|
asset = _ref.asset;
|
|
3645
4836
|
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
React__default.createElement(reactBootstrap.Figure.Image, { alt: asset ? asset.originalFilename : '', src: asset.url ? asset.url : '/placeholder.jpg' }),
|
|
3653
|
-
caption && React__default.createElement(
|
|
3654
|
-
reactBootstrap.Figure.Caption,
|
|
4837
|
+
if (asset && asset.url) {
|
|
4838
|
+
return React__default.createElement(
|
|
4839
|
+
'div',
|
|
4840
|
+
{ style: { textAlign: 'center', marginTop: '1em', marginBottom: '1em' } },
|
|
4841
|
+
React__default.createElement(
|
|
4842
|
+
reactBootstrap.Figure,
|
|
3655
4843
|
null,
|
|
3656
|
-
|
|
4844
|
+
React__default.createElement(reactBootstrap.Figure.Image, { alt: asset ? asset.originalFilename : '', src: asset.url }),
|
|
4845
|
+
caption && React__default.createElement(
|
|
4846
|
+
reactBootstrap.Figure.Caption,
|
|
4847
|
+
null,
|
|
4848
|
+
caption
|
|
4849
|
+
)
|
|
3657
4850
|
)
|
|
3658
|
-
)
|
|
3659
|
-
|
|
4851
|
+
);
|
|
4852
|
+
}
|
|
4853
|
+
return null;
|
|
3660
4854
|
};
|
|
3661
4855
|
|
|
3662
4856
|
var Slideshow = function Slideshow(_ref) {
|
|
@@ -3728,7 +4922,7 @@ var getYoutubeId = createCommonjsModule(function (module, exports) {
|
|
|
3728
4922
|
}));
|
|
3729
4923
|
});
|
|
3730
4924
|
|
|
3731
|
-
var isArray = Array.isArray;
|
|
4925
|
+
var isArray$1 = Array.isArray;
|
|
3732
4926
|
var keyList = Object.keys;
|
|
3733
4927
|
var hasProp = Object.prototype.hasOwnProperty;
|
|
3734
4928
|
|
|
@@ -3736,8 +4930,8 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
3736
4930
|
if (a === b) return true;
|
|
3737
4931
|
|
|
3738
4932
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
3739
|
-
var arrA = isArray(a)
|
|
3740
|
-
, arrB = isArray(b)
|
|
4933
|
+
var arrA = isArray$1(a)
|
|
4934
|
+
, arrB = isArray$1(b)
|
|
3741
4935
|
, i
|
|
3742
4936
|
, length
|
|
3743
4937
|
, key;
|
|
@@ -4819,7 +6013,7 @@ function format(f) {
|
|
|
4819
6013
|
}
|
|
4820
6014
|
});
|
|
4821
6015
|
for (var x = args[i]; i < len; x = args[++i]) {
|
|
4822
|
-
if (isNull(x) || !isObject(x)) {
|
|
6016
|
+
if (isNull(x) || !isObject$1(x)) {
|
|
4823
6017
|
str += ' ' + x;
|
|
4824
6018
|
} else {
|
|
4825
6019
|
str += ' ' + inspect(x);
|
|
@@ -4970,7 +6164,7 @@ function formatValue(ctx, value, recurseTimes) {
|
|
|
4970
6164
|
// Check that value is an object with an inspect function on it
|
|
4971
6165
|
if (ctx.customInspect &&
|
|
4972
6166
|
value &&
|
|
4973
|
-
isFunction(value.inspect) &&
|
|
6167
|
+
isFunction$1(value.inspect) &&
|
|
4974
6168
|
// Filter out the util module, it's inspect function is special
|
|
4975
6169
|
value.inspect !== inspect &&
|
|
4976
6170
|
// Also filter out any prototype objects using the circular check.
|
|
@@ -5005,7 +6199,7 @@ function formatValue(ctx, value, recurseTimes) {
|
|
|
5005
6199
|
|
|
5006
6200
|
// Some type of object without properties can be shortcutted.
|
|
5007
6201
|
if (keys.length === 0) {
|
|
5008
|
-
if (isFunction(value)) {
|
|
6202
|
+
if (isFunction$1(value)) {
|
|
5009
6203
|
var name = value.name ? ': ' + value.name : '';
|
|
5010
6204
|
return ctx.stylize('[Function' + name + ']', 'special');
|
|
5011
6205
|
}
|
|
@@ -5023,13 +6217,13 @@ function formatValue(ctx, value, recurseTimes) {
|
|
|
5023
6217
|
var base = '', array = false, braces = ['{', '}'];
|
|
5024
6218
|
|
|
5025
6219
|
// Make Array say that they are Array
|
|
5026
|
-
if (isArray$
|
|
6220
|
+
if (isArray$2(value)) {
|
|
5027
6221
|
array = true;
|
|
5028
6222
|
braces = ['[', ']'];
|
|
5029
6223
|
}
|
|
5030
6224
|
|
|
5031
6225
|
// Make functions say that they are functions
|
|
5032
|
-
if (isFunction(value)) {
|
|
6226
|
+
if (isFunction$1(value)) {
|
|
5033
6227
|
var n = value.name ? ': ' + value.name : '';
|
|
5034
6228
|
base = ' [Function' + n + ']';
|
|
5035
6229
|
}
|
|
@@ -5105,7 +6299,7 @@ function formatError(value) {
|
|
|
5105
6299
|
function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
|
|
5106
6300
|
var output = [];
|
|
5107
6301
|
for (var i = 0, l = value.length; i < l; ++i) {
|
|
5108
|
-
if (hasOwnProperty(value, String(i))) {
|
|
6302
|
+
if (hasOwnProperty$4(value, String(i))) {
|
|
5109
6303
|
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
|
|
5110
6304
|
String(i), true));
|
|
5111
6305
|
} else {
|
|
@@ -5136,7 +6330,7 @@ function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
|
|
|
5136
6330
|
str = ctx.stylize('[Setter]', 'special');
|
|
5137
6331
|
}
|
|
5138
6332
|
}
|
|
5139
|
-
if (!hasOwnProperty(visibleKeys, key)) {
|
|
6333
|
+
if (!hasOwnProperty$4(visibleKeys, key)) {
|
|
5140
6334
|
name = '[' + key + ']';
|
|
5141
6335
|
}
|
|
5142
6336
|
if (!str) {
|
|
@@ -5202,7 +6396,7 @@ function reduceToSingleString(output, base, braces) {
|
|
|
5202
6396
|
|
|
5203
6397
|
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
5204
6398
|
// because it is fragile and can be easily faked with `Object.create()`.
|
|
5205
|
-
function isArray$
|
|
6399
|
+
function isArray$2(ar) {
|
|
5206
6400
|
return Array.isArray(ar);
|
|
5207
6401
|
}
|
|
5208
6402
|
|
|
@@ -5226,7 +6420,7 @@ function isString(arg) {
|
|
|
5226
6420
|
return typeof arg === 'string';
|
|
5227
6421
|
}
|
|
5228
6422
|
|
|
5229
|
-
function isSymbol(arg) {
|
|
6423
|
+
function isSymbol$1(arg) {
|
|
5230
6424
|
return typeof arg === 'symbol';
|
|
5231
6425
|
}
|
|
5232
6426
|
|
|
@@ -5235,23 +6429,23 @@ function isUndefined(arg) {
|
|
|
5235
6429
|
}
|
|
5236
6430
|
|
|
5237
6431
|
function isRegExp(re) {
|
|
5238
|
-
return isObject(re) && objectToString(re) === '[object RegExp]';
|
|
6432
|
+
return isObject$1(re) && objectToString$1(re) === '[object RegExp]';
|
|
5239
6433
|
}
|
|
5240
6434
|
|
|
5241
|
-
function isObject(arg) {
|
|
6435
|
+
function isObject$1(arg) {
|
|
5242
6436
|
return typeof arg === 'object' && arg !== null;
|
|
5243
6437
|
}
|
|
5244
6438
|
|
|
5245
6439
|
function isDate(d) {
|
|
5246
|
-
return isObject(d) && objectToString(d) === '[object Date]';
|
|
6440
|
+
return isObject$1(d) && objectToString$1(d) === '[object Date]';
|
|
5247
6441
|
}
|
|
5248
6442
|
|
|
5249
6443
|
function isError(e) {
|
|
5250
|
-
return isObject(e) &&
|
|
5251
|
-
(objectToString(e) === '[object Error]' || e instanceof Error);
|
|
6444
|
+
return isObject$1(e) &&
|
|
6445
|
+
(objectToString$1(e) === '[object Error]' || e instanceof Error);
|
|
5252
6446
|
}
|
|
5253
6447
|
|
|
5254
|
-
function isFunction(arg) {
|
|
6448
|
+
function isFunction$1(arg) {
|
|
5255
6449
|
return typeof arg === 'function';
|
|
5256
6450
|
}
|
|
5257
6451
|
|
|
@@ -5268,7 +6462,7 @@ function isBuffer(maybeBuf) {
|
|
|
5268
6462
|
return Buffer.isBuffer(maybeBuf);
|
|
5269
6463
|
}
|
|
5270
6464
|
|
|
5271
|
-
function objectToString(o) {
|
|
6465
|
+
function objectToString$1(o) {
|
|
5272
6466
|
return Object.prototype.toString.call(o);
|
|
5273
6467
|
}
|
|
5274
6468
|
|
|
@@ -5298,7 +6492,7 @@ function log() {
|
|
|
5298
6492
|
|
|
5299
6493
|
function _extend(origin, add) {
|
|
5300
6494
|
// Don't do anything if add isn't an object
|
|
5301
|
-
if (!add || !isObject(add)) return origin;
|
|
6495
|
+
if (!add || !isObject$1(add)) return origin;
|
|
5302
6496
|
|
|
5303
6497
|
var keys = Object.keys(add);
|
|
5304
6498
|
var i = keys.length;
|
|
@@ -5307,7 +6501,7 @@ function _extend(origin, add) {
|
|
|
5307
6501
|
}
|
|
5308
6502
|
return origin;
|
|
5309
6503
|
}
|
|
5310
|
-
function hasOwnProperty(obj, prop) {
|
|
6504
|
+
function hasOwnProperty$4(obj, prop) {
|
|
5311
6505
|
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
5312
6506
|
}
|
|
5313
6507
|
|
|
@@ -5317,19 +6511,19 @@ var util = {
|
|
|
5317
6511
|
log: log,
|
|
5318
6512
|
isBuffer: isBuffer,
|
|
5319
6513
|
isPrimitive: isPrimitive,
|
|
5320
|
-
isFunction: isFunction,
|
|
6514
|
+
isFunction: isFunction$1,
|
|
5321
6515
|
isError: isError,
|
|
5322
6516
|
isDate: isDate,
|
|
5323
|
-
isObject: isObject,
|
|
6517
|
+
isObject: isObject$1,
|
|
5324
6518
|
isRegExp: isRegExp,
|
|
5325
6519
|
isUndefined: isUndefined,
|
|
5326
|
-
isSymbol: isSymbol,
|
|
6520
|
+
isSymbol: isSymbol$1,
|
|
5327
6521
|
isString: isString,
|
|
5328
6522
|
isNumber: isNumber,
|
|
5329
6523
|
isNullOrUndefined: isNullOrUndefined,
|
|
5330
6524
|
isNull: isNull,
|
|
5331
6525
|
isBoolean: isBoolean,
|
|
5332
|
-
isArray: isArray$
|
|
6526
|
+
isArray: isArray$2,
|
|
5333
6527
|
inspect: inspect,
|
|
5334
6528
|
deprecate: deprecate,
|
|
5335
6529
|
format: format,
|
|
@@ -6377,44 +7571,6 @@ var getSerializers = function getSerializers(client) {
|
|
|
6377
7571
|
};
|
|
6378
7572
|
};
|
|
6379
7573
|
|
|
6380
|
-
var searchResult = function searchResult(_ref) {
|
|
6381
|
-
var searchResults = _ref.searchResults,
|
|
6382
|
-
searchTerm = _ref.searchTerm;
|
|
6383
|
-
|
|
6384
|
-
return React__default.createElement(
|
|
6385
|
-
React__default.Fragment,
|
|
6386
|
-
null,
|
|
6387
|
-
React__default.createElement(
|
|
6388
|
-
'p',
|
|
6389
|
-
null,
|
|
6390
|
-
' Results for "',
|
|
6391
|
-
searchTerm,
|
|
6392
|
-
'" '
|
|
6393
|
-
),
|
|
6394
|
-
searchResults && searchResults.length > 0 ? searchResults.map(function (item, index) {
|
|
6395
|
-
return React__default.createElement(
|
|
6396
|
-
'div',
|
|
6397
|
-
{ key: index, className: 'search-result-container' },
|
|
6398
|
-
React__default.createElement(
|
|
6399
|
-
'h5',
|
|
6400
|
-
null,
|
|
6401
|
-
item.title
|
|
6402
|
-
),
|
|
6403
|
-
React__default.createElement(
|
|
6404
|
-
'p',
|
|
6405
|
-
null,
|
|
6406
|
-
item.summary,
|
|
6407
|
-
' '
|
|
6408
|
-
)
|
|
6409
|
-
);
|
|
6410
|
-
}) : React__default.createElement(
|
|
6411
|
-
'div',
|
|
6412
|
-
null,
|
|
6413
|
-
'No results found'
|
|
6414
|
-
)
|
|
6415
|
-
);
|
|
6416
|
-
};
|
|
6417
|
-
|
|
6418
7574
|
exports.DeckContent = DeckContent;
|
|
6419
7575
|
exports.DeckQueue = DeckQueue;
|
|
6420
7576
|
exports.ThumbnailCard = ThumbnailCard;
|
|
@@ -6434,6 +7590,5 @@ exports.AD300x250 = AD300x250;
|
|
|
6434
7590
|
exports.AD300x250x600 = AD300x250x600;
|
|
6435
7591
|
exports.AD728x90 = AD728x90;
|
|
6436
7592
|
exports.getSerializers = getSerializers;
|
|
6437
|
-
exports.SearchResult = searchResult;
|
|
6438
7593
|
exports.Search = Search$1;
|
|
6439
7594
|
//# sourceMappingURL=index.js.map
|