@napi-rs/cli 3.0.0-alpha.57 → 3.0.0-alpha.59
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/api/build.js +1 -1
- package/dist/api/build.js.map +1 -1
- package/dist/api/templates/load-wasi-template.js +1 -1
- package/dist/api/templates/load-wasi-template.js.map +1 -1
- package/dist/commands/new.js +6 -2
- package/dist/commands/new.js.map +1 -1
- package/dist/index.cjs +2392 -18
- package/package.json +4 -4
- package/src/api/build.ts +1 -1
- package/src/api/templates/load-wasi-template.ts +1 -1
- package/src/commands/new.ts +6 -2
package/dist/index.cjs
CHANGED
|
@@ -117,8 +117,8 @@ async function fileExists(path2) {
|
|
|
117
117
|
const exists = await statAsync(path2).then(() => true).catch(() => false);
|
|
118
118
|
return exists;
|
|
119
119
|
}
|
|
120
|
-
function pick(o, ...
|
|
121
|
-
return
|
|
120
|
+
function pick(o, ...keys2) {
|
|
121
|
+
return keys2.reduce((acc, key) => {
|
|
122
122
|
acc[key] = o[key];
|
|
123
123
|
return acc;
|
|
124
124
|
}, {});
|
|
@@ -328,7 +328,2371 @@ function parseMetadata(manifestPath) {
|
|
|
328
328
|
|
|
329
329
|
// dist/utils/config.js
|
|
330
330
|
var import_colorette = require("colorette");
|
|
331
|
-
|
|
331
|
+
|
|
332
|
+
// ../node_modules/lodash-es/_freeGlobal.js
|
|
333
|
+
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
334
|
+
var freeGlobal_default = freeGlobal;
|
|
335
|
+
|
|
336
|
+
// ../node_modules/lodash-es/_root.js
|
|
337
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
338
|
+
var root = freeGlobal_default || freeSelf || Function("return this")();
|
|
339
|
+
var root_default = root;
|
|
340
|
+
|
|
341
|
+
// ../node_modules/lodash-es/_Symbol.js
|
|
342
|
+
var Symbol2 = root_default.Symbol;
|
|
343
|
+
var Symbol_default = Symbol2;
|
|
344
|
+
|
|
345
|
+
// ../node_modules/lodash-es/_getRawTag.js
|
|
346
|
+
var objectProto = Object.prototype;
|
|
347
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
348
|
+
var nativeObjectToString = objectProto.toString;
|
|
349
|
+
var symToStringTag = Symbol_default ? Symbol_default.toStringTag : void 0;
|
|
350
|
+
function getRawTag(value) {
|
|
351
|
+
var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
|
|
352
|
+
try {
|
|
353
|
+
value[symToStringTag] = void 0;
|
|
354
|
+
var unmasked = true;
|
|
355
|
+
} catch (e) {
|
|
356
|
+
}
|
|
357
|
+
var result = nativeObjectToString.call(value);
|
|
358
|
+
if (unmasked) {
|
|
359
|
+
if (isOwn) {
|
|
360
|
+
value[symToStringTag] = tag;
|
|
361
|
+
} else {
|
|
362
|
+
delete value[symToStringTag];
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
return result;
|
|
366
|
+
}
|
|
367
|
+
var getRawTag_default = getRawTag;
|
|
368
|
+
|
|
369
|
+
// ../node_modules/lodash-es/_objectToString.js
|
|
370
|
+
var objectProto2 = Object.prototype;
|
|
371
|
+
var nativeObjectToString2 = objectProto2.toString;
|
|
372
|
+
function objectToString(value) {
|
|
373
|
+
return nativeObjectToString2.call(value);
|
|
374
|
+
}
|
|
375
|
+
var objectToString_default = objectToString;
|
|
376
|
+
|
|
377
|
+
// ../node_modules/lodash-es/_baseGetTag.js
|
|
378
|
+
var nullTag = "[object Null]";
|
|
379
|
+
var undefinedTag = "[object Undefined]";
|
|
380
|
+
var symToStringTag2 = Symbol_default ? Symbol_default.toStringTag : void 0;
|
|
381
|
+
function baseGetTag(value) {
|
|
382
|
+
if (value == null) {
|
|
383
|
+
return value === void 0 ? undefinedTag : nullTag;
|
|
384
|
+
}
|
|
385
|
+
return symToStringTag2 && symToStringTag2 in Object(value) ? getRawTag_default(value) : objectToString_default(value);
|
|
386
|
+
}
|
|
387
|
+
var baseGetTag_default = baseGetTag;
|
|
388
|
+
|
|
389
|
+
// ../node_modules/lodash-es/isObjectLike.js
|
|
390
|
+
function isObjectLike(value) {
|
|
391
|
+
return value != null && typeof value == "object";
|
|
392
|
+
}
|
|
393
|
+
var isObjectLike_default = isObjectLike;
|
|
394
|
+
|
|
395
|
+
// ../node_modules/lodash-es/isSymbol.js
|
|
396
|
+
var symbolTag = "[object Symbol]";
|
|
397
|
+
function isSymbol(value) {
|
|
398
|
+
return typeof value == "symbol" || isObjectLike_default(value) && baseGetTag_default(value) == symbolTag;
|
|
399
|
+
}
|
|
400
|
+
var isSymbol_default = isSymbol;
|
|
401
|
+
|
|
402
|
+
// ../node_modules/lodash-es/_arrayMap.js
|
|
403
|
+
function arrayMap(array, iteratee) {
|
|
404
|
+
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
405
|
+
while (++index < length) {
|
|
406
|
+
result[index] = iteratee(array[index], index, array);
|
|
407
|
+
}
|
|
408
|
+
return result;
|
|
409
|
+
}
|
|
410
|
+
var arrayMap_default = arrayMap;
|
|
411
|
+
|
|
412
|
+
// ../node_modules/lodash-es/isArray.js
|
|
413
|
+
var isArray = Array.isArray;
|
|
414
|
+
var isArray_default = isArray;
|
|
415
|
+
|
|
416
|
+
// ../node_modules/lodash-es/_baseToString.js
|
|
417
|
+
var INFINITY = 1 / 0;
|
|
418
|
+
var symbolProto = Symbol_default ? Symbol_default.prototype : void 0;
|
|
419
|
+
var symbolToString = symbolProto ? symbolProto.toString : void 0;
|
|
420
|
+
function baseToString(value) {
|
|
421
|
+
if (typeof value == "string") {
|
|
422
|
+
return value;
|
|
423
|
+
}
|
|
424
|
+
if (isArray_default(value)) {
|
|
425
|
+
return arrayMap_default(value, baseToString) + "";
|
|
426
|
+
}
|
|
427
|
+
if (isSymbol_default(value)) {
|
|
428
|
+
return symbolToString ? symbolToString.call(value) : "";
|
|
429
|
+
}
|
|
430
|
+
var result = value + "";
|
|
431
|
+
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
432
|
+
}
|
|
433
|
+
var baseToString_default = baseToString;
|
|
434
|
+
|
|
435
|
+
// ../node_modules/lodash-es/isObject.js
|
|
436
|
+
function isObject(value) {
|
|
437
|
+
var type = typeof value;
|
|
438
|
+
return value != null && (type == "object" || type == "function");
|
|
439
|
+
}
|
|
440
|
+
var isObject_default = isObject;
|
|
441
|
+
|
|
442
|
+
// ../node_modules/lodash-es/identity.js
|
|
443
|
+
function identity(value) {
|
|
444
|
+
return value;
|
|
445
|
+
}
|
|
446
|
+
var identity_default = identity;
|
|
447
|
+
|
|
448
|
+
// ../node_modules/lodash-es/isFunction.js
|
|
449
|
+
var asyncTag = "[object AsyncFunction]";
|
|
450
|
+
var funcTag = "[object Function]";
|
|
451
|
+
var genTag = "[object GeneratorFunction]";
|
|
452
|
+
var proxyTag = "[object Proxy]";
|
|
453
|
+
function isFunction(value) {
|
|
454
|
+
if (!isObject_default(value)) {
|
|
455
|
+
return false;
|
|
456
|
+
}
|
|
457
|
+
var tag = baseGetTag_default(value);
|
|
458
|
+
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
459
|
+
}
|
|
460
|
+
var isFunction_default = isFunction;
|
|
461
|
+
|
|
462
|
+
// ../node_modules/lodash-es/_coreJsData.js
|
|
463
|
+
var coreJsData = root_default["__core-js_shared__"];
|
|
464
|
+
var coreJsData_default = coreJsData;
|
|
465
|
+
|
|
466
|
+
// ../node_modules/lodash-es/_isMasked.js
|
|
467
|
+
var maskSrcKey = function() {
|
|
468
|
+
var uid = /[^.]+$/.exec(coreJsData_default && coreJsData_default.keys && coreJsData_default.keys.IE_PROTO || "");
|
|
469
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
|
470
|
+
}();
|
|
471
|
+
function isMasked(func) {
|
|
472
|
+
return !!maskSrcKey && maskSrcKey in func;
|
|
473
|
+
}
|
|
474
|
+
var isMasked_default = isMasked;
|
|
475
|
+
|
|
476
|
+
// ../node_modules/lodash-es/_toSource.js
|
|
477
|
+
var funcProto = Function.prototype;
|
|
478
|
+
var funcToString = funcProto.toString;
|
|
479
|
+
function toSource(func) {
|
|
480
|
+
if (func != null) {
|
|
481
|
+
try {
|
|
482
|
+
return funcToString.call(func);
|
|
483
|
+
} catch (e) {
|
|
484
|
+
}
|
|
485
|
+
try {
|
|
486
|
+
return func + "";
|
|
487
|
+
} catch (e) {
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
return "";
|
|
491
|
+
}
|
|
492
|
+
var toSource_default = toSource;
|
|
493
|
+
|
|
494
|
+
// ../node_modules/lodash-es/_baseIsNative.js
|
|
495
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
496
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
497
|
+
var funcProto2 = Function.prototype;
|
|
498
|
+
var objectProto3 = Object.prototype;
|
|
499
|
+
var funcToString2 = funcProto2.toString;
|
|
500
|
+
var hasOwnProperty2 = objectProto3.hasOwnProperty;
|
|
501
|
+
var reIsNative = RegExp(
|
|
502
|
+
"^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
503
|
+
);
|
|
504
|
+
function baseIsNative(value) {
|
|
505
|
+
if (!isObject_default(value) || isMasked_default(value)) {
|
|
506
|
+
return false;
|
|
507
|
+
}
|
|
508
|
+
var pattern = isFunction_default(value) ? reIsNative : reIsHostCtor;
|
|
509
|
+
return pattern.test(toSource_default(value));
|
|
510
|
+
}
|
|
511
|
+
var baseIsNative_default = baseIsNative;
|
|
512
|
+
|
|
513
|
+
// ../node_modules/lodash-es/_getValue.js
|
|
514
|
+
function getValue(object, key) {
|
|
515
|
+
return object == null ? void 0 : object[key];
|
|
516
|
+
}
|
|
517
|
+
var getValue_default = getValue;
|
|
518
|
+
|
|
519
|
+
// ../node_modules/lodash-es/_getNative.js
|
|
520
|
+
function getNative(object, key) {
|
|
521
|
+
var value = getValue_default(object, key);
|
|
522
|
+
return baseIsNative_default(value) ? value : void 0;
|
|
523
|
+
}
|
|
524
|
+
var getNative_default = getNative;
|
|
525
|
+
|
|
526
|
+
// ../node_modules/lodash-es/_WeakMap.js
|
|
527
|
+
var WeakMap = getNative_default(root_default, "WeakMap");
|
|
528
|
+
var WeakMap_default = WeakMap;
|
|
529
|
+
|
|
530
|
+
// ../node_modules/lodash-es/_baseCreate.js
|
|
531
|
+
var objectCreate = Object.create;
|
|
532
|
+
var baseCreate = /* @__PURE__ */ function() {
|
|
533
|
+
function object() {
|
|
534
|
+
}
|
|
535
|
+
return function(proto) {
|
|
536
|
+
if (!isObject_default(proto)) {
|
|
537
|
+
return {};
|
|
538
|
+
}
|
|
539
|
+
if (objectCreate) {
|
|
540
|
+
return objectCreate(proto);
|
|
541
|
+
}
|
|
542
|
+
object.prototype = proto;
|
|
543
|
+
var result = new object();
|
|
544
|
+
object.prototype = void 0;
|
|
545
|
+
return result;
|
|
546
|
+
};
|
|
547
|
+
}();
|
|
548
|
+
var baseCreate_default = baseCreate;
|
|
549
|
+
|
|
550
|
+
// ../node_modules/lodash-es/_apply.js
|
|
551
|
+
function apply(func, thisArg, args) {
|
|
552
|
+
switch (args.length) {
|
|
553
|
+
case 0:
|
|
554
|
+
return func.call(thisArg);
|
|
555
|
+
case 1:
|
|
556
|
+
return func.call(thisArg, args[0]);
|
|
557
|
+
case 2:
|
|
558
|
+
return func.call(thisArg, args[0], args[1]);
|
|
559
|
+
case 3:
|
|
560
|
+
return func.call(thisArg, args[0], args[1], args[2]);
|
|
561
|
+
}
|
|
562
|
+
return func.apply(thisArg, args);
|
|
563
|
+
}
|
|
564
|
+
var apply_default = apply;
|
|
565
|
+
|
|
566
|
+
// ../node_modules/lodash-es/_copyArray.js
|
|
567
|
+
function copyArray(source, array) {
|
|
568
|
+
var index = -1, length = source.length;
|
|
569
|
+
array || (array = Array(length));
|
|
570
|
+
while (++index < length) {
|
|
571
|
+
array[index] = source[index];
|
|
572
|
+
}
|
|
573
|
+
return array;
|
|
574
|
+
}
|
|
575
|
+
var copyArray_default = copyArray;
|
|
576
|
+
|
|
577
|
+
// ../node_modules/lodash-es/_shortOut.js
|
|
578
|
+
var HOT_COUNT = 800;
|
|
579
|
+
var HOT_SPAN = 16;
|
|
580
|
+
var nativeNow = Date.now;
|
|
581
|
+
function shortOut(func) {
|
|
582
|
+
var count = 0, lastCalled = 0;
|
|
583
|
+
return function() {
|
|
584
|
+
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
|
585
|
+
lastCalled = stamp;
|
|
586
|
+
if (remaining > 0) {
|
|
587
|
+
if (++count >= HOT_COUNT) {
|
|
588
|
+
return arguments[0];
|
|
589
|
+
}
|
|
590
|
+
} else {
|
|
591
|
+
count = 0;
|
|
592
|
+
}
|
|
593
|
+
return func.apply(void 0, arguments);
|
|
594
|
+
};
|
|
595
|
+
}
|
|
596
|
+
var shortOut_default = shortOut;
|
|
597
|
+
|
|
598
|
+
// ../node_modules/lodash-es/constant.js
|
|
599
|
+
function constant(value) {
|
|
600
|
+
return function() {
|
|
601
|
+
return value;
|
|
602
|
+
};
|
|
603
|
+
}
|
|
604
|
+
var constant_default = constant;
|
|
605
|
+
|
|
606
|
+
// ../node_modules/lodash-es/_defineProperty.js
|
|
607
|
+
var defineProperty = function() {
|
|
608
|
+
try {
|
|
609
|
+
var func = getNative_default(Object, "defineProperty");
|
|
610
|
+
func({}, "", {});
|
|
611
|
+
return func;
|
|
612
|
+
} catch (e) {
|
|
613
|
+
}
|
|
614
|
+
}();
|
|
615
|
+
var defineProperty_default = defineProperty;
|
|
616
|
+
|
|
617
|
+
// ../node_modules/lodash-es/_baseSetToString.js
|
|
618
|
+
var baseSetToString = !defineProperty_default ? identity_default : function(func, string) {
|
|
619
|
+
return defineProperty_default(func, "toString", {
|
|
620
|
+
"configurable": true,
|
|
621
|
+
"enumerable": false,
|
|
622
|
+
"value": constant_default(string),
|
|
623
|
+
"writable": true
|
|
624
|
+
});
|
|
625
|
+
};
|
|
626
|
+
var baseSetToString_default = baseSetToString;
|
|
627
|
+
|
|
628
|
+
// ../node_modules/lodash-es/_setToString.js
|
|
629
|
+
var setToString = shortOut_default(baseSetToString_default);
|
|
630
|
+
var setToString_default = setToString;
|
|
631
|
+
|
|
632
|
+
// ../node_modules/lodash-es/_arrayEach.js
|
|
633
|
+
function arrayEach(array, iteratee) {
|
|
634
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
635
|
+
while (++index < length) {
|
|
636
|
+
if (iteratee(array[index], index, array) === false) {
|
|
637
|
+
break;
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
return array;
|
|
641
|
+
}
|
|
642
|
+
var arrayEach_default = arrayEach;
|
|
643
|
+
|
|
644
|
+
// ../node_modules/lodash-es/_isIndex.js
|
|
645
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
646
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
647
|
+
function isIndex(value, length) {
|
|
648
|
+
var type = typeof value;
|
|
649
|
+
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
650
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
651
|
+
}
|
|
652
|
+
var isIndex_default = isIndex;
|
|
653
|
+
|
|
654
|
+
// ../node_modules/lodash-es/_baseAssignValue.js
|
|
655
|
+
function baseAssignValue(object, key, value) {
|
|
656
|
+
if (key == "__proto__" && defineProperty_default) {
|
|
657
|
+
defineProperty_default(object, key, {
|
|
658
|
+
"configurable": true,
|
|
659
|
+
"enumerable": true,
|
|
660
|
+
"value": value,
|
|
661
|
+
"writable": true
|
|
662
|
+
});
|
|
663
|
+
} else {
|
|
664
|
+
object[key] = value;
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
var baseAssignValue_default = baseAssignValue;
|
|
668
|
+
|
|
669
|
+
// ../node_modules/lodash-es/eq.js
|
|
670
|
+
function eq(value, other) {
|
|
671
|
+
return value === other || value !== value && other !== other;
|
|
672
|
+
}
|
|
673
|
+
var eq_default = eq;
|
|
674
|
+
|
|
675
|
+
// ../node_modules/lodash-es/_assignValue.js
|
|
676
|
+
var objectProto4 = Object.prototype;
|
|
677
|
+
var hasOwnProperty3 = objectProto4.hasOwnProperty;
|
|
678
|
+
function assignValue(object, key, value) {
|
|
679
|
+
var objValue = object[key];
|
|
680
|
+
if (!(hasOwnProperty3.call(object, key) && eq_default(objValue, value)) || value === void 0 && !(key in object)) {
|
|
681
|
+
baseAssignValue_default(object, key, value);
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
var assignValue_default = assignValue;
|
|
685
|
+
|
|
686
|
+
// ../node_modules/lodash-es/_copyObject.js
|
|
687
|
+
function copyObject(source, props, object, customizer) {
|
|
688
|
+
var isNew = !object;
|
|
689
|
+
object || (object = {});
|
|
690
|
+
var index = -1, length = props.length;
|
|
691
|
+
while (++index < length) {
|
|
692
|
+
var key = props[index];
|
|
693
|
+
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
694
|
+
if (newValue === void 0) {
|
|
695
|
+
newValue = source[key];
|
|
696
|
+
}
|
|
697
|
+
if (isNew) {
|
|
698
|
+
baseAssignValue_default(object, key, newValue);
|
|
699
|
+
} else {
|
|
700
|
+
assignValue_default(object, key, newValue);
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
return object;
|
|
704
|
+
}
|
|
705
|
+
var copyObject_default = copyObject;
|
|
706
|
+
|
|
707
|
+
// ../node_modules/lodash-es/_overRest.js
|
|
708
|
+
var nativeMax = Math.max;
|
|
709
|
+
function overRest(func, start, transform) {
|
|
710
|
+
start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
|
|
711
|
+
return function() {
|
|
712
|
+
var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
|
|
713
|
+
while (++index < length) {
|
|
714
|
+
array[index] = args[start + index];
|
|
715
|
+
}
|
|
716
|
+
index = -1;
|
|
717
|
+
var otherArgs = Array(start + 1);
|
|
718
|
+
while (++index < start) {
|
|
719
|
+
otherArgs[index] = args[index];
|
|
720
|
+
}
|
|
721
|
+
otherArgs[start] = transform(array);
|
|
722
|
+
return apply_default(func, this, otherArgs);
|
|
723
|
+
};
|
|
724
|
+
}
|
|
725
|
+
var overRest_default = overRest;
|
|
726
|
+
|
|
727
|
+
// ../node_modules/lodash-es/_baseRest.js
|
|
728
|
+
function baseRest(func, start) {
|
|
729
|
+
return setToString_default(overRest_default(func, start, identity_default), func + "");
|
|
730
|
+
}
|
|
731
|
+
var baseRest_default = baseRest;
|
|
732
|
+
|
|
733
|
+
// ../node_modules/lodash-es/isLength.js
|
|
734
|
+
var MAX_SAFE_INTEGER2 = 9007199254740991;
|
|
735
|
+
function isLength(value) {
|
|
736
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER2;
|
|
737
|
+
}
|
|
738
|
+
var isLength_default = isLength;
|
|
739
|
+
|
|
740
|
+
// ../node_modules/lodash-es/isArrayLike.js
|
|
741
|
+
function isArrayLike(value) {
|
|
742
|
+
return value != null && isLength_default(value.length) && !isFunction_default(value);
|
|
743
|
+
}
|
|
744
|
+
var isArrayLike_default = isArrayLike;
|
|
745
|
+
|
|
746
|
+
// ../node_modules/lodash-es/_isIterateeCall.js
|
|
747
|
+
function isIterateeCall(value, index, object) {
|
|
748
|
+
if (!isObject_default(object)) {
|
|
749
|
+
return false;
|
|
750
|
+
}
|
|
751
|
+
var type = typeof index;
|
|
752
|
+
if (type == "number" ? isArrayLike_default(object) && isIndex_default(index, object.length) : type == "string" && index in object) {
|
|
753
|
+
return eq_default(object[index], value);
|
|
754
|
+
}
|
|
755
|
+
return false;
|
|
756
|
+
}
|
|
757
|
+
var isIterateeCall_default = isIterateeCall;
|
|
758
|
+
|
|
759
|
+
// ../node_modules/lodash-es/_createAssigner.js
|
|
760
|
+
function createAssigner(assigner) {
|
|
761
|
+
return baseRest_default(function(object, sources) {
|
|
762
|
+
var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
|
|
763
|
+
customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
|
|
764
|
+
if (guard && isIterateeCall_default(sources[0], sources[1], guard)) {
|
|
765
|
+
customizer = length < 3 ? void 0 : customizer;
|
|
766
|
+
length = 1;
|
|
767
|
+
}
|
|
768
|
+
object = Object(object);
|
|
769
|
+
while (++index < length) {
|
|
770
|
+
var source = sources[index];
|
|
771
|
+
if (source) {
|
|
772
|
+
assigner(object, source, index, customizer);
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
return object;
|
|
776
|
+
});
|
|
777
|
+
}
|
|
778
|
+
var createAssigner_default = createAssigner;
|
|
779
|
+
|
|
780
|
+
// ../node_modules/lodash-es/_isPrototype.js
|
|
781
|
+
var objectProto5 = Object.prototype;
|
|
782
|
+
function isPrototype(value) {
|
|
783
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto5;
|
|
784
|
+
return value === proto;
|
|
785
|
+
}
|
|
786
|
+
var isPrototype_default = isPrototype;
|
|
787
|
+
|
|
788
|
+
// ../node_modules/lodash-es/_baseTimes.js
|
|
789
|
+
function baseTimes(n, iteratee) {
|
|
790
|
+
var index = -1, result = Array(n);
|
|
791
|
+
while (++index < n) {
|
|
792
|
+
result[index] = iteratee(index);
|
|
793
|
+
}
|
|
794
|
+
return result;
|
|
795
|
+
}
|
|
796
|
+
var baseTimes_default = baseTimes;
|
|
797
|
+
|
|
798
|
+
// ../node_modules/lodash-es/_baseIsArguments.js
|
|
799
|
+
var argsTag = "[object Arguments]";
|
|
800
|
+
function baseIsArguments(value) {
|
|
801
|
+
return isObjectLike_default(value) && baseGetTag_default(value) == argsTag;
|
|
802
|
+
}
|
|
803
|
+
var baseIsArguments_default = baseIsArguments;
|
|
804
|
+
|
|
805
|
+
// ../node_modules/lodash-es/isArguments.js
|
|
806
|
+
var objectProto6 = Object.prototype;
|
|
807
|
+
var hasOwnProperty4 = objectProto6.hasOwnProperty;
|
|
808
|
+
var propertyIsEnumerable = objectProto6.propertyIsEnumerable;
|
|
809
|
+
var isArguments = baseIsArguments_default(/* @__PURE__ */ function() {
|
|
810
|
+
return arguments;
|
|
811
|
+
}()) ? baseIsArguments_default : function(value) {
|
|
812
|
+
return isObjectLike_default(value) && hasOwnProperty4.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
813
|
+
};
|
|
814
|
+
var isArguments_default = isArguments;
|
|
815
|
+
|
|
816
|
+
// ../node_modules/lodash-es/stubFalse.js
|
|
817
|
+
function stubFalse() {
|
|
818
|
+
return false;
|
|
819
|
+
}
|
|
820
|
+
var stubFalse_default = stubFalse;
|
|
821
|
+
|
|
822
|
+
// ../node_modules/lodash-es/isBuffer.js
|
|
823
|
+
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
824
|
+
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
825
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
826
|
+
var Buffer2 = moduleExports ? root_default.Buffer : void 0;
|
|
827
|
+
var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0;
|
|
828
|
+
var isBuffer = nativeIsBuffer || stubFalse_default;
|
|
829
|
+
var isBuffer_default = isBuffer;
|
|
830
|
+
|
|
831
|
+
// ../node_modules/lodash-es/_baseIsTypedArray.js
|
|
832
|
+
var argsTag2 = "[object Arguments]";
|
|
833
|
+
var arrayTag = "[object Array]";
|
|
834
|
+
var boolTag = "[object Boolean]";
|
|
835
|
+
var dateTag = "[object Date]";
|
|
836
|
+
var errorTag = "[object Error]";
|
|
837
|
+
var funcTag2 = "[object Function]";
|
|
838
|
+
var mapTag = "[object Map]";
|
|
839
|
+
var numberTag = "[object Number]";
|
|
840
|
+
var objectTag = "[object Object]";
|
|
841
|
+
var regexpTag = "[object RegExp]";
|
|
842
|
+
var setTag = "[object Set]";
|
|
843
|
+
var stringTag = "[object String]";
|
|
844
|
+
var weakMapTag = "[object WeakMap]";
|
|
845
|
+
var arrayBufferTag = "[object ArrayBuffer]";
|
|
846
|
+
var dataViewTag = "[object DataView]";
|
|
847
|
+
var float32Tag = "[object Float32Array]";
|
|
848
|
+
var float64Tag = "[object Float64Array]";
|
|
849
|
+
var int8Tag = "[object Int8Array]";
|
|
850
|
+
var int16Tag = "[object Int16Array]";
|
|
851
|
+
var int32Tag = "[object Int32Array]";
|
|
852
|
+
var uint8Tag = "[object Uint8Array]";
|
|
853
|
+
var uint8ClampedTag = "[object Uint8ClampedArray]";
|
|
854
|
+
var uint16Tag = "[object Uint16Array]";
|
|
855
|
+
var uint32Tag = "[object Uint32Array]";
|
|
856
|
+
var typedArrayTags = {};
|
|
857
|
+
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
|
|
858
|
+
typedArrayTags[argsTag2] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag2] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
|
|
859
|
+
function baseIsTypedArray(value) {
|
|
860
|
+
return isObjectLike_default(value) && isLength_default(value.length) && !!typedArrayTags[baseGetTag_default(value)];
|
|
861
|
+
}
|
|
862
|
+
var baseIsTypedArray_default = baseIsTypedArray;
|
|
863
|
+
|
|
864
|
+
// ../node_modules/lodash-es/_baseUnary.js
|
|
865
|
+
function baseUnary(func) {
|
|
866
|
+
return function(value) {
|
|
867
|
+
return func(value);
|
|
868
|
+
};
|
|
869
|
+
}
|
|
870
|
+
var baseUnary_default = baseUnary;
|
|
871
|
+
|
|
872
|
+
// ../node_modules/lodash-es/_nodeUtil.js
|
|
873
|
+
var freeExports2 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
874
|
+
var freeModule2 = freeExports2 && typeof module == "object" && module && !module.nodeType && module;
|
|
875
|
+
var moduleExports2 = freeModule2 && freeModule2.exports === freeExports2;
|
|
876
|
+
var freeProcess = moduleExports2 && freeGlobal_default.process;
|
|
877
|
+
var nodeUtil = function() {
|
|
878
|
+
try {
|
|
879
|
+
var types = freeModule2 && freeModule2.require && freeModule2.require("util").types;
|
|
880
|
+
if (types) {
|
|
881
|
+
return types;
|
|
882
|
+
}
|
|
883
|
+
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
884
|
+
} catch (e) {
|
|
885
|
+
}
|
|
886
|
+
}();
|
|
887
|
+
var nodeUtil_default = nodeUtil;
|
|
888
|
+
|
|
889
|
+
// ../node_modules/lodash-es/isTypedArray.js
|
|
890
|
+
var nodeIsTypedArray = nodeUtil_default && nodeUtil_default.isTypedArray;
|
|
891
|
+
var isTypedArray = nodeIsTypedArray ? baseUnary_default(nodeIsTypedArray) : baseIsTypedArray_default;
|
|
892
|
+
var isTypedArray_default = isTypedArray;
|
|
893
|
+
|
|
894
|
+
// ../node_modules/lodash-es/_arrayLikeKeys.js
|
|
895
|
+
var objectProto7 = Object.prototype;
|
|
896
|
+
var hasOwnProperty5 = objectProto7.hasOwnProperty;
|
|
897
|
+
function arrayLikeKeys(value, inherited) {
|
|
898
|
+
var isArr = isArray_default(value), isArg = !isArr && isArguments_default(value), isBuff = !isArr && !isArg && isBuffer_default(value), isType = !isArr && !isArg && !isBuff && isTypedArray_default(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes_default(value.length, String) : [], length = result.length;
|
|
899
|
+
for (var key in value) {
|
|
900
|
+
if ((inherited || hasOwnProperty5.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
901
|
+
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
902
|
+
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
903
|
+
isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
904
|
+
isIndex_default(key, length)))) {
|
|
905
|
+
result.push(key);
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
return result;
|
|
909
|
+
}
|
|
910
|
+
var arrayLikeKeys_default = arrayLikeKeys;
|
|
911
|
+
|
|
912
|
+
// ../node_modules/lodash-es/_overArg.js
|
|
913
|
+
function overArg(func, transform) {
|
|
914
|
+
return function(arg) {
|
|
915
|
+
return func(transform(arg));
|
|
916
|
+
};
|
|
917
|
+
}
|
|
918
|
+
var overArg_default = overArg;
|
|
919
|
+
|
|
920
|
+
// ../node_modules/lodash-es/_nativeKeys.js
|
|
921
|
+
var nativeKeys = overArg_default(Object.keys, Object);
|
|
922
|
+
var nativeKeys_default = nativeKeys;
|
|
923
|
+
|
|
924
|
+
// ../node_modules/lodash-es/_baseKeys.js
|
|
925
|
+
var objectProto8 = Object.prototype;
|
|
926
|
+
var hasOwnProperty6 = objectProto8.hasOwnProperty;
|
|
927
|
+
function baseKeys(object) {
|
|
928
|
+
if (!isPrototype_default(object)) {
|
|
929
|
+
return nativeKeys_default(object);
|
|
930
|
+
}
|
|
931
|
+
var result = [];
|
|
932
|
+
for (var key in Object(object)) {
|
|
933
|
+
if (hasOwnProperty6.call(object, key) && key != "constructor") {
|
|
934
|
+
result.push(key);
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
return result;
|
|
938
|
+
}
|
|
939
|
+
var baseKeys_default = baseKeys;
|
|
940
|
+
|
|
941
|
+
// ../node_modules/lodash-es/keys.js
|
|
942
|
+
function keys(object) {
|
|
943
|
+
return isArrayLike_default(object) ? arrayLikeKeys_default(object) : baseKeys_default(object);
|
|
944
|
+
}
|
|
945
|
+
var keys_default = keys;
|
|
946
|
+
|
|
947
|
+
// ../node_modules/lodash-es/_nativeKeysIn.js
|
|
948
|
+
function nativeKeysIn(object) {
|
|
949
|
+
var result = [];
|
|
950
|
+
if (object != null) {
|
|
951
|
+
for (var key in Object(object)) {
|
|
952
|
+
result.push(key);
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
return result;
|
|
956
|
+
}
|
|
957
|
+
var nativeKeysIn_default = nativeKeysIn;
|
|
958
|
+
|
|
959
|
+
// ../node_modules/lodash-es/_baseKeysIn.js
|
|
960
|
+
var objectProto9 = Object.prototype;
|
|
961
|
+
var hasOwnProperty7 = objectProto9.hasOwnProperty;
|
|
962
|
+
function baseKeysIn(object) {
|
|
963
|
+
if (!isObject_default(object)) {
|
|
964
|
+
return nativeKeysIn_default(object);
|
|
965
|
+
}
|
|
966
|
+
var isProto = isPrototype_default(object), result = [];
|
|
967
|
+
for (var key in object) {
|
|
968
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty7.call(object, key)))) {
|
|
969
|
+
result.push(key);
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
return result;
|
|
973
|
+
}
|
|
974
|
+
var baseKeysIn_default = baseKeysIn;
|
|
975
|
+
|
|
976
|
+
// ../node_modules/lodash-es/keysIn.js
|
|
977
|
+
function keysIn(object) {
|
|
978
|
+
return isArrayLike_default(object) ? arrayLikeKeys_default(object, true) : baseKeysIn_default(object);
|
|
979
|
+
}
|
|
980
|
+
var keysIn_default = keysIn;
|
|
981
|
+
|
|
982
|
+
// ../node_modules/lodash-es/_isKey.js
|
|
983
|
+
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
|
|
984
|
+
var reIsPlainProp = /^\w*$/;
|
|
985
|
+
function isKey(value, object) {
|
|
986
|
+
if (isArray_default(value)) {
|
|
987
|
+
return false;
|
|
988
|
+
}
|
|
989
|
+
var type = typeof value;
|
|
990
|
+
if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol_default(value)) {
|
|
991
|
+
return true;
|
|
992
|
+
}
|
|
993
|
+
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
994
|
+
}
|
|
995
|
+
var isKey_default = isKey;
|
|
996
|
+
|
|
997
|
+
// ../node_modules/lodash-es/_nativeCreate.js
|
|
998
|
+
var nativeCreate = getNative_default(Object, "create");
|
|
999
|
+
var nativeCreate_default = nativeCreate;
|
|
1000
|
+
|
|
1001
|
+
// ../node_modules/lodash-es/_hashClear.js
|
|
1002
|
+
function hashClear() {
|
|
1003
|
+
this.__data__ = nativeCreate_default ? nativeCreate_default(null) : {};
|
|
1004
|
+
this.size = 0;
|
|
1005
|
+
}
|
|
1006
|
+
var hashClear_default = hashClear;
|
|
1007
|
+
|
|
1008
|
+
// ../node_modules/lodash-es/_hashDelete.js
|
|
1009
|
+
function hashDelete(key) {
|
|
1010
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
1011
|
+
this.size -= result ? 1 : 0;
|
|
1012
|
+
return result;
|
|
1013
|
+
}
|
|
1014
|
+
var hashDelete_default = hashDelete;
|
|
1015
|
+
|
|
1016
|
+
// ../node_modules/lodash-es/_hashGet.js
|
|
1017
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
1018
|
+
var objectProto10 = Object.prototype;
|
|
1019
|
+
var hasOwnProperty8 = objectProto10.hasOwnProperty;
|
|
1020
|
+
function hashGet(key) {
|
|
1021
|
+
var data = this.__data__;
|
|
1022
|
+
if (nativeCreate_default) {
|
|
1023
|
+
var result = data[key];
|
|
1024
|
+
return result === HASH_UNDEFINED ? void 0 : result;
|
|
1025
|
+
}
|
|
1026
|
+
return hasOwnProperty8.call(data, key) ? data[key] : void 0;
|
|
1027
|
+
}
|
|
1028
|
+
var hashGet_default = hashGet;
|
|
1029
|
+
|
|
1030
|
+
// ../node_modules/lodash-es/_hashHas.js
|
|
1031
|
+
var objectProto11 = Object.prototype;
|
|
1032
|
+
var hasOwnProperty9 = objectProto11.hasOwnProperty;
|
|
1033
|
+
function hashHas(key) {
|
|
1034
|
+
var data = this.__data__;
|
|
1035
|
+
return nativeCreate_default ? data[key] !== void 0 : hasOwnProperty9.call(data, key);
|
|
1036
|
+
}
|
|
1037
|
+
var hashHas_default = hashHas;
|
|
1038
|
+
|
|
1039
|
+
// ../node_modules/lodash-es/_hashSet.js
|
|
1040
|
+
var HASH_UNDEFINED2 = "__lodash_hash_undefined__";
|
|
1041
|
+
function hashSet(key, value) {
|
|
1042
|
+
var data = this.__data__;
|
|
1043
|
+
this.size += this.has(key) ? 0 : 1;
|
|
1044
|
+
data[key] = nativeCreate_default && value === void 0 ? HASH_UNDEFINED2 : value;
|
|
1045
|
+
return this;
|
|
1046
|
+
}
|
|
1047
|
+
var hashSet_default = hashSet;
|
|
1048
|
+
|
|
1049
|
+
// ../node_modules/lodash-es/_Hash.js
|
|
1050
|
+
function Hash(entries) {
|
|
1051
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1052
|
+
this.clear();
|
|
1053
|
+
while (++index < length) {
|
|
1054
|
+
var entry = entries[index];
|
|
1055
|
+
this.set(entry[0], entry[1]);
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
Hash.prototype.clear = hashClear_default;
|
|
1059
|
+
Hash.prototype["delete"] = hashDelete_default;
|
|
1060
|
+
Hash.prototype.get = hashGet_default;
|
|
1061
|
+
Hash.prototype.has = hashHas_default;
|
|
1062
|
+
Hash.prototype.set = hashSet_default;
|
|
1063
|
+
var Hash_default = Hash;
|
|
1064
|
+
|
|
1065
|
+
// ../node_modules/lodash-es/_listCacheClear.js
|
|
1066
|
+
function listCacheClear() {
|
|
1067
|
+
this.__data__ = [];
|
|
1068
|
+
this.size = 0;
|
|
1069
|
+
}
|
|
1070
|
+
var listCacheClear_default = listCacheClear;
|
|
1071
|
+
|
|
1072
|
+
// ../node_modules/lodash-es/_assocIndexOf.js
|
|
1073
|
+
function assocIndexOf(array, key) {
|
|
1074
|
+
var length = array.length;
|
|
1075
|
+
while (length--) {
|
|
1076
|
+
if (eq_default(array[length][0], key)) {
|
|
1077
|
+
return length;
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
return -1;
|
|
1081
|
+
}
|
|
1082
|
+
var assocIndexOf_default = assocIndexOf;
|
|
1083
|
+
|
|
1084
|
+
// ../node_modules/lodash-es/_listCacheDelete.js
|
|
1085
|
+
var arrayProto = Array.prototype;
|
|
1086
|
+
var splice = arrayProto.splice;
|
|
1087
|
+
function listCacheDelete(key) {
|
|
1088
|
+
var data = this.__data__, index = assocIndexOf_default(data, key);
|
|
1089
|
+
if (index < 0) {
|
|
1090
|
+
return false;
|
|
1091
|
+
}
|
|
1092
|
+
var lastIndex = data.length - 1;
|
|
1093
|
+
if (index == lastIndex) {
|
|
1094
|
+
data.pop();
|
|
1095
|
+
} else {
|
|
1096
|
+
splice.call(data, index, 1);
|
|
1097
|
+
}
|
|
1098
|
+
--this.size;
|
|
1099
|
+
return true;
|
|
1100
|
+
}
|
|
1101
|
+
var listCacheDelete_default = listCacheDelete;
|
|
1102
|
+
|
|
1103
|
+
// ../node_modules/lodash-es/_listCacheGet.js
|
|
1104
|
+
function listCacheGet(key) {
|
|
1105
|
+
var data = this.__data__, index = assocIndexOf_default(data, key);
|
|
1106
|
+
return index < 0 ? void 0 : data[index][1];
|
|
1107
|
+
}
|
|
1108
|
+
var listCacheGet_default = listCacheGet;
|
|
1109
|
+
|
|
1110
|
+
// ../node_modules/lodash-es/_listCacheHas.js
|
|
1111
|
+
function listCacheHas(key) {
|
|
1112
|
+
return assocIndexOf_default(this.__data__, key) > -1;
|
|
1113
|
+
}
|
|
1114
|
+
var listCacheHas_default = listCacheHas;
|
|
1115
|
+
|
|
1116
|
+
// ../node_modules/lodash-es/_listCacheSet.js
|
|
1117
|
+
function listCacheSet(key, value) {
|
|
1118
|
+
var data = this.__data__, index = assocIndexOf_default(data, key);
|
|
1119
|
+
if (index < 0) {
|
|
1120
|
+
++this.size;
|
|
1121
|
+
data.push([key, value]);
|
|
1122
|
+
} else {
|
|
1123
|
+
data[index][1] = value;
|
|
1124
|
+
}
|
|
1125
|
+
return this;
|
|
1126
|
+
}
|
|
1127
|
+
var listCacheSet_default = listCacheSet;
|
|
1128
|
+
|
|
1129
|
+
// ../node_modules/lodash-es/_ListCache.js
|
|
1130
|
+
function ListCache(entries) {
|
|
1131
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1132
|
+
this.clear();
|
|
1133
|
+
while (++index < length) {
|
|
1134
|
+
var entry = entries[index];
|
|
1135
|
+
this.set(entry[0], entry[1]);
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
ListCache.prototype.clear = listCacheClear_default;
|
|
1139
|
+
ListCache.prototype["delete"] = listCacheDelete_default;
|
|
1140
|
+
ListCache.prototype.get = listCacheGet_default;
|
|
1141
|
+
ListCache.prototype.has = listCacheHas_default;
|
|
1142
|
+
ListCache.prototype.set = listCacheSet_default;
|
|
1143
|
+
var ListCache_default = ListCache;
|
|
1144
|
+
|
|
1145
|
+
// ../node_modules/lodash-es/_Map.js
|
|
1146
|
+
var Map2 = getNative_default(root_default, "Map");
|
|
1147
|
+
var Map_default = Map2;
|
|
1148
|
+
|
|
1149
|
+
// ../node_modules/lodash-es/_mapCacheClear.js
|
|
1150
|
+
function mapCacheClear() {
|
|
1151
|
+
this.size = 0;
|
|
1152
|
+
this.__data__ = {
|
|
1153
|
+
"hash": new Hash_default(),
|
|
1154
|
+
"map": new (Map_default || ListCache_default)(),
|
|
1155
|
+
"string": new Hash_default()
|
|
1156
|
+
};
|
|
1157
|
+
}
|
|
1158
|
+
var mapCacheClear_default = mapCacheClear;
|
|
1159
|
+
|
|
1160
|
+
// ../node_modules/lodash-es/_isKeyable.js
|
|
1161
|
+
function isKeyable(value) {
|
|
1162
|
+
var type = typeof value;
|
|
1163
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
1164
|
+
}
|
|
1165
|
+
var isKeyable_default = isKeyable;
|
|
1166
|
+
|
|
1167
|
+
// ../node_modules/lodash-es/_getMapData.js
|
|
1168
|
+
function getMapData(map, key) {
|
|
1169
|
+
var data = map.__data__;
|
|
1170
|
+
return isKeyable_default(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
1171
|
+
}
|
|
1172
|
+
var getMapData_default = getMapData;
|
|
1173
|
+
|
|
1174
|
+
// ../node_modules/lodash-es/_mapCacheDelete.js
|
|
1175
|
+
function mapCacheDelete(key) {
|
|
1176
|
+
var result = getMapData_default(this, key)["delete"](key);
|
|
1177
|
+
this.size -= result ? 1 : 0;
|
|
1178
|
+
return result;
|
|
1179
|
+
}
|
|
1180
|
+
var mapCacheDelete_default = mapCacheDelete;
|
|
1181
|
+
|
|
1182
|
+
// ../node_modules/lodash-es/_mapCacheGet.js
|
|
1183
|
+
function mapCacheGet(key) {
|
|
1184
|
+
return getMapData_default(this, key).get(key);
|
|
1185
|
+
}
|
|
1186
|
+
var mapCacheGet_default = mapCacheGet;
|
|
1187
|
+
|
|
1188
|
+
// ../node_modules/lodash-es/_mapCacheHas.js
|
|
1189
|
+
function mapCacheHas(key) {
|
|
1190
|
+
return getMapData_default(this, key).has(key);
|
|
1191
|
+
}
|
|
1192
|
+
var mapCacheHas_default = mapCacheHas;
|
|
1193
|
+
|
|
1194
|
+
// ../node_modules/lodash-es/_mapCacheSet.js
|
|
1195
|
+
function mapCacheSet(key, value) {
|
|
1196
|
+
var data = getMapData_default(this, key), size = data.size;
|
|
1197
|
+
data.set(key, value);
|
|
1198
|
+
this.size += data.size == size ? 0 : 1;
|
|
1199
|
+
return this;
|
|
1200
|
+
}
|
|
1201
|
+
var mapCacheSet_default = mapCacheSet;
|
|
1202
|
+
|
|
1203
|
+
// ../node_modules/lodash-es/_MapCache.js
|
|
1204
|
+
function MapCache(entries) {
|
|
1205
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1206
|
+
this.clear();
|
|
1207
|
+
while (++index < length) {
|
|
1208
|
+
var entry = entries[index];
|
|
1209
|
+
this.set(entry[0], entry[1]);
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
MapCache.prototype.clear = mapCacheClear_default;
|
|
1213
|
+
MapCache.prototype["delete"] = mapCacheDelete_default;
|
|
1214
|
+
MapCache.prototype.get = mapCacheGet_default;
|
|
1215
|
+
MapCache.prototype.has = mapCacheHas_default;
|
|
1216
|
+
MapCache.prototype.set = mapCacheSet_default;
|
|
1217
|
+
var MapCache_default = MapCache;
|
|
1218
|
+
|
|
1219
|
+
// ../node_modules/lodash-es/memoize.js
|
|
1220
|
+
var FUNC_ERROR_TEXT = "Expected a function";
|
|
1221
|
+
function memoize(func, resolver) {
|
|
1222
|
+
if (typeof func != "function" || resolver != null && typeof resolver != "function") {
|
|
1223
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
1224
|
+
}
|
|
1225
|
+
var memoized = function() {
|
|
1226
|
+
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
|
1227
|
+
if (cache.has(key)) {
|
|
1228
|
+
return cache.get(key);
|
|
1229
|
+
}
|
|
1230
|
+
var result = func.apply(this, args);
|
|
1231
|
+
memoized.cache = cache.set(key, result) || cache;
|
|
1232
|
+
return result;
|
|
1233
|
+
};
|
|
1234
|
+
memoized.cache = new (memoize.Cache || MapCache_default)();
|
|
1235
|
+
return memoized;
|
|
1236
|
+
}
|
|
1237
|
+
memoize.Cache = MapCache_default;
|
|
1238
|
+
var memoize_default = memoize;
|
|
1239
|
+
|
|
1240
|
+
// ../node_modules/lodash-es/_memoizeCapped.js
|
|
1241
|
+
var MAX_MEMOIZE_SIZE = 500;
|
|
1242
|
+
function memoizeCapped(func) {
|
|
1243
|
+
var result = memoize_default(func, function(key) {
|
|
1244
|
+
if (cache.size === MAX_MEMOIZE_SIZE) {
|
|
1245
|
+
cache.clear();
|
|
1246
|
+
}
|
|
1247
|
+
return key;
|
|
1248
|
+
});
|
|
1249
|
+
var cache = result.cache;
|
|
1250
|
+
return result;
|
|
1251
|
+
}
|
|
1252
|
+
var memoizeCapped_default = memoizeCapped;
|
|
1253
|
+
|
|
1254
|
+
// ../node_modules/lodash-es/_stringToPath.js
|
|
1255
|
+
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
1256
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
1257
|
+
var stringToPath = memoizeCapped_default(function(string) {
|
|
1258
|
+
var result = [];
|
|
1259
|
+
if (string.charCodeAt(0) === 46) {
|
|
1260
|
+
result.push("");
|
|
1261
|
+
}
|
|
1262
|
+
string.replace(rePropName, function(match, number, quote, subString) {
|
|
1263
|
+
result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
|
|
1264
|
+
});
|
|
1265
|
+
return result;
|
|
1266
|
+
});
|
|
1267
|
+
var stringToPath_default = stringToPath;
|
|
1268
|
+
|
|
1269
|
+
// ../node_modules/lodash-es/toString.js
|
|
1270
|
+
function toString(value) {
|
|
1271
|
+
return value == null ? "" : baseToString_default(value);
|
|
1272
|
+
}
|
|
1273
|
+
var toString_default = toString;
|
|
1274
|
+
|
|
1275
|
+
// ../node_modules/lodash-es/_castPath.js
|
|
1276
|
+
function castPath(value, object) {
|
|
1277
|
+
if (isArray_default(value)) {
|
|
1278
|
+
return value;
|
|
1279
|
+
}
|
|
1280
|
+
return isKey_default(value, object) ? [value] : stringToPath_default(toString_default(value));
|
|
1281
|
+
}
|
|
1282
|
+
var castPath_default = castPath;
|
|
1283
|
+
|
|
1284
|
+
// ../node_modules/lodash-es/_toKey.js
|
|
1285
|
+
var INFINITY2 = 1 / 0;
|
|
1286
|
+
function toKey(value) {
|
|
1287
|
+
if (typeof value == "string" || isSymbol_default(value)) {
|
|
1288
|
+
return value;
|
|
1289
|
+
}
|
|
1290
|
+
var result = value + "";
|
|
1291
|
+
return result == "0" && 1 / value == -INFINITY2 ? "-0" : result;
|
|
1292
|
+
}
|
|
1293
|
+
var toKey_default = toKey;
|
|
1294
|
+
|
|
1295
|
+
// ../node_modules/lodash-es/_baseGet.js
|
|
1296
|
+
function baseGet(object, path2) {
|
|
1297
|
+
path2 = castPath_default(path2, object);
|
|
1298
|
+
var index = 0, length = path2.length;
|
|
1299
|
+
while (object != null && index < length) {
|
|
1300
|
+
object = object[toKey_default(path2[index++])];
|
|
1301
|
+
}
|
|
1302
|
+
return index && index == length ? object : void 0;
|
|
1303
|
+
}
|
|
1304
|
+
var baseGet_default = baseGet;
|
|
1305
|
+
|
|
1306
|
+
// ../node_modules/lodash-es/get.js
|
|
1307
|
+
function get(object, path2, defaultValue) {
|
|
1308
|
+
var result = object == null ? void 0 : baseGet_default(object, path2);
|
|
1309
|
+
return result === void 0 ? defaultValue : result;
|
|
1310
|
+
}
|
|
1311
|
+
var get_default = get;
|
|
1312
|
+
|
|
1313
|
+
// ../node_modules/lodash-es/_arrayPush.js
|
|
1314
|
+
function arrayPush(array, values) {
|
|
1315
|
+
var index = -1, length = values.length, offset = array.length;
|
|
1316
|
+
while (++index < length) {
|
|
1317
|
+
array[offset + index] = values[index];
|
|
1318
|
+
}
|
|
1319
|
+
return array;
|
|
1320
|
+
}
|
|
1321
|
+
var arrayPush_default = arrayPush;
|
|
1322
|
+
|
|
1323
|
+
// ../node_modules/lodash-es/_isFlattenable.js
|
|
1324
|
+
var spreadableSymbol = Symbol_default ? Symbol_default.isConcatSpreadable : void 0;
|
|
1325
|
+
function isFlattenable(value) {
|
|
1326
|
+
return isArray_default(value) || isArguments_default(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
1327
|
+
}
|
|
1328
|
+
var isFlattenable_default = isFlattenable;
|
|
1329
|
+
|
|
1330
|
+
// ../node_modules/lodash-es/_baseFlatten.js
|
|
1331
|
+
function baseFlatten(array, depth, predicate, isStrict, result) {
|
|
1332
|
+
var index = -1, length = array.length;
|
|
1333
|
+
predicate || (predicate = isFlattenable_default);
|
|
1334
|
+
result || (result = []);
|
|
1335
|
+
while (++index < length) {
|
|
1336
|
+
var value = array[index];
|
|
1337
|
+
if (depth > 0 && predicate(value)) {
|
|
1338
|
+
if (depth > 1) {
|
|
1339
|
+
baseFlatten(value, depth - 1, predicate, isStrict, result);
|
|
1340
|
+
} else {
|
|
1341
|
+
arrayPush_default(result, value);
|
|
1342
|
+
}
|
|
1343
|
+
} else if (!isStrict) {
|
|
1344
|
+
result[result.length] = value;
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
return result;
|
|
1348
|
+
}
|
|
1349
|
+
var baseFlatten_default = baseFlatten;
|
|
1350
|
+
|
|
1351
|
+
// ../node_modules/lodash-es/flatten.js
|
|
1352
|
+
function flatten(array) {
|
|
1353
|
+
var length = array == null ? 0 : array.length;
|
|
1354
|
+
return length ? baseFlatten_default(array, 1) : [];
|
|
1355
|
+
}
|
|
1356
|
+
var flatten_default = flatten;
|
|
1357
|
+
|
|
1358
|
+
// ../node_modules/lodash-es/_flatRest.js
|
|
1359
|
+
function flatRest(func) {
|
|
1360
|
+
return setToString_default(overRest_default(func, void 0, flatten_default), func + "");
|
|
1361
|
+
}
|
|
1362
|
+
var flatRest_default = flatRest;
|
|
1363
|
+
|
|
1364
|
+
// ../node_modules/lodash-es/_getPrototype.js
|
|
1365
|
+
var getPrototype = overArg_default(Object.getPrototypeOf, Object);
|
|
1366
|
+
var getPrototype_default = getPrototype;
|
|
1367
|
+
|
|
1368
|
+
// ../node_modules/lodash-es/isPlainObject.js
|
|
1369
|
+
var objectTag2 = "[object Object]";
|
|
1370
|
+
var funcProto3 = Function.prototype;
|
|
1371
|
+
var objectProto12 = Object.prototype;
|
|
1372
|
+
var funcToString3 = funcProto3.toString;
|
|
1373
|
+
var hasOwnProperty10 = objectProto12.hasOwnProperty;
|
|
1374
|
+
var objectCtorString = funcToString3.call(Object);
|
|
1375
|
+
function isPlainObject(value) {
|
|
1376
|
+
if (!isObjectLike_default(value) || baseGetTag_default(value) != objectTag2) {
|
|
1377
|
+
return false;
|
|
1378
|
+
}
|
|
1379
|
+
var proto = getPrototype_default(value);
|
|
1380
|
+
if (proto === null) {
|
|
1381
|
+
return true;
|
|
1382
|
+
}
|
|
1383
|
+
var Ctor = hasOwnProperty10.call(proto, "constructor") && proto.constructor;
|
|
1384
|
+
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString3.call(Ctor) == objectCtorString;
|
|
1385
|
+
}
|
|
1386
|
+
var isPlainObject_default = isPlainObject;
|
|
1387
|
+
|
|
1388
|
+
// ../node_modules/lodash-es/_baseSlice.js
|
|
1389
|
+
function baseSlice(array, start, end) {
|
|
1390
|
+
var index = -1, length = array.length;
|
|
1391
|
+
if (start < 0) {
|
|
1392
|
+
start = -start > length ? 0 : length + start;
|
|
1393
|
+
}
|
|
1394
|
+
end = end > length ? length : end;
|
|
1395
|
+
if (end < 0) {
|
|
1396
|
+
end += length;
|
|
1397
|
+
}
|
|
1398
|
+
length = start > end ? 0 : end - start >>> 0;
|
|
1399
|
+
start >>>= 0;
|
|
1400
|
+
var result = Array(length);
|
|
1401
|
+
while (++index < length) {
|
|
1402
|
+
result[index] = array[index + start];
|
|
1403
|
+
}
|
|
1404
|
+
return result;
|
|
1405
|
+
}
|
|
1406
|
+
var baseSlice_default = baseSlice;
|
|
1407
|
+
|
|
1408
|
+
// ../node_modules/lodash-es/_stackClear.js
|
|
1409
|
+
function stackClear() {
|
|
1410
|
+
this.__data__ = new ListCache_default();
|
|
1411
|
+
this.size = 0;
|
|
1412
|
+
}
|
|
1413
|
+
var stackClear_default = stackClear;
|
|
1414
|
+
|
|
1415
|
+
// ../node_modules/lodash-es/_stackDelete.js
|
|
1416
|
+
function stackDelete(key) {
|
|
1417
|
+
var data = this.__data__, result = data["delete"](key);
|
|
1418
|
+
this.size = data.size;
|
|
1419
|
+
return result;
|
|
1420
|
+
}
|
|
1421
|
+
var stackDelete_default = stackDelete;
|
|
1422
|
+
|
|
1423
|
+
// ../node_modules/lodash-es/_stackGet.js
|
|
1424
|
+
function stackGet(key) {
|
|
1425
|
+
return this.__data__.get(key);
|
|
1426
|
+
}
|
|
1427
|
+
var stackGet_default = stackGet;
|
|
1428
|
+
|
|
1429
|
+
// ../node_modules/lodash-es/_stackHas.js
|
|
1430
|
+
function stackHas(key) {
|
|
1431
|
+
return this.__data__.has(key);
|
|
1432
|
+
}
|
|
1433
|
+
var stackHas_default = stackHas;
|
|
1434
|
+
|
|
1435
|
+
// ../node_modules/lodash-es/_stackSet.js
|
|
1436
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
1437
|
+
function stackSet(key, value) {
|
|
1438
|
+
var data = this.__data__;
|
|
1439
|
+
if (data instanceof ListCache_default) {
|
|
1440
|
+
var pairs = data.__data__;
|
|
1441
|
+
if (!Map_default || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
1442
|
+
pairs.push([key, value]);
|
|
1443
|
+
this.size = ++data.size;
|
|
1444
|
+
return this;
|
|
1445
|
+
}
|
|
1446
|
+
data = this.__data__ = new MapCache_default(pairs);
|
|
1447
|
+
}
|
|
1448
|
+
data.set(key, value);
|
|
1449
|
+
this.size = data.size;
|
|
1450
|
+
return this;
|
|
1451
|
+
}
|
|
1452
|
+
var stackSet_default = stackSet;
|
|
1453
|
+
|
|
1454
|
+
// ../node_modules/lodash-es/_Stack.js
|
|
1455
|
+
function Stack(entries) {
|
|
1456
|
+
var data = this.__data__ = new ListCache_default(entries);
|
|
1457
|
+
this.size = data.size;
|
|
1458
|
+
}
|
|
1459
|
+
Stack.prototype.clear = stackClear_default;
|
|
1460
|
+
Stack.prototype["delete"] = stackDelete_default;
|
|
1461
|
+
Stack.prototype.get = stackGet_default;
|
|
1462
|
+
Stack.prototype.has = stackHas_default;
|
|
1463
|
+
Stack.prototype.set = stackSet_default;
|
|
1464
|
+
var Stack_default = Stack;
|
|
1465
|
+
|
|
1466
|
+
// ../node_modules/lodash-es/_baseAssign.js
|
|
1467
|
+
function baseAssign(object, source) {
|
|
1468
|
+
return object && copyObject_default(source, keys_default(source), object);
|
|
1469
|
+
}
|
|
1470
|
+
var baseAssign_default = baseAssign;
|
|
1471
|
+
|
|
1472
|
+
// ../node_modules/lodash-es/_baseAssignIn.js
|
|
1473
|
+
function baseAssignIn(object, source) {
|
|
1474
|
+
return object && copyObject_default(source, keysIn_default(source), object);
|
|
1475
|
+
}
|
|
1476
|
+
var baseAssignIn_default = baseAssignIn;
|
|
1477
|
+
|
|
1478
|
+
// ../node_modules/lodash-es/_cloneBuffer.js
|
|
1479
|
+
var freeExports3 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
1480
|
+
var freeModule3 = freeExports3 && typeof module == "object" && module && !module.nodeType && module;
|
|
1481
|
+
var moduleExports3 = freeModule3 && freeModule3.exports === freeExports3;
|
|
1482
|
+
var Buffer3 = moduleExports3 ? root_default.Buffer : void 0;
|
|
1483
|
+
var allocUnsafe = Buffer3 ? Buffer3.allocUnsafe : void 0;
|
|
1484
|
+
function cloneBuffer(buffer, isDeep) {
|
|
1485
|
+
if (isDeep) {
|
|
1486
|
+
return buffer.slice();
|
|
1487
|
+
}
|
|
1488
|
+
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
1489
|
+
buffer.copy(result);
|
|
1490
|
+
return result;
|
|
1491
|
+
}
|
|
1492
|
+
var cloneBuffer_default = cloneBuffer;
|
|
1493
|
+
|
|
1494
|
+
// ../node_modules/lodash-es/_arrayFilter.js
|
|
1495
|
+
function arrayFilter(array, predicate) {
|
|
1496
|
+
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
1497
|
+
while (++index < length) {
|
|
1498
|
+
var value = array[index];
|
|
1499
|
+
if (predicate(value, index, array)) {
|
|
1500
|
+
result[resIndex++] = value;
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
return result;
|
|
1504
|
+
}
|
|
1505
|
+
var arrayFilter_default = arrayFilter;
|
|
1506
|
+
|
|
1507
|
+
// ../node_modules/lodash-es/stubArray.js
|
|
1508
|
+
function stubArray() {
|
|
1509
|
+
return [];
|
|
1510
|
+
}
|
|
1511
|
+
var stubArray_default = stubArray;
|
|
1512
|
+
|
|
1513
|
+
// ../node_modules/lodash-es/_getSymbols.js
|
|
1514
|
+
var objectProto13 = Object.prototype;
|
|
1515
|
+
var propertyIsEnumerable2 = objectProto13.propertyIsEnumerable;
|
|
1516
|
+
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
1517
|
+
var getSymbols = !nativeGetSymbols ? stubArray_default : function(object) {
|
|
1518
|
+
if (object == null) {
|
|
1519
|
+
return [];
|
|
1520
|
+
}
|
|
1521
|
+
object = Object(object);
|
|
1522
|
+
return arrayFilter_default(nativeGetSymbols(object), function(symbol) {
|
|
1523
|
+
return propertyIsEnumerable2.call(object, symbol);
|
|
1524
|
+
});
|
|
1525
|
+
};
|
|
1526
|
+
var getSymbols_default = getSymbols;
|
|
1527
|
+
|
|
1528
|
+
// ../node_modules/lodash-es/_copySymbols.js
|
|
1529
|
+
function copySymbols(source, object) {
|
|
1530
|
+
return copyObject_default(source, getSymbols_default(source), object);
|
|
1531
|
+
}
|
|
1532
|
+
var copySymbols_default = copySymbols;
|
|
1533
|
+
|
|
1534
|
+
// ../node_modules/lodash-es/_getSymbolsIn.js
|
|
1535
|
+
var nativeGetSymbols2 = Object.getOwnPropertySymbols;
|
|
1536
|
+
var getSymbolsIn = !nativeGetSymbols2 ? stubArray_default : function(object) {
|
|
1537
|
+
var result = [];
|
|
1538
|
+
while (object) {
|
|
1539
|
+
arrayPush_default(result, getSymbols_default(object));
|
|
1540
|
+
object = getPrototype_default(object);
|
|
1541
|
+
}
|
|
1542
|
+
return result;
|
|
1543
|
+
};
|
|
1544
|
+
var getSymbolsIn_default = getSymbolsIn;
|
|
1545
|
+
|
|
1546
|
+
// ../node_modules/lodash-es/_copySymbolsIn.js
|
|
1547
|
+
function copySymbolsIn(source, object) {
|
|
1548
|
+
return copyObject_default(source, getSymbolsIn_default(source), object);
|
|
1549
|
+
}
|
|
1550
|
+
var copySymbolsIn_default = copySymbolsIn;
|
|
1551
|
+
|
|
1552
|
+
// ../node_modules/lodash-es/_baseGetAllKeys.js
|
|
1553
|
+
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
1554
|
+
var result = keysFunc(object);
|
|
1555
|
+
return isArray_default(object) ? result : arrayPush_default(result, symbolsFunc(object));
|
|
1556
|
+
}
|
|
1557
|
+
var baseGetAllKeys_default = baseGetAllKeys;
|
|
1558
|
+
|
|
1559
|
+
// ../node_modules/lodash-es/_getAllKeys.js
|
|
1560
|
+
function getAllKeys(object) {
|
|
1561
|
+
return baseGetAllKeys_default(object, keys_default, getSymbols_default);
|
|
1562
|
+
}
|
|
1563
|
+
var getAllKeys_default = getAllKeys;
|
|
1564
|
+
|
|
1565
|
+
// ../node_modules/lodash-es/_getAllKeysIn.js
|
|
1566
|
+
function getAllKeysIn(object) {
|
|
1567
|
+
return baseGetAllKeys_default(object, keysIn_default, getSymbolsIn_default);
|
|
1568
|
+
}
|
|
1569
|
+
var getAllKeysIn_default = getAllKeysIn;
|
|
1570
|
+
|
|
1571
|
+
// ../node_modules/lodash-es/_DataView.js
|
|
1572
|
+
var DataView = getNative_default(root_default, "DataView");
|
|
1573
|
+
var DataView_default = DataView;
|
|
1574
|
+
|
|
1575
|
+
// ../node_modules/lodash-es/_Promise.js
|
|
1576
|
+
var Promise2 = getNative_default(root_default, "Promise");
|
|
1577
|
+
var Promise_default = Promise2;
|
|
1578
|
+
|
|
1579
|
+
// ../node_modules/lodash-es/_Set.js
|
|
1580
|
+
var Set2 = getNative_default(root_default, "Set");
|
|
1581
|
+
var Set_default = Set2;
|
|
1582
|
+
|
|
1583
|
+
// ../node_modules/lodash-es/_getTag.js
|
|
1584
|
+
var mapTag2 = "[object Map]";
|
|
1585
|
+
var objectTag3 = "[object Object]";
|
|
1586
|
+
var promiseTag = "[object Promise]";
|
|
1587
|
+
var setTag2 = "[object Set]";
|
|
1588
|
+
var weakMapTag2 = "[object WeakMap]";
|
|
1589
|
+
var dataViewTag2 = "[object DataView]";
|
|
1590
|
+
var dataViewCtorString = toSource_default(DataView_default);
|
|
1591
|
+
var mapCtorString = toSource_default(Map_default);
|
|
1592
|
+
var promiseCtorString = toSource_default(Promise_default);
|
|
1593
|
+
var setCtorString = toSource_default(Set_default);
|
|
1594
|
+
var weakMapCtorString = toSource_default(WeakMap_default);
|
|
1595
|
+
var getTag = baseGetTag_default;
|
|
1596
|
+
if (DataView_default && getTag(new DataView_default(new ArrayBuffer(1))) != dataViewTag2 || Map_default && getTag(new Map_default()) != mapTag2 || Promise_default && getTag(Promise_default.resolve()) != promiseTag || Set_default && getTag(new Set_default()) != setTag2 || WeakMap_default && getTag(new WeakMap_default()) != weakMapTag2) {
|
|
1597
|
+
getTag = function(value) {
|
|
1598
|
+
var result = baseGetTag_default(value), Ctor = result == objectTag3 ? value.constructor : void 0, ctorString = Ctor ? toSource_default(Ctor) : "";
|
|
1599
|
+
if (ctorString) {
|
|
1600
|
+
switch (ctorString) {
|
|
1601
|
+
case dataViewCtorString:
|
|
1602
|
+
return dataViewTag2;
|
|
1603
|
+
case mapCtorString:
|
|
1604
|
+
return mapTag2;
|
|
1605
|
+
case promiseCtorString:
|
|
1606
|
+
return promiseTag;
|
|
1607
|
+
case setCtorString:
|
|
1608
|
+
return setTag2;
|
|
1609
|
+
case weakMapCtorString:
|
|
1610
|
+
return weakMapTag2;
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
return result;
|
|
1614
|
+
};
|
|
1615
|
+
}
|
|
1616
|
+
var getTag_default = getTag;
|
|
1617
|
+
|
|
1618
|
+
// ../node_modules/lodash-es/_initCloneArray.js
|
|
1619
|
+
var objectProto14 = Object.prototype;
|
|
1620
|
+
var hasOwnProperty11 = objectProto14.hasOwnProperty;
|
|
1621
|
+
function initCloneArray(array) {
|
|
1622
|
+
var length = array.length, result = new array.constructor(length);
|
|
1623
|
+
if (length && typeof array[0] == "string" && hasOwnProperty11.call(array, "index")) {
|
|
1624
|
+
result.index = array.index;
|
|
1625
|
+
result.input = array.input;
|
|
1626
|
+
}
|
|
1627
|
+
return result;
|
|
1628
|
+
}
|
|
1629
|
+
var initCloneArray_default = initCloneArray;
|
|
1630
|
+
|
|
1631
|
+
// ../node_modules/lodash-es/_Uint8Array.js
|
|
1632
|
+
var Uint8Array2 = root_default.Uint8Array;
|
|
1633
|
+
var Uint8Array_default = Uint8Array2;
|
|
1634
|
+
|
|
1635
|
+
// ../node_modules/lodash-es/_cloneArrayBuffer.js
|
|
1636
|
+
function cloneArrayBuffer(arrayBuffer) {
|
|
1637
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
1638
|
+
new Uint8Array_default(result).set(new Uint8Array_default(arrayBuffer));
|
|
1639
|
+
return result;
|
|
1640
|
+
}
|
|
1641
|
+
var cloneArrayBuffer_default = cloneArrayBuffer;
|
|
1642
|
+
|
|
1643
|
+
// ../node_modules/lodash-es/_cloneDataView.js
|
|
1644
|
+
function cloneDataView(dataView, isDeep) {
|
|
1645
|
+
var buffer = isDeep ? cloneArrayBuffer_default(dataView.buffer) : dataView.buffer;
|
|
1646
|
+
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
1647
|
+
}
|
|
1648
|
+
var cloneDataView_default = cloneDataView;
|
|
1649
|
+
|
|
1650
|
+
// ../node_modules/lodash-es/_cloneRegExp.js
|
|
1651
|
+
var reFlags = /\w*$/;
|
|
1652
|
+
function cloneRegExp(regexp) {
|
|
1653
|
+
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
|
|
1654
|
+
result.lastIndex = regexp.lastIndex;
|
|
1655
|
+
return result;
|
|
1656
|
+
}
|
|
1657
|
+
var cloneRegExp_default = cloneRegExp;
|
|
1658
|
+
|
|
1659
|
+
// ../node_modules/lodash-es/_cloneSymbol.js
|
|
1660
|
+
var symbolProto2 = Symbol_default ? Symbol_default.prototype : void 0;
|
|
1661
|
+
var symbolValueOf = symbolProto2 ? symbolProto2.valueOf : void 0;
|
|
1662
|
+
function cloneSymbol(symbol) {
|
|
1663
|
+
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
|
|
1664
|
+
}
|
|
1665
|
+
var cloneSymbol_default = cloneSymbol;
|
|
1666
|
+
|
|
1667
|
+
// ../node_modules/lodash-es/_cloneTypedArray.js
|
|
1668
|
+
function cloneTypedArray(typedArray, isDeep) {
|
|
1669
|
+
var buffer = isDeep ? cloneArrayBuffer_default(typedArray.buffer) : typedArray.buffer;
|
|
1670
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
1671
|
+
}
|
|
1672
|
+
var cloneTypedArray_default = cloneTypedArray;
|
|
1673
|
+
|
|
1674
|
+
// ../node_modules/lodash-es/_initCloneByTag.js
|
|
1675
|
+
var boolTag2 = "[object Boolean]";
|
|
1676
|
+
var dateTag2 = "[object Date]";
|
|
1677
|
+
var mapTag3 = "[object Map]";
|
|
1678
|
+
var numberTag2 = "[object Number]";
|
|
1679
|
+
var regexpTag2 = "[object RegExp]";
|
|
1680
|
+
var setTag3 = "[object Set]";
|
|
1681
|
+
var stringTag2 = "[object String]";
|
|
1682
|
+
var symbolTag2 = "[object Symbol]";
|
|
1683
|
+
var arrayBufferTag2 = "[object ArrayBuffer]";
|
|
1684
|
+
var dataViewTag3 = "[object DataView]";
|
|
1685
|
+
var float32Tag2 = "[object Float32Array]";
|
|
1686
|
+
var float64Tag2 = "[object Float64Array]";
|
|
1687
|
+
var int8Tag2 = "[object Int8Array]";
|
|
1688
|
+
var int16Tag2 = "[object Int16Array]";
|
|
1689
|
+
var int32Tag2 = "[object Int32Array]";
|
|
1690
|
+
var uint8Tag2 = "[object Uint8Array]";
|
|
1691
|
+
var uint8ClampedTag2 = "[object Uint8ClampedArray]";
|
|
1692
|
+
var uint16Tag2 = "[object Uint16Array]";
|
|
1693
|
+
var uint32Tag2 = "[object Uint32Array]";
|
|
1694
|
+
function initCloneByTag(object, tag, isDeep) {
|
|
1695
|
+
var Ctor = object.constructor;
|
|
1696
|
+
switch (tag) {
|
|
1697
|
+
case arrayBufferTag2:
|
|
1698
|
+
return cloneArrayBuffer_default(object);
|
|
1699
|
+
case boolTag2:
|
|
1700
|
+
case dateTag2:
|
|
1701
|
+
return new Ctor(+object);
|
|
1702
|
+
case dataViewTag3:
|
|
1703
|
+
return cloneDataView_default(object, isDeep);
|
|
1704
|
+
case float32Tag2:
|
|
1705
|
+
case float64Tag2:
|
|
1706
|
+
case int8Tag2:
|
|
1707
|
+
case int16Tag2:
|
|
1708
|
+
case int32Tag2:
|
|
1709
|
+
case uint8Tag2:
|
|
1710
|
+
case uint8ClampedTag2:
|
|
1711
|
+
case uint16Tag2:
|
|
1712
|
+
case uint32Tag2:
|
|
1713
|
+
return cloneTypedArray_default(object, isDeep);
|
|
1714
|
+
case mapTag3:
|
|
1715
|
+
return new Ctor();
|
|
1716
|
+
case numberTag2:
|
|
1717
|
+
case stringTag2:
|
|
1718
|
+
return new Ctor(object);
|
|
1719
|
+
case regexpTag2:
|
|
1720
|
+
return cloneRegExp_default(object);
|
|
1721
|
+
case setTag3:
|
|
1722
|
+
return new Ctor();
|
|
1723
|
+
case symbolTag2:
|
|
1724
|
+
return cloneSymbol_default(object);
|
|
1725
|
+
}
|
|
1726
|
+
}
|
|
1727
|
+
var initCloneByTag_default = initCloneByTag;
|
|
1728
|
+
|
|
1729
|
+
// ../node_modules/lodash-es/_initCloneObject.js
|
|
1730
|
+
function initCloneObject(object) {
|
|
1731
|
+
return typeof object.constructor == "function" && !isPrototype_default(object) ? baseCreate_default(getPrototype_default(object)) : {};
|
|
1732
|
+
}
|
|
1733
|
+
var initCloneObject_default = initCloneObject;
|
|
1734
|
+
|
|
1735
|
+
// ../node_modules/lodash-es/_baseIsMap.js
|
|
1736
|
+
var mapTag4 = "[object Map]";
|
|
1737
|
+
function baseIsMap(value) {
|
|
1738
|
+
return isObjectLike_default(value) && getTag_default(value) == mapTag4;
|
|
1739
|
+
}
|
|
1740
|
+
var baseIsMap_default = baseIsMap;
|
|
1741
|
+
|
|
1742
|
+
// ../node_modules/lodash-es/isMap.js
|
|
1743
|
+
var nodeIsMap = nodeUtil_default && nodeUtil_default.isMap;
|
|
1744
|
+
var isMap = nodeIsMap ? baseUnary_default(nodeIsMap) : baseIsMap_default;
|
|
1745
|
+
var isMap_default = isMap;
|
|
1746
|
+
|
|
1747
|
+
// ../node_modules/lodash-es/_baseIsSet.js
|
|
1748
|
+
var setTag4 = "[object Set]";
|
|
1749
|
+
function baseIsSet(value) {
|
|
1750
|
+
return isObjectLike_default(value) && getTag_default(value) == setTag4;
|
|
1751
|
+
}
|
|
1752
|
+
var baseIsSet_default = baseIsSet;
|
|
1753
|
+
|
|
1754
|
+
// ../node_modules/lodash-es/isSet.js
|
|
1755
|
+
var nodeIsSet = nodeUtil_default && nodeUtil_default.isSet;
|
|
1756
|
+
var isSet = nodeIsSet ? baseUnary_default(nodeIsSet) : baseIsSet_default;
|
|
1757
|
+
var isSet_default = isSet;
|
|
1758
|
+
|
|
1759
|
+
// ../node_modules/lodash-es/_baseClone.js
|
|
1760
|
+
var CLONE_DEEP_FLAG = 1;
|
|
1761
|
+
var CLONE_FLAT_FLAG = 2;
|
|
1762
|
+
var CLONE_SYMBOLS_FLAG = 4;
|
|
1763
|
+
var argsTag3 = "[object Arguments]";
|
|
1764
|
+
var arrayTag2 = "[object Array]";
|
|
1765
|
+
var boolTag3 = "[object Boolean]";
|
|
1766
|
+
var dateTag3 = "[object Date]";
|
|
1767
|
+
var errorTag2 = "[object Error]";
|
|
1768
|
+
var funcTag3 = "[object Function]";
|
|
1769
|
+
var genTag2 = "[object GeneratorFunction]";
|
|
1770
|
+
var mapTag5 = "[object Map]";
|
|
1771
|
+
var numberTag3 = "[object Number]";
|
|
1772
|
+
var objectTag4 = "[object Object]";
|
|
1773
|
+
var regexpTag3 = "[object RegExp]";
|
|
1774
|
+
var setTag5 = "[object Set]";
|
|
1775
|
+
var stringTag3 = "[object String]";
|
|
1776
|
+
var symbolTag3 = "[object Symbol]";
|
|
1777
|
+
var weakMapTag3 = "[object WeakMap]";
|
|
1778
|
+
var arrayBufferTag3 = "[object ArrayBuffer]";
|
|
1779
|
+
var dataViewTag4 = "[object DataView]";
|
|
1780
|
+
var float32Tag3 = "[object Float32Array]";
|
|
1781
|
+
var float64Tag3 = "[object Float64Array]";
|
|
1782
|
+
var int8Tag3 = "[object Int8Array]";
|
|
1783
|
+
var int16Tag3 = "[object Int16Array]";
|
|
1784
|
+
var int32Tag3 = "[object Int32Array]";
|
|
1785
|
+
var uint8Tag3 = "[object Uint8Array]";
|
|
1786
|
+
var uint8ClampedTag3 = "[object Uint8ClampedArray]";
|
|
1787
|
+
var uint16Tag3 = "[object Uint16Array]";
|
|
1788
|
+
var uint32Tag3 = "[object Uint32Array]";
|
|
1789
|
+
var cloneableTags = {};
|
|
1790
|
+
cloneableTags[argsTag3] = cloneableTags[arrayTag2] = cloneableTags[arrayBufferTag3] = cloneableTags[dataViewTag4] = cloneableTags[boolTag3] = cloneableTags[dateTag3] = cloneableTags[float32Tag3] = cloneableTags[float64Tag3] = cloneableTags[int8Tag3] = cloneableTags[int16Tag3] = cloneableTags[int32Tag3] = cloneableTags[mapTag5] = cloneableTags[numberTag3] = cloneableTags[objectTag4] = cloneableTags[regexpTag3] = cloneableTags[setTag5] = cloneableTags[stringTag3] = cloneableTags[symbolTag3] = cloneableTags[uint8Tag3] = cloneableTags[uint8ClampedTag3] = cloneableTags[uint16Tag3] = cloneableTags[uint32Tag3] = true;
|
|
1791
|
+
cloneableTags[errorTag2] = cloneableTags[funcTag3] = cloneableTags[weakMapTag3] = false;
|
|
1792
|
+
function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
1793
|
+
var result, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG;
|
|
1794
|
+
if (customizer) {
|
|
1795
|
+
result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
1796
|
+
}
|
|
1797
|
+
if (result !== void 0) {
|
|
1798
|
+
return result;
|
|
1799
|
+
}
|
|
1800
|
+
if (!isObject_default(value)) {
|
|
1801
|
+
return value;
|
|
1802
|
+
}
|
|
1803
|
+
var isArr = isArray_default(value);
|
|
1804
|
+
if (isArr) {
|
|
1805
|
+
result = initCloneArray_default(value);
|
|
1806
|
+
if (!isDeep) {
|
|
1807
|
+
return copyArray_default(value, result);
|
|
1808
|
+
}
|
|
1809
|
+
} else {
|
|
1810
|
+
var tag = getTag_default(value), isFunc = tag == funcTag3 || tag == genTag2;
|
|
1811
|
+
if (isBuffer_default(value)) {
|
|
1812
|
+
return cloneBuffer_default(value, isDeep);
|
|
1813
|
+
}
|
|
1814
|
+
if (tag == objectTag4 || tag == argsTag3 || isFunc && !object) {
|
|
1815
|
+
result = isFlat || isFunc ? {} : initCloneObject_default(value);
|
|
1816
|
+
if (!isDeep) {
|
|
1817
|
+
return isFlat ? copySymbolsIn_default(value, baseAssignIn_default(result, value)) : copySymbols_default(value, baseAssign_default(result, value));
|
|
1818
|
+
}
|
|
1819
|
+
} else {
|
|
1820
|
+
if (!cloneableTags[tag]) {
|
|
1821
|
+
return object ? value : {};
|
|
1822
|
+
}
|
|
1823
|
+
result = initCloneByTag_default(value, tag, isDeep);
|
|
1824
|
+
}
|
|
1825
|
+
}
|
|
1826
|
+
stack || (stack = new Stack_default());
|
|
1827
|
+
var stacked = stack.get(value);
|
|
1828
|
+
if (stacked) {
|
|
1829
|
+
return stacked;
|
|
1830
|
+
}
|
|
1831
|
+
stack.set(value, result);
|
|
1832
|
+
if (isSet_default(value)) {
|
|
1833
|
+
value.forEach(function(subValue) {
|
|
1834
|
+
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
|
|
1835
|
+
});
|
|
1836
|
+
} else if (isMap_default(value)) {
|
|
1837
|
+
value.forEach(function(subValue, key2) {
|
|
1838
|
+
result.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
|
|
1839
|
+
});
|
|
1840
|
+
}
|
|
1841
|
+
var keysFunc = isFull ? isFlat ? getAllKeysIn_default : getAllKeys_default : isFlat ? keysIn_default : keys_default;
|
|
1842
|
+
var props = isArr ? void 0 : keysFunc(value);
|
|
1843
|
+
arrayEach_default(props || value, function(subValue, key2) {
|
|
1844
|
+
if (props) {
|
|
1845
|
+
key2 = subValue;
|
|
1846
|
+
subValue = value[key2];
|
|
1847
|
+
}
|
|
1848
|
+
assignValue_default(result, key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
|
|
1849
|
+
});
|
|
1850
|
+
return result;
|
|
1851
|
+
}
|
|
1852
|
+
var baseClone_default = baseClone;
|
|
1853
|
+
|
|
1854
|
+
// ../node_modules/lodash-es/_setCacheAdd.js
|
|
1855
|
+
var HASH_UNDEFINED3 = "__lodash_hash_undefined__";
|
|
1856
|
+
function setCacheAdd(value) {
|
|
1857
|
+
this.__data__.set(value, HASH_UNDEFINED3);
|
|
1858
|
+
return this;
|
|
1859
|
+
}
|
|
1860
|
+
var setCacheAdd_default = setCacheAdd;
|
|
1861
|
+
|
|
1862
|
+
// ../node_modules/lodash-es/_setCacheHas.js
|
|
1863
|
+
function setCacheHas(value) {
|
|
1864
|
+
return this.__data__.has(value);
|
|
1865
|
+
}
|
|
1866
|
+
var setCacheHas_default = setCacheHas;
|
|
1867
|
+
|
|
1868
|
+
// ../node_modules/lodash-es/_SetCache.js
|
|
1869
|
+
function SetCache(values) {
|
|
1870
|
+
var index = -1, length = values == null ? 0 : values.length;
|
|
1871
|
+
this.__data__ = new MapCache_default();
|
|
1872
|
+
while (++index < length) {
|
|
1873
|
+
this.add(values[index]);
|
|
1874
|
+
}
|
|
1875
|
+
}
|
|
1876
|
+
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd_default;
|
|
1877
|
+
SetCache.prototype.has = setCacheHas_default;
|
|
1878
|
+
var SetCache_default = SetCache;
|
|
1879
|
+
|
|
1880
|
+
// ../node_modules/lodash-es/_arraySome.js
|
|
1881
|
+
function arraySome(array, predicate) {
|
|
1882
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
1883
|
+
while (++index < length) {
|
|
1884
|
+
if (predicate(array[index], index, array)) {
|
|
1885
|
+
return true;
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1888
|
+
return false;
|
|
1889
|
+
}
|
|
1890
|
+
var arraySome_default = arraySome;
|
|
1891
|
+
|
|
1892
|
+
// ../node_modules/lodash-es/_cacheHas.js
|
|
1893
|
+
function cacheHas(cache, key) {
|
|
1894
|
+
return cache.has(key);
|
|
1895
|
+
}
|
|
1896
|
+
var cacheHas_default = cacheHas;
|
|
1897
|
+
|
|
1898
|
+
// ../node_modules/lodash-es/_equalArrays.js
|
|
1899
|
+
var COMPARE_PARTIAL_FLAG = 1;
|
|
1900
|
+
var COMPARE_UNORDERED_FLAG = 2;
|
|
1901
|
+
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
1902
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length;
|
|
1903
|
+
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
|
1904
|
+
return false;
|
|
1905
|
+
}
|
|
1906
|
+
var arrStacked = stack.get(array);
|
|
1907
|
+
var othStacked = stack.get(other);
|
|
1908
|
+
if (arrStacked && othStacked) {
|
|
1909
|
+
return arrStacked == other && othStacked == array;
|
|
1910
|
+
}
|
|
1911
|
+
var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache_default() : void 0;
|
|
1912
|
+
stack.set(array, other);
|
|
1913
|
+
stack.set(other, array);
|
|
1914
|
+
while (++index < arrLength) {
|
|
1915
|
+
var arrValue = array[index], othValue = other[index];
|
|
1916
|
+
if (customizer) {
|
|
1917
|
+
var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
|
|
1918
|
+
}
|
|
1919
|
+
if (compared !== void 0) {
|
|
1920
|
+
if (compared) {
|
|
1921
|
+
continue;
|
|
1922
|
+
}
|
|
1923
|
+
result = false;
|
|
1924
|
+
break;
|
|
1925
|
+
}
|
|
1926
|
+
if (seen) {
|
|
1927
|
+
if (!arraySome_default(other, function(othValue2, othIndex) {
|
|
1928
|
+
if (!cacheHas_default(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
|
|
1929
|
+
return seen.push(othIndex);
|
|
1930
|
+
}
|
|
1931
|
+
})) {
|
|
1932
|
+
result = false;
|
|
1933
|
+
break;
|
|
1934
|
+
}
|
|
1935
|
+
} else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
|
1936
|
+
result = false;
|
|
1937
|
+
break;
|
|
1938
|
+
}
|
|
1939
|
+
}
|
|
1940
|
+
stack["delete"](array);
|
|
1941
|
+
stack["delete"](other);
|
|
1942
|
+
return result;
|
|
1943
|
+
}
|
|
1944
|
+
var equalArrays_default = equalArrays;
|
|
1945
|
+
|
|
1946
|
+
// ../node_modules/lodash-es/_mapToArray.js
|
|
1947
|
+
function mapToArray(map) {
|
|
1948
|
+
var index = -1, result = Array(map.size);
|
|
1949
|
+
map.forEach(function(value, key) {
|
|
1950
|
+
result[++index] = [key, value];
|
|
1951
|
+
});
|
|
1952
|
+
return result;
|
|
1953
|
+
}
|
|
1954
|
+
var mapToArray_default = mapToArray;
|
|
1955
|
+
|
|
1956
|
+
// ../node_modules/lodash-es/_setToArray.js
|
|
1957
|
+
function setToArray(set) {
|
|
1958
|
+
var index = -1, result = Array(set.size);
|
|
1959
|
+
set.forEach(function(value) {
|
|
1960
|
+
result[++index] = value;
|
|
1961
|
+
});
|
|
1962
|
+
return result;
|
|
1963
|
+
}
|
|
1964
|
+
var setToArray_default = setToArray;
|
|
1965
|
+
|
|
1966
|
+
// ../node_modules/lodash-es/_equalByTag.js
|
|
1967
|
+
var COMPARE_PARTIAL_FLAG2 = 1;
|
|
1968
|
+
var COMPARE_UNORDERED_FLAG2 = 2;
|
|
1969
|
+
var boolTag4 = "[object Boolean]";
|
|
1970
|
+
var dateTag4 = "[object Date]";
|
|
1971
|
+
var errorTag3 = "[object Error]";
|
|
1972
|
+
var mapTag6 = "[object Map]";
|
|
1973
|
+
var numberTag4 = "[object Number]";
|
|
1974
|
+
var regexpTag4 = "[object RegExp]";
|
|
1975
|
+
var setTag6 = "[object Set]";
|
|
1976
|
+
var stringTag4 = "[object String]";
|
|
1977
|
+
var symbolTag4 = "[object Symbol]";
|
|
1978
|
+
var arrayBufferTag4 = "[object ArrayBuffer]";
|
|
1979
|
+
var dataViewTag5 = "[object DataView]";
|
|
1980
|
+
var symbolProto3 = Symbol_default ? Symbol_default.prototype : void 0;
|
|
1981
|
+
var symbolValueOf2 = symbolProto3 ? symbolProto3.valueOf : void 0;
|
|
1982
|
+
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
1983
|
+
switch (tag) {
|
|
1984
|
+
case dataViewTag5:
|
|
1985
|
+
if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
|
|
1986
|
+
return false;
|
|
1987
|
+
}
|
|
1988
|
+
object = object.buffer;
|
|
1989
|
+
other = other.buffer;
|
|
1990
|
+
case arrayBufferTag4:
|
|
1991
|
+
if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array_default(object), new Uint8Array_default(other))) {
|
|
1992
|
+
return false;
|
|
1993
|
+
}
|
|
1994
|
+
return true;
|
|
1995
|
+
case boolTag4:
|
|
1996
|
+
case dateTag4:
|
|
1997
|
+
case numberTag4:
|
|
1998
|
+
return eq_default(+object, +other);
|
|
1999
|
+
case errorTag3:
|
|
2000
|
+
return object.name == other.name && object.message == other.message;
|
|
2001
|
+
case regexpTag4:
|
|
2002
|
+
case stringTag4:
|
|
2003
|
+
return object == other + "";
|
|
2004
|
+
case mapTag6:
|
|
2005
|
+
var convert = mapToArray_default;
|
|
2006
|
+
case setTag6:
|
|
2007
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG2;
|
|
2008
|
+
convert || (convert = setToArray_default);
|
|
2009
|
+
if (object.size != other.size && !isPartial) {
|
|
2010
|
+
return false;
|
|
2011
|
+
}
|
|
2012
|
+
var stacked = stack.get(object);
|
|
2013
|
+
if (stacked) {
|
|
2014
|
+
return stacked == other;
|
|
2015
|
+
}
|
|
2016
|
+
bitmask |= COMPARE_UNORDERED_FLAG2;
|
|
2017
|
+
stack.set(object, other);
|
|
2018
|
+
var result = equalArrays_default(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
2019
|
+
stack["delete"](object);
|
|
2020
|
+
return result;
|
|
2021
|
+
case symbolTag4:
|
|
2022
|
+
if (symbolValueOf2) {
|
|
2023
|
+
return symbolValueOf2.call(object) == symbolValueOf2.call(other);
|
|
2024
|
+
}
|
|
2025
|
+
}
|
|
2026
|
+
return false;
|
|
2027
|
+
}
|
|
2028
|
+
var equalByTag_default = equalByTag;
|
|
2029
|
+
|
|
2030
|
+
// ../node_modules/lodash-es/_equalObjects.js
|
|
2031
|
+
var COMPARE_PARTIAL_FLAG3 = 1;
|
|
2032
|
+
var objectProto15 = Object.prototype;
|
|
2033
|
+
var hasOwnProperty12 = objectProto15.hasOwnProperty;
|
|
2034
|
+
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
2035
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG3, objProps = getAllKeys_default(object), objLength = objProps.length, othProps = getAllKeys_default(other), othLength = othProps.length;
|
|
2036
|
+
if (objLength != othLength && !isPartial) {
|
|
2037
|
+
return false;
|
|
2038
|
+
}
|
|
2039
|
+
var index = objLength;
|
|
2040
|
+
while (index--) {
|
|
2041
|
+
var key = objProps[index];
|
|
2042
|
+
if (!(isPartial ? key in other : hasOwnProperty12.call(other, key))) {
|
|
2043
|
+
return false;
|
|
2044
|
+
}
|
|
2045
|
+
}
|
|
2046
|
+
var objStacked = stack.get(object);
|
|
2047
|
+
var othStacked = stack.get(other);
|
|
2048
|
+
if (objStacked && othStacked) {
|
|
2049
|
+
return objStacked == other && othStacked == object;
|
|
2050
|
+
}
|
|
2051
|
+
var result = true;
|
|
2052
|
+
stack.set(object, other);
|
|
2053
|
+
stack.set(other, object);
|
|
2054
|
+
var skipCtor = isPartial;
|
|
2055
|
+
while (++index < objLength) {
|
|
2056
|
+
key = objProps[index];
|
|
2057
|
+
var objValue = object[key], othValue = other[key];
|
|
2058
|
+
if (customizer) {
|
|
2059
|
+
var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
|
|
2060
|
+
}
|
|
2061
|
+
if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
|
|
2062
|
+
result = false;
|
|
2063
|
+
break;
|
|
2064
|
+
}
|
|
2065
|
+
skipCtor || (skipCtor = key == "constructor");
|
|
2066
|
+
}
|
|
2067
|
+
if (result && !skipCtor) {
|
|
2068
|
+
var objCtor = object.constructor, othCtor = other.constructor;
|
|
2069
|
+
if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
|
|
2070
|
+
result = false;
|
|
2071
|
+
}
|
|
2072
|
+
}
|
|
2073
|
+
stack["delete"](object);
|
|
2074
|
+
stack["delete"](other);
|
|
2075
|
+
return result;
|
|
2076
|
+
}
|
|
2077
|
+
var equalObjects_default = equalObjects;
|
|
2078
|
+
|
|
2079
|
+
// ../node_modules/lodash-es/_baseIsEqualDeep.js
|
|
2080
|
+
var COMPARE_PARTIAL_FLAG4 = 1;
|
|
2081
|
+
var argsTag4 = "[object Arguments]";
|
|
2082
|
+
var arrayTag3 = "[object Array]";
|
|
2083
|
+
var objectTag5 = "[object Object]";
|
|
2084
|
+
var objectProto16 = Object.prototype;
|
|
2085
|
+
var hasOwnProperty13 = objectProto16.hasOwnProperty;
|
|
2086
|
+
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
2087
|
+
var objIsArr = isArray_default(object), othIsArr = isArray_default(other), objTag = objIsArr ? arrayTag3 : getTag_default(object), othTag = othIsArr ? arrayTag3 : getTag_default(other);
|
|
2088
|
+
objTag = objTag == argsTag4 ? objectTag5 : objTag;
|
|
2089
|
+
othTag = othTag == argsTag4 ? objectTag5 : othTag;
|
|
2090
|
+
var objIsObj = objTag == objectTag5, othIsObj = othTag == objectTag5, isSameTag = objTag == othTag;
|
|
2091
|
+
if (isSameTag && isBuffer_default(object)) {
|
|
2092
|
+
if (!isBuffer_default(other)) {
|
|
2093
|
+
return false;
|
|
2094
|
+
}
|
|
2095
|
+
objIsArr = true;
|
|
2096
|
+
objIsObj = false;
|
|
2097
|
+
}
|
|
2098
|
+
if (isSameTag && !objIsObj) {
|
|
2099
|
+
stack || (stack = new Stack_default());
|
|
2100
|
+
return objIsArr || isTypedArray_default(object) ? equalArrays_default(object, other, bitmask, customizer, equalFunc, stack) : equalByTag_default(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
2101
|
+
}
|
|
2102
|
+
if (!(bitmask & COMPARE_PARTIAL_FLAG4)) {
|
|
2103
|
+
var objIsWrapped = objIsObj && hasOwnProperty13.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty13.call(other, "__wrapped__");
|
|
2104
|
+
if (objIsWrapped || othIsWrapped) {
|
|
2105
|
+
var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
2106
|
+
stack || (stack = new Stack_default());
|
|
2107
|
+
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
|
2108
|
+
}
|
|
2109
|
+
}
|
|
2110
|
+
if (!isSameTag) {
|
|
2111
|
+
return false;
|
|
2112
|
+
}
|
|
2113
|
+
stack || (stack = new Stack_default());
|
|
2114
|
+
return equalObjects_default(object, other, bitmask, customizer, equalFunc, stack);
|
|
2115
|
+
}
|
|
2116
|
+
var baseIsEqualDeep_default = baseIsEqualDeep;
|
|
2117
|
+
|
|
2118
|
+
// ../node_modules/lodash-es/_baseIsEqual.js
|
|
2119
|
+
function baseIsEqual(value, other, bitmask, customizer, stack) {
|
|
2120
|
+
if (value === other) {
|
|
2121
|
+
return true;
|
|
2122
|
+
}
|
|
2123
|
+
if (value == null || other == null || !isObjectLike_default(value) && !isObjectLike_default(other)) {
|
|
2124
|
+
return value !== value && other !== other;
|
|
2125
|
+
}
|
|
2126
|
+
return baseIsEqualDeep_default(value, other, bitmask, customizer, baseIsEqual, stack);
|
|
2127
|
+
}
|
|
2128
|
+
var baseIsEqual_default = baseIsEqual;
|
|
2129
|
+
|
|
2130
|
+
// ../node_modules/lodash-es/_baseIsMatch.js
|
|
2131
|
+
var COMPARE_PARTIAL_FLAG5 = 1;
|
|
2132
|
+
var COMPARE_UNORDERED_FLAG3 = 2;
|
|
2133
|
+
function baseIsMatch(object, source, matchData, customizer) {
|
|
2134
|
+
var index = matchData.length, length = index, noCustomizer = !customizer;
|
|
2135
|
+
if (object == null) {
|
|
2136
|
+
return !length;
|
|
2137
|
+
}
|
|
2138
|
+
object = Object(object);
|
|
2139
|
+
while (index--) {
|
|
2140
|
+
var data = matchData[index];
|
|
2141
|
+
if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
|
|
2142
|
+
return false;
|
|
2143
|
+
}
|
|
2144
|
+
}
|
|
2145
|
+
while (++index < length) {
|
|
2146
|
+
data = matchData[index];
|
|
2147
|
+
var key = data[0], objValue = object[key], srcValue = data[1];
|
|
2148
|
+
if (noCustomizer && data[2]) {
|
|
2149
|
+
if (objValue === void 0 && !(key in object)) {
|
|
2150
|
+
return false;
|
|
2151
|
+
}
|
|
2152
|
+
} else {
|
|
2153
|
+
var stack = new Stack_default();
|
|
2154
|
+
if (customizer) {
|
|
2155
|
+
var result = customizer(objValue, srcValue, key, object, source, stack);
|
|
2156
|
+
}
|
|
2157
|
+
if (!(result === void 0 ? baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG5 | COMPARE_UNORDERED_FLAG3, customizer, stack) : result)) {
|
|
2158
|
+
return false;
|
|
2159
|
+
}
|
|
2160
|
+
}
|
|
2161
|
+
}
|
|
2162
|
+
return true;
|
|
2163
|
+
}
|
|
2164
|
+
var baseIsMatch_default = baseIsMatch;
|
|
2165
|
+
|
|
2166
|
+
// ../node_modules/lodash-es/_isStrictComparable.js
|
|
2167
|
+
function isStrictComparable(value) {
|
|
2168
|
+
return value === value && !isObject_default(value);
|
|
2169
|
+
}
|
|
2170
|
+
var isStrictComparable_default = isStrictComparable;
|
|
2171
|
+
|
|
2172
|
+
// ../node_modules/lodash-es/_getMatchData.js
|
|
2173
|
+
function getMatchData(object) {
|
|
2174
|
+
var result = keys_default(object), length = result.length;
|
|
2175
|
+
while (length--) {
|
|
2176
|
+
var key = result[length], value = object[key];
|
|
2177
|
+
result[length] = [key, value, isStrictComparable_default(value)];
|
|
2178
|
+
}
|
|
2179
|
+
return result;
|
|
2180
|
+
}
|
|
2181
|
+
var getMatchData_default = getMatchData;
|
|
2182
|
+
|
|
2183
|
+
// ../node_modules/lodash-es/_matchesStrictComparable.js
|
|
2184
|
+
function matchesStrictComparable(key, srcValue) {
|
|
2185
|
+
return function(object) {
|
|
2186
|
+
if (object == null) {
|
|
2187
|
+
return false;
|
|
2188
|
+
}
|
|
2189
|
+
return object[key] === srcValue && (srcValue !== void 0 || key in Object(object));
|
|
2190
|
+
};
|
|
2191
|
+
}
|
|
2192
|
+
var matchesStrictComparable_default = matchesStrictComparable;
|
|
2193
|
+
|
|
2194
|
+
// ../node_modules/lodash-es/_baseMatches.js
|
|
2195
|
+
function baseMatches(source) {
|
|
2196
|
+
var matchData = getMatchData_default(source);
|
|
2197
|
+
if (matchData.length == 1 && matchData[0][2]) {
|
|
2198
|
+
return matchesStrictComparable_default(matchData[0][0], matchData[0][1]);
|
|
2199
|
+
}
|
|
2200
|
+
return function(object) {
|
|
2201
|
+
return object === source || baseIsMatch_default(object, source, matchData);
|
|
2202
|
+
};
|
|
2203
|
+
}
|
|
2204
|
+
var baseMatches_default = baseMatches;
|
|
2205
|
+
|
|
2206
|
+
// ../node_modules/lodash-es/_baseHasIn.js
|
|
2207
|
+
function baseHasIn(object, key) {
|
|
2208
|
+
return object != null && key in Object(object);
|
|
2209
|
+
}
|
|
2210
|
+
var baseHasIn_default = baseHasIn;
|
|
2211
|
+
|
|
2212
|
+
// ../node_modules/lodash-es/_hasPath.js
|
|
2213
|
+
function hasPath(object, path2, hasFunc) {
|
|
2214
|
+
path2 = castPath_default(path2, object);
|
|
2215
|
+
var index = -1, length = path2.length, result = false;
|
|
2216
|
+
while (++index < length) {
|
|
2217
|
+
var key = toKey_default(path2[index]);
|
|
2218
|
+
if (!(result = object != null && hasFunc(object, key))) {
|
|
2219
|
+
break;
|
|
2220
|
+
}
|
|
2221
|
+
object = object[key];
|
|
2222
|
+
}
|
|
2223
|
+
if (result || ++index != length) {
|
|
2224
|
+
return result;
|
|
2225
|
+
}
|
|
2226
|
+
length = object == null ? 0 : object.length;
|
|
2227
|
+
return !!length && isLength_default(length) && isIndex_default(key, length) && (isArray_default(object) || isArguments_default(object));
|
|
2228
|
+
}
|
|
2229
|
+
var hasPath_default = hasPath;
|
|
2230
|
+
|
|
2231
|
+
// ../node_modules/lodash-es/hasIn.js
|
|
2232
|
+
function hasIn(object, path2) {
|
|
2233
|
+
return object != null && hasPath_default(object, path2, baseHasIn_default);
|
|
2234
|
+
}
|
|
2235
|
+
var hasIn_default = hasIn;
|
|
2236
|
+
|
|
2237
|
+
// ../node_modules/lodash-es/_baseMatchesProperty.js
|
|
2238
|
+
var COMPARE_PARTIAL_FLAG6 = 1;
|
|
2239
|
+
var COMPARE_UNORDERED_FLAG4 = 2;
|
|
2240
|
+
function baseMatchesProperty(path2, srcValue) {
|
|
2241
|
+
if (isKey_default(path2) && isStrictComparable_default(srcValue)) {
|
|
2242
|
+
return matchesStrictComparable_default(toKey_default(path2), srcValue);
|
|
2243
|
+
}
|
|
2244
|
+
return function(object) {
|
|
2245
|
+
var objValue = get_default(object, path2);
|
|
2246
|
+
return objValue === void 0 && objValue === srcValue ? hasIn_default(object, path2) : baseIsEqual_default(srcValue, objValue, COMPARE_PARTIAL_FLAG6 | COMPARE_UNORDERED_FLAG4);
|
|
2247
|
+
};
|
|
2248
|
+
}
|
|
2249
|
+
var baseMatchesProperty_default = baseMatchesProperty;
|
|
2250
|
+
|
|
2251
|
+
// ../node_modules/lodash-es/_baseProperty.js
|
|
2252
|
+
function baseProperty(key) {
|
|
2253
|
+
return function(object) {
|
|
2254
|
+
return object == null ? void 0 : object[key];
|
|
2255
|
+
};
|
|
2256
|
+
}
|
|
2257
|
+
var baseProperty_default = baseProperty;
|
|
2258
|
+
|
|
2259
|
+
// ../node_modules/lodash-es/_basePropertyDeep.js
|
|
2260
|
+
function basePropertyDeep(path2) {
|
|
2261
|
+
return function(object) {
|
|
2262
|
+
return baseGet_default(object, path2);
|
|
2263
|
+
};
|
|
2264
|
+
}
|
|
2265
|
+
var basePropertyDeep_default = basePropertyDeep;
|
|
2266
|
+
|
|
2267
|
+
// ../node_modules/lodash-es/property.js
|
|
2268
|
+
function property(path2) {
|
|
2269
|
+
return isKey_default(path2) ? baseProperty_default(toKey_default(path2)) : basePropertyDeep_default(path2);
|
|
2270
|
+
}
|
|
2271
|
+
var property_default = property;
|
|
2272
|
+
|
|
2273
|
+
// ../node_modules/lodash-es/_baseIteratee.js
|
|
2274
|
+
function baseIteratee(value) {
|
|
2275
|
+
if (typeof value == "function") {
|
|
2276
|
+
return value;
|
|
2277
|
+
}
|
|
2278
|
+
if (value == null) {
|
|
2279
|
+
return identity_default;
|
|
2280
|
+
}
|
|
2281
|
+
if (typeof value == "object") {
|
|
2282
|
+
return isArray_default(value) ? baseMatchesProperty_default(value[0], value[1]) : baseMatches_default(value);
|
|
2283
|
+
}
|
|
2284
|
+
return property_default(value);
|
|
2285
|
+
}
|
|
2286
|
+
var baseIteratee_default = baseIteratee;
|
|
2287
|
+
|
|
2288
|
+
// ../node_modules/lodash-es/_createBaseFor.js
|
|
2289
|
+
function createBaseFor(fromRight) {
|
|
2290
|
+
return function(object, iteratee, keysFunc) {
|
|
2291
|
+
var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
|
|
2292
|
+
while (length--) {
|
|
2293
|
+
var key = props[fromRight ? length : ++index];
|
|
2294
|
+
if (iteratee(iterable[key], key, iterable) === false) {
|
|
2295
|
+
break;
|
|
2296
|
+
}
|
|
2297
|
+
}
|
|
2298
|
+
return object;
|
|
2299
|
+
};
|
|
2300
|
+
}
|
|
2301
|
+
var createBaseFor_default = createBaseFor;
|
|
2302
|
+
|
|
2303
|
+
// ../node_modules/lodash-es/_baseFor.js
|
|
2304
|
+
var baseFor = createBaseFor_default();
|
|
2305
|
+
var baseFor_default = baseFor;
|
|
2306
|
+
|
|
2307
|
+
// ../node_modules/lodash-es/_baseForOwn.js
|
|
2308
|
+
function baseForOwn(object, iteratee) {
|
|
2309
|
+
return object && baseFor_default(object, iteratee, keys_default);
|
|
2310
|
+
}
|
|
2311
|
+
var baseForOwn_default = baseForOwn;
|
|
2312
|
+
|
|
2313
|
+
// ../node_modules/lodash-es/_createBaseEach.js
|
|
2314
|
+
function createBaseEach(eachFunc, fromRight) {
|
|
2315
|
+
return function(collection, iteratee) {
|
|
2316
|
+
if (collection == null) {
|
|
2317
|
+
return collection;
|
|
2318
|
+
}
|
|
2319
|
+
if (!isArrayLike_default(collection)) {
|
|
2320
|
+
return eachFunc(collection, iteratee);
|
|
2321
|
+
}
|
|
2322
|
+
var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection);
|
|
2323
|
+
while (fromRight ? index-- : ++index < length) {
|
|
2324
|
+
if (iteratee(iterable[index], index, iterable) === false) {
|
|
2325
|
+
break;
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
return collection;
|
|
2329
|
+
};
|
|
2330
|
+
}
|
|
2331
|
+
var createBaseEach_default = createBaseEach;
|
|
2332
|
+
|
|
2333
|
+
// ../node_modules/lodash-es/_baseEach.js
|
|
2334
|
+
var baseEach = createBaseEach_default(baseForOwn_default);
|
|
2335
|
+
var baseEach_default = baseEach;
|
|
2336
|
+
|
|
2337
|
+
// ../node_modules/lodash-es/_assignMergeValue.js
|
|
2338
|
+
function assignMergeValue(object, key, value) {
|
|
2339
|
+
if (value !== void 0 && !eq_default(object[key], value) || value === void 0 && !(key in object)) {
|
|
2340
|
+
baseAssignValue_default(object, key, value);
|
|
2341
|
+
}
|
|
2342
|
+
}
|
|
2343
|
+
var assignMergeValue_default = assignMergeValue;
|
|
2344
|
+
|
|
2345
|
+
// ../node_modules/lodash-es/isArrayLikeObject.js
|
|
2346
|
+
function isArrayLikeObject(value) {
|
|
2347
|
+
return isObjectLike_default(value) && isArrayLike_default(value);
|
|
2348
|
+
}
|
|
2349
|
+
var isArrayLikeObject_default = isArrayLikeObject;
|
|
2350
|
+
|
|
2351
|
+
// ../node_modules/lodash-es/_safeGet.js
|
|
2352
|
+
function safeGet(object, key) {
|
|
2353
|
+
if (key === "constructor" && typeof object[key] === "function") {
|
|
2354
|
+
return;
|
|
2355
|
+
}
|
|
2356
|
+
if (key == "__proto__") {
|
|
2357
|
+
return;
|
|
2358
|
+
}
|
|
2359
|
+
return object[key];
|
|
2360
|
+
}
|
|
2361
|
+
var safeGet_default = safeGet;
|
|
2362
|
+
|
|
2363
|
+
// ../node_modules/lodash-es/toPlainObject.js
|
|
2364
|
+
function toPlainObject(value) {
|
|
2365
|
+
return copyObject_default(value, keysIn_default(value));
|
|
2366
|
+
}
|
|
2367
|
+
var toPlainObject_default = toPlainObject;
|
|
2368
|
+
|
|
2369
|
+
// ../node_modules/lodash-es/_baseMergeDeep.js
|
|
2370
|
+
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
|
2371
|
+
var objValue = safeGet_default(object, key), srcValue = safeGet_default(source, key), stacked = stack.get(srcValue);
|
|
2372
|
+
if (stacked) {
|
|
2373
|
+
assignMergeValue_default(object, key, stacked);
|
|
2374
|
+
return;
|
|
2375
|
+
}
|
|
2376
|
+
var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0;
|
|
2377
|
+
var isCommon = newValue === void 0;
|
|
2378
|
+
if (isCommon) {
|
|
2379
|
+
var isArr = isArray_default(srcValue), isBuff = !isArr && isBuffer_default(srcValue), isTyped = !isArr && !isBuff && isTypedArray_default(srcValue);
|
|
2380
|
+
newValue = srcValue;
|
|
2381
|
+
if (isArr || isBuff || isTyped) {
|
|
2382
|
+
if (isArray_default(objValue)) {
|
|
2383
|
+
newValue = objValue;
|
|
2384
|
+
} else if (isArrayLikeObject_default(objValue)) {
|
|
2385
|
+
newValue = copyArray_default(objValue);
|
|
2386
|
+
} else if (isBuff) {
|
|
2387
|
+
isCommon = false;
|
|
2388
|
+
newValue = cloneBuffer_default(srcValue, true);
|
|
2389
|
+
} else if (isTyped) {
|
|
2390
|
+
isCommon = false;
|
|
2391
|
+
newValue = cloneTypedArray_default(srcValue, true);
|
|
2392
|
+
} else {
|
|
2393
|
+
newValue = [];
|
|
2394
|
+
}
|
|
2395
|
+
} else if (isPlainObject_default(srcValue) || isArguments_default(srcValue)) {
|
|
2396
|
+
newValue = objValue;
|
|
2397
|
+
if (isArguments_default(objValue)) {
|
|
2398
|
+
newValue = toPlainObject_default(objValue);
|
|
2399
|
+
} else if (!isObject_default(objValue) || isFunction_default(objValue)) {
|
|
2400
|
+
newValue = initCloneObject_default(srcValue);
|
|
2401
|
+
}
|
|
2402
|
+
} else {
|
|
2403
|
+
isCommon = false;
|
|
2404
|
+
}
|
|
2405
|
+
}
|
|
2406
|
+
if (isCommon) {
|
|
2407
|
+
stack.set(srcValue, newValue);
|
|
2408
|
+
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
|
|
2409
|
+
stack["delete"](srcValue);
|
|
2410
|
+
}
|
|
2411
|
+
assignMergeValue_default(object, key, newValue);
|
|
2412
|
+
}
|
|
2413
|
+
var baseMergeDeep_default = baseMergeDeep;
|
|
2414
|
+
|
|
2415
|
+
// ../node_modules/lodash-es/_baseMerge.js
|
|
2416
|
+
function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
2417
|
+
if (object === source) {
|
|
2418
|
+
return;
|
|
2419
|
+
}
|
|
2420
|
+
baseFor_default(source, function(srcValue, key) {
|
|
2421
|
+
stack || (stack = new Stack_default());
|
|
2422
|
+
if (isObject_default(srcValue)) {
|
|
2423
|
+
baseMergeDeep_default(object, source, key, srcIndex, baseMerge, customizer, stack);
|
|
2424
|
+
} else {
|
|
2425
|
+
var newValue = customizer ? customizer(safeGet_default(object, key), srcValue, key + "", object, source, stack) : void 0;
|
|
2426
|
+
if (newValue === void 0) {
|
|
2427
|
+
newValue = srcValue;
|
|
2428
|
+
}
|
|
2429
|
+
assignMergeValue_default(object, key, newValue);
|
|
2430
|
+
}
|
|
2431
|
+
}, keysIn_default);
|
|
2432
|
+
}
|
|
2433
|
+
var baseMerge_default = baseMerge;
|
|
2434
|
+
|
|
2435
|
+
// ../node_modules/lodash-es/last.js
|
|
2436
|
+
function last(array) {
|
|
2437
|
+
var length = array == null ? 0 : array.length;
|
|
2438
|
+
return length ? array[length - 1] : void 0;
|
|
2439
|
+
}
|
|
2440
|
+
var last_default = last;
|
|
2441
|
+
|
|
2442
|
+
// ../node_modules/lodash-es/_baseMap.js
|
|
2443
|
+
function baseMap(collection, iteratee) {
|
|
2444
|
+
var index = -1, result = isArrayLike_default(collection) ? Array(collection.length) : [];
|
|
2445
|
+
baseEach_default(collection, function(value, key, collection2) {
|
|
2446
|
+
result[++index] = iteratee(value, key, collection2);
|
|
2447
|
+
});
|
|
2448
|
+
return result;
|
|
2449
|
+
}
|
|
2450
|
+
var baseMap_default = baseMap;
|
|
2451
|
+
|
|
2452
|
+
// ../node_modules/lodash-es/_parent.js
|
|
2453
|
+
function parent(object, path2) {
|
|
2454
|
+
return path2.length < 2 ? object : baseGet_default(object, baseSlice_default(path2, 0, -1));
|
|
2455
|
+
}
|
|
2456
|
+
var parent_default = parent;
|
|
2457
|
+
|
|
2458
|
+
// ../node_modules/lodash-es/isNil.js
|
|
2459
|
+
function isNil(value) {
|
|
2460
|
+
return value == null;
|
|
2461
|
+
}
|
|
2462
|
+
var isNil_default = isNil;
|
|
2463
|
+
|
|
2464
|
+
// ../node_modules/lodash-es/merge.js
|
|
2465
|
+
var merge = createAssigner_default(function(object, source, srcIndex) {
|
|
2466
|
+
baseMerge_default(object, source, srcIndex);
|
|
2467
|
+
});
|
|
2468
|
+
var merge_default = merge;
|
|
2469
|
+
|
|
2470
|
+
// ../node_modules/lodash-es/negate.js
|
|
2471
|
+
var FUNC_ERROR_TEXT2 = "Expected a function";
|
|
2472
|
+
function negate(predicate) {
|
|
2473
|
+
if (typeof predicate != "function") {
|
|
2474
|
+
throw new TypeError(FUNC_ERROR_TEXT2);
|
|
2475
|
+
}
|
|
2476
|
+
return function() {
|
|
2477
|
+
var args = arguments;
|
|
2478
|
+
switch (args.length) {
|
|
2479
|
+
case 0:
|
|
2480
|
+
return !predicate.call(this);
|
|
2481
|
+
case 1:
|
|
2482
|
+
return !predicate.call(this, args[0]);
|
|
2483
|
+
case 2:
|
|
2484
|
+
return !predicate.call(this, args[0], args[1]);
|
|
2485
|
+
case 3:
|
|
2486
|
+
return !predicate.call(this, args[0], args[1], args[2]);
|
|
2487
|
+
}
|
|
2488
|
+
return !predicate.apply(this, args);
|
|
2489
|
+
};
|
|
2490
|
+
}
|
|
2491
|
+
var negate_default = negate;
|
|
2492
|
+
|
|
2493
|
+
// ../node_modules/lodash-es/_baseUnset.js
|
|
2494
|
+
function baseUnset(object, path2) {
|
|
2495
|
+
path2 = castPath_default(path2, object);
|
|
2496
|
+
object = parent_default(object, path2);
|
|
2497
|
+
return object == null || delete object[toKey_default(last_default(path2))];
|
|
2498
|
+
}
|
|
2499
|
+
var baseUnset_default = baseUnset;
|
|
2500
|
+
|
|
2501
|
+
// ../node_modules/lodash-es/_customOmitClone.js
|
|
2502
|
+
function customOmitClone(value) {
|
|
2503
|
+
return isPlainObject_default(value) ? void 0 : value;
|
|
2504
|
+
}
|
|
2505
|
+
var customOmitClone_default = customOmitClone;
|
|
2506
|
+
|
|
2507
|
+
// ../node_modules/lodash-es/omit.js
|
|
2508
|
+
var CLONE_DEEP_FLAG2 = 1;
|
|
2509
|
+
var CLONE_FLAT_FLAG2 = 2;
|
|
2510
|
+
var CLONE_SYMBOLS_FLAG2 = 4;
|
|
2511
|
+
var omit = flatRest_default(function(object, paths) {
|
|
2512
|
+
var result = {};
|
|
2513
|
+
if (object == null) {
|
|
2514
|
+
return result;
|
|
2515
|
+
}
|
|
2516
|
+
var isDeep = false;
|
|
2517
|
+
paths = arrayMap_default(paths, function(path2) {
|
|
2518
|
+
path2 = castPath_default(path2, object);
|
|
2519
|
+
isDeep || (isDeep = path2.length > 1);
|
|
2520
|
+
return path2;
|
|
2521
|
+
});
|
|
2522
|
+
copyObject_default(object, getAllKeysIn_default(object), result);
|
|
2523
|
+
if (isDeep) {
|
|
2524
|
+
result = baseClone_default(result, CLONE_DEEP_FLAG2 | CLONE_FLAT_FLAG2 | CLONE_SYMBOLS_FLAG2, customOmitClone_default);
|
|
2525
|
+
}
|
|
2526
|
+
var length = paths.length;
|
|
2527
|
+
while (length--) {
|
|
2528
|
+
baseUnset_default(result, paths[length]);
|
|
2529
|
+
}
|
|
2530
|
+
return result;
|
|
2531
|
+
});
|
|
2532
|
+
var omit_default = omit;
|
|
2533
|
+
|
|
2534
|
+
// ../node_modules/lodash-es/_baseSet.js
|
|
2535
|
+
function baseSet(object, path2, value, customizer) {
|
|
2536
|
+
if (!isObject_default(object)) {
|
|
2537
|
+
return object;
|
|
2538
|
+
}
|
|
2539
|
+
path2 = castPath_default(path2, object);
|
|
2540
|
+
var index = -1, length = path2.length, lastIndex = length - 1, nested = object;
|
|
2541
|
+
while (nested != null && ++index < length) {
|
|
2542
|
+
var key = toKey_default(path2[index]), newValue = value;
|
|
2543
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
2544
|
+
return object;
|
|
2545
|
+
}
|
|
2546
|
+
if (index != lastIndex) {
|
|
2547
|
+
var objValue = nested[key];
|
|
2548
|
+
newValue = customizer ? customizer(objValue, key, nested) : void 0;
|
|
2549
|
+
if (newValue === void 0) {
|
|
2550
|
+
newValue = isObject_default(objValue) ? objValue : isIndex_default(path2[index + 1]) ? [] : {};
|
|
2551
|
+
}
|
|
2552
|
+
}
|
|
2553
|
+
assignValue_default(nested, key, newValue);
|
|
2554
|
+
nested = nested[key];
|
|
2555
|
+
}
|
|
2556
|
+
return object;
|
|
2557
|
+
}
|
|
2558
|
+
var baseSet_default = baseSet;
|
|
2559
|
+
|
|
2560
|
+
// ../node_modules/lodash-es/_basePickBy.js
|
|
2561
|
+
function basePickBy(object, paths, predicate) {
|
|
2562
|
+
var index = -1, length = paths.length, result = {};
|
|
2563
|
+
while (++index < length) {
|
|
2564
|
+
var path2 = paths[index], value = baseGet_default(object, path2);
|
|
2565
|
+
if (predicate(value, path2)) {
|
|
2566
|
+
baseSet_default(result, castPath_default(path2, object), value);
|
|
2567
|
+
}
|
|
2568
|
+
}
|
|
2569
|
+
return result;
|
|
2570
|
+
}
|
|
2571
|
+
var basePickBy_default = basePickBy;
|
|
2572
|
+
|
|
2573
|
+
// ../node_modules/lodash-es/pickBy.js
|
|
2574
|
+
function pickBy(object, predicate) {
|
|
2575
|
+
if (object == null) {
|
|
2576
|
+
return {};
|
|
2577
|
+
}
|
|
2578
|
+
var props = arrayMap_default(getAllKeysIn_default(object), function(prop) {
|
|
2579
|
+
return [prop];
|
|
2580
|
+
});
|
|
2581
|
+
predicate = baseIteratee_default(predicate);
|
|
2582
|
+
return basePickBy_default(object, props, function(value, path2) {
|
|
2583
|
+
return predicate(value, path2[0]);
|
|
2584
|
+
});
|
|
2585
|
+
}
|
|
2586
|
+
var pickBy_default = pickBy;
|
|
2587
|
+
|
|
2588
|
+
// ../node_modules/lodash-es/omitBy.js
|
|
2589
|
+
function omitBy(object, predicate) {
|
|
2590
|
+
return pickBy_default(object, negate_default(baseIteratee_default(predicate)));
|
|
2591
|
+
}
|
|
2592
|
+
var omitBy_default = omitBy;
|
|
2593
|
+
|
|
2594
|
+
// ../node_modules/lodash-es/_baseSortBy.js
|
|
2595
|
+
function baseSortBy(array, comparer) {
|
|
2596
|
+
var length = array.length;
|
|
2597
|
+
array.sort(comparer);
|
|
2598
|
+
while (length--) {
|
|
2599
|
+
array[length] = array[length].value;
|
|
2600
|
+
}
|
|
2601
|
+
return array;
|
|
2602
|
+
}
|
|
2603
|
+
var baseSortBy_default = baseSortBy;
|
|
2604
|
+
|
|
2605
|
+
// ../node_modules/lodash-es/_compareAscending.js
|
|
2606
|
+
function compareAscending(value, other) {
|
|
2607
|
+
if (value !== other) {
|
|
2608
|
+
var valIsDefined = value !== void 0, valIsNull = value === null, valIsReflexive = value === value, valIsSymbol = isSymbol_default(value);
|
|
2609
|
+
var othIsDefined = other !== void 0, othIsNull = other === null, othIsReflexive = other === other, othIsSymbol = isSymbol_default(other);
|
|
2610
|
+
if (!othIsNull && !othIsSymbol && !valIsSymbol && value > other || valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol || valIsNull && othIsDefined && othIsReflexive || !valIsDefined && othIsReflexive || !valIsReflexive) {
|
|
2611
|
+
return 1;
|
|
2612
|
+
}
|
|
2613
|
+
if (!valIsNull && !valIsSymbol && !othIsSymbol && value < other || othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol || othIsNull && valIsDefined && valIsReflexive || !othIsDefined && valIsReflexive || !othIsReflexive) {
|
|
2614
|
+
return -1;
|
|
2615
|
+
}
|
|
2616
|
+
}
|
|
2617
|
+
return 0;
|
|
2618
|
+
}
|
|
2619
|
+
var compareAscending_default = compareAscending;
|
|
2620
|
+
|
|
2621
|
+
// ../node_modules/lodash-es/_compareMultiple.js
|
|
2622
|
+
function compareMultiple(object, other, orders) {
|
|
2623
|
+
var index = -1, objCriteria = object.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length;
|
|
2624
|
+
while (++index < length) {
|
|
2625
|
+
var result = compareAscending_default(objCriteria[index], othCriteria[index]);
|
|
2626
|
+
if (result) {
|
|
2627
|
+
if (index >= ordersLength) {
|
|
2628
|
+
return result;
|
|
2629
|
+
}
|
|
2630
|
+
var order = orders[index];
|
|
2631
|
+
return result * (order == "desc" ? -1 : 1);
|
|
2632
|
+
}
|
|
2633
|
+
}
|
|
2634
|
+
return object.index - other.index;
|
|
2635
|
+
}
|
|
2636
|
+
var compareMultiple_default = compareMultiple;
|
|
2637
|
+
|
|
2638
|
+
// ../node_modules/lodash-es/_baseOrderBy.js
|
|
2639
|
+
function baseOrderBy(collection, iteratees, orders) {
|
|
2640
|
+
if (iteratees.length) {
|
|
2641
|
+
iteratees = arrayMap_default(iteratees, function(iteratee) {
|
|
2642
|
+
if (isArray_default(iteratee)) {
|
|
2643
|
+
return function(value) {
|
|
2644
|
+
return baseGet_default(value, iteratee.length === 1 ? iteratee[0] : iteratee);
|
|
2645
|
+
};
|
|
2646
|
+
}
|
|
2647
|
+
return iteratee;
|
|
2648
|
+
});
|
|
2649
|
+
} else {
|
|
2650
|
+
iteratees = [identity_default];
|
|
2651
|
+
}
|
|
2652
|
+
var index = -1;
|
|
2653
|
+
iteratees = arrayMap_default(iteratees, baseUnary_default(baseIteratee_default));
|
|
2654
|
+
var result = baseMap_default(collection, function(value, key, collection2) {
|
|
2655
|
+
var criteria = arrayMap_default(iteratees, function(iteratee) {
|
|
2656
|
+
return iteratee(value);
|
|
2657
|
+
});
|
|
2658
|
+
return { "criteria": criteria, "index": ++index, "value": value };
|
|
2659
|
+
});
|
|
2660
|
+
return baseSortBy_default(result, function(object, other) {
|
|
2661
|
+
return compareMultiple_default(object, other, orders);
|
|
2662
|
+
});
|
|
2663
|
+
}
|
|
2664
|
+
var baseOrderBy_default = baseOrderBy;
|
|
2665
|
+
|
|
2666
|
+
// ../node_modules/lodash-es/_basePick.js
|
|
2667
|
+
function basePick(object, paths) {
|
|
2668
|
+
return basePickBy_default(object, paths, function(value, path2) {
|
|
2669
|
+
return hasIn_default(object, path2);
|
|
2670
|
+
});
|
|
2671
|
+
}
|
|
2672
|
+
var basePick_default = basePick;
|
|
2673
|
+
|
|
2674
|
+
// ../node_modules/lodash-es/pick.js
|
|
2675
|
+
var pick2 = flatRest_default(function(object, paths) {
|
|
2676
|
+
return object == null ? {} : basePick_default(object, paths);
|
|
2677
|
+
});
|
|
2678
|
+
var pick_default = pick2;
|
|
2679
|
+
|
|
2680
|
+
// ../node_modules/lodash-es/sortBy.js
|
|
2681
|
+
var sortBy = baseRest_default(function(collection, iteratees) {
|
|
2682
|
+
if (collection == null) {
|
|
2683
|
+
return [];
|
|
2684
|
+
}
|
|
2685
|
+
var length = iteratees.length;
|
|
2686
|
+
if (length > 1 && isIterateeCall_default(collection, iteratees[0], iteratees[1])) {
|
|
2687
|
+
iteratees = [];
|
|
2688
|
+
} else if (length > 2 && isIterateeCall_default(iteratees[0], iteratees[1], iteratees[2])) {
|
|
2689
|
+
iteratees = [iteratees[0]];
|
|
2690
|
+
}
|
|
2691
|
+
return baseOrderBy_default(collection, baseFlatten_default(iteratees, 1), []);
|
|
2692
|
+
});
|
|
2693
|
+
var sortBy_default = sortBy;
|
|
2694
|
+
|
|
2695
|
+
// dist/utils/config.js
|
|
332
2696
|
async function readNapiConfig(path2, configPath) {
|
|
333
2697
|
if (configPath && !await fileExists(configPath)) {
|
|
334
2698
|
throw new Error(`NAPI-RS config not found at ${configPath}`);
|
|
@@ -363,13 +2727,13 @@ async function readNapiConfig(path2, configPath) {
|
|
|
363
2727
|
console.warn((0, import_colorette.yellow)(`Both napi field in ${pkgJsonPath} and [NAPI-RS config](${configPathUnderline}) file are found, the NAPI-RS config file will be used.`));
|
|
364
2728
|
Object.assign(userNapiConfig, separatedConfig);
|
|
365
2729
|
}
|
|
366
|
-
const napiConfig = (
|
|
2730
|
+
const napiConfig = merge_default({
|
|
367
2731
|
binaryName: "index",
|
|
368
2732
|
packageName: pkgJson2.name,
|
|
369
2733
|
targets: [],
|
|
370
2734
|
packageJson: pkgJson2,
|
|
371
2735
|
npmClient: "npm"
|
|
372
|
-
}, (
|
|
2736
|
+
}, omit_default(userNapiConfig, "targets"));
|
|
373
2737
|
let targets = userNapiConfig.targets ?? [];
|
|
374
2738
|
if (userNapiConfig?.name) {
|
|
375
2739
|
console.warn((0, import_colorette.yellow)(`[DEPRECATED] napi.name is deprecated, use napi.binaryName instead.`));
|
|
@@ -427,7 +2791,6 @@ function detectCargoBinary(bin) {
|
|
|
427
2791
|
}
|
|
428
2792
|
|
|
429
2793
|
// dist/utils/typegen.js
|
|
430
|
-
var import_lodash_es2 = require("lodash-es");
|
|
431
2794
|
var TOP_LEVEL_NAMESPACE = "__TOP_LEVEL_MODULE__";
|
|
432
2795
|
var DEFAULT_TYPE_DEF_HEADER = `/* auto-generated by NAPI-RS */
|
|
433
2796
|
/* eslint-disable */
|
|
@@ -494,7 +2857,7 @@ async function processTypeDef(intermediateTypeFile, constEnum, header) {
|
|
|
494
2857
|
const groupedDefs = preprocessTypeDef(defs);
|
|
495
2858
|
header = header ?? "";
|
|
496
2859
|
let dts = "";
|
|
497
|
-
(
|
|
2860
|
+
sortBy_default(Array.from(groupedDefs), ([namespace]) => namespace).forEach(([namespace, defs2]) => {
|
|
498
2861
|
if (namespace === TOP_LEVEL_NAMESPACE) {
|
|
499
2862
|
for (const def of defs2) {
|
|
500
2863
|
dts += prettyPrint(def, constEnum, 0) + "\n\n";
|
|
@@ -672,13 +3035,13 @@ async function collectArtifacts(userOptions) {
|
|
|
672
3035
|
await writeFileAsync((0, import_node_path.join)(wasiDir, `wasi-worker-browser.mjs`), await readFileAsync(browserWorkerFile));
|
|
673
3036
|
}
|
|
674
3037
|
}
|
|
675
|
-
async function collectNodeBinaries(
|
|
676
|
-
const files = await readdirAsync(
|
|
677
|
-
const nodeBinaries = files.filter((file) => file.isFile() && (file.name.endsWith(".node") || file.name.endsWith(".wasm"))).map((file) => (0, import_node_path.join)(
|
|
3038
|
+
async function collectNodeBinaries(root2) {
|
|
3039
|
+
const files = await readdirAsync(root2, { withFileTypes: true });
|
|
3040
|
+
const nodeBinaries = files.filter((file) => file.isFile() && (file.name.endsWith(".node") || file.name.endsWith(".wasm"))).map((file) => (0, import_node_path.join)(root2, file.name));
|
|
678
3041
|
const dirs = files.filter((file) => file.isDirectory());
|
|
679
3042
|
for (const dir of dirs) {
|
|
680
3043
|
if (dir.name !== "node_modules") {
|
|
681
|
-
nodeBinaries.push(...await collectNodeBinaries((0, import_node_path.join)(
|
|
3044
|
+
nodeBinaries.push(...await collectNodeBinaries((0, import_node_path.join)(root2, dir.name)));
|
|
682
3045
|
}
|
|
683
3046
|
}
|
|
684
3047
|
return nodeBinaries;
|
|
@@ -1885,8 +4248,7 @@ const __wasi = new __WASI({
|
|
|
1885
4248
|
const __wasi = new __WASI({
|
|
1886
4249
|
version: 'preview1',
|
|
1887
4250
|
})`;
|
|
1888
|
-
const workerFsHandler = fs2 ? `
|
|
1889
|
-
worker.addEventListener('message', __wasmCreateOnMessageForFsProxy(__fs))
|
|
4251
|
+
const workerFsHandler = fs2 ? `worker.addEventListener('message', __wasmCreateOnMessageForFsProxy(__fs))
|
|
1890
4252
|
` : "";
|
|
1891
4253
|
return `import {
|
|
1892
4254
|
instantiateNapiModuleSync as __emnapiInstantiateNapiModuleSync,
|
|
@@ -2569,7 +4931,7 @@ var Builder = class {
|
|
|
2569
4931
|
kind: dest.endsWith(".node") ? "node" : isWasm ? "wasm" : "exe",
|
|
2570
4932
|
path: dest
|
|
2571
4933
|
});
|
|
2572
|
-
return wasmBinaryName;
|
|
4934
|
+
return wasmBinaryName ? (0, import_node_path2.join)(this.outputDir, wasmBinaryName) : null;
|
|
2573
4935
|
} catch (e) {
|
|
2574
4936
|
throw new Error("Failed to copy artifact", {
|
|
2575
4937
|
cause: e
|
|
@@ -3346,7 +5708,6 @@ function parseTag(tag) {
|
|
|
3346
5708
|
|
|
3347
5709
|
// dist/api/rename.js
|
|
3348
5710
|
var import_node_path7 = require("node:path");
|
|
3349
|
-
var import_lodash_es3 = require("lodash-es");
|
|
3350
5711
|
|
|
3351
5712
|
// dist/def/rename.js
|
|
3352
5713
|
var import_clipanion6 = require("clipanion");
|
|
@@ -3417,11 +5778,11 @@ async function renameProject(userOptions) {
|
|
|
3417
5778
|
const cargoTomlPath = (0, import_node_path7.resolve)(options.cwd, options.manifestPath);
|
|
3418
5779
|
const packageJsonContent = await readFileAsync(packageJsonPath, "utf8");
|
|
3419
5780
|
const packageJsonData = JSON.parse(packageJsonContent);
|
|
3420
|
-
(
|
|
3421
|
-
napi: (
|
|
5781
|
+
merge_default(packageJsonData, omitBy_default(pick_default(options, ["name", "description", "author", "license"]), isNil_default), {
|
|
5782
|
+
napi: omitBy_default({
|
|
3422
5783
|
binaryName: options.binaryName,
|
|
3423
5784
|
packageName: options.packageName
|
|
3424
|
-
},
|
|
5785
|
+
}, isNil_default)
|
|
3425
5786
|
});
|
|
3426
5787
|
if (options.configPath) {
|
|
3427
5788
|
const configPath = (0, import_node_path7.resolve)(options.cwd, options.configPath);
|
|
@@ -3533,3 +5894,16 @@ var NapiCli = class {
|
|
|
3533
5894
|
NapiCli,
|
|
3534
5895
|
parseTriple
|
|
3535
5896
|
});
|
|
5897
|
+
/*! Bundled license information:
|
|
5898
|
+
|
|
5899
|
+
lodash-es/lodash.js:
|
|
5900
|
+
(**
|
|
5901
|
+
* @license
|
|
5902
|
+
* Lodash (Custom Build) <https://lodash.com/>
|
|
5903
|
+
* Build: `lodash modularize exports="es" -o ./`
|
|
5904
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
5905
|
+
* Released under MIT license <https://lodash.com/license>
|
|
5906
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
5907
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
5908
|
+
*)
|
|
5909
|
+
*/
|