@popsure/dirty-swan 0.38.2 → 0.38.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -3310,1861 +3310,6 @@ function toNumber(value) {
3310
3310
 
3311
3311
  var lodash_debounce = debounce;
3312
3312
 
3313
- var lodash_isequal = {exports: {}};
3314
-
3315
- /**
3316
- * Lodash (Custom Build) <https://lodash.com/>
3317
- * Build: `lodash modularize exports="npm" -o ./`
3318
- * Copyright JS Foundation and other contributors <https://js.foundation/>
3319
- * Released under MIT license <https://lodash.com/license>
3320
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
3321
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
3322
- */
3323
-
3324
- (function (module, exports) {
3325
- /** Used as the size to enable large array optimizations. */
3326
- var LARGE_ARRAY_SIZE = 200;
3327
-
3328
- /** Used to stand-in for `undefined` hash values. */
3329
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
3330
-
3331
- /** Used to compose bitmasks for value comparisons. */
3332
- var COMPARE_PARTIAL_FLAG = 1,
3333
- COMPARE_UNORDERED_FLAG = 2;
3334
-
3335
- /** Used as references for various `Number` constants. */
3336
- var MAX_SAFE_INTEGER = 9007199254740991;
3337
-
3338
- /** `Object#toString` result references. */
3339
- var argsTag = '[object Arguments]',
3340
- arrayTag = '[object Array]',
3341
- asyncTag = '[object AsyncFunction]',
3342
- boolTag = '[object Boolean]',
3343
- dateTag = '[object Date]',
3344
- errorTag = '[object Error]',
3345
- funcTag = '[object Function]',
3346
- genTag = '[object GeneratorFunction]',
3347
- mapTag = '[object Map]',
3348
- numberTag = '[object Number]',
3349
- nullTag = '[object Null]',
3350
- objectTag = '[object Object]',
3351
- promiseTag = '[object Promise]',
3352
- proxyTag = '[object Proxy]',
3353
- regexpTag = '[object RegExp]',
3354
- setTag = '[object Set]',
3355
- stringTag = '[object String]',
3356
- symbolTag = '[object Symbol]',
3357
- undefinedTag = '[object Undefined]',
3358
- weakMapTag = '[object WeakMap]';
3359
-
3360
- var arrayBufferTag = '[object ArrayBuffer]',
3361
- dataViewTag = '[object DataView]',
3362
- float32Tag = '[object Float32Array]',
3363
- float64Tag = '[object Float64Array]',
3364
- int8Tag = '[object Int8Array]',
3365
- int16Tag = '[object Int16Array]',
3366
- int32Tag = '[object Int32Array]',
3367
- uint8Tag = '[object Uint8Array]',
3368
- uint8ClampedTag = '[object Uint8ClampedArray]',
3369
- uint16Tag = '[object Uint16Array]',
3370
- uint32Tag = '[object Uint32Array]';
3371
-
3372
- /**
3373
- * Used to match `RegExp`
3374
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
3375
- */
3376
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
3377
-
3378
- /** Used to detect host constructors (Safari). */
3379
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
3380
-
3381
- /** Used to detect unsigned integer values. */
3382
- var reIsUint = /^(?:0|[1-9]\d*)$/;
3383
-
3384
- /** Used to identify `toStringTag` values of typed arrays. */
3385
- var typedArrayTags = {};
3386
- typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
3387
- typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
3388
- typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
3389
- typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
3390
- typedArrayTags[uint32Tag] = true;
3391
- typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
3392
- typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
3393
- typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
3394
- typedArrayTags[errorTag] = typedArrayTags[funcTag] =
3395
- typedArrayTags[mapTag] = typedArrayTags[numberTag] =
3396
- typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
3397
- typedArrayTags[setTag] = typedArrayTags[stringTag] =
3398
- typedArrayTags[weakMapTag] = false;
3399
-
3400
- /** Detect free variable `global` from Node.js. */
3401
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
3402
-
3403
- /** Detect free variable `self`. */
3404
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
3405
-
3406
- /** Used as a reference to the global object. */
3407
- var root = freeGlobal || freeSelf || Function('return this')();
3408
-
3409
- /** Detect free variable `exports`. */
3410
- var freeExports = exports && !exports.nodeType && exports;
3411
-
3412
- /** Detect free variable `module`. */
3413
- var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
3414
-
3415
- /** Detect the popular CommonJS extension `module.exports`. */
3416
- var moduleExports = freeModule && freeModule.exports === freeExports;
3417
-
3418
- /** Detect free variable `process` from Node.js. */
3419
- var freeProcess = moduleExports && freeGlobal.process;
3420
-
3421
- /** Used to access faster Node.js helpers. */
3422
- var nodeUtil = (function() {
3423
- try {
3424
- return freeProcess && freeProcess.binding && freeProcess.binding('util');
3425
- } catch (e) {}
3426
- }());
3427
-
3428
- /* Node.js helper references. */
3429
- var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
3430
-
3431
- /**
3432
- * A specialized version of `_.filter` for arrays without support for
3433
- * iteratee shorthands.
3434
- *
3435
- * @private
3436
- * @param {Array} [array] The array to iterate over.
3437
- * @param {Function} predicate The function invoked per iteration.
3438
- * @returns {Array} Returns the new filtered array.
3439
- */
3440
- function arrayFilter(array, predicate) {
3441
- var index = -1,
3442
- length = array == null ? 0 : array.length,
3443
- resIndex = 0,
3444
- result = [];
3445
-
3446
- while (++index < length) {
3447
- var value = array[index];
3448
- if (predicate(value, index, array)) {
3449
- result[resIndex++] = value;
3450
- }
3451
- }
3452
- return result;
3453
- }
3454
-
3455
- /**
3456
- * Appends the elements of `values` to `array`.
3457
- *
3458
- * @private
3459
- * @param {Array} array The array to modify.
3460
- * @param {Array} values The values to append.
3461
- * @returns {Array} Returns `array`.
3462
- */
3463
- function arrayPush(array, values) {
3464
- var index = -1,
3465
- length = values.length,
3466
- offset = array.length;
3467
-
3468
- while (++index < length) {
3469
- array[offset + index] = values[index];
3470
- }
3471
- return array;
3472
- }
3473
-
3474
- /**
3475
- * A specialized version of `_.some` for arrays without support for iteratee
3476
- * shorthands.
3477
- *
3478
- * @private
3479
- * @param {Array} [array] The array to iterate over.
3480
- * @param {Function} predicate The function invoked per iteration.
3481
- * @returns {boolean} Returns `true` if any element passes the predicate check,
3482
- * else `false`.
3483
- */
3484
- function arraySome(array, predicate) {
3485
- var index = -1,
3486
- length = array == null ? 0 : array.length;
3487
-
3488
- while (++index < length) {
3489
- if (predicate(array[index], index, array)) {
3490
- return true;
3491
- }
3492
- }
3493
- return false;
3494
- }
3495
-
3496
- /**
3497
- * The base implementation of `_.times` without support for iteratee shorthands
3498
- * or max array length checks.
3499
- *
3500
- * @private
3501
- * @param {number} n The number of times to invoke `iteratee`.
3502
- * @param {Function} iteratee The function invoked per iteration.
3503
- * @returns {Array} Returns the array of results.
3504
- */
3505
- function baseTimes(n, iteratee) {
3506
- var index = -1,
3507
- result = Array(n);
3508
-
3509
- while (++index < n) {
3510
- result[index] = iteratee(index);
3511
- }
3512
- return result;
3513
- }
3514
-
3515
- /**
3516
- * The base implementation of `_.unary` without support for storing metadata.
3517
- *
3518
- * @private
3519
- * @param {Function} func The function to cap arguments for.
3520
- * @returns {Function} Returns the new capped function.
3521
- */
3522
- function baseUnary(func) {
3523
- return function(value) {
3524
- return func(value);
3525
- };
3526
- }
3527
-
3528
- /**
3529
- * Checks if a `cache` value for `key` exists.
3530
- *
3531
- * @private
3532
- * @param {Object} cache The cache to query.
3533
- * @param {string} key The key of the entry to check.
3534
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
3535
- */
3536
- function cacheHas(cache, key) {
3537
- return cache.has(key);
3538
- }
3539
-
3540
- /**
3541
- * Gets the value at `key` of `object`.
3542
- *
3543
- * @private
3544
- * @param {Object} [object] The object to query.
3545
- * @param {string} key The key of the property to get.
3546
- * @returns {*} Returns the property value.
3547
- */
3548
- function getValue(object, key) {
3549
- return object == null ? undefined : object[key];
3550
- }
3551
-
3552
- /**
3553
- * Converts `map` to its key-value pairs.
3554
- *
3555
- * @private
3556
- * @param {Object} map The map to convert.
3557
- * @returns {Array} Returns the key-value pairs.
3558
- */
3559
- function mapToArray(map) {
3560
- var index = -1,
3561
- result = Array(map.size);
3562
-
3563
- map.forEach(function(value, key) {
3564
- result[++index] = [key, value];
3565
- });
3566
- return result;
3567
- }
3568
-
3569
- /**
3570
- * Creates a unary function that invokes `func` with its argument transformed.
3571
- *
3572
- * @private
3573
- * @param {Function} func The function to wrap.
3574
- * @param {Function} transform The argument transform.
3575
- * @returns {Function} Returns the new function.
3576
- */
3577
- function overArg(func, transform) {
3578
- return function(arg) {
3579
- return func(transform(arg));
3580
- };
3581
- }
3582
-
3583
- /**
3584
- * Converts `set` to an array of its values.
3585
- *
3586
- * @private
3587
- * @param {Object} set The set to convert.
3588
- * @returns {Array} Returns the values.
3589
- */
3590
- function setToArray(set) {
3591
- var index = -1,
3592
- result = Array(set.size);
3593
-
3594
- set.forEach(function(value) {
3595
- result[++index] = value;
3596
- });
3597
- return result;
3598
- }
3599
-
3600
- /** Used for built-in method references. */
3601
- var arrayProto = Array.prototype,
3602
- funcProto = Function.prototype,
3603
- objectProto = Object.prototype;
3604
-
3605
- /** Used to detect overreaching core-js shims. */
3606
- var coreJsData = root['__core-js_shared__'];
3607
-
3608
- /** Used to resolve the decompiled source of functions. */
3609
- var funcToString = funcProto.toString;
3610
-
3611
- /** Used to check objects for own properties. */
3612
- var hasOwnProperty = objectProto.hasOwnProperty;
3613
-
3614
- /** Used to detect methods masquerading as native. */
3615
- var maskSrcKey = (function() {
3616
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
3617
- return uid ? ('Symbol(src)_1.' + uid) : '';
3618
- }());
3619
-
3620
- /**
3621
- * Used to resolve the
3622
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
3623
- * of values.
3624
- */
3625
- var nativeObjectToString = objectProto.toString;
3626
-
3627
- /** Used to detect if a method is native. */
3628
- var reIsNative = RegExp('^' +
3629
- funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
3630
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
3631
- );
3632
-
3633
- /** Built-in value references. */
3634
- var Buffer = moduleExports ? root.Buffer : undefined,
3635
- Symbol = root.Symbol,
3636
- Uint8Array = root.Uint8Array,
3637
- propertyIsEnumerable = objectProto.propertyIsEnumerable,
3638
- splice = arrayProto.splice,
3639
- symToStringTag = Symbol ? Symbol.toStringTag : undefined;
3640
-
3641
- /* Built-in method references for those with the same name as other `lodash` methods. */
3642
- var nativeGetSymbols = Object.getOwnPropertySymbols,
3643
- nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
3644
- nativeKeys = overArg(Object.keys, Object);
3645
-
3646
- /* Built-in method references that are verified to be native. */
3647
- var DataView = getNative(root, 'DataView'),
3648
- Map = getNative(root, 'Map'),
3649
- Promise = getNative(root, 'Promise'),
3650
- Set = getNative(root, 'Set'),
3651
- WeakMap = getNative(root, 'WeakMap'),
3652
- nativeCreate = getNative(Object, 'create');
3653
-
3654
- /** Used to detect maps, sets, and weakmaps. */
3655
- var dataViewCtorString = toSource(DataView),
3656
- mapCtorString = toSource(Map),
3657
- promiseCtorString = toSource(Promise),
3658
- setCtorString = toSource(Set),
3659
- weakMapCtorString = toSource(WeakMap);
3660
-
3661
- /** Used to convert symbols to primitives and strings. */
3662
- var symbolProto = Symbol ? Symbol.prototype : undefined,
3663
- symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
3664
-
3665
- /**
3666
- * Creates a hash object.
3667
- *
3668
- * @private
3669
- * @constructor
3670
- * @param {Array} [entries] The key-value pairs to cache.
3671
- */
3672
- function Hash(entries) {
3673
- var index = -1,
3674
- length = entries == null ? 0 : entries.length;
3675
-
3676
- this.clear();
3677
- while (++index < length) {
3678
- var entry = entries[index];
3679
- this.set(entry[0], entry[1]);
3680
- }
3681
- }
3682
-
3683
- /**
3684
- * Removes all key-value entries from the hash.
3685
- *
3686
- * @private
3687
- * @name clear
3688
- * @memberOf Hash
3689
- */
3690
- function hashClear() {
3691
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
3692
- this.size = 0;
3693
- }
3694
-
3695
- /**
3696
- * Removes `key` and its value from the hash.
3697
- *
3698
- * @private
3699
- * @name delete
3700
- * @memberOf Hash
3701
- * @param {Object} hash The hash to modify.
3702
- * @param {string} key The key of the value to remove.
3703
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
3704
- */
3705
- function hashDelete(key) {
3706
- var result = this.has(key) && delete this.__data__[key];
3707
- this.size -= result ? 1 : 0;
3708
- return result;
3709
- }
3710
-
3711
- /**
3712
- * Gets the hash value for `key`.
3713
- *
3714
- * @private
3715
- * @name get
3716
- * @memberOf Hash
3717
- * @param {string} key The key of the value to get.
3718
- * @returns {*} Returns the entry value.
3719
- */
3720
- function hashGet(key) {
3721
- var data = this.__data__;
3722
- if (nativeCreate) {
3723
- var result = data[key];
3724
- return result === HASH_UNDEFINED ? undefined : result;
3725
- }
3726
- return hasOwnProperty.call(data, key) ? data[key] : undefined;
3727
- }
3728
-
3729
- /**
3730
- * Checks if a hash value for `key` exists.
3731
- *
3732
- * @private
3733
- * @name has
3734
- * @memberOf Hash
3735
- * @param {string} key The key of the entry to check.
3736
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
3737
- */
3738
- function hashHas(key) {
3739
- var data = this.__data__;
3740
- return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
3741
- }
3742
-
3743
- /**
3744
- * Sets the hash `key` to `value`.
3745
- *
3746
- * @private
3747
- * @name set
3748
- * @memberOf Hash
3749
- * @param {string} key The key of the value to set.
3750
- * @param {*} value The value to set.
3751
- * @returns {Object} Returns the hash instance.
3752
- */
3753
- function hashSet(key, value) {
3754
- var data = this.__data__;
3755
- this.size += this.has(key) ? 0 : 1;
3756
- data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
3757
- return this;
3758
- }
3759
-
3760
- // Add methods to `Hash`.
3761
- Hash.prototype.clear = hashClear;
3762
- Hash.prototype['delete'] = hashDelete;
3763
- Hash.prototype.get = hashGet;
3764
- Hash.prototype.has = hashHas;
3765
- Hash.prototype.set = hashSet;
3766
-
3767
- /**
3768
- * Creates an list cache object.
3769
- *
3770
- * @private
3771
- * @constructor
3772
- * @param {Array} [entries] The key-value pairs to cache.
3773
- */
3774
- function ListCache(entries) {
3775
- var index = -1,
3776
- length = entries == null ? 0 : entries.length;
3777
-
3778
- this.clear();
3779
- while (++index < length) {
3780
- var entry = entries[index];
3781
- this.set(entry[0], entry[1]);
3782
- }
3783
- }
3784
-
3785
- /**
3786
- * Removes all key-value entries from the list cache.
3787
- *
3788
- * @private
3789
- * @name clear
3790
- * @memberOf ListCache
3791
- */
3792
- function listCacheClear() {
3793
- this.__data__ = [];
3794
- this.size = 0;
3795
- }
3796
-
3797
- /**
3798
- * Removes `key` and its value from the list cache.
3799
- *
3800
- * @private
3801
- * @name delete
3802
- * @memberOf ListCache
3803
- * @param {string} key The key of the value to remove.
3804
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
3805
- */
3806
- function listCacheDelete(key) {
3807
- var data = this.__data__,
3808
- index = assocIndexOf(data, key);
3809
-
3810
- if (index < 0) {
3811
- return false;
3812
- }
3813
- var lastIndex = data.length - 1;
3814
- if (index == lastIndex) {
3815
- data.pop();
3816
- } else {
3817
- splice.call(data, index, 1);
3818
- }
3819
- --this.size;
3820
- return true;
3821
- }
3822
-
3823
- /**
3824
- * Gets the list cache value for `key`.
3825
- *
3826
- * @private
3827
- * @name get
3828
- * @memberOf ListCache
3829
- * @param {string} key The key of the value to get.
3830
- * @returns {*} Returns the entry value.
3831
- */
3832
- function listCacheGet(key) {
3833
- var data = this.__data__,
3834
- index = assocIndexOf(data, key);
3835
-
3836
- return index < 0 ? undefined : data[index][1];
3837
- }
3838
-
3839
- /**
3840
- * Checks if a list cache value for `key` exists.
3841
- *
3842
- * @private
3843
- * @name has
3844
- * @memberOf ListCache
3845
- * @param {string} key The key of the entry to check.
3846
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
3847
- */
3848
- function listCacheHas(key) {
3849
- return assocIndexOf(this.__data__, key) > -1;
3850
- }
3851
-
3852
- /**
3853
- * Sets the list cache `key` to `value`.
3854
- *
3855
- * @private
3856
- * @name set
3857
- * @memberOf ListCache
3858
- * @param {string} key The key of the value to set.
3859
- * @param {*} value The value to set.
3860
- * @returns {Object} Returns the list cache instance.
3861
- */
3862
- function listCacheSet(key, value) {
3863
- var data = this.__data__,
3864
- index = assocIndexOf(data, key);
3865
-
3866
- if (index < 0) {
3867
- ++this.size;
3868
- data.push([key, value]);
3869
- } else {
3870
- data[index][1] = value;
3871
- }
3872
- return this;
3873
- }
3874
-
3875
- // Add methods to `ListCache`.
3876
- ListCache.prototype.clear = listCacheClear;
3877
- ListCache.prototype['delete'] = listCacheDelete;
3878
- ListCache.prototype.get = listCacheGet;
3879
- ListCache.prototype.has = listCacheHas;
3880
- ListCache.prototype.set = listCacheSet;
3881
-
3882
- /**
3883
- * Creates a map cache object to store key-value pairs.
3884
- *
3885
- * @private
3886
- * @constructor
3887
- * @param {Array} [entries] The key-value pairs to cache.
3888
- */
3889
- function MapCache(entries) {
3890
- var index = -1,
3891
- length = entries == null ? 0 : entries.length;
3892
-
3893
- this.clear();
3894
- while (++index < length) {
3895
- var entry = entries[index];
3896
- this.set(entry[0], entry[1]);
3897
- }
3898
- }
3899
-
3900
- /**
3901
- * Removes all key-value entries from the map.
3902
- *
3903
- * @private
3904
- * @name clear
3905
- * @memberOf MapCache
3906
- */
3907
- function mapCacheClear() {
3908
- this.size = 0;
3909
- this.__data__ = {
3910
- 'hash': new Hash,
3911
- 'map': new (Map || ListCache),
3912
- 'string': new Hash
3913
- };
3914
- }
3915
-
3916
- /**
3917
- * Removes `key` and its value from the map.
3918
- *
3919
- * @private
3920
- * @name delete
3921
- * @memberOf MapCache
3922
- * @param {string} key The key of the value to remove.
3923
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
3924
- */
3925
- function mapCacheDelete(key) {
3926
- var result = getMapData(this, key)['delete'](key);
3927
- this.size -= result ? 1 : 0;
3928
- return result;
3929
- }
3930
-
3931
- /**
3932
- * Gets the map value for `key`.
3933
- *
3934
- * @private
3935
- * @name get
3936
- * @memberOf MapCache
3937
- * @param {string} key The key of the value to get.
3938
- * @returns {*} Returns the entry value.
3939
- */
3940
- function mapCacheGet(key) {
3941
- return getMapData(this, key).get(key);
3942
- }
3943
-
3944
- /**
3945
- * Checks if a map value for `key` exists.
3946
- *
3947
- * @private
3948
- * @name has
3949
- * @memberOf MapCache
3950
- * @param {string} key The key of the entry to check.
3951
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
3952
- */
3953
- function mapCacheHas(key) {
3954
- return getMapData(this, key).has(key);
3955
- }
3956
-
3957
- /**
3958
- * Sets the map `key` to `value`.
3959
- *
3960
- * @private
3961
- * @name set
3962
- * @memberOf MapCache
3963
- * @param {string} key The key of the value to set.
3964
- * @param {*} value The value to set.
3965
- * @returns {Object} Returns the map cache instance.
3966
- */
3967
- function mapCacheSet(key, value) {
3968
- var data = getMapData(this, key),
3969
- size = data.size;
3970
-
3971
- data.set(key, value);
3972
- this.size += data.size == size ? 0 : 1;
3973
- return this;
3974
- }
3975
-
3976
- // Add methods to `MapCache`.
3977
- MapCache.prototype.clear = mapCacheClear;
3978
- MapCache.prototype['delete'] = mapCacheDelete;
3979
- MapCache.prototype.get = mapCacheGet;
3980
- MapCache.prototype.has = mapCacheHas;
3981
- MapCache.prototype.set = mapCacheSet;
3982
-
3983
- /**
3984
- *
3985
- * Creates an array cache object to store unique values.
3986
- *
3987
- * @private
3988
- * @constructor
3989
- * @param {Array} [values] The values to cache.
3990
- */
3991
- function SetCache(values) {
3992
- var index = -1,
3993
- length = values == null ? 0 : values.length;
3994
-
3995
- this.__data__ = new MapCache;
3996
- while (++index < length) {
3997
- this.add(values[index]);
3998
- }
3999
- }
4000
-
4001
- /**
4002
- * Adds `value` to the array cache.
4003
- *
4004
- * @private
4005
- * @name add
4006
- * @memberOf SetCache
4007
- * @alias push
4008
- * @param {*} value The value to cache.
4009
- * @returns {Object} Returns the cache instance.
4010
- */
4011
- function setCacheAdd(value) {
4012
- this.__data__.set(value, HASH_UNDEFINED);
4013
- return this;
4014
- }
4015
-
4016
- /**
4017
- * Checks if `value` is in the array cache.
4018
- *
4019
- * @private
4020
- * @name has
4021
- * @memberOf SetCache
4022
- * @param {*} value The value to search for.
4023
- * @returns {number} Returns `true` if `value` is found, else `false`.
4024
- */
4025
- function setCacheHas(value) {
4026
- return this.__data__.has(value);
4027
- }
4028
-
4029
- // Add methods to `SetCache`.
4030
- SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
4031
- SetCache.prototype.has = setCacheHas;
4032
-
4033
- /**
4034
- * Creates a stack cache object to store key-value pairs.
4035
- *
4036
- * @private
4037
- * @constructor
4038
- * @param {Array} [entries] The key-value pairs to cache.
4039
- */
4040
- function Stack(entries) {
4041
- var data = this.__data__ = new ListCache(entries);
4042
- this.size = data.size;
4043
- }
4044
-
4045
- /**
4046
- * Removes all key-value entries from the stack.
4047
- *
4048
- * @private
4049
- * @name clear
4050
- * @memberOf Stack
4051
- */
4052
- function stackClear() {
4053
- this.__data__ = new ListCache;
4054
- this.size = 0;
4055
- }
4056
-
4057
- /**
4058
- * Removes `key` and its value from the stack.
4059
- *
4060
- * @private
4061
- * @name delete
4062
- * @memberOf Stack
4063
- * @param {string} key The key of the value to remove.
4064
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
4065
- */
4066
- function stackDelete(key) {
4067
- var data = this.__data__,
4068
- result = data['delete'](key);
4069
-
4070
- this.size = data.size;
4071
- return result;
4072
- }
4073
-
4074
- /**
4075
- * Gets the stack value for `key`.
4076
- *
4077
- * @private
4078
- * @name get
4079
- * @memberOf Stack
4080
- * @param {string} key The key of the value to get.
4081
- * @returns {*} Returns the entry value.
4082
- */
4083
- function stackGet(key) {
4084
- return this.__data__.get(key);
4085
- }
4086
-
4087
- /**
4088
- * Checks if a stack value for `key` exists.
4089
- *
4090
- * @private
4091
- * @name has
4092
- * @memberOf Stack
4093
- * @param {string} key The key of the entry to check.
4094
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
4095
- */
4096
- function stackHas(key) {
4097
- return this.__data__.has(key);
4098
- }
4099
-
4100
- /**
4101
- * Sets the stack `key` to `value`.
4102
- *
4103
- * @private
4104
- * @name set
4105
- * @memberOf Stack
4106
- * @param {string} key The key of the value to set.
4107
- * @param {*} value The value to set.
4108
- * @returns {Object} Returns the stack cache instance.
4109
- */
4110
- function stackSet(key, value) {
4111
- var data = this.__data__;
4112
- if (data instanceof ListCache) {
4113
- var pairs = data.__data__;
4114
- if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
4115
- pairs.push([key, value]);
4116
- this.size = ++data.size;
4117
- return this;
4118
- }
4119
- data = this.__data__ = new MapCache(pairs);
4120
- }
4121
- data.set(key, value);
4122
- this.size = data.size;
4123
- return this;
4124
- }
4125
-
4126
- // Add methods to `Stack`.
4127
- Stack.prototype.clear = stackClear;
4128
- Stack.prototype['delete'] = stackDelete;
4129
- Stack.prototype.get = stackGet;
4130
- Stack.prototype.has = stackHas;
4131
- Stack.prototype.set = stackSet;
4132
-
4133
- /**
4134
- * Creates an array of the enumerable property names of the array-like `value`.
4135
- *
4136
- * @private
4137
- * @param {*} value The value to query.
4138
- * @param {boolean} inherited Specify returning inherited property names.
4139
- * @returns {Array} Returns the array of property names.
4140
- */
4141
- function arrayLikeKeys(value, inherited) {
4142
- var isArr = isArray(value),
4143
- isArg = !isArr && isArguments(value),
4144
- isBuff = !isArr && !isArg && isBuffer(value),
4145
- isType = !isArr && !isArg && !isBuff && isTypedArray(value),
4146
- skipIndexes = isArr || isArg || isBuff || isType,
4147
- result = skipIndexes ? baseTimes(value.length, String) : [],
4148
- length = result.length;
4149
-
4150
- for (var key in value) {
4151
- if ((inherited || hasOwnProperty.call(value, key)) &&
4152
- !(skipIndexes && (
4153
- // Safari 9 has enumerable `arguments.length` in strict mode.
4154
- key == 'length' ||
4155
- // Node.js 0.10 has enumerable non-index properties on buffers.
4156
- (isBuff && (key == 'offset' || key == 'parent')) ||
4157
- // PhantomJS 2 has enumerable non-index properties on typed arrays.
4158
- (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
4159
- // Skip index properties.
4160
- isIndex(key, length)
4161
- ))) {
4162
- result.push(key);
4163
- }
4164
- }
4165
- return result;
4166
- }
4167
-
4168
- /**
4169
- * Gets the index at which the `key` is found in `array` of key-value pairs.
4170
- *
4171
- * @private
4172
- * @param {Array} array The array to inspect.
4173
- * @param {*} key The key to search for.
4174
- * @returns {number} Returns the index of the matched value, else `-1`.
4175
- */
4176
- function assocIndexOf(array, key) {
4177
- var length = array.length;
4178
- while (length--) {
4179
- if (eq(array[length][0], key)) {
4180
- return length;
4181
- }
4182
- }
4183
- return -1;
4184
- }
4185
-
4186
- /**
4187
- * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
4188
- * `keysFunc` and `symbolsFunc` to get the enumerable property names and
4189
- * symbols of `object`.
4190
- *
4191
- * @private
4192
- * @param {Object} object The object to query.
4193
- * @param {Function} keysFunc The function to get the keys of `object`.
4194
- * @param {Function} symbolsFunc The function to get the symbols of `object`.
4195
- * @returns {Array} Returns the array of property names and symbols.
4196
- */
4197
- function baseGetAllKeys(object, keysFunc, symbolsFunc) {
4198
- var result = keysFunc(object);
4199
- return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
4200
- }
4201
-
4202
- /**
4203
- * The base implementation of `getTag` without fallbacks for buggy environments.
4204
- *
4205
- * @private
4206
- * @param {*} value The value to query.
4207
- * @returns {string} Returns the `toStringTag`.
4208
- */
4209
- function baseGetTag(value) {
4210
- if (value == null) {
4211
- return value === undefined ? undefinedTag : nullTag;
4212
- }
4213
- return (symToStringTag && symToStringTag in Object(value))
4214
- ? getRawTag(value)
4215
- : objectToString(value);
4216
- }
4217
-
4218
- /**
4219
- * The base implementation of `_.isArguments`.
4220
- *
4221
- * @private
4222
- * @param {*} value The value to check.
4223
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
4224
- */
4225
- function baseIsArguments(value) {
4226
- return isObjectLike(value) && baseGetTag(value) == argsTag;
4227
- }
4228
-
4229
- /**
4230
- * The base implementation of `_.isEqual` which supports partial comparisons
4231
- * and tracks traversed objects.
4232
- *
4233
- * @private
4234
- * @param {*} value The value to compare.
4235
- * @param {*} other The other value to compare.
4236
- * @param {boolean} bitmask The bitmask flags.
4237
- * 1 - Unordered comparison
4238
- * 2 - Partial comparison
4239
- * @param {Function} [customizer] The function to customize comparisons.
4240
- * @param {Object} [stack] Tracks traversed `value` and `other` objects.
4241
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
4242
- */
4243
- function baseIsEqual(value, other, bitmask, customizer, stack) {
4244
- if (value === other) {
4245
- return true;
4246
- }
4247
- if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
4248
- return value !== value && other !== other;
4249
- }
4250
- return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
4251
- }
4252
-
4253
- /**
4254
- * A specialized version of `baseIsEqual` for arrays and objects which performs
4255
- * deep comparisons and tracks traversed objects enabling objects with circular
4256
- * references to be compared.
4257
- *
4258
- * @private
4259
- * @param {Object} object The object to compare.
4260
- * @param {Object} other The other object to compare.
4261
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
4262
- * @param {Function} customizer The function to customize comparisons.
4263
- * @param {Function} equalFunc The function to determine equivalents of values.
4264
- * @param {Object} [stack] Tracks traversed `object` and `other` objects.
4265
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
4266
- */
4267
- function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
4268
- var objIsArr = isArray(object),
4269
- othIsArr = isArray(other),
4270
- objTag = objIsArr ? arrayTag : getTag(object),
4271
- othTag = othIsArr ? arrayTag : getTag(other);
4272
-
4273
- objTag = objTag == argsTag ? objectTag : objTag;
4274
- othTag = othTag == argsTag ? objectTag : othTag;
4275
-
4276
- var objIsObj = objTag == objectTag,
4277
- othIsObj = othTag == objectTag,
4278
- isSameTag = objTag == othTag;
4279
-
4280
- if (isSameTag && isBuffer(object)) {
4281
- if (!isBuffer(other)) {
4282
- return false;
4283
- }
4284
- objIsArr = true;
4285
- objIsObj = false;
4286
- }
4287
- if (isSameTag && !objIsObj) {
4288
- stack || (stack = new Stack);
4289
- return (objIsArr || isTypedArray(object))
4290
- ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
4291
- : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
4292
- }
4293
- if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
4294
- var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
4295
- othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
4296
-
4297
- if (objIsWrapped || othIsWrapped) {
4298
- var objUnwrapped = objIsWrapped ? object.value() : object,
4299
- othUnwrapped = othIsWrapped ? other.value() : other;
4300
-
4301
- stack || (stack = new Stack);
4302
- return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
4303
- }
4304
- }
4305
- if (!isSameTag) {
4306
- return false;
4307
- }
4308
- stack || (stack = new Stack);
4309
- return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
4310
- }
4311
-
4312
- /**
4313
- * The base implementation of `_.isNative` without bad shim checks.
4314
- *
4315
- * @private
4316
- * @param {*} value The value to check.
4317
- * @returns {boolean} Returns `true` if `value` is a native function,
4318
- * else `false`.
4319
- */
4320
- function baseIsNative(value) {
4321
- if (!isObject(value) || isMasked(value)) {
4322
- return false;
4323
- }
4324
- var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
4325
- return pattern.test(toSource(value));
4326
- }
4327
-
4328
- /**
4329
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
4330
- *
4331
- * @private
4332
- * @param {*} value The value to check.
4333
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
4334
- */
4335
- function baseIsTypedArray(value) {
4336
- return isObjectLike(value) &&
4337
- isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
4338
- }
4339
-
4340
- /**
4341
- * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
4342
- *
4343
- * @private
4344
- * @param {Object} object The object to query.
4345
- * @returns {Array} Returns the array of property names.
4346
- */
4347
- function baseKeys(object) {
4348
- if (!isPrototype(object)) {
4349
- return nativeKeys(object);
4350
- }
4351
- var result = [];
4352
- for (var key in Object(object)) {
4353
- if (hasOwnProperty.call(object, key) && key != 'constructor') {
4354
- result.push(key);
4355
- }
4356
- }
4357
- return result;
4358
- }
4359
-
4360
- /**
4361
- * A specialized version of `baseIsEqualDeep` for arrays with support for
4362
- * partial deep comparisons.
4363
- *
4364
- * @private
4365
- * @param {Array} array The array to compare.
4366
- * @param {Array} other The other array to compare.
4367
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
4368
- * @param {Function} customizer The function to customize comparisons.
4369
- * @param {Function} equalFunc The function to determine equivalents of values.
4370
- * @param {Object} stack Tracks traversed `array` and `other` objects.
4371
- * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
4372
- */
4373
- function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
4374
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
4375
- arrLength = array.length,
4376
- othLength = other.length;
4377
-
4378
- if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
4379
- return false;
4380
- }
4381
- // Assume cyclic values are equal.
4382
- var stacked = stack.get(array);
4383
- if (stacked && stack.get(other)) {
4384
- return stacked == other;
4385
- }
4386
- var index = -1,
4387
- result = true,
4388
- seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
4389
-
4390
- stack.set(array, other);
4391
- stack.set(other, array);
4392
-
4393
- // Ignore non-index properties.
4394
- while (++index < arrLength) {
4395
- var arrValue = array[index],
4396
- othValue = other[index];
4397
-
4398
- if (customizer) {
4399
- var compared = isPartial
4400
- ? customizer(othValue, arrValue, index, other, array, stack)
4401
- : customizer(arrValue, othValue, index, array, other, stack);
4402
- }
4403
- if (compared !== undefined) {
4404
- if (compared) {
4405
- continue;
4406
- }
4407
- result = false;
4408
- break;
4409
- }
4410
- // Recursively compare arrays (susceptible to call stack limits).
4411
- if (seen) {
4412
- if (!arraySome(other, function(othValue, othIndex) {
4413
- if (!cacheHas(seen, othIndex) &&
4414
- (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
4415
- return seen.push(othIndex);
4416
- }
4417
- })) {
4418
- result = false;
4419
- break;
4420
- }
4421
- } else if (!(
4422
- arrValue === othValue ||
4423
- equalFunc(arrValue, othValue, bitmask, customizer, stack)
4424
- )) {
4425
- result = false;
4426
- break;
4427
- }
4428
- }
4429
- stack['delete'](array);
4430
- stack['delete'](other);
4431
- return result;
4432
- }
4433
-
4434
- /**
4435
- * A specialized version of `baseIsEqualDeep` for comparing objects of
4436
- * the same `toStringTag`.
4437
- *
4438
- * **Note:** This function only supports comparing values with tags of
4439
- * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
4440
- *
4441
- * @private
4442
- * @param {Object} object The object to compare.
4443
- * @param {Object} other The other object to compare.
4444
- * @param {string} tag The `toStringTag` of the objects to compare.
4445
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
4446
- * @param {Function} customizer The function to customize comparisons.
4447
- * @param {Function} equalFunc The function to determine equivalents of values.
4448
- * @param {Object} stack Tracks traversed `object` and `other` objects.
4449
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
4450
- */
4451
- function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
4452
- switch (tag) {
4453
- case dataViewTag:
4454
- if ((object.byteLength != other.byteLength) ||
4455
- (object.byteOffset != other.byteOffset)) {
4456
- return false;
4457
- }
4458
- object = object.buffer;
4459
- other = other.buffer;
4460
-
4461
- case arrayBufferTag:
4462
- if ((object.byteLength != other.byteLength) ||
4463
- !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
4464
- return false;
4465
- }
4466
- return true;
4467
-
4468
- case boolTag:
4469
- case dateTag:
4470
- case numberTag:
4471
- // Coerce booleans to `1` or `0` and dates to milliseconds.
4472
- // Invalid dates are coerced to `NaN`.
4473
- return eq(+object, +other);
4474
-
4475
- case errorTag:
4476
- return object.name == other.name && object.message == other.message;
4477
-
4478
- case regexpTag:
4479
- case stringTag:
4480
- // Coerce regexes to strings and treat strings, primitives and objects,
4481
- // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
4482
- // for more details.
4483
- return object == (other + '');
4484
-
4485
- case mapTag:
4486
- var convert = mapToArray;
4487
-
4488
- case setTag:
4489
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
4490
- convert || (convert = setToArray);
4491
-
4492
- if (object.size != other.size && !isPartial) {
4493
- return false;
4494
- }
4495
- // Assume cyclic values are equal.
4496
- var stacked = stack.get(object);
4497
- if (stacked) {
4498
- return stacked == other;
4499
- }
4500
- bitmask |= COMPARE_UNORDERED_FLAG;
4501
-
4502
- // Recursively compare objects (susceptible to call stack limits).
4503
- stack.set(object, other);
4504
- var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
4505
- stack['delete'](object);
4506
- return result;
4507
-
4508
- case symbolTag:
4509
- if (symbolValueOf) {
4510
- return symbolValueOf.call(object) == symbolValueOf.call(other);
4511
- }
4512
- }
4513
- return false;
4514
- }
4515
-
4516
- /**
4517
- * A specialized version of `baseIsEqualDeep` for objects with support for
4518
- * partial deep comparisons.
4519
- *
4520
- * @private
4521
- * @param {Object} object The object to compare.
4522
- * @param {Object} other The other object to compare.
4523
- * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
4524
- * @param {Function} customizer The function to customize comparisons.
4525
- * @param {Function} equalFunc The function to determine equivalents of values.
4526
- * @param {Object} stack Tracks traversed `object` and `other` objects.
4527
- * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
4528
- */
4529
- function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
4530
- var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
4531
- objProps = getAllKeys(object),
4532
- objLength = objProps.length,
4533
- othProps = getAllKeys(other),
4534
- othLength = othProps.length;
4535
-
4536
- if (objLength != othLength && !isPartial) {
4537
- return false;
4538
- }
4539
- var index = objLength;
4540
- while (index--) {
4541
- var key = objProps[index];
4542
- if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
4543
- return false;
4544
- }
4545
- }
4546
- // Assume cyclic values are equal.
4547
- var stacked = stack.get(object);
4548
- if (stacked && stack.get(other)) {
4549
- return stacked == other;
4550
- }
4551
- var result = true;
4552
- stack.set(object, other);
4553
- stack.set(other, object);
4554
-
4555
- var skipCtor = isPartial;
4556
- while (++index < objLength) {
4557
- key = objProps[index];
4558
- var objValue = object[key],
4559
- othValue = other[key];
4560
-
4561
- if (customizer) {
4562
- var compared = isPartial
4563
- ? customizer(othValue, objValue, key, other, object, stack)
4564
- : customizer(objValue, othValue, key, object, other, stack);
4565
- }
4566
- // Recursively compare objects (susceptible to call stack limits).
4567
- if (!(compared === undefined
4568
- ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
4569
- : compared
4570
- )) {
4571
- result = false;
4572
- break;
4573
- }
4574
- skipCtor || (skipCtor = key == 'constructor');
4575
- }
4576
- if (result && !skipCtor) {
4577
- var objCtor = object.constructor,
4578
- othCtor = other.constructor;
4579
-
4580
- // Non `Object` object instances with different constructors are not equal.
4581
- if (objCtor != othCtor &&
4582
- ('constructor' in object && 'constructor' in other) &&
4583
- !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
4584
- typeof othCtor == 'function' && othCtor instanceof othCtor)) {
4585
- result = false;
4586
- }
4587
- }
4588
- stack['delete'](object);
4589
- stack['delete'](other);
4590
- return result;
4591
- }
4592
-
4593
- /**
4594
- * Creates an array of own enumerable property names and symbols of `object`.
4595
- *
4596
- * @private
4597
- * @param {Object} object The object to query.
4598
- * @returns {Array} Returns the array of property names and symbols.
4599
- */
4600
- function getAllKeys(object) {
4601
- return baseGetAllKeys(object, keys, getSymbols);
4602
- }
4603
-
4604
- /**
4605
- * Gets the data for `map`.
4606
- *
4607
- * @private
4608
- * @param {Object} map The map to query.
4609
- * @param {string} key The reference key.
4610
- * @returns {*} Returns the map data.
4611
- */
4612
- function getMapData(map, key) {
4613
- var data = map.__data__;
4614
- return isKeyable(key)
4615
- ? data[typeof key == 'string' ? 'string' : 'hash']
4616
- : data.map;
4617
- }
4618
-
4619
- /**
4620
- * Gets the native function at `key` of `object`.
4621
- *
4622
- * @private
4623
- * @param {Object} object The object to query.
4624
- * @param {string} key The key of the method to get.
4625
- * @returns {*} Returns the function if it's native, else `undefined`.
4626
- */
4627
- function getNative(object, key) {
4628
- var value = getValue(object, key);
4629
- return baseIsNative(value) ? value : undefined;
4630
- }
4631
-
4632
- /**
4633
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
4634
- *
4635
- * @private
4636
- * @param {*} value The value to query.
4637
- * @returns {string} Returns the raw `toStringTag`.
4638
- */
4639
- function getRawTag(value) {
4640
- var isOwn = hasOwnProperty.call(value, symToStringTag),
4641
- tag = value[symToStringTag];
4642
-
4643
- try {
4644
- value[symToStringTag] = undefined;
4645
- var unmasked = true;
4646
- } catch (e) {}
4647
-
4648
- var result = nativeObjectToString.call(value);
4649
- if (unmasked) {
4650
- if (isOwn) {
4651
- value[symToStringTag] = tag;
4652
- } else {
4653
- delete value[symToStringTag];
4654
- }
4655
- }
4656
- return result;
4657
- }
4658
-
4659
- /**
4660
- * Creates an array of the own enumerable symbols of `object`.
4661
- *
4662
- * @private
4663
- * @param {Object} object The object to query.
4664
- * @returns {Array} Returns the array of symbols.
4665
- */
4666
- var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
4667
- if (object == null) {
4668
- return [];
4669
- }
4670
- object = Object(object);
4671
- return arrayFilter(nativeGetSymbols(object), function(symbol) {
4672
- return propertyIsEnumerable.call(object, symbol);
4673
- });
4674
- };
4675
-
4676
- /**
4677
- * Gets the `toStringTag` of `value`.
4678
- *
4679
- * @private
4680
- * @param {*} value The value to query.
4681
- * @returns {string} Returns the `toStringTag`.
4682
- */
4683
- var getTag = baseGetTag;
4684
-
4685
- // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
4686
- if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
4687
- (Map && getTag(new Map) != mapTag) ||
4688
- (Promise && getTag(Promise.resolve()) != promiseTag) ||
4689
- (Set && getTag(new Set) != setTag) ||
4690
- (WeakMap && getTag(new WeakMap) != weakMapTag)) {
4691
- getTag = function(value) {
4692
- var result = baseGetTag(value),
4693
- Ctor = result == objectTag ? value.constructor : undefined,
4694
- ctorString = Ctor ? toSource(Ctor) : '';
4695
-
4696
- if (ctorString) {
4697
- switch (ctorString) {
4698
- case dataViewCtorString: return dataViewTag;
4699
- case mapCtorString: return mapTag;
4700
- case promiseCtorString: return promiseTag;
4701
- case setCtorString: return setTag;
4702
- case weakMapCtorString: return weakMapTag;
4703
- }
4704
- }
4705
- return result;
4706
- };
4707
- }
4708
-
4709
- /**
4710
- * Checks if `value` is a valid array-like index.
4711
- *
4712
- * @private
4713
- * @param {*} value The value to check.
4714
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
4715
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
4716
- */
4717
- function isIndex(value, length) {
4718
- length = length == null ? MAX_SAFE_INTEGER : length;
4719
- return !!length &&
4720
- (typeof value == 'number' || reIsUint.test(value)) &&
4721
- (value > -1 && value % 1 == 0 && value < length);
4722
- }
4723
-
4724
- /**
4725
- * Checks if `value` is suitable for use as unique object key.
4726
- *
4727
- * @private
4728
- * @param {*} value The value to check.
4729
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
4730
- */
4731
- function isKeyable(value) {
4732
- var type = typeof value;
4733
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
4734
- ? (value !== '__proto__')
4735
- : (value === null);
4736
- }
4737
-
4738
- /**
4739
- * Checks if `func` has its source masked.
4740
- *
4741
- * @private
4742
- * @param {Function} func The function to check.
4743
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
4744
- */
4745
- function isMasked(func) {
4746
- return !!maskSrcKey && (maskSrcKey in func);
4747
- }
4748
-
4749
- /**
4750
- * Checks if `value` is likely a prototype object.
4751
- *
4752
- * @private
4753
- * @param {*} value The value to check.
4754
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
4755
- */
4756
- function isPrototype(value) {
4757
- var Ctor = value && value.constructor,
4758
- proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
4759
-
4760
- return value === proto;
4761
- }
4762
-
4763
- /**
4764
- * Converts `value` to a string using `Object.prototype.toString`.
4765
- *
4766
- * @private
4767
- * @param {*} value The value to convert.
4768
- * @returns {string} Returns the converted string.
4769
- */
4770
- function objectToString(value) {
4771
- return nativeObjectToString.call(value);
4772
- }
4773
-
4774
- /**
4775
- * Converts `func` to its source code.
4776
- *
4777
- * @private
4778
- * @param {Function} func The function to convert.
4779
- * @returns {string} Returns the source code.
4780
- */
4781
- function toSource(func) {
4782
- if (func != null) {
4783
- try {
4784
- return funcToString.call(func);
4785
- } catch (e) {}
4786
- try {
4787
- return (func + '');
4788
- } catch (e) {}
4789
- }
4790
- return '';
4791
- }
4792
-
4793
- /**
4794
- * Performs a
4795
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
4796
- * comparison between two values to determine if they are equivalent.
4797
- *
4798
- * @static
4799
- * @memberOf _
4800
- * @since 4.0.0
4801
- * @category Lang
4802
- * @param {*} value The value to compare.
4803
- * @param {*} other The other value to compare.
4804
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
4805
- * @example
4806
- *
4807
- * var object = { 'a': 1 };
4808
- * var other = { 'a': 1 };
4809
- *
4810
- * _.eq(object, object);
4811
- * // => true
4812
- *
4813
- * _.eq(object, other);
4814
- * // => false
4815
- *
4816
- * _.eq('a', 'a');
4817
- * // => true
4818
- *
4819
- * _.eq('a', Object('a'));
4820
- * // => false
4821
- *
4822
- * _.eq(NaN, NaN);
4823
- * // => true
4824
- */
4825
- function eq(value, other) {
4826
- return value === other || (value !== value && other !== other);
4827
- }
4828
-
4829
- /**
4830
- * Checks if `value` is likely an `arguments` object.
4831
- *
4832
- * @static
4833
- * @memberOf _
4834
- * @since 0.1.0
4835
- * @category Lang
4836
- * @param {*} value The value to check.
4837
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
4838
- * else `false`.
4839
- * @example
4840
- *
4841
- * _.isArguments(function() { return arguments; }());
4842
- * // => true
4843
- *
4844
- * _.isArguments([1, 2, 3]);
4845
- * // => false
4846
- */
4847
- var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
4848
- return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
4849
- !propertyIsEnumerable.call(value, 'callee');
4850
- };
4851
-
4852
- /**
4853
- * Checks if `value` is classified as an `Array` object.
4854
- *
4855
- * @static
4856
- * @memberOf _
4857
- * @since 0.1.0
4858
- * @category Lang
4859
- * @param {*} value The value to check.
4860
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
4861
- * @example
4862
- *
4863
- * _.isArray([1, 2, 3]);
4864
- * // => true
4865
- *
4866
- * _.isArray(document.body.children);
4867
- * // => false
4868
- *
4869
- * _.isArray('abc');
4870
- * // => false
4871
- *
4872
- * _.isArray(_.noop);
4873
- * // => false
4874
- */
4875
- var isArray = Array.isArray;
4876
-
4877
- /**
4878
- * Checks if `value` is array-like. A value is considered array-like if it's
4879
- * not a function and has a `value.length` that's an integer greater than or
4880
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
4881
- *
4882
- * @static
4883
- * @memberOf _
4884
- * @since 4.0.0
4885
- * @category Lang
4886
- * @param {*} value The value to check.
4887
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
4888
- * @example
4889
- *
4890
- * _.isArrayLike([1, 2, 3]);
4891
- * // => true
4892
- *
4893
- * _.isArrayLike(document.body.children);
4894
- * // => true
4895
- *
4896
- * _.isArrayLike('abc');
4897
- * // => true
4898
- *
4899
- * _.isArrayLike(_.noop);
4900
- * // => false
4901
- */
4902
- function isArrayLike(value) {
4903
- return value != null && isLength(value.length) && !isFunction(value);
4904
- }
4905
-
4906
- /**
4907
- * Checks if `value` is a buffer.
4908
- *
4909
- * @static
4910
- * @memberOf _
4911
- * @since 4.3.0
4912
- * @category Lang
4913
- * @param {*} value The value to check.
4914
- * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
4915
- * @example
4916
- *
4917
- * _.isBuffer(new Buffer(2));
4918
- * // => true
4919
- *
4920
- * _.isBuffer(new Uint8Array(2));
4921
- * // => false
4922
- */
4923
- var isBuffer = nativeIsBuffer || stubFalse;
4924
-
4925
- /**
4926
- * Performs a deep comparison between two values to determine if they are
4927
- * equivalent.
4928
- *
4929
- * **Note:** This method supports comparing arrays, array buffers, booleans,
4930
- * date objects, error objects, maps, numbers, `Object` objects, regexes,
4931
- * sets, strings, symbols, and typed arrays. `Object` objects are compared
4932
- * by their own, not inherited, enumerable properties. Functions and DOM
4933
- * nodes are compared by strict equality, i.e. `===`.
4934
- *
4935
- * @static
4936
- * @memberOf _
4937
- * @since 0.1.0
4938
- * @category Lang
4939
- * @param {*} value The value to compare.
4940
- * @param {*} other The other value to compare.
4941
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
4942
- * @example
4943
- *
4944
- * var object = { 'a': 1 };
4945
- * var other = { 'a': 1 };
4946
- *
4947
- * _.isEqual(object, other);
4948
- * // => true
4949
- *
4950
- * object === other;
4951
- * // => false
4952
- */
4953
- function isEqual(value, other) {
4954
- return baseIsEqual(value, other);
4955
- }
4956
-
4957
- /**
4958
- * Checks if `value` is classified as a `Function` object.
4959
- *
4960
- * @static
4961
- * @memberOf _
4962
- * @since 0.1.0
4963
- * @category Lang
4964
- * @param {*} value The value to check.
4965
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
4966
- * @example
4967
- *
4968
- * _.isFunction(_);
4969
- * // => true
4970
- *
4971
- * _.isFunction(/abc/);
4972
- * // => false
4973
- */
4974
- function isFunction(value) {
4975
- if (!isObject(value)) {
4976
- return false;
4977
- }
4978
- // The use of `Object#toString` avoids issues with the `typeof` operator
4979
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
4980
- var tag = baseGetTag(value);
4981
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
4982
- }
4983
-
4984
- /**
4985
- * Checks if `value` is a valid array-like length.
4986
- *
4987
- * **Note:** This method is loosely based on
4988
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
4989
- *
4990
- * @static
4991
- * @memberOf _
4992
- * @since 4.0.0
4993
- * @category Lang
4994
- * @param {*} value The value to check.
4995
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
4996
- * @example
4997
- *
4998
- * _.isLength(3);
4999
- * // => true
5000
- *
5001
- * _.isLength(Number.MIN_VALUE);
5002
- * // => false
5003
- *
5004
- * _.isLength(Infinity);
5005
- * // => false
5006
- *
5007
- * _.isLength('3');
5008
- * // => false
5009
- */
5010
- function isLength(value) {
5011
- return typeof value == 'number' &&
5012
- value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
5013
- }
5014
-
5015
- /**
5016
- * Checks if `value` is the
5017
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
5018
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
5019
- *
5020
- * @static
5021
- * @memberOf _
5022
- * @since 0.1.0
5023
- * @category Lang
5024
- * @param {*} value The value to check.
5025
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
5026
- * @example
5027
- *
5028
- * _.isObject({});
5029
- * // => true
5030
- *
5031
- * _.isObject([1, 2, 3]);
5032
- * // => true
5033
- *
5034
- * _.isObject(_.noop);
5035
- * // => true
5036
- *
5037
- * _.isObject(null);
5038
- * // => false
5039
- */
5040
- function isObject(value) {
5041
- var type = typeof value;
5042
- return value != null && (type == 'object' || type == 'function');
5043
- }
5044
-
5045
- /**
5046
- * Checks if `value` is object-like. A value is object-like if it's not `null`
5047
- * and has a `typeof` result of "object".
5048
- *
5049
- * @static
5050
- * @memberOf _
5051
- * @since 4.0.0
5052
- * @category Lang
5053
- * @param {*} value The value to check.
5054
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
5055
- * @example
5056
- *
5057
- * _.isObjectLike({});
5058
- * // => true
5059
- *
5060
- * _.isObjectLike([1, 2, 3]);
5061
- * // => true
5062
- *
5063
- * _.isObjectLike(_.noop);
5064
- * // => false
5065
- *
5066
- * _.isObjectLike(null);
5067
- * // => false
5068
- */
5069
- function isObjectLike(value) {
5070
- return value != null && typeof value == 'object';
5071
- }
5072
-
5073
- /**
5074
- * Checks if `value` is classified as a typed array.
5075
- *
5076
- * @static
5077
- * @memberOf _
5078
- * @since 3.0.0
5079
- * @category Lang
5080
- * @param {*} value The value to check.
5081
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
5082
- * @example
5083
- *
5084
- * _.isTypedArray(new Uint8Array);
5085
- * // => true
5086
- *
5087
- * _.isTypedArray([]);
5088
- * // => false
5089
- */
5090
- var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
5091
-
5092
- /**
5093
- * Creates an array of the own enumerable property names of `object`.
5094
- *
5095
- * **Note:** Non-object values are coerced to objects. See the
5096
- * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
5097
- * for more details.
5098
- *
5099
- * @static
5100
- * @since 0.1.0
5101
- * @memberOf _
5102
- * @category Object
5103
- * @param {Object} object The object to query.
5104
- * @returns {Array} Returns the array of property names.
5105
- * @example
5106
- *
5107
- * function Foo() {
5108
- * this.a = 1;
5109
- * this.b = 2;
5110
- * }
5111
- *
5112
- * Foo.prototype.c = 3;
5113
- *
5114
- * _.keys(new Foo);
5115
- * // => ['a', 'b'] (iteration order is not guaranteed)
5116
- *
5117
- * _.keys('hi');
5118
- * // => ['0', '1']
5119
- */
5120
- function keys(object) {
5121
- return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
5122
- }
5123
-
5124
- /**
5125
- * This method returns a new empty array.
5126
- *
5127
- * @static
5128
- * @memberOf _
5129
- * @since 4.13.0
5130
- * @category Util
5131
- * @returns {Array} Returns the new empty array.
5132
- * @example
5133
- *
5134
- * var arrays = _.times(2, _.stubArray);
5135
- *
5136
- * console.log(arrays);
5137
- * // => [[], []]
5138
- *
5139
- * console.log(arrays[0] === arrays[1]);
5140
- * // => false
5141
- */
5142
- function stubArray() {
5143
- return [];
5144
- }
5145
-
5146
- /**
5147
- * This method returns `false`.
5148
- *
5149
- * @static
5150
- * @memberOf _
5151
- * @since 4.13.0
5152
- * @category Util
5153
- * @returns {boolean} Returns `false`.
5154
- * @example
5155
- *
5156
- * _.times(2, _.stubFalse);
5157
- * // => [false, false]
5158
- */
5159
- function stubFalse() {
5160
- return false;
5161
- }
5162
-
5163
- module.exports = isEqual;
5164
- }(lodash_isequal, lodash_isequal.exports));
5165
-
5166
- var isEqual = lodash_isequal.exports;
5167
-
5168
3313
  function generateId() {
5169
3314
  var _a;
5170
3315
  if (typeof window !== "undefined" && ((_a = window === null || window === void 0 ? void 0 : window.crypto) === null || _a === void 0 ? void 0 : _a.getRandomValues)) {
@@ -5266,7 +3411,7 @@ var loadGoogleMapsApiDynamically = function (callback, apiKey) {
5266
3411
  };
5267
3412
  var AutocompleteAddress = function (_a) {
5268
3413
  var _b;
5269
- var apiKey = _a.apiKey, initialAddress = _a.address, onAddressChange = _a.onAddressChange, placeholders = _a.placeholders, manualAddressEntryTexts = _a.manualAddressEntryTexts;
3414
+ var apiKey = _a.apiKey, initialAddress = _a.address, onAddressChange = _a.onAddressChange, placeholders = _a.placeholders, manualAddressEntryTexts = _a.manualAddressEntryTexts, inputProps = _a.inputProps;
5270
3415
  var _c = require$$0.useState(false), manualAddressEntry = _c[0], setManualAddressEntry = _c[1];
5271
3416
  var _d = require$$0.useState(false), isLoading = _d[0], setIsLoading = _d[1];
5272
3417
  var autocomplete = require$$0.useRef(null);
@@ -5284,14 +3429,11 @@ var AutocompleteAddress = function (_a) {
5284
3429
  if (autocompleteElement.current && address.street) {
5285
3430
  autocompleteElement.current.value = address.street;
5286
3431
  }
5287
- if (isEqual(address, initialAddress) === false) {
5288
- onAddressChange(__assign({}, address));
5289
- }
5290
3432
  handleEnterAddressManually();
5291
3433
  }
5292
- }, [initialAddress, address, onAddressChange, hasLoadedGoogleAPI]);
3434
+ }, [address, onAddressChange, hasLoadedGoogleAPI]);
5293
3435
  require$$0.useEffect(function () {
5294
- if (hasLoadedGoogleAPI === false) {
3436
+ if (!hasLoadedGoogleAPI) {
5295
3437
  return;
5296
3438
  }
5297
3439
  var reference = document.getElementById('autocomplete');
@@ -5321,6 +3463,7 @@ var AutocompleteAddress = function (_a) {
5321
3463
  setPlace(newPlace);
5322
3464
  if (updateAddress) {
5323
3465
  setAddress(function (oldValue) { return (__assign(__assign({}, geocoderAddress_1), { additionalInformation: oldValue === null || oldValue === void 0 ? void 0 : oldValue.additionalInformation })); });
3466
+ onAddressChange === null || onAddressChange === void 0 ? void 0 : onAddressChange(geocoderAddress_1);
5324
3467
  }
5325
3468
  (_c = map.current) === null || _c === void 0 ? void 0 : _c.panTo(newPlace.geometry.location);
5326
3469
  (_d = map.current) === null || _d === void 0 ? void 0 : _d.setZoom(15);
@@ -5352,40 +3495,33 @@ var AutocompleteAddress = function (_a) {
5352
3495
  });
5353
3496
  }
5354
3497
  }, []);
