@signetai/connector-base 0.228.5 → 0.228.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-dir.js +3470 -3494
- package/dist/index.js +3486 -3510
- package/dist/lenient-json.js +213 -213
- package/package.json +2 -2
package/dist/lenient-json.js
CHANGED
|
@@ -17,7 +17,7 @@ var __toESM = (mod, isNodeMode, target) => {
|
|
|
17
17
|
return cached;
|
|
18
18
|
}
|
|
19
19
|
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
20
|
-
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
20
|
+
const to = isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
21
21
|
if (mod && typeof mod === "object" || typeof mod === "function") {
|
|
22
22
|
for (let key of __getOwnPropNames(mod))
|
|
23
23
|
if (!__hasOwnProp.call(to, key))
|
|
@@ -97,12 +97,12 @@ var require_parse = __commonJS(function(exports, module) {
|
|
|
97
97
|
if (value != null && typeof value === "object") {
|
|
98
98
|
if (Array.isArray(value)) {
|
|
99
99
|
for (let i = 0;i < value.length; i++) {
|
|
100
|
-
const
|
|
101
|
-
const replacement = internalize(value,
|
|
100
|
+
const key = String(i);
|
|
101
|
+
const replacement = internalize(value, key, reviver);
|
|
102
102
|
if (replacement === undefined) {
|
|
103
|
-
delete value[
|
|
103
|
+
delete value[key];
|
|
104
104
|
} else {
|
|
105
|
-
Object.defineProperty(value,
|
|
105
|
+
Object.defineProperty(value, key, {
|
|
106
106
|
value: replacement,
|
|
107
107
|
writable: true,
|
|
108
108
|
enumerable: true,
|
|
@@ -111,12 +111,12 @@ var require_parse = __commonJS(function(exports, module) {
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
} else {
|
|
114
|
-
for (const
|
|
115
|
-
const replacement = internalize(value,
|
|
114
|
+
for (const key in value) {
|
|
115
|
+
const replacement = internalize(value, key, reviver);
|
|
116
116
|
if (replacement === undefined) {
|
|
117
|
-
delete value[
|
|
117
|
+
delete value[key];
|
|
118
118
|
} else {
|
|
119
|
-
Object.defineProperty(value,
|
|
119
|
+
Object.defineProperty(value, key, {
|
|
120
120
|
value: replacement,
|
|
121
121
|
writable: true,
|
|
122
122
|
enumerable: true,
|
|
@@ -140,9 +140,9 @@ var require_parse = __commonJS(function(exports, module) {
|
|
|
140
140
|
sign = 1;
|
|
141
141
|
for (;; ) {
|
|
142
142
|
c = peek();
|
|
143
|
-
const
|
|
144
|
-
if (
|
|
145
|
-
return
|
|
143
|
+
const token = lexStates[lexState]();
|
|
144
|
+
if (token) {
|
|
145
|
+
return token;
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
}
|
|
@@ -152,20 +152,20 @@ var require_parse = __commonJS(function(exports, module) {
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
function read() {
|
|
155
|
-
const
|
|
156
|
-
if (
|
|
155
|
+
const c = peek();
|
|
156
|
+
if (c === `
|
|
157
157
|
`) {
|
|
158
158
|
line++;
|
|
159
159
|
column = 0;
|
|
160
|
-
} else if (
|
|
161
|
-
column +=
|
|
160
|
+
} else if (c) {
|
|
161
|
+
column += c.length;
|
|
162
162
|
} else {
|
|
163
163
|
column++;
|
|
164
164
|
}
|
|
165
|
-
if (
|
|
166
|
-
pos +=
|
|
165
|
+
if (c) {
|
|
166
|
+
pos += c.length;
|
|
167
167
|
}
|
|
168
|
-
return
|
|
168
|
+
return c;
|
|
169
169
|
}
|
|
170
170
|
var lexStates = {
|
|
171
171
|
default() {
|
|
@@ -635,17 +635,17 @@ var require_parse = __commonJS(function(exports, module) {
|
|
|
635
635
|
};
|
|
636
636
|
}
|
|
637
637
|
function literal(s) {
|
|
638
|
-
for (const
|
|
638
|
+
for (const c of s) {
|
|
639
639
|
const p = peek();
|
|
640
|
-
if (p !==
|
|
640
|
+
if (p !== c) {
|
|
641
641
|
throw invalidChar(read());
|
|
642
642
|
}
|
|
643
643
|
read();
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
646
|
function escape() {
|
|
647
|
-
const
|
|
648
|
-
switch (
|
|
647
|
+
const c = peek();
|
|
648
|
+
switch (c) {
|
|
649
649
|
case "b":
|
|
650
650
|
read();
|
|
651
651
|
return "\b";
|
|
@@ -706,30 +706,30 @@ var require_parse = __commonJS(function(exports, module) {
|
|
|
706
706
|
return read();
|
|
707
707
|
}
|
|
708
708
|
function hexEscape() {
|
|
709
|
-
let
|
|
710
|
-
let
|
|
711
|
-
if (!util.isHexDigit(
|
|
709
|
+
let buffer = "";
|
|
710
|
+
let c = peek();
|
|
711
|
+
if (!util.isHexDigit(c)) {
|
|
712
712
|
throw invalidChar(read());
|
|
713
713
|
}
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
if (!util.isHexDigit(
|
|
714
|
+
buffer += read();
|
|
715
|
+
c = peek();
|
|
716
|
+
if (!util.isHexDigit(c)) {
|
|
717
717
|
throw invalidChar(read());
|
|
718
718
|
}
|
|
719
|
-
|
|
720
|
-
return String.fromCodePoint(parseInt(
|
|
719
|
+
buffer += read();
|
|
720
|
+
return String.fromCodePoint(parseInt(buffer, 16));
|
|
721
721
|
}
|
|
722
722
|
function unicodeEscape() {
|
|
723
|
-
let
|
|
723
|
+
let buffer = "";
|
|
724
724
|
let count = 4;
|
|
725
725
|
while (count-- > 0) {
|
|
726
|
-
const
|
|
727
|
-
if (!util.isHexDigit(
|
|
726
|
+
const c = peek();
|
|
727
|
+
if (!util.isHexDigit(c)) {
|
|
728
728
|
throw invalidChar(read());
|
|
729
729
|
}
|
|
730
|
-
|
|
730
|
+
buffer += read();
|
|
731
731
|
}
|
|
732
|
-
return String.fromCodePoint(parseInt(
|
|
732
|
+
return String.fromCodePoint(parseInt(buffer, 16));
|
|
733
733
|
}
|
|
734
734
|
var parseStates = {
|
|
735
735
|
start() {
|
|
@@ -864,11 +864,11 @@ var require_parse = __commonJS(function(exports, module) {
|
|
|
864
864
|
parseState = "afterPropertyValue";
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
|
-
function invalidChar(
|
|
868
|
-
if (
|
|
867
|
+
function invalidChar(c) {
|
|
868
|
+
if (c === undefined) {
|
|
869
869
|
return syntaxError(`JSON5: invalid end of input at ${line}:${column}`);
|
|
870
870
|
}
|
|
871
|
-
return syntaxError(`JSON5: invalid character '${formatChar(
|
|
871
|
+
return syntaxError(`JSON5: invalid character '${formatChar(c)}' at ${line}:${column}`);
|
|
872
872
|
}
|
|
873
873
|
function invalidEOF() {
|
|
874
874
|
return syntaxError(`JSON5: invalid end of input at ${line}:${column}`);
|
|
@@ -877,10 +877,10 @@ var require_parse = __commonJS(function(exports, module) {
|
|
|
877
877
|
column -= 5;
|
|
878
878
|
return syntaxError(`JSON5: invalid identifier character at ${line}:${column}`);
|
|
879
879
|
}
|
|
880
|
-
function separatorChar(
|
|
881
|
-
console.warn(`JSON5: '${formatChar(
|
|
880
|
+
function separatorChar(c) {
|
|
881
|
+
console.warn(`JSON5: '${formatChar(c)}' in strings is not valid ECMAScript; consider escaping`);
|
|
882
882
|
}
|
|
883
|
-
function formatChar(
|
|
883
|
+
function formatChar(c) {
|
|
884
884
|
const replacements = {
|
|
885
885
|
"'": "\\'",
|
|
886
886
|
'"': "\\\"",
|
|
@@ -895,14 +895,14 @@ var require_parse = __commonJS(function(exports, module) {
|
|
|
895
895
|
"\u2028": "\\u2028",
|
|
896
896
|
"\u2029": "\\u2029"
|
|
897
897
|
};
|
|
898
|
-
if (replacements[
|
|
899
|
-
return replacements[
|
|
898
|
+
if (replacements[c]) {
|
|
899
|
+
return replacements[c];
|
|
900
900
|
}
|
|
901
|
-
if (
|
|
902
|
-
const hexString =
|
|
901
|
+
if (c < " ") {
|
|
902
|
+
const hexString = c.charCodeAt(0).toString(16);
|
|
903
903
|
return "\\x" + ("00" + hexString).substring(hexString.length);
|
|
904
904
|
}
|
|
905
|
-
return
|
|
905
|
+
return c;
|
|
906
906
|
}
|
|
907
907
|
function syntaxError(message) {
|
|
908
908
|
const err = new SyntaxError(message);
|
|
@@ -958,25 +958,25 @@ var require_stringify = __commonJS(function(exports, module) {
|
|
|
958
958
|
}
|
|
959
959
|
return serializeProperty("", { "": value });
|
|
960
960
|
function serializeProperty(key, holder) {
|
|
961
|
-
let
|
|
962
|
-
if (
|
|
963
|
-
if (typeof
|
|
964
|
-
|
|
965
|
-
} else if (typeof
|
|
966
|
-
|
|
961
|
+
let value = holder[key];
|
|
962
|
+
if (value != null) {
|
|
963
|
+
if (typeof value.toJSON5 === "function") {
|
|
964
|
+
value = value.toJSON5(key);
|
|
965
|
+
} else if (typeof value.toJSON === "function") {
|
|
966
|
+
value = value.toJSON(key);
|
|
967
967
|
}
|
|
968
968
|
}
|
|
969
969
|
if (replacerFunc) {
|
|
970
|
-
|
|
970
|
+
value = replacerFunc.call(holder, key, value);
|
|
971
971
|
}
|
|
972
|
-
if (
|
|
973
|
-
|
|
974
|
-
} else if (
|
|
975
|
-
|
|
976
|
-
} else if (
|
|
977
|
-
|
|
972
|
+
if (value instanceof Number) {
|
|
973
|
+
value = Number(value);
|
|
974
|
+
} else if (value instanceof String) {
|
|
975
|
+
value = String(value);
|
|
976
|
+
} else if (value instanceof Boolean) {
|
|
977
|
+
value = value.valueOf();
|
|
978
978
|
}
|
|
979
|
-
switch (
|
|
979
|
+
switch (value) {
|
|
980
980
|
case null:
|
|
981
981
|
return "null";
|
|
982
982
|
case true:
|
|
@@ -984,18 +984,18 @@ var require_stringify = __commonJS(function(exports, module) {
|
|
|
984
984
|
case false:
|
|
985
985
|
return "false";
|
|
986
986
|
}
|
|
987
|
-
if (typeof
|
|
988
|
-
return quoteString(
|
|
987
|
+
if (typeof value === "string") {
|
|
988
|
+
return quoteString(value, false);
|
|
989
989
|
}
|
|
990
|
-
if (typeof
|
|
991
|
-
return String(
|
|
990
|
+
if (typeof value === "number") {
|
|
991
|
+
return String(value);
|
|
992
992
|
}
|
|
993
|
-
if (typeof
|
|
994
|
-
return Array.isArray(
|
|
993
|
+
if (typeof value === "object") {
|
|
994
|
+
return Array.isArray(value) ? serializeArray(value) : serializeObject(value);
|
|
995
995
|
}
|
|
996
996
|
return;
|
|
997
997
|
}
|
|
998
|
-
function quoteString(
|
|
998
|
+
function quoteString(value) {
|
|
999
999
|
const quotes = {
|
|
1000
1000
|
"'": 0.1,
|
|
1001
1001
|
'"': 0.2
|
|
@@ -1015,8 +1015,8 @@ var require_stringify = __commonJS(function(exports, module) {
|
|
|
1015
1015
|
"\u2029": "\\u2029"
|
|
1016
1016
|
};
|
|
1017
1017
|
let product = "";
|
|
1018
|
-
for (let i = 0;i <
|
|
1019
|
-
const c =
|
|
1018
|
+
for (let i = 0;i < value.length; i++) {
|
|
1019
|
+
const c = value[i];
|
|
1020
1020
|
switch (c) {
|
|
1021
1021
|
case "'":
|
|
1022
1022
|
case '"':
|
|
@@ -1024,7 +1024,7 @@ var require_stringify = __commonJS(function(exports, module) {
|
|
|
1024
1024
|
product += c;
|
|
1025
1025
|
continue;
|
|
1026
1026
|
case "\x00":
|
|
1027
|
-
if (util.isDigit(
|
|
1027
|
+
if (util.isDigit(value[i + 1])) {
|
|
1028
1028
|
product += "\\x00";
|
|
1029
1029
|
continue;
|
|
1030
1030
|
}
|
|
@@ -1044,17 +1044,17 @@ var require_stringify = __commonJS(function(exports, module) {
|
|
|
1044
1044
|
product = product.replace(new RegExp(quoteChar, "g"), replacements[quoteChar]);
|
|
1045
1045
|
return quoteChar + product + quoteChar;
|
|
1046
1046
|
}
|
|
1047
|
-
function serializeObject(
|
|
1048
|
-
if (stack.indexOf(
|
|
1047
|
+
function serializeObject(value) {
|
|
1048
|
+
if (stack.indexOf(value) >= 0) {
|
|
1049
1049
|
throw TypeError("Converting circular structure to JSON5");
|
|
1050
1050
|
}
|
|
1051
|
-
stack.push(
|
|
1051
|
+
stack.push(value);
|
|
1052
1052
|
let stepback = indent;
|
|
1053
1053
|
indent = indent + gap;
|
|
1054
|
-
let keys = propertyList || Object.keys(
|
|
1054
|
+
let keys = propertyList || Object.keys(value);
|
|
1055
1055
|
let partial = [];
|
|
1056
1056
|
for (const key of keys) {
|
|
1057
|
-
const propertyString = serializeProperty(key,
|
|
1057
|
+
const propertyString = serializeProperty(key, value);
|
|
1058
1058
|
if (propertyString !== undefined) {
|
|
1059
1059
|
let member = serializeKey(key) + ":";
|
|
1060
1060
|
if (gap !== "") {
|
|
@@ -1100,16 +1100,16 @@ var require_stringify = __commonJS(function(exports, module) {
|
|
|
1100
1100
|
}
|
|
1101
1101
|
return key;
|
|
1102
1102
|
}
|
|
1103
|
-
function serializeArray(
|
|
1104
|
-
if (stack.indexOf(
|
|
1103
|
+
function serializeArray(value) {
|
|
1104
|
+
if (stack.indexOf(value) >= 0) {
|
|
1105
1105
|
throw TypeError("Converting circular structure to JSON5");
|
|
1106
1106
|
}
|
|
1107
|
-
stack.push(
|
|
1107
|
+
stack.push(value);
|
|
1108
1108
|
let stepback = indent;
|
|
1109
1109
|
indent = indent + gap;
|
|
1110
1110
|
let partial = [];
|
|
1111
|
-
for (let i = 0;i <
|
|
1112
|
-
const propertyString = serializeProperty(String(i),
|
|
1111
|
+
for (let i = 0;i < value.length; i++) {
|
|
1112
|
+
const propertyString = serializeProperty(String(i), value);
|
|
1113
1113
|
partial.push(propertyString !== undefined ? propertyString : "null");
|
|
1114
1114
|
}
|
|
1115
1115
|
let final;
|
|
@@ -1155,15 +1155,15 @@ function createScanner(text, ignoreTrivia = false) {
|
|
|
1155
1155
|
let pos = 0, value = "", tokenOffset = 0, token = 16, lineNumber = 0, lineStartOffset = 0, tokenLineStartOffset = 0, prevTokenLineStartOffset = 0, scanError = 0;
|
|
1156
1156
|
function scanHexDigits(count, exact) {
|
|
1157
1157
|
let digits = 0;
|
|
1158
|
-
let
|
|
1158
|
+
let value = 0;
|
|
1159
1159
|
while (digits < count || !exact) {
|
|
1160
1160
|
let ch = text.charCodeAt(pos);
|
|
1161
1161
|
if (ch >= 48 && ch <= 57) {
|
|
1162
|
-
|
|
1162
|
+
value = value * 16 + ch - 48;
|
|
1163
1163
|
} else if (ch >= 65 && ch <= 70) {
|
|
1164
|
-
|
|
1164
|
+
value = value * 16 + ch - 65 + 10;
|
|
1165
1165
|
} else if (ch >= 97 && ch <= 102) {
|
|
1166
|
-
|
|
1166
|
+
value = value * 16 + ch - 97 + 10;
|
|
1167
1167
|
} else {
|
|
1168
1168
|
break;
|
|
1169
1169
|
}
|
|
@@ -1171,9 +1171,9 @@ function createScanner(text, ignoreTrivia = false) {
|
|
|
1171
1171
|
digits++;
|
|
1172
1172
|
}
|
|
1173
1173
|
if (digits < count) {
|
|
1174
|
-
|
|
1174
|
+
value = -1;
|
|
1175
1175
|
}
|
|
1176
|
-
return
|
|
1176
|
+
return value;
|
|
1177
1177
|
}
|
|
1178
1178
|
function setPosition(newPosition) {
|
|
1179
1179
|
pos = newPosition;
|
|
@@ -1481,87 +1481,87 @@ function isDigit(ch) {
|
|
|
1481
1481
|
return ch >= 48 && ch <= 57;
|
|
1482
1482
|
}
|
|
1483
1483
|
var CharacterCodes;
|
|
1484
|
-
(function(
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1484
|
+
(function(CharacterCodes) {
|
|
1485
|
+
CharacterCodes[CharacterCodes["lineFeed"] = 10] = "lineFeed";
|
|
1486
|
+
CharacterCodes[CharacterCodes["carriageReturn"] = 13] = "carriageReturn";
|
|
1487
|
+
CharacterCodes[CharacterCodes["space"] = 32] = "space";
|
|
1488
|
+
CharacterCodes[CharacterCodes["_0"] = 48] = "_0";
|
|
1489
|
+
CharacterCodes[CharacterCodes["_1"] = 49] = "_1";
|
|
1490
|
+
CharacterCodes[CharacterCodes["_2"] = 50] = "_2";
|
|
1491
|
+
CharacterCodes[CharacterCodes["_3"] = 51] = "_3";
|
|
1492
|
+
CharacterCodes[CharacterCodes["_4"] = 52] = "_4";
|
|
1493
|
+
CharacterCodes[CharacterCodes["_5"] = 53] = "_5";
|
|
1494
|
+
CharacterCodes[CharacterCodes["_6"] = 54] = "_6";
|
|
1495
|
+
CharacterCodes[CharacterCodes["_7"] = 55] = "_7";
|
|
1496
|
+
CharacterCodes[CharacterCodes["_8"] = 56] = "_8";
|
|
1497
|
+
CharacterCodes[CharacterCodes["_9"] = 57] = "_9";
|
|
1498
|
+
CharacterCodes[CharacterCodes["a"] = 97] = "a";
|
|
1499
|
+
CharacterCodes[CharacterCodes["b"] = 98] = "b";
|
|
1500
|
+
CharacterCodes[CharacterCodes["c"] = 99] = "c";
|
|
1501
|
+
CharacterCodes[CharacterCodes["d"] = 100] = "d";
|
|
1502
|
+
CharacterCodes[CharacterCodes["e"] = 101] = "e";
|
|
1503
|
+
CharacterCodes[CharacterCodes["f"] = 102] = "f";
|
|
1504
|
+
CharacterCodes[CharacterCodes["g"] = 103] = "g";
|
|
1505
|
+
CharacterCodes[CharacterCodes["h"] = 104] = "h";
|
|
1506
|
+
CharacterCodes[CharacterCodes["i"] = 105] = "i";
|
|
1507
|
+
CharacterCodes[CharacterCodes["j"] = 106] = "j";
|
|
1508
|
+
CharacterCodes[CharacterCodes["k"] = 107] = "k";
|
|
1509
|
+
CharacterCodes[CharacterCodes["l"] = 108] = "l";
|
|
1510
|
+
CharacterCodes[CharacterCodes["m"] = 109] = "m";
|
|
1511
|
+
CharacterCodes[CharacterCodes["n"] = 110] = "n";
|
|
1512
|
+
CharacterCodes[CharacterCodes["o"] = 111] = "o";
|
|
1513
|
+
CharacterCodes[CharacterCodes["p"] = 112] = "p";
|
|
1514
|
+
CharacterCodes[CharacterCodes["q"] = 113] = "q";
|
|
1515
|
+
CharacterCodes[CharacterCodes["r"] = 114] = "r";
|
|
1516
|
+
CharacterCodes[CharacterCodes["s"] = 115] = "s";
|
|
1517
|
+
CharacterCodes[CharacterCodes["t"] = 116] = "t";
|
|
1518
|
+
CharacterCodes[CharacterCodes["u"] = 117] = "u";
|
|
1519
|
+
CharacterCodes[CharacterCodes["v"] = 118] = "v";
|
|
1520
|
+
CharacterCodes[CharacterCodes["w"] = 119] = "w";
|
|
1521
|
+
CharacterCodes[CharacterCodes["x"] = 120] = "x";
|
|
1522
|
+
CharacterCodes[CharacterCodes["y"] = 121] = "y";
|
|
1523
|
+
CharacterCodes[CharacterCodes["z"] = 122] = "z";
|
|
1524
|
+
CharacterCodes[CharacterCodes["A"] = 65] = "A";
|
|
1525
|
+
CharacterCodes[CharacterCodes["B"] = 66] = "B";
|
|
1526
|
+
CharacterCodes[CharacterCodes["C"] = 67] = "C";
|
|
1527
|
+
CharacterCodes[CharacterCodes["D"] = 68] = "D";
|
|
1528
|
+
CharacterCodes[CharacterCodes["E"] = 69] = "E";
|
|
1529
|
+
CharacterCodes[CharacterCodes["F"] = 70] = "F";
|
|
1530
|
+
CharacterCodes[CharacterCodes["G"] = 71] = "G";
|
|
1531
|
+
CharacterCodes[CharacterCodes["H"] = 72] = "H";
|
|
1532
|
+
CharacterCodes[CharacterCodes["I"] = 73] = "I";
|
|
1533
|
+
CharacterCodes[CharacterCodes["J"] = 74] = "J";
|
|
1534
|
+
CharacterCodes[CharacterCodes["K"] = 75] = "K";
|
|
1535
|
+
CharacterCodes[CharacterCodes["L"] = 76] = "L";
|
|
1536
|
+
CharacterCodes[CharacterCodes["M"] = 77] = "M";
|
|
1537
|
+
CharacterCodes[CharacterCodes["N"] = 78] = "N";
|
|
1538
|
+
CharacterCodes[CharacterCodes["O"] = 79] = "O";
|
|
1539
|
+
CharacterCodes[CharacterCodes["P"] = 80] = "P";
|
|
1540
|
+
CharacterCodes[CharacterCodes["Q"] = 81] = "Q";
|
|
1541
|
+
CharacterCodes[CharacterCodes["R"] = 82] = "R";
|
|
1542
|
+
CharacterCodes[CharacterCodes["S"] = 83] = "S";
|
|
1543
|
+
CharacterCodes[CharacterCodes["T"] = 84] = "T";
|
|
1544
|
+
CharacterCodes[CharacterCodes["U"] = 85] = "U";
|
|
1545
|
+
CharacterCodes[CharacterCodes["V"] = 86] = "V";
|
|
1546
|
+
CharacterCodes[CharacterCodes["W"] = 87] = "W";
|
|
1547
|
+
CharacterCodes[CharacterCodes["X"] = 88] = "X";
|
|
1548
|
+
CharacterCodes[CharacterCodes["Y"] = 89] = "Y";
|
|
1549
|
+
CharacterCodes[CharacterCodes["Z"] = 90] = "Z";
|
|
1550
|
+
CharacterCodes[CharacterCodes["asterisk"] = 42] = "asterisk";
|
|
1551
|
+
CharacterCodes[CharacterCodes["backslash"] = 92] = "backslash";
|
|
1552
|
+
CharacterCodes[CharacterCodes["closeBrace"] = 125] = "closeBrace";
|
|
1553
|
+
CharacterCodes[CharacterCodes["closeBracket"] = 93] = "closeBracket";
|
|
1554
|
+
CharacterCodes[CharacterCodes["colon"] = 58] = "colon";
|
|
1555
|
+
CharacterCodes[CharacterCodes["comma"] = 44] = "comma";
|
|
1556
|
+
CharacterCodes[CharacterCodes["dot"] = 46] = "dot";
|
|
1557
|
+
CharacterCodes[CharacterCodes["doubleQuote"] = 34] = "doubleQuote";
|
|
1558
|
+
CharacterCodes[CharacterCodes["minus"] = 45] = "minus";
|
|
1559
|
+
CharacterCodes[CharacterCodes["openBrace"] = 123] = "openBrace";
|
|
1560
|
+
CharacterCodes[CharacterCodes["openBracket"] = 91] = "openBracket";
|
|
1561
|
+
CharacterCodes[CharacterCodes["plus"] = 43] = "plus";
|
|
1562
|
+
CharacterCodes[CharacterCodes["slash"] = 47] = "slash";
|
|
1563
|
+
CharacterCodes[CharacterCodes["formFeed"] = 12] = "formFeed";
|
|
1564
|
+
CharacterCodes[CharacterCodes["tab"] = 9] = "tab";
|
|
1565
1565
|
})(CharacterCodes || (CharacterCodes = {}));
|
|
1566
1566
|
|
|
1567
1567
|
// ../../node_modules/.bun/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/string-intern.js
|
|
@@ -1600,8 +1600,8 @@ var cachedBreakLinesWithSpaces = {
|
|
|
1600
1600
|
|
|
1601
1601
|
// ../../node_modules/.bun/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/impl/parser.js
|
|
1602
1602
|
var ParseOptions;
|
|
1603
|
-
(function(
|
|
1604
|
-
|
|
1603
|
+
(function(ParseOptions) {
|
|
1604
|
+
ParseOptions.DEFAULT = {
|
|
1605
1605
|
allowTrailingComma: false
|
|
1606
1606
|
};
|
|
1607
1607
|
})(ParseOptions || (ParseOptions = {}));
|
|
@@ -1903,54 +1903,54 @@ function visit(text, visitor, options = ParseOptions.DEFAULT) {
|
|
|
1903
1903
|
|
|
1904
1904
|
// ../../node_modules/.bun/jsonc-parser@3.3.1/node_modules/jsonc-parser/lib/esm/main.js
|
|
1905
1905
|
var ScanError;
|
|
1906
|
-
(function(
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1906
|
+
(function(ScanError) {
|
|
1907
|
+
ScanError[ScanError["None"] = 0] = "None";
|
|
1908
|
+
ScanError[ScanError["UnexpectedEndOfComment"] = 1] = "UnexpectedEndOfComment";
|
|
1909
|
+
ScanError[ScanError["UnexpectedEndOfString"] = 2] = "UnexpectedEndOfString";
|
|
1910
|
+
ScanError[ScanError["UnexpectedEndOfNumber"] = 3] = "UnexpectedEndOfNumber";
|
|
1911
|
+
ScanError[ScanError["InvalidUnicode"] = 4] = "InvalidUnicode";
|
|
1912
|
+
ScanError[ScanError["InvalidEscapeCharacter"] = 5] = "InvalidEscapeCharacter";
|
|
1913
|
+
ScanError[ScanError["InvalidCharacter"] = 6] = "InvalidCharacter";
|
|
1914
1914
|
})(ScanError || (ScanError = {}));
|
|
1915
1915
|
var SyntaxKind;
|
|
1916
|
-
(function(
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1916
|
+
(function(SyntaxKind) {
|
|
1917
|
+
SyntaxKind[SyntaxKind["OpenBraceToken"] = 1] = "OpenBraceToken";
|
|
1918
|
+
SyntaxKind[SyntaxKind["CloseBraceToken"] = 2] = "CloseBraceToken";
|
|
1919
|
+
SyntaxKind[SyntaxKind["OpenBracketToken"] = 3] = "OpenBracketToken";
|
|
1920
|
+
SyntaxKind[SyntaxKind["CloseBracketToken"] = 4] = "CloseBracketToken";
|
|
1921
|
+
SyntaxKind[SyntaxKind["CommaToken"] = 5] = "CommaToken";
|
|
1922
|
+
SyntaxKind[SyntaxKind["ColonToken"] = 6] = "ColonToken";
|
|
1923
|
+
SyntaxKind[SyntaxKind["NullKeyword"] = 7] = "NullKeyword";
|
|
1924
|
+
SyntaxKind[SyntaxKind["TrueKeyword"] = 8] = "TrueKeyword";
|
|
1925
|
+
SyntaxKind[SyntaxKind["FalseKeyword"] = 9] = "FalseKeyword";
|
|
1926
|
+
SyntaxKind[SyntaxKind["StringLiteral"] = 10] = "StringLiteral";
|
|
1927
|
+
SyntaxKind[SyntaxKind["NumericLiteral"] = 11] = "NumericLiteral";
|
|
1928
|
+
SyntaxKind[SyntaxKind["LineCommentTrivia"] = 12] = "LineCommentTrivia";
|
|
1929
|
+
SyntaxKind[SyntaxKind["BlockCommentTrivia"] = 13] = "BlockCommentTrivia";
|
|
1930
|
+
SyntaxKind[SyntaxKind["LineBreakTrivia"] = 14] = "LineBreakTrivia";
|
|
1931
|
+
SyntaxKind[SyntaxKind["Trivia"] = 15] = "Trivia";
|
|
1932
|
+
SyntaxKind[SyntaxKind["Unknown"] = 16] = "Unknown";
|
|
1933
|
+
SyntaxKind[SyntaxKind["EOF"] = 17] = "EOF";
|
|
1934
1934
|
})(SyntaxKind || (SyntaxKind = {}));
|
|
1935
1935
|
var parse2 = parse;
|
|
1936
1936
|
var ParseErrorCode;
|
|
1937
|
-
(function(
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1937
|
+
(function(ParseErrorCode) {
|
|
1938
|
+
ParseErrorCode[ParseErrorCode["InvalidSymbol"] = 1] = "InvalidSymbol";
|
|
1939
|
+
ParseErrorCode[ParseErrorCode["InvalidNumberFormat"] = 2] = "InvalidNumberFormat";
|
|
1940
|
+
ParseErrorCode[ParseErrorCode["PropertyNameExpected"] = 3] = "PropertyNameExpected";
|
|
1941
|
+
ParseErrorCode[ParseErrorCode["ValueExpected"] = 4] = "ValueExpected";
|
|
1942
|
+
ParseErrorCode[ParseErrorCode["ColonExpected"] = 5] = "ColonExpected";
|
|
1943
|
+
ParseErrorCode[ParseErrorCode["CommaExpected"] = 6] = "CommaExpected";
|
|
1944
|
+
ParseErrorCode[ParseErrorCode["CloseBraceExpected"] = 7] = "CloseBraceExpected";
|
|
1945
|
+
ParseErrorCode[ParseErrorCode["CloseBracketExpected"] = 8] = "CloseBracketExpected";
|
|
1946
|
+
ParseErrorCode[ParseErrorCode["EndOfFileExpected"] = 9] = "EndOfFileExpected";
|
|
1947
|
+
ParseErrorCode[ParseErrorCode["InvalidCommentToken"] = 10] = "InvalidCommentToken";
|
|
1948
|
+
ParseErrorCode[ParseErrorCode["UnexpectedEndOfComment"] = 11] = "UnexpectedEndOfComment";
|
|
1949
|
+
ParseErrorCode[ParseErrorCode["UnexpectedEndOfString"] = 12] = "UnexpectedEndOfString";
|
|
1950
|
+
ParseErrorCode[ParseErrorCode["UnexpectedEndOfNumber"] = 13] = "UnexpectedEndOfNumber";
|
|
1951
|
+
ParseErrorCode[ParseErrorCode["InvalidUnicode"] = 14] = "InvalidUnicode";
|
|
1952
|
+
ParseErrorCode[ParseErrorCode["InvalidEscapeCharacter"] = 15] = "InvalidEscapeCharacter";
|
|
1953
|
+
ParseErrorCode[ParseErrorCode["InvalidCharacter"] = 16] = "InvalidCharacter";
|
|
1954
1954
|
})(ParseErrorCode || (ParseErrorCode = {}));
|
|
1955
1955
|
function printParseErrorCode(code) {
|
|
1956
1956
|
switch (code) {
|