@aws-amplify/interactions 4.1.4-unstable.1 → 4.1.4-unstable.2
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.
|
@@ -658,12 +658,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
658
658
|
/* harmony import */ var _whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./whatwgEncodingApi */ "../../node_modules/@aws-crypto/sha256-browser/node_modules/@aws-sdk/util-utf8-browser/dist-es/whatwgEncodingApi.js");
|
|
659
659
|
|
|
660
660
|
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
};
|
|
664
|
-
var toUtf8 = function (input) {
|
|
665
|
-
return typeof TextDecoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["toUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["toUtf8"])(input);
|
|
666
|
-
};
|
|
661
|
+
const fromUtf8 = (input) => typeof TextEncoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["fromUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["fromUtf8"])(input);
|
|
662
|
+
const toUtf8 = (input) => typeof TextDecoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["toUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["toUtf8"])(input);
|
|
667
663
|
|
|
668
664
|
|
|
669
665
|
/***/ }),
|
|
@@ -679,44 +675,44 @@ var toUtf8 = function (input) {
|
|
|
679
675
|
__webpack_require__.r(__webpack_exports__);
|
|
680
676
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromUtf8", function() { return fromUtf8; });
|
|
681
677
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toUtf8", function() { return toUtf8; });
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
for (
|
|
685
|
-
|
|
678
|
+
const fromUtf8 = (input) => {
|
|
679
|
+
const bytes = [];
|
|
680
|
+
for (let i = 0, len = input.length; i < len; i++) {
|
|
681
|
+
const value = input.charCodeAt(i);
|
|
686
682
|
if (value < 0x80) {
|
|
687
683
|
bytes.push(value);
|
|
688
684
|
}
|
|
689
685
|
else if (value < 0x800) {
|
|
690
|
-
bytes.push((value >> 6) |
|
|
686
|
+
bytes.push((value >> 6) | 0b11000000, (value & 0b111111) | 0b10000000);
|
|
691
687
|
}
|
|
692
688
|
else if (i + 1 < input.length && (value & 0xfc00) === 0xd800 && (input.charCodeAt(i + 1) & 0xfc00) === 0xdc00) {
|
|
693
|
-
|
|
694
|
-
bytes.push((surrogatePair >> 18) |
|
|
689
|
+
const surrogatePair = 0x10000 + ((value & 0b1111111111) << 10) + (input.charCodeAt(++i) & 0b1111111111);
|
|
690
|
+
bytes.push((surrogatePair >> 18) | 0b11110000, ((surrogatePair >> 12) & 0b111111) | 0b10000000, ((surrogatePair >> 6) & 0b111111) | 0b10000000, (surrogatePair & 0b111111) | 0b10000000);
|
|
695
691
|
}
|
|
696
692
|
else {
|
|
697
|
-
bytes.push((value >> 12) |
|
|
693
|
+
bytes.push((value >> 12) | 0b11100000, ((value >> 6) & 0b111111) | 0b10000000, (value & 0b111111) | 0b10000000);
|
|
698
694
|
}
|
|
699
695
|
}
|
|
700
696
|
return Uint8Array.from(bytes);
|
|
701
697
|
};
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
for (
|
|
705
|
-
|
|
698
|
+
const toUtf8 = (input) => {
|
|
699
|
+
let decoded = "";
|
|
700
|
+
for (let i = 0, len = input.length; i < len; i++) {
|
|
701
|
+
const byte = input[i];
|
|
706
702
|
if (byte < 0x80) {
|
|
707
703
|
decoded += String.fromCharCode(byte);
|
|
708
704
|
}
|
|
709
|
-
else if (
|
|
710
|
-
|
|
711
|
-
decoded += String.fromCharCode(((byte &
|
|
705
|
+
else if (0b11000000 <= byte && byte < 0b11100000) {
|
|
706
|
+
const nextByte = input[++i];
|
|
707
|
+
decoded += String.fromCharCode(((byte & 0b11111) << 6) | (nextByte & 0b111111));
|
|
712
708
|
}
|
|
713
|
-
else if (
|
|
714
|
-
|
|
715
|
-
|
|
709
|
+
else if (0b11110000 <= byte && byte < 0b101101101) {
|
|
710
|
+
const surrogatePair = [byte, input[++i], input[++i], input[++i]];
|
|
711
|
+
const encoded = "%" + surrogatePair.map((byteValue) => byteValue.toString(16)).join("%");
|
|
716
712
|
decoded += decodeURIComponent(encoded);
|
|
717
713
|
}
|
|
718
714
|
else {
|
|
719
|
-
decoded += String.fromCharCode(((byte &
|
|
715
|
+
decoded += String.fromCharCode(((byte & 0b1111) << 12) | ((input[++i] & 0b111111) << 6) | (input[++i] & 0b111111));
|
|
720
716
|
}
|
|
721
717
|
}
|
|
722
718
|
return decoded;
|
|
@@ -1253,12 +1249,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1253
1249
|
/* harmony import */ var _whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./whatwgEncodingApi */ "../../node_modules/@aws-crypto/sha256-js/node_modules/@aws-sdk/util-utf8-browser/dist-es/whatwgEncodingApi.js");
|
|
1254
1250
|
|
|
1255
1251
|
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
};
|
|
1259
|
-
var toUtf8 = function (input) {
|
|
1260
|
-
return typeof TextDecoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["toUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["toUtf8"])(input);
|
|
1261
|
-
};
|
|
1252
|
+
const fromUtf8 = (input) => typeof TextEncoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["fromUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["fromUtf8"])(input);
|
|
1253
|
+
const toUtf8 = (input) => typeof TextDecoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["toUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["toUtf8"])(input);
|
|
1262
1254
|
|
|
1263
1255
|
|
|
1264
1256
|
/***/ }),
|
|
@@ -1274,44 +1266,44 @@ var toUtf8 = function (input) {
|
|
|
1274
1266
|
__webpack_require__.r(__webpack_exports__);
|
|
1275
1267
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromUtf8", function() { return fromUtf8; });
|
|
1276
1268
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toUtf8", function() { return toUtf8; });
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
for (
|
|
1280
|
-
|
|
1269
|
+
const fromUtf8 = (input) => {
|
|
1270
|
+
const bytes = [];
|
|
1271
|
+
for (let i = 0, len = input.length; i < len; i++) {
|
|
1272
|
+
const value = input.charCodeAt(i);
|
|
1281
1273
|
if (value < 0x80) {
|
|
1282
1274
|
bytes.push(value);
|
|
1283
1275
|
}
|
|
1284
1276
|
else if (value < 0x800) {
|
|
1285
|
-
bytes.push((value >> 6) |
|
|
1277
|
+
bytes.push((value >> 6) | 0b11000000, (value & 0b111111) | 0b10000000);
|
|
1286
1278
|
}
|
|
1287
1279
|
else if (i + 1 < input.length && (value & 0xfc00) === 0xd800 && (input.charCodeAt(i + 1) & 0xfc00) === 0xdc00) {
|
|
1288
|
-
|
|
1289
|
-
bytes.push((surrogatePair >> 18) |
|
|
1280
|
+
const surrogatePair = 0x10000 + ((value & 0b1111111111) << 10) + (input.charCodeAt(++i) & 0b1111111111);
|
|
1281
|
+
bytes.push((surrogatePair >> 18) | 0b11110000, ((surrogatePair >> 12) & 0b111111) | 0b10000000, ((surrogatePair >> 6) & 0b111111) | 0b10000000, (surrogatePair & 0b111111) | 0b10000000);
|
|
1290
1282
|
}
|
|
1291
1283
|
else {
|
|
1292
|
-
bytes.push((value >> 12) |
|
|
1284
|
+
bytes.push((value >> 12) | 0b11100000, ((value >> 6) & 0b111111) | 0b10000000, (value & 0b111111) | 0b10000000);
|
|
1293
1285
|
}
|
|
1294
1286
|
}
|
|
1295
1287
|
return Uint8Array.from(bytes);
|
|
1296
1288
|
};
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
for (
|
|
1300
|
-
|
|
1289
|
+
const toUtf8 = (input) => {
|
|
1290
|
+
let decoded = "";
|
|
1291
|
+
for (let i = 0, len = input.length; i < len; i++) {
|
|
1292
|
+
const byte = input[i];
|
|
1301
1293
|
if (byte < 0x80) {
|
|
1302
1294
|
decoded += String.fromCharCode(byte);
|
|
1303
1295
|
}
|
|
1304
|
-
else if (
|
|
1305
|
-
|
|
1306
|
-
decoded += String.fromCharCode(((byte &
|
|
1296
|
+
else if (0b11000000 <= byte && byte < 0b11100000) {
|
|
1297
|
+
const nextByte = input[++i];
|
|
1298
|
+
decoded += String.fromCharCode(((byte & 0b11111) << 6) | (nextByte & 0b111111));
|
|
1307
1299
|
}
|
|
1308
|
-
else if (
|
|
1309
|
-
|
|
1310
|
-
|
|
1300
|
+
else if (0b11110000 <= byte && byte < 0b101101101) {
|
|
1301
|
+
const surrogatePair = [byte, input[++i], input[++i], input[++i]];
|
|
1302
|
+
const encoded = "%" + surrogatePair.map((byteValue) => byteValue.toString(16)).join("%");
|
|
1311
1303
|
decoded += decodeURIComponent(encoded);
|
|
1312
1304
|
}
|
|
1313
1305
|
else {
|
|
1314
|
-
decoded += String.fromCharCode(((byte &
|
|
1306
|
+
decoded += String.fromCharCode(((byte & 0b1111) << 12) | ((input[++i] & 0b111111) << 6) | (input[++i] & 0b111111));
|
|
1315
1307
|
}
|
|
1316
1308
|
}
|
|
1317
1309
|
return decoded;
|
|
@@ -1594,12 +1586,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1594
1586
|
/* harmony import */ var _whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./whatwgEncodingApi */ "../../node_modules/@aws-crypto/util/node_modules/@aws-sdk/util-utf8-browser/dist-es/whatwgEncodingApi.js");
|
|
1595
1587
|
|
|
1596
1588
|
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
};
|
|
1600
|
-
var toUtf8 = function (input) {
|
|
1601
|
-
return typeof TextDecoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["toUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["toUtf8"])(input);
|
|
1602
|
-
};
|
|
1589
|
+
const fromUtf8 = (input) => typeof TextEncoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["fromUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["fromUtf8"])(input);
|
|
1590
|
+
const toUtf8 = (input) => typeof TextDecoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["toUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["toUtf8"])(input);
|
|
1603
1591
|
|
|
1604
1592
|
|
|
1605
1593
|
/***/ }),
|
|
@@ -1615,44 +1603,44 @@ var toUtf8 = function (input) {
|
|
|
1615
1603
|
__webpack_require__.r(__webpack_exports__);
|
|
1616
1604
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromUtf8", function() { return fromUtf8; });
|
|
1617
1605
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toUtf8", function() { return toUtf8; });
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
for (
|
|
1621
|
-
|
|
1606
|
+
const fromUtf8 = (input) => {
|
|
1607
|
+
const bytes = [];
|
|
1608
|
+
for (let i = 0, len = input.length; i < len; i++) {
|
|
1609
|
+
const value = input.charCodeAt(i);
|
|
1622
1610
|
if (value < 0x80) {
|
|
1623
1611
|
bytes.push(value);
|
|
1624
1612
|
}
|
|
1625
1613
|
else if (value < 0x800) {
|
|
1626
|
-
bytes.push((value >> 6) |
|
|
1614
|
+
bytes.push((value >> 6) | 0b11000000, (value & 0b111111) | 0b10000000);
|
|
1627
1615
|
}
|
|
1628
1616
|
else if (i + 1 < input.length && (value & 0xfc00) === 0xd800 && (input.charCodeAt(i + 1) & 0xfc00) === 0xdc00) {
|
|
1629
|
-
|
|
1630
|
-
bytes.push((surrogatePair >> 18) |
|
|
1617
|
+
const surrogatePair = 0x10000 + ((value & 0b1111111111) << 10) + (input.charCodeAt(++i) & 0b1111111111);
|
|
1618
|
+
bytes.push((surrogatePair >> 18) | 0b11110000, ((surrogatePair >> 12) & 0b111111) | 0b10000000, ((surrogatePair >> 6) & 0b111111) | 0b10000000, (surrogatePair & 0b111111) | 0b10000000);
|
|
1631
1619
|
}
|
|
1632
1620
|
else {
|
|
1633
|
-
bytes.push((value >> 12) |
|
|
1621
|
+
bytes.push((value >> 12) | 0b11100000, ((value >> 6) & 0b111111) | 0b10000000, (value & 0b111111) | 0b10000000);
|
|
1634
1622
|
}
|
|
1635
1623
|
}
|
|
1636
1624
|
return Uint8Array.from(bytes);
|
|
1637
1625
|
};
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
for (
|
|
1641
|
-
|
|
1626
|
+
const toUtf8 = (input) => {
|
|
1627
|
+
let decoded = "";
|
|
1628
|
+
for (let i = 0, len = input.length; i < len; i++) {
|
|
1629
|
+
const byte = input[i];
|
|
1642
1630
|
if (byte < 0x80) {
|
|
1643
1631
|
decoded += String.fromCharCode(byte);
|
|
1644
1632
|
}
|
|
1645
|
-
else if (
|
|
1646
|
-
|
|
1647
|
-
decoded += String.fromCharCode(((byte &
|
|
1633
|
+
else if (0b11000000 <= byte && byte < 0b11100000) {
|
|
1634
|
+
const nextByte = input[++i];
|
|
1635
|
+
decoded += String.fromCharCode(((byte & 0b11111) << 6) | (nextByte & 0b111111));
|
|
1648
1636
|
}
|
|
1649
|
-
else if (
|
|
1650
|
-
|
|
1651
|
-
|
|
1637
|
+
else if (0b11110000 <= byte && byte < 0b101101101) {
|
|
1638
|
+
const surrogatePair = [byte, input[++i], input[++i], input[++i]];
|
|
1639
|
+
const encoded = "%" + surrogatePair.map((byteValue) => byteValue.toString(16)).join("%");
|
|
1652
1640
|
decoded += decodeURIComponent(encoded);
|
|
1653
1641
|
}
|
|
1654
1642
|
else {
|
|
1655
|
-
decoded += String.fromCharCode(((byte &
|
|
1643
|
+
decoded += String.fromCharCode(((byte & 0b1111) << 12) | ((input[++i] & 0b111111) << 6) | (input[++i] & 0b111111));
|
|
1656
1644
|
}
|
|
1657
1645
|
}
|
|
1658
1646
|
return decoded;
|
|
@@ -8584,7 +8572,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8584
8572
|
exports.Sha256 = void 0;
|
|
8585
8573
|
var isEmptyData_1 = __webpack_require__(/*! ./isEmptyData */ "../../node_modules/@aws-sdk/client-lex-runtime-v2/node_modules/@aws-crypto/sha256-browser/build/isEmptyData.js");
|
|
8586
8574
|
var constants_1 = __webpack_require__(/*! ./constants */ "../../node_modules/@aws-sdk/client-lex-runtime-v2/node_modules/@aws-crypto/sha256-browser/build/constants.js");
|
|
8587
|
-
var util_utf8_browser_1 = __webpack_require__(/*! @aws-sdk/util-utf8-browser */ "../../node_modules/@aws-sdk/client-lex-runtime-v2/node_modules/@aws-sdk/util-utf8-browser/dist-es/index.js");
|
|
8575
|
+
var util_utf8_browser_1 = __webpack_require__(/*! @aws-sdk/util-utf8-browser */ "../../node_modules/@aws-sdk/client-lex-runtime-v2/node_modules/@aws-crypto/sha256-browser/node_modules/@aws-sdk/util-utf8-browser/dist-es/index.js");
|
|
8588
8576
|
var util_locate_window_1 = __webpack_require__(/*! @aws-sdk/util-locate-window */ "../../node_modules/@aws-sdk/util-locate-window/dist-es/index.js");
|
|
8589
8577
|
var Sha256 = /** @class */ (function () {
|
|
8590
8578
|
function Sha256(secret) {
|
|
@@ -9111,6 +9099,105 @@ function bufferFromSecret(secret) {
|
|
|
9111
9099
|
}
|
|
9112
9100
|
//# sourceMappingURL=jsSha256.js.map
|
|
9113
9101
|
|
|
9102
|
+
/***/ }),
|
|
9103
|
+
|
|
9104
|
+
/***/ "../../node_modules/@aws-sdk/client-lex-runtime-v2/node_modules/@aws-crypto/sha256-browser/node_modules/@aws-sdk/util-utf8-browser/dist-es/index.js":
|
|
9105
|
+
/*!*********************************************************************************************************************************************************************!*\
|
|
9106
|
+
!*** /root/amplify-js/node_modules/@aws-sdk/client-lex-runtime-v2/node_modules/@aws-crypto/sha256-browser/node_modules/@aws-sdk/util-utf8-browser/dist-es/index.js ***!
|
|
9107
|
+
\*********************************************************************************************************************************************************************/
|
|
9108
|
+
/*! exports provided: fromUtf8, toUtf8 */
|
|
9109
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9110
|
+
|
|
9111
|
+
"use strict";
|
|
9112
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9113
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromUtf8", function() { return fromUtf8; });
|
|
9114
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toUtf8", function() { return toUtf8; });
|
|
9115
|
+
/* harmony import */ var _pureJs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pureJs */ "../../node_modules/@aws-sdk/client-lex-runtime-v2/node_modules/@aws-crypto/sha256-browser/node_modules/@aws-sdk/util-utf8-browser/dist-es/pureJs.js");
|
|
9116
|
+
/* harmony import */ var _whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./whatwgEncodingApi */ "../../node_modules/@aws-sdk/client-lex-runtime-v2/node_modules/@aws-crypto/sha256-browser/node_modules/@aws-sdk/util-utf8-browser/dist-es/whatwgEncodingApi.js");
|
|
9117
|
+
|
|
9118
|
+
|
|
9119
|
+
const fromUtf8 = (input) => typeof TextEncoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["fromUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["fromUtf8"])(input);
|
|
9120
|
+
const toUtf8 = (input) => typeof TextDecoder === "function" ? Object(_whatwgEncodingApi__WEBPACK_IMPORTED_MODULE_1__["toUtf8"])(input) : Object(_pureJs__WEBPACK_IMPORTED_MODULE_0__["toUtf8"])(input);
|
|
9121
|
+
|
|
9122
|
+
|
|
9123
|
+
/***/ }),
|
|
9124
|
+
|
|
9125
|
+
/***/ "../../node_modules/@aws-sdk/client-lex-runtime-v2/node_modules/@aws-crypto/sha256-browser/node_modules/@aws-sdk/util-utf8-browser/dist-es/pureJs.js":
|
|
9126
|
+
/*!**********************************************************************************************************************************************************************!*\
|
|
9127
|
+
!*** /root/amplify-js/node_modules/@aws-sdk/client-lex-runtime-v2/node_modules/@aws-crypto/sha256-browser/node_modules/@aws-sdk/util-utf8-browser/dist-es/pureJs.js ***!
|
|
9128
|
+
\**********************************************************************************************************************************************************************/
|
|
9129
|
+
/*! exports provided: fromUtf8, toUtf8 */
|
|
9130
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9131
|
+
|
|
9132
|
+
"use strict";
|
|
9133
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9134
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromUtf8", function() { return fromUtf8; });
|
|
9135
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toUtf8", function() { return toUtf8; });
|
|
9136
|
+
const fromUtf8 = (input) => {
|
|
9137
|
+
const bytes = [];
|
|
9138
|
+
for (let i = 0, len = input.length; i < len; i++) {
|
|
9139
|
+
const value = input.charCodeAt(i);
|
|
9140
|
+
if (value < 0x80) {
|
|
9141
|
+
bytes.push(value);
|
|
9142
|
+
}
|
|
9143
|
+
else if (value < 0x800) {
|
|
9144
|
+
bytes.push((value >> 6) | 0b11000000, (value & 0b111111) | 0b10000000);
|
|
9145
|
+
}
|
|
9146
|
+
else if (i + 1 < input.length && (value & 0xfc00) === 0xd800 && (input.charCodeAt(i + 1) & 0xfc00) === 0xdc00) {
|
|
9147
|
+
const surrogatePair = 0x10000 + ((value & 0b1111111111) << 10) + (input.charCodeAt(++i) & 0b1111111111);
|
|
9148
|
+
bytes.push((surrogatePair >> 18) | 0b11110000, ((surrogatePair >> 12) & 0b111111) | 0b10000000, ((surrogatePair >> 6) & 0b111111) | 0b10000000, (surrogatePair & 0b111111) | 0b10000000);
|
|
9149
|
+
}
|
|
9150
|
+
else {
|
|
9151
|
+
bytes.push((value >> 12) | 0b11100000, ((value >> 6) & 0b111111) | 0b10000000, (value & 0b111111) | 0b10000000);
|
|
9152
|
+
}
|
|
9153
|
+
}
|
|
9154
|
+
return Uint8Array.from(bytes);
|
|
9155
|
+
};
|
|
9156
|
+
const toUtf8 = (input) => {
|
|
9157
|
+
let decoded = "";
|
|
9158
|
+
for (let i = 0, len = input.length; i < len; i++) {
|
|
9159
|
+
const byte = input[i];
|
|
9160
|
+
if (byte < 0x80) {
|
|
9161
|
+
decoded += String.fromCharCode(byte);
|
|
9162
|
+
}
|
|
9163
|
+
else if (0b11000000 <= byte && byte < 0b11100000) {
|
|
9164
|
+
const nextByte = input[++i];
|
|
9165
|
+
decoded += String.fromCharCode(((byte & 0b11111) << 6) | (nextByte & 0b111111));
|
|
9166
|
+
}
|
|
9167
|
+
else if (0b11110000 <= byte && byte < 0b101101101) {
|
|
9168
|
+
const surrogatePair = [byte, input[++i], input[++i], input[++i]];
|
|
9169
|
+
const encoded = "%" + surrogatePair.map((byteValue) => byteValue.toString(16)).join("%");
|
|
9170
|
+
decoded += decodeURIComponent(encoded);
|
|
9171
|
+
}
|
|
9172
|
+
else {
|
|
9173
|
+
decoded += String.fromCharCode(((byte & 0b1111) << 12) | ((input[++i] & 0b111111) << 6) | (input[++i] & 0b111111));
|
|
9174
|
+
}
|
|
9175
|
+
}
|
|
9176
|
+
return decoded;
|
|
9177
|
+
};
|
|
9178
|
+
|
|
9179
|
+
|
|
9180
|
+
/***/ }),
|
|
9181
|
+
|
|
9182
|
+
/***/ "../../node_modules/@aws-sdk/client-lex-runtime-v2/node_modules/@aws-crypto/sha256-browser/node_modules/@aws-sdk/util-utf8-browser/dist-es/whatwgEncodingApi.js":
|
|
9183
|
+
/*!*********************************************************************************************************************************************************************************!*\
|
|
9184
|
+
!*** /root/amplify-js/node_modules/@aws-sdk/client-lex-runtime-v2/node_modules/@aws-crypto/sha256-browser/node_modules/@aws-sdk/util-utf8-browser/dist-es/whatwgEncodingApi.js ***!
|
|
9185
|
+
\*********************************************************************************************************************************************************************************/
|
|
9186
|
+
/*! exports provided: fromUtf8, toUtf8 */
|
|
9187
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9188
|
+
|
|
9189
|
+
"use strict";
|
|
9190
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9191
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromUtf8", function() { return fromUtf8; });
|
|
9192
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toUtf8", function() { return toUtf8; });
|
|
9193
|
+
function fromUtf8(input) {
|
|
9194
|
+
return new TextEncoder().encode(input);
|
|
9195
|
+
}
|
|
9196
|
+
function toUtf8(input) {
|
|
9197
|
+
return new TextDecoder("utf-8").decode(input);
|
|
9198
|
+
}
|
|
9199
|
+
|
|
9200
|
+
|
|
9114
9201
|
/***/ }),
|
|
9115
9202
|
|
|
9116
9203
|
/***/ "../../node_modules/@aws-sdk/client-lex-runtime-v2/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.es6.js":
|
|
@@ -24012,7 +24099,7 @@ function __classPrivateFieldIn(state, receiver) {
|
|
|
24012
24099
|
"use strict";
|
|
24013
24100
|
__webpack_require__.r(__webpack_exports__);
|
|
24014
24101
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "locateWindow", function() { return locateWindow; });
|
|
24015
|
-
|
|
24102
|
+
const fallbackWindow = {};
|
|
24016
24103
|
function locateWindow() {
|
|
24017
24104
|
if (typeof window !== "undefined") {
|
|
24018
24105
|
return window;
|