5355
- var debouncedSetPlace = lodash_debounce(setPlaceFromAddress, 1000);
3498
+ var debouncedSetPlace = lodash_debounce(setPlaceFromAddress, 2000);
5356
3499
  var handleEnterAddressManually = function () {
5357
3500
  setManualAddressEntry(true);
5358
3501
  };
3502
+ var onManualAddressChange = function (_a) {
3503
+ var _b = _a === void 0 ? { updatePlace: true } : _a, updatePlace = _b.updatePlace;
3504
+ return function (e) {
3505
+ var _a;
3506
+ var newAddress = __assign(__assign({}, address), (_a = {}, _a[e.target.name] = e.target.value, _a.country = GERMANY_ALPHA_CODE, _a));
3507
+ setAddress(newAddress);
3508
+ onAddressChange(newAddress);
3509
+ if (updatePlace) {
3510
+ debouncedSetPlace(newAddress);
3511
+ }
3512
+ };
3513
+ };
5359
3514
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", __assign({ className: classNames("wmx8 bg-grey-500 " + styles$t['map-container'], (_b = {},
5360
3515
  _b[styles$t['map-container--hidden']] = place === null,
5361
3516
  _b)) }, { children: [jsxRuntime.jsx("div", { className: styles$t.map, id: "map" }, void 0),
5362
3517
  isLoading && (jsxRuntime.jsx("div", __assign({ className: styles$t['loading-spinner'] }, { children: jsxRuntime.jsx("div", { className: "ds-spinner ds-spinner__m" }, void 0) }), void 0))] }), void 0),
