@aws-amplify/datastore 3.4.9-unstable.9 → 3.5.1-unstable.3
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.
|
@@ -55889,7 +55889,7 @@ var getAmplifyUserAgent = function getAmplifyUserAgent() {
|
|
|
55889
55889
|
__webpack_require__.r(__webpack_exports__);
|
|
55890
55890
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "version", function() { return version; });
|
|
55891
55891
|
// generated by genversion
|
|
55892
|
-
var version = '4.3.
|
|
55892
|
+
var version = '4.3.3';
|
|
55893
55893
|
|
|
55894
55894
|
/***/ }),
|
|
55895
55895
|
|
|
@@ -66433,8 +66433,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
66433
66433
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataStore", function() { return instance; });
|
|
66434
66434
|
/* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @aws-amplify/core */ "../core/lib-esm/index.js");
|
|
66435
66435
|
/* harmony import */ var immer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! immer */ "./node_modules/immer/dist/immer.esm.js");
|
|
66436
|
-
/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! uuid */ "./node_modules/uuid/index.js");
|
|
66437
|
-
/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(uuid__WEBPACK_IMPORTED_MODULE_2__);
|
|
66436
|
+
/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! uuid */ "./node_modules/uuid/dist/esm-browser/index.js");
|
|
66438
66437
|
/* harmony import */ var zen_observable_ts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! zen-observable-ts */ "../../node_modules/zen-observable-ts/lib/bundle.esm.js");
|
|
66439
66438
|
/* harmony import */ var _authModeStrategies__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../authModeStrategies */ "./lib-esm/authModeStrategies/index.js");
|
|
66440
66439
|
/* harmony import */ var _predicates__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../predicates */ "./lib-esm/predicates/index.js");
|
|
@@ -80456,8 +80455,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
80456
80455
|
/* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! buffer */ "../../node_modules/buffer/index.js");
|
|
80457
80456
|
/* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(buffer__WEBPACK_IMPORTED_MODULE_0__);
|
|
80458
80457
|
/* harmony import */ var ulid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ulid */ "../../node_modules/ulid/dist/index.esm.js");
|
|
80459
|
-
/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! uuid */ "./node_modules/uuid/index.js");
|
|
80460
|
-
/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(uuid__WEBPACK_IMPORTED_MODULE_2__);
|
|
80458
|
+
/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! uuid */ "./node_modules/uuid/dist/esm-browser/index.js");
|
|
80461
80459
|
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./types */ "./lib-esm/types.js");
|
|
80462
80460
|
/* harmony import */ var amazon_cognito_identity_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! amazon-cognito-identity-js */ "../amazon-cognito-identity-js/es/index.js");
|
|
80463
80461
|
function _typeof(obj) {
|
|
@@ -81354,262 +81352,842 @@ function n(n){for(var t=arguments.length,r=Array(t>1?t-1:0),e=1;e<t;e++)r[e-1]=a
|
|
|
81354
81352
|
|
|
81355
81353
|
/***/ }),
|
|
81356
81354
|
|
|
81357
|
-
/***/ "./node_modules/uuid/index.js":
|
|
81358
|
-
|
|
81359
|
-
!*** ./node_modules/uuid/index.js ***!
|
|
81360
|
-
|
|
81361
|
-
/*!
|
|
81362
|
-
/***/ (function(module,
|
|
81355
|
+
/***/ "./node_modules/uuid/dist/esm-browser/index.js":
|
|
81356
|
+
/*!*****************************************************!*\
|
|
81357
|
+
!*** ./node_modules/uuid/dist/esm-browser/index.js ***!
|
|
81358
|
+
\*****************************************************/
|
|
81359
|
+
/*! exports provided: v1, v3, v4, v5, NIL, version, validate, stringify, parse */
|
|
81360
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
81361
|
+
|
|
81362
|
+
"use strict";
|
|
81363
|
+
__webpack_require__.r(__webpack_exports__);
|
|
81364
|
+
/* harmony import */ var _v1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v1.js */ "./node_modules/uuid/dist/esm-browser/v1.js");
|
|
81365
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "v1", function() { return _v1_js__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
|
81366
|
+
|
|
81367
|
+
/* harmony import */ var _v3_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./v3.js */ "./node_modules/uuid/dist/esm-browser/v3.js");
|
|
81368
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "v3", function() { return _v3_js__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
|
81369
|
+
|
|
81370
|
+
/* harmony import */ var _v4_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./v4.js */ "./node_modules/uuid/dist/esm-browser/v4.js");
|
|
81371
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "v4", function() { return _v4_js__WEBPACK_IMPORTED_MODULE_2__["default"]; });
|
|
81372
|
+
|
|
81373
|
+
/* harmony import */ var _v5_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./v5.js */ "./node_modules/uuid/dist/esm-browser/v5.js");
|
|
81374
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "v5", function() { return _v5_js__WEBPACK_IMPORTED_MODULE_3__["default"]; });
|
|
81375
|
+
|
|
81376
|
+
/* harmony import */ var _nil_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./nil.js */ "./node_modules/uuid/dist/esm-browser/nil.js");
|
|
81377
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NIL", function() { return _nil_js__WEBPACK_IMPORTED_MODULE_4__["default"]; });
|
|
81378
|
+
|
|
81379
|
+
/* harmony import */ var _version_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./version.js */ "./node_modules/uuid/dist/esm-browser/version.js");
|
|
81380
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "version", function() { return _version_js__WEBPACK_IMPORTED_MODULE_5__["default"]; });
|
|
81381
|
+
|
|
81382
|
+
/* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/esm-browser/validate.js");
|
|
81383
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "validate", function() { return _validate_js__WEBPACK_IMPORTED_MODULE_6__["default"]; });
|
|
81384
|
+
|
|
81385
|
+
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/esm-browser/stringify.js");
|
|
81386
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stringify", function() { return _stringify_js__WEBPACK_IMPORTED_MODULE_7__["default"]; });
|
|
81387
|
+
|
|
81388
|
+
/* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./parse.js */ "./node_modules/uuid/dist/esm-browser/parse.js");
|
|
81389
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parse", function() { return _parse_js__WEBPACK_IMPORTED_MODULE_8__["default"]; });
|
|
81390
|
+
|
|
81391
|
+
|
|
81392
|
+
|
|
81393
|
+
|
|
81394
|
+
|
|
81395
|
+
|
|
81363
81396
|
|
|
81364
|
-
var v1 = __webpack_require__(/*! ./v1 */ "./node_modules/uuid/v1.js");
|
|
81365
|
-
var v4 = __webpack_require__(/*! ./v4 */ "./node_modules/uuid/v4.js");
|
|
81366
81397
|
|
|
81367
|
-
var uuid = v4;
|
|
81368
|
-
uuid.v1 = v1;
|
|
81369
|
-
uuid.v4 = v4;
|
|
81370
81398
|
|
|
81371
|
-
module.exports = uuid;
|
|
81372
81399
|
|
|
81373
81400
|
|
|
81374
81401
|
/***/ }),
|
|
81375
81402
|
|
|
81376
|
-
/***/ "./node_modules/uuid/
|
|
81377
|
-
|
|
81378
|
-
!*** ./node_modules/uuid/
|
|
81379
|
-
|
|
81380
|
-
/*!
|
|
81381
|
-
/***/ (function(module,
|
|
81403
|
+
/***/ "./node_modules/uuid/dist/esm-browser/md5.js":
|
|
81404
|
+
/*!***************************************************!*\
|
|
81405
|
+
!*** ./node_modules/uuid/dist/esm-browser/md5.js ***!
|
|
81406
|
+
\***************************************************/
|
|
81407
|
+
/*! exports provided: default */
|
|
81408
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
81409
|
+
|
|
81410
|
+
"use strict";
|
|
81411
|
+
__webpack_require__.r(__webpack_exports__);
|
|
81412
|
+
/*
|
|
81413
|
+
* Browser-compatible JavaScript MD5
|
|
81414
|
+
*
|
|
81415
|
+
* Modification of JavaScript MD5
|
|
81416
|
+
* https://github.com/blueimp/JavaScript-MD5
|
|
81417
|
+
*
|
|
81418
|
+
* Copyright 2011, Sebastian Tschan
|
|
81419
|
+
* https://blueimp.net
|
|
81420
|
+
*
|
|
81421
|
+
* Licensed under the MIT license:
|
|
81422
|
+
* https://opensource.org/licenses/MIT
|
|
81423
|
+
*
|
|
81424
|
+
* Based on
|
|
81425
|
+
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
|
|
81426
|
+
* Digest Algorithm, as defined in RFC 1321.
|
|
81427
|
+
* Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
|
|
81428
|
+
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
|
|
81429
|
+
* Distributed under the BSD License
|
|
81430
|
+
* See http://pajhome.org.uk/crypt/md5 for more info.
|
|
81431
|
+
*/
|
|
81432
|
+
function md5(bytes) {
|
|
81433
|
+
if (typeof bytes === 'string') {
|
|
81434
|
+
var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
|
|
81435
|
+
|
|
81436
|
+
bytes = new Uint8Array(msg.length);
|
|
81437
|
+
|
|
81438
|
+
for (var i = 0; i < msg.length; ++i) {
|
|
81439
|
+
bytes[i] = msg.charCodeAt(i);
|
|
81440
|
+
}
|
|
81441
|
+
}
|
|
81442
|
+
|
|
81443
|
+
return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8));
|
|
81444
|
+
}
|
|
81445
|
+
/*
|
|
81446
|
+
* Convert an array of little-endian words to an array of bytes
|
|
81447
|
+
*/
|
|
81448
|
+
|
|
81449
|
+
|
|
81450
|
+
function md5ToHexEncodedArray(input) {
|
|
81451
|
+
var output = [];
|
|
81452
|
+
var length32 = input.length * 32;
|
|
81453
|
+
var hexTab = '0123456789abcdef';
|
|
81382
81454
|
|
|
81455
|
+
for (var i = 0; i < length32; i += 8) {
|
|
81456
|
+
var x = input[i >> 5] >>> i % 32 & 0xff;
|
|
81457
|
+
var hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16);
|
|
81458
|
+
output.push(hex);
|
|
81459
|
+
}
|
|
81460
|
+
|
|
81461
|
+
return output;
|
|
81462
|
+
}
|
|
81383
81463
|
/**
|
|
81384
|
-
*
|
|
81385
|
-
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
81464
|
+
* Calculate output length with padding and bit length
|
|
81386
81465
|
*/
|
|
81387
|
-
|
|
81388
|
-
|
|
81389
|
-
|
|
81466
|
+
|
|
81467
|
+
|
|
81468
|
+
function getOutputLength(inputLength8) {
|
|
81469
|
+
return (inputLength8 + 64 >>> 9 << 4) + 14 + 1;
|
|
81390
81470
|
}
|
|
81471
|
+
/*
|
|
81472
|
+
* Calculate the MD5 of an array of little-endian words, and a bit length.
|
|
81473
|
+
*/
|
|
81391
81474
|
|
|
81392
|
-
|
|
81393
|
-
|
|
81394
|
-
|
|
81395
|
-
|
|
81396
|
-
|
|
81397
|
-
|
|
81398
|
-
|
|
81399
|
-
|
|
81400
|
-
|
|
81401
|
-
|
|
81402
|
-
|
|
81403
|
-
|
|
81475
|
+
|
|
81476
|
+
function wordsToMd5(x, len) {
|
|
81477
|
+
/* append padding */
|
|
81478
|
+
x[len >> 5] |= 0x80 << len % 32;
|
|
81479
|
+
x[getOutputLength(len) - 1] = len;
|
|
81480
|
+
var a = 1732584193;
|
|
81481
|
+
var b = -271733879;
|
|
81482
|
+
var c = -1732584194;
|
|
81483
|
+
var d = 271733878;
|
|
81484
|
+
|
|
81485
|
+
for (var i = 0; i < x.length; i += 16) {
|
|
81486
|
+
var olda = a;
|
|
81487
|
+
var oldb = b;
|
|
81488
|
+
var oldc = c;
|
|
81489
|
+
var oldd = d;
|
|
81490
|
+
a = md5ff(a, b, c, d, x[i], 7, -680876936);
|
|
81491
|
+
d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
|
|
81492
|
+
c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
|
|
81493
|
+
b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
|
|
81494
|
+
a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
|
|
81495
|
+
d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
|
|
81496
|
+
c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
|
|
81497
|
+
b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
|
|
81498
|
+
a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
|
|
81499
|
+
d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
|
|
81500
|
+
c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
|
|
81501
|
+
b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
|
|
81502
|
+
a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
|
|
81503
|
+
d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
|
|
81504
|
+
c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
|
|
81505
|
+
b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
|
|
81506
|
+
a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
|
|
81507
|
+
d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
|
|
81508
|
+
c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
|
|
81509
|
+
b = md5gg(b, c, d, a, x[i], 20, -373897302);
|
|
81510
|
+
a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
|
|
81511
|
+
d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
|
|
81512
|
+
c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
|
|
81513
|
+
b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
|
|
81514
|
+
a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
|
|
81515
|
+
d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
|
|
81516
|
+
c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
|
|
81517
|
+
b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
|
|
81518
|
+
a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
|
|
81519
|
+
d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
|
|
81520
|
+
c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
|
|
81521
|
+
b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
|
|
81522
|
+
a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
|
|
81523
|
+
d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
|
|
81524
|
+
c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
|
|
81525
|
+
b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
|
|
81526
|
+
a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
|
|
81527
|
+
d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
|
|
81528
|
+
c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
|
|
81529
|
+
b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
|
|
81530
|
+
a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
|
|
81531
|
+
d = md5hh(d, a, b, c, x[i], 11, -358537222);
|
|
81532
|
+
c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
|
|
81533
|
+
b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
|
|
81534
|
+
a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
|
|
81535
|
+
d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
|
|
81536
|
+
c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
|
|
81537
|
+
b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
|
|
81538
|
+
a = md5ii(a, b, c, d, x[i], 6, -198630844);
|
|
81539
|
+
d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
|
|
81540
|
+
c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
|
|
81541
|
+
b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
|
|
81542
|
+
a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
|
|
81543
|
+
d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
|
|
81544
|
+
c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
|
|
81545
|
+
b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
|
|
81546
|
+
a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
|
|
81547
|
+
d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
|
|
81548
|
+
c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
|
|
81549
|
+
b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
|
|
81550
|
+
a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
|
|
81551
|
+
d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
|
|
81552
|
+
c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
|
|
81553
|
+
b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
|
|
81554
|
+
a = safeAdd(a, olda);
|
|
81555
|
+
b = safeAdd(b, oldb);
|
|
81556
|
+
c = safeAdd(c, oldc);
|
|
81557
|
+
d = safeAdd(d, oldd);
|
|
81558
|
+
}
|
|
81559
|
+
|
|
81560
|
+
return [a, b, c, d];
|
|
81404
81561
|
}
|
|
81562
|
+
/*
|
|
81563
|
+
* Convert an array bytes to an array of little-endian words
|
|
81564
|
+
* Characters >255 have their high-byte silently ignored.
|
|
81565
|
+
*/
|
|
81405
81566
|
|
|
81406
|
-
|
|
81567
|
+
|
|
81568
|
+
function bytesToWords(input) {
|
|
81569
|
+
if (input.length === 0) {
|
|
81570
|
+
return [];
|
|
81571
|
+
}
|
|
81572
|
+
|
|
81573
|
+
var length8 = input.length * 8;
|
|
81574
|
+
var output = new Uint32Array(getOutputLength(length8));
|
|
81575
|
+
|
|
81576
|
+
for (var i = 0; i < length8; i += 8) {
|
|
81577
|
+
output[i >> 5] |= (input[i / 8] & 0xff) << i % 32;
|
|
81578
|
+
}
|
|
81579
|
+
|
|
81580
|
+
return output;
|
|
81581
|
+
}
|
|
81582
|
+
/*
|
|
81583
|
+
* Add integers, wrapping at 2^32. This uses 16-bit operations internally
|
|
81584
|
+
* to work around bugs in some JS interpreters.
|
|
81585
|
+
*/
|
|
81586
|
+
|
|
81587
|
+
|
|
81588
|
+
function safeAdd(x, y) {
|
|
81589
|
+
var lsw = (x & 0xffff) + (y & 0xffff);
|
|
81590
|
+
var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
|
|
81591
|
+
return msw << 16 | lsw & 0xffff;
|
|
81592
|
+
}
|
|
81593
|
+
/*
|
|
81594
|
+
* Bitwise rotate a 32-bit number to the left.
|
|
81595
|
+
*/
|
|
81407
81596
|
|
|
81408
81597
|
|
|
81598
|
+
function bitRotateLeft(num, cnt) {
|
|
81599
|
+
return num << cnt | num >>> 32 - cnt;
|
|
81600
|
+
}
|
|
81601
|
+
/*
|
|
81602
|
+
* These functions implement the four basic operations the algorithm uses.
|
|
81603
|
+
*/
|
|
81604
|
+
|
|
81605
|
+
|
|
81606
|
+
function md5cmn(q, a, b, x, s, t) {
|
|
81607
|
+
return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
|
|
81608
|
+
}
|
|
81609
|
+
|
|
81610
|
+
function md5ff(a, b, c, d, x, s, t) {
|
|
81611
|
+
return md5cmn(b & c | ~b & d, a, b, x, s, t);
|
|
81612
|
+
}
|
|
81613
|
+
|
|
81614
|
+
function md5gg(a, b, c, d, x, s, t) {
|
|
81615
|
+
return md5cmn(b & d | c & ~d, a, b, x, s, t);
|
|
81616
|
+
}
|
|
81617
|
+
|
|
81618
|
+
function md5hh(a, b, c, d, x, s, t) {
|
|
81619
|
+
return md5cmn(b ^ c ^ d, a, b, x, s, t);
|
|
81620
|
+
}
|
|
81621
|
+
|
|
81622
|
+
function md5ii(a, b, c, d, x, s, t) {
|
|
81623
|
+
return md5cmn(c ^ (b | ~d), a, b, x, s, t);
|
|
81624
|
+
}
|
|
81625
|
+
|
|
81626
|
+
/* harmony default export */ __webpack_exports__["default"] = (md5);
|
|
81627
|
+
|
|
81409
81628
|
/***/ }),
|
|
81410
81629
|
|
|
81411
|
-
/***/ "./node_modules/uuid/
|
|
81412
|
-
|
|
81413
|
-
!*** ./node_modules/uuid/
|
|
81414
|
-
|
|
81415
|
-
/*!
|
|
81416
|
-
/***/ (function(module,
|
|
81630
|
+
/***/ "./node_modules/uuid/dist/esm-browser/nil.js":
|
|
81631
|
+
/*!***************************************************!*\
|
|
81632
|
+
!*** ./node_modules/uuid/dist/esm-browser/nil.js ***!
|
|
81633
|
+
\***************************************************/
|
|
81634
|
+
/*! exports provided: default */
|
|
81635
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
81417
81636
|
|
|
81418
|
-
|
|
81419
|
-
|
|
81420
|
-
|
|
81421
|
-
// feature-detection
|
|
81637
|
+
"use strict";
|
|
81638
|
+
__webpack_require__.r(__webpack_exports__);
|
|
81639
|
+
/* harmony default export */ __webpack_exports__["default"] = ('00000000-0000-0000-0000-000000000000');
|
|
81422
81640
|
|
|
81423
|
-
|
|
81424
|
-
// implementation. Also, find the complete implementation of crypto on IE11.
|
|
81425
|
-
var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||
|
|
81426
|
-
(typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto));
|
|
81641
|
+
/***/ }),
|
|
81427
81642
|
|
|
81428
|
-
|
|
81429
|
-
|
|
81430
|
-
|
|
81643
|
+
/***/ "./node_modules/uuid/dist/esm-browser/parse.js":
|
|
81644
|
+
/*!*****************************************************!*\
|
|
81645
|
+
!*** ./node_modules/uuid/dist/esm-browser/parse.js ***!
|
|
81646
|
+
\*****************************************************/
|
|
81647
|
+
/*! exports provided: default */
|
|
81648
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
81431
81649
|
|
|
81432
|
-
|
|
81433
|
-
|
|
81434
|
-
|
|
81435
|
-
};
|
|
81436
|
-
} else {
|
|
81437
|
-
// Math.random()-based (RNG)
|
|
81438
|
-
//
|
|
81439
|
-
// If all else fails, use Math.random(). It's fast, but is of unspecified
|
|
81440
|
-
// quality.
|
|
81441
|
-
var rnds = new Array(16);
|
|
81650
|
+
"use strict";
|
|
81651
|
+
__webpack_require__.r(__webpack_exports__);
|
|
81652
|
+
/* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/esm-browser/validate.js");
|
|
81442
81653
|
|
|
81443
|
-
|
|
81444
|
-
|
|
81445
|
-
|
|
81446
|
-
|
|
81654
|
+
|
|
81655
|
+
function parse(uuid) {
|
|
81656
|
+
if (!Object(_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
|
|
81657
|
+
throw TypeError('Invalid UUID');
|
|
81658
|
+
}
|
|
81659
|
+
|
|
81660
|
+
var v;
|
|
81661
|
+
var arr = new Uint8Array(16); // Parse ########-....-....-....-............
|
|
81662
|
+
|
|
81663
|
+
arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
|
|
81664
|
+
arr[1] = v >>> 16 & 0xff;
|
|
81665
|
+
arr[2] = v >>> 8 & 0xff;
|
|
81666
|
+
arr[3] = v & 0xff; // Parse ........-####-....-....-............
|
|
81667
|
+
|
|
81668
|
+
arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
|
|
81669
|
+
arr[5] = v & 0xff; // Parse ........-....-####-....-............
|
|
81670
|
+
|
|
81671
|
+
arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
|
|
81672
|
+
arr[7] = v & 0xff; // Parse ........-....-....-####-............
|
|
81673
|
+
|
|
81674
|
+
arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
|
|
81675
|
+
arr[9] = v & 0xff; // Parse ........-....-....-....-############
|
|
81676
|
+
// (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
|
|
81677
|
+
|
|
81678
|
+
arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
|
|
81679
|
+
arr[11] = v / 0x100000000 & 0xff;
|
|
81680
|
+
arr[12] = v >>> 24 & 0xff;
|
|
81681
|
+
arr[13] = v >>> 16 & 0xff;
|
|
81682
|
+
arr[14] = v >>> 8 & 0xff;
|
|
81683
|
+
arr[15] = v & 0xff;
|
|
81684
|
+
return arr;
|
|
81685
|
+
}
|
|
81686
|
+
|
|
81687
|
+
/* harmony default export */ __webpack_exports__["default"] = (parse);
|
|
81688
|
+
|
|
81689
|
+
/***/ }),
|
|
81690
|
+
|
|
81691
|
+
/***/ "./node_modules/uuid/dist/esm-browser/regex.js":
|
|
81692
|
+
/*!*****************************************************!*\
|
|
81693
|
+
!*** ./node_modules/uuid/dist/esm-browser/regex.js ***!
|
|
81694
|
+
\*****************************************************/
|
|
81695
|
+
/*! exports provided: default */
|
|
81696
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
81697
|
+
|
|
81698
|
+
"use strict";
|
|
81699
|
+
__webpack_require__.r(__webpack_exports__);
|
|
81700
|
+
/* 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);
|
|
81701
|
+
|
|
81702
|
+
/***/ }),
|
|
81703
|
+
|
|
81704
|
+
/***/ "./node_modules/uuid/dist/esm-browser/rng.js":
|
|
81705
|
+
/*!***************************************************!*\
|
|
81706
|
+
!*** ./node_modules/uuid/dist/esm-browser/rng.js ***!
|
|
81707
|
+
\***************************************************/
|
|
81708
|
+
/*! exports provided: default */
|
|
81709
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
81710
|
+
|
|
81711
|
+
"use strict";
|
|
81712
|
+
__webpack_require__.r(__webpack_exports__);
|
|
81713
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return rng; });
|
|
81714
|
+
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
81715
|
+
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
81716
|
+
// generators (like Math.random()).
|
|
81717
|
+
var getRandomValues;
|
|
81718
|
+
var rnds8 = new Uint8Array(16);
|
|
81719
|
+
function rng() {
|
|
81720
|
+
// lazy load so that environments that need to polyfill have a chance to do so
|
|
81721
|
+
if (!getRandomValues) {
|
|
81722
|
+
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
|
|
81723
|
+
// find the complete implementation of crypto (msCrypto) on IE11.
|
|
81724
|
+
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
|
|
81725
|
+
|
|
81726
|
+
if (!getRandomValues) {
|
|
81727
|
+
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
81447
81728
|
}
|
|
81729
|
+
}
|
|
81448
81730
|
|
|
81449
|
-
|
|
81450
|
-
|
|
81731
|
+
return getRandomValues(rnds8);
|
|
81732
|
+
}
|
|
81733
|
+
|
|
81734
|
+
/***/ }),
|
|
81735
|
+
|
|
81736
|
+
/***/ "./node_modules/uuid/dist/esm-browser/sha1.js":
|
|
81737
|
+
/*!****************************************************!*\
|
|
81738
|
+
!*** ./node_modules/uuid/dist/esm-browser/sha1.js ***!
|
|
81739
|
+
\****************************************************/
|
|
81740
|
+
/*! exports provided: default */
|
|
81741
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
81742
|
+
|
|
81743
|
+
"use strict";
|
|
81744
|
+
__webpack_require__.r(__webpack_exports__);
|
|
81745
|
+
// Adapted from Chris Veness' SHA1 code at
|
|
81746
|
+
// http://www.movable-type.co.uk/scripts/sha1.html
|
|
81747
|
+
function f(s, x, y, z) {
|
|
81748
|
+
switch (s) {
|
|
81749
|
+
case 0:
|
|
81750
|
+
return x & y ^ ~x & z;
|
|
81751
|
+
|
|
81752
|
+
case 1:
|
|
81753
|
+
return x ^ y ^ z;
|
|
81754
|
+
|
|
81755
|
+
case 2:
|
|
81756
|
+
return x & y ^ x & z ^ y & z;
|
|
81757
|
+
|
|
81758
|
+
case 3:
|
|
81759
|
+
return x ^ y ^ z;
|
|
81760
|
+
}
|
|
81761
|
+
}
|
|
81762
|
+
|
|
81763
|
+
function ROTL(x, n) {
|
|
81764
|
+
return x << n | x >>> 32 - n;
|
|
81765
|
+
}
|
|
81766
|
+
|
|
81767
|
+
function sha1(bytes) {
|
|
81768
|
+
var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
|
|
81769
|
+
var H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
|
|
81770
|
+
|
|
81771
|
+
if (typeof bytes === 'string') {
|
|
81772
|
+
var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
|
|
81773
|
+
|
|
81774
|
+
bytes = [];
|
|
81775
|
+
|
|
81776
|
+
for (var i = 0; i < msg.length; ++i) {
|
|
81777
|
+
bytes.push(msg.charCodeAt(i));
|
|
81778
|
+
}
|
|
81779
|
+
} else if (!Array.isArray(bytes)) {
|
|
81780
|
+
// Convert Array-like to Array
|
|
81781
|
+
bytes = Array.prototype.slice.call(bytes);
|
|
81782
|
+
}
|
|
81783
|
+
|
|
81784
|
+
bytes.push(0x80);
|
|
81785
|
+
var l = bytes.length / 4 + 2;
|
|
81786
|
+
var N = Math.ceil(l / 16);
|
|
81787
|
+
var M = new Array(N);
|
|
81788
|
+
|
|
81789
|
+
for (var _i = 0; _i < N; ++_i) {
|
|
81790
|
+
var arr = new Uint32Array(16);
|
|
81791
|
+
|
|
81792
|
+
for (var j = 0; j < 16; ++j) {
|
|
81793
|
+
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];
|
|
81794
|
+
}
|
|
81795
|
+
|
|
81796
|
+
M[_i] = arr;
|
|
81797
|
+
}
|
|
81798
|
+
|
|
81799
|
+
M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32);
|
|
81800
|
+
M[N - 1][14] = Math.floor(M[N - 1][14]);
|
|
81801
|
+
M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff;
|
|
81802
|
+
|
|
81803
|
+
for (var _i2 = 0; _i2 < N; ++_i2) {
|
|
81804
|
+
var W = new Uint32Array(80);
|
|
81805
|
+
|
|
81806
|
+
for (var t = 0; t < 16; ++t) {
|
|
81807
|
+
W[t] = M[_i2][t];
|
|
81808
|
+
}
|
|
81809
|
+
|
|
81810
|
+
for (var _t = 16; _t < 80; ++_t) {
|
|
81811
|
+
W[_t] = ROTL(W[_t - 3] ^ W[_t - 8] ^ W[_t - 14] ^ W[_t - 16], 1);
|
|
81812
|
+
}
|
|
81813
|
+
|
|
81814
|
+
var a = H[0];
|
|
81815
|
+
var b = H[1];
|
|
81816
|
+
var c = H[2];
|
|
81817
|
+
var d = H[3];
|
|
81818
|
+
var e = H[4];
|
|
81819
|
+
|
|
81820
|
+
for (var _t2 = 0; _t2 < 80; ++_t2) {
|
|
81821
|
+
var s = Math.floor(_t2 / 20);
|
|
81822
|
+
var T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[_t2] >>> 0;
|
|
81823
|
+
e = d;
|
|
81824
|
+
d = c;
|
|
81825
|
+
c = ROTL(b, 30) >>> 0;
|
|
81826
|
+
b = a;
|
|
81827
|
+
a = T;
|
|
81828
|
+
}
|
|
81829
|
+
|
|
81830
|
+
H[0] = H[0] + a >>> 0;
|
|
81831
|
+
H[1] = H[1] + b >>> 0;
|
|
81832
|
+
H[2] = H[2] + c >>> 0;
|
|
81833
|
+
H[3] = H[3] + d >>> 0;
|
|
81834
|
+
H[4] = H[4] + e >>> 0;
|
|
81835
|
+
}
|
|
81836
|
+
|
|
81837
|
+
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];
|
|
81451
81838
|
}
|
|
81452
81839
|
|
|
81840
|
+
/* harmony default export */ __webpack_exports__["default"] = (sha1);
|
|
81453
81841
|
|
|
81454
81842
|
/***/ }),
|
|
81455
81843
|
|
|
81456
|
-
/***/ "./node_modules/uuid/
|
|
81457
|
-
|
|
81458
|
-
!*** ./node_modules/uuid/
|
|
81459
|
-
|
|
81460
|
-
/*!
|
|
81461
|
-
/***/ (function(module,
|
|
81844
|
+
/***/ "./node_modules/uuid/dist/esm-browser/stringify.js":
|
|
81845
|
+
/*!*********************************************************!*\
|
|
81846
|
+
!*** ./node_modules/uuid/dist/esm-browser/stringify.js ***!
|
|
81847
|
+
\*********************************************************/
|
|
81848
|
+
/*! exports provided: default */
|
|
81849
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
81462
81850
|
|
|
81463
|
-
|
|
81464
|
-
|
|
81851
|
+
"use strict";
|
|
81852
|
+
__webpack_require__.r(__webpack_exports__);
|
|
81853
|
+
/* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/esm-browser/validate.js");
|
|
81465
81854
|
|
|
81466
|
-
|
|
81855
|
+
/**
|
|
81856
|
+
* Convert array of 16 byte values to UUID string format of the form:
|
|
81857
|
+
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
81858
|
+
*/
|
|
81859
|
+
|
|
81860
|
+
var byteToHex = [];
|
|
81861
|
+
|
|
81862
|
+
for (var i = 0; i < 256; ++i) {
|
|
81863
|
+
byteToHex.push((i + 0x100).toString(16).substr(1));
|
|
81864
|
+
}
|
|
81865
|
+
|
|
81866
|
+
function stringify(arr) {
|
|
81867
|
+
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
81868
|
+
// Note: Be careful editing this code! It's been tuned for performance
|
|
81869
|
+
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
81870
|
+
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
|
|
81871
|
+
// of the following:
|
|
81872
|
+
// - One or more input array values don't map to a hex octet (leading to
|
|
81873
|
+
// "undefined" in the uuid)
|
|
81874
|
+
// - Invalid input values for the RFC `version` or `variant` fields
|
|
81875
|
+
|
|
81876
|
+
if (!Object(_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
|
|
81877
|
+
throw TypeError('Stringified UUID is invalid');
|
|
81878
|
+
}
|
|
81879
|
+
|
|
81880
|
+
return uuid;
|
|
81881
|
+
}
|
|
81882
|
+
|
|
81883
|
+
/* harmony default export */ __webpack_exports__["default"] = (stringify);
|
|
81884
|
+
|
|
81885
|
+
/***/ }),
|
|
81886
|
+
|
|
81887
|
+
/***/ "./node_modules/uuid/dist/esm-browser/v1.js":
|
|
81888
|
+
/*!**************************************************!*\
|
|
81889
|
+
!*** ./node_modules/uuid/dist/esm-browser/v1.js ***!
|
|
81890
|
+
\**************************************************/
|
|
81891
|
+
/*! exports provided: default */
|
|
81892
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
81893
|
+
|
|
81894
|
+
"use strict";
|
|
81895
|
+
__webpack_require__.r(__webpack_exports__);
|
|
81896
|
+
/* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rng.js */ "./node_modules/uuid/dist/esm-browser/rng.js");
|
|
81897
|
+
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/esm-browser/stringify.js");
|
|
81898
|
+
|
|
81899
|
+
// **`v1()` - Generate time-based UUID**
|
|
81467
81900
|
//
|
|
81468
81901
|
// Inspired by https://github.com/LiosK/UUID.js
|
|
81469
81902
|
// and http://docs.python.org/library/uuid.html
|
|
81470
81903
|
|
|
81471
81904
|
var _nodeId;
|
|
81472
|
-
var _clockseq;
|
|
81473
81905
|
|
|
81474
|
-
// Previous uuid creation time
|
|
81906
|
+
var _clockseq; // Previous uuid creation time
|
|
81907
|
+
|
|
81908
|
+
|
|
81475
81909
|
var _lastMSecs = 0;
|
|
81476
|
-
var _lastNSecs = 0;
|
|
81910
|
+
var _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
|
|
81477
81911
|
|
|
81478
|
-
// See https://github.com/broofa/node-uuid for API details
|
|
81479
81912
|
function v1(options, buf, offset) {
|
|
81480
81913
|
var i = buf && offset || 0;
|
|
81481
|
-
var b = buf ||
|
|
81482
|
-
|
|
81914
|
+
var b = buf || new Array(16);
|
|
81483
81915
|
options = options || {};
|
|
81484
81916
|
var node = options.node || _nodeId;
|
|
81485
|
-
var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;
|
|
81486
|
-
|
|
81487
|
-
// node and clockseq need to be initialized to random values if they're not
|
|
81917
|
+
var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
|
|
81488
81918
|
// specified. We do this lazily to minimize issues related to insufficient
|
|
81489
81919
|
// system entropy. See #189
|
|
81920
|
+
|
|
81490
81921
|
if (node == null || clockseq == null) {
|
|
81491
|
-
var seedBytes = rng();
|
|
81922
|
+
var seedBytes = options.random || (options.rng || _rng_js__WEBPACK_IMPORTED_MODULE_0__["default"])();
|
|
81923
|
+
|
|
81492
81924
|
if (node == null) {
|
|
81493
81925
|
// Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
|
|
81494
|
-
node = _nodeId = [
|
|
81495
|
-
seedBytes[0] | 0x01,
|
|
81496
|
-
seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]
|
|
81497
|
-
];
|
|
81926
|
+
node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
|
|
81498
81927
|
}
|
|
81928
|
+
|
|
81499
81929
|
if (clockseq == null) {
|
|
81500
81930
|
// Per 4.2.2, randomize (14 bit) clockseq
|
|
81501
81931
|
clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
|
|
81502
81932
|
}
|
|
81503
|
-
}
|
|
81504
|
-
|
|
81505
|
-
// UUID timestamps are 100 nano-second units since the Gregorian epoch,
|
|
81933
|
+
} // UUID timestamps are 100 nano-second units since the Gregorian epoch,
|
|
81506
81934
|
// (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
|
|
81507
81935
|
// time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
|
|
81508
81936
|
// (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
|
|
81509
|
-
var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();
|
|
81510
81937
|
|
|
81511
|
-
|
|
81938
|
+
|
|
81939
|
+
var msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
|
|
81512
81940
|
// cycle to simulate higher resolution clock
|
|
81513
|
-
var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;
|
|
81514
81941
|
|
|
81515
|
-
// Time since last uuid creation (in msecs)
|
|
81516
|
-
|
|
81942
|
+
var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
|
|
81943
|
+
|
|
81944
|
+
var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
|
|
81517
81945
|
|
|
81518
|
-
// Per 4.2.1.2, Bump clockseq on clock regression
|
|
81519
81946
|
if (dt < 0 && options.clockseq === undefined) {
|
|
81520
81947
|
clockseq = clockseq + 1 & 0x3fff;
|
|
81521
|
-
}
|
|
81522
|
-
|
|
81523
|
-
// Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
|
|
81948
|
+
} // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
|
|
81524
81949
|
// time interval
|
|
81950
|
+
|
|
81951
|
+
|
|
81525
81952
|
if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
|
|
81526
81953
|
nsecs = 0;
|
|
81527
|
-
}
|
|
81954
|
+
} // Per 4.2.1.2 Throw error if too many uuids are requested
|
|
81955
|
+
|
|
81528
81956
|
|
|
81529
|
-
// Per 4.2.1.2 Throw error if too many uuids are requested
|
|
81530
81957
|
if (nsecs >= 10000) {
|
|
81531
|
-
throw new Error(
|
|
81958
|
+
throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
|
|
81532
81959
|
}
|
|
81533
81960
|
|
|
81534
81961
|
_lastMSecs = msecs;
|
|
81535
81962
|
_lastNSecs = nsecs;
|
|
81536
|
-
_clockseq = clockseq;
|
|
81963
|
+
_clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
|
|
81537
81964
|
|
|
81538
|
-
|
|
81539
|
-
msecs += 12219292800000;
|
|
81965
|
+
msecs += 12219292800000; // `time_low`
|
|
81540
81966
|
|
|
81541
|
-
// `time_low`
|
|
81542
81967
|
var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
|
|
81543
81968
|
b[i++] = tl >>> 24 & 0xff;
|
|
81544
81969
|
b[i++] = tl >>> 16 & 0xff;
|
|
81545
81970
|
b[i++] = tl >>> 8 & 0xff;
|
|
81546
|
-
b[i++] = tl & 0xff;
|
|
81971
|
+
b[i++] = tl & 0xff; // `time_mid`
|
|
81547
81972
|
|
|
81548
|
-
|
|
81549
|
-
var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;
|
|
81973
|
+
var tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
|
|
81550
81974
|
b[i++] = tmh >>> 8 & 0xff;
|
|
81551
|
-
b[i++] = tmh & 0xff;
|
|
81975
|
+
b[i++] = tmh & 0xff; // `time_high_and_version`
|
|
81552
81976
|
|
|
81553
|
-
// `time_high_and_version`
|
|
81554
81977
|
b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
|
|
81555
|
-
b[i++] = tmh >>> 16 & 0xff;
|
|
81556
81978
|
|
|
81557
|
-
// `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
|
|
81558
|
-
b[i++] = clockseq >>> 8 | 0x80;
|
|
81979
|
+
b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
|
|
81559
81980
|
|
|
81560
|
-
// `clock_seq_low`
|
|
81561
|
-
|
|
81981
|
+
b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
|
|
81982
|
+
|
|
81983
|
+
b[i++] = clockseq & 0xff; // `node`
|
|
81562
81984
|
|
|
81563
|
-
// `node`
|
|
81564
81985
|
for (var n = 0; n < 6; ++n) {
|
|
81565
81986
|
b[i + n] = node[n];
|
|
81566
81987
|
}
|
|
81567
81988
|
|
|
81568
|
-
return buf
|
|
81989
|
+
return buf || Object(_stringify_js__WEBPACK_IMPORTED_MODULE_1__["default"])(b);
|
|
81569
81990
|
}
|
|
81570
81991
|
|
|
81571
|
-
|
|
81992
|
+
/* harmony default export */ __webpack_exports__["default"] = (v1);
|
|
81572
81993
|
|
|
81994
|
+
/***/ }),
|
|
81995
|
+
|
|
81996
|
+
/***/ "./node_modules/uuid/dist/esm-browser/v3.js":
|
|
81997
|
+
/*!**************************************************!*\
|
|
81998
|
+
!*** ./node_modules/uuid/dist/esm-browser/v3.js ***!
|
|
81999
|
+
\**************************************************/
|
|
82000
|
+
/*! exports provided: default */
|
|
82001
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
82002
|
+
|
|
82003
|
+
"use strict";
|
|
82004
|
+
__webpack_require__.r(__webpack_exports__);
|
|
82005
|
+
/* harmony import */ var _v35_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v35.js */ "./node_modules/uuid/dist/esm-browser/v35.js");
|
|
82006
|
+
/* harmony import */ var _md5_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./md5.js */ "./node_modules/uuid/dist/esm-browser/md5.js");
|
|
82007
|
+
|
|
82008
|
+
|
|
82009
|
+
var v3 = Object(_v35_js__WEBPACK_IMPORTED_MODULE_0__["default"])('v3', 0x30, _md5_js__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
|
82010
|
+
/* harmony default export */ __webpack_exports__["default"] = (v3);
|
|
81573
82011
|
|
|
81574
82012
|
/***/ }),
|
|
81575
82013
|
|
|
81576
|
-
/***/ "./node_modules/uuid/
|
|
81577
|
-
|
|
81578
|
-
!*** ./node_modules/uuid/
|
|
81579
|
-
|
|
81580
|
-
/*!
|
|
81581
|
-
/***/ (function(module,
|
|
82014
|
+
/***/ "./node_modules/uuid/dist/esm-browser/v35.js":
|
|
82015
|
+
/*!***************************************************!*\
|
|
82016
|
+
!*** ./node_modules/uuid/dist/esm-browser/v35.js ***!
|
|
82017
|
+
\***************************************************/
|
|
82018
|
+
/*! exports provided: DNS, URL, default */
|
|
82019
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
81582
82020
|
|
|
81583
|
-
|
|
81584
|
-
|
|
82021
|
+
"use strict";
|
|
82022
|
+
__webpack_require__.r(__webpack_exports__);
|
|
82023
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DNS", function() { return DNS; });
|
|
82024
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "URL", function() { return URL; });
|
|
82025
|
+
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/esm-browser/stringify.js");
|
|
82026
|
+
/* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parse.js */ "./node_modules/uuid/dist/esm-browser/parse.js");
|
|
81585
82027
|
|
|
81586
|
-
function v4(options, buf, offset) {
|
|
81587
|
-
var i = buf && offset || 0;
|
|
81588
82028
|
|
|
81589
|
-
|
|
81590
|
-
|
|
81591
|
-
|
|
82029
|
+
|
|
82030
|
+
function stringToBytes(str) {
|
|
82031
|
+
str = unescape(encodeURIComponent(str)); // UTF8 escape
|
|
82032
|
+
|
|
82033
|
+
var bytes = [];
|
|
82034
|
+
|
|
82035
|
+
for (var i = 0; i < str.length; ++i) {
|
|
82036
|
+
bytes.push(str.charCodeAt(i));
|
|
81592
82037
|
}
|
|
81593
|
-
options = options || {};
|
|
81594
82038
|
|
|
81595
|
-
|
|
82039
|
+
return bytes;
|
|
82040
|
+
}
|
|
81596
82041
|
|
|
81597
|
-
|
|
81598
|
-
|
|
81599
|
-
|
|
82042
|
+
var DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
|
|
82043
|
+
var URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
|
|
82044
|
+
/* harmony default export */ __webpack_exports__["default"] = (function (name, version, hashfunc) {
|
|
82045
|
+
function generateUUID(value, namespace, buf, offset) {
|
|
82046
|
+
if (typeof value === 'string') {
|
|
82047
|
+
value = stringToBytes(value);
|
|
82048
|
+
}
|
|
82049
|
+
|
|
82050
|
+
if (typeof namespace === 'string') {
|
|
82051
|
+
namespace = Object(_parse_js__WEBPACK_IMPORTED_MODULE_1__["default"])(namespace);
|
|
82052
|
+
}
|
|
82053
|
+
|
|
82054
|
+
if (namespace.length !== 16) {
|
|
82055
|
+
throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
|
|
82056
|
+
} // Compute hash of namespace and value, Per 4.3
|
|
82057
|
+
// Future: Use spread syntax when supported on all platforms, e.g. `bytes =
|
|
82058
|
+
// hashfunc([...namespace, ... value])`
|
|
82059
|
+
|
|
82060
|
+
|
|
82061
|
+
var bytes = new Uint8Array(16 + value.length);
|
|
82062
|
+
bytes.set(namespace);
|
|
82063
|
+
bytes.set(value, namespace.length);
|
|
82064
|
+
bytes = hashfunc(bytes);
|
|
82065
|
+
bytes[6] = bytes[6] & 0x0f | version;
|
|
82066
|
+
bytes[8] = bytes[8] & 0x3f | 0x80;
|
|
82067
|
+
|
|
82068
|
+
if (buf) {
|
|
82069
|
+
offset = offset || 0;
|
|
82070
|
+
|
|
82071
|
+
for (var i = 0; i < 16; ++i) {
|
|
82072
|
+
buf[offset + i] = bytes[i];
|
|
82073
|
+
}
|
|
82074
|
+
|
|
82075
|
+
return buf;
|
|
82076
|
+
}
|
|
82077
|
+
|
|
82078
|
+
return Object(_stringify_js__WEBPACK_IMPORTED_MODULE_0__["default"])(bytes);
|
|
82079
|
+
} // Function#name is not settable on some platforms (#270)
|
|
82080
|
+
|
|
82081
|
+
|
|
82082
|
+
try {
|
|
82083
|
+
generateUUID.name = name; // eslint-disable-next-line no-empty
|
|
82084
|
+
} catch (err) {} // For CommonJS default export support
|
|
82085
|
+
|
|
82086
|
+
|
|
82087
|
+
generateUUID.DNS = DNS;
|
|
82088
|
+
generateUUID.URL = URL;
|
|
82089
|
+
return generateUUID;
|
|
82090
|
+
});
|
|
82091
|
+
|
|
82092
|
+
/***/ }),
|
|
82093
|
+
|
|
82094
|
+
/***/ "./node_modules/uuid/dist/esm-browser/v4.js":
|
|
82095
|
+
/*!**************************************************!*\
|
|
82096
|
+
!*** ./node_modules/uuid/dist/esm-browser/v4.js ***!
|
|
82097
|
+
\**************************************************/
|
|
82098
|
+
/*! exports provided: default */
|
|
82099
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
82100
|
+
|
|
82101
|
+
"use strict";
|
|
82102
|
+
__webpack_require__.r(__webpack_exports__);
|
|
82103
|
+
/* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rng.js */ "./node_modules/uuid/dist/esm-browser/rng.js");
|
|
82104
|
+
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/esm-browser/stringify.js");
|
|
82105
|
+
|
|
82106
|
+
|
|
82107
|
+
|
|
82108
|
+
function v4(options, buf, offset) {
|
|
82109
|
+
options = options || {};
|
|
82110
|
+
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`
|
|
82111
|
+
|
|
82112
|
+
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
82113
|
+
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
81600
82114
|
|
|
81601
|
-
// Copy bytes to buffer, if provided
|
|
81602
82115
|
if (buf) {
|
|
81603
|
-
|
|
81604
|
-
|
|
82116
|
+
offset = offset || 0;
|
|
82117
|
+
|
|
82118
|
+
for (var i = 0; i < 16; ++i) {
|
|
82119
|
+
buf[offset + i] = rnds[i];
|
|
81605
82120
|
}
|
|
82121
|
+
|
|
82122
|
+
return buf;
|
|
81606
82123
|
}
|
|
81607
82124
|
|
|
81608
|
-
return
|
|
82125
|
+
return Object(_stringify_js__WEBPACK_IMPORTED_MODULE_1__["default"])(rnds);
|
|
81609
82126
|
}
|
|
81610
82127
|
|
|
81611
|
-
|
|
82128
|
+
/* harmony default export */ __webpack_exports__["default"] = (v4);
|
|
82129
|
+
|
|
82130
|
+
/***/ }),
|
|
82131
|
+
|
|
82132
|
+
/***/ "./node_modules/uuid/dist/esm-browser/v5.js":
|
|
82133
|
+
/*!**************************************************!*\
|
|
82134
|
+
!*** ./node_modules/uuid/dist/esm-browser/v5.js ***!
|
|
82135
|
+
\**************************************************/
|
|
82136
|
+
/*! exports provided: default */
|
|
82137
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
82138
|
+
|
|
82139
|
+
"use strict";
|
|
82140
|
+
__webpack_require__.r(__webpack_exports__);
|
|
82141
|
+
/* harmony import */ var _v35_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v35.js */ "./node_modules/uuid/dist/esm-browser/v35.js");
|
|
82142
|
+
/* harmony import */ var _sha1_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./sha1.js */ "./node_modules/uuid/dist/esm-browser/sha1.js");
|
|
82143
|
+
|
|
82144
|
+
|
|
82145
|
+
var v5 = Object(_v35_js__WEBPACK_IMPORTED_MODULE_0__["default"])('v5', 0x50, _sha1_js__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
|
82146
|
+
/* harmony default export */ __webpack_exports__["default"] = (v5);
|
|
82147
|
+
|
|
82148
|
+
/***/ }),
|
|
82149
|
+
|
|
82150
|
+
/***/ "./node_modules/uuid/dist/esm-browser/validate.js":
|
|
82151
|
+
/*!********************************************************!*\
|
|
82152
|
+
!*** ./node_modules/uuid/dist/esm-browser/validate.js ***!
|
|
82153
|
+
\********************************************************/
|
|
82154
|
+
/*! exports provided: default */
|
|
82155
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
82156
|
+
|
|
82157
|
+
"use strict";
|
|
82158
|
+
__webpack_require__.r(__webpack_exports__);
|
|
82159
|
+
/* harmony import */ var _regex_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./regex.js */ "./node_modules/uuid/dist/esm-browser/regex.js");
|
|
82160
|
+
|
|
82161
|
+
|
|
82162
|
+
function validate(uuid) {
|
|
82163
|
+
return typeof uuid === 'string' && _regex_js__WEBPACK_IMPORTED_MODULE_0__["default"].test(uuid);
|
|
82164
|
+
}
|
|
82165
|
+
|
|
82166
|
+
/* harmony default export */ __webpack_exports__["default"] = (validate);
|
|
82167
|
+
|
|
82168
|
+
/***/ }),
|
|
82169
|
+
|
|
82170
|
+
/***/ "./node_modules/uuid/dist/esm-browser/version.js":
|
|
82171
|
+
/*!*******************************************************!*\
|
|
82172
|
+
!*** ./node_modules/uuid/dist/esm-browser/version.js ***!
|
|
82173
|
+
\*******************************************************/
|
|
82174
|
+
/*! exports provided: default */
|
|
82175
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
82176
|
+
|
|
82177
|
+
"use strict";
|
|
82178
|
+
__webpack_require__.r(__webpack_exports__);
|
|
82179
|
+
/* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/esm-browser/validate.js");
|
|
82180
|
+
|
|
82181
|
+
|
|
82182
|
+
function version(uuid) {
|
|
82183
|
+
if (!Object(_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
|
|
82184
|
+
throw TypeError('Invalid UUID');
|
|
82185
|
+
}
|
|
82186
|
+
|
|
82187
|
+
return parseInt(uuid.substr(14, 1), 16);
|
|
82188
|
+
}
|
|
81612
82189
|
|
|
82190
|
+
/* harmony default export */ __webpack_exports__["default"] = (version);
|
|
81613
82191
|
|
|
81614
82192
|
/***/ }),
|
|
81615
82193
|
|