@tailor-cms/ce-image-edit 1.1.1-beta.0 → 2.0.0
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/components/Edit.vue.d.ts +1 -5
- package/dist/components/SideToolbar.vue.d.ts +3 -3
- package/dist/components/TopToolbar.vue.d.ts +3 -3
- package/dist/index.cjs +42 -2002
- package/dist/index.css +1 -1
- package/dist/index.js +43 -2003
- package/package.json +12 -11
- package/dist/components/ElementPlaceholder.vue.d.ts +0 -22
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import './index.css';//#region ../manifest/dist/index.
|
|
1
|
+
import { createBlock, createElementBlock, createElementVNode, createVNode, defineComponent, openBlock, ref, resolveComponent, unref, withCtx } from "vue";
|
|
2
|
+
import './index.css';//#region ../manifest/dist/index.mjs
|
|
3
3
|
var type = "IMAGE";
|
|
4
4
|
var name = "Image";
|
|
5
5
|
var initState = () => ({
|
|
@@ -12,7 +12,7 @@ var ui = {
|
|
|
12
12
|
forceFullWidth: false
|
|
13
13
|
};
|
|
14
14
|
var isEmpty = (data) => !data.url;
|
|
15
|
-
var
|
|
15
|
+
var manifest$1 = {
|
|
16
16
|
type,
|
|
17
17
|
version: "1.0",
|
|
18
18
|
name,
|
|
@@ -22,79 +22,6 @@ var index_default = {
|
|
|
22
22
|
ui
|
|
23
23
|
};
|
|
24
24
|
//#endregion
|
|
25
|
-
//#region src/components/ElementPlaceholder.vue?vue&type=script&setup=true&lang.ts
|
|
26
|
-
var _hoisted_1$2 = {
|
|
27
|
-
key: 0,
|
|
28
|
-
class: "text-grey-darken-2 text-subtitle-1"
|
|
29
|
-
};
|
|
30
|
-
//#endregion
|
|
31
|
-
//#region src/components/ElementPlaceholder.vue
|
|
32
|
-
var ElementPlaceholder_default = /* @__PURE__ */ defineComponent({
|
|
33
|
-
__name: "ElementPlaceholder",
|
|
34
|
-
props: {
|
|
35
|
-
icon: {},
|
|
36
|
-
name: {},
|
|
37
|
-
placeholder: { default: "Select to edit" },
|
|
38
|
-
activePlaceholder: { default: "Use toolbar to edit" },
|
|
39
|
-
activeIcon: { default: null },
|
|
40
|
-
activeColor: { default: "#fff" },
|
|
41
|
-
dense: {
|
|
42
|
-
type: Boolean,
|
|
43
|
-
default: false
|
|
44
|
-
},
|
|
45
|
-
isFocused: {
|
|
46
|
-
type: Boolean,
|
|
47
|
-
default: false
|
|
48
|
-
},
|
|
49
|
-
isDisabled: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: false
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
setup(__props) {
|
|
55
|
-
const props = __props;
|
|
56
|
-
const iconSize = computed(() => {
|
|
57
|
-
if (props.dense) return props.isFocused ? 24 : 20;
|
|
58
|
-
return props.isFocused ? 38 : 30;
|
|
59
|
-
});
|
|
60
|
-
return (_ctx, _cache) => {
|
|
61
|
-
const _component_VIcon = resolveComponent("VIcon");
|
|
62
|
-
const _component_VAvatar = resolveComponent("VAvatar");
|
|
63
|
-
const _component_VSheet = resolveComponent("VSheet");
|
|
64
|
-
return openBlock(), createBlock(_component_VSheet, {
|
|
65
|
-
class: normalizeClass([__props.dense ? "pt-3" : "pa-12", "text-center text-grey"]),
|
|
66
|
-
color: "transparent"
|
|
67
|
-
}, {
|
|
68
|
-
default: withCtx(() => [
|
|
69
|
-
createVNode(_component_VAvatar, {
|
|
70
|
-
color: __props.isDisabled ? "primary-darken-3" : "primary-darken-4",
|
|
71
|
-
size: __props.dense ? 40 : 60
|
|
72
|
-
}, {
|
|
73
|
-
default: withCtx(() => [createVNode(_component_VIcon, {
|
|
74
|
-
color: __props.isFocused ? __props.activeColor : "white",
|
|
75
|
-
icon: __props.icon,
|
|
76
|
-
size: iconSize.value
|
|
77
|
-
}, null, 8, [
|
|
78
|
-
"color",
|
|
79
|
-
"icon",
|
|
80
|
-
"size"
|
|
81
|
-
])]),
|
|
82
|
-
_: 1
|
|
83
|
-
}, 8, ["color", "size"]),
|
|
84
|
-
createElementVNode("div", { class: normalizeClass([__props.isDisabled ? "text-grey-darken-3" : "text-grey-darken-4", __props.dense ? "my-2 text-subtitle-2" : "my-4 text-h5"]) }, toDisplayString(__props.name), 3),
|
|
85
|
-
!__props.dense && !__props.isDisabled ? (openBlock(), createElementBlock("div", _hoisted_1$2, [!__props.isFocused ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createTextVNode(toDisplayString(__props.placeholder), 1)], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(__props.activePlaceholder) + " ", 1), __props.activeIcon ? (openBlock(), createBlock(_component_VIcon, {
|
|
86
|
-
key: 0,
|
|
87
|
-
icon: __props.activeIcon,
|
|
88
|
-
color: "primary-darken-4",
|
|
89
|
-
size: "20"
|
|
90
|
-
}, null, 8, ["icon"])) : createCommentVNode("", true)], 64))])) : createCommentVNode("", true)
|
|
91
|
-
]),
|
|
92
|
-
_: 1
|
|
93
|
-
}, 8, ["class"]);
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
//#endregion
|
|
98
25
|
//#region src/components/Edit.vue?vue&type=script&setup=true&lang.ts
|
|
99
26
|
var _hoisted_1$1 = { class: "tce-image" };
|
|
100
27
|
var _hoisted_2 = {
|
|
@@ -110,16 +37,16 @@ var Edit_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCom
|
|
|
110
37
|
isFocused: { type: Boolean },
|
|
111
38
|
isReadonly: { type: Boolean }
|
|
112
39
|
},
|
|
113
|
-
emits: ["save"],
|
|
114
40
|
setup(__props) {
|
|
115
41
|
return (_ctx, _cache) => {
|
|
42
|
+
const _component_TailorElementPlaceholder = resolveComponent("TailorElementPlaceholder");
|
|
116
43
|
const _component_VProgressCircular = resolveComponent("VProgressCircular");
|
|
117
44
|
const _component_VImg = resolveComponent("VImg");
|
|
118
|
-
return openBlock(), createElementBlock("div", _hoisted_1$1, [!__props.element.data.url ? (openBlock(), createBlock(
|
|
45
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1, [!__props.element.data.url ? (openBlock(), createBlock(_component_TailorElementPlaceholder, {
|
|
119
46
|
key: 0,
|
|
120
47
|
"is-disabled": __props.isReadonly,
|
|
121
48
|
"is-focused": __props.isFocused,
|
|
122
|
-
name: `${unref(
|
|
49
|
+
name: `${unref(manifest$1).name} component`,
|
|
123
50
|
"active-icon": "mdi-arrow-up",
|
|
124
51
|
"active-placeholder": "Use toolbar to upload the image",
|
|
125
52
|
icon: "mdi-image-plus"
|
|
@@ -150,7 +77,7 @@ var _plugin_vue_export_helper_default = (sfc, props) => {
|
|
|
150
77
|
};
|
|
151
78
|
//#endregion
|
|
152
79
|
//#region src/components/Edit.vue
|
|
153
|
-
var Edit_default = /* @__PURE__ */ _plugin_vue_export_helper_default(Edit_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
80
|
+
var Edit_default = /* @__PURE__ */ _plugin_vue_export_helper_default(Edit_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-19d0e712"]]);
|
|
154
81
|
//#endregion
|
|
155
82
|
//#region src/components/SideToolbar.vue
|
|
156
83
|
var SideToolbar_default = /* @__PURE__ */ defineComponent({
|
|
@@ -183,1913 +110,6 @@ var SideToolbar_default = /* @__PURE__ */ defineComponent({
|
|
|
183
110
|
}
|
|
184
111
|
});
|
|
185
112
|
//#endregion
|
|
186
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_freeGlobal.js
|
|
187
|
-
/** Detect free variable `global` from Node.js. */
|
|
188
|
-
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
189
|
-
//#endregion
|
|
190
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_root.js
|
|
191
|
-
/** Detect free variable `self`. */
|
|
192
|
-
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
193
|
-
/** Used as a reference to the global object. */
|
|
194
|
-
var root = freeGlobal || freeSelf || Function("return this")();
|
|
195
|
-
//#endregion
|
|
196
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Symbol.js
|
|
197
|
-
/** Built-in value references. */
|
|
198
|
-
var Symbol = root.Symbol;
|
|
199
|
-
//#endregion
|
|
200
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getRawTag.js
|
|
201
|
-
/** Used for built-in method references. */
|
|
202
|
-
var objectProto$3 = Object.prototype;
|
|
203
|
-
/** Used to check objects for own properties. */
|
|
204
|
-
var hasOwnProperty$9 = objectProto$3.hasOwnProperty;
|
|
205
|
-
/**
|
|
206
|
-
* Used to resolve the
|
|
207
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
208
|
-
* of values.
|
|
209
|
-
*/
|
|
210
|
-
var nativeObjectToString$1 = objectProto$3.toString;
|
|
211
|
-
/** Built-in value references. */
|
|
212
|
-
var symToStringTag$1 = Symbol ? Symbol.toStringTag : void 0;
|
|
213
|
-
/**
|
|
214
|
-
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
215
|
-
*
|
|
216
|
-
* @private
|
|
217
|
-
* @param {*} value The value to query.
|
|
218
|
-
* @returns {string} Returns the raw `toStringTag`.
|
|
219
|
-
*/
|
|
220
|
-
function getRawTag(value) {
|
|
221
|
-
var isOwn = hasOwnProperty$9.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
222
|
-
try {
|
|
223
|
-
value[symToStringTag$1] = void 0;
|
|
224
|
-
var unmasked = true;
|
|
225
|
-
} catch (e) {}
|
|
226
|
-
var result = nativeObjectToString$1.call(value);
|
|
227
|
-
if (unmasked) if (isOwn) value[symToStringTag$1] = tag;
|
|
228
|
-
else delete value[symToStringTag$1];
|
|
229
|
-
return result;
|
|
230
|
-
}
|
|
231
|
-
//#endregion
|
|
232
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_objectToString.js
|
|
233
|
-
/**
|
|
234
|
-
* Used to resolve the
|
|
235
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
236
|
-
* of values.
|
|
237
|
-
*/
|
|
238
|
-
var nativeObjectToString = Object.prototype.toString;
|
|
239
|
-
/**
|
|
240
|
-
* Converts `value` to a string using `Object.prototype.toString`.
|
|
241
|
-
*
|
|
242
|
-
* @private
|
|
243
|
-
* @param {*} value The value to convert.
|
|
244
|
-
* @returns {string} Returns the converted string.
|
|
245
|
-
*/
|
|
246
|
-
function objectToString(value) {
|
|
247
|
-
return nativeObjectToString.call(value);
|
|
248
|
-
}
|
|
249
|
-
//#endregion
|
|
250
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGetTag.js
|
|
251
|
-
/** `Object#toString` result references. */
|
|
252
|
-
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
253
|
-
/** Built-in value references. */
|
|
254
|
-
var symToStringTag = Symbol ? Symbol.toStringTag : void 0;
|
|
255
|
-
/**
|
|
256
|
-
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
257
|
-
*
|
|
258
|
-
* @private
|
|
259
|
-
* @param {*} value The value to query.
|
|
260
|
-
* @returns {string} Returns the `toStringTag`.
|
|
261
|
-
*/
|
|
262
|
-
function baseGetTag(value) {
|
|
263
|
-
if (value == null) return value === void 0 ? undefinedTag : nullTag;
|
|
264
|
-
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
265
|
-
}
|
|
266
|
-
//#endregion
|
|
267
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObjectLike.js
|
|
268
|
-
/**
|
|
269
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
270
|
-
* and has a `typeof` result of "object".
|
|
271
|
-
*
|
|
272
|
-
* @static
|
|
273
|
-
* @memberOf _
|
|
274
|
-
* @since 4.0.0
|
|
275
|
-
* @category Lang
|
|
276
|
-
* @param {*} value The value to check.
|
|
277
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
278
|
-
* @example
|
|
279
|
-
*
|
|
280
|
-
* _.isObjectLike({});
|
|
281
|
-
* // => true
|
|
282
|
-
*
|
|
283
|
-
* _.isObjectLike([1, 2, 3]);
|
|
284
|
-
* // => true
|
|
285
|
-
*
|
|
286
|
-
* _.isObjectLike(_.noop);
|
|
287
|
-
* // => false
|
|
288
|
-
*
|
|
289
|
-
* _.isObjectLike(null);
|
|
290
|
-
* // => false
|
|
291
|
-
*/
|
|
292
|
-
function isObjectLike(value) {
|
|
293
|
-
return value != null && typeof value == "object";
|
|
294
|
-
}
|
|
295
|
-
//#endregion
|
|
296
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArray.js
|
|
297
|
-
/**
|
|
298
|
-
* Checks if `value` is classified as an `Array` object.
|
|
299
|
-
*
|
|
300
|
-
* @static
|
|
301
|
-
* @memberOf _
|
|
302
|
-
* @since 0.1.0
|
|
303
|
-
* @category Lang
|
|
304
|
-
* @param {*} value The value to check.
|
|
305
|
-
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
306
|
-
* @example
|
|
307
|
-
*
|
|
308
|
-
* _.isArray([1, 2, 3]);
|
|
309
|
-
* // => true
|
|
310
|
-
*
|
|
311
|
-
* _.isArray(document.body.children);
|
|
312
|
-
* // => false
|
|
313
|
-
*
|
|
314
|
-
* _.isArray('abc');
|
|
315
|
-
* // => false
|
|
316
|
-
*
|
|
317
|
-
* _.isArray(_.noop);
|
|
318
|
-
* // => false
|
|
319
|
-
*/
|
|
320
|
-
var isArray = Array.isArray;
|
|
321
|
-
//#endregion
|
|
322
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObject.js
|
|
323
|
-
/**
|
|
324
|
-
* Checks if `value` is the
|
|
325
|
-
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
326
|
-
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
327
|
-
*
|
|
328
|
-
* @static
|
|
329
|
-
* @memberOf _
|
|
330
|
-
* @since 0.1.0
|
|
331
|
-
* @category Lang
|
|
332
|
-
* @param {*} value The value to check.
|
|
333
|
-
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
334
|
-
* @example
|
|
335
|
-
*
|
|
336
|
-
* _.isObject({});
|
|
337
|
-
* // => true
|
|
338
|
-
*
|
|
339
|
-
* _.isObject([1, 2, 3]);
|
|
340
|
-
* // => true
|
|
341
|
-
*
|
|
342
|
-
* _.isObject(_.noop);
|
|
343
|
-
* // => true
|
|
344
|
-
*
|
|
345
|
-
* _.isObject(null);
|
|
346
|
-
* // => false
|
|
347
|
-
*/
|
|
348
|
-
function isObject(value) {
|
|
349
|
-
var type = typeof value;
|
|
350
|
-
return value != null && (type == "object" || type == "function");
|
|
351
|
-
}
|
|
352
|
-
//#endregion
|
|
353
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isFunction.js
|
|
354
|
-
/** `Object#toString` result references. */
|
|
355
|
-
var asyncTag = "[object AsyncFunction]", funcTag$2 = "[object Function]", genTag$1 = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
356
|
-
/**
|
|
357
|
-
* Checks if `value` is classified as a `Function` object.
|
|
358
|
-
*
|
|
359
|
-
* @static
|
|
360
|
-
* @memberOf _
|
|
361
|
-
* @since 0.1.0
|
|
362
|
-
* @category Lang
|
|
363
|
-
* @param {*} value The value to check.
|
|
364
|
-
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
365
|
-
* @example
|
|
366
|
-
*
|
|
367
|
-
* _.isFunction(_);
|
|
368
|
-
* // => true
|
|
369
|
-
*
|
|
370
|
-
* _.isFunction(/abc/);
|
|
371
|
-
* // => false
|
|
372
|
-
*/
|
|
373
|
-
function isFunction(value) {
|
|
374
|
-
if (!isObject(value)) return false;
|
|
375
|
-
var tag = baseGetTag(value);
|
|
376
|
-
return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
|
|
377
|
-
}
|
|
378
|
-
//#endregion
|
|
379
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_coreJsData.js
|
|
380
|
-
/** Used to detect overreaching core-js shims. */
|
|
381
|
-
var coreJsData = root["__core-js_shared__"];
|
|
382
|
-
//#endregion
|
|
383
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isMasked.js
|
|
384
|
-
/** Used to detect methods masquerading as native. */
|
|
385
|
-
var maskSrcKey = function() {
|
|
386
|
-
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
387
|
-
return uid ? "Symbol(src)_1." + uid : "";
|
|
388
|
-
}();
|
|
389
|
-
/**
|
|
390
|
-
* Checks if `func` has its source masked.
|
|
391
|
-
*
|
|
392
|
-
* @private
|
|
393
|
-
* @param {Function} func The function to check.
|
|
394
|
-
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
395
|
-
*/
|
|
396
|
-
function isMasked(func) {
|
|
397
|
-
return !!maskSrcKey && maskSrcKey in func;
|
|
398
|
-
}
|
|
399
|
-
//#endregion
|
|
400
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_toSource.js
|
|
401
|
-
/** Used to resolve the decompiled source of functions. */
|
|
402
|
-
var funcToString$1 = Function.prototype.toString;
|
|
403
|
-
/**
|
|
404
|
-
* Converts `func` to its source code.
|
|
405
|
-
*
|
|
406
|
-
* @private
|
|
407
|
-
* @param {Function} func The function to convert.
|
|
408
|
-
* @returns {string} Returns the source code.
|
|
409
|
-
*/
|
|
410
|
-
function toSource(func) {
|
|
411
|
-
if (func != null) {
|
|
412
|
-
try {
|
|
413
|
-
return funcToString$1.call(func);
|
|
414
|
-
} catch (e) {}
|
|
415
|
-
try {
|
|
416
|
-
return func + "";
|
|
417
|
-
} catch (e) {}
|
|
418
|
-
}
|
|
419
|
-
return "";
|
|
420
|
-
}
|
|
421
|
-
//#endregion
|
|
422
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNative.js
|
|
423
|
-
/**
|
|
424
|
-
* Used to match `RegExp`
|
|
425
|
-
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
426
|
-
*/
|
|
427
|
-
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
428
|
-
/** Used to detect host constructors (Safari). */
|
|
429
|
-
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
430
|
-
/** Used for built-in method references. */
|
|
431
|
-
var funcProto = Function.prototype, objectProto$2 = Object.prototype;
|
|
432
|
-
/** Used to resolve the decompiled source of functions. */
|
|
433
|
-
var funcToString = funcProto.toString;
|
|
434
|
-
/** Used to check objects for own properties. */
|
|
435
|
-
var hasOwnProperty$8 = objectProto$2.hasOwnProperty;
|
|
436
|
-
/** Used to detect if a method is native. */
|
|
437
|
-
var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty$8).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
438
|
-
/**
|
|
439
|
-
* The base implementation of `_.isNative` without bad shim checks.
|
|
440
|
-
*
|
|
441
|
-
* @private
|
|
442
|
-
* @param {*} value The value to check.
|
|
443
|
-
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
444
|
-
* else `false`.
|
|
445
|
-
*/
|
|
446
|
-
function baseIsNative(value) {
|
|
447
|
-
if (!isObject(value) || isMasked(value)) return false;
|
|
448
|
-
return (isFunction(value) ? reIsNative : reIsHostCtor).test(toSource(value));
|
|
449
|
-
}
|
|
450
|
-
//#endregion
|
|
451
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getValue.js
|
|
452
|
-
/**
|
|
453
|
-
* Gets the value at `key` of `object`.
|
|
454
|
-
*
|
|
455
|
-
* @private
|
|
456
|
-
* @param {Object} [object] The object to query.
|
|
457
|
-
* @param {string} key The key of the property to get.
|
|
458
|
-
* @returns {*} Returns the property value.
|
|
459
|
-
*/
|
|
460
|
-
function getValue(object, key) {
|
|
461
|
-
return object == null ? void 0 : object[key];
|
|
462
|
-
}
|
|
463
|
-
//#endregion
|
|
464
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getNative.js
|
|
465
|
-
/**
|
|
466
|
-
* Gets the native function at `key` of `object`.
|
|
467
|
-
*
|
|
468
|
-
* @private
|
|
469
|
-
* @param {Object} object The object to query.
|
|
470
|
-
* @param {string} key The key of the method to get.
|
|
471
|
-
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
472
|
-
*/
|
|
473
|
-
function getNative(object, key) {
|
|
474
|
-
var value = getValue(object, key);
|
|
475
|
-
return baseIsNative(value) ? value : void 0;
|
|
476
|
-
}
|
|
477
|
-
//#endregion
|
|
478
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_WeakMap.js
|
|
479
|
-
var WeakMap = getNative(root, "WeakMap");
|
|
480
|
-
//#endregion
|
|
481
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseCreate.js
|
|
482
|
-
/** Built-in value references. */
|
|
483
|
-
var objectCreate = Object.create;
|
|
484
|
-
/**
|
|
485
|
-
* The base implementation of `_.create` without support for assigning
|
|
486
|
-
* properties to the created object.
|
|
487
|
-
*
|
|
488
|
-
* @private
|
|
489
|
-
* @param {Object} proto The object to inherit from.
|
|
490
|
-
* @returns {Object} Returns the new object.
|
|
491
|
-
*/
|
|
492
|
-
var baseCreate = function() {
|
|
493
|
-
function object() {}
|
|
494
|
-
return function(proto) {
|
|
495
|
-
if (!isObject(proto)) return {};
|
|
496
|
-
if (objectCreate) return objectCreate(proto);
|
|
497
|
-
object.prototype = proto;
|
|
498
|
-
var result = new object();
|
|
499
|
-
object.prototype = void 0;
|
|
500
|
-
return result;
|
|
501
|
-
};
|
|
502
|
-
}();
|
|
503
|
-
//#endregion
|
|
504
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_copyArray.js
|
|
505
|
-
/**
|
|
506
|
-
* Copies the values of `source` to `array`.
|
|
507
|
-
*
|
|
508
|
-
* @private
|
|
509
|
-
* @param {Array} source The array to copy values from.
|
|
510
|
-
* @param {Array} [array=[]] The array to copy values to.
|
|
511
|
-
* @returns {Array} Returns `array`.
|
|
512
|
-
*/
|
|
513
|
-
function copyArray(source, array) {
|
|
514
|
-
var index = -1, length = source.length;
|
|
515
|
-
array || (array = Array(length));
|
|
516
|
-
while (++index < length) array[index] = source[index];
|
|
517
|
-
return array;
|
|
518
|
-
}
|
|
519
|
-
//#endregion
|
|
520
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_defineProperty.js
|
|
521
|
-
var defineProperty = function() {
|
|
522
|
-
try {
|
|
523
|
-
var func = getNative(Object, "defineProperty");
|
|
524
|
-
func({}, "", {});
|
|
525
|
-
return func;
|
|
526
|
-
} catch (e) {}
|
|
527
|
-
}();
|
|
528
|
-
//#endregion
|
|
529
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayEach.js
|
|
530
|
-
/**
|
|
531
|
-
* A specialized version of `_.forEach` for arrays without support for
|
|
532
|
-
* iteratee shorthands.
|
|
533
|
-
*
|
|
534
|
-
* @private
|
|
535
|
-
* @param {Array} [array] The array to iterate over.
|
|
536
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
537
|
-
* @returns {Array} Returns `array`.
|
|
538
|
-
*/
|
|
539
|
-
function arrayEach(array, iteratee) {
|
|
540
|
-
var index = -1, length = array == null ? 0 : array.length;
|
|
541
|
-
while (++index < length) if (iteratee(array[index], index, array) === false) break;
|
|
542
|
-
return array;
|
|
543
|
-
}
|
|
544
|
-
//#endregion
|
|
545
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isIndex.js
|
|
546
|
-
/** Used as references for various `Number` constants. */
|
|
547
|
-
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
548
|
-
/** Used to detect unsigned integer values. */
|
|
549
|
-
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
550
|
-
/**
|
|
551
|
-
* Checks if `value` is a valid array-like index.
|
|
552
|
-
*
|
|
553
|
-
* @private
|
|
554
|
-
* @param {*} value The value to check.
|
|
555
|
-
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
556
|
-
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
557
|
-
*/
|
|
558
|
-
function isIndex(value, length) {
|
|
559
|
-
var type = typeof value;
|
|
560
|
-
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
561
|
-
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
|
|
562
|
-
}
|
|
563
|
-
//#endregion
|
|
564
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignValue.js
|
|
565
|
-
/**
|
|
566
|
-
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
567
|
-
* value checks.
|
|
568
|
-
*
|
|
569
|
-
* @private
|
|
570
|
-
* @param {Object} object The object to modify.
|
|
571
|
-
* @param {string} key The key of the property to assign.
|
|
572
|
-
* @param {*} value The value to assign.
|
|
573
|
-
*/
|
|
574
|
-
function baseAssignValue(object, key, value) {
|
|
575
|
-
if (key == "__proto__" && defineProperty) defineProperty(object, key, {
|
|
576
|
-
"configurable": true,
|
|
577
|
-
"enumerable": true,
|
|
578
|
-
"value": value,
|
|
579
|
-
"writable": true
|
|
580
|
-
});
|
|
581
|
-
else object[key] = value;
|
|
582
|
-
}
|
|
583
|
-
//#endregion
|
|
584
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/eq.js
|
|
585
|
-
/**
|
|
586
|
-
* Performs a
|
|
587
|
-
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
588
|
-
* comparison between two values to determine if they are equivalent.
|
|
589
|
-
*
|
|
590
|
-
* @static
|
|
591
|
-
* @memberOf _
|
|
592
|
-
* @since 4.0.0
|
|
593
|
-
* @category Lang
|
|
594
|
-
* @param {*} value The value to compare.
|
|
595
|
-
* @param {*} other The other value to compare.
|
|
596
|
-
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
597
|
-
* @example
|
|
598
|
-
*
|
|
599
|
-
* var object = { 'a': 1 };
|
|
600
|
-
* var other = { 'a': 1 };
|
|
601
|
-
*
|
|
602
|
-
* _.eq(object, object);
|
|
603
|
-
* // => true
|
|
604
|
-
*
|
|
605
|
-
* _.eq(object, other);
|
|
606
|
-
* // => false
|
|
607
|
-
*
|
|
608
|
-
* _.eq('a', 'a');
|
|
609
|
-
* // => true
|
|
610
|
-
*
|
|
611
|
-
* _.eq('a', Object('a'));
|
|
612
|
-
* // => false
|
|
613
|
-
*
|
|
614
|
-
* _.eq(NaN, NaN);
|
|
615
|
-
* // => true
|
|
616
|
-
*/
|
|
617
|
-
function eq(value, other) {
|
|
618
|
-
return value === other || value !== value && other !== other;
|
|
619
|
-
}
|
|
620
|
-
//#endregion
|
|
621
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_assignValue.js
|
|
622
|
-
/** Used to check objects for own properties. */
|
|
623
|
-
var hasOwnProperty$7 = Object.prototype.hasOwnProperty;
|
|
624
|
-
/**
|
|
625
|
-
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
626
|
-
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
627
|
-
* for equality comparisons.
|
|
628
|
-
*
|
|
629
|
-
* @private
|
|
630
|
-
* @param {Object} object The object to modify.
|
|
631
|
-
* @param {string} key The key of the property to assign.
|
|
632
|
-
* @param {*} value The value to assign.
|
|
633
|
-
*/
|
|
634
|
-
function assignValue(object, key, value) {
|
|
635
|
-
var objValue = object[key];
|
|
636
|
-
if (!(hasOwnProperty$7.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) baseAssignValue(object, key, value);
|
|
637
|
-
}
|
|
638
|
-
//#endregion
|
|
639
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_copyObject.js
|
|
640
|
-
/**
|
|
641
|
-
* Copies properties of `source` to `object`.
|
|
642
|
-
*
|
|
643
|
-
* @private
|
|
644
|
-
* @param {Object} source The object to copy properties from.
|
|
645
|
-
* @param {Array} props The property identifiers to copy.
|
|
646
|
-
* @param {Object} [object={}] The object to copy properties to.
|
|
647
|
-
* @param {Function} [customizer] The function to customize copied values.
|
|
648
|
-
* @returns {Object} Returns `object`.
|
|
649
|
-
*/
|
|
650
|
-
function copyObject(source, props, object, customizer) {
|
|
651
|
-
var isNew = !object;
|
|
652
|
-
object || (object = {});
|
|
653
|
-
var index = -1, length = props.length;
|
|
654
|
-
while (++index < length) {
|
|
655
|
-
var key = props[index];
|
|
656
|
-
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
657
|
-
if (newValue === void 0) newValue = source[key];
|
|
658
|
-
if (isNew) baseAssignValue(object, key, newValue);
|
|
659
|
-
else assignValue(object, key, newValue);
|
|
660
|
-
}
|
|
661
|
-
return object;
|
|
662
|
-
}
|
|
663
|
-
//#endregion
|
|
664
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isLength.js
|
|
665
|
-
/** Used as references for various `Number` constants. */
|
|
666
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
667
|
-
/**
|
|
668
|
-
* Checks if `value` is a valid array-like length.
|
|
669
|
-
*
|
|
670
|
-
* **Note:** This method is loosely based on
|
|
671
|
-
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
672
|
-
*
|
|
673
|
-
* @static
|
|
674
|
-
* @memberOf _
|
|
675
|
-
* @since 4.0.0
|
|
676
|
-
* @category Lang
|
|
677
|
-
* @param {*} value The value to check.
|
|
678
|
-
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
679
|
-
* @example
|
|
680
|
-
*
|
|
681
|
-
* _.isLength(3);
|
|
682
|
-
* // => true
|
|
683
|
-
*
|
|
684
|
-
* _.isLength(Number.MIN_VALUE);
|
|
685
|
-
* // => false
|
|
686
|
-
*
|
|
687
|
-
* _.isLength(Infinity);
|
|
688
|
-
* // => false
|
|
689
|
-
*
|
|
690
|
-
* _.isLength('3');
|
|
691
|
-
* // => false
|
|
692
|
-
*/
|
|
693
|
-
function isLength(value) {
|
|
694
|
-
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
695
|
-
}
|
|
696
|
-
//#endregion
|
|
697
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArrayLike.js
|
|
698
|
-
/**
|
|
699
|
-
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
700
|
-
* not a function and has a `value.length` that's an integer greater than or
|
|
701
|
-
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
702
|
-
*
|
|
703
|
-
* @static
|
|
704
|
-
* @memberOf _
|
|
705
|
-
* @since 4.0.0
|
|
706
|
-
* @category Lang
|
|
707
|
-
* @param {*} value The value to check.
|
|
708
|
-
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
709
|
-
* @example
|
|
710
|
-
*
|
|
711
|
-
* _.isArrayLike([1, 2, 3]);
|
|
712
|
-
* // => true
|
|
713
|
-
*
|
|
714
|
-
* _.isArrayLike(document.body.children);
|
|
715
|
-
* // => true
|
|
716
|
-
*
|
|
717
|
-
* _.isArrayLike('abc');
|
|
718
|
-
* // => true
|
|
719
|
-
*
|
|
720
|
-
* _.isArrayLike(_.noop);
|
|
721
|
-
* // => false
|
|
722
|
-
*/
|
|
723
|
-
function isArrayLike(value) {
|
|
724
|
-
return value != null && isLength(value.length) && !isFunction(value);
|
|
725
|
-
}
|
|
726
|
-
//#endregion
|
|
727
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isPrototype.js
|
|
728
|
-
/** Used for built-in method references. */
|
|
729
|
-
var objectProto$1 = Object.prototype;
|
|
730
|
-
/**
|
|
731
|
-
* Checks if `value` is likely a prototype object.
|
|
732
|
-
*
|
|
733
|
-
* @private
|
|
734
|
-
* @param {*} value The value to check.
|
|
735
|
-
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
736
|
-
*/
|
|
737
|
-
function isPrototype(value) {
|
|
738
|
-
var Ctor = value && value.constructor;
|
|
739
|
-
return value === (typeof Ctor == "function" && Ctor.prototype || objectProto$1);
|
|
740
|
-
}
|
|
741
|
-
//#endregion
|
|
742
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseTimes.js
|
|
743
|
-
/**
|
|
744
|
-
* The base implementation of `_.times` without support for iteratee shorthands
|
|
745
|
-
* or max array length checks.
|
|
746
|
-
*
|
|
747
|
-
* @private
|
|
748
|
-
* @param {number} n The number of times to invoke `iteratee`.
|
|
749
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
750
|
-
* @returns {Array} Returns the array of results.
|
|
751
|
-
*/
|
|
752
|
-
function baseTimes(n, iteratee) {
|
|
753
|
-
var index = -1, result = Array(n);
|
|
754
|
-
while (++index < n) result[index] = iteratee(index);
|
|
755
|
-
return result;
|
|
756
|
-
}
|
|
757
|
-
//#endregion
|
|
758
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsArguments.js
|
|
759
|
-
/** `Object#toString` result references. */
|
|
760
|
-
var argsTag$2 = "[object Arguments]";
|
|
761
|
-
/**
|
|
762
|
-
* The base implementation of `_.isArguments`.
|
|
763
|
-
*
|
|
764
|
-
* @private
|
|
765
|
-
* @param {*} value The value to check.
|
|
766
|
-
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
767
|
-
*/
|
|
768
|
-
function baseIsArguments(value) {
|
|
769
|
-
return isObjectLike(value) && baseGetTag(value) == argsTag$2;
|
|
770
|
-
}
|
|
771
|
-
//#endregion
|
|
772
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArguments.js
|
|
773
|
-
/** Used for built-in method references. */
|
|
774
|
-
var objectProto = Object.prototype;
|
|
775
|
-
/** Used to check objects for own properties. */
|
|
776
|
-
var hasOwnProperty$6 = objectProto.hasOwnProperty;
|
|
777
|
-
/** Built-in value references. */
|
|
778
|
-
var propertyIsEnumerable$1 = objectProto.propertyIsEnumerable;
|
|
779
|
-
/**
|
|
780
|
-
* Checks if `value` is likely an `arguments` object.
|
|
781
|
-
*
|
|
782
|
-
* @static
|
|
783
|
-
* @memberOf _
|
|
784
|
-
* @since 0.1.0
|
|
785
|
-
* @category Lang
|
|
786
|
-
* @param {*} value The value to check.
|
|
787
|
-
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
788
|
-
* else `false`.
|
|
789
|
-
* @example
|
|
790
|
-
*
|
|
791
|
-
* _.isArguments(function() { return arguments; }());
|
|
792
|
-
* // => true
|
|
793
|
-
*
|
|
794
|
-
* _.isArguments([1, 2, 3]);
|
|
795
|
-
* // => false
|
|
796
|
-
*/
|
|
797
|
-
var isArguments = baseIsArguments(function() {
|
|
798
|
-
return arguments;
|
|
799
|
-
}()) ? baseIsArguments : function(value) {
|
|
800
|
-
return isObjectLike(value) && hasOwnProperty$6.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
801
|
-
};
|
|
802
|
-
//#endregion
|
|
803
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/stubFalse.js
|
|
804
|
-
/**
|
|
805
|
-
* This method returns `false`.
|
|
806
|
-
*
|
|
807
|
-
* @static
|
|
808
|
-
* @memberOf _
|
|
809
|
-
* @since 4.13.0
|
|
810
|
-
* @category Util
|
|
811
|
-
* @returns {boolean} Returns `false`.
|
|
812
|
-
* @example
|
|
813
|
-
*
|
|
814
|
-
* _.times(2, _.stubFalse);
|
|
815
|
-
* // => [false, false]
|
|
816
|
-
*/
|
|
817
|
-
function stubFalse() {
|
|
818
|
-
return false;
|
|
819
|
-
}
|
|
820
|
-
//#endregion
|
|
821
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isBuffer.js
|
|
822
|
-
/** Detect free variable `exports`. */
|
|
823
|
-
var freeExports$2 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
824
|
-
/** Detect free variable `module`. */
|
|
825
|
-
var freeModule$2 = freeExports$2 && typeof module == "object" && module && !module.nodeType && module;
|
|
826
|
-
/** Built-in value references. */
|
|
827
|
-
var Buffer$1 = freeModule$2 && freeModule$2.exports === freeExports$2 ? root.Buffer : void 0;
|
|
828
|
-
/**
|
|
829
|
-
* Checks if `value` is a buffer.
|
|
830
|
-
*
|
|
831
|
-
* @static
|
|
832
|
-
* @memberOf _
|
|
833
|
-
* @since 4.3.0
|
|
834
|
-
* @category Lang
|
|
835
|
-
* @param {*} value The value to check.
|
|
836
|
-
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
|
837
|
-
* @example
|
|
838
|
-
*
|
|
839
|
-
* _.isBuffer(new Buffer(2));
|
|
840
|
-
* // => true
|
|
841
|
-
*
|
|
842
|
-
* _.isBuffer(new Uint8Array(2));
|
|
843
|
-
* // => false
|
|
844
|
-
*/
|
|
845
|
-
var isBuffer = (Buffer$1 ? Buffer$1.isBuffer : void 0) || stubFalse;
|
|
846
|
-
//#endregion
|
|
847
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsTypedArray.js
|
|
848
|
-
/** `Object#toString` result references. */
|
|
849
|
-
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", errorTag$1 = "[object Error]", funcTag$1 = "[object Function]", mapTag$4 = "[object Map]", numberTag$2 = "[object Number]", objectTag$2 = "[object Object]", regexpTag$2 = "[object RegExp]", setTag$4 = "[object Set]", stringTag$2 = "[object String]", weakMapTag$2 = "[object WeakMap]";
|
|
850
|
-
var arrayBufferTag$2 = "[object ArrayBuffer]", dataViewTag$3 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]";
|
|
851
|
-
/** Used to identify `toStringTag` values of typed arrays. */
|
|
852
|
-
var typedArrayTags = {};
|
|
853
|
-
typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] = typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] = typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] = typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] = typedArrayTags[uint32Tag$2] = true;
|
|
854
|
-
typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag$2] = typedArrayTags[boolTag$2] = typedArrayTags[dataViewTag$3] = typedArrayTags[dateTag$2] = typedArrayTags[errorTag$1] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$4] = typedArrayTags[numberTag$2] = typedArrayTags[objectTag$2] = typedArrayTags[regexpTag$2] = typedArrayTags[setTag$4] = typedArrayTags[stringTag$2] = typedArrayTags[weakMapTag$2] = false;
|
|
855
|
-
/**
|
|
856
|
-
* The base implementation of `_.isTypedArray` without Node.js optimizations.
|
|
857
|
-
*
|
|
858
|
-
* @private
|
|
859
|
-
* @param {*} value The value to check.
|
|
860
|
-
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
861
|
-
*/
|
|
862
|
-
function baseIsTypedArray(value) {
|
|
863
|
-
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
864
|
-
}
|
|
865
|
-
//#endregion
|
|
866
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseUnary.js
|
|
867
|
-
/**
|
|
868
|
-
* The base implementation of `_.unary` without support for storing metadata.
|
|
869
|
-
*
|
|
870
|
-
* @private
|
|
871
|
-
* @param {Function} func The function to cap arguments for.
|
|
872
|
-
* @returns {Function} Returns the new capped function.
|
|
873
|
-
*/
|
|
874
|
-
function baseUnary(func) {
|
|
875
|
-
return function(value) {
|
|
876
|
-
return func(value);
|
|
877
|
-
};
|
|
878
|
-
}
|
|
879
|
-
//#endregion
|
|
880
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nodeUtil.js
|
|
881
|
-
/** Detect free variable `exports`. */
|
|
882
|
-
var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
883
|
-
/** Detect free variable `module`. */
|
|
884
|
-
var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
|
|
885
|
-
/** Detect free variable `process` from Node.js. */
|
|
886
|
-
var freeProcess = freeModule$1 && freeModule$1.exports === freeExports$1 && freeGlobal.process;
|
|
887
|
-
/** Used to access faster Node.js helpers. */
|
|
888
|
-
var nodeUtil = function() {
|
|
889
|
-
try {
|
|
890
|
-
var types = freeModule$1 && freeModule$1.require && freeModule$1.require("util").types;
|
|
891
|
-
if (types) return types;
|
|
892
|
-
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
893
|
-
} catch (e) {}
|
|
894
|
-
}();
|
|
895
|
-
//#endregion
|
|
896
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isTypedArray.js
|
|
897
|
-
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
898
|
-
/**
|
|
899
|
-
* Checks if `value` is classified as a typed array.
|
|
900
|
-
*
|
|
901
|
-
* @static
|
|
902
|
-
* @memberOf _
|
|
903
|
-
* @since 3.0.0
|
|
904
|
-
* @category Lang
|
|
905
|
-
* @param {*} value The value to check.
|
|
906
|
-
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
907
|
-
* @example
|
|
908
|
-
*
|
|
909
|
-
* _.isTypedArray(new Uint8Array);
|
|
910
|
-
* // => true
|
|
911
|
-
*
|
|
912
|
-
* _.isTypedArray([]);
|
|
913
|
-
* // => false
|
|
914
|
-
*/
|
|
915
|
-
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
916
|
-
//#endregion
|
|
917
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayLikeKeys.js
|
|
918
|
-
/** Used to check objects for own properties. */
|
|
919
|
-
var hasOwnProperty$5 = Object.prototype.hasOwnProperty;
|
|
920
|
-
/**
|
|
921
|
-
* Creates an array of the enumerable property names of the array-like `value`.
|
|
922
|
-
*
|
|
923
|
-
* @private
|
|
924
|
-
* @param {*} value The value to query.
|
|
925
|
-
* @param {boolean} inherited Specify returning inherited property names.
|
|
926
|
-
* @returns {Array} Returns the array of property names.
|
|
927
|
-
*/
|
|
928
|
-
function arrayLikeKeys(value, inherited) {
|
|
929
|
-
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
930
|
-
for (var key in value) if ((inherited || hasOwnProperty$5.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) result.push(key);
|
|
931
|
-
return result;
|
|
932
|
-
}
|
|
933
|
-
//#endregion
|
|
934
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_overArg.js
|
|
935
|
-
/**
|
|
936
|
-
* Creates a unary function that invokes `func` with its argument transformed.
|
|
937
|
-
*
|
|
938
|
-
* @private
|
|
939
|
-
* @param {Function} func The function to wrap.
|
|
940
|
-
* @param {Function} transform The argument transform.
|
|
941
|
-
* @returns {Function} Returns the new function.
|
|
942
|
-
*/
|
|
943
|
-
function overArg(func, transform) {
|
|
944
|
-
return function(arg) {
|
|
945
|
-
return func(transform(arg));
|
|
946
|
-
};
|
|
947
|
-
}
|
|
948
|
-
//#endregion
|
|
949
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeys.js
|
|
950
|
-
var nativeKeys = overArg(Object.keys, Object);
|
|
951
|
-
//#endregion
|
|
952
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseKeys.js
|
|
953
|
-
/** Used to check objects for own properties. */
|
|
954
|
-
var hasOwnProperty$4 = Object.prototype.hasOwnProperty;
|
|
955
|
-
/**
|
|
956
|
-
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
957
|
-
*
|
|
958
|
-
* @private
|
|
959
|
-
* @param {Object} object The object to query.
|
|
960
|
-
* @returns {Array} Returns the array of property names.
|
|
961
|
-
*/
|
|
962
|
-
function baseKeys(object) {
|
|
963
|
-
if (!isPrototype(object)) return nativeKeys(object);
|
|
964
|
-
var result = [];
|
|
965
|
-
for (var key in Object(object)) if (hasOwnProperty$4.call(object, key) && key != "constructor") result.push(key);
|
|
966
|
-
return result;
|
|
967
|
-
}
|
|
968
|
-
//#endregion
|
|
969
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/keys.js
|
|
970
|
-
/**
|
|
971
|
-
* Creates an array of the own enumerable property names of `object`.
|
|
972
|
-
*
|
|
973
|
-
* **Note:** Non-object values are coerced to objects. See the
|
|
974
|
-
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
975
|
-
* for more details.
|
|
976
|
-
*
|
|
977
|
-
* @static
|
|
978
|
-
* @since 0.1.0
|
|
979
|
-
* @memberOf _
|
|
980
|
-
* @category Object
|
|
981
|
-
* @param {Object} object The object to query.
|
|
982
|
-
* @returns {Array} Returns the array of property names.
|
|
983
|
-
* @example
|
|
984
|
-
*
|
|
985
|
-
* function Foo() {
|
|
986
|
-
* this.a = 1;
|
|
987
|
-
* this.b = 2;
|
|
988
|
-
* }
|
|
989
|
-
*
|
|
990
|
-
* Foo.prototype.c = 3;
|
|
991
|
-
*
|
|
992
|
-
* _.keys(new Foo);
|
|
993
|
-
* // => ['a', 'b'] (iteration order is not guaranteed)
|
|
994
|
-
*
|
|
995
|
-
* _.keys('hi');
|
|
996
|
-
* // => ['0', '1']
|
|
997
|
-
*/
|
|
998
|
-
function keys(object) {
|
|
999
|
-
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
1000
|
-
}
|
|
1001
|
-
//#endregion
|
|
1002
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeysIn.js
|
|
1003
|
-
/**
|
|
1004
|
-
* This function is like
|
|
1005
|
-
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
1006
|
-
* except that it includes inherited enumerable properties.
|
|
1007
|
-
*
|
|
1008
|
-
* @private
|
|
1009
|
-
* @param {Object} object The object to query.
|
|
1010
|
-
* @returns {Array} Returns the array of property names.
|
|
1011
|
-
*/
|
|
1012
|
-
function nativeKeysIn(object) {
|
|
1013
|
-
var result = [];
|
|
1014
|
-
if (object != null) for (var key in Object(object)) result.push(key);
|
|
1015
|
-
return result;
|
|
1016
|
-
}
|
|
1017
|
-
//#endregion
|
|
1018
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseKeysIn.js
|
|
1019
|
-
/** Used to check objects for own properties. */
|
|
1020
|
-
var hasOwnProperty$3 = Object.prototype.hasOwnProperty;
|
|
1021
|
-
/**
|
|
1022
|
-
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
|
|
1023
|
-
*
|
|
1024
|
-
* @private
|
|
1025
|
-
* @param {Object} object The object to query.
|
|
1026
|
-
* @returns {Array} Returns the array of property names.
|
|
1027
|
-
*/
|
|
1028
|
-
function baseKeysIn(object) {
|
|
1029
|
-
if (!isObject(object)) return nativeKeysIn(object);
|
|
1030
|
-
var isProto = isPrototype(object), result = [];
|
|
1031
|
-
for (var key in object) if (!(key == "constructor" && (isProto || !hasOwnProperty$3.call(object, key)))) result.push(key);
|
|
1032
|
-
return result;
|
|
1033
|
-
}
|
|
1034
|
-
//#endregion
|
|
1035
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/keysIn.js
|
|
1036
|
-
/**
|
|
1037
|
-
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
1038
|
-
*
|
|
1039
|
-
* **Note:** Non-object values are coerced to objects.
|
|
1040
|
-
*
|
|
1041
|
-
* @static
|
|
1042
|
-
* @memberOf _
|
|
1043
|
-
* @since 3.0.0
|
|
1044
|
-
* @category Object
|
|
1045
|
-
* @param {Object} object The object to query.
|
|
1046
|
-
* @returns {Array} Returns the array of property names.
|
|
1047
|
-
* @example
|
|
1048
|
-
*
|
|
1049
|
-
* function Foo() {
|
|
1050
|
-
* this.a = 1;
|
|
1051
|
-
* this.b = 2;
|
|
1052
|
-
* }
|
|
1053
|
-
*
|
|
1054
|
-
* Foo.prototype.c = 3;
|
|
1055
|
-
*
|
|
1056
|
-
* _.keysIn(new Foo);
|
|
1057
|
-
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
|
1058
|
-
*/
|
|
1059
|
-
function keysIn(object) {
|
|
1060
|
-
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
1061
|
-
}
|
|
1062
|
-
//#endregion
|
|
1063
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nativeCreate.js
|
|
1064
|
-
var nativeCreate = getNative(Object, "create");
|
|
1065
|
-
//#endregion
|
|
1066
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashClear.js
|
|
1067
|
-
/**
|
|
1068
|
-
* Removes all key-value entries from the hash.
|
|
1069
|
-
*
|
|
1070
|
-
* @private
|
|
1071
|
-
* @name clear
|
|
1072
|
-
* @memberOf Hash
|
|
1073
|
-
*/
|
|
1074
|
-
function hashClear() {
|
|
1075
|
-
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
1076
|
-
this.size = 0;
|
|
1077
|
-
}
|
|
1078
|
-
//#endregion
|
|
1079
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashDelete.js
|
|
1080
|
-
/**
|
|
1081
|
-
* Removes `key` and its value from the hash.
|
|
1082
|
-
*
|
|
1083
|
-
* @private
|
|
1084
|
-
* @name delete
|
|
1085
|
-
* @memberOf Hash
|
|
1086
|
-
* @param {Object} hash The hash to modify.
|
|
1087
|
-
* @param {string} key The key of the value to remove.
|
|
1088
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1089
|
-
*/
|
|
1090
|
-
function hashDelete(key) {
|
|
1091
|
-
var result = this.has(key) && delete this.__data__[key];
|
|
1092
|
-
this.size -= result ? 1 : 0;
|
|
1093
|
-
return result;
|
|
1094
|
-
}
|
|
1095
|
-
//#endregion
|
|
1096
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashGet.js
|
|
1097
|
-
/** Used to stand-in for `undefined` hash values. */
|
|
1098
|
-
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
1099
|
-
/** Used to check objects for own properties. */
|
|
1100
|
-
var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
|
|
1101
|
-
/**
|
|
1102
|
-
* Gets the hash value for `key`.
|
|
1103
|
-
*
|
|
1104
|
-
* @private
|
|
1105
|
-
* @name get
|
|
1106
|
-
* @memberOf Hash
|
|
1107
|
-
* @param {string} key The key of the value to get.
|
|
1108
|
-
* @returns {*} Returns the entry value.
|
|
1109
|
-
*/
|
|
1110
|
-
function hashGet(key) {
|
|
1111
|
-
var data = this.__data__;
|
|
1112
|
-
if (nativeCreate) {
|
|
1113
|
-
var result = data[key];
|
|
1114
|
-
return result === HASH_UNDEFINED$1 ? void 0 : result;
|
|
1115
|
-
}
|
|
1116
|
-
return hasOwnProperty$2.call(data, key) ? data[key] : void 0;
|
|
1117
|
-
}
|
|
1118
|
-
//#endregion
|
|
1119
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashHas.js
|
|
1120
|
-
/** Used to check objects for own properties. */
|
|
1121
|
-
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
1122
|
-
/**
|
|
1123
|
-
* Checks if a hash value for `key` exists.
|
|
1124
|
-
*
|
|
1125
|
-
* @private
|
|
1126
|
-
* @name has
|
|
1127
|
-
* @memberOf Hash
|
|
1128
|
-
* @param {string} key The key of the entry to check.
|
|
1129
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1130
|
-
*/
|
|
1131
|
-
function hashHas(key) {
|
|
1132
|
-
var data = this.__data__;
|
|
1133
|
-
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$1.call(data, key);
|
|
1134
|
-
}
|
|
1135
|
-
//#endregion
|
|
1136
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashSet.js
|
|
1137
|
-
/** Used to stand-in for `undefined` hash values. */
|
|
1138
|
-
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
1139
|
-
/**
|
|
1140
|
-
* Sets the hash `key` to `value`.
|
|
1141
|
-
*
|
|
1142
|
-
* @private
|
|
1143
|
-
* @name set
|
|
1144
|
-
* @memberOf Hash
|
|
1145
|
-
* @param {string} key The key of the value to set.
|
|
1146
|
-
* @param {*} value The value to set.
|
|
1147
|
-
* @returns {Object} Returns the hash instance.
|
|
1148
|
-
*/
|
|
1149
|
-
function hashSet(key, value) {
|
|
1150
|
-
var data = this.__data__;
|
|
1151
|
-
this.size += this.has(key) ? 0 : 1;
|
|
1152
|
-
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
1153
|
-
return this;
|
|
1154
|
-
}
|
|
1155
|
-
//#endregion
|
|
1156
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Hash.js
|
|
1157
|
-
/**
|
|
1158
|
-
* Creates a hash object.
|
|
1159
|
-
*
|
|
1160
|
-
* @private
|
|
1161
|
-
* @constructor
|
|
1162
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
1163
|
-
*/
|
|
1164
|
-
function Hash(entries) {
|
|
1165
|
-
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1166
|
-
this.clear();
|
|
1167
|
-
while (++index < length) {
|
|
1168
|
-
var entry = entries[index];
|
|
1169
|
-
this.set(entry[0], entry[1]);
|
|
1170
|
-
}
|
|
1171
|
-
}
|
|
1172
|
-
Hash.prototype.clear = hashClear;
|
|
1173
|
-
Hash.prototype["delete"] = hashDelete;
|
|
1174
|
-
Hash.prototype.get = hashGet;
|
|
1175
|
-
Hash.prototype.has = hashHas;
|
|
1176
|
-
Hash.prototype.set = hashSet;
|
|
1177
|
-
//#endregion
|
|
1178
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheClear.js
|
|
1179
|
-
/**
|
|
1180
|
-
* Removes all key-value entries from the list cache.
|
|
1181
|
-
*
|
|
1182
|
-
* @private
|
|
1183
|
-
* @name clear
|
|
1184
|
-
* @memberOf ListCache
|
|
1185
|
-
*/
|
|
1186
|
-
function listCacheClear() {
|
|
1187
|
-
this.__data__ = [];
|
|
1188
|
-
this.size = 0;
|
|
1189
|
-
}
|
|
1190
|
-
//#endregion
|
|
1191
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_assocIndexOf.js
|
|
1192
|
-
/**
|
|
1193
|
-
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
1194
|
-
*
|
|
1195
|
-
* @private
|
|
1196
|
-
* @param {Array} array The array to inspect.
|
|
1197
|
-
* @param {*} key The key to search for.
|
|
1198
|
-
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
1199
|
-
*/
|
|
1200
|
-
function assocIndexOf(array, key) {
|
|
1201
|
-
var length = array.length;
|
|
1202
|
-
while (length--) if (eq(array[length][0], key)) return length;
|
|
1203
|
-
return -1;
|
|
1204
|
-
}
|
|
1205
|
-
//#endregion
|
|
1206
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheDelete.js
|
|
1207
|
-
/** Built-in value references. */
|
|
1208
|
-
var splice = Array.prototype.splice;
|
|
1209
|
-
/**
|
|
1210
|
-
* Removes `key` and its value from the list cache.
|
|
1211
|
-
*
|
|
1212
|
-
* @private
|
|
1213
|
-
* @name delete
|
|
1214
|
-
* @memberOf ListCache
|
|
1215
|
-
* @param {string} key The key of the value to remove.
|
|
1216
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1217
|
-
*/
|
|
1218
|
-
function listCacheDelete(key) {
|
|
1219
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
1220
|
-
if (index < 0) return false;
|
|
1221
|
-
if (index == data.length - 1) data.pop();
|
|
1222
|
-
else splice.call(data, index, 1);
|
|
1223
|
-
--this.size;
|
|
1224
|
-
return true;
|
|
1225
|
-
}
|
|
1226
|
-
//#endregion
|
|
1227
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheGet.js
|
|
1228
|
-
/**
|
|
1229
|
-
* Gets the list cache value for `key`.
|
|
1230
|
-
*
|
|
1231
|
-
* @private
|
|
1232
|
-
* @name get
|
|
1233
|
-
* @memberOf ListCache
|
|
1234
|
-
* @param {string} key The key of the value to get.
|
|
1235
|
-
* @returns {*} Returns the entry value.
|
|
1236
|
-
*/
|
|
1237
|
-
function listCacheGet(key) {
|
|
1238
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
1239
|
-
return index < 0 ? void 0 : data[index][1];
|
|
1240
|
-
}
|
|
1241
|
-
//#endregion
|
|
1242
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheHas.js
|
|
1243
|
-
/**
|
|
1244
|
-
* Checks if a list cache value for `key` exists.
|
|
1245
|
-
*
|
|
1246
|
-
* @private
|
|
1247
|
-
* @name has
|
|
1248
|
-
* @memberOf ListCache
|
|
1249
|
-
* @param {string} key The key of the entry to check.
|
|
1250
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1251
|
-
*/
|
|
1252
|
-
function listCacheHas(key) {
|
|
1253
|
-
return assocIndexOf(this.__data__, key) > -1;
|
|
1254
|
-
}
|
|
1255
|
-
//#endregion
|
|
1256
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheSet.js
|
|
1257
|
-
/**
|
|
1258
|
-
* Sets the list cache `key` to `value`.
|
|
1259
|
-
*
|
|
1260
|
-
* @private
|
|
1261
|
-
* @name set
|
|
1262
|
-
* @memberOf ListCache
|
|
1263
|
-
* @param {string} key The key of the value to set.
|
|
1264
|
-
* @param {*} value The value to set.
|
|
1265
|
-
* @returns {Object} Returns the list cache instance.
|
|
1266
|
-
*/
|
|
1267
|
-
function listCacheSet(key, value) {
|
|
1268
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
1269
|
-
if (index < 0) {
|
|
1270
|
-
++this.size;
|
|
1271
|
-
data.push([key, value]);
|
|
1272
|
-
} else data[index][1] = value;
|
|
1273
|
-
return this;
|
|
1274
|
-
}
|
|
1275
|
-
//#endregion
|
|
1276
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_ListCache.js
|
|
1277
|
-
/**
|
|
1278
|
-
* Creates an list cache object.
|
|
1279
|
-
*
|
|
1280
|
-
* @private
|
|
1281
|
-
* @constructor
|
|
1282
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
1283
|
-
*/
|
|
1284
|
-
function ListCache(entries) {
|
|
1285
|
-
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1286
|
-
this.clear();
|
|
1287
|
-
while (++index < length) {
|
|
1288
|
-
var entry = entries[index];
|
|
1289
|
-
this.set(entry[0], entry[1]);
|
|
1290
|
-
}
|
|
1291
|
-
}
|
|
1292
|
-
ListCache.prototype.clear = listCacheClear;
|
|
1293
|
-
ListCache.prototype["delete"] = listCacheDelete;
|
|
1294
|
-
ListCache.prototype.get = listCacheGet;
|
|
1295
|
-
ListCache.prototype.has = listCacheHas;
|
|
1296
|
-
ListCache.prototype.set = listCacheSet;
|
|
1297
|
-
//#endregion
|
|
1298
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Map.js
|
|
1299
|
-
var Map = getNative(root, "Map");
|
|
1300
|
-
//#endregion
|
|
1301
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheClear.js
|
|
1302
|
-
/**
|
|
1303
|
-
* Removes all key-value entries from the map.
|
|
1304
|
-
*
|
|
1305
|
-
* @private
|
|
1306
|
-
* @name clear
|
|
1307
|
-
* @memberOf MapCache
|
|
1308
|
-
*/
|
|
1309
|
-
function mapCacheClear() {
|
|
1310
|
-
this.size = 0;
|
|
1311
|
-
this.__data__ = {
|
|
1312
|
-
"hash": new Hash(),
|
|
1313
|
-
"map": new (Map || ListCache)(),
|
|
1314
|
-
"string": new Hash()
|
|
1315
|
-
};
|
|
1316
|
-
}
|
|
1317
|
-
//#endregion
|
|
1318
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isKeyable.js
|
|
1319
|
-
/**
|
|
1320
|
-
* Checks if `value` is suitable for use as unique object key.
|
|
1321
|
-
*
|
|
1322
|
-
* @private
|
|
1323
|
-
* @param {*} value The value to check.
|
|
1324
|
-
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
1325
|
-
*/
|
|
1326
|
-
function isKeyable(value) {
|
|
1327
|
-
var type = typeof value;
|
|
1328
|
-
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
1329
|
-
}
|
|
1330
|
-
//#endregion
|
|
1331
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getMapData.js
|
|
1332
|
-
/**
|
|
1333
|
-
* Gets the data for `map`.
|
|
1334
|
-
*
|
|
1335
|
-
* @private
|
|
1336
|
-
* @param {Object} map The map to query.
|
|
1337
|
-
* @param {string} key The reference key.
|
|
1338
|
-
* @returns {*} Returns the map data.
|
|
1339
|
-
*/
|
|
1340
|
-
function getMapData(map, key) {
|
|
1341
|
-
var data = map.__data__;
|
|
1342
|
-
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
1343
|
-
}
|
|
1344
|
-
//#endregion
|
|
1345
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheDelete.js
|
|
1346
|
-
/**
|
|
1347
|
-
* Removes `key` and its value from the map.
|
|
1348
|
-
*
|
|
1349
|
-
* @private
|
|
1350
|
-
* @name delete
|
|
1351
|
-
* @memberOf MapCache
|
|
1352
|
-
* @param {string} key The key of the value to remove.
|
|
1353
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1354
|
-
*/
|
|
1355
|
-
function mapCacheDelete(key) {
|
|
1356
|
-
var result = getMapData(this, key)["delete"](key);
|
|
1357
|
-
this.size -= result ? 1 : 0;
|
|
1358
|
-
return result;
|
|
1359
|
-
}
|
|
1360
|
-
//#endregion
|
|
1361
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheGet.js
|
|
1362
|
-
/**
|
|
1363
|
-
* Gets the map value for `key`.
|
|
1364
|
-
*
|
|
1365
|
-
* @private
|
|
1366
|
-
* @name get
|
|
1367
|
-
* @memberOf MapCache
|
|
1368
|
-
* @param {string} key The key of the value to get.
|
|
1369
|
-
* @returns {*} Returns the entry value.
|
|
1370
|
-
*/
|
|
1371
|
-
function mapCacheGet(key) {
|
|
1372
|
-
return getMapData(this, key).get(key);
|
|
1373
|
-
}
|
|
1374
|
-
//#endregion
|
|
1375
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheHas.js
|
|
1376
|
-
/**
|
|
1377
|
-
* Checks if a map value for `key` exists.
|
|
1378
|
-
*
|
|
1379
|
-
* @private
|
|
1380
|
-
* @name has
|
|
1381
|
-
* @memberOf MapCache
|
|
1382
|
-
* @param {string} key The key of the entry to check.
|
|
1383
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1384
|
-
*/
|
|
1385
|
-
function mapCacheHas(key) {
|
|
1386
|
-
return getMapData(this, key).has(key);
|
|
1387
|
-
}
|
|
1388
|
-
//#endregion
|
|
1389
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheSet.js
|
|
1390
|
-
/**
|
|
1391
|
-
* Sets the map `key` to `value`.
|
|
1392
|
-
*
|
|
1393
|
-
* @private
|
|
1394
|
-
* @name set
|
|
1395
|
-
* @memberOf MapCache
|
|
1396
|
-
* @param {string} key The key of the value to set.
|
|
1397
|
-
* @param {*} value The value to set.
|
|
1398
|
-
* @returns {Object} Returns the map cache instance.
|
|
1399
|
-
*/
|
|
1400
|
-
function mapCacheSet(key, value) {
|
|
1401
|
-
var data = getMapData(this, key), size = data.size;
|
|
1402
|
-
data.set(key, value);
|
|
1403
|
-
this.size += data.size == size ? 0 : 1;
|
|
1404
|
-
return this;
|
|
1405
|
-
}
|
|
1406
|
-
//#endregion
|
|
1407
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_MapCache.js
|
|
1408
|
-
/**
|
|
1409
|
-
* Creates a map cache object to store key-value pairs.
|
|
1410
|
-
*
|
|
1411
|
-
* @private
|
|
1412
|
-
* @constructor
|
|
1413
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
1414
|
-
*/
|
|
1415
|
-
function MapCache(entries) {
|
|
1416
|
-
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1417
|
-
this.clear();
|
|
1418
|
-
while (++index < length) {
|
|
1419
|
-
var entry = entries[index];
|
|
1420
|
-
this.set(entry[0], entry[1]);
|
|
1421
|
-
}
|
|
1422
|
-
}
|
|
1423
|
-
MapCache.prototype.clear = mapCacheClear;
|
|
1424
|
-
MapCache.prototype["delete"] = mapCacheDelete;
|
|
1425
|
-
MapCache.prototype.get = mapCacheGet;
|
|
1426
|
-
MapCache.prototype.has = mapCacheHas;
|
|
1427
|
-
MapCache.prototype.set = mapCacheSet;
|
|
1428
|
-
//#endregion
|
|
1429
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayPush.js
|
|
1430
|
-
/**
|
|
1431
|
-
* Appends the elements of `values` to `array`.
|
|
1432
|
-
*
|
|
1433
|
-
* @private
|
|
1434
|
-
* @param {Array} array The array to modify.
|
|
1435
|
-
* @param {Array} values The values to append.
|
|
1436
|
-
* @returns {Array} Returns `array`.
|
|
1437
|
-
*/
|
|
1438
|
-
function arrayPush(array, values) {
|
|
1439
|
-
var index = -1, length = values.length, offset = array.length;
|
|
1440
|
-
while (++index < length) array[offset + index] = values[index];
|
|
1441
|
-
return array;
|
|
1442
|
-
}
|
|
1443
|
-
//#endregion
|
|
1444
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getPrototype.js
|
|
1445
|
-
/** Built-in value references. */
|
|
1446
|
-
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
1447
|
-
//#endregion
|
|
1448
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackClear.js
|
|
1449
|
-
/**
|
|
1450
|
-
* Removes all key-value entries from the stack.
|
|
1451
|
-
*
|
|
1452
|
-
* @private
|
|
1453
|
-
* @name clear
|
|
1454
|
-
* @memberOf Stack
|
|
1455
|
-
*/
|
|
1456
|
-
function stackClear() {
|
|
1457
|
-
this.__data__ = new ListCache();
|
|
1458
|
-
this.size = 0;
|
|
1459
|
-
}
|
|
1460
|
-
//#endregion
|
|
1461
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackDelete.js
|
|
1462
|
-
/**
|
|
1463
|
-
* Removes `key` and its value from the stack.
|
|
1464
|
-
*
|
|
1465
|
-
* @private
|
|
1466
|
-
* @name delete
|
|
1467
|
-
* @memberOf Stack
|
|
1468
|
-
* @param {string} key The key of the value to remove.
|
|
1469
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1470
|
-
*/
|
|
1471
|
-
function stackDelete(key) {
|
|
1472
|
-
var data = this.__data__, result = data["delete"](key);
|
|
1473
|
-
this.size = data.size;
|
|
1474
|
-
return result;
|
|
1475
|
-
}
|
|
1476
|
-
//#endregion
|
|
1477
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackGet.js
|
|
1478
|
-
/**
|
|
1479
|
-
* Gets the stack value for `key`.
|
|
1480
|
-
*
|
|
1481
|
-
* @private
|
|
1482
|
-
* @name get
|
|
1483
|
-
* @memberOf Stack
|
|
1484
|
-
* @param {string} key The key of the value to get.
|
|
1485
|
-
* @returns {*} Returns the entry value.
|
|
1486
|
-
*/
|
|
1487
|
-
function stackGet(key) {
|
|
1488
|
-
return this.__data__.get(key);
|
|
1489
|
-
}
|
|
1490
|
-
//#endregion
|
|
1491
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackHas.js
|
|
1492
|
-
/**
|
|
1493
|
-
* Checks if a stack value for `key` exists.
|
|
1494
|
-
*
|
|
1495
|
-
* @private
|
|
1496
|
-
* @name has
|
|
1497
|
-
* @memberOf Stack
|
|
1498
|
-
* @param {string} key The key of the entry to check.
|
|
1499
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1500
|
-
*/
|
|
1501
|
-
function stackHas(key) {
|
|
1502
|
-
return this.__data__.has(key);
|
|
1503
|
-
}
|
|
1504
|
-
//#endregion
|
|
1505
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackSet.js
|
|
1506
|
-
/** Used as the size to enable large array optimizations. */
|
|
1507
|
-
var LARGE_ARRAY_SIZE = 200;
|
|
1508
|
-
/**
|
|
1509
|
-
* Sets the stack `key` to `value`.
|
|
1510
|
-
*
|
|
1511
|
-
* @private
|
|
1512
|
-
* @name set
|
|
1513
|
-
* @memberOf Stack
|
|
1514
|
-
* @param {string} key The key of the value to set.
|
|
1515
|
-
* @param {*} value The value to set.
|
|
1516
|
-
* @returns {Object} Returns the stack cache instance.
|
|
1517
|
-
*/
|
|
1518
|
-
function stackSet(key, value) {
|
|
1519
|
-
var data = this.__data__;
|
|
1520
|
-
if (data instanceof ListCache) {
|
|
1521
|
-
var pairs = data.__data__;
|
|
1522
|
-
if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
1523
|
-
pairs.push([key, value]);
|
|
1524
|
-
this.size = ++data.size;
|
|
1525
|
-
return this;
|
|
1526
|
-
}
|
|
1527
|
-
data = this.__data__ = new MapCache(pairs);
|
|
1528
|
-
}
|
|
1529
|
-
data.set(key, value);
|
|
1530
|
-
this.size = data.size;
|
|
1531
|
-
return this;
|
|
1532
|
-
}
|
|
1533
|
-
//#endregion
|
|
1534
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Stack.js
|
|
1535
|
-
/**
|
|
1536
|
-
* Creates a stack cache object to store key-value pairs.
|
|
1537
|
-
*
|
|
1538
|
-
* @private
|
|
1539
|
-
* @constructor
|
|
1540
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
1541
|
-
*/
|
|
1542
|
-
function Stack(entries) {
|
|
1543
|
-
this.size = (this.__data__ = new ListCache(entries)).size;
|
|
1544
|
-
}
|
|
1545
|
-
Stack.prototype.clear = stackClear;
|
|
1546
|
-
Stack.prototype["delete"] = stackDelete;
|
|
1547
|
-
Stack.prototype.get = stackGet;
|
|
1548
|
-
Stack.prototype.has = stackHas;
|
|
1549
|
-
Stack.prototype.set = stackSet;
|
|
1550
|
-
//#endregion
|
|
1551
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseAssign.js
|
|
1552
|
-
/**
|
|
1553
|
-
* The base implementation of `_.assign` without support for multiple sources
|
|
1554
|
-
* or `customizer` functions.
|
|
1555
|
-
*
|
|
1556
|
-
* @private
|
|
1557
|
-
* @param {Object} object The destination object.
|
|
1558
|
-
* @param {Object} source The source object.
|
|
1559
|
-
* @returns {Object} Returns `object`.
|
|
1560
|
-
*/
|
|
1561
|
-
function baseAssign(object, source) {
|
|
1562
|
-
return object && copyObject(source, keys(source), object);
|
|
1563
|
-
}
|
|
1564
|
-
//#endregion
|
|
1565
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignIn.js
|
|
1566
|
-
/**
|
|
1567
|
-
* The base implementation of `_.assignIn` without support for multiple sources
|
|
1568
|
-
* or `customizer` functions.
|
|
1569
|
-
*
|
|
1570
|
-
* @private
|
|
1571
|
-
* @param {Object} object The destination object.
|
|
1572
|
-
* @param {Object} source The source object.
|
|
1573
|
-
* @returns {Object} Returns `object`.
|
|
1574
|
-
*/
|
|
1575
|
-
function baseAssignIn(object, source) {
|
|
1576
|
-
return object && copyObject(source, keysIn(source), object);
|
|
1577
|
-
}
|
|
1578
|
-
//#endregion
|
|
1579
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneBuffer.js
|
|
1580
|
-
/** Detect free variable `exports`. */
|
|
1581
|
-
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
1582
|
-
/** Detect free variable `module`. */
|
|
1583
|
-
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
1584
|
-
/** Built-in value references. */
|
|
1585
|
-
var Buffer = freeModule && freeModule.exports === freeExports ? root.Buffer : void 0, allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
|
|
1586
|
-
/**
|
|
1587
|
-
* Creates a clone of `buffer`.
|
|
1588
|
-
*
|
|
1589
|
-
* @private
|
|
1590
|
-
* @param {Buffer} buffer The buffer to clone.
|
|
1591
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1592
|
-
* @returns {Buffer} Returns the cloned buffer.
|
|
1593
|
-
*/
|
|
1594
|
-
function cloneBuffer(buffer, isDeep) {
|
|
1595
|
-
if (isDeep) return buffer.slice();
|
|
1596
|
-
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
1597
|
-
buffer.copy(result);
|
|
1598
|
-
return result;
|
|
1599
|
-
}
|
|
1600
|
-
//#endregion
|
|
1601
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayFilter.js
|
|
1602
|
-
/**
|
|
1603
|
-
* A specialized version of `_.filter` for arrays without support for
|
|
1604
|
-
* iteratee shorthands.
|
|
1605
|
-
*
|
|
1606
|
-
* @private
|
|
1607
|
-
* @param {Array} [array] The array to iterate over.
|
|
1608
|
-
* @param {Function} predicate The function invoked per iteration.
|
|
1609
|
-
* @returns {Array} Returns the new filtered array.
|
|
1610
|
-
*/
|
|
1611
|
-
function arrayFilter(array, predicate) {
|
|
1612
|
-
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
1613
|
-
while (++index < length) {
|
|
1614
|
-
var value = array[index];
|
|
1615
|
-
if (predicate(value, index, array)) result[resIndex++] = value;
|
|
1616
|
-
}
|
|
1617
|
-
return result;
|
|
1618
|
-
}
|
|
1619
|
-
//#endregion
|
|
1620
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/stubArray.js
|
|
1621
|
-
/**
|
|
1622
|
-
* This method returns a new empty array.
|
|
1623
|
-
*
|
|
1624
|
-
* @static
|
|
1625
|
-
* @memberOf _
|
|
1626
|
-
* @since 4.13.0
|
|
1627
|
-
* @category Util
|
|
1628
|
-
* @returns {Array} Returns the new empty array.
|
|
1629
|
-
* @example
|
|
1630
|
-
*
|
|
1631
|
-
* var arrays = _.times(2, _.stubArray);
|
|
1632
|
-
*
|
|
1633
|
-
* console.log(arrays);
|
|
1634
|
-
* // => [[], []]
|
|
1635
|
-
*
|
|
1636
|
-
* console.log(arrays[0] === arrays[1]);
|
|
1637
|
-
* // => false
|
|
1638
|
-
*/
|
|
1639
|
-
function stubArray() {
|
|
1640
|
-
return [];
|
|
1641
|
-
}
|
|
1642
|
-
//#endregion
|
|
1643
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getSymbols.js
|
|
1644
|
-
/** Built-in value references. */
|
|
1645
|
-
var propertyIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
1646
|
-
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
1647
|
-
/**
|
|
1648
|
-
* Creates an array of the own enumerable symbols of `object`.
|
|
1649
|
-
*
|
|
1650
|
-
* @private
|
|
1651
|
-
* @param {Object} object The object to query.
|
|
1652
|
-
* @returns {Array} Returns the array of symbols.
|
|
1653
|
-
*/
|
|
1654
|
-
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
|
1655
|
-
if (object == null) return [];
|
|
1656
|
-
object = Object(object);
|
|
1657
|
-
return arrayFilter(nativeGetSymbols(object), function(symbol) {
|
|
1658
|
-
return propertyIsEnumerable.call(object, symbol);
|
|
1659
|
-
});
|
|
1660
|
-
};
|
|
1661
|
-
//#endregion
|
|
1662
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_copySymbols.js
|
|
1663
|
-
/**
|
|
1664
|
-
* Copies own symbols of `source` to `object`.
|
|
1665
|
-
*
|
|
1666
|
-
* @private
|
|
1667
|
-
* @param {Object} source The object to copy symbols from.
|
|
1668
|
-
* @param {Object} [object={}] The object to copy symbols to.
|
|
1669
|
-
* @returns {Object} Returns `object`.
|
|
1670
|
-
*/
|
|
1671
|
-
function copySymbols(source, object) {
|
|
1672
|
-
return copyObject(source, getSymbols(source), object);
|
|
1673
|
-
}
|
|
1674
|
-
//#endregion
|
|
1675
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getSymbolsIn.js
|
|
1676
|
-
/**
|
|
1677
|
-
* Creates an array of the own and inherited enumerable symbols of `object`.
|
|
1678
|
-
*
|
|
1679
|
-
* @private
|
|
1680
|
-
* @param {Object} object The object to query.
|
|
1681
|
-
* @returns {Array} Returns the array of symbols.
|
|
1682
|
-
*/
|
|
1683
|
-
var getSymbolsIn = !Object.getOwnPropertySymbols ? stubArray : function(object) {
|
|
1684
|
-
var result = [];
|
|
1685
|
-
while (object) {
|
|
1686
|
-
arrayPush(result, getSymbols(object));
|
|
1687
|
-
object = getPrototype(object);
|
|
1688
|
-
}
|
|
1689
|
-
return result;
|
|
1690
|
-
};
|
|
1691
|
-
//#endregion
|
|
1692
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_copySymbolsIn.js
|
|
1693
|
-
/**
|
|
1694
|
-
* Copies own and inherited symbols of `source` to `object`.
|
|
1695
|
-
*
|
|
1696
|
-
* @private
|
|
1697
|
-
* @param {Object} source The object to copy symbols from.
|
|
1698
|
-
* @param {Object} [object={}] The object to copy symbols to.
|
|
1699
|
-
* @returns {Object} Returns `object`.
|
|
1700
|
-
*/
|
|
1701
|
-
function copySymbolsIn(source, object) {
|
|
1702
|
-
return copyObject(source, getSymbolsIn(source), object);
|
|
1703
|
-
}
|
|
1704
|
-
//#endregion
|
|
1705
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGetAllKeys.js
|
|
1706
|
-
/**
|
|
1707
|
-
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
1708
|
-
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
|
|
1709
|
-
* symbols of `object`.
|
|
1710
|
-
*
|
|
1711
|
-
* @private
|
|
1712
|
-
* @param {Object} object The object to query.
|
|
1713
|
-
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
1714
|
-
* @param {Function} symbolsFunc The function to get the symbols of `object`.
|
|
1715
|
-
* @returns {Array} Returns the array of property names and symbols.
|
|
1716
|
-
*/
|
|
1717
|
-
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
1718
|
-
var result = keysFunc(object);
|
|
1719
|
-
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
1720
|
-
}
|
|
1721
|
-
//#endregion
|
|
1722
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeys.js
|
|
1723
|
-
/**
|
|
1724
|
-
* Creates an array of own enumerable property names and symbols of `object`.
|
|
1725
|
-
*
|
|
1726
|
-
* @private
|
|
1727
|
-
* @param {Object} object The object to query.
|
|
1728
|
-
* @returns {Array} Returns the array of property names and symbols.
|
|
1729
|
-
*/
|
|
1730
|
-
function getAllKeys(object) {
|
|
1731
|
-
return baseGetAllKeys(object, keys, getSymbols);
|
|
1732
|
-
}
|
|
1733
|
-
//#endregion
|
|
1734
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeysIn.js
|
|
1735
|
-
/**
|
|
1736
|
-
* Creates an array of own and inherited enumerable property names and
|
|
1737
|
-
* symbols of `object`.
|
|
1738
|
-
*
|
|
1739
|
-
* @private
|
|
1740
|
-
* @param {Object} object The object to query.
|
|
1741
|
-
* @returns {Array} Returns the array of property names and symbols.
|
|
1742
|
-
*/
|
|
1743
|
-
function getAllKeysIn(object) {
|
|
1744
|
-
return baseGetAllKeys(object, keysIn, getSymbolsIn);
|
|
1745
|
-
}
|
|
1746
|
-
//#endregion
|
|
1747
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_DataView.js
|
|
1748
|
-
var DataView = getNative(root, "DataView");
|
|
1749
|
-
//#endregion
|
|
1750
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Promise.js
|
|
1751
|
-
var Promise$1 = getNative(root, "Promise");
|
|
1752
|
-
//#endregion
|
|
1753
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Set.js
|
|
1754
|
-
var Set = getNative(root, "Set");
|
|
1755
|
-
//#endregion
|
|
1756
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getTag.js
|
|
1757
|
-
/** `Object#toString` result references. */
|
|
1758
|
-
var mapTag$3 = "[object Map]", objectTag$1 = "[object Object]", promiseTag = "[object Promise]", setTag$3 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
|
|
1759
|
-
var dataViewTag$2 = "[object DataView]";
|
|
1760
|
-
/** Used to detect maps, sets, and weakmaps. */
|
|
1761
|
-
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
|
|
1762
|
-
/**
|
|
1763
|
-
* Gets the `toStringTag` of `value`.
|
|
1764
|
-
*
|
|
1765
|
-
* @private
|
|
1766
|
-
* @param {*} value The value to query.
|
|
1767
|
-
* @returns {string} Returns the `toStringTag`.
|
|
1768
|
-
*/
|
|
1769
|
-
var getTag = baseGetTag;
|
|
1770
|
-
if (DataView && getTag(new DataView(/* @__PURE__ */ new ArrayBuffer(1))) != dataViewTag$2 || Map && getTag(new Map()) != mapTag$3 || Promise$1 && getTag(Promise$1.resolve()) != promiseTag || Set && getTag(new Set()) != setTag$3 || WeakMap && getTag(new WeakMap()) != weakMapTag$1) getTag = function(value) {
|
|
1771
|
-
var result = baseGetTag(value), Ctor = result == objectTag$1 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
1772
|
-
if (ctorString) switch (ctorString) {
|
|
1773
|
-
case dataViewCtorString: return dataViewTag$2;
|
|
1774
|
-
case mapCtorString: return mapTag$3;
|
|
1775
|
-
case promiseCtorString: return promiseTag;
|
|
1776
|
-
case setCtorString: return setTag$3;
|
|
1777
|
-
case weakMapCtorString: return weakMapTag$1;
|
|
1778
|
-
}
|
|
1779
|
-
return result;
|
|
1780
|
-
};
|
|
1781
|
-
var _getTag_default = getTag;
|
|
1782
|
-
//#endregion
|
|
1783
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_initCloneArray.js
|
|
1784
|
-
/** Used to check objects for own properties. */
|
|
1785
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
1786
|
-
/**
|
|
1787
|
-
* Initializes an array clone.
|
|
1788
|
-
*
|
|
1789
|
-
* @private
|
|
1790
|
-
* @param {Array} array The array to clone.
|
|
1791
|
-
* @returns {Array} Returns the initialized clone.
|
|
1792
|
-
*/
|
|
1793
|
-
function initCloneArray(array) {
|
|
1794
|
-
var length = array.length, result = new array.constructor(length);
|
|
1795
|
-
if (length && typeof array[0] == "string" && hasOwnProperty.call(array, "index")) {
|
|
1796
|
-
result.index = array.index;
|
|
1797
|
-
result.input = array.input;
|
|
1798
|
-
}
|
|
1799
|
-
return result;
|
|
1800
|
-
}
|
|
1801
|
-
//#endregion
|
|
1802
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Uint8Array.js
|
|
1803
|
-
/** Built-in value references. */
|
|
1804
|
-
var Uint8Array = root.Uint8Array;
|
|
1805
|
-
//#endregion
|
|
1806
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneArrayBuffer.js
|
|
1807
|
-
/**
|
|
1808
|
-
* Creates a clone of `arrayBuffer`.
|
|
1809
|
-
*
|
|
1810
|
-
* @private
|
|
1811
|
-
* @param {ArrayBuffer} arrayBuffer The array buffer to clone.
|
|
1812
|
-
* @returns {ArrayBuffer} Returns the cloned array buffer.
|
|
1813
|
-
*/
|
|
1814
|
-
function cloneArrayBuffer(arrayBuffer) {
|
|
1815
|
-
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
1816
|
-
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
|
|
1817
|
-
return result;
|
|
1818
|
-
}
|
|
1819
|
-
//#endregion
|
|
1820
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneDataView.js
|
|
1821
|
-
/**
|
|
1822
|
-
* Creates a clone of `dataView`.
|
|
1823
|
-
*
|
|
1824
|
-
* @private
|
|
1825
|
-
* @param {Object} dataView The data view to clone.
|
|
1826
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1827
|
-
* @returns {Object} Returns the cloned data view.
|
|
1828
|
-
*/
|
|
1829
|
-
function cloneDataView(dataView, isDeep) {
|
|
1830
|
-
var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
|
|
1831
|
-
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
1832
|
-
}
|
|
1833
|
-
//#endregion
|
|
1834
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneRegExp.js
|
|
1835
|
-
/** Used to match `RegExp` flags from their coerced string values. */
|
|
1836
|
-
var reFlags = /\w*$/;
|
|
1837
|
-
/**
|
|
1838
|
-
* Creates a clone of `regexp`.
|
|
1839
|
-
*
|
|
1840
|
-
* @private
|
|
1841
|
-
* @param {Object} regexp The regexp to clone.
|
|
1842
|
-
* @returns {Object} Returns the cloned regexp.
|
|
1843
|
-
*/
|
|
1844
|
-
function cloneRegExp(regexp) {
|
|
1845
|
-
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
|
|
1846
|
-
result.lastIndex = regexp.lastIndex;
|
|
1847
|
-
return result;
|
|
1848
|
-
}
|
|
1849
|
-
//#endregion
|
|
1850
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneSymbol.js
|
|
1851
|
-
/** Used to convert symbols to primitives and strings. */
|
|
1852
|
-
var symbolProto = Symbol ? Symbol.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
1853
|
-
/**
|
|
1854
|
-
* Creates a clone of the `symbol` object.
|
|
1855
|
-
*
|
|
1856
|
-
* @private
|
|
1857
|
-
* @param {Object} symbol The symbol object to clone.
|
|
1858
|
-
* @returns {Object} Returns the cloned symbol object.
|
|
1859
|
-
*/
|
|
1860
|
-
function cloneSymbol(symbol) {
|
|
1861
|
-
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
|
|
1862
|
-
}
|
|
1863
|
-
//#endregion
|
|
1864
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneTypedArray.js
|
|
1865
|
-
/**
|
|
1866
|
-
* Creates a clone of `typedArray`.
|
|
1867
|
-
*
|
|
1868
|
-
* @private
|
|
1869
|
-
* @param {Object} typedArray The typed array to clone.
|
|
1870
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1871
|
-
* @returns {Object} Returns the cloned typed array.
|
|
1872
|
-
*/
|
|
1873
|
-
function cloneTypedArray(typedArray, isDeep) {
|
|
1874
|
-
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
1875
|
-
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
1876
|
-
}
|
|
1877
|
-
//#endregion
|
|
1878
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_initCloneByTag.js
|
|
1879
|
-
/** `Object#toString` result references. */
|
|
1880
|
-
var boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag$1 = "[object Symbol]";
|
|
1881
|
-
var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag$1 = "[object Float32Array]", float64Tag$1 = "[object Float64Array]", int8Tag$1 = "[object Int8Array]", int16Tag$1 = "[object Int16Array]", int32Tag$1 = "[object Int32Array]", uint8Tag$1 = "[object Uint8Array]", uint8ClampedTag$1 = "[object Uint8ClampedArray]", uint16Tag$1 = "[object Uint16Array]", uint32Tag$1 = "[object Uint32Array]";
|
|
1882
|
-
/**
|
|
1883
|
-
* Initializes an object clone based on its `toStringTag`.
|
|
1884
|
-
*
|
|
1885
|
-
* **Note:** This function only supports cloning values with tags of
|
|
1886
|
-
* `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
|
|
1887
|
-
*
|
|
1888
|
-
* @private
|
|
1889
|
-
* @param {Object} object The object to clone.
|
|
1890
|
-
* @param {string} tag The `toStringTag` of the object to clone.
|
|
1891
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1892
|
-
* @returns {Object} Returns the initialized clone.
|
|
1893
|
-
*/
|
|
1894
|
-
function initCloneByTag(object, tag, isDeep) {
|
|
1895
|
-
var Ctor = object.constructor;
|
|
1896
|
-
switch (tag) {
|
|
1897
|
-
case arrayBufferTag$1: return cloneArrayBuffer(object);
|
|
1898
|
-
case boolTag$1:
|
|
1899
|
-
case dateTag$1: return new Ctor(+object);
|
|
1900
|
-
case dataViewTag$1: return cloneDataView(object, isDeep);
|
|
1901
|
-
case float32Tag$1:
|
|
1902
|
-
case float64Tag$1:
|
|
1903
|
-
case int8Tag$1:
|
|
1904
|
-
case int16Tag$1:
|
|
1905
|
-
case int32Tag$1:
|
|
1906
|
-
case uint8Tag$1:
|
|
1907
|
-
case uint8ClampedTag$1:
|
|
1908
|
-
case uint16Tag$1:
|
|
1909
|
-
case uint32Tag$1: return cloneTypedArray(object, isDeep);
|
|
1910
|
-
case mapTag$2: return new Ctor();
|
|
1911
|
-
case numberTag$1:
|
|
1912
|
-
case stringTag$1: return new Ctor(object);
|
|
1913
|
-
case regexpTag$1: return cloneRegExp(object);
|
|
1914
|
-
case setTag$2: return new Ctor();
|
|
1915
|
-
case symbolTag$1: return cloneSymbol(object);
|
|
1916
|
-
}
|
|
1917
|
-
}
|
|
1918
|
-
//#endregion
|
|
1919
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_initCloneObject.js
|
|
1920
|
-
/**
|
|
1921
|
-
* Initializes an object clone.
|
|
1922
|
-
*
|
|
1923
|
-
* @private
|
|
1924
|
-
* @param {Object} object The object to clone.
|
|
1925
|
-
* @returns {Object} Returns the initialized clone.
|
|
1926
|
-
*/
|
|
1927
|
-
function initCloneObject(object) {
|
|
1928
|
-
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
1929
|
-
}
|
|
1930
|
-
//#endregion
|
|
1931
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsMap.js
|
|
1932
|
-
/** `Object#toString` result references. */
|
|
1933
|
-
var mapTag$1 = "[object Map]";
|
|
1934
|
-
/**
|
|
1935
|
-
* The base implementation of `_.isMap` without Node.js optimizations.
|
|
1936
|
-
*
|
|
1937
|
-
* @private
|
|
1938
|
-
* @param {*} value The value to check.
|
|
1939
|
-
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
|
|
1940
|
-
*/
|
|
1941
|
-
function baseIsMap(value) {
|
|
1942
|
-
return isObjectLike(value) && _getTag_default(value) == mapTag$1;
|
|
1943
|
-
}
|
|
1944
|
-
//#endregion
|
|
1945
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isMap.js
|
|
1946
|
-
var nodeIsMap = nodeUtil && nodeUtil.isMap;
|
|
1947
|
-
/**
|
|
1948
|
-
* Checks if `value` is classified as a `Map` object.
|
|
1949
|
-
*
|
|
1950
|
-
* @static
|
|
1951
|
-
* @memberOf _
|
|
1952
|
-
* @since 4.3.0
|
|
1953
|
-
* @category Lang
|
|
1954
|
-
* @param {*} value The value to check.
|
|
1955
|
-
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
|
|
1956
|
-
* @example
|
|
1957
|
-
*
|
|
1958
|
-
* _.isMap(new Map);
|
|
1959
|
-
* // => true
|
|
1960
|
-
*
|
|
1961
|
-
* _.isMap(new WeakMap);
|
|
1962
|
-
* // => false
|
|
1963
|
-
*/
|
|
1964
|
-
var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
|
|
1965
|
-
//#endregion
|
|
1966
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsSet.js
|
|
1967
|
-
/** `Object#toString` result references. */
|
|
1968
|
-
var setTag$1 = "[object Set]";
|
|
1969
|
-
/**
|
|
1970
|
-
* The base implementation of `_.isSet` without Node.js optimizations.
|
|
1971
|
-
*
|
|
1972
|
-
* @private
|
|
1973
|
-
* @param {*} value The value to check.
|
|
1974
|
-
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
|
1975
|
-
*/
|
|
1976
|
-
function baseIsSet(value) {
|
|
1977
|
-
return isObjectLike(value) && _getTag_default(value) == setTag$1;
|
|
1978
|
-
}
|
|
1979
|
-
//#endregion
|
|
1980
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isSet.js
|
|
1981
|
-
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
1982
|
-
/**
|
|
1983
|
-
* Checks if `value` is classified as a `Set` object.
|
|
1984
|
-
*
|
|
1985
|
-
* @static
|
|
1986
|
-
* @memberOf _
|
|
1987
|
-
* @since 4.3.0
|
|
1988
|
-
* @category Lang
|
|
1989
|
-
* @param {*} value The value to check.
|
|
1990
|
-
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
|
1991
|
-
* @example
|
|
1992
|
-
*
|
|
1993
|
-
* _.isSet(new Set);
|
|
1994
|
-
* // => true
|
|
1995
|
-
*
|
|
1996
|
-
* _.isSet(new WeakSet);
|
|
1997
|
-
* // => false
|
|
1998
|
-
*/
|
|
1999
|
-
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
2000
|
-
//#endregion
|
|
2001
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseClone.js
|
|
2002
|
-
/** Used to compose bitmasks for cloning. */
|
|
2003
|
-
var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
|
|
2004
|
-
/** `Object#toString` result references. */
|
|
2005
|
-
var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
2006
|
-
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]";
|
|
2007
|
-
/** Used to identify `toStringTag` values supported by `_.clone`. */
|
|
2008
|
-
var cloneableTags = {};
|
|
2009
|
-
cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
2010
|
-
cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
2011
|
-
/**
|
|
2012
|
-
* The base implementation of `_.clone` and `_.cloneDeep` which tracks
|
|
2013
|
-
* traversed objects.
|
|
2014
|
-
*
|
|
2015
|
-
* @private
|
|
2016
|
-
* @param {*} value The value to clone.
|
|
2017
|
-
* @param {boolean} bitmask The bitmask flags.
|
|
2018
|
-
* 1 - Deep clone
|
|
2019
|
-
* 2 - Flatten inherited properties
|
|
2020
|
-
* 4 - Clone symbols
|
|
2021
|
-
* @param {Function} [customizer] The function to customize cloning.
|
|
2022
|
-
* @param {string} [key] The key of `value`.
|
|
2023
|
-
* @param {Object} [object] The parent object of `value`.
|
|
2024
|
-
* @param {Object} [stack] Tracks traversed objects and their clone counterparts.
|
|
2025
|
-
* @returns {*} Returns the cloned value.
|
|
2026
|
-
*/
|
|
2027
|
-
function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
2028
|
-
var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
|
|
2029
|
-
if (customizer) result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
2030
|
-
if (result !== void 0) return result;
|
|
2031
|
-
if (!isObject(value)) return value;
|
|
2032
|
-
var isArr = isArray(value);
|
|
2033
|
-
if (isArr) {
|
|
2034
|
-
result = initCloneArray(value);
|
|
2035
|
-
if (!isDeep) return copyArray(value, result);
|
|
2036
|
-
} else {
|
|
2037
|
-
var tag = _getTag_default(value), isFunc = tag == funcTag || tag == genTag;
|
|
2038
|
-
if (isBuffer(value)) return cloneBuffer(value, isDeep);
|
|
2039
|
-
if (tag == objectTag || tag == argsTag || isFunc && !object) {
|
|
2040
|
-
result = isFlat || isFunc ? {} : initCloneObject(value);
|
|
2041
|
-
if (!isDeep) return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
|
|
2042
|
-
} else {
|
|
2043
|
-
if (!cloneableTags[tag]) return object ? value : {};
|
|
2044
|
-
result = initCloneByTag(value, tag, isDeep);
|
|
2045
|
-
}
|
|
2046
|
-
}
|
|
2047
|
-
stack || (stack = new Stack());
|
|
2048
|
-
var stacked = stack.get(value);
|
|
2049
|
-
if (stacked) return stacked;
|
|
2050
|
-
stack.set(value, result);
|
|
2051
|
-
if (isSet(value)) value.forEach(function(subValue) {
|
|
2052
|
-
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
|
|
2053
|
-
});
|
|
2054
|
-
else if (isMap(value)) value.forEach(function(subValue, key) {
|
|
2055
|
-
result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
|
2056
|
-
});
|
|
2057
|
-
var props = isArr ? void 0 : (isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys)(value);
|
|
2058
|
-
arrayEach(props || value, function(subValue, key) {
|
|
2059
|
-
if (props) {
|
|
2060
|
-
key = subValue;
|
|
2061
|
-
subValue = value[key];
|
|
2062
|
-
}
|
|
2063
|
-
assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
|
2064
|
-
});
|
|
2065
|
-
return result;
|
|
2066
|
-
}
|
|
2067
|
-
//#endregion
|
|
2068
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/cloneDeep.js
|
|
2069
|
-
/** Used to compose bitmasks for cloning. */
|
|
2070
|
-
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
|
2071
|
-
/**
|
|
2072
|
-
* This method is like `_.clone` except that it recursively clones `value`.
|
|
2073
|
-
*
|
|
2074
|
-
* @static
|
|
2075
|
-
* @memberOf _
|
|
2076
|
-
* @since 1.0.0
|
|
2077
|
-
* @category Lang
|
|
2078
|
-
* @param {*} value The value to recursively clone.
|
|
2079
|
-
* @returns {*} Returns the deep cloned value.
|
|
2080
|
-
* @see _.clone
|
|
2081
|
-
* @example
|
|
2082
|
-
*
|
|
2083
|
-
* var objects = [{ 'a': 1 }, { 'b': 2 }];
|
|
2084
|
-
*
|
|
2085
|
-
* var deep = _.cloneDeep(objects);
|
|
2086
|
-
* console.log(deep[0] === objects[0]);
|
|
2087
|
-
* // => false
|
|
2088
|
-
*/
|
|
2089
|
-
function cloneDeep(value) {
|
|
2090
|
-
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
2091
|
-
}
|
|
2092
|
-
//#endregion
|
|
2093
113
|
//#region src/components/TopToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
2094
114
|
var _hoisted_1 = { class: "d-flex align-center justify-center" };
|
|
2095
115
|
//#endregion
|
|
@@ -2099,36 +119,56 @@ var TopToolbar_default = /* @__PURE__ */ defineComponent({
|
|
|
2099
119
|
props: { element: {} },
|
|
2100
120
|
emits: ["save"],
|
|
2101
121
|
setup(__props, { emit: __emit }) {
|
|
122
|
+
const EXTENSIONS = [
|
|
123
|
+
".jpg",
|
|
124
|
+
".jpeg",
|
|
125
|
+
".png",
|
|
126
|
+
".gif",
|
|
127
|
+
".webp",
|
|
128
|
+
".avif"
|
|
129
|
+
];
|
|
2102
130
|
const props = __props;
|
|
2103
131
|
const emit = __emit;
|
|
2104
|
-
const
|
|
132
|
+
const onUpload = ({ url, publicUrl }) => {
|
|
2105
133
|
const assets = { url };
|
|
2106
|
-
emit("save",
|
|
134
|
+
emit("save", {
|
|
135
|
+
...props.element.data,
|
|
2107
136
|
url: publicUrl,
|
|
2108
137
|
assets
|
|
2109
|
-
})
|
|
138
|
+
});
|
|
139
|
+
};
|
|
140
|
+
const onInput = (payload) => {
|
|
141
|
+
if (!payload) return;
|
|
142
|
+
emit("save", {
|
|
143
|
+
...props.element.data,
|
|
144
|
+
url: payload.publicUrl
|
|
145
|
+
});
|
|
146
|
+
};
|
|
147
|
+
const onDelete = () => {
|
|
148
|
+
emit("save", {
|
|
149
|
+
...props.element.data,
|
|
150
|
+
url: null,
|
|
151
|
+
assets: {}
|
|
152
|
+
});
|
|
2110
153
|
};
|
|
2111
154
|
return (_ctx, _cache) => {
|
|
2112
|
-
const
|
|
2113
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(
|
|
2114
|
-
extensions:
|
|
2115
|
-
|
|
2116
|
-
".jpg",
|
|
2117
|
-
".jpeg"
|
|
2118
|
-
],
|
|
2119
|
-
"public-url": __props.element.data.url,
|
|
2120
|
-
url: __props.element.data.assets?.url,
|
|
155
|
+
const _component_TailorFileInput = resolveComponent("TailorFileInput");
|
|
156
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_TailorFileInput, {
|
|
157
|
+
"allowed-extensions": EXTENSIONS,
|
|
158
|
+
"file-key": __props.element.data.assets?.url,
|
|
2121
159
|
class: "mx-auto",
|
|
2122
|
-
"
|
|
2123
|
-
|
|
2124
|
-
|
|
160
|
+
"allow-url-source": "",
|
|
161
|
+
onDelete,
|
|
162
|
+
onInput,
|
|
163
|
+
onUpload
|
|
164
|
+
}, null, 8, ["file-key"])]);
|
|
2125
165
|
};
|
|
2126
166
|
}
|
|
2127
167
|
});
|
|
2128
168
|
//#endregion
|
|
2129
169
|
//#region src/index.ts
|
|
2130
170
|
var manifest = {
|
|
2131
|
-
...
|
|
171
|
+
...manifest$1,
|
|
2132
172
|
Edit: Edit_default,
|
|
2133
173
|
SideToolbar: SideToolbar_default,
|
|
2134
174
|
TopToolbar: TopToolbar_default
|