5363
3518
  jsxRuntime.jsx("div", __assign({ className: "wmx8" }, { children: manualAddressEntry === false ? (jsxRuntime.jsxs("div", __assign({ style: { position: 'relative' } }, { children: [jsxRuntime.jsx(Input, { className: "w100", id: "autocomplete", "data-cy": "autocomplete", type: "text", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.manualAddressEntry) || 'Search for address', ref: autocompleteElement }, "autocomplete-search"),
5364
- hasLoadedGoogleAPI === false && (jsxRuntime.jsx("div", __assign({ "data-cy": "google-api-loader", className: styles$t['loading-spinner'] }, { children: jsxRuntime.jsx("div", { className: "ds-spinner ds-spinner__m" }, void 0) }), void 0))] }), void 0)) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", __assign({ className: "d-flex c-gap16 " + styles$t['input-line'] }, { children: [jsxRuntime.jsx(Input, { className: "w100", "data-cy": "autocomplete", type: "text", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.street) || 'Street', value: (address === null || address === void 0 ? void 0 : address.street) || '', onChange: function (e) {
5365
- var newAddress = __assign(__assign({}, address), { street: e.target.value, country: GERMANY_ALPHA_CODE });
5366
- setAddress(newAddress);
5367
- debouncedSetPlace(newAddress);
5368
- } }, "autocomplete-street"),
5369
- jsxRuntime.jsx(Input, { className: "wmx2 " + styles$t['house-number-input'], "data-cy": "autocomplete-house-number", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.houseNumber) || 'House Number', value: (address === null || address === void 0 ? void 0 : address.houseNumber) || '', onChange: function (e) {
5370
- var newAddress = __assign(__assign({}, address), { houseNumber: e.target.value, country: GERMANY_ALPHA_CODE });
5371
- setAddress(newAddress);
5372
- debouncedSetPlace(newAddress);
5373
- } }, "autocomplete-house-number")] }), void 0),
5374
- jsxRuntime.jsx(Input, { className: "mt16", "data-cy": "autocomplete-additional-info", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.additionalInformation) ||
5375
- 'Additional information (C/O, apartment, …)', value: (address === null || address === void 0 ? void 0 : address.additionalInformation) || '', onChange: function (e) {
5376
- var newAddress = __assign(__assign({}, address), { additionalInformation: e.target.value, country: GERMANY_ALPHA_CODE });
5377
- setAddress(newAddress);
5378
- } }, "autocomplete-additional-info"),
5379
- jsxRuntime.jsxs("div", __assign({ className: "d-flex mt16 c-gap16 " + styles$t['input-line'] }, { children: [jsxRuntime.jsx(Input, { className: "w100", "data-cy": "autocomplete-postcode", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.postcode) || 'Postcode', value: (address === null || address === void 0 ? void 0 : address.postcode) || '', onChange: function (e) {
5380
- var newAddress = __assign(__assign({}, address), { postcode: e.target.value, country: GERMANY_ALPHA_CODE });
5381
- setAddress(newAddress);
5382
- debouncedSetPlace(newAddress);
5383
- } }, "autocomplete-postcode"),
5384
- jsxRuntime.jsx(Input, { className: "w100", "data-cy": "autocomplete-city", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.city) || 'City', value: (address === null || address === void 0 ? void 0 : address.city) || '', onChange: function (e) {
5385
- var newAddress = __assign(__assign({}, address), { city: e.target.value, country: GERMANY_ALPHA_CODE });
5386
- setAddress(newAddress);
5387
- debouncedSetPlace(newAddress);
5388
- } }, "autocomplete-city")] }), void 0)] }, void 0)) }), void 0),
3519
+ hasLoadedGoogleAPI === false && (jsxRuntime.jsx("div", __assign({ "data-cy": "google-api-loader", className: styles$t['loading-spinner'] }, { children: jsxRuntime.jsx("div", { className: "ds-spinner ds-spinner__m" }, void 0) }), void 0))] }), void 0)) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs("div", __assign({ className: "d-flex c-gap16 " + styles$t['input-line'] }, { children: [jsxRuntime.jsx(Input, __assign({ className: "w100", "data-cy": "autocomplete", type: "text", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.street) || 'Street', value: (address === null || address === void 0 ? void 0 : address.street) || '', onChange: onManualAddressChange(), name: "street" }, inputProps === null || inputProps === void 0 ? void 0 : inputProps.street), "autocomplete-street"),
3520
+ jsxRuntime.jsx(Input, __assign({ className: "wmx2 " + styles$t['house-number-input'], "data-cy": "autocomplete-house-number", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.houseNumber) || 'House Number', value: (address === null || address === void 0 ? void 0 : address.houseNumber) || '', name: "houseNumber", onChange: onManualAddressChange() }, inputProps === null || inputProps === void 0 ? void 0 : inputProps.houseNumber), "autocomplete-house-number")] }), void 0),
3521
+ jsxRuntime.jsx(Input, __assign({ className: "mt16", "data-cy": "autocomplete-additional-info", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.additionalInformation) ||
3522
+ 'Additional information (C/O, apartment, …)', value: (address === null || address === void 0 ? void 0 : address.additionalInformation) || '', name: "additionalInformation", onChange: onManualAddressChange({ updatePlace: false }) }, inputProps === null || inputProps === void 0 ? void 0 : inputProps.additionalInformation), "autocomplete-additional-info"),
3523
+ jsxRuntime.jsxs("div", __assign({ className: "d-flex mt16 c-gap16 " + styles$t['input-line'] }, { children: [jsxRuntime.jsx(Input, __assign({ className: "w100", "data-cy": "autocomplete-postcode", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.postcode) || 'Postcode', value: (address === null || address === void 0 ? void 0 : address.postcode) || '', name: "postcode", onChange: onManualAddressChange() }, inputProps === null || inputProps === void 0 ? void 0 : inputProps.postcode), "autocomplete-postcode"),
3524
+ jsxRuntime.jsx(Input, __assign({ className: "w100", "data-cy": "autocomplete-city", placeholder: (placeholders === null || placeholders === void 0 ? void 0 : placeholders.city) || 'City', value: (address === null || address === void 0 ? void 0 : address.city) || '', name: "city", onChange: onManualAddressChange() }, inputProps === null || inputProps === void 0 ? void 0 : inputProps.city), "autocomplete-city")] }), void 0)] }, void 0)) }), void 0),
5389
3525
  manualAddressEntry === false && (jsxRuntime.jsxs("div", __assign({ className: "p-p mt8" }, { children: [(manualAddressEntryTexts === null || manualAddressEntryTexts === void 0 ? void 0 : manualAddressEntryTexts.preText) || 'Or ',
5390
3526
  jsxRuntime.jsx("button", __assign({ className: 'p-a p-p fw-bold c-pointer bg-transparent', onClick: handleEnterAddressManually, type: "button" }, { children: (manualAddressEntryTexts === null || manualAddressEntryTexts === void 0 ? void 0 : manualAddressEntryTexts.cta) || 'enter address manually' }), void 0)] }), void 0))] }, void 0));
