@wix/builder-utils 1.21.1
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/bundles/debug/es/builder-utils.mjs +979 -0
- package/dist/bundles/debug/es/builder-utils.mjs.map +1 -0
- package/dist/bundles/debug/umd/builder-utils.js +983 -0
- package/dist/bundles/debug/umd/builder-utils.js.map +1 -0
- package/dist/bundles/es/builder-utils.mjs +618 -0
- package/dist/bundles/es/builder-utils.mjs.map +1 -0
- package/dist/bundles/umd/builder-utils.js +2 -0
- package/dist/bundles/umd/builder-utils.js.map +1 -0
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.js +9 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/mergeUtils.d.ts +2 -0
- package/dist/cjs/mergeUtils.js +60 -0
- package/dist/cjs/mergeUtils.js.map +1 -0
- package/dist/cjs/signalUtils.d.ts +6 -0
- package/dist/cjs/signalUtils.js +28 -0
- package/dist/cjs/signalUtils.js.map +1 -0
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/mergeUtils.d.ts +2 -0
- package/dist/esm/mergeUtils.js +52 -0
- package/dist/esm/mergeUtils.js.map +1 -0
- package/dist/esm/signalUtils.d.ts +6 -0
- package/dist/esm/signalUtils.js +24 -0
- package/dist/esm/signalUtils.js.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/mergeUtils.d.ts +3 -0
- package/dist/types/mergeUtils.d.ts.map +1 -0
- package/dist/types/signalUtils.d.ts +7 -0
- package/dist/types/signalUtils.d.ts.map +1 -0
- package/package.json +64 -0
- package/src/index.ts +2 -0
- package/src/mergeUtils.ts +66 -0
- package/src/signalUtils.ts +31 -0
|
@@ -0,0 +1,983 @@
|
|
|
1
|
+
(function(global2, factory) {
|
|
2
|
+
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.BuilderUtils = {}));
|
|
3
|
+
})(this, function(exports2) {
|
|
4
|
+
"use strict";
|
|
5
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
6
|
+
function getDefaultExportFromCjs(x) {
|
|
7
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
8
|
+
}
|
|
9
|
+
function listCacheClear$1() {
|
|
10
|
+
this.__data__ = [];
|
|
11
|
+
this.size = 0;
|
|
12
|
+
}
|
|
13
|
+
var _listCacheClear = listCacheClear$1;
|
|
14
|
+
function eq$4(value, other) {
|
|
15
|
+
return value === other || value !== value && other !== other;
|
|
16
|
+
}
|
|
17
|
+
var eq_1 = eq$4;
|
|
18
|
+
var eq$3 = eq_1;
|
|
19
|
+
function assocIndexOf$4(array, key) {
|
|
20
|
+
var length = array.length;
|
|
21
|
+
while (length--) {
|
|
22
|
+
if (eq$3(array[length][0], key)) {
|
|
23
|
+
return length;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return -1;
|
|
27
|
+
}
|
|
28
|
+
var _assocIndexOf = assocIndexOf$4;
|
|
29
|
+
var assocIndexOf$3 = _assocIndexOf;
|
|
30
|
+
var arrayProto = Array.prototype;
|
|
31
|
+
var splice = arrayProto.splice;
|
|
32
|
+
function listCacheDelete$1(key) {
|
|
33
|
+
var data = this.__data__, index = assocIndexOf$3(data, key);
|
|
34
|
+
if (index < 0) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
var lastIndex = data.length - 1;
|
|
38
|
+
if (index == lastIndex) {
|
|
39
|
+
data.pop();
|
|
40
|
+
} else {
|
|
41
|
+
splice.call(data, index, 1);
|
|
42
|
+
}
|
|
43
|
+
--this.size;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
var _listCacheDelete = listCacheDelete$1;
|
|
47
|
+
var assocIndexOf$2 = _assocIndexOf;
|
|
48
|
+
function listCacheGet$1(key) {
|
|
49
|
+
var data = this.__data__, index = assocIndexOf$2(data, key);
|
|
50
|
+
return index < 0 ? void 0 : data[index][1];
|
|
51
|
+
}
|
|
52
|
+
var _listCacheGet = listCacheGet$1;
|
|
53
|
+
var assocIndexOf$1 = _assocIndexOf;
|
|
54
|
+
function listCacheHas$1(key) {
|
|
55
|
+
return assocIndexOf$1(this.__data__, key) > -1;
|
|
56
|
+
}
|
|
57
|
+
var _listCacheHas = listCacheHas$1;
|
|
58
|
+
var assocIndexOf = _assocIndexOf;
|
|
59
|
+
function listCacheSet$1(key, value) {
|
|
60
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
61
|
+
if (index < 0) {
|
|
62
|
+
++this.size;
|
|
63
|
+
data.push([key, value]);
|
|
64
|
+
} else {
|
|
65
|
+
data[index][1] = value;
|
|
66
|
+
}
|
|
67
|
+
return this;
|
|
68
|
+
}
|
|
69
|
+
var _listCacheSet = listCacheSet$1;
|
|
70
|
+
var listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;
|
|
71
|
+
function ListCache$4(entries) {
|
|
72
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
73
|
+
this.clear();
|
|
74
|
+
while (++index < length) {
|
|
75
|
+
var entry = entries[index];
|
|
76
|
+
this.set(entry[0], entry[1]);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
ListCache$4.prototype.clear = listCacheClear;
|
|
80
|
+
ListCache$4.prototype["delete"] = listCacheDelete;
|
|
81
|
+
ListCache$4.prototype.get = listCacheGet;
|
|
82
|
+
ListCache$4.prototype.has = listCacheHas;
|
|
83
|
+
ListCache$4.prototype.set = listCacheSet;
|
|
84
|
+
var _ListCache = ListCache$4;
|
|
85
|
+
var ListCache$3 = _ListCache;
|
|
86
|
+
function stackClear$1() {
|
|
87
|
+
this.__data__ = new ListCache$3();
|
|
88
|
+
this.size = 0;
|
|
89
|
+
}
|
|
90
|
+
var _stackClear = stackClear$1;
|
|
91
|
+
function stackDelete$1(key) {
|
|
92
|
+
var data = this.__data__, result = data["delete"](key);
|
|
93
|
+
this.size = data.size;
|
|
94
|
+
return result;
|
|
95
|
+
}
|
|
96
|
+
var _stackDelete = stackDelete$1;
|
|
97
|
+
function stackGet$1(key) {
|
|
98
|
+
return this.__data__.get(key);
|
|
99
|
+
}
|
|
100
|
+
var _stackGet = stackGet$1;
|
|
101
|
+
function stackHas$1(key) {
|
|
102
|
+
return this.__data__.has(key);
|
|
103
|
+
}
|
|
104
|
+
var _stackHas = stackHas$1;
|
|
105
|
+
var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
106
|
+
var _freeGlobal = freeGlobal$1;
|
|
107
|
+
var freeGlobal = _freeGlobal;
|
|
108
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
109
|
+
var root$4 = freeGlobal || freeSelf || Function("return this")();
|
|
110
|
+
var _root = root$4;
|
|
111
|
+
var root$3 = _root;
|
|
112
|
+
var Symbol$3 = root$3.Symbol;
|
|
113
|
+
var _Symbol = Symbol$3;
|
|
114
|
+
var Symbol$2 = _Symbol;
|
|
115
|
+
var objectProto$a = Object.prototype;
|
|
116
|
+
var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
|
|
117
|
+
var nativeObjectToString$1 = objectProto$a.toString;
|
|
118
|
+
var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : void 0;
|
|
119
|
+
function getRawTag$1(value) {
|
|
120
|
+
var isOwn = hasOwnProperty$8.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
121
|
+
try {
|
|
122
|
+
value[symToStringTag$1] = void 0;
|
|
123
|
+
var unmasked = true;
|
|
124
|
+
} catch (e) {
|
|
125
|
+
}
|
|
126
|
+
var result = nativeObjectToString$1.call(value);
|
|
127
|
+
if (unmasked) {
|
|
128
|
+
if (isOwn) {
|
|
129
|
+
value[symToStringTag$1] = tag;
|
|
130
|
+
} else {
|
|
131
|
+
delete value[symToStringTag$1];
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
return result;
|
|
135
|
+
}
|
|
136
|
+
var _getRawTag = getRawTag$1;
|
|
137
|
+
var objectProto$9 = Object.prototype;
|
|
138
|
+
var nativeObjectToString = objectProto$9.toString;
|
|
139
|
+
function objectToString$1(value) {
|
|
140
|
+
return nativeObjectToString.call(value);
|
|
141
|
+
}
|
|
142
|
+
var _objectToString = objectToString$1;
|
|
143
|
+
var Symbol$1 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
|
|
144
|
+
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
145
|
+
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : void 0;
|
|
146
|
+
function baseGetTag$4(value) {
|
|
147
|
+
if (value == null) {
|
|
148
|
+
return value === void 0 ? undefinedTag : nullTag;
|
|
149
|
+
}
|
|
150
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
151
|
+
}
|
|
152
|
+
var _baseGetTag = baseGetTag$4;
|
|
153
|
+
function isObject$7(value) {
|
|
154
|
+
var type = typeof value;
|
|
155
|
+
return value != null && (type == "object" || type == "function");
|
|
156
|
+
}
|
|
157
|
+
var isObject_1 = isObject$7;
|
|
158
|
+
var baseGetTag$3 = _baseGetTag, isObject$6 = isObject_1;
|
|
159
|
+
var asyncTag = "[object AsyncFunction]", funcTag$1 = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
160
|
+
function isFunction$3(value) {
|
|
161
|
+
if (!isObject$6(value)) {
|
|
162
|
+
return false;
|
|
163
|
+
}
|
|
164
|
+
var tag = baseGetTag$3(value);
|
|
165
|
+
return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
166
|
+
}
|
|
167
|
+
var isFunction_1 = isFunction$3;
|
|
168
|
+
var root$2 = _root;
|
|
169
|
+
var coreJsData$1 = root$2["__core-js_shared__"];
|
|
170
|
+
var _coreJsData = coreJsData$1;
|
|
171
|
+
var coreJsData = _coreJsData;
|
|
172
|
+
var maskSrcKey = function() {
|
|
173
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
174
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
|
175
|
+
}();
|
|
176
|
+
function isMasked$1(func) {
|
|
177
|
+
return !!maskSrcKey && maskSrcKey in func;
|
|
178
|
+
}
|
|
179
|
+
var _isMasked = isMasked$1;
|
|
180
|
+
var funcProto$2 = Function.prototype;
|
|
181
|
+
var funcToString$2 = funcProto$2.toString;
|
|
182
|
+
function toSource$1(func) {
|
|
183
|
+
if (func != null) {
|
|
184
|
+
try {
|
|
185
|
+
return funcToString$2.call(func);
|
|
186
|
+
} catch (e) {
|
|
187
|
+
}
|
|
188
|
+
try {
|
|
189
|
+
return func + "";
|
|
190
|
+
} catch (e) {
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
return "";
|
|
194
|
+
}
|
|
195
|
+
var _toSource = toSource$1;
|
|
196
|
+
var isFunction$2 = isFunction_1, isMasked = _isMasked, isObject$5 = isObject_1, toSource = _toSource;
|
|
197
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
198
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
199
|
+
var funcProto$1 = Function.prototype, objectProto$8 = Object.prototype;
|
|
200
|
+
var funcToString$1 = funcProto$1.toString;
|
|
201
|
+
var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
|
|
202
|
+
var reIsNative = RegExp(
|
|
203
|
+
"^" + funcToString$1.call(hasOwnProperty$7).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
204
|
+
);
|
|
205
|
+
function baseIsNative$1(value) {
|
|
206
|
+
if (!isObject$5(value) || isMasked(value)) {
|
|
207
|
+
return false;
|
|
208
|
+
}
|
|
209
|
+
var pattern = isFunction$2(value) ? reIsNative : reIsHostCtor;
|
|
210
|
+
return pattern.test(toSource(value));
|
|
211
|
+
}
|
|
212
|
+
var _baseIsNative = baseIsNative$1;
|
|
213
|
+
function getValue$1(object, key) {
|
|
214
|
+
return object == null ? void 0 : object[key];
|
|
215
|
+
}
|
|
216
|
+
var _getValue = getValue$1;
|
|
217
|
+
var baseIsNative = _baseIsNative, getValue = _getValue;
|
|
218
|
+
function getNative$3(object, key) {
|
|
219
|
+
var value = getValue(object, key);
|
|
220
|
+
return baseIsNative(value) ? value : void 0;
|
|
221
|
+
}
|
|
222
|
+
var _getNative = getNative$3;
|
|
223
|
+
var getNative$2 = _getNative, root$1 = _root;
|
|
224
|
+
var Map$2 = getNative$2(root$1, "Map");
|
|
225
|
+
var _Map = Map$2;
|
|
226
|
+
var getNative$1 = _getNative;
|
|
227
|
+
var nativeCreate$4 = getNative$1(Object, "create");
|
|
228
|
+
var _nativeCreate = nativeCreate$4;
|
|
229
|
+
var nativeCreate$3 = _nativeCreate;
|
|
230
|
+
function hashClear$1() {
|
|
231
|
+
this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
|
|
232
|
+
this.size = 0;
|
|
233
|
+
}
|
|
234
|
+
var _hashClear = hashClear$1;
|
|
235
|
+
function hashDelete$1(key) {
|
|
236
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
237
|
+
this.size -= result ? 1 : 0;
|
|
238
|
+
return result;
|
|
239
|
+
}
|
|
240
|
+
var _hashDelete = hashDelete$1;
|
|
241
|
+
var nativeCreate$2 = _nativeCreate;
|
|
242
|
+
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
243
|
+
var objectProto$7 = Object.prototype;
|
|
244
|
+
var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
|
|
245
|
+
function hashGet$1(key) {
|
|
246
|
+
var data = this.__data__;
|
|
247
|
+
if (nativeCreate$2) {
|
|
248
|
+
var result = data[key];
|
|
249
|
+
return result === HASH_UNDEFINED$1 ? void 0 : result;
|
|
250
|
+
}
|
|
251
|
+
return hasOwnProperty$6.call(data, key) ? data[key] : void 0;
|
|
252
|
+
}
|
|
253
|
+
var _hashGet = hashGet$1;
|
|
254
|
+
var nativeCreate$1 = _nativeCreate;
|
|
255
|
+
var objectProto$6 = Object.prototype;
|
|
256
|
+
var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
|
257
|
+
function hashHas$1(key) {
|
|
258
|
+
var data = this.__data__;
|
|
259
|
+
return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$5.call(data, key);
|
|
260
|
+
}
|
|
261
|
+
var _hashHas = hashHas$1;
|
|
262
|
+
var nativeCreate = _nativeCreate;
|
|
263
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
264
|
+
function hashSet$1(key, value) {
|
|
265
|
+
var data = this.__data__;
|
|
266
|
+
this.size += this.has(key) ? 0 : 1;
|
|
267
|
+
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
268
|
+
return this;
|
|
269
|
+
}
|
|
270
|
+
var _hashSet = hashSet$1;
|
|
271
|
+
var hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;
|
|
272
|
+
function Hash$1(entries) {
|
|
273
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
274
|
+
this.clear();
|
|
275
|
+
while (++index < length) {
|
|
276
|
+
var entry = entries[index];
|
|
277
|
+
this.set(entry[0], entry[1]);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
Hash$1.prototype.clear = hashClear;
|
|
281
|
+
Hash$1.prototype["delete"] = hashDelete;
|
|
282
|
+
Hash$1.prototype.get = hashGet;
|
|
283
|
+
Hash$1.prototype.has = hashHas;
|
|
284
|
+
Hash$1.prototype.set = hashSet;
|
|
285
|
+
var _Hash = Hash$1;
|
|
286
|
+
var Hash = _Hash, ListCache$2 = _ListCache, Map$1 = _Map;
|
|
287
|
+
function mapCacheClear$1() {
|
|
288
|
+
this.size = 0;
|
|
289
|
+
this.__data__ = {
|
|
290
|
+
"hash": new Hash(),
|
|
291
|
+
"map": new (Map$1 || ListCache$2)(),
|
|
292
|
+
"string": new Hash()
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
var _mapCacheClear = mapCacheClear$1;
|
|
296
|
+
function isKeyable$1(value) {
|
|
297
|
+
var type = typeof value;
|
|
298
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
299
|
+
}
|
|
300
|
+
var _isKeyable = isKeyable$1;
|
|
301
|
+
var isKeyable = _isKeyable;
|
|
302
|
+
function getMapData$4(map, key) {
|
|
303
|
+
var data = map.__data__;
|
|
304
|
+
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
305
|
+
}
|
|
306
|
+
var _getMapData = getMapData$4;
|
|
307
|
+
var getMapData$3 = _getMapData;
|
|
308
|
+
function mapCacheDelete$1(key) {
|
|
309
|
+
var result = getMapData$3(this, key)["delete"](key);
|
|
310
|
+
this.size -= result ? 1 : 0;
|
|
311
|
+
return result;
|
|
312
|
+
}
|
|
313
|
+
var _mapCacheDelete = mapCacheDelete$1;
|
|
314
|
+
var getMapData$2 = _getMapData;
|
|
315
|
+
function mapCacheGet$1(key) {
|
|
316
|
+
return getMapData$2(this, key).get(key);
|
|
317
|
+
}
|
|
318
|
+
var _mapCacheGet = mapCacheGet$1;
|
|
319
|
+
var getMapData$1 = _getMapData;
|
|
320
|
+
function mapCacheHas$1(key) {
|
|
321
|
+
return getMapData$1(this, key).has(key);
|
|
322
|
+
}
|
|
323
|
+
var _mapCacheHas = mapCacheHas$1;
|
|
324
|
+
var getMapData = _getMapData;
|
|
325
|
+
function mapCacheSet$1(key, value) {
|
|
326
|
+
var data = getMapData(this, key), size = data.size;
|
|
327
|
+
data.set(key, value);
|
|
328
|
+
this.size += data.size == size ? 0 : 1;
|
|
329
|
+
return this;
|
|
330
|
+
}
|
|
331
|
+
var _mapCacheSet = mapCacheSet$1;
|
|
332
|
+
var mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;
|
|
333
|
+
function MapCache$1(entries) {
|
|
334
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
335
|
+
this.clear();
|
|
336
|
+
while (++index < length) {
|
|
337
|
+
var entry = entries[index];
|
|
338
|
+
this.set(entry[0], entry[1]);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
MapCache$1.prototype.clear = mapCacheClear;
|
|
342
|
+
MapCache$1.prototype["delete"] = mapCacheDelete;
|
|
343
|
+
MapCache$1.prototype.get = mapCacheGet;
|
|
344
|
+
MapCache$1.prototype.has = mapCacheHas;
|
|
345
|
+
MapCache$1.prototype.set = mapCacheSet;
|
|
346
|
+
var _MapCache = MapCache$1;
|
|
347
|
+
var ListCache$1 = _ListCache, Map = _Map, MapCache = _MapCache;
|
|
348
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
349
|
+
function stackSet$1(key, value) {
|
|
350
|
+
var data = this.__data__;
|
|
351
|
+
if (data instanceof ListCache$1) {
|
|
352
|
+
var pairs = data.__data__;
|
|
353
|
+
if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
354
|
+
pairs.push([key, value]);
|
|
355
|
+
this.size = ++data.size;
|
|
356
|
+
return this;
|
|
357
|
+
}
|
|
358
|
+
data = this.__data__ = new MapCache(pairs);
|
|
359
|
+
}
|
|
360
|
+
data.set(key, value);
|
|
361
|
+
this.size = data.size;
|
|
362
|
+
return this;
|
|
363
|
+
}
|
|
364
|
+
var _stackSet = stackSet$1;
|
|
365
|
+
var ListCache = _ListCache, stackClear = _stackClear, stackDelete = _stackDelete, stackGet = _stackGet, stackHas = _stackHas, stackSet = _stackSet;
|
|
366
|
+
function Stack$1(entries) {
|
|
367
|
+
var data = this.__data__ = new ListCache(entries);
|
|
368
|
+
this.size = data.size;
|
|
369
|
+
}
|
|
370
|
+
Stack$1.prototype.clear = stackClear;
|
|
371
|
+
Stack$1.prototype["delete"] = stackDelete;
|
|
372
|
+
Stack$1.prototype.get = stackGet;
|
|
373
|
+
Stack$1.prototype.has = stackHas;
|
|
374
|
+
Stack$1.prototype.set = stackSet;
|
|
375
|
+
var _Stack = Stack$1;
|
|
376
|
+
var getNative = _getNative;
|
|
377
|
+
var defineProperty$2 = function() {
|
|
378
|
+
try {
|
|
379
|
+
var func = getNative(Object, "defineProperty");
|
|
380
|
+
func({}, "", {});
|
|
381
|
+
return func;
|
|
382
|
+
} catch (e) {
|
|
383
|
+
}
|
|
384
|
+
}();
|
|
385
|
+
var _defineProperty = defineProperty$2;
|
|
386
|
+
var defineProperty$1 = _defineProperty;
|
|
387
|
+
function baseAssignValue$3(object, key, value) {
|
|
388
|
+
if (key == "__proto__" && defineProperty$1) {
|
|
389
|
+
defineProperty$1(object, key, {
|
|
390
|
+
"configurable": true,
|
|
391
|
+
"enumerable": true,
|
|
392
|
+
"value": value,
|
|
393
|
+
"writable": true
|
|
394
|
+
});
|
|
395
|
+
} else {
|
|
396
|
+
object[key] = value;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
var _baseAssignValue = baseAssignValue$3;
|
|
400
|
+
var baseAssignValue$2 = _baseAssignValue, eq$2 = eq_1;
|
|
401
|
+
function assignMergeValue$2(object, key, value) {
|
|
402
|
+
if (value !== void 0 && !eq$2(object[key], value) || value === void 0 && !(key in object)) {
|
|
403
|
+
baseAssignValue$2(object, key, value);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
var _assignMergeValue = assignMergeValue$2;
|
|
407
|
+
function createBaseFor$1(fromRight) {
|
|
408
|
+
return function(object, iteratee, keysFunc) {
|
|
409
|
+
var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
|
|
410
|
+
while (length--) {
|
|
411
|
+
var key = props[fromRight ? length : ++index];
|
|
412
|
+
if (iteratee(iterable[key], key, iterable) === false) {
|
|
413
|
+
break;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
return object;
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
var _createBaseFor = createBaseFor$1;
|
|
420
|
+
var createBaseFor = _createBaseFor;
|
|
421
|
+
var baseFor$1 = createBaseFor();
|
|
422
|
+
var _baseFor = baseFor$1;
|
|
423
|
+
var _cloneBuffer = { exports: {} };
|
|
424
|
+
_cloneBuffer.exports;
|
|
425
|
+
(function(module2, exports$1) {
|
|
426
|
+
var root2 = _root;
|
|
427
|
+
var freeExports = exports$1 && !exports$1.nodeType && exports$1;
|
|
428
|
+
var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
|
|
429
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
430
|
+
var Buffer = moduleExports ? root2.Buffer : void 0, allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
|
|
431
|
+
function cloneBuffer2(buffer, isDeep) {
|
|
432
|
+
if (isDeep) {
|
|
433
|
+
return buffer.slice();
|
|
434
|
+
}
|
|
435
|
+
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
436
|
+
buffer.copy(result);
|
|
437
|
+
return result;
|
|
438
|
+
}
|
|
439
|
+
module2.exports = cloneBuffer2;
|
|
440
|
+
})(_cloneBuffer, _cloneBuffer.exports);
|
|
441
|
+
var _cloneBufferExports = _cloneBuffer.exports;
|
|
442
|
+
var root = _root;
|
|
443
|
+
var Uint8Array$1 = root.Uint8Array;
|
|
444
|
+
var _Uint8Array = Uint8Array$1;
|
|
445
|
+
var Uint8Array = _Uint8Array;
|
|
446
|
+
function cloneArrayBuffer$1(arrayBuffer) {
|
|
447
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
448
|
+
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
|
|
449
|
+
return result;
|
|
450
|
+
}
|
|
451
|
+
var _cloneArrayBuffer = cloneArrayBuffer$1;
|
|
452
|
+
var cloneArrayBuffer = _cloneArrayBuffer;
|
|
453
|
+
function cloneTypedArray$1(typedArray, isDeep) {
|
|
454
|
+
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
455
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
456
|
+
}
|
|
457
|
+
var _cloneTypedArray = cloneTypedArray$1;
|
|
458
|
+
function copyArray$1(source, array) {
|
|
459
|
+
var index = -1, length = source.length;
|
|
460
|
+
array || (array = Array(length));
|
|
461
|
+
while (++index < length) {
|
|
462
|
+
array[index] = source[index];
|
|
463
|
+
}
|
|
464
|
+
return array;
|
|
465
|
+
}
|
|
466
|
+
var _copyArray = copyArray$1;
|
|
467
|
+
var isObject$4 = isObject_1;
|
|
468
|
+
var objectCreate = Object.create;
|
|
469
|
+
var baseCreate$1 = /* @__PURE__ */ function() {
|
|
470
|
+
function object() {
|
|
471
|
+
}
|
|
472
|
+
return function(proto) {
|
|
473
|
+
if (!isObject$4(proto)) {
|
|
474
|
+
return {};
|
|
475
|
+
}
|
|
476
|
+
if (objectCreate) {
|
|
477
|
+
return objectCreate(proto);
|
|
478
|
+
}
|
|
479
|
+
object.prototype = proto;
|
|
480
|
+
var result = new object();
|
|
481
|
+
object.prototype = void 0;
|
|
482
|
+
return result;
|
|
483
|
+
};
|
|
484
|
+
}();
|
|
485
|
+
var _baseCreate = baseCreate$1;
|
|
486
|
+
function overArg$1(func, transform) {
|
|
487
|
+
return function(arg) {
|
|
488
|
+
return func(transform(arg));
|
|
489
|
+
};
|
|
490
|
+
}
|
|
491
|
+
var _overArg = overArg$1;
|
|
492
|
+
var overArg = _overArg;
|
|
493
|
+
var getPrototype$2 = overArg(Object.getPrototypeOf, Object);
|
|
494
|
+
var _getPrototype = getPrototype$2;
|
|
495
|
+
var objectProto$5 = Object.prototype;
|
|
496
|
+
function isPrototype$2(value) {
|
|
497
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$5;
|
|
498
|
+
return value === proto;
|
|
499
|
+
}
|
|
500
|
+
var _isPrototype = isPrototype$2;
|
|
501
|
+
var baseCreate = _baseCreate, getPrototype$1 = _getPrototype, isPrototype$1 = _isPrototype;
|
|
502
|
+
function initCloneObject$1(object) {
|
|
503
|
+
return typeof object.constructor == "function" && !isPrototype$1(object) ? baseCreate(getPrototype$1(object)) : {};
|
|
504
|
+
}
|
|
505
|
+
var _initCloneObject = initCloneObject$1;
|
|
506
|
+
function isObjectLike$5(value) {
|
|
507
|
+
return value != null && typeof value == "object";
|
|
508
|
+
}
|
|
509
|
+
var isObjectLike_1 = isObjectLike$5;
|
|
510
|
+
var baseGetTag$2 = _baseGetTag, isObjectLike$4 = isObjectLike_1;
|
|
511
|
+
var argsTag$1 = "[object Arguments]";
|
|
512
|
+
function baseIsArguments$1(value) {
|
|
513
|
+
return isObjectLike$4(value) && baseGetTag$2(value) == argsTag$1;
|
|
514
|
+
}
|
|
515
|
+
var _baseIsArguments = baseIsArguments$1;
|
|
516
|
+
var baseIsArguments = _baseIsArguments, isObjectLike$3 = isObjectLike_1;
|
|
517
|
+
var objectProto$4 = Object.prototype;
|
|
518
|
+
var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
|
|
519
|
+
var propertyIsEnumerable = objectProto$4.propertyIsEnumerable;
|
|
520
|
+
var isArguments$2 = baseIsArguments(/* @__PURE__ */ function() {
|
|
521
|
+
return arguments;
|
|
522
|
+
}()) ? baseIsArguments : function(value) {
|
|
523
|
+
return isObjectLike$3(value) && hasOwnProperty$4.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
524
|
+
};
|
|
525
|
+
var isArguments_1 = isArguments$2;
|
|
526
|
+
var isArray$2 = Array.isArray;
|
|
527
|
+
var isArray_1 = isArray$2;
|
|
528
|
+
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
529
|
+
function isLength$2(value) {
|
|
530
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1;
|
|
531
|
+
}
|
|
532
|
+
var isLength_1 = isLength$2;
|
|
533
|
+
var isFunction$1 = isFunction_1, isLength$1 = isLength_1;
|
|
534
|
+
function isArrayLike$3(value) {
|
|
535
|
+
return value != null && isLength$1(value.length) && !isFunction$1(value);
|
|
536
|
+
}
|
|
537
|
+
var isArrayLike_1 = isArrayLike$3;
|
|
538
|
+
var isArrayLike$2 = isArrayLike_1, isObjectLike$2 = isObjectLike_1;
|
|
539
|
+
function isArrayLikeObject$1(value) {
|
|
540
|
+
return isObjectLike$2(value) && isArrayLike$2(value);
|
|
541
|
+
}
|
|
542
|
+
var isArrayLikeObject_1 = isArrayLikeObject$1;
|
|
543
|
+
var isBuffer$2 = { exports: {} };
|
|
544
|
+
function stubFalse() {
|
|
545
|
+
return false;
|
|
546
|
+
}
|
|
547
|
+
var stubFalse_1 = stubFalse;
|
|
548
|
+
isBuffer$2.exports;
|
|
549
|
+
(function(module2, exports$1) {
|
|
550
|
+
var root2 = _root, stubFalse2 = stubFalse_1;
|
|
551
|
+
var freeExports = exports$1 && !exports$1.nodeType && exports$1;
|
|
552
|
+
var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
|
|
553
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
554
|
+
var Buffer = moduleExports ? root2.Buffer : void 0;
|
|
555
|
+
var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
|
|
556
|
+
var isBuffer2 = nativeIsBuffer || stubFalse2;
|
|
557
|
+
module2.exports = isBuffer2;
|
|
558
|
+
})(isBuffer$2, isBuffer$2.exports);
|
|
559
|
+
var isBufferExports = isBuffer$2.exports;
|
|
560
|
+
var baseGetTag$1 = _baseGetTag, getPrototype = _getPrototype, isObjectLike$1 = isObjectLike_1;
|
|
561
|
+
var objectTag$1 = "[object Object]";
|
|
562
|
+
var funcProto = Function.prototype, objectProto$3 = Object.prototype;
|
|
563
|
+
var funcToString = funcProto.toString;
|
|
564
|
+
var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
|
|
565
|
+
var objectCtorString = funcToString.call(Object);
|
|
566
|
+
function isPlainObject$2(value) {
|
|
567
|
+
if (!isObjectLike$1(value) || baseGetTag$1(value) != objectTag$1) {
|
|
568
|
+
return false;
|
|
569
|
+
}
|
|
570
|
+
var proto = getPrototype(value);
|
|
571
|
+
if (proto === null) {
|
|
572
|
+
return true;
|
|
573
|
+
}
|
|
574
|
+
var Ctor = hasOwnProperty$3.call(proto, "constructor") && proto.constructor;
|
|
575
|
+
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
576
|
+
}
|
|
577
|
+
var isPlainObject_1 = isPlainObject$2;
|
|
578
|
+
const isPlainObject$1 = /* @__PURE__ */ getDefaultExportFromCjs(isPlainObject_1);
|
|
579
|
+
var baseGetTag = _baseGetTag, isLength = isLength_1, isObjectLike = isObjectLike_1;
|
|
580
|
+
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]";
|
|
581
|
+
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]";
|
|
582
|
+
var typedArrayTags = {};
|
|
583
|
+
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
|
|
584
|
+
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;
|
|
585
|
+
function baseIsTypedArray$1(value) {
|
|
586
|
+
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
587
|
+
}
|
|
588
|
+
var _baseIsTypedArray = baseIsTypedArray$1;
|
|
589
|
+
function baseUnary$1(func) {
|
|
590
|
+
return function(value) {
|
|
591
|
+
return func(value);
|
|
592
|
+
};
|
|
593
|
+
}
|
|
594
|
+
var _baseUnary = baseUnary$1;
|
|
595
|
+
var _nodeUtil = { exports: {} };
|
|
596
|
+
_nodeUtil.exports;
|
|
597
|
+
(function(module2, exports$1) {
|
|
598
|
+
var freeGlobal2 = _freeGlobal;
|
|
599
|
+
var freeExports = exports$1 && !exports$1.nodeType && exports$1;
|
|
600
|
+
var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
|
|
601
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
602
|
+
var freeProcess = moduleExports && freeGlobal2.process;
|
|
603
|
+
var nodeUtil2 = function() {
|
|
604
|
+
try {
|
|
605
|
+
var types = freeModule && freeModule.require && freeModule.require("util").types;
|
|
606
|
+
if (types) {
|
|
607
|
+
return types;
|
|
608
|
+
}
|
|
609
|
+
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
610
|
+
} catch (e) {
|
|
611
|
+
}
|
|
612
|
+
}();
|
|
613
|
+
module2.exports = nodeUtil2;
|
|
614
|
+
})(_nodeUtil, _nodeUtil.exports);
|
|
615
|
+
var _nodeUtilExports = _nodeUtil.exports;
|
|
616
|
+
var baseIsTypedArray = _baseIsTypedArray, baseUnary = _baseUnary, nodeUtil = _nodeUtilExports;
|
|
617
|
+
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
618
|
+
var isTypedArray$2 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
619
|
+
var isTypedArray_1 = isTypedArray$2;
|
|
620
|
+
function safeGet$2(object, key) {
|
|
621
|
+
if (key === "constructor" && typeof object[key] === "function") {
|
|
622
|
+
return;
|
|
623
|
+
}
|
|
624
|
+
if (key == "__proto__") {
|
|
625
|
+
return;
|
|
626
|
+
}
|
|
627
|
+
return object[key];
|
|
628
|
+
}
|
|
629
|
+
var _safeGet = safeGet$2;
|
|
630
|
+
var baseAssignValue$1 = _baseAssignValue, eq$1 = eq_1;
|
|
631
|
+
var objectProto$2 = Object.prototype;
|
|
632
|
+
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
633
|
+
function assignValue$1(object, key, value) {
|
|
634
|
+
var objValue = object[key];
|
|
635
|
+
if (!(hasOwnProperty$2.call(object, key) && eq$1(objValue, value)) || value === void 0 && !(key in object)) {
|
|
636
|
+
baseAssignValue$1(object, key, value);
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
var _assignValue = assignValue$1;
|
|
640
|
+
var assignValue = _assignValue, baseAssignValue = _baseAssignValue;
|
|
641
|
+
function copyObject$1(source, props, object, customizer) {
|
|
642
|
+
var isNew = !object;
|
|
643
|
+
object || (object = {});
|
|
644
|
+
var index = -1, length = props.length;
|
|
645
|
+
while (++index < length) {
|
|
646
|
+
var key = props[index];
|
|
647
|
+
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
648
|
+
if (newValue === void 0) {
|
|
649
|
+
newValue = source[key];
|
|
650
|
+
}
|
|
651
|
+
if (isNew) {
|
|
652
|
+
baseAssignValue(object, key, newValue);
|
|
653
|
+
} else {
|
|
654
|
+
assignValue(object, key, newValue);
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
return object;
|
|
658
|
+
}
|
|
659
|
+
var _copyObject = copyObject$1;
|
|
660
|
+
function baseTimes$1(n, iteratee) {
|
|
661
|
+
var index = -1, result = Array(n);
|
|
662
|
+
while (++index < n) {
|
|
663
|
+
result[index] = iteratee(index);
|
|
664
|
+
}
|
|
665
|
+
return result;
|
|
666
|
+
}
|
|
667
|
+
var _baseTimes = baseTimes$1;
|
|
668
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
669
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
670
|
+
function isIndex$2(value, length) {
|
|
671
|
+
var type = typeof value;
|
|
672
|
+
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
673
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
674
|
+
}
|
|
675
|
+
var _isIndex = isIndex$2;
|
|
676
|
+
var baseTimes = _baseTimes, isArguments$1 = isArguments_1, isArray$1 = isArray_1, isBuffer$1 = isBufferExports, isIndex$1 = _isIndex, isTypedArray$1 = isTypedArray_1;
|
|
677
|
+
var objectProto$1 = Object.prototype;
|
|
678
|
+
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
679
|
+
function arrayLikeKeys$1(value, inherited) {
|
|
680
|
+
var isArr = isArray$1(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer$1(value), isType = !isArr && !isArg && !isBuff && isTypedArray$1(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
681
|
+
for (var key in value) {
|
|
682
|
+
if ((inherited || hasOwnProperty$1.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
683
|
+
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
684
|
+
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
685
|
+
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
686
|
+
isIndex$1(key, length)))) {
|
|
687
|
+
result.push(key);
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
return result;
|
|
691
|
+
}
|
|
692
|
+
var _arrayLikeKeys = arrayLikeKeys$1;
|
|
693
|
+
function nativeKeysIn$1(object) {
|
|
694
|
+
var result = [];
|
|
695
|
+
if (object != null) {
|
|
696
|
+
for (var key in Object(object)) {
|
|
697
|
+
result.push(key);
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
return result;
|
|
701
|
+
}
|
|
702
|
+
var _nativeKeysIn = nativeKeysIn$1;
|
|
703
|
+
var isObject$3 = isObject_1, isPrototype = _isPrototype, nativeKeysIn = _nativeKeysIn;
|
|
704
|
+
var objectProto = Object.prototype;
|
|
705
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
706
|
+
function baseKeysIn$1(object) {
|
|
707
|
+
if (!isObject$3(object)) {
|
|
708
|
+
return nativeKeysIn(object);
|
|
709
|
+
}
|
|
710
|
+
var isProto = isPrototype(object), result = [];
|
|
711
|
+
for (var key in object) {
|
|
712
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object, key)))) {
|
|
713
|
+
result.push(key);
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
return result;
|
|
717
|
+
}
|
|
718
|
+
var _baseKeysIn = baseKeysIn$1;
|
|
719
|
+
var arrayLikeKeys = _arrayLikeKeys, baseKeysIn = _baseKeysIn, isArrayLike$1 = isArrayLike_1;
|
|
720
|
+
function keysIn$2(object) {
|
|
721
|
+
return isArrayLike$1(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
722
|
+
}
|
|
723
|
+
var keysIn_1 = keysIn$2;
|
|
724
|
+
var copyObject = _copyObject, keysIn$1 = keysIn_1;
|
|
725
|
+
function toPlainObject$1(value) {
|
|
726
|
+
return copyObject(value, keysIn$1(value));
|
|
727
|
+
}
|
|
728
|
+
var toPlainObject_1 = toPlainObject$1;
|
|
729
|
+
var assignMergeValue$1 = _assignMergeValue, cloneBuffer = _cloneBufferExports, cloneTypedArray = _cloneTypedArray, copyArray = _copyArray, initCloneObject = _initCloneObject, isArguments = isArguments_1, isArray = isArray_1, isArrayLikeObject = isArrayLikeObject_1, isBuffer = isBufferExports, isFunction = isFunction_1, isObject$2 = isObject_1, isPlainObject = isPlainObject_1, isTypedArray = isTypedArray_1, safeGet$1 = _safeGet, toPlainObject = toPlainObject_1;
|
|
730
|
+
function baseMergeDeep$1(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
|
731
|
+
var objValue = safeGet$1(object, key), srcValue = safeGet$1(source, key), stacked = stack.get(srcValue);
|
|
732
|
+
if (stacked) {
|
|
733
|
+
assignMergeValue$1(object, key, stacked);
|
|
734
|
+
return;
|
|
735
|
+
}
|
|
736
|
+
var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0;
|
|
737
|
+
var isCommon = newValue === void 0;
|
|
738
|
+
if (isCommon) {
|
|
739
|
+
var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);
|
|
740
|
+
newValue = srcValue;
|
|
741
|
+
if (isArr || isBuff || isTyped) {
|
|
742
|
+
if (isArray(objValue)) {
|
|
743
|
+
newValue = objValue;
|
|
744
|
+
} else if (isArrayLikeObject(objValue)) {
|
|
745
|
+
newValue = copyArray(objValue);
|
|
746
|
+
} else if (isBuff) {
|
|
747
|
+
isCommon = false;
|
|
748
|
+
newValue = cloneBuffer(srcValue, true);
|
|
749
|
+
} else if (isTyped) {
|
|
750
|
+
isCommon = false;
|
|
751
|
+
newValue = cloneTypedArray(srcValue, true);
|
|
752
|
+
} else {
|
|
753
|
+
newValue = [];
|
|
754
|
+
}
|
|
755
|
+
} else if (isPlainObject(srcValue) || isArguments(srcValue)) {
|
|
756
|
+
newValue = objValue;
|
|
757
|
+
if (isArguments(objValue)) {
|
|
758
|
+
newValue = toPlainObject(objValue);
|
|
759
|
+
} else if (!isObject$2(objValue) || isFunction(objValue)) {
|
|
760
|
+
newValue = initCloneObject(srcValue);
|
|
761
|
+
}
|
|
762
|
+
} else {
|
|
763
|
+
isCommon = false;
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
if (isCommon) {
|
|
767
|
+
stack.set(srcValue, newValue);
|
|
768
|
+
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
|
|
769
|
+
stack["delete"](srcValue);
|
|
770
|
+
}
|
|
771
|
+
assignMergeValue$1(object, key, newValue);
|
|
772
|
+
}
|
|
773
|
+
var _baseMergeDeep = baseMergeDeep$1;
|
|
774
|
+
var Stack = _Stack, assignMergeValue = _assignMergeValue, baseFor = _baseFor, baseMergeDeep = _baseMergeDeep, isObject$1 = isObject_1, keysIn = keysIn_1, safeGet = _safeGet;
|
|
775
|
+
function baseMerge$2(object, source, srcIndex, customizer, stack) {
|
|
776
|
+
if (object === source) {
|
|
777
|
+
return;
|
|
778
|
+
}
|
|
779
|
+
baseFor(source, function(srcValue, key) {
|
|
780
|
+
stack || (stack = new Stack());
|
|
781
|
+
if (isObject$1(srcValue)) {
|
|
782
|
+
baseMergeDeep(object, source, key, srcIndex, baseMerge$2, customizer, stack);
|
|
783
|
+
} else {
|
|
784
|
+
var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : void 0;
|
|
785
|
+
if (newValue === void 0) {
|
|
786
|
+
newValue = srcValue;
|
|
787
|
+
}
|
|
788
|
+
assignMergeValue(object, key, newValue);
|
|
789
|
+
}
|
|
790
|
+
}, keysIn);
|
|
791
|
+
}
|
|
792
|
+
var _baseMerge = baseMerge$2;
|
|
793
|
+
function identity$2(value) {
|
|
794
|
+
return value;
|
|
795
|
+
}
|
|
796
|
+
var identity_1 = identity$2;
|
|
797
|
+
function apply$1(func, thisArg, args) {
|
|
798
|
+
switch (args.length) {
|
|
799
|
+
case 0:
|
|
800
|
+
return func.call(thisArg);
|
|
801
|
+
case 1:
|
|
802
|
+
return func.call(thisArg, args[0]);
|
|
803
|
+
case 2:
|
|
804
|
+
return func.call(thisArg, args[0], args[1]);
|
|
805
|
+
case 3:
|
|
806
|
+
return func.call(thisArg, args[0], args[1], args[2]);
|
|
807
|
+
}
|
|
808
|
+
return func.apply(thisArg, args);
|
|
809
|
+
}
|
|
810
|
+
var _apply = apply$1;
|
|
811
|
+
var apply = _apply;
|
|
812
|
+
var nativeMax = Math.max;
|
|
813
|
+
function overRest$1(func, start, transform) {
|
|
814
|
+
start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
|
|
815
|
+
return function() {
|
|
816
|
+
var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
|
|
817
|
+
while (++index < length) {
|
|
818
|
+
array[index] = args[start + index];
|
|
819
|
+
}
|
|
820
|
+
index = -1;
|
|
821
|
+
var otherArgs = Array(start + 1);
|
|
822
|
+
while (++index < start) {
|
|
823
|
+
otherArgs[index] = args[index];
|
|
824
|
+
}
|
|
825
|
+
otherArgs[start] = transform(array);
|
|
826
|
+
return apply(func, this, otherArgs);
|
|
827
|
+
};
|
|
828
|
+
}
|
|
829
|
+
var _overRest = overRest$1;
|
|
830
|
+
function constant$1(value) {
|
|
831
|
+
return function() {
|
|
832
|
+
return value;
|
|
833
|
+
};
|
|
834
|
+
}
|
|
835
|
+
var constant_1 = constant$1;
|
|
836
|
+
var constant = constant_1, defineProperty = _defineProperty, identity$1 = identity_1;
|
|
837
|
+
var baseSetToString$1 = !defineProperty ? identity$1 : function(func, string) {
|
|
838
|
+
return defineProperty(func, "toString", {
|
|
839
|
+
"configurable": true,
|
|
840
|
+
"enumerable": false,
|
|
841
|
+
"value": constant(string),
|
|
842
|
+
"writable": true
|
|
843
|
+
});
|
|
844
|
+
};
|
|
845
|
+
var _baseSetToString = baseSetToString$1;
|
|
846
|
+
var HOT_COUNT = 800, HOT_SPAN = 16;
|
|
847
|
+
var nativeNow = Date.now;
|
|
848
|
+
function shortOut$1(func) {
|
|
849
|
+
var count = 0, lastCalled = 0;
|
|
850
|
+
return function() {
|
|
851
|
+
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
|
852
|
+
lastCalled = stamp;
|
|
853
|
+
if (remaining > 0) {
|
|
854
|
+
if (++count >= HOT_COUNT) {
|
|
855
|
+
return arguments[0];
|
|
856
|
+
}
|
|
857
|
+
} else {
|
|
858
|
+
count = 0;
|
|
859
|
+
}
|
|
860
|
+
return func.apply(void 0, arguments);
|
|
861
|
+
};
|
|
862
|
+
}
|
|
863
|
+
var _shortOut = shortOut$1;
|
|
864
|
+
var baseSetToString = _baseSetToString, shortOut = _shortOut;
|
|
865
|
+
var setToString$1 = shortOut(baseSetToString);
|
|
866
|
+
var _setToString = setToString$1;
|
|
867
|
+
var identity = identity_1, overRest = _overRest, setToString = _setToString;
|
|
868
|
+
function baseRest$1(func, start) {
|
|
869
|
+
return setToString(overRest(func, start, identity), func + "");
|
|
870
|
+
}
|
|
871
|
+
var _baseRest = baseRest$1;
|
|
872
|
+
var eq = eq_1, isArrayLike = isArrayLike_1, isIndex = _isIndex, isObject = isObject_1;
|
|
873
|
+
function isIterateeCall$1(value, index, object) {
|
|
874
|
+
if (!isObject(object)) {
|
|
875
|
+
return false;
|
|
876
|
+
}
|
|
877
|
+
var type = typeof index;
|
|
878
|
+
if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) {
|
|
879
|
+
return eq(object[index], value);
|
|
880
|
+
}
|
|
881
|
+
return false;
|
|
882
|
+
}
|
|
883
|
+
var _isIterateeCall = isIterateeCall$1;
|
|
884
|
+
var baseRest = _baseRest, isIterateeCall = _isIterateeCall;
|
|
885
|
+
function createAssigner$2(assigner) {
|
|
886
|
+
return baseRest(function(object, sources) {
|
|
887
|
+
var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
|
|
888
|
+
customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
|
|
889
|
+
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
890
|
+
customizer = length < 3 ? void 0 : customizer;
|
|
891
|
+
length = 1;
|
|
892
|
+
}
|
|
893
|
+
object = Object(object);
|
|
894
|
+
while (++index < length) {
|
|
895
|
+
var source = sources[index];
|
|
896
|
+
if (source) {
|
|
897
|
+
assigner(object, source, index, customizer);
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
return object;
|
|
901
|
+
});
|
|
902
|
+
}
|
|
903
|
+
var _createAssigner = createAssigner$2;
|
|
904
|
+
var baseMerge$1 = _baseMerge, createAssigner$1 = _createAssigner;
|
|
905
|
+
var mergeWith$1 = createAssigner$1(function(object, source, srcIndex, customizer) {
|
|
906
|
+
baseMerge$1(object, source, srcIndex, customizer);
|
|
907
|
+
});
|
|
908
|
+
var mergeWith_1 = mergeWith$1;
|
|
909
|
+
const mergeWith = /* @__PURE__ */ getDefaultExportFromCjs(mergeWith_1);
|
|
910
|
+
var baseMerge = _baseMerge, createAssigner = _createAssigner;
|
|
911
|
+
var merge$1 = createAssigner(function(object, source, srcIndex) {
|
|
912
|
+
baseMerge(object, source, srcIndex);
|
|
913
|
+
});
|
|
914
|
+
var merge_1 = merge$1;
|
|
915
|
+
const merge = /* @__PURE__ */ getDefaultExportFromCjs(merge_1);
|
|
916
|
+
function mergeClassName(class1, class2) {
|
|
917
|
+
if (typeof class1 === "string" && typeof class2 === "string") {
|
|
918
|
+
const classSet = /* @__PURE__ */ new Set([...class1.split(" "), ...class2.split(" ")]);
|
|
919
|
+
return Array.from(classSet).join(" ");
|
|
920
|
+
}
|
|
921
|
+
return class1 || class2;
|
|
922
|
+
}
|
|
923
|
+
function customMergeClasses(objValue, srcValue, key) {
|
|
924
|
+
if (!objValue) {
|
|
925
|
+
return srcValue;
|
|
926
|
+
}
|
|
927
|
+
if (!srcValue) {
|
|
928
|
+
return objValue;
|
|
929
|
+
}
|
|
930
|
+
if (key === "className") {
|
|
931
|
+
return mergeClassName(objValue, srcValue);
|
|
932
|
+
}
|
|
933
|
+
return srcValue;
|
|
934
|
+
}
|
|
935
|
+
function customMerge(objValue, srcValue, key) {
|
|
936
|
+
if (key === "className") {
|
|
937
|
+
return mergeClassName(objValue, srcValue);
|
|
938
|
+
}
|
|
939
|
+
if (!objValue) {
|
|
940
|
+
return srcValue;
|
|
941
|
+
}
|
|
942
|
+
if (!srcValue) {
|
|
943
|
+
return objValue;
|
|
944
|
+
}
|
|
945
|
+
if (key === "wix") {
|
|
946
|
+
return merge(objValue, srcValue, true);
|
|
947
|
+
}
|
|
948
|
+
if (objValue?.elementProps || srcValue.elementProps || key === "elementProps") {
|
|
949
|
+
return mergeWith(objValue, srcValue, customMerge);
|
|
950
|
+
}
|
|
951
|
+
if (srcValue && objValue && isPlainObject$1(srcValue) && isPlainObject$1(objValue)) {
|
|
952
|
+
return mergeWith(objValue, srcValue, customMergeClasses);
|
|
953
|
+
}
|
|
954
|
+
return srcValue;
|
|
955
|
+
}
|
|
956
|
+
const mergeProps = (srcProps, valueProps) => mergeWith(srcProps || {}, valueProps, customMerge);
|
|
957
|
+
const removeElementProps = (obj) => {
|
|
958
|
+
if (!obj) {
|
|
959
|
+
return void 0;
|
|
960
|
+
}
|
|
961
|
+
const { elementProps, ...rest } = obj;
|
|
962
|
+
return rest;
|
|
963
|
+
};
|
|
964
|
+
const isSignal = (maybeSignal) => {
|
|
965
|
+
return typeof maybeSignal === "object" && maybeSignal !== null && "get" in maybeSignal && "peek" in maybeSignal && "set" in maybeSignal;
|
|
966
|
+
};
|
|
967
|
+
const getSignalValueDeep = (target, path = "") => {
|
|
968
|
+
let value = target;
|
|
969
|
+
for (const segment of path.split(".").filter(Boolean)) {
|
|
970
|
+
if (value == null) {
|
|
971
|
+
break;
|
|
972
|
+
}
|
|
973
|
+
const next = value[segment];
|
|
974
|
+
value = isSignal(next) ? next.get() : next;
|
|
975
|
+
}
|
|
976
|
+
return isSignal(value) ? value.get() : value;
|
|
977
|
+
};
|
|
978
|
+
exports2.getSignalValueDeep = getSignalValueDeep;
|
|
979
|
+
exports2.mergeProps = mergeProps;
|
|
980
|
+
exports2.removeElementProps = removeElementProps;
|
|
981
|
+
Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
|
|
982
|
+
});
|
|
983
|
+
//# sourceMappingURL=builder-utils.js.map
|