@fern-api/fern-api-dev 4.62.3-32-gd4b3b9e8b3d → 4.62.3-39-g50880c9de66
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/cli.cjs +593 -1658
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -12521,13 +12521,13 @@ var require_ua_parser = __commonJS({
|
|
|
12521
12521
|
var rgxMapper = function(ua8, arrays) {
|
|
12522
12522
|
var i11 = 0, j16, k19, p10, q17, matches2, match3;
|
|
12523
12523
|
while (i11 < arrays.length && !matches2) {
|
|
12524
|
-
var
|
|
12524
|
+
var regex5 = arrays[i11], props = arrays[i11 + 1];
|
|
12525
12525
|
j16 = k19 = 0;
|
|
12526
|
-
while (j16 <
|
|
12527
|
-
if (!
|
|
12526
|
+
while (j16 < regex5.length && !matches2) {
|
|
12527
|
+
if (!regex5[j16]) {
|
|
12528
12528
|
break;
|
|
12529
12529
|
}
|
|
12530
|
-
matches2 =
|
|
12530
|
+
matches2 = regex5[j16++].exec(ua8);
|
|
12531
12531
|
if (!!matches2) {
|
|
12532
12532
|
for (p10 = 0; p10 < props.length; p10++) {
|
|
12533
12533
|
match3 = matches2[++k19];
|
|
@@ -16320,7 +16320,7 @@ var require_lib = __commonJS({
|
|
|
16320
16320
|
var lowerCase = require_lower_case();
|
|
16321
16321
|
var specials = require_specials();
|
|
16322
16322
|
var word = `[^\\s'\u2019\\(\\)!?;:"-]`;
|
|
16323
|
-
var
|
|
16323
|
+
var regex5 = new RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${word}))|(${word}))(${word}*[\u2019']*${word}*)`, "g");
|
|
16324
16324
|
var convertToRegExp = (specials2) => specials2.map((s11) => [new RegExp(`\\b${s11}\\b`, "gi"), s11]);
|
|
16325
16325
|
function parseMatch(match3) {
|
|
16326
16326
|
const firstCharacter = match3[0];
|
|
@@ -16333,7 +16333,7 @@ var require_lib = __commonJS({
|
|
|
16333
16333
|
return match3;
|
|
16334
16334
|
}
|
|
16335
16335
|
module4.exports = (str3, options2 = {}) => {
|
|
16336
|
-
str3 = str3.toLowerCase().replace(
|
|
16336
|
+
str3 = str3.toLowerCase().replace(regex5, (m11, lead = "", forced, lower, rest, offset2, string26) => {
|
|
16337
16337
|
const isLastWord = m11.length + offset2 >= string26.length;
|
|
16338
16338
|
const parsedMatch = parseMatch(m11);
|
|
16339
16339
|
if (!parsedMatch) {
|
|
@@ -20980,10 +20980,10 @@ var require_core = __commonJS({
|
|
|
20980
20980
|
}
|
|
20981
20981
|
return metaSchema;
|
|
20982
20982
|
}
|
|
20983
|
-
_removeAllSchemas(schemas,
|
|
20983
|
+
_removeAllSchemas(schemas, regex5) {
|
|
20984
20984
|
for (const keyRef in schemas) {
|
|
20985
20985
|
const sch = schemas[keyRef];
|
|
20986
|
-
if (!
|
|
20986
|
+
if (!regex5 || regex5.test(keyRef)) {
|
|
20987
20987
|
if (typeof sch == "string") {
|
|
20988
20988
|
delete schemas[keyRef];
|
|
20989
20989
|
} else if (sch && !sch.meta) {
|
|
@@ -35748,9 +35748,9 @@ function isCloneUploadPackSwitch(char, arg) {
|
|
|
35748
35748
|
return /^(--no)?-{1,2}[\dlsqvnobucj]+(\s|$)/.test(cleaned);
|
|
35749
35749
|
}
|
|
35750
35750
|
function preventConfigBuilder(config5, setting, message = String(config5)) {
|
|
35751
|
-
const
|
|
35751
|
+
const regex5 = typeof config5 === "string" ? new RegExp(`\\s*${config5}`, "i") : config5;
|
|
35752
35752
|
return function preventCommand(options2, arg, next2) {
|
|
35753
|
-
if (options2[setting] !== true && isConfigSwitch(arg) &&
|
|
35753
|
+
if (options2[setting] !== true && isConfigSwitch(arg) && regex5.test(next2)) {
|
|
35754
35754
|
throw new GitPluginError(
|
|
35755
35755
|
void 0,
|
|
35756
35756
|
"unsafe",
|
|
@@ -45802,8 +45802,8 @@ function routeMatcher2(paths) {
|
|
|
45802
45802
|
const regexes = paths.map(
|
|
45803
45803
|
(p10) => p10.split("/").map((c16) => c16.startsWith("{") ? "(?:.+?)" : c16).join("/")
|
|
45804
45804
|
);
|
|
45805
|
-
const
|
|
45806
|
-
return new RegExp(
|
|
45805
|
+
const regex5 = `^(?:${regexes.map((r23) => `(?:${r23})`).join("|")})$`;
|
|
45806
|
+
return new RegExp(regex5, "i");
|
|
45807
45807
|
}
|
|
45808
45808
|
function requiresAppAuth(url3) {
|
|
45809
45809
|
return !!url3 && REGEX.test(url3.split("?")[0]);
|
|
@@ -49461,8 +49461,8 @@ var require_util2 = __commonJS({
|
|
|
49461
49461
|
field5 = processedField;
|
|
49462
49462
|
}
|
|
49463
49463
|
if (isPath2) {
|
|
49464
|
-
const
|
|
49465
|
-
if (
|
|
49464
|
+
const regex5 = process.platform === "win32" ? /^~(\/|\\)/ : /^~\//;
|
|
49465
|
+
if (regex5.test(field5) && process.env.HOME) {
|
|
49466
49466
|
field5 = path97.resolve(process.env.HOME, field5.substr(2));
|
|
49467
49467
|
}
|
|
49468
49468
|
field5 = path97.resolve(field5);
|
|
@@ -49483,8 +49483,8 @@ var require_util2 = __commonJS({
|
|
|
49483
49483
|
return name2;
|
|
49484
49484
|
}
|
|
49485
49485
|
const find4 = (name3, original) => {
|
|
49486
|
-
const
|
|
49487
|
-
if (name3 === "/" || process.platform === "win32" &&
|
|
49486
|
+
const regex5 = /^[a-zA-Z]:(\\|\/)?$/;
|
|
49487
|
+
if (name3 === "/" || process.platform === "win32" && regex5.test(name3)) {
|
|
49488
49488
|
return original;
|
|
49489
49489
|
}
|
|
49490
49490
|
try {
|
|
@@ -65038,10 +65038,10 @@ var require_core4 = __commonJS({
|
|
|
65038
65038
|
}
|
|
65039
65039
|
return metaSchema;
|
|
65040
65040
|
}
|
|
65041
|
-
_removeAllSchemas(schemas,
|
|
65041
|
+
_removeAllSchemas(schemas, regex5) {
|
|
65042
65042
|
for (const keyRef in schemas) {
|
|
65043
65043
|
const sch = schemas[keyRef];
|
|
65044
|
-
if (!
|
|
65044
|
+
if (!regex5 || regex5.test(keyRef)) {
|
|
65045
65045
|
if (typeof sch == "string") {
|
|
65046
65046
|
delete schemas[keyRef];
|
|
65047
65047
|
} else if (sch && !sch.meta) {
|
|
@@ -71368,8 +71368,8 @@ var require_asserts = __commonJS({
|
|
|
71368
71368
|
if (typeof value === "undefined" || (0, utils_1.isPlainObject)(value))
|
|
71369
71369
|
return [];
|
|
71370
71370
|
const values2 = Array.isArray(value) ? value : [value];
|
|
71371
|
-
const
|
|
71372
|
-
return values2.map((_val) => !
|
|
71371
|
+
const regex5 = (0, utils_2.regexFromString)(condition);
|
|
71372
|
+
return values2.map((_val) => !regex5?.test(_val) && {
|
|
71373
71373
|
message: `"${_val}" should match a regex ${condition}`,
|
|
71374
71374
|
location: (0, utils_1.isString)(value) ? baseLocation : (0, utils_1.isPlainObject)(rawValue) ? baseLocation.child(_val).key() : baseLocation.key()
|
|
71375
71375
|
}).filter(utils_1.isTruthy);
|
|
@@ -71378,8 +71378,8 @@ var require_asserts = __commonJS({
|
|
|
71378
71378
|
if (typeof value === "undefined" || (0, utils_1.isPlainObject)(value))
|
|
71379
71379
|
return [];
|
|
71380
71380
|
const values2 = Array.isArray(value) ? value : [value];
|
|
71381
|
-
const
|
|
71382
|
-
return values2.map((_val) =>
|
|
71381
|
+
const regex5 = (0, utils_2.regexFromString)(condition);
|
|
71382
|
+
return values2.map((_val) => regex5?.test(_val) && {
|
|
71383
71383
|
message: `"${_val}" should not match a regex ${condition}`,
|
|
71384
71384
|
location: (0, utils_1.isString)(value) ? baseLocation : (0, utils_1.isPlainObject)(rawValue) ? baseLocation.child(_val).key() : baseLocation.key()
|
|
71385
71385
|
}).filter(utils_1.isTruthy);
|
|
@@ -71553,8 +71553,8 @@ var require_asserts = __commonJS({
|
|
|
71553
71553
|
}
|
|
71554
71554
|
];
|
|
71555
71555
|
}
|
|
71556
|
-
const
|
|
71557
|
-
const isValid3 = hasRef &&
|
|
71556
|
+
const regex5 = (0, utils_2.regexFromString)(condition);
|
|
71557
|
+
const isValid3 = hasRef && regex5?.test(rawValue["$ref"]);
|
|
71558
71558
|
return isValid3 ? [] : [
|
|
71559
71559
|
{
|
|
71560
71560
|
message: `$ref value should match ${condition}`,
|
|
@@ -93091,9 +93091,9 @@ var init_function = __esm({
|
|
|
93091
93091
|
}
|
|
93092
93092
|
});
|
|
93093
93093
|
|
|
93094
|
-
// ../../../node_modules/.pnpm/dayjs@1.11.
|
|
93094
|
+
// ../../../node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/dayjs.min.js
|
|
93095
93095
|
var require_dayjs_min = __commonJS({
|
|
93096
|
-
"../../../node_modules/.pnpm/dayjs@1.11.
|
|
93096
|
+
"../../../node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/dayjs.min.js"(exports2, module4) {
|
|
93097
93097
|
"use strict";
|
|
93098
93098
|
!(function(t2, e6) {
|
|
93099
93099
|
"object" == typeof exports2 && "undefined" != typeof module4 ? module4.exports = e6() : "function" == typeof define && define.amd ? define(e6) : (t2 = "undefined" != typeof globalThis ? globalThis : t2 || self).dayjs = e6();
|
|
@@ -93372,9 +93372,9 @@ var require_dayjs_min = __commonJS({
|
|
|
93372
93372
|
}
|
|
93373
93373
|
});
|
|
93374
93374
|
|
|
93375
|
-
// ../../../node_modules/.pnpm/dayjs@1.11.
|
|
93375
|
+
// ../../../node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/plugin/utc.js
|
|
93376
93376
|
var require_utc = __commonJS({
|
|
93377
|
-
"../../../node_modules/.pnpm/dayjs@1.11.
|
|
93377
|
+
"../../../node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/plugin/utc.js"(exports2, module4) {
|
|
93378
93378
|
"use strict";
|
|
93379
93379
|
!(function(t2, i11) {
|
|
93380
93380
|
"object" == typeof exports2 && "undefined" != typeof module4 ? module4.exports = i11() : "function" == typeof define && define.amd ? define(i11) : (t2 = "undefined" != typeof globalThis ? globalThis : t2 || self).dayjs_plugin_utc = i11();
|
|
@@ -107627,7 +107627,7 @@ var init_js = __esm({
|
|
|
107627
107627
|
var lowerCase = require_lower_case2();
|
|
107628
107628
|
var specials = require_specials2();
|
|
107629
107629
|
var word = `[^\\s'\u2019\\(\\)!?;:"-]`;
|
|
107630
|
-
var
|
|
107630
|
+
var regex5 = new RegExp(`(?:(?:(\\s?(?:^|[.\\(\\)!?;:"-])\\s*)(${word}))|(${word}))(${word}*[\u2019']*${word}*)`, "g");
|
|
107631
107631
|
var convertToRegExp = (specials2) => specials2.map((s82) => [new RegExp(`\\b${s82}\\b`, "gi"), s82]);
|
|
107632
107632
|
function parseMatch(match3) {
|
|
107633
107633
|
const firstCharacter = match3[0];
|
|
@@ -107640,7 +107640,7 @@ var init_js = __esm({
|
|
|
107640
107640
|
return match3;
|
|
107641
107641
|
}
|
|
107642
107642
|
module22.exports = (str3, options2 = {}) => {
|
|
107643
|
-
str3 = str3.toLowerCase().replace(
|
|
107643
|
+
str3 = str3.toLowerCase().replace(regex5, (m102, lead = "", forced, lower, rest, offset2, string26) => {
|
|
107644
107644
|
const isLastWord = m102.length + offset2 >= string26.length;
|
|
107645
107645
|
const parsedMatch = parseMatch(m102);
|
|
107646
107646
|
if (!parsedMatch) {
|
|
@@ -168566,14 +168566,14 @@ var require_url_state_machine = __commonJS({
|
|
|
168566
168566
|
if (input3 === "") {
|
|
168567
168567
|
return 0;
|
|
168568
168568
|
}
|
|
168569
|
-
let
|
|
168569
|
+
let regex5 = /[^0-7]/u;
|
|
168570
168570
|
if (R24 === 10) {
|
|
168571
|
-
|
|
168571
|
+
regex5 = /[^0-9]/u;
|
|
168572
168572
|
}
|
|
168573
168573
|
if (R24 === 16) {
|
|
168574
|
-
|
|
168574
|
+
regex5 = /[^0-9A-Fa-f]/u;
|
|
168575
168575
|
}
|
|
168576
|
-
if (
|
|
168576
|
+
if (regex5.test(input3)) {
|
|
168577
168577
|
return failure;
|
|
168578
168578
|
}
|
|
168579
168579
|
return parseInt(input3, R24);
|
|
@@ -174552,24 +174552,24 @@ var require_object = __commonJS({
|
|
|
174552
174552
|
}
|
|
174553
174553
|
function getObjectUtils20(schema2) {
|
|
174554
174554
|
return {
|
|
174555
|
-
extend: (
|
|
174555
|
+
extend: (extension4) => {
|
|
174556
174556
|
const baseSchema = {
|
|
174557
|
-
_getParsedProperties: () => [...schema2._getParsedProperties(), ...
|
|
174558
|
-
_getRawProperties: () => [...schema2._getRawProperties(), ...
|
|
174557
|
+
_getParsedProperties: () => [...schema2._getParsedProperties(), ...extension4._getParsedProperties()],
|
|
174558
|
+
_getRawProperties: () => [...schema2._getRawProperties(), ...extension4._getRawProperties()],
|
|
174559
174559
|
parse: (raw, opts) => {
|
|
174560
174560
|
return validateAndTransformExtendedObject20({
|
|
174561
|
-
extensionKeys:
|
|
174561
|
+
extensionKeys: extension4._getRawProperties(),
|
|
174562
174562
|
value: raw,
|
|
174563
174563
|
transformBase: (rawBase) => schema2.parse(rawBase, opts),
|
|
174564
|
-
transformExtension: (rawExtension) =>
|
|
174564
|
+
transformExtension: (rawExtension) => extension4.parse(rawExtension, opts)
|
|
174565
174565
|
});
|
|
174566
174566
|
},
|
|
174567
174567
|
json: (parsed, opts) => {
|
|
174568
174568
|
return validateAndTransformExtendedObject20({
|
|
174569
|
-
extensionKeys:
|
|
174569
|
+
extensionKeys: extension4._getParsedProperties(),
|
|
174570
174570
|
value: parsed,
|
|
174571
174571
|
transformBase: (parsedBase) => schema2.json(parsedBase, opts),
|
|
174572
|
-
transformExtension: (parsedExtension) =>
|
|
174572
|
+
transformExtension: (parsedExtension) => extension4.json(parsedExtension, opts)
|
|
174573
174573
|
});
|
|
174574
174574
|
},
|
|
174575
174575
|
getType: () => Schema_1.SchemaType.OBJECT
|
|
@@ -192120,7 +192120,7 @@ var require_mime_types = __commonJS({
|
|
|
192120
192120
|
exports2.charset = charset;
|
|
192121
192121
|
exports2.charsets = { lookup: charset };
|
|
192122
192122
|
exports2.contentType = contentType;
|
|
192123
|
-
exports2.extension =
|
|
192123
|
+
exports2.extension = extension4;
|
|
192124
192124
|
exports2.extensions = /* @__PURE__ */ Object.create(null);
|
|
192125
192125
|
exports2.lookup = lookup2;
|
|
192126
192126
|
exports2.types = /* @__PURE__ */ Object.create(null);
|
|
@@ -192153,7 +192153,7 @@ var require_mime_types = __commonJS({
|
|
|
192153
192153
|
}
|
|
192154
192154
|
return mime2;
|
|
192155
192155
|
}
|
|
192156
|
-
function
|
|
192156
|
+
function extension4(type8) {
|
|
192157
192157
|
if (!type8 || typeof type8 !== "string") {
|
|
192158
192158
|
return false;
|
|
192159
192159
|
}
|
|
@@ -192168,11 +192168,11 @@ var require_mime_types = __commonJS({
|
|
|
192168
192168
|
if (!path97 || typeof path97 !== "string") {
|
|
192169
192169
|
return false;
|
|
192170
192170
|
}
|
|
192171
|
-
var
|
|
192172
|
-
if (!
|
|
192171
|
+
var extension5 = extname3("x." + path97).toLowerCase().substr(1);
|
|
192172
|
+
if (!extension5) {
|
|
192173
192173
|
return false;
|
|
192174
192174
|
}
|
|
192175
|
-
return exports2.types[
|
|
192175
|
+
return exports2.types[extension5] || false;
|
|
192176
192176
|
}
|
|
192177
192177
|
function populateMaps(extensions2, types4) {
|
|
192178
192178
|
var preference = ["nginx", "apache", void 0, "iana"];
|
|
@@ -192184,15 +192184,15 @@ var require_mime_types = __commonJS({
|
|
|
192184
192184
|
}
|
|
192185
192185
|
extensions2[type8] = exts;
|
|
192186
192186
|
for (var i11 = 0; i11 < exts.length; i11++) {
|
|
192187
|
-
var
|
|
192188
|
-
if (types4[
|
|
192189
|
-
var from4 = preference.indexOf(db2[types4[
|
|
192187
|
+
var extension5 = exts[i11];
|
|
192188
|
+
if (types4[extension5]) {
|
|
192189
|
+
var from4 = preference.indexOf(db2[types4[extension5]].source);
|
|
192190
192190
|
var to8 = preference.indexOf(mime2.source);
|
|
192191
|
-
if (types4[
|
|
192191
|
+
if (types4[extension5] !== "application/octet-stream" && (from4 > to8 || from4 === to8 && types4[extension5].substr(0, 12) === "application/")) {
|
|
192192
192192
|
continue;
|
|
192193
192193
|
}
|
|
192194
192194
|
}
|
|
192195
|
-
types4[
|
|
192195
|
+
types4[extension5] = type8;
|
|
192196
192196
|
}
|
|
192197
192197
|
});
|
|
192198
192198
|
}
|
|
@@ -194115,34 +194115,34 @@ var require_object3 = __commonJS({
|
|
|
194115
194115
|
}
|
|
194116
194116
|
function getObjectUtils20(schema2) {
|
|
194117
194117
|
return {
|
|
194118
|
-
extend: (
|
|
194118
|
+
extend: (extension4) => {
|
|
194119
194119
|
const baseSchema = {
|
|
194120
194120
|
_getParsedProperties: () => __awaiter16(this, void 0, void 0, function* () {
|
|
194121
194121
|
return [
|
|
194122
194122
|
...yield schema2._getParsedProperties(),
|
|
194123
|
-
...yield
|
|
194123
|
+
...yield extension4._getParsedProperties()
|
|
194124
194124
|
];
|
|
194125
194125
|
}),
|
|
194126
194126
|
_getRawProperties: () => __awaiter16(this, void 0, void 0, function* () {
|
|
194127
194127
|
return [
|
|
194128
194128
|
...yield schema2._getRawProperties(),
|
|
194129
|
-
...yield
|
|
194129
|
+
...yield extension4._getRawProperties()
|
|
194130
194130
|
];
|
|
194131
194131
|
}),
|
|
194132
194132
|
parse: (raw, opts) => __awaiter16(this, void 0, void 0, function* () {
|
|
194133
194133
|
return validateAndTransformExtendedObject20({
|
|
194134
|
-
extensionKeys: yield
|
|
194134
|
+
extensionKeys: yield extension4._getRawProperties(),
|
|
194135
194135
|
value: raw,
|
|
194136
194136
|
transformBase: (rawBase) => schema2.parse(rawBase, opts),
|
|
194137
|
-
transformExtension: (rawExtension) =>
|
|
194137
|
+
transformExtension: (rawExtension) => extension4.parse(rawExtension, opts)
|
|
194138
194138
|
});
|
|
194139
194139
|
}),
|
|
194140
194140
|
json: (parsed, opts) => __awaiter16(this, void 0, void 0, function* () {
|
|
194141
194141
|
return validateAndTransformExtendedObject20({
|
|
194142
|
-
extensionKeys: yield
|
|
194142
|
+
extensionKeys: yield extension4._getParsedProperties(),
|
|
194143
194143
|
value: parsed,
|
|
194144
194144
|
transformBase: (parsedBase) => schema2.json(parsedBase, opts),
|
|
194145
|
-
transformExtension: (parsedExtension) =>
|
|
194145
|
+
transformExtension: (parsedExtension) => extension4.json(parsedExtension, opts)
|
|
194146
194146
|
});
|
|
194147
194147
|
}),
|
|
194148
194148
|
getType: () => Schema_1.SchemaType.OBJECT
|
|
@@ -202611,8 +202611,8 @@ var require_object_hash = __commonJS({
|
|
|
202611
202611
|
_undefined: function() {
|
|
202612
202612
|
return write3("Undefined");
|
|
202613
202613
|
},
|
|
202614
|
-
_regexp: function(
|
|
202615
|
-
return write3("regex:" +
|
|
202614
|
+
_regexp: function(regex5) {
|
|
202615
|
+
return write3("regex:" + regex5.toString());
|
|
202616
202616
|
},
|
|
202617
202617
|
_uint8array: function(arr) {
|
|
202618
202618
|
write3("uint8array:");
|
|
@@ -208774,10 +208774,10 @@ var require_follow_redirects = __commonJS({
|
|
|
208774
208774
|
spread3.path = spread3.search ? spread3.pathname + spread3.search : spread3.pathname;
|
|
208775
208775
|
return spread3;
|
|
208776
208776
|
}
|
|
208777
|
-
function removeMatchingHeaders(
|
|
208777
|
+
function removeMatchingHeaders(regex5, headers2) {
|
|
208778
208778
|
var lastValue;
|
|
208779
208779
|
for (var header in headers2) {
|
|
208780
|
-
if (
|
|
208780
|
+
if (regex5.test(header)) {
|
|
208781
208781
|
lastValue = headers2[header];
|
|
208782
208782
|
delete headers2[header];
|
|
208783
208783
|
}
|
|
@@ -223355,21 +223355,21 @@ function readString(lexer2, start2) {
|
|
|
223355
223355
|
}
|
|
223356
223356
|
function readEscapedUnicodeVariableWidth(lexer2, position4) {
|
|
223357
223357
|
const body = lexer2.source.body;
|
|
223358
|
-
let
|
|
223358
|
+
let point5 = 0;
|
|
223359
223359
|
let size2 = 3;
|
|
223360
223360
|
while (size2 < 12) {
|
|
223361
223361
|
const code5 = body.charCodeAt(position4 + size2++);
|
|
223362
223362
|
if (code5 === 125) {
|
|
223363
|
-
if (size2 < 5 || !isUnicodeScalarValue(
|
|
223363
|
+
if (size2 < 5 || !isUnicodeScalarValue(point5)) {
|
|
223364
223364
|
break;
|
|
223365
223365
|
}
|
|
223366
223366
|
return {
|
|
223367
|
-
value: String.fromCodePoint(
|
|
223367
|
+
value: String.fromCodePoint(point5),
|
|
223368
223368
|
size: size2
|
|
223369
223369
|
};
|
|
223370
223370
|
}
|
|
223371
|
-
|
|
223372
|
-
if (
|
|
223371
|
+
point5 = point5 << 4 | readHexDigit(code5);
|
|
223372
|
+
if (point5 < 0) {
|
|
223373
223373
|
break;
|
|
223374
223374
|
}
|
|
223375
223375
|
}
|
|
@@ -251644,14 +251644,14 @@ var require_emoji_regex = __commonJS({
|
|
|
251644
251644
|
var require_string_width = __commonJS({
|
|
251645
251645
|
"../../../node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js"(exports2, module4) {
|
|
251646
251646
|
"use strict";
|
|
251647
|
-
var
|
|
251647
|
+
var stripAnsi5 = require_strip_ansi();
|
|
251648
251648
|
var isFullwidthCodePoint = require_is_fullwidth_code_point();
|
|
251649
251649
|
var emojiRegex3 = require_emoji_regex();
|
|
251650
251650
|
var stringWidth4 = (string26) => {
|
|
251651
251651
|
if (typeof string26 !== "string" || string26.length === 0) {
|
|
251652
251652
|
return 0;
|
|
251653
251653
|
}
|
|
251654
|
-
string26 =
|
|
251654
|
+
string26 = stripAnsi5(string26);
|
|
251655
251655
|
if (string26.length === 0) {
|
|
251656
251656
|
return 0;
|
|
251657
251657
|
}
|
|
@@ -252786,7 +252786,7 @@ var require_wrap_ansi = __commonJS({
|
|
|
252786
252786
|
"../../../node_modules/.pnpm/wrap-ansi@6.2.0/node_modules/wrap-ansi/index.js"(exports2, module4) {
|
|
252787
252787
|
"use strict";
|
|
252788
252788
|
var stringWidth4 = require_string_width();
|
|
252789
|
-
var
|
|
252789
|
+
var stripAnsi5 = require_strip_ansi();
|
|
252790
252790
|
var ansiStyles3 = require_ansi_styles();
|
|
252791
252791
|
var ESCAPES2 = /* @__PURE__ */ new Set([
|
|
252792
252792
|
"\x1B",
|
|
@@ -252798,7 +252798,7 @@ var require_wrap_ansi = __commonJS({
|
|
|
252798
252798
|
var wrapWord2 = (rows, word, columns) => {
|
|
252799
252799
|
const characters = [...word];
|
|
252800
252800
|
let isInsideEscape = false;
|
|
252801
|
-
let visible = stringWidth4(
|
|
252801
|
+
let visible = stringWidth4(stripAnsi5(rows[rows.length - 1]));
|
|
252802
252802
|
for (const [index3, character] of characters.entries()) {
|
|
252803
252803
|
const characterLength = stringWidth4(character);
|
|
252804
252804
|
if (visible + characterLength <= columns) {
|
|
@@ -254186,7 +254186,7 @@ var require_ora = __commonJS({
|
|
|
254186
254186
|
var cliCursor2 = require_cli_cursor();
|
|
254187
254187
|
var cliSpinners2 = require_cli_spinners();
|
|
254188
254188
|
var logSymbols2 = require_log_symbols();
|
|
254189
|
-
var
|
|
254189
|
+
var stripAnsi5 = require_strip_ansi();
|
|
254190
254190
|
var wcwidth = require_wcwidth();
|
|
254191
254191
|
var isInteractive2 = require_is_interactive();
|
|
254192
254192
|
var isUnicodeSupported3 = require_is_unicode_supported();
|
|
@@ -254353,7 +254353,7 @@ var require_ora = __commonJS({
|
|
|
254353
254353
|
const columns = this.stream.columns || 80;
|
|
254354
254354
|
const fullPrefixText = this.getFullPrefixText(this.prefixText, "-");
|
|
254355
254355
|
this.lineCount = 0;
|
|
254356
|
-
for (const line of
|
|
254356
|
+
for (const line of stripAnsi5(fullPrefixText + "--" + this[TEXT]).split("\n")) {
|
|
254357
254357
|
this.lineCount += Math.max(1, Math.ceil(wcwidth(line) / columns));
|
|
254358
254358
|
}
|
|
254359
254359
|
}
|
|
@@ -279311,8 +279311,8 @@ var require_src17 = __commonJS({
|
|
|
279311
279311
|
];
|
|
279312
279312
|
var defaultDbStatementSerializer = (cmdName, cmdArgs) => {
|
|
279313
279313
|
if (Array.isArray(cmdArgs) && cmdArgs.length) {
|
|
279314
|
-
const nArgsToSerialize = serializationSubsets.find(({ regex:
|
|
279315
|
-
return
|
|
279314
|
+
const nArgsToSerialize = serializationSubsets.find(({ regex: regex5 }) => {
|
|
279315
|
+
return regex5.test(cmdName);
|
|
279316
279316
|
})?.args ?? 0;
|
|
279317
279317
|
const argsToSerialize = nArgsToSerialize >= 0 ? cmdArgs.slice(0, nArgsToSerialize) : cmdArgs;
|
|
279318
279318
|
if (cmdArgs.length > argsToSerialize.length) {
|
|
@@ -289245,365 +289245,6 @@ var require_acorn_jsx = __commonJS({
|
|
|
289245
289245
|
}
|
|
289246
289246
|
});
|
|
289247
289247
|
|
|
289248
|
-
// ../../../node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/dayjs.min.js
|
|
289249
|
-
var require_dayjs_min2 = __commonJS({
|
|
289250
|
-
"../../../node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/dayjs.min.js"(exports2, module4) {
|
|
289251
|
-
"use strict";
|
|
289252
|
-
!(function(t2, e6) {
|
|
289253
|
-
"object" == typeof exports2 && "undefined" != typeof module4 ? module4.exports = e6() : "function" == typeof define && define.amd ? define(e6) : (t2 = "undefined" != typeof globalThis ? globalThis : t2 || self).dayjs = e6();
|
|
289254
|
-
})(exports2, (function() {
|
|
289255
|
-
"use strict";
|
|
289256
|
-
var t2 = 1e3, e6 = 6e4, n6 = 36e5, r23 = "millisecond", i11 = "second", s11 = "minute", u8 = "hour", a10 = "day", o14 = "week", c16 = "month", f10 = "quarter", h14 = "year", d14 = "date", l14 = "Invalid Date", $20 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y24 = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M19 = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t3) {
|
|
289257
|
-
var e7 = ["th", "st", "nd", "rd"], n7 = t3 % 100;
|
|
289258
|
-
return "[" + t3 + (e7[(n7 - 20) % 10] || e7[n7] || e7[0]) + "]";
|
|
289259
|
-
} }, m11 = function(t3, e7, n7) {
|
|
289260
|
-
var r24 = String(t3);
|
|
289261
|
-
return !r24 || r24.length >= e7 ? t3 : "" + Array(e7 + 1 - r24.length).join(n7) + t3;
|
|
289262
|
-
}, v23 = { s: m11, z: function(t3) {
|
|
289263
|
-
var e7 = -t3.utcOffset(), n7 = Math.abs(e7), r24 = Math.floor(n7 / 60), i12 = n7 % 60;
|
|
289264
|
-
return (e7 <= 0 ? "+" : "-") + m11(r24, 2, "0") + ":" + m11(i12, 2, "0");
|
|
289265
|
-
}, m: function t3(e7, n7) {
|
|
289266
|
-
if (e7.date() < n7.date()) return -t3(n7, e7);
|
|
289267
|
-
var r24 = 12 * (n7.year() - e7.year()) + (n7.month() - e7.month()), i12 = e7.clone().add(r24, c16), s12 = n7 - i12 < 0, u9 = e7.clone().add(r24 + (s12 ? -1 : 1), c16);
|
|
289268
|
-
return +(-(r24 + (n7 - i12) / (s12 ? i12 - u9 : u9 - i12)) || 0);
|
|
289269
|
-
}, a: function(t3) {
|
|
289270
|
-
return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
|
|
289271
|
-
}, p: function(t3) {
|
|
289272
|
-
return { M: c16, y: h14, w: o14, d: a10, D: d14, h: u8, m: s11, s: i11, ms: r23, Q: f10 }[t3] || String(t3 || "").toLowerCase().replace(/s$/, "");
|
|
289273
|
-
}, u: function(t3) {
|
|
289274
|
-
return void 0 === t3;
|
|
289275
|
-
} }, g19 = "en", D15 = {};
|
|
289276
|
-
D15[g19] = M19;
|
|
289277
|
-
var p10 = "$isDayjsObject", S14 = function(t3) {
|
|
289278
|
-
return t3 instanceof _16 || !(!t3 || !t3[p10]);
|
|
289279
|
-
}, w20 = function t3(e7, n7, r24) {
|
|
289280
|
-
var i12;
|
|
289281
|
-
if (!e7) return g19;
|
|
289282
|
-
if ("string" == typeof e7) {
|
|
289283
|
-
var s12 = e7.toLowerCase();
|
|
289284
|
-
D15[s12] && (i12 = s12), n7 && (D15[s12] = n7, i12 = s12);
|
|
289285
|
-
var u9 = e7.split("-");
|
|
289286
|
-
if (!i12 && u9.length > 1) return t3(u9[0]);
|
|
289287
|
-
} else {
|
|
289288
|
-
var a11 = e7.name;
|
|
289289
|
-
D15[a11] = e7, i12 = a11;
|
|
289290
|
-
}
|
|
289291
|
-
return !r24 && i12 && (g19 = i12), i12 || !r24 && g19;
|
|
289292
|
-
}, O11 = function(t3, e7) {
|
|
289293
|
-
if (S14(t3)) return t3.clone();
|
|
289294
|
-
var n7 = "object" == typeof e7 ? e7 : {};
|
|
289295
|
-
return n7.date = t3, n7.args = arguments, new _16(n7);
|
|
289296
|
-
}, b19 = v23;
|
|
289297
|
-
b19.l = w20, b19.i = S14, b19.w = function(t3, e7) {
|
|
289298
|
-
return O11(t3, { locale: e7.$L, utc: e7.$u, x: e7.$x, $offset: e7.$offset });
|
|
289299
|
-
};
|
|
289300
|
-
var _16 = (function() {
|
|
289301
|
-
function M20(t3) {
|
|
289302
|
-
this.$L = w20(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p10] = true;
|
|
289303
|
-
}
|
|
289304
|
-
var m12 = M20.prototype;
|
|
289305
|
-
return m12.parse = function(t3) {
|
|
289306
|
-
this.$d = (function(t4) {
|
|
289307
|
-
var e7 = t4.date, n7 = t4.utc;
|
|
289308
|
-
if (null === e7) return /* @__PURE__ */ new Date(NaN);
|
|
289309
|
-
if (b19.u(e7)) return /* @__PURE__ */ new Date();
|
|
289310
|
-
if (e7 instanceof Date) return new Date(e7);
|
|
289311
|
-
if ("string" == typeof e7 && !/Z$/i.test(e7)) {
|
|
289312
|
-
var r24 = e7.match($20);
|
|
289313
|
-
if (r24) {
|
|
289314
|
-
var i12 = r24[2] - 1 || 0, s12 = (r24[7] || "0").substring(0, 3);
|
|
289315
|
-
return n7 ? new Date(Date.UTC(r24[1], i12, r24[3] || 1, r24[4] || 0, r24[5] || 0, r24[6] || 0, s12)) : new Date(r24[1], i12, r24[3] || 1, r24[4] || 0, r24[5] || 0, r24[6] || 0, s12);
|
|
289316
|
-
}
|
|
289317
|
-
}
|
|
289318
|
-
return new Date(e7);
|
|
289319
|
-
})(t3), this.init();
|
|
289320
|
-
}, m12.init = function() {
|
|
289321
|
-
var t3 = this.$d;
|
|
289322
|
-
this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds();
|
|
289323
|
-
}, m12.$utils = function() {
|
|
289324
|
-
return b19;
|
|
289325
|
-
}, m12.isValid = function() {
|
|
289326
|
-
return !(this.$d.toString() === l14);
|
|
289327
|
-
}, m12.isSame = function(t3, e7) {
|
|
289328
|
-
var n7 = O11(t3);
|
|
289329
|
-
return this.startOf(e7) <= n7 && n7 <= this.endOf(e7);
|
|
289330
|
-
}, m12.isAfter = function(t3, e7) {
|
|
289331
|
-
return O11(t3) < this.startOf(e7);
|
|
289332
|
-
}, m12.isBefore = function(t3, e7) {
|
|
289333
|
-
return this.endOf(e7) < O11(t3);
|
|
289334
|
-
}, m12.$g = function(t3, e7, n7) {
|
|
289335
|
-
return b19.u(t3) ? this[e7] : this.set(n7, t3);
|
|
289336
|
-
}, m12.unix = function() {
|
|
289337
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
289338
|
-
}, m12.valueOf = function() {
|
|
289339
|
-
return this.$d.getTime();
|
|
289340
|
-
}, m12.startOf = function(t3, e7) {
|
|
289341
|
-
var n7 = this, r24 = !!b19.u(e7) || e7, f11 = b19.p(t3), l15 = function(t4, e8) {
|
|
289342
|
-
var i12 = b19.w(n7.$u ? Date.UTC(n7.$y, e8, t4) : new Date(n7.$y, e8, t4), n7);
|
|
289343
|
-
return r24 ? i12 : i12.endOf(a10);
|
|
289344
|
-
}, $21 = function(t4, e8) {
|
|
289345
|
-
return b19.w(n7.toDate()[t4].apply(n7.toDate("s"), (r24 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e8)), n7);
|
|
289346
|
-
}, y25 = this.$W, M21 = this.$M, m13 = this.$D, v24 = "set" + (this.$u ? "UTC" : "");
|
|
289347
|
-
switch (f11) {
|
|
289348
|
-
case h14:
|
|
289349
|
-
return r24 ? l15(1, 0) : l15(31, 11);
|
|
289350
|
-
case c16:
|
|
289351
|
-
return r24 ? l15(1, M21) : l15(0, M21 + 1);
|
|
289352
|
-
case o14:
|
|
289353
|
-
var g20 = this.$locale().weekStart || 0, D16 = (y25 < g20 ? y25 + 7 : y25) - g20;
|
|
289354
|
-
return l15(r24 ? m13 - D16 : m13 + (6 - D16), M21);
|
|
289355
|
-
case a10:
|
|
289356
|
-
case d14:
|
|
289357
|
-
return $21(v24 + "Hours", 0);
|
|
289358
|
-
case u8:
|
|
289359
|
-
return $21(v24 + "Minutes", 1);
|
|
289360
|
-
case s11:
|
|
289361
|
-
return $21(v24 + "Seconds", 2);
|
|
289362
|
-
case i11:
|
|
289363
|
-
return $21(v24 + "Milliseconds", 3);
|
|
289364
|
-
default:
|
|
289365
|
-
return this.clone();
|
|
289366
|
-
}
|
|
289367
|
-
}, m12.endOf = function(t3) {
|
|
289368
|
-
return this.startOf(t3, false);
|
|
289369
|
-
}, m12.$set = function(t3, e7) {
|
|
289370
|
-
var n7, o15 = b19.p(t3), f11 = "set" + (this.$u ? "UTC" : ""), l15 = (n7 = {}, n7[a10] = f11 + "Date", n7[d14] = f11 + "Date", n7[c16] = f11 + "Month", n7[h14] = f11 + "FullYear", n7[u8] = f11 + "Hours", n7[s11] = f11 + "Minutes", n7[i11] = f11 + "Seconds", n7[r23] = f11 + "Milliseconds", n7)[o15], $21 = o15 === a10 ? this.$D + (e7 - this.$W) : e7;
|
|
289371
|
-
if (o15 === c16 || o15 === h14) {
|
|
289372
|
-
var y25 = this.clone().set(d14, 1);
|
|
289373
|
-
y25.$d[l15]($21), y25.init(), this.$d = y25.set(d14, Math.min(this.$D, y25.daysInMonth())).$d;
|
|
289374
|
-
} else l15 && this.$d[l15]($21);
|
|
289375
|
-
return this.init(), this;
|
|
289376
|
-
}, m12.set = function(t3, e7) {
|
|
289377
|
-
return this.clone().$set(t3, e7);
|
|
289378
|
-
}, m12.get = function(t3) {
|
|
289379
|
-
return this[b19.p(t3)]();
|
|
289380
|
-
}, m12.add = function(r24, f11) {
|
|
289381
|
-
var d15, l15 = this;
|
|
289382
|
-
r24 = Number(r24);
|
|
289383
|
-
var $21 = b19.p(f11), y25 = function(t3) {
|
|
289384
|
-
var e7 = O11(l15);
|
|
289385
|
-
return b19.w(e7.date(e7.date() + Math.round(t3 * r24)), l15);
|
|
289386
|
-
};
|
|
289387
|
-
if ($21 === c16) return this.set(c16, this.$M + r24);
|
|
289388
|
-
if ($21 === h14) return this.set(h14, this.$y + r24);
|
|
289389
|
-
if ($21 === a10) return y25(1);
|
|
289390
|
-
if ($21 === o14) return y25(7);
|
|
289391
|
-
var M21 = (d15 = {}, d15[s11] = e6, d15[u8] = n6, d15[i11] = t2, d15)[$21] || 1, m13 = this.$d.getTime() + r24 * M21;
|
|
289392
|
-
return b19.w(m13, this);
|
|
289393
|
-
}, m12.subtract = function(t3, e7) {
|
|
289394
|
-
return this.add(-1 * t3, e7);
|
|
289395
|
-
}, m12.format = function(t3) {
|
|
289396
|
-
var e7 = this, n7 = this.$locale();
|
|
289397
|
-
if (!this.isValid()) return n7.invalidDate || l14;
|
|
289398
|
-
var r24 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i12 = b19.z(this), s12 = this.$H, u9 = this.$m, a11 = this.$M, o15 = n7.weekdays, c17 = n7.months, f11 = n7.meridiem, h15 = function(t4, n8, i13, s13) {
|
|
289399
|
-
return t4 && (t4[n8] || t4(e7, r24)) || i13[n8].slice(0, s13);
|
|
289400
|
-
}, d15 = function(t4) {
|
|
289401
|
-
return b19.s(s12 % 12 || 12, t4, "0");
|
|
289402
|
-
}, $21 = f11 || function(t4, e8, n8) {
|
|
289403
|
-
var r25 = t4 < 12 ? "AM" : "PM";
|
|
289404
|
-
return n8 ? r25.toLowerCase() : r25;
|
|
289405
|
-
};
|
|
289406
|
-
return r24.replace(y24, (function(t4, r25) {
|
|
289407
|
-
return r25 || (function(t5) {
|
|
289408
|
-
switch (t5) {
|
|
289409
|
-
case "YY":
|
|
289410
|
-
return String(e7.$y).slice(-2);
|
|
289411
|
-
case "YYYY":
|
|
289412
|
-
return b19.s(e7.$y, 4, "0");
|
|
289413
|
-
case "M":
|
|
289414
|
-
return a11 + 1;
|
|
289415
|
-
case "MM":
|
|
289416
|
-
return b19.s(a11 + 1, 2, "0");
|
|
289417
|
-
case "MMM":
|
|
289418
|
-
return h15(n7.monthsShort, a11, c17, 3);
|
|
289419
|
-
case "MMMM":
|
|
289420
|
-
return h15(c17, a11);
|
|
289421
|
-
case "D":
|
|
289422
|
-
return e7.$D;
|
|
289423
|
-
case "DD":
|
|
289424
|
-
return b19.s(e7.$D, 2, "0");
|
|
289425
|
-
case "d":
|
|
289426
|
-
return String(e7.$W);
|
|
289427
|
-
case "dd":
|
|
289428
|
-
return h15(n7.weekdaysMin, e7.$W, o15, 2);
|
|
289429
|
-
case "ddd":
|
|
289430
|
-
return h15(n7.weekdaysShort, e7.$W, o15, 3);
|
|
289431
|
-
case "dddd":
|
|
289432
|
-
return o15[e7.$W];
|
|
289433
|
-
case "H":
|
|
289434
|
-
return String(s12);
|
|
289435
|
-
case "HH":
|
|
289436
|
-
return b19.s(s12, 2, "0");
|
|
289437
|
-
case "h":
|
|
289438
|
-
return d15(1);
|
|
289439
|
-
case "hh":
|
|
289440
|
-
return d15(2);
|
|
289441
|
-
case "a":
|
|
289442
|
-
return $21(s12, u9, true);
|
|
289443
|
-
case "A":
|
|
289444
|
-
return $21(s12, u9, false);
|
|
289445
|
-
case "m":
|
|
289446
|
-
return String(u9);
|
|
289447
|
-
case "mm":
|
|
289448
|
-
return b19.s(u9, 2, "0");
|
|
289449
|
-
case "s":
|
|
289450
|
-
return String(e7.$s);
|
|
289451
|
-
case "ss":
|
|
289452
|
-
return b19.s(e7.$s, 2, "0");
|
|
289453
|
-
case "SSS":
|
|
289454
|
-
return b19.s(e7.$ms, 3, "0");
|
|
289455
|
-
case "Z":
|
|
289456
|
-
return i12;
|
|
289457
|
-
}
|
|
289458
|
-
return null;
|
|
289459
|
-
})(t4) || i12.replace(":", "");
|
|
289460
|
-
}));
|
|
289461
|
-
}, m12.utcOffset = function() {
|
|
289462
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
289463
|
-
}, m12.diff = function(r24, d15, l15) {
|
|
289464
|
-
var $21, y25 = this, M21 = b19.p(d15), m13 = O11(r24), v24 = (m13.utcOffset() - this.utcOffset()) * e6, g20 = this - m13, D16 = function() {
|
|
289465
|
-
return b19.m(y25, m13);
|
|
289466
|
-
};
|
|
289467
|
-
switch (M21) {
|
|
289468
|
-
case h14:
|
|
289469
|
-
$21 = D16() / 12;
|
|
289470
|
-
break;
|
|
289471
|
-
case c16:
|
|
289472
|
-
$21 = D16();
|
|
289473
|
-
break;
|
|
289474
|
-
case f10:
|
|
289475
|
-
$21 = D16() / 3;
|
|
289476
|
-
break;
|
|
289477
|
-
case o14:
|
|
289478
|
-
$21 = (g20 - v24) / 6048e5;
|
|
289479
|
-
break;
|
|
289480
|
-
case a10:
|
|
289481
|
-
$21 = (g20 - v24) / 864e5;
|
|
289482
|
-
break;
|
|
289483
|
-
case u8:
|
|
289484
|
-
$21 = g20 / n6;
|
|
289485
|
-
break;
|
|
289486
|
-
case s11:
|
|
289487
|
-
$21 = g20 / e6;
|
|
289488
|
-
break;
|
|
289489
|
-
case i11:
|
|
289490
|
-
$21 = g20 / t2;
|
|
289491
|
-
break;
|
|
289492
|
-
default:
|
|
289493
|
-
$21 = g20;
|
|
289494
|
-
}
|
|
289495
|
-
return l15 ? $21 : b19.a($21);
|
|
289496
|
-
}, m12.daysInMonth = function() {
|
|
289497
|
-
return this.endOf(c16).$D;
|
|
289498
|
-
}, m12.$locale = function() {
|
|
289499
|
-
return D15[this.$L];
|
|
289500
|
-
}, m12.locale = function(t3, e7) {
|
|
289501
|
-
if (!t3) return this.$L;
|
|
289502
|
-
var n7 = this.clone(), r24 = w20(t3, e7, true);
|
|
289503
|
-
return r24 && (n7.$L = r24), n7;
|
|
289504
|
-
}, m12.clone = function() {
|
|
289505
|
-
return b19.w(this.$d, this);
|
|
289506
|
-
}, m12.toDate = function() {
|
|
289507
|
-
return new Date(this.valueOf());
|
|
289508
|
-
}, m12.toJSON = function() {
|
|
289509
|
-
return this.isValid() ? this.toISOString() : null;
|
|
289510
|
-
}, m12.toISOString = function() {
|
|
289511
|
-
return this.$d.toISOString();
|
|
289512
|
-
}, m12.toString = function() {
|
|
289513
|
-
return this.$d.toUTCString();
|
|
289514
|
-
}, M20;
|
|
289515
|
-
})(), k19 = _16.prototype;
|
|
289516
|
-
return O11.prototype = k19, [["$ms", r23], ["$s", i11], ["$m", s11], ["$H", u8], ["$W", a10], ["$M", c16], ["$y", h14], ["$D", d14]].forEach((function(t3) {
|
|
289517
|
-
k19[t3[1]] = function(e7) {
|
|
289518
|
-
return this.$g(e7, t3[0], t3[1]);
|
|
289519
|
-
};
|
|
289520
|
-
})), O11.extend = function(t3, e7) {
|
|
289521
|
-
return t3.$i || (t3(e7, _16, O11), t3.$i = true), O11;
|
|
289522
|
-
}, O11.locale = w20, O11.isDayjs = S14, O11.unix = function(t3) {
|
|
289523
|
-
return O11(1e3 * t3);
|
|
289524
|
-
}, O11.en = D15[g19], O11.Ls = D15, O11.p = {}, O11;
|
|
289525
|
-
}));
|
|
289526
|
-
}
|
|
289527
|
-
});
|
|
289528
|
-
|
|
289529
|
-
// ../../../node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/plugin/utc.js
|
|
289530
|
-
var require_utc2 = __commonJS({
|
|
289531
|
-
"../../../node_modules/.pnpm/dayjs@1.11.20/node_modules/dayjs/plugin/utc.js"(exports2, module4) {
|
|
289532
|
-
"use strict";
|
|
289533
|
-
!(function(t2, i11) {
|
|
289534
|
-
"object" == typeof exports2 && "undefined" != typeof module4 ? module4.exports = i11() : "function" == typeof define && define.amd ? define(i11) : (t2 = "undefined" != typeof globalThis ? globalThis : t2 || self).dayjs_plugin_utc = i11();
|
|
289535
|
-
})(exports2, (function() {
|
|
289536
|
-
"use strict";
|
|
289537
|
-
var t2 = "minute", i11 = /[+-]\d\d(?::?\d\d)?/g, e6 = /([+-]|\d\d)/g;
|
|
289538
|
-
return function(s11, f10, n6) {
|
|
289539
|
-
var u8 = f10.prototype;
|
|
289540
|
-
n6.utc = function(t3) {
|
|
289541
|
-
var i12 = { date: t3, utc: true, args: arguments };
|
|
289542
|
-
return new f10(i12);
|
|
289543
|
-
}, u8.utc = function(i12) {
|
|
289544
|
-
var e7 = n6(this.toDate(), { locale: this.$L, utc: true });
|
|
289545
|
-
return i12 ? e7.add(this.utcOffset(), t2) : e7;
|
|
289546
|
-
}, u8.local = function() {
|
|
289547
|
-
return n6(this.toDate(), { locale: this.$L, utc: false });
|
|
289548
|
-
};
|
|
289549
|
-
var r23 = u8.parse;
|
|
289550
|
-
u8.parse = function(t3) {
|
|
289551
|
-
t3.utc && (this.$u = true), this.$utils().u(t3.$offset) || (this.$offset = t3.$offset), r23.call(this, t3);
|
|
289552
|
-
};
|
|
289553
|
-
var o14 = u8.init;
|
|
289554
|
-
u8.init = function() {
|
|
289555
|
-
if (this.$u) {
|
|
289556
|
-
var t3 = this.$d;
|
|
289557
|
-
this.$y = t3.getUTCFullYear(), this.$M = t3.getUTCMonth(), this.$D = t3.getUTCDate(), this.$W = t3.getUTCDay(), this.$H = t3.getUTCHours(), this.$m = t3.getUTCMinutes(), this.$s = t3.getUTCSeconds(), this.$ms = t3.getUTCMilliseconds();
|
|
289558
|
-
} else o14.call(this);
|
|
289559
|
-
};
|
|
289560
|
-
var a10 = u8.utcOffset;
|
|
289561
|
-
u8.utcOffset = function(s12, f11) {
|
|
289562
|
-
var n7 = this.$utils().u;
|
|
289563
|
-
if (n7(s12)) return this.$u ? 0 : n7(this.$offset) ? a10.call(this) : this.$offset;
|
|
289564
|
-
if ("string" == typeof s12 && (s12 = (function(t3) {
|
|
289565
|
-
void 0 === t3 && (t3 = "");
|
|
289566
|
-
var s13 = t3.match(i11);
|
|
289567
|
-
if (!s13) return null;
|
|
289568
|
-
var f12 = ("" + s13[0]).match(e6) || ["-", 0, 0], n8 = f12[0], u10 = 60 * +f12[1] + +f12[2];
|
|
289569
|
-
return 0 === u10 ? 0 : "+" === n8 ? u10 : -u10;
|
|
289570
|
-
})(s12), null === s12)) return this;
|
|
289571
|
-
var u9 = Math.abs(s12) <= 16 ? 60 * s12 : s12;
|
|
289572
|
-
if (0 === u9) return this.utc(f11);
|
|
289573
|
-
var r24 = this.clone();
|
|
289574
|
-
if (f11) return r24.$offset = u9, r24.$u = false, r24;
|
|
289575
|
-
var o15 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
289576
|
-
return (r24 = this.local().add(u9 + o15, t2)).$offset = u9, r24.$x.$localOffset = o15, r24;
|
|
289577
|
-
};
|
|
289578
|
-
var h14 = u8.format;
|
|
289579
|
-
u8.format = function(t3) {
|
|
289580
|
-
var i12 = t3 || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
289581
|
-
return h14.call(this, i12);
|
|
289582
|
-
}, u8.valueOf = function() {
|
|
289583
|
-
var t3 = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
289584
|
-
return this.$d.valueOf() - 6e4 * t3;
|
|
289585
|
-
}, u8.isUTC = function() {
|
|
289586
|
-
return !!this.$u;
|
|
289587
|
-
}, u8.toISOString = function() {
|
|
289588
|
-
return this.toDate().toISOString();
|
|
289589
|
-
}, u8.toString = function() {
|
|
289590
|
-
return this.toDate().toUTCString();
|
|
289591
|
-
};
|
|
289592
|
-
var l14 = u8.toDate;
|
|
289593
|
-
u8.toDate = function(t3) {
|
|
289594
|
-
return "s" === t3 && this.$offset ? n6(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : l14.call(this);
|
|
289595
|
-
};
|
|
289596
|
-
var c16 = u8.diff;
|
|
289597
|
-
u8.diff = function(t3, i12, e7) {
|
|
289598
|
-
if (t3 && this.$u === t3.$u) return c16.call(this, t3, i12, e7);
|
|
289599
|
-
var s12 = this.local(), f11 = n6(t3).local();
|
|
289600
|
-
return c16.call(s12, f11, i12, e7);
|
|
289601
|
-
};
|
|
289602
|
-
};
|
|
289603
|
-
}));
|
|
289604
|
-
}
|
|
289605
|
-
});
|
|
289606
|
-
|
|
289607
289248
|
// ../../../node_modules/.pnpm/fastest-levenshtein@1.0.16/node_modules/fastest-levenshtein/esm/mod.js
|
|
289608
289249
|
var mod_exports = {};
|
|
289609
289250
|
__export(mod_exports, {
|
|
@@ -299513,12 +299154,12 @@ var require_ipaddr = __commonJS({
|
|
|
299513
299154
|
return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/, "::");
|
|
299514
299155
|
};
|
|
299515
299156
|
IPv6.prototype.toRFC5952String = function() {
|
|
299516
|
-
var bestMatchIndex, bestMatchLength, match3,
|
|
299517
|
-
|
|
299157
|
+
var bestMatchIndex, bestMatchLength, match3, regex5, string26;
|
|
299158
|
+
regex5 = /((^|:)(0(:|$)){2,})/g;
|
|
299518
299159
|
string26 = this.toNormalizedString();
|
|
299519
299160
|
bestMatchIndex = 0;
|
|
299520
299161
|
bestMatchLength = -1;
|
|
299521
|
-
while (match3 =
|
|
299162
|
+
while (match3 = regex5.exec(string26)) {
|
|
299522
299163
|
if (match3[0].length > bestMatchLength) {
|
|
299523
299164
|
bestMatchIndex = match3.index;
|
|
299524
299165
|
bestMatchLength = match3[0].length;
|
|
@@ -300357,8 +299998,8 @@ var require_application = __commonJS({
|
|
|
300357
299998
|
if (typeof fn5 !== "function") {
|
|
300358
299999
|
throw new Error("callback function required");
|
|
300359
300000
|
}
|
|
300360
|
-
var
|
|
300361
|
-
this.engines[
|
|
300001
|
+
var extension4 = ext2[0] !== "." ? "." + ext2 : ext2;
|
|
300002
|
+
this.engines[extension4] = fn5;
|
|
300362
300003
|
return this;
|
|
300363
300004
|
};
|
|
300364
300005
|
app.param = function param(name2, fn5) {
|
|
@@ -304326,11 +303967,11 @@ var require_extension = __commonJS({
|
|
|
304326
303967
|
return offers;
|
|
304327
303968
|
}
|
|
304328
303969
|
function format3(extensions2) {
|
|
304329
|
-
return Object.keys(extensions2).map((
|
|
304330
|
-
let configurations = extensions2[
|
|
303970
|
+
return Object.keys(extensions2).map((extension4) => {
|
|
303971
|
+
let configurations = extensions2[extension4];
|
|
304331
303972
|
if (!Array.isArray(configurations)) configurations = [configurations];
|
|
304332
303973
|
return configurations.map((params2) => {
|
|
304333
|
-
return [
|
|
303974
|
+
return [extension4].concat(
|
|
304334
303975
|
Object.keys(params2).map((k19) => {
|
|
304335
303976
|
let values2 = params2[k19];
|
|
304336
303977
|
if (!Array.isArray(values2)) values2 = [values2];
|
|
@@ -305381,7 +305022,7 @@ var require_websocket_server = __commonJS({
|
|
|
305381
305022
|
var http14 = require("http");
|
|
305382
305023
|
var { Duplex } = require("stream");
|
|
305383
305024
|
var { createHash: createHash4 } = require("crypto");
|
|
305384
|
-
var
|
|
305025
|
+
var extension4 = require_extension();
|
|
305385
305026
|
var PerMessageDeflate2 = require_permessage_deflate();
|
|
305386
305027
|
var subprotocol2 = require_subprotocol();
|
|
305387
305028
|
var WebSocket3 = require_websocket();
|
|
@@ -305622,7 +305263,7 @@ var require_websocket_server = __commonJS({
|
|
|
305622
305263
|
maxPayload: this.options.maxPayload
|
|
305623
305264
|
});
|
|
305624
305265
|
try {
|
|
305625
|
-
const offers =
|
|
305266
|
+
const offers = extension4.parse(secWebSocketExtensions);
|
|
305626
305267
|
if (offers[PerMessageDeflate2.extensionName]) {
|
|
305627
305268
|
perMessageDeflate.accept(offers[PerMessageDeflate2.extensionName]);
|
|
305628
305269
|
extensions2[PerMessageDeflate2.extensionName] = perMessageDeflate;
|
|
@@ -305698,7 +305339,7 @@ var require_websocket_server = __commonJS({
|
|
|
305698
305339
|
}
|
|
305699
305340
|
if (extensions2[PerMessageDeflate2.extensionName]) {
|
|
305700
305341
|
const params2 = extensions2[PerMessageDeflate2.extensionName].params;
|
|
305701
|
-
const value =
|
|
305342
|
+
const value = extension4.format({
|
|
305702
305343
|
[PerMessageDeflate2.extensionName]: [params2]
|
|
305703
305344
|
});
|
|
305704
305345
|
headers2.push(`Sec-WebSocket-Extensions: ${value}`);
|
|
@@ -318691,32 +318332,32 @@ var require_XMLStringifier = __commonJS({
|
|
|
318691
318332
|
XMLStringifier2.prototype.convertCommentKey = "#comment";
|
|
318692
318333
|
XMLStringifier2.prototype.convertRawKey = "#raw";
|
|
318693
318334
|
XMLStringifier2.prototype.assertLegalChar = function(str3) {
|
|
318694
|
-
var
|
|
318335
|
+
var regex5, res;
|
|
318695
318336
|
if (this.options.noValidation) {
|
|
318696
318337
|
return str3;
|
|
318697
318338
|
}
|
|
318698
|
-
|
|
318339
|
+
regex5 = "";
|
|
318699
318340
|
if (this.options.version === "1.0") {
|
|
318700
|
-
|
|
318701
|
-
if (res = str3.match(
|
|
318341
|
+
regex5 = /[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
|
|
318342
|
+
if (res = str3.match(regex5)) {
|
|
318702
318343
|
throw new Error("Invalid character in string: " + str3 + " at index " + res.index);
|
|
318703
318344
|
}
|
|
318704
318345
|
} else if (this.options.version === "1.1") {
|
|
318705
|
-
|
|
318706
|
-
if (res = str3.match(
|
|
318346
|
+
regex5 = /[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
|
|
318347
|
+
if (res = str3.match(regex5)) {
|
|
318707
318348
|
throw new Error("Invalid character in string: " + str3 + " at index " + res.index);
|
|
318708
318349
|
}
|
|
318709
318350
|
}
|
|
318710
318351
|
return str3;
|
|
318711
318352
|
};
|
|
318712
318353
|
XMLStringifier2.prototype.assertLegalName = function(str3) {
|
|
318713
|
-
var
|
|
318354
|
+
var regex5;
|
|
318714
318355
|
if (this.options.noValidation) {
|
|
318715
318356
|
return str3;
|
|
318716
318357
|
}
|
|
318717
318358
|
this.assertLegalChar(str3);
|
|
318718
|
-
|
|
318719
|
-
if (!str3.match(
|
|
318359
|
+
regex5 = /^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/;
|
|
318360
|
+
if (!str3.match(regex5)) {
|
|
318720
318361
|
throw new Error("Invalid character in name");
|
|
318721
318362
|
}
|
|
318722
318363
|
return str3;
|
|
@@ -320479,11 +320120,11 @@ var require_sax = __commonJS({
|
|
|
320479
320120
|
function isAttribEnd(c16) {
|
|
320480
320121
|
return c16 === ">" || isWhitespace4(c16);
|
|
320481
320122
|
}
|
|
320482
|
-
function isMatch2(
|
|
320483
|
-
return
|
|
320123
|
+
function isMatch2(regex5, c16) {
|
|
320124
|
+
return regex5.test(c16);
|
|
320484
320125
|
}
|
|
320485
|
-
function notMatch(
|
|
320486
|
-
return !isMatch2(
|
|
320126
|
+
function notMatch(regex5, c16) {
|
|
320127
|
+
return !isMatch2(regex5, c16);
|
|
320487
320128
|
}
|
|
320488
320129
|
var S14 = 0;
|
|
320489
320130
|
sax.STATE = {
|
|
@@ -326889,34 +326530,34 @@ var require_object5 = __commonJS({
|
|
|
326889
326530
|
}
|
|
326890
326531
|
function getObjectUtils20(schema2) {
|
|
326891
326532
|
return {
|
|
326892
|
-
extend: (
|
|
326533
|
+
extend: (extension4) => {
|
|
326893
326534
|
const baseSchema = {
|
|
326894
326535
|
_getParsedProperties: () => __awaiter16(this, void 0, void 0, function* () {
|
|
326895
326536
|
return [
|
|
326896
326537
|
...yield schema2._getParsedProperties(),
|
|
326897
|
-
...yield
|
|
326538
|
+
...yield extension4._getParsedProperties()
|
|
326898
326539
|
];
|
|
326899
326540
|
}),
|
|
326900
326541
|
_getRawProperties: () => __awaiter16(this, void 0, void 0, function* () {
|
|
326901
326542
|
return [
|
|
326902
326543
|
...yield schema2._getRawProperties(),
|
|
326903
|
-
...yield
|
|
326544
|
+
...yield extension4._getRawProperties()
|
|
326904
326545
|
];
|
|
326905
326546
|
}),
|
|
326906
326547
|
parse: (raw, opts) => __awaiter16(this, void 0, void 0, function* () {
|
|
326907
326548
|
return validateAndTransformExtendedObject20({
|
|
326908
|
-
extensionKeys: yield
|
|
326549
|
+
extensionKeys: yield extension4._getRawProperties(),
|
|
326909
326550
|
value: raw,
|
|
326910
326551
|
transformBase: (rawBase) => schema2.parse(rawBase, opts),
|
|
326911
|
-
transformExtension: (rawExtension) =>
|
|
326552
|
+
transformExtension: (rawExtension) => extension4.parse(rawExtension, opts)
|
|
326912
326553
|
});
|
|
326913
326554
|
}),
|
|
326914
326555
|
json: (parsed, opts) => __awaiter16(this, void 0, void 0, function* () {
|
|
326915
326556
|
return validateAndTransformExtendedObject20({
|
|
326916
|
-
extensionKeys: yield
|
|
326557
|
+
extensionKeys: yield extension4._getParsedProperties(),
|
|
326917
326558
|
value: parsed,
|
|
326918
326559
|
transformBase: (parsedBase) => schema2.json(parsedBase, opts),
|
|
326919
|
-
transformExtension: (parsedExtension) =>
|
|
326560
|
+
transformExtension: (parsedExtension) => extension4.json(parsedExtension, opts)
|
|
326920
326561
|
});
|
|
326921
326562
|
}),
|
|
326922
326563
|
getType: () => Schema_1.SchemaType.OBJECT
|
|
@@ -348667,25 +348308,25 @@ var require_object7 = __commonJS({
|
|
|
348667
348308
|
}
|
|
348668
348309
|
function getObjectUtils20(schema2) {
|
|
348669
348310
|
return {
|
|
348670
|
-
extend: (
|
|
348311
|
+
extend: (extension4) => {
|
|
348671
348312
|
const baseSchema = {
|
|
348672
|
-
_getParsedProperties: () => [...schema2._getParsedProperties(), ...
|
|
348673
|
-
_getRawProperties: () => [...schema2._getRawProperties(), ...
|
|
348313
|
+
_getParsedProperties: () => [...schema2._getParsedProperties(), ...extension4._getParsedProperties()],
|
|
348314
|
+
_getRawProperties: () => [...schema2._getRawProperties(), ...extension4._getRawProperties()],
|
|
348674
348315
|
parse: (raw, opts) => {
|
|
348675
348316
|
return validateAndTransformExtendedObject20({
|
|
348676
|
-
extensionKeys:
|
|
348317
|
+
extensionKeys: extension4._getRawProperties(),
|
|
348677
348318
|
value: raw,
|
|
348678
348319
|
transformBase: (rawBase) => schema2.parse(rawBase, opts),
|
|
348679
|
-
transformExtension: (rawExtension) =>
|
|
348320
|
+
transformExtension: (rawExtension) => extension4.parse(rawExtension, opts),
|
|
348680
348321
|
breadcrumbsPrefix: opts?.breadcrumbsPrefix
|
|
348681
348322
|
});
|
|
348682
348323
|
},
|
|
348683
348324
|
json: (parsed, opts) => {
|
|
348684
348325
|
return validateAndTransformExtendedObject20({
|
|
348685
|
-
extensionKeys:
|
|
348326
|
+
extensionKeys: extension4._getParsedProperties(),
|
|
348686
348327
|
value: parsed,
|
|
348687
348328
|
transformBase: (parsedBase) => schema2.json(parsedBase, opts),
|
|
348688
|
-
transformExtension: (parsedExtension) =>
|
|
348329
|
+
transformExtension: (parsedExtension) => extension4.json(parsedExtension, opts),
|
|
348689
348330
|
breadcrumbsPrefix: opts?.breadcrumbsPrefix
|
|
348690
348331
|
});
|
|
348691
348332
|
},
|
|
@@ -359329,9 +358970,9 @@ var require_cjs6 = __commonJS({
|
|
|
359329
358970
|
return /^(--no)?-{1,2}[\dlsqvnobucj]+(\s|$)/.test(cleaned);
|
|
359330
358971
|
}
|
|
359331
358972
|
function preventConfigBuilder2(config5, setting, message = String(config5)) {
|
|
359332
|
-
const
|
|
358973
|
+
const regex5 = typeof config5 === "string" ? new RegExp(`\\s*${config5}`, "i") : config5;
|
|
359333
358974
|
return function preventCommand(options2, arg, next2) {
|
|
359334
|
-
if (options2[setting] !== true && isConfigSwitch2(arg) &&
|
|
358975
|
+
if (options2[setting] !== true && isConfigSwitch2(arg) && regex5.test(next2)) {
|
|
359335
358976
|
throw new GitPluginError2(
|
|
359336
358977
|
void 0,
|
|
359337
358978
|
"unsafe",
|
|
@@ -375462,15 +375103,15 @@ var init_ElementHandle = __esm({
|
|
|
375462
375103
|
"border",
|
|
375463
375104
|
"margin"
|
|
375464
375105
|
]) {
|
|
375465
|
-
for (const
|
|
375466
|
-
|
|
375467
|
-
|
|
375106
|
+
for (const point5 of model[attribute3]) {
|
|
375107
|
+
point5.x += offset2.x;
|
|
375108
|
+
point5.y += offset2.y;
|
|
375468
375109
|
}
|
|
375469
375110
|
}
|
|
375470
375111
|
return model;
|
|
375471
375112
|
}
|
|
375472
375113
|
async #getTopLeftCornerOfFrame() {
|
|
375473
|
-
const
|
|
375114
|
+
const point5 = { x: 0, y: 0 };
|
|
375474
375115
|
let frame = this.frame;
|
|
375475
375116
|
let parentFrame;
|
|
375476
375117
|
while (parentFrame = frame?.parentFrame()) {
|
|
@@ -375494,8 +375135,8 @@ var init_ElementHandle = __esm({
|
|
|
375494
375135
|
if (!parentBox) {
|
|
375495
375136
|
return null;
|
|
375496
375137
|
}
|
|
375497
|
-
|
|
375498
|
-
|
|
375138
|
+
point5.x += parentBox.left;
|
|
375139
|
+
point5.y += parentBox.top;
|
|
375499
375140
|
frame = parentFrame;
|
|
375500
375141
|
} catch (e_4) {
|
|
375501
375142
|
env_4.error = e_4;
|
|
@@ -375504,7 +375145,7 @@ var init_ElementHandle = __esm({
|
|
|
375504
375145
|
__disposeResources6(env_4);
|
|
375505
375146
|
}
|
|
375506
375147
|
}
|
|
375507
|
-
return
|
|
375148
|
+
return point5;
|
|
375508
375149
|
}
|
|
375509
375150
|
async screenshot(options2 = {}) {
|
|
375510
375151
|
const { scrollIntoView = true, clip } = options2;
|
|
@@ -378087,8 +377728,8 @@ var init_Page = __esm({
|
|
|
378087
377728
|
};
|
|
378088
377729
|
if (options2.type === void 0 && options2.path !== void 0) {
|
|
378089
377730
|
const filePath = options2.path;
|
|
378090
|
-
const
|
|
378091
|
-
switch (
|
|
377731
|
+
const extension4 = filePath.slice(filePath.lastIndexOf(".") + 1).toLowerCase();
|
|
377732
|
+
switch (extension4) {
|
|
378092
377733
|
case "png":
|
|
378093
377734
|
options2.type = "png";
|
|
378094
377735
|
break;
|
|
@@ -379690,18 +379331,18 @@ function convertToDisjointRanges(nestedRanges) {
|
|
|
379690
379331
|
const hitCountStack = [];
|
|
379691
379332
|
const results = [];
|
|
379692
379333
|
let lastOffset = 0;
|
|
379693
|
-
for (const
|
|
379694
|
-
if (hitCountStack.length && lastOffset <
|
|
379334
|
+
for (const point5 of points) {
|
|
379335
|
+
if (hitCountStack.length && lastOffset < point5.offset && hitCountStack[hitCountStack.length - 1] > 0) {
|
|
379695
379336
|
const lastResult = results[results.length - 1];
|
|
379696
379337
|
if (lastResult && lastResult.end === lastOffset) {
|
|
379697
|
-
lastResult.end =
|
|
379338
|
+
lastResult.end = point5.offset;
|
|
379698
379339
|
} else {
|
|
379699
|
-
results.push({ start: lastOffset, end:
|
|
379340
|
+
results.push({ start: lastOffset, end: point5.offset });
|
|
379700
379341
|
}
|
|
379701
379342
|
}
|
|
379702
|
-
lastOffset =
|
|
379703
|
-
if (
|
|
379704
|
-
hitCountStack.push(
|
|
379343
|
+
lastOffset = point5.offset;
|
|
379344
|
+
if (point5.type === 0) {
|
|
379345
|
+
hitCountStack.push(point5.range.count);
|
|
379705
379346
|
} else {
|
|
379706
379347
|
hitCountStack.pop();
|
|
379707
379348
|
}
|
|
@@ -399050,10 +398691,10 @@ var init_Browser2 = __esm({
|
|
|
399050
398691
|
return this.#createUserContext(userContext);
|
|
399051
398692
|
}
|
|
399052
398693
|
async installExtension(path97) {
|
|
399053
|
-
const { result: { extension:
|
|
398694
|
+
const { result: { extension: extension4 } } = await this.session.send("webExtension.install", {
|
|
399054
398695
|
extensionData: { type: "path", path: path97 }
|
|
399055
398696
|
});
|
|
399056
|
-
return
|
|
398697
|
+
return extension4;
|
|
399057
398698
|
}
|
|
399058
398699
|
async uninstallExtension(id2) {
|
|
399059
398700
|
await this.session.send("webExtension.uninstall", { extension: id2 });
|
|
@@ -410330,7 +409971,7 @@ var require_escodegen = __commonJS({
|
|
|
410330
409971
|
return target;
|
|
410331
409972
|
}
|
|
410332
409973
|
function generateNumber(value) {
|
|
410333
|
-
var result,
|
|
409974
|
+
var result, point5, temp, exponent, pos;
|
|
410334
409975
|
if (value !== value) {
|
|
410335
409976
|
throw new Error("Numeric literal whose value is NaN");
|
|
410336
409977
|
}
|
|
@@ -410344,9 +409985,9 @@ var require_escodegen = __commonJS({
|
|
|
410344
409985
|
if (!renumber || result.length < 3) {
|
|
410345
409986
|
return result;
|
|
410346
409987
|
}
|
|
410347
|
-
|
|
410348
|
-
if (!json3 && result.charCodeAt(0) === 48 &&
|
|
410349
|
-
|
|
409988
|
+
point5 = result.indexOf(".");
|
|
409989
|
+
if (!json3 && result.charCodeAt(0) === 48 && point5 === 1) {
|
|
409990
|
+
point5 = 0;
|
|
410350
409991
|
result = result.slice(1);
|
|
410351
409992
|
}
|
|
410352
409993
|
temp = result;
|
|
@@ -410356,9 +409997,9 @@ var require_escodegen = __commonJS({
|
|
|
410356
409997
|
exponent = +temp.slice(pos + 1);
|
|
410357
409998
|
temp = temp.slice(0, pos);
|
|
410358
409999
|
}
|
|
410359
|
-
if (
|
|
410360
|
-
exponent -= temp.length -
|
|
410361
|
-
temp = +(temp.slice(0,
|
|
410000
|
+
if (point5 >= 0) {
|
|
410001
|
+
exponent -= temp.length - point5 - 1;
|
|
410002
|
+
temp = +(temp.slice(0, point5) + temp.slice(point5 + 1)) + "";
|
|
410362
410003
|
}
|
|
410363
410004
|
pos = 0;
|
|
410364
410005
|
while (temp.charCodeAt(temp.length + pos - 1) === 48) {
|
|
@@ -418368,30 +418009,30 @@ var require_esprima = __commonJS({
|
|
|
418368
418009
|
};
|
|
418369
418010
|
Reader2.prototype.isRegexStart = function() {
|
|
418370
418011
|
var previous4 = this.values[this.values.length - 1];
|
|
418371
|
-
var
|
|
418012
|
+
var regex5 = previous4 !== null;
|
|
418372
418013
|
switch (previous4) {
|
|
418373
418014
|
case "this":
|
|
418374
418015
|
case "]":
|
|
418375
|
-
|
|
418016
|
+
regex5 = false;
|
|
418376
418017
|
break;
|
|
418377
418018
|
case ")":
|
|
418378
418019
|
var keyword = this.values[this.paren - 1];
|
|
418379
|
-
|
|
418020
|
+
regex5 = keyword === "if" || keyword === "while" || keyword === "for" || keyword === "with";
|
|
418380
418021
|
break;
|
|
418381
418022
|
case "}":
|
|
418382
|
-
|
|
418023
|
+
regex5 = false;
|
|
418383
418024
|
if (this.values[this.curly - 3] === "function") {
|
|
418384
418025
|
var check3 = this.values[this.curly - 4];
|
|
418385
|
-
|
|
418026
|
+
regex5 = check3 ? !this.beforeFunctionExpression(check3) : false;
|
|
418386
418027
|
} else if (this.values[this.curly - 4] === "function") {
|
|
418387
418028
|
var check3 = this.values[this.curly - 5];
|
|
418388
|
-
|
|
418029
|
+
regex5 = check3 ? !this.beforeFunctionExpression(check3) : true;
|
|
418389
418030
|
}
|
|
418390
418031
|
break;
|
|
418391
418032
|
default:
|
|
418392
418033
|
break;
|
|
418393
418034
|
}
|
|
418394
|
-
return
|
|
418035
|
+
return regex5;
|
|
418395
418036
|
};
|
|
418396
418037
|
Reader2.prototype.push = function(token) {
|
|
418397
418038
|
if (token.type === 7 || token.type === 4) {
|
|
@@ -427865,7 +427506,7 @@ Error cause: ${isErrorLike2(error50) ? error50.stack : error50}`);
|
|
|
427865
427506
|
getRecentLogs() {
|
|
427866
427507
|
return [...this.#logs];
|
|
427867
427508
|
}
|
|
427868
|
-
waitForLineOutput(
|
|
427509
|
+
waitForLineOutput(regex5, timeout4 = 0) {
|
|
427869
427510
|
return new Promise((resolve13, reject) => {
|
|
427870
427511
|
const onClose = (errorOrCode) => {
|
|
427871
427512
|
cleanup();
|
|
@@ -427897,7 +427538,7 @@ Error cause: ${isErrorLike2(error50) ? error50.stack : error50}`);
|
|
|
427897
427538
|
onLine(line);
|
|
427898
427539
|
}
|
|
427899
427540
|
function onLine(line) {
|
|
427900
|
-
const match3 = line.match(
|
|
427541
|
+
const match3 = line.match(regex5);
|
|
427901
427542
|
if (!match3) {
|
|
427902
427543
|
return;
|
|
427903
427544
|
}
|
|
@@ -430735,7 +430376,7 @@ var require_tar_fs = __commonJS({
|
|
|
430735
430376
|
const xfs = opts.fs || fs27;
|
|
430736
430377
|
const ignore4 = opts.ignore || opts.filter || noop12;
|
|
430737
430378
|
const mapStream = opts.mapStream || echo;
|
|
430738
|
-
const
|
|
430379
|
+
const own14 = opts.chown !== false && !win322 && processGetuid() === 0;
|
|
430739
430380
|
const extract2 = opts.extract || tar.extract();
|
|
430740
430381
|
const stack = [];
|
|
430741
430382
|
const now = /* @__PURE__ */ new Date();
|
|
@@ -430773,7 +430414,7 @@ var require_tar_fs = __commonJS({
|
|
|
430773
430414
|
stack.push([name2, header.mtime]);
|
|
430774
430415
|
return mkdirfix(name2, {
|
|
430775
430416
|
fs: xfs,
|
|
430776
|
-
own:
|
|
430417
|
+
own: own14,
|
|
430777
430418
|
uid: header.uid,
|
|
430778
430419
|
gid: header.gid,
|
|
430779
430420
|
mode: header.mode
|
|
@@ -430781,7 +430422,7 @@ var require_tar_fs = __commonJS({
|
|
|
430781
430422
|
}
|
|
430782
430423
|
mkdirfix(dir, {
|
|
430783
430424
|
fs: xfs,
|
|
430784
|
-
own:
|
|
430425
|
+
own: own14,
|
|
430785
430426
|
uid: header.uid,
|
|
430786
430427
|
gid: header.gid,
|
|
430787
430428
|
// normally, the folders with rights and owner should be part of the TAR file
|
|
@@ -430871,7 +430512,7 @@ var require_tar_fs = __commonJS({
|
|
|
430871
430512
|
const chown = link3 ? xfs.lchown : xfs.chown;
|
|
430872
430513
|
if (!chmod5) return cb2();
|
|
430873
430514
|
const mode = (header.mode | (header.type === "directory" ? dmode : fmode)) & umask;
|
|
430874
|
-
if (chown &&
|
|
430515
|
+
if (chown && own14) chown.call(xfs, name2, header.uid, header.gid, onchown);
|
|
430875
430516
|
else onchown(null);
|
|
430876
430517
|
function onchown(err) {
|
|
430877
430518
|
if (err) return cb2(err);
|
|
@@ -431634,8 +431275,8 @@ var init_CLI = __esm({
|
|
|
431634
431275
|
});
|
|
431635
431276
|
|
|
431636
431277
|
// ../../../node_modules/.pnpm/@puppeteer+browsers@2.13.0/node_modules/@puppeteer/browsers/lib/esm/provider.js
|
|
431637
|
-
function buildArchiveFilename(browser, platform3, buildId,
|
|
431638
|
-
return `${browser}-${platform3}-${buildId}.${
|
|
431278
|
+
function buildArchiveFilename(browser, platform3, buildId, extension4 = "zip") {
|
|
431279
|
+
return `${browser}-${platform3}-${buildId}.${extension4}`;
|
|
431639
431280
|
}
|
|
431640
431281
|
var init_provider = __esm({
|
|
431641
431282
|
"../../../node_modules/.pnpm/@puppeteer+browsers@2.13.0/node_modules/@puppeteer/browsers/lib/esm/provider.js"() {
|
|
@@ -432603,8 +432244,8 @@ var require_ExplorerBase = __commonJS({
|
|
|
432603
432244
|
#validateConfig() {
|
|
432604
432245
|
const config5 = this.config;
|
|
432605
432246
|
for (const place of config5.searchPlaces) {
|
|
432606
|
-
const
|
|
432607
|
-
const loader2 = this.config.loaders[
|
|
432247
|
+
const extension4 = path_1.default.extname(place);
|
|
432248
|
+
const loader2 = this.config.loaders[extension4 || "noExt"] ?? this.config.loaders["default"];
|
|
432608
432249
|
if (loader2 === void 0) {
|
|
432609
432250
|
throw new Error(`Missing loader for ${getExtensionDescription(place)}.`);
|
|
432610
432251
|
}
|
|
@@ -432682,8 +432323,8 @@ ${[...importStack, fullPath].map((path97, i11) => `${i11 + 1}. ${path97}`).join(
|
|
|
432682
432323
|
}
|
|
432683
432324
|
};
|
|
432684
432325
|
exports2.ExplorerBase = ExplorerBase;
|
|
432685
|
-
function getExtensionDescription(
|
|
432686
|
-
return
|
|
432326
|
+
function getExtensionDescription(extension4) {
|
|
432327
|
+
return extension4 ? `extension "${extension4}"` : "files without extensions";
|
|
432687
432328
|
}
|
|
432688
432329
|
exports2.getExtensionDescription = getExtensionDescription;
|
|
432689
432330
|
}
|
|
@@ -432825,14 +432466,14 @@ var require_Explorer = __commonJS({
|
|
|
432825
432466
|
if (contents.trim() === "") {
|
|
432826
432467
|
return;
|
|
432827
432468
|
}
|
|
432828
|
-
const
|
|
432829
|
-
const loader2 = this.config.loaders[
|
|
432469
|
+
const extension4 = path_1.default.extname(filepath);
|
|
432470
|
+
const loader2 = this.config.loaders[extension4 || "noExt"] ?? this.config.loaders["default"];
|
|
432830
432471
|
if (!loader2) {
|
|
432831
|
-
throw new Error(`No loader specified for ${(0, ExplorerBase_js_1.getExtensionDescription)(
|
|
432472
|
+
throw new Error(`No loader specified for ${(0, ExplorerBase_js_1.getExtensionDescription)(extension4)}`);
|
|
432832
432473
|
}
|
|
432833
432474
|
try {
|
|
432834
432475
|
const loadedContents = await loader2(filepath, contents);
|
|
432835
|
-
if (path_1.default.basename(filepath,
|
|
432476
|
+
if (path_1.default.basename(filepath, extension4) !== "package") {
|
|
432836
432477
|
return loadedContents;
|
|
432837
432478
|
}
|
|
432838
432479
|
return (0, util_js_1.getPropertyByPath)(loadedContents, this.config.packageProp ?? this.config.moduleName) ?? null;
|
|
@@ -432983,14 +432624,14 @@ var require_ExplorerSync = __commonJS({
|
|
|
432983
432624
|
if (contents.trim() === "") {
|
|
432984
432625
|
return;
|
|
432985
432626
|
}
|
|
432986
|
-
const
|
|
432987
|
-
const loader2 = this.config.loaders[
|
|
432627
|
+
const extension4 = path_1.default.extname(filepath);
|
|
432628
|
+
const loader2 = this.config.loaders[extension4 || "noExt"] ?? this.config.loaders["default"];
|
|
432988
432629
|
if (!loader2) {
|
|
432989
|
-
throw new Error(`No loader specified for ${(0, ExplorerBase_js_1.getExtensionDescription)(
|
|
432630
|
+
throw new Error(`No loader specified for ${(0, ExplorerBase_js_1.getExtensionDescription)(extension4)}`);
|
|
432990
432631
|
}
|
|
432991
432632
|
try {
|
|
432992
432633
|
const loadedContents = loader2(filepath, contents);
|
|
432993
|
-
if (path_1.default.basename(filepath,
|
|
432634
|
+
if (path_1.default.basename(filepath, extension4) !== "package") {
|
|
432994
432635
|
return loadedContents;
|
|
432995
432636
|
}
|
|
432996
432637
|
return (0, util_js_1.getPropertyByPath)(loadedContents, this.config.packageProp ?? this.config.moduleName) ?? null;
|
|
@@ -434386,7 +434027,7 @@ var require_wrap_ansi2 = __commonJS({
|
|
|
434386
434027
|
"../../../node_modules/.pnpm/wrap-ansi@7.0.0/node_modules/wrap-ansi/index.js"(exports2, module4) {
|
|
434387
434028
|
"use strict";
|
|
434388
434029
|
var stringWidth4 = require_string_width();
|
|
434389
|
-
var
|
|
434030
|
+
var stripAnsi5 = require_strip_ansi();
|
|
434390
434031
|
var ansiStyles3 = require_ansi_styles();
|
|
434391
434032
|
var ESCAPES2 = /* @__PURE__ */ new Set([
|
|
434392
434033
|
"\x1B",
|
|
@@ -434405,7 +434046,7 @@ var require_wrap_ansi2 = __commonJS({
|
|
|
434405
434046
|
const characters = [...word];
|
|
434406
434047
|
let isInsideEscape = false;
|
|
434407
434048
|
let isInsideLinkEscape = false;
|
|
434408
|
-
let visible = stringWidth4(
|
|
434049
|
+
let visible = stringWidth4(stripAnsi5(rows[rows.length - 1]));
|
|
434409
434050
|
for (const [index3, character] of characters.entries()) {
|
|
434410
434051
|
const characterLength = stringWidth4(character);
|
|
434411
434052
|
if (visible + characterLength <= columns) {
|
|
@@ -434799,12 +434440,12 @@ var require_build5 = __commonJS({
|
|
|
434799
434440
|
});
|
|
434800
434441
|
}
|
|
434801
434442
|
var stringWidth4 = require_string_width();
|
|
434802
|
-
var
|
|
434443
|
+
var stripAnsi5 = require_strip_ansi();
|
|
434803
434444
|
var wrap10 = require_wrap_ansi2();
|
|
434804
434445
|
function ui7(opts) {
|
|
434805
434446
|
return cliui2(opts, {
|
|
434806
434447
|
stringWidth: stringWidth4,
|
|
434807
|
-
stripAnsi:
|
|
434448
|
+
stripAnsi: stripAnsi5,
|
|
434808
434449
|
wrap: wrap10
|
|
434809
434450
|
});
|
|
434810
434451
|
}
|
|
@@ -440469,30 +440110,30 @@ var require_object9 = __commonJS({
|
|
|
440469
440110
|
}
|
|
440470
440111
|
function getObjectUtils20(schema2) {
|
|
440471
440112
|
return {
|
|
440472
|
-
extend: (
|
|
440113
|
+
extend: (extension4) => {
|
|
440473
440114
|
const baseSchema = {
|
|
440474
440115
|
_getParsedProperties: async () => [
|
|
440475
440116
|
...await schema2._getParsedProperties(),
|
|
440476
|
-
...await
|
|
440117
|
+
...await extension4._getParsedProperties()
|
|
440477
440118
|
],
|
|
440478
440119
|
_getRawProperties: async () => [
|
|
440479
440120
|
...await schema2._getRawProperties(),
|
|
440480
|
-
...await
|
|
440121
|
+
...await extension4._getRawProperties()
|
|
440481
440122
|
],
|
|
440482
440123
|
parse: async (raw, opts) => {
|
|
440483
440124
|
return validateAndTransformExtendedObject20({
|
|
440484
|
-
extensionKeys: await
|
|
440125
|
+
extensionKeys: await extension4._getRawProperties(),
|
|
440485
440126
|
value: raw,
|
|
440486
440127
|
transformBase: (rawBase) => schema2.parse(rawBase, opts),
|
|
440487
|
-
transformExtension: (rawExtension) =>
|
|
440128
|
+
transformExtension: (rawExtension) => extension4.parse(rawExtension, opts)
|
|
440488
440129
|
});
|
|
440489
440130
|
},
|
|
440490
440131
|
json: async (parsed, opts) => {
|
|
440491
440132
|
return validateAndTransformExtendedObject20({
|
|
440492
|
-
extensionKeys: await
|
|
440133
|
+
extensionKeys: await extension4._getParsedProperties(),
|
|
440493
440134
|
value: parsed,
|
|
440494
440135
|
transformBase: (parsedBase) => schema2.json(parsedBase, opts),
|
|
440495
|
-
transformExtension: (parsedExtension) =>
|
|
440136
|
+
transformExtension: (parsedExtension) => extension4.json(parsedExtension, opts)
|
|
440496
440137
|
});
|
|
440497
440138
|
},
|
|
440498
440139
|
getType: () => Schema_1.SchemaType.OBJECT
|
|
@@ -465568,25 +465209,25 @@ function validateAndTransformObject({ value, requiredKeys, requiredKeysSet, getP
|
|
|
465568
465209
|
}
|
|
465569
465210
|
function getObjectUtils(schema2) {
|
|
465570
465211
|
return {
|
|
465571
|
-
extend: (
|
|
465212
|
+
extend: (extension4) => {
|
|
465572
465213
|
const baseSchema = {
|
|
465573
|
-
_getParsedProperties: () => [...schema2._getParsedProperties(), ...
|
|
465574
|
-
_getRawProperties: () => [...schema2._getRawProperties(), ...
|
|
465214
|
+
_getParsedProperties: () => [...schema2._getParsedProperties(), ...extension4._getParsedProperties()],
|
|
465215
|
+
_getRawProperties: () => [...schema2._getRawProperties(), ...extension4._getRawProperties()],
|
|
465575
465216
|
parse: (raw, opts) => {
|
|
465576
465217
|
return validateAndTransformExtendedObject({
|
|
465577
|
-
extensionKeys:
|
|
465218
|
+
extensionKeys: extension4._getRawProperties(),
|
|
465578
465219
|
value: raw,
|
|
465579
465220
|
transformBase: (rawBase) => schema2.parse(rawBase, opts),
|
|
465580
|
-
transformExtension: (rawExtension) =>
|
|
465221
|
+
transformExtension: (rawExtension) => extension4.parse(rawExtension, opts),
|
|
465581
465222
|
breadcrumbsPrefix: opts?.breadcrumbsPrefix
|
|
465582
465223
|
});
|
|
465583
465224
|
},
|
|
465584
465225
|
json: (parsed, opts) => {
|
|
465585
465226
|
return validateAndTransformExtendedObject({
|
|
465586
|
-
extensionKeys:
|
|
465227
|
+
extensionKeys: extension4._getParsedProperties(),
|
|
465587
465228
|
value: parsed,
|
|
465588
465229
|
transformBase: (parsedBase) => schema2.json(parsedBase, opts),
|
|
465589
|
-
transformExtension: (parsedExtension) =>
|
|
465230
|
+
transformExtension: (parsedExtension) => extension4.json(parsedExtension, opts),
|
|
465590
465231
|
breadcrumbsPrefix: opts?.breadcrumbsPrefix
|
|
465591
465232
|
});
|
|
465592
465233
|
},
|
|
@@ -473470,25 +473111,25 @@ function validateAndTransformObject2({ value, requiredKeys, requiredKeysSet, get
|
|
|
473470
473111
|
}
|
|
473471
473112
|
function getObjectUtils2(schema2) {
|
|
473472
473113
|
return {
|
|
473473
|
-
extend: (
|
|
473114
|
+
extend: (extension4) => {
|
|
473474
473115
|
const baseSchema = {
|
|
473475
|
-
_getParsedProperties: () => [...schema2._getParsedProperties(), ...
|
|
473476
|
-
_getRawProperties: () => [...schema2._getRawProperties(), ...
|
|
473116
|
+
_getParsedProperties: () => [...schema2._getParsedProperties(), ...extension4._getParsedProperties()],
|
|
473117
|
+
_getRawProperties: () => [...schema2._getRawProperties(), ...extension4._getRawProperties()],
|
|
473477
473118
|
parse: (raw, opts) => {
|
|
473478
473119
|
return validateAndTransformExtendedObject2({
|
|
473479
|
-
extensionKeys:
|
|
473120
|
+
extensionKeys: extension4._getRawProperties(),
|
|
473480
473121
|
value: raw,
|
|
473481
473122
|
transformBase: (rawBase) => schema2.parse(rawBase, opts),
|
|
473482
|
-
transformExtension: (rawExtension) =>
|
|
473123
|
+
transformExtension: (rawExtension) => extension4.parse(rawExtension, opts),
|
|
473483
473124
|
breadcrumbsPrefix: opts?.breadcrumbsPrefix
|
|
473484
473125
|
});
|
|
473485
473126
|
},
|
|
473486
473127
|
json: (parsed, opts) => {
|
|
473487
473128
|
return validateAndTransformExtendedObject2({
|
|
473488
|
-
extensionKeys:
|
|
473129
|
+
extensionKeys: extension4._getParsedProperties(),
|
|
473489
473130
|
value: parsed,
|
|
473490
473131
|
transformBase: (parsedBase) => schema2.json(parsedBase, opts),
|
|
473491
|
-
transformExtension: (parsedExtension) =>
|
|
473132
|
+
transformExtension: (parsedExtension) => extension4.json(parsedExtension, opts),
|
|
473492
473133
|
breadcrumbsPrefix: opts?.breadcrumbsPrefix
|
|
473493
473134
|
});
|
|
473494
473135
|
},
|
|
@@ -483869,8 +483510,8 @@ var dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][
|
|
|
483869
483510
|
var date3 = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
483870
483511
|
function timeSource(args) {
|
|
483871
483512
|
const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
|
|
483872
|
-
const
|
|
483873
|
-
return
|
|
483513
|
+
const regex5 = typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
483514
|
+
return regex5;
|
|
483874
483515
|
}
|
|
483875
483516
|
function time(args) {
|
|
483876
483517
|
return new RegExp(`^${timeSource(args)}$`);
|
|
@@ -483886,8 +483527,8 @@ function datetime(args) {
|
|
|
483886
483527
|
return new RegExp(`^${dateSource}T(?:${timeRegex2})$`);
|
|
483887
483528
|
}
|
|
483888
483529
|
var string3 = (params2) => {
|
|
483889
|
-
const
|
|
483890
|
-
return new RegExp(`^${
|
|
483530
|
+
const regex5 = params2 ? `[\\s\\S]{${params2?.minimum ?? 0},${params2?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
483531
|
+
return new RegExp(`^${regex5}$`);
|
|
483891
483532
|
};
|
|
483892
483533
|
var bigint3 = /^-?\d+n?$/;
|
|
483893
483534
|
var integer = /^-?\d+$/;
|
|
@@ -493533,9 +493174,9 @@ var stringProcessor = (schema2, ctx, _json, _params) => {
|
|
|
493533
493174
|
json3.pattern = regexes[0].source;
|
|
493534
493175
|
else if (regexes.length > 1) {
|
|
493535
493176
|
json3.allOf = [
|
|
493536
|
-
...regexes.map((
|
|
493177
|
+
...regexes.map((regex5) => ({
|
|
493537
493178
|
...ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0" ? { type: "string" } : {},
|
|
493538
|
-
pattern:
|
|
493179
|
+
pattern: regex5.source
|
|
493539
493180
|
}))
|
|
493540
493181
|
];
|
|
493541
493182
|
}
|
|
@@ -494745,10 +494386,10 @@ function hex2(_params) {
|
|
|
494745
494386
|
function hash(alg, params2) {
|
|
494746
494387
|
const enc = params2?.enc ?? "hex";
|
|
494747
494388
|
const format3 = `${alg}_${enc}`;
|
|
494748
|
-
const
|
|
494749
|
-
if (!
|
|
494389
|
+
const regex5 = regexes_exports[format3];
|
|
494390
|
+
if (!regex5)
|
|
494750
494391
|
throw new Error(`Unrecognized hash format: ${format3}`);
|
|
494751
|
-
return _stringFormat(ZodCustomStringFormat, format3,
|
|
494392
|
+
return _stringFormat(ZodCustomStringFormat, format3, regex5, params2);
|
|
494752
494393
|
}
|
|
494753
494394
|
var ZodNumber = /* @__PURE__ */ $constructor("ZodNumber", (inst, def) => {
|
|
494754
494395
|
$ZodNumber.init(inst, def);
|
|
@@ -498524,25 +498165,25 @@ function validateAndTransformObject3({ value, requiredKeys, requiredKeysSet, get
|
|
|
498524
498165
|
}
|
|
498525
498166
|
function getObjectUtils3(schema2) {
|
|
498526
498167
|
return {
|
|
498527
|
-
extend: (
|
|
498168
|
+
extend: (extension4) => {
|
|
498528
498169
|
const baseSchema = {
|
|
498529
|
-
_getParsedProperties: () => [...schema2._getParsedProperties(), ...
|
|
498530
|
-
_getRawProperties: () => [...schema2._getRawProperties(), ...
|
|
498170
|
+
_getParsedProperties: () => [...schema2._getParsedProperties(), ...extension4._getParsedProperties()],
|
|
498171
|
+
_getRawProperties: () => [...schema2._getRawProperties(), ...extension4._getRawProperties()],
|
|
498531
498172
|
parse: (raw, opts) => {
|
|
498532
498173
|
return validateAndTransformExtendedObject3({
|
|
498533
|
-
extensionKeys:
|
|
498174
|
+
extensionKeys: extension4._getRawProperties(),
|
|
498534
498175
|
value: raw,
|
|
498535
498176
|
transformBase: (rawBase) => schema2.parse(rawBase, opts),
|
|
498536
|
-
transformExtension: (rawExtension) =>
|
|
498177
|
+
transformExtension: (rawExtension) => extension4.parse(rawExtension, opts),
|
|
498537
498178
|
breadcrumbsPrefix: opts?.breadcrumbsPrefix
|
|
498538
498179
|
});
|
|
498539
498180
|
},
|
|
498540
498181
|
json: (parsed, opts) => {
|
|
498541
498182
|
return validateAndTransformExtendedObject3({
|
|
498542
|
-
extensionKeys:
|
|
498183
|
+
extensionKeys: extension4._getParsedProperties(),
|
|
498543
498184
|
value: parsed,
|
|
498544
498185
|
transformBase: (parsedBase) => schema2.json(parsedBase, opts),
|
|
498545
|
-
transformExtension: (parsedExtension) =>
|
|
498186
|
+
transformExtension: (parsedExtension) => extension4.json(parsedExtension, opts),
|
|
498546
498187
|
breadcrumbsPrefix: opts?.breadcrumbsPrefix
|
|
498547
498188
|
});
|
|
498548
498189
|
},
|
|
@@ -501349,25 +500990,25 @@ function validateAndTransformObject4({ value, requiredKeys, requiredKeysSet, get
|
|
|
501349
500990
|
}
|
|
501350
500991
|
function getObjectUtils4(schema2) {
|
|
501351
500992
|
return {
|
|
501352
|
-
extend: (
|
|
500993
|
+
extend: (extension4) => {
|
|
501353
500994
|
const baseSchema = {
|
|
501354
|
-
_getParsedProperties: () => [...schema2._getParsedProperties(), ...
|
|
501355
|
-
_getRawProperties: () => [...schema2._getRawProperties(), ...
|
|
500995
|
+
_getParsedProperties: () => [...schema2._getParsedProperties(), ...extension4._getParsedProperties()],
|
|
500996
|
+
_getRawProperties: () => [...schema2._getRawProperties(), ...extension4._getRawProperties()],
|
|
501356
500997
|
parse: (raw, opts) => {
|
|
501357
500998
|
return validateAndTransformExtendedObject4({
|
|
501358
|
-
extensionKeys:
|
|
500999
|
+
extensionKeys: extension4._getRawProperties(),
|
|
501359
501000
|
value: raw,
|
|
501360
501001
|
transformBase: (rawBase) => schema2.parse(rawBase, opts),
|
|
501361
|
-
transformExtension: (rawExtension) =>
|
|
501002
|
+
transformExtension: (rawExtension) => extension4.parse(rawExtension, opts),
|
|
501362
501003
|
breadcrumbsPrefix: opts?.breadcrumbsPrefix
|
|
501363
501004
|
});
|
|
501364
501005
|
},
|
|
501365
501006
|
json: (parsed, opts) => {
|
|
501366
501007
|
return validateAndTransformExtendedObject4({
|
|
501367
|
-
extensionKeys:
|
|
501008
|
+
extensionKeys: extension4._getParsedProperties(),
|
|
501368
501009
|
value: parsed,
|
|
501369
501010
|
transformBase: (parsedBase) => schema2.json(parsedBase, opts),
|
|
501370
|
-
transformExtension: (parsedExtension) =>
|
|
501011
|
+
transformExtension: (parsedExtension) => extension4.json(parsedExtension, opts),
|
|
501371
501012
|
breadcrumbsPrefix: opts?.breadcrumbsPrefix
|
|
501372
501013
|
});
|
|
501373
501014
|
},
|
|
@@ -506171,25 +505812,25 @@ function validateAndTransformObject5({ value, requiredKeys, requiredKeysSet, get
|
|
|
506171
505812
|
}
|
|
506172
505813
|
function getObjectUtils5(schema2) {
|
|
506173
505814
|
return {
|
|
506174
|
-
extend: (
|
|
505815
|
+
extend: (extension4) => {
|
|
506175
505816
|
const baseSchema = {
|
|
506176
|
-
_getParsedProperties: () => [...schema2._getParsedProperties(), ...
|
|
506177
|
-
_getRawProperties: () => [...schema2._getRawProperties(), ...
|
|
505817
|
+
_getParsedProperties: () => [...schema2._getParsedProperties(), ...extension4._getParsedProperties()],
|
|
505818
|
+
_getRawProperties: () => [...schema2._getRawProperties(), ...extension4._getRawProperties()],
|
|
506178
505819
|
parse: (raw, opts) => {
|
|
506179
505820
|
return validateAndTransformExtendedObject5({
|
|
506180
|
-
extensionKeys:
|
|
505821
|
+
extensionKeys: extension4._getRawProperties(),
|
|
506181
505822
|
value: raw,
|
|
506182
505823
|
transformBase: (rawBase) => schema2.parse(rawBase, opts),
|
|
506183
|
-
transformExtension: (rawExtension) =>
|
|
505824
|
+
transformExtension: (rawExtension) => extension4.parse(rawExtension, opts),
|
|
506184
505825
|
breadcrumbsPrefix: opts?.breadcrumbsPrefix
|
|
506185
505826
|
});
|
|
506186
505827
|
},
|
|
506187
505828
|
json: (parsed, opts) => {
|
|
506188
505829
|
return validateAndTransformExtendedObject5({
|
|
506189
|
-
extensionKeys:
|
|
505830
|
+
extensionKeys: extension4._getParsedProperties(),
|
|
506190
505831
|
value: parsed,
|
|
506191
505832
|
transformBase: (parsedBase) => schema2.json(parsedBase, opts),
|
|
506192
|
-
transformExtension: (parsedExtension) =>
|
|
505833
|
+
transformExtension: (parsedExtension) => extension4.json(parsedExtension, opts),
|
|
506193
505834
|
breadcrumbsPrefix: opts?.breadcrumbsPrefix
|
|
506194
505835
|
});
|
|
506195
505836
|
},
|
|
@@ -518126,25 +517767,25 @@ init_lodash();
|
|
|
518126
517767
|
|
|
518127
517768
|
// ../api-importers/openapi/openapi-ir-parser/lib/getExtension.js
|
|
518128
517769
|
init_lodash();
|
|
518129
|
-
function getExtension(object21,
|
|
518130
|
-
const extensions2 = Array.isArray(
|
|
518131
|
-
for (const
|
|
518132
|
-
const extensionValue = object21[
|
|
517770
|
+
function getExtension(object21, extension4) {
|
|
517771
|
+
const extensions2 = Array.isArray(extension4) ? extension4 : [extension4];
|
|
517772
|
+
for (const extension5 of extensions2) {
|
|
517773
|
+
const extensionValue = object21[extension5];
|
|
518133
517774
|
if (extensionValue != null) {
|
|
518134
517775
|
return extensionValue;
|
|
518135
517776
|
}
|
|
518136
517777
|
}
|
|
518137
517778
|
return void 0;
|
|
518138
517779
|
}
|
|
518139
|
-
function getExtensionAndValidate(object21,
|
|
517780
|
+
function getExtensionAndValidate(object21, extension4, schema2, logger4, breadcrumbs = []) {
|
|
518140
517781
|
try {
|
|
518141
|
-
const extensionValue = getExtension(object21,
|
|
517782
|
+
const extensionValue = getExtension(object21, extension4);
|
|
518142
517783
|
if (extensionValue != null) {
|
|
518143
517784
|
return schema2.parse(extensionValue);
|
|
518144
517785
|
}
|
|
518145
517786
|
} catch (e6) {
|
|
518146
517787
|
const breadcrumb = compact_default(breadcrumbs).join(" -> ");
|
|
518147
|
-
logger4.error(`${breadcrumb.length > 0 ? `${breadcrumb}: ` : ""}Failed to parse ${
|
|
517788
|
+
logger4.error(`${breadcrumb.length > 0 ? `${breadcrumb}: ` : ""}Failed to parse ${extension4}`);
|
|
518148
517789
|
}
|
|
518149
517790
|
return void 0;
|
|
518150
517791
|
}
|
|
@@ -526792,13 +526433,13 @@ function timeRegex(args) {
|
|
|
526792
526433
|
return new RegExp(`^${timeRegexSource(args)}$`);
|
|
526793
526434
|
}
|
|
526794
526435
|
function datetimeRegex(args) {
|
|
526795
|
-
let
|
|
526436
|
+
let regex5 = `${dateRegexSource}T${timeRegexSource(args)}`;
|
|
526796
526437
|
const opts = [];
|
|
526797
526438
|
opts.push(args.local ? `Z?` : `Z`);
|
|
526798
526439
|
if (args.offset)
|
|
526799
526440
|
opts.push(`([+-]\\d{2}:?\\d{2})`);
|
|
526800
|
-
|
|
526801
|
-
return new RegExp(`^${
|
|
526441
|
+
regex5 = `${regex5}(${opts.join("|")})`;
|
|
526442
|
+
return new RegExp(`^${regex5}$`);
|
|
526802
526443
|
}
|
|
526803
526444
|
function isValidIP(ip4, version7) {
|
|
526804
526445
|
if ((version7 === "v4" || !version7) && ipv4Regex.test(ip4)) {
|
|
@@ -527044,8 +526685,8 @@ var ZodString2 = class _ZodString2 extends ZodType2 {
|
|
|
527044
526685
|
status.dirty();
|
|
527045
526686
|
}
|
|
527046
526687
|
} else if (check3.kind === "datetime") {
|
|
527047
|
-
const
|
|
527048
|
-
if (!
|
|
526688
|
+
const regex5 = datetimeRegex(check3);
|
|
526689
|
+
if (!regex5.test(input3.data)) {
|
|
527049
526690
|
ctx = this._getOrReturnCtx(input3, ctx);
|
|
527050
526691
|
addIssueToContext(ctx, {
|
|
527051
526692
|
code: ZodIssueCode2.invalid_string,
|
|
@@ -527055,8 +526696,8 @@ var ZodString2 = class _ZodString2 extends ZodType2 {
|
|
|
527055
526696
|
status.dirty();
|
|
527056
526697
|
}
|
|
527057
526698
|
} else if (check3.kind === "date") {
|
|
527058
|
-
const
|
|
527059
|
-
if (!
|
|
526699
|
+
const regex5 = dateRegex;
|
|
526700
|
+
if (!regex5.test(input3.data)) {
|
|
527060
526701
|
ctx = this._getOrReturnCtx(input3, ctx);
|
|
527061
526702
|
addIssueToContext(ctx, {
|
|
527062
526703
|
code: ZodIssueCode2.invalid_string,
|
|
@@ -527066,8 +526707,8 @@ var ZodString2 = class _ZodString2 extends ZodType2 {
|
|
|
527066
526707
|
status.dirty();
|
|
527067
526708
|
}
|
|
527068
526709
|
} else if (check3.kind === "time") {
|
|
527069
|
-
const
|
|
527070
|
-
if (!
|
|
526710
|
+
const regex5 = timeRegex(check3);
|
|
526711
|
+
if (!regex5.test(input3.data)) {
|
|
527071
526712
|
ctx = this._getOrReturnCtx(input3, ctx);
|
|
527072
526713
|
addIssueToContext(ctx, {
|
|
527073
526714
|
code: ZodIssueCode2.invalid_string,
|
|
@@ -527142,8 +526783,8 @@ var ZodString2 = class _ZodString2 extends ZodType2 {
|
|
|
527142
526783
|
}
|
|
527143
526784
|
return { status: status.value, value: input3.data };
|
|
527144
526785
|
}
|
|
527145
|
-
_regex(
|
|
527146
|
-
return this.refinement((data2) =>
|
|
526786
|
+
_regex(regex5, validation2, message) {
|
|
526787
|
+
return this.refinement((data2) => regex5.test(data2), {
|
|
527147
526788
|
validation: validation2,
|
|
527148
526789
|
code: ZodIssueCode2.invalid_string,
|
|
527149
526790
|
...errorUtil.errToObj(message)
|
|
@@ -527235,10 +526876,10 @@ var ZodString2 = class _ZodString2 extends ZodType2 {
|
|
|
527235
526876
|
duration(message) {
|
|
527236
526877
|
return this._addCheck({ kind: "duration", ...errorUtil.errToObj(message) });
|
|
527237
526878
|
}
|
|
527238
|
-
regex(
|
|
526879
|
+
regex(regex5, message) {
|
|
527239
526880
|
return this._addCheck({
|
|
527240
526881
|
kind: "regex",
|
|
527241
|
-
regex:
|
|
526882
|
+
regex: regex5,
|
|
527242
526883
|
...errorUtil.errToObj(message)
|
|
527243
526884
|
});
|
|
527244
526885
|
}
|
|
@@ -531562,48 +531203,48 @@ function convertAsymmetricAlgorithm2(algorithm) {
|
|
|
531562
531203
|
return finalIr_exports.AsymmetricAlgorithm.Ed25519;
|
|
531563
531204
|
}
|
|
531564
531205
|
}
|
|
531565
|
-
function convertSignatureSchema(
|
|
531566
|
-
if (
|
|
531206
|
+
function convertSignatureSchema(extension4) {
|
|
531207
|
+
if (extension4.type === "hmac") {
|
|
531567
531208
|
return finalIr_exports.WebhookSignatureVerification.hmac({
|
|
531568
|
-
header:
|
|
531569
|
-
algorithm: convertAlgorithm(
|
|
531570
|
-
encoding: convertEncoding2(
|
|
531571
|
-
signaturePrefix:
|
|
531572
|
-
payloadFormat: convertPayloadFormat2(
|
|
531573
|
-
timestamp: convertTimestamp2(
|
|
531209
|
+
header: extension4.header,
|
|
531210
|
+
algorithm: convertAlgorithm(extension4.algorithm),
|
|
531211
|
+
encoding: convertEncoding2(extension4.encoding),
|
|
531212
|
+
signaturePrefix: extension4["signature-prefix"],
|
|
531213
|
+
payloadFormat: convertPayloadFormat2(extension4["payload-format"]),
|
|
531214
|
+
timestamp: convertTimestamp2(extension4.timestamp)
|
|
531574
531215
|
});
|
|
531575
531216
|
}
|
|
531576
|
-
if (
|
|
531577
|
-
const asymmetricAlgorithm = convertAsymmetricAlgorithm2(
|
|
531217
|
+
if (extension4.type === "asymmetric") {
|
|
531218
|
+
const asymmetricAlgorithm = convertAsymmetricAlgorithm2(extension4["asymmetric-algorithm"]);
|
|
531578
531219
|
if (asymmetricAlgorithm == null) {
|
|
531579
531220
|
return void 0;
|
|
531580
531221
|
}
|
|
531581
531222
|
return finalIr_exports.WebhookSignatureVerification.asymmetric({
|
|
531582
|
-
header:
|
|
531223
|
+
header: extension4.header,
|
|
531583
531224
|
asymmetricAlgorithm,
|
|
531584
|
-
encoding: convertEncoding2(
|
|
531585
|
-
signaturePrefix:
|
|
531586
|
-
jwksUrl:
|
|
531587
|
-
keyIdHeader:
|
|
531588
|
-
timestamp: convertTimestamp2(
|
|
531225
|
+
encoding: convertEncoding2(extension4.encoding),
|
|
531226
|
+
signaturePrefix: extension4["signature-prefix"],
|
|
531227
|
+
jwksUrl: extension4["jwks-url"],
|
|
531228
|
+
keyIdHeader: extension4["key-id-header"],
|
|
531229
|
+
timestamp: convertTimestamp2(extension4.timestamp)
|
|
531589
531230
|
});
|
|
531590
531231
|
}
|
|
531591
531232
|
return void 0;
|
|
531592
531233
|
}
|
|
531593
531234
|
function getDocumentLevelSignature(document4) {
|
|
531594
|
-
const
|
|
531595
|
-
if (
|
|
531235
|
+
const extension4 = getExtension(document4, FernOpenAPIExtension.WEBHOOK_SIGNATURE);
|
|
531236
|
+
if (extension4 == null || typeof extension4 === "boolean") {
|
|
531596
531237
|
return void 0;
|
|
531597
531238
|
}
|
|
531598
|
-
return convertSignatureSchema(
|
|
531239
|
+
return convertSignatureSchema(extension4);
|
|
531599
531240
|
}
|
|
531600
531241
|
function getFernWebhookSignatureExtension(document4, operation) {
|
|
531601
|
-
const
|
|
531602
|
-
if (
|
|
531603
|
-
if (typeof
|
|
531242
|
+
const extension4 = getExtension(operation, FernOpenAPIExtension.WEBHOOK_SIGNATURE);
|
|
531243
|
+
if (extension4 != null) {
|
|
531244
|
+
if (typeof extension4 === "boolean") {
|
|
531604
531245
|
return getDocumentLevelSignature(document4);
|
|
531605
531246
|
}
|
|
531606
|
-
return convertSignatureSchema(
|
|
531247
|
+
return convertSignatureSchema(extension4);
|
|
531607
531248
|
}
|
|
531608
531249
|
return getDocumentLevelSignature(document4);
|
|
531609
531250
|
}
|
|
@@ -541410,8 +541051,8 @@ var IrGraph = class {
|
|
|
541410
541051
|
if (httpEndpoint.requestBody != null) {
|
|
541411
541052
|
HttpRequestBody._visit(httpEndpoint.requestBody, {
|
|
541412
541053
|
inlinedRequestBody: (inlinedRequestBody) => {
|
|
541413
|
-
for (const
|
|
541414
|
-
populateReferencesFromTypeName(
|
|
541054
|
+
for (const extension4 of inlinedRequestBody.extends) {
|
|
541055
|
+
populateReferencesFromTypeName(extension4, referencedTypes, referencedSubpackages);
|
|
541415
541056
|
}
|
|
541416
541057
|
for (const property23 of inlinedRequestBody.properties) {
|
|
541417
541058
|
populateReferencesFromTypeReference(property23.valueType, referencedTypes, referencedSubpackages);
|
|
@@ -541536,8 +541177,8 @@ var IrGraph = class {
|
|
|
541536
541177
|
if (webhook.payload != null) {
|
|
541537
541178
|
WebhookPayload._visit(webhook.payload, {
|
|
541538
541179
|
inlinedPayload: (inlinedPayload) => {
|
|
541539
|
-
for (const
|
|
541540
|
-
populateReferencesFromTypeName(
|
|
541180
|
+
for (const extension4 of inlinedPayload.extends) {
|
|
541181
|
+
populateReferencesFromTypeName(extension4, referencedTypes, referencedSubpackages);
|
|
541541
541182
|
}
|
|
541542
541183
|
for (const property23 of inlinedPayload.properties) {
|
|
541543
541184
|
populateReferencesFromTypeReference(property23.valueType, referencedTypes, referencedSubpackages);
|
|
@@ -541587,8 +541228,8 @@ var IrGraph = class {
|
|
|
541587
541228
|
populateReferencesFromTypeReference(bodyType, referencedTypes, referencedSubpackages);
|
|
541588
541229
|
},
|
|
541589
541230
|
inlinedBody: (inlinedBody) => {
|
|
541590
|
-
for (const
|
|
541591
|
-
populateReferencesFromTypeName(
|
|
541231
|
+
for (const extension4 of inlinedBody.extends) {
|
|
541232
|
+
populateReferencesFromTypeName(extension4, referencedTypes, referencedSubpackages);
|
|
541592
541233
|
}
|
|
541593
541234
|
for (const property23 of inlinedBody.properties) {
|
|
541594
541235
|
populateReferencesFromTypeReference(property23.valueType, referencedTypes, referencedSubpackages);
|
|
@@ -544275,9 +543916,9 @@ function getAllPropertiesForObject({
|
|
|
544275
543916
|
}
|
|
544276
543917
|
if (objectDeclaration.extends != null) {
|
|
544277
543918
|
const extensions2 = typeof objectDeclaration.extends === "string" ? [objectDeclaration.extends] : objectDeclaration.extends;
|
|
544278
|
-
for (const
|
|
543919
|
+
for (const extension4 of extensions2) {
|
|
544279
543920
|
const resolvedTypeOfExtension = typeResolver.resolveNamedType({
|
|
544280
|
-
referenceToNamedType:
|
|
543921
|
+
referenceToNamedType: extension4,
|
|
544281
543922
|
file: file4
|
|
544282
543923
|
});
|
|
544283
543924
|
if (resolvedTypeOfExtension?._type === "named" && isRawObjectDefinition(resolvedTypeOfExtension.declaration)) {
|
|
@@ -544294,7 +543935,7 @@ function getAllPropertiesForObject({
|
|
|
544294
543935
|
path: [
|
|
544295
543936
|
...path97,
|
|
544296
543937
|
{
|
|
544297
|
-
reference:
|
|
543938
|
+
reference: extension4,
|
|
544298
543939
|
followedVia: "extension"
|
|
544299
543940
|
},
|
|
544300
543941
|
...resolvedTypeOfExtension.objectPath.map((pathItem) => ({
|
|
@@ -544963,8 +544604,8 @@ function validateStringWithRules({ example, rules }) {
|
|
|
544963
544604
|
}
|
|
544964
544605
|
}
|
|
544965
544606
|
if (rules.pattern != null) {
|
|
544966
|
-
const
|
|
544967
|
-
if (!
|
|
544607
|
+
const regex5 = new RegExp(rules.pattern);
|
|
544608
|
+
if (!regex5.test(str3)) {
|
|
544968
544609
|
return [
|
|
544969
544610
|
{
|
|
544970
544611
|
message: `Expected string to match pattern ${rules.pattern}. Example is ${example}.`
|
|
@@ -553100,9 +552741,9 @@ var OnlyObjectExtensionsRule = {
|
|
|
553100
552741
|
const typeResolver = new TypeResolverImpl(workspace);
|
|
553101
552742
|
return {
|
|
553102
552743
|
definitionFile: {
|
|
553103
|
-
extension: (
|
|
552744
|
+
extension: (extension4, { relativeFilepath, contents }) => {
|
|
553104
552745
|
const resolvedType = typeResolver.resolveNamedType({
|
|
553105
|
-
referenceToNamedType:
|
|
552746
|
+
referenceToNamedType: extension4,
|
|
553106
552747
|
file: constructFernFileContext({
|
|
553107
552748
|
relativeFilepath,
|
|
553108
552749
|
definitionFile: contents,
|
|
@@ -553119,7 +552760,7 @@ var OnlyObjectExtensionsRule = {
|
|
|
553119
552760
|
return [
|
|
553120
552761
|
{
|
|
553121
552762
|
severity: "fatal",
|
|
553122
|
-
message: `Objects can only extend other objects, and ${
|
|
552763
|
+
message: `Objects can only extend other objects, and ${extension4} is not an object.`
|
|
553123
552764
|
}
|
|
553124
552765
|
];
|
|
553125
552766
|
}
|
|
@@ -556762,25 +556403,25 @@ function validateAndTransformObject6({ value, requiredKeys, requiredKeysSet, get
|
|
|
556762
556403
|
}
|
|
556763
556404
|
function getObjectUtils6(schema2) {
|
|
556764
556405
|
return {
|
|
556765
|
-
extend: (
|
|
556406
|
+
extend: (extension4) => {
|
|
556766
556407
|
const baseSchema = {
|
|
556767
|
-
_getParsedProperties: () => [...schema2._getParsedProperties(), ...
|
|
556768
|
-
_getRawProperties: () => [...schema2._getRawProperties(), ...
|
|
556408
|
+
_getParsedProperties: () => [...schema2._getParsedProperties(), ...extension4._getParsedProperties()],
|
|
556409
|
+
_getRawProperties: () => [...schema2._getRawProperties(), ...extension4._getRawProperties()],
|
|
556769
556410
|
parse: (raw, opts) => {
|
|
556770
556411
|
return validateAndTransformExtendedObject6({
|
|
556771
|
-
extensionKeys:
|
|
556412
|
+
extensionKeys: extension4._getRawProperties(),
|
|
556772
556413
|
value: raw,
|
|
556773
556414
|
transformBase: (rawBase) => schema2.parse(rawBase, opts),
|
|
556774
|
-
transformExtension: (rawExtension) =>
|
|
556415
|
+
transformExtension: (rawExtension) => extension4.parse(rawExtension, opts),
|
|
556775
556416
|
breadcrumbsPrefix: opts?.breadcrumbsPrefix
|
|
556776
556417
|
});
|
|
556777
556418
|
},
|
|
556778
556419
|
json: (parsed, opts) => {
|
|
556779
556420
|
return validateAndTransformExtendedObject6({
|
|
556780
|
-
extensionKeys:
|
|
556421
|
+
extensionKeys: extension4._getParsedProperties(),
|
|
556781
556422
|
value: parsed,
|
|
556782
556423
|
transformBase: (parsedBase) => schema2.json(parsedBase, opts),
|
|
556783
|
-
transformExtension: (parsedExtension) =>
|
|
556424
|
+
transformExtension: (parsedExtension) => extension4.json(parsedExtension, opts),
|
|
556784
556425
|
breadcrumbsPrefix: opts?.breadcrumbsPrefix
|
|
556785
556426
|
});
|
|
556786
556427
|
},
|
|
@@ -558167,17 +557808,11 @@ var fallback = {
|
|
|
558167
557808
|
var logSymbols = isUnicodeSupported() ? main : fallback;
|
|
558168
557809
|
var log_symbols_default = logSymbols;
|
|
558169
557810
|
|
|
558170
|
-
// ../../../node_modules/.pnpm/
|
|
558171
|
-
|
|
558172
|
-
var regex3 = ansiRegex();
|
|
558173
|
-
function stripAnsi3(string26) {
|
|
558174
|
-
if (typeof string26 !== "string") {
|
|
558175
|
-
throw new TypeError(`Expected a \`string\`, got \`${typeof string26}\``);
|
|
558176
|
-
}
|
|
558177
|
-
return string26.replace(regex3, "");
|
|
558178
|
-
}
|
|
557811
|
+
// ../../../node_modules/.pnpm/ora@7.0.1/node_modules/ora/index.js
|
|
557812
|
+
init_strip_ansi();
|
|
558179
557813
|
|
|
558180
557814
|
// ../../../node_modules/.pnpm/string-width@6.1.0/node_modules/string-width/index.js
|
|
557815
|
+
init_strip_ansi();
|
|
558181
557816
|
var import_eastasianwidth = __toESM(require_eastasianwidth(), 1);
|
|
558182
557817
|
|
|
558183
557818
|
// ../../../node_modules/.pnpm/emoji-regex@10.6.0/node_modules/emoji-regex/index.mjs
|
|
@@ -558196,7 +557831,7 @@ function stringWidth(string26, options2) {
|
|
|
558196
557831
|
...options2
|
|
558197
557832
|
};
|
|
558198
557833
|
if (!options2.countAnsiEscapeCodes) {
|
|
558199
|
-
string26 =
|
|
557834
|
+
string26 = stripAnsi2(string26);
|
|
558200
557835
|
}
|
|
558201
557836
|
if (string26.length === 0) {
|
|
558202
557837
|
return 0;
|
|
@@ -558460,7 +558095,7 @@ var Ora = class {
|
|
|
558460
558095
|
const fullSuffixText = this.#getFullSuffixText(this.#suffixText, "-");
|
|
558461
558096
|
const fullText = " ".repeat(this.#indent) + fullPrefixText + "--" + this.#text + "--" + fullSuffixText;
|
|
558462
558097
|
this.#lineCount = 0;
|
|
558463
|
-
for (const line of
|
|
558098
|
+
for (const line of stripAnsi2(fullText).split("\n")) {
|
|
558464
558099
|
this.#lineCount += Math.max(1, Math.ceil(stringWidth(line, { countAnsiEscapeCodes: true }) / columns));
|
|
558465
558100
|
}
|
|
558466
558101
|
}
|
|
@@ -561294,24 +560929,24 @@ function validateAndTransformObject7({ value, requiredKeys, getProperty: getProp
|
|
|
561294
560929
|
}
|
|
561295
560930
|
function getObjectUtils7(schema2) {
|
|
561296
560931
|
return {
|
|
561297
|
-
extend: (
|
|
560932
|
+
extend: (extension4) => {
|
|
561298
560933
|
const baseSchema = {
|
|
561299
|
-
_getParsedProperties: () => [...schema2._getParsedProperties(), ...
|
|
561300
|
-
_getRawProperties: () => [...schema2._getRawProperties(), ...
|
|
560934
|
+
_getParsedProperties: () => [...schema2._getParsedProperties(), ...extension4._getParsedProperties()],
|
|
560935
|
+
_getRawProperties: () => [...schema2._getRawProperties(), ...extension4._getRawProperties()],
|
|
561301
560936
|
parse: (raw, opts) => {
|
|
561302
560937
|
return validateAndTransformExtendedObject7({
|
|
561303
|
-
extensionKeys:
|
|
560938
|
+
extensionKeys: extension4._getRawProperties(),
|
|
561304
560939
|
value: raw,
|
|
561305
560940
|
transformBase: (rawBase) => schema2.parse(rawBase, opts),
|
|
561306
|
-
transformExtension: (rawExtension) =>
|
|
560941
|
+
transformExtension: (rawExtension) => extension4.parse(rawExtension, opts)
|
|
561307
560942
|
});
|
|
561308
560943
|
},
|
|
561309
560944
|
json: (parsed, opts) => {
|
|
561310
560945
|
return validateAndTransformExtendedObject7({
|
|
561311
|
-
extensionKeys:
|
|
560946
|
+
extensionKeys: extension4._getParsedProperties(),
|
|
561312
560947
|
value: parsed,
|
|
561313
560948
|
transformBase: (parsedBase) => schema2.json(parsedBase, opts),
|
|
561314
|
-
transformExtension: (parsedExtension) =>
|
|
560949
|
+
transformExtension: (parsedExtension) => extension4.json(parsedExtension, opts)
|
|
561315
560950
|
});
|
|
561316
560951
|
},
|
|
561317
560952
|
getType: () => SchemaType7.OBJECT
|
|
@@ -581539,8 +581174,8 @@ function findMatchingOpenAPIPath(examplePath, availablePaths) {
|
|
|
581539
581174
|
}
|
|
581540
581175
|
for (const openApiPath of availablePaths) {
|
|
581541
581176
|
const regexPattern = openApiPath.replace(/\{[^}]+\}/g, "([^/]+)");
|
|
581542
|
-
const
|
|
581543
|
-
if (
|
|
581177
|
+
const regex5 = new RegExp(`^${regexPattern}$`);
|
|
581178
|
+
if (regex5.test(examplePath)) {
|
|
581544
581179
|
return openApiPath;
|
|
581545
581180
|
}
|
|
581546
581181
|
}
|
|
@@ -593215,14 +592850,14 @@ function getCacheDir() {
|
|
|
593215
592850
|
return AbsoluteFilePath2.of(import_path35.default.join(homeDir, CACHE_DIR_NAME, BIN_DIR_NAME));
|
|
593216
592851
|
}
|
|
593217
592852
|
function getVersionedBinaryPath() {
|
|
593218
|
-
const { extension:
|
|
592853
|
+
const { extension: extension4 } = getPlatformInfo();
|
|
593219
592854
|
const cacheDir = getCacheDir();
|
|
593220
|
-
return join2(cacheDir, RelativeFilePath2.of(`${BINARY_NAME}-${BUF_VERSION}${
|
|
592855
|
+
return join2(cacheDir, RelativeFilePath2.of(`${BINARY_NAME}-${BUF_VERSION}${extension4}`));
|
|
593221
592856
|
}
|
|
593222
592857
|
function getCanonicalBinaryPath() {
|
|
593223
|
-
const { extension:
|
|
592858
|
+
const { extension: extension4 } = getPlatformInfo();
|
|
593224
592859
|
const cacheDir = getCacheDir();
|
|
593225
|
-
return join2(cacheDir, RelativeFilePath2.of(`${BINARY_NAME}${
|
|
592860
|
+
return join2(cacheDir, RelativeFilePath2.of(`${BINARY_NAME}${extension4}`));
|
|
593226
592861
|
}
|
|
593227
592862
|
function getVersionMarkerPath() {
|
|
593228
592863
|
const cacheDir = getCacheDir();
|
|
@@ -593233,8 +592868,8 @@ function getLockDirPath() {
|
|
|
593233
592868
|
return import_path35.default.join(cacheDir, `${BINARY_NAME}.lock`);
|
|
593234
592869
|
}
|
|
593235
592870
|
function getDownloadUrl() {
|
|
593236
|
-
const { os: osName, arch: arch3, extension:
|
|
593237
|
-
return `${GITHUB_RELEASE_URL_BASE}/${BUF_VERSION}/${BINARY_NAME}-${osName}-${arch3}${
|
|
592871
|
+
const { os: osName, arch: arch3, extension: extension4 } = getPlatformInfo();
|
|
592872
|
+
return `${GITHUB_RELEASE_URL_BASE}/${BUF_VERSION}/${BINARY_NAME}-${osName}-${arch3}${extension4}`;
|
|
593238
592873
|
}
|
|
593239
592874
|
async function fileExists(filePath) {
|
|
593240
592875
|
try {
|
|
@@ -593774,14 +593409,14 @@ function getCacheDir2() {
|
|
|
593774
593409
|
return AbsoluteFilePath2.of(import_path37.default.join(homeDir, CACHE_DIR_NAME2, BIN_DIR_NAME2));
|
|
593775
593410
|
}
|
|
593776
593411
|
function getVersionedBinaryPath2() {
|
|
593777
|
-
const { extension:
|
|
593412
|
+
const { extension: extension4 } = getPlatformInfo2();
|
|
593778
593413
|
const cacheDir = getCacheDir2();
|
|
593779
|
-
return join2(cacheDir, RelativeFilePath2.of(`${BINARY_NAME2}-${PROTOC_GEN_OPENAPI_VERSION}${
|
|
593414
|
+
return join2(cacheDir, RelativeFilePath2.of(`${BINARY_NAME2}-${PROTOC_GEN_OPENAPI_VERSION}${extension4}`));
|
|
593780
593415
|
}
|
|
593781
593416
|
function getCanonicalBinaryPath2() {
|
|
593782
|
-
const { extension:
|
|
593417
|
+
const { extension: extension4 } = getPlatformInfo2();
|
|
593783
593418
|
const cacheDir = getCacheDir2();
|
|
593784
|
-
return join2(cacheDir, RelativeFilePath2.of(`${BINARY_NAME2}${
|
|
593419
|
+
return join2(cacheDir, RelativeFilePath2.of(`${BINARY_NAME2}${extension4}`));
|
|
593785
593420
|
}
|
|
593786
593421
|
function getVersionMarkerPath2() {
|
|
593787
593422
|
const cacheDir = getCacheDir2();
|
|
@@ -593792,8 +593427,8 @@ function getLockDirPath2() {
|
|
|
593792
593427
|
return import_path37.default.join(cacheDir, `${BINARY_NAME2}.lock`);
|
|
593793
593428
|
}
|
|
593794
593429
|
function getDownloadUrl2() {
|
|
593795
|
-
const { os: osName, arch: arch3, extension:
|
|
593796
|
-
return `${GITHUB_RELEASE_URL_BASE2}/${PROTOC_GEN_OPENAPI_VERSION}/${BINARY_NAME2}-${osName}-${arch3}${
|
|
593430
|
+
const { os: osName, arch: arch3, extension: extension4 } = getPlatformInfo2();
|
|
593431
|
+
return `${GITHUB_RELEASE_URL_BASE2}/${PROTOC_GEN_OPENAPI_VERSION}/${BINARY_NAME2}-${osName}-${arch3}${extension4}`;
|
|
593797
593432
|
}
|
|
593798
593433
|
async function fileExists2(filePath) {
|
|
593799
593434
|
try {
|
|
@@ -602446,9 +602081,9 @@ function matchPropertyGroup(propertyGroup, propertyValues, cohortProperties, deb
|
|
|
602446
602081
|
if (errorMatchingLocally) throw new InconclusiveMatchError("can't match cohort without a given cohort property value");
|
|
602447
602082
|
return "AND" === propertyGroupType;
|
|
602448
602083
|
}
|
|
602449
|
-
function isValidRegex(
|
|
602084
|
+
function isValidRegex(regex5) {
|
|
602450
602085
|
try {
|
|
602451
|
-
new RegExp(
|
|
602086
|
+
new RegExp(regex5);
|
|
602452
602087
|
return true;
|
|
602453
602088
|
} catch (err) {
|
|
602454
602089
|
return false;
|
|
@@ -602573,8 +602208,8 @@ function convertToDateTime(value) {
|
|
|
602573
602208
|
throw new InconclusiveMatchError(`The date provided ${value} must be a string, number, or date object`);
|
|
602574
602209
|
}
|
|
602575
602210
|
function relativeDateParseForFeatureFlagMatching(value) {
|
|
602576
|
-
const
|
|
602577
|
-
const match3 = value.match(
|
|
602211
|
+
const regex5 = /^-?(?<number>[0-9]+)(?<interval>[a-z])$/;
|
|
602212
|
+
const match3 = value.match(regex5);
|
|
602578
602213
|
const parsedDt = new Date((/* @__PURE__ */ new Date()).toISOString());
|
|
602579
602214
|
if (!match3) return null;
|
|
602580
602215
|
{
|
|
@@ -603453,7 +603088,7 @@ var AccessTokenPosthogManager = class {
|
|
|
603453
603088
|
properties: {
|
|
603454
603089
|
...event,
|
|
603455
603090
|
...event.properties,
|
|
603456
|
-
version: "4.62.3-
|
|
603091
|
+
version: "4.62.3-39-g50880c9de66",
|
|
603457
603092
|
usingAccessToken: true
|
|
603458
603093
|
}
|
|
603459
603094
|
});
|
|
@@ -603504,7 +603139,7 @@ var UserPosthogManager = class {
|
|
|
603504
603139
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
603505
603140
|
event: "CLI",
|
|
603506
603141
|
properties: {
|
|
603507
|
-
version: "4.62.3-
|
|
603142
|
+
version: "4.62.3-39-g50880c9de66",
|
|
603508
603143
|
...event,
|
|
603509
603144
|
...event.properties,
|
|
603510
603145
|
usingAccessToken: false,
|
|
@@ -603588,6 +603223,7 @@ init_lib4();
|
|
|
603588
603223
|
var import_node_process9 = __toESM(require("process"), 1);
|
|
603589
603224
|
|
|
603590
603225
|
// ../../../node_modules/.pnpm/string-width@5.1.2/node_modules/string-width/index.js
|
|
603226
|
+
init_strip_ansi();
|
|
603591
603227
|
var import_eastasianwidth2 = __toESM(require_eastasianwidth(), 1);
|
|
603592
603228
|
var import_emoji_regex2 = __toESM(require_emoji_regex2(), 1);
|
|
603593
603229
|
function stringWidth3(string26, options2 = {}) {
|
|
@@ -603598,7 +603234,7 @@ function stringWidth3(string26, options2 = {}) {
|
|
|
603598
603234
|
ambiguousIsNarrow: true,
|
|
603599
603235
|
...options2
|
|
603600
603236
|
};
|
|
603601
|
-
string26 =
|
|
603237
|
+
string26 = stripAnsi2(string26);
|
|
603602
603238
|
if (string26.length === 0) {
|
|
603603
603239
|
return 0;
|
|
603604
603240
|
}
|
|
@@ -603726,6 +603362,9 @@ function camelCase4(input3, options2) {
|
|
|
603726
603362
|
// ../../../node_modules/.pnpm/boxen@7.1.1/node_modules/boxen/index.js
|
|
603727
603363
|
var import_ansi_align = __toESM(require_ansi_align(), 1);
|
|
603728
603364
|
|
|
603365
|
+
// ../../../node_modules/.pnpm/wrap-ansi@8.1.0/node_modules/wrap-ansi/index.js
|
|
603366
|
+
init_strip_ansi();
|
|
603367
|
+
|
|
603729
603368
|
// ../../../node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.js
|
|
603730
603369
|
var ANSI_BACKGROUND_OFFSET2 = 10;
|
|
603731
603370
|
var wrapAnsi162 = (offset2 = 0) => (code5) => `\x1B[${code5 + offset2}m`;
|
|
@@ -603930,7 +603569,7 @@ var wrapWord = (rows, word, columns) => {
|
|
|
603930
603569
|
const characters = [...word];
|
|
603931
603570
|
let isInsideEscape = false;
|
|
603932
603571
|
let isInsideLinkEscape = false;
|
|
603933
|
-
let visible = stringWidth3(
|
|
603572
|
+
let visible = stringWidth3(stripAnsi2(rows[rows.length - 1]));
|
|
603934
603573
|
for (const [index3, character] of characters.entries()) {
|
|
603935
603574
|
const characterLength = stringWidth3(character);
|
|
603936
603575
|
if (visible + characterLength <= columns) {
|
|
@@ -613317,8 +612956,8 @@ function parseForwardedHeader(value) {
|
|
|
613317
612956
|
return null;
|
|
613318
612957
|
}
|
|
613319
612958
|
function isIP(str3) {
|
|
613320
|
-
const
|
|
613321
|
-
return
|
|
612959
|
+
const regex5 = /(?:^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$)|(?:^(?:(?:[a-fA-F\d]{1,4}:){7}(?:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,2}|:)|(?:[a-fA-F\d]{1,4}:){4}(?:(?::[a-fA-F\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,3}|:)|(?:[a-fA-F\d]{1,4}:){3}(?:(?::[a-fA-F\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,4}|:)|(?:[a-fA-F\d]{1,4}:){2}(?:(?::[a-fA-F\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,5}|:)|(?:[a-fA-F\d]{1,4}:){1}(?:(?::[a-fA-F\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,6}|:)|(?::(?:(?::[a-fA-F\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,7}|:)))(?:%[0-9a-zA-Z]{1,})?$)/;
|
|
612960
|
+
return regex5.test(str3);
|
|
613322
612961
|
}
|
|
613323
612962
|
|
|
613324
612963
|
// ../../../node_modules/.pnpm/@sentry+core@10.45.0/node_modules/@sentry/core/build/esm/integrations/requestdata.js
|
|
@@ -620960,8 +620599,8 @@ var LINUX_VERSIONS = {
|
|
|
620960
620599
|
suse: (content5) => matchFirst(/VERSION = (.*)\n/, content5),
|
|
620961
620600
|
ubuntu: (content5) => matchFirst(/distrib_release=(.*)/, content5)
|
|
620962
620601
|
};
|
|
620963
|
-
function matchFirst(
|
|
620964
|
-
const match3 =
|
|
620602
|
+
function matchFirst(regex5, text9) {
|
|
620603
|
+
const match3 = regex5.exec(text9);
|
|
620965
620604
|
return match3 ? match3[1] : void 0;
|
|
620966
620605
|
}
|
|
620967
620606
|
async function getDarwinInfo() {
|
|
@@ -628858,13 +628497,13 @@ function command2(cli, name2, description, handler3, builder) {
|
|
|
628858
628497
|
|
|
628859
628498
|
// ../cli-v2/lib/commands/_internal/toJsonViolation.js
|
|
628860
628499
|
var ANSI_REGEX = new RegExp(`${String.fromCodePoint(27)}\\[[0-9;]*m`, "g");
|
|
628861
|
-
function
|
|
628500
|
+
function stripAnsi4(text9) {
|
|
628862
628501
|
return text9.replace(ANSI_REGEX, "");
|
|
628863
628502
|
}
|
|
628864
628503
|
function toJsonViolation(violation, options2) {
|
|
628865
628504
|
const result = {
|
|
628866
628505
|
severity: violation.severity,
|
|
628867
|
-
message:
|
|
628506
|
+
message: stripAnsi4(violation.message)
|
|
628868
628507
|
};
|
|
628869
628508
|
if (options2?.api != null) {
|
|
628870
628509
|
result.api = options2.api;
|
|
@@ -630114,25 +629753,25 @@ function validateAndTransformObject8({ value, requiredKeys, requiredKeysSet, get
|
|
|
630114
629753
|
}
|
|
630115
629754
|
function getObjectUtils8(schema2) {
|
|
630116
629755
|
return {
|
|
630117
|
-
extend: (
|
|
629756
|
+
extend: (extension4) => {
|
|
630118
629757
|
const baseSchema = {
|
|
630119
|
-
_getParsedProperties: () => [...schema2._getParsedProperties(), ...
|
|
630120
|
-
_getRawProperties: () => [...schema2._getRawProperties(), ...
|
|
629758
|
+
_getParsedProperties: () => [...schema2._getParsedProperties(), ...extension4._getParsedProperties()],
|
|
629759
|
+
_getRawProperties: () => [...schema2._getRawProperties(), ...extension4._getRawProperties()],
|
|
630121
629760
|
parse: (raw, opts) => {
|
|
630122
629761
|
return validateAndTransformExtendedObject8({
|
|
630123
|
-
extensionKeys:
|
|
629762
|
+
extensionKeys: extension4._getRawProperties(),
|
|
630124
629763
|
value: raw,
|
|
630125
629764
|
transformBase: (rawBase) => schema2.parse(rawBase, opts),
|
|
630126
|
-
transformExtension: (rawExtension) =>
|
|
629765
|
+
transformExtension: (rawExtension) => extension4.parse(rawExtension, opts),
|
|
630127
629766
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix
|
|
630128
629767
|
});
|
|
630129
629768
|
},
|
|
630130
629769
|
json: (parsed, opts) => {
|
|
630131
629770
|
return validateAndTransformExtendedObject8({
|
|
630132
|
-
extensionKeys:
|
|
629771
|
+
extensionKeys: extension4._getParsedProperties(),
|
|
630133
629772
|
value: parsed,
|
|
630134
629773
|
transformBase: (parsedBase) => schema2.json(parsedBase, opts),
|
|
630135
|
-
transformExtension: (parsedExtension) =>
|
|
629774
|
+
transformExtension: (parsedExtension) => extension4.json(parsedExtension, opts),
|
|
630136
629775
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix
|
|
630137
629776
|
});
|
|
630138
629777
|
},
|
|
@@ -639154,25 +638793,25 @@ function validateAndTransformObject9({ value, requiredKeys, requiredKeysSet, get
|
|
|
639154
638793
|
}
|
|
639155
638794
|
function getObjectUtils9(schema2) {
|
|
639156
638795
|
return {
|
|
639157
|
-
extend: (
|
|
638796
|
+
extend: (extension4) => {
|
|
639158
638797
|
const baseSchema = {
|
|
639159
|
-
_getParsedProperties: () => [...schema2._getParsedProperties(), ...
|
|
639160
|
-
_getRawProperties: () => [...schema2._getRawProperties(), ...
|
|
638798
|
+
_getParsedProperties: () => [...schema2._getParsedProperties(), ...extension4._getParsedProperties()],
|
|
638799
|
+
_getRawProperties: () => [...schema2._getRawProperties(), ...extension4._getRawProperties()],
|
|
639161
638800
|
parse: (raw, opts) => {
|
|
639162
638801
|
return validateAndTransformExtendedObject9({
|
|
639163
|
-
extensionKeys:
|
|
638802
|
+
extensionKeys: extension4._getRawProperties(),
|
|
639164
638803
|
value: raw,
|
|
639165
638804
|
transformBase: (rawBase) => schema2.parse(rawBase, opts),
|
|
639166
|
-
transformExtension: (rawExtension) =>
|
|
638805
|
+
transformExtension: (rawExtension) => extension4.parse(rawExtension, opts),
|
|
639167
638806
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix
|
|
639168
638807
|
});
|
|
639169
638808
|
},
|
|
639170
638809
|
json: (parsed, opts) => {
|
|
639171
638810
|
return validateAndTransformExtendedObject9({
|
|
639172
|
-
extensionKeys:
|
|
638811
|
+
extensionKeys: extension4._getParsedProperties(),
|
|
639173
638812
|
value: parsed,
|
|
639174
638813
|
transformBase: (parsedBase) => schema2.json(parsedBase, opts),
|
|
639175
|
-
transformExtension: (parsedExtension) =>
|
|
638814
|
+
transformExtension: (parsedExtension) => extension4.json(parsedExtension, opts),
|
|
639176
638815
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix
|
|
639177
638816
|
});
|
|
639178
638817
|
},
|
|
@@ -648244,25 +647883,25 @@ function validateAndTransformObject10({ value, requiredKeys, requiredKeysSet, ge
|
|
|
648244
647883
|
}
|
|
648245
647884
|
function getObjectUtils10(schema2) {
|
|
648246
647885
|
return {
|
|
648247
|
-
extend: (
|
|
647886
|
+
extend: (extension4) => {
|
|
648248
647887
|
const baseSchema = {
|
|
648249
|
-
_getParsedProperties: () => [...schema2._getParsedProperties(), ...
|
|
648250
|
-
_getRawProperties: () => [...schema2._getRawProperties(), ...
|
|
647888
|
+
_getParsedProperties: () => [...schema2._getParsedProperties(), ...extension4._getParsedProperties()],
|
|
647889
|
+
_getRawProperties: () => [...schema2._getRawProperties(), ...extension4._getRawProperties()],
|
|
648251
647890
|
parse: (raw, opts) => {
|
|
648252
647891
|
return validateAndTransformExtendedObject10({
|
|
648253
|
-
extensionKeys:
|
|
647892
|
+
extensionKeys: extension4._getRawProperties(),
|
|
648254
647893
|
value: raw,
|
|
648255
647894
|
transformBase: (rawBase) => schema2.parse(rawBase, opts),
|
|
648256
|
-
transformExtension: (rawExtension) =>
|
|
647895
|
+
transformExtension: (rawExtension) => extension4.parse(rawExtension, opts),
|
|
648257
647896
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix
|
|
648258
647897
|
});
|
|
648259
647898
|
},
|
|
648260
647899
|
json: (parsed, opts) => {
|
|
648261
647900
|
return validateAndTransformExtendedObject10({
|
|
648262
|
-
extensionKeys:
|
|
647901
|
+
extensionKeys: extension4._getParsedProperties(),
|
|
648263
647902
|
value: parsed,
|
|
648264
647903
|
transformBase: (parsedBase) => schema2.json(parsedBase, opts),
|
|
648265
|
-
transformExtension: (parsedExtension) =>
|
|
647904
|
+
transformExtension: (parsedExtension) => extension4.json(parsedExtension, opts),
|
|
648266
647905
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix
|
|
648267
647906
|
});
|
|
648268
647907
|
},
|
|
@@ -657444,25 +657083,25 @@ function validateAndTransformObject11({ value, requiredKeys, requiredKeysSet, ge
|
|
|
657444
657083
|
}
|
|
657445
657084
|
function getObjectUtils11(schema2) {
|
|
657446
657085
|
return {
|
|
657447
|
-
extend: (
|
|
657086
|
+
extend: (extension4) => {
|
|
657448
657087
|
const baseSchema = {
|
|
657449
|
-
_getParsedProperties: () => [...schema2._getParsedProperties(), ...
|
|
657450
|
-
_getRawProperties: () => [...schema2._getRawProperties(), ...
|
|
657088
|
+
_getParsedProperties: () => [...schema2._getParsedProperties(), ...extension4._getParsedProperties()],
|
|
657089
|
+
_getRawProperties: () => [...schema2._getRawProperties(), ...extension4._getRawProperties()],
|
|
657451
657090
|
parse: (raw, opts) => {
|
|
657452
657091
|
return validateAndTransformExtendedObject11({
|
|
657453
|
-
extensionKeys:
|
|
657092
|
+
extensionKeys: extension4._getRawProperties(),
|
|
657454
657093
|
value: raw,
|
|
657455
657094
|
transformBase: (rawBase) => schema2.parse(rawBase, opts),
|
|
657456
|
-
transformExtension: (rawExtension) =>
|
|
657095
|
+
transformExtension: (rawExtension) => extension4.parse(rawExtension, opts),
|
|
657457
657096
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix
|
|
657458
657097
|
});
|
|
657459
657098
|
},
|
|
657460
657099
|
json: (parsed, opts) => {
|
|
657461
657100
|
return validateAndTransformExtendedObject11({
|
|
657462
|
-
extensionKeys:
|
|
657101
|
+
extensionKeys: extension4._getParsedProperties(),
|
|
657463
657102
|
value: parsed,
|
|
657464
657103
|
transformBase: (parsedBase) => schema2.json(parsedBase, opts),
|
|
657465
|
-
transformExtension: (parsedExtension) =>
|
|
657104
|
+
transformExtension: (parsedExtension) => extension4.json(parsedExtension, opts),
|
|
657466
657105
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix
|
|
657467
657106
|
});
|
|
657468
657107
|
},
|
|
@@ -666691,25 +666330,25 @@ function validateAndTransformObject12({ value, requiredKeys, requiredKeysSet, ge
|
|
|
666691
666330
|
}
|
|
666692
666331
|
function getObjectUtils12(schema2) {
|
|
666693
666332
|
return {
|
|
666694
|
-
extend: (
|
|
666333
|
+
extend: (extension4) => {
|
|
666695
666334
|
const baseSchema = {
|
|
666696
|
-
_getParsedProperties: () => [...schema2._getParsedProperties(), ...
|
|
666697
|
-
_getRawProperties: () => [...schema2._getRawProperties(), ...
|
|
666335
|
+
_getParsedProperties: () => [...schema2._getParsedProperties(), ...extension4._getParsedProperties()],
|
|
666336
|
+
_getRawProperties: () => [...schema2._getRawProperties(), ...extension4._getRawProperties()],
|
|
666698
666337
|
parse: (raw, opts) => {
|
|
666699
666338
|
return validateAndTransformExtendedObject12({
|
|
666700
|
-
extensionKeys:
|
|
666339
|
+
extensionKeys: extension4._getRawProperties(),
|
|
666701
666340
|
value: raw,
|
|
666702
666341
|
transformBase: (rawBase) => schema2.parse(rawBase, opts),
|
|
666703
|
-
transformExtension: (rawExtension) =>
|
|
666342
|
+
transformExtension: (rawExtension) => extension4.parse(rawExtension, opts),
|
|
666704
666343
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix
|
|
666705
666344
|
});
|
|
666706
666345
|
},
|
|
666707
666346
|
json: (parsed, opts) => {
|
|
666708
666347
|
return validateAndTransformExtendedObject12({
|
|
666709
|
-
extensionKeys:
|
|
666348
|
+
extensionKeys: extension4._getParsedProperties(),
|
|
666710
666349
|
value: parsed,
|
|
666711
666350
|
transformBase: (parsedBase) => schema2.json(parsedBase, opts),
|
|
666712
|
-
transformExtension: (parsedExtension) =>
|
|
666351
|
+
transformExtension: (parsedExtension) => extension4.json(parsedExtension, opts),
|
|
666713
666352
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix
|
|
666714
666353
|
});
|
|
666715
666354
|
},
|
|
@@ -676708,25 +676347,25 @@ function validateAndTransformObject13({ value, requiredKeys, requiredKeysSet, ge
|
|
|
676708
676347
|
}
|
|
676709
676348
|
function getObjectUtils13(schema2) {
|
|
676710
676349
|
return {
|
|
676711
|
-
extend: (
|
|
676350
|
+
extend: (extension4) => {
|
|
676712
676351
|
const baseSchema = {
|
|
676713
|
-
_getParsedProperties: () => [...schema2._getParsedProperties(), ...
|
|
676714
|
-
_getRawProperties: () => [...schema2._getRawProperties(), ...
|
|
676352
|
+
_getParsedProperties: () => [...schema2._getParsedProperties(), ...extension4._getParsedProperties()],
|
|
676353
|
+
_getRawProperties: () => [...schema2._getRawProperties(), ...extension4._getRawProperties()],
|
|
676715
676354
|
parse: (raw, opts) => {
|
|
676716
676355
|
return validateAndTransformExtendedObject13({
|
|
676717
|
-
extensionKeys:
|
|
676356
|
+
extensionKeys: extension4._getRawProperties(),
|
|
676718
676357
|
value: raw,
|
|
676719
676358
|
transformBase: (rawBase) => schema2.parse(rawBase, opts),
|
|
676720
|
-
transformExtension: (rawExtension) =>
|
|
676359
|
+
transformExtension: (rawExtension) => extension4.parse(rawExtension, opts),
|
|
676721
676360
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix
|
|
676722
676361
|
});
|
|
676723
676362
|
},
|
|
676724
676363
|
json: (parsed, opts) => {
|
|
676725
676364
|
return validateAndTransformExtendedObject13({
|
|
676726
|
-
extensionKeys:
|
|
676365
|
+
extensionKeys: extension4._getParsedProperties(),
|
|
676727
676366
|
value: parsed,
|
|
676728
676367
|
transformBase: (parsedBase) => schema2.json(parsedBase, opts),
|
|
676729
|
-
transformExtension: (parsedExtension) =>
|
|
676368
|
+
transformExtension: (parsedExtension) => extension4.json(parsedExtension, opts),
|
|
676730
676369
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix
|
|
676731
676370
|
});
|
|
676732
676371
|
},
|
|
@@ -686849,25 +686488,25 @@ function validateAndTransformObject14({ value, requiredKeys, requiredKeysSet, ge
|
|
|
686849
686488
|
}
|
|
686850
686489
|
function getObjectUtils14(schema2) {
|
|
686851
686490
|
return {
|
|
686852
|
-
extend: (
|
|
686491
|
+
extend: (extension4) => {
|
|
686853
686492
|
const baseSchema = {
|
|
686854
|
-
_getParsedProperties: () => [...schema2._getParsedProperties(), ...
|
|
686855
|
-
_getRawProperties: () => [...schema2._getRawProperties(), ...
|
|
686493
|
+
_getParsedProperties: () => [...schema2._getParsedProperties(), ...extension4._getParsedProperties()],
|
|
686494
|
+
_getRawProperties: () => [...schema2._getRawProperties(), ...extension4._getRawProperties()],
|
|
686856
686495
|
parse: (raw, opts) => {
|
|
686857
686496
|
return validateAndTransformExtendedObject14({
|
|
686858
|
-
extensionKeys:
|
|
686497
|
+
extensionKeys: extension4._getRawProperties(),
|
|
686859
686498
|
value: raw,
|
|
686860
686499
|
transformBase: (rawBase) => schema2.parse(rawBase, opts),
|
|
686861
|
-
transformExtension: (rawExtension) =>
|
|
686500
|
+
transformExtension: (rawExtension) => extension4.parse(rawExtension, opts),
|
|
686862
686501
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix
|
|
686863
686502
|
});
|
|
686864
686503
|
},
|
|
686865
686504
|
json: (parsed, opts) => {
|
|
686866
686505
|
return validateAndTransformExtendedObject14({
|
|
686867
|
-
extensionKeys:
|
|
686506
|
+
extensionKeys: extension4._getParsedProperties(),
|
|
686868
686507
|
value: parsed,
|
|
686869
686508
|
transformBase: (parsedBase) => schema2.json(parsedBase, opts),
|
|
686870
|
-
transformExtension: (parsedExtension) =>
|
|
686509
|
+
transformExtension: (parsedExtension) => extension4.json(parsedExtension, opts),
|
|
686871
686510
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix
|
|
686872
686511
|
});
|
|
686873
686512
|
},
|
|
@@ -697094,25 +696733,25 @@ function validateAndTransformObject15({ value, requiredKeys, requiredKeysSet, ge
|
|
|
697094
696733
|
}
|
|
697095
696734
|
function getObjectUtils15(schema2) {
|
|
697096
696735
|
return {
|
|
697097
|
-
extend: (
|
|
696736
|
+
extend: (extension4) => {
|
|
697098
696737
|
const baseSchema = {
|
|
697099
|
-
_getParsedProperties: () => [...schema2._getParsedProperties(), ...
|
|
697100
|
-
_getRawProperties: () => [...schema2._getRawProperties(), ...
|
|
696738
|
+
_getParsedProperties: () => [...schema2._getParsedProperties(), ...extension4._getParsedProperties()],
|
|
696739
|
+
_getRawProperties: () => [...schema2._getRawProperties(), ...extension4._getRawProperties()],
|
|
697101
696740
|
parse: (raw, opts) => {
|
|
697102
696741
|
return validateAndTransformExtendedObject15({
|
|
697103
|
-
extensionKeys:
|
|
696742
|
+
extensionKeys: extension4._getRawProperties(),
|
|
697104
696743
|
value: raw,
|
|
697105
696744
|
transformBase: (rawBase) => schema2.parse(rawBase, opts),
|
|
697106
|
-
transformExtension: (rawExtension) =>
|
|
696745
|
+
transformExtension: (rawExtension) => extension4.parse(rawExtension, opts),
|
|
697107
696746
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix
|
|
697108
696747
|
});
|
|
697109
696748
|
},
|
|
697110
696749
|
json: (parsed, opts) => {
|
|
697111
696750
|
return validateAndTransformExtendedObject15({
|
|
697112
|
-
extensionKeys:
|
|
696751
|
+
extensionKeys: extension4._getParsedProperties(),
|
|
697113
696752
|
value: parsed,
|
|
697114
696753
|
transformBase: (parsedBase) => schema2.json(parsedBase, opts),
|
|
697115
|
-
transformExtension: (parsedExtension) =>
|
|
696754
|
+
transformExtension: (parsedExtension) => extension4.json(parsedExtension, opts),
|
|
697116
696755
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix
|
|
697117
696756
|
});
|
|
697118
696757
|
},
|
|
@@ -707735,25 +707374,25 @@ function validateAndTransformObject16({ value, requiredKeys, requiredKeysSet, ge
|
|
|
707735
707374
|
}
|
|
707736
707375
|
function getObjectUtils16(schema2) {
|
|
707737
707376
|
return {
|
|
707738
|
-
extend: (
|
|
707377
|
+
extend: (extension4) => {
|
|
707739
707378
|
const baseSchema = {
|
|
707740
|
-
_getParsedProperties: () => [...schema2._getParsedProperties(), ...
|
|
707741
|
-
_getRawProperties: () => [...schema2._getRawProperties(), ...
|
|
707379
|
+
_getParsedProperties: () => [...schema2._getParsedProperties(), ...extension4._getParsedProperties()],
|
|
707380
|
+
_getRawProperties: () => [...schema2._getRawProperties(), ...extension4._getRawProperties()],
|
|
707742
707381
|
parse: (raw, opts) => {
|
|
707743
707382
|
return validateAndTransformExtendedObject16({
|
|
707744
|
-
extensionKeys:
|
|
707383
|
+
extensionKeys: extension4._getRawProperties(),
|
|
707745
707384
|
value: raw,
|
|
707746
707385
|
transformBase: (rawBase) => schema2.parse(rawBase, opts),
|
|
707747
|
-
transformExtension: (rawExtension) =>
|
|
707386
|
+
transformExtension: (rawExtension) => extension4.parse(rawExtension, opts),
|
|
707748
707387
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix
|
|
707749
707388
|
});
|
|
707750
707389
|
},
|
|
707751
707390
|
json: (parsed, opts) => {
|
|
707752
707391
|
return validateAndTransformExtendedObject16({
|
|
707753
|
-
extensionKeys:
|
|
707392
|
+
extensionKeys: extension4._getParsedProperties(),
|
|
707754
707393
|
value: parsed,
|
|
707755
707394
|
transformBase: (parsedBase) => schema2.json(parsedBase, opts),
|
|
707756
|
-
transformExtension: (parsedExtension) =>
|
|
707395
|
+
transformExtension: (parsedExtension) => extension4.json(parsedExtension, opts),
|
|
707757
707396
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix
|
|
707758
707397
|
});
|
|
707759
707398
|
},
|
|
@@ -718601,25 +718240,25 @@ function validateAndTransformObject17({ value, requiredKeys, requiredKeysSet, ge
|
|
|
718601
718240
|
}
|
|
718602
718241
|
function getObjectUtils17(schema2) {
|
|
718603
718242
|
return {
|
|
718604
|
-
extend: (
|
|
718243
|
+
extend: (extension4) => {
|
|
718605
718244
|
const baseSchema = {
|
|
718606
|
-
_getParsedProperties: () => [...schema2._getParsedProperties(), ...
|
|
718607
|
-
_getRawProperties: () => [...schema2._getRawProperties(), ...
|
|
718245
|
+
_getParsedProperties: () => [...schema2._getParsedProperties(), ...extension4._getParsedProperties()],
|
|
718246
|
+
_getRawProperties: () => [...schema2._getRawProperties(), ...extension4._getRawProperties()],
|
|
718608
718247
|
parse: (raw, opts) => {
|
|
718609
718248
|
return validateAndTransformExtendedObject17({
|
|
718610
|
-
extensionKeys:
|
|
718249
|
+
extensionKeys: extension4._getRawProperties(),
|
|
718611
718250
|
value: raw,
|
|
718612
718251
|
transformBase: (rawBase) => schema2.parse(rawBase, opts),
|
|
718613
|
-
transformExtension: (rawExtension) =>
|
|
718252
|
+
transformExtension: (rawExtension) => extension4.parse(rawExtension, opts),
|
|
718614
718253
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix
|
|
718615
718254
|
});
|
|
718616
718255
|
},
|
|
718617
718256
|
json: (parsed, opts) => {
|
|
718618
718257
|
return validateAndTransformExtendedObject17({
|
|
718619
|
-
extensionKeys:
|
|
718258
|
+
extensionKeys: extension4._getParsedProperties(),
|
|
718620
718259
|
value: parsed,
|
|
718621
718260
|
transformBase: (parsedBase) => schema2.json(parsedBase, opts),
|
|
718622
|
-
transformExtension: (parsedExtension) =>
|
|
718261
|
+
transformExtension: (parsedExtension) => extension4.json(parsedExtension, opts),
|
|
718623
718262
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix
|
|
718624
718263
|
});
|
|
718625
718264
|
},
|
|
@@ -729479,25 +729118,25 @@ function validateAndTransformObject18({ value, requiredKeys, requiredKeysSet, ge
|
|
|
729479
729118
|
}
|
|
729480
729119
|
function getObjectUtils18(schema2) {
|
|
729481
729120
|
return {
|
|
729482
|
-
extend: (
|
|
729121
|
+
extend: (extension4) => {
|
|
729483
729122
|
const baseSchema = {
|
|
729484
|
-
_getParsedProperties: () => [...schema2._getParsedProperties(), ...
|
|
729485
|
-
_getRawProperties: () => [...schema2._getRawProperties(), ...
|
|
729123
|
+
_getParsedProperties: () => [...schema2._getParsedProperties(), ...extension4._getParsedProperties()],
|
|
729124
|
+
_getRawProperties: () => [...schema2._getRawProperties(), ...extension4._getRawProperties()],
|
|
729486
729125
|
parse: (raw, opts) => {
|
|
729487
729126
|
return validateAndTransformExtendedObject18({
|
|
729488
|
-
extensionKeys:
|
|
729127
|
+
extensionKeys: extension4._getRawProperties(),
|
|
729489
729128
|
value: raw,
|
|
729490
729129
|
transformBase: (rawBase) => schema2.parse(rawBase, opts),
|
|
729491
|
-
transformExtension: (rawExtension) =>
|
|
729130
|
+
transformExtension: (rawExtension) => extension4.parse(rawExtension, opts),
|
|
729492
729131
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix
|
|
729493
729132
|
});
|
|
729494
729133
|
},
|
|
729495
729134
|
json: (parsed, opts) => {
|
|
729496
729135
|
return validateAndTransformExtendedObject18({
|
|
729497
|
-
extensionKeys:
|
|
729136
|
+
extensionKeys: extension4._getParsedProperties(),
|
|
729498
729137
|
value: parsed,
|
|
729499
729138
|
transformBase: (parsedBase) => schema2.json(parsedBase, opts),
|
|
729500
|
-
transformExtension: (parsedExtension) =>
|
|
729139
|
+
transformExtension: (parsedExtension) => extension4.json(parsedExtension, opts),
|
|
729501
729140
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix
|
|
729502
729141
|
});
|
|
729503
729142
|
},
|
|
@@ -740449,25 +740088,25 @@ function validateAndTransformObject19({ value, requiredKeys, requiredKeysSet, ge
|
|
|
740449
740088
|
}
|
|
740450
740089
|
function getObjectUtils19(schema2) {
|
|
740451
740090
|
return {
|
|
740452
|
-
extend: (
|
|
740091
|
+
extend: (extension4) => {
|
|
740453
740092
|
const baseSchema = {
|
|
740454
|
-
_getParsedProperties: () => [...schema2._getParsedProperties(), ...
|
|
740455
|
-
_getRawProperties: () => [...schema2._getRawProperties(), ...
|
|
740093
|
+
_getParsedProperties: () => [...schema2._getParsedProperties(), ...extension4._getParsedProperties()],
|
|
740094
|
+
_getRawProperties: () => [...schema2._getRawProperties(), ...extension4._getRawProperties()],
|
|
740456
740095
|
parse: (raw, opts) => {
|
|
740457
740096
|
return validateAndTransformExtendedObject19({
|
|
740458
|
-
extensionKeys:
|
|
740097
|
+
extensionKeys: extension4._getRawProperties(),
|
|
740459
740098
|
value: raw,
|
|
740460
740099
|
transformBase: (rawBase) => schema2.parse(rawBase, opts),
|
|
740461
|
-
transformExtension: (rawExtension) =>
|
|
740100
|
+
transformExtension: (rawExtension) => extension4.parse(rawExtension, opts),
|
|
740462
740101
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix
|
|
740463
740102
|
});
|
|
740464
740103
|
},
|
|
740465
740104
|
json: (parsed, opts) => {
|
|
740466
740105
|
return validateAndTransformExtendedObject19({
|
|
740467
|
-
extensionKeys:
|
|
740106
|
+
extensionKeys: extension4._getParsedProperties(),
|
|
740468
740107
|
value: parsed,
|
|
740469
740108
|
transformBase: (parsedBase) => schema2.json(parsedBase, opts),
|
|
740470
|
-
transformExtension: (parsedExtension) =>
|
|
740109
|
+
transformExtension: (parsedExtension) => extension4.json(parsedExtension, opts),
|
|
740471
740110
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix
|
|
740472
740111
|
});
|
|
740473
740112
|
},
|
|
@@ -755571,7 +755210,7 @@ var CompileCommand = class {
|
|
|
755571
755210
|
const workspace = await context3.loadWorkspaceOrThrow();
|
|
755572
755211
|
const { apiName, definition: definition3 } = this.resolveApi(args, workspace);
|
|
755573
755212
|
await this.checkOrThrow({ context: context3, workspace, apiName });
|
|
755574
|
-
const
|
|
755213
|
+
const compiler2 = new IrCompiler({
|
|
755575
755214
|
context: context3,
|
|
755576
755215
|
cliVersion: workspace.cliVersion
|
|
755577
755216
|
});
|
|
@@ -755582,7 +755221,7 @@ var CompileCommand = class {
|
|
|
755582
755221
|
disableExamples: args["disable-examples"],
|
|
755583
755222
|
irVersion: args["ir-version"]
|
|
755584
755223
|
};
|
|
755585
|
-
const result = args.dynamic ? await
|
|
755224
|
+
const result = args.dynamic ? await compiler2.compileDynamic({ apiName, definition: definition3, options: options2 }) : await compiler2.compile({ apiName, definition: definition3, options: options2 });
|
|
755586
755225
|
await this.writeOutput(context3, args, result.object);
|
|
755587
755226
|
}
|
|
755588
755227
|
resolveApi(args, workspace) {
|
|
@@ -759860,12 +759499,12 @@ function combineExtensions(extensions2) {
|
|
|
759860
759499
|
}
|
|
759861
759500
|
return all9;
|
|
759862
759501
|
}
|
|
759863
|
-
function syntaxExtension(all9,
|
|
759502
|
+
function syntaxExtension(all9, extension4) {
|
|
759864
759503
|
let hook8;
|
|
759865
|
-
for (hook8 in
|
|
759504
|
+
for (hook8 in extension4) {
|
|
759866
759505
|
const maybe = hasOwnProperty18.call(all9, hook8) ? all9[hook8] : void 0;
|
|
759867
759506
|
const left3 = maybe || (all9[hook8] = {});
|
|
759868
|
-
const right3 =
|
|
759507
|
+
const right3 = extension4[hook8];
|
|
759869
759508
|
let code5;
|
|
759870
759509
|
if (right3) {
|
|
759871
759510
|
for (code5 in right3) {
|
|
@@ -759938,10 +759577,10 @@ function markdownSpace(code5) {
|
|
|
759938
759577
|
}
|
|
759939
759578
|
var unicodePunctuation = regexCheck(new RegExp("\\p{P}|\\p{S}", "u"));
|
|
759940
759579
|
var unicodeWhitespace = regexCheck(/\s/);
|
|
759941
|
-
function regexCheck(
|
|
759580
|
+
function regexCheck(regex5) {
|
|
759942
759581
|
return check3;
|
|
759943
759582
|
function check3(code5) {
|
|
759944
|
-
return code5 !== null && code5 > -1 &&
|
|
759583
|
+
return code5 !== null && code5 > -1 && regex5.test(String.fromCharCode(code5));
|
|
759945
759584
|
}
|
|
759946
759585
|
}
|
|
759947
759586
|
|
|
@@ -760088,10 +759727,10 @@ function initializeDocument(effects) {
|
|
|
760088
759727
|
}
|
|
760089
759728
|
const indexBeforeExits = self2.events.length;
|
|
760090
759729
|
let indexBeforeFlow = indexBeforeExits;
|
|
760091
|
-
let
|
|
759730
|
+
let point5;
|
|
760092
759731
|
while (indexBeforeFlow--) {
|
|
760093
759732
|
if (self2.events[indexBeforeFlow][0] === "exit" && self2.events[indexBeforeFlow][1].type === "chunkFlow") {
|
|
760094
|
-
|
|
759733
|
+
point5 = self2.events[indexBeforeFlow][1].end;
|
|
760095
759734
|
break;
|
|
760096
759735
|
}
|
|
760097
759736
|
}
|
|
@@ -760099,7 +759738,7 @@ function initializeDocument(effects) {
|
|
|
760099
759738
|
let index3 = indexBeforeExits;
|
|
760100
759739
|
while (index3 < self2.events.length) {
|
|
760101
759740
|
self2.events[index3][1].end = {
|
|
760102
|
-
...
|
|
759741
|
+
...point5
|
|
760103
759742
|
};
|
|
760104
759743
|
index3++;
|
|
760105
759744
|
}
|
|
@@ -760196,11 +759835,11 @@ function initializeDocument(effects) {
|
|
|
760196
759835
|
const indexBeforeExits = self2.events.length;
|
|
760197
759836
|
let indexBeforeFlow = indexBeforeExits;
|
|
760198
759837
|
let seen;
|
|
760199
|
-
let
|
|
759838
|
+
let point5;
|
|
760200
759839
|
while (indexBeforeFlow--) {
|
|
760201
759840
|
if (self2.events[indexBeforeFlow][0] === "exit" && self2.events[indexBeforeFlow][1].type === "chunkFlow") {
|
|
760202
759841
|
if (seen) {
|
|
760203
|
-
|
|
759842
|
+
point5 = self2.events[indexBeforeFlow][1].end;
|
|
760204
759843
|
break;
|
|
760205
759844
|
}
|
|
760206
759845
|
seen = true;
|
|
@@ -760210,7 +759849,7 @@ function initializeDocument(effects) {
|
|
|
760210
759849
|
index3 = indexBeforeExits;
|
|
760211
759850
|
while (index3 < self2.events.length) {
|
|
760212
759851
|
self2.events[index3][1].end = {
|
|
760213
|
-
...
|
|
759852
|
+
...point5
|
|
760214
759853
|
};
|
|
760215
759854
|
index3++;
|
|
760216
759855
|
}
|
|
@@ -760387,10 +760026,10 @@ function tokenizeAttention(effects, ok3) {
|
|
|
760387
760026
|
return ok3(code5);
|
|
760388
760027
|
}
|
|
760389
760028
|
}
|
|
760390
|
-
function movePoint(
|
|
760391
|
-
|
|
760392
|
-
|
|
760393
|
-
|
|
760029
|
+
function movePoint(point5, offset2) {
|
|
760030
|
+
point5.column += offset2;
|
|
760031
|
+
point5.offset += offset2;
|
|
760032
|
+
point5._bufferIndex += offset2;
|
|
760394
760033
|
}
|
|
760395
760034
|
|
|
760396
760035
|
// ../../../node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/autolink.js
|
|
@@ -763430,7 +763069,7 @@ var disable2 = {
|
|
|
763430
763069
|
|
|
763431
763070
|
// ../../../node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/create-tokenizer.js
|
|
763432
763071
|
function createTokenizer(parser4, initialize, from4) {
|
|
763433
|
-
let
|
|
763072
|
+
let point5 = {
|
|
763434
763073
|
_bufferIndex: -1,
|
|
763435
763074
|
_index: 0,
|
|
763436
763075
|
line: from4 && from4.line || 1,
|
|
@@ -763493,7 +763132,7 @@ function createTokenizer(parser4, initialize, from4) {
|
|
|
763493
763132
|
line,
|
|
763494
763133
|
column,
|
|
763495
763134
|
offset: offset2
|
|
763496
|
-
} =
|
|
763135
|
+
} = point5;
|
|
763497
763136
|
return {
|
|
763498
763137
|
_bufferIndex,
|
|
763499
763138
|
_index,
|
|
@@ -763508,15 +763147,15 @@ function createTokenizer(parser4, initialize, from4) {
|
|
|
763508
763147
|
}
|
|
763509
763148
|
function main3() {
|
|
763510
763149
|
let chunkIndex;
|
|
763511
|
-
while (
|
|
763512
|
-
const chunk2 = chunks[
|
|
763150
|
+
while (point5._index < chunks.length) {
|
|
763151
|
+
const chunk2 = chunks[point5._index];
|
|
763513
763152
|
if (typeof chunk2 === "string") {
|
|
763514
|
-
chunkIndex =
|
|
763515
|
-
if (
|
|
763516
|
-
|
|
763153
|
+
chunkIndex = point5._index;
|
|
763154
|
+
if (point5._bufferIndex < 0) {
|
|
763155
|
+
point5._bufferIndex = 0;
|
|
763517
763156
|
}
|
|
763518
|
-
while (
|
|
763519
|
-
go4(chunk2.charCodeAt(
|
|
763157
|
+
while (point5._index === chunkIndex && point5._bufferIndex < chunk2.length) {
|
|
763158
|
+
go4(chunk2.charCodeAt(point5._bufferIndex));
|
|
763520
763159
|
}
|
|
763521
763160
|
} else {
|
|
763522
763161
|
go4(chunk2);
|
|
@@ -763530,24 +763169,24 @@ function createTokenizer(parser4, initialize, from4) {
|
|
|
763530
763169
|
}
|
|
763531
763170
|
function consume(code5) {
|
|
763532
763171
|
if (markdownLineEnding(code5)) {
|
|
763533
|
-
|
|
763534
|
-
|
|
763535
|
-
|
|
763172
|
+
point5.line++;
|
|
763173
|
+
point5.column = 1;
|
|
763174
|
+
point5.offset += code5 === -3 ? 2 : 1;
|
|
763536
763175
|
accountForPotentialSkip();
|
|
763537
763176
|
} else if (code5 !== -1) {
|
|
763538
|
-
|
|
763539
|
-
|
|
763177
|
+
point5.column++;
|
|
763178
|
+
point5.offset++;
|
|
763540
763179
|
}
|
|
763541
|
-
if (
|
|
763542
|
-
|
|
763180
|
+
if (point5._bufferIndex < 0) {
|
|
763181
|
+
point5._index++;
|
|
763543
763182
|
} else {
|
|
763544
|
-
|
|
763545
|
-
if (
|
|
763183
|
+
point5._bufferIndex++;
|
|
763184
|
+
if (point5._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
|
|
763546
763185
|
// strings.
|
|
763547
763186
|
/** @type {string} */
|
|
763548
|
-
chunks[
|
|
763549
|
-
|
|
763550
|
-
|
|
763187
|
+
chunks[point5._index].length) {
|
|
763188
|
+
point5._bufferIndex = -1;
|
|
763189
|
+
point5._index++;
|
|
763551
763190
|
}
|
|
763552
763191
|
}
|
|
763553
763192
|
context3.previous = code5;
|
|
@@ -763671,7 +763310,7 @@ function createTokenizer(parser4, initialize, from4) {
|
|
|
763671
763310
|
restore
|
|
763672
763311
|
};
|
|
763673
763312
|
function restore() {
|
|
763674
|
-
|
|
763313
|
+
point5 = startPoint;
|
|
763675
763314
|
context3.previous = startPrevious;
|
|
763676
763315
|
context3.currentConstruct = startCurrentConstruct;
|
|
763677
763316
|
context3.events.length = startEventsIndex;
|
|
@@ -763680,9 +763319,9 @@ function createTokenizer(parser4, initialize, from4) {
|
|
|
763680
763319
|
}
|
|
763681
763320
|
}
|
|
763682
763321
|
function accountForPotentialSkip() {
|
|
763683
|
-
if (
|
|
763684
|
-
|
|
763685
|
-
|
|
763322
|
+
if (point5.line in columnStart && point5.column < 2) {
|
|
763323
|
+
point5.column = columnStart[point5.line];
|
|
763324
|
+
point5.offset += columnStart[point5.line] - 1;
|
|
763686
763325
|
}
|
|
763687
763326
|
}
|
|
763688
763327
|
}
|
|
@@ -763897,8 +763536,8 @@ function stringifyPosition(value) {
|
|
|
763897
763536
|
}
|
|
763898
763537
|
return "";
|
|
763899
763538
|
}
|
|
763900
|
-
function point(
|
|
763901
|
-
return index2(
|
|
763539
|
+
function point(point5) {
|
|
763540
|
+
return index2(point5 && point5.line) + ":" + index2(point5 && point5.column);
|
|
763902
763541
|
}
|
|
763903
763542
|
function position(pos) {
|
|
763904
763543
|
return point(pos && pos.start) + "-" + point(pos && pos.end);
|
|
@@ -764568,20 +764207,20 @@ function configure(combined, extensions2) {
|
|
|
764568
764207
|
}
|
|
764569
764208
|
}
|
|
764570
764209
|
}
|
|
764571
|
-
function extension(combined,
|
|
764210
|
+
function extension(combined, extension4) {
|
|
764572
764211
|
let key2;
|
|
764573
|
-
for (key2 in
|
|
764574
|
-
if (own2.call(
|
|
764212
|
+
for (key2 in extension4) {
|
|
764213
|
+
if (own2.call(extension4, key2)) {
|
|
764575
764214
|
switch (key2) {
|
|
764576
764215
|
case "canContainEols": {
|
|
764577
|
-
const right3 =
|
|
764216
|
+
const right3 = extension4[key2];
|
|
764578
764217
|
if (right3) {
|
|
764579
764218
|
combined[key2].push(...right3);
|
|
764580
764219
|
}
|
|
764581
764220
|
break;
|
|
764582
764221
|
}
|
|
764583
764222
|
case "transforms": {
|
|
764584
|
-
const right3 =
|
|
764223
|
+
const right3 = extension4[key2];
|
|
764585
764224
|
if (right3) {
|
|
764586
764225
|
combined[key2].push(...right3);
|
|
764587
764226
|
}
|
|
@@ -764589,7 +764228,7 @@ function extension(combined, extension5) {
|
|
|
764589
764228
|
}
|
|
764590
764229
|
case "enter":
|
|
764591
764230
|
case "exit": {
|
|
764592
|
-
const right3 =
|
|
764231
|
+
const right3 = extension4[key2];
|
|
764593
764232
|
if (right3) {
|
|
764594
764233
|
Object.assign(combined[key2], right3);
|
|
764595
764234
|
}
|
|
@@ -765229,35 +764868,35 @@ function zwitch(key2, options2) {
|
|
|
765229
764868
|
|
|
765230
764869
|
// ../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/configure.js
|
|
765231
764870
|
var own4 = {}.hasOwnProperty;
|
|
765232
|
-
function configure2(base4,
|
|
764871
|
+
function configure2(base4, extension4) {
|
|
765233
764872
|
let index3 = -1;
|
|
765234
764873
|
let key2;
|
|
765235
|
-
if (
|
|
765236
|
-
while (++index3 <
|
|
765237
|
-
configure2(base4,
|
|
764874
|
+
if (extension4.extensions) {
|
|
764875
|
+
while (++index3 < extension4.extensions.length) {
|
|
764876
|
+
configure2(base4, extension4.extensions[index3]);
|
|
765238
764877
|
}
|
|
765239
764878
|
}
|
|
765240
|
-
for (key2 in
|
|
765241
|
-
if (own4.call(
|
|
764879
|
+
for (key2 in extension4) {
|
|
764880
|
+
if (own4.call(extension4, key2)) {
|
|
765242
764881
|
switch (key2) {
|
|
765243
764882
|
case "extensions": {
|
|
765244
764883
|
break;
|
|
765245
764884
|
}
|
|
765246
764885
|
/* c8 ignore next 4 */
|
|
765247
764886
|
case "unsafe": {
|
|
765248
|
-
list21(base4[key2],
|
|
764887
|
+
list21(base4[key2], extension4[key2]);
|
|
765249
764888
|
break;
|
|
765250
764889
|
}
|
|
765251
764890
|
case "join": {
|
|
765252
|
-
list21(base4[key2],
|
|
764891
|
+
list21(base4[key2], extension4[key2]);
|
|
765253
764892
|
break;
|
|
765254
764893
|
}
|
|
765255
764894
|
case "handlers": {
|
|
765256
|
-
map11(base4[key2],
|
|
764895
|
+
map11(base4[key2], extension4[key2]);
|
|
765257
764896
|
break;
|
|
765258
764897
|
}
|
|
765259
764898
|
default: {
|
|
765260
|
-
base4.options[key2] =
|
|
764899
|
+
base4.options[key2] = extension4[key2];
|
|
765261
764900
|
}
|
|
765262
764901
|
}
|
|
765263
764902
|
}
|
|
@@ -767342,18 +766981,18 @@ function parseEntities(value, options2) {
|
|
|
767342
766981
|
let index3 = 0;
|
|
767343
766982
|
let lines = -1;
|
|
767344
766983
|
let queue = "";
|
|
767345
|
-
let
|
|
766984
|
+
let point5;
|
|
767346
766985
|
let indent4;
|
|
767347
766986
|
if (settings.position) {
|
|
767348
766987
|
if ("start" in settings.position || "indent" in settings.position) {
|
|
767349
766988
|
indent4 = settings.position.indent;
|
|
767350
|
-
|
|
766989
|
+
point5 = settings.position.start;
|
|
767351
766990
|
} else {
|
|
767352
|
-
|
|
766991
|
+
point5 = settings.position;
|
|
767353
766992
|
}
|
|
767354
766993
|
}
|
|
767355
|
-
let line = (
|
|
767356
|
-
let column = (
|
|
766994
|
+
let line = (point5 ? point5.line : 0) || 1;
|
|
766995
|
+
let column = (point5 ? point5.column : 0) || 1;
|
|
767357
766996
|
let previous4 = now();
|
|
767358
766997
|
let character;
|
|
767359
766998
|
index3--;
|
|
@@ -767518,7 +767157,7 @@ function parseEntities(value, options2) {
|
|
|
767518
767157
|
return {
|
|
767519
767158
|
line,
|
|
767520
767159
|
column,
|
|
767521
|
-
offset: index3 + ((
|
|
767160
|
+
offset: index3 + ((point5 ? point5.offset : 0) || 0)
|
|
767522
767161
|
};
|
|
767523
767162
|
}
|
|
767524
767163
|
function warning(code5, offset2) {
|
|
@@ -767806,7 +767445,7 @@ function mdxJsxFromMarkdown() {
|
|
|
767806
767445
|
function buffer() {
|
|
767807
767446
|
this.buffer();
|
|
767808
767447
|
}
|
|
767809
|
-
function
|
|
767448
|
+
function point5(d14) {
|
|
767810
767449
|
return { line: d14.line, column: d14.column, offset: d14.offset };
|
|
767811
767450
|
}
|
|
767812
767451
|
function data2(token) {
|
|
@@ -767888,7 +767527,7 @@ function mdxJsxFromMarkdown() {
|
|
|
767888
767527
|
name: "",
|
|
767889
767528
|
value: null,
|
|
767890
767529
|
position: {
|
|
767891
|
-
start:
|
|
767530
|
+
start: point5(token.start),
|
|
767892
767531
|
// @ts-expect-error: `end` will be patched later.
|
|
767893
767532
|
end: void 0
|
|
767894
767533
|
}
|
|
@@ -767902,7 +767541,7 @@ function mdxJsxFromMarkdown() {
|
|
|
767902
767541
|
type: "mdxJsxExpressionAttribute",
|
|
767903
767542
|
value: "",
|
|
767904
767543
|
position: {
|
|
767905
|
-
start:
|
|
767544
|
+
start: point5(token.start),
|
|
767906
767545
|
// @ts-expect-error: `end` will be patched later.
|
|
767907
767546
|
end: void 0
|
|
767908
767547
|
}
|
|
@@ -767917,7 +767556,7 @@ function mdxJsxFromMarkdown() {
|
|
|
767917
767556
|
const estree = token.estree;
|
|
767918
767557
|
tail.value = this.resume();
|
|
767919
767558
|
ok2(tail.position !== void 0);
|
|
767920
|
-
tail.position.end =
|
|
767559
|
+
tail.position.end = point5(token.end);
|
|
767921
767560
|
if (estree) {
|
|
767922
767561
|
tail.data = { estree };
|
|
767923
767562
|
}
|
|
@@ -767929,7 +767568,7 @@ function mdxJsxFromMarkdown() {
|
|
|
767929
767568
|
ok2(node4.type === "mdxJsxAttribute");
|
|
767930
767569
|
node4.name = this.sliceSerialize(token);
|
|
767931
767570
|
ok2(node4.position !== void 0);
|
|
767932
|
-
node4.position.end =
|
|
767571
|
+
node4.position.end = point5(token.end);
|
|
767933
767572
|
}
|
|
767934
767573
|
function exitMdxJsxTagAttributeNameLocal(token) {
|
|
767935
767574
|
const tag2 = this.data.mdxJsxTag;
|
|
@@ -767938,7 +767577,7 @@ function mdxJsxFromMarkdown() {
|
|
|
767938
767577
|
ok2(node4.type === "mdxJsxAttribute");
|
|
767939
767578
|
node4.name += ":" + this.sliceSerialize(token);
|
|
767940
767579
|
ok2(node4.position !== void 0);
|
|
767941
|
-
node4.position.end =
|
|
767580
|
+
node4.position.end = point5(token.end);
|
|
767942
767581
|
}
|
|
767943
767582
|
function exitMdxJsxTagAttributeValueLiteral(token) {
|
|
767944
767583
|
const tag2 = this.data.mdxJsxTag;
|
|
@@ -767946,7 +767585,7 @@ function mdxJsxFromMarkdown() {
|
|
|
767946
767585
|
const node4 = tag2.attributes[tag2.attributes.length - 1];
|
|
767947
767586
|
node4.value = parseEntities(this.resume(), { nonTerminated: false });
|
|
767948
767587
|
ok2(node4.position !== void 0);
|
|
767949
|
-
node4.position.end =
|
|
767588
|
+
node4.position.end = point5(token.end);
|
|
767950
767589
|
}
|
|
767951
767590
|
function exitMdxJsxTagAttributeValueExpression(token) {
|
|
767952
767591
|
const tag2 = this.data.mdxJsxTag;
|
|
@@ -767960,7 +767599,7 @@ function mdxJsxFromMarkdown() {
|
|
|
767960
767599
|
}
|
|
767961
767600
|
tail.value = node4;
|
|
767962
767601
|
ok2(tail.position !== void 0);
|
|
767963
|
-
tail.position.end =
|
|
767602
|
+
tail.position.end = point5(token.end);
|
|
767964
767603
|
}
|
|
767965
767604
|
function exitMdxJsxTagSelfClosingMarker() {
|
|
767966
767605
|
const tag2 = this.data.mdxJsxTag;
|
|
@@ -772930,7 +772569,7 @@ var Options = class _Options {
|
|
|
772930
772569
|
* Returns a new options object with the same properties as "this". Properties
|
|
772931
772570
|
* from "extension" will be copied to the new options object.
|
|
772932
772571
|
*/
|
|
772933
|
-
extend(
|
|
772572
|
+
extend(extension4) {
|
|
772934
772573
|
var data2 = {
|
|
772935
772574
|
style: this.style,
|
|
772936
772575
|
size: this.size,
|
|
@@ -772944,9 +772583,9 @@ var Options = class _Options {
|
|
|
772944
772583
|
maxSize: this.maxSize,
|
|
772945
772584
|
minRuleThickness: this.minRuleThickness
|
|
772946
772585
|
};
|
|
772947
|
-
for (var key2 in
|
|
772948
|
-
if (
|
|
772949
|
-
data2[key2] =
|
|
772586
|
+
for (var key2 in extension4) {
|
|
772587
|
+
if (extension4.hasOwnProperty(key2)) {
|
|
772588
|
+
data2[key2] = extension4[key2];
|
|
772950
772589
|
}
|
|
772951
772590
|
}
|
|
772952
772591
|
return new _Options(data2);
|
|
@@ -783853,12 +783492,12 @@ var Parser3 = class _Parser {
|
|
|
783853
783492
|
* whose concatenated strings match `regex`. Returns the string
|
|
783854
783493
|
* formed by the tokens plus some position information.
|
|
783855
783494
|
*/
|
|
783856
|
-
parseRegexGroup(
|
|
783495
|
+
parseRegexGroup(regex5, modeName) {
|
|
783857
783496
|
var firstToken = this.fetch();
|
|
783858
783497
|
var lastToken = firstToken;
|
|
783859
783498
|
var str3 = "";
|
|
783860
783499
|
var nextToken;
|
|
783861
|
-
while ((nextToken = this.fetch()).text !== "EOF" &&
|
|
783500
|
+
while ((nextToken = this.fetch()).text !== "EOF" && regex5.test(str3 + nextToken.text)) {
|
|
783862
783501
|
lastToken = nextToken;
|
|
783863
783502
|
str3 += lastToken.text;
|
|
783864
783503
|
this.consume();
|
|
@@ -790061,12 +789700,12 @@ function eventsToAcorn(events, options2) {
|
|
|
790061
789700
|
/** @type {AcornError} */
|
|
790062
789701
|
error_
|
|
790063
789702
|
);
|
|
790064
|
-
const
|
|
789703
|
+
const point5 = parseOffsetToUnistPoint(error50.pos);
|
|
790065
789704
|
error50.message = String(error50.message).replace(/ \(\d+:\d+\)$/, "");
|
|
790066
|
-
error50.pos =
|
|
789705
|
+
error50.pos = point5.offset;
|
|
790067
789706
|
error50.loc = {
|
|
790068
|
-
line:
|
|
790069
|
-
column:
|
|
789707
|
+
line: point5.line,
|
|
789708
|
+
column: point5.column - 1
|
|
790070
789709
|
};
|
|
790071
789710
|
exception2 = error50;
|
|
790072
789711
|
swallow = error50.raisedAt >= prefix2.length + source2.length || // Broken comments are raised at their start, not their end.
|
|
@@ -790089,15 +789728,15 @@ function eventsToAcorn(events, options2) {
|
|
|
790089
789728
|
comments: []
|
|
790090
789729
|
};
|
|
790091
789730
|
} else {
|
|
790092
|
-
const
|
|
789731
|
+
const point5 = parseOffsetToUnistPoint(estree.end);
|
|
790093
789732
|
const error50 = (
|
|
790094
789733
|
/** @type {AcornError} */
|
|
790095
789734
|
new Error("Unexpected content after expression")
|
|
790096
789735
|
);
|
|
790097
|
-
error50.pos =
|
|
789736
|
+
error50.pos = point5.offset;
|
|
790098
789737
|
error50.loc = {
|
|
790099
|
-
line:
|
|
790100
|
-
column:
|
|
789738
|
+
line: point5.line,
|
|
789739
|
+
column: point5.column - 1
|
|
790101
789740
|
};
|
|
790102
789741
|
exception2 = error50;
|
|
790103
789742
|
estree = void 0;
|
|
@@ -790172,15 +789811,15 @@ function eventsToAcorn(events, options2) {
|
|
|
790172
789811
|
} else if (sourceOffset > source2.length) {
|
|
790173
789812
|
sourceOffset = source2.length;
|
|
790174
789813
|
}
|
|
790175
|
-
let
|
|
790176
|
-
if (!
|
|
790177
|
-
|
|
789814
|
+
let point5 = relativeToPoint(collection.stops, sourceOffset);
|
|
789815
|
+
if (!point5) {
|
|
789816
|
+
point5 = {
|
|
790178
789817
|
line: options2.start.line,
|
|
790179
789818
|
column: options2.start.column,
|
|
790180
789819
|
offset: options2.start.offset
|
|
790181
789820
|
};
|
|
790182
789821
|
}
|
|
790183
|
-
return
|
|
789822
|
+
return point5;
|
|
790184
789823
|
}
|
|
790185
789824
|
}
|
|
790186
789825
|
function empty3(value) {
|
|
@@ -791985,10 +791624,10 @@ async function replaceReferencedCode({
|
|
|
791985
791624
|
if (!markdown.includes("<Code")) {
|
|
791986
791625
|
return markdown;
|
|
791987
791626
|
}
|
|
791988
|
-
const
|
|
791627
|
+
const regex5 = /([ \t]*)<Code(?:\s+[^>]*?)?\s+src={?['"]([^'"]+)['"](?! \+)}?((?:\s+[^>]*)?)\/>/g;
|
|
791989
791628
|
let newMarkdown = markdown;
|
|
791990
791629
|
let match3;
|
|
791991
|
-
while ((match3 =
|
|
791630
|
+
while ((match3 = regex5.exec(markdown)) != null) {
|
|
791992
791631
|
const matchString = match3[0];
|
|
791993
791632
|
const indent4 = match3[1];
|
|
791994
791633
|
const src = match3[2];
|
|
@@ -792156,10 +791795,10 @@ async function replaceReferencedMarkdown({
|
|
|
792156
791795
|
if (!markdown.includes("<Markdown")) {
|
|
792157
791796
|
return { markdown, referencedFiles: Array.from(collectedFiles.values()) };
|
|
792158
791797
|
}
|
|
792159
|
-
const
|
|
791798
|
+
const regex5 = /([ \t]*)<Markdown\s+([^>]+)\/>/g;
|
|
792160
791799
|
let newMarkdown = markdown;
|
|
792161
791800
|
let match3;
|
|
792162
|
-
while ((match3 =
|
|
791801
|
+
while ((match3 = regex5.exec(markdown)) != null) {
|
|
792163
791802
|
const matchString = match3[0];
|
|
792164
791803
|
const indent4 = match3[1];
|
|
792165
791804
|
const attributesString = match3[2];
|
|
@@ -792297,8 +791936,8 @@ function transformAtPrefixImports({ markdown, absolutePathToFernFolder, absolute
|
|
|
792297
791936
|
init_js();
|
|
792298
791937
|
init_lib6();
|
|
792299
791938
|
init_lib10();
|
|
792300
|
-
var import_dayjs3 = __toESM(
|
|
792301
|
-
var import_utc3 = __toESM(
|
|
791939
|
+
var import_dayjs3 = __toESM(require_dayjs_min(), 1);
|
|
791940
|
+
var import_utc3 = __toESM(require_utc(), 1);
|
|
792302
791941
|
var import_fs24 = require("fs");
|
|
792303
791942
|
var import_promises59 = require("fs/promises");
|
|
792304
791943
|
var import_gray_matter5 = __toESM(require_gray_matter(), 1);
|
|
@@ -793026,8 +792665,8 @@ function getBasePath(environment2) {
|
|
|
793026
792665
|
// ../docs-resolver/lib/ChangelogNodeConverter.js
|
|
793027
792666
|
init_js();
|
|
793028
792667
|
init_lib6();
|
|
793029
|
-
var import_dayjs2 = __toESM(
|
|
793030
|
-
var import_utc2 = __toESM(
|
|
792668
|
+
var import_dayjs2 = __toESM(require_dayjs_min(), 1);
|
|
792669
|
+
var import_utc2 = __toESM(require_utc(), 1);
|
|
793031
792670
|
init_lodash();
|
|
793032
792671
|
|
|
793033
792672
|
// ../docs-resolver/lib/utils/extractDatetimeFromChangelogTitle.js
|
|
@@ -797611,8 +797250,8 @@ function findMatchingOpenAPIPath2(examplePath, availablePaths) {
|
|
|
797611
797250
|
}
|
|
797612
797251
|
for (const openApiPath of availablePaths) {
|
|
797613
797252
|
const regexPattern = openApiPath.replace(/\{[^}]+\}/g, "([^/]+)");
|
|
797614
|
-
const
|
|
797615
|
-
if (
|
|
797253
|
+
const regex5 = new RegExp(`^${regexPattern}$`);
|
|
797254
|
+
if (regex5.test(examplePath)) {
|
|
797616
797255
|
return openApiPath;
|
|
797617
797256
|
}
|
|
797618
797257
|
}
|
|
@@ -798475,7 +798114,7 @@ function convertTypeShape(irType) {
|
|
|
798475
798114
|
object: (object21) => {
|
|
798476
798115
|
return {
|
|
798477
798116
|
type: "object",
|
|
798478
|
-
extends: object21.extends.map((
|
|
798117
|
+
extends: object21.extends.map((extension4) => FdrAPI_exports.TypeId(extension4.typeId)),
|
|
798479
798118
|
properties: object21.properties.map((property23) => ({
|
|
798480
798119
|
description: property23.docs ?? void 0,
|
|
798481
798120
|
key: FdrAPI_exports.PropertyKey(getWireValue(property23.name)),
|
|
@@ -798506,8 +798145,8 @@ function convertTypeShape(irType) {
|
|
|
798506
798145
|
displayName: variant.displayName,
|
|
798507
798146
|
availability: variant.availability != null ? convertIrAvailability(variant.availability) : void 0,
|
|
798508
798147
|
additionalProperties: api_exports.types.SingleUnionTypeProperties._visit(variant.shape, {
|
|
798509
|
-
samePropertiesAsObject: (
|
|
798510
|
-
extends: [FdrAPI_exports.TypeId(
|
|
798148
|
+
samePropertiesAsObject: (extension4) => ({
|
|
798149
|
+
extends: [FdrAPI_exports.TypeId(extension4.typeId)],
|
|
798511
798150
|
properties: baseProperties,
|
|
798512
798151
|
// TODO: add support for extra properties in discriminated union
|
|
798513
798152
|
extraProperties: void 0
|
|
@@ -799289,7 +798928,7 @@ function convertRequestBody3(irRequest) {
|
|
|
799289
798928
|
contentType: inlinedRequestBody.contentType ?? MediaType.APPLICATION_JSON,
|
|
799290
798929
|
shape: {
|
|
799291
798930
|
type: "object",
|
|
799292
|
-
extends: inlinedRequestBody.extends.map((
|
|
798931
|
+
extends: inlinedRequestBody.extends.map((extension4) => FdrAPI_exports.TypeId(extension4.typeId)),
|
|
799293
798932
|
properties: inlinedRequestBody.properties.map((property23) => ({
|
|
799294
798933
|
description: property23.docs ?? void 0,
|
|
799295
798934
|
key: FdrAPI_exports.PropertyKey(getWireValue(property23.name)),
|
|
@@ -799916,7 +799555,7 @@ function convertWebhookPayload3(irWebhookPayload) {
|
|
|
799916
799555
|
return {
|
|
799917
799556
|
type: {
|
|
799918
799557
|
type: "object",
|
|
799919
|
-
extends: irWebhookPayload.extends.map((
|
|
799558
|
+
extends: irWebhookPayload.extends.map((extension4) => FdrAPI_exports.TypeId(extension4.typeId)),
|
|
799920
799559
|
properties: irWebhookPayload.properties.map((property23) => ({
|
|
799921
799560
|
description: property23.docs ?? void 0,
|
|
799922
799561
|
key: FdrAPI_exports.PropertyKey(getWireValue(property23.name)),
|
|
@@ -799946,7 +799585,7 @@ function convertMessageBody(irWebSocketBody) {
|
|
|
799946
799585
|
case "inlinedBody":
|
|
799947
799586
|
return {
|
|
799948
799587
|
type: "object",
|
|
799949
|
-
extends: irWebSocketBody.extends.map((
|
|
799588
|
+
extends: irWebSocketBody.extends.map((extension4) => FdrAPI_exports.TypeId(extension4.typeId)),
|
|
799950
799589
|
properties: irWebSocketBody.properties.map((property23) => ({
|
|
799951
799590
|
description: property23.docs ?? void 0,
|
|
799952
799591
|
key: FdrAPI_exports.PropertyKey(getWireValue(property23.name)),
|
|
@@ -818195,9 +817834,9 @@ var getViolationsForFile = async (absoluteFilepath) => {
|
|
|
818195
817834
|
];
|
|
818196
817835
|
}
|
|
818197
817836
|
}
|
|
818198
|
-
let
|
|
818199
|
-
if (
|
|
818200
|
-
|
|
817837
|
+
let extension4 = import_path52.default.extname(absoluteFilepath).toLowerCase();
|
|
817838
|
+
if (extension4.startsWith(".")) {
|
|
817839
|
+
extension4 = extension4.substring(1);
|
|
818201
817840
|
}
|
|
818202
817841
|
const encoding = import_chardet2.default.detect(file4);
|
|
818203
817842
|
if (encoding == null) {
|
|
@@ -818761,7 +818400,7 @@ function looksLikeAVFile(value) {
|
|
|
818761
818400
|
}
|
|
818762
818401
|
|
|
818763
818402
|
// ../../../node_modules/.pnpm/estree-util-build-jsx@3.0.1/node_modules/estree-util-build-jsx/lib/index.js
|
|
818764
|
-
var
|
|
818403
|
+
var regex3 = /@(jsx|jsxFrag|jsxImportSource|jsxRuntime)\s+(\S+)/g;
|
|
818765
818404
|
function buildJsx(tree, options2) {
|
|
818766
818405
|
const config5 = options2 || {};
|
|
818767
818406
|
let automatic = config5.runtime === "automatic";
|
|
@@ -818773,11 +818412,11 @@ function buildJsx(tree, options2) {
|
|
|
818773
818412
|
const comments = node4.comments || [];
|
|
818774
818413
|
let index3 = -1;
|
|
818775
818414
|
while (++index3 < comments.length) {
|
|
818776
|
-
|
|
818777
|
-
let match3 =
|
|
818415
|
+
regex3.lastIndex = 0;
|
|
818416
|
+
let match3 = regex3.exec(comments[index3].value);
|
|
818778
818417
|
while (match3) {
|
|
818779
818418
|
annotations[match3[1]] = match3[2];
|
|
818780
|
-
match3 =
|
|
818419
|
+
match3 = regex3.exec(comments[index3].value);
|
|
818781
818420
|
}
|
|
818782
818421
|
}
|
|
818783
818422
|
if (annotations.jsxRuntime) {
|
|
@@ -820069,8 +819708,8 @@ var GENERATOR2 = {
|
|
|
820069
819708
|
}
|
|
820070
819709
|
},
|
|
820071
819710
|
RegExpLiteral(node4, state) {
|
|
820072
|
-
const { regex:
|
|
820073
|
-
state.write(`/${
|
|
819711
|
+
const { regex: regex5 } = node4;
|
|
819712
|
+
state.write(`/${regex5.pattern}/${regex5.flags}`, node4);
|
|
820074
819713
|
}
|
|
820075
819714
|
};
|
|
820076
819715
|
var EMPTY_OBJECT3 = {};
|
|
@@ -820320,8 +819959,8 @@ function recmaJsx2() {
|
|
|
820320
819959
|
// ../../../node_modules/.pnpm/recma-stringify@1.0.0/node_modules/recma-stringify/lib/index.js
|
|
820321
819960
|
function recmaStringify(options2) {
|
|
820322
819961
|
const self2 = this;
|
|
820323
|
-
this.compiler =
|
|
820324
|
-
function
|
|
819962
|
+
this.compiler = compiler2;
|
|
819963
|
+
function compiler2(tree, file4) {
|
|
820325
819964
|
const settings = { ...self2.data("settings"), ...options2 };
|
|
820326
819965
|
const result = toJs(tree, {
|
|
820327
819966
|
SourceMapGenerator: settings.SourceMapGenerator,
|
|
@@ -822042,14 +821681,14 @@ function ignore() {
|
|
|
822042
821681
|
var pointEnd = point3("end");
|
|
822043
821682
|
var pointStart = point3("start");
|
|
822044
821683
|
function point3(type8) {
|
|
822045
|
-
return
|
|
822046
|
-
function
|
|
822047
|
-
const
|
|
822048
|
-
if (typeof
|
|
821684
|
+
return point5;
|
|
821685
|
+
function point5(node4) {
|
|
821686
|
+
const point6 = node4 && node4.position && node4.position[type8] || {};
|
|
821687
|
+
if (typeof point6.line === "number" && point6.line > 0 && typeof point6.column === "number" && point6.column > 0) {
|
|
822049
821688
|
return {
|
|
822050
|
-
line:
|
|
822051
|
-
column:
|
|
822052
|
-
offset: typeof
|
|
821689
|
+
line: point6.line,
|
|
821690
|
+
column: point6.column,
|
|
821691
|
+
offset: typeof point6.offset === "number" && point6.offset > -1 ? point6.offset : void 0
|
|
822053
821692
|
};
|
|
822054
821693
|
}
|
|
822055
821694
|
}
|
|
@@ -822237,721 +821876,12 @@ function remarkMdx(options2) {
|
|
|
822237
821876
|
toMarkdownExtensions.push(mdxToMarkdown(settings));
|
|
822238
821877
|
}
|
|
822239
821878
|
|
|
822240
|
-
// ../../../node_modules/.pnpm/mdast-util-from-markdown@2.0.2/node_modules/mdast-util-from-markdown/lib/index.js
|
|
822241
|
-
var own9 = {}.hasOwnProperty;
|
|
822242
|
-
function fromMarkdown2(value, encoding, options2) {
|
|
822243
|
-
if (typeof encoding !== "string") {
|
|
822244
|
-
options2 = encoding;
|
|
822245
|
-
encoding = void 0;
|
|
822246
|
-
}
|
|
822247
|
-
return compiler2(options2)(postprocess(parse11(options2).document().write(preprocess2()(value, encoding, true))));
|
|
822248
|
-
}
|
|
822249
|
-
function compiler2(options2) {
|
|
822250
|
-
const config5 = {
|
|
822251
|
-
transforms: [],
|
|
822252
|
-
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
822253
|
-
enter: {
|
|
822254
|
-
autolink: opener(link3),
|
|
822255
|
-
autolinkProtocol: onenterdata,
|
|
822256
|
-
autolinkEmail: onenterdata,
|
|
822257
|
-
atxHeading: opener(heading4),
|
|
822258
|
-
blockQuote: opener(blockQuote2),
|
|
822259
|
-
characterEscape: onenterdata,
|
|
822260
|
-
characterReference: onenterdata,
|
|
822261
|
-
codeFenced: opener(codeFlow),
|
|
822262
|
-
codeFencedFenceInfo: buffer,
|
|
822263
|
-
codeFencedFenceMeta: buffer,
|
|
822264
|
-
codeIndented: opener(codeFlow, buffer),
|
|
822265
|
-
codeText: opener(codeText2, buffer),
|
|
822266
|
-
codeTextData: onenterdata,
|
|
822267
|
-
data: onenterdata,
|
|
822268
|
-
codeFlowValue: onenterdata,
|
|
822269
|
-
definition: opener(definition3),
|
|
822270
|
-
definitionDestinationString: buffer,
|
|
822271
|
-
definitionLabelString: buffer,
|
|
822272
|
-
definitionTitleString: buffer,
|
|
822273
|
-
emphasis: opener(emphasis3),
|
|
822274
|
-
hardBreakEscape: opener(hardBreak3),
|
|
822275
|
-
hardBreakTrailing: opener(hardBreak3),
|
|
822276
|
-
htmlFlow: opener(html6, buffer),
|
|
822277
|
-
htmlFlowData: onenterdata,
|
|
822278
|
-
htmlText: opener(html6, buffer),
|
|
822279
|
-
htmlTextData: onenterdata,
|
|
822280
|
-
image: opener(image3),
|
|
822281
|
-
label: buffer,
|
|
822282
|
-
link: opener(link3),
|
|
822283
|
-
listItem: opener(listItem3),
|
|
822284
|
-
listItemValue: onenterlistitemvalue,
|
|
822285
|
-
listOrdered: opener(list26, onenterlistordered),
|
|
822286
|
-
listUnordered: opener(list26),
|
|
822287
|
-
paragraph: opener(paragraph3),
|
|
822288
|
-
reference: onenterreference,
|
|
822289
|
-
referenceString: buffer,
|
|
822290
|
-
resourceDestinationString: buffer,
|
|
822291
|
-
resourceTitleString: buffer,
|
|
822292
|
-
setextHeading: opener(heading4),
|
|
822293
|
-
strong: opener(strong4),
|
|
822294
|
-
thematicBreak: opener(thematicBreak4)
|
|
822295
|
-
},
|
|
822296
|
-
exit: {
|
|
822297
|
-
atxHeading: closer(),
|
|
822298
|
-
atxHeadingSequence: onexitatxheadingsequence,
|
|
822299
|
-
autolink: closer(),
|
|
822300
|
-
autolinkEmail: onexitautolinkemail,
|
|
822301
|
-
autolinkProtocol: onexitautolinkprotocol,
|
|
822302
|
-
blockQuote: closer(),
|
|
822303
|
-
characterEscapeValue: onexitdata,
|
|
822304
|
-
characterReferenceMarkerHexadecimal: onexitcharacterreferencemarker,
|
|
822305
|
-
characterReferenceMarkerNumeric: onexitcharacterreferencemarker,
|
|
822306
|
-
characterReferenceValue: onexitcharacterreferencevalue,
|
|
822307
|
-
characterReference: onexitcharacterreference,
|
|
822308
|
-
codeFenced: closer(onexitcodefenced),
|
|
822309
|
-
codeFencedFence: onexitcodefencedfence,
|
|
822310
|
-
codeFencedFenceInfo: onexitcodefencedfenceinfo,
|
|
822311
|
-
codeFencedFenceMeta: onexitcodefencedfencemeta,
|
|
822312
|
-
codeFlowValue: onexitdata,
|
|
822313
|
-
codeIndented: closer(onexitcodeindented),
|
|
822314
|
-
codeText: closer(onexitcodetext),
|
|
822315
|
-
codeTextData: onexitdata,
|
|
822316
|
-
data: onexitdata,
|
|
822317
|
-
definition: closer(),
|
|
822318
|
-
definitionDestinationString: onexitdefinitiondestinationstring,
|
|
822319
|
-
definitionLabelString: onexitdefinitionlabelstring,
|
|
822320
|
-
definitionTitleString: onexitdefinitiontitlestring,
|
|
822321
|
-
emphasis: closer(),
|
|
822322
|
-
hardBreakEscape: closer(onexithardbreak),
|
|
822323
|
-
hardBreakTrailing: closer(onexithardbreak),
|
|
822324
|
-
htmlFlow: closer(onexithtmlflow),
|
|
822325
|
-
htmlFlowData: onexitdata,
|
|
822326
|
-
htmlText: closer(onexithtmltext),
|
|
822327
|
-
htmlTextData: onexitdata,
|
|
822328
|
-
image: closer(onexitimage),
|
|
822329
|
-
label: onexitlabel,
|
|
822330
|
-
labelText: onexitlabeltext,
|
|
822331
|
-
lineEnding: onexitlineending,
|
|
822332
|
-
link: closer(onexitlink),
|
|
822333
|
-
listItem: closer(),
|
|
822334
|
-
listOrdered: closer(),
|
|
822335
|
-
listUnordered: closer(),
|
|
822336
|
-
paragraph: closer(),
|
|
822337
|
-
referenceString: onexitreferencestring,
|
|
822338
|
-
resourceDestinationString: onexitresourcedestinationstring,
|
|
822339
|
-
resourceTitleString: onexitresourcetitlestring,
|
|
822340
|
-
resource: onexitresource,
|
|
822341
|
-
setextHeading: closer(onexitsetextheading),
|
|
822342
|
-
setextHeadingLineSequence: onexitsetextheadinglinesequence,
|
|
822343
|
-
setextHeadingText: onexitsetextheadingtext,
|
|
822344
|
-
strong: closer(),
|
|
822345
|
-
thematicBreak: closer()
|
|
822346
|
-
}
|
|
822347
|
-
};
|
|
822348
|
-
configure3(config5, (options2 || {}).mdastExtensions || []);
|
|
822349
|
-
const data2 = {};
|
|
822350
|
-
return compile3;
|
|
822351
|
-
function compile3(events) {
|
|
822352
|
-
let tree = {
|
|
822353
|
-
type: "root",
|
|
822354
|
-
children: []
|
|
822355
|
-
};
|
|
822356
|
-
const context3 = {
|
|
822357
|
-
stack: [tree],
|
|
822358
|
-
tokenStack: [],
|
|
822359
|
-
config: config5,
|
|
822360
|
-
enter,
|
|
822361
|
-
exit: exit3,
|
|
822362
|
-
buffer,
|
|
822363
|
-
resume: resume2,
|
|
822364
|
-
data: data2
|
|
822365
|
-
};
|
|
822366
|
-
const listStack = [];
|
|
822367
|
-
let index3 = -1;
|
|
822368
|
-
while (++index3 < events.length) {
|
|
822369
|
-
if (events[index3][1].type === "listOrdered" || events[index3][1].type === "listUnordered") {
|
|
822370
|
-
if (events[index3][0] === "enter") {
|
|
822371
|
-
listStack.push(index3);
|
|
822372
|
-
} else {
|
|
822373
|
-
const tail = listStack.pop();
|
|
822374
|
-
index3 = prepareList(events, tail, index3);
|
|
822375
|
-
}
|
|
822376
|
-
}
|
|
822377
|
-
}
|
|
822378
|
-
index3 = -1;
|
|
822379
|
-
while (++index3 < events.length) {
|
|
822380
|
-
const handler3 = config5[events[index3][0]];
|
|
822381
|
-
if (own9.call(handler3, events[index3][1].type)) {
|
|
822382
|
-
handler3[events[index3][1].type].call(Object.assign({
|
|
822383
|
-
sliceSerialize: events[index3][2].sliceSerialize
|
|
822384
|
-
}, context3), events[index3][1]);
|
|
822385
|
-
}
|
|
822386
|
-
}
|
|
822387
|
-
if (context3.tokenStack.length > 0) {
|
|
822388
|
-
const tail = context3.tokenStack[context3.tokenStack.length - 1];
|
|
822389
|
-
const handler3 = tail[1] || defaultOnError2;
|
|
822390
|
-
handler3.call(context3, void 0, tail[0]);
|
|
822391
|
-
}
|
|
822392
|
-
tree.position = {
|
|
822393
|
-
start: point4(events.length > 0 ? events[0][1].start : {
|
|
822394
|
-
line: 1,
|
|
822395
|
-
column: 1,
|
|
822396
|
-
offset: 0
|
|
822397
|
-
}),
|
|
822398
|
-
end: point4(events.length > 0 ? events[events.length - 2][1].end : {
|
|
822399
|
-
line: 1,
|
|
822400
|
-
column: 1,
|
|
822401
|
-
offset: 0
|
|
822402
|
-
})
|
|
822403
|
-
};
|
|
822404
|
-
index3 = -1;
|
|
822405
|
-
while (++index3 < config5.transforms.length) {
|
|
822406
|
-
tree = config5.transforms[index3](tree) || tree;
|
|
822407
|
-
}
|
|
822408
|
-
return tree;
|
|
822409
|
-
}
|
|
822410
|
-
function prepareList(events, start2, length) {
|
|
822411
|
-
let index3 = start2 - 1;
|
|
822412
|
-
let containerBalance = -1;
|
|
822413
|
-
let listSpread = false;
|
|
822414
|
-
let listItem4;
|
|
822415
|
-
let lineIndex;
|
|
822416
|
-
let firstBlankLineIndex;
|
|
822417
|
-
let atMarker;
|
|
822418
|
-
while (++index3 <= length) {
|
|
822419
|
-
const event = events[index3];
|
|
822420
|
-
switch (event[1].type) {
|
|
822421
|
-
case "listUnordered":
|
|
822422
|
-
case "listOrdered":
|
|
822423
|
-
case "blockQuote": {
|
|
822424
|
-
if (event[0] === "enter") {
|
|
822425
|
-
containerBalance++;
|
|
822426
|
-
} else {
|
|
822427
|
-
containerBalance--;
|
|
822428
|
-
}
|
|
822429
|
-
atMarker = void 0;
|
|
822430
|
-
break;
|
|
822431
|
-
}
|
|
822432
|
-
case "lineEndingBlank": {
|
|
822433
|
-
if (event[0] === "enter") {
|
|
822434
|
-
if (listItem4 && !atMarker && !containerBalance && !firstBlankLineIndex) {
|
|
822435
|
-
firstBlankLineIndex = index3;
|
|
822436
|
-
}
|
|
822437
|
-
atMarker = void 0;
|
|
822438
|
-
}
|
|
822439
|
-
break;
|
|
822440
|
-
}
|
|
822441
|
-
case "linePrefix":
|
|
822442
|
-
case "listItemValue":
|
|
822443
|
-
case "listItemMarker":
|
|
822444
|
-
case "listItemPrefix":
|
|
822445
|
-
case "listItemPrefixWhitespace": {
|
|
822446
|
-
break;
|
|
822447
|
-
}
|
|
822448
|
-
default: {
|
|
822449
|
-
atMarker = void 0;
|
|
822450
|
-
}
|
|
822451
|
-
}
|
|
822452
|
-
if (!containerBalance && event[0] === "enter" && event[1].type === "listItemPrefix" || containerBalance === -1 && event[0] === "exit" && (event[1].type === "listUnordered" || event[1].type === "listOrdered")) {
|
|
822453
|
-
if (listItem4) {
|
|
822454
|
-
let tailIndex = index3;
|
|
822455
|
-
lineIndex = void 0;
|
|
822456
|
-
while (tailIndex--) {
|
|
822457
|
-
const tailEvent = events[tailIndex];
|
|
822458
|
-
if (tailEvent[1].type === "lineEnding" || tailEvent[1].type === "lineEndingBlank") {
|
|
822459
|
-
if (tailEvent[0] === "exit") continue;
|
|
822460
|
-
if (lineIndex) {
|
|
822461
|
-
events[lineIndex][1].type = "lineEndingBlank";
|
|
822462
|
-
listSpread = true;
|
|
822463
|
-
}
|
|
822464
|
-
tailEvent[1].type = "lineEnding";
|
|
822465
|
-
lineIndex = tailIndex;
|
|
822466
|
-
} else if (tailEvent[1].type === "linePrefix" || tailEvent[1].type === "blockQuotePrefix" || tailEvent[1].type === "blockQuotePrefixWhitespace" || tailEvent[1].type === "blockQuoteMarker" || tailEvent[1].type === "listItemIndent") {
|
|
822467
|
-
} else {
|
|
822468
|
-
break;
|
|
822469
|
-
}
|
|
822470
|
-
}
|
|
822471
|
-
if (firstBlankLineIndex && (!lineIndex || firstBlankLineIndex < lineIndex)) {
|
|
822472
|
-
listItem4._spread = true;
|
|
822473
|
-
}
|
|
822474
|
-
listItem4.end = Object.assign({}, lineIndex ? events[lineIndex][1].start : event[1].end);
|
|
822475
|
-
events.splice(lineIndex || index3, 0, ["exit", listItem4, event[2]]);
|
|
822476
|
-
index3++;
|
|
822477
|
-
length++;
|
|
822478
|
-
}
|
|
822479
|
-
if (event[1].type === "listItemPrefix") {
|
|
822480
|
-
const item = {
|
|
822481
|
-
type: "listItem",
|
|
822482
|
-
_spread: false,
|
|
822483
|
-
start: Object.assign({}, event[1].start),
|
|
822484
|
-
// @ts-expect-error: we’ll add `end` in a second.
|
|
822485
|
-
end: void 0
|
|
822486
|
-
};
|
|
822487
|
-
listItem4 = item;
|
|
822488
|
-
events.splice(index3, 0, ["enter", item, event[2]]);
|
|
822489
|
-
index3++;
|
|
822490
|
-
length++;
|
|
822491
|
-
firstBlankLineIndex = void 0;
|
|
822492
|
-
atMarker = true;
|
|
822493
|
-
}
|
|
822494
|
-
}
|
|
822495
|
-
}
|
|
822496
|
-
events[start2][1]._spread = listSpread;
|
|
822497
|
-
return length;
|
|
822498
|
-
}
|
|
822499
|
-
function opener(create8, and) {
|
|
822500
|
-
return open7;
|
|
822501
|
-
function open7(token) {
|
|
822502
|
-
enter.call(this, create8(token), token);
|
|
822503
|
-
if (and) and.call(this, token);
|
|
822504
|
-
}
|
|
822505
|
-
}
|
|
822506
|
-
function buffer() {
|
|
822507
|
-
this.stack.push({
|
|
822508
|
-
type: "fragment",
|
|
822509
|
-
children: []
|
|
822510
|
-
});
|
|
822511
|
-
}
|
|
822512
|
-
function enter(node4, token, errorHandler) {
|
|
822513
|
-
const parent = this.stack[this.stack.length - 1];
|
|
822514
|
-
const siblings = parent.children;
|
|
822515
|
-
siblings.push(node4);
|
|
822516
|
-
this.stack.push(node4);
|
|
822517
|
-
this.tokenStack.push([token, errorHandler || void 0]);
|
|
822518
|
-
node4.position = {
|
|
822519
|
-
start: point4(token.start),
|
|
822520
|
-
// @ts-expect-error: `end` will be patched later.
|
|
822521
|
-
end: void 0
|
|
822522
|
-
};
|
|
822523
|
-
}
|
|
822524
|
-
function closer(and) {
|
|
822525
|
-
return close3;
|
|
822526
|
-
function close3(token) {
|
|
822527
|
-
if (and) and.call(this, token);
|
|
822528
|
-
exit3.call(this, token);
|
|
822529
|
-
}
|
|
822530
|
-
}
|
|
822531
|
-
function exit3(token, onExitError) {
|
|
822532
|
-
const node4 = this.stack.pop();
|
|
822533
|
-
const open7 = this.tokenStack.pop();
|
|
822534
|
-
if (!open7) {
|
|
822535
|
-
throw new Error("Cannot close `" + token.type + "` (" + stringifyPosition({
|
|
822536
|
-
start: token.start,
|
|
822537
|
-
end: token.end
|
|
822538
|
-
}) + "): it\u2019s not open");
|
|
822539
|
-
} else if (open7[0].type !== token.type) {
|
|
822540
|
-
if (onExitError) {
|
|
822541
|
-
onExitError.call(this, token, open7[0]);
|
|
822542
|
-
} else {
|
|
822543
|
-
const handler3 = open7[1] || defaultOnError2;
|
|
822544
|
-
handler3.call(this, token, open7[0]);
|
|
822545
|
-
}
|
|
822546
|
-
}
|
|
822547
|
-
node4.position.end = point4(token.end);
|
|
822548
|
-
}
|
|
822549
|
-
function resume2() {
|
|
822550
|
-
return toString8(this.stack.pop());
|
|
822551
|
-
}
|
|
822552
|
-
function onenterlistordered() {
|
|
822553
|
-
this.data.expectingFirstListItemValue = true;
|
|
822554
|
-
}
|
|
822555
|
-
function onenterlistitemvalue(token) {
|
|
822556
|
-
if (this.data.expectingFirstListItemValue) {
|
|
822557
|
-
const ancestor = this.stack[this.stack.length - 2];
|
|
822558
|
-
ancestor.start = Number.parseInt(this.sliceSerialize(token), 10);
|
|
822559
|
-
this.data.expectingFirstListItemValue = void 0;
|
|
822560
|
-
}
|
|
822561
|
-
}
|
|
822562
|
-
function onexitcodefencedfenceinfo() {
|
|
822563
|
-
const data3 = this.resume();
|
|
822564
|
-
const node4 = this.stack[this.stack.length - 1];
|
|
822565
|
-
node4.lang = data3;
|
|
822566
|
-
}
|
|
822567
|
-
function onexitcodefencedfencemeta() {
|
|
822568
|
-
const data3 = this.resume();
|
|
822569
|
-
const node4 = this.stack[this.stack.length - 1];
|
|
822570
|
-
node4.meta = data3;
|
|
822571
|
-
}
|
|
822572
|
-
function onexitcodefencedfence() {
|
|
822573
|
-
if (this.data.flowCodeInside) return;
|
|
822574
|
-
this.buffer();
|
|
822575
|
-
this.data.flowCodeInside = true;
|
|
822576
|
-
}
|
|
822577
|
-
function onexitcodefenced() {
|
|
822578
|
-
const data3 = this.resume();
|
|
822579
|
-
const node4 = this.stack[this.stack.length - 1];
|
|
822580
|
-
node4.value = data3.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, "");
|
|
822581
|
-
this.data.flowCodeInside = void 0;
|
|
822582
|
-
}
|
|
822583
|
-
function onexitcodeindented() {
|
|
822584
|
-
const data3 = this.resume();
|
|
822585
|
-
const node4 = this.stack[this.stack.length - 1];
|
|
822586
|
-
node4.value = data3.replace(/(\r?\n|\r)$/g, "");
|
|
822587
|
-
}
|
|
822588
|
-
function onexitdefinitionlabelstring(token) {
|
|
822589
|
-
const label = this.resume();
|
|
822590
|
-
const node4 = this.stack[this.stack.length - 1];
|
|
822591
|
-
node4.label = label;
|
|
822592
|
-
node4.identifier = normalizeIdentifier(this.sliceSerialize(token)).toLowerCase();
|
|
822593
|
-
}
|
|
822594
|
-
function onexitdefinitiontitlestring() {
|
|
822595
|
-
const data3 = this.resume();
|
|
822596
|
-
const node4 = this.stack[this.stack.length - 1];
|
|
822597
|
-
node4.title = data3;
|
|
822598
|
-
}
|
|
822599
|
-
function onexitdefinitiondestinationstring() {
|
|
822600
|
-
const data3 = this.resume();
|
|
822601
|
-
const node4 = this.stack[this.stack.length - 1];
|
|
822602
|
-
node4.url = data3;
|
|
822603
|
-
}
|
|
822604
|
-
function onexitatxheadingsequence(token) {
|
|
822605
|
-
const node4 = this.stack[this.stack.length - 1];
|
|
822606
|
-
if (!node4.depth) {
|
|
822607
|
-
const depth = this.sliceSerialize(token).length;
|
|
822608
|
-
node4.depth = depth;
|
|
822609
|
-
}
|
|
822610
|
-
}
|
|
822611
|
-
function onexitsetextheadingtext() {
|
|
822612
|
-
this.data.setextHeadingSlurpLineEnding = true;
|
|
822613
|
-
}
|
|
822614
|
-
function onexitsetextheadinglinesequence(token) {
|
|
822615
|
-
const node4 = this.stack[this.stack.length - 1];
|
|
822616
|
-
node4.depth = this.sliceSerialize(token).codePointAt(0) === 61 ? 1 : 2;
|
|
822617
|
-
}
|
|
822618
|
-
function onexitsetextheading() {
|
|
822619
|
-
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
822620
|
-
}
|
|
822621
|
-
function onenterdata(token) {
|
|
822622
|
-
const node4 = this.stack[this.stack.length - 1];
|
|
822623
|
-
const siblings = node4.children;
|
|
822624
|
-
let tail = siblings[siblings.length - 1];
|
|
822625
|
-
if (!tail || tail.type !== "text") {
|
|
822626
|
-
tail = text9();
|
|
822627
|
-
tail.position = {
|
|
822628
|
-
start: point4(token.start),
|
|
822629
|
-
// @ts-expect-error: we’ll add `end` later.
|
|
822630
|
-
end: void 0
|
|
822631
|
-
};
|
|
822632
|
-
siblings.push(tail);
|
|
822633
|
-
}
|
|
822634
|
-
this.stack.push(tail);
|
|
822635
|
-
}
|
|
822636
|
-
function onexitdata(token) {
|
|
822637
|
-
const tail = this.stack.pop();
|
|
822638
|
-
tail.value += this.sliceSerialize(token);
|
|
822639
|
-
tail.position.end = point4(token.end);
|
|
822640
|
-
}
|
|
822641
|
-
function onexitlineending(token) {
|
|
822642
|
-
const context3 = this.stack[this.stack.length - 1];
|
|
822643
|
-
if (this.data.atHardBreak) {
|
|
822644
|
-
const tail = context3.children[context3.children.length - 1];
|
|
822645
|
-
tail.position.end = point4(token.end);
|
|
822646
|
-
this.data.atHardBreak = void 0;
|
|
822647
|
-
return;
|
|
822648
|
-
}
|
|
822649
|
-
if (!this.data.setextHeadingSlurpLineEnding && config5.canContainEols.includes(context3.type)) {
|
|
822650
|
-
onenterdata.call(this, token);
|
|
822651
|
-
onexitdata.call(this, token);
|
|
822652
|
-
}
|
|
822653
|
-
}
|
|
822654
|
-
function onexithardbreak() {
|
|
822655
|
-
this.data.atHardBreak = true;
|
|
822656
|
-
}
|
|
822657
|
-
function onexithtmlflow() {
|
|
822658
|
-
const data3 = this.resume();
|
|
822659
|
-
const node4 = this.stack[this.stack.length - 1];
|
|
822660
|
-
node4.value = data3;
|
|
822661
|
-
}
|
|
822662
|
-
function onexithtmltext() {
|
|
822663
|
-
const data3 = this.resume();
|
|
822664
|
-
const node4 = this.stack[this.stack.length - 1];
|
|
822665
|
-
node4.value = data3;
|
|
822666
|
-
}
|
|
822667
|
-
function onexitcodetext() {
|
|
822668
|
-
const data3 = this.resume();
|
|
822669
|
-
const node4 = this.stack[this.stack.length - 1];
|
|
822670
|
-
node4.value = data3;
|
|
822671
|
-
}
|
|
822672
|
-
function onexitlink() {
|
|
822673
|
-
const node4 = this.stack[this.stack.length - 1];
|
|
822674
|
-
if (this.data.inReference) {
|
|
822675
|
-
const referenceType2 = this.data.referenceType || "shortcut";
|
|
822676
|
-
node4.type += "Reference";
|
|
822677
|
-
node4.referenceType = referenceType2;
|
|
822678
|
-
delete node4.url;
|
|
822679
|
-
delete node4.title;
|
|
822680
|
-
} else {
|
|
822681
|
-
delete node4.identifier;
|
|
822682
|
-
delete node4.label;
|
|
822683
|
-
}
|
|
822684
|
-
this.data.referenceType = void 0;
|
|
822685
|
-
}
|
|
822686
|
-
function onexitimage() {
|
|
822687
|
-
const node4 = this.stack[this.stack.length - 1];
|
|
822688
|
-
if (this.data.inReference) {
|
|
822689
|
-
const referenceType2 = this.data.referenceType || "shortcut";
|
|
822690
|
-
node4.type += "Reference";
|
|
822691
|
-
node4.referenceType = referenceType2;
|
|
822692
|
-
delete node4.url;
|
|
822693
|
-
delete node4.title;
|
|
822694
|
-
} else {
|
|
822695
|
-
delete node4.identifier;
|
|
822696
|
-
delete node4.label;
|
|
822697
|
-
}
|
|
822698
|
-
this.data.referenceType = void 0;
|
|
822699
|
-
}
|
|
822700
|
-
function onexitlabeltext(token) {
|
|
822701
|
-
const string26 = this.sliceSerialize(token);
|
|
822702
|
-
const ancestor = this.stack[this.stack.length - 2];
|
|
822703
|
-
ancestor.label = decodeString(string26);
|
|
822704
|
-
ancestor.identifier = normalizeIdentifier(string26).toLowerCase();
|
|
822705
|
-
}
|
|
822706
|
-
function onexitlabel() {
|
|
822707
|
-
const fragment = this.stack[this.stack.length - 1];
|
|
822708
|
-
const value = this.resume();
|
|
822709
|
-
const node4 = this.stack[this.stack.length - 1];
|
|
822710
|
-
this.data.inReference = true;
|
|
822711
|
-
if (node4.type === "link") {
|
|
822712
|
-
const children2 = fragment.children;
|
|
822713
|
-
node4.children = children2;
|
|
822714
|
-
} else {
|
|
822715
|
-
node4.alt = value;
|
|
822716
|
-
}
|
|
822717
|
-
}
|
|
822718
|
-
function onexitresourcedestinationstring() {
|
|
822719
|
-
const data3 = this.resume();
|
|
822720
|
-
const node4 = this.stack[this.stack.length - 1];
|
|
822721
|
-
node4.url = data3;
|
|
822722
|
-
}
|
|
822723
|
-
function onexitresourcetitlestring() {
|
|
822724
|
-
const data3 = this.resume();
|
|
822725
|
-
const node4 = this.stack[this.stack.length - 1];
|
|
822726
|
-
node4.title = data3;
|
|
822727
|
-
}
|
|
822728
|
-
function onexitresource() {
|
|
822729
|
-
this.data.inReference = void 0;
|
|
822730
|
-
}
|
|
822731
|
-
function onenterreference() {
|
|
822732
|
-
this.data.referenceType = "collapsed";
|
|
822733
|
-
}
|
|
822734
|
-
function onexitreferencestring(token) {
|
|
822735
|
-
const label = this.resume();
|
|
822736
|
-
const node4 = this.stack[this.stack.length - 1];
|
|
822737
|
-
node4.label = label;
|
|
822738
|
-
node4.identifier = normalizeIdentifier(this.sliceSerialize(token)).toLowerCase();
|
|
822739
|
-
this.data.referenceType = "full";
|
|
822740
|
-
}
|
|
822741
|
-
function onexitcharacterreferencemarker(token) {
|
|
822742
|
-
this.data.characterReferenceType = token.type;
|
|
822743
|
-
}
|
|
822744
|
-
function onexitcharacterreferencevalue(token) {
|
|
822745
|
-
const data3 = this.sliceSerialize(token);
|
|
822746
|
-
const type8 = this.data.characterReferenceType;
|
|
822747
|
-
let value;
|
|
822748
|
-
if (type8) {
|
|
822749
|
-
value = decodeNumericCharacterReference(data3, type8 === "characterReferenceMarkerNumeric" ? 10 : 16);
|
|
822750
|
-
this.data.characterReferenceType = void 0;
|
|
822751
|
-
} else {
|
|
822752
|
-
const result = decodeNamedCharacterReference(data3);
|
|
822753
|
-
value = result;
|
|
822754
|
-
}
|
|
822755
|
-
const tail = this.stack[this.stack.length - 1];
|
|
822756
|
-
tail.value += value;
|
|
822757
|
-
}
|
|
822758
|
-
function onexitcharacterreference(token) {
|
|
822759
|
-
const tail = this.stack.pop();
|
|
822760
|
-
tail.position.end = point4(token.end);
|
|
822761
|
-
}
|
|
822762
|
-
function onexitautolinkprotocol(token) {
|
|
822763
|
-
onexitdata.call(this, token);
|
|
822764
|
-
const node4 = this.stack[this.stack.length - 1];
|
|
822765
|
-
node4.url = this.sliceSerialize(token);
|
|
822766
|
-
}
|
|
822767
|
-
function onexitautolinkemail(token) {
|
|
822768
|
-
onexitdata.call(this, token);
|
|
822769
|
-
const node4 = this.stack[this.stack.length - 1];
|
|
822770
|
-
node4.url = "mailto:" + this.sliceSerialize(token);
|
|
822771
|
-
}
|
|
822772
|
-
function blockQuote2() {
|
|
822773
|
-
return {
|
|
822774
|
-
type: "blockquote",
|
|
822775
|
-
children: []
|
|
822776
|
-
};
|
|
822777
|
-
}
|
|
822778
|
-
function codeFlow() {
|
|
822779
|
-
return {
|
|
822780
|
-
type: "code",
|
|
822781
|
-
lang: null,
|
|
822782
|
-
meta: null,
|
|
822783
|
-
value: ""
|
|
822784
|
-
};
|
|
822785
|
-
}
|
|
822786
|
-
function codeText2() {
|
|
822787
|
-
return {
|
|
822788
|
-
type: "inlineCode",
|
|
822789
|
-
value: ""
|
|
822790
|
-
};
|
|
822791
|
-
}
|
|
822792
|
-
function definition3() {
|
|
822793
|
-
return {
|
|
822794
|
-
type: "definition",
|
|
822795
|
-
identifier: "",
|
|
822796
|
-
label: null,
|
|
822797
|
-
title: null,
|
|
822798
|
-
url: ""
|
|
822799
|
-
};
|
|
822800
|
-
}
|
|
822801
|
-
function emphasis3() {
|
|
822802
|
-
return {
|
|
822803
|
-
type: "emphasis",
|
|
822804
|
-
children: []
|
|
822805
|
-
};
|
|
822806
|
-
}
|
|
822807
|
-
function heading4() {
|
|
822808
|
-
return {
|
|
822809
|
-
type: "heading",
|
|
822810
|
-
// @ts-expect-error `depth` will be set later.
|
|
822811
|
-
depth: 0,
|
|
822812
|
-
children: []
|
|
822813
|
-
};
|
|
822814
|
-
}
|
|
822815
|
-
function hardBreak3() {
|
|
822816
|
-
return {
|
|
822817
|
-
type: "break"
|
|
822818
|
-
};
|
|
822819
|
-
}
|
|
822820
|
-
function html6() {
|
|
822821
|
-
return {
|
|
822822
|
-
type: "html",
|
|
822823
|
-
value: ""
|
|
822824
|
-
};
|
|
822825
|
-
}
|
|
822826
|
-
function image3() {
|
|
822827
|
-
return {
|
|
822828
|
-
type: "image",
|
|
822829
|
-
title: null,
|
|
822830
|
-
url: "",
|
|
822831
|
-
alt: null
|
|
822832
|
-
};
|
|
822833
|
-
}
|
|
822834
|
-
function link3() {
|
|
822835
|
-
return {
|
|
822836
|
-
type: "link",
|
|
822837
|
-
title: null,
|
|
822838
|
-
url: "",
|
|
822839
|
-
children: []
|
|
822840
|
-
};
|
|
822841
|
-
}
|
|
822842
|
-
function list26(token) {
|
|
822843
|
-
return {
|
|
822844
|
-
type: "list",
|
|
822845
|
-
ordered: token.type === "listOrdered",
|
|
822846
|
-
start: null,
|
|
822847
|
-
spread: token._spread,
|
|
822848
|
-
children: []
|
|
822849
|
-
};
|
|
822850
|
-
}
|
|
822851
|
-
function listItem3(token) {
|
|
822852
|
-
return {
|
|
822853
|
-
type: "listItem",
|
|
822854
|
-
spread: token._spread,
|
|
822855
|
-
checked: null,
|
|
822856
|
-
children: []
|
|
822857
|
-
};
|
|
822858
|
-
}
|
|
822859
|
-
function paragraph3() {
|
|
822860
|
-
return {
|
|
822861
|
-
type: "paragraph",
|
|
822862
|
-
children: []
|
|
822863
|
-
};
|
|
822864
|
-
}
|
|
822865
|
-
function strong4() {
|
|
822866
|
-
return {
|
|
822867
|
-
type: "strong",
|
|
822868
|
-
children: []
|
|
822869
|
-
};
|
|
822870
|
-
}
|
|
822871
|
-
function text9() {
|
|
822872
|
-
return {
|
|
822873
|
-
type: "text",
|
|
822874
|
-
value: ""
|
|
822875
|
-
};
|
|
822876
|
-
}
|
|
822877
|
-
function thematicBreak4() {
|
|
822878
|
-
return {
|
|
822879
|
-
type: "thematicBreak"
|
|
822880
|
-
};
|
|
822881
|
-
}
|
|
822882
|
-
}
|
|
822883
|
-
function point4(d14) {
|
|
822884
|
-
return {
|
|
822885
|
-
line: d14.line,
|
|
822886
|
-
column: d14.column,
|
|
822887
|
-
offset: d14.offset
|
|
822888
|
-
};
|
|
822889
|
-
}
|
|
822890
|
-
function configure3(combined, extensions2) {
|
|
822891
|
-
let index3 = -1;
|
|
822892
|
-
while (++index3 < extensions2.length) {
|
|
822893
|
-
const value = extensions2[index3];
|
|
822894
|
-
if (Array.isArray(value)) {
|
|
822895
|
-
configure3(combined, value);
|
|
822896
|
-
} else {
|
|
822897
|
-
extension2(combined, value);
|
|
822898
|
-
}
|
|
822899
|
-
}
|
|
822900
|
-
}
|
|
822901
|
-
function extension2(combined, extension5) {
|
|
822902
|
-
let key2;
|
|
822903
|
-
for (key2 in extension5) {
|
|
822904
|
-
if (own9.call(extension5, key2)) {
|
|
822905
|
-
switch (key2) {
|
|
822906
|
-
case "canContainEols": {
|
|
822907
|
-
const right3 = extension5[key2];
|
|
822908
|
-
if (right3) {
|
|
822909
|
-
combined[key2].push(...right3);
|
|
822910
|
-
}
|
|
822911
|
-
break;
|
|
822912
|
-
}
|
|
822913
|
-
case "transforms": {
|
|
822914
|
-
const right3 = extension5[key2];
|
|
822915
|
-
if (right3) {
|
|
822916
|
-
combined[key2].push(...right3);
|
|
822917
|
-
}
|
|
822918
|
-
break;
|
|
822919
|
-
}
|
|
822920
|
-
case "enter":
|
|
822921
|
-
case "exit": {
|
|
822922
|
-
const right3 = extension5[key2];
|
|
822923
|
-
if (right3) {
|
|
822924
|
-
Object.assign(combined[key2], right3);
|
|
822925
|
-
}
|
|
822926
|
-
break;
|
|
822927
|
-
}
|
|
822928
|
-
}
|
|
822929
|
-
}
|
|
822930
|
-
}
|
|
822931
|
-
}
|
|
822932
|
-
function defaultOnError2(left3, right3) {
|
|
822933
|
-
if (left3) {
|
|
822934
|
-
throw new Error("Cannot close `" + left3.type + "` (" + stringifyPosition({
|
|
822935
|
-
start: left3.start,
|
|
822936
|
-
end: left3.end
|
|
822937
|
-
}) + "): a different token (`" + right3.type + "`, " + stringifyPosition({
|
|
822938
|
-
start: right3.start,
|
|
822939
|
-
end: right3.end
|
|
822940
|
-
}) + ") is open");
|
|
822941
|
-
} else {
|
|
822942
|
-
throw new Error("Cannot close document, a token (`" + right3.type + "`, " + stringifyPosition({
|
|
822943
|
-
start: right3.start,
|
|
822944
|
-
end: right3.end
|
|
822945
|
-
}) + ") is still open");
|
|
822946
|
-
}
|
|
822947
|
-
}
|
|
822948
|
-
|
|
822949
821879
|
// ../../../node_modules/.pnpm/remark-parse@11.0.0/node_modules/remark-parse/lib/index.js
|
|
822950
821880
|
function remarkParse(options2) {
|
|
822951
821881
|
const self2 = this;
|
|
822952
821882
|
self2.parser = parser4;
|
|
822953
821883
|
function parser4(doc) {
|
|
822954
|
-
return
|
|
821884
|
+
return fromMarkdown(doc, {
|
|
822955
821885
|
...self2.data("settings"),
|
|
822956
821886
|
...options2,
|
|
822957
821887
|
// Note: these options are not in the readme.
|
|
@@ -823610,7 +822540,7 @@ function footer(state) {
|
|
|
823610
822540
|
|
|
823611
822541
|
// ../../../node_modules/.pnpm/mdast-util-to-hast@13.2.1/node_modules/mdast-util-to-hast/lib/state.js
|
|
823612
822542
|
init_esm12();
|
|
823613
|
-
var
|
|
822543
|
+
var own9 = {}.hasOwnProperty;
|
|
823614
822544
|
var emptyOptions5 = {};
|
|
823615
822545
|
function createState2(tree, options2) {
|
|
823616
822546
|
const settings = options2 || emptyOptions5;
|
|
@@ -823644,7 +822574,7 @@ function createState2(tree, options2) {
|
|
|
823644
822574
|
function one4(node4, parent) {
|
|
823645
822575
|
const type8 = node4.type;
|
|
823646
822576
|
const handle3 = state.handlers[type8];
|
|
823647
|
-
if (
|
|
822577
|
+
if (own9.call(state.handlers, type8) && handle3) {
|
|
823648
822578
|
return handle3(state, node4, parent);
|
|
823649
822579
|
}
|
|
823650
822580
|
if (state.options.passThrough && state.options.passThrough.includes(type8)) {
|
|
@@ -823717,7 +822647,7 @@ function applyData(from4, to8) {
|
|
|
823717
822647
|
}
|
|
823718
822648
|
function defaultUnknownHandler(state, node4) {
|
|
823719
822649
|
const data2 = node4.data || {};
|
|
823720
|
-
const result = "value" in node4 && !(
|
|
822650
|
+
const result = "value" in node4 && !(own9.call(data2, "hProperties") || own9.call(data2, "hChildren")) ? { type: "text", value: node4.value } : {
|
|
823721
822651
|
type: "element",
|
|
823722
822652
|
tagName: "div",
|
|
823723
822653
|
properties: {},
|
|
@@ -823916,7 +822846,7 @@ var CallableInstance = (
|
|
|
823916
822846
|
);
|
|
823917
822847
|
|
|
823918
822848
|
// ../../../node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.js
|
|
823919
|
-
var
|
|
822849
|
+
var own10 = {}.hasOwnProperty;
|
|
823920
822850
|
var Processor2 = class _Processor extends CallableInstance {
|
|
823921
822851
|
/**
|
|
823922
822852
|
* Create a processor.
|
|
@@ -824023,7 +822953,7 @@ var Processor2 = class _Processor extends CallableInstance {
|
|
|
824023
822953
|
this.namespace[key2] = value;
|
|
824024
822954
|
return this;
|
|
824025
822955
|
}
|
|
824026
|
-
return
|
|
822956
|
+
return own10.call(this.namespace, key2) && this.namespace[key2] || void 0;
|
|
824027
822957
|
}
|
|
824028
822958
|
if (key2) {
|
|
824029
822959
|
assertUnfrozen("data", this.frozen);
|
|
@@ -824363,10 +823293,10 @@ var Processor2 = class _Processor extends CallableInstance {
|
|
|
824363
823293
|
stringify(tree, file4) {
|
|
824364
823294
|
this.freeze();
|
|
824365
823295
|
const realFile = vfile(file4);
|
|
824366
|
-
const
|
|
824367
|
-
assertCompiler("stringify",
|
|
823296
|
+
const compiler2 = this.compiler || this.Compiler;
|
|
823297
|
+
assertCompiler("stringify", compiler2);
|
|
824368
823298
|
assertNode(tree);
|
|
824369
|
-
return
|
|
823299
|
+
return compiler2(tree, realFile);
|
|
824370
823300
|
}
|
|
824371
823301
|
/**
|
|
824372
823302
|
* Configure the processor to use a plugin, a list of usable values, or a
|
|
@@ -825969,7 +824899,7 @@ function compile2(vfileCompatible, compileOptions) {
|
|
|
825969
824899
|
|
|
825970
824900
|
// ../../../node_modules/.pnpm/vfile-matter@5.0.1/node_modules/vfile-matter/lib/index.js
|
|
825971
824901
|
var import_yaml5 = __toESM(require_dist8(), 1);
|
|
825972
|
-
var
|
|
824902
|
+
var regex4 = /^---(?:\r?\n|\r)(?:([\s\S]*?)(?:\r?\n|\r))?---(?:\r?\n|\r|$)/;
|
|
825973
824903
|
var emptyOptions6 = {};
|
|
825974
824904
|
var emptyYamlOptions = {};
|
|
825975
824905
|
function matter2(file4, options2) {
|
|
@@ -825977,7 +824907,7 @@ function matter2(file4, options2) {
|
|
|
825977
824907
|
const strip = options_.strip;
|
|
825978
824908
|
const yamlOptions = options_.yaml || emptyYamlOptions;
|
|
825979
824909
|
let document4 = String(file4);
|
|
825980
|
-
const match3 =
|
|
824910
|
+
const match3 = regex4.exec(document4);
|
|
825981
824911
|
if (match3) {
|
|
825982
824912
|
file4.data.matter = import_yaml5.default.parse(match3[1] || "", yamlOptions) || {};
|
|
825983
824913
|
if (strip) {
|
|
@@ -826506,17 +825436,17 @@ function location(file4) {
|
|
|
826506
825436
|
}
|
|
826507
825437
|
}
|
|
826508
825438
|
}
|
|
826509
|
-
function toOffset(
|
|
826510
|
-
if (
|
|
826511
|
-
while (indices.length <
|
|
825439
|
+
function toOffset(point5) {
|
|
825440
|
+
if (point5 && typeof point5.line === "number" && typeof point5.column === "number" && !Number.isNaN(point5.line) && !Number.isNaN(point5.column)) {
|
|
825441
|
+
while (indices.length < point5.line) {
|
|
826512
825442
|
const from4 = indices[indices.length - 1];
|
|
826513
825443
|
const eol2 = next(value, from4);
|
|
826514
825444
|
const end = eol2 === -1 ? value.length + 1 : eol2 + 1;
|
|
826515
825445
|
if (from4 === end) break;
|
|
826516
825446
|
indices.push(end);
|
|
826517
825447
|
}
|
|
826518
|
-
const offset2 = (
|
|
826519
|
-
if (offset2 < indices[
|
|
825448
|
+
const offset2 = (point5.line > 1 ? indices[point5.line - 2] : 0) + point5.column - 1;
|
|
825449
|
+
if (offset2 < indices[point5.line - 1]) return offset2;
|
|
826520
825450
|
}
|
|
826521
825451
|
}
|
|
826522
825452
|
}
|
|
@@ -826539,7 +825469,7 @@ var webNamespaces = {
|
|
|
826539
825469
|
};
|
|
826540
825470
|
|
|
826541
825471
|
// ../../../node_modules/.pnpm/hast-util-from-parse5@8.0.3/node_modules/hast-util-from-parse5/lib/index.js
|
|
826542
|
-
var
|
|
825472
|
+
var own11 = {}.hasOwnProperty;
|
|
826543
825473
|
var proto2 = Object.prototype;
|
|
826544
825474
|
function fromParse5(tree, options2) {
|
|
826545
825475
|
const settings = options2 || {};
|
|
@@ -826637,7 +825567,7 @@ function element2(state, node4) {
|
|
|
826637
825567
|
while (++index3 < node4.attrs.length) {
|
|
826638
825568
|
const attribute3 = node4.attrs[index3];
|
|
826639
825569
|
const name2 = (attribute3.prefix ? attribute3.prefix + ":" : "") + attribute3.name;
|
|
826640
|
-
if (!
|
|
825570
|
+
if (!own11.call(proto2, name2)) {
|
|
826641
825571
|
properties7[name2] = attribute3.value;
|
|
826642
825572
|
}
|
|
826643
825573
|
}
|
|
@@ -826685,7 +825615,7 @@ function createLocation(state, node4, location2) {
|
|
|
826685
825615
|
let key2;
|
|
826686
825616
|
if (location2.attrs) {
|
|
826687
825617
|
for (key2 in location2.attrs) {
|
|
826688
|
-
if (
|
|
825618
|
+
if (own11.call(location2.attrs, key2)) {
|
|
826689
825619
|
properties7[find3(state.schema, key2).property] = position3(
|
|
826690
825620
|
location2.attrs[key2]
|
|
826691
825621
|
);
|
|
@@ -826704,20 +825634,20 @@ function createLocation(state, node4, location2) {
|
|
|
826704
825634
|
return result;
|
|
826705
825635
|
}
|
|
826706
825636
|
function position3(loc) {
|
|
826707
|
-
const start2 =
|
|
825637
|
+
const start2 = point4({
|
|
826708
825638
|
line: loc.startLine,
|
|
826709
825639
|
column: loc.startCol,
|
|
826710
825640
|
offset: loc.startOffset
|
|
826711
825641
|
});
|
|
826712
|
-
const end =
|
|
825642
|
+
const end = point4({
|
|
826713
825643
|
line: loc.endLine,
|
|
826714
825644
|
column: loc.endCol,
|
|
826715
825645
|
offset: loc.endOffset
|
|
826716
825646
|
});
|
|
826717
825647
|
return start2 || end ? { start: start2, end } : void 0;
|
|
826718
825648
|
}
|
|
826719
|
-
function point5
|
|
826720
|
-
return
|
|
825649
|
+
function point4(point5) {
|
|
825650
|
+
return point5.line && point5.column ? point5 : void 0;
|
|
826721
825651
|
}
|
|
826722
825652
|
|
|
826723
825653
|
// ../../../node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/unicode.js
|
|
@@ -840800,7 +839730,7 @@ var import_path54 = __toESM(require("path"), 1);
|
|
|
840800
839730
|
var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
840801
839731
|
var LOGS_FOLDER_NAME = "logs";
|
|
840802
839732
|
function getCliSource() {
|
|
840803
|
-
const version7 = "4.62.3-
|
|
839733
|
+
const version7 = "4.62.3-39-g50880c9de66";
|
|
840804
839734
|
return `cli@${version7}`;
|
|
840805
839735
|
}
|
|
840806
839736
|
var DebugLogger = class {
|
|
@@ -851908,7 +850838,7 @@ var LegacyDocsPublisher = class {
|
|
|
851908
850838
|
previewId,
|
|
851909
850839
|
disableTemplates: void 0,
|
|
851910
850840
|
skipUpload,
|
|
851911
|
-
cliVersion: "4.62.3-
|
|
850841
|
+
cliVersion: "4.62.3-39-g50880c9de66"
|
|
851912
850842
|
});
|
|
851913
850843
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
851914
850844
|
return { success: false };
|
|
@@ -854219,9 +853149,9 @@ var ApiSpecResolver = class {
|
|
|
854219
853149
|
}
|
|
854220
853150
|
async resolveUrl({ reference: reference4 }) {
|
|
854221
853151
|
const { content: content5, contentType } = await this.fetchContent({ url: reference4 });
|
|
854222
|
-
const
|
|
853152
|
+
const extension4 = this.inferExtension({ url: reference4, contentType });
|
|
854223
853153
|
const tempDir2 = await (0, import_promises90.mkdtemp)(import_path60.default.join((0, import_os11.tmpdir)(), "fern-"));
|
|
854224
|
-
const absoluteFilePath = AbsoluteFilePath2.of(import_path60.default.join(tempDir2, `spec${
|
|
853154
|
+
const absoluteFilePath = AbsoluteFilePath2.of(import_path60.default.join(tempDir2, `spec${extension4}`));
|
|
854225
853155
|
await (0, import_promises90.writeFile)(absoluteFilePath, content5, "utf-8");
|
|
854226
853156
|
const specType = await this.detector.detect({ absoluteFilePath, content: content5, reference: reference4 });
|
|
854227
853157
|
return {
|
|
@@ -865579,12 +864509,12 @@ var getCodePoint2 = (
|
|
|
865579
864509
|
(c16, index3) => (c16.charCodeAt(index3) & 64512) === 55296 ? (c16.charCodeAt(index3) - 55296) * 1024 + c16.charCodeAt(index3 + 1) - 56320 + 65536 : c16.charCodeAt(index3)
|
|
865580
864510
|
)
|
|
865581
864511
|
);
|
|
865582
|
-
function getEscaper(
|
|
864512
|
+
function getEscaper(regex5, map16) {
|
|
865583
864513
|
return function escape6(data2) {
|
|
865584
864514
|
let match3;
|
|
865585
864515
|
let lastIdx = 0;
|
|
865586
864516
|
let result = "";
|
|
865587
|
-
while (match3 =
|
|
864517
|
+
while (match3 = regex5.exec(data2)) {
|
|
865588
864518
|
if (lastIdx !== match3.index) {
|
|
865589
864519
|
result += data2.substring(lastIdx, match3.index);
|
|
865590
864520
|
}
|
|
@@ -895815,7 +894745,7 @@ __export(swift_exports, {
|
|
|
895815
894745
|
docComment: () => docComment2,
|
|
895816
894746
|
enumWithAssociatedValues: () => enumWithAssociatedValues,
|
|
895817
894747
|
enumWithRawValues: () => enumWithRawValues,
|
|
895818
|
-
extension: () =>
|
|
894748
|
+
extension: () => extension3,
|
|
895819
894749
|
functionArgument: () => functionArgument,
|
|
895820
894750
|
functionParameter: () => functionParameter,
|
|
895821
894751
|
initializer: () => initializer3,
|
|
@@ -898157,7 +897087,7 @@ function enumWithAssociatedValues(args) {
|
|
|
898157
897087
|
function enumWithRawValues(args) {
|
|
898158
897088
|
return new EnumWithRawValues(args);
|
|
898159
897089
|
}
|
|
898160
|
-
function
|
|
897090
|
+
function extension3(args) {
|
|
898161
897091
|
return new Extension(args);
|
|
898162
897092
|
}
|
|
898163
897093
|
function functionArgument(args) {
|
|
@@ -907710,8 +906640,8 @@ async function getTitle(hast) {
|
|
|
907710
906640
|
// ../../../node_modules/.pnpm/remark-stringify@11.0.0/node_modules/remark-stringify/lib/index.js
|
|
907711
906641
|
function remarkStringify(options2) {
|
|
907712
906642
|
const self2 = this;
|
|
907713
|
-
self2.compiler =
|
|
907714
|
-
function
|
|
906643
|
+
self2.compiler = compiler2;
|
|
906644
|
+
function compiler2(tree) {
|
|
907715
906645
|
return toMarkdown(tree, {
|
|
907716
906646
|
...self2.data("settings"),
|
|
907717
906647
|
...options2,
|
|
@@ -908720,9 +907650,9 @@ function input(state, node4) {
|
|
|
908720
907650
|
}
|
|
908721
907651
|
|
|
908722
907652
|
// ../../../node_modules/.pnpm/hast-util-has-property@3.0.0/node_modules/hast-util-has-property/lib/index.js
|
|
908723
|
-
var
|
|
907653
|
+
var own12 = {}.hasOwnProperty;
|
|
908724
907654
|
function hasProperty(node4, name2) {
|
|
908725
|
-
const value = node4.type === "element" &&
|
|
907655
|
+
const value = node4.type === "element" && own12.call(node4.properties, name2) && node4.properties[name2];
|
|
908726
907656
|
return value !== null && value !== void 0 && value !== false;
|
|
908727
907657
|
}
|
|
908728
907658
|
|
|
@@ -909415,7 +908345,7 @@ function ignore3() {
|
|
|
909415
908345
|
}
|
|
909416
908346
|
|
|
909417
908347
|
// ../../../node_modules/.pnpm/hast-util-to-mdast@10.1.2/node_modules/hast-util-to-mdast/lib/state.js
|
|
909418
|
-
var
|
|
908348
|
+
var own13 = {}.hasOwnProperty;
|
|
909419
908349
|
function createState3(options2) {
|
|
909420
908350
|
return {
|
|
909421
908351
|
all: all8,
|
|
@@ -909457,10 +908387,10 @@ function one3(node4, parent) {
|
|
|
909457
908387
|
if (node4.properties && node4.properties.dataMdast === "ignore") {
|
|
909458
908388
|
return;
|
|
909459
908389
|
}
|
|
909460
|
-
if (
|
|
908390
|
+
if (own13.call(this.handlers, node4.tagName)) {
|
|
909461
908391
|
return this.handlers[node4.tagName](this, node4, parent) || void 0;
|
|
909462
908392
|
}
|
|
909463
|
-
} else if (
|
|
908393
|
+
} else if (own13.call(this.nodeHandlers, node4.type)) {
|
|
909464
908394
|
return this.nodeHandlers[node4.type](this, node4, parent) || void 0;
|
|
909465
908395
|
}
|
|
909466
908396
|
if ("value" in node4 && typeof node4.value === "string") {
|
|
@@ -910518,9 +909448,9 @@ async function getColors(hast) {
|
|
|
910518
909448
|
}
|
|
910519
909449
|
const cssStr = node4.children[0].value;
|
|
910520
909450
|
const colorKey = "--color-link-primary";
|
|
910521
|
-
const
|
|
910522
|
-
const primaryCssColorValue = cssStr.match(
|
|
910523
|
-
const lightCssColorValue = cssStr.match(
|
|
909451
|
+
const regex5 = new RegExp(`${colorKey}\\s*[:|,]\\s*([^;)]+)`, "i");
|
|
909452
|
+
const primaryCssColorValue = cssStr.match(regex5)?.[1]?.trim();
|
|
909453
|
+
const lightCssColorValue = cssStr.match(regex5)?.[1]?.trim();
|
|
910524
909454
|
if (!primaryCssColorValue || !lightCssColorValue) {
|
|
910525
909455
|
return CONTINUE;
|
|
910526
909456
|
}
|
|
@@ -919600,10 +918530,10 @@ function getFeatures(flag, options2 = []) {
|
|
|
919600
918530
|
});
|
|
919601
918531
|
}
|
|
919602
918532
|
function removeMatchingFlags(array3, flag) {
|
|
919603
|
-
const
|
|
918533
|
+
const regex5 = new RegExp(`^${flag}=.*`);
|
|
919604
918534
|
let i11 = 0;
|
|
919605
918535
|
while (i11 < array3.length) {
|
|
919606
|
-
if (
|
|
918536
|
+
if (regex5.test(array3[i11])) {
|
|
919607
918537
|
array3.splice(i11, 1);
|
|
919608
918538
|
} else {
|
|
919609
918539
|
i11++;
|
|
@@ -925215,7 +924145,7 @@ var CliContext = class {
|
|
|
925215
924145
|
if (false) {
|
|
925216
924146
|
this.logger.error("CLI_VERSION is not defined");
|
|
925217
924147
|
}
|
|
925218
|
-
return "4.62.3-
|
|
924148
|
+
return "4.62.3-39-g50880c9de66";
|
|
925219
924149
|
}
|
|
925220
924150
|
getCliName() {
|
|
925221
924151
|
if (false) {
|
|
@@ -935515,8 +934445,8 @@ async function writeDefinitionForOpenAPIWorkspace({
|
|
|
935515
934445
|
const lastDotIndex = specFilename.lastIndexOf(".");
|
|
935516
934446
|
if (lastDotIndex > 0) {
|
|
935517
934447
|
const nameWithoutExt = specFilename.substring(0, lastDotIndex);
|
|
935518
|
-
const
|
|
935519
|
-
overridesFilename = `${nameWithoutExt}-overrides${
|
|
934448
|
+
const extension4 = specFilename.substring(lastDotIndex);
|
|
934449
|
+
overridesFilename = `${nameWithoutExt}-overrides${extension4}`;
|
|
935520
934450
|
}
|
|
935521
934451
|
}
|
|
935522
934452
|
await (0, import_promises140.writeFile)(
|
|
@@ -939000,8 +937930,8 @@ var migration14 = {
|
|
|
939000
937930
|
async function migrateYamlFile5(filepath) {
|
|
939001
937931
|
const contents = await (0, import_promises160.readFile)(filepath);
|
|
939002
937932
|
const domainSuffix = process.env.DOMAIN_SUFFIX ?? "docs.buildwithfern.com";
|
|
939003
|
-
const
|
|
939004
|
-
const updatedSnapshot = contents.toString().replace(
|
|
937933
|
+
const regex5 = /(docs:\s*domain:\s*)"([^"]*)"/g;
|
|
937934
|
+
const updatedSnapshot = contents.toString().replace(regex5, (_match, _prefix, domain3) => {
|
|
939005
937935
|
return `docs:
|
|
939006
937936
|
domain: "${domain3}.${domainSuffix}"`;
|
|
939007
937937
|
});
|
|
@@ -941277,6 +940207,11 @@ var MdxValidationError = class {
|
|
|
941277
940207
|
this.column = column;
|
|
941278
940208
|
this.contextLines = contextLines;
|
|
941279
940209
|
}
|
|
940210
|
+
filepath;
|
|
940211
|
+
message;
|
|
940212
|
+
line;
|
|
940213
|
+
column;
|
|
940214
|
+
contextLines;
|
|
941280
940215
|
toString() {
|
|
941281
940216
|
const relativePath = import_path90.default.relative(process.cwd(), this.filepath);
|
|
941282
940217
|
let formatted = source_default.red(` ${relativePath}`);
|