5391
3527
  };
@@ -9028,7 +7164,7 @@ var CardWithTopLeftIcon = function (_a) {
9028
7164
  return (jsxRuntime.jsxs("div", __assign({ className: cardStyle }, props, { children: [jsxRuntime.jsxs("div", __assign({ className: titleContainerStyle }, { children: [leftIcon && (jsxRuntime.jsx("img", { className: "mr8", width: "28px", height: "28px", src: leftIcon === 'logo' ? featherLogo.src : leftIcon.src, alt: leftIcon === 'logo' ? featherLogo.alt : leftIcon.src }, void 0)),
9029
7165
  jsxRuntime.jsx("div", __assign({ className: headingStyle }, { children: title }), void 0),
9030
7166
  rightIcon && (jsxRuntime.jsx("img", { className: iconStyle, width: "24px", height: "24px", src: rightIcon === 'arrow' ? arrowRight.src : rightIcon.src, alt: rightIcon === 'arrow' ? arrowRight.alt : rightIcon.alt }, void 0))] }), void 0),
9031
- jsxRuntime.jsx("p", __assign({ className: cardTextStyle }, { children: children }), void 0)] }), void 0));
7167
+ jsxRuntime.jsx("div", __assign({ className: cardTextStyle }, { children: children }), void 0)] }), void 0));
9032
7168
  };
