@aws-amplify/geo 1.3.11 → 1.3.12-size-improvement.21

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.
@@ -28568,6 +28568,260 @@ class QuickLRU {
28568
28568
  module.exports = QuickLRU;
28569
28569
 
28570
28570
 
28571
+ /***/ }),
28572
+
28573
+ /***/ "../../node_modules/tslib/tslib.es6.js":
28574
+ /*!********************************************************!*\
28575
+ !*** /root/amplify-js/node_modules/tslib/tslib.es6.js ***!
28576
+ \********************************************************/
28577
+ /*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet */
28578
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
28579
+
28580
+ "use strict";
28581
+ __webpack_require__.r(__webpack_exports__);
28582
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
28583
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
28584
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
28585
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
28586
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
28587
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
28588
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
28589
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
28590
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__createBinding", function() { return __createBinding; });
28591
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
28592
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
28593
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
28594
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
28595
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; });
28596
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
28597
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
28598
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
28599
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
28600
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
28601
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
28602
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
28603
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldGet", function() { return __classPrivateFieldGet; });
28604
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldSet", function() { return __classPrivateFieldSet; });
28605
+ /*! *****************************************************************************
28606
+ Copyright (c) Microsoft Corporation.
28607
+
28608
+ Permission to use, copy, modify, and/or distribute this software for any
28609
+ purpose with or without fee is hereby granted.
28610
+
28611
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
28612
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
28613
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
28614
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
28615
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
28616
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28617
+ PERFORMANCE OF THIS SOFTWARE.
28618
+ ***************************************************************************** */
28619
+ /* global Reflect, Promise */
28620
+
28621
+ var extendStatics = function(d, b) {
28622
+ extendStatics = Object.setPrototypeOf ||
28623
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
28624
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
28625
+ return extendStatics(d, b);
28626
+ };
28627
+
28628
+ function __extends(d, b) {
28629
+ extendStatics(d, b);
28630
+ function __() { this.constructor = d; }
28631
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28632
+ }
28633
+
28634
+ var __assign = function() {
28635
+ __assign = Object.assign || function __assign(t) {
28636
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
28637
+ s = arguments[i];
28638
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
28639
+ }
28640
+ return t;
28641
+ }
28642
+ return __assign.apply(this, arguments);
28643
+ }
28644
+
28645
+ function __rest(s, e) {
28646
+ var t = {};
28647
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28648
+ t[p] = s[p];
28649
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
28650
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
28651
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
28652
+ t[p[i]] = s[p[i]];
28653
+ }
28654
+ return t;
28655
+ }
28656
+
28657
+ function __decorate(decorators, target, key, desc) {
28658
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
28659
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
28660
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
28661
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
28662
+ }
28663
+
28664
+ function __param(paramIndex, decorator) {
28665
+ return function (target, key) { decorator(target, key, paramIndex); }
28666
+ }
28667
+
28668
+ function __metadata(metadataKey, metadataValue) {
28669
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
28670
+ }
28671
+
28672
+ function __awaiter(thisArg, _arguments, P, generator) {
28673
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
28674
+ return new (P || (P = Promise))(function (resolve, reject) {
28675
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
28676
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
28677
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
28678
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
28679
+ });
28680
+ }
28681
+
28682
+ function __generator(thisArg, body) {
28683
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28684
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
28685
+ function verb(n) { return function (v) { return step([n, v]); }; }
28686
+ function step(op) {
28687
+ if (f) throw new TypeError("Generator is already executing.");
28688
+ while (_) try {
28689
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
28690
+ if (y = 0, t) op = [op[0] & 2, t.value];
28691
+ switch (op[0]) {
28692
+ case 0: case 1: t = op; break;
28693
+ case 4: _.label++; return { value: op[1], done: false };
28694
+ case 5: _.label++; y = op[1]; op = [0]; continue;
28695
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
28696
+ default:
28697
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
28698
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28699
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28700
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
28701
+ if (t[2]) _.ops.pop();
28702
+ _.trys.pop(); continue;
28703
+ }
28704
+ op = body.call(thisArg, _);
28705
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
28706
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
28707
+ }
28708
+ }
28709
+
28710
+ function __createBinding(o, m, k, k2) {
28711
+ if (k2 === undefined) k2 = k;
28712
+ o[k2] = m[k];
28713
+ }
28714
+
28715
+ function __exportStar(m, exports) {
28716
+ for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
28717
+ }
28718
+
28719
+ function __values(o) {
28720
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
28721
+ if (m) return m.call(o);
28722
+ if (o && typeof o.length === "number") return {
28723
+ next: function () {
28724
+ if (o && i >= o.length) o = void 0;
28725
+ return { value: o && o[i++], done: !o };
28726
+ }
28727
+ };
28728
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
28729
+ }
28730
+
28731
+ function __read(o, n) {
28732
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
28733
+ if (!m) return o;
28734
+ var i = m.call(o), r, ar = [], e;
28735
+ try {
28736
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
28737
+ }
28738
+ catch (error) { e = { error: error }; }
28739
+ finally {
28740
+ try {
28741
+ if (r && !r.done && (m = i["return"])) m.call(i);
28742
+ }
28743
+ finally { if (e) throw e.error; }
28744
+ }
28745
+ return ar;
28746
+ }
28747
+
28748
+ function __spread() {
28749
+ for (var ar = [], i = 0; i < arguments.length; i++)
28750
+ ar = ar.concat(__read(arguments[i]));
28751
+ return ar;
28752
+ }
28753
+
28754
+ function __spreadArrays() {
28755
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
28756
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
28757
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
28758
+ r[k] = a[j];
28759
+ return r;
28760
+ };
28761
+
28762
+ function __await(v) {
28763
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
28764
+ }
28765
+
28766
+ function __asyncGenerator(thisArg, _arguments, generator) {
28767
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
28768
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
28769
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
28770
+ function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
28771
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
28772
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
28773
+ function fulfill(value) { resume("next", value); }
28774
+ function reject(value) { resume("throw", value); }
28775
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
28776
+ }
28777
+
28778
+ function __asyncDelegator(o) {
28779
+ var i, p;
28780
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
28781
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
28782
+ }
28783
+
28784
+ function __asyncValues(o) {
28785
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
28786
+ var m = o[Symbol.asyncIterator], i;
28787
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
28788
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
28789
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
28790
+ }
28791
+
28792
+ function __makeTemplateObject(cooked, raw) {
28793
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
28794
+ return cooked;
28795
+ };
28796
+
28797
+ function __importStar(mod) {
28798
+ if (mod && mod.__esModule) return mod;
28799
+ var result = {};
28800
+ if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
28801
+ result.default = mod;
28802
+ return result;
28803
+ }
28804
+
28805
+ function __importDefault(mod) {
28806
+ return (mod && mod.__esModule) ? mod : { default: mod };
28807
+ }
28808
+
28809
+ function __classPrivateFieldGet(receiver, privateMap) {
28810
+ if (!privateMap.has(receiver)) {
28811
+ throw new TypeError("attempted to get private field on non-instance");
28812
+ }
28813
+ return privateMap.get(receiver);
28814
+ }
28815
+
28816
+ function __classPrivateFieldSet(receiver, privateMap, value) {
28817
+ if (!privateMap.has(receiver)) {
28818
+ throw new TypeError("attempted to set private field on non-instance");
28819
+ }
28820
+ privateMap.set(receiver, value);
28821
+ return value;
28822
+ }
28823
+
28824
+
28571
28825
  /***/ }),
