@aws/nx-plugin-mcp 1.0.0-rc.64 → 1.0.0-rc.66
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/bin/aws-nx-mcp.js
CHANGED
|
@@ -277,13 +277,14 @@ const errorMap = (issue, _ctx) => {
|
|
|
277
277
|
message = `Invalid date`;
|
|
278
278
|
break;
|
|
279
279
|
case ZodIssueCode.invalid_string:
|
|
280
|
-
if (typeof issue.validation === "object")
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
280
|
+
if (typeof issue.validation === "object") {
|
|
281
|
+
if ("includes" in issue.validation) {
|
|
282
|
+
message = `Invalid input: must include "${issue.validation.includes}"`;
|
|
283
|
+
if (typeof issue.validation.position === "number") message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;
|
|
284
|
+
} else if ("startsWith" in issue.validation) message = `Invalid input: must start with "${issue.validation.startsWith}"`;
|
|
285
|
+
else if ("endsWith" in issue.validation) message = `Invalid input: must end with "${issue.validation.endsWith}"`;
|
|
286
|
+
else util.assertNever(issue.validation);
|
|
287
|
+
} else if (issue.validation !== "regex") message = `Invalid ${issue.validation}`;
|
|
287
288
|
else message = "Invalid";
|
|
288
289
|
break;
|
|
289
290
|
case ZodIssueCode.too_small:
|
|
@@ -448,8 +449,10 @@ var ParseInputLazyPath = class {
|
|
|
448
449
|
this._key = key;
|
|
449
450
|
}
|
|
450
451
|
get path() {
|
|
451
|
-
if (!this._cachedPath.length)
|
|
452
|
-
|
|
452
|
+
if (!this._cachedPath.length) {
|
|
453
|
+
if (Array.isArray(this._key)) this._cachedPath.push(...this._path, ...this._key);
|
|
454
|
+
else this._cachedPath.push(...this._path, this._key);
|
|
455
|
+
}
|
|
453
456
|
return this._cachedPath;
|
|
454
457
|
}
|
|
455
458
|
};
|
|
@@ -3263,30 +3266,32 @@ var ZodEffects = class extends ZodType$1 {
|
|
|
3263
3266
|
});
|
|
3264
3267
|
});
|
|
3265
3268
|
}
|
|
3266
|
-
if (effect.type === "transform")
|
|
3267
|
-
|
|
3269
|
+
if (effect.type === "transform") {
|
|
3270
|
+
if (ctx.common.async === false) {
|
|
3271
|
+
const base = this._def.schema._parseSync({
|
|
3272
|
+
data: ctx.data,
|
|
3273
|
+
path: ctx.path,
|
|
3274
|
+
parent: ctx
|
|
3275
|
+
});
|
|
3276
|
+
if (!isValid(base)) return INVALID;
|
|
3277
|
+
const result = effect.transform(base.value, checkCtx);
|
|
3278
|
+
if (result instanceof Promise) throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
|
|
3279
|
+
return {
|
|
3280
|
+
status: status.value,
|
|
3281
|
+
value: result
|
|
3282
|
+
};
|
|
3283
|
+
} else return this._def.schema._parseAsync({
|
|
3268
3284
|
data: ctx.data,
|
|
3269
3285
|
path: ctx.path,
|
|
3270
3286
|
parent: ctx
|
|
3287
|
+
}).then((base) => {
|
|
3288
|
+
if (!isValid(base)) return INVALID;
|
|
3289
|
+
return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
|
|
3290
|
+
status: status.value,
|
|
3291
|
+
value: result
|
|
3292
|
+
}));
|
|
3271
3293
|
});
|
|
3272
|
-
|
|
3273
|
-
const result = effect.transform(base.value, checkCtx);
|
|
3274
|
-
if (result instanceof Promise) throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
|
|
3275
|
-
return {
|
|
3276
|
-
status: status.value,
|
|
3277
|
-
value: result
|
|
3278
|
-
};
|
|
3279
|
-
} else return this._def.schema._parseAsync({
|
|
3280
|
-
data: ctx.data,
|
|
3281
|
-
path: ctx.path,
|
|
3282
|
-
parent: ctx
|
|
3283
|
-
}).then((base) => {
|
|
3284
|
-
if (!isValid(base)) return INVALID;
|
|
3285
|
-
return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
|
|
3286
|
-
status: status.value,
|
|
3287
|
-
value: result
|
|
3288
|
-
}));
|
|
3289
|
-
});
|
|
3294
|
+
}
|
|
3290
3295
|
util.assertNever(effect);
|
|
3291
3296
|
}
|
|
3292
3297
|
};
|
|
@@ -4225,8 +4230,10 @@ const $ZodCheckLessThan = /*@__PURE__*/ $constructor("$ZodCheckLessThan", (inst,
|
|
|
4225
4230
|
inst._zod.onattach.push((inst) => {
|
|
4226
4231
|
const bag = inst._zod.bag;
|
|
4227
4232
|
const curr = (def.inclusive ? bag.maximum : bag.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
|
|
4228
|
-
if (def.value < curr)
|
|
4229
|
-
|
|
4233
|
+
if (def.value < curr) {
|
|
4234
|
+
if (def.inclusive) bag.maximum = def.value;
|
|
4235
|
+
else bag.exclusiveMaximum = def.value;
|
|
4236
|
+
}
|
|
4230
4237
|
});
|
|
4231
4238
|
inst._zod.check = (payload) => {
|
|
4232
4239
|
if (def.inclusive ? payload.value <= def.value : payload.value < def.value) return;
|
|
@@ -4247,8 +4254,10 @@ const $ZodCheckGreaterThan = /*@__PURE__*/ $constructor("$ZodCheckGreaterThan",
|
|
|
4247
4254
|
inst._zod.onattach.push((inst) => {
|
|
4248
4255
|
const bag = inst._zod.bag;
|
|
4249
4256
|
const curr = (def.inclusive ? bag.minimum : bag.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
|
|
4250
|
-
if (def.value > curr)
|
|
4251
|
-
|
|
4257
|
+
if (def.value > curr) {
|
|
4258
|
+
if (def.inclusive) bag.minimum = def.value;
|
|
4259
|
+
else bag.exclusiveMinimum = def.value;
|
|
4260
|
+
}
|
|
4252
4261
|
});
|
|
4253
4262
|
inst._zod.check = (payload) => {
|
|
4254
4263
|
if (def.inclusive ? payload.value >= def.value : payload.value > def.value) return;
|
|
@@ -5166,13 +5175,13 @@ const $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
|
|
|
5166
5175
|
}
|
|
5167
5176
|
return propValues;
|
|
5168
5177
|
});
|
|
5169
|
-
const isObject$
|
|
5178
|
+
const isObject$1 = isObject;
|
|
5170
5179
|
const catchall = def.catchall;
|
|
5171
5180
|
let value;
|
|
5172
5181
|
inst._zod.parse = (payload, ctx) => {
|
|
5173
5182
|
value ?? (value = _normalized.value);
|
|
5174
5183
|
const input = payload.value;
|
|
5175
|
-
if (!isObject$
|
|
5184
|
+
if (!isObject$1(input)) {
|
|
5176
5185
|
payload.issues.push({
|
|
5177
5186
|
expected: "object",
|
|
5178
5187
|
code: "invalid_type",
|
|
@@ -5295,7 +5304,7 @@ const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
5295
5304
|
return (payload, ctx) => fn(shape, payload, ctx);
|
|
5296
5305
|
};
|
|
5297
5306
|
let fastpass;
|
|
5298
|
-
const isObject$
|
|
5307
|
+
const isObject$2 = isObject;
|
|
5299
5308
|
const jit = !globalConfig.jitless;
|
|
5300
5309
|
const fastEnabled = jit && allowsEval.value;
|
|
5301
5310
|
const catchall = def.catchall;
|
|
@@ -5303,7 +5312,7 @@ const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) =>
|
|
|
5303
5312
|
inst._zod.parse = (payload, ctx) => {
|
|
5304
5313
|
value ?? (value = _normalized.value);
|
|
5305
5314
|
const input = payload.value;
|
|
5306
|
-
if (!isObject$
|
|
5315
|
+
if (!isObject$2(input)) {
|
|
5307
5316
|
payload.issues.push({
|
|
5308
5317
|
expected: "object",
|
|
5309
5318
|
code: "invalid_type",
|
|
@@ -6694,8 +6703,10 @@ function finalize(ctx, schema) {
|
|
|
6694
6703
|
defs[seen.defId] = seen.def;
|
|
6695
6704
|
}
|
|
6696
6705
|
}
|
|
6697
|
-
if (ctx.external) {} else if (Object.keys(defs).length > 0)
|
|
6698
|
-
|
|
6706
|
+
if (ctx.external) {} else if (Object.keys(defs).length > 0) {
|
|
6707
|
+
if (ctx.target === "draft-2020-12") result.$defs = defs;
|
|
6708
|
+
else result.definitions = defs;
|
|
6709
|
+
}
|
|
6699
6710
|
try {
|
|
6700
6711
|
const finalized = JSON.parse(JSON.stringify(result));
|
|
6701
6712
|
Object.defineProperty(finalized, "~standard", {
|
|
@@ -6808,16 +6819,18 @@ const numberProcessor = (schema, ctx, _json, _params) => {
|
|
|
6808
6819
|
const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
|
|
6809
6820
|
const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
|
|
6810
6821
|
const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
|
|
6811
|
-
if (exMin)
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
if (
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6822
|
+
if (exMin) {
|
|
6823
|
+
if (legacy) {
|
|
6824
|
+
json.minimum = exclusiveMinimum;
|
|
6825
|
+
json.exclusiveMinimum = true;
|
|
6826
|
+
} else json.exclusiveMinimum = exclusiveMinimum;
|
|
6827
|
+
} else if (typeof minimum === "number") json.minimum = minimum;
|
|
6828
|
+
if (exMax) {
|
|
6829
|
+
if (legacy) {
|
|
6830
|
+
json.maximum = exclusiveMaximum;
|
|
6831
|
+
json.exclusiveMaximum = true;
|
|
6832
|
+
} else json.exclusiveMaximum = exclusiveMaximum;
|
|
6833
|
+
} else if (typeof maximum === "number") json.maximum = maximum;
|
|
6821
6834
|
if (typeof multipleOf === "number") json.multipleOf = multipleOf;
|
|
6822
6835
|
};
|
|
6823
6836
|
const booleanProcessor = (_schema, _ctx, json, _params) => {
|
|
@@ -6862,9 +6875,10 @@ const literalProcessor = (schema, ctx, json, _params) => {
|
|
|
6862
6875
|
const vals = [];
|
|
6863
6876
|
for (const val of def.values) if (val === void 0) {
|
|
6864
6877
|
if (ctx.unrepresentable === "throw") throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
6865
|
-
} else if (typeof val === "bigint")
|
|
6866
|
-
|
|
6867
|
-
|
|
6878
|
+
} else if (typeof val === "bigint") {
|
|
6879
|
+
if (ctx.unrepresentable === "throw") throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
6880
|
+
else vals.push(Number(val));
|
|
6881
|
+
} else vals.push(val);
|
|
6868
6882
|
if (vals.length === 0) {} else if (vals.length === 1) {
|
|
6869
6883
|
const val = vals[0];
|
|
6870
6884
|
json.type = val === null ? "null" : typeof val;
|
|
@@ -6898,14 +6912,15 @@ const fileProcessor = (schema, _ctx, json, _params) => {
|
|
|
6898
6912
|
const { minimum, maximum, mime } = schema._zod.bag;
|
|
6899
6913
|
if (minimum !== void 0) file.minLength = minimum;
|
|
6900
6914
|
if (maximum !== void 0) file.maxLength = maximum;
|
|
6901
|
-
if (mime)
|
|
6902
|
-
|
|
6903
|
-
|
|
6904
|
-
|
|
6905
|
-
|
|
6906
|
-
|
|
6907
|
-
|
|
6908
|
-
|
|
6915
|
+
if (mime) {
|
|
6916
|
+
if (mime.length === 1) {
|
|
6917
|
+
file.contentMediaType = mime[0];
|
|
6918
|
+
Object.assign(_json, file);
|
|
6919
|
+
} else {
|
|
6920
|
+
Object.assign(_json, file);
|
|
6921
|
+
_json.anyOf = mime.map((m) => ({ contentMediaType: m }));
|
|
6922
|
+
}
|
|
6923
|
+
} else Object.assign(_json, file);
|
|
6909
6924
|
};
|
|
6910
6925
|
const successProcessor = (_schema, _ctx, json, _params) => {
|
|
6911
6926
|
json.type = "boolean";
|
|
@@ -10327,17 +10342,19 @@ function parseBigintDef(def, refs) {
|
|
|
10327
10342
|
if (!def.checks) return res;
|
|
10328
10343
|
for (const check of def.checks) switch (check.kind) {
|
|
10329
10344
|
case "min":
|
|
10330
|
-
if (refs.target === "jsonSchema7")
|
|
10331
|
-
|
|
10332
|
-
|
|
10345
|
+
if (refs.target === "jsonSchema7") {
|
|
10346
|
+
if (check.inclusive) setResponseValueAndErrors(res, "minimum", check.value, check.message, refs);
|
|
10347
|
+
else setResponseValueAndErrors(res, "exclusiveMinimum", check.value, check.message, refs);
|
|
10348
|
+
} else {
|
|
10333
10349
|
if (!check.inclusive) res.exclusiveMinimum = true;
|
|
10334
10350
|
setResponseValueAndErrors(res, "minimum", check.value, check.message, refs);
|
|
10335
10351
|
}
|
|
10336
10352
|
break;
|
|
10337
10353
|
case "max":
|
|
10338
|
-
if (refs.target === "jsonSchema7")
|
|
10339
|
-
|
|
10340
|
-
|
|
10354
|
+
if (refs.target === "jsonSchema7") {
|
|
10355
|
+
if (check.inclusive) setResponseValueAndErrors(res, "maximum", check.value, check.message, refs);
|
|
10356
|
+
else setResponseValueAndErrors(res, "exclusiveMaximum", check.value, check.message, refs);
|
|
10357
|
+
} else {
|
|
10341
10358
|
if (!check.inclusive) res.exclusiveMaximum = true;
|
|
10342
10359
|
setResponseValueAndErrors(res, "maximum", check.value, check.message, refs);
|
|
10343
10360
|
}
|
|
@@ -10947,17 +10964,19 @@ function parseNumberDef(def, refs) {
|
|
|
10947
10964
|
addErrorMessage(res, "type", check.message, refs);
|
|
10948
10965
|
break;
|
|
10949
10966
|
case "min":
|
|
10950
|
-
if (refs.target === "jsonSchema7")
|
|
10951
|
-
|
|
10952
|
-
|
|
10967
|
+
if (refs.target === "jsonSchema7") {
|
|
10968
|
+
if (check.inclusive) setResponseValueAndErrors(res, "minimum", check.value, check.message, refs);
|
|
10969
|
+
else setResponseValueAndErrors(res, "exclusiveMinimum", check.value, check.message, refs);
|
|
10970
|
+
} else {
|
|
10953
10971
|
if (!check.inclusive) res.exclusiveMinimum = true;
|
|
10954
10972
|
setResponseValueAndErrors(res, "minimum", check.value, check.message, refs);
|
|
10955
10973
|
}
|
|
10956
10974
|
break;
|
|
10957
10975
|
case "max":
|
|
10958
|
-
if (refs.target === "jsonSchema7")
|
|
10959
|
-
|
|
10960
|
-
|
|
10976
|
+
if (refs.target === "jsonSchema7") {
|
|
10977
|
+
if (check.inclusive) setResponseValueAndErrors(res, "maximum", check.value, check.message, refs);
|
|
10978
|
+
else setResponseValueAndErrors(res, "exclusiveMaximum", check.value, check.message, refs);
|
|
10979
|
+
} else {
|
|
10961
10980
|
if (!check.inclusive) res.exclusiveMaximum = true;
|
|
10962
10981
|
setResponseValueAndErrors(res, "maximum", check.value, check.message, refs);
|
|
10963
10982
|
}
|
|
@@ -14178,10 +14197,12 @@ var require_resolve = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
14178
14197
|
let schOrRef = this.refs[ref];
|
|
14179
14198
|
if (typeof schOrRef == "string") schOrRef = this.refs[schOrRef];
|
|
14180
14199
|
if (typeof schOrRef == "object") checkAmbiguosRef(sch, schOrRef.schema, ref);
|
|
14181
|
-
else if (ref !== normalizeId(fullPath))
|
|
14182
|
-
|
|
14183
|
-
|
|
14184
|
-
|
|
14200
|
+
else if (ref !== normalizeId(fullPath)) {
|
|
14201
|
+
if (ref[0] === "#") {
|
|
14202
|
+
checkAmbiguosRef(sch, localRefs[ref], ref);
|
|
14203
|
+
localRefs[ref] = sch;
|
|
14204
|
+
} else this.refs[ref] = fullPath;
|
|
14205
|
+
}
|
|
14185
14206
|
return ref;
|
|
14186
14207
|
}
|
|
14187
14208
|
function addAnchor(anchor) {
|
|
@@ -14981,9 +15002,11 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14981
15002
|
continue;
|
|
14982
15003
|
}
|
|
14983
15004
|
}
|
|
14984
|
-
if (buffer.length)
|
|
14985
|
-
|
|
14986
|
-
|
|
15005
|
+
if (buffer.length) {
|
|
15006
|
+
if (consume === consumeIsZone) output.zone = buffer.join("");
|
|
15007
|
+
else if (endIpv6) address.push(buffer.join(""));
|
|
15008
|
+
else address.push(stringArrayToHexStripped(buffer));
|
|
15009
|
+
}
|
|
14987
15010
|
output.address = address.join("");
|
|
14988
15011
|
return output;
|
|
14989
15012
|
}
|
|
@@ -15042,15 +15065,16 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15042
15065
|
let nextSlash = -1;
|
|
15043
15066
|
let len = 0;
|
|
15044
15067
|
while (len = input.length) {
|
|
15045
|
-
if (len === 1)
|
|
15046
|
-
|
|
15047
|
-
|
|
15048
|
-
|
|
15049
|
-
|
|
15050
|
-
|
|
15051
|
-
|
|
15052
|
-
|
|
15053
|
-
|
|
15068
|
+
if (len === 1) {
|
|
15069
|
+
if (input === ".") break;
|
|
15070
|
+
else if (input === "/") {
|
|
15071
|
+
output.push("/");
|
|
15072
|
+
break;
|
|
15073
|
+
} else {
|
|
15074
|
+
output.push(input);
|
|
15075
|
+
break;
|
|
15076
|
+
}
|
|
15077
|
+
} else if (len === 2) {
|
|
15054
15078
|
if (input[0] === ".") {
|
|
15055
15079
|
if (input[1] === ".") break;
|
|
15056
15080
|
else if (input[1] === "/") {
|
|
@@ -15474,10 +15498,12 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15474
15498
|
const uriTokens = [];
|
|
15475
15499
|
const schemeHandler = getSchemeHandler(options.scheme || component.scheme);
|
|
15476
15500
|
if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options);
|
|
15477
|
-
if (component.path !== void 0)
|
|
15478
|
-
|
|
15479
|
-
|
|
15480
|
-
|
|
15501
|
+
if (component.path !== void 0) {
|
|
15502
|
+
if (!options.skipEscape) {
|
|
15503
|
+
component.path = escape(component.path);
|
|
15504
|
+
if (component.scheme !== void 0) component.path = component.path.split("%3A").join(":");
|
|
15505
|
+
} else component.path = unescape(component.path);
|
|
15506
|
+
}
|
|
15481
15507
|
if (options.reference !== "suffix" && component.scheme) uriTokens.push(component.scheme, ":");
|
|
15482
15508
|
const authority = recomposeAuthority(component);
|
|
15483
15509
|
if (authority !== void 0) {
|
|
@@ -15514,8 +15540,10 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15514
15540
|
fragment: void 0
|
|
15515
15541
|
};
|
|
15516
15542
|
let isIP = false;
|
|
15517
|
-
if (options.reference === "suffix")
|
|
15518
|
-
|
|
15543
|
+
if (options.reference === "suffix") {
|
|
15544
|
+
if (options.scheme) uri = options.scheme + ":" + uri;
|
|
15545
|
+
else uri = "//" + uri;
|
|
15546
|
+
}
|
|
15519
15547
|
const matches = uri.match(URI_PARSE);
|
|
15520
15548
|
if (matches) {
|
|
15521
15549
|
parsed.scheme = matches[1];
|
|
@@ -15526,11 +15554,13 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15526
15554
|
parsed.query = matches[7];
|
|
15527
15555
|
parsed.fragment = matches[8];
|
|
15528
15556
|
if (isNaN(parsed.port)) parsed.port = matches[5];
|
|
15529
|
-
if (parsed.host)
|
|
15530
|
-
|
|
15531
|
-
|
|
15532
|
-
|
|
15533
|
-
|
|
15557
|
+
if (parsed.host) {
|
|
15558
|
+
if (isIPv4(parsed.host) === false) {
|
|
15559
|
+
const ipv6result = normalizeIPv6(parsed.host);
|
|
15560
|
+
parsed.host = ipv6result.host.toLowerCase();
|
|
15561
|
+
isIP = ipv6result.isIPV6;
|
|
15562
|
+
} else isIP = true;
|
|
15563
|
+
}
|
|
15534
15564
|
if (parsed.scheme === void 0 && parsed.userinfo === void 0 && parsed.host === void 0 && parsed.port === void 0 && parsed.query === void 0 && !parsed.path) parsed.reference = "same-document";
|
|
15535
15565
|
else if (parsed.scheme === void 0) parsed.reference = "relative";
|
|
15536
15566
|
else if (parsed.fragment === void 0) parsed.reference = "absolute";
|
|
@@ -16243,17 +16273,21 @@ var require_ref = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
16243
16273
|
var _a;
|
|
16244
16274
|
if (!it.opts.unevaluated) return;
|
|
16245
16275
|
const schEvaluated = (_a = sch === null || sch === void 0 ? void 0 : sch.validate) === null || _a === void 0 ? void 0 : _a.evaluated;
|
|
16246
|
-
if (it.props !== true)
|
|
16247
|
-
if (schEvaluated
|
|
16248
|
-
|
|
16249
|
-
|
|
16250
|
-
|
|
16276
|
+
if (it.props !== true) {
|
|
16277
|
+
if (schEvaluated && !schEvaluated.dynamicProps) {
|
|
16278
|
+
if (schEvaluated.props !== void 0) it.props = util_1.mergeEvaluated.props(gen, schEvaluated.props, it.props);
|
|
16279
|
+
} else {
|
|
16280
|
+
const props = gen.var("props", (0, codegen_1._)`${source}.evaluated.props`);
|
|
16281
|
+
it.props = util_1.mergeEvaluated.props(gen, props, it.props, codegen_1.Name);
|
|
16282
|
+
}
|
|
16251
16283
|
}
|
|
16252
|
-
if (it.items !== true)
|
|
16253
|
-
if (schEvaluated
|
|
16254
|
-
|
|
16255
|
-
|
|
16256
|
-
|
|
16284
|
+
if (it.items !== true) {
|
|
16285
|
+
if (schEvaluated && !schEvaluated.dynamicItems) {
|
|
16286
|
+
if (schEvaluated.items !== void 0) it.items = util_1.mergeEvaluated.items(gen, schEvaluated.items, it.items);
|
|
16287
|
+
} else {
|
|
16288
|
+
const items = gen.var("items", (0, codegen_1._)`${source}.evaluated.items`);
|
|
16289
|
+
it.items = util_1.mergeEvaluated.items(gen, items, it.items, codegen_1.Name);
|
|
16290
|
+
}
|
|
16257
16291
|
}
|
|
16258
16292
|
}
|
|
16259
16293
|
}
|
|
@@ -20767,17 +20801,17 @@ const NX_VERSION = {
|
|
|
20767
20801
|
"@aws/aws-distro-opentelemetry-node-autoinstrumentation": "0.12.0",
|
|
20768
20802
|
"@opentelemetry/propagator-jaeger": "2.10.0",
|
|
20769
20803
|
minimatch: "10.2.6",
|
|
20770
|
-
"@aws-sdk/client-dynamodb": "3.
|
|
20771
|
-
"@aws-sdk/client-api-gateway": "3.
|
|
20772
|
-
"@aws-sdk/client-iam": "3.
|
|
20773
|
-
"@aws-sdk/client-bedrock-agentcore": "3.
|
|
20774
|
-
"@aws-sdk/client-bedrock-runtime": "3.
|
|
20775
|
-
"@aws-sdk/client-s3": "3.
|
|
20776
|
-
"@aws-sdk/client-sts": "3.
|
|
20777
|
-
"@aws-sdk/credential-providers": "3.
|
|
20778
|
-
"@aws-sdk/credential-provider-cognito-identity": "3.972.
|
|
20779
|
-
"@aws-sdk/client-secrets-manager": "3.
|
|
20780
|
-
"@aws-sdk/rds-signer": "3.
|
|
20804
|
+
"@aws-sdk/client-dynamodb": "3.1106.0",
|
|
20805
|
+
"@aws-sdk/client-api-gateway": "3.1106.0",
|
|
20806
|
+
"@aws-sdk/client-iam": "3.1106.0",
|
|
20807
|
+
"@aws-sdk/client-bedrock-agentcore": "3.1106.0",
|
|
20808
|
+
"@aws-sdk/client-bedrock-runtime": "3.1106.0",
|
|
20809
|
+
"@aws-sdk/client-s3": "3.1106.0",
|
|
20810
|
+
"@aws-sdk/client-sts": "3.1106.0",
|
|
20811
|
+
"@aws-sdk/credential-providers": "3.1106.0",
|
|
20812
|
+
"@aws-sdk/credential-provider-cognito-identity": "3.972.66",
|
|
20813
|
+
"@aws-sdk/client-secrets-manager": "3.1106.0",
|
|
20814
|
+
"@aws-sdk/rds-signer": "3.1106.0",
|
|
20781
20815
|
"@aws-smithy/server-apigateway": "1.0.0-alpha.10",
|
|
20782
20816
|
"@aws-smithy/server-node": "1.0.0-alpha.10",
|
|
20783
20817
|
"@aws-lambda-powertools/logger": "2.34.0",
|
|
@@ -20785,10 +20819,10 @@ const NX_VERSION = {
|
|
|
20785
20819
|
"@aws-lambda-powertools/parameters": "2.34.0",
|
|
20786
20820
|
"@aws-lambda-powertools/tracer": "2.34.0",
|
|
20787
20821
|
"@aws-lambda-powertools/parser": "2.34.0",
|
|
20788
|
-
"@aws-sdk/client-appconfigdata": "3.
|
|
20822
|
+
"@aws-sdk/client-appconfigdata": "3.1106.0",
|
|
20789
20823
|
"@middy/core": "7.7.2",
|
|
20790
20824
|
"@nxlv/python": "22.2.2",
|
|
20791
|
-
"@nx-extend/terraform": "10.
|
|
20825
|
+
"@nx-extend/terraform": "10.4.1",
|
|
20792
20826
|
nx: "23.1.1",
|
|
20793
20827
|
"@nx/devkit": "23.1.1",
|
|
20794
20828
|
"@nx/js": "23.1.1",
|
|
@@ -20807,27 +20841,27 @@ const NX_VERSION = {
|
|
|
20807
20841
|
"@ag-ui/core": "0.0.57",
|
|
20808
20842
|
"@ag-ui/encoder": "0.0.57",
|
|
20809
20843
|
"agent-chat-cli": "0.3.0",
|
|
20810
|
-
"@copilotkit/react-core": "1.
|
|
20844
|
+
"@copilotkit/react-core": "1.66.4",
|
|
20811
20845
|
rxjs: "7.8.2",
|
|
20812
|
-
"@strands-agents/sdk": "1.
|
|
20813
|
-
"@tanstack/react-router": "1.170.
|
|
20814
|
-
"@tanstack/router-plugin": "1.168.
|
|
20815
|
-
"@tanstack/router-generator": "1.167.
|
|
20846
|
+
"@strands-agents/sdk": "1.12.0",
|
|
20847
|
+
"@tanstack/react-router": "1.170.23",
|
|
20848
|
+
"@tanstack/router-plugin": "1.168.27",
|
|
20849
|
+
"@tanstack/router-generator": "1.167.25",
|
|
20816
20850
|
"@tanstack/virtual-file-routes": "1.162.0",
|
|
20817
20851
|
"@tanstack/router-utils": "1.162.2",
|
|
20818
|
-
"@cloudscape-design/board-components": "3.0.
|
|
20819
|
-
"@cloudscape-design/chat-components": "1.0.
|
|
20820
|
-
"@cloudscape-design/components": "3.0.
|
|
20852
|
+
"@cloudscape-design/board-components": "3.0.213",
|
|
20853
|
+
"@cloudscape-design/chat-components": "1.0.157",
|
|
20854
|
+
"@cloudscape-design/components": "3.0.1342",
|
|
20821
20855
|
"@cloudscape-design/global-styles": "1.0.65",
|
|
20822
20856
|
"@tanstack/react-query": "5.101.4",
|
|
20823
20857
|
"@tanstack/react-query-devtools": "5.101.4",
|
|
20824
20858
|
"@trpc/tanstack-react-query": "11.18.0",
|
|
20825
20859
|
"@trpc/client": "11.18.0",
|
|
20826
20860
|
"@trpc/server": "11.18.0",
|
|
20827
|
-
"@types/node": "26.
|
|
20861
|
+
"@types/node": "26.2.0",
|
|
20828
20862
|
"@types/aws-lambda": "8.10.162",
|
|
20829
20863
|
"@types/cors": "2.8.19",
|
|
20830
|
-
"@types/pg": "8.
|
|
20864
|
+
"@types/pg": "8.21.0",
|
|
20831
20865
|
"@types/ws": "8.18.1",
|
|
20832
20866
|
"@types/express": "5.0.6",
|
|
20833
20867
|
"@smithy/config-resolver": "4.6.16",
|
|
@@ -20840,21 +20874,21 @@ const NX_VERSION = {
|
|
|
20840
20874
|
"@astrojs/starlight": "0.41.3",
|
|
20841
20875
|
astro: "7.1.1",
|
|
20842
20876
|
aws4fetch: "1.0.20",
|
|
20843
|
-
"aws-cdk": "2.1135.
|
|
20877
|
+
"aws-cdk": "2.1135.1",
|
|
20844
20878
|
"aws-cdk-lib": "2.263.0",
|
|
20845
20879
|
"aws-xray-sdk-core": "3.12.0",
|
|
20846
|
-
constructs: "10.8.
|
|
20880
|
+
constructs: "10.8.1",
|
|
20847
20881
|
cors: "2.8.6",
|
|
20848
20882
|
chalk: "5.6.2",
|
|
20849
20883
|
"class-variance-authority": "0.7.1",
|
|
20850
20884
|
clsx: "2.1.1",
|
|
20851
20885
|
commander: "15.0.0",
|
|
20852
20886
|
"cpy-cli": "7.0.0",
|
|
20853
|
-
electrodb: "3.9.
|
|
20854
|
-
esbuild: "0.28.
|
|
20887
|
+
electrodb: "3.9.2",
|
|
20888
|
+
esbuild: "0.28.2",
|
|
20855
20889
|
"event-source-polyfill": "1.0.31",
|
|
20856
20890
|
"@types/event-source-polyfill": "1.0.5",
|
|
20857
|
-
"@biomejs/biome": "2.5.
|
|
20891
|
+
"@biomejs/biome": "2.5.7",
|
|
20858
20892
|
"@prisma/adapter-mariadb": "7.9.1",
|
|
20859
20893
|
"@prisma/adapter-pg": "7.9.1",
|
|
20860
20894
|
"@prisma/client": "7.9.1",
|
|
@@ -20872,30 +20906,30 @@ const NX_VERSION = {
|
|
|
20872
20906
|
npm: "12.0.2",
|
|
20873
20907
|
"npm-check-updates": "22.2.9",
|
|
20874
20908
|
"oidc-client-ts": "3.5.0",
|
|
20875
|
-
pg: "8.
|
|
20909
|
+
pg: "8.23.0",
|
|
20876
20910
|
prisma: "7.9.1",
|
|
20877
20911
|
"react-oidc-context": "3.3.1",
|
|
20878
20912
|
react: "19.2.8",
|
|
20879
20913
|
"react-dom": "19.2.8",
|
|
20880
20914
|
rimraf: "6.1.3",
|
|
20881
|
-
rolldown: "1.2.
|
|
20915
|
+
rolldown: "1.2.3",
|
|
20882
20916
|
"rolldown-plugin-dts": "0.28.0",
|
|
20883
20917
|
"simple-git": "3.36.0",
|
|
20884
20918
|
"source-map-support": "0.5.21",
|
|
20885
20919
|
"starlight-blog": "0.28.0",
|
|
20886
20920
|
tailwindcss: "4.3.3",
|
|
20887
20921
|
"@tailwindcss/vite": "4.3.3",
|
|
20888
|
-
tsx: "4.23.
|
|
20889
|
-
"lucide-react": "1.
|
|
20922
|
+
tsx: "4.23.11",
|
|
20923
|
+
"lucide-react": "1.30.0",
|
|
20890
20924
|
"radix-ui": "1.6.7",
|
|
20891
|
-
shadcn: "4.16.
|
|
20925
|
+
shadcn: "4.16.2",
|
|
20892
20926
|
"tw-animate-css": "1.4.0",
|
|
20893
20927
|
"tailwind-merge": "3.6.0",
|
|
20894
|
-
vite: "8.2.
|
|
20928
|
+
vite: "8.2.1",
|
|
20895
20929
|
typescript: "6.0.3",
|
|
20896
20930
|
vitest: "4.1.10",
|
|
20897
20931
|
zod: "4.4.3",
|
|
20898
|
-
ws: "8.21.
|
|
20932
|
+
ws: "8.21.3"
|
|
20899
20933
|
}.nx;
|
|
20900
20934
|
//#endregion
|
|
20901
20935
|
//#region ../nx-plugin/src/utils/commands.ts
|
|
@@ -21809,8 +21843,10 @@ function requireOmap() {
|
|
|
21809
21843
|
let pairHasKey = false;
|
|
21810
21844
|
if (_toString.call(pair) !== "[object Object]") return false;
|
|
21811
21845
|
let pairKey;
|
|
21812
|
-
for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey))
|
|
21813
|
-
|
|
21846
|
+
for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey)) {
|
|
21847
|
+
if (!pairHasKey) pairHasKey = true;
|
|
21848
|
+
else return false;
|
|
21849
|
+
}
|
|
21814
21850
|
if (!pairHasKey) return false;
|
|
21815
21851
|
if (_hasOwnProperty.call(objectKeys, pairKey)) return false;
|
|
21816
21852
|
Object.defineProperty(objectKeys, pairKey, { value: true });
|
|
@@ -22161,9 +22197,10 @@ function requireLoader() {
|
|
|
22161
22197
|
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") keyNode = "[object Object]";
|
|
22162
22198
|
keyNode = String(keyNode);
|
|
22163
22199
|
if (_result === null) _result = {};
|
|
22164
|
-
if (keyTag === "tag:yaml.org,2002:merge")
|
|
22165
|
-
|
|
22166
|
-
|
|
22200
|
+
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
22201
|
+
if (Array.isArray(valueNode)) for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
22202
|
+
else mergeMappings(state, _result, valueNode, overridableKeys);
|
|
22203
|
+
} else {
|
|
22167
22204
|
if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
|
|
22168
22205
|
state.line = startLine || state.line;
|
|
22169
22206
|
state.lineStart = startLineStart || state.lineStart;
|
|
@@ -22448,14 +22485,16 @@ function requireLoader() {
|
|
|
22448
22485
|
state.result = "";
|
|
22449
22486
|
while (ch !== 0) {
|
|
22450
22487
|
ch = state.input.charCodeAt(++state.position);
|
|
22451
|
-
if (ch === 43 || ch === 45)
|
|
22452
|
-
|
|
22453
|
-
|
|
22454
|
-
else if (
|
|
22455
|
-
|
|
22456
|
-
detectedIndent
|
|
22457
|
-
|
|
22458
|
-
|
|
22488
|
+
if (ch === 43 || ch === 45) {
|
|
22489
|
+
if (CHOMPING_CLIP === chomping) chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
|
|
22490
|
+
else throwError(state, "repeat of a chomping mode identifier");
|
|
22491
|
+
} else if ((tmp = fromDecimalCode(ch)) >= 0) {
|
|
22492
|
+
if (tmp === 0) throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
22493
|
+
else if (!detectedIndent) {
|
|
22494
|
+
textIndent = nodeIndent + tmp - 1;
|
|
22495
|
+
detectedIndent = true;
|
|
22496
|
+
} else throwError(state, "repeat of an indentation width identifier");
|
|
22497
|
+
} else break;
|
|
22459
22498
|
}
|
|
22460
22499
|
if (isWhiteSpace(ch)) {
|
|
22461
22500
|
do
|
|
@@ -22486,16 +22525,17 @@ function requireLoader() {
|
|
|
22486
22525
|
}
|
|
22487
22526
|
break;
|
|
22488
22527
|
}
|
|
22489
|
-
if (folding)
|
|
22490
|
-
|
|
22491
|
-
|
|
22492
|
-
|
|
22493
|
-
atMoreIndented
|
|
22494
|
-
|
|
22495
|
-
|
|
22496
|
-
if (
|
|
22497
|
-
|
|
22498
|
-
|
|
22528
|
+
if (folding) {
|
|
22529
|
+
if (isWhiteSpace(ch)) {
|
|
22530
|
+
atMoreIndented = true;
|
|
22531
|
+
state.result += common2.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
22532
|
+
} else if (atMoreIndented) {
|
|
22533
|
+
atMoreIndented = false;
|
|
22534
|
+
state.result += common2.repeat("\n", emptyLines + 1);
|
|
22535
|
+
} else if (emptyLines === 0) {
|
|
22536
|
+
if (didReadContent) state.result += " ";
|
|
22537
|
+
} else state.result += common2.repeat("\n", emptyLines);
|
|
22538
|
+
} else state.result += common2.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
22499
22539
|
didReadContent = true;
|
|
22500
22540
|
detectedIndent = true;
|
|
22501
22541
|
emptyLines = 0;
|
|
@@ -22624,8 +22664,10 @@ function requireLoader() {
|
|
|
22624
22664
|
_keyLineStart = state.lineStart;
|
|
22625
22665
|
_keyPos = state.position;
|
|
22626
22666
|
}
|
|
22627
|
-
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact))
|
|
22628
|
-
|
|
22667
|
+
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
|
|
22668
|
+
if (atExplicitKey) keyNode = state.result;
|
|
22669
|
+
else valueNode = state.result;
|
|
22670
|
+
}
|
|
22629
22671
|
if (!atExplicitKey) {
|
|
22630
22672
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
|
|
22631
22673
|
keyTag = keyNode = valueNode = null;
|
|
@@ -22673,12 +22715,14 @@ function requireLoader() {
|
|
|
22673
22715
|
} else throwError(state, "unexpected end of the stream within a verbatim tag");
|
|
22674
22716
|
} else {
|
|
22675
22717
|
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
22676
|
-
if (ch === 33)
|
|
22677
|
-
|
|
22678
|
-
|
|
22679
|
-
|
|
22680
|
-
|
|
22681
|
-
|
|
22718
|
+
if (ch === 33) {
|
|
22719
|
+
if (!isNamed) {
|
|
22720
|
+
tagHandle = state.input.slice(_position - 1, state.position + 1);
|
|
22721
|
+
if (!PATTERN_TAG_HANDLE.test(tagHandle)) throwError(state, "named tag handle cannot contain such characters");
|
|
22722
|
+
isNamed = true;
|
|
22723
|
+
_position = state.position + 1;
|
|
22724
|
+
} else throwError(state, "tag suffix cannot contain exclamation marks");
|
|
22725
|
+
}
|
|
22682
22726
|
ch = state.input.charCodeAt(++state.position);
|
|
22683
22727
|
}
|
|
22684
22728
|
tagName = state.input.slice(_position, state.position);
|
|
@@ -22782,21 +22826,22 @@ function requireLoader() {
|
|
|
22782
22826
|
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) flowIndent = parentIndent;
|
|
22783
22827
|
else flowIndent = parentIndent + 1;
|
|
22784
22828
|
blockIndent = state.position - state.lineStart;
|
|
22785
|
-
if (indentStatus === 1)
|
|
22786
|
-
|
|
22787
|
-
|
|
22788
|
-
|
|
22789
|
-
|
|
22790
|
-
|
|
22791
|
-
|
|
22792
|
-
|
|
22793
|
-
|
|
22794
|
-
|
|
22795
|
-
|
|
22829
|
+
if (indentStatus === 1) {
|
|
22830
|
+
if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) hasContent = true;
|
|
22831
|
+
else {
|
|
22832
|
+
const ch = state.input.charCodeAt(state.position);
|
|
22833
|
+
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) hasContent = true;
|
|
22834
|
+
else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
|
|
22835
|
+
else if (readAlias(state)) {
|
|
22836
|
+
hasContent = true;
|
|
22837
|
+
if (state.tag !== null || state.anchor !== null) throwError(state, "alias node should not have any properties");
|
|
22838
|
+
} else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
|
|
22839
|
+
hasContent = true;
|
|
22840
|
+
if (state.tag === null) state.tag = "?";
|
|
22841
|
+
}
|
|
22842
|
+
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
22796
22843
|
}
|
|
22797
|
-
|
|
22798
|
-
}
|
|
22799
|
-
else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
22844
|
+
} else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
22800
22845
|
}
|
|
22801
22846
|
if (state.tag === null) {
|
|
22802
22847
|
if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
|
|
@@ -23305,8 +23350,10 @@ function requireDumper() {
|
|
|
23305
23350
|
if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
23306
23351
|
if (!writeNode(state, level + 1, objectKey, true, true, true)) continue;
|
|
23307
23352
|
const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
|
|
23308
|
-
if (explicitPair)
|
|
23309
|
-
|
|
23353
|
+
if (explicitPair) {
|
|
23354
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += "?";
|
|
23355
|
+
else pairBuffer += "? ";
|
|
23356
|
+
}
|
|
23310
23357
|
pairBuffer += state.dump;
|
|
23311
23358
|
if (explicitPair) pairBuffer += generateNextLine(state, level);
|
|
23312
23359
|
if (!writeNode(state, level + 1, objectValue, true, explicitPair)) continue;
|
|
@@ -23323,9 +23370,10 @@ function requireDumper() {
|
|
|
23323
23370
|
for (let index = 0, length = typeList.length; index < length; index += 1) {
|
|
23324
23371
|
const type2 = typeList[index];
|
|
23325
23372
|
if ((type2.instanceOf || type2.predicate) && (!type2.instanceOf || typeof object === "object" && object instanceof type2.instanceOf) && (!type2.predicate || type2.predicate(object))) {
|
|
23326
|
-
if (explicit)
|
|
23327
|
-
|
|
23328
|
-
|
|
23373
|
+
if (explicit) {
|
|
23374
|
+
if (type2.multi && type2.representName) state.tag = type2.representName(object);
|
|
23375
|
+
else state.tag = type2.tag;
|
|
23376
|
+
} else state.tag = "?";
|
|
23329
23377
|
if (type2.represent) {
|
|
23330
23378
|
const style = state.styleMap[type2.tag] || type2.defaultStyle;
|
|
23331
23379
|
let _result;
|
|
@@ -23357,22 +23405,24 @@ function requireDumper() {
|
|
|
23357
23405
|
if (duplicate && state.usedDuplicates[duplicateIndex]) state.dump = "*ref_" + duplicateIndex;
|
|
23358
23406
|
else {
|
|
23359
23407
|
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) state.usedDuplicates[duplicateIndex] = true;
|
|
23360
|
-
if (type2 === "[object Object]")
|
|
23361
|
-
|
|
23362
|
-
|
|
23363
|
-
|
|
23364
|
-
|
|
23365
|
-
|
|
23366
|
-
|
|
23367
|
-
|
|
23368
|
-
|
|
23369
|
-
|
|
23370
|
-
|
|
23371
|
-
|
|
23372
|
-
|
|
23373
|
-
|
|
23374
|
-
|
|
23375
|
-
|
|
23408
|
+
if (type2 === "[object Object]") {
|
|
23409
|
+
if (block && Object.keys(state.dump).length !== 0) {
|
|
23410
|
+
writeBlockMapping(state, level, state.dump, compact);
|
|
23411
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
23412
|
+
} else {
|
|
23413
|
+
writeFlowMapping(state, level, state.dump);
|
|
23414
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
23415
|
+
}
|
|
23416
|
+
} else if (type2 === "[object Array]") {
|
|
23417
|
+
if (block && state.dump.length !== 0) {
|
|
23418
|
+
if (state.noArrayIndent && !isblockseq && level > 0) writeBlockSequence(state, level - 1, state.dump, compact);
|
|
23419
|
+
else writeBlockSequence(state, level, state.dump, compact);
|
|
23420
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
23421
|
+
} else {
|
|
23422
|
+
writeFlowSequence(state, level, state.dump);
|
|
23423
|
+
if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
23424
|
+
}
|
|
23425
|
+
} else if (type2 === "[object String]") {
|
|
23376
23426
|
if (state.tag !== "?") writeScalar(state, state.dump, level, iskey, inblock);
|
|
23377
23427
|
} else if (type2 === "[object Undefined]") return false;
|
|
23378
23428
|
else {
|
|
@@ -23849,9 +23899,11 @@ function wrap(middleware, callback) {
|
|
|
23849
23899
|
if (fnExpectsCallback && called) throw exception;
|
|
23850
23900
|
return done(exception);
|
|
23851
23901
|
}
|
|
23852
|
-
if (!fnExpectsCallback)
|
|
23853
|
-
|
|
23854
|
-
|
|
23902
|
+
if (!fnExpectsCallback) {
|
|
23903
|
+
if (result && result.then && typeof result.then === "function") result.then(then, done);
|
|
23904
|
+
else if (result instanceof Error) done(result);
|
|
23905
|
+
else then(result);
|
|
23906
|
+
}
|
|
23855
23907
|
}
|
|
23856
23908
|
/**
|
|
23857
23909
|
* Call `callback`, only once.
|
|
@@ -24020,13 +24072,15 @@ var init_lib$24 = __esmMin((() => {
|
|
|
24020
24072
|
/** @type {Options} */
|
|
24021
24073
|
let options = {};
|
|
24022
24074
|
let legacyCause = false;
|
|
24023
|
-
if (optionsOrParentOrPlace)
|
|
24024
|
-
|
|
24025
|
-
|
|
24026
|
-
|
|
24027
|
-
|
|
24028
|
-
|
|
24029
|
-
|
|
24075
|
+
if (optionsOrParentOrPlace) {
|
|
24076
|
+
if ("line" in optionsOrParentOrPlace && "column" in optionsOrParentOrPlace) options = { place: optionsOrParentOrPlace };
|
|
24077
|
+
else if ("start" in optionsOrParentOrPlace && "end" in optionsOrParentOrPlace) options = { place: optionsOrParentOrPlace };
|
|
24078
|
+
else if ("type" in optionsOrParentOrPlace) options = {
|
|
24079
|
+
ancestors: [optionsOrParentOrPlace],
|
|
24080
|
+
place: optionsOrParentOrPlace.position
|
|
24081
|
+
};
|
|
24082
|
+
else options = { ...optionsOrParentOrPlace };
|
|
24083
|
+
}
|
|
24030
24084
|
if (typeof causeOrReason === "string") reason = causeOrReason;
|
|
24031
24085
|
else if (!options.cause && causeOrReason) {
|
|
24032
24086
|
legacyCause = true;
|
|
@@ -25422,9 +25476,10 @@ var init_lib$22 = __esmMin((() => {
|
|
|
25422
25476
|
const namespace = this.namespace;
|
|
25423
25477
|
assertUnfrozen("use", this.frozen);
|
|
25424
25478
|
if (value === null || value === void 0) {} else if (typeof value === "function") addPlugin(value, parameters);
|
|
25425
|
-
else if (typeof value === "object")
|
|
25426
|
-
|
|
25427
|
-
|
|
25479
|
+
else if (typeof value === "object") {
|
|
25480
|
+
if (Array.isArray(value)) addList(value);
|
|
25481
|
+
else addPreset(value);
|
|
25482
|
+
} else throw new TypeError("Expected usable value, not `" + value + "`");
|
|
25428
25483
|
return this;
|
|
25429
25484
|
/**
|
|
25430
25485
|
* @param {Pluggable} value
|
|
@@ -25432,11 +25487,12 @@ var init_lib$22 = __esmMin((() => {
|
|
|
25432
25487
|
*/
|
|
25433
25488
|
function add(value) {
|
|
25434
25489
|
if (typeof value === "function") addPlugin(value, []);
|
|
25435
|
-
else if (typeof value === "object")
|
|
25436
|
-
|
|
25437
|
-
|
|
25438
|
-
|
|
25439
|
-
|
|
25490
|
+
else if (typeof value === "object") {
|
|
25491
|
+
if (Array.isArray(value)) {
|
|
25492
|
+
const [plugin, ...parameters] = value;
|
|
25493
|
+
addPlugin(plugin, parameters);
|
|
25494
|
+
} else addPreset(value);
|
|
25495
|
+
} else throw new TypeError("Expected usable value, not `" + value + "`");
|
|
25440
25496
|
}
|
|
25441
25497
|
/**
|
|
25442
25498
|
* @param {Preset} result
|
|
@@ -34914,8 +34970,10 @@ function compiler(options) {
|
|
|
34914
34970
|
/** @type {Array<number>} */
|
|
34915
34971
|
const listStack = [];
|
|
34916
34972
|
let index = -1;
|
|
34917
|
-
while (++index < events.length) if (events[index][1].type === "listOrdered" || events[index][1].type === "listUnordered")
|
|
34918
|
-
|
|
34973
|
+
while (++index < events.length) if (events[index][1].type === "listOrdered" || events[index][1].type === "listUnordered") {
|
|
34974
|
+
if (events[index][0] === "enter") listStack.push(index);
|
|
34975
|
+
else index = prepareList(events, listStack.pop(), index);
|
|
34976
|
+
}
|
|
34919
34977
|
index = -1;
|
|
34920
34978
|
while (++index < events.length) {
|
|
34921
34979
|
const handler = config[events[index][0]];
|
|
@@ -35105,8 +35163,10 @@ function compiler(options) {
|
|
|
35105
35163
|
start: token.start,
|
|
35106
35164
|
end: token.end
|
|
35107
35165
|
}) + "): it’s not open");
|
|
35108
|
-
else if (open[0].type !== token.type)
|
|
35109
|
-
|
|
35166
|
+
else if (open[0].type !== token.type) {
|
|
35167
|
+
if (onExitError) onExitError.call(this, token, open[0]);
|
|
35168
|
+
else (open[1] || defaultOnError).call(this, token, open[0]);
|
|
35169
|
+
}
|
|
35110
35170
|
node.position.end = point(token.end);
|
|
35111
35171
|
}
|
|
35112
35172
|
/**
|
|
@@ -36081,10 +36141,12 @@ function parseEntities(value, options) {
|
|
|
36081
36141
|
let point;
|
|
36082
36142
|
/** @type {Array<number>|undefined} */
|
|
36083
36143
|
let indent;
|
|
36084
|
-
if (settings.position)
|
|
36085
|
-
indent
|
|
36086
|
-
|
|
36087
|
-
|
|
36144
|
+
if (settings.position) {
|
|
36145
|
+
if ("start" in settings.position || "indent" in settings.position) {
|
|
36146
|
+
indent = settings.position.indent;
|
|
36147
|
+
point = settings.position.start;
|
|
36148
|
+
} else point = settings.position;
|
|
36149
|
+
}
|
|
36088
36150
|
let line = (point ? point.line : 0) || 1;
|
|
36089
36151
|
let column = (point ? point.column : 0) || 1;
|
|
36090
36152
|
let previous = now();
|
|
@@ -36829,16 +36891,18 @@ function mdxJsxToMarkdown(options) {
|
|
|
36829
36891
|
} else if (attributesOnOneLine) value += tracker.move(" " + attributesOnOneLine);
|
|
36830
36892
|
if (selfClosing) value += tracker.move((tightSelfClosing || attributesOnTheirOwnLine ? "" : " ") + "/");
|
|
36831
36893
|
value += tracker.move(">");
|
|
36832
|
-
if (node.children && node.children.length > 0)
|
|
36833
|
-
|
|
36834
|
-
|
|
36835
|
-
|
|
36836
|
-
|
|
36837
|
-
|
|
36838
|
-
|
|
36839
|
-
|
|
36840
|
-
|
|
36841
|
-
|
|
36894
|
+
if (node.children && node.children.length > 0) {
|
|
36895
|
+
if (node.type === "mdxJsxTextElement") value += tracker.move(state.containerPhrasing(node, {
|
|
36896
|
+
...tracker.current(),
|
|
36897
|
+
before: ">",
|
|
36898
|
+
after: "<"
|
|
36899
|
+
}));
|
|
36900
|
+
else {
|
|
36901
|
+
tracker.shift(2);
|
|
36902
|
+
value += tracker.move("\n");
|
|
36903
|
+
value += tracker.move(containerFlow$1(node, state, tracker.current()));
|
|
36904
|
+
value += tracker.move("\n");
|
|
36905
|
+
}
|
|
36842
36906
|
}
|
|
36843
36907
|
if (!selfClosing) value += tracker.move((flow ? currentIndent : "") + "</" + (node.name || "") + ">");
|
|
36844
36908
|
exit();
|
|
@@ -38904,9 +38968,11 @@ var init_acorn = __esmMin((() => {
|
|
|
38904
38968
|
};
|
|
38905
38969
|
pp$8.parseForAfterInit = function(node, init, awaitAt) {
|
|
38906
38970
|
if ((this.type === types$1._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && init.declarations.length === 1) {
|
|
38907
|
-
if (this.options.ecmaVersion >= 9)
|
|
38908
|
-
if (
|
|
38909
|
-
|
|
38971
|
+
if (this.options.ecmaVersion >= 9) {
|
|
38972
|
+
if (this.type === types$1._in) {
|
|
38973
|
+
if (awaitAt > -1) this.unexpected(awaitAt);
|
|
38974
|
+
} else node.await = awaitAt > -1;
|
|
38975
|
+
}
|
|
38910
38976
|
return this.parseForIn(node, init);
|
|
38911
38977
|
}
|
|
38912
38978
|
if (awaitAt > -1) this.unexpected(awaitAt);
|
|
@@ -39187,13 +39253,17 @@ var init_acorn = __esmMin((() => {
|
|
|
39187
39253
|
else keyName = "static";
|
|
39188
39254
|
}
|
|
39189
39255
|
node.static = isStatic;
|
|
39190
|
-
if (!keyName && ecmaVersion >= 8 && this.eatContextual("async"))
|
|
39191
|
-
|
|
39256
|
+
if (!keyName && ecmaVersion >= 8 && this.eatContextual("async")) {
|
|
39257
|
+
if ((this.isClassElementNameStart() || this.type === types$1.star) && !this.canInsertSemicolon()) isAsync = true;
|
|
39258
|
+
else keyName = "async";
|
|
39259
|
+
}
|
|
39192
39260
|
if (!keyName && (ecmaVersion >= 9 || !isAsync) && this.eat(types$1.star)) isGenerator = true;
|
|
39193
39261
|
if (!keyName && !isAsync && !isGenerator) {
|
|
39194
39262
|
var lastValue = this.value;
|
|
39195
|
-
if (this.eatContextual("get") || this.eatContextual("set"))
|
|
39196
|
-
|
|
39263
|
+
if (this.eatContextual("get") || this.eatContextual("set")) {
|
|
39264
|
+
if (this.isClassElementNameStart()) kind = lastValue;
|
|
39265
|
+
else keyName = lastValue;
|
|
39266
|
+
}
|
|
39197
39267
|
}
|
|
39198
39268
|
if (keyName) {
|
|
39199
39269
|
node.computed = false;
|
|
@@ -39286,15 +39356,19 @@ var init_acorn = __esmMin((() => {
|
|
|
39286
39356
|
var parent = len === 0 ? null : this.privateNameStack[len - 1];
|
|
39287
39357
|
for (var i = 0; i < used.length; ++i) {
|
|
39288
39358
|
var id = used[i];
|
|
39289
|
-
if (!hasOwn(declared, id.name))
|
|
39290
|
-
|
|
39359
|
+
if (!hasOwn(declared, id.name)) {
|
|
39360
|
+
if (parent) parent.used.push(id);
|
|
39361
|
+
else this.raiseRecoverable(id.start, "Private field '#" + id.name + "' must be declared in an enclosing class");
|
|
39362
|
+
}
|
|
39291
39363
|
}
|
|
39292
39364
|
};
|
|
39293
39365
|
pp$8.parseExportAllDeclaration = function(node, exports) {
|
|
39294
|
-
if (this.options.ecmaVersion >= 11)
|
|
39295
|
-
|
|
39296
|
-
|
|
39297
|
-
|
|
39366
|
+
if (this.options.ecmaVersion >= 11) {
|
|
39367
|
+
if (this.eatContextual("as")) {
|
|
39368
|
+
node.exported = this.parseModuleExportName();
|
|
39369
|
+
this.checkExport(exports, node.exported, this.lastTokStart);
|
|
39370
|
+
} else node.exported = null;
|
|
39371
|
+
}
|
|
39298
39372
|
this.expectContextual("from");
|
|
39299
39373
|
if (this.type !== types$1.string) this.unexpected();
|
|
39300
39374
|
node.source = this.parseExprAtom();
|
|
@@ -39812,9 +39886,11 @@ var init_acorn = __esmMin((() => {
|
|
|
39812
39886
|
var kind = prop.kind;
|
|
39813
39887
|
if (this.options.ecmaVersion >= 6) {
|
|
39814
39888
|
if (name === "__proto__" && kind === "init") {
|
|
39815
|
-
if (propHash.proto)
|
|
39816
|
-
if (refDestructuringErrors
|
|
39817
|
-
|
|
39889
|
+
if (propHash.proto) {
|
|
39890
|
+
if (refDestructuringErrors) {
|
|
39891
|
+
if (refDestructuringErrors.doubleProto < 0) refDestructuringErrors.doubleProto = key.start;
|
|
39892
|
+
} else this.raiseRecoverable(key.start, "Redefinition of __proto__ property");
|
|
39893
|
+
}
|
|
39818
39894
|
propHash.proto = true;
|
|
39819
39895
|
}
|
|
39820
39896
|
return;
|
|
@@ -39845,8 +39921,10 @@ var init_acorn = __esmMin((() => {
|
|
|
39845
39921
|
return expr;
|
|
39846
39922
|
};
|
|
39847
39923
|
pp$5.parseMaybeAssign = function(forInit, refDestructuringErrors, afterLeftParse) {
|
|
39848
|
-
if (this.isContextual("yield"))
|
|
39849
|
-
|
|
39924
|
+
if (this.isContextual("yield")) {
|
|
39925
|
+
if (this.inGenerator) return this.parseYield(forInit);
|
|
39926
|
+
else this.exprAllowed = false;
|
|
39927
|
+
}
|
|
39850
39928
|
var ownDestructuringErrors = false, oldParenAssign = -1, oldTrailingComma = -1, oldDoubleProto = -1;
|
|
39851
39929
|
if (refDestructuringErrors) {
|
|
39852
39930
|
oldParenAssign = refDestructuringErrors.parenthesizedAssign;
|
|
@@ -39962,9 +40040,10 @@ var init_acorn = __esmMin((() => {
|
|
|
39962
40040
|
expr = this.finishNode(node$1, "UpdateExpression");
|
|
39963
40041
|
}
|
|
39964
40042
|
}
|
|
39965
|
-
if (!incDec && this.eat(types$1.starstar))
|
|
39966
|
-
|
|
39967
|
-
|
|
40043
|
+
if (!incDec && this.eat(types$1.starstar)) {
|
|
40044
|
+
if (sawUnary) this.unexpected(this.lastTokStart);
|
|
40045
|
+
else return this.buildBinary(startPos, startLoc, expr, this.parseMaybeUnary(null, false, false, forInit), "**", false);
|
|
40046
|
+
} else return expr;
|
|
39968
40047
|
};
|
|
39969
40048
|
pp$5.parseExprSubscripts = function(refDestructuringErrors, forInit) {
|
|
39970
40049
|
var startPos = this.start, startLoc = this.startLoc;
|
|
@@ -40144,17 +40223,18 @@ var init_acorn = __esmMin((() => {
|
|
|
40144
40223
|
pp$5.parseDynamicImport = function(node) {
|
|
40145
40224
|
this.next();
|
|
40146
40225
|
node.source = this.parseMaybeAssign();
|
|
40147
|
-
if (this.options.ecmaVersion >= 16)
|
|
40148
|
-
this.
|
|
40149
|
-
|
|
40150
|
-
|
|
40151
|
-
|
|
40152
|
-
this.
|
|
40153
|
-
|
|
40154
|
-
|
|
40226
|
+
if (this.options.ecmaVersion >= 16) {
|
|
40227
|
+
if (!this.eat(types$1.parenR)) {
|
|
40228
|
+
this.expect(types$1.comma);
|
|
40229
|
+
if (!this.afterTrailingComma(types$1.parenR)) {
|
|
40230
|
+
node.options = this.parseMaybeAssign();
|
|
40231
|
+
if (!this.eat(types$1.parenR)) {
|
|
40232
|
+
this.expect(types$1.comma);
|
|
40233
|
+
if (!this.afterTrailingComma(types$1.parenR)) this.unexpected();
|
|
40234
|
+
}
|
|
40235
|
+
} else node.options = null;
|
|
40155
40236
|
} else node.options = null;
|
|
40156
|
-
} else
|
|
40157
|
-
else if (!this.eat(types$1.parenR)) {
|
|
40237
|
+
} else if (!this.eat(types$1.parenR)) {
|
|
40158
40238
|
var errorPos = this.start;
|
|
40159
40239
|
if (this.eat(types$1.comma) && this.eat(types$1.parenR)) this.raiseRecoverable(errorPos, "Trailing comma is not allowed in import()");
|
|
40160
40240
|
else this.unexpected(errorPos);
|
|
@@ -40387,12 +40467,14 @@ var init_acorn = __esmMin((() => {
|
|
|
40387
40467
|
} else this.unexpected();
|
|
40388
40468
|
};
|
|
40389
40469
|
pp$5.parsePropertyName = function(prop) {
|
|
40390
|
-
if (this.options.ecmaVersion >= 6)
|
|
40391
|
-
|
|
40392
|
-
|
|
40393
|
-
|
|
40394
|
-
|
|
40395
|
-
|
|
40470
|
+
if (this.options.ecmaVersion >= 6) {
|
|
40471
|
+
if (this.eat(types$1.bracketL)) {
|
|
40472
|
+
prop.computed = true;
|
|
40473
|
+
prop.key = this.parseMaybeAssign();
|
|
40474
|
+
this.expect(types$1.bracketR);
|
|
40475
|
+
return prop.key;
|
|
40476
|
+
} else prop.computed = false;
|
|
40477
|
+
}
|
|
40396
40478
|
return prop.key = this.type === types$1.num || this.type === types$1.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
|
|
40397
40479
|
};
|
|
40398
40480
|
pp$5.initFunction = function(node) {
|
|
@@ -40527,8 +40609,10 @@ var init_acorn = __esmMin((() => {
|
|
|
40527
40609
|
else this.unexpected();
|
|
40528
40610
|
this.next();
|
|
40529
40611
|
this.finishNode(node, "PrivateIdentifier");
|
|
40530
|
-
if (this.options.checkPrivateFields)
|
|
40531
|
-
|
|
40612
|
+
if (this.options.checkPrivateFields) {
|
|
40613
|
+
if (this.privateNameStack.length === 0) this.raise(node.start, "Private field '#" + node.name + "' must be declared in an enclosing class");
|
|
40614
|
+
else this.privateNameStack[this.privateNameStack.length - 1].used.push(node);
|
|
40615
|
+
}
|
|
40532
40616
|
return node;
|
|
40533
40617
|
};
|
|
40534
40618
|
pp$5.parseYield = function(forInit) {
|
|
@@ -41032,9 +41116,11 @@ var init_acorn = __esmMin((() => {
|
|
|
41032
41116
|
if (!this.regexp_eatGroupName(state)) state.raise("Invalid group");
|
|
41033
41117
|
var trackDisjunction = this.options.ecmaVersion >= 16;
|
|
41034
41118
|
var known = state.groupNames[state.lastStringValue];
|
|
41035
|
-
if (known)
|
|
41036
|
-
|
|
41037
|
-
|
|
41119
|
+
if (known) {
|
|
41120
|
+
if (trackDisjunction) {
|
|
41121
|
+
for (var i = 0, list = known; i < list.length; i += 1) if (!list[i].separatedFrom(state.branchID)) state.raise("Duplicate capture group name");
|
|
41122
|
+
} else state.raise("Duplicate capture group name");
|
|
41123
|
+
}
|
|
41038
41124
|
if (trackDisjunction) (known || (state.groupNames[state.lastStringValue] = [])).push(state.branchID);
|
|
41039
41125
|
else state.groupNames[state.lastStringValue] = true;
|
|
41040
41126
|
}
|
|
@@ -41996,12 +42082,14 @@ var init_acorn = __esmMin((() => {
|
|
|
41996
42082
|
if (this.pos >= this.input.length) this.raise(this.start, "Unterminated template");
|
|
41997
42083
|
var ch = this.input.charCodeAt(this.pos);
|
|
41998
42084
|
if (ch === 96 || ch === 36 && this.input.charCodeAt(this.pos + 1) === 123) {
|
|
41999
|
-
if (this.pos === this.start && (this.type === types$1.template || this.type === types$1.invalidTemplate))
|
|
42000
|
-
|
|
42001
|
-
|
|
42002
|
-
|
|
42003
|
-
|
|
42004
|
-
|
|
42085
|
+
if (this.pos === this.start && (this.type === types$1.template || this.type === types$1.invalidTemplate)) {
|
|
42086
|
+
if (ch === 36) {
|
|
42087
|
+
this.pos += 2;
|
|
42088
|
+
return this.finishToken(types$1.dollarBraceL);
|
|
42089
|
+
} else {
|
|
42090
|
+
++this.pos;
|
|
42091
|
+
return this.finishToken(types$1.backQuote);
|
|
42092
|
+
}
|
|
42005
42093
|
}
|
|
42006
42094
|
out += this.input.slice(chunkStart, this.pos);
|
|
42007
42095
|
return this.finishToken(types$1.template, out);
|
|
@@ -44141,9 +44229,11 @@ var require_acorn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
44141
44229
|
};
|
|
44142
44230
|
pp$8.parseForAfterInit = function(node, init, awaitAt) {
|
|
44143
44231
|
if ((this.type === types$1._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && init.declarations.length === 1) {
|
|
44144
|
-
if (this.options.ecmaVersion >= 9)
|
|
44145
|
-
if (
|
|
44146
|
-
|
|
44232
|
+
if (this.options.ecmaVersion >= 9) {
|
|
44233
|
+
if (this.type === types$1._in) {
|
|
44234
|
+
if (awaitAt > -1) this.unexpected(awaitAt);
|
|
44235
|
+
} else node.await = awaitAt > -1;
|
|
44236
|
+
}
|
|
44147
44237
|
return this.parseForIn(node, init);
|
|
44148
44238
|
}
|
|
44149
44239
|
if (awaitAt > -1) this.unexpected(awaitAt);
|
|
@@ -44422,13 +44512,17 @@ var require_acorn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
44422
44512
|
else keyName = "static";
|
|
44423
44513
|
}
|
|
44424
44514
|
node.static = isStatic;
|
|
44425
|
-
if (!keyName && ecmaVersion >= 8 && this.eatContextual("async"))
|
|
44426
|
-
|
|
44515
|
+
if (!keyName && ecmaVersion >= 8 && this.eatContextual("async")) {
|
|
44516
|
+
if ((this.isClassElementNameStart() || this.type === types$1.star) && !this.canInsertSemicolon()) isAsync = true;
|
|
44517
|
+
else keyName = "async";
|
|
44518
|
+
}
|
|
44427
44519
|
if (!keyName && (ecmaVersion >= 9 || !isAsync) && this.eat(types$1.star)) isGenerator = true;
|
|
44428
44520
|
if (!keyName && !isAsync && !isGenerator) {
|
|
44429
44521
|
var lastValue = this.value;
|
|
44430
|
-
if (this.eatContextual("get") || this.eatContextual("set"))
|
|
44431
|
-
|
|
44522
|
+
if (this.eatContextual("get") || this.eatContextual("set")) {
|
|
44523
|
+
if (this.isClassElementNameStart()) kind = lastValue;
|
|
44524
|
+
else keyName = lastValue;
|
|
44525
|
+
}
|
|
44432
44526
|
}
|
|
44433
44527
|
if (keyName) {
|
|
44434
44528
|
node.computed = false;
|
|
@@ -44521,8 +44615,10 @@ var require_acorn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
44521
44615
|
var parent = len === 0 ? null : this.privateNameStack[len - 1];
|
|
44522
44616
|
for (var i = 0; i < used.length; ++i) {
|
|
44523
44617
|
var id = used[i];
|
|
44524
|
-
if (!hasOwn(declared, id.name))
|
|
44525
|
-
|
|
44618
|
+
if (!hasOwn(declared, id.name)) {
|
|
44619
|
+
if (parent) parent.used.push(id);
|
|
44620
|
+
else this.raiseRecoverable(id.start, "Private field '#" + id.name + "' must be declared in an enclosing class");
|
|
44621
|
+
}
|
|
44526
44622
|
}
|
|
44527
44623
|
};
|
|
44528
44624
|
function isPrivateNameConflicted(privateNameMap, element) {
|
|
@@ -44544,10 +44640,12 @@ var require_acorn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
44544
44640
|
return !computed && (key.type === "Identifier" && key.name === name || key.type === "Literal" && key.value === name);
|
|
44545
44641
|
}
|
|
44546
44642
|
pp$8.parseExportAllDeclaration = function(node, exports$4) {
|
|
44547
|
-
if (this.options.ecmaVersion >= 11)
|
|
44548
|
-
|
|
44549
|
-
|
|
44550
|
-
|
|
44643
|
+
if (this.options.ecmaVersion >= 11) {
|
|
44644
|
+
if (this.eatContextual("as")) {
|
|
44645
|
+
node.exported = this.parseModuleExportName();
|
|
44646
|
+
this.checkExport(exports$4, node.exported, this.lastTokStart);
|
|
44647
|
+
} else node.exported = null;
|
|
44648
|
+
}
|
|
44551
44649
|
this.expectContextual("from");
|
|
44552
44650
|
if (this.type !== types$1.string) this.unexpected();
|
|
44553
44651
|
node.source = this.parseExprAtom();
|
|
@@ -45065,9 +45163,11 @@ var require_acorn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
45065
45163
|
var kind = prop.kind;
|
|
45066
45164
|
if (this.options.ecmaVersion >= 6) {
|
|
45067
45165
|
if (name === "__proto__" && kind === "init") {
|
|
45068
|
-
if (propHash.proto)
|
|
45069
|
-
if (refDestructuringErrors
|
|
45070
|
-
|
|
45166
|
+
if (propHash.proto) {
|
|
45167
|
+
if (refDestructuringErrors) {
|
|
45168
|
+
if (refDestructuringErrors.doubleProto < 0) refDestructuringErrors.doubleProto = key.start;
|
|
45169
|
+
} else this.raiseRecoverable(key.start, "Redefinition of __proto__ property");
|
|
45170
|
+
}
|
|
45071
45171
|
propHash.proto = true;
|
|
45072
45172
|
}
|
|
45073
45173
|
return;
|
|
@@ -45098,8 +45198,10 @@ var require_acorn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
45098
45198
|
return expr;
|
|
45099
45199
|
};
|
|
45100
45200
|
pp$5.parseMaybeAssign = function(forInit, refDestructuringErrors, afterLeftParse) {
|
|
45101
|
-
if (this.isContextual("yield"))
|
|
45102
|
-
|
|
45201
|
+
if (this.isContextual("yield")) {
|
|
45202
|
+
if (this.inGenerator) return this.parseYield(forInit);
|
|
45203
|
+
else this.exprAllowed = false;
|
|
45204
|
+
}
|
|
45103
45205
|
var ownDestructuringErrors = false, oldParenAssign = -1, oldTrailingComma = -1, oldDoubleProto = -1;
|
|
45104
45206
|
if (refDestructuringErrors) {
|
|
45105
45207
|
oldParenAssign = refDestructuringErrors.parenthesizedAssign;
|
|
@@ -45215,9 +45317,10 @@ var require_acorn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
45215
45317
|
expr = this.finishNode(node$1, "UpdateExpression");
|
|
45216
45318
|
}
|
|
45217
45319
|
}
|
|
45218
|
-
if (!incDec && this.eat(types$1.starstar))
|
|
45219
|
-
|
|
45220
|
-
|
|
45320
|
+
if (!incDec && this.eat(types$1.starstar)) {
|
|
45321
|
+
if (sawUnary) this.unexpected(this.lastTokStart);
|
|
45322
|
+
else return this.buildBinary(startPos, startLoc, expr, this.parseMaybeUnary(null, false, false, forInit), "**", false);
|
|
45323
|
+
} else return expr;
|
|
45221
45324
|
};
|
|
45222
45325
|
function isLocalVariableAccess(node) {
|
|
45223
45326
|
return node.type === "Identifier" || node.type === "ParenthesizedExpression" && isLocalVariableAccess(node.expression);
|
|
@@ -45403,17 +45506,18 @@ var require_acorn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
45403
45506
|
pp$5.parseDynamicImport = function(node) {
|
|
45404
45507
|
this.next();
|
|
45405
45508
|
node.source = this.parseMaybeAssign();
|
|
45406
|
-
if (this.options.ecmaVersion >= 16)
|
|
45407
|
-
this.
|
|
45408
|
-
|
|
45409
|
-
|
|
45410
|
-
|
|
45411
|
-
this.
|
|
45412
|
-
|
|
45413
|
-
|
|
45509
|
+
if (this.options.ecmaVersion >= 16) {
|
|
45510
|
+
if (!this.eat(types$1.parenR)) {
|
|
45511
|
+
this.expect(types$1.comma);
|
|
45512
|
+
if (!this.afterTrailingComma(types$1.parenR)) {
|
|
45513
|
+
node.options = this.parseMaybeAssign();
|
|
45514
|
+
if (!this.eat(types$1.parenR)) {
|
|
45515
|
+
this.expect(types$1.comma);
|
|
45516
|
+
if (!this.afterTrailingComma(types$1.parenR)) this.unexpected();
|
|
45517
|
+
}
|
|
45518
|
+
} else node.options = null;
|
|
45414
45519
|
} else node.options = null;
|
|
45415
|
-
} else
|
|
45416
|
-
else if (!this.eat(types$1.parenR)) {
|
|
45520
|
+
} else if (!this.eat(types$1.parenR)) {
|
|
45417
45521
|
var errorPos = this.start;
|
|
45418
45522
|
if (this.eat(types$1.comma) && this.eat(types$1.parenR)) this.raiseRecoverable(errorPos, "Trailing comma is not allowed in import()");
|
|
45419
45523
|
else this.unexpected(errorPos);
|
|
@@ -45646,12 +45750,14 @@ var require_acorn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
45646
45750
|
} else this.unexpected();
|
|
45647
45751
|
};
|
|
45648
45752
|
pp$5.parsePropertyName = function(prop) {
|
|
45649
|
-
if (this.options.ecmaVersion >= 6)
|
|
45650
|
-
|
|
45651
|
-
|
|
45652
|
-
|
|
45653
|
-
|
|
45654
|
-
|
|
45753
|
+
if (this.options.ecmaVersion >= 6) {
|
|
45754
|
+
if (this.eat(types$1.bracketL)) {
|
|
45755
|
+
prop.computed = true;
|
|
45756
|
+
prop.key = this.parseMaybeAssign();
|
|
45757
|
+
this.expect(types$1.bracketR);
|
|
45758
|
+
return prop.key;
|
|
45759
|
+
} else prop.computed = false;
|
|
45760
|
+
}
|
|
45655
45761
|
return prop.key = this.type === types$1.num || this.type === types$1.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
|
|
45656
45762
|
};
|
|
45657
45763
|
pp$5.initFunction = function(node) {
|
|
@@ -45786,8 +45892,10 @@ var require_acorn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
45786
45892
|
else this.unexpected();
|
|
45787
45893
|
this.next();
|
|
45788
45894
|
this.finishNode(node, "PrivateIdentifier");
|
|
45789
|
-
if (this.options.checkPrivateFields)
|
|
45790
|
-
|
|
45895
|
+
if (this.options.checkPrivateFields) {
|
|
45896
|
+
if (this.privateNameStack.length === 0) this.raise(node.start, "Private field '#" + node.name + "' must be declared in an enclosing class");
|
|
45897
|
+
else this.privateNameStack[this.privateNameStack.length - 1].used.push(node);
|
|
45898
|
+
}
|
|
45791
45899
|
return node;
|
|
45792
45900
|
};
|
|
45793
45901
|
pp$5.parseYield = function(forInit) {
|
|
@@ -46322,9 +46430,11 @@ var require_acorn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
46322
46430
|
if (!this.regexp_eatGroupName(state)) state.raise("Invalid group");
|
|
46323
46431
|
var trackDisjunction = this.options.ecmaVersion >= 16;
|
|
46324
46432
|
var known = state.groupNames[state.lastStringValue];
|
|
46325
|
-
if (known)
|
|
46326
|
-
|
|
46327
|
-
|
|
46433
|
+
if (known) {
|
|
46434
|
+
if (trackDisjunction) {
|
|
46435
|
+
for (var i = 0, list = known; i < list.length; i += 1) if (!list[i].separatedFrom(state.branchID)) state.raise("Duplicate capture group name");
|
|
46436
|
+
} else state.raise("Duplicate capture group name");
|
|
46437
|
+
}
|
|
46328
46438
|
if (trackDisjunction) (known || (state.groupNames[state.lastStringValue] = [])).push(state.branchID);
|
|
46329
46439
|
else state.groupNames[state.lastStringValue] = true;
|
|
46330
46440
|
}
|
|
@@ -47338,12 +47448,14 @@ var require_acorn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
47338
47448
|
if (this.pos >= this.input.length) this.raise(this.start, "Unterminated template");
|
|
47339
47449
|
var ch = this.input.charCodeAt(this.pos);
|
|
47340
47450
|
if (ch === 96 || ch === 36 && this.input.charCodeAt(this.pos + 1) === 123) {
|
|
47341
|
-
if (this.pos === this.start && (this.type === types$1.template || this.type === types$1.invalidTemplate))
|
|
47342
|
-
|
|
47343
|
-
|
|
47344
|
-
|
|
47345
|
-
|
|
47346
|
-
|
|
47451
|
+
if (this.pos === this.start && (this.type === types$1.template || this.type === types$1.invalidTemplate)) {
|
|
47452
|
+
if (ch === 36) {
|
|
47453
|
+
this.pos += 2;
|
|
47454
|
+
return this.finishToken(types$1.dollarBraceL);
|
|
47455
|
+
} else {
|
|
47456
|
+
++this.pos;
|
|
47457
|
+
return this.finishToken(types$1.backQuote);
|
|
47458
|
+
}
|
|
47347
47459
|
}
|
|
47348
47460
|
out += this.input.slice(chunkStart, this.pos);
|
|
47349
47461
|
return this.finishToken(types$1.template, out);
|
|
@@ -47683,14 +47795,15 @@ var require_acorn_jsx = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
47683
47795
|
while (this.pos < this.input.length && count++ < 10) {
|
|
47684
47796
|
ch = this.input[this.pos++];
|
|
47685
47797
|
if (ch === ";") {
|
|
47686
|
-
if (str[0] === "#")
|
|
47687
|
-
str
|
|
47688
|
-
|
|
47689
|
-
|
|
47690
|
-
|
|
47691
|
-
|
|
47692
|
-
|
|
47693
|
-
|
|
47798
|
+
if (str[0] === "#") {
|
|
47799
|
+
if (str[1] === "x") {
|
|
47800
|
+
str = str.substr(2);
|
|
47801
|
+
if (hexNumber.test(str)) entity = String.fromCharCode(parseInt(str, 16));
|
|
47802
|
+
} else {
|
|
47803
|
+
str = str.substr(1);
|
|
47804
|
+
if (decimalNumber.test(str)) entity = String.fromCharCode(parseInt(str, 10));
|
|
47805
|
+
}
|
|
47806
|
+
} else entity = XHTMLEntities[str];
|
|
47694
47807
|
break;
|
|
47695
47808
|
}
|
|
47696
47809
|
str += ch;
|
|
@@ -48049,29 +48162,31 @@ function eventsToAcorn(events, options) {
|
|
|
48049
48162
|
exception = error;
|
|
48050
48163
|
swallow = error.raisedAt >= prefix.length + source.length || error.message === "Unterminated comment";
|
|
48051
48164
|
}
|
|
48052
|
-
if (estree && options.expression && !isEmptyExpression)
|
|
48053
|
-
|
|
48054
|
-
|
|
48055
|
-
end: prefix.length + source.length,
|
|
48056
|
-
body: [{
|
|
48057
|
-
type: "ExpressionStatement",
|
|
48058
|
-
expression: estree,
|
|
48165
|
+
if (estree && options.expression && !isEmptyExpression) {
|
|
48166
|
+
if (empty$1(value.slice(estree.end, value.length - suffix.length))) estree = {
|
|
48167
|
+
type: "Program",
|
|
48059
48168
|
start: 0,
|
|
48060
|
-
end: prefix.length + source.length
|
|
48061
|
-
|
|
48062
|
-
|
|
48063
|
-
|
|
48064
|
-
|
|
48065
|
-
|
|
48066
|
-
|
|
48067
|
-
|
|
48068
|
-
|
|
48069
|
-
error.loc = {
|
|
48070
|
-
line: point.line,
|
|
48071
|
-
column: point.column - 1
|
|
48169
|
+
end: prefix.length + source.length,
|
|
48170
|
+
body: [{
|
|
48171
|
+
type: "ExpressionStatement",
|
|
48172
|
+
expression: estree,
|
|
48173
|
+
start: 0,
|
|
48174
|
+
end: prefix.length + source.length
|
|
48175
|
+
}],
|
|
48176
|
+
sourceType: "module",
|
|
48177
|
+
comments: []
|
|
48072
48178
|
};
|
|
48073
|
-
|
|
48074
|
-
|
|
48179
|
+
else {
|
|
48180
|
+
const point = parseOffsetToUnistPoint(estree.end);
|
|
48181
|
+
const error = /* @__PURE__ */ new Error("Unexpected content after expression");
|
|
48182
|
+
error.pos = point.offset;
|
|
48183
|
+
error.loc = {
|
|
48184
|
+
line: point.line,
|
|
48185
|
+
column: point.column - 1
|
|
48186
|
+
};
|
|
48187
|
+
exception = error;
|
|
48188
|
+
estree = void 0;
|
|
48189
|
+
}
|
|
48075
48190
|
}
|
|
48076
48191
|
if (estree) {
|
|
48077
48192
|
estree.comments = comments;
|