@aws-amplify/pubsub 4.1.14 → 4.1.15-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.
@@ -6080,6 +6080,267 @@ module.exports = {
6080
6080
  };
6081
6081
 
6082
6082
 
6083
+ /***/ }),
6084
+
6085
+ /***/ "../../node_modules/uuid/index.js":
6086
+ /*!***************************************************!*\
6087
+ !*** /root/amplify-js/node_modules/uuid/index.js ***!
6088
+ \***************************************************/
6089
+ /*! no static exports found */
6090
+ /***/ (function(module, exports, __webpack_require__) {
6091
+
6092
+ var v1 = __webpack_require__(/*! ./v1 */ "../../node_modules/uuid/v1.js");
6093
+ var v4 = __webpack_require__(/*! ./v4 */ "../../node_modules/uuid/v4.js");
6094
+
6095
+ var uuid = v4;
6096
+ uuid.v1 = v1;
6097
+ uuid.v4 = v4;
6098
+
6099
+ module.exports = uuid;
6100
+
6101
+
6102
+ /***/ }),
6103
+
6104
+ /***/ "../../node_modules/uuid/lib/bytesToUuid.js":
6105
+ /*!*************************************************************!*\
6106
+ !*** /root/amplify-js/node_modules/uuid/lib/bytesToUuid.js ***!
6107
+ \*************************************************************/
6108
+ /*! no static exports found */
6109
+ /***/ (function(module, exports) {
6110
+
6111
+ /**
6112
+ * Convert array of 16 byte values to UUID string format of the form:
6113
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
6114
+ */
6115
+ var byteToHex = [];
6116
+ for (var i = 0; i < 256; ++i) {
6117
+ byteToHex[i] = (i + 0x100).toString(16).substr(1);
6118
+ }
6119
+
6120
+ function bytesToUuid(buf, offset) {
6121
+ var i = offset || 0;
6122
+ var bth = byteToHex;
6123
+ // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
6124
+ return ([
6125
+ bth[buf[i++]], bth[buf[i++]],
6126
+ bth[buf[i++]], bth[buf[i++]], '-',
6127
+ bth[buf[i++]], bth[buf[i++]], '-',
6128
+ bth[buf[i++]], bth[buf[i++]], '-',
6129
+ bth[buf[i++]], bth[buf[i++]], '-',
6130
+ bth[buf[i++]], bth[buf[i++]],
6131
+ bth[buf[i++]], bth[buf[i++]],
6132
+ bth[buf[i++]], bth[buf[i++]]
6133
+ ]).join('');
6134
+ }
6135
+
6136
+ module.exports = bytesToUuid;
6137
+
6138
+
6139
+ /***/ }),
6140
+
6141
+ /***/ "../../node_modules/uuid/lib/rng-browser.js":
6142
+ /*!*************************************************************!*\
6143
+ !*** /root/amplify-js/node_modules/uuid/lib/rng-browser.js ***!
6144
+ \*************************************************************/
6145
+ /*! no static exports found */
6146
+ /***/ (function(module, exports) {
6147
+
6148
+ // Unique ID creation requires a high quality random # generator. In the
6149
+ // browser this is a little complicated due to unknown quality of Math.random()
6150
+ // and inconsistent support for the `crypto` API. We do the best we can via
6151
+ // feature-detection
6152
+
6153
+ // getRandomValues needs to be invoked in a context where "this" is a Crypto
6154
+ // implementation. Also, find the complete implementation of crypto on IE11.
6155
+ var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||
6156
+ (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto));
6157
+
6158
+ if (getRandomValues) {
6159
+ // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto
6160
+ var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef
6161
+
6162
+ module.exports = function whatwgRNG() {
6163
+ getRandomValues(rnds8);
6164
+ return rnds8;
6165
+ };
6166
+ } else {
6167
+ // Math.random()-based (RNG)
6168
+ //
6169
+ // If all else fails, use Math.random(). It's fast, but is of unspecified
6170
+ // quality.
6171
+ var rnds = new Array(16);
6172
+
6173
+ module.exports = function mathRNG() {
6174
+ for (var i = 0, r; i < 16; i++) {
6175
+ if ((i & 0x03) === 0) r = Math.random() * 0x100000000;
6176
+ rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;
6177
+ }
6178
+
6179
+ return rnds;
6180
+ };
6181
+ }
6182
+
6183
+
6184
+ /***/ }),
6185
+
6186
+ /***/ "../../node_modules/uuid/v1.js":
6187
+ /*!************************************************!*\
6188
+ !*** /root/amplify-js/node_modules/uuid/v1.js ***!
6189
+ \************************************************/
6190
+ /*! no static exports found */
6191
+ /***/ (function(module, exports, __webpack_require__) {
6192
+
6193
+ var rng = __webpack_require__(/*! ./lib/rng */ "../../node_modules/uuid/lib/rng-browser.js");
6194
+ var bytesToUuid = __webpack_require__(/*! ./lib/bytesToUuid */ "../../node_modules/uuid/lib/bytesToUuid.js");
6195
+
6196
+ // **`v1()` - Generate time-based UUID**
6197
+ //
6198
+ // Inspired by https://github.com/LiosK/UUID.js
6199
+ // and http://docs.python.org/library/uuid.html
6200
+
6201
+ var _nodeId;
6202
+ var _clockseq;
6203
+
6204
+ // Previous uuid creation time
6205
+ var _lastMSecs = 0;
6206
+ var _lastNSecs = 0;
6207
+
6208
+ // See https://github.com/uuidjs/uuid for API details
6209
+ function v1(options, buf, offset) {
6210
+ var i = buf && offset || 0;
6211
+ var b = buf || [];
6212
+
6213
+ options = options || {};
6214
+ var node = options.node || _nodeId;
6215
+ var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;
6216
+
6217
+ // node and clockseq need to be initialized to random values if they're not
6218
+ // specified. We do this lazily to minimize issues related to insufficient
6219
+ // system entropy. See #189
6220
+ if (node == null || clockseq == null) {
6221
+ var seedBytes = rng();
6222
+ if (node == null) {
6223
+ // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
6224
+ node = _nodeId = [
6225
+ seedBytes[0] | 0x01,
6226
+ seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]
6227
+ ];
6228
+ }
6229
+ if (clockseq == null) {
6230
+ // Per 4.2.2, randomize (14 bit) clockseq
6231
+ clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
6232
+ }
6233
+ }
6234
+
6235
+ // UUID timestamps are 100 nano-second units since the Gregorian epoch,
6236
+ // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
6237
+ // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
6238
+ // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
6239
+ var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();
6240
+
6241
+ // Per 4.2.1.2, use count of uuid's generated during the current clock
6242
+ // cycle to simulate higher resolution clock
6243
+ var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;
6244
+
6245
+ // Time since last uuid creation (in msecs)
6246
+ var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;
6247
+
6248
+ // Per 4.2.1.2, Bump clockseq on clock regression
6249
+ if (dt < 0 && options.clockseq === undefined) {
6250
+ clockseq = clockseq + 1 & 0x3fff;
6251
+ }
6252
+
6253
+ // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
6254
+ // time interval
6255
+ if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
6256
+ nsecs = 0;
6257
+ }
6258
+
6259
+ // Per 4.2.1.2 Throw error if too many uuids are requested
6260
+ if (nsecs >= 10000) {
6261
+ throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
6262
+ }
6263
+
6264
+ _lastMSecs = msecs;
6265
+ _lastNSecs = nsecs;
6266
+ _clockseq = clockseq;
6267
+
6268
+ // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
6269
+ msecs += 12219292800000;
6270
+
6271
+ // `time_low`
6272
+ var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
6273
+ b[i++] = tl >>> 24 & 0xff;
6274
+ b[i++] = tl >>> 16 & 0xff;
6275
+ b[i++] = tl >>> 8 & 0xff;
6276
+ b[i++] = tl & 0xff;
6277
+
6278
+ // `time_mid`
6279
+ var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;
6280
+ b[i++] = tmh >>> 8 & 0xff;
6281
+ b[i++] = tmh & 0xff;
6282
+
6283
+ // `time_high_and_version`
6284
+ b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
6285
+ b[i++] = tmh >>> 16 & 0xff;
6286
+
6287
+ // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
6288
+ b[i++] = clockseq >>> 8 | 0x80;
6289
+
6290
+ // `clock_seq_low`
6291
+ b[i++] = clockseq & 0xff;
6292
+
6293
+ // `node`
6294
+ for (var n = 0; n < 6; ++n) {
6295
+ b[i + n] = node[n];
6296
+ }
6297
+
6298
+ return buf ? buf : bytesToUuid(b);
6299
+ }
6300
+
6301
+ module.exports = v1;
6302
+
6303
+
6304
+ /***/ }),
6305
+
6306
+ /***/ "../../node_modules/uuid/v4.js":
6307
+ /*!************************************************!*\
6308
+ !*** /root/amplify-js/node_modules/uuid/v4.js ***!
6309
+ \************************************************/
6310
+ /*! no static exports found */
6311
+ /***/ (function(module, exports, __webpack_require__) {
6312
+
6313
+ var rng = __webpack_require__(/*! ./lib/rng */ "../../node_modules/uuid/lib/rng-browser.js");
6314
+ var bytesToUuid = __webpack_require__(/*! ./lib/bytesToUuid */ "../../node_modules/uuid/lib/bytesToUuid.js");
6315
+
6316
+ function v4(options, buf, offset) {
6317
+ var i = buf && offset || 0;
6318
+
6319
+ if (typeof(options) == 'string') {
6320
+ buf = options === 'binary' ? new Array(16) : null;
6321
+ options = null;
6322
+ }
6323
+ options = options || {};
6324
+
6325
+ var rnds = options.random || (options.rng || rng)();
6326
+
6327
+ // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
6328
+ rnds[6] = (rnds[6] & 0x0f) | 0x40;
6329
+ rnds[8] = (rnds[8] & 0x3f) | 0x80;
6330
+
6331
+ // Copy bytes to buffer, if provided
6332
+ if (buf) {
6333
+ for (var ii = 0; ii < 16; ++ii) {
6334
+ buf[i + ii] = rnds[ii];
6335
+ }
6336
+ }
6337
+
6338
+ return buf || bytesToUuid(rnds);
6339
+ }
6340
+
6341
+ module.exports = v4;
6342
+
6343
+
6083
6344
  /***/ }),
