@revolist/revogrid 4.9.5 → 4.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{column.service-08df359f.js → column.service-0615a373.js} +11 -12
- package/dist/cjs/column.service-0615a373.js.map +1 -0
- package/dist/cjs/{column.utils-0f0f4dc4.js → column.utils-694677fa.js} +13 -13
- package/dist/cjs/column.utils-694677fa.js.map +1 -0
- package/dist/cjs/edit.utils-2e1f4278.js +20 -0
- package/dist/cjs/edit.utils-2e1f4278.js.map +1 -0
- package/dist/cjs/{events-b28cc194.js → events-af8f6914.js} +1 -8
- package/dist/cjs/events-af8f6914.js.map +1 -0
- package/dist/cjs/{header-cell-renderer-fb2f9a2d.js → header-cell-renderer-360528aa.js} +2 -2
- package/dist/cjs/{header-cell-renderer-fb2f9a2d.js.map → header-cell-renderer-360528aa.js.map} +1 -1
- package/dist/cjs/{dimension.helpers-85294778.js → index-2991afbb.js} +262 -3
- package/dist/cjs/index-2991afbb.js.map +1 -0
- package/dist/cjs/index.cjs.js +86 -30
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/key.utils-b84b0eba.js +111 -0
- package/dist/cjs/key.utils-b84b0eba.js.map +1 -0
- package/dist/cjs/revo-grid.cjs.entry.js +72 -73
- package/dist/cjs/revo-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-attribution_6.cjs.entry.js +37 -37
- package/dist/cjs/revogr-attribution_6.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-clipboard_3.cjs.entry.js +8 -8
- package/dist/cjs/revogr-clipboard_3.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-data_4.cjs.entry.js +13 -14
- package/dist/cjs/revogr-data_4.cjs.entry.js.map +1 -1
- package/dist/cjs/{viewport.store-300977e4.js → row-header-utils-b5266b12.js} +13 -6
- package/dist/cjs/row-header-utils-b5266b12.js.map +1 -0
- package/dist/cjs/{selection.helpers-371a38aa.js → selection.helpers-4374518f.js} +13 -13
- package/dist/cjs/selection.helpers-4374518f.js.map +1 -0
- package/dist/cjs/{throttle-52be9e67.js → throttle-8885fd65.js} +2 -2
- package/dist/cjs/{throttle-52be9e67.js.map → throttle-8885fd65.js.map} +1 -1
- package/dist/collection/components/header/revogr-header.js +1 -1
- package/dist/collection/index.js +1 -2
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/plugins/column.auto-size.plugin.js +1 -1
- package/dist/collection/plugins/column.auto-size.plugin.js.map +1 -1
- package/dist/collection/utils/index.js +7 -0
- package/dist/collection/utils/index.js.map +1 -1
- package/dist/esm/{column.service-cfc1149b.js → column.service-af0694c5.js} +3 -4
- package/dist/esm/column.service-af0694c5.js.map +1 -0
- package/dist/esm/{column.utils-f6300fb5.js → column.utils-78dd3ef2.js} +2 -2
- package/dist/esm/{column.utils-f6300fb5.js.map → column.utils-78dd3ef2.js.map} +1 -1
- package/dist/esm/edit.utils-ca303802.js +17 -0
- package/dist/esm/edit.utils-ca303802.js.map +1 -0
- package/dist/esm/{events-77b43b40.js → events-cf0893a3.js} +2 -8
- package/dist/esm/events-cf0893a3.js.map +1 -0
- package/dist/esm/{header-cell-renderer-6f8eb067.js → header-cell-renderer-261317c3.js} +2 -2
- package/dist/esm/{header-cell-renderer-6f8eb067.js.map → header-cell-renderer-261317c3.js.map} +1 -1
- package/dist/esm/{dimension.helpers-938ea850.js → index-f65def08.js} +231 -4
- package/dist/esm/index-f65def08.js.map +1 -0
- package/dist/esm/index.js +5 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/key.utils-4b0093d5.js +98 -0
- package/dist/esm/key.utils-4b0093d5.js.map +1 -0
- package/dist/esm/revo-grid.entry.js +7 -8
- package/dist/esm/revo-grid.entry.js.map +1 -1
- package/dist/esm/revogr-attribution_6.entry.js +8 -8
- package/dist/esm/revogr-clipboard_3.entry.js +3 -3
- package/dist/esm/revogr-data_4.entry.js +5 -6
- package/dist/esm/revogr-data_4.entry.js.map +1 -1
- package/dist/esm/{viewport.store-a690096b.js → row-header-utils-6081260c.js} +9 -3
- package/dist/esm/row-header-utils-6081260c.js.map +1 -0
- package/dist/esm/{selection.helpers-a49a3d09.js → selection.helpers-d92697e1.js} +2 -2
- package/dist/esm/{selection.helpers-a49a3d09.js.map → selection.helpers-d92697e1.js.map} +1 -1
- package/dist/esm/{throttle-7283692c.js → throttle-041ded8e.js} +2 -2
- package/dist/esm/{throttle-7283692c.js.map → throttle-041ded8e.js.map} +1 -1
- package/dist/revo-grid/column.service-af0694c5.js +5 -0
- package/dist/revo-grid/{column.service-cfc1149b.js.map → column.service-af0694c5.js.map} +1 -1
- package/dist/revo-grid/column.utils-78dd3ef2.js +5 -0
- package/dist/revo-grid/{column.utils-f6300fb5.js.map → column.utils-78dd3ef2.js.map} +1 -1
- package/dist/revo-grid/edit.utils-ca303802.js +5 -0
- package/dist/revo-grid/edit.utils-ca303802.js.map +1 -0
- package/dist/revo-grid/events-cf0893a3.js +5 -0
- package/dist/revo-grid/events-cf0893a3.js.map +1 -0
- package/dist/revo-grid/{header-cell-renderer-6f8eb067.js → header-cell-renderer-261317c3.js} +2 -2
- package/dist/revo-grid/index-f65def08.js +5 -0
- package/dist/revo-grid/index-f65def08.js.map +1 -0
- package/dist/revo-grid/index.esm.js +1 -1
- package/dist/revo-grid/key.utils-4b0093d5.js +5 -0
- package/dist/revo-grid/key.utils-4b0093d5.js.map +1 -0
- package/dist/revo-grid/revo-grid.entry.js +1 -1
- package/dist/revo-grid/revo-grid.entry.js.map +1 -1
- package/dist/revo-grid/revogr-attribution_6.entry.js +1 -1
- package/dist/revo-grid/revogr-clipboard_3.entry.js +1 -1
- package/dist/revo-grid/revogr-clipboard_3.entry.js.map +1 -1
- package/dist/revo-grid/revogr-data_4.entry.js +1 -1
- package/dist/revo-grid/revogr-data_4.entry.js.map +1 -1
- package/dist/revo-grid/row-header-utils-6081260c.js +5 -0
- package/dist/revo-grid/row-header-utils-6081260c.js.map +1 -0
- package/dist/revo-grid/selection.helpers-d92697e1.js +5 -0
- package/dist/revo-grid/{selection.helpers-a49a3d09.js.map → selection.helpers-d92697e1.js.map} +1 -1
- package/dist/revo-grid/{throttle-7283692c.js → throttle-041ded8e.js} +2 -2
- package/dist/types/index.d.ts +1 -2
- package/dist/types/plugins/column.auto-size.plugin.d.ts +1 -2
- package/dist/types/utils/index.d.ts +7 -0
- package/hydrate/index.js +147 -149
- package/hydrate/index.mjs +147 -149
- package/package.json +2 -2
- package/standalone/_stringToPath.js +1389 -0
- package/standalone/_stringToPath.js.map +1 -0
- package/standalone/column.service.js +4 -3
- package/standalone/column.service.js.map +1 -1
- package/standalone/consts.js +1 -1
- package/standalone/data.store.js +31 -1410
- package/standalone/data.store.js.map +1 -1
- package/standalone/debounce.js +2 -1
- package/standalone/debounce.js.map +1 -1
- package/standalone/dimension.helpers.js +2 -2
- package/standalone/index.js +5 -2
- package/standalone/index.js.map +1 -1
- package/standalone/index2.js +160 -1
- package/standalone/index2.js.map +1 -1
- package/standalone/isObjectLike.js +195 -0
- package/standalone/isObjectLike.js.map +1 -0
- package/standalone/revo-grid.js +4 -3
- package/standalone/revo-grid.js.map +1 -1
- package/standalone/revogr-data2.js +3 -2
- package/standalone/revogr-data2.js.map +1 -1
- package/standalone/revogr-edit.js +1 -1
- package/standalone/revogr-edit2.js +57 -83
- package/standalone/revogr-edit2.js.map +1 -1
- package/standalone/revogr-focus2.js +2 -1
- package/standalone/revogr-focus2.js.map +1 -1
- package/standalone/revogr-header2.js +4 -3
- package/standalone/revogr-header2.js.map +1 -1
- package/standalone/revogr-order-editor2.js +3 -2
- package/standalone/revogr-order-editor2.js.map +1 -1
- package/standalone/revogr-overlay-selection2.js +5 -5
- package/standalone/revogr-row-headers2.js +3 -2
- package/standalone/revogr-row-headers2.js.map +1 -1
- package/standalone/selection.utils.js +2 -1
- package/standalone/selection.utils.js.map +1 -1
- package/standalone/throttle.js +1 -1
- package/standalone/toNumber.js +2 -189
- package/standalone/toNumber.js.map +1 -1
- package/dist/cjs/column.service-08df359f.js.map +0 -1
- package/dist/cjs/column.utils-0f0f4dc4.js.map +0 -1
- package/dist/cjs/dimension.helpers-85294778.js.map +0 -1
- package/dist/cjs/events-b28cc194.js.map +0 -1
- package/dist/cjs/index-2410bbd9.js +0 -103
- package/dist/cjs/index-2410bbd9.js.map +0 -1
- package/dist/cjs/key.utils-1e48ab8f.js +0 -144
- package/dist/cjs/key.utils-1e48ab8f.js.map +0 -1
- package/dist/cjs/selection.helpers-371a38aa.js.map +0 -1
- package/dist/cjs/viewport.store-300977e4.js.map +0 -1
- package/dist/esm/column.service-cfc1149b.js.map +0 -1
- package/dist/esm/dimension.helpers-938ea850.js.map +0 -1
- package/dist/esm/events-77b43b40.js.map +0 -1
- package/dist/esm/index-4e881436.js +0 -77
- package/dist/esm/index-4e881436.js.map +0 -1
- package/dist/esm/key.utils-425c987d.js +0 -133
- package/dist/esm/key.utils-425c987d.js.map +0 -1
- package/dist/esm/viewport.store-a690096b.js.map +0 -1
- package/dist/revo-grid/column.service-cfc1149b.js +0 -5
- package/dist/revo-grid/column.utils-f6300fb5.js +0 -5
- package/dist/revo-grid/dimension.helpers-938ea850.js +0 -5
- package/dist/revo-grid/dimension.helpers-938ea850.js.map +0 -1
- package/dist/revo-grid/events-77b43b40.js +0 -5
- package/dist/revo-grid/events-77b43b40.js.map +0 -1
- package/dist/revo-grid/index-4e881436.js +0 -5
- package/dist/revo-grid/index-4e881436.js.map +0 -1
- package/dist/revo-grid/key.utils-425c987d.js +0 -5
- package/dist/revo-grid/key.utils-425c987d.js.map +0 -1
- package/dist/revo-grid/selection.helpers-a49a3d09.js +0 -5
- package/dist/revo-grid/viewport.store-a690096b.js +0 -5
- package/dist/revo-grid/viewport.store-a690096b.js.map +0 -1
- /package/dist/revo-grid/{header-cell-renderer-6f8eb067.js.map → header-cell-renderer-261317c3.js.map} +0 -0
- /package/dist/revo-grid/{throttle-7283692c.js.map → throttle-041ded8e.js.map} +0 -0
package/standalone/data.store.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built by Revolist OU ❤️
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { b as _SetCache, e as eq_1, c as _baseIsTypedArray, d as _nodeUtil, i as isArguments_1, f as isBuffer$2, g as isFunction_1, h as isLength_1, j as _Stack, _ as _getTag, k as _stringToPath } from './_stringToPath.js';
|
|
5
|
+
import { a as _root, b as _Symbol, i as isObjectLike_1, c as isObject_1 } from './isObjectLike.js';
|
|
6
|
+
import { i as isSymbol_1, t as toNumber_1 } from './toNumber.js';
|
|
5
7
|
import { getRenderingRef, forceUpdate } from '@stencil/core/internal/client';
|
|
6
8
|
|
|
7
9
|
/**
|
|
@@ -65,915 +67,6 @@ function baseFindIndex$1(array, predicate, fromIndex, fromRight) {
|
|
|
65
67
|
|
|
66
68
|
var _baseFindIndex = baseFindIndex$1;
|
|
67
69
|
|
|
68
|
-
/**
|
|
69
|
-
* Removes all key-value entries from the list cache.
|
|
70
|
-
*
|
|
71
|
-
* @private
|
|
72
|
-
* @name clear
|
|
73
|
-
* @memberOf ListCache
|
|
74
|
-
*/
|
|
75
|
-
|
|
76
|
-
function listCacheClear$1() {
|
|
77
|
-
this.__data__ = [];
|
|
78
|
-
this.size = 0;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
var _listCacheClear = listCacheClear$1;
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Performs a
|
|
85
|
-
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
86
|
-
* comparison between two values to determine if they are equivalent.
|
|
87
|
-
*
|
|
88
|
-
* @static
|
|
89
|
-
* @memberOf _
|
|
90
|
-
* @since 4.0.0
|
|
91
|
-
* @category Lang
|
|
92
|
-
* @param {*} value The value to compare.
|
|
93
|
-
* @param {*} other The other value to compare.
|
|
94
|
-
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
95
|
-
* @example
|
|
96
|
-
*
|
|
97
|
-
* var object = { 'a': 1 };
|
|
98
|
-
* var other = { 'a': 1 };
|
|
99
|
-
*
|
|
100
|
-
* _.eq(object, object);
|
|
101
|
-
* // => true
|
|
102
|
-
*
|
|
103
|
-
* _.eq(object, other);
|
|
104
|
-
* // => false
|
|
105
|
-
*
|
|
106
|
-
* _.eq('a', 'a');
|
|
107
|
-
* // => true
|
|
108
|
-
*
|
|
109
|
-
* _.eq('a', Object('a'));
|
|
110
|
-
* // => false
|
|
111
|
-
*
|
|
112
|
-
* _.eq(NaN, NaN);
|
|
113
|
-
* // => true
|
|
114
|
-
*/
|
|
115
|
-
|
|
116
|
-
function eq$3(value, other) {
|
|
117
|
-
return value === other || (value !== value && other !== other);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
var eq_1 = eq$3;
|
|
121
|
-
|
|
122
|
-
var eq$2 = eq_1;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
126
|
-
*
|
|
127
|
-
* @private
|
|
128
|
-
* @param {Array} array The array to inspect.
|
|
129
|
-
* @param {*} key The key to search for.
|
|
130
|
-
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
131
|
-
*/
|
|
132
|
-
function assocIndexOf$4(array, key) {
|
|
133
|
-
var length = array.length;
|
|
134
|
-
while (length--) {
|
|
135
|
-
if (eq$2(array[length][0], key)) {
|
|
136
|
-
return length;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
return -1;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
var _assocIndexOf = assocIndexOf$4;
|
|
143
|
-
|
|
144
|
-
var assocIndexOf$3 = _assocIndexOf;
|
|
145
|
-
|
|
146
|
-
/** Used for built-in method references. */
|
|
147
|
-
var arrayProto = Array.prototype;
|
|
148
|
-
|
|
149
|
-
/** Built-in value references. */
|
|
150
|
-
var splice = arrayProto.splice;
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Removes `key` and its value from the list cache.
|
|
154
|
-
*
|
|
155
|
-
* @private
|
|
156
|
-
* @name delete
|
|
157
|
-
* @memberOf ListCache
|
|
158
|
-
* @param {string} key The key of the value to remove.
|
|
159
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
160
|
-
*/
|
|
161
|
-
function listCacheDelete$1(key) {
|
|
162
|
-
var data = this.__data__,
|
|
163
|
-
index = assocIndexOf$3(data, key);
|
|
164
|
-
|
|
165
|
-
if (index < 0) {
|
|
166
|
-
return false;
|
|
167
|
-
}
|
|
168
|
-
var lastIndex = data.length - 1;
|
|
169
|
-
if (index == lastIndex) {
|
|
170
|
-
data.pop();
|
|
171
|
-
} else {
|
|
172
|
-
splice.call(data, index, 1);
|
|
173
|
-
}
|
|
174
|
-
--this.size;
|
|
175
|
-
return true;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
var _listCacheDelete = listCacheDelete$1;
|
|
179
|
-
|
|
180
|
-
var assocIndexOf$2 = _assocIndexOf;
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Gets the list cache value for `key`.
|
|
184
|
-
*
|
|
185
|
-
* @private
|
|
186
|
-
* @name get
|
|
187
|
-
* @memberOf ListCache
|
|
188
|
-
* @param {string} key The key of the value to get.
|
|
189
|
-
* @returns {*} Returns the entry value.
|
|
190
|
-
*/
|
|
191
|
-
function listCacheGet$1(key) {
|
|
192
|
-
var data = this.__data__,
|
|
193
|
-
index = assocIndexOf$2(data, key);
|
|
194
|
-
|
|
195
|
-
return index < 0 ? undefined : data[index][1];
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
var _listCacheGet = listCacheGet$1;
|
|
199
|
-
|
|
200
|
-
var assocIndexOf$1 = _assocIndexOf;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* Checks if a list cache value for `key` exists.
|
|
204
|
-
*
|
|
205
|
-
* @private
|
|
206
|
-
* @name has
|
|
207
|
-
* @memberOf ListCache
|
|
208
|
-
* @param {string} key The key of the entry to check.
|
|
209
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
210
|
-
*/
|
|
211
|
-
function listCacheHas$1(key) {
|
|
212
|
-
return assocIndexOf$1(this.__data__, key) > -1;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
var _listCacheHas = listCacheHas$1;
|
|
216
|
-
|
|
217
|
-
var assocIndexOf = _assocIndexOf;
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* Sets the list cache `key` to `value`.
|
|
221
|
-
*
|
|
222
|
-
* @private
|
|
223
|
-
* @name set
|
|
224
|
-
* @memberOf ListCache
|
|
225
|
-
* @param {string} key The key of the value to set.
|
|
226
|
-
* @param {*} value The value to set.
|
|
227
|
-
* @returns {Object} Returns the list cache instance.
|
|
228
|
-
*/
|
|
229
|
-
function listCacheSet$1(key, value) {
|
|
230
|
-
var data = this.__data__,
|
|
231
|
-
index = assocIndexOf(data, key);
|
|
232
|
-
|
|
233
|
-
if (index < 0) {
|
|
234
|
-
++this.size;
|
|
235
|
-
data.push([key, value]);
|
|
236
|
-
} else {
|
|
237
|
-
data[index][1] = value;
|
|
238
|
-
}
|
|
239
|
-
return this;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
var _listCacheSet = listCacheSet$1;
|
|
243
|
-
|
|
244
|
-
var listCacheClear = _listCacheClear,
|
|
245
|
-
listCacheDelete = _listCacheDelete,
|
|
246
|
-
listCacheGet = _listCacheGet,
|
|
247
|
-
listCacheHas = _listCacheHas,
|
|
248
|
-
listCacheSet = _listCacheSet;
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* Creates an list cache object.
|
|
252
|
-
*
|
|
253
|
-
* @private
|
|
254
|
-
* @constructor
|
|
255
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
256
|
-
*/
|
|
257
|
-
function ListCache$4(entries) {
|
|
258
|
-
var index = -1,
|
|
259
|
-
length = entries == null ? 0 : entries.length;
|
|
260
|
-
|
|
261
|
-
this.clear();
|
|
262
|
-
while (++index < length) {
|
|
263
|
-
var entry = entries[index];
|
|
264
|
-
this.set(entry[0], entry[1]);
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
// Add methods to `ListCache`.
|
|
269
|
-
ListCache$4.prototype.clear = listCacheClear;
|
|
270
|
-
ListCache$4.prototype['delete'] = listCacheDelete;
|
|
271
|
-
ListCache$4.prototype.get = listCacheGet;
|
|
272
|
-
ListCache$4.prototype.has = listCacheHas;
|
|
273
|
-
ListCache$4.prototype.set = listCacheSet;
|
|
274
|
-
|
|
275
|
-
var _ListCache = ListCache$4;
|
|
276
|
-
|
|
277
|
-
var ListCache$3 = _ListCache;
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* Removes all key-value entries from the stack.
|
|
281
|
-
*
|
|
282
|
-
* @private
|
|
283
|
-
* @name clear
|
|
284
|
-
* @memberOf Stack
|
|
285
|
-
*/
|
|
286
|
-
function stackClear$1() {
|
|
287
|
-
this.__data__ = new ListCache$3;
|
|
288
|
-
this.size = 0;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
var _stackClear = stackClear$1;
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* Removes `key` and its value from the stack.
|
|
295
|
-
*
|
|
296
|
-
* @private
|
|
297
|
-
* @name delete
|
|
298
|
-
* @memberOf Stack
|
|
299
|
-
* @param {string} key The key of the value to remove.
|
|
300
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
301
|
-
*/
|
|
302
|
-
|
|
303
|
-
function stackDelete$1(key) {
|
|
304
|
-
var data = this.__data__,
|
|
305
|
-
result = data['delete'](key);
|
|
306
|
-
|
|
307
|
-
this.size = data.size;
|
|
308
|
-
return result;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
var _stackDelete = stackDelete$1;
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* Gets the stack value for `key`.
|
|
315
|
-
*
|
|
316
|
-
* @private
|
|
317
|
-
* @name get
|
|
318
|
-
* @memberOf Stack
|
|
319
|
-
* @param {string} key The key of the value to get.
|
|
320
|
-
* @returns {*} Returns the entry value.
|
|
321
|
-
*/
|
|
322
|
-
|
|
323
|
-
function stackGet$1(key) {
|
|
324
|
-
return this.__data__.get(key);
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
var _stackGet = stackGet$1;
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* Checks if a stack value for `key` exists.
|
|
331
|
-
*
|
|
332
|
-
* @private
|
|
333
|
-
* @name has
|
|
334
|
-
* @memberOf Stack
|
|
335
|
-
* @param {string} key The key of the entry to check.
|
|
336
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
337
|
-
*/
|
|
338
|
-
|
|
339
|
-
function stackHas$1(key) {
|
|
340
|
-
return this.__data__.has(key);
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
var _stackHas = stackHas$1;
|
|
344
|
-
|
|
345
|
-
var baseGetTag$3 = _baseGetTag,
|
|
346
|
-
isObject$3 = isObject_1;
|
|
347
|
-
|
|
348
|
-
/** `Object#toString` result references. */
|
|
349
|
-
var asyncTag = '[object AsyncFunction]',
|
|
350
|
-
funcTag$1 = '[object Function]',
|
|
351
|
-
genTag = '[object GeneratorFunction]',
|
|
352
|
-
proxyTag = '[object Proxy]';
|
|
353
|
-
|
|
354
|
-
/**
|
|
355
|
-
* Checks if `value` is classified as a `Function` object.
|
|
356
|
-
*
|
|
357
|
-
* @static
|
|
358
|
-
* @memberOf _
|
|
359
|
-
* @since 0.1.0
|
|
360
|
-
* @category Lang
|
|
361
|
-
* @param {*} value The value to check.
|
|
362
|
-
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
363
|
-
* @example
|
|
364
|
-
*
|
|
365
|
-
* _.isFunction(_);
|
|
366
|
-
* // => true
|
|
367
|
-
*
|
|
368
|
-
* _.isFunction(/abc/);
|
|
369
|
-
* // => false
|
|
370
|
-
*/
|
|
371
|
-
function isFunction$2(value) {
|
|
372
|
-
if (!isObject$3(value)) {
|
|
373
|
-
return false;
|
|
374
|
-
}
|
|
375
|
-
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
376
|
-
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
377
|
-
var tag = baseGetTag$3(value);
|
|
378
|
-
return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
var isFunction_1 = isFunction$2;
|
|
382
|
-
|
|
383
|
-
var root$6 = _root;
|
|
384
|
-
|
|
385
|
-
/** Used to detect overreaching core-js shims. */
|
|
386
|
-
var coreJsData$1 = root$6['__core-js_shared__'];
|
|
387
|
-
|
|
388
|
-
var _coreJsData = coreJsData$1;
|
|
389
|
-
|
|
390
|
-
var coreJsData = _coreJsData;
|
|
391
|
-
|
|
392
|
-
/** Used to detect methods masquerading as native. */
|
|
393
|
-
var maskSrcKey = (function() {
|
|
394
|
-
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
|
|
395
|
-
return uid ? ('Symbol(src)_1.' + uid) : '';
|
|
396
|
-
}());
|
|
397
|
-
|
|
398
|
-
/**
|
|
399
|
-
* Checks if `func` has its source masked.
|
|
400
|
-
*
|
|
401
|
-
* @private
|
|
402
|
-
* @param {Function} func The function to check.
|
|
403
|
-
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
404
|
-
*/
|
|
405
|
-
function isMasked$1(func) {
|
|
406
|
-
return !!maskSrcKey && (maskSrcKey in func);
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
var _isMasked = isMasked$1;
|
|
410
|
-
|
|
411
|
-
/** Used for built-in method references. */
|
|
412
|
-
|
|
413
|
-
var funcProto$1 = Function.prototype;
|
|
414
|
-
|
|
415
|
-
/** Used to resolve the decompiled source of functions. */
|
|
416
|
-
var funcToString$1 = funcProto$1.toString;
|
|
417
|
-
|
|
418
|
-
/**
|
|
419
|
-
* Converts `func` to its source code.
|
|
420
|
-
*
|
|
421
|
-
* @private
|
|
422
|
-
* @param {Function} func The function to convert.
|
|
423
|
-
* @returns {string} Returns the source code.
|
|
424
|
-
*/
|
|
425
|
-
function toSource$2(func) {
|
|
426
|
-
if (func != null) {
|
|
427
|
-
try {
|
|
428
|
-
return funcToString$1.call(func);
|
|
429
|
-
} catch (e) {}
|
|
430
|
-
try {
|
|
431
|
-
return (func + '');
|
|
432
|
-
} catch (e) {}
|
|
433
|
-
}
|
|
434
|
-
return '';
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
var _toSource = toSource$2;
|
|
438
|
-
|
|
439
|
-
var isFunction$1 = isFunction_1,
|
|
440
|
-
isMasked = _isMasked,
|
|
441
|
-
isObject$2 = isObject_1,
|
|
442
|
-
toSource$1 = _toSource;
|
|
443
|
-
|
|
444
|
-
/**
|
|
445
|
-
* Used to match `RegExp`
|
|
446
|
-
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
447
|
-
*/
|
|
448
|
-
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
449
|
-
|
|
450
|
-
/** Used to detect host constructors (Safari). */
|
|
451
|
-
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
452
|
-
|
|
453
|
-
/** Used for built-in method references. */
|
|
454
|
-
var funcProto = Function.prototype,
|
|
455
|
-
objectProto$9 = Object.prototype;
|
|
456
|
-
|
|
457
|
-
/** Used to resolve the decompiled source of functions. */
|
|
458
|
-
var funcToString = funcProto.toString;
|
|
459
|
-
|
|
460
|
-
/** Used to check objects for own properties. */
|
|
461
|
-
var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
|
|
462
|
-
|
|
463
|
-
/** Used to detect if a method is native. */
|
|
464
|
-
var reIsNative = RegExp('^' +
|
|
465
|
-
funcToString.call(hasOwnProperty$7).replace(reRegExpChar, '\\$&')
|
|
466
|
-
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
467
|
-
);
|
|
468
|
-
|
|
469
|
-
/**
|
|
470
|
-
* The base implementation of `_.isNative` without bad shim checks.
|
|
471
|
-
*
|
|
472
|
-
* @private
|
|
473
|
-
* @param {*} value The value to check.
|
|
474
|
-
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
475
|
-
* else `false`.
|
|
476
|
-
*/
|
|
477
|
-
function baseIsNative$1(value) {
|
|
478
|
-
if (!isObject$2(value) || isMasked(value)) {
|
|
479
|
-
return false;
|
|
480
|
-
}
|
|
481
|
-
var pattern = isFunction$1(value) ? reIsNative : reIsHostCtor;
|
|
482
|
-
return pattern.test(toSource$1(value));
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
var _baseIsNative = baseIsNative$1;
|
|
486
|
-
|
|
487
|
-
/**
|
|
488
|
-
* Gets the value at `key` of `object`.
|
|
489
|
-
*
|
|
490
|
-
* @private
|
|
491
|
-
* @param {Object} [object] The object to query.
|
|
492
|
-
* @param {string} key The key of the property to get.
|
|
493
|
-
* @returns {*} Returns the property value.
|
|
494
|
-
*/
|
|
495
|
-
|
|
496
|
-
function getValue$1(object, key) {
|
|
497
|
-
return object == null ? undefined : object[key];
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
var _getValue = getValue$1;
|
|
501
|
-
|
|
502
|
-
var baseIsNative = _baseIsNative,
|
|
503
|
-
getValue = _getValue;
|
|
504
|
-
|
|
505
|
-
/**
|
|
506
|
-
* Gets the native function at `key` of `object`.
|
|
507
|
-
*
|
|
508
|
-
* @private
|
|
509
|
-
* @param {Object} object The object to query.
|
|
510
|
-
* @param {string} key The key of the method to get.
|
|
511
|
-
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
512
|
-
*/
|
|
513
|
-
function getNative$6(object, key) {
|
|
514
|
-
var value = getValue(object, key);
|
|
515
|
-
return baseIsNative(value) ? value : undefined;
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
var _getNative = getNative$6;
|
|
519
|
-
|
|
520
|
-
var getNative$5 = _getNative,
|
|
521
|
-
root$5 = _root;
|
|
522
|
-
|
|
523
|
-
/* Built-in method references that are verified to be native. */
|
|
524
|
-
var Map$4 = getNative$5(root$5, 'Map');
|
|
525
|
-
|
|
526
|
-
var _Map = Map$4;
|
|
527
|
-
|
|
528
|
-
var getNative$4 = _getNative;
|
|
529
|
-
|
|
530
|
-
/* Built-in method references that are verified to be native. */
|
|
531
|
-
var nativeCreate$4 = getNative$4(Object, 'create');
|
|
532
|
-
|
|
533
|
-
var _nativeCreate = nativeCreate$4;
|
|
534
|
-
|
|
535
|
-
var nativeCreate$3 = _nativeCreate;
|
|
536
|
-
|
|
537
|
-
/**
|
|
538
|
-
* Removes all key-value entries from the hash.
|
|
539
|
-
*
|
|
540
|
-
* @private
|
|
541
|
-
* @name clear
|
|
542
|
-
* @memberOf Hash
|
|
543
|
-
*/
|
|
544
|
-
function hashClear$1() {
|
|
545
|
-
this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
|
|
546
|
-
this.size = 0;
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
var _hashClear = hashClear$1;
|
|
550
|
-
|
|
551
|
-
/**
|
|
552
|
-
* Removes `key` and its value from the hash.
|
|
553
|
-
*
|
|
554
|
-
* @private
|
|
555
|
-
* @name delete
|
|
556
|
-
* @memberOf Hash
|
|
557
|
-
* @param {Object} hash The hash to modify.
|
|
558
|
-
* @param {string} key The key of the value to remove.
|
|
559
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
560
|
-
*/
|
|
561
|
-
|
|
562
|
-
function hashDelete$1(key) {
|
|
563
|
-
var result = this.has(key) && delete this.__data__[key];
|
|
564
|
-
this.size -= result ? 1 : 0;
|
|
565
|
-
return result;
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
var _hashDelete = hashDelete$1;
|
|
569
|
-
|
|
570
|
-
var nativeCreate$2 = _nativeCreate;
|
|
571
|
-
|
|
572
|
-
/** Used to stand-in for `undefined` hash values. */
|
|
573
|
-
var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
|
|
574
|
-
|
|
575
|
-
/** Used for built-in method references. */
|
|
576
|
-
var objectProto$8 = Object.prototype;
|
|
577
|
-
|
|
578
|
-
/** Used to check objects for own properties. */
|
|
579
|
-
var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
|
|
580
|
-
|
|
581
|
-
/**
|
|
582
|
-
* Gets the hash value for `key`.
|
|
583
|
-
*
|
|
584
|
-
* @private
|
|
585
|
-
* @name get
|
|
586
|
-
* @memberOf Hash
|
|
587
|
-
* @param {string} key The key of the value to get.
|
|
588
|
-
* @returns {*} Returns the entry value.
|
|
589
|
-
*/
|
|
590
|
-
function hashGet$1(key) {
|
|
591
|
-
var data = this.__data__;
|
|
592
|
-
if (nativeCreate$2) {
|
|
593
|
-
var result = data[key];
|
|
594
|
-
return result === HASH_UNDEFINED$2 ? undefined : result;
|
|
595
|
-
}
|
|
596
|
-
return hasOwnProperty$6.call(data, key) ? data[key] : undefined;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
var _hashGet = hashGet$1;
|
|
600
|
-
|
|
601
|
-
var nativeCreate$1 = _nativeCreate;
|
|
602
|
-
|
|
603
|
-
/** Used for built-in method references. */
|
|
604
|
-
var objectProto$7 = Object.prototype;
|
|
605
|
-
|
|
606
|
-
/** Used to check objects for own properties. */
|
|
607
|
-
var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
|
|
608
|
-
|
|
609
|
-
/**
|
|
610
|
-
* Checks if a hash value for `key` exists.
|
|
611
|
-
*
|
|
612
|
-
* @private
|
|
613
|
-
* @name has
|
|
614
|
-
* @memberOf Hash
|
|
615
|
-
* @param {string} key The key of the entry to check.
|
|
616
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
617
|
-
*/
|
|
618
|
-
function hashHas$1(key) {
|
|
619
|
-
var data = this.__data__;
|
|
620
|
-
return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$5.call(data, key);
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
var _hashHas = hashHas$1;
|
|
624
|
-
|
|
625
|
-
var nativeCreate = _nativeCreate;
|
|
626
|
-
|
|
627
|
-
/** Used to stand-in for `undefined` hash values. */
|
|
628
|
-
var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
|
|
629
|
-
|
|
630
|
-
/**
|
|
631
|
-
* Sets the hash `key` to `value`.
|
|
632
|
-
*
|
|
633
|
-
* @private
|
|
634
|
-
* @name set
|
|
635
|
-
* @memberOf Hash
|
|
636
|
-
* @param {string} key The key of the value to set.
|
|
637
|
-
* @param {*} value The value to set.
|
|
638
|
-
* @returns {Object} Returns the hash instance.
|
|
639
|
-
*/
|
|
640
|
-
function hashSet$1(key, value) {
|
|
641
|
-
var data = this.__data__;
|
|
642
|
-
this.size += this.has(key) ? 0 : 1;
|
|
643
|
-
data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED$1 : value;
|
|
644
|
-
return this;
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
var _hashSet = hashSet$1;
|
|
648
|
-
|
|
649
|
-
var hashClear = _hashClear,
|
|
650
|
-
hashDelete = _hashDelete,
|
|
651
|
-
hashGet = _hashGet,
|
|
652
|
-
hashHas = _hashHas,
|
|
653
|
-
hashSet = _hashSet;
|
|
654
|
-
|
|
655
|
-
/**
|
|
656
|
-
* Creates a hash object.
|
|
657
|
-
*
|
|
658
|
-
* @private
|
|
659
|
-
* @constructor
|
|
660
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
661
|
-
*/
|
|
662
|
-
function Hash$1(entries) {
|
|
663
|
-
var index = -1,
|
|
664
|
-
length = entries == null ? 0 : entries.length;
|
|
665
|
-
|
|
666
|
-
this.clear();
|
|
667
|
-
while (++index < length) {
|
|
668
|
-
var entry = entries[index];
|
|
669
|
-
this.set(entry[0], entry[1]);
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
|
|
673
|
-
// Add methods to `Hash`.
|
|
674
|
-
Hash$1.prototype.clear = hashClear;
|
|
675
|
-
Hash$1.prototype['delete'] = hashDelete;
|
|
676
|
-
Hash$1.prototype.get = hashGet;
|
|
677
|
-
Hash$1.prototype.has = hashHas;
|
|
678
|
-
Hash$1.prototype.set = hashSet;
|
|
679
|
-
|
|
680
|
-
var _Hash = Hash$1;
|
|
681
|
-
|
|
682
|
-
var Hash = _Hash,
|
|
683
|
-
ListCache$2 = _ListCache,
|
|
684
|
-
Map$3 = _Map;
|
|
685
|
-
|
|
686
|
-
/**
|
|
687
|
-
* Removes all key-value entries from the map.
|
|
688
|
-
*
|
|
689
|
-
* @private
|
|
690
|
-
* @name clear
|
|
691
|
-
* @memberOf MapCache
|
|
692
|
-
*/
|
|
693
|
-
function mapCacheClear$1() {
|
|
694
|
-
this.size = 0;
|
|
695
|
-
this.__data__ = {
|
|
696
|
-
'hash': new Hash,
|
|
697
|
-
'map': new (Map$3 || ListCache$2),
|
|
698
|
-
'string': new Hash
|
|
699
|
-
};
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
var _mapCacheClear = mapCacheClear$1;
|
|
703
|
-
|
|
704
|
-
/**
|
|
705
|
-
* Checks if `value` is suitable for use as unique object key.
|
|
706
|
-
*
|
|
707
|
-
* @private
|
|
708
|
-
* @param {*} value The value to check.
|
|
709
|
-
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
710
|
-
*/
|
|
711
|
-
|
|
712
|
-
function isKeyable$1(value) {
|
|
713
|
-
var type = typeof value;
|
|
714
|
-
return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
|
|
715
|
-
? (value !== '__proto__')
|
|
716
|
-
: (value === null);
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
var _isKeyable = isKeyable$1;
|
|
720
|
-
|
|
721
|
-
var isKeyable = _isKeyable;
|
|
722
|
-
|
|
723
|
-
/**
|
|
724
|
-
* Gets the data for `map`.
|
|
725
|
-
*
|
|
726
|
-
* @private
|
|
727
|
-
* @param {Object} map The map to query.
|
|
728
|
-
* @param {string} key The reference key.
|
|
729
|
-
* @returns {*} Returns the map data.
|
|
730
|
-
*/
|
|
731
|
-
function getMapData$4(map, key) {
|
|
732
|
-
var data = map.__data__;
|
|
733
|
-
return isKeyable(key)
|
|
734
|
-
? data[typeof key == 'string' ? 'string' : 'hash']
|
|
735
|
-
: data.map;
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
var _getMapData = getMapData$4;
|
|
739
|
-
|
|
740
|
-
var getMapData$3 = _getMapData;
|
|
741
|
-
|
|
742
|
-
/**
|
|
743
|
-
* Removes `key` and its value from the map.
|
|
744
|
-
*
|
|
745
|
-
* @private
|
|
746
|
-
* @name delete
|
|
747
|
-
* @memberOf MapCache
|
|
748
|
-
* @param {string} key The key of the value to remove.
|
|
749
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
750
|
-
*/
|
|
751
|
-
function mapCacheDelete$1(key) {
|
|
752
|
-
var result = getMapData$3(this, key)['delete'](key);
|
|
753
|
-
this.size -= result ? 1 : 0;
|
|
754
|
-
return result;
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
var _mapCacheDelete = mapCacheDelete$1;
|
|
758
|
-
|
|
759
|
-
var getMapData$2 = _getMapData;
|
|
760
|
-
|
|
761
|
-
/**
|
|
762
|
-
* Gets the map value for `key`.
|
|
763
|
-
*
|
|
764
|
-
* @private
|
|
765
|
-
* @name get
|
|
766
|
-
* @memberOf MapCache
|
|
767
|
-
* @param {string} key The key of the value to get.
|
|
768
|
-
* @returns {*} Returns the entry value.
|
|
769
|
-
*/
|
|
770
|
-
function mapCacheGet$1(key) {
|
|
771
|
-
return getMapData$2(this, key).get(key);
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
var _mapCacheGet = mapCacheGet$1;
|
|
775
|
-
|
|
776
|
-
var getMapData$1 = _getMapData;
|
|
777
|
-
|
|
778
|
-
/**
|
|
779
|
-
* Checks if a map value for `key` exists.
|
|
780
|
-
*
|
|
781
|
-
* @private
|
|
782
|
-
* @name has
|
|
783
|
-
* @memberOf MapCache
|
|
784
|
-
* @param {string} key The key of the entry to check.
|
|
785
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
786
|
-
*/
|
|
787
|
-
function mapCacheHas$1(key) {
|
|
788
|
-
return getMapData$1(this, key).has(key);
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
var _mapCacheHas = mapCacheHas$1;
|
|
792
|
-
|
|
793
|
-
var getMapData = _getMapData;
|
|
794
|
-
|
|
795
|
-
/**
|
|
796
|
-
* Sets the map `key` to `value`.
|
|
797
|
-
*
|
|
798
|
-
* @private
|
|
799
|
-
* @name set
|
|
800
|
-
* @memberOf MapCache
|
|
801
|
-
* @param {string} key The key of the value to set.
|
|
802
|
-
* @param {*} value The value to set.
|
|
803
|
-
* @returns {Object} Returns the map cache instance.
|
|
804
|
-
*/
|
|
805
|
-
function mapCacheSet$1(key, value) {
|
|
806
|
-
var data = getMapData(this, key),
|
|
807
|
-
size = data.size;
|
|
808
|
-
|
|
809
|
-
data.set(key, value);
|
|
810
|
-
this.size += data.size == size ? 0 : 1;
|
|
811
|
-
return this;
|
|
812
|
-
}
|
|
813
|
-
|
|
814
|
-
var _mapCacheSet = mapCacheSet$1;
|
|
815
|
-
|
|
816
|
-
var mapCacheClear = _mapCacheClear,
|
|
817
|
-
mapCacheDelete = _mapCacheDelete,
|
|
818
|
-
mapCacheGet = _mapCacheGet,
|
|
819
|
-
mapCacheHas = _mapCacheHas,
|
|
820
|
-
mapCacheSet = _mapCacheSet;
|
|
821
|
-
|
|
822
|
-
/**
|
|
823
|
-
* Creates a map cache object to store key-value pairs.
|
|
824
|
-
*
|
|
825
|
-
* @private
|
|
826
|
-
* @constructor
|
|
827
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
828
|
-
*/
|
|
829
|
-
function MapCache$3(entries) {
|
|
830
|
-
var index = -1,
|
|
831
|
-
length = entries == null ? 0 : entries.length;
|
|
832
|
-
|
|
833
|
-
this.clear();
|
|
834
|
-
while (++index < length) {
|
|
835
|
-
var entry = entries[index];
|
|
836
|
-
this.set(entry[0], entry[1]);
|
|
837
|
-
}
|
|
838
|
-
}
|
|
839
|
-
|
|
840
|
-
// Add methods to `MapCache`.
|
|
841
|
-
MapCache$3.prototype.clear = mapCacheClear;
|
|
842
|
-
MapCache$3.prototype['delete'] = mapCacheDelete;
|
|
843
|
-
MapCache$3.prototype.get = mapCacheGet;
|
|
844
|
-
MapCache$3.prototype.has = mapCacheHas;
|
|
845
|
-
MapCache$3.prototype.set = mapCacheSet;
|
|
846
|
-
|
|
847
|
-
var _MapCache = MapCache$3;
|
|
848
|
-
|
|
849
|
-
var ListCache$1 = _ListCache,
|
|
850
|
-
Map$2 = _Map,
|
|
851
|
-
MapCache$2 = _MapCache;
|
|
852
|
-
|
|
853
|
-
/** Used as the size to enable large array optimizations. */
|
|
854
|
-
var LARGE_ARRAY_SIZE = 200;
|
|
855
|
-
|
|
856
|
-
/**
|
|
857
|
-
* Sets the stack `key` to `value`.
|
|
858
|
-
*
|
|
859
|
-
* @private
|
|
860
|
-
* @name set
|
|
861
|
-
* @memberOf Stack
|
|
862
|
-
* @param {string} key The key of the value to set.
|
|
863
|
-
* @param {*} value The value to set.
|
|
864
|
-
* @returns {Object} Returns the stack cache instance.
|
|
865
|
-
*/
|
|
866
|
-
function stackSet$1(key, value) {
|
|
867
|
-
var data = this.__data__;
|
|
868
|
-
if (data instanceof ListCache$1) {
|
|
869
|
-
var pairs = data.__data__;
|
|
870
|
-
if (!Map$2 || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
|
|
871
|
-
pairs.push([key, value]);
|
|
872
|
-
this.size = ++data.size;
|
|
873
|
-
return this;
|
|
874
|
-
}
|
|
875
|
-
data = this.__data__ = new MapCache$2(pairs);
|
|
876
|
-
}
|
|
877
|
-
data.set(key, value);
|
|
878
|
-
this.size = data.size;
|
|
879
|
-
return this;
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
var _stackSet = stackSet$1;
|
|
883
|
-
|
|
884
|
-
var ListCache = _ListCache,
|
|
885
|
-
stackClear = _stackClear,
|
|
886
|
-
stackDelete = _stackDelete,
|
|
887
|
-
stackGet = _stackGet,
|
|
888
|
-
stackHas = _stackHas,
|
|
889
|
-
stackSet = _stackSet;
|
|
890
|
-
|
|
891
|
-
/**
|
|
892
|
-
* Creates a stack cache object to store key-value pairs.
|
|
893
|
-
*
|
|
894
|
-
* @private
|
|
895
|
-
* @constructor
|
|
896
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
897
|
-
*/
|
|
898
|
-
function Stack$2(entries) {
|
|
899
|
-
var data = this.__data__ = new ListCache(entries);
|
|
900
|
-
this.size = data.size;
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
// Add methods to `Stack`.
|
|
904
|
-
Stack$2.prototype.clear = stackClear;
|
|
905
|
-
Stack$2.prototype['delete'] = stackDelete;
|
|
906
|
-
Stack$2.prototype.get = stackGet;
|
|
907
|
-
Stack$2.prototype.has = stackHas;
|
|
908
|
-
Stack$2.prototype.set = stackSet;
|
|
909
|
-
|
|
910
|
-
var _Stack = Stack$2;
|
|
911
|
-
|
|
912
|
-
/** Used to stand-in for `undefined` hash values. */
|
|
913
|
-
|
|
914
|
-
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
915
|
-
|
|
916
|
-
/**
|
|
917
|
-
* Adds `value` to the array cache.
|
|
918
|
-
*
|
|
919
|
-
* @private
|
|
920
|
-
* @name add
|
|
921
|
-
* @memberOf SetCache
|
|
922
|
-
* @alias push
|
|
923
|
-
* @param {*} value The value to cache.
|
|
924
|
-
* @returns {Object} Returns the cache instance.
|
|
925
|
-
*/
|
|
926
|
-
function setCacheAdd$1(value) {
|
|
927
|
-
this.__data__.set(value, HASH_UNDEFINED);
|
|
928
|
-
return this;
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
var _setCacheAdd = setCacheAdd$1;
|
|
932
|
-
|
|
933
|
-
/**
|
|
934
|
-
* Checks if `value` is in the array cache.
|
|
935
|
-
*
|
|
936
|
-
* @private
|
|
937
|
-
* @name has
|
|
938
|
-
* @memberOf SetCache
|
|
939
|
-
* @param {*} value The value to search for.
|
|
940
|
-
* @returns {number} Returns `true` if `value` is found, else `false`.
|
|
941
|
-
*/
|
|
942
|
-
|
|
943
|
-
function setCacheHas$1(value) {
|
|
944
|
-
return this.__data__.has(value);
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
var _setCacheHas = setCacheHas$1;
|
|
948
|
-
|
|
949
|
-
var MapCache$1 = _MapCache,
|
|
950
|
-
setCacheAdd = _setCacheAdd,
|
|
951
|
-
setCacheHas = _setCacheHas;
|
|
952
|
-
|
|
953
|
-
/**
|
|
954
|
-
*
|
|
955
|
-
* Creates an array cache object to store unique values.
|
|
956
|
-
*
|
|
957
|
-
* @private
|
|
958
|
-
* @constructor
|
|
959
|
-
* @param {Array} [values] The values to cache.
|
|
960
|
-
*/
|
|
961
|
-
function SetCache$1(values) {
|
|
962
|
-
var index = -1,
|
|
963
|
-
length = values == null ? 0 : values.length;
|
|
964
|
-
|
|
965
|
-
this.__data__ = new MapCache$1;
|
|
966
|
-
while (++index < length) {
|
|
967
|
-
this.add(values[index]);
|
|
968
|
-
}
|
|
969
|
-
}
|
|
970
|
-
|
|
971
|
-
// Add methods to `SetCache`.
|
|
972
|
-
SetCache$1.prototype.add = SetCache$1.prototype.push = setCacheAdd;
|
|
973
|
-
SetCache$1.prototype.has = setCacheHas;
|
|
974
|
-
|
|
975
|
-
var _SetCache = SetCache$1;
|
|
976
|
-
|
|
977
70
|
/**
|
|
978
71
|
* A specialized version of `_.some` for arrays without support for iteratee
|
|
979
72
|
* shorthands.
|
|
@@ -1099,10 +192,10 @@ function equalArrays$2(array, other, bitmask, customizer, equalFunc, stack) {
|
|
|
1099
192
|
|
|
1100
193
|
var _equalArrays = equalArrays$2;
|
|
1101
194
|
|
|
1102
|
-
var root
|
|
195
|
+
var root = _root;
|
|
1103
196
|
|
|
1104
197
|
/** Built-in value references. */
|
|
1105
|
-
var Uint8Array$1 = root
|
|
198
|
+
var Uint8Array$1 = root.Uint8Array;
|
|
1106
199
|
|
|
1107
200
|
var _Uint8Array = Uint8Array$1;
|
|
1108
201
|
|
|
@@ -1158,18 +251,18 @@ var COMPARE_PARTIAL_FLAG$4 = 1,
|
|
|
1158
251
|
COMPARE_UNORDERED_FLAG$2 = 2;
|
|
1159
252
|
|
|
1160
253
|
/** `Object#toString` result references. */
|
|
1161
|
-
var boolTag
|
|
1162
|
-
dateTag
|
|
1163
|
-
errorTag
|
|
1164
|
-
mapTag
|
|
1165
|
-
numberTag
|
|
1166
|
-
regexpTag
|
|
1167
|
-
setTag
|
|
1168
|
-
stringTag
|
|
254
|
+
var boolTag = '[object Boolean]',
|
|
255
|
+
dateTag = '[object Date]',
|
|
256
|
+
errorTag = '[object Error]',
|
|
257
|
+
mapTag = '[object Map]',
|
|
258
|
+
numberTag = '[object Number]',
|
|
259
|
+
regexpTag = '[object RegExp]',
|
|
260
|
+
setTag = '[object Set]',
|
|
261
|
+
stringTag = '[object String]',
|
|
1169
262
|
symbolTag = '[object Symbol]';
|
|
1170
263
|
|
|
1171
|
-
var arrayBufferTag
|
|
1172
|
-
dataViewTag
|
|
264
|
+
var arrayBufferTag = '[object ArrayBuffer]',
|
|
265
|
+
dataViewTag = '[object DataView]';
|
|
1173
266
|
|
|
1174
267
|
/** Used to convert symbols to primitives and strings. */
|
|
1175
268
|
var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : undefined,
|
|
@@ -1194,7 +287,7 @@ var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : undefined,
|
|
|
1194
287
|
*/
|
|
1195
288
|
function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
1196
289
|
switch (tag) {
|
|
1197
|
-
case dataViewTag
|
|
290
|
+
case dataViewTag:
|
|
1198
291
|
if ((object.byteLength != other.byteLength) ||
|
|
1199
292
|
(object.byteOffset != other.byteOffset)) {
|
|
1200
293
|
return false;
|
|
@@ -1202,34 +295,34 @@ function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack)
|
|
|
1202
295
|
object = object.buffer;
|
|
1203
296
|
other = other.buffer;
|
|
1204
297
|
|
|
1205
|
-
case arrayBufferTag
|
|
298
|
+
case arrayBufferTag:
|
|
1206
299
|
if ((object.byteLength != other.byteLength) ||
|
|
1207
300
|
!equalFunc(new Uint8Array(object), new Uint8Array(other))) {
|
|
1208
301
|
return false;
|
|
1209
302
|
}
|
|
1210
303
|
return true;
|
|
1211
304
|
|
|
1212
|
-
case boolTag
|
|
1213
|
-
case dateTag
|
|
1214
|
-
case numberTag
|
|
305
|
+
case boolTag:
|
|
306
|
+
case dateTag:
|
|
307
|
+
case numberTag:
|
|
1215
308
|
// Coerce booleans to `1` or `0` and dates to milliseconds.
|
|
1216
309
|
// Invalid dates are coerced to `NaN`.
|
|
1217
310
|
return eq$1(+object, +other);
|
|
1218
311
|
|
|
1219
|
-
case errorTag
|
|
312
|
+
case errorTag:
|
|
1220
313
|
return object.name == other.name && object.message == other.message;
|
|
1221
314
|
|
|
1222
|
-
case regexpTag
|
|
1223
|
-
case stringTag
|
|
315
|
+
case regexpTag:
|
|
316
|
+
case stringTag:
|
|
1224
317
|
// Coerce regexes to strings and treat strings, primitives and objects,
|
|
1225
318
|
// as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
|
|
1226
319
|
// for more details.
|
|
1227
320
|
return object == (other + '');
|
|
1228
321
|
|
|
1229
|
-
case mapTag
|
|
322
|
+
case mapTag:
|
|
1230
323
|
var convert = mapToArray;
|
|
1231
324
|
|
|
1232
|
-
case setTag
|
|
325
|
+
case setTag:
|
|
1233
326
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$4;
|
|
1234
327
|
convert || (convert = setToArray);
|
|
1235
328
|
|
|
@@ -1386,10 +479,10 @@ var arrayFilter = _arrayFilter,
|
|
|
1386
479
|
stubArray = stubArray_1;
|
|
1387
480
|
|
|
1388
481
|
/** Used for built-in method references. */
|
|
1389
|
-
var objectProto$
|
|
482
|
+
var objectProto$5 = Object.prototype;
|
|
1390
483
|
|
|
1391
484
|
/** Built-in value references. */
|
|
1392
|
-
var propertyIsEnumerable
|
|
485
|
+
var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
|
|
1393
486
|
|
|
1394
487
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
1395
488
|
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
@@ -1407,7 +500,7 @@ var getSymbols$1 = !nativeGetSymbols ? stubArray : function(object) {
|
|
|
1407
500
|
}
|
|
1408
501
|
object = Object(object);
|
|
1409
502
|
return arrayFilter(nativeGetSymbols(object), function(symbol) {
|
|
1410
|
-
return propertyIsEnumerable
|
|
503
|
+
return propertyIsEnumerable.call(object, symbol);
|
|
1411
504
|
});
|
|
1412
505
|
};
|
|
1413
506
|
|
|
@@ -1435,128 +528,9 @@ function baseTimes$1(n, iteratee) {
|
|
|
1435
528
|
|
|
1436
529
|
var _baseTimes = baseTimes$1;
|
|
1437
530
|
|
|
1438
|
-
var baseGetTag$2 = _baseGetTag,
|
|
1439
|
-
isObjectLike$3 = isObjectLike_1;
|
|
1440
|
-
|
|
1441
|
-
/** `Object#toString` result references. */
|
|
1442
|
-
var argsTag$2 = '[object Arguments]';
|
|
1443
|
-
|
|
1444
|
-
/**
|
|
1445
|
-
* The base implementation of `_.isArguments`.
|
|
1446
|
-
*
|
|
1447
|
-
* @private
|
|
1448
|
-
* @param {*} value The value to check.
|
|
1449
|
-
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
1450
|
-
*/
|
|
1451
|
-
function baseIsArguments$1(value) {
|
|
1452
|
-
return isObjectLike$3(value) && baseGetTag$2(value) == argsTag$2;
|
|
1453
|
-
}
|
|
1454
|
-
|
|
1455
|
-
var _baseIsArguments = baseIsArguments$1;
|
|
1456
|
-
|
|
1457
|
-
var baseIsArguments = _baseIsArguments,
|
|
1458
|
-
isObjectLike$2 = isObjectLike_1;
|
|
1459
|
-
|
|
1460
|
-
/** Used for built-in method references. */
|
|
1461
|
-
var objectProto$5 = Object.prototype;
|
|
1462
|
-
|
|
1463
|
-
/** Used to check objects for own properties. */
|
|
1464
|
-
var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
|
|
1465
|
-
|
|
1466
|
-
/** Built-in value references. */
|
|
1467
|
-
var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
|
|
1468
|
-
|
|
1469
|
-
/**
|
|
1470
|
-
* Checks if `value` is likely an `arguments` object.
|
|
1471
|
-
*
|
|
1472
|
-
* @static
|
|
1473
|
-
* @memberOf _
|
|
1474
|
-
* @since 0.1.0
|
|
1475
|
-
* @category Lang
|
|
1476
|
-
* @param {*} value The value to check.
|
|
1477
|
-
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
1478
|
-
* else `false`.
|
|
1479
|
-
* @example
|
|
1480
|
-
*
|
|
1481
|
-
* _.isArguments(function() { return arguments; }());
|
|
1482
|
-
* // => true
|
|
1483
|
-
*
|
|
1484
|
-
* _.isArguments([1, 2, 3]);
|
|
1485
|
-
* // => false
|
|
1486
|
-
*/
|
|
1487
|
-
var isArguments$2 = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
|
|
1488
|
-
return isObjectLike$2(value) && hasOwnProperty$4.call(value, 'callee') &&
|
|
1489
|
-
!propertyIsEnumerable.call(value, 'callee');
|
|
1490
|
-
};
|
|
1491
|
-
|
|
1492
|
-
var isArguments_1 = isArguments$2;
|
|
1493
|
-
|
|
1494
|
-
var isBuffer$2 = {exports: {}};
|
|
1495
|
-
|
|
1496
|
-
/**
|
|
1497
|
-
* This method returns `false`.
|
|
1498
|
-
*
|
|
1499
|
-
* @static
|
|
1500
|
-
* @memberOf _
|
|
1501
|
-
* @since 4.13.0
|
|
1502
|
-
* @category Util
|
|
1503
|
-
* @returns {boolean} Returns `false`.
|
|
1504
|
-
* @example
|
|
1505
|
-
*
|
|
1506
|
-
* _.times(2, _.stubFalse);
|
|
1507
|
-
* // => [false, false]
|
|
1508
|
-
*/
|
|
1509
|
-
|
|
1510
|
-
function stubFalse() {
|
|
1511
|
-
return false;
|
|
1512
|
-
}
|
|
1513
|
-
|
|
1514
|
-
var stubFalse_1 = stubFalse;
|
|
1515
|
-
|
|
1516
|
-
(function (module, exports) {
|
|
1517
|
-
var root = _root,
|
|
1518
|
-
stubFalse = stubFalse_1;
|
|
1519
|
-
|
|
1520
|
-
/** Detect free variable `exports`. */
|
|
1521
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
1522
|
-
|
|
1523
|
-
/** Detect free variable `module`. */
|
|
1524
|
-
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
1525
|
-
|
|
1526
|
-
/** Detect the popular CommonJS extension `module.exports`. */
|
|
1527
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
1528
|
-
|
|
1529
|
-
/** Built-in value references. */
|
|
1530
|
-
var Buffer = moduleExports ? root.Buffer : undefined;
|
|
1531
|
-
|
|
1532
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
1533
|
-
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
|
1534
|
-
|
|
1535
|
-
/**
|
|
1536
|
-
* Checks if `value` is a buffer.
|
|
1537
|
-
*
|
|
1538
|
-
* @static
|
|
1539
|
-
* @memberOf _
|
|
1540
|
-
* @since 4.3.0
|
|
1541
|
-
* @category Lang
|
|
1542
|
-
* @param {*} value The value to check.
|
|
1543
|
-
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
|
1544
|
-
* @example
|
|
1545
|
-
*
|
|
1546
|
-
* _.isBuffer(new Buffer(2));
|
|
1547
|
-
* // => true
|
|
1548
|
-
*
|
|
1549
|
-
* _.isBuffer(new Uint8Array(2));
|
|
1550
|
-
* // => false
|
|
1551
|
-
*/
|
|
1552
|
-
var isBuffer = nativeIsBuffer || stubFalse;
|
|
1553
|
-
|
|
1554
|
-
module.exports = isBuffer;
|
|
1555
|
-
}(isBuffer$2, isBuffer$2.exports));
|
|
1556
|
-
|
|
1557
531
|
/** Used as references for various `Number` constants. */
|
|
1558
532
|
|
|
1559
|
-
var MAX_SAFE_INTEGER
|
|
533
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
1560
534
|
|
|
1561
535
|
/** Used to detect unsigned integer values. */
|
|
1562
536
|
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
@@ -1571,7 +545,7 @@ var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
|
1571
545
|
*/
|
|
1572
546
|
function isIndex$3(value, length) {
|
|
1573
547
|
var type = typeof value;
|
|
1574
|
-
length = length == null ? MAX_SAFE_INTEGER
|
|
548
|
+
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
1575
549
|
|
|
1576
550
|
return !!length &&
|
|
1577
551
|
(type == 'number' ||
|
|
@@ -1581,104 +555,6 @@ function isIndex$3(value, length) {
|
|
|
1581
555
|
|
|
1582
556
|
var _isIndex = isIndex$3;
|
|
1583
557
|
|
|
1584
|
-
/** Used as references for various `Number` constants. */
|
|
1585
|
-
|
|
1586
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
1587
|
-
|
|
1588
|
-
/**
|
|
1589
|
-
* Checks if `value` is a valid array-like length.
|
|
1590
|
-
*
|
|
1591
|
-
* **Note:** This method is loosely based on
|
|
1592
|
-
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
1593
|
-
*
|
|
1594
|
-
* @static
|
|
1595
|
-
* @memberOf _
|
|
1596
|
-
* @since 4.0.0
|
|
1597
|
-
* @category Lang
|
|
1598
|
-
* @param {*} value The value to check.
|
|
1599
|
-
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
1600
|
-
* @example
|
|
1601
|
-
*
|
|
1602
|
-
* _.isLength(3);
|
|
1603
|
-
* // => true
|
|
1604
|
-
*
|
|
1605
|
-
* _.isLength(Number.MIN_VALUE);
|
|
1606
|
-
* // => false
|
|
1607
|
-
*
|
|
1608
|
-
* _.isLength(Infinity);
|
|
1609
|
-
* // => false
|
|
1610
|
-
*
|
|
1611
|
-
* _.isLength('3');
|
|
1612
|
-
* // => false
|
|
1613
|
-
*/
|
|
1614
|
-
function isLength$3(value) {
|
|
1615
|
-
return typeof value == 'number' &&
|
|
1616
|
-
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
1617
|
-
}
|
|
1618
|
-
|
|
1619
|
-
var isLength_1 = isLength$3;
|
|
1620
|
-
|
|
1621
|
-
var baseGetTag$1 = _baseGetTag,
|
|
1622
|
-
isLength$2 = isLength_1,
|
|
1623
|
-
isObjectLike$1 = isObjectLike_1;
|
|
1624
|
-
|
|
1625
|
-
/** `Object#toString` result references. */
|
|
1626
|
-
var argsTag$1 = '[object Arguments]',
|
|
1627
|
-
arrayTag$1 = '[object Array]',
|
|
1628
|
-
boolTag = '[object Boolean]',
|
|
1629
|
-
dateTag = '[object Date]',
|
|
1630
|
-
errorTag = '[object Error]',
|
|
1631
|
-
funcTag = '[object Function]',
|
|
1632
|
-
mapTag$1 = '[object Map]',
|
|
1633
|
-
numberTag = '[object Number]',
|
|
1634
|
-
objectTag$2 = '[object Object]',
|
|
1635
|
-
regexpTag = '[object RegExp]',
|
|
1636
|
-
setTag$1 = '[object Set]',
|
|
1637
|
-
stringTag = '[object String]',
|
|
1638
|
-
weakMapTag$1 = '[object WeakMap]';
|
|
1639
|
-
|
|
1640
|
-
var arrayBufferTag = '[object ArrayBuffer]',
|
|
1641
|
-
dataViewTag$1 = '[object DataView]',
|
|
1642
|
-
float32Tag = '[object Float32Array]',
|
|
1643
|
-
float64Tag = '[object Float64Array]',
|
|
1644
|
-
int8Tag = '[object Int8Array]',
|
|
1645
|
-
int16Tag = '[object Int16Array]',
|
|
1646
|
-
int32Tag = '[object Int32Array]',
|
|
1647
|
-
uint8Tag = '[object Uint8Array]',
|
|
1648
|
-
uint8ClampedTag = '[object Uint8ClampedArray]',
|
|
1649
|
-
uint16Tag = '[object Uint16Array]',
|
|
1650
|
-
uint32Tag = '[object Uint32Array]';
|
|
1651
|
-
|
|
1652
|
-
/** Used to identify `toStringTag` values of typed arrays. */
|
|
1653
|
-
var typedArrayTags = {};
|
|
1654
|
-
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
|
|
1655
|
-
typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
|
|
1656
|
-
typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
|
|
1657
|
-
typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
|
|
1658
|
-
typedArrayTags[uint32Tag] = true;
|
|
1659
|
-
typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] =
|
|
1660
|
-
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
|
|
1661
|
-
typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] =
|
|
1662
|
-
typedArrayTags[errorTag] = typedArrayTags[funcTag] =
|
|
1663
|
-
typedArrayTags[mapTag$1] = typedArrayTags[numberTag] =
|
|
1664
|
-
typedArrayTags[objectTag$2] = typedArrayTags[regexpTag] =
|
|
1665
|
-
typedArrayTags[setTag$1] = typedArrayTags[stringTag] =
|
|
1666
|
-
typedArrayTags[weakMapTag$1] = false;
|
|
1667
|
-
|
|
1668
|
-
/**
|
|
1669
|
-
* The base implementation of `_.isTypedArray` without Node.js optimizations.
|
|
1670
|
-
*
|
|
1671
|
-
* @private
|
|
1672
|
-
* @param {*} value The value to check.
|
|
1673
|
-
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
1674
|
-
*/
|
|
1675
|
-
function baseIsTypedArray$1(value) {
|
|
1676
|
-
return isObjectLike$1(value) &&
|
|
1677
|
-
isLength$2(value.length) && !!typedArrayTags[baseGetTag$1(value)];
|
|
1678
|
-
}
|
|
1679
|
-
|
|
1680
|
-
var _baseIsTypedArray = baseIsTypedArray$1;
|
|
1681
|
-
|
|
1682
558
|
/**
|
|
1683
559
|
* The base implementation of `_.unary` without support for storing metadata.
|
|
1684
560
|
*
|
|
@@ -1695,41 +571,6 @@ function baseUnary$1(func) {
|
|
|
1695
571
|
|
|
1696
572
|
var _baseUnary = baseUnary$1;
|
|
1697
573
|
|
|
1698
|
-
var _nodeUtil = {exports: {}};
|
|
1699
|
-
|
|
1700
|
-
(function (module, exports) {
|
|
1701
|
-
var freeGlobal = _freeGlobal;
|
|
1702
|
-
|
|
1703
|
-
/** Detect free variable `exports`. */
|
|
1704
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
1705
|
-
|
|
1706
|
-
/** Detect free variable `module`. */
|
|
1707
|
-
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
1708
|
-
|
|
1709
|
-
/** Detect the popular CommonJS extension `module.exports`. */
|
|
1710
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
1711
|
-
|
|
1712
|
-
/** Detect free variable `process` from Node.js. */
|
|
1713
|
-
var freeProcess = moduleExports && freeGlobal.process;
|
|
1714
|
-
|
|
1715
|
-
/** Used to access faster Node.js helpers. */
|
|
1716
|
-
var nodeUtil = (function() {
|
|
1717
|
-
try {
|
|
1718
|
-
// Use `util.types` for Node.js 10+.
|
|
1719
|
-
var types = freeModule && freeModule.require && freeModule.require('util').types;
|
|
1720
|
-
|
|
1721
|
-
if (types) {
|
|
1722
|
-
return types;
|
|
1723
|
-
}
|
|
1724
|
-
|
|
1725
|
-
// Legacy `process.binding('util')` for Node.js < 10.
|
|
1726
|
-
return freeProcess && freeProcess.binding && freeProcess.binding('util');
|
|
1727
|
-
} catch (e) {}
|
|
1728
|
-
}());
|
|
1729
|
-
|
|
1730
|
-
module.exports = nodeUtil;
|
|
1731
|
-
}(_nodeUtil, _nodeUtil.exports));
|
|
1732
|
-
|
|
1733
574
|
var baseIsTypedArray = _baseIsTypedArray,
|
|
1734
575
|
baseUnary = _baseUnary,
|
|
1735
576
|
nodeUtil = _nodeUtil.exports;
|
|
@@ -2063,97 +904,6 @@ function equalObjects$1(object, other, bitmask, customizer, equalFunc, stack) {
|
|
|
2063
904
|
|
|
2064
905
|
var _equalObjects = equalObjects$1;
|
|
2065
906
|
|
|
2066
|
-
var getNative$3 = _getNative,
|
|
2067
|
-
root$3 = _root;
|
|
2068
|
-
|
|
2069
|
-
/* Built-in method references that are verified to be native. */
|
|
2070
|
-
var DataView$1 = getNative$3(root$3, 'DataView');
|
|
2071
|
-
|
|
2072
|
-
var _DataView = DataView$1;
|
|
2073
|
-
|
|
2074
|
-
var getNative$2 = _getNative,
|
|
2075
|
-
root$2 = _root;
|
|
2076
|
-
|
|
2077
|
-
/* Built-in method references that are verified to be native. */
|
|
2078
|
-
var Promise$2 = getNative$2(root$2, 'Promise');
|
|
2079
|
-
|
|
2080
|
-
var _Promise = Promise$2;
|
|
2081
|
-
|
|
2082
|
-
var getNative$1 = _getNative,
|
|
2083
|
-
root$1 = _root;
|
|
2084
|
-
|
|
2085
|
-
/* Built-in method references that are verified to be native. */
|
|
2086
|
-
var Set$1 = getNative$1(root$1, 'Set');
|
|
2087
|
-
|
|
2088
|
-
var _Set = Set$1;
|
|
2089
|
-
|
|
2090
|
-
var getNative = _getNative,
|
|
2091
|
-
root = _root;
|
|
2092
|
-
|
|
2093
|
-
/* Built-in method references that are verified to be native. */
|
|
2094
|
-
var WeakMap$1 = getNative(root, 'WeakMap');
|
|
2095
|
-
|
|
2096
|
-
var _WeakMap = WeakMap$1;
|
|
2097
|
-
|
|
2098
|
-
var DataView = _DataView,
|
|
2099
|
-
Map$1 = _Map,
|
|
2100
|
-
Promise$1 = _Promise,
|
|
2101
|
-
Set = _Set,
|
|
2102
|
-
WeakMap = _WeakMap,
|
|
2103
|
-
baseGetTag = _baseGetTag,
|
|
2104
|
-
toSource = _toSource;
|
|
2105
|
-
|
|
2106
|
-
/** `Object#toString` result references. */
|
|
2107
|
-
var mapTag = '[object Map]',
|
|
2108
|
-
objectTag$1 = '[object Object]',
|
|
2109
|
-
promiseTag = '[object Promise]',
|
|
2110
|
-
setTag = '[object Set]',
|
|
2111
|
-
weakMapTag = '[object WeakMap]';
|
|
2112
|
-
|
|
2113
|
-
var dataViewTag = '[object DataView]';
|
|
2114
|
-
|
|
2115
|
-
/** Used to detect maps, sets, and weakmaps. */
|
|
2116
|
-
var dataViewCtorString = toSource(DataView),
|
|
2117
|
-
mapCtorString = toSource(Map$1),
|
|
2118
|
-
promiseCtorString = toSource(Promise$1),
|
|
2119
|
-
setCtorString = toSource(Set),
|
|
2120
|
-
weakMapCtorString = toSource(WeakMap);
|
|
2121
|
-
|
|
2122
|
-
/**
|
|
2123
|
-
* Gets the `toStringTag` of `value`.
|
|
2124
|
-
*
|
|
2125
|
-
* @private
|
|
2126
|
-
* @param {*} value The value to query.
|
|
2127
|
-
* @returns {string} Returns the `toStringTag`.
|
|
2128
|
-
*/
|
|
2129
|
-
var getTag$1 = baseGetTag;
|
|
2130
|
-
|
|
2131
|
-
// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
|
|
2132
|
-
if ((DataView && getTag$1(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
|
2133
|
-
(Map$1 && getTag$1(new Map$1) != mapTag) ||
|
|
2134
|
-
(Promise$1 && getTag$1(Promise$1.resolve()) != promiseTag) ||
|
|
2135
|
-
(Set && getTag$1(new Set) != setTag) ||
|
|
2136
|
-
(WeakMap && getTag$1(new WeakMap) != weakMapTag)) {
|
|
2137
|
-
getTag$1 = function(value) {
|
|
2138
|
-
var result = baseGetTag(value),
|
|
2139
|
-
Ctor = result == objectTag$1 ? value.constructor : undefined,
|
|
2140
|
-
ctorString = Ctor ? toSource(Ctor) : '';
|
|
2141
|
-
|
|
2142
|
-
if (ctorString) {
|
|
2143
|
-
switch (ctorString) {
|
|
2144
|
-
case dataViewCtorString: return dataViewTag;
|
|
2145
|
-
case mapCtorString: return mapTag;
|
|
2146
|
-
case promiseCtorString: return promiseTag;
|
|
2147
|
-
case setCtorString: return setTag;
|
|
2148
|
-
case weakMapCtorString: return weakMapTag;
|
|
2149
|
-
}
|
|
2150
|
-
}
|
|
2151
|
-
return result;
|
|
2152
|
-
};
|
|
2153
|
-
}
|
|
2154
|
-
|
|
2155
|
-
var _getTag = getTag$1;
|
|
2156
|
-
|
|
2157
907
|
var Stack$1 = _Stack,
|
|
2158
908
|
equalArrays = _equalArrays,
|
|
2159
909
|
equalByTag = _equalByTag,
|
|
@@ -2446,135 +1196,6 @@ function isKey$3(value, object) {
|
|
|
2446
1196
|
|
|
2447
1197
|
var _isKey = isKey$3;
|
|
2448
1198
|
|
|
2449
|
-
var MapCache = _MapCache;
|
|
2450
|
-
|
|
2451
|
-
/** Error message constants. */
|
|
2452
|
-
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
2453
|
-
|
|
2454
|
-
/**
|
|
2455
|
-
* Creates a function that memoizes the result of `func`. If `resolver` is
|
|
2456
|
-
* provided, it determines the cache key for storing the result based on the
|
|
2457
|
-
* arguments provided to the memoized function. By default, the first argument
|
|
2458
|
-
* provided to the memoized function is used as the map cache key. The `func`
|
|
2459
|
-
* is invoked with the `this` binding of the memoized function.
|
|
2460
|
-
*
|
|
2461
|
-
* **Note:** The cache is exposed as the `cache` property on the memoized
|
|
2462
|
-
* function. Its creation may be customized by replacing the `_.memoize.Cache`
|
|
2463
|
-
* constructor with one whose instances implement the
|
|
2464
|
-
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
|
|
2465
|
-
* method interface of `clear`, `delete`, `get`, `has`, and `set`.
|
|
2466
|
-
*
|
|
2467
|
-
* @static
|
|
2468
|
-
* @memberOf _
|
|
2469
|
-
* @since 0.1.0
|
|
2470
|
-
* @category Function
|
|
2471
|
-
* @param {Function} func The function to have its output memoized.
|
|
2472
|
-
* @param {Function} [resolver] The function to resolve the cache key.
|
|
2473
|
-
* @returns {Function} Returns the new memoized function.
|
|
2474
|
-
* @example
|
|
2475
|
-
*
|
|
2476
|
-
* var object = { 'a': 1, 'b': 2 };
|
|
2477
|
-
* var other = { 'c': 3, 'd': 4 };
|
|
2478
|
-
*
|
|
2479
|
-
* var values = _.memoize(_.values);
|
|
2480
|
-
* values(object);
|
|
2481
|
-
* // => [1, 2]
|
|
2482
|
-
*
|
|
2483
|
-
* values(other);
|
|
2484
|
-
* // => [3, 4]
|
|
2485
|
-
*
|
|
2486
|
-
* object.a = 2;
|
|
2487
|
-
* values(object);
|
|
2488
|
-
* // => [1, 2]
|
|
2489
|
-
*
|
|
2490
|
-
* // Modify the result cache.
|
|
2491
|
-
* values.cache.set(object, ['a', 'b']);
|
|
2492
|
-
* values(object);
|
|
2493
|
-
* // => ['a', 'b']
|
|
2494
|
-
*
|
|
2495
|
-
* // Replace `_.memoize.Cache`.
|
|
2496
|
-
* _.memoize.Cache = WeakMap;
|
|
2497
|
-
*/
|
|
2498
|
-
function memoize$1(func, resolver) {
|
|
2499
|
-
if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
|
|
2500
|
-
throw new TypeError(FUNC_ERROR_TEXT);
|
|
2501
|
-
}
|
|
2502
|
-
var memoized = function() {
|
|
2503
|
-
var args = arguments,
|
|
2504
|
-
key = resolver ? resolver.apply(this, args) : args[0],
|
|
2505
|
-
cache = memoized.cache;
|
|
2506
|
-
|
|
2507
|
-
if (cache.has(key)) {
|
|
2508
|
-
return cache.get(key);
|
|
2509
|
-
}
|
|
2510
|
-
var result = func.apply(this, args);
|
|
2511
|
-
memoized.cache = cache.set(key, result) || cache;
|
|
2512
|
-
return result;
|
|
2513
|
-
};
|
|
2514
|
-
memoized.cache = new (memoize$1.Cache || MapCache);
|
|
2515
|
-
return memoized;
|
|
2516
|
-
}
|
|
2517
|
-
|
|
2518
|
-
// Expose `MapCache`.
|
|
2519
|
-
memoize$1.Cache = MapCache;
|
|
2520
|
-
|
|
2521
|
-
var memoize_1 = memoize$1;
|
|
2522
|
-
|
|
2523
|
-
var memoize = memoize_1;
|
|
2524
|
-
|
|
2525
|
-
/** Used as the maximum memoize cache size. */
|
|
2526
|
-
var MAX_MEMOIZE_SIZE = 500;
|
|
2527
|
-
|
|
2528
|
-
/**
|
|
2529
|
-
* A specialized version of `_.memoize` which clears the memoized function's
|
|
2530
|
-
* cache when it exceeds `MAX_MEMOIZE_SIZE`.
|
|
2531
|
-
*
|
|
2532
|
-
* @private
|
|
2533
|
-
* @param {Function} func The function to have its output memoized.
|
|
2534
|
-
* @returns {Function} Returns the new memoized function.
|
|
2535
|
-
*/
|
|
2536
|
-
function memoizeCapped$1(func) {
|
|
2537
|
-
var result = memoize(func, function(key) {
|
|
2538
|
-
if (cache.size === MAX_MEMOIZE_SIZE) {
|
|
2539
|
-
cache.clear();
|
|
2540
|
-
}
|
|
2541
|
-
return key;
|
|
2542
|
-
});
|
|
2543
|
-
|
|
2544
|
-
var cache = result.cache;
|
|
2545
|
-
return result;
|
|
2546
|
-
}
|
|
2547
|
-
|
|
2548
|
-
var _memoizeCapped = memoizeCapped$1;
|
|
2549
|
-
|
|
2550
|
-
var memoizeCapped = _memoizeCapped;
|
|
2551
|
-
|
|
2552
|
-
/** Used to match property names within property paths. */
|
|
2553
|
-
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
2554
|
-
|
|
2555
|
-
/** Used to match backslashes in property paths. */
|
|
2556
|
-
var reEscapeChar = /\\(\\)?/g;
|
|
2557
|
-
|
|
2558
|
-
/**
|
|
2559
|
-
* Converts `string` to a property path array.
|
|
2560
|
-
*
|
|
2561
|
-
* @private
|
|
2562
|
-
* @param {string} string The string to convert.
|
|
2563
|
-
* @returns {Array} Returns the property path array.
|
|
2564
|
-
*/
|
|
2565
|
-
var stringToPath$1 = memoizeCapped(function(string) {
|
|
2566
|
-
var result = [];
|
|
2567
|
-
if (string.charCodeAt(0) === 46 /* . */) {
|
|
2568
|
-
result.push('');
|
|
2569
|
-
}
|
|
2570
|
-
string.replace(rePropName, function(match, number, quote, subString) {
|
|
2571
|
-
result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
|
|
2572
|
-
});
|
|
2573
|
-
return result;
|
|
2574
|
-
});
|
|
2575
|
-
|
|
2576
|
-
var _stringToPath = stringToPath$1;
|
|
2577
|
-
|
|
2578
1199
|
/**
|
|
2579
1200
|
* A specialized version of `_.map` for arrays without support for iteratee
|
|
2580
1201
|
* shorthands.
|
|
@@ -3649,6 +2270,6 @@ function getSourceItemVirtualIndexByProp(store, prop) {
|
|
|
3649
2270
|
return items.indexOf(physicalIndex);
|
|
3650
2271
|
}
|
|
3651
2272
|
|
|
3652
|
-
export { DataStore as D, _baseIteratee as _, getVisibleSourceItem as a, getSourceItem as b, setSourceByPhysicalIndex as c, setItems as d, getSourceItemVirtualIndexByProp as e, gatherTrimmedItems as f, getPhysical as g, setStore as h, createStore as i, isArray_1 as j, isArrayLike_1 as k, keys_1 as l, findIndex_1 as m, _baseProperty as n, _baseKeys as o, proxyPlugin as p,
|
|
2273
|
+
export { DataStore as D, _baseIteratee as _, getVisibleSourceItem as a, getSourceItem as b, setSourceByPhysicalIndex as c, setItems as d, getSourceItemVirtualIndexByProp as e, gatherTrimmedItems as f, getPhysical as g, setStore as h, createStore as i, isArray_1 as j, isArrayLike_1 as k, keys_1 as l, findIndex_1 as m, _baseProperty as n, _baseKeys as o, proxyPlugin as p, toInteger_1 as q, range_1 as r, setSourceByVirtualIndex as s, trimmedPlugin as t, _isIterateeCall as u, identity_1 as v };
|
|
3653
2274
|
|
|
3654
2275
|
//# sourceMappingURL=data.store.js.map
|