@mjhls/mjh-framework 1.0.28 → 1.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1277 -110
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1276 -110
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/dist/index.es.js
CHANGED
|
@@ -746,6 +746,1202 @@ var DeckContent = function (_React$Component) {
|
|
|
746
746
|
return DeckContent;
|
|
747
747
|
}(React__default.Component);
|
|
748
748
|
|
|
749
|
+
/**
|
|
750
|
+
* Checks if `value` is classified as an `Array` object.
|
|
751
|
+
*
|
|
752
|
+
* @static
|
|
753
|
+
* @memberOf _
|
|
754
|
+
* @since 0.1.0
|
|
755
|
+
* @category Lang
|
|
756
|
+
* @param {*} value The value to check.
|
|
757
|
+
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
758
|
+
* @example
|
|
759
|
+
*
|
|
760
|
+
* _.isArray([1, 2, 3]);
|
|
761
|
+
* // => true
|
|
762
|
+
*
|
|
763
|
+
* _.isArray(document.body.children);
|
|
764
|
+
* // => false
|
|
765
|
+
*
|
|
766
|
+
* _.isArray('abc');
|
|
767
|
+
* // => false
|
|
768
|
+
*
|
|
769
|
+
* _.isArray(_.noop);
|
|
770
|
+
* // => false
|
|
771
|
+
*/
|
|
772
|
+
var isArray = Array.isArray;
|
|
773
|
+
|
|
774
|
+
var isArray_1 = isArray;
|
|
775
|
+
|
|
776
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
777
|
+
|
|
778
|
+
function unwrapExports (x) {
|
|
779
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
function createCommonjsModule(fn, module) {
|
|
783
|
+
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
/** Detect free variable `global` from Node.js. */
|
|
787
|
+
var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
788
|
+
|
|
789
|
+
var _freeGlobal = freeGlobal;
|
|
790
|
+
|
|
791
|
+
/** Detect free variable `self`. */
|
|
792
|
+
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
793
|
+
|
|
794
|
+
/** Used as a reference to the global object. */
|
|
795
|
+
var root = _freeGlobal || freeSelf || Function('return this')();
|
|
796
|
+
|
|
797
|
+
var _root = root;
|
|
798
|
+
|
|
799
|
+
/** Built-in value references. */
|
|
800
|
+
var Symbol$1 = _root.Symbol;
|
|
801
|
+
|
|
802
|
+
var _Symbol = Symbol$1;
|
|
803
|
+
|
|
804
|
+
/** Used for built-in method references. */
|
|
805
|
+
var objectProto = Object.prototype;
|
|
806
|
+
|
|
807
|
+
/** Used to check objects for own properties. */
|
|
808
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* Used to resolve the
|
|
812
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
813
|
+
* of values.
|
|
814
|
+
*/
|
|
815
|
+
var nativeObjectToString = objectProto.toString;
|
|
816
|
+
|
|
817
|
+
/** Built-in value references. */
|
|
818
|
+
var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
822
|
+
*
|
|
823
|
+
* @private
|
|
824
|
+
* @param {*} value The value to query.
|
|
825
|
+
* @returns {string} Returns the raw `toStringTag`.
|
|
826
|
+
*/
|
|
827
|
+
function getRawTag(value) {
|
|
828
|
+
var isOwn = hasOwnProperty.call(value, symToStringTag),
|
|
829
|
+
tag = value[symToStringTag];
|
|
830
|
+
|
|
831
|
+
try {
|
|
832
|
+
value[symToStringTag] = undefined;
|
|
833
|
+
} catch (e) {}
|
|
834
|
+
|
|
835
|
+
var result = nativeObjectToString.call(value);
|
|
836
|
+
{
|
|
837
|
+
if (isOwn) {
|
|
838
|
+
value[symToStringTag] = tag;
|
|
839
|
+
} else {
|
|
840
|
+
delete value[symToStringTag];
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
return result;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
var _getRawTag = getRawTag;
|
|
847
|
+
|
|
848
|
+
/** Used for built-in method references. */
|
|
849
|
+
var objectProto$1 = Object.prototype;
|
|
850
|
+
|
|
851
|
+
/**
|
|
852
|
+
* Used to resolve the
|
|
853
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
854
|
+
* of values.
|
|
855
|
+
*/
|
|
856
|
+
var nativeObjectToString$1 = objectProto$1.toString;
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* Converts `value` to a string using `Object.prototype.toString`.
|
|
860
|
+
*
|
|
861
|
+
* @private
|
|
862
|
+
* @param {*} value The value to convert.
|
|
863
|
+
* @returns {string} Returns the converted string.
|
|
864
|
+
*/
|
|
865
|
+
function objectToString(value) {
|
|
866
|
+
return nativeObjectToString$1.call(value);
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
var _objectToString = objectToString;
|
|
870
|
+
|
|
871
|
+
/** `Object#toString` result references. */
|
|
872
|
+
var nullTag = '[object Null]',
|
|
873
|
+
undefinedTag = '[object Undefined]';
|
|
874
|
+
|
|
875
|
+
/** Built-in value references. */
|
|
876
|
+
var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
|
|
877
|
+
|
|
878
|
+
/**
|
|
879
|
+
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
880
|
+
*
|
|
881
|
+
* @private
|
|
882
|
+
* @param {*} value The value to query.
|
|
883
|
+
* @returns {string} Returns the `toStringTag`.
|
|
884
|
+
*/
|
|
885
|
+
function baseGetTag(value) {
|
|
886
|
+
if (value == null) {
|
|
887
|
+
return value === undefined ? undefinedTag : nullTag;
|
|
888
|
+
}
|
|
889
|
+
return (symToStringTag$1 && symToStringTag$1 in Object(value))
|
|
890
|
+
? _getRawTag(value)
|
|
891
|
+
: _objectToString(value);
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
var _baseGetTag = baseGetTag;
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
898
|
+
* and has a `typeof` result of "object".
|
|
899
|
+
*
|
|
900
|
+
* @static
|
|
901
|
+
* @memberOf _
|
|
902
|
+
* @since 4.0.0
|
|
903
|
+
* @category Lang
|
|
904
|
+
* @param {*} value The value to check.
|
|
905
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
906
|
+
* @example
|
|
907
|
+
*
|
|
908
|
+
* _.isObjectLike({});
|
|
909
|
+
* // => true
|
|
910
|
+
*
|
|
911
|
+
* _.isObjectLike([1, 2, 3]);
|
|
912
|
+
* // => true
|
|
913
|
+
*
|
|
914
|
+
* _.isObjectLike(_.noop);
|
|
915
|
+
* // => false
|
|
916
|
+
*
|
|
917
|
+
* _.isObjectLike(null);
|
|
918
|
+
* // => false
|
|
919
|
+
*/
|
|
920
|
+
function isObjectLike(value) {
|
|
921
|
+
return value != null && typeof value == 'object';
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
var isObjectLike_1 = isObjectLike;
|
|
925
|
+
|
|
926
|
+
/** `Object#toString` result references. */
|
|
927
|
+
var symbolTag = '[object Symbol]';
|
|
928
|
+
|
|
929
|
+
/**
|
|
930
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
931
|
+
*
|
|
932
|
+
* @static
|
|
933
|
+
* @memberOf _
|
|
934
|
+
* @since 4.0.0
|
|
935
|
+
* @category Lang
|
|
936
|
+
* @param {*} value The value to check.
|
|
937
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
938
|
+
* @example
|
|
939
|
+
*
|
|
940
|
+
* _.isSymbol(Symbol.iterator);
|
|
941
|
+
* // => true
|
|
942
|
+
*
|
|
943
|
+
* _.isSymbol('abc');
|
|
944
|
+
* // => false
|
|
945
|
+
*/
|
|
946
|
+
function isSymbol(value) {
|
|
947
|
+
return typeof value == 'symbol' ||
|
|
948
|
+
(isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
var isSymbol_1 = isSymbol;
|
|
952
|
+
|
|
953
|
+
/** Used to match property names within property paths. */
|
|
954
|
+
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
|
955
|
+
reIsPlainProp = /^\w*$/;
|
|
956
|
+
|
|
957
|
+
/**
|
|
958
|
+
* Checks if `value` is a property name and not a property path.
|
|
959
|
+
*
|
|
960
|
+
* @private
|
|
961
|
+
* @param {*} value The value to check.
|
|
962
|
+
* @param {Object} [object] The object to query keys on.
|
|
963
|
+
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
964
|
+
*/
|
|
965
|
+
function isKey(value, object) {
|
|
966
|
+
if (isArray_1(value)) {
|
|
967
|
+
return false;
|
|
968
|
+
}
|
|
969
|
+
var type = typeof value;
|
|
970
|
+
if (type == 'number' || type == 'symbol' || type == 'boolean' ||
|
|
971
|
+
value == null || isSymbol_1(value)) {
|
|
972
|
+
return true;
|
|
973
|
+
}
|
|
974
|
+
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
|
|
975
|
+
(object != null && value in Object(object));
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
var _isKey = isKey;
|
|
979
|
+
|
|
980
|
+
/**
|
|
981
|
+
* Checks if `value` is the
|
|
982
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
983
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
984
|
+
*
|
|
985
|
+
* @static
|
|
986
|
+
* @memberOf _
|
|
987
|
+
* @since 0.1.0
|
|
988
|
+
* @category Lang
|
|
989
|
+
* @param {*} value The value to check.
|
|
990
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
991
|
+
* @example
|
|
992
|
+
*
|
|
993
|
+
* _.isObject({});
|
|
994
|
+
* // => true
|
|
995
|
+
*
|
|
996
|
+
* _.isObject([1, 2, 3]);
|
|
997
|
+
* // => true
|
|
998
|
+
*
|
|
999
|
+
* _.isObject(_.noop);
|
|
1000
|
+
* // => true
|
|
1001
|
+
*
|
|
1002
|
+
* _.isObject(null);
|
|
1003
|
+
* // => false
|
|
1004
|
+
*/
|
|
1005
|
+
function isObject(value) {
|
|
1006
|
+
var type = typeof value;
|
|
1007
|
+
return value != null && (type == 'object' || type == 'function');
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
var isObject_1 = isObject;
|
|
1011
|
+
|
|
1012
|
+
/** `Object#toString` result references. */
|
|
1013
|
+
var asyncTag = '[object AsyncFunction]',
|
|
1014
|
+
funcTag = '[object Function]',
|
|
1015
|
+
genTag = '[object GeneratorFunction]',
|
|
1016
|
+
proxyTag = '[object Proxy]';
|
|
1017
|
+
|
|
1018
|
+
/**
|
|
1019
|
+
* Checks if `value` is classified as a `Function` object.
|
|
1020
|
+
*
|
|
1021
|
+
* @static
|
|
1022
|
+
* @memberOf _
|
|
1023
|
+
* @since 0.1.0
|
|
1024
|
+
* @category Lang
|
|
1025
|
+
* @param {*} value The value to check.
|
|
1026
|
+
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
1027
|
+
* @example
|
|
1028
|
+
*
|
|
1029
|
+
* _.isFunction(_);
|
|
1030
|
+
* // => true
|
|
1031
|
+
*
|
|
1032
|
+
* _.isFunction(/abc/);
|
|
1033
|
+
* // => false
|
|
1034
|
+
*/
|
|
1035
|
+
function isFunction(value) {
|
|
1036
|
+
if (!isObject_1(value)) {
|
|
1037
|
+
return false;
|
|
1038
|
+
}
|
|
1039
|
+
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
1040
|
+
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
1041
|
+
var tag = _baseGetTag(value);
|
|
1042
|
+
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
var isFunction_1 = isFunction;
|
|
1046
|
+
|
|
1047
|
+
/** Used to detect overreaching core-js shims. */
|
|
1048
|
+
var coreJsData = _root['__core-js_shared__'];
|
|
1049
|
+
|
|
1050
|
+
var _coreJsData = coreJsData;
|
|
1051
|
+
|
|
1052
|
+
/** Used to detect methods masquerading as native. */
|
|
1053
|
+
var maskSrcKey = (function() {
|
|
1054
|
+
var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
|
|
1055
|
+
return uid ? ('Symbol(src)_1.' + uid) : '';
|
|
1056
|
+
}());
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* Checks if `func` has its source masked.
|
|
1060
|
+
*
|
|
1061
|
+
* @private
|
|
1062
|
+
* @param {Function} func The function to check.
|
|
1063
|
+
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
1064
|
+
*/
|
|
1065
|
+
function isMasked(func) {
|
|
1066
|
+
return !!maskSrcKey && (maskSrcKey in func);
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
var _isMasked = isMasked;
|
|
1070
|
+
|
|
1071
|
+
/** Used for built-in method references. */
|
|
1072
|
+
var funcProto = Function.prototype;
|
|
1073
|
+
|
|
1074
|
+
/** Used to resolve the decompiled source of functions. */
|
|
1075
|
+
var funcToString = funcProto.toString;
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* Converts `func` to its source code.
|
|
1079
|
+
*
|
|
1080
|
+
* @private
|
|
1081
|
+
* @param {Function} func The function to convert.
|
|
1082
|
+
* @returns {string} Returns the source code.
|
|
1083
|
+
*/
|
|
1084
|
+
function toSource(func) {
|
|
1085
|
+
if (func != null) {
|
|
1086
|
+
try {
|
|
1087
|
+
return funcToString.call(func);
|
|
1088
|
+
} catch (e) {}
|
|
1089
|
+
try {
|
|
1090
|
+
return (func + '');
|
|
1091
|
+
} catch (e) {}
|
|
1092
|
+
}
|
|
1093
|
+
return '';
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
var _toSource = toSource;
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* Used to match `RegExp`
|
|
1100
|
+
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
1101
|
+
*/
|
|
1102
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
1103
|
+
|
|
1104
|
+
/** Used to detect host constructors (Safari). */
|
|
1105
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
1106
|
+
|
|
1107
|
+
/** Used for built-in method references. */
|
|
1108
|
+
var funcProto$1 = Function.prototype,
|
|
1109
|
+
objectProto$2 = Object.prototype;
|
|
1110
|
+
|
|
1111
|
+
/** Used to resolve the decompiled source of functions. */
|
|
1112
|
+
var funcToString$1 = funcProto$1.toString;
|
|
1113
|
+
|
|
1114
|
+
/** Used to check objects for own properties. */
|
|
1115
|
+
var hasOwnProperty$1 = objectProto$2.hasOwnProperty;
|
|
1116
|
+
|
|
1117
|
+
/** Used to detect if a method is native. */
|
|
1118
|
+
var reIsNative = RegExp('^' +
|
|
1119
|
+
funcToString$1.call(hasOwnProperty$1).replace(reRegExpChar, '\\$&')
|
|
1120
|
+
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
1121
|
+
);
|
|
1122
|
+
|
|
1123
|
+
/**
|
|
1124
|
+
* The base implementation of `_.isNative` without bad shim checks.
|
|
1125
|
+
*
|
|
1126
|
+
* @private
|
|
1127
|
+
* @param {*} value The value to check.
|
|
1128
|
+
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
1129
|
+
* else `false`.
|
|
1130
|
+
*/
|
|
1131
|
+
function baseIsNative(value) {
|
|
1132
|
+
if (!isObject_1(value) || _isMasked(value)) {
|
|
1133
|
+
return false;
|
|
1134
|
+
}
|
|
1135
|
+
var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
|
|
1136
|
+
return pattern.test(_toSource(value));
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
var _baseIsNative = baseIsNative;
|
|
1140
|
+
|
|
1141
|
+
/**
|
|
1142
|
+
* Gets the value at `key` of `object`.
|
|
1143
|
+
*
|
|
1144
|
+
* @private
|
|
1145
|
+
* @param {Object} [object] The object to query.
|
|
1146
|
+
* @param {string} key The key of the property to get.
|
|
1147
|
+
* @returns {*} Returns the property value.
|
|
1148
|
+
*/
|
|
1149
|
+
function getValue(object, key) {
|
|
1150
|
+
return object == null ? undefined : object[key];
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
var _getValue = getValue;
|
|
1154
|
+
|
|
1155
|
+
/**
|
|
1156
|
+
* Gets the native function at `key` of `object`.
|
|
1157
|
+
*
|
|
1158
|
+
* @private
|
|
1159
|
+
* @param {Object} object The object to query.
|
|
1160
|
+
* @param {string} key The key of the method to get.
|
|
1161
|
+
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
1162
|
+
*/
|
|
1163
|
+
function getNative(object, key) {
|
|
1164
|
+
var value = _getValue(object, key);
|
|
1165
|
+
return _baseIsNative(value) ? value : undefined;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
var _getNative = getNative;
|
|
1169
|
+
|
|
1170
|
+
/* Built-in method references that are verified to be native. */
|
|
1171
|
+
var nativeCreate = _getNative(Object, 'create');
|
|
1172
|
+
|
|
1173
|
+
var _nativeCreate = nativeCreate;
|
|
1174
|
+
|
|
1175
|
+
/**
|
|
1176
|
+
* Removes all key-value entries from the hash.
|
|
1177
|
+
*
|
|
1178
|
+
* @private
|
|
1179
|
+
* @name clear
|
|
1180
|
+
* @memberOf Hash
|
|
1181
|
+
*/
|
|
1182
|
+
function hashClear() {
|
|
1183
|
+
this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
|
|
1184
|
+
this.size = 0;
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
var _hashClear = hashClear;
|
|
1188
|
+
|
|
1189
|
+
/**
|
|
1190
|
+
* Removes `key` and its value from the hash.
|
|
1191
|
+
*
|
|
1192
|
+
* @private
|
|
1193
|
+
* @name delete
|
|
1194
|
+
* @memberOf Hash
|
|
1195
|
+
* @param {Object} hash The hash to modify.
|
|
1196
|
+
* @param {string} key The key of the value to remove.
|
|
1197
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1198
|
+
*/
|
|
1199
|
+
function hashDelete(key) {
|
|
1200
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
1201
|
+
this.size -= result ? 1 : 0;
|
|
1202
|
+
return result;
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
var _hashDelete = hashDelete;
|
|
1206
|
+
|
|
1207
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
1208
|
+
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
1209
|
+
|
|
1210
|
+
/** Used for built-in method references. */
|
|
1211
|
+
var objectProto$3 = Object.prototype;
|
|
1212
|
+
|
|
1213
|
+
/** Used to check objects for own properties. */
|
|
1214
|
+
var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
|
|
1215
|
+
|
|
1216
|
+
/**
|
|
1217
|
+
* Gets the hash value for `key`.
|
|
1218
|
+
*
|
|
1219
|
+
* @private
|
|
1220
|
+
* @name get
|
|
1221
|
+
* @memberOf Hash
|
|
1222
|
+
* @param {string} key The key of the value to get.
|
|
1223
|
+
* @returns {*} Returns the entry value.
|
|
1224
|
+
*/
|
|
1225
|
+
function hashGet(key) {
|
|
1226
|
+
var data = this.__data__;
|
|
1227
|
+
if (_nativeCreate) {
|
|
1228
|
+
var result = data[key];
|
|
1229
|
+
return result === HASH_UNDEFINED ? undefined : result;
|
|
1230
|
+
}
|
|
1231
|
+
return hasOwnProperty$2.call(data, key) ? data[key] : undefined;
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
var _hashGet = hashGet;
|
|
1235
|
+
|
|
1236
|
+
/** Used for built-in method references. */
|
|
1237
|
+
var objectProto$4 = Object.prototype;
|
|
1238
|
+
|
|
1239
|
+
/** Used to check objects for own properties. */
|
|
1240
|
+
var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
|
|
1241
|
+
|
|
1242
|
+
/**
|
|
1243
|
+
* Checks if a hash value for `key` exists.
|
|
1244
|
+
*
|
|
1245
|
+
* @private
|
|
1246
|
+
* @name has
|
|
1247
|
+
* @memberOf Hash
|
|
1248
|
+
* @param {string} key The key of the entry to check.
|
|
1249
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1250
|
+
*/
|
|
1251
|
+
function hashHas(key) {
|
|
1252
|
+
var data = this.__data__;
|
|
1253
|
+
return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$3.call(data, key);
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
var _hashHas = hashHas;
|
|
1257
|
+
|
|
1258
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
1259
|
+
var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
|
|
1260
|
+
|
|
1261
|
+
/**
|
|
1262
|
+
* Sets the hash `key` to `value`.
|
|
1263
|
+
*
|
|
1264
|
+
* @private
|
|
1265
|
+
* @name set
|
|
1266
|
+
* @memberOf Hash
|
|
1267
|
+
* @param {string} key The key of the value to set.
|
|
1268
|
+
* @param {*} value The value to set.
|
|
1269
|
+
* @returns {Object} Returns the hash instance.
|
|
1270
|
+
*/
|
|
1271
|
+
function hashSet(key, value) {
|
|
1272
|
+
var data = this.__data__;
|
|
1273
|
+
this.size += this.has(key) ? 0 : 1;
|
|
1274
|
+
data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED$1 : value;
|
|
1275
|
+
return this;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
var _hashSet = hashSet;
|
|
1279
|
+
|
|
1280
|
+
/**
|
|
1281
|
+
* Creates a hash object.
|
|
1282
|
+
*
|
|
1283
|
+
* @private
|
|
1284
|
+
* @constructor
|
|
1285
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
1286
|
+
*/
|
|
1287
|
+
function Hash(entries) {
|
|
1288
|
+
var index = -1,
|
|
1289
|
+
length = entries == null ? 0 : entries.length;
|
|
1290
|
+
|
|
1291
|
+
this.clear();
|
|
1292
|
+
while (++index < length) {
|
|
1293
|
+
var entry = entries[index];
|
|
1294
|
+
this.set(entry[0], entry[1]);
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
// Add methods to `Hash`.
|
|
1299
|
+
Hash.prototype.clear = _hashClear;
|
|
1300
|
+
Hash.prototype['delete'] = _hashDelete;
|
|
1301
|
+
Hash.prototype.get = _hashGet;
|
|
1302
|
+
Hash.prototype.has = _hashHas;
|
|
1303
|
+
Hash.prototype.set = _hashSet;
|
|
1304
|
+
|
|
1305
|
+
var _Hash = Hash;
|
|
1306
|
+
|
|
1307
|
+
/**
|
|
1308
|
+
* Removes all key-value entries from the list cache.
|
|
1309
|
+
*
|
|
1310
|
+
* @private
|
|
1311
|
+
* @name clear
|
|
1312
|
+
* @memberOf ListCache
|
|
1313
|
+
*/
|
|
1314
|
+
function listCacheClear() {
|
|
1315
|
+
this.__data__ = [];
|
|
1316
|
+
this.size = 0;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
var _listCacheClear = listCacheClear;
|
|
1320
|
+
|
|
1321
|
+
/**
|
|
1322
|
+
* Performs a
|
|
1323
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
1324
|
+
* comparison between two values to determine if they are equivalent.
|
|
1325
|
+
*
|
|
1326
|
+
* @static
|
|
1327
|
+
* @memberOf _
|
|
1328
|
+
* @since 4.0.0
|
|
1329
|
+
* @category Lang
|
|
1330
|
+
* @param {*} value The value to compare.
|
|
1331
|
+
* @param {*} other The other value to compare.
|
|
1332
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
1333
|
+
* @example
|
|
1334
|
+
*
|
|
1335
|
+
* var object = { 'a': 1 };
|
|
1336
|
+
* var other = { 'a': 1 };
|
|
1337
|
+
*
|
|
1338
|
+
* _.eq(object, object);
|
|
1339
|
+
* // => true
|
|
1340
|
+
*
|
|
1341
|
+
* _.eq(object, other);
|
|
1342
|
+
* // => false
|
|
1343
|
+
*
|
|
1344
|
+
* _.eq('a', 'a');
|
|
1345
|
+
* // => true
|
|
1346
|
+
*
|
|
1347
|
+
* _.eq('a', Object('a'));
|
|
1348
|
+
* // => false
|
|
1349
|
+
*
|
|
1350
|
+
* _.eq(NaN, NaN);
|
|
1351
|
+
* // => true
|
|
1352
|
+
*/
|
|
1353
|
+
function eq(value, other) {
|
|
1354
|
+
return value === other || (value !== value && other !== other);
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
var eq_1 = eq;
|
|
1358
|
+
|
|
1359
|
+
/**
|
|
1360
|
+
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
1361
|
+
*
|
|
1362
|
+
* @private
|
|
1363
|
+
* @param {Array} array The array to inspect.
|
|
1364
|
+
* @param {*} key The key to search for.
|
|
1365
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
1366
|
+
*/
|
|
1367
|
+
function assocIndexOf(array, key) {
|
|
1368
|
+
var length = array.length;
|
|
1369
|
+
while (length--) {
|
|
1370
|
+
if (eq_1(array[length][0], key)) {
|
|
1371
|
+
return length;
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
return -1;
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
var _assocIndexOf = assocIndexOf;
|
|
1378
|
+
|
|
1379
|
+
/** Used for built-in method references. */
|
|
1380
|
+
var arrayProto = Array.prototype;
|
|
1381
|
+
|
|
1382
|
+
/** Built-in value references. */
|
|
1383
|
+
var splice = arrayProto.splice;
|
|
1384
|
+
|
|
1385
|
+
/**
|
|
1386
|
+
* Removes `key` and its value from the list cache.
|
|
1387
|
+
*
|
|
1388
|
+
* @private
|
|
1389
|
+
* @name delete
|
|
1390
|
+
* @memberOf ListCache
|
|
1391
|
+
* @param {string} key The key of the value to remove.
|
|
1392
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1393
|
+
*/
|
|
1394
|
+
function listCacheDelete(key) {
|
|
1395
|
+
var data = this.__data__,
|
|
1396
|
+
index = _assocIndexOf(data, key);
|
|
1397
|
+
|
|
1398
|
+
if (index < 0) {
|
|
1399
|
+
return false;
|
|
1400
|
+
}
|
|
1401
|
+
var lastIndex = data.length - 1;
|
|
1402
|
+
if (index == lastIndex) {
|
|
1403
|
+
data.pop();
|
|
1404
|
+
} else {
|
|
1405
|
+
splice.call(data, index, 1);
|
|
1406
|
+
}
|
|
1407
|
+
--this.size;
|
|
1408
|
+
return true;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
var _listCacheDelete = listCacheDelete;
|
|
1412
|
+
|
|
1413
|
+
/**
|
|
1414
|
+
* Gets the list cache value for `key`.
|
|
1415
|
+
*
|
|
1416
|
+
* @private
|
|
1417
|
+
* @name get
|
|
1418
|
+
* @memberOf ListCache
|
|
1419
|
+
* @param {string} key The key of the value to get.
|
|
1420
|
+
* @returns {*} Returns the entry value.
|
|
1421
|
+
*/
|
|
1422
|
+
function listCacheGet(key) {
|
|
1423
|
+
var data = this.__data__,
|
|
1424
|
+
index = _assocIndexOf(data, key);
|
|
1425
|
+
|
|
1426
|
+
return index < 0 ? undefined : data[index][1];
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
var _listCacheGet = listCacheGet;
|
|
1430
|
+
|
|
1431
|
+
/**
|
|
1432
|
+
* Checks if a list cache value for `key` exists.
|
|
1433
|
+
*
|
|
1434
|
+
* @private
|
|
1435
|
+
* @name has
|
|
1436
|
+
* @memberOf ListCache
|
|
1437
|
+
* @param {string} key The key of the entry to check.
|
|
1438
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1439
|
+
*/
|
|
1440
|
+
function listCacheHas(key) {
|
|
1441
|
+
return _assocIndexOf(this.__data__, key) > -1;
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
var _listCacheHas = listCacheHas;
|
|
1445
|
+
|
|
1446
|
+
/**
|
|
1447
|
+
* Sets the list cache `key` to `value`.
|
|
1448
|
+
*
|
|
1449
|
+
* @private
|
|
1450
|
+
* @name set
|
|
1451
|
+
* @memberOf ListCache
|
|
1452
|
+
* @param {string} key The key of the value to set.
|
|
1453
|
+
* @param {*} value The value to set.
|
|
1454
|
+
* @returns {Object} Returns the list cache instance.
|
|
1455
|
+
*/
|
|
1456
|
+
function listCacheSet(key, value) {
|
|
1457
|
+
var data = this.__data__,
|
|
1458
|
+
index = _assocIndexOf(data, key);
|
|
1459
|
+
|
|
1460
|
+
if (index < 0) {
|
|
1461
|
+
++this.size;
|
|
1462
|
+
data.push([key, value]);
|
|
1463
|
+
} else {
|
|
1464
|
+
data[index][1] = value;
|
|
1465
|
+
}
|
|
1466
|
+
return this;
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
var _listCacheSet = listCacheSet;
|
|
1470
|
+
|
|
1471
|
+
/**
|
|
1472
|
+
* Creates an list cache object.
|
|
1473
|
+
*
|
|
1474
|
+
* @private
|
|
1475
|
+
* @constructor
|
|
1476
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
1477
|
+
*/
|
|
1478
|
+
function ListCache(entries) {
|
|
1479
|
+
var index = -1,
|
|
1480
|
+
length = entries == null ? 0 : entries.length;
|
|
1481
|
+
|
|
1482
|
+
this.clear();
|
|
1483
|
+
while (++index < length) {
|
|
1484
|
+
var entry = entries[index];
|
|
1485
|
+
this.set(entry[0], entry[1]);
|
|
1486
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
// Add methods to `ListCache`.
|
|
1490
|
+
ListCache.prototype.clear = _listCacheClear;
|
|
1491
|
+
ListCache.prototype['delete'] = _listCacheDelete;
|
|
1492
|
+
ListCache.prototype.get = _listCacheGet;
|
|
1493
|
+
ListCache.prototype.has = _listCacheHas;
|
|
1494
|
+
ListCache.prototype.set = _listCacheSet;
|
|
1495
|
+
|
|
1496
|
+
var _ListCache = ListCache;
|
|
1497
|
+
|
|
1498
|
+
/* Built-in method references that are verified to be native. */
|
|
1499
|
+
var Map = _getNative(_root, 'Map');
|
|
1500
|
+
|
|
1501
|
+
var _Map = Map;
|
|
1502
|
+
|
|
1503
|
+
/**
|
|
1504
|
+
* Removes all key-value entries from the map.
|
|
1505
|
+
*
|
|
1506
|
+
* @private
|
|
1507
|
+
* @name clear
|
|
1508
|
+
* @memberOf MapCache
|
|
1509
|
+
*/
|
|
1510
|
+
function mapCacheClear() {
|
|
1511
|
+
this.size = 0;
|
|
1512
|
+
this.__data__ = {
|
|
1513
|
+
'hash': new _Hash,
|
|
1514
|
+
'map': new (_Map || _ListCache),
|
|
1515
|
+
'string': new _Hash
|
|
1516
|
+
};
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
var _mapCacheClear = mapCacheClear;
|
|
1520
|
+
|
|
1521
|
+
/**
|
|
1522
|
+
* Checks if `value` is suitable for use as unique object key.
|
|
1523
|
+
*
|
|
1524
|
+
* @private
|
|
1525
|
+
* @param {*} value The value to check.
|
|
1526
|
+
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
1527
|
+
*/
|
|
1528
|
+
function isKeyable(value) {
|
|
1529
|
+
var type = typeof value;
|
|
1530
|
+
return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
|
|
1531
|
+
? (value !== '__proto__')
|
|
1532
|
+
: (value === null);
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
var _isKeyable = isKeyable;
|
|
1536
|
+
|
|
1537
|
+
/**
|
|
1538
|
+
* Gets the data for `map`.
|
|
1539
|
+
*
|
|
1540
|
+
* @private
|
|
1541
|
+
* @param {Object} map The map to query.
|
|
1542
|
+
* @param {string} key The reference key.
|
|
1543
|
+
* @returns {*} Returns the map data.
|
|
1544
|
+
*/
|
|
1545
|
+
function getMapData(map, key) {
|
|
1546
|
+
var data = map.__data__;
|
|
1547
|
+
return _isKeyable(key)
|
|
1548
|
+
? data[typeof key == 'string' ? 'string' : 'hash']
|
|
1549
|
+
: data.map;
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
var _getMapData = getMapData;
|
|
1553
|
+
|
|
1554
|
+
/**
|
|
1555
|
+
* Removes `key` and its value from the map.
|
|
1556
|
+
*
|
|
1557
|
+
* @private
|
|
1558
|
+
* @name delete
|
|
1559
|
+
* @memberOf MapCache
|
|
1560
|
+
* @param {string} key The key of the value to remove.
|
|
1561
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1562
|
+
*/
|
|
1563
|
+
function mapCacheDelete(key) {
|
|
1564
|
+
var result = _getMapData(this, key)['delete'](key);
|
|
1565
|
+
this.size -= result ? 1 : 0;
|
|
1566
|
+
return result;
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
var _mapCacheDelete = mapCacheDelete;
|
|
1570
|
+
|
|
1571
|
+
/**
|
|
1572
|
+
* Gets the map value for `key`.
|
|
1573
|
+
*
|
|
1574
|
+
* @private
|
|
1575
|
+
* @name get
|
|
1576
|
+
* @memberOf MapCache
|
|
1577
|
+
* @param {string} key The key of the value to get.
|
|
1578
|
+
* @returns {*} Returns the entry value.
|
|
1579
|
+
*/
|
|
1580
|
+
function mapCacheGet(key) {
|
|
1581
|
+
return _getMapData(this, key).get(key);
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
var _mapCacheGet = mapCacheGet;
|
|
1585
|
+
|
|
1586
|
+
/**
|
|
1587
|
+
* Checks if a map value for `key` exists.
|
|
1588
|
+
*
|
|
1589
|
+
* @private
|
|
1590
|
+
* @name has
|
|
1591
|
+
* @memberOf MapCache
|
|
1592
|
+
* @param {string} key The key of the entry to check.
|
|
1593
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1594
|
+
*/
|
|
1595
|
+
function mapCacheHas(key) {
|
|
1596
|
+
return _getMapData(this, key).has(key);
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
var _mapCacheHas = mapCacheHas;
|
|
1600
|
+
|
|
1601
|
+
/**
|
|
1602
|
+
* Sets the map `key` to `value`.
|
|
1603
|
+
*
|
|
1604
|
+
* @private
|
|
1605
|
+
* @name set
|
|
1606
|
+
* @memberOf MapCache
|
|
1607
|
+
* @param {string} key The key of the value to set.
|
|
1608
|
+
* @param {*} value The value to set.
|
|
1609
|
+
* @returns {Object} Returns the map cache instance.
|
|
1610
|
+
*/
|
|
1611
|
+
function mapCacheSet(key, value) {
|
|
1612
|
+
var data = _getMapData(this, key),
|
|
1613
|
+
size = data.size;
|
|
1614
|
+
|
|
1615
|
+
data.set(key, value);
|
|
1616
|
+
this.size += data.size == size ? 0 : 1;
|
|
1617
|
+
return this;
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
var _mapCacheSet = mapCacheSet;
|
|
1621
|
+
|
|
1622
|
+
/**
|
|
1623
|
+
* Creates a map cache object to store key-value pairs.
|
|
1624
|
+
*
|
|
1625
|
+
* @private
|
|
1626
|
+
* @constructor
|
|
1627
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
1628
|
+
*/
|
|
1629
|
+
function MapCache(entries) {
|
|
1630
|
+
var index = -1,
|
|
1631
|
+
length = entries == null ? 0 : entries.length;
|
|
1632
|
+
|
|
1633
|
+
this.clear();
|
|
1634
|
+
while (++index < length) {
|
|
1635
|
+
var entry = entries[index];
|
|
1636
|
+
this.set(entry[0], entry[1]);
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
// Add methods to `MapCache`.
|
|
1641
|
+
MapCache.prototype.clear = _mapCacheClear;
|
|
1642
|
+
MapCache.prototype['delete'] = _mapCacheDelete;
|
|
1643
|
+
MapCache.prototype.get = _mapCacheGet;
|
|
1644
|
+
MapCache.prototype.has = _mapCacheHas;
|
|
1645
|
+
MapCache.prototype.set = _mapCacheSet;
|
|
1646
|
+
|
|
1647
|
+
var _MapCache = MapCache;
|
|
1648
|
+
|
|
1649
|
+
/** Error message constants. */
|
|
1650
|
+
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
1651
|
+
|
|
1652
|
+
/**
|
|
1653
|
+
* Creates a function that memoizes the result of `func`. If `resolver` is
|
|
1654
|
+
* provided, it determines the cache key for storing the result based on the
|
|
1655
|
+
* arguments provided to the memoized function. By default, the first argument
|
|
1656
|
+
* provided to the memoized function is used as the map cache key. The `func`
|
|
1657
|
+
* is invoked with the `this` binding of the memoized function.
|
|
1658
|
+
*
|
|
1659
|
+
* **Note:** The cache is exposed as the `cache` property on the memoized
|
|
1660
|
+
* function. Its creation may be customized by replacing the `_.memoize.Cache`
|
|
1661
|
+
* constructor with one whose instances implement the
|
|
1662
|
+
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
|
|
1663
|
+
* method interface of `clear`, `delete`, `get`, `has`, and `set`.
|
|
1664
|
+
*
|
|
1665
|
+
* @static
|
|
1666
|
+
* @memberOf _
|
|
1667
|
+
* @since 0.1.0
|
|
1668
|
+
* @category Function
|
|
1669
|
+
* @param {Function} func The function to have its output memoized.
|
|
1670
|
+
* @param {Function} [resolver] The function to resolve the cache key.
|
|
1671
|
+
* @returns {Function} Returns the new memoized function.
|
|
1672
|
+
* @example
|
|
1673
|
+
*
|
|
1674
|
+
* var object = { 'a': 1, 'b': 2 };
|
|
1675
|
+
* var other = { 'c': 3, 'd': 4 };
|
|
1676
|
+
*
|
|
1677
|
+
* var values = _.memoize(_.values);
|
|
1678
|
+
* values(object);
|
|
1679
|
+
* // => [1, 2]
|
|
1680
|
+
*
|
|
1681
|
+
* values(other);
|
|
1682
|
+
* // => [3, 4]
|
|
1683
|
+
*
|
|
1684
|
+
* object.a = 2;
|
|
1685
|
+
* values(object);
|
|
1686
|
+
* // => [1, 2]
|
|
1687
|
+
*
|
|
1688
|
+
* // Modify the result cache.
|
|
1689
|
+
* values.cache.set(object, ['a', 'b']);
|
|
1690
|
+
* values(object);
|
|
1691
|
+
* // => ['a', 'b']
|
|
1692
|
+
*
|
|
1693
|
+
* // Replace `_.memoize.Cache`.
|
|
1694
|
+
* _.memoize.Cache = WeakMap;
|
|
1695
|
+
*/
|
|
1696
|
+
function memoize(func, resolver) {
|
|
1697
|
+
if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
|
|
1698
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
1699
|
+
}
|
|
1700
|
+
var memoized = function() {
|
|
1701
|
+
var args = arguments,
|
|
1702
|
+
key = resolver ? resolver.apply(this, args) : args[0],
|
|
1703
|
+
cache = memoized.cache;
|
|
1704
|
+
|
|
1705
|
+
if (cache.has(key)) {
|
|
1706
|
+
return cache.get(key);
|
|
1707
|
+
}
|
|
1708
|
+
var result = func.apply(this, args);
|
|
1709
|
+
memoized.cache = cache.set(key, result) || cache;
|
|
1710
|
+
return result;
|
|
1711
|
+
};
|
|
1712
|
+
memoized.cache = new (memoize.Cache || _MapCache);
|
|
1713
|
+
return memoized;
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1716
|
+
// Expose `MapCache`.
|
|
1717
|
+
memoize.Cache = _MapCache;
|
|
1718
|
+
|
|
1719
|
+
var memoize_1 = memoize;
|
|
1720
|
+
|
|
1721
|
+
/** Used as the maximum memoize cache size. */
|
|
1722
|
+
var MAX_MEMOIZE_SIZE = 500;
|
|
1723
|
+
|
|
1724
|
+
/**
|
|
1725
|
+
* A specialized version of `_.memoize` which clears the memoized function's
|
|
1726
|
+
* cache when it exceeds `MAX_MEMOIZE_SIZE`.
|
|
1727
|
+
*
|
|
1728
|
+
* @private
|
|
1729
|
+
* @param {Function} func The function to have its output memoized.
|
|
1730
|
+
* @returns {Function} Returns the new memoized function.
|
|
1731
|
+
*/
|
|
1732
|
+
function memoizeCapped(func) {
|
|
1733
|
+
var result = memoize_1(func, function(key) {
|
|
1734
|
+
if (cache.size === MAX_MEMOIZE_SIZE) {
|
|
1735
|
+
cache.clear();
|
|
1736
|
+
}
|
|
1737
|
+
return key;
|
|
1738
|
+
});
|
|
1739
|
+
|
|
1740
|
+
var cache = result.cache;
|
|
1741
|
+
return result;
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
var _memoizeCapped = memoizeCapped;
|
|
1745
|
+
|
|
1746
|
+
/** Used to match property names within property paths. */
|
|
1747
|
+
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
1748
|
+
|
|
1749
|
+
/** Used to match backslashes in property paths. */
|
|
1750
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
1751
|
+
|
|
1752
|
+
/**
|
|
1753
|
+
* Converts `string` to a property path array.
|
|
1754
|
+
*
|
|
1755
|
+
* @private
|
|
1756
|
+
* @param {string} string The string to convert.
|
|
1757
|
+
* @returns {Array} Returns the property path array.
|
|
1758
|
+
*/
|
|
1759
|
+
var stringToPath = _memoizeCapped(function(string) {
|
|
1760
|
+
var result = [];
|
|
1761
|
+
if (string.charCodeAt(0) === 46 /* . */) {
|
|
1762
|
+
result.push('');
|
|
1763
|
+
}
|
|
1764
|
+
string.replace(rePropName, function(match, number, quote, subString) {
|
|
1765
|
+
result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
|
|
1766
|
+
});
|
|
1767
|
+
return result;
|
|
1768
|
+
});
|
|
1769
|
+
|
|
1770
|
+
var _stringToPath = stringToPath;
|
|
1771
|
+
|
|
1772
|
+
/**
|
|
1773
|
+
* A specialized version of `_.map` for arrays without support for iteratee
|
|
1774
|
+
* shorthands.
|
|
1775
|
+
*
|
|
1776
|
+
* @private
|
|
1777
|
+
* @param {Array} [array] The array to iterate over.
|
|
1778
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
1779
|
+
* @returns {Array} Returns the new mapped array.
|
|
1780
|
+
*/
|
|
1781
|
+
function arrayMap(array, iteratee) {
|
|
1782
|
+
var index = -1,
|
|
1783
|
+
length = array == null ? 0 : array.length,
|
|
1784
|
+
result = Array(length);
|
|
1785
|
+
|
|
1786
|
+
while (++index < length) {
|
|
1787
|
+
result[index] = iteratee(array[index], index, array);
|
|
1788
|
+
}
|
|
1789
|
+
return result;
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
var _arrayMap = arrayMap;
|
|
1793
|
+
|
|
1794
|
+
/** Used as references for various `Number` constants. */
|
|
1795
|
+
var INFINITY = 1 / 0;
|
|
1796
|
+
|
|
1797
|
+
/** Used to convert symbols to primitives and strings. */
|
|
1798
|
+
var symbolProto = _Symbol ? _Symbol.prototype : undefined,
|
|
1799
|
+
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
1800
|
+
|
|
1801
|
+
/**
|
|
1802
|
+
* The base implementation of `_.toString` which doesn't convert nullish
|
|
1803
|
+
* values to empty strings.
|
|
1804
|
+
*
|
|
1805
|
+
* @private
|
|
1806
|
+
* @param {*} value The value to process.
|
|
1807
|
+
* @returns {string} Returns the string.
|
|
1808
|
+
*/
|
|
1809
|
+
function baseToString(value) {
|
|
1810
|
+
// Exit early for strings to avoid a performance hit in some environments.
|
|
1811
|
+
if (typeof value == 'string') {
|
|
1812
|
+
return value;
|
|
1813
|
+
}
|
|
1814
|
+
if (isArray_1(value)) {
|
|
1815
|
+
// Recursively convert values (susceptible to call stack limits).
|
|
1816
|
+
return _arrayMap(value, baseToString) + '';
|
|
1817
|
+
}
|
|
1818
|
+
if (isSymbol_1(value)) {
|
|
1819
|
+
return symbolToString ? symbolToString.call(value) : '';
|
|
1820
|
+
}
|
|
1821
|
+
var result = (value + '');
|
|
1822
|
+
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
var _baseToString = baseToString;
|
|
1826
|
+
|
|
1827
|
+
/**
|
|
1828
|
+
* Converts `value` to a string. An empty string is returned for `null`
|
|
1829
|
+
* and `undefined` values. The sign of `-0` is preserved.
|
|
1830
|
+
*
|
|
1831
|
+
* @static
|
|
1832
|
+
* @memberOf _
|
|
1833
|
+
* @since 4.0.0
|
|
1834
|
+
* @category Lang
|
|
1835
|
+
* @param {*} value The value to convert.
|
|
1836
|
+
* @returns {string} Returns the converted string.
|
|
1837
|
+
* @example
|
|
1838
|
+
*
|
|
1839
|
+
* _.toString(null);
|
|
1840
|
+
* // => ''
|
|
1841
|
+
*
|
|
1842
|
+
* _.toString(-0);
|
|
1843
|
+
* // => '-0'
|
|
1844
|
+
*
|
|
1845
|
+
* _.toString([1, 2, 3]);
|
|
1846
|
+
* // => '1,2,3'
|
|
1847
|
+
*/
|
|
1848
|
+
function toString(value) {
|
|
1849
|
+
return value == null ? '' : _baseToString(value);
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
var toString_1 = toString;
|
|
1853
|
+
|
|
1854
|
+
/**
|
|
1855
|
+
* Casts `value` to a path array if it's not one.
|
|
1856
|
+
*
|
|
1857
|
+
* @private
|
|
1858
|
+
* @param {*} value The value to inspect.
|
|
1859
|
+
* @param {Object} [object] The object to query keys on.
|
|
1860
|
+
* @returns {Array} Returns the cast property path array.
|
|
1861
|
+
*/
|
|
1862
|
+
function castPath(value, object) {
|
|
1863
|
+
if (isArray_1(value)) {
|
|
1864
|
+
return value;
|
|
1865
|
+
}
|
|
1866
|
+
return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
|
|
1867
|
+
}
|
|
1868
|
+
|
|
1869
|
+
var _castPath = castPath;
|
|
1870
|
+
|
|
1871
|
+
/** Used as references for various `Number` constants. */
|
|
1872
|
+
var INFINITY$1 = 1 / 0;
|
|
1873
|
+
|
|
1874
|
+
/**
|
|
1875
|
+
* Converts `value` to a string key if it's not a string or symbol.
|
|
1876
|
+
*
|
|
1877
|
+
* @private
|
|
1878
|
+
* @param {*} value The value to inspect.
|
|
1879
|
+
* @returns {string|symbol} Returns the key.
|
|
1880
|
+
*/
|
|
1881
|
+
function toKey(value) {
|
|
1882
|
+
if (typeof value == 'string' || isSymbol_1(value)) {
|
|
1883
|
+
return value;
|
|
1884
|
+
}
|
|
1885
|
+
var result = (value + '');
|
|
1886
|
+
return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1889
|
+
var _toKey = toKey;
|
|
1890
|
+
|
|
1891
|
+
/**
|
|
1892
|
+
* The base implementation of `_.get` without support for default values.
|
|
1893
|
+
*
|
|
1894
|
+
* @private
|
|
1895
|
+
* @param {Object} object The object to query.
|
|
1896
|
+
* @param {Array|string} path The path of the property to get.
|
|
1897
|
+
* @returns {*} Returns the resolved value.
|
|
1898
|
+
*/
|
|
1899
|
+
function baseGet(object, path) {
|
|
1900
|
+
path = _castPath(path, object);
|
|
1901
|
+
|
|
1902
|
+
var index = 0,
|
|
1903
|
+
length = path.length;
|
|
1904
|
+
|
|
1905
|
+
while (object != null && index < length) {
|
|
1906
|
+
object = object[_toKey(path[index++])];
|
|
1907
|
+
}
|
|
1908
|
+
return (index && index == length) ? object : undefined;
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
var _baseGet = baseGet;
|
|
1912
|
+
|
|
1913
|
+
/**
|
|
1914
|
+
* Gets the value at `path` of `object`. If the resolved value is
|
|
1915
|
+
* `undefined`, the `defaultValue` is returned in its place.
|
|
1916
|
+
*
|
|
1917
|
+
* @static
|
|
1918
|
+
* @memberOf _
|
|
1919
|
+
* @since 3.7.0
|
|
1920
|
+
* @category Object
|
|
1921
|
+
* @param {Object} object The object to query.
|
|
1922
|
+
* @param {Array|string} path The path of the property to get.
|
|
1923
|
+
* @param {*} [defaultValue] The value returned for `undefined` resolved values.
|
|
1924
|
+
* @returns {*} Returns the resolved value.
|
|
1925
|
+
* @example
|
|
1926
|
+
*
|
|
1927
|
+
* var object = { 'a': [{ 'b': { 'c': 3 } }] };
|
|
1928
|
+
*
|
|
1929
|
+
* _.get(object, 'a[0].b.c');
|
|
1930
|
+
* // => 3
|
|
1931
|
+
*
|
|
1932
|
+
* _.get(object, ['a', '0', 'b', 'c']);
|
|
1933
|
+
* // => 3
|
|
1934
|
+
*
|
|
1935
|
+
* _.get(object, 'a.b.c', 'default');
|
|
1936
|
+
* // => 'default'
|
|
1937
|
+
*/
|
|
1938
|
+
function get$1(object, path, defaultValue) {
|
|
1939
|
+
var result = object == null ? undefined : _baseGet(object, path);
|
|
1940
|
+
return result === undefined ? defaultValue : result;
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
var get_1 = get$1;
|
|
1944
|
+
|
|
749
1945
|
var DeckQueue = function (_React$Component) {
|
|
750
1946
|
inherits(DeckQueue, _React$Component);
|
|
751
1947
|
|
|
@@ -790,7 +1986,6 @@ var DeckQueue = function (_React$Component) {
|
|
|
790
1986
|
|
|
791
1987
|
var params = { from: from, to: to };
|
|
792
1988
|
var queryUpdated = query.replace('$from', params.from).replace('$to', params.to);
|
|
793
|
-
// const query = '*[_type == "article" && defined(title) && defined(thumbnail)][$from...$to] { title, summary, thumbnail { asset-> }, url }'
|
|
794
1989
|
|
|
795
1990
|
if (_this.pointer && _this.pointerArray) {
|
|
796
1991
|
var pointer = _this.pointer;
|
|
@@ -835,15 +2030,14 @@ var DeckQueue = function (_React$Component) {
|
|
|
835
2030
|
var mode = variant && variant === 'right' ? 'row-reverse' : 'row';
|
|
836
2031
|
var lgVar = Math.floor(12 / columns);
|
|
837
2032
|
|
|
838
|
-
console.log(this.state.from, this.state.to);
|
|
839
|
-
|
|
840
2033
|
return React__default.createElement(
|
|
841
2034
|
Row,
|
|
842
2035
|
null,
|
|
843
2036
|
this.state.data && this.state.data.map(function (row, index) {
|
|
2037
|
+
var thumbnailURL = get_1(row, 'thumbnail.asset.url', _this2.props.defaultImage);
|
|
844
2038
|
return React__default.createElement(
|
|
845
2039
|
Col,
|
|
846
|
-
{ md: 12, lg: lgVar, style: { display: 'flex', flex: '1 0 auto' } },
|
|
2040
|
+
{ key: index, md: 12, lg: lgVar, style: { display: 'flex', flex: '1 0 auto' } },
|
|
847
2041
|
React__default.createElement(
|
|
848
2042
|
Link,
|
|
849
2043
|
{ href: _this2.page + '/[url]', as: _this2.page + '/' + row.url.current },
|
|
@@ -859,7 +2053,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
859
2053
|
React__default.createElement(
|
|
860
2054
|
Col,
|
|
861
2055
|
{ md: 12, lg: 4 },
|
|
862
|
-
React__default.createElement(Card.Img, { variant: 'top', src:
|
|
2056
|
+
React__default.createElement(Card.Img, { variant: 'top', src: thumbnailURL })
|
|
863
2057
|
),
|
|
864
2058
|
React__default.createElement(
|
|
865
2059
|
Col,
|
|
@@ -900,7 +2094,7 @@ var DeckQueue = function (_React$Component) {
|
|
|
900
2094
|
|
|
901
2095
|
|
|
902
2096
|
return React__default.createElement(
|
|
903
|
-
'
|
|
2097
|
+
'div',
|
|
904
2098
|
{ className: 'contentDeck' },
|
|
905
2099
|
autoScroll ? React__default.createElement(
|
|
906
2100
|
InfiniteScroll,
|
|
@@ -972,7 +2166,8 @@ var ThumbnailCard = function ThumbnailCard(_ref) {
|
|
|
972
2166
|
var TaxonomyCard = function TaxonomyCard(props) {
|
|
973
2167
|
var columns = props.columns,
|
|
974
2168
|
variant = props.variant,
|
|
975
|
-
data = props.dataRecord
|
|
2169
|
+
data = props.dataRecord,
|
|
2170
|
+
defaultImage = props.defaultImage;
|
|
976
2171
|
|
|
977
2172
|
|
|
978
2173
|
var mode = variant && variant === 'bottom' ? 'column-reverse' : 'column';
|
|
@@ -994,6 +2189,7 @@ var TaxonomyCard = function TaxonomyCard(props) {
|
|
|
994
2189
|
} else {
|
|
995
2190
|
lgVar = 6;
|
|
996
2191
|
}
|
|
2192
|
+
var thumbnailURL = get_1(row, 'thumbnail.asset.url', defaultImage);
|
|
997
2193
|
|
|
998
2194
|
return React__default.createElement(
|
|
999
2195
|
Col,
|
|
@@ -1005,15 +2201,37 @@ var TaxonomyCard = function TaxonomyCard(props) {
|
|
|
1005
2201
|
Card.Body,
|
|
1006
2202
|
null,
|
|
1007
2203
|
React__default.createElement(
|
|
1008
|
-
|
|
1009
|
-
|
|
2204
|
+
Row,
|
|
2205
|
+
null,
|
|
2206
|
+
thumbnailURL && React__default.createElement(
|
|
2207
|
+
Col,
|
|
2208
|
+
null,
|
|
2209
|
+
React__default.createElement(Card.Img, { variant: 'top', src: thumbnailURL })
|
|
2210
|
+
),
|
|
1010
2211
|
React__default.createElement(
|
|
1011
|
-
|
|
2212
|
+
Col,
|
|
1012
2213
|
null,
|
|
1013
|
-
React__default.createElement(
|
|
2214
|
+
row.url ? React__default.createElement(
|
|
2215
|
+
Link,
|
|
2216
|
+
{ href: row.url, as: row.url },
|
|
2217
|
+
React__default.createElement(
|
|
2218
|
+
'a',
|
|
2219
|
+
null,
|
|
2220
|
+
React__default.createElement(
|
|
2221
|
+
Card.Title,
|
|
2222
|
+
null,
|
|
2223
|
+
row.name
|
|
2224
|
+
)
|
|
2225
|
+
)
|
|
2226
|
+
) : React__default.createElement(
|
|
1014
2227
|
Card.Title,
|
|
1015
2228
|
null,
|
|
1016
2229
|
row.name
|
|
2230
|
+
),
|
|
2231
|
+
React__default.createElement(
|
|
2232
|
+
Card.Text,
|
|
2233
|
+
null,
|
|
2234
|
+
row.summary
|
|
1017
2235
|
)
|
|
1018
2236
|
)
|
|
1019
2237
|
)
|
|
@@ -1092,6 +2310,25 @@ var LeftNav = function LeftNav(props) {
|
|
|
1092
2310
|
return false;
|
|
1093
2311
|
};
|
|
1094
2312
|
|
|
2313
|
+
var renderListGroupItem = function renderListGroupItem(subRow) {
|
|
2314
|
+
if (checkUrlIsExternal(subRow.url)) {
|
|
2315
|
+
return React__default.createElement(
|
|
2316
|
+
'a',
|
|
2317
|
+
{ href: subRow.url },
|
|
2318
|
+
subRow.name
|
|
2319
|
+
);
|
|
2320
|
+
}
|
|
2321
|
+
return React__default.createElement(
|
|
2322
|
+
Link,
|
|
2323
|
+
{ href: subRow.url || '#' },
|
|
2324
|
+
React__default.createElement(
|
|
2325
|
+
'a',
|
|
2326
|
+
null,
|
|
2327
|
+
subRow.name
|
|
2328
|
+
)
|
|
2329
|
+
);
|
|
2330
|
+
};
|
|
2331
|
+
|
|
1095
2332
|
return React__default.createElement(
|
|
1096
2333
|
'section',
|
|
1097
2334
|
null,
|
|
@@ -1112,15 +2349,7 @@ var LeftNav = function LeftNav(props) {
|
|
|
1112
2349
|
React__default.createElement(
|
|
1113
2350
|
ListGroup.Item,
|
|
1114
2351
|
{ as: 'li' },
|
|
1115
|
-
|
|
1116
|
-
Link,
|
|
1117
|
-
{ href: subRow.url || '#' },
|
|
1118
|
-
React__default.createElement(
|
|
1119
|
-
'a',
|
|
1120
|
-
null,
|
|
1121
|
-
subRow.name
|
|
1122
|
-
)
|
|
1123
|
-
)
|
|
2352
|
+
renderListGroupItem(subRow)
|
|
1124
2353
|
)
|
|
1125
2354
|
);
|
|
1126
2355
|
} else {
|
|
@@ -1130,19 +2359,7 @@ var LeftNav = function LeftNav(props) {
|
|
|
1130
2359
|
React__default.createElement(
|
|
1131
2360
|
ListGroup.Item,
|
|
1132
2361
|
{ as: 'li' },
|
|
1133
|
-
|
|
1134
|
-
'a',
|
|
1135
|
-
{ target: '_blank', href: subRow.url },
|
|
1136
|
-
subRow.name
|
|
1137
|
-
) : React__default.createElement(
|
|
1138
|
-
Link,
|
|
1139
|
-
{ href: subRow.url || '#' },
|
|
1140
|
-
React__default.createElement(
|
|
1141
|
-
'a',
|
|
1142
|
-
null,
|
|
1143
|
-
subRow.name
|
|
1144
|
-
)
|
|
1145
|
-
)
|
|
2362
|
+
renderListGroupItem(subRow)
|
|
1146
2363
|
)
|
|
1147
2364
|
);
|
|
1148
2365
|
}
|
|
@@ -1742,7 +2959,6 @@ var NavDvm = function NavDvm(props) {
|
|
|
1742
2959
|
React__default.createElement(
|
|
1743
2960
|
Container,
|
|
1744
2961
|
null,
|
|
1745
|
-
React__default.createElement(Nav, { className: 'justify-content-start leftHeader' }),
|
|
1746
2962
|
React__default.createElement(
|
|
1747
2963
|
Nav,
|
|
1748
2964
|
{ className: 'justify-content-center', style: { margin: '0 auto' } },
|
|
@@ -1759,8 +2975,7 @@ var NavDvm = function NavDvm(props) {
|
|
|
1759
2975
|
)
|
|
1760
2976
|
)
|
|
1761
2977
|
)
|
|
1762
|
-
)
|
|
1763
|
-
React__default.createElement(Nav, { className: 'justify-content-end rightHeader' })
|
|
2978
|
+
)
|
|
1764
2979
|
)
|
|
1765
2980
|
),
|
|
1766
2981
|
React__default.createElement(
|
|
@@ -1819,16 +3034,6 @@ var NavDvm = function NavDvm(props) {
|
|
|
1819
3034
|
);
|
|
1820
3035
|
};
|
|
1821
3036
|
|
|
1822
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
1823
|
-
|
|
1824
|
-
function unwrapExports (x) {
|
|
1825
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
1826
|
-
}
|
|
1827
|
-
|
|
1828
|
-
function createCommonjsModule(fn, module) {
|
|
1829
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
1830
|
-
}
|
|
1831
|
-
|
|
1832
3037
|
var domain;
|
|
1833
3038
|
|
|
1834
3039
|
// This constructor is used to store event handlers. Instantiating this is
|
|
@@ -3707,7 +4912,7 @@ var getYoutubeId = createCommonjsModule(function (module, exports) {
|
|
|
3707
4912
|
}));
|
|
3708
4913
|
});
|
|
3709
4914
|
|
|
3710
|
-
var isArray = Array.isArray;
|
|
4915
|
+
var isArray$1 = Array.isArray;
|
|
3711
4916
|
var keyList = Object.keys;
|
|
3712
4917
|
var hasProp = Object.prototype.hasOwnProperty;
|
|
3713
4918
|
|
|
@@ -3715,8 +4920,8 @@ var fastDeepEqual = function equal(a, b) {
|
|
|
3715
4920
|
if (a === b) return true;
|
|
3716
4921
|
|
|
3717
4922
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
3718
|
-
var arrA = isArray(a)
|
|
3719
|
-
, arrB = isArray(b)
|
|
4923
|
+
var arrA = isArray$1(a)
|
|
4924
|
+
, arrB = isArray$1(b)
|
|
3720
4925
|
, i
|
|
3721
4926
|
, length
|
|
3722
4927
|
, key;
|
|
@@ -4798,7 +6003,7 @@ function format(f) {
|
|
|
4798
6003
|
}
|
|
4799
6004
|
});
|
|
4800
6005
|
for (var x = args[i]; i < len; x = args[++i]) {
|
|
4801
|
-
if (isNull(x) || !isObject(x)) {
|
|
6006
|
+
if (isNull(x) || !isObject$1(x)) {
|
|
4802
6007
|
str += ' ' + x;
|
|
4803
6008
|
} else {
|
|
4804
6009
|
str += ' ' + inspect(x);
|
|
@@ -4949,7 +6154,7 @@ function formatValue(ctx, value, recurseTimes) {
|
|
|
4949
6154
|
// Check that value is an object with an inspect function on it
|
|
4950
6155
|
if (ctx.customInspect &&
|
|
4951
6156
|
value &&
|
|
4952
|
-
isFunction(value.inspect) &&
|
|
6157
|
+
isFunction$1(value.inspect) &&
|
|
4953
6158
|
// Filter out the util module, it's inspect function is special
|
|
4954
6159
|
value.inspect !== inspect &&
|
|
4955
6160
|
// Also filter out any prototype objects using the circular check.
|
|
@@ -4984,7 +6189,7 @@ function formatValue(ctx, value, recurseTimes) {
|
|
|
4984
6189
|
|
|
4985
6190
|
// Some type of object without properties can be shortcutted.
|
|
4986
6191
|
if (keys.length === 0) {
|
|
4987
|
-
if (isFunction(value)) {
|
|
6192
|
+
if (isFunction$1(value)) {
|
|
4988
6193
|
var name = value.name ? ': ' + value.name : '';
|
|
4989
6194
|
return ctx.stylize('[Function' + name + ']', 'special');
|
|
4990
6195
|
}
|
|
@@ -5002,13 +6207,13 @@ function formatValue(ctx, value, recurseTimes) {
|
|
|
5002
6207
|
var base = '', array = false, braces = ['{', '}'];
|
|
5003
6208
|
|
|
5004
6209
|
// Make Array say that they are Array
|
|
5005
|
-
if (isArray$
|
|
6210
|
+
if (isArray$2(value)) {
|
|
5006
6211
|
array = true;
|
|
5007
6212
|
braces = ['[', ']'];
|
|
5008
6213
|
}
|
|
5009
6214
|
|
|
5010
6215
|
// Make functions say that they are functions
|
|
5011
|
-
if (isFunction(value)) {
|
|
6216
|
+
if (isFunction$1(value)) {
|
|
5012
6217
|
var n = value.name ? ': ' + value.name : '';
|
|
5013
6218
|
base = ' [Function' + n + ']';
|
|
5014
6219
|
}
|
|
@@ -5084,7 +6289,7 @@ function formatError(value) {
|
|
|
5084
6289
|
function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
|
|
5085
6290
|
var output = [];
|
|
5086
6291
|
for (var i = 0, l = value.length; i < l; ++i) {
|
|
5087
|
-
if (hasOwnProperty(value, String(i))) {
|
|
6292
|
+
if (hasOwnProperty$4(value, String(i))) {
|
|
5088
6293
|
output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,
|
|
5089
6294
|
String(i), true));
|
|
5090
6295
|
} else {
|
|
@@ -5115,7 +6320,7 @@ function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
|
|
|
5115
6320
|
str = ctx.stylize('[Setter]', 'special');
|
|
5116
6321
|
}
|
|
5117
6322
|
}
|
|
5118
|
-
if (!hasOwnProperty(visibleKeys, key)) {
|
|
6323
|
+
if (!hasOwnProperty$4(visibleKeys, key)) {
|
|
5119
6324
|
name = '[' + key + ']';
|
|
5120
6325
|
}
|
|
5121
6326
|
if (!str) {
|
|
@@ -5181,7 +6386,7 @@ function reduceToSingleString(output, base, braces) {
|
|
|
5181
6386
|
|
|
5182
6387
|
// NOTE: These type checking functions intentionally don't use `instanceof`
|
|
5183
6388
|
// because it is fragile and can be easily faked with `Object.create()`.
|
|
5184
|
-
function isArray$
|
|
6389
|
+
function isArray$2(ar) {
|
|
5185
6390
|
return Array.isArray(ar);
|
|
5186
6391
|
}
|
|
5187
6392
|
|
|
@@ -5205,7 +6410,7 @@ function isString(arg) {
|
|
|
5205
6410
|
return typeof arg === 'string';
|
|
5206
6411
|
}
|
|
5207
6412
|
|
|
5208
|
-
function isSymbol(arg) {
|
|
6413
|
+
function isSymbol$1(arg) {
|
|
5209
6414
|
return typeof arg === 'symbol';
|
|
5210
6415
|
}
|
|
5211
6416
|
|
|
@@ -5214,23 +6419,23 @@ function isUndefined(arg) {
|
|
|
5214
6419
|
}
|
|
5215
6420
|
|
|
5216
6421
|
function isRegExp(re) {
|
|
5217
|
-
return isObject(re) && objectToString(re) === '[object RegExp]';
|
|
6422
|
+
return isObject$1(re) && objectToString$1(re) === '[object RegExp]';
|
|
5218
6423
|
}
|
|
5219
6424
|
|
|
5220
|
-
function isObject(arg) {
|
|
6425
|
+
function isObject$1(arg) {
|
|
5221
6426
|
return typeof arg === 'object' && arg !== null;
|
|
5222
6427
|
}
|
|
5223
6428
|
|
|
5224
6429
|
function isDate(d) {
|
|
5225
|
-
return isObject(d) && objectToString(d) === '[object Date]';
|
|
6430
|
+
return isObject$1(d) && objectToString$1(d) === '[object Date]';
|
|
5226
6431
|
}
|
|
5227
6432
|
|
|
5228
6433
|
function isError(e) {
|
|
5229
|
-
return isObject(e) &&
|
|
5230
|
-
(objectToString(e) === '[object Error]' || e instanceof Error);
|
|
6434
|
+
return isObject$1(e) &&
|
|
6435
|
+
(objectToString$1(e) === '[object Error]' || e instanceof Error);
|
|
5231
6436
|
}
|
|
5232
6437
|
|
|
5233
|
-
function isFunction(arg) {
|
|
6438
|
+
function isFunction$1(arg) {
|
|
5234
6439
|
return typeof arg === 'function';
|
|
5235
6440
|
}
|
|
5236
6441
|
|
|
@@ -5247,7 +6452,7 @@ function isBuffer(maybeBuf) {
|
|
|
5247
6452
|
return Buffer.isBuffer(maybeBuf);
|
|
5248
6453
|
}
|
|
5249
6454
|
|
|
5250
|
-
function objectToString(o) {
|
|
6455
|
+
function objectToString$1(o) {
|
|
5251
6456
|
return Object.prototype.toString.call(o);
|
|
5252
6457
|
}
|
|
5253
6458
|
|
|
@@ -5277,7 +6482,7 @@ function log() {
|
|
|
5277
6482
|
|
|
5278
6483
|
function _extend(origin, add) {
|
|
5279
6484
|
// Don't do anything if add isn't an object
|
|
5280
|
-
if (!add || !isObject(add)) return origin;
|
|
6485
|
+
if (!add || !isObject$1(add)) return origin;
|
|
5281
6486
|
|
|
5282
6487
|
var keys = Object.keys(add);
|
|
5283
6488
|
var i = keys.length;
|
|
@@ -5286,7 +6491,7 @@ function _extend(origin, add) {
|
|
|
5286
6491
|
}
|
|
5287
6492
|
return origin;
|
|
5288
6493
|
}
|
|
5289
|
-
function hasOwnProperty(obj, prop) {
|
|
6494
|
+
function hasOwnProperty$4(obj, prop) {
|
|
5290
6495
|
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
5291
6496
|
}
|
|
5292
6497
|
|
|
@@ -5296,19 +6501,19 @@ var util = {
|
|
|
5296
6501
|
log: log,
|
|
5297
6502
|
isBuffer: isBuffer,
|
|
5298
6503
|
isPrimitive: isPrimitive,
|
|
5299
|
-
isFunction: isFunction,
|
|
6504
|
+
isFunction: isFunction$1,
|
|
5300
6505
|
isError: isError,
|
|
5301
6506
|
isDate: isDate,
|
|
5302
|
-
isObject: isObject,
|
|
6507
|
+
isObject: isObject$1,
|
|
5303
6508
|
isRegExp: isRegExp,
|
|
5304
6509
|
isUndefined: isUndefined,
|
|
5305
|
-
isSymbol: isSymbol,
|
|
6510
|
+
isSymbol: isSymbol$1,
|
|
5306
6511
|
isString: isString,
|
|
5307
6512
|
isNumber: isNumber,
|
|
5308
6513
|
isNullOrUndefined: isNullOrUndefined,
|
|
5309
6514
|
isNull: isNull,
|
|
5310
6515
|
isBoolean: isBoolean,
|
|
5311
|
-
isArray: isArray$
|
|
6516
|
+
isArray: isArray$2,
|
|
5312
6517
|
inspect: inspect,
|
|
5313
6518
|
deprecate: deprecate,
|
|
5314
6519
|
format: format,
|
|
@@ -6356,43 +7561,5 @@ var getSerializers = function getSerializers(client) {
|
|
|
6356
7561
|
};
|
|
6357
7562
|
};
|
|
6358
7563
|
|
|
6359
|
-
|
|
6360
|
-
var searchResults = _ref.searchResults,
|
|
6361
|
-
searchTerm = _ref.searchTerm;
|
|
6362
|
-
|
|
6363
|
-
return React__default.createElement(
|
|
6364
|
-
React__default.Fragment,
|
|
6365
|
-
null,
|
|
6366
|
-
React__default.createElement(
|
|
6367
|
-
'p',
|
|
6368
|
-
null,
|
|
6369
|
-
' Results for "',
|
|
6370
|
-
searchTerm,
|
|
6371
|
-
'" '
|
|
6372
|
-
),
|
|
6373
|
-
searchResults && searchResults.length > 0 ? searchResults.map(function (item, index) {
|
|
6374
|
-
return React__default.createElement(
|
|
6375
|
-
'div',
|
|
6376
|
-
{ key: index, className: 'search-result-container' },
|
|
6377
|
-
React__default.createElement(
|
|
6378
|
-
'h5',
|
|
6379
|
-
null,
|
|
6380
|
-
item.title
|
|
6381
|
-
),
|
|
6382
|
-
React__default.createElement(
|
|
6383
|
-
'p',
|
|
6384
|
-
null,
|
|
6385
|
-
item.summary,
|
|
6386
|
-
' '
|
|
6387
|
-
)
|
|
6388
|
-
);
|
|
6389
|
-
}) : React__default.createElement(
|
|
6390
|
-
'div',
|
|
6391
|
-
null,
|
|
6392
|
-
'No results found'
|
|
6393
|
-
)
|
|
6394
|
-
);
|
|
6395
|
-
};
|
|
6396
|
-
|
|
6397
|
-
export { DeckContent, DeckQueue, ThumbnailCard, TaxonomyCard, Column1, Column2, Column3, Header, LeftNav, AccordionPanel, NavMagazine, NavNative, NavNormal, NavDvm, TemplateNormal, AD300x250, AD300x250x600, AD728x90, getSerializers, searchResult as SearchResult, Search$1 as Search };
|
|
7564
|
+
export { DeckContent, DeckQueue, ThumbnailCard, TaxonomyCard, Column1, Column2, Column3, Header, LeftNav, AccordionPanel, NavMagazine, NavNative, NavNormal, NavDvm, TemplateNormal, AD300x250, AD300x250x600, AD728x90, getSerializers, Search$1 as Search };
|
|
6398
7565
|
//# sourceMappingURL=index.es.js.map
|