28572
28826
 
28573
28827
  /***/ "../../node_modules/webpack/buildin/global.js":
@@ -28612,179 +28866,12 @@ module.exports = g;
28612
28866
  __webpack_require__.r(__webpack_exports__);
28613
28867
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GeoClass", function() { return GeoClass; });
28614
28868
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Geo", function() { return Geo; });
28615
- /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
28616
- /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__);
28617
- /* harmony import */ var _Providers_AmazonLocationServiceProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Providers/AmazonLocationServiceProvider */ "./lib-esm/Providers/AmazonLocationServiceProvider.js");
28618
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./util */ "./lib-esm/util.js");
28619
- var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
28620
- function adopt(value) {
28621
- return value instanceof P ? value : new P(function (resolve) {
28622
- resolve(value);
28623
- });
28624
- }
28625
-
28626
- return new (P || (P = Promise))(function (resolve, reject) {
28627
- function fulfilled(value) {
28628
- try {
28629
- step(generator.next(value));
28630
- } catch (e) {
28631
- reject(e);
28632
- }
28633
- }
28634
-
28635
- function rejected(value) {
28636
- try {
28637
- step(generator["throw"](value));
28638
- } catch (e) {
28639
- reject(e);
28640
- }
28641
- }
28642
-
28643
- function step(result) {
28644
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
28645
- }
28646
-
28647
- step((generator = generator.apply(thisArg, _arguments || [])).next());
28648
- });
28649
- };
28650
-
28651
- var __generator = undefined && undefined.__generator || function (thisArg, body) {
28652
- var _ = {
28653
- label: 0,
28654
- sent: function sent() {
28655
- if (t[0] & 1) throw t[1];
28656
- return t[1];
28657
- },
28658
- trys: [],
28659
- ops: []
28660
- },
28661
- f,
28662
- y,
28663
- t,
28664
- g;
28665
- return g = {
28666
- next: verb(0),
28667
- "throw": verb(1),
28668
- "return": verb(2)
28669
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
28670
- return this;
28671
- }), g;
28672
-
28673
- function verb(n) {
28674
- return function (v) {
28675
- return step([n, v]);
28676
- };
28677
- }
28678
-
28679
- function step(op) {
28680
- if (f) throw new TypeError("Generator is already executing.");
28681
-
28682
- while (_) {
28683
- try {
28684
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
28685
- if (y = 0, t) op = [op[0] & 2, t.value];
28686
-
28687
- switch (op[0]) {
28688
- case 0:
28689
- case 1:
28690
- t = op;
28691
- break;
28692
-
28693
- case 4:
28694
- _.label++;
28695
- return {
28696
- value: op[1],
28697
- done: false
28698
- };
28699
-
28700
- case 5:
28701
- _.label++;
28702
- y = op[1];
28703
- op = [0];
28704
- continue;
28705
-
28706
- case 7:
28707
- op = _.ops.pop();
28708
-
28709
- _.trys.pop();
28710
-
28711
- continue;
28712
-
28713
- default:
28714
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
28715
- _ = 0;
28716
- continue;
28717
- }
28718
-
28719
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
28720
- _.label = op[1];
28721
- break;
28722
- }
28723
-
28724
- if (op[0] === 6 && _.label < t[1]) {
28725
- _.label = t[1];
28726
- t = op;
28727
- break;
28728
- }
28729
-
28730
- if (t && _.label < t[2]) {
28731
- _.label = t[2];
28732
-
28733
- _.ops.push(op);
28734
-
28735
- break;
28736
- }
28737
-
28738
- if (t[2]) _.ops.pop();
28739
-
28740
- _.trys.pop();
28741
-
28742
- continue;
28743
- }
28744
-
28745
- op = body.call(thisArg, _);
28746
- } catch (e) {
28747
- op = [6, e];
28748
- y = 0;
28749
- } finally {
28750
- f = t = 0;
28751
- }
28752
- }
28753
-
28754
- if (op[0] & 5) throw op[1];
28755
- return {
28756
- value: op[0] ? op[1] : void 0,
28757
- done: true
28758
- };
28759
- }
28760
- };
28761
-
28762
- var __read = undefined && undefined.__read || function (o, n) {
28763
- var m = typeof Symbol === "function" && o[Symbol.iterator];
28764
- if (!m) return o;
28765
- var i = m.call(o),
28766
- r,
28767
- ar = [],
28768
- e;
28769
-
28770
- try {
28771
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
28772
- ar.push(r.value);
28773
- }
28774
- } catch (error) {
28775
- e = {
28776
- error: error
28777
- };
28778
- } finally {
28779
- try {
28780
- if (r && !r.done && (m = i["return"])) m.call(i);
28781
- } finally {
28782
- if (e) throw e.error;
28783
- }
28784
- }
28869
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
28870
+ /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
28871
+ /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__);
28872
+ /* harmony import */ var _Providers_AmazonLocationServiceProvider__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Providers/AmazonLocationServiceProvider */ "./lib-esm/Providers/AmazonLocationServiceProvider.js");
28873
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util */ "./lib-esm/util.js");
28785
28874
 