6084
6345
 
6085
6346
  /***/ "../../node_modules/webpack/buildin/global.js":
@@ -7365,7 +7626,8 @@ __webpack_require__.r(__webpack_exports__);
7365
7626
  /* harmony import */ var graphql__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(graphql__WEBPACK_IMPORTED_MODULE_1__);
7366
7627
  /* harmony import */ var url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! url */ "../../node_modules/url/url.js");
7367
7628
  /* harmony import */ var url__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(url__WEBPACK_IMPORTED_MODULE_2__);
7368
- /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! uuid */ "./node_modules/uuid/dist/esm-browser/index.js");
7629
+ /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! uuid */ "../../node_modules/uuid/index.js");
7630
+ /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(uuid__WEBPACK_IMPORTED_MODULE_3__);
7369
7631
  /* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! buffer */ "../../node_modules/buffer/index.js");
7370
7632
  /* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(buffer__WEBPACK_IMPORTED_MODULE_4__);
7371
7633
  /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
@@ -9012,7 +9274,8 @@ __webpack_require__.r(__webpack_exports__);
9012
9274
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MqttOverWSProvider", function() { return MqttOverWSProvider; });
9013
9275
  /* harmony import */ var paho_mqtt__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! paho-mqtt */ "../../node_modules/paho-mqtt/paho-mqtt.js");
