vercel 28.5.1 → 28.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1761 -323
- package/package.json +15 -13
package/dist/index.js
CHANGED
@@ -192198,7 +192198,7 @@ async function runNpmInstall(destPath, args = [], spawnOpts, meta, nodeVersion)
|
|
192198
192198
|
try {
|
192199
192199
|
await spawnAsync(cliType, commandArgs, opts);
|
192200
192200
|
}
|
192201
|
-
catch (
|
192201
|
+
catch (err) {
|
192202
192202
|
const potentialErrorPath = path_1.default.join(process.env.HOME || '/', '.npm', 'eresolve-report.txt');
|
192203
192203
|
if (isPotentiallyBrokenNpm &&
|
192204
192204
|
!commandArgs.includes('--legacy-peer-deps') &&
|
@@ -192207,6 +192207,9 @@ async function runNpmInstall(destPath, args = [], spawnOpts, meta, nodeVersion)
|
|
192207
192207
|
commandArgs.push('--legacy-peer-deps');
|
192208
192208
|
await spawnAsync(cliType, commandArgs, opts);
|
192209
192209
|
}
|
192210
|
+
else {
|
192211
|
+
throw err;
|
192212
|
+
}
|
192210
192213
|
}
|
192211
192214
|
debug_1.default(`Install complete [${Date.now() - installTime}ms]`);
|
192212
192215
|
return true;
|
@@ -192343,7 +192346,7 @@ exports.installDependencies = util_1.deprecate(runNpmInstall, 'installDependenci
|
|
192343
192346
|
/***/ }),
|
192344
192347
|
|
192345
192348
|
/***/ 2560:
|
192346
|
-
/***/ (function(__unused_webpack_module, exports,
|
192349
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_880513__) {
|
192347
192350
|
|
192348
192351
|
"use strict";
|
192349
192352
|
|
@@ -192351,7 +192354,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
192351
192354
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
192352
192355
|
};
|
192353
192356
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
192354
|
-
const end_of_stream_1 = __importDefault(
|
192357
|
+
const end_of_stream_1 = __importDefault(__nested_webpack_require_880513__(687));
|
192355
192358
|
function streamToBuffer(stream) {
|
192356
192359
|
return new Promise((resolve, reject) => {
|
192357
192360
|
const buffers = [];
|
@@ -192380,7 +192383,7 @@ exports.default = streamToBuffer;
|
|
192380
192383
|
/***/ }),
|
192381
192384
|
|
192382
192385
|
/***/ 1148:
|
192383
|
-
/***/ (function(__unused_webpack_module, exports,
|
192386
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_881581__) {
|
192384
192387
|
|
192385
192388
|
"use strict";
|
192386
192389
|
|
@@ -192388,9 +192391,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
192388
192391
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
192389
192392
|
};
|
192390
192393
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
192391
|
-
const path_1 = __importDefault(
|
192392
|
-
const fs_extra_1 = __importDefault(
|
192393
|
-
const ignore_1 = __importDefault(
|
192394
|
+
const path_1 = __importDefault(__nested_webpack_require_881581__(5622));
|
192395
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_881581__(5392));
|
192396
|
+
const ignore_1 = __importDefault(__nested_webpack_require_881581__(3556));
|
192394
192397
|
function isCodedError(error) {
|
192395
192398
|
return (error !== null &&
|
192396
192399
|
error !== undefined &&
|
@@ -192447,13 +192450,13 @@ exports.default = default_1;
|
|
192447
192450
|
/***/ }),
|
192448
192451
|
|
192449
192452
|
/***/ 4678:
|
192450
|
-
/***/ ((__unused_webpack_module, exports,
|
192453
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_883955__) => {
|
192451
192454
|
|
192452
192455
|
"use strict";
|
192453
192456
|
|
192454
192457
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
192455
192458
|
exports.getPlatformEnv = void 0;
|
192456
|
-
const errors_1 =
|
192459
|
+
const errors_1 = __nested_webpack_require_883955__(3983);
|
192457
192460
|
/**
|
192458
192461
|
* Helper function to support both `VERCEL_` and legacy `NOW_` env vars.
|
192459
192462
|
* Throws an error if *both* env vars are defined.
|
@@ -192517,7 +192520,7 @@ exports.getPrefixedEnvVars = getPrefixedEnvVars;
|
|
192517
192520
|
/***/ }),
|
192518
192521
|
|
192519
192522
|
/***/ 2855:
|
192520
|
-
/***/ (function(__unused_webpack_module, exports,
|
192523
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_886214__) {
|
192521
192524
|
|
192522
192525
|
"use strict";
|
192523
192526
|
|
@@ -192548,31 +192551,31 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
192548
192551
|
};
|
192549
192552
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
192550
192553
|
exports.normalizePath = exports.readConfigFile = exports.EdgeFunction = exports.cloneEnv = exports.getIgnoreFilter = exports.scanParentDirs = exports.getLambdaOptionsFromFunction = exports.isSymbolicLink = exports.debug = exports.streamToBuffer = exports.getPrefixedEnvVars = exports.getPlatformEnv = exports.getSpawnOptions = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = exports.getNodeVersion = exports.getEnvForPackageManager = exports.runCustomInstallCommand = exports.runShellScript = exports.runPipInstall = exports.runBundleInstall = exports.runNpmInstall = exports.getNodeBinPath = exports.walkParentDirs = exports.spawnCommand = exports.execCommand = exports.runPackageJsonScript = exports.installDependencies = exports.getScriptName = exports.spawnAsync = exports.execAsync = exports.rename = exports.glob = exports.getWriteableDirectory = exports.downloadFile = exports.download = exports.Prerender = exports.createLambda = exports.NodejsLambda = exports.Lambda = exports.FileRef = exports.FileFsRef = exports.FileBlob = void 0;
|
192551
|
-
const file_blob_1 = __importDefault(
|
192554
|
+
const file_blob_1 = __importDefault(__nested_webpack_require_886214__(2397));
|
192552
192555
|
exports.FileBlob = file_blob_1.default;
|
192553
|
-
const file_fs_ref_1 = __importDefault(
|
192556
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_886214__(9331));
|
192554
192557
|
exports.FileFsRef = file_fs_ref_1.default;
|
192555
|
-
const file_ref_1 = __importDefault(
|
192558
|
+
const file_ref_1 = __importDefault(__nested_webpack_require_886214__(5187));
|
192556
192559
|
exports.FileRef = file_ref_1.default;
|
192557
|
-
const lambda_1 =
|
192560
|
+
const lambda_1 = __nested_webpack_require_886214__(6721);
|
192558
192561
|
Object.defineProperty(exports, "Lambda", ({ enumerable: true, get: function () { return lambda_1.Lambda; } }));
|
192559
192562
|
Object.defineProperty(exports, "createLambda", ({ enumerable: true, get: function () { return lambda_1.createLambda; } }));
|
192560
192563
|
Object.defineProperty(exports, "getLambdaOptionsFromFunction", ({ enumerable: true, get: function () { return lambda_1.getLambdaOptionsFromFunction; } }));
|
192561
|
-
const nodejs_lambda_1 =
|
192564
|
+
const nodejs_lambda_1 = __nested_webpack_require_886214__(7049);
|
192562
192565
|
Object.defineProperty(exports, "NodejsLambda", ({ enumerable: true, get: function () { return nodejs_lambda_1.NodejsLambda; } }));
|
192563
|
-
const prerender_1 =
|
192566
|
+
const prerender_1 = __nested_webpack_require_886214__(2850);
|
192564
192567
|
Object.defineProperty(exports, "Prerender", ({ enumerable: true, get: function () { return prerender_1.Prerender; } }));
|
192565
|
-
const download_1 = __importStar(
|
192568
|
+
const download_1 = __importStar(__nested_webpack_require_886214__(1611));
|
192566
192569
|
exports.download = download_1.default;
|
192567
192570
|
Object.defineProperty(exports, "downloadFile", ({ enumerable: true, get: function () { return download_1.downloadFile; } }));
|
192568
192571
|
Object.defineProperty(exports, "isSymbolicLink", ({ enumerable: true, get: function () { return download_1.isSymbolicLink; } }));
|
192569
|
-
const get_writable_directory_1 = __importDefault(
|
192572
|
+
const get_writable_directory_1 = __importDefault(__nested_webpack_require_886214__(3838));
|
192570
192573
|
exports.getWriteableDirectory = get_writable_directory_1.default;
|
192571
|
-
const glob_1 = __importDefault(
|
192574
|
+
const glob_1 = __importDefault(__nested_webpack_require_886214__(4240));
|
192572
192575
|
exports.glob = glob_1.default;
|
192573
|
-
const rename_1 = __importDefault(
|
192576
|
+
const rename_1 = __importDefault(__nested_webpack_require_886214__(6718));
|
192574
192577
|
exports.rename = rename_1.default;
|
192575
|
-
const run_user_scripts_1 =
|
192578
|
+
const run_user_scripts_1 = __nested_webpack_require_886214__(1442);
|
192576
192579
|
Object.defineProperty(exports, "execAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.execAsync; } }));
|
192577
192580
|
Object.defineProperty(exports, "spawnAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.spawnAsync; } }));
|
192578
192581
|
Object.defineProperty(exports, "execCommand", ({ enumerable: true, get: function () { return run_user_scripts_1.execCommand; } }));
|
@@ -192591,37 +192594,37 @@ Object.defineProperty(exports, "getNodeVersion", ({ enumerable: true, get: funct
|
|
192591
192594
|
Object.defineProperty(exports, "getSpawnOptions", ({ enumerable: true, get: function () { return run_user_scripts_1.getSpawnOptions; } }));
|
192592
192595
|
Object.defineProperty(exports, "getNodeBinPath", ({ enumerable: true, get: function () { return run_user_scripts_1.getNodeBinPath; } }));
|
192593
192596
|
Object.defineProperty(exports, "scanParentDirs", ({ enumerable: true, get: function () { return run_user_scripts_1.scanParentDirs; } }));
|
192594
|
-
const node_version_1 =
|
192597
|
+
const node_version_1 = __nested_webpack_require_886214__(7903);
|
192595
192598
|
Object.defineProperty(exports, "getLatestNodeVersion", ({ enumerable: true, get: function () { return node_version_1.getLatestNodeVersion; } }));
|
192596
192599
|
Object.defineProperty(exports, "getDiscontinuedNodeVersions", ({ enumerable: true, get: function () { return node_version_1.getDiscontinuedNodeVersions; } }));
|
192597
|
-
const stream_to_buffer_1 = __importDefault(
|
192600
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_886214__(2560));
|
192598
192601
|
exports.streamToBuffer = stream_to_buffer_1.default;
|
192599
|
-
const debug_1 = __importDefault(
|
192602
|
+
const debug_1 = __importDefault(__nested_webpack_require_886214__(1868));
|
192600
192603
|
exports.debug = debug_1.default;
|
192601
|
-
const get_ignore_filter_1 = __importDefault(
|
192604
|
+
const get_ignore_filter_1 = __importDefault(__nested_webpack_require_886214__(1148));
|
192602
192605
|
exports.getIgnoreFilter = get_ignore_filter_1.default;
|
192603
|
-
const get_platform_env_1 =
|
192606
|
+
const get_platform_env_1 = __nested_webpack_require_886214__(4678);
|
192604
192607
|
Object.defineProperty(exports, "getPlatformEnv", ({ enumerable: true, get: function () { return get_platform_env_1.getPlatformEnv; } }));
|
192605
|
-
const get_prefixed_env_vars_1 =
|
192608
|
+
const get_prefixed_env_vars_1 = __nested_webpack_require_886214__(6838);
|
192606
192609
|
Object.defineProperty(exports, "getPrefixedEnvVars", ({ enumerable: true, get: function () { return get_prefixed_env_vars_1.getPrefixedEnvVars; } }));
|
192607
|
-
const clone_env_1 =
|
192610
|
+
const clone_env_1 = __nested_webpack_require_886214__(6548);
|
192608
192611
|
Object.defineProperty(exports, "cloneEnv", ({ enumerable: true, get: function () { return clone_env_1.cloneEnv; } }));
|
192609
|
-
var edge_function_1 =
|
192612
|
+
var edge_function_1 = __nested_webpack_require_886214__(8038);
|
192610
192613
|
Object.defineProperty(exports, "EdgeFunction", ({ enumerable: true, get: function () { return edge_function_1.EdgeFunction; } }));
|
192611
|
-
var read_config_file_1 =
|
192614
|
+
var read_config_file_1 = __nested_webpack_require_886214__(7792);
|
192612
192615
|
Object.defineProperty(exports, "readConfigFile", ({ enumerable: true, get: function () { return read_config_file_1.readConfigFile; } }));
|
192613
|
-
var normalize_path_1 =
|
192616
|
+
var normalize_path_1 = __nested_webpack_require_886214__(6261);
|
192614
192617
|
Object.defineProperty(exports, "normalizePath", ({ enumerable: true, get: function () { return normalize_path_1.normalizePath; } }));
|
192615
|
-
__exportStar(
|
192616
|
-
__exportStar(
|
192617
|
-
__exportStar(
|
192618
|
-
__exportStar(
|
192618
|
+
__exportStar(__nested_webpack_require_886214__(2564), exports);
|
192619
|
+
__exportStar(__nested_webpack_require_886214__(2416), exports);
|
192620
|
+
__exportStar(__nested_webpack_require_886214__(5748), exports);
|
192621
|
+
__exportStar(__nested_webpack_require_886214__(3983), exports);
|
192619
192622
|
|
192620
192623
|
|
192621
192624
|
/***/ }),
|
192622
192625
|
|
192623
192626
|
/***/ 6721:
|
192624
|
-
/***/ (function(__unused_webpack_module, exports,
|
192627
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_895032__) {
|
192625
192628
|
|
192626
192629
|
"use strict";
|
192627
192630
|
|
@@ -192630,13 +192633,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
192630
192633
|
};
|
192631
192634
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
192632
192635
|
exports.getLambdaOptionsFromFunction = exports.createZip = exports.createLambda = exports.Lambda = void 0;
|
192633
|
-
const assert_1 = __importDefault(
|
192634
|
-
const async_sema_1 = __importDefault(
|
192635
|
-
const yazl_1 =
|
192636
|
-
const minimatch_1 = __importDefault(
|
192637
|
-
const fs_extra_1 =
|
192638
|
-
const download_1 =
|
192639
|
-
const stream_to_buffer_1 = __importDefault(
|
192636
|
+
const assert_1 = __importDefault(__nested_webpack_require_895032__(2357));
|
192637
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_895032__(5758));
|
192638
|
+
const yazl_1 = __nested_webpack_require_895032__(1223);
|
192639
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_895032__(9566));
|
192640
|
+
const fs_extra_1 = __nested_webpack_require_895032__(5392);
|
192641
|
+
const download_1 = __nested_webpack_require_895032__(1611);
|
192642
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_895032__(2560));
|
192640
192643
|
class Lambda {
|
192641
192644
|
constructor(opts) {
|
192642
192645
|
const { handler, runtime, maxDuration, memory, environment = {}, allowQuery, regions, supportsMultiPayloads, supportsWrapper, experimentalResponseStreaming, } = opts;
|
@@ -192763,13 +192766,13 @@ exports.getLambdaOptionsFromFunction = getLambdaOptionsFromFunction;
|
|
192763
192766
|
/***/ }),
|
192764
192767
|
|
192765
192768
|
/***/ 7049:
|
192766
|
-
/***/ ((__unused_webpack_module, exports,
|
192769
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_900822__) => {
|
192767
192770
|
|
192768
192771
|
"use strict";
|
192769
192772
|
|
192770
192773
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
192771
192774
|
exports.NodejsLambda = void 0;
|
192772
|
-
const lambda_1 =
|
192775
|
+
const lambda_1 = __nested_webpack_require_900822__(6721);
|
192773
192776
|
class NodejsLambda extends lambda_1.Lambda {
|
192774
192777
|
constructor({ shouldAddHelpers, shouldAddSourcemapSupport, awsLambdaHandler, ...opts }) {
|
192775
192778
|
super(opts);
|
@@ -192920,13 +192923,13 @@ exports.buildsSchema = {
|
|
192920
192923
|
/***/ }),
|
192921
192924
|
|
192922
192925
|
/***/ 2564:
|
192923
|
-
/***/ ((__unused_webpack_module, exports,
|
192926
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_905959__) => {
|
192924
192927
|
|
192925
192928
|
"use strict";
|
192926
192929
|
|
192927
192930
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
192928
192931
|
exports.shouldServe = void 0;
|
192929
|
-
const path_1 =
|
192932
|
+
const path_1 = __nested_webpack_require_905959__(5622);
|
192930
192933
|
const shouldServe = ({ entrypoint, files, requestPath, }) => {
|
192931
192934
|
requestPath = requestPath.replace(/\/$/, ''); // sanitize trailing '/'
|
192932
192935
|
entrypoint = entrypoint.replace(/\\/, '/'); // windows compatibility
|
@@ -193171,7 +193174,7 @@ module.exports = __webpack_require__(78761);
|
|
193171
193174
|
/******/ var __webpack_module_cache__ = {};
|
193172
193175
|
/******/
|
193173
193176
|
/******/ // The require function
|
193174
|
-
/******/ function
|
193177
|
+
/******/ function __nested_webpack_require_1283324__(moduleId) {
|
193175
193178
|
/******/ // Check if module is in cache
|
193176
193179
|
/******/ if(__webpack_module_cache__[moduleId]) {
|
193177
193180
|
/******/ return __webpack_module_cache__[moduleId].exports;
|
@@ -193186,7 +193189,7 @@ module.exports = __webpack_require__(78761);
|
|
193186
193189
|
/******/ // Execute the module function
|
193187
193190
|
/******/ var threw = true;
|
193188
193191
|
/******/ try {
|
193189
|
-
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports,
|
193192
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_1283324__);
|
193190
193193
|
/******/ threw = false;
|
193191
193194
|
/******/ } finally {
|
193192
193195
|
/******/ if(threw) delete __webpack_module_cache__[moduleId];
|
@@ -193199,11 +193202,11 @@ module.exports = __webpack_require__(78761);
|
|
193199
193202
|
/************************************************************************/
|
193200
193203
|
/******/ /* webpack/runtime/compat */
|
193201
193204
|
/******/
|
193202
|
-
/******/
|
193205
|
+
/******/ __nested_webpack_require_1283324__.ab = __dirname + "/";/************************************************************************/
|
193203
193206
|
/******/ // module exports must be returned from runtime so entry inlining is disabled
|
193204
193207
|
/******/ // startup
|
193205
193208
|
/******/ // Load entry module and return exports
|
193206
|
-
/******/ return
|
193209
|
+
/******/ return __nested_webpack_require_1283324__(2855);
|
193207
193210
|
/******/ })()
|
193208
193211
|
;
|
193209
193212
|
|
@@ -201730,329 +201733,1760 @@ function patch (fs) {
|
|
201730
201733
|
}
|
201731
201734
|
|
201732
201735
|
|
201733
|
-
/***/ }),
|
201736
|
+
/***/ }),
|
201737
|
+
|
201738
|
+
/***/ 81135:
|
201739
|
+
/***/ ((module) => {
|
201740
|
+
|
201741
|
+
"use strict";
|
201742
|
+
|
201743
|
+
|
201744
|
+
module.exports = (flag, argv = process.argv) => {
|
201745
|
+
const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
|
201746
|
+
const position = argv.indexOf(prefix + flag);
|
201747
|
+
const terminatorPosition = argv.indexOf('--');
|
201748
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
201749
|
+
};
|
201750
|
+
|
201751
|
+
|
201752
|
+
/***/ }),
|
201753
|
+
|
201754
|
+
/***/ 61967:
|
201755
|
+
/***/ ((module) => {
|
201756
|
+
|
201757
|
+
const { hasOwnProperty } = Object.prototype
|
201758
|
+
|
201759
|
+
/* istanbul ignore next */
|
201760
|
+
const eol = typeof process !== 'undefined' &&
|
201761
|
+
process.platform === 'win32' ? '\r\n' : '\n'
|
201762
|
+
|
201763
|
+
const encode = (obj, opt) => {
|
201764
|
+
const children = []
|
201765
|
+
let out = ''
|
201766
|
+
|
201767
|
+
if (typeof opt === 'string') {
|
201768
|
+
opt = {
|
201769
|
+
section: opt,
|
201770
|
+
whitespace: false,
|
201771
|
+
}
|
201772
|
+
} else {
|
201773
|
+
opt = opt || Object.create(null)
|
201774
|
+
opt.whitespace = opt.whitespace === true
|
201775
|
+
}
|
201776
|
+
|
201777
|
+
const separator = opt.whitespace ? ' = ' : '='
|
201778
|
+
|
201779
|
+
for (const k of Object.keys(obj)) {
|
201780
|
+
const val = obj[k]
|
201781
|
+
if (val && Array.isArray(val)) {
|
201782
|
+
for (const item of val) {
|
201783
|
+
out += safe(k + '[]') + separator + safe(item) + eol
|
201784
|
+
}
|
201785
|
+
} else if (val && typeof val === 'object') {
|
201786
|
+
children.push(k)
|
201787
|
+
} else {
|
201788
|
+
out += safe(k) + separator + safe(val) + eol
|
201789
|
+
}
|
201790
|
+
}
|
201791
|
+
|
201792
|
+
if (opt.section && out.length) {
|
201793
|
+
out = '[' + safe(opt.section) + ']' + eol + out
|
201794
|
+
}
|
201795
|
+
|
201796
|
+
for (const k of children) {
|
201797
|
+
const nk = dotSplit(k).join('\\.')
|
201798
|
+
const section = (opt.section ? opt.section + '.' : '') + nk
|
201799
|
+
const { whitespace } = opt
|
201800
|
+
const child = encode(obj[k], {
|
201801
|
+
section,
|
201802
|
+
whitespace,
|
201803
|
+
})
|
201804
|
+
if (out.length && child.length) {
|
201805
|
+
out += eol
|
201806
|
+
}
|
201807
|
+
|
201808
|
+
out += child
|
201809
|
+
}
|
201810
|
+
|
201811
|
+
return out
|
201812
|
+
}
|
201813
|
+
|
201814
|
+
const dotSplit = str =>
|
201815
|
+
str.replace(/\1/g, '\u0002LITERAL\\1LITERAL\u0002')
|
201816
|
+
.replace(/\\\./g, '\u0001')
|
201817
|
+
.split(/\./)
|
201818
|
+
.map(part =>
|
201819
|
+
part.replace(/\1/g, '\\.')
|
201820
|
+
.replace(/\2LITERAL\\1LITERAL\2/g, '\u0001'))
|
201821
|
+
|
201822
|
+
const decode = str => {
|
201823
|
+
const out = Object.create(null)
|
201824
|
+
let p = out
|
201825
|
+
let section = null
|
201826
|
+
// section |key = value
|
201827
|
+
const re = /^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i
|
201828
|
+
const lines = str.split(/[\r\n]+/g)
|
201829
|
+
|
201830
|
+
for (const line of lines) {
|
201831
|
+
if (!line || line.match(/^\s*[;#]/)) {
|
201832
|
+
continue
|
201833
|
+
}
|
201834
|
+
const match = line.match(re)
|
201835
|
+
if (!match) {
|
201836
|
+
continue
|
201837
|
+
}
|
201838
|
+
if (match[1] !== undefined) {
|
201839
|
+
section = unsafe(match[1])
|
201840
|
+
if (section === '__proto__') {
|
201841
|
+
// not allowed
|
201842
|
+
// keep parsing the section, but don't attach it.
|
201843
|
+
p = Object.create(null)
|
201844
|
+
continue
|
201845
|
+
}
|
201846
|
+
p = out[section] = out[section] || Object.create(null)
|
201847
|
+
continue
|
201848
|
+
}
|
201849
|
+
const keyRaw = unsafe(match[2])
|
201850
|
+
const isArray = keyRaw.length > 2 && keyRaw.slice(-2) === '[]'
|
201851
|
+
const key = isArray ? keyRaw.slice(0, -2) : keyRaw
|
201852
|
+
if (key === '__proto__') {
|
201853
|
+
continue
|
201854
|
+
}
|
201855
|
+
const valueRaw = match[3] ? unsafe(match[4]) : true
|
201856
|
+
const value = valueRaw === 'true' ||
|
201857
|
+
valueRaw === 'false' ||
|
201858
|
+
valueRaw === 'null' ? JSON.parse(valueRaw)
|
201859
|
+
: valueRaw
|
201860
|
+
|
201861
|
+
// Convert keys with '[]' suffix to an array
|
201862
|
+
if (isArray) {
|
201863
|
+
if (!hasOwnProperty.call(p, key)) {
|
201864
|
+
p[key] = []
|
201865
|
+
} else if (!Array.isArray(p[key])) {
|
201866
|
+
p[key] = [p[key]]
|
201867
|
+
}
|
201868
|
+
}
|
201869
|
+
|
201870
|
+
// safeguard against resetting a previously defined
|
201871
|
+
// array by accidentally forgetting the brackets
|
201872
|
+
if (Array.isArray(p[key])) {
|
201873
|
+
p[key].push(value)
|
201874
|
+
} else {
|
201875
|
+
p[key] = value
|
201876
|
+
}
|
201877
|
+
}
|
201878
|
+
|
201879
|
+
// {a:{y:1},"a.b":{x:2}} --> {a:{y:1,b:{x:2}}}
|
201880
|
+
// use a filter to return the keys that have to be deleted.
|
201881
|
+
const remove = []
|
201882
|
+
for (const k of Object.keys(out)) {
|
201883
|
+
if (!hasOwnProperty.call(out, k) ||
|
201884
|
+
typeof out[k] !== 'object' ||
|
201885
|
+
Array.isArray(out[k])) {
|
201886
|
+
continue
|
201887
|
+
}
|
201888
|
+
|
201889
|
+
// see if the parent section is also an object.
|
201890
|
+
// if so, add it to that, and mark this one for deletion
|
201891
|
+
const parts = dotSplit(k)
|
201892
|
+
p = out
|
201893
|
+
const l = parts.pop()
|
201894
|
+
const nl = l.replace(/\\\./g, '.')
|
201895
|
+
for (const part of parts) {
|
201896
|
+
if (part === '__proto__') {
|
201897
|
+
continue
|
201898
|
+
}
|
201899
|
+
if (!hasOwnProperty.call(p, part) || typeof p[part] !== 'object') {
|
201900
|
+
p[part] = Object.create(null)
|
201901
|
+
}
|
201902
|
+
p = p[part]
|
201903
|
+
}
|
201904
|
+
if (p === out && nl === l) {
|
201905
|
+
continue
|
201906
|
+
}
|
201907
|
+
|
201908
|
+
p[nl] = out[k]
|
201909
|
+
remove.push(k)
|
201910
|
+
}
|
201911
|
+
for (const del of remove) {
|
201912
|
+
delete out[del]
|
201913
|
+
}
|
201914
|
+
|
201915
|
+
return out
|
201916
|
+
}
|
201917
|
+
|
201918
|
+
const isQuoted = val => {
|
201919
|
+
return (val.startsWith('"') && val.endsWith('"')) ||
|
201920
|
+
(val.startsWith("'") && val.endsWith("'"))
|
201921
|
+
}
|
201922
|
+
|
201923
|
+
const safe = val => {
|
201924
|
+
if (
|
201925
|
+
typeof val !== 'string' ||
|
201926
|
+
val.match(/[=\r\n]/) ||
|
201927
|
+
val.match(/^\[/) ||
|
201928
|
+
(val.length > 1 && isQuoted(val)) ||
|
201929
|
+
val !== val.trim()
|
201930
|
+
) {
|
201931
|
+
return JSON.stringify(val)
|
201932
|
+
}
|
201933
|
+
return val.split(';').join('\\;').split('#').join('\\#')
|
201934
|
+
}
|
201935
|
+
|
201936
|
+
const unsafe = (val, doUnesc) => {
|
201937
|
+
val = (val || '').trim()
|
201938
|
+
if (isQuoted(val)) {
|
201939
|
+
// remove the single quotes before calling JSON.parse
|
201940
|
+
if (val.charAt(0) === "'") {
|
201941
|
+
val = val.slice(1, -1)
|
201942
|
+
}
|
201943
|
+
try {
|
201944
|
+
val = JSON.parse(val)
|
201945
|
+
} catch (_) {}
|
201946
|
+
} else {
|
201947
|
+
// walk the val to find the first not-escaped ; character
|
201948
|
+
let esc = false
|
201949
|
+
let unesc = ''
|
201950
|
+
for (let i = 0, l = val.length; i < l; i++) {
|
201951
|
+
const c = val.charAt(i)
|
201952
|
+
if (esc) {
|
201953
|
+
if ('\\;#'.indexOf(c) !== -1) {
|
201954
|
+
unesc += c
|
201955
|
+
} else {
|
201956
|
+
unesc += '\\' + c
|
201957
|
+
}
|
201958
|
+
|
201959
|
+
esc = false
|
201960
|
+
} else if (';#'.indexOf(c) !== -1) {
|
201961
|
+
break
|
201962
|
+
} else if (c === '\\') {
|
201963
|
+
esc = true
|
201964
|
+
} else {
|
201965
|
+
unesc += c
|
201966
|
+
}
|
201967
|
+
}
|
201968
|
+
if (esc) {
|
201969
|
+
unesc += '\\'
|
201970
|
+
}
|
201971
|
+
|
201972
|
+
return unesc.trim()
|
201973
|
+
}
|
201974
|
+
return val
|
201975
|
+
}
|
201976
|
+
|
201977
|
+
module.exports = {
|
201978
|
+
parse: decode,
|
201979
|
+
decode,
|
201980
|
+
stringify: encode,
|
201981
|
+
encode,
|
201982
|
+
safe,
|
201983
|
+
unsafe,
|
201984
|
+
}
|
201985
|
+
|
201986
|
+
|
201987
|
+
/***/ }),
|
201988
|
+
|
201989
|
+
/***/ 74133:
|
201990
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
201991
|
+
|
201992
|
+
"use strict";
|
201993
|
+
|
201994
|
+
const net = __webpack_require__(11631);
|
201995
|
+
|
201996
|
+
module.exports = async (port, {timeout = 1000, host} = {}) => {
|
201997
|
+
const promise = new Promise(((resolve, reject) => {
|
201998
|
+
const socket = new net.Socket();
|
201999
|
+
|
202000
|
+
const onError = () => {
|
202001
|
+
socket.destroy();
|
202002
|
+
reject();
|
202003
|
+
};
|
202004
|
+
|
202005
|
+
socket.setTimeout(timeout);
|
202006
|
+
socket.once('error', onError);
|
202007
|
+
socket.once('timeout', onError);
|
202008
|
+
|
202009
|
+
socket.connect(port, host, () => {
|
202010
|
+
socket.end();
|
202011
|
+
resolve();
|
202012
|
+
});
|
202013
|
+
}));
|
202014
|
+
|
202015
|
+
try {
|
202016
|
+
await promise;
|
202017
|
+
return true;
|
202018
|
+
} catch (_) {
|
202019
|
+
return false;
|
202020
|
+
}
|
202021
|
+
};
|
202022
|
+
|
202023
|
+
|
202024
|
+
/***/ }),
|
202025
|
+
|
202026
|
+
/***/ 25845:
|
202027
|
+
/***/ ((module) => {
|
202028
|
+
|
202029
|
+
"use strict";
|
202030
|
+
|
202031
|
+
|
202032
|
+
const isStream = stream =>
|
202033
|
+
stream !== null &&
|
202034
|
+
typeof stream === 'object' &&
|
202035
|
+
typeof stream.pipe === 'function';
|
202036
|
+
|
202037
|
+
isStream.writable = stream =>
|
202038
|
+
isStream(stream) &&
|
202039
|
+
stream.writable !== false &&
|
202040
|
+
typeof stream._write === 'function' &&
|
202041
|
+
typeof stream._writableState === 'object';
|
202042
|
+
|
202043
|
+
isStream.readable = stream =>
|
202044
|
+
isStream(stream) &&
|
202045
|
+
stream.readable !== false &&
|
202046
|
+
typeof stream._read === 'function' &&
|
202047
|
+
typeof stream._readableState === 'object';
|
202048
|
+
|
202049
|
+
isStream.duplex = stream =>
|
202050
|
+
isStream.writable(stream) &&
|
202051
|
+
isStream.readable(stream);
|
202052
|
+
|
202053
|
+
isStream.transform = stream =>
|
202054
|
+
isStream.duplex(stream) &&
|
202055
|
+
typeof stream._transform === 'function' &&
|
202056
|
+
typeof stream._transformState === 'object';
|
202057
|
+
|
202058
|
+
module.exports = isStream;
|
202059
|
+
|
202060
|
+
|
202061
|
+
/***/ }),
|
202062
|
+
|
202063
|
+
/***/ 72606:
|
202064
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
202065
|
+
|
202066
|
+
const parse = __webpack_require__(34967)
|
202067
|
+
const stringify = __webpack_require__(49785)
|
202068
|
+
|
202069
|
+
const JSON5 = {
|
202070
|
+
parse,
|
202071
|
+
stringify,
|
202072
|
+
}
|
202073
|
+
|
202074
|
+
module.exports = JSON5
|
202075
|
+
|
202076
|
+
|
202077
|
+
/***/ }),
|
202078
|
+
|
202079
|
+
/***/ 34967:
|
202080
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
202081
|
+
|
202082
|
+
const util = __webpack_require__(3825)
|
202083
|
+
|
202084
|
+
let source
|
202085
|
+
let parseState
|
202086
|
+
let stack
|
202087
|
+
let pos
|
202088
|
+
let line
|
202089
|
+
let column
|
202090
|
+
let token
|
202091
|
+
let key
|
202092
|
+
let root
|
202093
|
+
|
202094
|
+
module.exports = function parse (text, reviver) {
|
202095
|
+
source = String(text)
|
202096
|
+
parseState = 'start'
|
202097
|
+
stack = []
|
202098
|
+
pos = 0
|
202099
|
+
line = 1
|
202100
|
+
column = 0
|
202101
|
+
token = undefined
|
202102
|
+
key = undefined
|
202103
|
+
root = undefined
|
202104
|
+
|
202105
|
+
do {
|
202106
|
+
token = lex()
|
202107
|
+
|
202108
|
+
// This code is unreachable.
|
202109
|
+
// if (!parseStates[parseState]) {
|
202110
|
+
// throw invalidParseState()
|
202111
|
+
// }
|
202112
|
+
|
202113
|
+
parseStates[parseState]()
|
202114
|
+
} while (token.type !== 'eof')
|
202115
|
+
|
202116
|
+
if (typeof reviver === 'function') {
|
202117
|
+
return internalize({'': root}, '', reviver)
|
202118
|
+
}
|
202119
|
+
|
202120
|
+
return root
|
202121
|
+
}
|
202122
|
+
|
202123
|
+
function internalize (holder, name, reviver) {
|
202124
|
+
const value = holder[name]
|
202125
|
+
if (value != null && typeof value === 'object') {
|
202126
|
+
for (const key in value) {
|
202127
|
+
const replacement = internalize(value, key, reviver)
|
202128
|
+
if (replacement === undefined) {
|
202129
|
+
delete value[key]
|
202130
|
+
} else {
|
202131
|
+
value[key] = replacement
|
202132
|
+
}
|
202133
|
+
}
|
202134
|
+
}
|
202135
|
+
|
202136
|
+
return reviver.call(holder, name, value)
|
202137
|
+
}
|
202138
|
+
|
202139
|
+
let lexState
|
202140
|
+
let buffer
|
202141
|
+
let doubleQuote
|
202142
|
+
let sign
|
202143
|
+
let c
|
202144
|
+
|
202145
|
+
function lex () {
|
202146
|
+
lexState = 'default'
|
202147
|
+
buffer = ''
|
202148
|
+
doubleQuote = false
|
202149
|
+
sign = 1
|
202150
|
+
|
202151
|
+
for (;;) {
|
202152
|
+
c = peek()
|
202153
|
+
|
202154
|
+
// This code is unreachable.
|
202155
|
+
// if (!lexStates[lexState]) {
|
202156
|
+
// throw invalidLexState(lexState)
|
202157
|
+
// }
|
202158
|
+
|
202159
|
+
const token = lexStates[lexState]()
|
202160
|
+
if (token) {
|
202161
|
+
return token
|
202162
|
+
}
|
202163
|
+
}
|
202164
|
+
}
|
202165
|
+
|
202166
|
+
function peek () {
|
202167
|
+
if (source[pos]) {
|
202168
|
+
return String.fromCodePoint(source.codePointAt(pos))
|
202169
|
+
}
|
202170
|
+
}
|
202171
|
+
|
202172
|
+
function read () {
|
202173
|
+
const c = peek()
|
202174
|
+
|
202175
|
+
if (c === '\n') {
|
202176
|
+
line++
|
202177
|
+
column = 0
|
202178
|
+
} else if (c) {
|
202179
|
+
column += c.length
|
202180
|
+
} else {
|
202181
|
+
column++
|
202182
|
+
}
|
202183
|
+
|
202184
|
+
if (c) {
|
202185
|
+
pos += c.length
|
202186
|
+
}
|
202187
|
+
|
202188
|
+
return c
|
202189
|
+
}
|
202190
|
+
|
202191
|
+
const lexStates = {
|
202192
|
+
default () {
|
202193
|
+
switch (c) {
|
202194
|
+
case '\t':
|
202195
|
+
case '\v':
|
202196
|
+
case '\f':
|
202197
|
+
case ' ':
|
202198
|
+
case '\u00A0':
|
202199
|
+
case '\uFEFF':
|
202200
|
+
case '\n':
|
202201
|
+
case '\r':
|
202202
|
+
case '\u2028':
|
202203
|
+
case '\u2029':
|
202204
|
+
read()
|
202205
|
+
return
|
202206
|
+
|
202207
|
+
case '/':
|
202208
|
+
read()
|
202209
|
+
lexState = 'comment'
|
202210
|
+
return
|
202211
|
+
|
202212
|
+
case undefined:
|
202213
|
+
read()
|
202214
|
+
return newToken('eof')
|
202215
|
+
}
|
202216
|
+
|
202217
|
+
if (util.isSpaceSeparator(c)) {
|
202218
|
+
read()
|
202219
|
+
return
|
202220
|
+
}
|
202221
|
+
|
202222
|
+
// This code is unreachable.
|
202223
|
+
// if (!lexStates[parseState]) {
|
202224
|
+
// throw invalidLexState(parseState)
|
202225
|
+
// }
|
202226
|
+
|
202227
|
+
return lexStates[parseState]()
|
202228
|
+
},
|
202229
|
+
|
202230
|
+
comment () {
|
202231
|
+
switch (c) {
|
202232
|
+
case '*':
|
202233
|
+
read()
|
202234
|
+
lexState = 'multiLineComment'
|
202235
|
+
return
|
202236
|
+
|
202237
|
+
case '/':
|
202238
|
+
read()
|
202239
|
+
lexState = 'singleLineComment'
|
202240
|
+
return
|
202241
|
+
}
|
202242
|
+
|
202243
|
+
throw invalidChar(read())
|
202244
|
+
},
|
202245
|
+
|
202246
|
+
multiLineComment () {
|
202247
|
+
switch (c) {
|
202248
|
+
case '*':
|
202249
|
+
read()
|
202250
|
+
lexState = 'multiLineCommentAsterisk'
|
202251
|
+
return
|
202252
|
+
|
202253
|
+
case undefined:
|
202254
|
+
throw invalidChar(read())
|
202255
|
+
}
|
202256
|
+
|
202257
|
+
read()
|
202258
|
+
},
|
202259
|
+
|
202260
|
+
multiLineCommentAsterisk () {
|
202261
|
+
switch (c) {
|
202262
|
+
case '*':
|
202263
|
+
read()
|
202264
|
+
return
|
202265
|
+
|
202266
|
+
case '/':
|
202267
|
+
read()
|
202268
|
+
lexState = 'default'
|
202269
|
+
return
|
202270
|
+
|
202271
|
+
case undefined:
|
202272
|
+
throw invalidChar(read())
|
202273
|
+
}
|
202274
|
+
|
202275
|
+
read()
|
202276
|
+
lexState = 'multiLineComment'
|
202277
|
+
},
|
202278
|
+
|
202279
|
+
singleLineComment () {
|
202280
|
+
switch (c) {
|
202281
|
+
case '\n':
|
202282
|
+
case '\r':
|
202283
|
+
case '\u2028':
|
202284
|
+
case '\u2029':
|
202285
|
+
read()
|
202286
|
+
lexState = 'default'
|
202287
|
+
return
|
202288
|
+
|
202289
|
+
case undefined:
|
202290
|
+
read()
|
202291
|
+
return newToken('eof')
|
202292
|
+
}
|
202293
|
+
|
202294
|
+
read()
|
202295
|
+
},
|
202296
|
+
|
202297
|
+
value () {
|
202298
|
+
switch (c) {
|
202299
|
+
case '{':
|
202300
|
+
case '[':
|
202301
|
+
return newToken('punctuator', read())
|
202302
|
+
|
202303
|
+
case 'n':
|
202304
|
+
read()
|
202305
|
+
literal('ull')
|
202306
|
+
return newToken('null', null)
|
202307
|
+
|
202308
|
+
case 't':
|
202309
|
+
read()
|
202310
|
+
literal('rue')
|
202311
|
+
return newToken('boolean', true)
|
202312
|
+
|
202313
|
+
case 'f':
|
202314
|
+
read()
|
202315
|
+
literal('alse')
|
202316
|
+
return newToken('boolean', false)
|
202317
|
+
|
202318
|
+
case '-':
|
202319
|
+
case '+':
|
202320
|
+
if (read() === '-') {
|
202321
|
+
sign = -1
|
202322
|
+
}
|
202323
|
+
|
202324
|
+
lexState = 'sign'
|
202325
|
+
return
|
202326
|
+
|
202327
|
+
case '.':
|
202328
|
+
buffer = read()
|
202329
|
+
lexState = 'decimalPointLeading'
|
202330
|
+
return
|
202331
|
+
|
202332
|
+
case '0':
|
202333
|
+
buffer = read()
|
202334
|
+
lexState = 'zero'
|
202335
|
+
return
|
202336
|
+
|
202337
|
+
case '1':
|
202338
|
+
case '2':
|
202339
|
+
case '3':
|
202340
|
+
case '4':
|
202341
|
+
case '5':
|
202342
|
+
case '6':
|
202343
|
+
case '7':
|
202344
|
+
case '8':
|
202345
|
+
case '9':
|
202346
|
+
buffer = read()
|
202347
|
+
lexState = 'decimalInteger'
|
202348
|
+
return
|
202349
|
+
|
202350
|
+
case 'I':
|
202351
|
+
read()
|
202352
|
+
literal('nfinity')
|
202353
|
+
return newToken('numeric', Infinity)
|
202354
|
+
|
202355
|
+
case 'N':
|
202356
|
+
read()
|
202357
|
+
literal('aN')
|
202358
|
+
return newToken('numeric', NaN)
|
202359
|
+
|
202360
|
+
case '"':
|
202361
|
+
case "'":
|
202362
|
+
doubleQuote = (read() === '"')
|
202363
|
+
buffer = ''
|
202364
|
+
lexState = 'string'
|
202365
|
+
return
|
202366
|
+
}
|
202367
|
+
|
202368
|
+
throw invalidChar(read())
|
202369
|
+
},
|
202370
|
+
|
202371
|
+
identifierNameStartEscape () {
|
202372
|
+
if (c !== 'u') {
|
202373
|
+
throw invalidChar(read())
|
202374
|
+
}
|
202375
|
+
|
202376
|
+
read()
|
202377
|
+
const u = unicodeEscape()
|
202378
|
+
switch (u) {
|
202379
|
+
case '$':
|
202380
|
+
case '_':
|
202381
|
+
break
|
202382
|
+
|
202383
|
+
default:
|
202384
|
+
if (!util.isIdStartChar(u)) {
|
202385
|
+
throw invalidIdentifier()
|
202386
|
+
}
|
202387
|
+
|
202388
|
+
break
|
202389
|
+
}
|
202390
|
+
|
202391
|
+
buffer += u
|
202392
|
+
lexState = 'identifierName'
|
202393
|
+
},
|
202394
|
+
|
202395
|
+
identifierName () {
|
202396
|
+
switch (c) {
|
202397
|
+
case '$':
|
202398
|
+
case '_':
|
202399
|
+
case '\u200C':
|
202400
|
+
case '\u200D':
|
202401
|
+
buffer += read()
|
202402
|
+
return
|
202403
|
+
|
202404
|
+
case '\\':
|
202405
|
+
read()
|
202406
|
+
lexState = 'identifierNameEscape'
|
202407
|
+
return
|
202408
|
+
}
|
202409
|
+
|
202410
|
+
if (util.isIdContinueChar(c)) {
|
202411
|
+
buffer += read()
|
202412
|
+
return
|
202413
|
+
}
|
202414
|
+
|
202415
|
+
return newToken('identifier', buffer)
|
202416
|
+
},
|
202417
|
+
|
202418
|
+
identifierNameEscape () {
|
202419
|
+
if (c !== 'u') {
|
202420
|
+
throw invalidChar(read())
|
202421
|
+
}
|
202422
|
+
|
202423
|
+
read()
|
202424
|
+
const u = unicodeEscape()
|
202425
|
+
switch (u) {
|
202426
|
+
case '$':
|
202427
|
+
case '_':
|
202428
|
+
case '\u200C':
|
202429
|
+
case '\u200D':
|
202430
|
+
break
|
202431
|
+
|
202432
|
+
default:
|
202433
|
+
if (!util.isIdContinueChar(u)) {
|
202434
|
+
throw invalidIdentifier()
|
202435
|
+
}
|
202436
|
+
|
202437
|
+
break
|
202438
|
+
}
|
202439
|
+
|
202440
|
+
buffer += u
|
202441
|
+
lexState = 'identifierName'
|
202442
|
+
},
|
202443
|
+
|
202444
|
+
sign () {
|
202445
|
+
switch (c) {
|
202446
|
+
case '.':
|
202447
|
+
buffer = read()
|
202448
|
+
lexState = 'decimalPointLeading'
|
202449
|
+
return
|
202450
|
+
|
202451
|
+
case '0':
|
202452
|
+
buffer = read()
|
202453
|
+
lexState = 'zero'
|
202454
|
+
return
|
202455
|
+
|
202456
|
+
case '1':
|
202457
|
+
case '2':
|
202458
|
+
case '3':
|
202459
|
+
case '4':
|
202460
|
+
case '5':
|
202461
|
+
case '6':
|
202462
|
+
case '7':
|
202463
|
+
case '8':
|
202464
|
+
case '9':
|
202465
|
+
buffer = read()
|
202466
|
+
lexState = 'decimalInteger'
|
202467
|
+
return
|
202468
|
+
|
202469
|
+
case 'I':
|
202470
|
+
read()
|
202471
|
+
literal('nfinity')
|
202472
|
+
return newToken('numeric', sign * Infinity)
|
202473
|
+
|
202474
|
+
case 'N':
|
202475
|
+
read()
|
202476
|
+
literal('aN')
|
202477
|
+
return newToken('numeric', NaN)
|
202478
|
+
}
|
202479
|
+
|
202480
|
+
throw invalidChar(read())
|
202481
|
+
},
|
202482
|
+
|
202483
|
+
zero () {
|
202484
|
+
switch (c) {
|
202485
|
+
case '.':
|
202486
|
+
buffer += read()
|
202487
|
+
lexState = 'decimalPoint'
|
202488
|
+
return
|
202489
|
+
|
202490
|
+
case 'e':
|
202491
|
+
case 'E':
|
202492
|
+
buffer += read()
|
202493
|
+
lexState = 'decimalExponent'
|
202494
|
+
return
|
202495
|
+
|
202496
|
+
case 'x':
|
202497
|
+
case 'X':
|
202498
|
+
buffer += read()
|
202499
|
+
lexState = 'hexadecimal'
|
202500
|
+
return
|
202501
|
+
}
|
202502
|
+
|
202503
|
+
return newToken('numeric', sign * 0)
|
202504
|
+
},
|
202505
|
+
|
202506
|
+
decimalInteger () {
|
202507
|
+
switch (c) {
|
202508
|
+
case '.':
|
202509
|
+
buffer += read()
|
202510
|
+
lexState = 'decimalPoint'
|
202511
|
+
return
|
202512
|
+
|
202513
|
+
case 'e':
|
202514
|
+
case 'E':
|
202515
|
+
buffer += read()
|
202516
|
+
lexState = 'decimalExponent'
|
202517
|
+
return
|
202518
|
+
}
|
202519
|
+
|
202520
|
+
if (util.isDigit(c)) {
|
202521
|
+
buffer += read()
|
202522
|
+
return
|
202523
|
+
}
|
202524
|
+
|
202525
|
+
return newToken('numeric', sign * Number(buffer))
|
202526
|
+
},
|
202527
|
+
|
202528
|
+
decimalPointLeading () {
|
202529
|
+
if (util.isDigit(c)) {
|
202530
|
+
buffer += read()
|
202531
|
+
lexState = 'decimalFraction'
|
202532
|
+
return
|
202533
|
+
}
|
202534
|
+
|
202535
|
+
throw invalidChar(read())
|
202536
|
+
},
|
202537
|
+
|
202538
|
+
decimalPoint () {
|
202539
|
+
switch (c) {
|
202540
|
+
case 'e':
|
202541
|
+
case 'E':
|
202542
|
+
buffer += read()
|
202543
|
+
lexState = 'decimalExponent'
|
202544
|
+
return
|
202545
|
+
}
|
202546
|
+
|
202547
|
+
if (util.isDigit(c)) {
|
202548
|
+
buffer += read()
|
202549
|
+
lexState = 'decimalFraction'
|
202550
|
+
return
|
202551
|
+
}
|
202552
|
+
|
202553
|
+
return newToken('numeric', sign * Number(buffer))
|
202554
|
+
},
|
202555
|
+
|
202556
|
+
decimalFraction () {
|
202557
|
+
switch (c) {
|
202558
|
+
case 'e':
|
202559
|
+
case 'E':
|
202560
|
+
buffer += read()
|
202561
|
+
lexState = 'decimalExponent'
|
202562
|
+
return
|
202563
|
+
}
|
202564
|
+
|
202565
|
+
if (util.isDigit(c)) {
|
202566
|
+
buffer += read()
|
202567
|
+
return
|
202568
|
+
}
|
202569
|
+
|
202570
|
+
return newToken('numeric', sign * Number(buffer))
|
202571
|
+
},
|
202572
|
+
|
202573
|
+
decimalExponent () {
|
202574
|
+
switch (c) {
|
202575
|
+
case '+':
|
202576
|
+
case '-':
|
202577
|
+
buffer += read()
|
202578
|
+
lexState = 'decimalExponentSign'
|
202579
|
+
return
|
202580
|
+
}
|
202581
|
+
|
202582
|
+
if (util.isDigit(c)) {
|
202583
|
+
buffer += read()
|
202584
|
+
lexState = 'decimalExponentInteger'
|
202585
|
+
return
|
202586
|
+
}
|
202587
|
+
|
202588
|
+
throw invalidChar(read())
|
202589
|
+
},
|
202590
|
+
|
202591
|
+
decimalExponentSign () {
|
202592
|
+
if (util.isDigit(c)) {
|
202593
|
+
buffer += read()
|
202594
|
+
lexState = 'decimalExponentInteger'
|
202595
|
+
return
|
202596
|
+
}
|
202597
|
+
|
202598
|
+
throw invalidChar(read())
|
202599
|
+
},
|
202600
|
+
|
202601
|
+
decimalExponentInteger () {
|
202602
|
+
if (util.isDigit(c)) {
|
202603
|
+
buffer += read()
|
202604
|
+
return
|
202605
|
+
}
|
202606
|
+
|
202607
|
+
return newToken('numeric', sign * Number(buffer))
|
202608
|
+
},
|
202609
|
+
|
202610
|
+
hexadecimal () {
|
202611
|
+
if (util.isHexDigit(c)) {
|
202612
|
+
buffer += read()
|
202613
|
+
lexState = 'hexadecimalInteger'
|
202614
|
+
return
|
202615
|
+
}
|
202616
|
+
|
202617
|
+
throw invalidChar(read())
|
202618
|
+
},
|
202619
|
+
|
202620
|
+
hexadecimalInteger () {
|
202621
|
+
if (util.isHexDigit(c)) {
|
202622
|
+
buffer += read()
|
202623
|
+
return
|
202624
|
+
}
|
202625
|
+
|
202626
|
+
return newToken('numeric', sign * Number(buffer))
|
202627
|
+
},
|
202628
|
+
|
202629
|
+
string () {
|
202630
|
+
switch (c) {
|
202631
|
+
case '\\':
|
202632
|
+
read()
|
202633
|
+
buffer += escape()
|
202634
|
+
return
|
202635
|
+
|
202636
|
+
case '"':
|
202637
|
+
if (doubleQuote) {
|
202638
|
+
read()
|
202639
|
+
return newToken('string', buffer)
|
202640
|
+
}
|
202641
|
+
|
202642
|
+
buffer += read()
|
202643
|
+
return
|
202644
|
+
|
202645
|
+
case "'":
|
202646
|
+
if (!doubleQuote) {
|
202647
|
+
read()
|
202648
|
+
return newToken('string', buffer)
|
202649
|
+
}
|
202650
|
+
|
202651
|
+
buffer += read()
|
202652
|
+
return
|
202653
|
+
|
202654
|
+
case '\n':
|
202655
|
+
case '\r':
|
202656
|
+
throw invalidChar(read())
|
202657
|
+
|
202658
|
+
case '\u2028':
|
202659
|
+
case '\u2029':
|
202660
|
+
separatorChar(c)
|
202661
|
+
break
|
202662
|
+
|
202663
|
+
case undefined:
|
202664
|
+
throw invalidChar(read())
|
202665
|
+
}
|
202666
|
+
|
202667
|
+
buffer += read()
|
202668
|
+
},
|
202669
|
+
|
202670
|
+
start () {
|
202671
|
+
switch (c) {
|
202672
|
+
case '{':
|
202673
|
+
case '[':
|
202674
|
+
return newToken('punctuator', read())
|
202675
|
+
|
202676
|
+
// This code is unreachable since the default lexState handles eof.
|
202677
|
+
// case undefined:
|
202678
|
+
// return newToken('eof')
|
202679
|
+
}
|
202680
|
+
|
202681
|
+
lexState = 'value'
|
202682
|
+
},
|
202683
|
+
|
202684
|
+
beforePropertyName () {
|
202685
|
+
switch (c) {
|
202686
|
+
case '$':
|
202687
|
+
case '_':
|
202688
|
+
buffer = read()
|
202689
|
+
lexState = 'identifierName'
|
202690
|
+
return
|
202691
|
+
|
202692
|
+
case '\\':
|
202693
|
+
read()
|
202694
|
+
lexState = 'identifierNameStartEscape'
|
202695
|
+
return
|
202696
|
+
|
202697
|
+
case '}':
|
202698
|
+
return newToken('punctuator', read())
|
202699
|
+
|
202700
|
+
case '"':
|
202701
|
+
case "'":
|
202702
|
+
doubleQuote = (read() === '"')
|
202703
|
+
lexState = 'string'
|
202704
|
+
return
|
202705
|
+
}
|
202706
|
+
|
202707
|
+
if (util.isIdStartChar(c)) {
|
202708
|
+
buffer += read()
|
202709
|
+
lexState = 'identifierName'
|
202710
|
+
return
|
202711
|
+
}
|
202712
|
+
|
202713
|
+
throw invalidChar(read())
|
202714
|
+
},
|
202715
|
+
|
202716
|
+
afterPropertyName () {
|
202717
|
+
if (c === ':') {
|
202718
|
+
return newToken('punctuator', read())
|
202719
|
+
}
|
202720
|
+
|
202721
|
+
throw invalidChar(read())
|
202722
|
+
},
|
202723
|
+
|
202724
|
+
beforePropertyValue () {
|
202725
|
+
lexState = 'value'
|
202726
|
+
},
|
202727
|
+
|
202728
|
+
afterPropertyValue () {
|
202729
|
+
switch (c) {
|
202730
|
+
case ',':
|
202731
|
+
case '}':
|
202732
|
+
return newToken('punctuator', read())
|
202733
|
+
}
|
202734
|
+
|
202735
|
+
throw invalidChar(read())
|
202736
|
+
},
|
202737
|
+
|
202738
|
+
beforeArrayValue () {
|
202739
|
+
if (c === ']') {
|
202740
|
+
return newToken('punctuator', read())
|
202741
|
+
}
|
202742
|
+
|
202743
|
+
lexState = 'value'
|
202744
|
+
},
|
202745
|
+
|
202746
|
+
afterArrayValue () {
|
202747
|
+
switch (c) {
|
202748
|
+
case ',':
|
202749
|
+
case ']':
|
202750
|
+
return newToken('punctuator', read())
|
202751
|
+
}
|
202752
|
+
|
202753
|
+
throw invalidChar(read())
|
202754
|
+
},
|
202755
|
+
|
202756
|
+
end () {
|
202757
|
+
// This code is unreachable since it's handled by the default lexState.
|
202758
|
+
// if (c === undefined) {
|
202759
|
+
// read()
|
202760
|
+
// return newToken('eof')
|
202761
|
+
// }
|
202762
|
+
|
202763
|
+
throw invalidChar(read())
|
202764
|
+
},
|
202765
|
+
}
|
202766
|
+
|
202767
|
+
function newToken (type, value) {
|
202768
|
+
return {
|
202769
|
+
type,
|
202770
|
+
value,
|
202771
|
+
line,
|
202772
|
+
column,
|
202773
|
+
}
|
202774
|
+
}
|
202775
|
+
|
202776
|
+
function literal (s) {
|
202777
|
+
for (const c of s) {
|
202778
|
+
const p = peek()
|
202779
|
+
|
202780
|
+
if (p !== c) {
|
202781
|
+
throw invalidChar(read())
|
202782
|
+
}
|
202783
|
+
|
202784
|
+
read()
|
202785
|
+
}
|
202786
|
+
}
|
202787
|
+
|
202788
|
+
function escape () {
|
202789
|
+
const c = peek()
|
202790
|
+
switch (c) {
|
202791
|
+
case 'b':
|
202792
|
+
read()
|
202793
|
+
return '\b'
|
202794
|
+
|
202795
|
+
case 'f':
|
202796
|
+
read()
|
202797
|
+
return '\f'
|
202798
|
+
|
202799
|
+
case 'n':
|
202800
|
+
read()
|
202801
|
+
return '\n'
|
202802
|
+
|
202803
|
+
case 'r':
|
202804
|
+
read()
|
202805
|
+
return '\r'
|
202806
|
+
|
202807
|
+
case 't':
|
202808
|
+
read()
|
202809
|
+
return '\t'
|
202810
|
+
|
202811
|
+
case 'v':
|
202812
|
+
read()
|
202813
|
+
return '\v'
|
202814
|
+
|
202815
|
+
case '0':
|
202816
|
+
read()
|
202817
|
+
if (util.isDigit(peek())) {
|
202818
|
+
throw invalidChar(read())
|
202819
|
+
}
|
202820
|
+
|
202821
|
+
return '\0'
|
202822
|
+
|
202823
|
+
case 'x':
|
202824
|
+
read()
|
202825
|
+
return hexEscape()
|
202826
|
+
|
202827
|
+
case 'u':
|
202828
|
+
read()
|
202829
|
+
return unicodeEscape()
|
202830
|
+
|
202831
|
+
case '\n':
|
202832
|
+
case '\u2028':
|
202833
|
+
case '\u2029':
|
202834
|
+
read()
|
202835
|
+
return ''
|
202836
|
+
|
202837
|
+
case '\r':
|
202838
|
+
read()
|
202839
|
+
if (peek() === '\n') {
|
202840
|
+
read()
|
202841
|
+
}
|
202842
|
+
|
202843
|
+
return ''
|
202844
|
+
|
202845
|
+
case '1':
|
202846
|
+
case '2':
|
202847
|
+
case '3':
|
202848
|
+
case '4':
|
202849
|
+
case '5':
|
202850
|
+
case '6':
|
202851
|
+
case '7':
|
202852
|
+
case '8':
|
202853
|
+
case '9':
|
202854
|
+
throw invalidChar(read())
|
202855
|
+
|
202856
|
+
case undefined:
|
202857
|
+
throw invalidChar(read())
|
202858
|
+
}
|
202859
|
+
|
202860
|
+
return read()
|
202861
|
+
}
|
202862
|
+
|
202863
|
+
function hexEscape () {
|
202864
|
+
let buffer = ''
|
202865
|
+
let c = peek()
|
202866
|
+
|
202867
|
+
if (!util.isHexDigit(c)) {
|
202868
|
+
throw invalidChar(read())
|
202869
|
+
}
|
202870
|
+
|
202871
|
+
buffer += read()
|
202872
|
+
|
202873
|
+
c = peek()
|
202874
|
+
if (!util.isHexDigit(c)) {
|
202875
|
+
throw invalidChar(read())
|
202876
|
+
}
|
202877
|
+
|
202878
|
+
buffer += read()
|
202879
|
+
|
202880
|
+
return String.fromCodePoint(parseInt(buffer, 16))
|
202881
|
+
}
|
202882
|
+
|
202883
|
+
function unicodeEscape () {
|
202884
|
+
let buffer = ''
|
202885
|
+
let count = 4
|
202886
|
+
|
202887
|
+
while (count-- > 0) {
|
202888
|
+
const c = peek()
|
202889
|
+
if (!util.isHexDigit(c)) {
|
202890
|
+
throw invalidChar(read())
|
202891
|
+
}
|
202892
|
+
|
202893
|
+
buffer += read()
|
202894
|
+
}
|
202895
|
+
|
202896
|
+
return String.fromCodePoint(parseInt(buffer, 16))
|
202897
|
+
}
|
202898
|
+
|
202899
|
+
const parseStates = {
|
202900
|
+
start () {
|
202901
|
+
if (token.type === 'eof') {
|
202902
|
+
throw invalidEOF()
|
202903
|
+
}
|
202904
|
+
|
202905
|
+
push()
|
202906
|
+
},
|
202907
|
+
|
202908
|
+
beforePropertyName () {
|
202909
|
+
switch (token.type) {
|
202910
|
+
case 'identifier':
|
202911
|
+
case 'string':
|
202912
|
+
key = token.value
|
202913
|
+
parseState = 'afterPropertyName'
|
202914
|
+
return
|
202915
|
+
|
202916
|
+
case 'punctuator':
|
202917
|
+
// This code is unreachable since it's handled by the lexState.
|
202918
|
+
// if (token.value !== '}') {
|
202919
|
+
// throw invalidToken()
|
202920
|
+
// }
|
202921
|
+
|
202922
|
+
pop()
|
202923
|
+
return
|
202924
|
+
|
202925
|
+
case 'eof':
|
202926
|
+
throw invalidEOF()
|
202927
|
+
}
|
202928
|
+
|
202929
|
+
// This code is unreachable since it's handled by the lexState.
|
202930
|
+
// throw invalidToken()
|
202931
|
+
},
|
202932
|
+
|
202933
|
+
afterPropertyName () {
|
202934
|
+
// This code is unreachable since it's handled by the lexState.
|
202935
|
+
// if (token.type !== 'punctuator' || token.value !== ':') {
|
202936
|
+
// throw invalidToken()
|
202937
|
+
// }
|
202938
|
+
|
202939
|
+
if (token.type === 'eof') {
|
202940
|
+
throw invalidEOF()
|
202941
|
+
}
|
202942
|
+
|
202943
|
+
parseState = 'beforePropertyValue'
|
202944
|
+
},
|
202945
|
+
|
202946
|
+
beforePropertyValue () {
|
202947
|
+
if (token.type === 'eof') {
|
202948
|
+
throw invalidEOF()
|
202949
|
+
}
|
202950
|
+
|
202951
|
+
push()
|
202952
|
+
},
|
202953
|
+
|
202954
|
+
beforeArrayValue () {
|
202955
|
+
if (token.type === 'eof') {
|
202956
|
+
throw invalidEOF()
|
202957
|
+
}
|
202958
|
+
|
202959
|
+
if (token.type === 'punctuator' && token.value === ']') {
|
202960
|
+
pop()
|
202961
|
+
return
|
202962
|
+
}
|
202963
|
+
|
202964
|
+
push()
|
202965
|
+
},
|
202966
|
+
|
202967
|
+
afterPropertyValue () {
|
202968
|
+
// This code is unreachable since it's handled by the lexState.
|
202969
|
+
// if (token.type !== 'punctuator') {
|
202970
|
+
// throw invalidToken()
|
202971
|
+
// }
|
202972
|
+
|
202973
|
+
if (token.type === 'eof') {
|
202974
|
+
throw invalidEOF()
|
202975
|
+
}
|
202976
|
+
|
202977
|
+
switch (token.value) {
|
202978
|
+
case ',':
|
202979
|
+
parseState = 'beforePropertyName'
|
202980
|
+
return
|
202981
|
+
|
202982
|
+
case '}':
|
202983
|
+
pop()
|
202984
|
+
}
|
202985
|
+
|
202986
|
+
// This code is unreachable since it's handled by the lexState.
|
202987
|
+
// throw invalidToken()
|
202988
|
+
},
|
202989
|
+
|
202990
|
+
afterArrayValue () {
|
202991
|
+
// This code is unreachable since it's handled by the lexState.
|
202992
|
+
// if (token.type !== 'punctuator') {
|
202993
|
+
// throw invalidToken()
|
202994
|
+
// }
|
202995
|
+
|
202996
|
+
if (token.type === 'eof') {
|
202997
|
+
throw invalidEOF()
|
202998
|
+
}
|
202999
|
+
|
203000
|
+
switch (token.value) {
|
203001
|
+
case ',':
|
203002
|
+
parseState = 'beforeArrayValue'
|
203003
|
+
return
|
203004
|
+
|
203005
|
+
case ']':
|
203006
|
+
pop()
|
203007
|
+
}
|
203008
|
+
|
203009
|
+
// This code is unreachable since it's handled by the lexState.
|
203010
|
+
// throw invalidToken()
|
203011
|
+
},
|
203012
|
+
|
203013
|
+
end () {
|
203014
|
+
// This code is unreachable since it's handled by the lexState.
|
203015
|
+
// if (token.type !== 'eof') {
|
203016
|
+
// throw invalidToken()
|
203017
|
+
// }
|
203018
|
+
},
|
203019
|
+
}
|
203020
|
+
|
203021
|
+
function push () {
|
203022
|
+
let value
|
203023
|
+
|
203024
|
+
switch (token.type) {
|
203025
|
+
case 'punctuator':
|
203026
|
+
switch (token.value) {
|
203027
|
+
case '{':
|
203028
|
+
value = {}
|
203029
|
+
break
|
203030
|
+
|
203031
|
+
case '[':
|
203032
|
+
value = []
|
203033
|
+
break
|
203034
|
+
}
|
203035
|
+
|
203036
|
+
break
|
203037
|
+
|
203038
|
+
case 'null':
|
203039
|
+
case 'boolean':
|
203040
|
+
case 'numeric':
|
203041
|
+
case 'string':
|
203042
|
+
value = token.value
|
203043
|
+
break
|
203044
|
+
|
203045
|
+
// This code is unreachable.
|
203046
|
+
// default:
|
203047
|
+
// throw invalidToken()
|
203048
|
+
}
|
203049
|
+
|
203050
|
+
if (root === undefined) {
|
203051
|
+
root = value
|
203052
|
+
} else {
|
203053
|
+
const parent = stack[stack.length - 1]
|
203054
|
+
if (Array.isArray(parent)) {
|
203055
|
+
parent.push(value)
|
203056
|
+
} else {
|
203057
|
+
parent[key] = value
|
203058
|
+
}
|
203059
|
+
}
|
203060
|
+
|
203061
|
+
if (value !== null && typeof value === 'object') {
|
203062
|
+
stack.push(value)
|
203063
|
+
|
203064
|
+
if (Array.isArray(value)) {
|
203065
|
+
parseState = 'beforeArrayValue'
|
203066
|
+
} else {
|
203067
|
+
parseState = 'beforePropertyName'
|
203068
|
+
}
|
203069
|
+
} else {
|
203070
|
+
const current = stack[stack.length - 1]
|
203071
|
+
if (current == null) {
|
203072
|
+
parseState = 'end'
|
203073
|
+
} else if (Array.isArray(current)) {
|
203074
|
+
parseState = 'afterArrayValue'
|
203075
|
+
} else {
|
203076
|
+
parseState = 'afterPropertyValue'
|
203077
|
+
}
|
203078
|
+
}
|
203079
|
+
}
|
203080
|
+
|
203081
|
+
function pop () {
|
203082
|
+
stack.pop()
|
203083
|
+
|
203084
|
+
const current = stack[stack.length - 1]
|
203085
|
+
if (current == null) {
|
203086
|
+
parseState = 'end'
|
203087
|
+
} else if (Array.isArray(current)) {
|
203088
|
+
parseState = 'afterArrayValue'
|
203089
|
+
} else {
|
203090
|
+
parseState = 'afterPropertyValue'
|
203091
|
+
}
|
203092
|
+
}
|
203093
|
+
|
203094
|
+
// This code is unreachable.
|
203095
|
+
// function invalidParseState () {
|
203096
|
+
// return new Error(`JSON5: invalid parse state '${parseState}'`)
|
203097
|
+
// }
|
203098
|
+
|
203099
|
+
// This code is unreachable.
|
203100
|
+
// function invalidLexState (state) {
|
203101
|
+
// return new Error(`JSON5: invalid lex state '${state}'`)
|
203102
|
+
// }
|
203103
|
+
|
203104
|
+
function invalidChar (c) {
|
203105
|
+
if (c === undefined) {
|
203106
|
+
return syntaxError(`JSON5: invalid end of input at ${line}:${column}`)
|
203107
|
+
}
|
203108
|
+
|
203109
|
+
return syntaxError(`JSON5: invalid character '${formatChar(c)}' at ${line}:${column}`)
|
203110
|
+
}
|
203111
|
+
|
203112
|
+
function invalidEOF () {
|
203113
|
+
return syntaxError(`JSON5: invalid end of input at ${line}:${column}`)
|
203114
|
+
}
|
203115
|
+
|
203116
|
+
// This code is unreachable.
|
203117
|
+
// function invalidToken () {
|
203118
|
+
// if (token.type === 'eof') {
|
203119
|
+
// return syntaxError(`JSON5: invalid end of input at ${line}:${column}`)
|
203120
|
+
// }
|
203121
|
+
|
203122
|
+
// const c = String.fromCodePoint(token.value.codePointAt(0))
|
203123
|
+
// return syntaxError(`JSON5: invalid character '${formatChar(c)}' at ${line}:${column}`)
|
203124
|
+
// }
|
203125
|
+
|
203126
|
+
function invalidIdentifier () {
|
203127
|
+
column -= 5
|
203128
|
+
return syntaxError(`JSON5: invalid identifier character at ${line}:${column}`)
|
203129
|
+
}
|
203130
|
+
|
203131
|
+
function separatorChar (c) {
|
203132
|
+
console.warn(`JSON5: '${formatChar(c)}' in strings is not valid ECMAScript; consider escaping`)
|
203133
|
+
}
|
203134
|
+
|
203135
|
+
function formatChar (c) {
|
203136
|
+
const replacements = {
|
203137
|
+
"'": "\\'",
|
203138
|
+
'"': '\\"',
|
203139
|
+
'\\': '\\\\',
|
203140
|
+
'\b': '\\b',
|
203141
|
+
'\f': '\\f',
|
203142
|
+
'\n': '\\n',
|
203143
|
+
'\r': '\\r',
|
203144
|
+
'\t': '\\t',
|
203145
|
+
'\v': '\\v',
|
203146
|
+
'\0': '\\0',
|
203147
|
+
'\u2028': '\\u2028',
|
203148
|
+
'\u2029': '\\u2029',
|
203149
|
+
}
|
203150
|
+
|
203151
|
+
if (replacements[c]) {
|
203152
|
+
return replacements[c]
|
203153
|
+
}
|
203154
|
+
|
203155
|
+
if (c < ' ') {
|
203156
|
+
const hexString = c.charCodeAt(0).toString(16)
|
203157
|
+
return '\\x' + ('00' + hexString).substring(hexString.length)
|
203158
|
+
}
|
203159
|
+
|
203160
|
+
return c
|
203161
|
+
}
|
203162
|
+
|
203163
|
+
function syntaxError (message) {
|
203164
|
+
const err = new SyntaxError(message)
|
203165
|
+
err.lineNumber = line
|
203166
|
+
err.columnNumber = column
|
203167
|
+
return err
|
203168
|
+
}
|
203169
|
+
|
203170
|
+
|
203171
|
+
/***/ }),
|
203172
|
+
|
203173
|
+
/***/ 49785:
|
203174
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
203175
|
+
|
203176
|
+
const util = __webpack_require__(3825)
|
203177
|
+
|
203178
|
+
module.exports = function stringify (value, replacer, space) {
|
203179
|
+
const stack = []
|
203180
|
+
let indent = ''
|
203181
|
+
let propertyList
|
203182
|
+
let replacerFunc
|
203183
|
+
let gap = ''
|
203184
|
+
let quote
|
203185
|
+
|
203186
|
+
if (
|
203187
|
+
replacer != null &&
|
203188
|
+
typeof replacer === 'object' &&
|
203189
|
+
!Array.isArray(replacer)
|
203190
|
+
) {
|
203191
|
+
space = replacer.space
|
203192
|
+
quote = replacer.quote
|
203193
|
+
replacer = replacer.replacer
|
203194
|
+
}
|
203195
|
+
|
203196
|
+
if (typeof replacer === 'function') {
|
203197
|
+
replacerFunc = replacer
|
203198
|
+
} else if (Array.isArray(replacer)) {
|
203199
|
+
propertyList = []
|
203200
|
+
for (const v of replacer) {
|
203201
|
+
let item
|
201734
203202
|
|
201735
|
-
|
201736
|
-
|
203203
|
+
if (typeof v === 'string') {
|
203204
|
+
item = v
|
203205
|
+
} else if (
|
203206
|
+
typeof v === 'number' ||
|
203207
|
+
v instanceof String ||
|
203208
|
+
v instanceof Number
|
203209
|
+
) {
|
203210
|
+
item = String(v)
|
203211
|
+
}
|
201737
203212
|
|
201738
|
-
|
203213
|
+
if (item !== undefined && propertyList.indexOf(item) < 0) {
|
203214
|
+
propertyList.push(item)
|
203215
|
+
}
|
203216
|
+
}
|
203217
|
+
}
|
201739
203218
|
|
203219
|
+
if (space instanceof Number) {
|
203220
|
+
space = Number(space)
|
203221
|
+
} else if (space instanceof String) {
|
203222
|
+
space = String(space)
|
203223
|
+
}
|
201740
203224
|
|
201741
|
-
|
201742
|
-
|
201743
|
-
|
201744
|
-
|
201745
|
-
|
201746
|
-
}
|
203225
|
+
if (typeof space === 'number') {
|
203226
|
+
if (space > 0) {
|
203227
|
+
space = Math.min(10, Math.floor(space))
|
203228
|
+
gap = ' '.substr(0, space)
|
203229
|
+
}
|
203230
|
+
} else if (typeof space === 'string') {
|
203231
|
+
gap = space.substr(0, 10)
|
203232
|
+
}
|
201747
203233
|
|
203234
|
+
return serializeProperty('', {'': value})
|
201748
203235
|
|
201749
|
-
|
203236
|
+
function serializeProperty (key, holder) {
|
203237
|
+
let value = holder[key]
|
203238
|
+
if (value != null) {
|
203239
|
+
if (typeof value.toJSON5 === 'function') {
|
203240
|
+
value = value.toJSON5(key)
|
203241
|
+
} else if (typeof value.toJSON === 'function') {
|
203242
|
+
value = value.toJSON(key)
|
203243
|
+
}
|
203244
|
+
}
|
201750
203245
|
|
201751
|
-
|
201752
|
-
|
203246
|
+
if (replacerFunc) {
|
203247
|
+
value = replacerFunc.call(holder, key, value)
|
203248
|
+
}
|
201753
203249
|
|
201754
|
-
|
203250
|
+
if (value instanceof Number) {
|
203251
|
+
value = Number(value)
|
203252
|
+
} else if (value instanceof String) {
|
203253
|
+
value = String(value)
|
203254
|
+
} else if (value instanceof Boolean) {
|
203255
|
+
value = value.valueOf()
|
203256
|
+
}
|
201755
203257
|
|
201756
|
-
|
201757
|
-
|
201758
|
-
|
203258
|
+
switch (value) {
|
203259
|
+
case null: return 'null'
|
203260
|
+
case true: return 'true'
|
203261
|
+
case false: return 'false'
|
203262
|
+
}
|
201759
203263
|
|
201760
|
-
|
201761
|
-
|
201762
|
-
|
203264
|
+
if (typeof value === 'string') {
|
203265
|
+
return quoteString(value, false)
|
203266
|
+
}
|
201763
203267
|
|
201764
|
-
|
201765
|
-
|
201766
|
-
|
201767
|
-
whitespace: false,
|
201768
|
-
}
|
201769
|
-
} else {
|
201770
|
-
opt = opt || Object.create(null)
|
201771
|
-
opt.whitespace = opt.whitespace === true
|
201772
|
-
}
|
203268
|
+
if (typeof value === 'number') {
|
203269
|
+
return String(value)
|
203270
|
+
}
|
201773
203271
|
|
201774
|
-
|
203272
|
+
if (typeof value === 'object') {
|
203273
|
+
return Array.isArray(value) ? serializeArray(value) : serializeObject(value)
|
203274
|
+
}
|
201775
203275
|
|
201776
|
-
|
201777
|
-
const val = obj[k]
|
201778
|
-
if (val && Array.isArray(val)) {
|
201779
|
-
for (const item of val) {
|
201780
|
-
out += safe(k + '[]') + separator + safe(item) + eol
|
201781
|
-
}
|
201782
|
-
} else if (val && typeof val === 'object') {
|
201783
|
-
children.push(k)
|
201784
|
-
} else {
|
201785
|
-
out += safe(k) + separator + safe(val) + eol
|
203276
|
+
return undefined
|
201786
203277
|
}
|
201787
|
-
}
|
201788
203278
|
|
201789
|
-
|
201790
|
-
|
201791
|
-
|
203279
|
+
function quoteString (value) {
|
203280
|
+
const quotes = {
|
203281
|
+
"'": 0.1,
|
203282
|
+
'"': 0.2,
|
203283
|
+
}
|
201792
203284
|
|
201793
|
-
|
201794
|
-
|
201795
|
-
|
201796
|
-
|
201797
|
-
|
201798
|
-
|
201799
|
-
|
201800
|
-
|
201801
|
-
|
201802
|
-
|
201803
|
-
|
203285
|
+
const replacements = {
|
203286
|
+
"'": "\\'",
|
203287
|
+
'"': '\\"',
|
203288
|
+
'\\': '\\\\',
|
203289
|
+
'\b': '\\b',
|
203290
|
+
'\f': '\\f',
|
203291
|
+
'\n': '\\n',
|
203292
|
+
'\r': '\\r',
|
203293
|
+
'\t': '\\t',
|
203294
|
+
'\v': '\\v',
|
203295
|
+
'\0': '\\0',
|
203296
|
+
'\u2028': '\\u2028',
|
203297
|
+
'\u2029': '\\u2029',
|
203298
|
+
}
|
201804
203299
|
|
201805
|
-
|
201806
|
-
}
|
203300
|
+
let product = ''
|
201807
203301
|
|
201808
|
-
|
201809
|
-
|
203302
|
+
for (let i = 0; i < value.length; i++) {
|
203303
|
+
const c = value[i]
|
203304
|
+
switch (c) {
|
203305
|
+
case "'":
|
203306
|
+
case '"':
|
203307
|
+
quotes[c]++
|
203308
|
+
product += c
|
203309
|
+
continue
|
201810
203310
|
|
201811
|
-
|
201812
|
-
|
201813
|
-
|
201814
|
-
|
201815
|
-
|
201816
|
-
|
201817
|
-
.replace(/\2LITERAL\\1LITERAL\2/g, '\u0001'))
|
203311
|
+
case '\0':
|
203312
|
+
if (util.isDigit(value[i + 1])) {
|
203313
|
+
product += '\\x00'
|
203314
|
+
continue
|
203315
|
+
}
|
203316
|
+
}
|
201818
203317
|
|
201819
|
-
|
201820
|
-
|
201821
|
-
|
201822
|
-
|
201823
|
-
// section |key = value
|
201824
|
-
const re = /^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i
|
201825
|
-
const lines = str.split(/[\r\n]+/g)
|
203318
|
+
if (replacements[c]) {
|
203319
|
+
product += replacements[c]
|
203320
|
+
continue
|
203321
|
+
}
|
201826
203322
|
|
201827
|
-
|
201828
|
-
|
201829
|
-
|
201830
|
-
|
201831
|
-
|
201832
|
-
if (!match) {
|
201833
|
-
continue
|
201834
|
-
}
|
201835
|
-
if (match[1] !== undefined) {
|
201836
|
-
section = unsafe(match[1])
|
201837
|
-
if (section === '__proto__') {
|
201838
|
-
// not allowed
|
201839
|
-
// keep parsing the section, but don't attach it.
|
201840
|
-
p = Object.create(null)
|
201841
|
-
continue
|
201842
|
-
}
|
201843
|
-
p = out[section] = out[section] || Object.create(null)
|
201844
|
-
continue
|
201845
|
-
}
|
201846
|
-
const keyRaw = unsafe(match[2])
|
201847
|
-
const isArray = keyRaw.length > 2 && keyRaw.slice(-2) === '[]'
|
201848
|
-
const key = isArray ? keyRaw.slice(0, -2) : keyRaw
|
201849
|
-
if (key === '__proto__') {
|
201850
|
-
continue
|
201851
|
-
}
|
201852
|
-
const valueRaw = match[3] ? unsafe(match[4]) : true
|
201853
|
-
const value = valueRaw === 'true' ||
|
201854
|
-
valueRaw === 'false' ||
|
201855
|
-
valueRaw === 'null' ? JSON.parse(valueRaw)
|
201856
|
-
: valueRaw
|
203323
|
+
if (c < ' ') {
|
203324
|
+
let hexString = c.charCodeAt(0).toString(16)
|
203325
|
+
product += '\\x' + ('00' + hexString).substring(hexString.length)
|
203326
|
+
continue
|
203327
|
+
}
|
201857
203328
|
|
201858
|
-
|
201859
|
-
|
201860
|
-
if (!hasOwnProperty.call(p, key)) {
|
201861
|
-
p[key] = []
|
201862
|
-
} else if (!Array.isArray(p[key])) {
|
201863
|
-
p[key] = [p[key]]
|
201864
|
-
}
|
201865
|
-
}
|
203329
|
+
product += c
|
203330
|
+
}
|
201866
203331
|
|
201867
|
-
|
201868
|
-
// array by accidentally forgetting the brackets
|
201869
|
-
if (Array.isArray(p[key])) {
|
201870
|
-
p[key].push(value)
|
201871
|
-
} else {
|
201872
|
-
p[key] = value
|
201873
|
-
}
|
201874
|
-
}
|
203332
|
+
const quoteChar = quote || Object.keys(quotes).reduce((a, b) => (quotes[a] < quotes[b]) ? a : b)
|
201875
203333
|
|
201876
|
-
|
201877
|
-
// use a filter to return the keys that have to be deleted.
|
201878
|
-
const remove = []
|
201879
|
-
for (const k of Object.keys(out)) {
|
201880
|
-
if (!hasOwnProperty.call(out, k) ||
|
201881
|
-
typeof out[k] !== 'object' ||
|
201882
|
-
Array.isArray(out[k])) {
|
201883
|
-
continue
|
201884
|
-
}
|
203334
|
+
product = product.replace(new RegExp(quoteChar, 'g'), replacements[quoteChar])
|
201885
203335
|
|
201886
|
-
|
201887
|
-
// if so, add it to that, and mark this one for deletion
|
201888
|
-
const parts = dotSplit(k)
|
201889
|
-
p = out
|
201890
|
-
const l = parts.pop()
|
201891
|
-
const nl = l.replace(/\\\./g, '.')
|
201892
|
-
for (const part of parts) {
|
201893
|
-
if (part === '__proto__') {
|
201894
|
-
continue
|
201895
|
-
}
|
201896
|
-
if (!hasOwnProperty.call(p, part) || typeof p[part] !== 'object') {
|
201897
|
-
p[part] = Object.create(null)
|
201898
|
-
}
|
201899
|
-
p = p[part]
|
201900
|
-
}
|
201901
|
-
if (p === out && nl === l) {
|
201902
|
-
continue
|
203336
|
+
return quoteChar + product + quoteChar
|
201903
203337
|
}
|
201904
203338
|
|
201905
|
-
|
201906
|
-
|
201907
|
-
|
201908
|
-
|
201909
|
-
delete out[del]
|
201910
|
-
}
|
203339
|
+
function serializeObject (value) {
|
203340
|
+
if (stack.indexOf(value) >= 0) {
|
203341
|
+
throw TypeError('Converting circular structure to JSON5')
|
203342
|
+
}
|
201911
203343
|
|
201912
|
-
|
201913
|
-
}
|
203344
|
+
stack.push(value)
|
201914
203345
|
|
201915
|
-
|
201916
|
-
|
201917
|
-
(val.startsWith("'") && val.endsWith("'"))
|
201918
|
-
}
|
203346
|
+
let stepback = indent
|
203347
|
+
indent = indent + gap
|
201919
203348
|
|
201920
|
-
|
201921
|
-
|
201922
|
-
|
201923
|
-
|
201924
|
-
|
201925
|
-
|
201926
|
-
|
201927
|
-
|
201928
|
-
|
201929
|
-
|
201930
|
-
|
201931
|
-
}
|
203349
|
+
let keys = propertyList || Object.keys(value)
|
203350
|
+
let partial = []
|
203351
|
+
for (const key of keys) {
|
203352
|
+
const propertyString = serializeProperty(key, value)
|
203353
|
+
if (propertyString !== undefined) {
|
203354
|
+
let member = serializeKey(key) + ':'
|
203355
|
+
if (gap !== '') {
|
203356
|
+
member += ' '
|
203357
|
+
}
|
203358
|
+
member += propertyString
|
203359
|
+
partial.push(member)
|
203360
|
+
}
|
203361
|
+
}
|
201932
203362
|
|
201933
|
-
|
201934
|
-
|
201935
|
-
|
201936
|
-
// remove the single quotes before calling JSON.parse
|
201937
|
-
if (val.charAt(0) === "'") {
|
201938
|
-
val = val.slice(1, -1)
|
201939
|
-
}
|
201940
|
-
try {
|
201941
|
-
val = JSON.parse(val)
|
201942
|
-
} catch (_) {}
|
201943
|
-
} else {
|
201944
|
-
// walk the val to find the first not-escaped ; character
|
201945
|
-
let esc = false
|
201946
|
-
let unesc = ''
|
201947
|
-
for (let i = 0, l = val.length; i < l; i++) {
|
201948
|
-
const c = val.charAt(i)
|
201949
|
-
if (esc) {
|
201950
|
-
if ('\\;#'.indexOf(c) !== -1) {
|
201951
|
-
unesc += c
|
203363
|
+
let final
|
203364
|
+
if (partial.length === 0) {
|
203365
|
+
final = '{}'
|
201952
203366
|
} else {
|
201953
|
-
|
203367
|
+
let properties
|
203368
|
+
if (gap === '') {
|
203369
|
+
properties = partial.join(',')
|
203370
|
+
final = '{' + properties + '}'
|
203371
|
+
} else {
|
203372
|
+
let separator = ',\n' + indent
|
203373
|
+
properties = partial.join(separator)
|
203374
|
+
final = '{\n' + indent + properties + ',\n' + stepback + '}'
|
203375
|
+
}
|
201954
203376
|
}
|
201955
203377
|
|
201956
|
-
|
201957
|
-
|
201958
|
-
|
201959
|
-
} else if (c === '\\') {
|
201960
|
-
esc = true
|
201961
|
-
} else {
|
201962
|
-
unesc += c
|
201963
|
-
}
|
201964
|
-
}
|
201965
|
-
if (esc) {
|
201966
|
-
unesc += '\\'
|
203378
|
+
stack.pop()
|
203379
|
+
indent = stepback
|
203380
|
+
return final
|
201967
203381
|
}
|
201968
203382
|
|
201969
|
-
|
201970
|
-
|
201971
|
-
|
201972
|
-
}
|
201973
|
-
|
201974
|
-
module.exports = {
|
201975
|
-
parse: decode,
|
201976
|
-
decode,
|
201977
|
-
stringify: encode,
|
201978
|
-
encode,
|
201979
|
-
safe,
|
201980
|
-
unsafe,
|
201981
|
-
}
|
201982
|
-
|
203383
|
+
function serializeKey (key) {
|
203384
|
+
if (key.length === 0) {
|
203385
|
+
return quoteString(key, true)
|
203386
|
+
}
|
201983
203387
|
|
201984
|
-
|
203388
|
+
const firstChar = String.fromCodePoint(key.codePointAt(0))
|
203389
|
+
if (!util.isIdStartChar(firstChar)) {
|
203390
|
+
return quoteString(key, true)
|
203391
|
+
}
|
201985
203392
|
|
201986
|
-
|
201987
|
-
|
203393
|
+
for (let i = firstChar.length; i < key.length; i++) {
|
203394
|
+
if (!util.isIdContinueChar(String.fromCodePoint(key.codePointAt(i)))) {
|
203395
|
+
return quoteString(key, true)
|
203396
|
+
}
|
203397
|
+
}
|
201988
203398
|
|
201989
|
-
|
203399
|
+
return key
|
203400
|
+
}
|
201990
203401
|
|
201991
|
-
|
203402
|
+
function serializeArray (value) {
|
203403
|
+
if (stack.indexOf(value) >= 0) {
|
203404
|
+
throw TypeError('Converting circular structure to JSON5')
|
203405
|
+
}
|
201992
203406
|
|
201993
|
-
|
201994
|
-
const promise = new Promise(((resolve, reject) => {
|
201995
|
-
const socket = new net.Socket();
|
203407
|
+
stack.push(value)
|
201996
203408
|
|
201997
|
-
|
201998
|
-
|
201999
|
-
reject();
|
202000
|
-
};
|
203409
|
+
let stepback = indent
|
203410
|
+
indent = indent + gap
|
202001
203411
|
|
202002
|
-
|
202003
|
-
|
202004
|
-
|
203412
|
+
let partial = []
|
203413
|
+
for (let i = 0; i < value.length; i++) {
|
203414
|
+
const propertyString = serializeProperty(String(i), value)
|
203415
|
+
partial.push((propertyString !== undefined) ? propertyString : 'null')
|
203416
|
+
}
|
202005
203417
|
|
202006
|
-
|
202007
|
-
|
202008
|
-
|
202009
|
-
|
202010
|
-
|
203418
|
+
let final
|
203419
|
+
if (partial.length === 0) {
|
203420
|
+
final = '[]'
|
203421
|
+
} else {
|
203422
|
+
if (gap === '') {
|
203423
|
+
let properties = partial.join(',')
|
203424
|
+
final = '[' + properties + ']'
|
203425
|
+
} else {
|
203426
|
+
let separator = ',\n' + indent
|
203427
|
+
let properties = partial.join(separator)
|
203428
|
+
final = '[\n' + indent + properties + ',\n' + stepback + ']'
|
203429
|
+
}
|
203430
|
+
}
|
202011
203431
|
|
202012
|
-
|
202013
|
-
|
202014
|
-
|
202015
|
-
|
202016
|
-
|
202017
|
-
}
|
202018
|
-
};
|
203432
|
+
stack.pop()
|
203433
|
+
indent = stepback
|
203434
|
+
return final
|
203435
|
+
}
|
203436
|
+
}
|
202019
203437
|
|
202020
203438
|
|
202021
203439
|
/***/ }),
|
202022
203440
|
|
202023
|
-
/***/
|
203441
|
+
/***/ 83977:
|
202024
203442
|
/***/ ((module) => {
|
202025
203443
|
|
202026
|
-
|
203444
|
+
// This is a generated file. Do not edit.
|
203445
|
+
module.exports.Space_Separator = /[\u1680\u2000-\u200A\u202F\u205F\u3000]/
|
203446
|
+
module.exports.ID_Start = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/
|
203447
|
+
module.exports.ID_Continue = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/
|
202027
203448
|
|
202028
203449
|
|
202029
|
-
|
202030
|
-
stream !== null &&
|
202031
|
-
typeof stream === 'object' &&
|
202032
|
-
typeof stream.pipe === 'function';
|
203450
|
+
/***/ }),
|
202033
203451
|
|
202034
|
-
|
202035
|
-
|
202036
|
-
stream.writable !== false &&
|
202037
|
-
typeof stream._write === 'function' &&
|
202038
|
-
typeof stream._writableState === 'object';
|
203452
|
+
/***/ 3825:
|
203453
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
202039
203454
|
|
202040
|
-
|
202041
|
-
isStream(stream) &&
|
202042
|
-
stream.readable !== false &&
|
202043
|
-
typeof stream._read === 'function' &&
|
202044
|
-
typeof stream._readableState === 'object';
|
203455
|
+
const unicode = __webpack_require__(83977)
|
202045
203456
|
|
202046
|
-
|
202047
|
-
|
202048
|
-
|
203457
|
+
module.exports = {
|
203458
|
+
isSpaceSeparator (c) {
|
203459
|
+
return typeof c === 'string' && unicode.Space_Separator.test(c)
|
203460
|
+
},
|
202049
203461
|
|
202050
|
-
|
202051
|
-
|
202052
|
-
|
202053
|
-
|
203462
|
+
isIdStartChar (c) {
|
203463
|
+
return typeof c === 'string' && (
|
203464
|
+
(c >= 'a' && c <= 'z') ||
|
203465
|
+
(c >= 'A' && c <= 'Z') ||
|
203466
|
+
(c === '$') || (c === '_') ||
|
203467
|
+
unicode.ID_Start.test(c)
|
203468
|
+
)
|
203469
|
+
},
|
202054
203470
|
|
202055
|
-
|
203471
|
+
isIdContinueChar (c) {
|
203472
|
+
return typeof c === 'string' && (
|
203473
|
+
(c >= 'a' && c <= 'z') ||
|
203474
|
+
(c >= 'A' && c <= 'Z') ||
|
203475
|
+
(c >= '0' && c <= '9') ||
|
203476
|
+
(c === '$') || (c === '_') ||
|
203477
|
+
(c === '\u200C') || (c === '\u200D') ||
|
203478
|
+
unicode.ID_Continue.test(c)
|
203479
|
+
)
|
203480
|
+
},
|
203481
|
+
|
203482
|
+
isDigit (c) {
|
203483
|
+
return typeof c === 'string' && /[0-9]/.test(c)
|
203484
|
+
},
|
203485
|
+
|
203486
|
+
isHexDigit (c) {
|
203487
|
+
return typeof c === 'string' && /[0-9A-Fa-f]/.test(c)
|
203488
|
+
},
|
203489
|
+
}
|
202056
203490
|
|
202057
203491
|
|
202058
203492
|
/***/ }),
|
@@ -232420,7 +233854,10 @@ async function doBuild(client, project, buildsJson, cwd, outputDir) {
|
|
232420
233854
|
...project.settings,
|
232421
233855
|
...(0, project_settings_1.pickOverrides)(localConfig),
|
232422
233856
|
};
|
232423
|
-
|
233857
|
+
if (projectSettings.rootDirectory !== null &&
|
233858
|
+
projectSettings.rootDirectory !== '.') {
|
233859
|
+
await (0, monorepo_1.setMonorepoDefaultSettings)(cwd, workPath, projectSettings, output);
|
233860
|
+
}
|
232424
233861
|
// Get a list of source files
|
232425
233862
|
const files = (await (0, get_files_1.staticFiles)(workPath, client)).map(f => (0, build_utils_1.normalizePath)((0, path_1.relative)(workPath, f)));
|
232426
233863
|
const routesResult = (0, routing_utils_1.getTransformedRoutes)(localConfig);
|
@@ -240501,6 +241938,7 @@ const fs_extra_1 = __importDefault(__webpack_require__(45392));
|
|
240501
241938
|
const path_1 = __webpack_require__(85622);
|
240502
241939
|
const fs_detectors_1 = __webpack_require__(20302);
|
240503
241940
|
const title_1 = __importDefault(__webpack_require__(45676));
|
241941
|
+
const json5_1 = __importDefault(__webpack_require__(72606));
|
240504
241942
|
async function setMonorepoDefaultSettings(cwd, workPath, projectSettings, output) {
|
240505
241943
|
const localFileSystem = new fs_detectors_1.LocalFileSystemDetector(cwd);
|
240506
241944
|
const [monorepoManager, packageManager] = await Promise.all([
|
@@ -240528,7 +241966,7 @@ async function setMonorepoDefaultSettings(cwd, workPath, projectSettings, output
|
|
240528
241966
|
}
|
240529
241967
|
if (monorepoManager === 'turbo') {
|
240530
241968
|
// No ENOENT handling required here since conditional wouldn't be `true` unless `turbo.json` was found.
|
240531
|
-
const turboJSON =
|
241969
|
+
const turboJSON = json5_1.default.parse(fs_extra_1.default.readFileSync((0, path_1.join)(cwd, 'turbo.json'), 'utf-8'));
|
240532
241970
|
if (!turboJSON?.pipeline?.build) {
|
240533
241971
|
output.warn('Missing required `build` pipeline in turbo.json. Skipping automatic setting assignment.');
|
240534
241972
|
return;
|
@@ -240538,7 +241976,7 @@ async function setMonorepoDefaultSettings(cwd, workPath, projectSettings, output
|
|
240538
241976
|
}
|
240539
241977
|
else if (monorepoManager === 'nx') {
|
240540
241978
|
// No ENOENT handling required here since conditional wouldn't be `true` unless `nx.json` was found.
|
240541
|
-
const nxJSON =
|
241979
|
+
const nxJSON = json5_1.default.parse(fs_extra_1.default.readFileSync((0, path_1.join)(cwd, 'nx.json'), 'utf-8'));
|
240542
241980
|
if (!nxJSON?.targetDefaults?.build) {
|
240543
241981
|
output.log('Missing default `build` target in nx.json. Checking for project level Nx configuration...');
|
240544
241982
|
const [projectJSONBuf, packageJsonBuf] = await Promise.all([
|
@@ -240548,13 +241986,13 @@ async function setMonorepoDefaultSettings(cwd, workPath, projectSettings, output
|
|
240548
241986
|
let hasBuildTarget = false;
|
240549
241987
|
if (projectJSONBuf) {
|
240550
241988
|
output.log('Found project.json Nx configuration.');
|
240551
|
-
const projectJSON =
|
241989
|
+
const projectJSON = json5_1.default.parse(projectJSONBuf.toString('utf-8'));
|
240552
241990
|
if (projectJSON?.targets?.build) {
|
240553
241991
|
hasBuildTarget = true;
|
240554
241992
|
}
|
240555
241993
|
}
|
240556
241994
|
if (packageJsonBuf) {
|
240557
|
-
const packageJSON =
|
241995
|
+
const packageJSON = json5_1.default.parse(packageJsonBuf.toString('utf-8'));
|
240558
241996
|
if (packageJSON?.nx) {
|
240559
241997
|
output.log('Found package.json Nx configuration.');
|
240560
241998
|
if (packageJSON.nx.targets?.build) {
|
@@ -254453,7 +255891,7 @@ module.exports = JSON.parse("{\"application/1d-interleaved-parityfec\":{\"source
|
|
254453
255891
|
/***/ ((module) => {
|
254454
255892
|
|
254455
255893
|
"use strict";
|
254456
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.5.
|
255894
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.5.3\",\"preferGlobal\":true,\"license\":\"Apache-2.0\",\"description\":\"The command-line interface for Vercel\",\"homepage\":\"https://vercel.com\",\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/vercel/vercel.git\",\"directory\":\"packages/cli\"},\"scripts\":{\"preinstall\":\"node ./scripts/preinstall.js\",\"test\":\"jest --env node --verbose --bail --forceExit\",\"test-unit\":\"yarn test test/unit/\",\"test-integration-cli\":\"rimraf test/fixtures/integration && ava test/integration.js --serial --fail-fast --verbose\",\"test-integration-dev\":\"yarn test test/dev/\",\"coverage\":\"codecov\",\"build\":\"ts-node ./scripts/build.ts\",\"dev\":\"ts-node ./src/index.ts\"},\"bin\":{\"vc\":\"./dist/index.js\",\"vercel\":\"./dist/index.js\"},\"files\":[\"dist\",\"scripts/preinstall.js\"],\"ava\":{\"extensions\":[\"ts\"],\"require\":[\"ts-node/register/transpile-only\",\"esm\"]},\"engines\":{\"node\":\">= 14\"},\"dependencies\":{\"@vercel/build-utils\":\"5.5.8\",\"@vercel/go\":\"2.2.16\",\"@vercel/hydrogen\":\"0.0.30\",\"@vercel/next\":\"3.2.12\",\"@vercel/node\":\"2.6.3\",\"@vercel/python\":\"3.1.26\",\"@vercel/redwood\":\"1.0.36\",\"@vercel/remix\":\"1.0.36\",\"@vercel/ruby\":\"1.3.42\",\"@vercel/static-build\":\"1.0.38\",\"json5\":\"2.2.1\",\"update-notifier\":\"5.1.0\"},\"devDependencies\":{\"@alex_neo/jest-expect-message\":\"1.0.5\",\"@next/env\":\"11.1.2\",\"@sentry/node\":\"5.5.0\",\"@sindresorhus/slugify\":\"0.11.0\",\"@swc/core\":\"1.2.218\",\"@tootallnate/once\":\"1.1.2\",\"@types/ansi-escapes\":\"3.0.0\",\"@types/ansi-regex\":\"4.0.0\",\"@types/async-retry\":\"1.2.1\",\"@types/bytes\":\"3.0.0\",\"@types/chance\":\"1.1.3\",\"@types/debug\":\"0.0.31\",\"@types/dotenv\":\"6.1.1\",\"@types/escape-html\":\"0.0.20\",\"@types/express\":\"4.17.13\",\"@types/fs-extra\":\"9.0.13\",\"@types/glob\":\"7.1.1\",\"@types/http-proxy\":\"1.16.2\",\"@types/ini\":\"1.3.31\",\"@types/inquirer\":\"7.3.1\",\"@types/jest\":\"27.4.1\",\"@types/jest-expect-message\":\"1.0.3\",\"@types/load-json-file\":\"2.0.7\",\"@types/mime-types\":\"2.1.0\",\"@types/minimatch\":\"3.0.3\",\"@types/mri\":\"1.1.0\",\"@types/ms\":\"0.7.30\",\"@types/node\":\"14.18.33\",\"@types/node-fetch\":\"2.5.10\",\"@types/npm-package-arg\":\"6.1.0\",\"@types/pluralize\":\"0.0.29\",\"@types/psl\":\"1.1.0\",\"@types/semver\":\"6.0.1\",\"@types/tar-fs\":\"1.16.1\",\"@types/text-table\":\"0.2.0\",\"@types/title\":\"3.4.1\",\"@types/universal-analytics\":\"0.4.2\",\"@types/update-notifier\":\"5.1.0\",\"@types/which\":\"1.3.2\",\"@types/write-json-file\":\"2.2.1\",\"@types/yauzl-promise\":\"2.1.0\",\"@vercel/client\":\"12.2.18\",\"@vercel/error-utils\":\"1.0.3\",\"@vercel/frameworks\":\"1.1.12\",\"@vercel/fs-detectors\":\"3.5.1\",\"@vercel/fun\":\"1.0.4\",\"@vercel/ncc\":\"0.24.0\",\"@zeit/source-map-support\":\"0.6.2\",\"ajv\":\"6.12.2\",\"alpha-sort\":\"2.0.1\",\"ansi-escapes\":\"3.0.0\",\"ansi-regex\":\"3.0.0\",\"arg\":\"5.0.0\",\"async-listen\":\"1.2.0\",\"async-retry\":\"1.1.3\",\"async-sema\":\"2.1.4\",\"ava\":\"2.2.0\",\"boxen\":\"4.2.0\",\"bytes\":\"3.0.0\",\"chalk\":\"4.1.0\",\"chance\":\"1.1.7\",\"chokidar\":\"3.3.1\",\"codecov\":\"3.8.2\",\"cpy\":\"7.2.0\",\"date-fns\":\"1.29.0\",\"debug\":\"3.1.0\",\"dot\":\"1.1.3\",\"dotenv\":\"4.0.0\",\"email-prompt\":\"0.3.2\",\"email-validator\":\"1.1.1\",\"epipebomb\":\"1.0.0\",\"escape-html\":\"1.0.3\",\"esm\":\"3.1.4\",\"execa\":\"3.2.0\",\"express\":\"4.17.1\",\"fast-deep-equal\":\"3.1.3\",\"fs-extra\":\"10.0.0\",\"get-port\":\"5.1.1\",\"git-last-commit\":\"1.0.1\",\"glob\":\"7.1.2\",\"http-proxy\":\"1.18.1\",\"ini\":\"3.0.0\",\"inquirer\":\"7.0.4\",\"is-docker\":\"2.2.1\",\"is-port-reachable\":\"3.1.0\",\"is-url\":\"1.2.2\",\"jaro-winkler\":\"0.2.8\",\"jsonlines\":\"0.1.1\",\"line-async-iterator\":\"3.0.0\",\"load-json-file\":\"3.0.0\",\"mime-types\":\"2.1.24\",\"minimatch\":\"3.0.4\",\"mri\":\"1.1.5\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.7\",\"npm-package-arg\":\"6.1.0\",\"open\":\"8.4.0\",\"ora\":\"3.4.0\",\"pcre-to-regexp\":\"1.0.0\",\"pluralize\":\"7.0.0\",\"promisepipe\":\"3.0.0\",\"psl\":\"1.1.31\",\"qr-image\":\"3.2.0\",\"raw-body\":\"2.4.1\",\"rimraf\":\"3.0.2\",\"semver\":\"5.5.0\",\"serve-handler\":\"6.1.1\",\"strip-ansi\":\"5.2.0\",\"stripe\":\"5.1.0\",\"tar-fs\":\"1.16.3\",\"test-listen\":\"1.1.0\",\"text-table\":\"0.2.0\",\"title\":\"3.4.1\",\"tmp-promise\":\"1.0.3\",\"tree-kill\":\"1.2.2\",\"ts-node\":\"10.9.1\",\"typescript\":\"4.7.4\",\"universal-analytics\":\"0.4.20\",\"utility-types\":\"2.1.0\",\"write-json-file\":\"2.2.0\",\"xdg-app-paths\":\"5.1.0\",\"yauzl-promise\":\"2.1.3\"},\"jest\":{\"preset\":\"ts-jest\",\"globals\":{\"ts-jest\":{\"diagnostics\":false,\"isolatedModules\":true}},\"setupFilesAfterEnv\":[\"@alex_neo/jest-expect-message\"],\"verbose\":false,\"testEnvironment\":\"node\",\"testMatch\":[\"<rootDir>/test/**/*.test.ts\"]}}");
|
254457
255895
|
|
254458
255896
|
/***/ }),
|
254459
255897
|
|
@@ -254461,7 +255899,7 @@ module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"28.5.1\",\"prefe
|
|
254461
255899
|
/***/ ((module) => {
|
254462
255900
|
|
254463
255901
|
"use strict";
|
254464
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.2.
|
255902
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"12.2.18\",\"main\":\"dist/index.js\",\"typings\":\"dist/index.d.ts\",\"homepage\":\"https://vercel.com\",\"license\":\"MIT\",\"files\":[\"dist\"],\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/vercel/vercel.git\",\"directory\":\"packages/client\"},\"scripts\":{\"build\":\"tsc\",\"test-integration-once\":\"yarn test tests/create-deployment.test.ts tests/create-legacy-deployment.test.ts tests/paths.test.ts\",\"test\":\"jest --env node --verbose --runInBand --bail\",\"test-unit\":\"yarn test tests/unit.*test.*\"},\"engines\":{\"node\":\">= 14\"},\"devDependencies\":{\"@types/async-retry\":\"1.4.1\",\"@types/fs-extra\":\"7.0.0\",\"@types/jest\":\"27.4.1\",\"@types/minimatch\":\"3.0.5\",\"@types/ms\":\"0.7.30\",\"@types/node\":\"14.18.33\",\"@types/node-fetch\":\"2.5.4\",\"@types/recursive-readdir\":\"2.2.0\",\"@types/tar-fs\":\"1.16.1\",\"typescript\":\"4.3.4\"},\"jest\":{\"preset\":\"ts-jest\",\"testEnvironment\":\"node\",\"verbose\":false,\"setupFilesAfterEnv\":[\"<rootDir>/tests/setup/index.ts\"]},\"dependencies\":{\"@vercel/build-utils\":\"5.5.8\",\"@vercel/routing-utils\":\"2.1.3\",\"@zeit/fetch\":\"5.2.0\",\"async-retry\":\"1.2.3\",\"async-sema\":\"3.0.0\",\"fs-extra\":\"8.0.1\",\"ignore\":\"4.0.6\",\"minimatch\":\"5.0.1\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.7\",\"querystring\":\"^0.2.0\",\"sleep-promise\":\"8.0.1\",\"tar-fs\":\"1.16.3\"}}");
|
254465
255903
|
|
254466
255904
|
/***/ }),
|
254467
255905
|
|