@ariestools/toolchain 8.7.20 → 8.7.22
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/actions/analyze.d.ts +28 -1
- package/dist/actions/analyze.d.ts.map +1 -1
- package/dist/actions/deplint/collectPickRows.d.ts +35 -0
- package/dist/actions/deplint/collectPickRows.d.ts.map +1 -0
- package/dist/actions/deplint/deplintPick.d.ts +15 -0
- package/dist/actions/deplint/deplintPick.d.ts.map +1 -0
- package/dist/actions/deplint/editXyConfigPackages.d.ts +36 -0
- package/dist/actions/deplint/editXyConfigPackages.d.ts.map +1 -0
- package/dist/actions/deplint/engine.d.ts.map +1 -1
- package/dist/actions/deplint/fixer.d.ts.map +1 -1
- package/dist/actions/deplint/index.d.ts +5 -0
- package/dist/actions/deplint/index.d.ts.map +1 -1
- package/dist/actions/deplint/interactivePick.d.ts +12 -0
- package/dist/actions/deplint/interactivePick.d.ts.map +1 -0
- package/dist/actions/deplint/rules.d.ts.map +1 -1
- package/dist/actions/deplint/rulesRedundantPlacement.d.ts +26 -0
- package/dist/actions/deplint/rulesRedundantPlacement.d.ts.map +1 -0
- package/dist/actions/deplint/snapshot.d.ts +5 -0
- package/dist/actions/deplint/snapshot.d.ts.map +1 -1
- package/dist/actions/deplint/types.d.ts +23 -2
- package/dist/actions/deplint/types.d.ts.map +1 -1
- package/dist/actions/work/github.d.ts +60 -0
- package/dist/actions/work/github.d.ts.map +1 -0
- package/dist/actions/work/index.d.ts +20 -19
- package/dist/actions/work/index.d.ts.map +1 -1
- package/dist/actions/work/result.d.ts +12 -0
- package/dist/actions/work/result.d.ts.map +1 -0
- package/dist/actions/work/schema.d.ts.map +1 -1
- package/dist/actions/work/sync.d.ts +34 -0
- package/dist/actions/work/sync.d.ts.map +1 -0
- package/dist/bin/package/build.mjs +1256 -699
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/clean.mjs +633 -432
- package/dist/bin/package/clean.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +632 -431
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/copy-assets-cjs.mjs +1 -1
- package/dist/bin/package/copy-assets-esm.mjs +1 -1
- package/dist/bin/package/fix.mjs +17 -12
- package/dist/bin/package/fix.mjs.map +1 -1
- package/dist/bin/package/lint-verbose.mjs +17 -12
- package/dist/bin/package/lint-verbose.mjs.map +1 -1
- package/dist/bin/package/lint.mjs +17 -12
- package/dist/bin/package/lint.mjs.map +1 -1
- package/dist/bin/package/publint.mjs +1161 -609
- package/dist/bin/package/publint.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +632 -431
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/package/relint.mjs +17 -12
- package/dist/bin/package/relint.mjs.map +1 -1
- package/dist/bin/package/sync-layout.mjs +615 -419
- package/dist/bin/package/sync-layout.mjs.map +1 -1
- package/dist/bin/xy.mjs +2895 -759
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/xy/common/work/index.d.ts.map +1 -1
- package/dist/xy/common/work/listCommand.d.ts.map +1 -1
- package/dist/xy/common/work/syncCommand.d.ts +3 -0
- package/dist/xy/common/work/syncCommand.d.ts.map +1 -0
- package/dist/xy/lint/deplintCommand.d.ts.map +1 -1
- package/dist/xy/lint/deplintPickCommand.d.ts +3 -0
- package/dist/xy/lint/deplintPickCommand.d.ts.map +1 -0
- package/dist/xy/lint/deplintRunCommand.d.ts +3 -0
- package/dist/xy/lint/deplintRunCommand.d.ts.map +1 -0
- package/dist/xy/react/analyzeCommand.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/bin/source-map-explorer.mjs +0 -27268
- package/dist/bin/source-map-explorer.mjs.map +0 -1
|
@@ -3,10 +3,10 @@ import { createRequire } from "node:module";
|
|
|
3
3
|
import * as xi from "node:fs";
|
|
4
4
|
import fs, { existsSync, readFileSync } from "node:fs";
|
|
5
5
|
import PATH, { posix, win32 } from "node:path";
|
|
6
|
+
import { fileURLToPath } from "node:url";
|
|
6
7
|
import process$1 from "node:process";
|
|
7
8
|
import os from "node:os";
|
|
8
9
|
import tty from "node:tty";
|
|
9
|
-
import { fileURLToPath } from "node:url";
|
|
10
10
|
import { lstatSync, readdir, readdirSync, readlinkSync, realpathSync } from "fs";
|
|
11
11
|
import { lstat, readdir as readdir$1, readlink, realpath } from "node:fs/promises";
|
|
12
12
|
import { EventEmitter } from "node:events";
|
|
@@ -6013,7 +6013,7 @@ var require_parse_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6013
6013
|
module.exports = parseJson;
|
|
6014
6014
|
}));
|
|
6015
6015
|
//#endregion
|
|
6016
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6016
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/common.js
|
|
6017
6017
|
var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6018
6018
|
function isNothing(subject) {
|
|
6019
6019
|
return typeof subject === "undefined" || subject === null;
|
|
@@ -6027,19 +6027,18 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6027
6027
|
return [sequence];
|
|
6028
6028
|
}
|
|
6029
6029
|
function extend(target, source) {
|
|
6030
|
-
var index, length, key, sourceKeys;
|
|
6031
6030
|
if (source) {
|
|
6032
|
-
sourceKeys = Object.keys(source);
|
|
6033
|
-
for (index = 0, length = sourceKeys.length; index < length; index += 1) {
|
|
6034
|
-
key = sourceKeys[index];
|
|
6031
|
+
const sourceKeys = Object.keys(source);
|
|
6032
|
+
for (let index = 0, length = sourceKeys.length; index < length; index += 1) {
|
|
6033
|
+
const key = sourceKeys[index];
|
|
6035
6034
|
target[key] = source[key];
|
|
6036
6035
|
}
|
|
6037
6036
|
}
|
|
6038
6037
|
return target;
|
|
6039
6038
|
}
|
|
6040
6039
|
function repeat(string, count) {
|
|
6041
|
-
|
|
6042
|
-
for (cycle = 0; cycle < count; cycle += 1) result += string;
|
|
6040
|
+
let result = "";
|
|
6041
|
+
for (let cycle = 0; cycle < count; cycle += 1) result += string;
|
|
6043
6042
|
return result;
|
|
6044
6043
|
}
|
|
6045
6044
|
function isNegativeZero(number) {
|
|
@@ -6053,10 +6052,11 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6053
6052
|
module.exports.extend = extend;
|
|
6054
6053
|
}));
|
|
6055
6054
|
//#endregion
|
|
6056
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6055
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/exception.js
|
|
6057
6056
|
var require_exception = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6058
6057
|
function formatError(exception, compact) {
|
|
6059
|
-
|
|
6058
|
+
let where = "";
|
|
6059
|
+
const message = exception.reason || "(unknown reason)";
|
|
6060
6060
|
if (!exception.mark) return message;
|
|
6061
6061
|
if (exception.mark.name) where += "in \"" + exception.mark.name + "\" ";
|
|
6062
6062
|
where += "(" + (exception.mark.line + 1) + ":" + (exception.mark.column + 1) + ")";
|
|
@@ -6080,13 +6080,13 @@ var require_exception = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6080
6080
|
module.exports = YAMLException;
|
|
6081
6081
|
}));
|
|
6082
6082
|
//#endregion
|
|
6083
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6083
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/snippet.js
|
|
6084
6084
|
var require_snippet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6085
|
-
|
|
6085
|
+
const common = require_common();
|
|
6086
6086
|
function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6087
|
+
let head = "";
|
|
6088
|
+
let tail = "";
|
|
6089
|
+
const maxHalfLength = Math.floor(maxLineLength / 2) - 1;
|
|
6090
6090
|
if (position - lineStart > maxHalfLength) {
|
|
6091
6091
|
head = " ... ";
|
|
6092
6092
|
lineStart = position - maxHalfLength + head.length;
|
|
@@ -6110,31 +6110,31 @@ var require_snippet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6110
6110
|
if (typeof options.indent !== "number") options.indent = 1;
|
|
6111
6111
|
if (typeof options.linesBefore !== "number") options.linesBefore = 3;
|
|
6112
6112
|
if (typeof options.linesAfter !== "number") options.linesAfter = 2;
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
|
|
6113
|
+
const re = /\r?\n|\r|\0/g;
|
|
6114
|
+
const lineStarts = [0];
|
|
6115
|
+
const lineEnds = [];
|
|
6116
|
+
let match;
|
|
6117
|
+
let foundLineNo = -1;
|
|
6118
6118
|
while (match = re.exec(mark.buffer)) {
|
|
6119
6119
|
lineEnds.push(match.index);
|
|
6120
6120
|
lineStarts.push(match.index + match[0].length);
|
|
6121
6121
|
if (mark.position <= match.index && foundLineNo < 0) foundLineNo = lineStarts.length - 2;
|
|
6122
6122
|
}
|
|
6123
6123
|
if (foundLineNo < 0) foundLineNo = lineStarts.length - 1;
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
for (i = 1; i <= options.linesBefore; i++) {
|
|
6124
|
+
let result = "";
|
|
6125
|
+
const lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length;
|
|
6126
|
+
const maxLineLength = options.maxLength - (options.indent + lineNoLength + 3);
|
|
6127
|
+
for (let i = 1; i <= options.linesBefore; i++) {
|
|
6128
6128
|
if (foundLineNo - i < 0) break;
|
|
6129
|
-
line = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
|
|
6129
|
+
const line = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
|
|
6130
6130
|
result = common.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line.str + "\n" + result;
|
|
6131
6131
|
}
|
|
6132
|
-
line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
|
|
6132
|
+
const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
|
|
6133
6133
|
result += common.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + "\n";
|
|
6134
6134
|
result += common.repeat("-", options.indent + lineNoLength + 3 + line.pos) + "^\n";
|
|
6135
|
-
for (i = 1; i <= options.linesAfter; i++) {
|
|
6135
|
+
for (let i = 1; i <= options.linesAfter; i++) {
|
|
6136
6136
|
if (foundLineNo + i >= lineEnds.length) break;
|
|
6137
|
-
line = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
|
|
6137
|
+
const line = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
|
|
6138
6138
|
result += common.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line.str + "\n";
|
|
6139
6139
|
}
|
|
6140
6140
|
return result.replace(/\n$/, "");
|
|
@@ -6142,10 +6142,10 @@ var require_snippet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6142
6142
|
module.exports = makeSnippet;
|
|
6143
6143
|
}));
|
|
6144
6144
|
//#endregion
|
|
6145
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6145
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type.js
|
|
6146
6146
|
var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6147
|
-
|
|
6148
|
-
|
|
6147
|
+
const YAMLException = require_exception();
|
|
6148
|
+
const TYPE_CONSTRUCTOR_OPTIONS = [
|
|
6149
6149
|
"kind",
|
|
6150
6150
|
"multi",
|
|
6151
6151
|
"resolve",
|
|
@@ -6157,13 +6157,13 @@ var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6157
6157
|
"defaultStyle",
|
|
6158
6158
|
"styleAliases"
|
|
6159
6159
|
];
|
|
6160
|
-
|
|
6160
|
+
const YAML_NODE_KINDS = [
|
|
6161
6161
|
"scalar",
|
|
6162
6162
|
"sequence",
|
|
6163
6163
|
"mapping"
|
|
6164
6164
|
];
|
|
6165
6165
|
function compileStyleAliases(map) {
|
|
6166
|
-
|
|
6166
|
+
const result = {};
|
|
6167
6167
|
if (map !== null) Object.keys(map).forEach(function(style) {
|
|
6168
6168
|
map[style].forEach(function(alias) {
|
|
6169
6169
|
result[String(alias)] = style;
|
|
@@ -6197,14 +6197,14 @@ var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6197
6197
|
module.exports = Type;
|
|
6198
6198
|
}));
|
|
6199
6199
|
//#endregion
|
|
6200
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6200
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema.js
|
|
6201
6201
|
var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6202
|
-
|
|
6203
|
-
|
|
6202
|
+
const YAMLException = require_exception();
|
|
6203
|
+
const Type = require_type();
|
|
6204
6204
|
function compileList(schema, name) {
|
|
6205
|
-
|
|
6205
|
+
const result = [];
|
|
6206
6206
|
schema[name].forEach(function(currentType) {
|
|
6207
|
-
|
|
6207
|
+
let newIndex = result.length;
|
|
6208
6208
|
result.forEach(function(previousType, previousIndex) {
|
|
6209
6209
|
if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) newIndex = previousIndex;
|
|
6210
6210
|
});
|
|
@@ -6213,7 +6213,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6213
6213
|
return result;
|
|
6214
6214
|
}
|
|
6215
6215
|
function compileMap() {
|
|
6216
|
-
|
|
6216
|
+
const result = {
|
|
6217
6217
|
scalar: {},
|
|
6218
6218
|
sequence: {},
|
|
6219
6219
|
mapping: {},
|
|
@@ -6224,22 +6224,22 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6224
6224
|
mapping: [],
|
|
6225
6225
|
fallback: []
|
|
6226
6226
|
}
|
|
6227
|
-
}
|
|
6227
|
+
};
|
|
6228
6228
|
function collectType(type) {
|
|
6229
6229
|
if (type.multi) {
|
|
6230
6230
|
result.multi[type.kind].push(type);
|
|
6231
6231
|
result.multi["fallback"].push(type);
|
|
6232
6232
|
} else result[type.kind][type.tag] = result["fallback"][type.tag] = type;
|
|
6233
6233
|
}
|
|
6234
|
-
for (index = 0, length = arguments.length; index < length; index += 1) arguments[index].forEach(collectType);
|
|
6234
|
+
for (let index = 0, length = arguments.length; index < length; index += 1) arguments[index].forEach(collectType);
|
|
6235
6235
|
return result;
|
|
6236
6236
|
}
|
|
6237
6237
|
function Schema(definition) {
|
|
6238
6238
|
return this.extend(definition);
|
|
6239
6239
|
}
|
|
6240
6240
|
Schema.prototype.extend = function extend(definition) {
|
|
6241
|
-
|
|
6242
|
-
|
|
6241
|
+
let implicit = [];
|
|
6242
|
+
let explicit = [];
|
|
6243
6243
|
if (definition instanceof Type) explicit.push(definition);
|
|
6244
6244
|
else if (Array.isArray(definition)) explicit = explicit.concat(definition);
|
|
6245
6245
|
else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
|
|
@@ -6254,7 +6254,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6254
6254
|
explicit.forEach(function(type) {
|
|
6255
6255
|
if (!(type instanceof Type)) throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
6256
6256
|
});
|
|
6257
|
-
|
|
6257
|
+
const result = Object.create(Schema.prototype);
|
|
6258
6258
|
result.implicit = (this.implicit || []).concat(implicit);
|
|
6259
6259
|
result.explicit = (this.explicit || []).concat(explicit);
|
|
6260
6260
|
result.compiledImplicit = compileList(result, "implicit");
|
|
@@ -6265,7 +6265,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6265
6265
|
module.exports = Schema;
|
|
6266
6266
|
}));
|
|
6267
6267
|
//#endregion
|
|
6268
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6268
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/str.js
|
|
6269
6269
|
var require_str = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6270
6270
|
module.exports = new (require_type())("tag:yaml.org,2002:str", {
|
|
6271
6271
|
kind: "scalar",
|
|
@@ -6275,7 +6275,7 @@ var require_str = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6275
6275
|
});
|
|
6276
6276
|
}));
|
|
6277
6277
|
//#endregion
|
|
6278
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6278
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/seq.js
|
|
6279
6279
|
var require_seq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6280
6280
|
module.exports = new (require_type())("tag:yaml.org,2002:seq", {
|
|
6281
6281
|
kind: "sequence",
|
|
@@ -6285,7 +6285,7 @@ var require_seq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6285
6285
|
});
|
|
6286
6286
|
}));
|
|
6287
6287
|
//#endregion
|
|
6288
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6288
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/map.js
|
|
6289
6289
|
var require_map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6290
6290
|
module.exports = new (require_type())("tag:yaml.org,2002:map", {
|
|
6291
6291
|
kind: "mapping",
|
|
@@ -6295,7 +6295,7 @@ var require_map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6295
6295
|
});
|
|
6296
6296
|
}));
|
|
6297
6297
|
//#endregion
|
|
6298
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6298
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema/failsafe.js
|
|
6299
6299
|
var require_failsafe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6300
6300
|
module.exports = new (require_schema())({ explicit: [
|
|
6301
6301
|
require_str(),
|
|
@@ -6304,12 +6304,12 @@ var require_failsafe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6304
6304
|
] });
|
|
6305
6305
|
}));
|
|
6306
6306
|
//#endregion
|
|
6307
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6307
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/null.js
|
|
6308
6308
|
var require_null = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6309
|
-
|
|
6309
|
+
const Type = require_type();
|
|
6310
6310
|
function resolveYamlNull(data) {
|
|
6311
6311
|
if (data === null) return true;
|
|
6312
|
-
|
|
6312
|
+
const max = data.length;
|
|
6313
6313
|
return max === 1 && data === "~" || max === 4 && (data === "null" || data === "Null" || data === "NULL");
|
|
6314
6314
|
}
|
|
6315
6315
|
function constructYamlNull() {
|
|
@@ -6344,12 +6344,12 @@ var require_null = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6344
6344
|
});
|
|
6345
6345
|
}));
|
|
6346
6346
|
//#endregion
|
|
6347
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6347
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/bool.js
|
|
6348
6348
|
var require_bool = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6349
|
-
|
|
6349
|
+
const Type = require_type();
|
|
6350
6350
|
function resolveYamlBoolean(data) {
|
|
6351
6351
|
if (data === null) return false;
|
|
6352
|
-
|
|
6352
|
+
const max = data.length;
|
|
6353
6353
|
return max === 4 && (data === "true" || data === "True" || data === "TRUE") || max === 5 && (data === "false" || data === "False" || data === "FALSE");
|
|
6354
6354
|
}
|
|
6355
6355
|
function constructYamlBoolean(data) {
|
|
@@ -6378,24 +6378,26 @@ var require_bool = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6378
6378
|
});
|
|
6379
6379
|
}));
|
|
6380
6380
|
//#endregion
|
|
6381
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6381
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/int.js
|
|
6382
6382
|
var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6383
|
-
|
|
6384
|
-
|
|
6383
|
+
const common = require_common();
|
|
6384
|
+
const Type = require_type();
|
|
6385
6385
|
function isHexCode(c) {
|
|
6386
|
-
return
|
|
6386
|
+
return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102;
|
|
6387
6387
|
}
|
|
6388
6388
|
function isOctCode(c) {
|
|
6389
|
-
return
|
|
6389
|
+
return c >= 48 && c <= 55;
|
|
6390
6390
|
}
|
|
6391
6391
|
function isDecCode(c) {
|
|
6392
|
-
return
|
|
6392
|
+
return c >= 48 && c <= 57;
|
|
6393
6393
|
}
|
|
6394
6394
|
function resolveYamlInteger(data) {
|
|
6395
6395
|
if (data === null) return false;
|
|
6396
|
-
|
|
6396
|
+
const max = data.length;
|
|
6397
|
+
let index = 0;
|
|
6398
|
+
let hasDigits = false;
|
|
6397
6399
|
if (!max) return false;
|
|
6398
|
-
ch = data[index];
|
|
6400
|
+
let ch = data[index];
|
|
6399
6401
|
if (ch === "-" || ch === "+") ch = data[++index];
|
|
6400
6402
|
if (ch === "0") {
|
|
6401
6403
|
if (index + 1 === max) return true;
|
|
@@ -6404,47 +6406,39 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6404
6406
|
index++;
|
|
6405
6407
|
for (; index < max; index++) {
|
|
6406
6408
|
ch = data[index];
|
|
6407
|
-
if (ch === "_") continue;
|
|
6408
6409
|
if (ch !== "0" && ch !== "1") return false;
|
|
6409
6410
|
hasDigits = true;
|
|
6410
6411
|
}
|
|
6411
|
-
return hasDigits &&
|
|
6412
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
6412
6413
|
}
|
|
6413
6414
|
if (ch === "x") {
|
|
6414
6415
|
index++;
|
|
6415
6416
|
for (; index < max; index++) {
|
|
6416
|
-
ch = data[index];
|
|
6417
|
-
if (ch === "_") continue;
|
|
6418
6417
|
if (!isHexCode(data.charCodeAt(index))) return false;
|
|
6419
6418
|
hasDigits = true;
|
|
6420
6419
|
}
|
|
6421
|
-
return hasDigits &&
|
|
6420
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
6422
6421
|
}
|
|
6423
6422
|
if (ch === "o") {
|
|
6424
6423
|
index++;
|
|
6425
6424
|
for (; index < max; index++) {
|
|
6426
|
-
ch = data[index];
|
|
6427
|
-
if (ch === "_") continue;
|
|
6428
6425
|
if (!isOctCode(data.charCodeAt(index))) return false;
|
|
6429
6426
|
hasDigits = true;
|
|
6430
6427
|
}
|
|
6431
|
-
return hasDigits &&
|
|
6428
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
6432
6429
|
}
|
|
6433
6430
|
}
|
|
6434
|
-
if (ch === "_") return false;
|
|
6435
6431
|
for (; index < max; index++) {
|
|
6436
|
-
ch = data[index];
|
|
6437
|
-
if (ch === "_") continue;
|
|
6438
6432
|
if (!isDecCode(data.charCodeAt(index))) return false;
|
|
6439
6433
|
hasDigits = true;
|
|
6440
6434
|
}
|
|
6441
|
-
if (!hasDigits
|
|
6442
|
-
return
|
|
6435
|
+
if (!hasDigits) return false;
|
|
6436
|
+
return isFinite(parseYamlInteger(data));
|
|
6443
6437
|
}
|
|
6444
|
-
function
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
ch = value[0];
|
|
6438
|
+
function parseYamlInteger(data) {
|
|
6439
|
+
let value = data;
|
|
6440
|
+
let sign = 1;
|
|
6441
|
+
let ch = value[0];
|
|
6448
6442
|
if (ch === "-" || ch === "+") {
|
|
6449
6443
|
if (ch === "-") sign = -1;
|
|
6450
6444
|
value = value.slice(1);
|
|
@@ -6458,6 +6452,9 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6458
6452
|
}
|
|
6459
6453
|
return sign * parseInt(value, 10);
|
|
6460
6454
|
}
|
|
6455
|
+
function constructYamlInteger(data) {
|
|
6456
|
+
return parseYamlInteger(data);
|
|
6457
|
+
}
|
|
6461
6458
|
function isInteger(object) {
|
|
6462
6459
|
return Object.prototype.toString.call(object) === "[object Number]" && object % 1 === 0 && !common.isNegativeZero(object);
|
|
6463
6460
|
}
|
|
@@ -6490,26 +6487,28 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6490
6487
|
});
|
|
6491
6488
|
}));
|
|
6492
6489
|
//#endregion
|
|
6493
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6490
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/float.js
|
|
6494
6491
|
var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6492
|
+
const common = require_common();
|
|
6493
|
+
const Type = require_type();
|
|
6494
|
+
const YAML_FLOAT_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
6495
|
+
const YAML_FLOAT_SPECIAL_PATTERN = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
6498
6496
|
function resolveYamlFloat(data) {
|
|
6499
6497
|
if (data === null) return false;
|
|
6500
|
-
if (!YAML_FLOAT_PATTERN.test(data)
|
|
6501
|
-
return true;
|
|
6498
|
+
if (!YAML_FLOAT_PATTERN.test(data)) return false;
|
|
6499
|
+
if (isFinite(parseFloat(data, 10))) return true;
|
|
6500
|
+
return YAML_FLOAT_SPECIAL_PATTERN.test(data);
|
|
6502
6501
|
}
|
|
6503
6502
|
function constructYamlFloat(data) {
|
|
6504
|
-
|
|
6503
|
+
let value = data.toLowerCase();
|
|
6504
|
+
const sign = value[0] === "-" ? -1 : 1;
|
|
6505
6505
|
if ("+-".indexOf(value[0]) >= 0) value = value.slice(1);
|
|
6506
6506
|
if (value === ".inf") return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
|
|
6507
6507
|
else if (value === ".nan") return NaN;
|
|
6508
6508
|
return sign * parseFloat(value, 10);
|
|
6509
6509
|
}
|
|
6510
|
-
|
|
6510
|
+
const SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
|
|
6511
6511
|
function representYamlFloat(object, style) {
|
|
6512
|
-
var res;
|
|
6513
6512
|
if (isNaN(object)) switch (style) {
|
|
6514
6513
|
case "lowercase": return ".nan";
|
|
6515
6514
|
case "uppercase": return ".NAN";
|
|
@@ -6526,7 +6525,7 @@ var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6526
6525
|
case "camelcase": return "-.Inf";
|
|
6527
6526
|
}
|
|
6528
6527
|
else if (common.isNegativeZero(object)) return "-0.0";
|
|
6529
|
-
res = object.toString(10);
|
|
6528
|
+
const res = object.toString(10);
|
|
6530
6529
|
return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
|
|
6531
6530
|
}
|
|
6532
6531
|
function isFloat(object) {
|
|
@@ -6542,7 +6541,7 @@ var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6542
6541
|
});
|
|
6543
6542
|
}));
|
|
6544
6543
|
//#endregion
|
|
6545
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6544
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema/json.js
|
|
6546
6545
|
var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6547
6546
|
module.exports = require_failsafe().extend({ implicit: [
|
|
6548
6547
|
require_null(),
|
|
@@ -6552,16 +6551,16 @@ var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6552
6551
|
] });
|
|
6553
6552
|
}));
|
|
6554
6553
|
//#endregion
|
|
6555
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6554
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema/core.js
|
|
6556
6555
|
var require_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6557
6556
|
module.exports = require_json();
|
|
6558
6557
|
}));
|
|
6559
6558
|
//#endregion
|
|
6560
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6559
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/timestamp.js
|
|
6561
6560
|
var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6562
|
-
|
|
6563
|
-
|
|
6564
|
-
|
|
6561
|
+
const Type = require_type();
|
|
6562
|
+
const YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
|
|
6563
|
+
const YAML_TIMESTAMP_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
|
|
6565
6564
|
function resolveYamlTimestamp(data) {
|
|
6566
6565
|
if (data === null) return false;
|
|
6567
6566
|
if (YAML_DATE_REGEXP.exec(data) !== null) return true;
|
|
@@ -6569,29 +6568,30 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6569
6568
|
return false;
|
|
6570
6569
|
}
|
|
6571
6570
|
function constructYamlTimestamp(data) {
|
|
6572
|
-
|
|
6573
|
-
|
|
6571
|
+
let fraction = 0;
|
|
6572
|
+
let delta = null;
|
|
6573
|
+
let match = YAML_DATE_REGEXP.exec(data);
|
|
6574
6574
|
if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);
|
|
6575
6575
|
if (match === null) throw new Error("Date resolve error");
|
|
6576
|
-
year = +match[1];
|
|
6577
|
-
month = +match[2] - 1;
|
|
6578
|
-
day = +match[3];
|
|
6576
|
+
const year = +match[1];
|
|
6577
|
+
const month = +match[2] - 1;
|
|
6578
|
+
const day = +match[3];
|
|
6579
6579
|
if (!match[4]) return new Date(Date.UTC(year, month, day));
|
|
6580
|
-
hour = +match[4];
|
|
6581
|
-
minute = +match[5];
|
|
6582
|
-
second = +match[6];
|
|
6580
|
+
const hour = +match[4];
|
|
6581
|
+
const minute = +match[5];
|
|
6582
|
+
const second = +match[6];
|
|
6583
6583
|
if (match[7]) {
|
|
6584
6584
|
fraction = match[7].slice(0, 3);
|
|
6585
6585
|
while (fraction.length < 3) fraction += "0";
|
|
6586
6586
|
fraction = +fraction;
|
|
6587
6587
|
}
|
|
6588
6588
|
if (match[9]) {
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
delta = (
|
|
6589
|
+
const tzHour = +match[10];
|
|
6590
|
+
const tzMinute = +(match[11] || 0);
|
|
6591
|
+
delta = (tzHour * 60 + tzMinute) * 6e4;
|
|
6592
6592
|
if (match[9] === "-") delta = -delta;
|
|
6593
6593
|
}
|
|
6594
|
-
date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
|
|
6594
|
+
const date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
|
|
6595
6595
|
if (delta) date.setTime(date.getTime() - delta);
|
|
6596
6596
|
return date;
|
|
6597
6597
|
}
|
|
@@ -6607,9 +6607,9 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6607
6607
|
});
|
|
6608
6608
|
}));
|
|
6609
6609
|
//#endregion
|
|
6610
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6610
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/merge.js
|
|
6611
6611
|
var require_merge$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6612
|
-
|
|
6612
|
+
const Type = require_type();
|
|
6613
6613
|
function resolveYamlMerge(data) {
|
|
6614
6614
|
return data === "<<" || data === null;
|
|
6615
6615
|
}
|
|
@@ -6619,15 +6619,17 @@ var require_merge$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6619
6619
|
});
|
|
6620
6620
|
}));
|
|
6621
6621
|
//#endregion
|
|
6622
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6622
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/binary.js
|
|
6623
6623
|
var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6624
|
-
|
|
6625
|
-
|
|
6624
|
+
const Type = require_type();
|
|
6625
|
+
const BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
|
6626
6626
|
function resolveYamlBinary(data) {
|
|
6627
6627
|
if (data === null) return false;
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6628
|
+
let bitlen = 0;
|
|
6629
|
+
const max = data.length;
|
|
6630
|
+
const map = BASE64_MAP;
|
|
6631
|
+
for (let idx = 0; idx < max; idx++) {
|
|
6632
|
+
const code = map.indexOf(data.charAt(idx));
|
|
6631
6633
|
if (code > 64) continue;
|
|
6632
6634
|
if (code < 0) return false;
|
|
6633
6635
|
bitlen += 6;
|
|
@@ -6635,8 +6637,12 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6635
6637
|
return bitlen % 8 === 0;
|
|
6636
6638
|
}
|
|
6637
6639
|
function constructYamlBinary(data) {
|
|
6638
|
-
|
|
6639
|
-
|
|
6640
|
+
const input = data.replace(/[\r\n=]/g, "");
|
|
6641
|
+
const max = input.length;
|
|
6642
|
+
const map = BASE64_MAP;
|
|
6643
|
+
let bits = 0;
|
|
6644
|
+
const result = [];
|
|
6645
|
+
for (let idx = 0; idx < max; idx++) {
|
|
6640
6646
|
if (idx % 4 === 0 && idx) {
|
|
6641
6647
|
result.push(bits >> 16 & 255);
|
|
6642
6648
|
result.push(bits >> 8 & 255);
|
|
@@ -6644,7 +6650,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6644
6650
|
}
|
|
6645
6651
|
bits = bits << 6 | map.indexOf(input.charAt(idx));
|
|
6646
6652
|
}
|
|
6647
|
-
tailbits = max % 4 * 6;
|
|
6653
|
+
const tailbits = max % 4 * 6;
|
|
6648
6654
|
if (tailbits === 0) {
|
|
6649
6655
|
result.push(bits >> 16 & 255);
|
|
6650
6656
|
result.push(bits >> 8 & 255);
|
|
@@ -6656,8 +6662,11 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6656
6662
|
return new Uint8Array(result);
|
|
6657
6663
|
}
|
|
6658
6664
|
function representYamlBinary(object) {
|
|
6659
|
-
|
|
6660
|
-
|
|
6665
|
+
let result = "";
|
|
6666
|
+
let bits = 0;
|
|
6667
|
+
const max = object.length;
|
|
6668
|
+
const map = BASE64_MAP;
|
|
6669
|
+
for (let idx = 0; idx < max; idx++) {
|
|
6661
6670
|
if (idx % 3 === 0 && idx) {
|
|
6662
6671
|
result += map[bits >> 18 & 63];
|
|
6663
6672
|
result += map[bits >> 12 & 63];
|
|
@@ -6666,7 +6675,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6666
6675
|
}
|
|
6667
6676
|
bits = (bits << 8) + object[idx];
|
|
6668
6677
|
}
|
|
6669
|
-
tail = max % 3;
|
|
6678
|
+
const tail = max % 3;
|
|
6670
6679
|
if (tail === 0) {
|
|
6671
6680
|
result += map[bits >> 18 & 63];
|
|
6672
6681
|
result += map[bits >> 12 & 63];
|
|
@@ -6697,18 +6706,20 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6697
6706
|
});
|
|
6698
6707
|
}));
|
|
6699
6708
|
//#endregion
|
|
6700
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6709
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/omap.js
|
|
6701
6710
|
var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6711
|
+
const Type = require_type();
|
|
6712
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
6713
|
+
const _toString = Object.prototype.toString;
|
|
6705
6714
|
function resolveYamlOmap(data) {
|
|
6706
6715
|
if (data === null) return true;
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6716
|
+
const objectKeys = [];
|
|
6717
|
+
const object = data;
|
|
6718
|
+
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
6719
|
+
const pair = object[index];
|
|
6720
|
+
let pairHasKey = false;
|
|
6711
6721
|
if (_toString.call(pair) !== "[object Object]") return false;
|
|
6722
|
+
let pairKey;
|
|
6712
6723
|
for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey)) if (!pairHasKey) pairHasKey = true;
|
|
6713
6724
|
else return false;
|
|
6714
6725
|
if (!pairHasKey) return false;
|
|
@@ -6727,18 +6738,18 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6727
6738
|
});
|
|
6728
6739
|
}));
|
|
6729
6740
|
//#endregion
|
|
6730
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6741
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/pairs.js
|
|
6731
6742
|
var require_pairs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6732
|
-
|
|
6733
|
-
|
|
6743
|
+
const Type = require_type();
|
|
6744
|
+
const _toString = Object.prototype.toString;
|
|
6734
6745
|
function resolveYamlPairs(data) {
|
|
6735
6746
|
if (data === null) return true;
|
|
6736
|
-
|
|
6737
|
-
result = new Array(object.length);
|
|
6738
|
-
for (index = 0, length = object.length; index < length; index += 1) {
|
|
6739
|
-
pair = object[index];
|
|
6747
|
+
const object = data;
|
|
6748
|
+
const result = new Array(object.length);
|
|
6749
|
+
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
6750
|
+
const pair = object[index];
|
|
6740
6751
|
if (_toString.call(pair) !== "[object Object]") return false;
|
|
6741
|
-
keys = Object.keys(pair);
|
|
6752
|
+
const keys = Object.keys(pair);
|
|
6742
6753
|
if (keys.length !== 1) return false;
|
|
6743
6754
|
result[index] = [keys[0], pair[keys[0]]];
|
|
6744
6755
|
}
|
|
@@ -6746,11 +6757,11 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6746
6757
|
}
|
|
6747
6758
|
function constructYamlPairs(data) {
|
|
6748
6759
|
if (data === null) return [];
|
|
6749
|
-
|
|
6750
|
-
result = new Array(object.length);
|
|
6751
|
-
for (index = 0, length = object.length; index < length; index += 1) {
|
|
6752
|
-
pair = object[index];
|
|
6753
|
-
keys = Object.keys(pair);
|
|
6760
|
+
const object = data;
|
|
6761
|
+
const result = new Array(object.length);
|
|
6762
|
+
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
6763
|
+
const pair = object[index];
|
|
6764
|
+
const keys = Object.keys(pair);
|
|
6754
6765
|
result[index] = [keys[0], pair[keys[0]]];
|
|
6755
6766
|
}
|
|
6756
6767
|
return result;
|
|
@@ -6762,14 +6773,14 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6762
6773
|
});
|
|
6763
6774
|
}));
|
|
6764
6775
|
//#endregion
|
|
6765
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6776
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/set.js
|
|
6766
6777
|
var require_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6767
|
-
|
|
6768
|
-
|
|
6778
|
+
const Type = require_type();
|
|
6779
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
6769
6780
|
function resolveYamlSet(data) {
|
|
6770
6781
|
if (data === null) return true;
|
|
6771
|
-
|
|
6772
|
-
for (key in object) if (_hasOwnProperty.call(object, key)) {
|
|
6782
|
+
const object = data;
|
|
6783
|
+
for (const key in object) if (_hasOwnProperty.call(object, key)) {
|
|
6773
6784
|
if (object[key] !== null) return false;
|
|
6774
6785
|
}
|
|
6775
6786
|
return true;
|
|
@@ -6784,7 +6795,7 @@ var require_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6784
6795
|
});
|
|
6785
6796
|
}));
|
|
6786
6797
|
//#endregion
|
|
6787
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6798
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema/default.js
|
|
6788
6799
|
var require_default = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6789
6800
|
module.exports = require_core().extend({
|
|
6790
6801
|
implicit: [require_timestamp(), require_merge$1()],
|
|
@@ -6797,45 +6808,44 @@ var require_default = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6797
6808
|
});
|
|
6798
6809
|
}));
|
|
6799
6810
|
//#endregion
|
|
6800
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
6811
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/loader.js
|
|
6801
6812
|
var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6813
|
+
const common = require_common();
|
|
6814
|
+
const YAMLException = require_exception();
|
|
6815
|
+
const makeSnippet = require_snippet();
|
|
6816
|
+
const DEFAULT_SCHEMA = require_default();
|
|
6817
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
6818
|
+
const CONTEXT_FLOW_IN = 1;
|
|
6819
|
+
const CONTEXT_FLOW_OUT = 2;
|
|
6820
|
+
const CONTEXT_BLOCK_IN = 3;
|
|
6821
|
+
const CONTEXT_BLOCK_OUT = 4;
|
|
6822
|
+
const CHOMPING_CLIP = 1;
|
|
6823
|
+
const CHOMPING_STRIP = 2;
|
|
6824
|
+
const CHOMPING_KEEP = 3;
|
|
6825
|
+
const PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
|
|
6826
|
+
const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
|
|
6827
|
+
const PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
|
|
6828
|
+
const PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
|
|
6829
|
+
const PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
|
|
6819
6830
|
function _class(obj) {
|
|
6820
6831
|
return Object.prototype.toString.call(obj);
|
|
6821
6832
|
}
|
|
6822
|
-
function
|
|
6833
|
+
function isEol(c) {
|
|
6823
6834
|
return c === 10 || c === 13;
|
|
6824
6835
|
}
|
|
6825
|
-
function
|
|
6836
|
+
function isWhiteSpace(c) {
|
|
6826
6837
|
return c === 9 || c === 32;
|
|
6827
6838
|
}
|
|
6828
|
-
function
|
|
6839
|
+
function isWsOrEol(c) {
|
|
6829
6840
|
return c === 9 || c === 32 || c === 10 || c === 13;
|
|
6830
6841
|
}
|
|
6831
|
-
function
|
|
6842
|
+
function isFlowIndicator(c) {
|
|
6832
6843
|
return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
|
|
6833
6844
|
}
|
|
6834
6845
|
function fromHexCode(c) {
|
|
6835
|
-
|
|
6836
|
-
|
|
6837
|
-
lc
|
|
6838
|
-
if (97 <= lc && lc <= 102) return lc - 97 + 10;
|
|
6846
|
+
if (c >= 48 && c <= 57) return c - 48;
|
|
6847
|
+
const lc = c | 32;
|
|
6848
|
+
if (lc >= 97 && lc <= 102) return lc - 97 + 10;
|
|
6839
6849
|
return -1;
|
|
6840
6850
|
}
|
|
6841
6851
|
function escapedHexLen(c) {
|
|
@@ -6845,11 +6855,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6845
6855
|
return 0;
|
|
6846
6856
|
}
|
|
6847
6857
|
function fromDecimalCode(c) {
|
|
6848
|
-
if (
|
|
6858
|
+
if (c >= 48 && c <= 57) return c - 48;
|
|
6849
6859
|
return -1;
|
|
6850
6860
|
}
|
|
6851
6861
|
function simpleEscapeSequence(c) {
|
|
6852
|
-
|
|
6862
|
+
switch (c) {
|
|
6863
|
+
case 48: return "\0";
|
|
6864
|
+
case 97: return "\x07";
|
|
6865
|
+
case 98: return "\b";
|
|
6866
|
+
case 116: return " ";
|
|
6867
|
+
case 9: return " ";
|
|
6868
|
+
case 110: return "\n";
|
|
6869
|
+
case 118: return "\v";
|
|
6870
|
+
case 102: return "\f";
|
|
6871
|
+
case 114: return "\r";
|
|
6872
|
+
case 101: return "\x1B";
|
|
6873
|
+
case 32: return " ";
|
|
6874
|
+
case 34: return "\"";
|
|
6875
|
+
case 47: return "/";
|
|
6876
|
+
case 92: return "\\";
|
|
6877
|
+
case 78: return "
";
|
|
6878
|
+
case 95: return "\xA0";
|
|
6879
|
+
case 76: return "\u2028";
|
|
6880
|
+
case 80: return "\u2029";
|
|
6881
|
+
default: return "";
|
|
6882
|
+
}
|
|
6853
6883
|
}
|
|
6854
6884
|
function charFromCodepoint(c) {
|
|
6855
6885
|
if (c <= 65535) return String.fromCharCode(c);
|
|
@@ -6864,9 +6894,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6864
6894
|
});
|
|
6865
6895
|
else object[key] = value;
|
|
6866
6896
|
}
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
for (
|
|
6897
|
+
const simpleEscapeCheck = new Array(256);
|
|
6898
|
+
const simpleEscapeMap = new Array(256);
|
|
6899
|
+
for (let i = 0; i < 256; i++) {
|
|
6870
6900
|
simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
|
|
6871
6901
|
simpleEscapeMap[i] = simpleEscapeSequence(i);
|
|
6872
6902
|
}
|
|
@@ -6878,6 +6908,8 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6878
6908
|
this.legacy = options["legacy"] || false;
|
|
6879
6909
|
this.json = options["json"] || false;
|
|
6880
6910
|
this.listener = options["listener"] || null;
|
|
6911
|
+
this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100;
|
|
6912
|
+
this.maxTotalMergeKeys = typeof options["maxTotalMergeKeys"] === "number" ? options["maxTotalMergeKeys"] : 1e4;
|
|
6881
6913
|
this.implicitTypes = this.schema.compiledImplicit;
|
|
6882
6914
|
this.typeMap = this.schema.compiledTypeMap;
|
|
6883
6915
|
this.length = input.length;
|
|
@@ -6885,11 +6917,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6885
6917
|
this.line = 0;
|
|
6886
6918
|
this.lineStart = 0;
|
|
6887
6919
|
this.lineIndent = 0;
|
|
6920
|
+
this.depth = 0;
|
|
6921
|
+
this.totalMergeKeys = 0;
|
|
6888
6922
|
this.firstTabInLine = -1;
|
|
6889
6923
|
this.documents = [];
|
|
6924
|
+
this.anchorMapTransactions = [];
|
|
6890
6925
|
}
|
|
6891
6926
|
function generateError(state, message) {
|
|
6892
|
-
|
|
6927
|
+
const mark = {
|
|
6893
6928
|
name: state.filename,
|
|
6894
6929
|
buffer: state.input.slice(0, -1),
|
|
6895
6930
|
position: state.position,
|
|
@@ -6905,24 +6940,81 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6905
6940
|
function throwWarning(state, message) {
|
|
6906
6941
|
if (state.onWarning) state.onWarning.call(null, generateError(state, message));
|
|
6907
6942
|
}
|
|
6908
|
-
|
|
6943
|
+
function storeAnchor(state, name, value) {
|
|
6944
|
+
const transactions = state.anchorMapTransactions;
|
|
6945
|
+
if (transactions.length !== 0) {
|
|
6946
|
+
const transaction = transactions[transactions.length - 1];
|
|
6947
|
+
if (!_hasOwnProperty.call(transaction, name)) transaction[name] = {
|
|
6948
|
+
existed: _hasOwnProperty.call(state.anchorMap, name),
|
|
6949
|
+
value: state.anchorMap[name]
|
|
6950
|
+
};
|
|
6951
|
+
}
|
|
6952
|
+
state.anchorMap[name] = value;
|
|
6953
|
+
}
|
|
6954
|
+
function beginAnchorTransaction(state) {
|
|
6955
|
+
state.anchorMapTransactions.push(Object.create(null));
|
|
6956
|
+
}
|
|
6957
|
+
function commitAnchorTransaction(state) {
|
|
6958
|
+
const transaction = state.anchorMapTransactions.pop();
|
|
6959
|
+
const transactions = state.anchorMapTransactions;
|
|
6960
|
+
if (transactions.length === 0) return;
|
|
6961
|
+
const parent = transactions[transactions.length - 1];
|
|
6962
|
+
const names = Object.keys(transaction);
|
|
6963
|
+
for (let index = 0, length = names.length; index < length; index += 1) {
|
|
6964
|
+
const name = names[index];
|
|
6965
|
+
if (!_hasOwnProperty.call(parent, name)) parent[name] = transaction[name];
|
|
6966
|
+
}
|
|
6967
|
+
}
|
|
6968
|
+
function rollbackAnchorTransaction(state) {
|
|
6969
|
+
const transaction = state.anchorMapTransactions.pop();
|
|
6970
|
+
const names = Object.keys(transaction);
|
|
6971
|
+
for (let index = names.length - 1; index >= 0; index -= 1) {
|
|
6972
|
+
const entry = transaction[names[index]];
|
|
6973
|
+
if (entry.existed) state.anchorMap[names[index]] = entry.value;
|
|
6974
|
+
else delete state.anchorMap[names[index]];
|
|
6975
|
+
}
|
|
6976
|
+
}
|
|
6977
|
+
function snapshotState(state) {
|
|
6978
|
+
return {
|
|
6979
|
+
position: state.position,
|
|
6980
|
+
line: state.line,
|
|
6981
|
+
lineStart: state.lineStart,
|
|
6982
|
+
lineIndent: state.lineIndent,
|
|
6983
|
+
firstTabInLine: state.firstTabInLine,
|
|
6984
|
+
tag: state.tag,
|
|
6985
|
+
anchor: state.anchor,
|
|
6986
|
+
kind: state.kind,
|
|
6987
|
+
result: state.result
|
|
6988
|
+
};
|
|
6989
|
+
}
|
|
6990
|
+
function restoreState(state, snapshot) {
|
|
6991
|
+
state.position = snapshot.position;
|
|
6992
|
+
state.line = snapshot.line;
|
|
6993
|
+
state.lineStart = snapshot.lineStart;
|
|
6994
|
+
state.lineIndent = snapshot.lineIndent;
|
|
6995
|
+
state.firstTabInLine = snapshot.firstTabInLine;
|
|
6996
|
+
state.tag = snapshot.tag;
|
|
6997
|
+
state.anchor = snapshot.anchor;
|
|
6998
|
+
state.kind = snapshot.kind;
|
|
6999
|
+
state.result = snapshot.result;
|
|
7000
|
+
}
|
|
7001
|
+
const directiveHandlers = {
|
|
6909
7002
|
YAML: function handleYamlDirective(state, name, args) {
|
|
6910
|
-
var match, major, minor;
|
|
6911
7003
|
if (state.version !== null) throwError(state, "duplication of %YAML directive");
|
|
6912
7004
|
if (args.length !== 1) throwError(state, "YAML directive accepts exactly one argument");
|
|
6913
|
-
match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
|
|
7005
|
+
const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
|
|
6914
7006
|
if (match === null) throwError(state, "ill-formed argument of the YAML directive");
|
|
6915
|
-
major = parseInt(match[1], 10);
|
|
6916
|
-
minor = parseInt(match[2], 10);
|
|
7007
|
+
const major = parseInt(match[1], 10);
|
|
7008
|
+
const minor = parseInt(match[2], 10);
|
|
6917
7009
|
if (major !== 1) throwError(state, "unacceptable YAML version of the document");
|
|
6918
7010
|
state.version = args[0];
|
|
6919
7011
|
state.checkLineBreaks = minor < 2;
|
|
6920
7012
|
if (minor !== 1 && minor !== 2) throwWarning(state, "unsupported YAML version of the document");
|
|
6921
7013
|
},
|
|
6922
7014
|
TAG: function handleTagDirective(state, name, args) {
|
|
6923
|
-
|
|
7015
|
+
let prefix;
|
|
6924
7016
|
if (args.length !== 2) throwError(state, "TAG directive accepts exactly two arguments");
|
|
6925
|
-
handle = args[0];
|
|
7017
|
+
const handle = args[0];
|
|
6926
7018
|
prefix = args[1];
|
|
6927
7019
|
if (!PATTERN_TAG_HANDLE.test(handle)) throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
|
|
6928
7020
|
if (_hasOwnProperty.call(state.tagMap, handle)) throwError(state, "there is a previously declared suffix for \"" + handle + "\" tag handle");
|
|
@@ -6936,23 +7028,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6936
7028
|
}
|
|
6937
7029
|
};
|
|
6938
7030
|
function captureSegment(state, start, end, checkJson) {
|
|
6939
|
-
var _position, _length, _character, _result;
|
|
6940
7031
|
if (start < end) {
|
|
6941
|
-
_result = state.input.slice(start, end);
|
|
6942
|
-
if (checkJson) for (_position = 0, _length = _result.length; _position < _length; _position += 1) {
|
|
6943
|
-
_character = _result.charCodeAt(_position);
|
|
6944
|
-
if (!(_character === 9 ||
|
|
7032
|
+
const _result = state.input.slice(start, end);
|
|
7033
|
+
if (checkJson) for (let _position = 0, _length = _result.length; _position < _length; _position += 1) {
|
|
7034
|
+
const _character = _result.charCodeAt(_position);
|
|
7035
|
+
if (!(_character === 9 || _character >= 32 && _character <= 1114111)) throwError(state, "expected valid JSON character");
|
|
6945
7036
|
}
|
|
6946
7037
|
else if (PATTERN_NON_PRINTABLE.test(_result)) throwError(state, "the stream contains non-printable characters");
|
|
6947
7038
|
state.result += _result;
|
|
6948
7039
|
}
|
|
6949
7040
|
}
|
|
6950
7041
|
function mergeMappings(state, destination, source, overridableKeys) {
|
|
6951
|
-
var sourceKeys, key, index, quantity;
|
|
6952
7042
|
if (!common.isObject(source)) throwError(state, "cannot merge mappings; the provided source object is unacceptable");
|
|
6953
|
-
sourceKeys = Object.keys(source);
|
|
6954
|
-
for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
|
|
6955
|
-
key = sourceKeys[index];
|
|
7043
|
+
const sourceKeys = Object.keys(source);
|
|
7044
|
+
for (let index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
|
|
7045
|
+
const key = sourceKeys[index];
|
|
7046
|
+
if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
6956
7047
|
if (!_hasOwnProperty.call(destination, key)) {
|
|
6957
7048
|
setProperty(destination, key, source[key]);
|
|
6958
7049
|
overridableKeys[key] = true;
|
|
@@ -6960,10 +7051,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6960
7051
|
}
|
|
6961
7052
|
}
|
|
6962
7053
|
function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, startLine, startLineStart, startPos) {
|
|
6963
|
-
var index, quantity;
|
|
6964
7054
|
if (Array.isArray(keyNode)) {
|
|
6965
7055
|
keyNode = Array.prototype.slice.call(keyNode);
|
|
6966
|
-
for (index = 0, quantity = keyNode.length; index < quantity; index += 1) {
|
|
7056
|
+
for (let index = 0, quantity = keyNode.length; index < quantity; index += 1) {
|
|
6967
7057
|
if (Array.isArray(keyNode[index])) throwError(state, "nested arrays are not supported inside keys");
|
|
6968
7058
|
if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") keyNode[index] = "[object Object]";
|
|
6969
7059
|
}
|
|
@@ -6971,7 +7061,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6971
7061
|
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") keyNode = "[object Object]";
|
|
6972
7062
|
keyNode = String(keyNode);
|
|
6973
7063
|
if (_result === null) _result = {};
|
|
6974
|
-
if (keyTag === "tag:yaml.org,2002:merge") if (Array.isArray(valueNode)) for (index = 0, quantity = valueNode.length; index < quantity; index += 1) mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
7064
|
+
if (keyTag === "tag:yaml.org,2002:merge") if (Array.isArray(valueNode)) for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
6975
7065
|
else mergeMappings(state, _result, valueNode, overridableKeys);
|
|
6976
7066
|
else {
|
|
6977
7067
|
if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
|
|
@@ -6986,7 +7076,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6986
7076
|
return _result;
|
|
6987
7077
|
}
|
|
6988
7078
|
function readLineBreak(state) {
|
|
6989
|
-
|
|
7079
|
+
const ch = state.input.charCodeAt(state.position);
|
|
6990
7080
|
if (ch === 10) state.position++;
|
|
6991
7081
|
else if (ch === 13) {
|
|
6992
7082
|
state.position++;
|
|
@@ -6997,16 +7087,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
6997
7087
|
state.firstTabInLine = -1;
|
|
6998
7088
|
}
|
|
6999
7089
|
function skipSeparationSpace(state, allowComments, checkIndent) {
|
|
7000
|
-
|
|
7090
|
+
let lineBreaks = 0;
|
|
7091
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7001
7092
|
while (ch !== 0) {
|
|
7002
|
-
while (
|
|
7093
|
+
while (isWhiteSpace(ch)) {
|
|
7003
7094
|
if (ch === 9 && state.firstTabInLine === -1) state.firstTabInLine = state.position;
|
|
7004
7095
|
ch = state.input.charCodeAt(++state.position);
|
|
7005
7096
|
}
|
|
7006
7097
|
if (allowComments && ch === 35) do
|
|
7007
7098
|
ch = state.input.charCodeAt(++state.position);
|
|
7008
7099
|
while (ch !== 10 && ch !== 13 && ch !== 0);
|
|
7009
|
-
if (
|
|
7100
|
+
if (isEol(ch)) {
|
|
7010
7101
|
readLineBreak(state);
|
|
7011
7102
|
ch = state.input.charCodeAt(state.position);
|
|
7012
7103
|
lineBreaks++;
|
|
@@ -7021,11 +7112,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7021
7112
|
return lineBreaks;
|
|
7022
7113
|
}
|
|
7023
7114
|
function testDocumentSeparator(state) {
|
|
7024
|
-
|
|
7115
|
+
let _position = state.position;
|
|
7116
|
+
let ch = state.input.charCodeAt(_position);
|
|
7025
7117
|
if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
|
|
7026
7118
|
_position += 3;
|
|
7027
7119
|
ch = state.input.charCodeAt(_position);
|
|
7028
|
-
if (ch === 0 ||
|
|
7120
|
+
if (ch === 0 || isWsOrEol(ch)) return true;
|
|
7029
7121
|
}
|
|
7030
7122
|
return false;
|
|
7031
7123
|
}
|
|
@@ -7034,11 +7126,19 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7034
7126
|
else if (count > 1) state.result += common.repeat("\n", count - 1);
|
|
7035
7127
|
}
|
|
7036
7128
|
function readPlainScalar(state, nodeIndent, withinFlowCollection) {
|
|
7037
|
-
|
|
7038
|
-
|
|
7129
|
+
let captureStart;
|
|
7130
|
+
let captureEnd;
|
|
7131
|
+
let hasPendingContent;
|
|
7132
|
+
let _line;
|
|
7133
|
+
let _lineStart;
|
|
7134
|
+
let _lineIndent;
|
|
7135
|
+
const _kind = state.kind;
|
|
7136
|
+
const _result = state.result;
|
|
7137
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7138
|
+
if (isWsOrEol(ch) || isFlowIndicator(ch) || ch === 35 || ch === 38 || ch === 42 || ch === 33 || ch === 124 || ch === 62 || ch === 39 || ch === 34 || ch === 37 || ch === 64 || ch === 96) return false;
|
|
7039
7139
|
if (ch === 63 || ch === 45) {
|
|
7040
|
-
following = state.input.charCodeAt(state.position + 1);
|
|
7041
|
-
if (
|
|
7140
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
7141
|
+
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) return false;
|
|
7042
7142
|
}
|
|
7043
7143
|
state.kind = "scalar";
|
|
7044
7144
|
state.result = "";
|
|
@@ -7046,13 +7146,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7046
7146
|
hasPendingContent = false;
|
|
7047
7147
|
while (ch !== 0) {
|
|
7048
7148
|
if (ch === 58) {
|
|
7049
|
-
following = state.input.charCodeAt(state.position + 1);
|
|
7050
|
-
if (
|
|
7149
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
7150
|
+
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) break;
|
|
7051
7151
|
} else if (ch === 35) {
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
else if (is_EOL(ch)) {
|
|
7152
|
+
if (isWsOrEol(state.input.charCodeAt(state.position - 1))) break;
|
|
7153
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch)) break;
|
|
7154
|
+
else if (isEol(ch)) {
|
|
7056
7155
|
_line = state.line;
|
|
7057
7156
|
_lineStart = state.lineStart;
|
|
7058
7157
|
_lineIndent = state.lineIndent;
|
|
@@ -7075,7 +7174,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7075
7174
|
captureStart = captureEnd = state.position;
|
|
7076
7175
|
hasPendingContent = false;
|
|
7077
7176
|
}
|
|
7078
|
-
if (!
|
|
7177
|
+
if (!isWhiteSpace(ch)) captureEnd = state.position + 1;
|
|
7079
7178
|
ch = state.input.charCodeAt(++state.position);
|
|
7080
7179
|
}
|
|
7081
7180
|
captureSegment(state, captureStart, captureEnd, false);
|
|
@@ -7085,7 +7184,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7085
7184
|
return false;
|
|
7086
7185
|
}
|
|
7087
7186
|
function readSingleQuotedScalar(state, nodeIndent) {
|
|
7088
|
-
|
|
7187
|
+
let captureStart;
|
|
7188
|
+
let captureEnd;
|
|
7189
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7089
7190
|
if (ch !== 39) return false;
|
|
7090
7191
|
state.kind = "scalar";
|
|
7091
7192
|
state.result = "";
|
|
@@ -7099,19 +7200,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7099
7200
|
state.position++;
|
|
7100
7201
|
captureEnd = state.position;
|
|
7101
7202
|
} else return true;
|
|
7102
|
-
} else if (
|
|
7203
|
+
} else if (isEol(ch)) {
|
|
7103
7204
|
captureSegment(state, captureStart, captureEnd, true);
|
|
7104
7205
|
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
7105
7206
|
captureStart = captureEnd = state.position;
|
|
7106
7207
|
} else if (state.position === state.lineStart && testDocumentSeparator(state)) throwError(state, "unexpected end of the document within a single quoted scalar");
|
|
7107
7208
|
else {
|
|
7108
7209
|
state.position++;
|
|
7109
|
-
captureEnd = state.position;
|
|
7210
|
+
if (!isWhiteSpace(ch)) captureEnd = state.position;
|
|
7110
7211
|
}
|
|
7111
7212
|
throwError(state, "unexpected end of the stream within a single quoted scalar");
|
|
7112
7213
|
}
|
|
7113
7214
|
function readDoubleQuotedScalar(state, nodeIndent) {
|
|
7114
|
-
|
|
7215
|
+
let captureStart;
|
|
7216
|
+
let captureEnd;
|
|
7217
|
+
let tmp;
|
|
7218
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7115
7219
|
if (ch !== 34) return false;
|
|
7116
7220
|
state.kind = "scalar";
|
|
7117
7221
|
state.result = "";
|
|
@@ -7124,13 +7228,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7124
7228
|
} else if (ch === 92) {
|
|
7125
7229
|
captureSegment(state, captureStart, state.position, true);
|
|
7126
7230
|
ch = state.input.charCodeAt(++state.position);
|
|
7127
|
-
if (
|
|
7231
|
+
if (isEol(ch)) skipSeparationSpace(state, false, nodeIndent);
|
|
7128
7232
|
else if (ch < 256 && simpleEscapeCheck[ch]) {
|
|
7129
7233
|
state.result += simpleEscapeMap[ch];
|
|
7130
7234
|
state.position++;
|
|
7131
7235
|
} else if ((tmp = escapedHexLen(ch)) > 0) {
|
|
7132
|
-
hexLength = tmp;
|
|
7133
|
-
hexResult = 0;
|
|
7236
|
+
let hexLength = tmp;
|
|
7237
|
+
let hexResult = 0;
|
|
7134
7238
|
for (; hexLength > 0; hexLength--) {
|
|
7135
7239
|
ch = state.input.charCodeAt(++state.position);
|
|
7136
7240
|
if ((tmp = fromHexCode(ch)) >= 0) hexResult = (hexResult << 4) + tmp;
|
|
@@ -7140,19 +7244,34 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7140
7244
|
state.position++;
|
|
7141
7245
|
} else throwError(state, "unknown escape sequence");
|
|
7142
7246
|
captureStart = captureEnd = state.position;
|
|
7143
|
-
} else if (
|
|
7247
|
+
} else if (isEol(ch)) {
|
|
7144
7248
|
captureSegment(state, captureStart, captureEnd, true);
|
|
7145
7249
|
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
7146
7250
|
captureStart = captureEnd = state.position;
|
|
7147
7251
|
} else if (state.position === state.lineStart && testDocumentSeparator(state)) throwError(state, "unexpected end of the document within a double quoted scalar");
|
|
7148
7252
|
else {
|
|
7149
7253
|
state.position++;
|
|
7150
|
-
captureEnd = state.position;
|
|
7254
|
+
if (!isWhiteSpace(ch)) captureEnd = state.position;
|
|
7151
7255
|
}
|
|
7152
7256
|
throwError(state, "unexpected end of the stream within a double quoted scalar");
|
|
7153
7257
|
}
|
|
7154
7258
|
function readFlowCollection(state, nodeIndent) {
|
|
7155
|
-
|
|
7259
|
+
let readNext = true;
|
|
7260
|
+
let _line;
|
|
7261
|
+
let _lineStart;
|
|
7262
|
+
let _pos;
|
|
7263
|
+
const _tag = state.tag;
|
|
7264
|
+
let _result;
|
|
7265
|
+
const _anchor = state.anchor;
|
|
7266
|
+
let terminator;
|
|
7267
|
+
let isPair;
|
|
7268
|
+
let isExplicitPair;
|
|
7269
|
+
let isMapping;
|
|
7270
|
+
const overridableKeys = Object.create(null);
|
|
7271
|
+
let keyNode;
|
|
7272
|
+
let keyTag;
|
|
7273
|
+
let valueNode;
|
|
7274
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7156
7275
|
if (ch === 91) {
|
|
7157
7276
|
terminator = 93;
|
|
7158
7277
|
isMapping = false;
|
|
@@ -7162,7 +7281,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7162
7281
|
isMapping = true;
|
|
7163
7282
|
_result = {};
|
|
7164
7283
|
} else return false;
|
|
7165
|
-
if (state.anchor !== null) state
|
|
7284
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, _result);
|
|
7166
7285
|
ch = state.input.charCodeAt(++state.position);
|
|
7167
7286
|
while (ch !== 0) {
|
|
7168
7287
|
skipSeparationSpace(state, true, nodeIndent);
|
|
@@ -7179,8 +7298,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7179
7298
|
keyTag = keyNode = valueNode = null;
|
|
7180
7299
|
isPair = isExplicitPair = false;
|
|
7181
7300
|
if (ch === 63) {
|
|
7182
|
-
|
|
7183
|
-
if (is_WS_OR_EOL(following)) {
|
|
7301
|
+
if (isWsOrEol(state.input.charCodeAt(state.position + 1))) {
|
|
7184
7302
|
isPair = isExplicitPair = true;
|
|
7185
7303
|
state.position++;
|
|
7186
7304
|
skipSeparationSpace(state, true, nodeIndent);
|
|
@@ -7214,7 +7332,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7214
7332
|
throwError(state, "unexpected end of the stream within a flow collection");
|
|
7215
7333
|
}
|
|
7216
7334
|
function readBlockScalar(state, nodeIndent) {
|
|
7217
|
-
|
|
7335
|
+
let folding;
|
|
7336
|
+
let chomping = CHOMPING_CLIP;
|
|
7337
|
+
let didReadContent = false;
|
|
7338
|
+
let detectedIndent = false;
|
|
7339
|
+
let textIndent = nodeIndent;
|
|
7340
|
+
let emptyLines = 0;
|
|
7341
|
+
let atMoreIndented = false;
|
|
7342
|
+
let tmp;
|
|
7343
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7218
7344
|
if (ch === 124) folding = false;
|
|
7219
7345
|
else if (ch === 62) folding = true;
|
|
7220
7346
|
else return false;
|
|
@@ -7231,13 +7357,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7231
7357
|
} else throwError(state, "repeat of an indentation width identifier");
|
|
7232
7358
|
else break;
|
|
7233
7359
|
}
|
|
7234
|
-
if (
|
|
7360
|
+
if (isWhiteSpace(ch)) {
|
|
7235
7361
|
do
|
|
7236
7362
|
ch = state.input.charCodeAt(++state.position);
|
|
7237
|
-
while (
|
|
7363
|
+
while (isWhiteSpace(ch));
|
|
7238
7364
|
if (ch === 35) do
|
|
7239
7365
|
ch = state.input.charCodeAt(++state.position);
|
|
7240
|
-
while (!
|
|
7366
|
+
while (!isEol(ch) && ch !== 0);
|
|
7241
7367
|
}
|
|
7242
7368
|
while (ch !== 0) {
|
|
7243
7369
|
readLineBreak(state);
|
|
@@ -7248,10 +7374,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7248
7374
|
ch = state.input.charCodeAt(++state.position);
|
|
7249
7375
|
}
|
|
7250
7376
|
if (!detectedIndent && state.lineIndent > textIndent) textIndent = state.lineIndent;
|
|
7251
|
-
if (
|
|
7377
|
+
if (isEol(ch)) {
|
|
7252
7378
|
emptyLines++;
|
|
7253
7379
|
continue;
|
|
7254
7380
|
}
|
|
7381
|
+
if (!detectedIndent && textIndent === 0) throwError(state, "missing indentation for block scalar");
|
|
7255
7382
|
if (state.lineIndent < textIndent) {
|
|
7256
7383
|
if (chomping === CHOMPING_KEEP) state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
7257
7384
|
else if (chomping === CHOMPING_CLIP) {
|
|
@@ -7259,7 +7386,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7259
7386
|
}
|
|
7260
7387
|
break;
|
|
7261
7388
|
}
|
|
7262
|
-
if (folding) if (
|
|
7389
|
+
if (folding) if (isWhiteSpace(ch)) {
|
|
7263
7390
|
atMoreIndented = true;
|
|
7264
7391
|
state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
7265
7392
|
} else if (atMoreIndented) {
|
|
@@ -7272,25 +7399,27 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7272
7399
|
didReadContent = true;
|
|
7273
7400
|
detectedIndent = true;
|
|
7274
7401
|
emptyLines = 0;
|
|
7275
|
-
captureStart = state.position;
|
|
7276
|
-
while (!
|
|
7402
|
+
const captureStart = state.position;
|
|
7403
|
+
while (!isEol(ch) && ch !== 0) ch = state.input.charCodeAt(++state.position);
|
|
7277
7404
|
captureSegment(state, captureStart, state.position, false);
|
|
7278
7405
|
}
|
|
7279
7406
|
return true;
|
|
7280
7407
|
}
|
|
7281
7408
|
function readBlockSequence(state, nodeIndent) {
|
|
7282
|
-
|
|
7409
|
+
const _tag = state.tag;
|
|
7410
|
+
const _anchor = state.anchor;
|
|
7411
|
+
const _result = [];
|
|
7412
|
+
let detected = false;
|
|
7283
7413
|
if (state.firstTabInLine !== -1) return false;
|
|
7284
|
-
if (state.anchor !== null) state
|
|
7285
|
-
ch = state.input.charCodeAt(state.position);
|
|
7414
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, _result);
|
|
7415
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7286
7416
|
while (ch !== 0) {
|
|
7287
7417
|
if (state.firstTabInLine !== -1) {
|
|
7288
7418
|
state.position = state.firstTabInLine;
|
|
7289
7419
|
throwError(state, "tab characters must not be used in indentation");
|
|
7290
7420
|
}
|
|
7291
7421
|
if (ch !== 45) break;
|
|
7292
|
-
|
|
7293
|
-
if (!is_WS_OR_EOL(following)) break;
|
|
7422
|
+
if (!isWsOrEol(state.input.charCodeAt(state.position + 1))) break;
|
|
7294
7423
|
detected = true;
|
|
7295
7424
|
state.position++;
|
|
7296
7425
|
if (skipSeparationSpace(state, true, -1)) {
|
|
@@ -7300,7 +7429,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7300
7429
|
continue;
|
|
7301
7430
|
}
|
|
7302
7431
|
}
|
|
7303
|
-
_line = state.line;
|
|
7432
|
+
const _line = state.line;
|
|
7304
7433
|
composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);
|
|
7305
7434
|
_result.push(state.result);
|
|
7306
7435
|
skipSeparationSpace(state, true, -1);
|
|
@@ -7318,18 +7447,30 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7318
7447
|
return false;
|
|
7319
7448
|
}
|
|
7320
7449
|
function readBlockMapping(state, nodeIndent, flowIndent) {
|
|
7321
|
-
|
|
7450
|
+
let allowCompact;
|
|
7451
|
+
let _keyLine;
|
|
7452
|
+
let _keyLineStart;
|
|
7453
|
+
let _keyPos;
|
|
7454
|
+
const _tag = state.tag;
|
|
7455
|
+
const _anchor = state.anchor;
|
|
7456
|
+
const _result = {};
|
|
7457
|
+
const overridableKeys = Object.create(null);
|
|
7458
|
+
let keyTag = null;
|
|
7459
|
+
let keyNode = null;
|
|
7460
|
+
let valueNode = null;
|
|
7461
|
+
let atExplicitKey = false;
|
|
7462
|
+
let detected = false;
|
|
7322
7463
|
if (state.firstTabInLine !== -1) return false;
|
|
7323
|
-
if (state.anchor !== null) state
|
|
7324
|
-
ch = state.input.charCodeAt(state.position);
|
|
7464
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, _result);
|
|
7465
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7325
7466
|
while (ch !== 0) {
|
|
7326
7467
|
if (!atExplicitKey && state.firstTabInLine !== -1) {
|
|
7327
7468
|
state.position = state.firstTabInLine;
|
|
7328
7469
|
throwError(state, "tab characters must not be used in indentation");
|
|
7329
7470
|
}
|
|
7330
|
-
following = state.input.charCodeAt(state.position + 1);
|
|
7331
|
-
_line = state.line;
|
|
7332
|
-
if ((ch === 63 || ch === 58) &&
|
|
7471
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
7472
|
+
const _line = state.line;
|
|
7473
|
+
if ((ch === 63 || ch === 58) && isWsOrEol(following)) {
|
|
7333
7474
|
if (ch === 63) {
|
|
7334
7475
|
if (atExplicitKey) {
|
|
7335
7476
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
@@ -7351,10 +7492,10 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7351
7492
|
if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) break;
|
|
7352
7493
|
if (state.line === _line) {
|
|
7353
7494
|
ch = state.input.charCodeAt(state.position);
|
|
7354
|
-
while (
|
|
7495
|
+
while (isWhiteSpace(ch)) ch = state.input.charCodeAt(++state.position);
|
|
7355
7496
|
if (ch === 58) {
|
|
7356
7497
|
ch = state.input.charCodeAt(++state.position);
|
|
7357
|
-
if (!
|
|
7498
|
+
if (!isWsOrEol(ch)) throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
|
|
7358
7499
|
if (atExplicitKey) {
|
|
7359
7500
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
7360
7501
|
keyTag = keyNode = valueNode = null;
|
|
@@ -7405,7 +7546,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7405
7546
|
return detected;
|
|
7406
7547
|
}
|
|
7407
7548
|
function readTagProperty(state) {
|
|
7408
|
-
|
|
7549
|
+
let isVerbatim = false;
|
|
7550
|
+
let isNamed = false;
|
|
7551
|
+
let tagHandle;
|
|
7552
|
+
let tagName;
|
|
7553
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7409
7554
|
if (ch !== 33) return false;
|
|
7410
7555
|
if (state.tag !== null) throwError(state, "duplication of a tag property");
|
|
7411
7556
|
ch = state.input.charCodeAt(++state.position);
|
|
@@ -7417,7 +7562,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7417
7562
|
tagHandle = "!!";
|
|
7418
7563
|
ch = state.input.charCodeAt(++state.position);
|
|
7419
7564
|
} else tagHandle = "!";
|
|
7420
|
-
_position = state.position;
|
|
7565
|
+
let _position = state.position;
|
|
7421
7566
|
if (isVerbatim) {
|
|
7422
7567
|
do
|
|
7423
7568
|
ch = state.input.charCodeAt(++state.position);
|
|
@@ -7427,7 +7572,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7427
7572
|
ch = state.input.charCodeAt(++state.position);
|
|
7428
7573
|
} else throwError(state, "unexpected end of the stream within a verbatim tag");
|
|
7429
7574
|
} else {
|
|
7430
|
-
while (ch !== 0 && !
|
|
7575
|
+
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
7431
7576
|
if (ch === 33) if (!isNamed) {
|
|
7432
7577
|
tagHandle = state.input.slice(_position - 1, state.position + 1);
|
|
7433
7578
|
if (!PATTERN_TAG_HANDLE.test(tagHandle)) throwError(state, "named tag handle cannot contain such characters");
|
|
@@ -7453,37 +7598,63 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7453
7598
|
return true;
|
|
7454
7599
|
}
|
|
7455
7600
|
function readAnchorProperty(state) {
|
|
7456
|
-
|
|
7601
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7457
7602
|
if (ch !== 38) return false;
|
|
7458
7603
|
if (state.anchor !== null) throwError(state, "duplication of an anchor property");
|
|
7459
7604
|
ch = state.input.charCodeAt(++state.position);
|
|
7460
|
-
_position = state.position;
|
|
7461
|
-
while (ch !== 0 && !
|
|
7605
|
+
const _position = state.position;
|
|
7606
|
+
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) ch = state.input.charCodeAt(++state.position);
|
|
7462
7607
|
if (state.position === _position) throwError(state, "name of an anchor node must contain at least one character");
|
|
7463
7608
|
state.anchor = state.input.slice(_position, state.position);
|
|
7464
7609
|
return true;
|
|
7465
7610
|
}
|
|
7466
7611
|
function readAlias(state) {
|
|
7467
|
-
|
|
7612
|
+
let ch = state.input.charCodeAt(state.position);
|
|
7468
7613
|
if (ch !== 42) return false;
|
|
7469
7614
|
ch = state.input.charCodeAt(++state.position);
|
|
7470
|
-
_position = state.position;
|
|
7471
|
-
while (ch !== 0 && !
|
|
7615
|
+
const _position = state.position;
|
|
7616
|
+
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) ch = state.input.charCodeAt(++state.position);
|
|
7472
7617
|
if (state.position === _position) throwError(state, "name of an alias node must contain at least one character");
|
|
7473
|
-
alias = state.input.slice(_position, state.position);
|
|
7618
|
+
const alias = state.input.slice(_position, state.position);
|
|
7474
7619
|
if (!_hasOwnProperty.call(state.anchorMap, alias)) throwError(state, "unidentified alias \"" + alias + "\"");
|
|
7475
7620
|
state.result = state.anchorMap[alias];
|
|
7476
7621
|
skipSeparationSpace(state, true, -1);
|
|
7477
7622
|
return true;
|
|
7478
7623
|
}
|
|
7624
|
+
function tryReadBlockMappingFromProperty(state, propertyStart, nodeIndent, flowIndent) {
|
|
7625
|
+
const fallbackState = snapshotState(state);
|
|
7626
|
+
beginAnchorTransaction(state);
|
|
7627
|
+
restoreState(state, propertyStart);
|
|
7628
|
+
state.tag = null;
|
|
7629
|
+
state.anchor = null;
|
|
7630
|
+
state.kind = null;
|
|
7631
|
+
state.result = null;
|
|
7632
|
+
if (readBlockMapping(state, nodeIndent, flowIndent) && state.kind === "mapping") {
|
|
7633
|
+
commitAnchorTransaction(state);
|
|
7634
|
+
return true;
|
|
7635
|
+
}
|
|
7636
|
+
rollbackAnchorTransaction(state);
|
|
7637
|
+
restoreState(state, fallbackState);
|
|
7638
|
+
return false;
|
|
7639
|
+
}
|
|
7479
7640
|
function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
|
|
7480
|
-
|
|
7641
|
+
let allowBlockScalars;
|
|
7642
|
+
let allowBlockCollections;
|
|
7643
|
+
let indentStatus = 1;
|
|
7644
|
+
let atNewLine = false;
|
|
7645
|
+
let hasContent = false;
|
|
7646
|
+
let propertyStart = null;
|
|
7647
|
+
let type;
|
|
7648
|
+
let flowIndent;
|
|
7649
|
+
let blockIndent;
|
|
7650
|
+
if (state.depth >= state.maxDepth) throwError(state, "nesting exceeded maxDepth (" + state.maxDepth + ")");
|
|
7651
|
+
state.depth += 1;
|
|
7481
7652
|
if (state.listener !== null) state.listener("open", state);
|
|
7482
7653
|
state.tag = null;
|
|
7483
7654
|
state.anchor = null;
|
|
7484
7655
|
state.kind = null;
|
|
7485
7656
|
state.result = null;
|
|
7486
|
-
allowBlockStyles = allowBlockScalars = allowBlockCollections = CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext;
|
|
7657
|
+
const allowBlockStyles = allowBlockScalars = allowBlockCollections = CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext;
|
|
7487
7658
|
if (allowToSeek) {
|
|
7488
7659
|
if (skipSeparationSpace(state, true, -1)) {
|
|
7489
7660
|
atNewLine = true;
|
|
@@ -7492,13 +7663,20 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7492
7663
|
else if (state.lineIndent < parentIndent) indentStatus = -1;
|
|
7493
7664
|
}
|
|
7494
7665
|
}
|
|
7495
|
-
if (indentStatus === 1) while (
|
|
7496
|
-
|
|
7497
|
-
|
|
7498
|
-
if (state.
|
|
7499
|
-
|
|
7500
|
-
|
|
7501
|
-
|
|
7666
|
+
if (indentStatus === 1) while (true) {
|
|
7667
|
+
const ch = state.input.charCodeAt(state.position);
|
|
7668
|
+
const propertyState = snapshotState(state);
|
|
7669
|
+
if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null)) break;
|
|
7670
|
+
if (!readTagProperty(state) && !readAnchorProperty(state)) break;
|
|
7671
|
+
if (propertyStart === null) propertyStart = propertyState;
|
|
7672
|
+
if (skipSeparationSpace(state, true, -1)) {
|
|
7673
|
+
atNewLine = true;
|
|
7674
|
+
allowBlockCollections = allowBlockStyles;
|
|
7675
|
+
if (state.lineIndent > parentIndent) indentStatus = 1;
|
|
7676
|
+
else if (state.lineIndent === parentIndent) indentStatus = 0;
|
|
7677
|
+
else if (state.lineIndent < parentIndent) indentStatus = -1;
|
|
7678
|
+
} else allowBlockCollections = false;
|
|
7679
|
+
}
|
|
7502
7680
|
if (allowBlockCollections) allowBlockCollections = atNewLine || allowCompact;
|
|
7503
7681
|
if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
|
|
7504
7682
|
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) flowIndent = parentIndent;
|
|
@@ -7506,7 +7684,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7506
7684
|
blockIndent = state.position - state.lineStart;
|
|
7507
7685
|
if (indentStatus === 1) if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) hasContent = true;
|
|
7508
7686
|
else {
|
|
7509
|
-
|
|
7687
|
+
const ch = state.input.charCodeAt(state.position);
|
|
7688
|
+
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) hasContent = true;
|
|
7689
|
+
else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
|
|
7510
7690
|
else if (readAlias(state)) {
|
|
7511
7691
|
hasContent = true;
|
|
7512
7692
|
if (state.tag !== null || state.anchor !== null) throwError(state, "alias node should not have any properties");
|
|
@@ -7514,20 +7694,20 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7514
7694
|
hasContent = true;
|
|
7515
7695
|
if (state.tag === null) state.tag = "?";
|
|
7516
7696
|
}
|
|
7517
|
-
if (state.anchor !== null) state
|
|
7697
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
7518
7698
|
}
|
|
7519
7699
|
else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
7520
7700
|
}
|
|
7521
7701
|
if (state.tag === null) {
|
|
7522
|
-
if (state.anchor !== null) state
|
|
7702
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
7523
7703
|
} else if (state.tag === "?") {
|
|
7524
7704
|
if (state.result !== null && state.kind !== "scalar") throwError(state, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + state.kind + "\"");
|
|
7525
|
-
for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
|
|
7705
|
+
for (let typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
|
|
7526
7706
|
type = state.implicitTypes[typeIndex];
|
|
7527
7707
|
if (type.resolve(state.result)) {
|
|
7528
7708
|
state.result = type.construct(state.result);
|
|
7529
7709
|
state.tag = type.tag;
|
|
7530
|
-
if (state.anchor !== null) state
|
|
7710
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
7531
7711
|
break;
|
|
7532
7712
|
}
|
|
7533
7713
|
}
|
|
@@ -7535,8 +7715,8 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7535
7715
|
if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) type = state.typeMap[state.kind || "fallback"][state.tag];
|
|
7536
7716
|
else {
|
|
7537
7717
|
type = null;
|
|
7538
|
-
typeList = state.typeMap.multi[state.kind || "fallback"];
|
|
7539
|
-
for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
|
|
7718
|
+
const typeList = state.typeMap.multi[state.kind || "fallback"];
|
|
7719
|
+
for (let typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
|
|
7540
7720
|
type = typeList[typeIndex];
|
|
7541
7721
|
break;
|
|
7542
7722
|
}
|
|
@@ -7546,14 +7726,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7546
7726
|
if (!type.resolve(state.result, state.tag)) throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
|
|
7547
7727
|
else {
|
|
7548
7728
|
state.result = type.construct(state.result, state.tag);
|
|
7549
|
-
if (state.anchor !== null) state
|
|
7729
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
7550
7730
|
}
|
|
7551
7731
|
}
|
|
7552
7732
|
if (state.listener !== null) state.listener("close", state);
|
|
7733
|
+
state.depth -= 1;
|
|
7553
7734
|
return state.tag !== null || state.anchor !== null || hasContent;
|
|
7554
7735
|
}
|
|
7555
7736
|
function readDocument(state) {
|
|
7556
|
-
|
|
7737
|
+
const documentStart = state.position;
|
|
7738
|
+
let hasDirectives = false;
|
|
7739
|
+
let ch;
|
|
7557
7740
|
state.version = null;
|
|
7558
7741
|
state.checkLineBreaks = state.legacy;
|
|
7559
7742
|
state.tagMap = Object.create(null);
|
|
@@ -7564,22 +7747,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7564
7747
|
if (state.lineIndent > 0 || ch !== 37) break;
|
|
7565
7748
|
hasDirectives = true;
|
|
7566
7749
|
ch = state.input.charCodeAt(++state.position);
|
|
7567
|
-
_position = state.position;
|
|
7568
|
-
while (ch !== 0 && !
|
|
7569
|
-
directiveName = state.input.slice(_position, state.position);
|
|
7570
|
-
directiveArgs = [];
|
|
7750
|
+
let _position = state.position;
|
|
7751
|
+
while (ch !== 0 && !isWsOrEol(ch)) ch = state.input.charCodeAt(++state.position);
|
|
7752
|
+
const directiveName = state.input.slice(_position, state.position);
|
|
7753
|
+
const directiveArgs = [];
|
|
7571
7754
|
if (directiveName.length < 1) throwError(state, "directive name must not be less than one character in length");
|
|
7572
7755
|
while (ch !== 0) {
|
|
7573
|
-
while (
|
|
7756
|
+
while (isWhiteSpace(ch)) ch = state.input.charCodeAt(++state.position);
|
|
7574
7757
|
if (ch === 35) {
|
|
7575
7758
|
do
|
|
7576
7759
|
ch = state.input.charCodeAt(++state.position);
|
|
7577
|
-
while (ch !== 0 && !
|
|
7760
|
+
while (ch !== 0 && !isEol(ch));
|
|
7578
7761
|
break;
|
|
7579
7762
|
}
|
|
7580
|
-
if (
|
|
7763
|
+
if (isEol(ch)) break;
|
|
7581
7764
|
_position = state.position;
|
|
7582
|
-
while (ch !== 0 && !
|
|
7765
|
+
while (ch !== 0 && !isWsOrEol(ch)) ch = state.input.charCodeAt(++state.position);
|
|
7583
7766
|
directiveArgs.push(state.input.slice(_position, state.position));
|
|
7584
7767
|
}
|
|
7585
7768
|
if (ch !== 0) readLineBreak(state);
|
|
@@ -7603,7 +7786,6 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7603
7786
|
return;
|
|
7604
7787
|
}
|
|
7605
7788
|
if (state.position < state.length - 1) throwError(state, "end of the stream or a document separator is expected");
|
|
7606
|
-
else return;
|
|
7607
7789
|
}
|
|
7608
7790
|
function loadDocuments(input, options) {
|
|
7609
7791
|
input = String(input);
|
|
@@ -7612,8 +7794,8 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7612
7794
|
if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) input += "\n";
|
|
7613
7795
|
if (input.charCodeAt(0) === 65279) input = input.slice(1);
|
|
7614
7796
|
}
|
|
7615
|
-
|
|
7616
|
-
|
|
7797
|
+
const state = new State(input, options);
|
|
7798
|
+
const nullpos = input.indexOf("\0");
|
|
7617
7799
|
if (nullpos !== -1) {
|
|
7618
7800
|
state.position = nullpos;
|
|
7619
7801
|
throwError(state, "null byte is not allowed in input");
|
|
@@ -7631,12 +7813,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7631
7813
|
options = iterator;
|
|
7632
7814
|
iterator = null;
|
|
7633
7815
|
}
|
|
7634
|
-
|
|
7816
|
+
const documents = loadDocuments(input, options);
|
|
7635
7817
|
if (typeof iterator !== "function") return documents;
|
|
7636
|
-
for (
|
|
7818
|
+
for (let index = 0, length = documents.length; index < length; index += 1) iterator(documents[index]);
|
|
7637
7819
|
}
|
|
7638
7820
|
function load(input, options) {
|
|
7639
|
-
|
|
7821
|
+
const documents = loadDocuments(input, options);
|
|
7640
7822
|
if (documents.length === 0) return;
|
|
7641
7823
|
else if (documents.length === 1) return documents[0];
|
|
7642
7824
|
throw new YAMLException("expected a single document in the stream, but found more");
|
|
@@ -7645,39 +7827,39 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7645
7827
|
module.exports.load = load;
|
|
7646
7828
|
}));
|
|
7647
7829
|
//#endregion
|
|
7648
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
7830
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/dumper.js
|
|
7649
7831
|
var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7650
|
-
|
|
7651
|
-
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
|
|
7655
|
-
|
|
7656
|
-
|
|
7657
|
-
|
|
7658
|
-
|
|
7659
|
-
|
|
7660
|
-
|
|
7661
|
-
|
|
7662
|
-
|
|
7663
|
-
|
|
7664
|
-
|
|
7665
|
-
|
|
7666
|
-
|
|
7667
|
-
|
|
7668
|
-
|
|
7669
|
-
|
|
7670
|
-
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
|
|
7832
|
+
const common = require_common();
|
|
7833
|
+
const YAMLException = require_exception();
|
|
7834
|
+
const DEFAULT_SCHEMA = require_default();
|
|
7835
|
+
const _toString = Object.prototype.toString;
|
|
7836
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
7837
|
+
const CHAR_BOM = 65279;
|
|
7838
|
+
const CHAR_TAB = 9;
|
|
7839
|
+
const CHAR_LINE_FEED = 10;
|
|
7840
|
+
const CHAR_CARRIAGE_RETURN = 13;
|
|
7841
|
+
const CHAR_SPACE = 32;
|
|
7842
|
+
const CHAR_EXCLAMATION = 33;
|
|
7843
|
+
const CHAR_DOUBLE_QUOTE = 34;
|
|
7844
|
+
const CHAR_SHARP = 35;
|
|
7845
|
+
const CHAR_PERCENT = 37;
|
|
7846
|
+
const CHAR_AMPERSAND = 38;
|
|
7847
|
+
const CHAR_SINGLE_QUOTE = 39;
|
|
7848
|
+
const CHAR_ASTERISK = 42;
|
|
7849
|
+
const CHAR_COMMA = 44;
|
|
7850
|
+
const CHAR_MINUS = 45;
|
|
7851
|
+
const CHAR_COLON = 58;
|
|
7852
|
+
const CHAR_EQUALS = 61;
|
|
7853
|
+
const CHAR_GREATER_THAN = 62;
|
|
7854
|
+
const CHAR_QUESTION = 63;
|
|
7855
|
+
const CHAR_COMMERCIAL_AT = 64;
|
|
7856
|
+
const CHAR_LEFT_SQUARE_BRACKET = 91;
|
|
7857
|
+
const CHAR_RIGHT_SQUARE_BRACKET = 93;
|
|
7858
|
+
const CHAR_GRAVE_ACCENT = 96;
|
|
7859
|
+
const CHAR_LEFT_CURLY_BRACKET = 123;
|
|
7860
|
+
const CHAR_VERTICAL_LINE = 124;
|
|
7861
|
+
const CHAR_RIGHT_CURLY_BRACKET = 125;
|
|
7862
|
+
const ESCAPE_SEQUENCES = {};
|
|
7681
7863
|
ESCAPE_SEQUENCES[0] = "\\0";
|
|
7682
7864
|
ESCAPE_SEQUENCES[7] = "\\a";
|
|
7683
7865
|
ESCAPE_SEQUENCES[8] = "\\b";
|
|
@@ -7693,7 +7875,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7693
7875
|
ESCAPE_SEQUENCES[160] = "\\_";
|
|
7694
7876
|
ESCAPE_SEQUENCES[8232] = "\\L";
|
|
7695
7877
|
ESCAPE_SEQUENCES[8233] = "\\P";
|
|
7696
|
-
|
|
7878
|
+
const DEPRECATED_BOOLEANS_SYNTAX = [
|
|
7697
7879
|
"y",
|
|
7698
7880
|
"Y",
|
|
7699
7881
|
"yes",
|
|
@@ -7711,24 +7893,25 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7711
7893
|
"Off",
|
|
7712
7894
|
"OFF"
|
|
7713
7895
|
];
|
|
7714
|
-
|
|
7896
|
+
const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
7715
7897
|
function compileStyleMap(schema, map) {
|
|
7716
|
-
var result, keys, index, length, tag, style, type;
|
|
7717
7898
|
if (map === null) return {};
|
|
7718
|
-
result = {};
|
|
7719
|
-
keys = Object.keys(map);
|
|
7720
|
-
for (index = 0, length = keys.length; index < length; index += 1) {
|
|
7721
|
-
tag = keys[index];
|
|
7722
|
-
style = String(map[tag]);
|
|
7899
|
+
const result = {};
|
|
7900
|
+
const keys = Object.keys(map);
|
|
7901
|
+
for (let index = 0, length = keys.length; index < length; index += 1) {
|
|
7902
|
+
let tag = keys[index];
|
|
7903
|
+
let style = String(map[tag]);
|
|
7723
7904
|
if (tag.slice(0, 2) === "!!") tag = "tag:yaml.org,2002:" + tag.slice(2);
|
|
7724
|
-
type = schema.compiledTypeMap["fallback"][tag];
|
|
7905
|
+
const type = schema.compiledTypeMap["fallback"][tag];
|
|
7725
7906
|
if (type && _hasOwnProperty.call(type.styleAliases, style)) style = type.styleAliases[style];
|
|
7726
7907
|
result[tag] = style;
|
|
7727
7908
|
}
|
|
7728
7909
|
return result;
|
|
7729
7910
|
}
|
|
7730
7911
|
function encodeHex(character) {
|
|
7731
|
-
|
|
7912
|
+
let handle;
|
|
7913
|
+
let length;
|
|
7914
|
+
const string = character.toString(16).toUpperCase();
|
|
7732
7915
|
if (character <= 255) {
|
|
7733
7916
|
handle = "x";
|
|
7734
7917
|
length = 2;
|
|
@@ -7741,8 +7924,8 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7741
7924
|
} else throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");
|
|
7742
7925
|
return "\\" + handle + common.repeat("0", length - string.length) + string;
|
|
7743
7926
|
}
|
|
7744
|
-
|
|
7745
|
-
|
|
7927
|
+
const QUOTING_TYPE_SINGLE = 1;
|
|
7928
|
+
const QUOTING_TYPE_DOUBLE = 2;
|
|
7746
7929
|
function State(options) {
|
|
7747
7930
|
this.schema = options["schema"] || DEFAULT_SCHEMA;
|
|
7748
7931
|
this.indent = Math.max(1, options["indent"] || 2);
|
|
@@ -7766,9 +7949,13 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7766
7949
|
this.usedDuplicates = null;
|
|
7767
7950
|
}
|
|
7768
7951
|
function indentString(string, spaces) {
|
|
7769
|
-
|
|
7952
|
+
const ind = common.repeat(" ", spaces);
|
|
7953
|
+
let position = 0;
|
|
7954
|
+
let result = "";
|
|
7955
|
+
const length = string.length;
|
|
7770
7956
|
while (position < length) {
|
|
7771
|
-
|
|
7957
|
+
let line;
|
|
7958
|
+
const next = string.indexOf("\n", position);
|
|
7772
7959
|
if (next === -1) {
|
|
7773
7960
|
line = string.slice(position);
|
|
7774
7961
|
position = length;
|
|
@@ -7785,25 +7972,21 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7785
7972
|
return "\n" + common.repeat(" ", state.indent * level);
|
|
7786
7973
|
}
|
|
7787
7974
|
function testImplicitResolving(state, str) {
|
|
7788
|
-
|
|
7789
|
-
for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {
|
|
7790
|
-
type = state.implicitTypes[index];
|
|
7791
|
-
if (type.resolve(str)) return true;
|
|
7792
|
-
}
|
|
7975
|
+
for (let index = 0, length = state.implicitTypes.length; index < length; index += 1) if (state.implicitTypes[index].resolve(str)) return true;
|
|
7793
7976
|
return false;
|
|
7794
7977
|
}
|
|
7795
7978
|
function isWhitespace(c) {
|
|
7796
7979
|
return c === CHAR_SPACE || c === CHAR_TAB;
|
|
7797
7980
|
}
|
|
7798
7981
|
function isPrintable(c) {
|
|
7799
|
-
return
|
|
7982
|
+
return c >= 32 && c <= 126 || c >= 161 && c <= 55295 && c !== 8232 && c !== 8233 || c >= 57344 && c <= 65533 && c !== CHAR_BOM || c >= 65536 && c <= 1114111;
|
|
7800
7983
|
}
|
|
7801
7984
|
function isNsCharOrWhitespace(c) {
|
|
7802
7985
|
return isPrintable(c) && c !== CHAR_BOM && c !== CHAR_CARRIAGE_RETURN && c !== CHAR_LINE_FEED;
|
|
7803
7986
|
}
|
|
7804
7987
|
function isPlainSafe(c, prev, inblock) {
|
|
7805
|
-
|
|
7806
|
-
|
|
7988
|
+
const cIsNsCharOrWhitespace = isNsCharOrWhitespace(c);
|
|
7989
|
+
const cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c);
|
|
7807
7990
|
return (inblock ? cIsNsCharOrWhitespace : cIsNsCharOrWhitespace && c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET) && c !== CHAR_SHARP && !(prev === CHAR_COLON && !cIsNsChar) || isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP || prev === CHAR_COLON && cIsNsChar;
|
|
7808
7991
|
}
|
|
7809
7992
|
function isPlainSafeFirst(c) {
|
|
@@ -7813,7 +7996,8 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7813
7996
|
return !isWhitespace(c) && c !== CHAR_COLON;
|
|
7814
7997
|
}
|
|
7815
7998
|
function codePointAt(string, pos) {
|
|
7816
|
-
|
|
7999
|
+
const first = string.charCodeAt(pos);
|
|
8000
|
+
let second;
|
|
7817
8001
|
if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
|
|
7818
8002
|
second = string.charCodeAt(pos + 1);
|
|
7819
8003
|
if (second >= 56320 && second <= 57343) return (first - 55296) * 1024 + second - 56320 + 65536;
|
|
@@ -7823,20 +8007,20 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7823
8007
|
function needIndentIndicator(string) {
|
|
7824
8008
|
return /^\n* /.test(string);
|
|
7825
8009
|
}
|
|
7826
|
-
|
|
7827
|
-
|
|
7828
|
-
|
|
7829
|
-
|
|
7830
|
-
|
|
8010
|
+
const STYLE_PLAIN = 1;
|
|
8011
|
+
const STYLE_SINGLE = 2;
|
|
8012
|
+
const STYLE_LITERAL = 3;
|
|
8013
|
+
const STYLE_FOLDED = 4;
|
|
8014
|
+
const STYLE_DOUBLE = 5;
|
|
7831
8015
|
function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
|
|
7832
|
-
|
|
7833
|
-
|
|
7834
|
-
|
|
7835
|
-
|
|
7836
|
-
|
|
7837
|
-
|
|
7838
|
-
|
|
7839
|
-
|
|
8016
|
+
let i;
|
|
8017
|
+
let char = 0;
|
|
8018
|
+
let prevChar = null;
|
|
8019
|
+
let hasLineBreak = false;
|
|
8020
|
+
let hasFoldableLine = false;
|
|
8021
|
+
const shouldTrackWidth = lineWidth !== -1;
|
|
8022
|
+
let previousLineBreak = -1;
|
|
8023
|
+
let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
|
|
7840
8024
|
if (singleLineOnly || forceQuotes) for (i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
7841
8025
|
char = codePointAt(string, i);
|
|
7842
8026
|
if (!isPrintable(char)) return STYLE_DOUBLE;
|
|
@@ -7872,9 +8056,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7872
8056
|
if (!state.noCompatMode) {
|
|
7873
8057
|
if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) return state.quotingType === QUOTING_TYPE_DOUBLE ? "\"" + string + "\"" : "'" + string + "'";
|
|
7874
8058
|
}
|
|
7875
|
-
|
|
7876
|
-
|
|
7877
|
-
|
|
8059
|
+
const indent = state.indent * Math.max(1, level);
|
|
8060
|
+
const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
|
|
8061
|
+
const singleLineOnly = iskey || state.flowLevel > -1 && level >= state.flowLevel;
|
|
7878
8062
|
function testAmbiguity(string) {
|
|
7879
8063
|
return testImplicitResolving(state, string);
|
|
7880
8064
|
}
|
|
@@ -7889,26 +8073,27 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7889
8073
|
}();
|
|
7890
8074
|
}
|
|
7891
8075
|
function blockHeader(string, indentPerLevel) {
|
|
7892
|
-
|
|
7893
|
-
|
|
8076
|
+
const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
|
|
8077
|
+
const clip = string[string.length - 1] === "\n";
|
|
7894
8078
|
return indentIndicator + (clip && (string[string.length - 2] === "\n" || string === "\n") ? "+" : clip ? "" : "-") + "\n";
|
|
7895
8079
|
}
|
|
7896
8080
|
function dropEndingNewline(string) {
|
|
7897
8081
|
return string[string.length - 1] === "\n" ? string.slice(0, -1) : string;
|
|
7898
8082
|
}
|
|
7899
8083
|
function foldString(string, width) {
|
|
7900
|
-
|
|
7901
|
-
|
|
7902
|
-
|
|
8084
|
+
const lineRe = /(\n+)([^\n]*)/g;
|
|
8085
|
+
let result = function() {
|
|
8086
|
+
let nextLF = string.indexOf("\n");
|
|
7903
8087
|
nextLF = nextLF !== -1 ? nextLF : string.length;
|
|
7904
8088
|
lineRe.lastIndex = nextLF;
|
|
7905
8089
|
return foldLine(string.slice(0, nextLF), width);
|
|
7906
8090
|
}();
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
|
|
8091
|
+
let prevMoreIndented = string[0] === "\n" || string[0] === " ";
|
|
8092
|
+
let moreIndented;
|
|
8093
|
+
let match;
|
|
7910
8094
|
while (match = lineRe.exec(string)) {
|
|
7911
|
-
|
|
8095
|
+
const prefix = match[1];
|
|
8096
|
+
const line = match[2];
|
|
7912
8097
|
moreIndented = line[0] === " ";
|
|
7913
8098
|
result += prefix + (!prevMoreIndented && !moreIndented && line !== "" ? "\n" : "") + foldLine(line, width);
|
|
7914
8099
|
prevMoreIndented = moreIndented;
|
|
@@ -7917,10 +8102,13 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7917
8102
|
}
|
|
7918
8103
|
function foldLine(line, width) {
|
|
7919
8104
|
if (line === "" || line[0] === " ") return line;
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7923
|
-
|
|
8105
|
+
const breakRe = / [^ ]/g;
|
|
8106
|
+
let match;
|
|
8107
|
+
let start = 0;
|
|
8108
|
+
let end;
|
|
8109
|
+
let curr = 0;
|
|
8110
|
+
let next = 0;
|
|
8111
|
+
let result = "";
|
|
7924
8112
|
while (match = breakRe.exec(line)) {
|
|
7925
8113
|
next = match.index;
|
|
7926
8114
|
if (next - start > width) {
|
|
@@ -7936,12 +8124,11 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7936
8124
|
return result.slice(1);
|
|
7937
8125
|
}
|
|
7938
8126
|
function escapeString(string) {
|
|
7939
|
-
|
|
7940
|
-
|
|
7941
|
-
|
|
7942
|
-
for (var i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
8127
|
+
let result = "";
|
|
8128
|
+
let char = 0;
|
|
8129
|
+
for (let i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
7943
8130
|
char = codePointAt(string, i);
|
|
7944
|
-
escapeSeq = ESCAPE_SEQUENCES[char];
|
|
8131
|
+
const escapeSeq = ESCAPE_SEQUENCES[char];
|
|
7945
8132
|
if (!escapeSeq && isPrintable(char)) {
|
|
7946
8133
|
result += string[i];
|
|
7947
8134
|
if (char >= 65536) result += string[i + 1];
|
|
@@ -7950,9 +8137,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7950
8137
|
return result;
|
|
7951
8138
|
}
|
|
7952
8139
|
function writeFlowSequence(state, level, object) {
|
|
7953
|
-
|
|
7954
|
-
|
|
7955
|
-
|
|
8140
|
+
let _result = "";
|
|
8141
|
+
const _tag = state.tag;
|
|
8142
|
+
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
8143
|
+
let value = object[index];
|
|
7956
8144
|
if (state.replacer) value = state.replacer.call(object, String(index), value);
|
|
7957
8145
|
if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
|
|
7958
8146
|
if (_result !== "") _result += "," + (!state.condenseFlow ? " " : "");
|
|
@@ -7963,9 +8151,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7963
8151
|
state.dump = "[" + _result + "]";
|
|
7964
8152
|
}
|
|
7965
8153
|
function writeBlockSequence(state, level, object, compact) {
|
|
7966
|
-
|
|
7967
|
-
|
|
7968
|
-
|
|
8154
|
+
let _result = "";
|
|
8155
|
+
const _tag = state.tag;
|
|
8156
|
+
for (let index = 0, length = object.length; index < length; index += 1) {
|
|
8157
|
+
let value = object[index];
|
|
7969
8158
|
if (state.replacer) value = state.replacer.call(object, String(index), value);
|
|
7970
8159
|
if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
|
|
7971
8160
|
if (!compact || _result !== "") _result += generateNextLine(state, level);
|
|
@@ -7978,13 +8167,15 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7978
8167
|
state.dump = _result || "[]";
|
|
7979
8168
|
}
|
|
7980
8169
|
function writeFlowMapping(state, level, object) {
|
|
7981
|
-
|
|
7982
|
-
|
|
7983
|
-
|
|
8170
|
+
let _result = "";
|
|
8171
|
+
const _tag = state.tag;
|
|
8172
|
+
const objectKeyList = Object.keys(object);
|
|
8173
|
+
for (let index = 0, length = objectKeyList.length; index < length; index += 1) {
|
|
8174
|
+
let pairBuffer = "";
|
|
7984
8175
|
if (_result !== "") pairBuffer += ", ";
|
|
7985
8176
|
if (state.condenseFlow) pairBuffer += "\"";
|
|
7986
|
-
objectKey = objectKeyList[index];
|
|
7987
|
-
objectValue = object[objectKey];
|
|
8177
|
+
const objectKey = objectKeyList[index];
|
|
8178
|
+
let objectValue = object[objectKey];
|
|
7988
8179
|
if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
7989
8180
|
if (!writeNode(state, level, objectKey, false, false)) continue;
|
|
7990
8181
|
if (state.dump.length > 1024) pairBuffer += "? ";
|
|
@@ -7997,18 +8188,20 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
7997
8188
|
state.dump = "{" + _result + "}";
|
|
7998
8189
|
}
|
|
7999
8190
|
function writeBlockMapping(state, level, object, compact) {
|
|
8000
|
-
|
|
8191
|
+
let _result = "";
|
|
8192
|
+
const _tag = state.tag;
|
|
8193
|
+
const objectKeyList = Object.keys(object);
|
|
8001
8194
|
if (state.sortKeys === true) objectKeyList.sort();
|
|
8002
8195
|
else if (typeof state.sortKeys === "function") objectKeyList.sort(state.sortKeys);
|
|
8003
8196
|
else if (state.sortKeys) throw new YAMLException("sortKeys must be a boolean or a function");
|
|
8004
|
-
for (index = 0, length = objectKeyList.length; index < length; index += 1) {
|
|
8005
|
-
pairBuffer = "";
|
|
8197
|
+
for (let index = 0, length = objectKeyList.length; index < length; index += 1) {
|
|
8198
|
+
let pairBuffer = "";
|
|
8006
8199
|
if (!compact || _result !== "") pairBuffer += generateNextLine(state, level);
|
|
8007
|
-
objectKey = objectKeyList[index];
|
|
8008
|
-
objectValue = object[objectKey];
|
|
8200
|
+
const objectKey = objectKeyList[index];
|
|
8201
|
+
let objectValue = object[objectKey];
|
|
8009
8202
|
if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
8010
8203
|
if (!writeNode(state, level + 1, objectKey, true, true, true)) continue;
|
|
8011
|
-
explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
|
|
8204
|
+
const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
|
|
8012
8205
|
if (explicitPair) if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += "?";
|
|
8013
8206
|
else pairBuffer += "? ";
|
|
8014
8207
|
pairBuffer += state.dump;
|
|
@@ -8023,15 +8216,16 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8023
8216
|
state.dump = _result || "{}";
|
|
8024
8217
|
}
|
|
8025
8218
|
function detectType(state, object, explicit) {
|
|
8026
|
-
|
|
8027
|
-
for (index = 0, length = typeList.length; index < length; index += 1) {
|
|
8028
|
-
type = typeList[index];
|
|
8219
|
+
const typeList = explicit ? state.explicitTypes : state.implicitTypes;
|
|
8220
|
+
for (let index = 0, length = typeList.length; index < length; index += 1) {
|
|
8221
|
+
const type = typeList[index];
|
|
8029
8222
|
if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
|
|
8030
8223
|
if (explicit) if (type.multi && type.representName) state.tag = type.representName(object);
|
|
8031
8224
|
else state.tag = type.tag;
|
|
8032
8225
|
else state.tag = "?";
|
|
8033
8226
|
if (type.represent) {
|
|
8034
|
-
style = state.styleMap[type.tag] || type.defaultStyle;
|
|
8227
|
+
const style = state.styleMap[type.tag] || type.defaultStyle;
|
|
8228
|
+
let _result;
|
|
8035
8229
|
if (_toString.call(type.represent) === "[object Function]") _result = type.represent(object, style);
|
|
8036
8230
|
else if (_hasOwnProperty.call(type.represent, style)) _result = type.represent[style](object, style);
|
|
8037
8231
|
else throw new YAMLException("!<" + type.tag + "> tag resolver accepts not \"" + style + "\" style");
|
|
@@ -8046,11 +8240,12 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8046
8240
|
state.tag = null;
|
|
8047
8241
|
state.dump = object;
|
|
8048
8242
|
if (!detectType(state, object, false)) detectType(state, object, true);
|
|
8049
|
-
|
|
8050
|
-
|
|
8051
|
-
var tagStr;
|
|
8243
|
+
const type = _toString.call(state.dump);
|
|
8244
|
+
const inblock = block;
|
|
8052
8245
|
if (block) block = state.flowLevel < 0 || state.flowLevel > level;
|
|
8053
|
-
|
|
8246
|
+
const objectOrArray = type === "[object Object]" || type === "[object Array]";
|
|
8247
|
+
let duplicateIndex;
|
|
8248
|
+
let duplicate;
|
|
8054
8249
|
if (objectOrArray) {
|
|
8055
8250
|
duplicateIndex = state.duplicates.indexOf(object);
|
|
8056
8251
|
duplicate = duplicateIndex !== -1;
|
|
@@ -8082,7 +8277,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8082
8277
|
throw new YAMLException("unacceptable kind of an object to dump " + type);
|
|
8083
8278
|
}
|
|
8084
8279
|
if (state.tag !== null && state.tag !== "?") {
|
|
8085
|
-
tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
|
|
8280
|
+
let tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
|
|
8086
8281
|
if (state.tag[0] === "!") tagStr = "!" + tagStr;
|
|
8087
8282
|
else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") tagStr = "!!" + tagStr.slice(18);
|
|
8088
8283
|
else tagStr = "!<" + tagStr + ">";
|
|
@@ -8092,32 +8287,33 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8092
8287
|
return true;
|
|
8093
8288
|
}
|
|
8094
8289
|
function getDuplicateReferences(object, state) {
|
|
8095
|
-
|
|
8290
|
+
const objects = [];
|
|
8291
|
+
const duplicatesIndexes = [];
|
|
8096
8292
|
inspectNode(object, objects, duplicatesIndexes);
|
|
8097
|
-
|
|
8293
|
+
const length = duplicatesIndexes.length;
|
|
8294
|
+
for (let index = 0; index < length; index += 1) state.duplicates.push(objects[duplicatesIndexes[index]]);
|
|
8098
8295
|
state.usedDuplicates = new Array(length);
|
|
8099
8296
|
}
|
|
8100
8297
|
function inspectNode(object, objects, duplicatesIndexes) {
|
|
8101
|
-
var objectKeyList, index, length;
|
|
8102
8298
|
if (object !== null && typeof object === "object") {
|
|
8103
|
-
index = objects.indexOf(object);
|
|
8299
|
+
const index = objects.indexOf(object);
|
|
8104
8300
|
if (index !== -1) {
|
|
8105
8301
|
if (duplicatesIndexes.indexOf(index) === -1) duplicatesIndexes.push(index);
|
|
8106
8302
|
} else {
|
|
8107
8303
|
objects.push(object);
|
|
8108
|
-
if (Array.isArray(object)) for (
|
|
8304
|
+
if (Array.isArray(object)) for (let i = 0, length = object.length; i < length; i += 1) inspectNode(object[i], objects, duplicatesIndexes);
|
|
8109
8305
|
else {
|
|
8110
|
-
objectKeyList = Object.keys(object);
|
|
8111
|
-
for (
|
|
8306
|
+
const objectKeyList = Object.keys(object);
|
|
8307
|
+
for (let i = 0, length = objectKeyList.length; i < length; i += 1) inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
|
|
8112
8308
|
}
|
|
8113
8309
|
}
|
|
8114
8310
|
}
|
|
8115
8311
|
}
|
|
8116
8312
|
function dump(input, options) {
|
|
8117
8313
|
options = options || {};
|
|
8118
|
-
|
|
8314
|
+
const state = new State(options);
|
|
8119
8315
|
if (!state.noRefs) getDuplicateReferences(input, state);
|
|
8120
|
-
|
|
8316
|
+
let value = input;
|
|
8121
8317
|
if (state.replacer) value = state.replacer.call({ "": value }, "", value);
|
|
8122
8318
|
if (writeNode(state, 0, value, true, true)) return state.dump + "\n";
|
|
8123
8319
|
return "";
|
|
@@ -8125,10 +8321,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8125
8321
|
module.exports.dump = dump;
|
|
8126
8322
|
}));
|
|
8127
8323
|
//#endregion
|
|
8128
|
-
//#region ../../node_modules/.pnpm/js-yaml@4.
|
|
8324
|
+
//#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/index.js
|
|
8129
8325
|
var require_js_yaml = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8130
|
-
|
|
8131
|
-
|
|
8326
|
+
const loader = require_loader();
|
|
8327
|
+
const dumper = require_dumper();
|
|
8132
8328
|
function renamed(from, to) {
|
|
8133
8329
|
return function() {
|
|
8134
8330
|
throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
|
|
@@ -9404,7 +9600,7 @@ const range = (a, b, str) => {
|
|
|
9404
9600
|
return result;
|
|
9405
9601
|
};
|
|
9406
9602
|
//#endregion
|
|
9407
|
-
//#region ../../node_modules/.pnpm/brace-expansion@5.0.
|
|
9603
|
+
//#region ../../node_modules/.pnpm/brace-expansion@5.0.7/node_modules/brace-expansion/dist/esm/index.js
|
|
9408
9604
|
const escSlash = "\0SLASH" + Math.random() + "\0";
|
|
9409
9605
|
const escOpen = "\0OPEN" + Math.random() + "\0";
|
|
9410
9606
|
const escClose = "\0CLOSE" + Math.random() + "\0";
|
|
@@ -9472,15 +9668,18 @@ function gte(i, y) {
|
|
|
9472
9668
|
function expand_(str, max, isTop) {
|
|
9473
9669
|
/** @type {string[]} */
|
|
9474
9670
|
const expansions = [];
|
|
9475
|
-
|
|
9476
|
-
|
|
9477
|
-
|
|
9478
|
-
|
|
9479
|
-
|
|
9480
|
-
|
|
9481
|
-
|
|
9482
|
-
|
|
9483
|
-
|
|
9671
|
+
for (;;) {
|
|
9672
|
+
const m = balanced("{", "}", str);
|
|
9673
|
+
if (!m) return [str];
|
|
9674
|
+
const pre = m.pre;
|
|
9675
|
+
if (/\$$/.test(m.pre)) {
|
|
9676
|
+
const post = m.post.length ? expand_(m.post, max, false) : [""];
|
|
9677
|
+
for (let k = 0; k < post.length && k < max; k++) {
|
|
9678
|
+
const expansion = pre + "{" + m.body + "}" + post[k];
|
|
9679
|
+
expansions.push(expansion);
|
|
9680
|
+
}
|
|
9681
|
+
return expansions;
|
|
9682
|
+
}
|
|
9484
9683
|
const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
9485
9684
|
const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
9486
9685
|
const isSequence = isNumericSequence || isAlphaSequence;
|
|
@@ -9488,10 +9687,12 @@ function expand_(str, max, isTop) {
|
|
|
9488
9687
|
if (!isSequence && !isOptions) {
|
|
9489
9688
|
if (m.post.match(/,(?!,).*\}/)) {
|
|
9490
9689
|
str = m.pre + "{" + m.body + escClose + m.post;
|
|
9491
|
-
|
|
9690
|
+
isTop = true;
|
|
9691
|
+
continue;
|
|
9492
9692
|
}
|
|
9493
9693
|
return [str];
|
|
9494
9694
|
}
|
|
9695
|
+
const post = m.post.length ? expand_(m.post, max, false) : [""];
|
|
9495
9696
|
let n;
|
|
9496
9697
|
if (isSequence) n = m.body.split(/\.\./);
|
|
9497
9698
|
else {
|
|
@@ -9541,8 +9742,8 @@ function expand_(str, max, isTop) {
|
|
|
9541
9742
|
const expansion = pre + N[j] + post[k];
|
|
9542
9743
|
if (!isTop || isSequence || expansion) expansions.push(expansion);
|
|
9543
9744
|
}
|
|
9745
|
+
return expansions;
|
|
9544
9746
|
}
|
|
9545
|
-
return expansions;
|
|
9546
9747
|
}
|
|
9547
9748
|
//#endregion
|
|
9548
9749
|
//#region ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/assert-valid-pattern.js
|