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