@appbaseio/reactivesearch-vue 3.2.0 → 3.3.1
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/@appbaseio/reactivesearch-vue.umd.js +811 -994
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +5 -5
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/{Button-f96a0570.js → Button-7aee17e3.js} +1 -1
- package/dist/cjs/{DropDown-ebe20e81.js → CancelSvg-6094cd37.js} +1 -292
- package/dist/cjs/{Card-63968d94.js → Card-abff695e.js} +2 -2
- package/dist/cjs/{ComponentWrapper-0334c14b.js → ComponentWrapper-3bedbe57.js} +2 -2
- package/dist/cjs/{Container-29f049b2.js → Container-1c05785a.js} +1 -1
- package/dist/cjs/DropDown-815d458e.js +299 -0
- package/dist/cjs/DynamicRangeSlider.js +11 -9
- package/dist/cjs/{Flex-ddde6d26.js → Flex-f7af0673.js} +1 -1
- package/dist/cjs/{FormControlList-fadd792f.js → FormControlList-2c10e01a.js} +1 -1
- package/dist/cjs/{Input-cee51a53.js → Input-55fbd8e1.js} +1 -1
- package/dist/cjs/{ListItem-7a682970.js → ListItem-f272f502.js} +2 -2
- package/dist/cjs/MultiDropdownList.js +11 -10
- package/dist/cjs/MultiList.js +9 -9
- package/dist/cjs/MultiRange.js +7 -7
- package/dist/cjs/{Pagination-c53a18ab.js → Pagination-accd2fbf.js} +1 -1
- package/dist/cjs/{PreferencesConsumer-7bee3c57.js → PreferencesConsumer-37cab7a0.js} +2 -2
- package/dist/cjs/RangeInput.js +9 -9
- package/dist/cjs/RangeSlider.js +7 -7
- package/dist/cjs/ReactiveBase.js +2 -2
- package/dist/cjs/ReactiveComponent.js +4 -4
- package/dist/cjs/ReactiveGoogleMap.js +8 -8
- package/dist/cjs/ReactiveList.js +15 -10
- package/dist/cjs/ResultCard.js +3 -3
- package/dist/cjs/ResultList.js +3 -3
- package/dist/cjs/{install-a3c5b872.js → SearchBox-4dff47b4.js} +42 -1684
- package/dist/cjs/SearchBox.js +38 -0
- package/dist/cjs/SelectedFilters.js +5 -5
- package/dist/cjs/SingleDropdownList.js +11 -10
- package/dist/cjs/SingleList.js +9 -9
- package/dist/cjs/SingleRange.js +7 -7
- package/dist/cjs/StateProvider.js +2 -2
- package/dist/cjs/{Title-8802a218.js → Title-d513ac26.js} +1 -1
- package/dist/cjs/ToggleButton.js +7 -7
- package/dist/cjs/{_rollupPluginBabelHelpers-f8b843f8.js → _rollupPluginBabelHelpers-1a877b17.js} +14 -14
- package/dist/cjs/{index-1f41363f.js → index-7ca9570e.js} +1 -1
- package/dist/cjs/index.js +21 -19
- package/dist/cjs/install-246c0dab.js +1683 -0
- package/dist/cjs/install.js +19 -17
- package/dist/cjs/{ssr-8dd13d43.js → ssr-15d936a0.js} +1 -1
- package/dist/cjs/{utils-c9bd5628.js → utils-a3db8765.js} +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/es/{Button-5c2cf399.js → Button-8178e39a.js} +1 -1
- package/dist/es/{DropDown-36fa9ac5.js → CancelSvg-5b82ad4f.js} +3 -293
- package/dist/es/{Card-54b9e7a0.js → Card-3a81ac7b.js} +2 -2
- package/dist/es/{ComponentWrapper-46d04344.js → ComponentWrapper-90d42a29.js} +2 -2
- package/dist/es/{Container-d00219f7.js → Container-e2261542.js} +1 -1
- package/dist/es/DropDown-f8049812.js +295 -0
- package/dist/es/DynamicRangeSlider.js +11 -9
- package/dist/es/{Flex-25792bc3.js → Flex-5d11362e.js} +1 -1
- package/dist/es/{FormControlList-fe6eaee4.js → FormControlList-968ff972.js} +1 -1
- package/dist/es/{Input-437ae439.js → Input-cda7f4ad.js} +1 -1
- package/dist/es/{ListItem-e3c6acf4.js → ListItem-beea18db.js} +2 -2
- package/dist/es/MultiDropdownList.js +11 -10
- package/dist/es/MultiList.js +9 -9
- package/dist/es/MultiRange.js +7 -7
- package/dist/es/{Pagination-591fdb79.js → Pagination-b2160aac.js} +1 -1
- package/dist/es/{PreferencesConsumer-0856ed43.js → PreferencesConsumer-a2bd59db.js} +2 -2
- package/dist/es/RangeInput.js +9 -9
- package/dist/es/RangeSlider.js +7 -7
- package/dist/es/ReactiveBase.js +2 -2
- package/dist/es/ReactiveComponent.js +4 -4
- package/dist/es/ReactiveGoogleMap.js +8 -8
- package/dist/es/ReactiveList.js +15 -10
- package/dist/es/ResultCard.js +3 -3
- package/dist/es/ResultList.js +3 -3
- package/dist/es/{install-3c9a9694.js → SearchBox-57e3a0ff.js} +17 -1671
- package/dist/es/SearchBox.js +29 -0
- package/dist/es/SelectedFilters.js +5 -5
- package/dist/es/SingleDropdownList.js +11 -10
- package/dist/es/SingleList.js +9 -9
- package/dist/es/SingleRange.js +7 -7
- package/dist/es/StateProvider.js +2 -2
- package/dist/es/{Title-863dfa42.js → Title-100fe896.js} +1 -1
- package/dist/es/ToggleButton.js +7 -7
- package/dist/es/{_rollupPluginBabelHelpers-ded08042.js → _rollupPluginBabelHelpers-5e8399d7.js} +14 -14
- package/dist/es/{index-104f1dfb.js → index-3af85a74.js} +1 -1
- package/dist/es/index.js +21 -19
- package/dist/es/install-74125db1.js +1676 -0
- package/dist/es/install.js +19 -17
- package/dist/es/{ssr-c630ccb9.js → ssr-40133887.js} +1 -1
- package/dist/es/{utils-d7dd4f4e.js → utils-badbb2a8.js} +1 -1
- package/dist/es/version.js +1 -1
- package/package.json +91 -91
|
@@ -16,34 +16,34 @@
|
|
|
16
16
|
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
function _typeof(
|
|
19
|
+
function _typeof(o) {
|
|
20
20
|
"@babel/helpers - typeof";
|
|
21
21
|
|
|
22
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
23
|
-
return typeof
|
|
24
|
-
} : function (
|
|
25
|
-
return
|
|
26
|
-
}, _typeof(
|
|
22
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
23
|
+
return typeof o;
|
|
24
|
+
} : function (o) {
|
|
25
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
26
|
+
}, _typeof(o);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
function
|
|
30
|
-
if (
|
|
31
|
-
var
|
|
32
|
-
if (
|
|
33
|
-
var
|
|
34
|
-
if (
|
|
29
|
+
function toPrimitive(t, r) {
|
|
30
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
31
|
+
var e = t[Symbol.toPrimitive];
|
|
32
|
+
if (void 0 !== e) {
|
|
33
|
+
var i = e.call(t, r || "default");
|
|
34
|
+
if ("object" != _typeof(i)) return i;
|
|
35
35
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
36
36
|
}
|
|
37
|
-
return (
|
|
37
|
+
return ("string" === r ? String : Number)(t);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
function
|
|
41
|
-
var
|
|
42
|
-
return _typeof(
|
|
40
|
+
function toPropertyKey(t) {
|
|
41
|
+
var i = toPrimitive(t, "string");
|
|
42
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
function _defineProperty(obj, key, value) {
|
|
46
|
-
key =
|
|
46
|
+
key = toPropertyKey(key);
|
|
47
47
|
if (key in obj) {
|
|
48
48
|
Object.defineProperty(obj, key, {
|
|
49
49
|
value: value,
|
|
@@ -57,26 +57,26 @@
|
|
|
57
57
|
return obj;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
function ownKeys(
|
|
61
|
-
var
|
|
60
|
+
function ownKeys(e, r) {
|
|
61
|
+
var t = Object.keys(e);
|
|
62
62
|
if (Object.getOwnPropertySymbols) {
|
|
63
|
-
var
|
|
64
|
-
|
|
65
|
-
return Object.getOwnPropertyDescriptor(
|
|
66
|
-
})),
|
|
63
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
64
|
+
r && (o = o.filter(function (r) {
|
|
65
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
66
|
+
})), t.push.apply(t, o);
|
|
67
67
|
}
|
|
68
|
-
return
|
|
68
|
+
return t;
|
|
69
69
|
}
|
|
70
|
-
function _objectSpread2(
|
|
71
|
-
for (var
|
|
72
|
-
var
|
|
73
|
-
|
|
74
|
-
_defineProperty(
|
|
75
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
76
|
-
Object.defineProperty(
|
|
70
|
+
function _objectSpread2(e) {
|
|
71
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
72
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
73
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
74
|
+
_defineProperty(e, r, t[r]);
|
|
75
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
76
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
-
return
|
|
79
|
+
return e;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
// Inlined version of the `symbol-observable` polyfill
|
|
@@ -462,7 +462,6 @@
|
|
|
462
462
|
throw new Error(message);
|
|
463
463
|
} catch (e) {} // eslint-disable-line no-empty
|
|
464
464
|
}
|
|
465
|
-
|
|
466
465
|
function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {
|
|
467
466
|
var reducerKeys = Object.keys(reducers);
|
|
468
467
|
var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';
|
|
@@ -1191,7 +1190,7 @@
|
|
|
1191
1190
|
geo: 'geo',
|
|
1192
1191
|
suggestion: 'suggestion'
|
|
1193
1192
|
};
|
|
1194
|
-
var validProps = exports.validProps = ['type', 'componentType', 'aggregationField', 'aggregationSize', 'distinctField', 'distinctFieldConfig', 'index', 'aggregations', 'compoundClause', 'dataField', 'includeFields', 'excludeFields', 'size', 'from', 'sortBy', 'sortOptions', 'pagination', 'autoFocus', 'autosuggest', 'debounce', 'defaultValue', 'defaultSuggestions', 'fieldWeights', 'filterLabel', 'fuzziness', 'highlight', 'highlightConfig', 'highlightField', 'nestedField', 'placeholder', 'queryFormat', 'searchOperators', 'enableSynonyms', 'enableQuerySuggestions', 'queryString', 'categoryField', 'strictSelection', 'selectAllLabel', 'showCheckbox', 'showFilter', 'showSearch', 'showCount', 'showLoadMore', 'loadMoreLabel', 'showMissing', 'missingLabel', 'data', 'showRadio', 'multiSelect', 'includeNullValues', 'interval', 'showHistogram', 'snap', 'stepValue', 'range', 'showSlider', 'parseDate', 'calendarInterval', 'unit', 'enablePopularSuggestions', 'enableRecentSuggestions', 'popularSuggestionsConfig', 'recentSuggestionsConfig', 'indexSuggestionsConfig', 'featuredSuggestionsConfig', 'FAQSuggestionsConfig', 'documentSuggestionsConfig', 'enablePredictiveSuggestions', 'applyStopwords', 'customStopwords', 'enableIndexSuggestions', 'enableFeaturedSuggestions', 'enableFAQSuggestions', 'enableDocumentSuggestions', 'enableEndpointSuggestions', 'searchboxId', 'endpoint', 'enableAI', 'AIConfig', 'showDistinctSuggestions'];
|
|
1193
|
+
var validProps = exports.validProps = ['type', 'componentType', 'aggregationField', 'aggregationSize', 'distinctField', 'distinctFieldConfig', 'index', 'aggregations', 'compoundClause', 'dataField', 'includeFields', 'excludeFields', 'size', 'from', 'sortBy', 'sortOptions', 'pagination', 'autoFocus', 'autosuggest', 'debounce', 'defaultValue', 'defaultSuggestions', 'fieldWeights', 'filterLabel', 'fuzziness', 'highlight', 'highlightConfig', 'highlightField', 'nestedField', 'placeholder', 'queryFormat', 'searchOperators', 'enableSynonyms', 'enableQuerySuggestions', 'queryString', 'vectorDataField', 'imageValue', 'categoryField', 'strictSelection', 'selectAllLabel', 'showCheckbox', 'showFilter', 'showSearch', 'showCount', 'showLoadMore', 'loadMoreLabel', 'showMissing', 'missingLabel', 'data', 'showRadio', 'multiSelect', 'includeNullValues', 'interval', 'showHistogram', 'snap', 'stepValue', 'range', 'showSlider', 'parseDate', 'calendarInterval', 'unit', 'enablePopularSuggestions', 'enableRecentSuggestions', 'popularSuggestionsConfig', 'recentSuggestionsConfig', 'indexSuggestionsConfig', 'featuredSuggestionsConfig', 'FAQSuggestionsConfig', 'documentSuggestionsConfig', 'enablePredictiveSuggestions', 'applyStopwords', 'customStopwords', 'enableIndexSuggestions', 'enableFeaturedSuggestions', 'enableFAQSuggestions', 'enableDocumentSuggestions', 'enableEndpointSuggestions', 'searchboxId', 'endpoint', 'enableAI', 'AIConfig', 'showDistinctSuggestions'];
|
|
1195
1194
|
var CLEAR_ALL = exports.CLEAR_ALL = {
|
|
1196
1195
|
NEVER: 'never',
|
|
1197
1196
|
ALWAYS: 'always',
|
|
@@ -5871,10 +5870,11 @@
|
|
|
5871
5870
|
g = "en",
|
|
5872
5871
|
D = {};
|
|
5873
5872
|
D[g] = M;
|
|
5874
|
-
var p =
|
|
5875
|
-
|
|
5873
|
+
var p = "$isDayjsObject",
|
|
5874
|
+
S = function S(t) {
|
|
5875
|
+
return t instanceof _ || !(!t || !t[p]);
|
|
5876
5876
|
},
|
|
5877
|
-
|
|
5877
|
+
w = function t(e, n, r) {
|
|
5878
5878
|
var i;
|
|
5879
5879
|
if (!e) return g;
|
|
5880
5880
|
if ("string" == typeof e) {
|
|
@@ -5888,23 +5888,23 @@
|
|
|
5888
5888
|
}
|
|
5889
5889
|
return !r && i && (g = i), i || !r && g;
|
|
5890
5890
|
},
|
|
5891
|
-
|
|
5892
|
-
if (
|
|
5891
|
+
O = function O(t, e) {
|
|
5892
|
+
if (S(t)) return t.clone();
|
|
5893
5893
|
var n = "object" == typeof e ? e : {};
|
|
5894
|
-
return n.date = t, n.args = arguments, new
|
|
5894
|
+
return n.date = t, n.args = arguments, new _(n);
|
|
5895
5895
|
},
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
return
|
|
5896
|
+
b = v;
|
|
5897
|
+
b.l = w, b.i = S, b.w = function (t, e) {
|
|
5898
|
+
return O(t, {
|
|
5899
5899
|
locale: e.$L,
|
|
5900
5900
|
utc: e.$u,
|
|
5901
5901
|
x: e.$x,
|
|
5902
5902
|
$offset: e.$offset
|
|
5903
5903
|
});
|
|
5904
5904
|
};
|
|
5905
|
-
var
|
|
5905
|
+
var _ = function () {
|
|
5906
5906
|
function M(t) {
|
|
5907
|
-
this.$L =
|
|
5907
|
+
this.$L = w(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[p] = !0;
|
|
5908
5908
|
}
|
|
5909
5909
|
var m = M.prototype;
|
|
5910
5910
|
return m.parse = function (t) {
|
|
@@ -5912,7 +5912,7 @@
|
|
|
5912
5912
|
var e = t.date,
|
|
5913
5913
|
n = t.utc;
|
|
5914
5914
|
if (null === e) return new Date(NaN);
|
|
5915
|
-
if (
|
|
5915
|
+
if (b.u(e)) return new Date();
|
|
5916
5916
|
if (e instanceof Date) return new Date(e);
|
|
5917
5917
|
if ("string" == typeof e && !/Z$/i.test(e)) {
|
|
5918
5918
|
var r = e.match($);
|
|
@@ -5923,37 +5923,37 @@
|
|
|
5923
5923
|
}
|
|
5924
5924
|
}
|
|
5925
5925
|
return new Date(e);
|
|
5926
|
-
}(t), this
|
|
5926
|
+
}(t), this.init();
|
|
5927
5927
|
}, m.init = function () {
|
|
5928
5928
|
var t = this.$d;
|
|
5929
5929
|
this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
|
|
5930
5930
|
}, m.$utils = function () {
|
|
5931
|
-
return
|
|
5931
|
+
return b;
|
|
5932
5932
|
}, m.isValid = function () {
|
|
5933
5933
|
return !(this.$d.toString() === l);
|
|
5934
5934
|
}, m.isSame = function (t, e) {
|
|
5935
|
-
var n =
|
|
5935
|
+
var n = O(t);
|
|
5936
5936
|
return this.startOf(e) <= n && n <= this.endOf(e);
|
|
5937
5937
|
}, m.isAfter = function (t, e) {
|
|
5938
|
-
return
|
|
5938
|
+
return O(t) < this.startOf(e);
|
|
5939
5939
|
}, m.isBefore = function (t, e) {
|
|
5940
|
-
return this.endOf(e) <
|
|
5940
|
+
return this.endOf(e) < O(t);
|
|
5941
5941
|
}, m.$g = function (t, e, n) {
|
|
5942
|
-
return
|
|
5942
|
+
return b.u(t) ? this[e] : this.set(n, t);
|
|
5943
5943
|
}, m.unix = function () {
|
|
5944
5944
|
return Math.floor(this.valueOf() / 1e3);
|
|
5945
5945
|
}, m.valueOf = function () {
|
|
5946
5946
|
return this.$d.getTime();
|
|
5947
5947
|
}, m.startOf = function (t, e) {
|
|
5948
5948
|
var n = this,
|
|
5949
|
-
r = !!
|
|
5950
|
-
f =
|
|
5949
|
+
r = !!b.u(e) || e,
|
|
5950
|
+
f = b.p(t),
|
|
5951
5951
|
l = function l(t, e) {
|
|
5952
|
-
var i =
|
|
5952
|
+
var i = b.w(n.$u ? Date.UTC(n.$y, e, t) : new Date(n.$y, e, t), n);
|
|
5953
5953
|
return r ? i : i.endOf(a);
|
|
5954
5954
|
},
|
|
5955
5955
|
$ = function $(t, e) {
|
|
5956
|
-
return
|
|
5956
|
+
return b.w(n.toDate()[t].apply(n.toDate("s"), (r ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e)), n);
|
|
5957
5957
|
},
|
|
5958
5958
|
y = this.$W,
|
|
5959
5959
|
M = this.$M,
|
|
@@ -5984,7 +5984,7 @@
|
|
|
5984
5984
|
return this.startOf(t, !1);
|
|
5985
5985
|
}, m.$set = function (t, e) {
|
|
5986
5986
|
var n,
|
|
5987
|
-
o =
|
|
5987
|
+
o = b.p(t),
|
|
5988
5988
|
f = "set" + (this.$u ? "UTC" : ""),
|
|
5989
5989
|
l = (n = {}, n[a] = f + "Date", n[d] = f + "Date", n[c] = f + "Month", n[h] = f + "FullYear", n[u] = f + "Hours", n[s] = f + "Minutes", n[i] = f + "Seconds", n[r] = f + "Milliseconds", n)[o],
|
|
5990
5990
|
$ = o === a ? this.$D + (e - this.$W) : e;
|
|
@@ -5996,15 +5996,15 @@
|
|
|
5996
5996
|
}, m.set = function (t, e) {
|
|
5997
5997
|
return this.clone().$set(t, e);
|
|
5998
5998
|
}, m.get = function (t) {
|
|
5999
|
-
return this[
|
|
5999
|
+
return this[b.p(t)]();
|
|
6000
6000
|
}, m.add = function (r, f) {
|
|
6001
6001
|
var d,
|
|
6002
6002
|
l = this;
|
|
6003
6003
|
r = Number(r);
|
|
6004
|
-
var $ =
|
|
6004
|
+
var $ = b.p(f),
|
|
6005
6005
|
y = function y(t) {
|
|
6006
|
-
var e =
|
|
6007
|
-
return
|
|
6006
|
+
var e = O(l);
|
|
6007
|
+
return b.w(e.date(e.date() + Math.round(t * r)), l);
|
|
6008
6008
|
};
|
|
6009
6009
|
if ($ === c) return this.set(c, this.$M + r);
|
|
6010
6010
|
if ($ === h) return this.set(h, this.$y + r);
|
|
@@ -6012,7 +6012,7 @@
|
|
|
6012
6012
|
if ($ === o) return y(7);
|
|
6013
6013
|
var M = (d = {}, d[s] = e, d[u] = n, d[i] = t, d)[$] || 1,
|
|
6014
6014
|
m = this.$d.getTime() + r * M;
|
|
6015
|
-
return
|
|
6015
|
+
return b.w(m, this);
|
|
6016
6016
|
}, m.subtract = function (t, e) {
|
|
6017
6017
|
return this.add(-1 * t, e);
|
|
6018
6018
|
}, m.format = function (t) {
|
|
@@ -6020,7 +6020,7 @@
|
|
|
6020
6020
|
n = this.$locale();
|
|
6021
6021
|
if (!this.isValid()) return n.invalidDate || l;
|
|
6022
6022
|
var r = t || "YYYY-MM-DDTHH:mm:ssZ",
|
|
6023
|
-
i =
|
|
6023
|
+
i = b.z(this),
|
|
6024
6024
|
s = this.$H,
|
|
6025
6025
|
u = this.$m,
|
|
6026
6026
|
a = this.$M,
|
|
@@ -6031,7 +6031,7 @@
|
|
|
6031
6031
|
return t && (t[n] || t(e, r)) || i[n].slice(0, s);
|
|
6032
6032
|
},
|
|
6033
6033
|
d = function d(t) {
|
|
6034
|
-
return
|
|
6034
|
+
return b.s(s % 12 || 12, t, "0");
|
|
6035
6035
|
},
|
|
6036
6036
|
$ = f || function (t, e, n) {
|
|
6037
6037
|
var r = t < 12 ? "AM" : "PM";
|
|
@@ -6043,11 +6043,11 @@
|
|
|
6043
6043
|
case "YY":
|
|
6044
6044
|
return String(e.$y).slice(-2);
|
|
6045
6045
|
case "YYYY":
|
|
6046
|
-
return
|
|
6046
|
+
return b.s(e.$y, 4, "0");
|
|
6047
6047
|
case "M":
|
|
6048
6048
|
return a + 1;
|
|
6049
6049
|
case "MM":
|
|
6050
|
-
return
|
|
6050
|
+
return b.s(a + 1, 2, "0");
|
|
6051
6051
|
case "MMM":
|
|
6052
6052
|
return h(n.monthsShort, a, c, 3);
|
|
6053
6053
|
case "MMMM":
|
|
@@ -6055,7 +6055,7 @@
|
|
|
6055
6055
|
case "D":
|
|
6056
6056
|
return e.$D;
|
|
6057
6057
|
case "DD":
|
|
6058
|
-
return
|
|
6058
|
+
return b.s(e.$D, 2, "0");
|
|
6059
6059
|
case "d":
|
|
6060
6060
|
return String(e.$W);
|
|
6061
6061
|
case "dd":
|
|
@@ -6067,7 +6067,7 @@
|
|
|
6067
6067
|
case "H":
|
|
6068
6068
|
return String(s);
|
|
6069
6069
|
case "HH":
|
|
6070
|
-
return
|
|
6070
|
+
return b.s(s, 2, "0");
|
|
6071
6071
|
case "h":
|
|
6072
6072
|
return d(1);
|
|
6073
6073
|
case "hh":
|
|
@@ -6079,13 +6079,13 @@
|
|
|
6079
6079
|
case "m":
|
|
6080
6080
|
return String(u);
|
|
6081
6081
|
case "mm":
|
|
6082
|
-
return
|
|
6082
|
+
return b.s(u, 2, "0");
|
|
6083
6083
|
case "s":
|
|
6084
6084
|
return String(e.$s);
|
|
6085
6085
|
case "ss":
|
|
6086
|
-
return
|
|
6086
|
+
return b.s(e.$s, 2, "0");
|
|
6087
6087
|
case "SSS":
|
|
6088
|
-
return
|
|
6088
|
+
return b.s(e.$ms, 3, "0");
|
|
6089
6089
|
case "Z":
|
|
6090
6090
|
return i;
|
|
6091
6091
|
}
|
|
@@ -6097,12 +6097,12 @@
|
|
|
6097
6097
|
}, m.diff = function (r, d, l) {
|
|
6098
6098
|
var $,
|
|
6099
6099
|
y = this,
|
|
6100
|
-
M =
|
|
6101
|
-
m =
|
|
6100
|
+
M = b.p(d),
|
|
6101
|
+
m = O(r),
|
|
6102
6102
|
v = (m.utcOffset() - this.utcOffset()) * e,
|
|
6103
6103
|
g = this - m,
|
|
6104
6104
|
D = function D() {
|
|
6105
|
-
return
|
|
6105
|
+
return b.m(y, m);
|
|
6106
6106
|
};
|
|
6107
6107
|
switch (M) {
|
|
6108
6108
|
case h:
|
|
@@ -6132,7 +6132,7 @@
|
|
|
6132
6132
|
default:
|
|
6133
6133
|
$ = g;
|
|
6134
6134
|
}
|
|
6135
|
-
return l ? $ :
|
|
6135
|
+
return l ? $ : b.a($);
|
|
6136
6136
|
}, m.daysInMonth = function () {
|
|
6137
6137
|
return this.endOf(c).$D;
|
|
6138
6138
|
}, m.$locale = function () {
|
|
@@ -6140,10 +6140,10 @@
|
|
|
6140
6140
|
}, m.locale = function (t, e) {
|
|
6141
6141
|
if (!t) return this.$L;
|
|
6142
6142
|
var n = this.clone(),
|
|
6143
|
-
r =
|
|
6143
|
+
r = w(t, e, !0);
|
|
6144
6144
|
return r && (n.$L = r), n;
|
|
6145
6145
|
}, m.clone = function () {
|
|
6146
|
-
return
|
|
6146
|
+
return b.w(this.$d, this);
|
|
6147
6147
|
}, m.toDate = function () {
|
|
6148
6148
|
return new Date(this.valueOf());
|
|
6149
6149
|
}, m.toJSON = function () {
|
|
@@ -6154,16 +6154,16 @@
|
|
|
6154
6154
|
return this.$d.toUTCString();
|
|
6155
6155
|
}, M;
|
|
6156
6156
|
}(),
|
|
6157
|
-
|
|
6158
|
-
return
|
|
6159
|
-
|
|
6157
|
+
k = _.prototype;
|
|
6158
|
+
return O.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function (t) {
|
|
6159
|
+
k[t[1]] = function (e) {
|
|
6160
6160
|
return this.$g(e, t[0], t[1]);
|
|
6161
6161
|
};
|
|
6162
|
-
}),
|
|
6163
|
-
return t.$i || (t(e,
|
|
6164
|
-
},
|
|
6165
|
-
return
|
|
6166
|
-
},
|
|
6162
|
+
}), O.extend = function (t, e) {
|
|
6163
|
+
return t.$i || (t(e, _, O), t.$i = !0), O;
|
|
6164
|
+
}, O.locale = w, O.isDayjs = S, O.unix = function (t) {
|
|
6165
|
+
return O(1e3 * t);
|
|
6166
|
+
}, O.en = D[g], O.Ls = D, O.p = {}, O;
|
|
6167
6167
|
});
|
|
6168
6168
|
});
|
|
6169
6169
|
|
|
@@ -6353,7 +6353,10 @@
|
|
|
6353
6353
|
AIConfig: props.AIConfig
|
|
6354
6354
|
} : {}, {
|
|
6355
6355
|
execute: true
|
|
6356
|
-
}) : {}
|
|
6356
|
+
}) : {}, queryType !== constants$1.queryTypes.suggestion ? {
|
|
6357
|
+
vectorDataField: props.vectorDataField || undefined,
|
|
6358
|
+
imageValue: props.imageValue || undefined
|
|
6359
|
+
} : {});
|
|
6357
6360
|
}
|
|
6358
6361
|
return null;
|
|
6359
6362
|
};
|
|
@@ -6657,10 +6660,11 @@
|
|
|
6657
6660
|
var customQuery = store.customQueries[component];
|
|
6658
6661
|
if (!isInternalComponent(component)) {
|
|
6659
6662
|
var calcValues = store.selectedValues[component] || store.internalValues[component];
|
|
6660
|
-
|
|
6663
|
+
var imageValue = calcValues && calcValues.meta && calcValues.meta.imageValue;
|
|
6664
|
+
if ((calcValues && (calcValues.value || imageValue) || customQuery) && !finalQuery[component]) {
|
|
6661
6665
|
var execute = false;
|
|
6662
6666
|
var componentProps = store.props[component];
|
|
6663
|
-
if (Array.isArray(orderOfQueries) && orderOfQueries.includes(component) && !(componentProps.componentType === constants$1.componentTypes.searchBox && componentProps.enableAI)) {
|
|
6667
|
+
if (Array.isArray(orderOfQueries) && orderOfQueries.includes(component) && !(componentProps.componentType === constants$1.componentTypes.searchBox && (componentProps.enableAI || componentProps.autosuggest === false))) {
|
|
6664
6668
|
execute = true;
|
|
6665
6669
|
}
|
|
6666
6670
|
var dependentQuery = getRSQuery(component, extractPropsFromState(store, component, _extends({}, componentProps && _extends({}, componentProps.componentType === constants$1.componentTypes.searchBox ? _extends({}, execute === false ? {
|
|
@@ -6671,6 +6675,8 @@
|
|
|
6671
6675
|
categoryValue: undefined
|
|
6672
6676
|
}, calcValues.value ? {
|
|
6673
6677
|
value: calcValues.value
|
|
6678
|
+
} : {}, imageValue ? {
|
|
6679
|
+
imageValue: imageValue
|
|
6674
6680
|
} : {}) : {}, componentProps.componentType === constants$1.componentTypes.categorySearch ? _extends({}, calcValues.category ? {
|
|
6675
6681
|
categoryValue: calcValues.category
|
|
6676
6682
|
} : {
|
|
@@ -7609,7 +7615,12 @@
|
|
|
7609
7615
|
var componentsToReset = {};
|
|
7610
7616
|
var isResultComponent = [constants$1.componentTypes.reactiveList, constants$1.componentTypes.reactiveMap].includes(props[component] && props[component].componentType);
|
|
7611
7617
|
var previousValue = selectedValues[component] && selectedValues[component].value;
|
|
7612
|
-
|
|
7618
|
+
var isImageValueEqual = true;
|
|
7619
|
+
if (componentType === constants$1.componentTypes.searchBox || componentType === undefined) {
|
|
7620
|
+
var previousImageValue = selectedValues[component] && selectedValues[component].meta && selectedValues[component].meta.imageValue;
|
|
7621
|
+
isImageValueEqual = (0, helper.isEqual)(previousImageValue, meta && meta.imageValue);
|
|
7622
|
+
}
|
|
7623
|
+
if ((!(0, helper.isEqual)(previousValue, value) || !isImageValueEqual) && props[component] && !isResultComponent) {
|
|
7613
7624
|
var componentList = [component];
|
|
7614
7625
|
var watchList = watchMan[component] || [];
|
|
7615
7626
|
componentList = [].concat(_toConsumableArray(componentList), _toConsumableArray(watchList));
|
|
@@ -7982,10 +7993,10 @@
|
|
|
7982
7993
|
value: value
|
|
7983
7994
|
} : null, metaOptions ? _extends({
|
|
7984
7995
|
from: metaOptions.from
|
|
7985
|
-
}, value && metaOptions.enableAI === true ? {
|
|
7996
|
+
}, value && metaOptions.enableAI === true ? _extends({}, metaOptions, {
|
|
7986
7997
|
enableAI: true,
|
|
7987
7998
|
type: 'search'
|
|
7988
|
-
} : {}) : null)));
|
|
7999
|
+
}) : {}) : null)));
|
|
7989
8000
|
if (query && !!Object.keys(query).length) {
|
|
7990
8001
|
var currentQuery = query;
|
|
7991
8002
|
var oldQuery = queryLog[component];
|
|
@@ -8031,7 +8042,9 @@
|
|
|
8031
8042
|
}
|
|
8032
8043
|
var _getState4 = getState(),
|
|
8033
8044
|
combinedLog = _getState4.combinedLog;
|
|
8034
|
-
if ((0, helper.compareQueries)(combinedLog[component], currentQuery))
|
|
8045
|
+
if ((0, helper.compareQueries)(combinedLog[component], currentQuery)) {
|
|
8046
|
+
return;
|
|
8047
|
+
}
|
|
8035
8048
|
dispatch((0, misc.logCombinedQuery)(component, currentQuery));
|
|
8036
8049
|
}
|
|
8037
8050
|
(0, utils.executeQueryListener)(queryListener[component], oldQuery, currentQuery);
|
|
@@ -8187,9 +8200,9 @@
|
|
|
8187
8200
|
}
|
|
8188
8201
|
dispatch((0, misc.setQuery)(componentId, queryToDispatch));
|
|
8189
8202
|
if (execute) {
|
|
8190
|
-
dispatch(executeQuery(componentId, true, false, componentType, componentType === constants$1.componentTypes.searchBox && meta && typeof meta.enableAI === 'boolean' ? {
|
|
8203
|
+
dispatch(executeQuery(componentId, true, false, componentType, componentType === constants$1.componentTypes.searchBox && meta && typeof meta.enableAI === 'boolean' ? _extends({}, meta, {
|
|
8191
8204
|
enableAI: meta.enableAI
|
|
8192
|
-
} : undefined));
|
|
8205
|
+
}) : undefined));
|
|
8193
8206
|
}
|
|
8194
8207
|
};
|
|
8195
8208
|
}
|
|
@@ -9101,11 +9114,13 @@
|
|
|
9101
9114
|
var SUGGESTION_SELECT = 'SUGGESTION_SELECT';
|
|
9102
9115
|
var CLEAR_VALUE = 'CLEAR_VALUE';
|
|
9103
9116
|
var SEARCH_ICON_CLICK = 'SEARCH_ICON_CLICK';
|
|
9117
|
+
var CLEAR_ALL_TAGS = 'CLEAR_ALL_TAGS';
|
|
9104
9118
|
var causes = {
|
|
9105
9119
|
ENTER_PRESS: ENTER_PRESS,
|
|
9106
9120
|
SUGGESTION_SELECT: SUGGESTION_SELECT,
|
|
9107
9121
|
CLEAR_VALUE: CLEAR_VALUE,
|
|
9108
|
-
SEARCH_ICON_CLICK: SEARCH_ICON_CLICK
|
|
9122
|
+
SEARCH_ICON_CLICK: SEARCH_ICON_CLICK,
|
|
9123
|
+
CLEAR_ALL_TAGS: CLEAR_ALL_TAGS
|
|
9109
9124
|
};
|
|
9110
9125
|
exports["default"] = causes;
|
|
9111
9126
|
});
|
|
@@ -9211,299 +9226,318 @@
|
|
|
9211
9226
|
|
|
9212
9227
|
function _regeneratorRuntime() {
|
|
9213
9228
|
_regeneratorRuntime = function () {
|
|
9214
|
-
return
|
|
9215
|
-
};
|
|
9216
|
-
var
|
|
9217
|
-
|
|
9218
|
-
|
|
9219
|
-
|
|
9220
|
-
|
|
9221
|
-
|
|
9222
|
-
|
|
9223
|
-
|
|
9224
|
-
|
|
9225
|
-
|
|
9226
|
-
|
|
9227
|
-
|
|
9228
|
-
|
|
9229
|
+
return e;
|
|
9230
|
+
};
|
|
9231
|
+
var t,
|
|
9232
|
+
e = {},
|
|
9233
|
+
r = Object.prototype,
|
|
9234
|
+
n = r.hasOwnProperty,
|
|
9235
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
9236
|
+
t[e] = r.value;
|
|
9237
|
+
},
|
|
9238
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
9239
|
+
a = i.iterator || "@@iterator",
|
|
9240
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
9241
|
+
u = i.toStringTag || "@@toStringTag";
|
|
9242
|
+
function define(t, e, r) {
|
|
9243
|
+
return Object.defineProperty(t, e, {
|
|
9244
|
+
value: r,
|
|
9229
9245
|
enumerable: !0,
|
|
9230
9246
|
configurable: !0,
|
|
9231
9247
|
writable: !0
|
|
9232
|
-
}),
|
|
9248
|
+
}), t[e];
|
|
9233
9249
|
}
|
|
9234
9250
|
try {
|
|
9235
9251
|
define({}, "");
|
|
9236
|
-
} catch (
|
|
9237
|
-
define = function (
|
|
9238
|
-
return
|
|
9252
|
+
} catch (t) {
|
|
9253
|
+
define = function (t, e, r) {
|
|
9254
|
+
return t[e] = r;
|
|
9239
9255
|
};
|
|
9240
9256
|
}
|
|
9241
|
-
function wrap(
|
|
9242
|
-
var
|
|
9243
|
-
|
|
9244
|
-
|
|
9245
|
-
return
|
|
9246
|
-
value: makeInvokeMethod(
|
|
9247
|
-
}),
|
|
9257
|
+
function wrap(t, e, r, n) {
|
|
9258
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
9259
|
+
a = Object.create(i.prototype),
|
|
9260
|
+
c = new Context(n || []);
|
|
9261
|
+
return o(a, "_invoke", {
|
|
9262
|
+
value: makeInvokeMethod(t, r, c)
|
|
9263
|
+
}), a;
|
|
9248
9264
|
}
|
|
9249
|
-
function tryCatch(
|
|
9265
|
+
function tryCatch(t, e, r) {
|
|
9250
9266
|
try {
|
|
9251
9267
|
return {
|
|
9252
9268
|
type: "normal",
|
|
9253
|
-
arg:
|
|
9269
|
+
arg: t.call(e, r)
|
|
9254
9270
|
};
|
|
9255
|
-
} catch (
|
|
9271
|
+
} catch (t) {
|
|
9256
9272
|
return {
|
|
9257
9273
|
type: "throw",
|
|
9258
|
-
arg:
|
|
9274
|
+
arg: t
|
|
9259
9275
|
};
|
|
9260
9276
|
}
|
|
9261
9277
|
}
|
|
9262
|
-
|
|
9263
|
-
var
|
|
9278
|
+
e.wrap = wrap;
|
|
9279
|
+
var h = "suspendedStart",
|
|
9280
|
+
l = "suspendedYield",
|
|
9281
|
+
f = "executing",
|
|
9282
|
+
s = "completed",
|
|
9283
|
+
y = {};
|
|
9264
9284
|
function Generator() {}
|
|
9265
9285
|
function GeneratorFunction() {}
|
|
9266
9286
|
function GeneratorFunctionPrototype() {}
|
|
9267
|
-
var
|
|
9268
|
-
define(
|
|
9287
|
+
var p = {};
|
|
9288
|
+
define(p, a, function () {
|
|
9269
9289
|
return this;
|
|
9270
9290
|
});
|
|
9271
|
-
var
|
|
9272
|
-
|
|
9273
|
-
|
|
9274
|
-
var
|
|
9275
|
-
function defineIteratorMethods(
|
|
9276
|
-
["next", "throw", "return"].forEach(function (
|
|
9277
|
-
define(
|
|
9278
|
-
return this._invoke(
|
|
9291
|
+
var d = Object.getPrototypeOf,
|
|
9292
|
+
v = d && d(d(values([])));
|
|
9293
|
+
v && v !== r && n.call(v, a) && (p = v);
|
|
9294
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
9295
|
+
function defineIteratorMethods(t) {
|
|
9296
|
+
["next", "throw", "return"].forEach(function (e) {
|
|
9297
|
+
define(t, e, function (t) {
|
|
9298
|
+
return this._invoke(e, t);
|
|
9279
9299
|
});
|
|
9280
9300
|
});
|
|
9281
9301
|
}
|
|
9282
|
-
function AsyncIterator(
|
|
9283
|
-
function invoke(
|
|
9284
|
-
var
|
|
9285
|
-
if ("throw" !==
|
|
9286
|
-
var
|
|
9287
|
-
|
|
9288
|
-
return
|
|
9289
|
-
invoke("next",
|
|
9290
|
-
}, function (
|
|
9291
|
-
invoke("throw",
|
|
9292
|
-
}) :
|
|
9293
|
-
|
|
9294
|
-
}, function (
|
|
9295
|
-
return invoke("throw",
|
|
9302
|
+
function AsyncIterator(t, e) {
|
|
9303
|
+
function invoke(r, o, i, a) {
|
|
9304
|
+
var c = tryCatch(t[r], t, o);
|
|
9305
|
+
if ("throw" !== c.type) {
|
|
9306
|
+
var u = c.arg,
|
|
9307
|
+
h = u.value;
|
|
9308
|
+
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
9309
|
+
invoke("next", t, i, a);
|
|
9310
|
+
}, function (t) {
|
|
9311
|
+
invoke("throw", t, i, a);
|
|
9312
|
+
}) : e.resolve(h).then(function (t) {
|
|
9313
|
+
u.value = t, i(u);
|
|
9314
|
+
}, function (t) {
|
|
9315
|
+
return invoke("throw", t, i, a);
|
|
9296
9316
|
});
|
|
9297
9317
|
}
|
|
9298
|
-
|
|
9318
|
+
a(c.arg);
|
|
9299
9319
|
}
|
|
9300
|
-
var
|
|
9301
|
-
|
|
9302
|
-
value: function (
|
|
9320
|
+
var r;
|
|
9321
|
+
o(this, "_invoke", {
|
|
9322
|
+
value: function (t, n) {
|
|
9303
9323
|
function callInvokeWithMethodAndArg() {
|
|
9304
|
-
return new
|
|
9305
|
-
invoke(
|
|
9324
|
+
return new e(function (e, r) {
|
|
9325
|
+
invoke(t, n, e, r);
|
|
9306
9326
|
});
|
|
9307
9327
|
}
|
|
9308
|
-
return
|
|
9328
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
9309
9329
|
}
|
|
9310
9330
|
});
|
|
9311
9331
|
}
|
|
9312
|
-
function makeInvokeMethod(
|
|
9313
|
-
var
|
|
9314
|
-
return function (
|
|
9315
|
-
if (
|
|
9316
|
-
if (
|
|
9317
|
-
if ("throw" ===
|
|
9332
|
+
function makeInvokeMethod(e, r, n) {
|
|
9333
|
+
var o = h;
|
|
9334
|
+
return function (i, a) {
|
|
9335
|
+
if (o === f) throw new Error("Generator is already running");
|
|
9336
|
+
if (o === s) {
|
|
9337
|
+
if ("throw" === i) throw a;
|
|
9318
9338
|
return {
|
|
9319
|
-
value:
|
|
9339
|
+
value: t,
|
|
9320
9340
|
done: !0
|
|
9321
9341
|
};
|
|
9322
9342
|
}
|
|
9323
|
-
for (
|
|
9324
|
-
var
|
|
9325
|
-
if (
|
|
9326
|
-
var
|
|
9327
|
-
if (
|
|
9328
|
-
if (
|
|
9329
|
-
return
|
|
9330
|
-
}
|
|
9331
|
-
}
|
|
9332
|
-
if ("next" ===
|
|
9333
|
-
if (
|
|
9334
|
-
|
|
9335
|
-
} else "return" ===
|
|
9336
|
-
|
|
9337
|
-
var
|
|
9338
|
-
if ("normal" ===
|
|
9339
|
-
if (
|
|
9343
|
+
for (n.method = i, n.arg = a;;) {
|
|
9344
|
+
var c = n.delegate;
|
|
9345
|
+
if (c) {
|
|
9346
|
+
var u = maybeInvokeDelegate(c, n);
|
|
9347
|
+
if (u) {
|
|
9348
|
+
if (u === y) continue;
|
|
9349
|
+
return u;
|
|
9350
|
+
}
|
|
9351
|
+
}
|
|
9352
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
9353
|
+
if (o === h) throw o = s, n.arg;
|
|
9354
|
+
n.dispatchException(n.arg);
|
|
9355
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
9356
|
+
o = f;
|
|
9357
|
+
var p = tryCatch(e, r, n);
|
|
9358
|
+
if ("normal" === p.type) {
|
|
9359
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
|
9340
9360
|
return {
|
|
9341
|
-
value:
|
|
9342
|
-
done:
|
|
9361
|
+
value: p.arg,
|
|
9362
|
+
done: n.done
|
|
9343
9363
|
};
|
|
9344
9364
|
}
|
|
9345
|
-
"throw" ===
|
|
9365
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
9346
9366
|
}
|
|
9347
9367
|
};
|
|
9348
9368
|
}
|
|
9349
|
-
function maybeInvokeDelegate(
|
|
9350
|
-
var
|
|
9351
|
-
|
|
9352
|
-
if (
|
|
9353
|
-
var
|
|
9354
|
-
if ("throw" ===
|
|
9355
|
-
var
|
|
9356
|
-
return
|
|
9357
|
-
}
|
|
9358
|
-
function pushTryEntry(
|
|
9359
|
-
var
|
|
9360
|
-
tryLoc:
|
|
9369
|
+
function maybeInvokeDelegate(e, r) {
|
|
9370
|
+
var n = r.method,
|
|
9371
|
+
o = e.iterator[n];
|
|
9372
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
9373
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
9374
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
9375
|
+
var a = i.arg;
|
|
9376
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
9377
|
+
}
|
|
9378
|
+
function pushTryEntry(t) {
|
|
9379
|
+
var e = {
|
|
9380
|
+
tryLoc: t[0]
|
|
9361
9381
|
};
|
|
9362
|
-
1 in
|
|
9382
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
9363
9383
|
}
|
|
9364
|
-
function resetTryEntry(
|
|
9365
|
-
var
|
|
9366
|
-
|
|
9384
|
+
function resetTryEntry(t) {
|
|
9385
|
+
var e = t.completion || {};
|
|
9386
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
9367
9387
|
}
|
|
9368
|
-
function Context(
|
|
9388
|
+
function Context(t) {
|
|
9369
9389
|
this.tryEntries = [{
|
|
9370
9390
|
tryLoc: "root"
|
|
9371
|
-
}],
|
|
9372
|
-
}
|
|
9373
|
-
function values(
|
|
9374
|
-
if (
|
|
9375
|
-
var
|
|
9376
|
-
if (
|
|
9377
|
-
if ("function" == typeof
|
|
9378
|
-
if (!isNaN(
|
|
9379
|
-
var
|
|
9380
|
-
|
|
9381
|
-
for (; ++
|
|
9382
|
-
return next.value =
|
|
9391
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
9392
|
+
}
|
|
9393
|
+
function values(e) {
|
|
9394
|
+
if (e || "" === e) {
|
|
9395
|
+
var r = e[a];
|
|
9396
|
+
if (r) return r.call(e);
|
|
9397
|
+
if ("function" == typeof e.next) return e;
|
|
9398
|
+
if (!isNaN(e.length)) {
|
|
9399
|
+
var o = -1,
|
|
9400
|
+
i = function next() {
|
|
9401
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
9402
|
+
return next.value = t, next.done = !0, next;
|
|
9383
9403
|
};
|
|
9384
|
-
return
|
|
9404
|
+
return i.next = i;
|
|
9385
9405
|
}
|
|
9386
9406
|
}
|
|
9387
|
-
throw new TypeError(typeof
|
|
9407
|
+
throw new TypeError(typeof e + " is not iterable");
|
|
9388
9408
|
}
|
|
9389
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
9409
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
9390
9410
|
value: GeneratorFunctionPrototype,
|
|
9391
9411
|
configurable: !0
|
|
9392
|
-
}),
|
|
9412
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
9393
9413
|
value: GeneratorFunction,
|
|
9394
9414
|
configurable: !0
|
|
9395
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
|
9396
|
-
var
|
|
9397
|
-
return !!
|
|
9398
|
-
},
|
|
9399
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
9400
|
-
},
|
|
9415
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
9416
|
+
var e = "function" == typeof t && t.constructor;
|
|
9417
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
9418
|
+
}, e.mark = function (t) {
|
|
9419
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
9420
|
+
}, e.awrap = function (t) {
|
|
9401
9421
|
return {
|
|
9402
|
-
__await:
|
|
9422
|
+
__await: t
|
|
9403
9423
|
};
|
|
9404
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
|
9424
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
9405
9425
|
return this;
|
|
9406
|
-
}),
|
|
9407
|
-
void 0 ===
|
|
9408
|
-
var
|
|
9409
|
-
return
|
|
9410
|
-
return
|
|
9426
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
9427
|
+
void 0 === i && (i = Promise);
|
|
9428
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
9429
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
9430
|
+
return t.done ? t.value : a.next();
|
|
9411
9431
|
});
|
|
9412
|
-
}, defineIteratorMethods(
|
|
9432
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
9413
9433
|
return this;
|
|
9414
|
-
}), define(
|
|
9434
|
+
}), define(g, "toString", function () {
|
|
9415
9435
|
return "[object Generator]";
|
|
9416
|
-
}),
|
|
9417
|
-
var
|
|
9418
|
-
|
|
9419
|
-
for (var
|
|
9420
|
-
return
|
|
9421
|
-
for (;
|
|
9422
|
-
var
|
|
9423
|
-
if (
|
|
9436
|
+
}), e.keys = function (t) {
|
|
9437
|
+
var e = Object(t),
|
|
9438
|
+
r = [];
|
|
9439
|
+
for (var n in e) r.push(n);
|
|
9440
|
+
return r.reverse(), function next() {
|
|
9441
|
+
for (; r.length;) {
|
|
9442
|
+
var t = r.pop();
|
|
9443
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
|
9424
9444
|
}
|
|
9425
9445
|
return next.done = !0, next;
|
|
9426
9446
|
};
|
|
9427
|
-
},
|
|
9447
|
+
}, e.values = values, Context.prototype = {
|
|
9428
9448
|
constructor: Context,
|
|
9429
|
-
reset: function (
|
|
9430
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
|
9449
|
+
reset: function (e) {
|
|
9450
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
9431
9451
|
},
|
|
9432
9452
|
stop: function () {
|
|
9433
9453
|
this.done = !0;
|
|
9434
|
-
var
|
|
9435
|
-
if ("throw" ===
|
|
9454
|
+
var t = this.tryEntries[0].completion;
|
|
9455
|
+
if ("throw" === t.type) throw t.arg;
|
|
9436
9456
|
return this.rval;
|
|
9437
9457
|
},
|
|
9438
|
-
dispatchException: function (
|
|
9439
|
-
if (this.done) throw
|
|
9440
|
-
var
|
|
9441
|
-
function handle(
|
|
9442
|
-
return
|
|
9443
|
-
}
|
|
9444
|
-
for (var
|
|
9445
|
-
var
|
|
9446
|
-
|
|
9447
|
-
if ("root" ===
|
|
9448
|
-
if (
|
|
9449
|
-
var
|
|
9450
|
-
|
|
9451
|
-
if (
|
|
9452
|
-
if (this.prev <
|
|
9453
|
-
if (this.prev <
|
|
9454
|
-
} else if (
|
|
9455
|
-
if (this.prev <
|
|
9458
|
+
dispatchException: function (e) {
|
|
9459
|
+
if (this.done) throw e;
|
|
9460
|
+
var r = this;
|
|
9461
|
+
function handle(n, o) {
|
|
9462
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
9463
|
+
}
|
|
9464
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
9465
|
+
var i = this.tryEntries[o],
|
|
9466
|
+
a = i.completion;
|
|
9467
|
+
if ("root" === i.tryLoc) return handle("end");
|
|
9468
|
+
if (i.tryLoc <= this.prev) {
|
|
9469
|
+
var c = n.call(i, "catchLoc"),
|
|
9470
|
+
u = n.call(i, "finallyLoc");
|
|
9471
|
+
if (c && u) {
|
|
9472
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
9473
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
9474
|
+
} else if (c) {
|
|
9475
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
9456
9476
|
} else {
|
|
9457
|
-
if (!
|
|
9458
|
-
if (this.prev <
|
|
9477
|
+
if (!u) throw new Error("try statement without catch or finally");
|
|
9478
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
9459
9479
|
}
|
|
9460
9480
|
}
|
|
9461
9481
|
}
|
|
9462
9482
|
},
|
|
9463
|
-
abrupt: function (
|
|
9464
|
-
for (var
|
|
9465
|
-
var
|
|
9466
|
-
if (
|
|
9467
|
-
var
|
|
9483
|
+
abrupt: function (t, e) {
|
|
9484
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
9485
|
+
var o = this.tryEntries[r];
|
|
9486
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
9487
|
+
var i = o;
|
|
9468
9488
|
break;
|
|
9469
9489
|
}
|
|
9470
9490
|
}
|
|
9471
|
-
|
|
9472
|
-
var
|
|
9473
|
-
return
|
|
9491
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
9492
|
+
var a = i ? i.completion : {};
|
|
9493
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
9474
9494
|
},
|
|
9475
|
-
complete: function (
|
|
9476
|
-
if ("throw" ===
|
|
9477
|
-
return "break" ===
|
|
9495
|
+
complete: function (t, e) {
|
|
9496
|
+
if ("throw" === t.type) throw t.arg;
|
|
9497
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
9478
9498
|
},
|
|
9479
|
-
finish: function (
|
|
9480
|
-
for (var
|
|
9481
|
-
var
|
|
9482
|
-
if (
|
|
9499
|
+
finish: function (t) {
|
|
9500
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
9501
|
+
var r = this.tryEntries[e];
|
|
9502
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
9483
9503
|
}
|
|
9484
9504
|
},
|
|
9485
|
-
catch: function (
|
|
9486
|
-
for (var
|
|
9487
|
-
var
|
|
9488
|
-
if (
|
|
9489
|
-
var
|
|
9490
|
-
if ("throw" ===
|
|
9491
|
-
var
|
|
9492
|
-
resetTryEntry(
|
|
9505
|
+
catch: function (t) {
|
|
9506
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
9507
|
+
var r = this.tryEntries[e];
|
|
9508
|
+
if (r.tryLoc === t) {
|
|
9509
|
+
var n = r.completion;
|
|
9510
|
+
if ("throw" === n.type) {
|
|
9511
|
+
var o = n.arg;
|
|
9512
|
+
resetTryEntry(r);
|
|
9493
9513
|
}
|
|
9494
|
-
return
|
|
9514
|
+
return o;
|
|
9495
9515
|
}
|
|
9496
9516
|
}
|
|
9497
9517
|
throw new Error("illegal catch attempt");
|
|
9498
9518
|
},
|
|
9499
|
-
delegateYield: function (
|
|
9519
|
+
delegateYield: function (e, r, n) {
|
|
9500
9520
|
return this.delegate = {
|
|
9501
|
-
iterator: values(
|
|
9502
|
-
resultName:
|
|
9503
|
-
nextLoc:
|
|
9504
|
-
}, "next" === this.method && (this.arg =
|
|
9505
|
-
}
|
|
9506
|
-
},
|
|
9521
|
+
iterator: values(e),
|
|
9522
|
+
resultName: r,
|
|
9523
|
+
nextLoc: n
|
|
9524
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
9525
|
+
}
|
|
9526
|
+
}, e;
|
|
9527
|
+
}
|
|
9528
|
+
function _toPrimitive(t, r) {
|
|
9529
|
+
if ("object" != typeof t || !t) return t;
|
|
9530
|
+
var e = t[Symbol.toPrimitive];
|
|
9531
|
+
if (void 0 !== e) {
|
|
9532
|
+
var i = e.call(t, r || "default");
|
|
9533
|
+
if ("object" != typeof i) return i;
|
|
9534
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
9535
|
+
}
|
|
9536
|
+
return ("string" === r ? String : Number)(t);
|
|
9537
|
+
}
|
|
9538
|
+
function _toPropertyKey(t) {
|
|
9539
|
+
var i = _toPrimitive(t, "string");
|
|
9540
|
+
return "symbol" == typeof i ? i : String(i);
|
|
9507
9541
|
}
|
|
9508
9542
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
9509
9543
|
try {
|
|
@@ -9541,7 +9575,7 @@
|
|
|
9541
9575
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
9542
9576
|
descriptor.configurable = true;
|
|
9543
9577
|
if ("value" in descriptor) descriptor.writable = true;
|
|
9544
|
-
Object.defineProperty(target, _toPropertyKey
|
|
9578
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
9545
9579
|
}
|
|
9546
9580
|
}
|
|
9547
9581
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -9628,20 +9662,6 @@
|
|
|
9628
9662
|
}
|
|
9629
9663
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9630
9664
|
}
|
|
9631
|
-
function _toPrimitive$1(input, hint) {
|
|
9632
|
-
if (typeof input !== "object" || input === null) return input;
|
|
9633
|
-
var prim = input[Symbol.toPrimitive];
|
|
9634
|
-
if (prim !== undefined) {
|
|
9635
|
-
var res = prim.call(input, hint || "default");
|
|
9636
|
-
if (typeof res !== "object") return res;
|
|
9637
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
9638
|
-
}
|
|
9639
|
-
return (hint === "string" ? String : Number)(input);
|
|
9640
|
-
}
|
|
9641
|
-
function _toPropertyKey$1(arg) {
|
|
9642
|
-
var key = _toPrimitive$1(arg, "string");
|
|
9643
|
-
return typeof key === "symbol" ? key : String(key);
|
|
9644
|
-
}
|
|
9645
9665
|
|
|
9646
9666
|
/*!
|
|
9647
9667
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
@@ -12736,7 +12756,6 @@
|
|
|
12736
12756
|
* @private
|
|
12737
12757
|
*/
|
|
12738
12758
|
};
|
|
12739
|
-
|
|
12740
12759
|
function nameToHex(color) {
|
|
12741
12760
|
if (typeof color !== 'string') return color;
|
|
12742
12761
|
var normalizedColorName = color.toLowerCase();
|
|
@@ -14708,6 +14727,11 @@
|
|
|
14708
14727
|
if (this.currentPageState !== newVal && oldVal !== newVal) {
|
|
14709
14728
|
this.setPage(newVal >= 0 ? newVal : 0);
|
|
14710
14729
|
}
|
|
14730
|
+
},
|
|
14731
|
+
isLoading: function isLoading(newVal, oldVal) {
|
|
14732
|
+
if (newVal !== oldVal) {
|
|
14733
|
+
this.$emit('loading', newVal);
|
|
14734
|
+
}
|
|
14711
14735
|
}
|
|
14712
14736
|
},
|
|
14713
14737
|
mounted: function mounted() {
|
|
@@ -15770,7 +15794,6 @@
|
|
|
15770
15794
|
}
|
|
15771
15795
|
block = block << 8 | charCode; // eslint-disable-line no-bitwise
|
|
15772
15796
|
}
|
|
15773
|
-
|
|
15774
15797
|
return output;
|
|
15775
15798
|
}
|
|
15776
15799
|
function validateRSQuery(query) {
|
|
@@ -15875,7 +15898,6 @@
|
|
|
15875
15898
|
// mongodb
|
|
15876
15899
|
ELASTICSEARCH: 'elasticsearch' // elasticsearch
|
|
15877
15900
|
};
|
|
15878
|
-
|
|
15879
15901
|
var dataTypes = {
|
|
15880
15902
|
ARRAY: 'array',
|
|
15881
15903
|
FUNCTION: 'function',
|
|
@@ -16161,7 +16183,6 @@
|
|
|
16161
16183
|
}) : transformedRequest.headers,
|
|
16162
16184
|
signal: signal // Attach the abort signal to the fetch request
|
|
16163
16185
|
}));
|
|
16164
|
-
|
|
16165
16186
|
var timeoutPromise = new Promise(function (_, rejectTP) {
|
|
16166
16187
|
if (httpRequestTimeout > 0) {
|
|
16167
16188
|
setTimeout(function () {
|
|
@@ -16657,7 +16678,6 @@
|
|
|
16657
16678
|
}
|
|
16658
16679
|
block = block << 8 | charCode; // eslint-disable-line no-bitwise
|
|
16659
16680
|
}
|
|
16660
|
-
|
|
16661
16681
|
return output;
|
|
16662
16682
|
}
|
|
16663
16683
|
function validateIndex(index) {
|
|
@@ -17782,11 +17802,14 @@
|
|
|
17782
17802
|
};
|
|
17783
17803
|
|
|
17784
17804
|
/**!
|
|
17785
|
-
* hotkeys-js v3.
|
|
17805
|
+
* hotkeys-js v3.13.2
|
|
17786
17806
|
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
|
|
17787
17807
|
*
|
|
17788
17808
|
* Copyright (c) 2023 kenny wong <wowohoo@qq.com>
|
|
17789
|
-
* https://
|
|
17809
|
+
* https://github.com/jaywcjlove/hotkeys-js.git
|
|
17810
|
+
*
|
|
17811
|
+
* @website: https://jaywcjlove.github.io/hotkeys-js
|
|
17812
|
+
|
|
17790
17813
|
* Licensed under the MIT license
|
|
17791
17814
|
*/
|
|
17792
17815
|
|
|
@@ -18008,7 +18031,6 @@
|
|
|
18008
18031
|
if (typeof keyCode === 'string') {
|
|
18009
18032
|
keyCode = code(keyCode); // 转换成键码
|
|
18010
18033
|
}
|
|
18011
|
-
|
|
18012
18034
|
return _downKeys.indexOf(keyCode) !== -1;
|
|
18013
18035
|
}
|
|
18014
18036
|
|
|
@@ -18052,7 +18074,7 @@
|
|
|
18052
18074
|
_mods[key] = false;
|
|
18053
18075
|
|
|
18054
18076
|
// 将修饰键重置为false
|
|
18055
|
-
for (var
|
|
18077
|
+
for (var _k in _modifier) if (_modifier[_k] === key) hotkeys[_k] = false;
|
|
18056
18078
|
}
|
|
18057
18079
|
}
|
|
18058
18080
|
function unbind(keysInfo) {
|
|
@@ -18194,8 +18216,8 @@
|
|
|
18194
18216
|
_mods[key] = true;
|
|
18195
18217
|
|
|
18196
18218
|
// 将特殊字符的key注册到 hotkeys 上
|
|
18197
|
-
for (var
|
|
18198
|
-
if (_modifier[
|
|
18219
|
+
for (var _k2 in _modifier) {
|
|
18220
|
+
if (_modifier[_k2] === key) hotkeys[_k2] = true;
|
|
18199
18221
|
}
|
|
18200
18222
|
if (!asterisk) return;
|
|
18201
18223
|
}
|
|
@@ -18269,6 +18291,7 @@
|
|
|
18269
18291
|
var keydown = true;
|
|
18270
18292
|
var splitKey = '+';
|
|
18271
18293
|
var capture = false;
|
|
18294
|
+
var single = false; // 单个callback
|
|
18272
18295
|
|
|
18273
18296
|
// 对为设定范围的判断
|
|
18274
18297
|
if (method === undefined && typeof option === 'function') {
|
|
@@ -18281,10 +18304,13 @@
|
|
|
18281
18304
|
if (option.keydown !== undefined) keydown = option.keydown; // eslint-disable-line
|
|
18282
18305
|
if (option.capture !== undefined) capture = option.capture; // eslint-disable-line
|
|
18283
18306
|
if (typeof option.splitKey === 'string') splitKey = option.splitKey; // eslint-disable-line
|
|
18307
|
+
if (option.single === true) single = true; // eslint-disable-line
|
|
18284
18308
|
}
|
|
18285
|
-
|
|
18286
18309
|
if (typeof option === 'string') scope = option;
|
|
18287
18310
|
|
|
18311
|
+
// 如果只允许单个callback,先unbind
|
|
18312
|
+
if (single) unbind(key, scope);
|
|
18313
|
+
|
|
18288
18314
|
// 对于每个快捷键进行处理
|
|
18289
18315
|
for (; i < keys.length; i++) {
|
|
18290
18316
|
key = keys[i].split(splitKey); // 按键列表
|
|
@@ -21717,7 +21743,6 @@
|
|
|
21717
21743
|
this.tShift.push(0);
|
|
21718
21744
|
this.lineMax = this.bMarks.length - 1; // don't count last fake line
|
|
21719
21745
|
}
|
|
21720
|
-
|
|
21721
21746
|
StateBlock.prototype.isEmpty = function isEmpty(line) {
|
|
21722
21747
|
return this.bMarks[line] + this.tShift[line] >= this.eMarks[line];
|
|
21723
21748
|
};
|
|
@@ -22583,7 +22608,6 @@
|
|
|
22583
22608
|
var lc = ch | 0x20; // to lower case
|
|
22584
22609
|
return lc >= 0x61 /* a */ && lc <= 0x7a /* z */;
|
|
22585
22610
|
}
|
|
22586
|
-
|
|
22587
22611
|
function htmlblock(state, startLine, endLine, silent) {
|
|
22588
22612
|
var ch,
|
|
22589
22613
|
match,
|
|
@@ -22976,7 +23000,6 @@
|
|
|
22976
23000
|
// go to the next loop iteration:
|
|
22977
23001
|
// insert DD tag and repeat checking
|
|
22978
23002
|
}
|
|
22979
|
-
|
|
22980
23003
|
if (nextLine >= endLine) {
|
|
22981
23004
|
break;
|
|
22982
23005
|
}
|
|
@@ -24414,7 +24437,6 @@
|
|
|
24414
24437
|
var lc = ch | 0x20; // to lower case
|
|
24415
24438
|
return lc >= 0x61 /* a */ && lc <= 0x7a /* z */;
|
|
24416
24439
|
}
|
|
24417
|
-
|
|
24418
24440
|
function htmltag(state, silent) {
|
|
24419
24441
|
var ch,
|
|
24420
24442
|
match,
|
|
@@ -24646,7 +24668,6 @@
|
|
|
24646
24668
|
highlight: null,
|
|
24647
24669
|
maxNesting: 20 // Internal protection, recursion limit
|
|
24648
24670
|
},
|
|
24649
|
-
|
|
24650
24671
|
components: {
|
|
24651
24672
|
core: {
|
|
24652
24673
|
rules: ['block', 'inline', 'references', 'replacements', 'smartquotes', 'references', 'abbr2', 'footnote_tail']
|
|
@@ -24688,7 +24709,6 @@
|
|
|
24688
24709
|
highlight: null,
|
|
24689
24710
|
maxNesting: 20 // Internal protection, recursion limit
|
|
24690
24711
|
},
|
|
24691
|
-
|
|
24692
24712
|
components: {
|
|
24693
24713
|
// Don't restrict core/block/inline rules
|
|
24694
24714
|
core: {},
|
|
@@ -24725,7 +24745,6 @@
|
|
|
24725
24745
|
highlight: null,
|
|
24726
24746
|
maxNesting: 20 // Internal protection, recursion limit
|
|
24727
24747
|
},
|
|
24728
|
-
|
|
24729
24748
|
components: {
|
|
24730
24749
|
core: {
|
|
24731
24750
|
rules: ['block', 'inline', 'references', 'abbr2']
|
|
@@ -25357,7 +25376,6 @@
|
|
|
25357
25376
|
// TODO: implement isMouseDown
|
|
25358
25377
|
// this.reset()
|
|
25359
25378
|
},
|
|
25360
|
-
|
|
25361
25379
|
click: onClick
|
|
25362
25380
|
};
|
|
25363
25381
|
},
|
|
@@ -25485,12 +25503,12 @@
|
|
|
25485
25503
|
/******/
|
|
25486
25504
|
}
|
|
25487
25505
|
/************************************************************************/
|
|
25488
|
-
/******/([/* 0 */
|
|
25506
|
+
/******/([( /* 0 */
|
|
25489
25507
|
/***/function (module, exports, __webpack_require__) {
|
|
25490
25508
|
module.exports = __webpack_require__(1);
|
|
25491
25509
|
|
|
25492
25510
|
/***/
|
|
25493
|
-
}, /* 1 */
|
|
25511
|
+
}), ( /* 1 */
|
|
25494
25512
|
/***/function (module, exports, __webpack_require__) {
|
|
25495
25513
|
|
|
25496
25514
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -25523,7 +25541,7 @@
|
|
|
25523
25541
|
});
|
|
25524
25542
|
|
|
25525
25543
|
/***/
|
|
25526
|
-
}, /* 2 */
|
|
25544
|
+
}), ( /* 2 */
|
|
25527
25545
|
/***/function (module, exports) {
|
|
25528
25546
|
|
|
25529
25547
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -25682,9 +25700,8 @@
|
|
|
25682
25700
|
|
|
25683
25701
|
/***/
|
|
25684
25702
|
}
|
|
25685
|
-
/******/]);
|
|
25703
|
+
/******/)]);
|
|
25686
25704
|
});
|
|
25687
|
-
|
|
25688
25705
|
unwrapExports(dist);
|
|
25689
25706
|
var dist_1 = dist.findAll;
|
|
25690
25707
|
|
|
@@ -27555,7 +27572,7 @@
|
|
|
27555
27572
|
if (results && results[0] && results[0].isFinal && results[0][0] && results[0][0].transcript && results[0][0].transcript.trim()) {
|
|
27556
27573
|
var _this$$refs2;
|
|
27557
27574
|
this.setValue(results[0][0].transcript.trim(), true);
|
|
27558
|
-
(_this$$refs2 = this.$refs) == null || (_this$$refs2 = _this$$refs2[this.$props.innerRef]) == null || (_this$$refs2 = _this$$refs2.$el) == null
|
|
27575
|
+
(_this$$refs2 = this.$refs) == null || (_this$$refs2 = _this$$refs2[this.$props.innerRef]) == null || (_this$$refs2 = _this$$refs2.$el) == null || _this$$refs2.focus(); // eslint-disable-line
|
|
27559
27576
|
}
|
|
27560
27577
|
},
|
|
27561
27578
|
triggerQuery: function triggerQuery(_ref2) {
|
|
@@ -27675,7 +27692,7 @@
|
|
|
27675
27692
|
// else Downshift probably is focusing the dropdown
|
|
27676
27693
|
// and not letting it close
|
|
27677
27694
|
// eslint-disable-next-line no-unused-expressions
|
|
27678
|
-
(_this$$refs3 = this.$refs) == null || (_this$$refs3 = _this$$refs3[this.$props.innerRef]) == null || (_this$$refs3 = _this$$refs3.el) == null
|
|
27695
|
+
(_this$$refs3 = this.$refs) == null || (_this$$refs3 = _this$$refs3[this.$props.innerRef]) == null || (_this$$refs3 = _this$$refs3.el) == null || _this$$refs3.blur();
|
|
27679
27696
|
} catch (e) {
|
|
27680
27697
|
console.error("Error: There was an error parsing the subAction for the featured suggestion with label, \"" + suggestion.label + "\"", e);
|
|
27681
27698
|
}
|
|
@@ -27994,7 +28011,7 @@
|
|
|
27994
28011
|
// already in an input
|
|
27995
28012
|
return;
|
|
27996
28013
|
}
|
|
27997
|
-
(_this$$refs4 = this.$refs) == null || (_this$$refs4 = _this$$refs4[this.$props.innerRef]) == null || (_this$$refs4 = _this$$refs4.$el) == null
|
|
28014
|
+
(_this$$refs4 = this.$refs) == null || (_this$$refs4 = _this$$refs4[this.$props.innerRef]) == null || (_this$$refs4 = _this$$refs4.$el) == null || _this$$refs4.focus(); // eslint-disable-line
|
|
27998
28015
|
},
|
|
27999
28016
|
listenForFocusShortcuts: function listenForFocusShortcuts() {
|
|
28000
28017
|
var _this11 = this;
|
|
@@ -30201,14 +30218,14 @@
|
|
|
30201
30218
|
if (selectAllLabel && selectAllLabel in currentValue) {
|
|
30202
30219
|
var _currentValue = currentValue,
|
|
30203
30220
|
del = _currentValue[selectAllLabel],
|
|
30204
|
-
obj = _objectWithoutPropertiesLoose(_currentValue, [selectAllLabel].map(_toPropertyKey
|
|
30221
|
+
obj = _objectWithoutPropertiesLoose(_currentValue, [selectAllLabel].map(_toPropertyKey));
|
|
30205
30222
|
currentValue = _extends({}, obj);
|
|
30206
30223
|
}
|
|
30207
30224
|
} else {
|
|
30208
30225
|
if (currentValue[value]) {
|
|
30209
30226
|
var _currentValue2 = currentValue,
|
|
30210
30227
|
_del = _currentValue2[value],
|
|
30211
|
-
rest = _objectWithoutPropertiesLoose(_currentValue2, [value].map(_toPropertyKey
|
|
30228
|
+
rest = _objectWithoutPropertiesLoose(_currentValue2, [value].map(_toPropertyKey));
|
|
30212
30229
|
currentValue = _extends({}, rest);
|
|
30213
30230
|
} else if (Array.isArray(value)) {
|
|
30214
30231
|
value.forEach(function (val) {
|
|
@@ -30220,7 +30237,7 @@
|
|
|
30220
30237
|
if (selectAllLabel && selectAllLabel in currentValue) {
|
|
30221
30238
|
var _currentValue3 = currentValue,
|
|
30222
30239
|
_del2 = _currentValue3[selectAllLabel],
|
|
30223
|
-
_obj = _objectWithoutPropertiesLoose(_currentValue3, [selectAllLabel].map(_toPropertyKey
|
|
30240
|
+
_obj = _objectWithoutPropertiesLoose(_currentValue3, [selectAllLabel].map(_toPropertyKey));
|
|
30224
30241
|
currentValue = _extends({}, _obj);
|
|
30225
30242
|
}
|
|
30226
30243
|
finalValues = Object.keys(currentValue);
|
|
@@ -33200,14 +33217,14 @@
|
|
|
33200
33217
|
if (selectAllLabel && selectAllLabel in currentValue) {
|
|
33201
33218
|
var _currentValue = currentValue,
|
|
33202
33219
|
del = _currentValue[selectAllLabel],
|
|
33203
|
-
obj = _objectWithoutPropertiesLoose(_currentValue, [selectAllLabel].map(_toPropertyKey
|
|
33220
|
+
obj = _objectWithoutPropertiesLoose(_currentValue, [selectAllLabel].map(_toPropertyKey));
|
|
33204
33221
|
currentValue = _extends({}, obj);
|
|
33205
33222
|
}
|
|
33206
33223
|
} else {
|
|
33207
33224
|
if (currentValue[value]) {
|
|
33208
33225
|
var _currentValue2 = currentValue,
|
|
33209
33226
|
_del = _currentValue2[value],
|
|
33210
|
-
rest = _objectWithoutPropertiesLoose(_currentValue2, [value].map(_toPropertyKey
|
|
33227
|
+
rest = _objectWithoutPropertiesLoose(_currentValue2, [value].map(_toPropertyKey));
|
|
33211
33228
|
currentValue = _extends({}, rest);
|
|
33212
33229
|
} else {
|
|
33213
33230
|
currentValue[value] = true;
|
|
@@ -33215,7 +33232,7 @@
|
|
|
33215
33232
|
if (selectAllLabel && selectAllLabel in currentValue) {
|
|
33216
33233
|
var _currentValue3 = currentValue,
|
|
33217
33234
|
_del2 = _currentValue3[selectAllLabel],
|
|
33218
|
-
_obj = _objectWithoutPropertiesLoose(_currentValue3, [selectAllLabel].map(_toPropertyKey
|
|
33235
|
+
_obj = _objectWithoutPropertiesLoose(_currentValue3, [selectAllLabel].map(_toPropertyKey));
|
|
33219
33236
|
currentValue = _extends({}, _obj);
|
|
33220
33237
|
}
|
|
33221
33238
|
finalValues = Object.keys(currentValue);
|
|
@@ -35956,7 +35973,7 @@
|
|
|
35956
35973
|
},
|
|
35957
35974
|
render: function render() {
|
|
35958
35975
|
var _this4 = this;
|
|
35959
|
-
if (!this.range || !this.currentValue) {
|
|
35976
|
+
if (!this.range || !this.currentValue || this.range.start === null || this.range.end === null || this.range.start === this.range.end) {
|
|
35960
35977
|
return null;
|
|
35961
35978
|
}
|
|
35962
35979
|
var _this$range = this.range,
|
|
@@ -35983,11 +36000,13 @@
|
|
|
35983
36000
|
"modelValue": [Math.floor(Math.max(start, _this4.currentValue[0])), Math.ceil(Math.min(end, _this4.currentValue[1]))],
|
|
35984
36001
|
"min": Math.floor(Math.min(start, _this4.currentValue[0])),
|
|
35985
36002
|
"max": Math.ceil(Math.max(end, _this4.currentValue[1])),
|
|
35986
|
-
"
|
|
36003
|
+
"onChange": _this4.handleSlider,
|
|
36004
|
+
"lazy": true,
|
|
35987
36005
|
"dotSize": 20,
|
|
35988
36006
|
"height": 4,
|
|
35989
36007
|
"enable-cross": false,
|
|
35990
|
-
"tooltip": "always"
|
|
36008
|
+
"tooltip": "always",
|
|
36009
|
+
"useKeyboard": false
|
|
35991
36010
|
}, _this4.$props.sliderOptions), null), _this4.labels ? vue.createVNode("div", {
|
|
35992
36011
|
"class": "label-container"
|
|
35993
36012
|
}, [vue.createVNode("label", {
|
|
@@ -36355,7 +36374,7 @@
|
|
|
36355
36374
|
});
|
|
36356
36375
|
var _selectedValues = selectedValues,
|
|
36357
36376
|
del = _selectedValues[item],
|
|
36358
|
-
selected = _objectWithoutPropertiesLoose(_selectedValues, [item].map(_toPropertyKey
|
|
36377
|
+
selected = _objectWithoutPropertiesLoose(_selectedValues, [item].map(_toPropertyKey));
|
|
36359
36378
|
selectedValues = selected;
|
|
36360
36379
|
} else {
|
|
36361
36380
|
var _extends2;
|
|
@@ -38147,9 +38166,15 @@
|
|
|
38147
38166
|
ctr: function ctr() {
|
|
38148
38167
|
return google.maps.Polyline;
|
|
38149
38168
|
},
|
|
38150
|
-
|
|
38169
|
+
emits: events,
|
|
38170
|
+
afterCreate: function afterCreate(inst) {
|
|
38151
38171
|
var _this = this;
|
|
38152
38172
|
var clearEvents = function clearEvents() {};
|
|
38173
|
+
events.forEach(function (event) {
|
|
38174
|
+
inst.addListener(event, function (payload) {
|
|
38175
|
+
_this.$emit(event, payload);
|
|
38176
|
+
});
|
|
38177
|
+
});
|
|
38153
38178
|
this.$watch('path', function (path) {
|
|
38154
38179
|
if (path) {
|
|
38155
38180
|
clearEvents();
|
|
@@ -38199,7 +38224,7 @@
|
|
|
38199
38224
|
noBind: true
|
|
38200
38225
|
}
|
|
38201
38226
|
};
|
|
38202
|
-
var events$1 = ['click', 'dblclick', 'drag', 'dragend', 'dragstart', 'mousedown', 'mousemove', 'mouseout', 'mouseover', 'mouseup', 'rightclick'];
|
|
38227
|
+
var events$1 = ['click', 'dblclick', 'drag', 'dragend', 'dragstart', 'mousedown', 'mousemove', 'mouseout', 'mouseover', 'mouseup', 'rightclick', 'paths_changed'];
|
|
38203
38228
|
var Polygon = buildComponent({
|
|
38204
38229
|
props: {
|
|
38205
38230
|
deepWatch: {
|
|
@@ -38213,6 +38238,7 @@
|
|
|
38213
38238
|
ctr: function ctr() {
|
|
38214
38239
|
return google.maps.Polygon;
|
|
38215
38240
|
},
|
|
38241
|
+
emits: events$1,
|
|
38216
38242
|
beforeCreate: function beforeCreate(options) {
|
|
38217
38243
|
if (!options.path) delete options.path;
|
|
38218
38244
|
if (!options.paths) delete options.paths;
|
|
@@ -38220,6 +38246,11 @@
|
|
|
38220
38246
|
afterCreate: function afterCreate(inst) {
|
|
38221
38247
|
var _this = this;
|
|
38222
38248
|
var clearEvents = function clearEvents() {};
|
|
38249
|
+
events$1.forEach(function (event) {
|
|
38250
|
+
inst.addListener(event, function (payload) {
|
|
38251
|
+
_this.$emit(event, payload);
|
|
38252
|
+
});
|
|
38253
|
+
});
|
|
38223
38254
|
|
|
38224
38255
|
// Watch paths, on our own, because we do not want to set either when it is
|
|
38225
38256
|
// empty
|
|
@@ -38312,7 +38343,16 @@
|
|
|
38312
38343
|
ctr: function ctr() {
|
|
38313
38344
|
return google.maps.Circle;
|
|
38314
38345
|
},
|
|
38315
|
-
events: events$2
|
|
38346
|
+
events: events$2,
|
|
38347
|
+
emits: events$2,
|
|
38348
|
+
afterCreate: function afterCreate(inst) {
|
|
38349
|
+
var _this = this;
|
|
38350
|
+
events$2.forEach(function (event) {
|
|
38351
|
+
inst.addListener(event, function (payload) {
|
|
38352
|
+
_this.$emit(event, payload);
|
|
38353
|
+
});
|
|
38354
|
+
});
|
|
38355
|
+
}
|
|
38316
38356
|
});
|
|
38317
38357
|
|
|
38318
38358
|
var props$4 = {
|
|
@@ -38340,7 +38380,16 @@
|
|
|
38340
38380
|
ctr: function ctr() {
|
|
38341
38381
|
return google.maps.Rectangle;
|
|
38342
38382
|
},
|
|
38343
|
-
events: events$3
|
|
38383
|
+
events: events$3,
|
|
38384
|
+
emits: events$3,
|
|
38385
|
+
afterCreate: function afterCreate(inst) {
|
|
38386
|
+
var _this = this;
|
|
38387
|
+
events$3.forEach(function (event) {
|
|
38388
|
+
inst.addListener(event, function (payload) {
|
|
38389
|
+
_this.$emit(event, payload);
|
|
38390
|
+
});
|
|
38391
|
+
});
|
|
38392
|
+
}
|
|
38344
38393
|
});
|
|
38345
38394
|
|
|
38346
38395
|
var props$5 = {
|
|
@@ -38456,10 +38505,9 @@
|
|
|
38456
38505
|
}
|
|
38457
38506
|
|
|
38458
38507
|
script.render = render;
|
|
38459
|
-
script.__file = "node_modules/vue-google-maps-community-fork/src/components/marker.vue";
|
|
38508
|
+
script.__file = "node_modules/@appbaseio/vue-google-maps-community-fork/src/components/marker.vue";
|
|
38460
38509
|
|
|
38461
|
-
|
|
38462
|
-
var fastDeepEqual = function equal(a, b) {
|
|
38510
|
+
function equal(a, b) {
|
|
38463
38511
|
if (a === b) return true;
|
|
38464
38512
|
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
38465
38513
|
if (a.constructor !== b.constructor) return false;
|
|
@@ -38470,6 +38518,32 @@
|
|
|
38470
38518
|
for (i = length; i-- !== 0;) if (!equal(a[i], b[i])) return false;
|
|
38471
38519
|
return true;
|
|
38472
38520
|
}
|
|
38521
|
+
if (a instanceof Map && b instanceof Map) {
|
|
38522
|
+
if (a.size !== b.size) return false;
|
|
38523
|
+
for (var _iterator = _createForOfIteratorHelperLoose(a.entries()), _step; !(_step = _iterator()).done;) {
|
|
38524
|
+
i = _step.value;
|
|
38525
|
+
if (!b.has(i[0])) return false;
|
|
38526
|
+
}
|
|
38527
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose(a.entries()), _step2; !(_step2 = _iterator2()).done;) {
|
|
38528
|
+
i = _step2.value;
|
|
38529
|
+
if (!equal(i[1], b.get(i[0]))) return false;
|
|
38530
|
+
}
|
|
38531
|
+
return true;
|
|
38532
|
+
}
|
|
38533
|
+
if (a instanceof Set && b instanceof Set) {
|
|
38534
|
+
if (a.size !== b.size) return false;
|
|
38535
|
+
for (var _iterator3 = _createForOfIteratorHelperLoose(a.entries()), _step3; !(_step3 = _iterator3()).done;) {
|
|
38536
|
+
i = _step3.value;
|
|
38537
|
+
if (!b.has(i[0])) return false;
|
|
38538
|
+
}
|
|
38539
|
+
return true;
|
|
38540
|
+
}
|
|
38541
|
+
if (ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
|
|
38542
|
+
length = a.length;
|
|
38543
|
+
if (length != b.length) return false;
|
|
38544
|
+
for (i = length; i-- !== 0;) if (a[i] !== b[i]) return false;
|
|
38545
|
+
return true;
|
|
38546
|
+
}
|
|
38473
38547
|
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
38474
38548
|
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
38475
38549
|
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
@@ -38486,254 +38560,16 @@
|
|
|
38486
38560
|
|
|
38487
38561
|
// true if both NaN, false otherwise
|
|
38488
38562
|
return a !== a && b !== b;
|
|
38489
|
-
}
|
|
38490
|
-
|
|
38491
|
-
var ARRAY_TYPES = [Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array];
|
|
38492
|
-
|
|
38493
|
-
/** @typedef {Int8ArrayConstructor | Uint8ArrayConstructor | Uint8ClampedArrayConstructor | Int16ArrayConstructor | Uint16ArrayConstructor | Int32ArrayConstructor | Uint32ArrayConstructor | Float32ArrayConstructor | Float64ArrayConstructor} TypedArrayConstructor */
|
|
38494
|
-
|
|
38495
|
-
var VERSION = 1; // serialized format version
|
|
38496
|
-
var HEADER_SIZE = 8;
|
|
38497
|
-
var KDBush = /*#__PURE__*/function () {
|
|
38498
|
-
/**
|
|
38499
|
-
* Creates an index from raw `ArrayBuffer` data.
|
|
38500
|
-
* @param {ArrayBuffer} data
|
|
38501
|
-
*/
|
|
38502
|
-
KDBush.from = function from(data) {
|
|
38503
|
-
if (!(data instanceof ArrayBuffer)) {
|
|
38504
|
-
throw new Error('Data must be an instance of ArrayBuffer.');
|
|
38505
|
-
}
|
|
38506
|
-
var _Uint8Array = new Uint8Array(data, 0, 2),
|
|
38507
|
-
magic = _Uint8Array[0],
|
|
38508
|
-
versionAndType = _Uint8Array[1];
|
|
38509
|
-
if (magic !== 0xdb) {
|
|
38510
|
-
throw new Error('Data does not appear to be in a KDBush format.');
|
|
38511
|
-
}
|
|
38512
|
-
var version = versionAndType >> 4;
|
|
38513
|
-
if (version !== VERSION) {
|
|
38514
|
-
throw new Error("Got v" + version + " data when expected v" + VERSION + ".");
|
|
38515
|
-
}
|
|
38516
|
-
var ArrayType = ARRAY_TYPES[versionAndType & 0x0f];
|
|
38517
|
-
if (!ArrayType) {
|
|
38518
|
-
throw new Error('Unrecognized array type.');
|
|
38519
|
-
}
|
|
38520
|
-
var _Uint16Array = new Uint16Array(data, 2, 1),
|
|
38521
|
-
nodeSize = _Uint16Array[0];
|
|
38522
|
-
var _Uint32Array = new Uint32Array(data, 4, 1),
|
|
38523
|
-
numItems = _Uint32Array[0];
|
|
38524
|
-
return new KDBush(numItems, nodeSize, ArrayType, data);
|
|
38525
|
-
}
|
|
38526
|
-
|
|
38527
|
-
/**
|
|
38528
|
-
* Creates an index that will hold a given number of items.
|
|
38529
|
-
* @param {number} numItems
|
|
38530
|
-
* @param {number} [nodeSize=64] Size of the KD-tree node (64 by default).
|
|
38531
|
-
* @param {TypedArrayConstructor} [ArrayType=Float64Array] The array type used for coordinates storage (`Float64Array` by default).
|
|
38532
|
-
* @param {ArrayBuffer} [data] (For internal use only)
|
|
38533
|
-
*/;
|
|
38534
|
-
function KDBush(numItems, nodeSize, ArrayType, data) {
|
|
38535
|
-
if (nodeSize === void 0) {
|
|
38536
|
-
nodeSize = 64;
|
|
38537
|
-
}
|
|
38538
|
-
if (ArrayType === void 0) {
|
|
38539
|
-
ArrayType = Float64Array;
|
|
38540
|
-
}
|
|
38541
|
-
if (isNaN(numItems) || numItems < 0) throw new Error("Unpexpected numItems value: " + numItems + ".");
|
|
38542
|
-
this.numItems = +numItems;
|
|
38543
|
-
this.nodeSize = Math.min(Math.max(+nodeSize, 2), 65535);
|
|
38544
|
-
this.ArrayType = ArrayType;
|
|
38545
|
-
this.IndexArrayType = numItems < 65536 ? Uint16Array : Uint32Array;
|
|
38546
|
-
var arrayTypeIndex = ARRAY_TYPES.indexOf(this.ArrayType);
|
|
38547
|
-
var coordsByteSize = numItems * 2 * this.ArrayType.BYTES_PER_ELEMENT;
|
|
38548
|
-
var idsByteSize = numItems * this.IndexArrayType.BYTES_PER_ELEMENT;
|
|
38549
|
-
var padCoords = (8 - idsByteSize % 8) % 8;
|
|
38550
|
-
if (arrayTypeIndex < 0) {
|
|
38551
|
-
throw new Error("Unexpected typed array class: " + ArrayType + ".");
|
|
38552
|
-
}
|
|
38553
|
-
if (data && data instanceof ArrayBuffer) {
|
|
38554
|
-
// reconstruct an index from a buffer
|
|
38555
|
-
this.data = data;
|
|
38556
|
-
this.ids = new this.IndexArrayType(this.data, HEADER_SIZE, numItems);
|
|
38557
|
-
this.coords = new this.ArrayType(this.data, HEADER_SIZE + idsByteSize + padCoords, numItems * 2);
|
|
38558
|
-
this._pos = numItems * 2;
|
|
38559
|
-
this._finished = true;
|
|
38560
|
-
} else {
|
|
38561
|
-
// initialize a new index
|
|
38562
|
-
this.data = new ArrayBuffer(HEADER_SIZE + coordsByteSize + idsByteSize + padCoords);
|
|
38563
|
-
this.ids = new this.IndexArrayType(this.data, HEADER_SIZE, numItems);
|
|
38564
|
-
this.coords = new this.ArrayType(this.data, HEADER_SIZE + idsByteSize + padCoords, numItems * 2);
|
|
38565
|
-
this._pos = 0;
|
|
38566
|
-
this._finished = false;
|
|
38567
|
-
|
|
38568
|
-
// set header
|
|
38569
|
-
new Uint8Array(this.data, 0, 2).set([0xdb, (VERSION << 4) + arrayTypeIndex]);
|
|
38570
|
-
new Uint16Array(this.data, 2, 1)[0] = nodeSize;
|
|
38571
|
-
new Uint32Array(this.data, 4, 1)[0] = numItems;
|
|
38572
|
-
}
|
|
38573
|
-
}
|
|
38574
|
-
|
|
38575
|
-
/**
|
|
38576
|
-
* Add a point to the index.
|
|
38577
|
-
* @param {number} x
|
|
38578
|
-
* @param {number} y
|
|
38579
|
-
* @returns {number} An incremental index associated with the added item (starting from `0`).
|
|
38580
|
-
*/
|
|
38581
|
-
var _proto = KDBush.prototype;
|
|
38582
|
-
_proto.add = function add(x, y) {
|
|
38583
|
-
var index = this._pos >> 1;
|
|
38584
|
-
this.ids[index] = index;
|
|
38585
|
-
this.coords[this._pos++] = x;
|
|
38586
|
-
this.coords[this._pos++] = y;
|
|
38587
|
-
return index;
|
|
38588
|
-
}
|
|
38589
|
-
|
|
38590
|
-
/**
|
|
38591
|
-
* Perform indexing of the added points.
|
|
38592
|
-
*/;
|
|
38593
|
-
_proto.finish = function finish() {
|
|
38594
|
-
var numAdded = this._pos >> 1;
|
|
38595
|
-
if (numAdded !== this.numItems) {
|
|
38596
|
-
throw new Error("Added " + numAdded + " items when expected " + this.numItems + ".");
|
|
38597
|
-
}
|
|
38598
|
-
// kd-sort both arrays for efficient search
|
|
38599
|
-
sort(this.ids, this.coords, this.nodeSize, 0, this.numItems - 1, 0);
|
|
38600
|
-
this._finished = true;
|
|
38601
|
-
return this;
|
|
38602
|
-
}
|
|
38603
|
-
|
|
38604
|
-
/**
|
|
38605
|
-
* Search the index for items within a given bounding box.
|
|
38606
|
-
* @param {number} minX
|
|
38607
|
-
* @param {number} minY
|
|
38608
|
-
* @param {number} maxX
|
|
38609
|
-
* @param {number} maxY
|
|
38610
|
-
* @returns {number[]} An array of indices correponding to the found items.
|
|
38611
|
-
*/;
|
|
38612
|
-
_proto.range = function range(minX, minY, maxX, maxY) {
|
|
38613
|
-
if (!this._finished) throw new Error('Data not yet indexed - call index.finish().');
|
|
38614
|
-
var ids = this.ids,
|
|
38615
|
-
coords = this.coords,
|
|
38616
|
-
nodeSize = this.nodeSize;
|
|
38617
|
-
var stack = [0, ids.length - 1, 0];
|
|
38618
|
-
var result = [];
|
|
38619
|
-
|
|
38620
|
-
// recursively search for items in range in the kd-sorted arrays
|
|
38621
|
-
while (stack.length) {
|
|
38622
|
-
var axis = stack.pop() || 0;
|
|
38623
|
-
var right = stack.pop() || 0;
|
|
38624
|
-
var left = stack.pop() || 0;
|
|
38625
|
-
|
|
38626
|
-
// if we reached "tree node", search linearly
|
|
38627
|
-
if (right - left <= nodeSize) {
|
|
38628
|
-
for (var i = left; i <= right; i++) {
|
|
38629
|
-
var _x = coords[2 * i];
|
|
38630
|
-
var _y = coords[2 * i + 1];
|
|
38631
|
-
if (_x >= minX && _x <= maxX && _y >= minY && _y <= maxY) result.push(ids[i]);
|
|
38632
|
-
}
|
|
38633
|
-
continue;
|
|
38634
|
-
}
|
|
38635
|
-
|
|
38636
|
-
// otherwise find the middle index
|
|
38637
|
-
var m = left + right >> 1;
|
|
38638
|
-
|
|
38639
|
-
// include the middle item if it's in range
|
|
38640
|
-
var x = coords[2 * m];
|
|
38641
|
-
var y = coords[2 * m + 1];
|
|
38642
|
-
if (x >= minX && x <= maxX && y >= minY && y <= maxY) result.push(ids[m]);
|
|
38643
|
-
|
|
38644
|
-
// queue search in halves that intersect the query
|
|
38645
|
-
if (axis === 0 ? minX <= x : minY <= y) {
|
|
38646
|
-
stack.push(left);
|
|
38647
|
-
stack.push(m - 1);
|
|
38648
|
-
stack.push(1 - axis);
|
|
38649
|
-
}
|
|
38650
|
-
if (axis === 0 ? maxX >= x : maxY >= y) {
|
|
38651
|
-
stack.push(m + 1);
|
|
38652
|
-
stack.push(right);
|
|
38653
|
-
stack.push(1 - axis);
|
|
38654
|
-
}
|
|
38655
|
-
}
|
|
38656
|
-
return result;
|
|
38657
|
-
}
|
|
38658
|
-
|
|
38659
|
-
/**
|
|
38660
|
-
* Search the index for items within a given radius.
|
|
38661
|
-
* @param {number} qx
|
|
38662
|
-
* @param {number} qy
|
|
38663
|
-
* @param {number} r Query radius.
|
|
38664
|
-
* @returns {number[]} An array of indices correponding to the found items.
|
|
38665
|
-
*/;
|
|
38666
|
-
_proto.within = function within(qx, qy, r) {
|
|
38667
|
-
if (!this._finished) throw new Error('Data not yet indexed - call index.finish().');
|
|
38668
|
-
var ids = this.ids,
|
|
38669
|
-
coords = this.coords,
|
|
38670
|
-
nodeSize = this.nodeSize;
|
|
38671
|
-
var stack = [0, ids.length - 1, 0];
|
|
38672
|
-
var result = [];
|
|
38673
|
-
var r2 = r * r;
|
|
38674
|
-
|
|
38675
|
-
// recursively search for items within radius in the kd-sorted arrays
|
|
38676
|
-
while (stack.length) {
|
|
38677
|
-
var axis = stack.pop() || 0;
|
|
38678
|
-
var right = stack.pop() || 0;
|
|
38679
|
-
var left = stack.pop() || 0;
|
|
38680
|
-
|
|
38681
|
-
// if we reached "tree node", search linearly
|
|
38682
|
-
if (right - left <= nodeSize) {
|
|
38683
|
-
for (var i = left; i <= right; i++) {
|
|
38684
|
-
if (sqDist(coords[2 * i], coords[2 * i + 1], qx, qy) <= r2) result.push(ids[i]);
|
|
38685
|
-
}
|
|
38686
|
-
continue;
|
|
38687
|
-
}
|
|
38688
|
-
|
|
38689
|
-
// otherwise find the middle index
|
|
38690
|
-
var m = left + right >> 1;
|
|
38691
|
-
|
|
38692
|
-
// include the middle item if it's in range
|
|
38693
|
-
var x = coords[2 * m];
|
|
38694
|
-
var y = coords[2 * m + 1];
|
|
38695
|
-
if (sqDist(x, y, qx, qy) <= r2) result.push(ids[m]);
|
|
38563
|
+
}
|
|
38696
38564
|
|
|
38697
|
-
|
|
38698
|
-
if (axis === 0 ? qx - r <= x : qy - r <= y) {
|
|
38699
|
-
stack.push(left);
|
|
38700
|
-
stack.push(m - 1);
|
|
38701
|
-
stack.push(1 - axis);
|
|
38702
|
-
}
|
|
38703
|
-
if (axis === 0 ? qx + r >= x : qy + r >= y) {
|
|
38704
|
-
stack.push(m + 1);
|
|
38705
|
-
stack.push(right);
|
|
38706
|
-
stack.push(1 - axis);
|
|
38707
|
-
}
|
|
38708
|
-
}
|
|
38709
|
-
return result;
|
|
38710
|
-
};
|
|
38711
|
-
return KDBush;
|
|
38712
|
-
}();
|
|
38713
|
-
function sort(ids, coords, nodeSize, left, right, axis) {
|
|
38565
|
+
function sortKD(ids, coords, nodeSize, left, right, depth) {
|
|
38714
38566
|
if (right - left <= nodeSize) return;
|
|
38715
|
-
var m = left + right >> 1;
|
|
38716
|
-
|
|
38717
|
-
|
|
38718
|
-
|
|
38719
|
-
select(ids, coords, m, left, right, axis);
|
|
38720
|
-
|
|
38721
|
-
// recursively kd-sort first half and second half on the opposite axis
|
|
38722
|
-
sort(ids, coords, nodeSize, left, m - 1, 1 - axis);
|
|
38723
|
-
sort(ids, coords, nodeSize, m + 1, right, 1 - axis);
|
|
38567
|
+
var m = left + right >> 1;
|
|
38568
|
+
select(ids, coords, m, left, right, depth % 2);
|
|
38569
|
+
sortKD(ids, coords, nodeSize, left, m - 1, depth + 1);
|
|
38570
|
+
sortKD(ids, coords, nodeSize, m + 1, right, depth + 1);
|
|
38724
38571
|
}
|
|
38725
|
-
|
|
38726
|
-
/**
|
|
38727
|
-
* Custom Floyd-Rivest selection algorithm: sort ids and coords so that
|
|
38728
|
-
* [left..k-1] items are smaller than k-th item (on either x or y axis)
|
|
38729
|
-
* @param {Uint16Array | Uint32Array} ids
|
|
38730
|
-
* @param {InstanceType<TypedArrayConstructor>} coords
|
|
38731
|
-
* @param {number} k
|
|
38732
|
-
* @param {number} left
|
|
38733
|
-
* @param {number} right
|
|
38734
|
-
* @param {number} axis
|
|
38735
|
-
*/
|
|
38736
|
-
function select(ids, coords, k, left, right, axis) {
|
|
38572
|
+
function select(ids, coords, k, left, right, inc) {
|
|
38737
38573
|
while (right > left) {
|
|
38738
38574
|
if (right - left > 600) {
|
|
38739
38575
|
var n = right - left + 1;
|
|
@@ -38743,21 +38579,21 @@
|
|
|
38743
38579
|
var sd = 0.5 * Math.sqrt(z * s * (n - s) / n) * (m - n / 2 < 0 ? -1 : 1);
|
|
38744
38580
|
var newLeft = Math.max(left, Math.floor(k - m * s / n + sd));
|
|
38745
38581
|
var newRight = Math.min(right, Math.floor(k + (n - m) * s / n + sd));
|
|
38746
|
-
select(ids, coords, k, newLeft, newRight,
|
|
38582
|
+
select(ids, coords, k, newLeft, newRight, inc);
|
|
38747
38583
|
}
|
|
38748
|
-
var t = coords[2 * k +
|
|
38584
|
+
var t = coords[2 * k + inc];
|
|
38749
38585
|
var i = left;
|
|
38750
38586
|
var j = right;
|
|
38751
38587
|
swapItem(ids, coords, left, k);
|
|
38752
|
-
if (coords[2 * right +
|
|
38588
|
+
if (coords[2 * right + inc] > t) swapItem(ids, coords, left, right);
|
|
38753
38589
|
while (i < j) {
|
|
38754
38590
|
swapItem(ids, coords, i, j);
|
|
38755
38591
|
i++;
|
|
38756
38592
|
j--;
|
|
38757
|
-
while (coords[2 * i +
|
|
38758
|
-
while (coords[2 * j +
|
|
38593
|
+
while (coords[2 * i + inc] < t) i++;
|
|
38594
|
+
while (coords[2 * j + inc] > t) j--;
|
|
38759
38595
|
}
|
|
38760
|
-
if (coords[2 * left +
|
|
38596
|
+
if (coords[2 * left + inc] === t) swapItem(ids, coords, left, j);else {
|
|
38761
38597
|
j++;
|
|
38762
38598
|
swapItem(ids, coords, j, right);
|
|
38763
38599
|
}
|
|
@@ -38765,42 +38601,132 @@
|
|
|
38765
38601
|
if (k <= j) right = j - 1;
|
|
38766
38602
|
}
|
|
38767
38603
|
}
|
|
38768
|
-
|
|
38769
|
-
/**
|
|
38770
|
-
* @param {Uint16Array | Uint32Array} ids
|
|
38771
|
-
* @param {InstanceType<TypedArrayConstructor>} coords
|
|
38772
|
-
* @param {number} i
|
|
38773
|
-
* @param {number} j
|
|
38774
|
-
*/
|
|
38775
38604
|
function swapItem(ids, coords, i, j) {
|
|
38776
38605
|
swap(ids, i, j);
|
|
38777
38606
|
swap(coords, 2 * i, 2 * j);
|
|
38778
38607
|
swap(coords, 2 * i + 1, 2 * j + 1);
|
|
38779
38608
|
}
|
|
38780
|
-
|
|
38781
|
-
/**
|
|
38782
|
-
* @param {InstanceType<TypedArrayConstructor>} arr
|
|
38783
|
-
* @param {number} i
|
|
38784
|
-
* @param {number} j
|
|
38785
|
-
*/
|
|
38786
38609
|
function swap(arr, i, j) {
|
|
38787
38610
|
var tmp = arr[i];
|
|
38788
38611
|
arr[i] = arr[j];
|
|
38789
38612
|
arr[j] = tmp;
|
|
38790
38613
|
}
|
|
38791
38614
|
|
|
38792
|
-
|
|
38793
|
-
|
|
38794
|
-
|
|
38795
|
-
|
|
38796
|
-
|
|
38797
|
-
|
|
38615
|
+
function range(ids, coords, minX, minY, maxX, maxY, nodeSize) {
|
|
38616
|
+
var stack = [0, ids.length - 1, 0];
|
|
38617
|
+
var result = [];
|
|
38618
|
+
var x, y;
|
|
38619
|
+
while (stack.length) {
|
|
38620
|
+
var axis = stack.pop();
|
|
38621
|
+
var right = stack.pop();
|
|
38622
|
+
var left = stack.pop();
|
|
38623
|
+
if (right - left <= nodeSize) {
|
|
38624
|
+
for (var i = left; i <= right; i++) {
|
|
38625
|
+
x = coords[2 * i];
|
|
38626
|
+
y = coords[2 * i + 1];
|
|
38627
|
+
if (x >= minX && x <= maxX && y >= minY && y <= maxY) result.push(ids[i]);
|
|
38628
|
+
}
|
|
38629
|
+
continue;
|
|
38630
|
+
}
|
|
38631
|
+
var m = Math.floor((left + right) / 2);
|
|
38632
|
+
x = coords[2 * m];
|
|
38633
|
+
y = coords[2 * m + 1];
|
|
38634
|
+
if (x >= minX && x <= maxX && y >= minY && y <= maxY) result.push(ids[m]);
|
|
38635
|
+
var nextAxis = (axis + 1) % 2;
|
|
38636
|
+
if (axis === 0 ? minX <= x : minY <= y) {
|
|
38637
|
+
stack.push(left);
|
|
38638
|
+
stack.push(m - 1);
|
|
38639
|
+
stack.push(nextAxis);
|
|
38640
|
+
}
|
|
38641
|
+
if (axis === 0 ? maxX >= x : maxY >= y) {
|
|
38642
|
+
stack.push(m + 1);
|
|
38643
|
+
stack.push(right);
|
|
38644
|
+
stack.push(nextAxis);
|
|
38645
|
+
}
|
|
38646
|
+
}
|
|
38647
|
+
return result;
|
|
38648
|
+
}
|
|
38649
|
+
|
|
38650
|
+
function within(ids, coords, qx, qy, r, nodeSize) {
|
|
38651
|
+
var stack = [0, ids.length - 1, 0];
|
|
38652
|
+
var result = [];
|
|
38653
|
+
var r2 = r * r;
|
|
38654
|
+
while (stack.length) {
|
|
38655
|
+
var axis = stack.pop();
|
|
38656
|
+
var right = stack.pop();
|
|
38657
|
+
var left = stack.pop();
|
|
38658
|
+
if (right - left <= nodeSize) {
|
|
38659
|
+
for (var i = left; i <= right; i++) {
|
|
38660
|
+
if (sqDist(coords[2 * i], coords[2 * i + 1], qx, qy) <= r2) result.push(ids[i]);
|
|
38661
|
+
}
|
|
38662
|
+
continue;
|
|
38663
|
+
}
|
|
38664
|
+
var m = Math.floor((left + right) / 2);
|
|
38665
|
+
var x = coords[2 * m];
|
|
38666
|
+
var y = coords[2 * m + 1];
|
|
38667
|
+
if (sqDist(x, y, qx, qy) <= r2) result.push(ids[m]);
|
|
38668
|
+
var nextAxis = (axis + 1) % 2;
|
|
38669
|
+
if (axis === 0 ? qx - r <= x : qy - r <= y) {
|
|
38670
|
+
stack.push(left);
|
|
38671
|
+
stack.push(m - 1);
|
|
38672
|
+
stack.push(nextAxis);
|
|
38673
|
+
}
|
|
38674
|
+
if (axis === 0 ? qx + r >= x : qy + r >= y) {
|
|
38675
|
+
stack.push(m + 1);
|
|
38676
|
+
stack.push(right);
|
|
38677
|
+
stack.push(nextAxis);
|
|
38678
|
+
}
|
|
38679
|
+
}
|
|
38680
|
+
return result;
|
|
38681
|
+
}
|
|
38798
38682
|
function sqDist(ax, ay, bx, by) {
|
|
38799
38683
|
var dx = ax - bx;
|
|
38800
38684
|
var dy = ay - by;
|
|
38801
38685
|
return dx * dx + dy * dy;
|
|
38802
38686
|
}
|
|
38803
38687
|
|
|
38688
|
+
var defaultGetX = function defaultGetX(p) {
|
|
38689
|
+
return p[0];
|
|
38690
|
+
};
|
|
38691
|
+
var defaultGetY = function defaultGetY(p) {
|
|
38692
|
+
return p[1];
|
|
38693
|
+
};
|
|
38694
|
+
var KDBush = /*#__PURE__*/function () {
|
|
38695
|
+
function KDBush(points, getX, getY, nodeSize, ArrayType) {
|
|
38696
|
+
if (getX === void 0) {
|
|
38697
|
+
getX = defaultGetX;
|
|
38698
|
+
}
|
|
38699
|
+
if (getY === void 0) {
|
|
38700
|
+
getY = defaultGetY;
|
|
38701
|
+
}
|
|
38702
|
+
if (nodeSize === void 0) {
|
|
38703
|
+
nodeSize = 64;
|
|
38704
|
+
}
|
|
38705
|
+
if (ArrayType === void 0) {
|
|
38706
|
+
ArrayType = Float64Array;
|
|
38707
|
+
}
|
|
38708
|
+
this.nodeSize = nodeSize;
|
|
38709
|
+
this.points = points;
|
|
38710
|
+
var IndexArrayType = points.length < 65536 ? Uint16Array : Uint32Array;
|
|
38711
|
+
var ids = this.ids = new IndexArrayType(points.length);
|
|
38712
|
+
var coords = this.coords = new ArrayType(points.length * 2);
|
|
38713
|
+
for (var i = 0; i < points.length; i++) {
|
|
38714
|
+
ids[i] = i;
|
|
38715
|
+
coords[2 * i] = getX(points[i]);
|
|
38716
|
+
coords[2 * i + 1] = getY(points[i]);
|
|
38717
|
+
}
|
|
38718
|
+
sortKD(ids, coords, nodeSize, 0, ids.length - 1, 0);
|
|
38719
|
+
}
|
|
38720
|
+
var _proto = KDBush.prototype;
|
|
38721
|
+
_proto.range = function range$1(minX, minY, maxX, maxY) {
|
|
38722
|
+
return range(this.ids, this.coords, minX, minY, maxX, maxY, this.nodeSize);
|
|
38723
|
+
};
|
|
38724
|
+
_proto.within = function within$1(x, y, r) {
|
|
38725
|
+
return within(this.ids, this.coords, x, y, r, this.nodeSize);
|
|
38726
|
+
};
|
|
38727
|
+
return KDBush;
|
|
38728
|
+
}();
|
|
38729
|
+
|
|
38804
38730
|
var defaultOptions = {
|
|
38805
38731
|
minZoom: 0,
|
|
38806
38732
|
// min zoom to generate clusters on
|
|
@@ -38828,62 +38754,36 @@
|
|
|
38828
38754
|
return props;
|
|
38829
38755
|
} // props => ({sum: props.my_value})
|
|
38830
38756
|
};
|
|
38831
|
-
|
|
38832
38757
|
var fround = Math.fround || function (tmp) {
|
|
38833
38758
|
return function (x) {
|
|
38834
38759
|
tmp[0] = +x;
|
|
38835
38760
|
return tmp[0];
|
|
38836
38761
|
};
|
|
38837
38762
|
}(new Float32Array(1));
|
|
38838
|
-
var OFFSET_ZOOM = 2;
|
|
38839
|
-
var OFFSET_ID = 3;
|
|
38840
|
-
var OFFSET_PARENT = 4;
|
|
38841
|
-
var OFFSET_NUM = 5;
|
|
38842
|
-
var OFFSET_PROP = 6;
|
|
38843
38763
|
var Supercluster = /*#__PURE__*/function () {
|
|
38844
38764
|
function Supercluster(options) {
|
|
38845
|
-
this.options =
|
|
38765
|
+
this.options = extend(Object.create(defaultOptions), options);
|
|
38846
38766
|
this.trees = new Array(this.options.maxZoom + 1);
|
|
38847
|
-
this.stride = this.options.reduce ? 7 : 6;
|
|
38848
|
-
this.clusterProps = [];
|
|
38849
38767
|
}
|
|
38850
38768
|
var _proto = Supercluster.prototype;
|
|
38851
38769
|
_proto.load = function load(points) {
|
|
38852
38770
|
var _this$options = this.options,
|
|
38853
38771
|
log = _this$options.log,
|
|
38854
38772
|
minZoom = _this$options.minZoom,
|
|
38855
|
-
maxZoom = _this$options.maxZoom
|
|
38773
|
+
maxZoom = _this$options.maxZoom,
|
|
38774
|
+
nodeSize = _this$options.nodeSize;
|
|
38856
38775
|
if (log) console.time('total time');
|
|
38857
38776
|
var timerId = "prepare " + points.length + " points";
|
|
38858
38777
|
if (log) console.time(timerId);
|
|
38859
38778
|
this.points = points;
|
|
38860
38779
|
|
|
38861
38780
|
// generate a cluster object for each point and index input points into a KD-tree
|
|
38862
|
-
var
|
|
38781
|
+
var clusters = [];
|
|
38863
38782
|
for (var i = 0; i < points.length; i++) {
|
|
38864
|
-
|
|
38865
|
-
|
|
38866
|
-
var _p$geometry$coordinat = p.geometry.coordinates,
|
|
38867
|
-
lng = _p$geometry$coordinat[0],
|
|
38868
|
-
lat = _p$geometry$coordinat[1];
|
|
38869
|
-
var x = fround(lngX(lng));
|
|
38870
|
-
var y = fround(latY(lat));
|
|
38871
|
-
// store internal point/cluster data in flat numeric arrays for performance
|
|
38872
|
-
data.push(x, y,
|
|
38873
|
-
// projected point coordinates
|
|
38874
|
-
Infinity,
|
|
38875
|
-
// the last zoom the point was processed at
|
|
38876
|
-
i,
|
|
38877
|
-
// index of the source feature in the original input array
|
|
38878
|
-
-1,
|
|
38879
|
-
// parent cluster id
|
|
38880
|
-
1 // number of points in a cluster
|
|
38881
|
-
);
|
|
38882
|
-
|
|
38883
|
-
if (this.options.reduce) data.push(0); // noop
|
|
38783
|
+
if (!points[i].geometry) continue;
|
|
38784
|
+
clusters.push(createPointCluster(points[i], i));
|
|
38884
38785
|
}
|
|
38885
|
-
|
|
38886
|
-
var tree = this.trees[maxZoom + 1] = this._createTree(data);
|
|
38786
|
+
this.trees[maxZoom + 1] = new KDBush(clusters, getX, getY, nodeSize, Float32Array);
|
|
38887
38787
|
if (log) console.timeEnd(timerId);
|
|
38888
38788
|
|
|
38889
38789
|
// cluster points on max zoom, then cluster the results on previous zoom, etc.;
|
|
@@ -38892,8 +38792,9 @@
|
|
|
38892
38792
|
var now = +Date.now();
|
|
38893
38793
|
|
|
38894
38794
|
// create a new set of clusters for the zoom and index them with a KD-tree
|
|
38895
|
-
|
|
38896
|
-
|
|
38795
|
+
clusters = this._cluster(clusters, z);
|
|
38796
|
+
this.trees[z] = new KDBush(clusters, getX, getY, nodeSize, Float32Array);
|
|
38797
|
+
if (log) console.log('z%d: %d clusters in %dms', z, clusters.length, +Date.now() - now);
|
|
38897
38798
|
}
|
|
38898
38799
|
if (log) console.timeEnd('total time');
|
|
38899
38800
|
return this;
|
|
@@ -38913,12 +38814,11 @@
|
|
|
38913
38814
|
}
|
|
38914
38815
|
var tree = this.trees[this._limitZoom(zoom)];
|
|
38915
38816
|
var ids = tree.range(lngX(minLng), latY(maxLat), lngX(maxLng), latY(minLat));
|
|
38916
|
-
var data = tree.data;
|
|
38917
38817
|
var clusters = [];
|
|
38918
38818
|
for (var _iterator = _createForOfIteratorHelperLoose(ids), _step; !(_step = _iterator()).done;) {
|
|
38919
38819
|
var id = _step.value;
|
|
38920
|
-
var
|
|
38921
|
-
clusters.push(
|
|
38820
|
+
var c = tree.points[id];
|
|
38821
|
+
clusters.push(c.numPoints ? getClusterJSON(c) : this.points[c.index]);
|
|
38922
38822
|
}
|
|
38923
38823
|
return clusters;
|
|
38924
38824
|
};
|
|
@@ -38926,20 +38826,18 @@
|
|
|
38926
38826
|
var originId = this._getOriginId(clusterId);
|
|
38927
38827
|
var originZoom = this._getOriginZoom(clusterId);
|
|
38928
38828
|
var errorMsg = 'No cluster with the specified id.';
|
|
38929
|
-
var
|
|
38930
|
-
if (!
|
|
38931
|
-
var
|
|
38932
|
-
if (
|
|
38829
|
+
var index = this.trees[originZoom];
|
|
38830
|
+
if (!index) throw new Error(errorMsg);
|
|
38831
|
+
var origin = index.points[originId];
|
|
38832
|
+
if (!origin) throw new Error(errorMsg);
|
|
38933
38833
|
var r = this.options.radius / (this.options.extent * Math.pow(2, originZoom - 1));
|
|
38934
|
-
var
|
|
38935
|
-
var y = data[originId * this.stride + 1];
|
|
38936
|
-
var ids = tree.within(x, y, r);
|
|
38834
|
+
var ids = index.within(origin.x, origin.y, r);
|
|
38937
38835
|
var children = [];
|
|
38938
38836
|
for (var _iterator2 = _createForOfIteratorHelperLoose(ids), _step2; !(_step2 = _iterator2()).done;) {
|
|
38939
38837
|
var id = _step2.value;
|
|
38940
|
-
var
|
|
38941
|
-
if (
|
|
38942
|
-
children.push(
|
|
38838
|
+
var c = index.points[id];
|
|
38839
|
+
if (c.parentId === clusterId) {
|
|
38840
|
+
children.push(c.numPoints ? getClusterJSON(c) : this.points[c.index]);
|
|
38943
38841
|
}
|
|
38944
38842
|
}
|
|
38945
38843
|
if (children.length === 0) throw new Error(errorMsg);
|
|
@@ -38964,12 +38862,12 @@
|
|
|
38964
38862
|
var tile = {
|
|
38965
38863
|
features: []
|
|
38966
38864
|
};
|
|
38967
|
-
this._addTileFeatures(tree.range((x - p) / z2, top, (x + 1 + p) / z2, bottom), tree.
|
|
38865
|
+
this._addTileFeatures(tree.range((x - p) / z2, top, (x + 1 + p) / z2, bottom), tree.points, x, y, z2, tile);
|
|
38968
38866
|
if (x === 0) {
|
|
38969
|
-
this._addTileFeatures(tree.range(1 - p / z2, top, 1, bottom), tree.
|
|
38867
|
+
this._addTileFeatures(tree.range(1 - p / z2, top, 1, bottom), tree.points, z2, y, z2, tile);
|
|
38970
38868
|
}
|
|
38971
38869
|
if (x === z2 - 1) {
|
|
38972
|
-
this._addTileFeatures(tree.range(0, top, p / z2, bottom), tree.
|
|
38870
|
+
this._addTileFeatures(tree.range(0, top, p / z2, bottom), tree.points, -1, y, z2, tile);
|
|
38973
38871
|
}
|
|
38974
38872
|
return tile.features.length ? tile : null;
|
|
38975
38873
|
};
|
|
@@ -39008,33 +38906,23 @@
|
|
|
39008
38906
|
}
|
|
39009
38907
|
return skipped;
|
|
39010
38908
|
};
|
|
39011
|
-
_proto.
|
|
39012
|
-
var tree = new KDBush(data.length / this.stride | 0, this.options.nodeSize, Float32Array);
|
|
39013
|
-
for (var i = 0; i < data.length; i += this.stride) tree.add(data[i], data[i + 1]);
|
|
39014
|
-
tree.finish();
|
|
39015
|
-
tree.data = data;
|
|
39016
|
-
return tree;
|
|
39017
|
-
};
|
|
39018
|
-
_proto._addTileFeatures = function _addTileFeatures(ids, data, x, y, z2, tile) {
|
|
38909
|
+
_proto._addTileFeatures = function _addTileFeatures(ids, points, x, y, z2, tile) {
|
|
39019
38910
|
for (var _iterator4 = _createForOfIteratorHelperLoose(ids), _step4; !(_step4 = _iterator4()).done;) {
|
|
39020
38911
|
var i = _step4.value;
|
|
39021
|
-
var
|
|
39022
|
-
var isCluster =
|
|
38912
|
+
var c = points[i];
|
|
38913
|
+
var isCluster = c.numPoints;
|
|
39023
38914
|
var tags = void 0,
|
|
39024
38915
|
px = void 0,
|
|
39025
38916
|
py = void 0;
|
|
39026
38917
|
if (isCluster) {
|
|
39027
|
-
tags = getClusterProperties(
|
|
39028
|
-
px =
|
|
39029
|
-
py =
|
|
38918
|
+
tags = getClusterProperties(c);
|
|
38919
|
+
px = c.x;
|
|
38920
|
+
py = c.y;
|
|
39030
38921
|
} else {
|
|
39031
|
-
var p = this.points[
|
|
38922
|
+
var p = this.points[c.index];
|
|
39032
38923
|
tags = p.properties;
|
|
39033
|
-
|
|
39034
|
-
|
|
39035
|
-
lat = _p$geometry$coordinat2[1];
|
|
39036
|
-
px = lngX(lng);
|
|
39037
|
-
py = latY(lat);
|
|
38924
|
+
px = lngX(p.geometry.coordinates[0]);
|
|
38925
|
+
py = latY(p.geometry.coordinates[1]);
|
|
39038
38926
|
}
|
|
39039
38927
|
var f = {
|
|
39040
38928
|
type: 1,
|
|
@@ -39044,12 +38932,14 @@
|
|
|
39044
38932
|
|
|
39045
38933
|
// assign id
|
|
39046
38934
|
var id = void 0;
|
|
39047
|
-
if (isCluster
|
|
39048
|
-
|
|
39049
|
-
|
|
39050
|
-
|
|
38935
|
+
if (isCluster) {
|
|
38936
|
+
id = c.id;
|
|
38937
|
+
} else if (this.options.generateId) {
|
|
38938
|
+
// optionally generate id
|
|
38939
|
+
id = c.index;
|
|
38940
|
+
} else if (this.points[c.index].id) {
|
|
39051
38941
|
// keep id if already assigned
|
|
39052
|
-
id = this.points[
|
|
38942
|
+
id = this.points[c.index].id;
|
|
39053
38943
|
}
|
|
39054
38944
|
if (id !== undefined) f.id = id;
|
|
39055
38945
|
tile.features.push(f);
|
|
@@ -39058,84 +38948,76 @@
|
|
|
39058
38948
|
_proto._limitZoom = function _limitZoom(z) {
|
|
39059
38949
|
return Math.max(this.options.minZoom, Math.min(Math.floor(+z), this.options.maxZoom + 1));
|
|
39060
38950
|
};
|
|
39061
|
-
_proto._cluster = function _cluster(
|
|
38951
|
+
_proto._cluster = function _cluster(points, zoom) {
|
|
38952
|
+
var clusters = [];
|
|
39062
38953
|
var _this$options3 = this.options,
|
|
39063
38954
|
radius = _this$options3.radius,
|
|
39064
38955
|
extent = _this$options3.extent,
|
|
39065
38956
|
reduce = _this$options3.reduce,
|
|
39066
38957
|
minPoints = _this$options3.minPoints;
|
|
39067
38958
|
var r = radius / (extent * Math.pow(2, zoom));
|
|
39068
|
-
var data = tree.data;
|
|
39069
|
-
var nextData = [];
|
|
39070
|
-
var stride = this.stride;
|
|
39071
38959
|
|
|
39072
38960
|
// loop through each point
|
|
39073
|
-
for (var i = 0; i <
|
|
38961
|
+
for (var i = 0; i < points.length; i++) {
|
|
38962
|
+
var p = points[i];
|
|
39074
38963
|
// if we've already visited the point at this zoom level, skip it
|
|
39075
|
-
if (
|
|
39076
|
-
|
|
38964
|
+
if (p.zoom <= zoom) continue;
|
|
38965
|
+
p.zoom = zoom;
|
|
39077
38966
|
|
|
39078
38967
|
// find all nearby points
|
|
39079
|
-
var
|
|
39080
|
-
var
|
|
39081
|
-
var
|
|
39082
|
-
var numPointsOrigin = data[i + OFFSET_NUM];
|
|
38968
|
+
var tree = this.trees[zoom + 1];
|
|
38969
|
+
var neighborIds = tree.within(p.x, p.y, r);
|
|
38970
|
+
var numPointsOrigin = p.numPoints || 1;
|
|
39083
38971
|
var numPoints = numPointsOrigin;
|
|
39084
38972
|
|
|
39085
38973
|
// count the number of points in a potential cluster
|
|
39086
38974
|
for (var _iterator5 = _createForOfIteratorHelperLoose(neighborIds), _step5; !(_step5 = _iterator5()).done;) {
|
|
39087
38975
|
var _neighborId2 = _step5.value;
|
|
39088
|
-
var
|
|
38976
|
+
var _b2 = tree.points[_neighborId2];
|
|
39089
38977
|
// filter out neighbors that are already processed
|
|
39090
|
-
if (
|
|
38978
|
+
if (_b2.zoom > zoom) numPoints += _b2.numPoints || 1;
|
|
39091
38979
|
}
|
|
39092
38980
|
|
|
39093
38981
|
// if there were neighbors to merge, and there are enough points to form a cluster
|
|
39094
38982
|
if (numPoints > numPointsOrigin && numPoints >= minPoints) {
|
|
39095
|
-
var wx = x * numPointsOrigin;
|
|
39096
|
-
var wy = y * numPointsOrigin;
|
|
39097
|
-
var clusterProperties =
|
|
39098
|
-
var clusterPropIndex = -1;
|
|
38983
|
+
var wx = p.x * numPointsOrigin;
|
|
38984
|
+
var wy = p.y * numPointsOrigin;
|
|
38985
|
+
var clusterProperties = reduce && numPointsOrigin > 1 ? this._map(p, true) : null;
|
|
39099
38986
|
|
|
39100
38987
|
// encode both zoom and point index on which the cluster originated -- offset by total length of features
|
|
39101
|
-
var id = (
|
|
38988
|
+
var id = (i << 5) + (zoom + 1) + this.points.length;
|
|
39102
38989
|
for (var _iterator6 = _createForOfIteratorHelperLoose(neighborIds), _step6; !(_step6 = _iterator6()).done;) {
|
|
39103
38990
|
var neighborId = _step6.value;
|
|
39104
|
-
var
|
|
39105
|
-
if (
|
|
39106
|
-
|
|
39107
|
-
|
|
39108
|
-
var numPoints2 =
|
|
39109
|
-
wx +=
|
|
39110
|
-
wy +=
|
|
39111
|
-
|
|
38991
|
+
var b = tree.points[neighborId];
|
|
38992
|
+
if (b.zoom <= zoom) continue;
|
|
38993
|
+
b.zoom = zoom; // save the zoom (so it doesn't get processed twice)
|
|
38994
|
+
|
|
38995
|
+
var numPoints2 = b.numPoints || 1;
|
|
38996
|
+
wx += b.x * numPoints2; // accumulate coordinates for calculating weighted center
|
|
38997
|
+
wy += b.y * numPoints2;
|
|
38998
|
+
b.parentId = id;
|
|
39112
38999
|
if (reduce) {
|
|
39113
|
-
if (!clusterProperties)
|
|
39114
|
-
|
|
39115
|
-
clusterPropIndex = this.clusterProps.length;
|
|
39116
|
-
this.clusterProps.push(clusterProperties);
|
|
39117
|
-
}
|
|
39118
|
-
reduce(clusterProperties, this._map(data, k));
|
|
39000
|
+
if (!clusterProperties) clusterProperties = this._map(p, true);
|
|
39001
|
+
reduce(clusterProperties, this._map(b));
|
|
39119
39002
|
}
|
|
39120
39003
|
}
|
|
39121
|
-
|
|
39122
|
-
|
|
39123
|
-
if (reduce) nextData.push(clusterPropIndex);
|
|
39004
|
+
p.parentId = id;
|
|
39005
|
+
clusters.push(createCluster(wx / numPoints, wy / numPoints, id, numPoints, clusterProperties));
|
|
39124
39006
|
} else {
|
|
39125
39007
|
// left points as unclustered
|
|
39126
|
-
|
|
39008
|
+
clusters.push(p);
|
|
39127
39009
|
if (numPoints > 1) {
|
|
39128
39010
|
for (var _iterator7 = _createForOfIteratorHelperLoose(neighborIds), _step7; !(_step7 = _iterator7()).done;) {
|
|
39129
39011
|
var _neighborId = _step7.value;
|
|
39130
|
-
var
|
|
39131
|
-
if (
|
|
39132
|
-
|
|
39133
|
-
|
|
39012
|
+
var _b = tree.points[_neighborId];
|
|
39013
|
+
if (_b.zoom <= zoom) continue;
|
|
39014
|
+
_b.zoom = zoom;
|
|
39015
|
+
clusters.push(_b);
|
|
39134
39016
|
}
|
|
39135
39017
|
}
|
|
39136
39018
|
}
|
|
39137
39019
|
}
|
|
39138
|
-
return
|
|
39020
|
+
return clusters;
|
|
39139
39021
|
}
|
|
39140
39022
|
|
|
39141
39023
|
// get index of the point from which the cluster originated
|
|
@@ -39149,36 +39031,63 @@
|
|
|
39149
39031
|
_proto._getOriginZoom = function _getOriginZoom(clusterId) {
|
|
39150
39032
|
return (clusterId - this.points.length) % 32;
|
|
39151
39033
|
};
|
|
39152
|
-
_proto._map = function _map(
|
|
39153
|
-
if (
|
|
39154
|
-
|
|
39155
|
-
return clone ? Object.assign({}, props) : props;
|
|
39034
|
+
_proto._map = function _map(point, clone) {
|
|
39035
|
+
if (point.numPoints) {
|
|
39036
|
+
return clone ? extend({}, point.properties) : point.properties;
|
|
39156
39037
|
}
|
|
39157
|
-
var original = this.points[
|
|
39038
|
+
var original = this.points[point.index].properties;
|
|
39158
39039
|
var result = this.options.map(original);
|
|
39159
|
-
return clone && result === original ?
|
|
39040
|
+
return clone && result === original ? extend({}, result) : result;
|
|
39160
39041
|
};
|
|
39161
39042
|
return Supercluster;
|
|
39162
39043
|
}();
|
|
39163
|
-
function
|
|
39044
|
+
function createCluster(x, y, id, numPoints, properties) {
|
|
39045
|
+
return {
|
|
39046
|
+
x: fround(x),
|
|
39047
|
+
// weighted cluster center; round for consistency with Float32Array index
|
|
39048
|
+
y: fround(y),
|
|
39049
|
+
zoom: Infinity,
|
|
39050
|
+
// the last zoom the cluster was processed at
|
|
39051
|
+
id: id,
|
|
39052
|
+
// encodes index of the first child of the cluster and its zoom level
|
|
39053
|
+
parentId: -1,
|
|
39054
|
+
// parent cluster id
|
|
39055
|
+
numPoints: numPoints,
|
|
39056
|
+
properties: properties
|
|
39057
|
+
};
|
|
39058
|
+
}
|
|
39059
|
+
function createPointCluster(p, id) {
|
|
39060
|
+
var _p$geometry$coordinat = p.geometry.coordinates,
|
|
39061
|
+
x = _p$geometry$coordinat[0],
|
|
39062
|
+
y = _p$geometry$coordinat[1];
|
|
39063
|
+
return {
|
|
39064
|
+
x: fround(lngX(x)),
|
|
39065
|
+
// projected point coordinates
|
|
39066
|
+
y: fround(latY(y)),
|
|
39067
|
+
zoom: Infinity,
|
|
39068
|
+
// the last zoom the point was processed at
|
|
39069
|
+
index: id,
|
|
39070
|
+
// index of the source feature in the original input array,
|
|
39071
|
+
parentId: -1 // parent cluster id
|
|
39072
|
+
};
|
|
39073
|
+
}
|
|
39074
|
+
function getClusterJSON(cluster) {
|
|
39164
39075
|
return {
|
|
39165
39076
|
type: 'Feature',
|
|
39166
|
-
id:
|
|
39167
|
-
properties: getClusterProperties(
|
|
39077
|
+
id: cluster.id,
|
|
39078
|
+
properties: getClusterProperties(cluster),
|
|
39168
39079
|
geometry: {
|
|
39169
39080
|
type: 'Point',
|
|
39170
|
-
coordinates: [xLng(
|
|
39081
|
+
coordinates: [xLng(cluster.x), yLat(cluster.y)]
|
|
39171
39082
|
}
|
|
39172
39083
|
};
|
|
39173
39084
|
}
|
|
39174
|
-
function getClusterProperties(
|
|
39175
|
-
var count =
|
|
39085
|
+
function getClusterProperties(cluster) {
|
|
39086
|
+
var count = cluster.numPoints;
|
|
39176
39087
|
var abbrev = count >= 10000 ? Math.round(count / 1000) + "k" : count >= 1000 ? Math.round(count / 100) / 10 + "k" : count;
|
|
39177
|
-
|
|
39178
|
-
var properties = propIndex === -1 ? {} : Object.assign({}, clusterProps[propIndex]);
|
|
39179
|
-
return Object.assign(properties, {
|
|
39088
|
+
return extend(extend({}, cluster.properties), {
|
|
39180
39089
|
cluster: true,
|
|
39181
|
-
cluster_id:
|
|
39090
|
+
cluster_id: cluster.id,
|
|
39182
39091
|
point_count: count,
|
|
39183
39092
|
point_count_abbreviated: abbrev
|
|
39184
39093
|
});
|
|
@@ -39202,6 +39111,16 @@
|
|
|
39202
39111
|
var y2 = (180 - y * 360) * Math.PI / 180;
|
|
39203
39112
|
return 360 * Math.atan(Math.exp(y2)) / Math.PI - 90;
|
|
39204
39113
|
}
|
|
39114
|
+
function extend(dest, src) {
|
|
39115
|
+
for (var id in src) dest[id] = src[id];
|
|
39116
|
+
return dest;
|
|
39117
|
+
}
|
|
39118
|
+
function getX(p) {
|
|
39119
|
+
return p.x;
|
|
39120
|
+
}
|
|
39121
|
+
function getY(p) {
|
|
39122
|
+
return p.y;
|
|
39123
|
+
}
|
|
39205
39124
|
|
|
39206
39125
|
/*! *****************************************************************************
|
|
39207
39126
|
Copyright (c) Microsoft Corporation.
|
|
@@ -39227,67 +39146,6 @@
|
|
|
39227
39146
|
return t;
|
|
39228
39147
|
}
|
|
39229
39148
|
|
|
39230
|
-
/**
|
|
39231
|
-
* Copyright 2023 Google LLC
|
|
39232
|
-
*
|
|
39233
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
39234
|
-
* you may not use this file except in compliance with the License.
|
|
39235
|
-
* You may obtain a copy of the License at
|
|
39236
|
-
*
|
|
39237
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
39238
|
-
*
|
|
39239
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
39240
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
39241
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
39242
|
-
* See the License for the specific language governing permissions and
|
|
39243
|
-
* limitations under the License.
|
|
39244
|
-
*/
|
|
39245
|
-
var MarkerUtils = /*#__PURE__*/function () {
|
|
39246
|
-
function MarkerUtils() {}
|
|
39247
|
-
MarkerUtils.isAdvancedMarkerAvailable = function isAdvancedMarkerAvailable(map) {
|
|
39248
|
-
return google.maps.marker && map.getMapCapabilities().isAdvancedMarkersAvailable === true;
|
|
39249
|
-
};
|
|
39250
|
-
MarkerUtils.isAdvancedMarker = function isAdvancedMarker(marker) {
|
|
39251
|
-
return google.maps.marker && marker instanceof google.maps.marker.AdvancedMarkerElement;
|
|
39252
|
-
};
|
|
39253
|
-
MarkerUtils.setMap = function setMap(marker, map) {
|
|
39254
|
-
if (this.isAdvancedMarker(marker)) {
|
|
39255
|
-
marker.map = map;
|
|
39256
|
-
} else {
|
|
39257
|
-
marker.setMap(map);
|
|
39258
|
-
}
|
|
39259
|
-
};
|
|
39260
|
-
MarkerUtils.getPosition = function getPosition(marker) {
|
|
39261
|
-
// SuperClusterAlgorithm.calculate expects a LatLng instance so we fake it for Adv Markers
|
|
39262
|
-
if (this.isAdvancedMarker(marker)) {
|
|
39263
|
-
if (marker.position) {
|
|
39264
|
-
if (marker.position instanceof google.maps.LatLng) {
|
|
39265
|
-
return marker.position;
|
|
39266
|
-
}
|
|
39267
|
-
// since we can't cast to LatLngLiteral for reasons =(
|
|
39268
|
-
if (marker.position.lat && marker.position.lng) {
|
|
39269
|
-
return new google.maps.LatLng(marker.position.lat, marker.position.lng);
|
|
39270
|
-
}
|
|
39271
|
-
}
|
|
39272
|
-
return new google.maps.LatLng(null);
|
|
39273
|
-
}
|
|
39274
|
-
return marker.getPosition();
|
|
39275
|
-
};
|
|
39276
|
-
MarkerUtils.getVisible = function getVisible(marker) {
|
|
39277
|
-
if (this.isAdvancedMarker(marker)) {
|
|
39278
|
-
/**
|
|
39279
|
-
* Always return true for Advanced Markers because the clusterer
|
|
39280
|
-
* uses getVisible as a way to count legacy markers not as an actual
|
|
39281
|
-
* indicator of visibility for some reason. Even when markers are hidden
|
|
39282
|
-
* Marker.getVisible returns `true` and this is used to set the marker count
|
|
39283
|
-
* on the cluster. See the behavior of Cluster.count
|
|
39284
|
-
*/
|
|
39285
|
-
return true;
|
|
39286
|
-
}
|
|
39287
|
-
return marker.getVisible();
|
|
39288
|
-
};
|
|
39289
|
-
return MarkerUtils;
|
|
39290
|
-
}();
|
|
39291
39149
|
/**
|
|
39292
39150
|
* Copyright 2021 Google LLC
|
|
39293
39151
|
*
|
|
@@ -39328,8 +39186,8 @@
|
|
|
39328
39186
|
*/;
|
|
39329
39187
|
_proto["delete"] = function _delete() {
|
|
39330
39188
|
if (this.marker) {
|
|
39331
|
-
|
|
39332
|
-
this.marker
|
|
39189
|
+
this.marker.setMap(null);
|
|
39190
|
+
delete this.marker;
|
|
39333
39191
|
}
|
|
39334
39192
|
this.markers.length = 0;
|
|
39335
39193
|
};
|
|
@@ -39337,14 +39195,11 @@
|
|
|
39337
39195
|
key: "bounds",
|
|
39338
39196
|
get: function get() {
|
|
39339
39197
|
if (this.markers.length === 0 && !this._position) {
|
|
39340
|
-
return;
|
|
39341
|
-
}
|
|
39342
|
-
var bounds = new google.maps.LatLngBounds(this._position, this._position);
|
|
39343
|
-
for (var _iterator = _createForOfIteratorHelperLoose(this.markers), _step; !(_step = _iterator()).done;) {
|
|
39344
|
-
var marker = _step.value;
|
|
39345
|
-
bounds.extend(MarkerUtils.getPosition(marker));
|
|
39198
|
+
return undefined;
|
|
39346
39199
|
}
|
|
39347
|
-
return bounds
|
|
39200
|
+
return this.markers.reduce(function (bounds, marker) {
|
|
39201
|
+
return bounds.extend(marker.getPosition());
|
|
39202
|
+
}, new google.maps.LatLngBounds(this._position, this._position));
|
|
39348
39203
|
}
|
|
39349
39204
|
}, {
|
|
39350
39205
|
key: "position",
|
|
@@ -39358,7 +39213,7 @@
|
|
|
39358
39213
|
key: "count",
|
|
39359
39214
|
get: function get() {
|
|
39360
39215
|
return this.markers.filter(function (m) {
|
|
39361
|
-
return
|
|
39216
|
+
return m.getVisible();
|
|
39362
39217
|
}).length;
|
|
39363
39218
|
}
|
|
39364
39219
|
}]);
|
|
@@ -39396,7 +39251,7 @@
|
|
|
39396
39251
|
* ```typescript
|
|
39397
39252
|
* cluster({markers, map}: AlgorithmInput): Cluster[] {
|
|
39398
39253
|
* if (shouldBypassClustering(map)) {
|
|
39399
|
-
* return this.noop({markers})
|
|
39254
|
+
* return this.noop({markers, map})
|
|
39400
39255
|
* }
|
|
39401
39256
|
* }
|
|
39402
39257
|
* ```
|
|
@@ -39414,7 +39269,7 @@
|
|
|
39414
39269
|
var _noop = function _noop(markers) {
|
|
39415
39270
|
var clusters = markers.map(function (marker) {
|
|
39416
39271
|
return new Cluster({
|
|
39417
|
-
position:
|
|
39272
|
+
position: marker.getPosition(),
|
|
39418
39273
|
markers: [marker]
|
|
39419
39274
|
});
|
|
39420
39275
|
});
|
|
@@ -39451,33 +39306,28 @@
|
|
|
39451
39306
|
_this4 = _AbstractAlgorithm3.call(this, {
|
|
39452
39307
|
maxZoom: maxZoom
|
|
39453
39308
|
}) || this;
|
|
39454
|
-
_this4.state = {
|
|
39455
|
-
zoom: -1
|
|
39456
|
-
};
|
|
39457
39309
|
_this4.superCluster = new Supercluster(Object.assign({
|
|
39458
39310
|
maxZoom: _this4.maxZoom,
|
|
39459
39311
|
radius: radius
|
|
39460
39312
|
}, options));
|
|
39313
|
+
_this4.state = {
|
|
39314
|
+
zoom: null
|
|
39315
|
+
};
|
|
39461
39316
|
return _this4;
|
|
39462
39317
|
}
|
|
39463
39318
|
var _proto6 = SuperClusterAlgorithm.prototype;
|
|
39464
39319
|
_proto6.calculate = function calculate(input) {
|
|
39465
39320
|
var changed = false;
|
|
39466
|
-
|
|
39467
|
-
zoom: input.map.getZoom()
|
|
39468
|
-
};
|
|
39469
|
-
if (!fastDeepEqual(input.markers, this.markers)) {
|
|
39321
|
+
if (!equal(input.markers, this.markers)) {
|
|
39470
39322
|
changed = true;
|
|
39471
39323
|
// TODO use proxy to avoid copy?
|
|
39472
39324
|
this.markers = [].concat(input.markers);
|
|
39473
39325
|
var points = this.markers.map(function (marker) {
|
|
39474
|
-
var position = MarkerUtils.getPosition(marker);
|
|
39475
|
-
var coordinates = [position.lng(), position.lat()];
|
|
39476
39326
|
return {
|
|
39477
39327
|
type: "Feature",
|
|
39478
39328
|
geometry: {
|
|
39479
39329
|
type: "Point",
|
|
39480
|
-
coordinates:
|
|
39330
|
+
coordinates: [marker.getPosition().lng(), marker.getPosition().lat()]
|
|
39481
39331
|
},
|
|
39482
39332
|
properties: {
|
|
39483
39333
|
marker: marker
|
|
@@ -39486,9 +39336,12 @@
|
|
|
39486
39336
|
});
|
|
39487
39337
|
this.superCluster.load(points);
|
|
39488
39338
|
}
|
|
39339
|
+
var state = {
|
|
39340
|
+
zoom: input.map.getZoom()
|
|
39341
|
+
};
|
|
39489
39342
|
if (!changed) {
|
|
39490
|
-
if (this.state.zoom
|
|
39491
|
-
changed = !
|
|
39343
|
+
if (this.state.zoom > this.maxZoom && state.zoom > this.maxZoom) ;else {
|
|
39344
|
+
changed = changed || !equal(this.state, state);
|
|
39492
39345
|
}
|
|
39493
39346
|
}
|
|
39494
39347
|
this.state = state;
|
|
@@ -39501,11 +39354,8 @@
|
|
|
39501
39354
|
};
|
|
39502
39355
|
};
|
|
39503
39356
|
_proto6.cluster = function cluster(_ref10) {
|
|
39504
|
-
var _this5 = this;
|
|
39505
39357
|
var map = _ref10.map;
|
|
39506
|
-
return this.superCluster.getClusters([-180, -90, 180, 90], Math.round(map.getZoom())).map(
|
|
39507
|
-
return _this5.transformCluster(feature);
|
|
39508
|
-
});
|
|
39358
|
+
return this.superCluster.getClusters([-180, -90, 180, 90], Math.round(map.getZoom())).map(this.transformCluster.bind(this));
|
|
39509
39359
|
};
|
|
39510
39360
|
_proto6.transformCluster = function transformCluster(_ref11) {
|
|
39511
39361
|
var _ref11$geometry$coord = _ref11.geometry.coordinates,
|
|
@@ -39517,17 +39367,18 @@
|
|
|
39517
39367
|
markers: this.superCluster.getLeaves(properties.cluster_id, Infinity).map(function (leaf) {
|
|
39518
39368
|
return leaf.properties.marker;
|
|
39519
39369
|
}),
|
|
39520
|
-
position: {
|
|
39370
|
+
position: new google.maps.LatLng({
|
|
39521
39371
|
lat: lat,
|
|
39522
39372
|
lng: lng
|
|
39523
|
-
}
|
|
39373
|
+
})
|
|
39374
|
+
});
|
|
39375
|
+
} else {
|
|
39376
|
+
var marker = properties.marker;
|
|
39377
|
+
return new Cluster({
|
|
39378
|
+
markers: [marker],
|
|
39379
|
+
position: marker.getPosition()
|
|
39524
39380
|
});
|
|
39525
39381
|
}
|
|
39526
|
-
var marker = properties.marker;
|
|
39527
|
-
return new Cluster({
|
|
39528
|
-
markers: [marker],
|
|
39529
|
-
position: MarkerUtils.getPosition(marker)
|
|
39530
|
-
});
|
|
39531
39382
|
};
|
|
39532
39383
|
return SuperClusterAlgorithm;
|
|
39533
39384
|
}(AbstractAlgorithm);
|
|
@@ -39571,7 +39422,7 @@
|
|
|
39571
39422
|
};
|
|
39572
39423
|
var DefaultRenderer = /*#__PURE__*/function () {
|
|
39573
39424
|
function DefaultRenderer() {}
|
|
39574
|
-
var
|
|
39425
|
+
var _proto7 = DefaultRenderer.prototype;
|
|
39575
39426
|
/**
|
|
39576
39427
|
* The default render function for the library used by {@link MarkerClusterer}.
|
|
39577
39428
|
*
|
|
@@ -39610,41 +39461,29 @@
|
|
|
39610
39461
|
* });
|
|
39611
39462
|
* ```
|
|
39612
39463
|
*/
|
|
39613
|
-
|
|
39614
|
-
var count =
|
|
39615
|
-
position =
|
|
39464
|
+
_proto7.render = function render(_ref12, stats) {
|
|
39465
|
+
var count = _ref12.count,
|
|
39466
|
+
position = _ref12.position;
|
|
39616
39467
|
// change color if this cluster has more markers than the mean cluster
|
|
39617
39468
|
var color = count > Math.max(10, stats.clusters.markers.mean) ? "#ff0000" : "#0000ff";
|
|
39618
|
-
// create svg
|
|
39619
|
-
var svg = "<svg fill=\"" + color + "\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 240 240\"
|
|
39620
|
-
|
|
39621
|
-
|
|
39622
|
-
zIndex = Number(google.maps.Marker.MAX_ZINDEX) + count;
|
|
39623
|
-
if (MarkerUtils.isAdvancedMarkerAvailable(map)) {
|
|
39624
|
-
// create cluster SVG element
|
|
39625
|
-
var div = document.createElement("div");
|
|
39626
|
-
div.innerHTML = svg;
|
|
39627
|
-
var svgEl = div.firstElementChild;
|
|
39628
|
-
svgEl.setAttribute("transform", "translate(0 25)");
|
|
39629
|
-
var _clusterOptions = {
|
|
39630
|
-
map: map,
|
|
39631
|
-
position: position,
|
|
39632
|
-
zIndex: zIndex,
|
|
39633
|
-
title: title,
|
|
39634
|
-
content: svgEl
|
|
39635
|
-
};
|
|
39636
|
-
return new google.maps.marker.AdvancedMarkerElement(_clusterOptions);
|
|
39637
|
-
}
|
|
39638
|
-
var clusterOptions = {
|
|
39469
|
+
// create svg url with fill color
|
|
39470
|
+
var svg = window.btoa("\n <svg fill=\"" + color + "\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 240 240\">\n <circle cx=\"120\" cy=\"120\" opacity=\".6\" r=\"70\" />\n <circle cx=\"120\" cy=\"120\" opacity=\".3\" r=\"90\" />\n <circle cx=\"120\" cy=\"120\" opacity=\".2\" r=\"110\" />\n </svg>");
|
|
39471
|
+
// create marker using svg icon
|
|
39472
|
+
return new google.maps.Marker({
|
|
39639
39473
|
position: position,
|
|
39640
|
-
zIndex: zIndex,
|
|
39641
|
-
title: title,
|
|
39642
39474
|
icon: {
|
|
39643
|
-
url: "data:image/svg+xml;base64," +
|
|
39644
|
-
|
|
39645
|
-
}
|
|
39646
|
-
|
|
39647
|
-
|
|
39475
|
+
url: "data:image/svg+xml;base64," + svg,
|
|
39476
|
+
scaledSize: new google.maps.Size(45, 45)
|
|
39477
|
+
},
|
|
39478
|
+
label: {
|
|
39479
|
+
text: String(count),
|
|
39480
|
+
color: "rgba(255,255,255,0.9)",
|
|
39481
|
+
fontSize: "12px"
|
|
39482
|
+
},
|
|
39483
|
+
title: "Cluster of " + count + " markers",
|
|
39484
|
+
// adjust zIndex to be above other markers
|
|
39485
|
+
zIndex: Number(google.maps.Marker.MAX_ZINDEX) + count
|
|
39486
|
+
});
|
|
39648
39487
|
};
|
|
39649
39488
|
return DefaultRenderer;
|
|
39650
39489
|
}();
|
|
@@ -39671,7 +39510,7 @@
|
|
|
39671
39510
|
* @ignore
|
|
39672
39511
|
*/
|
|
39673
39512
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
39674
|
-
function extend(type1, type2) {
|
|
39513
|
+
function extend$1(type1, type2) {
|
|
39675
39514
|
/* istanbul ignore next */
|
|
39676
39515
|
// eslint-disable-next-line prefer-const
|
|
39677
39516
|
for (var property in type2.prototype) {
|
|
@@ -39687,7 +39526,7 @@
|
|
|
39687
39526
|
// because it might not always be available when the code is defined so we
|
|
39688
39527
|
// look for it at the last possible moment. If it doesn't exist now then
|
|
39689
39528
|
// there is no point going ahead :)
|
|
39690
|
-
extend(OverlayViewSafe, google.maps.OverlayView);
|
|
39529
|
+
extend$1(OverlayViewSafe, google.maps.OverlayView);
|
|
39691
39530
|
};
|
|
39692
39531
|
/**
|
|
39693
39532
|
* Copyright 2021 Google LLC
|
|
@@ -39720,32 +39559,32 @@
|
|
|
39720
39559
|
*/
|
|
39721
39560
|
var MarkerClusterer = /*#__PURE__*/function (_OverlayViewSafe) {
|
|
39722
39561
|
_inheritsLoose(MarkerClusterer, _OverlayViewSafe);
|
|
39723
|
-
function MarkerClusterer(
|
|
39724
|
-
var
|
|
39725
|
-
var map =
|
|
39726
|
-
|
|
39727
|
-
markers =
|
|
39728
|
-
|
|
39729
|
-
algorithmOptions =
|
|
39730
|
-
|
|
39731
|
-
algorithm =
|
|
39732
|
-
|
|
39733
|
-
renderer =
|
|
39734
|
-
|
|
39735
|
-
onClusterClick =
|
|
39736
|
-
|
|
39737
|
-
|
|
39738
|
-
|
|
39739
|
-
|
|
39740
|
-
|
|
39741
|
-
|
|
39562
|
+
function MarkerClusterer(_ref13) {
|
|
39563
|
+
var _this5;
|
|
39564
|
+
var map = _ref13.map,
|
|
39565
|
+
_ref13$markers = _ref13.markers,
|
|
39566
|
+
markers = _ref13$markers === void 0 ? [] : _ref13$markers,
|
|
39567
|
+
_ref13$algorithmOptio = _ref13.algorithmOptions,
|
|
39568
|
+
algorithmOptions = _ref13$algorithmOptio === void 0 ? {} : _ref13$algorithmOptio,
|
|
39569
|
+
_ref13$algorithm = _ref13.algorithm,
|
|
39570
|
+
algorithm = _ref13$algorithm === void 0 ? new SuperClusterAlgorithm(algorithmOptions) : _ref13$algorithm,
|
|
39571
|
+
_ref13$renderer = _ref13.renderer,
|
|
39572
|
+
renderer = _ref13$renderer === void 0 ? new DefaultRenderer() : _ref13$renderer,
|
|
39573
|
+
_ref13$onClusterClick = _ref13.onClusterClick,
|
|
39574
|
+
onClusterClick = _ref13$onClusterClick === void 0 ? defaultOnClusterClickHandler : _ref13$onClusterClick;
|
|
39575
|
+
_this5 = _OverlayViewSafe.call(this) || this;
|
|
39576
|
+
_this5.markers = [].concat(markers);
|
|
39577
|
+
_this5.clusters = [];
|
|
39578
|
+
_this5.algorithm = algorithm;
|
|
39579
|
+
_this5.renderer = renderer;
|
|
39580
|
+
_this5.onClusterClick = onClusterClick;
|
|
39742
39581
|
if (map) {
|
|
39743
|
-
|
|
39582
|
+
_this5.setMap(map);
|
|
39744
39583
|
}
|
|
39745
|
-
return
|
|
39584
|
+
return _this5;
|
|
39746
39585
|
}
|
|
39747
|
-
var
|
|
39748
|
-
|
|
39586
|
+
var _proto8 = MarkerClusterer.prototype;
|
|
39587
|
+
_proto8.addMarker = function addMarker(marker, noDraw) {
|
|
39749
39588
|
if (this.markers.includes(marker)) {
|
|
39750
39589
|
return;
|
|
39751
39590
|
}
|
|
@@ -39754,40 +39593,40 @@
|
|
|
39754
39593
|
this.render();
|
|
39755
39594
|
}
|
|
39756
39595
|
};
|
|
39757
|
-
|
|
39758
|
-
var
|
|
39596
|
+
_proto8.addMarkers = function addMarkers(markers, noDraw) {
|
|
39597
|
+
var _this6 = this;
|
|
39759
39598
|
markers.forEach(function (marker) {
|
|
39760
|
-
|
|
39599
|
+
_this6.addMarker(marker, true);
|
|
39761
39600
|
});
|
|
39762
39601
|
if (!noDraw) {
|
|
39763
39602
|
this.render();
|
|
39764
39603
|
}
|
|
39765
39604
|
};
|
|
39766
|
-
|
|
39605
|
+
_proto8.removeMarker = function removeMarker(marker, noDraw) {
|
|
39767
39606
|
var index = this.markers.indexOf(marker);
|
|
39768
39607
|
if (index === -1) {
|
|
39769
39608
|
// Marker is not in our list of markers, so do nothing:
|
|
39770
39609
|
return false;
|
|
39771
39610
|
}
|
|
39772
|
-
|
|
39611
|
+
marker.setMap(null);
|
|
39773
39612
|
this.markers.splice(index, 1); // Remove the marker from the list of managed markers
|
|
39774
39613
|
if (!noDraw) {
|
|
39775
39614
|
this.render();
|
|
39776
39615
|
}
|
|
39777
39616
|
return true;
|
|
39778
39617
|
};
|
|
39779
|
-
|
|
39780
|
-
var
|
|
39618
|
+
_proto8.removeMarkers = function removeMarkers(markers, noDraw) {
|
|
39619
|
+
var _this7 = this;
|
|
39781
39620
|
var removed = false;
|
|
39782
39621
|
markers.forEach(function (marker) {
|
|
39783
|
-
removed =
|
|
39622
|
+
removed = _this7.removeMarker(marker, true) || removed;
|
|
39784
39623
|
});
|
|
39785
39624
|
if (removed && !noDraw) {
|
|
39786
39625
|
this.render();
|
|
39787
39626
|
}
|
|
39788
39627
|
return removed;
|
|
39789
39628
|
};
|
|
39790
|
-
|
|
39629
|
+
_proto8.clearMarkers = function clearMarkers(noDraw) {
|
|
39791
39630
|
this.markers.length = 0;
|
|
39792
39631
|
if (!noDraw) {
|
|
39793
39632
|
this.render();
|
|
@@ -39796,9 +39635,9 @@
|
|
|
39796
39635
|
/**
|
|
39797
39636
|
* Recalculates and draws all the marker clusters.
|
|
39798
39637
|
*/;
|
|
39799
|
-
|
|
39638
|
+
_proto8.render = function render() {
|
|
39800
39639
|
var map = this.getMap();
|
|
39801
|
-
if (map instanceof google.maps.Map &&
|
|
39640
|
+
if (map instanceof google.maps.Map && this.getProjection()) {
|
|
39802
39641
|
google.maps.event.trigger(this, MarkerClustererEvents.CLUSTERING_BEGIN, this);
|
|
39803
39642
|
var _this$algorithm$calcu = this.algorithm.calculate({
|
|
39804
39643
|
markers: this.markers,
|
|
@@ -39807,90 +39646,53 @@
|
|
|
39807
39646
|
}),
|
|
39808
39647
|
clusters = _this$algorithm$calcu.clusters,
|
|
39809
39648
|
changed = _this$algorithm$calcu.changed;
|
|
39810
|
-
//
|
|
39649
|
+
// allow algorithms to return flag on whether the clusters/markers have changed
|
|
39811
39650
|
if (changed || changed == undefined) {
|
|
39812
|
-
//
|
|
39813
|
-
|
|
39814
|
-
//
|
|
39815
|
-
var singleMarker = new Set();
|
|
39816
|
-
for (var _iterator2 = _createForOfIteratorHelperLoose(clusters), _step2; !(_step2 = _iterator2()).done;) {
|
|
39817
|
-
var cluster = _step2.value;
|
|
39818
|
-
if (cluster.markers.length == 1) {
|
|
39819
|
-
singleMarker.add(cluster.markers[0]);
|
|
39820
|
-
}
|
|
39821
|
-
}
|
|
39822
|
-
var groupMarkers = [];
|
|
39823
|
-
// Iterate the clusters that are currently rendered.
|
|
39824
|
-
for (var _iterator3 = _createForOfIteratorHelperLoose(this.clusters), _step3; !(_step3 = _iterator3()).done;) {
|
|
39825
|
-
var _cluster2 = _step3.value;
|
|
39826
|
-
if (_cluster2.marker == null) {
|
|
39827
|
-
continue;
|
|
39828
|
-
}
|
|
39829
|
-
if (_cluster2.markers.length == 1) {
|
|
39830
|
-
if (!singleMarker.has(_cluster2.marker)) {
|
|
39831
|
-
// The marker:
|
|
39832
|
-
// - was previously rendered because it is from a cluster with 1 marker,
|
|
39833
|
-
// - should no more be rendered as it is not in singleMarker.
|
|
39834
|
-
MarkerUtils.setMap(_cluster2.marker, null);
|
|
39835
|
-
}
|
|
39836
|
-
} else {
|
|
39837
|
-
// Delay the removal of old group markers to avoid flickering.
|
|
39838
|
-
groupMarkers.push(_cluster2.marker);
|
|
39839
|
-
}
|
|
39840
|
-
}
|
|
39651
|
+
// reset visibility of markers and clusters
|
|
39652
|
+
this.reset();
|
|
39653
|
+
// store new clusters
|
|
39841
39654
|
this.clusters = clusters;
|
|
39842
39655
|
this.renderClusters();
|
|
39843
|
-
// Delayed removal of the markers of the former groups.
|
|
39844
|
-
requestAnimationFrame(function () {
|
|
39845
|
-
return groupMarkers.forEach(function (marker) {
|
|
39846
|
-
return MarkerUtils.setMap(marker, null);
|
|
39847
|
-
});
|
|
39848
|
-
});
|
|
39849
39656
|
}
|
|
39850
39657
|
google.maps.event.trigger(this, MarkerClustererEvents.CLUSTERING_END, this);
|
|
39851
39658
|
}
|
|
39852
39659
|
};
|
|
39853
|
-
|
|
39660
|
+
_proto8.onAdd = function onAdd() {
|
|
39854
39661
|
this.idleListener = this.getMap().addListener("idle", this.render.bind(this));
|
|
39855
39662
|
this.render();
|
|
39856
39663
|
};
|
|
39857
|
-
|
|
39664
|
+
_proto8.onRemove = function onRemove() {
|
|
39858
39665
|
google.maps.event.removeListener(this.idleListener);
|
|
39859
39666
|
this.reset();
|
|
39860
39667
|
};
|
|
39861
|
-
|
|
39668
|
+
_proto8.reset = function reset() {
|
|
39862
39669
|
this.markers.forEach(function (marker) {
|
|
39863
|
-
return
|
|
39670
|
+
return marker.setMap(null);
|
|
39864
39671
|
});
|
|
39865
39672
|
this.clusters.forEach(function (cluster) {
|
|
39866
39673
|
return cluster["delete"]();
|
|
39867
39674
|
});
|
|
39868
39675
|
this.clusters = [];
|
|
39869
39676
|
};
|
|
39870
|
-
|
|
39871
|
-
var
|
|
39872
|
-
//
|
|
39677
|
+
_proto8.renderClusters = function renderClusters() {
|
|
39678
|
+
var _this8 = this;
|
|
39679
|
+
// generate stats to pass to renderers
|
|
39873
39680
|
var stats = new ClusterStats(this.markers, this.clusters);
|
|
39874
39681
|
var map = this.getMap();
|
|
39875
39682
|
this.clusters.forEach(function (cluster) {
|
|
39876
39683
|
if (cluster.markers.length === 1) {
|
|
39877
39684
|
cluster.marker = cluster.markers[0];
|
|
39878
39685
|
} else {
|
|
39879
|
-
|
|
39880
|
-
|
|
39881
|
-
// Make sure all individual markers are removed from the map.
|
|
39882
|
-
cluster.markers.forEach(function (marker) {
|
|
39883
|
-
return MarkerUtils.setMap(marker, null);
|
|
39884
|
-
});
|
|
39885
|
-
if (_this11.onClusterClick) {
|
|
39686
|
+
cluster.marker = _this8.renderer.render(cluster, stats);
|
|
39687
|
+
if (_this8.onClusterClick) {
|
|
39886
39688
|
cluster.marker.addListener("click", /* istanbul ignore next */
|
|
39887
39689
|
function (event) {
|
|
39888
|
-
google.maps.event.trigger(
|
|
39889
|
-
|
|
39690
|
+
google.maps.event.trigger(_this8, MarkerClustererEvents.CLUSTER_CLICK, cluster);
|
|
39691
|
+
_this8.onClusterClick(event, cluster, map);
|
|
39890
39692
|
});
|
|
39891
39693
|
}
|
|
39892
39694
|
}
|
|
39893
|
-
|
|
39695
|
+
cluster.marker.setMap(map);
|
|
39894
39696
|
});
|
|
39895
39697
|
};
|
|
39896
39698
|
return MarkerClusterer;
|
|
@@ -39967,7 +39769,7 @@
|
|
|
39967
39769
|
}
|
|
39968
39770
|
|
|
39969
39771
|
script$1.render = render$1;
|
|
39970
|
-
script$1.__file = "node_modules/vue-google-maps-community-fork/src/components/cluster.vue";
|
|
39772
|
+
script$1.__file = "node_modules/@appbaseio/vue-google-maps-community-fork/src/components/cluster.vue";
|
|
39971
39773
|
|
|
39972
39774
|
var props$7 = {
|
|
39973
39775
|
options: {
|
|
@@ -40026,14 +39828,16 @@
|
|
|
40026
39828
|
this.$infoWindowObject.close();
|
|
40027
39829
|
if (this.opened) {
|
|
40028
39830
|
this.$infoWindowObject.open(this.$map, this.$markerObject);
|
|
40029
|
-
} else {
|
|
40030
|
-
this.$emit('closeclick');
|
|
40031
39831
|
}
|
|
40032
39832
|
}
|
|
40033
39833
|
},
|
|
40034
39834
|
afterCreate: function afterCreate() {
|
|
40035
39835
|
var _this2 = this;
|
|
40036
39836
|
this._openInfoWindow();
|
|
39837
|
+
this.$infoWindowObject.addListener('closeclick', function () {
|
|
39838
|
+
_this2.$emit('closeclick');
|
|
39839
|
+
_this2.$infoWindowObject.open(_this2.$map, _this2.$markerObject);
|
|
39840
|
+
});
|
|
40037
39841
|
this.$watch('opened', function () {
|
|
40038
39842
|
_this2._openInfoWindow();
|
|
40039
39843
|
});
|
|
@@ -40048,7 +39852,7 @@
|
|
|
40048
39852
|
}
|
|
40049
39853
|
|
|
40050
39854
|
script$2.render = render$2;
|
|
40051
|
-
script$2.__file = "node_modules/vue-google-maps-community-fork/src/components/infoWindow.vue";
|
|
39855
|
+
script$2.__file = "node_modules/@appbaseio/vue-google-maps-community-fork/src/components/infoWindow.vue";
|
|
40052
39856
|
|
|
40053
39857
|
/*
|
|
40054
39858
|
Mixin for objects that are mounted by Google Maps
|
|
@@ -40171,6 +39975,18 @@
|
|
|
40171
39975
|
type: Number,
|
|
40172
39976
|
noBind: true
|
|
40173
39977
|
},
|
|
39978
|
+
maxZoom: {
|
|
39979
|
+
required: false,
|
|
39980
|
+
twoWay: true,
|
|
39981
|
+
type: Number,
|
|
39982
|
+
noBind: true
|
|
39983
|
+
},
|
|
39984
|
+
minZoom: {
|
|
39985
|
+
required: false,
|
|
39986
|
+
twoWay: true,
|
|
39987
|
+
type: Number,
|
|
39988
|
+
noBind: true
|
|
39989
|
+
},
|
|
40174
39990
|
heading: {
|
|
40175
39991
|
type: Number,
|
|
40176
39992
|
twoWay: true
|
|
@@ -40329,7 +40145,7 @@
|
|
|
40329
40145
|
styleInject(css_248z$2);
|
|
40330
40146
|
|
|
40331
40147
|
script$3.render = render$3;
|
|
40332
|
-
script$3.__file = "node_modules/vue-google-maps-community-fork/src/components/map.vue";
|
|
40148
|
+
script$3.__file = "node_modules/@appbaseio/vue-google-maps-community-fork/src/components/map.vue";
|
|
40333
40149
|
|
|
40334
40150
|
var props$9 = {
|
|
40335
40151
|
options: {
|
|
@@ -40457,7 +40273,7 @@
|
|
|
40457
40273
|
}
|
|
40458
40274
|
|
|
40459
40275
|
script$4.render = render$4;
|
|
40460
|
-
script$4.__file = "node_modules/vue-google-maps-community-fork/src/components/autocomplete.vue";
|
|
40276
|
+
script$4.__file = "node_modules/@appbaseio/vue-google-maps-community-fork/src/components/autocomplete.vue";
|
|
40461
40277
|
|
|
40462
40278
|
var GMapApi = null;
|
|
40463
40279
|
function install(Vue, options) {
|
|
@@ -42189,7 +42005,7 @@
|
|
|
42189
42005
|
var id = marker.metaData && marker.metaData._id;
|
|
42190
42006
|
var _this$openMarkers = this.openMarkers,
|
|
42191
42007
|
del = _this$openMarkers[id],
|
|
42192
|
-
activeMarkers = _objectWithoutPropertiesLoose(_this$openMarkers, [id].map(_toPropertyKey
|
|
42008
|
+
activeMarkers = _objectWithoutPropertiesLoose(_this$openMarkers, [id].map(_toPropertyKey));
|
|
42193
42009
|
var newOpenMarkers = autoClosePopover ? {} : activeMarkers;
|
|
42194
42010
|
this.setOpenMarkers(newOpenMarkers);
|
|
42195
42011
|
handlePreserveCenter(true);
|
|
@@ -42690,7 +42506,7 @@
|
|
|
42690
42506
|
openMarkers = _this$$props2.openMarkers;
|
|
42691
42507
|
var id = marker._id;
|
|
42692
42508
|
var del = openMarkers[id],
|
|
42693
|
-
activeMarkers = _objectWithoutPropertiesLoose(openMarkers, [id].map(_toPropertyKey
|
|
42509
|
+
activeMarkers = _objectWithoutPropertiesLoose(openMarkers, [id].map(_toPropertyKey));
|
|
42694
42510
|
var newOpenMarkers = autoClosePopover ? {} : activeMarkers;
|
|
42695
42511
|
handleOpenMarkers(newOpenMarkers);
|
|
42696
42512
|
handlePreserveCenter(true);
|
|
@@ -43159,9 +42975,10 @@
|
|
|
43159
42975
|
var EMPTY_OBJ = Object.freeze({}) ;
|
|
43160
42976
|
var EMPTY_ARR = Object.freeze([]) ;
|
|
43161
42977
|
var NOOP = function NOOP() {};
|
|
43162
|
-
var onRE = /^on[^a-z]/;
|
|
43163
42978
|
var isOn = function isOn(key) {
|
|
43164
|
-
return
|
|
42979
|
+
return key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && (
|
|
42980
|
+
// uppercase letter
|
|
42981
|
+
key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97);
|
|
43165
42982
|
};
|
|
43166
42983
|
var isArray = Array.isArray;
|
|
43167
42984
|
var isFunction$1 = function isFunction(val) {
|
|
@@ -43174,7 +42991,7 @@
|
|
|
43174
42991
|
return val !== null && typeof val === "object";
|
|
43175
42992
|
};
|
|
43176
42993
|
var isPromise = function isPromise(val) {
|
|
43177
|
-
return isObject$1(val) && isFunction$1(val.then) && isFunction$1(val["catch"]);
|
|
42994
|
+
return (isObject$1(val) || isFunction$1(val)) && isFunction$1(val.then) && isFunction$1(val["catch"]);
|
|
43178
42995
|
};
|
|
43179
42996
|
var cacheStringFunction = function cacheStringFunction(fn) {
|
|
43180
42997
|
var cache = /* @__PURE__ */Object.create(null);
|
|
@@ -43191,7 +43008,7 @@
|
|
|
43191
43008
|
var getGlobalThis = function getGlobalThis() {
|
|
43192
43009
|
return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global$1 !== "undefined" ? global$1 : {});
|
|
43193
43010
|
};
|
|
43194
|
-
var PatchFlagNames = (_PatchFlagNames = {}, _PatchFlagNames[1] = "TEXT", _PatchFlagNames[2] = "CLASS", _PatchFlagNames[4] = "STYLE", _PatchFlagNames[8] = "PROPS", _PatchFlagNames[16] = "FULL_PROPS", _PatchFlagNames[32] = "
|
|
43011
|
+
var PatchFlagNames = (_PatchFlagNames = {}, _PatchFlagNames[1] = "TEXT", _PatchFlagNames[2] = "CLASS", _PatchFlagNames[4] = "STYLE", _PatchFlagNames[8] = "PROPS", _PatchFlagNames[16] = "FULL_PROPS", _PatchFlagNames[32] = "NEED_HYDRATION", _PatchFlagNames[64] = "STABLE_FRAGMENT", _PatchFlagNames[128] = "KEYED_FRAGMENT", _PatchFlagNames[256] = "UNKEYED_FRAGMENT", _PatchFlagNames[512] = "NEED_PATCH", _PatchFlagNames[1024] = "DYNAMIC_SLOTS", _PatchFlagNames[2048] = "DEV_ROOT_FRAGMENT", _PatchFlagNames[-1] = "HOISTED", _PatchFlagNames[-2] = "BAIL", _PatchFlagNames);
|
|
43195
43012
|
var slotFlagsText = (_slotFlagsText = {}, _slotFlagsText[1] = "STABLE", _slotFlagsText[2] = "DYNAMIC", _slotFlagsText[3] = "FORWARDED", _slotFlagsText);
|
|
43196
43013
|
function normalizeStyle(value) {
|
|
43197
43014
|
if (isArray(value)) {
|
|
@@ -43206,9 +43023,7 @@
|
|
|
43206
43023
|
}
|
|
43207
43024
|
}
|
|
43208
43025
|
return res;
|
|
43209
|
-
} else if (isString(value)) {
|
|
43210
|
-
return value;
|
|
43211
|
-
} else if (isObject$1(value)) {
|
|
43026
|
+
} else if (isString(value) || isObject$1(value)) {
|
|
43212
43027
|
return value;
|
|
43213
43028
|
}
|
|
43214
43029
|
}
|
|
@@ -43453,7 +43268,6 @@
|
|
|
43453
43268
|
var instance = createComponentInstance(vnode, parentComponent, null);
|
|
43454
43269
|
var res = setupComponent(instance, true
|
|
43455
43270
|
/* isSSR */);
|
|
43456
|
-
|
|
43457
43271
|
var hasAsyncSetup = isPromise(res);
|
|
43458
43272
|
var prefetches = instance.sp;
|
|
43459
43273
|
if (hasAsyncSetup || prefetches) {
|
|
@@ -43493,7 +43307,10 @@
|
|
|
43493
43307
|
}
|
|
43494
43308
|
for (var _iterator = _createForOfIteratorHelperLoose(instance.scope.effects), _step; !(_step = _iterator()).done;) {
|
|
43495
43309
|
var e = _step.value;
|
|
43496
|
-
if (e.computed)
|
|
43310
|
+
if (e.computed) {
|
|
43311
|
+
e.computed._dirty = true;
|
|
43312
|
+
e.computed._cacheable = true;
|
|
43313
|
+
}
|
|
43497
43314
|
}
|
|
43498
43315
|
var ssrRender = instance.ssrRender || comp.ssrRender;
|
|
43499
43316
|
if (ssrRender) {
|
|
@@ -44132,7 +43949,7 @@
|
|
|
44132
43949
|
}, queryString, renderFunction);
|
|
44133
43950
|
}
|
|
44134
43951
|
|
|
44135
|
-
var version = "3.
|
|
43952
|
+
var version = "3.3.1";
|
|
44136
43953
|
|
|
44137
43954
|
var components = [RLConnected, ResultCard, ResultList, ReactiveBase, SBConnected, ListConnected, ListConnected$1, RangeConnected$1, RangeConnected$2, RangeConnected$3, RangeConnected, RcConnected, RcConnected$1, RcConnected$2, TBConnected, ListConnected$2, ListConnected$3, StateProviderConnected, RangeConnected$4, TreeListConnected, AIConnected];
|
|
44138
43955
|
function install$1 (Vue) {
|