28786
- return ar;
28787
- };
28788
28875
  /*
28789
28876
  * Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
28790
28877
  *
@@ -28801,8 +28888,7 @@ var __read = undefined && undefined.__read || function (o, n) {
28801
28888
 
28802
28889
 
28803
28890
 
28804
-
28805
- var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["ConsoleLogger"]('Geo');
28891
+ var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["ConsoleLogger"]('Geo');
28806
28892
  var DEFAULT_PROVIDER = 'AmazonLocationService';
28807
28893
 
28808
28894
  var GeoClass =
@@ -28876,7 +28962,7 @@ function () {
28876
28962
 
28877
28963
  logger.debug('configure Geo');
28878
28964
  if (!config) return this._config;
28879
- var amplifyConfig = Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["parseMobileHubConfig"])(config);
28965
+ var amplifyConfig = Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["parseMobileHubConfig"])(config);
28880
28966
  this._config = Object.assign({}, this._config, amplifyConfig.Geo, config);
28881
28967
 
28882
28968
  this._pluggables.forEach(function (pluggable) {
@@ -28884,7 +28970,7 @@ function () {
28884
28970
  });
28885
28971
 
28886
28972
  if (this._pluggables.length === 0) {
28887
- this.addPluggable(new _Providers_AmazonLocationServiceProvider__WEBPACK_IMPORTED_MODULE_1__["AmazonLocationServiceProvider"]());
28973
+ this.addPluggable(new _Providers_AmazonLocationServiceProvider__WEBPACK_IMPORTED_MODULE_2__["AmazonLocationServiceProvider"]());
28888
28974
  }
28889
28975
 
28890
28976
  return this._config;
@@ -28928,10 +29014,10 @@ function () {
28928
29014
 
28929
29015
 
28930
29016
  GeoClass.prototype.searchByText = function (text, options) {
28931
- return __awaiter(this, void 0, void 0, function () {
29017
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
28932
29018
  var _a, providerName, prov, error_1;
28933
29019
 
28934
- return __generator(this, function (_b) {
29020
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
28935
29021
  switch (_b.label) {
28936
29022
  case 0:
28937
29023
  _a = (options || {}).providerName, providerName = _a === void 0 ? DEFAULT_PROVIDER : _a;
@@ -28972,21 +29058,21 @@ function () {
28972
29058
 
28973
29059
 
28974
29060
  GeoClass.prototype.searchByCoordinates = function (coordinates, options) {
28975
- return __awaiter(this, void 0, void 0, function () {
29061
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
28976
29062
  var _a, providerName, prov, _b, lng, lat, error_2;
28977
29063
 
28978
- return __generator(this, function (_c) {
29064
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_c) {
28979
29065
  switch (_c.label) {
28980
29066
  case 0:
28981
29067
  _a = (options || {}).providerName, providerName = _a === void 0 ? DEFAULT_PROVIDER : _a;
28982
29068
  prov = this.getPluggable(providerName);
28983
- _b = __read(coordinates, 2), lng = _b[0], lat = _b[1];
29069
+ _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(coordinates, 2), lng = _b[0], lat = _b[1];
28984
29070
  _c.label = 1;
28985
29071
 
28986
29072
  case 1:
28987
29073
  _c.trys.push([1, 3,, 4]);
28988
29074
 
28989
- Object(_util__WEBPACK_IMPORTED_MODULE_2__["validateCoordinates"])(lng, lat);
29075
+ Object(_util__WEBPACK_IMPORTED_MODULE_3__["validateCoordinates"])(lng, lat);
28990
29076
  return [4
28991
29077
  /*yield*/
28992
29078
  , prov.searchByCoordinates(coordinates, options)];
