@appbaseio/reactivesearch-vue 1.35.0 → 1.35.2

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.
@@ -16,7 +16,34 @@
16
16
  return module = { exports: {} }, fn(module, module.exports), module.exports;
17
17
  }
18
18
 
19
+ function _typeof(obj) {
20
+ "@babel/helpers - typeof";
21
+
22
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
23
+ return typeof obj;
24
+ } : function (obj) {
25
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
26
+ }, _typeof(obj);
27
+ }
28
+
29
+ function _toPrimitive(input, hint) {
30
+ if (_typeof(input) !== "object" || input === null) return input;
31
+ var prim = input[Symbol.toPrimitive];
32
+ if (prim !== undefined) {
33
+ var res = prim.call(input, hint || "default");
34
+ if (_typeof(res) !== "object") return res;
35
+ throw new TypeError("@@toPrimitive must return a primitive value.");
36
+ }
37
+ return (hint === "string" ? String : Number)(input);
38
+ }
39
+
40
+ function _toPropertyKey(arg) {
41
+ var key = _toPrimitive(arg, "string");
42
+ return _typeof(key) === "symbol" ? key : String(key);
43
+ }
44
+
19
45
  function _defineProperty(obj, key, value) {
46
+ key = _toPropertyKey(key);
20
47
  if (key in obj) {
21
48
  Object.defineProperty(obj, key, {
22
49
  value: value,
@@ -664,16 +691,6 @@
664
691
  };
665
692
  }
666
693
 
667
- /*
668
- * This is a dummy function to check if the function name has been altered by minification.
669
- * If the function has been minified and NODE_ENV !== 'production', warn the user.
670
- */
671
-
672
- function isCrushed() {}
673
- if ( typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {
674
- warning('You are currently using minified code outside of NODE_ENV === "production". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.');
675
- }
676
-
677
694
  var redux = /*#__PURE__*/Object.freeze({
678
695
  __proto__: null,
679
696
  __DO_NOT_USE__ActionTypes: ActionTypes,
@@ -1163,7 +1180,7 @@
1163
1180
  geo: 'geo',
1164
1181
  suggestion: 'suggestion'
1165
1182
  };
1166
- var validProps = exports.validProps = ['type', 'componentType', 'aggregationField', 'aggregationSize', 'distinctField', 'distinctFieldConfig', 'index', 'aggregations', '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', 'enablePredictiveSuggestions', 'applyStopwords', 'customStopwords', 'enableIndexSuggestions', 'enableFeaturedSuggestions', 'searchboxId', 'endpoint', 'enableEndpointSuggestions'];
1183
+ 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', 'enablePredictiveSuggestions', 'applyStopwords', 'customStopwords', 'enableIndexSuggestions', 'enableFeaturedSuggestions', 'searchboxId', 'endpoint', 'enableEndpointSuggestions'];
1167
1184
  var CLEAR_ALL = exports.CLEAR_ALL = {
1168
1185
  NEVER: 'never',
1169
1186
  ALWAYS: 'always',
@@ -5561,9 +5578,9 @@
5561
5578
  u = "hour",
5562
5579
  a = "day",
5563
5580
  o = "week",
5564
- f = "month",
5565
- h = "quarter",
5566
- c = "year",
5581
+ c = "month",
5582
+ f = "quarter",
5583
+ h = "year",
5567
5584
  d = "date",
5568
5585
  l = "Invalid Date",
5569
5586
  $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
@@ -5594,9 +5611,9 @@
5594
5611
  m: function t(e, n) {
5595
5612
  if (e.date() < n.date()) return -t(n, e);
5596
5613
  var r = 12 * (n.year() - e.year()) + (n.month() - e.month()),
5597
- i = e.clone().add(r, f),
5614
+ i = e.clone().add(r, c),
5598
5615
  s = n - i < 0,
5599
- u = e.clone().add(r + (s ? -1 : 1), f);
5616
+ u = e.clone().add(r + (s ? -1 : 1), c);
5600
5617
  return +(-(r + (n - i) / (s ? i - u : u - i)) || 0);
5601
5618
  },
5602
5619
  a: function a(t) {
@@ -5604,8 +5621,8 @@
5604
5621
  },
5605
5622
  p: function p(t) {
5606
5623
  return {
5607
- M: f,
5608
- y: c,
5624
+ M: c,
5625
+ y: h,
5609
5626
  w: o,
5610
5627
  d: a,
5611
5628
  D: d,
@@ -5613,7 +5630,7 @@
5613
5630
  m: s,
5614
5631
  s: i,
5615
5632
  ms: r,
5616
- Q: h
5633
+ Q: f
5617
5634
  }[t] || String(t || "").toLowerCase().replace(/s$/, "");
5618
5635
  },
5619
5636
  u: function u(t) {
@@ -5624,7 +5641,7 @@
5624
5641
  D = {};
5625
5642
  D[g] = M;
5626
5643
  var p = function p(t) {
5627
- return t instanceof _;
5644
+ return t instanceof b;
5628
5645
  },
5629
5646
  S = function t(e, n, r) {
5630
5647
  var i;
@@ -5643,7 +5660,7 @@
5643
5660
  w = function w(t, e) {
5644
5661
  if (p(t)) return t.clone();
5645
5662
  var n = "object" == typeof e ? e : {};
5646
- return n.date = t, n.args = arguments, new _(n);
5663
+ return n.date = t, n.args = arguments, new b(n);
5647
5664
  },
5648
5665
  O = v;
5649
5666
  O.l = S, O.i = p, O.w = function (t, e) {
@@ -5654,7 +5671,7 @@
5654
5671
  $offset: e.$offset
5655
5672
  });
5656
5673
  };
5657
- var _ = function () {
5674
+ var b = function () {
5658
5675
  function M(t) {
5659
5676
  this.$L = S(t.locale, null, !0), this.parse(t);
5660
5677
  }
@@ -5699,7 +5716,7 @@
5699
5716
  }, m.startOf = function (t, e) {
5700
5717
  var n = this,
5701
5718
  r = !!O.u(e) || e,
5702
- h = O.p(t),
5719
+ f = O.p(t),
5703
5720
  l = function l(t, e) {
5704
5721
  var i = O.w(n.$u ? Date.UTC(n.$y, e, t) : new Date(n.$y, e, t), n);
5705
5722
  return r ? i : i.endOf(a);
@@ -5711,10 +5728,10 @@
5711
5728
  M = this.$M,
5712
5729
  m = this.$D,
5713
5730
  v = "set" + (this.$u ? "UTC" : "");
5714
- switch (h) {
5715
- case c:
5731
+ switch (f) {
5732
+ case h:
5716
5733
  return r ? l(1, 0) : l(31, 11);
5717
- case f:
5734
+ case c:
5718
5735
  return r ? l(1, M) : l(0, M + 1);
5719
5736
  case o:
5720
5737
  var g = this.$locale().weekStart || 0,
@@ -5737,10 +5754,10 @@
5737
5754
  }, m.$set = function (t, e) {
5738
5755
  var n,
5739
5756
  o = O.p(t),
5740
- h = "set" + (this.$u ? "UTC" : ""),
5741
- l = (n = {}, n[a] = h + "Date", n[d] = h + "Date", n[f] = h + "Month", n[c] = h + "FullYear", n[u] = h + "Hours", n[s] = h + "Minutes", n[i] = h + "Seconds", n[r] = h + "Milliseconds", n)[o],
5757
+ f = "set" + (this.$u ? "UTC" : ""),
5758
+ 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],
5742
5759
  $ = o === a ? this.$D + (e - this.$W) : e;
5743
- if (o === f || o === c) {
5760
+ if (o === c || o === h) {
5744
5761
  var y = this.clone().set(d, 1);
5745
5762
  y.$d[l]($), y.init(), this.$d = y.set(d, Math.min(this.$D, y.daysInMonth())).$d;
5746
5763
  } else l && this.$d[l]($);
@@ -5749,17 +5766,17 @@
5749
5766
  return this.clone().$set(t, e);
5750
5767
  }, m.get = function (t) {
5751
5768
  return this[O.p(t)]();
5752
- }, m.add = function (r, h) {
5769
+ }, m.add = function (r, f) {
5753
5770
  var d,
5754
5771
  l = this;
5755
5772
  r = Number(r);
5756
- var $ = O.p(h),
5773
+ var $ = O.p(f),
5757
5774
  y = function y(t) {
5758
5775
  var e = w(l);
5759
5776
  return O.w(e.date(e.date() + Math.round(t * r)), l);
5760
5777
  };
5761
- if ($ === f) return this.set(f, this.$M + r);
5762
- if ($ === c) return this.set(c, this.$y + r);
5778
+ if ($ === c) return this.set(c, this.$M + r);
5779
+ if ($ === h) return this.set(h, this.$y + r);
5763
5780
  if ($ === a) return y(1);
5764
5781
  if ($ === o) return y(7);
5765
5782
  var M = (d = {}, d[s] = e, d[u] = n, d[i] = t, d)[$] || 1,
@@ -5777,58 +5794,116 @@
5777
5794
  u = this.$m,
5778
5795
  a = this.$M,
5779
5796
  o = n.weekdays,
5780
- f = n.months,
5797
+ c = n.months,
5798
+ f = n.meridiem,
5781
5799
  h = function h(t, n, i, s) {
5782
5800
  return t && (t[n] || t(e, r)) || i[n].slice(0, s);
5783
5801
  },
5784
- c = function c(t) {
5802
+ d = function d(t) {
5785
5803
  return O.s(s % 12 || 12, t, "0");
5786
5804
  },
5787
- d = n.meridiem || function (t, e, n) {
5805
+ $ = f || function (t, e, n) {
5788
5806
  var r = t < 12 ? "AM" : "PM";
5789
5807
  return n ? r.toLowerCase() : r;
5790
- },
5791
- $ = {
5792
- YY: String(this.$y).slice(-2),
5793
- YYYY: this.$y,
5794
- M: a + 1,
5795
- MM: O.s(a + 1, 2, "0"),
5796
- MMM: h(n.monthsShort, a, f, 3),
5797
- MMMM: h(f, a),
5798
- D: this.$D,
5799
- DD: O.s(this.$D, 2, "0"),
5800
- d: String(this.$W),
5801
- dd: h(n.weekdaysMin, this.$W, o, 2),
5802
- ddd: h(n.weekdaysShort, this.$W, o, 3),
5803
- dddd: o[this.$W],
5804
- H: String(s),
5805
- HH: O.s(s, 2, "0"),
5806
- h: c(1),
5807
- hh: c(2),
5808
- a: d(s, u, !0),
5809
- A: d(s, u, !1),
5810
- m: String(u),
5811
- mm: O.s(u, 2, "0"),
5812
- s: String(this.$s),
5813
- ss: O.s(this.$s, 2, "0"),
5814
- SSS: O.s(this.$ms, 3, "0"),
5815
- Z: i
5816
5808
  };
5817
- return r.replace(y, function (t, e) {
5818
- return e || $[t] || i.replace(":", "");
5809
+ return r.replace(y, function (t, r) {
5810
+ return r || function (t) {
5811
+ switch (t) {
5812
+ case "YY":
5813
+ return String(e.$y).slice(-2);
5814
+ case "YYYY":
5815
+ return O.s(e.$y, 4, "0");
5816
+ case "M":
5817
+ return a + 1;
5818
+ case "MM":
5819
+ return O.s(a + 1, 2, "0");
5820
+ case "MMM":
5821
+ return h(n.monthsShort, a, c, 3);
5822
+ case "MMMM":
5823
+ return h(c, a);
5824
+ case "D":
5825
+ return e.$D;
5826
+ case "DD":
5827
+ return O.s(e.$D, 2, "0");
5828
+ case "d":
5829
+ return String(e.$W);
5830
+ case "dd":
5831
+ return h(n.weekdaysMin, e.$W, o, 2);
5832
+ case "ddd":
5833
+ return h(n.weekdaysShort, e.$W, o, 3);
5834
+ case "dddd":
5835
+ return o[e.$W];
5836
+ case "H":
5837
+ return String(s);
5838
+ case "HH":
5839
+ return O.s(s, 2, "0");
5840
+ case "h":
5841
+ return d(1);
5842
+ case "hh":
5843
+ return d(2);
5844
+ case "a":
5845
+ return $(s, u, !0);
5846
+ case "A":
5847
+ return $(s, u, !1);
5848
+ case "m":
5849
+ return String(u);
5850
+ case "mm":
5851
+ return O.s(u, 2, "0");
5852
+ case "s":
5853
+ return String(e.$s);
5854
+ case "ss":
5855
+ return O.s(e.$s, 2, "0");
5856
+ case "SSS":
5857
+ return O.s(e.$ms, 3, "0");
5858
+ case "Z":
5859
+ return i;
5860
+ }
5861
+ return null;
5862
+ }(t) || i.replace(":", "");
5819
5863
  });
5820
5864
  }, m.utcOffset = function () {
5821
5865
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
5822
5866
  }, m.diff = function (r, d, l) {
5823
5867
  var $,
5824
- y = O.p(d),
5825
- M = w(r),
5826
- m = (M.utcOffset() - this.utcOffset()) * e,
5827
- v = this - M,
5828
- g = O.m(this, M);
5829
- return g = ($ = {}, $[c] = g / 12, $[f] = g, $[h] = g / 3, $[o] = (v - m) / 6048e5, $[a] = (v - m) / 864e5, $[u] = v / n, $[s] = v / e, $[i] = v / t, $)[y] || v, l ? g : O.a(g);
5868
+ y = this,
5869
+ M = O.p(d),
5870
+ m = w(r),
5871
+ v = (m.utcOffset() - this.utcOffset()) * e,
5872
+ g = this - m,
5873
+ D = function D() {
5874
+ return O.m(y, m);
5875
+ };
5876
+ switch (M) {
5877
+ case h:
5878
+ $ = D() / 12;
5879
+ break;
5880
+ case c:
5881
+ $ = D();
5882
+ break;
5883
+ case f:
5884
+ $ = D() / 3;
5885
+ break;
5886
+ case o:
5887
+ $ = (g - v) / 6048e5;
5888
+ break;
5889
+ case a:
5890
+ $ = (g - v) / 864e5;
5891
+ break;
5892
+ case u:
5893
+ $ = g / n;
5894
+ break;
5895
+ case s:
5896
+ $ = g / e;
5897
+ break;
5898
+ case i:
5899
+ $ = g / t;
5900
+ break;
5901
+ default:
5902
+ $ = g;
5903
+ }
5904
+ return l ? $ : O.a($);
5830
5905
  }, m.daysInMonth = function () {
5831
- return this.endOf(f).$D;
5906
+ return this.endOf(c).$D;
5832
5907
  }, m.$locale = function () {
5833
5908
  return D[this.$L];
5834
5909
  }, m.locale = function (t, e) {
@@ -5848,13 +5923,13 @@
5848
5923
  return this.$d.toUTCString();
5849
5924
  }, M;
5850
5925
  }(),
5851
- T = _.prototype;
5852
- return w.prototype = T, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", f], ["$y", c], ["$D", d]].forEach(function (t) {
5853
- T[t[1]] = function (e) {
5926
+ _ = b.prototype;
5927
+ return w.prototype = _, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function (t) {
5928
+ _[t[1]] = function (e) {
5854
5929
  return this.$g(e, t[0], t[1]);
5855
5930
  };
5856
5931
  }), w.extend = function (t, e) {
5857
- return t.$i || (t(e, _, w), t.$i = !0), w;
5932
+ return t.$i || (t(e, b, w), t.$i = !0), w;
5858
5933
  }, w.locale = S, w.isDayjs = p, w.unix = function (t) {
5859
5934
  return w(1e3 * t);
5860
5935
  }, w.en = D[g], w.Ls = D, w.p = {}, w;
@@ -5959,9 +6034,14 @@
5959
6034
  return null;
5960
6035
  }
5961
6036
  var endpoint = void 0;
6037
+ var compoundClause = props.compoundClause;
5962
6038
  if (props.endpoint instanceof Object) {
5963
6039
  endpoint = props.endpoint;
5964
6040
  }
6041
+ if (compoundClause && !['filter', 'must'].includes(compoundClause)) {
6042
+ console.error("Reactivesearch Error: Invalid prop supplied - compoundClause. Prop can be one of ['filter', 'must']");
6043
+ compoundClause = undefined;
6044
+ }
5965
6045
  return _extends({
5966
6046
  id: componentId,
5967
6047
  type: queryType,
@@ -6000,7 +6080,8 @@
6000
6080
  queryString: props.queryString,
6001
6081
  distinctField: props.distinctField,
6002
6082
  distinctFieldConfig: props.distinctFieldConfig,
6003
- index: props.index
6083
+ index: props.index,
6084
+ compoundClause: compoundClause
6004
6085
  }, queryType === constants$1.queryTypes.suggestion ? _extends({
6005
6086
  enablePopularSuggestions: props.enablePopularSuggestions,
6006
6087
  enableEndpointSuggestions: props.enableEndpointSuggestions,
@@ -6932,6 +7013,17 @@
6932
7013
  var componentId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
6933
7014
  return componentId + '__suggestions';
6934
7015
  };
7016
+ function errorToObject(error) {
7017
+ if (!(error instanceof Error)) {
7018
+ return error;
7019
+ }
7020
+ var errorObject = {};
7021
+ var errorProperties = Object.getOwnPropertyNames(error);
7022
+ errorProperties.forEach(function (property) {
7023
+ errorObject[property] = error[property];
7024
+ });
7025
+ return errorObject;
7026
+ }
6935
7027
  var handleError = exports.handleError = function handleError() {
6936
7028
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
6937
7029
  _ref$orderOfQueries = _ref.orderOfQueries,
@@ -6940,19 +7032,20 @@
6940
7032
  error = _ref$error === undefined ? null : _ref$error;
6941
7033
  var getState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
6942
7034
  var dispatch = arguments[2];
7035
+ var processedError = errorToObject(error);
6943
7036
  var _getState2 = getState(),
6944
7037
  queryListener = _getState2.queryListener;
6945
7038
  try {
6946
- console.error(JSON.stringify(error));
7039
+ console.error(JSON.stringify(processedError));
6947
7040
  } catch (e) {
6948
- console.error(error);
7041
+ console.error(processedError);
6949
7042
  }
6950
7043
  orderOfQueries.forEach(function (component) {
6951
7044
  if (isComponentActive(getState, component)) {
6952
7045
  if (queryListener[component] && queryListener[component].onError) {
6953
- queryListener[component].onError(error);
7046
+ queryListener[component].onError(processedError);
6954
7047
  }
6955
- dispatch((0, misc.setError)(component, error));
7048
+ dispatch((0, misc.setError)(component, processedError));
6956
7049
  dispatch((0, misc.setLoading)(component, false));
6957
7050
  }
6958
7051
  });
@@ -9194,304 +9287,304 @@
9194
9287
 
9195
9288
  function _regeneratorRuntime() {
9196
9289
  _regeneratorRuntime = function () {
9197
- return exports;
9290
+ return e;
9198
9291
  };
9199
- var exports = {},
9200
- Op = Object.prototype,
9201
- hasOwn = Op.hasOwnProperty,
9202
- defineProperty = Object.defineProperty || function (obj, key, desc) {
9203
- obj[key] = desc.value;
9204
- },
9205
- $Symbol = "function" == typeof Symbol ? Symbol : {},
9206
- iteratorSymbol = $Symbol.iterator || "@@iterator",
9207
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
9208
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
9209
- function define(obj, key, value) {
9210
- return Object.defineProperty(obj, key, {
9211
- value: value,
9292
+ var t,
9293
+ e = {},
9294
+ r = Object.prototype,
9295
+ n = r.hasOwnProperty,
9296
+ o = Object.defineProperty || function (t, e, r) {
9297
+ t[e] = r.value;
9298
+ },
9299
+ i = "function" == typeof Symbol ? Symbol : {},
9300
+ a = i.iterator || "@@iterator",
9301
+ c = i.asyncIterator || "@@asyncIterator",
9302
+ u = i.toStringTag || "@@toStringTag";
9303
+ function define(t, e, r) {
9304
+ return Object.defineProperty(t, e, {
9305
+ value: r,
9212
9306
  enumerable: !0,
9213
9307
  configurable: !0,
9214
9308
  writable: !0
9215
- }), obj[key];
9309
+ }), t[e];
9216
9310
  }
9217
9311
  try {
9218
9312
  define({}, "");
9219
- } catch (err) {
9220
- define = function (obj, key, value) {
9221
- return obj[key] = value;
9313
+ } catch (t) {
9314
+ define = function (t, e, r) {
9315
+ return t[e] = r;
9222
9316
  };
9223
9317
  }
9224
- function wrap(innerFn, outerFn, self, tryLocsList) {
9225
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
9226
- generator = Object.create(protoGenerator.prototype),
9227
- context = new Context(tryLocsList || []);
9228
- return defineProperty(generator, "_invoke", {
9229
- value: makeInvokeMethod(innerFn, self, context)
9230
- }), generator;
9318
+ function wrap(t, e, r, n) {
9319
+ var i = e && e.prototype instanceof Generator ? e : Generator,
9320
+ a = Object.create(i.prototype),
9321
+ c = new Context(n || []);
9322
+ return o(a, "_invoke", {
9323
+ value: makeInvokeMethod(t, r, c)
9324
+ }), a;
9231
9325
  }
9232
- function tryCatch(fn, obj, arg) {
9326
+ function tryCatch(t, e, r) {
9233
9327
  try {
9234
9328
  return {
9235
9329
  type: "normal",
9236
- arg: fn.call(obj, arg)
9330
+ arg: t.call(e, r)
9237
9331
  };
9238
- } catch (err) {
9332
+ } catch (t) {
9239
9333
  return {
9240
9334
  type: "throw",
9241
- arg: err
9335
+ arg: t
9242
9336
  };
9243
9337
  }
9244
9338
  }
9245
- exports.wrap = wrap;
9246
- var ContinueSentinel = {};
9339
+ e.wrap = wrap;
9340
+ var h = "suspendedStart",
9341
+ l = "suspendedYield",
9342
+ f = "executing",
9343
+ s = "completed",
9344
+ y = {};
9247
9345
  function Generator() {}
9248
9346
  function GeneratorFunction() {}
9249
9347
  function GeneratorFunctionPrototype() {}
9250
- var IteratorPrototype = {};
9251
- define(IteratorPrototype, iteratorSymbol, function () {
9348
+ var p = {};
9349
+ define(p, a, function () {
9252
9350
  return this;
9253
9351
  });
9254
- var getProto = Object.getPrototypeOf,
9255
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
9256
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
9257
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
9258
- function defineIteratorMethods(prototype) {
9259
- ["next", "throw", "return"].forEach(function (method) {
9260
- define(prototype, method, function (arg) {
9261
- return this._invoke(method, arg);
9352
+ var d = Object.getPrototypeOf,
9353
+ v = d && d(d(values([])));
9354
+ v && v !== r && n.call(v, a) && (p = v);
9355
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
9356
+ function defineIteratorMethods(t) {
9357
+ ["next", "throw", "return"].forEach(function (e) {
9358
+ define(t, e, function (t) {
9359
+ return this._invoke(e, t);
9262
9360
  });
9263
9361
  });
9264
9362
  }
9265
- function AsyncIterator(generator, PromiseImpl) {
9266
- function invoke(method, arg, resolve, reject) {
9267
- var record = tryCatch(generator[method], generator, arg);
9268
- if ("throw" !== record.type) {
9269
- var result = record.arg,
9270
- value = result.value;
9271
- return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
9272
- invoke("next", value, resolve, reject);
9273
- }, function (err) {
9274
- invoke("throw", err, resolve, reject);
9275
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
9276
- result.value = unwrapped, resolve(result);
9277
- }, function (error) {
9278
- return invoke("throw", error, resolve, reject);
9363
+ function AsyncIterator(t, e) {
9364
+ function invoke(r, o, i, a) {
9365
+ var c = tryCatch(t[r], t, o);
9366
+ if ("throw" !== c.type) {
9367
+ var u = c.arg,
9368
+ h = u.value;
9369
+ return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
9370
+ invoke("next", t, i, a);
9371
+ }, function (t) {
9372
+ invoke("throw", t, i, a);
9373
+ }) : e.resolve(h).then(function (t) {
9374
+ u.value = t, i(u);
9375
+ }, function (t) {
9376
+ return invoke("throw", t, i, a);
9279
9377
  });
9280
9378
  }
9281
- reject(record.arg);
9379
+ a(c.arg);
9282
9380
  }
9283
- var previousPromise;
9284
- defineProperty(this, "_invoke", {
9285
- value: function (method, arg) {
9381
+ var r;
9382
+ o(this, "_invoke", {
9383
+ value: function (t, n) {
9286
9384
  function callInvokeWithMethodAndArg() {
9287
- return new PromiseImpl(function (resolve, reject) {
9288
- invoke(method, arg, resolve, reject);
9385
+ return new e(function (e, r) {
9386
+ invoke(t, n, e, r);
9289
9387
  });
9290
9388
  }
9291
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
9389
+ return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
9292
9390
  }
9293
9391
  });
9294
9392
  }
9295
- function makeInvokeMethod(innerFn, self, context) {
9296
- var state = "suspendedStart";
9297
- return function (method, arg) {
9298
- if ("executing" === state) throw new Error("Generator is already running");
9299
- if ("completed" === state) {
9300
- if ("throw" === method) throw arg;
9301
- return doneResult();
9302
- }
9303
- for (context.method = method, context.arg = arg;;) {
9304
- var delegate = context.delegate;
9305
- if (delegate) {
9306
- var delegateResult = maybeInvokeDelegate(delegate, context);
9307
- if (delegateResult) {
9308
- if (delegateResult === ContinueSentinel) continue;
9309
- return delegateResult;
9393
+ function makeInvokeMethod(e, r, n) {
9394
+ var o = h;
9395
+ return function (i, a) {
9396
+ if (o === f) throw new Error("Generator is already running");
9397
+ if (o === s) {
9398
+ if ("throw" === i) throw a;
9399
+ return {
9400
+ value: t,
9401
+ done: !0
9402
+ };
9403
+ }
9404
+ for (n.method = i, n.arg = a;;) {
9405
+ var c = n.delegate;
9406
+ if (c) {
9407
+ var u = maybeInvokeDelegate(c, n);
9408
+ if (u) {
9409
+ if (u === y) continue;
9410
+ return u;
9310
9411
  }
9311
9412
  }
9312
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
9313
- if ("suspendedStart" === state) throw state = "completed", context.arg;
9314
- context.dispatchException(context.arg);
9315
- } else "return" === context.method && context.abrupt("return", context.arg);
9316
- state = "executing";
9317
- var record = tryCatch(innerFn, self, context);
9318
- if ("normal" === record.type) {
9319
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
9413
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
9414
+ if (o === h) throw o = s, n.arg;
9415
+ n.dispatchException(n.arg);
9416
+ } else "return" === n.method && n.abrupt("return", n.arg);
9417
+ o = f;
9418
+ var p = tryCatch(e, r, n);
9419
+ if ("normal" === p.type) {
9420
+ if (o = n.done ? s : l, p.arg === y) continue;
9320
9421
  return {
9321
- value: record.arg,
9322
- done: context.done
9422
+ value: p.arg,
9423
+ done: n.done
9323
9424
  };
9324
9425
  }
9325
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
9426
+ "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
9326
9427
  }
9327
9428
  };
9328
9429
  }
9329
- function maybeInvokeDelegate(delegate, context) {
9330
- var methodName = context.method,
9331
- method = delegate.iterator[methodName];
9332
- if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
9333
- var record = tryCatch(method, delegate.iterator, context.arg);
9334
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
9335
- var info = record.arg;
9336
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
9337
- }
9338
- function pushTryEntry(locs) {
9339
- var entry = {
9340
- tryLoc: locs[0]
9430
+ function maybeInvokeDelegate(e, r) {
9431
+ var n = r.method,
9432
+ o = e.iterator[n];
9433
+ 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;
9434
+ var i = tryCatch(o, e.iterator, r.arg);
9435
+ if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
9436
+ var a = i.arg;
9437
+ 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);
9438
+ }
9439
+ function pushTryEntry(t) {
9440
+ var e = {
9441
+ tryLoc: t[0]
9341
9442
  };
9342
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
9443
+ 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
9343
9444
  }
9344
- function resetTryEntry(entry) {
9345
- var record = entry.completion || {};
9346
- record.type = "normal", delete record.arg, entry.completion = record;
9445
+ function resetTryEntry(t) {
9446
+ var e = t.completion || {};
9447
+ e.type = "normal", delete e.arg, t.completion = e;
9347
9448
  }
9348
- function Context(tryLocsList) {
9449
+ function Context(t) {
9349
9450
  this.tryEntries = [{
9350
9451
  tryLoc: "root"
9351
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
9352
- }
9353
- function values(iterable) {
9354
- if (iterable) {
9355
- var iteratorMethod = iterable[iteratorSymbol];
9356
- if (iteratorMethod) return iteratorMethod.call(iterable);
9357
- if ("function" == typeof iterable.next) return iterable;
9358
- if (!isNaN(iterable.length)) {
9359
- var i = -1,
9360
- next = function next() {
9361
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
9362
- return next.value = undefined, next.done = !0, next;
9452
+ }], t.forEach(pushTryEntry, this), this.reset(!0);
9453
+ }
9454
+ function values(e) {
9455
+ if (e || "" === e) {
9456
+ var r = e[a];
9457
+ if (r) return r.call(e);
9458
+ if ("function" == typeof e.next) return e;
9459
+ if (!isNaN(e.length)) {
9460
+ var o = -1,
9461
+ i = function next() {
9462
+ for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
9463
+ return next.value = t, next.done = !0, next;
9363
9464
  };
9364
- return next.next = next;
9465
+ return i.next = i;
9365
9466
  }
9366
9467
  }
9367
- return {
9368
- next: doneResult
9369
- };
9370
- }
9371
- function doneResult() {
9372
- return {
9373
- value: undefined,
9374
- done: !0
9375
- };
9468
+ throw new TypeError(typeof e + " is not iterable");
9376
9469
  }
9377
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
9470
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
9378
9471
  value: GeneratorFunctionPrototype,
9379
9472
  configurable: !0
9380
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
9473
+ }), o(GeneratorFunctionPrototype, "constructor", {
9381
9474
  value: GeneratorFunction,
9382
9475
  configurable: !0
9383
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
9384
- var ctor = "function" == typeof genFun && genFun.constructor;
9385
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
9386
- }, exports.mark = function (genFun) {
9387
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
9388
- }, exports.awrap = function (arg) {
9476
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
9477
+ var e = "function" == typeof t && t.constructor;
9478
+ return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
9479
+ }, e.mark = function (t) {
9480
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
9481
+ }, e.awrap = function (t) {
9389
9482
  return {
9390
- __await: arg
9483
+ __await: t
9391
9484
  };
9392
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
9485
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
9393
9486
  return this;
9394
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
9395
- void 0 === PromiseImpl && (PromiseImpl = Promise);
9396
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
9397
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
9398
- return result.done ? result.value : iter.next();
9487
+ }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
9488
+ void 0 === i && (i = Promise);
9489
+ var a = new AsyncIterator(wrap(t, r, n, o), i);
9490
+ return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
9491
+ return t.done ? t.value : a.next();
9399
9492
  });
9400
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
9493
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
9401
9494
  return this;
9402
- }), define(Gp, "toString", function () {
9495
+ }), define(g, "toString", function () {
9403
9496
  return "[object Generator]";
9404
- }), exports.keys = function (val) {
9405
- var object = Object(val),
9406
- keys = [];
9407
- for (var key in object) keys.push(key);
9408
- return keys.reverse(), function next() {
9409
- for (; keys.length;) {
9410
- var key = keys.pop();
9411
- if (key in object) return next.value = key, next.done = !1, next;
9497
+ }), e.keys = function (t) {
9498
+ var e = Object(t),
9499
+ r = [];
9500
+ for (var n in e) r.push(n);
9501
+ return r.reverse(), function next() {
9502
+ for (; r.length;) {
9503
+ var t = r.pop();
9504
+ if (t in e) return next.value = t, next.done = !1, next;
9412
9505
  }
9413
9506
  return next.done = !0, next;
9414
9507
  };
9415
- }, exports.values = values, Context.prototype = {
9508
+ }, e.values = values, Context.prototype = {
9416
9509
  constructor: Context,
9417
- reset: function (skipTempReset) {
9418
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
9510
+ reset: function (e) {
9511
+ 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);
9419
9512
  },
9420
9513
  stop: function () {
9421
9514
  this.done = !0;
9422
- var rootRecord = this.tryEntries[0].completion;
9423
- if ("throw" === rootRecord.type) throw rootRecord.arg;
9515
+ var t = this.tryEntries[0].completion;
9516
+ if ("throw" === t.type) throw t.arg;
9424
9517
  return this.rval;
9425
9518
  },
9426
- dispatchException: function (exception) {
9427
- if (this.done) throw exception;
9428
- var context = this;
9429
- function handle(loc, caught) {
9430
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
9431
- }
9432
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
9433
- var entry = this.tryEntries[i],
9434
- record = entry.completion;
9435
- if ("root" === entry.tryLoc) return handle("end");
9436
- if (entry.tryLoc <= this.prev) {
9437
- var hasCatch = hasOwn.call(entry, "catchLoc"),
9438
- hasFinally = hasOwn.call(entry, "finallyLoc");
9439
- if (hasCatch && hasFinally) {
9440
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
9441
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
9442
- } else if (hasCatch) {
9443
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
9519
+ dispatchException: function (e) {
9520
+ if (this.done) throw e;
9521
+ var r = this;
9522
+ function handle(n, o) {
9523
+ return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
9524
+ }
9525
+ for (var o = this.tryEntries.length - 1; o >= 0; --o) {
9526
+ var i = this.tryEntries[o],
9527
+ a = i.completion;
9528
+ if ("root" === i.tryLoc) return handle("end");
9529
+ if (i.tryLoc <= this.prev) {
9530
+ var c = n.call(i, "catchLoc"),
9531
+ u = n.call(i, "finallyLoc");
9532
+ if (c && u) {
9533
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
9534
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
9535
+ } else if (c) {
9536
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
9444
9537
  } else {
9445
- if (!hasFinally) throw new Error("try statement without catch or finally");
9446
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
9538
+ if (!u) throw new Error("try statement without catch or finally");
9539
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
9447
9540
  }
9448
9541
  }
9449
9542
  }
9450
9543
  },
9451
- abrupt: function (type, arg) {
9452
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
9453
- var entry = this.tryEntries[i];
9454
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
9455
- var finallyEntry = entry;
9544
+ abrupt: function (t, e) {
9545
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
9546
+ var o = this.tryEntries[r];
9547
+ if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
9548
+ var i = o;
9456
9549
  break;
9457
9550
  }
9458
9551
  }
9459
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
9460
- var record = finallyEntry ? finallyEntry.completion : {};
9461
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
9552
+ i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
9553
+ var a = i ? i.completion : {};
9554
+ return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
9462
9555
  },
9463
- complete: function (record, afterLoc) {
9464
- if ("throw" === record.type) throw record.arg;
9465
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
9556
+ complete: function (t, e) {
9557
+ if ("throw" === t.type) throw t.arg;
9558
+ 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;
9466
9559
  },
9467
- finish: function (finallyLoc) {
9468
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
9469
- var entry = this.tryEntries[i];
9470
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
9560
+ finish: function (t) {
9561
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
9562
+ var r = this.tryEntries[e];
9563
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
9471
9564
  }
9472
9565
  },
9473
- catch: function (tryLoc) {
9474
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
9475
- var entry = this.tryEntries[i];
9476
- if (entry.tryLoc === tryLoc) {
9477
- var record = entry.completion;
9478
- if ("throw" === record.type) {
9479
- var thrown = record.arg;
9480
- resetTryEntry(entry);
9566
+ catch: function (t) {
9567
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
9568
+ var r = this.tryEntries[e];
9569
+ if (r.tryLoc === t) {
9570
+ var n = r.completion;
9571
+ if ("throw" === n.type) {
9572
+ var o = n.arg;
9573
+ resetTryEntry(r);
9481
9574
  }
9482
- return thrown;
9575
+ return o;
9483
9576
  }
9484
9577
  }
9485
9578
  throw new Error("illegal catch attempt");
9486
9579
  },
9487
- delegateYield: function (iterable, resultName, nextLoc) {
9580
+ delegateYield: function (e, r, n) {
9488
9581
  return this.delegate = {
9489
- iterator: values(iterable),
9490
- resultName: resultName,
9491
- nextLoc: nextLoc
9492
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
9582
+ iterator: values(e),
9583
+ resultName: r,
9584
+ nextLoc: n
9585
+ }, "next" === this.method && (this.arg = t), y;
9493
9586
  }
9494
- }, exports;
9587
+ }, e;
9495
9588
  }
9496
9589
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
9497
9590
  try {
@@ -9529,7 +9622,7 @@
9529
9622
  descriptor.enumerable = descriptor.enumerable || false;
9530
9623
  descriptor.configurable = true;
9531
9624
  if ("value" in descriptor) descriptor.writable = true;
9532
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
9625
+ Object.defineProperty(target, _toPropertyKey$1(descriptor.key), descriptor);
9533
9626
  }
9534
9627
  }
9535
9628
  function _createClass(Constructor, protoProps, staticProps) {
@@ -9616,7 +9709,7 @@
9616
9709
  }
9617
9710
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
9618
9711
  }
9619
- function _toPrimitive(input, hint) {
9712
+ function _toPrimitive$1(input, hint) {
9620
9713
  if (typeof input !== "object" || input === null) return input;
9621
9714
  var prim = input[Symbol.toPrimitive];
9622
9715
  if (prim !== undefined) {
@@ -9626,8 +9719,8 @@
9626
9719
  }
9627
9720
  return (hint === "string" ? String : Number)(input);
9628
9721
  }
9629
- function _toPropertyKey(arg) {
9630
- var key = _toPrimitive(arg, "string");
9722
+ function _toPropertyKey$1(arg) {
9723
+ var key = _toPrimitive$1(arg, "string");
9631
9724
  return typeof key === "symbol" ? key : String(key);
9632
9725
  }
9633
9726
 
@@ -11342,23 +11435,23 @@
11342
11435
  /* eslint-disable */
11343
11436
  var STYLES_KEY = '__emotion_styles';
11344
11437
 
11345
- function _typeof(obj) {
11438
+ function _typeof$1(obj) {
11346
11439
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
11347
- _typeof = function _typeof(obj) {
11440
+ _typeof$1 = function _typeof(obj) {
11348
11441
  return typeof obj;
11349
11442
  };
11350
11443
  } else {
11351
- _typeof = function _typeof(obj) {
11444
+ _typeof$1 = function _typeof(obj) {
11352
11445
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
11353
11446
  };
11354
11447
  }
11355
- return _typeof(obj);
11448
+ return _typeof$1(obj);
11356
11449
  }
11357
11450
  function stringifyClass(klass) {
11358
11451
  if (Array.isArray(klass)) {
11359
11452
  return klass.join(' ');
11360
11453
  }
11361
- if (_typeof(klass) === 'object') {
11454
+ if (_typeof$1(klass) === 'object') {
11362
11455
  return Object.keys(klass).filter(function (key) {
11363
11456
  return Boolean(klass[key]);
11364
11457
  }).join(' ');
@@ -13112,11 +13205,7 @@
13112
13205
 
13113
13206
  function _extends$2() {
13114
13207
  return _extends$2 = Object.assign ? Object.assign.bind() : function (a) {
13115
- for (var b, c = 1; c < arguments.length; c++) {
13116
- for (var d in b = arguments[c], b) {
13117
- Object.prototype.hasOwnProperty.call(b, d) && (a[d] = b[d]);
13118
- }
13119
- }
13208
+ for (var b, c = 1; c < arguments.length; c++) for (var d in b = arguments[c], b) Object.prototype.hasOwnProperty.call(b, d) && (a[d] = b[d]);
13120
13209
  return a;
13121
13210
  }, _extends$2.apply(this, arguments);
13122
13211
  }
@@ -13125,23 +13214,17 @@
13125
13214
  functionalMerge = ["on", "nativeOn"],
13126
13215
  mergeJsxProps = function mergeJsxProps(a) {
13127
13216
  return a.reduce(function (c, a) {
13128
- for (var b in a) {
13129
- if (!c[b]) c[b] = a[b];else if (-1 !== normalMerge.indexOf(b)) c[b] = _extends$2({}, c[b], a[b]);else if (-1 !== toArrayMerge.indexOf(b)) {
13130
- var d = c[b] instanceof Array ? c[b] : [c[b]],
13131
- e = a[b] instanceof Array ? a[b] : [a[b]];
13132
- c[b] = [].concat(d, e);
13133
- } else if (-1 !== functionalMerge.indexOf(b)) {
13134
- for (var f in a[b]) {
13135
- if (c[b][f]) {
13136
- var g = c[b][f] instanceof Array ? c[b][f] : [c[b][f]],
13137
- h = a[b][f] instanceof Array ? a[b][f] : [a[b][f]];
13138
- c[b][f] = [].concat(g, h);
13139
- } else c[b][f] = a[b][f];
13140
- }
13141
- } else if ("hook" === b) for (var i in a[b]) {
13142
- c[b][i] = c[b][i] ? mergeFn(c[b][i], a[b][i]) : a[b][i];
13143
- } else c[b] = a[b];
13144
- }
13217
+ for (var b in a) if (!c[b]) c[b] = a[b];else if (-1 !== normalMerge.indexOf(b)) c[b] = _extends$2({}, c[b], a[b]);else if (-1 !== toArrayMerge.indexOf(b)) {
13218
+ var d = c[b] instanceof Array ? c[b] : [c[b]],
13219
+ e = a[b] instanceof Array ? a[b] : [a[b]];
13220
+ c[b] = [].concat(d, e);
13221
+ } else if (-1 !== functionalMerge.indexOf(b)) {
13222
+ for (var f in a[b]) if (c[b][f]) {
13223
+ var g = c[b][f] instanceof Array ? c[b][f] : [c[b][f]],
13224
+ h = a[b][f] instanceof Array ? a[b][f] : [a[b][f]];
13225
+ c[b][f] = [].concat(g, h);
13226
+ } else c[b][f] = a[b][f];
13227
+ } else if ("hook" === b) for (var i in a[b]) c[b][i] = c[b][i] ? mergeFn(c[b][i], a[b][i]) : a[b][i];else c[b] = a[b];
13145
13228
  return c;
13146
13229
  }, {});
13147
13230
  },
@@ -13726,6 +13809,11 @@
13726
13809
  if (this.currentPageState !== newVal && oldVal !== newVal) {
13727
13810
  this.setPage(newVal >= 0 ? newVal : 0);
13728
13811
  }
13812
+ },
13813
+ isLoading: function isLoading(newVal, oldVal) {
13814
+ if (newVal !== oldVal) {
13815
+ this.$emit('loading', newVal);
13816
+ }
13729
13817
  }
13730
13818
  },
13731
13819
  mounted: function mounted() {
@@ -14289,7 +14377,7 @@
14289
14377
  var querystring_3 = querystring.encode;
14290
14378
  var querystring_4 = querystring.stringify;
14291
14379
 
14292
- var _typeof$1 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
14380
+ var _typeof$2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
14293
14381
  return typeof obj;
14294
14382
  } : function (obj) {
14295
14383
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
@@ -14349,7 +14437,7 @@
14349
14437
  var matchedType = types.find(function (type) {
14350
14438
  return (
14351
14439
  // eslint-disable-next-line
14352
- _typeof$1(object[key]) === type
14440
+ _typeof$2(object[key]) === type
14353
14441
  );
14354
14442
  });
14355
14443
  if (!matchedType || object[key] === emptyFor[matchedType]) {
@@ -14433,13 +14521,13 @@
14433
14521
  };
14434
14522
  var checkDataType = function checkDataType(temp) {
14435
14523
  // eslint-disable-next-line
14436
- if ((typeof temp === 'undefined' ? 'undefined' : _typeof$1(temp)) === dataTypes.OBJECT) {
14524
+ if ((typeof temp === 'undefined' ? 'undefined' : _typeof$2(temp)) === dataTypes.OBJECT) {
14437
14525
  if (Array.isArray(temp)) {
14438
14526
  return dataTypes.ARRAY;
14439
14527
  }
14440
14528
  return dataTypes.OBJECT;
14441
14529
  }
14442
- return typeof temp === 'undefined' ? 'undefined' : _typeof$1(temp);
14530
+ return typeof temp === 'undefined' ? 'undefined' : _typeof$2(temp);
14443
14531
  };
14444
14532
  function validateSchema() {
14445
14533
  var passedProperties = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -14699,16 +14787,21 @@
14699
14787
  var transformedRequest = Object.assign({}, ts);
14700
14788
  var url = transformedRequest.url;
14701
14789
  delete transformedRequest.url;
14790
+ var controller = new AbortController();
14791
+ var signal = controller.signal;
14702
14792
  var fetchPromise = fetch$1(url || finalURL, Object.assign({}, transformedRequest, {
14703
14793
  // apply timestamp header for RS API
14704
14794
  headers: isRSAPI && !isMongoRequest ? Object.assign({}, transformedRequest.headers, {
14705
14795
  'x-timestamp': new Date().getTime()
14706
- }) : transformedRequest.headers
14796
+ }) : transformedRequest.headers,
14797
+ signal: signal // Attach the abort signal to the fetch request
14707
14798
  }));
14799
+
14708
14800
  var timeoutPromise = new Promise(function (_, rejectTP) {
14709
14801
  if (httpRequestTimeout > 0) {
14710
14802
  setTimeout(function () {
14711
14803
  rejectTP(new Error('Request timeout'));
14804
+ controller.abort();
14712
14805
  }, httpRequestTimeout);
14713
14806
  }
14714
14807
  });
@@ -15412,6 +15505,22 @@
15412
15505
 
15413
15506
  metrics.getQueryID = function () {
15414
15507
  return metrics.queryID;
15508
+ }; // Save session's usefulness
15509
+
15510
+ metrics.saveSessionUsefulness = function (aiSessionId, usefulnessConfig, callback) {
15511
+ if (typeof aiSessionId !== 'string' || aiSessionId === '') {
15512
+ throw new Error('appbase-analytics: AISessionId is required');
15513
+ }
15514
+ if (typeof usefulnessConfig.useful !== 'boolean') {
15515
+ throw new Error('appbase-analytics: useful property is required and must be a boolean');
15516
+ }
15517
+ var requestBody = {
15518
+ useful: usefulnessConfig.useful,
15519
+ reason: usefulnessConfig.reason,
15520
+ user_id: usefulnessConfig.userID,
15521
+ meta: usefulnessConfig.meta
15522
+ };
15523
+ metrics._request('PUT', "_ai/" + aiSessionId + "/analytics", requestBody, null, callback);
15415
15524
  };
15416
15525
  return metrics;
15417
15526
  }
@@ -16282,16 +16391,17 @@
16282
16391
  };
16283
16392
 
16284
16393
  /**!
16285
- * hotkeys-js v3.10.1
16394
+ * hotkeys-js v3.11.2
16286
16395
  * A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
16287
16396
  *
16288
- * Copyright (c) 2022 kenny wong <wowohoo@qq.com>
16289
- * http://jaywcjlove.github.io/hotkeys
16397
+ * Copyright (c) 2023 kenny wong <wowohoo@qq.com>
16398
+ * https://jaywcjlove.github.io/hotkeys-js
16290
16399
  * Licensed under the MIT license
16291
16400
  */
16292
16401
 
16293
- var isff = typeof navigator !== 'undefined' ? navigator.userAgent.toLowerCase().indexOf('firefox') > 0 : false; // 绑定事件
16402
+ var isff = typeof navigator !== 'undefined' ? navigator.userAgent.toLowerCase().indexOf('firefox') > 0 : false;
16294
16403
 
16404
+ // 绑定事件
16295
16405
  function addEvent(object, event, method, useCapture) {
16296
16406
  if (object.addEventListener) {
16297
16407
  object.addEventListener(event, method, useCapture);
@@ -16300,32 +16410,32 @@
16300
16410
  method(window.event);
16301
16411
  });
16302
16412
  }
16303
- } // 修饰键转换成对应的键码
16413
+ }
16304
16414
 
16415
+ // 修饰键转换成对应的键码
16305
16416
  function getMods(modifier, key) {
16306
16417
  var mods = key.slice(0, key.length - 1);
16307
- for (var i = 0; i < mods.length; i++) {
16308
- mods[i] = modifier[mods[i].toLowerCase()];
16309
- }
16418
+ for (var i = 0; i < mods.length; i++) mods[i] = modifier[mods[i].toLowerCase()];
16310
16419
  return mods;
16311
- } // 处理传的key字符串转换成数组
16420
+ }
16312
16421
 
16422
+ // 处理传的key字符串转换成数组
16313
16423
  function getKeys(key) {
16314
16424
  if (typeof key !== 'string') key = '';
16315
16425
  key = key.replace(/\s/g, ''); // 匹配任何空白字符,包括空格、制表符、换页符等等
16316
-
16317
16426
  var keys = key.split(','); // 同时设置多个快捷键,以','分割
16427
+ var index = keys.lastIndexOf('');
16318
16428
 
16319
- var index = keys.lastIndexOf(''); // 快捷键可能包含',',需特殊处理
16320
-
16429
+ // 快捷键可能包含',',需特殊处理
16321
16430
  for (; index >= 0;) {
16322
16431
  keys[index - 1] += ',';
16323
16432
  keys.splice(index, 1);
16324
16433
  index = keys.lastIndexOf('');
16325
16434
  }
16326
16435
  return keys;
16327
- } // 比较修饰键的数组
16436
+ }
16328
16437
 
16438
+ // 比较修饰键的数组
16329
16439
  function compareArray(a1, a2) {
16330
16440
  var arr1 = a1.length >= a2.length ? a1 : a2;
16331
16441
  var arr2 = a1.length >= a2.length ? a2 : a1;
@@ -16335,6 +16445,8 @@
16335
16445
  }
16336
16446
  return isIndex;
16337
16447
  }
16448
+
16449
+ // Special Keys
16338
16450
  var _keyMap = {
16339
16451
  backspace: 8,
16340
16452
  '⌫': 8,
@@ -16387,8 +16499,9 @@
16387
16499
  '[': 219,
16388
16500
  ']': 221,
16389
16501
  '\\': 220
16390
- }; // Modifier Keys
16502
+ };
16391
16503
 
16504
+ // Modifier Keys
16392
16505
  var _modifier = {
16393
16506
  // shiftKey
16394
16507
  '⇧': 16,
@@ -16422,20 +16535,18 @@
16422
16535
  17: false,
16423
16536
  91: false
16424
16537
  };
16425
- var _handlers = {}; // F1~F12 special key
16538
+ var _handlers = {};
16426
16539
 
16540
+ // F1~F12 special key
16427
16541
  for (var k = 1; k < 20; k++) {
16428
16542
  _keyMap["f".concat(k)] = 111 + k;
16429
16543
  }
16430
16544
  var _downKeys = []; // 记录摁下的绑定键
16431
-
16432
16545
  var winListendFocus = false; // window是否已经监听了focus事件
16433
-
16434
16546
  var _scope = 'all'; // 默认热键范围
16435
-
16436
16547
  var elementHasBindEvent = []; // 已绑定事件的节点记录
16437
- // 返回键码
16438
16548
 
16549
+ // 返回键码
16439
16550
  var code = function code(x) {
16440
16551
  return _keyMap[x.toLowerCase()] || _modifier[x.toLowerCase()] || x.toUpperCase().charCodeAt(0);
16441
16552
  };
@@ -16448,16 +16559,17 @@
16448
16559
  return Object.keys(_modifier).find(function (k) {
16449
16560
  return _modifier[k] === x;
16450
16561
  });
16451
- }; // 设置获取当前范围(默认为'所有')
16562
+ };
16452
16563
 
16564
+ // 设置获取当前范围(默认为'所有')
16453
16565
  function setScope(scope) {
16454
16566
  _scope = scope || 'all';
16455
- } // 获取当前范围
16456
-
16567
+ }
16568
+ // 获取当前范围
16457
16569
  function getScope() {
16458
16570
  return _scope || 'all';
16459
- } // 获取摁下绑定键的键值
16460
-
16571
+ }
16572
+ // 获取摁下绑定键的键值
16461
16573
  function getPressedKeyCodes() {
16462
16574
  return _downKeys.slice(0);
16463
16575
  }
@@ -16465,32 +16577,36 @@
16465
16577
  return _downKeys.map(function (c) {
16466
16578
  return getKey(c) || getModifier(c) || String.fromCharCode(c);
16467
16579
  });
16468
- } // 表单控件控件判断 返回 Boolean
16469
- // hotkey is effective only when filter return true
16580
+ }
16470
16581
 
16582
+ // 表单控件控件判断 返回 Boolean
16583
+ // hotkey is effective only when filter return true
16471
16584
  function filter(event) {
16472
16585
  var target = event.target || event.srcElement;
16473
16586
  var tagName = target.tagName;
16474
- var flag = true; // ignore: isContentEditable === 'true', <input> and <textarea> when readOnly state is false, <select>
16475
-
16587
+ var flag = true;
16588
+ // ignore: isContentEditable === 'true', <input> and <textarea> when readOnly state is false, <select>
16476
16589
  if (target.isContentEditable || (tagName === 'INPUT' || tagName === 'TEXTAREA' || tagName === 'SELECT') && !target.readOnly) {
16477
16590
  flag = false;
16478
16591
  }
16479
16592
  return flag;
16480
- } // 判断摁下的键是否为某个键,返回true或者false
16593
+ }
16481
16594
 
16595
+ // 判断摁下的键是否为某个键,返回true或者false
16482
16596
  function isPressed(keyCode) {
16483
16597
  if (typeof keyCode === 'string') {
16484
16598
  keyCode = code(keyCode); // 转换成键码
16485
16599
  }
16486
16600
 
16487
16601
  return _downKeys.indexOf(keyCode) !== -1;
16488
- } // 循环删除handlers中的所有 scope(范围)
16602
+ }
16489
16603
 
16604
+ // 循环删除handlers中的所有 scope(范围)
16490
16605
  function deleteScope(scope, newScope) {
16491
16606
  var handlers;
16492
- var i; // 没有指定scope,获取scope
16607
+ var i;
16493
16608
 
16609
+ // 没有指定scope,获取scope
16494
16610
  if (!scope) scope = getScope();
16495
16611
  for (var key in _handlers) {
16496
16612
  if (Object.prototype.hasOwnProperty.call(_handlers, key)) {
@@ -16499,30 +16615,33 @@
16499
16615
  if (handlers[i].scope === scope) handlers.splice(i, 1);else i++;
16500
16616
  }
16501
16617
  }
16502
- } // 如果scope被删除,将scope重置为all
16618
+ }
16503
16619
 
16620
+ // 如果scope被删除,将scope重置为all
16504
16621
  if (getScope() === scope) setScope(newScope || 'all');
16505
- } // 清除修饰键
16622
+ }
16506
16623
 
16624
+ // 清除修饰键
16507
16625
  function clearModifier(event) {
16508
16626
  var key = event.keyCode || event.which || event.charCode;
16509
- var i = _downKeys.indexOf(key); // 从列表中清除按压过的键
16627
+ var i = _downKeys.indexOf(key);
16510
16628
 
16629
+ // 从列表中清除按压过的键
16511
16630
  if (i >= 0) {
16512
16631
  _downKeys.splice(i, 1);
16513
- } // 特殊处理 cmmand 键,在 cmmand 组合快捷键 keyup 只执行一次的问题
16514
-
16632
+ }
16633
+ // 特殊处理 cmmand 键,在 cmmand 组合快捷键 keyup 只执行一次的问题
16515
16634
  if (event.key && event.key.toLowerCase() === 'meta') {
16516
16635
  _downKeys.splice(0, _downKeys.length);
16517
- } // 修饰键 shiftKey altKey ctrlKey (command||metaKey) 清除
16636
+ }
16518
16637
 
16638
+ // 修饰键 shiftKey altKey ctrlKey (command||metaKey) 清除
16519
16639
  if (key === 93 || key === 224) key = 91;
16520
16640
  if (key in _mods) {
16521
- _mods[key] = false; // 将修饰键重置为false
16641
+ _mods[key] = false;
16522
16642
 
16523
- for (var k in _modifier) {
16524
- if (_modifier[k] === key) hotkeys[k] = false;
16525
- }
16643
+ // 将修饰键重置为false
16644
+ for (var k in _modifier) if (_modifier[k] === key) hotkeys[k] = false;
16526
16645
  }
16527
16646
  }
16528
16647
  function unbind(keysInfo) {
@@ -16543,7 +16662,6 @@
16543
16662
  for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
16544
16663
  args[_key - 1] = arguments[_key];
16545
16664
  }
16546
-
16547
16665
  // support old method
16548
16666
  // eslint-disable-line
16549
16667
  var scope = args[0],
@@ -16559,8 +16677,9 @@
16559
16677
  splitKey: '+'
16560
16678
  });
16561
16679
  }
16562
- } // 解除绑定某个范围的快捷键
16680
+ }
16563
16681
 
16682
+ // 解除绑定某个范围的快捷键
16564
16683
  var eachUnbind = function eachUnbind(_ref) {
16565
16684
  var key = _ref.key,
16566
16685
  scope = _ref.scope,
@@ -16573,8 +16692,8 @@
16573
16692
  var len = unbindKeys.length;
16574
16693
  var lastKey = unbindKeys[len - 1];
16575
16694
  var keyCode = lastKey === '*' ? '*' : code(lastKey);
16576
- if (!_handlers[keyCode]) return; // 判断是否传入范围,没有就获取范围
16577
-
16695
+ if (!_handlers[keyCode]) return;
16696
+ // 判断是否传入范围,没有就获取范围
16578
16697
  if (!scope) scope = getScope();
16579
16698
  var mods = len > 1 ? getMods(_modifier, unbindKeys) : [];
16580
16699
  _handlers[keyCode] = _handlers[keyCode].filter(function (record) {
@@ -16583,14 +16702,16 @@
16583
16702
  return !(isMatchingMethod && record.scope === scope && compareArray(record.mods, mods));
16584
16703
  });
16585
16704
  });
16586
- }; // 对监听对应快捷键的回调函数进行处理
16705
+ };
16587
16706
 
16707
+ // 对监听对应快捷键的回调函数进行处理
16588
16708
  function eventHandler(event, handler, scope, element) {
16589
16709
  if (handler.element !== element) {
16590
16710
  return;
16591
16711
  }
16592
- var modifiersMatch; // 看它是否在当前范围
16712
+ var modifiersMatch;
16593
16713
 
16714
+ // 看它是否在当前范围
16594
16715
  if (handler.scope === scope || handler.scope === 'all') {
16595
16716
  // 检查是否匹配修饰符(如果有返回true)
16596
16717
  modifiersMatch = handler.mods.length > 0;
@@ -16600,9 +16721,12 @@
16600
16721
  modifiersMatch = false;
16601
16722
  }
16602
16723
  }
16603
- } // 调用处理程序,如果是修饰键不做处理
16724
+ }
16604
16725
 
16726
+ // 调用处理程序,如果是修饰键不做处理
16605
16727
  if (handler.mods.length === 0 && !_mods[16] && !_mods[18] && !_mods[17] && !_mods[91] || modifiersMatch || handler.shortcut === '*') {
16728
+ handler.keys = [];
16729
+ handler.keys = handler.keys.concat(_downKeys);
16606
16730
  if (handler.method(event, handler) === false) {
16607
16731
  if (event.preventDefault) event.preventDefault();else event.returnValue = false;
16608
16732
  if (event.stopPropagation) event.stopPropagation();
@@ -16610,29 +16734,31 @@
16610
16734
  }
16611
16735
  }
16612
16736
  }
16613
- } // 处理keydown事件
16737
+ }
16614
16738
 
16739
+ // 处理keydown事件
16615
16740
  function dispatch(event, element) {
16616
16741
  var asterisk = _handlers['*'];
16617
- var key = event.keyCode || event.which || event.charCode; // 表单控件过滤 默认表单控件不触发快捷键
16742
+ var key = event.keyCode || event.which || event.charCode;
16618
16743
 
16619
- if (!hotkeys.filter.call(this, event)) return; // Gecko(Firefox)的command键值224,在Webkit(Chrome)中保持一致
16620
- // Webkit左右 command 键值不一样
16744
+ // 表单控件过滤 默认表单控件不触发快捷键
16745
+ if (!hotkeys.filter.call(this, event)) return;
16621
16746
 
16747
+ // Gecko(Firefox)的command键值224,在Webkit(Chrome)中保持一致
16748
+ // Webkit左右 command 键值不一样
16622
16749
  if (key === 93 || key === 224) key = 91;
16750
+
16623
16751
  /**
16624
16752
  * Collect bound keys
16625
16753
  * If an Input Method Editor is processing key input and the event is keydown, return 229.
16626
16754
  * https://stackoverflow.com/questions/25043934/is-it-ok-to-ignore-keydown-events-with-keycode-229
16627
16755
  * http://lists.w3.org/Archives/Public/www-dom/2010JulSep/att-0182/keyCode-spec.html
16628
16756
  */
16629
-
16630
16757
  if (_downKeys.indexOf(key) === -1 && key !== 229) _downKeys.push(key);
16631
16758
  /**
16632
16759
  * Jest test cases are required.
16633
16760
  * ===============================
16634
16761
  */
16635
-
16636
16762
  ['ctrlKey', 'altKey', 'shiftKey', 'metaKey'].forEach(function (keyName) {
16637
16763
  var keyNum = modifierMap[keyName];
16638
16764
  if (event[keyName] && _downKeys.indexOf(keyNum) === -1) {
@@ -16654,14 +16780,16 @@
16654
16780
  */
16655
16781
 
16656
16782
  if (key in _mods) {
16657
- _mods[key] = true; // 将特殊字符的key注册到 hotkeys 上
16783
+ _mods[key] = true;
16658
16784
 
16785
+ // 将特殊字符的key注册到 hotkeys 上
16659
16786
  for (var k in _modifier) {
16660
16787
  if (_modifier[k] === key) hotkeys[k] = true;
16661
16788
  }
16662
16789
  if (!asterisk) return;
16663
- } // 将 modifierMap 里面的修饰键绑定到 event 中
16790
+ }
16664
16791
 
16792
+ // 将 modifierMap 里面的修饰键绑定到 event 中
16665
16793
  for (var e in _mods) {
16666
16794
  if (Object.prototype.hasOwnProperty.call(_mods, e)) {
16667
16795
  _mods[e] = event[modifierMap[e]];
@@ -16673,7 +16801,6 @@
16673
16801
  * An example of this is ctrl+alt+m on a Swedish keyboard which is used to type μ.
16674
16802
  * Browser support: https://caniuse.com/#feat=keyboardevent-getmodifierstate
16675
16803
  */
16676
-
16677
16804
  if (event.getModifierState && !(event.altKey && !event.ctrlKey) && event.getModifierState('AltGraph')) {
16678
16805
  if (_downKeys.indexOf(17) === -1) {
16679
16806
  _downKeys.push(17);
@@ -16683,18 +16810,19 @@
16683
16810
  }
16684
16811
  _mods[17] = true;
16685
16812
  _mods[18] = true;
16686
- } // 获取范围 默认为 `all`
16687
-
16688
- var scope = getScope(); // 对任何快捷键都需要做的处理
16813
+ }
16689
16814
 
16815
+ // 获取范围 默认为 `all`
16816
+ var scope = getScope();
16817
+ // 对任何快捷键都需要做的处理
16690
16818
  if (asterisk) {
16691
16819
  for (var i = 0; i < asterisk.length; i++) {
16692
16820
  if (asterisk[i].scope === scope && (event.type === 'keydown' && asterisk[i].keydown || event.type === 'keyup' && asterisk[i].keyup)) {
16693
16821
  eventHandler(event, asterisk[i], scope, element);
16694
16822
  }
16695
16823
  }
16696
- } // key 不在 _handlers 中返回
16697
-
16824
+ }
16825
+ // key 不在 _handlers 中返回
16698
16826
  if (!(key in _handlers)) return;
16699
16827
  for (var _i = 0; _i < _handlers[key].length; _i++) {
16700
16828
  if (event.type === 'keydown' && _handlers[key][_i].keydown || event.type === 'keyup' && _handlers[key][_i].keyup) {
@@ -16703,7 +16831,6 @@
16703
16831
  var splitKey = record.splitKey;
16704
16832
  var keyShortcut = record.key.split(splitKey);
16705
16833
  var _downKeysCurrent = []; // 记录当前按键键值
16706
-
16707
16834
  for (var a = 0; a < keyShortcut.length; a++) {
16708
16835
  _downKeysCurrent.push(code(keyShortcut[a]));
16709
16836
  }
@@ -16714,56 +16841,52 @@
16714
16841
  }
16715
16842
  }
16716
16843
  }
16717
- } // 判断 element 是否已经绑定事件
16844
+ }
16718
16845
 
16846
+ // 判断 element 是否已经绑定事件
16719
16847
  function isElementBind(element) {
16720
16848
  return elementHasBindEvent.indexOf(element) > -1;
16721
16849
  }
16722
16850
  function hotkeys(key, option, method) {
16723
16851
  _downKeys = [];
16724
16852
  var keys = getKeys(key); // 需要处理的快捷键列表
16725
-
16726
16853
  var mods = [];
16727
16854
  var scope = 'all'; // scope默认为all,所有范围都有效
16728
-
16729
16855
  var element = document; // 快捷键事件绑定节点
16730
-
16731
16856
  var i = 0;
16732
16857
  var keyup = false;
16733
16858
  var keydown = true;
16734
16859
  var splitKey = '+';
16735
- var capture = false; // 对为设定范围的判断
16860
+ var capture = false;
16736
16861
 
16862
+ // 对为设定范围的判断
16737
16863
  if (method === undefined && typeof option === 'function') {
16738
16864
  method = option;
16739
16865
  }
16740
16866
  if (Object.prototype.toString.call(option) === '[object Object]') {
16741
16867
  if (option.scope) scope = option.scope; // eslint-disable-line
16742
-
16743
16868
  if (option.element) element = option.element; // eslint-disable-line
16744
-
16745
16869
  if (option.keyup) keyup = option.keyup; // eslint-disable-line
16746
-
16747
16870
  if (option.keydown !== undefined) keydown = option.keydown; // eslint-disable-line
16748
-
16749
16871
  if (option.capture !== undefined) capture = option.capture; // eslint-disable-line
16750
-
16751
16872
  if (typeof option.splitKey === 'string') splitKey = option.splitKey; // eslint-disable-line
16752
16873
  }
16753
16874
 
16754
- if (typeof option === 'string') scope = option; // 对于每个快捷键进行处理
16875
+ if (typeof option === 'string') scope = option;
16755
16876
 
16877
+ // 对于每个快捷键进行处理
16756
16878
  for (; i < keys.length; i++) {
16757
16879
  key = keys[i].split(splitKey); // 按键列表
16880
+ mods = [];
16758
16881
 
16759
- mods = []; // 如果是组合快捷键取得组合快捷键
16760
-
16761
- if (key.length > 1) mods = getMods(_modifier, key); // 将非修饰键转化为键码
16882
+ // 如果是组合快捷键取得组合快捷键
16883
+ if (key.length > 1) mods = getMods(_modifier, key);
16762
16884
 
16885
+ // 将非修饰键转化为键码
16763
16886
  key = key[key.length - 1];
16764
16887
  key = key === '*' ? '*' : code(key); // *表示匹配所有快捷键
16765
- // 判断key是否在_handlers中,不在就赋一个空数组
16766
16888
 
16889
+ // 判断key是否在_handlers中,不在就赋一个空数组
16767
16890
  if (!(key in _handlers)) _handlers[key] = [];
16768
16891
  _handlers[key].push({
16769
16892
  keyup: keyup,
@@ -16776,8 +16899,8 @@
16776
16899
  splitKey: splitKey,
16777
16900
  element: element
16778
16901
  });
16779
- } // 在全局document上设置快捷键
16780
-
16902
+ }
16903
+ // 在全局document上设置快捷键
16781
16904
  if (typeof element !== 'undefined' && !isElementBind(element) && window) {
16782
16905
  elementHasBindEvent.push(element);
16783
16906
  addEvent(element, 'keydown', function (e) {
@@ -16938,83 +17061,7 @@
16938
17061
  return theme.colors.borderColor || '#000';
16939
17062
  });
16940
17063
 
16941
- function t(t) {
16942
- return "object" == typeof t && null != t && 1 === t.nodeType;
16943
- }
16944
- function e(t, e) {
16945
- return (!e || "hidden" !== t) && "visible" !== t && "clip" !== t;
16946
- }
16947
- function n(t, n) {
16948
- if (t.clientHeight < t.scrollHeight || t.clientWidth < t.scrollWidth) {
16949
- var r = getComputedStyle(t, null);
16950
- return e(r.overflowY, n) || e(r.overflowX, n) || function (t) {
16951
- var e = function (t) {
16952
- if (!t.ownerDocument || !t.ownerDocument.defaultView) return null;
16953
- try {
16954
- return t.ownerDocument.defaultView.frameElement;
16955
- } catch (t) {
16956
- return null;
16957
- }
16958
- }(t);
16959
- return !!e && (e.clientHeight < t.scrollHeight || e.clientWidth < t.scrollWidth);
16960
- }(t);
16961
- }
16962
- return !1;
16963
- }
16964
- function r(t, e, n, r, i, o, l, d) {
16965
- return o < t && l > e || o > t && l < e ? 0 : o <= t && d <= n || l >= e && d >= n ? o - t - r : l > e && d < n || o < t && d > n ? l - e + i : 0;
16966
- }
16967
- function computeScrollIntoView (e, i) {
16968
- var o = window,
16969
- l = i.scrollMode,
16970
- d = i.block,
16971
- u = i.inline,
16972
- h = i.boundary,
16973
- a = i.skipOverflowHiddenElements,
16974
- c = "function" == typeof h ? h : function (t) {
16975
- return t !== h;
16976
- };
16977
- if (!t(e)) throw new TypeError("Invalid target");
16978
- for (var f = document.scrollingElement || document.documentElement, s = [], p = e; t(p) && c(p);) {
16979
- if ((p = p.parentElement) === f) {
16980
- s.push(p);
16981
- break;
16982
- }
16983
- null != p && p === document.body && n(p) && !n(document.documentElement) || null != p && n(p, a) && s.push(p);
16984
- }
16985
- for (var m = o.visualViewport ? o.visualViewport.width : innerWidth, g = o.visualViewport ? o.visualViewport.height : innerHeight, w = window.scrollX || pageXOffset, v = window.scrollY || pageYOffset, W = e.getBoundingClientRect(), b = W.height, H = W.width, y = W.top, E = W.right, M = W.bottom, V = W.left, x = "start" === d || "nearest" === d ? y : "end" === d ? M : y + b / 2, I = "center" === u ? V + H / 2 : "end" === u ? E : V, C = [], T = 0; T < s.length; T++) {
16986
- var k = s[T],
16987
- B = k.getBoundingClientRect(),
16988
- D = B.height,
16989
- O = B.width,
16990
- R = B.top,
16991
- X = B.right,
16992
- Y = B.bottom,
16993
- L = B.left;
16994
- if ("if-needed" === l && y >= 0 && V >= 0 && M <= g && E <= m && y >= R && M <= Y && V >= L && E <= X) return C;
16995
- var S = getComputedStyle(k),
16996
- j = parseInt(S.borderLeftWidth, 10),
16997
- q = parseInt(S.borderTopWidth, 10),
16998
- z = parseInt(S.borderRightWidth, 10),
16999
- A = parseInt(S.borderBottomWidth, 10),
17000
- F = 0,
17001
- G = 0,
17002
- J = "offsetWidth" in k ? k.offsetWidth - k.clientWidth - j - z : 0,
17003
- K = "offsetHeight" in k ? k.offsetHeight - k.clientHeight - q - A : 0;
17004
- if (f === k) F = "start" === d ? x : "end" === d ? x - g : "nearest" === d ? r(v, v + g, g, q, A, v + x, v + x + b, b) : x - g / 2, G = "start" === u ? I : "center" === u ? I - m / 2 : "end" === u ? I - m : r(w, w + m, m, j, z, w + I, w + I + H, H), F = Math.max(0, F + v), G = Math.max(0, G + w);else {
17005
- F = "start" === d ? x - R - q : "end" === d ? x - Y + A + K : "nearest" === d ? r(R, Y, D, q, A + K, x, x + b, b) : x - (R + D / 2) + K / 2, G = "start" === u ? I - L - j : "center" === u ? I - (L + O / 2) + J / 2 : "end" === u ? I - X + z + J : r(L, X, O, j, z + J, I, I + H, H);
17006
- var N = k.scrollLeft,
17007
- P = k.scrollTop;
17008
- x += P - (F = Math.max(0, Math.min(P + F, k.scrollHeight - D + K))), I += N - (G = Math.max(0, Math.min(N + G, k.scrollWidth - O + J)));
17009
- }
17010
- C.push({
17011
- el: k,
17012
- top: F,
17013
- left: G
17014
- });
17015
- }
17016
- return C;
17017
- }
17064
+ function t(t){return "object"==typeof t&&null!=t&&1===t.nodeType}function e(t,e){return (!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t}function n(t,n){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var r=getComputedStyle(t,null);return e(r.overflowY,n)||e(r.overflowX,n)||function(t){var e=function(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return null;try{return t.ownerDocument.defaultView.frameElement}catch(t){return null}}(t);return !!e&&(e.clientHeight<t.scrollHeight||e.clientWidth<t.scrollWidth)}(t)}return !1}function r(t,e,n,r,i,o,l,d){return o<t&&l>e||o>t&&l<e?0:o<=t&&d<=n||l>=e&&d>=n?o-t-r:l>e&&d<n||o<t&&d>n?l-e+i:0}var i=function(e,i){var o=window,l=i.scrollMode,d=i.block,f=i.inline,h=i.boundary,u=i.skipOverflowHiddenElements,s="function"==typeof h?h:function(t){return t!==h};if(!t(e))throw new TypeError("Invalid target");for(var a,c,g=document.scrollingElement||document.documentElement,p=[],m=e;t(m)&&s(m);){if((m=null==(c=(a=m).parentElement)?a.getRootNode().host||null:c)===g){p.push(m);break}null!=m&&m===document.body&&n(m)&&!n(document.documentElement)||null!=m&&n(m,u)&&p.push(m);}for(var w=o.visualViewport?o.visualViewport.width:innerWidth,v=o.visualViewport?o.visualViewport.height:innerHeight,W=window.scrollX||pageXOffset,H=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),y=b.height,E=b.width,M=b.top,V=b.right,x=b.bottom,I=b.left,C="start"===d||"nearest"===d?M:"end"===d?x:M+y/2,R="center"===f?I+E/2:"end"===f?V:I,T=[],k=0;k<p.length;k++){var B=p[k],D=B.getBoundingClientRect(),O=D.height,X=D.width,Y=D.top,L=D.right,S=D.bottom,j=D.left;if("if-needed"===l&&M>=0&&I>=0&&x<=v&&V<=w&&M>=Y&&x<=S&&I>=j&&V<=L)return T;var N=getComputedStyle(B),q=parseInt(N.borderLeftWidth,10),z=parseInt(N.borderTopWidth,10),A=parseInt(N.borderRightWidth,10),F=parseInt(N.borderBottomWidth,10),G=0,J=0,K="offsetWidth"in B?B.offsetWidth-B.clientWidth-q-A:0,P="offsetHeight"in B?B.offsetHeight-B.clientHeight-z-F:0,Q="offsetWidth"in B?0===B.offsetWidth?0:X/B.offsetWidth:0,U="offsetHeight"in B?0===B.offsetHeight?0:O/B.offsetHeight:0;if(g===B)G="start"===d?C:"end"===d?C-v:"nearest"===d?r(H,H+v,v,z,F,H+C,H+C+y,y):C-v/2,J="start"===f?R:"center"===f?R-w/2:"end"===f?R-w:r(W,W+w,w,q,A,W+R,W+R+E,E),G=Math.max(0,G+H),J=Math.max(0,J+W);else {G="start"===d?C-Y-z:"end"===d?C-S+F+P:"nearest"===d?r(Y,S,O,z,F+P,C,C+y,y):C-(Y+O/2)+P/2,J="start"===f?R-j-q:"center"===f?R-(j+X/2)+K/2:"end"===f?R-L+A+K:r(j,L,X,q,A+K,R,R+E,E);var Z=B.scrollLeft,$=B.scrollTop;C+=$-(G=Math.max(0,Math.min($+G/U,B.scrollHeight-O/U+P))),R+=Z-(J=Math.max(0,Math.min(Z+J/Q,B.scrollWidth-X/Q+K)));}T.push({el:B,top:G,left:J});}return T};
17018
17065
 
17019
17066
  /**
17020
17067
  * Scroll node into view if necessary
@@ -17026,7 +17073,7 @@
17026
17073
  if (node === null) {
17027
17074
  return;
17028
17075
  }
17029
- var actions = computeScrollIntoView(node, {
17076
+ var actions = i(node, {
17030
17077
  boundary: rootNode,
17031
17078
  block: 'nearest',
17032
17079
  scrollMode: 'if-needed'
@@ -19495,14 +19542,14 @@
19495
19542
  }, [this.renderIcon()])])]);
19496
19543
  },
19497
19544
  focusSearchBox: function focusSearchBox(event) {
19498
- var _this$$refs, _this$$refs$this$$pro;
19545
+ var _this$$refs;
19499
19546
  var elt = event.target || event.srcElement;
19500
19547
  var tagName = elt.tagName;
19501
19548
  if (elt.isContentEditable || tagName === 'INPUT' || tagName === 'SELECT' || tagName === 'TEXTAREA') {
19502
19549
  // already in an input
19503
19550
  return;
19504
19551
  }
19505
- (_this$$refs = this.$refs) == null ? void 0 : (_this$$refs$this$$pro = _this$$refs[this.$props.innerRef]) == null ? void 0 : _this$$refs$this$$pro.focus(); // eslint-disable-line
19552
+ (_this$$refs = this.$refs) == null || (_this$$refs = _this$$refs[this.$props.innerRef]) == null ? void 0 : _this$$refs.focus(); // eslint-disable-line
19506
19553
  },
19507
19554
  listenForFocusShortcuts: function listenForFocusShortcuts() {
19508
19555
  var _this5 = this;
@@ -20727,14 +20774,14 @@
20727
20774
  }, [this.renderIcon()])])]);
20728
20775
  },
20729
20776
  focusSearchBox: function focusSearchBox(event) {
20730
- var _this$$refs, _this$$refs$this$$pro;
20777
+ var _this$$refs;
20731
20778
  var elt = event.target || event.srcElement;
20732
20779
  var tagName = elt.tagName;
20733
20780
  if (elt.isContentEditable || tagName === 'INPUT' || tagName === 'SELECT' || tagName === 'TEXTAREA') {
20734
20781
  // already in an input
20735
20782
  return;
20736
20783
  }
20737
- (_this$$refs = this.$refs) == null ? void 0 : (_this$$refs$this$$pro = _this$$refs[this.$props.innerRef]) == null ? void 0 : _this$$refs$this$$pro.focus(); // eslint-disable-line
20784
+ (_this$$refs = this.$refs) == null || (_this$$refs = _this$$refs[this.$props.innerRef]) == null ? void 0 : _this$$refs.focus(); // eslint-disable-line
20738
20785
  },
20739
20786
  listenForFocusShortcuts: function listenForFocusShortcuts() {
20740
20787
  var _this5 = this;
@@ -21951,14 +21998,14 @@
21951
21998
  if (selectAllLabel && selectAllLabel in currentValue) {
21952
21999
  var _currentValue = currentValue,
21953
22000
  del = _currentValue[selectAllLabel],
21954
- obj = _objectWithoutPropertiesLoose(_currentValue, [selectAllLabel].map(_toPropertyKey));
22001
+ obj = _objectWithoutPropertiesLoose(_currentValue, [selectAllLabel].map(_toPropertyKey$1));
21955
22002
  currentValue = _extends({}, obj);
21956
22003
  }
21957
22004
  } else {
21958
22005
  if (currentValue[value]) {
21959
22006
  var _currentValue2 = currentValue,
21960
22007
  _del = _currentValue2[value],
21961
- rest = _objectWithoutPropertiesLoose(_currentValue2, [value].map(_toPropertyKey));
22008
+ rest = _objectWithoutPropertiesLoose(_currentValue2, [value].map(_toPropertyKey$1));
21962
22009
  currentValue = _extends({}, rest);
21963
22010
  } else if (Array.isArray(value)) {
21964
22011
  value.forEach(function (val) {
@@ -21970,7 +22017,7 @@
21970
22017
  if (selectAllLabel && selectAllLabel in currentValue) {
21971
22018
  var _currentValue3 = currentValue,
21972
22019
  _del2 = _currentValue3[selectAllLabel],
21973
- _obj = _objectWithoutPropertiesLoose(_currentValue3, [selectAllLabel].map(_toPropertyKey));
22020
+ _obj = _objectWithoutPropertiesLoose(_currentValue3, [selectAllLabel].map(_toPropertyKey$1));
21974
22021
  currentValue = _extends({}, _obj);
21975
22022
  }
21976
22023
  finalValues = Object.keys(currentValue);
@@ -23212,14 +23259,14 @@
23212
23259
  if (selectAllLabel && selectAllLabel in currentValue) {
23213
23260
  var _currentValue = currentValue,
23214
23261
  del = _currentValue[selectAllLabel],
23215
- obj = _objectWithoutPropertiesLoose(_currentValue, [selectAllLabel].map(_toPropertyKey));
23262
+ obj = _objectWithoutPropertiesLoose(_currentValue, [selectAllLabel].map(_toPropertyKey$1));
23216
23263
  currentValue = _extends({}, obj);
23217
23264
  }
23218
23265
  } else {
23219
23266
  if (currentValue[value]) {
23220
23267
  var _currentValue2 = currentValue,
23221
23268
  _del = _currentValue2[value],
23222
- rest = _objectWithoutPropertiesLoose(_currentValue2, [value].map(_toPropertyKey));
23269
+ rest = _objectWithoutPropertiesLoose(_currentValue2, [value].map(_toPropertyKey$1));
23223
23270
  currentValue = _extends({}, rest);
23224
23271
  } else {
23225
23272
  currentValue[value] = true;
@@ -23227,7 +23274,7 @@
23227
23274
  if (selectAllLabel && selectAllLabel in currentValue) {
23228
23275
  var _currentValue3 = currentValue,
23229
23276
  _del2 = _currentValue3[selectAllLabel],
23230
- _obj = _objectWithoutPropertiesLoose(_currentValue3, [selectAllLabel].map(_toPropertyKey));
23277
+ _obj = _objectWithoutPropertiesLoose(_currentValue3, [selectAllLabel].map(_toPropertyKey$1));
23231
23278
  currentValue = _extends({}, _obj);
23232
23279
  }
23233
23280
  finalValues = Object.keys(currentValue);
@@ -23782,6 +23829,11 @@
23782
23829
  index: VueTypes.string,
23783
23830
  endpoint: types.endpointConfig
23784
23831
  },
23832
+ data: function data() {
23833
+ return {
23834
+ currentValue: this.selectedValue
23835
+ };
23836
+ },
23785
23837
  created: function created() {
23786
23838
  var _this = this;
23787
23839
  var props = this.$props;
@@ -23870,6 +23922,12 @@
23870
23922
  }
23871
23923
  },
23872
23924
  watch: {
23925
+ selectedValue: function selectedValue(newVal, oldVal) {
23926
+ if (!isEqual$b(newVal, oldVal)) {
23927
+ this.$emit('data', this.getData());
23928
+ this.currentValue = newVal;
23929
+ }
23930
+ },
23873
23931
  hits: function hits(newVal, oldVal) {
23874
23932
  if (!isEqual$b(newVal, oldVal)) {
23875
23933
  this.$emit('data', this.getData());
@@ -23950,14 +24008,13 @@
23950
24008
  try {
23951
24009
  var dom = this.$scopedSlots["default"];
23952
24010
  var error = this.error,
23953
- isLoading = this.isLoading,
23954
- selectedValue = this.selectedValue;
24011
+ isLoading = this.isLoading;
23955
24012
  var propsToBePassed = _extends({
23956
24013
  error: error,
23957
24014
  loading: isLoading
23958
24015
  }, this.getData(), {
23959
- value: selectedValue,
23960
- setQuery: this.setQuery
24016
+ setQuery: this.setQuery,
24017
+ value: this.currentValue
23961
24018
  });
23962
24019
  return h("div", [dom(propsToBePassed)]);
23963
24020
  } catch (e) {
@@ -24842,7 +24899,7 @@
24842
24899
  });
24843
24900
  var _selectedValues = selectedValues,
24844
24901
  del = _selectedValues[item],
24845
- selected = _objectWithoutPropertiesLoose(_selectedValues, [item].map(_toPropertyKey));
24902
+ selected = _objectWithoutPropertiesLoose(_selectedValues, [item].map(_toPropertyKey$1));
24846
24903
  selectedValues = selected;
24847
24904
  } else {
24848
24905
  var _extends2;
@@ -26291,14 +26348,14 @@
26291
26348
  }
26292
26349
  return target;
26293
26350
  }
26294
- function _typeof$2(obj) {
26351
+ function _typeof$3(obj) {
26295
26352
  "@babel/helpers - typeof";
26296
26353
 
26297
- return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
26354
+ return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
26298
26355
  return typeof obj;
26299
26356
  } : function (obj) {
26300
26357
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
26301
- }, _typeof$2(obj);
26358
+ }, _typeof$3(obj);
26302
26359
  }
26303
26360
  function _defineProperty$2(obj, key, value) {
26304
26361
  if (key in obj) {
@@ -27181,62 +27238,60 @@
27181
27238
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
27182
27239
  var scopedInput, autocompleteOptions;
27183
27240
  return _regeneratorRuntime().wrap(function _callee$(_context) {
27184
- while (1) {
27185
- switch (_context.prev = _context.next) {
27186
- case 0:
27187
- _context.next = 2;
27188
- return _this.$gmapApiPromiseLazy();
27189
- case 2:
27190
- scopedInput = null;
27191
- if (!_this.$scopedSlots["default"]) {
27192
- _context.next = 9;
27193
- break;
27194
- }
27195
- if (Object.keys(_this.$scopedSlots["default"]()[0].context.$refs).length) {
27196
- _context.next = 6;
27197
- break;
27198
- }
27199
- throw new Error('If you use the slot input you must add a ref to the element that you will use as the input, and if you use a vue component, eg: v-text-field, etc, you need to set the childRefName indicating what is the ref name of the html input elemnt behind your component.');
27200
- case 6:
27201
- scopedInput = _this.$scopedSlots["default"]()[0].context.$refs[_this.slotRefName];
27202
- if (scopedInput && scopedInput.$refs) {
27203
- scopedInput = scopedInput.$refs[_this.childRefName];
27204
- }
27205
- if (scopedInput) {
27206
- _this.$refs.input = scopedInput;
27207
- }
27208
- case 9:
27209
- if (_this.selectFirstOnEnter) {
27210
- downArrowSimulator(_this.$refs.input);
27211
- }
27212
- if (!(typeof google.maps.places.Autocomplete !== 'function')) {
27213
- _context.next = 12;
27214
- break;
27215
- }
27216
- throw new Error("google.maps.places.Autocomplete is undefined. Did you add 'places' to libraries when loading Google Maps?");
27217
- case 12:
27218
- autocompleteOptions = _extends({}, getPropsValues(_this, autocompleteMappedProps), _this.options);
27219
- _this.$autocomplete = new google.maps.places.Autocomplete(_this.$refs.input, autocompleteOptions);
27220
- bindProps(_this, _this.$autocomplete, autocompleteMappedProps);
27221
- if (_this.setFieldsTo) {
27222
- _this.$autocomplete.setFields(_this.setFieldsTo);
27223
- }
27241
+ while (1) switch (_context.prev = _context.next) {
27242
+ case 0:
27243
+ _context.next = 2;
27244
+ return _this.$gmapApiPromiseLazy();
27245
+ case 2:
27246
+ scopedInput = null;
27247
+ if (!_this.$scopedSlots["default"]) {
27248
+ _context.next = 9;
27249
+ break;
27250
+ }
27251
+ if (Object.keys(_this.$scopedSlots["default"]()[0].context.$refs).length) {
27252
+ _context.next = 6;
27253
+ break;
27254
+ }
27255
+ throw new Error('If you use the slot input you must add a ref to the element that you will use as the input, and if you use a vue component, eg: v-text-field, etc, you need to set the childRefName indicating what is the ref name of the html input elemnt behind your component.');
27256
+ case 6:
27257
+ scopedInput = _this.$scopedSlots["default"]()[0].context.$refs[_this.slotRefName];
27258
+ if (scopedInput && scopedInput.$refs) {
27259
+ scopedInput = scopedInput.$refs[_this.childRefName];
27260
+ }
27261
+ if (scopedInput) {
27262
+ _this.$refs.input = scopedInput;
27263
+ }
27264
+ case 9:
27265
+ if (_this.selectFirstOnEnter) {
27266
+ downArrowSimulator(_this.$refs.input);
27267
+ }
27268
+ if (!(typeof google.maps.places.Autocomplete !== 'function')) {
27269
+ _context.next = 12;
27270
+ break;
27271
+ }
27272
+ throw new Error("google.maps.places.Autocomplete is undefined. Did you add 'places' to libraries when loading Google Maps?");
27273
+ case 12:
27274
+ autocompleteOptions = _extends({}, getPropsValues(_this, autocompleteMappedProps), _this.options);
27275
+ _this.$autocomplete = new google.maps.places.Autocomplete(_this.$refs.input, autocompleteOptions);
27276
+ bindProps(_this, _this.$autocomplete, autocompleteMappedProps);
27277
+ if (_this.setFieldsTo) {
27278
+ _this.$autocomplete.setFields(_this.setFieldsTo);
27279
+ }
27224
27280
 
27225
- // Not using `bindEvents` because we also want
27226
- // to return the result of `getPlace()`
27227
- _this.$autocomplete.addListener('place_changed', function () {
27228
- /**
27229
- * Place change event
27230
- * @event place_changed
27231
- * @property {object} place `this.$autocomplete.getPlace()`
27232
- * @see [Get place information](https://developers.google.com/maps/documentation/javascript/places-autocomplete#get-place-information)
27233
- */
27234
- _this.$emit('place_changed', _this.$autocomplete.getPlace());
27235
- });
27236
- case 17:
27237
- case "end":
27238
- return _context.stop();
27239
- }
27281
+ // Not using `bindEvents` because we also want
27282
+ // to return the result of `getPlace()`
27283
+ _this.$autocomplete.addListener('place_changed', function () {
27284
+ /**
27285
+ * Place change event
27286
+ * @event place_changed
27287
+ * @property {object} place `this.$autocomplete.getPlace()`
27288
+ * @see [Get place information](https://developers.google.com/maps/documentation/javascript/places-autocomplete#get-place-information)
27289
+ */
27290
+ _this.$emit('place_changed', _this.$autocomplete.getPlace());
27291
+ });
27292
+ case 17:
27293
+ case "end":
27294
+ return _context.stop();
27240
27295
  }
27241
27296
  }, _callee);
27242
27297
  }))();
@@ -27650,12 +27705,8 @@
27650
27705
  swapItem(ids, coords, i, j);
27651
27706
  i++;
27652
27707
  j--;
27653
- while (coords[2 * i + inc] < t) {
27654
- i++;
27655
- }
27656
- while (coords[2 * j + inc] > t) {
27657
- j--;
27658
- }
27708
+ while (coords[2 * i + inc] < t) i++;
27709
+ while (coords[2 * j + inc] > t) j--;
27659
27710
  }
27660
27711
  if (coords[2 * left + inc] === t) swapItem(ids, coords, left, j);else {
27661
27712
  j++;
@@ -28161,9 +28212,7 @@
28161
28212
  return 360 * Math.atan(Math.exp(y2)) / Math.PI - 90;
28162
28213
  }
28163
28214
  function extend(dest, src) {
28164
- for (var id in src) {
28165
- dest[id] = src[id];
28166
- }
28215
+ for (var id in src) dest[id] = src[id];
28167
28216
  return dest;
28168
28217
  }
28169
28218
  function getX(p) {
@@ -28181,9 +28230,7 @@
28181
28230
  if (Array.isArray(a)) {
28182
28231
  length = a.length;
28183
28232
  if (length != b.length) return false;
28184
- for (i = length; i-- !== 0;) {
28185
- if (!equal(a[i], b[i])) return false;
28186
- }
28233
+ for (i = length; i-- !== 0;) if (!equal(a[i], b[i])) return false;
28187
28234
  return true;
28188
28235
  }
28189
28236
  if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
@@ -28192,9 +28239,7 @@
28192
28239
  keys = Object.keys(a);
28193
28240
  length = keys.length;
28194
28241
  if (length !== Object.keys(b).length) return false;
28195
- for (i = length; i-- !== 0;) {
28196
- if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
28197
- }
28242
+ for (i = length; i-- !== 0;) if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
28198
28243
  for (i = length; i-- !== 0;) {
28199
28244
  var key = keys[i];
28200
28245
  if (!equal(a[key], b[key])) return false;
@@ -28222,9 +28267,7 @@
28222
28267
 
28223
28268
  function __rest(s, e) {
28224
28269
  var t = {};
28225
- for (var p in s) {
28226
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
28227
- }
28270
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
28228
28271
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
28229
28272
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
28230
28273
  }
@@ -31550,7 +31593,7 @@
31550
31593
  * such as Google for business
31551
31594
  * https://developers.google.com/maps/documentation/javascript/get-api-key#premium-auth
31552
31595
  */
31553
- if (_typeof$2(options) !== 'object') {
31596
+ if (_typeof$3(options) !== 'object') {
31554
31597
  throw new Error('options should be an object');
31555
31598
  } // Do nothing if run from server-side
31556
31599
 
@@ -31785,8 +31828,8 @@
31785
31828
 
31786
31829
  var BASE32_CODES = "0123456789bcdefghjkmnpqrstuvwxyz";
31787
31830
  var BASE32_CODES_DICT = {};
31788
- for (var i = 0; i < BASE32_CODES.length; i++) {
31789
- BASE32_CODES_DICT[BASE32_CODES.charAt(i)] = i;
31831
+ for (var i$1 = 0; i$1 < BASE32_CODES.length; i$1++) {
31832
+ BASE32_CODES_DICT[BASE32_CODES.charAt(i$1)] = i$1;
31790
31833
  }
31791
31834
  var ENCODE_AUTO = 'auto';
31792
31835
  var MIN_LAT = -90;
@@ -33433,7 +33476,7 @@
33433
33476
  var id = marker.metaData && marker.metaData._id;
33434
33477
  var _this$openMarkers = this.openMarkers,
33435
33478
  del = _this$openMarkers[id],
33436
- activeMarkers = _objectWithoutPropertiesLoose(_this$openMarkers, [id].map(_toPropertyKey));
33479
+ activeMarkers = _objectWithoutPropertiesLoose(_this$openMarkers, [id].map(_toPropertyKey$1));
33437
33480
  var newOpenMarkers = autoClosePopover ? {} : activeMarkers;
33438
33481
  this.setOpenMarkers(newOpenMarkers);
33439
33482
  handlePreserveCenter(true);
@@ -33941,7 +33984,7 @@
33941
33984
  openMarkers = _this$$props2.openMarkers;
33942
33985
  var id = marker._id;
33943
33986
  var del = openMarkers[id],
33944
- activeMarkers = _objectWithoutPropertiesLoose(openMarkers, [id].map(_toPropertyKey));
33987
+ activeMarkers = _objectWithoutPropertiesLoose(openMarkers, [id].map(_toPropertyKey$1));
33945
33988
  var newOpenMarkers = autoClosePopover ? {} : activeMarkers;
33946
33989
  handleOpenMarkers(newOpenMarkers);
33947
33990
  handlePreserveCenter(true);
@@ -34880,7 +34923,7 @@
34880
34923
  });
34881
34924
  }
34882
34925
 
34883
- var version = "1.35.0";
34926
+ var version = "1.35.2";
34884
34927
 
34885
34928
  var components$1 = [RLConnected, ResultCard, ResultList, ReactiveBase, DSConnected, SBConnected, ListConnected, ListConnected$1, RangeConnected$1, RangeConnected$2, RangeConnected$3, RangeConnected, RcConnected, RcConnected$1, RcConnected$2, TBConnected, ListConnected$2, ListConnected$3, StateProviderConnected, RangeConnected$4];
34886
34929
  function install (Vue) {