@aws-amplify/api-graphql 2.2.12-unstable.2 → 2.2.12-unstable.4

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.
@@ -8367,6 +8367,267 @@ module.exports = {
8367
8367
  };
8368
8368
 
8369
8369
 
8370
+ /***/ }),
8371
+
8372
+ /***/ "../../node_modules/uuid/index.js":
8373
+ /*!***************************************************!*\
8374
+ !*** /root/amplify-js/node_modules/uuid/index.js ***!
8375
+ \***************************************************/
8376
+ /*! no static exports found */
8377
+ /***/ (function(module, exports, __webpack_require__) {
8378
+
8379
+ var v1 = __webpack_require__(/*! ./v1 */ "../../node_modules/uuid/v1.js");
8380
+ var v4 = __webpack_require__(/*! ./v4 */ "../../node_modules/uuid/v4.js");
8381
+
8382
+ var uuid = v4;
8383
+ uuid.v1 = v1;
8384
+ uuid.v4 = v4;
8385
+
8386
+ module.exports = uuid;
8387
+
8388
+
8389
+ /***/ }),
8390
+
8391
+ /***/ "../../node_modules/uuid/lib/bytesToUuid.js":
8392
+ /*!*************************************************************!*\
8393
+ !*** /root/amplify-js/node_modules/uuid/lib/bytesToUuid.js ***!
8394
+ \*************************************************************/
8395
+ /*! no static exports found */
8396
+ /***/ (function(module, exports) {
8397
+
8398
+ /**
8399
+ * Convert array of 16 byte values to UUID string format of the form:
8400
+ * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
8401
+ */
8402
+ var byteToHex = [];
8403
+ for (var i = 0; i < 256; ++i) {
8404
+ byteToHex[i] = (i + 0x100).toString(16).substr(1);
8405
+ }
8406
+
8407
+ function bytesToUuid(buf, offset) {
8408
+ var i = offset || 0;
8409
+ var bth = byteToHex;
8410
+ // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
8411
+ return ([
8412
+ bth[buf[i++]], bth[buf[i++]],
8413
+ bth[buf[i++]], bth[buf[i++]], '-',
8414
+ bth[buf[i++]], bth[buf[i++]], '-',
8415
+ bth[buf[i++]], bth[buf[i++]], '-',
8416
+ bth[buf[i++]], bth[buf[i++]], '-',
8417
+ bth[buf[i++]], bth[buf[i++]],
8418
+ bth[buf[i++]], bth[buf[i++]],
8419
+ bth[buf[i++]], bth[buf[i++]]
8420
+ ]).join('');
8421
+ }
8422
+
8423
+ module.exports = bytesToUuid;
8424
+
8425
+
8426
+ /***/ }),
8427
+
8428
+ /***/ "../../node_modules/uuid/lib/rng-browser.js":
8429
+ /*!*************************************************************!*\
8430
+ !*** /root/amplify-js/node_modules/uuid/lib/rng-browser.js ***!
8431
+ \*************************************************************/
8432
+ /*! no static exports found */
8433
+ /***/ (function(module, exports) {
8434
+
8435
+ // Unique ID creation requires a high quality random # generator. In the
8436
+ // browser this is a little complicated due to unknown quality of Math.random()
8437
+ // and inconsistent support for the `crypto` API. We do the best we can via
8438
+ // feature-detection
8439
+
8440
+ // getRandomValues needs to be invoked in a context where "this" is a Crypto
8441
+ // implementation. Also, find the complete implementation of crypto on IE11.
8442
+ var getRandomValues = (typeof(crypto) != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||
8443
+ (typeof(msCrypto) != 'undefined' && typeof window.msCrypto.getRandomValues == 'function' && msCrypto.getRandomValues.bind(msCrypto));
8444
+
8445
+ if (getRandomValues) {
8446
+ // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto
8447
+ var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef
8448
+
8449
+ module.exports = function whatwgRNG() {
8450
+ getRandomValues(rnds8);
8451
+ return rnds8;
8452
+ };
8453
+ } else {
8454
+ // Math.random()-based (RNG)
8455
+ //
8456
+ // If all else fails, use Math.random(). It's fast, but is of unspecified
8457
+ // quality.
8458
+ var rnds = new Array(16);
8459
+
8460
+ module.exports = function mathRNG() {
8461
+ for (var i = 0, r; i < 16; i++) {
8462
+ if ((i & 0x03) === 0) r = Math.random() * 0x100000000;
8463
+ rnds[i] = r >>> ((i & 0x03) << 3) & 0xff;
8464
+ }
8465
+
8466
+ return rnds;
8467
+ };
8468
+ }
8469
+
8470
+
8471
+ /***/ }),
8472
+
8473
+ /***/ "../../node_modules/uuid/v1.js":
8474
+ /*!************************************************!*\
8475
+ !*** /root/amplify-js/node_modules/uuid/v1.js ***!
8476
+ \************************************************/
8477
+ /*! no static exports found */
8478
+ /***/ (function(module, exports, __webpack_require__) {
8479
+
8480
+ var rng = __webpack_require__(/*! ./lib/rng */ "../../node_modules/uuid/lib/rng-browser.js");
8481
+ var bytesToUuid = __webpack_require__(/*! ./lib/bytesToUuid */ "../../node_modules/uuid/lib/bytesToUuid.js");
8482
+
8483
+ // **`v1()` - Generate time-based UUID**
8484
+ //
8485
+ // Inspired by https://github.com/LiosK/UUID.js
8486
+ // and http://docs.python.org/library/uuid.html
8487
+
8488
+ var _nodeId;
8489
+ var _clockseq;
8490
+
8491
+ // Previous uuid creation time
8492
+ var _lastMSecs = 0;
8493
+ var _lastNSecs = 0;
8494
+
8495
+ // See https://github.com/uuidjs/uuid for API details
8496
+ function v1(options, buf, offset) {
8497
+ var i = buf && offset || 0;
8498
+ var b = buf || [];
8499
+
8500
+ options = options || {};
8501
+ var node = options.node || _nodeId;
8502
+ var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq;
8503
+
8504
+ // node and clockseq need to be initialized to random values if they're not
8505
+ // specified. We do this lazily to minimize issues related to insufficient
8506
+ // system entropy. See #189
8507
+ if (node == null || clockseq == null) {
8508
+ var seedBytes = rng();
8509
+ if (node == null) {
8510
+ // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
8511
+ node = _nodeId = [
8512
+ seedBytes[0] | 0x01,
8513
+ seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]
8514
+ ];
8515
+ }
8516
+ if (clockseq == null) {
8517
+ // Per 4.2.2, randomize (14 bit) clockseq
8518
+ clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
8519
+ }
8520
+ }
8521
+
8522
+ // UUID timestamps are 100 nano-second units since the Gregorian epoch,
8523
+ // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
8524
+ // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
8525
+ // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
8526
+ var msecs = options.msecs !== undefined ? options.msecs : new Date().getTime();
8527
+
8528
+ // Per 4.2.1.2, use count of uuid's generated during the current clock
8529
+ // cycle to simulate higher resolution clock
8530
+ var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1;
8531
+
8532
+ // Time since last uuid creation (in msecs)
8533
+ var dt = (msecs - _lastMSecs) + (nsecs - _lastNSecs)/10000;
8534
+
8535
+ // Per 4.2.1.2, Bump clockseq on clock regression
8536
+ if (dt < 0 && options.clockseq === undefined) {
8537
+ clockseq = clockseq + 1 & 0x3fff;
8538
+ }
8539
+
8540
+ // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
8541
+ // time interval
8542
+ if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
8543
+ nsecs = 0;
8544
+ }
8545
+
8546
+ // Per 4.2.1.2 Throw error if too many uuids are requested
8547
+ if (nsecs >= 10000) {
8548
+ throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
8549
+ }
8550
+
8551
+ _lastMSecs = msecs;
8552
+ _lastNSecs = nsecs;
8553
+ _clockseq = clockseq;
8554
+
8555
+ // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
8556
+ msecs += 12219292800000;
8557
+
8558
+ // `time_low`
8559
+ var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
8560
+ b[i++] = tl >>> 24 & 0xff;
8561
+ b[i++] = tl >>> 16 & 0xff;
8562
+ b[i++] = tl >>> 8 & 0xff;
8563
+ b[i++] = tl & 0xff;
8564
+
8565
+ // `time_mid`
8566
+ var tmh = (msecs / 0x100000000 * 10000) & 0xfffffff;
8567
+ b[i++] = tmh >>> 8 & 0xff;
8568
+ b[i++] = tmh & 0xff;
8569
+
8570
+ // `time_high_and_version`
8571
+ b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
8572
+ b[i++] = tmh >>> 16 & 0xff;
8573
+
8574
+ // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
8575
+ b[i++] = clockseq >>> 8 | 0x80;
8576
+
8577
+ // `clock_seq_low`
8578
+ b[i++] = clockseq & 0xff;
8579
+
8580
+ // `node`
8581
+ for (var n = 0; n < 6; ++n) {
8582
+ b[i + n] = node[n];
8583
+ }
8584
+
8585
+ return buf ? buf : bytesToUuid(b);
8586
+ }
8587
+
8588
+ module.exports = v1;
8589
+
8590
+
8591
+ /***/ }),
8592
+
8593
+ /***/ "../../node_modules/uuid/v4.js":
8594
+ /*!************************************************!*\
8595
+ !*** /root/amplify-js/node_modules/uuid/v4.js ***!
8596
+ \************************************************/
8597
+ /*! no static exports found */
8598
+ /***/ (function(module, exports, __webpack_require__) {
8599
+
8600
+ var rng = __webpack_require__(/*! ./lib/rng */ "../../node_modules/uuid/lib/rng-browser.js");
8601
+ var bytesToUuid = __webpack_require__(/*! ./lib/bytesToUuid */ "../../node_modules/uuid/lib/bytesToUuid.js");
8602
+
8603
+ function v4(options, buf, offset) {
8604
+ var i = buf && offset || 0;
8605
+
8606
+ if (typeof(options) == 'string') {
8607
+ buf = options === 'binary' ? new Array(16) : null;
8608
+ options = null;
8609
+ }
8610
+ options = options || {};
8611
+
8612
+ var rnds = options.random || (options.rng || rng)();
8613
+
8614
+ // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
8615
+ rnds[6] = (rnds[6] & 0x0f) | 0x40;
8616
+ rnds[8] = (rnds[8] & 0x3f) | 0x80;
8617
+
8618
+ // Copy bytes to buffer, if provided
8619
+ if (buf) {
8620
+ for (var ii = 0; ii < 16; ++ii) {
8621
+ buf[i + ii] = rnds[ii];
8622
+ }
8623
+ }
8624
+
8625
+ return buf || bytesToUuid(rnds);
8626
+ }
8627
+
8628
+ module.exports = v4;
8629
+
8630
+
8370
8631
  /***/ }),