@@ -29020,10 +29106,10 @@ function () {
29020
29106
 
29021
29107
 
29022
29108
  GeoClass.prototype.saveGeofences = function (geofences, options) {
29023
- return __awaiter(this, void 0, void 0, function () {
29109
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
29024
29110
  var _a, providerName, prov, geofenceInputArray, error_3;
29025
29111
 
29026
- return __generator(this, function (_b) {
29112
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
29027
29113
  switch (_b.label) {
29028
29114
  case 0:
29029
29115
  _a = (options || {}).providerName, providerName = _a === void 0 ? DEFAULT_PROVIDER : _a;
@@ -29071,10 +29157,10 @@ function () {
29071
29157
 
29072
29158
 
29073
29159
  GeoClass.prototype.getGeofence = function (geofenceId, options) {
29074
- return __awaiter(this, void 0, void 0, function () {
29160
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
29075
29161
  var _a, providerName, prov, error_4;
29076
29162
 
29077
- return __generator(this, function (_b) {
29163
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
29078
29164
  switch (_b.label) {
29079
29165
  case 0:
29080
29166
  _a = (options || {}).providerName, providerName = _a === void 0 ? DEFAULT_PROVIDER : _a;
@@ -29116,10 +29202,10 @@ function () {
29116
29202
 
29117
29203
 
29118
29204
  GeoClass.prototype.listGeofences = function (options) {
29119
- return __awaiter(this, void 0, void 0, function () {
29205
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
29120
29206
  var _a, providerName, prov, error_5;
29121
29207
 
29122
- return __generator(this, function (_b) {
29208
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
29123
29209
  switch (_b.label) {
29124
29210
  case 0:
29125
29211
  _a = (options || {}).providerName, providerName = _a === void 0 ? DEFAULT_PROVIDER : _a;
@@ -29162,10 +29248,10 @@ function () {
29162
29248
 
29163
29249
 
29164
29250
  GeoClass.prototype.deleteGeofences = function (geofenceIds, options) {
29165
- return __awaiter(this, void 0, void 0, function () {
29251
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
29166
29252
  var _a, providerName, prov, geofenceIdsInputArray, error_6;
29167
29253
 
29168
- return __generator(this, function (_b) {
29254
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
29169
29255
  switch (_b.label) {
29170
29256
  case 0:
29171
29257
  _a = (options || {}).providerName, providerName = _a === void 0 ? DEFAULT_PROVIDER : _a;
@@ -29211,7 +29297,7 @@ function () {
29211
29297
 
29212
29298
 
29213
29299
  var Geo = new GeoClass();
29214
- _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Amplify"].register(Geo);
29300
+ _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["Amplify"].register(Geo);
29215
29301
 
29216
29302
  /***/ }),
29217
29303
 
@@ -29225,189 +29311,14 @@ _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Amplify"].register(Geo);
29225
29311
  "use strict";
29226
29312
  __webpack_require__.r(__webpack_exports__);
29227
29313
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AmazonLocationServiceProvider", function() { return AmazonLocationServiceProvider; });
29228
- /* harmony import */ var camelcase_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! camelcase-keys */ "../../node_modules/camelcase-keys/index.js");
29229
- /* harmony import */ var camelcase_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(camelcase_keys__WEBPACK_IMPORTED_MODULE_0__);
29230
- /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
29231
- /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__);
29232
- /* harmony import */ var _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-sdk/client-location */ "../../node_modules/@aws-sdk/client-location/dist-es/index.js");
29233
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util */ "./lib-esm/util.js");
29234
- var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
29235
- function adopt(value) {
29236
- return value instanceof P ? value : new P(function (resolve) {
29237
- resolve(value);
29238
- });
29239
- }
29240
-
29241
- return new (P || (P = Promise))(function (resolve, reject) {
29242
- function fulfilled(value) {
29243
- try {
29244
- step(generator.next(value));
29245
- } catch (e) {
29246
- reject(e);
29247
- }
29248
- }
29249
-
29250
- function rejected(value) {
29251
- try {
29252
- step(generator["throw"](value));
29253
- } catch (e) {
29254
- reject(e);
29255
- }
29256
- }
29257
-
29258
- function step(result) {
29259
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
29260
- }
29261
-
29262
- step((generator = generator.apply(thisArg, _arguments || [])).next());
29263
- });
29264
- };
29265
-
29266
- var __generator = undefined && undefined.__generator || function (thisArg, body) {
29267
- var _ = {
29268
- label: 0,
29269
- sent: function sent() {
29270
- if (t[0] & 1) throw t[1];
29271
- return t[1];
29272
- },
29273
- trys: [],
29274
- ops: []
29275
- },
29276
- f,
29277
- y,
29278
- t,
29279
- g;
29280
- return g = {
29281
- next: verb(0),
29282
- "throw": verb(1),
29283
- "return": verb(2)
29284
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
29285
- return this;
29286
- }), g;
29287
-
29288
- function verb(n) {
29289
- return function (v) {
29290
- return step([n, v]);
29291
- };
29292
- }
29293
-
29294
- function step(op) {
29295
- if (f) throw new TypeError("Generator is already executing.");
29296
-
29297
- while (_) {
29298
- try {
29299
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29300
- if (y = 0, t) op = [op[0] & 2, t.value];
29301
-
29302
- switch (op[0]) {
29303
- case 0:
29304
- case 1:
29305
- t = op;
29306
- break;
29307
-
29308
- case 4:
29309
- _.label++;
29310
- return {
29311
- value: op[1],
29312
- done: false
29313
- };
29314
-
29315
- case 5:
29316
- _.label++;
29317
- y = op[1];
29318
- op = [0];
29319
- continue;
29320
-
29321
- case 7:
29322
- op = _.ops.pop();
29323
-
29324
- _.trys.pop();
29325
-
29326
- continue;
29327
-
29328
- default:
29329
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
29330
- _ = 0;
29331
- continue;
29332
- }
29333
-
29334
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
29335
- _.label = op[1];
29336
- break;
29337
- }
29338
-
29339
- if (op[0] === 6 && _.label < t[1]) {
29340
- _.label = t[1];
29341
- t = op;
29342
- break;
29343
- }
29344
-
29345
- if (t && _.label < t[2]) {
29346
- _.label = t[2];
29347
-
29348
- _.ops.push(op);
29349
-
29350
- break;
29351
- }
29352
-
29353
- if (t[2]) _.ops.pop();
29354
-
29355
- _.trys.pop();
29356
-
29357
- continue;
29358
- }
29359
-
29360
- op = body.call(thisArg, _);
29361
- } catch (e) {
29362
- op = [6, e];
29363
- y = 0;
29364
- } finally {
29365
- f = t = 0;
29366
- }
29367
- }
29368
-
29369
- if (op[0] & 5) throw op[1];
29370
- return {
29371
- value: op[0] ? op[1] : void 0,
29372
- done: true
29373
- };
29374
- }
29375
- };
29376
-
29377
- var __read = undefined && undefined.__read || function (o, n) {
29378
- var m = typeof Symbol === "function" && o[Symbol.iterator];
29379
- if (!m) return o;
29380
- var i = m.call(o),
29381
- r,
29382
- ar = [],
29383
- e;
29314
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
29315
+ /* harmony import */ var camelcase_keys__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! camelcase-keys */ "../../node_modules/camelcase-keys/index.js");
29316
+ /* harmony import */ var camelcase_keys__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(camelcase_keys__WEBPACK_IMPORTED_MODULE_1__);
29317
+ /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
29318
+ /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__);
29319
+ /* harmony import */ var _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-sdk/client-location */ "../../node_modules/@aws-sdk/client-location/dist-es/index.js");
29320
+ /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util */ "./lib-esm/util.js");
29384
29321
 
29385
- try {
29386
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
29387
- ar.push(r.value);
29388
- }
29389
- } catch (error) {
29390
- e = {
29391
- error: error
29392
- };
29393
- } finally {
29394
- try {
29395
- if (r && !r.done && (m = i["return"])) m.call(i);
29396
- } finally {
29397
- if (e) throw e.error;
29398
- }
29399
- }
29400
-
29401
- return ar;
29402
- };
29403
-
29404
- var __spread = undefined && undefined.__spread || function () {
29405
- for (var ar = [], i = 0; i < arguments.length; i++) {
29406
- ar = ar.concat(__read(arguments[i]));
29407
- }
29408
-
29409
- return ar;
29410
- };
29411
29322
  /*
29412
29323
  * Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
29413
29324
  *
@@ -29425,8 +29336,7 @@ var __spread = undefined && undefined.__spread || function () {
29425
29336
 
29426
29337
 
29427
29338
 
29428
-
29429
- var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["ConsoleLogger"]('AmazonLocationServiceProvider');
29339
+ var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__["ConsoleLogger"]('AmazonLocationServiceProvider');
29430
29340
 
29431
29341
  var AmazonLocationServiceProvider =
29432
29342
  /** @class */
@@ -29521,9 +29431,9 @@ function () {
29521
29431
 
29522
29432
 
29523
29433
  AmazonLocationServiceProvider.prototype.searchByText = function (text, options) {
29524
- return __awaiter(this, void 0, void 0, function () {
29434
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
29525
29435
  var credentialsOK, locationServiceInput, client, command, response, error_1, PascalResults, results;
29526
- return __generator(this, function (_a) {
29436
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
29527
29437
  switch (_a.label) {
29528
29438
  case 0:
29529
29439
  return [4
@@ -29568,12 +29478,12 @@ function () {
29568
29478
  }
29569
29479
  }
29570
29480
 
29571
- client = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_2__["LocationClient"]({
29481
+ client = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_3__["LocationClient"]({
29572
29482
  credentials: this._config.credentials,
29573
29483
  region: this._config.region,
29574
- customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["getAmplifyUserAgent"])()
29484
+ customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__["getAmplifyUserAgent"])()
29575
29485
  });
29576
- command = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_2__["SearchPlaceIndexForTextCommand"](locationServiceInput);
29486
+ command = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_3__["SearchPlaceIndexForTextCommand"](locationServiceInput);
29577
29487
  _a.label = 2;
29578
29488
 
29579
29489
  case 2:
@@ -29598,7 +29508,7 @@ function () {
29598
29508
  PascalResults = response.Results.map(function (result) {
29599
29509
  return result.Place;
29600
29510
  });
29601
- results = camelcase_keys__WEBPACK_IMPORTED_MODULE_0___default()(PascalResults, {
29511
+ results = camelcase_keys__WEBPACK_IMPORTED_MODULE_1___default()(PascalResults, {
29602
29512
  deep: true
29603
29513
  });
29604
29514
  return [2
@@ -29617,9 +29527,9 @@ function () {
29617
29527
 
29618
29528
 
29619
29529
  AmazonLocationServiceProvider.prototype.searchByCoordinates = function (coordinates, options) {
29620
- return __awaiter(this, void 0, void 0, function () {
29530
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
29621
29531
  var credentialsOK, locationServiceInput, client, command, response, error_2, PascalResults, results;
29622
- return __generator(this, function (_a) {
29532
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
29623
29533
  switch (_a.label) {
29624
29534
  case 0:
29625
29535
  return [4
@@ -29648,12 +29558,12 @@ function () {
29648
29558
  locationServiceInput.MaxResults = options.maxResults;
29649
29559
  }
29650
29560
 
29651
- client = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_2__["LocationClient"]({
29561
+ client = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_3__["LocationClient"]({
29652
29562
  credentials: this._config.credentials,
29653
29563
  region: this._config.region,
29654
- customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["getAmplifyUserAgent"])()
29564
+ customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__["getAmplifyUserAgent"])()
29655
29565
  });
29656
- command = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_2__["SearchPlaceIndexForPositionCommand"](locationServiceInput);
29566
+ command = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_3__["SearchPlaceIndexForPositionCommand"](locationServiceInput);
29657
29567
  _a.label = 2;
29658
29568
 
29659
29569
  case 2:
@@ -29678,7 +29588,7 @@ function () {
29678
29588
  PascalResults = response.Results.map(function (result) {
29679
29589
  return result.Place;
29680
29590
  });
29681
- results = camelcase_keys__WEBPACK_IMPORTED_MODULE_0___default()(PascalResults[0], {
29591
+ results = camelcase_keys__WEBPACK_IMPORTED_MODULE_1___default()(PascalResults[0], {
29682
29592
  deep: true
29683
29593
  });
29684
29594
  return [2
@@ -29699,12 +29609,12 @@ function () {
29699
29609
 
29700
29610
 
29701
29611
  AmazonLocationServiceProvider.prototype.saveGeofences = function (geofences, options) {
29702
- return __awaiter(this, void 0, void 0, function () {
29612
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
29703
29613
  var credentialsOK, PascalGeofences, results, geofenceBatches, apiLimit;
29704
29614
 
29705
29615
  var _this = this;
29706
29616
 
29707
- return __generator(this, function (_a) {
29617
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
29708
29618
  switch (_a.label) {
29709
29619
  case 0:
29710
29620
  if (geofences.length < 1) {
@@ -29730,7 +29640,7 @@ function () {
29730
29640
  throw error;
29731
29641
  }
29732
29642
 
29733
- Object(_util__WEBPACK_IMPORTED_MODULE_3__["validateGeofencesInput"])(geofences);
29643
+ Object(_util__WEBPACK_IMPORTED_MODULE_4__["validateGeofencesInput"])(geofences);
29734
29644
  PascalGeofences = geofences.map(function (_a) {
29735
29645
  var geofenceId = _a.geofenceId,
29736
29646
  polygon = _a.geometry.polygon;
@@ -29755,9 +29665,9 @@ function () {
29755
29665
  return [4
29756
29666
  /*yield*/
29757
29667
  , Promise.all(geofenceBatches.map(function (batch) {
29758
- return __awaiter(_this, void 0, void 0, function () {
29668
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this, void 0, void 0, function () {
29759
29669
  var response, error_3;
29760
- return __generator(this, function (_a) {
29670
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
29761
29671
  switch (_a.label) {
29762
29672
  case 0:
29763
29673
  _a.trys.push([0, 2,, 3]);
@@ -29841,9 +29751,9 @@ function () {
29841
29751
 
29842
29752
 
29843
29753
  AmazonLocationServiceProvider.prototype.getGeofence = function (geofenceId, options) {
29844
- return __awaiter(this, void 0, void 0, function () {
29754
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
29845
29755
  var credentialsOK, client, commandInput, command, response, error_4, GeofenceId, CreateTime, UpdateTime, Status, Geometry, geofence;
29846
- return __generator(this, function (_a) {
29756
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
29847
29757
  switch (_a.label) {
29848
29758
  case 0:
29849
29759
  return [4
@@ -29865,17 +29775,17 @@ function () {
29865
29775
  throw error;
29866
29776
  }
29867
29777
 
29868
- Object(_util__WEBPACK_IMPORTED_MODULE_3__["validateGeofenceId"])(geofenceId);
29869
- client = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_2__["LocationClient"]({
29778
+ Object(_util__WEBPACK_IMPORTED_MODULE_4__["validateGeofenceId"])(geofenceId);
29779
+ client = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_3__["LocationClient"]({
29870
29780
  credentials: this._config.credentials,
29871
29781
  region: this._config.region,
29872
- customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["getAmplifyUserAgent"])()
29782
+ customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__["getAmplifyUserAgent"])()
29873
29783
  });
29874
29784
  commandInput = {
29875
29785
  GeofenceId: geofenceId,
29876
29786
  CollectionName: (options === null || options === void 0 ? void 0 : options.collectionName) || this._config.geofenceCollections["default"]
29877
29787
  };
29878
- command = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_2__["GetGeofenceCommand"](commandInput);
29788
+ command = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_3__["GetGeofenceCommand"](commandInput);
29879
29789
  _a.label = 2;
29880
29790
 
29881
29791
  case 2:
@@ -29924,9 +29834,9 @@ function () {
29924
29834
 
29925
29835
 
29926
29836
  AmazonLocationServiceProvider.prototype.listGeofences = function (options) {
29927
- return __awaiter(this, void 0, void 0, function () {
29837
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
29928
29838
  var credentialsOK, client, listGeofencesInput, command, response, error_5, NextToken, Entries, results;
29929
- return __generator(this, function (_a) {
29839
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
29930
29840
  switch (_a.label) {
29931
29841
  case 0:
29932
29842
  return [4
@@ -29948,16 +29858,16 @@ function () {
29948
29858
  throw error;
29949
29859
  }
29950
29860
 
29951
- client = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_2__["LocationClient"]({
29861
+ client = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_3__["LocationClient"]({
29952
29862
  credentials: this._config.credentials,
29953
29863
  region: this._config.region,
29954
- customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["getAmplifyUserAgent"])()
29864
+ customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__["getAmplifyUserAgent"])()
29955
29865
  });
29956
29866
  listGeofencesInput = {
29957
29867
  NextToken: options === null || options === void 0 ? void 0 : options.nextToken,
29958
29868
  CollectionName: (options === null || options === void 0 ? void 0 : options.collectionName) || this._config.geofenceCollections["default"]
29959
29869
  };
29960
- command = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_2__["ListGeofencesCommand"](listGeofencesInput);
29870
+ command = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_3__["ListGeofencesCommand"](listGeofencesInput);
29961
29871
  _a.label = 2;
29962
29872
 
29963
29873
  case 2:
@@ -30017,12 +29927,12 @@ function () {
30017
29927
 
30018
29928
 
30019
29929
  AmazonLocationServiceProvider.prototype.deleteGeofences = function (geofenceIds, options) {
30020
- return __awaiter(this, void 0, void 0, function () {
29930
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
30021
29931
  var credentialsOK, badGeofenceIds, results, geofenceIdBatches, count;
30022
29932
 
30023
29933
  var _this = this;
30024
29934
 
30025
- return __generator(this, function (_a) {
29935
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
30026
29936
  switch (_a.label) {
30027
29937
  case 0:
30028
29938
  if (geofenceIds.length < 1) {
@@ -30044,7 +29954,7 @@ function () {
30044
29954
 
30045
29955
  badGeofenceIds = geofenceIds.filter(function (geofenceId) {
30046
29956
  try {
30047
- Object(_util__WEBPACK_IMPORTED_MODULE_3__["validateGeofenceId"])(geofenceId);
29957
+ Object(_util__WEBPACK_IMPORTED_MODULE_4__["validateGeofenceId"])(geofenceId);
30048
29958
  } catch (error) {
30049
29959
  return true;
30050
29960
  }
@@ -30068,12 +29978,12 @@ function () {
30068
29978
  return [4
30069
29979
  /*yield*/
30070
29980
  , Promise.all(geofenceIdBatches.map(function (batch) {
30071
- return __awaiter(_this, void 0, void 0, function () {
29981
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(_this, void 0, void 0, function () {
30072
29982
  var response, error_6, badGeofenceIds;
30073
29983
 
30074
29984
  var _a;
30075
29985
 
30076
- return __generator(this, function (_b) {
29986
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_b) {
30077
29987
  switch (_b.label) {
30078
29988
  case 0:
30079
29989
  _b.trys.push([0, 2,, 3]);
@@ -30111,7 +30021,7 @@ function () {
30111
30021
  return geofenceId;
30112
30022
  });
30113
30023
 
30114
- (_a = results.successes).push.apply(_a, __spread(batch.filter(function (Id) {
30024
+ (_a = results.successes).push.apply(_a, Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__spread"])(batch.filter(function (Id) {
30115
30025
  return !badGeofenceIds.includes(Id);
30116
30026
  })));
30117
30027
 
@@ -30139,23 +30049,23 @@ function () {
30139
30049
 
30140
30050
 
30141
30051
  AmazonLocationServiceProvider.prototype._ensureCredentials = function () {
30142
- return __awaiter(this, void 0, void 0, function () {
30052
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
30143
30053
  var credentials, cred, error_7;
30144
- return __generator(this, function (_a) {
30054
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
30145
30055
  switch (_a.label) {
30146
30056
  case 0:
30147
30057
  _a.trys.push([0, 2,, 3]);
30148
30058
 
30149
30059
  return [4
30150
30060
  /*yield*/
30151
- , _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["Credentials"].get()];
30061
+ , _aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__["Credentials"].get()];
30152
30062
 
30153
30063
  case 1:
30154
30064
  credentials = _a.sent();
30155
30065
  if (!credentials) return [2
30156
30066
  /*return*/
30157
30067
  , false];
30158
- cred = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["Credentials"].shear(credentials);
30068
+ cred = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__["Credentials"].shear(credentials);
30159
30069
  logger.debug('Set credentials for storage. Credentials are:', cred);
30160
30070
  this._config.credentials = cred;
30161
30071
  return [2
@@ -30209,21 +30119,21 @@ function () {
30209
30119
  };
30210
30120
 
30211
30121
  AmazonLocationServiceProvider.prototype._AmazonLocationServiceBatchPutGeofenceCall = function (PascalGeofences, collectionName) {
30212
- return __awaiter(this, void 0, void 0, function () {
30122
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
30213
30123
  var geofenceInput, client, command, response, error_8;
30214
- return __generator(this, function (_a) {
30124
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
30215
30125
  switch (_a.label) {
30216
30126
  case 0:
30217
30127
  geofenceInput = {
30218
30128
  Entries: PascalGeofences,
30219
30129
  CollectionName: collectionName || this._config.geofenceCollections["default"]
30220
30130
  };
30221
- client = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_2__["LocationClient"]({
30131
+ client = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_3__["LocationClient"]({
30222
30132
  credentials: this._config.credentials,
30223
30133
  region: this._config.region,
30224
- customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["getAmplifyUserAgent"])()
30134
+ customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__["getAmplifyUserAgent"])()
30225
30135
  });
30226
- command = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_2__["BatchPutGeofenceCommand"](geofenceInput);
30136
+ command = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_3__["BatchPutGeofenceCommand"](geofenceInput);
30227
30137
  _a.label = 1;
30228
30138
 
30229
30139
  case 1:
@@ -30253,21 +30163,21 @@ function () {
30253
30163
  };
30254
30164
 
30255
30165
  AmazonLocationServiceProvider.prototype._AmazonLocationServiceBatchDeleteGeofenceCall = function (geofenceIds, collectionName) {
30256
- return __awaiter(this, void 0, void 0, function () {
30166
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function () {
30257
30167
  var deleteGeofencesInput, client, command, response, error_9;
30258
- return __generator(this, function (_a) {
30168
+ return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__generator"])(this, function (_a) {
30259
30169
  switch (_a.label) {
30260
30170
  case 0:
30261
30171
  deleteGeofencesInput = {
30262
30172
  GeofenceIds: geofenceIds,
30263
30173
  CollectionName: collectionName || this._config.geofenceCollections["default"]
30264
30174
  };
30265
- client = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_2__["LocationClient"]({
30175
+ client = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_3__["LocationClient"]({
30266
30176
  credentials: this._config.credentials,
30267
30177
  region: this._config.region,
30268
- customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["getAmplifyUserAgent"])()
30178
+ customUserAgent: Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_2__["getAmplifyUserAgent"])()
30269
30179
  });
30270
- command = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_2__["BatchDeleteGeofenceCommand"](deleteGeofencesInput);
30180
+ command = new _aws_sdk_client_location__WEBPACK_IMPORTED_MODULE_3__["BatchDeleteGeofenceCommand"](deleteGeofencesInput);
30271
30181
  _a.label = 1;
30272
30182
 
30273
30183
  case 1:
@@ -30335,33 +30245,9 @@ __webpack_require__.r(__webpack_exports__);
30335
30245
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateLinearRing", function() { return validateLinearRing; });
30336
30246
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validatePolygon", function() { return validatePolygon; });
30337
30247
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateGeofencesInput", function() { return validateGeofencesInput; });
30338
- /* harmony import */ var _turf_boolean_clockwise__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @turf/boolean-clockwise */ "../../node_modules/@turf/boolean-clockwise/dist/es/index.js");
30339
- var __read = undefined && undefined.__read || function (o, n) {
30340
- var m = typeof Symbol === "function" && o[Symbol.iterator];
30341
- if (!m) return o;
30342
- var i = m.call(o),
30343
- r,
30344
- ar = [],
30345
- e;
30346
-
30347
- try {
30348
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
30349
- ar.push(r.value);
30350
- }
30351
- } catch (error) {
30352
- e = {
30353
- error: error
30354
- };
30355
- } finally {
30356
- try {
30357
- if (r && !r.done && (m = i["return"])) m.call(i);
30358
- } finally {
30359
- if (e) throw e.error;
30360
- }
30361
- }
30248
+ /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
30249
+ /* harmony import */ var _turf_boolean_clockwise__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @turf/boolean-clockwise */ "../../node_modules/@turf/boolean-clockwise/dist/es/index.js");
30362
30250
 
30363
- return ar;
30364
- };
30365
30251
  /*
30366
30252
  * Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
30367
30253
  *
@@ -30376,7 +30262,6 @@ var __read = undefined && undefined.__read || function (o, n) {
30376
30262
  */
30377
30263
 
30378
30264
 
30379
-
30380
30265
  function validateCoordinates(lng, lat) {
30381
30266
  if (!Number.isFinite(lng) || !Number.isFinite(lat)) {
30382
30267
  throw new Error("Invalid coordinates: [" + lng + "," + lat + "]");
@@ -30420,11 +30305,11 @@ function validateLinearRing(linearRing, geofenceId) {
30420
30305
  } // Validate first and last coordinates are the same
30421
30306
 
30422
30307
 
30423
- var _a = __read(linearRing[0], 2),
30308
+ var _a = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(linearRing[0], 2),
30424
30309
  lngA = _a[0],
30425
30310
  latA = _a[1];
30426
30311
 
30427
- var _b = __read(linearRing[linearRing.length - 1], 2),
30312
+ var _b = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(linearRing[linearRing.length - 1], 2),
30428
30313
  lngB = _b[0],
30429
30314
  latB = _b[1];
30430
30315
 
@@ -30432,7 +30317,7 @@ function validateLinearRing(linearRing, geofenceId) {
30432
30317
  throw new Error(errorPrefix + "LinearRing's first and last coordinates are not the same");
30433
30318
  }
30434
30319
 
30435
- if (Object(_turf_boolean_clockwise__WEBPACK_IMPORTED_MODULE_0__["default"])(linearRing)) {
30320
+ if (Object(_turf_boolean_clockwise__WEBPACK_IMPORTED_MODULE_1__["default"])(linearRing)) {
30436
30321
  throw new Error(errorPrefix + "LinearRing coordinates must be wound counterclockwise");
30437
30322
  }
30438
30323
  }
@@ -30503,7 +30388,7 @@ function validateGeofencesInput(geofences) {
30503
30388
  } // Validate LinearRing length, structure, and coordinates
30504
30389
 
30505
30390
 
30506
- var _a = __read(polygon, 1),
30391
+ var _a = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__read"])(polygon, 1),
30507
30392
  linearRing = _a[0];
30508
30393
 
30509
30394
  validateLinearRing(linearRing, geofenceId);