@aws-amplify/api-graphql 2.2.10 → 2.2.11-unstable.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -341
- package/dist/aws-amplify-api-graphql.js +1015 -831
- package/dist/aws-amplify-api-graphql.js.map +1 -1
- package/dist/aws-amplify-api-graphql.min.js +3 -3
- package/dist/aws-amplify-api-graphql.min.js.map +1 -1
- package/lib/GraphQLAPI.d.ts +1 -1
- package/lib/GraphQLAPI.js +10 -11
- package/lib/GraphQLAPI.js.map +1 -1
- package/lib-esm/GraphQLAPI.d.ts +1 -1
- package/lib-esm/GraphQLAPI.js +3 -4
- package/lib-esm/GraphQLAPI.js.map +1 -1
- package/package.json +8 -8
- package/src/GraphQLAPI.ts +13 -10
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
-
module.exports = factory(require("aws_amplify_auth"), require("aws_amplify_cache"), require("aws_amplify_core"), require("graphql")
|
|
3
|
+
module.exports = factory(require("aws_amplify_auth"), require("aws_amplify_cache"), require("aws_amplify_core"), require("graphql"));
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define("aws_amplify_api-graphql", ["aws_amplify_auth", "aws_amplify_cache", "aws_amplify_core", "graphql"
|
|
5
|
+
define("aws_amplify_api-graphql", ["aws_amplify_auth", "aws_amplify_cache", "aws_amplify_core", "graphql"], factory);
|
|
6
6
|
else if(typeof exports === 'object')
|
|
7
|
-
exports["aws_amplify_api-graphql"] = factory(require("aws_amplify_auth"), require("aws_amplify_cache"), require("aws_amplify_core"), require("graphql")
|
|
7
|
+
exports["aws_amplify_api-graphql"] = factory(require("aws_amplify_auth"), require("aws_amplify_cache"), require("aws_amplify_core"), require("graphql"));
|
|
8
8
|
else
|
|
9
|
-
root["aws_amplify_api-graphql"] = factory(root["aws_amplify_auth"], root["aws_amplify_cache"], root["aws_amplify_core"], root["graphql"]
|
|
10
|
-
})(window, function(__WEBPACK_EXTERNAL_MODULE__aws_amplify_auth__, __WEBPACK_EXTERNAL_MODULE__aws_amplify_cache__, __WEBPACK_EXTERNAL_MODULE__aws_amplify_core__, __WEBPACK_EXTERNAL_MODULE_graphql__
|
|
9
|
+
root["aws_amplify_api-graphql"] = factory(root["aws_amplify_auth"], root["aws_amplify_cache"], root["aws_amplify_core"], root["graphql"]);
|
|
10
|
+
})(window, function(__WEBPACK_EXTERNAL_MODULE__aws_amplify_auth__, __WEBPACK_EXTERNAL_MODULE__aws_amplify_cache__, __WEBPACK_EXTERNAL_MODULE__aws_amplify_core__, __WEBPACK_EXTERNAL_MODULE_graphql__) {
|
|
11
11
|
return /******/ (function(modules) { // webpackBootstrap
|
|
12
12
|
/******/ // The module cache
|
|
13
13
|
/******/ var installedModules = {};
|
|
@@ -4152,371 +4152,6 @@ function isnan (val) {
|
|
|
4152
4152
|
|
|
4153
4153
|
/***/ }),
|
|
4154
4154
|
|
|
4155
|
-
/***/ "../../node_modules/graphql/error/GraphQLError.js":
|
|
4156
|
-
/*!*******************************************************************!*\
|
|
4157
|
-
!*** /root/amplify-js/node_modules/graphql/error/GraphQLError.js ***!
|
|
4158
|
-
\*******************************************************************/
|
|
4159
|
-
/*! no static exports found */
|
|
4160
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4161
|
-
|
|
4162
|
-
"use strict";
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4166
|
-
value: true
|
|
4167
|
-
});
|
|
4168
|
-
exports.GraphQLError = GraphQLError;
|
|
4169
|
-
|
|
4170
|
-
var _printError = __webpack_require__(/*! ./printError */ "../../node_modules/graphql/error/printError.js");
|
|
4171
|
-
|
|
4172
|
-
var _location = __webpack_require__(/*! ../language/location */ "../../node_modules/graphql/language/location.js");
|
|
4173
|
-
|
|
4174
|
-
/**
|
|
4175
|
-
* Copyright (c) 2015-present, Facebook, Inc.
|
|
4176
|
-
*
|
|
4177
|
-
* This source code is licensed under the MIT license found in the
|
|
4178
|
-
* LICENSE file in the root directory of this source tree.
|
|
4179
|
-
*
|
|
4180
|
-
* strict
|
|
4181
|
-
*/
|
|
4182
|
-
function GraphQLError( // eslint-disable-line no-redeclare
|
|
4183
|
-
message, nodes, source, positions, path, originalError, extensions) {
|
|
4184
|
-
// Compute list of blame nodes.
|
|
4185
|
-
var _nodes = Array.isArray(nodes) ? nodes.length !== 0 ? nodes : undefined : nodes ? [nodes] : undefined; // Compute locations in the source for the given nodes/positions.
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
var _source = source;
|
|
4189
|
-
|
|
4190
|
-
if (!_source && _nodes) {
|
|
4191
|
-
var node = _nodes[0];
|
|
4192
|
-
_source = node && node.loc && node.loc.source;
|
|
4193
|
-
}
|
|
4194
|
-
|
|
4195
|
-
var _positions = positions;
|
|
4196
|
-
|
|
4197
|
-
if (!_positions && _nodes) {
|
|
4198
|
-
_positions = _nodes.reduce(function (list, node) {
|
|
4199
|
-
if (node.loc) {
|
|
4200
|
-
list.push(node.loc.start);
|
|
4201
|
-
}
|
|
4202
|
-
|
|
4203
|
-
return list;
|
|
4204
|
-
}, []);
|
|
4205
|
-
}
|
|
4206
|
-
|
|
4207
|
-
if (_positions && _positions.length === 0) {
|
|
4208
|
-
_positions = undefined;
|
|
4209
|
-
}
|
|
4210
|
-
|
|
4211
|
-
var _locations;
|
|
4212
|
-
|
|
4213
|
-
if (positions && source) {
|
|
4214
|
-
_locations = positions.map(function (pos) {
|
|
4215
|
-
return (0, _location.getLocation)(source, pos);
|
|
4216
|
-
});
|
|
4217
|
-
} else if (_nodes) {
|
|
4218
|
-
_locations = _nodes.reduce(function (list, node) {
|
|
4219
|
-
if (node.loc) {
|
|
4220
|
-
list.push((0, _location.getLocation)(node.loc.source, node.loc.start));
|
|
4221
|
-
}
|
|
4222
|
-
|
|
4223
|
-
return list;
|
|
4224
|
-
}, []);
|
|
4225
|
-
}
|
|
4226
|
-
|
|
4227
|
-
var _extensions = extensions || originalError && originalError.extensions;
|
|
4228
|
-
|
|
4229
|
-
Object.defineProperties(this, {
|
|
4230
|
-
message: {
|
|
4231
|
-
value: message,
|
|
4232
|
-
// By being enumerable, JSON.stringify will include `message` in the
|
|
4233
|
-
// resulting output. This ensures that the simplest possible GraphQL
|
|
4234
|
-
// service adheres to the spec.
|
|
4235
|
-
enumerable: true,
|
|
4236
|
-
writable: true
|
|
4237
|
-
},
|
|
4238
|
-
locations: {
|
|
4239
|
-
// Coercing falsey values to undefined ensures they will not be included
|
|
4240
|
-
// in JSON.stringify() when not provided.
|
|
4241
|
-
value: _locations || undefined,
|
|
4242
|
-
// By being enumerable, JSON.stringify will include `locations` in the
|
|
4243
|
-
// resulting output. This ensures that the simplest possible GraphQL
|
|
4244
|
-
// service adheres to the spec.
|
|
4245
|
-
enumerable: Boolean(_locations)
|
|
4246
|
-
},
|
|
4247
|
-
path: {
|
|
4248
|
-
// Coercing falsey values to undefined ensures they will not be included
|
|
4249
|
-
// in JSON.stringify() when not provided.
|
|
4250
|
-
value: path || undefined,
|
|
4251
|
-
// By being enumerable, JSON.stringify will include `path` in the
|
|
4252
|
-
// resulting output. This ensures that the simplest possible GraphQL
|
|
4253
|
-
// service adheres to the spec.
|
|
4254
|
-
enumerable: Boolean(path)
|
|
4255
|
-
},
|
|
4256
|
-
nodes: {
|
|
4257
|
-
value: _nodes || undefined
|
|
4258
|
-
},
|
|
4259
|
-
source: {
|
|
4260
|
-
value: _source || undefined
|
|
4261
|
-
},
|
|
4262
|
-
positions: {
|
|
4263
|
-
value: _positions || undefined
|
|
4264
|
-
},
|
|
4265
|
-
originalError: {
|
|
4266
|
-
value: originalError
|
|
4267
|
-
},
|
|
4268
|
-
extensions: {
|
|
4269
|
-
// Coercing falsey values to undefined ensures they will not be included
|
|
4270
|
-
// in JSON.stringify() when not provided.
|
|
4271
|
-
value: _extensions || undefined,
|
|
4272
|
-
// By being enumerable, JSON.stringify will include `path` in the
|
|
4273
|
-
// resulting output. This ensures that the simplest possible GraphQL
|
|
4274
|
-
// service adheres to the spec.
|
|
4275
|
-
enumerable: Boolean(_extensions)
|
|
4276
|
-
}
|
|
4277
|
-
}); // Include (non-enumerable) stack trace.
|
|
4278
|
-
|
|
4279
|
-
if (originalError && originalError.stack) {
|
|
4280
|
-
Object.defineProperty(this, 'stack', {
|
|
4281
|
-
value: originalError.stack,
|
|
4282
|
-
writable: true,
|
|
4283
|
-
configurable: true
|
|
4284
|
-
});
|
|
4285
|
-
} else if (Error.captureStackTrace) {
|
|
4286
|
-
Error.captureStackTrace(this, GraphQLError);
|
|
4287
|
-
} else {
|
|
4288
|
-
Object.defineProperty(this, 'stack', {
|
|
4289
|
-
value: Error().stack,
|
|
4290
|
-
writable: true,
|
|
4291
|
-
configurable: true
|
|
4292
|
-
});
|
|
4293
|
-
}
|
|
4294
|
-
}
|
|
4295
|
-
|
|
4296
|
-
GraphQLError.prototype = Object.create(Error.prototype, {
|
|
4297
|
-
constructor: {
|
|
4298
|
-
value: GraphQLError
|
|
4299
|
-
},
|
|
4300
|
-
name: {
|
|
4301
|
-
value: 'GraphQLError'
|
|
4302
|
-
},
|
|
4303
|
-
toString: {
|
|
4304
|
-
value: function toString() {
|
|
4305
|
-
return (0, _printError.printError)(this);
|
|
4306
|
-
}
|
|
4307
|
-
}
|
|
4308
|
-
});
|
|
4309
|
-
|
|
4310
|
-
/***/ }),
|
|
4311
|
-
|
|
4312
|
-
/***/ "../../node_modules/graphql/error/printError.js":
|
|
4313
|
-
/*!*****************************************************************!*\
|
|
4314
|
-
!*** /root/amplify-js/node_modules/graphql/error/printError.js ***!
|
|
4315
|
-
\*****************************************************************/
|
|
4316
|
-
/*! no static exports found */
|
|
4317
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4318
|
-
|
|
4319
|
-
"use strict";
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4323
|
-
value: true
|
|
4324
|
-
});
|
|
4325
|
-
exports.printError = printError;
|
|
4326
|
-
|
|
4327
|
-
var _location = __webpack_require__(/*! ../language/location */ "../../node_modules/graphql/language/location.js");
|
|
4328
|
-
|
|
4329
|
-
/**
|
|
4330
|
-
* Copyright (c) 2015-present, Facebook, Inc.
|
|
4331
|
-
*
|
|
4332
|
-
* This source code is licensed under the MIT license found in the
|
|
4333
|
-
* LICENSE file in the root directory of this source tree.
|
|
4334
|
-
*
|
|
4335
|
-
* strict
|
|
4336
|
-
*/
|
|
4337
|
-
|
|
4338
|
-
/**
|
|
4339
|
-
* Prints a GraphQLError to a string, representing useful location information
|
|
4340
|
-
* about the error's position in the source.
|
|
4341
|
-
*/
|
|
4342
|
-
function printError(error) {
|
|
4343
|
-
var printedLocations = [];
|
|
4344
|
-
|
|
4345
|
-
if (error.nodes) {
|
|
4346
|
-
var _iteratorNormalCompletion = true;
|
|
4347
|
-
var _didIteratorError = false;
|
|
4348
|
-
var _iteratorError = undefined;
|
|
4349
|
-
|
|
4350
|
-
try {
|
|
4351
|
-
for (var _iterator = error.nodes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
4352
|
-
var node = _step.value;
|
|
4353
|
-
|
|
4354
|
-
if (node.loc) {
|
|
4355
|
-
printedLocations.push(highlightSourceAtLocation(node.loc.source, (0, _location.getLocation)(node.loc.source, node.loc.start)));
|
|
4356
|
-
}
|
|
4357
|
-
}
|
|
4358
|
-
} catch (err) {
|
|
4359
|
-
_didIteratorError = true;
|
|
4360
|
-
_iteratorError = err;
|
|
4361
|
-
} finally {
|
|
4362
|
-
try {
|
|
4363
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
4364
|
-
_iterator.return();
|
|
4365
|
-
}
|
|
4366
|
-
} finally {
|
|
4367
|
-
if (_didIteratorError) {
|
|
4368
|
-
throw _iteratorError;
|
|
4369
|
-
}
|
|
4370
|
-
}
|
|
4371
|
-
}
|
|
4372
|
-
} else if (error.source && error.locations) {
|
|
4373
|
-
var source = error.source;
|
|
4374
|
-
var _iteratorNormalCompletion2 = true;
|
|
4375
|
-
var _didIteratorError2 = false;
|
|
4376
|
-
var _iteratorError2 = undefined;
|
|
4377
|
-
|
|
4378
|
-
try {
|
|
4379
|
-
for (var _iterator2 = error.locations[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
|
|
4380
|
-
var location = _step2.value;
|
|
4381
|
-
printedLocations.push(highlightSourceAtLocation(source, location));
|
|
4382
|
-
}
|
|
4383
|
-
} catch (err) {
|
|
4384
|
-
_didIteratorError2 = true;
|
|
4385
|
-
_iteratorError2 = err;
|
|
4386
|
-
} finally {
|
|
4387
|
-
try {
|
|
4388
|
-
if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
|
|
4389
|
-
_iterator2.return();
|
|
4390
|
-
}
|
|
4391
|
-
} finally {
|
|
4392
|
-
if (_didIteratorError2) {
|
|
4393
|
-
throw _iteratorError2;
|
|
4394
|
-
}
|
|
4395
|
-
}
|
|
4396
|
-
}
|
|
4397
|
-
}
|
|
4398
|
-
|
|
4399
|
-
return printedLocations.length === 0 ? error.message : [error.message].concat(printedLocations).join('\n\n') + '\n';
|
|
4400
|
-
}
|
|
4401
|
-
/**
|
|
4402
|
-
* Render a helpful description of the location of the error in the GraphQL
|
|
4403
|
-
* Source document.
|
|
4404
|
-
*/
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
function highlightSourceAtLocation(source, location) {
|
|
4408
|
-
var firstLineColumnOffset = source.locationOffset.column - 1;
|
|
4409
|
-
var body = whitespace(firstLineColumnOffset) + source.body;
|
|
4410
|
-
var lineIndex = location.line - 1;
|
|
4411
|
-
var lineOffset = source.locationOffset.line - 1;
|
|
4412
|
-
var lineNum = location.line + lineOffset;
|
|
4413
|
-
var columnOffset = location.line === 1 ? firstLineColumnOffset : 0;
|
|
4414
|
-
var columnNum = location.column + columnOffset;
|
|
4415
|
-
var lines = body.split(/\r\n|[\n\r]/g);
|
|
4416
|
-
return "".concat(source.name, " (").concat(lineNum, ":").concat(columnNum, ")\n") + printPrefixedLines([// Lines specified like this: ["prefix", "string"],
|
|
4417
|
-
["".concat(lineNum - 1, ": "), lines[lineIndex - 1]], ["".concat(lineNum, ": "), lines[lineIndex]], ['', whitespace(columnNum - 1) + '^'], ["".concat(lineNum + 1, ": "), lines[lineIndex + 1]]]);
|
|
4418
|
-
}
|
|
4419
|
-
|
|
4420
|
-
function printPrefixedLines(lines) {
|
|
4421
|
-
var existingLines = lines.filter(function (_ref) {
|
|
4422
|
-
var _ = _ref[0],
|
|
4423
|
-
line = _ref[1];
|
|
4424
|
-
return line !== undefined;
|
|
4425
|
-
});
|
|
4426
|
-
var padLen = 0;
|
|
4427
|
-
var _iteratorNormalCompletion3 = true;
|
|
4428
|
-
var _didIteratorError3 = false;
|
|
4429
|
-
var _iteratorError3 = undefined;
|
|
4430
|
-
|
|
4431
|
-
try {
|
|
4432
|
-
for (var _iterator3 = existingLines[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
|
|
4433
|
-
var _ref4 = _step3.value;
|
|
4434
|
-
var prefix = _ref4[0];
|
|
4435
|
-
padLen = Math.max(padLen, prefix.length);
|
|
4436
|
-
}
|
|
4437
|
-
} catch (err) {
|
|
4438
|
-
_didIteratorError3 = true;
|
|
4439
|
-
_iteratorError3 = err;
|
|
4440
|
-
} finally {
|
|
4441
|
-
try {
|
|
4442
|
-
if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
|
|
4443
|
-
_iterator3.return();
|
|
4444
|
-
}
|
|
4445
|
-
} finally {
|
|
4446
|
-
if (_didIteratorError3) {
|
|
4447
|
-
throw _iteratorError3;
|
|
4448
|
-
}
|
|
4449
|
-
}
|
|
4450
|
-
}
|
|
4451
|
-
|
|
4452
|
-
return existingLines.map(function (_ref3) {
|
|
4453
|
-
var prefix = _ref3[0],
|
|
4454
|
-
line = _ref3[1];
|
|
4455
|
-
return lpad(padLen, prefix) + line;
|
|
4456
|
-
}).join('\n');
|
|
4457
|
-
}
|
|
4458
|
-
|
|
4459
|
-
function whitespace(len) {
|
|
4460
|
-
return Array(len + 1).join(' ');
|
|
4461
|
-
}
|
|
4462
|
-
|
|
4463
|
-
function lpad(len, str) {
|
|
4464
|
-
return whitespace(len - str.length) + str;
|
|
4465
|
-
}
|
|
4466
|
-
|
|
4467
|
-
/***/ }),
|
|
4468
|
-
|
|
4469
|
-
/***/ "../../node_modules/graphql/language/location.js":
|
|
4470
|
-
/*!******************************************************************!*\
|
|
4471
|
-
!*** /root/amplify-js/node_modules/graphql/language/location.js ***!
|
|
4472
|
-
\******************************************************************/
|
|
4473
|
-
/*! no static exports found */
|
|
4474
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4475
|
-
|
|
4476
|
-
"use strict";
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4480
|
-
value: true
|
|
4481
|
-
});
|
|
4482
|
-
exports.getLocation = getLocation;
|
|
4483
|
-
|
|
4484
|
-
/**
|
|
4485
|
-
* Copyright (c) 2015-present, Facebook, Inc.
|
|
4486
|
-
*
|
|
4487
|
-
* This source code is licensed under the MIT license found in the
|
|
4488
|
-
* LICENSE file in the root directory of this source tree.
|
|
4489
|
-
*
|
|
4490
|
-
* strict
|
|
4491
|
-
*/
|
|
4492
|
-
|
|
4493
|
-
/**
|
|
4494
|
-
* Represents a location in a Source.
|
|
4495
|
-
*/
|
|
4496
|
-
|
|
4497
|
-
/**
|
|
4498
|
-
* Takes a Source and a UTF-8 character offset, and returns the corresponding
|
|
4499
|
-
* line and column as a SourceLocation.
|
|
4500
|
-
*/
|
|
4501
|
-
function getLocation(source, position) {
|
|
4502
|
-
var lineRegexp = /\r\n|[\n\r]/g;
|
|
4503
|
-
var line = 1;
|
|
4504
|
-
var column = position + 1;
|
|
4505
|
-
var match;
|
|
4506
|
-
|
|
4507
|
-
while ((match = lineRegexp.exec(source.body)) && match.index < position) {
|
|
4508
|
-
line += 1;
|
|
4509
|
-
column = position + 1 - (match.index + match[0].length);
|
|
4510
|
-
}
|
|
4511
|
-
|
|
4512
|
-
return {
|
|
4513
|
-
line: line,
|
|
4514
|
-
column: column
|
|
4515
|
-
};
|
|
4516
|
-
}
|
|
4517
|
-
|
|
4518
|
-
/***/ }),
|
|
4519
|
-
|
|
4520
4155
|
/***/ "../../node_modules/ieee754/index.js":
|
|
4521
4156
|
/*!******************************************************!*\
|
|
4522
4157
|
!*** /root/amplify-js/node_modules/ieee754/index.js ***!
|
|
@@ -8734,362 +8369,101 @@ module.exports = {
|
|
|
8734
8369
|
|
|
8735
8370
|
/***/ }),
|
|
8736
8371
|
|
|
8737
|
-
/***/ "../../node_modules/
|
|
8738
|
-
|
|
8739
|
-
!*** /
|
|
8740
|
-
|
|
8372
|
+
/***/ "../../node_modules/webpack/buildin/global.js":
|
|
8373
|
+
/*!***********************************!*\
|
|
8374
|
+
!*** (webpack)/buildin/global.js ***!
|
|
8375
|
+
\***********************************/
|
|
8741
8376
|
/*! no static exports found */
|
|
8742
|
-
/***/ (function(module, exports
|
|
8377
|
+
/***/ (function(module, exports) {
|
|
8743
8378
|
|
|
8744
|
-
var
|
|
8745
|
-
|
|
8379
|
+
var g;
|
|
8380
|
+
|
|
8381
|
+
// This works in non-strict mode
|
|
8382
|
+
g = (function() {
|
|
8383
|
+
return this;
|
|
8384
|
+
})();
|
|
8385
|
+
|
|
8386
|
+
try {
|
|
8387
|
+
// This works if eval is allowed (see CSP)
|
|
8388
|
+
g = g || new Function("return this")();
|
|
8389
|
+
} catch (e) {
|
|
8390
|
+
// This works if the window reference is available
|
|
8391
|
+
if (typeof window === "object") g = window;
|
|
8392
|
+
}
|
|
8746
8393
|
|
|
8747
|
-
|
|
8748
|
-
|
|
8749
|
-
|
|
8394
|
+
// g can still be undefined, but nothing to do about it...
|
|
8395
|
+
// We return undefined, instead of nothing here, so it's
|
|
8396
|
+
// easier to handle this case. if(!global) { ...}
|
|
8750
8397
|
|
|
8751
|
-
module.exports =
|
|
8398
|
+
module.exports = g;
|
|
8752
8399
|
|
|
8753
8400
|
|
|
8754
8401
|
/***/ }),
|
|
8755
8402
|
|
|
8756
|
-
/***/ "../../node_modules/
|
|
8757
|
-
|
|
8758
|
-
!*** /
|
|
8759
|
-
|
|
8403
|
+
/***/ "../../node_modules/webpack/buildin/module.js":
|
|
8404
|
+
/*!***********************************!*\
|
|
8405
|
+
!*** (webpack)/buildin/module.js ***!
|
|
8406
|
+
\***********************************/
|
|
8760
8407
|
/*! no static exports found */
|
|
8761
8408
|
/***/ (function(module, exports) {
|
|
8762
8409
|
|
|
8763
|
-
|
|
8764
|
-
|
|
8765
|
-
|
|
8766
|
-
|
|
8767
|
-
|
|
8768
|
-
|
|
8769
|
-
|
|
8770
|
-
|
|
8771
|
-
|
|
8772
|
-
|
|
8773
|
-
|
|
8774
|
-
|
|
8775
|
-
|
|
8776
|
-
|
|
8777
|
-
|
|
8778
|
-
|
|
8779
|
-
|
|
8780
|
-
|
|
8781
|
-
|
|
8782
|
-
|
|
8783
|
-
|
|
8784
|
-
|
|
8785
|
-
]).join('');
|
|
8786
|
-
}
|
|
8787
|
-
|
|
8788
|
-
module.exports = bytesToUuid;
|
|
8410
|
+
module.exports = function(module) {
|
|
8411
|
+
if (!module.webpackPolyfill) {
|
|
8412
|
+
module.deprecate = function() {};
|
|
8413
|
+
module.paths = [];
|
|
8414
|
+
// module.parent = undefined by default
|
|
8415
|
+
if (!module.children) module.children = [];
|
|
8416
|
+
Object.defineProperty(module, "loaded", {
|
|
8417
|
+
enumerable: true,
|
|
8418
|
+
get: function() {
|
|
8419
|
+
return module.l;
|
|
8420
|
+
}
|
|
8421
|
+
});
|
|
8422
|
+
Object.defineProperty(module, "id", {
|
|
8423
|
+
enumerable: true,
|
|
8424
|
+
get: function() {
|
|
8425
|
+
return module.i;
|
|
8426
|
+
}
|
|
8427
|
+
});
|
|
8428
|
+
module.webpackPolyfill = 1;
|
|
8429
|
+
}
|
|
8430
|
+
return module;
|
|
8431
|
+
};
|
|
8789
8432
|
|
|
8790
8433
|
|
|
8791
8434
|
/***/ }),
|
|
8792
8435
|
|
|
8793
|
-
/***/ "../../node_modules/
|
|
8794
|
-
|
|
8795
|
-
!*** /root/amplify-js/node_modules/
|
|
8796
|
-
|
|
8797
|
-
/*!
|
|
8798
|
-
/***/ (function(module,
|
|
8799
|
-
|
|
8800
|
-
// Unique ID creation requires a high quality random # generator. In the
|
|
8801
|
-
// browser this is a little complicated due to unknown quality of Math.random()
|
|
8802
|
-
// and inconsistent support for the `crypto` API. We do the best we can via
|
|
8803
|
-
// feature-detection
|
|
8436
|
+
/***/ "../../node_modules/zen-observable-ts/lib/bundle.esm.js":
|
|
8437
|
+
/*!*************************************************************************!*\
|
|
8438
|
+
!*** /root/amplify-js/node_modules/zen-observable-ts/lib/bundle.esm.js ***!
|
|
8439
|
+
\*************************************************************************/
|
|
8440
|
+
/*! exports provided: default, Observable */
|
|
8441
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
8804
8442
|
|
|
8805
|
-
|
|
8806
|
-
|
|
8807
|
-
|
|
8808
|
-
|
|
8443
|
+
"use strict";
|
|
8444
|
+
__webpack_require__.r(__webpack_exports__);
|
|
8445
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Observable", function() { return Observable; });
|
|
8446
|
+
/* harmony import */ var zen_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zen-observable */ "../../node_modules/zen-observable-ts/node_modules/zen-observable/index.js");
|
|
8447
|
+
/* harmony import */ var zen_observable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(zen_observable__WEBPACK_IMPORTED_MODULE_0__);
|
|
8809
8448
|
|
|
8810
|
-
if (getRandomValues) {
|
|
8811
|
-
// WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto
|
|
8812
|
-
var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef
|
|
8813
8449
|
|
|
8814
|
-
|
|
8815
|
-
getRandomValues(rnds8);
|
|
8816
|
-
return rnds8;
|
|
8817
|
-
};
|
|
8818
|
-
} else {
|
|
8819
|
-
// Math.random()-based (RNG)
|
|
8820
|
-
//
|
|
8821
|
-
// If all else fails, use Math.random(). It's fast, but is of unspecified
|
|
8822
|
-
// quality.
|
|
8823
|
-
var rnds = new Array(16);
|
|
8450
|
+
var Observable = zen_observable__WEBPACK_IMPORTED_MODULE_0___default.a;
|
|
8824
8451
|
|
|
8825
|
-
|
|
8826
|
-
for (var i = 0, r; i < 16; i++) {
|
|
8827
|
-
if ((i & 0x03) === 0) r = Math.random() * 0x100000000;
|
|
8828
|
-
rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;
|
|
8829
|
-
}
|
|
8452
|
+
/* harmony default export */ __webpack_exports__["default"] = (Observable);
|
|
8830
8453
|
|
|
8831
|
-
|
|
8832
|
-
};
|
|
8833
|
-
}
|
|
8454
|
+
//# sourceMappingURL=bundle.esm.js.map
|
|
8834
8455
|
|
|
8835
8456
|
|
|
8836
8457
|
/***/ }),
|
|
8837
8458
|
|
|
8838
|
-
/***/ "../../node_modules/
|
|
8839
|
-
|
|
8840
|
-
!*** /root/amplify-js/node_modules/
|
|
8841
|
-
|
|
8459
|
+
/***/ "../../node_modules/zen-observable-ts/node_modules/zen-observable/index.js":
|
|
8460
|
+
/*!********************************************************************************************!*\
|
|
8461
|
+
!*** /root/amplify-js/node_modules/zen-observable-ts/node_modules/zen-observable/index.js ***!
|
|
8462
|
+
\********************************************************************************************/
|
|
8842
8463
|
/*! no static exports found */
|
|
8843
8464
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8844
8465
|
|
|
8845
|
-
|
|
8846
|
-
var bytesToUuid = __webpack_require__(/*! ./lib/bytesToUuid */ "../../node_modules/uuid/lib/bytesToUuid.js");
|
|
8847
|
-
|
|
8848
|
-
// **`v1()` - Generate time-based UUID**
|
|
8849
|
-
//
|
|
8850
|
-
// Inspired by https://github.com/LiosK/UUID.js
|
|
8851
|
-
// and http://docs.python.org/library/uuid.html
|
|
8852
|
-
|
|
8853
|
-
var _nodeId;
|
|
8854
|
-
var _clockseq;
|
|
8855
|
-
|
|
8856
|
-
// Previous uuid creation time
|
|
8857
|
-
var _lastMSecs = 0;
|
|
8858
|
-
var _lastNSecs = 0;
|
|
8859
|
-
|
|
8860
|
-
// See https://github.com/uuidjs/uuid for API details
|
|
8861
|
-
function v1(options, buf, offset) {
|
|
8862
|
-
var i = buf && offset || 0;
|
|
8863
|
-
var b = buf || [];
|
|
8864
|
-
|
|
8865
|
-
options = options || {};
|
|
8866
|
-
var node = options.node || _nodeId;
|
|
8867
|
-
var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;
|
|
8868
|
-
|
|
8869
|
-
// node and clockseq need to be initialized to random values if they're not
|
|
8870
|
-
// specified. We do this lazily to minimize issues related to insufficient
|
|
8871
|
-
// system entropy. See #189
|
|
8872
|
-
if (node == null || clockseq == null) {
|
|
8873
|
-
var seedBytes = rng();
|
|
8874
|
-
if (node == null) {
|
|
8875
|
-
// Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
|
|
8876
|
-
node = _nodeId = [
|
|
8877
|
-
seedBytes[0] | 0x01,
|
|
8878
|
-
seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]
|
|
8879
|
-
];
|
|
8880
|
-
}
|
|
8881
|
-
if (clockseq == null) {
|
|
8882
|
-
// Per 4.2.2, randomize (14 bit) clockseq
|
|
8883
|
-
clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
|
|
8884
|
-
}
|
|
8885
|
-
}
|
|
8886
|
-
|
|
8887
|
-
// UUID timestamps are 100 nano-second units since the Gregorian epoch,
|
|
8888
|
-
// (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
|
|
8889
|
-
// time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
|
|
8890
|
-
// (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
|
|
8891
|
-
var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();
|
|
8892
|
-
|
|
8893
|
-
// Per 4.2.1.2, use count of uuid's generated during the current clock
|
|
8894
|
-
// cycle to simulate higher resolution clock
|
|
8895
|
-
var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;
|
|
8896
|
-
|
|
8897
|
-
// Time since last uuid creation (in msecs)
|
|
8898
|
-
var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;
|
|
8899
|
-
|
|
8900
|
-
// Per 4.2.1.2, Bump clockseq on clock regression
|
|
8901
|
-
if (dt < 0 && options.clockseq === undefined) {
|
|
8902
|
-
clockseq = clockseq + 1 & 0x3fff;
|
|
8903
|
-
}
|
|
8904
|
-
|
|
8905
|
-
// Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
|
|
8906
|
-
// time interval
|
|
8907
|
-
if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
|
|
8908
|
-
nsecs = 0;
|
|
8909
|
-
}
|
|
8910
|
-
|
|
8911
|
-
// Per 4.2.1.2 Throw error if too many uuids are requested
|
|
8912
|
-
if (nsecs >= 10000) {
|
|
8913
|
-
throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
|
|
8914
|
-
}
|
|
8915
|
-
|
|
8916
|
-
_lastMSecs = msecs;
|
|
8917
|
-
_lastNSecs = nsecs;
|
|
8918
|
-
_clockseq = clockseq;
|
|
8919
|
-
|
|
8920
|
-
// Per 4.1.4 - Convert from unix epoch to Gregorian epoch
|
|
8921
|
-
msecs += 12219292800000;
|
|
8922
|
-
|
|
8923
|
-
// `time_low`
|
|
8924
|
-
var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
|
|
8925
|
-
b[i++] = tl >>> 24 & 0xff;
|
|
8926
|
-
b[i++] = tl >>> 16 & 0xff;
|
|
8927
|
-
b[i++] = tl >>> 8 & 0xff;
|
|
8928
|
-
b[i++] = tl & 0xff;
|
|
8929
|
-
|
|
8930
|
-
// `time_mid`
|
|
8931
|
-
var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;
|
|
8932
|
-
b[i++] = tmh >>> 8 & 0xff;
|
|
8933
|
-
b[i++] = tmh & 0xff;
|
|
8934
|
-
|
|
8935
|
-
// `time_high_and_version`
|
|
8936
|
-
b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
|
|
8937
|
-
b[i++] = tmh >>> 16 & 0xff;
|
|
8938
|
-
|
|
8939
|
-
// `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
|
|
8940
|
-
b[i++] = clockseq >>> 8 | 0x80;
|
|
8941
|
-
|
|
8942
|
-
// `clock_seq_low`
|
|
8943
|
-
b[i++] = clockseq & 0xff;
|
|
8944
|
-
|
|
8945
|
-
// `node`
|
|
8946
|
-
for (var n = 0; n < 6; ++n) {
|
|
8947
|
-
b[i + n] = node[n];
|
|
8948
|
-
}
|
|
8949
|
-
|
|
8950
|
-
return buf ? buf : bytesToUuid(b);
|
|
8951
|
-
}
|
|
8952
|
-
|
|
8953
|
-
module.exports = v1;
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
/***/ }),
|
|
8957
|
-
|
|
8958
|
-
/***/ "../../node_modules/uuid/v4.js":
|
|
8959
|
-
/*!************************************************!*\
|
|
8960
|
-
!*** /root/amplify-js/node_modules/uuid/v4.js ***!
|
|
8961
|
-
\************************************************/
|
|
8962
|
-
/*! no static exports found */
|
|
8963
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
8964
|
-
|
|
8965
|
-
var rng = __webpack_require__(/*! ./lib/rng */ "../../node_modules/uuid/lib/rng-browser.js");
|
|
8966
|
-
var bytesToUuid = __webpack_require__(/*! ./lib/bytesToUuid */ "../../node_modules/uuid/lib/bytesToUuid.js");
|
|
8967
|
-
|
|
8968
|
-
function v4(options, buf, offset) {
|
|
8969
|
-
var i = buf && offset || 0;
|
|
8970
|
-
|
|
8971
|
-
if (typeof(options) == 'string') {
|
|
8972
|
-
buf = options === 'binary' ? new Array(16) : null;
|
|
8973
|
-
options = null;
|
|
8974
|
-
}
|
|
8975
|
-
options = options || {};
|
|
8976
|
-
|
|
8977
|
-
var rnds = options.random || (options.rng || rng)();
|
|
8978
|
-
|
|
8979
|
-
// Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
8980
|
-
rnds[6] = (rnds[6] & 0x0f) | 0x40;
|
|
8981
|
-
rnds[8] = (rnds[8] & 0x3f) | 0x80;
|
|
8982
|
-
|
|
8983
|
-
// Copy bytes to buffer, if provided
|
|
8984
|
-
if (buf) {
|
|
8985
|
-
for (var ii = 0; ii < 16; ++ii) {
|
|
8986
|
-
buf[i + ii] = rnds[ii];
|
|
8987
|
-
}
|
|
8988
|
-
}
|
|
8989
|
-
|
|
8990
|
-
return buf || bytesToUuid(rnds);
|
|
8991
|
-
}
|
|
8992
|
-
|
|
8993
|
-
module.exports = v4;
|
|
8994
|
-
|
|
8995
|
-
|
|
8996
|
-
/***/ }),
|
|
8997
|
-
|
|
8998
|
-
/***/ "../../node_modules/webpack/buildin/global.js":
|
|
8999
|
-
/*!***********************************!*\
|
|
9000
|
-
!*** (webpack)/buildin/global.js ***!
|
|
9001
|
-
\***********************************/
|
|
9002
|
-
/*! no static exports found */
|
|
9003
|
-
/***/ (function(module, exports) {
|
|
9004
|
-
|
|
9005
|
-
var g;
|
|
9006
|
-
|
|
9007
|
-
// This works in non-strict mode
|
|
9008
|
-
g = (function() {
|
|
9009
|
-
return this;
|
|
9010
|
-
})();
|
|
9011
|
-
|
|
9012
|
-
try {
|
|
9013
|
-
// This works if eval is allowed (see CSP)
|
|
9014
|
-
g = g || new Function("return this")();
|
|
9015
|
-
} catch (e) {
|
|
9016
|
-
// This works if the window reference is available
|
|
9017
|
-
if (typeof window === "object") g = window;
|
|
9018
|
-
}
|
|
9019
|
-
|
|
9020
|
-
// g can still be undefined, but nothing to do about it...
|
|
9021
|
-
// We return undefined, instead of nothing here, so it's
|
|
9022
|
-
// easier to handle this case. if(!global) { ...}
|
|
9023
|
-
|
|
9024
|
-
module.exports = g;
|
|
9025
|
-
|
|
9026
|
-
|
|
9027
|
-
/***/ }),
|
|
9028
|
-
|
|
9029
|
-
/***/ "../../node_modules/webpack/buildin/module.js":
|
|
9030
|
-
/*!***********************************!*\
|
|
9031
|
-
!*** (webpack)/buildin/module.js ***!
|
|
9032
|
-
\***********************************/
|
|
9033
|
-
/*! no static exports found */
|
|
9034
|
-
/***/ (function(module, exports) {
|
|
9035
|
-
|
|
9036
|
-
module.exports = function(module) {
|
|
9037
|
-
if (!module.webpackPolyfill) {
|
|
9038
|
-
module.deprecate = function() {};
|
|
9039
|
-
module.paths = [];
|
|
9040
|
-
// module.parent = undefined by default
|
|
9041
|
-
if (!module.children) module.children = [];
|
|
9042
|
-
Object.defineProperty(module, "loaded", {
|
|
9043
|
-
enumerable: true,
|
|
9044
|
-
get: function() {
|
|
9045
|
-
return module.l;
|
|
9046
|
-
}
|
|
9047
|
-
});
|
|
9048
|
-
Object.defineProperty(module, "id", {
|
|
9049
|
-
enumerable: true,
|
|
9050
|
-
get: function() {
|
|
9051
|
-
return module.i;
|
|
9052
|
-
}
|
|
9053
|
-
});
|
|
9054
|
-
module.webpackPolyfill = 1;
|
|
9055
|
-
}
|
|
9056
|
-
return module;
|
|
9057
|
-
};
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
/***/ }),
|
|
9061
|
-
|
|
9062
|
-
/***/ "../../node_modules/zen-observable-ts/lib/bundle.esm.js":
|
|
9063
|
-
/*!*************************************************************************!*\
|
|
9064
|
-
!*** /root/amplify-js/node_modules/zen-observable-ts/lib/bundle.esm.js ***!
|
|
9065
|
-
\*************************************************************************/
|
|
9066
|
-
/*! exports provided: default, Observable */
|
|
9067
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9068
|
-
|
|
9069
|
-
"use strict";
|
|
9070
|
-
__webpack_require__.r(__webpack_exports__);
|
|
9071
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Observable", function() { return Observable; });
|
|
9072
|
-
/* harmony import */ var zen_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zen-observable */ "../../node_modules/zen-observable-ts/node_modules/zen-observable/index.js");
|
|
9073
|
-
/* harmony import */ var zen_observable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(zen_observable__WEBPACK_IMPORTED_MODULE_0__);
|
|
9074
|
-
|
|
9075
|
-
|
|
9076
|
-
var Observable = zen_observable__WEBPACK_IMPORTED_MODULE_0___default.a;
|
|
9077
|
-
|
|
9078
|
-
/* harmony default export */ __webpack_exports__["default"] = (Observable);
|
|
9079
|
-
|
|
9080
|
-
//# sourceMappingURL=bundle.esm.js.map
|
|
9081
|
-
|
|
9082
|
-
|
|
9083
|
-
/***/ }),
|
|
9084
|
-
|
|
9085
|
-
/***/ "../../node_modules/zen-observable-ts/node_modules/zen-observable/index.js":
|
|
9086
|
-
/*!********************************************************************************************!*\
|
|
9087
|
-
!*** /root/amplify-js/node_modules/zen-observable-ts/node_modules/zen-observable/index.js ***!
|
|
9088
|
-
\********************************************************************************************/
|
|
9089
|
-
/*! no static exports found */
|
|
9090
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
9091
|
-
|
|
9092
|
-
module.exports = __webpack_require__(/*! ./lib/Observable.js */ "../../node_modules/zen-observable-ts/node_modules/zen-observable/lib/Observable.js").Observable;
|
|
8466
|
+
module.exports = __webpack_require__(/*! ./lib/Observable.js */ "../../node_modules/zen-observable-ts/node_modules/zen-observable/lib/Observable.js").Observable;
|
|
9093
8467
|
|
|
9094
8468
|
|
|
9095
8469
|
/***/ }),
|
|
@@ -11487,8 +10861,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11487
10861
|
/* harmony import */ var graphql__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(graphql__WEBPACK_IMPORTED_MODULE_1__);
|
|
11488
10862
|
/* harmony import */ var url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! url */ "../../node_modules/url/url.js");
|
|
11489
10863
|
/* harmony import */ var url__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(url__WEBPACK_IMPORTED_MODULE_2__);
|
|
11490
|
-
/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! uuid */ "
|
|
11491
|
-
/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(uuid__WEBPACK_IMPORTED_MODULE_3__);
|
|
10864
|
+
/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! uuid */ "../pubsub/node_modules/uuid/dist/esm-browser/index.js");
|
|
11492
10865
|
/* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! buffer */ "../../node_modules/buffer/index.js");
|
|
11493
10866
|
/* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(buffer__WEBPACK_IMPORTED_MODULE_4__);
|
|
11494
10867
|
/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
|
|
@@ -13135,8 +12508,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13135
12508
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MqttOverWSProvider", function() { return MqttOverWSProvider; });
|
|
13136
12509
|
/* harmony import */ var paho_mqtt__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! paho-mqtt */ "../../node_modules/paho-mqtt/paho-mqtt.js");
|
|
13137
12510
|
/* harmony import */ var paho_mqtt__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(paho_mqtt__WEBPACK_IMPORTED_MODULE_0__);
|
|
13138
|
-
/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! uuid */ "
|
|
13139
|
-
/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(uuid__WEBPACK_IMPORTED_MODULE_1__);
|
|
12511
|
+
/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! uuid */ "../pubsub/node_modules/uuid/dist/esm-browser/index.js");
|
|
13140
12512
|
/* harmony import */ var zen_observable_ts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zen-observable-ts */ "../../node_modules/zen-observable-ts/lib/bundle.esm.js");
|
|
13141
12513
|
/* harmony import */ var _PubSubProvider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PubSubProvider */ "../pubsub/lib-esm/Providers/PubSubProvider.js");
|
|
13142
12514
|
/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
|
|
@@ -14397,98 +13769,933 @@ var CONTROL_MSG;
|
|
|
14397
13769
|
|
|
14398
13770
|
/***/ }),
|
|
14399
13771
|
|
|
14400
|
-
/***/ "
|
|
14401
|
-
|
|
14402
|
-
!***
|
|
14403
|
-
|
|
14404
|
-
/*! exports provided:
|
|
13772
|
+
/***/ "../pubsub/node_modules/uuid/dist/esm-browser/index.js":
|
|
13773
|
+
/*!*************************************************************!*\
|
|
13774
|
+
!*** ../pubsub/node_modules/uuid/dist/esm-browser/index.js ***!
|
|
13775
|
+
\*************************************************************/
|
|
13776
|
+
/*! exports provided: v1, v3, v4, v5, NIL, version, validate, stringify, parse */
|
|
14405
13777
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
14406
13778
|
|
|
14407
13779
|
"use strict";
|
|
14408
13780
|
__webpack_require__.r(__webpack_exports__);
|
|
14409
|
-
/* harmony
|
|
14410
|
-
/* harmony
|
|
14411
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphQLAPI", function() { return GraphQLAPI; });
|
|
14412
|
-
/* harmony import */ var graphql_error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! graphql/error/GraphQLError */ "../../node_modules/graphql/error/GraphQLError.js");
|
|
14413
|
-
/* harmony import */ var graphql_error_GraphQLError__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(graphql_error_GraphQLError__WEBPACK_IMPORTED_MODULE_0__);
|
|
14414
|
-
/* harmony import */ var graphql_language_printer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! graphql/language/printer */ "graphql/language/printer");
|
|
14415
|
-
/* harmony import */ var graphql_language_printer__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(graphql_language_printer__WEBPACK_IMPORTED_MODULE_1__);
|
|
14416
|
-
/* harmony import */ var graphql_language_parser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! graphql/language/parser */ "graphql/language/parser");
|
|
14417
|
-
/* harmony import */ var graphql_language_parser__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(graphql_language_parser__WEBPACK_IMPORTED_MODULE_2__);
|
|
14418
|
-
/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
|
|
14419
|
-
/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_3__);
|
|
14420
|
-
/* harmony import */ var _aws_amplify_pubsub__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-amplify/pubsub */ "../pubsub/lib-esm/index.js");
|
|
14421
|
-
/* harmony import */ var _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-amplify/auth */ "@aws-amplify/auth");
|
|
14422
|
-
/* harmony import */ var _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_auth__WEBPACK_IMPORTED_MODULE_5__);
|
|
14423
|
-
/* harmony import */ var _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-amplify/cache */ "@aws-amplify/cache");
|
|
14424
|
-
/* harmony import */ var _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_cache__WEBPACK_IMPORTED_MODULE_6__);
|
|
14425
|
-
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./types */ "./lib-esm/types/index.js");
|
|
14426
|
-
/* harmony import */ var _aws_amplify_api_rest__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @aws-amplify/api-rest */ "../api-rest/lib-esm/index.js");
|
|
14427
|
-
var __assign = undefined && undefined.__assign || function () {
|
|
14428
|
-
__assign = Object.assign || function (t) {
|
|
14429
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
14430
|
-
s = arguments[i];
|
|
13781
|
+
/* harmony import */ var _v1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v1.js */ "../pubsub/node_modules/uuid/dist/esm-browser/v1.js");
|
|
13782
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "v1", function() { return _v1_js__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
|
14431
13783
|
|
|
14432
|
-
|
|
14433
|
-
|
|
14434
|
-
}
|
|
14435
|
-
}
|
|
13784
|
+
/* harmony import */ var _v3_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./v3.js */ "../pubsub/node_modules/uuid/dist/esm-browser/v3.js");
|
|
13785
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "v3", function() { return _v3_js__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
|
14436
13786
|
|
|
14437
|
-
|
|
14438
|
-
|
|
13787
|
+
/* harmony import */ var _v4_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./v4.js */ "../pubsub/node_modules/uuid/dist/esm-browser/v4.js");
|
|
13788
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "v4", function() { return _v4_js__WEBPACK_IMPORTED_MODULE_2__["default"]; });
|
|
14439
13789
|
|
|
14440
|
-
|
|
14441
|
-
};
|
|
13790
|
+
/* harmony import */ var _v5_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./v5.js */ "../pubsub/node_modules/uuid/dist/esm-browser/v5.js");
|
|
13791
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "v5", function() { return _v5_js__WEBPACK_IMPORTED_MODULE_3__["default"]; });
|
|
14442
13792
|
|
|
14443
|
-
|
|
14444
|
-
|
|
14445
|
-
return value instanceof P ? value : new P(function (resolve) {
|
|
14446
|
-
resolve(value);
|
|
14447
|
-
});
|
|
14448
|
-
}
|
|
13793
|
+
/* harmony import */ var _nil_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./nil.js */ "../pubsub/node_modules/uuid/dist/esm-browser/nil.js");
|
|
13794
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NIL", function() { return _nil_js__WEBPACK_IMPORTED_MODULE_4__["default"]; });
|
|
14449
13795
|
|
|
14450
|
-
|
|
14451
|
-
|
|
14452
|
-
try {
|
|
14453
|
-
step(generator.next(value));
|
|
14454
|
-
} catch (e) {
|
|
14455
|
-
reject(e);
|
|
14456
|
-
}
|
|
14457
|
-
}
|
|
13796
|
+
/* harmony import */ var _version_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./version.js */ "../pubsub/node_modules/uuid/dist/esm-browser/version.js");
|
|
13797
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "version", function() { return _version_js__WEBPACK_IMPORTED_MODULE_5__["default"]; });
|
|
14458
13798
|
|
|
14459
|
-
|
|
14460
|
-
|
|
14461
|
-
step(generator["throw"](value));
|
|
14462
|
-
} catch (e) {
|
|
14463
|
-
reject(e);
|
|
14464
|
-
}
|
|
14465
|
-
}
|
|
13799
|
+
/* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./validate.js */ "../pubsub/node_modules/uuid/dist/esm-browser/validate.js");
|
|
13800
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "validate", function() { return _validate_js__WEBPACK_IMPORTED_MODULE_6__["default"]; });
|
|
14466
13801
|
|
|
14467
|
-
|
|
14468
|
-
|
|
14469
|
-
}
|
|
13802
|
+
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./stringify.js */ "../pubsub/node_modules/uuid/dist/esm-browser/stringify.js");
|
|
13803
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stringify", function() { return _stringify_js__WEBPACK_IMPORTED_MODULE_7__["default"]; });
|
|
14470
13804
|
|
|
14471
|
-
|
|
14472
|
-
|
|
14473
|
-
};
|
|
13805
|
+
/* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./parse.js */ "../pubsub/node_modules/uuid/dist/esm-browser/parse.js");
|
|
13806
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parse", function() { return _parse_js__WEBPACK_IMPORTED_MODULE_8__["default"]; });
|
|
14474
13807
|
|
|
14475
|
-
|
|
14476
|
-
|
|
14477
|
-
|
|
14478
|
-
|
|
14479
|
-
|
|
14480
|
-
|
|
14481
|
-
|
|
14482
|
-
|
|
14483
|
-
|
|
14484
|
-
|
|
14485
|
-
|
|
14486
|
-
|
|
14487
|
-
|
|
14488
|
-
|
|
14489
|
-
|
|
14490
|
-
|
|
14491
|
-
|
|
13808
|
+
|
|
13809
|
+
|
|
13810
|
+
|
|
13811
|
+
|
|
13812
|
+
|
|
13813
|
+
|
|
13814
|
+
|
|
13815
|
+
|
|
13816
|
+
|
|
13817
|
+
|
|
13818
|
+
/***/ }),
|
|
13819
|
+
|
|
13820
|
+
/***/ "../pubsub/node_modules/uuid/dist/esm-browser/md5.js":
|
|
13821
|
+
/*!***********************************************************!*\
|
|
13822
|
+
!*** ../pubsub/node_modules/uuid/dist/esm-browser/md5.js ***!
|
|
13823
|
+
\***********************************************************/
|
|
13824
|
+
/*! exports provided: default */
|
|
13825
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
13826
|
+
|
|
13827
|
+
"use strict";
|
|
13828
|
+
__webpack_require__.r(__webpack_exports__);
|
|
13829
|
+
/*
|
|
13830
|
+
* Browser-compatible JavaScript MD5
|
|
13831
|
+
*
|
|
13832
|
+
* Modification of JavaScript MD5
|
|
13833
|
+
* https://github.com/blueimp/JavaScript-MD5
|
|
13834
|
+
*
|
|
13835
|
+
* Copyright 2011, Sebastian Tschan
|
|
13836
|
+
* https://blueimp.net
|
|
13837
|
+
*
|
|
13838
|
+
* Licensed under the MIT license:
|
|
13839
|
+
* https://opensource.org/licenses/MIT
|
|
13840
|
+
*
|
|
13841
|
+
* Based on
|
|
13842
|
+
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
|
|
13843
|
+
* Digest Algorithm, as defined in RFC 1321.
|
|
13844
|
+
* Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
|
|
13845
|
+
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
|
|
13846
|
+
* Distributed under the BSD License
|
|
13847
|
+
* See http://pajhome.org.uk/crypt/md5 for more info.
|
|
13848
|
+
*/
|
|
13849
|
+
function md5(bytes) {
|
|
13850
|
+
if (typeof bytes === 'string') {
|
|
13851
|
+
var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
|
|
13852
|
+
|
|
13853
|
+
bytes = new Uint8Array(msg.length);
|
|
13854
|
+
|
|
13855
|
+
for (var i = 0; i < msg.length; ++i) {
|
|
13856
|
+
bytes[i] = msg.charCodeAt(i);
|
|
13857
|
+
}
|
|
13858
|
+
}
|
|
13859
|
+
|
|
13860
|
+
return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8));
|
|
13861
|
+
}
|
|
13862
|
+
/*
|
|
13863
|
+
* Convert an array of little-endian words to an array of bytes
|
|
13864
|
+
*/
|
|
13865
|
+
|
|
13866
|
+
|
|
13867
|
+
function md5ToHexEncodedArray(input) {
|
|
13868
|
+
var output = [];
|
|
13869
|
+
var length32 = input.length * 32;
|
|
13870
|
+
var hexTab = '0123456789abcdef';
|
|
13871
|
+
|
|
13872
|
+
for (var i = 0; i < length32; i += 8) {
|
|
13873
|
+
var x = input[i >> 5] >>> i % 32 & 0xff;
|
|
13874
|
+
var hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16);
|
|
13875
|
+
output.push(hex);
|
|
13876
|
+
}
|
|
13877
|
+
|
|
13878
|
+
return output;
|
|
13879
|
+
}
|
|
13880
|
+
/**
|
|
13881
|
+
* Calculate output length with padding and bit length
|
|
13882
|
+
*/
|
|
13883
|
+
|
|
13884
|
+
|
|
13885
|
+
function getOutputLength(inputLength8) {
|
|
13886
|
+
return (inputLength8 + 64 >>> 9 << 4) + 14 + 1;
|
|
13887
|
+
}
|
|
13888
|
+
/*
|
|
13889
|
+
* Calculate the MD5 of an array of little-endian words, and a bit length.
|
|
13890
|
+
*/
|
|
13891
|
+
|
|
13892
|
+
|
|
13893
|
+
function wordsToMd5(x, len) {
|
|
13894
|
+
/* append padding */
|
|
13895
|
+
x[len >> 5] |= 0x80 << len % 32;
|
|
13896
|
+
x[getOutputLength(len) - 1] = len;
|
|
13897
|
+
var a = 1732584193;
|
|
13898
|
+
var b = -271733879;
|
|
13899
|
+
var c = -1732584194;
|
|
13900
|
+
var d = 271733878;
|
|
13901
|
+
|
|
13902
|
+
for (var i = 0; i < x.length; i += 16) {
|
|
13903
|
+
var olda = a;
|
|
13904
|
+
var oldb = b;
|
|
13905
|
+
var oldc = c;
|
|
13906
|
+
var oldd = d;
|
|
13907
|
+
a = md5ff(a, b, c, d, x[i], 7, -680876936);
|
|
13908
|
+
d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
|
|
13909
|
+
c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
|
|
13910
|
+
b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
|
|
13911
|
+
a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
|
|
13912
|
+
d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
|
|
13913
|
+
c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
|
|
13914
|
+
b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
|
|
13915
|
+
a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
|
|
13916
|
+
d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
|
|
13917
|
+
c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
|
|
13918
|
+
b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
|
|
13919
|
+
a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
|
|
13920
|
+
d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
|
|
13921
|
+
c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
|
|
13922
|
+
b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
|
|
13923
|
+
a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
|
|
13924
|
+
d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
|
|
13925
|
+
c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
|
|
13926
|
+
b = md5gg(b, c, d, a, x[i], 20, -373897302);
|
|
13927
|
+
a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
|
|
13928
|
+
d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
|
|
13929
|
+
c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
|
|
13930
|
+
b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
|
|
13931
|
+
a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
|
|
13932
|
+
d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
|
|
13933
|
+
c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
|
|
13934
|
+
b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
|
|
13935
|
+
a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
|
|
13936
|
+
d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
|
|
13937
|
+
c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
|
|
13938
|
+
b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
|
|
13939
|
+
a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
|
|
13940
|
+
d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
|
|
13941
|
+
c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
|
|
13942
|
+
b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
|
|
13943
|
+
a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
|
|
13944
|
+
d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
|
|
13945
|
+
c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
|
|
13946
|
+
b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
|
|
13947
|
+
a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
|
|
13948
|
+
d = md5hh(d, a, b, c, x[i], 11, -358537222);
|
|
13949
|
+
c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
|
|
13950
|
+
b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
|
|
13951
|
+
a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
|
|
13952
|
+
d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
|
|
13953
|
+
c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
|
|
13954
|
+
b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
|
|
13955
|
+
a = md5ii(a, b, c, d, x[i], 6, -198630844);
|
|
13956
|
+
d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
|
|
13957
|
+
c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
|
|
13958
|
+
b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
|
|
13959
|
+
a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
|
|
13960
|
+
d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
|
|
13961
|
+
c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
|
|
13962
|
+
b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
|
|
13963
|
+
a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
|
|
13964
|
+
d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
|
|
13965
|
+
c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
|
|
13966
|
+
b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
|
|
13967
|
+
a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
|
|
13968
|
+
d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
|
|
13969
|
+
c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
|
|
13970
|
+
b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
|
|
13971
|
+
a = safeAdd(a, olda);
|
|
13972
|
+
b = safeAdd(b, oldb);
|
|
13973
|
+
c = safeAdd(c, oldc);
|
|
13974
|
+
d = safeAdd(d, oldd);
|
|
13975
|
+
}
|
|
13976
|
+
|
|
13977
|
+
return [a, b, c, d];
|
|
13978
|
+
}
|
|
13979
|
+
/*
|
|
13980
|
+
* Convert an array bytes to an array of little-endian words
|
|
13981
|
+
* Characters >255 have their high-byte silently ignored.
|
|
13982
|
+
*/
|
|
13983
|
+
|
|
13984
|
+
|
|
13985
|
+
function bytesToWords(input) {
|
|
13986
|
+
if (input.length === 0) {
|
|
13987
|
+
return [];
|
|
13988
|
+
}
|
|
13989
|
+
|
|
13990
|
+
var length8 = input.length * 8;
|
|
13991
|
+
var output = new Uint32Array(getOutputLength(length8));
|
|
13992
|
+
|
|
13993
|
+
for (var i = 0; i < length8; i += 8) {
|
|
13994
|
+
output[i >> 5] |= (input[i / 8] & 0xff) << i % 32;
|
|
13995
|
+
}
|
|
13996
|
+
|
|
13997
|
+
return output;
|
|
13998
|
+
}
|
|
13999
|
+
/*
|
|
14000
|
+
* Add integers, wrapping at 2^32. This uses 16-bit operations internally
|
|
14001
|
+
* to work around bugs in some JS interpreters.
|
|
14002
|
+
*/
|
|
14003
|
+
|
|
14004
|
+
|
|
14005
|
+
function safeAdd(x, y) {
|
|
14006
|
+
var lsw = (x & 0xffff) + (y & 0xffff);
|
|
14007
|
+
var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
|
|
14008
|
+
return msw << 16 | lsw & 0xffff;
|
|
14009
|
+
}
|
|
14010
|
+
/*
|
|
14011
|
+
* Bitwise rotate a 32-bit number to the left.
|
|
14012
|
+
*/
|
|
14013
|
+
|
|
14014
|
+
|
|
14015
|
+
function bitRotateLeft(num, cnt) {
|
|
14016
|
+
return num << cnt | num >>> 32 - cnt;
|
|
14017
|
+
}
|
|
14018
|
+
/*
|
|
14019
|
+
* These functions implement the four basic operations the algorithm uses.
|
|
14020
|
+
*/
|
|
14021
|
+
|
|
14022
|
+
|
|
14023
|
+
function md5cmn(q, a, b, x, s, t) {
|
|
14024
|
+
return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
|
|
14025
|
+
}
|
|
14026
|
+
|
|
14027
|
+
function md5ff(a, b, c, d, x, s, t) {
|
|
14028
|
+
return md5cmn(b & c | ~b & d, a, b, x, s, t);
|
|
14029
|
+
}
|
|
14030
|
+
|
|
14031
|
+
function md5gg(a, b, c, d, x, s, t) {
|
|
14032
|
+
return md5cmn(b & d | c & ~d, a, b, x, s, t);
|
|
14033
|
+
}
|
|
14034
|
+
|
|
14035
|
+
function md5hh(a, b, c, d, x, s, t) {
|
|
14036
|
+
return md5cmn(b ^ c ^ d, a, b, x, s, t);
|
|
14037
|
+
}
|
|
14038
|
+
|
|
14039
|
+
function md5ii(a, b, c, d, x, s, t) {
|
|
14040
|
+
return md5cmn(c ^ (b | ~d), a, b, x, s, t);
|
|
14041
|
+
}
|
|
14042
|
+
|
|
14043
|
+
/* harmony default export */ __webpack_exports__["default"] = (md5);
|
|
14044
|
+
|
|
14045
|
+
/***/ }),
|
|
14046
|
+
|
|
14047
|
+
/***/ "../pubsub/node_modules/uuid/dist/esm-browser/nil.js":
|
|
14048
|
+
/*!***********************************************************!*\
|
|
14049
|
+
!*** ../pubsub/node_modules/uuid/dist/esm-browser/nil.js ***!
|
|
14050
|
+
\***********************************************************/
|
|
14051
|
+
/*! exports provided: default */
|
|
14052
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
14053
|
+
|
|
14054
|
+
"use strict";
|
|
14055
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14056
|
+
/* harmony default export */ __webpack_exports__["default"] = ('00000000-0000-0000-0000-000000000000');
|
|
14057
|
+
|
|
14058
|
+
/***/ }),
|
|
14059
|
+
|
|
14060
|
+
/***/ "../pubsub/node_modules/uuid/dist/esm-browser/parse.js":
|
|
14061
|
+
/*!*************************************************************!*\
|
|
14062
|
+
!*** ../pubsub/node_modules/uuid/dist/esm-browser/parse.js ***!
|
|
14063
|
+
\*************************************************************/
|
|
14064
|
+
/*! exports provided: default */
|
|
14065
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
14066
|
+
|
|
14067
|
+
"use strict";
|
|
14068
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14069
|
+
/* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "../pubsub/node_modules/uuid/dist/esm-browser/validate.js");
|
|
14070
|
+
|
|
14071
|
+
|
|
14072
|
+
function parse(uuid) {
|
|
14073
|
+
if (!Object(_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
|
|
14074
|
+
throw TypeError('Invalid UUID');
|
|
14075
|
+
}
|
|
14076
|
+
|
|
14077
|
+
var v;
|
|
14078
|
+
var arr = new Uint8Array(16); // Parse ########-....-....-....-............
|
|
14079
|
+
|
|
14080
|
+
arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
|
|
14081
|
+
arr[1] = v >>> 16 & 0xff;
|
|
14082
|
+
arr[2] = v >>> 8 & 0xff;
|
|
14083
|
+
arr[3] = v & 0xff; // Parse ........-####-....-....-............
|
|
14084
|
+
|
|
14085
|
+
arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
|
|
14086
|
+
arr[5] = v & 0xff; // Parse ........-....-####-....-............
|
|
14087
|
+
|
|
14088
|
+
arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
|
|
14089
|
+
arr[7] = v & 0xff; // Parse ........-....-....-####-............
|
|
14090
|
+
|
|
14091
|
+
arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
|
|
14092
|
+
arr[9] = v & 0xff; // Parse ........-....-....-....-############
|
|
14093
|
+
// (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
|
|
14094
|
+
|
|
14095
|
+
arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
|
|
14096
|
+
arr[11] = v / 0x100000000 & 0xff;
|
|
14097
|
+
arr[12] = v >>> 24 & 0xff;
|
|
14098
|
+
arr[13] = v >>> 16 & 0xff;
|
|
14099
|
+
arr[14] = v >>> 8 & 0xff;
|
|
14100
|
+
arr[15] = v & 0xff;
|
|
14101
|
+
return arr;
|
|
14102
|
+
}
|
|
14103
|
+
|
|
14104
|
+
/* harmony default export */ __webpack_exports__["default"] = (parse);
|
|
14105
|
+
|
|
14106
|
+
/***/ }),
|
|
14107
|
+
|
|
14108
|
+
/***/ "../pubsub/node_modules/uuid/dist/esm-browser/regex.js":
|
|
14109
|
+
/*!*************************************************************!*\
|
|
14110
|
+
!*** ../pubsub/node_modules/uuid/dist/esm-browser/regex.js ***!
|
|
14111
|
+
\*************************************************************/
|
|
14112
|
+
/*! exports provided: default */
|
|
14113
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
14114
|
+
|
|
14115
|
+
"use strict";
|
|
14116
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14117
|
+
/* harmony default export */ __webpack_exports__["default"] = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i);
|
|
14118
|
+
|
|
14119
|
+
/***/ }),
|
|
14120
|
+
|
|
14121
|
+
/***/ "../pubsub/node_modules/uuid/dist/esm-browser/rng.js":
|
|
14122
|
+
/*!***********************************************************!*\
|
|
14123
|
+
!*** ../pubsub/node_modules/uuid/dist/esm-browser/rng.js ***!
|
|
14124
|
+
\***********************************************************/
|
|
14125
|
+
/*! exports provided: default */
|
|
14126
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
14127
|
+
|
|
14128
|
+
"use strict";
|
|
14129
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14130
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return rng; });
|
|
14131
|
+
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
14132
|
+
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
14133
|
+
// generators (like Math.random()).
|
|
14134
|
+
var getRandomValues;
|
|
14135
|
+
var rnds8 = new Uint8Array(16);
|
|
14136
|
+
function rng() {
|
|
14137
|
+
// lazy load so that environments that need to polyfill have a chance to do so
|
|
14138
|
+
if (!getRandomValues) {
|
|
14139
|
+
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
|
|
14140
|
+
// find the complete implementation of crypto (msCrypto) on IE11.
|
|
14141
|
+
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
|
|
14142
|
+
|
|
14143
|
+
if (!getRandomValues) {
|
|
14144
|
+
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
14145
|
+
}
|
|
14146
|
+
}
|
|
14147
|
+
|
|
14148
|
+
return getRandomValues(rnds8);
|
|
14149
|
+
}
|
|
14150
|
+
|
|
14151
|
+
/***/ }),
|
|
14152
|
+
|
|
14153
|
+
/***/ "../pubsub/node_modules/uuid/dist/esm-browser/sha1.js":
|
|
14154
|
+
/*!************************************************************!*\
|
|
14155
|
+
!*** ../pubsub/node_modules/uuid/dist/esm-browser/sha1.js ***!
|
|
14156
|
+
\************************************************************/
|
|
14157
|
+
/*! exports provided: default */
|
|
14158
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
14159
|
+
|
|
14160
|
+
"use strict";
|
|
14161
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14162
|
+
// Adapted from Chris Veness' SHA1 code at
|
|
14163
|
+
// http://www.movable-type.co.uk/scripts/sha1.html
|
|
14164
|
+
function f(s, x, y, z) {
|
|
14165
|
+
switch (s) {
|
|
14166
|
+
case 0:
|
|
14167
|
+
return x & y ^ ~x & z;
|
|
14168
|
+
|
|
14169
|
+
case 1:
|
|
14170
|
+
return x ^ y ^ z;
|
|
14171
|
+
|
|
14172
|
+
case 2:
|
|
14173
|
+
return x & y ^ x & z ^ y & z;
|
|
14174
|
+
|
|
14175
|
+
case 3:
|
|
14176
|
+
return x ^ y ^ z;
|
|
14177
|
+
}
|
|
14178
|
+
}
|
|
14179
|
+
|
|
14180
|
+
function ROTL(x, n) {
|
|
14181
|
+
return x << n | x >>> 32 - n;
|
|
14182
|
+
}
|
|
14183
|
+
|
|
14184
|
+
function sha1(bytes) {
|
|
14185
|
+
var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
|
|
14186
|
+
var H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
|
|
14187
|
+
|
|
14188
|
+
if (typeof bytes === 'string') {
|
|
14189
|
+
var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
|
|
14190
|
+
|
|
14191
|
+
bytes = [];
|
|
14192
|
+
|
|
14193
|
+
for (var i = 0; i < msg.length; ++i) {
|
|
14194
|
+
bytes.push(msg.charCodeAt(i));
|
|
14195
|
+
}
|
|
14196
|
+
} else if (!Array.isArray(bytes)) {
|
|
14197
|
+
// Convert Array-like to Array
|
|
14198
|
+
bytes = Array.prototype.slice.call(bytes);
|
|
14199
|
+
}
|
|
14200
|
+
|
|
14201
|
+
bytes.push(0x80);
|
|
14202
|
+
var l = bytes.length / 4 + 2;
|
|
14203
|
+
var N = Math.ceil(l / 16);
|
|
14204
|
+
var M = new Array(N);
|
|
14205
|
+
|
|
14206
|
+
for (var _i = 0; _i < N; ++_i) {
|
|
14207
|
+
var arr = new Uint32Array(16);
|
|
14208
|
+
|
|
14209
|
+
for (var j = 0; j < 16; ++j) {
|
|
14210
|
+
arr[j] = bytes[_i * 64 + j * 4] << 24 | bytes[_i * 64 + j * 4 + 1] << 16 | bytes[_i * 64 + j * 4 + 2] << 8 | bytes[_i * 64 + j * 4 + 3];
|
|
14211
|
+
}
|
|
14212
|
+
|
|
14213
|
+
M[_i] = arr;
|
|
14214
|
+
}
|
|
14215
|
+
|
|
14216
|
+
M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32);
|
|
14217
|
+
M[N - 1][14] = Math.floor(M[N - 1][14]);
|
|
14218
|
+
M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff;
|
|
14219
|
+
|
|
14220
|
+
for (var _i2 = 0; _i2 < N; ++_i2) {
|
|
14221
|
+
var W = new Uint32Array(80);
|
|
14222
|
+
|
|
14223
|
+
for (var t = 0; t < 16; ++t) {
|
|
14224
|
+
W[t] = M[_i2][t];
|
|
14225
|
+
}
|
|
14226
|
+
|
|
14227
|
+
for (var _t = 16; _t < 80; ++_t) {
|
|
14228
|
+
W[_t] = ROTL(W[_t - 3] ^ W[_t - 8] ^ W[_t - 14] ^ W[_t - 16], 1);
|
|
14229
|
+
}
|
|
14230
|
+
|
|
14231
|
+
var a = H[0];
|
|
14232
|
+
var b = H[1];
|
|
14233
|
+
var c = H[2];
|
|
14234
|
+
var d = H[3];
|
|
14235
|
+
var e = H[4];
|
|
14236
|
+
|
|
14237
|
+
for (var _t2 = 0; _t2 < 80; ++_t2) {
|
|
14238
|
+
var s = Math.floor(_t2 / 20);
|
|
14239
|
+
var T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[_t2] >>> 0;
|
|
14240
|
+
e = d;
|
|
14241
|
+
d = c;
|
|
14242
|
+
c = ROTL(b, 30) >>> 0;
|
|
14243
|
+
b = a;
|
|
14244
|
+
a = T;
|
|
14245
|
+
}
|
|
14246
|
+
|
|
14247
|
+
H[0] = H[0] + a >>> 0;
|
|
14248
|
+
H[1] = H[1] + b >>> 0;
|
|
14249
|
+
H[2] = H[2] + c >>> 0;
|
|
14250
|
+
H[3] = H[3] + d >>> 0;
|
|
14251
|
+
H[4] = H[4] + e >>> 0;
|
|
14252
|
+
}
|
|
14253
|
+
|
|
14254
|
+
return [H[0] >> 24 & 0xff, H[0] >> 16 & 0xff, H[0] >> 8 & 0xff, H[0] & 0xff, H[1] >> 24 & 0xff, H[1] >> 16 & 0xff, H[1] >> 8 & 0xff, H[1] & 0xff, H[2] >> 24 & 0xff, H[2] >> 16 & 0xff, H[2] >> 8 & 0xff, H[2] & 0xff, H[3] >> 24 & 0xff, H[3] >> 16 & 0xff, H[3] >> 8 & 0xff, H[3] & 0xff, H[4] >> 24 & 0xff, H[4] >> 16 & 0xff, H[4] >> 8 & 0xff, H[4] & 0xff];
|
|
14255
|
+
}
|
|
14256
|
+
|
|
14257
|
+
/* harmony default export */ __webpack_exports__["default"] = (sha1);
|
|
14258
|
+
|
|
14259
|
+
/***/ }),
|
|
14260
|
+
|
|
14261
|
+
/***/ "../pubsub/node_modules/uuid/dist/esm-browser/stringify.js":
|
|
14262
|
+
/*!*****************************************************************!*\
|
|
14263
|
+
!*** ../pubsub/node_modules/uuid/dist/esm-browser/stringify.js ***!
|
|
14264
|
+
\*****************************************************************/
|
|
14265
|
+
/*! exports provided: default */
|
|
14266
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
14267
|
+
|
|
14268
|
+
"use strict";
|
|
14269
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14270
|
+
/* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "../pubsub/node_modules/uuid/dist/esm-browser/validate.js");
|
|
14271
|
+
|
|
14272
|
+
/**
|
|
14273
|
+
* Convert array of 16 byte values to UUID string format of the form:
|
|
14274
|
+
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
14275
|
+
*/
|
|
14276
|
+
|
|
14277
|
+
var byteToHex = [];
|
|
14278
|
+
|
|
14279
|
+
for (var i = 0; i < 256; ++i) {
|
|
14280
|
+
byteToHex.push((i + 0x100).toString(16).substr(1));
|
|
14281
|
+
}
|
|
14282
|
+
|
|
14283
|
+
function stringify(arr) {
|
|
14284
|
+
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
14285
|
+
// Note: Be careful editing this code! It's been tuned for performance
|
|
14286
|
+
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
14287
|
+
var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
|
|
14288
|
+
// of the following:
|
|
14289
|
+
// - One or more input array values don't map to a hex octet (leading to
|
|
14290
|
+
// "undefined" in the uuid)
|
|
14291
|
+
// - Invalid input values for the RFC `version` or `variant` fields
|
|
14292
|
+
|
|
14293
|
+
if (!Object(_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
|
|
14294
|
+
throw TypeError('Stringified UUID is invalid');
|
|
14295
|
+
}
|
|
14296
|
+
|
|
14297
|
+
return uuid;
|
|
14298
|
+
}
|
|
14299
|
+
|
|
14300
|
+
/* harmony default export */ __webpack_exports__["default"] = (stringify);
|
|
14301
|
+
|
|
14302
|
+
/***/ }),
|
|
14303
|
+
|
|
14304
|
+
/***/ "../pubsub/node_modules/uuid/dist/esm-browser/v1.js":
|
|
14305
|
+
/*!**********************************************************!*\
|
|
14306
|
+
!*** ../pubsub/node_modules/uuid/dist/esm-browser/v1.js ***!
|
|
14307
|
+
\**********************************************************/
|
|
14308
|
+
/*! exports provided: default */
|
|
14309
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
14310
|
+
|
|
14311
|
+
"use strict";
|
|
14312
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14313
|
+
/* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rng.js */ "../pubsub/node_modules/uuid/dist/esm-browser/rng.js");
|
|
14314
|
+
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "../pubsub/node_modules/uuid/dist/esm-browser/stringify.js");
|
|
14315
|
+
|
|
14316
|
+
// **`v1()` - Generate time-based UUID**
|
|
14317
|
+
//
|
|
14318
|
+
// Inspired by https://github.com/LiosK/UUID.js
|
|
14319
|
+
// and http://docs.python.org/library/uuid.html
|
|
14320
|
+
|
|
14321
|
+
var _nodeId;
|
|
14322
|
+
|
|
14323
|
+
var _clockseq; // Previous uuid creation time
|
|
14324
|
+
|
|
14325
|
+
|
|
14326
|
+
var _lastMSecs = 0;
|
|
14327
|
+
var _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
|
|
14328
|
+
|
|
14329
|
+
function v1(options, buf, offset) {
|
|
14330
|
+
var i = buf && offset || 0;
|
|
14331
|
+
var b = buf || new Array(16);
|
|
14332
|
+
options = options || {};
|
|
14333
|
+
var node = options.node || _nodeId;
|
|
14334
|
+
var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
|
|
14335
|
+
// specified. We do this lazily to minimize issues related to insufficient
|
|
14336
|
+
// system entropy. See #189
|
|
14337
|
+
|
|
14338
|
+
if (node == null || clockseq == null) {
|
|
14339
|
+
var seedBytes = options.random || (options.rng || _rng_js__WEBPACK_IMPORTED_MODULE_0__["default"])();
|
|
14340
|
+
|
|
14341
|
+
if (node == null) {
|
|
14342
|
+
// Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
|
|
14343
|
+
node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
|
|
14344
|
+
}
|
|
14345
|
+
|
|
14346
|
+
if (clockseq == null) {
|
|
14347
|
+
// Per 4.2.2, randomize (14 bit) clockseq
|
|
14348
|
+
clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
|
|
14349
|
+
}
|
|
14350
|
+
} // UUID timestamps are 100 nano-second units since the Gregorian epoch,
|
|
14351
|
+
// (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
|
|
14352
|
+
// time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
|
|
14353
|
+
// (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
|
|
14354
|
+
|
|
14355
|
+
|
|
14356
|
+
var msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
|
|
14357
|
+
// cycle to simulate higher resolution clock
|
|
14358
|
+
|
|
14359
|
+
var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
|
|
14360
|
+
|
|
14361
|
+
var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
|
|
14362
|
+
|
|
14363
|
+
if (dt < 0 && options.clockseq === undefined) {
|
|
14364
|
+
clockseq = clockseq + 1 & 0x3fff;
|
|
14365
|
+
} // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
|
|
14366
|
+
// time interval
|
|
14367
|
+
|
|
14368
|
+
|
|
14369
|
+
if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
|
|
14370
|
+
nsecs = 0;
|
|
14371
|
+
} // Per 4.2.1.2 Throw error if too many uuids are requested
|
|
14372
|
+
|
|
14373
|
+
|
|
14374
|
+
if (nsecs >= 10000) {
|
|
14375
|
+
throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
|
|
14376
|
+
}
|
|
14377
|
+
|
|
14378
|
+
_lastMSecs = msecs;
|
|
14379
|
+
_lastNSecs = nsecs;
|
|
14380
|
+
_clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
|
|
14381
|
+
|
|
14382
|
+
msecs += 12219292800000; // `time_low`
|
|
14383
|
+
|
|
14384
|
+
var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
|
|
14385
|
+
b[i++] = tl >>> 24 & 0xff;
|
|
14386
|
+
b[i++] = tl >>> 16 & 0xff;
|
|
14387
|
+
b[i++] = tl >>> 8 & 0xff;
|
|
14388
|
+
b[i++] = tl & 0xff; // `time_mid`
|
|
14389
|
+
|
|
14390
|
+
var tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
|
|
14391
|
+
b[i++] = tmh >>> 8 & 0xff;
|
|
14392
|
+
b[i++] = tmh & 0xff; // `time_high_and_version`
|
|
14393
|
+
|
|
14394
|
+
b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
|
|
14395
|
+
|
|
14396
|
+
b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
|
|
14397
|
+
|
|
14398
|
+
b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
|
|
14399
|
+
|
|
14400
|
+
b[i++] = clockseq & 0xff; // `node`
|
|
14401
|
+
|
|
14402
|
+
for (var n = 0; n < 6; ++n) {
|
|
14403
|
+
b[i + n] = node[n];
|
|
14404
|
+
}
|
|
14405
|
+
|
|
14406
|
+
return buf || Object(_stringify_js__WEBPACK_IMPORTED_MODULE_1__["default"])(b);
|
|
14407
|
+
}
|
|
14408
|
+
|
|
14409
|
+
/* harmony default export */ __webpack_exports__["default"] = (v1);
|
|
14410
|
+
|
|
14411
|
+
/***/ }),
|
|
14412
|
+
|
|
14413
|
+
/***/ "../pubsub/node_modules/uuid/dist/esm-browser/v3.js":
|
|
14414
|
+
/*!**********************************************************!*\
|
|
14415
|
+
!*** ../pubsub/node_modules/uuid/dist/esm-browser/v3.js ***!
|
|
14416
|
+
\**********************************************************/
|
|
14417
|
+
/*! exports provided: default */
|
|
14418
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
14419
|
+
|
|
14420
|
+
"use strict";
|
|
14421
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14422
|
+
/* harmony import */ var _v35_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v35.js */ "../pubsub/node_modules/uuid/dist/esm-browser/v35.js");
|
|
14423
|
+
/* harmony import */ var _md5_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./md5.js */ "../pubsub/node_modules/uuid/dist/esm-browser/md5.js");
|
|
14424
|
+
|
|
14425
|
+
|
|
14426
|
+
var v3 = Object(_v35_js__WEBPACK_IMPORTED_MODULE_0__["default"])('v3', 0x30, _md5_js__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
|
14427
|
+
/* harmony default export */ __webpack_exports__["default"] = (v3);
|
|
14428
|
+
|
|
14429
|
+
/***/ }),
|
|
14430
|
+
|
|
14431
|
+
/***/ "../pubsub/node_modules/uuid/dist/esm-browser/v35.js":
|
|
14432
|
+
/*!***********************************************************!*\
|
|
14433
|
+
!*** ../pubsub/node_modules/uuid/dist/esm-browser/v35.js ***!
|
|
14434
|
+
\***********************************************************/
|
|
14435
|
+
/*! exports provided: DNS, URL, default */
|
|
14436
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
14437
|
+
|
|
14438
|
+
"use strict";
|
|
14439
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14440
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DNS", function() { return DNS; });
|
|
14441
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "URL", function() { return URL; });
|
|
14442
|
+
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./stringify.js */ "../pubsub/node_modules/uuid/dist/esm-browser/stringify.js");
|
|
14443
|
+
/* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parse.js */ "../pubsub/node_modules/uuid/dist/esm-browser/parse.js");
|
|
14444
|
+
|
|
14445
|
+
|
|
14446
|
+
|
|
14447
|
+
function stringToBytes(str) {
|
|
14448
|
+
str = unescape(encodeURIComponent(str)); // UTF8 escape
|
|
14449
|
+
|
|
14450
|
+
var bytes = [];
|
|
14451
|
+
|
|
14452
|
+
for (var i = 0; i < str.length; ++i) {
|
|
14453
|
+
bytes.push(str.charCodeAt(i));
|
|
14454
|
+
}
|
|
14455
|
+
|
|
14456
|
+
return bytes;
|
|
14457
|
+
}
|
|
14458
|
+
|
|
14459
|
+
var DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
|
|
14460
|
+
var URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
|
|
14461
|
+
/* harmony default export */ __webpack_exports__["default"] = (function (name, version, hashfunc) {
|
|
14462
|
+
function generateUUID(value, namespace, buf, offset) {
|
|
14463
|
+
if (typeof value === 'string') {
|
|
14464
|
+
value = stringToBytes(value);
|
|
14465
|
+
}
|
|
14466
|
+
|
|
14467
|
+
if (typeof namespace === 'string') {
|
|
14468
|
+
namespace = Object(_parse_js__WEBPACK_IMPORTED_MODULE_1__["default"])(namespace);
|
|
14469
|
+
}
|
|
14470
|
+
|
|
14471
|
+
if (namespace.length !== 16) {
|
|
14472
|
+
throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
|
|
14473
|
+
} // Compute hash of namespace and value, Per 4.3
|
|
14474
|
+
// Future: Use spread syntax when supported on all platforms, e.g. `bytes =
|
|
14475
|
+
// hashfunc([...namespace, ... value])`
|
|
14476
|
+
|
|
14477
|
+
|
|
14478
|
+
var bytes = new Uint8Array(16 + value.length);
|
|
14479
|
+
bytes.set(namespace);
|
|
14480
|
+
bytes.set(value, namespace.length);
|
|
14481
|
+
bytes = hashfunc(bytes);
|
|
14482
|
+
bytes[6] = bytes[6] & 0x0f | version;
|
|
14483
|
+
bytes[8] = bytes[8] & 0x3f | 0x80;
|
|
14484
|
+
|
|
14485
|
+
if (buf) {
|
|
14486
|
+
offset = offset || 0;
|
|
14487
|
+
|
|
14488
|
+
for (var i = 0; i < 16; ++i) {
|
|
14489
|
+
buf[offset + i] = bytes[i];
|
|
14490
|
+
}
|
|
14491
|
+
|
|
14492
|
+
return buf;
|
|
14493
|
+
}
|
|
14494
|
+
|
|
14495
|
+
return Object(_stringify_js__WEBPACK_IMPORTED_MODULE_0__["default"])(bytes);
|
|
14496
|
+
} // Function#name is not settable on some platforms (#270)
|
|
14497
|
+
|
|
14498
|
+
|
|
14499
|
+
try {
|
|
14500
|
+
generateUUID.name = name; // eslint-disable-next-line no-empty
|
|
14501
|
+
} catch (err) {} // For CommonJS default export support
|
|
14502
|
+
|
|
14503
|
+
|
|
14504
|
+
generateUUID.DNS = DNS;
|
|
14505
|
+
generateUUID.URL = URL;
|
|
14506
|
+
return generateUUID;
|
|
14507
|
+
});
|
|
14508
|
+
|
|
14509
|
+
/***/ }),
|
|
14510
|
+
|
|
14511
|
+
/***/ "../pubsub/node_modules/uuid/dist/esm-browser/v4.js":
|
|
14512
|
+
/*!**********************************************************!*\
|
|
14513
|
+
!*** ../pubsub/node_modules/uuid/dist/esm-browser/v4.js ***!
|
|
14514
|
+
\**********************************************************/
|
|
14515
|
+
/*! exports provided: default */
|
|
14516
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
14517
|
+
|
|
14518
|
+
"use strict";
|
|
14519
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14520
|
+
/* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rng.js */ "../pubsub/node_modules/uuid/dist/esm-browser/rng.js");
|
|
14521
|
+
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "../pubsub/node_modules/uuid/dist/esm-browser/stringify.js");
|
|
14522
|
+
|
|
14523
|
+
|
|
14524
|
+
|
|
14525
|
+
function v4(options, buf, offset) {
|
|
14526
|
+
options = options || {};
|
|
14527
|
+
var rnds = options.random || (options.rng || _rng_js__WEBPACK_IMPORTED_MODULE_0__["default"])(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
14528
|
+
|
|
14529
|
+
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
14530
|
+
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
14531
|
+
|
|
14532
|
+
if (buf) {
|
|
14533
|
+
offset = offset || 0;
|
|
14534
|
+
|
|
14535
|
+
for (var i = 0; i < 16; ++i) {
|
|
14536
|
+
buf[offset + i] = rnds[i];
|
|
14537
|
+
}
|
|
14538
|
+
|
|
14539
|
+
return buf;
|
|
14540
|
+
}
|
|
14541
|
+
|
|
14542
|
+
return Object(_stringify_js__WEBPACK_IMPORTED_MODULE_1__["default"])(rnds);
|
|
14543
|
+
}
|
|
14544
|
+
|
|
14545
|
+
/* harmony default export */ __webpack_exports__["default"] = (v4);
|
|
14546
|
+
|
|
14547
|
+
/***/ }),
|
|
14548
|
+
|
|
14549
|
+
/***/ "../pubsub/node_modules/uuid/dist/esm-browser/v5.js":
|
|
14550
|
+
/*!**********************************************************!*\
|
|
14551
|
+
!*** ../pubsub/node_modules/uuid/dist/esm-browser/v5.js ***!
|
|
14552
|
+
\**********************************************************/
|
|
14553
|
+
/*! exports provided: default */
|
|
14554
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
14555
|
+
|
|
14556
|
+
"use strict";
|
|
14557
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14558
|
+
/* harmony import */ var _v35_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v35.js */ "../pubsub/node_modules/uuid/dist/esm-browser/v35.js");
|
|
14559
|
+
/* harmony import */ var _sha1_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./sha1.js */ "../pubsub/node_modules/uuid/dist/esm-browser/sha1.js");
|
|
14560
|
+
|
|
14561
|
+
|
|
14562
|
+
var v5 = Object(_v35_js__WEBPACK_IMPORTED_MODULE_0__["default"])('v5', 0x50, _sha1_js__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
|
14563
|
+
/* harmony default export */ __webpack_exports__["default"] = (v5);
|
|
14564
|
+
|
|
14565
|
+
/***/ }),
|
|
14566
|
+
|
|
14567
|
+
/***/ "../pubsub/node_modules/uuid/dist/esm-browser/validate.js":
|
|
14568
|
+
/*!****************************************************************!*\
|
|
14569
|
+
!*** ../pubsub/node_modules/uuid/dist/esm-browser/validate.js ***!
|
|
14570
|
+
\****************************************************************/
|
|
14571
|
+
/*! exports provided: default */
|
|
14572
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
14573
|
+
|
|
14574
|
+
"use strict";
|
|
14575
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14576
|
+
/* harmony import */ var _regex_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./regex.js */ "../pubsub/node_modules/uuid/dist/esm-browser/regex.js");
|
|
14577
|
+
|
|
14578
|
+
|
|
14579
|
+
function validate(uuid) {
|
|
14580
|
+
return typeof uuid === 'string' && _regex_js__WEBPACK_IMPORTED_MODULE_0__["default"].test(uuid);
|
|
14581
|
+
}
|
|
14582
|
+
|
|
14583
|
+
/* harmony default export */ __webpack_exports__["default"] = (validate);
|
|
14584
|
+
|
|
14585
|
+
/***/ }),
|
|
14586
|
+
|
|
14587
|
+
/***/ "../pubsub/node_modules/uuid/dist/esm-browser/version.js":
|
|
14588
|
+
/*!***************************************************************!*\
|
|
14589
|
+
!*** ../pubsub/node_modules/uuid/dist/esm-browser/version.js ***!
|
|
14590
|
+
\***************************************************************/
|
|
14591
|
+
/*! exports provided: default */
|
|
14592
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
14593
|
+
|
|
14594
|
+
"use strict";
|
|
14595
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14596
|
+
/* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "../pubsub/node_modules/uuid/dist/esm-browser/validate.js");
|
|
14597
|
+
|
|
14598
|
+
|
|
14599
|
+
function version(uuid) {
|
|
14600
|
+
if (!Object(_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
|
|
14601
|
+
throw TypeError('Invalid UUID');
|
|
14602
|
+
}
|
|
14603
|
+
|
|
14604
|
+
return parseInt(uuid.substr(14, 1), 16);
|
|
14605
|
+
}
|
|
14606
|
+
|
|
14607
|
+
/* harmony default export */ __webpack_exports__["default"] = (version);
|
|
14608
|
+
|
|
14609
|
+
/***/ }),
|
|
14610
|
+
|
|
14611
|
+
/***/ "./lib-esm/GraphQLAPI.js":
|
|
14612
|
+
/*!*******************************!*\
|
|
14613
|
+
!*** ./lib-esm/GraphQLAPI.js ***!
|
|
14614
|
+
\*******************************/
|
|
14615
|
+
/*! exports provided: graphqlOperation, GraphQLAPIClass, GraphQLAPI */
|
|
14616
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
14617
|
+
|
|
14618
|
+
"use strict";
|
|
14619
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14620
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "graphqlOperation", function() { return graphqlOperation; });
|
|
14621
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphQLAPIClass", function() { return GraphQLAPIClass; });
|
|
14622
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphQLAPI", function() { return GraphQLAPI; });
|
|
14623
|
+
/* harmony import */ var graphql__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! graphql */ "graphql");
|
|
14624
|
+
/* harmony import */ var graphql__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(graphql__WEBPACK_IMPORTED_MODULE_0__);
|
|
14625
|
+
/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
|
|
14626
|
+
/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
14627
|
+
/* harmony import */ var _aws_amplify_pubsub__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @aws-amplify/pubsub */ "../pubsub/lib-esm/index.js");
|
|
14628
|
+
/* harmony import */ var _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @aws-amplify/auth */ "@aws-amplify/auth");
|
|
14629
|
+
/* harmony import */ var _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_auth__WEBPACK_IMPORTED_MODULE_3__);
|
|
14630
|
+
/* harmony import */ var _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-amplify/cache */ "@aws-amplify/cache");
|
|
14631
|
+
/* harmony import */ var _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_aws_amplify_cache__WEBPACK_IMPORTED_MODULE_4__);
|
|
14632
|
+
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./types */ "./lib-esm/types/index.js");
|
|
14633
|
+
/* harmony import */ var _aws_amplify_api_rest__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @aws-amplify/api-rest */ "../api-rest/lib-esm/index.js");
|
|
14634
|
+
var __assign = undefined && undefined.__assign || function () {
|
|
14635
|
+
__assign = Object.assign || function (t) {
|
|
14636
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
14637
|
+
s = arguments[i];
|
|
14638
|
+
|
|
14639
|
+
for (var p in s) {
|
|
14640
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
14641
|
+
}
|
|
14642
|
+
}
|
|
14643
|
+
|
|
14644
|
+
return t;
|
|
14645
|
+
};
|
|
14646
|
+
|
|
14647
|
+
return __assign.apply(this, arguments);
|
|
14648
|
+
};
|
|
14649
|
+
|
|
14650
|
+
var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
14651
|
+
function adopt(value) {
|
|
14652
|
+
return value instanceof P ? value : new P(function (resolve) {
|
|
14653
|
+
resolve(value);
|
|
14654
|
+
});
|
|
14655
|
+
}
|
|
14656
|
+
|
|
14657
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14658
|
+
function fulfilled(value) {
|
|
14659
|
+
try {
|
|
14660
|
+
step(generator.next(value));
|
|
14661
|
+
} catch (e) {
|
|
14662
|
+
reject(e);
|
|
14663
|
+
}
|
|
14664
|
+
}
|
|
14665
|
+
|
|
14666
|
+
function rejected(value) {
|
|
14667
|
+
try {
|
|
14668
|
+
step(generator["throw"](value));
|
|
14669
|
+
} catch (e) {
|
|
14670
|
+
reject(e);
|
|
14671
|
+
}
|
|
14672
|
+
}
|
|
14673
|
+
|
|
14674
|
+
function step(result) {
|
|
14675
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
14676
|
+
}
|
|
14677
|
+
|
|
14678
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
14679
|
+
});
|
|
14680
|
+
};
|
|
14681
|
+
|
|
14682
|
+
var __generator = undefined && undefined.__generator || function (thisArg, body) {
|
|
14683
|
+
var _ = {
|
|
14684
|
+
label: 0,
|
|
14685
|
+
sent: function sent() {
|
|
14686
|
+
if (t[0] & 1) throw t[1];
|
|
14687
|
+
return t[1];
|
|
14688
|
+
},
|
|
14689
|
+
trys: [],
|
|
14690
|
+
ops: []
|
|
14691
|
+
},
|
|
14692
|
+
f,
|
|
14693
|
+
y,
|
|
14694
|
+
t,
|
|
14695
|
+
g;
|
|
14696
|
+
return g = {
|
|
14697
|
+
next: verb(0),
|
|
14698
|
+
"throw": verb(1),
|
|
14492
14699
|
"return": verb(2)
|
|
14493
14700
|
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
14494
14701
|
return this;
|
|
@@ -14643,10 +14850,8 @@ var __read = undefined && undefined.__read || function (o, n) {
|
|
|
14643
14850
|
|
|
14644
14851
|
|
|
14645
14852
|
|
|
14646
|
-
|
|
14647
|
-
|
|
14648
14853
|
var USER_AGENT_HEADER = 'x-amz-user-agent';
|
|
14649
|
-
var logger = new
|
|
14854
|
+
var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["ConsoleLogger"]('GraphQLAPI');
|
|
14650
14855
|
var graphqlOperation = function graphqlOperation(query, variables, authToken) {
|
|
14651
14856
|
if (variables === void 0) {
|
|
14652
14857
|
variables = {};
|
|
@@ -14671,9 +14876,9 @@ function () {
|
|
|
14671
14876
|
*/
|
|
14672
14877
|
function GraphQLAPIClass(options) {
|
|
14673
14878
|
this._api = null;
|
|
14674
|
-
this.Auth =
|
|
14675
|
-
this.Cache =
|
|
14676
|
-
this.Credentials =
|
|
14879
|
+
this.Auth = _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_3___default.a;
|
|
14880
|
+
this.Cache = _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_4___default.a;
|
|
14881
|
+
this.Credentials = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["Credentials"];
|
|
14677
14882
|
this._options = options;
|
|
14678
14883
|
logger.debug('API Options', this._options);
|
|
14679
14884
|
}
|
|
@@ -14726,7 +14931,7 @@ function () {
|
|
|
14726
14931
|
logger.debug('create Rest instance');
|
|
14727
14932
|
|
|
14728
14933
|
if (this._options) {
|
|
14729
|
-
this._api = new
|
|
14934
|
+
this._api = new _aws_amplify_api_rest__WEBPACK_IMPORTED_MODULE_6__["RestClient"](this._options); // Share instance Credentials with client for SSR
|
|
14730
14935
|
|
|
14731
14936
|
this._api.Credentials = this.Credentials;
|
|
14732
14937
|
return true;
|
|
@@ -14784,7 +14989,7 @@ function () {
|
|
|
14784
14989
|
|
|
14785
14990
|
case 1:
|
|
14786
14991
|
if (!apiKey) {
|
|
14787
|
-
throw new Error(
|
|
14992
|
+
throw new Error(_types__WEBPACK_IMPORTED_MODULE_5__["GraphQLAuthError"].NO_API_KEY);
|
|
14788
14993
|
}
|
|
14789
14994
|
|
|
14790
14995
|
headers = {
|
|
@@ -14804,7 +15009,7 @@ function () {
|
|
|
14804
15009
|
credentialsOK = _c.sent();
|
|
14805
15010
|
|
|
14806
15011
|
if (!credentialsOK) {
|
|
14807
|
-
throw new Error(
|
|
15012
|
+
throw new Error(_types__WEBPACK_IMPORTED_MODULE_5__["GraphQLAuthError"].NO_CREDENTIALS);
|
|
14808
15013
|
}
|
|
14809
15014
|
|
|
14810
15015
|
return [3
|
|
@@ -14817,7 +15022,7 @@ function () {
|
|
|
14817
15022
|
token = void 0;
|
|
14818
15023
|
return [4
|
|
14819
15024
|
/*yield*/
|
|
14820
|
-
,
|
|
15025
|
+
, _aws_amplify_cache__WEBPACK_IMPORTED_MODULE_4___default.a.getItem('federatedInfo')];
|
|
14821
15026
|
|
|
14822
15027
|
case 5:
|
|
14823
15028
|
federatedInfo = _c.sent();
|
|
@@ -14832,7 +15037,7 @@ function () {
|
|
|
14832
15037
|
case 6:
|
|
14833
15038
|
return [4
|
|
14834
15039
|
/*yield*/
|
|
14835
|
-
,
|
|
15040
|
+
, _aws_amplify_auth__WEBPACK_IMPORTED_MODULE_3___default.a.currentAuthenticatedUser()];
|
|
14836
15041
|
|
|
14837
15042
|
case 7:
|
|
14838
15043
|
currentUser = _c.sent();
|
|
@@ -14845,7 +15050,7 @@ function () {
|
|
|
14845
15050
|
|
|
14846
15051
|
case 8:
|
|
14847
15052
|
if (!token) {
|
|
14848
|
-
throw new Error(
|
|
15053
|
+
throw new Error(_types__WEBPACK_IMPORTED_MODULE_5__["GraphQLAuthError"].NO_FEDERATED_JWT);
|
|
14849
15054
|
}
|
|
14850
15055
|
|
|
14851
15056
|
headers = {
|
|
@@ -14857,7 +15062,7 @@ function () {
|
|
|
14857
15062
|
|
|
14858
15063
|
case 9:
|
|
14859
15064
|
e_1 = _c.sent();
|
|
14860
|
-
throw new Error(
|
|
15065
|
+
throw new Error(_types__WEBPACK_IMPORTED_MODULE_5__["GraphQLAuthError"].NO_CURRENT_USER);
|
|
14861
15066
|
|
|
14862
15067
|
case 10:
|
|
14863
15068
|
return [3
|
|
@@ -14882,7 +15087,7 @@ function () {
|
|
|
14882
15087
|
|
|
14883
15088
|
case 13:
|
|
14884
15089
|
e_2 = _c.sent();
|
|
14885
|
-
throw new Error(
|
|
15090
|
+
throw new Error(_types__WEBPACK_IMPORTED_MODULE_5__["GraphQLAuthError"].NO_CURRENT_USER);
|
|
14886
15091
|
|
|
14887
15092
|
case 14:
|
|
14888
15093
|
return [3
|
|
@@ -14891,7 +15096,7 @@ function () {
|
|
|
14891
15096
|
|
|
14892
15097
|
case 15:
|
|
14893
15098
|
if (!additionalHeaders.Authorization) {
|
|
14894
|
-
throw new Error(
|
|
15099
|
+
throw new Error(_types__WEBPACK_IMPORTED_MODULE_5__["GraphQLAuthError"].NO_AUTH_TOKEN);
|
|
14895
15100
|
}
|
|
14896
15101
|
|
|
14897
15102
|
headers = {
|
|
@@ -14924,9 +15129,10 @@ function () {
|
|
|
14924
15129
|
|
|
14925
15130
|
|
|
14926
15131
|
GraphQLAPIClass.prototype.getGraphqlOperationType = function (operation) {
|
|
14927
|
-
var doc = Object(
|
|
15132
|
+
var doc = Object(graphql__WEBPACK_IMPORTED_MODULE_0__["parse"])(operation);
|
|
15133
|
+
var definitions = doc.definitions;
|
|
14928
15134
|
|
|
14929
|
-
var _a = __read(
|
|
15135
|
+
var _a = __read(definitions, 1),
|
|
14930
15136
|
operationType = _a[0].operation;
|
|
14931
15137
|
|
|
14932
15138
|
return operationType;
|
|
@@ -14946,7 +15152,7 @@ function () {
|
|
|
14946
15152
|
variables = _b === void 0 ? {} : _b,
|
|
14947
15153
|
authMode = _a.authMode,
|
|
14948
15154
|
authToken = _a.authToken;
|
|
14949
|
-
var query = typeof paramQuery === 'string' ? Object(
|
|
15155
|
+
var query = typeof paramQuery === 'string' ? Object(graphql__WEBPACK_IMPORTED_MODULE_0__["parse"])(paramQuery) : Object(graphql__WEBPACK_IMPORTED_MODULE_0__["parse"])(Object(graphql__WEBPACK_IMPORTED_MODULE_0__["print"])(paramQuery));
|
|
14950
15156
|
|
|
14951
15157
|
var _c = __read(query.definitions.filter(function (def) {
|
|
14952
15158
|
return def.kind === 'OperationDefinition';
|
|
@@ -15080,9 +15286,9 @@ function () {
|
|
|
15080
15286
|
})];
|
|
15081
15287
|
|
|
15082
15288
|
case 9:
|
|
15083
|
-
headers = __assign.apply(void 0, [__assign.apply(void 0, [__assign.apply(void 0, _j.concat([_l.sent()])), additionalHeaders]), !customGraphqlEndpoint && (_k = {}, _k[USER_AGENT_HEADER] =
|
|
15289
|
+
headers = __assign.apply(void 0, [__assign.apply(void 0, [__assign.apply(void 0, _j.concat([_l.sent()])), additionalHeaders]), !customGraphqlEndpoint && (_k = {}, _k[USER_AGENT_HEADER] = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["Constants"].userAgent, _k)]);
|
|
15084
15290
|
body = {
|
|
15085
|
-
query: Object(
|
|
15291
|
+
query: Object(graphql__WEBPACK_IMPORTED_MODULE_0__["print"])(query),
|
|
15086
15292
|
variables: variables
|
|
15087
15293
|
};
|
|
15088
15294
|
init = Object.assign({
|
|
@@ -15096,7 +15302,7 @@ function () {
|
|
|
15096
15302
|
endpoint = customGraphqlEndpoint || appSyncGraphqlEndpoint;
|
|
15097
15303
|
|
|
15098
15304
|
if (!endpoint) {
|
|
15099
|
-
error = new
|
|
15305
|
+
error = new graphql__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"]('No graphql endpoint provided.');
|
|
15100
15306
|
throw {
|
|
15101
15307
|
data: {},
|
|
15102
15308
|
errors: [error]
|
|
@@ -15129,7 +15335,7 @@ function () {
|
|
|
15129
15335
|
|
|
15130
15336
|
response = {
|
|
15131
15337
|
data: {},
|
|
15132
|
-
errors: [new
|
|
15338
|
+
errors: [new graphql__WEBPACK_IMPORTED_MODULE_0__["GraphQLError"](err_1.message, null, null, null, null, err_1)]
|
|
15133
15339
|
};
|
|
15134
15340
|
return [3
|
|
15135
15341
|
/*break*/
|
|
@@ -15191,13 +15397,13 @@ function () {
|
|
|
15191
15397
|
} : _c;
|
|
15192
15398
|
var authenticationType = defaultAuthenticationType || aws_appsync_authenticationType || 'AWS_IAM';
|
|
15193
15399
|
|
|
15194
|
-
if (
|
|
15195
|
-
return
|
|
15196
|
-
provider:
|
|
15400
|
+
if (_aws_amplify_pubsub__WEBPACK_IMPORTED_MODULE_2__["default"] && typeof _aws_amplify_pubsub__WEBPACK_IMPORTED_MODULE_2__["default"].subscribe === 'function') {
|
|
15401
|
+
return _aws_amplify_pubsub__WEBPACK_IMPORTED_MODULE_2__["default"].subscribe('', {
|
|
15402
|
+
provider: _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER"],
|
|
15197
15403
|
appSyncGraphqlEndpoint: appSyncGraphqlEndpoint,
|
|
15198
15404
|
authenticationType: authenticationType,
|
|
15199
15405
|
apiKey: apiKey,
|
|
15200
|
-
query: Object(
|
|
15406
|
+
query: Object(graphql__WEBPACK_IMPORTED_MODULE_0__["print"])(query),
|
|
15201
15407
|
region: region,
|
|
15202
15408
|
variables: variables,
|
|
15203
15409
|
graphql_headers: graphql_headers,
|
|
@@ -15235,7 +15441,7 @@ function () {
|
|
|
15235
15441
|
|
|
15236
15442
|
|
|
15237
15443
|
var GraphQLAPI = new GraphQLAPIClass(null);
|
|
15238
|
-
|
|
15444
|
+
_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["Amplify"].register(GraphQLAPI);
|
|
15239
15445
|
|
|
15240
15446
|
/***/ }),
|
|
15241
15447
|
|
|
@@ -15355,28 +15561,6 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__aws_amplify_core__;
|
|
|
15355
15561
|
|
|
15356
15562
|
module.exports = __WEBPACK_EXTERNAL_MODULE_graphql__;
|
|
15357
15563
|
|
|
15358
|
-
/***/ }),
|
|
15359
|
-
|
|
15360
|
-
/***/ "graphql/language/parser":
|
|
15361
|
-
/*!******************************************!*\
|
|
15362
|
-
!*** external "graphql/language/parser" ***!
|
|
15363
|
-
\******************************************/
|
|
15364
|
-
/*! no static exports found */
|
|
15365
|
-
/***/ (function(module, exports) {
|
|
15366
|
-
|
|
15367
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE_graphql_language_parser__;
|
|
15368
|
-
|
|
15369
|
-
/***/ }),
|
|
15370
|
-
|
|
15371
|
-
/***/ "graphql/language/printer":
|
|
15372
|
-
/*!*******************************************!*\
|
|
15373
|
-
!*** external "graphql/language/printer" ***!
|
|
15374
|
-
\*******************************************/
|
|
15375
|
-
/*! no static exports found */
|
|
15376
|
-
/***/ (function(module, exports) {
|
|
15377
|
-
|
|
15378
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE_graphql_language_printer__;
|
|
15379
|
-
|
|
15380
15564
|
/***/ })
|
|
15381
15565
|
|
|
15382
15566
|
/******/ });
|