9014
9276
  /* harmony import */ var paho_mqtt__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(paho_mqtt__WEBPACK_IMPORTED_MODULE_0__);
9015
- /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! uuid */ "./node_modules/uuid/dist/esm-browser/index.js");
9277
+ /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! uuid */ "../../node_modules/uuid/index.js");
9278
+ /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(uuid__WEBPACK_IMPORTED_MODULE_1__);
9016
9279
  /* harmony import */ var zen_observable_ts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zen-observable-ts */ "../../node_modules/zen-observable-ts/lib/bundle.esm.js");
9017
9280
  /* harmony import */ var _PubSubProvider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PubSubProvider */ "./lib-esm/Providers/PubSubProvider.js");
9018
9281
  /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
@@ -10273,845 +10536,6 @@ var CONTROL_MSG;
10273
10536
 
10274
10537
  /***/ }),
10275
10538
 
10276
- /***/ "./node_modules/uuid/dist/esm-browser/index.js":
10277
- /*!*****************************************************!*\
10278
- !*** ./node_modules/uuid/dist/esm-browser/index.js ***!
10279
- \*****************************************************/
10280
- /*! exports provided: v1, v3, v4, v5, NIL, version, validate, stringify, parse */
10281
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10282
-
10283
- "use strict";
10284
- __webpack_require__.r(__webpack_exports__);
10285
- /* harmony import */ var _v1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v1.js */ "./node_modules/uuid/dist/esm-browser/v1.js");
10286
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "v1", function() { return _v1_js__WEBPACK_IMPORTED_MODULE_0__["default"]; });
10287
-
10288
- /* harmony import */ var _v3_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./v3.js */ "./node_modules/uuid/dist/esm-browser/v3.js");
10289
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "v3", function() { return _v3_js__WEBPACK_IMPORTED_MODULE_1__["default"]; });
10290
-
10291
- /* harmony import */ var _v4_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./v4.js */ "./node_modules/uuid/dist/esm-browser/v4.js");
10292
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "v4", function() { return _v4_js__WEBPACK_IMPORTED_MODULE_2__["default"]; });
10293
-
10294
- /* harmony import */ var _v5_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./v5.js */ "./node_modules/uuid/dist/esm-browser/v5.js");
10295
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "v5", function() { return _v5_js__WEBPACK_IMPORTED_MODULE_3__["default"]; });
10296
-
10297
- /* harmony import */ var _nil_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./nil.js */ "./node_modules/uuid/dist/esm-browser/nil.js");
10298
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NIL", function() { return _nil_js__WEBPACK_IMPORTED_MODULE_4__["default"]; });
10299
-
10300
- /* harmony import */ var _version_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./version.js */ "./node_modules/uuid/dist/esm-browser/version.js");
10301
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "version", function() { return _version_js__WEBPACK_IMPORTED_MODULE_5__["default"]; });
10302
-
10303
- /* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/esm-browser/validate.js");
10304
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "validate", function() { return _validate_js__WEBPACK_IMPORTED_MODULE_6__["default"]; });
10305
-
10306
- /* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/esm-browser/stringify.js");
10307
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stringify", function() { return _stringify_js__WEBPACK_IMPORTED_MODULE_7__["default"]; });
10308
-
10309
- /* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./parse.js */ "./node_modules/uuid/dist/esm-browser/parse.js");
10310
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parse", function() { return _parse_js__WEBPACK_IMPORTED_MODULE_8__["default"]; });
10311
-
10312
-
10313
-
10314
-
10315
-
10316
-
10317
-
10318
-
10319
-
10320
-
10321
-
10322
- /***/ }),
10323
-
10324
- /***/ "./node_modules/uuid/dist/esm-browser/md5.js":
10325
- /*!***************************************************!*\
10326
- !*** ./node_modules/uuid/dist/esm-browser/md5.js ***!
10327
- \***************************************************/
10328
- /*! exports provided: default */
10329
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10330
-
10331
- "use strict";
10332
- __webpack_require__.r(__webpack_exports__);
10333
- /*
10334
- * Browser-compatible JavaScript MD5
10335
- *
10336
- * Modification of JavaScript MD5
10337
- * https://github.com/blueimp/JavaScript-MD5
10338
- *
10339
- * Copyright 2011, Sebastian Tschan
10340
- * https://blueimp.net
10341
- *
10342
- * Licensed under the MIT license:
10343
- * https://opensource.org/licenses/MIT
10344
- *
10345
- * Based on
10346
- * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
10347
- * Digest Algorithm, as defined in RFC 1321.
10348
- * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
10349
- * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
10350
- * Distributed under the BSD License
10351
- * See http://pajhome.org.uk/crypt/md5 for more info.
10352
- */
10353
- function md5(bytes) {
10354
- if (typeof bytes === 'string') {
10355
- var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
10356
-
10357
- bytes = new Uint8Array(msg.length);
10358
-
10359
- for (var i = 0; i < msg.length; ++i) {
10360
- bytes[i] = msg.charCodeAt(i);
10361
- }
10362
- }
10363
-
10364
- return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8));
10365
- }
10366
- /*
10367
- * Convert an array of little-endian words to an array of bytes
10368
- */
10369
-
10370
-
10371
- function md5ToHexEncodedArray(input) {
10372
- var output = [];
10373
- var length32 = input.length * 32;
10374
- var hexTab = '0123456789abcdef';
10375
-
10376
- for (var i = 0; i < length32; i += 8) {
10377
- var x = input[i >> 5] >>> i % 32 & 0xff;
10378
- var hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16);
10379
- output.push(hex);
10380
- }
10381
-
10382
- return output;
10383
- }
10384
- /**
10385
- * Calculate output length with padding and bit length
10386
- */
10387
-
10388
-
10389
- function getOutputLength(inputLength8) {
10390
- return (inputLength8 + 64 >>> 9 << 4) + 14 + 1;
10391
- }
10392
- /*
10393
- * Calculate the MD5 of an array of little-endian words, and a bit length.
10394
- */
10395
-
10396
-
10397
- function wordsToMd5(x, len) {
10398
- /* append padding */
10399
- x[len >> 5] |= 0x80 << len % 32;
10400
- x[getOutputLength(len) - 1] = len;
10401
- var a = 1732584193;
10402
- var b = -271733879;
10403
- var c = -1732584194;
10404
- var d = 271733878;
10405
-
10406
- for (var i = 0; i < x.length; i += 16) {
10407
- var olda = a;
10408
- var oldb = b;
10409
- var oldc = c;
10410
- var oldd = d;
10411
- a = md5ff(a, b, c, d, x[i], 7, -680876936);
10412
- d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
10413
- c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
10414
- b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
10415
- a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
10416
- d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
10417
- c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
10418
- b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
10419
- a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
10420
- d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
10421
- c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
10422
- b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
10423
- a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
10424
- d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
10425
- c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
10426
- b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
10427
- a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
10428
- d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
10429
- c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
10430
- b = md5gg(b, c, d, a, x[i], 20, -373897302);
10431
- a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
10432
- d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
10433
- c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
10434
- b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
10435
- a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
10436
- d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
10437
- c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
10438
- b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
10439
- a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
10440
- d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
10441
- c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
10442
- b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
10443
- a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
10444
- d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
10445
- c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
10446
- b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
10447
- a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
10448
- d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
10449
- c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
10450
- b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
10451
- a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
10452
- d = md5hh(d, a, b, c, x[i], 11, -358537222);
10453
- c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
10454
- b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
10455
- a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
10456
- d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
10457
- c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
10458
- b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
10459
- a = md5ii(a, b, c, d, x[i], 6, -198630844);
10460
- d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
10461
- c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
10462
- b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
10463
- a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
10464
- d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
10465
- c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
10466
- b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
10467
- a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
10468
- d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
10469
- c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
10470
- b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
10471
- a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
10472
- d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
10473
- c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
10474
- b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
10475
- a = safeAdd(a, olda);
10476
- b = safeAdd(b, oldb);
10477
- c = safeAdd(c, oldc);
10478
- d = safeAdd(d, oldd);
10479
- }
10480
-
10481
- return [a, b, c, d];
10482
- }
10483
- /*
10484
- * Convert an array bytes to an array of little-endian words
10485
- * Characters >255 have their high-byte silently ignored.
10486
- */
10487
-
10488
-
10489
- function bytesToWords(input) {
10490
- if (input.length === 0) {
10491
- return [];
10492
- }
10493
-
10494
- var length8 = input.length * 8;
10495
- var output = new Uint32Array(getOutputLength(length8));
10496
-
10497
- for (var i = 0; i < length8; i += 8) {
10498
- output[i >> 5] |= (input[i / 8] & 0xff) << i % 32;
10499
- }
10500
-
10501
- return output;
10502
- }
10503
- /*
10504
- * Add integers, wrapping at 2^32. This uses 16-bit operations internally
10505
- * to work around bugs in some JS interpreters.
10506
- */
10507
-
10508
-
10509
- function safeAdd(x, y) {
10510
- var lsw = (x & 0xffff) + (y & 0xffff);
10511
- var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
10512
- return msw << 16 | lsw & 0xffff;
10513
- }
10514
- /*
10515
- * Bitwise rotate a 32-bit number to the left.
10516
- */
10517
-
10518
-
10519
- function bitRotateLeft(num, cnt) {
10520
- return num << cnt | num >>> 32 - cnt;
10521
- }
10522
- /*
10523
- * These functions implement the four basic operations the algorithm uses.
10524
- */
10525
-
10526
-
10527
- function md5cmn(q, a, b, x, s, t) {
10528
- return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
10529
- }
10530
-
10531
- function md5ff(a, b, c, d, x, s, t) {
10532
- return md5cmn(b & c | ~b & d, a, b, x, s, t);
10533
- }
10534
-
10535
- function md5gg(a, b, c, d, x, s, t) {
10536
- return md5cmn(b & d | c & ~d, a, b, x, s, t);
10537
- }
10538
-
10539
- function md5hh(a, b, c, d, x, s, t) {
10540
- return md5cmn(b ^ c ^ d, a, b, x, s, t);
10541
- }
10542
-
10543
- function md5ii(a, b, c, d, x, s, t) {
10544
- return md5cmn(c ^ (b | ~d), a, b, x, s, t);
10545
- }
10546
-
10547
- /* harmony default export */ __webpack_exports__["default"] = (md5);
10548
-
10549
- /***/ }),
10550
-
10551
- /***/ "./node_modules/uuid/dist/esm-browser/nil.js":
10552
- /*!***************************************************!*\
10553
- !*** ./node_modules/uuid/dist/esm-browser/nil.js ***!
10554
- \***************************************************/
10555
- /*! exports provided: default */
10556
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10557
-
10558
- "use strict";
10559
- __webpack_require__.r(__webpack_exports__);
10560
- /* harmony default export */ __webpack_exports__["default"] = ('00000000-0000-0000-0000-000000000000');
10561
-
10562
- /***/ }),
10563
-
10564
- /***/ "./node_modules/uuid/dist/esm-browser/parse.js":
10565
- /*!*****************************************************!*\
10566
- !*** ./node_modules/uuid/dist/esm-browser/parse.js ***!
10567
- \*****************************************************/
10568
- /*! exports provided: default */
10569
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10570
-
10571
- "use strict";
10572
- __webpack_require__.r(__webpack_exports__);
10573
- /* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/esm-browser/validate.js");
10574
-
10575
-
10576
- function parse(uuid) {
10577
- if (!Object(_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
10578
- throw TypeError('Invalid UUID');
10579
- }
10580
-
10581
- var v;
10582
- var arr = new Uint8Array(16); // Parse ########-....-....-....-............
10583
-
10584
- arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
10585
- arr[1] = v >>> 16 & 0xff;
10586
- arr[2] = v >>> 8 & 0xff;
10587
- arr[3] = v & 0xff; // Parse ........-####-....-....-............
10588
-
10589
- arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
10590
- arr[5] = v & 0xff; // Parse ........-....-####-....-............
10591
-
10592
- arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
10593
- arr[7] = v & 0xff; // Parse ........-....-....-####-............
10594
-
10595
- arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
10596
- arr[9] = v & 0xff; // Parse ........-....-....-....-############
10597
- // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
10598
-
10599
- arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
10600
- arr[11] = v / 0x100000000 & 0xff;
10601
- arr[12] = v >>> 24 & 0xff;
10602
- arr[13] = v >>> 16 & 0xff;
10603
- arr[14] = v >>> 8 & 0xff;
10604
- arr[15] = v & 0xff;
10605
- return arr;
10606
- }
10607
-
10608
- /* harmony default export */ __webpack_exports__["default"] = (parse);
10609
-
10610
- /***/ }),
10611
-
10612
- /***/ "./node_modules/uuid/dist/esm-browser/regex.js":
10613
- /*!*****************************************************!*\
10614
- !*** ./node_modules/uuid/dist/esm-browser/regex.js ***!
10615
- \*****************************************************/
10616
- /*! exports provided: default */
10617
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10618
-
10619
- "use strict";
10620
- __webpack_require__.r(__webpack_exports__);
10621
- /* 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);
10622
-
10623
- /***/ }),
10624
-
10625
- /***/ "./node_modules/uuid/dist/esm-browser/rng.js":
10626
- /*!***************************************************!*\
10627
- !*** ./node_modules/uuid/dist/esm-browser/rng.js ***!
10628
- \***************************************************/
10629
- /*! exports provided: default */
10630
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10631
-
10632
- "use strict";
10633
- __webpack_require__.r(__webpack_exports__);
10634
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return rng; });
10635
- // Unique ID creation requires a high quality random # generator. In the browser we therefore
10636
- // require the crypto API and do not support built-in fallback to lower quality random number
10637
- // generators (like Math.random()).
10638
- var getRandomValues;
10639
- var rnds8 = new Uint8Array(16);
10640
- function rng() {
10641
- // lazy load so that environments that need to polyfill have a chance to do so
10642
- if (!getRandomValues) {
10643
- // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
10644
- // find the complete implementation of crypto (msCrypto) on IE11.
10645
- getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
10646
-
10647
- if (!getRandomValues) {
10648
- throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
10649
- }
10650
- }
10651
-
10652
- return getRandomValues(rnds8);
10653
- }
10654
-
10655
- /***/ }),
10656
-
10657
- /***/ "./node_modules/uuid/dist/esm-browser/sha1.js":
10658
- /*!****************************************************!*\
10659
- !*** ./node_modules/uuid/dist/esm-browser/sha1.js ***!
10660
- \****************************************************/
10661
- /*! exports provided: default */
10662
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10663
-
10664
- "use strict";
10665
- __webpack_require__.r(__webpack_exports__);
10666
- // Adapted from Chris Veness' SHA1 code at
10667
- // http://www.movable-type.co.uk/scripts/sha1.html
10668
- function f(s, x, y, z) {
10669
- switch (s) {
10670
- case 0:
10671
- return x & y ^ ~x & z;
10672
-
10673
- case 1:
10674
- return x ^ y ^ z;
10675
-
10676
- case 2:
10677
- return x & y ^ x & z ^ y & z;
10678
-
10679
- case 3:
10680
- return x ^ y ^ z;
10681
- }
10682
- }
10683
-
10684
- function ROTL(x, n) {
10685
- return x << n | x >>> 32 - n;
10686
- }
10687
-
10688
- function sha1(bytes) {
10689
- var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
10690
- var H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
10691
-
10692
- if (typeof bytes === 'string') {
10693
- var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
10694
-
10695
- bytes = [];
10696
-
10697
- for (var i = 0; i < msg.length; ++i) {
10698
- bytes.push(msg.charCodeAt(i));
10699
- }
10700
- } else if (!Array.isArray(bytes)) {
10701
- // Convert Array-like to Array
10702
- bytes = Array.prototype.slice.call(bytes);
10703
- }
10704
-
10705
- bytes.push(0x80);
10706
- var l = bytes.length / 4 + 2;
10707
- var N = Math.ceil(l / 16);
10708
- var M = new Array(N);
10709
-
10710
- for (var _i = 0; _i < N; ++_i) {
10711
- var arr = new Uint32Array(16);
10712
-
10713
- for (var j = 0; j < 16; ++j) {
10714
- 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];
10715
- }
10716
-
10717
- M[_i] = arr;
10718
- }
10719
-
10720
- M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32);
10721
- M[N - 1][14] = Math.floor(M[N - 1][14]);
10722
- M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff;
10723
-
10724
- for (var _i2 = 0; _i2 < N; ++_i2) {
10725
- var W = new Uint32Array(80);
10726
-
10727
- for (var t = 0; t < 16; ++t) {
10728
- W[t] = M[_i2][t];
10729
- }
10730
-
10731
- for (var _t = 16; _t < 80; ++_t) {
10732
- W[_t] = ROTL(W[_t - 3] ^ W[_t - 8] ^ W[_t - 14] ^ W[_t - 16], 1);
10733
- }
10734
-
10735
- var a = H[0];
10736
- var b = H[1];
10737
- var c = H[2];
10738
- var d = H[3];
10739
- var e = H[4];
10740
-
10741
- for (var _t2 = 0; _t2 < 80; ++_t2) {
10742
- var s = Math.floor(_t2 / 20);
10743
- var T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[_t2] >>> 0;
10744
- e = d;
10745
- d = c;
10746
- c = ROTL(b, 30) >>> 0;
10747
- b = a;
10748
- a = T;
10749
- }
10750
-
10751
- H[0] = H[0] + a >>> 0;
10752
- H[1] = H[1] + b >>> 0;
10753
- H[2] = H[2] + c >>> 0;
10754
- H[3] = H[3] + d >>> 0;
10755
- H[4] = H[4] + e >>> 0;
10756
- }
10757
-
10758
- 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];
10759
- }
10760
-
10761
- /* harmony default export */ __webpack_exports__["default"] = (sha1);
10762
-
10763
- /***/ }),
10764
-
10765
- /***/ "./node_modules/uuid/dist/esm-browser/stringify.js":
10766
- /*!*********************************************************!*\
10767
- !*** ./node_modules/uuid/dist/esm-browser/stringify.js ***!
10768
- \*********************************************************/
10769
- /*! exports provided: default */
10770
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10771
-
10772
- "use strict";
10773
- __webpack_require__.r(__webpack_exports__);
10774
- /* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/esm-browser/validate.js");
10775
-
10776
- /**
10777
- * Convert array of 16 byte values to UUID string format of the form:
10778
- * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
10779
- */
10780
-
10781
- var byteToHex = [];
10782
-
10783
- for (var i = 0; i < 256; ++i) {
10784
- byteToHex.push((i + 0x100).toString(16).substr(1));
10785
- }
10786
-
10787
- function stringify(arr) {
10788
- var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
10789
- // Note: Be careful editing this code! It's been tuned for performance
10790
- // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
10791
- 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
10792
- // of the following:
10793
- // - One or more input array values don't map to a hex octet (leading to
10794
- // "undefined" in the uuid)
10795
- // - Invalid input values for the RFC `version` or `variant` fields
10796
-
10797
- if (!Object(_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
10798
- throw TypeError('Stringified UUID is invalid');
10799
- }
10800
-
10801
- return uuid;
10802
- }
10803
-
10804
- /* harmony default export */ __webpack_exports__["default"] = (stringify);
10805
-
10806
- /***/ }),
10807
-
10808
- /***/ "./node_modules/uuid/dist/esm-browser/v1.js":
10809
- /*!**************************************************!*\
10810
- !*** ./node_modules/uuid/dist/esm-browser/v1.js ***!
10811
- \**************************************************/
10812
- /*! exports provided: default */
10813
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10814
-
10815
- "use strict";
10816
- __webpack_require__.r(__webpack_exports__);
10817
- /* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rng.js */ "./node_modules/uuid/dist/esm-browser/rng.js");
10818
- /* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/esm-browser/stringify.js");
10819
-
10820
- // **`v1()` - Generate time-based UUID**
10821
- //
10822
- // Inspired by https://github.com/LiosK/UUID.js
10823
- // and http://docs.python.org/library/uuid.html
10824
-
10825
- var _nodeId;
10826
-
10827
- var _clockseq; // Previous uuid creation time
10828
-
10829
-
10830
- var _lastMSecs = 0;
10831
- var _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
10832
-
10833
- function v1(options, buf, offset) {
10834
- var i = buf && offset || 0;
10835
- var b = buf || new Array(16);
10836
- options = options || {};
10837
- var node = options.node || _nodeId;
10838
- var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
10839
- // specified. We do this lazily to minimize issues related to insufficient
10840
- // system entropy. See #189
10841
-
10842
- if (node == null || clockseq == null) {
10843
- var seedBytes = options.random || (options.rng || _rng_js__WEBPACK_IMPORTED_MODULE_0__["default"])();
10844
-
10845
- if (node == null) {
10846
- // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
10847
- node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
10848
- }
10849
-
10850
- if (clockseq == null) {
10851
- // Per 4.2.2, randomize (14 bit) clockseq
10852
- clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
10853
- }
10854
- } // UUID timestamps are 100 nano-second units since the Gregorian epoch,
10855
- // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
10856
- // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
10857
- // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
10858
-
10859
-
10860
- var msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
10861
- // cycle to simulate higher resolution clock
10862
-
10863
- var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
10864
-
10865
- var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
10866
-
10867
- if (dt < 0 && options.clockseq === undefined) {
10868
- clockseq = clockseq + 1 & 0x3fff;
10869
- } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
10870
- // time interval
10871
-
10872
-
10873
- if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
10874
- nsecs = 0;
10875
- } // Per 4.2.1.2 Throw error if too many uuids are requested
10876
-
10877
-
10878
- if (nsecs >= 10000) {
10879
- throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
10880
- }
10881
-
10882
- _lastMSecs = msecs;
10883
- _lastNSecs = nsecs;
10884
- _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
10885
-
10886
- msecs += 12219292800000; // `time_low`
10887
-
10888
- var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
10889
- b[i++] = tl >>> 24 & 0xff;
10890
- b[i++] = tl >>> 16 & 0xff;
10891
- b[i++] = tl >>> 8 & 0xff;
10892
- b[i++] = tl & 0xff; // `time_mid`
10893
-
10894
- var tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
10895
- b[i++] = tmh >>> 8 & 0xff;
10896
- b[i++] = tmh & 0xff; // `time_high_and_version`
10897
-
10898
- b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
10899
-
10900
- b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
10901
-
10902
- b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
10903
-
10904
- b[i++] = clockseq & 0xff; // `node`
10905
-
10906
- for (var n = 0; n < 6; ++n) {
10907
- b[i + n] = node[n];
10908
- }
10909
-
10910
- return buf || Object(_stringify_js__WEBPACK_IMPORTED_MODULE_1__["default"])(b);
10911
- }
10912
-
10913
- /* harmony default export */ __webpack_exports__["default"] = (v1);
10914
-
10915
- /***/ }),
10916
-
10917
- /***/ "./node_modules/uuid/dist/esm-browser/v3.js":
10918
- /*!**************************************************!*\
10919
- !*** ./node_modules/uuid/dist/esm-browser/v3.js ***!
10920
- \**************************************************/
10921
- /*! exports provided: default */
10922
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10923
-
10924
- "use strict";
10925
- __webpack_require__.r(__webpack_exports__);
10926
- /* harmony import */ var _v35_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v35.js */ "./node_modules/uuid/dist/esm-browser/v35.js");
10927
- /* harmony import */ var _md5_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./md5.js */ "./node_modules/uuid/dist/esm-browser/md5.js");
10928
-
10929
-
10930
- var v3 = Object(_v35_js__WEBPACK_IMPORTED_MODULE_0__["default"])('v3', 0x30, _md5_js__WEBPACK_IMPORTED_MODULE_1__["default"]);
10931
- /* harmony default export */ __webpack_exports__["default"] = (v3);
10932
-
10933
- /***/ }),
10934
-
10935
- /***/ "./node_modules/uuid/dist/esm-browser/v35.js":
10936
- /*!***************************************************!*\
10937
- !*** ./node_modules/uuid/dist/esm-browser/v35.js ***!
10938
- \***************************************************/
10939
- /*! exports provided: DNS, URL, default */
10940
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10941
-
10942
- "use strict";
10943
- __webpack_require__.r(__webpack_exports__);
10944
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DNS", function() { return DNS; });
10945
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "URL", function() { return URL; });
10946
- /* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/esm-browser/stringify.js");
10947
- /* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parse.js */ "./node_modules/uuid/dist/esm-browser/parse.js");
10948
-
10949
-
10950
-
10951
- function stringToBytes(str) {
10952
- str = unescape(encodeURIComponent(str)); // UTF8 escape
10953
-
10954
- var bytes = [];
10955
-
10956
- for (var i = 0; i < str.length; ++i) {
10957
- bytes.push(str.charCodeAt(i));
10958
- }
10959
-
10960
- return bytes;
10961
- }
10962
-
10963
- var DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
10964
- var URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
10965
- /* harmony default export */ __webpack_exports__["default"] = (function (name, version, hashfunc) {
10966
- function generateUUID(value, namespace, buf, offset) {
10967
- if (typeof value === 'string') {
10968
- value = stringToBytes(value);
10969
- }
10970
-
10971
- if (typeof namespace === 'string') {
10972
- namespace = Object(_parse_js__WEBPACK_IMPORTED_MODULE_1__["default"])(namespace);
10973
- }
10974
-
10975
- if (namespace.length !== 16) {
10976
- throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
10977
- } // Compute hash of namespace and value, Per 4.3
10978
- // Future: Use spread syntax when supported on all platforms, e.g. `bytes =
10979
- // hashfunc([...namespace, ... value])`
10980
-
10981
-
10982
- var bytes = new Uint8Array(16 + value.length);
10983
- bytes.set(namespace);
10984
- bytes.set(value, namespace.length);
10985
- bytes = hashfunc(bytes);
10986
- bytes[6] = bytes[6] & 0x0f | version;
10987
- bytes[8] = bytes[8] & 0x3f | 0x80;
10988
-
10989
- if (buf) {
10990
- offset = offset || 0;
10991
-
10992
- for (var i = 0; i < 16; ++i) {
10993
- buf[offset + i] = bytes[i];
10994
- }
10995
-
10996
- return buf;
10997
- }
10998
-
10999
- return Object(_stringify_js__WEBPACK_IMPORTED_MODULE_0__["default"])(bytes);
11000
- } // Function#name is not settable on some platforms (#270)
11001
-
11002
-
11003
- try {
11004
- generateUUID.name = name; // eslint-disable-next-line no-empty
11005
- } catch (err) {} // For CommonJS default export support
11006
-
11007
-
11008
- generateUUID.DNS = DNS;
11009
- generateUUID.URL = URL;
11010
- return generateUUID;
11011
- });
11012
-
11013
- /***/ }),
11014
-
11015
- /***/ "./node_modules/uuid/dist/esm-browser/v4.js":
11016
- /*!**************************************************!*\
11017
- !*** ./node_modules/uuid/dist/esm-browser/v4.js ***!
11018
- \**************************************************/
11019
- /*! exports provided: default */
11020
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11021
-
11022
- "use strict";
11023
- __webpack_require__.r(__webpack_exports__);
11024
- /* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rng.js */ "./node_modules/uuid/dist/esm-browser/rng.js");
11025
- /* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/esm-browser/stringify.js");
11026
-
11027
-
11028
-
11029
- function v4(options, buf, offset) {
11030
- options = options || {};
11031
- 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`
11032
-
11033
- rnds[6] = rnds[6] & 0x0f | 0x40;
11034
- rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
11035
-
11036
- if (buf) {
11037
- offset = offset || 0;
11038
-
11039
- for (var i = 0; i < 16; ++i) {
11040
- buf[offset + i] = rnds[i];
11041
- }
11042
-
11043
- return buf;
11044
- }
11045
-
11046
- return Object(_stringify_js__WEBPACK_IMPORTED_MODULE_1__["default"])(rnds);
11047
- }
11048
-
11049
- /* harmony default export */ __webpack_exports__["default"] = (v4);
11050
-
11051
- /***/ }),
11052
-
11053
- /***/ "./node_modules/uuid/dist/esm-browser/v5.js":
11054
- /*!**************************************************!*\
11055
- !*** ./node_modules/uuid/dist/esm-browser/v5.js ***!
11056
- \**************************************************/
11057
- /*! exports provided: default */
11058
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11059
-
11060
- "use strict";
11061
- __webpack_require__.r(__webpack_exports__);
11062
- /* harmony import */ var _v35_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v35.js */ "./node_modules/uuid/dist/esm-browser/v35.js");
11063
- /* harmony import */ var _sha1_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./sha1.js */ "./node_modules/uuid/dist/esm-browser/sha1.js");
11064
-
11065
-
11066
- var v5 = Object(_v35_js__WEBPACK_IMPORTED_MODULE_0__["default"])('v5', 0x50, _sha1_js__WEBPACK_IMPORTED_MODULE_1__["default"]);
11067
- /* harmony default export */ __webpack_exports__["default"] = (v5);
11068
-
11069
- /***/ }),
11070
-
11071
- /***/ "./node_modules/uuid/dist/esm-browser/validate.js":
11072
- /*!********************************************************!*\
11073
- !*** ./node_modules/uuid/dist/esm-browser/validate.js ***!
11074
- \********************************************************/
11075
- /*! exports provided: default */
11076
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11077
-
11078
- "use strict";
11079
- __webpack_require__.r(__webpack_exports__);
11080
- /* harmony import */ var _regex_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./regex.js */ "./node_modules/uuid/dist/esm-browser/regex.js");
11081
-
11082
-
11083
- function validate(uuid) {
11084
- return typeof uuid === 'string' && _regex_js__WEBPACK_IMPORTED_MODULE_0__["default"].test(uuid);
11085
- }
11086
-
11087
- /* harmony default export */ __webpack_exports__["default"] = (validate);
11088
-
11089
- /***/ }),
11090
-
11091
- /***/ "./node_modules/uuid/dist/esm-browser/version.js":
11092
- /*!*******************************************************!*\
11093
- !*** ./node_modules/uuid/dist/esm-browser/version.js ***!
11094
- \*******************************************************/
11095
- /*! exports provided: default */
11096
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
11097
-
11098
- "use strict";
11099
- __webpack_require__.r(__webpack_exports__);
11100
- /* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/esm-browser/validate.js");
11101
-
11102
-
11103
- function version(uuid) {
11104
- if (!Object(_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
11105
- throw TypeError('Invalid UUID');
11106
- }
11107
-
11108
- return parseInt(uuid.substr(14, 1), 16);
11109
- }
11110
-
11111
- /* harmony default export */ __webpack_exports__["default"] = (version);
11112
-
11113
- /***/ }),
11114
-
11115
10539
  /***/ "@aws-amplify/auth":
11116
10540
  /*!***********************************!*\
11117
10541
  !*** external "aws_amplify_auth" ***!