@digitransit-component/digitransit-component-favourite-bar 9.0.7 → 9.0.9
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/lib/index.cjs +1 -1
- package/lib/index.cjs.map +1 -1
- package/lib/index.development.cjs +44 -1393
- package/lib/index.js +43 -1392
- package/lib/index.js.map +1 -1
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -34,7 +34,7 @@ function toPropertyKey(t) {
|
|
|
34
34
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
function _defineProperty
|
|
37
|
+
function _defineProperty(e, r, t) {
|
|
38
38
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
39
39
|
value: t,
|
|
40
40
|
enumerable: true,
|
|
@@ -3539,91 +3539,6 @@ function requireIsEqual () {
|
|
|
3539
3539
|
|
|
3540
3540
|
requireIsEqual();
|
|
3541
3541
|
|
|
3542
|
-
var memoize_1;
|
|
3543
|
-
var hasRequiredMemoize;
|
|
3544
|
-
|
|
3545
|
-
function requireMemoize () {
|
|
3546
|
-
if (hasRequiredMemoize) return memoize_1;
|
|
3547
|
-
hasRequiredMemoize = 1;
|
|
3548
|
-
var MapCache = require_MapCache();
|
|
3549
|
-
|
|
3550
|
-
/** Error message constants. */
|
|
3551
|
-
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
3552
|
-
|
|
3553
|
-
/**
|
|
3554
|
-
* Creates a function that memoizes the result of `func`. If `resolver` is
|
|
3555
|
-
* provided, it determines the cache key for storing the result based on the
|
|
3556
|
-
* arguments provided to the memoized function. By default, the first argument
|
|
3557
|
-
* provided to the memoized function is used as the map cache key. The `func`
|
|
3558
|
-
* is invoked with the `this` binding of the memoized function.
|
|
3559
|
-
*
|
|
3560
|
-
* **Note:** The cache is exposed as the `cache` property on the memoized
|
|
3561
|
-
* function. Its creation may be customized by replacing the `_.memoize.Cache`
|
|
3562
|
-
* constructor with one whose instances implement the
|
|
3563
|
-
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
|
|
3564
|
-
* method interface of `clear`, `delete`, `get`, `has`, and `set`.
|
|
3565
|
-
*
|
|
3566
|
-
* @static
|
|
3567
|
-
* @memberOf _
|
|
3568
|
-
* @since 0.1.0
|
|
3569
|
-
* @category Function
|
|
3570
|
-
* @param {Function} func The function to have its output memoized.
|
|
3571
|
-
* @param {Function} [resolver] The function to resolve the cache key.
|
|
3572
|
-
* @returns {Function} Returns the new memoized function.
|
|
3573
|
-
* @example
|
|
3574
|
-
*
|
|
3575
|
-
* var object = { 'a': 1, 'b': 2 };
|
|
3576
|
-
* var other = { 'c': 3, 'd': 4 };
|
|
3577
|
-
*
|
|
3578
|
-
* var values = _.memoize(_.values);
|
|
3579
|
-
* values(object);
|
|
3580
|
-
* // => [1, 2]
|
|
3581
|
-
*
|
|
3582
|
-
* values(other);
|
|
3583
|
-
* // => [3, 4]
|
|
3584
|
-
*
|
|
3585
|
-
* object.a = 2;
|
|
3586
|
-
* values(object);
|
|
3587
|
-
* // => [1, 2]
|
|
3588
|
-
*
|
|
3589
|
-
* // Modify the result cache.
|
|
3590
|
-
* values.cache.set(object, ['a', 'b']);
|
|
3591
|
-
* values(object);
|
|
3592
|
-
* // => ['a', 'b']
|
|
3593
|
-
*
|
|
3594
|
-
* // Replace `_.memoize.Cache`.
|
|
3595
|
-
* _.memoize.Cache = WeakMap;
|
|
3596
|
-
*/
|
|
3597
|
-
function memoize(func, resolver) {
|
|
3598
|
-
if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
|
|
3599
|
-
throw new TypeError(FUNC_ERROR_TEXT);
|
|
3600
|
-
}
|
|
3601
|
-
var memoized = function() {
|
|
3602
|
-
var args = arguments,
|
|
3603
|
-
key = resolver ? resolver.apply(this, args) : args[0],
|
|
3604
|
-
cache = memoized.cache;
|
|
3605
|
-
|
|
3606
|
-
if (cache.has(key)) {
|
|
3607
|
-
return cache.get(key);
|
|
3608
|
-
}
|
|
3609
|
-
var result = func.apply(this, args);
|
|
3610
|
-
memoized.cache = cache.set(key, result) || cache;
|
|
3611
|
-
return result;
|
|
3612
|
-
};
|
|
3613
|
-
memoized.cache = new (memoize.Cache || MapCache);
|
|
3614
|
-
return memoized;
|
|
3615
|
-
}
|
|
3616
|
-
|
|
3617
|
-
// Expose `MapCache`.
|
|
3618
|
-
memoize.Cache = MapCache;
|
|
3619
|
-
|
|
3620
|
-
memoize_1 = memoize;
|
|
3621
|
-
return memoize_1;
|
|
3622
|
-
}
|
|
3623
|
-
|
|
3624
|
-
var memoizeExports = requireMemoize();
|
|
3625
|
-
var memoize = /*@__PURE__*/getDefaultExportFromCjs(memoizeExports);
|
|
3626
|
-
|
|
3627
3542
|
/**
|
|
3628
3543
|
* A specialized version of `_.map` for arrays without support for iteratee
|
|
3629
3544
|
* shorthands.
|
|
@@ -3817,1328 +3732,50 @@ function requireEscapeRegExp () {
|
|
|
3817
3732
|
var escapeRegExpExports = requireEscapeRegExp();
|
|
3818
3733
|
var escapeRegExp = /*@__PURE__*/getDefaultExportFromCjs(escapeRegExpExports);
|
|
3819
3734
|
|
|
3820
|
-
|
|
3821
|
-
* A specialized version of `_.forEach` for arrays without support for
|
|
3822
|
-
* iteratee shorthands.
|
|
3823
|
-
*
|
|
3824
|
-
* @private
|
|
3825
|
-
* @param {Array} [array] The array to iterate over.
|
|
3826
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
3827
|
-
* @returns {Array} Returns `array`.
|
|
3828
|
-
*/
|
|
3829
|
-
|
|
3830
|
-
var _arrayEach;
|
|
3831
|
-
var hasRequired_arrayEach;
|
|
3832
|
-
|
|
3833
|
-
function require_arrayEach () {
|
|
3834
|
-
if (hasRequired_arrayEach) return _arrayEach;
|
|
3835
|
-
hasRequired_arrayEach = 1;
|
|
3836
|
-
function arrayEach(array, iteratee) {
|
|
3837
|
-
var index = -1,
|
|
3838
|
-
length = array == null ? 0 : array.length;
|
|
3839
|
-
|
|
3840
|
-
while (++index < length) {
|
|
3841
|
-
if (iteratee(array[index], index, array) === false) {
|
|
3842
|
-
break;
|
|
3843
|
-
}
|
|
3844
|
-
}
|
|
3845
|
-
return array;
|
|
3846
|
-
}
|
|
3847
|
-
|
|
3848
|
-
_arrayEach = arrayEach;
|
|
3849
|
-
return _arrayEach;
|
|
3850
|
-
}
|
|
3851
|
-
|
|
3852
|
-
var _defineProperty;
|
|
3853
|
-
var hasRequired_defineProperty;
|
|
3854
|
-
|
|
3855
|
-
function require_defineProperty () {
|
|
3856
|
-
if (hasRequired_defineProperty) return _defineProperty;
|
|
3857
|
-
hasRequired_defineProperty = 1;
|
|
3858
|
-
var getNative = require_getNative();
|
|
3859
|
-
|
|
3860
|
-
var defineProperty = (function() {
|
|
3861
|
-
try {
|
|
3862
|
-
var func = getNative(Object, 'defineProperty');
|
|
3863
|
-
func({}, '', {});
|
|
3864
|
-
return func;
|
|
3865
|
-
} catch (e) {}
|
|
3866
|
-
}());
|
|
3867
|
-
|
|
3868
|
-
_defineProperty = defineProperty;
|
|
3869
|
-
return _defineProperty;
|
|
3870
|
-
}
|
|
3871
|
-
|
|
3872
|
-
var _baseAssignValue;
|
|
3873
|
-
var hasRequired_baseAssignValue;
|
|
3874
|
-
|
|
3875
|
-
function require_baseAssignValue () {
|
|
3876
|
-
if (hasRequired_baseAssignValue) return _baseAssignValue;
|
|
3877
|
-
hasRequired_baseAssignValue = 1;
|
|
3878
|
-
var defineProperty = require_defineProperty();
|
|
3879
|
-
|
|
3880
|
-
/**
|
|
3881
|
-
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
3882
|
-
* value checks.
|
|
3883
|
-
*
|
|
3884
|
-
* @private
|
|
3885
|
-
* @param {Object} object The object to modify.
|
|
3886
|
-
* @param {string} key The key of the property to assign.
|
|
3887
|
-
* @param {*} value The value to assign.
|
|
3888
|
-
*/
|
|
3889
|
-
function baseAssignValue(object, key, value) {
|
|
3890
|
-
if (key == '__proto__' && defineProperty) {
|
|
3891
|
-
defineProperty(object, key, {
|
|
3892
|
-
'configurable': true,
|
|
3893
|
-
'enumerable': true,
|
|
3894
|
-
'value': value,
|
|
3895
|
-
'writable': true
|
|
3896
|
-
});
|
|
3897
|
-
} else {
|
|
3898
|
-
object[key] = value;
|
|
3899
|
-
}
|
|
3900
|
-
}
|
|
3901
|
-
|
|
3902
|
-
_baseAssignValue = baseAssignValue;
|
|
3903
|
-
return _baseAssignValue;
|
|
3904
|
-
}
|
|
3905
|
-
|
|
3906
|
-
var _assignValue;
|
|
3907
|
-
var hasRequired_assignValue;
|
|
3908
|
-
|
|
3909
|
-
function require_assignValue () {
|
|
3910
|
-
if (hasRequired_assignValue) return _assignValue;
|
|
3911
|
-
hasRequired_assignValue = 1;
|
|
3912
|
-
var baseAssignValue = require_baseAssignValue(),
|
|
3913
|
-
eq = requireEq();
|
|
3914
|
-
|
|
3915
|
-
/** Used for built-in method references. */
|
|
3916
|
-
var objectProto = Object.prototype;
|
|
3917
|
-
|
|
3918
|
-
/** Used to check objects for own properties. */
|
|
3919
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
3920
|
-
|
|
3921
|
-
/**
|
|
3922
|
-
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
3923
|
-
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
3924
|
-
* for equality comparisons.
|
|
3925
|
-
*
|
|
3926
|
-
* @private
|
|
3927
|
-
* @param {Object} object The object to modify.
|
|
3928
|
-
* @param {string} key The key of the property to assign.
|
|
3929
|
-
* @param {*} value The value to assign.
|
|
3930
|
-
*/
|
|
3931
|
-
function assignValue(object, key, value) {
|
|
3932
|
-
var objValue = object[key];
|
|
3933
|
-
if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
|
|
3934
|
-
(value === undefined && !(key in object))) {
|
|
3935
|
-
baseAssignValue(object, key, value);
|
|
3936
|
-
}
|
|
3937
|
-
}
|
|
3938
|
-
|
|
3939
|
-
_assignValue = assignValue;
|
|
3940
|
-
return _assignValue;
|
|
3941
|
-
}
|
|
3942
|
-
|
|
3943
|
-
var _copyObject;
|
|
3944
|
-
var hasRequired_copyObject;
|
|
3945
|
-
|
|
3946
|
-
function require_copyObject () {
|
|
3947
|
-
if (hasRequired_copyObject) return _copyObject;
|
|
3948
|
-
hasRequired_copyObject = 1;
|
|
3949
|
-
var assignValue = require_assignValue(),
|
|
3950
|
-
baseAssignValue = require_baseAssignValue();
|
|
3951
|
-
|
|
3952
|
-
/**
|
|
3953
|
-
* Copies properties of `source` to `object`.
|
|
3954
|
-
*
|
|
3955
|
-
* @private
|
|
3956
|
-
* @param {Object} source The object to copy properties from.
|
|
3957
|
-
* @param {Array} props The property identifiers to copy.
|
|
3958
|
-
* @param {Object} [object={}] The object to copy properties to.
|
|
3959
|
-
* @param {Function} [customizer] The function to customize copied values.
|
|
3960
|
-
* @returns {Object} Returns `object`.
|
|
3961
|
-
*/
|
|
3962
|
-
function copyObject(source, props, object, customizer) {
|
|
3963
|
-
var isNew = !object;
|
|
3964
|
-
object || (object = {});
|
|
3965
|
-
|
|
3966
|
-
var index = -1,
|
|
3967
|
-
length = props.length;
|
|
3968
|
-
|
|
3969
|
-
while (++index < length) {
|
|
3970
|
-
var key = props[index];
|
|
3971
|
-
|
|
3972
|
-
var newValue = customizer
|
|
3973
|
-
? customizer(object[key], source[key], key, object, source)
|
|
3974
|
-
: undefined;
|
|
3975
|
-
|
|
3976
|
-
if (newValue === undefined) {
|
|
3977
|
-
newValue = source[key];
|
|
3978
|
-
}
|
|
3979
|
-
if (isNew) {
|
|
3980
|
-
baseAssignValue(object, key, newValue);
|
|
3981
|
-
} else {
|
|
3982
|
-
assignValue(object, key, newValue);
|
|
3983
|
-
}
|
|
3984
|
-
}
|
|
3985
|
-
return object;
|
|
3986
|
-
}
|
|
3987
|
-
|
|
3988
|
-
_copyObject = copyObject;
|
|
3989
|
-
return _copyObject;
|
|
3990
|
-
}
|
|
3991
|
-
|
|
3992
|
-
var _baseAssign;
|
|
3993
|
-
var hasRequired_baseAssign;
|
|
3994
|
-
|
|
3995
|
-
function require_baseAssign () {
|
|
3996
|
-
if (hasRequired_baseAssign) return _baseAssign;
|
|
3997
|
-
hasRequired_baseAssign = 1;
|
|
3998
|
-
var copyObject = require_copyObject(),
|
|
3999
|
-
keys = requireKeys();
|
|
4000
|
-
|
|
4001
|
-
/**
|
|
4002
|
-
* The base implementation of `_.assign` without support for multiple sources
|
|
4003
|
-
* or `customizer` functions.
|
|
4004
|
-
*
|
|
4005
|
-
* @private
|
|
4006
|
-
* @param {Object} object The destination object.
|
|
4007
|
-
* @param {Object} source The source object.
|
|
4008
|
-
* @returns {Object} Returns `object`.
|
|
4009
|
-
*/
|
|
4010
|
-
function baseAssign(object, source) {
|
|
4011
|
-
return object && copyObject(source, keys(source), object);
|
|
4012
|
-
}
|
|
4013
|
-
|
|
4014
|
-
_baseAssign = baseAssign;
|
|
4015
|
-
return _baseAssign;
|
|
4016
|
-
}
|
|
4017
|
-
|
|
4018
|
-
/**
|
|
4019
|
-
* This function is like
|
|
4020
|
-
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
4021
|
-
* except that it includes inherited enumerable properties.
|
|
4022
|
-
*
|
|
4023
|
-
* @private
|
|
4024
|
-
* @param {Object} object The object to query.
|
|
4025
|
-
* @returns {Array} Returns the array of property names.
|
|
4026
|
-
*/
|
|
4027
|
-
|
|
4028
|
-
var _nativeKeysIn;
|
|
4029
|
-
var hasRequired_nativeKeysIn;
|
|
4030
|
-
|
|
4031
|
-
function require_nativeKeysIn () {
|
|
4032
|
-
if (hasRequired_nativeKeysIn) return _nativeKeysIn;
|
|
4033
|
-
hasRequired_nativeKeysIn = 1;
|
|
4034
|
-
function nativeKeysIn(object) {
|
|
4035
|
-
var result = [];
|
|
4036
|
-
if (object != null) {
|
|
4037
|
-
for (var key in Object(object)) {
|
|
4038
|
-
result.push(key);
|
|
4039
|
-
}
|
|
4040
|
-
}
|
|
4041
|
-
return result;
|
|
4042
|
-
}
|
|
4043
|
-
|
|
4044
|
-
_nativeKeysIn = nativeKeysIn;
|
|
4045
|
-
return _nativeKeysIn;
|
|
4046
|
-
}
|
|
4047
|
-
|
|
4048
|
-
var _baseKeysIn;
|
|
4049
|
-
var hasRequired_baseKeysIn;
|
|
4050
|
-
|
|
4051
|
-
function require_baseKeysIn () {
|
|
4052
|
-
if (hasRequired_baseKeysIn) return _baseKeysIn;
|
|
4053
|
-
hasRequired_baseKeysIn = 1;
|
|
4054
|
-
var isObject = requireIsObject(),
|
|
4055
|
-
isPrototype = require_isPrototype(),
|
|
4056
|
-
nativeKeysIn = require_nativeKeysIn();
|
|
4057
|
-
|
|
4058
|
-
/** Used for built-in method references. */
|
|
4059
|
-
var objectProto = Object.prototype;
|
|
4060
|
-
|
|
4061
|
-
/** Used to check objects for own properties. */
|
|
4062
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
4063
|
-
|
|
4064
|
-
/**
|
|
4065
|
-
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
|
|
4066
|
-
*
|
|
4067
|
-
* @private
|
|
4068
|
-
* @param {Object} object The object to query.
|
|
4069
|
-
* @returns {Array} Returns the array of property names.
|
|
4070
|
-
*/
|
|
4071
|
-
function baseKeysIn(object) {
|
|
4072
|
-
if (!isObject(object)) {
|
|
4073
|
-
return nativeKeysIn(object);
|
|
4074
|
-
}
|
|
4075
|
-
var isProto = isPrototype(object),
|
|
4076
|
-
result = [];
|
|
4077
|
-
|
|
4078
|
-
for (var key in object) {
|
|
4079
|
-
if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
|
|
4080
|
-
result.push(key);
|
|
4081
|
-
}
|
|
4082
|
-
}
|
|
4083
|
-
return result;
|
|
4084
|
-
}
|
|
4085
|
-
|
|
4086
|
-
_baseKeysIn = baseKeysIn;
|
|
4087
|
-
return _baseKeysIn;
|
|
4088
|
-
}
|
|
4089
|
-
|
|
4090
|
-
var keysIn_1;
|
|
4091
|
-
var hasRequiredKeysIn;
|
|
4092
|
-
|
|
4093
|
-
function requireKeysIn () {
|
|
4094
|
-
if (hasRequiredKeysIn) return keysIn_1;
|
|
4095
|
-
hasRequiredKeysIn = 1;
|
|
4096
|
-
var arrayLikeKeys = require_arrayLikeKeys(),
|
|
4097
|
-
baseKeysIn = require_baseKeysIn(),
|
|
4098
|
-
isArrayLike = requireIsArrayLike();
|
|
4099
|
-
|
|
4100
|
-
/**
|
|
4101
|
-
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
4102
|
-
*
|
|
4103
|
-
* **Note:** Non-object values are coerced to objects.
|
|
4104
|
-
*
|
|
4105
|
-
* @static
|
|
4106
|
-
* @memberOf _
|
|
4107
|
-
* @since 3.0.0
|
|
4108
|
-
* @category Object
|
|
4109
|
-
* @param {Object} object The object to query.
|
|
4110
|
-
* @returns {Array} Returns the array of property names.
|
|
4111
|
-
* @example
|
|
4112
|
-
*
|
|
4113
|
-
* function Foo() {
|
|
4114
|
-
* this.a = 1;
|
|
4115
|
-
* this.b = 2;
|
|
4116
|
-
* }
|
|
4117
|
-
*
|
|
4118
|
-
* Foo.prototype.c = 3;
|
|
4119
|
-
*
|
|
4120
|
-
* _.keysIn(new Foo);
|
|
4121
|
-
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
|
4122
|
-
*/
|
|
4123
|
-
function keysIn(object) {
|
|
4124
|
-
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
4125
|
-
}
|
|
4126
|
-
|
|
4127
|
-
keysIn_1 = keysIn;
|
|
4128
|
-
return keysIn_1;
|
|
4129
|
-
}
|
|
4130
|
-
|
|
4131
|
-
var _baseAssignIn;
|
|
4132
|
-
var hasRequired_baseAssignIn;
|
|
4133
|
-
|
|
4134
|
-
function require_baseAssignIn () {
|
|
4135
|
-
if (hasRequired_baseAssignIn) return _baseAssignIn;
|
|
4136
|
-
hasRequired_baseAssignIn = 1;
|
|
4137
|
-
var copyObject = require_copyObject(),
|
|
4138
|
-
keysIn = requireKeysIn();
|
|
4139
|
-
|
|
4140
|
-
/**
|
|
4141
|
-
* The base implementation of `_.assignIn` without support for multiple sources
|
|
4142
|
-
* or `customizer` functions.
|
|
4143
|
-
*
|
|
4144
|
-
* @private
|
|
4145
|
-
* @param {Object} object The destination object.
|
|
4146
|
-
* @param {Object} source The source object.
|
|
4147
|
-
* @returns {Object} Returns `object`.
|
|
4148
|
-
*/
|
|
4149
|
-
function baseAssignIn(object, source) {
|
|
4150
|
-
return object && copyObject(source, keysIn(source), object);
|
|
4151
|
-
}
|
|
4152
|
-
|
|
4153
|
-
_baseAssignIn = baseAssignIn;
|
|
4154
|
-
return _baseAssignIn;
|
|
4155
|
-
}
|
|
4156
|
-
|
|
4157
|
-
var _cloneBuffer = {exports: {}};
|
|
4158
|
-
|
|
4159
|
-
_cloneBuffer.exports;
|
|
4160
|
-
|
|
4161
|
-
var hasRequired_cloneBuffer;
|
|
4162
|
-
|
|
4163
|
-
function require_cloneBuffer () {
|
|
4164
|
-
if (hasRequired_cloneBuffer) return _cloneBuffer.exports;
|
|
4165
|
-
hasRequired_cloneBuffer = 1;
|
|
4166
|
-
(function (module, exports) {
|
|
4167
|
-
var root = require_root();
|
|
4168
|
-
|
|
4169
|
-
/** Detect free variable `exports`. */
|
|
4170
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
4171
|
-
|
|
4172
|
-
/** Detect free variable `module`. */
|
|
4173
|
-
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
4174
|
-
|
|
4175
|
-
/** Detect the popular CommonJS extension `module.exports`. */
|
|
4176
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
4177
|
-
|
|
4178
|
-
/** Built-in value references. */
|
|
4179
|
-
var Buffer = moduleExports ? root.Buffer : undefined,
|
|
4180
|
-
allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
|
|
4181
|
-
|
|
4182
|
-
/**
|
|
4183
|
-
* Creates a clone of `buffer`.
|
|
4184
|
-
*
|
|
4185
|
-
* @private
|
|
4186
|
-
* @param {Buffer} buffer The buffer to clone.
|
|
4187
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
4188
|
-
* @returns {Buffer} Returns the cloned buffer.
|
|
4189
|
-
*/
|
|
4190
|
-
function cloneBuffer(buffer, isDeep) {
|
|
4191
|
-
if (isDeep) {
|
|
4192
|
-
return buffer.slice();
|
|
4193
|
-
}
|
|
4194
|
-
var length = buffer.length,
|
|
4195
|
-
result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
4196
|
-
|
|
4197
|
-
buffer.copy(result);
|
|
4198
|
-
return result;
|
|
4199
|
-
}
|
|
4200
|
-
|
|
4201
|
-
module.exports = cloneBuffer;
|
|
4202
|
-
} (_cloneBuffer, _cloneBuffer.exports));
|
|
4203
|
-
return _cloneBuffer.exports;
|
|
4204
|
-
}
|
|
3735
|
+
const formatFavouritePlaceLabel = (name, address) => [name || address && address.split(',')[0], typeof address === 'string' ? address.replace(new RegExp(`${escapeRegExp(name)}([ ,]|$)+`), '') : ''];
|
|
4205
3736
|
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
* @private
|
|
4210
|
-
* @param {Array} source The array to copy values from.
|
|
4211
|
-
* @param {Array} [array=[]] The array to copy values to.
|
|
4212
|
-
* @returns {Array} Returns `array`.
|
|
4213
|
-
*/
|
|
3737
|
+
function styleInject(css, ref) {
|
|
3738
|
+
if ( ref === void 0 ) ref = {};
|
|
3739
|
+
var insertAt = ref.insertAt;
|
|
4214
3740
|
|
|
4215
|
-
|
|
4216
|
-
var hasRequired_copyArray;
|
|
3741
|
+
if (typeof document === 'undefined') { return; }
|
|
4217
3742
|
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
function copyArray(source, array) {
|
|
4222
|
-
var index = -1,
|
|
4223
|
-
length = source.length;
|
|
3743
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
3744
|
+
var style = document.createElement('style');
|
|
3745
|
+
style.type = 'text/css';
|
|
4224
3746
|
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
3747
|
+
if (insertAt === 'top') {
|
|
3748
|
+
if (head.firstChild) {
|
|
3749
|
+
head.insertBefore(style, head.firstChild);
|
|
3750
|
+
} else {
|
|
3751
|
+
head.appendChild(style);
|
|
3752
|
+
}
|
|
3753
|
+
} else {
|
|
3754
|
+
head.appendChild(style);
|
|
3755
|
+
}
|
|
4231
3756
|
|
|
4232
|
-
|
|
4233
|
-
|
|
3757
|
+
if (style.styleSheet) {
|
|
3758
|
+
style.styleSheet.cssText = css;
|
|
3759
|
+
} else {
|
|
3760
|
+
style.appendChild(document.createTextNode(css));
|
|
3761
|
+
}
|
|
4234
3762
|
}
|
|
4235
3763
|
|
|
4236
|
-
var
|
|
4237
|
-
var
|
|
4238
|
-
|
|
4239
|
-
function require_copySymbols () {
|
|
4240
|
-
if (hasRequired_copySymbols) return _copySymbols;
|
|
4241
|
-
hasRequired_copySymbols = 1;
|
|
4242
|
-
var copyObject = require_copyObject(),
|
|
4243
|
-
getSymbols = require_getSymbols();
|
|
4244
|
-
|
|
4245
|
-
/**
|
|
4246
|
-
* Copies own symbols of `source` to `object`.
|
|
4247
|
-
*
|
|
4248
|
-
* @private
|
|
4249
|
-
* @param {Object} source The object to copy symbols from.
|
|
4250
|
-
* @param {Object} [object={}] The object to copy symbols to.
|
|
4251
|
-
* @returns {Object} Returns `object`.
|
|
4252
|
-
*/
|
|
4253
|
-
function copySymbols(source, object) {
|
|
4254
|
-
return copyObject(source, getSymbols(source), object);
|
|
4255
|
-
}
|
|
4256
|
-
|
|
4257
|
-
_copySymbols = copySymbols;
|
|
4258
|
-
return _copySymbols;
|
|
4259
|
-
}
|
|
4260
|
-
|
|
4261
|
-
var _getPrototype;
|
|
4262
|
-
var hasRequired_getPrototype;
|
|
4263
|
-
|
|
4264
|
-
function require_getPrototype () {
|
|
4265
|
-
if (hasRequired_getPrototype) return _getPrototype;
|
|
4266
|
-
hasRequired_getPrototype = 1;
|
|
4267
|
-
var overArg = require_overArg();
|
|
4268
|
-
|
|
4269
|
-
/** Built-in value references. */
|
|
4270
|
-
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
4271
|
-
|
|
4272
|
-
_getPrototype = getPrototype;
|
|
4273
|
-
return _getPrototype;
|
|
4274
|
-
}
|
|
4275
|
-
|
|
4276
|
-
var _getSymbolsIn;
|
|
4277
|
-
var hasRequired_getSymbolsIn;
|
|
4278
|
-
|
|
4279
|
-
function require_getSymbolsIn () {
|
|
4280
|
-
if (hasRequired_getSymbolsIn) return _getSymbolsIn;
|
|
4281
|
-
hasRequired_getSymbolsIn = 1;
|
|
4282
|
-
var arrayPush = require_arrayPush(),
|
|
4283
|
-
getPrototype = require_getPrototype(),
|
|
4284
|
-
getSymbols = require_getSymbols(),
|
|
4285
|
-
stubArray = requireStubArray();
|
|
4286
|
-
|
|
4287
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
4288
|
-
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
4289
|
-
|
|
4290
|
-
/**
|
|
4291
|
-
* Creates an array of the own and inherited enumerable symbols of `object`.
|
|
4292
|
-
*
|
|
4293
|
-
* @private
|
|
4294
|
-
* @param {Object} object The object to query.
|
|
4295
|
-
* @returns {Array} Returns the array of symbols.
|
|
4296
|
-
*/
|
|
4297
|
-
var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
|
|
4298
|
-
var result = [];
|
|
4299
|
-
while (object) {
|
|
4300
|
-
arrayPush(result, getSymbols(object));
|
|
4301
|
-
object = getPrototype(object);
|
|
4302
|
-
}
|
|
4303
|
-
return result;
|
|
4304
|
-
};
|
|
4305
|
-
|
|
4306
|
-
_getSymbolsIn = getSymbolsIn;
|
|
4307
|
-
return _getSymbolsIn;
|
|
4308
|
-
}
|
|
4309
|
-
|
|
4310
|
-
var _copySymbolsIn;
|
|
4311
|
-
var hasRequired_copySymbolsIn;
|
|
4312
|
-
|
|
4313
|
-
function require_copySymbolsIn () {
|
|
4314
|
-
if (hasRequired_copySymbolsIn) return _copySymbolsIn;
|
|
4315
|
-
hasRequired_copySymbolsIn = 1;
|
|
4316
|
-
var copyObject = require_copyObject(),
|
|
4317
|
-
getSymbolsIn = require_getSymbolsIn();
|
|
4318
|
-
|
|
4319
|
-
/**
|
|
4320
|
-
* Copies own and inherited symbols of `source` to `object`.
|
|
4321
|
-
*
|
|
4322
|
-
* @private
|
|
4323
|
-
* @param {Object} source The object to copy symbols from.
|
|
4324
|
-
* @param {Object} [object={}] The object to copy symbols to.
|
|
4325
|
-
* @returns {Object} Returns `object`.
|
|
4326
|
-
*/
|
|
4327
|
-
function copySymbolsIn(source, object) {
|
|
4328
|
-
return copyObject(source, getSymbolsIn(source), object);
|
|
4329
|
-
}
|
|
4330
|
-
|
|
4331
|
-
_copySymbolsIn = copySymbolsIn;
|
|
4332
|
-
return _copySymbolsIn;
|
|
4333
|
-
}
|
|
4334
|
-
|
|
4335
|
-
var _getAllKeysIn;
|
|
4336
|
-
var hasRequired_getAllKeysIn;
|
|
4337
|
-
|
|
4338
|
-
function require_getAllKeysIn () {
|
|
4339
|
-
if (hasRequired_getAllKeysIn) return _getAllKeysIn;
|
|
4340
|
-
hasRequired_getAllKeysIn = 1;
|
|
4341
|
-
var baseGetAllKeys = require_baseGetAllKeys(),
|
|
4342
|
-
getSymbolsIn = require_getSymbolsIn(),
|
|
4343
|
-
keysIn = requireKeysIn();
|
|
4344
|
-
|
|
4345
|
-
/**
|
|
4346
|
-
* Creates an array of own and inherited enumerable property names and
|
|
4347
|
-
* symbols of `object`.
|
|
4348
|
-
*
|
|
4349
|
-
* @private
|
|
4350
|
-
* @param {Object} object The object to query.
|
|
4351
|
-
* @returns {Array} Returns the array of property names and symbols.
|
|
4352
|
-
*/
|
|
4353
|
-
function getAllKeysIn(object) {
|
|
4354
|
-
return baseGetAllKeys(object, keysIn, getSymbolsIn);
|
|
4355
|
-
}
|
|
4356
|
-
|
|
4357
|
-
_getAllKeysIn = getAllKeysIn;
|
|
4358
|
-
return _getAllKeysIn;
|
|
4359
|
-
}
|
|
4360
|
-
|
|
4361
|
-
/** Used for built-in method references. */
|
|
4362
|
-
|
|
4363
|
-
var _initCloneArray;
|
|
4364
|
-
var hasRequired_initCloneArray;
|
|
4365
|
-
|
|
4366
|
-
function require_initCloneArray () {
|
|
4367
|
-
if (hasRequired_initCloneArray) return _initCloneArray;
|
|
4368
|
-
hasRequired_initCloneArray = 1;
|
|
4369
|
-
var objectProto = Object.prototype;
|
|
4370
|
-
|
|
4371
|
-
/** Used to check objects for own properties. */
|
|
4372
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
4373
|
-
|
|
4374
|
-
/**
|
|
4375
|
-
* Initializes an array clone.
|
|
4376
|
-
*
|
|
4377
|
-
* @private
|
|
4378
|
-
* @param {Array} array The array to clone.
|
|
4379
|
-
* @returns {Array} Returns the initialized clone.
|
|
4380
|
-
*/
|
|
4381
|
-
function initCloneArray(array) {
|
|
4382
|
-
var length = array.length,
|
|
4383
|
-
result = new array.constructor(length);
|
|
4384
|
-
|
|
4385
|
-
// Add properties assigned by `RegExp#exec`.
|
|
4386
|
-
if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
|
|
4387
|
-
result.index = array.index;
|
|
4388
|
-
result.input = array.input;
|
|
4389
|
-
}
|
|
4390
|
-
return result;
|
|
4391
|
-
}
|
|
4392
|
-
|
|
4393
|
-
_initCloneArray = initCloneArray;
|
|
4394
|
-
return _initCloneArray;
|
|
4395
|
-
}
|
|
4396
|
-
|
|
4397
|
-
var _cloneArrayBuffer;
|
|
4398
|
-
var hasRequired_cloneArrayBuffer;
|
|
4399
|
-
|
|
4400
|
-
function require_cloneArrayBuffer () {
|
|
4401
|
-
if (hasRequired_cloneArrayBuffer) return _cloneArrayBuffer;
|
|
4402
|
-
hasRequired_cloneArrayBuffer = 1;
|
|
4403
|
-
var Uint8Array = require_Uint8Array();
|
|
4404
|
-
|
|
4405
|
-
/**
|
|
4406
|
-
* Creates a clone of `arrayBuffer`.
|
|
4407
|
-
*
|
|
4408
|
-
* @private
|
|
4409
|
-
* @param {ArrayBuffer} arrayBuffer The array buffer to clone.
|
|
4410
|
-
* @returns {ArrayBuffer} Returns the cloned array buffer.
|
|
4411
|
-
*/
|
|
4412
|
-
function cloneArrayBuffer(arrayBuffer) {
|
|
4413
|
-
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
4414
|
-
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
|
|
4415
|
-
return result;
|
|
4416
|
-
}
|
|
4417
|
-
|
|
4418
|
-
_cloneArrayBuffer = cloneArrayBuffer;
|
|
4419
|
-
return _cloneArrayBuffer;
|
|
4420
|
-
}
|
|
4421
|
-
|
|
4422
|
-
var _cloneDataView;
|
|
4423
|
-
var hasRequired_cloneDataView;
|
|
4424
|
-
|
|
4425
|
-
function require_cloneDataView () {
|
|
4426
|
-
if (hasRequired_cloneDataView) return _cloneDataView;
|
|
4427
|
-
hasRequired_cloneDataView = 1;
|
|
4428
|
-
var cloneArrayBuffer = require_cloneArrayBuffer();
|
|
4429
|
-
|
|
4430
|
-
/**
|
|
4431
|
-
* Creates a clone of `dataView`.
|
|
4432
|
-
*
|
|
4433
|
-
* @private
|
|
4434
|
-
* @param {Object} dataView The data view to clone.
|
|
4435
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
4436
|
-
* @returns {Object} Returns the cloned data view.
|
|
4437
|
-
*/
|
|
4438
|
-
function cloneDataView(dataView, isDeep) {
|
|
4439
|
-
var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
|
|
4440
|
-
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
4441
|
-
}
|
|
4442
|
-
|
|
4443
|
-
_cloneDataView = cloneDataView;
|
|
4444
|
-
return _cloneDataView;
|
|
4445
|
-
}
|
|
4446
|
-
|
|
4447
|
-
/** Used to match `RegExp` flags from their coerced string values. */
|
|
4448
|
-
|
|
4449
|
-
var _cloneRegExp;
|
|
4450
|
-
var hasRequired_cloneRegExp;
|
|
4451
|
-
|
|
4452
|
-
function require_cloneRegExp () {
|
|
4453
|
-
if (hasRequired_cloneRegExp) return _cloneRegExp;
|
|
4454
|
-
hasRequired_cloneRegExp = 1;
|
|
4455
|
-
var reFlags = /\w*$/;
|
|
4456
|
-
|
|
4457
|
-
/**
|
|
4458
|
-
* Creates a clone of `regexp`.
|
|
4459
|
-
*
|
|
4460
|
-
* @private
|
|
4461
|
-
* @param {Object} regexp The regexp to clone.
|
|
4462
|
-
* @returns {Object} Returns the cloned regexp.
|
|
4463
|
-
*/
|
|
4464
|
-
function cloneRegExp(regexp) {
|
|
4465
|
-
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
|
|
4466
|
-
result.lastIndex = regexp.lastIndex;
|
|
4467
|
-
return result;
|
|
4468
|
-
}
|
|
4469
|
-
|
|
4470
|
-
_cloneRegExp = cloneRegExp;
|
|
4471
|
-
return _cloneRegExp;
|
|
4472
|
-
}
|
|
4473
|
-
|
|
4474
|
-
var _cloneSymbol;
|
|
4475
|
-
var hasRequired_cloneSymbol;
|
|
4476
|
-
|
|
4477
|
-
function require_cloneSymbol () {
|
|
4478
|
-
if (hasRequired_cloneSymbol) return _cloneSymbol;
|
|
4479
|
-
hasRequired_cloneSymbol = 1;
|
|
4480
|
-
var Symbol = require_Symbol();
|
|
4481
|
-
|
|
4482
|
-
/** Used to convert symbols to primitives and strings. */
|
|
4483
|
-
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
|
4484
|
-
symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
|
|
4485
|
-
|
|
4486
|
-
/**
|
|
4487
|
-
* Creates a clone of the `symbol` object.
|
|
4488
|
-
*
|
|
4489
|
-
* @private
|
|
4490
|
-
* @param {Object} symbol The symbol object to clone.
|
|
4491
|
-
* @returns {Object} Returns the cloned symbol object.
|
|
4492
|
-
*/
|
|
4493
|
-
function cloneSymbol(symbol) {
|
|
4494
|
-
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
|
|
4495
|
-
}
|
|
4496
|
-
|
|
4497
|
-
_cloneSymbol = cloneSymbol;
|
|
4498
|
-
return _cloneSymbol;
|
|
4499
|
-
}
|
|
4500
|
-
|
|
4501
|
-
var _cloneTypedArray;
|
|
4502
|
-
var hasRequired_cloneTypedArray;
|
|
4503
|
-
|
|
4504
|
-
function require_cloneTypedArray () {
|
|
4505
|
-
if (hasRequired_cloneTypedArray) return _cloneTypedArray;
|
|
4506
|
-
hasRequired_cloneTypedArray = 1;
|
|
4507
|
-
var cloneArrayBuffer = require_cloneArrayBuffer();
|
|
4508
|
-
|
|
4509
|
-
/**
|
|
4510
|
-
* Creates a clone of `typedArray`.
|
|
4511
|
-
*
|
|
4512
|
-
* @private
|
|
4513
|
-
* @param {Object} typedArray The typed array to clone.
|
|
4514
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
4515
|
-
* @returns {Object} Returns the cloned typed array.
|
|
4516
|
-
*/
|
|
4517
|
-
function cloneTypedArray(typedArray, isDeep) {
|
|
4518
|
-
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
4519
|
-
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
4520
|
-
}
|
|
4521
|
-
|
|
4522
|
-
_cloneTypedArray = cloneTypedArray;
|
|
4523
|
-
return _cloneTypedArray;
|
|
4524
|
-
}
|
|
4525
|
-
|
|
4526
|
-
var _initCloneByTag;
|
|
4527
|
-
var hasRequired_initCloneByTag;
|
|
4528
|
-
|
|
4529
|
-
function require_initCloneByTag () {
|
|
4530
|
-
if (hasRequired_initCloneByTag) return _initCloneByTag;
|
|
4531
|
-
hasRequired_initCloneByTag = 1;
|
|
4532
|
-
var cloneArrayBuffer = require_cloneArrayBuffer(),
|
|
4533
|
-
cloneDataView = require_cloneDataView(),
|
|
4534
|
-
cloneRegExp = require_cloneRegExp(),
|
|
4535
|
-
cloneSymbol = require_cloneSymbol(),
|
|
4536
|
-
cloneTypedArray = require_cloneTypedArray();
|
|
4537
|
-
|
|
4538
|
-
/** `Object#toString` result references. */
|
|
4539
|
-
var boolTag = '[object Boolean]',
|
|
4540
|
-
dateTag = '[object Date]',
|
|
4541
|
-
mapTag = '[object Map]',
|
|
4542
|
-
numberTag = '[object Number]',
|
|
4543
|
-
regexpTag = '[object RegExp]',
|
|
4544
|
-
setTag = '[object Set]',
|
|
4545
|
-
stringTag = '[object String]',
|
|
4546
|
-
symbolTag = '[object Symbol]';
|
|
4547
|
-
|
|
4548
|
-
var arrayBufferTag = '[object ArrayBuffer]',
|
|
4549
|
-
dataViewTag = '[object DataView]',
|
|
4550
|
-
float32Tag = '[object Float32Array]',
|
|
4551
|
-
float64Tag = '[object Float64Array]',
|
|
4552
|
-
int8Tag = '[object Int8Array]',
|
|
4553
|
-
int16Tag = '[object Int16Array]',
|
|
4554
|
-
int32Tag = '[object Int32Array]',
|
|
4555
|
-
uint8Tag = '[object Uint8Array]',
|
|
4556
|
-
uint8ClampedTag = '[object Uint8ClampedArray]',
|
|
4557
|
-
uint16Tag = '[object Uint16Array]',
|
|
4558
|
-
uint32Tag = '[object Uint32Array]';
|
|
4559
|
-
|
|
4560
|
-
/**
|
|
4561
|
-
* Initializes an object clone based on its `toStringTag`.
|
|
4562
|
-
*
|
|
4563
|
-
* **Note:** This function only supports cloning values with tags of
|
|
4564
|
-
* `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
|
|
4565
|
-
*
|
|
4566
|
-
* @private
|
|
4567
|
-
* @param {Object} object The object to clone.
|
|
4568
|
-
* @param {string} tag The `toStringTag` of the object to clone.
|
|
4569
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
4570
|
-
* @returns {Object} Returns the initialized clone.
|
|
4571
|
-
*/
|
|
4572
|
-
function initCloneByTag(object, tag, isDeep) {
|
|
4573
|
-
var Ctor = object.constructor;
|
|
4574
|
-
switch (tag) {
|
|
4575
|
-
case arrayBufferTag:
|
|
4576
|
-
return cloneArrayBuffer(object);
|
|
4577
|
-
|
|
4578
|
-
case boolTag:
|
|
4579
|
-
case dateTag:
|
|
4580
|
-
return new Ctor(+object);
|
|
4581
|
-
|
|
4582
|
-
case dataViewTag:
|
|
4583
|
-
return cloneDataView(object, isDeep);
|
|
4584
|
-
|
|
4585
|
-
case float32Tag: case float64Tag:
|
|
4586
|
-
case int8Tag: case int16Tag: case int32Tag:
|
|
4587
|
-
case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
|
|
4588
|
-
return cloneTypedArray(object, isDeep);
|
|
4589
|
-
|
|
4590
|
-
case mapTag:
|
|
4591
|
-
return new Ctor;
|
|
4592
|
-
|
|
4593
|
-
case numberTag:
|
|
4594
|
-
case stringTag:
|
|
4595
|
-
return new Ctor(object);
|
|
4596
|
-
|
|
4597
|
-
case regexpTag:
|
|
4598
|
-
return cloneRegExp(object);
|
|
4599
|
-
|
|
4600
|
-
case setTag:
|
|
4601
|
-
return new Ctor;
|
|
4602
|
-
|
|
4603
|
-
case symbolTag:
|
|
4604
|
-
return cloneSymbol(object);
|
|
4605
|
-
}
|
|
4606
|
-
}
|
|
4607
|
-
|
|
4608
|
-
_initCloneByTag = initCloneByTag;
|
|
4609
|
-
return _initCloneByTag;
|
|
4610
|
-
}
|
|
4611
|
-
|
|
4612
|
-
var _baseCreate;
|
|
4613
|
-
var hasRequired_baseCreate;
|
|
4614
|
-
|
|
4615
|
-
function require_baseCreate () {
|
|
4616
|
-
if (hasRequired_baseCreate) return _baseCreate;
|
|
4617
|
-
hasRequired_baseCreate = 1;
|
|
4618
|
-
var isObject = requireIsObject();
|
|
4619
|
-
|
|
4620
|
-
/** Built-in value references. */
|
|
4621
|
-
var objectCreate = Object.create;
|
|
4622
|
-
|
|
4623
|
-
/**
|
|
4624
|
-
* The base implementation of `_.create` without support for assigning
|
|
4625
|
-
* properties to the created object.
|
|
4626
|
-
*
|
|
4627
|
-
* @private
|
|
4628
|
-
* @param {Object} proto The object to inherit from.
|
|
4629
|
-
* @returns {Object} Returns the new object.
|
|
4630
|
-
*/
|
|
4631
|
-
var baseCreate = (function() {
|
|
4632
|
-
function object() {}
|
|
4633
|
-
return function(proto) {
|
|
4634
|
-
if (!isObject(proto)) {
|
|
4635
|
-
return {};
|
|
4636
|
-
}
|
|
4637
|
-
if (objectCreate) {
|
|
4638
|
-
return objectCreate(proto);
|
|
4639
|
-
}
|
|
4640
|
-
object.prototype = proto;
|
|
4641
|
-
var result = new object;
|
|
4642
|
-
object.prototype = undefined;
|
|
4643
|
-
return result;
|
|
4644
|
-
};
|
|
4645
|
-
}());
|
|
4646
|
-
|
|
4647
|
-
_baseCreate = baseCreate;
|
|
4648
|
-
return _baseCreate;
|
|
4649
|
-
}
|
|
4650
|
-
|
|
4651
|
-
var _initCloneObject;
|
|
4652
|
-
var hasRequired_initCloneObject;
|
|
4653
|
-
|
|
4654
|
-
function require_initCloneObject () {
|
|
4655
|
-
if (hasRequired_initCloneObject) return _initCloneObject;
|
|
4656
|
-
hasRequired_initCloneObject = 1;
|
|
4657
|
-
var baseCreate = require_baseCreate(),
|
|
4658
|
-
getPrototype = require_getPrototype(),
|
|
4659
|
-
isPrototype = require_isPrototype();
|
|
4660
|
-
|
|
4661
|
-
/**
|
|
4662
|
-
* Initializes an object clone.
|
|
4663
|
-
*
|
|
4664
|
-
* @private
|
|
4665
|
-
* @param {Object} object The object to clone.
|
|
4666
|
-
* @returns {Object} Returns the initialized clone.
|
|
4667
|
-
*/
|
|
4668
|
-
function initCloneObject(object) {
|
|
4669
|
-
return (typeof object.constructor == 'function' && !isPrototype(object))
|
|
4670
|
-
? baseCreate(getPrototype(object))
|
|
4671
|
-
: {};
|
|
4672
|
-
}
|
|
4673
|
-
|
|
4674
|
-
_initCloneObject = initCloneObject;
|
|
4675
|
-
return _initCloneObject;
|
|
4676
|
-
}
|
|
4677
|
-
|
|
4678
|
-
var _baseIsMap;
|
|
4679
|
-
var hasRequired_baseIsMap;
|
|
4680
|
-
|
|
4681
|
-
function require_baseIsMap () {
|
|
4682
|
-
if (hasRequired_baseIsMap) return _baseIsMap;
|
|
4683
|
-
hasRequired_baseIsMap = 1;
|
|
4684
|
-
var getTag = require_getTag(),
|
|
4685
|
-
isObjectLike = requireIsObjectLike();
|
|
4686
|
-
|
|
4687
|
-
/** `Object#toString` result references. */
|
|
4688
|
-
var mapTag = '[object Map]';
|
|
4689
|
-
|
|
4690
|
-
/**
|
|
4691
|
-
* The base implementation of `_.isMap` without Node.js optimizations.
|
|
4692
|
-
*
|
|
4693
|
-
* @private
|
|
4694
|
-
* @param {*} value The value to check.
|
|
4695
|
-
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
|
|
4696
|
-
*/
|
|
4697
|
-
function baseIsMap(value) {
|
|
4698
|
-
return isObjectLike(value) && getTag(value) == mapTag;
|
|
4699
|
-
}
|
|
4700
|
-
|
|
4701
|
-
_baseIsMap = baseIsMap;
|
|
4702
|
-
return _baseIsMap;
|
|
4703
|
-
}
|
|
4704
|
-
|
|
4705
|
-
var isMap_1;
|
|
4706
|
-
var hasRequiredIsMap;
|
|
4707
|
-
|
|
4708
|
-
function requireIsMap () {
|
|
4709
|
-
if (hasRequiredIsMap) return isMap_1;
|
|
4710
|
-
hasRequiredIsMap = 1;
|
|
4711
|
-
var baseIsMap = require_baseIsMap(),
|
|
4712
|
-
baseUnary = require_baseUnary(),
|
|
4713
|
-
nodeUtil = require_nodeUtil();
|
|
4714
|
-
|
|
4715
|
-
/* Node.js helper references. */
|
|
4716
|
-
var nodeIsMap = nodeUtil && nodeUtil.isMap;
|
|
4717
|
-
|
|
4718
|
-
/**
|
|
4719
|
-
* Checks if `value` is classified as a `Map` object.
|
|
4720
|
-
*
|
|
4721
|
-
* @static
|
|
4722
|
-
* @memberOf _
|
|
4723
|
-
* @since 4.3.0
|
|
4724
|
-
* @category Lang
|
|
4725
|
-
* @param {*} value The value to check.
|
|
4726
|
-
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
|
|
4727
|
-
* @example
|
|
4728
|
-
*
|
|
4729
|
-
* _.isMap(new Map);
|
|
4730
|
-
* // => true
|
|
4731
|
-
*
|
|
4732
|
-
* _.isMap(new WeakMap);
|
|
4733
|
-
* // => false
|
|
4734
|
-
*/
|
|
4735
|
-
var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
|
|
4736
|
-
|
|
4737
|
-
isMap_1 = isMap;
|
|
4738
|
-
return isMap_1;
|
|
4739
|
-
}
|
|
4740
|
-
|
|
4741
|
-
var _baseIsSet;
|
|
4742
|
-
var hasRequired_baseIsSet;
|
|
4743
|
-
|
|
4744
|
-
function require_baseIsSet () {
|
|
4745
|
-
if (hasRequired_baseIsSet) return _baseIsSet;
|
|
4746
|
-
hasRequired_baseIsSet = 1;
|
|
4747
|
-
var getTag = require_getTag(),
|
|
4748
|
-
isObjectLike = requireIsObjectLike();
|
|
4749
|
-
|
|
4750
|
-
/** `Object#toString` result references. */
|
|
4751
|
-
var setTag = '[object Set]';
|
|
4752
|
-
|
|
4753
|
-
/**
|
|
4754
|
-
* The base implementation of `_.isSet` without Node.js optimizations.
|
|
4755
|
-
*
|
|
4756
|
-
* @private
|
|
4757
|
-
* @param {*} value The value to check.
|
|
4758
|
-
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
|
4759
|
-
*/
|
|
4760
|
-
function baseIsSet(value) {
|
|
4761
|
-
return isObjectLike(value) && getTag(value) == setTag;
|
|
4762
|
-
}
|
|
4763
|
-
|
|
4764
|
-
_baseIsSet = baseIsSet;
|
|
4765
|
-
return _baseIsSet;
|
|
4766
|
-
}
|
|
4767
|
-
|
|
4768
|
-
var isSet_1;
|
|
4769
|
-
var hasRequiredIsSet;
|
|
4770
|
-
|
|
4771
|
-
function requireIsSet () {
|
|
4772
|
-
if (hasRequiredIsSet) return isSet_1;
|
|
4773
|
-
hasRequiredIsSet = 1;
|
|
4774
|
-
var baseIsSet = require_baseIsSet(),
|
|
4775
|
-
baseUnary = require_baseUnary(),
|
|
4776
|
-
nodeUtil = require_nodeUtil();
|
|
4777
|
-
|
|
4778
|
-
/* Node.js helper references. */
|
|
4779
|
-
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
4780
|
-
|
|
4781
|
-
/**
|
|
4782
|
-
* Checks if `value` is classified as a `Set` object.
|
|
4783
|
-
*
|
|
4784
|
-
* @static
|
|
4785
|
-
* @memberOf _
|
|
4786
|
-
* @since 4.3.0
|
|
4787
|
-
* @category Lang
|
|
4788
|
-
* @param {*} value The value to check.
|
|
4789
|
-
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
|
4790
|
-
* @example
|
|
4791
|
-
*
|
|
4792
|
-
* _.isSet(new Set);
|
|
4793
|
-
* // => true
|
|
4794
|
-
*
|
|
4795
|
-
* _.isSet(new WeakSet);
|
|
4796
|
-
* // => false
|
|
4797
|
-
*/
|
|
4798
|
-
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
4799
|
-
|
|
4800
|
-
isSet_1 = isSet;
|
|
4801
|
-
return isSet_1;
|
|
4802
|
-
}
|
|
4803
|
-
|
|
4804
|
-
var _baseClone;
|
|
4805
|
-
var hasRequired_baseClone;
|
|
4806
|
-
|
|
4807
|
-
function require_baseClone () {
|
|
4808
|
-
if (hasRequired_baseClone) return _baseClone;
|
|
4809
|
-
hasRequired_baseClone = 1;
|
|
4810
|
-
var Stack = require_Stack(),
|
|
4811
|
-
arrayEach = require_arrayEach(),
|
|
4812
|
-
assignValue = require_assignValue(),
|
|
4813
|
-
baseAssign = require_baseAssign(),
|
|
4814
|
-
baseAssignIn = require_baseAssignIn(),
|
|
4815
|
-
cloneBuffer = require_cloneBuffer(),
|
|
4816
|
-
copyArray = require_copyArray(),
|
|
4817
|
-
copySymbols = require_copySymbols(),
|
|
4818
|
-
copySymbolsIn = require_copySymbolsIn(),
|
|
4819
|
-
getAllKeys = require_getAllKeys(),
|
|
4820
|
-
getAllKeysIn = require_getAllKeysIn(),
|
|
4821
|
-
getTag = require_getTag(),
|
|
4822
|
-
initCloneArray = require_initCloneArray(),
|
|
4823
|
-
initCloneByTag = require_initCloneByTag(),
|
|
4824
|
-
initCloneObject = require_initCloneObject(),
|
|
4825
|
-
isArray = requireIsArray(),
|
|
4826
|
-
isBuffer = requireIsBuffer(),
|
|
4827
|
-
isMap = requireIsMap(),
|
|
4828
|
-
isObject = requireIsObject(),
|
|
4829
|
-
isSet = requireIsSet(),
|
|
4830
|
-
keys = requireKeys(),
|
|
4831
|
-
keysIn = requireKeysIn();
|
|
4832
|
-
|
|
4833
|
-
/** Used to compose bitmasks for cloning. */
|
|
4834
|
-
var CLONE_DEEP_FLAG = 1,
|
|
4835
|
-
CLONE_FLAT_FLAG = 2,
|
|
4836
|
-
CLONE_SYMBOLS_FLAG = 4;
|
|
4837
|
-
|
|
4838
|
-
/** `Object#toString` result references. */
|
|
4839
|
-
var argsTag = '[object Arguments]',
|
|
4840
|
-
arrayTag = '[object Array]',
|
|
4841
|
-
boolTag = '[object Boolean]',
|
|
4842
|
-
dateTag = '[object Date]',
|
|
4843
|
-
errorTag = '[object Error]',
|
|
4844
|
-
funcTag = '[object Function]',
|
|
4845
|
-
genTag = '[object GeneratorFunction]',
|
|
4846
|
-
mapTag = '[object Map]',
|
|
4847
|
-
numberTag = '[object Number]',
|
|
4848
|
-
objectTag = '[object Object]',
|
|
4849
|
-
regexpTag = '[object RegExp]',
|
|
4850
|
-
setTag = '[object Set]',
|
|
4851
|
-
stringTag = '[object String]',
|
|
4852
|
-
symbolTag = '[object Symbol]',
|
|
4853
|
-
weakMapTag = '[object WeakMap]';
|
|
4854
|
-
|
|
4855
|
-
var arrayBufferTag = '[object ArrayBuffer]',
|
|
4856
|
-
dataViewTag = '[object DataView]',
|
|
4857
|
-
float32Tag = '[object Float32Array]',
|
|
4858
|
-
float64Tag = '[object Float64Array]',
|
|
4859
|
-
int8Tag = '[object Int8Array]',
|
|
4860
|
-
int16Tag = '[object Int16Array]',
|
|
4861
|
-
int32Tag = '[object Int32Array]',
|
|
4862
|
-
uint8Tag = '[object Uint8Array]',
|
|
4863
|
-
uint8ClampedTag = '[object Uint8ClampedArray]',
|
|
4864
|
-
uint16Tag = '[object Uint16Array]',
|
|
4865
|
-
uint32Tag = '[object Uint32Array]';
|
|
4866
|
-
|
|
4867
|
-
/** Used to identify `toStringTag` values supported by `_.clone`. */
|
|
4868
|
-
var cloneableTags = {};
|
|
4869
|
-
cloneableTags[argsTag] = cloneableTags[arrayTag] =
|
|
4870
|
-
cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
|
|
4871
|
-
cloneableTags[boolTag] = cloneableTags[dateTag] =
|
|
4872
|
-
cloneableTags[float32Tag] = cloneableTags[float64Tag] =
|
|
4873
|
-
cloneableTags[int8Tag] = cloneableTags[int16Tag] =
|
|
4874
|
-
cloneableTags[int32Tag] = cloneableTags[mapTag] =
|
|
4875
|
-
cloneableTags[numberTag] = cloneableTags[objectTag] =
|
|
4876
|
-
cloneableTags[regexpTag] = cloneableTags[setTag] =
|
|
4877
|
-
cloneableTags[stringTag] = cloneableTags[symbolTag] =
|
|
4878
|
-
cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
|
|
4879
|
-
cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
4880
|
-
cloneableTags[errorTag] = cloneableTags[funcTag] =
|
|
4881
|
-
cloneableTags[weakMapTag] = false;
|
|
4882
|
-
|
|
4883
|
-
/**
|
|
4884
|
-
* The base implementation of `_.clone` and `_.cloneDeep` which tracks
|
|
4885
|
-
* traversed objects.
|
|
4886
|
-
*
|
|
4887
|
-
* @private
|
|
4888
|
-
* @param {*} value The value to clone.
|
|
4889
|
-
* @param {boolean} bitmask The bitmask flags.
|
|
4890
|
-
* 1 - Deep clone
|
|
4891
|
-
* 2 - Flatten inherited properties
|
|
4892
|
-
* 4 - Clone symbols
|
|
4893
|
-
* @param {Function} [customizer] The function to customize cloning.
|
|
4894
|
-
* @param {string} [key] The key of `value`.
|
|
4895
|
-
* @param {Object} [object] The parent object of `value`.
|
|
4896
|
-
* @param {Object} [stack] Tracks traversed objects and their clone counterparts.
|
|
4897
|
-
* @returns {*} Returns the cloned value.
|
|
4898
|
-
*/
|
|
4899
|
-
function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
4900
|
-
var result,
|
|
4901
|
-
isDeep = bitmask & CLONE_DEEP_FLAG,
|
|
4902
|
-
isFlat = bitmask & CLONE_FLAT_FLAG,
|
|
4903
|
-
isFull = bitmask & CLONE_SYMBOLS_FLAG;
|
|
4904
|
-
|
|
4905
|
-
if (customizer) {
|
|
4906
|
-
result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
4907
|
-
}
|
|
4908
|
-
if (result !== undefined) {
|
|
4909
|
-
return result;
|
|
4910
|
-
}
|
|
4911
|
-
if (!isObject(value)) {
|
|
4912
|
-
return value;
|
|
4913
|
-
}
|
|
4914
|
-
var isArr = isArray(value);
|
|
4915
|
-
if (isArr) {
|
|
4916
|
-
result = initCloneArray(value);
|
|
4917
|
-
if (!isDeep) {
|
|
4918
|
-
return copyArray(value, result);
|
|
4919
|
-
}
|
|
4920
|
-
} else {
|
|
4921
|
-
var tag = getTag(value),
|
|
4922
|
-
isFunc = tag == funcTag || tag == genTag;
|
|
4923
|
-
|
|
4924
|
-
if (isBuffer(value)) {
|
|
4925
|
-
return cloneBuffer(value, isDeep);
|
|
4926
|
-
}
|
|
4927
|
-
if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
|
|
4928
|
-
result = (isFlat || isFunc) ? {} : initCloneObject(value);
|
|
4929
|
-
if (!isDeep) {
|
|
4930
|
-
return isFlat
|
|
4931
|
-
? copySymbolsIn(value, baseAssignIn(result, value))
|
|
4932
|
-
: copySymbols(value, baseAssign(result, value));
|
|
4933
|
-
}
|
|
4934
|
-
} else {
|
|
4935
|
-
if (!cloneableTags[tag]) {
|
|
4936
|
-
return object ? value : {};
|
|
4937
|
-
}
|
|
4938
|
-
result = initCloneByTag(value, tag, isDeep);
|
|
4939
|
-
}
|
|
4940
|
-
}
|
|
4941
|
-
// Check for circular references and return its corresponding clone.
|
|
4942
|
-
stack || (stack = new Stack);
|
|
4943
|
-
var stacked = stack.get(value);
|
|
4944
|
-
if (stacked) {
|
|
4945
|
-
return stacked;
|
|
4946
|
-
}
|
|
4947
|
-
stack.set(value, result);
|
|
4948
|
-
|
|
4949
|
-
if (isSet(value)) {
|
|
4950
|
-
value.forEach(function(subValue) {
|
|
4951
|
-
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
|
|
4952
|
-
});
|
|
4953
|
-
} else if (isMap(value)) {
|
|
4954
|
-
value.forEach(function(subValue, key) {
|
|
4955
|
-
result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
|
4956
|
-
});
|
|
4957
|
-
}
|
|
4958
|
-
|
|
4959
|
-
var keysFunc = isFull
|
|
4960
|
-
? (isFlat ? getAllKeysIn : getAllKeys)
|
|
4961
|
-
: (isFlat ? keysIn : keys);
|
|
4962
|
-
|
|
4963
|
-
var props = isArr ? undefined : keysFunc(value);
|
|
4964
|
-
arrayEach(props || value, function(subValue, key) {
|
|
4965
|
-
if (props) {
|
|
4966
|
-
key = subValue;
|
|
4967
|
-
subValue = value[key];
|
|
4968
|
-
}
|
|
4969
|
-
// Recursively populate clone (susceptible to call stack limits).
|
|
4970
|
-
assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
|
4971
|
-
});
|
|
4972
|
-
return result;
|
|
4973
|
-
}
|
|
4974
|
-
|
|
4975
|
-
_baseClone = baseClone;
|
|
4976
|
-
return _baseClone;
|
|
4977
|
-
}
|
|
4978
|
-
|
|
4979
|
-
var cloneDeep_1;
|
|
4980
|
-
var hasRequiredCloneDeep;
|
|
4981
|
-
|
|
4982
|
-
function requireCloneDeep () {
|
|
4983
|
-
if (hasRequiredCloneDeep) return cloneDeep_1;
|
|
4984
|
-
hasRequiredCloneDeep = 1;
|
|
4985
|
-
var baseClone = require_baseClone();
|
|
4986
|
-
|
|
4987
|
-
/** Used to compose bitmasks for cloning. */
|
|
4988
|
-
var CLONE_DEEP_FLAG = 1,
|
|
4989
|
-
CLONE_SYMBOLS_FLAG = 4;
|
|
4990
|
-
|
|
4991
|
-
/**
|
|
4992
|
-
* This method is like `_.clone` except that it recursively clones `value`.
|
|
4993
|
-
*
|
|
4994
|
-
* @static
|
|
4995
|
-
* @memberOf _
|
|
4996
|
-
* @since 1.0.0
|
|
4997
|
-
* @category Lang
|
|
4998
|
-
* @param {*} value The value to recursively clone.
|
|
4999
|
-
* @returns {*} Returns the deep cloned value.
|
|
5000
|
-
* @see _.clone
|
|
5001
|
-
* @example
|
|
5002
|
-
*
|
|
5003
|
-
* var objects = [{ 'a': 1 }, { 'b': 2 }];
|
|
5004
|
-
*
|
|
5005
|
-
* var deep = _.cloneDeep(objects);
|
|
5006
|
-
* console.log(deep[0] === objects[0]);
|
|
5007
|
-
* // => false
|
|
5008
|
-
*/
|
|
5009
|
-
function cloneDeep(value) {
|
|
5010
|
-
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
5011
|
-
}
|
|
5012
|
-
|
|
5013
|
-
cloneDeep_1 = cloneDeep;
|
|
5014
|
-
return cloneDeep_1;
|
|
5015
|
-
}
|
|
5016
|
-
|
|
5017
|
-
var cloneDeepExports = requireCloneDeep();
|
|
5018
|
-
var cloneDeep = /*@__PURE__*/getDefaultExportFromCjs(cloneDeepExports);
|
|
5019
|
-
|
|
5020
|
-
/**
|
|
5021
|
-
* Location properties.
|
|
5022
|
-
* @typedef {LocationProperties}
|
|
5023
|
-
* @property {string} layer Suggestion layer.
|
|
5024
|
-
* @property {lat} [number]
|
|
5025
|
-
* @property {lon} [number]
|
|
5026
|
-
* @property {string} address Address.
|
|
5027
|
-
*/
|
|
5028
|
-
|
|
5029
|
-
/**
|
|
5030
|
-
* Returns localadmin (city name) for suggestions
|
|
5031
|
-
*
|
|
5032
|
-
* @name getLocaladmin
|
|
5033
|
-
* @param {Object} suggestion suggestion's properties from geocoding or a favourite stop/station.
|
|
5034
|
-
* Expects last part of an address (after ',') to contain the city name of the suggestion location.
|
|
5035
|
-
* @returns {String} City name or empty string
|
|
5036
|
-
*/
|
|
5037
|
-
const getLocaladmin = suggestion => suggestion.localadmin || suggestion.localadmin || suggestion.address && suggestion.address.lastIndexOf(',') < suggestion.address.length - 2 && suggestion.address.substring(suggestion.address.lastIndexOf(',') + 2) || '';
|
|
5038
|
-
const getStopCode = ({
|
|
5039
|
-
id,
|
|
5040
|
-
code
|
|
5041
|
-
}) => {
|
|
5042
|
-
if (code) {
|
|
5043
|
-
return code;
|
|
5044
|
-
}
|
|
5045
|
-
if (id === undefined || typeof id.indexOf === 'undefined' || id.indexOf('#') === -1) {
|
|
5046
|
-
return undefined;
|
|
5047
|
-
}
|
|
5048
|
-
// id from pelias
|
|
5049
|
-
return id.substring(id.indexOf('#') + 1);
|
|
5050
|
-
};
|
|
5051
|
-
const formatFavouritePlaceLabel = (name, address) => [name || address && address.split(',')[0], typeof address === 'string' ? address.replace(new RegExp(`${escapeRegExp(name)}([ ,]|$)+`), '') : ''];
|
|
5052
|
-
|
|
5053
|
-
/**
|
|
5054
|
-
* Format suggestion-pair [name, address] by `suggestion.layer`.
|
|
5055
|
-
*
|
|
5056
|
-
* @name getNameLabel
|
|
5057
|
-
* @param {LocationProperties} suggestion
|
|
5058
|
-
* @param {boolean} [plain]
|
|
5059
|
-
*
|
|
5060
|
-
* @returns {Array.<string>} Formatted label.
|
|
5061
|
-
*/
|
|
5062
|
-
memoize((suggestion, plain = false) => {
|
|
5063
|
-
switch (suggestion.layer) {
|
|
5064
|
-
case 'currentPosition':
|
|
5065
|
-
return [suggestion.labelId, suggestion.address];
|
|
5066
|
-
case 'selectFromMap':
|
|
5067
|
-
case 'ownLocations':
|
|
5068
|
-
case 'back':
|
|
5069
|
-
return [suggestion.labelId];
|
|
5070
|
-
case 'favouritePlace':
|
|
5071
|
-
return formatFavouritePlaceLabel(suggestion.name, suggestion.address);
|
|
5072
|
-
case 'favouriteVehicleRentalStation':
|
|
5073
|
-
case 'bikestation':
|
|
5074
|
-
return [suggestion.name];
|
|
5075
|
-
case 'favouriteRoute':
|
|
5076
|
-
case 'route-BUS':
|
|
5077
|
-
case 'route-TRAM':
|
|
5078
|
-
case 'route-RAIL':
|
|
5079
|
-
case 'route-SUBWAY':
|
|
5080
|
-
case 'route-FERRY':
|
|
5081
|
-
case 'route-FUNICULAR':
|
|
5082
|
-
case 'route-AIRPLANE':
|
|
5083
|
-
return !plain && suggestion.shortName ? [suggestion.gtfsId, suggestion.mode.toLowerCase(), suggestion.longName] : [suggestion.shortName, suggestion.longName, suggestion.agency ? suggestion.agency.name : undefined];
|
|
5084
|
-
case 'venue':
|
|
5085
|
-
case 'address':
|
|
5086
|
-
case 'street':
|
|
5087
|
-
return [suggestion.name, suggestion.label.replace(new RegExp(`${escapeRegExp(suggestion.name)}(,)?( )?`), '')];
|
|
5088
|
-
case 'favouriteStop':
|
|
5089
|
-
case 'stop':
|
|
5090
|
-
return plain ? [suggestion.name || suggestion.label || suggestion.address && suggestion.address.split(',')[0], getLocaladmin(suggestion)] : [suggestion.name, suggestion.id, getStopCode(suggestion), getLocaladmin(suggestion)];
|
|
5091
|
-
case 'favouriteStation':
|
|
5092
|
-
case 'station':
|
|
5093
|
-
default:
|
|
5094
|
-
return [suggestion.name || suggestion.label || suggestion.address && suggestion.address.split(',')[0], getLocaladmin(suggestion)];
|
|
5095
|
-
}
|
|
5096
|
-
}, (item, plain) => {
|
|
5097
|
-
const i = cloneDeep(item);
|
|
5098
|
-
i.plain = plain;
|
|
5099
|
-
return i;
|
|
5100
|
-
});
|
|
5101
|
-
|
|
5102
|
-
function styleInject(css, ref) {
|
|
5103
|
-
if ( ref === void 0 ) ref = {};
|
|
5104
|
-
var insertAt = ref.insertAt;
|
|
5105
|
-
|
|
5106
|
-
if (typeof document === 'undefined') { return; }
|
|
5107
|
-
|
|
5108
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
5109
|
-
var style = document.createElement('style');
|
|
5110
|
-
style.type = 'text/css';
|
|
5111
|
-
|
|
5112
|
-
if (insertAt === 'top') {
|
|
5113
|
-
if (head.firstChild) {
|
|
5114
|
-
head.insertBefore(style, head.firstChild);
|
|
5115
|
-
} else {
|
|
5116
|
-
head.appendChild(style);
|
|
5117
|
-
}
|
|
5118
|
-
} else {
|
|
5119
|
-
head.appendChild(style);
|
|
5120
|
-
}
|
|
5121
|
-
|
|
5122
|
-
if (style.styleSheet) {
|
|
5123
|
-
style.styleSheet.cssText = css;
|
|
5124
|
-
} else {
|
|
5125
|
-
style.appendChild(document.createTextNode(css));
|
|
5126
|
-
}
|
|
5127
|
-
}
|
|
5128
|
-
|
|
5129
|
-
var css_248z = ".styles_button-shared__RSwxE, .styles_favourite-container__WTJm3 .styles_expandButton__mkemf, .styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 {\n background-color: white;\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n border-radius: 5px;\n border: 1px solid #ddd;\n cursor: pointer;\n}\n.styles_button-shared__RSwxE:hover, .styles_favourite-container__WTJm3 .styles_expandButton__mkemf:hover, .styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1:hover {\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);\n}\n\n.styles_shimmer-shared__MGBAa, .styles_favourite-container__WTJm3 .styles_expandButton__mkemf > div, .styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 > div {\n display: flex;\n align-items: center;\n overflow: hidden;\n}\n.styles_shimmer-shared__MGBAa .styles_shimmer__bIP9J, .styles_favourite-container__WTJm3 .styles_expandButton__mkemf > div .styles_shimmer__bIP9J, .styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 > div .styles_shimmer__bIP9J {\n border-radius: 5px;\n}\n\n.styles_favourite-container__WTJm3 {\n display: flex;\n position: relative;\n z-index: 1;\n width: 100%;\n height: 50px;\n flex-shrink: 1;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n}\n.styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 {\n width: auto;\n min-width: 0;\n flex: 1;\n flex-grow: 1;\n height: 100%;\n position: relative;\n padding: 0;\n margin-right: 8px;\n overflow: hidden;\n}\n.styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 .styles_icon__mAwUD {\n display: flex;\n width: 50px;\n height: 100%;\n justify-content: center;\n align-items: center;\n flex-shrink: 1;\n}\n@media screen and (min-width: 375px) {\n .styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 .styles_icon__mAwUD {\n flex-shrink: 0;\n }\n}\n.styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 .styles_icon__mAwUD svg {\n width: 20px;\n height: 20px;\n position: relative;\n left: 2px;\n}\n.styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 .styles_icon__mAwUD.styles_place__4mHYj svg {\n width: 24px;\n height: 24px;\n}\n.styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 .styles_icon__mAwUD.styles_home__msJXd svg, .styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 .styles_icon__mAwUD.styles_school__Hta8J svg, .styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 .styles_icon__mAwUD.styles_sport__YFDd0 svg, .styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 .styles_icon__mAwUD.styles_shopping__jMKed svg {\n width: 18px;\n height: 18px;\n}\n.styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 .styles_icon__mAwUD.styles_work__uZX4R svg {\n width: 20px;\n height: 20px;\n}\n.styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 .styles_favourite-location__RiyEV {\n white-space: nowrap;\n overflow: hidden;\n text-align: start;\n width: 100%;\n flex-direction: row;\n}\n.styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 .styles_favourite-location__RiyEV .styles_name__Fvsvr {\n font-family: inherit;\n font-size: 15px;\n margin-right: 6px;\n font-weight: var(--font-weight-medium, 500);\n font-stretch: normal;\n font-style: normal;\n letter-spacing: -0.6px;\n color: #333;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 .styles_favourite-location__RiyEV .styles_name__Fvsvr:empty {\n margin-top: 0;\n}\n.styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 .styles_favourite-location__RiyEV .styles_address__iBEhu {\n font-family: inherit;\n font-size: 12px;\n margin-right: 6px;\n font-weight: normal;\n font-stretch: normal;\n font-style: normal;\n line-height: 1.67;\n letter-spacing: -0.48px;\n color: #666;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.styles_favourite-container__WTJm3 .styles_expandButton__mkemf {\n height: 100%;\n width: 42px;\n flex-shrink: 0;\n overflow: hidden;\n padding: 0;\n}\n.styles_favourite-container__WTJm3 .styles_expandButton__mkemf > div {\n justify-content: center;\n}\n.styles_favourite-container__WTJm3 .styles_expandButton__mkemf.styles_plus__ryt4n svg {\n width: 16px;\n height: 16px;\n}\n.styles_favourite-container__WTJm3 .styles_expandButton__mkemf.styles_arrow__EbmBZ svg {\n width: 19px;\n height: 19px;\n transform: rotate(90deg);\n}\n.styles_favourite-container__WTJm3 .styles_expandButton__mkemf.styles_arrow__EbmBZ.styles_rotate__Nw2-A svg {\n transform: rotate(-90deg);\n}\n\n.styles_favourite-suggestion-container__MVZBj {\n position: relative;\n display: flex;\n justify-content: center;\n padding-top: 9px;\n}\n.styles_favourite-suggestion-container__MVZBj .styles_divider__podkI {\n display: block;\n height: 6px;\n background-color: #f2f5f7;\n border-top: 1px solid rgba(0, 0, 0, 0.1);\n}\n.styles_favourite-suggestion-container__MVZBj .styles_favourite-suggestion-list__boIJY {\n max-height: 30vh;\n list-style-type: none;\n padding: 0;\n position: absolute;\n z-index: 20;\n width: 100%;\n margin: 0 auto;\n border-radius: 5px;\n box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.16);\n border: solid 1px rgba(0, 0, 0, 0.1);\n background-color: #fff;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n.styles_favourite-suggestion-container__MVZBj .styles_favourite-suggestion-item__ptExh.styles_custom__87c-n {\n font-size: 15px;\n font-weight: var(--font-weight-medium, 500);\n letter-spacing: -0.5;\n}\n.styles_favourite-suggestion-container__MVZBj .styles_favourite-suggestion-item__ptExh:hover {\n background-color: #f2f5f7;\n}";
|
|
5130
|
-
var styles = {"button-shared":"styles_button-shared__RSwxE","favourite-container":"styles_favourite-container__WTJm3","expandButton":"styles_expandButton__mkemf","favourite-content":"styles_favourite-content__6gqt1","shimmer-shared":"styles_shimmer-shared__MGBAa","shimmer":"styles_shimmer__bIP9J","icon":"styles_icon__mAwUD","place":"styles_place__4mHYj","home":"styles_home__msJXd","school":"styles_school__Hta8J","sport":"styles_sport__YFDd0","shopping":"styles_shopping__jMKed","work":"styles_work__uZX4R","favourite-location":"styles_favourite-location__RiyEV","name":"styles_name__Fvsvr","address":"styles_address__iBEhu","plus":"styles_plus__ryt4n","arrow":"styles_arrow__EbmBZ","rotate":"styles_rotate__Nw2-A","favourite-suggestion-container":"styles_favourite-suggestion-container__MVZBj","divider":"styles_divider__podkI","favourite-suggestion-list":"styles_favourite-suggestion-list__boIJY","favourite-suggestion-item":"styles_favourite-suggestion-item__ptExh","custom":"styles_custom__87c-n"};
|
|
5131
|
-
styleInject(css_248z);
|
|
3764
|
+
var css_248z = ".styles_button-shared__RSwxE, .styles_favourite-container__WTJm3 .styles_expandButton__mkemf, .styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 {\n background-color: white;\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n border-radius: 5px;\n border: 1px solid #ddd;\n cursor: pointer;\n}\n.styles_button-shared__RSwxE:hover, .styles_favourite-container__WTJm3 .styles_expandButton__mkemf:hover, .styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1:hover {\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);\n}\n\n.styles_shimmer-shared__MGBAa, .styles_favourite-container__WTJm3 .styles_expandButton__mkemf > div, .styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 > div {\n display: flex;\n align-items: center;\n overflow: hidden;\n}\n.styles_shimmer-shared__MGBAa .styles_shimmer__bIP9J, .styles_favourite-container__WTJm3 .styles_expandButton__mkemf > div .styles_shimmer__bIP9J, .styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 > div .styles_shimmer__bIP9J {\n border-radius: 5px;\n}\n\n.styles_favourite-container__WTJm3 {\n display: flex;\n position: relative;\n z-index: 1;\n width: 100%;\n height: 50px;\n flex-shrink: 1;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n}\n.styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 {\n width: auto;\n min-width: 0;\n flex: 1;\n flex-grow: 1;\n height: 100%;\n position: relative;\n padding: 0;\n margin-right: 8px;\n overflow: hidden;\n}\n.styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 .styles_icon__mAwUD {\n display: flex;\n width: 50px;\n height: 100%;\n justify-content: center;\n align-items: center;\n flex-shrink: 1;\n}\n@media screen and (min-width: 375px) {\n .styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 .styles_icon__mAwUD {\n flex-shrink: 0;\n }\n}\n.styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 .styles_icon__mAwUD svg {\n width: 20px;\n height: 20px;\n position: relative;\n left: 2px;\n}\n.styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 .styles_icon__mAwUD.styles_place__4mHYj svg {\n width: 24px;\n height: 24px;\n}\n.styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 .styles_icon__mAwUD.styles_home__msJXd svg, .styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 .styles_icon__mAwUD.styles_school__Hta8J svg, .styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 .styles_icon__mAwUD.styles_sport__YFDd0 svg, .styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 .styles_icon__mAwUD.styles_shopping__jMKed svg {\n width: 18px;\n height: 18px;\n}\n.styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 .styles_icon__mAwUD.styles_work__uZX4R svg {\n width: 20px;\n height: 20px;\n}\n.styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 .styles_favourite-location__RiyEV {\n white-space: nowrap;\n overflow: hidden;\n text-align: start;\n width: 100%;\n flex-direction: row;\n}\n.styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 .styles_favourite-location__RiyEV .styles_name__Fvsvr {\n font-family: inherit;\n font-size: 15px;\n margin-right: 6px;\n font-weight: var(--font-weight-medium, 500);\n font-stretch: normal;\n font-style: normal;\n letter-spacing: -0.6px;\n color: #333;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 .styles_favourite-location__RiyEV .styles_name__Fvsvr:empty {\n margin-top: 0;\n}\n.styles_favourite-container__WTJm3 .styles_favourite-content__6gqt1 .styles_favourite-location__RiyEV .styles_address__iBEhu {\n font-family: inherit;\n font-size: 12px;\n margin-right: 6px;\n font-weight: normal;\n font-stretch: normal;\n font-style: normal;\n line-height: 1.67;\n letter-spacing: -0.48px;\n color: #666;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.styles_favourite-container__WTJm3 .styles_expandButton__mkemf {\n height: 100%;\n width: 42px;\n flex-shrink: 0;\n overflow: hidden;\n padding: 0;\n}\n.styles_favourite-container__WTJm3 .styles_expandButton__mkemf > div {\n justify-content: center;\n}\n.styles_favourite-container__WTJm3 .styles_expandButton__mkemf.styles_plus__ryt4n svg {\n width: 16px;\n height: 16px;\n}\n.styles_favourite-container__WTJm3 .styles_expandButton__mkemf.styles_arrow__EbmBZ svg {\n width: 19px;\n height: 19px;\n transform: rotate(90deg);\n}\n.styles_favourite-container__WTJm3 .styles_expandButton__mkemf.styles_arrow__EbmBZ.styles_rotate__Nw2-A svg {\n transform: rotate(-90deg);\n}\n\n.styles_favourite-suggestion-container__MVZBj {\n position: relative;\n display: flex;\n justify-content: center;\n padding-top: 9px;\n}\n.styles_favourite-suggestion-container__MVZBj .styles_divider__podkI {\n display: block;\n height: 6px;\n background-color: #f2f5f7;\n border-top: 1px solid rgba(0, 0, 0, 0.1);\n}\n.styles_favourite-suggestion-container__MVZBj .styles_favourite-suggestion-list__boIJY {\n max-height: 30vh;\n list-style-type: none;\n padding: 0;\n position: absolute;\n z-index: 20;\n width: 100%;\n margin: 0 auto;\n border-radius: 5px;\n box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.16);\n border: solid 1px rgba(0, 0, 0, 0.1);\n background-color: #fff;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n.styles_favourite-suggestion-container__MVZBj .styles_favourite-suggestion-item__ptExh.styles_custom__87c-n {\n font-size: 15px;\n font-weight: var(--font-weight-medium, 500);\n letter-spacing: -0.5;\n}\n.styles_favourite-suggestion-container__MVZBj .styles_favourite-suggestion-item__ptExh:hover {\n background-color: #f2f5f7;\n}";
|
|
3765
|
+
var styles = {"button-shared":"styles_button-shared__RSwxE","favourite-container":"styles_favourite-container__WTJm3","expandButton":"styles_expandButton__mkemf","favourite-content":"styles_favourite-content__6gqt1","shimmer-shared":"styles_shimmer-shared__MGBAa","shimmer":"styles_shimmer__bIP9J","icon":"styles_icon__mAwUD","place":"styles_place__4mHYj","home":"styles_home__msJXd","school":"styles_school__Hta8J","sport":"styles_sport__YFDd0","shopping":"styles_shopping__jMKed","work":"styles_work__uZX4R","favourite-location":"styles_favourite-location__RiyEV","name":"styles_name__Fvsvr","address":"styles_address__iBEhu","plus":"styles_plus__ryt4n","arrow":"styles_arrow__EbmBZ","rotate":"styles_rotate__Nw2-A","favourite-suggestion-container":"styles_favourite-suggestion-container__MVZBj","divider":"styles_divider__podkI","favourite-suggestion-list":"styles_favourite-suggestion-list__boIJY","favourite-suggestion-item":"styles_favourite-suggestion-item__ptExh","custom":"styles_custom__87c-n"};
|
|
3766
|
+
styleInject(css_248z);
|
|
5132
3767
|
|
|
5133
3768
|
/* eslint sort-keys: "error" */
|
|
5134
3769
|
const translations = {
|
|
5135
3770
|
de: {
|
|
5136
3771
|
translation: {
|
|
3772
|
+
'add-destination': 'Als Ziel festlegen',
|
|
5137
3773
|
'add-favourite': 'Füge Favorit hinzu',
|
|
5138
3774
|
'add-home': 'Setze Zuhause',
|
|
5139
3775
|
'add-place': 'Setze Ort',
|
|
5140
3776
|
'add-work': 'Setze Arbeitsort',
|
|
5141
3777
|
edit: 'Bearbeiten',
|
|
3778
|
+
'favourites-list': 'Liste der Favoriten',
|
|
5142
3779
|
home: 'Zuhause',
|
|
5143
3780
|
'open-favourites': 'Öffne Favoriten',
|
|
5144
3781
|
work: 'Arbeit'
|
|
@@ -5172,6 +3809,20 @@ const translations = {
|
|
|
5172
3809
|
work: 'Työ'
|
|
5173
3810
|
}
|
|
5174
3811
|
},
|
|
3812
|
+
it: {
|
|
3813
|
+
translation: {
|
|
3814
|
+
'add-destination': 'Imposta come destinazione',
|
|
3815
|
+
'add-favourite': 'Aggiungi ai preferiti',
|
|
3816
|
+
'add-home': 'Aggiungi casa',
|
|
3817
|
+
'add-place': 'Aggiungi luogo',
|
|
3818
|
+
'add-work': 'Aggiungi lavoro',
|
|
3819
|
+
edit: 'Modifica',
|
|
3820
|
+
'favourites-list': 'Elenco dei preferiti',
|
|
3821
|
+
home: 'Casa',
|
|
3822
|
+
'open-favourites': 'Apri i preferiti',
|
|
3823
|
+
work: 'Lavoro'
|
|
3824
|
+
}
|
|
3825
|
+
},
|
|
5175
3826
|
pl: {
|
|
5176
3827
|
translation: {
|
|
5177
3828
|
'add-destination': 'Wybierz jako punkt docelowy',
|
|
@@ -5214,7 +3865,7 @@ const i18n = createInstance({
|
|
|
5214
3865
|
i18n.init();
|
|
5215
3866
|
|
|
5216
3867
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5217
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty
|
|
3868
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5218
3869
|
const TOGGLE_DEBOUNCE_MS = 200;
|
|
5219
3870
|
const LIST_BOTTOM_MARGIN = 16;
|
|
5220
3871
|
const MIN_LIST_HEIGHT = 120;
|