9033
7169
 
9034
7170
  var css_248z$h = ".style-module_container__384bg {\n padding: 24px 24px 24px 32px;\n}\n.style-module_container--small__35EZ1 {\n padding: 16px 24px 16px 32px;\n}\n.style-module_container--xsmall__2DDsN {\n padding: 16px 16px 16px 24px;\n}\n\n.style-module_card-text--small__1L_Fe {\n margin-top: 2px;\n}\n\n.style-module_card-text--medium__qoKv2 {\n margin-top: 4px;\n}\n\n.style-module_card-text--big__mMB2v {\n margin-top: 6px;\n}";
@@ -9063,10 +7199,10 @@ var CardWithLeftIcon = function (_a) {
9063
7199
  var iconStyle = cardSize === 'xsmall' ? 'mr16' : 'mr32';
9064
7200
  var cardTextStyle = "tc-grey-600 " + (cardSize === 'xsmall' ? 'p-p--small' : 'p-p ') + " " + styles$g[cardTextStyleFromCardSize(cardSize)];
9065
7201
  return (jsxRuntime.jsxs("div", __assign({ className: cardStyle }, props, { children: [leftIcon && (jsxRuntime.jsx("img", { width: ((leftIconSize === null || leftIconSize === void 0 ? void 0 : leftIconSize.width) || 48) + "px", height: ((leftIconSize === null || leftIconSize === void 0 ? void 0 : leftIconSize.height) || 48) + "px", className: iconStyle, src: leftIcon.src, alt: leftIcon.alt }, void 0)),
9066
- jsxRuntime.jsxs("div", { children: [jsxRuntime.jsxs("div", __assign({ className: "d-flex" }, { children: [(title || subtitle) && (jsxRuntime.jsxs("div", { children: [title && (jsxRuntime.jsx("div", __assign({ className: headingStyle }, { children: title }), void 0)),
7202
+ jsxRuntime.jsxs("div", { children: [jsxRuntime.jsxs("div", __assign({ className: "d-flex" }, { children: [(title || subtitle) && (jsxRuntime.jsxs("div", { children: [title && jsxRuntime.jsx("div", __assign({ className: headingStyle }, { children: title }), void 0),
9067
7203
  subtitle && (jsxRuntime.jsx("div", __assign({ className: "tc-grey-500 " + headingStyle }, { children: subtitle }), void 0))] }, void 0)),
9068
7204
  rightIcon && (jsxRuntime.jsx("img", { className: "ml-auto", width: "24px", height: "24px", src: rightIcon === 'arrow' ? arrowRight.src : rightIcon.src, alt: rightIcon === 'arrow' ? arrowRight.alt : rightIcon.alt }, void 0))] }), void 0),
9069
- jsxRuntime.jsx("p", __assign({ className: cardTextStyle }, { children: children }), void 0)] }, void 0)] }), void 0));
7205
+ jsxRuntime.jsx("div", __assign({ className: cardTextStyle }, { children: children }), void 0)] }, void 0)] }), void 0));
9070
7206
  };
9071
7207
 
9072
7208
  var css_248z$g = ".style-module_container__34kUF {\n padding: 32px 24px 24px 24px;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.style-module_right-icon__3_kH9 {\n margin-left: 4px;\n}";
@@ -36383,7 +34519,7 @@ var Spinner = function (_a) {
36383
34519
  return (jsxRuntime.jsx("div", { className: classNames('ds-spinner', "ds-spinner__" + size), "data-testid": "ds-spinner" }, void 0));
36384
34520
  };
36385
34521
 
36386
- var css_248z = ".styles-module_wrapper__1_lY0 {\n padding: 4px;\n}";
34522
+ var css_248z = ".styles-module_wrapper__1_lY0 {\n margin: 4px;\n}";
36387
34523
  var styles = {"wrapper":"styles-module_wrapper__1_lY0"};
36388
34524
  styleInject(css_248z);
36389
34525