8371
8632
 
8372
8633
  /***/ "../../node_modules/webpack/buildin/global.js":
@@ -10861,7 +11122,8 @@ __webpack_require__.r(__webpack_exports__);
10861
11122
  /* harmony import */ var graphql__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(graphql__WEBPACK_IMPORTED_MODULE_1__);
10862
11123
  /* harmony import */ var url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! url */ "../../node_modules/url/url.js");
10863
11124
  /* harmony import */ var url__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(url__WEBPACK_IMPORTED_MODULE_2__);
10864
- /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! uuid */ "../pubsub/node_modules/uuid/dist/esm-browser/index.js");
11125
+ /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! uuid */ "../../node_modules/uuid/index.js");
11126
+ /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(uuid__WEBPACK_IMPORTED_MODULE_3__);
10865
11127
  /* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! buffer */ "../../node_modules/buffer/index.js");
10866
11128
  /* harmony import */ var buffer__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(buffer__WEBPACK_IMPORTED_MODULE_4__);
10867
11129
  /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
@@ -12508,7 +12770,8 @@ __webpack_require__.r(__webpack_exports__);
12508
12770
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MqttOverWSProvider", function() { return MqttOverWSProvider; });
12509
12771
  /* harmony import */ var paho_mqtt__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! paho-mqtt */ "../../node_modules/paho-mqtt/paho-mqtt.js");
