@windwalker-io/unicorn-next 0.1.18 → 0.1.21
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/chunks/_arrayPush.js +325 -108
- package/dist/chunks/_arrayPush.js.map +1 -1
- package/dist/chunks/_baseRest.js +155 -60
- package/dist/chunks/_baseRest.js.map +1 -1
- package/dist/chunks/_baseUnary.js +463 -0
- package/dist/chunks/_baseUnary.js.map +1 -0
- package/dist/chunks/_getPrototype.js +292 -100
- package/dist/chunks/_getPrototype.js.map +1 -1
- package/dist/chunks/alert-adapter.js +29 -0
- package/dist/chunks/alert-adapter.js.map +1 -0
- package/dist/chunks/alert.js +21 -0
- package/dist/chunks/alert.js.map +1 -0
- package/dist/chunks/arr.js +24 -0
- package/dist/chunks/arr.js.map +1 -0
- package/dist/chunks/button-radio.js +127 -145
- package/dist/chunks/button-radio.js.map +1 -1
- package/dist/chunks/checkboxes-multi-select.js +44 -43
- package/dist/chunks/checkboxes-multi-select.js.map +1 -1
- package/dist/chunks/chunk.js +24 -0
- package/dist/chunks/cloneDeep.js +679 -212
- package/dist/chunks/cloneDeep.js.map +1 -1
- package/dist/chunks/cropper.min.js +6 -5
- package/dist/chunks/cropper.min.js.map +1 -1
- package/dist/chunks/crypto.js +26 -0
- package/dist/chunks/crypto.js.map +1 -0
- package/dist/chunks/data.js +49 -0
- package/dist/chunks/data.js.map +1 -0
- package/dist/chunks/dom.js +128 -0
- package/dist/chunks/dom.js.map +1 -0
- package/dist/chunks/events.js +270 -0
- package/dist/chunks/events.js.map +1 -0
- package/dist/chunks/field-cascade-select.js +207 -250
- package/dist/chunks/field-cascade-select.js.map +1 -1
- package/dist/chunks/field-file-drag.js +175 -209
- package/dist/chunks/field-file-drag.js.map +1 -1
- package/dist/chunks/field-flatpickr.js +94 -898
- package/dist/chunks/field-flatpickr.js.map +1 -1
- package/dist/chunks/field-modal-select.js +728 -467
- package/dist/chunks/field-modal-select.js.map +1 -1
- package/dist/chunks/field-modal-tree.js +771 -766
- package/dist/chunks/field-modal-tree.js.map +1 -1
- package/dist/chunks/field-multi-uploader.js +249 -256
- package/dist/chunks/field-multi-uploader.js.map +1 -1
- package/dist/chunks/field-repeatable.js +111 -127
- package/dist/chunks/field-repeatable.js.map +1 -1
- package/dist/chunks/field-single-image-drag.js +286 -338
- package/dist/chunks/field-single-image-drag.js.map +1 -1
- package/dist/chunks/form.js +146 -159
- package/dist/chunks/form.js.map +1 -1
- package/dist/chunks/grid.js +349 -418
- package/dist/chunks/grid.js.map +1 -1
- package/dist/chunks/helper.js +39 -0
- package/dist/chunks/helper.js.map +1 -0
- package/dist/chunks/http-client.js +221 -211
- package/dist/chunks/http-client.js.map +1 -1
- package/dist/chunks/iframe-modal.js +95 -115
- package/dist/chunks/iframe-modal.js.map +1 -1
- package/dist/chunks/keep-tab.js +92 -101
- package/dist/chunks/keep-tab.js.map +1 -1
- package/dist/chunks/lang.js +250 -0
- package/dist/chunks/lang.js.map +1 -0
- package/dist/chunks/legacy.js +197 -201
- package/dist/chunks/legacy.js.map +1 -1
- package/dist/chunks/list-dependent.js +195 -228
- package/dist/chunks/list-dependent.js.map +1 -1
- package/dist/chunks/loader.js +106 -0
- package/dist/chunks/loader.js.map +1 -0
- package/dist/chunks/monthSelect.js +251 -0
- package/dist/chunks/monthSelect.js.map +1 -0
- package/dist/chunks/router.js +111 -0
- package/dist/chunks/router.js.map +1 -0
- package/dist/chunks/s3-multipart-uploader.js +183 -210
- package/dist/chunks/s3-multipart-uploader.js.map +1 -1
- package/dist/chunks/s3-uploader.js +106 -128
- package/dist/chunks/s3-uploader.js.map +1 -1
- package/dist/chunks/show-on.js +358 -205
- package/dist/chunks/show-on.js.map +1 -1
- package/dist/chunks/timing.js +10 -0
- package/dist/chunks/timing.js.map +1 -0
- package/dist/chunks/tinymce.js +153 -203
- package/dist/chunks/tinymce.js.map +1 -1
- package/dist/chunks/ui-bootstrap5.js +58 -72
- package/dist/chunks/ui-bootstrap5.js.map +1 -1
- package/dist/chunks/ui.js +320 -0
- package/dist/chunks/ui.js.map +1 -0
- package/dist/chunks/unicorn.js.map +1 -1
- package/dist/chunks/useQueue.js +111 -0
- package/dist/chunks/useQueue.js.map +1 -0
- package/dist/chunks/useStack.js +76 -0
- package/dist/chunks/useStack.js.map +1 -0
- package/dist/chunks/validation.js +761 -853
- package/dist/chunks/validation.js.map +1 -1
- package/dist/editor.css +1 -1
- package/dist/index.d.ts +27 -15
- package/dist/multi-level-menu.css +1 -1
- package/dist/switcher.css +1 -1
- package/dist/unicorn.js +805 -130
- package/dist/unicorn.js.map +1 -1
- package/package.json +3 -3
- package/src/composable/useBsModalAlert.ts +92 -12
- package/src/composable/useHttp.ts +13 -1
- package/src/module/s3-uploader.ts +1 -1
- package/src/service/ui.ts +31 -15
- package/vite.config.ts +5 -1
- package/dist/chunks/_commonjsHelpers.js +0 -7
- package/dist/chunks/index.js +0 -314
- package/dist/chunks/isArguments.js +0 -146
- package/dist/chunks/unicorn.js +0 -2580
|
@@ -1,130 +1,322 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as eq, d as isObjectLike, f as baseGetTag, h as freeGlobal, i as isLength, m as root, n as isArguments, o as defineProperty, r as isArrayLike, t as baseUnary, u as isArray } from "./_baseUnary.js";
|
|
2
|
+
//#region ../../../../node_modules/lodash-es/_arrayEach.js
|
|
3
|
+
/**
|
|
4
|
+
* A specialized version of `_.forEach` for arrays without support for
|
|
5
|
+
* iteratee shorthands.
|
|
6
|
+
*
|
|
7
|
+
* @private
|
|
8
|
+
* @param {Array} [array] The array to iterate over.
|
|
9
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
10
|
+
* @returns {Array} Returns `array`.
|
|
11
|
+
*/
|
|
12
|
+
function arrayEach(array, iteratee) {
|
|
13
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
14
|
+
while (++index < length) if (iteratee(array[index], index, array) === false) break;
|
|
15
|
+
return array;
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region ../../../../node_modules/lodash-es/_isIndex.js
|
|
19
|
+
/** Used as references for various `Number` constants. */
|
|
2
20
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
21
|
+
/** Used to detect unsigned integer values. */
|
|
3
22
|
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
23
|
+
/**
|
|
24
|
+
* Checks if `value` is a valid array-like index.
|
|
25
|
+
*
|
|
26
|
+
* @private
|
|
27
|
+
* @param {*} value The value to check.
|
|
28
|
+
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
29
|
+
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
30
|
+
*/
|
|
4
31
|
function isIndex(value, length) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
32
|
+
var type = typeof value;
|
|
33
|
+
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
34
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
|
|
8
35
|
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region ../../../../node_modules/lodash-es/_baseAssignValue.js
|
|
38
|
+
/**
|
|
39
|
+
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
40
|
+
* value checks.
|
|
41
|
+
*
|
|
42
|
+
* @private
|
|
43
|
+
* @param {Object} object The object to modify.
|
|
44
|
+
* @param {string} key The key of the property to assign.
|
|
45
|
+
* @param {*} value The value to assign.
|
|
46
|
+
*/
|
|
9
47
|
function baseAssignValue(object, key, value) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} else {
|
|
18
|
-
object[key] = value;
|
|
19
|
-
}
|
|
48
|
+
if (key == "__proto__" && defineProperty) defineProperty(object, key, {
|
|
49
|
+
"configurable": true,
|
|
50
|
+
"enumerable": true,
|
|
51
|
+
"value": value,
|
|
52
|
+
"writable": true
|
|
53
|
+
});
|
|
54
|
+
else object[key] = value;
|
|
20
55
|
}
|
|
21
|
-
|
|
22
|
-
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region ../../../../node_modules/lodash-es/_assignValue.js
|
|
58
|
+
/** Used to check objects for own properties. */
|
|
59
|
+
var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
|
|
60
|
+
/**
|
|
61
|
+
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
62
|
+
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
63
|
+
* for equality comparisons.
|
|
64
|
+
*
|
|
65
|
+
* @private
|
|
66
|
+
* @param {Object} object The object to modify.
|
|
67
|
+
* @param {string} key The key of the property to assign.
|
|
68
|
+
* @param {*} value The value to assign.
|
|
69
|
+
*/
|
|
23
70
|
function assignValue(object, key, value) {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
71
|
+
var objValue = object[key];
|
|
72
|
+
if (!(hasOwnProperty$2.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) baseAssignValue(object, key, value);
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region ../../../../node_modules/lodash-es/_copyObject.js
|
|
76
|
+
/**
|
|
77
|
+
* Copies properties of `source` to `object`.
|
|
78
|
+
*
|
|
79
|
+
* @private
|
|
80
|
+
* @param {Object} source The object to copy properties from.
|
|
81
|
+
* @param {Array} props The property identifiers to copy.
|
|
82
|
+
* @param {Object} [object={}] The object to copy properties to.
|
|
83
|
+
* @param {Function} [customizer] The function to customize copied values.
|
|
84
|
+
* @returns {Object} Returns `object`.
|
|
85
|
+
*/
|
|
86
|
+
function copyObject(source, props, object, customizer) {
|
|
87
|
+
var isNew = !object;
|
|
88
|
+
object || (object = {});
|
|
89
|
+
var index = -1, length = props.length;
|
|
90
|
+
while (++index < length) {
|
|
91
|
+
var key = props[index];
|
|
92
|
+
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
93
|
+
if (newValue === void 0) newValue = source[key];
|
|
94
|
+
if (isNew) baseAssignValue(object, key, newValue);
|
|
95
|
+
else assignValue(object, key, newValue);
|
|
96
|
+
}
|
|
97
|
+
return object;
|
|
28
98
|
}
|
|
29
|
-
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region ../../../../node_modules/lodash-es/_isPrototype.js
|
|
101
|
+
/** Used for built-in method references. */
|
|
102
|
+
var objectProto = Object.prototype;
|
|
103
|
+
/**
|
|
104
|
+
* Checks if `value` is likely a prototype object.
|
|
105
|
+
*
|
|
106
|
+
* @private
|
|
107
|
+
* @param {*} value The value to check.
|
|
108
|
+
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
109
|
+
*/
|
|
30
110
|
function isPrototype(value) {
|
|
31
|
-
|
|
32
|
-
|
|
111
|
+
var Ctor = value && value.constructor;
|
|
112
|
+
return value === (typeof Ctor == "function" && Ctor.prototype || objectProto);
|
|
33
113
|
}
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region ../../../../node_modules/lodash-es/_baseTimes.js
|
|
116
|
+
/**
|
|
117
|
+
* The base implementation of `_.times` without support for iteratee shorthands
|
|
118
|
+
* or max array length checks.
|
|
119
|
+
*
|
|
120
|
+
* @private
|
|
121
|
+
* @param {number} n The number of times to invoke `iteratee`.
|
|
122
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
123
|
+
* @returns {Array} Returns the array of results.
|
|
124
|
+
*/
|
|
34
125
|
function baseTimes(n, iteratee) {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
return result;
|
|
126
|
+
var index = -1, result = Array(n);
|
|
127
|
+
while (++index < n) result[index] = iteratee(index);
|
|
128
|
+
return result;
|
|
40
129
|
}
|
|
130
|
+
//#endregion
|
|
131
|
+
//#region ../../../../node_modules/lodash-es/stubFalse.js
|
|
132
|
+
/**
|
|
133
|
+
* This method returns `false`.
|
|
134
|
+
*
|
|
135
|
+
* @static
|
|
136
|
+
* @memberOf _
|
|
137
|
+
* @since 4.13.0
|
|
138
|
+
* @category Util
|
|
139
|
+
* @returns {boolean} Returns `false`.
|
|
140
|
+
* @example
|
|
141
|
+
*
|
|
142
|
+
* _.times(2, _.stubFalse);
|
|
143
|
+
* // => [false, false]
|
|
144
|
+
*/
|
|
41
145
|
function stubFalse() {
|
|
42
|
-
|
|
146
|
+
return false;
|
|
43
147
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
var
|
|
48
|
-
|
|
49
|
-
var
|
|
148
|
+
//#endregion
|
|
149
|
+
//#region ../../../../node_modules/lodash-es/isBuffer.js
|
|
150
|
+
/** Detect free variable `exports`. */
|
|
151
|
+
var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
152
|
+
/** Detect free variable `module`. */
|
|
153
|
+
var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
|
|
154
|
+
/** Built-in value references. */
|
|
155
|
+
var Buffer = freeModule$1 && freeModule$1.exports === freeExports$1 ? root.Buffer : void 0;
|
|
156
|
+
/**
|
|
157
|
+
* Checks if `value` is a buffer.
|
|
158
|
+
*
|
|
159
|
+
* @static
|
|
160
|
+
* @memberOf _
|
|
161
|
+
* @since 4.3.0
|
|
162
|
+
* @category Lang
|
|
163
|
+
* @param {*} value The value to check.
|
|
164
|
+
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
|
165
|
+
* @example
|
|
166
|
+
*
|
|
167
|
+
* _.isBuffer(new Buffer(2));
|
|
168
|
+
* // => true
|
|
169
|
+
*
|
|
170
|
+
* _.isBuffer(new Uint8Array(2));
|
|
171
|
+
* // => false
|
|
172
|
+
*/
|
|
173
|
+
var isBuffer = (Buffer ? Buffer.isBuffer : void 0) || stubFalse;
|
|
174
|
+
//#endregion
|
|
175
|
+
//#region ../../../../node_modules/lodash-es/_baseIsTypedArray.js
|
|
176
|
+
/** `Object#toString` result references. */
|
|
50
177
|
var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", weakMapTag = "[object WeakMap]";
|
|
51
178
|
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
179
|
+
/** Used to identify `toStringTag` values of typed arrays. */
|
|
52
180
|
var typedArrayTags = {};
|
|
53
181
|
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
|
|
54
182
|
typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
|
|
183
|
+
/**
|
|
184
|
+
* The base implementation of `_.isTypedArray` without Node.js optimizations.
|
|
185
|
+
*
|
|
186
|
+
* @private
|
|
187
|
+
* @param {*} value The value to check.
|
|
188
|
+
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
189
|
+
*/
|
|
55
190
|
function baseIsTypedArray(value) {
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
function baseUnary(func) {
|
|
59
|
-
return function(value) {
|
|
60
|
-
return func(value);
|
|
61
|
-
};
|
|
191
|
+
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
62
192
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
var
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
193
|
+
//#endregion
|
|
194
|
+
//#region ../../../../node_modules/lodash-es/_nodeUtil.js
|
|
195
|
+
/** Detect free variable `exports`. */
|
|
196
|
+
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
197
|
+
/** Detect free variable `module`. */
|
|
198
|
+
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
199
|
+
/** Detect free variable `process` from Node.js. */
|
|
200
|
+
var freeProcess = freeModule && freeModule.exports === freeExports && freeGlobal.process;
|
|
201
|
+
/** Used to access faster Node.js helpers. */
|
|
202
|
+
var nodeUtil = /* @__PURE__ */ function() {
|
|
203
|
+
try {
|
|
204
|
+
var types = freeModule && freeModule.require && freeModule.require("util").types;
|
|
205
|
+
if (types) return types;
|
|
206
|
+
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
207
|
+
} catch (e) {}
|
|
208
|
+
}();
|
|
209
|
+
//#endregion
|
|
210
|
+
//#region ../../../../node_modules/lodash-es/isTypedArray.js
|
|
211
|
+
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
212
|
+
/**
|
|
213
|
+
* Checks if `value` is classified as a typed array.
|
|
214
|
+
*
|
|
215
|
+
* @static
|
|
216
|
+
* @memberOf _
|
|
217
|
+
* @since 3.0.0
|
|
218
|
+
* @category Lang
|
|
219
|
+
* @param {*} value The value to check.
|
|
220
|
+
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
221
|
+
* @example
|
|
222
|
+
*
|
|
223
|
+
* _.isTypedArray(new Uint8Array);
|
|
224
|
+
* // => true
|
|
225
|
+
*
|
|
226
|
+
* _.isTypedArray([]);
|
|
227
|
+
* // => false
|
|
228
|
+
*/
|
|
78
229
|
var isTypedArray = nodeIsTypedArray ? /* @__PURE__ */ baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
79
|
-
|
|
80
|
-
|
|
230
|
+
//#endregion
|
|
231
|
+
//#region ../../../../node_modules/lodash-es/_arrayLikeKeys.js
|
|
232
|
+
/** Used to check objects for own properties. */
|
|
233
|
+
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
234
|
+
/**
|
|
235
|
+
* Creates an array of the enumerable property names of the array-like `value`.
|
|
236
|
+
*
|
|
237
|
+
* @private
|
|
238
|
+
* @param {*} value The value to query.
|
|
239
|
+
* @param {boolean} inherited Specify returning inherited property names.
|
|
240
|
+
* @returns {Array} Returns the array of property names.
|
|
241
|
+
*/
|
|
81
242
|
function arrayLikeKeys(value, inherited) {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
86
|
-
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
87
|
-
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
88
|
-
isIndex(key, length)))) {
|
|
89
|
-
result.push(key);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
return result;
|
|
243
|
+
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
244
|
+
for (var key in value) if ((inherited || hasOwnProperty$1.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) result.push(key);
|
|
245
|
+
return result;
|
|
93
246
|
}
|
|
247
|
+
//#endregion
|
|
248
|
+
//#region ../../../../node_modules/lodash-es/_overArg.js
|
|
249
|
+
/**
|
|
250
|
+
* Creates a unary function that invokes `func` with its argument transformed.
|
|
251
|
+
*
|
|
252
|
+
* @private
|
|
253
|
+
* @param {Function} func The function to wrap.
|
|
254
|
+
* @param {Function} transform The argument transform.
|
|
255
|
+
* @returns {Function} Returns the new function.
|
|
256
|
+
*/
|
|
94
257
|
function overArg(func, transform) {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
258
|
+
return function(arg) {
|
|
259
|
+
return func(transform(arg));
|
|
260
|
+
};
|
|
98
261
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
var
|
|
262
|
+
//#endregion
|
|
263
|
+
//#region ../../../../node_modules/lodash-es/_nativeKeys.js
|
|
264
|
+
var nativeKeys = /* @__PURE__ */ overArg(Object.keys, Object);
|
|
265
|
+
//#endregion
|
|
266
|
+
//#region ../../../../node_modules/lodash-es/_baseKeys.js
|
|
267
|
+
/** Used to check objects for own properties. */
|
|
268
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
269
|
+
/**
|
|
270
|
+
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
271
|
+
*
|
|
272
|
+
* @private
|
|
273
|
+
* @param {Object} object The object to query.
|
|
274
|
+
* @returns {Array} Returns the array of property names.
|
|
275
|
+
*/
|
|
102
276
|
function baseKeys(object) {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
for (var key in Object(object)) {
|
|
108
|
-
if (hasOwnProperty.call(object, key) && key != "constructor") {
|
|
109
|
-
result.push(key);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
return result;
|
|
277
|
+
if (!isPrototype(object)) return nativeKeys(object);
|
|
278
|
+
var result = [];
|
|
279
|
+
for (var key in Object(object)) if (hasOwnProperty.call(object, key) && key != "constructor") result.push(key);
|
|
280
|
+
return result;
|
|
113
281
|
}
|
|
282
|
+
//#endregion
|
|
283
|
+
//#region ../../../../node_modules/lodash-es/keys.js
|
|
284
|
+
/**
|
|
285
|
+
* Creates an array of the own enumerable property names of `object`.
|
|
286
|
+
*
|
|
287
|
+
* **Note:** Non-object values are coerced to objects. See the
|
|
288
|
+
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
289
|
+
* for more details.
|
|
290
|
+
*
|
|
291
|
+
* @static
|
|
292
|
+
* @since 0.1.0
|
|
293
|
+
* @memberOf _
|
|
294
|
+
* @category Object
|
|
295
|
+
* @param {Object} object The object to query.
|
|
296
|
+
* @returns {Array} Returns the array of property names.
|
|
297
|
+
* @example
|
|
298
|
+
*
|
|
299
|
+
* function Foo() {
|
|
300
|
+
* this.a = 1;
|
|
301
|
+
* this.b = 2;
|
|
302
|
+
* }
|
|
303
|
+
*
|
|
304
|
+
* Foo.prototype.c = 3;
|
|
305
|
+
*
|
|
306
|
+
* _.keys(new Foo);
|
|
307
|
+
* // => ['a', 'b'] (iteration order is not guaranteed)
|
|
308
|
+
*
|
|
309
|
+
* _.keys('hi');
|
|
310
|
+
* // => ['0', '1']
|
|
311
|
+
*/
|
|
114
312
|
function keys(object) {
|
|
115
|
-
|
|
313
|
+
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
116
314
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
getPrototype as g,
|
|
126
|
-
isIndex as i,
|
|
127
|
-
keys as k,
|
|
128
|
-
nodeUtil as n
|
|
129
|
-
};
|
|
130
|
-
//# sourceMappingURL=_getPrototype.js.map
|
|
315
|
+
//#endregion
|
|
316
|
+
//#region ../../../../node_modules/lodash-es/_getPrototype.js
|
|
317
|
+
/** Built-in value references. */
|
|
318
|
+
var getPrototype = /* @__PURE__ */ overArg(Object.getPrototypeOf, Object);
|
|
319
|
+
//#endregion
|
|
320
|
+
export { isBuffer as a, assignValue as c, nodeUtil as i, isIndex as l, keys as n, isPrototype as o, arrayLikeKeys as r, copyObject as s, getPrototype as t, arrayEach as u };
|
|
321
|
+
|
|
322
|
+
//# sourceMappingURL=_getPrototype.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_getPrototype.js","sources":["../../../../../../node_modules/lodash-es/_isIndex.js","../../../../../../node_modules/lodash-es/_baseAssignValue.js","../../../../../../node_modules/lodash-es/_assignValue.js","../../../../../../node_modules/lodash-es/_isPrototype.js","../../../../../../node_modules/lodash-es/_baseTimes.js","../../../../../../node_modules/lodash-es/stubFalse.js","../../../../../../node_modules/lodash-es/isBuffer.js","../../../../../../node_modules/lodash-es/_baseIsTypedArray.js","../../../../../../node_modules/lodash-es/_baseUnary.js","../../../../../../node_modules/lodash-es/_nodeUtil.js","../../../../../../node_modules/lodash-es/isTypedArray.js","../../../../../../node_modules/lodash-es/_arrayLikeKeys.js","../../../../../../node_modules/lodash-es/_overArg.js","../../../../../../node_modules/lodash-es/_nativeKeys.js","../../../../../../node_modules/lodash-es/_baseKeys.js","../../../../../../node_modules/lodash-es/keys.js","../../../../../../node_modules/lodash-es/_getPrototype.js"],"sourcesContent":["/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nexport default isIndex;\n","import defineProperty from './_defineProperty.js';\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\nexport default baseAssignValue;\n","import baseAssignValue from './_baseAssignValue.js';\nimport eq from './eq.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nexport default assignValue;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nexport default isPrototype;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nexport default baseTimes;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nexport default stubFalse;\n","import root from './_root.js';\nimport stubFalse from './stubFalse.js';\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nexport default isBuffer;\n","import baseGetTag from './_baseGetTag.js';\nimport isLength from './isLength.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nexport default baseIsTypedArray;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nexport default baseUnary;\n","import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nexport default nodeUtil;\n","import baseIsTypedArray from './_baseIsTypedArray.js';\nimport baseUnary from './_baseUnary.js';\nimport nodeUtil from './_nodeUtil.js';\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nexport default isTypedArray;\n","import baseTimes from './_baseTimes.js';\nimport isArguments from './isArguments.js';\nimport isArray from './isArray.js';\nimport isBuffer from './isBuffer.js';\nimport isIndex from './_isIndex.js';\nimport isTypedArray from './isTypedArray.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nexport default arrayLikeKeys;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nexport default overArg;\n","import overArg from './_overArg.js';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nexport default nativeKeys;\n","import isPrototype from './_isPrototype.js';\nimport nativeKeys from './_nativeKeys.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\nexport default baseKeys;\n","import arrayLikeKeys from './_arrayLikeKeys.js';\nimport baseKeys from './_baseKeys.js';\nimport isArrayLike from './isArrayLike.js';\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nexport default keys;\n","import overArg from './_overArg.js';\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nexport default getPrototype;\n"],"names":["objectProto","hasOwnProperty","freeExports","freeModule","moduleExports"],"mappings":";AACA,IAAI,mBAAmB;AAGvB,IAAI,WAAW;AAUf,SAAS,QAAQ,OAAO,QAAQ;AAC9B,MAAI,OAAO,OAAO;AAClB,WAAS,UAAU,OAAO,mBAAmB;AAE7C,SAAO,CAAC,CAAC,WACN,QAAQ,YACN,QAAQ,YAAY,SAAS,KAAK,KAAK,OACrC,QAAQ,MAAM,QAAQ,KAAK,KAAK,QAAQ;AACjD;ACXA,SAAS,gBAAgB,QAAQ,KAAK,OAAO;AAC3C,MAAI,OAAO,eAAe,gBAAgB;AACxC,mBAAe,QAAQ,KAAK;AAAA,MAC1B,gBAAgB;AAAA,MAChB,cAAc;AAAA,MACd,SAAS;AAAA,MACT,YAAY;AAAA,IAClB,CAAK;AAAA,EACH,OAAO;AACL,WAAO,GAAG,IAAI;AAAA,EAChB;AACF;AClBA,IAAIA,gBAAW,uBAAG,OAAO,WAAA;AAGzB,IAAIC,mBAAc,uBAAGD,cAAY,gBAAA;AAYjC,SAAS,YAAY,QAAQ,KAAK,OAAO;AACvC,MAAI,WAAW,OAAO,GAAG;AACzB,MAAI,EAAEC,iBAAe,KAAK,QAAQ,GAAG,K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AI,SAAS,MAAM;AACtE;AC/BG,IAAC,eAAe,wBAAO,uBAAC,OAAO,gBAAA,GAAgB,MAAM;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]}
|
|
1
|
+
{"version":3,"file":"_getPrototype.js","names":["hasOwnProperty","freeExports","freeModule","hasOwnProperty"],"sources":["../../../../../../node_modules/lodash-es/_arrayEach.js","../../../../../../node_modules/lodash-es/_isIndex.js","../../../../../../node_modules/lodash-es/_baseAssignValue.js","../../../../../../node_modules/lodash-es/_assignValue.js","../../../../../../node_modules/lodash-es/_copyObject.js","../../../../../../node_modules/lodash-es/_isPrototype.js","../../../../../../node_modules/lodash-es/_baseTimes.js","../../../../../../node_modules/lodash-es/stubFalse.js","../../../../../../node_modules/lodash-es/isBuffer.js","../../../../../../node_modules/lodash-es/_baseIsTypedArray.js","../../../../../../node_modules/lodash-es/_nodeUtil.js","../../../../../../node_modules/lodash-es/isTypedArray.js","../../../../../../node_modules/lodash-es/_arrayLikeKeys.js","../../../../../../node_modules/lodash-es/_overArg.js","../../../../../../node_modules/lodash-es/_nativeKeys.js","../../../../../../node_modules/lodash-es/_baseKeys.js","../../../../../../node_modules/lodash-es/keys.js","../../../../../../node_modules/lodash-es/_getPrototype.js"],"sourcesContent":["/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n}\n\nexport default arrayEach;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nexport default isIndex;\n","import defineProperty from './_defineProperty.js';\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\nexport default baseAssignValue;\n","import baseAssignValue from './_baseAssignValue.js';\nimport eq from './eq.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nexport default assignValue;\n","import assignValue from './_assignValue.js';\nimport baseAssignValue from './_baseAssignValue.js';\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\nexport default copyObject;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nexport default isPrototype;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nexport default baseTimes;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nexport default stubFalse;\n","import root from './_root.js';\nimport stubFalse from './stubFalse.js';\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nexport default isBuffer;\n","import baseGetTag from './_baseGetTag.js';\nimport isLength from './isLength.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nexport default baseIsTypedArray;\n","import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nexport default nodeUtil;\n","import baseIsTypedArray from './_baseIsTypedArray.js';\nimport baseUnary from './_baseUnary.js';\nimport nodeUtil from './_nodeUtil.js';\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nexport default isTypedArray;\n","import baseTimes from './_baseTimes.js';\nimport isArguments from './isArguments.js';\nimport isArray from './isArray.js';\nimport isBuffer from './isBuffer.js';\nimport isIndex from './_isIndex.js';\nimport isTypedArray from './isTypedArray.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nexport default arrayLikeKeys;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nexport default overArg;\n","import overArg from './_overArg.js';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nexport default nativeKeys;\n","import isPrototype from './_isPrototype.js';\nimport nativeKeys from './_nativeKeys.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\nexport default baseKeys;\n","import arrayLikeKeys from './_arrayLikeKeys.js';\nimport baseKeys from './_baseKeys.js';\nimport isArrayLike from './isArrayLike.js';\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nexport default keys;\n","import overArg from './_overArg.js';\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nexport default getPrototype;\n"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],"mappings":";;;;;;;;;;;AASA,SAAS,UAAU,OAAO,UAAU;CAClC,IAAI,QAAQ,IACR,SAAS,SAAS,OAAO,IAAI,MAAM;AAEvC,QAAO,EAAE,QAAQ,OACf,KAAI,SAAS,MAAM,QAAQ,OAAO,MAAM,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AQ,MAAM,WAAW;AAChC,QAAO,SAAS,KAAK;AACnB,SAAO,KAAK,UAAU,IAAI,CAAC;;;;;ACP/B,IAAI,aAAa,wBAAQ,OAAO,MAAM,OAAO;;;;ACI7C,IAAI,iBAHc,OAAO,UAGQ;;;;;;;;AASjC,SAAS,SAAS,QAAQ;AACxB,KAAI,CAAC,YAAY,OAAO,CACtB,QAAO,WAAW,OAAO;CAE3B,IAAI,SAAS,EAAE;AACf,MAAK,IAAI,OAAO,OAAO,OAAO,CAC5B,KAAI,eAAe,KAAK,QAAQ,IAAI,IAAI,OAAO,cAC7C,QAAO,KAAK,IAAI;AAGpB,QAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACMT,SAAS,KAAK,QAAQ;AACpB,QAAO,YAAY,OAAO,GAAG,cAAc,OAAO,GAAG,SAAS,OAAO;;;;;AC9BvE,IAAI,eAAe,wBAAQ,OAAO,gBAAgB,OAAO"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//#region ../../../../node_modules/@lyrasoft/ts-toolkit/src/generic/alert-adapter.ts
|
|
2
|
+
var AlertAdapter = class {
|
|
3
|
+
static alert = async (title, text) => {
|
|
4
|
+
if (text) title += " | " + text;
|
|
5
|
+
return window.alert(title);
|
|
6
|
+
};
|
|
7
|
+
static confirm = async (title, text) => {
|
|
8
|
+
return new Promise((resolve) => {
|
|
9
|
+
if (text) title += " | " + text;
|
|
10
|
+
resolve(confirm(title));
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
static deleteConfirm = async (title, text) => this.confirm(title, text);
|
|
14
|
+
static notify = async (title, text, type = "log") => {
|
|
15
|
+
if (text) title += " | " + text;
|
|
16
|
+
if (type === "error") console.error(title);
|
|
17
|
+
else if (type === "warn") console.warn(title);
|
|
18
|
+
else console.log(title);
|
|
19
|
+
return async () => {};
|
|
20
|
+
};
|
|
21
|
+
static clearNotifies = async () => {};
|
|
22
|
+
static confirmText = () => "OK";
|
|
23
|
+
static cancelText = () => "Cancel";
|
|
24
|
+
static deleteText = () => "Delete";
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { AlertAdapter as t };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=alert-adapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-adapter.js","names":[],"sources":["../../../../../../node_modules/@lyrasoft/ts-toolkit/src/generic/alert-adapter.ts"],"sourcesContent":["export type AlertHandler = (title: string, text?: string, icon?: string, extra?: any) => Promise<void>;\nexport type ConfirmHandler = (title: string, text?: string, icon?: string, extra?: any) => Promise<boolean>;\nexport type NotifyHandler = (title: string, text?: string, type?: string, extra?: any) => Promise<() => any>;\nexport type ClearNotifiesHandler = () => Promise<void>;\n\nexport class AlertAdapter {\n static alert: AlertHandler = async (title: string, text?: string) => {\n if (text) {\n title += ' | ' + text;\n }\n\n return window.alert(title);\n };\n static confirm: ConfirmHandler = async (title: string, text?: string) => {\n return new Promise<boolean>((resolve) => {\n if (text) {\n title += ' | ' + text;\n }\n\n const v = confirm(title);\n\n resolve(v);\n });\n };\n static deleteConfirm: ConfirmHandler = async (title: string, text?: string) => this.confirm(title, text);\n\n static notify: NotifyHandler = async (title: string, text?: string, type: string = 'log') => {\n if (text) {\n title += ' | ' + text;\n }\n\n if (type === 'error') {\n console.error(title);\n } else if (type === 'warn') {\n console.warn(title);\n } else {\n console.log(title);\n }\n\n return async () => {\n // Noop\n };\n }\n\n static clearNotifies: ClearNotifiesHandler = async () => {\n // Noop\n }\n\n static confirmText: () => string = () => 'OK';\n static cancelText: () => string = () => 'Cancel';\n static deleteText: () => string = () => 'Delete';\n}\n\n"],"x_google_ignoreList":[0],"mappings":";AAKA,IAAa,eAAb,MAA0B;CACxB,OAAO,QAAsB,OAAO,OAAe,SAAkB;AACnE,MAAI,KACF,UAAS,QAAQ;AAGnB,SAAO,OAAO,MAAM,MAAM;;CAE5B,OAAO,UAA0B,OAAO,OAAe,SAAkB;AACvE,SAAO,IAAI,SAAkB,YAAY;AACvC,OAAI,KACF,UAAS,QAAQ;AAKnB,WAFU,QAAQ,MAAM,CAEd;IACV;;CAEJ,OAAO,gBAAgC,OAAO,OAAe,SAAkB,KAAK,QAAQ,OAAO,KAAK;CAExG,OAAO,SAAwB,OAAO,OAAe,MAAe,OAAe,UAAU;AAC3F,MAAI,KACF,UAAS,QAAQ;AAGnB,MAAI,SAAS,QACX,SAAQ,MAAM,MAAM;WACX,SAAS,OAClB,SAAQ,KAAK,MAAM;MAEnB,SAAQ,IAAI,MAAM;AAGpB,SAAO,YAAY;;CAKrB,OAAO,gBAAsC,YAAY;CAIzD,OAAO,oBAAkC;CACzC,OAAO,mBAAiC;CACxC,OAAO,mBAAiC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { t as AlertAdapter } from "./alert-adapter.js";
|
|
2
|
+
//#region ../../../../node_modules/@lyrasoft/ts-toolkit/src/generic/alert.ts
|
|
3
|
+
async function simpleAlert(title, text = "", icon, extra) {
|
|
4
|
+
return AlertAdapter.alert(title, text, icon, extra);
|
|
5
|
+
}
|
|
6
|
+
async function simpleConfirm(title, text = "", icon, extra) {
|
|
7
|
+
return AlertAdapter.confirm(title, text, icon, extra);
|
|
8
|
+
}
|
|
9
|
+
async function deleteConfirm(title, text = "", icon, extra) {
|
|
10
|
+
return AlertAdapter.deleteConfirm(title, text, icon, extra);
|
|
11
|
+
}
|
|
12
|
+
async function simpleNotify(title, text = "", type, extra) {
|
|
13
|
+
return AlertAdapter.notify(title, text, type, extra);
|
|
14
|
+
}
|
|
15
|
+
async function clearNotifies() {
|
|
16
|
+
return AlertAdapter.clearNotifies();
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { simpleNotify as a, simpleConfirm as i, deleteConfirm as n, simpleAlert as r, clearNotifies as t };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=alert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert.js","names":[],"sources":["../../../../../../node_modules/@lyrasoft/ts-toolkit/src/generic/alert.ts"],"sourcesContent":["import { AlertAdapter } from './alert-adapter';\n\nexport async function simpleAlert(\n title: string,\n text: string = '',\n icon?: string,\n extra?: any\n) {\n return AlertAdapter.alert(title, text, icon, extra);\n}\n\nexport async function simpleConfirm(\n title: string,\n text: string = '',\n icon?: string,\n extra?: any,\n) {\n return AlertAdapter.confirm(title, text, icon, extra);\n}\n\nexport async function deleteConfirm(\n title: string,\n text: string = '',\n icon?: string,\n extra?: any,\n) {\n return AlertAdapter.deleteConfirm(title, text, icon, extra);\n}\n\nexport async function simpleNotify(\n title: string,\n text: string = '',\n type?: string,\n extra?: any\n) {\n return AlertAdapter.notify(title, text, type, extra);\n}\n\nexport async function clearNotifies() {\n return AlertAdapter.clearNotifies();\n}\n"],"x_google_ignoreList":[0],"mappings":";;AAEA,eAAsB,YACpB,OACA,OAAe,IACf,MACA,OACA;AACA,QAAO,aAAa,MAAM,OAAO,MAAM,MAAM,MAAM;;AAGrD,eAAsB,cACpB,OACA,OAAe,IACf,MACA,OACA;AACA,QAAO,aAAa,QAAQ,OAAO,MAAM,MAAM,MAAM;;AAGvD,eAAsB,cACpB,OACA,OAAe,IACf,MACA,OACA;AACA,QAAO,aAAa,cAAc,OAAO,MAAM,MAAM,MAAM;;AAG7D,eAAsB,aACpB,OACA,OAAe,IACf,MACA,OACA;AACA,QAAO,aAAa,OAAO,OAAO,MAAM,MAAM,MAAM;;AAGtD,eAAsB,gBAAgB;AACpC,QAAO,aAAa,eAAe"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/utilities/arr.ts
|
|
2
|
+
function isPlainObject(val) {
|
|
3
|
+
return val && typeof val === "object" && !Array.isArray(val);
|
|
4
|
+
}
|
|
5
|
+
function mergeDeep(target, ...sources) {
|
|
6
|
+
let out = isPlainObject(target) ? { ...target } : target;
|
|
7
|
+
for (const source of sources) {
|
|
8
|
+
if (Array.isArray(source)) {
|
|
9
|
+
out = Array.isArray(out) ? out.concat(source) : source;
|
|
10
|
+
continue;
|
|
11
|
+
}
|
|
12
|
+
if (isPlainObject(source)) {
|
|
13
|
+
out = { ...isPlainObject(out) ? out : {} };
|
|
14
|
+
for (const key of Object.keys(source)) out[key] = key in out ? mergeDeep(out[key], source[key]) : source[key];
|
|
15
|
+
continue;
|
|
16
|
+
}
|
|
17
|
+
out = source;
|
|
18
|
+
}
|
|
19
|
+
return out;
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { mergeDeep as t };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=arr.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arr.js","names":[],"sources":["../../src/utilities/arr.ts"],"sourcesContent":["\nexport function isPlainObject(val: any): val is Record<string, any> {\n return val && typeof val === \"object\" && !Array.isArray(val);\n}\n\nexport function mergeDeep<T = Record<string, any>>(target: Partial<T>, ...sources: any[]): T {\n let out: any = isPlainObject(target) ? { ...target } : target;\n\n for (const source of sources) {\n if (Array.isArray(source)) {\n out = (Array.isArray(out) ? out.concat(source) : source) as T;\n continue;\n }\n if (isPlainObject(source)) {\n out = { ...(isPlainObject(out) ? out : {}) };\n for (const key of Object.keys(source)) {\n out[key] =\n key in out ? mergeDeep(out[key], source[key]) : source[key];\n }\n continue;\n }\n out = source as T;\n }\n return out;\n}\n"],"mappings":";AACA,SAAgB,cAAc,KAAsC;AAClE,QAAO,OAAO,OAAO,QAAQ,YAAY,CAAC,MAAM,QAAQ,IAAI;;AAG9D,SAAgB,UAAmC,QAAoB,GAAG,SAAmB;CAC3F,IAAI,MAAW,cAAc,OAAO,GAAG,EAAE,GAAG,QAAQ,GAAG;AAEvD,MAAK,MAAM,UAAU,SAAS;AAC5B,MAAI,MAAM,QAAQ,OAAO,EAAE;AACzB,SAAO,MAAM,QAAQ,IAAI,GAAG,IAAI,OAAO,OAAO,GAAG;AACjD;;AAEF,MAAI,cAAc,OAAO,EAAE;AACzB,SAAM,EAAE,GAAI,cAAc,IAAI,GAAG,MAAM,EAAE,EAAG;AAC5C,QAAK,MAAM,OAAO,OAAO,KAAK,OAAO,CACnC,KAAI,OACF,OAAO,MAAM,UAAU,IAAI,MAAM,OAAO,KAAK,GAAG,OAAO;AAE3D;;AAEF,QAAM;;AAER,QAAO"}
|