12510
12772
  /* harmony import */ var paho_mqtt__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(paho_mqtt__WEBPACK_IMPORTED_MODULE_0__);
12511
- /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! uuid */ "../pubsub/node_modules/uuid/dist/esm-browser/index.js");
12773
+ /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! uuid */ "../../node_modules/uuid/index.js");
12774
+ /* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(uuid__WEBPACK_IMPORTED_MODULE_1__);
12512
12775
  /* harmony import */ var zen_observable_ts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! zen-observable-ts */ "../../node_modules/zen-observable-ts/lib/bundle.esm.js");
12513
12776
  /* harmony import */ var _PubSubProvider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PubSubProvider */ "../pubsub/lib-esm/Providers/PubSubProvider.js");
12514
12777
  /* harmony import */ var _aws_amplify_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @aws-amplify/core */ "@aws-amplify/core");
@@ -13769,845 +14032,6 @@ var CONTROL_MSG;
13769
14032
 
13770
14033
  /***/ }),
13771
14034
 
13772
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/index.js":
13773
- /*!*************************************************************!*\
13774
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/index.js ***!
13775
- \*************************************************************/
13776
- /*! exports provided: v1, v3, v4, v5, NIL, version, validate, stringify, parse */
13777
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
13778
-
13779
- "use strict";
13780
- __webpack_require__.r(__webpack_exports__);
13781
- /* harmony import */ var _v1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v1.js */ "../pubsub/node_modules/uuid/dist/esm-browser/v1.js");
13782
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "v1", function() { return _v1_js__WEBPACK_IMPORTED_MODULE_0__["default"]; });
13783
-
13784
- /* harmony import */ var _v3_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./v3.js */ "../pubsub/node_modules/uuid/dist/esm-browser/v3.js");
13785
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "v3", function() { return _v3_js__WEBPACK_IMPORTED_MODULE_1__["default"]; });
13786
-
13787
- /* harmony import */ var _v4_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./v4.js */ "../pubsub/node_modules/uuid/dist/esm-browser/v4.js");
13788
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "v4", function() { return _v4_js__WEBPACK_IMPORTED_MODULE_2__["default"]; });
13789
-
13790
- /* harmony import */ var _v5_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./v5.js */ "../pubsub/node_modules/uuid/dist/esm-browser/v5.js");
13791
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "v5", function() { return _v5_js__WEBPACK_IMPORTED_MODULE_3__["default"]; });
13792
-
13793
- /* harmony import */ var _nil_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./nil.js */ "../pubsub/node_modules/uuid/dist/esm-browser/nil.js");
13794
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NIL", function() { return _nil_js__WEBPACK_IMPORTED_MODULE_4__["default"]; });
13795
-
13796
- /* harmony import */ var _version_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./version.js */ "../pubsub/node_modules/uuid/dist/esm-browser/version.js");
13797
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "version", function() { return _version_js__WEBPACK_IMPORTED_MODULE_5__["default"]; });
13798
-
13799
- /* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./validate.js */ "../pubsub/node_modules/uuid/dist/esm-browser/validate.js");
13800
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "validate", function() { return _validate_js__WEBPACK_IMPORTED_MODULE_6__["default"]; });
13801
-
13802
- /* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./stringify.js */ "../pubsub/node_modules/uuid/dist/esm-browser/stringify.js");
13803
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "stringify", function() { return _stringify_js__WEBPACK_IMPORTED_MODULE_7__["default"]; });
13804
-
13805
- /* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./parse.js */ "../pubsub/node_modules/uuid/dist/esm-browser/parse.js");
13806
- /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parse", function() { return _parse_js__WEBPACK_IMPORTED_MODULE_8__["default"]; });
13807
-
13808
-
13809
-
13810
-
13811
-
13812
-
13813
-
13814
-
13815
-
13816
-
13817
-
13818
- /***/ }),
13819
-
13820
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/md5.js":
13821
- /*!***********************************************************!*\
13822
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/md5.js ***!
13823
- \***********************************************************/
13824
- /*! exports provided: default */
13825
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
13826
-
13827
- "use strict";
13828
- __webpack_require__.r(__webpack_exports__);
13829
- /*
13830
- * Browser-compatible JavaScript MD5
13831
- *
13832
- * Modification of JavaScript MD5
13833
- * https://github.com/blueimp/JavaScript-MD5
13834
- *
13835
- * Copyright 2011, Sebastian Tschan
13836
- * https://blueimp.net
13837
- *
13838
- * Licensed under the MIT license:
13839
- * https://opensource.org/licenses/MIT
13840
- *
13841
- * Based on
13842
- * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
13843
- * Digest Algorithm, as defined in RFC 1321.
13844
- * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
13845
- * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
13846
- * Distributed under the BSD License
13847
- * See http://pajhome.org.uk/crypt/md5 for more info.
13848
- */
13849
- function md5(bytes) {
13850
- if (typeof bytes === 'string') {
13851
- var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
13852
-
13853
- bytes = new Uint8Array(msg.length);
13854
-
13855
- for (var i = 0; i < msg.length; ++i) {
13856
- bytes[i] = msg.charCodeAt(i);
13857
- }
13858
- }
13859
-
13860
- return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8));
13861
- }
13862
- /*
13863
- * Convert an array of little-endian words to an array of bytes
13864
- */
13865
-
13866
-
13867
- function md5ToHexEncodedArray(input) {
13868
- var output = [];
13869
- var length32 = input.length * 32;
13870
- var hexTab = '0123456789abcdef';
13871
-
13872
- for (var i = 0; i < length32; i += 8) {
13873
- var x = input[i >> 5] >>> i % 32 & 0xff;
13874
- var hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16);
13875
- output.push(hex);
13876
- }
13877
-
13878
- return output;
13879
- }
13880
- /**
13881
- * Calculate output length with padding and bit length
13882
- */
13883
-
13884
-
13885
- function getOutputLength(inputLength8) {
13886
- return (inputLength8 + 64 >>> 9 << 4) + 14 + 1;
13887
- }
13888
- /*
13889
- * Calculate the MD5 of an array of little-endian words, and a bit length.
13890
- */
13891
-
13892
-
13893
- function wordsToMd5(x, len) {
13894
- /* append padding */
13895
- x[len >> 5] |= 0x80 << len % 32;
13896
- x[getOutputLength(len) - 1] = len;
13897
- var a = 1732584193;
13898
- var b = -271733879;
13899
- var c = -1732584194;
13900
- var d = 271733878;
13901
-
13902
- for (var i = 0; i < x.length; i += 16) {
13903
- var olda = a;
13904
- var oldb = b;
13905
- var oldc = c;
13906
- var oldd = d;
13907
- a = md5ff(a, b, c, d, x[i], 7, -680876936);
13908
- d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
13909
- c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
13910
- b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
13911
- a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
13912
- d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
13913
- c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
13914
- b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
13915
- a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
13916
- d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
13917
- c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
13918
- b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
13919
- a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
13920
- d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
13921
- c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
13922
- b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
13923
- a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
13924
- d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
13925
- c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
13926
- b = md5gg(b, c, d, a, x[i], 20, -373897302);
13927
- a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
13928
- d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
13929
- c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
13930
- b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
13931
- a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
13932
- d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
13933
- c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
13934
- b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
13935
- a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
13936
- d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
13937
- c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
13938
- b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
13939
- a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
13940
- d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
13941
- c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
13942
- b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
13943
- a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
13944
- d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
13945
- c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
13946
- b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
13947
- a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
13948
- d = md5hh(d, a, b, c, x[i], 11, -358537222);
13949
- c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
13950
- b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
13951
- a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
13952
- d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
13953
- c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
13954
- b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
13955
- a = md5ii(a, b, c, d, x[i], 6, -198630844);
13956
- d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
13957
- c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
13958
- b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
13959
- a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
13960
- d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
13961
- c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
13962
- b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
13963
- a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
13964
- d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
13965
- c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
13966
- b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
13967
- a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
13968
- d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
13969
- c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
13970
- b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
13971
- a = safeAdd(a, olda);
13972
- b = safeAdd(b, oldb);
13973
- c = safeAdd(c, oldc);
13974
- d = safeAdd(d, oldd);
13975
- }
13976
-
13977
- return [a, b, c, d];
13978
- }
13979
- /*
13980
- * Convert an array bytes to an array of little-endian words
13981
- * Characters >255 have their high-byte silently ignored.
13982
- */
13983
-
13984
-
13985
- function bytesToWords(input) {
13986
- if (input.length === 0) {
13987
- return [];
13988
- }
13989
-
13990
- var length8 = input.length * 8;
13991
- var output = new Uint32Array(getOutputLength(length8));
13992
-
13993
- for (var i = 0; i < length8; i += 8) {
13994
- output[i >> 5] |= (input[i / 8] & 0xff) << i % 32;
13995
- }
13996
-
13997
- return output;
13998
- }
13999
- /*
14000
- * Add integers, wrapping at 2^32. This uses 16-bit operations internally
14001
- * to work around bugs in some JS interpreters.
14002
- */
14003
-
14004
-
14005
- function safeAdd(x, y) {
14006
- var lsw = (x & 0xffff) + (y & 0xffff);
14007
- var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
14008
- return msw << 16 | lsw & 0xffff;
14009
- }
14010
- /*
14011
- * Bitwise rotate a 32-bit number to the left.
14012
- */
14013
-
14014
-
14015
- function bitRotateLeft(num, cnt) {
14016
- return num << cnt | num >>> 32 - cnt;
14017
- }
14018
- /*
14019
- * These functions implement the four basic operations the algorithm uses.
14020
- */
14021
-
14022
-
14023
- function md5cmn(q, a, b, x, s, t) {
14024
- return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
14025
- }
14026
-
14027
- function md5ff(a, b, c, d, x, s, t) {
14028
- return md5cmn(b & c | ~b & d, a, b, x, s, t);
14029
- }
14030
-
14031
- function md5gg(a, b, c, d, x, s, t) {
14032
- return md5cmn(b & d | c & ~d, a, b, x, s, t);
14033
- }
14034
-
14035
- function md5hh(a, b, c, d, x, s, t) {
14036
- return md5cmn(b ^ c ^ d, a, b, x, s, t);
14037
- }
14038
-
14039
- function md5ii(a, b, c, d, x, s, t) {
14040
- return md5cmn(c ^ (b | ~d), a, b, x, s, t);
14041
- }
14042
-
14043
- /* harmony default export */ __webpack_exports__["default"] = (md5);
14044
-
14045
- /***/ }),
14046
-
14047
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/nil.js":
14048
- /*!***********************************************************!*\
14049
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/nil.js ***!
14050
- \***********************************************************/
14051
- /*! exports provided: default */
14052
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14053
-
14054
- "use strict";
14055
- __webpack_require__.r(__webpack_exports__);
14056
- /* harmony default export */ __webpack_exports__["default"] = ('00000000-0000-0000-0000-000000000000');
14057
-
14058
- /***/ }),
14059
-
14060
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/parse.js":
14061
- /*!*************************************************************!*\
14062
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/parse.js ***!
14063
- \*************************************************************/
14064
- /*! exports provided: default */
14065
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14066
-
14067
- "use strict";
14068
- __webpack_require__.r(__webpack_exports__);
14069
- /* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "../pubsub/node_modules/uuid/dist/esm-browser/validate.js");
14070
-
14071
-
14072
- function parse(uuid) {
14073
- if (!Object(_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
14074
- throw TypeError('Invalid UUID');
14075
- }
14076
-
14077
- var v;
14078
- var arr = new Uint8Array(16); // Parse ########-....-....-....-............
14079
-
14080
- arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
14081
- arr[1] = v >>> 16 & 0xff;
14082
- arr[2] = v >>> 8 & 0xff;
14083
- arr[3] = v & 0xff; // Parse ........-####-....-....-............
14084
-
14085
- arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
14086
- arr[5] = v & 0xff; // Parse ........-....-####-....-............
14087
-
14088
- arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
14089
- arr[7] = v & 0xff; // Parse ........-....-....-####-............
14090
-
14091
- arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
14092
- arr[9] = v & 0xff; // Parse ........-....-....-....-############
14093
- // (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
14094
-
14095
- arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
14096
- arr[11] = v / 0x100000000 & 0xff;
14097
- arr[12] = v >>> 24 & 0xff;
14098
- arr[13] = v >>> 16 & 0xff;
14099
- arr[14] = v >>> 8 & 0xff;
14100
- arr[15] = v & 0xff;
14101
- return arr;
14102
- }
14103
-
14104
- /* harmony default export */ __webpack_exports__["default"] = (parse);
14105
-
14106
- /***/ }),
14107
-
14108
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/regex.js":
14109
- /*!*************************************************************!*\
14110
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/regex.js ***!
14111
- \*************************************************************/
14112
- /*! exports provided: default */
14113
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14114
-
14115
- "use strict";
14116
- __webpack_require__.r(__webpack_exports__);
14117
- /* harmony default export */ __webpack_exports__["default"] = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i);
14118
-
14119
- /***/ }),
14120
-
14121
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/rng.js":
14122
- /*!***********************************************************!*\
14123
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/rng.js ***!
14124
- \***********************************************************/
14125
- /*! exports provided: default */
14126
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14127
-
14128
- "use strict";
14129
- __webpack_require__.r(__webpack_exports__);
14130
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return rng; });
14131
- // Unique ID creation requires a high quality random # generator. In the browser we therefore
14132
- // require the crypto API and do not support built-in fallback to lower quality random number
14133
- // generators (like Math.random()).
14134
- var getRandomValues;
14135
- var rnds8 = new Uint8Array(16);
14136
- function rng() {
14137
- // lazy load so that environments that need to polyfill have a chance to do so
14138
- if (!getRandomValues) {
14139
- // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
14140
- // find the complete implementation of crypto (msCrypto) on IE11.
14141
- getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
14142
-
14143
- if (!getRandomValues) {
14144
- throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
14145
- }
14146
- }
14147
-
14148
- return getRandomValues(rnds8);
14149
- }
14150
-
14151
- /***/ }),
14152
-
14153
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/sha1.js":
14154
- /*!************************************************************!*\
14155
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/sha1.js ***!
14156
- \************************************************************/
14157
- /*! exports provided: default */
14158
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14159
-
14160
- "use strict";
14161
- __webpack_require__.r(__webpack_exports__);
14162
- // Adapted from Chris Veness' SHA1 code at
14163
- // http://www.movable-type.co.uk/scripts/sha1.html
14164
- function f(s, x, y, z) {
14165
- switch (s) {
14166
- case 0:
14167
- return x & y ^ ~x & z;
14168
-
14169
- case 1:
14170
- return x ^ y ^ z;
14171
-
14172
- case 2:
14173
- return x & y ^ x & z ^ y & z;
14174
-
14175
- case 3:
14176
- return x ^ y ^ z;
14177
- }
14178
- }
14179
-
14180
- function ROTL(x, n) {
14181
- return x << n | x >>> 32 - n;
14182
- }
14183
-
14184
- function sha1(bytes) {
14185
- var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
14186
- var H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
14187
-
14188
- if (typeof bytes === 'string') {
14189
- var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
14190
-
14191
- bytes = [];
14192
-
14193
- for (var i = 0; i < msg.length; ++i) {
14194
- bytes.push(msg.charCodeAt(i));
14195
- }
14196
- } else if (!Array.isArray(bytes)) {
14197
- // Convert Array-like to Array
14198
- bytes = Array.prototype.slice.call(bytes);
14199
- }
14200
-
14201
- bytes.push(0x80);
14202
- var l = bytes.length / 4 + 2;
14203
- var N = Math.ceil(l / 16);
14204
- var M = new Array(N);
14205
-
14206
- for (var _i = 0; _i < N; ++_i) {
14207
- var arr = new Uint32Array(16);
14208
-
14209
- for (var j = 0; j < 16; ++j) {
14210
- arr[j] = bytes[_i * 64 + j * 4] << 24 | bytes[_i * 64 + j * 4 + 1] << 16 | bytes[_i * 64 + j * 4 + 2] << 8 | bytes[_i * 64 + j * 4 + 3];
14211
- }
14212
-
14213
- M[_i] = arr;
14214
- }
14215
-
14216
- M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32);
14217
- M[N - 1][14] = Math.floor(M[N - 1][14]);
14218
- M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff;
14219
-
14220
- for (var _i2 = 0; _i2 < N; ++_i2) {
14221
- var W = new Uint32Array(80);
14222
-
14223
- for (var t = 0; t < 16; ++t) {
14224
- W[t] = M[_i2][t];
14225
- }
14226
-
14227
- for (var _t = 16; _t < 80; ++_t) {
14228
- W[_t] = ROTL(W[_t - 3] ^ W[_t - 8] ^ W[_t - 14] ^ W[_t - 16], 1);
14229
- }
14230
-
14231
- var a = H[0];
14232
- var b = H[1];
14233
- var c = H[2];
14234
- var d = H[3];
14235
- var e = H[4];
14236
-
14237
- for (var _t2 = 0; _t2 < 80; ++_t2) {
14238
- var s = Math.floor(_t2 / 20);
14239
- var T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[_t2] >>> 0;
14240
- e = d;
14241
- d = c;
14242
- c = ROTL(b, 30) >>> 0;
14243
- b = a;
14244
- a = T;
14245
- }
14246
-
14247
- H[0] = H[0] + a >>> 0;
14248
- H[1] = H[1] + b >>> 0;
14249
- H[2] = H[2] + c >>> 0;
14250
- H[3] = H[3] + d >>> 0;
14251
- H[4] = H[4] + e >>> 0;
14252
- }
14253
-
14254
- return [H[0] >> 24 & 0xff, H[0] >> 16 & 0xff, H[0] >> 8 & 0xff, H[0] & 0xff, H[1] >> 24 & 0xff, H[1] >> 16 & 0xff, H[1] >> 8 & 0xff, H[1] & 0xff, H[2] >> 24 & 0xff, H[2] >> 16 & 0xff, H[2] >> 8 & 0xff, H[2] & 0xff, H[3] >> 24 & 0xff, H[3] >> 16 & 0xff, H[3] >> 8 & 0xff, H[3] & 0xff, H[4] >> 24 & 0xff, H[4] >> 16 & 0xff, H[4] >> 8 & 0xff, H[4] & 0xff];
14255
- }
14256
-
14257
- /* harmony default export */ __webpack_exports__["default"] = (sha1);
14258
-
14259
- /***/ }),
14260
-
14261
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/stringify.js":
14262
- /*!*****************************************************************!*\
14263
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/stringify.js ***!
14264
- \*****************************************************************/
14265
- /*! exports provided: default */
14266
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14267
-
14268
- "use strict";
14269
- __webpack_require__.r(__webpack_exports__);
14270
- /* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "../pubsub/node_modules/uuid/dist/esm-browser/validate.js");
14271
-
14272
- /**
14273
- * Convert array of 16 byte values to UUID string format of the form:
14274
- * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
14275
- */
14276
-
14277
- var byteToHex = [];
14278
-
14279
- for (var i = 0; i < 256; ++i) {
14280
- byteToHex.push((i + 0x100).toString(16).substr(1));
14281
- }
14282
-
14283
- function stringify(arr) {
14284
- var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
14285
- // Note: Be careful editing this code! It's been tuned for performance
14286
- // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
14287
- var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
14288
- // of the following:
14289
- // - One or more input array values don't map to a hex octet (leading to
14290
- // "undefined" in the uuid)
14291
- // - Invalid input values for the RFC `version` or `variant` fields
14292
-
14293
- if (!Object(_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
14294
- throw TypeError('Stringified UUID is invalid');
14295
- }
14296
-
14297
- return uuid;
14298
- }
14299
-
14300
- /* harmony default export */ __webpack_exports__["default"] = (stringify);
14301
-
14302
- /***/ }),
14303
-
14304
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/v1.js":
14305
- /*!**********************************************************!*\
14306
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/v1.js ***!
14307
- \**********************************************************/
14308
- /*! exports provided: default */
14309
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14310
-
14311
- "use strict";
14312
- __webpack_require__.r(__webpack_exports__);
14313
- /* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rng.js */ "../pubsub/node_modules/uuid/dist/esm-browser/rng.js");
14314
- /* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "../pubsub/node_modules/uuid/dist/esm-browser/stringify.js");
14315
-
14316
- // **`v1()` - Generate time-based UUID**
14317
- //
14318
- // Inspired by https://github.com/LiosK/UUID.js
14319
- // and http://docs.python.org/library/uuid.html
14320
-
14321
- var _nodeId;
14322
-
14323
- var _clockseq; // Previous uuid creation time
14324
-
14325
-
14326
- var _lastMSecs = 0;
14327
- var _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
14328
-
14329
- function v1(options, buf, offset) {
14330
- var i = buf && offset || 0;
14331
- var b = buf || new Array(16);
14332
- options = options || {};
14333
- var node = options.node || _nodeId;
14334
- var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
14335
- // specified. We do this lazily to minimize issues related to insufficient
14336
- // system entropy. See #189
14337
-
14338
- if (node == null || clockseq == null) {
14339
- var seedBytes = options.random || (options.rng || _rng_js__WEBPACK_IMPORTED_MODULE_0__["default"])();
14340
-
14341
- if (node == null) {
14342
- // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
14343
- node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
14344
- }
14345
-
14346
- if (clockseq == null) {
14347
- // Per 4.2.2, randomize (14 bit) clockseq
14348
- clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
14349
- }
14350
- } // UUID timestamps are 100 nano-second units since the Gregorian epoch,
14351
- // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
14352
- // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
14353
- // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
14354
-
14355
-
14356
- var msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
14357
- // cycle to simulate higher resolution clock
14358
-
14359
- var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
14360
-
14361
- var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
14362
-
14363
- if (dt < 0 && options.clockseq === undefined) {
14364
- clockseq = clockseq + 1 & 0x3fff;
14365
- } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
14366
- // time interval
14367
-
14368
-
14369
- if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
14370
- nsecs = 0;
14371
- } // Per 4.2.1.2 Throw error if too many uuids are requested
14372
-
14373
-
14374
- if (nsecs >= 10000) {
14375
- throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
14376
- }
14377
-
14378
- _lastMSecs = msecs;
14379
- _lastNSecs = nsecs;
14380
- _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
14381
-
14382
- msecs += 12219292800000; // `time_low`
14383
-
14384
- var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
14385
- b[i++] = tl >>> 24 & 0xff;
14386
- b[i++] = tl >>> 16 & 0xff;
14387
- b[i++] = tl >>> 8 & 0xff;
14388
- b[i++] = tl & 0xff; // `time_mid`
14389
-
14390
- var tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
14391
- b[i++] = tmh >>> 8 & 0xff;
14392
- b[i++] = tmh & 0xff; // `time_high_and_version`
14393
-
14394
- b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
14395
-
14396
- b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
14397
-
14398
- b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
14399
-
14400
- b[i++] = clockseq & 0xff; // `node`
14401
-
14402
- for (var n = 0; n < 6; ++n) {
14403
- b[i + n] = node[n];
14404
- }
14405
-
14406
- return buf || Object(_stringify_js__WEBPACK_IMPORTED_MODULE_1__["default"])(b);
14407
- }
14408
-
14409
- /* harmony default export */ __webpack_exports__["default"] = (v1);
14410
-
14411
- /***/ }),
14412
-
14413
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/v3.js":
14414
- /*!**********************************************************!*\
14415
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/v3.js ***!
14416
- \**********************************************************/
14417
- /*! exports provided: default */
14418
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14419
-
14420
- "use strict";
14421
- __webpack_require__.r(__webpack_exports__);
14422
- /* harmony import */ var _v35_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v35.js */ "../pubsub/node_modules/uuid/dist/esm-browser/v35.js");
14423
- /* harmony import */ var _md5_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./md5.js */ "../pubsub/node_modules/uuid/dist/esm-browser/md5.js");
14424
-
14425
-
14426
- var v3 = Object(_v35_js__WEBPACK_IMPORTED_MODULE_0__["default"])('v3', 0x30, _md5_js__WEBPACK_IMPORTED_MODULE_1__["default"]);
14427
- /* harmony default export */ __webpack_exports__["default"] = (v3);
14428
-
14429
- /***/ }),
14430
-
14431
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/v35.js":
14432
- /*!***********************************************************!*\
14433
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/v35.js ***!
14434
- \***********************************************************/
14435
- /*! exports provided: DNS, URL, default */
14436
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14437
-
14438
- "use strict";
14439
- __webpack_require__.r(__webpack_exports__);
14440
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DNS", function() { return DNS; });
14441
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "URL", function() { return URL; });
14442
- /* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./stringify.js */ "../pubsub/node_modules/uuid/dist/esm-browser/stringify.js");
14443
- /* harmony import */ var _parse_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./parse.js */ "../pubsub/node_modules/uuid/dist/esm-browser/parse.js");
14444
-
14445
-
14446
-
14447
- function stringToBytes(str) {
14448
- str = unescape(encodeURIComponent(str)); // UTF8 escape
14449
-
14450
- var bytes = [];
14451
-
14452
- for (var i = 0; i < str.length; ++i) {
14453
- bytes.push(str.charCodeAt(i));
14454
- }
14455
-
14456
- return bytes;
14457
- }
14458
-
14459
- var DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
14460
- var URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
14461
- /* harmony default export */ __webpack_exports__["default"] = (function (name, version, hashfunc) {
14462
- function generateUUID(value, namespace, buf, offset) {
14463
- if (typeof value === 'string') {
14464
- value = stringToBytes(value);
14465
- }
14466
-
14467
- if (typeof namespace === 'string') {
14468
- namespace = Object(_parse_js__WEBPACK_IMPORTED_MODULE_1__["default"])(namespace);
14469
- }
14470
-
14471
- if (namespace.length !== 16) {
14472
- throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
14473
- } // Compute hash of namespace and value, Per 4.3
14474
- // Future: Use spread syntax when supported on all platforms, e.g. `bytes =
14475
- // hashfunc([...namespace, ... value])`
14476
-
14477
-
14478
- var bytes = new Uint8Array(16 + value.length);
14479
- bytes.set(namespace);
14480
- bytes.set(value, namespace.length);
14481
- bytes = hashfunc(bytes);
14482
- bytes[6] = bytes[6] & 0x0f | version;
14483
- bytes[8] = bytes[8] & 0x3f | 0x80;
14484
-
14485
- if (buf) {
14486
- offset = offset || 0;
14487
-
14488
- for (var i = 0; i < 16; ++i) {
14489
- buf[offset + i] = bytes[i];
14490
- }
14491
-
14492
- return buf;
14493
- }
14494
-
14495
- return Object(_stringify_js__WEBPACK_IMPORTED_MODULE_0__["default"])(bytes);
14496
- } // Function#name is not settable on some platforms (#270)
14497
-
14498
-
14499
- try {
14500
- generateUUID.name = name; // eslint-disable-next-line no-empty
14501
- } catch (err) {} // For CommonJS default export support
14502
-
14503
-
14504
- generateUUID.DNS = DNS;
14505
- generateUUID.URL = URL;
14506
- return generateUUID;
14507
- });
14508
-
14509
- /***/ }),
14510
-
14511
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/v4.js":
14512
- /*!**********************************************************!*\
14513
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/v4.js ***!
14514
- \**********************************************************/
14515
- /*! exports provided: default */
14516
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14517
-
14518
- "use strict";
14519
- __webpack_require__.r(__webpack_exports__);
14520
- /* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./rng.js */ "../pubsub/node_modules/uuid/dist/esm-browser/rng.js");
14521
- /* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./stringify.js */ "../pubsub/node_modules/uuid/dist/esm-browser/stringify.js");
14522
-
14523
-
14524
-
14525
- function v4(options, buf, offset) {
14526
- options = options || {};
14527
- var rnds = options.random || (options.rng || _rng_js__WEBPACK_IMPORTED_MODULE_0__["default"])(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
14528
-
14529
- rnds[6] = rnds[6] & 0x0f | 0x40;
14530
- rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
14531
-
14532
- if (buf) {
14533
- offset = offset || 0;
14534
-
14535
- for (var i = 0; i < 16; ++i) {
14536
- buf[offset + i] = rnds[i];
14537
- }
14538
-
14539
- return buf;
14540
- }
14541
-
14542
- return Object(_stringify_js__WEBPACK_IMPORTED_MODULE_1__["default"])(rnds);
14543
- }
14544
-
14545
- /* harmony default export */ __webpack_exports__["default"] = (v4);
14546
-
14547
- /***/ }),
14548
-
14549
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/v5.js":
14550
- /*!**********************************************************!*\
14551
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/v5.js ***!
14552
- \**********************************************************/
14553
- /*! exports provided: default */
14554
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14555
-
14556
- "use strict";
14557
- __webpack_require__.r(__webpack_exports__);
14558
- /* harmony import */ var _v35_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./v35.js */ "../pubsub/node_modules/uuid/dist/esm-browser/v35.js");
14559
- /* harmony import */ var _sha1_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./sha1.js */ "../pubsub/node_modules/uuid/dist/esm-browser/sha1.js");
14560
-
14561
-
14562
- var v5 = Object(_v35_js__WEBPACK_IMPORTED_MODULE_0__["default"])('v5', 0x50, _sha1_js__WEBPACK_IMPORTED_MODULE_1__["default"]);
14563
- /* harmony default export */ __webpack_exports__["default"] = (v5);
14564
-
14565
- /***/ }),
14566
-
14567
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/validate.js":
14568
- /*!****************************************************************!*\
14569
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/validate.js ***!
14570
- \****************************************************************/
14571
- /*! exports provided: default */
14572
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14573
-
14574
- "use strict";
14575
- __webpack_require__.r(__webpack_exports__);
14576
- /* harmony import */ var _regex_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./regex.js */ "../pubsub/node_modules/uuid/dist/esm-browser/regex.js");
14577
-
14578
-
14579
- function validate(uuid) {
14580
- return typeof uuid === 'string' && _regex_js__WEBPACK_IMPORTED_MODULE_0__["default"].test(uuid);
14581
- }
14582
-
14583
- /* harmony default export */ __webpack_exports__["default"] = (validate);
14584
-
14585
- /***/ }),
14586
-
14587
- /***/ "../pubsub/node_modules/uuid/dist/esm-browser/version.js":
14588
- /*!***************************************************************!*\
14589
- !*** ../pubsub/node_modules/uuid/dist/esm-browser/version.js ***!
14590
- \***************************************************************/
14591
- /*! exports provided: default */
14592
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
14593
-
14594
- "use strict";
14595
- __webpack_require__.r(__webpack_exports__);
14596
- /* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "../pubsub/node_modules/uuid/dist/esm-browser/validate.js");
14597
-
14598
-
14599
- function version(uuid) {
14600
- if (!Object(_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
14601
- throw TypeError('Invalid UUID');
14602
- }
14603
-
14604
- return parseInt(uuid.substr(14, 1), 16);
14605
- }
14606
-
14607
- /* harmony default export */ __webpack_exports__["default"] = (version);
14608
-
14609
- /***/ }),
14610
-
14611
14035
  /***/ "./lib-esm/GraphQLAPI.js":
14612
14036
  /*!*******************************!*\
14613
14037
  !*** ./lib-esm/GraphQLAPI.js ***!